@planet/maps 7.1.0 → 8.0.0-dev.1666713300824

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/LICENSE +202 -0
  2. package/config.js +32 -0
  3. package/lib/Map.js +70 -0
  4. package/lib/Overlay.js +24 -0
  5. package/lib/View.js +24 -0
  6. package/lib/control/Attribution.js +24 -0
  7. package/lib/control/Control.js +24 -0
  8. package/lib/control/FullScreen.js +24 -0
  9. package/lib/control/MousePosition.js +24 -0
  10. package/lib/control/OverviewMap.js +24 -0
  11. package/lib/control/Rotate.js +24 -0
  12. package/lib/control/ScaleLine.js +24 -0
  13. package/lib/control/Zoom.js +24 -0
  14. package/lib/control/ZoomSlider.js +24 -0
  15. package/lib/control/ZoomToExtent.js +24 -0
  16. package/lib/interaction/DoubleClickZoom.js +24 -0
  17. package/lib/interaction/DragAndDrop.js +24 -0
  18. package/lib/interaction/DragBox.js +24 -0
  19. package/lib/interaction/DragPan.js +24 -0
  20. package/lib/interaction/DragRotate.js +24 -0
  21. package/lib/interaction/DragRotateAndZoom.js +28 -0
  22. package/lib/interaction/DragZoom.js +24 -0
  23. package/lib/interaction/Draw.js +24 -0
  24. package/lib/interaction/Extent.js +24 -0
  25. package/lib/interaction/Interaction.js +24 -0
  26. package/lib/interaction/KeyboardPan.js +24 -0
  27. package/lib/interaction/KeyboardZoom.js +24 -0
  28. package/lib/interaction/Link.js +24 -0
  29. package/lib/interaction/Modify.js +24 -0
  30. package/lib/interaction/MouseWheelZoom.js +24 -0
  31. package/lib/interaction/PinchRotate.js +24 -0
  32. package/lib/interaction/PinchZoom.js +24 -0
  33. package/lib/interaction/Pointer.js +24 -0
  34. package/lib/interaction/Property.js +24 -0
  35. package/lib/interaction/Select.js +24 -0
  36. package/lib/interaction/Snap.js +24 -0
  37. package/lib/interaction/Translate.js +24 -0
  38. package/lib/layer/Base.js +29 -0
  39. package/lib/layer/BaseImage.js +29 -0
  40. package/lib/layer/BaseTile.js +29 -0
  41. package/lib/layer/BaseVector.js +29 -0
  42. package/lib/layer/Graticule.js +29 -0
  43. package/lib/layer/Group.js +29 -0
  44. package/lib/layer/Heatmap.js +29 -0
  45. package/lib/layer/Image.js +29 -0
  46. package/lib/layer/Layer.js +29 -0
  47. package/lib/layer/MapboxVector.js +29 -0
  48. package/lib/layer/Tile.js +29 -0
  49. package/lib/layer/Vector.js +29 -0
  50. package/lib/layer/VectorImage.js +29 -0
  51. package/lib/layer/VectorTile.js +29 -0
  52. package/lib/layer/WebGLPoints.js +29 -0
  53. package/lib/layer/WebGLTile.js +29 -0
  54. package/lib/source/BingMaps.js +24 -0
  55. package/lib/source/CartoDB.js +24 -0
  56. package/lib/source/Cluster.js +24 -0
  57. package/lib/source/DataTile.js +24 -0
  58. package/lib/source/GeoTIFF.js +24 -0
  59. package/lib/source/IIIF.js +24 -0
  60. package/lib/source/Image.js +24 -0
  61. package/lib/source/ImageArcGISRest.js +24 -0
  62. package/lib/source/ImageCanvas.js +24 -0
  63. package/lib/source/ImageMapGuide.js +24 -0
  64. package/lib/source/ImageStatic.js +24 -0
  65. package/lib/source/ImageWMS.js +24 -0
  66. package/lib/source/OGCMapTile.js +24 -0
  67. package/lib/source/OGCVectorTile.js +24 -0
  68. package/lib/source/OSM.js +24 -0
  69. package/lib/source/Raster.js +24 -0
  70. package/lib/source/Source.js +24 -0
  71. package/lib/source/Stamen.js +24 -0
  72. package/lib/source/Tile.js +24 -0
  73. package/lib/source/TileArcGISRest.js +24 -0
  74. package/lib/source/TileDebug.js +24 -0
  75. package/lib/source/TileImage.js +24 -0
  76. package/lib/source/TileJSON.js +24 -0
  77. package/lib/source/TileWMS.js +24 -0
  78. package/lib/source/UTFGrid.js +24 -0
  79. package/lib/source/UrlTile.js +24 -0
  80. package/lib/source/Vector.js +24 -0
  81. package/lib/source/VectorTile.js +24 -0
  82. package/lib/source/WMTS.js +24 -0
  83. package/lib/source/XYZ.js +24 -0
  84. package/lib/source/Zoomify.js +24 -0
  85. package/package.json +52 -17
  86. package/readme.md +44 -35
  87. package/renderer/render.js +304 -0
  88. package/renderer/update.js +98 -0
  89. package/.npmignore +0 -2
  90. package/common.js +0 -505
  91. package/debug.js +0 -88354
  92. package/embed.js +0 -293
  93. package/explorer.js +0 -464
  94. package/ol.css +0 -241
