oziko-ui-kit 0.0.87 → 0.0.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -64,7 +64,7 @@ function(t,e){const n=no(t,e);return"production"!==process.env.NODE_ENV?(...e)=>
64
64
  /* @preserve
65
65
  * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
66
66
  * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
67
- */var uA=(lA||(lA=1,function(t){var e="1.9.4";function n(t){var e,n,r,o;for(n=1,r=arguments.length;n<r;n++)for(e in o=arguments[n])t[e]=o[e];return t}var r=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function o(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var r=n.call(arguments,2);return function(){return t.apply(e,r.length?r.concat(n.call(arguments)):arguments)}}var i=0;function a(t){return"_leaflet_id"in t||(t._leaflet_id=++i),t._leaflet_id}function s(t,e,n){var r,o,i,a;return a=function(){r=!1,o&&(i.apply(n,o),o=!1)},i=function(){r?o=arguments:(t.apply(n,arguments),setTimeout(a,e),r=!0)},i}function l(t,e,n){var r=e[1],o=e[0],i=r-o;return t===r&&n?t:((t-o)%i+i)%i+o}function c(){return!1}function u(t,e){if(!1===e)return t;var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function d(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function h(t){return d(t).split(/\s+/)}function p(t,e){for(var n in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?r(t.options):{}),e)t.options[n]=e[n];return t.options}function f(t,e,n){var r=[];for(var o in t)r.push(encodeURIComponent(n?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+r.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(t,e){return t.replace(m,(function(t,n){var r=e[n];if(void 0===r)throw new Error("No value provided for variable "+t);return"function"==typeof r&&(r=r(e)),r}))}var v=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function y(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function _(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function w(t){var e=+new Date,n=Math.max(0,16-(e-x));return x=e+n,window.setTimeout(t,n)}var S=window.requestAnimationFrame||_("RequestAnimationFrame")||w,k=window.cancelAnimationFrame||_("CancelAnimationFrame")||_("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function C(t,e,n){if(!n||S!==w)return S.call(window,o(t,e));t.call(e)}function E(t){t&&k.call(window,t)}var M={__proto__:null,extend:n,create:r,bind:o,get lastId(){return i},stamp:a,throttle:s,wrapNum:l,falseFn:c,formatNum:u,trim:d,splitWords:h,setOptions:p,getParamString:f,template:g,isArray:v,indexOf:y,emptyImageUrl:b,requestFn:S,cancelFn:k,requestAnimFrame:C,cancelAnimFrame:E};function O(){}function P(t){if("undefined"!=typeof L&&L&&L.Mixin){t=v(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}O.extend=function(t){var e=function(){p(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=e.__super__=this.prototype,i=r(o);for(var a in i.constructor=e,e.prototype=i,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(e[a]=this[a]);return t.statics&&n(e,t.statics),t.includes&&(P(t.includes),n.apply(null,[i].concat(t.includes))),n(i,t),delete i.statics,delete i.includes,i.options&&(i.options=o.options?r(o.options):{},n(i.options,t.options)),i._initHooks=[],i.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=i._initHooks.length;t<e;t++)i._initHooks[t].call(this)}},e},O.include=function(t){var e=this.prototype.options;return n(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},O.mergeOptions=function(t){return n(this.prototype.options,t),this},O.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var T={on:function(t,e,n){if("object"==typeof t)for(var r in t)this._on(r,t[r],e);else for(var o=0,i=(t=h(t)).length;o<i;o++)this._on(t[o],e,n);return this},off:function(t,e,n){if(arguments.length)if("object"==typeof t)for(var r in t)this._off(r,t[r],e);else{t=h(t);for(var o=1===arguments.length,i=0,a=t.length;i<a;i++)o?this._off(t[i]):this._off(t[i],e,n)}else delete this._events;return this},_on:function(t,e,n,r){if("function"==typeof e){if(!1===this._listens(t,e,n)){n===this&&(n=void 0);var o={fn:e,ctx:n};r&&(o.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(o)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,n){var r,o,i;if(this._events&&(r=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var a=this._listens(t,e,n);if(!1!==a){var s=r[a];this._firingCount&&(s.fn=c,this._events[t]=r=r.slice()),r.splice(a,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(o=0,i=r.length;o<i;o++)r[o].fn=c;delete this._events[t]}},fire:function(t,e,r){if(!this.listens(t,r))return this;var o=n({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var i=this._events[t];if(i){this._firingCount=this._firingCount+1||1;for(var a=0,s=i.length;a<s;a++){var l=i[a],c=l.fn;l.once&&this.off(t,c,l.ctx),c.call(l.ctx||this,o)}this._firingCount--}}return r&&this._propagateEvent(o),this},listens:function(t,e,n,r){"string"!=typeof t&&console.warn('"string" type argument expected');var o=e;"function"!=typeof e&&(r=!!e,o=void 0,n=void 0);var i=this._events&&this._events[t];if(i&&i.length&&!1!==this._listens(t,o,n))return!0;if(r)for(var a in this._eventParents)if(this._eventParents[a].listens(t,e,n,r))return!0;return!1},_listens:function(t,e,n){if(!this._events)return!1;var r=this._events[t]||[];if(!e)return!!r.length;n===this&&(n=void 0);for(var o=0,i=r.length;o<i;o++)if(r[o].fn===e&&r[o].ctx===n)return o;return!1},once:function(t,e,n){if("object"==typeof t)for(var r in t)this._on(r,t[r],e,!0);else for(var o=0,i=(t=h(t)).length;o<i;o++)this._on(t[o],e,n,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[a(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[a(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),!0)}};T.addEventListener=T.on,T.removeEventListener=T.clearAllEventListeners=T.off,T.addOneTimeEventListener=T.once,T.fireEvent=T.fire,T.hasEventListeners=T.listens;var N=O.extend(T);function D(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var A=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function I(t,e,n){return t instanceof D?t:v(t)?new D(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new D(t.x,t.y):new D(t,e,n)}function z(t,e){if(t)for(var n=e?[t,e]:t,r=0,o=n.length;r<o;r++)this.extend(n[r])}function R(t,e){return!t||t instanceof z?t:new z(t,e)}function $(t,e){if(t)for(var n=e?[t,e]:t,r=0,o=n.length;r<o;r++)this.extend(n[r])}function F(t,e){return t instanceof $?t:new $(t,e)}function j(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function B(t,e,n){return t instanceof j?t:v(t)&&"object"!=typeof t[0]?3===t.length?new j(t[0],t[1],t[2]):2===t.length?new j(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new j(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new j(t,e,n)}D.prototype={clone:function(){return new D(this.x,this.y)},add:function(t){return this.clone()._add(I(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(I(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new D(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new D(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=A(this.x),this.y=A(this.y),this},distanceTo:function(t){var e=(t=I(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=I(t)).x===this.x&&t.y===this.y},contains:function(t){return t=I(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},z.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof D||"number"==typeof t[0]||"x"in t)e=n=I(t);else if(e=(t=R(t)).min,n=t.max,!e||!n)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=e.clone(),this.max=n.clone()),this},getCenter:function(t){return I((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return I(this.min.x,this.max.y)},getTopRight:function(){return I(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t="number"==typeof t[0]||t instanceof D?I(t):R(t))instanceof z?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=R(t);var e=this.min,n=this.max,r=t.min,o=t.max,i=o.x>=e.x&&r.x<=n.x,a=o.y>=e.y&&r.y<=n.y;return i&&a},overlaps:function(t){t=R(t);var e=this.min,n=this.max,r=t.min,o=t.max,i=o.x>e.x&&r.x<n.x,a=o.y>e.y&&r.y<n.y;return i&&a},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,n=this.max,r=Math.abs(e.x-n.x)*t,o=Math.abs(e.y-n.y)*t;return R(I(e.x-r,e.y-o),I(n.x+r,n.y+o))},equals:function(t){return!!t&&(t=R(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},$.prototype={extend:function(t){var e,n,r=this._southWest,o=this._northEast;if(t instanceof j)e=t,n=t;else{if(!(t instanceof $))return t?this.extend(B(t)||F(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return r||o?(r.lat=Math.min(e.lat,r.lat),r.lng=Math.min(e.lng,r.lng),o.lat=Math.max(n.lat,o.lat),o.lng=Math.max(n.lng,o.lng)):(this._southWest=new j(e.lat,e.lng),this._northEast=new j(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,r=Math.abs(e.lat-n.lat)*t,o=Math.abs(e.lng-n.lng)*t;return new $(new j(e.lat-r,e.lng-o),new j(n.lat+r,n.lng+o))},getCenter:function(){return new j((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new j(this.getNorth(),this.getWest())},getSouthEast:function(){return new j(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof j||"lat"in t?B(t):F(t);var e,n,r=this._southWest,o=this._northEast;return t instanceof $?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=r.lat&&n.lat<=o.lat&&e.lng>=r.lng&&n.lng<=o.lng},intersects:function(t){t=F(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),o=t.getNorthEast(),i=o.lat>=e.lat&&r.lat<=n.lat,a=o.lng>=e.lng&&r.lng<=n.lng;return i&&a},overlaps:function(t){t=F(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),o=t.getNorthEast(),i=o.lat>e.lat&&r.lat<n.lat,a=o.lng>e.lng&&r.lng<n.lng;return i&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=F(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},j.prototype={equals:function(t,e){return!!t&&(t=B(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+u(this.lat,t)+", "+u(this.lng,t)+")"},distanceTo:function(t){return W.distance(this,B(t))},wrap:function(){return W.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return F([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new j(this.lat,this.lng,this.alt)}};var H={latLngToPoint:function(t,e){var n=this.projection.project(t),r=this.scale(e);return this.transformation._transform(n,r)},pointToLatLng:function(t,e){var n=this.scale(e),r=this.transformation.untransform(t,n);return this.projection.unproject(r)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t);return new z(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new j(this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),r=e.lat-n.lat,o=e.lng-n.lng;if(0===r&&0===o)return t;var i=t.getSouthWest(),a=t.getNorthEast();return new $(new j(i.lat-r,i.lng-o),new j(a.lat-r,a.lng-o))}},W=n({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,r=t.lat*n,o=e.lat*n,i=Math.sin((e.lat-t.lat)*n/2),a=Math.sin((e.lng-t.lng)*n/2),s=i*i+Math.cos(r)*Math.cos(o)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),V=6378137,Y={R:V,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,t.lat),-n),o=Math.sin(r*e);return new D(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new j((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=V*Math.PI;return new z([-t,-t],[t,t])}()};function X(t,e,n,r){if(v(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=r}function q(t,e,n,r){return new X(t,e,n,r)}X.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new D((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var U=n({},W,{code:"EPSG:3857",projection:Y,transformation:function(){var t=.5/(Math.PI*Y.R);return q(t,.5,-t,.5)}()}),Z=n({},U,{code:"EPSG:900913"});function G(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function K(t,e){var n,r,o,i,a,s,l="";for(n=0,o=t.length;n<o;n++){for(r=0,i=(a=t[n]).length;r<i;r++)l+=(r?"L":"M")+(s=a[r]).x+" "+s.y;l+=e?Rt.svg?"z":"x":""}return l||"M0 0"}var J,Q=document.documentElement.style,tt="ActiveXObject"in window,et=tt&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),rt=zt("webkit"),ot=zt("android"),it=zt("android 2")||zt("android 3"),at=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),st=ot&&zt("Google")&&at<537&&!("AudioNode"in window),lt=!!window.opera,ct=!nt&&zt("chrome"),ut=zt("gecko")&&!rt&&!lt&&!tt,dt=!ct&&zt("safari"),ht=zt("phantom"),pt="OTransition"in Q,ft=0===navigator.platform.indexOf("Win"),mt=tt&&"transition"in Q,gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!it,vt="MozPerspective"in Q,yt=!window.L_DISABLE_3D&&(mt||gt||vt)&&!pt&&!ht,bt="undefined"!=typeof orientation||zt("mobile"),_t=bt&&rt,xt=bt&&gt,wt=!window.PointerEvent&&window.MSPointerEvent,St=!(!window.PointerEvent&&!wt),kt="ontouchstart"in window||!!window.TouchEvent,Ct=!window.L_NO_TOUCH&&(kt||St),Et=bt&&lt,Mt=bt&&ut,Ot=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Pt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",c,e),window.removeEventListener("testPassiveEventSupport",c,e)}catch(t){}return t}(),Tt=!!document.createElement("canvas").getContext,Nt=!(!document.createElementNS||!G("svg").createSVGRect),Dt=!!Nt&&((J=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(J.firstChild&&J.firstChild.namespaceURI)),At=!Nt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),Lt=0===navigator.platform.indexOf("Mac"),It=0===navigator.platform.indexOf("Linux");function zt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Rt={ie:tt,ielt9:et,edge:nt,webkit:rt,android:ot,android23:it,androidStock:st,opera:lt,chrome:ct,gecko:ut,safari:dt,phantom:ht,opera12:pt,win:ft,ie3d:mt,webkit3d:gt,gecko3d:vt,any3d:yt,mobile:bt,mobileWebkit:_t,mobileWebkit3d:xt,msPointer:wt,pointer:St,touch:Ct,touchNative:kt,mobileOpera:Et,mobileGecko:Mt,retina:Ot,passiveEvents:Pt,canvas:Tt,svg:Nt,vml:At,inlineSvg:Dt,mac:Lt,linux:It},$t=Rt.msPointer?"MSPointerDown":"pointerdown",Ft=Rt.msPointer?"MSPointerMove":"pointermove",jt=Rt.msPointer?"MSPointerUp":"pointerup",Bt=Rt.msPointer?"MSPointerCancel":"pointercancel",Ht={touchstart:$t,touchmove:Ft,touchend:jt,touchcancel:Bt},Wt={touchstart:Qt,touchmove:Jt,touchend:Jt,touchcancel:Jt},Vt={},Yt=!1;function Xt(t,e,n){return"touchstart"===e&&Kt(),Wt[e]?(n=Wt[e].bind(this,n),t.addEventListener(Ht[e],n,!1),n):(console.warn("wrong event specified:",e),c)}function qt(t,e,n){Ht[e]?t.removeEventListener(Ht[e],n,!1):console.warn("wrong event specified:",e)}function Ut(t){Vt[t.pointerId]=t}function Zt(t){Vt[t.pointerId]&&(Vt[t.pointerId]=t)}function Gt(t){delete Vt[t.pointerId]}function Kt(){Yt||(document.addEventListener($t,Ut,!0),document.addEventListener(Ft,Zt,!0),document.addEventListener(jt,Gt,!0),document.addEventListener(Bt,Gt,!0),Yt=!0)}function Jt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in e.touches=[],Vt)e.touches.push(Vt[n]);e.changedTouches=[e],t(e)}}function Qt(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ue(e),Jt(t,e)}function te(t){var e,n,r={};for(n in t)e=t[n],r[n]=e&&e.bind?e.bind(t):e;return t=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}var ee=200;function ne(t,e){t.addEventListener("dblclick",e);var n,r=0;function o(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var o=Ge(t);if(!o.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||o.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var i=Date.now();i-r<=ee?2==++n&&e(te(t)):n=1,r=i}}}else n=t.detail}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function re(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var oe,ie,ae,se,le,ce=Ee(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ue=Ee(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),de="webkitTransition"===ue||"OTransition"===ue?ue+"End":"transitionend";function he(t){return"string"==typeof t?document.getElementById(t):t}function pe(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(t,null);n=r?r[e]:null}return"auto"===n?null:n}function fe(t,e,n){var r=document.createElement(t);return r.className=e||"",n&&n.appendChild(r),r}function me(t){var e=t.parentNode;e&&e.removeChild(t)}function ge(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ve(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ye(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function be(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=Se(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function _e(t,e){if(void 0!==t.classList)for(var n=h(e),r=0,o=n.length;r<o;r++)t.classList.add(n[r]);else if(!be(t,e)){var i=Se(t);we(t,(i?i+" ":"")+e)}}function xe(t,e){void 0!==t.classList?t.classList.remove(e):we(t,d((" "+Se(t)+" ").replace(" "+e+" "," ")))}function we(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function Se(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function ke(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Ce(t,e)}function Ce(t,e){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(r)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+r+"(opacity="+e+")"}function Ee(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function Me(t,e,n){var r=e||new D(0,0);t.style[ce]=(Rt.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}function Oe(t,e){t._leaflet_pos=e,Rt.any3d?Me(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Pe(t){return t._leaflet_pos||new D(0,0)}if("onselectstart"in document)oe=function(){$e(window,"selectstart",Ue)},ie=function(){je(window,"selectstart",Ue)};else{var Te=Ee(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);oe=function(){if(Te){var t=document.documentElement.style;ae=t[Te],t[Te]="none"}},ie=function(){Te&&(document.documentElement.style[Te]=ae,ae=void 0)}}function Ne(){$e(window,"dragstart",Ue)}function De(){je(window,"dragstart",Ue)}function Ae(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Le(),se=t,le=t.style.outlineStyle,t.style.outlineStyle="none",$e(window,"keydown",Le))}function Le(){se&&(se.style.outlineStyle=le,se=void 0,le=void 0,je(window,"keydown",Le))}function Ie(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function ze(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Re={__proto__:null,TRANSFORM:ce,TRANSITION:ue,TRANSITION_END:de,get:he,getStyle:pe,create:fe,remove:me,empty:ge,toFront:ve,toBack:ye,hasClass:be,addClass:_e,removeClass:xe,setClass:we,getClass:Se,setOpacity:ke,testProp:Ee,setTransform:Me,setPosition:Oe,getPosition:Pe,get disableTextSelection(){return oe},get enableTextSelection(){return ie},disableImageDrag:Ne,enableImageDrag:De,preventOutline:Ae,restoreOutline:Le,getSizedParentNode:Ie,getScale:ze};function $e(t,e,n,r){if(e&&"object"==typeof e)for(var o in e)We(t,o,e[o],n);else for(var i=0,a=(e=h(e)).length;i<a;i++)We(t,e[i],n,r);return this}var Fe="_leaflet_events";function je(t,e,n,r){if(1===arguments.length)Be(t),delete t[Fe];else if(e&&"object"==typeof e)for(var o in e)Ve(t,o,e[o],n);else if(e=h(e),2===arguments.length)Be(t,(function(t){return-1!==y(e,t)}));else for(var i=0,a=e.length;i<a;i++)Ve(t,e[i],n,r);return this}function Be(t,e){for(var n in t[Fe]){var r=n.split(/\d/)[0];e&&!e(r)||Ve(t,r,null,null,n)}}var He={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function We(t,e,n,r){var o=e+a(n)+(r?"_"+a(r):"");if(t[Fe]&&t[Fe][o])return this;var i=function(e){return n.call(r||t,e||window.event)},s=i;!Rt.touchNative&&Rt.pointer&&0===e.indexOf("touch")?i=Xt(t,e,i):Rt.touch&&"dblclick"===e?i=ne(t,i):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(He[e]||e,i,!!Rt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(i=function(e){e=e||window.event,tn(t,e)&&s(e)},t.addEventListener(He[e],i,!1)):t.addEventListener(e,s,!1):t.attachEvent("on"+e,i),t[Fe]=t[Fe]||{},t[Fe][o]=i}function Ve(t,e,n,r,o){o=o||e+a(n)+(r?"_"+a(r):"");var i=t[Fe]&&t[Fe][o];if(!i)return this;!Rt.touchNative&&Rt.pointer&&0===e.indexOf("touch")?qt(t,e,i):Rt.touch&&"dblclick"===e?re(t,i):"removeEventListener"in t?t.removeEventListener(He[e]||e,i,!1):t.detachEvent("on"+e,i),t[Fe][o]=null}function Ye(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Xe(t){return We(t,"wheel",Ye),this}function qe(t){return $e(t,"mousedown touchstart dblclick contextmenu",Ye),t._leaflet_disable_click=!0,this}function Ue(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ze(t){return Ue(t),Ye(t),this}function Ge(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function Ke(t,e){if(!e)return new D(t.clientX,t.clientY);var n=ze(e),r=n.boundingClientRect;return new D((t.clientX-r.left)/n.x-e.clientLeft,(t.clientY-r.top)/n.y-e.clientTop)}var Je=Rt.linux&&Rt.chrome?window.devicePixelRatio:Rt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Qe(t){return Rt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Je:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function tn(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var en={__proto__:null,on:$e,off:je,stopPropagation:Ye,disableScrollPropagation:Xe,disableClickPropagation:qe,preventDefault:Ue,stop:Ze,getPropagationPath:Ge,getMousePosition:Ke,getWheelDelta:Qe,isExternalTarget:tn,addListener:$e,removeListener:je},nn=N.extend({run:function(t,e,n,r){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=Pe(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=C(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),Oe(this._el,n),this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),rn=N.extend({options:{crs:U,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=p(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(B(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ue&&Rt.any3d&&!Rt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),$e(this._proxy,de,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,r){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(B(t),e,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=n({animate:r.animate},r.zoom),r.pan=n({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,r.zoom):this._tryAnimatedPan(t,r.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,r.pan&&r.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Rt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Rt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var r=this.getZoomScale(e),o=this.getSize().divideBy(2),i=(t instanceof D?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/r),a=this.containerPointToLatLng(o.add(i));return this.setView(a,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():F(t);var n=I(e.paddingTopLeft||e.padding||[0,0]),r=I(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,n.add(r));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var i=r.subtract(n).divideBy(2),a=this.project(t.getSouthWest(),o),s=this.project(t.getNorthEast(),o);return{center:this.unproject(a.add(s).divideBy(2).add(i),o),zoom:o}},fitBounds:function(t,e){if(!(t=F(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=I(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new nn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){_e(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!Rt.any3d)return this.setView(t,e,n);this._stop();var r=this.project(this.getCenter()),o=this.project(t),i=this.getSize(),a=this._zoom;t=B(t),e=void 0===e?a:e;var s=Math.max(i.x,i.y),l=s*this.getZoomScale(a,e),c=o.distanceTo(r)||1,u=1.42,d=u*u;function h(t){var e=(l*l-s*s+(t?-1:1)*d*d*c*c)/(2*(t?l:s)*d*c),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return p(t)/f(t)}var g=h(0);function v(t){return s*(f(g)/f(g+u*t))}function y(t){return s*(f(g)*m(g+u*t)-p(g))/d}function b(t){return 1-Math.pow(1-t,1.5)}var _=Date.now(),x=(h(1)-g)/u,w=n.duration?1e3*n.duration:1e3*x*.8;function S(){var n=(Date.now()-_)/w,i=b(n)*x;n<=1?(this._flyToFrame=C(S,this),this._move(this.unproject(r.add(o.subtract(r).multiplyBy(y(i)/c)),a),this.getScaleZoom(s/v(i),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),S.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=F(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,F(t));return n.equals(r)||this.panTo(r,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=I((e=e||{}).paddingTopLeft||e.padding||[0,0]),r=I(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),i=this.project(t),a=this.getPixelBounds(),s=R([a.min.add(n),a.max.subtract(r)]),l=s.getSize();if(!s.contains(i)){this._enforcingBounds=!0;var c=i.subtract(s.getCenter()),u=s.extend(i).getSize().subtract(l);o.x+=c.x<0?-u.x:u.x,o.y+=c.y<0?-u.y:u.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),i=e.divideBy(2).round(),a=r.divideBy(2).round(),s=i.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),r=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,r,t):navigator.geolocation.getCurrentPosition(e,r,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new j(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),r=this._locateOptions;if(r.setView){var o=this.getBoundsZoom(n);this.setView(e,r.maxZoom?Math.min(o,r.maxZoom):o)}var i={latlng:e,bounds:n,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(i[a]=t.coords[a]);this.fire("locationfound",i)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),me(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)me(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=fe("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new $(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=F(t),n=I(n||[0,0]);var r=this.getZoom()||0,o=this.getMinZoom(),i=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(n),c=R(this.project(s,r),this.project(a,r)).getSize(),u=Rt.any3d?this.options.zoomSnap:1,d=l.x/c.x,h=l.y/c.y,p=e?Math.max(d,h):Math.min(d,h);return r=this.getScaleZoom(p,r),u&&(r=Math.round(r/(u/100))*(u/100),r=e?Math.ceil(r/u)*u:Math.floor(r/u)*u),Math.max(o,Math.min(i,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new D(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new z(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var r=n.zoom(t*n.scale(e));return isNaN(r)?1/0:r},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(B(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(I(t),e)},layerPointToLatLng:function(t){var e=I(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(B(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(B(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(F(t))},distance:function(t,e){return this.options.crs.distance(B(t),B(e))},containerPointToLayerPoint:function(t){return I(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return I(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(I(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(B(t)))},mouseEventToContainerPoint:function(t){return Ke(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=he(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");$e(e,"scroll",this._onScroll,this),this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Rt.any3d,_e(t,"leaflet-container"+(Rt.touch?" leaflet-touch":"")+(Rt.retina?" leaflet-retina":"")+(Rt.ielt9?" leaflet-oldie":"")+(Rt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=pe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Oe(this._mapPane,new D(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(_e(t.markerPane,"leaflet-zoom-hide"),_e(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){Oe(this._mapPane,new D(0,0));var r=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,n)._move(t,e)._moveEnd(o),this.fire("viewreset"),r&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,r){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),r?n&&n.pinch&&this.fire("zoom",n):((o||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Oe(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[a(this._container)]=this;var e=t?je:$e;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Rt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=C((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,r=[],o="mouseout"===e||"mouseover"===e,i=t.target||t.srcElement,s=!1;i;){if((n=this._targets[a(i)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(o&&!tn(i,t))break;if(r.push(n),o)break}if(i===this._container)break;i=i.parentNode}return r.length||s||o||!this.listens(e,!0)||(r=[this]),r},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var n=t.type;"mousedown"===n&&Ae(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,r){if("click"===t.type){var o=n({},t);o.type="preclick",this._fireDOMEvent(o,o.type,r)}var i=this._findEventTargets(t,e);if(r){for(var a=[],s=0;s<r.length;s++)r[s].listens(e,!0)&&a.push(r[s]);i=a.concat(i)}if(i.length){"contextmenu"===e&&Ue(t);var l=i[0],c={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var u=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=u?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),c.layerPoint=this.containerPointToLayerPoint(c.containerPoint),c.latlng=u?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(s=0;s<i.length;s++)if(i[s].fire(e,c,!0),c.originalEvent._stopped||!1===i[s].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Pe(this._mapPane)||new D(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var r=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(r)},_latLngBoundsToNewLayerBounds:function(t,e,n){var r=this._getNewPixelOrigin(n,e);return R([this.project(t.getSouthWest(),e)._subtract(r),this.project(t.getNorthWest(),e)._subtract(r),this.project(t.getSouthEast(),e)._subtract(r),this.project(t.getNorthEast(),e)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var r=this.project(t,e),o=this.getSize().divideBy(2),i=new z(r.subtract(o),r.add(o)),a=this._getBoundsOffset(i,n,e);return Math.abs(a.x)<=1&&Math.abs(a.y)<=1?t:this.unproject(r.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),r=new z(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(r,e))},_getBoundsOffset:function(t,e,n){var r=R(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),o=r.min.subtract(t.min),i=r.max.subtract(t.max);return new D(this._rebound(o.x,-i.x),this._rebound(o.y,-i.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),r=Rt.any3d?this.options.zoomSnap:1;return r&&(t=Math.round(t/r)*r),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){xe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=fe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=ce,n=this._proxy.style[e];Me(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){me(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Me(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(o)||(C((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,_e(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&xe(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function on(t,e){return new rn(t,e)}var an=O.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),r=t._controlCorners[n];return _e(e,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(e,r.firstChild):r.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(me(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),sn=function(t){return new an(t)};rn.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=fe("div",e+"control-container",this._container);function r(r,o){var i=e+r+" "+e+o;t[r+o]=fe("div",i,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)me(this._controlCorners[t]);me(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ln=an.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,r){return n<r?-1:r<n?1:0}},initialize:function(t,e,n){for(var r in p(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[r],r);for(r in e)this._addLayer(e[r],r,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return an.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(a(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){_e(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(_e(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):xe(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return xe(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=fe("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),qe(e),Xe(e);var r=this._section=fe("section",t+"-list");n&&(this._map.on("click",this.collapse,this),$e(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var o=this._layersLink=fe("a",t+"-toggle",e);o.href="#",o.title="Layers",o.setAttribute("role","button"),$e(o,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Ue(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=fe("div",t+"-base",r),this._separator=fe("div",t+"-separator",r),this._overlaysList=fe("div",t+"-overlays",r),e.appendChild(r)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&a(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(o((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ge(this._baseLayersList),ge(this._overlaysList),this._layerControlInputs=[];var t,e,n,r,o=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),e=e||r.overlay,t=t||!r.overlay,o+=r.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(t){var e,n=document.createElement("label"),r=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=r):e=this._createRadioElement("leaflet-base-layers_"+a(this),r),this._layerControlInputs.push(e),e.layerId=a(t.layer),$e(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var i=document.createElement("span");return n.appendChild(i),i.appendChild(e),i.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var t,e,n=this._layerControlInputs,r=[],o=[];this._handlingClick=!0;for(var i=n.length-1;i>=0;i--)t=n[i],e=this._getLayer(t.layerId).layer,t.checked?r.push(e):t.checked||o.push(e);for(i=0;i<o.length;i++)this._map.hasLayer(o[i])&&this._map.removeLayer(o[i]);for(i=0;i<r.length;i++)this._map.hasLayer(r[i])||this._map.addLayer(r[i]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,r=this._map.getZoom(),o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&r<e.options.minZoom||void 0!==e.options.maxZoom&&r>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,$e(t,"click",Ue),this.expand();var e=this;setTimeout((function(){je(t,"click",Ue),e._preventClick=!1}))}}),cn=function(t,e,n){return new ln(t,e,n)},un=an.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=fe("div",e+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,r,o){var i=fe("a",n,r);return i.innerHTML=t,i.href="#",i.title=e,i.setAttribute("role","button"),i.setAttribute("aria-label",e),qe(i),$e(i,"click",Ze),$e(i,"click",o,this),$e(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";xe(this._zoomInButton,e),xe(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(_e(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(_e(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});rn.mergeOptions({zoomControl:!0}),rn.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new un,this.addControl(this.zoomControl))}));var dn=function(t){return new un(t)},hn=an.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=fe("div",e),r=this.options;return this._addScales(r,e+"-line",n),t.on(r.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=fe("div",e,n)),t.imperial&&(this._iScale=fe("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,r,o=3.2808399*t;o>5280?(e=o/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(r=this._getRoundNum(o),this._updateScale(this._iScale,r+" ft",r/o))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),pn=function(t){return new hn(t)},fn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',mn=an.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Rt.inlineSvg?fn+" ":"")+"Leaflet</a>"},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=fe("div","leaflet-control-attribution"),qe(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});rn.mergeOptions({attributionControl:!0}),rn.addInitHook((function(){this.options.attributionControl&&(new mn).addTo(this)}));var gn=function(t){return new mn(t)};an.Layers=ln,an.Zoom=un,an.Scale=hn,an.Attribution=mn,sn.layers=cn,sn.zoom=dn,sn.scale=pn,sn.attribution=gn;var vn=O.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});vn.addTo=function(t,e){return t.addHandler(e,this),this};var yn={Events:T},bn=Rt.touch?"touchstart mousedown":"mousedown",_n=N.extend({options:{clickTolerance:3},initialize:function(t,e,n,r){p(this,r),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||($e(this._dragStartTarget,bn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(_n._dragging===this&&this.finishDrag(!0),je(this._dragStartTarget,bn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!be(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)_n._dragging===this&&this.finishDrag();else if(!(_n._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(_n._dragging=this,this._preventOutline&&Ae(this._element),Ne(),oe(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Ie(this._element);this._startPoint=new D(e.clientX,e.clientY),this._startPos=Pe(this._element),this._parentScale=ze(n);var r="mousedown"===t.type;$e(document,r?"mousemove":"touchmove",this._onMove,this),$e(document,r?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new D(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Ue(t),this._moved||(this.fire("dragstart"),this._moved=!0,_e(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),_e(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Oe(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){xe(document.body,"leaflet-dragging"),this._lastTarget&&(xe(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),je(document,"mousemove touchmove",this._onMove,this),je(document,"mouseup touchend touchcancel",this._onUp,this),De(),ie();var e=this._moved&&this._moving;this._moving=!1,_n._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function xn(t,e,n){var r,o,i,a,s,l,c,u,d,h=[1,4,2,8];for(o=0,c=t.length;o<c;o++)t[o]._code=Ln(t[o],e);for(a=0;a<4;a++){for(u=h[a],r=[],o=0,i=(c=t.length)-1;o<c;i=o++)s=t[o],l=t[i],s._code&u?l._code&u||((d=An(l,s,u,e,n))._code=Ln(d,e),r.push(d)):(l._code&u&&((d=An(l,s,u,e,n))._code=Ln(d,e),r.push(d)),r.push(s));t=r}return t}function wn(t,e){var n,r,o,i,a,s,l,c,u;if(!t||0===t.length)throw new Error("latlngs not passed");Rn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var d=B([0,0]),h=F(t);h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(d=Sn(t));var p=t.length,f=[];for(n=0;n<p;n++){var m=B(t[n]);f.push(e.project(B([m.lat-d.lat,m.lng-d.lng])))}for(s=l=c=0,n=0,r=p-1;n<p;r=n++)o=f[n],i=f[r],a=o.y*i.x-i.y*o.x,l+=(o.x+i.x)*a,c+=(o.y+i.y)*a,s+=3*a;u=0===s?f[0]:[l/s,c/s];var g=e.unproject(I(u));return B([g.lat+d.lat,g.lng+d.lng])}function Sn(t){for(var e=0,n=0,r=0,o=0;o<t.length;o++){var i=B(t[o]);e+=i.lat,n+=i.lng,r++}return B([e/r,n/r])}var kn,Cn={__proto__:null,clipPolygon:xn,polygonCenter:wn,centroid:Sn};function En(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=Pn(t=Nn(t,n),n)}function Mn(t,e,n){return Math.sqrt(zn(t,e,n,!0))}function On(t,e,n){return zn(t,e,n)}function Pn(t,e){var n=t.length,r=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);r[0]=r[n-1]=1,Tn(t,r,e,0,n-1);var o,i=[];for(o=0;o<n;o++)r[o]&&i.push(t[o]);return i}function Tn(t,e,n,r,o){var i,a,s,l=0;for(a=r+1;a<=o-1;a++)(s=zn(t[a],t[r],t[o],!0))>l&&(i=a,l=s);l>n&&(e[i]=1,Tn(t,e,n,r,i),Tn(t,e,n,i,o))}function Nn(t,e){for(var n=[t[0]],r=1,o=0,i=t.length;r<i;r++)In(t[r],t[o])>e&&(n.push(t[r]),o=r);return o<i-1&&n.push(t[i-1]),n}function Dn(t,e,n,r,o){var i,a,s,l=r?kn:Ln(t,n),c=Ln(e,n);for(kn=c;;){if(!(l|c))return[t,e];if(l&c)return!1;s=Ln(a=An(t,e,i=l||c,n,o),n),i===l?(t=a,l=s):(e=a,c=s)}}function An(t,e,n,r,o){var i,a,s=e.x-t.x,l=e.y-t.y,c=r.min,u=r.max;return 8&n?(i=t.x+s*(u.y-t.y)/l,a=u.y):4&n?(i=t.x+s*(c.y-t.y)/l,a=c.y):2&n?(i=u.x,a=t.y+l*(u.x-t.x)/s):1&n&&(i=c.x,a=t.y+l*(c.x-t.x)/s),new D(i,a,o)}function Ln(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function In(t,e){var n=e.x-t.x,r=e.y-t.y;return n*n+r*r}function zn(t,e,n,r){var o,i=e.x,a=e.y,s=n.x-i,l=n.y-a,c=s*s+l*l;return c>0&&((o=((t.x-i)*s+(t.y-a)*l)/c)>1?(i=n.x,a=n.y):o>0&&(i+=s*o,a+=l*o)),s=t.x-i,l=t.y-a,r?s*s+l*l:new D(i,a)}function Rn(t){return!v(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function $n(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Rn(t)}function Fn(t,e){var n,r,o,i,a,s,l,c;if(!t||0===t.length)throw new Error("latlngs not passed");Rn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var u=B([0,0]),d=F(t);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(u=Sn(t));var h=t.length,p=[];for(n=0;n<h;n++){var f=B(t[n]);p.push(e.project(B([f.lat-u.lat,f.lng-u.lng])))}for(n=0,r=0;n<h-1;n++)r+=p[n].distanceTo(p[n+1])/2;if(0===r)c=p[0];else for(n=0,i=0;n<h-1;n++)if(a=p[n],s=p[n+1],(i+=o=a.distanceTo(s))>r){l=(i-r)/o,c=[s.x-l*(s.x-a.x),s.y-l*(s.y-a.y)];break}var m=e.unproject(I(c));return B([m.lat+u.lat,m.lng+u.lng])}var jn={__proto__:null,simplify:En,pointToSegmentDistance:Mn,closestPointOnSegment:On,clipSegment:Dn,_getEdgeIntersection:An,_getBitCode:Ln,_sqClosestPointOnSegment:zn,isFlat:Rn,_flat:$n,polylineCenter:Fn},Bn={project:function(t){return new D(t.lng,t.lat)},unproject:function(t){return new j(t.y,t.x)},bounds:new z([-180,-90],[180,90])},Hn={R:6378137,R_MINOR:6356752.314245179,bounds:new z([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,r=t.lat*e,o=this.R_MINOR/n,i=Math.sqrt(1-o*o),a=i*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/Math.pow((1-a)/(1+a),i/2);return r=-n*Math.log(Math.max(s,1e-10)),new D(t.lng*e*n,r)},unproject:function(t){for(var e,n=180/Math.PI,r=this.R,o=this.R_MINOR/r,i=Math.sqrt(1-o*o),a=Math.exp(-t.y/r),s=Math.PI/2-2*Math.atan(a),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)e=i*Math.sin(s),e=Math.pow((1-e)/(1+e),i/2),s+=c=Math.PI/2-2*Math.atan(a*e)-s;return new j(s*n,t.x*n/r)}},Wn={__proto__:null,LonLat:Bn,Mercator:Hn,SphericalMercator:Y},Vn=n({},W,{code:"EPSG:3395",projection:Hn,transformation:function(){var t=.5/(Math.PI*Hn.R);return q(t,.5,-t,.5)}()}),Yn=n({},W,{code:"EPSG:4326",projection:Bn,transformation:q(1/180,1,-1/180,.5)}),Xn=n({},H,{projection:Bn,transformation:q(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,r=e.lat-t.lat;return Math.sqrt(n*n+r*r)},infinite:!0});H.Earth=W,H.EPSG3395=Vn,H.EPSG3857=U,H.EPSG900913=Z,H.EPSG4326=Yn,H.Simple=Xn;var qn=N.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[a(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[a(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});rn.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=a(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=a(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return a(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?v(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[a(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=a(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var o=this._zoomBoundLayers[r].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Un=qn.extend({initialize:function(t,e){var n,r;if(p(this,e),this._layers={},t)for(n=0,r=t.length;n<r;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,r=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,r);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return a(t)}}),Zn=function(t,e){return new Un(t,e)},Gn=Un.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Un.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Un.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new $;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),Kn=function(t,e){return new Gn(t,e)},Jn=O.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(r,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(r.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),r},_setIconStyles:function(t,e){var n=this.options,r=n[e+"Size"];"number"==typeof r&&(r=[r,r]);var o=I(r),i=I("shadow"===e&&n.shadowAnchor||n.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),i&&(t.style.marginLeft=-i.x+"px",t.style.marginTop=-i.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Rt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Qn(t){return new Jn(t)}var tr=Jn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof tr.imagePath&&(tr.imagePath=this._detectIconPath()),(this.options.imagePath||tr.imagePath)+Jn.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,n){var r=e.exec(t);return r&&r[n]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=fe("div","leaflet-default-icon-path",document.body),e=pe(t,"background-image")||pe(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),er=vn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new _n(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),_e(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&xe(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,r=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,i=Pe(e._icon),a=n.getPixelBounds(),s=n.getPixelOrigin(),l=R(a.min._subtract(s).add(o),a.max._subtract(s).subtract(o));if(!l.contains(i)){var c=I((Math.max(l.max.x,i.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,i.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,i.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,i.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(r);n.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),Oe(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=C(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,r=Pe(e._icon),o=e._map.layerPointToLatLng(r);n&&Oe(n,r),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){E(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),nr=qn.extend({options:{icon:new tr,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){p(this,e),this._latlng=B(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=B(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),_e(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&$e(n,"focus",this._panOnFocus,this);var o=t.icon.createShadow(this._shadow),i=!1;o!==this._shadow&&(this._removeShadow(),i=!0),o&&(_e(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&i&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&je(this._icon,"focus",this._panOnFocus,this),me(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&me(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Oe(this._icon,t),this._shadow&&Oe(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(_e(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),er)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new er(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&ke(this._icon,t),this._shadow&&ke(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,n=e.iconSize?I(e.iconSize):I(0,0),r=e.iconAnchor?I(e.iconAnchor):I(0,0);t.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:n.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function rr(t,e){return new nr(t,e)}var or=qn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return p(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),ir=or.extend({options:{fill:!0,radius:10},initialize:function(t,e){p(this,e),this._latlng=B(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=B(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return or.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),r=[t+n,e+n];this._pxBounds=new z(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ar(t,e){return new ir(t,e)}var sr=ir.extend({initialize:function(t,e,r){if("number"==typeof e&&(e=n({},r,{radius:e})),p(this,e),this._latlng=B(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new $(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:or.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===W.distance){var o=Math.PI/180,i=this._mRadius/W.R/o,a=n.project([e+i,t]),s=n.project([e-i,t]),l=a.add(s).divideBy(2),c=n.unproject(l).lat,u=Math.acos((Math.cos(i*o)-Math.sin(e*o)*Math.sin(c*o))/(Math.cos(e*o)*Math.cos(c*o)))/o;(isNaN(u)||0===u)&&(u=i/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(u)?0:l.x-n.project([c,t-u]).x,this._radiusY=l.y-a.y}else{var d=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(d).x}this._updateBounds()}});function lr(t,e,n){return new sr(t,e,n)}var cr=or.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){p(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,r=1/0,o=null,i=zn,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],c=1,u=l.length;c<u;c++){var d=i(t,e=l[c-1],n=l[c],!0);d<r&&(r=d,o=i(t,e,n))}return o&&(o.distance=Math.sqrt(r)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Fn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=B(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new $,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Rn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=Rn(t),r=0,o=t.length;r<o;r++)n?(e[r]=B(t[r]),this._bounds.extend(e[r])):e[r]=this._convertLatLngs(t[r]);return e},_project:function(){var t=new z;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new D(t,t);this._rawPxBounds&&(this._pxBounds=new z([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var r,o,i=t[0]instanceof j,a=t.length;if(i){for(o=[],r=0;r<a;r++)o[r]=this._map.latLngToLayerPoint(t[r]),n.extend(o[r]);e.push(o)}else for(r=0;r<a;r++)this._projectLatlngs(t[r],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,n,r,o,i,a,s,l=this._parts;for(e=0,r=0,o=this._rings.length;e<o;e++)for(n=0,i=(s=this._rings[e]).length;n<i-1;n++)(a=Dn(s[n],s[n+1],t,n,!0))&&(l[r]=l[r]||[],l[r].push(a[0]),a[1]===s[n+1]&&n!==i-2||(l[r].push(a[1]),r++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,r=t.length;n<r;n++)t[n]=En(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,r,o,i,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,i=this._parts.length;n<i;n++)for(r=0,o=(a=(s=this._parts[n]).length)-1;r<a;o=r++)if((e||0!==r)&&Mn(t,s[o],s[r])<=l)return!0;return!1}});function ur(t,e){return new cr(t,e)}cr._flat=$n;var dr=cr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return wn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=cr.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof j&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){cr.prototype._setLatLngs.call(this,t),Rn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Rn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new D(e,e);if(t=new z(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var r,o=0,i=this._rings.length;o<i;o++)(r=xn(this._rings[o],t,!0)).length&&this._parts.push(r)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,r,o,i,a,s,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,s=this._parts.length;o<s;o++)for(i=0,a=(l=(e=this._parts[o]).length)-1;i<l;a=i++)n=e[i],r=e[a],n.y>t.y!=r.y>t.y&&t.x<(r.x-n.x)*(t.y-n.y)/(r.y-n.y)+n.x&&(c=!c);return c||cr.prototype._containsPoint.call(this,t,!0)}});function hr(t,e){return new dr(t,e)}var pr=Gn.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,r,o=v(t)?t:t.features;if(o){for(e=0,n=o.length;e<n;e++)((r=o[e]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var i=this.options;if(i.filter&&!i.filter(t))return this;var a=fr(t,i);return a?(a.feature=xr(t),a.defaultOptions=a.options,this.resetStyle(a),i.onEachFeature&&i.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=n({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function fr(t,e){var n,r,o,i,a="Feature"===t.type?t.geometry:t,s=a?a.coordinates:null,l=[],c=e&&e.pointToLayer,u=e&&e.coordsToLatLng||gr;if(!s&&!a)return null;switch(a.type){case"Point":return mr(c,t,n=u(s),e);case"MultiPoint":for(o=0,i=s.length;o<i;o++)n=u(s[o]),l.push(mr(c,t,n,e));return new Gn(l);case"LineString":case"MultiLineString":return r=vr(s,"LineString"===a.type?0:1,u),new cr(r,e);case"Polygon":case"MultiPolygon":return r=vr(s,"Polygon"===a.type?1:2,u),new dr(r,e);case"GeometryCollection":for(o=0,i=a.geometries.length;o<i;o++){var d=fr({geometry:a.geometries[o],type:"Feature",properties:t.properties},e);d&&l.push(d)}return new Gn(l);case"FeatureCollection":for(o=0,i=a.features.length;o<i;o++){var h=fr(a.features[o],e);h&&l.push(h)}return new Gn(l);default:throw new Error("Invalid GeoJSON object.")}}function mr(t,e,n,r){return t?t(e,n):new nr(n,r&&r.markersInheritOptions&&r)}function gr(t){return new j(t[1],t[0],t[2])}function vr(t,e,n){for(var r,o=[],i=0,a=t.length;i<a;i++)r=e?vr(t[i],e-1,n):(n||gr)(t[i]),o.push(r);return o}function yr(t,e){return void 0!==(t=B(t)).alt?[u(t.lng,e),u(t.lat,e),u(t.alt,e)]:[u(t.lng,e),u(t.lat,e)]}function br(t,e,n,r){for(var o=[],i=0,a=t.length;i<a;i++)o.push(e?br(t[i],Rn(t[i])?0:e-1,n,r):yr(t[i],r));return!e&&n&&o.length>0&&o.push(o[0].slice()),o}function _r(t,e){return t.feature?n({},t.feature,{geometry:e}):xr(e)}function xr(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var wr={toGeoJSON:function(t){return _r(this,{type:"Point",coordinates:yr(this.getLatLng(),t)})}};function Sr(t,e){return new pr(t,e)}nr.include(wr),sr.include(wr),ir.include(wr),cr.include({toGeoJSON:function(t){var e=!Rn(this._latlngs);return _r(this,{type:(e?"Multi":"")+"LineString",coordinates:br(this._latlngs,e?1:0,!1,t)})}}),dr.include({toGeoJSON:function(t){var e=!Rn(this._latlngs),n=e&&!Rn(this._latlngs[0]),r=br(this._latlngs,n?2:e?1:0,!0,t);return e||(r=[r]),_r(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),Un.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(n){e.push(n.toGeoJSON(t).geometry.coordinates)})),_r(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,r=[];return this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(n)r.push(o.geometry);else{var i=xr(o);"FeatureCollection"===i.type?r.push.apply(r,i.features):r.push(i)}}})),n?_r(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var kr=Sr,Cr=qn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=F(e),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(_e(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){me(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ve(this._image),this},bringToBack:function(){return this._map&&ye(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=F(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:fe("img");_e(e,"leaflet-image-layer"),this._zoomAnimated&&_e(e,"leaflet-zoom-animated"),this.options.className&&_e(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=o(this.fire,this,"load"),e.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Me(this._image,n,e)},_reset:function(){var t=this._image,e=new z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();Oe(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){ke(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Er=function(t,e,n){return new Cr(t,e,n)},Mr=Cr.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:fe("video");if(_e(e,"leaflet-image-layer"),this._zoomAnimated&&_e(e,"leaflet-zoom-animated"),this.options.className&&_e(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=o(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),r=[],i=0;i<n.length;i++)r.push(n[i].src);this._url=n.length>0?r:[e.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var s=fe("source");s.src=this._url[a],e.appendChild(s)}}}});function Or(t,e,n){return new Mr(t,e,n)}var Pr=Cr.extend({_initImage:function(){var t=this._image=this._url;_e(t,"leaflet-image-layer"),this._zoomAnimated&&_e(t,"leaflet-zoom-animated"),this.options.className&&_e(t,this.options.className),t.onselectstart=c,t.onmousemove=c}});function Tr(t,e,n){return new Pr(t,e,n)}var Nr=qn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof j||v(t))?(this._latlng=B(t),p(this,e)):(p(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ke(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ke(this._container,1),this.bringToFront(),this.options.interactive&&(_e(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(ke(this._container,0),this._removeTimeout=setTimeout(o(me,void 0,this._container),200)):me(this._container),this.options.interactive&&(xe(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=B(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ve(this._container),this},bringToBack:function(){return this._map&&ye(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Gn){e=null;var n=this._source._layers;for(var r in n)if(n[r]._map){e=n[r];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=I(this.options.offset),n=this._getAnchor();this._zoomAnimated?Oe(this._container,t.add(n)):e=e.add(t).add(n);var r=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=r+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}});rn.include({_initOverlay:function(t,e,n,r){var o=e;return o instanceof t||(o=new t(r).setContent(e)),n&&o.setLatLng(n),o}}),qn.include({_initOverlay:function(t,e,n,r){var o=n;return o instanceof t?(p(o,r),o._source=this):(o=e&&!r?e:new t(r,this)).setContent(n),o}});var Dr=Nr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Nr.prototype.openOn.call(this,t)},onAdd:function(t){Nr.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof or||this._source.on("preclick",Ye))},onRemove:function(t){Nr.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof or||this._source.off("preclick",Ye))},getEvents:function(){var t=Nr.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=fe("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=fe("div",t+"-content-wrapper",e);if(this._contentNode=fe("div",t+"-content",n),qe(e),Xe(this._contentNode),$e(e,"contextmenu",Ye),this._tipContainer=fe("div",t+"-tip-container",e),this._tip=fe("div",t+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=fe("a",t+"-close-button",e);r.setAttribute("role","button"),r.setAttribute("aria-label","Close popup"),r.href="#close",r.innerHTML='<span aria-hidden="true">&#215;</span>',$e(r,"click",(function(t){Ue(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var r=t.offsetHeight,o=this.options.maxHeight,i="leaflet-popup-scrolled";o&&r>o?(e.height=o+"px",_e(t,i)):xe(t,i),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();Oe(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(pe(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,r=this._containerWidth,o=new D(this._containerLeft,-n-this._containerBottom);o._add(Pe(this._container));var i=t.layerPointToContainerPoint(o),a=I(this.options.autoPanPadding),s=I(this.options.autoPanPaddingTopLeft||a),l=I(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),u=0,d=0;i.x+r+l.x>c.x&&(u=i.x+r-c.x+l.x),i.x-u-s.x<0&&(u=i.x-s.x),i.y+n+l.y>c.y&&(d=i.y+n-c.y+l.y),i.y-d-s.y<0&&(d=i.y-s.y),(u||d)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([u,d]))}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Ar=function(t,e){return new Dr(t,e)};rn.mergeOptions({closePopupOnClick:!0}),rn.include({openPopup:function(t,e,n){return this._initOverlay(Dr,t,e,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),qn.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Dr,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Gn||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ze(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof or?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Lr=Nr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Nr.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Nr.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Nr.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=fe("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,r=this._map,o=this._container,i=r.latLngToContainerPoint(r.getCenter()),a=r.layerPointToContainerPoint(t),s=this.options.direction,l=o.offsetWidth,c=o.offsetHeight,u=I(this.options.offset),d=this._getAnchor();"top"===s?(e=l/2,n=c):"bottom"===s?(e=l/2,n=0):"center"===s?(e=l/2,n=c/2):"right"===s?(e=0,n=c/2):"left"===s?(e=l,n=c/2):a.x<i.x?(s="right",e=0,n=c/2):(s="left",e=l+2*(u.x+d.x),n=c/2),t=t.subtract(I(e,n,!0)).add(u).add(d),xe(o,"leaflet-tooltip-right"),xe(o,"leaflet-tooltip-left"),xe(o,"leaflet-tooltip-top"),xe(o,"leaflet-tooltip-bottom"),_e(o,"leaflet-tooltip-"+s),Oe(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&ke(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return I(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Ir=function(t,e){return new Lr(t,e)};rn.include({openTooltip:function(t,e,n){return this._initOverlay(Lr,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),qn.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Lr,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Gn||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&($e(e,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),$e(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",(function(){e._openOnceFlag=!1,e._openTooltip(t)}))}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,r=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});var zr=Jn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ge(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=I(n.bgPos);e.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function Rr(t){return new zr(t)}Jn.Default=tr;var $r=qn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Rt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){p(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),me(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ve(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ye(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof D?t:new D(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,r=-t(-1/0,1/0),o=0,i=n.length;o<i;o++)e=n[o].style.zIndex,n[o]!==this._container&&e&&(r=t(r,+e));isFinite(r)&&(this.options.zIndex=r+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Rt.ielt9){ke(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var r in this._tiles){var o=this._tiles[r];if(o.current&&o.loaded){var i=Math.min(1,(t-o.loaded)/200);ke(o.el,i),i<1?e=!0:(o.active?n=!0:this._onOpaqueTile(o),o.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=fe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(me(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[t],o=this._map;return r||((r=this._levels[t]={}).el=fe("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=e,r.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),r.zoom=t,this._setZoomTransform(r,o.getCenter(),o.getZoom()),c(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var r=e.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)me(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,r){var o=Math.floor(t/2),i=Math.floor(e/2),a=n-1,s=new D(+o,+i);s.z=+a;var l=this._tileCoordsToKey(s),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),a>r&&this._retainParent(o,i,a,r))},_retainChildren:function(t,e,n,r){for(var o=2*t;o<2*t+2;o++)for(var i=2*e;i<2*e+2;i++){var a=new D(o,i);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<r&&this._retainChildren(o,i,n+1,r))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,r){var o=Math.round(e);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o);var i=this.options.updateWhenZooming&&o!==this._tileZoom;r&&!i||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var r=this._map.getZoomScale(n,t.zoom),o=t.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(e,n)).round();Rt.any3d?Me(t.el,o,r):Oe(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],r).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],r).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],r).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),r=e.getZoomScale(n,this._tileZoom),o=e.project(t,this._tileZoom).floor(),i=e.getSize().divideBy(2*r);return new z(o.subtract(i),o.add(i))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var r=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(r),i=o.getCenter(),a=[],s=this.options.keepBuffer,l=new z(o.getBottomLeft().subtract([s,-s]),o.getTopRight().add([s,-s]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var u=this._tiles[c].coords;u.z===this._tileZoom&&l.contains(new D(u.x,u.y))||(this._tiles[c].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var d=o.min.y;d<=o.max.y;d++)for(var h=o.min.x;h<=o.max.x;h++){var p=new D(h,d);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:a.push(p)}}if(a.sort((function(t,e){return t.distanceTo(i)-e.distanceTo(i)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(h=0;h<a.length;h++)this._addTile(a[h],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(t);return F(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),r=t.scaleBy(n),o=r.add(n);return[e.unproject(r,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new $(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new D(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(me(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){_e(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,Rt.ielt9&&this.options.opacity<1&&ke(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),r=this._tileCoordsToKey(t),i=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(i),this.createTile.length<2&&C(o(this._tileReady,this,t,null,i)),Oe(i,n),this._tiles[r]={el:i,coords:t,current:!0},e.appendChild(i),this.fire("tileloadstart",{tile:i,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var r=this._tileCoordsToKey(t);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(ke(n.el,0),E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(_e(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Rt.ielt9||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new D(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new z(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Fr(t){return new $r(t)}var jr=$r.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=p(this,e)).detectRetina&&Rt.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return $e(n,"load",o(this._tileOnLoad,this,e,n)),$e(n,"error",o(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:Rt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=r),e["-y"]=r}return g(this._url,n(e,this.options))},_tileOnLoad:function(t,e){Rt.ielt9?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var r=this.options.errorTileUrl;r&&e.getAttribute("src")!==r&&(e.src=r),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=c,e.onerror=c,!e.complete)){e.src=b;var n=this._tiles[t].coords;me(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",b),$r.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==b))return $r.prototype._tileReady.call(this,t,e,n)}});function Br(t,e){return new jr(t,e)}var Hr=jr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var r=n({},this.defaultWmsParams);for(var o in e)o in this.options||(r[o]=e[o]);var i=(e=p(this,e)).detectRetina&&Rt.retina?2:1,a=this.getTileSize();r.width=a.x*i,r.height=a.y*i,this.wmsParams=r},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,jr.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,r=R(n.project(e[0]),n.project(e[1])),o=r.min,i=r.max,a=(this._wmsVersion>=1.3&&this._crs===Yn?[o.y,o.x,i.y,i.x]:[o.x,o.y,i.x,i.y]).join(","),s=jr.prototype.getTileUrl.call(this,t);return s+f(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});function Wr(t,e){return new Hr(t,e)}jr.WMS=Hr,Br.wms=Wr;var Vr=qn.extend({options:{padding:.1},initialize:function(t){p(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),_e(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),i=r.multiplyBy(-n).add(o).subtract(this._map._getNewPixelOrigin(t,e));Rt.any3d?Me(this._container,i,n):Oe(this._container,i)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new z(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Yr=Vr.extend({options:{tolerance:0},getEvents:function(){var t=Vr.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Vr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");$e(t,"mousemove",this._onMouseMove,this),$e(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),$e(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,me(this._container),je(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vr.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),r=Rt.retina?2:1;Oe(e,t.min),e.width=r*n.x,e.height=r*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Rt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Vr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[a(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,r=e.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete t._order,delete this._layers[a(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,r=t.options.dashArray.split(/[, ]+/),o=[];for(n=0;n<r.length;n++){if(e=Number(r[n]),isNaN(e))return;o.push(e)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new z,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)t=r.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,r,o,i,a=t._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(r=0,o=a[n].length;r<o;r++)i=a[n][r],l[r?"lineTo":"moveTo"](i.x,i.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,r=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||r)/r;1!==o&&(n.save(),n.scale(1,o)),n.beginPath(),n.arc(e.x,e.y/o,r,0,2*Math.PI,!1),1!==o&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,r=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(r)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(n=e);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(xe(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,r,i=this._drawFirst;i;i=i.next)(n=i.layer).options.interactive&&n._containsPoint(e)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(t),r&&(_e(this._container,"leaflet-interactive"),this._fireEvent([r],t,"mouseover"),this._hoveredLayer=r)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(o((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,r=e.prev;n&&(n.prev=r,r?r.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,r=e.prev;r&&(r.next=n,n?n.prev=r:r&&(this._drawLast=r),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function Xr(t){return Rt.canvas?new Yr(t):null}var qr=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ur={_initContainer:function(){this._container=fe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Vr.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=qr("shape");_e(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=qr("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;me(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,r=t.options,o=t._container;o.stroked=!!r.stroke,o.filled=!!r.fill,r.stroke?(e||(e=t._stroke=qr("stroke")),o.appendChild(e),e.weight=r.weight+"px",e.color=r.color,e.opacity=r.opacity,r.dashArray?e.dashStyle=v(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=r.lineCap.replace("butt","flat"),e.joinstyle=r.lineJoin):e&&(o.removeChild(e),t._stroke=null),r.fill?(n||(n=t._fill=qr("fill")),o.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(o.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),r=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+r+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ve(t._container)},_bringToBack:function(t){ye(t._container)}},Zr=Rt.vml?qr:G,Gr=Vr.extend({_initContainer:function(){this._container=Zr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Zr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){me(this._container),je(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vr.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),Oe(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Zr("path");t.options.className&&_e(e,t.options.className),t.options.interactive&&_e(e,"leaflet-interactive"),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){me(t._path),t.removeInteractiveTarget(t._path),delete this._layers[a(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,K(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),r="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ve(t._path)},_bringToBack:function(t){ye(t._path)}});function Kr(t){return Rt.svg||Rt.vml?new Gr(t):null}Rt.vml&&Gr.include(Ur),rn.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Xr(t)||Kr(t)}});var Jr=dr.extend({initialize:function(t,e){dr.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=F(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Qr(t,e){return new Jr(t,e)}Gr.create=Zr,Gr.pointsToPath=K,pr.geometryToLayer=fr,pr.coordsToLatLng=gr,pr.coordsToLatLngs=vr,pr.latLngToCoords=yr,pr.latLngsToCoords=br,pr.getFeature=_r,pr.asFeature=xr,rn.mergeOptions({boxZoom:!0});var to=vn.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){$e(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){je(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){me(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),oe(),Ne(),this._startPoint=this._map.mouseEventToContainerPoint(t),$e(document,{contextmenu:Ze,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=fe("div","leaflet-zoom-box",this._container),_e(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new z(this._point,this._startPoint),n=e.getSize();Oe(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(me(this._box),xe(this._container,"leaflet-crosshair")),ie(),De(),je(document,{contextmenu:Ze,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new $(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});rn.addInitHook("addHandler","boxZoom",to),rn.mergeOptions({doubleClickZoom:!0});var eo=vn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),r=e.options.zoomDelta,o=t.originalEvent.shiftKey?n-r:n+r;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});rn.addInitHook("addHandler","doubleClickZoom",eo),rn.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var no=vn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new _n(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}_e(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){xe(this._map._container,"leaflet-grab"),xe(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=F(this._map.options.maxBounds);this._offsetLimit=R(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,o=(r-e+n)%t+e-n,i=(r+e+n)%t-e-n,a=Math.abs(o+n)<Math.abs(i+n)?o:i;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,n=e.options,r=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),r)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),i=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,s=o.multiplyBy(a/i),l=s.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,l),u=s.multiplyBy(c/l),d=c/(n.inertiaDeceleration*a),h=u.multiplyBy(-d/2).round();h.x||h.y?(h=e._limitOffset(h,e.options.maxBounds),C((function(){e.panBy(h,{duration:d,easeLinearity:a,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});rn.addInitHook("addHandler","dragging",no),rn.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ro=vn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),$e(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),je(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,r=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,r=this._panKeys={},o=this.keyCodes;for(e=0,n=o.left.length;e<n;e++)r[o.left[e]]=[-1*t,0];for(e=0,n=o.right.length;e<n;e++)r[o.right[e]]=[t,0];for(e=0,n=o.down.length;e<n;e++)r[o.down[e]]=[0,t];for(e=0,n=o.up.length;e<n;e++)r[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,r=this._zoomKeys={},o=this.keyCodes;for(e=0,n=o.zoomIn.length;e<n;e++)r[o.zoomIn[e]]=t;for(e=0,n=o.zoomOut.length;e<n;e++)r[o.zoomOut[e]]=-t},_addHooks:function(){$e(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){je(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,r=this._map;if(n in this._panKeys){if(!r._panAnim||!r._panAnim._inProgress)if(e=this._panKeys[n],t.shiftKey&&(e=I(e).multiplyBy(3)),r.options.maxBounds&&(e=r._limitOffset(I(e),r.options.maxBounds)),r.options.worldCopyJump){var o=r.wrapLatLng(r.unproject(r.project(r.getCenter()).add(e)));r.panTo(o)}else r.panBy(e)}else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}Ze(t)}}});rn.addInitHook("addHandler","keyboard",ro),rn.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var oo=vn.extend({addHooks:function(){$e(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){je(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Qe(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),r),Ze(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var r=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,i=n?Math.ceil(o/n)*n:o,a=t._limitZoom(e+(this._delta>0?i:-i))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});rn.addInitHook("addHandler","scrollWheelZoom",oo);var io=600;rn.mergeOptions({tapHold:Rt.touchNative&&Rt.safari&&Rt.mobile,tapTolerance:15});var ao=vn.extend({addHooks:function(){$e(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new D(e.clientX,e.clientY),this._holdTimeout=setTimeout(o((function(){this._cancel(),this._isTapValid()&&($e(document,"touchend",Ue),$e(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),io),$e(document,"touchend touchcancel contextmenu",this._cancel,this),$e(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){je(document,"touchend",Ue),je(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),je(document,"touchend touchcancel contextmenu",this._cancel,this),je(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new D(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});rn.addInitHook("addHandler","tapHold",ao),rn.mergeOptions({touchZoom:Rt.touch,bounceAtZoomLimits:!0});var so=vn.extend({addHooks:function(){_e(this._map._container,"leaflet-touch-zoom"),$e(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){xe(this._map._container,"leaflet-touch-zoom"),je(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),$e(document,"touchmove",this._onTouchMove,this),$e(document,"touchend touchcancel",this._onTouchEnd,this),Ue(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]),i=n.distanceTo(r)/this._startDist;if(this._zoom=e.getScaleZoom(i,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&i<1||this._zoom>e.getMaxZoom()&&i>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var s=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=C(s,this,!0),Ue(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),je(document,"touchmove",this._onTouchMove,this),je(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});rn.addInitHook("addHandler","touchZoom",so),rn.BoxZoom=to,rn.DoubleClickZoom=eo,rn.Drag=no,rn.Keyboard=ro,rn.ScrollWheelZoom=oo,rn.TapHold=ao,rn.TouchZoom=so,t.Bounds=z,t.Browser=Rt,t.CRS=H,t.Canvas=Yr,t.Circle=sr,t.CircleMarker=ir,t.Class=O,t.Control=an,t.DivIcon=zr,t.DivOverlay=Nr,t.DomEvent=en,t.DomUtil=Re,t.Draggable=_n,t.Evented=N,t.FeatureGroup=Gn,t.GeoJSON=pr,t.GridLayer=$r,t.Handler=vn,t.Icon=Jn,t.ImageOverlay=Cr,t.LatLng=j,t.LatLngBounds=$,t.Layer=qn,t.LayerGroup=Un,t.LineUtil=jn,t.Map=rn,t.Marker=nr,t.Mixin=yn,t.Path=or,t.Point=D,t.PolyUtil=Cn,t.Polygon=dr,t.Polyline=cr,t.Popup=Dr,t.PosAnimation=nn,t.Projection=Wn,t.Rectangle=Jr,t.Renderer=Vr,t.SVG=Gr,t.SVGOverlay=Pr,t.TileLayer=jr,t.Tooltip=Lr,t.Transformation=X,t.Util=M,t.VideoOverlay=Mr,t.bind=o,t.bounds=R,t.canvas=Xr,t.circle=lr,t.circleMarker=ar,t.control=sn,t.divIcon=Rr,t.extend=n,t.featureGroup=Kn,t.geoJSON=Sr,t.geoJson=kr,t.gridLayer=Fr,t.icon=Qn,t.imageOverlay=Er,t.latLng=B,t.latLngBounds=F,t.layerGroup=Zn,t.map=on,t.marker=rr,t.point=I,t.polygon=hr,t.polyline=ur,t.popup=Ar,t.rectangle=Qr,t.setOptions=p,t.stamp=a,t.svg=Kr,t.svgOverlay=Tr,t.tileLayer=Br,t.tooltip=Ir,t.transformation=q,t.version=e,t.videoOverlay=Or;var lo=window.L;t.noConflict=function(){return window.L=lo,this},window.L=t}(cA.exports)),cA.exports),dA=yt(uA);function hA(t,e,n){return Object.freeze({instance:t,context:e,container:n})}function pA(t,e){return null==e?function(e,n){const r=s(void 0);return r.current||(r.current=t(e,n)),r}:function(n,r){const o=s(void 0);o.current||(o.current=t(n,r));const i=s(n),{instance:a}=o.current;return l((function(){i.current!==n&&(e(a,n,i.current),i.current=n)}),[a,n,e]),o}}function fA(t){return function(e){const n=aA(),r=t(sA(e,n),n);return function(t,e){const n=s(e);l((function(){e!==n.current&&null!=t.attributionControl&&(null!=n.current&&t.attributionControl.removeAttribution(n.current),null!=e&&t.attributionControl.addAttribution(e)),n.current=e}),[t,e])}(n.map,e.attribution),function(t,e){const n=s(void 0);l((function(){return null!=e&&t.instance.on(e),n.current=e,function(){null!=n.current&&t.instance.off(n.current),n.current=null}}),[t,e])}(r.current,e.eventHandlers),function(t,e){l((function(){return(e.layerContainer??e.map).addLayer(t.instance),function(){e.layerContainer?.removeLayer(t.instance),e.map.removeLayer(t.instance)}}),[e,t])}(r.current,n),r}}function mA(t){const e=aA().map;return l((function(){return e.on(t),function(){e.off(t)}}),[e,t]),e}function gA({bounds:t,boundsOptions:e,center:n,children:r,className:i,id:a,placeholder:d,style:h,whenReady:p,zoom:f,...m},g){const[v]=u({className:i,id:a,style:h}),[y,_]=u(null),x=s(void 0);b(g,(()=>y?.map??null),[y]);const w=c((r=>{if(null!==r&&!x.current){const o=new uA.Map(r,m);x.current=o,null!=n&&null!=f?o.setView(n,f):null!=t&&o.fitBounds(t,e),null!=p&&o.whenReady(p),_(function(t){return Object.freeze({__version:1,map:t})}(o))}}),[]);l((()=>()=>{y?.map.remove()}),[y]);const S=y?o.createElement(iA,{value:y},r):d??null;return o.createElement("div",{...v,ref:w},S)}const vA=h(gA),yA=function(t,e){return function(t){function e(e,n){const{instance:r,context:i}=t(e).current;b(n,(()=>r));const{children:a}=e;return null==a?null:o.createElement(iA,{value:i},a)}return h(e)}(fA(pA(t,e)))}((function({position:t,...e},n){const r=new uA.Marker(t,e);return hA(r,(o=n,i={overlayContainer:r},Object.freeze({...o,...i})));var o,i}),(function(t,e,n){e.position!==n.position&&t.setLatLng(e.position),null!=e.icon&&e.icon!==n.icon&&t.setIcon(e.icon),null!=e.zIndexOffset&&e.zIndexOffset!==n.zIndexOffset&&t.setZIndexOffset(e.zIndexOffset),null!=e.opacity&&e.opacity!==n.opacity&&t.setOpacity(e.opacity),null!=t.dragging&&e.draggable!==n.draggable&&(!0===e.draggable?t.dragging.enable():t.dragging.disable())})),bA=function(t,e){return function(t){function e(e,n){const{instance:r}=t(e).current;return b(n,(()=>r)),null}return h(e)}(fA(pA(t,e)))}((function({url:t,...e},n){return hA(new uA.TileLayer(t,sA(e,n)),n)}),(function(t,e,n){!function(t,e,n){const{opacity:r,zIndex:o}=e;null!=r&&r!==n.opacity&&t.setOpacity(r),null!=o&&o!==n.zIndex&&t.setZIndex(o)}(t,e,n);const{url:r}=e;null!=r&&r!==n.url&&t.setUrl(r)}));var _A={map:"Map-module_map__BEwEi",icon:"Map-module_icon__1Y4-P"};const xA=({onMapClick:t})=>(mA({click:e=>{t(e.latlng)}}),null);var wA=a((({coordinates:n,markerIcon:r,scrollWheelZoom:o=!0,zoom:i=13,className:a,onChange:s})=>{const l=dA.divIcon({className:`${_A.icon} ${r?.iconContainerClassName}`,html:N.renderToString(r?.icon||t(Za,{name:"mapMarker"}))}),[c,d]=u(n||{lat:51.505,lng:-.09});return e(vA,{center:c,zoom:i,scrollWheelZoom:o,className:`${_A.map} ${a}`,worldCopyJump:!0,maxBoundsViscosity:1,maxBounds:[[-90,-180],[90,180]],children:[t(bA,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",className:_A.tileLayer}),t(yA,{position:c,icon:l}),t(xA,{onMapClick:t=>{d(t);const e=t.lat,n=function(t){return((t+180)%360+360)%360-180}(t.lng);s?.({lat:e,lng:n})}})]})})),SA={modalContainer:"Modal-module_modalContainer__CnoII",modalContent:"Modal-module_modalContent__HNEeB",noOverflow:"Modal-module_noOverflow__oJ1i-",closeButton:"Modal-module_closeButton__AoWmd",growFromCenter:"Modal-module_growFromCenter__2PYLC",zoomIn:"Modal-module_zoomIn__QNDuv",classicModalZoom:"Modal-module_classicModalZoom__W6Xhj",shake:"Modal-module_shake__b-lIf"},kA="ModalHeader-module_modalHeader__Tn8TM";var CA=a((({className:e,prefix:n,root:r,...o})=>t(H,{className:`${kA} ${e}`,alignment:"leftCenter",dimensionX:"fill",dimensionY:36,...o,prefix:{children:n?.children,...{dimensionX:"hug",alignment:"leftCenter",...n}},root:{children:r?.children,...{dimensionX:"fill",alignment:"leftCenter",...r}}}))),EA="ModalBody-module_modalBody__WKtQo";var MA=a((({className:e,children:n,...r})=>t(B,{className:`${EA} ${e}`,alignment:"top",dimensionX:"fill",dimensionY:"fill",...r,children:n}))),OA="ModalFooter-module_modalFooter__uS-Sd";var PA=a((({className:e,prefix:n,root:r,suffix:o,...i})=>t(H,{className:`${OA} ${e}`,alignment:"leftCenter",dimensionX:"fill",dimensionY:"hug",...i,prefix:{children:n?.children,...{dimensionX:"hug",alignment:"leftCenter",...n}},root:{children:r?.children,...{dimensionX:"fill",alignment:"leftCenter",...r}},suffix:{children:o?.children,...{dimensionX:"hug",alignment:"rightCenter",...o}}})));const TA=a((({animation:n="growFromCenter",showCloseButton:r=!0,disableClose:o=!1,overflow:i=!0,children:a,onClose:s,showBackdrop:c=!0,backdropType:d="default",backdropClassName:h,backdropProps:p,isOpen:f=!1,portalClassName:m,...g})=>{const[v,y]=u(f),[b,_]=u(!1),[x,w]=u(!1);l((()=>{y(f)}),[f]);const S=()=>{y(!1),s&&s()};return v?t($D,{className:m,children:e(B,{className:SA.modalContainer,children:[t(BD,{showBackdrop:c,...p,className:h,onClick:()=>{"static"===d?(_(!0),w(!1),setTimeout((()=>{_(!1),w(!0)}),400)):S()}}),e(B,{alignment:"top",direction:"vertical",...g,className:`${SA.modalContent} ${x?"":SA[n]} ${i?"":SA.noOverflow} ${b?SA.shake:""} ${g.className}`,children:[r&&t(_s,{className:SA.closeButton,onClick:S,children:t(Za,{name:"close"}),variant:"icon"}),a]})]})}):null}));TA.Header=CA,TA.Body=MA,TA.Footer=PA;var NA="SelectOption-module_option__wQb8V",DA="SelectOption-module_disabled__m5fGS",AA="SelectOption-module_selected__A6Rky",LA="SelectOption-module_displayer__lEn8X";var IA=a((({option:e,selected:n,multiple:r,disabled:o,onSelect:i,onClick:a,...l})=>{const[c,h]=u(0),p=s(null),{value:f,label:m}="object"==typeof e?{value:e.value,label:e.label}:{value:e,label:e};return d((()=>{p.current&&h(p.current?.offsetWidth-50)}),[]),t(H,{ref:p,dimensionX:"fill",dimensionY:36,alignment:"leftCenter",onClick:a,root:{children:t(Qf,{disabled:o,dimensionX:"fill",checked:n,label:m,alignment:"leftCenter",prefix:r?void 0:{children:null},root:{className:`${l.root?.className} ${LA}`},labelProps:{style:{maxWidth:c},className:LA}}),dimensionX:"fill"},...l,className:`${NA} ${n&&AA} ${o&&DA} ${l.className||""}`})})),zA="StorageFileCard-module_container__Qj11y",RA="StorageFileCard-module_viewContainer__MEXDI",$A="StorageFileCard-module_name__U4YHd";const FA=[{regex:/^image\//,viewer:(e,n)=>t("img",{src:e.url,alt:e.name,style:n?.img})},{regex:/^video\//,viewer:()=>t(Za,{name:"movie",size:72})},{regex:/^(text\/plain|text\/javascript|application\/json)$/,viewer:(e,n)=>t("embed",{type:e.content.type,src:e.url,style:n?.embed})},{regex:/^(application\/vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|text\/csv)$/,viewer:()=>t(Za,{name:"gridOn",size:72})},{regex:/^application\/pdf/,viewer:(e,n)=>t("embed",{type:e.content.type,src:e.url,style:n?.embed})},{regex:/^application\/zip/,viewer:()=>t(Za,{name:"folderZip",size:72})}],jA=({file:e,styles:n})=>{if(!e)return null;const r=FA.find((({regex:t})=>t.test(e.content.type)));return r?r.viewer(e,n):t(Za,{name:"fileDocument",size:72})};var BA=a((({file:n,viewProps:r,nameProps:o,...i})=>{const a=jA({file:n});return e(B,{direction:"vertical",gap:10,dimensionX:200,dimensionY:200,...i,className:`${i.className} ${zA}`,children:[t(B,{alignment:"center",dimensionX:"fill",...r,className:`${r?.className} ${RA}`,children:a}),t(B,{dimensionX:"fill",alignment:"center",className:`${o?.className} ${$A}`,children:t(V,{...o,children:n.name})})]})})),HA="Switch-module_switch__-4EkK",WA="Switch-module_slider__sHGGR",VA="Switch-module_disabled__eRVsQ";const YA={large:"Switch-module_large__1uBOR",medium:"Switch-module_medium__dyhx-",small:"Switch-module_small__5Zk-N","extra-small":"Switch-module_extraSmall__JC7t5"};var XA=a((({checked:n,disabled:r=!1,containerProps:o,onChange:i,size:a="medium"})=>t(B,{...o,children:e("label",{className:`${HA} ${r&&VA} ${YA[a]}`,children:[t("input",{type:"checkbox",checked:n,disabled:r,onChange:()=>{r||i?.(!n)}}),t("span",{className:WA})]})}))),qA="Title-module_title__X4-sx";var UA=a((({type:e="h1",children:n,className:r,...i})=>t(B,{...i,children:o.createElement(e,{className:`${qA} ${r||""}`},n)}))),ZA="Accordion-module_accordionGroup__qt51Z",GA="Accordion-module_accordionItem__yV0FU",KA="Accordion-module_icon__ni8rA",JA="Accordion-module_rotate__0j95F",QA="Accordion-module_accordionTitle__JkcQk",tL="Accordion-module_suffixOnHover__hHfy1",eL="Accordion-module_open__C3ogj",nL="Accordion-module_noBackgroundOnFocus__nmKN9",rL="Accordion-module_accordionContent__VnGTH",oL="Accordion-module_accordionContentInner__dFM3D",iL="Accordion-module_bordered__4ZbV1";var aL=a((({title:n,children:r,isOpen:o,onClick:i,icon:a,bordered:s=!1,openClassName:l,itemClassName:c,contentClassName:u,headerClassName:d,suffixOnHover:h=!1,noBackgroundOnFocus:p=!1,disableSuffixIcon:f=!1})=>e("div",{className:`${GA} ${s?iL:""} ${c||""}`,children:[t(H,{dimensionX:"fill",mode:"fill",root:{children:n,alignment:"leftCenter"},suffix:{children:(()=>{if(f)return null;if(a&&"string"!=typeof a)return a;return t(Za,{name:a||"chevronDown",className:`${KA} ${o?JA:""}`})})(),className:h?tL:""},onClick:i,className:`${QA} ${o?l||eL:""} ${d||""} ${p?nL:""}`}),t("div",{className:`${rL} ${o?eL:""} ${u||""}`,children:t("div",{className:oL,children:r})})]})));var sL=a((({items:e,defaultActiveIndex:n=1,icon:r,bordered:o=!1,header:i,openClassName:a,itemClassName:s,contentClassName:l,headerClassName:c,suffixOnHover:d,noBackgroundOnFocus:h,disableSuffixIcon:p,...f})=>{const[m,g]=u(n||null);return t(B,{direction:"vertical",dimensionX:"fill",gap:10,...f,className:`${ZA} ${f.className||""}`,children:e.map(((e,n)=>t(aL,{title:e.title,isOpen:m===n+1,onClick:()=>(t=>{g(m===t?null:t)})(n+1),icon:e.icon||r,bordered:o,openClassName:a,itemClassName:s,contentClassName:l,headerClassName:c,suffixOnHover:d,noBackgroundOnFocus:h,disableSuffixIcon:p,children:e.content},n)))})})),lL="NavigatorItem-module_navigatorItem__wZkYp",cL="NavigatorItem-module_suffixButton__4TRQD";var uL=a((({label:e,prefixIcon:r,suffixIcons:o=[],...i})=>t(H,{dimensionX:"fill",dimensionY:36,mode:"fill",prefix:r&&{children:t(Za,{name:r})},root:{children:t(V,{dimensionX:"fill",children:e})},suffix:{children:o.length>0&&t(n,{children:o.map((({name:e,onClick:n},r)=>t(_s,{color:"transparent",className:cL,onClick:n,children:t(Za,{name:e})},r)))})},...i,className:`${lL} ${i.className}`}))),dL="Select-module_container__txDHr",hL="Select-module_disabled__RJ71M",pL="Select-module_displayer__gzmxI",fL="Select-module_selectDropdown__HBmga";var mL=a((({value:r,options:o,placeholder:i="Select an option",placement:a="bottom",multiple:c=!1,disabled:h=!1,maxCount:p,popupClassName:f="",optionProps:m,selectRef:g,disableClick:v,onChange:y,externalDropdownRef:_,...x})=>{const[w,S]=u(!1),[k,C]=u(r||(c?[]:null));l((()=>{(r||0===r||""===r)&&C(r)}),[r]);const E=s(null),M=s(null);b(_??{current:null},(()=>M.current));const{targetPosition:O,calculatePosition:P}=Q({containerRef:E,targetRef:M,initialPlacement:a});d((()=>{w&&E.current&&M.current&&P()}),[w,o,P]);b(g,(()=>({toggleDropdown:N,clear:T})));const T=()=>{C([]),y?.([]),S(!1)},N=t=>{S(void 0===t?t=>!t:t)},D=t=>"object"!=typeof o[0]?String(t):L(t),A=t=>t.length?"object"==typeof o[0]?t.map((t=>L(t))).join(", "):t.join(", "):i,L=t=>o.find((e=>e.value===t))?.label;return e(n,{children:[t(H,{ref:E,onClick:()=>{h||v||N()},dimensionX:"fill",dimensionY:36,...x,root:{children:t(V,{style:x.root?.style,className:`${x.root?.className} ${pL}`,children:k?c?A(k):D(k):i}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:t(Za,{name:"chevronDown"})},className:`${x.className} ${dL} ${h&&hL}`}),w&&t($D,{onClickOutside:()=>{v||S(!1)},children:t(B,{ref:M,style:{...O},className:`${f} ${fL}`,direction:"vertical",alignment:"leftTop",gap:0,children:o.map((e=>{const n="object"==typeof e?e.value:e,r=c?Array.isArray(k)&&k.includes(n):k===n,o=c&&!!p&&Array.isArray(k)&&k.length>=p&&!r;return t(IA,{disabled:o,dimensionX:E.current?.offsetWidth,multiple:c,option:e,selected:r,onClick:()=>(t=>{c?(()=>{if(!Array.isArray(k))return;const e=k.includes(t)?k.filter((e=>e!==t)):[...k,t];C(e),y?.(e)})():(C(t),y?.(t),S(!1))})(n),...m},n.toString())}))})})]})})),gL="SSOButton-module_ssoButton__UJTqm",vL="SSOButton-module_text__TOexm",yL="SSOButton-module_clicked__ubyV-",bL="SSOButton-module_active__kBZGN";var _L=a((({icon:e,label:n,onClick:r,...o})=>{const[i,a]=u(!1),l=s(null);return J({targetElements:[l],onClickOutside:()=>a(!1)}),t(H,{ref:l,dimensionX:200,alignment:"leftCenter",mode:"fill",gap:10,prefix:{children:t(Za,{name:e,size:"sm",className:i?bL:""})},root:{children:t(V,{className:`${vL} ${i?bL:""}`,children:n}),alignment:"leftCenter"},suffix:{children:i?t(Za,{name:"check",size:"sm",className:bL}):void 0},onClick:()=>{a(!0),r&&r()},...o,className:` ${o.className} ${gL} ${i?yL:""}`})})),xL="StorageFilter-module_container__ZnTbe",wL="StorageFilter-module_select__DyJK0",SL="StorageFilter-module_content__-Mtu6",kL="StorageFilter-module_left__uaxf1",CL="StorageFilter-module_chip__V-Qgq",EL="StorageFilter-module_active__pDnAF",ML=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===OL}(t)}(t)};var OL="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function PL(t,e){return!1!==e.clone&&e.isMergeableObject(t)?NL((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function TL(t,e,n){return t.concat(e).map((function(t){return PL(t,n)}))}function NL(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||TL,n.isMergeableObject=n.isMergeableObject||ML;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):function(t,e,n){var r={};return n.isMergeableObject(t)&&Object.keys(t).forEach((function(e){r[e]=PL(t[e],n)})),Object.keys(e).forEach((function(o){n.isMergeableObject(e[o])&&t[o]?r[o]=NL(t[o],e[o],n):r[o]=PL(e[o],n)})),r}(t,e,n):PL(e,n)}NL.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return NL(t,n,e)}),{})};var DL=NL,AL="object"==typeof global&&global&&global.Object===Object&&global,LL="object"==typeof self&&self&&self.Object===Object&&self,IL=AL||LL||Function("return this")(),zL=IL.Symbol,RL=Object.prototype,$L=RL.hasOwnProperty,FL=RL.toString,jL=zL?zL.toStringTag:void 0;var BL=Object.prototype.toString;var HL=zL?zL.toStringTag:void 0;function WL(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":HL&&HL in Object(t)?function(t){var e=$L.call(t,jL),n=t[jL];try{t[jL]=void 0;var r=!0}catch(t){}var o=FL.call(t);return r&&(e?t[jL]=n:delete t[jL]),o}(t):function(t){return BL.call(t)}(t)}function VL(t,e){return function(n){return t(e(n))}}var YL=VL(Object.getPrototypeOf,Object);function XL(t){return null!=t&&"object"==typeof t}var qL=Function.prototype,UL=Object.prototype,ZL=qL.toString,GL=UL.hasOwnProperty,KL=ZL.call(Object);function JL(t){if(!XL(t)||"[object Object]"!=WL(t))return!1;var e=YL(t);if(null===e)return!0;var n=GL.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ZL.call(n)==KL}function QL(t,e){return t===e||t!=t&&e!=e}function tI(t,e){for(var n=t.length;n--;)if(QL(t[n][0],e))return n;return-1}var eI=Array.prototype.splice;function nI(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function rI(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}nI.prototype.clear=function(){this.__data__=[],this.size=0},nI.prototype.delete=function(t){var e=this.__data__,n=tI(e,t);return!(n<0)&&(n==e.length-1?e.pop():eI.call(e,n,1),--this.size,!0)},nI.prototype.get=function(t){var e=this.__data__,n=tI(e,t);return n<0?void 0:e[n][1]},nI.prototype.has=function(t){return tI(this.__data__,t)>-1},nI.prototype.set=function(t,e){var n=this.__data__,r=tI(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function oI(t){if(!rI(t))return!1;var e=WL(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var iI=IL["__core-js_shared__"],aI=function(){var t=/[^.]+$/.exec(iI&&iI.keys&&iI.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var sI=Function.prototype.toString;function lI(t){if(null!=t){try{return sI.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var cI=/^\[object .+?Constructor\]$/,uI=Function.prototype,dI=Object.prototype,hI=uI.toString,pI=dI.hasOwnProperty,fI=RegExp("^"+hI.call(pI).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mI(t){return!(!rI(t)||function(t){return!!aI&&aI in t}(t))&&(oI(t)?fI:cI).test(lI(t))}function gI(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return mI(n)?n:void 0}var vI=gI(IL,"Map"),yI=gI(Object,"create");var bI=Object.prototype.hasOwnProperty;var _I=Object.prototype.hasOwnProperty;function xI(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function wI(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function SI(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}xI.prototype.clear=function(){this.__data__=yI?yI(null):{},this.size=0},xI.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},xI.prototype.get=function(t){var e=this.__data__;if(yI){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return bI.call(e,t)?e[t]:void 0},xI.prototype.has=function(t){var e=this.__data__;return yI?void 0!==e[t]:_I.call(e,t)},xI.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=yI&&void 0===e?"__lodash_hash_undefined__":e,this},SI.prototype.clear=function(){this.size=0,this.__data__={hash:new xI,map:new(vI||nI),string:new xI}},SI.prototype.delete=function(t){var e=wI(this,t).delete(t);return this.size-=e?1:0,e},SI.prototype.get=function(t){return wI(this,t).get(t)},SI.prototype.has=function(t){return wI(this,t).has(t)},SI.prototype.set=function(t,e){var n=wI(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function kI(t){var e=this.__data__=new nI(t);this.size=e.size}kI.prototype.clear=function(){this.__data__=new nI,this.size=0},kI.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},kI.prototype.get=function(t){return this.__data__.get(t)},kI.prototype.has=function(t){return this.__data__.has(t)},kI.prototype.set=function(t,e){var n=this.__data__;if(n instanceof nI){var r=n.__data__;if(!vI||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new SI(r)}return n.set(t,e),this.size=n.size,this};var CI=function(){try{var t=gI(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),EI=CI;function MI(t,e,n){"__proto__"==e&&EI?EI(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var OI=Object.prototype.hasOwnProperty;function PI(t,e,n){var r=t[e];OI.call(t,e)&&QL(r,n)&&(void 0!==n||e in t)||MI(t,e,n)}function TI(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var s=e[i],l=r?r(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),o?MI(n,s,l):PI(n,s,l)}return n}function NI(t){return XL(t)&&"[object Arguments]"==WL(t)}var DI=Object.prototype,AI=DI.hasOwnProperty,LI=DI.propertyIsEnumerable,II=NI(function(){return arguments}())?NI:function(t){return XL(t)&&AI.call(t,"callee")&&!LI.call(t,"callee")},zI=Array.isArray;var RI="object"==typeof exports&&exports&&!exports.nodeType&&exports,$I=RI&&"object"==typeof module&&module&&!module.nodeType&&module,FI=$I&&$I.exports===RI?IL.Buffer:void 0,jI=(FI?FI.isBuffer:void 0)||function(){return!1},BI=/^(?:0|[1-9]\d*)$/;function HI(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&BI.test(t))&&t>-1&&t%1==0&&t<e}function WI(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var VI={};function YI(t){return function(e){return t(e)}}VI["[object Float32Array]"]=VI["[object Float64Array]"]=VI["[object Int8Array]"]=VI["[object Int16Array]"]=VI["[object Int32Array]"]=VI["[object Uint8Array]"]=VI["[object Uint8ClampedArray]"]=VI["[object Uint16Array]"]=VI["[object Uint32Array]"]=!0,VI["[object Arguments]"]=VI["[object Array]"]=VI["[object ArrayBuffer]"]=VI["[object Boolean]"]=VI["[object DataView]"]=VI["[object Date]"]=VI["[object Error]"]=VI["[object Function]"]=VI["[object Map]"]=VI["[object Number]"]=VI["[object Object]"]=VI["[object RegExp]"]=VI["[object Set]"]=VI["[object String]"]=VI["[object WeakMap]"]=!1;var XI="object"==typeof exports&&exports&&!exports.nodeType&&exports,qI=XI&&"object"==typeof module&&module&&!module.nodeType&&module,UI=qI&&qI.exports===XI&&AL.process,ZI=function(){try{var t=qI&&qI.require&&qI.require("util").types;return t||UI&&UI.binding&&UI.binding("util")}catch(t){}}(),GI=ZI,KI=GI&&GI.isTypedArray,JI=KI?YI(KI):function(t){return XL(t)&&WI(t.length)&&!!VI[WL(t)]},QI=Object.prototype.hasOwnProperty;function tz(t,e){var n=zI(t),r=!n&&II(t),o=!n&&!r&&jI(t),i=!n&&!r&&!o&&JI(t),a=n||r||o||i,s=a?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],l=s.length;for(var c in t)!e&&!QI.call(t,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||HI(c,l))||s.push(c);return s}var ez=Object.prototype;function nz(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ez)}var rz=VL(Object.keys,Object),oz=Object.prototype.hasOwnProperty;function iz(t){return null!=t&&WI(t.length)&&!oI(t)}function az(t){return iz(t)?tz(t):function(t){if(!nz(t))return rz(t);var e=[];for(var n in Object(t))oz.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}var sz=Object.prototype.hasOwnProperty;function lz(t){if(!rI(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=nz(t),n=[];for(var r in t)("constructor"!=r||!e&&sz.call(t,r))&&n.push(r);return n}function cz(t){return iz(t)?tz(t,!0):lz(t)}var uz="object"==typeof exports&&exports&&!exports.nodeType&&exports,dz=uz&&"object"==typeof module&&module&&!module.nodeType&&module,hz=dz&&dz.exports===uz?IL.Buffer:void 0,pz=hz?hz.allocUnsafe:void 0;function fz(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function mz(){return[]}var gz=Object.prototype.propertyIsEnumerable,vz=Object.getOwnPropertySymbols,yz=vz?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}(vz(t),(function(e){return gz.call(t,e)})))}:mz,bz=yz;function _z(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}var xz=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)_z(e,bz(t)),t=YL(t);return e}:mz,wz=xz;function Sz(t,e,n){var r=e(t);return zI(t)?r:_z(r,n(t))}function kz(t){return Sz(t,az,bz)}function Cz(t){return Sz(t,cz,wz)}var Ez=gI(IL,"DataView"),Mz=gI(IL,"Promise"),Oz=gI(IL,"Set"),Pz=gI(IL,"WeakMap"),Tz="[object Map]",Nz="[object Promise]",Dz="[object Set]",Az="[object WeakMap]",Lz="[object DataView]",Iz=lI(Ez),zz=lI(vI),Rz=lI(Mz),$z=lI(Oz),Fz=lI(Pz),jz=WL;(Ez&&jz(new Ez(new ArrayBuffer(1)))!=Lz||vI&&jz(new vI)!=Tz||Mz&&jz(Mz.resolve())!=Nz||Oz&&jz(new Oz)!=Dz||Pz&&jz(new Pz)!=Az)&&(jz=function(t){var e=WL(t),n="[object Object]"==e?t.constructor:void 0,r=n?lI(n):"";if(r)switch(r){case Iz:return Lz;case zz:return Tz;case Rz:return Nz;case $z:return Dz;case Fz:return Az}return e});var Bz=jz,Hz=Object.prototype.hasOwnProperty;var Wz=IL.Uint8Array;function Vz(t){var e=new t.constructor(t.byteLength);return new Wz(e).set(new Wz(t)),e}var Yz=/\w*$/;var Xz=zL?zL.prototype:void 0,qz=Xz?Xz.valueOf:void 0;function Uz(t,e,n){var r,o=t.constructor;switch(e){case"[object ArrayBuffer]":return Vz(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return function(t,e){var n=e?Vz(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var n=e?Vz(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,Yz.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Symbol]":return r=t,qz?Object(qz.call(r)):{}}}var Zz=Object.create,Gz=function(){function t(){}return function(e){if(!rI(e))return{};if(Zz)return Zz(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Kz=Gz;var Jz=GI&&GI.isMap,Qz=Jz?YI(Jz):function(t){return XL(t)&&"[object Map]"==Bz(t)};var tR=GI&&GI.isSet,eR=tR?YI(tR):function(t){return XL(t)&&"[object Set]"==Bz(t)},nR="[object Arguments]",rR="[object Function]",oR="[object Object]",iR={};function aR(t,e,n,r,o,i){var a,s=1&e,l=2&e,c=4&e;if(n&&(a=o?n(t,r,o,i):n(t)),void 0!==a)return a;if(!rI(t))return t;var u=zI(t);if(u){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Hz.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!s)return fz(t,a)}else{var d=Bz(t),h=d==rR||"[object GeneratorFunction]"==d;if(jI(t))return function(t,e){if(e)return t.slice();var n=t.length,r=pz?pz(n):new t.constructor(n);return t.copy(r),r}(t,s);if(d==oR||d==nR||h&&!o){if(a=l||h?{}:function(t){return"function"!=typeof t.constructor||nz(t)?{}:Kz(YL(t))}(t),!s)return l?function(t,e){return TI(t,wz(t),e)}(t,function(t,e){return t&&TI(e,cz(e),t)}(a,t)):function(t,e){return TI(t,bz(t),e)}(t,function(t,e){return t&&TI(e,az(e),t)}(a,t))}else{if(!iR[d])return o?t:{};a=Uz(t,d,s)}}i||(i=new kI);var p=i.get(t);if(p)return p;i.set(t,a),eR(t)?t.forEach((function(r){a.add(aR(r,e,n,r,t,i))})):Qz(t)&&t.forEach((function(r,o){a.set(o,aR(r,e,n,o,t,i))}));var f=u?void 0:(c?l?Cz:kz:l?cz:az)(t);return function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););}(f||t,(function(r,o){f&&(r=t[o=r]),PI(a,o,aR(r,e,n,o,t,i))})),a}iR[nR]=iR["[object Array]"]=iR["[object ArrayBuffer]"]=iR["[object DataView]"]=iR["[object Boolean]"]=iR["[object Date]"]=iR["[object Float32Array]"]=iR["[object Float64Array]"]=iR["[object Int8Array]"]=iR["[object Int16Array]"]=iR["[object Int32Array]"]=iR["[object Map]"]=iR["[object Number]"]=iR[oR]=iR["[object RegExp]"]=iR["[object Set]"]=iR["[object String]"]=iR["[object Symbol]"]=iR["[object Uint8Array]"]=iR["[object Uint8ClampedArray]"]=iR["[object Uint16Array]"]=iR["[object Uint32Array]"]=!0,iR["[object Error]"]=iR[rR]=iR["[object WeakMap]"]=!1;var sR,lR;function cR(t){return aR(t,5)}var uR=function(){if(lR)return sR;lR=1;var t=Array.isArray,e=Object.keys,n=Object.prototype.hasOwnProperty,r="undefined"!=typeof Element;function o(i,a){if(i===a)return!0;if(i&&a&&"object"==typeof i&&"object"==typeof a){var s,l,c,u=t(i),d=t(a);if(u&&d){if((l=i.length)!=a.length)return!1;for(s=l;0!=s--;)if(!o(i[s],a[s]))return!1;return!0}if(u!=d)return!1;var h=i instanceof Date,p=a instanceof Date;if(h!=p)return!1;if(h&&p)return i.getTime()==a.getTime();var f=i instanceof RegExp,m=a instanceof RegExp;if(f!=m)return!1;if(f&&m)return i.toString()==a.toString();var g=e(i);if((l=g.length)!==e(a).length)return!1;for(s=l;0!=s--;)if(!n.call(a,g[s]))return!1;if(r&&i instanceof Element&&a instanceof Element)return i===a;for(s=l;0!=s--;)if(!("_owner"===(c=g[s])&&i.$$typeof||o(i[c],a[c])))return!1;return!0}return i!=i&&a!=a}return sR=function(t,e){try{return o(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}},sR}(),dR=yt(uR),hR="production"===process.env.NODE_ENV;function pR(t,e){if(!hR){if(t)return;var n="Warning: "+e;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(t){}}}function fR(t){return aR(t,4)}function mR(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function gR(t){return"symbol"==typeof t||XL(t)&&"[object Symbol]"==WL(t)}function vR(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(vR.Cache||SI),n}vR.Cache=SI;var yR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bR=/\\(\\)?/g,_R=function(t){var e=vR(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(yR,(function(t,n,r,o){e.push(r?o.replace(bR,"$1"):n||t)})),e})),xR=_R;function wR(t){if("string"==typeof t||gR(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}var SR=zL?zL.prototype:void 0,kR=SR?SR.toString:void 0;function CR(t){if("string"==typeof t)return t;if(zI(t))return mR(t,CR)+"";if(gR(t))return kR?kR.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ER(t){return zI(t)?mR(t,wR):gR(t)?[t]:fz(xR(function(t){return null==t?"":CR(t)}(t)))}function MR(){return MR=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},MR.apply(this,arguments)}function OR(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}function PR(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var TR=v(void 0);TR.displayName="FormikContext",TR.Provider,TR.Consumer;var NR=function(t){return Array.isArray(t)&&0===t.length},DR=function(t){return"function"==typeof t},AR=function(t){return null!==t&&"object"==typeof t},LR=function(t){return String(Math.floor(Number(t)))===t},IR=function(t){return"[object String]"===Object.prototype.toString.call(t)},zR=function(t){return AR(t)&&DR(t.then)};function RR(t,e,n,r){void 0===r&&(r=0);for(var o=ER(e);t&&r<o.length;)t=t[o[r++]];return r===o.length||t?void 0===t?n:t:n}function $R(t,e,n){for(var r=fR(t),o=r,i=0,a=ER(e);i<a.length-1;i++){var s=a[i],l=RR(t,a.slice(0,i+1));if(l&&(AR(l)||Array.isArray(l)))o=o[s]=fR(l);else{var c=a[i+1];o=o[s]=LR(c)&&Number(c)>=0?[]:{}}}return(0===i?t:o)[a[i]]===n?t:(void 0===n?delete o[a[i]]:o[a[i]]=n,0===i&&void 0===n&&delete r[a[i]],r)}function FR(t,e,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(t);o<i.length;o++){var a=i[o],s=t[a];AR(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},FR(s,e,n,r[a])):r[a]=e}return r}var jR={},BR={};function HR(t){var e=t.validateOnChange,n=void 0===e||e,r=t.validateOnBlur,o=void 0===r||r,a=t.validateOnMount,d=void 0!==a&&a,h=t.isInitialValid,p=t.enableReinitialize,f=void 0!==p&&p,m=t.onSubmit,g=OR(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),v=MR({validateOnChange:n,validateOnBlur:o,validateOnMount:d,onSubmit:m},g),y=s(v.initialValues),b=s(v.initialErrors||jR),_=s(v.initialTouched||BR),x=s(v.initialStatus),w=s(!1),S=s({});"production"!==process.env.NODE_ENV&&l((function(){void 0!==h&&("production"!==process.env.NODE_ENV?pR(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):pR(!1))}),[]),l((function(){return w.current=!0,function(){w.current=!1}}),[]);var k=u(0)[1],C=s({values:cR(v.initialValues),errors:cR(v.initialErrors)||jR,touched:cR(v.initialTouched)||BR,status:cR(v.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),E=C.current,M=c((function(t){var e=C.current;C.current=function(t,e){switch(e.type){case"SET_VALUES":return MR({},t,{values:e.payload});case"SET_TOUCHED":return MR({},t,{touched:e.payload});case"SET_ERRORS":return dR(t.errors,e.payload)?t:MR({},t,{errors:e.payload});case"SET_STATUS":return MR({},t,{status:e.payload});case"SET_ISSUBMITTING":return MR({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return MR({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return MR({},t,{values:$R(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return MR({},t,{touched:$R(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return MR({},t,{errors:$R(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return MR({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return MR({},t,{touched:FR(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return MR({},t,{isSubmitting:!1});default:return t}}(e,t),e!==C.current&&k((function(t){return t+1}))}),[]),O=c((function(t,e){return new Promise((function(n,r){var o=v.validate(t,e);null==o?n(jR):zR(o)?o.then((function(t){n(t||jR)}),(function(t){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",t),r(t)})):n(o)}))}),[v.validate]),P=c((function(t,e){var n=v.validationSchema,r=DR(n)?n(e):n,o=e&&r.validateAt?r.validateAt(e,t):function(t,e,n,r){void 0===n&&(n=!1);var o=VR(t);return e[n?"validateSync":"validate"](o,{abortEarly:!1,context:r||o})}(t,r);return new Promise((function(t,e){o.then((function(){t(jR)}),(function(n){"ValidationError"===n.name?t(function(t){var e={};if(t.inner){if(0===t.inner.length)return $R(e,t.path,t.message);var n=t.inner,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;RR(e,a.path)||(e=$R(e,a.path,a.message))}}return e}(n)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",n),e(n))}))}))}),[v.validationSchema]),T=c((function(t,e){return new Promise((function(n){return n(S.current[t].validate(e))}))}),[]),N=c((function(t){var e=Object.keys(S.current).filter((function(t){return DR(S.current[t].validate)})),n=e.length>0?e.map((function(e){return T(e,RR(t,e))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(t){return t.reduce((function(t,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(t=$R(t,e[r],n)),t}),{})}))}),[T]),D=c((function(t){return Promise.all([N(t),v.validationSchema?P(t):{},v.validate?O(t):{}]).then((function(t){var e=t[0],n=t[1],r=t[2];return DL.all([e,n,r],{arrayMerge:YR})}))}),[v.validate,v.validationSchema,N,O,P]),A=qR((function(t){return void 0===t&&(t=E.values),M({type:"SET_ISVALIDATING",payload:!0}),D(t).then((function(t){return w.current&&(M({type:"SET_ISVALIDATING",payload:!1}),M({type:"SET_ERRORS",payload:t})),t}))}));l((function(){d&&!0===w.current&&dR(y.current,v.initialValues)&&A(y.current)}),[d,A]);var L=c((function(t){var e=t&&t.values?t.values:y.current,n=t&&t.errors?t.errors:b.current?b.current:v.initialErrors||{},r=t&&t.touched?t.touched:_.current?_.current:v.initialTouched||{},o=t&&t.status?t.status:x.current?x.current:v.initialStatus;y.current=e,b.current=n,_.current=r,x.current=o;var i=function(){M({type:"RESET_FORM",payload:{isSubmitting:!!t&&!!t.isSubmitting,errors:n,touched:r,status:o,values:e,isValidating:!!t&&!!t.isValidating,submitCount:t&&t.submitCount&&"number"==typeof t.submitCount?t.submitCount:0}})};if(v.onReset){var a=v.onReset(E.values,Q);zR(a)?a.then(i):i()}else i()}),[v.initialErrors,v.initialStatus,v.initialTouched,v.onReset]);l((function(){!0!==w.current||dR(y.current,v.initialValues)||f&&(y.current=v.initialValues,L(),d&&A(y.current))}),[f,v.initialValues,L,d,A]),l((function(){f&&!0===w.current&&!dR(b.current,v.initialErrors)&&(b.current=v.initialErrors||jR,M({type:"SET_ERRORS",payload:v.initialErrors||jR}))}),[f,v.initialErrors]),l((function(){f&&!0===w.current&&!dR(_.current,v.initialTouched)&&(_.current=v.initialTouched||BR,M({type:"SET_TOUCHED",payload:v.initialTouched||BR}))}),[f,v.initialTouched]),l((function(){f&&!0===w.current&&!dR(x.current,v.initialStatus)&&(x.current=v.initialStatus,M({type:"SET_STATUS",payload:v.initialStatus}))}),[f,v.initialStatus,v.initialTouched]);var I=qR((function(t){if(S.current[t]&&DR(S.current[t].validate)){var e=RR(E.values,t),n=S.current[t].validate(e);return zR(n)?(M({type:"SET_ISVALIDATING",payload:!0}),n.then((function(t){return t})).then((function(e){M({type:"SET_FIELD_ERROR",payload:{field:t,value:e}}),M({type:"SET_ISVALIDATING",payload:!1})}))):(M({type:"SET_FIELD_ERROR",payload:{field:t,value:n}}),Promise.resolve(n))}return v.validationSchema?(M({type:"SET_ISVALIDATING",payload:!0}),P(E.values,t).then((function(t){return t})).then((function(e){M({type:"SET_FIELD_ERROR",payload:{field:t,value:RR(e,t)}}),M({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),z=c((function(t,e){var n=e.validate;S.current[t]={validate:n}}),[]),R=c((function(t){delete S.current[t]}),[]),$=qR((function(t,e){return M({type:"SET_TOUCHED",payload:t}),(void 0===e?o:e)?A(E.values):Promise.resolve()})),F=c((function(t){M({type:"SET_ERRORS",payload:t})}),[]),j=qR((function(t,e){var r=DR(t)?t(E.values):t;return M({type:"SET_VALUES",payload:r}),(void 0===e?n:e)?A(r):Promise.resolve()})),B=c((function(t,e){M({type:"SET_FIELD_ERROR",payload:{field:t,value:e}})}),[]),H=qR((function(t,e,r){return M({type:"SET_FIELD_VALUE",payload:{field:t,value:e}}),(void 0===r?n:r)?A($R(E.values,t,e)):Promise.resolve()})),W=c((function(t,e){var n,r=e,o=t;if(!IR(t)){t.persist&&t.persist();var i=t.target?t.target:t.currentTarget,a=i.type,s=i.name,l=i.id,c=i.value,u=i.checked,d=i.outerHTML,h=i.options,p=i.multiple;(r=e||(s||l))||"production"===process.env.NODE_ENV||WR({htmlContent:d,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),o=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(t,e,n){if("boolean"==typeof t)return Boolean(e);var r=[],o=!1,i=-1;if(Array.isArray(t))r=t,o=(i=t.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(e);if(e&&n&&!o)return r.concat(n);if(!o)return r;return r.slice(0,i).concat(r.slice(i+1))}(RR(E.values,r),u,c):h&&p?function(t){return Array.from(t).filter((function(t){return t.selected})).map((function(t){return t.value}))}(h):c}r&&H(r,o)}),[H,E.values]),V=qR((function(t){if(IR(t))return function(e){return W(e,t)};W(t)})),Y=qR((function(t,e,n){return void 0===e&&(e=!0),M({type:"SET_FIELD_TOUCHED",payload:{field:t,value:e}}),(void 0===n?o:n)?A(E.values):Promise.resolve()})),X=c((function(t,e){t.persist&&t.persist();var n=t.target,r=n.name,o=n.id,i=n.outerHTML,a=e||(r||o);a||"production"===process.env.NODE_ENV||WR({htmlContent:i,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),Y(a,!0)}),[Y]),q=qR((function(t){if(IR(t))return function(e){return X(e,t)};X(t)})),U=c((function(t){DR(t)?M({type:"SET_FORMIK_STATE",payload:t}):M({type:"SET_FORMIK_STATE",payload:function(){return t}})}),[]),Z=c((function(t){M({type:"SET_STATUS",payload:t})}),[]),G=c((function(t){M({type:"SET_ISSUBMITTING",payload:t})}),[]),K=qR((function(){return M({type:"SUBMIT_ATTEMPT"}),A().then((function(t){var e=t instanceof Error;if(!e&&0===Object.keys(t).length){var n;try{if(void 0===(n=tt()))return}catch(t){throw t}return Promise.resolve(n).then((function(t){return w.current&&M({type:"SUBMIT_SUCCESS"}),t})).catch((function(t){if(w.current)throw M({type:"SUBMIT_FAILURE"}),t}))}if(w.current&&(M({type:"SUBMIT_FAILURE"}),e))throw t}))})),J=qR((function(t){if(t&&t.preventDefault&&DR(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&DR(t.stopPropagation)&&t.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var e=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}();null!==e&&e instanceof HTMLButtonElement&&(e.attributes&&e.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?pR(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):pR(!1)))}K().catch((function(t){console.warn("Warning: An unhandled error was caught from submitForm()",t)}))})),Q={resetForm:L,validateForm:A,validateField:I,setErrors:F,setFieldError:B,setFieldTouched:Y,setFieldValue:H,setStatus:Z,setSubmitting:G,setTouched:$,setValues:j,setFormikState:U,submitForm:K},tt=qR((function(){return m(E.values,Q)})),et=qR((function(t){t&&t.preventDefault&&DR(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&DR(t.stopPropagation)&&t.stopPropagation(),L()})),nt=c((function(t){return{value:RR(E.values,t),error:RR(E.errors,t),touched:!!RR(E.touched,t),initialValue:RR(y.current,t),initialTouched:!!RR(_.current,t),initialError:RR(b.current,t)}}),[E.errors,E.touched,E.values]),rt=c((function(t){return{setValue:function(e,n){return H(t,e,n)},setTouched:function(e,n){return Y(t,e,n)},setError:function(e){return B(t,e)}}}),[H,Y,B]),ot=c((function(t){var e=AR(t),n=e?t.name:t,r=RR(E.values,n),o={name:n,value:r,onChange:V,onBlur:q};if(e){var i=t.type,a=t.value,s=t.as,l=t.multiple;"checkbox"===i?void 0===a?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(a)),o.value=a):"radio"===i?(o.checked=r===a,o.value=a):"select"===s&&l&&(o.value=o.value||[],o.multiple=!0)}return o}),[q,V,E.values]),it=i((function(){return!dR(y.current,E.values)}),[y.current,E.values]),at=i((function(){return void 0!==h?it?E.errors&&0===Object.keys(E.errors).length:!1!==h&&DR(h)?h(v):h:E.errors&&0===Object.keys(E.errors).length}),[h,it,E.errors,v]);return MR({},E,{initialValues:y.current,initialErrors:b.current,initialTouched:_.current,initialStatus:x.current,handleBlur:q,handleChange:V,handleReset:et,handleSubmit:J,resetForm:L,setErrors:F,setFormikState:U,setFieldTouched:Y,setFieldValue:H,setFieldError:B,setStatus:Z,setSubmitting:G,setTouched:$,setValues:j,submitForm:K,validateForm:A,validateField:I,isValid:at,dirty:it,unregisterField:R,registerField:z,getFieldProps:ot,getFieldMeta:nt,getFieldHelpers:rt,validateOnBlur:o,validateOnChange:n,validateOnMount:d})}function WR(t){var e=t.htmlContent,n=t.documentationAnchorLink,r=t.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+e+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+n+"\n ")}function VR(t){var e=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=String(n);!0===Array.isArray(t[r])?e[r]=t[r].map((function(t){return!0===Array.isArray(t)||JL(t)?VR(t):""!==t?t:void 0})):JL(t[r])?e[r]=VR(t[r]):e[r]=""!==t[r]?t[r]:void 0}return e}function YR(t,e,n){var r=t.slice();return e.forEach((function(e,o){if(void 0===r[o]){var i=!1!==n.clone&&n.isMergeableObject(e);r[o]=i?DL(Array.isArray(e)?[]:{},e,n):e}else n.isMergeableObject(e)?r[o]=DL(t[o],e,n):-1===t.indexOf(e)&&r.push(e)})),r}var XR="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?d:l;function qR(t){var e=s(t);return XR((function(){e.current=t})),c((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.current.apply(void 0,n)}),[])}h((function(t,e){var n,r=t.action,o=OR(t,["action"]),i=null!=r?r:"#",a=((n=p(TR))||("production"!==process.env.NODE_ENV?pR(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):pR(!1)),n),s=a.handleReset,l=a.handleSubmit;return w("form",MR({onSubmit:l,ref:e,onReset:s,action:i},o))})).displayName="Form";var UR=function(t,e,n){var r=ZR(t);return r.splice(e,0,n),r},ZR=function(t){if(t){if(Array.isArray(t))return[].concat(t);var e=Object.keys(t).map((function(t){return parseInt(t)})).reduce((function(t,e){return e>t?e:t}),0);return Array.from(MR({},t,{length:e+1}))}return[]},GR=function(t,e){var n="function"==typeof t?t:e;return function(t){if(Array.isArray(t)||AR(t)){var e=ZR(t);return n(e)}return t}},KR=function(t){var e,n;function r(e){var n;return(n=t.call(this,e)||this).updateArrayField=function(t,e,r){var o=n.props,i=o.name;(0,o.formik.setFormikState)((function(n){var o=GR(r,t),a=GR(e,t),s=$R(n.values,i,t(RR(n.values,i))),l=r?o(RR(n.errors,i)):void 0,c=e?a(RR(n.touched,i)):void 0;return NR(l)&&(l=void 0),NR(c)&&(c=void 0),MR({},n,{values:s,errors:r?$R(n.errors,i,l):n.errors,touched:e?$R(n.touched,i,c):n.touched})}))},n.push=function(t){return n.updateArrayField((function(e){return[].concat(ZR(e),[cR(t)])}),!1,!1)},n.handlePush=function(t){return function(){return n.push(t)}},n.swap=function(t,e){return n.updateArrayField((function(n){return function(t,e,n){var r=ZR(t),o=r[e];return r[e]=r[n],r[n]=o,r}(n,t,e)}),!0,!0)},n.handleSwap=function(t,e){return function(){return n.swap(t,e)}},n.move=function(t,e){return n.updateArrayField((function(n){return function(t,e,n){var r=ZR(t),o=r[e];return r.splice(e,1),r.splice(n,0,o),r}(n,t,e)}),!0,!0)},n.handleMove=function(t,e){return function(){return n.move(t,e)}},n.insert=function(t,e){return n.updateArrayField((function(n){return UR(n,t,e)}),(function(e){return UR(e,t,null)}),(function(e){return UR(e,t,null)}))},n.handleInsert=function(t,e){return function(){return n.insert(t,e)}},n.replace=function(t,e){return n.updateArrayField((function(n){return function(t,e,n){var r=ZR(t);return r[e]=n,r}(n,t,e)}),!1,!1)},n.handleReplace=function(t,e){return function(){return n.replace(t,e)}},n.unshift=function(t){var e=-1;return n.updateArrayField((function(n){var r=n?[t].concat(n):[t];return e=r.length,r}),(function(t){return t?[null].concat(t):[null]}),(function(t){return t?[null].concat(t):[null]})),e},n.handleUnshift=function(t){return function(){return n.unshift(t)}},n.handleRemove=function(t){return function(){return n.remove(t)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(PR(n)),n.pop=n.pop.bind(PR(n)),n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.componentDidUpdate=function(t){this.props.validateOnChange&&this.props.formik.validateOnChange&&!dR(RR(t.formik.values,t.name),RR(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},o.remove=function(t){var e;return this.updateArrayField((function(n){var r=n?ZR(n):[];return e||(e=r[t]),DR(r.splice)&&r.splice(t,1),DR(r.every)&&r.every((function(t){return void 0===t}))?[]:r}),!0,!0),e},o.pop=function(){var t;return this.updateArrayField((function(e){var n=e.slice();return t||(t=n&&n.pop&&n.pop()),n}),!0,!0),t},o.render=function(){var t={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},e=this.props,n=e.component,r=e.render,o=e.children,i=e.name,a=MR({},t,{form:OR(e.formik,["validate","validationSchema"]),name:i});return n?w(n,a):r?r(a):o?"function"==typeof o?o(a):function(t){return 0===y.count(t)}(o)?null:y.only(o):null},r}(S);KR.defaultProps={validateOnChange:!0};const JR=[{value:"jpg",label:"JPG"},{value:"png",label:"PNG"},{value:"mp4",label:"MP4"}],QR=["kb","mb","gb","tb"],t$=[{value:"last_1_hour",label:"Last 1 Hour"},{value:"last_6_hour",label:"Last 6 Hour"},{value:"last_12_hour",label:"Last 12 Hour"},{value:"last_24_hour",label:"Last 24 Hour"},{value:"last_2_days",label:"Last 2 Days"},{value:"last_7_days",label:"Last 7 Days"},{value:"last_14_days",label:"Last 14 Days"},{value:"last_28_days",label:"Last 28 Days"},{value:"today",label:"Today"},{value:"yesterday",label:"Yesterday"},{value:"this_week",label:"This Week"},{value:"last_week",label:"Last Week"}];var e$=a((({onApply:n,onCancel:r})=>{const o=HR({initialValues:{type:["jpg","png","mp4"],fileSize:{min:{value:1,unit:"mb"},max:{value:10,unit:"gb"}},quickdate:null,dateRange:{from:null,to:null}},onSubmit:t=>i(t)}),i=t=>{n?.(t)};return t("form",{onSubmit:o.handleSubmit,children:e(B,{dimensionX:515,dimensionY:350,gap:10,className:xL,direction:"vertical",children:[t(H,{dimensionX:"fill",prefix:{children:t(V,{children:"Type"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:t(mL,{dimensionY:"hug",options:JR,value:o.values.type,onChange:t=>o.setFieldValue("type",t),dimensionX:200,alignment:"rightCenter",placeholder:"",multiple:!0,className:`${wL} ${SL}`})}}),t(H,{dimensionX:"fill",prefix:{children:t(V,{children:"File Size"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:e(B,{className:SL,children:[e(B,{className:kL,children:[t(G,{value:o.values.fileSize.min.value,type:"number",dimensionX:45,onChange:t=>o.setFieldValue("fileSize.min.value",t.target.value)}),t(mL,{dimensionY:"hug",options:QR,dimensionX:60,onChange:t=>o.setFieldValue("fileSize.min.unit",t),alignment:"rightCenter",placeholder:"",value:o.values.fileSize.min.unit,className:wL})]}),e(B,{children:[t(G,{value:o.values.fileSize.max.value,type:"number",dimensionX:45,onChange:t=>o.setFieldValue("fileSize.max.value",t.target.value)}),t(mL,{dimensionY:"hug",options:QR,dimensionX:60,onChange:t=>o.setFieldValue("fileSize.max.unit",t),alignment:"rightCenter",placeholder:"",value:o.values.fileSize.max.unit,className:wL})]})]})}}),t(V,{dimensionX:"fill",children:"Created At"}),t(B,{direction:"wrap",dimensionX:"fill",children:t$.map((e=>{const n=o.values.quickdate===e.value;return t(em,{gap:5,dimensionX:120,label:e.label,className:`${CL} ${n&&EL}`,variant:"outlined",suffixIcon:n?"check":void 0,onClick:()=>o.setFieldValue("quickdate",e.value)},e.value)}))}),t(H,{dimensionX:"fill",prefix:{children:t(V,{children:"From"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:t(B,{className:SL,dimensionY:31.5,dimensionX:200,children:t(PD,{onChange:t=>o.setFieldValue("dateRange.from",t),value:o.values.dateRange.from||null,placeholder:"Date",suffixIcon:t(Za,{name:"chevronDown"}),format:"YYYY-MM-DD HH:mm:ss",showTime:!0})})}}),t(H,{dimensionX:"fill",prefix:{children:t(V,{children:"To"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:t(B,{className:SL,dimensionY:31.5,dimensionX:200,children:t(PD,{onChange:t=>o.setFieldValue("dateRange.to",t),value:o.values.dateRange.to,placeholder:"Date",suffixIcon:t(Za,{name:"chevronDown"}),format:"YYYY-MM-DD HH:mm:ss",showTime:!0})})}}),e(B,{dimensionX:"fill",alignment:"rightCenter",children:[e(_s,{color:"transparent",variant:"text",onClick:()=>{r?.()},children:[t(Za,{name:"close"}),"Cancel"]}),e(_s,{type:"submit",children:[t(Za,{name:"filter"})," Apply"]})]})]})})})),n$="Timeline-module_pan__6qEQq",r$="Timeline-module_container__s3lvD",o$="Timeline-module_date__z5hHi",i$="Timeline-module_from__K9jIK",a$="Timeline-module_to__gGj9w";const s$="label";function l$(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function c$(t,e){t.labels=e}function u$(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s$;const r=[];t.datasets=e.map((e=>{const o=t.datasets.find((t=>t[n]===e[n]));return o&&e.data&&!r.includes(o)?(r.push(o),Object.assign(o,e),o):{...e}}))}function d$(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s$;const n={labels:[],datasets:[]};return c$(n,t.labels),u$(n,t.datasets,e),n}function h$(t,e){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:c,data:u,options:d,plugins:h=[],fallbackContent:p,updateMode:f,...m}=t,g=s(null),v=s(null),y=()=>{g.current&&(v.current=new qh(g.current,{type:c,data:d$(u,a),options:d&&{...d},plugins:h}),l$(e,v.current))},b=()=>{l$(e,null),v.current&&(v.current.destroy(),v.current=null)};return l((()=>{!i&&v.current&&d&&function(t,e){const n=t.options;n&&e&&Object.assign(n,e)}(v.current,d)}),[i,d]),l((()=>{!i&&v.current&&c$(v.current.config.data,u.labels)}),[i,u.labels]),l((()=>{!i&&v.current&&u.datasets&&u$(v.current.config.data,u.datasets,a)}),[i,u.datasets]),l((()=>{v.current&&(i?(b(),setTimeout(y)):v.current.update(f))}),[i,d,u.labels,u.datasets,f]),l((()=>{v.current&&(b(),setTimeout(y))}),[c]),l((()=>(y(),()=>b())),[]),o.createElement("canvas",{ref:g,role:"img",height:n,width:r,...m},p)}const p$=h(h$);function f$(t,e){return qh.register(e),h(((e,n)=>o.createElement(p$,{...e,ref:n,type:t})))}const m$=f$("bar",md);var g$,v$={exports:{}};
67
+ */var uA=(lA||(lA=1,function(t){var e="1.9.4";function n(t){var e,n,r,o;for(n=1,r=arguments.length;n<r;n++)for(e in o=arguments[n])t[e]=o[e];return t}var r=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function o(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var r=n.call(arguments,2);return function(){return t.apply(e,r.length?r.concat(n.call(arguments)):arguments)}}var i=0;function a(t){return"_leaflet_id"in t||(t._leaflet_id=++i),t._leaflet_id}function s(t,e,n){var r,o,i,a;return a=function(){r=!1,o&&(i.apply(n,o),o=!1)},i=function(){r?o=arguments:(t.apply(n,arguments),setTimeout(a,e),r=!0)},i}function l(t,e,n){var r=e[1],o=e[0],i=r-o;return t===r&&n?t:((t-o)%i+i)%i+o}function c(){return!1}function u(t,e){if(!1===e)return t;var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function d(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function h(t){return d(t).split(/\s+/)}function p(t,e){for(var n in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?r(t.options):{}),e)t.options[n]=e[n];return t.options}function f(t,e,n){var r=[];for(var o in t)r.push(encodeURIComponent(n?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+r.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(t,e){return t.replace(m,(function(t,n){var r=e[n];if(void 0===r)throw new Error("No value provided for variable "+t);return"function"==typeof r&&(r=r(e)),r}))}var v=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function y(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function _(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function w(t){var e=+new Date,n=Math.max(0,16-(e-x));return x=e+n,window.setTimeout(t,n)}var S=window.requestAnimationFrame||_("RequestAnimationFrame")||w,k=window.cancelAnimationFrame||_("CancelAnimationFrame")||_("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function C(t,e,n){if(!n||S!==w)return S.call(window,o(t,e));t.call(e)}function E(t){t&&k.call(window,t)}var M={__proto__:null,extend:n,create:r,bind:o,get lastId(){return i},stamp:a,throttle:s,wrapNum:l,falseFn:c,formatNum:u,trim:d,splitWords:h,setOptions:p,getParamString:f,template:g,isArray:v,indexOf:y,emptyImageUrl:b,requestFn:S,cancelFn:k,requestAnimFrame:C,cancelAnimFrame:E};function O(){}function P(t){if("undefined"!=typeof L&&L&&L.Mixin){t=v(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}O.extend=function(t){var e=function(){p(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=e.__super__=this.prototype,i=r(o);for(var a in i.constructor=e,e.prototype=i,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(e[a]=this[a]);return t.statics&&n(e,t.statics),t.includes&&(P(t.includes),n.apply(null,[i].concat(t.includes))),n(i,t),delete i.statics,delete i.includes,i.options&&(i.options=o.options?r(o.options):{},n(i.options,t.options)),i._initHooks=[],i.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=i._initHooks.length;t<e;t++)i._initHooks[t].call(this)}},e},O.include=function(t){var e=this.prototype.options;return n(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},O.mergeOptions=function(t){return n(this.prototype.options,t),this},O.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var T={on:function(t,e,n){if("object"==typeof t)for(var r in t)this._on(r,t[r],e);else for(var o=0,i=(t=h(t)).length;o<i;o++)this._on(t[o],e,n);return this},off:function(t,e,n){if(arguments.length)if("object"==typeof t)for(var r in t)this._off(r,t[r],e);else{t=h(t);for(var o=1===arguments.length,i=0,a=t.length;i<a;i++)o?this._off(t[i]):this._off(t[i],e,n)}else delete this._events;return this},_on:function(t,e,n,r){if("function"==typeof e){if(!1===this._listens(t,e,n)){n===this&&(n=void 0);var o={fn:e,ctx:n};r&&(o.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(o)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,n){var r,o,i;if(this._events&&(r=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var a=this._listens(t,e,n);if(!1!==a){var s=r[a];this._firingCount&&(s.fn=c,this._events[t]=r=r.slice()),r.splice(a,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(o=0,i=r.length;o<i;o++)r[o].fn=c;delete this._events[t]}},fire:function(t,e,r){if(!this.listens(t,r))return this;var o=n({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var i=this._events[t];if(i){this._firingCount=this._firingCount+1||1;for(var a=0,s=i.length;a<s;a++){var l=i[a],c=l.fn;l.once&&this.off(t,c,l.ctx),c.call(l.ctx||this,o)}this._firingCount--}}return r&&this._propagateEvent(o),this},listens:function(t,e,n,r){"string"!=typeof t&&console.warn('"string" type argument expected');var o=e;"function"!=typeof e&&(r=!!e,o=void 0,n=void 0);var i=this._events&&this._events[t];if(i&&i.length&&!1!==this._listens(t,o,n))return!0;if(r)for(var a in this._eventParents)if(this._eventParents[a].listens(t,e,n,r))return!0;return!1},_listens:function(t,e,n){if(!this._events)return!1;var r=this._events[t]||[];if(!e)return!!r.length;n===this&&(n=void 0);for(var o=0,i=r.length;o<i;o++)if(r[o].fn===e&&r[o].ctx===n)return o;return!1},once:function(t,e,n){if("object"==typeof t)for(var r in t)this._on(r,t[r],e,!0);else for(var o=0,i=(t=h(t)).length;o<i;o++)this._on(t[o],e,n,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[a(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[a(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),!0)}};T.addEventListener=T.on,T.removeEventListener=T.clearAllEventListeners=T.off,T.addOneTimeEventListener=T.once,T.fireEvent=T.fire,T.hasEventListeners=T.listens;var N=O.extend(T);function D(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var A=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function I(t,e,n){return t instanceof D?t:v(t)?new D(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new D(t.x,t.y):new D(t,e,n)}function z(t,e){if(t)for(var n=e?[t,e]:t,r=0,o=n.length;r<o;r++)this.extend(n[r])}function R(t,e){return!t||t instanceof z?t:new z(t,e)}function $(t,e){if(t)for(var n=e?[t,e]:t,r=0,o=n.length;r<o;r++)this.extend(n[r])}function F(t,e){return t instanceof $?t:new $(t,e)}function j(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function B(t,e,n){return t instanceof j?t:v(t)&&"object"!=typeof t[0]?3===t.length?new j(t[0],t[1],t[2]):2===t.length?new j(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new j(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new j(t,e,n)}D.prototype={clone:function(){return new D(this.x,this.y)},add:function(t){return this.clone()._add(I(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(I(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new D(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new D(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=A(this.x),this.y=A(this.y),this},distanceTo:function(t){var e=(t=I(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=I(t)).x===this.x&&t.y===this.y},contains:function(t){return t=I(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},z.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof D||"number"==typeof t[0]||"x"in t)e=n=I(t);else if(e=(t=R(t)).min,n=t.max,!e||!n)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=e.clone(),this.max=n.clone()),this},getCenter:function(t){return I((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return I(this.min.x,this.max.y)},getTopRight:function(){return I(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t="number"==typeof t[0]||t instanceof D?I(t):R(t))instanceof z?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=R(t);var e=this.min,n=this.max,r=t.min,o=t.max,i=o.x>=e.x&&r.x<=n.x,a=o.y>=e.y&&r.y<=n.y;return i&&a},overlaps:function(t){t=R(t);var e=this.min,n=this.max,r=t.min,o=t.max,i=o.x>e.x&&r.x<n.x,a=o.y>e.y&&r.y<n.y;return i&&a},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,n=this.max,r=Math.abs(e.x-n.x)*t,o=Math.abs(e.y-n.y)*t;return R(I(e.x-r,e.y-o),I(n.x+r,n.y+o))},equals:function(t){return!!t&&(t=R(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},$.prototype={extend:function(t){var e,n,r=this._southWest,o=this._northEast;if(t instanceof j)e=t,n=t;else{if(!(t instanceof $))return t?this.extend(B(t)||F(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return r||o?(r.lat=Math.min(e.lat,r.lat),r.lng=Math.min(e.lng,r.lng),o.lat=Math.max(n.lat,o.lat),o.lng=Math.max(n.lng,o.lng)):(this._southWest=new j(e.lat,e.lng),this._northEast=new j(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,r=Math.abs(e.lat-n.lat)*t,o=Math.abs(e.lng-n.lng)*t;return new $(new j(e.lat-r,e.lng-o),new j(n.lat+r,n.lng+o))},getCenter:function(){return new j((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new j(this.getNorth(),this.getWest())},getSouthEast:function(){return new j(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof j||"lat"in t?B(t):F(t);var e,n,r=this._southWest,o=this._northEast;return t instanceof $?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=r.lat&&n.lat<=o.lat&&e.lng>=r.lng&&n.lng<=o.lng},intersects:function(t){t=F(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),o=t.getNorthEast(),i=o.lat>=e.lat&&r.lat<=n.lat,a=o.lng>=e.lng&&r.lng<=n.lng;return i&&a},overlaps:function(t){t=F(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),o=t.getNorthEast(),i=o.lat>e.lat&&r.lat<n.lat,a=o.lng>e.lng&&r.lng<n.lng;return i&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=F(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},j.prototype={equals:function(t,e){return!!t&&(t=B(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+u(this.lat,t)+", "+u(this.lng,t)+")"},distanceTo:function(t){return W.distance(this,B(t))},wrap:function(){return W.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return F([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new j(this.lat,this.lng,this.alt)}};var H={latLngToPoint:function(t,e){var n=this.projection.project(t),r=this.scale(e);return this.transformation._transform(n,r)},pointToLatLng:function(t,e){var n=this.scale(e),r=this.transformation.untransform(t,n);return this.projection.unproject(r)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t);return new z(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new j(this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),r=e.lat-n.lat,o=e.lng-n.lng;if(0===r&&0===o)return t;var i=t.getSouthWest(),a=t.getNorthEast();return new $(new j(i.lat-r,i.lng-o),new j(a.lat-r,a.lng-o))}},W=n({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,r=t.lat*n,o=e.lat*n,i=Math.sin((e.lat-t.lat)*n/2),a=Math.sin((e.lng-t.lng)*n/2),s=i*i+Math.cos(r)*Math.cos(o)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),V=6378137,Y={R:V,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,t.lat),-n),o=Math.sin(r*e);return new D(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new j((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=V*Math.PI;return new z([-t,-t],[t,t])}()};function X(t,e,n,r){if(v(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=r}function q(t,e,n,r){return new X(t,e,n,r)}X.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new D((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var U=n({},W,{code:"EPSG:3857",projection:Y,transformation:function(){var t=.5/(Math.PI*Y.R);return q(t,.5,-t,.5)}()}),Z=n({},U,{code:"EPSG:900913"});function G(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function K(t,e){var n,r,o,i,a,s,l="";for(n=0,o=t.length;n<o;n++){for(r=0,i=(a=t[n]).length;r<i;r++)l+=(r?"L":"M")+(s=a[r]).x+" "+s.y;l+=e?Rt.svg?"z":"x":""}return l||"M0 0"}var J,Q=document.documentElement.style,tt="ActiveXObject"in window,et=tt&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),rt=zt("webkit"),ot=zt("android"),it=zt("android 2")||zt("android 3"),at=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),st=ot&&zt("Google")&&at<537&&!("AudioNode"in window),lt=!!window.opera,ct=!nt&&zt("chrome"),ut=zt("gecko")&&!rt&&!lt&&!tt,dt=!ct&&zt("safari"),ht=zt("phantom"),pt="OTransition"in Q,ft=0===navigator.platform.indexOf("Win"),mt=tt&&"transition"in Q,gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!it,vt="MozPerspective"in Q,yt=!window.L_DISABLE_3D&&(mt||gt||vt)&&!pt&&!ht,bt="undefined"!=typeof orientation||zt("mobile"),_t=bt&&rt,xt=bt&&gt,wt=!window.PointerEvent&&window.MSPointerEvent,St=!(!window.PointerEvent&&!wt),kt="ontouchstart"in window||!!window.TouchEvent,Ct=!window.L_NO_TOUCH&&(kt||St),Et=bt&&lt,Mt=bt&&ut,Ot=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Pt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",c,e),window.removeEventListener("testPassiveEventSupport",c,e)}catch(t){}return t}(),Tt=!!document.createElement("canvas").getContext,Nt=!(!document.createElementNS||!G("svg").createSVGRect),Dt=!!Nt&&((J=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(J.firstChild&&J.firstChild.namespaceURI)),At=!Nt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),Lt=0===navigator.platform.indexOf("Mac"),It=0===navigator.platform.indexOf("Linux");function zt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Rt={ie:tt,ielt9:et,edge:nt,webkit:rt,android:ot,android23:it,androidStock:st,opera:lt,chrome:ct,gecko:ut,safari:dt,phantom:ht,opera12:pt,win:ft,ie3d:mt,webkit3d:gt,gecko3d:vt,any3d:yt,mobile:bt,mobileWebkit:_t,mobileWebkit3d:xt,msPointer:wt,pointer:St,touch:Ct,touchNative:kt,mobileOpera:Et,mobileGecko:Mt,retina:Ot,passiveEvents:Pt,canvas:Tt,svg:Nt,vml:At,inlineSvg:Dt,mac:Lt,linux:It},$t=Rt.msPointer?"MSPointerDown":"pointerdown",Ft=Rt.msPointer?"MSPointerMove":"pointermove",jt=Rt.msPointer?"MSPointerUp":"pointerup",Bt=Rt.msPointer?"MSPointerCancel":"pointercancel",Ht={touchstart:$t,touchmove:Ft,touchend:jt,touchcancel:Bt},Wt={touchstart:Qt,touchmove:Jt,touchend:Jt,touchcancel:Jt},Vt={},Yt=!1;function Xt(t,e,n){return"touchstart"===e&&Kt(),Wt[e]?(n=Wt[e].bind(this,n),t.addEventListener(Ht[e],n,!1),n):(console.warn("wrong event specified:",e),c)}function qt(t,e,n){Ht[e]?t.removeEventListener(Ht[e],n,!1):console.warn("wrong event specified:",e)}function Ut(t){Vt[t.pointerId]=t}function Zt(t){Vt[t.pointerId]&&(Vt[t.pointerId]=t)}function Gt(t){delete Vt[t.pointerId]}function Kt(){Yt||(document.addEventListener($t,Ut,!0),document.addEventListener(Ft,Zt,!0),document.addEventListener(jt,Gt,!0),document.addEventListener(Bt,Gt,!0),Yt=!0)}function Jt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in e.touches=[],Vt)e.touches.push(Vt[n]);e.changedTouches=[e],t(e)}}function Qt(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ue(e),Jt(t,e)}function te(t){var e,n,r={};for(n in t)e=t[n],r[n]=e&&e.bind?e.bind(t):e;return t=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}var ee=200;function ne(t,e){t.addEventListener("dblclick",e);var n,r=0;function o(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var o=Ge(t);if(!o.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||o.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var i=Date.now();i-r<=ee?2==++n&&e(te(t)):n=1,r=i}}}else n=t.detail}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function re(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var oe,ie,ae,se,le,ce=Ee(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ue=Ee(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),de="webkitTransition"===ue||"OTransition"===ue?ue+"End":"transitionend";function he(t){return"string"==typeof t?document.getElementById(t):t}function pe(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(t,null);n=r?r[e]:null}return"auto"===n?null:n}function fe(t,e,n){var r=document.createElement(t);return r.className=e||"",n&&n.appendChild(r),r}function me(t){var e=t.parentNode;e&&e.removeChild(t)}function ge(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ve(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ye(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function be(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=Se(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function _e(t,e){if(void 0!==t.classList)for(var n=h(e),r=0,o=n.length;r<o;r++)t.classList.add(n[r]);else if(!be(t,e)){var i=Se(t);we(t,(i?i+" ":"")+e)}}function xe(t,e){void 0!==t.classList?t.classList.remove(e):we(t,d((" "+Se(t)+" ").replace(" "+e+" "," ")))}function we(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function Se(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function ke(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Ce(t,e)}function Ce(t,e){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(r)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+r+"(opacity="+e+")"}function Ee(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function Me(t,e,n){var r=e||new D(0,0);t.style[ce]=(Rt.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}function Oe(t,e){t._leaflet_pos=e,Rt.any3d?Me(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Pe(t){return t._leaflet_pos||new D(0,0)}if("onselectstart"in document)oe=function(){$e(window,"selectstart",Ue)},ie=function(){je(window,"selectstart",Ue)};else{var Te=Ee(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);oe=function(){if(Te){var t=document.documentElement.style;ae=t[Te],t[Te]="none"}},ie=function(){Te&&(document.documentElement.style[Te]=ae,ae=void 0)}}function Ne(){$e(window,"dragstart",Ue)}function De(){je(window,"dragstart",Ue)}function Ae(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Le(),se=t,le=t.style.outlineStyle,t.style.outlineStyle="none",$e(window,"keydown",Le))}function Le(){se&&(se.style.outlineStyle=le,se=void 0,le=void 0,je(window,"keydown",Le))}function Ie(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function ze(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Re={__proto__:null,TRANSFORM:ce,TRANSITION:ue,TRANSITION_END:de,get:he,getStyle:pe,create:fe,remove:me,empty:ge,toFront:ve,toBack:ye,hasClass:be,addClass:_e,removeClass:xe,setClass:we,getClass:Se,setOpacity:ke,testProp:Ee,setTransform:Me,setPosition:Oe,getPosition:Pe,get disableTextSelection(){return oe},get enableTextSelection(){return ie},disableImageDrag:Ne,enableImageDrag:De,preventOutline:Ae,restoreOutline:Le,getSizedParentNode:Ie,getScale:ze};function $e(t,e,n,r){if(e&&"object"==typeof e)for(var o in e)We(t,o,e[o],n);else for(var i=0,a=(e=h(e)).length;i<a;i++)We(t,e[i],n,r);return this}var Fe="_leaflet_events";function je(t,e,n,r){if(1===arguments.length)Be(t),delete t[Fe];else if(e&&"object"==typeof e)for(var o in e)Ve(t,o,e[o],n);else if(e=h(e),2===arguments.length)Be(t,(function(t){return-1!==y(e,t)}));else for(var i=0,a=e.length;i<a;i++)Ve(t,e[i],n,r);return this}function Be(t,e){for(var n in t[Fe]){var r=n.split(/\d/)[0];e&&!e(r)||Ve(t,r,null,null,n)}}var He={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function We(t,e,n,r){var o=e+a(n)+(r?"_"+a(r):"");if(t[Fe]&&t[Fe][o])return this;var i=function(e){return n.call(r||t,e||window.event)},s=i;!Rt.touchNative&&Rt.pointer&&0===e.indexOf("touch")?i=Xt(t,e,i):Rt.touch&&"dblclick"===e?i=ne(t,i):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(He[e]||e,i,!!Rt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(i=function(e){e=e||window.event,tn(t,e)&&s(e)},t.addEventListener(He[e],i,!1)):t.addEventListener(e,s,!1):t.attachEvent("on"+e,i),t[Fe]=t[Fe]||{},t[Fe][o]=i}function Ve(t,e,n,r,o){o=o||e+a(n)+(r?"_"+a(r):"");var i=t[Fe]&&t[Fe][o];if(!i)return this;!Rt.touchNative&&Rt.pointer&&0===e.indexOf("touch")?qt(t,e,i):Rt.touch&&"dblclick"===e?re(t,i):"removeEventListener"in t?t.removeEventListener(He[e]||e,i,!1):t.detachEvent("on"+e,i),t[Fe][o]=null}function Ye(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Xe(t){return We(t,"wheel",Ye),this}function qe(t){return $e(t,"mousedown touchstart dblclick contextmenu",Ye),t._leaflet_disable_click=!0,this}function Ue(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ze(t){return Ue(t),Ye(t),this}function Ge(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function Ke(t,e){if(!e)return new D(t.clientX,t.clientY);var n=ze(e),r=n.boundingClientRect;return new D((t.clientX-r.left)/n.x-e.clientLeft,(t.clientY-r.top)/n.y-e.clientTop)}var Je=Rt.linux&&Rt.chrome?window.devicePixelRatio:Rt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Qe(t){return Rt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Je:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function tn(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var en={__proto__:null,on:$e,off:je,stopPropagation:Ye,disableScrollPropagation:Xe,disableClickPropagation:qe,preventDefault:Ue,stop:Ze,getPropagationPath:Ge,getMousePosition:Ke,getWheelDelta:Qe,isExternalTarget:tn,addListener:$e,removeListener:je},nn=N.extend({run:function(t,e,n,r){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=Pe(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=C(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),Oe(this._el,n),this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),rn=N.extend({options:{crs:U,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=p(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(B(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ue&&Rt.any3d&&!Rt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),$e(this._proxy,de,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,r){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(B(t),e,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=n({animate:r.animate},r.zoom),r.pan=n({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,r.zoom):this._tryAnimatedPan(t,r.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,r.pan&&r.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Rt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Rt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var r=this.getZoomScale(e),o=this.getSize().divideBy(2),i=(t instanceof D?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/r),a=this.containerPointToLatLng(o.add(i));return this.setView(a,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():F(t);var n=I(e.paddingTopLeft||e.padding||[0,0]),r=I(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,n.add(r));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var i=r.subtract(n).divideBy(2),a=this.project(t.getSouthWest(),o),s=this.project(t.getNorthEast(),o);return{center:this.unproject(a.add(s).divideBy(2).add(i),o),zoom:o}},fitBounds:function(t,e){if(!(t=F(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=I(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new nn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){_e(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!Rt.any3d)return this.setView(t,e,n);this._stop();var r=this.project(this.getCenter()),o=this.project(t),i=this.getSize(),a=this._zoom;t=B(t),e=void 0===e?a:e;var s=Math.max(i.x,i.y),l=s*this.getZoomScale(a,e),c=o.distanceTo(r)||1,u=1.42,d=u*u;function h(t){var e=(l*l-s*s+(t?-1:1)*d*d*c*c)/(2*(t?l:s)*d*c),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return p(t)/f(t)}var g=h(0);function v(t){return s*(f(g)/f(g+u*t))}function y(t){return s*(f(g)*m(g+u*t)-p(g))/d}function b(t){return 1-Math.pow(1-t,1.5)}var _=Date.now(),x=(h(1)-g)/u,w=n.duration?1e3*n.duration:1e3*x*.8;function S(){var n=(Date.now()-_)/w,i=b(n)*x;n<=1?(this._flyToFrame=C(S,this),this._move(this.unproject(r.add(o.subtract(r).multiplyBy(y(i)/c)),a),this.getScaleZoom(s/v(i),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),S.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=F(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,F(t));return n.equals(r)||this.panTo(r,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=I((e=e||{}).paddingTopLeft||e.padding||[0,0]),r=I(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),i=this.project(t),a=this.getPixelBounds(),s=R([a.min.add(n),a.max.subtract(r)]),l=s.getSize();if(!s.contains(i)){this._enforcingBounds=!0;var c=i.subtract(s.getCenter()),u=s.extend(i).getSize().subtract(l);o.x+=c.x<0?-u.x:u.x,o.y+=c.y<0?-u.y:u.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),i=e.divideBy(2).round(),a=r.divideBy(2).round(),s=i.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),r=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,r,t):navigator.geolocation.getCurrentPosition(e,r,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new j(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),r=this._locateOptions;if(r.setView){var o=this.getBoundsZoom(n);this.setView(e,r.maxZoom?Math.min(o,r.maxZoom):o)}var i={latlng:e,bounds:n,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(i[a]=t.coords[a]);this.fire("locationfound",i)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),me(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)me(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=fe("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new $(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=F(t),n=I(n||[0,0]);var r=this.getZoom()||0,o=this.getMinZoom(),i=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(n),c=R(this.project(s,r),this.project(a,r)).getSize(),u=Rt.any3d?this.options.zoomSnap:1,d=l.x/c.x,h=l.y/c.y,p=e?Math.max(d,h):Math.min(d,h);return r=this.getScaleZoom(p,r),u&&(r=Math.round(r/(u/100))*(u/100),r=e?Math.ceil(r/u)*u:Math.floor(r/u)*u),Math.max(o,Math.min(i,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new D(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new z(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var r=n.zoom(t*n.scale(e));return isNaN(r)?1/0:r},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(B(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(I(t),e)},layerPointToLatLng:function(t){var e=I(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(B(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(B(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(F(t))},distance:function(t,e){return this.options.crs.distance(B(t),B(e))},containerPointToLayerPoint:function(t){return I(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return I(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(I(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(B(t)))},mouseEventToContainerPoint:function(t){return Ke(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=he(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");$e(e,"scroll",this._onScroll,this),this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Rt.any3d,_e(t,"leaflet-container"+(Rt.touch?" leaflet-touch":"")+(Rt.retina?" leaflet-retina":"")+(Rt.ielt9?" leaflet-oldie":"")+(Rt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=pe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Oe(this._mapPane,new D(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(_e(t.markerPane,"leaflet-zoom-hide"),_e(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){Oe(this._mapPane,new D(0,0));var r=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,n)._move(t,e)._moveEnd(o),this.fire("viewreset"),r&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,r){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),r?n&&n.pinch&&this.fire("zoom",n):((o||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Oe(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[a(this._container)]=this;var e=t?je:$e;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Rt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=C((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,r=[],o="mouseout"===e||"mouseover"===e,i=t.target||t.srcElement,s=!1;i;){if((n=this._targets[a(i)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(o&&!tn(i,t))break;if(r.push(n),o)break}if(i===this._container)break;i=i.parentNode}return r.length||s||o||!this.listens(e,!0)||(r=[this]),r},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var n=t.type;"mousedown"===n&&Ae(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,r){if("click"===t.type){var o=n({},t);o.type="preclick",this._fireDOMEvent(o,o.type,r)}var i=this._findEventTargets(t,e);if(r){for(var a=[],s=0;s<r.length;s++)r[s].listens(e,!0)&&a.push(r[s]);i=a.concat(i)}if(i.length){"contextmenu"===e&&Ue(t);var l=i[0],c={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var u=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=u?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),c.layerPoint=this.containerPointToLayerPoint(c.containerPoint),c.latlng=u?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(s=0;s<i.length;s++)if(i[s].fire(e,c,!0),c.originalEvent._stopped||!1===i[s].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Pe(this._mapPane)||new D(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var r=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(r)},_latLngBoundsToNewLayerBounds:function(t,e,n){var r=this._getNewPixelOrigin(n,e);return R([this.project(t.getSouthWest(),e)._subtract(r),this.project(t.getNorthWest(),e)._subtract(r),this.project(t.getSouthEast(),e)._subtract(r),this.project(t.getNorthEast(),e)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var r=this.project(t,e),o=this.getSize().divideBy(2),i=new z(r.subtract(o),r.add(o)),a=this._getBoundsOffset(i,n,e);return Math.abs(a.x)<=1&&Math.abs(a.y)<=1?t:this.unproject(r.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),r=new z(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(r,e))},_getBoundsOffset:function(t,e,n){var r=R(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),o=r.min.subtract(t.min),i=r.max.subtract(t.max);return new D(this._rebound(o.x,-i.x),this._rebound(o.y,-i.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),r=Rt.any3d?this.options.zoomSnap:1;return r&&(t=Math.round(t/r)*r),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){xe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=fe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=ce,n=this._proxy.style[e];Me(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){me(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Me(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(o)||(C((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,_e(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&xe(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function on(t,e){return new rn(t,e)}var an=O.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),r=t._controlCorners[n];return _e(e,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(e,r.firstChild):r.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(me(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),sn=function(t){return new an(t)};rn.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=fe("div",e+"control-container",this._container);function r(r,o){var i=e+r+" "+e+o;t[r+o]=fe("div",i,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)me(this._controlCorners[t]);me(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ln=an.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,r){return n<r?-1:r<n?1:0}},initialize:function(t,e,n){for(var r in p(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[r],r);for(r in e)this._addLayer(e[r],r,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return an.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(a(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){_e(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(_e(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):xe(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return xe(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=fe("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),qe(e),Xe(e);var r=this._section=fe("section",t+"-list");n&&(this._map.on("click",this.collapse,this),$e(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var o=this._layersLink=fe("a",t+"-toggle",e);o.href="#",o.title="Layers",o.setAttribute("role","button"),$e(o,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Ue(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=fe("div",t+"-base",r),this._separator=fe("div",t+"-separator",r),this._overlaysList=fe("div",t+"-overlays",r),e.appendChild(r)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&a(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(o((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ge(this._baseLayersList),ge(this._overlaysList),this._layerControlInputs=[];var t,e,n,r,o=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),e=e||r.overlay,t=t||!r.overlay,o+=r.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(t){var e,n=document.createElement("label"),r=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=r):e=this._createRadioElement("leaflet-base-layers_"+a(this),r),this._layerControlInputs.push(e),e.layerId=a(t.layer),$e(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var i=document.createElement("span");return n.appendChild(i),i.appendChild(e),i.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var t,e,n=this._layerControlInputs,r=[],o=[];this._handlingClick=!0;for(var i=n.length-1;i>=0;i--)t=n[i],e=this._getLayer(t.layerId).layer,t.checked?r.push(e):t.checked||o.push(e);for(i=0;i<o.length;i++)this._map.hasLayer(o[i])&&this._map.removeLayer(o[i]);for(i=0;i<r.length;i++)this._map.hasLayer(r[i])||this._map.addLayer(r[i]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,r=this._map.getZoom(),o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&r<e.options.minZoom||void 0!==e.options.maxZoom&&r>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,$e(t,"click",Ue),this.expand();var e=this;setTimeout((function(){je(t,"click",Ue),e._preventClick=!1}))}}),cn=function(t,e,n){return new ln(t,e,n)},un=an.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=fe("div",e+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,r,o){var i=fe("a",n,r);return i.innerHTML=t,i.href="#",i.title=e,i.setAttribute("role","button"),i.setAttribute("aria-label",e),qe(i),$e(i,"click",Ze),$e(i,"click",o,this),$e(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";xe(this._zoomInButton,e),xe(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(_e(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(_e(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});rn.mergeOptions({zoomControl:!0}),rn.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new un,this.addControl(this.zoomControl))}));var dn=function(t){return new un(t)},hn=an.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=fe("div",e),r=this.options;return this._addScales(r,e+"-line",n),t.on(r.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=fe("div",e,n)),t.imperial&&(this._iScale=fe("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,r,o=3.2808399*t;o>5280?(e=o/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(r=this._getRoundNum(o),this._updateScale(this._iScale,r+" ft",r/o))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),pn=function(t){return new hn(t)},fn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',mn=an.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Rt.inlineSvg?fn+" ":"")+"Leaflet</a>"},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=fe("div","leaflet-control-attribution"),qe(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});rn.mergeOptions({attributionControl:!0}),rn.addInitHook((function(){this.options.attributionControl&&(new mn).addTo(this)}));var gn=function(t){return new mn(t)};an.Layers=ln,an.Zoom=un,an.Scale=hn,an.Attribution=mn,sn.layers=cn,sn.zoom=dn,sn.scale=pn,sn.attribution=gn;var vn=O.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});vn.addTo=function(t,e){return t.addHandler(e,this),this};var yn={Events:T},bn=Rt.touch?"touchstart mousedown":"mousedown",_n=N.extend({options:{clickTolerance:3},initialize:function(t,e,n,r){p(this,r),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||($e(this._dragStartTarget,bn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(_n._dragging===this&&this.finishDrag(!0),je(this._dragStartTarget,bn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!be(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)_n._dragging===this&&this.finishDrag();else if(!(_n._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(_n._dragging=this,this._preventOutline&&Ae(this._element),Ne(),oe(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Ie(this._element);this._startPoint=new D(e.clientX,e.clientY),this._startPos=Pe(this._element),this._parentScale=ze(n);var r="mousedown"===t.type;$e(document,r?"mousemove":"touchmove",this._onMove,this),$e(document,r?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new D(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Ue(t),this._moved||(this.fire("dragstart"),this._moved=!0,_e(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),_e(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Oe(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){xe(document.body,"leaflet-dragging"),this._lastTarget&&(xe(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),je(document,"mousemove touchmove",this._onMove,this),je(document,"mouseup touchend touchcancel",this._onUp,this),De(),ie();var e=this._moved&&this._moving;this._moving=!1,_n._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function xn(t,e,n){var r,o,i,a,s,l,c,u,d,h=[1,4,2,8];for(o=0,c=t.length;o<c;o++)t[o]._code=Ln(t[o],e);for(a=0;a<4;a++){for(u=h[a],r=[],o=0,i=(c=t.length)-1;o<c;i=o++)s=t[o],l=t[i],s._code&u?l._code&u||((d=An(l,s,u,e,n))._code=Ln(d,e),r.push(d)):(l._code&u&&((d=An(l,s,u,e,n))._code=Ln(d,e),r.push(d)),r.push(s));t=r}return t}function wn(t,e){var n,r,o,i,a,s,l,c,u;if(!t||0===t.length)throw new Error("latlngs not passed");Rn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var d=B([0,0]),h=F(t);h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(d=Sn(t));var p=t.length,f=[];for(n=0;n<p;n++){var m=B(t[n]);f.push(e.project(B([m.lat-d.lat,m.lng-d.lng])))}for(s=l=c=0,n=0,r=p-1;n<p;r=n++)o=f[n],i=f[r],a=o.y*i.x-i.y*o.x,l+=(o.x+i.x)*a,c+=(o.y+i.y)*a,s+=3*a;u=0===s?f[0]:[l/s,c/s];var g=e.unproject(I(u));return B([g.lat+d.lat,g.lng+d.lng])}function Sn(t){for(var e=0,n=0,r=0,o=0;o<t.length;o++){var i=B(t[o]);e+=i.lat,n+=i.lng,r++}return B([e/r,n/r])}var kn,Cn={__proto__:null,clipPolygon:xn,polygonCenter:wn,centroid:Sn};function En(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=Pn(t=Nn(t,n),n)}function Mn(t,e,n){return Math.sqrt(zn(t,e,n,!0))}function On(t,e,n){return zn(t,e,n)}function Pn(t,e){var n=t.length,r=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);r[0]=r[n-1]=1,Tn(t,r,e,0,n-1);var o,i=[];for(o=0;o<n;o++)r[o]&&i.push(t[o]);return i}function Tn(t,e,n,r,o){var i,a,s,l=0;for(a=r+1;a<=o-1;a++)(s=zn(t[a],t[r],t[o],!0))>l&&(i=a,l=s);l>n&&(e[i]=1,Tn(t,e,n,r,i),Tn(t,e,n,i,o))}function Nn(t,e){for(var n=[t[0]],r=1,o=0,i=t.length;r<i;r++)In(t[r],t[o])>e&&(n.push(t[r]),o=r);return o<i-1&&n.push(t[i-1]),n}function Dn(t,e,n,r,o){var i,a,s,l=r?kn:Ln(t,n),c=Ln(e,n);for(kn=c;;){if(!(l|c))return[t,e];if(l&c)return!1;s=Ln(a=An(t,e,i=l||c,n,o),n),i===l?(t=a,l=s):(e=a,c=s)}}function An(t,e,n,r,o){var i,a,s=e.x-t.x,l=e.y-t.y,c=r.min,u=r.max;return 8&n?(i=t.x+s*(u.y-t.y)/l,a=u.y):4&n?(i=t.x+s*(c.y-t.y)/l,a=c.y):2&n?(i=u.x,a=t.y+l*(u.x-t.x)/s):1&n&&(i=c.x,a=t.y+l*(c.x-t.x)/s),new D(i,a,o)}function Ln(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function In(t,e){var n=e.x-t.x,r=e.y-t.y;return n*n+r*r}function zn(t,e,n,r){var o,i=e.x,a=e.y,s=n.x-i,l=n.y-a,c=s*s+l*l;return c>0&&((o=((t.x-i)*s+(t.y-a)*l)/c)>1?(i=n.x,a=n.y):o>0&&(i+=s*o,a+=l*o)),s=t.x-i,l=t.y-a,r?s*s+l*l:new D(i,a)}function Rn(t){return!v(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function $n(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Rn(t)}function Fn(t,e){var n,r,o,i,a,s,l,c;if(!t||0===t.length)throw new Error("latlngs not passed");Rn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var u=B([0,0]),d=F(t);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(u=Sn(t));var h=t.length,p=[];for(n=0;n<h;n++){var f=B(t[n]);p.push(e.project(B([f.lat-u.lat,f.lng-u.lng])))}for(n=0,r=0;n<h-1;n++)r+=p[n].distanceTo(p[n+1])/2;if(0===r)c=p[0];else for(n=0,i=0;n<h-1;n++)if(a=p[n],s=p[n+1],(i+=o=a.distanceTo(s))>r){l=(i-r)/o,c=[s.x-l*(s.x-a.x),s.y-l*(s.y-a.y)];break}var m=e.unproject(I(c));return B([m.lat+u.lat,m.lng+u.lng])}var jn={__proto__:null,simplify:En,pointToSegmentDistance:Mn,closestPointOnSegment:On,clipSegment:Dn,_getEdgeIntersection:An,_getBitCode:Ln,_sqClosestPointOnSegment:zn,isFlat:Rn,_flat:$n,polylineCenter:Fn},Bn={project:function(t){return new D(t.lng,t.lat)},unproject:function(t){return new j(t.y,t.x)},bounds:new z([-180,-90],[180,90])},Hn={R:6378137,R_MINOR:6356752.314245179,bounds:new z([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,r=t.lat*e,o=this.R_MINOR/n,i=Math.sqrt(1-o*o),a=i*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/Math.pow((1-a)/(1+a),i/2);return r=-n*Math.log(Math.max(s,1e-10)),new D(t.lng*e*n,r)},unproject:function(t){for(var e,n=180/Math.PI,r=this.R,o=this.R_MINOR/r,i=Math.sqrt(1-o*o),a=Math.exp(-t.y/r),s=Math.PI/2-2*Math.atan(a),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)e=i*Math.sin(s),e=Math.pow((1-e)/(1+e),i/2),s+=c=Math.PI/2-2*Math.atan(a*e)-s;return new j(s*n,t.x*n/r)}},Wn={__proto__:null,LonLat:Bn,Mercator:Hn,SphericalMercator:Y},Vn=n({},W,{code:"EPSG:3395",projection:Hn,transformation:function(){var t=.5/(Math.PI*Hn.R);return q(t,.5,-t,.5)}()}),Yn=n({},W,{code:"EPSG:4326",projection:Bn,transformation:q(1/180,1,-1/180,.5)}),Xn=n({},H,{projection:Bn,transformation:q(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,r=e.lat-t.lat;return Math.sqrt(n*n+r*r)},infinite:!0});H.Earth=W,H.EPSG3395=Vn,H.EPSG3857=U,H.EPSG900913=Z,H.EPSG4326=Yn,H.Simple=Xn;var qn=N.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[a(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[a(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});rn.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=a(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=a(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return a(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?v(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[a(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=a(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var o=this._zoomBoundLayers[r].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Un=qn.extend({initialize:function(t,e){var n,r;if(p(this,e),this._layers={},t)for(n=0,r=t.length;n<r;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,r=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,r);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return a(t)}}),Zn=function(t,e){return new Un(t,e)},Gn=Un.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Un.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Un.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new $;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),Kn=function(t,e){return new Gn(t,e)},Jn=O.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(r,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(r.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),r},_setIconStyles:function(t,e){var n=this.options,r=n[e+"Size"];"number"==typeof r&&(r=[r,r]);var o=I(r),i=I("shadow"===e&&n.shadowAnchor||n.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),i&&(t.style.marginLeft=-i.x+"px",t.style.marginTop=-i.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Rt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Qn(t){return new Jn(t)}var tr=Jn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof tr.imagePath&&(tr.imagePath=this._detectIconPath()),(this.options.imagePath||tr.imagePath)+Jn.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,n){var r=e.exec(t);return r&&r[n]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=fe("div","leaflet-default-icon-path",document.body),e=pe(t,"background-image")||pe(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),er=vn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new _n(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),_e(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&xe(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,r=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,i=Pe(e._icon),a=n.getPixelBounds(),s=n.getPixelOrigin(),l=R(a.min._subtract(s).add(o),a.max._subtract(s).subtract(o));if(!l.contains(i)){var c=I((Math.max(l.max.x,i.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,i.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,i.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,i.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(r);n.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),Oe(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=C(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,r=Pe(e._icon),o=e._map.layerPointToLatLng(r);n&&Oe(n,r),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){E(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),nr=qn.extend({options:{icon:new tr,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){p(this,e),this._latlng=B(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=B(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),_e(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&$e(n,"focus",this._panOnFocus,this);var o=t.icon.createShadow(this._shadow),i=!1;o!==this._shadow&&(this._removeShadow(),i=!0),o&&(_e(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&i&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&je(this._icon,"focus",this._panOnFocus,this),me(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&me(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Oe(this._icon,t),this._shadow&&Oe(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(_e(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),er)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new er(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&ke(this._icon,t),this._shadow&&ke(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,n=e.iconSize?I(e.iconSize):I(0,0),r=e.iconAnchor?I(e.iconAnchor):I(0,0);t.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:n.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function rr(t,e){return new nr(t,e)}var or=qn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return p(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),ir=or.extend({options:{fill:!0,radius:10},initialize:function(t,e){p(this,e),this._latlng=B(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=B(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return or.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),r=[t+n,e+n];this._pxBounds=new z(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ar(t,e){return new ir(t,e)}var sr=ir.extend({initialize:function(t,e,r){if("number"==typeof e&&(e=n({},r,{radius:e})),p(this,e),this._latlng=B(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new $(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:or.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===W.distance){var o=Math.PI/180,i=this._mRadius/W.R/o,a=n.project([e+i,t]),s=n.project([e-i,t]),l=a.add(s).divideBy(2),c=n.unproject(l).lat,u=Math.acos((Math.cos(i*o)-Math.sin(e*o)*Math.sin(c*o))/(Math.cos(e*o)*Math.cos(c*o)))/o;(isNaN(u)||0===u)&&(u=i/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(u)?0:l.x-n.project([c,t-u]).x,this._radiusY=l.y-a.y}else{var d=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(d).x}this._updateBounds()}});function lr(t,e,n){return new sr(t,e,n)}var cr=or.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){p(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,r=1/0,o=null,i=zn,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],c=1,u=l.length;c<u;c++){var d=i(t,e=l[c-1],n=l[c],!0);d<r&&(r=d,o=i(t,e,n))}return o&&(o.distance=Math.sqrt(r)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Fn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=B(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new $,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Rn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=Rn(t),r=0,o=t.length;r<o;r++)n?(e[r]=B(t[r]),this._bounds.extend(e[r])):e[r]=this._convertLatLngs(t[r]);return e},_project:function(){var t=new z;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new D(t,t);this._rawPxBounds&&(this._pxBounds=new z([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var r,o,i=t[0]instanceof j,a=t.length;if(i){for(o=[],r=0;r<a;r++)o[r]=this._map.latLngToLayerPoint(t[r]),n.extend(o[r]);e.push(o)}else for(r=0;r<a;r++)this._projectLatlngs(t[r],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,n,r,o,i,a,s,l=this._parts;for(e=0,r=0,o=this._rings.length;e<o;e++)for(n=0,i=(s=this._rings[e]).length;n<i-1;n++)(a=Dn(s[n],s[n+1],t,n,!0))&&(l[r]=l[r]||[],l[r].push(a[0]),a[1]===s[n+1]&&n!==i-2||(l[r].push(a[1]),r++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,r=t.length;n<r;n++)t[n]=En(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,r,o,i,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,i=this._parts.length;n<i;n++)for(r=0,o=(a=(s=this._parts[n]).length)-1;r<a;o=r++)if((e||0!==r)&&Mn(t,s[o],s[r])<=l)return!0;return!1}});function ur(t,e){return new cr(t,e)}cr._flat=$n;var dr=cr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return wn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=cr.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof j&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){cr.prototype._setLatLngs.call(this,t),Rn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Rn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new D(e,e);if(t=new z(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var r,o=0,i=this._rings.length;o<i;o++)(r=xn(this._rings[o],t,!0)).length&&this._parts.push(r)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,r,o,i,a,s,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,s=this._parts.length;o<s;o++)for(i=0,a=(l=(e=this._parts[o]).length)-1;i<l;a=i++)n=e[i],r=e[a],n.y>t.y!=r.y>t.y&&t.x<(r.x-n.x)*(t.y-n.y)/(r.y-n.y)+n.x&&(c=!c);return c||cr.prototype._containsPoint.call(this,t,!0)}});function hr(t,e){return new dr(t,e)}var pr=Gn.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,r,o=v(t)?t:t.features;if(o){for(e=0,n=o.length;e<n;e++)((r=o[e]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var i=this.options;if(i.filter&&!i.filter(t))return this;var a=fr(t,i);return a?(a.feature=xr(t),a.defaultOptions=a.options,this.resetStyle(a),i.onEachFeature&&i.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=n({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function fr(t,e){var n,r,o,i,a="Feature"===t.type?t.geometry:t,s=a?a.coordinates:null,l=[],c=e&&e.pointToLayer,u=e&&e.coordsToLatLng||gr;if(!s&&!a)return null;switch(a.type){case"Point":return mr(c,t,n=u(s),e);case"MultiPoint":for(o=0,i=s.length;o<i;o++)n=u(s[o]),l.push(mr(c,t,n,e));return new Gn(l);case"LineString":case"MultiLineString":return r=vr(s,"LineString"===a.type?0:1,u),new cr(r,e);case"Polygon":case"MultiPolygon":return r=vr(s,"Polygon"===a.type?1:2,u),new dr(r,e);case"GeometryCollection":for(o=0,i=a.geometries.length;o<i;o++){var d=fr({geometry:a.geometries[o],type:"Feature",properties:t.properties},e);d&&l.push(d)}return new Gn(l);case"FeatureCollection":for(o=0,i=a.features.length;o<i;o++){var h=fr(a.features[o],e);h&&l.push(h)}return new Gn(l);default:throw new Error("Invalid GeoJSON object.")}}function mr(t,e,n,r){return t?t(e,n):new nr(n,r&&r.markersInheritOptions&&r)}function gr(t){return new j(t[1],t[0],t[2])}function vr(t,e,n){for(var r,o=[],i=0,a=t.length;i<a;i++)r=e?vr(t[i],e-1,n):(n||gr)(t[i]),o.push(r);return o}function yr(t,e){return void 0!==(t=B(t)).alt?[u(t.lng,e),u(t.lat,e),u(t.alt,e)]:[u(t.lng,e),u(t.lat,e)]}function br(t,e,n,r){for(var o=[],i=0,a=t.length;i<a;i++)o.push(e?br(t[i],Rn(t[i])?0:e-1,n,r):yr(t[i],r));return!e&&n&&o.length>0&&o.push(o[0].slice()),o}function _r(t,e){return t.feature?n({},t.feature,{geometry:e}):xr(e)}function xr(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var wr={toGeoJSON:function(t){return _r(this,{type:"Point",coordinates:yr(this.getLatLng(),t)})}};function Sr(t,e){return new pr(t,e)}nr.include(wr),sr.include(wr),ir.include(wr),cr.include({toGeoJSON:function(t){var e=!Rn(this._latlngs);return _r(this,{type:(e?"Multi":"")+"LineString",coordinates:br(this._latlngs,e?1:0,!1,t)})}}),dr.include({toGeoJSON:function(t){var e=!Rn(this._latlngs),n=e&&!Rn(this._latlngs[0]),r=br(this._latlngs,n?2:e?1:0,!0,t);return e||(r=[r]),_r(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),Un.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(n){e.push(n.toGeoJSON(t).geometry.coordinates)})),_r(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,r=[];return this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(n)r.push(o.geometry);else{var i=xr(o);"FeatureCollection"===i.type?r.push.apply(r,i.features):r.push(i)}}})),n?_r(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var kr=Sr,Cr=qn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=F(e),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(_e(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){me(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ve(this._image),this},bringToBack:function(){return this._map&&ye(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=F(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:fe("img");_e(e,"leaflet-image-layer"),this._zoomAnimated&&_e(e,"leaflet-zoom-animated"),this.options.className&&_e(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=o(this.fire,this,"load"),e.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Me(this._image,n,e)},_reset:function(){var t=this._image,e=new z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();Oe(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){ke(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Er=function(t,e,n){return new Cr(t,e,n)},Mr=Cr.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:fe("video");if(_e(e,"leaflet-image-layer"),this._zoomAnimated&&_e(e,"leaflet-zoom-animated"),this.options.className&&_e(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=o(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),r=[],i=0;i<n.length;i++)r.push(n[i].src);this._url=n.length>0?r:[e.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var s=fe("source");s.src=this._url[a],e.appendChild(s)}}}});function Or(t,e,n){return new Mr(t,e,n)}var Pr=Cr.extend({_initImage:function(){var t=this._image=this._url;_e(t,"leaflet-image-layer"),this._zoomAnimated&&_e(t,"leaflet-zoom-animated"),this.options.className&&_e(t,this.options.className),t.onselectstart=c,t.onmousemove=c}});function Tr(t,e,n){return new Pr(t,e,n)}var Nr=qn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof j||v(t))?(this._latlng=B(t),p(this,e)):(p(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ke(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ke(this._container,1),this.bringToFront(),this.options.interactive&&(_e(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(ke(this._container,0),this._removeTimeout=setTimeout(o(me,void 0,this._container),200)):me(this._container),this.options.interactive&&(xe(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=B(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ve(this._container),this},bringToBack:function(){return this._map&&ye(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Gn){e=null;var n=this._source._layers;for(var r in n)if(n[r]._map){e=n[r];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=I(this.options.offset),n=this._getAnchor();this._zoomAnimated?Oe(this._container,t.add(n)):e=e.add(t).add(n);var r=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=r+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}});rn.include({_initOverlay:function(t,e,n,r){var o=e;return o instanceof t||(o=new t(r).setContent(e)),n&&o.setLatLng(n),o}}),qn.include({_initOverlay:function(t,e,n,r){var o=n;return o instanceof t?(p(o,r),o._source=this):(o=e&&!r?e:new t(r,this)).setContent(n),o}});var Dr=Nr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Nr.prototype.openOn.call(this,t)},onAdd:function(t){Nr.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof or||this._source.on("preclick",Ye))},onRemove:function(t){Nr.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof or||this._source.off("preclick",Ye))},getEvents:function(){var t=Nr.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=fe("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=fe("div",t+"-content-wrapper",e);if(this._contentNode=fe("div",t+"-content",n),qe(e),Xe(this._contentNode),$e(e,"contextmenu",Ye),this._tipContainer=fe("div",t+"-tip-container",e),this._tip=fe("div",t+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=fe("a",t+"-close-button",e);r.setAttribute("role","button"),r.setAttribute("aria-label","Close popup"),r.href="#close",r.innerHTML='<span aria-hidden="true">&#215;</span>',$e(r,"click",(function(t){Ue(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var r=t.offsetHeight,o=this.options.maxHeight,i="leaflet-popup-scrolled";o&&r>o?(e.height=o+"px",_e(t,i)):xe(t,i),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();Oe(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(pe(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,r=this._containerWidth,o=new D(this._containerLeft,-n-this._containerBottom);o._add(Pe(this._container));var i=t.layerPointToContainerPoint(o),a=I(this.options.autoPanPadding),s=I(this.options.autoPanPaddingTopLeft||a),l=I(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),u=0,d=0;i.x+r+l.x>c.x&&(u=i.x+r-c.x+l.x),i.x-u-s.x<0&&(u=i.x-s.x),i.y+n+l.y>c.y&&(d=i.y+n-c.y+l.y),i.y-d-s.y<0&&(d=i.y-s.y),(u||d)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([u,d]))}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Ar=function(t,e){return new Dr(t,e)};rn.mergeOptions({closePopupOnClick:!0}),rn.include({openPopup:function(t,e,n){return this._initOverlay(Dr,t,e,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),qn.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Dr,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Gn||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ze(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof or?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Lr=Nr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Nr.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Nr.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Nr.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=fe("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,r=this._map,o=this._container,i=r.latLngToContainerPoint(r.getCenter()),a=r.layerPointToContainerPoint(t),s=this.options.direction,l=o.offsetWidth,c=o.offsetHeight,u=I(this.options.offset),d=this._getAnchor();"top"===s?(e=l/2,n=c):"bottom"===s?(e=l/2,n=0):"center"===s?(e=l/2,n=c/2):"right"===s?(e=0,n=c/2):"left"===s?(e=l,n=c/2):a.x<i.x?(s="right",e=0,n=c/2):(s="left",e=l+2*(u.x+d.x),n=c/2),t=t.subtract(I(e,n,!0)).add(u).add(d),xe(o,"leaflet-tooltip-right"),xe(o,"leaflet-tooltip-left"),xe(o,"leaflet-tooltip-top"),xe(o,"leaflet-tooltip-bottom"),_e(o,"leaflet-tooltip-"+s),Oe(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&ke(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return I(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Ir=function(t,e){return new Lr(t,e)};rn.include({openTooltip:function(t,e,n){return this._initOverlay(Lr,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),qn.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Lr,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Gn||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&($e(e,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),$e(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",(function(){e._openOnceFlag=!1,e._openTooltip(t)}))}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,r=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});var zr=Jn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ge(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=I(n.bgPos);e.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function Rr(t){return new zr(t)}Jn.Default=tr;var $r=qn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Rt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){p(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),me(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ve(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ye(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof D?t:new D(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,r=-t(-1/0,1/0),o=0,i=n.length;o<i;o++)e=n[o].style.zIndex,n[o]!==this._container&&e&&(r=t(r,+e));isFinite(r)&&(this.options.zIndex=r+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Rt.ielt9){ke(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var r in this._tiles){var o=this._tiles[r];if(o.current&&o.loaded){var i=Math.min(1,(t-o.loaded)/200);ke(o.el,i),i<1?e=!0:(o.active?n=!0:this._onOpaqueTile(o),o.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=fe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(me(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[t],o=this._map;return r||((r=this._levels[t]={}).el=fe("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=e,r.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),r.zoom=t,this._setZoomTransform(r,o.getCenter(),o.getZoom()),c(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var r=e.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)me(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,r){var o=Math.floor(t/2),i=Math.floor(e/2),a=n-1,s=new D(+o,+i);s.z=+a;var l=this._tileCoordsToKey(s),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),a>r&&this._retainParent(o,i,a,r))},_retainChildren:function(t,e,n,r){for(var o=2*t;o<2*t+2;o++)for(var i=2*e;i<2*e+2;i++){var a=new D(o,i);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<r&&this._retainChildren(o,i,n+1,r))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,r){var o=Math.round(e);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o);var i=this.options.updateWhenZooming&&o!==this._tileZoom;r&&!i||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var r=this._map.getZoomScale(n,t.zoom),o=t.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(e,n)).round();Rt.any3d?Me(t.el,o,r):Oe(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],r).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],r).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],r).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),r=e.getZoomScale(n,this._tileZoom),o=e.project(t,this._tileZoom).floor(),i=e.getSize().divideBy(2*r);return new z(o.subtract(i),o.add(i))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var r=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(r),i=o.getCenter(),a=[],s=this.options.keepBuffer,l=new z(o.getBottomLeft().subtract([s,-s]),o.getTopRight().add([s,-s]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var u=this._tiles[c].coords;u.z===this._tileZoom&&l.contains(new D(u.x,u.y))||(this._tiles[c].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var d=o.min.y;d<=o.max.y;d++)for(var h=o.min.x;h<=o.max.x;h++){var p=new D(h,d);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:a.push(p)}}if(a.sort((function(t,e){return t.distanceTo(i)-e.distanceTo(i)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(h=0;h<a.length;h++)this._addTile(a[h],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(t);return F(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),r=t.scaleBy(n),o=r.add(n);return[e.unproject(r,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new $(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new D(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(me(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){_e(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,Rt.ielt9&&this.options.opacity<1&&ke(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),r=this._tileCoordsToKey(t),i=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(i),this.createTile.length<2&&C(o(this._tileReady,this,t,null,i)),Oe(i,n),this._tiles[r]={el:i,coords:t,current:!0},e.appendChild(i),this.fire("tileloadstart",{tile:i,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var r=this._tileCoordsToKey(t);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(ke(n.el,0),E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(_e(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Rt.ielt9||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new D(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new z(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Fr(t){return new $r(t)}var jr=$r.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=p(this,e)).detectRetina&&Rt.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return $e(n,"load",o(this._tileOnLoad,this,e,n)),$e(n,"error",o(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:Rt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=r),e["-y"]=r}return g(this._url,n(e,this.options))},_tileOnLoad:function(t,e){Rt.ielt9?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var r=this.options.errorTileUrl;r&&e.getAttribute("src")!==r&&(e.src=r),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=c,e.onerror=c,!e.complete)){e.src=b;var n=this._tiles[t].coords;me(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",b),$r.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==b))return $r.prototype._tileReady.call(this,t,e,n)}});function Br(t,e){return new jr(t,e)}var Hr=jr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var r=n({},this.defaultWmsParams);for(var o in e)o in this.options||(r[o]=e[o]);var i=(e=p(this,e)).detectRetina&&Rt.retina?2:1,a=this.getTileSize();r.width=a.x*i,r.height=a.y*i,this.wmsParams=r},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,jr.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,r=R(n.project(e[0]),n.project(e[1])),o=r.min,i=r.max,a=(this._wmsVersion>=1.3&&this._crs===Yn?[o.y,o.x,i.y,i.x]:[o.x,o.y,i.x,i.y]).join(","),s=jr.prototype.getTileUrl.call(this,t);return s+f(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});function Wr(t,e){return new Hr(t,e)}jr.WMS=Hr,Br.wms=Wr;var Vr=qn.extend({options:{padding:.1},initialize:function(t){p(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),_e(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),i=r.multiplyBy(-n).add(o).subtract(this._map._getNewPixelOrigin(t,e));Rt.any3d?Me(this._container,i,n):Oe(this._container,i)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new z(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Yr=Vr.extend({options:{tolerance:0},getEvents:function(){var t=Vr.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Vr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");$e(t,"mousemove",this._onMouseMove,this),$e(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),$e(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,me(this._container),je(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vr.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),r=Rt.retina?2:1;Oe(e,t.min),e.width=r*n.x,e.height=r*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Rt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Vr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[a(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,r=e.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete t._order,delete this._layers[a(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,r=t.options.dashArray.split(/[, ]+/),o=[];for(n=0;n<r.length;n++){if(e=Number(r[n]),isNaN(e))return;o.push(e)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new z,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)t=r.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,r,o,i,a=t._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(r=0,o=a[n].length;r<o;r++)i=a[n][r],l[r?"lineTo":"moveTo"](i.x,i.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,r=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||r)/r;1!==o&&(n.save(),n.scale(1,o)),n.beginPath(),n.arc(e.x,e.y/o,r,0,2*Math.PI,!1),1!==o&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,r=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(r)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(n=e);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(xe(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,r,i=this._drawFirst;i;i=i.next)(n=i.layer).options.interactive&&n._containsPoint(e)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(t),r&&(_e(this._container,"leaflet-interactive"),this._fireEvent([r],t,"mouseover"),this._hoveredLayer=r)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(o((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,r=e.prev;n&&(n.prev=r,r?r.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,r=e.prev;r&&(r.next=n,n?n.prev=r:r&&(this._drawLast=r),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function Xr(t){return Rt.canvas?new Yr(t):null}var qr=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ur={_initContainer:function(){this._container=fe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Vr.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=qr("shape");_e(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=qr("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;me(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,r=t.options,o=t._container;o.stroked=!!r.stroke,o.filled=!!r.fill,r.stroke?(e||(e=t._stroke=qr("stroke")),o.appendChild(e),e.weight=r.weight+"px",e.color=r.color,e.opacity=r.opacity,r.dashArray?e.dashStyle=v(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=r.lineCap.replace("butt","flat"),e.joinstyle=r.lineJoin):e&&(o.removeChild(e),t._stroke=null),r.fill?(n||(n=t._fill=qr("fill")),o.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(o.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),r=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+r+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ve(t._container)},_bringToBack:function(t){ye(t._container)}},Zr=Rt.vml?qr:G,Gr=Vr.extend({_initContainer:function(){this._container=Zr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Zr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){me(this._container),je(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vr.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),Oe(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Zr("path");t.options.className&&_e(e,t.options.className),t.options.interactive&&_e(e,"leaflet-interactive"),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){me(t._path),t.removeInteractiveTarget(t._path),delete this._layers[a(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,K(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),r="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ve(t._path)},_bringToBack:function(t){ye(t._path)}});function Kr(t){return Rt.svg||Rt.vml?new Gr(t):null}Rt.vml&&Gr.include(Ur),rn.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Xr(t)||Kr(t)}});var Jr=dr.extend({initialize:function(t,e){dr.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=F(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Qr(t,e){return new Jr(t,e)}Gr.create=Zr,Gr.pointsToPath=K,pr.geometryToLayer=fr,pr.coordsToLatLng=gr,pr.coordsToLatLngs=vr,pr.latLngToCoords=yr,pr.latLngsToCoords=br,pr.getFeature=_r,pr.asFeature=xr,rn.mergeOptions({boxZoom:!0});var to=vn.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){$e(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){je(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){me(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),oe(),Ne(),this._startPoint=this._map.mouseEventToContainerPoint(t),$e(document,{contextmenu:Ze,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=fe("div","leaflet-zoom-box",this._container),_e(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new z(this._point,this._startPoint),n=e.getSize();Oe(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(me(this._box),xe(this._container,"leaflet-crosshair")),ie(),De(),je(document,{contextmenu:Ze,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new $(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});rn.addInitHook("addHandler","boxZoom",to),rn.mergeOptions({doubleClickZoom:!0});var eo=vn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),r=e.options.zoomDelta,o=t.originalEvent.shiftKey?n-r:n+r;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});rn.addInitHook("addHandler","doubleClickZoom",eo),rn.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var no=vn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new _n(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}_e(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){xe(this._map._container,"leaflet-grab"),xe(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=F(this._map.options.maxBounds);this._offsetLimit=R(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,o=(r-e+n)%t+e-n,i=(r+e+n)%t-e-n,a=Math.abs(o+n)<Math.abs(i+n)?o:i;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,n=e.options,r=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),r)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),i=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,s=o.multiplyBy(a/i),l=s.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,l),u=s.multiplyBy(c/l),d=c/(n.inertiaDeceleration*a),h=u.multiplyBy(-d/2).round();h.x||h.y?(h=e._limitOffset(h,e.options.maxBounds),C((function(){e.panBy(h,{duration:d,easeLinearity:a,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});rn.addInitHook("addHandler","dragging",no),rn.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ro=vn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),$e(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),je(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,r=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,r=this._panKeys={},o=this.keyCodes;for(e=0,n=o.left.length;e<n;e++)r[o.left[e]]=[-1*t,0];for(e=0,n=o.right.length;e<n;e++)r[o.right[e]]=[t,0];for(e=0,n=o.down.length;e<n;e++)r[o.down[e]]=[0,t];for(e=0,n=o.up.length;e<n;e++)r[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,r=this._zoomKeys={},o=this.keyCodes;for(e=0,n=o.zoomIn.length;e<n;e++)r[o.zoomIn[e]]=t;for(e=0,n=o.zoomOut.length;e<n;e++)r[o.zoomOut[e]]=-t},_addHooks:function(){$e(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){je(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,r=this._map;if(n in this._panKeys){if(!r._panAnim||!r._panAnim._inProgress)if(e=this._panKeys[n],t.shiftKey&&(e=I(e).multiplyBy(3)),r.options.maxBounds&&(e=r._limitOffset(I(e),r.options.maxBounds)),r.options.worldCopyJump){var o=r.wrapLatLng(r.unproject(r.project(r.getCenter()).add(e)));r.panTo(o)}else r.panBy(e)}else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}Ze(t)}}});rn.addInitHook("addHandler","keyboard",ro),rn.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var oo=vn.extend({addHooks:function(){$e(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){je(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Qe(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),r),Ze(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var r=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,i=n?Math.ceil(o/n)*n:o,a=t._limitZoom(e+(this._delta>0?i:-i))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});rn.addInitHook("addHandler","scrollWheelZoom",oo);var io=600;rn.mergeOptions({tapHold:Rt.touchNative&&Rt.safari&&Rt.mobile,tapTolerance:15});var ao=vn.extend({addHooks:function(){$e(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new D(e.clientX,e.clientY),this._holdTimeout=setTimeout(o((function(){this._cancel(),this._isTapValid()&&($e(document,"touchend",Ue),$e(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),io),$e(document,"touchend touchcancel contextmenu",this._cancel,this),$e(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){je(document,"touchend",Ue),je(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),je(document,"touchend touchcancel contextmenu",this._cancel,this),je(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new D(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});rn.addInitHook("addHandler","tapHold",ao),rn.mergeOptions({touchZoom:Rt.touch,bounceAtZoomLimits:!0});var so=vn.extend({addHooks:function(){_e(this._map._container,"leaflet-touch-zoom"),$e(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){xe(this._map._container,"leaflet-touch-zoom"),je(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),$e(document,"touchmove",this._onTouchMove,this),$e(document,"touchend touchcancel",this._onTouchEnd,this),Ue(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]),i=n.distanceTo(r)/this._startDist;if(this._zoom=e.getScaleZoom(i,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&i<1||this._zoom>e.getMaxZoom()&&i>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var s=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=C(s,this,!0),Ue(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),je(document,"touchmove",this._onTouchMove,this),je(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});rn.addInitHook("addHandler","touchZoom",so),rn.BoxZoom=to,rn.DoubleClickZoom=eo,rn.Drag=no,rn.Keyboard=ro,rn.ScrollWheelZoom=oo,rn.TapHold=ao,rn.TouchZoom=so,t.Bounds=z,t.Browser=Rt,t.CRS=H,t.Canvas=Yr,t.Circle=sr,t.CircleMarker=ir,t.Class=O,t.Control=an,t.DivIcon=zr,t.DivOverlay=Nr,t.DomEvent=en,t.DomUtil=Re,t.Draggable=_n,t.Evented=N,t.FeatureGroup=Gn,t.GeoJSON=pr,t.GridLayer=$r,t.Handler=vn,t.Icon=Jn,t.ImageOverlay=Cr,t.LatLng=j,t.LatLngBounds=$,t.Layer=qn,t.LayerGroup=Un,t.LineUtil=jn,t.Map=rn,t.Marker=nr,t.Mixin=yn,t.Path=or,t.Point=D,t.PolyUtil=Cn,t.Polygon=dr,t.Polyline=cr,t.Popup=Dr,t.PosAnimation=nn,t.Projection=Wn,t.Rectangle=Jr,t.Renderer=Vr,t.SVG=Gr,t.SVGOverlay=Pr,t.TileLayer=jr,t.Tooltip=Lr,t.Transformation=X,t.Util=M,t.VideoOverlay=Mr,t.bind=o,t.bounds=R,t.canvas=Xr,t.circle=lr,t.circleMarker=ar,t.control=sn,t.divIcon=Rr,t.extend=n,t.featureGroup=Kn,t.geoJSON=Sr,t.geoJson=kr,t.gridLayer=Fr,t.icon=Qn,t.imageOverlay=Er,t.latLng=B,t.latLngBounds=F,t.layerGroup=Zn,t.map=on,t.marker=rr,t.point=I,t.polygon=hr,t.polyline=ur,t.popup=Ar,t.rectangle=Qr,t.setOptions=p,t.stamp=a,t.svg=Kr,t.svgOverlay=Tr,t.tileLayer=Br,t.tooltip=Ir,t.transformation=q,t.version=e,t.videoOverlay=Or;var lo=window.L;t.noConflict=function(){return window.L=lo,this},window.L=t}(cA.exports)),cA.exports),dA=yt(uA);function hA(t,e,n){return Object.freeze({instance:t,context:e,container:n})}function pA(t,e){return null==e?function(e,n){const r=s(void 0);return r.current||(r.current=t(e,n)),r}:function(n,r){const o=s(void 0);o.current||(o.current=t(n,r));const i=s(n),{instance:a}=o.current;return l((function(){i.current!==n&&(e(a,n,i.current),i.current=n)}),[a,n,e]),o}}function fA(t){return function(e){const n=aA(),r=t(sA(e,n),n);return function(t,e){const n=s(e);l((function(){e!==n.current&&null!=t.attributionControl&&(null!=n.current&&t.attributionControl.removeAttribution(n.current),null!=e&&t.attributionControl.addAttribution(e)),n.current=e}),[t,e])}(n.map,e.attribution),function(t,e){const n=s(void 0);l((function(){return null!=e&&t.instance.on(e),n.current=e,function(){null!=n.current&&t.instance.off(n.current),n.current=null}}),[t,e])}(r.current,e.eventHandlers),function(t,e){l((function(){return(e.layerContainer??e.map).addLayer(t.instance),function(){e.layerContainer?.removeLayer(t.instance),e.map.removeLayer(t.instance)}}),[e,t])}(r.current,n),r}}function mA(t){const e=aA().map;return l((function(){return e.on(t),function(){e.off(t)}}),[e,t]),e}function gA({bounds:t,boundsOptions:e,center:n,children:r,className:i,id:a,placeholder:d,style:h,whenReady:p,zoom:f,...m},g){const[v]=u({className:i,id:a,style:h}),[y,_]=u(null),x=s(void 0);b(g,(()=>y?.map??null),[y]);const w=c((r=>{if(null!==r&&!x.current){const o=new uA.Map(r,m);x.current=o,null!=n&&null!=f?o.setView(n,f):null!=t&&o.fitBounds(t,e),null!=p&&o.whenReady(p),_(function(t){return Object.freeze({__version:1,map:t})}(o))}}),[]);l((()=>()=>{y?.map.remove()}),[y]);const S=y?o.createElement(iA,{value:y},r):d??null;return o.createElement("div",{...v,ref:w},S)}const vA=h(gA),yA=function(t,e){return function(t){function e(e,n){const{instance:r,context:i}=t(e).current;b(n,(()=>r));const{children:a}=e;return null==a?null:o.createElement(iA,{value:i},a)}return h(e)}(fA(pA(t,e)))}((function({position:t,...e},n){const r=new uA.Marker(t,e);return hA(r,(o=n,i={overlayContainer:r},Object.freeze({...o,...i})));var o,i}),(function(t,e,n){e.position!==n.position&&t.setLatLng(e.position),null!=e.icon&&e.icon!==n.icon&&t.setIcon(e.icon),null!=e.zIndexOffset&&e.zIndexOffset!==n.zIndexOffset&&t.setZIndexOffset(e.zIndexOffset),null!=e.opacity&&e.opacity!==n.opacity&&t.setOpacity(e.opacity),null!=t.dragging&&e.draggable!==n.draggable&&(!0===e.draggable?t.dragging.enable():t.dragging.disable())})),bA=function(t,e){return function(t){function e(e,n){const{instance:r}=t(e).current;return b(n,(()=>r)),null}return h(e)}(fA(pA(t,e)))}((function({url:t,...e},n){return hA(new uA.TileLayer(t,sA(e,n)),n)}),(function(t,e,n){!function(t,e,n){const{opacity:r,zIndex:o}=e;null!=r&&r!==n.opacity&&t.setOpacity(r),null!=o&&o!==n.zIndex&&t.setZIndex(o)}(t,e,n);const{url:r}=e;null!=r&&r!==n.url&&t.setUrl(r)}));var _A={map:"Map-module_map__BEwEi",icon:"Map-module_icon__1Y4-P"};const xA=({onMapClick:t})=>(mA({click:e=>{t(e.latlng)}}),null);var wA=a((({coordinates:n,markerIcon:r,scrollWheelZoom:o=!0,zoom:i=13,className:a,onChange:s})=>{const l=dA.divIcon({className:`${_A.icon} ${r?.iconContainerClassName}`,html:N.renderToString(r?.icon||t(Za,{name:"mapMarker"}))}),[c,d]=u(n||{lat:51.505,lng:-.09});return e(vA,{center:c,zoom:i,scrollWheelZoom:o,className:`${_A.map} ${a}`,worldCopyJump:!0,maxBoundsViscosity:1,maxBounds:[[-90,-180],[90,180]],children:[t(bA,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",className:_A.tileLayer}),t(yA,{position:c,icon:l}),t(xA,{onMapClick:t=>{d(t);const e=t.lat,n=function(t){return((t+180)%360+360)%360-180}(t.lng);s?.({lat:e,lng:n})}})]})})),SA={modalContainer:"Modal-module_modalContainer__CnoII",modalContent:"Modal-module_modalContent__HNEeB",noOverflow:"Modal-module_noOverflow__oJ1i-",closeButton:"Modal-module_closeButton__AoWmd",growFromCenter:"Modal-module_growFromCenter__2PYLC",zoomIn:"Modal-module_zoomIn__QNDuv",classicModalZoom:"Modal-module_classicModalZoom__W6Xhj",shake:"Modal-module_shake__b-lIf"},kA="ModalHeader-module_modalHeader__Tn8TM";var CA=a((({className:e,prefix:n,root:r,...o})=>t(H,{className:`${kA} ${e}`,alignment:"leftCenter",dimensionX:"fill",dimensionY:36,...o,prefix:{children:n?.children,...{dimensionX:"hug",alignment:"leftCenter",...n}},root:{children:r?.children,...{dimensionX:"fill",alignment:"leftCenter",...r}}}))),EA="ModalBody-module_modalBody__WKtQo";var MA=a((({className:e,children:n,...r})=>t(B,{className:`${EA} ${e}`,alignment:"top",dimensionX:"fill",dimensionY:"fill",...r,children:n}))),OA="ModalFooter-module_modalFooter__uS-Sd";var PA=a((({className:e,prefix:n,root:r,suffix:o,...i})=>t(H,{className:`${OA} ${e}`,alignment:"leftCenter",dimensionX:"fill",dimensionY:"hug",...i,prefix:{children:n?.children,...{dimensionX:"hug",alignment:"leftCenter",...n}},root:{children:r?.children,...{dimensionX:"fill",alignment:"leftCenter",...r}},suffix:{children:o?.children,...{dimensionX:"hug",alignment:"rightCenter",...o}}})));const TA=a((({animation:n="growFromCenter",showCloseButton:r=!0,disableClose:o=!1,overflow:i=!0,children:a,onClose:s,showBackdrop:c=!0,backdropType:d="default",backdropClassName:h,backdropProps:p,isOpen:f=!1,portalClassName:m,...g})=>{const[v,y]=u(f),[b,_]=u(!1),[x,w]=u(!1);l((()=>{y(f)}),[f]);const S=()=>{y(!1),s&&s()};return v?t($D,{className:m,children:e(B,{className:SA.modalContainer,children:[t(BD,{showBackdrop:c,...p,className:h,onClick:()=>{"static"===d?(_(!0),w(!1),setTimeout((()=>{_(!1),w(!0)}),400)):S()}}),e(B,{alignment:"top",direction:"vertical",...g,className:`${SA.modalContent} ${x?"":SA[n]} ${i?"":SA.noOverflow} ${b?SA.shake:""} ${g.className}`,children:[r&&t(_s,{className:SA.closeButton,onClick:S,children:t(Za,{name:"close"}),variant:"icon"}),a]})]})}):null}));TA.Header=CA,TA.Body=MA,TA.Footer=PA;var NA="SelectOption-module_option__wQb8V",DA="SelectOption-module_disabled__m5fGS",AA="SelectOption-module_selected__A6Rky",LA="SelectOption-module_displayer__lEn8X";var IA=a((({option:e,selected:n,multiple:r,disabled:o,onSelect:i,onClick:a,...s})=>{const{value:l,label:c}="object"==typeof e?{value:e.value,label:e.label}:{value:e,label:e};return t(H,{dimensionX:"fill",dimensionY:36,alignment:"leftCenter",onClick:a,root:{children:t(Qf,{disabled:o,dimensionX:"fill",checked:n,label:c,alignment:"leftCenter",prefix:r?void 0:{children:null},root:{className:`${s.root?.className} ${LA}`},labelProps:{className:LA}}),dimensionX:"fill"},...s,className:`${NA} ${n&&AA} ${o&&DA} ${s.className||""}`})})),zA="StorageFileCard-module_container__Qj11y",RA="StorageFileCard-module_viewContainer__MEXDI",$A="StorageFileCard-module_name__U4YHd";const FA=[{regex:/^image\//,viewer:(e,n)=>t("img",{src:e.url,alt:e.name,style:n?.img})},{regex:/^video\//,viewer:()=>t(Za,{name:"movie",size:72})},{regex:/^(text\/plain|text\/javascript|application\/json)$/,viewer:(e,n)=>t("embed",{type:e.content.type,src:e.url,style:n?.embed})},{regex:/^(application\/vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|text\/csv)$/,viewer:()=>t(Za,{name:"gridOn",size:72})},{regex:/^application\/pdf/,viewer:(e,n)=>t("embed",{type:e.content.type,src:e.url,style:n?.embed})},{regex:/^application\/zip/,viewer:()=>t(Za,{name:"folderZip",size:72})}],jA=({file:e,styles:n})=>{if(!e)return null;const r=FA.find((({regex:t})=>t.test(e.content.type)));return r?r.viewer(e,n):t(Za,{name:"fileDocument",size:72})};var BA=a((({file:n,viewProps:r,nameProps:o,...i})=>{const a=jA({file:n});return e(B,{direction:"vertical",gap:10,dimensionX:200,dimensionY:200,...i,className:`${i.className} ${zA}`,children:[t(B,{alignment:"center",dimensionX:"fill",...r,className:`${r?.className} ${RA}`,children:a}),t(B,{dimensionX:"fill",alignment:"center",className:`${o?.className} ${$A}`,children:t(V,{...o,children:n.name})})]})})),HA="Switch-module_switch__-4EkK",WA="Switch-module_slider__sHGGR",VA="Switch-module_disabled__eRVsQ";const YA={large:"Switch-module_large__1uBOR",medium:"Switch-module_medium__dyhx-",small:"Switch-module_small__5Zk-N","extra-small":"Switch-module_extraSmall__JC7t5"};var XA=a((({checked:n,disabled:r=!1,containerProps:o,onChange:i,size:a="medium"})=>t(B,{...o,children:e("label",{className:`${HA} ${r&&VA} ${YA[a]}`,children:[t("input",{type:"checkbox",checked:n,disabled:r,onChange:()=>{r||i?.(!n)}}),t("span",{className:WA})]})}))),qA="Title-module_title__X4-sx";var UA=a((({type:e="h1",children:n,className:r,...i})=>t(B,{...i,children:o.createElement(e,{className:`${qA} ${r||""}`},n)}))),ZA="Accordion-module_accordionGroup__qt51Z",GA="Accordion-module_accordionItem__yV0FU",KA="Accordion-module_icon__ni8rA",JA="Accordion-module_rotate__0j95F",QA="Accordion-module_accordionTitle__JkcQk",tL="Accordion-module_suffixOnHover__hHfy1",eL="Accordion-module_open__C3ogj",nL="Accordion-module_noBackgroundOnFocus__nmKN9",rL="Accordion-module_accordionContent__VnGTH",oL="Accordion-module_accordionContentInner__dFM3D",iL="Accordion-module_bordered__4ZbV1";var aL=a((({title:n,children:r,isOpen:o,onClick:i,icon:a,bordered:s=!1,openClassName:l,itemClassName:c,contentClassName:u,headerClassName:d,suffixOnHover:h=!1,noBackgroundOnFocus:p=!1,disableSuffixIcon:f=!1})=>e("div",{className:`${GA} ${s?iL:""} ${c||""}`,children:[t(H,{dimensionX:"fill",mode:"fill",root:{children:n,alignment:"leftCenter"},suffix:{children:(()=>{if(f)return null;if(a&&"string"!=typeof a)return a;return t(Za,{name:a||"chevronDown",className:`${KA} ${o?JA:""}`})})(),className:h?tL:""},onClick:i,className:`${QA} ${o?l||eL:""} ${d||""} ${p?nL:""}`}),t("div",{className:`${rL} ${o?eL:""} ${u||""}`,children:t("div",{className:oL,children:r})})]})));var sL=a((({items:e,defaultActiveIndex:n=1,icon:r,bordered:o=!1,header:i,openClassName:a,itemClassName:s,contentClassName:l,headerClassName:c,suffixOnHover:d,noBackgroundOnFocus:h,disableSuffixIcon:p,...f})=>{const[m,g]=u(n||null);return t(B,{direction:"vertical",dimensionX:"fill",gap:10,...f,className:`${ZA} ${f.className||""}`,children:e.map(((e,n)=>t(aL,{title:e.title,isOpen:m===n+1,onClick:()=>(t=>{g(m===t?null:t)})(n+1),icon:e.icon||r,bordered:o,openClassName:a,itemClassName:s,contentClassName:l,headerClassName:c,suffixOnHover:d,noBackgroundOnFocus:h,disableSuffixIcon:p,children:e.content},n)))})})),lL="NavigatorItem-module_navigatorItem__wZkYp",cL="NavigatorItem-module_suffixButton__4TRQD";var uL=a((({label:e,prefixIcon:r,suffixIcons:o=[],...i})=>t(H,{dimensionX:"fill",dimensionY:36,mode:"fill",prefix:r&&{children:t(Za,{name:r})},root:{children:t(V,{dimensionX:"fill",children:e})},suffix:{children:o.length>0&&t(n,{children:o.map((({name:e,onClick:n},r)=>t(_s,{color:"transparent",className:cL,onClick:n,children:t(Za,{name:e})},r)))})},...i,className:`${lL} ${i.className}`}))),dL="Select-module_container__txDHr",hL="Select-module_disabled__RJ71M",pL="Select-module_displayer__gzmxI",fL="Select-module_selectDropdown__HBmga";var mL=a((({value:r,options:o,placeholder:i="Select an option",placement:a="bottom",multiple:c=!1,disabled:h=!1,maxCount:p,popupClassName:f="",optionProps:m,selectRef:g,disableClick:v,onChange:y,externalDropdownRef:_,...x})=>{const[w,S]=u(!1),[k,C]=u(r||(c?[]:null));l((()=>{(r||0===r||""===r)&&C(r)}),[r]);const E=s(null),M=s(null);b(_??{current:null},(()=>M.current));const{targetPosition:O,calculatePosition:P}=Q({containerRef:E,targetRef:M,initialPlacement:a});d((()=>{w&&E.current&&M.current&&P()}),[w,o,P]);b(g,(()=>({toggleDropdown:N,clear:T})));const T=()=>{C([]),y?.([]),S(!1)},N=t=>{S(void 0===t?t=>!t:t)},D=t=>"object"!=typeof o[0]?String(t):L(t),A=t=>t.length?"object"==typeof o[0]?t.map((t=>L(t))).join(", "):t.join(", "):i,L=t=>o.find((e=>e.value===t))?.label;return e(n,{children:[t(H,{ref:E,onClick:()=>{h||v||N()},dimensionX:"fill",dimensionY:36,...x,root:{children:t(V,{style:x.root?.style,className:`${x.root?.className} ${pL}`,children:k?c?A(k):D(k):i}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:t(Za,{name:"chevronDown"})},className:`${x.className} ${dL} ${h&&hL}`}),w&&t($D,{onClickOutside:()=>{v||S(!1)},children:t(B,{ref:M,style:{...O},className:`${f} ${fL}`,direction:"vertical",alignment:"leftTop",gap:0,children:o.map((e=>{const n="object"==typeof e?e.value:e,r=c?Array.isArray(k)&&k.includes(n):k===n,o=c&&!!p&&Array.isArray(k)&&k.length>=p&&!r;return t(IA,{disabled:o,dimensionX:E.current?.offsetWidth,multiple:c,option:e,selected:r,onClick:()=>(t=>{c?(()=>{if(!Array.isArray(k))return;const e=k.includes(t)?k.filter((e=>e!==t)):[...k,t];C(e),y?.(e)})():(C(t),y?.(t),S(!1))})(n),...m},n.toString())}))})})]})})),gL="SSOButton-module_ssoButton__UJTqm",vL="SSOButton-module_text__TOexm",yL="SSOButton-module_clicked__ubyV-",bL="SSOButton-module_active__kBZGN";var _L=a((({icon:e,label:n,onClick:r,...o})=>{const[i,a]=u(!1),l=s(null);return J({targetElements:[l],onClickOutside:()=>a(!1)}),t(H,{ref:l,dimensionX:200,alignment:"leftCenter",mode:"fill",gap:10,prefix:{children:t(Za,{name:e,size:"sm",className:i?bL:""})},root:{children:t(V,{className:`${vL} ${i?bL:""}`,children:n}),alignment:"leftCenter"},suffix:{children:i?t(Za,{name:"check",size:"sm",className:bL}):void 0},onClick:()=>{a(!0),r&&r()},...o,className:` ${o.className} ${gL} ${i?yL:""}`})})),xL="StorageFilter-module_container__ZnTbe",wL="StorageFilter-module_select__DyJK0",SL="StorageFilter-module_content__-Mtu6",kL="StorageFilter-module_left__uaxf1",CL="StorageFilter-module_chip__V-Qgq",EL="StorageFilter-module_active__pDnAF",ML=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===OL}(t)}(t)};var OL="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function PL(t,e){return!1!==e.clone&&e.isMergeableObject(t)?NL((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function TL(t,e,n){return t.concat(e).map((function(t){return PL(t,n)}))}function NL(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||TL,n.isMergeableObject=n.isMergeableObject||ML;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):function(t,e,n){var r={};return n.isMergeableObject(t)&&Object.keys(t).forEach((function(e){r[e]=PL(t[e],n)})),Object.keys(e).forEach((function(o){n.isMergeableObject(e[o])&&t[o]?r[o]=NL(t[o],e[o],n):r[o]=PL(e[o],n)})),r}(t,e,n):PL(e,n)}NL.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return NL(t,n,e)}),{})};var DL=NL,AL="object"==typeof global&&global&&global.Object===Object&&global,LL="object"==typeof self&&self&&self.Object===Object&&self,IL=AL||LL||Function("return this")(),zL=IL.Symbol,RL=Object.prototype,$L=RL.hasOwnProperty,FL=RL.toString,jL=zL?zL.toStringTag:void 0;var BL=Object.prototype.toString;var HL=zL?zL.toStringTag:void 0;function WL(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":HL&&HL in Object(t)?function(t){var e=$L.call(t,jL),n=t[jL];try{t[jL]=void 0;var r=!0}catch(t){}var o=FL.call(t);return r&&(e?t[jL]=n:delete t[jL]),o}(t):function(t){return BL.call(t)}(t)}function VL(t,e){return function(n){return t(e(n))}}var YL=VL(Object.getPrototypeOf,Object);function XL(t){return null!=t&&"object"==typeof t}var qL=Function.prototype,UL=Object.prototype,ZL=qL.toString,GL=UL.hasOwnProperty,KL=ZL.call(Object);function JL(t){if(!XL(t)||"[object Object]"!=WL(t))return!1;var e=YL(t);if(null===e)return!0;var n=GL.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ZL.call(n)==KL}function QL(t,e){return t===e||t!=t&&e!=e}function tI(t,e){for(var n=t.length;n--;)if(QL(t[n][0],e))return n;return-1}var eI=Array.prototype.splice;function nI(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function rI(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}nI.prototype.clear=function(){this.__data__=[],this.size=0},nI.prototype.delete=function(t){var e=this.__data__,n=tI(e,t);return!(n<0)&&(n==e.length-1?e.pop():eI.call(e,n,1),--this.size,!0)},nI.prototype.get=function(t){var e=this.__data__,n=tI(e,t);return n<0?void 0:e[n][1]},nI.prototype.has=function(t){return tI(this.__data__,t)>-1},nI.prototype.set=function(t,e){var n=this.__data__,r=tI(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function oI(t){if(!rI(t))return!1;var e=WL(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var iI=IL["__core-js_shared__"],aI=function(){var t=/[^.]+$/.exec(iI&&iI.keys&&iI.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var sI=Function.prototype.toString;function lI(t){if(null!=t){try{return sI.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var cI=/^\[object .+?Constructor\]$/,uI=Function.prototype,dI=Object.prototype,hI=uI.toString,pI=dI.hasOwnProperty,fI=RegExp("^"+hI.call(pI).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mI(t){return!(!rI(t)||function(t){return!!aI&&aI in t}(t))&&(oI(t)?fI:cI).test(lI(t))}function gI(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return mI(n)?n:void 0}var vI=gI(IL,"Map"),yI=gI(Object,"create");var bI=Object.prototype.hasOwnProperty;var _I=Object.prototype.hasOwnProperty;function xI(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function wI(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function SI(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}xI.prototype.clear=function(){this.__data__=yI?yI(null):{},this.size=0},xI.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},xI.prototype.get=function(t){var e=this.__data__;if(yI){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return bI.call(e,t)?e[t]:void 0},xI.prototype.has=function(t){var e=this.__data__;return yI?void 0!==e[t]:_I.call(e,t)},xI.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=yI&&void 0===e?"__lodash_hash_undefined__":e,this},SI.prototype.clear=function(){this.size=0,this.__data__={hash:new xI,map:new(vI||nI),string:new xI}},SI.prototype.delete=function(t){var e=wI(this,t).delete(t);return this.size-=e?1:0,e},SI.prototype.get=function(t){return wI(this,t).get(t)},SI.prototype.has=function(t){return wI(this,t).has(t)},SI.prototype.set=function(t,e){var n=wI(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function kI(t){var e=this.__data__=new nI(t);this.size=e.size}kI.prototype.clear=function(){this.__data__=new nI,this.size=0},kI.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},kI.prototype.get=function(t){return this.__data__.get(t)},kI.prototype.has=function(t){return this.__data__.has(t)},kI.prototype.set=function(t,e){var n=this.__data__;if(n instanceof nI){var r=n.__data__;if(!vI||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new SI(r)}return n.set(t,e),this.size=n.size,this};var CI=function(){try{var t=gI(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),EI=CI;function MI(t,e,n){"__proto__"==e&&EI?EI(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var OI=Object.prototype.hasOwnProperty;function PI(t,e,n){var r=t[e];OI.call(t,e)&&QL(r,n)&&(void 0!==n||e in t)||MI(t,e,n)}function TI(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var s=e[i],l=r?r(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),o?MI(n,s,l):PI(n,s,l)}return n}function NI(t){return XL(t)&&"[object Arguments]"==WL(t)}var DI=Object.prototype,AI=DI.hasOwnProperty,LI=DI.propertyIsEnumerable,II=NI(function(){return arguments}())?NI:function(t){return XL(t)&&AI.call(t,"callee")&&!LI.call(t,"callee")},zI=Array.isArray;var RI="object"==typeof exports&&exports&&!exports.nodeType&&exports,$I=RI&&"object"==typeof module&&module&&!module.nodeType&&module,FI=$I&&$I.exports===RI?IL.Buffer:void 0,jI=(FI?FI.isBuffer:void 0)||function(){return!1},BI=/^(?:0|[1-9]\d*)$/;function HI(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&BI.test(t))&&t>-1&&t%1==0&&t<e}function WI(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var VI={};function YI(t){return function(e){return t(e)}}VI["[object Float32Array]"]=VI["[object Float64Array]"]=VI["[object Int8Array]"]=VI["[object Int16Array]"]=VI["[object Int32Array]"]=VI["[object Uint8Array]"]=VI["[object Uint8ClampedArray]"]=VI["[object Uint16Array]"]=VI["[object Uint32Array]"]=!0,VI["[object Arguments]"]=VI["[object Array]"]=VI["[object ArrayBuffer]"]=VI["[object Boolean]"]=VI["[object DataView]"]=VI["[object Date]"]=VI["[object Error]"]=VI["[object Function]"]=VI["[object Map]"]=VI["[object Number]"]=VI["[object Object]"]=VI["[object RegExp]"]=VI["[object Set]"]=VI["[object String]"]=VI["[object WeakMap]"]=!1;var XI="object"==typeof exports&&exports&&!exports.nodeType&&exports,qI=XI&&"object"==typeof module&&module&&!module.nodeType&&module,UI=qI&&qI.exports===XI&&AL.process,ZI=function(){try{var t=qI&&qI.require&&qI.require("util").types;return t||UI&&UI.binding&&UI.binding("util")}catch(t){}}(),GI=ZI,KI=GI&&GI.isTypedArray,JI=KI?YI(KI):function(t){return XL(t)&&WI(t.length)&&!!VI[WL(t)]},QI=Object.prototype.hasOwnProperty;function tz(t,e){var n=zI(t),r=!n&&II(t),o=!n&&!r&&jI(t),i=!n&&!r&&!o&&JI(t),a=n||r||o||i,s=a?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],l=s.length;for(var c in t)!e&&!QI.call(t,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||HI(c,l))||s.push(c);return s}var ez=Object.prototype;function nz(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ez)}var rz=VL(Object.keys,Object),oz=Object.prototype.hasOwnProperty;function iz(t){return null!=t&&WI(t.length)&&!oI(t)}function az(t){return iz(t)?tz(t):function(t){if(!nz(t))return rz(t);var e=[];for(var n in Object(t))oz.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}var sz=Object.prototype.hasOwnProperty;function lz(t){if(!rI(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=nz(t),n=[];for(var r in t)("constructor"!=r||!e&&sz.call(t,r))&&n.push(r);return n}function cz(t){return iz(t)?tz(t,!0):lz(t)}var uz="object"==typeof exports&&exports&&!exports.nodeType&&exports,dz=uz&&"object"==typeof module&&module&&!module.nodeType&&module,hz=dz&&dz.exports===uz?IL.Buffer:void 0,pz=hz?hz.allocUnsafe:void 0;function fz(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function mz(){return[]}var gz=Object.prototype.propertyIsEnumerable,vz=Object.getOwnPropertySymbols,yz=vz?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}(vz(t),(function(e){return gz.call(t,e)})))}:mz,bz=yz;function _z(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}var xz=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)_z(e,bz(t)),t=YL(t);return e}:mz,wz=xz;function Sz(t,e,n){var r=e(t);return zI(t)?r:_z(r,n(t))}function kz(t){return Sz(t,az,bz)}function Cz(t){return Sz(t,cz,wz)}var Ez=gI(IL,"DataView"),Mz=gI(IL,"Promise"),Oz=gI(IL,"Set"),Pz=gI(IL,"WeakMap"),Tz="[object Map]",Nz="[object Promise]",Dz="[object Set]",Az="[object WeakMap]",Lz="[object DataView]",Iz=lI(Ez),zz=lI(vI),Rz=lI(Mz),$z=lI(Oz),Fz=lI(Pz),jz=WL;(Ez&&jz(new Ez(new ArrayBuffer(1)))!=Lz||vI&&jz(new vI)!=Tz||Mz&&jz(Mz.resolve())!=Nz||Oz&&jz(new Oz)!=Dz||Pz&&jz(new Pz)!=Az)&&(jz=function(t){var e=WL(t),n="[object Object]"==e?t.constructor:void 0,r=n?lI(n):"";if(r)switch(r){case Iz:return Lz;case zz:return Tz;case Rz:return Nz;case $z:return Dz;case Fz:return Az}return e});var Bz=jz,Hz=Object.prototype.hasOwnProperty;var Wz=IL.Uint8Array;function Vz(t){var e=new t.constructor(t.byteLength);return new Wz(e).set(new Wz(t)),e}var Yz=/\w*$/;var Xz=zL?zL.prototype:void 0,qz=Xz?Xz.valueOf:void 0;function Uz(t,e,n){var r,o=t.constructor;switch(e){case"[object ArrayBuffer]":return Vz(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return function(t,e){var n=e?Vz(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var n=e?Vz(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,Yz.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Symbol]":return r=t,qz?Object(qz.call(r)):{}}}var Zz=Object.create,Gz=function(){function t(){}return function(e){if(!rI(e))return{};if(Zz)return Zz(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Kz=Gz;var Jz=GI&&GI.isMap,Qz=Jz?YI(Jz):function(t){return XL(t)&&"[object Map]"==Bz(t)};var tR=GI&&GI.isSet,eR=tR?YI(tR):function(t){return XL(t)&&"[object Set]"==Bz(t)},nR="[object Arguments]",rR="[object Function]",oR="[object Object]",iR={};function aR(t,e,n,r,o,i){var a,s=1&e,l=2&e,c=4&e;if(n&&(a=o?n(t,r,o,i):n(t)),void 0!==a)return a;if(!rI(t))return t;var u=zI(t);if(u){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Hz.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!s)return fz(t,a)}else{var d=Bz(t),h=d==rR||"[object GeneratorFunction]"==d;if(jI(t))return function(t,e){if(e)return t.slice();var n=t.length,r=pz?pz(n):new t.constructor(n);return t.copy(r),r}(t,s);if(d==oR||d==nR||h&&!o){if(a=l||h?{}:function(t){return"function"!=typeof t.constructor||nz(t)?{}:Kz(YL(t))}(t),!s)return l?function(t,e){return TI(t,wz(t),e)}(t,function(t,e){return t&&TI(e,cz(e),t)}(a,t)):function(t,e){return TI(t,bz(t),e)}(t,function(t,e){return t&&TI(e,az(e),t)}(a,t))}else{if(!iR[d])return o?t:{};a=Uz(t,d,s)}}i||(i=new kI);var p=i.get(t);if(p)return p;i.set(t,a),eR(t)?t.forEach((function(r){a.add(aR(r,e,n,r,t,i))})):Qz(t)&&t.forEach((function(r,o){a.set(o,aR(r,e,n,o,t,i))}));var f=u?void 0:(c?l?Cz:kz:l?cz:az)(t);return function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););}(f||t,(function(r,o){f&&(r=t[o=r]),PI(a,o,aR(r,e,n,o,t,i))})),a}iR[nR]=iR["[object Array]"]=iR["[object ArrayBuffer]"]=iR["[object DataView]"]=iR["[object Boolean]"]=iR["[object Date]"]=iR["[object Float32Array]"]=iR["[object Float64Array]"]=iR["[object Int8Array]"]=iR["[object Int16Array]"]=iR["[object Int32Array]"]=iR["[object Map]"]=iR["[object Number]"]=iR[oR]=iR["[object RegExp]"]=iR["[object Set]"]=iR["[object String]"]=iR["[object Symbol]"]=iR["[object Uint8Array]"]=iR["[object Uint8ClampedArray]"]=iR["[object Uint16Array]"]=iR["[object Uint32Array]"]=!0,iR["[object Error]"]=iR[rR]=iR["[object WeakMap]"]=!1;var sR,lR;function cR(t){return aR(t,5)}var uR=function(){if(lR)return sR;lR=1;var t=Array.isArray,e=Object.keys,n=Object.prototype.hasOwnProperty,r="undefined"!=typeof Element;function o(i,a){if(i===a)return!0;if(i&&a&&"object"==typeof i&&"object"==typeof a){var s,l,c,u=t(i),d=t(a);if(u&&d){if((l=i.length)!=a.length)return!1;for(s=l;0!=s--;)if(!o(i[s],a[s]))return!1;return!0}if(u!=d)return!1;var h=i instanceof Date,p=a instanceof Date;if(h!=p)return!1;if(h&&p)return i.getTime()==a.getTime();var f=i instanceof RegExp,m=a instanceof RegExp;if(f!=m)return!1;if(f&&m)return i.toString()==a.toString();var g=e(i);if((l=g.length)!==e(a).length)return!1;for(s=l;0!=s--;)if(!n.call(a,g[s]))return!1;if(r&&i instanceof Element&&a instanceof Element)return i===a;for(s=l;0!=s--;)if(!("_owner"===(c=g[s])&&i.$$typeof||o(i[c],a[c])))return!1;return!0}return i!=i&&a!=a}return sR=function(t,e){try{return o(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}},sR}(),dR=yt(uR),hR="production"===process.env.NODE_ENV;function pR(t,e){if(!hR){if(t)return;var n="Warning: "+e;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(t){}}}function fR(t){return aR(t,4)}function mR(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function gR(t){return"symbol"==typeof t||XL(t)&&"[object Symbol]"==WL(t)}function vR(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(vR.Cache||SI),n}vR.Cache=SI;var yR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bR=/\\(\\)?/g,_R=function(t){var e=vR(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(yR,(function(t,n,r,o){e.push(r?o.replace(bR,"$1"):n||t)})),e})),xR=_R;function wR(t){if("string"==typeof t||gR(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}var SR=zL?zL.prototype:void 0,kR=SR?SR.toString:void 0;function CR(t){if("string"==typeof t)return t;if(zI(t))return mR(t,CR)+"";if(gR(t))return kR?kR.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ER(t){return zI(t)?mR(t,wR):gR(t)?[t]:fz(xR(function(t){return null==t?"":CR(t)}(t)))}function MR(){return MR=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},MR.apply(this,arguments)}function OR(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}function PR(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var TR=v(void 0);TR.displayName="FormikContext",TR.Provider,TR.Consumer;var NR=function(t){return Array.isArray(t)&&0===t.length},DR=function(t){return"function"==typeof t},AR=function(t){return null!==t&&"object"==typeof t},LR=function(t){return String(Math.floor(Number(t)))===t},IR=function(t){return"[object String]"===Object.prototype.toString.call(t)},zR=function(t){return AR(t)&&DR(t.then)};function RR(t,e,n,r){void 0===r&&(r=0);for(var o=ER(e);t&&r<o.length;)t=t[o[r++]];return r===o.length||t?void 0===t?n:t:n}function $R(t,e,n){for(var r=fR(t),o=r,i=0,a=ER(e);i<a.length-1;i++){var s=a[i],l=RR(t,a.slice(0,i+1));if(l&&(AR(l)||Array.isArray(l)))o=o[s]=fR(l);else{var c=a[i+1];o=o[s]=LR(c)&&Number(c)>=0?[]:{}}}return(0===i?t:o)[a[i]]===n?t:(void 0===n?delete o[a[i]]:o[a[i]]=n,0===i&&void 0===n&&delete r[a[i]],r)}function FR(t,e,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(t);o<i.length;o++){var a=i[o],s=t[a];AR(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},FR(s,e,n,r[a])):r[a]=e}return r}var jR={},BR={};function HR(t){var e=t.validateOnChange,n=void 0===e||e,r=t.validateOnBlur,o=void 0===r||r,a=t.validateOnMount,d=void 0!==a&&a,h=t.isInitialValid,p=t.enableReinitialize,f=void 0!==p&&p,m=t.onSubmit,g=OR(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),v=MR({validateOnChange:n,validateOnBlur:o,validateOnMount:d,onSubmit:m},g),y=s(v.initialValues),b=s(v.initialErrors||jR),_=s(v.initialTouched||BR),x=s(v.initialStatus),w=s(!1),S=s({});"production"!==process.env.NODE_ENV&&l((function(){void 0!==h&&("production"!==process.env.NODE_ENV?pR(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):pR(!1))}),[]),l((function(){return w.current=!0,function(){w.current=!1}}),[]);var k=u(0)[1],C=s({values:cR(v.initialValues),errors:cR(v.initialErrors)||jR,touched:cR(v.initialTouched)||BR,status:cR(v.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),E=C.current,M=c((function(t){var e=C.current;C.current=function(t,e){switch(e.type){case"SET_VALUES":return MR({},t,{values:e.payload});case"SET_TOUCHED":return MR({},t,{touched:e.payload});case"SET_ERRORS":return dR(t.errors,e.payload)?t:MR({},t,{errors:e.payload});case"SET_STATUS":return MR({},t,{status:e.payload});case"SET_ISSUBMITTING":return MR({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return MR({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return MR({},t,{values:$R(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return MR({},t,{touched:$R(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return MR({},t,{errors:$R(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return MR({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return MR({},t,{touched:FR(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return MR({},t,{isSubmitting:!1});default:return t}}(e,t),e!==C.current&&k((function(t){return t+1}))}),[]),O=c((function(t,e){return new Promise((function(n,r){var o=v.validate(t,e);null==o?n(jR):zR(o)?o.then((function(t){n(t||jR)}),(function(t){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",t),r(t)})):n(o)}))}),[v.validate]),P=c((function(t,e){var n=v.validationSchema,r=DR(n)?n(e):n,o=e&&r.validateAt?r.validateAt(e,t):function(t,e,n,r){void 0===n&&(n=!1);var o=VR(t);return e[n?"validateSync":"validate"](o,{abortEarly:!1,context:r||o})}(t,r);return new Promise((function(t,e){o.then((function(){t(jR)}),(function(n){"ValidationError"===n.name?t(function(t){var e={};if(t.inner){if(0===t.inner.length)return $R(e,t.path,t.message);var n=t.inner,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;RR(e,a.path)||(e=$R(e,a.path,a.message))}}return e}(n)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",n),e(n))}))}))}),[v.validationSchema]),T=c((function(t,e){return new Promise((function(n){return n(S.current[t].validate(e))}))}),[]),N=c((function(t){var e=Object.keys(S.current).filter((function(t){return DR(S.current[t].validate)})),n=e.length>0?e.map((function(e){return T(e,RR(t,e))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(t){return t.reduce((function(t,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(t=$R(t,e[r],n)),t}),{})}))}),[T]),D=c((function(t){return Promise.all([N(t),v.validationSchema?P(t):{},v.validate?O(t):{}]).then((function(t){var e=t[0],n=t[1],r=t[2];return DL.all([e,n,r],{arrayMerge:YR})}))}),[v.validate,v.validationSchema,N,O,P]),A=qR((function(t){return void 0===t&&(t=E.values),M({type:"SET_ISVALIDATING",payload:!0}),D(t).then((function(t){return w.current&&(M({type:"SET_ISVALIDATING",payload:!1}),M({type:"SET_ERRORS",payload:t})),t}))}));l((function(){d&&!0===w.current&&dR(y.current,v.initialValues)&&A(y.current)}),[d,A]);var L=c((function(t){var e=t&&t.values?t.values:y.current,n=t&&t.errors?t.errors:b.current?b.current:v.initialErrors||{},r=t&&t.touched?t.touched:_.current?_.current:v.initialTouched||{},o=t&&t.status?t.status:x.current?x.current:v.initialStatus;y.current=e,b.current=n,_.current=r,x.current=o;var i=function(){M({type:"RESET_FORM",payload:{isSubmitting:!!t&&!!t.isSubmitting,errors:n,touched:r,status:o,values:e,isValidating:!!t&&!!t.isValidating,submitCount:t&&t.submitCount&&"number"==typeof t.submitCount?t.submitCount:0}})};if(v.onReset){var a=v.onReset(E.values,Q);zR(a)?a.then(i):i()}else i()}),[v.initialErrors,v.initialStatus,v.initialTouched,v.onReset]);l((function(){!0!==w.current||dR(y.current,v.initialValues)||f&&(y.current=v.initialValues,L(),d&&A(y.current))}),[f,v.initialValues,L,d,A]),l((function(){f&&!0===w.current&&!dR(b.current,v.initialErrors)&&(b.current=v.initialErrors||jR,M({type:"SET_ERRORS",payload:v.initialErrors||jR}))}),[f,v.initialErrors]),l((function(){f&&!0===w.current&&!dR(_.current,v.initialTouched)&&(_.current=v.initialTouched||BR,M({type:"SET_TOUCHED",payload:v.initialTouched||BR}))}),[f,v.initialTouched]),l((function(){f&&!0===w.current&&!dR(x.current,v.initialStatus)&&(x.current=v.initialStatus,M({type:"SET_STATUS",payload:v.initialStatus}))}),[f,v.initialStatus,v.initialTouched]);var I=qR((function(t){if(S.current[t]&&DR(S.current[t].validate)){var e=RR(E.values,t),n=S.current[t].validate(e);return zR(n)?(M({type:"SET_ISVALIDATING",payload:!0}),n.then((function(t){return t})).then((function(e){M({type:"SET_FIELD_ERROR",payload:{field:t,value:e}}),M({type:"SET_ISVALIDATING",payload:!1})}))):(M({type:"SET_FIELD_ERROR",payload:{field:t,value:n}}),Promise.resolve(n))}return v.validationSchema?(M({type:"SET_ISVALIDATING",payload:!0}),P(E.values,t).then((function(t){return t})).then((function(e){M({type:"SET_FIELD_ERROR",payload:{field:t,value:RR(e,t)}}),M({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),z=c((function(t,e){var n=e.validate;S.current[t]={validate:n}}),[]),R=c((function(t){delete S.current[t]}),[]),$=qR((function(t,e){return M({type:"SET_TOUCHED",payload:t}),(void 0===e?o:e)?A(E.values):Promise.resolve()})),F=c((function(t){M({type:"SET_ERRORS",payload:t})}),[]),j=qR((function(t,e){var r=DR(t)?t(E.values):t;return M({type:"SET_VALUES",payload:r}),(void 0===e?n:e)?A(r):Promise.resolve()})),B=c((function(t,e){M({type:"SET_FIELD_ERROR",payload:{field:t,value:e}})}),[]),H=qR((function(t,e,r){return M({type:"SET_FIELD_VALUE",payload:{field:t,value:e}}),(void 0===r?n:r)?A($R(E.values,t,e)):Promise.resolve()})),W=c((function(t,e){var n,r=e,o=t;if(!IR(t)){t.persist&&t.persist();var i=t.target?t.target:t.currentTarget,a=i.type,s=i.name,l=i.id,c=i.value,u=i.checked,d=i.outerHTML,h=i.options,p=i.multiple;(r=e||(s||l))||"production"===process.env.NODE_ENV||WR({htmlContent:d,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),o=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(t,e,n){if("boolean"==typeof t)return Boolean(e);var r=[],o=!1,i=-1;if(Array.isArray(t))r=t,o=(i=t.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(e);if(e&&n&&!o)return r.concat(n);if(!o)return r;return r.slice(0,i).concat(r.slice(i+1))}(RR(E.values,r),u,c):h&&p?function(t){return Array.from(t).filter((function(t){return t.selected})).map((function(t){return t.value}))}(h):c}r&&H(r,o)}),[H,E.values]),V=qR((function(t){if(IR(t))return function(e){return W(e,t)};W(t)})),Y=qR((function(t,e,n){return void 0===e&&(e=!0),M({type:"SET_FIELD_TOUCHED",payload:{field:t,value:e}}),(void 0===n?o:n)?A(E.values):Promise.resolve()})),X=c((function(t,e){t.persist&&t.persist();var n=t.target,r=n.name,o=n.id,i=n.outerHTML,a=e||(r||o);a||"production"===process.env.NODE_ENV||WR({htmlContent:i,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),Y(a,!0)}),[Y]),q=qR((function(t){if(IR(t))return function(e){return X(e,t)};X(t)})),U=c((function(t){DR(t)?M({type:"SET_FORMIK_STATE",payload:t}):M({type:"SET_FORMIK_STATE",payload:function(){return t}})}),[]),Z=c((function(t){M({type:"SET_STATUS",payload:t})}),[]),G=c((function(t){M({type:"SET_ISSUBMITTING",payload:t})}),[]),K=qR((function(){return M({type:"SUBMIT_ATTEMPT"}),A().then((function(t){var e=t instanceof Error;if(!e&&0===Object.keys(t).length){var n;try{if(void 0===(n=tt()))return}catch(t){throw t}return Promise.resolve(n).then((function(t){return w.current&&M({type:"SUBMIT_SUCCESS"}),t})).catch((function(t){if(w.current)throw M({type:"SUBMIT_FAILURE"}),t}))}if(w.current&&(M({type:"SUBMIT_FAILURE"}),e))throw t}))})),J=qR((function(t){if(t&&t.preventDefault&&DR(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&DR(t.stopPropagation)&&t.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var e=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}();null!==e&&e instanceof HTMLButtonElement&&(e.attributes&&e.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?pR(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):pR(!1)))}K().catch((function(t){console.warn("Warning: An unhandled error was caught from submitForm()",t)}))})),Q={resetForm:L,validateForm:A,validateField:I,setErrors:F,setFieldError:B,setFieldTouched:Y,setFieldValue:H,setStatus:Z,setSubmitting:G,setTouched:$,setValues:j,setFormikState:U,submitForm:K},tt=qR((function(){return m(E.values,Q)})),et=qR((function(t){t&&t.preventDefault&&DR(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&DR(t.stopPropagation)&&t.stopPropagation(),L()})),nt=c((function(t){return{value:RR(E.values,t),error:RR(E.errors,t),touched:!!RR(E.touched,t),initialValue:RR(y.current,t),initialTouched:!!RR(_.current,t),initialError:RR(b.current,t)}}),[E.errors,E.touched,E.values]),rt=c((function(t){return{setValue:function(e,n){return H(t,e,n)},setTouched:function(e,n){return Y(t,e,n)},setError:function(e){return B(t,e)}}}),[H,Y,B]),ot=c((function(t){var e=AR(t),n=e?t.name:t,r=RR(E.values,n),o={name:n,value:r,onChange:V,onBlur:q};if(e){var i=t.type,a=t.value,s=t.as,l=t.multiple;"checkbox"===i?void 0===a?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(a)),o.value=a):"radio"===i?(o.checked=r===a,o.value=a):"select"===s&&l&&(o.value=o.value||[],o.multiple=!0)}return o}),[q,V,E.values]),it=i((function(){return!dR(y.current,E.values)}),[y.current,E.values]),at=i((function(){return void 0!==h?it?E.errors&&0===Object.keys(E.errors).length:!1!==h&&DR(h)?h(v):h:E.errors&&0===Object.keys(E.errors).length}),[h,it,E.errors,v]);return MR({},E,{initialValues:y.current,initialErrors:b.current,initialTouched:_.current,initialStatus:x.current,handleBlur:q,handleChange:V,handleReset:et,handleSubmit:J,resetForm:L,setErrors:F,setFormikState:U,setFieldTouched:Y,setFieldValue:H,setFieldError:B,setStatus:Z,setSubmitting:G,setTouched:$,setValues:j,submitForm:K,validateForm:A,validateField:I,isValid:at,dirty:it,unregisterField:R,registerField:z,getFieldProps:ot,getFieldMeta:nt,getFieldHelpers:rt,validateOnBlur:o,validateOnChange:n,validateOnMount:d})}function WR(t){var e=t.htmlContent,n=t.documentationAnchorLink,r=t.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+e+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+n+"\n ")}function VR(t){var e=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=String(n);!0===Array.isArray(t[r])?e[r]=t[r].map((function(t){return!0===Array.isArray(t)||JL(t)?VR(t):""!==t?t:void 0})):JL(t[r])?e[r]=VR(t[r]):e[r]=""!==t[r]?t[r]:void 0}return e}function YR(t,e,n){var r=t.slice();return e.forEach((function(e,o){if(void 0===r[o]){var i=!1!==n.clone&&n.isMergeableObject(e);r[o]=i?DL(Array.isArray(e)?[]:{},e,n):e}else n.isMergeableObject(e)?r[o]=DL(t[o],e,n):-1===t.indexOf(e)&&r.push(e)})),r}var XR="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?d:l;function qR(t){var e=s(t);return XR((function(){e.current=t})),c((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.current.apply(void 0,n)}),[])}h((function(t,e){var n,r=t.action,o=OR(t,["action"]),i=null!=r?r:"#",a=((n=p(TR))||("production"!==process.env.NODE_ENV?pR(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):pR(!1)),n),s=a.handleReset,l=a.handleSubmit;return w("form",MR({onSubmit:l,ref:e,onReset:s,action:i},o))})).displayName="Form";var UR=function(t,e,n){var r=ZR(t);return r.splice(e,0,n),r},ZR=function(t){if(t){if(Array.isArray(t))return[].concat(t);var e=Object.keys(t).map((function(t){return parseInt(t)})).reduce((function(t,e){return e>t?e:t}),0);return Array.from(MR({},t,{length:e+1}))}return[]},GR=function(t,e){var n="function"==typeof t?t:e;return function(t){if(Array.isArray(t)||AR(t)){var e=ZR(t);return n(e)}return t}},KR=function(t){var e,n;function r(e){var n;return(n=t.call(this,e)||this).updateArrayField=function(t,e,r){var o=n.props,i=o.name;(0,o.formik.setFormikState)((function(n){var o=GR(r,t),a=GR(e,t),s=$R(n.values,i,t(RR(n.values,i))),l=r?o(RR(n.errors,i)):void 0,c=e?a(RR(n.touched,i)):void 0;return NR(l)&&(l=void 0),NR(c)&&(c=void 0),MR({},n,{values:s,errors:r?$R(n.errors,i,l):n.errors,touched:e?$R(n.touched,i,c):n.touched})}))},n.push=function(t){return n.updateArrayField((function(e){return[].concat(ZR(e),[cR(t)])}),!1,!1)},n.handlePush=function(t){return function(){return n.push(t)}},n.swap=function(t,e){return n.updateArrayField((function(n){return function(t,e,n){var r=ZR(t),o=r[e];return r[e]=r[n],r[n]=o,r}(n,t,e)}),!0,!0)},n.handleSwap=function(t,e){return function(){return n.swap(t,e)}},n.move=function(t,e){return n.updateArrayField((function(n){return function(t,e,n){var r=ZR(t),o=r[e];return r.splice(e,1),r.splice(n,0,o),r}(n,t,e)}),!0,!0)},n.handleMove=function(t,e){return function(){return n.move(t,e)}},n.insert=function(t,e){return n.updateArrayField((function(n){return UR(n,t,e)}),(function(e){return UR(e,t,null)}),(function(e){return UR(e,t,null)}))},n.handleInsert=function(t,e){return function(){return n.insert(t,e)}},n.replace=function(t,e){return n.updateArrayField((function(n){return function(t,e,n){var r=ZR(t);return r[e]=n,r}(n,t,e)}),!1,!1)},n.handleReplace=function(t,e){return function(){return n.replace(t,e)}},n.unshift=function(t){var e=-1;return n.updateArrayField((function(n){var r=n?[t].concat(n):[t];return e=r.length,r}),(function(t){return t?[null].concat(t):[null]}),(function(t){return t?[null].concat(t):[null]})),e},n.handleUnshift=function(t){return function(){return n.unshift(t)}},n.handleRemove=function(t){return function(){return n.remove(t)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(PR(n)),n.pop=n.pop.bind(PR(n)),n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.componentDidUpdate=function(t){this.props.validateOnChange&&this.props.formik.validateOnChange&&!dR(RR(t.formik.values,t.name),RR(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},o.remove=function(t){var e;return this.updateArrayField((function(n){var r=n?ZR(n):[];return e||(e=r[t]),DR(r.splice)&&r.splice(t,1),DR(r.every)&&r.every((function(t){return void 0===t}))?[]:r}),!0,!0),e},o.pop=function(){var t;return this.updateArrayField((function(e){var n=e.slice();return t||(t=n&&n.pop&&n.pop()),n}),!0,!0),t},o.render=function(){var t={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},e=this.props,n=e.component,r=e.render,o=e.children,i=e.name,a=MR({},t,{form:OR(e.formik,["validate","validationSchema"]),name:i});return n?w(n,a):r?r(a):o?"function"==typeof o?o(a):function(t){return 0===y.count(t)}(o)?null:y.only(o):null},r}(S);KR.defaultProps={validateOnChange:!0};const JR=[{value:"jpg",label:"JPG"},{value:"png",label:"PNG"},{value:"mp4",label:"MP4"}],QR=["kb","mb","gb","tb"],t$=[{value:"last_1_hour",label:"Last 1 Hour"},{value:"last_6_hour",label:"Last 6 Hour"},{value:"last_12_hour",label:"Last 12 Hour"},{value:"last_24_hour",label:"Last 24 Hour"},{value:"last_2_days",label:"Last 2 Days"},{value:"last_7_days",label:"Last 7 Days"},{value:"last_14_days",label:"Last 14 Days"},{value:"last_28_days",label:"Last 28 Days"},{value:"today",label:"Today"},{value:"yesterday",label:"Yesterday"},{value:"this_week",label:"This Week"},{value:"last_week",label:"Last Week"}];var e$=a((({onApply:n,onCancel:r})=>{const o=HR({initialValues:{type:["jpg","png","mp4"],fileSize:{min:{value:1,unit:"mb"},max:{value:10,unit:"gb"}},quickdate:null,dateRange:{from:null,to:null}},onSubmit:t=>i(t)}),i=t=>{n?.(t)};return t("form",{onSubmit:o.handleSubmit,children:e(B,{dimensionX:515,dimensionY:350,gap:10,className:xL,direction:"vertical",children:[t(H,{dimensionX:"fill",prefix:{children:t(V,{children:"Type"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:t(mL,{dimensionY:"hug",options:JR,value:o.values.type,onChange:t=>o.setFieldValue("type",t),dimensionX:200,alignment:"rightCenter",placeholder:"",multiple:!0,className:`${wL} ${SL}`})}}),t(H,{dimensionX:"fill",prefix:{children:t(V,{children:"File Size"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:e(B,{className:SL,children:[e(B,{className:kL,children:[t(G,{value:o.values.fileSize.min.value,type:"number",dimensionX:45,onChange:t=>o.setFieldValue("fileSize.min.value",t.target.value)}),t(mL,{dimensionY:"hug",options:QR,dimensionX:60,onChange:t=>o.setFieldValue("fileSize.min.unit",t),alignment:"rightCenter",placeholder:"",value:o.values.fileSize.min.unit,className:wL})]}),e(B,{children:[t(G,{value:o.values.fileSize.max.value,type:"number",dimensionX:45,onChange:t=>o.setFieldValue("fileSize.max.value",t.target.value)}),t(mL,{dimensionY:"hug",options:QR,dimensionX:60,onChange:t=>o.setFieldValue("fileSize.max.unit",t),alignment:"rightCenter",placeholder:"",value:o.values.fileSize.max.unit,className:wL})]})]})}}),t(V,{dimensionX:"fill",children:"Created At"}),t(B,{direction:"wrap",dimensionX:"fill",children:t$.map((e=>{const n=o.values.quickdate===e.value;return t(em,{gap:5,dimensionX:120,label:e.label,className:`${CL} ${n&&EL}`,variant:"outlined",suffixIcon:n?"check":void 0,onClick:()=>o.setFieldValue("quickdate",e.value)},e.value)}))}),t(H,{dimensionX:"fill",prefix:{children:t(V,{children:"From"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:t(B,{className:SL,dimensionY:31.5,dimensionX:200,children:t(PD,{onChange:t=>o.setFieldValue("dateRange.from",t),value:o.values.dateRange.from||null,placeholder:"Date",suffixIcon:t(Za,{name:"chevronDown"}),format:"YYYY-MM-DD HH:mm:ss",showTime:!0})})}}),t(H,{dimensionX:"fill",prefix:{children:t(V,{children:"To"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:t(B,{className:SL,dimensionY:31.5,dimensionX:200,children:t(PD,{onChange:t=>o.setFieldValue("dateRange.to",t),value:o.values.dateRange.to,placeholder:"Date",suffixIcon:t(Za,{name:"chevronDown"}),format:"YYYY-MM-DD HH:mm:ss",showTime:!0})})}}),e(B,{dimensionX:"fill",alignment:"rightCenter",children:[e(_s,{color:"transparent",variant:"text",onClick:()=>{r?.()},children:[t(Za,{name:"close"}),"Cancel"]}),e(_s,{type:"submit",children:[t(Za,{name:"filter"})," Apply"]})]})]})})})),n$="Timeline-module_pan__6qEQq",r$="Timeline-module_container__s3lvD",o$="Timeline-module_date__z5hHi",i$="Timeline-module_from__K9jIK",a$="Timeline-module_to__gGj9w";const s$="label";function l$(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function c$(t,e){t.labels=e}function u$(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s$;const r=[];t.datasets=e.map((e=>{const o=t.datasets.find((t=>t[n]===e[n]));return o&&e.data&&!r.includes(o)?(r.push(o),Object.assign(o,e),o):{...e}}))}function d$(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s$;const n={labels:[],datasets:[]};return c$(n,t.labels),u$(n,t.datasets,e),n}function h$(t,e){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:c,data:u,options:d,plugins:h=[],fallbackContent:p,updateMode:f,...m}=t,g=s(null),v=s(null),y=()=>{g.current&&(v.current=new qh(g.current,{type:c,data:d$(u,a),options:d&&{...d},plugins:h}),l$(e,v.current))},b=()=>{l$(e,null),v.current&&(v.current.destroy(),v.current=null)};return l((()=>{!i&&v.current&&d&&function(t,e){const n=t.options;n&&e&&Object.assign(n,e)}(v.current,d)}),[i,d]),l((()=>{!i&&v.current&&c$(v.current.config.data,u.labels)}),[i,u.labels]),l((()=>{!i&&v.current&&u.datasets&&u$(v.current.config.data,u.datasets,a)}),[i,u.datasets]),l((()=>{v.current&&(i?(b(),setTimeout(y)):v.current.update(f))}),[i,d,u.labels,u.datasets,f]),l((()=>{v.current&&(b(),setTimeout(y))}),[c]),l((()=>(y(),()=>b())),[]),o.createElement("canvas",{ref:g,role:"img",height:n,width:r,...m},p)}const p$=h(h$);function f$(t,e){return qh.register(e),h(((e,n)=>o.createElement(p$,{...e,ref:n,type:t})))}const m$=f$("bar",md);var g$,v$={exports:{}};
68
68
  /*! Hammer.JS - v2.0.7 - 2016-04-22
69
69
  * http://hammerjs.github.io/
70
70
  *