diff --git a/js/test/api_openlayers.test.js b/js/test/api_openlayers.test.js index 3912bd8..053c164 100644 --- a/js/test/api_openlayers.test.js +++ b/js/test/api_openlayers.test.js @@ -17,8 +17,7 @@ * along with this program; if not, see . */ -/* global ol */ - +import * as ol from '../src/lib/ol.js'; import OpenlayersApi from '../src/mapapi/api_openlayers.js'; import TrackFactory from './helpers/trackfactory.js'; import { config } from '../src/initializer.js' diff --git a/js/test/openlayers.bundle.js b/js/test/openlayers.bundle.js deleted file mode 100644 index ed10707..0000000 --- a/js/test/openlayers.bundle.js +++ /dev/null @@ -1,7 +0,0 @@ -var ol=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=86)}([function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return p})),n.d(e,"i",(function(){return f})),n.d(e,"j",(function(){return d})),n.d(e,"k",(function(){return _})),n.d(e,"l",(function(){return g})),n.d(e,"m",(function(){return v})),n.d(e,"n",(function(){return y})),n.d(e,"o",(function(){return m})),n.d(e,"p",(function(){return b})),n.d(e,"q",(function(){return O})),n.d(e,"r",(function(){return E})),n.d(e,"s",(function(){return x})),n.d(e,"t",(function(){return S})),n.d(e,"u",(function(){return I})),n.d(e,"v",(function(){return R})),n.d(e,"w",(function(){return w})),n.d(e,"x",(function(){return j})),n.d(e,"y",(function(){return P})),n.d(e,"z",(function(){return M})),n.d(e,"A",(function(){return L})),n.d(e,"B",(function(){return A})),n.d(e,"C",(function(){return F})),n.d(e,"D",(function(){return D})),n.d(e,"E",(function(){return N})),n.d(e,"F",(function(){return k})),n.d(e,"H",(function(){return G})),n.d(e,"I",(function(){return Y})),n.d(e,"J",(function(){return X})),n.d(e,"G",(function(){return z})),n.d(e,"a",(function(){return W}));var i=n(10),r=n(57),o=n(24);function a(t){for(var e=d(),n=0,i=t.length;nr&&(c|=o.a.RIGHT),ua&&(c|=o.a.ABOVE),c===o.a.UNKNOWN&&(c=o.a.INTERSECTING),c}function d(){return[1/0,1/0,-1/0,-1/0]}function _(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function g(t){return _(1/0,1/0,-1/0,-1/0,t)}function v(t,e){var n=t[0],i=t[1];return _(n,i,n,i,e)}function y(t,e){return T(g(e),t)}function m(t,e,n,i,r){return x(g(r),t,e,n,i)}function b(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function O(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function E(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function T(t,e){for(var n=0,i=e.length;ne[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function G(t){return t[2]=s&&v<=c),i||!(a&o.a.RIGHT)||r&o.a.RIGHT||(i=(y=_-(d-c)*g)>=u&&y<=l),i||!(a&o.a.BELOW)||r&o.a.BELOW||(i=(v=d-(_-u)/g)>=s&&v<=c),i||!(a&o.a.LEFT)||r&o.a.LEFT||(i=(y=_-(d-s)*g)>=u&&y<=l)}return i}function W(t,e,n){var i=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];return e(i,i,2),function(t,e,n){return _(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),n)}([i[0],i[2],i[4],i[6]],[i[1],i[3],i[5],i[7]],n)}},function(t,e,n){"use strict";function i(){return function(){throw new Error("Unimplemented abstract method.")}()}n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var r=0;function o(t){return t.ol_uid||(t.ol_uid=String(++r))}var a="6.1.1"},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var i=n(13);function r(t,e,n,i,r){if(i&&i!==t&&(n=n.bind(i)),r){var o=n;n=function(){t.removeEventListener(e,n),o.apply(this,arguments)}}var a={target:t,type:e,listener:n};return t.addEventListener(e,n),a}function o(t,e,n,i){return r(t,e,n,i,!0)}function a(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),Object(i.b)(t))}},function(t,e,n){"use strict";var i,r=n(14),o=n(11),a=n(13),s=n(8),u=n(1),c=n(66),l=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(t){function e(e){var n=t.call(this,e)||this;return n.consumers={},n}return l(e,t),e.prototype.clear=function(){this.consumers={},t.prototype.clear.call(this)},e.prototype.get=function(e,n){var i=t.prototype.get.call(this,e),r=Object(u.c)(n);return r in this.consumers||(this.consumers[r]={}),this.consumers[r][e]=!0,i},e.prototype.prune=function(){t:for(;this.canExpireCache();){var t=this.peekLastKey();for(var e in this.consumers)if(t in this.consumers[e])break t;var n=this.pop();for(var e in n.width=0,n.height=0,this.consumers)delete this.consumers[e][t]}},e.prototype.release=function(t){delete this.consumers[Object(u.c)(t)]},e}(c.a);n.d(e,"c",(function(){return f})),n.d(e,"b",(function(){return d})),n.d(e,"d",(function(){return _})),n.d(e,"e",(function(){return g})),n.d(e,"f",(function(){return v})),n.d(e,"g",(function(){return y})),n.d(e,"i",(function(){return m})),n.d(e,"k",(function(){return b})),n.d(e,"l",(function(){return O})),n.d(e,"m",(function(){return E})),n.d(e,"j",(function(){return T})),n.d(e,"h",(function(){return x})),n.d(e,"o",(function(){return C})),n.d(e,"a",(function(){return w})),n.d(e,"q",(function(){return L})),n.d(e,"p",(function(){return F})),n.d(e,"r",(function(){return D})),n.d(e,"s",(function(){return N})),n.d(e,"n",(function(){return G}));var p,f="10px sans-serif",d="#000",_="round",g=[],v=0,y="round",m=10,b="#000",O="center",E="middle",T=[0,0,0,0],x=1,C=new h,S={},I=null,R={},w=function(){var t,e,n=100,i=S,o="32px ",s=["monospace","serif"],u=s.length,c="wmytzilWMYTZIL@#/&?$%10";function l(t,n,i){for(var r=j(),a=!0,l=0;l1?(n=r,i=o):c>0&&(n+=s*c,i+=u*c)}return a(t,e,n,i)}function a(t,e,n,i){var r=n-t,o=i-e;return r*r+o*o}function s(t){for(var e=t.length,n=0;nr&&(r=a,i=o)}if(0===r)return null;var s=t[i];t[i]=t[n],t[n]=s;for(var u=n+1;u=0;p--){h[p]=t[p][e]/t[p][p];for(var f=p-1;f>=0;f--)t[f][e]-=t[f][p]*h[p]}return h}function u(t){return 180*t/Math.PI}function c(t){return t*Math.PI/180}function l(t,e){var n=t%e;return n*e<0?n+e:n}function h(t,e,n){return t+n*(e-t)}},function(t,e,n){"use strict";n.r(e);var i,r=n(61),o=n(0),a=n(6),s=n(21),u=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_||s.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}(),c=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=6378137,h=Math.PI*l,p=[-h,-h,h,h],f=[-180,-85,180,85],d=function(t){function e(e){return t.call(this,{code:e,units:s.b.METERS,extent:p,global:!0,worldExtent:f,getPointResolution:function(t,e){return t/Object(a.b)(e[1]/l)}})||this}return c(e,t),e}(u),_=[new d("EPSG:3857"),new d("EPSG:102100"),new d("EPSG:102113"),new d("EPSG:900913"),new d("urn:ogc:def:crs:EPSG:6.18:3:3857"),new d("urn:ogc:def:crs:EPSG::3857"),new d("http://www.opengis.net/gml/srs/epsg.xml#3857")];function g(t,e,n){var i=t.length,r=n>1?n:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(i));for(var a=h,s=0;sa?u=a:u<-a&&(u=-a),o[s+1]=u}return o}function v(t,e,n){var i=t.length,r=n>1?n:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(i));for(var a=0;a=2;--c)a[s+c]=e[s+c]}return a}}function N(t,e,n,i){var r=j(t),o=j(e);x(r,o,D(n)),x(o,r,D(i))}function k(t,e){return W(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function G(t,e){var n=W(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),i=n[0];return(i<-180||i>180)&&(n[0]=Object(a.d)(i+180,360)-180),n}function Y(t,e){if(t===e)return!0;var n=t.getUnits()===e.getUnits();return t.getCode()===e.getCode()?n:X(t,e)===S&&n}function X(t,e){var n=function(t,e){var n;return t in T&&e in T[t]&&(n=T[t][e]),n}(t.getCode(),e.getCode());return n||(n=I),n}function z(t,e){return X(j(t),j(e))}function W(t,e,n){return z(e,n)(t,void 0,t.length)}function K(t,e,n){var i=z(e,n);return Object(o.a)(t,i)}function U(t,e,n){return X(e,n)(t)}n.d(e,"cloneTransform",(function(){return S})),n.d(e,"identityTransform",(function(){return I})),n.d(e,"addProjection",(function(){return R})),n.d(e,"addProjections",(function(){return w})),n.d(e,"get",(function(){return j})),n.d(e,"getPointResolution",(function(){return P})),n.d(e,"addEquivalentProjections",(function(){return M})),n.d(e,"addEquivalentTransforms",(function(){return L})),n.d(e,"clearAllProjections",(function(){return A})),n.d(e,"createProjection",(function(){return F})),n.d(e,"createTransformFromCoordinateTransform",(function(){return D})),n.d(e,"addCoordinateTransforms",(function(){return N})),n.d(e,"fromLonLat",(function(){return k})),n.d(e,"toLonLat",(function(){return G})),n.d(e,"equivalent",(function(){return Y})),n.d(e,"getTransformFromProjections",(function(){return X})),n.d(e,"getTransform",(function(){return z})),n.d(e,"transform",(function(){return W})),n.d(e,"transformExtent",(function(){return K})),n.d(e,"transformWithProjections",(function(){return U})),n.d(e,"setUserProjection",(function(){return V})),n.d(e,"clearUserProjection",(function(){return Z})),n.d(e,"getUserProjection",(function(){return H})),n.d(e,"useGeographic",(function(){return q})),n.d(e,"toUserCoordinate",(function(){return J})),n.d(e,"fromUserCoordinate",(function(){return Q})),n.d(e,"toUserExtent",(function(){return $})),n.d(e,"fromUserExtent",(function(){return tt})),n.d(e,"addCommon",(function(){return et})),n.d(e,"METERS_PER_UNIT",(function(){return s.a})),n.d(e,"Projection",(function(){return u}));var B=null;function V(t){B=j(t)}function Z(){B=null}function H(){return B}function q(){V("EPSG:4326")}function J(t,e){return B?W(t,e,B):t}function Q(t,e){return B?W(t,B,e):t}function $(t,e){return B?K(t,e,B):t}function tt(t,e){return B?K(t,B,e):t}function et(){M(_),M(E),L(E,_,g,v)}et()},function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"h",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"g",(function(){return l})),n.d(e,"e",(function(){return h})),n.d(e,"b",(function(){return p})),n.d(e,"d",(function(){return f})),n.d(e,"i",(function(){return d}));var i=n(10),r=new Array(6);function o(){return[1,0,0,1,0,0]}function a(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],u=e[0],c=e[1],l=e[2],h=e[3],p=e[4],f=e[5];return t[0]=n*u+r*c,t[1]=i*u+o*c,t[2]=n*l+r*h,t[3]=i*l+o*h,t[4]=n*p+r*f+a,t[5]=i*p+o*f+s,t}function s(t,e,n,i,r,o,a){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t}function u(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 c(t,e){var n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e}function l(t,e,n){return a(t,s(r,e,0,0,n,0,0))}function h(t,e,n){return s(t,e,0,0,n,0,0)}function p(t,e,n,i,r,o,a,s){var u=Math.sin(o),c=Math.cos(o);return t[0]=i*c,t[1]=r*u,t[2]=-i*u,t[3]=r*c,t[4]=a*i*c-s*i*u+e,t[5]=a*r*u+s*r*c+n,t}function f(t,e){var n,r=(n=e)[0]*n[3]-n[1]*n[2];Object(i.a)(0!==r,32);var o=e[0],a=e[1],s=e[2],u=e[3],c=e[4],l=e[5];return t[0]=u/r,t[1]=-a/r,t[2]=-s/r,t[3]=o/r,t[4]=(s*l-u*c)/r,t[5]=-(o*l-a*c)/r,t}function d(t){return"matrix("+t.join(", ")+")"}},function(t,e,n){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4,ABORT:5}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(65);function r(t,e){if(!t)throw new i.a(e)}},function(t,e,n){"use strict";function i(t,e){var n=document.createElement("canvas");return t&&(n.width=t),e&&(n.height=e),n.getContext("2d")}function r(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10)}function o(t){var e=t.offsetHeight,n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10)}function a(t,e){var n=e.parentNode;n&&n.replaceChild(t,e)}function s(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function u(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function c(t,e){for(var n=t.childNodes,i=0;;++i){var r=n[i],o=e[i];if(!r&&!o)break;r!==o&&(r?o?t.insertBefore(o,r):(t.removeChild(r),--i):t.appendChild(o))}}n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"f",(function(){return c}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return f}));var i,r=n(1),o=n(38),a=n(63),s=n(26),u=n(13),c=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.key=n,r.oldValue=i,r}return c(e,t),e}(s.a),h=function(t){function e(e){var n=t.call(this)||this;return Object(r.c)(n),n.values_={},void 0!==e&&n.setProperties(e),n}return c(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(u.a)({},this.values_)},e.prototype.notify=function(t,e){var n;n=f(t),this.dispatchEvent(new l(n,t,e)),n=o.a.PROPERTYCHANGE,this.dispatchEvent(new l(n,t,e))},e.prototype.set=function(t,e,n){if(n)this.values_[t]=e;else{var i=this.values_[t];this.values_[t]=e,i!==e&&this.notify(t,i)}},e.prototype.setProperties=function(t,e){for(var n in t)this.set(n,t[n],e)},e.prototype.unset=function(t,e){if(t in this.values_){var n=this.values_[t];delete this.values_[t],e||this.notify(t,n)}},e}(a.a),p={};function f(t){return p.hasOwnProperty(t)?p[t]:p[t]="change:"+t}e.a=h},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a}));var i="function"==typeof Object.assign?Object.assign:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1,r=arguments.length;i>1)],e))<0?s=i+1:(u=i,c=!o);return c?s:~s}function r(t,e){return t>e?1:t0){for(r=1;r0||n&&0===o)}))}n.d(e,"a",(function(){return i})),n.d(e,"f",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u})),n.d(e,"d",(function(){return c}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s}));var i=n(15);function r(){return!0}function o(){return!1}function a(){}function s(t){var e,n,r,o=!1;return function(){var a=Array.prototype.slice.call(arguments);return o&&this===r&&Object(i.b)(a,n)||(o=!0,r=this,n=a,e=t.apply(this,arguments)),e}}},function(t,e,n){"use strict";var i=n(5);e.a={SINGLECLICK:"singleclick",CLICK:i.a.CLICK,DBLCLICK:i.a.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},function(t,e,n){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},function(t,e,n){"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,n){"use strict";e.a={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},r={};r[i.DEGREES]=2*Math.PI*6370997/360,r[i.FEET]=.3048,r[i.METERS]=1,r[i.USFEET]=1200/3937,e.b=i},function(t,e,n){"use strict";e.a={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"}},function(t,e,n){"use strict";e.a={ANIMATING:0,INTERACTING:1}},function(t,e,n){"use strict";e.a={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},function(t,e,n){"use strict";function i(t){return Math.pow(t,3)}function r(t){return 1-i(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=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}();function r(t){t.stopPropagation()}e.a=i},function(t,e,n){"use strict";e.a={ADD:"add",REMOVE:"remove"}},function(t,e,n){"use strict";e.a={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return u}));var i="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",r=-1!==i.indexOf("firefox"),o=(-1!==i.indexOf("safari")&&i.indexOf("chrom"),-1!==i.indexOf("webkit")&&-1==i.indexOf("edge")),a=-1!==i.indexOf("macintosh"),s=window.devicePixelRatio||1,u="undefined"!=typeof Image&&Image.prototype.decode},function(t,e,n){"use strict";var i,r=n(65),o=n(27),a=n(12),s=n(26),u=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c="length",l=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.element=n,r.index=i,r}return u(e,t),e}(s.a),h=function(t){function e(e,n){var i=t.call(this)||this,r=n||{};if(i.unique_=!!r.unique,i.array_=e||[],i.unique_)for(var o=0,a=i.array_.length;o0;)this.pop()},e.prototype.extend=function(t){for(var e=0,n=t.length;e0&&t[1]>0}function r(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function o(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o}))},function(t,e,n){"use strict";e.a={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"}},function(t,e,n){"use strict";e.a={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"}},function(t,e,n){"use strict";var i,r=n(43),o=n(16),a=n(26),s=n(13),u=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e){var n=t.call(this)||this;return n.eventTarget_=e,n.pendingRemovals_={},n.dispatching_={},n.listeners_={},n}return u(e,t),e.prototype.addEventListener=function(t,e){if(t&&e){var n=this.listeners_[t];n||(n=[],this.listeners_[t]=n),-1===n.indexOf(e)&&n.push(e)}},e.prototype.dispatchEvent=function(t){var e="string"==typeof t?new a.a(t):t,n=e.type;e.target||(e.target=this.eventTarget_||this);var i,r=this.listeners_[n];if(r){n in this.dispatching_||(this.dispatching_[n]=0,this.pendingRemovals_[n]=0),++this.dispatching_[n];for(var s=0,u=r.length;s0},e.prototype.removeEventListener=function(t,e){var n=this.listeners_[t];if(n){var i=n.indexOf(e);-1!==i&&(t in this.pendingRemovals_?(n[i]=o.c,++this.pendingRemovals_[t]):(n.splice(i,1),0===n.length&&delete this.listeners_[t]))}},e}(r.a);e.a=c},function(t,e,n){"use strict";e.a={PROPERTYCHANGE:"propertychange"}},function(t,e,n){"use strict";n(6);function i(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function r(t,e){for(var n=!0,i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function o(t,e){var n=Math.cos(e),i=Math.sin(e),r=t[0]*n-t[1]*i,o=t[1]*n+t[0]*i;return t[0]=r,t[1]=o,t}function a(t,e){return t[0]*=e,t[1]*=e,t}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a}))},function(t,e,n){"use strict";e.a={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},function(t,e,n){"use strict";n.d(e,"b",(function(){return d}));var i,r=n(2),o=n(5),a=n(12),s=n(64),u=n(19),c=n(13),l=n(42),h=n(36),p=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=function(t){function e(e){var n=this,i=Object(c.a)({},e);delete i.source,(n=t.call(this,i)||this).mapPrecomposeKey_=null,n.mapRenderKey_=null,n.sourceChangeKey_=null,n.renderer_=null,e.render&&(n.render=e.render),e.map&&n.setMap(e.map),n.addEventListener(Object(a.b)(u.a.SOURCE),n.handleSourcePropertyChange_);var r=e.source?e.source:null;return n.setSource(r),n}return p(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(u.a.SOURCE)||null},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():h.a.UNDEFINED},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(r.c)(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=Object(r.a)(t,o.a.CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.getFeatures=function(t){return this.renderer_.getFeatures(t)},e.prototype.render=function(t,e){var n=this.getRenderer();if(n.prepareFrame(t))return n.renderFrame(t,e)},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Object(r.c)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Object(r.c)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Object(r.a)(t,l.a.PRECOMPOSE,(function(t){t.frameState.layerStatesArray.push(this.getLayerState(!1))}),this),this.mapRenderKey_=Object(r.a)(this,o.a.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(u.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}(s.a);function d(t,e){if(!t.visible)return!1;var n=e.resolution;if(n=t.maxResolution)return!1;var i=e.zoom;return i>t.minZoom&&i<=t.maxZoom}e.a=f},function(t,e,n){"use strict";e.a={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},function(t,e,n){"use strict";var i=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=i},function(t,e,n){"use strict";var i,r=n(1),o=n(0),a=n(12),s=n(32),u=n(7),c=n(21),l=n(8),h=n(16),p=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=Object(l.c)(),d=function(t){function e(){var e=t.call(this)||this;return e.extent_=Object(o.j)(),e.extentRevision_=-1,e.simplifiedGeometryMaxMinSquaredTolerance=0,e.simplifiedGeometryRevision=0,e.simplifyTransformedInternal=Object(h.d)((function(t,e,n){if(!n)return this.getSimplifiedGeometry(e);var i=this.clone();return i.applyTransform(n),i.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(r.b)()},e.prototype.closestPointXY=function(t,e,n,i){return Object(r.b)()},e.prototype.containsXY=function(t,e){var n=this.getClosestPoint([t,e]);return n[0]===t&&n[1]===e},e.prototype.getClosestPoint=function(t,e){var n=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],n,1/0),n},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return Object(r.b)()},e.prototype.getExtent=function(t){return this.extentRevision_!=this.getRevision()&&(this.extent_=this.computeExtent(this.extent_),this.extentRevision_=this.getRevision()),Object(o.I)(this.extent_,t)},e.prototype.rotate=function(t,e){Object(r.b)()},e.prototype.scale=function(t,e,n){Object(r.b)()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return Object(r.b)()},e.prototype.getType=function(){return Object(r.b)()},e.prototype.applyTransform=function(t){Object(r.b)()},e.prototype.intersectsExtent=function(t){return Object(r.b)()},e.prototype.translate=function(t,e){Object(r.b)()},e.prototype.transform=function(t,e){var n=Object(u.get)(t),i=n.getUnits()==c.b.TILE_PIXELS?function(t,i,r){var a=n.getExtent(),c=n.getWorldExtent(),h=Object(o.A)(c)/Object(o.A)(a);return Object(l.b)(f,c[0],c[3],h,-h,0,0,0),Object(s.c)(t,0,t.length,r,f,i),Object(u.getTransform)(n,e)(t,i,r)}:Object(u.getTransform)(n,e);return this.applyTransform(i),this},e}(a.a),_=n(22);n.d(e,"b",(function(){return m}));var g=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=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(o.o)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return Object(r.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().lengtho&&(c-s)*(o-u)-(r-s)*(l-u)>0&&a++:l<=o&&(c-s)*(o-u)-(r-s)*(l-u)<0&&a--,s=c,u=l}return 0!==a}function a(t,e,n,i,r,a){if(0===n.length)return!1;if(!o(t,e,n[0],i,r,a))return!1;for(var s=1,u=n.length;sE&&(l=(h+p)/2,Object(y.c)(t,e,n,r,l,_)&&(O=l,E=T)),h=p}return isNaN(O)&&(O=o[a]),s?(s.push(O,_,E),s):[O,_,E]}var b=n(69);function O(t,e,n,i){for(;e0}function T(t,e,n,i,r){for(var o=void 0!==r&&r,a=0,s=n.length;a1)u=n;else{if(f>0){for(var d=0;do&&(o=l),a=u,s=c}return o}function a(t,e,n,i,r){for(var a=0,s=n.length;a=1024){var n=0;for(var r in c)0==(3&n++)&&(delete c[r],--l)}e=function(t){var e,n,r,s,c;if(a.exec(t)&&(t=u(t)),o.exec(t)){var l=t.length-1,h=void 0;h=l<=4?1:2;var p=4===l||8===l;e=parseInt(t.substr(1+0*h,h),16),n=parseInt(t.substr(1+1*h,h),16),r=parseInt(t.substr(1+2*h,h),16),s=p?parseInt(t.substr(1+3*h,h),16):255,1==h&&(e=(e<<4)+e,n=(n<<4)+n,r=(r<<4)+r,p&&(s=(s<<4)+s)),c=[e,n,r,s/255]}else 0==t.indexOf("rgba(")?f(c=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((c=t.slice(4,-1).split(",").map(Number)).push(1),f(c)):Object(i.a)(!1,14);return c}(t),c[t]=e,++l}return e});function p(t){return Array.isArray(t)?t:h(t)}function f(t){return t[0]=Object(r.a)(t[0]+.5|0,0,255),t[1]=Object(r.a)(t[1]+.5|0,0,255),t[2]=Object(r.a)(t[2]+.5|0,0,255),t[3]=Object(r.a)(t[3],0,1),t}function d(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var n=t[1];n!=(0|n)&&(n=n+.5|0);var i=t[2];return i!=(0|i)&&(i=i+.5|0),"rgba("+e+","+n+","+i+","+(void 0===t[3]?1:t[3])+")"}},function(t,e,n){"use strict";function i(t,e,n,i){for(var r=0,o=n.length;r0;){for(var p=l.pop(),f=l.pop(),d=0,_=t[f],g=t[f+1],v=t[p],y=t[p+1],m=f+r;md&&(h=m,d=E)}d>o&&(c[(h-e)/r]=1,f+r0&&g>d)&&(_<0&&v<_||_==v||_>0&&v>_)?(u=p,c=f):(a[s++]=u,a[s++]=c,l=u,h=c,u=p,c=f)}}return a[s++]=u,a[s++]=c,s}function s(t,e,n,i,r,o,s,u){for(var c=0,l=n.length;cthis.maxX&&(this.maxX=t.maxX),t.minYthis.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 r(t,e,n,r,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=n,o.maxY=r,o):new i(t,e,n,r)}e.b=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n(52),r=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 n=this.cache_[e];0!=(3&t++)||n.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},t.prototype.get=function(t,e,n){var i=o(t,e,n);return i in this.cache_?this.cache_[i]:null},t.prototype.set=function(t,e,n,i){var r=o(t,e,n);this.cache_[r]=i,++this.cacheSize_},t.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()},t}();function o(t,e,n){return e+":"+t+":"+(n?Object(i.b)(n):"null")}var a=new r},function(t,e,n){"use strict";n.r(e);var i=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.default=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var i=n(6),r=(n(4),6371008.8);function o(t,e,n){var o=n||r,a=Object(i.i)(t[1]),s=Object(i.i)(e[1]),u=(s-a)/2,c=Object(i.i)(e[0]-t[0])/2,l=Math.sin(u)*Math.sin(u)+Math.sin(c)*Math.sin(c)*Math.cos(a)*Math.cos(s);return 2*o*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function a(t,e,n,o){var a=o||r,s=Object(i.i)(t[1]),u=Object(i.i)(t[0]),c=e/a,l=Math.asin(Math.sin(s)*Math.cos(c)+Math.cos(s)*Math.sin(c)*Math.cos(n)),h=u+Math.atan2(Math.sin(n)*Math.sin(c)*Math.cos(s),Math.cos(c)-Math.sin(s)*Math.sin(l));return[Object(i.h)(h),Object(i.h)(l)]}},function(t,e,n){"use strict";var i,r=n(15),o=n(33),a=n(0),s=n(4),u=n(44),c=n(32),l=n(68),h=n(3),p=n(8),f=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),d=function(t){function e(e,n,i,r,o,a,s){var u=t.call(this)||this;return u.context_=e,u.pixelRatio_=n,u.extent_=i,u.transform_=r,u.viewRotation_=o,u.squaredTolerance_=a,u.userTransform_=s,u.contextFillState_=null,u.contextStrokeState_=null,u.contextTextState_=null,u.fillState_=null,u.strokeState_=null,u.image_=null,u.imageAnchorX_=0,u.imageAnchorY_=0,u.imageHeight_=0,u.imageOpacity_=0,u.imageOriginX_=0,u.imageOriginY_=0,u.imageRotateWithView_=!1,u.imageRotation_=0,u.imageScale_=0,u.imageWidth_=0,u.text_="",u.textOffsetX_=0,u.textOffsetY_=0,u.textRotateWithView_=!1,u.textRotation_=0,u.textScale_=0,u.textFillState_=null,u.textStrokeState_=null,u.textState_=null,u.pixelCoordinates_=[],u.tmpLocalTransform_=Object(p.c)(),u}return f(e,t),e.prototype.drawImages_=function(t,e,n,i){if(this.image_){var r=Object(c.c)(t,e,n,2,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,s=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=s*this.imageOpacity_);var u=this.imageRotation_;this.imageRotateWithView_&&(u+=this.viewRotation_);for(var l=0,h=r.length;lthis.highWaterMark},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent(a.a.CLEAR)},e.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},e.prototype.forEach=function(t){for(var e=this.oldest_;e;)t(e.value_,e.key_,this),e=e.newer},e.prototype.get=function(t,e){var n=this.entries_[t];return Object(r.a)(void 0!==n,15),n===this.newest_?n.value_:(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n,n.value_)},e.prototype.remove=function(t){var e=this.entries_[t];return Object(r.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_},e.prototype.getCount=function(){return this.count_},e.prototype.getKeys=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e},e.prototype.getValues=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.value_;return e},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.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_},e.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},e.prototype.set=function(t,e){Object(r.a)(!(t in this.entries_),16);var n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_},e.prototype.setSize=function(t){this.highWaterMark=t},e}(o.a);e.a=u},function(t,e,n){"use strict";var i,r=n(26),o=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.inversePixelTransform=n,o.frameState=i,o.context=r,o}return o(e,t),e}(r.a);e.a=a},function(t,e,n){"use strict";var i=function(){function t(){}return t.prototype.drawCustom=function(t,e,n){},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=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n(0),r=n(47),o=n(70);function a(t,e,n,r,a){var s=Object(i.s)(Object(i.j)(),t,e,n,r);return!!Object(i.F)(a,s)&&(!!Object(i.g)(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||Object(o.a)(t,e,n,r,(function(t,e){return Object(i.G)(a,t,e)})))))}function s(t,e,n,i,o){if(!function(t,e,n,i,o){return!!a(t,e,n,i,o)||(!!Object(r.b)(t,e,n,i,o[0],o[1])||(!!Object(r.b)(t,e,n,i,o[0],o[3])||(!!Object(r.b)(t,e,n,i,o[2],o[1])||!!Object(r.b)(t,e,n,i,o[2],o[3]))))}(t,e,n[0],i,o))return!1;if(1===n.length)return!0;for(var s=1,u=n.length;sr;){if(o-r>600){var s=o-r+1,u=i-r+1,c=Math.log(s),l=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*l*(s-l)/s)*(u-s/2<0?-1:1);t(n,i,Math.max(r,Math.floor(i-u*l/s+h)),Math.min(o,Math.floor(i+(s-u)*l/s+h)),a)}var p=n[i],f=r,d=o;for(e(n,r,i),a(n[o],p)>0&&e(n,r,o);f0;)d--}0===a(n[r],p)?e(n,r,d):e(n,++d,o),d<=i&&(r=d+1),i<=d&&(o=d-1)}}(t,i,r||0,o||t.length-1,a||n)}function e(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function n(t,e){return te?1:0}var i=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 r(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i=t.minX&&e.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function _(e,n,i,r,o){for(var a=[n,i];a.length;)if(!((i=a.pop())-(n=a.pop())<=r)){var s=n+Math.ceil((i-n)/r/2)*r;t(e,s,n,i,o),a.push(n,s,s,i)}}return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(t){var e=this.data,n=[];if(!f(t,e))return n;for(var i=this.toBBox,r=[];e;){for(var o=0;o=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)},i.prototype._split=function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var a=this._chooseSplitIndex(n,r,i),s=d(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},i.prototype._splitRoot=function(t,e){this.data=d([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(t,e,n){for(var i,r,o,s,u,c,h,p=1/0,f=1/0,d=e;d<=n-e;d++){var _=a(t,0,d,this.toBBox),g=a(t,d,n,this.toBBox),v=(r=_,o=g,s=Math.max(r.minX,o.minX),u=Math.max(r.minY,o.minY),c=Math.min(r.maxX,o.maxX),h=Math.min(r.maxY,o.maxY),Math.max(0,c-s)*Math.max(0,h-u)),y=l(_)+l(g);v=e;f--){var d=t.children[f];s(u,t.leaf?r(d):d),c+=h(u)}return c},i.prototype._adjustParentBBoxes=function(t,e,n){for(var i=n;i>=0;i--)s(e[i],t)},i.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},i}()},function(t,e,n){"use strict";function i(t,e,n,i){for(var r=t[e],o=t[e+1],a=0,s=e+i;sthis.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.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}(v.a),O=n(45),E=n(28),T=n(42),x=n(12),C=n(38),S=n(9),I=n(5),R=n(10),w=n(13),j=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(w.b)(this.queuedElements_)},t.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var i=this.keyFunction_(n);return delete this.queuedElements_[i],n},t.prototype.enqueue=function(t){Object(R.a)(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=1/0&&(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_,n=this.priorities_,i=e.length,r=e[t],o=n[t],a=t;t>1;){var s=this.getLeftChildIndex_(t),u=this.getRightChildIndex_(t),c=ut;){var a=this.getParentIndex_(e);if(!(i[a]>o))break;n[e]=n[a],i[e]=i[a],e=a}n[e]=r,i[e]=o},t.prototype.reprioritize=function(){var t,e,n,i=this.priorityFunction_,r=this.elements_,o=this.priorities_,a=0,s=r.length;for(e=0;e0;)r=(i=this.dequeue()[0]).getKey(),(n=i.getState())===S.a.ABORT?a=!0:n!==S.a.IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++o,i.load());0===o&&a&&this.tileChangeCallback_()},e}(j),L=n(85),A=n(23),F=n(11),D=n(0),N=n(16),k=n(64),G=n(36),Y=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),X={LAYERS:"layers"},z=function(t){function e(e){var n=this,i=e||{},r=Object(w.a)({},i);delete r.layers;var a=i.layers;return(n=t.call(this,r)||this).layersListenerKeys_=[],n.listenerKeys_={},n.addEventListener(Object(x.b)(X.LAYERS),n.handleLayersChanged_),a?Array.isArray(a)?a=new o.a(a.slice(),{unique:!0}):Object(R.a)("function"==typeof a.getArray,43):a=new o.a(void 0,{unique:!0}),n.setLayers(a),n}return Y(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,a.a.ADD,this.handleLayersAdd_,this),Object(g.a)(t,a.a.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(g.c);Object(w.b)(this.listenerKeys_);for(var n=t.getArray(),i=0,o=n.length;i=0;i--){var r=n[i];if(r.getActive())if(!r.handleEvent(t))break}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var n=this.maxTilesLoading_,i=n;if(t){var r=t.viewHints;if(r[A.a.ANIMATING]||r[A.a.INTERACTING]){var o=!p.c&&Date.now()-t.time>8;n=o?0:8,i=o?0:2}}e.getTilesLoading()g[2])d=[y+v*Math.ceil((g[0]-y)/v),t[1]];i&&_.push([-v,0],[v,0])}var m,b=e.layerStatesArray,O=b.length;this.declutterTree_&&(m=this.declutterTree_.all().map((function(t){return t.value})));for(var E=[],T=0;T<_.length;T++)for(var x=O-1;x>=0;--x){var C=b[x],S=C.layer;if(S.hasRenderer()&&Object(r.b)(C,h)&&s.call(u,S)){var I=S.getRenderer(),R=S.getSource();if(I&&R){var w=R.getWrapX()?d:t,j=p.bind(null,C.managed);E[0]=w[0]+_[T][0],E[1]=w[1]+_[T][1],l=I.forEachFeatureAtCoordinate(E,e,n,j,m)}if(l)return l}}},e.prototype.forEachLayerAtPixel=function(t,e,n,i,r){return Object(s.b)()},e.prototype.hasFeatureAtCoordinate=function(t,e,n,i,r,o){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,i,l.b,this,r,o)},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){this.declutterTree_=function(t,e){e&&e.clear();for(var n=t.declutterItems,i=n.length-1;i>=0;--i)for(var r=n[i],o=r.items,a=0,s=o.length;a=0;--u){var c=s[u],l=c.layer;if(l.hasRenderer()&&Object(r.b)(c,a)&&o(l)){var h=l.getRenderer().getDataAtPixel(t,e,n);if(h){var p=i(l,h);if(p)return p}}}},e}(g);e.a=T},function(t,e,n){"use strict";var i,r=n(0),o=n(11),a=n(67),s=n(42),u=n(3),c=n(1),l=n(18),h=n(63),p=n(5),f=n(36),d=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),_=function(t){function e(e){var n=t.call(this)||this;return n.boundHandleImageChange_=n.handleImageChange_.bind(n),n.layer_=e,n}return d(e,t),e.prototype.getFeatures=function(t){return Object(c.b)()},e.prototype.prepareFrame=function(t){return Object(c.b)()},e.prototype.renderFrame=function(t,e){return Object(c.b)()},e.prototype.loadedTileCallback=function(t,e,n){t[e]||(t[e]={}),t[e][n.tileCoord.toString()]=n},e.prototype.createLoadedTileFinder=function(t,e,n){return function(i,r){var o=this.loadedTileCallback.bind(this,n,i);return t.forEachLoadedTile(e,i,r,o)}.bind(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){},e.prototype.getDataAtPixel=function(t,e,n){return Object(c.b)()},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleFontsChanged=function(){},e.prototype.handleImageChange_=function(t){t.target.getState()===l.a.LOADED&&this.renderIfReadyAndVisible()},e.prototype.loadImage=function(t){var e=t.getState();return e!=l.a.LOADED&&e!=l.a.ERROR&&t.addEventListener(p.a.CHANGE,this.boundHandleImageChange_),e==l.a.IDLE&&(t.load(),e=t.getState()),e==l.a.LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t.getVisible()&&t.getSourceState()==f.a.READY&&t.changed()},e}(h.a),g=n(8),v=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),y=function(t){function e(e){var n=t.call(this,e)||this;return n.container=null,n.renderedResolution,n.tempTransform_=Object(g.c)(),n.pixelTransform=Object(g.c)(),n.inversePixelTransform=Object(g.c)(),n.context=null,n.containerReused=!1,n.createTransformStringCanvas_=Object(o.a)(1,1).canvas,n}return v(e,t),e.prototype.useContainer=function(t,e,n){var i,r,a=this.getLayer().getClassName();t&&""===t.style.opacity&&t.className===a&&((u=t.firstElementChild)instanceof HTMLCanvasElement&&(r=u.getContext("2d")));if(r&&r.canvas.style.transform===e?(this.container=t,this.context=r,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){(i=document.createElement("div")).className=a;var s=i.style;s.position="absolute",s.width="100%",s.height="100%";var u=(r=Object(o.a)()).canvas;i.appendChild(u),(s=u.style).position="absolute",s.left="0",s.transformOrigin="top left",this.container=i,this.context=r}},e.prototype.clip=function(t,e,n){var i=e.pixelRatio,o=e.size[0]*i/2,a=e.size[1]*i/2,s=e.viewState.rotation,c=Object(r.C)(n),l=Object(r.D)(n),h=Object(r.w)(n),p=Object(r.v)(n);Object(g.a)(e.coordinateToPixelTransform,c),Object(g.a)(e.coordinateToPixelTransform,l),Object(g.a)(e.coordinateToPixelTransform,h),Object(g.a)(e.coordinateToPixelTransform,p),t.save(),Object(u.s)(t,-s,o,a),t.beginPath(),t.moveTo(c[0]*i,c[1]*i),t.lineTo(l[0]*i,l[1]*i),t.lineTo(h[0]*i,h[1]*i),t.lineTo(p[0]*i,p[1]*i),t.clip(),Object(u.s)(t,s,o,a)},e.prototype.clipUnrotated=function(t,e,n){var i=Object(r.C)(n),o=Object(r.D)(n),a=Object(r.w)(n),s=Object(r.v)(n);Object(g.a)(e.coordinateToPixelTransform,i),Object(g.a)(e.coordinateToPixelTransform,o),Object(g.a)(e.coordinateToPixelTransform,a),Object(g.a)(e.coordinateToPixelTransform,s);var u=this.inversePixelTransform;Object(g.a)(u,i),Object(g.a)(u,o),Object(g.a)(u,a),Object(g.a)(u,s),t.save(),t.beginPath(),t.moveTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.clip()},e.prototype.dispatchRenderEvent_=function(t,e,n){var i=this.getLayer();if(i.hasListener(t)){var r=new a.a(t,this.inversePixelTransform,n,e);i.dispatchEvent(r)}},e.prototype.preRender=function(t,e){this.dispatchRenderEvent_(s.a.PRERENDER,t,e)},e.prototype.postRender=function(t,e){this.dispatchRenderEvent_(s.a.POSTRENDER,t,e)},e.prototype.getRenderTransform=function(t,e,n,i,r,o,a){var s=r/2,u=o/2,c=i/e,l=-c,h=-t[0]+a,p=-t[1];return Object(g.b)(this.tempTransform_,s,u,c,l,-n,h,p)},e.prototype.getDataAtPixel=function(t,e,n){var i,r=Object(g.a)(this.inversePixelTransform,t.slice()),o=this.context;try{i=o.getImageData(Math.round(r[0]),Math.round(r[1]),1,1).data}catch(t){return"SecurityError"===t.name?new Uint8Array:i}return 0===i[3]?null:i},e.prototype.createTransformString=function(t){return this.createTransformStringCanvas_.style.transform=Object(g.i)(t),this.createTransformStringCanvas_.style.transform},e}(_);e.a=y},function(t,e,n){"use strict";var i,r=n(1),o=n(37),a=n(5),s=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.extent=e,o.pixelRatio_=i,o.resolution=n,o.state=r,o}return s(e,t),e.prototype.changed=function(){this.dispatchEvent(a.a.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return Object(r.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(r.b)()},e}(o.a),c=n(18),l=n(2),h=n(0),p=n(29);n.d(e,"a",(function(){return d}));var f=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function d(t,e,n){var i=t;if(i.src&&p.c){var r=i.decode(),o=!0;return r.then((function(){o&&e()})).catch((function(t){o&&("EncodingError"===t.name&&"Invalid image type."===t.message?e():n())})),function(){o=!1}}var s=[Object(l.b)(i,a.a.LOAD,e),Object(l.b)(i,a.a.ERROR,n)];return function(){s.forEach(l.c)}}!function(t){function e(e,n,i,r,o,a){var s=t.call(this,e,n,i,c.a.IDLE)||this;return s.src_=r,s.image_=new Image,null!==o&&(s.image_.crossOrigin=o),s.unlisten_=null,s.state=c.a.IDLE,s.imageLoadFunction_=a,s}f(e,t),e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=c.a.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Object(h.A)(this.extent)/this.image_.height),this.state=c.a.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=c.a.IDLE&&this.state!=c.a.ERROR||(this.state=c.a.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=d(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)}}(u)},function(t,e,n){ -/*! - * PEP v0.5.3 | https://github.com/jquery/PEP - * Copyright jQuery Foundation and other contributors | http://jquery.org/license - */ -t.exports=function(){"use strict";var t=["bubbles","cancelable","view","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pageX","pageY"],e=[!1,!1,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0];function n(n,i){i=i||Object.create(null);var r=document.createEvent("Event");r.initEvent(n,i.bubbles||!1,i.cancelable||!1);for(var o,a=2;a0){var e=this.events;t.addEventListener("touchend",(function(){t._scrollType=void 0,c.unlisten(t,e)}))}else t._scrollType=void 0,c.unlisten(t,this.events);j(t).forEach((function(t){t._scrollType=void 0,c.unlisten(t,this.events)}),this)},elementChanged:function(t,e){var n=t.getAttribute("touch-action"),i=this.touchActionToScrollType(n),r=this.touchActionToScrollType(e);"number"==typeof i&&"number"==typeof r?(t._scrollType=i,j(t).forEach((function(t){t._scrollType=i}),this)):"number"==typeof r?this.elementRemoved(t):"number"==typeof i&&this.elementAdded(t)},scrollTypes:{UP:function(t){return t.includes("pan-y")||t.includes("pan-up")?1:0},DOWN:function(t){return t.includes("pan-y")||t.includes("pan-down")?2:0},LEFT:function(t){return t.includes("pan-x")||t.includes("pan-left")?4:0},RIGHT:function(t){return t.includes("pan-x")||t.includes("pan-right")?8:0}},touchActionToScrollType:function(t){if(t){if("auto"===t)return 15;if("none"===t)return 0;var e=t.split(" "),n=this.scrollTypes;return n.UP(e)|n.DOWN(e)|n.LEFT(e)|n.RIGHT(e)}},POINTER_TYPE:"touch",firstTouch:null,isPrimaryTouch:function(t){return this.firstTouch===t.identifier},setPrimaryTouch:function(t){(0===P.size||1===P.size&&P.has(1))&&(this.firstTouch=t.identifier,this.firstXY={X:t.clientX,Y:t.clientY},this.scrolling=!1)},removePrimaryPointer:function(t){t.isPrimary&&(this.firstTouch=null,this.firstXY=null)},typeToButtons:function(t){var e=0;return"touchstart"!==t&&"touchmove"!==t&&"touchforcechange"!==t||(e=1),e},touchToPointer:function(t){var e=this.currentTouchEvent,n=c.cloneEvent(t),i=n.pointerId=t.identifier+2;if(n.target=R[i]||w(n),n.bubbles=!0,n.cancelable=!0,n.button=0,n.buttons=this.typeToButtons(e.type),n.width=2*(t.radiusX||t.webkitRadiusX||0),n.height=2*(t.radiusY||t.webkitRadiusY||0),n.pressure=void 0!==t.force?t.force:void 0!==t.webkitForce?t.webkitForce:void 0,n.isPrimary=this.isPrimaryTouch(t),t.altitudeAngle){var r=Math.tan(t.altitudeAngle),o=180/Math.PI;n.tiltX=Math.atan(Math.cos(t.azimuthAngle)/r)*o,n.tiltY=Math.atan(Math.sin(t.azimuthAngle)/r)*o}else n.tiltX=0,n.tiltY=0;"stylus"===t.touchType?n.pointerType="pen":n.pointerType=this.POINTER_TYPE,n.altKey=e.altKey,n.ctrlKey=e.ctrlKey,n.metaKey=e.metaKey,n.shiftKey=e.shiftKey;var a=this;return n.preventDefault=function(){a.scrolling=!1,a.firstXY=null,e.preventDefault()},n},processTouches:function(t,e){var n=t.changedTouches;this.currentTouchEvent=t;for(var i,r=0;ro:l?e=s>o&&a>0:h&&(e=s>o&&a<0),e||(u&&c?e=s0:c&&(e=s=e.length){var n=[];P.forEach((function(t,i){if(1!==i&&!this.findTouch(e,i-2)){var r=t.out;n.push(r)}}),this),n.forEach(this.cancelOut,this)}},touchstart:function(t){this.vacuumTouches(t),this.setPrimaryTouch(t.changedTouches[0]),this.dedupSynthMouse(t),this.scrolling||this.processTouches(t,this.overDown)},overDown:function(t){P.set(t.pointerId,{target:t.target,out:t,outTarget:t.target}),c.enterOver(t),c.down(t)},touchforcechange:function(t){this.touchmove(t)},touchmove:function(t){this.scrolling||(this.shouldScroll(t)?(this.scrolling=!0,this.touchcancel(t)):("touchforcechange"!==t.type&&t.preventDefault(),this.processTouches(t,this.moveOverOut)))},moveOverOut:function(t){var e=t,n=P.get(e.pointerId);if(n){var i=n.out,r=n.outTarget;c.move(e),i&&r!==e.target&&(i.relatedTarget=e.target,e.relatedTarget=r,i.target=r,e.target?(c.leaveOut(i),c.enterOver(e)):(e.target=r,e.relatedTarget=null,this.cancelOut(e))),n.out=e,n.outTarget=e.target}},touchend:function(t){this.dedupSynthMouse(t),this.processTouches(t,this.upOut)},upOut:function(t){this.scrolling||(c.up(t),c.leaveOut(t)),this.cleanUpPointer(t)},touchcancel:function(t){this.processTouches(t,this.cancelOut)},cancelOut:function(t){c.cancel(t),c.leaveOut(t),this.cleanUpPointer(t)},cleanUpPointer:function(t){P.delete(t.pointerId),this.removePrimaryPointer(t)},dedupSynthMouse:function(t){var e=I.lastTouches,n=t.changedTouches[0];if(this.isPrimaryTouch(n)){var i={x:n.clientX,y:n.clientY};e.push(i);var r=function(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}.bind(null,e,i);setTimeout(r,2500)}}};S=new v(M.elementAdded,M.elementRemoved,M.elementChanged,M);var L,A,F,D=c.pointermap,N=window.MSPointerEvent&&"number"==typeof window.MSPointerEvent.MSPOINTER_TYPE_MOUSE,k={events:["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerOut","MSPointerOver","MSPointerCancel","MSGotPointerCapture","MSLostPointerCapture"],register:function(t){c.listen(t,this.events)},unregister:function(t){c.unlisten(t,this.events)},POINTER_TYPES:["","unavailable","touch","pen","mouse"],prepareEvent:function(t){var e=t;return N&&((e=c.cloneEvent(t)).pointerType=this.POINTER_TYPES[t.pointerType]),e},cleanup:function(t){D.delete(t)},MSPointerDown:function(t){D.set(t.pointerId,t);var e=this.prepareEvent(t);c.down(e)},MSPointerMove:function(t){var e=this.prepareEvent(t);c.move(e)},MSPointerUp:function(t){var e=this.prepareEvent(t);c.up(e),this.cleanup(t.pointerId)},MSPointerOut:function(t){var e=this.prepareEvent(t);c.leaveOut(e)},MSPointerOver:function(t){var e=this.prepareEvent(t);c.enterOver(e)},MSPointerCancel:function(t){var e=this.prepareEvent(t);c.cancel(e),this.cleanup(t.pointerId)},MSLostPointerCapture:function(t){var e=c.makeEvent("lostpointercapture",t);c.dispatchEvent(e)},MSGotPointerCapture:function(t){var e=c.makeEvent("gotpointercapture",t);c.dispatchEvent(e)}};function G(t){if(!c.pointermap.has(t)){var e=new Error("NotFoundError");throw e.name="NotFoundError",e}}function Y(t){for(var e=t.parentNode;e&&e!==t.ownerDocument;)e=e.parentNode;if(!e){var n=new Error("InvalidStateError");throw n.name="InvalidStateError",n}}function X(t){return 0!==c.pointermap.get(t).buttons}return window.navigator.msPointerEnabled?(L=function(t){G(t),Y(this),X(t)&&(c.setCapture(t,this,!0),this.msSetPointerCapture(t))},A=function(t){G(t),c.releaseCapture(t,!0),this.msReleasePointerCapture(t)}):(L=function(t){G(t),Y(this),X(t)&&c.setCapture(t,this)},A=function(t){G(t),c.releaseCapture(t)}),F=function(t){return!!c.captureInfo[t]},function(){if(O){m.forEach((function(t){b+=t.selector+y(t.value)+"\n",E&&(b+=function(t){return"body /shadow-deep/ "+t}(t.selector)+y(t.value)+"\n")}));var t=document.createElement("style");t.textContent=b,document.head.appendChild(t)}}(),function(){if(!window.PointerEvent){if(window.PointerEvent=n,window.navigator.msPointerEnabled){var t=window.navigator.msMaxTouchPoints;Object.defineProperty(window.navigator,"maxTouchPoints",{value:t,enumerable:!0}),c.registerSource("ms",k)}else Object.defineProperty(window.navigator,"maxTouchPoints",{value:0,enumerable:!0}),c.registerSource("mouse",I),void 0!==window.ontouchstart&&c.registerSource("touch",M);c.register(document)}}(),window.Element&&!Element.prototype.setPointerCapture&&Object.defineProperties(Element.prototype,{setPointerCapture:{value:L},releasePointerCapture:{value:A},hasPointerCapture:{value:F}}),{dispatcher:c,Installer:v,PointerEvent:n,PointerMap:i,targetFinding:l}}()},function(t,e,n){"use strict";n.r(e);var i,r=n(0),o=n(4),a=n(44),s=n(53),u=n(6),c=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t){function e(e,n){var i=t.call(this)||this;return i.setCoordinates(e,n),i}return c(e,t),e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,n,i){var r=this.flatCoordinates,o=Object(u.f)(t,e,r[0],r[1]);if(ot)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Object(o.b)()},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;var i=e-n+1e3/60;return i>=this.transition_?1:Object(s.a)(i/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}(u.a),p=n(11),f=n(79),d=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function _(){var t=Object(p.a)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}var g=function(t){function e(e,n,i,r,o,a){var s=t.call(this,e,n,a)||this;return s.crossOrigin_=r,s.src_=i,s.image_=new Image,null!==r&&(s.image_.crossOrigin=r),s.unlisten_=null,s.tileLoadFunction_=o,s}return d(e,t),e.prototype.disposeInternal=function(){this.state==a.a.LOADING&&(this.unlistenImage_(),this.image_=_()),this.interimTile&&this.interimTile.dispose(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.image_},e.prototype.getKey=function(){return this.src_},e.prototype.handleImageError_=function(){this.state=a.a.ERROR,this.unlistenImage_(),this.image_=_(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=a.a.LOADED:this.state=a.a.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==a.a.ERROR&&(this.state=a.a.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==a.a.IDLE&&(this.state=a.a.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Object(f.a)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(h),v=n(66);function y(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function m(t,e,n){return t+"/"+e+"/"+n}function b(t){return m(t[0],t[1],t[2])}var O=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),E=function(t){function e(e){return t.call(this,e)||this}return O(e,t),e.prototype.expireCache=function(t){for(;this.canExpireCache();){if(this.peekLast().getKey()in t)break;this.pop().dispose()}},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(b(e.tileCoord)),e.dispose())}.bind(this))}},e}(v.a),T=n(7),x=n(2),C=n(0),S=n(6);function I(t,e,n,i){var r=n-t,o=i-e,a=Math.sqrt(r*r+o*o);return[Math.round(n+r/a),Math.round(i+o/a)]}var R=10,w=function(){function t(t,e,n,i,r){this.sourceProj_=t,this.targetProj_=e;var o={},a=Object(T.getTransform)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return o[e]||(o[e]=a(t)),o[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Object(C.E)(i)==Object(C.E)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Object(C.E)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Object(C.E)(this.targetProj_.getExtent()):null;var s=Object(C.C)(n),u=Object(C.D)(n),c=Object(C.w)(n),l=Object(C.v)(n),h=this.transformInv_(s),p=this.transformInv_(u),f=this.transformInv_(c),d=this.transformInv_(l);if(this.addQuad_(s,u,c,l,h,p,f,d,R),this.wrapsXInSource_){var _=1/0;this.triangles_.forEach((function(t,e,n){_=Math.min(_,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])-_>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]-_>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-_>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-_>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-n.5&&l<1,f=!1;if(u>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var d=Object(C.b)([t,e,n,i]);f=Object(C.E)(d)/this.targetWorldWidth_>.25||f}!p&&this.sourceProj_.isGlobal()&&l&&(f=l>.25||f)}if(f||!this.maxSourceExtent_||Object(C.F)(c,this.maxSourceExtent_)){if(!(f||isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1]))){if(!(u>0))return;f=!0}if(u>0){if(!f){var _=[(t[0]+n[0])/2,(t[1]+n[1])/2],g=this.transformInv_(_),v=void 0;if(p)v=(Object(S.d)(r[0],h)+Object(S.d)(a[0],h))/2-Object(S.d)(g[0],h);else v=(r[0]+a[0])/2-g[0];var y=(r[1]+a[1])/2-g[1];f=v*v+y*y>this.errorThresholdSquared_}if(f){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var m=[(e[0]+n[0])/2,(e[1]+n[1])/2],b=this.transformInv_(m),O=[(i[0]+t[0])/2,(i[1]+t[1])/2],E=this.transformInv_(O);this.addQuad_(t,e,m,O,r,o,b,E,u-1),this.addQuad_(O,m,n,i,E,b,a,s,u-1)}else{var T=[(t[0]+e[0])/2,(t[1]+e[1])/2],x=this.transformInv_(T),I=[(n[0]+i[0])/2,(n[1]+i[1])/2],R=this.transformInv_(I);this.addQuad_(t,T,I,i,r,x,R,s,u-1),this.addQuad_(T,e,n,I,x,o,a,R,u-1)}return}}if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,n,i,r,a,s),this.addTriangle_(t,e,n,r,o,a)}},t.prototype.calculateSourceExtent=function(){var t=Object(C.j)();return this.triangles_.forEach((function(e,n,i){var r=e.source;Object(C.r)(t,r[0]),Object(C.r)(t,r[1]),Object(C.r)(t,r[2])})),t},t.prototype.getTriangles=function(){return this.triangles_},t}(),j=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),P=function(t){function e(e,n,i,o,s,u,c,l,h,p,f){var d=t.call(this,s,a.a.IDLE)||this;d.renderEdges_=void 0!==f&&f,d.pixelRatio_=c,d.gutter_=l,d.canvas_=null,d.sourceTileGrid_=n,d.targetTileGrid_=o,d.wrappedTileCoord_=u||s,d.sourceTiles_=[],d.sourcesListenerKeys_=null,d.sourceZ_=0;var _=o.getTileCoordExtent(d.wrappedTileCoord_),g=d.targetTileGrid_.getExtent(),v=d.sourceTileGrid_.getExtent(),y=g?Object(C.B)(_,g):_;if(0===Object(C.u)(y))return d.state=a.a.EMPTY,d;var m=e.getExtent();m&&(v=v?Object(C.B)(v,m):m);var b=o.getResolution(d.wrappedTileCoord_[0]),O=function(t,e,n,i){var r=Object(T.transform)(n,e,t),o=Object(T.getPointResolution)(e,i,n),a=e.getMetersPerUnit();void 0!==a&&(o*=a);var s=t.getMetersPerUnit();void 0!==s&&(o/=s);var u=t.getExtent();if(!u||Object(C.f)(u,r)){var c=Object(T.getPointResolution)(t,o,r)/o;isFinite(c)&&c>0&&(o/=c)}return o}(e,i,Object(C.x)(y),b);if(!isFinite(O)||O<=0)return d.state=a.a.EMPTY,d;var E=void 0!==p?p:r;if(d.triangulation_=new w(e,i,y,v,O*E),0===d.triangulation_.getTriangles().length)return d.state=a.a.EMPTY,d;d.sourceZ_=n.getZForResolution(O);var x=d.triangulation_.calculateSourceExtent();if(v&&(e.canWrapX()?(x[1]=Object(S.a)(x[1],v[1],v[3]),x[3]=Object(S.a)(x[3],v[1],v[3])):x=Object(C.B)(x,v)),Object(C.u)(x)){for(var I=n.getTileRangeForExtentAndZ(x,d.sourceZ_),R=I.minX;R<=I.maxX;R++)for(var j=I.minY;j<=I.maxY;j++){var P=h(d.sourceZ_,R,j,c);P&&d.sourceTiles_.push(P)}0===d.sourceTiles_.length&&(d.state=a.a.EMPTY)}else d.state=a.a.EMPTY;return d}return j(e,t),e.prototype.disposeInternal=function(){this.state==a.a.LOADING&&this.unlistenSources_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,n,i){e&&e.getState()==a.a.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=a.a.ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"==typeof n?n:n[0],r="number"==typeof n?n:n[1],o=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),u=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(t,e,n,i,r,o,a,s,u,c,l){var h=Object(p.a)(Math.round(n*t),Math.round(n*e));if(0===u.length)return h.canvas;h.scale(n,n);var f=Object(C.j)();u.forEach((function(t,e,n){Object(C.q)(f,t.extent)}));var d=Object(C.E)(f),_=Object(C.A)(f),g=Object(p.a)(Math.round(n*d/i),Math.round(n*_/i)),v=n/i;u.forEach((function(t,e,n){var i=t.extent[0]-f[0],r=-(t.extent[3]-f[3]),o=Object(C.E)(t.extent),a=Object(C.A)(t.extent);g.drawImage(t.image,c,c,t.image.width-2*c,t.image.height-2*c,i*v,r*v,o*v,a*v)}));var y=Object(C.C)(a);return s.getTriangles().forEach((function(t,e,r){var a=t.source,s=t.target,u=a[0][0],c=a[0][1],l=a[1][0],p=a[1][1],d=a[2][0],_=a[2][1],v=(s[0][0]-y[0])/o,m=-(s[0][1]-y[1])/o,b=(s[1][0]-y[0])/o,O=-(s[1][1]-y[1])/o,E=(s[2][0]-y[0])/o,T=-(s[2][1]-y[1])/o,x=u,C=c;u=0,c=0;var R=[[l-=x,p-=C,0,0,b-v],[d-=x,_-=C,0,0,E-v],[0,0,l,p,O-m],[0,0,d,_,T-m]],w=Object(S.e)(R);if(w){h.save(),h.beginPath();var j=(v+b+E)/3,P=(m+O+T)/3,M=I(j,P,v,m),L=I(j,P,b,O),A=I(j,P,E,T);h.moveTo(L[0],L[1]),h.lineTo(M[0],M[1]),h.lineTo(A[0],A[1]),h.clip(),h.transform(w[0],w[2],w[1],w[3],v,m),h.translate(f[0]-x,f[3]-C),h.scale(i/n,-i/n),h.drawImage(g.canvas,0,0),h.restore()}})),l&&(h.save(),h.strokeStyle="black",h.lineWidth=1,s.getTriangles().forEach((function(t,e,n){var i=t.target,r=(i[0][0]-y[0])/o,a=-(i[0][1]-y[1])/o,s=(i[1][0]-y[0])/o,u=-(i[1][1]-y[1])/o,c=(i[2][0]-y[0])/o,l=-(i[2][1]-y[1])/o;h.beginPath(),h.moveTo(s,u),h.lineTo(r,a),h.lineTo(c,l),h.closePath(),h.stroke()})),h.restore()),h.canvas}(i,r,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,u,this.triangulation_,t,this.gutter_,this.renderEdges_),this.state=a.a.LOADED}this.changed()},e.prototype.load=function(){if(this.state==a.a.IDLE){this.state=a.a.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,n,i){var r=e.getState();if(r==a.a.IDLE||r==a.a.LOADING){t++;var o=Object(x.a)(e,c.a.CHANGE,(function(n){var i=e.getState();i!=a.a.LOADED&&i!=a.a.ERROR&&i!=a.a.EMPTY||(Object(x.c)(o),0===--t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(o)}}.bind(this)),this.sourceTiles_.forEach((function(t,e,n){t.getState()==a.a.IDLE&&t.load()})),0===t&&setTimeout(this.reproject_.bind(this),0)}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(x.c),this.sourcesListenerKeys_=null},e}(h),M=n(10);function L(t,e){var n=/\{z\}/g,i=/\{x\}/g,r=/\{y\}/g,o=/\{-y\}/g;return function(a,s,u){return a?t.replace(n,a[0].toString()).replace(i,a[1].toString()).replace(r,a[2].toString()).replace(o,(function(){var t=a[0],n=e.getFullTileRange(t);return Object(M.a)(n,55),(n.getHeight()-a[2]-1).toString()})):void 0}}function A(t,e){for(var n=t.length,i=new Array(n),r=0;r=this.minZoom;){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),r=Object(z.a)(o,o,a,a,n)):r=this.getTileRangeForExtentAndZ(s,u,n),e(u,r))return!0;--u}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,n){if(t[0]n||n>e.getMaxZoom())return!1;var o,a=e.getExtent();return!(o=a?e.getTileRangeForExtentAndZ(a,n):e.getFullTileRange(n))||o.containsXY(i,r)}(t,i)?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,n,i){},e}(k.a),J=function(t){function e(e,n){var i=t.call(this,e)||this;return i.tile=n,i}return H(e,t),e}(D.a),Q=q,$="tileloadstart",tt="tileloadend",et="tileloaderror",nt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),it=function(t){function e(e){var n=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 n.generateTileUrlFunction_=!e.tileUrlFunction,n.tileLoadFunction=e.tileLoadFunction,n.tileUrlFunction=e.tileUrlFunction?e.tileUrlFunction.bind(n):F,n.urls=null,e.urls?n.setUrls(e.urls):e.url&&n.setUrl(e.url),n.tileLoadingKeys_={},n}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,n=t.target,i=Object(o.c)(n),r=n.getState();r==a.a.LOADING?(this.tileLoadingKeys_[i]=!0,e=$):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],e=r==a.a.ERROR?et:r==a.a.LOADED||r==a.a.ABORT?tt:void 0),null!=e&&this.dispatchEvent(new J(e,n))},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=function(t){var e=[],n=/\{([a-z])-([a-z])\}/.exec(t);if(n){var i=n[1].charCodeAt(0),r=n[2].charCodeAt(0),o=void 0;for(o=i;o<=r;++o)e.push(t.replace(n[0],String.fromCharCode(o)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t)){for(var a=parseInt(n[2],10),s=parseInt(n[1],10);s<=a;s++)e.push(t.replace(n[0],s.toString()));return e}return e.push(t),e}(t);this.urls=e,this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(A(t,this.tileGrid),e):this.setKey(e)},e.prototype.useTile=function(t,e,n){var i=m(t,e,n);this.tileCache.containsKey(i)&&this.tileCache.get(i)},e}(Q),rt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function ot(t,e){t.getImage().src=e}var at=function(t){function e(e){var n=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:ot,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 n.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,n.tileClass=void 0!==e.tileClass?e.tileClass:g,n.tileCacheForProjection={},n.tileGridForProjection={},n.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,n.renderReprojectionEdges_=!1,n}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 n=this.getTileCacheForProjection(t);for(var i in this.tileCache.expireCache(this.tileCache==n?e:{}),this.tileCacheForProjection){var r=this.tileCacheForProjection[i];r.expireCache(r==n?e:{})}},e.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!Object(T.equivalent)(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getOpaque=function(e){return!(this.getProjection()&&e&&!Object(T.equivalent)(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(t){var e=this.getProjection();if(!this.tileGrid||e&&!Object(T.equivalent)(e,t)){var n=Object(o.c)(t);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=B(t)),this.tileGridForProjection[n]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();if(!e||Object(T.equivalent)(e,t))return this.tileCache;var n=Object(o.c)(t);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new E(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]},e.prototype.createTile_=function(t,e,n,i,r,o){var s=[t,e,n],u=this.getTileCoordForTileUrlFunction(s,r),l=u?this.tileUrlFunction(u,i,r):void 0,h=new this.tileClass(s,void 0!==l?a.a.IDLE:a.a.EMPTY,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return h.key=o,h.addEventListener(c.a.CHANGE,this.handleTileChange.bind(this)),h},e.prototype.getTile=function(t,e,n,i,r){var o=this.getProjection();if(o&&r&&!Object(T.equivalent)(o,r)){var a=this.getTileCacheForProjection(r),s=[t,e,n],u=void 0,c=b(s);a.containsKey(c)&&(u=a.get(c));var l=this.getKey();if(u&&u.key==l)return u;var h=this.getTileGridForProjection(o),p=this.getTileGridForProjection(r),f=this.getTileCoordForTileUrlFunction(s,r),d=new P(o,h,r,p,s,f,this.getTilePixelRatio(i),this.getGutter(),function(t,e,n,i){return this.getTileInternal(t,e,n,i,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_);return d.key=l,u?(d.interimTile=u,d.refreshInterimChain(),a.replace(c,d)):a.set(c,d),d}return this.getTileInternal(t,e,n,i,o||r)},e.prototype.getTileInternal=function(t,e,n,i,r){var o=null,s=m(t,e,n),u=this.getKey();if(this.tileCache.containsKey(s)){if((o=this.tileCache.get(s)).key!=u){var c=o;o=this.createTile_(t,e,n,i,r,u),c.getState()==a.a.IDLE?o.interimTile=c.interimTile:o.interimTile=c,o.refreshInterimChain(),this.tileCache.replace(s,o)}}else o=this.createTile_(t,e,n,i,r,u),this.tileCache.set(s,o);return o},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 n=Object(T.get)(t);if(n){var i=Object(o.c)(n);i in this.tileGridForProjection||(this.tileGridForProjection[i]=e)}},e}(it),st=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ut=function(t){function e(e){var n=e||{},i=void 0!==n.projection?n.projection:"EPSG:3857",r=void 0!==n.tileGrid?n.tileGrid:function(t){var e=t||{},n=e.extent||Object(T.get)("EPSG:3857").getExtent(),i={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:V(n,e.maxZoom,e.tileSize)};return new U(i)}({extent:Z(i),maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});return t.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,opaque:n.opaque,projection:i,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:r,tileLoadFunction:n.tileLoadFunction,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:void 0===n.wrapX||n.wrapX,transition:n.transition,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this}return st(e,t),e}(at);e.default=ut},function(t,e,n){"use strict";n.r(e);var i,r=n(30),o=n(15),a=n(16),s=n(45),u=n(12),c=n(11),l=n(2),h=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t){function e(e){var n=t.call(this)||this;return n.element=e.element?e.element:null,n.target_=null,n.map_=null,n.listenerKeys=[],n.render=e.render?e.render:a.c,e.target&&n.setTarget(e.target),n}return h(e,t),e.prototype.disposeInternal=function(){Object(c.e)(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&Object(c.e)(this.element);for(var e=0,n=this.listenerKeys.length;e0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!Object(o.b)(e,this.renderedAttributions_)){Object(c.d)(this.ulElement_);for(var i=0,r=e.length;i0?t.animate({rotation:0,duration:this.duration_,easing:m.b}):t.setRotation(0))},e}(p),T=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),x=function(t){function e(e){var n=this,i=e||{};n=t.call(this,{element:document.createElement("div"),target:i.target})||this;var r=void 0!==i.className?i.className:"ol-zoom",o=void 0!==i.delta?i.delta:1,a=void 0!==i.zoomInLabel?i.zoomInLabel:"+",s=void 0!==i.zoomOutLabel?i.zoomOutLabel:"−",u=void 0!==i.zoomInTipLabel?i.zoomInTipLabel:"Zoom in",c=void 0!==i.zoomOutTipLabel?i.zoomOutTipLabel:"Zoom out",l=document.createElement("button");l.className=r+"-in",l.setAttribute("type","button"),l.title=u,l.appendChild("string"==typeof a?document.createTextNode(a):a),l.addEventListener(d.a.CLICK,n.handleClick_.bind(n,o),!1);var h=document.createElement("button");h.className=r+"-out",h.setAttribute("type","button"),h.title=c,h.appendChild("string"==typeof s?document.createTextNode(s):s),h.addEventListener(d.a.CLICK,n.handleClick_.bind(n,-o),!1);var p=r+" "+f.e+" "+f.b,_=n.element;return _.className=p,_.appendChild(l),_.appendChild(h),n.duration_=void 0!==i.duration?i.duration:250,n}return T(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 n=e.getZoom();if(void 0!==n){var i=e.getConstrainedZoom(n+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:i,duration:this.duration_,easing:m.b})):e.setZoom(i)}}},e}(p),C=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),S=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"];function I(){var t=document.body;return!!(t.webkitRequestFullscreen||t.msRequestFullscreen&&document.msFullscreenEnabled||t.requestFullscreen&&document.fullscreenEnabled)}function R(){return!!(document.webkitIsFullScreen||document.msFullscreenElement||document.fullscreenElement)}function w(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}var j=function(t){function e(e){var n=this,i=e||{};(n=t.call(this,{element:document.createElement("div"),target:i.target})||this).cssClassName_=void 0!==i.className?i.className:"ol-full-screen";var r=void 0!==i.label?i.label:"⤢";n.labelNode_="string"==typeof r?document.createTextNode(r):r;var o=void 0!==i.labelActive?i.labelActive:"×";n.labelActiveNode_="string"==typeof o?document.createTextNode(o):o,n.button_=document.createElement("button");var a=i.tipLabel?i.tipLabel:"Toggle full-screen";n.setClassName_(n.button_,R()),n.button_.setAttribute("type","button"),n.button_.title=a,n.button_.appendChild(n.labelNode_),n.button_.addEventListener(d.a.CLICK,n.handleClick_.bind(n),!1);var s=n.cssClassName_+" "+f.e+" "+f.b+" "+(I()?"":f.f),u=n.element;return u.className=s,u.appendChild(n.button_),n.keys_=void 0!==i.keys&&i.keys,n.source_=i.source,n}return C(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleFullScreen_()},e.prototype.handleFullScreen_=function(){if(I()){var t=this.getMap();if(t)if(R())document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.webkitExitFullscreen&&document.webkitExitFullscreen();else{var e=void 0;e=this.source_?"string"==typeof this.source_?document.getElementById(this.source_):this.source_:t.getTargetElement(),this.keys_?function(t){t.webkitRequestFullscreen?t.webkitRequestFullscreen():w(t)}(e):w(e)}}},e.prototype.handleFullScreenChange_=function(){var t=this.getMap();R()?(this.setClassName_(this.button_,!0),Object(c.g)(this.labelActiveNode_,this.labelNode_)):(this.setClassName_(this.button_,!1),Object(c.g)(this.labelNode_,this.labelActiveNode_)),t&&t.updateSize()},e.prototype.setClassName_=function(t,e){var n=this.cssClassName_+"-true",i=this.cssClassName_+"-false",r=e?n:i;t.classList.remove(n),t.classList.remove(i),t.classList.add(r)},e.prototype.setMap=function(e){if(t.prototype.setMap.call(this,e),e)for(var n=0,i=S.length;n.75*l||c>.75*h?this.resetExtent_():Object(U.g)(o,i)||this.recenter_()}}},e.prototype.resetExtent_=function(){var t=this.getMap(),e=this.ovmap_,n=t.getSize(),i=t.getView().calculateExtentInternal(n),r=e.getView(),o=Math.log(7.5)/Math.LN2,a=1/(.1*Math.pow(2,o/2));Object(U.J)(i,a),r.fitInternal(Object(K.b)(i))},e.prototype.recenter_=function(){var t=this.getMap(),e=this.ovmap_,n=t.getView();e.getView().setCenterInternal(n.getCenterInternal())},e.prototype.updateBox_=function(){var t=this.getMap(),e=this.ovmap_;if(t.isRendered()&&e.isRendered()){var n=t.getSize(),i=t.getView(),r=e.getView(),o=this.rotateWithView_?0:-i.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),u=i.getCenterInternal(),c=i.getResolution(),l=r.getResolution(),h=n[0]*c/l,p=n[1]*c/l;if(a.setPosition(u),s){s.style.width=h+"px",s.style.height=p+"px";var f="rotate("+o+"rad)";s.style.transform=f}}},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(f.a),this.collapsed_?Object(c.g)(this.collapseLabel_,this.label_):Object(c.g)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var t=this.ovmap_;if(!this.collapsed_){if(t.isRendered())return this.viewExtent_=void 0,void t.render();t.updateSize(),this.resetExtent_(),Object(l.b)(t,s.a.POSTRENDER,(function(t){this.updateBox_()}),this)}},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.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.setRotateWithView=function(t){this.rotateWithView_!==t&&(this.rotateWithView_=t,0!==this.getMap().getView().getRotation()&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))},e.prototype.getOverviewMap=function(){return this.ovmap_},e}(p),q=n(10),J=n(21),Q=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),$="units",tt={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},et=[1,2,5];function nt(t){var e=t.frameState;this.viewState_=e?e.viewState:null,this.updateElement_()}var it=function(t){function e(e){var n=this,i=e||{},r=void 0!==i.className?i.className:i.bar?"ol-scale-bar":"ol-scale-line";return(n=t.call(this,{element:document.createElement("div"),render:i.render||nt,target:i.target})||this).innerElement_=document.createElement("div"),n.innerElement_.className=r+"-inner",n.element.className=r+" "+f.e,n.element.appendChild(n.innerElement_),n.viewState_=null,n.minWidth_=void 0!==i.minWidth?i.minWidth:64,n.renderedVisible_=!1,n.renderedWidth_=void 0,n.renderedHTML_="",n.addEventListener(Object(u.b)($),n.handleUnitsChanged_),n.setUnits(i.units||tt.METRIC),n.scaleBar_=i.bar||!1,n.scaleBarSteps_=i.steps||4,n.scaleBarText_=i.text||!1,n}return Q(e,t),e.prototype.getUnits=function(){return this.get($)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set($,t)},e.prototype.updateElement_=function(){var t=this.viewState_;if(t){var e=t.center,n=t.projection,i=this.getUnits(),r=i==tt.DEGREES?J.b.DEGREES:J.b.METERS,o=Object(M.getPointResolution)(n,t.resolution,e,r),a=this.minWidth_*o,s="";if(i==tt.DEGREES){var u=M.METERS_PER_UNIT[J.b.DEGREES];(a*=u)=this.minWidth_)break;++f}p=this.scaleBar_?this.createScaleBar(l,c,s):c.toFixed(h<0?-h:0)+" "+s,this.renderedHTML_!=p&&(this.innerElement_.innerHTML=p,this.renderedHTML_=p),this.renderedWidth_!=l&&(this.innerElement_.style.width=l+"px",this.renderedWidth_=l),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.createScaleBar=function(t,e,n){for(var i="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),r=[],o=t/this.scaleBarSteps_,a="#ffffff",s=0;s
'+this.createMarker("relative",s)+(s%2==0||2===this.scaleBarSteps_?this.createStepText(s,t,!1,e,n):"")+""),s===this.scaleBarSteps_-1&&r.push(this.createStepText(s+1,t,!0,e,n)),a="#ffffff"===a?"#000000":"#ffffff";return'
'+(this.scaleBarText_?'
'+i+"
":"")+r.join("")+"
"},e.prototype.createMarker=function(t,e){return'
'},e.prototype.createStepText=function(t,e,n,i,r){var o=(0===t?0:Math.round(i/this.scaleBarSteps_*t*100)/100)+(0===t?"":" "+r);return'
'+o+"
"},e.prototype.getScaleForResolution=function(){var t=this.getMap().getView().getResolution(),e=this.viewState_.projection.getMetersPerUnit();return parseFloat(t.toString())*e*39.37*(25.4/.28)},e}(p),rt=n(26),ot=n(6),at=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),st={VERTICAL:0,HORIZONTAL:1};function ut(t){if(t.frameState){this.sliderInitialized_||this.initSlider_();var e=t.frameState.viewState.resolution;this.currentResolution_=e,this.setThumbPosition_(e)}}var ct=function(t){function e(e){var n=this,i=e||{};(n=t.call(this,{element:document.createElement("div"),render:i.render||ut})||this).dragListenerKeys_=[],n.currentResolution_=void 0,n.direction_=st.VERTICAL,n.dragging_,n.heightLimit_=0,n.widthLimit_=0,n.startX_,n.startY_,n.thumbSize_=null,n.sliderInitialized_=!1,n.duration_=void 0!==i.duration?i.duration:200;var r=void 0!==i.className?i.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=r+"-thumb "+f.e;var a=n.element;return a.setAttribute("touch-action","none"),a.className=r+" "+f.e+" "+f.b,a.appendChild(o),a.addEventListener(P.a.POINTERDOWN,n.handleDraggerStart_.bind(n),!1),a.addEventListener(P.a.POINTERMOVE,n.handleDraggerDrag_.bind(n),!1),a.addEventListener(P.a.POINTERUP,n.handleDraggerEnd_.bind(n),!1),a.addEventListener(d.a.CLICK,n.handleContainerClick_.bind(n),!1),o.addEventListener(d.a.CLICK,rt.b,!1),n}return at(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),e&&e.render()},e.prototype.initSlider_=function(){var t=this.element,e=t.offsetWidth,n=t.offsetHeight,i=t.firstElementChild,r=getComputedStyle(i),o=i.offsetWidth+parseFloat(r.marginRight)+parseFloat(r.marginLeft),a=i.offsetHeight+parseFloat(r.marginTop)+parseFloat(r.marginBottom);this.thumbSize_=[o,a],e>n?(this.direction_=st.HORIZONTAL,this.widthLimit_=e-o):(this.direction_=st.VERTICAL,this.heightLimit_=n-a),this.sliderInitialized_=!0},e.prototype.handleContainerClick_=function(t){var e=this.getMap().getView(),n=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),i=this.getResolutionForPosition_(n),r=e.getConstrainedZoom(e.getZoomForResolution(i));e.animateInternal({zoom:r,duration:this.duration_,easing:m.b})},e.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.target===this.element.firstElementChild){var e=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(e.style.left),this.startY_=t.clientY-parseFloat(e.style.top),this.dragging_=!0,0===this.dragListenerKeys_.length){var n=this.handleDraggerDrag_,i=this.handleDraggerEnd_;this.dragListenerKeys_.push(Object(l.a)(document,P.a.POINTERMOVE,n,this),Object(l.a)(document,P.a.POINTERUP,i,this))}}},e.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var e=t.clientX-this.startX_,n=t.clientY-this.startY_,i=this.getRelativePosition_(e,n);this.currentResolution_=this.getResolutionForPosition_(i),this.getMap().getView().setResolution(this.currentResolution_)}},e.prototype.handleDraggerEnd_=function(t){this.dragging_&&(this.getMap().getView().endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(l.c),this.dragListenerKeys_.length=0)},e.prototype.setThumbPosition_=function(t){var e=this.getPositionForResolution_(t),n=this.element.firstElementChild;this.direction_==st.HORIZONTAL?n.style.left=this.widthLimit_*e+"px":n.style.top=this.heightLimit_*e+"px"},e.prototype.getRelativePosition_=function(t,e){var n;return n=this.direction_===st.HORIZONTAL?t/this.widthLimit_:e/this.heightLimit_,Object(ot.a)(n,0,1)},e.prototype.getResolutionForPosition_=function(t){return this.getMap().getView().getResolutionForValueFunction()(1-t)},e.prototype.getPositionForResolution_=function(t){var e=this.getMap().getView().getValueForResolutionFunction();return Object(ot.a)(1-e(t),0,1)},e}(p),lt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ht=function(t){function e(e){var n=this,i=e||{};(n=t.call(this,{element:document.createElement("div"),target:i.target})||this).extent=i.extent?i.extent:null;var r=void 0!==i.className?i.className:"ol-zoom-extent",o=void 0!==i.label?i.label:"E",a=void 0!==i.tipLabel?i.tipLabel:"Fit to extent",s=document.createElement("button");s.setAttribute("type","button"),s.title=a,s.appendChild("string"==typeof o?document.createTextNode(o):o),s.addEventListener(d.a.CLICK,n.handleClick_.bind(n),!1);var u=r+" "+f.e+" "+f.b,c=n.element;return c.className=u,c.appendChild(s),n}return lt(e,t),e.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},e.prototype.handleZoomToExtent=function(){var t=this.getMap().getView(),e=this.extent?this.extent:t.getProjection().getExtent();t.fitInternal(Object(K.b)(e))},e}(p);function pt(t){var e=t||{},n=new r.a;return(void 0===e.zoom||e.zoom)&&n.push(new x(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&n.push(new E(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&n.push(new y(e.attributionOptions)),n}n.d(e,"defaults",(function(){return pt})),n.d(e,"Attribution",(function(){return y})),n.d(e,"Control",(function(){return p})),n.d(e,"FullScreen",(function(){return j})),n.d(e,"MousePosition",(function(){return D})),n.d(e,"OverviewMap",(function(){return H})),n.d(e,"Rotate",(function(){return E})),n.d(e,"ScaleLine",(function(){return it})),n.d(e,"Zoom",(function(){return x})),n.d(e,"ZoomSlider",(function(){return ct})),n.d(e,"ZoomToExtent",(function(){return ht}))},function(t,e,n){"use strict";n.r(e);var i=n(56),r=n(1),o=n(16),a=n(6);function s(t,e,n){return function(i,r,o,s){if(i){var u=e?0:o[0]*r,c=e?0:o[1]*r,l=t[0]+u/2,h=t[2]-u/2,p=t[1]+c/2,f=t[3]-c/2;l>h&&(h=l=(h+l)/2),p>f&&(f=p=(f+p)/2);var d=Object(a.a)(i[0],l,h),_=Object(a.a)(i[1],p,f),g=30*r;return s&&n&&(d+=-g*Math.log(1+Math.max(0,l-i[0])/g)+g*Math.log(1+Math.max(0,i[0]-h)/g),_+=-g*Math.log(1+Math.max(0,p-i[1])/g)+g*Math.log(1+Math.max(0,i[1]-f)/g)),[d,_]}}}function u(t){return t}var c=n(12),l=n(15),h=n(0);function p(t,e,n){var i=Object(h.E)(e)/n[0],r=Object(h.A)(e)/n[1];return Math.min(t,Math.min(i,r))}function f(t,e,n){var i=Math.min(t,e);return i*=Math.log(1+50*Math.max(0,t/e-1))/50+1,n&&(i=Math.max(i,n),i/=Math.log(1+50*Math.max(0,n/t-1))/50+1),Object(a.a)(i,n/2,2*e)}function d(t,e,n,i){return function(r,o,s,u){if(void 0!==r){var c=i?p(t,i,s):t;return(void 0===n||n)&&u?f(r,c,e):Object(a.a)(r,e,c)}}}var _=n(48),g=n(23),v=n(35),y=n(10),m=n(39),b=n(25),O=n(4),E=n(50),T=n(13),x=n(7),C=n(21);n.d(e,"createCenterConstraint",(function(){return P})),n.d(e,"createResolutionConstraint",(function(){return M})),n.d(e,"createRotationConstraint",(function(){return L})),n.d(e,"isNoopAnimation",(function(){return A}));var S,I=(S=function(t,e){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}S(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),R=0,w=function(t){function e(e){var n=t.call(this)||this,i=Object(T.a)({},e);return n.hints_=[0,0],n.animations_=[],n.updateAnimationKey_,n.projection_=Object(x.createProjection)(i.projection,"EPSG:3857"),n.targetCenter_=null,n.targetResolution_,n.targetRotation_,i.center&&(i.center=Object(x.fromUserCoordinate)(i.center,n.projection_)),i.extent&&(i.extent=Object(x.fromUserExtent)(i.extent,n.projection_)),n.applyOptions_(i),n}return I(e,t),e.prototype.applyOptions_=function(t){var e=M(t);this.maxResolution_=e.maxResolution,this.minResolution_=e.minResolution,this.zoomFactor_=e.zoomFactor,this.resolutions_=t.resolutions,this.minZoom_=e.minZoom;var n=P(t),i=e.constraint,r=L(t);this.constraints_={center:n,resolution:i,rotation:r},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.resolveConstraints(0),this.setProperties({}),this.options_=t},e.prototype.getUpdatedOptions_=function(t){var e=Object(T.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(T.a)({},e,t)},e.prototype.animate=function(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);for(var e=new Array(arguments.length),n=0;n1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n),!this.isDef()){var i=arguments[n-1];return i.center&&this.setCenterInternal(i.center),void 0!==i.zoom&&this.setZoom(i.zoom),void 0!==i.rotation&&this.setRotation(i.rotation),void(e&&j(e,!0))}for(var r=Date.now(),o=this.targetCenter_.slice(),s=this.targetResolution_,u=this.targetRotation_,c=[],l=0;l0},e.prototype.getInteracting=function(){return this.hints_[g.a.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(g.a.ANIMATING,-this.hints_[g.a.ANIMATING]);for(var t=0,e=this.animations_.length;t=0;--n){for(var i=this.animations_[n],r=!0,o=0,s=i.length;o0?c/u.duration:1;l>=1?(u.complete=!0,l=1):r=!1;var h=u.easing(l);if(u.sourceCenter){var p=u.sourceCenter[0],f=u.sourceCenter[1],d=p+h*(u.targetCenter[0]-p),_=f+h*(u.targetCenter[1]-f);this.targetCenter_=[d,_]}if(u.sourceResolution&&u.targetResolution){var v=1===h?u.targetResolution:u.sourceResolution+h*(u.targetResolution-u.sourceResolution);if(u.anchor){var y=this.getSizeFromViewport_(this.getRotation()),m=this.constraints_.resolution(v,0,y,!0);this.targetCenter_=this.calculateCenterZoom(m,u.anchor)}this.targetResolution_=v,this.applyTargetState_(!0)}if(void 0!==u.sourceRotation&&void 0!==u.targetRotation){var b=1===h?Object(a.d)(u.targetRotation+Math.PI,2*Math.PI)-Math.PI:u.sourceRotation+h*(u.targetRotation-u.sourceRotation);if(u.anchor){var O=this.constraints_.rotation(b,!0);this.targetCenter_=this.calculateCenterRotate(O,u.anchor)}this.targetRotation_=b}if(this.applyTargetState_(!0),e=!0,!u.complete)break}}if(r){this.animations_[n]=null,this.setHint(g.a.ANIMATING,-1);var E=i[0].callback;E&&j(E,!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 n,i=this.getCenterInternal();return void 0!==i&&(n=[i[0]-e[0],i[1]-e[1]],Object(m.c)(n,t-this.getRotation()),Object(m.a)(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,i=this.getCenterInternal(),r=this.getResolution();void 0!==i&&void 0!==r&&(n=[e[0]-t*(e[0]-i[0])/r,e[1]-t*(e[1]-i[1])/r]);return n},e.prototype.getSizeFromViewport_=function(t){var e=[100,100],n='.ol-viewport[data-view="'+Object(r.c)(this)+'"]',i=document.querySelector(n);if(i){var o=getComputedStyle(i);e[0]=parseInt(o.width,10),e[1]=parseInt(o.height,10)}if(t){var a=e[0],s=e[1];e[0]=Math.abs(a*Math.cos(t))+Math.abs(s*Math.sin(t)),e[1]=Math.abs(a*Math.sin(t))+Math.abs(s*Math.cos(t))}return e},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t?Object(x.toUserCoordinate)(t,this.getProjection()):t},e.prototype.getCenterInternal=function(){return this.get(v.a.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},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(x.toUserExtent)(e,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var e=t||this.getSizeFromViewport_(),n=this.getCenterInternal();Object(y.a)(n,1);var i=this.getResolution();Object(y.a)(void 0!==i,2);var r=this.getRotation();return Object(y.a)(void 0!==r,3),Object(h.z)(n,i,r,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.a.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){return this.getResolutionForExtentInternal(Object(x.fromUserExtent)(t,this.getProjection()),e)},e.prototype.getResolutionForExtentInternal=function(t,e){var n=e||this.getSizeFromViewport_(),i=Object(h.E)(t)/n[0],r=Object(h.A)(t)/n[1];return Math.max(i,r)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.maxResolution_,i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){return n/Math.pow(e,t*r)}},e.prototype.getRotation=function(){return this.get(v.a.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var e=t||2,n=this.maxResolution_,i=this.minResolution_,r=Math.log(n/i)/Math.log(e);return function(t){return Math.log(n/t)/Math.log(e)/r}},e.prototype.getState=function(){var t=this.getCenterInternal(),e=this.getProjection(),n=this.getResolution(),i=this.getRotation();return{center:t.slice(0),projection:void 0!==e?e:null,resolution:n,rotation:i,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,n,i=this.minZoom_||0;if(this.resolutions_){var r=Object(l.e)(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var e=Object(a.a)(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,Object(a.a)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,e){var n,i=Object(T.a)({size:this.getSizeFromViewport_()},e||{});if(Object(y.a)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){Object(y.a)(!Object(h.H)(t),25);var r=Object(x.fromUserExtent)(t,this.getProjection());n=Object(E.b)(r)}else if(t.getType()===O.a.CIRCLE){r=Object(x.fromUserExtent)(t.getExtent(),this.getProjection());(n=Object(E.b)(r)).rotate(this.getRotation(),Object(h.x)(r))}else{var o=Object(x.getUserProjection)();n=o?n.clone().transform(o,this.getProjection()):t}this.fitInternal(n,i)},e.prototype.fitInternal=function(t,e){var n=e||{},i=n.size;i||(i=this.getSizeFromViewport_());var r,a=void 0!==n.padding?n.padding:[0,0,0,0],s=void 0!==n.nearest&&n.nearest;r=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.getResolutionForZoom(n.maxZoom):0;for(var u=t.getFlatCoordinates(),c=this.getRotation(),l=Math.cos(-c),h=Math.sin(-c),p=1/0,f=1/0,d=-1/0,_=-1/0,g=t.getStride(),v=0,y=u.length;vh&&_0&&this.points_[n+2]>t;)n-=3;var i=this.points_[e+2]-this.points_[n+2];if(i<1e3/60)return!1;var r=this.points_[e]-this.points_[n],o=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/i,this.initialVelocity_>this.minVelocity_},t.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},t.prototype.getAngle=function(){return this.angle_},t}(),u=n(17),c=n(12),l=n(25),h="active",p=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function f(t,e,n,i){var r=t.getZoom();if(void 0!==r){var o=t.getConstrainedZoom(r+e),a=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:a,anchor:n,duration:void 0!==i?i:250,easing:l.b})}}var d=function(t){function e(e){var n=t.call(this)||this;return e.handleEvent&&(n.handleEvent=e.handleEvent),n.map_=null,n.setActive(!0),n}return p(e,t),e.prototype.getActive=function(){return this.get(h)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(h,t)},e.prototype.setMap=function(t){this.map_=t},e}(c.a),_=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function g(t){var e=!1;if(t.type==u.a.DBLCLICK){var n=t.originalEvent,i=t.map,r=t.coordinate,o=n.shiftKey?-this.delta_:this.delta_;f(i.getView(),o,r,this.duration_),t.preventDefault(),e=!0}return!e}var v=function(t){function e(e){var n=t.call(this,{handleEvent:g})||this,i=e||{};return n.delta_=i.delta?i.delta:1,n.duration_=void 0!==i.duration?i.duration:250,n}return _(e,t),e}(d),y=n(39),m=n(10),b=n(16),O=n(29),E=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},T=function(t){return t.target.getTargetElement()===document.activeElement},x=b.b,C=function(t){var e=t.originalEvent;return 0==e.button&&!(O.e&&O.d&&e.ctrlKey)},S=(b.a,function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey}),I=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},R=function(t){var e=t.target.tagName;return"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e},w=function(t){var e=t.pointerEvent;return Object(m.a)(void 0!==e,56),"mouse"==e.pointerType},j=function(t){var e=t.pointerEvent;return Object(m.a)(void 0!==e,56),e.isPrimary&&0===e.button},P=n(13),M=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function L(t){for(var e=t.length,n=0,i=0,r=0;r0}}else if(t.type==u.a.POINTERDOWN){var i=this.handleDownEvent(t);i&&t.preventDefault(),this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==u.a.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===u.a.POINTERDOWN||e===u.a.POINTERDRAG||e===u.a.POINTERUP}(t)){var e=t.pointerEvent,n=e.pointerId.toString();t.type==u.a.POINTERUP?delete this.trackedPointers_[n]:t.type==u.a.POINTERDOWN?this.trackedPointers_[n]=e:n in this.trackedPointers_&&(this.trackedPointers_[n]=e),this.targetPointers=Object(P.c)(this.trackedPointers_)}},e}(d),F=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function D(t){return S(t)&&j(t)}var N=function(t){function e(e){var n=t.call(this,{stopDown:b.a})||this,i=e||{};return n.kinetic_=i.kinetic,n.lastCentroid=null,n.lastPointersCount_,n.panning_=!1,n.condition_=i.condition?i.condition:D,n.noKinetic_=!1,n}return F(e,t),e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().beginInteraction());var e=this.targetPointers,n=L(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(n[0],n[1]),this.lastCentroid){var i=[this.lastCentroid[0]-n[0],n[1]-this.lastCentroid[1]],r=t.map.getView();Object(y.d)(i,r.getResolution()),Object(y.c)(i,r.getRotation()),r.adjustCenterInternal(i)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=n,this.lastPointersCount_=e.length},e.prototype.handleUpEvent=function(t){var e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var i=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),o=n.getCenterInternal(),a=e.getPixelFromCoordinateInternal(o),s=e.getCoordinateFromPixelInternal([a[0]-i*Math.cos(r),a[1]-i*Math.sin(r)]);n.animateInternal({center:n.getConstrainedCenter(s),duration:500,easing:l.b})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(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}(A),k=n(48),G=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Y=function(t){function e(e){var n=this,i=e||{};return(n=t.call(this,{stopDown:b.a})||this).condition_=i.condition?i.condition:E,n.lastAngle_=void 0,n.duration_=void 0!==i.duration?i.duration:250,n}return G(e,t),e.prototype.handleDragEvent=function(t){if(w(t)){var e=t.map,n=e.getView();if(n.getConstraints().rotation!==k.c){var i=e.getSize(),r=t.pixel,o=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_;n.adjustRotationInternal(-a)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){return!w(t)||(t.map.getView().endInteraction(this.duration_),!1)},e.prototype.handleDownEvent=function(t){return!!w(t)&&(!(!C(t)||!this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))},e}(A),X=n(0),z=n(26),W=n(43),K=n(50),U=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),B=function(t){function e(e){var n=t.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.className="ol-box "+e,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return U(e,t),e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,n=this.element_.style;n.left=Math.min(t[0],e[0])+"px",n.top=Math.min(t[1],e[1])+"px",n.width=Math.abs(e[0]-t[0])+"px",n.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_,n=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new K.a([n])},e.prototype.getGeometry=function(){return this.geometry_},e}(W.a),V=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Z="boxstart",H="boxdrag",q="boxend",J=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.coordinate=n,r.mapBrowserEvent=i,r}return V(e,t),e}(z.a),Q=function(t){function e(e){var n=t.call(this)||this,i=e||{};return n.box_=new B(i.className||"ol-dragbox"),n.minArea_=void 0!==i.minArea?i.minArea:64,n.onBoxEnd_=i.onBoxEnd?i.onBoxEnd:b.c,n.startPixel_=null,n.condition_=i.condition?i.condition:x,n.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:n.defaultBoxEndCondition,n}return V(e,t),e.prototype.defaultBoxEndCondition=function(t,e,n){var i=n[0]-e[0],r=n[1]-e[1];return i*i+r*r>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){w(t)&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new J(H,t.coordinate,t)))},e.prototype.handleUpEvent=function(t){return!w(t)||(this.box_.setMap(null),this.boxEndCondition_(t,this.startPixel_,t.pixel)&&(this.onBoxEnd_(t),this.dispatchEvent(new J(q,t.coordinate,t))),!1)},e.prototype.handleDownEvent=function(t){return!!w(t)&&(!(!C(t)||!this.condition_(t))&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new J(Z,t.coordinate,t)),!0))},e}(A),$=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function tt(){var t=this.getMap(),e=t.getView(),n=t.getSize(),i=this.getGeometry().getExtent();if(this.out_){var r=e.calculateExtentInternal(n),o=Object(X.n)([t.getPixelFromCoordinateInternal(Object(X.v)(i)),t.getPixelFromCoordinateInternal(Object(X.D)(i))]),a=e.getResolutionForExtentInternal(o,n);Object(X.J)(r,1/a),i=r}var s=e.getConstrainedResolution(e.getResolutionForExtentInternal(i,n)),u=e.getConstrainedCenter(Object(X.x)(i),s);e.animateInternal({resolution:s,center:u,duration:this.duration_,easing:l.b})}var et=function(t){function e(e){var n=this,i=e||{},r=i.condition?i.condition:I;return(n=t.call(this,{condition:r,className:i.className||"ol-dragzoom",minArea:i.minArea,onBoxEnd:tt})||this).duration_=void 0!==i.duration?i.duration:200,n.out_=void 0!==i.out&&i.out,n}return $(e,t),e}(Q),nt=n(5),it={LEFT:37,UP:38,RIGHT:39,DOWN:40},rt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function ot(t){var e=!1;if(t.type==nt.a.KEYDOWN){var n=t.originalEvent.keyCode;if(this.condition_(t)&&(n==it.DOWN||n==it.LEFT||n==it.RIGHT||n==it.UP)){var i=t.map.getView(),r=i.getResolution()*this.pixelDelta_,o=0,a=0;n==it.DOWN?a=-r:n==it.LEFT?o=-r:n==it.RIGHT?o=r:a=r;var s=[o,a];Object(y.c)(s,i.getRotation()),function(t,e,n){var i=t.getCenterInternal();if(i){var r=[i[0]+e[0],i[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:l.d,center:t.getConstrainedCenter(r)})}}(i,s,this.duration_),t.preventDefault(),e=!0}}return!e}var at=function(t){function e(e){var n=t.call(this,{handleEvent:ot})||this,i=e||{};return n.defaultCondition_=function(t){return S(t)&&R(t)},n.condition_=void 0!==i.condition?i.condition:n.defaultCondition_,n.duration_=void 0!==i.duration?i.duration:100,n.pixelDelta_=void 0!==i.pixelDelta?i.pixelDelta:128,n}return rt(e,t),e}(d),st=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function ut(t){var e=!1;if(t.type==nt.a.KEYDOWN||t.type==nt.a.KEYPRESS){var n=t.originalEvent.charCode;if(this.condition_(t)&&(n=="+".charCodeAt(0)||n=="-".charCodeAt(0))){var i=t.map,r=n=="+".charCodeAt(0)?this.delta_:-this.delta_;f(i.getView(),r,void 0,this.duration_),t.preventDefault(),e=!0}}return!e}var ct=function(t){function e(e){var n=t.call(this,{handleEvent:ut})||this,i=e||{};return n.condition_=i.condition?i.condition:R,n.delta_=i.delta?i.delta:1,n.duration_=void 0!==i.duration?i.duration:100,n}return st(e,t),e}(d),lt=n(6),ht=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),pt="trackpad",ft="wheel",dt=function(t){function e(e){var n=this,i=e||{};return(n=t.call(this,i)||this).totalDelta_=0,n.lastDelta_=0,n.maxDelta_=void 0!==i.maxDelta?i.maxDelta:1,n.duration_=void 0!==i.duration?i.duration:250,n.timeout_=void 0!==i.timeout?i.timeout:80,n.useAnchor_=void 0===i.useAnchor||i.useAnchor,n.condition_=i.condition?i.condition:x,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.trackpadDeltaPerZoom_=300,n}return ht(e,t),e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().endInteraction(void 0,Math.sign(this.lastDelta_),this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;if(t.type!==nt.a.WHEEL)return!0;t.preventDefault();var e,n=t.map,i=t.originalEvent;if(this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==nt.a.WHEEL&&(e=i.deltaY,O.b&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(e/=O.a),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(e*=40)),0===e)return!1;this.lastDelta_=e;var r=Date.now();if(void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(e)<4?pt:ft),this.mode_===pt){var o=n.getView();return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):o.beginInteraction(),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.trackpadEventGap_),o.adjustZoom(-e/this.trackpadDeltaPerZoom_,this.lastAnchor_),this.startTime_=r,!1}this.totalDelta_+=e;var a=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),a),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations(),f(e,-Object(lt.a)(this.totalDelta_,-this.maxDelta_,this.maxDelta_),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}(d),_t=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),gt=function(t){function e(e){var n=this,i=e||{},r=i;return r.stopDown||(r.stopDown=b.a),(n=t.call(this,r)||this).anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=void 0!==i.threshold?i.threshold:.3,n.duration_=void 0!==i.duration?i.duration:250,n}return _t(e,t),e.prototype.handleDragEvent=function(t){var e=0,n=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){var o=r-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=r;var a=t.map,s=a.getView();if(s.getConstraints().rotation!==k.c){var u=a.getViewport().getBoundingClientRect(),c=L(this.targetPointers);c[0]-=u.left,c[1]-=u.top,this.anchor_=a.getCoordinateFromPixelInternal(c),this.rotating_&&(a.render(),s.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}(A),vt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),yt=function(t){function e(e){var n=this,i=e||{},r=i;return r.stopDown||(r.stopDown=b.a),(n=t.call(this,r)||this).anchor_=null,n.duration_=void 0!==i.duration?i.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return vt(e,t),e.prototype.handleDragEvent=function(t){var e=1,n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,o=n.clientY-i.clientY,a=Math.sqrt(r*r+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/a),this.lastDistance_=a;var s=t.map,u=s.getView();1!=e&&(this.lastScaleDelta_=e);var c=s.getViewport().getBoundingClientRect(),l=L(this.targetPointers);l[0]-=c.left,l[1]-=c.top,this.anchor_=s.getCoordinateFromPixelInternal(l),s.render(),u.adjustResolutionInternal(e,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView(),n=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,n),!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}(A);var mt=n(77),bt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ot=function(t){function e(e){return(e=Object(P.a)({},e)).controls||(e.controls=Object(o.defaults)()),e.interactions||(e.interactions=function(t){var e=t||{},n=new a.a,i=new s(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&n.push(new Y),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&n.push(new v({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&n.push(new N({condition:e.onFocusOnly?T:void 0,kinetic:i})),(void 0===e.pinchRotate||e.pinchRotate)&&n.push(new gt),(void 0===e.pinchZoom||e.pinchZoom)&&n.push(new yt({duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(n.push(new at),n.push(new ct({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&n.push(new dt({condition:e.onFocusOnly?T:void 0,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&n.push(new et({duration:e.zoomDuration})),n}()),t.call(this,e)||this}return bt(e,t),e.prototype.createRenderer=function(){return new mt.a(this)},e}(r.a);e.default=Ot},function(t,e,n){"use strict";n.r(e);var i,r=n(41),o=n(13),a=n(76),s=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u="renderOrder",c=function(t){function e(e){var n=this,i=e||{},r=Object(o.a)({},i);return delete r.style,delete r.renderBuffer,delete r.updateWhileAnimating,delete r.updateWhileInteracting,(n=t.call(this,r)||this).declutter_=void 0!==i.declutter&&i.declutter,n.renderBuffer_=void 0!==i.renderBuffer?i.renderBuffer:100,n.style_=null,n.styleFunction_=void 0,n.setStyle(i.style),n.updateWhileAnimating_=void 0!==i.updateWhileAnimating&&i.updateWhileAnimating,n.updateWhileInteracting_=void 0!==i.updateWhileInteracting&&i.updateWhileInteracting,n}return s(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(u)},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(u,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:a.createDefaultStyle,this.styleFunction_=null===t?void 0:Object(a.toFunction)(this.style_),this.changed()},e}(r.a),l=n(1),h=n(23),p=n(0),f=n(7),d=n(15),_=n(33),g=n(24),v=n(4),y=n(46),m=n(68),b=n(3),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},E=[O.FILL],T=[O.STROKE],x=[O.BEGIN_PATH],C=[O.CLOSE_PATH],S=O,I=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),R=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.tolerance=e,o.maxExtent=n,o.pixelRatio=r,o.maxLineWidth=0,o.resolution=i,o.beginGeometryInstruction1_=null,o.beginGeometryInstruction2_=null,o.bufferedMaxExtent_=null,o.instructions=[],o.coordinates=[],o.tmpCoordinate_=[],o.hitDetectionInstructions=[],o.state={},o}return I(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,n,i,r,o){var a=this.coordinates.length,s=this.getBufferedMaxExtent();o&&(e+=i);var u,c,l,h=t[e],f=t[e+1],d=this.tmpCoordinate_,_=!0;for(u=e+i;uthis.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},e.prototype.createFill=function(t){var e=t.fillStyle,n=[S.SET_FILL_STYLE,e];return"string"!=typeof e&&n.push(!0),n},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[S.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 n=t.fillStyle;"string"==typeof n&&t.currentFillStyle==n||(void 0!==n&&this.instructions.push(e.call(this,t)),t.currentFillStyle=n)},e.prototype.updateStrokeStyle=function(t,e){var n=t.strokeStyle,i=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,u=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=i||r!=t.currentLineDash&&!Object(d.b)(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=s||t.currentMiterLimit!=u)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=u)},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=[S.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}(m.a),w=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),j=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i,r)||this;return o.declutterGroups_=null,o.hitDetectionImage_=null,o.image_=null,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o}return w(e,t),e.prototype.drawCoordinates_=function(t,e,n,i){return this.appendFlatCoordinates(t,e,n,i,!1,!1)},e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([S.DRAW_IMAGE,r,o,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([S.DRAW_IMAGE,r,o,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 n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([S.DRAW_IMAGE,r,o,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([S.DRAW_IMAGE,r,o,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 n=t.getAnchor(),i=t.getSize(),r=t.getHitDetectionImage(1),o=t.getImage(1),a=t.getOrigin();this.anchorX_=n[0],this.anchorY_=n[1],this.declutterGroups_=e,this.hitDetectionImage_=r,this.image_=o,this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=a[0],this.originY_=a[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScale(),this.width_=i[0]},e}(R),P=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),M=function(t){function e(e,n,i,r){return t.call(this,e,n,i,r)||this}return P(e,t),e.prototype.drawFlatCoordinates_=function(t,e,n,i){var r=this.coordinates.length,o=this.appendFlatCoordinates(t,e,n,i,!1,!1),a=[S.MOVE_TO_LINE_TO,r,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n},e.prototype.drawLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([S.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],x);var o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(T),this.endGeometry(e)}},e.prototype.drawMultiLineString=function(t,e){var n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0!==i&&void 0!==r){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([S.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],x);for(var o=t.getEnds(),a=t.getFlatCoordinates(),s=t.getStride(),u=0,c=0,l=o.length;ct&&(v>g&&(g=v,d=y,_=o),v=0,y=o-r)),a=s,l=p,h=f),u=m,c=b}return(v+=s)>g?[y,o]:[d,_]}var N="line",k=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),G={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},Y={Circle:F,Default:R,Image:j,LineString:M,Polygon:F,Text:function(t){function e(e,n,i,r){var o=t.call(this,e,n,i,r)||this;return o.declutterGroups_,o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",b.o.prune(),o}return k(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 n=this.textFillState_,i=this.textStrokeState_,r=this.textState_;if(""!==this.text_&&r&&(n||i)){var o,a,s=this.coordinates.length,u=t.getType(),c=null,l=2,h=2;if(r.placement===N){if(!Object(p.F)(this.getBufferedMaxExtent(),t.getExtent()))return;var f=void 0;if(c=t.getFlatCoordinates(),h=t.getStride(),u==v.a.LINE_STRING)f=[c.length];else if(u==v.a.MULTI_LINE_STRING)f=t.getEnds();else if(u==v.a.POLYGON)f=t.getEnds().slice(0,1);else if(u==v.a.MULTI_POLYGON){var d=t.getEndss();for(f=[],o=0,a=d.length;ot[n-i],_=r.length,g=t[e],v=t[e+1],y=t[e+=i],m=t[e+1],b=0,O=Math.sqrt(Math.pow(y-g,2)+Math.pow(m-v,2)),E=!1,T=0;T<_;++T){for(var x=r[h=d?_-T-1:T],C=s*u(c,x,l),S=o+C/2;e0?-Math.PI:Math.PI),void 0!==p){var w=R-p;if(E=E||0!==w,w+=w>Math.PI?-2*Math.PI:w<-Math.PI?2*Math.PI:0,Math.abs(w)>a)return null}p=R;var j=I/O,P=Object(V.c)(g,y,j),M=Object(V.c)(v,m,j);f[h]=[P,M,C/2,R,x],o+=C}return E?f:[[f[0][0],f[0][1],f[0][2],f[0][3],r]]}var H=n(43),q=n(71),J=n.n(q),Q=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),$=Object(p.j)(),tt=Object(U.c)(),et=[],nt=[],it=[],rt=[],ot=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.overlaps=i,o.pixelRatio=n,o.resolution=e,o.alignFill_,o.declutterItems=[],o.instructions=r.instructions,o.coordinates=r.coordinates,o.coordinateCache_={},o.renderedTransform_=Object(U.c)(),o.hitDetectionInstructions=r.hitDetectionInstructions,o.pixelCoordinates_=null,o.viewRotation_=0,o.fillStates=r.fillStates||{},o.strokeStates=r.strokeStates||{},o.textStates=r.textStates||{},o.widths_={},o}return Q(e,t),e.prototype.disposeInternal=function(){b.o.release(this),t.prototype.disposeInternal.call(this)},e.prototype.getTextImage=function(t,e,n,i){var r,o=i+e+t+n+this.pixelRatio;if(!b.o.containsKey(o)){var a=i?this.strokeStates[i]:null,s=n?this.fillStates[n]:null,u=this.textStates[e],c=this.pixelRatio,l=u.scale*c,h=G[u.textAlign||b.l],p=i&&a.lineWidth?a.lineWidth:0,f=t.split("\n"),d=f.length,_=[],g=Object(b.r)(u.font,f,_),v=Object(b.q)(u.font),y=v*d,m=g+p,O=Object(z.a)(Math.ceil((m+2)*l),Math.ceil((y+p)*l));r=O.canvas,b.o.set(o,r),1!=l&&O.scale(l,l),O.font=u.font,i&&(O.strokeStyle=a.strokeStyle,O.lineWidth=p,O.lineCap=a.lineCap,O.lineJoin=a.lineJoin,O.miterLimit=a.miterLimit,O.setLineDash&&a.lineDash.length&&(O.setLineDash(a.lineDash),O.lineDashOffset=a.lineDashOffset)),n&&(O.fillStyle=s.fillStyle),O.textBaseline="middle",O.textAlign="center";var E=.5-h,T=h*m+E*p,x=void 0;if(i)for(x=0;xi.width?i.width-c:_,E=s+l>i.height?i.height-l:s,T=g[3]+O*f+g[1],x=g[0]+E*f+g[2],C=e-g[3],S=n-g[0];(m||0!==h)&&(et[0]=C,rt[0]=C,et[1]=S,nt[1]=S,nt[0]=C+T,it[0]=nt[0],it[1]=S+x,rt[1]=it[1]);var I=null;if(0!==h){var R=e+r,w=n+o;I=Object(U.b)(tt,R,w,1,1,h,-R,-w),Object(U.a)(tt,et),Object(U.a)(tt,nt),Object(U.a)(tt,it),Object(U.a)(tt,rt),Object(p.k)(Math.min(et[0],nt[0],it[0],rt[0]),Math.min(et[1],nt[1],it[1],rt[1]),Math.max(et[0],nt[0],it[0],rt[0]),Math.max(et[1],nt[1],it[1],rt[1]),$)}else Object(p.k)(C,S,C+T,S+x,$);var j=t.canvas,P=y?y[2]*f/2:0,M=$[0]-P<=j.width&&$[2]+P>=0&&$[1]-P<=j.height&&$[3]+P>=0;if(d&&(e=Math.round(e),n=Math.round(n)),a){if(!M&&1==a[4])return;Object(p.q)(a,$);var L=M?[t,I?I.slice(0):null,u,i,c,l,O,E,e,n,f]:null;L&&(m&&L.push(v,y,et,nt,it,rt),a.push(L))}else M&&(m&&this.replayTextBackground_(t,et,nt,it,rt,v,y),Object(b.n)(t,I,u,i,c,l,O,E,e,n,f))},e.prototype.fill_=function(t){if(this.alignFill_){var e=Object(U.a)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;t.save(),t.translate(e[0]%n,e[1]%n),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},e.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]))},e.prototype.renderDeclutter=function(t,e,n,i){if(t&&t.length>5){var r=t[4];if(1==r||r==t.length-5){var o={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};if(i||(i=new J.a(9)),!i.collides(o)){i.insert(o);for(var a=5,s=t.length;a11&&this.replayTextBackground_(u[0],u[13],u[14],u[15],u[16],u[11],u[12]),b.n.apply(void 0,u),l!==n&&(c.globalAlpha=l)}}t.length=5,Object(p.l)(t)}}return i},e.prototype.drawTextImageWithPointPlacement_=function(t,e,n,i){var r=this.textStates[e],o=this.getTextImage(t,e,i,n),a=this.strokeStates[n],s=this.pixelRatio,u=G[r.textAlign||b.l],c=G[r.textBaseline||b.m],l=a&&a.lineWidth?a.lineWidth:0;return{label:o,anchorX:u*(o.width/s-2*r.scale)+2*(.5-u)*l,anchorY:c*o.height/s+2*(.5-c)*l}},e.prototype.execute_=function(t,e,n,i,r,o){var a;this.declutterItems.length=0,this.pixelCoordinates_&&Object(d.b)(e,this.renderedTransform_)?a=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),a=Object(W.c)(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),Object(U.h)(this.renderedTransform_,e));for(var s,u,c,l,h,f,_,g,v,y,m,O,E,T,x,C,I,R=0,w=n.length,j=0,P=0,M=0,L=null,A=null,F=this.coordinateCache_,D=this.viewRotation_,N=Math.round(1e12*Math.atan2(-e[1],e[0]))/1e12,k={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:D},Y=this.instructions!=n||this.overlaps?0:200;RY&&(this.fill_(t),P=0),M>Y&&(t.stroke(),M=0),P||M||(t.beginPath(),l=NaN,h=NaN),++R;break;case S.CIRCLE:var z=a[j=X[1]],K=a[j+1],V=a[j+2]-z,H=a[j+3]-K,q=Math.sqrt(V*V+H*H);t.moveTo(z+q,K),t.arc(z,K,q,0,2*Math.PI,!0),++R;break;case S.CLOSE_PATH:t.closePath(),++R;break;case S.CUSTOM:j=X[1],s=X[2];var J=X[3],Q=X[4],$=6==X.length?X[5]:void 0;k.geometry=J,k.feature=x,R in F||(F[R]=[]);var tt=F[R];$?$(a,j,s,2,tt):(tt[0]=a[j],tt[1]=a[j+1],tt.length=2),Q(tt,k),++R;break;case S.DRAW_IMAGE:j=X[1],s=X[2],y=X[3],u=X[4],c=X[5],v=r?null:X[6];var et=X[7],nt=X[8],it=X[9],rt=X[10],ot=X[11],at=X[12],st=X[13],ut=X[14];if(!y&&X.length>=19){m=X[18],O=X[19],E=X[20],T=X[21];var ct=this.drawTextImageWithPointPlacement_(m,O,E,T);y=ct.label,X[3]=y;var lt=X[22];u=(ct.anchorX-lt)*this.pixelRatio,X[4]=u;var ht=X[23];c=(ct.anchorY-ht)*this.pixelRatio,X[5]=c,et=y.height,X[7]=et,ut=y.width,X[14]=ut}var pt=void 0;X.length>24&&(pt=X[24]);var ft=void 0,dt=void 0,_t=void 0;X.length>16?(ft=X[15],dt=X[16],_t=X[17]):(ft=b.j,dt=!1,_t=!1),ot&&N?at+=D:ot||N||(at-=D);for(var gt=0,vt=0;j=o;)lt(n,t+r,t+o),lt(n,t+o,t+r),lt(n,t-o,t+r),lt(n,t-r,t+o),lt(n,t-r,t-o),lt(n,t-o,t-r),lt(n,t+o,t-r),lt(n,t+r,t-o),o++,2*((a+=1+2*o)-r)+1>0&&(a+=1-2*(r-=1));return ct[t]=n,n}(i);function f(t){for(var e=c.getImageData(0,0,a,a).data,n=0;n0){var s=void 0;return(!o||l!=K.a.IMAGE&&l!=K.a.TEXT||-1!==o.indexOf(t))&&(s=r(t)),s||void c.clearRect(0,0,a,a)}}var _,g,v,y,m,b=Object.keys(this.executorsByZIndex_).map(Number);for(b.sort(d.f),_=b.length-1;_>=0;--_){var O=b[_].toString();for(v=this.executorsByZIndex_[O],g=st.length-1;g>=0;--g)if(void 0!==(y=v[l=st[g]])&&(m=y.executeHitDetection(c,s,n,f,u)))return m}},e.prototype.getClipCoords=function(t){var e=this.maxExtent_;if(!e)return null;var n=e[0],i=e[1],r=e[2],o=e[3],a=[n,i,n,o,r,o,r,i];return Object(W.c)(a,0,8,2,t,a),a},e.prototype.isEmpty=function(){return Object(o.d)(this.executorsByZIndex_)},e.prototype.execute=function(t,e,n,i,r,o){var a=Object.keys(this.executorsByZIndex_).map(Number);a.sort(d.f),this.maxExtent_&&(t.save(),this.clip(t,e));var s,u,c,l,h,p,f=r||st;for(s=0,u=a.length;s=r)for(i=r;i0&&(a.width=0),this.container;var u=Math.round(t.size[0]*n),c=Math.round(t.size[1]*n);a.width!=u||a.height!=c?(a.width=u,a.height=c,a.style.transform!==r&&(a.style.transform=r)):this.containerReused||o.clearRect(0,0,u,c),this.preRender(o,t);var l=t.extent,_=t.viewState,g=_.center,v=_.resolution,y=_.projection,m=_.rotation,b=y.getExtent(),O=this.getLayer().getSource(),E=!1;if(i.extent){var T=Object(f.fromUserExtent)(i.extent,y);(E=!Object(p.g)(T,t.extent)&&Object(p.F)(T,t.extent))&&this.clip(o,t,T)}var x=t.viewHints,C=!(x[h.a.ANIMATING]||x[h.a.INTERACTING]),S=this.getRenderTransform(g,v,m,n,u,c,0),I=this.getLayer().getDeclutter()?{}:null;if(s.execute(o,S,m,C,void 0,I),O.getWrapX()&&y.canWrapX()&&!Object(p.g)(b,l)){for(var R=l[0],w=Object(p.E)(b),j=0,P=void 0;Rb[2];){P=w*++j;var L=this.getRenderTransform(g,v,m,n,u,c,P);s.execute(o,L,m,C,void 0,I),R-=w}}if(I){var A=t.viewHints;!function(t,e,n,i,r,o){for(var a=Object.keys(t).map(Number).sort(d.f),s=0,u=a.length;s_[2];)b=y*++m,c.push(this.getRenderTransform(i,r,o,.5,l,h,b).slice()),g-=y}this.hitDetectionImageData_=function(t,e,n,i,r,o,a){var s=t[0]/2,u=t[1]/2,c=Object(z.a)(s,u);c.imageSmoothingEnabled=!1;for(var l=c.canvas,h=new dt.a(c,.5,r,null,a),f=n.length,_=Math.ceil(16777216/f),g={},y=0;y=200&&s.status<300){var o=e.getType(),u=void 0;o==d.JSON||o==d.TEXT?u=s.responseText:o==d.XML?(u=s.responseXML)||(u=(new DOMParser).parseFromString(s.responseText,"application/xml")):o==d.ARRAY_BUFFER&&(u=s.response),u?n.call(this,e.readFeatures(u,{extent:r,featureProjection:a}),e.readProjection(u)):i.call(this)}else i.call(this)}.bind(this),s.onerror=function(){i.call(this)}.bind(this),s.send()}}(t,e,(function(t,e){"function"==typeof this.addFeatures&&this.addFeatures(t)}),f.c)}function v(t,e){return[[-1/0,-1/0,1/0,1/0]]}var y=n(13),m=n(74),b=n(36),O="addfeature",E="changefeature",T="clear",x="removefeature",C=n(71),S=n.n(C),I=function(){function t(t){this.rbush_=new S.a(t),this.items_={}}return t.prototype.insert=function(t,e){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[Object(i.c)(e)]=n},t.prototype.load=function(t,e){for(var n=new Array(e.length),r=0,o=e.length;r0&&(this.newTiles_=!0):s.setState(f.a.LOADED)),this.isDrawableTile(s)||(s=s.getInterimTile()),s},e.prototype.loadedTileCallback=function(e,n,i){return!!this.isDrawableTile(i)&&t.prototype.loadedTileCallback.call(this,e,n,i)},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,e){var n=t.layerStatesArray[t.layerIndex],i=t.viewState,r=i.projection,o=i.resolution,a=i.center,s=i.rotation,u=t.pixelRatio,c=this.getLayer(),p=c.getSource(),_=p.getRevision(),y=p.getTileGridForProjection(r),m=y.getZForResolution(o,p.zDirection),b=y.getResolution(m),O=t.extent,E=n.extent&&Object(h.fromUserExtent)(n.extent,r);E&&(O=Object(d.B)(O,Object(h.fromUserExtent)(n.extent,r)));var T=p.getTilePixelRatio(u),x=Math.round(t.size[0]*T),C=Math.round(t.size[1]*T);if(s){var S=Math.round(Math.sqrt(x*x+C*C));x=S,C=S}var I=b*x/2/T,R=b*C/2/T,w=[a[0]-I,a[1]-R,a[0]+I,a[1]+R],j=y.getTileRangeForExtentAndZ(O,m),P={};P[m]={};var M=this.createLoadedTileFinder(p,r,P),L=this.tmpExtent,A=this.tmpTileRange_;this.newTiles_=!1;for(var F=j.minX;F<=j.maxX;++F)for(var D=j.minY;D<=j.maxY;++D){var N=this.getTile(m,F,D,t);if(this.isDrawableTile(N)){var k=Object(l.c)(this);if(N.getState()==f.a.LOADED){P[m][N.tileCoord.toString()]=N;var G=N.inTransition(k);this.newTiles_||!G&&-1!==this.renderedTiles.indexOf(N)||(this.newTiles_=!0)}if(1===N.getAlpha(k,t.time))continue}var Y=y.getTileCoordChildTileRange(N.tileCoord,A,L),X=!1;Y&&(X=M(m+1,Y)),X||y.forEachTileCoordParentTileRange(N.tileCoord,M,A,L)}var z=b/o;Object(g.b)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/T,1/T,s,-x/2,-C/2);var W=this.createTransformString(this.pixelTransform);this.useContainer(e,W,n.opacity);var K=this.context,U=K.canvas;Object(g.d)(this.inversePixelTransform,this.pixelTransform),Object(g.b)(this.tempTransform_,x/2,C/2,z,z,0,-x/2,-C/2),U.width!=x||U.height!=C?(U.width=x,U.height=C):this.containerReused||K.clearRect(0,0,x,C),E&&this.clipUnrotated(K,t,E),this.preRender(K,t),this.renderedTiles.length=0;var B,V,Z,H=Object.keys(P).map(Number);H.sort(v.f),1!==n.opacity||this.containerReused&&!p.getOpaque(t.viewState.projection)?(B=[],V=[]):H=H.reverse();for(var q=H.length-1;q>=0;--q){var J=H[q],Q=p.getTilePixelSize(J,u,r),$=y.getResolution(J)/b,tt=Q[0]*$*z,et=Q[1]*$*z,nt=y.getTileCoordForCoordAndZ(Object(d.C)(w),J),it=y.getTileCoordExtent(nt),rt=Object(g.a)(this.tempTransform_,[T*(it[0]-w[0])/b,T*(w[3]-it[3])/b]),ot=T*p.getGutterForProjection(r),at=P[J];for(var st in at){var ut=(N=at[st]).tileCoord,ct=rt[0]-(nt[1]-ut[1])*tt,lt=Math.round(ct+tt),ht=rt[1]-(nt[2]-ut[2])*et,pt=Math.round(ht+et),ft=lt-(F=Math.round(ct)),dt=pt-(D=Math.round(ht)),_t=m===J;if(!(G=_t&&1!==N.getAlpha(Object(l.c)(this),t.time)))if(B){K.save(),Z=[F,D,F+ft,D,F+ft,D+dt,F,D+dt];for(var gt=0,vt=B.length;gt0,6);var m=void 0!==i.src?o.a.IDLE:o.a.LOADED;return n.color_=void 0!==i.color?Object(s.a)(i.color):null,n.iconImage_=function(t,e,n,i,r,o){var a=p.a.get(e,i,o);return a||(a=new _(t,e,n,i,r,o),p.a.set(e,i,o,a)),a}(d,y,v,n.crossOrigin_,m,n.color_),n.offset_=void 0!==i.offset?i.offset:[0,0],n.offsetOrigin_=void 0!==i.offsetOrigin?i.offsetOrigin:g.TOP_LEFT,n.origin_=null,n.size_=void 0!==i.size?i.size:null,n}return y(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_==c.a.FRACTION||this.anchorYUnits_==c.a.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==c.a.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==c.a.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=g.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=g.TOP_RIGHT&&this.anchorOrigin_!=g.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=g.BOTTOM_LEFT&&this.anchorOrigin_!=g.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_;if(this.offsetOrigin_!=g.TOP_LEFT){var e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),this.offsetOrigin_!=g.TOP_RIGHT&&this.offsetOrigin_!=g.BOTTOM_RIGHT||(t[0]=n[0]-e[0]-t[0]),this.offsetOrigin_!=g.BOTTOM_LEFT&&this.offsetOrigin_!=g.BOTTOM_RIGHT||(t[1]=n[1]-e[1]-t[1])}return 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(u.a.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(u.a.CHANGE,t)},e}(v.a);e.default=m},function(t,e,n){"use strict";n.r(e);var i=n(15),r=n(0),o=n(22),a=n(4),s=n(44),u=n(51),c=n(53),l=n(46),h=n(6);function p(t,e,n,i,r,o){if(n==e)return null;var a;if(r>1;r