package/embed.js DELETED
@@ -1,293 +0,0 @@
1
- // OpenLayers 3. See http://openlayers.org/
2
- // License: https://raw.githubusercontent.com/openlayers/ol3/master/LICENSE.md
3
- // Version: v7.1.0
4
- ;(function (root, factory) {
5
- if (typeof exports === "object") {
6
- module.exports = factory();
7
- } else if (typeof define === "function" && define.amd) {
8
- define([], factory);
9
- } else {
10
- root.ol = factory();
11
- }
12
- }(this, function () {
13
- var OPENLAYERS = {};
14
- var k,ga=this;function r(a,b){var c=a.split("."),d=OPENLAYERS||ga;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]?d=d[e]:d=d[e]={}:d[e]=b};function t(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a}function ha(){}function ia(a){return a.se||(a.se=++ja)}var ja=0;function ka(a){this.message="Assertion failed. See http://openlayers.org/en/v7.1.0/doc/errors/#"+a+" for details.";this.code=a;this.name="AssertionError"}t(ka,Error);function v(a,b){if(!a)throw new ka(b);};function la(a,b,c){return Math.min(Math.max(a,b),c)}var na=function(){var a;"cosh"in Math?a=Math.cosh:a=function(a){a=Math.exp(a);return(a+1/a)/2};return a}();function oa(a,b,c,d){a=c-a;b=d-b;return a*a+b*b}function pa(a,b){var c=a%b;return 0>c*b?c+b:c}function qa(a,b,c){return a+c*(b-a)};function ra(a){return function(b){if(b)return[la(b[0],a[0],a[2]),la(b[1],a[1],a[3])]}}function sa(a){return a};function ta(a,b,c){this.center=a;this.resolution=b;this.rotation=c};var ua="function"===typeof Object.assign?Object.assign:function(a,b){if(!a||!a)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(a),d=1,e=arguments.length;d<e;++d){var f=arguments[d];if(void 0!==f&&null!==f)for(var g in f)f.hasOwnProperty(g)&&(c[g]=f[g])}return c};function va(a){for(var b in a)delete a[b]}function wa(a){for(var b in a)return!1;return!b};function xa(a){function b(b){var d=a.listener,e=a.Fb||a.target;a.Ib&&x(a);return d.call(e,b)}return a.Gb=b}function ya(a,b,c,d){for(var e,f=0,g=a.length;f<g;++f)if(e=a[f],e.listener===b&&e.Fb===c)return d&&(e.deleteIndex=f),e}function za(a,b){var c=a.wa;return c?c[b]:void 0}function Aa(a){var b=a.wa;b||(b=a.wa={});return b}
15
- function Ba(a,b){var c=za(a,b);if(c){for(var d=0,e=c.length;d<e;++d)a.removeEventListener(b,c[d].Gb),va(c[d]);c.length=0;if(c=a.wa)delete c[b],0===Object.keys(c).length&&delete a.wa}}function y(a,b,c,d,e){var f=Aa(a),g=f[b];g||(g=f[b]=[]);(f=ya(g,c,d,!1))?e||(f.Ib=!1):(f={Fb:d,Ib:!!e,listener:c,target:a,type:b},a.addEventListener(b,xa(f)),g.push(f));return f}function Ca(a,b,c,d){(a=za(a,b))&&(c=ya(a,c,d,!0))&&x(c)}
16
- function x(a){if(a&&a.target){a.target.removeEventListener(a.type,a.Gb);var b=za(a.target,a.type);if(b){var c="deleteIndex"in a?a.deleteIndex:b.indexOf(a);-1!==c&&b.splice(c,1);0===b.length&&Ba(a.target,a.type)}va(a)}};function Da(){}Da.prototype.Na=!1;function Ga(a){a.Na||(a.Na=!0,a.T())}Da.prototype.T=ha;function Ha(a){this.type=a;this.target=null}Ha.prototype.preventDefault=Ha.prototype.stopPropagation=function(){this.Ae=!0};function Ia(a){a.stopPropagation()};function Ja(){this.ra={};this.S={};this.C={}}t(Ja,Da);k=Ja.prototype;k.addEventListener=function(a,b){var c=this.C[a];c||(c=this.C[a]=[]);-1===c.indexOf(b)&&c.push(b)};k.w=function(a){var b="string"===typeof a?new Ha(a):a;a=b.type;b.target=this;var c=this.C[a],d;if(c){a in this.S||(this.S[a]=0,this.ra[a]=0);++this.S[a];for(var e=0,f=c.length;e<f;++e)if(!1===c[e].call(this,b)||b.Ae){d=!1;break}--this.S[a];if(0===this.S[a]){b=this.ra[a];for(delete this.ra[a];b--;)this.removeEventListener(a,ha);delete this.S[a]}return d}};
17
- k.T=function(){var a=Aa(this),b;for(b in a)Ba(this,b)};k.hasListener=function(a){return a?a in this.C:0<Object.keys(this.C).length};k.removeEventListener=function(a,b){var c=this.C[a];if(c){var d=c.indexOf(b);console.assert(-1!=d,"listener not found");a in this.ra?(c[d]=ha,++this.ra[a]):(c.splice(d,1),0===c.length&&delete this.C[a])}};function Ka(){Ja.call(this);this.D=0}t(Ka,Ja);k=Ka.prototype;k.l=function(){++this.D;this.w("change")};k.W=function(){return this.D};k.X=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=y(this,a[f],b,c);return e}return y(this,a,b,c)};k.Y=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=y(this,a[f],b,c,!0);return e}return y(this,a,b,c,!0)};
18
- k.Z=function(a,b,c){if(Array.isArray(a))for(var d=0,e=a.length;d<e;++d)Ca(this,a[d],b,c);else Ca(this,a,b,c)};k.$=function(a){if(Array.isArray(a))for(var b=0,c=a.length;b<c;++b)x(a[b]);else x(a)};function La(a,b,c){Ha.call(this,a);this.key=b;this.oldValue=c}t(La,Ha);function Ma(a){Ka.call(this);ia(this);this.h={};void 0!==a&&this.P(a)}t(Ma,Ka);var Na={};function Oa(a){return Na.hasOwnProperty(a)?Na[a]:Na[a]="change:"+a}k=Ma.prototype;k.get=function(a){var b;this.h.hasOwnProperty(a)&&(b=this.h[a]);return b};k.da=function(){return Object.keys(this.h)};k.ba=function(){return ua({},this.h)};function Pa(a,b,c){var d;d=Oa(b);a.w(new La(d,b,c));a.w(new La("propertychange",b,c))}
19
- k.set=function(a,b,c){c?this.h[a]=b:(c=this.h[a],this.h[a]=b,c!==b&&Pa(this,a,c))};k.P=function(a,b){for(var c in a)this.set(c,a[c],b)};k.ea=function(a,b){if(a in this.h){var c=this.h[a];delete this.h[a];b||Pa(this,a,c)}};function Qa(a,b){return a>b?1:a<b?-1:0}function Ra(a,b,c){var d=a.length;if(a[0]<=b)return 0;if(!(b<=a[d-1]))if(0<c)for(c=1;c<d;++c){if(a[c]<b)return c-1}else if(0>c)for(c=1;c<d;++c){if(a[c]<=b)return c}else for(c=1;c<d;++c){if(a[c]==b)return c;if(a[c]<b)return a[c-1]-b<b-a[c]?c-1:c}return d-1}function Sa(a,b){var c,d=Array.isArray(b)?b:[b],e=d.length;for(c=0;c<e;c++)a[a.length]=d[c]}function Ta(a,b){var c=a.indexOf(b),d=-1<c;d&&a.splice(c,1);return d}
20
- function Ua(a){var b=Va,c=a.length,d=Array(a.length),e;for(e=0;e<c;e++)d[e]={index:e,value:a[e]};d.sort(function(a,c){return b(a.value,c.value)||a.index-c.index});for(e=0;e<a.length;e++)a[e]=d[e].value}function Wa(a,b){var c=b||Qa;return a.every(function(b,e){if(0===e)return!0;var f=c(a[e-1],b);return!(0<f||0===f)})};function Xa(a){return function(b,c,d){if(void 0!==b)return b=Ra(a,b,d),b=la(b+c,0,a.length-1),c=Math.floor(b),b!=c&&c<a.length-1?a[c]/Math.pow(a[c]/a[c+1],b-c):a[c]}}function Ya(a,b,c){return function(d,e,f){if(void 0!==d)return d=Math.max(Math.floor(Math.log(b/d)/Math.log(a)+(-f/2+.5))+e,0),void 0!==c&&(d=Math.min(d,c)),b/Math.pow(a,d)}};function Za(a){if(void 0!==a)return 0}function $a(a,b){if(void 0!==a)return a+b}function ab(a){var b=2*Math.PI/a;return function(a,d){if(void 0!==a)return a=Math.floor((a+d)/b+.5)*b}}function bb(){var a=5*Math.PI/180;return function(b,c){if(void 0!==b)return Math.abs(b+c)<=a?0:b+c}};function cb(a,b){a[0]+=b[0];a[1]+=b[1]}function db(a,b){var c=Math.cos(b),d=Math.sin(b),e=a[1]*c+a[0]*d;a[0]=a[0]*c-a[1]*d;a[1]=e};function eb(a){for(var b=fb(),c=0,d=a.length;c<d;++c)gb(b,a[c]);return b}function hb(a,b,c){b=b<a[0]?a[0]-b:a[2]<b?b-a[2]:0;a=c<a[1]?a[1]-c:a[3]<c?c-a[3]:0;return b*b+a*a}function ib(a,b){return jb(a,b[0],b[1])}function kb(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}function jb(a,b,c){return a[0]<=b&&b<=a[2]&&a[1]<=c&&c<=a[3]}function lb(a,b){var c=a[1],d=a[2],e=a[3],f=b[0],g=b[1],h=0;f<a[0]?h|=16:f>d&&(h|=4);g<c?h|=8:g>e&&(h|=2);0===h&&(h=1);return h}
21
- function fb(){return[Infinity,Infinity,-Infinity,-Infinity]}function mb(a,b,c,d,e){return e?(e[0]=a,e[1]=b,e[2]=c,e[3]=d,e):[a,b,c,d]}function nb(a){return mb(Infinity,Infinity,-Infinity,-Infinity,a)}function ob(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function pb(a,b){b[0]<a[0]&&(a[0]=b[0]);b[2]>a[2]&&(a[2]=b[2]);b[1]<a[1]&&(a[1]=b[1]);b[3]>a[3]&&(a[3]=b[3]);return a}function gb(a,b){b[0]<a[0]&&(a[0]=b[0]);b[0]>a[2]&&(a[2]=b[0]);b[1]<a[1]&&(a[1]=b[1]);b[1]>a[3]&&(a[3]=b[1])}
22
- function qb(a,b,c,d,e){for(;c<d;c+=e){var f=a,g=b[c],h=b[c+1];f[0]=Math.min(f[0],g);f[1]=Math.min(f[1],h);f[2]=Math.max(f[2],g);f[3]=Math.max(f[3],h)}return a}function rb(a,b,c){var d;return(d=b.call(c,sb(a)))||(d=b.call(c,tb(a)))||(d=b.call(c,ub(a)))?d:(d=b.call(c,vb(a)))?d:!1}function wb(a){var b=0;xb(a)||(b=yb(a)*zb(a));return b}function sb(a){return[a[0],a[1]]}function tb(a){return[a[2],a[1]]}function Ab(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
23
- function Bb(a,b,c,d,e){var f=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);var g=Math.sin(c);c=f*b;f*=g;b*=d;var h=d*g,l=a[0],m=a[1];a=l-c+h;d=l-c-h;g=l+c-h;c=l+c+h;var h=m-f-b,l=m-f+b,n=m+f+b,f=m+f-b;return mb(Math.min(a,d,g,c),Math.min(h,l,n,f),Math.max(a,d,g,c),Math.max(h,l,n,f),e)}function zb(a){return a[3]-a[1]}function Cb(a,b,c){c=c?c:fb();Db(a,b)&&(c[0]=a[0]>b[0]?a[0]:b[0],c[1]=a[1]>b[1]?a[1]:b[1],c[2]=a[2]<b[2]?a[2]:b[2],c[3]=a[3]<b[3]?a[3]:b[3]);return c}function vb(a){return[a[0],a[3]]}
24
- function ub(a){return[a[2],a[3]]}function yb(a){return a[2]-a[0]}function Db(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function xb(a){return a[2]<a[0]||a[3]<a[1]}
25
- function Eb(a,b,c){a=[a[0],a[1],a[0],a[3],a[2],a[1],a[2],a[3]];b(a,a,2);var d=[a[0],a[2],a[4],a[6]],e=[a[1],a[3],a[5],a[7]];console.assert(0<d.length,"xs length should be larger than 0");console.assert(0<e.length,"ys length should be larger than 0");b=Math.min.apply(null,d);a=Math.min.apply(null,e);d=Math.max.apply(null,d);e=Math.max.apply(null,e);return mb(b,a,d,e,c)};function Fb(){return!0}function Gb(){return!1};/*
26
-
27
- Latitude/longitude spherical geodesy formulae taken from
28
- http://www.movable-type.co.uk/scripts/latlong.html
29
- Licensed under CC-BY-3.0.
30
- */
31
- function Hb(a){this.radius=a}function Ib(a,b){var c=a[1]*Math.PI/180,d=b[1]*Math.PI/180,e=(d-c)/2,f=(b[0]-a[0])*Math.PI/180/2,c=Math.sin(e)*Math.sin(e)+Math.sin(f)*Math.sin(f)*Math.cos(c)*Math.cos(d);return 2*Jb.radius*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}
32
- Hb.prototype.offset=function(a,b,c){var d=a[1]*Math.PI/180;b/=this.radius;var e=Math.asin(Math.sin(d)*Math.cos(b)+Math.cos(d)*Math.sin(b)*Math.cos(c));return[180*(a[0]*Math.PI/180+Math.atan2(Math.sin(c)*Math.sin(b)*Math.cos(d),Math.cos(b)-Math.sin(d)*Math.sin(e)))/Math.PI,180*e/Math.PI]};var Jb=new Hb(6370997);var Kb={};Kb.degrees=2*Math.PI*Jb.radius/360;Kb.ft=.3048;Kb.m=1;Kb["us-ft"]=1200/3937;function A(a){this.a=a.code;this.h=a.units;this.g=void 0!==a.extent?a.extent:null;this.o=void 0!==a.worldExtent?a.worldExtent:null;this.b=void 0!==a.global?a.global:!1;this.f=!(!this.b||!this.g);this.C=void 0!==a.getPointResolution?a.getPointResolution:this.ed;this.i=null;this.S=a.metersPerUnit;console.assert(void 0!==a.code,'Option "code" is required for constructing instance')}k=A.prototype;k.Lc=function(){return this.a};
33
- k.u=function(){return this.g};k.od=function(){return this.h};k.Ha=function(){return this.S||Kb[this.h]};k.qd=function(){return this.o};k.Id=function(){return this.b};k.Me=function(a){this.b=a;this.f=!(!a||!this.g)};k.qe=function(a){this.g=a;this.f=!(!this.b||!a)};k.Ue=function(a){this.o=a};k.Le=function(a){this.C=a};
34
- k.ed=function(a,b){if("degrees"==this.h)return a;var c=Lb(this,Mb("EPSG:4326")),d=[b[0]-a/2,b[1],b[0]+a/2,b[1],b[0],b[1]-a/2,b[0],b[1]+a/2],d=c(d,d,2),c=(Ib(d.slice(0,2),d.slice(2,4))+Ib(d.slice(4,6),d.slice(6,8)))/2,d=this.Ha();void 0!==d&&(c/=d);return c};k.getPointResolution=function(a,b){return this.C(a,b)};var Nb={},Ob={};function Pb(a){Qb(a);a.forEach(function(b){a.forEach(function(a){b!==a&&Rb(b,a,Sb)})})}
35
- function Tb(){var a=Ub,b=Vb,c=Wb;Xb.forEach(function(d){a.forEach(function(a){Rb(d,a,b);Rb(a,d,c)})})}function Yb(a){Nb[a.a]=a;Rb(a,a,Sb)}function Qb(a){var b=[];a.forEach(function(a){b.push(Yb(a))})}function Zb(a){return a?"string"===typeof a?Mb(a):a:Mb("EPSG:3857")}function Rb(a,b,c){a=a.a;b=b.a;a in Ob||(Ob[a]={});Ob[a][b]=c}
36
- function $b(a){return function(b,c,d){var e=b.length;d=void 0!==d?d:2;c=void 0!==c?c:Array(e);var f,g;for(g=0;g<e;g+=d)for(f=a([b[g],b[g+1]]),c[g]=f[0],c[g+1]=f[1],f=d-1;2<=f;--f)c[g+f]=b[g+f];return c}}function Mb(a){var b;a instanceof A?b=a:"string"===typeof a&&(b=Nb[a]);return b||null}function ac(a,b){if(a===b)return!0;var c=a.h===b.h;return a.a===b.a?c:Lb(a,b)===Sb&&c}function bc(a,b){var c=Mb(a),d=Mb(b);return Lb(c,d)}
37
- function Lb(a,b){var c=a.a,d=b.a,e;c in Ob&&d in Ob[c]&&(e=Ob[c][d]);void 0===e&&(console.assert(void 0!==e,"transform should be defined"),e=cc);return e}function cc(a,b){if(void 0!==b&&a!==b){console.assert(!1,"This should not be used internally.");for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}function Sb(a,b){var c;if(void 0!==b){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c}function dc(a,b,c){return bc(b,c)(a,void 0,a.length)};function B(){Ma.call(this);this.s=fb();this.v=-1;this.f={};this.o=this.g=0}t(B,Ma);k=B.prototype;k.ka=function(a,b){var c=b?b:[NaN,NaN];this.na(a[0],a[1],c,Infinity);return c};k.ia=function(a){return this.Ca(a[0],a[1])};k.Ca=Gb;k.u=function(a){this.v!=this.D&&(this.s=this.bb(this.s),this.v=this.D);var b=this.s;a?(a[0]=b[0],a[1]=b[1],a[2]=b[2],a[3]=b[3]):a=b;return a};k.ma=function(a){return this.rb(a*a)};
38
- k.transform=function(a,b){console.assert("tile-pixels"!==Mb(a).h&&"tile-pixels"!==Mb(b).h,"cannot transform geometries with TILE_PIXELS units");this.Sa(bc(a,b));return this};function ec(a,b,c,d,e,f){for(var g=f?f:[],h=0;b<c;b+=d){var l=a[b],m=a[b+1];g[h++]=e[0]*l+e[2]*m+e[4];g[h++]=e[1]*l+e[3]*m+e[5]}f&&g.length!=h&&(g.length=h);return g};function C(){B.call(this);this.a="XY";this.j=2;this.c=null}t(C,B);function fc(a){var b;"XY"==a?b=2:"XYZ"==a||"XYM"==a?b=3:"XYZM"==a&&(b=4);console.assert(b,"unsupported layout: "+a);return b}k=C.prototype;k.Ca=Gb;k.bb=function(a){var b=this.c,c=this.c.length,d=this.j;a=nb(a);return qb(a,b,0,c,d)};k.ta=function(){return this.c.slice(0,this.j)};k.ua=function(){return this.c.slice(this.c.length-this.j)};k.va=function(){return this.a};
39
- k.rb=function(a){this.o!=this.D&&(va(this.f),this.g=0,this.o=this.D);if(0>a||0!==this.g&&a<=this.g)return this;var b=a.toString();if(this.f.hasOwnProperty(b))return this.f[b];var c=this.Ia(a);if(c.c.length<this.c.length)return this.f[b]=c;this.g=a;return this};k.Ia=function(){return this};function D(a,b,c){a.j=fc(b);a.a=b;a.c=c}
40
- function gc(a,b,c,d){if(b)c=fc(b);else{for(b=0;b<d;++b){if(0===c.length){a.a="XY";a.j=2;return}c=c[0]}c=c.length;var e;2==c?e="XY":3==c?e="XYZ":4==c&&(e="XYZM");console.assert(e,"unsupported stride: "+c);b=e}a.a=b;a.j=c}k.Sa=function(a){this.c&&(a(this.c,this.c,this.j),this.l())};
41
- k.rotate=function(a,b){var c=this.c;if(c){for(var d=c.length,e=this.j,f=c?c:[],g=Math.cos(a),h=Math.sin(a),l=b[0],m=b[1],n=0,p=0;p<d;p+=e){var q=c[p]-l,z=c[p+1]-m;f[n++]=l+q*g-z*h;f[n++]=m+q*h+z*g;for(q=p+2;q<p+e;++q)f[n++]=c[q]}c&&f.length!=n&&(f.length=n);this.l()}};
42
- k.scale=function(a,b,c){var d=b;void 0===d&&(d=a);var e=c;e||(e=Ab(this.u()));if(c=this.c){b=c.length;for(var f=this.j,g=c?c:[],h=e[0],e=e[1],l=0,m=0;m<b;m+=f){var n=c[m]-h,p=c[m+1]-e;g[l++]=h+a*n;g[l++]=e+d*p;for(n=m+2;n<m+f;++n)g[l++]=c[n]}c&&g.length!=l&&(g.length=l);this.l()}};k.translate=function(a,b){var c=this.c;if(c){var d=c.length,e=this.j,f=c?c:[],g=0,h,l;for(h=0;h<d;h+=e)for(f[g++]=c[h]+a,f[g++]=c[h+1]+b,l=h+2;l<h+e;++l)f[g++]=c[l];c&&f.length!=g&&(f.length=g);this.l()}};function hc(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],l=a[b+1],e=e+(g*h-f*l),f=h,g=l;return e/2}function ic(a,b,c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],e=e+hc(a,b,h,d);b=h}return e};function jc(a,b,c,d,e,f,g){var h=a[b],l=a[b+1],m=a[c]-h,n=a[c+1]-l;if(0!==m||0!==n)if(f=((e-h)*m+(f-l)*n)/(m*m+n*n),1<f)b=c;else if(0<f){for(e=0;e<d;++e)g[e]=qa(a[b+e],a[c+e],f);g.length=d;return}for(e=0;e<d;++e)g[e]=a[b+e];g.length=d}function kc(a,b,c,d,e){var f=a[b],g=a[b+1];for(b+=d;b<c;b+=d){var h=a[b],l=a[b+1],f=oa(f,g,h,l);f>e&&(e=f);f=h;g=l}return e}function lc(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];e=kc(a,b,h,d,e);b=h}return e}
43
- function mc(a,b,c,d,e,f,g,h,l,m,n){if(b==c)return m;var p;if(0===e){p=oa(g,h,a[b],a[b+1]);if(p<m){for(n=0;n<d;++n)l[n]=a[b+n];l.length=d;return p}return m}console.assert(0<e,"maxDelta should be larger than 0");for(var q=n?n:[NaN,NaN],z=b+d;z<c;)if(jc(a,z-d,z,d,g,h,q),p=oa(g,h,q[0],q[1]),p<m){m=p;for(n=0;n<d;++n)l[n]=q[n];l.length=d;z+=d}else z+=d*Math.max((Math.sqrt(p)-Math.sqrt(m))/e|0,1);if(f&&(jc(a,c-d,b,d,g,h,q),p=oa(g,h,q[0],q[1]),p<m)){m=p;for(n=0;n<d;++n)l[n]=q[n];l.length=d}return m}
44
- function nc(a,b,c,d,e,f,g,h,l,m,n){n=n?n:[NaN,NaN];var p,q;p=0;for(q=c.length;p<q;++p){var z=c[p];m=mc(a,b,z,d,e,f,g,h,l,m,n);b=z}return m};function oc(a,b,c){var d=0;console.assert(b.length==c,"length of the coordinate array should match stride");var e;c=0;for(e=b.length;c<e;++c)a[d++]=b[c];return d}function pc(a,b,c,d){var e,f;e=0;for(f=c.length;e<f;++e){var g=c[e];console.assert(g.length==d,"length of coordinate array should match stride");var h;for(h=0;h<d;++h)a[b++]=g[h]}return b}function qc(a,b,c,d,e){e=e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g)b=pc(a,b,c[g],d),e[f++]=b;e.length=f;return e};function rc(a,b,c,d,e){e=void 0!==e?e:[];for(var f=0;b<c;b+=d)e[f++]=a.slice(b,b+d);e.length=f;return e}function sc(a,b,c,d,e){e=void 0!==e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g){var l=c[g];e[f++]=rc(a,b,l,d,e[f]);b=l}e.length=f;return e};function tc(a,b,c,d,e,f,g){var h=(c-b)/d;if(3>h){for(;b<c;b+=d)f[g++]=a[b],f[g++]=a[b+1];return g}var l=Array(h);l[0]=1;l[h-1]=1;c=[b,c-d];for(var m=0,n;0<c.length;){var p=c.pop(),q=c.pop(),z=0,w=a[q],u=a[q+1],G=a[p],U=a[p+1];for(n=q+d;n<p;n+=d){var P;P=a[n];var Q=a[n+1],R=w,fa=u,ba=G-R,ca=U-fa;if(0!==ba||0!==ca){var V=((P-R)*ba+(Q-fa)*ca)/(ba*ba+ca*ca);1<V?(R=G,fa=U):0<V&&(R+=ba*V,fa+=ca*V)}P=oa(P,Q,R,fa);P>z&&(m=n,z=P)}z>e&&(l[(m-b)/d]=1,q+d<m&&c.push(q,m),m+d<p&&c.push(m,p))}for(n=0;n<h;++n)l[n]&&
45
- (f[g++]=a[b+n*d],f[g++]=a[b+n*d+1]);return g}
46
- function uc(a,b,c,d,e,f,g,h){var l,m;l=0;for(m=c.length;l<m;++l){var n=c[l];a:{var p=a,q=n,z=d,w=e,u=f;if(b!=q){var G=w*Math.round(p[b]/w),U=w*Math.round(p[b+1]/w);b+=z;u[g++]=G;u[g++]=U;var P,Q;do if(P=w*Math.round(p[b]/w),Q=w*Math.round(p[b+1]/w),b+=z,b==q){u[g++]=P;u[g++]=Q;break a}while(P==G&&Q==U);for(;b<q;){var R,fa;R=w*Math.round(p[b]/w);fa=w*Math.round(p[b+1]/w);b+=z;if(R!=P||fa!=Q){var ba=P-G,ca=Q-U,V=R-G,O=fa-U;ba*O==ca*V&&(0>ba&&V<ba||ba==V||0<ba&&V>ba)&&(0>ca&&O<ca||ca==O||0<ca&&O>ca)||
47
- (u[g++]=P,u[g++]=Q,G=P,U=Q);P=R;Q=fa}}u[g++]=P;u[g++]=Q}}h.push(g);b=n}return g};function E(a,b){C.call(this);this.b=this.i=-1;this.L(a,b)}t(E,C);k=E.prototype;k.clone=function(){var a=new E(null);D(a,this.a,this.c.slice());a.l();return a};k.na=function(a,b,c,d){if(d<hb(this.u(),a,b))return d;this.b!=this.D&&(this.i=Math.sqrt(kc(this.c,0,this.c.length,this.j,0)),this.b=this.D);return mc(this.c,0,this.c.length,this.j,this.i,!0,a,b,c,d)};k.ie=function(){return hc(this.c,0,this.c.length,this.j)};k.ha=function(){return rc(this.c,0,this.c.length,this.j)};
48
- k.Ia=function(a){var b=[];b.length=tc(this.c,0,this.c.length,this.j,a,b,0);a=new E(null);D(a,"XY",b);a.l();return a};k.R=function(){return"LinearRing"};k.L=function(a,b){a?(gc(this,b,a,1),this.c||(this.c=[]),this.c.length=pc(this.c,0,a,this.j)):D(this,"XY",null);this.l()};function F(a,b){C.call(this);this.L(a,b)}t(F,C);k=F.prototype;k.clone=function(){var a=new F(null);D(a,this.a,this.c.slice());a.l();return a};k.na=function(a,b,c,d){var e=this.c;a=oa(a,b,e[0],e[1]);if(a<d){d=this.j;for(b=0;b<d;++b)c[b]=e[b];c.length=d;return a}return d};k.ha=function(){return this.c?this.c.slice():[]};k.bb=function(a){var b=this.c,c=b[0],b=b[1];return mb(c,b,c,b,a)};k.R=function(){return"Point"};k.ca=function(a){return jb(a,this.c[0],this.c[1])};
49
- k.L=function(a,b){a?(gc(this,b,a,0),this.c||(this.c=[]),this.c.length=oc(this.c,a,this.j)):D(this,"XY",null);this.l()};function vc(a,b,c,d,e){return!rb(e,function(e){return!wc(a,b,c,d,e[0],e[1])})}function wc(a,b,c,d,e,f){for(var g=!1,h=a[c-d],l=a[c-d+1];b<c;b+=d){var m=a[b],n=a[b+1];l>f!=n>f&&e<(m-h)*(f-l)/(n-l)+h&&(g=!g);h=m;l=n}return g}function xc(a,b,c,d,e,f){console.assert(0<c.length,"ends should not be an empty array");if(0===c.length||!wc(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if(wc(a,c[b-1],c[b],d,e,f))return!1;return!0};function yc(a,b,c,d,e,f,g){var h,l,m,n,p,q=e[f+1],z=[],w=c[0];m=a[w-d];p=a[w-d+1];for(h=b;h<w;h+=d){n=a[h];l=a[h+1];if(q<=p&&l<=q||p<=q&&q<=l)m=(q-p)/(l-p)*(n-m)+m,z.push(m);m=n;p=l}w=NaN;p=-Infinity;z.sort(Qa);m=z[0];h=1;for(l=z.length;h<l;++h){n=z[h];var u=Math.abs(n-m);u>p&&(m=(m+n)/2,xc(a,b,c,d,m,q)&&(w=m,p=u));m=n}isNaN(w)&&(w=e[f]);return g?(g.push(w,q),g):[w,q]};function zc(a,b,c,d,e,f){for(var g=[a[b],a[b+1]],h=[],l;b+d<c;b+=d){h[0]=a[b+d];h[1]=a[b+d+1];if(l=e.call(f,g,h))return l;g[0]=h[0];g[1]=h[1]}return!1};function Ac(a,b,c,d,e){var f=qb(fb(),a,b,c,d);return Db(e,f)?kb(e,f)||f[0]>=e[0]&&f[2]<=e[2]||f[1]>=e[1]&&f[3]<=e[3]?!0:zc(a,b,c,d,function(a,b){var c=!1,d=lb(e,a),f=lb(e,b);if(1===d||1===f)c=!0;else{var p=e[0],q=e[1],z=e[2],w=e[3],u=b[0],G=b[1],U=(G-a[1])/(u-a[0]);f&2&&!(d&2)&&(c=u-(G-w)/U,c=c>=p&&c<=z);c||!(f&4)||d&4||(c=G-(u-z)*U,c=c>=q&&c<=w);c||!(f&8)||d&8||(c=u-(G-q)/U,c=c>=p&&c<=z);c||!(f&16)||d&16||(c=G-(u-p)*U,c=c>=q&&c<=w)}return c}):!1}
50
- function Bc(a,b,c,d,e){console.assert(0<c.length,"ends should not be an empty array");var f=c[0];if(!(Ac(a,b,f,d,e)||wc(a,b,f,d,e[0],e[1])||wc(a,b,f,d,e[0],e[3])||wc(a,b,f,d,e[2],e[1])||wc(a,b,f,d,e[2],e[3])))return!1;if(1===c.length)return!0;b=1;for(f=c.length;b<f;++b)if(vc(a,c[b-1],c[b],d,e))return!1;return!0};function Cc(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],l=a[b+1],e=e+(h-f)*(l+g),f=h,g=l;return 0<e}function Dc(a,b,c,d){var e=0;d=void 0!==d?d:!1;var f,g;f=0;for(g=b.length;f<g;++f){var h=b[f],e=Cc(a,e,h,c);if(0===f){if(d&&e||!d&&!e)return!1}else if(d&&!e||!d&&e)return!1;e=h}return!0}
51
- function Ec(a,b,c,d,e){e=void 0!==e?e:!1;var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],l=Cc(a,b,h,d);if(0===f?e&&l||!e&&!l:e&&!l||!e&&l)for(var l=a,m=h,n=d;b<m-n;){var p;for(p=0;p<n;++p){var q=l[b+p];l[b+p]=l[m-n+p];l[m-n+p]=q}b+=n;m-=n}b=h}return b}function Fc(a,b,c,d){var e=0,f,g;f=0;for(g=b.length;f<g;++f)e=Ec(a,e,b[f],c,d);return e};function H(a,b){C.call(this);this.G=[];this.i=-1;this.B=null;this.J=this.A=this.F=-1;this.b=null;this.L(a,b)}t(H,C);k=H.prototype;k.xc=function(a){console.assert(a.a==this.a,"layout of linearRing should match layout");this.c?Sa(this.c,a.c):this.c=a.c.slice();this.G.push(this.c.length);this.l()};k.clone=function(){var a=new H(null);Gc(a,this.a,this.c.slice(),this.G.slice());return a};
52
- k.na=function(a,b,c,d){if(d<hb(this.u(),a,b))return d;this.A!=this.D&&(this.F=Math.sqrt(lc(this.c,0,this.G,this.j,0)),this.A=this.D);return nc(this.c,0,this.G,this.j,this.F,!0,a,b,c,d)};k.Ca=function(a,b){return xc(Hc(this),0,this.G,this.j,a,b)};k.le=function(){return ic(Hc(this),0,this.G,this.j)};k.ha=function(a){var b;void 0!==a?(b=Hc(this).slice(),Ec(b,0,this.G,this.j,a)):b=this.c;return sc(b,0,this.G,this.j)};
53
- function Ic(a){if(a.i!=a.D){var b=Ab(a.u());a.B=yc(Hc(a),0,a.G,a.j,b,0);a.i=a.D}return a.B}k.Sc=function(){return new F(Ic(this))};k.Zc=function(){return this.G.length};k.Yc=function(a){console.assert(0<=a&&a<this.G.length,"index should be in between 0 and and length of this.ends_");if(0>a||this.G.length<=a)return null;var b=new E(null);D(b,this.a,this.c.slice(0===a?0:this.G[a-1],this.G[a]));b.l();return b};
54
- k.$c=function(){var a=this.a,b=this.c,c=this.G,d=[],e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],l=new E(null),m=l;D(m,a,b.slice(e,h));m.l();d.push(l);e=h}return d};function Hc(a){if(a.J!=a.D){var b=a.c;Dc(b,a.G,a.j)?a.b=b:(a.b=b.slice(),a.b.length=Ec(a.b,0,a.G,a.j));a.J=a.D}return a.b}k.Ia=function(a){var b=[],c=[];b.length=uc(this.c,0,this.G,this.j,Math.sqrt(a),b,0,c);a=new H(null);Gc(a,"XY",b,c);return a};k.R=function(){return"Polygon"};k.ca=function(a){return Bc(Hc(this),0,this.G,this.j,a)};
55
- k.L=function(a,b){if(a){gc(this,b,a,2);this.c||(this.c=[]);var c=qc(this.c,0,a,this.j,this.G);this.c.length=0===c.length?0:c[c.length-1];this.l()}else Gc(this,"XY",null,this.G)};function Gc(a,b,c,d){c?0===d.length?console.assert(0===c.length,"flatCoordinates should be an empty array"):console.assert(c.length==d[d.length-1],"the length of flatCoordinates should be the last entry of ends"):console.assert(d&&0===d.length,"ends must be an empty array");D(a,b,c);a.G=d;a.l()}
56
- function Jc(a){var b=a[0],c=a[1],d=a[2];a=a[3];b=[b,c,b,a,d,a,d,c,b,c];c=new H(null);Gc(c,"XY",b,[b.length]);return c};function I(a){var b;Ma.call(this);a=a||{};this.a=[0,0];var c={};c[Kc]=void 0!==a.center?a.center:null;this.s=Zb(a.projection);var d,e,f=void 0!==a.minZoom?a.minZoom:0;b=void 0!==a.maxZoom?a.maxZoom:28;var g=void 0!==a.zoomFactor?a.zoomFactor:2;if(void 0!==a.resolutions)b=a.resolutions,d=b[0],e=b[b.length-1],b=Xa(b);else{d=Zb(a.projection);e=d.u();var h=(e?Math.max(yb(e),zb(e)):360*Kb.degrees/d.Ha())/256/Math.pow(2,0),l=h/Math.pow(2,28);d=a.maxResolution;void 0!==d?f=0:d=h/Math.pow(g,f);e=a.minResolution;
57
- void 0===e&&(e=void 0!==a.maxZoom?void 0!==a.maxResolution?d/Math.pow(g,b):h/Math.pow(g,b):l);b=f+Math.floor(Math.log(d/e)/Math.log(g));e=d/Math.pow(g,b-f);b=Ya(g,d,b-f)}this.b=d;this.o=e;this.v=g;this.f=a.resolutions;this.g=f;f=void 0!==a.extent?ra(a.extent):sa;g=Lc(a);this.i=new ta(f,b,g);void 0!==a.resolution?c[Mc]=a.resolution:void 0!==a.zoom&&(c[Mc]=this.constrainResolution(this.b,a.zoom-this.g));c[Nc]=void 0!==a.rotation?a.rotation:0;this.P(c)}t(I,Ma);k=I.prototype;k.cb=function(a){return this.i.center(a)};
58
- k.constrainResolution=function(a,b,c){return this.i.resolution(a,b||0,c||0)};k.constrainRotation=function(a,b){return this.i.rotation(a,b||0)};k.la=function(){return this.get(Kc)};k.Hb=function(a){var b=this.la();v(b,1);var c=this.H();v(void 0!==c,2);var d=this.fa();v(void 0!==d,3);return Bb(b,c,d,a)};k.be=function(){return this.b};k.ce=function(){return this.o};k.aa=function(){return this.s};k.H=function(){return this.get(Mc)};k.de=function(){return this.f};
59
- function Oc(a,b){return Math.max(yb(a)/b[0],zb(a)/b[1])}k.fa=function(){return this.get(Nc)};k.I=function(){console.assert(Pc(this),"the view was not defined (had no center and/or resolution)");var a=this.la(),b=this.aa(),c=this.H(),d=this.fa();return{center:a.slice(),projection:void 0!==b?b:null,resolution:c,rotation:d}};
60
- k.rd=function(){var a,b=this.H();if(void 0!==b&&b>=this.o&&b<=this.b){a=this.g||0;var c,d;if(this.f){d=Ra(this.f,b,1);a+=d;if(d==this.f.length-1)return a;c=this.f[d];d=c/this.f[d+1]}else c=this.b,d=this.v;a+=Math.log(c/b)/Math.log(d)}return a};
61
- k.Ic=function(a,b,c){a instanceof C||(v(Array.isArray(a),24),v(!xb(a),25),a=Jc(a));var d=c||{};c=void 0!==d.padding?d.padding:[0,0,0,0];var e=void 0!==d.constrainResolution?d.constrainResolution:!0,f=void 0!==d.nearest?d.nearest:!1,g;void 0!==d.minResolution?g=d.minResolution:void 0!==d.maxZoom?g=this.constrainResolution(this.b,d.maxZoom-this.g,0):g=0;var h=a.c,l=this.fa();console.assert(void 0!==l,"rotation was not defined");var d=Math.cos(-l),l=Math.sin(-l),m=Infinity,n=Infinity,p=-Infinity,q=-Infinity;
62
- a=a.j;for(var z=0,w=h.length;z<w;z+=a)var u=h[z]*d-h[z+1]*l,G=h[z]*l+h[z+1]*d,m=Math.min(m,u),n=Math.min(n,G),p=Math.max(p,u),q=Math.max(q,G);b=Oc([m,n,p,q],[b[0]-c[1]-c[3],b[1]-c[0]-c[2]]);b=isNaN(b)?g:Math.max(b,g);e&&(g=this.constrainResolution(b,0,0),!f&&g<b&&(g=this.constrainResolution(g,-1,0)),b=g);this.Ma(b);l=-l;f=(m+p)/2+(c[1]-c[3])/2*b;c=(n+q)/2+(c[0]-c[2])/2*b;this.pa([f*d-c*l,c*d+f*l])};
63
- k.Ac=function(a,b,c){var d=this.fa(),e=Math.cos(-d),d=Math.sin(-d),f=a[0]*e-a[1]*d;a=a[1]*e+a[0]*d;var g=this.H(),f=f+(b[0]/2-c[0])*g;a+=(c[1]-b[1]/2)*g;d=-d;this.pa([f*e-a*d,a*e+f*d])};function Pc(a){return!!a.la()&&void 0!==a.H()}k.rotate=function(a,b){if(void 0!==b){var c,d=this.la();void 0!==d&&(c=[d[0]-b[0],d[1]-b[1]],db(c,a-this.fa()),cb(c,b));this.pa(c)}this.wb(a)};k.pa=function(a){this.set(Kc,a)};
64
- function Qc(a,b){console.assert(1<a.a.length,"illegal hint (%s), must be between 0 and %s",1,a.a.length);a.a[1]+=b;console.assert(0<=a.a[1],"Hint at %s must be positive, was %s",1,a.a[1])}k.Ma=function(a){this.set(Mc,a)};k.wb=function(a){this.set(Nc,a)};k.Ve=function(a){a=this.constrainResolution(this.b,a-this.g,0);this.Ma(a)};
65
- function Lc(a){if(void 0!==a.enableRotation?a.enableRotation:1){a=a.constrainRotation;if(void 0===a||!0===a)return bb();if(!1===a)return $a;if("number"===typeof a)return ab(a);console.assert(!1,"illegal option for constrainRotation (%s)",a);return $a}return Za}var Kc="center",Mc="resolution",Nc="rotation";function Rc(a){return 1-Math.pow(1-a,3)}function Sc(a){return 3*a*a-2*a*a*a}function Tc(a){return a};function Uc(a){var b=a.source,c=a.start?a.start:Date.now(),d=b[0],e=b[1],f=void 0!==a.duration?a.duration:1E3,g=a.easing?a.easing:Sc;return function(a,b){if(b.time<c)return b.animate=!0,b.viewHints[0]+=1,!0;if(b.time<c+f){var m=1-g((b.time-c)/f),n=d-b.viewState.center[0],p=e-b.viewState.center[1];b.animate=!0;b.viewState.center[0]+=m*n;b.viewState.center[1]+=m*p;b.viewHints[0]+=1;return!0}return!1}}
66
- function Vc(a){var b=a.rotation?a.rotation:0,c=a.start?a.start:Date.now(),d=void 0!==a.duration?a.duration:1E3,e=a.easing?a.easing:Sc,f=a.anchor?a.anchor:null;return function(a,h){if(h.time<c)return h.animate=!0,h.viewHints[0]+=1,!0;if(h.time<c+d){var l=1-e((h.time-c)/d),l=(b-h.viewState.rotation)*l;h.animate=!0;h.viewState.rotation+=l;if(f){var m=h.viewState.center;m[0]-=f[0];m[1]-=f[1];db(m,l);cb(m,f)}h.viewHints[0]+=1;return!0}return!1}}
67
- function Wc(a){var b=a.resolution,c=a.start?a.start:Date.now(),d=void 0!==a.duration?a.duration:1E3,e=a.easing?a.easing:Sc;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[0]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),l=b-g.viewState.resolution;g.animate=!0;g.viewState.resolution+=h*l;g.viewHints[0]+=1;return!0}return!1}};function Xc(a,b,c,d){this.O=a;this.N=b;this.b=c;this.a=d}function Yc(a,b,c){return a.O<=b&&b<=a.N&&a.b<=c&&c<=a.a}function Zc(a,b){return a.O<=b.N&&a.N>=b.O&&a.b<=b.a&&a.a>=b.b};function $c(a,b){if(Array.isArray(a))return a;void 0===b?b=[a,a]:b[0]=b[1]=a;return b};function ad(a){this.minZoom=void 0!==a.minZoom?a.minZoom:0;this.a=a.resolutions;v(Wa(this.a,function(a,b){return b-a}),17);this.maxZoom=this.a.length-1;this.b=void 0!==a.origin?a.origin:null;this.h=null;void 0!==a.origins&&(this.h=a.origins,v(this.h.length==this.a.length,20));var b=a.extent;void 0===b||this.b||this.h||(this.b=vb(b));v(!this.b&&this.h||this.b&&!this.h,18);this.f=null;void 0!==a.tileSizes&&(this.f=a.tileSizes,v(this.f.length==this.a.length,19));this.i=void 0!==a.tileSize?a.tileSize:
68
- this.f?null:256;v(!this.i&&this.f||this.i&&!this.f,22);this.o=void 0!==b?b:null;this.g=null;this.C=[0,0];void 0!==a.sizes?(console.assert(a.sizes.length==this.a.length,"number of sizes and resolutions must be equal"),this.g=a.sizes.map(function(a){console.assert(0!==a[0],"width must not be 0");console.assert(0!==a[1],"height must not be 0");return new Xc(Math.min(0,a[0]),Math.max(a[0]-1,-1),Math.min(0,a[1]),Math.max(a[1]-1,-1))},this)):b&&bd(this,b)}var cd=[0,0,0];
69
- function dd(a,b,c,d,e){e=ed(a,b,e);for(b=b[0]-1;b>=a.minZoom;){if(c.call(null,b,fd(a,e,b,d)))return!0;--b}return!1}ad.prototype.u=function(){return this.o};function gd(a,b){if(a.b)return a.b;console.assert(a.minZoom<=b&&b<=a.maxZoom,"given z is not in allowed range (%s <= %s <= %s)",a.minZoom,b,a.maxZoom);return a.h[b]}ad.prototype.H=function(a){console.assert(this.minZoom<=a&&a<=this.maxZoom,"given z is not in allowed range (%s <= %s <= %s)",this.minZoom,a,this.maxZoom);return this.a[a]};
70
- function hd(a,b,c,d){return b[0]<a.maxZoom?(d=ed(a,b,d),fd(a,d,b[0]+1,c)):null}function id(a,b,c,d){jd(a,b[0],b[1],c,!1,cd);var e=cd[1],f=cd[2];jd(a,b[2],b[3],c,!0,cd);a=cd[1];b=cd[2];void 0!==d?(d.O=e,d.N=a,d.b=f,d.a=b):d=new Xc(e,a,f,b);return d}function fd(a,b,c,d){c=a.H(c);return id(a,b,c,d)}function kd(a,b){var c=gd(a,b[0]),d=a.H(b[0]),e=$c(ld(a,b[0]),a.C);return[c[0]+(b[1]+.5)*e[0]*d,c[1]+(b[2]+.5)*e[1]*d]}
71
- function ed(a,b,c){var d=gd(a,b[0]),e=a.H(b[0]);a=$c(ld(a,b[0]),a.C);var f=d[0]+b[1]*a[0]*e;b=d[1]+b[2]*a[1]*e;return mb(f,b,f+a[0]*e,b+a[1]*e,c)}function jd(a,b,c,d,e,f){var g=md(a,d),h=d/a.H(g),l=gd(a,g);a=$c(ld(a,g),a.C);b=h*Math.floor((b-l[0])/d+(e?.5:0))/a[0];c=h*Math.floor((c-l[1])/d+(e?0:.5))/a[1];e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));e=b;void 0!==f?(f[0]=g,f[1]=e,f[2]=c):f=[g,e,c];return f}function nd(a,b,c,d){c=a.H(c);return jd(a,b[0],b[1],c,!1,d)}
72
- function ld(a,b){if(a.i)return a.i;console.assert(a.minZoom<=b&&b<=a.maxZoom,"z is not in allowed range (%s <= %s <= %s",a.minZoom,b,a.maxZoom);return a.f[b]}function od(a,b){return a.g?(console.assert(a.minZoom<=b&&b<=a.maxZoom,"z is not in allowed range (%s <= %s <= %s",a.minZoom,b,a.maxZoom),a.g[b]):null}function md(a,b,c){return la(Ra(a.a,b,c||0),a.minZoom,a.maxZoom)}function bd(a,b){for(var c=a.a.length,d=Array(c),e=a.minZoom;e<c;++e)d[e]=fd(a,b,e);a.g=d};function pd(a){var b=a.i;if(!b){var b=qd(a),c=rd(b,void 0,void 0),b=new ad({extent:b,origin:vb(b),resolutions:c,tileSize:void 0});a.i=b}return b}function rd(a,b,c){b=void 0!==b?b:42;var d=zb(a);a=yb(a);c=$c(void 0!==c?c:256);c=Math.max(a/c[0],d/c[1]);b+=1;d=Array(b);for(a=0;a<b;++a)d[a]=c/Math.pow(2,a);return d}function qd(a){a=Mb(a);var b=a.u();b||(a=180*Kb.degrees/a.Ha(),b=mb(-a,-a,a,a));return b};function sd(a){this.b=a.html;this.a=a.tileRanges?a.tileRanges:null};function td(a){Ma.call(this);this.a=a?a:[];ud(this)}t(td,Ma);function vd(a,b,c){a.a.forEach(b,c)}td.prototype.push=function(a){var b=this.a.length;this.a.splice(b,0,a);ud(this);this.w(new wd(xd,a));return b};function yd(a,b){var c=a.a,d,e;d=0;for(e=c.length;d<e;++d)if(c[d]===b)return c=a,e=c.a[d],c.a.splice(d,1),ud(c),c.w(new wd(zd,e)),e}function ud(a){a.set(Ad,a.a.length)}var Ad="length",xd="add",zd="remove";function wd(a,b){Ha.call(this,a);this.element=b}t(wd,Ha);function Bd(a){if("string"!==typeof a){var b=a[0];b!=(b|0)&&(b=b+.5|0);var c=a[1];c!=(c|0)&&(c=c+.5|0);var d=a[2];d!=(d|0)&&(d=d+.5|0);a="rgba("+b+","+c+","+d+","+(void 0===a[3]?1:a[3])+")"}return a};function Cd(a){return"string"===typeof a||a instanceof CanvasPattern||a instanceof CanvasGradient?a:Bd(a)};function Dd(a,b){var c=document.createElement("CANVAS");a&&(c.width=a);b&&(c.height=b);return c.getContext("2d")}function Ed(a){a&&a.parentNode&&a.parentNode.removeChild(a)};function Fd(a,b,c){Ha.call(this,a);this.map=b;this.frameState=void 0!==c?c:null}t(Fd,Ha);function Gd(a){Ma.call(this);this.element=a.element?a.element:null;this.s=this.J=null;this.B=[];this.render=a.render?a.render:ha;a.target&&(a=a.target,this.J="string"===typeof a?document.getElementById(a):a)}t(Gd,Ma);Gd.prototype.T=function(){Ed(this.element);Ma.prototype.T.call(this)};
73
- Gd.prototype.setMap=function(a){this.s&&Ed(this.element);for(var b=0,c=this.B.length;b<c;++b)x(this.B[b]);this.B.length=0;if(this.s=a)(this.J?this.J:a.F).appendChild(this.element),this.render!==ha&&this.B.push(y(a,"postrender",this.render,this)),a.render()};function Hd(a){a=a?a:{};this.F=document.createElement("UL");this.i=document.createElement("LI");this.F.appendChild(this.i);this.i.style.display="none";this.f=void 0!==a.collapsed?a.collapsed:!0;this.v=void 0!==a.collapsible?a.collapsible:!0;this.v||(this.f=!1);var b=void 0!==a.className?a.className:"ol-attribution",c=void 0!==a.tipLabel?a.tipLabel:"Attributions",d=void 0!==a.collapseLabel?a.collapseLabel:"\u00bb";"string"===typeof d?(this.g=document.createElement("span"),this.g.textContent=d):this.g=
74
- d;d=void 0!==a.label?a.label:"i";"string"===typeof d?(this.o=document.createElement("span"),this.o.textContent=d):this.o=d;var e=this.v&&!this.f?this.g:this.o,d=document.createElement("button");d.setAttribute("type","button");d.title=c;d.appendChild(e);y(d,"click",this.ga,this);c=document.createElement("div");c.className=b+" ol-unselectable ol-control"+(this.f&&this.v?" ol-collapsed":"")+(this.v?"":" ol-uncollapsible");c.appendChild(this.F);c.appendChild(d);Gd.call(this,{element:c,render:a.render?
75
- a.render:Id,target:a.target});this.A=!0;this.b={};this.a={};this.V={}}t(Hd,Gd);
76
- function Id(a){if(a=a.frameState){var b,c,d,e,f,g,h,l,m,n,p,q=a.layerStatesArray,z=ua({},a.attributions),w={},u=a.viewState.projection;c=0;for(b=q.length;c<b;c++)if(g=q[c].layer.za())if(n=ia(g).toString(),m=g.i)for(d=0,e=m.length;d<e;d++)if(h=m[d],l=ia(h).toString(),!(l in z)){if(f=a.usedTiles[n]){var G=g.ya(u);a:{p=h;var U=u;if(p.a){var P,Q,R,fa=void 0;for(fa in f)if(fa in p.a){R=f[fa];var ba;P=0;for(Q=p.a[fa].length;P<Q;++P){ba=p.a[fa][P];if(Zc(ba,R)){p=!0;break a}var ca=fd(G,qd(U),parseInt(fa,
77
- 10)),V=ca.N-ca.O+1;if(R.O<ca.O||R.N>ca.N)if(Zc(ba,new Xc(pa(R.O,V),pa(R.N,V),R.b,R.a))||R.N-R.O+1>V&&Zc(ba,ca)){p=!0;break a}}}p=!1}else p=!0}}else p=!1;p?(l in w&&delete w[l],z[l]=h):w[l]=h}b=[z,w];c=b[0];b=b[1];for(var O in this.b)O in c?(this.a[O]||(this.b[O].style.display="",this.a[O]=!0),delete c[O]):O in b?(this.a[O]&&(this.b[O].style.display="none",delete this.a[O]),delete b[O]):(Ed(this.b[O]),delete this.b[O],delete this.a[O]);for(O in c)d=document.createElement("LI"),d.innerHTML=c[O].b,this.F.appendChild(d),
78
- this.b[O]=d,this.a[O]=!0;for(O in b)d=document.createElement("LI"),d.innerHTML=b[O].b,d.style.display="none",this.F.appendChild(d),this.b[O]=d;O=!wa(this.a)||!wa(a.logos);this.A!=O&&(this.element.style.display=O?"":"none",this.A=O);O&&wa(this.a)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only");var aa;a=a.logos;O=this.V;for(aa in O)aa in a||(Ed(O[aa]),delete O[aa]);for(var da in a)b=a[da],b instanceof HTMLElement&&(this.i.appendChild(b),O[da]=b),da in O||(aa=
79
- new Image,aa.src=da,""===b?c=aa:(c=document.createElement("a"),c.href=b,c.appendChild(aa)),this.i.appendChild(c),O[da]=c);this.i.style.display=wa(a)?"none":""}else this.A&&(this.element.style.display="none",this.A=!1)}Hd.prototype.ga=function(a){a.preventDefault();this.element.classList.toggle("ol-collapsed");if(this.f){a=this.o;var b=a.parentNode;b&&b.replaceChild(this.g,a)}else a=this.g,(b=a.parentNode)&&b.replaceChild(this.o,a);this.f=!this.f};function Jd(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-rotate",c=void 0!==a.label?a.label:"\u21e7";this.a=null;"string"===typeof c?(this.a=document.createElement("span"),this.a.className="ol-compass",this.a.textContent=c):(this.a=c,this.a.classList.add("ol-compass"));var d=a.tipLabel?a.tipLabel:"Reset rotation",c=document.createElement("button");c.className=b+"-reset";c.setAttribute("type","button");c.title=d;c.appendChild(this.a);y(c,"click",Jd.prototype.o,this);d=document.createElement("div");
80
- d.className=b+" ol-unselectable ol-control";d.appendChild(c);b=a.render?a.render:Kd;this.f=a.resetNorth?a.resetNorth:void 0;Gd.call(this,{element:d,render:b,target:a.target});this.g=void 0!==a.duration?a.duration:250;this.b=void 0!==a.autoHide?a.autoHide:!0;this.i=void 0;this.b&&this.element.classList.add("ol-hidden")}t(Jd,Gd);
81
- Jd.prototype.o=function(a){a.preventDefault();if(void 0!==this.f)this.f();else{a=this.s;var b=a.K();if(b){var c=b.fa();void 0!==c&&(0<this.g&&(c%=2*Math.PI,c<-Math.PI&&(c+=2*Math.PI),c>Math.PI&&(c-=2*Math.PI),a.ja(Vc({rotation:c,duration:this.g,easing:Rc}))),b.wb(0))}}};
82
- function Kd(a){if(a=a.frameState){a=a.viewState.rotation;if(a!=this.i){var b="rotate("+a+"rad)";if(this.b){var c=this.element.classList.contains("ol-hidden");c||0!==a?c&&0!==a&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")}this.a.style.msTransform=b;this.a.style.webkitTransform=b;this.a.style.transform=b}this.i=a}};function Ld(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-zoom",c=void 0!==a.delta?a.delta:1,d=void 0!==a.zoomInLabel?a.zoomInLabel:"+",e=void 0!==a.zoomOutLabel?a.zoomOutLabel:"\u2212",f=void 0!==a.zoomInTipLabel?a.zoomInTipLabel:"Zoom in",g=void 0!==a.zoomOutTipLabel?a.zoomOutTipLabel:"Zoom out",h=document.createElement("button");h.className=b+"-in";h.setAttribute("type","button");h.title=f;h.appendChild("string"===typeof d?document.createTextNode(d):d);y(h,"click",Ld.prototype.b.bind(this,
83
- c));d=document.createElement("button");d.className=b+"-out";d.setAttribute("type","button");d.title=g;d.appendChild("string"===typeof e?document.createTextNode(e):e);y(d,"click",Ld.prototype.b.bind(this,-c));c=document.createElement("div");c.className=b+" ol-unselectable ol-control";c.appendChild(h);c.appendChild(d);Gd.call(this,{element:c,target:a.target});this.a=void 0!==a.duration?a.duration:250}t(Ld,Gd);
84
- Ld.prototype.b=function(a,b){b.preventDefault();var c=this.s,d=c.K();if(d){var e=d.H();e&&(0<this.a&&c.ja(Wc({resolution:e,duration:this.a,easing:Rc})),c=d.constrainResolution(e,a),d.Ma(c))}};var Md="undefined"!==typeof navigator?navigator.userAgent.toLowerCase():"",Nd=-1!==Md.indexOf("firefox"),Od=-1!==Md.indexOf("safari")&&-1==Md.indexOf("chrom"),Pd=-1!==Md.indexOf("webkit")&&-1==Md.indexOf("edge"),Qd=-1!==Md.indexOf("macintosh"),Rd=window.devicePixelRatio||1,Sd=!1,Td=function(){if(!("HTMLCanvasElement"in window))return!1;try{var a=document.createElement("CANVAS").getContext("2d");return a?(void 0!==a.setLineDash&&(Sd=!0),!0):!1}catch(b){return!1}}(),Ud="ontouchstart"in window,Vd="PointerEvent"in
85
- window,Wd=!!navigator.msPointerEnabled;function Xd(a,b){this.a=a;this.g=b};function Yd(a){Xd.call(this,a,{mousedown:this.Kd,mousemove:this.Ld,mouseup:this.Od,mouseover:this.Nd,mouseout:this.Md});this.b=a.b;this.h=[]}t(Yd,Xd);function Zd(a,b){for(var c=a.h,d=b.clientX,e=b.clientY,f=0,g=c.length,h;f<g&&(h=c[f]);f++){var l=Math.abs(e-h[1]);if(25>=Math.abs(d-h[0])&&25>=l)return!0}return!1}function $d(a){var b=ae(a,a),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.isPrimary=!0;b.pointerType="mouse";return b}k=Yd.prototype;
86
- k.Kd=function(a){if(!Zd(this,a)){if((1).toString()in this.b){var b=$d(a);ce(this.a,"pointercancel",b,a);delete this.b[(1).toString()]}b=$d(a);this.b[(1).toString()]=a;ce(this.a,"pointerdown",b,a)}};k.Ld=function(a){if(!Zd(this,a)){var b=$d(a);ce(this.a,"pointermove",b,a)}};k.Od=function(a){if(!Zd(this,a)){var b=this.b[(1).toString()];b&&b.button===a.button&&(b=$d(a),ce(this.a,"pointerup",b,a),delete this.b[(1).toString()])}};k.Nd=function(a){if(!Zd(this,a)){var b=$d(a);de(this.a,b,a)}};
87
- k.Md=function(a){if(!Zd(this,a)){var b=$d(a);ee(this.a,b,a)}};function fe(a){Xd.call(this,a,{MSPointerDown:this.Td,MSPointerMove:this.Ud,MSPointerUp:this.Xd,MSPointerOut:this.Vd,MSPointerOver:this.Wd,MSPointerCancel:this.Sd,MSGotPointerCapture:this.Qd,MSLostPointerCapture:this.Rd});this.b=a.b;this.h=["","unavailable","touch","pen","mouse"]}t(fe,Xd);function ge(a,b){var c=b;"number"===typeof b.pointerType&&(c=ae(b,b),c.pointerType=a.h[b.pointerType]);return c}k=fe.prototype;
88
- k.Td=function(a){this.b[a.pointerId.toString()]=a;var b=ge(this,a);ce(this.a,"pointerdown",b,a)};k.Ud=function(a){var b=ge(this,a);ce(this.a,"pointermove",b,a)};k.Xd=function(a){var b=ge(this,a);ce(this.a,"pointerup",b,a);delete this.b[a.pointerId.toString()]};k.Vd=function(a){var b=ge(this,a);ee(this.a,b,a)};k.Wd=function(a){var b=ge(this,a);de(this.a,b,a)};k.Sd=function(a){var b=ge(this,a);ce(this.a,"pointercancel",b,a);delete this.b[a.pointerId.toString()]};
89
- k.Rd=function(a){this.a.w(new he("lostpointercapture",a,a))};k.Qd=function(a){this.a.w(new he("gotpointercapture",a,a))};function ie(a){Xd.call(this,a,{pointerdown:this.ve,pointermove:this.we,pointerup:this.ze,pointerout:this.xe,pointerover:this.ye,pointercancel:this.ue,gotpointercapture:this.sd,lostpointercapture:this.Jd})}t(ie,Xd);k=ie.prototype;k.ve=function(a){je(this.a,a)};k.we=function(a){je(this.a,a)};k.ze=function(a){je(this.a,a)};k.xe=function(a){je(this.a,a)};k.ye=function(a){je(this.a,a)};k.ue=function(a){je(this.a,a)};k.Jd=function(a){je(this.a,a)};k.sd=function(a){je(this.a,a)};function he(a,b,c){Ha.call(this,a);this.a=b;a=c?c:{};this.buttons=ke(a);this.pressure=le(a,this.buttons);this.bubbles="bubbles"in a?a.bubbles:!1;this.cancelable="cancelable"in a?a.cancelable:!1;this.view="view"in a?a.view:null;this.detail="detail"in a?a.detail:null;this.screenX="screenX"in a?a.screenX:0;this.screenY="screenY"in a?a.screenY:0;this.clientX="clientX"in a?a.clientX:0;this.clientY="clientY"in a?a.clientY:0;this.button="button"in a?a.button:0;this.relatedTarget="relatedTarget"in a?a.relatedTarget:
90
- null;this.pointerId="pointerId"in a?a.pointerId:0;this.width="width"in a?a.width:0;this.height="height"in a?a.height:0;this.pointerType="pointerType"in a?a.pointerType:"";this.isPrimary="isPrimary"in a?a.isPrimary:!1;b.preventDefault&&(this.preventDefault=function(){b.preventDefault()})}t(he,Ha);function ke(a){if(a.buttons||me)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a}
91
- function le(a,b){var c=0;a.pressure?c=a.pressure:c=b?.5:0;return c}var me=!1;try{me=1===(new MouseEvent("click",{buttons:1})).buttons}catch(a){};function ne(a,b){Xd.call(this,a,{touchstart:this.$e,touchmove:this.Ze,touchend:this.Ye,touchcancel:this.Xe});this.b=a.b;this.C=b;this.h=void 0;this.i=0;this.f=void 0}t(ne,Xd);k=ne.prototype;k.gc=function(){this.i=0;this.f=void 0};
92
- function oe(a,b,c){b=ae(b,c);b.pointerId=c.identifier+2;b.bubbles=!0;b.cancelable=!0;b.detail=a.i;b.button=0;b.buttons=1;b.width=c.webkitRadiusX||c.radiusX||0;b.height=c.webkitRadiusY||c.radiusY||0;b.pressure=c.webkitForce||c.force||.5;b.isPrimary=a.h===c.identifier;b.pointerType="touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b}
93
- function pe(a,b,c){function d(){b.preventDefault()}var e=Array.prototype.slice.call(b.changedTouches),f=e.length,g,h;for(g=0;g<f;++g)h=oe(a,b,e[g]),h.preventDefault=d,c.call(a,b,h)}
94
- k.$e=function(a){var b=a.touches,c=Object.keys(this.b),d=c.length;if(d>=b.length){var e=[],f,g,h;for(f=0;f<d;++f){g=c[f];h=this.b[g];var l;if(!(l=1==g))a:{l=b.length;for(var m,n=0;n<l;n++)if(m=b[n],m.identifier===g-2){l=!0;break a}l=!1}l||e.push(h.out)}for(f=0;f<e.length;++f)this.kb(a,e[f])}b=a.changedTouches[0];c=Object.keys(this.b).length;if(0===c||1===c&&(1).toString()in this.b)this.h=b.identifier,void 0!==this.f&&clearTimeout(this.f);qe(this,a);this.i++;pe(this,a,this.te)};
95
- k.te=function(a,b){this.b[b.pointerId]={target:b.target,out:b,dc:b.target};var c=this.a;b.bubbles=!0;ce(c,"pointerover",b,a);c=this.a;b.bubbles=!1;ce(c,"pointerenter",b,a);ce(this.a,"pointerdown",b,a)};k.Ze=function(a){a.preventDefault();pe(this,a,this.Pd)};
96
- k.Pd=function(a,b){var c=this.b[b.pointerId];if(c){var d=c.out,e=c.dc;ce(this.a,"pointermove",b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(ee(this.a,d,a),de(this.a,b,a)):(b.target=e,b.relatedTarget=null,this.kb(a,b)));c.out=b;c.dc=b.target}};k.Ye=function(a){qe(this,a);pe(this,a,this.af)};
97
- k.af=function(a,b){ce(this.a,"pointerup",b,a);this.a.out(b,a);re(this.a,b,a);delete this.b[b.pointerId];b.isPrimary&&(this.h=void 0,this.f=setTimeout(this.gc.bind(this),200))};k.Xe=function(a){pe(this,a,this.kb)};k.kb=function(a,b){ce(this.a,"pointercancel",b,a);this.a.out(b,a);re(this.a,b,a);delete this.b[b.pointerId];b.isPrimary&&(this.h=void 0,this.f=setTimeout(this.gc.bind(this),200))};
98
- function qe(a,b){var c=a.C.h,d=b.changedTouches[0];if(a.h===d.identifier){var e=[d.clientX,d.clientY];c.push(e);setTimeout(function(){Ta(c,e)},2500)}};function se(a){Ja.call(this);this.g=a;this.b={};this.f={};this.a=[];Vd?te(this,new ie(this)):Wd?te(this,new fe(this)):(a=new Yd(this),te(this,a),Ud&&te(this,new ne(this,a)));a=this.a.length;for(var b,c=0;c<a;c++)b=this.a[c],ue(this,Object.keys(b.g))}t(se,Ja);function te(a,b){var c=Object.keys(b.g);c&&(c.forEach(function(a){var c=b.g[a];c&&(this.f[a]=c.bind(b))},a),a.a.push(b))}se.prototype.h=function(a){var b=this.f[a.type];b&&b(a)};
99
- function ue(a,b){b.forEach(function(a){y(this.g,a,this.h,this)},a)}function ve(a,b){b.forEach(function(a){Ca(this.g,a,this.h,this)},a)}function ae(a,b){for(var c={},d,e=0,f=we.length;e<f;e++)d=we[e][0],c[d]=a[d]||b[d]||we[e][1];return c}function re(a,b,c){b.bubbles=!1;ce(a,"pointerleave",b,c)}se.prototype.out=function(a,b){a.bubbles=!0;ce(this,"pointerout",a,b)};function ee(a,b,c){a.out(b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||re(a,b,c)}
100
- function de(a,b,c){b.bubbles=!0;ce(a,"pointerover",b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||(b.bubbles=!1,ce(a,"pointerenter",b,c))}function ce(a,b,c,d){a.w(new he(b,d,c))}function je(a,b){a.w(new he(b.type,b,b))}se.prototype.T=function(){for(var a=this.a.length,b,c=0;c<a;c++)b=this.a[c],ve(this,Object.keys(b.g));Ja.prototype.T.call(this)};
101
- var we=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]];function xe(a,b,c,d,e){Fd.call(this,a,b,e);this.originalEvent=c;this.pixel=b.ob(c);this.coordinate=b.sa(this.pixel);this.dragging=void 0!==d?d:!1}t(xe,Fd);xe.prototype.preventDefault=function(){Fd.prototype.preventDefault.call(this);this.originalEvent.preventDefault()};xe.prototype.stopPropagation=function(){Fd.prototype.stopPropagation.call(this);this.originalEvent.stopPropagation()};function ye(a,b,c,d,e){xe.call(this,a,b,c.a,d,e);this.a=c}t(ye,xe);
102
- function ze(a){Ja.call(this);this.h=a;this.i=0;this.o=!1;this.f=[];this.a=null;a=this.h.a;this.s=0;this.A={};this.g=new se(a);this.b=null;this.v=y(this.g,"pointerdown",this.yd,this);this.B=y(this.g,"pointermove",this.Be,this)}t(ze,Ja);function Ae(a,b){var c=new ye(Be,a.h,b);a.w(c);0!==a.i?(clearTimeout(a.i),a.i=0,c=new ye(Ce,a.h,b),a.w(c)):a.i=setTimeout(function(){this.i=0;var a=new ye(De,this.h,b);this.w(a)}.bind(a),250)}
103
- function Ee(a,b){b.type==Fe||b.type==Ge?delete a.A[b.pointerId]:b.type==He&&(a.A[b.pointerId]=!0);a.s=Object.keys(a.A).length}k=ze.prototype;k.Vb=function(a){Ee(this,a);var b=new ye(Fe,this.h,a);this.w(b);this.o||0!==a.button||(console.assert(this.a,"this.down_ must be truthy"),Ae(this,this.a));console.assert(0<=this.s,"this.activePointers_ should be equal to or larger than 0");0===this.s&&(this.f.forEach(x),this.f.length=0,this.o=!1,this.a=null,Ga(this.b),this.b=null)};
104
- k.yd=function(a){Ee(this,a);var b=new ye(He,this.h,a);this.w(b);this.a=a;0===this.f.length&&(this.b=new se(document),this.f.push(y(this.b,Ie,this.zd,this),y(this.b,Fe,this.Vb,this),y(this.g,Ge,this.Vb,this)))};k.zd=function(a){if(a.clientX!=this.a.clientX||a.clientY!=this.a.clientY){this.o=!0;var b=new ye(Je,this.h,a,this.o);this.w(b)}a.preventDefault()};k.Be=function(a){this.w(new ye(a.type,this.h,a,!(!this.a||a.clientX==this.a.clientX&&a.clientY==this.a.clientY)))};
105
- k.T=function(){this.B&&(x(this.B),this.B=null);this.v&&(x(this.v),this.v=null);this.f.forEach(x);this.f.length=0;this.b&&(Ga(this.b),this.b=null);this.g&&(Ga(this.g),this.g=null);Ja.prototype.T.call(this)};var De="singleclick",Be="click",Ce="dblclick",Je="pointerdrag",Ie="pointermove",He="pointerdown",Fe="pointerup",Ge="pointercancel",Ke={nf:De,bf:Be,cf:Ce,ff:Je,jf:Ie,ef:He,mf:Fe,lf:"pointerover",kf:"pointerout",gf:"pointerenter",hf:"pointerleave",df:Ge};function Le(a,b){Ja.call(this);this.qa=a;this.state=b;this.a=null;this.key=""}t(Le,Ja);function Me(a){a.w("change")}Le.prototype.getKey=function(){return this.key+"/"+this.qa};function Ne(a){if(!a.a)return a;var b=a.a;do{if(b.I()==Oe)return b;b=b.a}while(b);return a}Le.prototype.I=function(){return this.state};var Oe=2;function Pe(a,b){this.S=a;this.i=b;this.a=[];this.g=[];this.b={}}Pe.prototype.C=function(a){v(!(this.i(a)in this.b),31);var b=this.S(a);return Infinity!=b?(this.a.push(a),this.g.push(b),this.b[this.i(a)]=!0,Qe(this,0,this.a.length-1),!0):!1};function Re(a,b){for(var c=a.a,d=a.g,e=c.length,f=c[b],g=d[b],h=b;b<e>>1;){var l=2*b+1,m=2*b+2,l=m<e&&d[m]<d[l]?m:l;c[b]=c[l];d[b]=d[l];b=l}c[b]=f;d[b]=g;Qe(a,h,b)}
106
- function Qe(a,b,c){var d=a.a;a=a.g;for(var e=d[c],f=a[c];c>b;){var g=c-1>>1;if(a[g]>f)d[c]=d[g],a[c]=a[g],c=g;else break}d[c]=e;a[c]=f};function Se(a,b){Pe.call(this,function(b){return a.apply(null,b)},function(a){return a[0].getKey()});this.s=b;this.f=0;this.h={}}t(Se,Pe);Se.prototype.C=function(a){var b=Pe.prototype.C.call(this,a);b&&y(a[0],"change",this.o,this);return b};Se.prototype.o=function(a){a=a.target;var b=a.I();if(b===Oe||3===b||4===b||5===b)Ca(a,"change",this.o,this),a=a.getKey(),a in this.h&&(delete this.h[a],--this.f),this.s();console.assert(Object.keys(this.h).length===this.f)};function Te(){this.a=[];this.b=this.h=0}function Ue(a,b){var c=a.b,d=.05-c,e=Math.log(.05/a.b)/-.005;return Uc({source:b,duration:e,easing:function(a){return c*(Math.exp(-.005*a*e)-1)/d}})};function Ve(a){Ma.call(this);this.B=null;this.set("active",!0);this.handleEvent=a.handleEvent}t(Ve,Ma);Ve.prototype.setMap=function(a){this.B=a};function We(a,b,c,d,e){if(void 0!==c){var f=b.fa(),g=b.la();void 0!==f&&g&&e&&0<e&&(a.ja(Vc({rotation:f,duration:e,easing:Rc})),d&&a.ja(Uc({source:g,duration:e,easing:Rc})));b.rotate(c,d)}}function Xe(a,b,c,d,e){var f=b.H();c=b.constrainResolution(f,c,0);Ye(a,b,c,d,e)}
107
- function Ye(a,b,c,d,e){if(c){var f=b.H(),g=b.la();void 0!==f&&g&&c!==f&&e&&0<e&&(a.ja(Wc({resolution:f,duration:e,easing:Rc})),d&&a.ja(Uc({source:g,duration:e,easing:Rc})));if(d){var h;a=b.la();e=b.H();void 0!==a&&void 0!==e&&(h=[d[0]-c*(d[0]-a[0])/e,d[1]-c*(d[1]-a[1])/e]);b.pa(h)}b.Ma(c)}};function Ze(a){a=a?a:{};this.a=a.delta?a.delta:1;Ve.call(this,{handleEvent:$e});this.b=void 0!==a.duration?a.duration:250}t(Ze,Ve);function $e(a){var b=!1,c=a.originalEvent;if(a.type==Ce){var b=a.map,d=a.coordinate,c=c.shiftKey?-this.a:this.a,e=b.K();Xe(b,e,c,d,this.b);a.preventDefault();b=!0}return!b};function af(a){a=a.originalEvent;return a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}function bf(a){a=a.originalEvent;return 0==a.button&&!(Pd&&Qd&&a.ctrlKey)}function cf(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&!a.shiftKey}function df(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}function ef(a){a=a.originalEvent.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a}function ff(a){v(a.a,56);return"mouse"==a.a.pointerType};function gf(a){a=a?a:{};Ve.call(this,{handleEvent:a.handleEvent?a.handleEvent:hf});this.J=a.handleDownEvent?a.handleDownEvent:Gb;this.V=a.handleDragEvent?a.handleDragEvent:ha;this.ga=a.handleMoveEvent?a.handleMoveEvent:ha;this.xa=a.handleUpEvent?a.handleUpEvent:Gb;this.f=!1;this.s={};this.a=[]}t(gf,Ve);function jf(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return[c/b,d/b]}
108
- function hf(a){if(!(a instanceof ye))return!0;var b=!1,c=a.type;if(c===He||c===Je||c===Fe){c=a.a;a.type==Fe?delete this.s[c.pointerId]:a.type==He?this.s[c.pointerId]=c:c.pointerId in this.s&&(this.s[c.pointerId]=c);var c=this.s,d=[],e;for(e in c)d.push(c[e]);this.a=d}this.f&&(a.type==Je?this.V(a):a.type==Fe&&(this.f=this.xa(a)));a.type==He?(this.f=a=this.J(a),b=this.o(a)):a.type==Ie&&this.ga(a);return!b}gf.prototype.o=function(a){return a};function kf(a){gf.call(this,{handleDownEvent:lf,handleDragEvent:mf,handleUpEvent:nf});a=a?a:{};this.b=a.kinetic;this.g=this.i=null;this.A=a.condition?a.condition:cf;this.v=!1}t(kf,gf);
109
- function mf(a){console.assert(1<=this.a.length,"the length of this.targetPointers should be more than 1");var b=jf(this.a);this.b&&this.b.a.push(b[0],b[1],Date.now());if(this.g){var c=this.g[0]-b[0],d=b[1]-this.g[1];a=a.map.K();var e=a.I(),d=c=[c,d],f=e.resolution;d[0]*=f;d[1]*=f;db(c,e.rotation);cb(c,e.center);c=a.cb(c);a.pa(c)}this.g=b}
110
- function nf(a){var b=a.map;a=b.K();if(0===this.a.length){var c;if(c=!this.v&&this.b)if(c=this.b,6>c.a.length)c=!1;else{var d=Date.now()-100,e=c.a.length-3;if(c.a[e+2]<d)c=!1;else{for(var f=e-3;0<f&&c.a[f+2]>d;)f-=3;var d=c.a[e+2]-c.a[f+2],g=c.a[e]-c.a[f],e=c.a[e+1]-c.a[f+1];c.h=Math.atan2(e,g);c.b=Math.sqrt(g*g+e*e)/d;c=.05<c.b}}c?(c=(.05-this.b.b)/-.005,e=this.b.h,f=a.la(),this.i=Ue(this.b,f),b.ja(this.i),f=b.fb(f),b=b.sa([f[0]-c*Math.cos(e),f[1]-c*Math.sin(e)]),b=a.cb(b),a.pa(b)):b.render();Qc(a,
111
- -1);return!1}this.g=null;return!0}function lf(a){if(0<this.a.length&&this.A(a)){var b=a.map,c=b.K();this.g=null;this.f||Qc(c,1);this.i&&Ta(b.V,this.i)&&(c.pa(a.frameState.viewState.center),this.i=null);this.b&&(a=this.b,a.a.length=0,a.h=0,a.b=0);this.v=1<this.a.length;return!0}return!1}kf.prototype.o=Gb;function of(a){a=a?a:{};gf.call(this,{handleDownEvent:pf,handleDragEvent:qf,handleUpEvent:rf});this.g=a.condition?a.condition:af;this.b=void 0;this.i=void 0!==a.duration?a.duration:250}t(of,gf);function qf(a){if(ff(a)){var b=a.map,c=b.hb();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(void 0!==this.b){a=c-this.b;var d=b.K(),e=d.fa();We(b,d,e-a)}this.b=c}}
112
- function rf(a){if(!ff(a))return!0;a=a.map;var b=a.K();Qc(b,-1);var c=b.fa(),d=this.i,c=b.constrainRotation(c,0);We(a,b,c,void 0,d);return!1}function pf(a){return ff(a)&&bf(a)&&this.g(a)?(Qc(a.map.K(),1),this.b=void 0,!0):!1}of.prototype.o=Gb;function sf(a){this.f=null;this.b=document.createElement("div");this.b.style.position="absolute";this.b.className="ol-box "+a;this.h=this.g=this.a=null}t(sf,Da);sf.prototype.T=function(){this.setMap(null)};function tf(a){var b=a.g,c=a.h;a=a.b.style;a.left=Math.min(b[0],c[0])+"px";a.top=Math.min(b[1],c[1])+"px";a.width=Math.abs(c[0]-b[0])+"px";a.height=Math.abs(c[1]-b[1])+"px"}
113
- sf.prototype.setMap=function(a){if(this.a){this.a.J.removeChild(this.b);var b=this.b.style;b.left=b.top=b.width=b.height="inherit"}(this.a=a)&&this.a.J.appendChild(this.b)};function uf(a){var b=a.g,c=a.h,b=[b,[b[0],c[1]],c,[c[0],b[1]]].map(a.a.sa,a.a);b[4]=b[0].slice();a.f?a.f.L([b]):a.f=new H([b])}sf.prototype.i=function(){return this.f};function vf(a){gf.call(this,{handleDownEvent:wf,handleDragEvent:xf,handleUpEvent:yf});a=a?a:{};this.b=new sf(a.className||"ol-dragbox");this.g=null;this.Aa=a.condition?a.condition:Fb;this.F=a.boxEndCondition?a.boxEndCondition:zf}t(vf,gf);function zf(a,b,c){a=c[0]-b[0];b=c[1]-b[1];return 64<=a*a+b*b}function xf(a){if(ff(a)){var b=this.b,c=a.pixel;b.g=this.g;b.h=c;uf(b);tf(b);this.w(new Af(Bf,a.coordinate,a))}}vf.prototype.i=function(){return this.b.i()};vf.prototype.A=ha;
114
- function yf(a){if(!ff(a))return!0;this.b.setMap(null);this.F(a,this.g,a.pixel)&&(this.A(a),this.w(new Af(Cf,a.coordinate,a)));return!1}function wf(a){if(ff(a)&&bf(a)&&this.Aa(a)){this.g=a.pixel;this.b.setMap(a.map);var b=this.b,c=this.g;b.g=this.g;b.h=c;uf(b);tf(b);this.w(new Af(Df,a.coordinate,a));return!0}return!1}var Df="boxstart",Bf="boxdrag",Cf="boxend";function Af(a,b,c){Ha.call(this,a);this.coordinate=b;this.mapBrowserEvent=c}t(Af,Ha);function Ef(a){a=a?a:{};var b=a.condition?a.condition:df;this.v=void 0!==a.duration?a.duration:200;this.Ba=void 0!==a.out?a.out:!1;vf.call(this,{condition:b,className:a.className||"ol-dragzoom"})}t(Ef,vf);
115
- Ef.prototype.A=function(){var a=this.B,b=a.K(),c=a.hb(),d=this.i().u();if(this.Ba){var e=b.Hb(c),d=[a.fb(sb(d)),a.fb(ub(d))],f=nb(void 0),g,h;g=0;for(h=d.length;g<h;++g)gb(f,d[g]);f=1/Oc(f,c);d=(e[2]-e[0])/2*(f-1);f=(e[3]-e[1])/2*(f-1);e[0]-=d;e[2]+=d;e[1]-=f;e[3]+=f;d=e}c=b.constrainResolution(Oc(d,c));e=b.H();f=b.la();a.ja(Wc({resolution:e,duration:this.v,easing:Rc}));a.ja(Uc({source:f,duration:this.v,easing:Rc}));b.pa(Ab(d));b.Ma(c)};function Ff(a){Ve.call(this,{handleEvent:Gf});a=a||{};this.a=function(a){return cf(a)&&ef(a)};this.b=void 0!==a.condition?a.condition:this.a;this.f=void 0!==a.duration?a.duration:100;this.g=void 0!==a.pixelDelta?a.pixelDelta:128}t(Ff,Ve);
116
- function Gf(a){var b=!1;if("keydown"==a.type){var c=a.originalEvent.keyCode;if(this.b(a)&&(40==c||37==c||39==c||38==c)){var d=a.map,b=d.K(),e=b.H()*this.g,f=0,g=0;40==c?g=-e:37==c?f=-e:39==c?f=e:g=e;c=[f,g];db(c,b.fa());e=this.f;if(f=b.la())e&&0<e&&d.ja(Uc({source:f,duration:e,easing:Tc})),d=b.cb([f[0]+c[0],f[1]+c[1]]),b.pa(d);a.preventDefault();b=!0}}return!b};function Hf(a){Ve.call(this,{handleEvent:If});a=a?a:{};this.b=a.condition?a.condition:ef;this.a=a.delta?a.delta:1;this.f=void 0!==a.duration?a.duration:100}t(Hf,Ve);function If(a){var b=!1;if("keydown"==a.type||"keypress"==a.type){var c=a.originalEvent.charCode;if(this.b(a)&&(43==c||45==c)){var b=a.map,c=43==c?this.a:-this.a,d=b.K();Xe(b,d,c,void 0,this.f);a.preventDefault();b=!0}}return!b};function Jf(a){Ve.call(this,{handleEvent:Kf});a=a||{};this.a=0;this.o=void 0!==a.duration?a.duration:250;this.s=void 0!==a.useAnchor?a.useAnchor:!0;this.f=null;this.g=this.b=void 0}t(Jf,Ve);
117
- function Kf(a){var b=!1;if("wheel"==a.type||"mousewheel"==a.type){var b=a.map,c=a.originalEvent;this.s&&(this.f=a.coordinate);var d;"wheel"==a.type?(d=c.deltaY,Nd&&c.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(d/=Rd),c.deltaMode===WheelEvent.DOM_DELTA_LINE&&(d*=40)):"mousewheel"==a.type&&(d=-c.wheelDeltaY,Od&&(d/=3));this.a+=d;void 0===this.b&&(this.b=Date.now());d=Math.max(80-(Date.now()-this.b),0);clearTimeout(this.g);this.g=setTimeout(this.i.bind(this,b),d);a.preventDefault();b=!0}return!b}
118
- Jf.prototype.i=function(a){var b=la(this.a,-1,1),c=a.K();Xe(a,c,-b,this.f,this.o);this.a=0;this.f=null;this.g=this.b=void 0};function Lf(a){gf.call(this,{handleDownEvent:Mf,handleDragEvent:Nf,handleUpEvent:Of});a=a||{};this.g=null;this.i=void 0;this.b=!1;this.v=0;this.F=void 0!==a.threshold?a.threshold:.3;this.A=void 0!==a.duration?a.duration:250}t(Lf,gf);
119
- function Nf(a){console.assert(2<=this.a.length,"length of this.targetPointers should be greater than or equal to 2");var b=0,c=this.a[0],d=this.a[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);void 0!==this.i&&(b=c-this.i,this.v+=b,!this.b&&Math.abs(this.v)>this.F&&(this.b=!0));this.i=c;a=a.map;c=a.a.getBoundingClientRect();d=jf(this.a);d[0]-=c.left;d[1]-=c.top;this.g=a.sa(d);this.b&&(c=a.K(),d=c.fa(),a.render(),We(a,c,d+b,this.g))}
120
- function Of(a){if(2>this.a.length){a=a.map;var b=a.K();Qc(b,-1);if(this.b){var c=b.fa(),d=this.g,e=this.A,c=b.constrainRotation(c,0);We(a,b,c,d,e)}return!1}return!0}function Mf(a){return 2<=this.a.length?(a=a.map,this.g=null,this.i=void 0,this.b=!1,this.v=0,this.f||Qc(a.K(),1),a.render(),!0):!1}Lf.prototype.o=Gb;function Pf(a){gf.call(this,{handleDownEvent:Qf,handleDragEvent:Rf,handleUpEvent:Sf});a=a?a:{};this.g=null;this.v=void 0!==a.duration?a.duration:400;this.b=void 0;this.i=1}t(Pf,gf);
121
- function Rf(a){console.assert(2<=this.a.length,"length of this.targetPointers should be 2 or more");var b=1,c=this.a[0],d=this.a[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);void 0!==this.b&&(b=this.b/e);this.b=e;1!=b&&(this.i=b);a=a.map;var e=a.K(),c=e.H(),d=a.a.getBoundingClientRect(),f=jf(this.a);f[0]-=d.left;f[1]-=d.top;this.g=a.sa(f);a.render();Ye(a,e,c*b,this.g)}
122
- function Sf(a){if(2>this.a.length){a=a.map;var b=a.K();Qc(b,-1);var c=b.H(),d=this.g,e=this.v,c=b.constrainResolution(c,0,this.i-1);Ye(a,b,c,d,e);return!1}return!0}function Qf(a){return 2<=this.a.length?(a=a.map,this.g=null,this.b=void 0,this.i=1,this.f||Qc(a.K(),1),a.render(),!0):!1}Pf.prototype.o=Gb;function Tf(a){Ma.call(this);var b=ua({},a);b.opacity=void 0!==a.opacity?a.opacity:1;b.visible=void 0!==a.visible?a.visible:!0;b.zIndex=void 0!==a.zIndex?a.zIndex:0;b.maxResolution=void 0!==a.maxResolution?a.maxResolution:Infinity;b.minResolution=void 0!==a.minResolution?a.minResolution:0;this.P(b);this.b={layer:this,Wb:!0}}t(Tf,Ma);
123
- function Uf(a){a.b.opacity=la(a.$b(),0,1);a.b.We=a.Pb();a.b.visible=a.ub();a.b.extent=a.u();a.b.zIndex=a.ac();a.b.maxResolution=a.Yb();a.b.minResolution=Math.max(a.Zb(),0);return a.b}k=Tf.prototype;k.u=function(){return this.get("extent")};k.Yb=function(){return this.get("maxResolution")};k.Zb=function(){return this.get("minResolution")};k.$b=function(){return this.get("opacity")};k.ub=function(){return this.get("visible")};k.ac=function(){return this.get("zIndex")};
124
- k.me=function(a){this.set("extent",a)};k.Pe=function(a){this.set("maxResolution",a)};k.Qe=function(a){this.set("minResolution",a)};k.ne=function(a){this.set("opacity",a)};k.Te=function(a){this.set("visible",a)};k.oe=function(a){this.set("zIndex",a)};function Vf(a){var b=a||{};a=ua({},b);delete a.layers;b=b.layers;Tf.call(this,a);this.f=[];this.a={};y(this,Oa(Wf),this.wd,this);b?Array.isArray(b)?b=new td(b.slice()):v(b instanceof td,43):b=new td;this.set(Wf,b)}t(Vf,Tf);k=Vf.prototype;k.gb=function(){this.ub()&&this.l()};
125
- k.wd=function(){this.f.forEach(x);this.f.length=0;var a=this.get(Wf);this.f.push(y(a,xd,this.vd,this),y(a,zd,this.xd,this));for(var b in this.a)this.a[b].forEach(x);va(this.a);var a=a.a,c,d;b=0;for(c=a.length;b<c;b++)d=a[b],this.a[ia(d).toString()]=[y(d,"propertychange",this.gb,this),y(d,"change",this.gb,this)];this.l()};
126
- k.vd=function(a){a=a.element;var b=ia(a).toString();console.assert(!(b in this.a),"listeners already registered");this.a[b]=[y(a,"propertychange",this.gb,this),y(a,"change",this.gb,this)];this.l()};k.xd=function(a){a=ia(a.element).toString();console.assert(a in this.a,"no listeners to unregister");this.a[a].forEach(x);delete this.a[a];this.l()};
127
- k.pb=function(a){var b=void 0!==a?a:[],c=b.length;vd(this.get(Wf),function(a){a.pb(b)});a=Uf(this);var d,e;for(d=b.length;c<d;c++)e=b[c],e.opacity*=a.opacity,e.visible=e.visible&&a.visible,e.maxResolution=Math.min(e.maxResolution,a.maxResolution),e.minResolution=Math.max(e.minResolution,a.minResolution),void 0!==a.extent&&(e.extent=void 0!==e.extent?Cb(e.extent,a.extent):a.extent);return b};k.Pb=function(){return"ready"};var Wf="layers";function Xf(a){A.call(this,{code:a,units:"m",extent:Yf,global:!0,worldExtent:Zf})}t(Xf,A);Xf.prototype.getPointResolution=function(a,b){return a/na(b[1]/6378137)};var $f=6378137*Math.PI,Yf=[-$f,-$f,$f,$f],Zf=[-180,-85,180,85],Ub="EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 urn:ogc:def:crs:EPSG::3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" ").map(function(a){return new Xf(a)});
128
- function Vb(a,b,c){var d=a.length;c=1<c?c:2;void 0===b&&(2<c?b=a.slice():b=Array(d));console.assert(0===b.length%c,"modulus of output.length with dimension should be 0");for(var e=0;e<d;e+=c)b[e]=6378137*Math.PI*a[e]/180,b[e+1]=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));return b}
129
- function Wb(a,b,c){var d=a.length;c=1<c?c:2;void 0===b&&(2<c?b=a.slice():b=Array(d));console.assert(0===b.length%c,"modulus of output.length with dimension should be 0");for(var e=0;e<d;e+=c)b[e]=180*a[e]/(6378137*Math.PI),b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b};var ag=new Hb(6378137);function bg(a,b){A.call(this,{code:a,units:"degrees",extent:cg,axisOrientation:b,global:!0,metersPerUnit:dg,worldExtent:cg})}t(bg,A);bg.prototype.getPointResolution=function(a){return a};
130
- var cg=[-180,-90,180,90],dg=Math.PI*ag.radius/180,Xb=[new bg("CRS:84"),new bg("EPSG:4326","neu"),new bg("urn:ogc:def:crs:EPSG::4326","neu"),new bg("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new bg("urn:ogc:def:crs:OGC:1.3:CRS84"),new bg("urn:ogc:def:crs:OGC:2:84"),new bg("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new bg("urn:x-ogc:def:crs:EPSG:4326","neu")];function eg(){Pb(Ub);Pb(Xb);Tb()};function fg(a,b,c,d,e){Ha.call(this,a);this.vectorContext=b;this.frameState=c;this.context=d;this.glContext=e}t(fg,Ha);function gg(a){var b=ua({},a);delete b.source;Tf.call(this,b);this.g=this.f=this.a=null;a.map&&this.setMap(a.map);y(this,Oa("source"),this.Cd,this);this.lc(a.source?a.source:null)}t(gg,Tf);k=gg.prototype;k.pb=function(a){a=a?a:[];a.push(Uf(this));return a};k.za=function(){return this.get("source")||null};k.Pb=function(){var a=this.za();return a?a.I():"undefined"};k.pe=function(){this.l()};k.Cd=function(){this.g&&(x(this.g),this.g=null);var a=this.za();a&&(this.g=y(a,"change",this.pe,this));this.l()};
131
- k.setMap=function(a){this.a&&(x(this.a),this.a=null);a||this.l();this.f&&(x(this.f),this.f=null);a&&(this.a=y(a,"precompose",function(a){var c=Uf(this);c.Wb=!1;c.zIndex=Infinity;a.frameState.layerStatesArray.push(c);a.frameState.layerStates[ia(this)]=c},this),this.f=y(this,"change",a.render,a),this.l())};k.lc=function(a){this.set("source",a)};function hg(){this.a={};this.b=0}function ig(a,b,c){console.assert(void 0!==b,"argument crossOrigin must be defined");return b+":"+a+":"+(c?Bd(c):"null")}hg.prototype.get=function(a,b,c){a=ig(a,b,c);return a in this.a?this.a[a]:null};hg.prototype.set=function(a,b,c,d){a=ig(a,b,c);this.a[a]=d;++this.b};var jg=new hg;function kg(){return[1,0,0,1,0,0]}function lg(a,b){var c=b[0],d=b[1];b[0]=a[0]*c+a[2]*d+a[4];b[1]=a[1]*c+a[3]*d+a[5];return b}function mg(a,b,c,d,e,f,g,h){var l=Math.sin(f);f=Math.cos(f);a[0]=d*f;a[1]=e*l;a[2]=-d*l;a[3]=e*f;a[4]=g*d*f-h*d*l+b;a[5]=g*e*l+h*e*f+c;return a};function ng(a,b){this.i=b;this.b={};this.h={}}t(ng,Da);k=ng.prototype;k.T=function(){for(var a in this.b)Ga(this.b[a])};function og(){if(32<jg.b){var a=0,b,c;for(b in jg.a)c=jg.a[b],0!==(a++&3)||c.hasListener()||(delete jg.a[b],--jg.b)}}
132
- k.Fa=function(a,b,c,d,e,f){function g(a,e){var f=ia(a).toString(),g=b.layerStates[ia(e)].Wb;if(!(f in b.skippedFeatureUids)||g)return c.call(d,a,g?e:null)}var h,l=b.viewState,m=l.resolution,n=l.projection,l=a;if(n.f){var n=n.u(),p=yb(n),q=a[0];if(q<n[0]||q>n[2])l=[q+p*Math.ceil((n[0]-q)/p),a[1]]}n=b.layerStatesArray;for(p=n.length-1;0<=p;--p){var z=n[p],q=z.layer;if(z.visible&&m>=z.minResolution&&m<z.maxResolution&&e.call(f,q)&&(z=pg(this,q),q.za()&&(h=z.Fa(q.za().A?l:a,b,g,d)),h))return h}};
133
- function pg(a,b){var c=ia(b).toString();if(c in a.b)return a.b[c];var d;b instanceof J?d=new qg(b):(console.assert(!1,"unexpected layer configuration"),d=null);a.b[c]=d;a.h[c]=y(d,"change",a.ud,a);return d}k.ud=function(){this.i.render()};k.ec=ha;
134
- k.Ge=function(a,b){for(var c in this.b)if(!(b&&c in b.layerStates)){var d=c;console.assert(d in this.b,"given layerKey (%s) exists in layerRenderers",d);var e=this.b[d];delete this.b[d];console.assert(d in this.h,"given layerKey (%s) exists in layerRendererListeners",d);x(this.h[d]);delete this.h[d];Ga(e)}};function Va(a,b){return a.zIndex-b.zIndex};function J(a){a=a?a:{};var b=ua({},a);delete b.preload;delete b.useInterimTilesOnError;gg.call(this,b);this.s(void 0!==a.preload?a.preload:0);this.v(void 0!==a.useInterimTilesOnError?a.useInterimTilesOnError:!0)}t(J,gg);J.prototype.i=function(){return this.get(rg)};J.prototype.s=function(a){this.set(rg,a)};J.prototype.o=function(){return this.get(sg)};J.prototype.v=function(a){this.set(sg,a)};var rg="preload",sg="useInterimTilesOnError";var tg=[0,0,0,1],ug=[],vg=[0,0,0,1];function wg(a,b,c,d){0!==b&&(a.translate(c,d),a.rotate(b),a.translate(-c,-d))};function xg(){};function yg(a,b,c,d,e){this.f=a;this.B=b;this.g=c;this.A=d;this.ab=e;this.i=this.a=this.b=this.Na=this.Aa=this.xa=null;this.Oa=this.Ba=this.v=this.J=this.F=this.wa=0;this.Pa=!1;this.C=this.Qa=0;this.Ra=!1;this.V=0;this.h="";this.Xa=this.Wa=0;this.Ya=!1;this.S=this.Za=0;this.ga=this.s=this.o=null;this.ra=[];this.$a=kg()}t(yg,xg);
135
- function zg(a,b,c){if(a.i){console.assert(!0,"offset should be 0");console.assert(c==b.length,"end should be equal to the length of flatCoordinates");b=ec(b,0,c,2,a.A,a.ra);c=a.f;var d=a.$a,e=c.globalAlpha;1!=a.v&&(c.globalAlpha=e*a.v);var f=a.Qa;a.Pa&&(f+=a.ab);var g,h;g=0;for(h=b.length;g<h;g+=2){var l=b[g]-a.wa,m=b[g+1]-a.F;a.Ra&&(l=Math.round(l),m=Math.round(m));if(0!==f||1!=a.C){var n=l+a.wa,p=m+a.F;mg(d,n,p,a.C,a.C,f,-n,-p);c.setTransform.apply(c,d)}c.drawImage(a.i,a.Ba,a.Oa,a.V,a.J,l,m,a.V,
136
- a.J)}0===f&&1==a.C||c.setTransform(1,0,0,1,0,0);1!=a.v&&(c.globalAlpha=e)}}
137
- function Ag(a,b,c,d){var e=0;if(a.ga&&""!==a.h){a.o&&Bg(a,a.o);a.s&&Cg(a,a.s);var f=a.ga,g=a.f,h=a.Na;h?(h.font!=f.font&&(h.font=g.font=f.font),h.textAlign!=f.textAlign&&(h.textAlign=g.textAlign=f.textAlign),h.textBaseline!=f.textBaseline&&(h.textBaseline=g.textBaseline=f.textBaseline)):(g.font=f.font,g.textAlign=f.textAlign,g.textBaseline=f.textBaseline,a.Na={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline});console.assert(0===e,"offset should be 0");console.assert(c==b.length,"end should be equal to the length of flatCoordinates");
138
- b=ec(b,e,c,d,a.A,a.ra);f=a.f;g=a.Za;for(a.Ya&&(g+=a.ab);e<c;e+=d){var h=b[e]+a.Wa,l=b[e+1]+a.Xa;if(0!==g||1!=a.S){var m=mg(a.$a,h,l,a.S,a.S,g,-h,-l);f.setTransform.apply(f,m)}a.s&&f.strokeText(a.h,h,l);a.o&&f.fillText(a.h,h,l)}0===g&&1==a.S||f.setTransform(1,0,0,1,0,0)}}function Dg(a,b,c,d,e,f){var g=a.f;a=ec(b,c,d,e,a.A,a.ra);g.moveTo(a[0],a[1]);b=a.length;f&&(b-=2);for(c=2;c<b;c+=2)g.lineTo(a[c],a[c+1]);f&&g.closePath();return d}
139
- function Eg(a,b,c,d,e){var f,g;f=0;for(g=d.length;f<g;++f)c=Dg(a,b,c,d[f],e,!0);return c}k=yg.prototype;k.Jb=function(a){if(Db(this.g,a.u())){if(this.b||this.a){this.b&&Bg(this,this.b);this.a&&Cg(this,this.a);var b;b=(b=a.c)?ec(b,0,b.length,a.j,this.A,this.ra):null;var c=b[2]-b[0],d=b[3]-b[1],c=Math.sqrt(c*c+d*d),d=this.f;d.beginPath();d.arc(b[0],b[1],c,0,2*Math.PI);this.b&&d.fill();this.a&&d.stroke()}""!==this.h&&Ag(this,a.jb(),2,2)}};k.bc=function(a){this.Ke(a.Oc(),a.ld());this.Ne(a.b());this.Re(a.md())};
140
- k.lb=function(a){var b=a.R();switch(b){case "Point":this.Gc(a);break;case "LineString":this.Cc(a);break;case "Polygon":this.Hc(a);break;case "MultiPoint":this.Ec(a);break;case "MultiLineString":this.Dc(a);break;case "MultiPolygon":this.Fc(a);break;case "GeometryCollection":a=a.M;var c,b=0;for(c=a.length;b<c;++b)this.lb(a[b]);break;case "Circle":this.Jb(a);break;default:console.assert(!1,"Unsupported geometry type: "+b)}};k.Bc=function(a,b){var c=b.a()(a);c&&Db(this.g,c.u())&&(this.bc(b),this.lb(c))};
141
- k.Gc=function(a){var b=a.c;a=a.j;this.i&&zg(this,b,b.length);""!==this.h&&Ag(this,b,b.length,a)};k.Ec=function(a){var b=a.c;a=a.j;this.i&&zg(this,b,b.length);""!==this.h&&Ag(this,b,b.length,a)};k.Cc=function(a){if(Db(this.g,a.u())){if(this.a){Cg(this,this.a);var b=this.f,c=a.c;b.beginPath();Dg(this,c,0,c.length,a.j,!1);b.stroke()}""!==this.h&&(a.Kb!=a.D&&(a.mb=a.Mb(.5,a.mb),a.Kb=a.D),Ag(this,a.mb,2,2))}};
142
- k.Dc=function(a){var b=a.u();if(Db(this.g,b)){if(this.a){Cg(this,this.a);var b=this.f,c=a.c,d=0,e=a.U,f=a.j;b.beginPath();var g,h;g=0;for(h=e.length;g<h;++g)d=Dg(this,c,d,e[g],f,!1);b.stroke()}if(""!==this.h){b=[];c=a.c;e=0;d=a.U;a=a.j;f=0;for(g=d.length;f<g;++f)h=d[f],e=Fg(c,e,h,a,.5),Sa(b,e),e=h;Ag(this,b,b.length,2)}}};
143
- k.Hc=function(a){if(Db(this.g,a.u())){if(this.a||this.b){this.b&&Bg(this,this.b);this.a&&Cg(this,this.a);var b=this.f;b.beginPath();Eg(this,Hc(a),0,a.G,a.j);this.b&&b.fill();this.a&&b.stroke()}""!==this.h&&(a=Ic(a),Ag(this,a,2,2))}};
144
- k.Fc=function(a){if(Db(this.g,a.u())){if(this.a||this.b){this.b&&Bg(this,this.b);this.a&&Cg(this,this.a);var b=this.f,c=Gg(a),d=0,e=a.b,f=a.j,g,h;b.beginPath();g=0;for(h=e.length;g<h;++g)d=Eg(this,c,d,e[g],f);this.b&&b.fill();this.a&&b.stroke()}""!==this.h&&(a=Hg(a),Ag(this,a,a.length,2))}};function Bg(a,b){var c=a.f,d=a.xa;d?d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle):(c.fillStyle=b.fillStyle,a.xa={fillStyle:b.fillStyle})}
145
- function Cg(a,b){var c=a.f,d=a.Aa;if(d){d.lineCap!=b.lineCap&&(d.lineCap=c.lineCap=b.lineCap);var e;if(e=Sd){a:{e=d.lineDash;var f=b.lineDash,g=e.length;if(g!==f.length)e=!1;else{for(var h=0;h<g;h++)if(e[h]!==f[h]){e=!1;break a}e=!0}}e=!e}e&&c.setLineDash(d.lineDash=b.lineDash);d.lineJoin!=b.lineJoin&&(d.lineJoin=c.lineJoin=b.lineJoin);d.lineWidth!=b.lineWidth&&(d.lineWidth=c.lineWidth=b.lineWidth);d.miterLimit!=b.miterLimit&&(d.miterLimit=c.miterLimit=b.miterLimit);d.strokeStyle!=b.strokeStyle&&
146
- (d.strokeStyle=c.strokeStyle=b.strokeStyle)}else c.lineCap=b.lineCap,Sd&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.Aa={lineCap:b.lineCap,lineDash:b.lineDash,lineJoin:b.lineJoin,lineWidth:b.lineWidth,miterLimit:b.miterLimit,strokeStyle:b.strokeStyle}}
147
- k.Ke=function(a,b){if(a){var c=a.nb();this.b={fillStyle:Cd(c?c:tg)}}else this.b=null;if(b){var c=b.nb(),d=b.Uc(),e=b.getLineDash(),f=b.Vc(),g=b.N-b.O+1,h=b.ad();this.a={lineCap:void 0!==d?d:"round",lineDash:e?e:ug,lineJoin:void 0!==f?f:"round",lineWidth:this.B*(void 0!==g?g:1),miterLimit:void 0!==h?h:10,strokeStyle:Cd(c?c:vg)}}else this.a=null};
148
- k.Ne=function(a){if(a){var b=a.a(),c=a.h(1),d=a.g(),e=a.i();console.assert(c,"imageImage must be truthy");this.wa=b[0];this.F=b[1];this.J=e[1];this.i=c;this.v=a.f();this.Ba=d[0];this.Oa=d[1];this.Pa=a.jd();this.Qa=a.fa();this.C=a.kd();this.Ra=a.b();this.V=e[0]}else this.i=null};
149
- k.Re=function(a){if(a){var b=a.Oc();b?(b=b.nb(),this.o={fillStyle:Cd(b?b:tg)}):this.o=null;var c=a.ld();if(c){var b=c.nb(),d=c.Uc(),e=c.getLineDash(),f=c.Vc(),g=c.N-c.O+1,c=c.ad();this.s={lineCap:void 0!==d?d:"round",lineDash:e?e:ug,lineJoin:void 0!==f?f:"round",lineWidth:void 0!==g?g:1,miterLimit:void 0!==c?c:10,strokeStyle:Cd(b?b:vg)}}else this.s=null;var b=a.pf(),d=a.qf(),e=a.rf(),f=a.jd(),g=a.fa(),c=a.kd(),h=a.md(),l=a.sf();a=a.tf();this.ga={font:void 0!==b?b:"10px sans-serif",textAlign:void 0!==
150
- l?l:"center",textBaseline:void 0!==a?a:"middle"};this.h=void 0!==h?h:"";this.Wa=void 0!==d?this.B*d:0;this.Xa=void 0!==e?this.B*e:0;this.Ya=void 0!==f?f:!1;this.Za=void 0!==g?g:0;this.S=this.B*(void 0!==c?c:1)}else this.h=""};function Ig(a){Ka.call(this);this.a=a}t(Ig,Ka);Ig.prototype.Fa=ha;Ig.prototype.f=function(a,b,c,d){a=lg(b.pixelToCoordinateTransform,a.slice());if(this.Fa(a,b,Fb,this))return c.call(d,this.a,null)};function Jg(a,b,c){return function(d,e){return Kg(a,b,d,e,function(a){c[d]||(c[d]={});c[d][a.qa.toString()]=a})}}function Lg(a,b){b.cc()&&a.postRenderFunctions.push(function(a,b,e){b=ia(a).toString();a.Ea(e.viewState.projection,e.usedTiles[b])}.bind(null,b))}
151
- function Mg(a,b){var c=b.v;void 0!==c&&("string"===typeof c?a.logos[c]="":c&&(v("string"==typeof c.href,44),v("string"==typeof c.src,45),a.logos[c.src]=c.href))}function Ng(a,b,c,d){b=ia(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],d.O<a.O&&(a.O=d.O),d.N>a.N&&(a.N=d.N),d.b<a.b&&(a.b=d.b),d.a>a.a&&(a.a=d.a)):a[b][c]=d:(a[b]={},a[b][c]=d)}
152
- function Og(a,b,c,d,e,f,g,h){var l=ia(b).toString();l in a.wantedTiles||(a.wantedTiles[l]={});var m=a.wantedTiles[l];a=a.tileQueue;var n=c.minZoom,p,q,z,w,u,G;for(G=g;G>=n;--G)for(q=fd(c,f,G,q),z=c.H(G),w=q.O;w<=q.N;++w)for(u=q.b;u<=q.a;++u)g-G<=h?(p=Pg(b,G,w,u,d,e),0==p.I()&&(m[p.getKey()]=!0,p.getKey()in a.b||a.C([p,l,kd(c,p.qa),z]))):b.oc(G,w,u,e)};function Qg(a){Ig.call(this,a);this.s=kg()}t(Qg,Ig);
153
- Qg.prototype.h=function(a,b,c){Rg(this,"precompose",c,a,void 0);var d=this.o?this.o.a():null;if(d){var e=b.extent,f=void 0!==e;if(f){var g=a.pixelRatio,h=a.size[0]*g,l=a.size[1]*g,m=a.viewState.rotation,n=vb(e),p=ub(e),q=tb(e),e=sb(e);lg(a.coordinateToPixelTransform,n);lg(a.coordinateToPixelTransform,p);lg(a.coordinateToPixelTransform,q);lg(a.coordinateToPixelTransform,e);c.save();wg(c,-m,h/2,l/2);c.beginPath();c.moveTo(n[0]*g,n[1]*g);c.lineTo(p[0]*g,p[1]*g);c.lineTo(q[0]*g,q[1]*g);c.lineTo(e[0]*
154
- g,e[1]*g);c.clip();wg(c,m,h/2,l/2)}g=this.F;h=c.globalAlpha;c.globalAlpha=b.opacity;c.drawImage(d,0,0,+d.width,+d.height,Math.round(g[4]),Math.round(g[5]),Math.round(d.width*g[0]),Math.round(d.height*g[3]));c.globalAlpha=h;f&&c.restore()}Rg(this,"postcompose",c,a,void 0)};
155
- function Rg(a,b,c,d,e){var f=a.a;if(f.hasListener(b)){var g=d.size[0]*d.pixelRatio,h=d.size[1]*d.pixelRatio,l=d.viewState.rotation;wg(c,-l,g/2,h/2);a=void 0!==e?e:Sg(a,d);f.w(new fg(b,new yg(c,d.pixelRatio,d.extent,a,d.viewState.rotation),d,c,null));wg(c,l,g/2,h/2)}}function Sg(a,b){var c=b.viewState,d=b.pixelRatio,e=d/c.resolution;return mg(a.s,d*b.size[0]/2,d*b.size[1]/2,e,-e,-c.rotation,-c.center[0]+0,-c.center[1])};var Tg,Ug=-1<navigator.userAgent.indexOf("OPR"),Vg=-1<navigator.userAgent.indexOf("Edge");Tg=!(!navigator.userAgent.match("CriOS")&&"chrome"in window&&"Google Inc."===navigator.vendor&&0==Ug&&0==Vg);function Wg(a,b,c,d){a=c-a;b=d-b;var e=Math.sqrt(a*a+b*b);return[Math.round(c+a/e),Math.round(d+b/e)]}
156
- function Xg(a,b,c,d,e,f,g,h,l,m,n){var p=Dd(Math.round(c*a),Math.round(c*b));if(0===l.length)return p.canvas;p.scale(c,c);var q=fb();l.forEach(function(a){pb(q,a.extent)});var z=Dd(Math.round(c*yb(q)/d),Math.round(c*zb(q)/d)),w=c/d;l.forEach(function(a){z.drawImage(a.image,m,m,a.image.width-2*m,a.image.height-2*m,(a.extent[0]-q[0])*w,-(a.extent[3]-q[3])*w,yb(a.extent)*w,zb(a.extent)*w)});var u=vb(g);h.f.forEach(function(a){var b=a.source,e=a.target,g=b[1][0],h=b[1][1],l=b[2][0],m=b[2][1];a=(e[0][0]-
157
- u[0])/f;var n=-(e[0][1]-u[1])/f,w=(e[1][0]-u[0])/f,O=-(e[1][1]-u[1])/f,aa=(e[2][0]-u[0])/f,da=-(e[2][1]-u[1])/f,e=b[0][0],b=b[0][1],g=g-e,h=h-b,l=l-e,m=m-b;a:{g=[[g,h,0,0,w-a],[l,m,0,0,aa-a],[0,0,g,h,O-n],[0,0,l,m,da-n]];h=g.length;for(l=0;l<h;l++)console.assert(g[l].length==h+1,"every row should have correct number of columns");for(l=0;l<h;l++){for(var m=l,ea=Math.abs(g[l][l]),X=l+1;X<h;X++){var ma=Math.abs(g[X][l]);ma>ea&&(ea=ma,m=X)}if(0===ea){g=null;break a}ea=g[m];g[m]=g[l];g[l]=ea;for(m=l+1;m<
158
- h;m++)for(ea=-g[m][l]/g[l][l],X=l;X<h+1;X++)g[m][X]=l==X?0:g[m][X]+ea*g[l][X]}l=Array(h);for(m=h-1;0<=m;m--)for(l[m]=g[m][h]/g[m][m],ea=m-1;0<=ea;ea--)g[ea][h]-=g[ea][m]*l[m];g=l}g&&(p.save(),p.beginPath(),Tg?(l=(a+w+aa)/3,m=(n+O+da)/3,h=Wg(l,m,a,n),w=Wg(l,m,w,O),aa=Wg(l,m,aa,da),p.moveTo(w[0],w[1]),p.lineTo(h[0],h[1]),p.lineTo(aa[0],aa[1])):(p.moveTo(w,O),p.lineTo(a,n),p.lineTo(aa,da)),p.clip(),p.transform(g[0],g[2],g[1],g[3],a,n),p.translate(q[0]-e,q[3]-b),p.scale(d/c,-d/c),p.drawImage(z.canvas,
159
- 0,0),p.restore())});n&&(p.save(),p.strokeStyle="black",p.lineWidth=1,h.f.forEach(function(a){var b=a.target;a=(b[0][0]-u[0])/f;var c=-(b[0][1]-u[1])/f,d=(b[1][0]-u[0])/f,e=-(b[1][1]-u[1])/f,g=(b[2][0]-u[0])/f,b=-(b[2][1]-u[1])/f;p.beginPath();p.moveTo(d,e);p.lineTo(a,c);p.lineTo(g,b);p.closePath();p.stroke()}),p.restore());return p.canvas};function Yg(a,b,c,d,e){this.h=a;this.g=b;var f={},g=bc(this.g,this.h);this.b=function(a){var b=a[0]+"/"+a[1];f[b]||(f[b]=g(a));return f[b]};this.i=d;this.s=e*e;this.f=[];this.o=!1;this.S=this.h.f&&!!d&&!!this.h.u()&&yb(d)==yb(this.h.u());this.a=this.h.u()?yb(this.h.u()):null;this.C=this.g.u()?yb(this.g.u()):null;a=vb(c);b=ub(c);d=tb(c);c=sb(c);e=this.b(a);var h=this.b(b),l=this.b(d),m=this.b(c);Zg(this,a,b,d,c,e,h,l,m,10);if(this.o){console.assert(null!==this.a);var n=Infinity;this.f.forEach(function(a){n=
160
- Math.min(n,a.source[0][0],a.source[1][0],a.source[2][0])});this.f.forEach(function(a){if(Math.max(a.source[0][0],a.source[1][0],a.source[2][0])-n>this.a/2){var b=[[a.source[0][0],a.source[0][1]],[a.source[1][0],a.source[1][1]],[a.source[2][0],a.source[2][1]]];b[0][0]-n>this.a/2&&(b[0][0]-=this.a);b[1][0]-n>this.a/2&&(b[1][0]-=this.a);b[2][0]-n>this.a/2&&(b[2][0]-=this.a);Math.max(b[0][0],b[1][0],b[2][0])-Math.min(b[0][0],b[1][0],b[2][0])<this.a/2&&(a.source=b)}},this)}f={}}
161
- function Zg(a,b,c,d,e,f,g,h,l,m){var n=eb([f,g,h,l]),p=a.a?yb(n)/a.a:null,q=a.a,z=a.h.f&&.5<p&&1>p,w=!1;if(0<m){if(a.g.b&&a.C)var u=eb([b,c,d,e]),w=w|.25<yb(u)/a.C;!z&&a.h.b&&p&&(w|=.25<p)}if(w||!a.i||Db(n,a.i)){if(!(w||isFinite(f[0])&&isFinite(f[1])&&isFinite(g[0])&&isFinite(g[1])&&isFinite(h[0])&&isFinite(h[1])&&isFinite(l[0])&&isFinite(l[1])))if(0<m)w=!0;else return;if(0<m&&(w||(n=a.b([(b[0]+d[0])/2,(b[1]+d[1])/2]),q=z?(pa(f[0],q)+pa(h[0],q))/2-pa(n[0],q):(f[0]+h[0])/2-n[0],n=(f[1]+h[1])/2-n[1],
162
- w=q*q+n*n>a.s),w)){Math.abs(b[0]-d[0])<=Math.abs(b[1]-d[1])?(z=[(c[0]+d[0])/2,(c[1]+d[1])/2],q=a.b(z),n=[(e[0]+b[0])/2,(e[1]+b[1])/2],p=a.b(n),Zg(a,b,c,z,n,f,g,q,p,m-1),Zg(a,n,z,d,e,p,q,h,l,m-1)):(z=[(b[0]+c[0])/2,(b[1]+c[1])/2],q=a.b(z),n=[(d[0]+e[0])/2,(d[1]+e[1])/2],p=a.b(n),Zg(a,b,z,n,e,f,q,p,l,m-1),Zg(a,z,c,d,n,q,g,h,p,m-1));return}if(z){if(!a.S)return;a.o=!0}a.f.push({source:[f,h,l],target:[b,d,e]});a.f.push({source:[f,g,h],target:[b,c,d]})}}
163
- function $g(a){var b=fb();a.f.forEach(function(a){a=a.source;gb(b,a[0]);gb(b,a[1]);gb(b,a[2])});return b};function ah(a){Ma.call(this);this.F=Mb(a.projection);this.i=bh(a.attributions);this.v=a.logo;this.J=void 0!==a.state?a.state:"ready";this.A=void 0!==a.wrapX?a.wrapX:!1}t(ah,Ma);function bh(a){if("string"===typeof a)return[new sd({html:a})];if(a instanceof sd)return[a];if(Array.isArray(a)){for(var b=a.length,c=Array(b),d=0;d<b;d++){var e=a[d];c[d]="string"===typeof e?new sd({html:e}):e}return c}return null}k=ah.prototype;k.Fa=ha;k.Lb=function(){return this.i};k.Ob=function(){return this.v};k.aa=function(){return this.F};
164
- k.I=function(){return this.J};k.yb=function(){this.l()};k.hc=function(a){this.i=bh(a);this.l()};function qg(a){Qg.call(this,a);this.b=Dd();this.g=[];this.i=fb();this.A=[0,0,0];this.B=kg()}t(qg,Qg);
165
- qg.prototype.h=function(a,b,c){var d=Sg(this,a);Rg(this,"precompose",c,a,d);var e=a.pixelRatio,f=a.viewState,g=f.center,h=f.projection,l=f.rotation,m=a.size,n=Math.round(e*m[0]/2),m=Math.round(e*m[1]/2),f=e/f.resolution,p=this.a,q=p.za(),z=e*q.Nb(h),w=q.ya(h),p=p.hasListener("render"),u=c,G=1,U,P,Q;if(l||p){u=this.b;U=u.canvas;var G=q.s/e,R=c.canvas.width*G;P=c.canvas.height*G;Q=Math.round(Math.sqrt(R*R+P*P));U.width!=Q?U.width=U.height=Q:u.clearRect(0,0,Q,Q);U=(Q-R)/2/G;P=(Q-P)/2/G;f*=G;n=Math.round(G*
166
- (n+U));m=Math.round(G*(m+P))}R=u.globalAlpha;u.globalAlpha=b.opacity;var fa=this.g,ba,ca=q.qb(h)&&1==b.opacity;ca||(fa.reverse(),ba=[]);var V=b.extent;if(b=void 0!==V){var O=vb(V),aa=ub(V),da=tb(V),V=sb(V);lg(a.coordinateToPixelTransform,O);lg(a.coordinateToPixelTransform,aa);lg(a.coordinateToPixelTransform,da);lg(a.coordinateToPixelTransform,V);var ea=U||0,X=P||0;u.save();var ma=u.canvas.width/2,T=u.canvas.height/2;wg(u,-l,ma,T);u.beginPath();u.moveTo(G*(O[0]*e+ea),G*(O[1]*e+X));u.lineTo(G*(aa[0]*
167
- e+ea),G*(aa[1]*e+X));u.lineTo(G*(da[0]*e+ea),G*(da[1]*e+X));u.lineTo(G*(V[0]*e+ea),G*(V[1]*e+X));u.clip();wg(u,l,ma,T)}e=0;for(O=fa.length;e<O;++e){aa=fa[e];da=aa.qa;X=ed(w,da,this.i);ma=da[0];T=sb(ed(w,nd(w,g,ma,this.A)));da=Math.round(yb(X)*f);V=Math.round(zb(X)*f);ea=Math.round((X[0]-T[0])*f/da)*da+n+Math.round((T[0]-g[0])*f);X=Math.round((T[1]-X[3])*f/V)*V+m+Math.round((g[1]-T[1])*f);if(!ca){T=[ea,X,ea+da,X+V];u.save();for(var Ea=0,be=ba.length;Ea<be;++Ea){var Fa=ba[Ea];Db(T,Fa)&&(u.beginPath(),
168
- u.moveTo(T[0],T[1]),u.lineTo(T[0],T[3]),u.lineTo(T[2],T[3]),u.lineTo(T[2],T[1]),u.moveTo(Fa[0],Fa[1]),u.lineTo(Fa[2],Fa[1]),u.lineTo(Fa[2],Fa[3]),u.lineTo(Fa[0],Fa[3]),u.closePath(),u.clip())}ba.push(T)}T=q;Ea=ma;be=T.ya(h);ma=T.s;Ea=$c(ld(be,Ea),T.B);1==ma?ma=Ea:(T=T.B,void 0===T&&(T=[0,0]),T[0]=Ea[0]*ma+.5|0,T[1]=Ea[1]*ma+.5|0,ma=T);u.drawImage(aa.ib(),z,z,ma[0],ma[1],ea,X,da,V);ca||u.restore()}b&&u.restore();p&&(h=U-n/G+n,n=P-m/G+m,g=mg(this.B,Q/2-h,Q/2-n,f,-f,-l,-g[0]+h/f,-g[1]-n/f),Rg(this,"render",
169
- u,a,g));(l||p)&&c.drawImage(u.canvas,-Math.round(U),-Math.round(P),Q/G,Q/G);u.globalAlpha=R;Rg(this,"postcompose",c,a,d)};
170
- qg.prototype.v=function(a,b){function c(a){a=a.I();return a==Oe||4==a||3==a&&!z}var d=a.pixelRatio,e=a.viewState,f=e.projection,g=this.a,h=g.za(),l=h.ya(f),e=md(l,e.resolution,0),m=l.H(e),n=a.extent;void 0!==b.extent&&(n=Cb(n,b.extent));if(xb(n))return!1;var m=id(l,n,m),p={};p[e]={};var q=Jg(h,f,p),z=g.o(),w=this.i,u=new Xc(0,0,0,0),G,U,P,Q;for(P=m.O;P<=m.N;++P)for(Q=m.b;Q<=m.a;++Q)G=Pg(h,e,P,Q,d,f),c(G)||(G=Ne(G)),c(G)?p[e][G.qa.toString()]=G:(U=dd(l,G.qa,q,u,w),U||(G=hd(l,G.qa,u,w))&&q(e+1,G));
171
- q=Object.keys(p).map(Number);q.sort(Qa);w=this.g;w.length=0;var R,u=0;for(P=q.length;u<P;++u)for(R in G=q[u],Q=p[G],Q)G=Q[R],G.I()==Oe&&w.push(G);Ng(a.usedTiles,h,e,m);Og(a,h,l,d,f,n,e,g.i());Lg(a,h);Mg(a,h);return!0};qg.prototype.f=function(a,b,c,d){var e=this.b.canvas,f=b.size,g=b.pixelRatio;e.width=f[0]*g;e.height=f[1]*g;this.h(b,Uf(this.a),this.b);a=this.b.getImageData(a[0],a[1],1,1).data;if(0<a[3])return c.call(d,this.a,a)};function ch(a,b){ng.call(this,0,b);this.g=Dd();this.a=this.g.canvas;this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";a.insertBefore(this.a,a.childNodes[0]||null);this.f=!0;this.C=kg()}t(ch,ng);
172
- function dh(a,b,c){var d=a.i,e=a.g;if(d.hasListener(b)){var f=c.extent,g=c.pixelRatio,h=c.viewState.rotation,l=c.viewState,m=c.pixelRatio/l.resolution;a=mg(a.C,a.a.width/2,a.a.height/2,m,-m,-l.rotation,-l.center[0],-l.center[1]);d.w(new fg(b,new yg(e,g,f,a,h),c,e,null))}}ch.prototype.R=function(){return"canvas"};
173
- ch.prototype.ec=function(a){if(a){var b=this.g,c=a.pixelRatio,d=Math.round(a.size[0]*c),c=Math.round(a.size[1]*c);this.a.width!=d||this.a.height!=c?(this.a.width=d,this.a.height=c):b.clearRect(0,0,d,c);var e=a.viewState.rotation,f=a.viewState,g=a.coordinateToPixelTransform,h=a.pixelToCoordinateTransform;console.assert(g,"frameState has a coordinateToPixelTransform");mg(g,a.size[0]/2,a.size[1]/2,1/f.resolution,-1/f.resolution,-f.rotation,-f.center[0],-f.center[1]);h[0]=g[0];h[1]=g[1];h[2]=g[2];h[3]=
174
- g[3];h[4]=g[4];h[5]=g[5];f=h[0]*h[3]-h[1]*h[2];v(0!==f,32);var g=h[0],l=h[1],m=h[2],n=h[3],p=h[4],q=h[5];h[0]=n/f;h[1]=-l/f;h[2]=-m/f;h[3]=g/f;h[4]=(m*q-n*p)/f;h[5]=-(g*q-l*p)/f;dh(this,"precompose",a);h=a.layerStatesArray;Ua(h);wg(b,e,d/2,c/2);f=a.viewState.resolution;g=0;for(l=h.length;g<l;++g)m=h[g],n=m.layer,n=pg(this,n),m.visible&&f>=m.minResolution&&f<m.maxResolution&&"ready"==m.We&&n.v(a,m)&&n.h(a,m,b);wg(b,-e,d/2,c/2);dh(this,"postcompose",a);this.f||(this.a.style.display="",this.f=!0);for(var z in this.b)if(!(z in
175
- a.layerStates)){a.postRenderFunctions.push(this.Ge.bind(this));break}a.postRenderFunctions.push(og)}else this.f&&(this.a.style.display="none",this.f=!1)};function eh(){this.f=0;this.b={};this.h=this.a=null}function fh(a){a.f=0;a.b={};a.a=null;a.h=null}eh.prototype.get=function(a){a=this.b[a];v(void 0!==a,15);if(a===this.h)return a.Va;a===this.a?(this.a=this.a.oa,this.a.La=null):(a.oa.La=a.La,a.La.oa=a.oa);a.oa=null;a.La=this.h;this.h=this.h.oa=a;return a.Va};function gh(a,b,c){a.get(b);a.b[b].Va=c}
176
- eh.prototype.set=function(a,b){console.assert(!(a in{}),'key is not a standard property of objects (e.g. "__proto__")');v(!(a in this.b),16);var c={Ka:a,oa:null,La:this.h,Va:b};this.h?this.h.oa=c:this.a=c;this.h=c;this.b[a]=c;++this.f};var hh=["canvas","webgl"];
177
- function K(a){Ma.call(this);var b=ih(a);this.Ya=void 0!==a.loadTilesWhileAnimating?a.loadTilesWhileAnimating:!1;this.Za=void 0!==a.loadTilesWhileInteracting?a.loadTilesWhileInteracting:!1;this.ab=void 0!==a.pixelRatio?a.pixelRatio:Rd;this.$a=b.logos;this.Aa=function(){this.g=void 0;this.He.call(this,Date.now())}.bind(this);this.Wa=kg();this.pc=kg();this.Xa=0;this.b=null;this.Qa=fb();this.A=this.ga=null;this.a=document.createElement("DIV");this.a.className="ol-viewport"+(Ud?" ol-touch":"");this.a.style.position=
178
- "relative";this.a.style.overflow="hidden";this.a.style.width="100%";this.a.style.height="100%";this.a.style.msTouchAction="none";this.a.style.touchAction="none";this.J=document.createElement("DIV");this.J.className="ol-overlaycontainer";this.a.appendChild(this.J);this.F=document.createElement("DIV");this.F.className="ol-overlaycontainer-stopevent";a=["click","dblclick","mousedown","touchstart","mspointerdown",He,"mousewheel","wheel"];for(var c=0,d=a.length;c<d;++c)y(this.F,a[c],Ia);this.a.appendChild(this.F);
179
- this.Oa=new ze(this);for(var e in Ke)y(this.Oa,Ke[e],this.Ub,this);this.Ba=b.keyboardEventTarget;this.v=null;y(this.a,"wheel",this.Ja,this);y(this.a,"mousewheel",this.Ja,this);this.o=b.controls;this.i=b.interactions;this.s=b.overlays;this.zb={};this.B=new b.Je(this.a,this);this.xa=null;this.V=[];this.Pa=[];this.Ra=new Se(this.nd.bind(this),this.Ed.bind(this));this.qc={};y(this,Oa(jh),this.td,this);y(this,Oa(kh),this.Fd,this);y(this,Oa(lh),this.Bd,this);y(this,Oa(mh),this.Dd,this);this.P(b.values);
180
- vd(this.o,function(a){a.setMap(this)},this);y(this.o,xd,function(a){a.element.setMap(this)},this);y(this.o,zd,function(a){a.element.setMap(null)},this);vd(this.i,function(a){a.setMap(this)},this);y(this.i,xd,function(a){a.element.setMap(this)},this);y(this.i,zd,function(a){a.element.setMap(null)},this);vd(this.s,this.Eb,this);y(this.s,xd,function(a){this.Eb(a.element)},this);y(this.s,zd,function(a){var b=a.element.Qc();void 0!==b&&delete this.zb[b.toString()];a.element.setMap(null)},this)}t(K,Ma);
181
- k=K.prototype;k.rc=function(a){this.o.push(a)};k.sc=function(a){this.i.push(a)};k.tc=function(a){this.Ga().get(Wf).push(a)};k.uc=function(a){this.s.push(a)};k.Eb=function(a){var b=a.Qc();void 0!==b&&(this.zb[b.toString()]=a);a.setMap(this)};k.ja=function(a){this.render();Array.prototype.push.apply(this.V,arguments)};
182
- k.T=function(){Ga(this.Oa);Ga(this.B);Ca(this.a,"wheel",this.Ja,this);Ca(this.a,"mousewheel",this.Ja,this);void 0!==this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0);this.g&&(cancelAnimationFrame(this.g),this.g=void 0);this.Xb(null);Ma.prototype.T.call(this)};k.Jc=function(a,b,c,d,e){if(this.b)return a=this.sa(a),this.B.Fa(a,this.b,b,void 0!==c?c:null,void 0!==d?d:Fb,void 0!==e?e:null)};
183
- k.$d=function(a,b,c,d,e){if(this.b){a:{var f=this.B,g=this.b;c=void 0!==c?c:null;d=void 0!==d?d:Fb;e=void 0!==e?e:null;var h,l=g.viewState.resolution,m=g.layerStatesArray,n;for(n=m.length-1;0<=n;--n){h=m[n];var p=h.layer;if(h.visible&&l>=h.minResolution&&l<h.maxResolution&&d.call(e,p)&&(h=pg(f,p).f(a,g,b,c))){a=h;break a}}a=void 0}return a}};k.Hd=function(a,b,c){if(!this.b)return!1;a=this.sa(a);var d=this.B;return void 0!==d.Fa(a,this.b,Fb,d,void 0!==b?b:Fb,void 0!==c?c:null)};k.Nc=function(a){return this.sa(this.ob(a))};
184
- k.ob=function(a){var b=this.a.getBoundingClientRect();a=a.changedTouches?a.changedTouches[0]:a;return[a.clientX-b.left,a.clientY-b.top]};k.sb=function(){return this.get(mh)};k.tb=function(){var a=this.sb();return void 0!==a?"string"===typeof a?document.getElementById(a):a:null};k.sa=function(a){var b=this.b;return b?lg(b.pixelToCoordinateTransform,a.slice()):null};k.Mc=function(){return this.o};k.cd=function(){return this.s};k.bd=function(a){a=this.zb[a.toString()];return void 0!==a?a:null};
185
- k.Rc=function(){return this.i};k.Ga=function(){return this.get(jh)};k.ae=function(){return this.Ga().get(Wf)};k.fb=function(a){var b=this.b;return b?lg(b.coordinateToPixelTransform,a.slice(0,2)):null};k.hb=function(){return this.get(lh)};k.K=function(){return this.get(kh)};k.pd=function(){return this.a};k.nd=function(a,b,c,d){var e=this.b;if(!(e&&b in e.wantedTiles&&e.wantedTiles[b][a.getKey()]))return Infinity;a=c[0]-e.focus[0];c=c[1]-e.focus[1];return 65536*Math.log(d)+Math.sqrt(a*a+c*c)/d};
186
- k.Ja=function(a,b){var c=new xe(b||a.type,this,a);this.Ub(c)};k.Ub=function(a){if(this.b){this.xa=a.coordinate;a.frameState=this.b;var b=this.i.a,c;if(!1!==this.w(a))for(c=b.length-1;0<=c;c--){var d=b[c];if(d.get("active")&&!d.handleEvent(a))break}}};
187
- k.Ad=function(){var a=this.b,b=this.Ra;if(0!==b.a.length){var c=16,d=c;if(a){var e=a.viewHints;e[0]&&(c=this.Ya?8:0,d=2);e[1]&&(c=this.Za?8:0,d=2)}if(b.f<c){var e=b.S,f=b.a,g=b.g,h=0,l=f.length,m,n,p;for(n=0;n<l;++n)m=f[n],p=e(m),Infinity==p?delete b.b[b.i(m)]:(g[h]=p,f[h++]=m);f.length=h;g.length=h;for(e=(b.a.length>>1)-1;0<=e;e--)Re(b,e);for(e=0;b.f<c&&e<d&&0<b.a.length;)f=b,h=f.a,console.assert(0<h.length,"must have elements in order to be able to dequeue"),l=f.g,g=h[0],1==h.length?(h.length=0,
188
- l.length=0):(h[0]=h.pop(),l[0]=l.pop(),Re(f,0)),h=f.i(g),console.assert(h in f.b,"key %s is not listed as queued",h),delete f.b[h],f=g[0],g=f.getKey(),0!==f.I()||g in b.h||(b.h[g]=!0,++b.f,++e,f.vb()),console.assert(Object.keys(b.h).length===b.f)}}b=this.Pa;d=0;for(c=b.length;d<c;++d)b[d](this,a);b.length=0};k.Bd=function(){this.render()};
189
- k.Dd=function(){var a;this.sb()&&(a=this.tb(),console.assert(null!==a,"expects a non-null value for targetElement"));if(this.v){for(var b=0,c=this.v.length;b<c;++b)x(this.v[b]);this.v=null}a?(a.appendChild(this.a),a=this.Ba?this.Ba:a,this.v=[y(a,"keydown",this.Ja,this),y(a,"keypress",this.Ja,this)],this.f||(this.f=this.Db.bind(this),window.addEventListener("resize",this.f,!1))):(Ed(this.a),void 0!==this.f&&(window.removeEventListener("resize",this.f,!1),this.f=void 0));this.Db()};k.Ed=function(){this.render()};
190
- k.Gd=function(){this.render()};k.Fd=function(){this.ga&&(x(this.ga),this.ga=null);var a=this.K();a&&(this.ga=y(a,"propertychange",this.Gd,this));this.render()};k.td=function(){this.A&&(this.A.forEach(x),this.A=null);var a=this.Ga();a&&(this.A=[y(a,"propertychange",this.render,this),y(a,"change",this.render,this)]);this.render()};k.Ie=function(){this.g&&cancelAnimationFrame(this.g);this.Aa()};k.render=function(){void 0===this.g&&(this.g=requestAnimationFrame(this.Aa))};
191
- k.Ce=function(a){return yd(this.o,a)};k.De=function(a){return yd(this.i,a)};k.Ee=function(a){return yd(this.Ga().get(Wf),a)};k.Fe=function(a){return yd(this.s,a)};
192
- k.He=function(a){var b,c,d,e=this.hb(),f=this.K(),g=fb(),h=null;if(void 0!==e&&0<e[0]&&0<e[1]&&f&&Pc(f)){b=this.b?this.b.viewHints:void 0;void 0!==b?(b[0]=f.a[0],b[1]=f.a[1],h=b):h=f.a.slice();var l=this.Ga().pb(),m={};b=0;for(c=l.length;b<c;++b)m[ia(l[b].layer)]=l[b];d=f.I();h={animate:!1,attributions:{},coordinateToPixelTransform:this.Wa,extent:g,focus:this.xa?this.xa:d.center,index:this.Xa++,layerStates:m,layerStatesArray:l,logos:ua({},this.$a),pixelRatio:this.ab,pixelToCoordinateTransform:this.pc,
193
- postRenderFunctions:[],size:e,skippedFeatureUids:this.qc,tileQueue:this.Ra,time:a,usedTiles:{},viewState:d,viewHints:h,wantedTiles:{}}}if(h){a=this.V;b=e=0;for(c=a.length;b<c;++b)f=a[b],f(this,h)&&(a[e++]=f);a.length=e;h.extent=Bb(d.center,d.resolution,d.rotation,h.size,g)}this.b=h;this.B.ec(h);h&&(h.animate&&this.render(),Array.prototype.push.apply(this.Pa,h.postRenderFunctions),0===this.V.length&&!h.viewHints[0]&&!h.viewHints[1]&&!ob(h.extent,this.Qa)&&(this.w(new Fd("moveend",this,h)),g=h.extent,
194
- b=this.Qa))&&(b[0]=g[0],b[1]=g[1],b[2]=g[2],b[3]=g[3]);this.w(new Fd("postrender",this,h));setTimeout(this.Ad.bind(this),0)};k.Oe=function(a){this.set(jh,a)};k.Ab=function(a){this.set(lh,a)};k.Xb=function(a){this.set(mh,a)};k.Se=function(a){this.set(kh,a)};
195
- k.Db=function(){var a=this.tb();if(a){var b=getComputedStyle(a);this.Ab([a.offsetWidth-parseFloat(b.borderLeftWidth)-parseFloat(b.paddingLeft)-parseFloat(b.paddingRight)-parseFloat(b.borderRightWidth),a.offsetHeight-parseFloat(b.borderTopWidth)-parseFloat(b.paddingTop)-parseFloat(b.paddingBottom)-parseFloat(b.borderBottomWidth)])}else this.Ab(void 0)};
196
- function ih(a){var b=null;void 0!==a.keyboardEventTarget&&(b="string"===typeof a.keyboardEventTarget?document.getElementById(a.keyboardEventTarget):a.keyboardEventTarget);var c={},d={};if(void 0===a.logo||"boolean"===typeof a.logo&&a.logo)d["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]=
197
- "http://openlayers.org/";else{var e=a.logo;"string"===typeof e?d[e]="":e instanceof HTMLElement?d[ia(e).toString()]=e:e&&(v("string"==typeof e.href,44),v("string"==typeof e.src,45),d[e.src]=e.href)}e=a.layers instanceof Vf?a.layers:new Vf({layers:a.layers});c[jh]=e;c[mh]=a.target;c[kh]=void 0!==a.view?a.view:new I;var e=ng,f;void 0!==a.renderer?(Array.isArray(a.renderer)?f=a.renderer:"string"===typeof a.renderer?f=[a.renderer]:v(!1,46),0<=f.indexOf("dom")&&(console.assert(!1,"The DOM render has been removed"),
198
- f=f.concat(hh))):f=hh;var g,h;g=0;for(h=f.length;g<h;++g)if("canvas"==f[g]&&Td){e=ch;break}void 0!==a.controls?Array.isArray(a.controls)?f=new td(a.controls.slice()):(v(a.controls instanceof td,47),f=a.controls):(f={},g=new td,(void 0!==f.zoom?f.zoom:1)&&g.push(new Ld(f.zoomOptions)),(void 0!==f.rotate?f.rotate:1)&&g.push(new Jd(f.rotateOptions)),(void 0!==f.attribution?f.attribution:1)&&g.push(new Hd(f.attributionOptions)),f=g);if(void 0!==a.interactions)Array.isArray(a.interactions)?g=new td(a.interactions.slice()):
199
- (v(a.interactions instanceof td,48),g=a.interactions);else{g={};h=new td;var l=new Te;(void 0!==g.altShiftDragRotate?g.altShiftDragRotate:1)&&h.push(new of);(void 0!==g.doubleClickZoom?g.doubleClickZoom:1)&&h.push(new Ze({delta:g.zoomDelta,duration:g.zoomDuration}));(void 0!==g.dragPan?g.dragPan:1)&&h.push(new kf({kinetic:l}));(void 0!==g.pinchRotate?g.pinchRotate:1)&&h.push(new Lf);(void 0!==g.pinchZoom?g.pinchZoom:1)&&h.push(new Pf({duration:g.zoomDuration}));if(void 0!==g.keyboard?g.keyboard:1)h.push(new Ff),
200
- h.push(new Hf({delta:g.zoomDelta,duration:g.zoomDuration}));(void 0!==g.mouseWheelZoom?g.mouseWheelZoom:1)&&h.push(new Jf({duration:g.zoomDuration}));(void 0!==g.shiftDragZoom?g.shiftDragZoom:1)&&h.push(new Ef({duration:g.zoomDuration}));g=h}void 0!==a.overlays?Array.isArray(a.overlays)?a=new td(a.overlays.slice()):(v(a.overlays instanceof td,49),a=a.overlays):a=new td;return{controls:f,interactions:g,keyboardEventTarget:b,logos:d,overlays:a,Je:e,values:c}}
201
- var jh="layergroup",lh="size",mh="target",kh="view";eg();function Fg(a,b,c,d,e,f){console.assert(0<=e&&1>=e,"fraction should be in between 0 and 1");var g=NaN,h=NaN,l=(c-b)/d;if(0===l)console.assert(!1,"n cannot be 0");else if(1==l)g=a[b],h=a[b+1];else if(2==l)g=(1-e)*a[b]+e*a[b+d],h=(1-e)*a[b+1]+e*a[b+d+1];else{var h=a[b],l=a[b+1],m=0,g=[0],n;for(n=b+d;n<c;n+=d){var p=a[n],q=a[n+1],m=m+Math.sqrt((p-h)*(p-h)+(q-l)*(q-l));g.push(m);h=p;l=q}c=e*m;l=0;m=g.length;for(n=!1;l<m;)e=l+(m-l>>1),h=+Qa(g[e],c),0>h?l=e+1:(m=e,n=!h);e=n?l:~l;0>e?(c=(c-g[-e-2])/(g[-e-
202
- 1]-g[-e-2]),b+=(-e-2)*d,g=qa(a[b],a[b+d],c),h=qa(a[b+1],a[b+d+1],c)):(g=a[b+e*d],h=a[b+e*d+1])}return f?(f[0]=g,f[1]=h,f):[g,h]}
203
- function nh(a,b,c,d,e,f){if(c==b)return null;if(e<a[b+d-1])return f?(c=a.slice(b,b+d),c[d-1]=e,c):null;if(a[c-1]<e)return f?(c=a.slice(c-d,c),c[d-1]=e,c):null;if(e==a[b+d-1])return a.slice(b,b+d);b/=d;for(c/=d;b<c;)f=b+c>>1,e<a[(f+1)*d-1]?c=f:b=f+1;c=a[b*d-1];if(e==c)return a.slice((b-1)*d,(b-1)*d+d);f=a[(b+1)*d-1];console.assert(c<e,"m0 should be less than m");console.assert(e<=f,"m should be less than or equal to m1");f=(e-c)/(f-c);c=[];var g;for(g=0;g<d-1;++g)c.push(qa(a[(b-1)*d+g],a[b*d+g],f));
204
- c.push(e);console.assert(c.length==d,"length of coordinate array should match stride");return c}function oh(a,b,c,d,e,f){var g=0;if(f)return nh(a,g,b[b.length-1],c,d,e);if(d<a[c-1])return e?(a=a.slice(0,c),a[c-1]=d,a):null;if(a[a.length-1]<d)return e?(a=a.slice(a.length-c),a[c-1]=d,a):null;e=0;for(f=b.length;e<f;++e){var h=b[e];if(g!=h){if(d<a[g+c-1])return null;if(d<=a[h-1])return nh(a,g,h,c,d,!1);g=h}}console.assert(!1,"ol.geom.flat.lineStringsCoordinateAtM should have returned");return null};function L(a,b){C.call(this);this.mb=null;this.b=this.i=this.Kb=-1;this.L(a,b)}t(L,C);k=L.prototype;k.vc=function(a){console.assert(a.length==this.j,"length of coordinate array should match stride");this.c?Sa(this.c,a):this.c=a.slice();this.l()};k.clone=function(){var a=new L(null);D(a,this.a,this.c.slice());a.l();return a};
205
- k.na=function(a,b,c,d){if(d<hb(this.u(),a,b))return d;this.b!=this.D&&(this.i=Math.sqrt(kc(this.c,0,this.c.length,this.j,0)),this.b=this.D);return mc(this.c,0,this.c.length,this.j,this.i,!1,a,b,c,d)};k.Kc=function(a,b){return zc(this.c,0,this.c.length,this.j,a,b)};k.ge=function(a,b){return"XYM"!=this.a&&"XYZM"!=this.a?null:nh(this.c,0,this.c.length,this.j,a,void 0!==b?b:!1)};k.ha=function(){return rc(this.c,0,this.c.length,this.j)};k.Mb=function(a,b){return Fg(this.c,0,this.c.length,this.j,a,b)};
206
- k.he=function(){var a=this.c,b=this.j,c=a[0],d=a[1],e=0,f;for(f=0+b;f<this.c.length;f+=b)var g=a[f],h=a[f+1],e=e+Math.sqrt((g-c)*(g-c)+(h-d)*(h-d)),c=g,d=h;return e};k.Ia=function(a){var b=[];b.length=tc(this.c,0,this.c.length,this.j,a,b,0);a=new L(null);D(a,"XY",b);a.l();return a};k.R=function(){return"LineString"};k.ca=function(a){return Ac(this.c,0,this.c.length,this.j,a)};k.L=function(a,b){a?(gc(this,b,a,1),this.c||(this.c=[]),this.c.length=pc(this.c,0,a,this.j)):D(this,"XY",null);this.l()};function M(a,b){C.call(this);this.U=[];this.b=this.i=-1;this.L(a,b)}t(M,C);k=M.prototype;k.wc=function(a){console.assert(a.a==this.a,"layout of lineString should match the layout");this.c?Sa(this.c,a.c.slice()):this.c=a.c.slice();this.U.push(this.c.length);this.l()};k.clone=function(){var a=new M(null);ph(a,this.a,this.c.slice(),this.U.slice());return a};
207
- k.na=function(a,b,c,d){if(d<hb(this.u(),a,b))return d;this.b!=this.D&&(this.i=Math.sqrt(lc(this.c,0,this.U,this.j,0)),this.b=this.D);return nc(this.c,0,this.U,this.j,this.i,!1,a,b,c,d)};k.je=function(a,b,c){return"XYM"!=this.a&&"XYZM"!=this.a||0===this.c.length?null:oh(this.c,this.U,this.j,a,void 0!==b?b:!1,void 0!==c?c:!1)};k.ha=function(){return sc(this.c,0,this.U,this.j)};
208
- k.Wc=function(a){console.assert(0<=a&&a<this.U.length,"index should be in between 0 and length of the this.ends_ array");if(0>a||this.U.length<=a)return null;var b=new L(null);D(b,this.a,this.c.slice(0===a?0:this.U[a-1],this.U[a]));b.l();return b};k.Xc=function(){var a=this.c,b=this.U,c=this.a,d=[],e=0,f,g;f=0;for(g=b.length;f<g;++f){var h=b[f],l=new L(null),m=l;D(m,c,a.slice(e,h));m.l();d.push(l);e=h}return d};
209
- k.Ia=function(a){var b=[],c=[],d=this.c,e=this.U,f=this.j,g=0,h=0,l,m;l=0;for(m=e.length;l<m;++l){var n=e[l],h=tc(d,g,n,f,a,b,h);c.push(h);g=n}b.length=h;a=new M(null);ph(a,"XY",b,c);return a};k.R=function(){return"MultiLineString"};k.ca=function(a){a:{var b=this.c,c=this.U,d=this.j,e=0,f,g;f=0;for(g=c.length;f<g;++f){if(Ac(b,e,c[f],d,a)){a=!0;break a}e=c[f]}a=!1}return a};
210
- k.L=function(a,b){if(a){gc(this,b,a,2);this.c||(this.c=[]);var c=qc(this.c,0,a,this.j,this.U);this.c.length=0===c.length?0:c[c.length-1];this.l()}else ph(this,"XY",null,this.U)};function ph(a,b,c,d){c?0===d.length?console.assert(0===c.length,"flatCoordinates should be an empty array"):console.assert(c.length==d[d.length-1],"length of flatCoordinates array should match the last value of ends"):console.assert(d&&0===d.length,"ends must be truthy and ends.length should be 0");D(a,b,c);a.U=d;a.l()};function N(a,b){C.call(this);this.L(a,b)}t(N,C);k=N.prototype;k.yc=function(a){console.assert(a.a==this.a,"the layout of point should match layout");this.c?Sa(this.c,a.c):this.c=a.c.slice();this.l()};k.clone=function(){var a=new N(null);D(a,this.a,this.c.slice());a.l();return a};k.na=function(a,b,c,d){if(d<hb(this.u(),a,b))return d;var e=this.c,f=this.j,g,h,l;g=0;for(h=e.length;g<h;g+=f)if(l=oa(a,b,e[g],e[g+1]),l<d){d=l;for(l=0;l<f;++l)c[l]=e[g+l];c.length=f}return d};
211
- k.ha=function(){return rc(this.c,0,this.c.length,this.j)};k.dd=function(a){var b=this.c?this.c.length/this.j:0;console.assert(0<=a&&a<b,"index should be in between 0 and n");if(0>a||b<=a)return null;b=new F(null);D(b,this.a,this.c.slice(a*this.j,(a+1)*this.j));b.l();return b};k.fd=function(){var a=this.c,b=this.a,c=this.j,d=[],e,f;e=0;for(f=a.length;e<f;e+=c){var g=new F(null),h=g;D(h,b,a.slice(e,e+c));h.l();d.push(g)}return d};k.R=function(){return"MultiPoint"};
212
- k.ca=function(a){var b=this.c,c=this.j,d,e,f,g;d=0;for(e=b.length;d<e;d+=c)if(f=b[d],g=b[d+1],jb(a,f,g))return!0;return!1};k.L=function(a,b){a?(gc(this,b,a,1),this.c||(this.c=[]),this.c.length=pc(this.c,0,a,this.j)):D(this,"XY",null);this.l()};function S(a,b){C.call(this);this.b=[];this.B=-1;this.A=null;this.V=this.F=this.J=-1;this.i=null;this.L(a,b)}t(S,C);k=S.prototype;k.zc=function(a){console.assert(a.a==this.a,"layout of polygon should match layout");if(this.c){var b=this.c.length;Sa(this.c,a.c);a=a.G.slice();var c,d;c=0;for(d=a.length;c<d;++c)a[c]+=b}else this.c=a.c.slice(),a=a.G.slice(),this.b.push();this.b.push(a);this.l()};
213
- k.clone=function(){for(var a=new S(null),b=this.b.length,c=Array(b),d=0;d<b;++d)c[d]=this.b[d].slice();qh(a,this.a,this.c.slice(),c);return a};k.na=function(a,b,c,d){if(d<hb(this.u(),a,b))return d;if(this.F!=this.D){var e=this.b,f=0,g=0,h,l;h=0;for(l=e.length;h<l;++h)var m=e[h],g=lc(this.c,f,m,this.j,g),f=m[m.length-1];this.J=Math.sqrt(g);this.F=this.D}e=Gg(this);f=this.b;g=this.j;h=this.J;l=0;var m=[NaN,NaN],n,p;n=0;for(p=f.length;n<p;++n){var q=f[n];d=nc(e,l,q,g,h,!0,a,b,c,d,m);l=q[q.length-1]}return d};
214
- k.Ca=function(a,b){var c;a:{c=Gg(this);var d=this.b,e=this.j,f=0;console.assert(0<d.length,"endss should not be an empty array");if(0!==d.length){var g,h;g=0;for(h=d.length;g<h;++g){var l=d[g];if(xc(c,f,l,e,a,b)){c=!0;break a}f=l[l.length-1]}}c=!1}return c};k.ke=function(){var a=Gg(this),b=this.b,c=0,d=0,e,f;e=0;for(f=b.length;e<f;++e)var g=b[e],d=d+ic(a,c,g,this.j),c=g[g.length-1];return d};
215
- k.ha=function(a){var b;void 0!==a?(b=Gg(this).slice(),Fc(b,this.b,this.j,a)):b=this.c;a=b;b=this.b;var c=this.j,d=0,e=[],f=0,g,h;g=0;for(h=b.length;g<h;++g){var l=b[g];e[f++]=sc(a,d,l,c,e[f]);d=l[l.length-1]}e.length=f;return e};
216
- function Hg(a){if(a.B!=a.D){var b=a.c,c=a.b,d=a.j,e=0,f=[],g,h,l;g=0;for(h=c.length;g<h;++g){var m=c[g];l=b;var n=m[0],p=d,q=nb(void 0);l=qb(q,l,e,n,p);f.push((l[0]+l[2])/2,(l[1]+l[3])/2);e=m[m.length-1]}b=Gg(a);c=a.b;d=a.j;g=0;console.assert(2*c.length==f.length,"endss.length times 2 should be flatCenters.length");h=[];m=0;for(l=c.length;m<l;++m)e=c[m],h=yc(b,g,e,d,f,2*m,h),g=e[e.length-1];a.A=h;a.B=a.D}return a.A}k.Tc=function(){var a=new N(null),b=Hg(this).slice();D(a,"XY",b);a.l();return a};
217
- function Gg(a){if(a.V!=a.D){var b=a.c,c;a:{c=a.b;var d,e;d=0;for(e=c.length;d<e;++d)if(!Dc(b,c[d],a.j,void 0)){c=!1;break a}c=!0}c?a.i=b:(a.i=b.slice(),a.i.length=Fc(a.i,a.b,a.j));a.V=a.D}return a.i}k.Ia=function(a){var b=[],c=[],d=this.c,e=this.b,f=this.j;a=Math.sqrt(a);var g=0,h=0,l,m;l=0;for(m=e.length;l<m;++l){var n=e[l],p=[],h=uc(d,g,n,f,a,b,h,p);c.push(p);g=n[n.length-1]}b.length=h;d=new S(null);qh(d,"XY",b,c);return d};
218
- k.gd=function(a){console.assert(0<=a&&a<this.b.length,"index should be in between 0 and the length of this.endss_");if(0>a||this.b.length<=a)return null;var b;0===a?b=0:(b=this.b[a-1],b=b[b.length-1]);a=this.b[a].slice();var c=a[a.length-1];if(0!==b){var d,e;d=0;for(e=a.length;d<e;++d)a[d]-=b}d=new H(null);Gc(d,this.a,this.c.slice(b,c),a);return d};
219
- k.hd=function(){var a=this.a,b=this.c,c=this.b,d=[],e=0,f,g,h,l;f=0;for(g=c.length;f<g;++f){var m=c[f].slice(),n=m[m.length-1];if(0!==e)for(h=0,l=m.length;h<l;++h)m[h]-=e;h=new H(null);Gc(h,a,b.slice(e,n),m);d.push(h);e=n}return d};k.R=function(){return"MultiPolygon"};k.ca=function(a){a:{var b=Gg(this),c=this.b,d=this.j,e=0;console.assert(0<c.length,"endss should not be an empty array");var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];if(Bc(b,e,h,d,a)){a=!0;break a}e=h[h.length-1]}a=!1}return a};
220
- k.L=function(a,b){if(a){gc(this,b,a,3);this.c||(this.c=[]);var c=this.c,d=this.j,e=this.b,f=0,e=e?e:[],g=0,h,l;h=0;for(l=a.length;h<l;++h)f=qc(c,f,a[h],d,e[g]),e[g++]=f,f=f[f.length-1];e.length=g;0===e.length?this.c.length=0:(c=e[e.length-1],this.c.length=0===c.length?0:c[c.length-1]);this.l()}else qh(this,"XY",null,this.b)};
221
- function qh(a,b,c,d){console.assert(d,"endss must be truthy");if(c&&0!==c.length){console.assert(0<d.length,"endss cannot be an empty array");var e=d[d.length-1];console.assert(c.length==e[e.length-1],"the length of flatCoordinates should be the last value of ends")}else console.assert(0===d.length,"the length of endss should be 0");D(a,b,c);a.b=d;a.l()};function W(a){B.call(this);this.M=a?a:null;rh(this)}t(W,B);function sh(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(a[c].clone());return b}function th(a){var b,c;if(a.M)for(b=0,c=a.M.length;b<c;++b)Ca(a.M[b],"change",a.l,a)}function rh(a){var b,c;if(a.M)for(b=0,c=a.M.length;b<c;++b)y(a.M[b],"change",a.l,a)}k=W.prototype;k.clone=function(){var a=new W(null);a.jc(this.M);return a};
222
- k.na=function(a,b,c,d){if(d<hb(this.u(),a,b))return d;var e=this.M,f,g;f=0;for(g=e.length;f<g;++f)d=e[f].na(a,b,c,d);return d};k.Ca=function(a,b){var c=this.M,d,e;d=0;for(e=c.length;d<e;++d)if(c[d].Ca(a,b))return!0;return!1};k.bb=function(a){nb(a);for(var b=this.M,c=0,d=b.length;c<d;++c)pb(a,b[c].u());return a};k.Pc=function(){return sh(this.M)};
223
- k.rb=function(a){this.o!=this.D&&(va(this.f),this.g=0,this.o=this.D);if(0>a||0!==this.g&&a<this.g)return this;var b=a.toString();if(this.f.hasOwnProperty(b))return this.f[b];var c=[],d=this.M,e=!1,f,g;f=0;for(g=d.length;f<g;++f){var h=d[f],l=h.rb(a);c.push(l);l!==h&&(e=!0)}if(e)return a=new W(null),th(a),a.M=c,rh(a),a.l(),this.f[b]=a;this.g=a;return this};k.R=function(){return"GeometryCollection"};k.ca=function(a){var b=this.M,c,d;c=0;for(d=b.length;c<d;++c)if(b[c].ca(a))return!0;return!1};
224
- k.rotate=function(a,b){for(var c=this.M,d=0,e=c.length;d<e;++d)c[d].rotate(a,b);this.l()};k.scale=function(a,b,c){c||(c=Ab(this.u()));for(var d=this.M,e=0,f=d.length;e<f;++e)d[e].scale(a,b,c);this.l()};k.jc=function(a){a=sh(a);th(this);this.M=a;rh(this);this.l()};k.Sa=function(a){var b=this.M,c,d;c=0;for(d=b.length;c<d;++c)b[c].Sa(a);this.l()};k.translate=function(a,b){var c=this.M,d,e;d=0;for(e=c.length;d<e;++d)c[d].translate(a,b);this.l()};k.T=function(){th(this);B.prototype.T.call(this)};function Y(a,b,c){C.call(this);this.ic(a,b?b:0,c)}t(Y,C);k=Y.prototype;k.clone=function(){var a=new Y(null);D(a,this.a,this.c.slice());a.l();return a};k.na=function(a,b,c,d){var e=this.c;a-=e[0];var f=b-e[1];b=a*a+f*f;if(b<d){if(0===b)for(d=0;d<this.j;++d)c[d]=e[d];else for(d=this.xb()/Math.sqrt(b),c[0]=e[0]+d*a,c[1]=e[1]+d*f,d=2;d<this.j;++d)c[d]=e[d];c.length=this.j;return b}return d};k.Ca=function(a,b){var c=this.c,d=a-c[0],c=b-c[1];return d*d+c*c<=uh(this)};
225
- k.jb=function(){return this.c.slice(0,this.j)};k.bb=function(a){var b=this.c,c=b[this.j]-b[0];return mb(b[0]-c,b[1]-c,b[0]+c,b[1]+c,a)};k.xb=function(){return Math.sqrt(uh(this))};function uh(a){var b=a.c[a.j]-a.c[0];a=a.c[a.j+1]-a.c[1];return b*b+a*a}k.R=function(){return"Circle"};k.ca=function(a){var b=this.u();return Db(a,b)?(b=this.jb(),a[0]<=b[0]&&a[2]>=b[0]||a[1]<=b[1]&&a[3]>=b[1]?!0:rb(a,this.ia,this)):!1};
226
- k.ee=function(a){var b=this.j;console.assert(a.length==b,"center array length should match stride");var c=a.slice();c[b]=c[0]+(this.c[b]-this.c[0]);var d;for(d=1;d<b;++d)c[b+d]=a[d];D(this,this.a,c);this.l()};k.ic=function(a,b,c){if(a){gc(this,c,a,0);this.c||(this.c=[]);c=this.c;a=oc(c,a,this.j);c[a++]=c[0]+b;var d;b=1;for(d=this.j;b<d;++b)c[a++]=c[b];c.length=a}else D(this,"XY",null);this.l()};k.fe=function(a){this.c[this.j]=this.c[0]+a;this.l()};function vh(a,b,c,d,e){Le.call(this,a,b);this.f=c;this.b=new Image;null!==d&&(this.b.crossOrigin=d);this.h=null;this.g=e}t(vh,Le);k=vh.prototype;k.T=function(){1==this.state&&wh(this);this.a&&Ga(this.a);this.state=5;Me(this);Le.prototype.T.call(this)};k.ib=function(){return this.b};k.getKey=function(){return this.f};k.Yd=function(){this.state=3;wh(this);Me(this)};k.Zd=function(){this.state=this.b.naturalWidth&&this.b.naturalHeight?Oe:4;wh(this);Me(this)};
227
- k.vb=function(){if(0==this.state||3==this.state)this.state=1,Me(this),console.assert(!this.h,"this.imageListenerKeys_ should be null"),this.h=[y(this.b,"error",this.Yd,this,!0),y(this.b,"load",this.Zd,this,!0)],this.g(this,this.f)};function wh(a){a.h.forEach(x);a.h=null};function xh(a,b,c,d,e,f,g,h,l,m,n){Le.call(this,e,0);this.A=void 0!==n?n:!1;this.B=g;this.v=h;this.s=null;this.h=b;this.g=d;this.i=f?f:e;this.b=[];this.Da=null;this.f=0;f=ed(d,this.i);h=this.g.u();e=this.h.u();f=h?Cb(f,h):f;if(0===wb(f))this.state=4;else if((h=a.u())&&(e?e=Cb(e,h):e=h),h=d.H(this.i[0]),n=Ab(f),d=dc(n,c,a),h=c.getPointResolution(h,n),n=c.Ha(),void 0!==n&&(h*=n),n=a.Ha(),void 0!==n&&(h/=n),d=a.getPointResolution(h,d)/h,isFinite(d)&&0<d&&(h/=d),d=h,!isFinite(d)||0>=d)this.state=4;else if(this.o=
228
- new Yg(a,c,f,e,d*(void 0!==m?m:.5)),0===this.o.f.length)this.state=4;else if(this.f=md(b,d),c=$g(this.o),e&&(a.f?(c[1]=la(c[1],e[1],e[3]),c[3]=la(c[3],e[1],e[3])):c=Cb(c,e)),wb(c))if(a=fd(b,c,this.f),100>(a.N-a.O+1)*(a.a-a.b+1)){for(b=a.O;b<=a.N;b++)for(c=a.b;c<=a.a;c++)(m=l(this.f,b,c,g))&&this.b.push(m);0===this.b.length&&(this.state=4)}else console.assert(!1,"reasonable number of tiles is required"),this.state=3;else this.state=4}t(xh,Le);
229
- xh.prototype.T=function(){1==this.state&&(this.Da.forEach(x),this.Da=null);Le.prototype.T.call(this)};xh.prototype.ib=function(){return this.s};
230
- xh.prototype.fc=function(){var a=[];this.b.forEach(function(b){b&&b.I()==Oe&&a.push({extent:ed(this.h,b.qa),image:b.ib()})},this);this.b.length=0;if(0===a.length)this.state=3;else{var b=this.i[0],c=ld(this.g,b),d="number"===typeof c?c:c[0],c="number"===typeof c?c:c[1],b=this.g.H(b),e=this.h.H(this.f),f=ed(this.g,this.i);this.s=Xg(d,c,this.B,e,this.h.u(),b,f,this.o,a,this.v,this.A);this.state=Oe}Me(this)};
231
- xh.prototype.vb=function(){if(0==this.state){this.state=1;Me(this);var a=0;console.assert(!this.Da,"this.sourcesListenerKeys_ should be null");this.Da=[];this.b.forEach(function(b){var c=b.I();if(0==c||1==c){a++;var d;d=y(b,"change",function(){var c=b.I();if(c==Oe||3==c||4==c)x(d),a--,console.assert(0<=a,"leftToLoad should not be negative"),0===a&&(this.Da.forEach(x),this.Da=null,this.fc())},this);this.Da.push(d)}},this);this.b.forEach(function(a){0==a.I()&&a.vb()});0===a&&setTimeout(this.fc.bind(this),
232
- 0)}};function yh(a,b){var c=/\{z\}/g,d=/\{x\}/g,e=/\{y\}/g,f=/\{-y\}/g;return function(g){if(g)return a.replace(c,g[0].toString()).replace(d,g[1].toString()).replace(e,function(){return(-g[2]-1).toString()}).replace(f,function(){var a=od(b,g[0]);v(a,55);return(a.a-a.b+1+g[2]).toString()})}}function zh(a,b){for(var c=a.length,d=Array(c),e=0;e<c;++e)d[e]=yh(a[e],b);return Ah(d)}
233
- function Ah(a){console.assert(0<a.length,"Length of tile url functions should be greater than 0");return 1===a.length?a[0]:function(b,c,d){if(b)return a[pa((b[1]<<b[0])+b[2],a.length)](b,c,d)}}function Bh(){};function Ch(a){eh.call(this);this.g=void 0!==a?a:2048}t(Ch,eh);function Dh(a){return a.f>a.g}
234
- Ch.prototype.Ea=function(a){for(var b,c;Dh(this);){console.assert(this.a,"oldest must not be null");b=this.a.Va;c=b.qa[0].toString();var d;if(d=c in a)b=b.qa,d=Yc(a[c],b[1],b[2]);if(d)break;else console.assert(this.a,"oldest must not be null"),console.assert(this.h,"newest must not be null"),c=this.a,console.assert(c.Ka in this.b,"oldest is indexed in entries"),delete this.b[c.Ka],c.oa&&(c.oa.La=null),this.a=c.oa,this.a||(this.h=null),--this.f,Ga(c.Va)}};function Eh(a){ah.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state,wrapX:a.wrapX});this.V=void 0!==a.opaque?a.opaque:!1;this.s=void 0!==a.tilePixelRatio?a.tilePixelRatio:1;this.tileGrid=void 0!==a.tileGrid?a.tileGrid:null;this.a=new Ch(a.cacheSize);this.B=[0,0];this.Ka=""}t(Eh,ah);k=Eh.prototype;k.cc=function(){return Dh(this.a)};k.Ea=function(a,b){var c=this.Ta(a);c&&c.Ea(b)};
235
- function Kg(a,b,c,d,e){b=a.Ta(b);if(!b)return!1;for(var f=!0,g,h,l=d.O;l<=d.N;++l)for(var m=d.b;m<=d.a;++m)g=a.eb(c,l,m),h=!1,b.b.hasOwnProperty(g)&&(g=b.get(g),(h=g.I()===Oe)&&(h=!1!==e(g))),h||(f=!1);return f}k.Nb=function(){return 0};k.getKey=function(){return this.Ka};k.eb=function(a,b,c){return a+"/"+b+"/"+c};k.qb=function(){return this.V};k.Qb=function(){return this.tileGrid};k.ya=function(a){return this.tileGrid?this.tileGrid:pd(a)};
236
- k.Ta=function(a){var b=this.aa();return b&&!ac(b,a)?null:this.a};function Fh(a,b,c){var d=void 0!==c?c:a.aa();c=a.ya(d);if(a.A&&d.b){var e=b;b=e[0];a=kd(c,e);d=qd(d);ib(d,a)?b=e:(e=yb(d),a[0]+=e*Math.ceil((d[0]-a[0])/e),b=nd(c,a,b))}e=b[0];d=b[1];a=b[2];if(c.minZoom>e||e>c.maxZoom)c=!1;else{var f=c.u();c=(c=f?fd(c,f,e):od(c,e))?Yc(c,d,a):!0}return c?b:null}k.yb=function(){fh(this.a);this.l()};k.oc=ha;function Gh(a,b){Ha.call(this,a);this.tile=b}t(Gh,Ha);function Hh(a){Eh.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:a.state,tileGrid:a.tileGrid,tilePixelRatio:a.tilePixelRatio,wrapX:a.wrapX});this.tileLoadFunction=a.tileLoadFunction;this.tileUrlFunction=this.f?this.f.bind(this):Bh;this.urls=null;a.urls?this.Cb(a.urls):a.url&&this.Bb(a.url);a.tileUrlFunction&&this.Ua(a.tileUrlFunction)}t(Hh,Eh);k=Hh.prototype;k.Rb=function(){return this.tileLoadFunction};k.Sb=function(){return this.tileUrlFunction};
237
- k.Tb=function(){return this.urls};k.re=function(a){a=a.target;switch(a.I()){case 1:this.w(new Gh("tileloadstart",a));break;case Oe:this.w(new Gh("tileloadend",a));break;case 3:this.w(new Gh("tileloaderror",a))}};k.nc=function(a){fh(this.a);this.tileLoadFunction=a;this.l()};k.Ua=function(a,b){this.tileUrlFunction=a;"undefined"!==typeof b?this.Ka!==b&&(this.Ka=b,this.l()):this.l()};
238
- k.Bb=function(a){var b=[],c=/\{([a-z])-([a-z])\}/.exec(a);if(c){var d=c[2].charCodeAt(0),e;for(e=c[1].charCodeAt(0);e<=d;++e)b.push(a.replace(c[0],String.fromCharCode(e)))}else if(c=c=/\{(\d+)-(\d+)\}/.exec(a))for(d=parseInt(c[2],10),e=parseInt(c[1],10);e<=d;e++)b.push(a.replace(c[0],e.toString()));else b.push(a);b=this.urls=b;this.Ua(this.f?this.f.bind(this):zh(b,this.tileGrid),a)};k.Cb=function(a){this.urls=a;var b=a.join("\n");this.Ua(this.f?this.f.bind(this):zh(a,this.tileGrid),b)};
239
- k.oc=function(a,b,c){a=this.eb(a,b,c);this.a.b.hasOwnProperty(a)&&this.a.get(a)};function Ih(a){Hh.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:a.state,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction?a.tileLoadFunction:Jh,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls,wrapX:a.wrapX});this.crossOrigin=void 0!==a.crossOrigin?a.crossOrigin:null;this.tileClass=void 0!==a.tileClass?a.tileClass:vh;this.b={};this.g={};this.ga=a.reprojectionErrorThreshold;
240
- this.o=!1}t(Ih,Hh);k=Ih.prototype;k.cc=function(){if(Dh(this.a))return!0;for(var a in this.b)if(Dh(this.b[a]))return!0;return!1};k.Ea=function(a,b){var c=this.Ta(a);this.a.Ea(this.a==c?b:{});for(var d in this.b){var e=this.b[d];e.Ea(e==c?b:{})}};k.Nb=function(a){return this.aa()&&a&&ac(this.aa(),a),0};k.qb=function(a){return this.aa()&&a&&!ac(this.aa(),a)?!1:Hh.prototype.qb.call(this,a)};
241
- k.ya=function(a){var b=this.aa();return!this.tileGrid||b&&!ac(b,a)?(b=ia(a).toString(),b in this.g||(this.g[b]=pd(a)),this.g[b]):this.tileGrid};k.Ta=function(a){var b=this.aa();if(!b||ac(b,a))return this.a;a=ia(a).toString();a in this.b||(this.b[a]=new Ch);return this.b[a]};function Kh(a,b,c,d,e,f,g){b=[b,c,d];e=(c=Fh(a,b,f))?a.tileUrlFunction(c,e,f):void 0;e=new a.tileClass(b,void 0!==e?0:4,void 0!==e?e:"",a.crossOrigin,a.tileLoadFunction);e.key=g;y(e,"change",a.re,a);return e}
242
- function Pg(a,b,c,d,e,f){if(a.aa()&&f&&!ac(a.aa(),f)){e=a.Ta(f);d=[b,c,d];var g;b=a.eb.apply(a,d);e.b.hasOwnProperty(b)&&(g=e.get(b));c=a.getKey();if(g&&g.key==c)return g;var h=a.aa(),l=a.ya(h),m=a.ya(f),n=Fh(a,d,f);a=new xh(h,l,f,m,d,n,a.s,0,function(a,b,c,d){return Lh(this,a,b,c,d,h)}.bind(a),a.ga,a.o);a.key=c;g?(a.a=g,gh(e,b,a)):e.set(b,a);return a}return Lh(a,b,c,d,e,f)}
243
- function Lh(a,b,c,d,e,f){var g,h=a.eb(b,c,d),l=a.getKey();if(a.a.b.hasOwnProperty(h)){if(g=a.a.get(h),g.key!=l){var m=g;g=Kh(a,b,c,d,e,f,l);0==m.I()?g.a=m.a:g.a=m;if(g.a){b=g.a;c=g;do{if(b.I()==Oe){b.a=null;break}else 1==b.I()?c=b:0==b.I()?c.a=b.a:c=b;b=c.a}while(b)}gh(a.a,h,g)}}else g=Kh(a,b,c,d,e,f,l),a.a.set(h,g);return g}k.kc=function(a){if(this.o!=a){this.o=a;for(var b in this.b)fh(this.b[b]);this.l()}};k.mc=function(a,b){var c=Mb(a);c&&(c=ia(c).toString(),c in this.g||(this.g[c]=b))};
244
- function Jh(a,b){a.ib().src=b};function Z(a){a=a||{};var b=void 0!==a.projection?a.projection:"EPSG:3857",c;if(void 0!==a.tileGrid)c=a.tileGrid;else{c={extent:qd(b),maxZoom:a.maxZoom,minZoom:a.minZoom,tileSize:a.tileSize};var d={};ua(d,void 0!==c?c:{});void 0===d.extent&&(d.extent=Mb("EPSG:3857").u());d.resolutions=rd(d.extent,d.maxZoom,d.tileSize);delete d.maxZoom;c=new ad(d)}Ih.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,opaque:a.opaque,projection:b,reprojectionErrorThreshold:a.reprojectionErrorThreshold,
245
- tileGrid:c,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls,wrapX:void 0!==a.wrapX?a.wrapX:!0})}t(Z,Ih);r("ol.Map",K);K.prototype.addControl=K.prototype.rc;K.prototype.addInteraction=K.prototype.sc;K.prototype.addLayer=K.prototype.tc;K.prototype.addOverlay=K.prototype.uc;K.prototype.beforeRender=K.prototype.ja;K.prototype.forEachFeatureAtPixel=K.prototype.Jc;K.prototype.forEachLayerAtPixel=K.prototype.$d;K.prototype.hasFeatureAtPixel=K.prototype.Hd;K.prototype.getEventCoordinate=K.prototype.Nc;K.prototype.getEventPixel=K.prototype.ob;K.prototype.getTarget=K.prototype.sb;
246
- K.prototype.getTargetElement=K.prototype.tb;K.prototype.getCoordinateFromPixel=K.prototype.sa;K.prototype.getControls=K.prototype.Mc;K.prototype.getOverlays=K.prototype.cd;K.prototype.getOverlayById=K.prototype.bd;K.prototype.getInteractions=K.prototype.Rc;K.prototype.getLayerGroup=K.prototype.Ga;K.prototype.getLayers=K.prototype.ae;K.prototype.getPixelFromCoordinate=K.prototype.fb;K.prototype.getSize=K.prototype.hb;K.prototype.getView=K.prototype.K;K.prototype.getViewport=K.prototype.pd;
247
- K.prototype.renderSync=K.prototype.Ie;K.prototype.render=K.prototype.render;K.prototype.removeControl=K.prototype.Ce;K.prototype.removeInteraction=K.prototype.De;K.prototype.removeLayer=K.prototype.Ee;K.prototype.removeOverlay=K.prototype.Fe;K.prototype.setLayerGroup=K.prototype.Oe;K.prototype.setSize=K.prototype.Ab;K.prototype.setTarget=K.prototype.Xb;K.prototype.setView=K.prototype.Se;K.prototype.updateSize=K.prototype.Db;K.prototype.get=K.prototype.get;K.prototype.getKeys=K.prototype.da;
248
- K.prototype.getProperties=K.prototype.ba;K.prototype.set=K.prototype.set;K.prototype.setProperties=K.prototype.P;K.prototype.unset=K.prototype.ea;K.prototype.changed=K.prototype.l;K.prototype.dispatchEvent=K.prototype.w;K.prototype.getRevision=K.prototype.W;K.prototype.on=K.prototype.X;K.prototype.once=K.prototype.Y;K.prototype.un=K.prototype.Z;K.prototype.unByKey=K.prototype.$;Ka.prototype.changed=Ka.prototype.l;Ka.prototype.dispatchEvent=Ka.prototype.w;Ka.prototype.getRevision=Ka.prototype.W;
249
- Ka.prototype.on=Ka.prototype.X;Ka.prototype.once=Ka.prototype.Y;Ka.prototype.un=Ka.prototype.Z;Ka.prototype.unByKey=Ka.prototype.$;r("ol.View",I);I.prototype.constrainCenter=I.prototype.cb;I.prototype.constrainResolution=I.prototype.constrainResolution;I.prototype.constrainRotation=I.prototype.constrainRotation;I.prototype.getCenter=I.prototype.la;I.prototype.calculateExtent=I.prototype.Hb;I.prototype.getMaxResolution=I.prototype.be;I.prototype.getMinResolution=I.prototype.ce;
250
- I.prototype.getProjection=I.prototype.aa;I.prototype.getResolution=I.prototype.H;I.prototype.getResolutions=I.prototype.de;I.prototype.getRotation=I.prototype.fa;I.prototype.getZoom=I.prototype.rd;I.prototype.fit=I.prototype.Ic;I.prototype.centerOn=I.prototype.Ac;I.prototype.rotate=I.prototype.rotate;I.prototype.setCenter=I.prototype.pa;I.prototype.setResolution=I.prototype.Ma;I.prototype.setRotation=I.prototype.wb;I.prototype.setZoom=I.prototype.Ve;I.prototype.get=I.prototype.get;
251
- I.prototype.getKeys=I.prototype.da;I.prototype.getProperties=I.prototype.ba;I.prototype.set=I.prototype.set;I.prototype.setProperties=I.prototype.P;I.prototype.unset=I.prototype.ea;I.prototype.changed=I.prototype.l;I.prototype.dispatchEvent=I.prototype.w;I.prototype.getRevision=I.prototype.W;I.prototype.on=I.prototype.X;I.prototype.once=I.prototype.Y;I.prototype.un=I.prototype.Z;I.prototype.unByKey=I.prototype.$;r("ol.animation.pan",Uc);r("ol.animation.zoom",Wc);r("ol.geom.Circle",Y);
252
- Y.prototype.clone=Y.prototype.clone;Y.prototype.getCenter=Y.prototype.jb;Y.prototype.getRadius=Y.prototype.xb;Y.prototype.getType=Y.prototype.R;Y.prototype.intersectsExtent=Y.prototype.ca;Y.prototype.setCenter=Y.prototype.ee;Y.prototype.setCenterAndRadius=Y.prototype.ic;Y.prototype.setRadius=Y.prototype.fe;Y.prototype.transform=Y.prototype.transform;r("ol.geom.Geometry",B);B.prototype.getClosestPoint=B.prototype.ka;B.prototype.intersectsCoordinate=B.prototype.ia;B.prototype.getExtent=B.prototype.u;
253
- B.prototype.rotate=B.prototype.rotate;B.prototype.scale=B.prototype.scale;B.prototype.simplify=B.prototype.ma;B.prototype.transform=B.prototype.transform;r("ol.geom.GeometryCollection",W);W.prototype.clone=W.prototype.clone;W.prototype.getGeometries=W.prototype.Pc;W.prototype.getType=W.prototype.R;W.prototype.intersectsExtent=W.prototype.ca;W.prototype.setGeometries=W.prototype.jc;W.prototype.applyTransform=W.prototype.Sa;W.prototype.translate=W.prototype.translate;r("ol.geom.LinearRing",E);
254
- E.prototype.clone=E.prototype.clone;E.prototype.getArea=E.prototype.ie;E.prototype.getCoordinates=E.prototype.ha;E.prototype.getType=E.prototype.R;E.prototype.setCoordinates=E.prototype.L;r("ol.geom.LineString",L);L.prototype.appendCoordinate=L.prototype.vc;L.prototype.clone=L.prototype.clone;L.prototype.forEachSegment=L.prototype.Kc;L.prototype.getCoordinateAtM=L.prototype.ge;L.prototype.getCoordinates=L.prototype.ha;L.prototype.getCoordinateAt=L.prototype.Mb;L.prototype.getLength=L.prototype.he;
255
- L.prototype.getType=L.prototype.R;L.prototype.intersectsExtent=L.prototype.ca;L.prototype.setCoordinates=L.prototype.L;r("ol.geom.MultiLineString",M);M.prototype.appendLineString=M.prototype.wc;M.prototype.clone=M.prototype.clone;M.prototype.getCoordinateAtM=M.prototype.je;M.prototype.getCoordinates=M.prototype.ha;M.prototype.getLineString=M.prototype.Wc;M.prototype.getLineStrings=M.prototype.Xc;M.prototype.getType=M.prototype.R;M.prototype.intersectsExtent=M.prototype.ca;
256
- M.prototype.setCoordinates=M.prototype.L;r("ol.geom.MultiPoint",N);N.prototype.appendPoint=N.prototype.yc;N.prototype.clone=N.prototype.clone;N.prototype.getCoordinates=N.prototype.ha;N.prototype.getPoint=N.prototype.dd;N.prototype.getPoints=N.prototype.fd;N.prototype.getType=N.prototype.R;N.prototype.intersectsExtent=N.prototype.ca;N.prototype.setCoordinates=N.prototype.L;r("ol.geom.MultiPolygon",S);S.prototype.appendPolygon=S.prototype.zc;S.prototype.clone=S.prototype.clone;
257
- S.prototype.getArea=S.prototype.ke;S.prototype.getCoordinates=S.prototype.ha;S.prototype.getInteriorPoints=S.prototype.Tc;S.prototype.getPolygon=S.prototype.gd;S.prototype.getPolygons=S.prototype.hd;S.prototype.getType=S.prototype.R;S.prototype.intersectsExtent=S.prototype.ca;S.prototype.setCoordinates=S.prototype.L;r("ol.geom.Point",F);F.prototype.clone=F.prototype.clone;F.prototype.getCoordinates=F.prototype.ha;F.prototype.getType=F.prototype.R;F.prototype.intersectsExtent=F.prototype.ca;
258
- F.prototype.setCoordinates=F.prototype.L;r("ol.geom.Polygon",H);H.prototype.appendLinearRing=H.prototype.xc;H.prototype.clone=H.prototype.clone;H.prototype.getArea=H.prototype.le;H.prototype.getCoordinates=H.prototype.ha;H.prototype.getInteriorPoint=H.prototype.Sc;H.prototype.getLinearRingCount=H.prototype.Zc;H.prototype.getLinearRing=H.prototype.Yc;H.prototype.getLinearRings=H.prototype.$c;H.prototype.getType=H.prototype.R;H.prototype.intersectsExtent=H.prototype.ca;H.prototype.setCoordinates=H.prototype.L;
259
- r("ol.geom.Polygon.circular",function(a,b,c,d){var e=d?d:32;d=[];var f;for(f=0;f<e;++f)Sa(d,a.offset(b,c,2*Math.PI*f/e));d.push(d[0],d[1]);a=new H(null);Gc(a,"XY",d,[d.length]);return a});r("ol.geom.Polygon.fromExtent",Jc);
260
- r("ol.geom.Polygon.fromCircle",function(a,b,c){var d=b?b:32,e=a.j,f=a.a;b=new H(null,f);for(var d=e*(d+1),e=Array(d),g=0;g<d;g++)e[g]=0;Gc(b,f,e,[e.length]);f=a.jb();a=a.xb();var d=b.c,e=b.a,g=b.j,h=b.G;console.assert(1===h.length,"only 1 ring is supported");var l=d.length/g-1;c=c?c:0;for(var m,n,p=0;p<=l;++p)n=p*g,m=c+2*pa(p,l)*Math.PI/l,d[n]=f[0]+a*Math.cos(m),d[n+1]=f[1]+a*Math.sin(m);Gc(b,e,d,h);return b});r("ol.geom.SimpleGeometry",C);C.prototype.getFirstCoordinate=C.prototype.ta;
261
- C.prototype.getLastCoordinate=C.prototype.ua;C.prototype.getLayout=C.prototype.va;C.prototype.applyTransform=C.prototype.Sa;C.prototype.translate=C.prototype.translate;B.prototype.get=B.prototype.get;B.prototype.getKeys=B.prototype.da;B.prototype.getProperties=B.prototype.ba;B.prototype.set=B.prototype.set;B.prototype.setProperties=B.prototype.P;B.prototype.unset=B.prototype.ea;B.prototype.changed=B.prototype.l;B.prototype.dispatchEvent=B.prototype.w;B.prototype.getRevision=B.prototype.W;
262
- B.prototype.on=B.prototype.X;B.prototype.once=B.prototype.Y;B.prototype.un=B.prototype.Z;B.prototype.unByKey=B.prototype.$;C.prototype.getClosestPoint=C.prototype.ka;C.prototype.intersectsCoordinate=C.prototype.ia;C.prototype.getExtent=C.prototype.u;C.prototype.rotate=C.prototype.rotate;C.prototype.scale=C.prototype.scale;C.prototype.simplify=C.prototype.ma;C.prototype.transform=C.prototype.transform;C.prototype.get=C.prototype.get;C.prototype.getKeys=C.prototype.da;C.prototype.getProperties=C.prototype.ba;
263
- C.prototype.set=C.prototype.set;C.prototype.setProperties=C.prototype.P;C.prototype.unset=C.prototype.ea;C.prototype.changed=C.prototype.l;C.prototype.dispatchEvent=C.prototype.w;C.prototype.getRevision=C.prototype.W;C.prototype.on=C.prototype.X;C.prototype.once=C.prototype.Y;C.prototype.un=C.prototype.Z;C.prototype.unByKey=C.prototype.$;Y.prototype.getFirstCoordinate=Y.prototype.ta;Y.prototype.getLastCoordinate=Y.prototype.ua;Y.prototype.getLayout=Y.prototype.va;Y.prototype.rotate=Y.prototype.rotate;
264
- Y.prototype.scale=Y.prototype.scale;Y.prototype.getClosestPoint=Y.prototype.ka;Y.prototype.intersectsCoordinate=Y.prototype.ia;Y.prototype.getExtent=Y.prototype.u;Y.prototype.simplify=Y.prototype.ma;Y.prototype.get=Y.prototype.get;Y.prototype.getKeys=Y.prototype.da;Y.prototype.getProperties=Y.prototype.ba;Y.prototype.set=Y.prototype.set;Y.prototype.setProperties=Y.prototype.P;Y.prototype.unset=Y.prototype.ea;Y.prototype.changed=Y.prototype.l;Y.prototype.dispatchEvent=Y.prototype.w;
265
- Y.prototype.getRevision=Y.prototype.W;Y.prototype.on=Y.prototype.X;Y.prototype.once=Y.prototype.Y;Y.prototype.un=Y.prototype.Z;Y.prototype.unByKey=Y.prototype.$;W.prototype.getClosestPoint=W.prototype.ka;W.prototype.intersectsCoordinate=W.prototype.ia;W.prototype.getExtent=W.prototype.u;W.prototype.rotate=W.prototype.rotate;W.prototype.scale=W.prototype.scale;W.prototype.simplify=W.prototype.ma;W.prototype.transform=W.prototype.transform;W.prototype.get=W.prototype.get;W.prototype.getKeys=W.prototype.da;
266
- W.prototype.getProperties=W.prototype.ba;W.prototype.set=W.prototype.set;W.prototype.setProperties=W.prototype.P;W.prototype.unset=W.prototype.ea;W.prototype.changed=W.prototype.l;W.prototype.dispatchEvent=W.prototype.w;W.prototype.getRevision=W.prototype.W;W.prototype.on=W.prototype.X;W.prototype.once=W.prototype.Y;W.prototype.un=W.prototype.Z;W.prototype.unByKey=W.prototype.$;E.prototype.getFirstCoordinate=E.prototype.ta;E.prototype.getLastCoordinate=E.prototype.ua;E.prototype.getLayout=E.prototype.va;
267
- E.prototype.rotate=E.prototype.rotate;E.prototype.scale=E.prototype.scale;E.prototype.getClosestPoint=E.prototype.ka;E.prototype.intersectsCoordinate=E.prototype.ia;E.prototype.getExtent=E.prototype.u;E.prototype.simplify=E.prototype.ma;E.prototype.transform=E.prototype.transform;E.prototype.get=E.prototype.get;E.prototype.getKeys=E.prototype.da;E.prototype.getProperties=E.prototype.ba;E.prototype.set=E.prototype.set;E.prototype.setProperties=E.prototype.P;E.prototype.unset=E.prototype.ea;
268
- E.prototype.changed=E.prototype.l;E.prototype.dispatchEvent=E.prototype.w;E.prototype.getRevision=E.prototype.W;E.prototype.on=E.prototype.X;E.prototype.once=E.prototype.Y;E.prototype.un=E.prototype.Z;E.prototype.unByKey=E.prototype.$;L.prototype.getFirstCoordinate=L.prototype.ta;L.prototype.getLastCoordinate=L.prototype.ua;L.prototype.getLayout=L.prototype.va;L.prototype.rotate=L.prototype.rotate;L.prototype.scale=L.prototype.scale;L.prototype.getClosestPoint=L.prototype.ka;
269
- L.prototype.intersectsCoordinate=L.prototype.ia;L.prototype.getExtent=L.prototype.u;L.prototype.simplify=L.prototype.ma;L.prototype.transform=L.prototype.transform;L.prototype.get=L.prototype.get;L.prototype.getKeys=L.prototype.da;L.prototype.getProperties=L.prototype.ba;L.prototype.set=L.prototype.set;L.prototype.setProperties=L.prototype.P;L.prototype.unset=L.prototype.ea;L.prototype.changed=L.prototype.l;L.prototype.dispatchEvent=L.prototype.w;L.prototype.getRevision=L.prototype.W;
270
- L.prototype.on=L.prototype.X;L.prototype.once=L.prototype.Y;L.prototype.un=L.prototype.Z;L.prototype.unByKey=L.prototype.$;M.prototype.getFirstCoordinate=M.prototype.ta;M.prototype.getLastCoordinate=M.prototype.ua;M.prototype.getLayout=M.prototype.va;M.prototype.rotate=M.prototype.rotate;M.prototype.scale=M.prototype.scale;M.prototype.getClosestPoint=M.prototype.ka;M.prototype.intersectsCoordinate=M.prototype.ia;M.prototype.getExtent=M.prototype.u;M.prototype.simplify=M.prototype.ma;
271
- M.prototype.transform=M.prototype.transform;M.prototype.get=M.prototype.get;M.prototype.getKeys=M.prototype.da;M.prototype.getProperties=M.prototype.ba;M.prototype.set=M.prototype.set;M.prototype.setProperties=M.prototype.P;M.prototype.unset=M.prototype.ea;M.prototype.changed=M.prototype.l;M.prototype.dispatchEvent=M.prototype.w;M.prototype.getRevision=M.prototype.W;M.prototype.on=M.prototype.X;M.prototype.once=M.prototype.Y;M.prototype.un=M.prototype.Z;M.prototype.unByKey=M.prototype.$;
272
- N.prototype.getFirstCoordinate=N.prototype.ta;N.prototype.getLastCoordinate=N.prototype.ua;N.prototype.getLayout=N.prototype.va;N.prototype.rotate=N.prototype.rotate;N.prototype.scale=N.prototype.scale;N.prototype.getClosestPoint=N.prototype.ka;N.prototype.intersectsCoordinate=N.prototype.ia;N.prototype.getExtent=N.prototype.u;N.prototype.simplify=N.prototype.ma;N.prototype.transform=N.prototype.transform;N.prototype.get=N.prototype.get;N.prototype.getKeys=N.prototype.da;
273
- N.prototype.getProperties=N.prototype.ba;N.prototype.set=N.prototype.set;N.prototype.setProperties=N.prototype.P;N.prototype.unset=N.prototype.ea;N.prototype.changed=N.prototype.l;N.prototype.dispatchEvent=N.prototype.w;N.prototype.getRevision=N.prototype.W;N.prototype.on=N.prototype.X;N.prototype.once=N.prototype.Y;N.prototype.un=N.prototype.Z;N.prototype.unByKey=N.prototype.$;S.prototype.getFirstCoordinate=S.prototype.ta;S.prototype.getLastCoordinate=S.prototype.ua;S.prototype.getLayout=S.prototype.va;
274
- S.prototype.rotate=S.prototype.rotate;S.prototype.scale=S.prototype.scale;S.prototype.getClosestPoint=S.prototype.ka;S.prototype.intersectsCoordinate=S.prototype.ia;S.prototype.getExtent=S.prototype.u;S.prototype.simplify=S.prototype.ma;S.prototype.transform=S.prototype.transform;S.prototype.get=S.prototype.get;S.prototype.getKeys=S.prototype.da;S.prototype.getProperties=S.prototype.ba;S.prototype.set=S.prototype.set;S.prototype.setProperties=S.prototype.P;S.prototype.unset=S.prototype.ea;
275
- S.prototype.changed=S.prototype.l;S.prototype.dispatchEvent=S.prototype.w;S.prototype.getRevision=S.prototype.W;S.prototype.on=S.prototype.X;S.prototype.once=S.prototype.Y;S.prototype.un=S.prototype.Z;S.prototype.unByKey=S.prototype.$;F.prototype.getFirstCoordinate=F.prototype.ta;F.prototype.getLastCoordinate=F.prototype.ua;F.prototype.getLayout=F.prototype.va;F.prototype.rotate=F.prototype.rotate;F.prototype.scale=F.prototype.scale;F.prototype.getClosestPoint=F.prototype.ka;
276
- F.prototype.intersectsCoordinate=F.prototype.ia;F.prototype.getExtent=F.prototype.u;F.prototype.simplify=F.prototype.ma;F.prototype.transform=F.prototype.transform;F.prototype.get=F.prototype.get;F.prototype.getKeys=F.prototype.da;F.prototype.getProperties=F.prototype.ba;F.prototype.set=F.prototype.set;F.prototype.setProperties=F.prototype.P;F.prototype.unset=F.prototype.ea;F.prototype.changed=F.prototype.l;F.prototype.dispatchEvent=F.prototype.w;F.prototype.getRevision=F.prototype.W;
277
- F.prototype.on=F.prototype.X;F.prototype.once=F.prototype.Y;F.prototype.un=F.prototype.Z;F.prototype.unByKey=F.prototype.$;H.prototype.getFirstCoordinate=H.prototype.ta;H.prototype.getLastCoordinate=H.prototype.ua;H.prototype.getLayout=H.prototype.va;H.prototype.rotate=H.prototype.rotate;H.prototype.scale=H.prototype.scale;H.prototype.getClosestPoint=H.prototype.ka;H.prototype.intersectsCoordinate=H.prototype.ia;H.prototype.getExtent=H.prototype.u;H.prototype.simplify=H.prototype.ma;
278
- H.prototype.transform=H.prototype.transform;H.prototype.get=H.prototype.get;H.prototype.getKeys=H.prototype.da;H.prototype.getProperties=H.prototype.ba;H.prototype.set=H.prototype.set;H.prototype.setProperties=H.prototype.P;H.prototype.unset=H.prototype.ea;H.prototype.changed=H.prototype.l;H.prototype.dispatchEvent=H.prototype.w;H.prototype.getRevision=H.prototype.W;H.prototype.on=H.prototype.X;H.prototype.once=H.prototype.Y;H.prototype.un=H.prototype.Z;H.prototype.unByKey=H.prototype.$;
279
- r("ol.source.XYZ",Z);Z.prototype.setRenderReprojectionEdges=Z.prototype.kc;Z.prototype.setTileGridForProjection=Z.prototype.mc;Z.prototype.getTileLoadFunction=Z.prototype.Rb;Z.prototype.getTileUrlFunction=Z.prototype.Sb;Z.prototype.getUrls=Z.prototype.Tb;Z.prototype.setTileLoadFunction=Z.prototype.nc;Z.prototype.setTileUrlFunction=Z.prototype.Ua;Z.prototype.setUrl=Z.prototype.Bb;Z.prototype.setUrls=Z.prototype.Cb;Z.prototype.getTileGrid=Z.prototype.Qb;Z.prototype.refresh=Z.prototype.yb;
280
- Z.prototype.getAttributions=Z.prototype.Lb;Z.prototype.getLogo=Z.prototype.Ob;Z.prototype.getProjection=Z.prototype.aa;Z.prototype.getState=Z.prototype.I;Z.prototype.setAttributions=Z.prototype.hc;Z.prototype.get=Z.prototype.get;Z.prototype.getKeys=Z.prototype.da;Z.prototype.getProperties=Z.prototype.ba;Z.prototype.set=Z.prototype.set;Z.prototype.setProperties=Z.prototype.P;Z.prototype.unset=Z.prototype.ea;Z.prototype.changed=Z.prototype.l;Z.prototype.dispatchEvent=Z.prototype.w;
281
- Z.prototype.getRevision=Z.prototype.W;Z.prototype.on=Z.prototype.X;Z.prototype.once=Z.prototype.Y;Z.prototype.un=Z.prototype.Z;Z.prototype.unByKey=Z.prototype.$;r("ol.extent.boundingExtent",eb);r("ol.extent.buffer",function(a,b,c){return c?(c[0]=a[0]-b,c[1]=a[1]-b,c[2]=a[2]+b,c[3]=a[3]+b,c):[a[0]-b,a[1]-b,a[2]+b,a[3]+b]});r("ol.extent.containsCoordinate",ib);r("ol.extent.containsExtent",kb);r("ol.extent.containsXY",jb);r("ol.extent.createEmpty",fb);r("ol.extent.equals",ob);r("ol.extent.extend",pb);
282
- r("ol.extent.getBottomLeft",sb);r("ol.extent.getBottomRight",tb);r("ol.extent.getCenter",Ab);r("ol.extent.getHeight",zb);r("ol.extent.getIntersection",Cb);r("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});r("ol.extent.getTopLeft",vb);r("ol.extent.getTopRight",ub);r("ol.extent.getWidth",yb);r("ol.extent.intersects",Db);r("ol.extent.isEmpty",xb);r("ol.extent.applyTransform",Eb);r("ol.layer.Tile",J);J.prototype.getPreload=J.prototype.i;J.prototype.getSource=J.prototype.za;
283
- J.prototype.setPreload=J.prototype.s;J.prototype.getUseInterimTilesOnError=J.prototype.o;J.prototype.setUseInterimTilesOnError=J.prototype.v;J.prototype.setMap=J.prototype.setMap;J.prototype.setSource=J.prototype.lc;J.prototype.getExtent=J.prototype.u;J.prototype.getMaxResolution=J.prototype.Yb;J.prototype.getMinResolution=J.prototype.Zb;J.prototype.getOpacity=J.prototype.$b;J.prototype.getVisible=J.prototype.ub;J.prototype.getZIndex=J.prototype.ac;J.prototype.setExtent=J.prototype.me;
284
- J.prototype.setMaxResolution=J.prototype.Pe;J.prototype.setMinResolution=J.prototype.Qe;J.prototype.setOpacity=J.prototype.ne;J.prototype.setVisible=J.prototype.Te;J.prototype.setZIndex=J.prototype.oe;J.prototype.get=J.prototype.get;J.prototype.getKeys=J.prototype.da;J.prototype.getProperties=J.prototype.ba;J.prototype.set=J.prototype.set;J.prototype.setProperties=J.prototype.P;J.prototype.unset=J.prototype.ea;J.prototype.changed=J.prototype.l;J.prototype.dispatchEvent=J.prototype.w;
285
- J.prototype.getRevision=J.prototype.W;J.prototype.on=J.prototype.X;J.prototype.once=J.prototype.Y;J.prototype.un=J.prototype.Z;J.prototype.unByKey=J.prototype.$;r("ol.proj.common.add",eg);r("ol.proj.METERS_PER_UNIT",Kb);r("ol.proj.Projection",A);A.prototype.getCode=A.prototype.Lc;A.prototype.getExtent=A.prototype.u;A.prototype.getUnits=A.prototype.od;A.prototype.getMetersPerUnit=A.prototype.Ha;A.prototype.getWorldExtent=A.prototype.qd;A.prototype.isGlobal=A.prototype.Id;A.prototype.setGlobal=A.prototype.Me;
286
- A.prototype.setExtent=A.prototype.qe;A.prototype.setWorldExtent=A.prototype.Ue;A.prototype.setGetPointResolution=A.prototype.Le;A.prototype.getPointResolution=A.prototype.getPointResolution;r("ol.proj.setProj4",void 0);r("ol.proj.addEquivalentProjections",Pb);r("ol.proj.addProjection",Yb);r("ol.proj.addCoordinateTransforms",function(a,b,c,d){a=Mb(a);b=Mb(b);Rb(a,b,$b(c));Rb(b,a,$b(d))});r("ol.proj.fromLonLat",function(a,b){return dc(a,"EPSG:4326",void 0!==b?b:"EPSG:3857")});
287
- r("ol.proj.toLonLat",function(a,b){return dc(a,void 0!==b?b:"EPSG:3857","EPSG:4326")});r("ol.proj.get",Mb);r("ol.proj.equivalent",ac);r("ol.proj.getTransform",bc);r("ol.proj.transform",dc);r("ol.proj.transformExtent",function(a,b,c){b=bc(b,c);return Eb(a,b)});yg.prototype.drawCircle=yg.prototype.Jb;yg.prototype.setStyle=yg.prototype.bc;yg.prototype.drawGeometry=yg.prototype.lb;yg.prototype.drawFeature=yg.prototype.Bc;r("ol.source.XYZ",Z);Z.prototype.setRenderReprojectionEdges=Z.prototype.kc;
288
- Z.prototype.setTileGridForProjection=Z.prototype.mc;Z.prototype.getTileLoadFunction=Z.prototype.Rb;Z.prototype.getTileUrlFunction=Z.prototype.Sb;Z.prototype.getUrls=Z.prototype.Tb;Z.prototype.setTileLoadFunction=Z.prototype.nc;Z.prototype.setTileUrlFunction=Z.prototype.Ua;Z.prototype.setUrl=Z.prototype.Bb;Z.prototype.setUrls=Z.prototype.Cb;Z.prototype.getTileGrid=Z.prototype.Qb;Z.prototype.refresh=Z.prototype.yb;Z.prototype.getAttributions=Z.prototype.Lb;Z.prototype.getLogo=Z.prototype.Ob;
289
- Z.prototype.getProjection=Z.prototype.aa;Z.prototype.getState=Z.prototype.I;Z.prototype.setAttributions=Z.prototype.hc;Z.prototype.get=Z.prototype.get;Z.prototype.getKeys=Z.prototype.da;Z.prototype.getProperties=Z.prototype.ba;Z.prototype.set=Z.prototype.set;Z.prototype.setProperties=Z.prototype.P;Z.prototype.unset=Z.prototype.ea;Z.prototype.changed=Z.prototype.l;Z.prototype.dispatchEvent=Z.prototype.w;Z.prototype.getRevision=Z.prototype.W;Z.prototype.on=Z.prototype.X;Z.prototype.once=Z.prototype.Y;
290
- Z.prototype.un=Z.prototype.Z;Z.prototype.unByKey=Z.prototype.$;
291
- return OPENLAYERS.ol;
292
- }));
293
-