SmartIT_Extensions/BAK/AdressSearchFIX/adressService/ntt.smartit.adressService.js

5 lines
515 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jQuery")):"function"==typeof define&&define.amd?define(["jQuery"],e):"object"==typeof exports?exports.adressService=e(require("jQuery")):(t.ntt=t.ntt||{},t.ntt.smartit=t.ntt.smartit||{},t.ntt.smartit.adressService=e(t.jQuery))}(window,function(__WEBPACK_EXTERNAL_MODULE__50__){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="NTTDATA/modules/adressService/",i(i.s=105)}([function(t,e,i){"use strict";i.d(e,"b",function(){return s}),i.d(e,"c",function(){return a}),i.d(e,"d",function(){return h}),i.d(e,"e",function(){return l}),i.d(e,"f",function(){return c}),i.d(e,"g",function(){return u}),i.d(e,"h",function(){return p}),i.d(e,"i",function(){return d}),i.d(e,"j",function(){return f}),i.d(e,"k",function(){return _}),i.d(e,"l",function(){return g}),i.d(e,"m",function(){return m}),i.d(e,"n",function(){return v}),i.d(e,"o",function(){return y}),i.d(e,"p",function(){return b}),i.d(e,"q",function(){return x}),i.d(e,"r",function(){return O}),i.d(e,"s",function(){return T}),i.d(e,"t",function(){return S}),i.d(e,"u",function(){return C}),i.d(e,"v",function(){return P}),i.d(e,"w",function(){return I}),i.d(e,"x",function(){return L}),i.d(e,"y",function(){return R}),i.d(e,"z",function(){return M}),i.d(e,"A",function(){return j}),i.d(e,"B",function(){return k}),i.d(e,"C",function(){return A}),i.d(e,"D",function(){return D}),i.d(e,"E",function(){return F}),i.d(e,"F",function(){return N}),i.d(e,"H",function(){return z}),i.d(e,"I",function(){return B}),i.d(e,"J",function(){return G}),i.d(e,"G",function(){return Z}),i.d(e,"a",function(){return W}),i.d(e,"K",function(){return Y});var n=i(10),o=i(52),r=i(22);function s(t){for(var e=f(),i=0,n=t.length;i<n;++i)O(e,t[i]);return e}function a(t,e,i){return i?(i[0]=t[0]-e,i[1]=t[1]-e,i[2]=t[2]+e,i[3]=t[3]+e,i):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function h(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function l(t,e,i){var n,o;return(n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*n+(o=i<t[1]?t[1]-i:t[3]<i?i-t[3]:0)*o}function c(t,e){return p(t,e[0],e[1])}function u(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function p(t,e,i){return t[0]<=e&&e<=t[2]&&t[1]<=i&&i<=t[3]}function d(t,e){var i=t[0],n=t[1],o=t[2],s=t[3],a=e[0],h=e[1],l=r.a.UNKNOWN;return a<i?l|=r.a.LEFT:a>o&&(l|=r.a.RIGHT),h<n?l|=r.a.BELOW:h>s&&(l|=r.a.ABOVE),l===r.a.UNKNOWN&&(l=r.a.INTERSECTING),l}function f(){return[1/0,1/0,-1/0,-1/0]}function _(t,e,i,n,o){return o?(o[0]=t,o[1]=e,o[2]=i,o[3]=n,o):[t,e,i,n]}function g(t){return _(1/0,1/0,-1/0,-1/0,t)}function m(t,e){var i=t[0],n=t[1];return _(i,n,i,n,e)}function v(t,e){return w(g(e),t)}function y(t,e,i,n,o){return T(g(o),t,e,i,n)}function b(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function x(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function O(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function w(t,e){for(var i=0,n=e.length;i<n;++i)O(t,e[i]);return t}function T(t,e,i,n,o){for(;i<n;i+=o)E(t,e[i],e[i+1]);return t}function E(t,e,i){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],i)}function S(t,e){var i;return(i=e(P(t)))?i:(i=e(I(t)))?i:(i=e(D(t)))?i:(i=e(A(t)))||!1}function C(t){var e=0;return z(t)||(e=F(t)*j(t)),e}function P(t){return[t[0],t[1]]}function I(t){return[t[2],t[1]]}function L(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function R(t,e){var i;return e===o.a.BOTTOM_LEFT?i=P(t):e===o.a.BOTTOM_RIGHT?i=I(t):e===o.a.TOP_LEFT?i=A(t):e===o.a.TOP_RIGHT?i=D(t):Object(n.a)(!1,13),i}function M(t,e,i,n,o){var r=e*n[0]/2,s=e*n[1]/2,a=Math.cos(i),h=Math.sin(i),l=r*a,c=r*h,u=s*a,p=s*h,d=t[0],f=t[1],g=d-l+p,m=d-l-p,v=d+l-p,y=d+l+p,b=f-c-u,x=f-c+u,O=f+c+u,w=f+c-u;return _(Math.min(g,m,v,y),Math.min(b,x,O,w),Math.max(g,m,v,y),Math.max(b,x,O,w),o)}function j(t){return t[3]-t[1]}function k(t,e,i){var n=i||[1/0,1/0,-1/0,-1/0];return N(t,e)?(t[0]>e[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]<e[2]?n[2]=t[2]:n[2]=e[2],t[3]<e[3]?n[3]=t[3]:n[3]=e[3]):g(n),n}function A(t){return[t[0],t[3]]}function D(t){return[t[2],t[3]]}function F(t){return t[2]-t[0]}function N(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function z(t){return t[2]<t[0]||t[3]<t[1]}function B(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function G(t,e){var i=(t[2]-t[0])/2*(e-1),n=(t[3]-t[1])/2*(e-1);t[0]-=i,t[2]+=i,t[1]-=n,t[3]+=n}function Z(t,e,i){var n=!1,o=d(t,e),s=d(t,i);if(o===r.a.INTERSECTING||s===r.a.INTERSECTING)n=!0;else{var a=t[0],h=t[1],l=t[2],c=t[3],u=e[0],p=e[1],f=i[0],_=i[1],g=(_-p)/(f-u),m=void 0,v=void 0;s&r.a.ABOVE&&!(o&r.a.ABOVE)&&(n=(m=f-(_-c)/g)>=a&&m<=l),n||!(s&r.a.RIGHT)||o&r.a.RIGHT||(n=(v=_-(f-l)*g)>=h&&v<=c),n||!(s&r.a.BELOW)||o&r.a.BELOW||(n=(m=f-(_-h)/g)>=a&&m<=l),n||!(s&r.a.LEFT)||o&r.a.LEFT||(n=(v=_-(f-a)*g)>=h&&v<=c)}return n}function W(t,e,i,n){var o=[];if(n>1)for(var r=t[2]-t[0],s=t[3]-t[1],a=0;a<n;++a)o.push(t[0]+r*a/n,t[1],t[2],t[1]+s*a/n,t[2]-r*a/n,t[3],t[0],t[3]-s*a/n);else o=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(o,o,2);for(var h=[],l=[],c=(a=0,o.length);a<c;a+=2)h.push(o[a]),l.push(o[a+1]);return function(t,e,i){return _(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),i)}(h,l,i)}function Y(t,e){var i=e.getExtent(),n=L(t);if(e.canWrapX()&&(n[0]<i[0]||n[0]>=i[2])){var o=F(i),r=Math.floor((n[0]-i[0])/o)*o;t[0]-=r,t[2]-=r}return t}},function(t,e,i){"use strict";function n(){return function(){throw new Error("Unimplemented abstract method.")}()}i.d(e,"b",function(){return n}),i.d(e,"c",function(){return r}),i.d(e,"a",function(){return s});var o=0;function r(t){return t.ol_uid||(t.ol_uid=String(++o))}var s="6.3.1"},function(t,e,i){"use strict";var n,o=i(61),r=i(0),s=i(5),a=i(23),h=function(){function t(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}return t.prototype.canWrapX=function(){return this.canWrapX_},t.prototype.getCode=function(){return this.code_},t.prototype.getExtent=function(){return this.extent_},t.prototype.getUnits=function(){return this.units_},t.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||a.a[this.units_]},t.prototype.getWorldExtent=function(){return this.worldExtent_},t.prototype.getAxisOrientation=function(){return this.axisOrientation_},t.prototype.isGlobal=function(){return this.global_},t.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},t.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},t.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},t.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},t.prototype.setWorldExtent=function(t){this.worldExtent_=t},t.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},t.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},t}(),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=6378137,u=Math.PI*c,p=[-u,-u,u,u],d=[-180,-85,180,85],f=function(t){function e(e){return t.call(this,{code:e,units:a.b.METERS,extent:p,global:!0,worldExtent:d,getPointResolution:function(t,e){return t/Object(s.b)(e[1]/c)}})||this}return l(e,t),e}(h),_=[new f("EPSG:3857"),new f("EPSG:102100"),new f("EPSG:102113"),new f("EPSG:900913"),new f("urn:ogc:def:crs:EPSG:6.18:3:3857"),new f("urn:ogc:def:crs:EPSG::3857"),new f("http://www.opengis.net/gml/srs/epsg.xml#3857")];function g(t,e,i){var n=t.length,o=i>1?i:2,r=e;void 0===r&&(r=o>2?t.slice():new Array(n));for(var s=u,a=0;a<n;a+=o){r[a]=s*t[a]/180;var h=c*Math.log(Math.tan(Math.PI*(+t[a+1]+90)/360));h>s?h=s:h<-s&&(h=-s),r[a+1]=h}return r}function m(t,e,i){var n=t.length,o=i>1?i:2,r=e;void 0===r&&(r=o>2?t.slice():new Array(n));for(var s=0;s<n;s+=o)r[s]=180*t[s]/u,r[s+1]=360*Math.atan(Math.exp(t[s+1]/c))/Math.PI-90;return r}var v=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),y=[-180,-90,180,90],b=6378137*Math.PI/180,x=function(t){function e(e,i){return t.call(this,{code:e,units:a.b.DEGREES,extent:y,axisOrientation:i,global:!0,metersPerUnit:b,worldExtent:y})||this}return v(e,t),e}(h),O=[new x("CRS:84"),new x("EPSG:4326","neu"),new x("urn:ogc:def:crs:EPSG::4326","neu"),new x("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new x("urn:ogc:def:crs:OGC:1.3:CRS84"),new x("urn:ogc:def:crs:OGC:2:84"),new x("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new x("urn:x-ogc:def:crs:EPSG:4326","neu")],w=(i(11),{});function T(t,e,i){var n=t.getCode(),o=e.getCode();n in w||(w[n]={}),w[n][o]=i}var E={};function S(t,e,i){var n;if(void 0!==e){for(var o=0,r=t.length;o<r;++o)e[o]=t[o];n=e}else n=t.slice();return n}function C(t,e,i){if(void 0!==e&&t!==e){for(var n=0,o=t.length;n<o;++n)e[n]=t[n];t=e}return t}function P(t){!function(t,e){E[t]=e}(t.getCode(),t),T(t,t,S)}function I(t){return"string"==typeof t?E[t]||null:t||null}function L(t,e,i,n){var r,s=(t=I(t)).getPointResolutionFunc();if(s)r=s(e,i),n&&n!==t.getUnits()&&(h=t.getMetersPerUnit())&&(r=r*h/a.a[n]);else if(t.getUnits()==a.b.DEGREES&&!n||n==a.b.DEGREES)r=e;else{var h,l=A(t,I("EPSG:4326")),c=[i[0]-e/2,i[1],i[0]+e/2,i[1],i[0],i[1]-e/2,i[0],i[1]+e/2];c=l(c,c,2),r=(Object(o.a)(c.slice(0,2),c.slice(2,4))+Object(o.a)(c.slice(4,6),c.slice(6,8)))/2,void 0!==(h=n?a.a[n]:t.getMetersPerUnit())&&(r/=h)}return r}function R(t){!function(t){t.forEach(P)}(t),t.forEach(function(e){t.forEach(function(t){e!==t&&T(e,t,S)})})}function M(t,e){return t?"string"==typeof t?I(t):t:I(e)}function j(t,e){return F(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function k(t,e){if(t===e)return!0;var i=t.getUnits()===e.getUnits();return t.getCode()===e.getCode()?i:A(t,e)===S&&i}function A(t,e){var i=function(t,e){var i;return t in w&&e in w[t]&&(i=w[t][e]),i}(t.getCode(),e.getCode());return i||(i=C),i}function D(t,e){return A(I(t),I(e))}function F(t,e,i){return D(e,i)(t,void 0,t.length)}function N(t,e,i,n){var o=D(e,i);return Object(r.a)(t,o,void 0,n)}i.d(e,"g",function(){return I}),i.d(e,"h",function(){return L}),i.d(e,"b",function(){return M}),i.d(e,"d",function(){return j}),i.d(e,"c",function(){return k}),i.d(e,"j",function(){return A}),i.d(e,"i",function(){return D}),i.d(e,"n",function(){return F}),i.d(e,"k",function(){return W}),i.d(e,"l",function(){return Y}),i.d(e,"e",function(){return V}),i.d(e,"m",function(){return X}),i.d(e,"f",function(){return U}),i.d(e,"a",function(){return a.a});var z,B,G,Z=null;function W(){return Z}function Y(t,e){return Z?F(t,e,Z):t}function V(t,e){return Z?F(t,Z,e):t}function X(t,e){return Z?N(t,e,Z):t}function U(t,e){return Z?N(t,Z,e):t}R(_),R(O),z=_,B=g,G=m,O.forEach(function(t){z.forEach(function(e){T(t,e,B),T(e,t,G)})})},function(t,e,i){"use strict";e.a={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"}},function(t,e,i){"use strict";i.d(e,"d",function(){return c}),i.d(e,"c",function(){return u}),i.d(e,"e",function(){return p}),i.d(e,"f",function(){return d}),i.d(e,"g",function(){return f}),i.d(e,"h",function(){return _}),i.d(e,"j",function(){return g}),i.d(e,"l",function(){return m}),i.d(e,"m",function(){return v}),i.d(e,"n",function(){return y}),i.d(e,"k",function(){return b}),i.d(e,"i",function(){return x}),i.d(e,"a",function(){return O}),i.d(e,"s",function(){return P}),i.d(e,"q",function(){return I}),i.d(e,"p",function(){return M}),i.d(e,"r",function(){return j}),i.d(e,"t",function(){return k}),i.d(e,"o",function(){return A}),i.d(e,"b",function(){return F});var n=i(20),o=i(14),r=i(11),s=i(13),a=i(36),h=i(18),l=i(8),c="10px sans-serif",u="#000",p="round",d=[],f=0,_="round",g=10,m="#000",v="center",y="middle",b=[0,0,0,0],x=1,O=new s.a;(new a.a).setSize=function(){console.warn("labelCache is deprecated.")};var w,T,E,S=null,C={},P=function(){var t,e,i=100,o="32px ",s=["monospace","serif"],a=s.length,h="wmytzilWMYTZIL@#/&?$%10";function l(t,i,n){for(var r=!0,l=0;l<a;++l){var c=s[l];if(e=R(t+" "+i+" "+o+c,h),n!=c){var u=R(t+" "+i+" "+o+n+","+c,h);r=r&&u!=e}}return!!r}function c(){for(var e=!0,n=O.getKeys(),o=0,s=n.length;o<s;++o){var a=n[o];O.get(a)<i&&(l.apply(this,a.split("\n"))?(Object(r.b)(C),S=null,w=void 0,O.set(a,i)):(O.set(a,O.get(a)+1,!0),e=!1))}e&&(clearInterval(t),t=void 0)}return function(e){var o=Object(n.f)(e);if(o)for(var r=o.families,s=0,a=r.length;s<a;++s){var h=r[s],u=o.style+"\n"+o.weight+"\n"+h;void 0===O.get(u)&&(O.set(u,i,!0),l(o.style,o.weight,h)||(O.set(u,0,!0),void 0===t&&(t=setInterval(c,32))))}}}(),I=(E=C,function(t){var e=E[t];if(null==e)if(h.g){var i=Object(n.f)(t),o=L(t,"Žg"),r=isNaN(Number(i.lineHeight))?1.2:Number(i.lineHeight);C[t]=r*(o.actualBoundingBoxAscent+o.actualBoundingBoxDescent)}else T||((T=document.createElement("div")).innerHTML="M",T.style.margin="0 !important",T.style.padding="0 !important",T.style.position="absolute !important",T.style.left="-99999px !important"),T.style.font=t,document.body.appendChild(T),e=T.offsetHeight,E[t]=e,document.body.removeChild(T);return e});function L(t,e){return S||(S=Object(o.a)(1,1)),t!=w&&(S.font=t,w=S.font),S.measureText(e)}function R(t,e){return L(t,e).width}function M(t,e,i){if(e in i)return i[e];var n=R(t,e);return i[e]=n,n}function j(t,e,i){for(var n=e.length,o=0,r=0;r<n;++r){var s=R(t,e[r]);o=Math.max(o,s),i.push(s)}return o}function k(t,e,i,n){0!==e&&(t.translate(i,n),t.rotate(e),t.translate(-i,-n))}function A(t,e,i,n,o,r,s,a,h,l,c){t.save(),1!==i&&(t.globalAlpha*=i),e&&t.setTransform.apply(t,e),n.contextInstructions?(t.translate(h,l),t.scale(c,c),function(t,e){for(var i=t.contextInstructions,n=0,o=i.length;n<o;n+=2)Array.isArray(i[n+1])?e[i[n]].apply(e,i[n+1]):e[i[n]]=i[n+1]}(n,t)):t.drawImage(n,o,r,s,a,h,l,s*c,a*c),t.restore()}var D=null;function F(t){return h.g?Object(l.i)(t):(D||(D=Object(o.a)(1,1).canvas),D.style.transform=Object(l.i)(t),D.style.transform)}},function(t,e,i){"use strict";function n(t,e,i){return Math.min(Math.max(t,e),i)}i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"g",function(){return r}),i.d(e,"f",function(){return s}),i.d(e,"e",function(){return a}),i.d(e,"h",function(){return h}),i.d(e,"i",function(){return l}),i.d(e,"d",function(){return c}),i.d(e,"c",function(){return u});var o="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2};function r(t,e,i,n,o,r){var a=o-i,h=r-n;if(0!==a||0!==h){var l=((t-i)*a+(e-n)*h)/(a*a+h*h);l>1?(i=o,n=r):l>0&&(i+=a*l,n+=h*l)}return s(t,e,i,n)}function s(t,e,i,n){var o=i-t,r=n-e;return o*o+r*r}function a(t){for(var e=t.length,i=0;i<e;i++){for(var n=i,o=Math.abs(t[i][i]),r=i+1;r<e;r++){var s=Math.abs(t[r][i]);s>o&&(o=s,n=r)}if(0===o)return null;var a=t[n];t[n]=t[i],t[i]=a;for(var h=i+1;h<e;h++)for(var l=-t[h][i]/t[i][i],c=i;c<e+1;c++)i==c?t[h][c]=0:t[h][c]+=l*t[i][c]}for(var u=new Array(e),p=e-1;p>=0;p--){u[p]=t[p][e]/t[p][p];for(var d=p-1;d>=0;d--)t[d][e]-=t[d][p]*u[p]}return u}function h(t){return 180*t/Math.PI}function l(t){return t*Math.PI/180}function c(t,e){var i=t%e;return i*e<0?i+e:i}function u(t,e,i){return t+i*(e-t)}},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return r}),i.d(e,"c",function(){return s});var n=i(11);function o(t,e,i,n,o){if(n&&n!==t&&(i=i.bind(n)),o){var r=i;i=function(){t.removeEventListener(e,i),r.apply(this,arguments)}}var s={target:t,type:e,listener:i};return t.addEventListener(e,i),s}function r(t,e,i,n){return o(t,e,i,n,!0)}function s(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),Object(n.b)(t))}},function(t,e,i){"use strict";e.a={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},function(t,e,i){"use strict";i.d(e,"c",function(){return r}),i.d(e,"f",function(){return s}),i.d(e,"h",function(){return h}),i.d(e,"a",function(){return l}),i.d(e,"g",function(){return c}),i.d(e,"e",function(){return u}),i.d(e,"b",function(){return p}),i.d(e,"d",function(){return d}),i.d(e,"i",function(){return f});var n=i(10),o=new Array(6);function r(){return[1,0,0,1,0,0]}function s(t,e){var i=t[0],n=t[1],o=t[2],r=t[3],s=t[4],a=t[5],h=e[0],l=e[1],c=e[2],u=e[3],p=e[4],d=e[5];return t[0]=i*h+o*l,t[1]=n*h+r*l,t[2]=i*c+o*u,t[3]=n*c+r*u,t[4]=i*p+o*d+s,t[5]=n*p+r*d+a,t}function a(t,e,i,n,o,r,s){return t[0]=e,t[1]=i,t[2]=n,t[3]=o,t[4]=r,t[5]=s,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function l(t,e){var i=e[0],n=e[1];return e[0]=t[0]*i+t[2]*n+t[4],e[1]=t[1]*i+t[3]*n+t[5],e}function c(t,e,i){return s(t,a(o,e,0,0,i,0,0))}function u(t,e,i){return a(t,e,0,0,i,0,0)}function p(t,e,i,n,o,r,s,a){var h=Math.sin(r),l=Math.cos(r);return t[0]=n*l,t[1]=o*h,t[2]=-n*h,t[3]=o*l,t[4]=s*n*l-a*n*h+e,t[5]=s*o*h+a*o*l+i,t}function d(t,e){var i,o=(i=e)[0]*i[3]-i[1]*i[2];Object(n.a)(0!==o,32);var r=e[0],s=e[1],a=e[2],h=e[3],l=e[4],c=e[5];return t[0]=h/o,t[1]=-s/o,t[2]=-a/o,t[3]=r/o,t[4]=(a*c-h*l)/o,t[5]=-(r*c-s*l)/o,t}function f(t){return"matrix("+t.join(", ")+")"}},function(t,e,i){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i(66);function o(t,e){if(!t)throw new n.a(e)}},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return r}),i.d(e,"d",function(){return s});var n="function"==typeof Object.assign?Object.assign:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),n=1,o=arguments.length;n<o;++n){var r=arguments[n];if(null!=r)for(var s in r)r.hasOwnProperty(s)&&(i[s]=r[s])}return i};function o(t){for(var e in t)delete t[e]}var r="function"==typeof Object.values?Object.values:function(t){var e=[];for(var i in t)e.push(t[i]);return e};function s(t){var e;for(e in t)return!1;return!e}},function(t,e,i){"use strict";function n(t,e){return t>e?1:t<e?-1:0}function o(t,e){return t.indexOf(e)>=0}function r(t,e,i){var n=t.length;if(t[0]<=e)return 0;if(e<=t[n-1])return n-1;var o=void 0;if(i>0){for(o=1;o<n;++o)if(t[o]<e)return o-1}else if(i<0){for(o=1;o<n;++o)if(t[o]<=e)return o}else for(o=1;o<n;++o){if(t[o]==e)return o;if(t[o]<e)return t[o-1]-e<e-t[o]?o-1:o}return n-1}function s(t,e,i){for(;e<i;){var n=t[e];t[e]=t[i],t[i]=n,++e,--i}}function a(t,e){for(var i=Array.isArray(e)?e:[e],n=i.length,o=0;o<n;o++)t[t.length]=i[o]}function h(t,e){for(var i,n=t.length>>>0,o=0;o<n;o++)if(e(i=t[o],o,t))return i;return null}function l(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}function c(t,e){var i;return!t.every(function(n,o){return i=o,!e(n,o,t)})?i:-1}function u(t,e,i){var o=e||n;return t.every(function(e,n){if(0===n)return!0;var r=o(t[n-1],e);return!(r>0||i&&0===r)})}i.d(e,"h",function(){return n}),i.d(e,"e",function(){return o}),i.d(e,"g",function(){return r}),i.d(e,"i",function(){return s}),i.d(e,"b",function(){return a}),i.d(e,"c",function(){return h}),i.d(e,"a",function(){return l}),i.d(e,"d",function(){return c}),i.d(e,"f",function(){return u})},function(t,e,i){"use strict";i.d(e,"b",function(){return d});var n,o=i(1),r=i(37),s=i(65),a=i(29),h=i(11),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=function(t){function e(e,i,n){var o=t.call(this,e)||this;return o.key=i,o.oldValue=n,o}return l(e,t),e}(a.a),u=function(t){function e(e){var i=t.call(this)||this;return Object(o.c)(i),i.values_={},void 0!==e&&i.setProperties(e),i}return l(e,t),e.prototype.get=function(t){var e;return this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return Object.keys(this.values_)},e.prototype.getProperties=function(){return Object(h.a)({},this.values_)},e.prototype.notify=function(t,e){var i;i=d(t),this.dispatchEvent(new c(i,t,e)),i=r.a.PROPERTYCHANGE,this.dispatchEvent(new c(i,t,e))},e.prototype.set=function(t,e,i){if(i)this.values_[t]=e;else{var n=this.values_[t];this.values_[t]=e,n!==e&&this.notify(t,n)}},e.prototype.setProperties=function(t,e){for(var i in t)this.set(i,t[i],e)},e.prototype.unset=function(t,e){if(t in this.values_){var i=this.values_[t];delete this.values_[t],e||this.notify(t,i)}},e}(s.a),p={};function d(t){return p.hasOwnProperty(t)?p[t]:p[t]="change:"+t}e.a=u},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"c",function(){return r}),i.d(e,"b",function(){return s}),i.d(e,"g",function(){return a}),i.d(e,"e",function(){return h}),i.d(e,"d",function(){return l}),i.d(e,"f",function(){return c});var n=i(18);function o(t,e,i){var o=i&&i.length?i.shift():n.g?new OffscreenCanvas(t||300,e||300):document.createElement("canvas");return t&&(o.width=t),e&&(o.height=e),o.getContext("2d")}function r(t){var e=t.offsetWidth,i=getComputedStyle(t);return e+=parseInt(i.marginLeft,10)+parseInt(i.marginRight,10)}function s(t){var e=t.offsetHeight,i=getComputedStyle(t);return e+=parseInt(i.marginTop,10)+parseInt(i.marginBottom,10)}function a(t,e){var i=e.parentNode;i&&i.replaceChild(t,e)}function h(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function l(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function c(t,e){for(var i=t.childNodes,n=0;;++n){var o=i[n],r=e[n];if(!o&&!r)break;o!==r&&(o?r?t.insertBefore(r,o):(t.removeChild(o),--n):t.appendChild(r))}}},function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"a",function(){return r}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return a});var n=i(12);function o(){return!0}function r(){return!1}function s(){}function a(t){var e,i,o,r=!1;return function(){var s=Array.prototype.slice.call(arguments);return r&&this===o&&Object(n.a)(s,i)||(r=!0,o=this,i=s,e=t.apply(this,arguments)),e}}},function(t,e,i){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},function(t,e,i){"use strict";e.a={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source"}},function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"f",function(){return r}),i.d(e,"d",function(){return s}),i.d(e,"a",function(){return a}),i.d(e,"g",function(){return h}),i.d(e,"c",function(){return l}),i.d(e,"e",function(){return c});var n="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",o=-1!==n.indexOf("firefox"),r=(-1!==n.indexOf("safari")&&n.indexOf("chrom"),-1!==n.indexOf("webkit")&&-1==n.indexOf("edge")),s=-1!==n.indexOf("macintosh"),a="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,h="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,l="undefined"!=typeof Image&&Image.prototype.decode,c=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(t){}return t}()},function(t,e,i){"use strict";e.a={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"}},function(t,e,i){"use strict";i.d(e,"c",function(){return n}),i.d(e,"d",function(){return o}),i.d(e,"e",function(){return r}),i.d(e,"b",function(){return s}),i.d(e,"a",function(){return a}),i.d(e,"f",function(){return c});var n="ol-hidden",o="ol-selectable",r="ol-unselectable",s="ol-control",a="ol-collapsed",h=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),l=["style","variant","weight","size","lineHeight","family"],c=function(t){var e=t.match(h);if(!e)return null;for(var i={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,o=l.length;n<o;++n){var r=e[n+1];void 0!==r&&(i[l[n]]=r)}return i.families=i.family.split(/,\s?/),i}},function(t,e,i){"use strict";e.a={ANIMATING:0,INTERACTING:1}},function(t,e,i){"use strict";e.a={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},o={};o[n.DEGREES]=2*Math.PI*6370997/360,o[n.FEET]=.3048,o[n.METERS]=1,o[n.USFEET]=1200/3937,e.b=n},function(t,e,i){"use strict";function n(t,e,i,n,o,r){for(var s=r||[],a=0,h=e;h<i;h+=n){var l=t[h],c=t[h+1];s[a++]=o[0]*l+o[2]*c+o[4],s[a++]=o[1]*l+o[3]*c+o[5]}return r&&s.length!=a&&(s.length=a),s}function o(t,e,i,n,o,r,s){for(var a=s||[],h=Math.cos(o),l=Math.sin(o),c=r[0],u=r[1],p=0,d=e;d<i;d+=n){var f=t[d]-c,_=t[d+1]-u;a[p++]=c+f*h-_*l,a[p++]=u+f*l+_*h;for(var g=d+2;g<d+n;++g)a[p++]=t[g]}return s&&a.length!=p&&(a.length=p),a}function r(t,e,i,n,o,r,s,a){for(var h=a||[],l=s[0],c=s[1],u=0,p=e;p<i;p+=n){var d=t[p]-l,f=t[p+1]-c;h[u++]=l+o*d,h[u++]=c+r*f;for(var _=p+2;_<p+n;++_)h[u++]=t[_]}return a&&h.length!=u&&(h.length=u),h}function s(t,e,i,n,o,r,s){for(var a=s||[],h=0,l=e;l<i;l+=n){a[h++]=t[l]+o,a[h++]=t[l+1]+r;for(var c=l+2;c<l+n;++c)a[h++]=t[c]}return s&&a.length!=h&&(a.length=h),a}i.d(e,"c",function(){return n}),i.d(e,"a",function(){return o}),i.d(e,"b",function(){return r}),i.d(e,"d",function(){return s})},function(t,e,i){"use strict";e.a={ADD:"add",REMOVE:"remove"}},function(t,e,i){"use strict";function n(t){return Math.pow(t,3)}function o(t){return 1-n(1-t)}function r(t){return 3*t*t-2*t*t*t}function s(t){return t}i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return r}),i.d(e,"d",function(){return s})},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return r}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return a}),i.d(e,"e",function(){return h});i(5),i(44);var n=i(0);function o(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function r(t,e){for(var i=!0,n=t.length-1;n>=0;--n)if(t[n]!=e[n]){i=!1;break}return i}function s(t,e){var i=Math.cos(e),n=Math.sin(e),o=t[0]*i-t[1]*n,r=t[1]*i+t[0]*n;return t[0]=o,t[1]=r,t}function a(t,e){return t[0]*=e,t[1]*=e,t}function h(t,e){var i=e.getExtent();if(e.canWrapX()&&(t[0]<i[0]||t[0]>=i[2])){var o=Object(n.E)(i),r=Math.floor((t[0]-i[0])/o);t[0]-=r*o}return t}},function(t,e,i){"use strict";e.a={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},function(t,e,i){"use strict";var n=function(){function t(t){this.propagationStopped,this.type=t,this.target=null}return t.prototype.preventDefault=function(){this.propagationStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t}();e.a=n},function(t,e,i){"use strict";var n,o=i(66),r=i(25),s=i(13),a=i(29),h=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l="length",c=function(t){function e(e,i,n){var o=t.call(this,e)||this;return o.element=i,o.index=n,o}return h(e,t),e}(a.a),u=function(t){function e(e,i){var n=t.call(this)||this,o=i||{};if(n.unique_=!!o.unique,n.array_=e||[],n.unique_)for(var r=0,s=n.array_.length;r<s;++r)n.assertUnique_(n.array_[r],r);return n.updateLength_(),n}return h(e,t),e.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},e.prototype.extend=function(t){for(var e=0,i=t.length;e<i;++e)this.push(t[e]);return this},e.prototype.forEach=function(t){for(var e=this.array_,i=0,n=e.length;i<n;++i)t(e[i],i,e)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(l)},e.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new c(r.a.ADD,e,t))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},e.prototype.remove=function(t){for(var e=this.array_,i=0,n=e.length;i<n;++i)if(e[i]===t)return this.removeAt(i)},e.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new c(r.a.REMOVE,e,t)),e},e.prototype.setAt=function(t,e){var i=this.getLength();if(t<i){this.unique_&&this.assertUnique_(e,t);var n=this.array_[t];this.array_[t]=e,this.dispatchEvent(new c(r.a.REMOVE,n,t)),this.dispatchEvent(new c(r.a.ADD,e,t))}else{for(var o=i;o<t;++o)this.insertAt(o,void 0);this.insertAt(t,e)}},e.prototype.updateLength_=function(){this.set(l,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var i=0,n=this.array_.length;i<n;++i)if(this.array_[i]===t&&i!==e)throw new o.a(58)},e}(s.a);e.a=u},function(t,e,i){"use strict";i.d(e,"b",function(){return a}),i.d(e,"a",function(){return p}),i.d(e,"c",function(){return f});var n=i(10),o=i(5),r=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,s=/^([a-z]*)$|^hsla?\(.*\)$/i;function a(t){return"string"==typeof t?t:f(t)}function h(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var i=getComputedStyle(e).color;return document.body.removeChild(e),i}return""}var l,c,u=(l={},c=0,function(t){var e;if(l.hasOwnProperty(t))e=l[t];else{if(c>=1024){var i=0;for(var o in l)0==(3&i++)&&(delete l[o],--c)}e=function(t){var e,i,o,a,l;if(s.exec(t)&&(t=h(t)),r.exec(t)){var c=t.length-1,u=void 0;u=c<=4?1:2;var p=4===c||8===c;e=parseInt(t.substr(1+0*u,u),16),i=parseInt(t.substr(1+1*u,u),16),o=parseInt(t.substr(1+2*u,u),16),a=p?parseInt(t.substr(1+3*u,u),16):255,1==u&&(e=(e<<4)+e,i=(i<<4)+i,o=(o<<4)+o,p&&(a=(a<<4)+a)),l=[e,i,o,a/255]}else 0==t.indexOf("rgba(")?d(l=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((l=t.slice(4,-1).split(",").map(Number)).push(1),d(l)):Object(n.a)(!1,14);return l}(t),l[t]=e,++c}return e});function p(t){return Array.isArray(t)?t:u(t)}function d(t){return t[0]=Object(o.a)(t[0]+.5|0,0,255),t[1]=Object(o.a)(t[1]+.5|0,0,255),t[2]=Object(o.a)(t[2]+.5|0,0,255),t[3]=Object(o.a)(t[3],0,1),t}function f(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var i=t[1];i!=(0|i)&&(i=i+.5|0);var n=t[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+i+","+n+","+(void 0===t[3]?1:t[3])+")"}},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i(31);function o(t){return Array.isArray(t)?Object(n.c)(t):t}},function(t,e,i){"use strict";var n=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0})},t.prototype.getColor=function(){return this.color_},t.prototype.setColor=function(t){this.color_=t},t}();e.a=n},function(t,e,i){"use strict";function n(t){return t[0]>0&&t[1]>0}function o(t,e,i){return void 0===i&&(i=[0,0]),i[0]=t[0]*e+.5|0,i[1]=t[1]*e+.5|0,i}function r(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return r})},function(t,e,i){"use strict";e.a={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"}},function(t,e,i){"use strict";var n,o=i(54),r=i(15),s=i(29),a=i(11),h=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=function(t){function e(e){var i=t.call(this)||this;return i.eventTarget_=e,i.pendingRemovals_={},i.dispatching_={},i.listeners_={},i}return h(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var i=this.listeners_[t];i||(i=[],this.listeners_[t]=i),-1===i.indexOf(e)&&i.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"==typeof t?new s.a(t):t,i=e.type;e.target||(e.target=this.eventTarget_||this);var n,o=this.listeners_[i];if(o){i in this.dispatching_||(this.dispatching_[i]=0,this.pendingRemovals_[i]=0),++this.dispatching_[i];for(var a=0,h=o.length;a<h;++a)if(!1===(n="handleEvent"in o[a]?o[a].handleEvent(e):o[a].call(this,e))||e.propagationStopped){n=!1;break}if(--this.dispatching_[i],0===this.dispatching_[i]){var l=this.pendingRemovals_[i];for(delete this.pendingRemovals_[i];l--;)this.removeEventListener(i,r.c);delete this.dispatching_[i]}return n}},e.prototype.disposeInternal=function(){Object(a.b)(this.listeners_)},e.prototype.getListeners=function(t){return this.listeners_[t]},e.prototype.hasListener=function(t){return t?t in this.listeners_:Object.keys(this.listeners_).length>0},e.prototype.removeEventListener=function(t,e){var i=this.listeners_[t];if(i){var n=i.indexOf(e);-1!==n&&(t in this.pendingRemovals_?(i[n]=r.c,++this.pendingRemovals_[t]):(i.splice(n,1),0===i.length&&delete this.listeners_[t]))}},e}(o.a);e.a=l},function(t,e,i){"use strict";e.a={PROPERTYCHANGE:"propertychange"}},function(t,e,i){"use strict";i.d(e,"b",function(){return _});var n,o=i(6),r=i(7),s=i(13),a=i(67),h=i(17),l=i(11),c=i(39),u=i(35),p=i(10),d=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),f=function(t){function e(e){var i=this,n=Object(l.a)({},e);delete n.source,(i=t.call(this,n)||this).mapPrecomposeKey_=null,i.mapRenderKey_=null,i.sourceChangeKey_=null,i.renderer_=null,e.render&&(i.render=e.render),e.map&&i.setMap(e.map),i.addEventListener(Object(s.b)(h.a.SOURCE),i.handleSourcePropertyChange_);var o=e.source?e.source:null;return i.setSource(o),i}return d(e,t),e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){return this.get(h.a.SOURCE)||null},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():u.a.UNDEFINED},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(o.c)(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=Object(o.a)(t,r.a.CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_.getFeatures(t)},e.prototype.render=function(t,e){var i=this.getRenderer();if(i.prepareFrame(t))return i.renderFrame(t,e)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Object(o.c)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Object(o.c)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Object(o.a)(t,c.a.PRECOMPOSE,function(t){var e=t.frameState.layerStatesArray,i=this.getLayerState(!1);Object(p.a)(!e.some(function(t){return t.layer===i.layer}),67),e.push(i)},this),this.mapRenderKey_=Object(o.a)(this,r.a.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(h.a.SOURCE,t)},e.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},e.prototype.hasRenderer=function(){return!!this.renderer_},e.prototype.createRenderer=function(){return null},e.prototype.disposeInternal=function(){this.setSource(null),t.prototype.disposeInternal.call(this)},e}(a.a);function _(t,e){if(!t.visible)return!1;var i=e.resolution;if(i<t.minResolution||i>=t.maxResolution)return!1;var n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}e.a=f},function(t,e,i){"use strict";e.a={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},function(t,e,i){"use strict";var n,o=i(15),r=i(47),s=i(13),a=i(14),h=i(6),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=function(t){function e(e){var i=t.call(this)||this;return i.element=e.element?e.element:null,i.target_=null,i.map_=null,i.listenerKeys=[],i.render_=e.render?e.render:o.c,e.target&&i.setTarget(e.target),i}return l(e,t),e.prototype.disposeInternal=function(){Object(a.e)(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&Object(a.e)(this.element);for(var e=0,i=this.listenerKeys.length;e<i;++e)Object(h.c)(this.listenerKeys[e]);(this.listenerKeys.length=0,this.map_=t,this.map_)&&((this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==o.c&&this.listenerKeys.push(Object(h.a)(t,r.a.POSTRENDER,this.render,this)),t.render())},e.prototype.render=function(t){this.render_.call(this,t)},e.prototype.setTarget=function(t){this.target_="string"==typeof t?document.getElementById(t):t},e}(s.a);e.a=c},function(t,e,i){"use strict";var n,o=i(1),r=i(0),s=i(13),a=i(24),h=i(2),l=i(23),c=i(8),u=i(15),p=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),d=Object(c.c)(),f=function(t){function e(){var e=t.call(this)||this;return e.extent_=Object(r.j)(),e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=Object(u.d)(function(t,e,i){if(!i)return this.getSimplifiedGeometry(e);var n=this.clone();return n.applyTransform(i),n.getSimplifiedGeometry(e)}),e}return p(e,t),e.prototype.simplifyTransformed=function(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)},e.prototype.clone=function(){return Object(o.b)()},e.prototype.closestPointXY=function(t,e,i,n){return Object(o.b)()},e.prototype.containsXY=function(t,e){var i=this.getClosestPoint([t,e]);return i[0]===t&&i[1]===e},e.prototype.getClosestPoint=function(t,e){var i=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],i,1/0),i},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return Object(o.b)()},e.prototype.getExtent=function(t){return this.extentRevision_!=this.getRevision()&&(this.extent_=this.computeExtent(this.extent_),this.extentRevision_=this.getRevision()),Object(r.I)(this.extent_,t)},e.prototype.rotate=function(t,e){Object(o.b)()},e.prototype.scale=function(t,e,i){Object(o.b)()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return Object(o.b)()},e.prototype.getType=function(){return Object(o.b)()},e.prototype.applyTransform=function(t){Object(o.b)()},e.prototype.intersectsExtent=function(t){return Object(o.b)()},e.prototype.translate=function(t,e){Object(o.b)()},e.prototype.transform=function(t,e){var i=Object(h.g)(t),n=i.getUnits()==l.b.TILE_PIXELS?function(t,n,o){var s=i.getExtent(),l=i.getWorldExtent(),u=Object(r.A)(l)/Object(r.A)(s);return Object(c.b)(d,l[0],l[3],u,-u,0,0,0),Object(a.c)(t,0,t.length,o,d,n),Object(h.i)(i,e)(t,n,o)}:Object(h.i)(i,e);return this.applyTransform(n),this},e}(s.a),_=i(28);i.d(e,"b",function(){return y});var g=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),m=function(t){function e(){var e=t.call(this)||this;return e.layout=_.a.XY,e.stride=2,e.flatCoordinates=null,e}return g(e,t),e.prototype.computeExtent=function(t){return Object(r.o)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return Object(o.b)()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,e){this.stride=v(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){Object(o.b)()},e.prototype.setLayout=function(t,e,i){var n;if(t)n=v(t);else{for(var o=0;o<i;++o){if(0===e.length)return this.layout=_.a.XY,void(this.stride=2);e=e[0]}t=function(t){var e;2==t?e=_.a.XY:3==t?e=_.a.XYZ:4==t&&(e=_.a.XYZM);return e}(n=e.length)}this.layout=t,this.stride=n},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var i=this.getFlatCoordinates();if(i){var n=this.getStride();Object(a.a)(i,0,i.length,n,t,e,i),this.changed()}},e.prototype.scale=function(t,e,i){var n=e;void 0===n&&(n=t);var o=i;o||(o=Object(r.x)(this.getExtent()));var s=this.getFlatCoordinates();if(s){var h=this.getStride();Object(a.b)(s,0,s.length,h,t,n,o,s),this.changed()}},e.prototype.translate=function(t,e){var i=this.getFlatCoordinates();if(i){var n=this.getStride();Object(a.d)(i,0,i.length,n,t,e,i),this.changed()}},e}(f);function v(t){var e;return t==_.a.XY?e=2:t==_.a.XYZ||t==_.a.XYM?e=3:t==_.a.XYZM&&(e=4),e}function y(t,e,i){var n=t.getFlatCoordinates();if(n){var o=t.getStride();return Object(a.c)(n,0,n.length,o,e,i)}return null}e.a=m},function(t,e,i){"use strict";i.d(e,"c",function(){return o}),i.d(e,"d",function(){return r}),i.d(e,"a",function(){return s}),i.d(e,"b",function(){return a});var n=i(5);function o(t){return void 0!==t?0:void 0}function r(t){return void 0!==t?t:void 0}function s(t){var e=2*Math.PI/t;return function(t,i){return i?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function a(t){var e=t||Object(n.i)(5);return function(t,i){return i?t:void 0!==t?Math.abs(t)<=e?0:t:void 0}}},function(t,e,i){"use strict";var n=function(){function t(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width}return t.prototype.clone=function(){var e=this.getColor();return new t({color:Array.isArray(e)?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},t.prototype.getColor=function(){return this.color_},t.prototype.getLineCap=function(){return this.lineCap_},t.prototype.getLineDash=function(){return this.lineDash_},t.prototype.getLineDashOffset=function(){return this.lineDashOffset_},t.prototype.getLineJoin=function(){return this.lineJoin_},t.prototype.getMiterLimit=function(){return this.miterLimit_},t.prototype.getWidth=function(){return this.width_},t.prototype.setColor=function(t){this.color_=t},t.prototype.setLineCap=function(t){this.lineCap_=t},t.prototype.setLineDash=function(t){this.lineDash_=t},t.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t},t.prototype.setLineJoin=function(t){this.lineJoin_=t},t.prototype.setMiterLimit=function(t){this.miterLimit_=t},t.prototype.setWidth=function(t){this.width_=t},t}();e.a=n},function(t,e,i){"use strict";function n(t,e,i){var n=void 0!==i?t.toFixed(i):""+t,o=n.indexOf(".");return(o=-1===o?n.length:o)>e?n:new Array(1+e-o).join("0")+n}i.d(e,"a",function(){return n})},function(t,e,i){"use strict";function n(t,e,i,n){for(var o=0,r=i.length;o<r;++o)t[e++]=i[o];return e}function o(t,e,i,n){for(var o=0,r=i.length;o<r;++o)for(var s=i[o],a=0;a<n;++a)t[e++]=s[a];return e}function r(t,e,i,n,r){for(var s=r||[],a=0,h=0,l=i.length;h<l;++h){var c=o(t,e,i[h],n);s[a++]=c,e=c}return s.length=a,s}i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return r})},function(t,e,i){"use strict";var n,o=i(31),r=i(32),s=i(14),a=i(16),h=i(4),l=i(55),c=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=function(t){function e(e){var i=this,n=void 0!==e.rotateWithView&&e.rotateWithView;return(i=t.call(this,{opacity:1,rotateWithView:n,rotation:void 0!==e.rotation?e.rotation:0,scale:1,displacement:void 0!==e.displacement?e.displacement:[0,0]})||this).canvas_=null,i.hitDetectionCanvas_=null,i.fill_=void 0!==e.fill?e.fill:null,i.origin_=[0,0],i.points_=e.points,i.radius_=void 0!==e.radius?e.radius:e.radius1,i.radius2_=e.radius2,i.angle_=void 0!==e.angle?e.angle:0,i.stroke_=void 0!==e.stroke?e.stroke:null,i.anchor_=null,i.size_=null,i.imageSize_=null,i.hitDetectionImageSize_=null,i.render(),i}return c(e,t),e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.getAnchor=function(){return this.anchor_},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(t){return this.hitDetectionCanvas_},e.prototype.getImage=function(t){return this.canvas_},e.prototype.getImageSize=function(){return this.imageSize_},e.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},e.prototype.getImageState=function(){return a.a.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.render=function(){var t,e=h.e,i=h.h,n=0,o=null,a=0,l=0;this.stroke_&&(null===(t=this.stroke_.getColor())&&(t=h.l),t=Object(r.a)(t),void 0===(l=this.stroke_.getWidth())&&(l=h.i),o=this.stroke_.getLineDash(),a=this.stroke_.getLineDashOffset(),void 0===(i=this.stroke_.getLineJoin())&&(i=h.h),void 0===(e=this.stroke_.getLineCap())&&(e=h.e),void 0===(n=this.stroke_.getMiterLimit())&&(n=h.j));var c=2*(this.radius_+l)+1,u={strokeStyle:t,strokeWidth:l,size:c,lineCap:e,lineDash:o,lineDashOffset:a,lineJoin:i,miterLimit:n},p=Object(s.a)(c,c);this.canvas_=p.canvas;var d=c=this.canvas_.width,f=this.getDisplacement();this.draw_(u,p,0,0),this.createHitDetectionCanvas_(u),this.anchor_=[c/2-f[0],c/2+f[1]],this.size_=[c,c],this.imageSize_=[d,d]},e.prototype.draw_=function(t,e,i,n){var o,s,a;e.setTransform(1,0,0,1,0,0),e.translate(i,n),e.beginPath();var l=this.points_;if(l===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var c=void 0!==this.radius2_?this.radius2_:this.radius_;for(c!==this.radius_&&(l*=2),o=0;o<=l;o++)s=2*o*Math.PI/l-Math.PI/2+this.angle_,a=o%2==0?this.radius_:c,e.lineTo(t.size/2+a*Math.cos(s),t.size/2+a*Math.sin(s))}if(this.fill_){var u=this.fill_.getColor();null===u&&(u=h.c),e.fillStyle=Object(r.a)(u),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,e.setLineDash&&t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},e.prototype.createHitDetectionCanvas_=function(t){if(this.hitDetectionImageSize_=[t.size,t.size],this.hitDetectionCanvas_=this.canvas_,this.fill_){var e=this.fill_.getColor(),i=0;if("string"==typeof e&&(e=Object(o.a)(e)),null===e?i=1:Array.isArray(e)&&(i=4===e.length?e[3]:1),0===i){var n=Object(s.a)(t.size,t.size);this.hitDetectionCanvas_=n.canvas,this.drawHitDetectionCanvas_(t,n,0,0)}}},e.prototype.drawHitDetectionCanvas_=function(t,e,i,n){e.setTransform(1,0,0,1,0,0),e.translate(i,n),e.beginPath();var o=this.points_;if(o===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var r=void 0!==this.radius2_?this.radius2_:this.radius_;r!==this.radius_&&(o*=2);var s=void 0,a=void 0,l=void 0;for(s=0;s<=o;s++)l=2*s*Math.PI/o-Math.PI/2+this.angle_,a=s%2==0?this.radius_:r,e.lineTo(t.size/2+a*Math.cos(l),t.size/2+a*Math.sin(l))}e.fillStyle=h.c,e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.stroke()),e.closePath()},e}(l.a);e.a=u},function(t,e,i){"use strict";e.a={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend"}},function(t,e,i){"use strict";function n(t,e,i,n,o){for(var r=void 0!==o?o:[],s=0,a=e;a<i;a+=n)r[s++]=t.slice(a,a+n);return r.length=s,r}function o(t,e,i,o,r){for(var s=void 0!==r?r:[],a=0,h=0,l=i.length;h<l;++h){var c=i[h];s[a++]=n(t,e,c,o,s[a]),e=c}return s.length=a,s}function r(t,e,i,n,r){for(var s=void 0!==r?r:[],a=0,h=0,l=i.length;h<l;++h){var c=i[h];s[a++]=o(t,e,c,n,s[a]),e=c[c.length-1]}return s.length=a,s}i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return r})},function(t,e,i){"use strict";i.d(e,"a",function(){return l}),i.d(e,"b",function(){return c}),i.d(e,"c",function(){return u}),i.d(e,"d",function(){return p});var n=i(1),o=i(16),r=i(3),s=i(19),a=.5,h={Point:function(t,e,i,n){var r=i.getImage();if(r){if(r.getImageState()!=o.a.LOADED)return;var a=t.getBuilder(i.getZIndex(),s.a.IMAGE);a.setImageStyle(r,t.addDeclutter(!1)),a.drawPoint(e,n)}var h=i.getText();if(h){var l=t.getBuilder(i.getZIndex(),s.a.TEXT);l.setTextStyle(h,t.addDeclutter(!!r)),l.drawText(e,n)}},LineString:function(t,e,i,n){var o=i.getStroke();if(o){var r=t.getBuilder(i.getZIndex(),s.a.LINE_STRING);r.setFillStrokeStyle(null,o),r.drawLineString(e,n)}var a=i.getText();if(a){var h=t.getBuilder(i.getZIndex(),s.a.TEXT);h.setTextStyle(a,t.addDeclutter(!1)),h.drawText(e,n)}},Polygon:function(t,e,i,n){var o=i.getFill(),r=i.getStroke();if(o||r){var a=t.getBuilder(i.getZIndex(),s.a.POLYGON);a.setFillStrokeStyle(o,r),a.drawPolygon(e,n)}var h=i.getText();if(h){var l=t.getBuilder(i.getZIndex(),s.a.TEXT);l.setTextStyle(h,t.addDeclutter(!1)),l.drawText(e,n)}},MultiPoint:function(t,e,i,n){var r=i.getImage();if(r){if(r.getImageState()!=o.a.LOADED)return;var a=t.getBuilder(i.getZIndex(),s.a.IMAGE);a.setImageStyle(r,t.addDeclutter(!1)),a.drawMultiPoint(e,n)}var h=i.getText();if(h){var l=t.getBuilder(i.getZIndex(),s.a.TEXT);l.setTextStyle(h,t.addDeclutter(!!r)),l.drawText(e,n)}},MultiLineString:function(t,e,i,n){var o=i.getStroke();if(o){var r=t.getBuilder(i.getZIndex(),s.a.LINE_STRING);r.setFillStrokeStyle(null,o),r.drawMultiLineString(e,n)}var a=i.getText();if(a){var h=t.getBuilder(i.getZIndex(),s.a.TEXT);h.setTextStyle(a,t.addDeclutter(!1)),h.drawText(e,n)}},MultiPolygon:function(t,e,i,n){var o=i.getFill(),r=i.getStroke();if(r||o){var a=t.getBuilder(i.getZIndex(),s.a.POLYGON);a.setFillStrokeStyle(o,r),a.drawMultiPolygon(e,n)}var h=i.getText();if(h){var l=t.getBuilder(i.getZIndex(),s.a.TEXT);l.setTextStyle(h,t.addDeclutter(!1)),l.drawText(e,n)}},GeometryCollection:function(t,e,i,n){var o,r,s=e.getGeometriesArray();for(o=0,r=s.length;o<r;++o){var a=h[s[o].getType()];a(t,s[o],i,n)}},Circle:function(t,e,i,n){var o=i.getFill(),r=i.getStroke();if(o||r){var a=t.getBuilder(i.getZIndex(),s.a.CIRCLE);a.setFillStrokeStyle(o,r),a.drawCircle(e,n)}var h=i.getText();if(h){var l=t.getBuilder(i.getZIndex(),s.a.TEXT);l.setTextStyle(h,t.addDeclutter(!1)),l.drawText(e,n)}}};function l(t,e){return parseInt(Object(n.c)(t),10)-parseInt(Object(n.c)(e),10)}function c(t,e){var i=u(t,e);return i*i}function u(t,e){return a*t/e}function p(t,e,i,n,a,l){var c=!1,u=i.getImage();if(u){var p=u.getImageState();p==o.a.LOADED||p==o.a.ERROR?u.unlistenImageChange(a):(p==o.a.IDLE&&u.load(),p=u.getImageState(),u.listenImageChange(a),c=!0)}return function(t,e,i,n,o){var a=i.getGeometryFunction()(e);if(!a)return;var l=a.simplifyTransformed(n,o);if(i.getRenderer())!function t(e,i,n,o){if(i.getType()==r.a.GEOMETRY_COLLECTION){for(var a=i.getGeometries(),h=0,l=a.length;h<l;++h)t(e,a[h],n,o);return}var c=e.getBuilder(n.getZIndex(),s.a.DEFAULT);c.drawCustom(i,o,n.getRenderer())}(t,l,i,e);else{var c=h[l.getType()];c(t,l,i,e)}}(t,e,i,n,l),c}},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__50__},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=42,o=256},function(t,e,i){"use strict";e.a={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"}},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=function(){function t(t,e,i,n){this.minX=t,this.maxX=e,this.minY=i,this.maxY=n}return t.prototype.contains=function(t){return this.containsXY(t[1],t[2])},t.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},t.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},t.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},t.prototype.extend=function(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},t.prototype.getHeight=function(){return this.maxY-this.minY+1},t.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},t.prototype.getWidth=function(){return this.maxX-this.minX+1},t.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},t}();function o(t,e,i,o,r){return void 0!==r?(r.minX=t,r.maxX=e,r.minY=i,r.maxY=o,r):new n(t,e,i,o)}e.b=n},function(t,e,i){"use strict";var n=function(){function t(){this.disposed_=!1}return t.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())},t.prototype.disposeInternal=function(){},t}();e.a=n},function(t,e,i){"use strict";var n=i(1),o=function(){function t(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.displacement_=t.displacement}return t.prototype.clone=function(){return new t({opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},t.prototype.getOpacity=function(){return this.opacity_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getDisplacement=function(){return this.displacement_},t.prototype.getAnchor=function(){return Object(n.b)()},t.prototype.getImage=function(t){return Object(n.b)()},t.prototype.getHitDetectionImage=function(t){return Object(n.b)()},t.prototype.getImageState=function(){return Object(n.b)()},t.prototype.getImageSize=function(){return Object(n.b)()},t.prototype.getHitDetectionImageSize=function(){return Object(n.b)()},t.prototype.getOrigin=function(){return Object(n.b)()},t.prototype.getSize=function(){return Object(n.b)()},t.prototype.setOpacity=function(t){this.opacity_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t},t.prototype.listenImageChange=function(t){Object(n.b)()},t.prototype.load=function(){Object(n.b)()},t.prototype.unlistenImageChange=function(t){Object(n.b)()},t}();e.a=o},function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"c",function(){return r}),i.d(e,"b",function(){return a});var n=i(5);function o(t,e,i,o,r,s,a){var h=(i-e)/o;if(h<3){for(;e<i;e+=o)s[a++]=t[e],s[a++]=t[e+1];return a}var l=new Array(h);l[0]=1,l[h-1]=1;for(var c=[e,i-o],u=0;c.length>0;){for(var p=c.pop(),d=c.pop(),f=0,_=t[d],g=t[d+1],m=t[p],v=t[p+1],y=d+o;y<p;y+=o){var b=t[y],x=t[y+1],O=Object(n.g)(b,x,_,g,m,v);O>f&&(u=y,f=O)}f>r&&(l[(u-e)/o]=1,d+o<u&&c.push(d,u),u+o<p&&c.push(u,p))}for(y=0;y<h;++y)l[y]&&(s[a++]=t[e+y*o],s[a++]=t[e+y*o+1]);return a}function r(t,e){return e*Math.round(t/e)}function s(t,e,i,n,o,s,a){if(e==i)return a;var h,l,c=r(t[e],o),u=r(t[e+1],o);e+=n,s[a++]=c,s[a++]=u;do{if(h=r(t[e],o),l=r(t[e+1],o),(e+=n)==i)return s[a++]=h,s[a++]=l,a}while(h==c&&l==u);for(;e<i;){var p=r(t[e],o),d=r(t[e+1],o);if(e+=n,p!=h||d!=l){var f=h-c,_=l-u,g=p-c,m=d-u;f*m==_*g&&(f<0&&g<f||f==g||f>0&&g>f)&&(_<0&&m<_||_==m||_>0&&m>_)?(h=p,l=d):(s[a++]=h,s[a++]=l,c=h,u=l,h=p,l=d)}}return s[a++]=h,s[a++]=l,a}function a(t,e,i,n,o,r,a,h){for(var l=0,c=i.length;l<c;++l){var u=i[l];a=s(t,e,u,n,o,r,a),h.push(a),e=u}return a}},function(t,e,i){"use strict";var n=i(12),o=i(0),r=i(28),s=i(3),a=i(41);function h(t,e,i,n){for(var o=0,r=t[i-n],s=t[i-n+1];e<i;e+=n){var a=t[e],h=t[e+1];o+=s*a-r*h,r=a,s=h}return o/2}function l(t,e,i,n){for(var o=0,r=0,s=i.length;r<s;++r){var a=i[r];o+=h(t,e,a,n),e=a}return o}var c=i(5);function u(t,e,i,n,o,r,s){var a,h=t[e],l=t[e+1],u=t[i]-h,p=t[i+1]-l;if(0===u&&0===p)a=e;else{var d=((o-h)*u+(r-l)*p)/(u*u+p*p);if(d>1)a=i;else{if(d>0){for(var f=0;f<n;++f)s[f]=Object(c.c)(t[e+f],t[i+f],d);return void(s.length=n)}a=e}}for(f=0;f<n;++f)s[f]=t[a+f];s.length=n}function p(t,e,i,n,o){var r=t[e],s=t[e+1];for(e+=n;e<i;e+=n){var a=t[e],h=t[e+1],l=Object(c.f)(r,s,a,h);l>o&&(o=l),r=a,s=h}return o}function d(t,e,i,n,o){for(var r=0,s=i.length;r<s;++r){var a=i[r];o=p(t,e,a,n,o),e=a}return o}function f(t,e,i,n,o,r,s,a,h,l,p){if(e==i)return l;var d,f;if(0===o){if((f=Object(c.f)(s,a,t[e],t[e+1]))<l){for(d=0;d<n;++d)h[d]=t[e+d];return h.length=n,f}return l}for(var _=p||[NaN,NaN],g=e+n;g<i;)if(u(t,g-n,g,n,s,a,_),(f=Object(c.f)(s,a,_[0],_[1]))<l){for(l=f,d=0;d<n;++d)h[d]=_[d];h.length=n,g+=n}else g+=n*Math.max((Math.sqrt(f)-Math.sqrt(l))/o|0,1);if(r&&(u(t,i-n,e,n,s,a,_),(f=Object(c.f)(s,a,_[0],_[1]))<l)){for(l=f,d=0;d<n;++d)h[d]=_[d];h.length=n}return l}function _(t,e,i,n,o,r,s,a,h,l,c){for(var u=c||[NaN,NaN],p=0,d=i.length;p<d;++p){var _=i[p];l=f(t,e,_,n,o,r,s,a,h,l,u),e=_}return l}var g,m=i(45),v=i(48),y=i(56),b=(g=function(t,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),x=function(t){function e(e,i){var n=t.call(this)||this;return n.maxDelta_=-1,n.maxDeltaRevision_=-1,void 0===i||Array.isArray(e[0])?n.setCoordinates(e,i):n.setFlatCoordinates(i,e),n}return b(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,i,n){return n<Object(o.e)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(p(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),f(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,i,n))},e.prototype.getArea=function(){return h(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return Object(v.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var i=[];return i.length=Object(y.a)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,i,0),new e(i,r.a.XY)},e.prototype.getType=function(){return s.a.LINEAR_RING},e.prototype.intersectsExtent=function(t){return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(m.b)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(a.a),O=i(68);i(61);function w(t,e,i,n,r){return!Object(o.t)(r,function(o){return!T(t,e,i,n,o[0],o[1])})}function T(t,e,i,n,o,r){for(var s=0,a=t[i-n],h=t[i-n+1];e<i;e+=n){var l=t[e],c=t[e+1];h<=r?c>r&&(l-a)*(r-h)-(o-a)*(c-h)>0&&s++:c<=r&&(l-a)*(r-h)-(o-a)*(c-h)<0&&s--,a=l,h=c}return 0!==s}function E(t,e,i,n,o,r){if(0===i.length)return!1;if(!T(t,e,i[0],n,o,r))return!1;for(var s=1,a=i.length;s<a;++s)if(T(t,i[s-1],i[s],n,o,r))return!1;return!0}function S(t,e,i,o,r,s,a){for(var h,l,c,u,p,d,f,_=r[s+1],g=[],m=0,v=i.length;m<v;++m){var y=i[m];for(u=t[y-o],d=t[y-o+1],h=e;h<y;h+=o)p=t[h],f=t[h+1],(_<=d&&f<=_||d<=_&&_<=f)&&(c=(_-d)/(f-d)*(p-u)+u,g.push(c)),u=p,d=f}var b=NaN,x=-1/0;for(g.sort(n.h),u=g[0],h=1,l=g.length;h<l;++h){p=g[h];var O=Math.abs(p-u);O>x&&E(t,e,i,o,c=(u+p)/2,_)&&(b=c,x=O),u=p}return isNaN(b)&&(b=r[s]),a?(a.push(b,_,x),a):[b,_,x]}function C(t,e,i,n,r){var s=Object(o.s)(Object(o.j)(),t,e,i,n);return!!Object(o.F)(r,s)&&(!!Object(o.g)(r,s)||(s[0]>=r[0]&&s[2]<=r[2]||(s[1]>=r[1]&&s[3]<=r[3]||function(t,e,i,n,o){for(var r,s=[t[e],t[e+1]],a=[];e+n<i;e+=n){if(a[0]=t[e+n],a[1]=t[e+n+1],r=o(s,a))return r;s[0]=a[0],s[1]=a[1]}return!1}(t,e,i,n,function(t,e){return Object(o.G)(r,t,e)}))))}function P(t,e,i,n,o){if(!function(t,e,i,n,o){return!!(C(t,e,i,n,o)||T(t,e,i,n,o[0],o[1])||T(t,e,i,n,o[0],o[3])||T(t,e,i,n,o[2],o[1])||T(t,e,i,n,o[2],o[3]))}(t,e,i[0],n,o))return!1;if(1===i.length)return!0;for(var r=1,s=i.length;r<s;++r)if(w(t,i[r-1],i[r],n,o)&&!C(t,i[r-1],i[r],n,o))return!1;return!0}function I(t,e,i,n){for(;e<i-n;){for(var o=0;o<n;++o){var r=t[e+o];t[e+o]=t[i-n+o],t[i-n+o]=r}e+=n,i-=n}}function L(t,e,i,n){for(var o=0,r=t[i-n],s=t[i-n+1];e<i;e+=n){var a=t[e],h=t[e+1];o+=(a-r)*(h+s),r=a,s=h}return o>0}function R(t,e,i,n,o){for(var r=void 0!==o&&o,s=0,a=i.length;s<a;++s){var h=i[s],l=L(t,e,h,n);if(0===s){if(r&&l||!r&&!l)return!1}else if(r&&!l||!r&&l)return!1;e=h}return!0}function M(t,e,i,n,o){for(var r=void 0!==o&&o,s=0,a=i.length;s<a;++s){var h=i[s],l=L(t,e,h,n);(0===s?r&&l||!r&&!l:r&&!l||!r&&l)&&I(t,e,h,n),e=h}return e}i.d(e,"b",function(){return A});var j=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),k=function(t){function e(e,i,n){var o=t.call(this)||this;return o.ends_=[],o.flatInteriorPointRevision_=-1,o.flatInteriorPoint_=null,o.maxDelta_=-1,o.maxDeltaRevision_=-1,o.orientedRevision_=-1,o.orientedFlatCoordinates_=null,void 0!==i&&n?(o.setFlatCoordinates(i,e),o.ends_=n):o.setCoordinates(e,i),o}return j(e,t),e.prototype.appendLinearRing=function(t){this.flatCoordinates?Object(n.b)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice())},e.prototype.closestPointXY=function(t,e,i,n){return n<Object(o.e)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(d(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),_(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,i,n))},e.prototype.containsXY=function(t,e){return E(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return l(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?M(e=this.getOrientedFlatCoordinates().slice(),0,this.ends_,this.stride,t):e=this.flatCoordinates,Object(v.b)(e,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=Object(o.x)(this.getExtent());this.flatInteriorPoint_=S(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new O.a(this.getFlatInteriorPoint(),r.a.XYM)},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new x(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLinearRings=function(){for(var t=this.layout,e=this.flatCoordinates,i=this.ends_,n=[],o=0,r=0,s=i.length;r<s;++r){var a=i[r],h=new x(e.slice(o,a),t);n.push(h),o=a}return n},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;R(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=M(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var i=[],n=[];return i.length=Object(y.b)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),i,0,n),new e(i,r.a.XY,n)},e.prototype.getType=function(){return s.a.POLYGON},e.prototype.intersectsExtent=function(t){return P(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var i=Object(m.c)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()},e}(a.a);e.a=k;function A(t){var e=t[0],i=t[1],n=t[2],o=t[3],s=[e,i,e,o,n,o,n,i,e,i];return new k(s,r.a.XY,[s.length])}},function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i(31),o=function(){function t(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return t.prototype.clear=function(){this.cache_={},this.cacheSize_=0},t.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},t.prototype.expire=function(){if(this.canExpireCache()){var t=0;for(var e in this.cache_){var i=this.cache_[e];0!=(3&t++)||i.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,i){var n=r(t,e,i);return n in this.cache_?this.cache_[n]:null},t.prototype.set=function(t,e,i,n){var o=r(t,e,i);this.cache_[o]=n,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}();function r(t,e,i){return e+":"+t+":"+(i?Object(n.b)(i):"null")}var s=new o},function(t,e,i){"use strict";var n,o=i(10),r=(i(3),i(46)),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=function(t){function e(e){var i=e||{};return t.call(this,{points:1/0,fill:i.fill,radius:i.radius,stroke:i.stroke,displacement:void 0!==i.displacement?i.displacement:[0,0]})||this}return s(e,t),e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),displacement:this.getDisplacement().slice()});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.setRadius=function(t){this.radius_=t,this.render()},e}(r.a),h=i(33),l=i(43);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}i.d(e,"c",function(){return p}),i.d(e,"a",function(){return f});var u=function(){function t(t){var e=t||{};this.geometry_=null,this.geometryFunction_=_,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex}return t.prototype.clone=function(){var e=this.getGeometry();return e&&"object"===c(e)&&(e=e.clone()),new t({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},t.prototype.getRenderer=function(){return this.renderer_},t.prototype.setRenderer=function(t){this.renderer_=t},t.prototype.getGeometry=function(){return this.geometry_},t.prototype.getGeometryFunction=function(){return this.geometryFunction_},t.prototype.getFill=function(){return this.fill_},t.prototype.setFill=function(t){this.fill_=t},t.prototype.getImage=function(){return this.image_},t.prototype.setImage=function(t){this.image_=t},t.prototype.getStroke=function(){return this.stroke_},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.getText=function(){return this.text_},t.prototype.setText=function(t){this.text_=t},t.prototype.getZIndex=function(){return this.zIndex_},t.prototype.setGeometry=function(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=_,this.geometry_=t},t.prototype.setZIndex=function(t){this.zIndex_=t},t}();function p(t){var e;if("function"==typeof t)e=t;else{var i;if(Array.isArray(t))i=t;else Object(o.a)("function"==typeof t.getZIndex,41),i=[t];e=function(){return i}}return e}var d=null;function f(t,e){if(!d){var i=new h.a({color:"rgba(255,255,255,0.4)"}),n=new l.a({color:"#3399CC",width:1.25});d=[new u({image:new a({fill:i,stroke:n,radius:5}),fill:i,stroke:n})]}return d}function _(t){return t.getGeometry()}e.b=u},function(t,e,i){"use strict";var n,o=i(7),r=i(40),s=i(20),a=i(26),h=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=function(t){function e(e){var i=this,n=e||{};i=t.call(this,{element:document.createElement("div"),target:n.target})||this;var r=void 0!==n.className?n.className:"ol-zoom",a=void 0!==n.delta?n.delta:1,h=void 0!==n.zoomInLabel?n.zoomInLabel:"+",l=void 0!==n.zoomOutLabel?n.zoomOutLabel:"",c=void 0!==n.zoomInTipLabel?n.zoomInTipLabel:"Zoom in",u=void 0!==n.zoomOutTipLabel?n.zoomOutTipLabel:"Zoom out",p=document.createElement("button");p.className=r+"-in",p.setAttribute("type","button"),p.title=c,p.appendChild("string"==typeof h?document.createTextNode(h):h),p.addEventListener(o.a.CLICK,i.handleClick_.bind(i,a),!1);var d=document.createElement("button");d.className=r+"-out",d.setAttribute("type","button"),d.title=u,d.appendChild("string"==typeof l?document.createTextNode(l):l),d.addEventListener(o.a.CLICK,i.handleClick_.bind(i,-a),!1);var f=r+" "+s.e+" "+s.b,_=i.element;return _.className=f,_.appendChild(p),_.appendChild(d),i.duration_=void 0!==n.duration?n.duration:250,i}return h(e,t),e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var i=e.getZoom();if(void 0!==i){var n=e.getConstrainedZoom(i+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:n,duration:this.duration_,easing:a.b})):e.setZoom(n)}}},e}(r.a);e.a=l},function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return s});var n=i(5),o=(i(3),6371008.8);function r(t,e,i){var r=i||o,s=Object(n.i)(t[1]),a=Object(n.i)(e[1]),h=(a-s)/2,l=Object(n.i)(e[0]-t[0])/2,c=Math.sin(h)*Math.sin(h)+Math.sin(l)*Math.sin(l)*Math.cos(s)*Math.cos(a);return 2*r*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}function s(t,e,i,r){var s=r||o,a=Object(n.i)(t[1]),h=Object(n.i)(t[0]),l=e/s,c=Math.asin(Math.sin(a)*Math.cos(l)+Math.cos(a)*Math.sin(l)*Math.cos(i)),u=h+Math.atan2(Math.sin(i)*Math.sin(l)*Math.cos(a),Math.cos(l)-Math.sin(a)*Math.sin(c));return[Object(n.h)(u),Object(n.h)(c)]}},function(t,e,i){"use strict";var n,o=i(12),r=i(32),s=i(0),a=i(3),h=i(41),l=i(24),c=i(70),u=i(4),p=i(8),d=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),f=function(t){function e(e,i,n,o,r,s,a){var h=t.call(this)||this;return h.context_=e,h.pixelRatio_=i,h.extent_=n,h.transform_=o,h.viewRotation_=r,h.squaredTolerance_=s,h.userTransform_=a,h.contextFillState_=null,h.contextStrokeState_=null,h.contextTextState_=null,h.fillState_=null,h.strokeState_=null,h.image_=null,h.imageAnchorX_=0,h.imageAnchorY_=0,h.imageHeight_=0,h.imageOpacity_=0,h.imageOriginX_=0,h.imageOriginY_=0,h.imageRotateWithView_=!1,h.imageRotation_=0,h.imageScale_=0,h.imageWidth_=0,h.text_="",h.textOffsetX_=0,h.textOffsetY_=0,h.textRotateWithView_=!1,h.textRotation_=0,h.textScale_=0,h.textFillState_=null,h.textStrokeState_=null,h.textState_=null,h.pixelCoordinates_=[],h.tmpLocalTransform_=Object(p.c)(),h}return d(e,t),e.prototype.drawImages_=function(t,e,i,n){if(this.image_){var o=Object(l.c)(t,e,i,2,this.transform_,this.pixelCoordinates_),r=this.context_,s=this.tmpLocalTransform_,a=r.globalAlpha;1!=this.imageOpacity_&&(r.globalAlpha=a*this.imageOpacity_);var h=this.imageRotation_;this.imageRotateWithView_&&(h+=this.viewRotation_);for(var c=0,u=o.length;c<u;c+=2){var d=o[c]-this.imageAnchorX_,f=o[c+1]-this.imageAnchorY_;if(0!==h||1!=this.imageScale_){var _=d+this.imageAnchorX_,g=f+this.imageAnchorY_;Object(p.b)(s,_,g,this.imageScale_,this.imageScale_,h,-_,-g),r.setTransform.apply(r,s)}r.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,d,f,this.imageWidth_,this.imageHeight_)}0===h&&1==this.imageScale_||r.setTransform(1,0,0,1,0,0),1!=this.imageOpacity_&&(r.globalAlpha=a)}},e.prototype.drawText_=function(t,e,i,n){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var o=Object(l.c)(t,e,i,n,this.transform_,this.pixelCoordinates_),r=this.context_,s=this.textRotation_;for(this.textRotateWithView_&&(s+=this.viewRotation_);e<i;e+=n){var a=o[e]+this.textOffsetX_,h=o[e+1]+this.textOffsetY_;if(0!==s||1!=this.textScale_){var c=Object(p.b)(this.tmpLocalTransform_,a,h,this.textScale_,this.textScale_,s,-a,-h);r.setTransform.apply(r,c)}this.textStrokeState_&&r.strokeText(this.text_,a,h),this.textFillState_&&r.fillText(this.text_,a,h)}0===s&&1==this.textScale_||r.setTransform(1,0,0,1,0,0)}},e.prototype.moveToLineTo_=function(t,e,i,n,o){var r=this.context_,s=Object(l.c)(t,e,i,n,this.transform_,this.pixelCoordinates_);r.moveTo(s[0],s[1]);var a=s.length;o&&(a-=2);for(var h=2;h<a;h+=2)r.lineTo(s[h],s[h+1]);return o&&r.closePath(),i},e.prototype.drawRings_=function(t,e,i,n){for(var o=0,r=i.length;o<r;++o)e=this.moveToLineTo_(t,e,i[o],n,!0);return e},e.prototype.drawCircle=function(t){if(Object(s.F)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=Object(h.b)(t,this.transform_,this.pixelCoordinates_),i=e[2]-e[0],n=e[3]-e[1],o=Math.sqrt(i*i+n*n),r=this.context_;r.beginPath(),r.arc(e[0],e[1],o,0,2*Math.PI),this.fillState_&&r.fill(),this.strokeState_&&r.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.setTransform=function(t){this.transform_=t},e.prototype.drawGeometry=function(t){switch(t.getType()){case a.a.POINT:this.drawPoint(t);break;case a.a.LINE_STRING:this.drawLineString(t);break;case a.a.POLYGON:this.drawPolygon(t);break;case a.a.MULTI_POINT:this.drawMultiPoint(t);break;case a.a.MULTI_LINE_STRING:this.drawMultiLineString(t);break;case a.a.MULTI_POLYGON:this.drawMultiPolygon(t);break;case a.a.GEOMETRY_COLLECTION:this.drawGeometryCollection(t);break;case a.a.CIRCLE:this.drawCircle(t)}},e.prototype.drawFeature=function(t,e){var i=e.getGeometryFunction()(t);i&&Object(s.F)(this.extent_,i.getExtent())&&(this.setStyle(e),this.drawGeometry(i))},e.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),i=0,n=e.length;i<n;++i)this.drawGeometry(e[i])},e.prototype.drawPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)},e.prototype.drawMultiPoint=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)},e.prototype.drawLineString=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(s.F)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,i=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(i,0,i.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var n=t.getFlatMidpoint();this.drawText_(n,0,2,2)}}},e.prototype.drawMultiLineString=function(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));var e=t.getExtent();if(Object(s.F)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var i=this.context_,n=t.getFlatCoordinates(),o=0,r=t.getEnds(),a=t.getStride();i.beginPath();for(var h=0,l=r.length;h<l;++h)o=this.moveToLineTo_(n,o,r[h],a,!1);i.stroke()}if(""!==this.text_){var c=t.getFlatMidpoints();this.drawText_(c,0,c.length,2)}}},e.prototype.drawPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(s.F)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var i=t.getFlatInteriorPoint();this.drawText_(i,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),Object(s.F)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,i=t.getOrientedFlatCoordinates(),n=0,o=t.getEndss(),r=t.getStride();e.beginPath();for(var a=0,h=o.length;a<h;++a){var l=o[a];n=this.drawRings_(i,n,l,r)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var c=t.getFlatInteriorPoints();this.drawText_(c,0,c.length,2)}}},e.prototype.setContextFillState_=function(t){var e=this.context_,i=this.contextFillState_;i?i.fillStyle!=t.fillStyle&&(i.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var e=this.context_,i=this.contextStrokeState_;i?(i.lineCap!=t.lineCap&&(i.lineCap=t.lineCap,e.lineCap=t.lineCap),e.setLineDash&&(Object(o.a)(i.lineDash,t.lineDash)||e.setLineDash(i.lineDash=t.lineDash),i.lineDashOffset!=t.lineDashOffset&&(i.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset)),i.lineJoin!=t.lineJoin&&(i.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),i.lineWidth!=t.lineWidth&&(i.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),i.miterLimit!=t.miterLimit&&(i.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),i.strokeStyle!=t.strokeStyle&&(i.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var e=this.context_,i=this.contextTextState_,n=t.textAlign?t.textAlign:u.m;i?(i.font!=t.font&&(i.font=t.font,e.font=t.font),i.textAlign!=n&&(i.textAlign=n,e.textAlign=n),i.textBaseline!=t.textBaseline&&(i.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=n,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:n,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,e){if(t){var i=t.getColor();this.fillState_={fillStyle:Object(r.a)(i||u.c)}}else this.fillState_=null;if(e){var n=e.getColor(),o=e.getLineCap(),s=e.getLineDash(),a=e.getLineDashOffset(),h=e.getLineJoin(),l=e.getWidth(),c=e.getMiterLimit();this.strokeState_={lineCap:void 0!==o?o:u.e,lineDash:s||u.f,lineDashOffset:a||u.g,lineJoin:void 0!==h?h:u.h,lineWidth:this.pixelRatio_*(void 0!==l?l:u.i),miterLimit:void 0!==c?c:u.j,strokeStyle:Object(r.a)(n||u.l)}}else this.strokeState_=null},e.prototype.setImageStyle=function(t){if(t){var e=t.getAnchor(),i=t.getImage(1),n=t.getOrigin(),o=t.getSize();this.imageAnchorX_=e[0],this.imageAnchorY_=e[1],this.imageHeight_=o[1],this.image_=i,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=n[0],this.imageOriginY_=n[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScale()*this.pixelRatio_,this.imageWidth_=o[0]}else this.image_=null},e.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var i=e.getColor();this.textFillState_={fillStyle:Object(r.a)(i||u.c)}}else this.textFillState_=null;var n=t.getStroke();if(n){var o=n.getColor(),s=n.getLineCap(),a=n.getLineDash(),h=n.getLineDashOffset(),l=n.getLineJoin(),c=n.getWidth(),p=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==s?s:u.e,lineDash:a||u.f,lineDashOffset:h||u.g,lineJoin:void 0!==l?l:u.h,lineWidth:void 0!==c?c:u.i,miterLimit:void 0!==p?p:u.j,strokeStyle:Object(r.a)(o||u.l)}}else this.textStrokeState_=null;var d=t.getFont(),f=t.getOffsetX(),_=t.getOffsetY(),g=t.getRotateWithView(),m=t.getRotation(),v=t.getScale(),y=t.getText(),b=t.getTextAlign(),x=t.getTextBaseline();this.textState_={font:void 0!==d?d:u.d,textAlign:void 0!==b?b:u.m,textBaseline:void 0!==x?x:u.n},this.text_=void 0!==y?y:"",this.textOffsetX_=void 0!==f?this.pixelRatio_*f:0,this.textOffsetY_=void 0!==_?this.pixelRatio_*_:0,this.textRotateWithView_=void 0!==g&&g,this.textRotation_=void 0!==m?m:0,this.textScale_=this.pixelRatio_*(void 0!==v?v:1)}else this.text_=""},e}(c.a);e.a=f},function(t,e,i){"use strict";var n=i(47),o=i(13),r={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"},s=i(20),a=i(14),h=i(6),l=i(0);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var u,p=(u=function(t,e){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),d={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},f=function(t){function e(e){var i=t.call(this)||this;i.options=e,i.id=e.id,i.insertFirst=void 0===e.insertFirst||e.insertFirst,i.stopEvent=void 0===e.stopEvent||e.stopEvent,i.element=document.createElement("div"),i.element.className=void 0!==e.className?e.className:"ol-overlay-container "+s.d,i.element.style.position="absolute";var n=e.autoPan;return n&&"object"!==c(n)&&(n={animation:e.autoPanAnimation,margin:e.autoPanMargin}),i.autoPan=n||!1,i.rendered={transform_:"",visible:!0},i.mapPostrenderListenerKey=null,i.addEventListener(Object(o.b)(d.ELEMENT),i.handleElementChanged),i.addEventListener(Object(o.b)(d.MAP),i.handleMapChanged),i.addEventListener(Object(o.b)(d.OFFSET),i.handleOffsetChanged),i.addEventListener(Object(o.b)(d.POSITION),i.handlePositionChanged),i.addEventListener(Object(o.b)(d.POSITIONING),i.handlePositioningChanged),void 0!==e.element&&i.setElement(e.element),i.setOffset(void 0!==e.offset?e.offset:[0,0]),i.setPositioning(void 0!==e.positioning?e.positioning:r.TOP_LEFT),void 0!==e.position&&i.setPosition(e.position),i}return p(e,t),e.prototype.getElement=function(){return this.get(d.ELEMENT)},e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.get(d.MAP)},e.prototype.getOffset=function(){return this.get(d.OFFSET)},e.prototype.getPosition=function(){return this.get(d.POSITION)},e.prototype.getPositioning=function(){return this.get(d.POSITIONING)},e.prototype.handleElementChanged=function(){Object(a.d)(this.element);var t=this.getElement();t&&this.element.appendChild(t)},e.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Object(a.e)(this.element),Object(h.c)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=Object(h.a)(t,n.a.POSTRENDER,this.render,this),this.updatePixelPosition();var e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element),this.performAutoPan()}},e.prototype.render=function(){this.updatePixelPosition()},e.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},e.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.performAutoPan()},e.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},e.prototype.setElement=function(t){this.set(d.ELEMENT,t)},e.prototype.setMap=function(t){this.set(d.MAP,t)},e.prototype.setOffset=function(t){this.set(d.OFFSET,t)},e.prototype.setPosition=function(t){this.set(d.POSITION,t)},e.prototype.performAutoPan=function(){this.autoPan&&this.panIntoView(this.autoPan)},e.prototype.panIntoView=function(t){var e=this.getMap();if(e&&e.getTargetElement()&&this.get(d.POSITION)){var i=this.getRect(e.getTargetElement(),e.getSize()),n=this.getElement(),o=this.getRect(n,[Object(a.c)(n),Object(a.b)(n)]),r=void 0===t.margin?20:t.margin;if(!Object(l.g)(i,o)){var s=o[0]-i[0],h=i[2]-o[2],c=o[1]-i[1],u=i[3]-o[3],p=[0,0];if(s<0?p[0]=s-r:h<0&&(p[0]=Math.abs(h)+r),c<0?p[1]=c-r:u<0&&(p[1]=Math.abs(u)+r),0!==p[0]||0!==p[1]){var f=e.getView().getCenterInternal(),_=e.getPixelFromCoordinateInternal(f),g=[_[0]+p[0],_[1]+p[1]],m=t.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(g),duration:m.duration,easing:m.easing})}}}},e.prototype.getRect=function(t,e){var i=t.getBoundingClientRect(),n=i.left+window.pageXOffset,o=i.top+window.pageYOffset;return[n,o,n+e[0],o+e[1]]},e.prototype.setPositioning=function(t){this.set(d.POSITIONING,t)},e.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},e.prototype.updatePixelPosition=function(){var t=this.getMap(),e=this.getPosition();if(t&&t.isRendered()&&e){var i=t.getPixelFromCoordinate(e),n=t.getSize();this.updateRenderedPosition(i,n)}else this.setVisible(!1)},e.prototype.updateRenderedPosition=function(t,e){var i=this.element.style,n=this.getOffset(),o=this.getPositioning();this.setVisible(!0);var s=Math.round(t[0]+n[0])+"px",a=Math.round(t[1]+n[1])+"px",h="0%",l="0%";o==r.BOTTOM_RIGHT||o==r.CENTER_RIGHT||o==r.TOP_RIGHT?h="-100%":o!=r.BOTTOM_CENTER&&o!=r.CENTER_CENTER&&o!=r.TOP_CENTER||(h="-50%"),o==r.BOTTOM_LEFT||o==r.BOTTOM_CENTER||o==r.BOTTOM_RIGHT?l="-100%":o!=r.CENTER_LEFT&&o!=r.CENTER_CENTER&&o!=r.CENTER_RIGHT||(l="-50%");var c="translate("+h+", "+l+") translate("+s+", "+a+")";this.rendered.transform_!=c&&(this.rendered.transform_=c,i.transform=c,i.msTransform=c)},e.prototype.getOptions=function(){return this.options},e}(o.a);e.a=f},function(t,e,i){"use strict";window.ol&&!ol.ext&&(ol.ext={});var n=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t};window.ol&&(ol.inherits||(ol.inherits=n)),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.Element&&!Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),e.a=n},function(t,e,i){"use strict";var n,o=i(6),r=i(36),s=i(7),a=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h=function(t){function e(){var e=t.call(this)||this;return e.revision_=0,e}return a(e,t),e.prototype.changed=function(){++this.revision_,this.dispatchEvent(s.a.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.on=function(t,e){if(Array.isArray(t)){for(var i=t.length,n=new Array(i),r=0;r<i;++r)n[r]=Object(o.a)(this,t[r],e);return n}return Object(o.a)(this,t,e)},e.prototype.once=function(t,e){if(Array.isArray(t)){for(var i=t.length,n=new Array(i),r=0;r<i;++r)n[r]=Object(o.b)(this,t[r],e);return n}return Object(o.b)(this,t,e)},e.prototype.un=function(t,e){if(Array.isArray(t))for(var i=0,n=t.length;i<n;++i)this.removeEventListener(t[i],e);else this.removeEventListener(t,e)},e}(r.a);e.a=h},function(t,e,i){"use strict";var n,o=i(1),r=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=function(t){function e(e){var i=this,n="Assertion failed. See https://openlayers.org/en/"+("latest"===o.a?o.a:"v"+o.a.split("-")[0])+"/doc/errors/#"+e+" for details.";return(i=t.call(this,n)||this).code=e,i.name="AssertionError",i.message=n,i}return r(e,t),e}(Error);e.a=s},function(t,e,i){"use strict";var n,o=i(1),r=i(13),s=i(17),a=i(5),h=i(11),l=i(10),c=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=function(t){function e(e){var i=t.call(this)||this,n=Object(h.a)({},e);return n[s.a.OPACITY]=void 0!==e.opacity?e.opacity:1,Object(l.a)("number"==typeof n[s.a.OPACITY],64),n[s.a.VISIBLE]=void 0===e.visible||e.visible,n[s.a.Z_INDEX]=e.zIndex,n[s.a.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,n[s.a.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,n[s.a.MIN_ZOOM]=void 0!==e.minZoom?e.minZoom:-1/0,n[s.a.MAX_ZOOM]=void 0!==e.maxZoom?e.maxZoom:1/0,i.className_=void 0!==n.className?e.className:"ol-layer",delete n.className,i.setProperties(n),i.state_=null,i}return c(e,t),e.prototype.getClassName=function(){return this.className_},e.prototype.getLayerState=function(t){var e=this.state_||{layer:this,managed:void 0===t||t},i=this.getZIndex();return e.opacity=Object(a.a)(Math.round(100*this.getOpacity())/100,0,1),e.sourceState=this.getSourceState(),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==i?i:!1===e.managed?1/0:0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e},e.prototype.getLayersArray=function(t){return Object(o.b)()},e.prototype.getLayerStatesArray=function(t){return Object(o.b)()},e.prototype.getExtent=function(){return this.get(s.a.EXTENT)},e.prototype.getMaxResolution=function(){return this.get(s.a.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get(s.a.MIN_RESOLUTION)},e.prototype.getMinZoom=function(){return this.get(s.a.MIN_ZOOM)},e.prototype.getMaxZoom=function(){return this.get(s.a.MAX_ZOOM)},e.prototype.getOpacity=function(){return this.get(s.a.OPACITY)},e.prototype.getSourceState=function(){return Object(o.b)()},e.prototype.getVisible=function(){return this.get(s.a.VISIBLE)},e.prototype.getZIndex=function(){return this.get(s.a.Z_INDEX)},e.prototype.setExtent=function(t){this.set(s.a.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set(s.a.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set(s.a.MIN_RESOLUTION,t)},e.prototype.setMaxZoom=function(t){this.set(s.a.MAX_ZOOM,t)},e.prototype.setMinZoom=function(t){this.set(s.a.MIN_ZOOM,t)},e.prototype.setOpacity=function(t){Object(l.a)("number"==typeof t,64),this.set(s.a.OPACITY,t)},e.prototype.setVisible=function(t){this.set(s.a.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set(s.a.Z_INDEX,t)},e.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),t.prototype.disposeInternal.call(this)},e}(r.a);e.a=u},function(t,e,i){"use strict";var n,o=i(0),r=i(3),s=i(41),a=i(45),h=i(5),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=function(t){function e(e,i){var n=t.call(this)||this;return n.setCoordinates(e,i),n}return l(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,i,n){var o=this.flatCoordinates,r=Object(h.f)(t,e,o[0],o[1]);if(r<n){for(var s=this.stride,a=0;a<s;++a)i[a]=o[a];return i.length=s,r}return n},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return Object(o.m)(this.flatCoordinates,t)},e.prototype.getType=function(){return r.a.POINT},e.prototype.intersectsExtent=function(t){return Object(o.h)(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Object(a.a)(this.flatCoordinates,0,t,this.stride),this.changed()},e}(s.a);e.a=c},function(t,e,i){"use strict";var n,o=i(29),r=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=function(t){function e(e,i,n,o){var r=t.call(this,e)||this;return r.inversePixelTransform=i,r.frameState=n,r.context=o,r}return r(e,t),e}(o.a);e.a=s},function(t,e,i){"use strict";var n=function(){function t(){}return t.prototype.drawCustom=function(t,e,i){},t.prototype.drawGeometry=function(t){},t.prototype.setStyle=function(t){},t.prototype.drawCircle=function(t,e){},t.prototype.drawFeature=function(t,e){},t.prototype.drawGeometryCollection=function(t,e){},t.prototype.drawLineString=function(t,e){},t.prototype.drawMultiLineString=function(t,e){},t.prototype.drawMultiPoint=function(t,e){},t.prototype.drawMultiPolygon=function(t,e){},t.prototype.drawPoint=function(t,e){},t.prototype.drawPolygon=function(t,e){},t.prototype.drawText=function(t,e){},t.prototype.setFillStrokeStyle=function(t,e){},t.prototype.setImageStyle=function(t,e){},t.prototype.setTextStyle=function(t,e){},t}();e.a=n},function(t,e,i){var n,o,r;function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r=function(){"use strict";function t(t,n,o,r,s){!function t(i,n,o,r,s){for(;r>o;){if(r-o>600){var a=r-o+1,h=n-o+1,l=Math.log(a),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(a-c)/a)*(h-a/2<0?-1:1),p=Math.max(o,Math.floor(n-h*c/a+u)),d=Math.min(r,Math.floor(n+(a-h)*c/a+u));t(i,n,p,d,s)}var f=i[n],_=o,g=r;for(e(i,o,n),s(i[r],f)>0&&e(i,o,r);_<g;){for(e(i,_,g),_++,g--;s(i[_],f)<0;)_++;for(;s(i[g],f)>0;)g--}0===s(i[o],f)?e(i,o,g):e(i,++g,r),g<=n&&(o=g+1),n<=g&&(r=g-1)}}(t,n,o||0,r||t.length-1,s||i)}function e(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function i(t,e){return t<e?-1:t>e?1:0}var n=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function o(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n<e.length;n++)if(i(t,e[n]))return n;return-1}function r(t,e){s(t,0,t.children.length,e,t)}function s(t,e,i,n,o){o||(o=f(null)),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(var r=e;r<i;r++){var s=t.children[r];a(o,t.leaf?n(s):s)}return o}function a(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function h(t,e){return t.minX-e.minX}function l(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function u(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function d(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function f(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function _(e,i,n,o,r){for(var s=[i,n];s.length;)if(!((n=s.pop())-(i=s.pop())<=o)){var a=i+Math.ceil((n-i)/o/2)*o;t(e,a,i,n,r),s.push(i,a,a,n)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,i=[];if(!d(t,e))return i;for(var n=this.toBBox,o=[];e;){for(var r=0;r<e.children.length;r++){var s=e.children[r],a=e.leaf?n(s):s;d(t,a)&&(e.leaf?i.push(s):p(t,a)?this._all(s,i):o.push(s))}e=o.pop()}return i},n.prototype.collides=function(t){var e=this.data;if(!d(t,e))return!1;for(var i=[];e;){for(var n=0;n<e.children.length;n++){var o=e.children[n],r=e.leaf?this.toBBox(o):o;if(d(t,r)){if(e.leaf||p(t,r))return!0;i.push(o)}}e=i.pop()}return!1},n.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var i=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===i.height)this._splitRoot(this.data,i);else{if(this.data.height<i.height){var n=this.data;this.data=i,i=n}this._insert(i,this.data.height-i.height-1,!0)}else this.data=i;return this},n.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},n.prototype.clear=function(){return this.data=f([]),this},n.prototype.remove=function(t,e){if(!t)return this;for(var i,n,r,s=this.data,a=this.toBBox(t),h=[],l=[];s||h.length;){if(s||(s=h.pop(),n=h[h.length-1],i=l.pop(),r=!0),s.leaf){var c=o(t,s.children,e);if(-1!==c)return s.children.splice(c,1),h.push(s),this._condense(h),this}r||s.leaf||!p(s,a)?n?(i++,s=n.children[i],r=!1):s=null:(h.push(s),l.push(i),i=0,n=s,s=s.children[0])}return this},n.prototype.toBBox=function(t){return t},n.prototype.compareMinX=function(t,e){return t.minX-e.minX},n.prototype.compareMinY=function(t,e){return t.minY-e.minY},n.prototype.toJSON=function(){return this.data},n.prototype.fromJSON=function(t){return this.data=t,this},n.prototype._all=function(t,e){for(var i=[];t;)t.leaf?e.push.apply(e,t.children):i.push.apply(i,t.children),t=i.pop();return e},n.prototype._build=function(t,e,i,n){var o,s=i-e+1,a=this._maxEntries;if(s<=a)return r(o=f(t.slice(e,i+1)),this.toBBox),o;n||(n=Math.ceil(Math.log(s)/Math.log(a)),a=Math.ceil(s/Math.pow(a,n-1))),(o=f([])).leaf=!1,o.height=n;var h=Math.ceil(s/a),l=h*Math.ceil(Math.sqrt(a));_(t,e,i,l,this.compareMinX);for(var c=e;c<=i;c+=l){var u=Math.min(c+l-1,i);_(t,c,u,h,this.compareMinY);for(var p=c;p<=u;p+=h){var d=Math.min(p+h-1,u);o.children.push(this._build(t,p,d,n-1))}}return r(o,this.toBBox),o},n.prototype._chooseSubtree=function(t,e,i,n){for(;n.push(e),!e.leaf&&n.length-1!==i;){for(var o=1/0,r=1/0,s=void 0,a=0;a<e.children.length;a++){var h=e.children[a],l=c(h),u=(p=t,d=h,(Math.max(d.maxX,p.maxX)-Math.min(d.minX,p.minX))*(Math.max(d.maxY,p.maxY)-Math.min(d.minY,p.minY))-l);u<r?(r=u,o=l<o?l:o,s=h):u===r&&l<o&&(o=l,s=h)}e=s||e.children[0]}var p,d;return e},n.prototype._insert=function(t,e,i){var n=i?t:this.toBBox(t),o=[],r=this._chooseSubtree(n,this.data,e,o);for(r.children.push(t),a(r,n);e>=0&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(n,o,e)},n.prototype._split=function(t,e){var i=t[e],n=i.children.length,o=this._minEntries;this._chooseSplitAxis(i,o,n);var s=this._chooseSplitIndex(i,o,n),a=f(i.children.splice(s,i.children.length-s));a.height=i.height,a.leaf=i.leaf,r(i,this.toBBox),r(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},n.prototype._splitRoot=function(t,e){this.data=f([t,e]),this.data.height=t.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(t,e,i){for(var n,o,r,a,h,l,u,p=1/0,d=1/0,f=e;f<=i-e;f++){var _=s(t,0,f,this.toBBox),g=s(t,f,i,this.toBBox),m=(o=_,r=g,a=void 0,h=void 0,l=void 0,u=void 0,a=Math.max(o.minX,r.minX),h=Math.max(o.minY,r.minY),l=Math.min(o.maxX,r.maxX),u=Math.min(o.maxY,r.maxY),Math.max(0,l-a)*Math.max(0,u-h)),v=c(_)+c(g);m<p?(p=m,n=f,d=v<d?v:d):m===p&&v<d&&(d=v,n=f)}return n||i-e},n.prototype._chooseSplitAxis=function(t,e,i){var n=t.leaf?this.compareMinX:h,o=t.leaf?this.compareMinY:l;this._allDistMargin(t,e,i,n)<this._allDistMargin(t,e,i,o)&&t.children.sort(n)},n.prototype._allDistMargin=function(t,e,i,n){t.children.sort(n);for(var o=this.toBBox,r=s(t,0,e,o),h=s(t,i-e,i,o),l=u(r)+u(h),c=e;c<i-e;c++){var p=t.children[c];a(r,t.leaf?o(p):p),l+=u(r)}for(var d=i-e-1;d>=e;d--){var f=t.children[d];a(h,t.leaf?o(f):f),l+=u(h)}return l},n.prototype._adjustParentBBoxes=function(t,e,i){for(var n=i;n>=0;n--)a(e[n],t)},n.prototype._condense=function(t){for(var e=t.length-1,i=void 0;e>=0;e--)0===t[e].children.length?e>0?(i=t[e-1].children).splice(i.indexOf(t[e]),1):this.clear():r(t[e],this.toBBox)},n},"object"===s(e)&&void 0!==t?t.exports=r():void 0===(o="function"==typeof(n=r)?n.call(e,i,e,t):n)||(t.exports=o)},function(t,e,i){"use strict";var n,o=i(1),r=i(13),s=i(2),a=i(35),h=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=function(t){function e(e){var i=t.call(this)||this;return i.projection_=Object(s.g)(e.projection),i.attributions_=c(e.attributions),i.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,i.loading=!1,i.state_=void 0!==e.state?e.state:a.a.READY,i.wrapX_=void 0!==e.wrapX&&e.wrapX,i}return h(e,t),e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolutions=function(){return Object(o.b)()},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=c(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(r.a);function c(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}e.a=l},function(t,e,i){"use strict";e.a={POINT:"point",LINE:"line"}},function(t,e,i){"use strict";var n=i(51),o=i(15),r=i(5);function s(t,e,i){return function(n,o,s,a){if(n){var h=e?0:s[0]*o,l=e?0:s[1]*o,c=t[0]+h/2,u=t[2]-h/2,p=t[1]+l/2,d=t[3]-l/2;c>u&&(u=c=(u+c)/2),p>d&&(d=p=(d+p)/2);var f=Object(r.a)(n[0],c,u),_=Object(r.a)(n[1],p,d),g=30*o;return a&&i&&(f+=-g*Math.log(1+Math.max(0,c-n[0])/g)+g*Math.log(1+Math.max(0,n[0]-u)/g),_+=-g*Math.log(1+Math.max(0,p-n[1])/g)+g*Math.log(1+Math.max(0,n[1]-d)/g)),[f,_]}}}function a(t){return t}var h=i(13),l=i(12),c=i(0);function u(t,e,i,n){var o=Object(c.E)(e)/i[0],r=Object(c.A)(e)/i[1];return n?Math.min(t,Math.max(o,r)):Math.min(t,Math.min(o,r))}function p(t,e,i){var n=Math.min(t,e);return n*=Math.log(1+50*Math.max(0,t/e-1))/50+1,i&&(n=Math.max(n,i),n/=Math.log(1+50*Math.max(0,i/t-1))/50+1),Object(r.a)(n,i/2,2*e)}function d(t,e,i,n,o){return function(s,a,h,l){if(void 0!==s){var c=n?u(t,n,h,o):t;return(void 0===i||i)&&l?p(s,c,e):Object(r.a)(s,e,c)}}}var f,_=i(42),g=i(21),m="center",v="resolution",y="rotation",b=i(10),x=i(27),O=i(26),w=i(3),T=i(57),E=i(11),S=i(2),C=i(23),P=(f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),I=0,L=function(t){function e(e){var i=t.call(this)||this,n=Object(E.a)({},e);return i.hints_=[0,0],i.animations_=[],i.updateAnimationKey_,i.projection_=Object(S.b)(n.projection,"EPSG:3857"),i.viewportSize_=[100,100],i.targetCenter_=null,i.targetResolution_,i.targetRotation_,i.cancelAnchor_=void 0,n.center&&(n.center=Object(S.e)(n.center,i.projection_)),n.extent&&(n.extent=Object(S.f)(n.extent,i.projection_)),i.applyOptions_(n),i}return P(e,t),e.prototype.applyOptions_=function(t){var e=function(t){var e,i,o,s=void 0!==t.minZoom?t.minZoom:I,a=void 0!==t.maxZoom?t.maxZoom:28,h=void 0!==t.zoomFactor?t.zoomFactor:2,f=void 0!==t.multiWorld&&t.multiWorld,_=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,g=void 0!==t.showFullExtent&&t.showFullExtent,m=Object(S.b)(t.projection,"EPSG:3857"),v=m.getExtent(),y=t.constrainOnlyCenter,b=t.extent;f||b||!m.isGlobal()||(y=!1,b=v);if(void 0!==t.resolutions){var x=t.resolutions;i=x[s],o=void 0!==x[a]?x[a]:x[x.length-1],e=t.constrainResolution?function(t,e,i,n){return function(o,s,a,h){if(void 0!==o){var c=t[0],d=t[t.length-1],f=i?u(c,i,a,n):c;if(h)return void 0===e||e?p(o,f,d):Object(r.a)(o,d,f);var _=Math.min(f,o),g=Math.floor(Object(l.g)(t,_,s));return t[g]>f&&g<t.length-1?t[g+1]:t[g]}}}(x,_,!y&&b,g):d(i,o,_,!y&&b,g)}else{var O=v?Math.max(Object(c.E)(v),Object(c.A)(v)):360*S.a[C.b.DEGREES]/m.getMetersPerUnit(),w=O/n.b/Math.pow(2,I),T=w/Math.pow(2,28-I);void 0!==(i=t.maxResolution)?s=0:i=w/Math.pow(h,s),void 0===(o=t.minResolution)&&(o=void 0!==t.maxZoom?void 0!==t.maxResolution?i/Math.pow(h,a):w/Math.pow(h,a):T),a=s+Math.floor(Math.log(i/o)/Math.log(h)),o=i/Math.pow(h,a-s),e=t.constrainResolution?function(t,e,i,n,o,s){return function(a,h,l,c){if(void 0!==a){var d=o?u(e,o,l,s):e,f=void 0!==i?i:0;if(c)return void 0===n||n?p(a,d,f):Object(r.a)(a,f,d);var _=Math.ceil(Math.log(e/d)/Math.log(t)-1e-9),g=-h*(.5-1e-9)+.5,m=Math.min(d,a),v=Math.floor(Math.log(e/m)/Math.log(t)+g),y=Math.max(_,v),b=e/Math.pow(t,y);return Object(r.a)(b,f,d)}}}(h,i,o,_,!y&&b,g):d(i,o,_,!y&&b,g)}return{constraint:e,maxResolution:i,minResolution:o,minZoom:s,zoomFactor:h}}(t);this.maxResolution_=e.maxResolution,this.minResolution_=e.minResolution,this.zoomFactor_=e.zoomFactor,this.resolutions_=t.resolutions,this.minZoom_=e.minZoom;var i=function(t){if(void 0!==t.extent){var e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return s(t.extent,t.constrainOnlyCenter,e)}var i=Object(S.b)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&i.isGlobal()){var n=i.getExtent().slice();return n[0]=-1/0,n[2]=1/0,s(n,!1,!1)}return a}(t),o=e.constraint,h=function(t){if(void 0===t.enableRotation||t.enableRotation){var e=t.constrainRotation;return void 0===e||!0===e?Object(_.b)():!1===e?_.d:"number"==typeof e?Object(_.a)(e):_.d}return _.c}(t);this.constraints_={center:i,resolution:o,rotation:h},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom),this.setProperties({}),this.options_=t},e.prototype.getUpdatedOptions_=function(t){var e=Object(E.a)({},this.options_);return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object(E.a)({},e,t)},e.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),i=0;i<e.length;++i){var n=arguments[i];n.center&&((n=Object(E.a)({},n)).center=Object(S.e)(n.center,this.getProjection())),n.anchor&&((n=Object(E.a)({},n)).anchor=Object(S.e)(n.anchor,this.getProjection())),e[i]=n}this.animateInternal.apply(this,e)},e.prototype.animateInternal=function(t){var e,i=arguments.length;if(i>1&&"function"==typeof arguments[i-1]&&(e=arguments[i-1],--i),!this.isDef()){var n=arguments[i-1];return n.center&&this.setCenterInternal(n.center),void 0!==n.zoom&&this.setZoom(n.zoom),void 0!==n.rotation&&this.setRotation(n.rotation),void(e&&R(e,!0))}for(var o=Date.now(),s=this.targetCenter_.slice(),a=this.targetResolution_,h=this.targetRotation_,l=[],c=0;c<i;++c){var u=arguments[c],p={start:o,complete:!1,anchor:u.anchor,duration:void 0!==u.duration?u.duration:1e3,easing:u.easing||O.c,callback:e};if(u.center&&(p.sourceCenter=s,p.targetCenter=u.center.slice(),s=p.targetCenter),void 0!==u.zoom?(p.sourceResolution=a,p.targetResolution=this.getResolutionForZoom(u.zoom),a=p.targetResolution):u.resolution&&(p.sourceResolution=a,p.targetResolution=u.resolution,a=p.targetResolution),void 0!==u.rotation){p.sourceRotation=h;var d=Object(r.d)(u.rotation-h+Math.PI,2*Math.PI)-Math.PI;p.targetRotation=h+d,h=p.targetRotation}M(p)?p.complete=!0:o+=p.duration,l.push(p)}this.animations_.push(l),this.setHint(g.a.ANIMATING,1),this.updateAnimations_()},e.prototype.getAnimating=function(){return this.hints_[g.a.ANIMATING]>0},e.prototype.getInteracting=function(){return this.hints_[g.a.INTERACTING]>0},e.prototype.cancelAnimations=function(){var t;this.setHint(g.a.ANIMATING,-this.hints_[g.a.ANIMATING]);for(var e=0,i=this.animations_.length;e<i;++e){var n=this.animations_[e];if(n[0].callback&&R(n[0].callback,!1),!t)for(var o=0,r=n.length;o<r;++o){var s=n[o];if(!s.complete){t=s.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t},e.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,i=this.animations_.length-1;i>=0;--i){for(var n=this.animations_[i],o=!0,s=0,a=n.length;s<a;++s){var h=n[s];if(!h.complete){var l=t-h.start,c=h.duration>0?l/h.duration:1;c>=1?(h.complete=!0,c=1):o=!1;var u=h.easing(c);if(h.sourceCenter){var p=h.sourceCenter[0],d=h.sourceCenter[1],f=p+u*(h.targetCenter[0]-p),_=d+u*(h.targetCenter[1]-d);this.targetCenter_=[f,_]}if(h.sourceResolution&&h.targetResolution){var m=1===u?h.targetResolution:h.sourceResolution+u*(h.targetResolution-h.sourceResolution);if(h.anchor){var v=this.getViewportSize_(this.getRotation()),y=this.constraints_.resolution(m,0,v,!0);this.targetCenter_=this.calculateCenterZoom(y,h.anchor)}this.targetResolution_=m,this.applyTargetState_(!0)}if(void 0!==h.sourceRotation&&void 0!==h.targetRotation){var b=1===u?Object(r.d)(h.targetRotation+Math.PI,2*Math.PI)-Math.PI:h.sourceRotation+u*(h.targetRotation-h.sourceRotation);if(h.anchor){var x=this.constraints_.rotation(b,!0);this.targetCenter_=this.calculateCenterRotate(x,h.anchor)}this.targetRotation_=b}if(this.applyTargetState_(!0),e=!0,!h.complete)break}}if(o){this.animations_[i]=null,this.setHint(g.a.ANIMATING,-1);var O=n[0].callback;O&&R(O,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,e){var i,n=this.getCenterInternal();return void 0!==n&&(i=[n[0]-e[0],n[1]-e[1]],Object(x.c)(i,t-this.getRotation()),Object(x.a)(i,e)),i},e.prototype.calculateCenterZoom=function(t,e){var i,n=this.getCenterInternal(),o=this.getResolution();void 0!==n&&void 0!==o&&(i=[e[0]-t*(e[0]-n[0])/o,e[1]-t*(e[1]-n[1])/o]);return i},e.prototype.getViewportSize_=function(t){var e=this.viewportSize_;if(t){var i=e[0],n=e[1];return[Math.abs(i*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(n*Math.cos(t))]}return e},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?Object(S.l)(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(m)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.options_.constrainResolution},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=this.calculateExtentInternal(t);return Object(S.m)(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getViewportSize_(),i=this.getCenterInternal();Object(b.a)(i,1);var n=this.getResolution();Object(b.a)(void 0!==n,2);var o=this.getRotation();return Object(b.a)(void 0!==o,3),Object(c.z)(i,n,o,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(v)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal(Object(S.f)(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var i=e||this.getViewportSize_(),n=Object(c.E)(t)/i[0],o=Object(c.A)(t)/i[1];return Math.max(n,o)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,o=Math.log(i/n)/Math.log(e);return function(t){return i/Math.pow(e,t*o)}},e.prototype.getRotation=function(){return this.get(y)},e.prototype.getValueForResolutionFunction=function(t){var e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,o=Math.log(i/n)/e;return function(t){return Math.log(i/t)/e/o}},e.prototype.getState=function(){var t=this.getCenterInternal(),e=this.getProjection(),i=this.getResolution(),n=this.getRotation();return{center:t.slice(0),projection:void 0!==e?e:null,resolution:i,rotation:n,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,i,n=this.minZoom_||0;if(this.resolutions_){var o=Object(l.g)(this.resolutions_,t,1);n=o,e=this.resolutions_[o],i=o==this.resolutions_.length-1?2:e/this.resolutions_[o+1]}else e=this.maxResolution_,i=this.zoomFactor_;return n+Math.log(e/t)/Math.log(i)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=Object(r.a)(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,Object(r.a)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var i,n=Object(E.a)({size:this.getViewportSize_()},e||{});if(Object(b.a)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(b.a)(!Object(c.H)(t),25);var o=Object(S.f)(t,this.getProjection());i=Object(T.b)(o)}else if(t.getType()===w.a.CIRCLE){o=Object(S.f)(t.getExtent(),this.getProjection());(i=Object(T.b)(o)).rotate(this.getRotation(),Object(c.x)(o))}else{var r=Object(S.k)();i=r?t.clone().transform(r,this.getProjection()):t}this.fitInternal(i,n)},e.prototype.fitInternal=function(t,e){var i=e||{},n=i.size;n||(n=this.getViewportSize_());var r,s=void 0!==i.padding?i.padding:[0,0,0,0],a=void 0!==i.nearest&&i.nearest;r=void 0!==i.minResolution?i.minResolution:void 0!==i.maxZoom?this.getResolutionForZoom(i.maxZoom):0;for(var h=t.getFlatCoordinates(),l=this.getRotation(),c=Math.cos(-l),u=Math.sin(-l),p=1/0,d=1/0,f=-1/0,_=-1/0,g=t.getStride(),m=0,v=h.length;m<v;m+=g){var y=h[m]*c-h[m+1]*u,b=h[m]*u+h[m+1]*c;p=Math.min(p,y),d=Math.min(d,b),f=Math.max(f,y),_=Math.max(_,b)}var x=this.getResolutionForExtentInternal([p,d,f,_],[n[0]-s[1]-s[3],n[1]-s[0]-s[2]]);x=isNaN(x)?r:Math.max(x,r),x=this.getConstrainedResolution(x,a?0:1),u=-u;var O=(p+f)/2,w=(d+_)/2,T=[(O+=(s[1]-s[3])/2*x)*c-(w+=(s[0]-s[2])/2*x)*u,w*c+O*u],E=i.callback?i.callback:o.c;void 0!==i.duration?this.animateInternal({resolution:x,center:this.getConstrainedCenter(T,x),duration:i.duration,easing:i.easing},E):(this.targetResolution_=x,this.targetCenter_=T,this.applyTargetState_(!1,!0),R(E,!0))},e.prototype.centerOn=function(t,e,i){this.centerOnInternal(Object(S.e)(t,this.getProjection()),e,i)},e.prototype.centerOnInternal=function(t,e,i){var n=this.getRotation(),o=Math.cos(-n),r=Math.sin(-n),s=t[0]*o-t[1]*r,a=t[1]*o+t[0]*r,h=this.getResolution(),l=(s+=(e[0]/2-i[0])*h)*o-(a+=(i[1]-e[1]/2)*h)*(r=-r),c=a*o+s*r;this.setCenterInternal([l,c])},e.prototype.isDef=function(){return!!this.getCenterInternal()&&void 0!==this.getResolution()},e.prototype.adjustCenter=function(t){var e=Object(S.l)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustCenterInternal=function(t){var e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])},e.prototype.adjustResolution=function(t,e){var i=e&&Object(S.e)(e,this.getProjection());this.adjustResolutionInternal(t,i)},e.prototype.adjustResolutionInternal=function(t,e){var i=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),o=this.constraints_.resolution(this.targetResolution_*t,0,n,i);e&&(this.targetCenter_=this.calculateCenterZoom(o,e)),this.targetResolution_*=t,this.applyTargetState_()},e.prototype.adjustZoom=function(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)},e.prototype.adjustRotation=function(t,e){e&&(e=Object(S.e)(e,this.getProjection())),this.adjustRotationInternal(t,e)},e.prototype.adjustRotationInternal=function(t,e){var i=this.getAnimating()||this.getInteracting(),n=this.constraints_.rotation(this.targetRotation_+t,i);e&&(this.targetCenter_=this.calculateCenterRotate(n,e)),this.targetRotation_+=t,this.applyTargetState_()},e.prototype.setCenter=function(t){this.setCenterInternal(Object(S.e)(t,this.getProjection()))},e.prototype.setCenterInternal=function(t){this.targetCenter_=t,this.applyTargetState_()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.targetResolution_=t,this.applyTargetState_()},e.prototype.setRotation=function(t){this.targetRotation_=t,this.applyTargetState_()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e.prototype.applyTargetState_=function(t,e){var i=this.getAnimating()||this.getInteracting()||e,n=this.constraints_.rotation(this.targetRotation_,i),o=this.getViewportSize_(n),r=this.constraints_.resolution(this.targetResolution_,0,o,i),s=this.constraints_.center(this.targetCenter_,r,o,i);this.get(y)!==n&&this.set(y,n),this.get(v)!==r&&this.set(v,r),this.get(m)&&Object(x.b)(this.get(m),s)||this.set(m,s),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0},e.prototype.resolveConstraints=function(t,e,i){var n=void 0!==t?t:200,o=e||0,r=this.constraints_.rotation(this.targetRotation_),s=this.getViewportSize_(r),a=this.constraints_.resolution(this.targetResolution_,o,s),h=this.constraints_.center(this.targetCenter_,a,s);if(0===n&&!this.cancelAnchor_)return this.targetResolution_=a,this.targetRotation_=r,this.targetCenter_=h,void this.applyTargetState_();var l=i||(0===n?this.cancelAnchor_:void 0);this.cancelAnchor_=void 0,this.getResolution()===a&&this.getRotation()===r&&this.getCenterInternal()&&Object(x.b)(this.getCenterInternal(),h)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:r,center:h,resolution:a,duration:n,easing:O.b,anchor:l}))},e.prototype.beginInteraction=function(){this.resolveConstraints(0),this.setHint(g.a.INTERACTING,1)},e.prototype.endInteraction=function(t,e,i){var n=i&&Object(S.e)(i,this.getProjection());this.endInteractionInternal(t,e,n)},e.prototype.endInteractionInternal=function(t,e,i){this.setHint(g.a.INTERACTING,-1),this.resolveConstraints(t,e,i)},e.prototype.getConstrainedCenter=function(t,e){var i=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),i)},e.prototype.getConstrainedZoom=function(t,e){var i=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(i,e))},e.prototype.getConstrainedResolution=function(t,e){var i=e||0,n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,i,n)},e}(h.a);function R(t,e){setTimeout(function(){t(e)},0)}function M(t){return!(t.sourceCenter&&t.targetCenter&&!Object(x.b)(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}e.a=L},function(t,e,i){"use strict";var n,o=i(1),r=i(36),s=i(7),a=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h=function(t){function e(e,i,n,o){var r=t.call(this)||this;return r.extent=e,r.pixelRatio_=n,r.resolution=i,r.state=o,r}return a(e,t),e.prototype.changed=function(){this.dispatchEvent(s.a.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return Object(o.b)()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){Object(o.b)()},e}(r.a),l=i(16),c=i(6),u=i(0),p=i(18);i.d(e,"a",function(){return f});var d=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function f(t,e,i){var n=t;if(n.src&&p.c){var o=n.decode(),r=!0;return o.then(function(){r&&e()}).catch(function(t){r&&("EncodingError"===t.name&&"Invalid image type."===t.message?e():i())}),function(){r=!1}}var a=[Object(c.b)(n,s.a.LOAD,e),Object(c.b)(n,s.a.ERROR,i)];return function(){a.forEach(c.c)}}!function(t){function e(e,i,n,o,r,s){var a=t.call(this,e,i,n,l.a.IDLE)||this;return a.src_=o,a.image_=new Image,null!==r&&(a.image_.crossOrigin=r),a.unlisten_=null,a.state=l.a.IDLE,a.imageLoadFunction_=s,a}d(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=l.a.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(u.A)(this.extent)/this.image_.height),this.state=l.a.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=l.a.IDLE&&this.state!=l.a.ERROR||(this.state=l.a.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=f(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.setImage=function(t){this.image_=t},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}(h)},function(t,e,i){"use strict";var n,o=i(0),r=i(14),s=i(69),a=i(39),h=i(4),l=i(1),c=i(16),u=i(65),p=i(7),d=i(35),f=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),_=function(t){function e(e){var i=t.call(this)||this;return i.boundHandleImageChange_=i.handleImageChange_.bind(i),i.layer_=e,i}return f(e,t),e.prototype.getFeatures=function(t){return Object(l.b)()},e.prototype.prepareFrame=function(t){return Object(l.b)()},e.prototype.renderFrame=function(t,e){return Object(l.b)()},e.prototype.loadedTileCallback=function(t,e,i){t[e]||(t[e]={}),t[e][i.tileCoord.toString()]=i},e.prototype.createLoadedTileFinder=function(t,e,i){return function(n,o){var r=this.loadedTileCallback.bind(this,i,n);return t.forEachLoadedTile(e,n,o,r)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,o){},e.prototype.getDataAtPixel=function(t,e,i){return Object(l.b)()},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){t.target.getState()===c.a.LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=c.a.LOADED&&e!=c.a.ERROR&&t.addEventListener(p.a.CHANGE,this.boundHandleImageChange_),e==c.a.IDLE&&(t.load(),e=t.getState()),e==c.a.LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t.getVisible()&&t.getSourceState()==d.a.READY&&t.changed()},e}(u.a),g=i(8),m=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),v=function(t){function e(e){var i=t.call(this,e)||this;return i.container=null,i.renderedResolution,i.tempTransform_=Object(g.c)(),i.pixelTransform=Object(g.c)(),i.inversePixelTransform=Object(g.c)(),i.context=null,i.containerReused=!1,i}return m(e,t),e.prototype.useContainer=function(t,e,i){var n,o,s=this.getLayer().getClassName();t&&""===t.style.opacity&&t.className===s&&((h=t.firstElementChild)instanceof HTMLCanvasElement&&(o=h.getContext("2d")));if(o&&o.canvas.style.transform===e?(this.container=t,this.context=o,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(n=document.createElement("div")).className=s;var a=n.style;a.position="absolute",a.width="100%",a.height="100%";var h=(o=Object(r.a)()).canvas;n.appendChild(h),(a=h.style).position="absolute",a.left="0",a.transformOrigin="top left",this.container=n,this.context=o}},e.prototype.clip=function(t,e,i){var n=e.pixelRatio,r=e.size[0]*n/2,s=e.size[1]*n/2,a=e.viewState.rotation,l=Object(o.C)(i),c=Object(o.D)(i),u=Object(o.w)(i),p=Object(o.v)(i);Object(g.a)(e.coordinateToPixelTransform,l),Object(g.a)(e.coordinateToPixelTransform,c),Object(g.a)(e.coordinateToPixelTransform,u),Object(g.a)(e.coordinateToPixelTransform,p),t.save(),Object(h.t)(t,-a,r,s),t.beginPath(),t.moveTo(l[0]*n,l[1]*n),t.lineTo(c[0]*n,c[1]*n),t.lineTo(u[0]*n,u[1]*n),t.lineTo(p[0]*n,p[1]*n),t.clip(),Object(h.t)(t,a,r,s)},e.prototype.clipUnrotated=function(t,e,i){var n=Object(o.C)(i),r=Object(o.D)(i),s=Object(o.w)(i),a=Object(o.v)(i);Object(g.a)(e.coordinateToPixelTransform,n),Object(g.a)(e.coordinateToPixelTransform,r),Object(g.a)(e.coordinateToPixelTransform,s),Object(g.a)(e.coordinateToPixelTransform,a);var h=this.inversePixelTransform;Object(g.a)(h,n),Object(g.a)(h,r),Object(g.a)(h,s),Object(g.a)(h,a),t.save(),t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,i){var n=this.getLayer();if(n.hasListener(t)){var o=new s.a(t,this.inversePixelTransform,i,e);n.dispatchEvent(o)}},e.prototype.preRender=function(t,e){this.dispatchRenderEvent_(a.a.PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(a.a.POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,i,n,o,r,s){var a=o/2,h=r/2,l=n/e,c=-l,u=-t[0]+s,p=-t[1];return Object(g.b)(this.tempTransform_,a,h,l,c,-i,u,p)},e.prototype.getDataAtPixel=function(t,e,i){var n,o=Object(g.a)(this.inversePixelTransform,t.slice()),r=this.context;try{n=r.getImageData(Math.round(o[0]),Math.round(o[1]),1,1).data}catch(t){return"SecurityError"===t.name?new Uint8Array:n}return 0===n[3]?null:n},e}(_);e.a=v},function(t,e,i){"use strict";var n,o=i(30),r=i(12),s=i(40),a=i(20),h=i(14),l=i(7),c=i(38),u=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});function p(t){this.updateElement_(t.frameState)}var d=function(t){function e(e){var i=this,n=e||{};(i=t.call(this,{element:document.createElement("div"),render:n.render||p,target:n.target})||this).ulElement_=document.createElement("ul"),i.collapsed_=void 0===n.collapsed||n.collapsed,i.overrideCollapsible_=void 0!==n.collapsible,i.collapsible_=void 0===n.collapsible||n.collapsible,i.collapsible_||(i.collapsed_=!1);var o=void 0!==n.className?n.className:"ol-attribution",r=void 0!==n.tipLabel?n.tipLabel:"Attributions",s=void 0!==n.collapseLabel?n.collapseLabel:"»";"string"==typeof s?(i.collapseLabel_=document.createElement("span"),i.collapseLabel_.textContent=s):i.collapseLabel_=s;var h=void 0!==n.label?n.label:"i";"string"==typeof h?(i.label_=document.createElement("span"),i.label_.textContent=h):i.label_=h;var c=i.collapsible_&&!i.collapsed_?i.collapseLabel_:i.label_,u=document.createElement("button");u.setAttribute("type","button"),u.title=r,u.appendChild(c),u.addEventListener(l.a.CLICK,i.handleClick_.bind(i),!1);var d=o+" "+a.e+" "+a.b+(i.collapsed_&&i.collapsible_?" "+a.a:"")+(i.collapsible_?"":" ol-uncollapsible"),f=i.element;return f.className=d,f.appendChild(i.ulElement_),f.appendChild(u),i.renderedAttributions_=[],i.renderedVisible_=!0,i}return u(e,t),e.prototype.collectSourceAttributions_=function(t){for(var e={},i=[],n=t.layerStatesArray,o=0,r=n.length;o<r;++o){var s=n[o];if(Object(c.b)(s,t.viewState)){var a=s.layer.getSource();if(a){var h=a.getAttributions();if(h){var l=h(t);if(l)if(this.overrideCollapsible_||!1!==a.getAttributionsCollapsible()||this.setCollapsible(!1),Array.isArray(l))for(var u=0,p=l.length;u<p;++u)l[u]in e||(i.push(l[u]),e[l[u]]=!0);else l in e||(i.push(l),e[l]=!0)}}}}return i},e.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),i=e.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!Object(r.a)(e,this.renderedAttributions_)){Object(h.d)(this.ulElement_);for(var n=0,o=e.length;n<o;++n){var s=document.createElement("li");s.innerHTML=e[n],this.ulElement_.appendChild(s)}this.renderedAttributions_=e}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(a.a),this.collapsed_?Object(h.g)(this.collapseLabel_,this.label_):Object(h.g)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e}(s.a),f=i(26),_=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function g(t){var e=t.frameState;if(e){var i=e.viewState.rotation;if(i!=this.rotation_){var n="rotate("+i+"rad)";if(this.autoHide_){var o=this.element.classList.contains(a.c);o||0!==i?o&&0!==i&&this.element.classList.remove(a.c):this.element.classList.add(a.c)}this.label_.style.transform=n}this.rotation_=i}}var m=function(t){function e(e){var i=this,n=e||{};i=t.call(this,{element:document.createElement("div"),render:n.render||g,target:n.target})||this;var o=void 0!==n.className?n.className:"ol-rotate",r=void 0!==n.label?n.label:"⇧";i.label_=null,"string"==typeof r?(i.label_=document.createElement("span"),i.label_.className="ol-compass",i.label_.textContent=r):(i.label_=r,i.label_.classList.add("ol-compass"));var s=n.tipLabel?n.tipLabel:"Reset rotation",h=document.createElement("button");h.className=o+"-reset",h.setAttribute("type","button"),h.title=s,h.appendChild(i.label_),h.addEventListener(l.a.CLICK,i.handleClick_.bind(i),!1);var c=o+" "+a.e+" "+a.b,u=i.element;return u.className=c,u.appendChild(h),i.callResetNorth_=n.resetNorth?n.resetNorth:void 0,i.duration_=void 0!==n.duration?n.duration:250,i.autoHide_=void 0===n.autoHide||n.autoHide,i.rotation_=void 0,i.autoHide_&&i.element.classList.add(a.c),i}return _(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},e.prototype.resetNorth_=function(){var t=this.getMap().getView();if(t){var e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:f.b}):t.setRotation(0))}},e}(s.a),v=i(60);function y(t){var e=t||{},i=new o.a;return(void 0===e.zoom||e.zoom)&&i.push(new v.a(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&i.push(new m(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&i.push(new d(e.attributionOptions)),i}i.d(e,"a",function(){return y})},function(t,e,i){"use strict";var n,o=i(10),r=i(6),s=i(7),a=i(13),h=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=function(t){function e(e){var i=t.call(this)||this;if(i.id_=void 0,i.geometryName_="geometry",i.style_=null,i.styleFunction_=void 0,i.geometryChangeKey_=null,i.addEventListener(Object(a.b)(i.geometryName_),i.handleGeometryChanged_),e)if("function"==typeof e.getSimplifiedGeometry){var n=e;i.setGeometry(n)}else{var o=e;i.setProperties(o)}return i}return h(e,t),e.prototype.clone=function(){var t=new e(this.getProperties());t.setGeometryName(this.getGeometryName());var i=this.getGeometry();i&&t.setGeometry(i.clone());var n=this.getStyle();return n&&t.setStyle(n),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Object(r.c)(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=Object(r.a)(t,s.a.CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?function(t){if("function"==typeof t)return t;var e;if(Array.isArray(t))e=t;else{Object(o.a)("function"==typeof t.getZIndex,41);var i=t;e=[i]}return function(){return e}}(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){this.removeEventListener(Object(a.b)(this.geometryName_),this.handleGeometryChanged_),this.geometryName_=t,this.addEventListener(Object(a.b)(this.geometryName_),this.handleGeometryChanged_),this.handleGeometryChanged_()},e}(a.a);e.a=l},function(t,e,i){"use strict";var n,o=i(38),r=i(11),s=i(59),a=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h="renderOrder",l=function(t){function e(e){var i=this,n=e||{},o=Object(r.a)({},n);return delete o.style,delete o.renderBuffer,delete o.updateWhileAnimating,delete o.updateWhileInteracting,(i=t.call(this,o)||this).declutter_=void 0!==n.declutter&&n.declutter,i.renderBuffer_=void 0!==n.renderBuffer?n.renderBuffer:100,i.style_=null,i.styleFunction_=void 0,i.setStyle(n.style),i.updateWhileAnimating_=void 0!==n.updateWhileAnimating&&n.updateWhileAnimating,i.updateWhileInteracting_=void 0!==n.updateWhileInteracting&&n.updateWhileInteracting,i}return a(e,t),e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.getFeatures=function(e){return t.prototype.getFeatures.call(this,e)},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(h)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.setRenderOrder=function(t){this.set(h,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:s.a,this.styleFunction_=null===t?void 0:Object(s.c)(this.style_),this.changed()},e}(o.a),c=i(1),u=i(21),p=i(0),d=i(27),f=i(2),_=i(12),g=i(32),m=i(22),v=i(3),y=i(48),b=i(70),x=i(4),O={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},w=[O.FILL],T=[O.STROKE],E=[O.BEGIN_PATH],S=[O.CLOSE_PATH],C=O,P=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),I=function(t){function e(e,i,n,o){var r=t.call(this)||this;return r.tolerance=e,r.maxExtent=i,r.pixelRatio=o,r.maxLineWidth=0,r.resolution=n,r.beginGeometryInstruction1_=null,r.beginGeometryInstruction2_=null,r.bufferedMaxExtent_=null,r.instructions=[],r.coordinates=[],r.tmpCoordinate_=[],r.hitDetectionInstructions=[],r.state={},r}return P(e,t),e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map(function(t){return t*e})},e.prototype.appendFlatCoordinates=function(t,e,i,n,o,r){var s=this.coordinates.length,a=this.getBufferedMaxExtent();r&&(e+=n);var h,l,c,u=t[e],d=t[e+1],f=this.tmpCoordinate_,_=!0;for(h=e+n;h<i;h+=n)f[0]=t[h],f[1]=t[h+1],(c=Object(p.i)(a,f))!==l?(_&&(this.coordinates[s++]=u,this.coordinates[s++]=d),this.coordinates[s++]=f[0],this.coordinates[s++]=f[1],_=!1):c===m.a.INTERSECTING?(this.coordinates[s++]=f[0],this.coordinates[s++]=f[1],_=!1):_=!0,u=f[0],d=f[1],l=c;return(o&&_||h===e+n)&&(this.coordinates[s++]=u,this.coordinates[s++]=d),s},e.prototype.drawCustomCoordinates_=function(t,e,i,n,o){for(var r=0,s=i.length;r<s;++r){var a=i[r],h=this.appendFlatCoordinates(t,e,a,n,!1,!1);o.push(h),e=a}return e},e.prototype.drawCustom=function(t,e,i){this.beginGeometry(t,e);var n,o,r,s,a,h=t.getType(),l=t.getStride(),c=this.coordinates.length;if(h==v.a.MULTI_POLYGON){n=(t=t).getOrientedFlatCoordinates(),s=[];var u=t.getEndss();a=0;for(var p=0,d=u.length;p<d;++p){var f=[];a=this.drawCustomCoordinates_(n,a,u[p],l,f),s.push(f)}this.instructions.push([C.CUSTOM,c,s,t,i,y.c])}else h==v.a.POLYGON||h==v.a.MULTI_LINE_STRING?(r=[],n=h==v.a.POLYGON?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),a=this.drawCustomCoordinates_(n,0,t.getEnds(),l,r),this.instructions.push([C.CUSTOM,c,r,t,i,y.b])):h==v.a.LINE_STRING||h==v.a.MULTI_POINT?(n=t.getFlatCoordinates(),o=this.appendFlatCoordinates(n,0,n.length,l,!1,!1),this.instructions.push([C.CUSTOM,c,o,t,i,y.a])):h==v.a.POINT&&(n=t.getFlatCoordinates(),this.coordinates.push(n[0],n[1]),o=this.coordinates.length,this.instructions.push([C.CUSTOM,c,o,t,i]));this.endGeometry(e)},e.prototype.beginGeometry=function(t,e){var i=t.getExtent();this.beginGeometryInstruction1_=[C.BEGIN_GEOMETRY,e,0,i],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[C.BEGIN_GEOMETRY,e,0,i],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var i,n,o=e.length,r=-1;for(t=0;t<o;++t)(n=(i=e[t])[0])==C.END_GEOMETRY?r=t:n==C.BEGIN_GEOMETRY&&(i[2]=t,Object(_.i)(this.hitDetectionInstructions,r,t),r=-1)},e.prototype.setFillStrokeStyle=function(t,e){var i=this.state;if(t){var n=t.getColor();i.fillStyle=Object(g.a)(n||x.c)}else i.fillStyle=void 0;if(e){var o=e.getColor();i.strokeStyle=Object(g.a)(o||x.l);var r=e.getLineCap();i.lineCap=void 0!==r?r:x.e;var s=e.getLineDash();i.lineDash=s?s.slice():x.f;var a=e.getLineDashOffset();i.lineDashOffset=a||x.g;var h=e.getLineJoin();i.lineJoin=void 0!==h?h:x.h;var l=e.getWidth();i.lineWidth=void 0!==l?l:x.i;var c=e.getMiterLimit();i.miterLimit=void 0!==c?c:x.j,i.lineWidth>this.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,i=[C.SET_FILL_STYLE,e];return"string"!=typeof e&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[C.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e){var i=t.fillStyle;"string"==typeof i&&t.currentFillStyle==i||(void 0!==i&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,e){var i=t.strokeStyle,n=t.lineCap,o=t.lineDash,r=t.lineDashOffset,s=t.lineJoin,a=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=n||o!=t.currentLineDash&&!Object(_.a)(t.currentLineDash,o)||t.currentLineDashOffset!=r||t.currentLineJoin!=s||t.currentLineWidth!=a||t.currentMiterLimit!=h)&&(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=o,t.currentLineDashOffset=r,t.currentLineJoin=s,t.currentLineWidth=a,t.currentMiterLimit=h)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var e=[C.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Object(p.d)(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Object(p.c)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(b.a),L=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),R=function(t){function e(e,i,n,o){var r=t.call(this,e,i,n,o)||this;return r.declutterGroups_=null,r.hitDetectionImage_=null,r.image_=null,r.anchorX_=void 0,r.anchorY_=void 0,r.height_=void 0,r.opacity_=void 0,r.originX_=void 0,r.originY_=void 0,r.rotateWithView_=void 0,r.rotation_=void 0,r.scale_=void 0,r.width_=void 0,r}return L(e,t),e.prototype.drawCoordinates_=function(t,e,i,n){return this.appendFlatCoordinates(t,e,i,n,!1,!1)},e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),n=t.getStride(),o=this.coordinates.length,r=this.drawCoordinates_(i,0,i.length,n);this.instructions.push([C.DRAW_IMAGE,o,r,this.image_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([C.DRAW_IMAGE,o,r,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),n=t.getStride(),o=this.coordinates.length,r=this.drawCoordinates_(i,0,i.length,n);this.instructions.push([C.DRAW_IMAGE,o,r,this.image_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([C.DRAW_IMAGE,o,r,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroups_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(e)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,t.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,e){var i=t.getAnchor(),n=t.getSize(),o=t.getHitDetectionImage(1),r=t.getImage(1),s=t.getOrigin();this.anchorX_=i[0],this.anchorY_=i[1],this.declutterGroups_=e,this.hitDetectionImage_=o,this.image_=r,this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=s[0],this.originY_=s[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScale(),this.width_=n[0]},e}(I),M=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),j=function(t){function e(e,i,n,o){return t.call(this,e,i,n,o)||this}return M(e,t),e.prototype.drawFlatCoordinates_=function(t,e,i,n){var o=this.coordinates.length,r=this.appendFlatCoordinates(t,e,i,n,!1,!1),s=[C.MOVE_TO_LINE_TO,o,r];return this.instructions.push(s),this.hitDetectionInstructions.push(s),i},e.prototype.drawLineString=function(t,e){var i=this.state,n=i.strokeStyle,o=i.lineWidth;if(void 0!==n&&void 0!==o){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([C.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],E);var r=t.getFlatCoordinates(),s=t.getStride();this.drawFlatCoordinates_(r,0,r.length,s),this.hitDetectionInstructions.push(T),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var i=this.state,n=i.strokeStyle,o=i.lineWidth;if(void 0!==n&&void 0!==o){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([C.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],E);for(var r=t.getEnds(),s=t.getFlatCoordinates(),a=t.getStride(),h=0,l=0,c=r.length;l<c;++l)h=this.drawFlatCoordinates_(s,h,r[l],a);this.hitDetectionInstructions.push(T),this.endGeometry(e)}},e.prototype.finish=function(){var e=this.state;return null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&this.instructions.push(T),this.reverseHitDetectionInstructions(),this.state=null,t.prototype.finish.call(this)},e.prototype.applyStroke=function(e){null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(T),e.lastStroke=this.coordinates.length),e.lastStroke=0,t.prototype.applyStroke.call(this,e),this.instructions.push(E)},e}(I),k=i(56),A=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),D=function(t){function e(e,i,n,o){return t.call(this,e,i,n,o)||this}return A(e,t),e.prototype.drawFlatCoordinatess_=function(t,e,i,n){var o=this.state,r=void 0!==o.fillStyle,s=void 0!==o.strokeStyle,a=i.length;this.instructions.push(E),this.hitDetectionInstructions.push(E);for(var h=0;h<a;++h){var l=i[h],c=this.coordinates.length,u=this.appendFlatCoordinates(t,e,l,n,!0,!s),p=[C.MOVE_TO_LINE_TO,c,u];this.instructions.push(p),this.hitDetectionInstructions.push(p),s&&(this.instructions.push(S),this.hitDetectionInstructions.push(S)),e=l}return r&&(this.instructions.push(w),this.hitDetectionInstructions.push(w)),s&&(this.instructions.push(T),this.hitDetectionInstructions.push(T)),e},e.prototype.drawCircle=function(t,e){var i=this.state,n=i.fillStyle,o=i.strokeStyle;if(void 0!==n||void 0!==o){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([C.SET_FILL_STYLE,x.c]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([C.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);var r=t.getFlatCoordinates(),s=t.getStride(),a=this.coordinates.length;this.appendFlatCoordinates(r,0,r.length,s,!1,!1);var h=[C.CIRCLE,a];this.instructions.push(E,h),this.hitDetectionInstructions.push(E,h),void 0!==i.fillStyle&&(this.instructions.push(w),this.hitDetectionInstructions.push(w)),void 0!==i.strokeStyle&&(this.instructions.push(T),this.hitDetectionInstructions.push(T)),this.endGeometry(e)}},e.prototype.drawPolygon=function(t,e){var i=this.state,n=i.fillStyle,o=i.strokeStyle;if(void 0!==n||void 0!==o){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([C.SET_FILL_STYLE,x.c]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([C.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);var r=t.getEnds(),s=t.getOrientedFlatCoordinates(),a=t.getStride();this.drawFlatCoordinatess_(s,0,r,a),this.endGeometry(e)}},e.prototype.drawMultiPolygon=function(t,e){var i=this.state,n=i.fillStyle,o=i.strokeStyle;if(void 0!==n||void 0!==o){this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([C.SET_FILL_STYLE,x.c]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([C.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);for(var r=t.getEndss(),s=t.getOrientedFlatCoordinates(),a=t.getStride(),h=0,l=0,c=r.length;l<c;++l)h=this.drawFlatCoordinatess_(s,h,r[l],a);this.endGeometry(e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var e=this.tolerance;if(0!==e)for(var i=this.coordinates,n=0,o=i.length;n<o;++n)i[n]=Object(k.c)(i[n],e);return t.prototype.finish.call(this)},e.prototype.setFillStrokeStyles_=function(){var t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)},e}(I);function F(t,e,i,n,o){var r,s,a,h,l,c,u,p,d,f=i,_=i,g=0,m=0,v=i;for(r=i;r<n;r+=o){var y=e[r],b=e[r+1];void 0!==h&&(p=y-h,d=b-l,a=Math.sqrt(p*p+d*d),void 0!==c&&(m+=s,Math.acos((c*p+u*d)/(s*a))>t&&(m>g&&(g=m,f=v,_=r),m=0,v=r-o)),s=a,c=p,u=d),h=y,l=b}return(m+=a)>g?[v,r]:[f,_]}var N=i(73),z=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),B={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},G={Circle:D,Default:I,Image:R,LineString:j,Polygon:D,Text:function(t){function e(e,i,n,o){var r=t.call(this,e,i,n,o)||this;return r.declutterGroups_,r.labels_=null,r.text_="",r.textOffsetX_=0,r.textOffsetY_=0,r.textRotateWithView_=void 0,r.textRotation_=0,r.textFillState_=null,r.fillStates={},r.textStrokeState_=null,r.strokeStates={},r.textState_={},r.textStates={},r.textKey_="",r.fillKey_="",r.strokeKey_="",r}return z(e,t),e.prototype.finish=function(){var e=t.prototype.finish.call(this);return e.textStates=this.textStates,e.fillStates=this.fillStates,e.strokeStates=this.strokeStates,e},e.prototype.drawText=function(t,e){var i=this.textFillState_,n=this.textStrokeState_,o=this.textState_;if(""!==this.text_&&o&&(i||n)){var r,s,a=this.coordinates.length,h=t.getType(),l=null,c=2,u=2;if(o.placement===N.a.LINE){if(!Object(p.F)(this.getBufferedMaxExtent(),t.getExtent()))return;var d=void 0;if(l=t.getFlatCoordinates(),u=t.getStride(),h==v.a.LINE_STRING)d=[l.length];else if(h==v.a.MULTI_LINE_STRING)d=t.getEnds();else if(h==v.a.POLYGON)d=t.getEnds().slice(0,1);else if(h==v.a.MULTI_POLYGON){var f=t.getEndss();for(d=[],r=0,s=f.length;r<s;++r)d.push(f[r][0])}this.beginGeometry(t,e);for(var _=o.textAlign,g=0,m=void 0,y=0,b=d.length;y<b;++y){if(null==_){var O=F(o.maxAngle,l,g,d[y],u);g=O[0],m=O[1]}else m=d[y];for(r=g;r<m;r+=u)this.coordinates.push(l[r],l[r+1]);c=this.coordinates.length,g=d[y];var w=this.declutterGroups_?0===y?this.declutterGroups_[0]:[].concat(this.declutterGroups_[0]):null;this.drawChars_(a,c,w),a=c}this.endGeometry(e)}else{var T=null;switch(o.overflow||(T=[]),h){case v.a.POINT:case v.a.MULTI_POINT:c=(l=t.getFlatCoordinates()).length;break;case v.a.LINE_STRING:l=t.getFlatMidpoint();break;case v.a.CIRCLE:l=t.getCenter();break;case v.a.MULTI_LINE_STRING:c=(l=t.getFlatMidpoints()).length;break;case v.a.POLYGON:l=t.getFlatInteriorPoint(),o.overflow||T.push(l[2]/this.resolution),u=3;break;case v.a.MULTI_POLYGON:var E=t.getFlatInteriorPoints();for(l=[],r=0,s=E.length;r<s;r+=3)o.overflow||T.push(E[r+2]/this.resolution),l.push(E[r],E[r+1]);if(0==(c=l.length))return}c=this.appendFlatCoordinates(l,0,c,u,!1,!1),this.saveTextStates_(),(o.backgroundFill||o.backgroundStroke)&&(this.setFillStrokeStyle(o.backgroundFill,o.backgroundStroke),o.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),o.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);var S=this.pixelRatio;this.instructions.push([C.DRAW_IMAGE,a,c,null,NaN,NaN,this.declutterGroups_,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,1,NaN,o.padding==x.k?x.k:o.padding.map(function(t){return t*S}),!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,T]),this.hitDetectionInstructions.push([C.DRAW_IMAGE,a,c,null,NaN,NaN,this.declutterGroups_,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,1/this.pixelRatio,NaN,o.padding,!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,T]),this.endGeometry(e)}}},e.prototype.saveTextStates_=function(){var t=this.textStrokeState_,e=this.textState_,i=this.textFillState_,n=this.strokeKey_;t&&(n in this.strokeStates||(this.strokeStates[n]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));var o=this.textKey_;o in this.textStates||(this.textStates[o]={font:e.font,textAlign:e.textAlign||x.m,textBaseline:e.textBaseline||x.n,scale:e.scale});var r=this.fillKey_;i&&(r in this.fillStates||(this.fillStates[r]={fillStyle:i.fillStyle}))},e.prototype.drawChars_=function(t,e,i){var n=this.textStrokeState_,o=this.textState_,r=this.strokeKey_,s=this.textKey_,a=this.fillKey_;this.saveTextStates_();var h=this.pixelRatio,l=B[o.textBaseline],c=this.textOffsetY_*h,u=this.text_,p=o.scale,d=n?n.lineWidth*p/2:0;this.instructions.push([C.DRAW_CHARS,t,e,l,i,o.overflow,a,o.maxAngle,h,c,r,d*h,u,s,1]),this.hitDetectionInstructions.push([C.DRAW_CHARS,t,e,l,i,o.overflow,a,o.maxAngle,1,c,r,d,u,s,1/h])},e.prototype.setTextStyle=function(t,e){var i,n,o;if(t){this.declutterGroups_=e;var r=t.getFill();r?((n=this.textFillState_)||(n={},this.textFillState_=n),n.fillStyle=Object(g.a)(r.getColor()||x.c)):(n=null,this.textFillState_=n);var s=t.getStroke();if(s){(o=this.textStrokeState_)||(o={},this.textStrokeState_=o);var a=s.getLineDash(),h=s.getLineDashOffset(),l=s.getWidth(),u=s.getMiterLimit();o.lineCap=s.getLineCap()||x.e,o.lineDash=a?a.slice():x.f,o.lineDashOffset=void 0===h?x.g:h,o.lineJoin=s.getLineJoin()||x.h,o.lineWidth=void 0===l?x.i:l,o.miterLimit=void 0===u?x.j:u,o.strokeStyle=Object(g.a)(s.getColor()||x.l)}else o=null,this.textStrokeState_=o;i=this.textState_;var p=t.getFont()||x.d;Object(x.s)(p);var d=t.getScale();i.overflow=t.getOverflow(),i.font=p,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.textBaseline=t.getTextBaseline()||x.n,i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||x.k,i.scale=void 0===d?1:d;var f=t.getOffsetX(),_=t.getOffsetY(),m=t.getRotateWithView(),v=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===f?0:f,this.textOffsetY_=void 0===_?0:_,this.textRotateWithView_=void 0!==m&&m,this.textRotation_=void 0===v?0:v,this.strokeKey_=o?("string"==typeof o.strokeStyle?o.strokeStyle:Object(c.c)(o.strokeStyle))+o.lineCap+o.lineDashOffset+"|"+o.lineWidth+o.lineJoin+o.miterLimit+"["+o.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.textBaseline||"?"),this.fillKey_=n?"string"==typeof n.fillStyle?n.fillStyle:"|"+Object(c.c)(n.fillStyle):""}else this.text_=""},e}(I)},Z=function(){function t(t,e,i,n,o){this.declutter_=o,this.declutterGroups_=null,this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=n,this.resolution_=i,this.buildersByZIndex_={}}return t.prototype.addDeclutter=function(t){var e=null;return this.declutter_&&(t?(e=this.declutterGroups_)[0][4]++:(e=[Object(p.j)()],this.declutterGroups_=e,e[0].push(1))),e},t.prototype.finish=function(){var t={};for(var e in this.buildersByZIndex_){t[e]=t[e]||{};var i=this.buildersByZIndex_[e];for(var n in i){var o=i[n].finish();t[e][n]=o}}return t},t.prototype.getBuilder=function(t,e){var i=void 0!==t?t.toString():"0",n=this.buildersByZIndex_[i];void 0===n&&(n={},this.buildersByZIndex_[i]=n);var o=n[e];void 0===o&&(o=new(0,G[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=o);return o},t}(),W=i(14),Y=i(24),V=i(19),X=i(8);function U(t,e,i,n){for(var o=t[e],r=t[e+1],s=0,a=e+n;a<i;a+=n){var h=t[a],l=t[a+1];s+=Math.sqrt((h-o)*(h-o)+(l-r)*(l-r)),o=h,r=l}return s}var K=i(5);function H(t,e,i,n,o,r,s,a,h,l,c){for(var u,p,d=[],f=t[e]>t[i-n],_=o.length,g=t[e],m=t[e+1],v=t[e+=n],y=t[e+1],b=0,x=Math.sqrt(Math.pow(v-g,2)+Math.pow(y-m,2)),O=!1,w=0;w<_;++w){for(var T=o[u=f?_-w-1:w],E=a*h(l,T,c),S=r+E/2;e<i-n&&b+x<S;)g=v,m=y,v=t[e+=n],y=t[e+1],b+=x,x=Math.sqrt(Math.pow(v-g,2)+Math.pow(y-m,2));var C=S-b,P=Math.atan2(y-m,v-g);if(f&&(P+=P>0?-Math.PI:Math.PI),void 0!==p){var I=P-p;if(O=O||0!==I,I+=I>Math.PI?-2*Math.PI:I<-Math.PI?2*Math.PI:0,Math.abs(I)>s)return null}p=P;var L=C/x,R=Object(K.c)(g,v,L),M=Object(K.c)(m,y,L);d[u]=[R,M,E/2,P,T],r+=E}return O?d:[[d[0][0],d[0][1],d[0][2],d[0][3],o]]}var $=i(71),q=i.n($),J=i(18),Q=Object(p.j)(),tt=Object(X.c)(),et=[],it=[],nt=[],ot=[],rt=function(){function t(t,e,i,n){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.declutterItems=[],this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=Object(X.c)(),this.hitDetectionInstructions=n.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=n.fillStates||{},this.strokeStates=n.strokeStates||{},this.textStates=n.textStates||{},this.widths_={},this.labels_={}}return t.prototype.createLabel=function(t,e,i,n){var o=t+e+i+n;if(this.labels_[o])return this.labels_[o];var r=n?this.strokeStates[n]:null,s=i?this.fillStates[i]:null,a=this.textStates[e],h=this.pixelRatio,l=a.scale*h,c=B[a.textAlign||x.m],u=n&&r.lineWidth?r.lineWidth:0,p=t.split("\n"),d=p.length,f=[],_=Object(x.r)(a.font,p,f),g=Object(x.q)(a.font),m=g*d,v=_+u,y=[],b={width:Math.ceil((v+2)*l),height:Math.ceil((m+u)*l),contextInstructions:y};(1!=l&&y.push("scale",[l,l]),y.push("font",a.font),n)&&(y.push("strokeStyle",r.strokeStyle),y.push("lineWidth",u),y.push("lineCap",r.lineCap),y.push("lineJoin",r.lineJoin),y.push("miterLimit",r.miterLimit),(J.g?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D).prototype.setLineDash&&(y.push("setLineDash",[r.lineDash]),y.push("lineDashOffset",r.lineDashOffset)));i&&y.push("fillStyle",s.fillStyle),y.push("textBaseline","middle"),y.push("textAlign","center");var O,w=.5-c,T=c*v+w*u;if(n)for(O=0;O<d;++O)y.push("strokeText",[p[O],T+w*f[O],.5*(u+g)+O*g]);if(i)for(O=0;O<d;++O)y.push("fillText",[p[O],T+w*f[O],.5*(u+g)+O*g]);return this.labels_[o]=b,b},t.prototype.replayTextBackground_=function(t,e,i,n,o,r,s){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,i),t.lineTo.apply(t,n),t.lineTo.apply(t,o),t.lineTo.apply(t,e),r&&(this.alignFill_=r[2],this.fill_(t)),s&&(this.setStrokeStyle_(t,s),t.stroke())},t.prototype.replayImageOrLabel_=function(t,e,i,n,o,r,s,a,h,l,c,u,d,f,_,g,m,v){var y=m||v;e-=o*=d,i-=r*=d;var b=_+l>n.width?n.width-l:_,O=a+c>n.height?n.height-c:a,w=g[3]+b*d+g[1],T=g[0]+O*d+g[2],E=e-g[3],S=i-g[0];(y||0!==u)&&(et[0]=E,ot[0]=E,et[1]=S,it[1]=S,it[0]=E+w,nt[0]=it[0],nt[1]=S+T,ot[1]=nt[1]);var C=null;if(0!==u){var P=e+o,I=i+r;C=Object(X.b)(tt,P,I,1,1,u,-P,-I),Object(X.a)(tt,et),Object(X.a)(tt,it),Object(X.a)(tt,nt),Object(X.a)(tt,ot),Object(p.k)(Math.min(et[0],it[0],nt[0],ot[0]),Math.min(et[1],it[1],nt[1],ot[1]),Math.max(et[0],it[0],nt[0],ot[0]),Math.max(et[1],it[1],nt[1],ot[1]),Q)}else Object(p.k)(E,S,E+w,S+T,Q);var L=t.canvas,R=v?v[2]*d/2:0,M=Q[0]-R<=L.width&&Q[2]+R>=0&&Q[1]-R<=L.height&&Q[3]+R>=0;if(f&&(e=Math.round(e),i=Math.round(i)),s){if(!M&&1==s[4])return;Object(p.q)(s,Q);var j=M?[t,C?C.slice(0):null,h,n,l,c,b,O,e,i,d]:null;j&&(y&&j.push(m,v,et.slice(0),it.slice(0),nt.slice(0),ot.slice(0)),s.push(j))}else M&&(y&&this.replayTextBackground_(t,et,it,nt,ot,m,v),Object(x.o)(t,C,h,n,l,c,b,O,e,i,d))},t.prototype.fill_=function(t){if(this.alignFill_){var e=Object(X.a)(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(e[0]%i,e[1]%i),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},t.prototype.setStrokeStyle_=function(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.setLineDash&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},t.prototype.renderDeclutter=function(t,e,i,n){if(t&&t.length>5){var o=t[4];if(1==o||o==t.length-5){var r={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};if(n||(n=new q.a(9)),!n.collides(r)){n.insert(r);for(var s=5,a=t.length;s<a;++s){var h=t[s],l=h[0],c=l.globalAlpha;c!==i&&(l.globalAlpha=i),h.length>11&&this.replayTextBackground_(h[0],h[13],h[14],h[15],h[16],h[11],h[12]),x.o.apply(void 0,h),c!==i&&(l.globalAlpha=c)}}t.length=5,Object(p.l)(t)}}return n},t.prototype.drawLabelWithPointPlacement_=function(t,e,i,n){var o=this.textStates[e],r=this.createLabel(t,e,n,i),s=this.strokeStates[i],a=this.pixelRatio,h=B[o.textAlign||x.m],l=B[o.textBaseline||x.n],c=s&&s.lineWidth?s.lineWidth:0;return{label:r,anchorX:h*(r.width/a-2*o.scale)+2*(.5-h)*c,anchorY:l*r.height/a+2*(.5-l)*c}},t.prototype.execute_=function(t,e,i,n,o,r){var s;this.declutterItems.length=0,this.pixelCoordinates_&&Object(_.a)(e,this.renderedTransform_)?s=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),s=Object(Y.c)(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),Object(X.h)(this.renderedTransform_,e));for(var a,h,l,c,u,d,f,g,m,v,y,b,O,w,T,E,S,P=0,I=i.length,L=0,R=0,M=0,j=null,k=null,A=this.coordinateCache_,D=this.viewRotation_,F=Math.round(1e12*Math.atan2(-e[1],e[0]))/1e12,N={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:D},z=this.instructions!=i||this.overlaps?0:200;P<I;){var G=i[P];switch(G[0]){case C.BEGIN_GEOMETRY:(T=G[1]).getGeometry()?void 0===r||Object(p.F)(r,G[3])?++P:P=G[2]+1:P=G[2];break;case C.BEGIN_PATH:R>z&&(this.fill_(t),R=0),M>z&&(t.stroke(),M=0),R||M||(t.beginPath(),c=NaN,u=NaN),++P;break;case C.CIRCLE:var Z=s[L=G[1]],W=s[L+1],V=s[L+2]-Z,K=s[L+3]-W,$=Math.sqrt(V*V+K*K);t.moveTo(Z+$,W),t.arc(Z,W,$,0,2*Math.PI,!0),++P;break;case C.CLOSE_PATH:t.closePath(),++P;break;case C.CUSTOM:L=G[1],a=G[2];var q=G[3],J=G[4],Q=6==G.length?G[5]:void 0;N.geometry=q,N.feature=T,P in A||(A[P]=[]);var tt=A[P];Q?Q(s,L,a,2,tt):(tt[0]=s[L],tt[1]=s[L+1],tt.length=2),J(tt,N),++P;break;case C.DRAW_IMAGE:L=G[1],a=G[2],v=G[3],h=G[4],l=G[5],m=o?null:G[6];var et=G[7],it=G[8],nt=G[9],ot=G[10],rt=G[11],st=G[12],at=G[13],ht=G[14];if(!v&&G.length>=19){y=G[18],b=G[19],O=G[20],w=G[21];var lt=this.drawLabelWithPointPlacement_(y,b,O,w);v=lt.label,G[3]=v;var ct=G[22];h=(lt.anchorX-ct)*this.pixelRatio,G[4]=h;var ut=G[23];l=(lt.anchorY-ut)*this.pixelRatio,G[5]=l,et=v.height,G[7]=et,ht=v.width,G[14]=ht}var pt=void 0;G.length>24&&(pt=G[24]);var dt=void 0,ft=void 0,_t=void 0;G.length>16?(dt=G[15],ft=G[16],_t=G[17]):(dt=x.k,ft=!1,_t=!1),rt&&F?st+=D:rt||F||(st-=D);for(var gt=0,mt=0;L<a;L+=2)if(!(pt&&pt[gt++]<ht/this.pixelRatio)){if(m){var vt=Math.floor(mt);m.length<vt+1&&((g=Object(p.j)()).push(m[0][4]),m.push(g)),g=m[vt]}this.replayImageOrLabel_(t,s[L],s[L+1],v,h,l,g,et,it,nt,ot,st,at,n,ht,dt,ft?j:null,_t?k:null),g&&(mt===Math.floor(mt)&&this.declutterItems.push(this,g,T),mt+=1/g[4])}++P;break;case C.DRAW_CHARS:var yt=G[1],bt=G[2],xt=G[3];g=o?null:G[4];var Ot=G[5];w=G[6];var wt=G[7],Tt=G[8],Et=G[9];O=G[10];var St=G[11];y=G[12],b=G[13];var Ct=G[14],Pt=this.textStates[b],It=Pt.font,Lt=Pt.scale*Tt,Rt=void 0;It in this.widths_?Rt=this.widths_[It]:(Rt={},this.widths_[It]=Rt);var Mt=U(s,yt,bt,2),jt=Lt*Object(x.p)(It,y,Rt);if(Ot||jt<=Mt){var kt=this.textStates[b].textAlign,At=H(s,yt,bt,2,y,(Mt-jt)*B[kt],wt,Lt,x.p,It,Rt);if(At){var Dt=void 0,Ft=void 0,Nt=void 0,zt=void 0,Bt=void 0;if(O)for(Dt=0,Ft=At.length;Dt<Ft;++Dt)Nt=(Bt=At[Dt])[4],zt=this.createLabel(Nt,b,"",O),h=Bt[2]+St,l=xt*zt.height+2*(.5-xt)*St-Et,this.replayImageOrLabel_(t,Bt[0],Bt[1],zt,h,l,g,zt.height,1,0,0,Bt[3],Ct,!1,zt.width,x.k,null,null);if(w)for(Dt=0,Ft=At.length;Dt<Ft;++Dt)Nt=(Bt=At[Dt])[4],zt=this.createLabel(Nt,b,w,""),h=Bt[2],l=xt*zt.height-Et,this.replayImageOrLabel_(t,Bt[0],Bt[1],zt,h,l,g,zt.height,1,0,0,Bt[3],Ct,!1,zt.width,x.k,null,null)}}this.declutterItems.push(this,g,T),++P;break;case C.END_GEOMETRY:if(void 0!==o){var Gt=o(T=G[1]);if(Gt)return Gt}++P;break;case C.FILL:z?R++:this.fill_(t),++P;break;case C.MOVE_TO_LINE_TO:for(L=G[1],a=G[2],E=s[L],f=(S=s[L+1])+.5|0,(d=E+.5|0)===c&&f===u||(t.moveTo(E,S),c=d,u=f),L+=2;L<a;L+=2)d=(E=s[L])+.5|0,f=(S=s[L+1])+.5|0,L!=a-2&&d===c&&f===u||(t.lineTo(E,S),c=d,u=f);++P;break;case C.SET_FILL_STYLE:j=G,this.alignFill_=G[2],R&&(this.fill_(t),R=0,M&&(t.stroke(),M=0)),t.fillStyle=G[1],++P;break;case C.SET_STROKE_STYLE:k=G,M&&(t.stroke(),M=0),this.setStrokeStyle_(t,G),++P;break;case C.STROKE:z?M++:t.stroke(),++P;break;default:++P}}R&&this.fill_(t),M&&t.stroke()},t.prototype.execute=function(t,e,i,n){this.viewRotation_=i,this.execute_(t,e,this.instructions,n,void 0,void 0)},t.prototype.executeHitDetection=function(t,e,i,n,o){return this.viewRotation_=i,this.execute_(t,e,this.hitDetectionInstructions,!0,n,o)},t}(),st=[V.a.POLYGON,V.a.CIRCLE,V.a.LINE_STRING,V.a.IMAGE,V.a.TEXT,V.a.DEFAULT],at=function(){function t(t,e,i,n,o,r){this.maxExtent_=t,this.overlaps_=n,this.pixelRatio_=i,this.resolution_=e,this.renderBuffer_=r,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=Object(X.c)(),this.createExecutors_(o)}return t.prototype.clip=function(t,e){var i=this.getClipCoords(e);t.beginPath(),t.moveTo(i[0],i[1]),t.lineTo(i[2],i[3]),t.lineTo(i[4],i[5]),t.lineTo(i[6],i[7]),t.clip()},t.prototype.createExecutors_=function(t){for(var e in t){var i=this.executorsByZIndex_[e];void 0===i&&(i={},this.executorsByZIndex_[e]=i);var n=t[e];for(var o in n){var r=n[o];i[o]=new rt(this.resolution_,this.pixelRatio_,this.overlaps_,r)}}},t.prototype.hasExecutors=function(t){for(var e in this.executorsByZIndex_)for(var i=this.executorsByZIndex_[e],n=0,o=t.length;n<o;++n)if(t[n]in i)return!0;return!1},t.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,o,r){var s=2*(n=Math.round(n))+1,a=Object(X.b)(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-i,-t[0],-t[1]);this.hitDetectionContext_||(this.hitDetectionContext_=Object(W.a)(s,s));var h,l=this.hitDetectionContext_;l.canvas.width!==s||l.canvas.height!==s?(l.canvas.width=s,l.canvas.height=s):l.clearRect(0,0,s,s),void 0!==this.renderBuffer_&&(h=Object(p.j)(),Object(p.r)(h,t),Object(p.c)(h,e*(this.renderBuffer_+n),h));var c,u=function(t){if(void 0!==ht[t])return ht[t];for(var e=2*t+1,i=new Array(e),n=0;n<e;n++)i[n]=new Array(e);var o=t,r=0,s=0;for(;o>=r;)lt(i,t+o,t+r),lt(i,t+r,t+o),lt(i,t-r,t+o),lt(i,t-o,t+r),lt(i,t-o,t-r),lt(i,t-r,t-o),lt(i,t+r,t-o),lt(i,t+o,t-r),2*((s+=1+2*++r)-o)+1>0&&(s+=1-2*(o-=1));return ht[t]=i,i}(n);function d(t){for(var e=l.getImageData(0,0,s,s).data,i=0;i<s;i++)for(var n=0;n<s;n++)if(u[i][n]&&e[4*(n*s+i)+3]>0){var a=void 0;return(!r||c!=V.a.IMAGE&&c!=V.a.TEXT||-1!==r.indexOf(t))&&(a=o(t)),a||void l.clearRect(0,0,s,s)}}var f,g,m,v,y,b=Object.keys(this.executorsByZIndex_).map(Number);for(b.sort(_.h),f=b.length-1;f>=0;--f){var x=b[f].toString();for(m=this.executorsByZIndex_[x],g=st.length-1;g>=0;--g)if(void 0!==(v=m[c=st[g]])&&(y=v.executeHitDetection(l,a,i,d,h)))return y}},t.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var i=e[0],n=e[1],o=e[2],r=e[3],s=[i,n,i,r,o,r,o,n];return Object(Y.c)(s,0,8,2,t,s),s},t.prototype.isEmpty=function(){return Object(r.d)(this.executorsByZIndex_)},t.prototype.execute=function(t,e,i,n,o,r){var s=Object.keys(this.executorsByZIndex_).map(Number);s.sort(_.h),this.maxExtent_&&(t.save(),this.clip(t,e));var a,h,l,c,u,p,d=o||st;for(a=0,h=s.length;a<h;++a){var f=s[a].toString();for(u=this.executorsByZIndex_[f],l=0,c=d.length;l<c;++l){var g=d[l];if(void 0!==(p=u[g]))if(!r||g!=V.a.IMAGE&&g!=V.a.TEXT)p.execute(t,e,i,n);else{var m=r[f];m?m.push(p,e.slice(0)):r[f]=[p,e.slice(0)]}}}this.maxExtent_&&t.restore()},t}(),ht={0:[[!0]]};function lt(t,e,i){var n,o=Math.floor(t.length/2);if(e>=o)for(n=o;n<e;n++)t[n][i]=!0;else if(e<o)for(n=e+1;n<o;n++)t[n][i]=!0}var ct=at,ut=i(76),pt=i(49),dt=i(62),ft=i(16),_t=i(10),gt=i(31),mt=i(7),vt={FRACTION:"fraction",PIXELS:"pixels"},yt=i(36),bt=i(58),xt=i(75),Ot=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),wt=function(t){function e(e,i,n,o,r,s){var a=t.call(this)||this;return a.hitDetectionImage_=null,a.image_=e||new Image,null!==o&&(a.image_.crossOrigin=o),a.canvas_=s?document.createElement("canvas"):null,a.color_=s,a.unlisten_=null,a.imageState_=r,a.size_=n,a.src_=i,a.tainted_,a}return Ot(e,t),e.prototype.isTainted_=function(t){if(void 0===this.tainted_&&this.imageState_===ft.a.LOADED){t||(t=Object(W.a)(1,1)).drawImage(this.image_,0,0);try{t.getImageData(0,0,1,1),this.tainted_=!1}catch(t){this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(mt.a.CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=ft.a.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=ft.a.LOADED,this.size_&&(this.image_.width=this.size_[0],this.image_.height=this.size_[1]),this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.replaceColor_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.canvas_?this.canvas_:this.image_},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(t){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],i=this.size_[1],n=Object(W.a)(e,i);n.fillRect(0,0,e,i),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==ft.a.IDLE){this.imageState_=ft.a.LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=Object(xt.a)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}},e.prototype.replaceColor_=function(){if(this.color_){this.canvas_.width=this.image_.width,this.canvas_.height=this.image_.height;var t=this.canvas_.getContext("2d");if(t.drawImage(this.image_,0,0),this.isTainted_(t)){var e=this.color_;return t.globalCompositeOperation="multiply",t.fillStyle="rgb("+e[0]+","+e[1]+","+e[2]+")",t.fillRect(0,0,this.image_.width,this.image_.height),t.globalCompositeOperation="destination-in",void t.drawImage(this.image_,0,0)}for(var i=t.getImageData(0,0,this.image_.width,this.image_.height),n=i.data,o=this.color_[0]/255,r=this.color_[1]/255,s=this.color_[2]/255,a=0,h=n.length;a<h;a+=4)n[a]*=o,n[a+1]*=r,n[a+2]*=s;t.putImageData(i,0,0)}},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(yt.a);var Tt={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},Et=i(55),St=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Ct=function(t){function e(e){var i=this,n=e||{},o=void 0!==n.opacity?n.opacity:1,r=void 0!==n.rotation?n.rotation:0,s=void 0!==n.scale?n.scale:1,a=void 0!==n.rotateWithView&&n.rotateWithView;(i=t.call(this,{opacity:o,rotation:r,scale:s,displacement:void 0!==n.displacement?n.displacement:[0,0],rotateWithView:a})||this).anchor_=void 0!==n.anchor?n.anchor:[.5,.5],i.normalizedAnchor_=null,i.anchorOrigin_=void 0!==n.anchorOrigin?n.anchorOrigin:Tt.TOP_LEFT,i.anchorXUnits_=void 0!==n.anchorXUnits?n.anchorXUnits:vt.FRACTION,i.anchorYUnits_=void 0!==n.anchorYUnits?n.anchorYUnits:vt.FRACTION,i.crossOrigin_=void 0!==n.crossOrigin?n.crossOrigin:null;var h=void 0!==n.img?n.img:null,l=void 0!==n.imgSize?n.imgSize:null,u=n.src;Object(_t.a)(!(void 0!==u&&h),4),Object(_t.a)(!h||h&&l,5),void 0!==u&&0!==u.length||!h||(u=h.src||Object(c.c)(h)),Object(_t.a)(void 0!==u&&u.length>0,6);var p=void 0!==n.src?ft.a.IDLE:ft.a.LOADED;return i.color_=void 0!==n.color?Object(gt.a)(n.color):null,i.iconImage_=function(t,e,i,n,o,r){var s=bt.a.get(e,n,r);return s||(s=new wt(t,e,i,n,o,r),bt.a.set(e,n,r,s)),s}(h,u,l,i.crossOrigin_,p,i.color_),i.offset_=void 0!==n.offset?n.offset:[0,0],i.offsetOrigin_=void 0!==n.offsetOrigin?n.offsetOrigin:Tt.TOP_LEFT,i.origin_=null,i.size_=void 0!==n.size?n.size:null,i}return St(e,t),e.prototype.clone=function(){return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},e.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,e=this.getSize();if(this.anchorXUnits_==vt.FRACTION||this.anchorYUnits_==vt.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==vt.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==vt.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=Tt.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=Tt.TOP_RIGHT&&this.anchorOrigin_!=Tt.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=Tt.BOTTOM_LEFT&&this.anchorOrigin_!=Tt.BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}return this.normalizedAnchor_=t,this.normalizedAnchor_},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(t){return this.iconImage_.getHitDetectionImage(t)},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_,e=this.getDisplacement();if(this.offsetOrigin_!=Tt.TOP_LEFT){var i=this.getSize(),n=this.iconImage_.getSize();if(!i||!n)return null;t=t.slice(),this.offsetOrigin_!=Tt.TOP_RIGHT&&this.offsetOrigin_!=Tt.BOTTOM_RIGHT||(t[0]=n[0]-i[0]-t[0]),this.offsetOrigin_!=Tt.BOTTOM_LEFT&&this.offsetOrigin_!=Tt.BOTTOM_RIGHT||(t[1]=n[1]-i[1]-t[1])}return t[0]+=e[0],t[1]+=e[1],this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(mt.a.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(mt.a.CHANGE,t)},e}(Et.a);var Pt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),It=function(t){function e(e){var i=t.call(this,e)||this;return i.boundHandleStyleImageChange_=i.handleStyleImageChange_.bind(i),i.animatingOrInteracting_,i.dirty_=!1,i.hitDetectionImageData_=null,i.renderedFeatures_=null,i.renderedRevision_=-1,i.renderedResolution_=NaN,i.renderedExtent_=Object(p.j)(),i.renderedRotation_,i.renderedCenter_=null,i.renderedProjection_=null,i.renderedRenderOrder_=null,i.replayGroup_=null,i.replayGroupChanged=!0,i}return Pt(e,t),e.prototype.useContainer=function(e,i,n){n<1&&(e=null),t.prototype.useContainer.call(this,e,i,n)},e.prototype.renderFrame=function(t,e){var i=t.pixelRatio,n=t.layerStatesArray[t.layerIndex];Object(X.e)(this.pixelTransform,1/i,1/i),Object(X.d)(this.inversePixelTransform,this.pixelTransform);var o=Object(X.i)(this.pixelTransform);this.useContainer(e,o,n.opacity);var r=this.context,s=r.canvas,a=this.replayGroup_;if(!a||a.isEmpty())return!this.containerReused&&s.width>0&&(s.width=0),this.container;var h=Math.round(t.size[0]*i),l=Math.round(t.size[1]*i);s.width!=h||s.height!=l?(s.width=h,s.height=l,s.style.transform!==o&&(s.style.transform=o)):this.containerReused||r.clearRect(0,0,h,l),this.preRender(r,t);var c=t.extent,d=t.viewState,g=d.center,m=d.resolution,v=d.projection,y=d.rotation,b=v.getExtent(),x=this.getLayer().getSource(),O=!1;if(n.extent){var w=Object(f.f)(n.extent,v);(O=!Object(p.g)(w,t.extent)&&Object(p.F)(w,t.extent))&&this.clip(r,t,w)}var T=t.viewHints,E=!(T[u.a.ANIMATING]||T[u.a.INTERACTING]),S=this.getRenderTransform(g,m,y,i,h,l,0),C=this.getLayer().getDeclutter()?{}:null;if(a.execute(r,S,y,E,void 0,C),x.getWrapX()&&v.canWrapX()&&!Object(p.g)(b,c)){for(var P=c[0],I=Object(p.E)(b),L=0,R=void 0;P<b[0];){R=I*--L;var M=this.getRenderTransform(g,m,y,i,h,l,R);a.execute(r,M,y,E,void 0,C),P+=I}for(L=0,P=c[2];P>b[2];){R=I*++L;var j=this.getRenderTransform(g,m,y,i,h,l,R);a.execute(r,j,y,E,void 0,C),P-=I}}if(C){var k=t.viewHints;!function(t,e,i,n,o,r){for(var s=Object.keys(t).map(Number).sort(_.h),a=0,h=s.length;a<h;++a)for(var l=t[s[a].toString()],c=void 0,u=0,p=l.length;u<p;){var d=l[u++];d!==c&&(c=d,r.push({items:d.declutterItems,opacity:n}));var f=l[u++];d.execute(e,f,i,o)}}(C,r,y,1,!(k[u.a.ANIMATING]||k[u.a.INTERACTING]),t.declutterItems)}O&&r.restore(),this.postRender(r,t);var A=n.opacity,D=this.container;return A!==parseFloat(D.style.opacity)&&(D.style.opacity=1===A?"":A),this.container},e.prototype.getFeatures=function(t){return new Promise(function(e,i){if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){var n=[this.context.canvas.width,this.context.canvas.height];Object(X.a)(this.pixelTransform,n);var o=this.renderedCenter_,r=this.renderedResolution_,s=this.renderedRotation_,a=this.renderedProjection_,h=this.renderedExtent_,l=this.getLayer(),c=[],u=n[0]/2,d=n[1]/2;c.push(this.getRenderTransform(o,r,s,.5,u,d,0).slice());var f=l.getSource(),g=a.getExtent();if(f.getWrapX()&&a.canWrapX()&&!Object(p.g)(g,h)){for(var m=h[0],y=Object(p.E)(g),b=0,x=void 0;m<g[0];)x=y*--b,c.push(this.getRenderTransform(o,r,s,.5,u,d,x).slice()),m+=y;for(b=0,m=h[2];m>g[2];)x=y*++b,c.push(this.getRenderTransform(o,r,s,.5,u,d,x).slice()),m-=y}this.hitDetectionImageData_=function(t,e,i,n,o,r,s){var a=t[0]/2,h=t[1]/2,l=Object(W.a)(a,h);l.imageSmoothingEnabled=!1;for(var c=l.canvas,u=new dt.a(l,.5,o,null,s),d=i.length,f=Math.floor(16777215/d),g={},m=1;m<=d;++m){var y=i[m-1],b=y.getStyleFunction()||n;if(n){var x=b(y,r);if(x){Array.isArray(x)||(x=[x]);for(var O="#"+("000000"+(m*f).toString(16)).slice(-6),w=0,T=x.length;w<T;++w){var E=x[w],S=E.clone(),C=S.getFill();C&&C.setColor(O);var P=S.getStroke();P&&P.setColor(O),S.setText(void 0);var I=E.getImage();if(I){var L=I.getImageSize();if(!L)continue;var R=document.createElement("canvas");R.width=L[0],R.height=L[1];var M=R.getContext("2d",{alpha:!1});M.fillStyle=O;var j=M.canvas;M.fillRect(0,0,j.width,j.height);var k=L?L[0]:j.width,A=L?L[1]:j.height;Object(W.a)(k,A).drawImage(j,0,0),S.setImage(new Ct({img:j,imgSize:L,anchor:I.getAnchor(),anchorXUnits:vt.PIXELS,anchorYUnits:vt.PIXELS,offset:I.getOrigin(),size:I.getSize(),opacity:I.getOpacity(),scale:I.getScale(),rotation:I.getRotation(),rotateWithView:I.getRotateWithView()}))}var D=Number(S.getZIndex());(B=g[D])||(B={},g[D]=B,B[v.a.POLYGON]=[],B[v.a.CIRCLE]=[],B[v.a.LINE_STRING]=[],B[v.a.POINT]=[]);var F=S.getGeometryFunction()(y);F&&Object(p.F)(o,F.getExtent())&&B[F.getType().replace("Multi","")].push(F,S)}}}}for(var N=Object.keys(g).map(Number).sort(_.h),z=(m=0,N.length);m<z;++m){var B=g[N[m]];for(var G in B){var Z=B[G];for(w=0,T=Z.length;w<T;w+=2){u.setStyle(Z[w+1]);for(var Y=0,V=e.length;Y<V;++Y)u.setTransform(e[Y]),u.drawGeometry(Z[w])}}}return document.body.appendChild(l.canvas),l.getImageData(0,0,c.width,c.height)}(n,c,this.renderedFeatures_,l.getStyleFunction(),h,r,s)}e(function(t,e,i){var n=[];if(i){var o=4*(Math.round(t[0]/2)+Math.round(t[1]/2)*i.width),r=i.data[o],s=i.data[o+1],a=i.data[o+2]+256*(s+256*r),h=Math.floor(16777215/e.length);a&&a%h==0&&n.push(e[a/h-1])}return n}(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,o){if(this.replayGroup_){var r=e.viewState.resolution,s=e.viewState.rotation,a=this.getLayer(),h={};return this.replayGroup_.forEachFeatureAtCoordinate(t,r,s,i,function(t){var e=Object(c.c)(t);if(!(e in h))return h[e]=!0,n(t,a)},a.getDeclutter()?o:null)}},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t){var e=this.getLayer(),i=e.getSource();if(!i)return!1;var n=t.viewHints[u.a.ANIMATING],o=t.viewHints[u.a.INTERACTING],r=e.getUpdateWhileAnimating(),s=e.getUpdateWhileInteracting();if(!this.dirty_&&!r&&n||!s&&o)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;var a=t.extent,h=t.viewState,l=h.projection,c=h.resolution,_=t.pixelRatio,g=e.getRevision(),m=e.getRenderBuffer(),v=e.getRenderOrder();void 0===v&&(v=pt.a);var y=h.center.slice(),b=Object(p.c)(a,m*c),x=[b.slice()],O=l.getExtent();if(i.getWrapX()&&l.canWrapX()&&!Object(p.g)(O,t.extent)){var w=Object(p.E)(O),T=Math.max(Object(p.E)(b)/2,w);b[0]=O[0]-T,b[2]=O[2]+T,Object(d.e)(y,l);var E=Object(p.K)(x[0],l);E[0]<O[0]&&E[2]<O[2]?x.push([E[0]+w,E[1],E[2]+w,E[3]]):E[0]>O[0]&&E[2]>O[2]&&x.push([E[0]-w,E[1],E[2]-w,E[3]])}if(!this.dirty_&&this.renderedResolution_==c&&this.renderedRevision_==g&&this.renderedRenderOrder_==v&&Object(p.g)(this.renderedExtent_,b))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var S,C=new Z(Object(pt.c)(c,_),b,c,_,e.getDeclutter()),P=Object(f.k)();if(P){for(var I=0,L=x.length;I<L;++I)i.loadFeatures(Object(f.m)(x[I],l),c,P);S=Object(f.j)(P,l)}else for(I=0,L=x.length;I<L;++I)i.loadFeatures(x[I],c,l);var R=Object(pt.b)(c,_),M=function(t){var i,n=t.getStyleFunction()||e.getStyleFunction();if(n&&(i=n(t,c)),i){var o=this.renderFeature(t,R,i,C,S);this.dirty_=this.dirty_||o}}.bind(this),j=Object(f.m)(b,l),k=i.getFeaturesInExtent(j);v&&k.sort(v);for(I=0,L=k.length;I<L;++I)M(k[I]);this.renderedFeatures_=k;var A=C.finish(),D=new ct(b,c,_,i.getOverlaps(),A,e.getRenderBuffer());return this.renderedResolution_=c,this.renderedRevision_=g,this.renderedRenderOrder_=v,this.renderedExtent_=b,this.renderedRotation_=h.rotation,this.renderedCenter_=y,this.renderedProjection_=l,this.replayGroup_=D,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,e,i,n,o){if(!i)return!1;var r=!1;if(Array.isArray(i))for(var s=0,a=i.length;s<a;++s)r=Object(pt.d)(n,t,i[s],e,this.boundHandleStyleImageChange_,o)||r;else r=Object(pt.d)(n,t,i,e,this.boundHandleStyleImageChange_,o);return r},e}(ut.a),Lt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Rt=function(t){function e(e){return t.call(this,e)||this}return Lt(e,t),e.prototype.createRenderer=function(){return new It(this)},e}(l);e.a=Rt},function(t,e,i){"use strict";var n=i(10),o=i(5);function r(t,e,i,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=i,n):[t,e,i]}function s(t,e,i){return t+"/"+e+"/"+i}function a(t){return s(t[0],t[1],t[2])}function h(t,e){var i=/\{z\}/g,o=/\{x\}/g,r=/\{y\}/g,s=/\{-y\}/g;return function(a,h,l){return a?t.replace(i,a[0].toString()).replace(o,a[1].toString()).replace(r,a[2].toString()).replace(s,function(){var t=a[0],i=e.getFullTileRange(t);return Object(n.a)(i,55),(i.getHeight()-a[2]-1).toString()}):void 0}}function l(t){return 1===t.length?t[0]:function(e,i,n){if(e){var r=function(t){return(t[1]<<t[0])+t[2]}(e),s=Object(o.d)(r,t.length);return t[s](e,i,n)}}}function c(t,e,i){}function u(t){var e=[],i=/\{([a-z])-([a-z])\}/.exec(t);if(i){var n=i[1].charCodeAt(0),o=i[2].charCodeAt(0),r=void 0;for(r=n;r<=o;++r)e.push(t.replace(i[0],String.fromCharCode(r)));return e}if(i=/\{(\d+)-(\d+)\}/.exec(t)){for(var s=parseInt(i[2],10),a=parseInt(i[1],10);a<=s;a++)e.push(t.replace(i[0],a.toString()));return e}return e.push(t),e}var p,d=i(12),f=i(11),_=i(2),g=.5,m=i(1),v=i(9),y=i(26),b=i(36),x=i(7),O=(p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),w=function(t){function e(e,i,n){var o=t.call(this)||this,r=n||{};return o.tileCoord=e,o.state=i,o.interimTile=null,o.hifi=!0,o.key="",o.transition_=void 0===r.transition?250:r.transition,o.transitionStarts_={},o}return O(e,t),e.prototype.changed=function(){this.dispatchEvent(x.a.CHANGE)},e.prototype.release=function(){},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==v.a.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==v.a.LOADED){t.interimTile=null;break}t.getState()==v.a.LOADING?e=t:t.getState()==v.a.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){if(this.state!==v.a.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Object(m.b)()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var i=this.transitionStarts_[t];if(i){if(-1===i)return 1}else i=e,this.transitionStarts_[t]=i;var n=e-i+1e3/60;return n>=this.transition_?1:Object(y.a)(n/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(b.a),T=i(14),E=i(75),S=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();var C=function(t){function e(e,i,n,o,r,s){var a=t.call(this,e,i,s)||this;return a.crossOrigin_=o,a.src_=n,a.image_=new Image,null!==o&&(a.image_.crossOrigin=o),a.unlisten_=null,a.tileLoadFunction_=r,a}return S(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.getKey=function(){return this.src_},e.prototype.handleImageError_=function(){var t;this.state=v.a.ERROR,this.unlistenImage_(),this.image_=((t=Object(T.a)(1,1)).fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=v.a.LOADED:this.state=v.a.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==v.a.ERROR&&(this.state=v.a.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==v.a.IDLE&&(this.state=v.a.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(E.a)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(w),P=function(){function t(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return t.prototype.canExpireCache=function(){return this.getCount()>this.highWaterMark},t.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},t.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},t.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},t.prototype.get=function(t,e){var i=this.entries_[t];return Object(n.a)(void 0!==i,15),i===this.newest_?i.value_:(i===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(i.newer.older=i.older,i.older.newer=i.newer),i.newer=null,i.older=this.newest_,this.newest_.newer=i,this.newest_=i,i.value_)},t.prototype.remove=function(t){var e=this.entries_[t];return Object(n.a)(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},t.prototype.getCount=function(){return this.count_},t.prototype.getKeys=function(){var t,e=new Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.key_;return e},t.prototype.getValues=function(){var t,e=new Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.value_;return e},t.prototype.peekLast=function(){return this.oldest_.value_},t.prototype.peekLastKey=function(){return this.oldest_.key_},t.prototype.peekFirstKey=function(){return this.newest_.key_},t.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},t.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},t.prototype.set=function(t,e){Object(n.a)(!(t in this.entries_),16);var i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_},t.prototype.setSize=function(t){this.highWaterMark=t},t}(),I=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I(e,t),e.prototype.expireCache=function(t){for(;this.canExpireCache();){if(this.peekLast().getKey()in t)break;this.pop().release()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=function(t){return t.split("/").map(Number)}(this.peekFirstKey())[0];this.forEach(function(e){e.tileCoord[0]!==t&&(this.remove(a(e.tileCoord)),e.release())}.bind(this))}},e}(P),R=i(6),M=i(0);function j(t,e,i,n){var o=i-t,r=n-e,s=Math.sqrt(o*o+r*r);return[Math.round(i+o/s),Math.round(n+r/s)]}var k=10,A=function(){function t(t,e,i,n,o,r){this.sourceProj_=t,this.targetProj_=e;var s={},a=Object(_.i)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return s[e]||(s[e]=a(t)),s[e]},this.maxSourceExtent_=n,this.errorThresholdSquared_=o*o,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!n&&!!this.sourceProj_.getExtent()&&Object(M.E)(n)==Object(M.E)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(M.E)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(M.E)(this.targetProj_.getExtent()):null;var h=Object(M.C)(i),l=Object(M.D)(i),c=Object(M.w)(i),u=Object(M.v)(i),p=this.transformInv_(h),d=this.transformInv_(l),f=this.transformInv_(c),g=this.transformInv_(u),m=k+(r?Math.max(0,Math.ceil(Math.log2(Object(M.u)(i)/(r*r*256*256)))):0);if(this.addQuad_(h,l,c,u,p,d,f,g,m),this.wrapsXInSource_){var v=1/0;this.triangles_.forEach(function(t,e,i){v=Math.min(v,t.source[0][0],t.source[1][0],t.source[2][0])}),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-v>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-v>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-v>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-v>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var i=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-i<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}s={}}return t.prototype.addTriangle_=function(t,e,i,n,o,r){this.triangles_.push({source:[n,o,r],target:[t,e,i]})},t.prototype.addQuad_=function(t,e,i,n,r,s,a,h,l){var c=Object(M.b)([r,s,a,h]),u=this.sourceWorldWidth_?Object(M.E)(c)/this.sourceWorldWidth_:null,p=this.sourceWorldWidth_,d=this.sourceProj_.canWrapX()&&u>.5&&u<1,f=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var _=Object(M.b)([t,e,i,n]);f=Object(M.E)(_)/this.targetWorldWidth_>.25||f}!d&&this.sourceProj_.isGlobal()&&u&&(f=u>.25||f)}if(f||!this.maxSourceExtent_||Object(M.F)(c,this.maxSourceExtent_)){if(!(f||isFinite(r[0])&&isFinite(r[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(h[0])&&isFinite(h[1]))){if(!(l>0))return;f=!0}if(l>0){if(!f){var g=[(t[0]+i[0])/2,(t[1]+i[1])/2],m=this.transformInv_(g),v=void 0;if(d)v=(Object(o.d)(r[0],p)+Object(o.d)(a[0],p))/2-Object(o.d)(m[0],p);else v=(r[0]+a[0])/2-m[0];var y=(r[1]+a[1])/2-m[1];f=v*v+y*y>this.errorThresholdSquared_}if(f){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){var b=[(e[0]+i[0])/2,(e[1]+i[1])/2],x=this.transformInv_(b),O=[(n[0]+t[0])/2,(n[1]+t[1])/2],w=this.transformInv_(O);this.addQuad_(t,e,b,O,r,s,x,w,l-1),this.addQuad_(O,b,i,n,w,x,a,h,l-1)}else{var T=[(t[0]+e[0])/2,(t[1]+e[1])/2],E=this.transformInv_(T),S=[(i[0]+n[0])/2,(i[1]+n[1])/2],C=this.transformInv_(S);this.addQuad_(t,T,S,n,r,E,C,h,l-1),this.addQuad_(T,e,i,S,E,s,a,C,l-1)}return}}if(d){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,i,n,r,a,h),this.addTriangle_(t,e,i,r,s,a)}},t.prototype.calculateSourceExtent=function(){var t=Object(M.j)();return this.triangles_.forEach(function(e,i,n){var o=e.source;Object(M.r)(t,o[0]),Object(M.r)(t,o[1]),Object(M.r)(t,o[2])}),t},t.prototype.getTriangles=function(){return this.triangles_},t}(),D=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),F=function(t){function e(e,i,n,r,s,a,h,l,c,u,p){var d=t.call(this,s,v.a.IDLE)||this;d.renderEdges_=void 0!==p&&p,d.pixelRatio_=h,d.gutter_=l,d.canvas_=null,d.sourceTileGrid_=i,d.targetTileGrid_=r,d.wrappedTileCoord_=a||s,d.sourceTiles_=[],d.sourcesListenerKeys_=null,d.sourceZ_=0;var f=r.getTileCoordExtent(d.wrappedTileCoord_),m=d.targetTileGrid_.getExtent(),y=d.sourceTileGrid_.getExtent(),b=m?Object(M.B)(f,m):f;if(0===Object(M.u)(b))return d.state=v.a.EMPTY,d;var x=e.getExtent();x&&(y=y?Object(M.B)(y,x):x);var O=r.getResolution(d.wrappedTileCoord_[0]),w=function(t,e,i,n){var o=Object(_.n)(i,e,t),r=Object(_.h)(e,n,i),s=e.getMetersPerUnit();void 0!==s&&(r*=s);var a=t.getMetersPerUnit();void 0!==a&&(r/=a);var h=t.getExtent();if(!h||Object(M.f)(h,o)){var l=Object(_.h)(t,r,o)/r;isFinite(l)&&l>0&&(r/=l)}return r}(e,n,Object(M.x)(b),O);if(!isFinite(w)||w<=0)return d.state=v.a.EMPTY,d;var T=void 0!==u?u:g;if(d.triangulation_=new A(e,n,b,y,w*T,O),0===d.triangulation_.getTriangles().length)return d.state=v.a.EMPTY,d;d.sourceZ_=i.getZForResolution(w);var E=d.triangulation_.calculateSourceExtent();if(y&&(e.canWrapX()?(E[1]=Object(o.a)(E[1],y[1],y[3]),E[3]=Object(o.a)(E[3],y[1],y[3])):E=Object(M.B)(E,y)),Object(M.u)(E)){for(var S=i.getTileRangeForExtentAndZ(E,d.sourceZ_),C=S.minX;C<=S.maxX;C++)for(var P=S.minY;P<=S.maxY;P++){var I=c(d.sourceZ_,C,P,h);I&&d.sourceTiles_.push(I)}0===d.sourceTiles_.length&&(d.state=v.a.EMPTY)}else d.state=v.a.EMPTY;return d}return D(e,t),e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,i,n){e&&e.getState()==v.a.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=v.a.ERROR;else{var e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),n="number"==typeof i?i:i[0],r="number"==typeof i?i:i[1],s=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),h=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(t,e,i,n,r,s,a,h,l,c,u){var p=Object(T.a)(Math.round(i*t),Math.round(i*e));if(0===l.length)return p.canvas;p.scale(i,i);var d=Object(M.j)();l.forEach(function(t,e,i){Object(M.q)(d,t.extent)});var f=Object(M.E)(d),_=Object(M.A)(d),g=Object(T.a)(Math.round(i*f/n),Math.round(i*_/n)),m=i/n;l.forEach(function(t,e,i){var n=t.extent[0]-d[0],o=-(t.extent[3]-d[3]),r=Object(M.E)(t.extent),s=Object(M.A)(t.extent);g.drawImage(t.image,c,c,t.image.width-2*c,t.image.height-2*c,n*m,o*m,r*m,s*m)});var v=Object(M.C)(a);return h.getTriangles().forEach(function(t,e,r){var a=t.source,h=t.target,l=a[0][0],c=a[0][1],u=a[1][0],f=a[1][1],_=a[2][0],m=a[2][1],y=(h[0][0]-v[0])/s,b=-(h[0][1]-v[1])/s,x=(h[1][0]-v[0])/s,O=-(h[1][1]-v[1])/s,w=(h[2][0]-v[0])/s,T=-(h[2][1]-v[1])/s,E=l,S=c;l=0,c=0;var C=[[u-=E,f-=S,0,0,x-y],[_-=E,m-=S,0,0,w-y],[0,0,u,f,O-b],[0,0,_,m,T-b]],P=Object(o.e)(C);if(P){p.save(),p.beginPath();var I=(y+x+w)/3,L=(b+O+T)/3,R=j(I,L,y,b),M=j(I,L,x,O),k=j(I,L,w,T);p.moveTo(M[0],M[1]),p.lineTo(R[0],R[1]),p.lineTo(k[0],k[1]),p.clip(),p.transform(P[0],P[2],P[1],P[3],y,b),p.translate(d[0]-E,d[3]-S),p.scale(n/i,-n/i),p.drawImage(g.canvas,0,0),p.restore()}}),u&&(p.save(),p.strokeStyle="black",p.lineWidth=1,h.getTriangles().forEach(function(t,e,i){var n=t.target,o=(n[0][0]-v[0])/s,r=-(n[0][1]-v[1])/s,a=(n[1][0]-v[0])/s,h=-(n[1][1]-v[1])/s,l=(n[2][0]-v[0])/s,c=-(n[2][1]-v[1])/s;p.beginPath(),p.moveTo(a,h),p.lineTo(o,r),p.lineTo(l,c),p.closePath(),p.stroke()}),p.restore()),p.canvas}(n,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),s,h,this.triangulation_,t,this.gutter_,this.renderEdges_),this.state=v.a.LOADED}this.changed()},e.prototype.load=function(){if(this.state==v.a.IDLE){this.state=v.a.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,i,n){var o=e.getState();if(o==v.a.IDLE||o==v.a.LOADING){t++;var r=Object(R.a)(e,x.a.CHANGE,function(i){var n=e.getState();n!=v.a.LOADED&&n!=v.a.ERROR&&n!=v.a.EMPTY||(Object(R.c)(r),0===--t&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(r)}}.bind(this)),this.sourceTiles_.forEach(function(t,e,i){t.getState()==v.a.IDLE&&t.load()}),0===t&&setTimeout(this.reproject_.bind(this),0)}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(R.c),this.sourcesListenerKeys_=null},e}(w),N=i(29),z=i(34),B=i(72),G=i(51),Z=i(52),W=i(23),Y=i(53),V=[0,0,0],X=function(){function t(t){var e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Object(n.a)(Object(d.f)(this.resolutions_,function(t,e){return e-t},!0),17),!t.origins)for(var i=0,o=this.resolutions_.length-1;i<o;++i)if(e){if(this.resolutions_[i]/this.resolutions_[i+1]!==e){e=void 0;break}}else e=this.resolutions_[i]/this.resolutions_[i+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,Object(n.a)(this.origins_.length==this.resolutions_.length,20));var r=t.extent;void 0===r||this.origin_||this.origins_||(this.origin_=Object(M.C)(r)),Object(n.a)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,Object(n.a)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:G.b,Object(n.a)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==r?r:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map(function(t,e){return new Y.b(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1))},this):r&&this.calculateTileRanges_(r)}return t.prototype.forEachTileCoord=function(t,e,i){for(var n=this.getTileRangeForExtentAndZ(t,e),o=n.minX,r=n.maxX;o<=r;++o)for(var s=n.minY,a=n.maxY;s<=a;++s)i([e,o,s])},t.prototype.forEachTileCoordParentTileRange=function(t,e,i,n){var o,r,s,a=null,h=t[0]-1;for(2===this.zoomFactor_?(r=t[1],s=t[2]):a=this.getTileCoordExtent(t,n);h>=this.minZoom;){if(2===this.zoomFactor_?(r=Math.floor(r/2),s=Math.floor(s/2),o=Object(Y.a)(r,r,s,s,i)):o=this.getTileRangeForExtentAndZ(a,h,i),e(h,o))return!0;--h}return!1},t.prototype.getExtent=function(){return this.extent_},t.prototype.getMaxZoom=function(){return this.maxZoom},t.prototype.getMinZoom=function(){return this.minZoom},t.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},t.prototype.getResolution=function(t){return this.resolutions_[t]},t.prototype.getResolutions=function(){return this.resolutions_},t.prototype.getTileCoordChildTileRange=function(t,e,i){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var n=2*t[1],o=2*t[2];return Object(Y.a)(n,n+1,o,o+1,e)}var r=this.getTileCoordExtent(t,i);return this.getTileRangeForExtentAndZ(r,t[0]+1,e)}return null},t.prototype.getTileRangeExtent=function(t,e,i){var n=this.getOrigin(t),o=this.getResolution(t),r=Object(z.c)(this.getTileSize(t),this.tmpSize_),s=n[0]+e.minX*r[0]*o,a=n[0]+(e.maxX+1)*r[0]*o,h=n[1]+e.minY*r[1]*o,l=n[1]+(e.maxY+1)*r[1]*o;return Object(M.k)(s,h,a,l,i)},t.prototype.getTileRangeForExtentAndZ=function(t,e,i){var n=V;this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,n);var o=n[1],r=n[2];return this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,n),Object(Y.a)(o,n[1],r,n[2],i)},t.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),i=this.getResolution(t[0]),n=Object(z.c)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*n[0]*i,e[1]-(t[2]+.5)*n[1]*i]},t.prototype.getTileCoordExtent=function(t,e){var i=this.getOrigin(t[0]),n=this.getResolution(t[0]),o=Object(z.c)(this.getTileSize(t[0]),this.tmpSize_),r=i[0]+t[1]*o[0]*n,s=i[1]-(t[2]+1)*o[1]*n,a=r+o[0]*n,h=s+o[1]*n;return Object(M.k)(r,s,a,h,e)},t.prototype.getTileCoordForCoordAndResolution=function(t,e,i){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,i)},t.prototype.getTileCoordForXYAndResolution_=function(t,e,i,n,o){var s=this.getZForResolution(i),a=i/this.getResolution(s),h=this.getOrigin(s),l=Object(z.c)(this.getTileSize(s),this.tmpSize_),c=n?.5:0,u=n?.5:0,p=Math.floor((t-h[0])/i+c),d=Math.floor((h[1]-e)/i+u),f=a*p/l[0],_=a*d/l[1];return n?(f=Math.ceil(f)-1,_=Math.ceil(_)-1):(f=Math.floor(f),_=Math.floor(_)),r(s,f,_,o)},t.prototype.getTileCoordForXYAndZ_=function(t,e,i,n,o){var s=this.getOrigin(i),a=this.getResolution(i),h=Object(z.c)(this.getTileSize(i),this.tmpSize_),l=n?.5:0,c=n?.5:0,u=Math.floor((t-s[0])/a+l),p=Math.floor((s[1]-e)/a+c),d=u/h[0],f=p/h[1];return n?(d=Math.ceil(d)-1,f=Math.ceil(f)-1):(d=Math.floor(d),f=Math.floor(f)),r(i,d,f,o)},t.prototype.getTileCoordForCoordAndZ=function(t,e,i){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,i)},t.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},t.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},t.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:null},t.prototype.getZForResolution=function(t,e){var i=Object(d.g)(this.resolutions_,t,e||0);return Object(o.a)(i,this.minZoom,this.maxZoom)},t.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,i=new Array(e),n=this.minZoom;n<e;++n)i[n]=this.getTileRangeForExtentAndZ(t,n);this.fullTileRanges_=i},t}();function U(t){var e=t.getDefaultTileGrid();return e||(e=function(t,e,i,n){return function(t,e,i,n){var o=void 0!==n?n:Z.a.TOP_LEFT,r=K(t,e,i);return new X({extent:t,origin:Object(M.y)(t,o),resolutions:r,tileSize:i})}(H(t),e,i,n)}(t),t.setDefaultTileGrid(e)),e}function K(t,e,i,n){for(var o=void 0!==e?e:G.a,r=Object(M.A)(t),s=Object(M.E)(t),a=Object(z.c)(void 0!==i?i:G.b),h=n>0?n:Math.max(s/a[0],r/a[1]),l=o+1,c=new Array(l),u=0;u<l;++u)c[u]=h/Math.pow(2,u);return c}function H(t){var e=(t=Object(_.g)(t)).getExtent();if(!e){var i=180*_.a[W.b.DEGREES]/t.getMetersPerUnit();e=Object(M.k)(-i,-i,i,i)}return e}var $=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),q=function(t){function e(e){var i=t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX})||this;i.opaque_=void 0!==e.opaque&&e.opaque,i.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,i.tileGrid=void 0!==e.tileGrid?e.tileGrid:null;var n=[256,256],o=e.tileGrid;o&&Object(z.c)(o.getTileSize(o.getMinZoom()),n);var r="undefined"!=typeof screen,s=r?screen.availWidth||screen.width:1920,a=r?screen.availHeight||screen.height:1080,h=4*Math.ceil(s/n[0])*Math.ceil(a/n[1]);return i.tileCache=new L(Math.max(h,e.cacheSize||0)),i.tmpSize=[0,0],i.key_=e.key||"",i.tileOptions={transition:e.transition},i.zDirection=e.zDirection?e.zDirection:0,i}return $(e,t),e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,e){var i=this.getTileCacheForProjection(t);i&&i.expireCache(e)},e.prototype.forEachLoadedTile=function(t,e,i,n){var o=this.getTileCacheForProjection(t);if(!o)return!1;for(var r,a,h,l=!0,c=i.minX;c<=i.maxX;++c)for(var u=i.minY;u<=i.maxY;++u)a=s(e,c,u),h=!1,o.containsKey(a)&&(h=(r=o.get(a)).getState()===v.a.LOADED)&&(h=!1!==n(r)),h||(l=!1);return l},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid.getResolutions()},e.prototype.getTile=function(t,e,i,n,o){return Object(m.b)()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:U(t)},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return e&&!Object(_.c)(e,t)?null:this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,i){var n=this.getTileGridForProjection(i),o=this.getTilePixelRatio(e),r=Object(z.c)(n.getTileSize(t),this.tmpSize);return 1==o?r:Object(z.b)(r,o,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var i=void 0!==e?e:this.getProjection(),n=this.getTileGridForProjection(i);return this.getWrapX()&&i.isGlobal()&&(t=function(t,e,i){var n=e[0],o=t.getTileCoordCenter(e),r=H(i);if(Object(M.f)(r,o))return e;var s=Object(M.E)(r),a=Math.ceil((r[0]-o[0])/s);return o[0]+=s*a,t.getTileCoordForCoordAndZ(o,n)}(n,t,i)),function(t,e){var i=t[0],n=t[1],o=t[2];if(e.getMinZoom()>i||i>e.getMaxZoom())return!1;var r,s=e.getExtent();return!(r=s?e.getTileRangeForExtentAndZ(s,i):e.getFullTileRange(i))||r.containsXY(n,o)}(t,n)?t:null},e.prototype.clear=function(){this.tileCache.clear()},e.prototype.refresh=function(){this.clear(),t.prototype.refresh.call(this)},e.prototype.useTile=function(t,e,i,n){},e}(B.a),J=function(t){function e(e,i){var n=t.call(this,e)||this;return n.tile=i,n}return $(e,t),e}(N.a),Q=q,tt="tileloadstart",et="tileloadend",it="tileloaderror",nt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ot=function(t){function e(e){var i=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this;return i.generateTileUrlFunction_=!e.tileUrlFunction,i.tileLoadFunction=e.tileLoadFunction,i.tileUrlFunction=e.tileUrlFunction?e.tileUrlFunction.bind(i):c,i.urls=null,e.urls?i.setUrls(e.urls):e.url&&i.setUrl(e.url),i.tileLoadingKeys_={},i}return nt(e,t),e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,i=t.target,n=Object(m.c)(i),o=i.getState();o==v.a.LOADING?(this.tileLoadingKeys_[n]=!0,e=tt):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],e=o==v.a.ERROR?it:o==v.a.LOADED?et:void 0),null!=e&&this.dispatchEvent(new J(e,i))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=u(t);this.urls=e,this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function(t,e){for(var i=t.length,n=new Array(i),o=0;o<i;++o)n[o]=h(t[o],e);return l(n)}(t,this.tileGrid),e):this.setKey(e)},e.prototype.useTile=function(t,e,i){var n=s(t,e,i);this.tileCache.containsKey(n)&&this.tileCache.get(n)},e}(Q),rt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function st(t,e){t.getImage().src=e}var at=function(t){function e(e){var i=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:st,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection})||this;return i.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,i.tileClass=void 0!==e.tileClass?e.tileClass:C,i.tileCacheForProjection={},i.tileGridForProjection={},i.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,i.renderReprojectionEdges_=!1,i}return rt(e,t),e.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},e.prototype.expireCache=function(t,e){var i=this.getTileCacheForProjection(t);for(var n in this.tileCache.expireCache(this.tileCache==i?e:{}),this.tileCacheForProjection){var o=this.tileCacheForProjection[n];o.expireCache(o==i?e:{})}},e.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!Object(_.c)(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getOpaque=function(e){return!(this.getProjection()&&e&&!Object(_.c)(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(t){var e=this.getProjection();if(!this.tileGrid||e&&!Object(_.c)(e,t)){var i=Object(m.c)(t);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=U(t)),this.tileGridForProjection[i]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();if(!e||Object(_.c)(e,t))return this.tileCache;var i=Object(m.c)(t);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new L(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]},e.prototype.createTile_=function(t,e,i,n,o,r){var s=[t,e,i],a=this.getTileCoordForTileUrlFunction(s,o),h=a?this.tileUrlFunction(a,n,o):void 0,l=new this.tileClass(s,void 0!==h?v.a.IDLE:v.a.EMPTY,void 0!==h?h:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return l.key=r,l.addEventListener(x.a.CHANGE,this.handleTileChange.bind(this)),l},e.prototype.getTile=function(t,e,i,n,o){var r=this.getProjection();if(r&&o&&!Object(_.c)(r,o)){var s=this.getTileCacheForProjection(o),h=[t,e,i],l=void 0,c=a(h);s.containsKey(c)&&(l=s.get(c));var u=this.getKey();if(l&&l.key==u)return l;var p=this.getTileGridForProjection(r),d=this.getTileGridForProjection(o),f=this.getTileCoordForTileUrlFunction(h,o),g=new F(r,p,o,d,h,f,this.getTilePixelRatio(n),this.getGutter(),function(t,e,i,n){return this.getTileInternal(t,e,i,n,r)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_);return g.key=u,l?(g.interimTile=l,g.refreshInterimChain(),s.replace(c,g)):s.set(c,g),g}return this.getTileInternal(t,e,i,n,r||o)},e.prototype.getTileInternal=function(t,e,i,n,o){var r=null,a=s(t,e,i),h=this.getKey();if(this.tileCache.containsKey(a)){if((r=this.tileCache.get(a)).key!=h){var l=r;r=this.createTile_(t,e,i,n,o,h),l.getState()==v.a.IDLE?r.interimTile=l.interimTile:r.interimTile=l,r.refreshInterimChain(),this.tileCache.replace(a,r)}}else r=this.createTile_(t,e,i,n,o,h),this.tileCache.set(a,r);return r},e.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){var i=Object(_.g)(t);if(i){var n=Object(m.c)(i);n in this.tileGridForProjection||(this.tileGridForProjection[n]=e)}},e}(ot),ht={KVP:"KVP",REST:"REST"},lt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ct=function(t){function e(e){var i=t.call(this,{extent:e.extent,origin:e.origin,origins:e.origins,resolutions:e.resolutions,tileSize:e.tileSize,tileSizes:e.tileSizes,sizes:e.sizes})||this;return i.matrixIds_=e.matrixIds,i}return lt(e,t),e.prototype.getMatrixId=function(t){return this.matrixIds_[t]},e.prototype.getMatrixIds=function(){return this.matrixIds_},e}(X);function ut(t,e){var i=[];Object.keys(e).forEach(function(t){null!==e[t]&&void 0!==e[t]&&i.push(t+"="+encodeURIComponent(e[t]))});var n=i.join("&");return(t=-1===(t=t.replace(/[?&]$/,"")).indexOf("?")?t+"?":t+"&")+n}i.d(e,"b",function(){return ft});var pt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),dt=function(t){function e(e){var i=this,n=void 0!==e.requestEncoding?e.requestEncoding:ht.KVP,o=e.tileGrid,r=e.urls;return void 0===r&&void 0!==e.url&&(r=u(e.url)),(i=t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:o,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:c,urls:r,wrapX:void 0!==e.wrapX&&e.wrapX,transition:e.transition})||this).version_=void 0!==e.version?e.version:"1.0.0",i.format_=void 0!==e.format?e.format:"image/jpeg",i.dimensions_=void 0!==e.dimensions?e.dimensions:{},i.layer_=e.layer,i.matrixSet_=e.matrixSet,i.style_=e.style,i.requestEncoding_=n,i.setKey(i.getKeyForDimensions_()),r&&r.length>0&&(i.tileUrlFunction=l(r.map(_t.bind(i)))),i}return pt(e,t),e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.setTileUrlFunction(l(t.map(_t.bind(this))),e)},e.prototype.getDimensions=function(){return this.dimensions_},e.prototype.getFormat=function(){return this.format_},e.prototype.getLayer=function(){return this.layer_},e.prototype.getMatrixSet=function(){return this.matrixSet_},e.prototype.getRequestEncoding=function(){return this.requestEncoding_},e.prototype.getStyle=function(){return this.style_},e.prototype.getVersion=function(){return this.version_},e.prototype.getKeyForDimensions_=function(){var t=0,e=[];for(var i in this.dimensions_)e[t++]=i+"-"+this.dimensions_[i];return e.join("/")},e.prototype.updateDimensions=function(t){Object(f.a)(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e}(at);e.a=dt;function ft(t,e){var i=t.Contents.Layer,n=Object(d.c)(i,function(t,i,n){return t.Identifier==e.layer});if(null===n)return null;var o,r=t.Contents.TileMatrixSet;(o=n.TileMatrixSetLink.length>1?"projection"in e?Object(d.d)(n.TileMatrixSetLink,function(t,i,n){var o=Object(d.c)(r,function(e){return e.Identifier==t.TileMatrixSet}).SupportedCRS,s=Object(_.g)(o.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))||Object(_.g)(o),a=Object(_.g)(e.projection);return s&&a?Object(_.c)(s,a):o==e.projection}):Object(d.d)(n.TileMatrixSetLink,function(t,i,n){return t.TileMatrixSet==e.matrixSet}):0)<0&&(o=0);var s=n.TileMatrixSetLink[o].TileMatrixSet,a=n.TileMatrixSetLink[o].TileMatrixSetLimits,h=n.Format[0];"format"in e&&(h=e.format),(o=Object(d.d)(n.Style,function(t,i,n){return"style"in e?t.Title==e.style:t.isDefault}))<0&&(o=0);var l=n.Style[o].Identifier,c={};"Dimension"in n&&n.Dimension.forEach(function(t,e,i){var n=t.Identifier,o=t.Default;void 0===o&&(o=t.Value[0]),c[n]=o});var u,p=t.Contents.TileMatrixSet,f=Object(d.c)(p,function(t,e,i){return t.Identifier==s}),g=f.SupportedCRS;if(g&&(u=Object(_.g)(g.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))||Object(_.g)(g)),"projection"in e){var m=Object(_.g)(e.projection);m&&(u&&!Object(_.c)(m,u)||(u=m))}var v=f.TileMatrix[0],y=28e-5*v.ScaleDenominator,b=u===Object(_.g)("EPSG:4326")?[v.TopLeftCorner[1],v.TopLeftCorner[0]]:v.TopLeftCorner,x=v.TileWidth*y,O=v.TileHeight*y,w=[b[0],b[1]-O*v.MatrixHeight,b[0]+x*v.MatrixWidth,b[1]];null===u.getExtent()&&u.setExtent(w);var T=function(t,e,i){var n=[],o=[],r=[],s=[],a=[],h=void 0!==i?i:[],l=t.SupportedCRS,c=Object(_.g)(l.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"))||Object(_.g)(l),u=c.getMetersPerUnit(),p="ne"==c.getAxisOrientation().substr(0,2);return t.TileMatrix.sort(function(t,e){return e.ScaleDenominator-t.ScaleDenominator}),t.TileMatrix.forEach(function(e){if(!(h.length>0)||Object(d.c)(h,function(i){return e.Identifier==i.TileMatrix||-1===e.Identifier.indexOf(":")&&t.Identifier+":"+e.Identifier===i.TileMatrix})){o.push(e.Identifier);var i=28e-5*e.ScaleDenominator/u,l=e.TileWidth,c=e.TileHeight;p?r.push([e.TopLeftCorner[1],e.TopLeftCorner[0]]):r.push(e.TopLeftCorner),n.push(i),s.push(l==c?l:[l,c]),a.push([e.MatrixWidth,e.MatrixHeight])}}),new ct({extent:e,origins:r,resolutions:n,matrixIds:o,tileSizes:s,sizes:a})}(f,w,a),E=[],S=e.requestEncoding;if(S=void 0!==S?S:"","OperationsMetadata"in t&&"GetTile"in t.OperationsMetadata)for(var C=t.OperationsMetadata.GetTile.DCP.HTTP.Get,P=0,I=C.length;P<I;++P)if(C[P].Constraint){var L=Object(d.c)(C[P].Constraint,function(t){return"GetEncoding"==t.name}).AllowedValues.Value;if(""===S&&(S=L[0]),S!==ht.KVP)break;Object(d.e)(L,ht.KVP)&&E.push(C[P].href)}else C[P].href&&(S=ht.KVP,E.push(C[P].href));return 0===E.length&&(S=ht.REST,n.ResourceURL.forEach(function(t){"tile"===t.resourceType&&(h=t.format,E.push(t.template))})),{urls:E,layer:e.layer,matrixSet:s,format:h,projection:u,requestEncoding:S,tileGrid:T,style:l,dimensions:c,wrapX:!1,crossOrigin:e.crossOrigin}}function _t(t){var e=this.requestEncoding_,i={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};e==ht.KVP&&Object(f.a)(i,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t=e==ht.KVP?ut(t,i):t.replace(/\{(\w+?)\}/g,function(t,e){return e.toLowerCase()in i?i[e.toLowerCase()]:t});var n=this.tileGrid,o=this.dimensions_;return function(i,r,s){if(i){var a={TileMatrix:n.getMatrixId(i[0]),TileCol:i[1],TileRow:i[2]};Object(f.a)(a,o);var h=t;return h=e==ht.KVP?ut(h,a):h.replace(/\{(\w+?)\}/g,function(t,e){return a[e]})}}}},function(t,e,i){"use strict";var n=i(1),o=i(30),r=i(25),s=i(37),a=i(12),h=i(10),l=i(6),c=i(29),u=i(7),p=i(0),d=i(15),f={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"},_=!1;function g(t,e){return function(t,e,i,n){return function(o,r,s){var a=new XMLHttpRequest;a.open("GET","function"==typeof t?t(o,r,s):t,!0),e.getType()==f.ARRAY_BUFFER&&(a.responseType="arraybuffer"),a.withCredentials=_,a.onload=function(t){if(!a.status||a.status>=200&&a.status<300){var r=e.getType(),h=void 0;r==f.JSON||r==f.TEXT?h=a.responseText:r==f.XML?(h=a.responseXML)||(h=(new DOMParser).parseFromString(a.responseText,"application/xml")):r==f.ARRAY_BUFFER&&(h=a.response),h?i.call(this,e.readFeatures(h,{extent:o,featureProjection:s}),e.readProjection(h)):n.call(this)}else n.call(this)}.bind(this),a.onerror=function(){n.call(this)}.bind(this),a.send()}}(t,e,function(t,e){"function"==typeof this.addFeatures&&this.addFeatures(t)},d.c)}function m(t,e){return[[-1/0,-1/0,1/0,1/0]]}var v,y=i(11),b=i(72),x=i(35),O="addfeature",w="changefeature",T="clear",E="removefeature",S=i(71),C=i.n(S),P=function(){function t(t){this.rbush_=new C.a(t),this.items_={}}return t.prototype.insert=function(t,e){var i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[Object(n.c)(e)]=i},t.prototype.load=function(t,e){for(var i=new Array(e.length),o=0,r=e.length;o<r;o++){var s=t[o],a=e[o],h={minX:s[0],minY:s[1],maxX:s[2],maxY:s[3],value:a};i[o]=h,this.items_[Object(n.c)(a)]=h}this.rbush_.load(i)},t.prototype.remove=function(t){var e=Object(n.c)(t),i=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(i)},t.prototype.update=function(t,e){var i=this.items_[Object(n.c)(e)],o=[i.minX,i.minY,i.maxX,i.maxY];Object(p.p)(o,t)||(this.remove(e),this.insert(t,e))},t.prototype.getAll=function(){return this.rbush_.all().map(function(t){return t.value})},t.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map(function(t){return t.value})},t.prototype.forEach=function(t){return this.forEach_(this.getAll(),t)},t.prototype.forEachInExtent=function(t,e){return this.forEach_(this.getInExtent(t),e)},t.prototype.forEach_=function(t,e){for(var i,n=0,o=t.length;n<o;n++)if(i=e(t[n]))return i;return i},t.prototype.isEmpty=function(){return Object(y.d)(this.items_)},t.prototype.clear=function(){this.rbush_.clear(),this.items_={}},t.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return Object(p.k)(e.minX,e.minY,e.maxX,e.maxY,t)},t.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]},t}(),I=(v=function(t,e){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),L=function(t){function e(e,i){var n=t.call(this,e)||this;return n.feature=i,n}return I(e,t),e}(c.a),R=function(t){function e(e){var i=this,n=e||{};(i=t.call(this,{attributions:n.attributions,projection:void 0,state:x.a.READY,wrapX:void 0===n.wrapX||n.wrapX})||this).loader_=d.c,i.format_=n.format,i.overlaps_=void 0===n.overlaps||n.overlaps,i.url_=n.url,void 0!==n.loader?i.loader_=n.loader:void 0!==i.url_&&(Object(h.a)(i.format_,7),i.loader_=g(i.url_,i.format_)),i.strategy_=void 0!==n.strategy?n.strategy:m;var r,s,a=void 0===n.useSpatialIndex||n.useSpatialIndex;return i.featuresRtree_=a?new P:null,i.loadedExtentsRtree_=new P,i.nullGeometryFeatures_={},i.idIndex_={},i.uidIndex_={},i.featureChangeKeys_={},i.featuresCollection_=null,Array.isArray(n.features)?s=n.features:n.features&&(s=(r=n.features).getArray()),a||void 0!==r||(r=new o.a(s)),void 0!==s&&i.addFeaturesInternal(s),void 0!==r&&i.bindFeaturesCollection_(r),i}return I(e,t),e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=Object(n.c)(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var i=t.getGeometry();if(i){var o=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(o,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new L(O,t))}else this.featuresCollection_&&this.featuresCollection_.remove(t)},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[Object(l.a)(e,u.a.CHANGE,this.handleFeatureChange_,this),Object(l.a)(e,s.a.PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var i=!0,n=e.getId();return void 0!==n&&(n.toString()in this.idIndex_?i=!1:this.idIndex_[n.toString()]=e),i&&(Object(h.a)(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),i},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],i=[],o=[],r=0,s=t.length;r<s;r++){var a=t[r],h=Object(n.c)(a);this.addToIndex_(h,a)&&i.push(a)}r=0;for(var l=i.length;r<l;r++){a=i[r],h=Object(n.c)(a);this.setupChangeEvents_(h,a);var c=a.getGeometry();if(c){var u=c.getExtent();e.push(u),o.push(a)}else this.nullGeometryFeatures_[h]=a}this.featuresRtree_&&this.featuresRtree_.load(e,o);r=0;for(var p=i.length;r<p;r++)this.dispatchEvent(new L(O,i[r]))},e.prototype.bindFeaturesCollection_=function(t){var e=!1;this.addEventListener(O,function(i){e||(e=!0,t.push(i.feature),e=!1)}),this.addEventListener(E,function(i){e||(e=!0,t.remove(i.feature),e=!1)}),t.addEventListener(r.a.ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)}.bind(this)),t.addEventListener(r.a.REMOVE,function(t){e||(e=!0,this.removeFeature(t.element),e=!1)}.bind(this)),this.featuresCollection_=t},e.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_){this.featureChangeKeys_[e].forEach(l.c)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_)for(var i in this.featuresRtree_.forEach(this.removeFeatureInternal.bind(this)),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[i]);this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};var n=new L(T);this.dispatchEvent(n),this.changed()},e.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},e.prototype.forEachFeatureAtCoordinateDirect=function(t,e){var i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,function(i){return i.getGeometry().intersectsCoordinate(t)?e(i):void 0})},e.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},e.prototype.forEachFeatureIntersectingExtent=function(t,e){return this.forEachFeatureInExtent(t,function(i){if(i.getGeometry().intersectsExtent(t)){var n=e(i);if(n)return n}})},e.prototype.getFeaturesCollection=function(){return this.featuresCollection_},e.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray():this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Object(y.d)(this.nullGeometryFeatures_)||Object(a.b)(t,Object(y.c)(this.nullGeometryFeatures_))),t},e.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,function(t){e.push(t)}),e},e.prototype.getFeaturesInExtent=function(t){return this.featuresRtree_?this.featuresRtree_.getInExtent(t):this.featuresCollection_?this.featuresCollection_.getArray():[]},e.prototype.getClosestFeatureToCoordinate=function(t,e){var i=t[0],n=t[1],o=null,r=[NaN,NaN],s=1/0,a=[-1/0,-1/0,1/0,1/0],h=e||d.b;return this.featuresRtree_.forEachInExtent(a,function(t){if(h(t)){var e=t.getGeometry(),l=s;if((s=e.closestPointXY(i,n,r,s))<l){o=t;var c=Math.sqrt(s);a[0]=i-c,a[1]=n-c,a[2]=i+c,a[3]=n+c}}}),o},e.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},e.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getFeatureByUid=function(t){var e=this.uidIndex_[t];return void 0!==e?e:null},e.prototype.getFormat=function(){return this.format_},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.getUrl=function(){return this.url_},e.prototype.handleFeatureChange_=function(t){var e=t.target,i=Object(n.c)(e),o=e.getGeometry();if(o){var r=o.getExtent();i in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[i],this.featuresRtree_&&this.featuresRtree_.insert(r,e)):this.featuresRtree_&&this.featuresRtree_.update(r,e)}else i in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[i]=e);var s=e.getId();if(void 0!==s){var a=s.toString();this.idIndex_[a]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[a]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[i]=e;this.changed(),this.dispatchEvent(new L(w,e))},e.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:Object(n.c)(t)in this.uidIndex_},e.prototype.isEmpty=function(){return this.featuresRtree_.isEmpty()&&Object(y.d)(this.nullGeometryFeatures_)},e.prototype.loadFeatures=function(t,e,i){var n=this.loadedExtentsRtree_,o=this.strategy_(t,e);this.loading=!1;for(var r=function(t,r){var a=o[t];n.forEachInExtent(a,function(t){return Object(p.g)(t.extent,a)})||(s.loader_.call(s,a,e,i),n.insert(a,{extent:a.slice()}),s.loading=s.loader_!==d.c)},s=this,a=0,h=o.length;a<h;++a)r(a)},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),t.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var e,i=this.loadedExtentsRtree_;i.forEachInExtent(t,function(i){if(Object(p.p)(i.extent,t))return e=i,!0}),e&&i.remove(e)},e.prototype.removeFeature=function(t){var e=Object(n.c)(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t),this.changed()},e.prototype.removeFeatureInternal=function(t){var e=Object(n.c)(t);this.featureChangeKeys_[e].forEach(l.c),delete this.featureChangeKeys_[e];var i=t.getId();void 0!==i&&delete this.idIndex_[i.toString()],delete this.uidIndex_[e],this.dispatchEvent(new L(E,t))},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){Object(h.a)(this.format_,7),this.setLoader(g(t,this.format_))},e}(b.a);e.a=R},,function(t,e,i){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=function(t,e){var i=t[1]||"",n=t[3];if(!n)return i;if(e&&"function"==typeof btoa){var o=(s=n,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),h="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(h," */")),r=n.sources.map(function(t){return"/*# sourceURL=".concat(n.sourceRoot).concat(t," */")});return[i].concat(r).concat([o]).join("\n")}var s,a,h;return[i].join("\n")}(e,t);return e[2]?"@media ".concat(e[2],"{").concat(i,"}"):i}).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var r=this[o][0];null!=r&&(n[r]=!0)}for(var s=0;s<t.length;s++){var a=t[s];null!=a[0]&&n[a[0]]||(i&&!a[2]?a[2]=i:i&&(a[2]="(".concat(a[2],") and (").concat(i,")")),e.push(a))}},e}},function(t,e,i){var n,o,r={},s=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=n.apply(this,arguments)),o}),a=function(t){var e={};return function(t,i){if("function"==typeof t)return t();if(void 0===e[t]){var n=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,i);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),h=null,l=0,c=[],u=i(109);function p(t,e){for(var i=0;i<t.length;i++){var n=t[i],o=r[n.id];if(o){o.refs++;for(var s=0;s<o.parts.length;s++)o.parts[s](n.parts[s]);for(;s<n.parts.length;s++)o.parts.push(v(n.parts[s],e))}else{var a=[];for(s=0;s<n.parts.length;s++)a.push(v(n.parts[s],e));r[n.id]={id:n.id,refs:1,parts:a}}}}function d(t,e){for(var i=[],n={},o=0;o<t.length;o++){var r=t[o],s=e.base?r[0]+e.base:r[0],a={css:r[1],media:r[2],sourceMap:r[3]};n[s]?n[s].parts.push(a):i.push(n[s]={id:s,parts:[a]})}return i}function f(t,e){var i=a(t.insertInto);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=c[c.length-1];if("top"===t.insertAt)n?n.nextSibling?i.insertBefore(e,n.nextSibling):i.appendChild(e):i.insertBefore(e,i.firstChild),c.push(e);else if("bottom"===t.insertAt)i.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=a(t.insertAt.before,i);i.insertBefore(e,o)}}function _(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=c.indexOf(t);e>=0&&c.splice(e,1)}function g(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var n=function(){0;return i.nc}();n&&(t.attrs.nonce=n)}return m(e,t.attrs),f(t,e),e}function m(t,e){Object.keys(e).forEach(function(i){t.setAttribute(i,e[i])})}function v(t,e){var i,n,o,r;if(e.transform&&t.css){if(!(r="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=r}if(e.singleton){var s=l++;i=h||(h=g(e)),n=x.bind(null,i,s,!1),o=x.bind(null,i,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",m(e,t.attrs),f(t,e),e}(e),n=function(t,e,i){var n=i.css,o=i.sourceMap,r=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||r)&&(n=u(n));o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var s=new Blob([n],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,i,e),o=function(){_(i),i.href&&URL.revokeObjectURL(i.href)}):(i=g(e),n=function(t,e){var i=e.css,n=e.media;n&&t.setAttribute("media",n);if(t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}.bind(null,i),o=function(){_(i)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=s()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var i=d(t,e);return p(i,e),function(t){for(var n=[],o=0;o<i.length;o++){var s=i[o];(a=r[s.id]).refs--,n.push(a)}t&&p(d(t,e),e);for(o=0;o<n.length;o++){var a;if(0===(a=n[o]).refs){for(var h=0;h<a.parts.length;h++)a.parts[h]();delete r[a.id]}}}};var y,b=(y=[],function(t,e){return y[t]=e,y.filter(Boolean).join("\n")});function x(t,e,i,n){var o=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=b(e,o);else{var r=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}},function(t,e,i){"use strict";var n=i(64),o=i(46),r=i(55),s=i(31),a=function(t){var e=0;(t=t||{}).stroke&&(e=t.stroke.getWidth()),o.a.call(this,{radius:t.radius,fill:t.fill,rotation:t.rotation,rotateWithView:t.rotateWithView}),"number"==typeof t.opacity&&this.setOpacity(t.opacity),this.color_=t.color,this.fontSize_=t.fontSize||1,this.fontStyle_=t.fontStyle||"",this.stroke_=t.stroke,this.fill_=t.fill,this.radius_=t.radius-e,this.form_=t.form||"none",this.gradient_=t.gradient,this.offset_=[t.offsetX?t.offsetX:0,t.offsetY?t.offsetY:0],this.glyph_=this.getGlyph(t.glyph)||"",this.renderMarker_()};Object(n.a)(a,o.a),r.a.prototype.getImagePNG=function(){var t=this.getImage();if(!t)return!1;try{return t.toDataURL("image/png")}catch(t){return!1}},a.prototype.defs={fonts:{},glyphs:{}},a.addDefs=function(t,e){var i=t;if("string"==typeof t&&(i={font:t,name:t,copyright:""}),i.font&&"string"==typeof i.font){var n=i.font;for(var o in a.prototype.defs.fonts[n]=i,e){var r=e[o];"string"==typeof r&&1==r.length&&(r={char:r}),a.prototype.defs.glyphs[o]={font:i.font,char:r.char||""+String.fromCharCode(r.code)||"",theme:r.theme||i.name,name:r.name||o,search:r.search||""}}}else console.log("bad font def")},a.prototype.clone=function(){var t=new a({glyph:"",color:this.color_,fontSize:this.fontSize_,fontStyle:this.fontStyle_,stroke:this.stroke_,fill:this.fill_,radius:this.radius_+(this.stroke_?this.stroke_.getWidth():0),form:this.form_,gradient:this.gradient_,offsetX:this.offset_[0],offsetY:this.offset_[1],opacity:this.getOpacity(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()});return t.setScale(this.getScale()),t.glyph_=this.glyph_,t.renderMarker_(),t},a.prototype.getFill=function(){return this.fill_},a.prototype.getStroke=function(){return this.stroke_},a.prototype.getGlyph=function(t){return t?a.prototype.defs.glyphs[t]||{font:"none",char:t.charAt(0),theme:"none",name:"none",search:""}:this.glyph_},a.prototype.getGlyphName=function(){for(var t in a.prototype.defs.glyphs)if(a.prototype.defs.glyphs[t]===this.glyph_)return t;return""},a.prototype.getFontInfo=function(t){return a.prototype.defs.fonts[t.font]},a.prototype.renderMarker_=function(){var t,e=0;this.stroke_&&(t=Object(s.b)(this.stroke_.getColor()),e=this.stroke_.getWidth());var i=this.getImage(),n={strokeStyle:t,strokeWidth:e,size:i.width},o=i.getContext("2d");o.clearRect(0,0,i.width,i.height),this.drawMarker_(n,o,0,0);var r=this.getAnchor();r[0]=i.width/2-this.offset_[0],r[1]=i.width/2-this.offset_[1]},a.prototype.drawPath_=function(t,e){var i=2*this.radius_+t.strokeWidth+1,n=t.strokeWidth/2,o=t.size/2,r={fac:1,posX:t.size/2,posY:t.size/2};switch(e.lineJoin="round",e.beginPath(),this.form_){case"none":r.fac=1;break;case"circle":case"ban":e.arc(o,o,i/2,0,2*Math.PI,!0);break;case"poi":e.arc(o,o-.4*this.radius_,.6*this.radius_,.15*Math.PI,.85*Math.PI,!0),e.lineTo(o-.89*.05*i,(.95+.45*.05)*i+n),e.arc(o,.95*i+n,.05*i,.85*Math.PI,.15*Math.PI,!0),r={fac:.45,posX:o,posY:o-.35*this.radius_};break;case"bubble":e.arc(o,o-.2*this.radius_,.8*this.radius_,.4*Math.PI,.6*Math.PI,!0),e.lineTo(.5*i+n,i+n),r={fac:.7,posX:o,posY:o-.2*this.radius_};break;case"marker":e.arc(o,o-.2*this.radius_,.8*this.radius_,.25*Math.PI,.75*Math.PI,!0),e.lineTo(.5*i+n,i+n),r={fac:.7,posX:o,posY:o-.2*this.radius_};break;case"coma":e.moveTo(o+.8*this.radius_,o-.2*this.radius_),e.quadraticCurveTo(.95*i+n,.75*i+n,.5*i+n,i+n),e.arc(o,o-.2*this.radius_,.8*this.radius_,.45*Math.PI,0,!1),r={fac:.7,posX:o,posY:o-.2*this.radius_};break;default:var s;switch(this.form_){case"shield":s=[.05,0,.95,0,.95,.8,.5,1,.05,.8,.05,0],r.posY=.45*i+n;break;case"blazon":s=[.1,0,.9,0,.9,.8,.6,.8,.5,1,.4,.8,.1,.8,.1,0],r.fac=.8,r.posY=.4*i+n;break;case"bookmark":s=[.05,0,.95,0,.95,1,.5,.8,.05,1,.05,0],r.fac=.9,r.posY=.4*i+n;break;case"hexagon":s=[.05,.2,.5,0,.95,.2,.95,.8,.5,1,.05,.8,.05,.2],r.fac=.9,r.posY=.5*i+n;break;case"diamond":s=[.25,0,.75,0,1,.2,1,.4,.5,1,0,.4,0,.2,.25,0],r.fac=.75,r.posY=.35*i+n;break;case"triangle":s=[0,0,1,0,.5,1,0,0],r.fac=.6,r.posY=.3*i+n;break;case"sign":s=[.5,.05,1,.95,0,.95,.5,.05],r.fac=.7,r.posY=.65*i+n;break;case"lozenge":s=[.5,0,1,.5,.5,1,0,.5,.5,0],r.fac=.7;break;case"square":default:s=[0,0,1,0,1,1,0,1,0,0]}for(var a=0;a<s.length;a+=2)e.lineTo(s[a]*i+n,s[a+1]*i+n)}return e.closePath(),r},a.prototype.drawMarker_=function(t,e,i,n){var o=this.fill_?this.fill_.getColor():"#000",r=this.stroke_?this.stroke_.getColor():"#000";"none"==this.form_&&this.stroke_&&this.fill_&&(r=this.fill_.getColor(),o=this.stroke_.getColor()),e.setTransform(1,0,0,1,0,0),e.translate(i,n);var a=this.drawPath_(t,e);if(this.fill_){if(this.gradient_&&"none"!=this.form_){var h=e.createLinearGradient(0,0,t.size/2,t.size);h.addColorStop(1,Object(s.b)(o)),h.addColorStop(0,Object(s.b)(r)),e.fillStyle=h}else e.fillStyle=Object(s.b)(o);e.fill()}if(this.stroke_&&t.strokeWidth&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,e.stroke()),this.glyph_.char){e.font=this.fontStyle_+" "+2*a.fac*this.radius_*this.fontSize_+"px "+this.glyph_.font,e.strokeStyle=e.fillStyle,e.lineWidth=t.strokeWidth*("none"==this.form_?2:1),e.fillStyle=Object(s.b)(this.color_||r),e.textAlign="center",e.textBaseline="middle";var l=this.glyph_.char;t.strokeWidth&&"transparent"!=r&&e.strokeText(l,a.posX,a.posY),e.fillText(l,a.posX,a.posY)}if("ban"==this.form_&&this.stroke_&&t.strokeWidth){e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth;var c=this.radius_+t.strokeWidth,u=this.radius_*Math.cos(Math.PI/4);e.moveTo(c+u,c-u),e.lineTo(c-u,c+u),e.stroke()}},a.prototype.getChecksum=function(){var t=null!==this.stroke_?this.stroke_.getChecksum():"-",e=null!==this.fill_?this.fill_.getChecksum():"-";if(null===this.checksums_||t!=this.checksums_[1]||e!=this.checksums_[2]||this.radius_!=this.checksums_[3]||this.form_+"-"+this.glyphs_!=this.checksums_[4]){var i="c"+t+e+(void 0!==this.radius_?this.radius_.toString():"-")+this.form_+"-"+this.glyphs_;this.checksums_=[i,t,e,this.radius_,this.form_+"-"+this.glyphs_]}return this.checksums_[0]},e.a=a},function(t,e,i){"use strict";var n=i(64),o=i(33),r=i(46),s=function(t){(t=t||{}).fill||(t.fill=new o.a({color:"rgba(0,0,0,0.5)"})),r.a.call(this,{radius:t.radius,fill:t.fill}),this.fill_=t.fill,this.radius_=t.radius,this.blur_=0===t.blur?0:t.blur||t.radius/3,this.offset_=[t.offsetX?t.offsetX:0,t.offsetY?t.offsetY:0],this.renderShadow_()};Object(n.a)(s,r.a),s.prototype.clone=function(){var t=new s({fill:this.fill_,radius:this.radius_,blur:this.blur_,offsetX:this.offset_[0],offsetY:this.offset_[1]});return t.setScale(this.getScale()),t.setOpacity(this.getOpacity()),t},s.prototype.renderShadow_=function(){var t=this.radius_,e=this.getImage();[e.width,e.height][1]=t;var i=e.getContext("2d");i.beginPath(),i.clearRect(0,0,e.width,e.height),i.scale(1,.5),i.arc(t,-t,t-this.blur_,0,2*Math.PI,!1),i.fillStyle="#000",i.shadowColor=this.fill_.getColor(),i.shadowBlur=.7*this.blur_,i.shadowOffsetX=0,i.shadowOffsetY=1.5*t,i.closePath(),i.fill(),i.shadowColor="transparent";var n=this.getAnchor();n[0]=e.width/2-this.offset_[0],n[1]=e.height/2-this.offset_[1]},s.prototype.getChecksum=function(){var t=null!==this.stroke_?this.stroke_.getChecksum():"-",e=null!==this.fill_?this.fill_.getChecksum():"-";if(null===this.checksums_||t!=this.checksums_[1]||e!=this.checksums_[2]||this.radius_!=this.checksums_[3]||this.form_+"-"+this.glyphs_!=this.checksums_[4]){var i="c"+t+e+(void 0!==this.radius_?this.radius_.toString():"-")+this.form_+"-"+this.glyphs_;this.checksums_=[i,t,e,this.radius_,this.form_+"-"+this.glyphs_]}return this.checksums_[0]},e.a=s},function(t,e,i){"use strict";var n=i(33),o=i(73),r="#333",s=function(){function t(t){var e=t||{};this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.text_=e.text,this.textAlign_=e.textAlign,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new n.a({color:r}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:o.a.POINT,this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding}return t.prototype.clone=function(){return new t({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:this.getScale(),text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()})},t.prototype.getOverflow=function(){return this.overflow_},t.prototype.getFont=function(){return this.font_},t.prototype.getMaxAngle=function(){return this.maxAngle_},t.prototype.getPlacement=function(){return this.placement_},t.prototype.getOffsetX=function(){return this.offsetX_},t.prototype.getOffsetY=function(){return this.offsetY_},t.prototype.getFill=function(){return this.fill_},t.prototype.getRotateWithView=function(){return this.rotateWithView_},t.prototype.getRotation=function(){return this.rotation_},t.prototype.getScale=function(){return this.scale_},t.prototype.getStroke=function(){return this.stroke_},t.prototype.getText=function(){return this.text_},t.prototype.getTextAlign=function(){return this.textAlign_},t.prototype.getTextBaseline=function(){return this.textBaseline_},t.prototype.getBackgroundFill=function(){return this.backgroundFill_},t.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},t.prototype.getPadding=function(){return this.padding_},t.prototype.setOverflow=function(t){this.overflow_=t},t.prototype.setFont=function(t){this.font_=t},t.prototype.setMaxAngle=function(t){this.maxAngle_=t},t.prototype.setOffsetX=function(t){this.offsetX_=t},t.prototype.setOffsetY=function(t){this.offsetY_=t},t.prototype.setPlacement=function(t){this.placement_=t},t.prototype.setRotateWithView=function(t){this.rotateWithView_=t},t.prototype.setFill=function(t){this.fill_=t},t.prototype.setRotation=function(t){this.rotation_=t},t.prototype.setScale=function(t){this.scale_=t},t.prototype.setStroke=function(t){this.stroke_=t},t.prototype.setText=function(t){this.text_=t},t.prototype.setTextAlign=function(t){this.textAlign_=t},t.prototype.setTextBaseline=function(t){this.textBaseline_=t},t.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},t.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},t.prototype.setPadding=function(t){this.padding_=t},t}();e.a=s},function(t,e,i){"use strict";var n,o=i(0),r=i(3),s=i(41),a=i(45),h=i(24),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),c=function(t){function e(e,i,n){var o=t.call(this)||this;if(void 0!==n&&void 0===i)o.setFlatCoordinates(n,e);else{var r=i||0;o.setCenterAndRadius(e,r,n)}return o}return l(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),void 0,this.layout)},e.prototype.closestPointXY=function(t,e,i,n){var o=this.flatCoordinates,r=t-o[0],s=e-o[1],a=r*r+s*s;if(a<n){if(0===a)for(var h=0;h<this.stride;++h)i[h]=o[h];else{var l=this.getRadius()/Math.sqrt(a);i[0]=o[0]+l*r,i[1]=o[1]+l*s;for(h=2;h<this.stride;++h)i[h]=o[h]}return i.length=this.stride,a}return n},e.prototype.containsXY=function(t,e){var i=this.flatCoordinates,n=t-i[0],o=e-i[1];return n*n+o*o<=this.getRadiusSquared_()},e.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.computeExtent=function(t){var e=this.flatCoordinates,i=e[this.stride]-e[0];return Object(o.k)(e[0]-i,e[1]-i,e[0]+i,e[1]+i,t)},e.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},e.prototype.getRadiusSquared_=function(){var t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],e=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+e*e},e.prototype.getType=function(){return r.a.CIRCLE},e.prototype.intersectsExtent=function(t){var e=this.getExtent();if(Object(o.F)(t,e)){var i=this.getCenter();return t[0]<=i[0]&&t[2]>=i[0]||(t[1]<=i[1]&&t[3]>=i[1]||Object(o.t)(t,this.intersectsCoordinate.bind(this)))}return!1},e.prototype.setCenter=function(t){var e=this.stride,i=this.flatCoordinates[e]-this.flatCoordinates[0],n=t.slice();n[e]=n[0]+i;for(var o=1;o<e;++o)n[e+o]=t[o];this.setFlatCoordinates(this.layout,n),this.changed()},e.prototype.setCenterAndRadius=function(t,e,i){this.setLayout(i,t,0),this.flatCoordinates||(this.flatCoordinates=[]);var n=this.flatCoordinates,o=Object(a.a)(n,0,t,this.stride);n[o++]=n[0]+e;for(var r=1,s=this.stride;r<s;++r)n[o++]=n[r];n.length=o,this.changed()},e.prototype.getCoordinates=function(){return null},e.prototype.setCoordinates=function(t,e){},e.prototype.setRadius=function(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()},e.prototype.rotate=function(t,e){var i=this.getCenter(),n=this.getStride();this.setCenter(Object(h.a)(i,0,i.length,n,t,e,i)),this.changed()},e.prototype.translate=function(t,e){var i=this.getCenter(),n=this.getStride();this.setCenter(Object(h.d)(i,0,i.length,n,t,e,i)),this.changed()},e}(s.a);c.prototype.transform,e.a=c},function(t,e,i){"use strict";var n,o=i(30),r=i(25),s=i(29),a=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h=function(t){function e(e,i,n){var o=t.call(this,e)||this;return o.map=i,o.frameState=void 0!==n?n:null,o}return a(e,t),e}(s.a),l=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),c=function(t){function e(e,i,n,o,r){var s=t.call(this,e,i,r)||this;return s.originalEvent=n,s.pixel_=null,s.coordinate_=null,s.dragging=void 0!==o&&o,s}return l(e,t),Object.defineProperty(e.prototype,"pixel",{get:function(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_},set:function(t){this.pixel_=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"coordinate",{get:function(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_},set:function(t){this.coordinate_=t},enumerable:!0,configurable:!0}),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){t.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()},e}(h),u=(i(120),i(18)),p=i(7),d={SINGLECLICK:"singleclick",CLICK:p.a.CLICK,DBLCLICK:p.a.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},f=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),_=function(t){function e(e,i,n,o,r){var s=t.call(this,e,i,n,o,r)||this;return s.pointerEvent=n,s}return f(e,t),e}(c),g=i(6),m=i(36),v={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},y=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),b=function(t){function e(e,i){var n=t.call(this,e)||this;n.map_=e,n.clickTimeoutId_,n.dragging_=!1,n.dragListenerKeys_=[],n.moveTolerance_=i?i*u.a:u.a,n.down_=null;var o=n.map_.getViewport();return n.activePointers_=0,n.trackedTouches_={},n.element_=o,n.pointerdownListenerKey_=Object(g.a)(o,v.POINTERDOWN,n.handlePointerDown_,n),n.originalPointerMoveEvent_,n.relayedListenerKey_=Object(g.a)(o,v.POINTERMOVE,n.relayEvent_,n),n.boundHandleTouchMove_=n.handleTouchMove_.bind(n),n.element_.addEventListener(p.a.TOUCHMOVE,n.boundHandleTouchMove_,!!u.e&&{passive:!1}),n}return y(e,t),e.prototype.emulateClick_=function(t){var e=new _(d.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new _(d.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new _(d.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t;e.type==d.POINTERUP||e.type==d.POINTERCANCEL?delete this.trackedTouches_[e.pointerId]:e.type==d.POINTERDOWN&&(this.trackedTouches_[e.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new _(d.POINTERUP,this.map_,t);this.dispatchEvent(e),e.propagationStopped||this.dragging_||!this.isMouseActionButton_(t)||this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(g.c),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)},e.prototype.isMouseActionButton_=function(t){return 0===t.button},e.prototype.handlePointerDown_=function(t){this.updateActivePointers_(t);var e=new _(d.POINTERDOWN,this.map_,t);this.dispatchEvent(e),this.down_=t,0===this.dragListenerKeys_.length&&this.dragListenerKeys_.push(Object(g.a)(document,d.POINTERMOVE,this.handlePointerMove_,this),Object(g.a)(document,d.POINTERUP,this.handlePointerUp_,this),Object(g.a)(this.element_,d.POINTERCANCEL,this.handlePointerUp_,this))},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.dragging_=!0;var e=new _(d.POINTERDRAG,this.map_,t,this.dragging_);this.dispatchEvent(e)}},e.prototype.relayEvent_=function(t){this.originalPointerMoveEvent_=t;var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new _(t.type,this.map_,t,e))},e.prototype.handleTouchMove_=function(t){this.originalPointerMoveEvent_&&!this.originalPointerMoveEvent_.defaultPrevented||t.preventDefault()},e.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Object(g.c)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(p.a.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Object(g.c)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(g.c),this.dragListenerKeys_.length=0,this.element_=null,t.prototype.disposeInternal.call(this)},e}(m.a),x=i(47),O={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},w=i(39),T=i(13),E=i(37),S=i(9),C=i(10),P=i(11),I=1/0,L=function(){function t(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return t.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Object(P.b)(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,i=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var n=this.keyFunction_(i);return delete this.queuedElements_[n],i},t.prototype.enqueue=function(t){Object(C.a)(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=I&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},t.prototype.getCount=function(){return this.elements_.length},t.prototype.getLeftChildIndex_=function(t){return 2*t+1},t.prototype.getRightChildIndex_=function(t){return 2*t+2},t.prototype.getParentIndex_=function(t){return t-1>>1},t.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},t.prototype.isEmpty=function(){return 0===this.elements_.length},t.prototype.isKeyQueued=function(t){return t in this.queuedElements_},t.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},t.prototype.siftUp_=function(t){for(var e=this.elements_,i=this.priorities_,n=e.length,o=e[t],r=i[t],s=t;t<n>>1;){var a=this.getLeftChildIndex_(t),h=this.getRightChildIndex_(t),l=h<n&&i[h]<i[a]?h:a;e[t]=e[l],i[t]=i[l],t=l}e[t]=o,i[t]=r,this.siftDown_(s,t)},t.prototype.siftDown_=function(t,e){for(var i=this.elements_,n=this.priorities_,o=i[e],r=n[e];e>t;){var s=this.getParentIndex_(e);if(!(n[s]>r))break;i[e]=i[s],n[e]=n[s],e=s}i[e]=o,n[e]=r},t.prototype.reprioritize=function(){var t,e,i,n=this.priorityFunction_,o=this.elements_,r=this.priorities_,s=0,a=o.length;for(e=0;e<a;++e)(i=n(t=o[e]))==I?delete this.queuedElements_[this.keyFunction_(t)]:(r[s]=i,o[s++]=t);o.length=s,r.length=s,this.heapify_()},t}(),R=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),M=function(t){function e(e,i){var n=t.call(this,function(t){return e.apply(null,t)},function(t){return t[0].getKey()})||this;return n.boundHandleTileChange_=n.handleTileChange.bind(n),n.tileChangeCallback_=i,n.tilesLoading_=0,n.tilesLoadingKeys_={},n}return R(e,t),e.prototype.enqueue=function(e){var i=t.prototype.enqueue.call(this,e);i&&e[0].addEventListener(p.a.CHANGE,this.boundHandleTileChange_);return i},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var e=t.target,i=e.getState();if(e.hifi&&i===S.a.LOADED||i===S.a.ERROR||i===S.a.EMPTY){e.removeEventListener(p.a.CHANGE,this.boundHandleTileChange_);var n=e.getKey();n in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[n],--this.tilesLoading_),this.tileChangeCallback_()}},e.prototype.loadMoreTiles=function(t,e){for(var i,n,o=0;this.tilesLoading_<t&&o<e&&this.getCount()>0;)n=(i=this.dequeue()[0]).getKey(),i.getState()!==S.a.IDLE||n in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[n]=!0,++this.tilesLoading_,++o,i.load())},e}(L);var j=i(74),k=i(21),A=i(14),D=i(0),F=i(15),N=i(1),z=i(67),B=i(35),G=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Z={LAYERS:"layers"},W=function(t){function e(e){var i=this,n=e||{},r=Object(P.a)({},n);delete r.layers;var s=n.layers;return(i=t.call(this,r)||this).layersListenerKeys_=[],i.listenerKeys_={},i.addEventListener(Object(T.b)(Z.LAYERS),i.handleLayersChanged_),s?Array.isArray(s)?s=new o.a(s.slice(),{unique:!0}):Object(C.a)("function"==typeof s.getArray,43):s=new o.a(void 0,{unique:!0}),i.setLayers(s),i}return G(e,t),e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(g.c),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(Object(g.a)(t,r.a.ADD,this.handleLayersAdd_,this),Object(g.a)(t,r.a.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(g.c);Object(P.b)(this.listenerKeys_);for(var i=t.getArray(),n=0,o=i.length;n<o;n++){var s=i[n];this.listenerKeys_[Object(N.c)(s)]=[Object(g.a)(s,E.a.PROPERTYCHANGE,this.handleLayerChange_,this),Object(g.a)(s,p.a.CHANGE,this.handleLayerChange_,this)]}this.changed()},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.listenerKeys_[Object(N.c)(e)]=[Object(g.a)(e,E.a.PROPERTYCHANGE,this.handleLayerChange_,this),Object(g.a)(e,p.a.CHANGE,this.handleLayerChange_,this)],this.changed()},e.prototype.handleLayersRemove_=function(t){var e=t.element,i=Object(N.c)(e);this.listenerKeys_[i].forEach(g.c),delete this.listenerKeys_[i],this.changed()},e.prototype.getLayers=function(){return this.get(Z.LAYERS)},e.prototype.setLayers=function(t){this.set(Z.LAYERS,t)},e.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach(function(t){t.getLayersArray(e)}),e},e.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],i=e.length;this.getLayers().forEach(function(t){t.getLayerStatesArray(e)});for(var n=this.getLayerState(),o=i,r=e.length;o<r;o++){var s=e[o];s.opacity*=n.opacity,s.visible=s.visible&&n.visible,s.maxResolution=Math.min(s.maxResolution,n.maxResolution),s.minResolution=Math.max(s.minResolution,n.minResolution),s.minZoom=Math.max(s.minZoom,n.minZoom),s.maxZoom=Math.min(s.maxZoom,n.maxZoom),void 0!==n.extent&&(void 0!==s.extent?s.extent=Object(D.B)(s.extent,n.extent):s.extent=n.extent)}return e},e.prototype.getSourceState=function(){return B.a.READY},e}(z.a),Y=i(34),V=i(8),X=i(2),U=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();var K=function(t){function e(e){var i=t.call(this)||this,n=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var i,n,r,s={},a=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new W({layers:t.layers});s[O.LAYERGROUP]=a,s[O.TARGET]=t.target,s[O.VIEW]=void 0!==t.view?t.view:new j.a,void 0!==t.controls&&(Array.isArray(t.controls)?i=new o.a(t.controls.slice()):(Object(C.a)("function"==typeof t.controls.getArray,47),i=t.controls));void 0!==t.interactions&&(Array.isArray(t.interactions)?n=new o.a(t.interactions.slice()):(Object(C.a)("function"==typeof t.interactions.getArray,48),n=t.interactions));void 0!==t.overlays?Array.isArray(t.overlays)?r=new o.a(t.overlays.slice()):(Object(C.a)("function"==typeof t.overlays.getArray,49),r=t.overlays):r=new o.a;return{controls:i,interactions:n,keyboardEventTarget:e,overlays:r,values:s}}(e);i.boundHandleBrowserEvent_=i.handleBrowserEvent.bind(i),i.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,i.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:u.a,i.postRenderTimeoutHandle_,i.animationDelayKey_,i.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}.bind(i),i.coordinateToPixelTransform_=Object(V.c)(),i.pixelToCoordinateTransform_=Object(V.c)(),i.frameIndex_=0,i.frameState_=null,i.previousExtent_=null,i.viewPropertyListenerKey_=null,i.viewChangeListenerKey_=null,i.layerGroupPropertyListenerKeys_=null,i.viewport_=document.createElement("div"),i.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),i.viewport_.style.position="relative",i.viewport_.style.overflow="hidden",i.viewport_.style.width="100%",i.viewport_.style.height="100%",i.overlayContainer_=document.createElement("div"),i.overlayContainer_.style.position="absolute",i.overlayContainer_.style.zIndex="0",i.overlayContainer_.style.width="100%",i.overlayContainer_.style.height="100%",i.overlayContainer_.className="ol-overlaycontainer",i.viewport_.appendChild(i.overlayContainer_),i.overlayContainerStopEvent_=document.createElement("div"),i.overlayContainerStopEvent_.style.position="absolute",i.overlayContainerStopEvent_.style.zIndex="0",i.overlayContainerStopEvent_.style.width="100%",i.overlayContainerStopEvent_.style.height="100%",i.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",i.viewport_.appendChild(i.overlayContainerStopEvent_),i.mapBrowserEventHandler_=new b(i,e.moveTolerance);var s=i.handleMapBrowserEvent.bind(i);for(var a in d)i.mapBrowserEventHandler_.addEventListener(d[a],s);i.keyboardEventTarget_=n.keyboardEventTarget,i.keyHandlerKeys_=null;var h=i.handleBrowserEvent.bind(i);return i.viewport_.addEventListener(p.a.CONTEXTMENU,h,!1),i.viewport_.addEventListener(p.a.WHEEL,h,!!u.e&&{passive:!1}),i.controls=n.controls||new o.a,i.interactions=n.interactions||new o.a,i.overlays_=n.overlays,i.overlayIdIndex_={},i.renderer_=null,i.handleResize_,i.postRenderFunctions_=[],i.tileQueue_=new M(i.getTilePriority.bind(i),i.handleTileChange_.bind(i)),i.addEventListener(Object(T.b)(O.LAYERGROUP),i.handleLayerGroupChanged_),i.addEventListener(Object(T.b)(O.VIEW),i.handleViewChanged_),i.addEventListener(Object(T.b)(O.SIZE),i.handleSizeChanged_),i.addEventListener(Object(T.b)(O.TARGET),i.handleTargetChanged_),i.setProperties(n.values),i.controls.forEach(function(t){t.setMap(this)}.bind(i)),i.controls.addEventListener(r.a.ADD,function(t){t.element.setMap(this)}.bind(i)),i.controls.addEventListener(r.a.REMOVE,function(t){t.element.setMap(null)}.bind(i)),i.interactions.forEach(function(t){t.setMap(this)}.bind(i)),i.interactions.addEventListener(r.a.ADD,function(t){t.element.setMap(this)}.bind(i)),i.interactions.addEventListener(r.a.REMOVE,function(t){t.element.setMap(null)}.bind(i)),i.overlays_.forEach(i.addOverlayInternal_.bind(i)),i.overlays_.addEventListener(r.a.ADD,function(t){this.addOverlayInternal_(t.element)}.bind(i)),i.overlays_.addEventListener(r.a.REMOVE,function(t){var e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)}.bind(i)),i}return U(e,t),e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){this.getLayerGroup().getLayers().push(t)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.mapBrowserEventHandler_.dispose(),this.viewport_.removeEventListener(p.a.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(p.a.WHEEL,this.boundHandleBrowserEvent_),void 0!==this.handleResize_&&(removeEventListener(p.a.RESIZE,this.handleResize_,!1),this.handleResize_=void 0),this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,i){if(this.frameState_){var n=this.getCoordinateFromPixelInternal(t),o=void 0!==(i=void 0!==i?i:{}).hitTolerance?i.hitTolerance*this.frameState_.pixelRatio:0,r=void 0!==i.layerFilter?i.layerFilter:F.b,s=!1!==i.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,o,s,e,null,r,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var i=[];return this.forEachFeatureAtPixel(t,function(t){i.push(t)},e),i},e.prototype.forEachLayerAtPixel=function(t,e,i){if(this.frameState_){var n=i||{},o=void 0!==n.hitTolerance?n.hitTolerance*this.frameState_.pixelRatio:0,r=n.layerFilter||F.b;return this.renderer_.forEachLayerAtPixel(t,this.frameState_,o,e,r)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_)return!1;var i=this.getCoordinateFromPixelInternal(t),n=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:F.b,o=void 0!==e.hitTolerance?e.hitTolerance*this.frameState_.pixelRatio:0,r=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,o,r,n,null)},e.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},e.prototype.getEventCoordinateInternal=function(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))},e.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),i="changedTouches"in t?t.changedTouches[0]:t;return[i.clientX-e.left,i.clientY-e.top]},e.prototype.getTarget=function(){return this.get(O.TARGET)},e.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},e.prototype.getCoordinateFromPixel=function(t){return Object(X.l)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())},e.prototype.getCoordinateFromPixelInternal=function(t){var e=this.frameState_;return e?Object(V.a)(e.pixelToCoordinateTransform,t.slice()):null},e.prototype.getControls=function(){return this.controls},e.prototype.getOverlays=function(){return this.overlays_},e.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getInteractions=function(){return this.interactions},e.prototype.getLayerGroup=function(){return this.get(O.LAYERGROUP)},e.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},e.prototype.getLoading=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,i=t.length;e<i;++e){var n=t[e].layer.getSource();if(n&&n.loading)return!0}return!1},e.prototype.getPixelFromCoordinate=function(t){var e=Object(X.e)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)},e.prototype.getPixelFromCoordinateInternal=function(t){var e=this.frameState_;return e?Object(V.a)(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(O.SIZE)},e.prototype.getView=function(){return this.get(O.VIEW)},e.prototype.getViewport=function(){return this.viewport_},e.prototype.getOverlayContainer=function(){return this.overlayContainer_},e.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},e.prototype.getTilePriority=function(t,e,i,n){return function(t,e,i,n,o){if(!(t&&i in t.wantedTiles))return I;if(!t.wantedTiles[i][e.getKey()])return I;var r=t.viewState.center,s=n[0]-r[0],a=n[1]-r[1];return 65536*Math.log(o)+Math.sqrt(s*s+a*a)/o}(this.frameState_,t,e,i,n)},e.prototype.handleBrowserEvent=function(t,e){var i=e||t.type,n=new c(i,this,t);this.handleMapBrowserEvent(n)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){var e=t.originalEvent.target;if(t.dragging||!this.overlayContainerStopEvent_.contains(e)&&(document.body.contains(e)||this.viewport_.getRootNode&&this.viewport_.getRootNode().contains(e))){t.frameState=this.frameState_;var i=this.getInteractions().getArray();if(!1!==this.dispatchEvent(t))for(var n=i.length-1;n>=0;n--){var o=i[n];if(o.getActive())if(!o.handleEvent(t))break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var i=this.maxTilesLoading_,n=i;if(t){var o=t.viewHints;if(o[k.a.ANIMATING]||o[k.a.INTERACTING]){var r=!u.c&&Date.now()-t.time>8;i=r?0:8,n=r?0:2}}e.getTilesLoading()<i&&(e.reprioritize(),e.loadMoreTiles(i,n))}!t||!this.hasListener(w.a.RENDERCOMPLETE)||t.animate||this.tileQueue_.getTilesLoading()||this.getLoading()||this.renderer_.dispatchRenderEvent(w.a.RENDERCOMPLETE,t);for(var s=this.postRenderFunctions_,a=0,h=s.length;a<h;++a)s[a](this,t);s.length=0},e.prototype.handleSizeChanged_=function(){this.getView()&&this.getView().resolveConstraints(0),this.render()},e.prototype.handleTargetChanged_=function(){var t;if(this.getTarget()&&(t=this.getTargetElement()),this.keyHandlerKeys_){for(var e=0,i=this.keyHandlerKeys_.length;e<i;++e)Object(g.c)(this.keyHandlerKeys_[e]);this.keyHandlerKeys_=null}if(t){t.appendChild(this.viewport_),this.renderer_||(this.renderer_=this.createRenderer());var n=this.keyboardEventTarget_?this.keyboardEventTarget_:t;this.keyHandlerKeys_=[Object(g.a)(n,p.a.KEYDOWN,this.handleBrowserEvent,this),Object(g.a)(n,p.a.KEYPRESS,this.handleBrowserEvent,this)],this.handleResize_||(this.handleResize_=this.updateSize.bind(this),window.addEventListener(p.a.RESIZE,this.handleResize_,!1))}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0),Object(A.e)(this.viewport_),void 0!==this.handleResize_&&(removeEventListener(p.a.RESIZE,this.handleResize_,!1),this.handleResize_=void 0);this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Object(g.c)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Object(g.c)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=Object(g.a)(t,E.a.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Object(g.a)(t,p.a.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(g.c),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.layerGroupPropertyListenerKeys_=[Object(g.a)(t,E.a.PROPERTYCHANGE,this.render,this),Object(g.a)(t,p.a.CHANGE,this.render,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.redrawText=function(){for(var t=this.getLayerGroup().getLayerStatesArray(),e=0,i=t.length;e<i;++e){var n=t[e].layer;n.hasRenderer()&&n.getRenderer().handleFontsChanged()}},e.prototype.render=function(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){return this.getLayerGroup().getLayers().remove(t)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e=this.getSize(),i=this.getView(),n=this.frameState_,o=null;if(void 0!==e&&Object(Y.a)(e)&&i&&i.isDef()){var r=i.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=i.getState();o={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterItems:n?n.declutterItems:[],extent:Object(D.z)(s.center,s.resolution,s.rotation,e),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:e,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:s,viewHints:r,wantedTiles:{}}}if(this.frameState_=o,this.renderer_.renderFrame(o),o){if(o.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,o.postRenderFunctions),n)(!this.previousExtent_||!Object(D.H)(this.previousExtent_)&&!Object(D.p)(o.extent,this.previousExtent_))&&(this.dispatchEvent(new h(x.a.MOVESTART,this,n)),this.previousExtent_=Object(D.l)(this.previousExtent_));this.previousExtent_&&!o.viewHints[k.a.ANIMATING]&&!o.viewHints[k.a.INTERACTING]&&!Object(D.p)(o.extent,this.previousExtent_)&&(this.dispatchEvent(new h(x.a.MOVEEND,this,o)),Object(D.d)(o.extent,this.previousExtent_))}this.dispatchEvent(new h(x.a.POSTRENDER,this,o)),this.postRenderTimeoutHandle_=setTimeout(this.handlePostRender.bind(this),0)},e.prototype.setLayerGroup=function(t){this.set(O.LAYERGROUP,t)},e.prototype.setSize=function(t){this.set(O.SIZE,t)},e.prototype.setTarget=function(t){this.set(O.TARGET,t)},e.prototype.setView=function(t){this.set(O.VIEW,t)},e.prototype.updateSize=function(){var t=this.getTargetElement();if(t){var e=getComputedStyle(t);this.setSize([t.offsetWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)-parseFloat(e.borderRightWidth),t.offsetHeight-parseFloat(e.borderTopWidth)-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)-parseFloat(e.borderBottomWidth)])}else this.setSize(void 0);this.updateViewportSize_()},e.prototype.updateViewportSize_=function(){var t=this.getView();if(t){var e=void 0,i=getComputedStyle(this.viewport_);i.width&&i.height&&(e=[parseInt(i.width,10),parseInt(i.height,10)]),t.setViewportSize(e)}},e}(T.a),H=i(77),$=function(){function t(t,e,i){this.decay_=t,this.minVelocity_=e,this.delay_=i,this.points_=[],this.angle_=0,this.initialVelocity_=0}return t.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},t.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},t.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;for(var i=e-3;i>0&&this.points_[i+2]>t;)i-=3;var n=this.points_[e+2]-this.points_[i+2];if(n<1e3/60)return!1;var o=this.points_[e]-this.points_[i],r=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(r,o),this.initialVelocity_=Math.sqrt(o*o+r*r)/n,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}(),q=i(26),J="active",Q=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function tt(t,e,i,n){var o=t.getZoom();if(void 0!==o){var r=t.getConstrainedZoom(o+e),s=t.getResolutionForZoom(r);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:s,anchor:i,duration:void 0!==n?n:250,easing:q.b})}}var et=function(t){function e(e){var i=t.call(this)||this;return e.handleEvent&&(i.handleEvent=e.handleEvent),i.map_=null,i.setActive(!0),i}return Q(e,t),e.prototype.getActive=function(){return this.get(J)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(J,t)},e.prototype.setMap=function(t){this.map_=t},e}(T.a),it=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function nt(t){var e=!1;if(t.type==d.DBLCLICK){var i=t.originalEvent,n=t.map,o=t.coordinate,r=i.shiftKey?-this.delta_:this.delta_;tt(n.getView(),r,o,this.duration_),t.preventDefault(),e=!0}return!e}var ot=function(t){function e(e){var i=t.call(this,{handleEvent:nt})||this,n=e||{};return i.delta_=n.delta?n.delta:1,i.duration_=void 0!==n.duration?n.duration:250,i}return it(e,t),e}(et),rt=i(27),st=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},at=function(t){return t.target.getTargetElement()===document.activeElement},ht=F.b,lt=function(t){var e=t.originalEvent;return 0==e.button&&!(u.f&&u.d&&e.ctrlKey)},ct=(F.a,function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey}),ut=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},pt=function(t){var e=t.originalEvent.target.tagName;return"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e},dt=function(t){var e=t.pointerEvent;return Object(C.a)(void 0!==e,56),"mouse"==e.pointerType},ft=function(t){var e=t.pointerEvent;return Object(C.a)(void 0!==e,56),e.isPrimary&&0===e.button},_t=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function gt(t){for(var e=t.length,i=0,n=0,o=0;o<e;o++)i+=t[o].clientX,n+=t[o].clientY;return[i/e,n/e]}var mt=function(t){function e(e){var i=this,n=e||{};return i=t.call(this,n)||this,n.handleDownEvent&&(i.handleDownEvent=n.handleDownEvent),n.handleDragEvent&&(i.handleDragEvent=n.handleDragEvent),n.handleMoveEvent&&(i.handleMoveEvent=n.handleMoveEvent),n.handleUpEvent&&(i.handleUpEvent=n.handleUpEvent),n.stopDown&&(i.stopDown=n.stopDown),i.handlingDownUpSequence=!1,i.trackedPointers_={},i.targetPointers=[],i}return _t(e,t),e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.pointerEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==d.POINTERDRAG)this.handleDragEvent(t);else if(t.type==d.POINTERUP){var i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==d.POINTERDOWN){var n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==d.POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){if(function(t){var e=t.type;return e===d.POINTERDOWN||e===d.POINTERDRAG||e===d.POINTERUP}(t)){var e=t.pointerEvent,i=e.pointerId.toString();t.type==d.POINTERUP?delete this.trackedPointers_[i]:t.type==d.POINTERDOWN?this.trackedPointers_[i]=e:i in this.trackedPointers_&&(this.trackedPointers_[i]=e),this.targetPointers=Object(P.c)(this.trackedPointers_)}},e}(et),vt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function yt(t){return ct(t)&&ft(t)}var bt=function(t){function e(e){var i=t.call(this,{stopDown:F.a})||this,n=e||{};return i.kinetic_=n.kinetic,i.lastCentroid=null,i.lastPointersCount_,i.panning_=!1,i.condition_=n.condition?n.condition:yt,i.noKinetic_=!1,i}return vt(e,t),e.prototype.conditionInternal_=function(t){var e=!0;return t.map.getTargetElement().hasAttribute("tabindex")&&(e=at(t)),e&&this.condition_(t)},e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,i=gt(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(i[0],i[1]),this.lastCentroid){var n=[this.lastCentroid[0]-i[0],i[1]-this.lastCentroid[1]],o=t.map.getView();Object(rt.d)(n,o.getResolution()),Object(rt.c)(n,o.getRotation()),o.adjustCenterInternal(n)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=i,this.lastPointersCount_=e.length,t.originalEvent.preventDefault()},e.prototype.handleUpEvent=function(t){var e=t.map,i=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var n=this.kinetic_.getDistance(),o=this.kinetic_.getAngle(),r=i.getCenterInternal(),s=e.getPixelFromCoordinateInternal(r),a=e.getCoordinateFromPixelInternal([s[0]-n*Math.cos(o),s[1]-n*Math.sin(o)]);i.animateInternal({center:i.getConstrainedCenter(a),duration:500,easing:q.b})}return this.panning_&&(this.panning_=!1,i.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.conditionInternal_(t)){var e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(mt),xt=i(42),Ot=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),wt=function(t){function e(e){var i=this,n=e||{};return(i=t.call(this,{stopDown:F.a})||this).condition_=n.condition?n.condition:st,i.lastAngle_=void 0,i.duration_=void 0!==n.duration?n.duration:250,i}return Ot(e,t),e.prototype.handleDragEvent=function(t){if(dt(t)){var e=t.map,i=e.getView();if(i.getConstraints().rotation!==xt.c){var n=e.getSize(),o=t.pixel,r=Math.atan2(n[1]/2-o[1],o[0]-n[0]/2);if(void 0!==this.lastAngle_){var s=r-this.lastAngle_;i.adjustRotationInternal(-s)}this.lastAngle_=r}}},e.prototype.handleUpEvent=function(t){return!dt(t)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){return!!dt(t)&&(!(!lt(t)||!this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))},e}(mt),Tt=i(54),Et=i(57),St=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Ct=function(t){function e(e){var i=t.call(this)||this;return i.geometry_=null,i.element_=document.createElement("div"),i.element_.style.position="absolute",i.element_.className="ol-box "+e,i.map_=null,i.startPixel_=null,i.endPixel_=null,i}return St(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,i=this.element_.style;i.left=Math.min(t[0],e[0])+"px",i.top=Math.min(t[1],e[1])+"px",i.width=Math.abs(e[0]-t[0])+"px",i.height=Math.abs(e[1]-t[1])+"px"},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,i=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new Et.a([i])},e.prototype.getGeometry=function(){return this.geometry_},e}(Tt.a),Pt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),It="boxstart",Lt="boxdrag",Rt="boxend",Mt=function(t){function e(e,i,n){var o=t.call(this,e)||this;return o.coordinate=i,o.mapBrowserEvent=n,o}return Pt(e,t),e}(s.a),jt=function(t){function e(e){var i=t.call(this)||this,n=e||{};return i.box_=new Ct(n.className||"ol-dragbox"),i.minArea_=void 0!==n.minArea?n.minArea:64,i.onBoxEnd_=n.onBoxEnd?n.onBoxEnd:F.c,i.startPixel_=null,i.condition_=n.condition?n.condition:lt,i.boxEndCondition_=n.boxEndCondition?n.boxEndCondition:i.defaultBoxEndCondition,i}return Pt(e,t),e.prototype.defaultBoxEndCondition=function(t,e,i){var n=i[0]-e[0],o=i[1]-e[1];return n*n+o*o>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new Mt(Lt,t.coordinate,t))},e.prototype.handleUpEvent=function(t){return this.box_.setMap(null),this.boxEndCondition_(t,this.startPixel_,t.pixel)&&(this.onBoxEnd_(t),this.dispatchEvent(new Mt(Rt,t.coordinate,t))),!1},e.prototype.handleDownEvent=function(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Mt(It,t.coordinate,t)),!0)},e}(mt),kt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function At(){var t=this.getMap(),e=t.getView(),i=t.getSize(),n=this.getGeometry().getExtent();if(this.out_){var o=e.calculateExtentInternal(i),r=Object(D.n)([t.getPixelFromCoordinateInternal(Object(D.v)(n)),t.getPixelFromCoordinateInternal(Object(D.D)(n))]),s=e.getResolutionForExtentInternal(r,i);Object(D.J)(o,1/s),n=o}var a=e.getConstrainedResolution(e.getResolutionForExtentInternal(n,i)),h=e.getConstrainedCenter(Object(D.x)(n),a);e.animateInternal({resolution:a,center:h,duration:this.duration_,easing:q.b})}var Dt=function(t){function e(e){var i=this,n=e||{},o=n.condition?n.condition:ut;return(i=t.call(this,{condition:o,className:n.className||"ol-dragzoom",minArea:n.minArea,onBoxEnd:At})||this).duration_=void 0!==n.duration?n.duration:200,i.out_=void 0!==n.out&&n.out,i}return kt(e,t),e}(jt),Ft={LEFT:37,UP:38,RIGHT:39,DOWN:40},Nt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function zt(t){var e=!1;if(t.type==p.a.KEYDOWN){var i=t.originalEvent.keyCode;if(this.condition_(t)&&(i==Ft.DOWN||i==Ft.LEFT||i==Ft.RIGHT||i==Ft.UP)){var n=t.map.getView(),o=n.getResolution()*this.pixelDelta_,r=0,s=0;i==Ft.DOWN?s=-o:i==Ft.LEFT?r=-o:i==Ft.RIGHT?r=o:s=o;var a=[r,s];Object(rt.c)(a,n.getRotation()),function(t,e,i){var n=t.getCenterInternal();if(n){var o=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:void 0!==i?i:250,easing:q.d,center:t.getConstrainedCenter(o)})}}(n,a,this.duration_),t.preventDefault(),e=!0}}return!e}var Bt=function(t){function e(e){var i=t.call(this,{handleEvent:zt})||this,n=e||{};return i.defaultCondition_=function(t){return ct(t)&&pt(t)},i.condition_=void 0!==n.condition?n.condition:i.defaultCondition_,i.duration_=void 0!==n.duration?n.duration:100,i.pixelDelta_=void 0!==n.pixelDelta?n.pixelDelta:128,i}return Nt(e,t),e}(et),Gt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function Zt(t){var e=!1;if(t.type==p.a.KEYDOWN||t.type==p.a.KEYPRESS){var i=t.originalEvent.charCode;if(this.condition_(t)&&(i=="+".charCodeAt(0)||i=="-".charCodeAt(0))){var n=t.map,o=i=="+".charCodeAt(0)?this.delta_:-this.delta_;tt(n.getView(),o,void 0,this.duration_),t.preventDefault(),e=!0}}return!e}var Wt=function(t){function e(e){var i=t.call(this,{handleEvent:Zt})||this,n=e||{};return i.condition_=n.condition?n.condition:pt,i.delta_=n.delta?n.delta:1,i.duration_=void 0!==n.duration?n.duration:100,i}return Gt(e,t),e}(et),Yt=i(5),Vt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Xt="trackpad",Ut="wheel",Kt=function(t){function e(e){var i=this,n=e||{};return(i=t.call(this,n)||this).totalDelta_=0,i.lastDelta_=0,i.maxDelta_=void 0!==n.maxDelta?n.maxDelta:1,i.duration_=void 0!==n.duration?n.duration:250,i.timeout_=void 0!==n.timeout?n.timeout:80,i.useAnchor_=void 0===n.useAnchor||n.useAnchor,i.condition_=n.condition?n.condition:ht,i.lastAnchor_=null,i.startTime_=void 0,i.timeoutId_,i.mode_=void 0,i.trackpadEventGap_=400,i.trackpadTimeoutId_,i.deltaPerZoom_=300,i}return Vt(e,t),e.prototype.conditionInternal_=function(t){var e=!0;return t.map.getTargetElement().hasAttribute("tabindex")&&(e=at(t)),e&&this.condition_(t)},e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.conditionInternal_(t))return!0;if(t.type!==p.a.WHEEL)return!0;t.preventDefault();var e,i=t.map,n=t.originalEvent;if(this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==p.a.WHEEL&&(e=n.deltaY,u.b&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=u.a),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)),0===e)return!1;this.lastDelta_=e;var o=Date.now();void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(e)<4?Xt:Ut);var r=i.getView();if(this.mode_===Xt&&!r.getConstrainResolution())return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(r.getAnimating()&&r.cancelAnimations(),r.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),r.adjustZoom(-e/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=o,!1;this.totalDelta_+=e;var s=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),s),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();var i=-Object(Yt.a)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;e.getConstrainResolution()&&(i=i?i>0?1:-1:0),tt(e,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(et),Ht=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),$t=function(t){function e(e){var i=this,n=e||{},o=n;return o.stopDown||(o.stopDown=F.a),(i=t.call(this,o)||this).anchor_=null,i.lastAngle_=void 0,i.rotating_=!1,i.rotationDelta_=0,i.threshold_=void 0!==n.threshold?n.threshold:.3,i.duration_=void 0!==n.duration?n.duration:250,i}return Ht(e,t),e.prototype.handleDragEvent=function(t){var e=0,i=this.targetPointers[0],n=this.targetPointers[1],o=Math.atan2(n.clientY-i.clientY,n.clientX-i.clientX);if(void 0!==this.lastAngle_){var r=o-this.lastAngle_;this.rotationDelta_+=r,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=r}this.lastAngle_=o;var s=t.map,a=s.getView();if(a.getConstraints().rotation!==xt.c){var h=s.getViewport().getBoundingClientRect(),l=gt(this.targetPointers);l[0]-=h.left,l[1]-=h.top,this.anchor_=s.getCoordinateFromPixelInternal(l),this.rotating_&&(s.render(),a.adjustRotationInternal(e,this.anchor_))}},e.prototype.handleUpEvent=function(t){return!(this.targetPointers.length<2)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(mt),qt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Jt=function(t){function e(e){var i=this,n=e||{},o=n;return o.stopDown||(o.stopDown=F.a),(i=t.call(this,o)||this).anchor_=null,i.duration_=void 0!==n.duration?n.duration:400,i.lastDistance_=void 0,i.lastScaleDelta_=1,i}return qt(e,t),e.prototype.handleDragEvent=function(t){var e=1,i=this.targetPointers[0],n=this.targetPointers[1],o=i.clientX-n.clientX,r=i.clientY-n.clientY,s=Math.sqrt(o*o+r*r);void 0!==this.lastDistance_&&(e=this.lastDistance_/s),this.lastDistance_=s;var a=t.map,h=a.getView();1!=e&&(this.lastScaleDelta_=e);var l=a.getViewport().getBoundingClientRect(),c=gt(this.targetPointers);c[0]-=l.left,c[1]-=l.top,this.anchor_=a.getCoordinateFromPixelInternal(c),a.render(),h.adjustResolutionInternal(e,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView(),i=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,i),!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1},e}(mt);var Qt=i(20),te=i(38),ee=i(69),ie=i(58);i(62),i(49);var ne=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function oe(t,e){ie.a.expire()}var re=function(t){function e(e){var i=t.call(this)||this;return i.map_=e,i.declutterTree_=null,i}return ne(e,t),e.prototype.dispatchRenderEvent=function(t,e){Object(N.b)()},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,i=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;Object(V.b)(i,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Object(V.d)(n,i)},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,o,r,s,a){var h,l=e.viewState;function c(t,e,i){return o.call(r,e,t?i:null)}var u=l.projection,p=Object(rt.e)(t.slice(),u),d=[[0,0]];if(u.canWrapX()&&n){var f=u.getExtent(),_=Object(D.E)(f);d.push([-_,0],[_,0])}var g,m=e.layerStatesArray,v=m.length;this.declutterTree_&&(g=this.declutterTree_.all().map(function(t){return t.value}));for(var y=[],b=0;b<d.length;b++)for(var x=v-1;x>=0;--x){var O=m[x],w=O.layer;if(w.hasRenderer()&&Object(te.b)(O,l)&&s.call(a,w)){var T=w.getRenderer(),E=w.getSource();if(T&&E){var S=E.getWrapX()?p:t,C=c.bind(null,O.managed);y[0]=S[0]+d[b][0],y[1]=S[1]+d[b][1],h=T.forEachFeatureAtCoordinate(y,e,i,C,g)}if(h)return h}}},e.prototype.forEachLayerAtPixel=function(t,e,i,n,o){return Object(N.b)()},e.prototype.hasFeatureAtCoordinate=function(t,e,i,n,o,r){return void 0!==this.forEachFeatureAtCoordinate(t,e,i,n,F.b,this,o,r)},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){this.declutterTree_=function(t,e){e&&e.clear();for(var i=t.declutterItems,n=i.length-1;n>=0;--n)for(var o=i[n],r=o.items,s=0,a=r.length;s<a;s+=3)e=r[s].renderDeclutter(r[s+1],r[s+2],o.opacity,e);return i.length=0,e}(t,this.declutterTree_)},e.prototype.scheduleExpireIconCache=function(t){ie.a.canExpireCache()&&t.postRenderFunctions.push(oe)},e}(Tt.a),se=i(4),ae=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),he=function(t){function e(e){var i=t.call(this,e)||this;i.fontChangeListenerKey_=Object(g.a)(se.a,E.a.PROPERTYCHANGE,e.redrawText.bind(e)),i.element_=document.createElement("div");var n=i.element_.style;n.position="absolute",n.width="100%",n.height="100%",n.zIndex="0",i.element_.className=Qt.e+" ol-layers";var o=e.getViewport();return o.insertBefore(i.element_,o.firstChild||null),i.children_=[],i.renderedVisible_=!0,i}return ae(e,t),e.prototype.dispatchRenderEvent=function(t,e){var i=this.getMap();if(i.hasListener(t)){var n=new ee.a(t,void 0,e);i.dispatchEvent(n)}},e.prototype.disposeInternal=function(){Object(g.c)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),t.prototype.disposeInternal.call(this)},e.prototype.renderFrame=function(e){if(e){this.calculateMatrices2D(e),this.dispatchRenderEvent(w.a.PRECOMPOSE,e);var i=e.layerStatesArray.sort(function(t,e){return t.zIndex-e.zIndex}),n=e.viewState;this.children_.length=0;for(var o=null,r=0,s=i.length;r<s;++r){var a=i[r];if(e.layerIndex=r,Object(te.b)(a,n)&&(a.sourceState==B.a.READY||a.sourceState==B.a.UNDEFINED)){var h=a.layer.render(e,o);h&&h!==o&&(this.children_.push(h),o=h)}}t.prototype.renderFrame.call(this,e),Object(A.f)(this.element_,this.children_),this.dispatchRenderEvent(w.a.POSTCOMPOSE,e),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(e)}else this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1)},e.prototype.forEachLayerAtPixel=function(t,e,i,n,o){for(var r=e.viewState,s=e.layerStatesArray,a=s.length-1;a>=0;--a){var h=s[a],l=h.layer;if(l.hasRenderer()&&Object(te.b)(h,r)&&o(l)){var c=l.getRenderer().getDataAtPixel(t,e,i);if(c){var u=n(l,c);if(u)return u}}}},e}(re),le=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ce=function(t){function e(e){return(e=Object(P.a)({},e)).controls||(e.controls=Object(H.a)()),e.interactions||(e.interactions=function(t){var e=t||{},i=new o.a,n=new $(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&i.push(new wt),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&i.push(new ot({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&i.push(new bt({condition:e.onFocusOnly?at:void 0,kinetic:n})),(void 0===e.pinchRotate||e.pinchRotate)&&i.push(new $t),(void 0===e.pinchZoom||e.pinchZoom)&&i.push(new Jt({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(i.push(new Bt),i.push(new Wt({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&i.push(new Kt({condition:e.onFocusOnly?at:void 0,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&i.push(new Dt({duration:e.zoomDuration})),i}()),t.call(this,e)||this}return le(e,t),e.prototype.createRenderer=function(){return new he(this)},e}(K);e.a=ce},function(t,e,i){"use strict";var n=i(0),o="http://www.w3.org/1999/xlink";function r(t){return t.getAttributeNS(o,"href")}i(12);function s(t,e){return function t(e,i,n){if(e.nodeType==Node.CDATA_SECTION_NODE||e.nodeType==Node.TEXT_NODE)i?n.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):n.push(e.nodeValue);else{var o=void 0;for(o=e.firstChild;o;o=o.nextSibling)t(o,i,n)}return n}(t,e,[]).join("")}function a(t,e){return function(i,n){var o=t.call(void 0!==e?e:this,i,n);void 0!==o&&n[n.length-1].push(o)}}function h(t,e,i){return function(n,o){var r=t.call(void 0!==i?i:this,n,o);if(void 0!==r){var s=o[o.length-1],a=void 0!==e?e:n.localName,h=void 0;a in s?h=s[a]:(h=[],s[a]=h),h.push(r)}}}function l(t,e,i){return function(n,o){var r=t.call(void 0!==i?i:this,n,o);void 0!==r&&(o[o.length-1][void 0!==e?e:n.localName]=r)}}function c(t,e){var i=t;return function(t,n,o){var r=n[n.length-1].node,s=i;return void 0===s&&(s=o),function(t,e){return f().createElementNS(t,e)}(void 0!==e?e:r.namespaceURI,s)}}c();function u(t,e,i){var n,o,r=void 0!==i?i:{};for(n=0,o=t.length;n<o;++n)r[t[n]]=e;return r}function p(t,e,i,n,o){return n.push(t),function(t,e,i,n){var o;for(o=e.firstElementChild;o;o=o.nextElementSibling){var r=t[o.namespaceURI];if(void 0!==r){var s=r[o.localName];void 0!==s&&s.call(n,o,i)}}}(e,i,n,o),n.pop()}var d=void 0;function f(){return void 0===d&&"undefined"!=typeof document&&(d=document.implementation.createDocument("","",null)),d}var _=function(){function t(){}return t.prototype.read=function(t){if(t){if("string"==typeof t){var e=(i=t,(new DOMParser).parseFromString(i,"application/xml"));return this.readFromDocument(e)}return"documentElement"in t?this.readFromDocument(t):this.readFromNode(t)}return null;var i},t.prototype.readFromDocument=function(t){},t.prototype.readFromNode=function(t){},t}();i(44);function g(t){var e,i=s(t,!1);return(e=/^\s*(\d+)\s*$/.exec(i))?parseInt(e[1],10):void 0}function m(t){return s(t,!1).trim()}var v,y=(v=function(t,e){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),b=[null,"http://www.opengis.net/ows/1.1"],x=u(b,{ServiceIdentification:l(function(t,e){return p({},k,t,e)}),ServiceProvider:l(function(t,e){return p({},A,t,e)}),OperationsMetadata:l(function(t,e){return p({},L,t,e)})}),O=function(t){function e(){return t.call(this)||this}return y(e,t),e.prototype.readFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readFromNode(e);return null},e.prototype.readFromNode=function(t){var e=p({},x,t,[]);return e||null},e}(_),w=u(b,{DeliveryPoint:l(m),City:l(m),AdministrativeArea:l(m),PostalCode:l(m),Country:l(m),ElectronicMailAddress:l(m)}),T=u(b,{Value:h(function(t,e){return m(t)})}),E=u(b,{AllowedValues:l(function(t,e){return p({},T,t,e)})}),S=u(b,{Phone:l(function(t,e){return p({},R,t,e)}),Address:l(function(t,e){return p({},w,t,e)})}),C=u(b,{HTTP:l(function(t,e){return p({},P,t,e)})}),P=u(b,{Get:h(function(t,e){var i=r(t);if(!i)return;return p({href:i},M,t,e)}),Post:void 0}),I=u(b,{DCP:l(function(t,e){return p({},C,t,e)})}),L=u(b,{Operation:function(t,e){var i=t.getAttribute("name"),n=p({},I,t,e);if(!n)return;e[e.length-1][i]=n}}),R=u(b,{Voice:l(m),Facsimile:l(m)}),M=u(b,{Constraint:h(function(t,e){var i=t.getAttribute("name");if(!i)return;return p({name:i},E,t,e)})}),j=u(b,{IndividualName:l(m),PositionName:l(m),ContactInfo:l(function(t,e){return p({},S,t,e)})}),k=u(b,{Abstract:l(m),AccessConstraints:l(m),Fees:l(m),Title:l(m),ServiceTypeVersion:l(m),ServiceType:l(m)}),A=u(b,{ProviderName:l(m),ProviderSite:l(r),ServiceContact:l(function(t,e){return p({},j,t,e)})});var D=O,F=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),N=[null,"http://www.opengis.net/wmts/1.0"],z=[null,"http://www.opengis.net/ows/1.1"],B=u(N,{Contents:l(function(t,e){return p({},Z,t,e)})}),G=function(t){function e(){var e=t.call(this)||this;return e.owsParser_=new D,e}return F(e,t),e.prototype.readFromDocument=function(t){for(var e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Node.ELEMENT_NODE)return this.readFromNode(e);return null},e.prototype.readFromNode=function(t){var e=t.getAttribute("version");e&&(e=e.trim());var i=this.owsParser_.readFromNode(t);return i?(i.version=e,(i=p(i,B,t,[]))||null):null},e}(_),Z=u(N,{Layer:h(function(t,e){return p({},W,t,e)}),TileMatrixSet:h(function(t,e){return p({},$,t,e)})}),W=u(N,{Style:h(function(t,e){var i=p({},Y,t,e);if(!i)return;var n="true"===t.getAttribute("isDefault");return i.isDefault=n,i}),Format:h(m),TileMatrixSetLink:h(function(t,e){return p({},V,t,e)}),Dimension:h(function(t,e){return p({},K,t,e)}),ResourceURL:h(function(t,e){var i=t.getAttribute("format"),n=t.getAttribute("template"),o=t.getAttribute("resourceType"),r={};i&&(r.format=i);n&&(r.template=n);o&&(r.resourceType=o);return r})},u(z,{Title:l(m),Abstract:l(m),WGS84BoundingBox:l(function(t,e){var i=p([],H,t,e);if(2!=i.length)return;return Object(n.b)(i)}),Identifier:l(m)})),Y=u(N,{LegendURL:h(function(t,e){var i={};return i.format=t.getAttribute("format"),i.href=r(t),i})},u(z,{Title:l(m),Identifier:l(m)})),V=u(N,{TileMatrixSet:l(m),TileMatrixSetLimits:l(function(t,e){return p([],X,t,e)})}),X=u(N,{TileMatrixLimits:a(function(t,e){return p({},U,t,e)})}),U=u(N,{TileMatrix:l(m),MinTileRow:l(g),MaxTileRow:l(g),MinTileCol:l(g),MaxTileCol:l(g)}),K=u(N,{Default:l(m),Value:h(m)},u(z,{Identifier:l(m)})),H=u(z,{LowerCorner:a(J),UpperCorner:a(J)}),$=u(N,{WellKnownScaleSet:l(m),TileMatrix:h(function(t,e){return p({},q,t,e)})},u(z,{SupportedCRS:l(m),Identifier:l(m)})),q=u(N,{TopLeftCorner:l(J),ScaleDenominator:l(function(t){var e,i=s(t,!1);return(e=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(i))?parseFloat(e[1]):void 0}),TileWidth:l(g),TileHeight:l(g),MatrixWidth:l(g),MatrixHeight:l(g)},u(z,{Identifier:l(m)}));function J(t,e){var i=m(t).split(/\s+/);if(i&&2==i.length){var n=+i[0],o=+i[1];if(!isNaN(n)&&!isNaN(o))return[n,o]}}e.a=G},function(t,e,i){"use strict";var n,o=i(38),r="preload",s="useInterimTilesOnError",a=i(11),h=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=function(t){function e(e){var i=this,n=e||{},o=Object(a.a)({},n);return delete o.preload,delete o.useInterimTilesOnError,(i=t.call(this,o)||this).setPreload(void 0!==n.preload?n.preload:0),i.setUseInterimTilesOnError(void 0===n.useInterimTilesOnError||n.useInterimTilesOnError),i}return h(e,t),e.prototype.getPreload=function(){return this.get(r)},e.prototype.setPreload=function(t){this.set(r,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(s)},e.prototype.setUseInterimTilesOnError=function(t){this.set(s,t)},e}(o.a),c=i(1),u=i(2),p=i(53),d=i(9),f=i(0),_=i(76),g=i(8),m=i(12),v=i(4),y=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),b=function(t){function e(e){var i=t.call(this,e)||this;return i.extentChanged=!0,i.renderedExtent_=null,i.renderedPixelRatio,i.renderedProjection=null,i.renderedRevision,i.renderedTiles=[],i.newTiles_=!1,i.tmpExtent=Object(f.j)(),i.tmpTileRange_=new p.b(0,0,0,0),i}return y(e,t),e.prototype.isDrawableTile=function(t){var e=this.getLayer(),i=t.getState(),n=e.getUseInterimTilesOnError();return i==d.a.LOADED||i==d.a.EMPTY||i==d.a.ERROR&&!n},e.prototype.getTile=function(t,e,i,n){var o=n.pixelRatio,r=n.viewState.projection,s=this.getLayer(),a=s.getSource().getTile(t,e,i,o,r);return a.getState()==d.a.ERROR&&(s.getUseInterimTilesOnError()?s.getPreload()>0&&(this.newTiles_=!0):a.setState(d.a.LOADED)),this.isDrawableTile(a)||(a=a.getInterimTile()),a},e.prototype.loadedTileCallback=function(e,i,n){return!!this.isDrawableTile(n)&&t.prototype.loadedTileCallback.call(this,e,i,n)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var i=t.layerStatesArray[t.layerIndex],n=t.viewState,o=n.projection,r=n.resolution,s=n.center,a=n.rotation,h=t.pixelRatio,l=this.getLayer(),p=l.getSource(),_=p.getRevision(),y=p.getTileGridForProjection(o),b=y.getZForResolution(r,p.zDirection),x=y.getResolution(b),O=t.extent,w=i.extent&&Object(u.f)(i.extent,o);w&&(O=Object(f.B)(O,Object(u.f)(i.extent,o)));var T=p.getTilePixelRatio(h),E=Math.round(t.size[0]*T),S=Math.round(t.size[1]*T);if(a){var C=Math.round(Math.sqrt(E*E+S*S));E=C,S=C}var P=x*E/2/T,I=x*S/2/T,L=[s[0]-P,s[1]-I,s[0]+P,s[1]+I],R=y.getTileRangeForExtentAndZ(O,b),M={};M[b]={};var j=this.createLoadedTileFinder(p,o,M),k=this.tmpExtent,A=this.tmpTileRange_;this.newTiles_=!1;for(var D=R.minX;D<=R.maxX;++D)for(var F=R.minY;F<=R.maxY;++F){var N=this.getTile(b,D,F,t);if(this.isDrawableTile(N)){var z=Object(c.c)(this);if(N.getState()==d.a.LOADED){M[b][N.tileCoord.toString()]=N;var B=N.inTransition(z);this.newTiles_||!B&&-1!==this.renderedTiles.indexOf(N)||(this.newTiles_=!0)}if(1===N.getAlpha(z,t.time))continue}var G=y.getTileCoordChildTileRange(N.tileCoord,A,k),Z=!1;G&&(Z=j(b+1,G)),Z||y.forEachTileCoordParentTileRange(N.tileCoord,j,A,k)}var W=x/r;Object(g.b)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/T,1/T,a,-E/2,-S/2);var Y=Object(v.b)(this.pixelTransform);this.useContainer(e,Y,i.opacity);var V=this.context,X=V.canvas;Object(g.d)(this.inversePixelTransform,this.pixelTransform),Object(g.b)(this.tempTransform_,E/2,S/2,W,W,0,-E/2,-S/2),X.width!=E||X.height!=S?(X.width=E,X.height=S):this.containerReused||V.clearRect(0,0,E,S),w&&this.clipUnrotated(V,t,w),this.preRender(V,t),this.renderedTiles.length=0;var U,K,H,$=Object.keys(M).map(Number);$.sort(m.h),1!==i.opacity||this.containerReused&&!p.getOpaque(t.viewState.projection)?(U=[],K=[]):$=$.reverse();for(var q=$.length-1;q>=0;--q){var J=$[q],Q=p.getTilePixelSize(J,h,o),tt=y.getResolution(J)/x,et=Q[0]*tt*W,it=Q[1]*tt*W,nt=y.getTileCoordForCoordAndZ(Object(f.C)(L),J),ot=y.getTileCoordExtent(nt),rt=Object(g.a)(this.tempTransform_,[T*(ot[0]-L[0])/x,T*(L[3]-ot[3])/x]),st=T*p.getGutterForProjection(o),at=M[J];for(var ht in at){var lt=(N=at[ht]).tileCoord,ct=rt[0]-(nt[1]-lt[1])*et,ut=Math.round(ct+et),pt=rt[1]-(nt[2]-lt[2])*it,dt=Math.round(pt+it),ft=ut-(D=Math.round(ct)),_t=dt-(F=Math.round(pt)),gt=b===J;if(!(B=gt&&1!==N.getAlpha(Object(c.c)(this),t.time)))if(U){V.save(),H=[D,F,D+ft,F,D+ft,F+_t,D,F+_t];for(var mt=0,vt=U.length;mt<vt;++mt)if(b!==J&&J<K[mt]){var yt=U[mt];V.beginPath(),V.moveTo(H[0],H[1]),V.lineTo(H[2],H[3]),V.lineTo(H[4],H[5]),V.lineTo(H[6],H[7]),V.moveTo(yt[6],yt[7]),V.lineTo(yt[4],yt[5]),V.lineTo(yt[2],yt[3]),V.lineTo(yt[0],yt[1]),V.clip()}U.push(H),K.push(J)}else V.clearRect(D,F,ft,_t);this.drawTileImage(N,t,D,F,ft,_t,st,gt,i.opacity),U&&!B&&V.restore(),this.renderedTiles.push(N),this.updateUsedTiles(t.usedTiles,p,N)}}return this.renderedRevision=_,this.renderedResolution=x,this.extentChanged=!this.renderedExtent_||!Object(f.p)(this.renderedExtent_,L),this.renderedExtent_=L,this.renderedPixelRatio=h,this.renderedProjection=o,this.manageTilePyramid(t,p,y,h,o,O,b,l.getPreload()),this.scheduleExpireCache(t,p),this.postRender(V,t),i.extent&&V.restore(),Y!==X.style.transform&&(X.style.transform=Y),this.container},e.prototype.drawTileImage=function(t,e,i,n,o,r,s,a,h){var l=this.getTileImage(t);if(l){var u=Object(c.c)(this),p=a?t.getAlpha(u,e.time):1,d=h*p,f=d!==this.context.globalAlpha;f&&(this.context.save(),this.context.globalAlpha=d),this.context.drawImage(l,s,s,l.width-2*s,l.height-2*s,i,n,o,r),f&&this.context.restore(),1!==p?e.animate=!0:a&&t.endTransition(u)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getTileImage=function(t){return t.getImage()},e.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var i=function(t,e,i){var n=Object(c.c)(t);n in i.usedTiles&&t.expireCache(i.viewState.projection,i.usedTiles[n])}.bind(null,e);t.postRenderFunctions.push(i)}},e.prototype.updateUsedTiles=function(t,e,i){var n=Object(c.c)(e);n in t||(t[n]={}),t[n][i.getKey()]=!0},e.prototype.manageTilePyramid=function(t,e,i,n,o,r,s,a,h){var l=Object(c.c)(e);l in t.wantedTiles||(t.wantedTiles[l]={});var u,p,f,_,g,m,v=t.wantedTiles[l],y=t.tileQueue;for(m=i.getMinZoom();m<=s;++m)for(p=i.getTileRangeForExtentAndZ(r,m,p),f=i.getResolution(m),_=p.minX;_<=p.maxX;++_)for(g=p.minY;g<=p.maxY;++g)s-m<=a?((u=e.getTile(m,_,g,n,o)).getState()==d.a.IDLE&&(v[u.getKey()]=!0,y.isKeyQueued(u.getKey())||y.enqueue([u,l,i.getTileCoordCenter(u.tileCoord),f])),void 0!==h&&h(u)):e.useTile(m,_,g,o)},e}(_.a);b.prototype.getLayer;var x=b,O=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),w=function(t){function e(e){return t.call(this,e)||this}return O(e,t),e.prototype.createRenderer=function(){return new x(this)},e}(l);e.a=w},,,,,,,,,,,,,,function(t,e,i){t.exports=i(106)},function(t,e,i){"use strict";i.r(e),i.d(e,"adressService",function(){return h});i(107);function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}i(110),i(111),i(112),i(114),i(116),i(117),i(121),i(122),i(123);var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,s(e).apply(this,arguments))}var i,n,h;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,ntt.smartit.api.ICustomModule),i=e,(n=[{key:"name",value:function(){return"adressService"}},{key:"injectTemplates",value:function(){return{"views/field-customization/custom-field-area.html":[{id:"changeConditionOnNameStreet",mode:"attribute",attributes:{replace:{"ng-if":"field.isTextField() && showField(field) && field.name != 'standort_adresse'"}},type:"jquery",selector:function(t){return t.find("character-custom-field")[0]}},{id:"addStreetFieldAutoComplete",method:"addAfter",mode:"partial",type:"jquery",selector:function(t){return t.find("character-custom-field")[0]},snippet:'<adress-custom-field-ntt ng-if="field.isTextField() && showField(field) && field.name == \'standort_adresse\'" data="field" is-editable="isEditable(field)" char-limit="field.maxLength ? field.maxLength : field.charLimit" is-hide-label="hideLabelInTitleBar"></adress-custom-field-ntt>'}],"views/person/create-person.html":[{id:"addStreetFieldPeopleCreate",method:"replace",mode:"partial",type:"jquery",selector:function(t){return t.find("span[field-name='site.name']").parents(".person-profile-form-item")},snippet:'<adress-person-create-field-ntt char-limit="field.maxLength ? field.maxLength : field.charLimit" is-hide-label="hideLabelInTitleBar"></adress-person-create-field-ntt>'}],"views/person/person-infocard-template.html":[{id:"deleteStandorInfo1",mode:"attribute",type:"jquery",attributes:{replace:{class:"person-address__column hide"}},selector:function(t){return t.find(".person-address__column")}}],"views/person/edit-person-data.html":[{id:"deleteStandorInfo2",mode:"attribute",type:"jquery",attributes:{replace:{class:"person-profile-form-item hide"}},selector:function(t){return t.find("[ng-model='person.site.name']").parents(".person-profile-form-item")}}],"views/person/person-contact-edit.html":[{id:"deleteStandorInfo3",mode:"attribute",type:"jquery",attributes:{replace:{class:"person-profile-form-item hide"}},selector:function(t){return t.find("[field-name='site.name']").parents(".person-profile-form-item")}}]}}},{key:"templates",value:function(){return[{template:"views/adress-custom-field-ntt.html"},{template:"views/adress-selector-template-ntt.html"},{template:"views/adress-action-blade.html"},{template:"views/ol-map-ntt.html"},{template:"views/ol-map-search-panel.html"},{template:"views/tickets-nearby-panel.html"},{template:"views/adress-person-create-field-ntt.html"}]}},{key:"i18nLocales",value:function(){return{de:["i18n/ntt-resources-adressSearch-locale_de.json"],en:["i18n/ntt-resources-adressSearch-locale_en.json"]}}}])&&o(i.prototype,n),h&&o(i,h),e}();ntt.smartit.api.nttSmartitModules.push(new h)},function(t,e,i){var n=i(108);"string"==typeof n&&(n=[[t.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(84)(n,o);n.locals&&(t.exports=n.locals)},function(t,e,i){(t.exports=i(83)(!1)).push([t.i,'.modal-super-large-ntt{width:75% !important}.ntt-action_blade_body{position:absolute;top:75px;right:0px;bottom:100px;left:0px;overflow:auto;z-index:1060}.ntt-action_blade_TicketPreview{position:absolute;top:75px;right:0px;left:0px;overflow:auto;z-index:1060;height:50%}.map{width:100%;height:100%;position:absolute;right:0px}.map{background:#fff}.ol-zoom-ntt{right:8px}.ntt-adress-search-tab-header{font-size:20px}.address-search-input{padding:10px;margin-top:30px}.coord-search-input{padding:10px;margin-top:10px;margin:0 auto;width:fit-content}.coord-label{float:left;width:40px}.search-result-container-ntt{margin-top:10px}.search-result-pic-column-ntt{float:left;width:38px}.search-result-content-column-ntt{float:left;width:80%}.icon-mapmaerker-result-ntt{font-size:40px;color:#666}.icon-mapmaerker-result-ntt-entered{font-size:40px;color:#f86e00}.adress-list__item_entered{background-color:#f2f2f2;border:1px solid #000;padding:16px 12px}.ntt-button-search{position:fixed}.sidepanel{position:absolute;z-index:1;background-color:#fff;overflow-x:hidden;opacity:.85;transition:.5s;top:0px;bottom:0px;width:20%;min-width:320px}.sidepanel a{padding:8px 8px 8px 32px;text-decoration:none;font-size:25px;color:#818181;display:block;transition:.3s}.sidepanel a:hover{color:#f1f1f1}.sidepanel .closebtn{position:absolute;top:0;right:25px;font-size:36px;margin-left:50px}.openbtn{font-size:20px;cursor:pointer;background-color:#111;color:#fff;padding:10px 15px;border:none}.openbtn:hover{background-color:#444}.btn-searchCoord{background-color:#f86e00;border:1px solid #f86e00;font-size:20px;padding:10px 10px;color:#fff;border-radius:2px;margin-top:10px;margin-left:10px}.ntt-btn-options_container{position:absolute;bottom:5px;width:100%;text-align:center;padding:10px}.ntt-option_button{height:35px;margin-top:5px;width:100%;position:absolute;right:0px;bottom:75px;left:0px;border-top:1px solid #d9d9d9;background:#f2f2f2;z-index:1070}.ntt-ol-control_currentAdress_outer{border:1px solid red;width:100%}.ntt-ol-control_currentAdress_inner{display:table;margin:0 auto;border:1px solid #000}.ntt-ol-control{position:absolute;background-color:rgba(255,255,255,.4);border-radius:4px;padding:2px}.ntt-ol-control button{display:none;margin:1px;padding:10px !important;color:#fff;font-size:20px !important;font-weight:bold;text-decoration:none;text-align:center;height:100% !important;width:100% !important;line-height:normal !important;background-color:rgba(0,60,136,.5);border:none;border-radius:2px}.btn-options{background-color:rgba(248,110,0,.5) !important}.activeCoordButton{text-decoration:none;background-color:rgba(0,60,136,.7) !important}#tooltip{position:absolute;background:#fff;z-Index:1000;padding:5px;border-radius:5px;border:1px solid gray}.searchPanelHeader{position:absolute;width:100%;height:30px;border-bottom:1px solid #d9d9d9;background-color:#f2f2f2}.ntt-currentItem_container{width:100%;text-align:center;position:absolute;z-index:2000;top:15px}.ntt-currentItem_container_inner{display:inline-block;margin:0 auto;padding-top:5px;padding-right:10px;padding-bottom:5px;padding-left:10px;white-space:nowrap}#adressPreviewMarker{opacity:.7}.showTickets_panel{position:absolute;bottom:75px;z-index:10051;width:100%}.headershowTickets{height:25px;border:1px solid #d9d9d9;background:#f2f2f2;font-weight:bold}.headershowTickets_active{background:#f2f2f2}.headershowTickets_disabled{color:gray;pointer-events:none}.icon-nearbyTicketHeader{padding:5px;font-size:20px}.activeShowTicketsButton{background-color:rgba(186,83,0,.7) !important}.ticketPanel_left{float:left;height:100%;width:30%}.ticketPanel_right{float:left;height:100%;overflow:auto;width:70%}.ntt-distanceTicket__filters{border-bottom:1px solid #d9d9d9;border-right:1px solid #d9d9d9;padding-top:2px;padding-left:10px;padding-right:20px;padding-bottom:2px;height:25px}.ntt-distanceTicket__filtersItem{display:inline-block;float:right;padding-left:10px}.ntt-distanceTicket__resultList{overflow:auto;border-right:1px solid #d9d9d9}.ntt-checkbox-menu li label{display:block;padding:3px 10px;clear:both;font-weight:normal;line-height:1.42857143;color:#333;white-space:nowrap;margin:0;transition:background-color .4s ease}.ntt-checkbox-menu li input{margin:0px 5px;top:2px;position:relative}.ntt-checkbox-menu li.active label{background-color:#f5f5f5;font-weight:bold}.ntt-checkbox-menu li label:hover,.ntt-checkbox-menu li label:focus{background-color:#f5f5f5}.checkbox-menu li.active label:hover,.checkbox-menu li.active label:focus{background-color:#b8b8ff}.ntt_loading-spinner-nearbyPanel-container{position:relative;top:50px}.ntt_loading-spinner-nearbyPanel{left:50%;right:50%}.ntt_nearby_ticket_row .row{margin-right:0px;margin-left:0px}.ntt_nearby-search-result-item{border-bottom:1px solid #d9d9d9}.ticketPreview{position:relative;display:inline-block;border-bottom:1px dotted #000}.ticketPreview .ticketPreviewtext{visibility:visible;width:20px;background-color:#000;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;margin-left:-10px;margin-top:-17px;font-size:15px}.ticketPreview .ticketPreviewtext::after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#000 transparent transparent transparent}.trigger{margin-top:-5px;width:40px;position:relative;text-align:center}.popup{position:absolute;left:0;transform:translate3d(0, -50%, 0);box-shadow:0px 0px 8px rgba(0,0,0,.5);background:none;border-radius:10px;width:100%;border-width:1px;border-style:solid;border-color:#000 #000 #000 #000}.popup:after{content:"";width:20px;height:20px;transform:rotate(-45deg);background:#fff;position:absolute;box-shadow:1px 4px 8px rgba(0,0,0,.5);z-index:-1;bottom:-3px;left:calc(50% - 10px);border-width:1px;border-style:solid;border-color:#000 #000 #000 #000}.inner{padding:10px 0;background:#fff;border-radius:10px;font-size:20px}.popup_preview,.popup_preview:after{background:#efb775 !important;color:#fff !important}.popup_selected,.popup_selected:after{background:#f86e00 !important;color:#fff !important}.activeTicket{z-index:20000 !important}.selectedTicket{z-index:10000 !important}.dot{height:10px;width:10px;background-color:#f86e00;border-radius:50%;display:inline-block;margin-top:35px}.ntt_preview_Ticket{color:#efb775}.ntt_selected_ticket{color:red}.ntt_mdtop10{margin-top:10px}',""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var i=e.protocol+"//"+e.host,n=i+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var o,r=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(r)?t:(o=0===r.indexOf("//")?r:0===r.indexOf("/")?i+r:n+r.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(t,e,i){(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){"use strict";var i=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};i.VERSION="3.3.5",i.TRANSITION_DURATION=150,i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,n){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),r=o.length;r--;){var s=o[r];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",h="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(h+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)}},i.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)}},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var o=this,r=this.tip(),s=this.getUID(this.type);this.setContent(),r.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&r.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,h=/\s?auto?\s?/i,l=h.test(a);l&&(a=a.replace(h,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),u=r[0].offsetWidth,p=r[0].offsetHeight;if(l){var d=a,f=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+p>f.bottom?"top":"top"==a&&c.top-p<f.top?"bottom":"right"==a&&c.right+u>f.width?"left":"left"==a&&c.left-u<f.left?"right":a,r.removeClass(d).addClass(a)}var _=this.getCalculatedOffset(a,c,u,p);this.applyPlacement(_,a);var g=function(){var t=o.hoverState;o.$element.trigger("shown.bs."+o.type),o.hoverState=null,"out"==t&&o.leave(o)};t.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",g).emulateTransitionEnd(i.TRANSITION_DURATION):g()}},i.prototype.applyPlacement=function(e,i){var n=this.tip(),o=n[0].offsetWidth,r=n[0].offsetHeight,s=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),e.top+=s,e.left+=a,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var h=n[0].offsetWidth,l=n[0].offsetHeight;"top"==i&&l!=r&&(e.top=e.top+r-l);var c=this.getViewportAdjustedDelta(i,e,h,l);c.left?e.left+=c.left:e.top+=c.top;var u=/top|bottom/.test(i),p=u?2*c.left-o+h:2*c.top-r+l,d=u?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(p,n[0][d],u)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(e){var n=this,o=t(this.$tip),r=t.Event("hide.bs."+this.type);function s(){"in"!=n.hoverState&&o.detach(),n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),e&&e()}if(this.$element.trigger(r),!r.isDefaultPrevented())return o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",s).emulateTransitionEnd(i.TRANSITION_DURATION):s(),this.hoverState=null,this},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){var i=(e=e||this.$element)[0],n="BODY"==i.tagName,o=i.getBoundingClientRect();null==o.width&&(o=t.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var r=n?{top:0,left:0}:e.offset(),s={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=n?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},o,s,a,r)},i.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,i,n){var o={top:0,left:0};if(!this.$viewport)return o;var r=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-r-s.scroll,h=e.top+r-s.scroll+n;a<s.top?o.top=s.top-a:h>s.top+s.height&&(o.top=s.top+s.height-h)}else{var l=e.left-r,c=e.left+r+i;l<s.left?o.left=s.left-l:c>s.right&&(o.left=s.left+s.width-c)}return o},i.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},i.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},i.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each(function(){var o=t(this),r=o.data("bs.tooltip"),s="object"==e(n)&&n;!r&&/destroy|hide/.test(n)||(r||o.data("bs.tooltip",r=new i(this,s)),"string"==typeof n&&r[n]())})},t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(t)}).call(this,i(50))},function(t,e,i){(function(t){!function(){"use strict";t.widget("ui.numericSpinner",t.ui.spinner,{_format:function(t){return t.toFixed(this._precision())}}),angular.module("myitsmApp").directive("adressCustomFieldNtt",["customFieldLinkFunction","$filter","events",function(e,i,n){return{restrict:"E",replace:!0,scope:{data:"=",isEditable:"=",charLimit:"=",isHideLabel:"="},templateUrl:"views/adress-custom-field-ntt.html",controller:"adressServiceController",link:function(o,r){e(o),o.status={isCollapsed:!0},"Task ID"===o.data.label&&(o.data.maxLength=15),o.$watch("data.setValueFlag",function(t){t&&"#$#"!==t&&(o.onFieldValueChange(),o.data.setValueFlag="#$#")}),t(r).attr("autocomplete","off"),o.isHideLabel&&(o.tooltipToShow=i("customFieldLabelI18n")(o.data)),o.data.maxLength>0&&r.find(".form-control").attr("maxlength",o.data.maxLength);var s=_.cloneDeep(o.data.value);o.$on(n.SAVE_CHANGES,function(){s=_.cloneDeep(o.data.value)}),o.$on(n.DISCARD_CHANGES,function(){o.data.value=_.cloneDeep(s)})}}}])}()}).call(this,i(50))},function(module,exports,__webpack_require__){(function($){var format=__webpack_require__(113);angular.module("myitsmApp").controller("adressServiceController",["$scope","$rootScope","$timeout","events","objectValueMapperService","metadataModel","nttAdressService","$modal","ModuleConfigService","personModel","systemAlertService","nttGenericService",function($scope,$rootScope,$timeout,events,objectValueMapperService,metadataModel,nttAdressService,$modal,ModuleConfigService,personModel,systemAlertService,nttGenericService){$scope.config=ModuleConfigService.getModuleConfig("adressService"),$scope.detailsCache={},$scope.$parent.createPerson=function(){var t=$scope.$parent;t.state.dataIsLoading=!0,personModel.createPerson(t.person).then(function(e){var i=[];$scope.config.mapping.forEach(function(t){t.arId&&i.push({fieldId:t.arId,value:$scope.detailsCache[t.target]})}),nttGenericService.updateArEntriesByFormAndQual({form:"CTM:People",entryId:e.id},i).$promise.then(function(){t.$close(e)}).catch(function(t){t&&t.data&&systemAlertService.error({text:"Could not save adressdata, please edit person profile! "+t.data.error,clear:!1})}).finally(function(){t.state.dataIsLoading=!1,t.$close(e)})}).catch(function(t){t&&t.data&&systemAlertService.error({text:t.data.error,clear:!1})}).finally(function(){t.state.dataIsLoading=!1})},$scope.getAdresses=function(t){return nttAdressService.getAdresses({Address:t,crs:"EPSG:4326"}).then(function(t){return t.features?t.features:[{}]})};var clearAllDetailFields=function(){$scope.useMemory?$scope.detailsCache={}:$scope.config.mapping.forEach(function(t){t.doNotClear||objectValueMapperService.getFieldByName(t.target)&&objectValueMapperService.getFieldByName(t.target).clearValue()})};$scope.updateTicketFields=function(item,detailedItem){var adressProperties={};if(item)if("Adresse"==item.properties.Kategorie||item.properties.AdressID){var tmp={};$.extend(!0,tmp,detailedItem.properties,item.properties),adressProperties=tmp}else adressProperties=item.properties,adressProperties.Location=detailedItem.properties.Location,adressProperties.PostalCode=detailedItem.properties.PostalCode,adressProperties.STRABS=detailedItem.properties.STRABS;else adressProperties=detailedItem.properties;clearAllDetailFields(),adressProperties&&$scope.config&&$scope.config.mapping.forEach(function(obj){var tmpValue=eval("adressProperties."+obj.source);obj.format&&(tmpValue=format(obj.format,tmpValue)),$scope.useMemory?tmpValue&&"undefined"!=tmpValue&&($scope.detailsCache[obj.target]=tmpValue):objectValueMapperService.getFieldByName(obj.target)&&tmpValue&&"undefined"!=tmpValue&&(objectValueMapperService.getFieldByName(obj.target).setValue(tmpValue),objectValueMapperService.getFieldByName(obj.target).value=tmpValue)}),$scope.$broadcast("nttevent_adress_changed")},$scope.selectAdress=function(t){t.properties.searchType="byString",$scope.updateAdress(t)},$scope.updateAdress=function(t){if(t)if(this.data.value=t.properties.Adresse,"byString"==t.properties.searchType){var e=t.geometry.coordinates.join(",");nttAdressService.getAdressInfoByCoord({location:e,crs:"EPSG:4326"}).then(function(e){e.features&&$scope.updateTicketFields(t,e.features[0])})}else"byCoord"==t.properties.searchType&&$scope.updateTicketFields(null,t);else this.data.value="",clearAllDetailFields()};var rootOpenDialogLsitener=$rootScope.$on("openAddressDialogNearBy",function(t,e){$scope.showAdressDialog(e)});$scope.$on("$destroy",function(){rootOpenDialogLsitener()});var hideFields=function(){$scope.config.mapping.forEach(function(t){objectValueMapperService.getFieldByName(t.target)&&(t.hideField&&(objectValueMapperService.getFieldByName(t.target).isHidden=!0),t.readOnly&&(objectValueMapperService.getFieldByName(t.target).isReadOnly=!0))})},initDetails=function(){var t={};$scope.config.mapping.forEach(function(e){e.loadFromTicket&&!$scope.useMemory?objectValueMapperService.getFieldByName(e.target)&&(t[e.source]=objectValueMapperService.getFieldByName(e.target).value):$scope.useMemory&&e.loadFromTicket&&(t[e.source]=$scope.detailsCache&&$scope.detailsCache[e.target]?$scope.detailsCache[e.target]:"")}),$scope.useMemory?$scope.detailsMemory=t:$scope.details=t};$scope.showAdressDialog=function(t){t||(t={}),initDetails(),$modal.open({templateUrl:"views/adress-action-blade.html",controller:"adressSearchDialogController",windowClass:"action-blade",keyboard:"custom",backdrop:"custom",size:"super-large-ntt",resolve:{searchParams:function(){return{data:$scope.data,details:$scope.useMemory?$scope.detailsMemory:$scope.details,ticket:$scope.$parent.ticket,options:t}}}}).result.then(function(){$scope.updateAdress($scope.data.item)},function(){})},$scope.onFieldValueChangeNTT=function(){clearAllDetailFields(),$scope.onFieldValueChange()},hideFields(),initDetails()}])}).call(this,__webpack_require__(50))},function(t,e,i){(function(e){"use strict";function i(t){var e=new Error(t);return e.name="ValueError",e}function n(t){return function(e){var n=Array.prototype.slice.call(arguments,1),o=0,r="UNDEFINED";return e.replace(/([{}])\1|[{](.*?)(?:!(.+?))?[}]/g,function(e,s,a,h){if(null!=s)return s;var l=a;if(l.length>0){if("IMPLICIT"===r)throw i("cannot switch from implicit to explicit numbering");r="EXPLICIT"}else{if("EXPLICIT"===r)throw i("cannot switch from explicit to implicit numbering");r="IMPLICIT",l=String(o),o+=1}var c=l.split("."),u=(/^\d+$/.test(c[0])?c:["0"].concat(c)).reduce(function(t,e){return t.reduce(function(t,i){return null!=i&&e in Object(i)?["function"==typeof i[e]?i[e]():i[e]]:[]},[])},[n]).reduce(function(t,e){return e},"");if(null==h)return u;if(Object.prototype.hasOwnProperty.call(t,h))return t[h](u);throw i('no transformer named "'+h+'"')})}}var o=n({});o.create=n,o.extend=function(t,i){var o=n(i);t.format=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(this),o.apply(e,t)}},t.exports=o}).call(this,this)},function(t,e,i){(function(t){i(115),angular.module("ticketModule").controller("adressSearchDialogController",["$scope","$modalInstance","$timeout","userModel","screenConfigurationModel","ticketService","searchParams","events","systemAlertService","$q","i18nService","objectValueMapperService",function(e,i,n,o,r,s,a,h,l,c,u,p){e.adressFieldIsDirty=!1,e.rendered=!1,i.rendered.then(function(){e.rendered=!0}),e.searchText=_.cloneDeep(a.data.value),e.enableNearbyTicketPanel=!(!a.ticket||"person"==a.ticket.type),e.map=null,e.showNearByTicketPanel=!!a.options.showNearByTicketPanel&&a.options.showNearByTicketPanel,e.distanceRange=a.options.distanceRange,e.selectedStatus=a.options.selectedStatus,e.ticket=a.ticket,(a.details.AdressID||a.details.GIP_NAME_ID||a.details.searchType)&&(e.adressItem={geometry:{coordinates:[a.details["Location.coordinates[0]"],a.details["Location.coordinates[1]"]]},properties:{Adresse:a.data.value,searchType:a.details.searchType}}),e.displayOnly=!!a.options.displayOnly&&a.options.displayOnly,e.adressFieldIsDirty=!1,e.enableSave=function(){return!e.displayOnly&&e.adressFieldIsDirty},e.$on("toggleShowTickets",function(t,i){e.showNearByTicketPanel?e.showNearByTicketPanel=!1:e.showNearByTicketPanel=!0,setTimeout(function(){e.$broadcast("resizeMap")},0)}),e.$on("mapSizeChanged",function(i,n){if(e.showNearByTicketPanel){var o=n+75+"px";t("#nearByTicket").css("top",o);var r=t("#nearByTicket").height()-25,s=r-25;t("#ticketPanel_container").css("height",r),t("#distanceTicketResultList").css("height",s)}else t("#nearByTicket").css("top","")}),e.$on("assignedAdressChanged",function(t,i){i!=e.adressItem&&(e.adressFieldIsDirty=!0),e.adressItem=i});e.close=function(){a.data.value=e.searchText,i.dismiss()},e.submit=function(){e.adressFieldIsDirty&&(a.data.item=e.adressItem),i.close()},e.clickAdressItem=function(){e.adressItem.properties.doNotZoomIn=!1,e.$broadcast("markAdressOnMap",e.adressItem)},e.displayOnly&&e.$on(h.MODAL_BACKDROP_CLICK,function(){e.close()})}])}).call(this,i(50))},function(t,e,i){var n,o,r,s;function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
/* @preserve
* Leaflet 1.6.0, a JS library for interactive maps. http://leafletjs.com
* (c) 2010-2019 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/s=function(t){"use strict";var e=Object.freeze;function i(t){var e,i,n,o;for(i=1,n=arguments.length;i<n;i++)for(e in o=arguments[i])t[e]=o[e];return t}Object.freeze=function(t){return t};var n=Object.create||function(t){return o.prototype=t,new o};function o(){}function r(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var s=0;function h(t){return t._leaflet_id=t._leaflet_id||++s,t._leaflet_id}function l(t,e,i){var n,o,r,s;return s=function(){n=!1,o&&(r.apply(i,o),o=!1)},r=function(){n?o=arguments:(t.apply(i,arguments),setTimeout(s,e),n=!0)}}function c(t,e,i){var n=e[1],o=e[0],r=n-o;return t===n&&i?t:((t-o)%r+r)%r+o}function u(){return!1}function p(t,e){var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}function d(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function f(t){return d(t).split(/\s+/)}function _(t,e){for(var i in t.hasOwnProperty("options")||(t.options=t.options?n(t.options):{}),e)t.options[i]=e[i];return t.options}function g(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}var m=/\{ *([\w_-]+) *\}/g;function v(t,e){return t.replace(m,function(t,i){var n=e[i];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(e)),n})}var y=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function b(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var x="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function O(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var w=0;function T(t){var e=+new Date,i=Math.max(0,16-(e-w));return w=e+i,window.setTimeout(t,i)}var E=window.requestAnimationFrame||O("RequestAnimationFrame")||T,S=window.cancelAnimationFrame||O("CancelAnimationFrame")||O("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function C(t,e,i){if(!i||E!==T)return E.call(window,r(t,e));t.call(e)}function P(t){t&&S.call(window,t)}var I=(Object.freeze||Object)({freeze:e,extend:i,create:n,bind:r,lastId:s,stamp:h,throttle:l,wrapNum:c,falseFn:u,formatNum:p,trim:d,splitWords:f,setOptions:_,getParamString:g,template:v,isArray:y,indexOf:b,emptyImageUrl:x,requestFn:E,cancelFn:S,requestAnimFrame:C,cancelAnimFrame:P});function R(){}R.extend=function(t){function e(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var o=e.__super__=this.prototype,r=n(o);for(var s in(r.constructor=e).prototype=r,this)this.hasOwnProperty(s)&&"prototype"!==s&&"__super__"!==s&&(e[s]=this[s]);return t.statics&&(i(e,t.statics),delete t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=y(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),i.apply(null,[r].concat(t.includes)),delete t.includes),r.options&&(t.options=i(n(r.options),t.options)),i(r,t),r._initHooks=[],r.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=r._initHooks.length;t<e;t++)r._initHooks[t].call(this)}},e},R.include=function(t){return i(this.prototype,t),this},R.mergeOptions=function(t){return i(this.prototype.options,t),this},R.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var M={on:function(t,e,i){if("object"==a(t))for(var n in t)this._on(n,t[n],e);else for(var o=0,r=(t=f(t)).length;o<r;o++)this._on(t[o],e,i);return this},off:function(t,e,i){if(t)if("object"==a(t))for(var n in t)this._off(n,t[n],e);else for(var o=0,r=(t=f(t)).length;o<r;o++)this._off(t[o],e,i);else delete this._events;return this},_on:function(t,e,i){this._events=this._events||{};var n=this._events[t];n||(n=[],this._events[t]=n),i===this&&(i=void 0);for(var o={fn:e,ctx:i},r=n,s=0,a=r.length;s<a;s++)if(r[s].fn===e&&r[s].ctx===i)return;r.push(o)},_off:function(t,e,i){var n,o,r;if(this._events&&(n=this._events[t]))if(e){if(i===this&&(i=void 0),n)for(o=0,r=n.length;o<r;o++){var s=n[o];if(s.ctx===i&&s.fn===e)return s.fn=u,this._firingCount&&(this._events[t]=n=n.slice()),void n.splice(o,1)}}else{for(o=0,r=n.length;o<r;o++)n[o].fn=u;delete this._events[t]}},fire:function(t,e,n){if(!this.listens(t,n))return this;var o=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var s=0,a=r.length;s<a;s++){var h=r[s];h.fn.call(h.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,e){var i=this._events&&this._events[t];if(i&&i.length)return!0;if(e)for(var n in this._eventParents)if(this._eventParents[n].listens(t,e))return!0;return!1},once:function(t,e,i){if("object"==a(t)){for(var n in t)this.once(n,t[n],e);return this}var o=r(function(){this.off(t,e,i).off(t,o,i)},this);return this.on(t,e,i).on(t,o,i)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[h(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[h(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),!0)}};M.addEventListener=M.on,M.removeEventListener=M.clearAllEventListeners=M.off,M.addOneTimeEventListener=M.once,M.fireEvent=M.fire,M.hasEventListeners=M.listens;var j=R.extend(M);function k(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var A=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};function D(t,e,i){return t instanceof k?t:y(t)?new k(t[0],t[1]):null==t?t:"object"==a(t)&&"x"in t&&"y"in t?new k(t.x,t.y):new k(t,e,i)}function F(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function N(t,e){return!t||t instanceof F?t:new F(t,e)}function z(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function B(t,e){return t instanceof z?t:new z(t,e)}function G(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function Z(t,e,i){return t instanceof G?t:y(t)&&"object"!=a(t[0])?3===t.length?new G(t[0],t[1],t[2]):2===t.length?new G(t[0],t[1]):null:null==t?t:"object"==a(t)&&"lat"in t?new G(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new G(t,e,i)}k.prototype={clone:function(){return new k(this.x,this.y)},add:function(t){return this.clone()._add(D(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(D(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new k(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new k(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=D(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=D(t)).x===this.x&&t.y===this.y},contains:function(t){return t=D(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}},F.prototype={extend:function(t){return t=D(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new k((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new k(this.min.x,this.max.y)},getTopRight:function(){return new k(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t="number"==typeof t[0]||t instanceof k?D(t):N(t))instanceof F?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=N(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>=e.x&&n.x<=i.x,s=o.y>=e.y&&n.y<=i.y;return r&&s},overlaps:function(t){t=N(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>e.x&&n.x<i.x,s=o.y>e.y&&n.y<i.y;return r&&s},isValid:function(){return!(!this.min||!this.max)}},z.prototype={extend:function(t){var e,i,n=this._southWest,o=this._northEast;if(t instanceof G)i=e=t;else{if(!(t instanceof z))return t?this.extend(Z(t)||B(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||o?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),o.lat=Math.max(i.lat,o.lat),o.lng=Math.max(i.lng,o.lng)):(this._southWest=new G(e.lat,e.lng),this._northEast=new G(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new z(new G(e.lat-n,e.lng-o),new G(i.lat+n,i.lng+o))},getCenter:function(){return new G((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 G(this.getNorth(),this.getWest())},getSouthEast:function(){return new G(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 G||"lat"in t?Z(t):B(t);var e,i,n=this._southWest,o=this._northEast;return t instanceof z?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=B(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&n.lat<=i.lat,s=o.lng>=e.lng&&n.lng<=i.lng;return r&&s},overlaps:function(t){t=B(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&n.lat<i.lat,s=o.lng>e.lng&&n.lng<i.lng;return r&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=B(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}};var W,Y={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t);return new F(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!(G.prototype={equals:function(t,e){return!!t&&(t=Z(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("+p(this.lat,t)+", "+p(this.lng,t)+")"},distanceTo:function(t){return V.distance(this,Z(t))},wrap:function(){return V.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return B([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new G(this.lat,this.lng,this.alt)}}),wrapLatLng:function(t){var e=this.wrapLng?c(t.lng,this.wrapLng,!0):t.lng;return new G(this.wrapLat?c(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,o=e.lng-i.lng;if(0==n&&0==o)return t;var r=t.getSouthWest(),s=t.getNorthEast();return new z(new G(r.lat-n,r.lng-o),new G(s.lat-n,s.lng-o))}},V=i({},Y,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,r=Math.sin((e.lat-t.lat)*i/2),s=Math.sin((e.lng-t.lng)*i/2),a=r*r+Math.cos(n)*Math.cos(o)*s*s,h=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*h}}),X=6378137,U={R:X,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=Math.sin(n*e);return new k(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new G((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(W=X*Math.PI,new F([-W,-W],[W,W]))};function K(t,e,i,n){if(y(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=n}function H(t,e,i,n){return new K(t,e,i,n)}K.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 k((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var $,q=i({},V,{code:"EPSG:3857",projection:U,transformation:($=.5/(Math.PI*U.R),H($,.5,-$,.5))}),J=i({},q,{code:"EPSG:900913"});function Q(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function tt(t,e){var i,n,o,r,s,a,h="";for(i=0,o=t.length;i<o;i++){for(n=0,r=(s=t[i]).length;n<r;n++)h+=(n?"L":"M")+(a=s[n]).x+" "+a.y;h+=e?Mt?"z":"x":""}return h||"M0 0"}var et=document.documentElement.style,it="ActiveXObject"in window,nt=it&&!document.addEventListener,ot="msLaunchUri"in navigator&&!("documentMode"in document),rt=kt("webkit"),st=kt("android"),at=kt("android 2")||kt("android 3"),ht=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),lt=st&&kt("Google")&&ht<537&&!("AudioNode"in window),ct=!!window.opera,ut=kt("chrome"),pt=kt("gecko")&&!rt&&!ct&&!it,dt=!ut&&kt("safari"),ft=kt("phantom"),_t="OTransition"in et,gt=0===navigator.platform.indexOf("Win"),mt=it&&"transition"in et,vt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!at,yt="MozPerspective"in et,bt=!window.L_DISABLE_3D&&(mt||vt||yt)&&!_t&&!ft,xt="undefined"!=typeof orientation||kt("mobile"),Ot=xt&&rt,wt=xt&&vt,Tt=!window.PointerEvent&&window.MSPointerEvent,Et=!(rt||!window.PointerEvent&&!Tt),St=!window.L_NO_TOUCH&&(Et||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Ct=xt&&ct,Pt=xt&&pt,It=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),Lt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",u,e),window.removeEventListener("testPassiveEventSupport",u,e)}catch(t){}return t},Rt=!!document.createElement("canvas").getContext,Mt=!(!document.createElementNS||!Q("svg").createSVGRect),jt=!Mt&&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"==a(e.adj)}catch(t){return!1}}();function kt(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var At=(Object.freeze||Object)({ie:it,ielt9:nt,edge:ot,webkit:rt,android:st,android23:at,androidStock:lt,opera:ct,chrome:ut,gecko:pt,safari:dt,phantom:ft,opera12:_t,win:gt,ie3d:mt,webkit3d:vt,gecko3d:yt,any3d:bt,mobile:xt,mobileWebkit:Ot,mobileWebkit3d:wt,msPointer:Tt,pointer:Et,touch:St,mobileOpera:Ct,mobileGecko:Pt,retina:It,passiveEvents:Lt,canvas:Rt,svg:Mt,vml:jt}),Dt=Tt?"MSPointerDown":"pointerdown",Ft=Tt?"MSPointerMove":"pointermove",Nt=Tt?"MSPointerUp":"pointerup",zt=Tt?"MSPointerCancel":"pointercancel",Bt=["INPUT","SELECT","OPTION"],Gt={},Zt=!1,Wt=0;function Yt(t){Gt[t.pointerId]=t,Wt++}function Vt(t){Gt[t.pointerId]&&(Gt[t.pointerId]=t)}function Xt(t){delete Gt[t.pointerId],Wt--}function Ut(t,e){for(var i in t.touches=[],Gt)t.touches.push(Gt[i]);t.changedTouches=[t],e(t)}var Kt,Ht,$t,qt,Jt,Qt=Tt?"MSPointerDown":Et?"pointerdown":"touchstart",te=Tt?"MSPointerUp":Et?"pointerup":"touchend",ee="_leaflet_",ie=ve(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ne=ve(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),oe="webkitTransition"===ne||"OTransition"===ne?ne+"End":"transitionend";function re(t){return"string"==typeof t?document.getElementById(t):t}function se(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function ae(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function he(t){var e=t.parentNode;e&&e.removeChild(t)}function le(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ce(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ue(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function pe(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=ge(t);return 0<i.length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function de(t,e){if(void 0!==t.classList)for(var i=f(e),n=0,o=i.length;n<o;n++)t.classList.add(i[n]);else if(!pe(t,e)){var r=ge(t);_e(t,(r?r+" ":"")+e)}}function fe(t,e){void 0!==t.classList?t.classList.remove(e):_e(t,d((" "+ge(t)+" ").replace(" "+e+" "," ")))}function _e(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function ge(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function me(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}(t,e)}function ve(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function ye(t,e,i){var n=e||new k(0,0);t.style[ie]=(mt?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function be(t,e){t._leaflet_pos=e,bt?ye(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function xe(t){return t._leaflet_pos||new k(0,0)}if("onselectstart"in document)Kt=function(){Le(window,"selectstart",Ne)},Ht=function(){Me(window,"selectstart",Ne)};else{var Oe=ve(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Kt=function(){if(Oe){var t=document.documentElement.style;$t=t[Oe],t[Oe]="none"}},Ht=function(){Oe&&(document.documentElement.style[Oe]=$t,$t=void 0)}}function we(){Le(window,"dragstart",Ne)}function Te(){Me(window,"dragstart",Ne)}function Ee(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Se(),Jt=(qt=t).style.outline,t.style.outline="none",Le(window,"keydown",Se))}function Se(){qt&&(qt.style.outline=Jt,Jt=qt=void 0,Me(window,"keydown",Se))}function Ce(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function Pe(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ie=(Object.freeze||Object)({TRANSFORM:ie,TRANSITION:ne,TRANSITION_END:oe,get:re,getStyle:se,create:ae,remove:he,empty:le,toFront:ce,toBack:ue,hasClass:pe,addClass:de,removeClass:fe,setClass:_e,getClass:ge,setOpacity:me,testProp:ve,setTransform:ye,setPosition:be,getPosition:xe,disableTextSelection:Kt,enableTextSelection:Ht,disableImageDrag:we,enableImageDrag:Te,preventOutline:Ee,restoreOutline:Se,getSizedParentNode:Ce,getScale:Pe});function Le(t,e,i,n){if("object"==a(e))for(var o in e)je(t,o,e[o],i);else for(var r=0,s=(e=f(e)).length;r<s;r++)je(t,e[r],i,n);return this}var Re="_leaflet_events";function Me(t,e,i,n){if("object"==a(e))for(var o in e)ke(t,o,e[o],i);else if(e)for(var r=0,s=(e=f(e)).length;r<s;r++)ke(t,e[r],i,n);else{for(var h in t[Re])ke(t,h,t[Re][h]);delete t[Re]}return this}function je(t,e,i,n){var o=e+h(i)+(n?"_"+h(n):"");if(t[Re]&&t[Re][o])return this;var s=function(e){return i.call(n||t,e||window.event)},a=s;Et&&0===e.indexOf("touch")?function(t,e,i,n){"touchstart"===e?function(t,e,i){var n=r(function(t){if("mouse"!==t.pointerType&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(Bt.indexOf(t.target.tagName)<0))return;Ne(t)}Ut(t,e)});t["_leaflet_touchstart"+i]=n,t.addEventListener(Dt,n,!1),Zt||(document.documentElement.addEventListener(Dt,Yt,!0),document.documentElement.addEventListener(Ft,Vt,!0),document.documentElement.addEventListener(Nt,Xt,!0),document.documentElement.addEventListener(zt,Xt,!0),Zt=!0)}(t,i,n):"touchmove"===e?function(t,e,i){function n(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&Ut(t,e)}t["_leaflet_touchmove"+i]=n,t.addEventListener(Ft,n,!1)}(t,i,n):"touchend"===e&&function(t,e,i){function n(t){Ut(t,e)}t["_leaflet_touchend"+i]=n,t.addEventListener(Nt,n,!1),t.addEventListener(zt,n,!1)}(t,i,n)}(t,e,s,o):!St||"dblclick"!==e||Et&&ut?"addEventListener"in t?"mousewheel"===e?t.addEventListener("onwheel"in t?"wheel":"mousewheel",s,!!Lt&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(s=function(e){e=e||window.event,Ue(t,e)&&a(e)},t.addEventListener("mouseenter"===e?"mouseover":"mouseout",s,!1)):("click"===e&&st&&(s=function(t){!function(t,e){var i=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,n=We&&i-We;if(n&&100<n&&n<500||t.target._simulatedClick&&!t._simulated)return ze(t);We=i,e(t)}(t,a)}),t.addEventListener(e,s,!1)):"attachEvent"in t&&t.attachEvent("on"+e,s):function(t,e,i){var n,o,r=!1;function s(t){var e;if(Et){if(!ot||"mouse"===t.pointerType)return;e=Wt}else e=t.touches.length;if(!(1<e)){var i=Date.now(),s=i-(n||i);o=t.touches?t.touches[0]:t,r=0<s&&s<=250,n=i}}function a(t){if(r&&!o.cancelBubble){if(Et){if(!ot||"mouse"===t.pointerType)return;var i,s,a={};for(s in o)i=o[s],a[s]=i&&i.bind?i.bind(o):i;o=a}o.type="dblclick",o.button=0,e(o),n=null}}t[ee+Qt+i]=s,t[ee+te+i]=a,t[ee+"dblclick"+i]=e,t.addEventListener(Qt,s,!!Lt&&{passive:!1}),t.addEventListener(te,a,!!Lt&&{passive:!1}),t.addEventListener("dblclick",e,!1)}(t,s,o),t[Re]=t[Re]||{},t[Re][o]=s}function ke(t,e,i,n){var o=e+h(i)+(n?"_"+h(n):""),r=t[Re]&&t[Re][o];if(!r)return this;Et&&0===e.indexOf("touch")?function(t,e,i){var n=t["_leaflet_"+e+o];"touchstart"===e?t.removeEventListener(Dt,n,!1):"touchmove"===e?t.removeEventListener(Ft,n,!1):"touchend"===e&&(t.removeEventListener(Nt,n,!1),t.removeEventListener(zt,n,!1))}(t,e):!St||"dblclick"!==e||Et&&ut?"removeEventListener"in t?"mousewheel"===e?t.removeEventListener("onwheel"in t?"wheel":"mousewheel",r,!!Lt&&{passive:!1}):t.removeEventListener("mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,r,!1):"detachEvent"in t&&t.detachEvent("on"+e,r):function(t,e){var i=t[ee+Qt+e],n=t[ee+te+e],o=t[ee+"dblclick"+e];t.removeEventListener(Qt,i,!!Lt&&{passive:!1}),t.removeEventListener(te,n,!!Lt&&{passive:!1}),ot||t.removeEventListener("dblclick",o,!1)}(t,o),t[Re][o]=null}function Ae(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Xe(t),this}function De(t){return je(t,"mousewheel",Ae),this}function Fe(t){return Le(t,"mousedown touchstart dblclick",Ae),je(t,"click",Ve),this}function Ne(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function ze(t){return Ne(t),Ae(t),this}function Be(t,e){if(!e)return new k(t.clientX,t.clientY);var i=Pe(e),n=i.boundingClientRect;return new k((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Ge=gt&&ut?2*window.devicePixelRatio:pt?window.devicePixelRatio:1;function Ze(t){return ot?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Ge: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}var We,Ye={};function Ve(t){Ye[t.type]=!0}function Xe(t){var e=Ye[t.type];return Ye[t.type]=!1,e}function Ue(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}var Ke=(Object.freeze||Object)({on:Le,off:Me,stopPropagation:Ae,disableScrollPropagation:De,disableClickPropagation:Fe,preventDefault:Ne,stop:ze,getMousePosition:Be,getWheelDelta:Ze,fakeStop:Ve,skipped:Xe,isExternalTarget:Ue,addListener:Le,removeListener:Me}),He=j.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=xe(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,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),be(this._el,i),this.fire("step")},_complete:function(){P(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),$e=j.extend({options:{crs:q,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=_(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=r(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(Z(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ne&&bt&&!Ct&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Le(this._proxy,oe,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,n){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(Z(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=i({animate:n.animate},n.zoom),n.pan=i({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e),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||(bt?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(bt?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),r=(t instanceof k?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),s=this.containerPointToLatLng(o.add(r));return this.setView(s,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():B(t);var i=D(e.paddingTopLeft||e.padding||[0,0]),n=D(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var r=n.subtract(i).divideBy(2),s=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o);return{center:this.unproject(s.add(a).divideBy(2).add(r),o),zoom:o}},fitBounds:function(t,e){if(!(t=B(t)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=D(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new He,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){de(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!bt)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),o=this.project(t),r=this.getSize(),s=this._zoom;t=Z(t),e=void 0===e?s:e;var a=Math.max(r.x,r.y),h=a*this.getZoomScale(s,e),l=o.distanceTo(n)||1,c=1.42,u=c*c;function p(t){var e=(h*h-a*a+(t?-1:1)*u*u*l*l)/(2*(t?h:a)*u*l),i=Math.sqrt(e*e+1)-e;return i<1e-9?-18:Math.log(i)}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}var _=p(0);var g=Date.now(),m=(p(1)-_)/c,v=i.duration?1e3*i.duration:1e3*m*.8;return this._moveStart(!0,i.noMoveStart),function i(){var r=(Date.now()-g)/v,h=function(t){return 1-Math.pow(1-t,1.5)}(r)*m;r<=1?(this._flyToFrame=C(i,this),this._move(this.unproject(n.add(o.subtract(n).multiplyBy(function(t){return a*(f(_)*function(t){return d(t)/f(t)}(_+c*t)-d(_))/u}(h)/l)),s),this.getScaleZoom(a/function(t){return a*(f(_)/f(_+c*t))}(h),s),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return(t=B(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,B(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=D((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=D(e.paddingBottomRight||e.padding||[0,0]),o=this.getCenter(),r=this.project(o),s=this.project(t),a=this.getPixelBounds(),h=a.getSize().divideBy(2),l=N([a.min.add(i),a.max.subtract(n)]);if(!l.contains(s)){this._enforcingBounds=!0;var c=r.subtract(s),u=D(s.x+c.x,s.y+c.y);(s.x<l.min.x||s.x>l.max.x)&&(u.x=r.x-c.x,0<c.x?u.x+=h.x-i.x:u.x-=h.x-n.x),(s.y<l.min.y||s.y>l.max.y)&&(u.y=r.y-c.y,0<c.y?u.y+=h.y-i.y:u.y-=h.y-n.y),this.panTo(this.unproject(u),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),o=e.divideBy(2).round(),s=n.divideBy(2).round(),a=o.subtract(s);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=r(this._handleGeolocationResponse,this),n=r(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){var e=new G(t.coords.latitude,t.coords.longitude),i=e.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(i);this.setView(e,n.maxZoom?Math.min(o,n.maxZoom):o)}var r={latlng:e,bounds:i,timestamp:t.timestamp};for(var s in t.coords)"number"==typeof t.coords[s]&&(r[s]=t.coords[s]);this.fire("locationfound",r)},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this._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(),he(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(P(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)he(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=ae("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new z(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=B(t),i=D(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(i),l=N(this.project(a,n),this.project(s,n)).getSize(),c=bt?this.options.zoomSnap:1,u=h.x/l.x,p=h.y/l.y,d=e?Math.max(u,p):Math.min(u,p);return n=this.getScaleZoom(d,n),c&&(n=Math.round(n/(c/100))*(c/100),n=e?Math.ceil(n/c)*c:Math.floor(n/c)*c),Math.max(o,Math.min(r,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new k(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new F(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(Z(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(D(t),e)},layerPointToLatLng:function(t){var e=D(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(Z(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Z(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(B(t))},distance:function(t,e){return this.options.crs.distance(Z(t),Z(e))},containerPointToLayerPoint:function(t){return D(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return D(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(D(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Z(t)))},mouseEventToContainerPoint:function(t){return Be(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=re(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Le(e,"scroll",this._onScroll,this),this._containerId=h(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&bt,de(t,"leaflet-container"+(St?" leaflet-touch":"")+(It?" leaflet-retina":"")+(nt?" leaflet-oldie":"")+(dt?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=se(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),be(this._mapPane,new k(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(de(t.markerPane,"leaflet-zoom-hide"),de(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){be(this._mapPane,new k(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var n=this._zoom!==e;this._moveStart(n,!1)._move(t,e)._moveEnd(n),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i){void 0===e&&(e=this._zoom);var n=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return P(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){be(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={};var e=t?Me:Le;e((this._targets[h(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),bt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){P(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 i,n=[],o="mouseout"===e||"mouseover"===e,r=t.target||t.srcElement,s=!1;r;){if((i=this._targets[h(r)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(i)){s=!0;break}if(i&&i.listens(e,!0)){if(o&&!Ue(r,t))break;if(n.push(i),o)break}if(r===this._container)break;r=r.parentNode}return n.length||s||o||!Ue(r,t)||(n=[this]),n},_handleDOMEvent:function(t){if(this._loaded&&!Xe(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||Ee(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var o=i({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,e))).length){var r=n[0];"contextmenu"===e&&r.listens(e,!0)&&Ne(t);var s={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var a=r.getLatLng&&(!r._radius||r._radius<=10);s.containerPoint=a?this.latLngToContainerPoint(r.getLatLng()):this.mouseEventToContainerPoint(t),s.layerPoint=this.containerPointToLayerPoint(s.containerPoint),s.latlng=a?r.getLatLng():this.layerPointToLatLng(s.layerPoint)}for(var h=0;h<n.length;h++)if(n[h].fire(e,s,!0),s.originalEvent._stopped||!1===n[h].options.bubblingMouseEvents&&-1!==b(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 xe(this._mapPane)||new k(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return N([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),o=this.getSize().divideBy(2),r=new F(n.subtract(o),n.add(o)),s=this._getBoundsOffset(r,i,e);return s.round().equals([0,0])?t:this.unproject(n.add(s),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new F(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=N(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),o=n.min.subtract(t.min),r=n.max.subtract(t.max);return new k(this._rebound(o.x,-r.x),this._rebound(o.y,-r.y))},_rebound:function(t,e){return 0<t+e?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=bt?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){fe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=ae("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=ie,i=this._proxy.style[e];ye(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){he(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ye(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(o)||(C(function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)},this),0))},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,de(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&fe(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),C(function(){this._moveEnd(!0)},this))}});function qe(t){return new Je(t)}var Je=R.extend({options:{position:"topright"},initialize:function(t){_(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return de(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(he(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0<t.screenX&&0<t.screenY&&this._map.getContainer().focus()}});$e.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=ae("div",e+"control-container",this._container);function n(n,o){var r=e+n+" "+e+o;t[n+o]=ae("div",r,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)he(this._controlCorners[t]);he(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Qe=Je.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in _(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),(this._map=t).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 Je.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(h(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){de(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?(de(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):fe(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return fe(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=ae("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Fe(e),De(e);var n=this._section=ae("section",t+"-list");i&&(this._map.on("click",this.collapse,this),st||Le(e,{mouseenter:this.expand,mouseleave:this.collapse},this));var o=this._layersLink=ae("a",t+"-toggle",e);o.href="#",o.title="Layers",St?(Le(o,"click",ze),Le(o,"click",this.expand,this)):Le(o,"focus",this.expand,this),i||this.expand(),this._baseLayersList=ae("div",t+"-base",n),this._separator=ae("div",t+"-separator",n),this._overlaysList=ae("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&h(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(r(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;le(this._baseLayersList),le(this._overlaysList),this._layerControlInputs=[];var t,e,i,n,o=0;for(i=0;i<this._layers.length;i++)n=this._layers[i],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,o+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&1<o,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(h(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+h(this),n),this._layerControlInputs.push(e),e.layerId=h(t.layer),Le(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var r=document.createElement("div");return i.appendChild(r),r.appendChild(e),r.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var r=i.length-1;0<=r;r--)t=i[r],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(r=0;r<o.length;r++)this._map.hasLayer(o[r])&&this._map.removeLayer(o[r]);for(r=0;r<n.length;r++)this._map.hasLayer(n[r])||this._map.addLayer(n[r]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),o=i.length-1;0<=o;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),ti=Je.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=ae("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var r=ae("a",i,n);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),Fe(r),Le(r,"click",ze),Le(r,"click",o,this),Le(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";fe(this._zoomInButton,e),fe(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMinZoom()||de(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMaxZoom()||de(this._zoomInButton,e)}});$e.mergeOptions({zoomControl:!0}),$e.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ti,this.addControl(this.zoomControl))});var ei=Je.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=ae("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=ae("div",e,i)),t.imperial&&(this._iScale=ae("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,o=3.2808399*t;5280<o?(e=o/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(10<=i?10:5<=i?5:3<=i?3:2<=i?2:1)}}),ii=Je.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){_(this,t),this._attributions={}},onAdd:function(t){for(var e in(t.attributionControl=this)._container=ae("div","leaflet-control-attribution"),Fe(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(" | ")}}});$e.mergeOptions({attributionControl:!0}),$e.addInitHook(function(){this.options.attributionControl&&(new ii).addTo(this)}),Je.Layers=Qe,Je.Zoom=ti,Je.Scale=ei,Je.Attribution=ii,qe.layers=function(t,e,i){return new Qe(t,e,i)},qe.zoom=function(t){return new ti(t)},qe.scale=function(t){return new ei(t)},qe.attribution=function(t){return new ii(t)};var ni=R.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}});ni.addTo=function(t,e){return t.addHandler(e,this),this};var oi,ri={Events:M},si=St?"touchstart mousedown":"mousedown",ai={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},hi={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},li=j.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){_(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(Le(this._dragStartTarget,si,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(li._dragging===this&&this.finishDrag(),Me(this._dragStartTarget,si,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!pe(this._element,"leaflet-zoom-anim")&&!(li._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((li._dragging=this)._preventOutline&&Ee(this._element),we(),Kt(),this._moving)))){this.fire("down");var e=t.touches?t.touches[0]:t,i=Ce(this._element);this._startPoint=new k(e.clientX,e.clientY),this._parentScale=Pe(i),Le(document,hi[t.type],this._onMove,this),Le(document,ai[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&1<t.touches.length)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new k(e.clientX,e.clientY)._subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,Ne(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=xe(this._element).subtract(i),de(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),de(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,P(this._animRequest),this._lastEvent=t,this._animRequest=C(this._updatePosition,this,!0)))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),be(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in fe(document.body,"leaflet-dragging"),this._lastTarget&&(fe(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),hi)Me(document,hi[t],this._onMove,this),Me(document,ai[t],this._onUp,this);Te(),Ht(),this._moved&&this._moving&&(P(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,li._dragging=!1}});function ci(t,e){if(!e||!t.length)return t.slice();var i=e*e;return function(t,e){var i=t.length,n=new(("undefined"==typeof Uint8Array?"undefined":a(Uint8Array))!=void 0+""?Uint8Array:Array)(i);n[0]=n[i-1]=1,function t(e,i,n,o,r){var s,a,h,l=0;for(a=o+1;a<=r-1;a++)l<(h=_i(e[a],e[o],e[r],!0))&&(s=a,l=h);n<l&&(i[s]=1,t(e,i,n,o,s),t(e,i,n,s,r))}(t,n,e,0,i-1);var o,r=[];for(o=0;o<i;o++)n[o]&&r.push(t[o]);return r}(t=function(t,e){for(var i=[t[0]],n=1,o=0,r=t.length;n<r;n++)s=t[n],e<(h=(a=t[o]).x-s.x)*h+(l=a.y-s.y)*l&&(i.push(t[n]),o=n);var s,a,h,l;return o<r-1&&i.push(t[r-1]),i}(t,i),i)}function ui(t,e,i){return Math.sqrt(_i(t,e,i,!0))}function pi(t,e,i,n,o){var r,s,a,h=n?oi:fi(t,i),l=fi(e,i);for(oi=l;;){if(!(h|l))return[t,e];if(h&l)return!1;a=fi(s=di(t,e,r=h||l,i,o),i),r===h?(t=s,h=a):(e=s,l=a)}}function di(t,e,i,n,o){var r,s,a=e.x-t.x,h=e.y-t.y,l=n.min,c=n.max;return 8&i?(r=t.x+a*(c.y-t.y)/h,s=c.y):4&i?(r=t.x+a*(l.y-t.y)/h,s=l.y):2&i?(r=c.x,s=t.y+h*(c.x-t.x)/a):1&i&&(r=l.x,s=t.y+h*(l.x-t.x)/a),new k(r,s,o)}function fi(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function _i(t,e,i,n){var o,r=e.x,s=e.y,a=i.x-r,h=i.y-s,l=a*a+h*h;return 0<l&&(1<(o=((t.x-r)*a+(t.y-s)*h)/l)?(r=i.x,s=i.y):0<o&&(r+=a*o,s+=h*o)),a=t.x-r,h=t.y-s,n?a*a+h*h:new k(r,s)}function gi(t){return!y(t[0])||"object"!=a(t[0][0])&&void 0!==t[0][0]}function mi(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),gi(t)}var vi=(Object.freeze||Object)({simplify:ci,pointToSegmentDistance:ui,closestPointOnSegment:function(t,e,i){return _i(t,e,i)},clipSegment:pi,_getEdgeIntersection:di,_getBitCode:fi,_sqClosestPointOnSegment:_i,isFlat:gi,_flat:mi});function yi(t,e,i){var n,o,r,s,a,h,l,c,u,p=[1,4,2,8];for(o=0,l=t.length;o<l;o++)t[o]._code=fi(t[o],e);for(s=0;s<4;s++){for(c=p[s],n=[],o=0,r=(l=t.length)-1;o<l;r=o++)a=t[o],h=t[r],a._code&c?h._code&c||((u=di(h,a,c,e,i))._code=fi(u,e),n.push(u)):(h._code&c&&((u=di(h,a,c,e,i))._code=fi(u,e),n.push(u)),n.push(a));t=n}return t}var bi,xi=(Object.freeze||Object)({clipPolygon:yi}),Oi={project:function(t){return new k(t.lng,t.lat)},unproject:function(t){return new G(t.y,t.x)},bounds:new F([-180,-90],[180,90])},wi={R:6378137,R_MINOR:6356752.314245179,bounds:new F([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),s=r*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-s)/(1+s),r/2);return n=-i*Math.log(Math.max(a,1e-10)),new k(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,o=this.R_MINOR/n,r=Math.sqrt(1-o*o),s=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(s),h=0,l=.1;h<15&&1e-7<Math.abs(l);h++)e=r*Math.sin(a),e=Math.pow((1-e)/(1+e),r/2),a+=l=Math.PI/2-2*Math.atan(s*e)-a;return new G(a*i,t.x*i/n)}},Ti=(Object.freeze||Object)({LonLat:Oi,Mercator:wi,SphericalMercator:U}),Ei=i({},V,{code:"EPSG:3395",projection:wi,transformation:(bi=.5/(Math.PI*wi.R),H(bi,.5,-bi,.5))}),Si=i({},V,{code:"EPSG:4326",projection:Oi,transformation:H(1/180,1,-1/180,.5)}),Ci=i({},Y,{projection:Oi,transformation:H(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});Y.Earth=V,Y.EPSG3395=Ei,Y.EPSG3857=q,Y.EPSG900913=J,Y.EPSG4326=Si,Y.Simple=Ci;var Pi=j.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[h(t)]=this},removeInteractiveTarget:function(t){return delete this._map._targets[h(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",function(){e.off(i,this)},this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});$e.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=h(t);return this._layers[e]||((this._layers[e]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=h(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer:function(t){return!!t&&h(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?y(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[h(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=h(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].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,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ii=Pi.extend({initialize:function(t,e){var i,n;if(_(this,e),this._layers={},t)for(i=0,n=t.length;i<n;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return h(t)}}),Li=Ii.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ii.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),Ii.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 z;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Ri=R.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){_(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(n,t),n},_setIconStyles:function(t,e){var i=this.options,n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var o=D(n),r=D("shadow"===e&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),r&&(t.style.marginLeft=-r.x+"px",t.style.marginTop=-r.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return It&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),Mi=Ri.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 Mi.imagePath||(Mi.imagePath=this._detectIconPath()),(this.options.imagePath||Mi.imagePath)+Ri.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=ae("div","leaflet-default-icon-path",document.body),e=se(t,"background-image")||se(t,"backgroundImage");return document.body.removeChild(t),null===e||0!==e.indexOf("url")?"":e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),ji=ni.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new li(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),de(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&&fe(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=xe(e._icon),s=i.getPixelBounds(),a=i.getPixelOrigin(),h=N(s.min._subtract(a).add(o),s.max._subtract(a).subtract(o));if(!h.contains(r)){var l=D((Math.max(h.max.x,r.x)-h.max.x)/(s.max.x-h.max.x)-(Math.min(h.min.x,r.x)-h.min.x)/(s.min.x-h.min.x),(Math.max(h.max.y,r.y)-h.max.y)/(s.max.y-h.max.y)-(Math.min(h.min.y,r.y)-h.min.y)/(s.min.y-h.min.y)).multiplyBy(n);i.panBy(l,{animate:!1}),this._draggable._newPos._add(l),this._draggable._startPos._add(l),be(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().fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(P(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=xe(e._icon),o=e._map.layerPointToLatLng(n);i&&be(i,n),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){P(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),ki=Pi.extend({options:{icon:new Mi,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){_(this,e),this._latlng=Z(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=Z(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),de(i,e),t.keyboard&&(i.tabIndex="0"),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var o=t.icon.createShadow(this._shadow),r=!1;o!==this._shadow&&(this._removeShadow(),r=!0),o&&(de(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&r&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),he(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&he(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&be(this._icon,t),this._shadow&&be(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&&(de(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),ji)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new ji(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&&me(this._icon,t),this._shadow&&me(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),Ai=Pi.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 _(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&t.hasOwnProperty("weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),Di=Ai.extend({options:{fill:!0,radius:10},initialize:function(t,e){_(this,e),this._latlng=Z(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=Z(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 Ai.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new F(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),Fi=Di.extend({initialize:function(t,e,n){if("number"==typeof e&&(e=i({},n,{radius:e})),_(this,e),this._latlng=Z(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 z(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Ai.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===V.distance){var o=Math.PI/180,r=this._mRadius/V.R/o,s=i.project([e+r,t]),a=i.project([e-r,t]),h=s.add(a).divideBy(2),l=i.unproject(h).lat,c=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(l*o))/(Math.cos(e*o)*Math.cos(l*o)))/o;!isNaN(c)&&0!==c||(c=r/Math.cos(Math.PI/180*e)),this._point=h.subtract(i.getPixelOrigin()),this._radius=isNaN(c)?0:h.x-i.project([l,t-c]).x,this._radiusY=h.y-s.y}else{var u=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(u).x}this._updateBounds()}}),Ni=Ai.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){_(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,i,n=1/0,o=null,r=_i,s=0,a=this._parts.length;s<a;s++)for(var h=this._parts[s],l=1,c=h.length;l<c;l++){var u=r(t,e=h[l-1],i=h[l],!0);u<n&&(n=u,o=r(t,e,i))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,i,n,o,r,s,a=this._rings[0],h=a.length;if(!h)return null;for(e=t=0;t<h-1;t++)e+=a[t].distanceTo(a[t+1])/2;if(0===e)return this._map.layerPointToLatLng(a[0]);for(n=t=0;t<h-1;t++)if(o=a[t],r=a[t+1],e<(n+=i=o.distanceTo(r)))return s=(n-e)/i,this._map.layerPointToLatLng([r.x-s*(r.x-o.x),r.y-s*(r.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=Z(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new z,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return gi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=gi(t),n=0,o=t.length;n<o;n++)i?(e[n]=Z(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new F;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 k(t,t);this._pxBounds=new F([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,i){var n,o,r=t[0]instanceof G,s=t.length;if(r){for(o=[],n=0;n<s;n++)o[n]=this._map.latLngToLayerPoint(t[n]),i.extend(o[n]);e.push(o)}else for(n=0;n<s;n++)this._projectLatlngs(t[n],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,i,n,o,r,s,a,h=this._parts;for(n=e=0,o=this._rings.length;e<o;e++)for(i=0,r=(a=this._rings[e]).length;i<r-1;i++)(s=pi(a[i],a[i+1],t,i,!0))&&(h[n]=h[n]||[],h[n].push(s[0]),s[1]===a[i+1]&&i!==r-2||(h[n].push(s[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=ci(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,o,r,s,a,h=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,r=this._parts.length;i<r;i++)for(n=0,o=(s=(a=this._parts[i]).length)-1;n<s;o=n++)if((e||0!==n)&&ui(t,a[o],a[n])<=h)return!0;return!1}});Ni._flat=mi;var zi=Ni.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,i,n,o,r,s,a,h,l=this._rings[0],c=l.length;if(!c)return null;for(r=s=a=0,t=0,e=c-1;t<c;e=t++)i=l[t],n=l[e],o=i.y*n.x-n.y*i.x,s+=(i.x+n.x)*o,a+=(i.y+n.y)*o,r+=3*o;return h=0===r?l[0]:[s/r,a/r],this._map.layerPointToLatLng(h)},_convertLatLngs:function(t){var e=Ni.prototype._convertLatLngs.call(this,t),i=e.length;return 2<=i&&e[0]instanceof G&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){Ni.prototype._setLatLngs.call(this,t),gi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return gi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new k(e,e);if(t=new F(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,r=this._rings.length;o<r;o++)(n=yi(this._rings[o],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,o,r,s,a,h,l=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(r=0,s=(h=(e=this._parts[o]).length)-1;r<h;s=r++)i=e[r],n=e[s],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(l=!l);return l||Ni.prototype._containsPoint.call(this,t,!0)}}),Bi=Li.extend({initialize:function(t,e){_(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=y(t)?t:t.features;if(o){for(e=0,i=o.length;e<i;e++)((n=o[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var r=this.options;if(r.filter&&!r.filter(t))return this;var s=Gi(t,r);return s?(s.feature=Ki(t),s.defaultOptions=s.options,this.resetStyle(s),r.onEachFeature&&r.onEachFeature(t,s),this.addLayer(s)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=i({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function Gi(t,e){var i,n,o,r,s="Feature"===t.type?t.geometry:t,a=s?s.coordinates:null,h=[],l=e&&e.pointToLayer,c=e&&e.coordsToLatLng||Wi;if(!a&&!s)return null;switch(s.type){case"Point":return Zi(l,t,i=c(a),e);case"MultiPoint":for(o=0,r=a.length;o<r;o++)i=c(a[o]),h.push(Zi(l,t,i,e));return new Li(h);case"LineString":case"MultiLineString":return n=Yi(a,"LineString"===s.type?0:1,c),new Ni(n,e);case"Polygon":case"MultiPolygon":return n=Yi(a,"Polygon"===s.type?1:2,c),new zi(n,e);case"GeometryCollection":for(o=0,r=s.geometries.length;o<r;o++){var u=Gi({geometry:s.geometries[o],type:"Feature",properties:t.properties},e);u&&h.push(u)}return new Li(h);default:throw new Error("Invalid GeoJSON object.")}}function Zi(t,e,i,n){return t?t(e,i):new ki(i,n&&n.markersInheritOptions&&n)}function Wi(t){return new G(t[1],t[0],t[2])}function Yi(t,e,i){for(var n,o=[],r=0,s=t.length;r<s;r++)n=e?Yi(t[r],e-1,i):(i||Wi)(t[r]),o.push(n);return o}function Vi(t,e){return e="number"==typeof e?e:6,void 0!==t.alt?[p(t.lng,e),p(t.lat,e),p(t.alt,e)]:[p(t.lng,e),p(t.lat,e)]}function Xi(t,e,i,n){for(var o=[],r=0,s=t.length;r<s;r++)o.push(e?Xi(t[r],e-1,i,n):Vi(t[r],n));return!e&&i&&o.push(o[0]),o}function Ui(t,e){return t.feature?i({},t.feature,{geometry:e}):Ki(e)}function Ki(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Hi={toGeoJSON:function(t){return Ui(this,{type:"Point",coordinates:Vi(this.getLatLng(),t)})}};function $i(t,e){return new Bi(t,e)}ki.include(Hi),Fi.include(Hi),Di.include(Hi),Ni.include({toGeoJSON:function(t){var e=!gi(this._latlngs);return Ui(this,{type:(e?"Multi":"")+"LineString",coordinates:Xi(this._latlngs,e?1:0,!1,t)})}}),zi.include({toGeoJSON:function(t){var e=!gi(this._latlngs),i=e&&!gi(this._latlngs[0]),n=Xi(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),Ui(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),Ii.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),Ui(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer(function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(i)n.push(o.geometry);else{var r=Ki(o);"FeatureCollection"===r.type?n.push.apply(n,r.features):n.push(r)}}}),i?Ui(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var qi=$i,Ji=Pi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=B(e),_(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(de(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){he(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&&ce(this._image),this},bringToBack:function(){return this._map&&ue(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=B(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:ae("img");de(e,"leaflet-image-layer"),this._zoomAnimated&&de(e,"leaflet-zoom-animated"),this.options.className&&de(e,this.options.className),e.onselectstart=u,e.onmousemove=u,e.onload=r(this.fire,this,"load"),e.onerror=r(this._overlayOnError,this,"error"),!this.options.crossOrigin&&""!==this.options.crossOrigin||(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ye(this._image,i,e)},_reset:function(){var t=this._image,e=new F(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();be(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){me(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)}}),Qi=Ji.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:ae("video");if(de(e,"leaflet-image-layer"),this._zoomAnimated&&de(e,"leaflet-zoom-animated"),this.options.className&&de(e,this.options.className),e.onselectstart=u,e.onmousemove=u,e.onloadeddata=r(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],o=0;o<i.length;o++)n.push(i[o].src);this._url=0<i.length?n:[e.src]}else{y(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&e.style.hasOwnProperty("objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop;for(var s=0;s<this._url.length;s++){var a=ae("source");a.src=this._url[s],e.appendChild(a)}}}}),tn=Ji.extend({_initImage:function(){var t=this._image=this._url;de(t,"leaflet-image-layer"),this._zoomAnimated&&de(t,"leaflet-zoom-animated"),this.options.className&&de(t,this.options.className),t.onselectstart=u,t.onmousemove=u}}),en=Pi.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){_(this,t),this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&me(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&me(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(me(this._container,0),this._removeTimeout=setTimeout(r(he,void 0,this._container),200)):he(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=Z(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&&ce(this._container),this},bringToBack:function(){return this._map&&ue(this._container),this},_prepareOpen:function(t,e,i){if(e instanceof Pi||(i=e,e=t),e instanceof Li)for(var n in t._layers){e=t._layers[n];break}if(!i)if(e.getCenter)i=e.getCenter();else{if(!e.getLatLng)throw new Error("Unable to get source layer LatLng.");i=e.getLatLng()}return this._source=e,this.update(),i},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=D(this.options.offset),i=this._getAnchor();this._zoomAnimated?be(this._container,t.add(i)):e=e.add(t).add(i);var n=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}}),nn=en.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){en.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ai||this._source.on("preclick",Ae))},onRemove:function(t){en.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ai||this._source.off("preclick",Ae))},getEvents:function(){var t=en.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t="leaflet-popup",e=this._container=ae("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=ae("div",t+"-content-wrapper",e);if(this._contentNode=ae("div",t+"-content",i),Fe(i),De(this._contentNode),Le(i,"contextmenu",Ae),this._tipContainer=ae("div",t+"-tip-container",e),this._tip=ae("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=ae("a",t+"-close-button",e);n.href="#close",n.innerHTML="&#215;",Le(n,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,o=this.options.maxHeight,r="leaflet-popup-scrolled";o&&o<n?(e.height=o+"px",de(t,r)):fe(t,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();be(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(se(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new k(this._containerLeft,-i-this._containerBottom);o._add(xe(this._container));var r=t.layerPointToContainerPoint(o),s=D(this.options.autoPanPadding),a=D(this.options.autoPanPaddingTopLeft||s),h=D(this.options.autoPanPaddingBottomRight||s),l=t.getSize(),c=0,u=0;r.x+n+h.x>l.x&&(c=r.x+n-l.x+h.x),r.x-c-a.x<0&&(c=r.x-a.x),r.y+i+h.y>l.y&&(u=r.y+i-l.y+h.y),r.y-u-a.y<0&&(u=r.y-a.y),(c||u)&&t.fire("autopanstart").panBy([c,u])}},_onCloseButtonClick:function(t){this._close(),ze(t)},_getAnchor:function(){return D(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});$e.mergeOptions({closePopupOnClick:!0}),$e.include({openPopup:function(t,e,i){return t instanceof nn||(t=new nn(i).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Pi.include({bindPopup:function(t,e){return t instanceof nn?(_(t,e),(this._popup=t)._source=this):(this._popup&&!e||(this._popup=new nn(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(ze(t),e instanceof Ai?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var on=en.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){en.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){en.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=en.prototype.getEvents.call(this);return St&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ae("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e=this._map,i=this._container,n=e.latLngToContainerPoint(e.getCenter()),o=e.layerPointToContainerPoint(t),r=this.options.direction,s=i.offsetWidth,a=i.offsetHeight,h=D(this.options.offset),l=this._getAnchor();t="top"===r?t.add(D(-s/2+h.x,-a+h.y+l.y,!0)):"bottom"===r?t.subtract(D(s/2-h.x,-h.y,!0)):"center"===r?t.subtract(D(s/2+h.x,a/2-l.y+h.y,!0)):"right"===r||"auto"===r&&o.x<n.x?(r="right",t.add(D(h.x+l.x,l.y-a/2+h.y,!0))):(r="left",t.subtract(D(s+l.x-h.x,a/2-l.y-h.y,!0))),fe(i,"leaflet-tooltip-right"),fe(i,"leaflet-tooltip-left"),fe(i,"leaflet-tooltip-top"),fe(i,"leaflet-tooltip-bottom"),de(i,"leaflet-tooltip-"+r),be(i,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&me(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return D(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});$e.include({openTooltip:function(t,e,i){return t instanceof on||(t=new on(i).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),Pi.include({bindTooltip:function(t,e){return t instanceof on?(_(t,e),(this._tooltip=t)._source=this):(this._tooltip&&!e||(this._tooltip=new on(e,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),St&&(i.click=this._openTooltip)),this[e](i),this._tooltipHandlersAdded=!t}},openTooltip:function(t,e){return this._tooltip&&this._map&&(e=this._tooltip._prepareOpen(this,t,e),this._map.openTooltip(this._tooltip,e),this._tooltip.options.interactive&&this._tooltip._container&&(de(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(fe(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(e,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,i,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),i=this._map.containerPointToLayerPoint(e),n=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(n)}});var rn=Ri.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(le(e),e.appendChild(i.html)):e.innerHTML=!1!==i.html?i.html:"",i.bgPos){var n=D(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});Ri.Default=Mi;var sn=Pi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:xt,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){_(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),he(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ce(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ue(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=l(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 k?t:new k(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,n=-t(-1/0,1/0),o=0,r=i.length;o<r;o++)e=i[o].style.zIndex,i[o]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!nt){me(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var n in this._tiles){var o=this._tiles[n];if(o.current&&o.loaded){var r=Math.min(1,(t-o.loaded)/200);me(o.el,r),r<1?e=!0:(o.active?i=!0:this._onOpaqueTile(o),o.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(P(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=ae("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(he(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=ae("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),n.el.offsetWidth,this._onCreateLevel(n)),this._level=n}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var n=e.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)he(this._levels[t].el),this._onRemoveLevel(t),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,i,n){var o=Math.floor(t/2),r=Math.floor(e/2),s=i-1,a=new k(+o,+r);a.z=+s;var h=this._tileCoordsToKey(a),l=this._tiles[h];return l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n<s&&this._retainParent(o,r,s,n))},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var r=2*e;r<2*e+2;r++){var s=new k(o,r);s.z=i+1;var a=this._tileCoordsToKey(s),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),i+1<n&&this._retainChildren(o,r,i+1,n))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,n){var o=this._clampZoom(Math.round(e));(void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom)&&(o=void 0);var r=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!r||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();bt?ye(t.el,o,n):be(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=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]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),o=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(2*n);return new F(o.subtract(r),o.add(r))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),r=o.getCenter(),s=[],a=this.options.keepBuffer,h=new F(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));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 l in this._tiles){var c=this._tiles[l].coords;c.z===this._tileZoom&&h.contains(new k(c.x,c.y))||(this._tiles[l].current=!1)}if(1<Math.abs(i-this._tileZoom))this._setView(t,i);else{for(var u=o.min.y;u<=o.max.y;u++)for(var p=o.min.x;p<=o.max.x;p++){var d=new k(p,u);if(d.z=this._tileZoom,this._isValidTile(d)){var f=this._tiles[this._tileCoordsToKey(d)];f?f.current=!0:s.push(d)}}if(s.sort(function(t,e){return t.distanceTo(r)-e.distanceTo(r)}),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var _=document.createDocumentFragment();for(p=0;p<s.length;p++)this._addTile(s[p],_);this._level.el.appendChild(_)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return B(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i);return[e.unproject(n,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new z(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new k(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(he(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){de(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=u,t.onmousemove=u,nt&&this.options.opacity<1&&me(t,this.options.opacity),st&&!at&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),r(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&C(r(this._tileReady,this,t,null,o)),be(o,i),this._tiles[n]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(me(i.el,0),P(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(de(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),nt||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new k(this._wrapX?c(t.x,this._wrapX):t.x,this._wrapY?c(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new F(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}}),an=sn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=_(this,e)).detectRetina&&It&&0<e.maxZoom&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),st||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return Le(i,"load",r(this._tileOnLoad,this,e,i)),Le(i,"error",r(this._tileOnError,this,e,i)),!this.options.crossOrigin&&""!==this.options.crossOrigin||(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i.alt="",i.setAttribute("role","presentation"),i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:It?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return v(this._url,i(e,this.options))},_tileOnLoad:function(t,e){nt?setTimeout(r(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=u,e.onerror=u,e.complete||(e.src=x,he(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return lt||e.el.setAttribute("src",x),sn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==x))return sn.prototype._tileReady.call(this,t,e,i)}});function hn(t,e){return new an(t,e)}var ln=an.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);var r=(e=_(this,e)).detectRetina&&It?2:1,s=this.getTileSize();n.width=s.x*r,n.height=s.y*r,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,an.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=N(i.project(e[0]),i.project(e[1])),o=n.min,r=n.max,s=(1.3<=this._wmsVersion&&this._crs===Si?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),a=an.prototype.getTileUrl.call(this,t);return a+g(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});an.WMS=ln,hn.wms=function(t,e){return new ln(t,e)};var cn=Pi.extend({options:{padding:.1,tolerance:0},initialize:function(t){_(this,t),h(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&de(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=xe(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,e),s=this._map.project(t,e).subtract(r),a=o.multiplyBy(-i).add(n).add(o).subtract(s);bt?ye(this._container,a,i):be(this._container,a)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new F(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),un=cn.extend({getEvents:function(){var t=cn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){cn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Le(t,"mousemove",this._onMouseMove,this),Le(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Le(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){P(this._redrawRequest),delete this._ctx,he(this._container),Me(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){cn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=It?2:1;be(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",It&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){cn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t);var e=(this._layers[h(t)]=t)._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[h(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,i,n=t.options.dashArray.split(/[, ]+/),o=[];for(i=0;i<n.length;i++){if(e=Number(n[i]),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 F,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,o,r,s=t._parts,a=s.length,h=this._ctx;if(a){for(h.beginPath(),i=0;i<a;i++){for(n=0,o=s[i].length;n<o;n++)r=s[i][n],h[n?"lineTo":"moveTo"](r.x,r.y);e&&h.closePath()}this._fillStroke(h,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||n)/n;1!=o&&(i.save(),i.scale(1,o)),i.beginPath(),i.arc(e.x,e.y/o,n,0,2*Math.PI,!1),1!=o&&i.restore(),this._fillStroke(i,t)}},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(n)&&!this._map._draggableMoved(e)&&(i=e);i&&(Ve(t),this._fireEvent([i],t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(fe(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,n,o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(de(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(L.bind(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;i&&((i.prev=n)?n.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,(this._drawLast.next=e).next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;n&&((n.next=i)?i.prev=n:n&&(this._drawLast=n),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function pn(t){return Rt?new un(t):null}var dn=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">')}}}(),fn={_initContainer:function(){this._container=ae("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(cn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=dn("shape");de(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=dn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[h(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;he(e),t.removeInteractiveTarget(e),delete this._layers[h(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=dn("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=y(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=dn("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ce(t._container)},_bringToBack:function(t){ue(t._container)}},_n=jt?dn:Q,gn=cn.extend({getEvents:function(){var t=cn.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=_n("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=_n("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){he(this._container),Me(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){cn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),be(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=_n("path");t.options.className&&de(e,t.options.className),t.options.interactive&&de(e,"leaflet-interactive"),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){he(t._path),t.removeInteractiveTarget(t._path),delete this._layers[h(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,tt(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ce(t._path)},_bringToBack:function(t){ue(t._path)}});function mn(t){return Mt||jt?new gn(t):null}jt&&gn.include(fn),$e.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&&pn(t)||mn(t)}});var vn=zi.extend({initialize:function(t,e){zi.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=B(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});gn.create=_n,gn.pointsToPath=tt,Bi.geometryToLayer=Gi,Bi.coordsToLatLng=Wi,Bi.coordsToLatLngs=Yi,Bi.latLngToCoords=Vi,Bi.latLngsToCoords=Xi,Bi.getFeature=Ui,Bi.asFeature=Ki,$e.mergeOptions({boxZoom:!0});var yn=ni.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(){Le(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Me(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){he(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(),Kt(),we(),this._startPoint=this._map.mouseEventToContainerPoint(t),Le(document,{contextmenu:ze,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ae("div","leaflet-zoom-box",this._container),de(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new F(this._point,this._startPoint),i=e.getSize();be(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(he(this._box),fe(this._container,"leaflet-crosshair")),Ht(),Te(),Me(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(r(this._resetState,this),0);var e=new z(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()}});$e.addInitHook("addHandler","boxZoom",yn),$e.mergeOptions({doubleClickZoom:!0});var bn=ni.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});$e.addInitHook("addHandler","doubleClickZoom",bn),$e.mergeOptions({dragging:!0,inertia:!at,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var xn=ni.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new li(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))}de(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){fe(this._map._container,"leaflet-grab"),fe(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=B(this._map.options.maxBounds);this._offsetLimit=N(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1<this._positions.length&&50<t-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,r=(n+e+i)%t-e-i,s=Math.abs(o+i)<Math.abs(r+i)?o:r;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=s},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||this._times.length<2;if(e.fire("dragend",t),n)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,s=i.easeLinearity,a=o.multiplyBy(s/r),h=a.distanceTo([0,0]),l=Math.min(i.inertiaMaxSpeed,h),c=a.multiplyBy(l/h),u=l/(i.inertiaDeceleration*s),p=c.multiplyBy(-u/2).round();p.x||p.y?(p=e._limitOffset(p,e.options.maxBounds),C(function(){e.panBy(p,{duration:u,easeLinearity:s,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}});$e.addInitHook("addHandler","dragging",xn),$e.mergeOptions({keyboard:!0,keyboardPanDelta:80});var On=ni.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"),Le(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(),Me(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(n,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,i,n=this._panKeys={},o=this.keyCodes;for(e=0,i=o.left.length;e<i;e++)n[o.left[e]]=[-1*t,0];for(e=0,i=o.right.length;e<i;e++)n[o.right[e]]=[t,0];for(e=0,i=o.down.length;e<i;e++)n[o.down[e]]=[0,t];for(e=0,i=o.up.length;e<i;e++)n[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,i,n=this._zoomKeys={},o=this.keyCodes;for(e=0,i=o.zoomIn.length;e<i;e++)n[o.zoomIn[e]]=t;for(e=0,i=o.zoomOut.length;e<i;e++)n[o.zoomOut[e]]=-t},_addHooks:function(){Le(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Me(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,n=this._map;if(i in this._panKeys)n._panAnim&&n._panAnim._inProgress||(e=this._panKeys[i],t.shiftKey&&(e=D(e).multiplyBy(3)),n.panBy(e),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds));else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}ze(t)}}});$e.addInitHook("addHandler","keyboard",On),$e.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var wn=ni.extend({addHooks:function(){Le(this._map._container,"mousewheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Me(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ze(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),n),ze(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,r=i?Math.ceil(o/i)*i:o,s=t._limitZoom(e+(0<this._delta?r:-r))-e;this._delta=0,this._startTime=null,s&&("center"===t.options.scrollWheelZoom?t.setZoom(e+s):t.setZoomAround(this._lastMousePos,e+s))}});$e.addInitHook("addHandler","scrollWheelZoom",wn),$e.mergeOptions({tap:!0,tapTolerance:15});var Tn=ni.extend({addHooks:function(){Le(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Me(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Ne(t),this._fireClick=!0,1<t.touches.length)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],i=e.target;this._startPos=this._newPos=new k(e.clientX,e.clientY),i.tagName&&"a"===i.tagName.toLowerCase()&&de(i,"leaflet-active"),this._holdTimeout=setTimeout(r(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))},this),1e3),this._simulateEvent("mousedown",e),Le(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),Me(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],i=e.target;i&&i.tagName&&"a"===i.tagName.toLowerCase()&&fe(i,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new k(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var i=document.createEvent("MouseEvents");i._simulated=!0,e.target._simulatedClick=!0,i.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(i)}});St&&!Et&&$e.addInitHook("addHandler","tap",Tn),$e.mergeOptions({touchZoom:St&&!at,bounceAtZoomLimits:!0});var En=ni.extend({addHooks:function(){de(this._map._container,"leaflet-touch-zoom"),Le(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){fe(this._map._container,"leaflet-touch-zoom"),Me(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Le(document,"touchmove",this._onTouchMove,this),Le(document,"touchend",this._onTouchEnd,this),Ne(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&1<o)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1==o)return}else{var s=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1==o&&0===s.x&&0===s.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),P(this._animRequest);var a=r(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=C(a,this,!0),Ne(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,P(this._animRequest),Me(document,"touchmove",this._onTouchMove),Me(document,"touchend",this._onTouchEnd),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});$e.addInitHook("addHandler","touchZoom",En),$e.BoxZoom=yn,$e.DoubleClickZoom=bn,$e.Drag=xn,$e.Keyboard=On,$e.ScrollWheelZoom=wn,$e.Tap=Tn,$e.TouchZoom=En,Object.freeze=e,t.version="1.6.0",t.Control=Je,t.control=qe,t.Browser=At,t.Evented=j,t.Mixin=ri,t.Util=I,t.Class=R,t.Handler=ni,t.extend=i,t.bind=r,t.stamp=h,t.setOptions=_,t.DomEvent=Ke,t.DomUtil=Ie,t.PosAnimation=He,t.Draggable=li,t.LineUtil=vi,t.PolyUtil=xi,t.Point=k,t.point=D,t.Bounds=F,t.bounds=N,t.Transformation=K,t.transformation=H,t.Projection=Ti,t.LatLng=G,t.latLng=Z,t.LatLngBounds=z,t.latLngBounds=B,t.CRS=Y,t.GeoJSON=Bi,t.geoJSON=$i,t.geoJson=qi,t.Layer=Pi,t.LayerGroup=Ii,t.layerGroup=function(t,e){return new Ii(t,e)},t.FeatureGroup=Li,t.featureGroup=function(t){return new Li(t)},t.ImageOverlay=Ji,t.imageOverlay=function(t,e,i){return new Ji(t,e,i)},t.VideoOverlay=Qi,t.videoOverlay=function(t,e,i){return new Qi(t,e,i)},t.SVGOverlay=tn,t.svgOverlay=function(t,e,i){return new tn(t,e,i)},t.DivOverlay=en,t.Popup=nn,t.popup=function(t,e){return new nn(t,e)},t.Tooltip=on,t.tooltip=function(t,e){return new on(t,e)},t.Icon=Ri,t.icon=function(t){return new Ri(t)},t.DivIcon=rn,t.divIcon=function(t){return new rn(t)},t.Marker=ki,t.marker=function(t,e){return new ki(t,e)},t.TileLayer=an,t.tileLayer=hn,t.GridLayer=sn,t.gridLayer=function(t){return new sn(t)},t.SVG=gn,t.svg=mn,t.Renderer=cn,t.Canvas=un,t.canvas=pn,t.Path=Ai,t.CircleMarker=Di,t.circleMarker=function(t,e){return new Di(t,e)},t.Circle=Fi,t.circle=function(t,e,i){return new Fi(t,e,i)},t.Polyline=Ni,t.polyline=function(t,e){return new Ni(t,e)},t.Polygon=zi,t.polygon=function(t,e){return new zi(t,e)},t.Rectangle=vn,t.rectangle=function(t,e){return new vn(t,e)},t.Map=$e,t.map=function(t,e){return new $e(t,e)};var Sn=window.L;t.noConflict=function(){return window.L=Sn,this},window.L=t},"object"==a(e)&&void 0!==t?s(e):(o=[e],void 0===(r="function"==typeof(n=s)?n.apply(e,o):n)||(t.exports=r))},function(t,e,i){"use strict";angular.module("myitsmApp").service("nttAdressService",["$resource","$http","systemAlertService","$q","slaCalculatorService","approvalService","$filter","$state",function(t,e,i,n,o,r,s,a){var h=t("",{},{getAdresses:{url:"https://data.wien.gv.at/daten/OGDAddressService.svc/GetAddressInfo",method:"GET",isArray:!1},getAdressInfoByCoord:{url:"https://data.wien.gv.at/daten/OGDAddressService.svc/ReverseGeocode",method:"GET",isArray:!1}});this.getAdresses=function(t){return h.getAdresses({Address:t.Address,crs:t.crs}).$promise},this.getAdressInfoByCoord=function(t){return h.getAdressInfoByCoord({location:t.location,crs:t.crs}).$promise},this.getAdressesPhoenetic=function(t){return n(function(e,i){for(var o=[h.getAdresses(t).$promise],r=t.Address.length,s=4;s<=r;s++){var a="*"+t.Address.slice(0,s)+"*";o.push(h.getAdresses({Address:a,crs:t.crs}).$promise)}n.all(o).then(function(t){var i=[];t.forEach(function(t){i=function(t,e){for(var i=[],n=t.concat(e),o=n.length,r={};o--;){var s=n[o];r[s.properties.Adresse]||(i.unshift(s),r[s.properties.Adresse]=!0)}return i}(i,t.features)}),e({features:i})})})}}])},function(t,e,i){"use strict";i.r(e),function(t){i(118);var e=i(89),n=i(74),o=i(79),r=i(81),s=i(59),a=i(43),h=i(85),l=i(86),c=i(78),u=i(87),p=i(33),d=i(68),f=i(90),_=i(18),g=i(91),m=i(80),v=i(2),y=i(40),b=i(60),x=i(88);angular.module("ticketModule").directive("olMapNtt",["ticketModel","relationModel","userModel","$q","$filter","$modal","events","$timeout","$state","i18nService","systemAlertService","objectValueMapperService","nttevents","nttAdressService",function(i,O,w,T,E,S,C,P,I,L,R,M,j,k){return{restrict:"E",scope:{assignedAdress:"=",assignedAdressId:"=",assignedGipNameId:"=",assignedSearchType:"=",assignedCoord:"=",adressItem:"=",displayOnly:"=",showNearByTicketPanel:"=",showNearByTicketPanelOnOpen:"=",enableNearbyTicketPanel:"=",state:"="},templateUrl:"views/ol-map-ntt.html",link:function(t,e,i){},controller:["$element","$attrs","$scope",function(i,O,w){w.displaySearchPanel=!1,w.coordSearchActive=!1,w.selectedItem={},w.state={processing:!0};var T=function(){w.$emit("toggleShowTickets")};setTimeout(function(){!function(){var i=_.a>1,d=i?"bmaphidpi":"geolandbasemap",x=i?2:1;w.viennaWebMercator=Object(v.d)([16.3725042,48.2083537]);var O=document.createElement("button");O.id="coordButton",O.title="Cursor Selektierung",O.className="btn-coordSearch";var L=document.createElement("span");L.className="glyphicon glyphicon-screenshot",O.appendChild(L);var R=document.createElement("button");R.id="textSearchButton",R.title="Suche per Text",R.className="btn-searchText";var M=document.createElement("span");M.className="glyphicon glyphicon-search",R.appendChild(M);var j=document.createElement("button");j.id="showTicketsButton",j.title="Zeige Tickets in der Nähe an",j.className="btn-options";var k=document.createElement("span");k.className="glyphicon icon-incident",j.appendChild(k);var A=document.createElement("button");A.id="deleteSelectionButton",A.title="Auswahl aufheben",A.className="btn-options";var D=document.createElement("span");D.className="glyphicon icon-cross_circle_o",A.appendChild(D);w.deselectAdress=function(t){w.selectedItem={}},O.addEventListener("click",function(e){t(this).tooltip("hide"),w.hideCoordLabelTooltip(),w.coordSearchActive?w.disableCoordSearch():w.enableCoordSearch()},!1),R.addEventListener("click",function(e){t(this).tooltip("hide"),w.openSearchPanel(),w.disableCoordSearch()},!1),A.addEventListener("click",w.deselectAdress,!1),j.addEventListener("click",T,!1);var F=document.createElement("div");F.className="ntt-ol-control",F.appendChild(R),F.appendChild(O),F.appendChild(j),F.appendChild(A);var N=document.createElement("div");N.id="tooltip",N.style.display="none";var z=document.createElement("div");z.id="tooltip_name",z.className="assign-list__person-field-name";var B=document.createElement("div");B.id="tooltip_bezirk",B.className="assign-list__person-field-label",N.appendChild(z),N.appendChild(B),w.searchControls=new y.a({element:F}),w.coordLabel=new y.a({element:N}),w.map=new e.a({target:"map",controls:[new b.a({className:"ol-zoom-ntt"})],view:new n.a({center:w.viennaWebMercator,zoom:13})}),w.marker=new c.a({});var G=new r.a({features:[w.marker]});w.radarFeature=new c.a({});var Z=new r.a({projection:"EPSG:4326",features:[w.radarFeature]});w.markerStyle=new s.b({text:new u.a({text:"Test text",offsetY:-85,scale:1.8,padding:[5,10,5,10],backgroundFill:new p.a({color:[255,136,0,.8]}),fill:new p.a({color:"#fff"}),stroke:new a.a({color:"#000",width:1}),backgroundStroke:new a.a({color:"#fff",width:1})}),image:new h.a({form:"marker",radius:30,offsetY:-30,gradient:!0,fontSize:1,fontStyle:"",rotation:0*Math.PI/180,rotateWithView:!1,color:"white",fill:new p.a({color:"#f86e00"}),stroke:new a.a({color:"white",width:2})}),stroke:new a.a({width:3,color:"white"}),fill:new p.a({color:[255,136,0,.6]})}),w.markerVectorLayer=new o.a({name:"marker",source:G,style:[w.markerStyle,new s.b({image:new l.a({radius:15,blur:5,offsetX:0,offsetY:0,fill:new p.a({color:"rgba(0,0,0,0.5)"})})})]}),w.radarVectorLayer=new o.a({name:"distanceRadar",source:Z,visible:!1}),fetch("./NTTDATA/modules/adressService/WMTSCapabilities.xml",{headers:{"Sec-Fetch-Site":"none","Sec-Fetch-Dest":"document"}}).then(function(t){return t.text()}).then(function(e){var i=(new f.a).read(e),n=Object(m.b)(i,{layer:d,matrixSet:"google3857",style:"normal"});n.tilePixelRatio=x,w.map.addLayer(new g.a({source:new m.a(n)})),w.map.addLayer(w.markerVectorLayer),w.map.addLayer(w.radarVectorLayer),w.map.addControl(w.searchControls),w.toggleMapControls(),t("#coordButton, #textSearchButton, #showTicketsButton").tooltip({placement:"right",container:"#map"}),w.$apply(function(){w.state.processing=!1}),w.map.showDistanceRadar=I,w.map.hideDistanceRadar=C,w.map.hideAdressMarker=E,w.map.showAdressMarker=S,w.$parent.$parent.$apply(function(){w.$parent.$parent.map=w.map}),P(function(){w.$broadcast("resizeMap")},0,!1)})}(),D()},0),window.onresize=function(){w.resizeMap()},this.$onInit=function(){console.log("init"),window.addEventListener("resize",w.resizeMap())},w.$on("$destroy",function(){console.log("destroyed")}),w.toggleMapControls=function(){w.displayOnly||(t("#textSearchButton").css({display:"block"}),t("#coordButton").css({display:"block"})),w.selectedItem.properties&&w.enableNearbyTicketPanel?(t("#showTicketsButton").css({display:"block"}),w.displayOnly||t("#deleteSelectionButton").css({display:"block"})):(t("#showTicketsButton").hide(),t("#deleteSelectionButton").hide())},w.$watch("selectedItem",function(t,e){t&&t.properties?w.markAdressOnMap(t):t!=e&&w.deleteAdressOnMap(),w.toggleMapControls()}),w.deleteAdressOnMap=function(){w.marker.setGeometry(null),w.map.getView().setCenter(w.viennaWebMercator),w.map.getView().setZoom(13),w.$emit("assignedAdressChanged",null)},w.$watch("coordSearchResultItem",function(t,e){}),w.markAdressOnMap=function(t){var e;e=null!=t.properties.Location?Object(v.d)(t.properties.Location.coordinates):Object(v.d)(t.geometry.coordinates),w.marker.setGeometry(new d.a(e)),t.properties.doNotZoomIn||(w.map.getView().setCenter(e),w.map.getView().setZoom(16)),w.markerStyle.getText().setText(t.properties.Adresse),w.$emit("assignedAdressChanged",t)};var E=function(){w.markerVectorLayer.setVisible(!1)},S=function(){w.markerVectorLayer.setVisible(!0)},C=function(){w.radarVectorLayer.setVisible(!1)},I=function(t){w.radarVectorLayer.setVisible(!0);var e=w.map.getView(),i=e.getProjection(),n=e.getResolution(),o=w.marker.getGeometry().getCoordinates(),r=n/i.getPointResolutionFunc_(n,o),s=(t=t/v.a.m*r,new x.a(o,t));w.radarFeature.setGeometry(s)},L=null,R=function(t){w.hideCoordLabelTooltip(),clearTimeout(L),L=setTimeout(function(){var e=Object(v.n)(t.coordinate,"EPSG:3857","EPSG:4326").join(",");k.getAdressInfoByCoord({location:e,crs:"EPSG:4326"}).then(function(e){e.features&&w.showCoordLabelTooltip(e.features[0],t.pixel)})},50)},M=function(t){clearTimeout(L),w.disableCoordSearch();var e=Object(v.n)(t.coordinate,"EPSG:3857","EPSG:4326").join(",");k.getAdressInfoByCoord({location:e,crs:"EPSG:4326"}).then(function(t){if(t.features){var e=t.features[0];e.properties.searchType="byCoord",e.properties.Bezirk=A(e.properties.Bezirk),e.properties.doNotZoomIn=!0,w.selectedItem=e}})},j=function(){clearTimeout(L),w.coordSearchResult=[],w.hideCoordLabelTooltip()};w.showCoordLabelTooltip=function(e,i){t("#tooltip_name").text(e.properties.Adresse),t("#tooltip_bezirk").text(A(e.properties.Bezirk)+".Bezirk");var n=t("#tooltip").width()/2-10;t("#tooltip").css({position:"absolute",left:i[0]-n,top:i[1]-80}),t("#tooltip").show()},w.hideCoordLabelTooltip=function(e,i){t("#tooltip").hide()},w.closeSearchPanel=function(){w.displaySearchPanel=!1,w.map.addControl(w.searchControls)},w.openSearchPanel=function(){w.displaySearchPanel=!0,t("#coordButton").removeClass("activeCoordButton"),w.map.removeControl(w.searchControls)},w.$watch("showNearByTicketPanel",function(e,i){e!=i&&(w.showNearByTicketPanel?t("#showTicketsButton").addClass("activeShowTicketsButton"):t("#showTicketsButton").removeClass("activeShowTicketsButton"))}),w.enableCoordSearch=function(){t("#coordButton").addClass("activeCoordButton");var e=w.map.getTarget();t("string"==typeof e?"#"+e:e).css("cursor","crosshair"),w.map.addEventListener("click",M),w.map.addEventListener("pointermove",R),w.map.getViewport().addEventListener("mouseout",j,!1),w.coordSearchActive=!0,w.map.addControl(w.coordLabel)},w.disableCoordSearch=function(){t("#coordButton").removeClass("activeCoordButton");var e=w.map.getTarget();t("string"==typeof e?"#"+e:e).css("cursor","default"),w.map.removeEventListener("click",M),w.map.removeEventListener("pointermove",R),w.map.getViewport().removeEventListener("mouseout",j,!1),w.coordSearchActive=!1,w.map.removeControl(w.coordLabel)},w.$on("markAdressOnMap",function(t,e){w.markAdressOnMap(e)}),w.selectItemCallback=function(t){w.selectedItem=t};var A=function(t){return t.replace(/^0+/,"")};w.$on("showDistanceRadius",function(){}),w.resizeMap=function(){w.map.updateSize(),w.map.getLayers().getArray()[0].getSource().changed(),w.$emit("mapSizeChanged",w.map.getSize()[1])},w.$on("resizeMap",function(){w.resizeMap()});var D=function(){w.adressItem&&(w.selectedItem=w.adressItem)}}]}}])}.call(this,i(50))},function(t,e,i){var n=i(119);"string"==typeof n&&(n=[[t.i,n,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};i(84)(n,o);n.locals&&(t.exports=n.locals)},function(t,e,i){(t.exports=i(83)(!1)).push([t.i,'.ol-box {\n box-sizing: border-box;\n border-radius: 2px;\n border: 2px solid blue;\n}\n\n.ol-mouse-position {\n top: 8px;\n right: 8px;\n position: absolute;\n}\n\n.ol-scale-line {\n background: rgba(0,60,136,0.3);\n border-radius: 4px;\n bottom: 8px;\n left: 8px;\n padding: 2px;\n position: absolute;\n}\n.ol-scale-line-inner {\n border: 1px solid #eee;\n border-top: none;\n color: #eee;\n font-size: 10px;\n text-align: center;\n margin: 1px;\n will-change: contents, width;\n transition: all 0.25s;\n}\n.ol-scale-bar {\n position: absolute;\n bottom: 8px;\n left: 8px;\n}\n.ol-scale-step-marker {\n width: 1px;\n height: 15px;\n background-color: #000000;\n float: right;\n z-Index: 10;\n}\n.ol-scale-step-text {\n position: absolute;\n bottom: -5px;\n font-size: 12px;\n z-Index: 11;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-text {\n position: absolute;\n font-size: 14px;\n text-align: center;\n bottom: 25px;\n color: #000000;\n text-shadow: -2px 0 #FFFFFF, 0 2px #FFFFFF, 2px 0 #FFFFFF, 0 -2px #FFFFFF;\n}\n.ol-scale-singlebar {\n position: relative;\n height: 10px;\n z-Index: 9;\n border: 1px solid black;\n}\n\n.ol-unsupported {\n display: none;\n}\n.ol-viewport, .ol-unselectable {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n}\n.ol-overlaycontainer, .ol-overlaycontainer-stopevent {\n pointer-events: none;\n}\n.ol-overlaycontainer > *, .ol-overlaycontainer-stopevent > * {\n pointer-events: auto;\n}\n.ol-selectable {\n -webkit-touch-callout: default;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n}\n.ol-grabbing {\n cursor: -webkit-grabbing;\n cursor: -moz-grabbing;\n cursor: grabbing;\n}\n.ol-grab {\n cursor: move;\n cursor: -webkit-grab;\n cursor: -moz-grab;\n cursor: grab;\n}\n.ol-control {\n position: absolute;\n background-color: rgba(255,255,255,0.4);\n border-radius: 4px;\n padding: 2px;\n}\n.ol-control:hover {\n background-color: rgba(255,255,255,0.6);\n}\n.ol-zoom {\n top: .5em;\n left: .5em;\n}\n.ol-rotate {\n top: .5em;\n right: .5em;\n transition: opacity .25s linear, visibility 0s linear;\n}\n.ol-rotate.ol-hidden {\n opacity: 0;\n visibility: hidden;\n transition: opacity .25s linear, visibility 0s linear .25s;\n}\n.ol-zoom-extent {\n top: 4.643em;\n left: .5em;\n}\n.ol-full-screen {\n right: .5em;\n top: .5em;\n}\n\n.ol-control button {\n display: block;\n margin: 1px;\n padding: 0;\n color: white;\n font-size: 1.14em;\n font-weight: bold;\n text-decoration: none;\n text-align: center;\n height: 1.375em;\n width: 1.375em;\n line-height: .4em;\n background-color: rgba(0,60,136,0.5);\n border: none;\n border-radius: 2px;\n}\n.ol-control button::-moz-focus-inner {\n border: none;\n padding: 0;\n}\n.ol-control button span {\n pointer-events: none;\n}\n.ol-zoom-extent button {\n line-height: 1.4em;\n}\n.ol-compass {\n display: block;\n font-weight: normal;\n font-size: 1.2em;\n will-change: transform;\n}\n.ol-touch .ol-control button {\n font-size: 1.5em;\n}\n.ol-touch .ol-zoom-extent {\n top: 5.5em;\n}\n.ol-control button:hover,\n.ol-control button:focus {\n text-decoration: none;\n background-color: rgba(0,60,136,0.7);\n}\n.ol-zoom .ol-zoom-in {\n border-radius: 2px 2px 0 0;\n}\n.ol-zoom .ol-zoom-out {\n border-radius: 0 0 2px 2px;\n}\n\n\n.ol-attribution {\n text-align: right;\n bottom: .5em;\n right: .5em;\n max-width: calc(100% - 1.3em);\n}\n\n.ol-attribution ul {\n margin: 0;\n padding: 0 .5em;\n color: #000;\n text-shadow: 0 0 2px #fff;\n}\n.ol-attribution li {\n display: inline;\n list-style: none;\n}\n.ol-attribution li:not(:last-child):after {\n content: " ";\n}\n.ol-attribution img {\n max-height: 2em;\n max-width: inherit;\n vertical-align: middle;\n}\n.ol-attribution ul, .ol-attribution button {\n display: inline-block;\n}\n.ol-attribution.ol-collapsed ul {\n display: none;\n}\n.ol-attribution:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-attribution.ol-uncollapsible {\n bottom: 0;\n right: 0;\n border-radius: 4px 0 0;\n}\n.ol-attribution.ol-uncollapsible img {\n margin-top: -.2em;\n max-height: 1.6em;\n}\n.ol-attribution.ol-uncollapsible button {\n display: none;\n}\n\n.ol-zoomslider {\n top: 4.5em;\n left: .5em;\n height: 200px;\n}\n.ol-zoomslider button {\n position: relative;\n height: 10px;\n}\n\n.ol-touch .ol-zoomslider {\n top: 5.5em;\n}\n\n.ol-overviewmap {\n left: 0.5em;\n bottom: 0.5em;\n}\n.ol-overviewmap.ol-uncollapsible {\n bottom: 0;\n left: 0;\n border-radius: 0 4px 0 0;\n}\n.ol-overviewmap .ol-overviewmap-map,\n.ol-overviewmap button {\n display: inline-block;\n}\n.ol-overviewmap .ol-overviewmap-map {\n border: 1px solid #7b98bc;\n height: 150px;\n margin: 2px;\n width: 150px;\n}\n.ol-overviewmap:not(.ol-collapsed) button{\n bottom: 1px;\n left: 2px;\n position: absolute;\n}\n.ol-overviewmap.ol-collapsed .ol-overviewmap-map,\n.ol-overviewmap.ol-uncollapsible button {\n display: none;\n}\n.ol-overviewmap:not(.ol-collapsed) {\n background: rgba(255,255,255,0.8);\n}\n.ol-overviewmap-box {\n border: 2px dotted rgba(0,60,136,0.7);\n}\n\n.ol-overviewmap .ol-overviewmap-box:hover {\n cursor: move;\n}\n',""])},function(t,e){var i=null,n=null;function o(t,e,i){t.addEventListener(e,function(t){var o=new MouseEvent(i,t);o.pointerId=1,o.isPrimary=!0,o.pointerType="mouse",o.width=1,o.height=1,o.tiltX=0,o.tiltY=0,"buttons"in t&&0!==t.buttons?o.pressure=.5:o.pressure=0;var r=t.target;null!==n&&(r=n,"mouseup"===e&&(n=null)),r.dispatchEvent(o),o.defaultPrevented&&t.preventDefault()})}function r(t,e,n){t.addEventListener(e,function(t){for(var o=t.changedTouches,r=o.length,s=0;s<r;s++){var a=new CustomEvent(n,{bubbles:!0,cancelable:!0});a.ctrlKey=t.ctrlKey,a.shiftKey=t.shiftKey,a.altKey=t.altKey,a.metaKey=t.metaKey;var h=o.item(s);a.clientX=h.clientX,a.clientY=h.clientY,a.screenX=h.screenX,a.screenY=h.screenY,a.pageX=h.pageX,a.pageY=h.pageY;var l=h.target.getBoundingClientRect();a.offsetX=h.clientX-l.left,a.offsetY=h.clientY-l.top,a.pointerId=1+h.identifier,a.button=0,a.buttons=1,a.movementX=0,a.movementY=0,a.region=null,a.relatedTarget=null,a.x=a.clientX,a.y=a.clientY,a.pointerType="touch",a.width=1,a.height=1,a.tiltX=0,a.tiltY=0,a.pressure=1,"touchstart"===e&&null===i&&(i=h.identifier),a.isPrimary=h.identifier===i,"touchend"===e&&a.isPrimary&&(i=null),t.target.dispatchEvent(a),a.defaultPrevented&&t.preventDefault()}})}"PointerEvent"in window||(Element.prototype.setPointerCapture=Element.prototype.setCapture,Element.prototype.releasePointerCapture=Element.prototype.releaseCapture,"TouchEvent"in window||(o(document,"mousedown","pointerdown"),o(document,"mousemove","pointermove"),o(document,"mouseup","pointerup")),r(document,"touchstart","pointerdown"),r(document,"touchmove","pointermove"),r(document,"touchend","pointerup"))},function(t,e,i){"use strict";i.r(e);var n=i(63),o=i(2);angular.module("ticketModule").directive("olMapSearchPanel",["ticketModel","relationModel","userModel","$q","$filter","$modal","events","$timeout","$state","i18nService","systemAlertService","objectValueMapperService","nttevents","nttAdressService",function(t,e,i,r,s,a,h,l,c,u,p,d,f,_){return{restrict:"E",scope:{selectedItem:"=",onClose:"&",map:"=",onSelectItem:"&"},templateUrl:"views/ol-map-search-panel.html",link:function(t,e,i){},controller:["$element","$attrs","$scope",function(t,e,i){i.selectedIndex=-1;var r=null;i.previewMarker=new n.a({positioning:"center-center",element:document.getElementById("adressPreviewMarker"),stopEvent:!1,offset:[0,-20],visible:!1}),i.map.addOverlay(i.previewMarker),i.onSearchTextChanged=function(){clearTimeout(r),r=setTimeout(function(){i.searchText.length>3?i.searchAdress(i.searchText):i.searchResult=[]},200)},i.$watch("selectedItem",function(t,e){t.properties}),i.clickAdressItem=function(t,e,n){e.properties.searchType="byString",-1==i.selectedIndex&&(i.originalSearchText=i.searchText),i.searchText=e.properties.Adresse,i.selectedIndex=t,i.onSelectItem({selectItem:e}),i.deletePreview(),i.closeSearchPanel()},i.processSelectedAdress=function(){if(-1!=i.selectedIndex){var t=i.searchResult[i.selectedIndex];i.clickAdressItem(i.selectedIndex,t)}},i.isCurrentItem=function(t){return void 0!==i.selectedItem&&void 0!==i.selectedItem.properties&&JSON.stringify(i.selectedItem.properties.Adresse)===JSON.stringify(t.properties.Adresse)},i.searchAdress=function(t){_.getAdresses({Address:t,crs:"EPSG:4326"}).then(function(t){t.features?i.searchResult=t.features:i.searchResult=[]})},i.clearSearchText=function(){i.searchText="",i.clearSelection()},i.clearSelection=function(){i.searchResult=[],i.selectedIndex=-1},i.closeSearchPanel=function(){i.clearSearchText(),i.onClose()},i.previewAdress=function(t){var e;(i.previewMarker.setVisible(!1),t&&!i.isCurrentItem(t))&&(e=null!=t.properties.Location?Object(o.d)(t.properties.Location.coordinates):Object(o.d)(t.geometry.coordinates),i.previewMarker.setPosition(e),i.previewMarker.setVisible(!0))},i.deletePreview=function(){i.previewMarker.setPosition(null),i.previewMarker.setVisible(!1)},i.handleKeyDown=function(t){switch(t.keyCode){case 40:-1==i.selectedIndex&&(i.originalSearchText=i.searchText),i.selectedIndex<i.searchResult.length-1&&(i.selectedIndex+=1,i.searchText=i.searchResult[i.selectedIndex].properties.Adresse);break;case 38:0==i.selectedIndex&&(i.searchText=i.originalSearchText),i.selectedIndex>-1&&(i.selectedIndex-=1,-1==i.selectedIndex?i.searchText=i.originalSearchText:i.searchText=i.searchResult[i.selectedIndex].properties.Adresse)}}}]}}])},function(t,e,i){"use strict";i.r(e),function(t){var e=i(63),n=i(2);angular.module("ticketModule").directive("ticketsNearbyPanel",["nttTicketDistanceService","ticketModel","relationModel","userModel","$q","$filter","$modal","events","$timeout","$state","i18nService","systemAlertService","objectValueMapperService","nttevents","nttAdressService",function(i,o,r,s,a,h,l,c,u,p,d,f,g,m,v){return{restrict:"E",replace:!0,scope:{selectedItem:"=",onClose:"&",map:"=",onSelectItem:"&",showNearByTicketPanel:"=",adressItem:"=",ticket:"=",distanceRange:"=",selectedStatus:"=",enableNearbyTicketPanel:"="},templateUrl:"views/tickets-nearby-panel.html",link:function(t,e,i){},controller:["$element","$attrs","$scope",function(o,s,a){if(a.enableNearbyTicketPanel){a.currentTicketId="incident"==a.ticket.type?a.ticket.id:a.ticket.parentId;var l={itemLimit:4,isDataLoading:!1,watchersOn:!1,ticketFilterStatuses:["all","open","resolved","cancelled"],mapOptions:{showTicketsOnMap:!0,showRadiusOnMap:!0}};a.recommendedTickets=[],l.ticketFilterSelectedStatus=a.selectedStatus?a.selectedStatus:l.ticketFilterStatuses[1],a.statusFilter=function(t){return"all"===l.ticketFilterSelectedStatus||("open"===l.ticketFilterSelectedStatus?_.includes(["Assigned","In Progress","Pending"],t.status):t.status.toLowerCase()===l.ticketFilterSelectedStatus||void 0)},a.$watch("state.ticketFilterSelectedStatus",function(t,e){t!=e&&c()}),t(document).on("click",".allow-focus",function(t){t.stopPropagation()}),t(".ntt-checkbox-menu").on("change","input[type='checkbox']",function(){t(this).closest("li").toggleClass("active",this.checked)}),a.state=l,a.distanceRange=a.distanceRange?a.distanceRange:.2,a.initAdressDot=function(){if(a.addressDot=a.map.getOverlayById("adress-dot"),!a.addressDot){var t=document.createElement("span");t.className="dot",a.addressDot=new e.a({id:"adress-dot",positioning:"center-center",element:t,stopEvent:!1,offset:[0,-20],visible:!0}),a.map.addOverlay(a.addressDot)}var i=Object(n.d)(a.adressItem.properties.Location?a.adressItem.properties.Location.coordinates:a.adressItem.geometry.coordinates);a.addressDot.setPosition(i),a.addressDot.setVisible(!0)},a.removeAdressDot=function(){a.map.removeOverlay(a.addressDot)},a.previewTicket=function(t){t&&(t.preview=!0,a.ticketToShow=t,document.querySelector(".m"+t.displayId).classList.add("activeTicket"))},a.deletePreview=function(t){t&&(t.preview=!1,a.ticketToShow=a.selectedTicket,document.querySelector(".m"+t.displayId).classList.remove("activeTicket"))},a.selectTicket=function(t){if(t){if(document.querySelector(".m"+t.displayId).classList.add("selectedTicket"),a.selectedTicket){var e=document.querySelector(".m"+a.selectedTicket.displayId);e&&e.classList.remove("selectedTicket"),a.selectedTicket.isSelected=!1}t.isSelected=!0,a.selectedTicket=t,a.ticketToShow=a.selectedTicket}},a.$watch("recommendedTickets",function(t,e){a.deleteOldPreviewMarkers(e),a.initPreviewMarkers(t)}),a.deleteOldPreviewMarkers=function(t){for(var e=0;e<t.length;e++){var i=a.map.getOverlayById(t[e].displayId);i&&a.map.removeOverlay(i)}},a.initPreviewMarkers=function(t){setTimeout(function(){for(var i=0;i<t.length;i++){var o=new e.a({id:t[i].displayId,positioning:"center-center",element:document.getElementById("ticketPreviewMarker-"+i),stopEvent:!1,offset:[0,-20],visible:!0,className:"m"+t[i].displayId+" ol ol-overlay-container ol-selectable"}),r=Object(n.d)([t[i].lon,t[i].lat]);o.setPosition(r),o.setVisible(!0),a.map.addOverlay(o)}},0),a.map.render()},a.$watch("adressItem",function(t,e){t!=e&&(!t&&a.showNearByTicketPanel?a.toggleShowTickets():t&&a.showNearByTicketPanel&&(c(),a.updateDistanceRadar()))}),a.toggleShowTickets=function(){setTimeout(function(){a.$emit("toggleShowTickets")},0)},a.updateDistanceRadar=function(){l.mapOptions.showRadiusOnMap&&a.map.showDistanceRadar(1e3*a.distanceRange)},a.$watch("state.mapOptions.showRadiusOnMap",function(t,e){t!=e&&(t?a.updateDistanceRadar():a.map.hideDistanceRadar())}),a.distanceChanged=function(){a.updateDistanceRadar(),c()},a.isResourceRelated=function(t){var e=r.cache[a.currentTicketId];return!!e&&_.find(e,{id:t.id})},a.linkAsDuplicateOf=function(t){a.state.savingResource=!0;var e={type:a.ticket.type,uuid:a.ticket.id},i={id:t.id,desc:t.title?t.title:t.description,type:"incident",tag:"resource",relationshipType:"duplicateof"};return r.addRelation(e,[i]).then(function(){t.tag=i.tag,i.type===EntityVO.TYPE_KNOWLEDGE&&delete r.cache[i.id]}).catch(p).finally(function(){a.state.savingResource=!1})},a.$watch("showNearByTicketPanel",function(t,e){t!=e&&(t?c():u())});var c=function(){a.initAdressDot(),a.map.hideAdressMarker(),a.updateDistanceRadar(),a.recommendedTickets=[],a.ticketToShow=null;var t=a.adressItem.geometry.coordinates[0],e=a.adressItem.geometry.coordinates[1];l.isDataLoading=!0,i.getIncidentsByDistance(e,t,a.distanceRange,a.currentTicketId,l.ticketFilterSelectedStatus).then(function(t){l.isDataLoading=!1,l.distanceServiceError=!1,a.recommendedTickets=t.incidents},function(t){l.isDataLoading=!1,l.distanceServiceError=!0,l.distanceServiceErrorMessage=t.detailedMessage,a.recommendedTickets=[]})},u=function(){a.ticketToShow=null,a.deleteOldPreviewMarkers(a.recommendedTickets),a.removeAdressDot(),a.map.showAdressMarker(),a.map.hideDistanceRadar()};a.showNearByTicketPanel&&c()}function p(t){f.error({text:t.data.errorCode?h("i18n")("error.unknown"):t.data.error||t.data.results.error})}}]}}])}.call(this,i(50))},function(t,e,i){(function(t){!function(){"use strict";t.widget("ui.numericSpinner",t.ui.spinner,{_format:function(t){return t.toFixed(this._precision())}}),angular.module("myitsmApp").directive("adressPersonCreateFieldNtt",["customFieldLinkFunction","$filter","events",function(e,i,n){return{restrict:"E",replace:!0,scope:{isEditable:"=",charLimit:"=",isHideLabel:"="},templateUrl:"views/adress-person-create-field-ntt.html",controller:"adressServiceController",link:function(e,o){e.useMemory=!0,e.useApi=!0,e.status={isCollapsed:!0},e.data={value:"",name:"adresse",ootb:!1,isRequired:!1,isReadOnly:!1},t(o).attr("autocomplete","off"),e.isHideLabel&&(e.tooltipToShow=i("customFieldLabelI18n")(e.data)),e.data.maxLength>0&&o.find(".form-control").attr("maxlength",e.data.maxLength);var r=_.cloneDeep(e.data.value);e.$on(n.SAVE_CHANGES,function(){r=_.cloneDeep(e.data.value)}),e.$on(n.DISCARD_CHANGES,function(){e.data.value=_.cloneDeep(r)})}}}])}()}).call(this,i(50))}])});