@planet/maps 7.1.1-alpha-heat → 8.0.0-dev.1666714337006
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/config.js +32 -0
- package/lib/Map.js +70 -0
- package/lib/Overlay.js +24 -0
- package/lib/View.js +24 -0
- package/lib/control/Attribution.js +24 -0
- package/lib/control/Control.js +24 -0
- package/lib/control/FullScreen.js +24 -0
- package/lib/control/MousePosition.js +24 -0
- package/lib/control/OverviewMap.js +24 -0
- package/lib/control/Rotate.js +24 -0
- package/lib/control/ScaleLine.js +24 -0
- package/lib/control/Zoom.js +24 -0
- package/lib/control/ZoomSlider.js +24 -0
- package/lib/control/ZoomToExtent.js +24 -0
- package/lib/interaction/DoubleClickZoom.js +24 -0
- package/lib/interaction/DragAndDrop.js +24 -0
- package/lib/interaction/DragBox.js +24 -0
- package/lib/interaction/DragPan.js +24 -0
- package/lib/interaction/DragRotate.js +24 -0
- package/lib/interaction/DragRotateAndZoom.js +28 -0
- package/lib/interaction/DragZoom.js +24 -0
- package/lib/interaction/Draw.js +24 -0
- package/lib/interaction/Extent.js +24 -0
- package/lib/interaction/Interaction.js +24 -0
- package/lib/interaction/KeyboardPan.js +24 -0
- package/lib/interaction/KeyboardZoom.js +24 -0
- package/lib/interaction/Link.js +24 -0
- package/lib/interaction/Modify.js +24 -0
- package/lib/interaction/MouseWheelZoom.js +24 -0
- package/lib/interaction/PinchRotate.js +24 -0
- package/lib/interaction/PinchZoom.js +24 -0
- package/lib/interaction/Pointer.js +24 -0
- package/lib/interaction/Property.js +24 -0
- package/lib/interaction/Select.js +24 -0
- package/lib/interaction/Snap.js +24 -0
- package/lib/interaction/Translate.js +24 -0
- package/lib/layer/Base.js +29 -0
- package/lib/layer/BaseImage.js +29 -0
- package/lib/layer/BaseTile.js +29 -0
- package/lib/layer/BaseVector.js +29 -0
- package/lib/layer/Graticule.js +29 -0
- package/lib/layer/Group.js +29 -0
- package/lib/layer/Heatmap.js +29 -0
- package/lib/layer/Image.js +29 -0
- package/lib/layer/Layer.js +29 -0
- package/lib/layer/MapboxVector.js +29 -0
- package/lib/layer/Tile.js +29 -0
- package/lib/layer/Vector.js +29 -0
- package/lib/layer/VectorImage.js +29 -0
- package/lib/layer/VectorTile.js +29 -0
- package/lib/layer/WebGLPoints.js +29 -0
- package/lib/layer/WebGLTile.js +29 -0
- package/lib/source/BingMaps.js +24 -0
- package/lib/source/CartoDB.js +24 -0
- package/lib/source/Cluster.js +24 -0
- package/lib/source/DataTile.js +24 -0
- package/lib/source/GeoTIFF.js +24 -0
- package/lib/source/IIIF.js +24 -0
- package/lib/source/Image.js +24 -0
- package/lib/source/ImageArcGISRest.js +24 -0
- package/lib/source/ImageCanvas.js +24 -0
- package/lib/source/ImageMapGuide.js +24 -0
- package/lib/source/ImageStatic.js +24 -0
- package/lib/source/ImageWMS.js +24 -0
- package/lib/source/OGCMapTile.js +24 -0
- package/lib/source/OGCVectorTile.js +24 -0
- package/lib/source/OSM.js +24 -0
- package/lib/source/Raster.js +24 -0
- package/lib/source/Source.js +24 -0
- package/lib/source/Stamen.js +24 -0
- package/lib/source/Tile.js +24 -0
- package/lib/source/TileArcGISRest.js +24 -0
- package/lib/source/TileDebug.js +24 -0
- package/lib/source/TileImage.js +24 -0
- package/lib/source/TileJSON.js +24 -0
- package/lib/source/TileWMS.js +24 -0
- package/lib/source/UTFGrid.js +24 -0
- package/lib/source/UrlTile.js +24 -0
- package/lib/source/Vector.js +24 -0
- package/lib/source/VectorTile.js +24 -0
- package/lib/source/WMTS.js +24 -0
- package/lib/source/XYZ.js +24 -0
- package/lib/source/Zoomify.js +24 -0
- package/package.json +52 -17
- package/readme.md +53 -34
- package/renderer/render.js +304 -0
- package/renderer/update.js +98 -0
- package/.npmignore +0 -2
- package/common.js +0 -589
- package/debug.js +0 -92555
- package/embed.js +0 -431
- package/explorer.js +0 -92555
- package/ol.css +0 -241
package/common.js
DELETED
|
@@ -1,589 +0,0 @@
|
|
|
1
|
-
// OpenLayers 3. See https://openlayers.org/
|
|
2
|
-
// License: https://raw.githubusercontent.com/openlayers/ol3/master/LICENSE.md
|
|
3
|
-
// Version: v7.1.0-1-gf3b4e0a
|
|
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 l,aa=this;function r(a,b){var c=a.split("."),d=OPENLAYERS||aa;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 u(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a}function ba(){}function ea(a){return a.hj||(a.hj=++fa)}var fa=0;function ga(a){this.message="Assertion failed. See https://openlayers.org/en/v7.1.0/doc/errors/#"+a+" for details.";this.code=a;this.name="AssertionError"}u(ga,Error);function ha(a,b){if(!a)throw new ga(b);};function ja(a,b,c){return Math.min(Math.max(a,b),c)}var ka=function(){var a;"cosh"in Math?a=Math.cosh:a=function(a){a=Math.exp(a);return(a+1/a)/2};return a}();function la(a,b,c,d){a=c-a;b=d-b;return a*a+b*b}function ma(a,b){var c=a%b;return 0>c*b?c+b:c}function pa(a,b,c){return a+c*(b-a)};function qa(a){return function(b){if(b)return[ja(b[0],a[0],a[2]),ja(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){var b=[],c;for(c in a)b.push(a[c]);return b}function xa(a){for(var b in a)return!1;return!b};function za(a){function b(b){var d=a.listener,e=a.Ge||a.target;a.Je&&Ba(a);return d.call(e,b)}return a.He=b}function Ca(a,b,c,d){for(var e,f=0,g=a.length;f<g;++f)if(e=a[f],e.listener===b&&e.Ge===c)return d&&(e.deleteIndex=f),e}function Da(a,b){var c=a.Qa;return c?c[b]:void 0}function Fa(a){var b=a.Qa;b||(b=a.Qa={});return b}
|
|
15
|
-
function Ga(a,b){var c=Da(a,b);if(c){for(var d=0,e=c.length;d<e;++d)a.removeEventListener(b,c[d].He),va(c[d]);c.length=0;if(c=a.Qa)delete c[b],0===Object.keys(c).length&&delete a.Qa}}function w(a,b,c,d,e){var f=Fa(a),g=f[b];g||(g=f[b]=[]);(f=Ca(g,c,d,!1))?e||(f.Je=!1):(f={Ge:d,Je:!!e,listener:c,target:a,type:b},a.addEventListener(b,za(f)),g.push(f));return f}function Ha(a,b,c,d){(a=Da(a,b))&&(c=Ca(a,c,d,!0))&&Ba(c)}
|
|
16
|
-
function Ba(a){if(a&&a.target){a.target.removeEventListener(a.type,a.He);var b=Da(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&&Ga(a.target,a.type)}va(a)}};function Ia(){}Ia.prototype.gb=!1;function Ja(a){a.gb||(a.gb=!0,a.na())}Ia.prototype.na=ba;function Ka(a){this.type=a;this.target=null}Ka.prototype.preventDefault=Ka.prototype.stopPropagation=function(){this.tj=!0};function La(a){a.stopPropagation()};function Ma(){this.wa={};this.la={};this.aa={}}u(Ma,Ia);Ma.prototype.addEventListener=function(a,b){var c=this.aa[a];c||(c=this.aa[a]=[]);-1===c.indexOf(b)&&c.push(b)};
|
|
17
|
-
Ma.prototype.c=function(a){var b="string"===typeof a?new Ka(a):a;a=b.type;b.target=this;var c=this.aa[a],d;if(c){a in this.la||(this.la[a]=0,this.wa[a]=0);++this.la[a];for(var e=0,f=c.length;e<f;++e)if(!1===c[e].call(this,b)||b.tj){d=!1;break}--this.la[a];if(0===this.la[a]){b=this.wa[a];for(delete this.wa[a];b--;)this.removeEventListener(a,ba);delete this.la[a]}return d}};Ma.prototype.na=function(){var a=Fa(this),b;for(b in a)Ga(this,b)};
|
|
18
|
-
function Oa(a,b){return b?b in a.aa:0<Object.keys(a.aa).length}Ma.prototype.removeEventListener=function(a,b){var c=this.aa[a];if(c){var d=c.indexOf(b);a in this.wa?(c[d]=ba,++this.wa[a]):(c.splice(d,1),0===c.length&&delete this.aa[a])}};function Pa(){Ma.call(this);this.f=0}u(Pa,Ma);l=Pa.prototype;l.u=function(){++this.f;this.c("change")};l.ba=function(){return this.f};l.ca=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=w(this,a[f],b,c);return e}return w(this,a,b,c)};l.da=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=w(this,a[f],b,c,!0);return e}return w(this,a,b,c,!0)};
|
|
19
|
-
l.fa=function(a,b,c){if(Array.isArray(a))for(var d=0,e=a.length;d<e;++d)Ha(this,a[d],b,c);else Ha(this,a,b,c)};l.ga=function(a){if(Array.isArray(a))for(var b=0,c=a.length;b<c;++b)Ba(a[b]);else Ba(a)};function Qa(a){Pa.call(this);ea(this);this.D={};void 0!==a&&this.J(a)}u(Qa,Pa);var Sa={};function Ta(a){return Sa.hasOwnProperty(a)?Sa[a]:Sa[a]="change:"+a}l=Qa.prototype;l.get=function(a){var b;this.D.hasOwnProperty(a)&&(b=this.D[a]);return b};l.ha=function(){return Object.keys(this.D)};l.Y=function(){return ua({},this.D)};function Ua(a,b,c){var d;d=Ta(b);a.c(new Va(d,b,c));d=Wa;a.c(new Va(d,b,c))}l.set=function(a,b,c){c?this.D[a]=b:(c=this.D[a],this.D[a]=b,c!==b&&Ua(this,a,c))};
|
|
20
|
-
l.J=function(a,b){for(var c in a)this.set(c,a[c],b)};l.ia=function(a,b){if(a in this.D){var c=this.D[a];delete this.D[a];b||Ua(this,a,c)}};var Wa="propertychange";function Va(a,b,c){Ka.call(this,a);this.key=b;this.oldValue=c}u(Va,Ka);function Xa(a,b){return a>b?1:a<b?-1:0}function Ya(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 Za(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 $a(a,b){for(var c=a.length>>>0,d,e=0;e<c;e++)if(d=a[e],b(d,e,a))return d;return null}
|
|
21
|
-
function ab(a,b){var c=a.length;if(c!==b.length)return!1;for(var d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0}function bb(a){var b=cb,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 db(a,b){var c=b||Xa;return a.every(function(b,e){if(0===e)return!0;var f=c(a[e-1],b);return!(0<f||0===f)})};function eb(a){return function(b,c,d){if(void 0!==b)return b=Ya(a,b,d),b=ja(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 fb(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 gb(a){if(void 0!==a)return 0}function hb(a,b){if(void 0!==a)return a+b}function ib(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 jb(){var a=5*Math.PI/180;return function(b,c){if(void 0!==b)return Math.abs(b+c)<=a?0:b+c}};function kb(a){a=""+a;var b=a.indexOf("."),b=-1===b?a.length:b;return 2<b?a:Array(3-b).join("0")+a};function mb(a,b){a[0]+=b[0];a[1]+=b[1]}function nb(a,b){var c=a[0],d=a[1],e=b[0],f=b[1],g=e[0],e=e[1],h=f[0],f=f[1],k=h-g,m=f-e,c=0===k&&0===m?0:(k*(c-g)+m*(d-e))/(k*k+m*m||0);0>=c||(1<=c?(g=h,e=f):(g+=c*k,e+=c*m));return[g,e]}function ob(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}function pb(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 qb(a,b){var c=a[0]-b[0],d=a[1]-b[1];return c*c+d*d};function rb(a){return Math.pow(a,3)}function sb(a){return 1-rb(1-a)}function tb(a){return 3*a*a-2*a*a*a}function ub(a){return a}function vb(a){return.5>a?tb(2*a):1-tb(2*(a-.5))};function wb(a){for(var b=xb(),c=0,d=a.length;c<d;++c)zb(b,a[c]);return b}function Ab(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]}function Bb(a,b){return b?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function Cb(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 Db(a,b){return Eb(a,b[0],b[1])}function Fb(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}
|
|
22
|
-
function Eb(a,b,c){return a[0]<=b&&b<=a[2]&&a[1]<=c&&c<=a[3]}function Gb(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}function xb(){return[Infinity,Infinity,-Infinity,-Infinity]}function Hb(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 Ib(a){return Hb(Infinity,Infinity,-Infinity,-Infinity,a)}function Jb(a,b){var c=a[0],d=a[1];return Hb(c,d,c,d,b)}
|
|
23
|
-
function Kb(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function Mb(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 zb(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])}function Nb(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}
|
|
24
|
-
function Ob(a,b,c){var d;return(d=b.call(c,Pb(a)))||(d=b.call(c,Qb(a)))||(d=b.call(c,Rb(a)))?d:(d=b.call(c,Sb(a)))?d:!1}function Tb(a){var b=0;Ub(a)||(b=Vb(a)*Wb(a));return b}function Pb(a){return[a[0],a[1]]}function Qb(a){return[a[2],a[1]]}function Xb(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
|
|
25
|
-
function Yb(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,k=a[0],m=a[1];a=k-c+h;d=k-c-h;g=k+c-h;c=k+c+h;var h=m-f-b,k=m-f+b,n=m+f+b,f=m+f-b;return Hb(Math.min(a,d,g,c),Math.min(h,k,n,f),Math.max(a,d,g,c),Math.max(h,k,n,f),e)}function Wb(a){return a[3]-a[1]}function Zb(a,b,c){c=c?c:xb();$b(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 Sb(a){return[a[0],a[3]]}
|
|
26
|
-
function Rb(a){return[a[2],a[3]]}function Vb(a){return a[2]-a[0]}function $b(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Ub(a){return a[2]<a[0]||a[3]<a[1]}function ac(a,b){var c=(a[2]-a[0])/2*(b-1),d=(a[3]-a[1])/2*(b-1);a[0]-=c;a[2]+=c;a[1]-=d;a[3]+=d}
|
|
27
|
-
function bc(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]];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 Hb(b,a,d,e,c)};function cc(){return!0}function dc(){return!1};/*
|
|
28
|
-
|
|
29
|
-
Latitude/longitude spherical geodesy formulae taken from
|
|
30
|
-
http://www.movable-type.co.uk/scripts/latlong.html
|
|
31
|
-
Licensed under CC-BY-3.0.
|
|
32
|
-
*/
|
|
33
|
-
function ec(a){this.radius=a}function fc(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*hc.radius*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}
|
|
34
|
-
ec.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 hc=new ec(6370997);var ic={};ic.degrees=2*Math.PI*hc.radius/360;ic.ft=.3048;ic.m=1;ic["us-ft"]=1200/3937;var jc=null;function kc(a){this.f=a.code;this.b=a.units;this.g=void 0!==a.extent?a.extent:null;this.s=void 0!==a.worldExtent?a.worldExtent:null;this.i=void 0!==a.axisOrientation?a.axisOrientation:"enu";this.a=void 0!==a.global?a.global:!1;this.c=!(!this.a||!this.g);this.D=a.getPointResolution;this.j=null;this.o=a.metersPerUnit;var b=a.code,c=jc||window.proj4;"function"==typeof c&&(b=c.defs(b),void 0!==b&&(void 0!==b.axis&&void 0===a.axisOrientation&&(this.i=b.axis),void 0===a.metersPerUnit&&(this.o=b.to_meter),
|
|
35
|
-
void 0===a.units&&(this.b=b.units)))}l=kc.prototype;l.Bg=function(){return this.f};l.F=function(){return this.g};l.Zg=function(){return this.b};l.jb=function(){return this.o||ic[this.b]};l.ah=function(){return this.s};l.Ch=function(){return this.a};l.Oj=function(a){this.a=a;this.c=!(!a||!this.g)};l.Hi=function(a){this.g=a;this.c=!(!this.a||!a)};l.Zj=function(a){this.s=a};l.Nj=function(a){this.D=a};var lc={};var mc={};function nc(a,b,c){a=a.f;b=b.f;a in mc||(mc[a]={});mc[a][b]=c}function oc(a,b){var c;a in mc&&b in mc[a]&&(c=mc[a][b]);return c};function pc(a,b,c){var d=a.D;d?b=d(b,c):"degrees"!=a.b&&(d=qc(a,rc("EPSG:4326")),b=[c[0]-b/2,c[1],c[0]+b/2,c[1],c[0],c[1]-b/2,c[0],c[1]+b/2],b=d(b,b,2),b=(fc(b.slice(0,2),b.slice(2,4))+fc(b.slice(4,6),b.slice(6,8)))/2,a=a.jb(),void 0!==a&&(b/=a));return b}function sc(a){tc(a);a.forEach(function(b){a.forEach(function(a){b!==a&&nc(b,a,uc)})})}function vc(){var a=wc,b=xc,c=yc;zc.forEach(function(d){a.forEach(function(a){nc(d,a,b);nc(a,d,c)})})}function Ac(a){lc[a.f]=a;nc(a,a,uc)}
|
|
36
|
-
function tc(a){var b=[];a.forEach(function(a){b.push(Ac(a))})}function Bc(a){return a?"string"===typeof a?rc(a):a:rc("EPSG:3857")}function Cc(a,b,c,d){a=rc(a);b=rc(b);nc(a,b,Dc(c));nc(b,a,Dc(d))}function Dc(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}}
|
|
37
|
-
function rc(a){var b=null;if(a instanceof kc)b=a;else if("string"===typeof a){var b=lc[a]||null,c=jc||window.proj4;b||"function"!=typeof c||void 0===c.defs(a)||(b=new kc({code:a}),Ac(b))}return b}function Ec(a,b){if(a===b)return!0;var c=a.b===b.b;return a.f===b.f?c:qc(a,b)===uc&&c}function Fc(a,b){var c=rc(a),d=rc(b);return qc(c,d)}
|
|
38
|
-
function qc(a,b){var c=a.f,d=b.f,e=oc(c,d);if(!e){var f=jc||window.proj4;if("function"==typeof f){var g=f.defs(c),h=f.defs(d);void 0!==g&&void 0!==h&&(g===h?sc([b,a]):(e=f(d,c),Cc(b,a,e.forward,e.inverse)),e=oc(c,d))}}e||(e=Gc);return e}function Gc(a,b){if(void 0!==b&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}function uc(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 Hc(a,b,c){return Fc(b,c)(a,void 0,a.length)}
|
|
39
|
-
function Ic(a,b,c){b=Fc(b,c);return bc(a,b)};function Jc(){Qa.call(this);this.s=xb();this.v=-1;this.g={};this.o=this.i=0}u(Jc,Qa);l=Jc.prototype;l.Ma=function(a,b){var c=b?b:[NaN,NaN];this.La(a[0],a[1],c,Infinity);return c};l.Fa=function(a){return this.nb(a[0],a[1])};l.nb=dc;l.F=function(a){this.v!=this.f&&(this.s=this.zc(this.s),this.v=this.f);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};l.Pa=function(a){return this.Ec(a*a)};l.Ja=function(a,b){this.vb(Fc(a,b));return this};function Kc(a,b,c,d,e,f){for(var g=f?f:[],h=0;b<c;b+=d){var k=a[b],m=a[b+1];g[h++]=e[0]*k+e[2]*m+e[4];g[h++]=e[1]*k+e[3]*m+e[5]}f&&g.length!=h&&(g.length=h);return g};function x(){Jc.call(this);this.V="XY";this.A=2;this.l=null}u(x,Jc);function Lc(a){var b;"XY"==a?b=2:"XYZ"==a||"XYM"==a?b=3:"XYZM"==a&&(b=4);return b}l=x.prototype;l.nb=dc;l.zc=function(a){var b=this.l,c=this.l.length,d=this.A;a=Ib(a);return Nb(a,b,0,c,d)};l.Va=function(){return this.l.slice(0,this.A)};l.Wa=function(){return this.l.slice(this.l.length-this.A)};l.Xa=function(){return this.V};
|
|
40
|
-
l.Ec=function(a){this.o!=this.f&&(va(this.g),this.i=0,this.o=this.f);if(0>a||0!==this.i&&a<=this.i)return this;var b=a.toString();if(this.g.hasOwnProperty(b))return this.g[b];var c=this.Bb(a);if(c.l.length<this.l.length)return this.g[b]=c;this.i=a;return this};l.Bb=function(){return this};function Mc(a,b,c){a.A=Lc(b);a.V=b;a.l=c}
|
|
41
|
-
function Nc(a,b,c,d){if(b)c=Lc(b);else{for(b=0;b<d;++b){if(0===c.length){a.V="XY";a.A=2;return}c=c[0]}c=c.length;var e;2==c?e="XY":3==c?e="XYZ":4==c&&(e="XYZM");b=e}a.V=b;a.A=c}l.vb=function(a){this.l&&(a(this.l,this.l,this.A),this.u())};l.rotate=function(a,b){var c=this.l;if(c){for(var d=c.length,e=this.A,f=c?c:[],g=Math.cos(a),h=Math.sin(a),k=b[0],m=b[1],n=0,p=0;p<d;p+=e){var q=c[p]-k,v=c[p+1]-m;f[n++]=k+q*g-v*h;f[n++]=m+q*h+v*g;for(q=p+2;q<p+e;++q)f[n++]=c[q]}c&&f.length!=n&&(f.length=n);this.u()}};
|
|
42
|
-
l.scale=function(a,b,c){var d=b;void 0===d&&(d=a);var e=c;e||(e=Xb(this.F()));if(c=this.l){b=c.length;for(var f=this.A,g=c?c:[],h=e[0],e=e[1],k=0,m=0;m<b;m+=f){var n=c[m]-h,p=c[m+1]-e;g[k++]=h+a*n;g[k++]=e+d*p;for(n=m+2;n<m+f;++n)g[k++]=c[n]}c&&g.length!=k&&(g.length=k);this.u()}};l.translate=function(a,b){var c=this.l;if(c){var d=c.length,e=this.A,f=c?c:[],g=0,h,k;for(h=0;h<d;h+=e)for(f[g++]=c[h]+a,f[g++]=c[h+1]+b,k=h+2;k<h+e;++k)f[g++]=c[k];c&&f.length!=g&&(f.length=g);this.u()}};function Oc(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],k=a[b+1],e=e+(g*h-f*k),f=h,g=k;return e/2}function Pc(a,b,c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],e=e+Oc(a,b,h,d);b=h}return e};function Qc(a,b,c,d,e,f,g){var h=a[b],k=a[b+1],m=a[c]-h,n=a[c+1]-k;if(0!==m||0!==n)if(f=((e-h)*m+(f-k)*n)/(m*m+n*n),1<f)b=c;else if(0<f){for(e=0;e<d;++e)g[e]=pa(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 Rc(a,b,c,d,e){var f=a[b],g=a[b+1];for(b+=d;b<c;b+=d){var h=a[b],k=a[b+1],f=la(f,g,h,k);f>e&&(e=f);f=h;g=k}return e}function Sc(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];e=Rc(a,b,h,d,e);b=h}return e}
|
|
43
|
-
function Tc(a,b,c,d,e,f,g,h,k,m,n){if(b==c)return m;var p;if(0===e){p=la(g,h,a[b],a[b+1]);if(p<m){for(n=0;n<d;++n)k[n]=a[b+n];k.length=d;return p}return m}for(var q=n?n:[NaN,NaN],v=b+d;v<c;)if(Qc(a,v-d,v,d,g,h,q),p=la(g,h,q[0],q[1]),p<m){m=p;for(n=0;n<d;++n)k[n]=q[n];k.length=d;v+=d}else v+=d*Math.max((Math.sqrt(p)-Math.sqrt(m))/e|0,1);if(f&&(Qc(a,c-d,b,d,g,h,q),p=la(g,h,q[0],q[1]),p<m)){m=p;for(n=0;n<d;++n)k[n]=q[n];k.length=d}return m}
|
|
44
|
-
function Uc(a,b,c,d,e,f,g,h,k,m,n){n=n?n:[NaN,NaN];var p,q;p=0;for(q=c.length;p<q;++p){var v=c[p];m=Tc(a,b,v,d,e,f,g,h,k,m,n);b=v}return m};function Vc(a,b){var c=0,d,e;d=0;for(e=b.length;d<e;++d)a[c++]=b[d];return c}function Wc(a,b,c,d){var e,f;e=0;for(f=c.length;e<f;++e){var g=c[e],h;for(h=0;h<d;++h)a[b++]=g[h]}return b}function Xc(a,b,c,d,e){e=e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g)b=Wc(a,b,c[g],d),e[f++]=b;e.length=f;return e};function Yc(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 Zc(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 k=c[g];e[f++]=Yc(a,b,k,d,e[f]);b=k}e.length=f;return e};function $c(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 k=Array(h);k[0]=1;k[h-1]=1;c=[b,c-d];for(var m=0,n;0<c.length;){var p=c.pop(),q=c.pop(),v=0,t=a[q],B=a[q+1],F=a[p],X=a[p+1];for(n=q+d;n<p;n+=d){var ca;ca=a[n];var da=a[n+1],Aa=t,oa=B,ya=F-Aa,z=X-oa;if(0!==ya||0!==z){var na=((ca-Aa)*ya+(da-oa)*z)/(ya*ya+z*z);1<na?(Aa=F,oa=X):0<na&&(Aa+=ya*na,oa+=z*na)}ca=la(ca,da,Aa,oa);ca>v&&(m=n,v=ca)}v>e&&(k[(m-b)/d]=1,q+d<m&&c.push(q,m),m+d<p&&c.push(m,p))}for(n=
|
|
45
|
-
0;n<h;++n)k[n]&&(f[g++]=a[b+n*d],f[g++]=a[b+n*d+1]);return g}
|
|
46
|
-
function ad(a,b,c,d,e,f,g,h){var k,m;k=0;for(m=c.length;k<m;++k){var n=c[k];a:{var p=a,q=n,v=d,t=e,B=f;if(b!=q){var F=t*Math.round(p[b]/t),X=t*Math.round(p[b+1]/t);b+=v;B[g++]=F;B[g++]=X;var ca,da;do if(ca=t*Math.round(p[b]/t),da=t*Math.round(p[b+1]/t),b+=v,b==q){B[g++]=ca;B[g++]=da;break a}while(ca==F&&da==X);for(;b<q;){var Aa,oa;Aa=t*Math.round(p[b]/t);oa=t*Math.round(p[b+1]/t);b+=v;if(Aa!=ca||oa!=da){var ya=ca-F,z=da-X,na=Aa-F,ra=oa-X;ya*ra==z*na&&(0>ya&&na<ya||ya==na||0<ya&&na>ya)&&(0>z&&ra<z||
|
|
47
|
-
z==ra||0<z&&ra>z)||(B[g++]=ca,B[g++]=da,F=ca,X=da);ca=Aa;da=oa}}B[g++]=ca;B[g++]=da}}h.push(g);b=n}return g};function y(a,b){x.call(this);this.a=this.j=-1;this.ea(a,b)}u(y,x);l=y.prototype;l.clone=function(){var a=new y(null);Mc(a,this.V,this.l.slice());a.u();return a};l.La=function(a,b,c,d){if(d<Cb(this.F(),a,b))return d;this.a!=this.f&&(this.j=Math.sqrt(Rc(this.l,0,this.l.length,this.A,0)),this.a=this.f);return Tc(this.l,0,this.l.length,this.A,this.j,!0,a,b,c,d)};l.mi=function(){return Oc(this.l,0,this.l.length,this.A)};l.R=function(){return Yc(this.l,0,this.l.length,this.A)};
|
|
48
|
-
l.Bb=function(a){var b=[];b.length=$c(this.l,0,this.l.length,this.A,a,b,0);a=new y(null);Mc(a,"XY",b);a.u();return a};l.K=function(){return"LinearRing"};l.ea=function(a,b){a?(Nc(this,b,a,1),this.l||(this.l=[]),this.l.length=Wc(this.l,0,a,this.A)):Mc(this,"XY",null);this.u()};function A(a,b){x.call(this);this.ea(a,b)}u(A,x);l=A.prototype;l.clone=function(){var a=new A(null);a.P(this.V,this.l.slice());return a};l.La=function(a,b,c,d){var e=this.l;a=la(a,b,e[0],e[1]);if(a<d){d=this.A;for(b=0;b<d;++b)c[b]=e[b];c.length=d;return a}return d};l.R=function(){return this.l?this.l.slice():[]};l.zc=function(a){return Jb(this.l,a)};l.K=function(){return"Point"};l.sa=function(a){return Eb(a,this.l[0],this.l[1])};
|
|
49
|
-
l.ea=function(a,b){a?(Nc(this,b,a,0),this.l||(this.l=[]),this.l.length=Vc(this.l,a),this.u()):this.P("XY",null)};l.P=function(a,b){Mc(this,a,b);this.u()};function bd(a,b,c,d,e){return!Ob(e,function(e){return!cd(a,b,c,d,e[0],e[1])})}function cd(a,b,c,d,e,f){for(var g=0,h=a[c-d],k=a[c-d+1];b<c;b+=d){var m=a[b],n=a[b+1];k<=f?n>f&&0<(m-h)*(f-k)-(e-h)*(n-k)&&g++:n<=f&&0>(m-h)*(f-k)-(e-h)*(n-k)&&g--;h=m;k=n}return 0!==g}function dd(a,b,c,d,e,f){if(0===c.length||!cd(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if(cd(a,c[b-1],c[b],d,e,f))return!1;return!0};function ed(a,b,c,d,e,f,g){var h,k,m,n,p,q=e[f+1],v=[],t=c[0];m=a[t-d];p=a[t-d+1];for(h=b;h<t;h+=d){n=a[h];k=a[h+1];if(q<=p&&k<=q||p<=q&&q<=k)m=(q-p)/(k-p)*(n-m)+m,v.push(m);m=n;p=k}t=NaN;p=-Infinity;v.sort(Xa);m=v[0];h=1;for(k=v.length;h<k;++h){n=v[h];var B=Math.abs(n-m);B>p&&(m=(m+n)/2,dd(a,b,c,d,m,q)&&(t=m,p=B));m=n}isNaN(t)&&(t=e[f]);return g?(g.push(t,q),g):[t,q]};function fd(a,b,c,d,e,f){for(var g=[a[b],a[b+1]],h=[],k;b+d<c;b+=d){h[0]=a[b+d];h[1]=a[b+d+1];if(k=e.call(f,g,h))return k;g[0]=h[0];g[1]=h[1]}return!1};function gd(a,b,c,d,e){var f=Nb(xb(),a,b,c,d);return $b(e,f)?Fb(e,f)||f[0]>=e[0]&&f[2]<=e[2]||f[1]>=e[1]&&f[3]<=e[3]?!0:fd(a,b,c,d,function(a,b){var c=!1,d=Gb(e,a),f=Gb(e,b);if(1===d||1===f)c=!0;else{var p=e[0],q=e[1],v=e[2],t=e[3],B=b[0],F=b[1],X=(F-a[1])/(B-a[0]);f&2&&!(d&2)&&(c=B-(F-t)/X,c=c>=p&&c<=v);c||!(f&4)||d&4||(c=F-(B-v)*X,c=c>=q&&c<=t);c||!(f&8)||d&8||(c=B-(F-q)/X,c=c>=p&&c<=v);c||!(f&16)||d&16||(c=F-(B-p)*X,c=c>=q&&c<=t)}return c}):!1}
|
|
50
|
-
function hd(a,b,c,d,e){var f=c[0];if(!(gd(a,b,f,d,e)||cd(a,b,f,d,e[0],e[1])||cd(a,b,f,d,e[0],e[3])||cd(a,b,f,d,e[2],e[1])||cd(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(bd(a,c[b-1],c[b],d,e))return!1;return!0};function id(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],k=a[b+1],e=e+(h-f)*(k+g),f=h,g=k;return 0<e}function jd(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=id(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 kd(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],k=id(a,b,h,d);if(0===f?e&&k||!e&&!k:e&&!k||!e&&k)for(var k=a,m=h,n=d;b<m-n;){var p;for(p=0;p<n;++p){var q=k[b+p];k[b+p]=k[m-n+p];k[m-n+p]=q}b+=n;m-=n}b=h}return b}function ld(a,b,c,d){var e=0,f,g;f=0;for(g=b.length;f<g;++f)e=kd(a,e,b[f],c,d);return e};function C(a,b){x.call(this);this.a=[];this.B=-1;this.C=null;this.H=this.G=this.I=-1;this.j=null;this.ea(a,b)}u(C,x);l=C.prototype;l.rg=function(a){this.l?Za(this.l,a.l):this.l=a.l.slice();this.a.push(this.l.length);this.u()};l.clone=function(){var a=new C(null);a.P(this.V,this.l.slice(),this.a.slice());return a};l.La=function(a,b,c,d){if(d<Cb(this.F(),a,b))return d;this.G!=this.f&&(this.I=Math.sqrt(Sc(this.l,0,this.a,this.A,0)),this.G=this.f);return Uc(this.l,0,this.a,this.A,this.I,!0,a,b,c,d)};
|
|
52
|
-
l.nb=function(a,b){return dd(md(this),0,this.a,this.A,a,b)};l.pi=function(){return Pc(md(this),0,this.a,this.A)};l.R=function(a){var b;void 0!==a?(b=md(this).slice(),kd(b,0,this.a,this.A,a)):b=this.l;return Zc(b,0,this.a,this.A)};l.Ua=function(){return this.a};function nd(a){if(a.B!=a.f){var b=Xb(a.F());a.C=ed(md(a),0,a.a,a.A,b,0);a.B=a.f}return a.C}l.Jg=function(){return new A(nd(this))};l.Og=function(){return this.a.length};
|
|
53
|
-
l.Ye=function(a){if(0>a||this.a.length<=a)return null;var b=new y(null);Mc(b,this.V,this.l.slice(0===a?0:this.a[a-1],this.a[a]));b.u();return b};l.Kd=function(){var a=this.V,b=this.l,c=this.a,d=[],e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],k=new y(null),m=k;Mc(m,a,b.slice(e,h));m.u();d.push(k);e=h}return d};function md(a){if(a.H!=a.f){var b=a.l;jd(b,a.a,a.A)?a.j=b:(a.j=b.slice(),a.j.length=kd(a.j,0,a.a,a.A));a.H=a.f}return a.j}
|
|
54
|
-
l.Bb=function(a){var b=[],c=[];b.length=ad(this.l,0,this.a,this.A,Math.sqrt(a),b,0,c);a=new C(null);a.P("XY",b,c);return a};l.K=function(){return"Polygon"};l.sa=function(a){return hd(md(this),0,this.a,this.A,a)};l.ea=function(a,b){if(a){Nc(this,b,a,2);this.l||(this.l=[]);var c=Xc(this.l,0,a,this.A,this.a);this.l.length=0===c.length?0:c[c.length-1];this.u()}else this.P("XY",null,this.a)};l.P=function(a,b,c){Mc(this,a,b);this.a=c;this.u()};
|
|
55
|
-
function od(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 C(null);c.P("XY",b,[b.length]);return c};function D(a){Qa.call(this);a=a||{};this.i=[0,0];this.b=[];this.hd=this.hd.bind(this);var b={};b[pd]=void 0!==a.center?a.center:null;this.B=Bc(a.projection);var c,d,e,f=void 0!==a.minZoom?a.minZoom:0;c=void 0!==a.maxZoom?a.maxZoom:28;var g=void 0!==a.zoomFactor?a.zoomFactor:2;if(void 0!==a.resolutions)c=a.resolutions,d=c[0],e=c[c.length-1],c=eb(c);else{d=Bc(a.projection);e=d.F();var h=(e?Math.max(Vb(e),Wb(e)):360*ic.degrees/d.jb())/256/Math.pow(2,0),k=h/Math.pow(2,28);d=a.maxResolution;void 0!==d?
|
|
56
|
-
f=0:d=h/Math.pow(g,f);e=a.minResolution;void 0===e&&(e=void 0!==a.maxZoom?void 0!==a.maxResolution?d/Math.pow(g,c):h/Math.pow(g,c):k);c=f+Math.floor(Math.log(d/e)/Math.log(g));e=d/Math.pow(g,c-f);c=fb(g,d,c-f)}this.a=d;this.j=e;this.C=g;this.g=a.resolutions;this.o=f;f=void 0!==a.extent?qa(a.extent):sa;(void 0!==a.enableRotation?a.enableRotation:1)?(g=a.constrainRotation,g=void 0===g||!0===g?jb():!1===g?hb:"number"===typeof g?ib(g):hb):g=gb;this.v=new ta(f,c,g);void 0!==a.resolution?b[qd]=a.resolution:
|
|
57
|
-
void 0!==a.zoom&&(b[qd]=this.constrainResolution(this.a,a.zoom-this.o));b[rd]=void 0!==a.rotation?a.rotation:0;this.J(b)}u(D,Qa);l=D.prototype;
|
|
58
|
-
l.animate=function(a){var b=Date.now(),c=this.Ia().slice(),d=this.va(),e=this.Da(),f=arguments.length,g;1<f&&"function"===typeof arguments[f-1]&&(g=arguments[f-1],--f);for(var h=[],k=0;k<f;++k){var m=arguments[k],n={start:b,complete:!1,anchor:m.anchor,duration:void 0!==m.duration?m.duration:1E3,easing:m.easing||tb};m.center&&(n.qe=c,n.se=m.center,c=n.se);void 0!==m.zoom?(n.ed=d,n.fd=this.constrainResolution(this.a,m.zoom-this.o,0),d=n.fd):m.resolution&&(n.ed=d,n.fd=m.resolution,d=n.fd);void 0!==m.rotation&&
|
|
59
|
-
(n.re=e,n.Sf=m.rotation,e=n.Sf);n.wb=g;b+=n.duration;h.push(n)}this.b.push(h);sd(this,td,1);this.hd()};function ud(a){sd(a,td,-vd(a)[td]);for(var b=0,c=a.b.length;b<c;++b){var d=a.b[b];d[0].wb&&d[0].wb(!1)}a.b.length=0}
|
|
60
|
-
l.hd=function(){void 0!==this.s&&(cancelAnimationFrame(this.s),this.s=void 0);if(0<vd(this)[td]){for(var a=Date.now(),b=!1,c=this.b.length-1;0<=c;--c){for(var d=this.b[c],e=!0,f=0,g=d.length;f<g;++f){var h=d[f];if(!h.complete){b=a-h.start;b=0<h.duration?b/h.duration:1;1<=b?(h.complete=!0,b=1):e=!1;b=h.easing(b);if(h.qe){var k=h.qe[0],m=h.qe[1];this.set(pd,[k+b*(h.se[0]-k),m+b*(h.se[1]-m)])}h.ed&&(k=h.ed+b*(h.fd-h.ed),h.anchor&&this.set(pd,wd(this,k,h.anchor)),this.set(qd,k));void 0!==h.re&&(b=h.re+
|
|
61
|
-
b*(h.Sf-h.re),h.anchor&&this.set(pd,xd(this,b,h.anchor)),this.set(rd,b));b=!0;if(!h.complete)break}}e&&(this.b[c]=null,sd(this,td,-1),(d=d[0].wb)&&d(!0))}this.b=this.b.filter(Boolean);b&&void 0===this.s&&(this.s=requestAnimationFrame(this.hd))}};function xd(a,b,c){var d,e=a.Ia();void 0!==e&&(d=[e[0]-c[0],e[1]-c[1]],pb(d,b-a.Da()),mb(d,c));return d}function wd(a,b,c){var d,e=a.Ia();a=a.va();void 0!==e&&void 0!==a&&(d=[c[0]-b*(c[0]-e[0])/a,c[1]-b*(c[1]-e[1])/a]);return d}l.Ac=function(a){return this.v.center(a)};
|
|
62
|
-
l.constrainResolution=function(a,b,c){return this.v.resolution(a,b||0,c||0)};l.constrainRotation=function(a,b){return this.v.rotation(a,b||0)};l.Ia=function(){return this.get(pd)};function vd(a,b){return void 0!==b?(b[0]=a.i[0],b[1]=a.i[1],b):a.i.slice()}l.Ie=function(a){var b=this.Ia();ha(b,1);var c=this.va();ha(void 0!==c,2);var d=this.Da();ha(void 0!==d,3);return Yb(b,c,d,a)};l.ei=function(){return this.a};l.fi=function(){return this.j};l.gi=function(){return this.B};l.va=function(){return this.get(qd)};
|
|
63
|
-
l.hi=function(){return this.g};function yd(a,b){return Math.max(Vb(a)/b[0],Wb(a)/b[1])}function zd(a){var b=a.a,c=Math.log(b/a.j)/Math.log(2);return function(a){return b/Math.pow(2,a*c)}}l.Da=function(){return this.get(rd)};function Ad(a){var b=a.a,c=Math.log(b/a.j)/Math.log(2);return function(a){return Math.log(b/a)/Math.log(2)/c}}l.U=function(){var a=this.Ia(),b=this.B,c=this.va(),d=this.Da();return{center:a.slice(),projection:void 0!==b?b:null,resolution:c,rotation:d}};
|
|
64
|
-
l.bh=function(){var a,b=this.va();if(void 0!==b&&b>=this.j&&b<=this.a){a=this.o||0;var c,d;if(this.g){d=Ya(this.g,b,1);a+=d;if(d==this.g.length-1)return a;c=this.g[d];d=c/this.g[d+1]}else c=this.a,d=this.C;a+=Math.log(c/b)/Math.log(d)}return a};
|
|
65
|
-
l.zg=function(a,b,c){a instanceof x||(ha(Array.isArray(a),24),ha(!Ub(a),25),a=od(a));c=c||{};var d=void 0!==c.padding?c.padding:[0,0,0,0],e=void 0!==c.constrainResolution?c.constrainResolution:!0,f=void 0!==c.nearest?c.nearest:!1,g;void 0!==c.minResolution?g=c.minResolution:void 0!==c.maxZoom?g=this.constrainResolution(this.a,c.maxZoom-this.o,0):g=0;var h=a.l,k=this.Da(),m=Math.cos(-k),k=Math.sin(-k),n=Infinity,p=Infinity,q=-Infinity,v=-Infinity;a=a.A;for(var t=0,B=h.length;t<B;t+=a)var F=h[t]*m-
|
|
66
|
-
h[t+1]*k,X=h[t]*k+h[t+1]*m,n=Math.min(n,F),p=Math.min(p,X),q=Math.max(q,F),v=Math.max(v,X);b=yd([n,p,q,v],[b[0]-d[1]-d[3],b[1]-d[0]-d[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);k=-k;f=(n+q)/2+(d[1]-d[3])/2*b;d=(p+v)/2+(d[0]-d[2])/2*b;m=[f*m-d*k,d*m+f*k];void 0!==c.duration?this.animate({resolution:b,center:m,duration:c.duration,easing:c.easing}):(this.sb(b),this.Ya(m))};
|
|
67
|
-
l.xg=function(a,b,c){var d=this.Da(),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.va(),f=f+(b[0]/2-c[0])*g;a+=(c[1]-b[1]/2)*g;d=-d;this.Ya([f*e-a*d,a*e+f*d])};l.rotate=function(a,b){if(void 0!==b){var c=xd(this,a,b);this.Ya(c)}this.Zd(a)};l.Ya=function(a){this.set(pd,a);0<vd(this)[td]&&ud(this)};function sd(a,b,c){a.i[b]+=c;a.u()}l.sb=function(a){this.set(qd,a);0<vd(this)[td]&&ud(this)};l.Zd=function(a){this.set(rd,a);0<vd(this)[td]&&ud(this)};
|
|
68
|
-
l.$j=function(a){a=this.constrainResolution(this.a,a-this.o,0);this.sb(a)};var pd="center",qd="resolution",rd="rotation",td=0;function Bd(a,b,c,d){this.M=a;this.O=b;this.S=c;this.W=d}function Cd(a,b,c){return a.M<=b&&b<=a.O&&a.S<=c&&c<=a.W}function Dd(a,b){return a.M<=b.O&&a.O>=b.M&&a.S<=b.W&&a.W>=b.S};function Ed(a,b){if(Array.isArray(a))return a;void 0===b?b=[a,a]:b[0]=b[1]=a;return b};function Fd(a){this.minZoom=void 0!==a.minZoom?a.minZoom:0;this.c=a.resolutions;ha(db(this.c,function(a,b){return b-a}),17);this.maxZoom=this.c.length-1;this.a=void 0!==a.origin?a.origin:null;this.b=null;void 0!==a.origins&&(this.b=a.origins,ha(this.b.length==this.c.length,20));var b=a.extent;void 0===b||this.a||this.b||(this.a=Sb(b));ha(!this.a&&this.b||this.a&&!this.b,18);this.g=null;void 0!==a.tileSizes&&(this.g=a.tileSizes,ha(this.g.length==this.c.length,19));this.i=void 0!==a.tileSize?a.tileSize:
|
|
69
|
-
this.g?null:256;ha(!this.i&&this.g||this.i&&!this.g,22);this.s=void 0!==b?b:null;this.f=null;this.j=[0,0];void 0!==a.sizes?this.f=a.sizes.map(function(a){return new Bd(Math.min(0,a[0]),Math.max(a[0]-1,-1),Math.min(0,a[1]),Math.max(a[1]-1,-1))},this):b&&Gd(this,b)}var Hd=[0,0,0];l=Fd.prototype;l.Pe=function(a,b,c){a=Id(this,a,b);for(var d=a.M,e=a.O;d<=e;++d)for(var f=a.S,g=a.W;f<=g;++f)c([b,d,f])};l.F=function(){return this.s};l.Ze=function(){return this.maxZoom};l.$e=function(){return this.minZoom};
|
|
70
|
-
l.Nb=function(a){return this.a?this.a:this.b[a]};l.Ea=function(a){return this.c[a]};l.Gf=function(){return this.c};function Jd(a,b,c,d){Kd(a,b[0],b[1],c,!1,Hd);var e=Hd[1],f=Hd[2];Kd(a,b[2],b[3],c,!0,Hd);a=Hd[1];b=Hd[2];void 0!==d?(d.M=e,d.O=a,d.S=f,d.W=b):d=new Bd(e,a,f,b);return d}function Id(a,b,c,d){c=a.Ea(c);return Jd(a,b,c,d)}function Ld(a,b){var c=a.Nb(b[0]),d=a.Ea(b[0]),e=Ed(a.bb(b[0]),a.j);return[c[0]+(b[1]+.5)*e[0]*d,c[1]+(b[2]+.5)*e[1]*d]}
|
|
71
|
-
l.ab=function(a,b){var c=this.Nb(a[0]),d=this.Ea(a[0]),e=Ed(this.bb(a[0]),this.j),f=c[0]+a[1]*e[0]*d,c=c[1]+a[2]*e[1]*d;return Hb(f,c,f+e[0]*d,c+e[1]*d,b)};l.df=function(a,b,c){return Kd(this,a[0],a[1],b,!1,c)};
|
|
72
|
-
function Kd(a,b,c,d,e,f){var g=a.ec(d),h=d/a.Ea(g),k=a.Nb(g);a=Ed(a.bb(g),a.j);b=h*Math.floor((b-k[0])/d+(e?.5:0))/a[0];c=h*Math.floor((c-k[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}l.Pd=function(a,b,c){b=this.Ea(b);return Kd(this,a[0],a[1],b,!1,c)};l.bb=function(a){return this.i?this.i:this.g[a]};l.ec=function(a,b){return ja(Ya(this.c,a,b||0),this.minZoom,this.maxZoom)};
|
|
73
|
-
function Gd(a,b){for(var c=a.c.length,d=Array(c),e=a.minZoom;e<c;++e)d[e]=Id(a,b,e);a.f=d};function Md(a){var b=a.j;if(!b){var b=Nd(a),c=Od(b,void 0,void 0),b=new Fd({extent:b,origin:Sb(b),resolutions:c,tileSize:void 0});a.j=b}return b}function Pd(a){var b={};ua(b,void 0!==a?a:{});void 0===b.extent&&(b.extent=rc("EPSG:3857").F());b.resolutions=Od(b.extent,b.maxZoom,b.tileSize);delete b.maxZoom;return new Fd(b)}function Od(a,b,c){b=void 0!==b?b:42;var d=Wb(a);a=Vb(a);c=Ed(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}
|
|
74
|
-
function Nd(a){a=rc(a);var b=a.F();b||(a=180*ic.degrees/a.jb(),b=Hb(-a,-a,a,a));return b};function Qd(a){this.f=a.html;this.c=a.tileRanges?a.tileRanges:null};function E(a){Qa.call(this);this.a=a?a:[];Rd(this)}u(E,Qa);l=E.prototype;l.clear=function(){for(;0<this.cb();)this.pop()};l.Xd=function(a){var b,c;b=0;for(c=a.length;b<c;++b)this.push(a[b]);return this};l.forEach=function(a,b){this.a.forEach(a,b)};l.Uh=function(){return this.a};l.item=function(a){return this.a[a]};l.cb=function(){return this.get(Sd)};l.Ic=function(a,b){this.a.splice(a,0,b);Rd(this);this.c(new Td(Ud,b))};l.pop=function(){return this.je(this.cb()-1)};
|
|
75
|
-
l.push=function(a){var b=this.cb();this.Ic(b,a);return this.cb()};l.remove=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return this.je(c)};l.je=function(a){var b=this.a[a];this.a.splice(a,1);Rd(this);this.c(new Td(Vd,b));return b};l.Kj=function(a,b){var c=this.cb();if(a<c)c=this.a[a],this.a[a]=b,this.c(new Td(Vd,c)),this.c(new Td(Ud,b));else{for(;c<a;++c)this.Ic(c,void 0);this.Ic(a,b)}};function Rd(a){a.set(Sd,a.a.length)}var Sd="length",Ud="add",Vd="remove";
|
|
76
|
-
function Td(a,b){Ka.call(this,a);this.element=b}u(Td,Ka);var Wd=/^#(?:[0-9a-f]{3}){1,2}$/i,Xd=/^([a-z]*)$/i;function Yd(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}
|
|
77
|
-
var $d=function(){var a={},b=0;return function(c){var d;if(a.hasOwnProperty(c))d=a[c];else{if(1024<=b){d=0;for(var e in a)0===(d++&3)&&(delete a[e],--b)}d=c;var f;Xd.exec(d)&&(e=document.createElement("div"),e.style.color=d,document.body.appendChild(e),d=getComputedStyle(e).color,document.body.removeChild(e));if(Wd.exec(d)){f=d.length-1;ha(3==f||6==f,54);var g=3==f?1:2;f=parseInt(d.substr(1+0*g,g),16);e=parseInt(d.substr(1+1*g,g),16);d=parseInt(d.substr(1+2*g,g),16);1==g&&(f=(f<<4)+f,e=(e<<4)+e,d=
|
|
78
|
-
(d<<4)+d);f=[f,e,d,1]}else 0==d.indexOf("rgba(")?(d=d.slice(5,-1).split(",").map(Number),f=Zd(d)):0==d.indexOf("rgb(")?(d=d.slice(4,-1).split(",").map(Number),d.push(1),f=Zd(d)):ha(!1,14);d=f;a[c]=d;++b}return d}}();function Zd(a){var b=[];b[0]=ja(a[0]+.5|0,0,255);b[1]=ja(a[1]+.5|0,0,255);b[2]=ja(a[2]+.5|0,0,255);b[3]=ja(a[3],0,1);return b};function ae(a){return"string"===typeof a||a instanceof CanvasPattern||a instanceof CanvasGradient?a:Yd(a)};function be(a,b){var c=document.createElement("CANVAS");a&&(c.width=a);b&&(c.height=b);return c.getContext("2d")}function ce(a){a&&a.parentNode&&a.parentNode.removeChild(a)};function de(a,b,c){Ka.call(this,a);this.map=b;this.frameState=void 0!==c?c:null}u(de,Ka);function ee(a){Qa.call(this);this.element=a.element?a.element:null;this.a=this.I=null;this.v=[];this.render=a.render?a.render:ba;a.target&&(a=a.target,this.I="string"===typeof a?document.getElementById(a):a)}u(ee,Qa);ee.prototype.na=function(){ce(this.element);Qa.prototype.na.call(this)};
|
|
79
|
-
ee.prototype.setMap=function(a){this.a&&ce(this.element);for(var b=0,c=this.v.length;b<c;++b)Ba(this.v[b]);this.v.length=0;if(this.a=a)(this.I?this.I:a.B).appendChild(this.element),this.render!==ba&&this.v.push(w(a,"postrender",this.render,this)),a.render()};function fe(a){a=a?a:{};this.G=document.createElement("UL");this.j=document.createElement("LI");this.G.appendChild(this.j);this.j.style.display="none";this.i=void 0!==a.collapsed?a.collapsed:!0;this.B=void 0!==a.collapsible?a.collapsible:!0;this.B||(this.i=!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.o=document.createElement("span"),this.o.textContent=d):this.o=
|
|
80
|
-
d;d=void 0!==a.label?a.label:"i";"string"===typeof d?(this.s=document.createElement("span"),this.s.textContent=d):this.s=d;var e=this.B&&!this.i?this.o:this.s,d=document.createElement("button");d.setAttribute("type","button");d.title=c;d.appendChild(e);w(d,"click",this.T,this);c=document.createElement("div");c.className=b+" ol-unselectable ol-control"+(this.i&&this.B?" ol-collapsed":"")+(this.B?"":" ol-uncollapsible");c.appendChild(this.G);c.appendChild(d);ee.call(this,{element:c,render:a.render?
|
|
81
|
-
a.render:ge,target:a.target});this.C=!0;this.g={};this.b={};this.H={}}u(fe,ee);
|
|
82
|
-
function ge(a){if(a=a.frameState){var b,c,d,e,f,g,h,k,m,n,p,q=a.layerStatesArray,v=ua({},a.attributions),t={},B={},F=a.viewState.projection;c=0;for(b=q.length;c<b;c++)if(g=q[c].layer.ka())if(n=ea(g).toString(),m=g.o)for(d=0,e=m.length;d<e;d++)if(h=m[d],k=ea(h).toString(),!(k in v)){if(f=a.usedTiles[n]){var X=g.kb(F);a:{p=h;var ca=F;if(p.c){var da,Aa,oa,ya=void 0;for(ya in f)if(ya in p.c){oa=f[ya];var z;da=0;for(Aa=p.c[ya].length;da<Aa;++da){z=p.c[ya][da];if(Dd(z,oa)){p=!0;break a}var na=Id(X,Nd(ca),
|
|
83
|
-
parseInt(ya,10)),ra=na.O-na.M+1;if(oa.M<na.M||oa.O>na.O)if(Dd(z,new Bd(ma(oa.M,ra),ma(oa.O,ra),oa.S,oa.W))||oa.O-oa.M+1>ra&&Dd(z,na)){p=!0;break a}}}p=!1}else p=!0}}else p=!1;p?(k in t&&delete t[k],p=h.f,p in B||(B[p]=!0,v[k]=h)):t[k]=h}b=[v,t];c=b[0];b=b[1];for(var M in this.g)M in c?(this.b[M]||(this.g[M].style.display="",this.b[M]=!0),delete c[M]):M in b?(this.b[M]&&(this.g[M].style.display="none",delete this.b[M]),delete b[M]):(ce(this.g[M]),delete this.g[M],delete this.b[M]);for(M in c)d=document.createElement("LI"),
|
|
84
|
-
d.innerHTML=c[M].f,this.G.appendChild(d),this.g[M]=d,this.b[M]=!0;for(M in b)d=document.createElement("LI"),d.innerHTML=b[M].f,d.style.display="none",this.G.appendChild(d),this.g[M]=d;M=!xa(this.b)||!xa(a.logos);this.C!=M&&(this.element.style.display=M?"":"none",this.C=M);M&&xa(this.b)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only");var ia;a=a.logos;M=this.H;for(ia in M)ia in a||(ce(M[ia]),delete M[ia]);for(var Ea in a)b=a[Ea],b instanceof HTMLElement&&(this.j.appendChild(b),
|
|
85
|
-
M[Ea]=b),Ea in M||(ia=new Image,ia.src=Ea,""===b?c=ia:(c=document.createElement("a"),c.href=b,c.appendChild(ia)),this.j.appendChild(c),M[Ea]=c);this.j.style.display=xa(a)?"none":""}else this.C&&(this.element.style.display="none",this.C=!1)}fe.prototype.T=function(a){a.preventDefault();this.element.classList.toggle("ol-collapsed");if(this.i){a=this.s;var b=a.parentNode;b&&b.replaceChild(this.o,a)}else a=this.o,(b=a.parentNode)&&b.replaceChild(this.s,a);this.i=!this.i};function he(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-rotate",c=void 0!==a.label?a.label:"\u21e7";this.b=null;"string"===typeof c?(this.b=document.createElement("span"),this.b.className="ol-compass",this.b.textContent=c):(this.b=c,this.b.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.b);w(c,"click",he.prototype.s,this);d=document.createElement("div");
|
|
86
|
-
d.className=b+" ol-unselectable ol-control";d.appendChild(c);b=a.render?a.render:ie;this.i=a.resetNorth?a.resetNorth:void 0;ee.call(this,{element:d,render:b,target:a.target});this.j=void 0!==a.duration?a.duration:250;this.g=void 0!==a.autoHide?a.autoHide:!0;this.o=void 0;this.g&&this.element.classList.add("ol-hidden")}u(he,ee);he.prototype.s=function(a){a.preventDefault();void 0!==this.i?this.i():(a=this.a.$())&&void 0!==a.Da()&&(0<this.j?a.animate({rotation:0,duration:this.j,easing:sb}):a.Zd(0))};
|
|
87
|
-
function ie(a){if(a=a.frameState){a=a.viewState.rotation;if(a!=this.o){var b="rotate("+a+"rad)";if(this.g){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.b.style.msTransform=b;this.b.style.webkitTransform=b;this.b.style.transform=b}this.o=a}};function je(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);w(h,"click",je.prototype.g.bind(this,
|
|
88
|
-
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);w(d,"click",je.prototype.g.bind(this,-c));c=document.createElement("div");c.className=b+" ol-unselectable ol-control";c.appendChild(h);c.appendChild(d);ee.call(this,{element:c,target:a.target});this.b=void 0!==a.duration?a.duration:250}u(je,ee);
|
|
89
|
-
je.prototype.g=function(a,b){b.preventDefault();var c=this.a.$();if(c){var d=c.va();d&&(d=c.constrainResolution(d,a),0<this.b?(0<vd(c)[td]&&ud(c),c.animate({resolution:d,duration:this.b,easing:sb})):c.sb(d))}};function ke(a){a=a?a:{};var b=new E;(void 0!==a.zoom?a.zoom:1)&&b.push(new je(a.zoomOptions));(void 0!==a.rotate?a.rotate:1)&&b.push(new he(a.rotateOptions));(void 0!==a.attribution?a.attribution:1)&&b.push(new fe(a.attributionOptions));return b};function le(a,b,c,d,e){de.call(this,a,b,e);this.originalEvent=c;this.pixel=b.Hd(c);this.coordinate=b.Na(this.pixel);this.dragging=void 0!==d?d:!1}u(le,de);le.prototype.preventDefault=function(){de.prototype.preventDefault.call(this);this.originalEvent.preventDefault()};le.prototype.stopPropagation=function(){de.prototype.stopPropagation.call(this);this.originalEvent.stopPropagation()};
|
|
90
|
-
var me={uk:"singleclick",ik:"click",jk:"dblclick",mk:"pointerdrag",qk:"pointermove",lk:"pointerdown",tk:"pointerup",sk:"pointerover",rk:"pointerout",nk:"pointerenter",pk:"pointerleave",kk:"pointercancel"};function oe(a,b,c,d,e){le.call(this,a,b,c.c,d,e);this.c=c}u(oe,le);var pe="undefined"!==typeof navigator?navigator.userAgent.toLowerCase():"",qe=-1!==pe.indexOf("firefox"),re=-1!==pe.indexOf("safari")&&-1==pe.indexOf("chrom"),se=-1!==pe.indexOf("webkit")&&-1==pe.indexOf("edge"),te=-1!==pe.indexOf("macintosh"),ue=window.devicePixelRatio||1,ve=!1,we=function(){if(!("HTMLCanvasElement"in window))return!1;try{var a=document.createElement("CANVAS").getContext("2d");return a?(void 0!==a.setLineDash&&(ve=!0),!0):!1}catch(b){return!1}}(),xe="ontouchstart"in window,ye="PointerEvent"in
|
|
91
|
-
window,ze=!!navigator.msPointerEnabled;function Ae(a,b){this.c=a;this.g=b};function Be(a){Ae.call(this,a,{mousedown:this.Eh,mousemove:this.Fh,mouseup:this.Ih,mouseover:this.Hh,mouseout:this.Gh});this.f=a.a;this.a=[]}u(Be,Ae);function Ce(a,b){for(var c=a.a,d=b.clientX,e=b.clientY,f=0,g=c.length,h;f<g&&(h=c[f]);f++){var k=Math.abs(e-h[1]);if(25>=Math.abs(d-h[0])&&25>=k)return!0}return!1}function De(a){var b=Ee(a,a),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.isPrimary=!0;b.pointerType="mouse";return b}l=Be.prototype;
|
|
92
|
-
l.Eh=function(a){if(!Ce(this,a)){if((1).toString()in this.f){var b=De(a);Fe(this.c,"pointercancel",b,a);delete this.f[(1).toString()]}b=De(a);this.f[(1).toString()]=a;Fe(this.c,"pointerdown",b,a)}};l.Fh=function(a){if(!Ce(this,a)){var b=De(a);Fe(this.c,"pointermove",b,a)}};l.Ih=function(a){if(!Ce(this,a)){var b=this.f[(1).toString()];b&&b.button===a.button&&(b=De(a),Fe(this.c,"pointerup",b,a),delete this.f[(1).toString()])}};l.Hh=function(a){if(!Ce(this,a)){var b=De(a);Ge(this.c,b,a)}};
|
|
93
|
-
l.Gh=function(a){if(!Ce(this,a)){var b=De(a);He(this.c,b,a)}};function Ie(a){Ae.call(this,a,{MSPointerDown:this.Nh,MSPointerMove:this.Oh,MSPointerUp:this.Rh,MSPointerOut:this.Ph,MSPointerOver:this.Qh,MSPointerCancel:this.Mh,MSGotPointerCapture:this.Kh,MSLostPointerCapture:this.Lh});this.f=a.a;this.a=["","unavailable","touch","pen","mouse"]}u(Ie,Ae);function Je(a,b){var c=b;"number"===typeof b.pointerType&&(c=Ee(b,b),c.pointerType=a.a[b.pointerType]);return c}l=Ie.prototype;
|
|
94
|
-
l.Nh=function(a){this.f[a.pointerId.toString()]=a;var b=Je(this,a);Fe(this.c,"pointerdown",b,a)};l.Oh=function(a){var b=Je(this,a);Fe(this.c,"pointermove",b,a)};l.Rh=function(a){var b=Je(this,a);Fe(this.c,"pointerup",b,a);delete this.f[a.pointerId.toString()]};l.Ph=function(a){var b=Je(this,a);He(this.c,b,a)};l.Qh=function(a){var b=Je(this,a);Ge(this.c,b,a)};l.Mh=function(a){var b=Je(this,a);Fe(this.c,"pointercancel",b,a);delete this.f[a.pointerId.toString()]};
|
|
95
|
-
l.Lh=function(a){this.c.c(new Ke("lostpointercapture",a,a))};l.Kh=function(a){this.c.c(new Ke("gotpointercapture",a,a))};function Le(a){Ae.call(this,a,{pointerdown:this.nj,pointermove:this.oj,pointerup:this.rj,pointerout:this.pj,pointerover:this.qj,pointercancel:this.mj,gotpointercapture:this.dh,lostpointercapture:this.Dh})}u(Le,Ae);l=Le.prototype;l.nj=function(a){Me(this.c,a)};l.oj=function(a){Me(this.c,a)};l.rj=function(a){Me(this.c,a)};l.pj=function(a){Me(this.c,a)};l.qj=function(a){Me(this.c,a)};l.mj=function(a){Me(this.c,a)};l.Dh=function(a){Me(this.c,a)};l.dh=function(a){Me(this.c,a)};function Ke(a,b,c){Ka.call(this,a);this.c=b;a=c?c:{};this.buttons=Ne(a);this.pressure=Oe(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:
|
|
96
|
-
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()})}u(Ke,Ka);function Ne(a){if(a.buttons||Pe)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}
|
|
97
|
-
function Oe(a,b){var c=0;a.pressure?c=a.pressure:c=b?.5:0;return c}var Pe=!1;try{Pe=1===(new MouseEvent("click",{buttons:1})).buttons}catch(a){};function Qe(a,b){Ae.call(this,a,{touchstart:this.fk,touchmove:this.ek,touchend:this.dk,touchcancel:this.ck});this.f=a.a;this.j=b;this.a=void 0;this.i=0;this.b=void 0}u(Qe,Ae);l=Qe.prototype;l.Lf=function(){this.i=0;this.b=void 0};
|
|
98
|
-
function Re(a,b,c){b=Ee(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.a===c.identifier;b.pointerType="touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b}
|
|
99
|
-
function Se(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=Re(a,b,e[g]),h.preventDefault=d,c.call(a,b,h)}
|
|
100
|
-
l.fk=function(a){var b=a.touches,c=Object.keys(this.f),d=c.length;if(d>=b.length){var e=[],f,g,h;for(f=0;f<d;++f){g=c[f];h=this.f[g];var k;if(!(k=1==g))a:{k=b.length;for(var m,n=0;n<k;n++)if(m=b[n],m.identifier===g-2){k=!0;break a}k=!1}k||e.push(h.out)}for(f=0;f<e.length;++f)this.ud(a,e[f])}b=a.changedTouches[0];c=Object.keys(this.f).length;if(0===c||1===c&&(1).toString()in this.f)this.a=b.identifier,void 0!==this.b&&clearTimeout(this.b);Te(this,a);this.i++;Se(this,a,this.ij)};
|
|
101
|
-
l.ij=function(a,b){this.f[b.pointerId]={target:b.target,out:b,Hf:b.target};var c=this.c;b.bubbles=!0;Fe(c,"pointerover",b,a);c=this.c;b.bubbles=!1;Fe(c,"pointerenter",b,a);Fe(this.c,"pointerdown",b,a)};l.ek=function(a){a.preventDefault();Se(this,a,this.Jh)};
|
|
102
|
-
l.Jh=function(a,b){var c=this.f[b.pointerId];if(c){var d=c.out,e=c.Hf;Fe(this.c,"pointermove",b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(He(this.c,d,a),Ge(this.c,b,a)):(b.target=e,b.relatedTarget=null,this.ud(a,b)));c.out=b;c.Hf=b.target}};l.dk=function(a){Te(this,a);Se(this,a,this.gk)};
|
|
103
|
-
l.gk=function(a,b){Fe(this.c,"pointerup",b,a);this.c.out(b,a);Ue(this.c,b,a);delete this.f[b.pointerId];b.isPrimary&&(this.a=void 0,this.b=setTimeout(this.Lf.bind(this),200))};l.ck=function(a){Se(this,a,this.ud)};l.ud=function(a,b){Fe(this.c,"pointercancel",b,a);this.c.out(b,a);Ue(this.c,b,a);delete this.f[b.pointerId];b.isPrimary&&(this.a=void 0,this.b=setTimeout(this.Lf.bind(this),200))};
|
|
104
|
-
function Te(a,b){var c=a.j.a,d=b.changedTouches[0];if(a.a===d.identifier){var e=[d.clientX,d.clientY];c.push(e);setTimeout(function(){var a=c.indexOf(e);-1<a&&c.splice(a,1)},2500)}};function Ve(a){Ma.call(this);this.i=a;this.a={};this.g={};this.f=[];ye?We(this,new Le(this)):ze?We(this,new Ie(this)):(a=new Be(this),We(this,a),xe&&We(this,new Qe(this,a)));a=this.f.length;for(var b,c=0;c<a;c++)b=this.f[c],Xe(this,Object.keys(b.g))}u(Ve,Ma);function We(a,b){var c=Object.keys(b.g);c&&(c.forEach(function(a){var c=b.g[a];c&&(this.g[a]=c.bind(b))},a),a.f.push(b))}Ve.prototype.b=function(a){var b=this.g[a.type];b&&b(a)};
|
|
105
|
-
function Xe(a,b){b.forEach(function(a){w(this.i,a,this.b,this)},a)}function Ye(a,b){b.forEach(function(a){Ha(this.i,a,this.b,this)},a)}function Ee(a,b){for(var c={},d,e=0,f=Ze.length;e<f;e++)d=Ze[e][0],c[d]=a[d]||b[d]||Ze[e][1];return c}function Ue(a,b,c){b.bubbles=!1;Fe(a,"pointerleave",b,c)}Ve.prototype.out=function(a,b){a.bubbles=!0;Fe(this,"pointerout",a,b)};function He(a,b,c){a.out(b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||Ue(a,b,c)}
|
|
106
|
-
function Ge(a,b,c){b.bubbles=!0;Fe(a,"pointerover",b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||(b.bubbles=!1,Fe(a,"pointerenter",b,c))}function Fe(a,b,c,d){a.c(new Ke(b,d,c))}function Me(a,b){a.c(new Ke(b.type,b,b))}Ve.prototype.na=function(){for(var a=this.f.length,b,c=0;c<a;c++)b=this.f[c],Ye(this,Object.keys(b.g));Ma.prototype.na.call(this)};
|
|
107
|
-
var Ze=[["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 $e(a){Ma.call(this);this.b=a;this.j=0;this.D=!1;this.g=[];this.a=null;a=this.b.a;this.B=0;this.v={};this.i=new Ve(a);this.f=null;this.o=w(this.i,"pointerdown",this.qh,this);this.s=w(this.i,"pointermove",this.zj,this)}u($e,Ma);function af(a,b){var c=new oe("click",a.b,b);a.c(c);0!==a.j?(clearTimeout(a.j),a.j=0,c=new oe("dblclick",a.b,b),a.c(c)):a.j=setTimeout(function(){this.j=0;var a=new oe("singleclick",this.b,b);this.c(a)}.bind(a),250)}
|
|
108
|
-
function bf(a,b){"pointerup"==b.type||"pointercancel"==b.type?delete a.v[b.pointerId]:"pointerdown"==b.type&&(a.v[b.pointerId]=!0);a.B=Object.keys(a.v).length}l=$e.prototype;l.hf=function(a){bf(this,a);var b=new oe("pointerup",this.b,a);this.c(b);!this.D&&0===a.button&&af(this,this.a);0===this.B&&(this.g.forEach(Ba),this.g.length=0,this.D=!1,this.a=null,Ja(this.f),this.f=null)};
|
|
109
|
-
l.qh=function(a){bf(this,a);var b=new oe("pointerdown",this.b,a);this.c(b);this.a=a;0===this.g.length&&(this.f=new Ve(document),this.g.push(w(this.f,"pointermove",this.ai,this),w(this.f,"pointerup",this.hf,this),w(this.i,"pointercancel",this.hf,this)))};l.ai=function(a){if(a.clientX!=this.a.clientX||a.clientY!=this.a.clientY){this.D=!0;var b=new oe("pointerdrag",this.b,a,this.D);this.c(b)}a.preventDefault()};
|
|
110
|
-
l.zj=function(a){this.c(new oe(a.type,this.b,a,!(!this.a||a.clientX==this.a.clientX&&a.clientY==this.a.clientY)))};l.na=function(){this.s&&(Ba(this.s),this.s=null);this.o&&(Ba(this.o),this.o=null);this.g.forEach(Ba);this.g.length=0;this.f&&(Ja(this.f),this.f=null);this.i&&(Ja(this.i),this.i=null);Ma.prototype.na.call(this)};function cf(a,b){Ma.call(this);this.Sa=a;this.state=b;this.f=null;this.key=""}u(cf,Ma);cf.prototype.u=function(){this.c("change")};cf.prototype.getKey=function(){return this.key+"/"+this.Sa};cf.prototype.U=function(){return this.state};function df(a,b){this.o=a;this.b=b;this.c=[];this.f=[];this.a={}}df.prototype.clear=function(){this.c.length=0;this.f.length=0;va(this.a)};df.prototype.j=function(a){ha(!(this.b(a)in this.a),31);var b=this.o(a);return Infinity!=b?(this.c.push(a),this.f.push(b),this.a[this.b(a)]=!0,ef(this,0,this.c.length-1),!0):!1};function ff(a,b){for(var c=a.c,d=a.f,e=c.length,f=c[b],g=d[b],h=b;b<e>>1;){var k=2*b+1,m=2*b+2,k=m<e&&d[m]<d[k]?m:k;c[b]=c[k];d[b]=d[k];b=k}c[b]=f;d[b]=g;ef(a,h,b)}
|
|
111
|
-
function ef(a,b,c){var d=a.c;a=a.f;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 gf(a,b){df.call(this,function(b){return a.apply(null,b)},function(a){return a[0].getKey()});this.s=b;this.i=0;this.g={}}u(gf,df);gf.prototype.j=function(a){var b=df.prototype.j.call(this,a);b&&w(a[0],"change",this.D,this);return b};gf.prototype.D=function(a){a=a.target;var b=a.U();if(2===b||3===b||4===b||5===b)Ha(a,"change",this.D,this),a=a.getKey(),a in this.g&&(delete this.g[a],--this.i),this.s()};
|
|
112
|
-
function hf(a,b,c){for(var d=0,e,f;a.i<b&&d<c&&0<a.c.length;){e=a;var g=e.c,h=e.f;f=g[0];1==g.length?(g.length=0,h.length=0):(g[0]=g.pop(),h[0]=h.pop(),ff(e,0));g=e.b(f);delete e.a[g];e=f[0];f=e.getKey();0!==e.U()||f in a.g||(a.g[f]=!0,++a.i,++d,e.load())}};function jf(){this.c=[];this.f=this.a=0};function kf(a){Qa.call(this);this.s=null;this.ob(!0);this.handleEvent=a.handleEvent}u(kf,Qa);kf.prototype.I=function(){return this.get(lf)};kf.prototype.ja=function(){return this.s};kf.prototype.ob=function(a){this.set(lf,a)};kf.prototype.setMap=function(a){this.s=a};function mf(a,b,c,d){if(void 0!==b){var e=a.Da(),f=a.Ia();void 0!==e&&f&&0<d?a.animate({rotation:b,anchor:c,duration:d,easing:sb}):a.rotate(b,c)}}function nf(a,b,c,d){var e=a.va();b=a.constrainResolution(e,b,0);of(a,b,c,d)}
|
|
113
|
-
function of(a,b,c,d){if(b){var e=a.va(),f=a.Ia();void 0!==e&&f&&b!==e&&d?a.animate({resolution:b,anchor:c,duration:d,easing:sb}):(c&&(c=wd(a,b,c),a.Ya(c)),a.sb(b))}}var lf="active";function pf(a){a=a?a:{};this.a=a.delta?a.delta:1;kf.call(this,{handleEvent:qf});this.b=void 0!==a.duration?a.duration:250}u(pf,kf);function qf(a){var b=!1,c=a.originalEvent;if("dblclick"==a.type){var b=a.coordinate,c=c.shiftKey?-this.a:this.a,d=a.map.$();nf(d,c,b,this.b);a.preventDefault();b=!0}return!b};function rf(a){a=a.originalEvent;return a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}function sf(a){a=a.originalEvent;return 0==a.button&&!(se&&te&&a.ctrlKey)}function tf(a){return"pointermove"==a.type}function uf(a){return"singleclick"==a.type}function vf(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&!a.shiftKey}function wf(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}
|
|
114
|
-
function xf(a){a=a.originalEvent.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a}function yf(a){ha(a.c,56);return"mouse"==a.c.pointerType}function zf(a){a=a.c;return a.isPrimary&&0===a.button};function Af(a){a=a?a:{};kf.call(this,{handleEvent:a.handleEvent?a.handleEvent:Bf});this.od=a.handleDownEvent?a.handleDownEvent:dc;this.pd=a.handleDragEvent?a.handleDragEvent:ba;this.md=a.handleMoveEvent?a.handleMoveEvent:ba;this.td=a.handleUpEvent?a.handleUpEvent:dc;this.G=!1;this.Z={};this.i=[]}u(Af,kf);function Cf(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]}
|
|
115
|
-
function Bf(a){if(!(a instanceof oe))return!0;var b=!1,c=a.type;if("pointerdown"===c||"pointerdrag"===c||"pointerup"===c)c=a.c,"pointerup"==a.type?delete this.Z[c.pointerId]:"pointerdown"==a.type?this.Z[c.pointerId]=c:c.pointerId in this.Z&&(this.Z[c.pointerId]=c),this.i=wa(this.Z);this.G&&("pointerdrag"==a.type?this.pd(a):"pointerup"==a.type&&(this.G=this.td(a)));"pointerdown"==a.type?(this.G=a=this.od(a),b=this.Qb(a)):"pointermove"==a.type&&this.md(a);return!b}Af.prototype.Qb=function(a){return a};function Df(a){Af.call(this,{handleDownEvent:Ef,handleDragEvent:Ff,handleUpEvent:Gf});a=a?a:{};this.a=a.kinetic;this.b=null;this.j=a.condition?a.condition:vf;this.g=!1}u(Df,Af);function Ff(a){var b=Cf(this.i);this.a&&this.a.c.push(b[0],b[1],Date.now());if(this.b){var c=this.b[0]-b[0],d=b[1]-this.b[1];a=a.map.$();var e=a.U(),d=c=[c,d],f=e.resolution;d[0]*=f;d[1]*=f;pb(c,e.rotation);mb(c,e.center);c=a.Ac(c);a.Ya(c)}this.b=b}
|
|
116
|
-
function Gf(a){var b=a.map;a=b.$();if(0===this.i.length){var c;if(c=!this.g&&this.a)if(c=this.a,6>c.c.length)c=!1;else{var d=Date.now()-100,e=c.c.length-3;if(c.c[e+2]<d)c=!1;else{for(var f=e-3;0<f&&c.c[f+2]>d;)f-=3;var d=c.c[e+2]-c.c[f+2],g=c.c[e]-c.c[f],e=c.c[e+1]-c.c[f+1];c.a=Math.atan2(e,g);c.f=Math.sqrt(g*g+e*e)/d;c=.05<c.f}}c&&(c=(.05-this.a.f)/-.005,e=this.a.a,f=a.Ia(),f=b.Ra(f),b=b.Na([f[0]-c*Math.cos(e),f[1]-c*Math.sin(e)]),a.animate({center:a.Ac(b),duration:500,easing:sb}));sd(a,1,-1);return!1}this.b=
|
|
117
|
-
null;return!0}function Ef(a){if(0<this.i.length&&this.j(a)){var b=a.map.$();this.b=null;this.G||sd(b,1,1);b.Ya(a.frameState.viewState.center);this.a&&(a=this.a,a.c.length=0,a.a=0,a.f=0);this.g=1<this.i.length;return!0}return!1}Df.prototype.Qb=dc;function Hf(a){a=a?a:{};Af.call(this,{handleDownEvent:If,handleDragEvent:Jf,handleUpEvent:Kf});this.b=a.condition?a.condition:rf;this.a=void 0;this.g=void 0!==a.duration?a.duration:250}u(Hf,Af);function Jf(a){if(yf(a)){var b=a.map,c=b.Fb();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(void 0!==this.a){a=c-this.a;var b=b.$(),d=b.Da();mf(b,d-a)}this.a=c}}function Kf(a){if(!yf(a))return!0;a=a.map.$();sd(a,1,-1);var b=a.Da(),c=this.g,b=a.constrainRotation(b,0);mf(a,b,void 0,c);return!1}
|
|
118
|
-
function If(a){return yf(a)&&sf(a)&&this.b(a)?(sd(a.map.$(),1,1),this.a=void 0,!0):!1}Hf.prototype.Qb=dc;function Lf(a){this.b=null;this.f=document.createElement("div");this.f.style.position="absolute";this.f.className="ol-box "+a;this.a=this.g=this.c=null}u(Lf,Ia);Lf.prototype.na=function(){this.setMap(null)};function Mf(a){var b=a.g,c=a.a;a=a.f.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"}
|
|
119
|
-
Lf.prototype.setMap=function(a){if(this.c){this.c.C.removeChild(this.f);var b=this.f.style;b.left=b.top=b.width=b.height="inherit"}(this.c=a)&&this.c.C.appendChild(this.f)};function Nf(a){var b=a.g,c=a.a,b=[b,[b[0],c[1]],c,[c[0],b[1]]].map(a.c.Na,a.c);b[4]=b[0].slice();a.b?a.b.ea([b]):a.b=new C([b])}Lf.prototype.L=function(){return this.b};function Of(a){Af.call(this,{handleDownEvent:Pf,handleDragEvent:Qf,handleUpEvent:Rf});a=a?a:{};this.a=new Lf(a.className||"ol-dragbox");this.b=null;this.o=a.condition?a.condition:cc;this.j=a.boxEndCondition?a.boxEndCondition:Sf}u(Of,Af);function Sf(a,b,c){a=c[0]-b[0];b=c[1]-b[1];return 64<=a*a+b*b}function Qf(a){if(yf(a)){var b=this.a,c=a.pixel;b.g=this.b;b.a=c;Nf(b);Mf(b);this.c(new Tf(Uf,a.coordinate,a))}}Of.prototype.L=function(){return this.a.L()};Of.prototype.g=ba;
|
|
120
|
-
function Rf(a){if(!yf(a))return!0;this.a.setMap(null);this.j(a,this.b,a.pixel)&&(this.g(a),this.c(new Tf(Vf,a.coordinate,a)));return!1}function Pf(a){if(yf(a)&&sf(a)&&this.o(a)){this.b=a.pixel;this.a.setMap(a.map);var b=this.a,c=this.b;b.g=this.b;b.a=c;Nf(b);Mf(b);this.c(new Tf(Wf,a.coordinate,a));return!0}return!1}var Wf="boxstart",Uf="boxdrag",Vf="boxend";function Tf(a,b,c){Ka.call(this,a);this.coordinate=b;this.mapBrowserEvent=c}u(Tf,Ka);function Xf(a){a=a?a:{};var b=a.condition?a.condition:wf;this.v=void 0!==a.duration?a.duration:200;this.B=void 0!==a.out?a.out:!1;Of.call(this,{condition:b,className:a.className||"ol-dragzoom"})}u(Xf,Of);Xf.prototype.g=function(){var a=this.s,b=a.$(),c=a.Fb(),d=this.L().F();if(this.B){var e=b.Ie(c),d=[a.Ra(Pb(d)),a.Ra(Rb(d))],a=Ib(void 0),f,g;f=0;for(g=d.length;f<g;++f)zb(a,d[f]);ac(e,1/yd(a,c));d=e}c=b.constrainResolution(yd(d,c));b.animate({resolution:c,center:Xb(d),duration:this.v,easing:sb})};function Yf(a){kf.call(this,{handleEvent:Zf});a=a||{};this.a=function(a){return vf(a)&&xf(a)};this.b=void 0!==a.condition?a.condition:this.a;this.g=void 0!==a.duration?a.duration:100;this.i=void 0!==a.pixelDelta?a.pixelDelta:128}u(Yf,kf);
|
|
121
|
-
function Zf(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 b=a.map.$(),d=b.va()*this.i,e=0,f=0;40==c?f=-d:37==c?e=-d:39==c?e=d:f=d;d=[e,f];pb(d,b.Da());c=this.g;if(e=b.Ia())d=b.Ac([e[0]+d[0],e[1]+d[1]]),c?b.animate({duration:c,easing:ub,center:d}):b.Ya(d);a.preventDefault();b=!0}}return!b};function $f(a){kf.call(this,{handleEvent:ag});a=a?a:{};this.b=a.condition?a.condition:xf;this.a=a.delta?a.delta:1;this.g=void 0!==a.duration?a.duration:100}u($f,kf);function ag(a){var b=!1;if("keydown"==a.type||"keypress"==a.type){var c=a.originalEvent.charCode;!this.b(a)||43!=c&&45!=c||(b=43==c?this.a:-this.a,c=a.map.$(),nf(c,b,void 0,this.g),a.preventDefault(),b=!0)}return!b};function bg(a){kf.call(this,{handleEvent:cg});a=a||{};this.g=0;this.C=void 0!==a.duration?a.duration:250;this.G=void 0!==a.timeout?a.timeout:80;this.H=void 0!==a.useAnchor?a.useAnchor:!0;this.a=null;this.j=this.i=this.o=this.b=void 0}u(bg,kf);
|
|
122
|
-
function cg(a){var b=a.type;if("wheel"!==b&&"mousewheel"!==b)return!0;a.preventDefault();var b=a.map,c=a.originalEvent;this.H&&(this.a=a.coordinate);var d;"wheel"==a.type?(d=c.deltaY,qe&&c.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(d/=ue),c.deltaMode===WheelEvent.DOM_DELTA_LINE&&(d*=40)):"mousewheel"==a.type&&(d=-c.wheelDeltaY,re&&(d/=3));if(0===d)return!1;a=Date.now();void 0===this.b&&(this.b=a);if(!this.i||400<a-this.b)this.i=4>Math.abs(d)?dg:eg;if(this.i===dg){b=b.$();this.j?clearTimeout(this.j):
|
|
123
|
-
sd(b,1,1);this.j=setTimeout(this.v.bind(this),400);d=b.va()*Math.pow(2,d/300);var c=b.j,e=b.a,f=0;d<c?(d=Math.max(d,c/1.5),f=1):d>e&&(d=Math.min(d,1.5*e),f=-1);if(this.a){var g=wd(b,d,this.a);b.Ya(g)}b.sb(d);0<f?b.animate({resolution:c,easing:sb,anchor:this.a,duration:500}):0>f&&b.animate({resolution:e,easing:sb,anchor:this.a,duration:500});this.b=a;return!1}this.g+=d;a=Math.max(this.G-(a-this.b),0);clearTimeout(this.o);this.o=setTimeout(this.B.bind(this,b),a);return!1}
|
|
124
|
-
bg.prototype.v=function(){this.j=void 0;sd(this.s.$(),1,-1)};bg.prototype.B=function(a){a=a.$();0<vd(a)[td]&&ud(a);nf(a,-ja(this.g,-1,1),this.a,this.C);this.i=void 0;this.g=0;this.a=null;this.o=this.b=void 0};var dg="trackpad",eg="wheel";function fg(a){Af.call(this,{handleDownEvent:gg,handleDragEvent:hg,handleUpEvent:ig});a=a||{};this.b=null;this.g=void 0;this.a=!1;this.j=0;this.v=void 0!==a.threshold?a.threshold:.3;this.o=void 0!==a.duration?a.duration:250}u(fg,Af);
|
|
125
|
-
function hg(a){var b=0,c=this.i[0],d=this.i[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);void 0!==this.g&&(b=c-this.g,this.j+=b,!this.a&&Math.abs(this.j)>this.v&&(this.a=!0));this.g=c;a=a.map;c=a.a.getBoundingClientRect();d=Cf(this.i);d[0]-=c.left;d[1]-=c.top;this.b=a.Na(d);this.a&&(c=a.$(),d=c.Da(),a.render(),mf(c,d+b,this.b))}function ig(a){if(2>this.i.length){a=a.map.$();sd(a,1,-1);if(this.a){var b=a.Da(),c=this.b,d=this.o,b=a.constrainRotation(b,0);mf(a,b,c,d)}return!1}return!0}
|
|
126
|
-
function gg(a){return 2<=this.i.length?(a=a.map,this.b=null,this.g=void 0,this.a=!1,this.j=0,this.G||sd(a.$(),1,1),!0):!1}fg.prototype.Qb=dc;function jg(a){Af.call(this,{handleDownEvent:kg,handleDragEvent:lg,handleUpEvent:mg});a=a?a:{};this.j=a.constrainResolution||!1;this.b=null;this.o=void 0!==a.duration?a.duration:400;this.a=void 0;this.g=1}u(jg,Af);
|
|
127
|
-
function lg(a){var b=1,c=this.i[0],d=this.i[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);void 0!==this.a&&(b=this.a/e);this.a=e;1!=b&&(this.g=b);a=a.map;var e=a.$(),c=e.va(),d=a.a.getBoundingClientRect(),f=Cf(this.i);f[0]-=d.left;f[1]-=d.top;this.b=a.Na(f);a.render();of(e,c*b,this.b)}function mg(a){if(2>this.i.length){a=a.map.$();sd(a,1,-1);if(this.j){var b=a.va(),c=this.b,d=this.o,b=a.constrainResolution(b,0,this.g-1);of(a,b,c,d)}return!1}return!0}
|
|
128
|
-
function kg(a){return 2<=this.i.length?(a=a.map,this.b=null,this.a=void 0,this.g=1,this.G||sd(a.$(),1,1),!0):!1}jg.prototype.Qb=dc;function ng(a){a=a?a:{};var b=new E,c=new jf;(void 0!==a.altShiftDragRotate?a.altShiftDragRotate:1)&&b.push(new Hf);(void 0!==a.doubleClickZoom?a.doubleClickZoom:1)&&b.push(new pf({delta:a.zoomDelta,duration:a.zoomDuration}));(void 0!==a.dragPan?a.dragPan:1)&&b.push(new Df({kinetic:c}));(void 0!==a.pinchRotate?a.pinchRotate:1)&&b.push(new fg);(void 0!==a.pinchZoom?a.pinchZoom:1)&&b.push(new jg({duration:a.zoomDuration}));if(void 0!==a.keyboard?a.keyboard:1)b.push(new Yf),b.push(new $f({delta:a.zoomDelta,
|
|
129
|
-
duration:a.zoomDuration}));(void 0!==a.mouseWheelZoom?a.mouseWheelZoom:1)&&b.push(new bg({duration:a.zoomDuration}));(void 0!==a.shiftDragZoom?a.shiftDragZoom:1)&&b.push(new Xf({duration:a.zoomDuration}));return b};function og(a){Qa.call(this);var b=ua({},a);b[pg]=void 0!==a.opacity?a.opacity:1;b[qg]=void 0!==a.visible?a.visible:!0;b[rg]=void 0!==a.zIndex?a.zIndex:0;b[sg]=void 0!==a.maxResolution?a.maxResolution:Infinity;b[tg]=void 0!==a.minResolution?a.minResolution:0;this.J(b);this.a={layer:this,Wd:!0}}u(og,Qa);function ug(a){a.a.opacity=ja(a.ic(),0,1);a.a.bk=a.Nd();a.a.visible=a.lb();a.a.extent=a.F();a.a.zIndex=a.jc();a.a.maxResolution=a.gc();a.a.minResolution=Math.max(a.hc(),0);return a.a}l=og.prototype;
|
|
130
|
-
l.F=function(){return this.get(vg)};l.gc=function(){return this.get(sg)};l.hc=function(){return this.get(tg)};l.ic=function(){return this.get(pg)};l.lb=function(){return this.get(qg)};l.jc=function(){return this.get(rg)};l.Mc=function(a){this.set(vg,a)};l.ad=function(a){this.set(sg,a)};l.bd=function(a){this.set(tg,a)};l.Nc=function(a){this.set(pg,a)};l.Oc=function(a){this.set(qg,a)};l.Pc=function(a){this.set(rg,a)};var pg="opacity",qg="visible",vg="extent",rg="zIndex",sg="maxResolution",tg="minResolution";function wg(a){var b=a||{};a=ua({},b);delete a.layers;b=b.layers;og.call(this,a);this.g=[];this.b={};w(this,Ta(xg),this.mh,this);b?Array.isArray(b)?b=new E(b.slice()):ha(b instanceof E,43):b=new E;this.tf(b)}u(wg,og);l=wg.prototype;l.Hc=function(){this.lb()&&this.u()};
|
|
131
|
-
l.mh=function(){this.g.forEach(Ba);this.g.length=0;var a=this.Gb();this.g.push(w(a,Ud,this.lh,this),w(a,Vd,this.nh,this));for(var b in this.b)this.b[b].forEach(Ba);va(this.b);var a=a.a,c,d;b=0;for(c=a.length;b<c;b++)d=a[b],this.b[ea(d).toString()]=[w(d,Wa,this.Hc,this),w(d,"change",this.Hc,this)];this.u()};l.lh=function(a){a=a.element;var b=ea(a).toString();this.b[b]=[w(a,Wa,this.Hc,this),w(a,"change",this.Hc,this)];this.u()};
|
|
132
|
-
l.nh=function(a){a=ea(a.element).toString();this.b[a].forEach(Ba);delete this.b[a];this.u()};l.Gb=function(){return this.get(xg)};l.tf=function(a){this.set(xg,a)};
|
|
133
|
-
l.Jd=function(a){var b=void 0!==a?a:[],c=b.length;this.Gb().forEach(function(a){a.Jd(b)});a=ug(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?Zb(e.extent,a.extent):a.extent);return b};l.Nd=function(){return"ready"};var xg="layers";function yg(a){kc.call(this,{code:a,units:"m",extent:zg,global:!0,worldExtent:Ag,getPointResolution:function(a,c){return a/ka(c[1]/6378137)}})}u(yg,kc);var Bg=6378137*Math.PI,zg=[-Bg,-Bg,Bg,Bg],Ag=[-180,-85,180,85],wc="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 yg(a)});
|
|
134
|
-
function xc(a,b,c){var d=a.length;c=1<c?c:2;void 0===b&&(2<c?b=a.slice():b=Array(d));for(var e=0;e<d;e+=c){b[e]=Bg*a[e]/180;var f=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));f>Bg?f=Bg:f<-Bg&&(f=-Bg);b[e+1]=f}return b}function yc(a,b,c){var d=a.length;c=1<c?c:2;void 0===b&&(2<c?b=a.slice():b=Array(d));for(var e=0;e<d;e+=c)b[e]=180*a[e]/Bg,b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b};var Cg=new ec(6378137);function Dg(a,b){kc.call(this,{code:a,units:"degrees",extent:Eg,axisOrientation:b,global:!0,metersPerUnit:Fg,worldExtent:Eg})}u(Dg,kc);var Eg=[-180,-90,180,90],Fg=Math.PI*Cg.radius/180,zc=[new Dg("CRS:84"),new Dg("EPSG:4326","neu"),new Dg("urn:ogc:def:crs:EPSG::4326","neu"),new Dg("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Dg("urn:ogc:def:crs:OGC:1.3:CRS84"),new Dg("urn:ogc:def:crs:OGC:2:84"),new Dg("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Dg("urn:x-ogc:def:crs:EPSG:4326","neu")];function Gg(){sc(wc);sc(zc);vc()};function Hg(a,b,c,d,e){Ka.call(this,a);this.vectorContext=b;this.frameState=c;this.context=d;this.glContext=e}u(Hg,Ka);function Ig(a){var b=ua({},a);delete b.source;og.call(this,b);this.i=this.g=this.b=null;a.map&&this.setMap(a.map);w(this,Ta("source"),this.vh,this);this.cd(a.source?a.source:null)}u(Ig,og);l=Ig.prototype;l.Jd=function(a){a=a?a:[];a.push(ug(this));return a};l.ka=function(){return this.get("source")||null};l.Nd=function(){var a=this.ka();return a?a.U():"undefined"};l.Gi=function(){this.u()};l.vh=function(){this.i&&(Ba(this.i),this.i=null);var a=this.ka();a&&(this.i=w(a,"change",this.Gi,this));this.u()};
|
|
135
|
-
l.setMap=function(a){this.b&&(Ba(this.b),this.b=null);a||this.u();this.g&&(Ba(this.g),this.g=null);a&&(this.b=w(a,"precompose",function(a){var c=ug(this);c.Wd=!1;c.zIndex=Infinity;a.frameState.layerStatesArray.push(c);a.frameState.layerStates[ea(this)]=c},this),this.g=w(this,"change",a.render,a),this.u())};l.cd=function(a){this.set("source",a)};function Jg(){this.c={};this.f=0}Jg.prototype.clear=function(){this.c={};this.f=0};Jg.prototype.get=function(a,b,c){a=b+":"+a+":"+(c?Yd(c):"null");return a in this.c?this.c[a]:null};Jg.prototype.set=function(a,b,c,d){this.c[b+":"+a+":"+(c?Yd(c):"null")]=d;++this.f};var Kg=new Jg;function Lg(){return[1,0,0,1,0,0]}function Mg(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];return a}function Ng(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 Og(a,b,c,d,e,f,g,h){var k=Math.sin(f);f=Math.cos(f);a[0]=d*f;a[1]=e*k;a[2]=-d*k;a[3]=e*f;a[4]=g*d*f-h*d*k+b;a[5]=g*e*k+h*e*f+c;return a};function Pg(a,b){this.i=b;this.f={};this.b={}}u(Pg,Ia);l=Pg.prototype;l.na=function(){for(var a in this.f)Ja(this.f[a])};function Qg(){if(32<Kg.f){var a=0,b,c;for(b in Kg.c)c=Kg.c[b],0!==(a++&3)||Oa(c)||(delete Kg.c[b],--Kg.f)}}
|
|
136
|
-
l.Ca=function(a,b,c,d,e,f,g){function h(a,c){var f=ea(a).toString(),g=b.layerStates[ea(c)].Wd;if(!(f in b.skippedFeatureUids)||g)return d.call(e,a,g?c:null)}var k,m=b.viewState,n=m.resolution,p=m.projection,m=a;if(p.c){var p=p.F(),q=Vb(p),v=a[0];if(v<p[0]||v>p[2])m=[v+q*Math.ceil((p[0]-v)/q),a[1]]}p=b.layerStatesArray;for(q=p.length-1;0<=q;--q){var t=p[q],v=t.layer;if(t.visible&&n>=t.minResolution&&n<t.maxResolution&&f.call(g,v)&&(t=Rg(this,v),v.ka()&&(k=t.Ca(v.ka().B?m:a,b,c,h,e)),k))return k}};
|
|
137
|
-
function Rg(a,b){var c=ea(b).toString();if(c in a.f)return a.f[c];var d;d=b instanceof Sg?new Tg(b):b instanceof G?new Ug(b):b instanceof H?new Vg(b):null;a.f[c]=d;a.b[c]=w(d,"change",a.kh,a);return d}l.kh=function(){this.i.render()};l.Kf=ba;l.Fj=function(a,b){for(var c in this.f)if(!(b&&c in b.layerStates)){var d=c,e=this.f[d];delete this.f[d];Ba(this.b[d]);delete this.b[d];Ja(e)}};function cb(a,b){return a.zIndex-b.zIndex};function Sg(a){Ig.call(this,a?a:{})}u(Sg,Ig);function G(a){a=a?a:{};var b=ua({},a);delete b.preload;delete b.useInterimTilesOnError;Ig.call(this,b);this.j(void 0!==a.preload?a.preload:0);this.o(void 0!==a.useInterimTilesOnError?a.useInterimTilesOnError:!0)}u(G,Ig);G.prototype.s=function(){return this.get(Wg)};G.prototype.j=function(a){this.set(Wg,a)};G.prototype.v=function(){return this.get(Xg)};G.prototype.o=function(a){this.set(Xg,a)};var Wg="preload",Xg="useInterimTilesOnError";function Yg(a,b,c,d,e){Ma.call(this);this.j=e;this.extent=a;this.i=c;this.resolution=b;this.state=d}u(Yg,Ma);Yg.prototype.u=function(){this.c("change")};Yg.prototype.F=function(){return this.extent};Yg.prototype.U=function(){return this.state};function Zg(a,b,c,d,e,f,g){Yg.call(this,a,b,c,$g,d);this.o=e;this.f=new Image;null!==f&&(this.f.crossOrigin=f);this.g={};this.b=null;this.state=$g;this.D=g}u(Zg,Yg);Zg.prototype.a=function(a){if(void 0!==a){var b;a=ea(a);if(a in this.g)return this.g[a];xa(this.g)?b=this.f:b=this.f.cloneNode(!1);return this.g[a]=b}return this.f};Zg.prototype.s=function(){this.state=ah;this.b.forEach(Ba);this.b=null;this.u()};
|
|
138
|
-
Zg.prototype.v=function(){void 0===this.resolution&&(this.resolution=Wb(this.extent)/this.f.height);this.state=bh;this.b.forEach(Ba);this.b=null;this.u()};Zg.prototype.load=function(){if(this.state==$g||this.state==ah)this.state=ch,this.u(),this.b=[w(this.f,"error",this.s,this,!0),w(this.f,"load",this.v,this,!0)],this.D(this,this.o)};var $g=0,ch=1,bh=2,ah=3;var dh=[0,0,0,1],eh=[],fh=[0,0,0,1];function gh(a,b,c,d){0!==b&&(a.translate(c,d),a.rotate(b),a.translate(-c,-d))};function hh(a){this.o=a.opacity;this.G=a.rotateWithView;this.s=a.rotation;this.j=a.scale;this.v=a.snapToPixel}l=hh.prototype;l.Sc=function(){return this.o};l.Tc=function(){return this.G};l.Uc=function(){return this.s};l.Vc=function(){return this.j};l.Fc=function(){return this.v};l.Lb=function(a){this.o=a};l.Wc=function(a){this.s=a};l.Mb=function(a){this.j=a};function ih(a){this.C=this.B=this.i=null;this.b=void 0!==a.fill?a.fill:null;this.T=[0,0];this.c=a.points;this.f=void 0!==a.radius?a.radius:a.radius1;this.g=void 0!==a.radius2?a.radius2:this.f;this.D=void 0!==a.angle?a.angle:0;this.a=void 0!==a.stroke?a.stroke:null;this.la=this.H=this.wa=this.I=null;this.aa=a.atlasManager;jh(this,this.aa);hh.call(this,{opacity:1,rotateWithView:void 0!==a.rotateWithView?a.rotateWithView:!1,rotation:void 0!==a.rotation?a.rotation:0,scale:1,snapToPixel:void 0!==a.snapToPixel?
|
|
139
|
-
a.snapToPixel:!0})}u(ih,hh);l=ih.prototype;l.clone=function(){var a=new ih({fill:this.b?this.b.clone():void 0,points:this.g!==this.f?this.c/2:this.c,radius:this.f,radius2:this.g,angle:this.D,snapToPixel:this.v,stroke:this.a?this.a.clone():void 0,rotation:this.s,rotateWithView:this.G,atlasManager:this.aa});a.Lb(this.o);a.Mb(this.j);return a};l.yb=function(){return this.I};l.Bf=function(){return this.D};l.Cf=function(){return this.b};l.Af=function(){return this.C};l.Jb=function(){return this.B};
|
|
140
|
-
l.Xe=function(){return this.H};l.Rc=function(){return bh};l.Kb=function(){return this.T};l.Df=function(){return this.c};l.Ef=function(){return this.f};l.cf=function(){return this.g};l.eb=function(){return this.wa};l.Ff=function(){return this.a};l.kf=ba;l.load=ba;l.Tf=ba;
|
|
141
|
-
function jh(a,b){var c,d="",e="",f=0,g=null,h,k=0;a.a&&(h=ae(a.a.f),k=a.a.b,void 0===k&&(k=1),g=a.a.a,ve||(g=null),e=a.a.i,void 0===e&&(e="round"),d=a.a.g,void 0===d&&(d="round"),f=a.a.j,void 0===f&&(f=10));var m=2*(a.f+k)+1,d={strokeStyle:h,Rf:k,size:m,lineCap:d,lineDash:g,lineJoin:e,miterLimit:f};void 0===b?(e=be(m,m),a.B=e.canvas,c=m=a.B.width,a.Me(d,e,0,0),a.la=[d.size,d.size],a.b?a.C=a.B:(e=be(d.size,d.size),a.C=e.canvas,a.Le(d,e,0,0))):(m=Math.round(m),(e=!a.b)&&(c=a.Le.bind(a,d)),a.a?(f=a.a,
|
|
142
|
-
void 0===f.c&&(f.c="s",f.c=f.f?"string"===typeof f.f?f.c+f.f:f.c+ea(f.f).toString():f.c+"-",f.c+=","+(void 0!==f.g?f.g.toString():"-")+","+(f.a?f.a.toString():"-")+","+(void 0!==f.i?f.i:"-")+","+(void 0!==f.j?f.j.toString():"-")+","+(void 0!==f.b?f.b.toString():"-")),f=f.c):f="-",a.b?(g=a.b,void 0===g.f&&(g.f=g.c instanceof CanvasPattern||g.c instanceof CanvasGradient?ea(g.c).toString():"f"+(g.c?Yd(g.c):"-")),g=g.f):g="-",a.i&&f==a.i[1]&&g==a.i[2]&&a.f==a.i[3]&&a.g==a.i[4]&&a.D==a.i[5]&&a.c==a.i[6]||
|
|
143
|
-
(a.i=["r"+f+g+(void 0!==a.f?a.f.toString():"-")+(void 0!==a.g?a.g.toString():"-")+(void 0!==a.D?a.D.toString():"-")+(void 0!==a.c?a.c.toString():"-"),f,g,a.f,a.g,a.D,a.c]),d=b.add(a.i[0],m,m,a.Me.bind(a,d),c),a.B=d.image,a.T=[d.offsetX,d.offsetY],c=d.image.width,e?(a.C=d.Ud,a.la=[d.Ud.width,d.Ud.height]):(a.C=a.B,a.la=[c,c]));a.I=[m/2,m/2];a.wa=[m,m];a.H=[c,c]}
|
|
144
|
-
l.Me=function(a,b,c,d){var e;b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();if(Infinity===this.c)b.arc(a.size/2,a.size/2,this.f,0,2*Math.PI,!0);else for(this.g!==this.f&&(this.c*=2),c=0;c<=this.c;c++)d=2*c*Math.PI/this.c-Math.PI/2+this.D,e=0===c%2?this.f:this.g,b.lineTo(a.size/2+e*Math.cos(d),a.size/2+e*Math.sin(d));this.b&&(b.fillStyle=ae(this.b.c),b.fill());this.a&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.Rf,a.lineDash&&b.setLineDash(a.lineDash),b.lineCap=a.lineCap,b.lineJoin=a.lineJoin,
|
|
145
|
-
b.miterLimit=a.miterLimit,b.stroke());b.closePath()};
|
|
146
|
-
l.Le=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();if(Infinity===this.c)b.arc(a.size/2,a.size/2,this.f,0,2*Math.PI,!0);else{this.g!==this.f&&(this.c*=2);var e;for(c=0;c<=this.c;c++)e=2*c*Math.PI/this.c-Math.PI/2+this.D,d=0===c%2?this.f:this.g,b.lineTo(a.size/2+d*Math.cos(e),a.size/2+d*Math.sin(e))}b.fillStyle=dh;b.fill();this.a&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.Rf,a.lineDash&&b.setLineDash(a.lineDash),b.stroke());b.closePath()};function kh(a){a=a||{};ih.call(this,{points:Infinity,fill:a.fill,radius:a.radius,snapToPixel:a.snapToPixel,stroke:a.stroke,atlasManager:a.atlasManager})}u(kh,ih);kh.prototype.clone=function(){var a=new kh({fill:this.b?this.b.clone():void 0,stroke:this.a?this.a.clone():void 0,radius:this.f,snapToPixel:this.v,atlasManager:this.aa});a.Lb(this.o);a.Mb(this.j);return a};kh.prototype.Z=function(a){this.f=a;jh(this,this.aa)};function lh(a){a=a||{};this.c=void 0!==a.color?a.color:null;this.f=void 0}lh.prototype.clone=function(){var a=this.c;return new lh({color:a&&a.slice?a.slice():a||void 0})};lh.prototype.a=function(){return this.c};lh.prototype.b=function(a){this.c=a;this.f=void 0};function mh(a){a=a||{};this.f=void 0!==a.color?a.color:null;this.g=a.lineCap;this.a=void 0!==a.lineDash?a.lineDash:null;this.i=a.lineJoin;this.j=a.miterLimit;this.b=a.width;this.c=void 0}l=mh.prototype;l.clone=function(){var a=this.f;return new mh({color:a&&a.slice?a.slice():a||void 0,lineCap:this.g,lineDash:this.a?this.a.slice():void 0,lineJoin:this.i,miterLimit:this.j,width:this.b})};l.Li=function(){return this.f};l.Lg=function(){return this.g};l.Mi=function(){return this.a};l.Mg=function(){return this.i};
|
|
147
|
-
l.Pg=function(){return this.j};l.Ni=function(){return this.b};l.Oi=function(a){this.f=a;this.c=void 0};l.Qj=function(a){this.g=a;this.c=void 0};l.setLineDash=function(a){this.a=a;this.c=void 0};l.Rj=function(a){this.i=a;this.c=void 0};l.Sj=function(a){this.j=a;this.c=void 0};l.Yj=function(a){this.b=a;this.c=void 0};function nh(a){a=a||{};this.i=null;this.g=oh;void 0!==a.geometry&&this.Ga(a.geometry);this.a=void 0!==a.fill?a.fill:null;this.b=void 0!==a.image?a.image:null;this.f=void 0!==a.stroke?a.stroke:null;this.j=void 0!==a.text?a.text:null;this.c=a.zIndex}l=nh.prototype;l.clone=function(){var a=this.L();a&&a.clone&&(a=a.clone());return new nh({geometry:a,fill:this.a?this.a.clone():void 0,image:this.b?this.b.clone():void 0,stroke:this.f?this.f.clone():void 0,text:this.ra()?this.ra().clone():void 0,zIndex:this.c})};
|
|
148
|
-
l.L=function(){return this.i};l.Gg=function(){return this.g};l.Pi=function(){return this.a};l.Ti=function(a){this.a=a};l.Qi=function(){return this.b};l.Ui=function(a){this.b=a};l.Ri=function(){return this.f};l.Vi=function(a){this.f=a};l.ra=function(){return this.j};l.Wi=function(a){this.j=a};l.Si=function(){return this.c};l.Ga=function(a){"function"===typeof a?this.g=a:"string"===typeof a?this.g=function(b){return b.get(a)}:a?a&&(this.g=function(){return a}):this.g=oh;this.i=a};
|
|
149
|
-
l.Xi=function(a){this.c=a};function ph(a){if("function"!==typeof a){var b;Array.isArray(a)?b=a:(ha(a instanceof nh,41),b=[a]);a=function(){return b}}return a}var qh=null;function rh(){if(!qh){var a=new lh({color:"rgba(255,255,255,0.4)"}),b=new mh({color:"#3399CC",width:1.25});qh=[new nh({image:new kh({fill:a,stroke:b,radius:5}),fill:a,stroke:b})]}return qh}
|
|
150
|
-
function sh(){var a={},b=[255,255,255,1],c=[0,153,255,1];a.Polygon=[new nh({fill:new lh({color:[255,255,255,.5]})})];a.MultiPolygon=a.Polygon;a.LineString=[new nh({stroke:new mh({color:b,width:5})}),new nh({stroke:new mh({color:c,width:3})})];a.MultiLineString=a.LineString;a.Circle=a.Polygon.concat(a.LineString);a.Point=[new nh({image:new kh({radius:6,fill:new lh({color:c}),stroke:new mh({color:b,width:1.5})}),zIndex:Infinity})];a.MultiPoint=a.Point;a.GeometryCollection=a.Polygon.concat(a.LineString,
|
|
151
|
-
a.Point);return a}function oh(a){return a.L()};function H(a){a=a?a:{};var b=ua({},a);delete b.style;delete b.renderBuffer;delete b.updateWhileAnimating;delete b.updateWhileInteracting;Ig.call(this,b);this.B=void 0!==a.renderBuffer?a.renderBuffer:100;this.o=null;this.j=void 0;this.C(a.style);this.H=void 0!==a.updateWhileAnimating?a.updateWhileAnimating:!1;this.T=void 0!==a.updateWhileInteracting?a.updateWhileInteracting:!1}u(H,Ig);H.prototype.G=function(){return this.o};H.prototype.I=function(){return this.j};
|
|
152
|
-
H.prototype.C=function(a){this.o=void 0!==a?a:rh;this.j=null===a?void 0:ph(this.o);this.u()};function th(){};function uh(a,b,c,d,e){this.b=a;this.C=b;this.g=c;this.G=d;this.$a=e;this.i=this.c=this.f=this.ja=this.Z=this.wa=null;this.ma=this.Qa=this.v=this.I=this.la=this.aa=0;this.qa=!1;this.j=this.gb=0;this.ta=!1;this.H=0;this.a="";this.za=this.xa=0;this.Aa=!1;this.o=this.Ba=0;this.T=this.s=this.D=null;this.B=[];this.Ta=Lg()}u(uh,th);
|
|
153
|
-
function vh(a,b,c){if(a.i){b=Kc(b,0,c,2,a.G,a.B);c=a.b;var d=a.Ta,e=c.globalAlpha;1!=a.v&&(c.globalAlpha=e*a.v);var f=a.gb;a.qa&&(f+=a.$a);var g,h;g=0;for(h=b.length;g<h;g+=2){var k=b[g]-a.aa,m=b[g+1]-a.la;a.ta&&(k=Math.round(k),m=Math.round(m));if(0!==f||1!=a.j){var n=k+a.aa,p=m+a.la;Og(d,n,p,a.j,a.j,f,-n,-p);c.setTransform.apply(c,d)}c.drawImage(a.i,a.Qa,a.ma,a.H,a.I,k,m,a.H,a.I)}0===f&&1==a.j||c.setTransform(1,0,0,1,0,0);1!=a.v&&(c.globalAlpha=e)}}
|
|
154
|
-
function wh(a,b,c,d){var e=0;if(a.T&&""!==a.a){a.D&&xh(a,a.D);a.s&&yh(a,a.s);var f=a.T,g=a.b,h=a.ja;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.ja={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline});b=Kc(b,e,c,d,a.G,a.B);f=a.b;g=a.Ba;for(a.Aa&&(g+=a.$a);e<c;e+=d){var h=b[e]+
|
|
155
|
-
a.xa,k=b[e+1]+a.za;if(0!==g||1!=a.o){var m=Og(a.Ta,h,k,a.o,a.o,g,-h,-k);f.setTransform.apply(f,m)}a.s&&f.strokeText(a.a,h,k);a.D&&f.fillText(a.a,h,k)}0===g&&1==a.o||f.setTransform(1,0,0,1,0,0)}}function zh(a,b,c,d,e,f){var g=a.b;a=Kc(b,c,d,e,a.G,a.B);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}function Ah(a,b,c,d,e){var f,g;f=0;for(g=d.length;f<g;++f)c=zh(a,b,c,d[f],e,!0);return c}l=uh.prototype;
|
|
156
|
-
l.Bc=function(a){if($b(this.g,a.F())){if(this.f||this.c){this.f&&xh(this,this.f);this.c&&yh(this,this.c);var b;b=this.G;var c=this.B,d=a.l;b=d?Kc(d,0,d.length,a.A,b,c):null;c=b[2]-b[0];d=b[3]-b[1];c=Math.sqrt(c*c+d*d);d=this.b;d.beginPath();d.arc(b[0],b[1],c,0,2*Math.PI);this.f&&d.fill();this.c&&d.stroke()}""!==this.a&&wh(this,a.fc(),2,2)}};l.uf=function(a){this.fb(a.a,a.f);this.$c(a.b);this.Za(a.ra())};
|
|
157
|
-
l.xd=function(a){switch(a.K()){case "Point":this.Cd(a);break;case "LineString":this.yd(a);break;case "Polygon":this.Dd(a);break;case "MultiPoint":this.Ad(a);break;case "MultiLineString":this.zd(a);break;case "MultiPolygon":this.Bd(a);break;case "GeometryCollection":a=a.b;var b,c;b=0;for(c=a.length;b<c;++b)this.xd(a[b]);break;case "Circle":this.Bc(a)}};l.yg=function(a,b){var c=(0,b.g)(a);c&&$b(this.g,c.F())&&(this.uf(b),this.xd(c))};
|
|
158
|
-
l.Cd=function(a){var b=a.l;a=a.A;this.i&&vh(this,b,b.length);""!==this.a&&wh(this,b,b.length,a)};l.Ad=function(a){var b=a.l;a=a.A;this.i&&vh(this,b,b.length);""!==this.a&&wh(this,b,b.length,a)};l.yd=function(a){if($b(this.g,a.F())){if(this.c){yh(this,this.c);var b=this.b,c=a.l;b.beginPath();zh(this,c,0,c.length,a.A,!1);b.stroke()}""!==this.a&&(a=Bh(a),wh(this,a,2,2))}};
|
|
159
|
-
l.zd=function(a){var b=a.F();if($b(this.g,b)){if(this.c){yh(this,this.c);var b=this.b,c=a.l,d=0,e=a.Ua(),f=a.A;b.beginPath();var g,h;g=0;for(h=e.length;g<h;++g)d=zh(this,c,d,e[g],f,!1);b.stroke()}""!==this.a&&(a=Ch(a),wh(this,a,a.length,2))}};l.Dd=function(a){if($b(this.g,a.F())){if(this.c||this.f){this.f&&xh(this,this.f);this.c&&yh(this,this.c);var b=this.b;b.beginPath();Ah(this,md(a),0,a.Ua(),a.A);this.f&&b.fill();this.c&&b.stroke()}""!==this.a&&(a=nd(a),wh(this,a,2,2))}};
|
|
160
|
-
l.Bd=function(a){if($b(this.g,a.F())){if(this.c||this.f){this.f&&xh(this,this.f);this.c&&yh(this,this.c);var b=this.b,c=Dh(a),d=0,e=a.a,f=a.A,g,h;b.beginPath();g=0;for(h=e.length;g<h;++g)d=Ah(this,c,d,e[g],f);this.f&&b.fill();this.c&&b.stroke()}""!==this.a&&(a=Eh(a),wh(this,a,a.length,2))}};function xh(a,b){var c=a.b,d=a.wa;d?d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle):(c.fillStyle=b.fillStyle,a.wa={fillStyle:b.fillStyle})}
|
|
161
|
-
function yh(a,b){var c=a.b,d=a.Z;d?(d.lineCap!=b.lineCap&&(d.lineCap=c.lineCap=b.lineCap),ve&&!ab(d.lineDash,b.lineDash)&&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&&(d.strokeStyle=c.strokeStyle=b.strokeStyle)):(c.lineCap=b.lineCap,ve&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=
|
|
162
|
-
b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.Z={lineCap:b.lineCap,lineDash:b.lineDash,lineJoin:b.lineJoin,lineWidth:b.lineWidth,miterLimit:b.miterLimit,strokeStyle:b.strokeStyle})}
|
|
163
|
-
l.fb=function(a,b){if(a){var c=a.c;this.f={fillStyle:ae(c?c:dh)}}else this.f=null;if(b){var c=b.f,d=b.g,e=b.a,f=b.i,g=b.b,h=b.j;this.c={lineCap:void 0!==d?d:"round",lineDash:e?e:eh,lineJoin:void 0!==f?f:"round",lineWidth:this.C*(void 0!==g?g:1),miterLimit:void 0!==h?h:10,strokeStyle:ae(c?c:fh)}}else this.c=null};
|
|
164
|
-
l.$c=function(a){if(a){var b=a.yb(),c=a.Jb(1),d=a.Kb(),e=a.eb();this.aa=b[0];this.la=b[1];this.I=e[1];this.i=c;this.v=a.o;this.Qa=d[0];this.ma=d[1];this.qa=a.G;this.gb=a.s;this.j=a.j;this.ta=a.v;this.H=e[0]}else this.i=null};
|
|
165
|
-
l.Za=function(a){if(a){var b=a.c;b?(b=b.c,this.D={fillStyle:ae(b?b:dh)}):this.D=null;var c=a.a;if(c){var b=c.f,d=c.g,e=c.a,f=c.i,g=c.b,c=c.j;this.s={lineCap:void 0!==d?d:"round",lineDash:e?e:eh,lineJoin:void 0!==f?f:"round",lineWidth:void 0!==g?g:1,miterLimit:void 0!==c?c:10,strokeStyle:ae(b?b:fh)}}else this.s=null;var b=a.b,d=a.g,e=a.i,f=a.s,g=a.j,c=a.f,h=a.ra(),k=a.D;a=a.o;this.T={font:void 0!==b?b:"10px sans-serif",textAlign:void 0!==k?k:"center",textBaseline:void 0!==a?a:"middle"};this.a=void 0!==
|
|
166
|
-
h?h:"";this.xa=void 0!==d?this.C*d:0;this.za=void 0!==e?this.C*e:0;this.Aa=void 0!==f?f:!1;this.Ba=void 0!==g?g:0;this.o=this.C*(void 0!==c?c:1)}else this.a=""};function Fh(a){Pa.call(this);this.a=a}u(Fh,Pa);Fh.prototype.Ca=ba;function Gh(a,b,c){return function(d,e){return Hh(a,b,d,e,function(a){c[d]||(c[d]={});c[d][a.Sa.toString()]=a})}}Fh.prototype.Z=function(a){a.target.U()===bh&&Ih(this)};function Ih(a){var b=a.a;b.lb()&&"ready"==b.Nd()&&a.u()}function Jh(a,b){b.vf()&&a.postRenderFunctions.push(function(a,b,e){b=ea(a).toString();a.xb(e.viewState.projection,e.usedTiles[b])}.bind(null,b))}
|
|
167
|
-
function Kh(a,b){if(b){var c,d,e;d=0;for(e=b.length;d<e;++d)c=b[d],a[ea(c).toString()]=c}}function Lh(a,b){var c=b.T;void 0!==c&&("string"===typeof c?a.logos[c]="":c&&(ha("string"==typeof c.href,44),ha("string"==typeof c.src,45),a.logos[c.src]=c.href))};function Mh(a){Fh.call(this,a);this.ja=Lg()}u(Mh,Fh);function Nh(a,b,c){var d=b.pixelRatio,e=b.size[0]*d,f=b.size[1]*d,g=b.viewState.rotation,h=Sb(c),k=Rb(c),m=Qb(c);c=Pb(c);Ng(b.coordinateToPixelTransform,h);Ng(b.coordinateToPixelTransform,k);Ng(b.coordinateToPixelTransform,m);Ng(b.coordinateToPixelTransform,c);a.save();gh(a,-g,e/2,f/2);a.beginPath();a.moveTo(h[0]*d,h[1]*d);a.lineTo(k[0]*d,k[1]*d);a.lineTo(m[0]*d,m[1]*d);a.lineTo(c[0]*d,c[1]*d);a.clip();gh(a,g,e/2,f/2)}
|
|
168
|
-
function Oh(a,b,c,d,e){var f=a.a;if(Oa(f,b)){var g=d.size[0]*d.pixelRatio,h=d.size[1]*d.pixelRatio,k=d.viewState.rotation;gh(c,-k,g/2,h/2);a=void 0!==e?e:Ph(a,d,0);f.c(new Hg(b,new uh(c,d.pixelRatio,d.extent,a,d.viewState.rotation),d,c,null));gh(c,k,g/2,h/2)}}Mh.prototype.v=function(a,b,c,d){if(this.Ca(a,b,0,cc,this))return c.call(d,this.a,null)};Mh.prototype.H=function(a,b,c){Oh(this,"postcompose",a,b,c)};
|
|
169
|
-
function Ph(a,b,c){var d=b.viewState,e=b.pixelRatio,f=e/d.resolution;return Og(a.ja,e*b.size[0]/2,e*b.size[1]/2,f,-f,-d.rotation,-d.center[0]+c,-d.center[1])};function Qh(a){Mh.call(this,a);this.s=Lg();this.i=null}u(Qh,Mh);Qh.prototype.B=function(a,b,c){Oh(this,"precompose",c,a,void 0);var d=this.j();if(d){var e=b.extent,f=void 0!==e;f&&Nh(c,a,e);var e=this.G(),g=c.globalAlpha;c.globalAlpha=b.opacity;c.drawImage(d,0,0,+d.width,+d.height,Math.round(e[4]),Math.round(e[5]),Math.round(d.width*e[0]),Math.round(d.height*e[3]));c.globalAlpha=g;f&&c.restore()}this.H(c,a)};
|
|
170
|
-
Qh.prototype.Ca=function(a,b,c,d,e){var f=this.a;return f.ka().Ca(a,b.viewState.resolution,b.viewState.rotation,c,b.skippedFeatureUids,function(a){return d.call(e,a,f)})};
|
|
171
|
-
Qh.prototype.v=function(a,b,c,d){if(this.j()){if(this.a.ka().Ca!==ba)return Mh.prototype.v.apply(this,arguments);var e=Ng(this.s,a),f=e,g=b.viewState.resolution/this.g;f[0]*=g;f[1]*=g;this.i||(this.i=be(1,1));this.i.clearRect(0,0,1,1);this.i.drawImage(this.j(),e[0],e[1],1,1,0,0,1,1);e=this.i.getImageData(0,0,1,1).data;if(0<e[3])return c.call(d,this.a,e)}};function Tg(a){Qh.call(this,a);this.b=null;this.o=Lg()}u(Tg,Qh);Tg.prototype.j=function(){return this.b?this.b.a():null};Tg.prototype.G=function(){return this.o};
|
|
172
|
-
Tg.prototype.D=function(a,b){var c=a.pixelRatio,d=a.size,e=a.viewState,f=e.center,g=e.resolution,h=this.a.ka(),k=a.viewHints,m=a.extent;void 0!==b.extent&&(m=Zb(m,b.extent));if(!k[td]&&!k[1]&&!Ub(m)){if(k=e=h.ma(m,g,c,e.projection))k=e,m=k.U(),m!=bh&&m!=ah&&w(k,"change",this.Z,this),m==$g&&(k.load(),m=k.U()),k=m==bh;k&&(this.b=e,this.g=g)}if(this.b){var e=this.b,k=e.F(),m=e.resolution,n=e.i,p=c*m/(g*n),k=Og(this.o,c*d[0]/2,c*d[1]/2,p,p,0,n*(k[0]-f[0])/m,n*(f[1]-k[3])/m);Og(this.s,c*d[0]/2-k[4],c*
|
|
173
|
-
d[1]/2-k[5],c/g,-c/g,0,-f[0],-f[1]);Kh(a.attributions,e.j);Lh(a,h)}return!!this.b};function Ug(a){Qh.call(this,a);this.C=be();this.b=null;this.o=[];this.qa=xb();this.ta=new Bd(0,0,0,0);this.I=Lg()}u(Ug,Qh);
|
|
174
|
-
Ug.prototype.D=function(a,b){var c=a.pixelRatio,d=a.size,e=a.viewState,f=e.projection,g=e.resolution,h=e.center,k=this.a,e=k.ka(),m=e.f,n=e.kb(f),p=n.ec(g,0),q=n.Ea(p),v=a.extent;void 0!==b.extent&&(v=Zb(v,b.extent));if(Ub(v))return!1;var t=Jd(n,v,q),B,F=n.Nb(p);B=n.Ea(p);var X=Ed(n.bb(p),n.j);B=Hb(F[0]+t.M*X[0]*B,F[1]+t.S*X[1]*B,F[0]+(t.O+1)*X[0]*B,F[1]+(t.W+1)*X[1]*B,void 0);F=e.G;X={};X[p]={};var ca=Gh(e,f,X),da=k.v(),Aa=this.qa,oa=this.ta,ya=!1,z,na,ra;for(na=t.M;na<=t.O;++na)for(ra=t.S;ra<=t.W;++ra){z=
|
|
175
|
-
Rh(e,p,na,ra,c,f);var M=z.U();if(2==M||4==M||3==M&&!da)2==M&&(X[p][z.Sa.toString()]=z,ya||-1!=this.o.indexOf(z)||(ya=!0));else{a:if(z.f){M=z.f;do{if(2==M.U()){z=M;break a}M=M.f}while(M)}a:{for(var M=n,ia=z.Sa,Ea=ca,Na=oa,yb=M.ab(ia,Aa),ia=ia[0]-1;ia>=M.minZoom;){if(Ea.call(null,ia,Id(M,yb,ia,Na))){M=!0;break a}--ia}M=!1}M||(M=n,z=z.Sa,Ea=oa,z[0]<M.maxZoom?(Na=M.ab(z,Aa),z=Id(M,Na,z[0]+1,Ea)):z=null,z&&ca(p+1,z))}}na=a.viewHints;if(!(this.g&&16<Date.now()-a.time&&(na[td]||na[1])||!ya&&this.b&&Kb(this.b,
|
|
176
|
-
B)&&this.ma==m)){ra=Sh(e,p,f);na=(t.O-t.M+1)*ra[0];ra=(t.W-t.S+1)*ra[0];ya=this.C;z=ya.canvas;ca=e.Ld(f);z.width!=na||z.height!=ra?(z.width=na,z.height=ra):ya.clearRect(0,0,na,ra);this.o.length=0;da=Object.keys(X).map(Number);da.sort(Xa);for(var Lb,gc,M=0,Ea=da.length;M<Ea;++M){na=da[M];oa=Sh(e,na,f);ra=n.Ea(na);var Na=ra/q,yb=F*e.We(f),ia=X[na],Ra;for(Ra in ia)z=ia[Ra],ra=n.ab(z.Sa,Aa),na=(ra[0]-B[0])/q*F,ra=(B[3]-ra[3])/q*F,Lb=oa[0]*Na,gc=oa[1]*Na,ca||ya.clearRect(na,ra,Lb,gc),this.T(z,na,ra,Lb,
|
|
177
|
-
gc,yb),this.o.push(z)}this.ma=m;this.g=q;this.b=B}Ra=c/F*this.g/g;Ra=Og(this.I,c*d[0]/2,c*d[1]/2,Ra,Ra,0,F*(this.b[0]-h[0])/this.g,F*(h[1]-this.b[3])/this.g);Og(this.s,c*d[0]/2-Ra[4],c*d[1]/2-Ra[5],c/g,-c/g,0,-h[0],-h[1]);d=a.usedTiles;g=ea(e).toString();h=p.toString();g in d?h in d[g]?(d=d[g][h],t.M<d.M&&(d.M=t.M),t.O>d.O&&(d.O=t.O),t.S<d.S&&(d.S=t.S),t.W>d.W&&(d.W=t.W)):d[g][h]=t:(d[g]={},d[g][h]=t);k=k.s();t=ea(e).toString();t in a.wantedTiles||(a.wantedTiles[t]={});var d=a.wantedTiles[t],g=a.tileQueue,
|
|
178
|
-
h=n.minZoom,lb;for(B=p;B>=h;--B)for(lb=Id(n,v,B,lb),m=n.Ea(B),q=lb.M;q<=lb.O;++q)for(F=lb.S;F<=lb.W;++F)p-B<=k?(Ra=Rh(e,B,q,F,c,f),0==Ra.U()&&(d[Ra.getKey()]=!0,Ra.getKey()in g.a||g.j([Ra,t,Ld(n,Ra.Sa),m]))):e.Wf(B,q,F,f);Jh(a,e);Lh(a,e);return 0<this.o.length};Ug.prototype.T=function(a,b,c,d,e,f){(a=a.Lc())&&this.C.drawImage(a,f,f,a.width-2*f,a.height-2*f,b,c,d,e)};Ug.prototype.j=function(){return this.C.canvas};Ug.prototype.G=function(){return this.I};function Th(){};function Uh(a,b,c,d){this.gb=a;this.Z=b;this.overlaps=d;this.b=0;this.resolution=c;this.H=this.I=null;this.f=[];this.coordinates=[];this.ja=Lg();this.c=[];this.Qa=[];this.qa=Lg();this.ma=Lg()}u(Uh,th);
|
|
179
|
-
function Vh(a,b,c,d,e,f,g){var h=a.coordinates.length,k=a.Fd();g&&(c+=e);g=[b[c],b[c+1]];var m=[NaN,NaN],n=!0,p,q,v;for(p=c+e;p<d;p+=e)m[0]=b[p],m[1]=b[p+1],v=Gb(k,m),v!==q?(n&&(a.coordinates[h++]=g[0],a.coordinates[h++]=g[1]),a.coordinates[h++]=m[0],a.coordinates[h++]=m[1],n=!1):1===v?(a.coordinates[h++]=m[0],a.coordinates[h++]=m[1],n=!1):n=!0,g[0]=m[0],g[1]=m[1],q=v;if(f&&n||p===c+e)a.coordinates[h++]=g[0],a.coordinates[h++]=g[1];return h}
|
|
180
|
-
function Wh(a,b){a.I=[0,b,0];a.f.push(a.I);a.H=[0,b,0];a.c.push(a.H)}function Xh(a,b,c){if(a.wa){var d=Ng(a.ja,a.wa.slice());b.translate(d[0],d[1]);b.rotate(c)}b.fill();a.wa&&b.setTransform.apply(b,a.ma)}
|
|
181
|
-
function Yh(a,b,c,d,e,f,g,h,k){var m;ab(d,a.ja)?m=a.Qa:(m=Kc(a.coordinates,0,a.coordinates.length,2,d,a.Qa),Mg(a.ja,d));d=!xa(f);for(var n=0,p=g.length,q=0,v,t=a.qa,B=a.ma,F,X,ca,da,Aa=0,oa=0,ya=a.f!=g||a.overlaps?0:200;n<p;){var z=g[n],na,ra,M,ia;switch(z[0]){case 0:q=z[1];d&&f[ea(q).toString()]||!q.L()?n=z[2]:void 0===k||$b(k,q.L().F())?++n:n=z[2]+1;break;case 1:Aa>ya&&(Xh(a,b,e),Aa=0);oa>ya&&(b.stroke(),oa=0);Aa||oa||b.beginPath();++n;break;case 2:q=z[1];v=m[q];z=m[q+1];ca=m[q+2]-v;q=m[q+3]-z;
|
|
182
|
-
q=Math.sqrt(ca*ca+q*q);b.moveTo(v+q,z);b.arc(v,z,q,0,2*Math.PI,!0);++n;break;case 3:b.closePath();++n;break;case 4:q=z[1];v=z[2];na=z[3];ra=z[4]*c;M=z[5]*c;var Ea=z[6],Na=z[7],yb=z[8],Lb=z[9];ia=z[10];ca=z[11];da=z[12];var gc=z[13],Ra=z[14];for(ia&&(ca+=e);q<v;q+=2){z=m[q]-ra;ia=m[q+1]-M;gc&&(z=Math.round(z),ia=Math.round(ia));if(1!=da||0!==ca){var lb=z+ra,ne=ia+M;Og(t,lb,ne,da,da,ca,-lb,-ne);b.setTransform.apply(b,t)}lb=b.globalAlpha;1!=Na&&(b.globalAlpha=lb*Na);var ne=Ra+yb>na.width?na.width-yb:
|
|
183
|
-
Ra,Cj=Ea+Lb>na.height?na.height-Lb:Ea;b.drawImage(na,yb,Lb,ne,Cj,z,ia,ne*c,Cj*c);1!=Na&&(b.globalAlpha=lb);1==da&&0===ca||b.setTransform.apply(b,B)}++n;break;case 5:q=z[1];v=z[2];M=z[3];Ea=z[4]*c;Na=z[5]*c;ca=z[6];da=z[7]*c;na=z[8];ra=z[9];for((ia=z[10])&&(ca+=e);q<v;q+=2){z=m[q]+Ea;ia=m[q+1]+Na;if(1!=da||0!==ca)Og(t,z,ia,da,da,ca,-z,-ia),b.setTransform.apply(b,t);yb=M.split("\n");Lb=yb.length;1<Lb?(gc=Math.round(1.5*b.measureText("M").width),ia-=(Lb-1)/2*gc):gc=0;for(Ra=0;Ra<Lb;Ra++)lb=yb[Ra],ra&&
|
|
184
|
-
b.strokeText(lb,z,ia),na&&b.fillText(lb,z,ia),ia+=gc;1==da&&0===ca||b.setTransform.apply(b,B)}++n;break;case 6:if(void 0!==h&&(q=z[1],q=h(q)))return q;++n;break;case 7:ya?Aa++:Xh(a,b,e);++n;break;case 8:q=z[1];v=z[2];z=m[q];ia=m[q+1];ca=z+.5|0;da=ia+.5|0;if(ca!==F||da!==X)b.moveTo(z,ia),F=ca,X=da;for(q+=2;q<v;q+=2)if(z=m[q],ia=m[q+1],ca=z+.5|0,da=ia+.5|0,q==v-2||ca!==F||da!==X)b.lineTo(z,ia),F=ca,X=da;++n;break;case 9:a.wa=z[2];Aa&&(Xh(a,b,e),Aa=0);b.fillStyle=z[1];++n;break;case 10:F=void 0!==z[7]?
|
|
185
|
-
z[7]:!0;var Dj=z[8];X=z[2];oa&&(b.stroke(),oa=0);b.strokeStyle=z[1];b.lineWidth=F?X*c:X;b.lineCap=z[3];b.lineJoin=z[4];b.miterLimit=z[5];ve&&(X=z[6],F&&c!==Dj&&(X=X.map(function(a){return a*c/Dj}),z[6]=X,z[8]=c),b.setLineDash(X));X=F=NaN;++n;break;case 11:b.font=z[1];b.textAlign=z[2];b.textBaseline=z[3];++n;break;case 12:ya?oa++:b.stroke();++n;break;default:++n}}Aa&&Xh(a,b,e);oa&&b.stroke()}Uh.prototype.la=function(a,b,c,d,e){Yh(this,a,b,c,d,e,this.f,void 0,void 0)};
|
|
186
|
-
function Zh(a){var b=a.c;b.reverse();var c,d=b.length,e,f,g=-1;for(c=0;c<d;++c)if(e=b[c],f=e[0],6==f)g=c;else if(0==f){e[2]=c;e=a.c;for(f=c;g<f;){var h=e[g];e[g]=e[f];e[f]=h;++g;--f}g=-1}}function $h(a,b){a.I[2]=a.f.length;a.I=null;a.H[2]=a.c.length;a.H=null;var c=[6,b];a.f.push(c);a.c.push(c)}Uh.prototype.Qc=ba;Uh.prototype.Fd=function(){return this.Z};function ai(a,b,c,d){Uh.call(this,a,b,c,d);this.j=this.T=null;this.aa=this.G=this.C=this.B=this.v=this.s=this.o=this.D=this.i=this.g=this.a=void 0}u(ai,Uh);ai.prototype.Cd=function(a,b){if(this.j){Wh(this,b);var c=a.l,d=this.coordinates.length,c=Vh(this,c,0,c.length,a.A,!1,!1);this.f.push([4,d,c,this.j,this.a,this.g,this.i,this.D,this.o,this.s,this.v,this.B,this.C,this.G,this.aa]);this.c.push([4,d,c,this.T,this.a,this.g,this.i,this.D,this.o,this.s,this.v,this.B,this.C,this.G,this.aa]);$h(this,b)}};
|
|
187
|
-
ai.prototype.Ad=function(a,b){if(this.j){Wh(this,b);var c=a.l,d=this.coordinates.length,c=Vh(this,c,0,c.length,a.A,!1,!1);this.f.push([4,d,c,this.j,this.a,this.g,this.i,this.D,this.o,this.s,this.v,this.B,this.C,this.G,this.aa]);this.c.push([4,d,c,this.T,this.a,this.g,this.i,this.D,this.o,this.s,this.v,this.B,this.C,this.G,this.aa]);$h(this,b)}};ai.prototype.Qc=function(){Zh(this);this.g=this.a=void 0;this.j=this.T=null;this.aa=this.G=this.B=this.v=this.s=this.o=this.D=this.C=this.i=void 0};
|
|
188
|
-
ai.prototype.$c=function(a){var b=a.yb(),c=a.eb(),d=a.Af(1),e=a.Jb(1),f=a.Kb();this.a=b[0];this.g=b[1];this.T=d;this.j=e;this.i=c[1];this.D=a.o;this.o=f[0];this.s=f[1];this.v=a.G;this.B=a.s;this.C=a.j;this.G=a.v;this.aa=c[0]};function bi(a,b,c,d){Uh.call(this,a,b,c,d);this.g=null;this.a={ac:void 0,Wb:void 0,Xb:null,Yb:void 0,Zb:void 0,$b:void 0,Vd:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}u(bi,Uh);function ci(a,b,c,d,e){var f=a.coordinates.length;b=Vh(a,b,c,d,e,!1,!1);f=[8,f,b];a.f.push(f);a.c.push(f);return d}l=bi.prototype;l.Fd=function(){this.g||(this.g=Bb(this.Z),0<this.b&&Ab(this.g,this.resolution*(this.b+1)/2,this.g));return this.g};
|
|
189
|
-
function di(a){var b=a.a,c=b.strokeStyle,d=b.lineCap,e=b.lineDash,f=b.lineJoin,g=b.lineWidth,h=b.miterLimit;b.ac==c&&b.Wb==d&&ab(b.Xb,e)&&b.Yb==f&&b.Zb==g&&b.$b==h||(b.Vd!=a.coordinates.length&&(a.f.push([12]),b.Vd=a.coordinates.length),a.f.push([10,c,g,d,f,h,e,!0,1],[1]),b.ac=c,b.Wb=d,b.Xb=e,b.Yb=f,b.Zb=g,b.$b=h)}
|
|
190
|
-
l.yd=function(a,b){var c=this.a,d=c.lineWidth;void 0!==c.strokeStyle&&void 0!==d&&(di(this),Wh(this,b),this.c.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,!0,1],[1]),c=a.l,ci(this,c,0,c.length,a.A),this.c.push([12]),$h(this,b))};
|
|
191
|
-
l.zd=function(a,b){var c=this.a,d=c.lineWidth;if(void 0!==c.strokeStyle&&void 0!==d){di(this);Wh(this,b);this.c.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,!0,1],[1]);var c=a.Ua(),d=a.l,e=a.A,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=ci(this,d,f,c[g],e);this.c.push([12]);$h(this,b)}};l.Qc=function(){this.a.Vd!=this.coordinates.length&&this.f.push([12]);Zh(this);this.a=null};
|
|
192
|
-
l.fb=function(a,b){var c=b.f;this.a.strokeStyle=ae(c?c:fh);c=b.g;this.a.lineCap=void 0!==c?c:"round";c=b.a;this.a.lineDash=c?c:eh;c=b.i;this.a.lineJoin=void 0!==c?c:"round";c=b.b;this.a.lineWidth=void 0!==c?c:1;c=b.j;this.a.miterLimit=void 0!==c?c:10;this.a.lineWidth>this.b&&(this.b=this.a.lineWidth,this.g=null)};function ei(a,b,c,d){Uh.call(this,a,b,c,d);this.g=null;this.a={Ke:void 0,ac:void 0,Wb:void 0,Xb:null,Yb:void 0,Zb:void 0,$b:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}u(ei,Uh);
|
|
193
|
-
function fi(a,b,c,d,e){var f=a.a,g=void 0!==f.fillStyle,f=void 0!=f.strokeStyle,h=d.length,k=[1];a.f.push(k);a.c.push(k);for(k=0;k<h;++k){var m=d[k],n=a.coordinates.length;c=Vh(a,b,c,m,e,!0,!f);c=[8,n,c];a.f.push(c);a.c.push(c);f&&(c=[3],a.f.push(c),a.c.push(c));c=m}b=[7];a.c.push(b);g&&a.f.push(b);f&&(g=[12],a.f.push(g),a.c.push(g));return c}l=ei.prototype;
|
|
194
|
-
l.Bc=function(a,b){var c=this.a,d=c.strokeStyle;if(void 0!==c.fillStyle||void 0!==d){gi(this,a);Wh(this,b);this.c.push([9,Yd(dh)]);void 0!==c.strokeStyle&&this.c.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,!0,1]);var e=a.l,d=this.coordinates.length;Vh(this,e,0,e.length,a.A,!1,!1);e=[1];d=[2,d];this.f.push(e,d);this.c.push(e,d);d=[7];this.c.push(d);void 0!==c.fillStyle&&this.f.push(d);void 0!==c.strokeStyle&&(c=[12],this.f.push(c),this.c.push(c));$h(this,b)}};
|
|
195
|
-
l.Dd=function(a,b){var c=this.a;gi(this,a);Wh(this,b);this.c.push([9,Yd(dh)]);void 0!==c.strokeStyle&&this.c.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,!0,1]);var c=a.Ua(),d=md(a);fi(this,d,0,c,a.A);$h(this,b)};
|
|
196
|
-
l.Bd=function(a,b){var c=this.a,d=c.strokeStyle;if(void 0!==c.fillStyle||void 0!==d){gi(this,a);Wh(this,b);this.c.push([9,Yd(dh)]);void 0!==c.strokeStyle&&this.c.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,!0,1]);var c=a.a,d=Dh(a),e=a.A,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=fi(this,d,f,c[g],e);$h(this,b)}};l.Qc=function(){Zh(this);this.a=null;var a=this.gb;if(0!==a){var b=this.coordinates,c,d;c=0;for(d=b.length;c<d;++c)b[c]=a*Math.round(b[c]/a)}};
|
|
197
|
-
l.Fd=function(){this.g||(this.g=Bb(this.Z),0<this.b&&Ab(this.g,this.resolution*(this.b+1)/2,this.g));return this.g};
|
|
198
|
-
l.fb=function(a,b){var c=this.a;if(a){var d=a.c;c.fillStyle=ae(d?d:dh)}else c.fillStyle=void 0;b?(d=b.f,c.strokeStyle=ae(d?d:fh),d=b.g,c.lineCap=void 0!==d?d:"round",d=b.a,c.lineDash=d?d.slice():eh,d=b.i,c.lineJoin=void 0!==d?d:"round",d=b.b,c.lineWidth=void 0!==d?d:1,d=b.j,c.miterLimit=void 0!==d?d:10,c.lineWidth>this.b&&(this.b=c.lineWidth,this.g=null)):(c.strokeStyle=void 0,c.lineCap=void 0,c.lineDash=null,c.lineJoin=void 0,c.lineWidth=void 0,c.miterLimit=void 0)};
|
|
199
|
-
function gi(a,b){var c=a.a,d=c.fillStyle,e=c.strokeStyle,f=c.lineCap,g=c.lineDash,h=c.lineJoin,k=c.lineWidth,m=c.miterLimit;if(void 0!==d&&("string"!==typeof d||c.Ke!=d)){var n=[9,d];"string"!==typeof d&&(d=b.F(),n.push([d[0],d[3]]));a.f.push(n);c.Ke=c.fillStyle}void 0===e||c.ac==e&&c.Wb==f&&ab(c.Xb,g)&&c.Yb==h&&c.Zb==k&&c.$b==m||(a.f.push([10,e,k,f,h,m,g,!0,1]),c.ac=e,c.Wb=f,c.Xb=g,c.Yb=h,c.Zb=k,c.$b=m)};function hi(a,b,c,d){Uh.call(this,a,b,c,d);this.aa=this.G=this.C=null;this.j="";this.o=this.D=0;this.s=void 0;this.B=this.v=0;this.i=this.g=this.a=null}u(hi,Uh);
|
|
200
|
-
function ii(a,b,c,d,e){if(""!==a.j&&a.i&&(a.a||a.g)){if(a.a){var f=a.a,g=a.C;if(!g||g.fillStyle!=f.fillStyle){var h=[9,f.fillStyle];a.f.push(h);a.c.push(h);g?g.fillStyle=f.fillStyle:a.C={fillStyle:f.fillStyle}}}a.g&&(f=a.g,g=a.G,g&&g.lineCap==f.lineCap&&g.lineDash==f.lineDash&&g.lineJoin==f.lineJoin&&g.lineWidth==f.lineWidth&&g.miterLimit==f.miterLimit&&g.strokeStyle==f.strokeStyle||(h=[10,f.strokeStyle,f.lineWidth,f.lineCap,f.lineJoin,f.miterLimit,f.lineDash,!1,1],a.f.push(h),a.c.push(h),g?(g.lineCap=
|
|
201
|
-
f.lineCap,g.lineDash=f.lineDash,g.lineJoin=f.lineJoin,g.lineWidth=f.lineWidth,g.miterLimit=f.miterLimit,g.strokeStyle=f.strokeStyle):a.G={lineCap:f.lineCap,lineDash:f.lineDash,lineJoin:f.lineJoin,lineWidth:f.lineWidth,miterLimit:f.miterLimit,strokeStyle:f.strokeStyle}));f=a.i;g=a.aa;g&&g.font==f.font&&g.textAlign==f.textAlign&&g.textBaseline==f.textBaseline||(h=[11,f.font,f.textAlign,f.textBaseline],a.f.push(h),a.c.push(h),g?(g.font=f.font,g.textAlign=f.textAlign,g.textBaseline=f.textBaseline):a.aa=
|
|
202
|
-
{font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline});Wh(a,e);f=a.coordinates.length;b=Vh(a,b,0,c,d,!1,!1);b=[5,f,b,a.j,a.D,a.o,a.v,a.B,!!a.a,!!a.g,a.s];a.f.push(b);a.c.push(b);$h(a,e)}}
|
|
203
|
-
hi.prototype.Za=function(a){if(a){var b=a.c;b?(b=b.c,b=ae(b?b:dh),this.a?this.a.fillStyle=b:this.a={fillStyle:b}):this.a=null;var c=a.a;if(c){var b=c.f,d=c.g,e=c.a,f=c.i,g=c.b,c=c.j,d=void 0!==d?d:"round",e=e?e.slice():eh,f=void 0!==f?f:"round",g=void 0!==g?g:1,c=void 0!==c?c:10,b=ae(b?b:fh);if(this.g){var h=this.g;h.lineCap=d;h.lineDash=e;h.lineJoin=f;h.lineWidth=g;h.miterLimit=c;h.strokeStyle=b}else this.g={lineCap:d,lineDash:e,lineJoin:f,lineWidth:g,miterLimit:c,strokeStyle:b}}else this.g=null;
|
|
204
|
-
var k=a.b,b=a.g,d=a.i,e=a.s,g=a.j,c=a.f,f=a.ra(),h=a.D,m=a.o;a=void 0!==k?k:"10px sans-serif";h=void 0!==h?h:"center";m=void 0!==m?m:"middle";this.i?(k=this.i,k.font=a,k.textAlign=h,k.textBaseline=m):this.i={font:a,textAlign:h,textBaseline:m};this.j=void 0!==f?f:"";this.D=void 0!==b?b:0;this.o=void 0!==d?d:0;this.s=void 0!==e?e:!1;this.v=void 0!==g?g:0;this.B=void 0!==c?c:1}else this.j=""};var ji=["Polygon","Circle","LineString","Image","Text"];function ki(a,b,c,d,e){this.D=a;this.f=b;this.i=d;this.j=c;this.a=e;this.c={};this.b=be(1,1);this.g=Lg()}u(ki,Th);var li={0:[[!0]]};function mi(a,b,c){var d,e=Math.floor(a.length/2);if(b>=e)for(d=e;d<b;d++)a[d][c]=!0;else if(b<e)for(d=b+1;d<e;d++)a[d][c]=!0}
|
|
205
|
-
function ni(a){if(void 0!==li[a])return li[a];for(var b=2*a+1,c=Array(b),d=0;d<b;d++)c[d]=Array(b);for(var b=a,e=d=0;b>=d;)mi(c,a+b,a+d),mi(c,a+d,a+b),mi(c,a-d,a+b),mi(c,a-b,a+d),mi(c,a-b,a-d),mi(c,a-d,a-b),mi(c,a+d,a-b),mi(c,a+b,a-d),d++,e+=1+2*d,0<2*(e-b)+1&&(--b,e+=1-2*b);return li[a]=c}function oi(a){for(var b in a.c){var c=a.c[b],d;for(d in c)c[d].Qc()}}
|
|
206
|
-
ki.prototype.Ca=function(a,b,c,d,e,f){d=Math.round(d);var g=2*d+1,h=Og(this.g,d+.5,d+.5,1/b,-1/b,-c,-a[0],-a[1]),k=this.b;k.canvas.width!==g||k.canvas.height!==g?(k.canvas.width=g,k.canvas.height=g):k.clearRect(0,0,g,g);var m;void 0!==this.a&&(m=xb(),zb(m,a),Ab(m,b*(this.a+d),m));var n=ni(d);return pi(this,k,h,c,e,function(a){for(var b=k.getImageData(0,0,g,g).data,c=0;c<g;c++)for(var d=0;d<g;d++)if(n[c][d]&&0<b[4*(d*g+c)+3]){if(a=f(a))return a;k.clearRect(0,0,g,g);return}},m)};
|
|
207
|
-
function qi(a,b,c){var d=void 0!==b?b.toString():"0";b=a.c[d];void 0===b&&(b={},a.c[d]=b);d=b[c];void 0===d&&(d=new ri[c](a.D,a.f,a.j,a.i),b[c]=d);return d}
|
|
208
|
-
ki.prototype.la=function(a,b,c,d,e,f){var g=Object.keys(this.c).map(Number);g.sort(Xa);var h=this.f,k=h[0],m=h[1],n=h[2],h=h[3],k=[k,m,k,h,n,h,n,m];Kc(k,0,8,2,c,k);a.save();a.beginPath();a.moveTo(k[0],k[1]);a.lineTo(k[2],k[3]);a.lineTo(k[4],k[5]);a.lineTo(k[6],k[7]);a.clip();f=f?f:ji;for(var p,q,k=0,m=g.length;k<m;++k)for(p=this.c[g[k].toString()],n=0,h=f.length;n<h;++n)q=p[f[n]],void 0!==q&&q.la(a,b,c,d,e);a.restore()};
|
|
209
|
-
function pi(a,b,c,d,e,f,g){var h=Object.keys(a.c).map(Number);h.sort(function(a,b){return b-a});var k,m,n,p,q;k=0;for(m=h.length;k<m;++k)for(p=a.c[h[k].toString()],n=ji.length-1;0<=n;--n)if(q=p[ji[n]],void 0!==q&&(q=Yh(q,b,1,c,d,e,q.c,f,g)))return q}var ri={Circle:ei,Image:ai,LineString:bi,Polygon:ei,Text:hi};function si(a,b){return ea(a)-ea(b)}function ti(a,b){var c=.5*a/b;return c*c}function ui(a,b,c,d,e,f){var g=!1,h,k;if(h=c.b)k=h.Rc(),k==bh||k==ah?h.Tf(e,f):(k==$g&&h.load(),h.kf(e,f),g=!0);if(e=(0,c.g)(b))d=e.Ec(d),(0,vi[d.K()])(a,d,c,b);return g}
|
|
210
|
-
var vi={Point:function(a,b,c,d){var e=c.b;if(e){if(e.Rc()!=bh)return;var f=qi(a,c.c,"Image");f.$c(e);f.Cd(b,d)}if(e=c.ra())a=qi(a,c.c,"Text"),a.Za(e),ii(a,b.l,2,2,d)},LineString:function(a,b,c,d){var e=c.f;if(e){var f=qi(a,c.c,"LineString");f.fb(null,e);f.yd(b,d)}if(e=c.ra())a=qi(a,c.c,"Text"),a.Za(e),ii(a,Bh(b),2,2,d)},Polygon:function(a,b,c,d){var e=c.a,f=c.f;if(e||f){var g=qi(a,c.c,"Polygon");g.fb(e,f);g.Dd(b,d)}if(e=c.ra())a=qi(a,c.c,"Text"),a.Za(e),ii(a,nd(b),2,2,d)},MultiPoint:function(a,b,
|
|
211
|
-
c,d){var e=c.b;if(e){if(e.Rc()!=bh)return;var f=qi(a,c.c,"Image");f.$c(e);f.Ad(b,d)}if(e=c.ra())a=qi(a,c.c,"Text"),a.Za(e),c=b.l,ii(a,c,c.length,b.A,d)},MultiLineString:function(a,b,c,d){var e=c.f;if(e){var f=qi(a,c.c,"LineString");f.fb(null,e);f.zd(b,d)}if(e=c.ra())a=qi(a,c.c,"Text"),a.Za(e),b=Ch(b),ii(a,b,b.length,2,d)},MultiPolygon:function(a,b,c,d){var e=c.a,f=c.f;if(f||e){var g=qi(a,c.c,"Polygon");g.fb(e,f);g.Bd(b,d)}if(e=c.ra())a=qi(a,c.c,"Text"),a.Za(e),b=Eh(b),ii(a,b,b.length,2,d)},GeometryCollection:function(a,
|
|
212
|
-
b,c,d){b=b.b;var e,f;e=0;for(f=b.length;e<f;++e)(0,vi[b[e].K()])(a,b[e],c,d)},Circle:function(a,b,c,d){var e=c.a,f=c.f;if(e||f){var g=qi(a,c.c,"Circle");g.fb(e,f);g.Bc(b,d)}if(e=c.ra())a=qi(a,c.c,"Text"),a.Za(e),ii(a,b.fc(),2,2,d)}};function Vg(a){Mh.call(this,a);this.b=!1;this.C=-1;this.s=NaN;this.j=xb();this.g=this.o=null;this.i=be()}u(Vg,Mh);
|
|
213
|
-
Vg.prototype.B=function(a,b,c){var d=a.extent,e=a.pixelRatio,f=b.Wd?a.skippedFeatureUids:{},g=a.viewState,h=g.projection,g=g.rotation,k=h.F(),m=this.a.ka(),n=Ph(this,a,0);Oh(this,"precompose",c,a,n);var p=b.extent,q=void 0!==p;q&&Nh(c,a,p);if((p=this.g)&&!xa(p.c)){var v=0,t=0,B;if(Oa(this.a,"render")){B=c.canvas.width;var F=c.canvas.height;if(g){var X=Math.round(Math.sqrt(B*B+F*F)),v=(X-B)/2,t=(X-F)/2;B=F=X}this.i.canvas.width=B;this.i.canvas.height=F;B=this.i}else B=c;F=B.globalAlpha;B.globalAlpha=
|
|
214
|
-
b.opacity;B!=c&&B.translate(v,t);b=a.size[0]*e;X=a.size[1]*e;gh(B,-g,b/2,X/2);p.la(B,e,n,g,f);if(m.B&&h.c&&!Fb(k,d)){for(var h=d[0],m=Vb(k),ca=0;h<k[0];)--ca,n=m*ca,n=Ph(this,a,n),p.la(B,e,n,g,f),h+=m;ca=0;for(h=d[2];h>k[2];)++ca,n=m*ca,n=Ph(this,a,n),p.la(B,e,n,g,f),h-=m;n=Ph(this,a,0)}gh(B,g,b/2,X/2);B!=c&&(Oh(this,"render",B,a,n),c.drawImage(B.canvas,-v,-t),B.translate(-v,-t));B.globalAlpha=F}q&&c.restore();this.H(c,a,n)};
|
|
215
|
-
Vg.prototype.Ca=function(a,b,c,d,e){if(this.g){var f=this.a,g={};return this.g.Ca(a,b.viewState.resolution,b.viewState.rotation,c,{},function(a){var b=ea(a).toString();if(!(b in g))return g[b]=!0,d.call(e,a,f)})}};Vg.prototype.G=function(){Ih(this)};
|
|
216
|
-
Vg.prototype.D=function(a){function b(a){var b,d=a.g;d?b=d.call(a,m):(d=c.j)&&(b=d(a,m));if(b){if(b){d=!1;if(Array.isArray(b))for(var e=0,f=b.length;e<f;++e)d=ui(q,a,b[e],ti(m,n),this.G,this)||d;else d=ui(q,a,b,ti(m,n),this.G,this)||d;a=d}else a=!1;this.b=this.b||a}}var c=this.a,d=c.ka();Kh(a.attributions,d.o);Lh(a,d);var e=a.viewHints[td],f=a.viewHints[1],g=c.H,h=c.T;if(!this.b&&!g&&e||!h&&f)return!0;var k=a.extent,h=a.viewState,e=h.projection,m=h.resolution,n=a.pixelRatio,f=c.f,p=c.B,g=c.get("renderOrder");
|
|
217
|
-
void 0===g&&(g=si);k=Ab(k,p*m);p=h.projection.F();d.B&&h.projection.c&&!Fb(p,a.extent)&&(a=Math.max(Vb(k)/2,Vb(p)),k[0]=p[0]-a,k[2]=p[2]+a);if(!this.b&&this.s==m&&this.C==f&&this.o==g&&Fb(this.j,k))return!0;this.g=null;this.b=!1;var q=new ki(.5*m/n,k,m,d.Z,c.B);wi(d,k,m,e);if(g){var v=[];d.ib(k,function(a){v.push(a)},this);v.sort(g);v.forEach(b,this)}else d.ib(k,b,this);oi(q);this.s=m;this.C=f;this.o=g;this.j=k;this.g=q;return!0};function xi(a,b){Pg.call(this,0,b);this.g=be();this.c=this.g.canvas;this.c.style.width="100%";this.c.style.height="100%";this.c.className="ol-unselectable";a.insertBefore(this.c,a.childNodes[0]||null);this.a=!0;this.j=Lg()}u(xi,Pg);function yi(a,b,c){var d=a.i,e=a.g;if(Oa(d,b)){var f=c.extent,g=c.pixelRatio,h=c.viewState.rotation,k=c.viewState,m=c.pixelRatio/k.resolution;a=Og(a.j,a.c.width/2,a.c.height/2,m,-m,-k.rotation,-k.center[0],-k.center[1]);d.c(new Hg(b,new uh(e,g,f,a,h),c,e,null))}}
|
|
218
|
-
xi.prototype.K=function(){return"canvas"};
|
|
219
|
-
xi.prototype.Kf=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.c.width!=d||this.c.height!=c?(this.c.width=d,this.c.height=c):b.clearRect(0,0,d,c);var e=a.viewState.rotation,f=a.viewState,g=a.coordinateToPixelTransform,h=a.pixelToCoordinateTransform;Og(g,a.size[0]/2,a.size[1]/2,1/f.resolution,-1/f.resolution,-f.rotation,-f.center[0],-f.center[1]);f=Mg(h,g);g=f[0]*f[3]-f[1]*f[2];ha(0!==g,32);var h=f[0],k=f[1],m=f[2],n=f[3],p=f[4],q=f[5];f[0]=n/
|
|
220
|
-
g;f[1]=-k/g;f[2]=-m/g;f[3]=h/g;f[4]=(m*q-n*p)/g;f[5]=-(h*q-k*p)/g;yi(this,"precompose",a);f=a.layerStatesArray;bb(f);gh(b,e,d/2,c/2);g=a.viewState.resolution;h=0;for(k=f.length;h<k;++h)m=f[h],n=m.layer,n=Rg(this,n),m.visible&&g>=m.minResolution&&g<m.maxResolution&&"ready"==m.bk&&n.D(a,m)&&n.B(a,m,b);gh(b,-e,d/2,c/2);yi(this,"postcompose",a);this.a||(this.c.style.display="",this.a=!0);for(var v in this.f)if(!(v in a.layerStates)){a.postRenderFunctions.push(this.Fj.bind(this));break}a.postRenderFunctions.push(Qg)}else this.a&&
|
|
221
|
-
(this.c.style.display="none",this.a=!1)};var zi,Ai;
|
|
222
|
-
(function(){var a={},b={X:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.X=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Bk=c()}})(function(){return function d(a,b,g){function h(m,p){if(!b[m]){if(!a[m]){var q="function"==typeof require&&require;if(!p&&q)return q(m,!0);if(k)return k(m,!0);q=Error("Cannot find module '"+m+"'");throw q.code="MODULE_NOT_FOUND",q;}q=b[m]={X:{}};a[m][0].call(q.X,function(b){var d=
|
|
223
|
-
a[m][1][b];return h(d?d:b)},q,q.X,d,a,b,g)}return b[m].X}for(var k="function"==typeof require&&require,m=0;m<g.length;m++)h(g[m]);return h}({1:[function(a,b){function f(a,b,d,e,q){d=d||0;e=e||a.length-1;for(q=q||h;e>d;){if(600<e-d){var v=e-d+1,t=b-d+1,B=Math.log(v),F=.5*Math.exp(2*B/3),B=.5*Math.sqrt(B*F*(v-F)/v)*(0>t-v/2?-1:1);f(a,b,Math.max(d,Math.floor(b-t*F/v+B)),Math.min(e,Math.floor(b+(v-t)*F/v+B)),q)}v=a[b];t=d;F=e;g(a,d,b);for(0<q(a[e],v)&&g(a,d,e);t<F;){g(a,t,F);t++;for(F--;0>q(a[t],v);)t++;
|
|
224
|
-
for(;0<q(a[F],v);)F--}0===q(a[d],v)?g(a,d,F):(F++,g(a,F,e));F<=b&&(d=F+1);b<=F&&(e=F-1)}}function g(a,b,d){var e=a[b];a[b]=a[d];a[d]=e}function h(a,b){return a<b?-1:a>b?1:0}b.X=f},{}],2:[function(a,b){function f(a,b){if(!(this instanceof f))return new f(a,b);this.sd=Math.max(4,a||9);this.Ce=Math.max(2,Math.ceil(.4*this.sd));b&&this.fg(b);this.clear()}function g(a,b){h(a,0,a.children.length,b,a)}function h(a,b,d,e,f){f||(f=B(null));f.M=Infinity;f.S=Infinity;f.O=-Infinity;f.W=-Infinity;for(var g;b<
|
|
225
|
-
d;b++)g=a.children[b],k(f,a.ya?e(g):g);return f}function k(a,b){a.M=Math.min(a.M,b.M);a.S=Math.min(a.S,b.S);a.O=Math.max(a.O,b.O);a.W=Math.max(a.W,b.W)}function m(a,b){return a.M-b.M}function n(a,b){return a.S-b.S}function p(a){return(a.O-a.M)*(a.W-a.S)}function q(a){return a.O-a.M+(a.W-a.S)}function v(a,b){return a.M<=b.M&&a.S<=b.S&&b.O<=a.O&&b.W<=a.W}function t(a,b){return b.M<=a.O&&b.S<=a.W&&b.O>=a.M&&b.W>=a.S}function B(a){return{children:a,height:1,ya:!0,M:Infinity,S:Infinity,O:-Infinity,W:-Infinity}}
|
|
226
|
-
function F(a,b,d,e,f){for(var g=[b,d],h;g.length;)d=g.pop(),b=g.pop(),d-b<=e||(h=b+Math.ceil((d-b)/e/2)*e,X(a,h,b,d,f),g.push(b,h,h,d))}b.X=f;var X=a("quickselect");f.prototype={all:function(){return this.we(this.data,[])},search:function(a){var b=this.data,d=[],e=this.Ha;if(!t(a,b))return d;for(var f=[],g,h,k,m;b;){g=0;for(h=b.children.length;g<h;g++)k=b.children[g],m=b.ya?e(k):k,t(a,m)&&(b.ya?d.push(k):v(a,m)?this.we(k,d):f.push(k));b=f.pop()}return d},load:function(a){if(!a||!a.length)return this;
|
|
227
|
-
if(a.length<this.Ce){for(var b=0,d=a.length;b<d;b++)this.ua(a[b]);return this}a=this.ye(a.slice(),0,a.length-1,0);this.data.children.length?this.data.height===a.height?this.Ee(this.data,a):(this.data.height<a.height&&(b=this.data,this.data=a,a=b),this.Be(a,this.data.height-a.height-1,!0)):this.data=a;return this},ua:function(a){a&&this.Be(a,this.data.height-1);return this},clear:function(){this.data=B([]);return this},remove:function(a,b){if(!a)return this;for(var d=this.data,e=this.Ha(a),f=[],g=
|
|
228
|
-
[],h,k,m,n;d||f.length;){d||(d=f.pop(),k=f[f.length-1],h=g.pop(),n=!0);if(d.ya){a:{m=a;var p=d.children,q=b;if(q){for(var t=0;t<p.length;t++)if(q(m,p[t])){m=t;break a}m=-1}else m=p.indexOf(m)}if(-1!==m){d.children.splice(m,1);f.push(d);this.dg(f);break}}n||d.ya||!v(d,e)?k?(h++,d=k.children[h],n=!1):d=null:(f.push(d),g.push(h),h=0,k=d,d=d.children[0])}return this},Ha:function(a){return a},vd:m,wd:n,toJSON:function(){return this.data},we:function(a,b){for(var d=[];a;)a.ya?b.push.apply(b,a.children):
|
|
229
|
-
d.push.apply(d,a.children),a=d.pop();return b},ye:function(a,b,d,e){var f=d-b+1,h=this.sd,k;if(f<=h)return k=B(a.slice(b,d+1)),g(k,this.Ha),k;e||(e=Math.ceil(Math.log(f)/Math.log(h)),h=Math.ceil(f/Math.pow(h,e-1)));k=B([]);k.ya=!1;k.height=e;var f=Math.ceil(f/h),h=f*Math.ceil(Math.sqrt(h)),m,n,p;for(F(a,b,d,h,this.vd);b<=d;b+=h)for(n=Math.min(b+h-1,d),F(a,b,n,f,this.wd),m=b;m<=n;m+=f)p=Math.min(m+f-1,n),k.children.push(this.ye(a,m,p,e-1));g(k,this.Ha);return k},cg:function(a,b,d,e){for(var f,g,h,
|
|
230
|
-
k,m,n,q,t;;){e.push(b);if(b.ya||e.length-1===d)break;q=t=Infinity;f=0;for(g=b.children.length;f<g;f++)h=b.children[f],m=p(h),n=(Math.max(h.O,a.O)-Math.min(h.M,a.M))*(Math.max(h.W,a.W)-Math.min(h.S,a.S))-m,n<t?(t=n,q=m<q?m:q,k=h):n===t&&m<q&&(q=m,k=h);b=k||b.children[0]}return b},Be:function(a,b,d){var e=this.Ha;d=d?a:e(a);var e=[],f=this.cg(d,this.data,b,e);f.children.push(a);for(k(f,d);0<=b;)if(e[b].children.length>this.sd)this.kg(e,b),b--;else break;this.$f(d,e,b)},kg:function(a,b){var d=a[b],e=
|
|
231
|
-
d.children.length,f=this.Ce;this.ag(d,f,e);e=this.bg(d,f,e);e=B(d.children.splice(e,d.children.length-e));e.height=d.height;e.ya=d.ya;g(d,this.Ha);g(e,this.Ha);b?a[b-1].children.push(e):this.Ee(d,e)},Ee:function(a,b){this.data=B([a,b]);this.data.height=a.height+1;this.data.ya=!1;g(this.data,this.Ha)},bg:function(a,b,d){var e,f,g,k,m,n,q;m=n=Infinity;for(e=b;e<=d-b;e++)f=h(a,0,e,this.Ha),g=h(a,e,d,this.Ha),k=Math.max(0,Math.min(f.O,g.O)-Math.max(f.M,g.M))*Math.max(0,Math.min(f.W,g.W)-Math.max(f.S,
|
|
232
|
-
g.S)),f=p(f)+p(g),k<m?(m=k,q=e,n=f<n?f:n):k===m&&f<n&&(n=f,q=e);return q},ag:function(a,b,d){var e=a.ya?this.vd:m,f=a.ya?this.wd:n,g=this.xe(a,b,d,e);b=this.xe(a,b,d,f);g<b&&a.children.sort(e)},xe:function(a,b,d,e){a.children.sort(e);e=this.Ha;var f=h(a,0,b,e),g=h(a,d-b,d,e),m=q(f)+q(g),n,p;for(n=b;n<d-b;n++)p=a.children[n],k(f,a.ya?e(p):p),m+=q(f);for(n=d-b-1;n>=b;n--)p=a.children[n],k(g,a.ya?e(p):p),m+=q(g);return m},$f:function(a,b,d){for(;0<=d;d--)k(b[d],a)},dg:function(a){for(var b=a.length-
|
|
233
|
-
1,d;0<=b;b--)0===a[b].children.length?0<b?(d=a[b-1].children,d.splice(d.indexOf(a[b]),1)):this.clear():g(a[b],this.Ha)},fg:function(a){var b=["return a"," - b",";"];this.vd=new Function("a","b",b.join(a[0]));this.wd=new Function("a","b",b.join(a[1]));this.Ha=new Function("a","return {minX: a"+a[0]+", minY: a"+a[1]+", maxX: a"+a[2]+", maxY: a"+a[3]+"};")}}},{quickselect:1}]},{},[2])(2)});zi=b.X})();function Bi(a){this.c=zi(a);this.f={}}l=Bi.prototype;l.ua=function(a,b){var c={M:a[0],S:a[1],O:a[2],W:a[3],value:b};this.c.ua(c);this.f[ea(b)]=c};l.load=function(a,b){for(var c=Array(b.length),d=0,e=b.length;d<e;d++){var f=a[d],g=b[d],f={M:f[0],S:f[1],O:f[2],W:f[3],value:g};c[d]=f;this.f[ea(g)]=f}this.c.load(c)};l.remove=function(a){a=ea(a);var b=this.f[a];delete this.f[a];return null!==this.c.remove(b)};function Ci(a,b,c){var d=a.f[ea(c)];Kb([d.M,d.S,d.O,d.W],b)||(a.remove(c),a.ua(b,c))}
|
|
234
|
-
function Di(a){return a.c.all().map(function(a){return a.value})}function Ei(a,b){return a.c.search({M:b[0],S:b[1],O:b[2],W:b[3]}).map(function(a){return a.value})}l.forEach=function(a,b){return Fi(Di(this),a,b)};function Gi(a,b,c,d){return Fi(Ei(a,b),c,d)}function Fi(a,b,c){for(var d,e=0,f=a.length;e<f&&!(d=b.call(c,a[e]));e++);return d}l.clear=function(){this.c.clear();this.f={}};l.F=function(){var a=this.c.data;return[a.M,a.S,a.O,a.W]};function Hi(a,b,c,d,e,f){this.b=void 0!==f?f:null;Yg.call(this,a,b,c,void 0!==f?$g:bh,d);this.f=e}u(Hi,Yg);Hi.prototype.g=function(a){this.state=a?ah:bh;this.u()};Hi.prototype.load=function(){this.state==$g&&(this.state=ch,this.u(),this.b(this.g.bind(this)))};Hi.prototype.a=function(){return this.f};var Ii,Ji=-1<navigator.userAgent.indexOf("OPR"),Ki=-1<navigator.userAgent.indexOf("Edge");Ii=!(!navigator.userAgent.match("CriOS")&&"chrome"in window&&"Google Inc."===navigator.vendor&&0==Ji&&0==Ki);function Li(a,b,c,d){var e=Hc(c,b,a);c=pc(b,d,c);b=b.jb();void 0!==b&&(c*=b);b=a.jb();void 0!==b&&(c/=b);a=pc(a,c,e)/c;isFinite(a)&&0<a&&(c/=a);return c}function Mi(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)]}
|
|
235
|
-
function Ni(a,b,c,d,e,f,g,h,k,m,n){var p=be(Math.round(c*a),Math.round(c*b));if(0===k.length)return p.canvas;p.scale(c,c);var q=xb();k.forEach(function(a){Mb(q,a.extent)});var v=be(Math.round(c*Vb(q)/d),Math.round(c*Wb(q)/d)),t=c/d;k.forEach(function(a){v.drawImage(a.image,m,m,a.image.width-2*m,a.image.height-2*m,(a.extent[0]-q[0])*t,-(a.extent[3]-q[3])*t,Vb(a.extent)*t,Wb(a.extent)*t)});var B=Sb(g);h.b.forEach(function(a){var b=a.source,e=a.target,g=b[1][0],h=b[1][1],k=b[2][0],m=b[2][1];a=(e[0][0]-
|
|
236
|
-
B[0])/f;var n=-(e[0][1]-B[1])/f,t=(e[1][0]-B[0])/f,ra=-(e[1][1]-B[1])/f,M=(e[2][0]-B[0])/f,ia=-(e[2][1]-B[1])/f,e=b[0][0],b=b[0][1],g=g-e,h=h-b,k=k-e,m=m-b;a:{g=[[g,h,0,0,t-a],[k,m,0,0,M-a],[0,0,g,h,ra-n],[0,0,k,m,ia-n]];h=g.length;for(k=0;k<h;k++){for(var m=k,Ea=Math.abs(g[k][k]),Na=k+1;Na<h;Na++){var yb=Math.abs(g[Na][k]);yb>Ea&&(Ea=yb,m=Na)}if(0===Ea){g=null;break a}Ea=g[m];g[m]=g[k];g[k]=Ea;for(m=k+1;m<h;m++)for(Ea=-g[m][k]/g[k][k],Na=k;Na<h+1;Na++)g[m][Na]=k==Na?0:g[m][Na]+Ea*g[k][Na]}k=Array(h);
|
|
237
|
-
for(m=h-1;0<=m;m--)for(k[m]=g[m][h]/g[m][m],Ea=m-1;0<=Ea;Ea--)g[Ea][h]-=g[Ea][m]*k[m];g=k}g&&(p.save(),p.beginPath(),Ii?(k=(a+t+M)/3,m=(n+ra+ia)/3,h=Mi(k,m,a,n),t=Mi(k,m,t,ra),M=Mi(k,m,M,ia),p.moveTo(t[0],t[1]),p.lineTo(h[0],h[1]),p.lineTo(M[0],M[1])):(p.moveTo(t,ra),p.lineTo(a,n),p.lineTo(M,ia)),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(v.canvas,0,0),p.restore())});n&&(p.save(),p.strokeStyle="black",p.lineWidth=1,h.b.forEach(function(a){var b=
|
|
238
|
-
a.target;a=(b[0][0]-B[0])/f;var c=-(b[0][1]-B[1])/f,d=(b[1][0]-B[0])/f,e=-(b[1][1]-B[1])/f,g=(b[2][0]-B[0])/f,b=-(b[2][1]-B[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 Oi(a,b,c,d,e){this.a=a;this.g=b;var f={},g=Fc(this.g,this.a);this.f=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.b=[];this.D=!1;this.o=this.a.c&&!!d&&!!this.a.F()&&Vb(d)==Vb(this.a.F());this.c=this.a.F()?Vb(this.a.F()):null;this.j=this.g.F()?Vb(this.g.F()):null;a=Sb(c);b=Rb(c);d=Qb(c);c=Pb(c);e=this.f(a);var h=this.f(b),k=this.f(d),m=this.f(c);Pi(this,a,b,d,c,e,h,k,m,10);if(this.D){var n=Infinity;this.b.forEach(function(a){n=Math.min(n,a.source[0][0],
|
|
239
|
-
a.source[1][0],a.source[2][0])});this.b.forEach(function(a){if(Math.max(a.source[0][0],a.source[1][0],a.source[2][0])-n>this.c/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.c/2&&(b[0][0]-=this.c);b[1][0]-n>this.c/2&&(b[1][0]-=this.c);b[2][0]-n>this.c/2&&(b[2][0]-=this.c);Math.max(b[0][0],b[1][0],b[2][0])-Math.min(b[0][0],b[1][0],b[2][0])<this.c/2&&(a.source=b)}},this)}f={}}
|
|
240
|
-
function Pi(a,b,c,d,e,f,g,h,k,m){var n=wb([f,g,h,k]),p=a.c?Vb(n)/a.c:null,q=a.c,v=a.a.c&&.5<p&&1>p,t=!1;if(0<m){if(a.g.a&&a.j)var B=wb([b,c,d,e]),t=t|.25<Vb(B)/a.j;!v&&a.a.a&&p&&(t|=.25<p)}if(t||!a.i||$b(n,a.i)){if(!(t||isFinite(f[0])&&isFinite(f[1])&&isFinite(g[0])&&isFinite(g[1])&&isFinite(h[0])&&isFinite(h[1])&&isFinite(k[0])&&isFinite(k[1])))if(0<m)t=!0;else return;if(0<m&&(t||(n=a.f([(b[0]+d[0])/2,(b[1]+d[1])/2]),q=v?(ma(f[0],q)+ma(h[0],q))/2-ma(n[0],q):(f[0]+h[0])/2-n[0],n=(f[1]+h[1])/2-n[1],
|
|
241
|
-
t=q*q+n*n>a.s),t)){Math.abs(b[0]-d[0])<=Math.abs(b[1]-d[1])?(v=[(c[0]+d[0])/2,(c[1]+d[1])/2],q=a.f(v),n=[(e[0]+b[0])/2,(e[1]+b[1])/2],p=a.f(n),Pi(a,b,c,v,n,f,g,q,p,m-1),Pi(a,n,v,d,e,p,q,h,k,m-1)):(v=[(b[0]+c[0])/2,(b[1]+c[1])/2],q=a.f(v),n=[(d[0]+e[0])/2,(d[1]+e[1])/2],p=a.f(n),Pi(a,b,v,n,e,f,q,p,k,m-1),Pi(a,v,c,d,n,q,g,h,p,m-1));return}if(v){if(!a.o)return;a.D=!0}a.b.push({source:[f,h,k],target:[b,d,e]});a.b.push({source:[f,g,h],target:[b,c,d]})}}
|
|
242
|
-
function Qi(a){var b=xb();a.b.forEach(function(a){a=a.source;zb(b,a[0]);zb(b,a[1]);zb(b,a[2])});return b};function Ri(a,b,c,d,e,f){this.v=b;this.s=a.F();var g=b.F(),h=g?Zb(c,g):c,g=Li(a,b,Xb(h),d);this.D=new Oi(a,b,h,this.s,.5*g);this.b=d;this.f=c;a=Qi(this.D);this.o=(this.Ka=f(a,g,e))?this.Ka.i:1;this.qc=this.g=null;e=bh;f=[];this.Ka&&(e=$g,f=this.Ka.j);Yg.call(this,c,d,this.o,e,f)}u(Ri,Yg);Ri.prototype.na=function(){this.state==ch&&(Ba(this.qc),this.qc=null);Yg.prototype.na.call(this)};Ri.prototype.a=function(){return this.g};
|
|
243
|
-
Ri.prototype.nc=function(){var a=this.Ka.U();a==bh&&(this.g=Ni(Vb(this.f)/this.b,Wb(this.f)/this.b,this.o,this.Ka.resolution,0,this.b,this.f,this.D,[{extent:this.Ka.F(),image:this.Ka.a()}],0));this.state=a;this.u()};Ri.prototype.load=function(){if(this.state==$g){this.state=ch;this.u();var a=this.Ka.U();a==bh||a==ah?this.nc():(this.qc=w(this.Ka,"change",function(){var a=this.Ka.U();if(a==bh||a==ah)Ba(this.qc),this.qc=null,this.nc()},this),this.Ka.load())}};function Si(a){Qa.call(this);this.g=rc(a.projection);this.o=Ti(a.attributions);this.T=a.logo;this.qa=void 0!==a.state?a.state:"ready";this.B=void 0!==a.wrapX?a.wrapX:!1}u(Si,Qa);function Ti(a){if("string"===typeof a)return[new Qd({html:a})];if(a instanceof Qd)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 Qd({html:e}):e}return c}return null}l=Si.prototype;l.Ca=ba;l.Hb=function(){return this.o};l.Ab=function(){return this.T};l.Ib=function(){return this.g};
|
|
244
|
-
l.U=function(){return this.qa};l.pb=function(){this.u()};l.rb=function(a){this.o=Ti(a);this.u()};function Ui(a,b){a.qa=b;a.u()};function Vi(a){Si.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.C=void 0!==a.resolutions?a.resolutions:null;this.a=null;this.ta=0}u(Vi,Si);
|
|
245
|
-
Vi.prototype.ma=function(a,b,c,d){var e=this.g;if(e&&d&&!Ec(e,d)){if(this.a){if(this.ta==this.f&&Ec(this.a.v,d)&&this.a.resolution==b&&this.a.i==c&&Kb(this.a.F(),a))return this.a;Ja(this.a);this.a=null}this.a=new Ri(e,d,a,b,c,function(a,b,c){return this.s(a,b,c,e)}.bind(this));this.ta=this.f;return this.a}e&&(d=e);return this.s(a,b,c,d)};Vi.prototype.v=function(a){a=a.target;switch(a.U()){case ch:this.c(new Wi(Xi,a));break;case bh:this.c(new Wi(Yi,a));break;case ah:this.c(new Wi(Zi,a))}};
|
|
246
|
-
function $i(a,b){a.a().src=b}function Wi(a,b){Ka.call(this,a);this.image=b}u(Wi,Ka);var Xi="imageloadstart",Yi="imageloadend",Zi="imageloaderror";function aj(a){Vi.call(this,{attributions:a.attributions,logo:a.logo,projection:a.projection,resolutions:a.resolutions,state:a.state});this.za=a.canvasFunction;this.H=null;this.Z=0;this.Aa=void 0!==a.ratio?a.ratio:1.5}u(aj,Vi);aj.prototype.s=function(a,b,c,d){this.C&&(b=this.C[Ya(this.C,b,0)]);var e=this.H;if(e&&this.Z==this.f&&e.resolution==b&&e.i==c&&Fb(e.F(),a))return e;a=a.slice();ac(a,this.Aa);(d=this.za(a,b,c,[Vb(a)/b*c,Wb(a)/b*c],d))&&(e=new Hi(a,b,c,this.o,d));this.H=e;this.Z=this.f;return e};function bj(a){this.b=a.source;this.Ta=Lg();this.i=be();this.j=[0,0];this.Ba=void 0==a.renderBuffer?100:a.renderBuffer;this.G=null;aj.call(this,{attributions:a.attributions,canvasFunction:this.xa.bind(this),logo:a.logo,projection:a.projection,ratio:a.ratio,resolutions:a.resolutions,state:this.b.U()});this.ja=null;this.I=void 0;a=a.style;this.ja=void 0!==a?a:rh;this.I=a?ph(this.ja):void 0;this.u();w(this.b,"change",this.Tb,this)}u(bj,aj);
|
|
247
|
-
bj.prototype.xa=function(a,b,c,d,e){var f=new ki(.5*b/c,a,b,this.b.Z,this.Ba);wi(this.b,a,b,e);var g=!1;this.b.ib(a,function(a){var d;if(!(d=g)){var e;(d=a.g)?e=d.call(a,b):this.I&&(e=this.I(a,b));if(e){var n,p=!1;Array.isArray(e)||(e=[e]);d=0;for(n=e.length;d<n;++d)p=ui(f,a,e[d],ti(b,c),this.$a,this)||p;d=p}else d=!1}g=d},this);oi(f);if(g)return null;this.j[0]!=d[0]||this.j[1]!=d[1]?(this.i.canvas.width=d[0],this.i.canvas.height=d[1],this.j[0]=d[0],this.j[1]=d[1]):this.i.clearRect(0,0,d[0],d[1]);
|
|
248
|
-
a=cj(this,Xb(a),b,c,d);f.la(this.i,c,a,0,{});this.G=f;return this.i.canvas};bj.prototype.Ca=function(a,b,c,d,e,f){if(this.G){var g={};return this.G.Ca(a,b,0,d,e,function(a){var b=ea(a).toString();if(!(b in g))return g[b]=!0,f(a)})}};function cj(a,b,c,d,e){c=d/c;return Og(a.Ta,e[0]/2,e[1]/2,c,-c,0,-b[0],-b[1])}bj.prototype.$a=function(){this.u()};bj.prototype.Tb=function(){Ui(this,this.b.U())};function dj(){this.b=0;this.a={};this.f=this.c=null}l=dj.prototype;l.clear=function(){this.b=0;this.a={};this.f=this.c=null};l.forEach=function(a,b){for(var c=this.c;c;)a.call(b,c.Sb,c.Db,this),c=c.Oa};l.get=function(a){a=this.a[a];ha(void 0!==a,15);if(a===this.f)return a.Sb;a===this.c?(this.c=this.c.Oa,this.c.Ob=null):(a.Oa.Ob=a.Ob,a.Ob.Oa=a.Oa);a.Oa=null;a.Ob=this.f;this.f=this.f.Oa=a;return a.Sb};
|
|
249
|
-
l.pop=function(){var a=this.c;delete this.a[a.Db];a.Oa&&(a.Oa.Ob=null);this.c=a.Oa;this.c||(this.f=null);--this.b;return a.Sb};l.replace=function(a,b){this.get(a);this.a[a].Sb=b};l.set=function(a,b){ha(!(a in this.a),16);var c={Db:a,Oa:null,Ob:this.f,Sb:b};this.f?this.f.Oa=c:this.c=c;this.f=c;this.a[a]=c;++this.b};var ej=["canvas","webgl"];
|
|
250
|
-
function I(a){Qa.call(this);var b=fj(a);this.Tb=void 0!==a.loadTilesWhileAnimating?a.loadTilesWhileAnimating:!1;this.od=void 0!==a.loadTilesWhileInteracting?a.loadTilesWhileInteracting:!1;this.md=void 0!==a.pixelRatio?a.pixelRatio:ue;this.pd=b.logos;this.qa=function(){this.i=void 0;this.Gj.call(this,Date.now())}.bind(this);this.Ta=Lg();this.td=Lg();this.$a=0;this.b=null;this.Ba=xb();this.I=this.H=this.T=null;this.a=document.createElement("DIV");this.a.className="ol-viewport"+(xe?" ol-touch":"");this.a.style.position=
|
|
251
|
-
"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.C=document.createElement("DIV");this.C.className="ol-overlaycontainer";this.a.appendChild(this.C);this.B=document.createElement("DIV");this.B.className="ol-overlaycontainer-stopevent";a="click dblclick mousedown touchstart mspointerdown pointerdown mousewheel wheel".split(" ");for(var c=0,d=a.length;c<d;++c)w(this.B,a[c],La);this.a.appendChild(this.B);
|
|
252
|
-
this.xa=new $e(this);for(var e in me)w(this.xa,me[e],this.gf,this);this.ta=b.keyboardEventTarget;this.v=null;w(this.a,"wheel",this.Cb,this);w(this.a,"mousewheel",this.Cb,this);this.o=b.controls;this.j=b.interactions;this.s=b.overlays;this.ce={};this.G=new b.Ij(this.a,this);this.Z=null;this.ja=[];this.Aa=[];this.za=new gf(this.Yg.bind(this),this.xh.bind(this));this.ma={};w(this,Ta(gj),this.jh,this);w(this,Ta(hj),this.yh,this);w(this,Ta(ij),this.uh,this);w(this,Ta(jj),this.wh,this);this.J(b.values);
|
|
253
|
-
this.o.forEach(function(a){a.setMap(this)},this);w(this.o,Ud,function(a){a.element.setMap(this)},this);w(this.o,Vd,function(a){a.element.setMap(null)},this);this.j.forEach(function(a){a.setMap(this)},this);w(this.j,Ud,function(a){a.element.setMap(this)},this);w(this.j,Vd,function(a){a.element.setMap(null)},this);this.s.forEach(this.Fe,this);w(this.s,Ud,function(a){this.Fe(a.element)},this);w(this.s,Vd,function(a){var b=a.element.Yd;void 0!==b&&delete this.ce[b.toString()];a.element.setMap(null)},
|
|
254
|
-
this)}u(I,Qa);l=I.prototype;l.lg=function(a){this.o.push(a)};l.mg=function(a){this.j.push(a)};l.ng=function(a){this.zb().Gb().push(a)};l.og=function(a){this.s.push(a)};l.Fe=function(a){var b=a.Yd;void 0!==b&&(this.ce[b.toString()]=a);a.setMap(this)};l.vg=function(a){this.render();Array.prototype.push.apply(this.ja,arguments)};
|
|
255
|
-
l.na=function(){Ja(this.xa);Ja(this.G);Ha(this.a,"wheel",this.Cb,this);Ha(this.a,"mousewheel",this.Cb,this);void 0!==this.g&&(window.removeEventListener("resize",this.g,!1),this.g=void 0);this.i&&(cancelAnimationFrame(this.i),this.i=void 0);this.nf(null);Qa.prototype.na.call(this)};l.Ed=function(a,b,c){if(this.b)return a=this.Na(a),c=void 0!==c?c:{},this.G.Ca(a,this.b,void 0!==c.hitTolerance?c.hitTolerance*this.b.pixelRatio:0,b,null,void 0!==c.layerFilter?c.layerFilter:cc,null)};
|
|
256
|
-
l.bi=function(a,b,c,d,e){if(this.b){a:{var f=this.G,g=this.b;c=void 0!==c?c:null;d=void 0!==d?d:cc;e=void 0!==e?e:null;var h,k=g.viewState.resolution,m=g.layerStatesArray,n=m.length;a=Ng(g.pixelToCoordinateTransform,a.slice());for(--n;0<=n;--n){h=m[n];var p=h.layer;if(h.visible&&k>=h.minResolution&&k<h.maxResolution&&d.call(e,p)&&(h=Rg(f,p).v(a,g,b,c))){b=h;break a}}b=void 0}return b}};
|
|
257
|
-
l.zh=function(a,b){if(!this.b)return!1;var c=this.Na(a);b=void 0!==b?b:{};var d=this.G;return void 0!==d.Ca(c,this.b,void 0!==b.hitTolerance?b.hitTolerance*this.b.pixelRatio:0,cc,d,void 0!==b.layerFilter?b.layerFilter:cc,null)};l.Eg=function(a){return this.Na(this.Hd(a))};l.Hd=function(a){var b=this.a.getBoundingClientRect();a=a.changedTouches?a.changedTouches[0]:a;return[a.clientX-b.left,a.clientY-b.top]};l.Od=function(){return this.get(jj)};
|
|
258
|
-
l.cc=function(){var a=this.Od();return void 0!==a?"string"===typeof a?document.getElementById(a):a:null};l.Na=function(a){var b=this.b;return b?Ng(b.pixelToCoordinateTransform,a.slice()):null};l.Dg=function(){return this.o};l.Tg=function(){return this.s};l.Sg=function(a){a=this.ce[a.toString()];return void 0!==a?a:null};l.Ig=function(){return this.j};l.zb=function(){return this.get(gj)};l.ci=function(){return this.zb().Gb()};
|
|
259
|
-
l.Ra=function(a){var b=this.b;return b?Ng(b.coordinateToPixelTransform,a.slice(0,2)):null};l.Fb=function(){return this.get(ij)};l.$=function(){return this.get(hj)};l.$g=function(){return this.a};l.Yg=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};l.Cb=function(a,b){var c=new le(b||a.type,this,a);this.gf(c)};
|
|
260
|
-
l.gf=function(a){if(this.b){this.Z=a.coordinate;a.frameState=this.b;var b=this.j.a,c;if(!1!==this.c(a))for(c=b.length-1;0<=c;c--){var d=b[c];if(d.I()&&!d.handleEvent(a))break}}};
|
|
261
|
-
l.th=function(){var a=this.b,b=this.za;if(0!==b.c.length){var c=16,d=c;if(a){var e=a.viewHints;e[td]&&(c=this.Tb?8:0,d=2);e[1]&&(c=this.od?8:0,d=2)}if(b.i<c){var e=b.o,f=b.c,g=b.f,h=0,k=f.length,m,n,p;for(n=0;n<k;++n)m=f[n],p=e(m),Infinity==p?delete b.a[b.b(m)]:(g[h]=p,f[h++]=m);f.length=h;g.length=h;for(e=(b.c.length>>1)-1;0<=e;e--)ff(b,e);hf(b,c,d)}}b=this.Aa;c=0;for(d=b.length;c<d;++c)b[c](this,a);b.length=0};l.uh=function(){this.render()};
|
|
262
|
-
l.wh=function(){var a;this.Od()&&(a=this.cc());if(this.v){for(var b=0,c=this.v.length;b<c;++b)Ba(this.v[b]);this.v=null}a?(a.appendChild(this.a),a=this.ta?this.ta:a,this.v=[w(a,"keydown",this.Cb,this),w(a,"keypress",this.Cb,this)],this.g||(this.g=this.te.bind(this),window.addEventListener("resize",this.g,!1))):(ce(this.a),void 0!==this.g&&(window.removeEventListener("resize",this.g,!1),this.g=void 0));this.te()};l.xh=function(){this.render()};l.jf=function(){this.render()};
|
|
263
|
-
l.yh=function(){this.T&&(Ba(this.T),this.T=null);this.H&&(Ba(this.H),this.H=null);var a=this.$();a&&(this.T=w(a,Wa,this.jf,this),this.H=w(a,"change",this.jf,this));this.render()};l.jh=function(){this.I&&(this.I.forEach(Ba),this.I=null);var a=this.zb();a&&(this.I=[w(a,Wa,this.render,this),w(a,"change",this.render,this)]);this.render()};l.Hj=function(){this.i&&cancelAnimationFrame(this.i);this.qa()};l.render=function(){void 0===this.i&&(this.i=requestAnimationFrame(this.qa))};l.Aj=function(a){return this.o.remove(a)};
|
|
264
|
-
l.Bj=function(a){return this.j.remove(a)};l.Dj=function(a){return this.zb().Gb().remove(a)};l.Ej=function(a){return this.s.remove(a)};
|
|
265
|
-
l.Gj=function(a){var b,c,d,e=this.Fb(),f=this.$(),g=xb(),h=null;if(b=void 0!==e&&0<e[0]&&0<e[1]&&f)b=!!f.Ia()&&void 0!==f.va();if(b){var h=vd(f,this.b?this.b.viewHints:void 0),k=this.zb().Jd(),m={};b=0;for(c=k.length;b<c;++b)m[ea(k[b].layer)]=k[b];d=f.U();h={animate:!1,attributions:{},coordinateToPixelTransform:this.Ta,extent:g,focus:this.Z?this.Z:d.center,index:this.$a++,layerStates:m,layerStatesArray:k,logos:ua({},this.pd),pixelRatio:this.md,pixelToCoordinateTransform:this.td,postRenderFunctions:[],
|
|
266
|
-
size:e,skippedFeatureUids:this.ma,tileQueue:this.za,time:a,usedTiles:{},viewState:d,viewHints:h,wantedTiles:{}}}if(h){a=this.ja;b=e=0;for(c=a.length;b<c;++b)f=a[b],f(this,h)&&(a[e++]=f);a.length=e;h.extent=Yb(d.center,d.resolution,d.rotation,h.size,g)}this.b=h;this.G.Kf(h);h&&(h.animate&&this.render(),Array.prototype.push.apply(this.Aa,h.postRenderFunctions),0!==this.ja.length||h.viewHints[td]||h.viewHints[1]||Kb(h.extent,this.Ba)||(this.c(new de("moveend",this,h)),Bb(h.extent,this.Ba)));this.c(new de("postrender",
|
|
267
|
-
this,h));setTimeout(this.th.bind(this),0)};l.Pj=function(a){this.set(gj,a)};l.ne=function(a){this.set(ij,a)};l.nf=function(a){this.set(jj,a)};l.Xj=function(a){this.set(hj,a)};l.Qf=function(a){a=ea(a).toString();this.ma[a]=!0;this.render()};
|
|
268
|
-
l.te=function(){var a=this.cc();if(a){var b=getComputedStyle(a);this.ne([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.ne(void 0)};l.Uf=function(a){a=ea(a).toString();delete this.ma[a];this.render()};
|
|
269
|
-
function fj(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"]=
|
|
270
|
-
"https://openlayers.org/";else{var e=a.logo;"string"===typeof e?d[e]="":e instanceof HTMLElement?d[ea(e).toString()]=e:e&&(ha("string"==typeof e.href,44),ha("string"==typeof e.src,45),d[e.src]=e.href)}e=a.layers instanceof wg?a.layers:new wg({layers:a.layers});c[gj]=e;c[jj]=a.target;c[hj]=void 0!==a.view?a.view:new D;var e=Pg,f;void 0!==a.renderer?(Array.isArray(a.renderer)?f=a.renderer:"string"===typeof a.renderer?f=[a.renderer]:ha(!1,46),0<=f.indexOf("dom")&&(f=f.concat(ej))):f=ej;var g,h;g=0;for(h=
|
|
271
|
-
f.length;g<h;++g)if("canvas"==f[g]&&we){e=xi;break}void 0!==a.controls?Array.isArray(a.controls)?f=new E(a.controls.slice()):(ha(a.controls instanceof E,47),f=a.controls):f=ke();void 0!==a.interactions?Array.isArray(a.interactions)?g=new E(a.interactions.slice()):(ha(a.interactions instanceof E,48),g=a.interactions):g=ng();void 0!==a.overlays?Array.isArray(a.overlays)?a=new E(a.overlays.slice()):(ha(a.overlays instanceof E,49),a=a.overlays):a=new E;return{controls:f,interactions:g,keyboardEventTarget:b,
|
|
272
|
-
logos:d,overlays:a,Ij:e,values:c}}var gj="layergroup",ij="size",jj="target",hj="view";Gg();function kj(a){Qa.call(this);this.Yd=a.id;this.o=void 0!==a.insertFirst?a.insertFirst:!0;this.s=void 0!==a.stopEvent?a.stopEvent:!0;this.b=document.createElement("DIV");this.b.className="ol-overlay-container";this.b.style.position="absolute";this.autoPan=void 0!==a.autoPan?a.autoPan:!1;this.i=a.autoPanAnimation||{};this.j=void 0!==a.autoPanMargin?a.autoPanMargin:20;this.a={yc:"",Jc:"",Zc:"",gd:"",visible:!0};this.g=null;w(this,Ta(lj),this.gh,this);w(this,Ta(mj),this.oh,this);w(this,Ta(nj),this.ph,
|
|
273
|
-
this);w(this,Ta(oj),this.rh,this);w(this,Ta(pj),this.sh,this);void 0!==a.element&&this.Mf(a.element);this.Of(void 0!==a.offset?a.offset:[0,0]);this.Pf(void 0!==a.positioning?a.positioning:qj);void 0!==a.position&&this.qf(a.position)}u(kj,Qa);l=kj.prototype;l.Gd=function(){return this.get(lj)};l.di=function(){return this.Yd};l.Kc=function(){return this.get(mj)};l.af=function(){return this.get(nj)};l.pf=function(){return this.get(oj)};l.bf=function(){return this.get(pj)};
|
|
274
|
-
l.gh=function(){for(var a=this.b;a.lastChild;)a.removeChild(a.lastChild);(a=this.Gd())&&this.b.appendChild(a)};l.oh=function(){this.g&&(ce(this.b),Ba(this.g),this.g=null);var a=this.Kc();a&&(this.g=w(a,"postrender",this.render,this),rj(this),a=this.s?a.B:a.C,this.o?a.insertBefore(this.b,a.childNodes[0]||null):a.appendChild(this.b))};l.render=function(){rj(this)};l.ph=function(){rj(this)};
|
|
275
|
-
l.rh=function(){rj(this);if(void 0!==this.get(oj)&&this.autoPan){var a=this.Kc();if(void 0!==a&&a.cc()){var b=sj(a.cc(),a.Fb()),c=this.Gd(),d=c.offsetWidth,e=c.currentStyle||getComputedStyle(c),d=d+(parseInt(e.marginLeft,10)+parseInt(e.marginRight,10)),e=c.offsetHeight,f=c.currentStyle||getComputedStyle(c),e=e+(parseInt(f.marginTop,10)+parseInt(f.marginBottom,10)),g=sj(c,[d,e]),c=this.j;Fb(b,g)||(d=g[0]-b[0],e=b[2]-g[2],f=g[1]-b[1],g=b[3]-g[3],b=[0,0],0>d?b[0]=d-c:0>e&&(b[0]=Math.abs(e)+c),0>f?b[1]=
|
|
276
|
-
f-c:0>g&&(b[1]=Math.abs(g)+c),0===b[0]&&0===b[1])||(c=a.$().Ia(),c=a.Ra(c),b=[c[0]+b[0],c[1]+b[1]],a.$().animate({center:a.Na(b),duration:this.i.duration,easing:this.i.easing}))}}};l.sh=function(){rj(this)};l.Mf=function(a){this.set(lj,a)};l.setMap=function(a){this.set(mj,a)};l.Of=function(a){this.set(nj,a)};l.qf=function(a){this.set(oj,a)};function sj(a,b){var c=a.getBoundingClientRect(),d=c.left+window.pageXOffset,c=c.top+window.pageYOffset;return[d,c,d+b[0],c+b[1]]}
|
|
277
|
-
l.Pf=function(a){this.set(pj,a)};function tj(a,b){a.a.visible!==b&&(a.b.style.display=b?"":"none",a.a.visible=b)}
|
|
278
|
-
function rj(a){var b=a.Kc(),c=a.pf();if(void 0!==b&&b.b&&void 0!==c){var c=b.Ra(c),d=b.Fb(),b=a.b.style,e=a.af(),f=a.bf(),g=e[0],e=e[1];if(f==uj||f==vj||f==wj)""!==a.a.Jc&&(a.a.Jc=b.left=""),g=Math.round(d[0]-c[0]-g)+"px",a.a.Zc!=g&&(a.a.Zc=b.right=g);else{""!==a.a.Zc&&(a.a.Zc=b.right="");if(f==xj||f==yj||f==zj)g-=a.b.offsetWidth/2;g=Math.round(c[0]+g)+"px";a.a.Jc!=g&&(a.a.Jc=b.left=g)}if(f==Aj||f==xj||f==uj)""!==a.a.gd&&(a.a.gd=b.top=""),c=Math.round(d[1]-c[1]-e)+"px",a.a.yc!=c&&(a.a.yc=b.bottom=
|
|
279
|
-
c);else{""!==a.a.yc&&(a.a.yc=b.bottom="");if(f==Bj||f==yj||f==vj)e-=a.b.offsetHeight/2;c=Math.round(c[1]+e)+"px";a.a.gd!=c&&(a.a.gd=b.top=c)}tj(a,!0)}else tj(a,!1)}var Aj="bottom-left",xj="bottom-center",uj="bottom-right",Bj="center-left",yj="center-center",vj="center-right",qj="top-left",zj="top-center",wj="top-right",lj="element",mj="map",nj="offset",oj="position",pj="positioning";function Ej(a){a=a?a:{};this.b=void 0;this.g=Fj;this.o=[];this.B=this.j=0;this.H=null;this.Z=!1;this.T=void 0!==a.duration?a.duration:200;var b=void 0!==a.className?a.className:"ol-zoomslider",c=document.createElement("button");c.setAttribute("type","button");c.className=b+"-thumb ol-unselectable";var d=document.createElement("div");d.className=b+" ol-unselectable ol-control";d.appendChild(c);this.i=new Ve(d);w(this.i,"pointerdown",this.fh,this);w(this.i,"pointermove",this.ef,this);w(this.i,"pointerup",
|
|
280
|
-
this.ff,this);w(d,"click",this.eh,this);w(c,"click",La);ee.call(this,{element:d,render:a.render?a.render:Gj})}u(Ej,ee);Ej.prototype.na=function(){Ja(this.i);ee.prototype.na.call(this)};var Fj=0;l=Ej.prototype;l.setMap=function(a){ee.prototype.setMap.call(this,a);a&&a.render()};
|
|
281
|
-
function Gj(a){if(a.frameState){if(!this.Z){var b=this.element,c=b.offsetWidth,d=b.offsetHeight,e=b.firstElementChild,f=getComputedStyle(e),b=e.offsetWidth+parseFloat(f.marginRight)+parseFloat(f.marginLeft),e=e.offsetHeight+parseFloat(f.marginTop)+parseFloat(f.marginBottom);this.H=[b,e];c>d?(this.g=1,this.B=c-b):(this.g=Fj,this.j=d-e);this.Z=!0}a=a.frameState.viewState.resolution;a!==this.b&&(this.b=a,Hj(this,a))}}
|
|
282
|
-
l.eh=function(a){var b=this.a.$();a=Ij(this,ja(1===this.g?(a.offsetX-this.H[0]/2)/this.B:(a.offsetY-this.H[1]/2)/this.j,0,1));b.animate({resolution:b.constrainResolution(a),duration:this.T,easing:sb})};
|
|
283
|
-
l.fh=function(a){if(!this.s&&a.c.target===this.element.firstElementChild&&(sd(this.a.$(),1,1),this.C=a.clientX,this.G=a.clientY,this.s=!0,0===this.o.length)){a=this.ef;var b=this.ff;this.o.push(w(document,"mousemove",a,this),w(document,"touchmove",a,this),w(document,"pointermove",a,this),w(document,"mouseup",b,this),w(document,"touchend",b,this),w(document,"pointerup",b,this))}};
|
|
284
|
-
l.ef=function(a){if(this.s){var b=this.element.firstElementChild;this.b=Ij(this,ja(1===this.g?(a.clientX-this.C+parseInt(b.style.left,10))/this.B:(a.clientY-this.G+parseInt(b.style.top,10))/this.j,0,1));this.a.$().sb(this.b);Hj(this,this.b);this.C=a.clientX;this.G=a.clientY}};l.ff=function(){if(this.s){var a=this.a.$();sd(a,1,-1);a.animate({resolution:a.constrainResolution(this.b),duration:this.T,easing:sb});this.s=!1;this.G=this.C=void 0;this.o.forEach(Ba);this.o.length=0}};
|
|
285
|
-
function Hj(a,b){var c;c=1-Ad(a.a.$())(b);var d=a.element.firstElementChild;1==a.g?d.style.left=a.B*c+"px":d.style.top=a.j*c+"px"}function Ij(a,b){return zd(a.a.$())(1-b)};function J(a){Qa.call(this);this.b=void 0;this.a="geometry";this.j=null;this.g=void 0;this.i=null;w(this,Ta(this.a),this.Gc,this);void 0!==a&&(a instanceof Jc||!a?this.Ga(a):this.J(a))}u(J,Qa);l=J.prototype;l.clone=function(){var a=new J(this.Y());a.oc(this.a);var b=this.L();b&&a.Ga(b.clone());(b=this.j)&&a.mf(b);return a};l.L=function(){return this.get(this.a)};l.Vh=function(){return this.b};l.Hg=function(){return this.a};l.Wh=function(){return this.j};l.Xh=function(){return this.g};l.Yh=function(){this.u()};
|
|
286
|
-
l.Gc=function(){this.i&&(Ba(this.i),this.i=null);var a=this.L();a&&(this.i=w(a,"change",this.Yh,this));this.u()};l.Ga=function(a){this.set(this.a,a)};l.mf=function(a){this.g=(this.j=a)?Jj(a):void 0;this.u()};l.pc=function(a){this.b=a;this.u()};l.oc=function(a){Ha(this,Ta(this.a),this.Gc,this);this.a=a;w(this,Ta(this.a),this.Gc,this);this.Gc()};function Jj(a){if("function"!==typeof a){var b;Array.isArray(a)?b=a:(ha(a instanceof nh,41),b=[a]);a=function(){return b}}return a};var Kj=document.implementation.createDocument("","",null);function Lj(a){return Mj(a,!1,[]).join("")}function Mj(a,b,c){if(a.nodeType==Node.CDATA_SECTION_NODE||a.nodeType==Node.TEXT_NODE)b?c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(a.nodeValue);else for(a=a.firstChild;a;a=a.nextSibling)Mj(a,b,c);return c}function Nj(a){return(new DOMParser).parseFromString(a,"application/xml")}
|
|
287
|
-
function Oj(a,b){return function(c,d){var e=a.call(void 0!==b?b:this,c,d);void 0!==e&&d[d.length-1].push(e)}}function Pj(a,b){return function(c,d){var e=a.call(void 0!==b?b:this,c,d);void 0!==e&&(d[d.length-1]=e)}}function Qj(a){return function(b,c){var d=a.call(this,b,c);if(void 0!==d){var e=c[c.length-1],f=b.localName,g;f in e?g=e[f]:g=e[f]=[];g.push(d)}}}function K(a,b){return function(c,d){var e=a.call(this,c,d);void 0!==e&&(d[d.length-1][void 0!==b?b:c.localName]=e)}}
|
|
288
|
-
function L(a,b){return function(c,d,e){a.call(void 0!==b?b:this,c,d,e);e[e.length-1].node.appendChild(c)}}function Rj(a){var b,c;return function(d,e,f){if(void 0===b){b={};var g={};g[d.localName]=a;b[d.namespaceURI]=g;c=Sj(d.localName)}Tj(b,c,e,f)}}function Sj(a,b){return function(c,d,e){c=d[d.length-1].node;d=a;void 0===d&&(d=e);e=b;void 0===b&&(e=c.namespaceURI);return Kj.createElementNS(e,d)}}var Uj=Sj();function Vj(a,b){for(var c=b.length,d=Array(c),e=0;e<c;++e)d[e]=a[b[e]];return d}
|
|
289
|
-
function N(a,b,c){c=void 0!==c?c:{};var d,e;d=0;for(e=a.length;d<e;++d)c[a[d]]=b;return c}function Wj(a,b,c,d){for(b=b.firstElementChild;b;b=b.nextElementSibling){var e=a[b.namespaceURI];void 0!==e&&(e=e[b.localName])&&e.call(d,b,c)}}function O(a,b,c,d,e){d.push(a);Wj(b,c,d,e);return d.pop()}function Tj(a,b,c,d,e,f){for(var g=(void 0!==e?e:c).length,h,k,m=0;m<g;++m)h=c[m],void 0!==h&&(k=b.call(f,h,d,void 0!==e?e[m]:void 0),void 0!==k&&a[k.namespaceURI][k.localName].call(f,k,h,d))}
|
|
290
|
-
function Xj(a,b,c,d,e,f,g){e.push(a);Tj(b,c,d,e,f,g);e.pop()};function Yj(a,b,c){return function(d,e,f){var g=new XMLHttpRequest;g.open("GET","function"===typeof a?a(d,e,f):a,!0);"arraybuffer"==b.K()&&(g.responseType="arraybuffer");g.onload=function(){if(!g.status||200<=g.status&&300>g.status){var a=b.K(),d;"json"==a||"text"==a?d=g.responseText:"xml"==a?(d=g.responseXML)||(d=Nj(g.responseText)):"arraybuffer"==a&&(d=g.response);d&&c.call(this,b.lc(d,{featureProjection:f}),b.mc(d))}}.bind(this);g.send()}}
|
|
291
|
-
function Zj(a,b){return Yj(a,b,function(a){this.xc(a)})};function ak(){this.g=this.defaultDataProjection=null}function bk(a,b,c){var d;c&&(d={dataProjection:c.dataProjection?c.dataProjection:a.mc(b),featureProjection:c.featureProjection});return ck(a,d)}function ck(a,b){return ua({dataProjection:a.defaultDataProjection,featureProjection:a.g},b)}
|
|
292
|
-
function dk(a,b,c){var d=c?rc(c.featureProjection):null,e=c?rc(c.dataProjection):null,f;d&&e&&!Ec(d,e)?a instanceof Jc?f=(b?a.clone():a).Ja(b?d:e,b?e:d):f=Ic(b?a.slice():a,b?d:e,b?e:d):f=a;if(b&&c&&c.decimals){var g=Math.pow(10,c.decimals);a=function(a){for(var b=0,c=a.length;b<c;++b)a[b]=Math.round(a[b]*g)/g;return a};Array.isArray(f)?a(f):f.vb(a)}return f};function ek(){ak.call(this)}u(ek,ak);function fk(a){return"string"===typeof a?(a=JSON.parse(a))?a:null:null!==a?a:null}l=ek.prototype;l.K=function(){return"json"};l.Xc=function(a,b){return gk(this,fk(a),bk(this,a,b))};l.lc=function(a,b){var c=fk(a),d=bk(this,a,b),e;if("FeatureCollection"===c.type){e=[];var c=c.features,f,g;f=0;for(g=c.length;f<g;++f)e.push(gk(this,c[f],d))}else e=[gk(this,c,d)];return e};l.Yc=function(a,b){var c=fk(a),d=bk(this,a,b);return hk(c,d)};
|
|
293
|
-
l.mc=function(a){a=fk(a).crs;var b;a?"name"==a.type?b=rc(a.properties.name):"EPSG"==a.type?b=rc("EPSG:"+a.properties.code):ha(!1,36):b=this.defaultDataProjection;return b};l.jd=function(a,b){return JSON.stringify(this.c(a,b))};l.kd=function(a,b){return JSON.stringify(this.a(a,b))};l.ld=function(a,b){return JSON.stringify(this.b(a,b))};function ik(a,b,c,d,e,f){var g=NaN,h=NaN,k=(c-b)/d;if(0!==k)if(1==k)g=a[b],h=a[b+1];else if(2==k)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],k=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-k)*(q-k));g.push(m);h=p;k=q}c=e*m;k=0;m=g.length;for(n=!1;k<m;)e=k+(m-k>>1),h=+Xa(g[e],c),0>h?k=e+1:(m=e,n=!h);e=n?k:~k;0>e?(c=(c-g[-e-2])/(g[-e-1]-g[-e-2]),b+=(-e-2)*d,g=pa(a[b],a[b+d],c),h=pa(a[b+1],a[b+d+1],c)):(g=a[b+e*d],h=a[b+e*d+1])}return f?(f[0]=
|
|
294
|
-
g,f[1]=h,f):[g,h]}function jk(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=(e-c)/(a[(b+1)*d-1]-c);c=[];var g;for(g=0;g<d-1;++g)c.push(pa(a[(b-1)*d+g],a[b*d+g],f));c.push(e);return c}
|
|
295
|
-
function kk(a,b,c,d,e,f){var g=0;if(f)return jk(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])break;if(d<=a[h-1])return jk(a,g,h,c,d,!1);g=h}}return null};function P(a,b){x.call(this);this.a=null;this.B=this.C=this.j=-1;this.ea(a,b)}u(P,x);l=P.prototype;l.pg=function(a){this.l?Za(this.l,a):this.l=a.slice();this.u()};l.clone=function(){var a=new P(null);a.P(this.V,this.l.slice());return a};l.La=function(a,b,c,d){if(d<Cb(this.F(),a,b))return d;this.B!=this.f&&(this.C=Math.sqrt(Rc(this.l,0,this.l.length,this.A,0)),this.B=this.f);return Tc(this.l,0,this.l.length,this.A,this.C,!1,a,b,c,d)};l.Ag=function(a,b){return fd(this.l,0,this.l.length,this.A,a,b)};
|
|
296
|
-
l.ki=function(a,b){return"XYM"!=this.V&&"XYZM"!=this.V?null:jk(this.l,0,this.l.length,this.A,a,void 0!==b?b:!1)};l.R=function(){return Yc(this.l,0,this.l.length,this.A)};l.Re=function(a,b){return ik(this.l,0,this.l.length,this.A,a,b)};l.li=function(){var a=this.l,b=this.A,c=a[0],d=a[1],e=0,f;for(f=0+b;f<this.l.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};function Bh(a){a.j!=a.f&&(a.a=a.Re(.5,a.a),a.j=a.f);return a.a}
|
|
297
|
-
l.Bb=function(a){var b=[];b.length=$c(this.l,0,this.l.length,this.A,a,b,0);a=new P(null);a.P("XY",b);return a};l.K=function(){return"LineString"};l.sa=function(a){return gd(this.l,0,this.l.length,this.A,a)};l.ea=function(a,b){a?(Nc(this,b,a,1),this.l||(this.l=[]),this.l.length=Wc(this.l,0,a,this.A),this.u()):this.P("XY",null)};l.P=function(a,b){Mc(this,a,b);this.u()};function Q(a,b){x.call(this);this.a=[];this.j=this.B=-1;this.ea(a,b)}u(Q,x);l=Q.prototype;l.qg=function(a){this.l?Za(this.l,a.l.slice()):this.l=a.l.slice();this.a.push(this.l.length);this.u()};l.clone=function(){var a=new Q(null);a.P(this.V,this.l.slice(),this.a.slice());return a};l.La=function(a,b,c,d){if(d<Cb(this.F(),a,b))return d;this.j!=this.f&&(this.B=Math.sqrt(Sc(this.l,0,this.a,this.A,0)),this.j=this.f);return Uc(this.l,0,this.a,this.A,this.B,!1,a,b,c,d)};
|
|
298
|
-
l.ni=function(a,b,c){return"XYM"!=this.V&&"XYZM"!=this.V||0===this.l.length?null:kk(this.l,this.a,this.A,a,void 0!==b?b:!1,void 0!==c?c:!1)};l.R=function(){return Zc(this.l,0,this.a,this.A)};l.Ua=function(){return this.a};l.Ng=function(a){if(0>a||this.a.length<=a)return null;var b=new P(null);b.P(this.V,this.l.slice(0===a?0:this.a[a-1],this.a[a]));return b};
|
|
299
|
-
l.Dc=function(){var a=this.l,b=this.a,c=this.V,d=[],e=0,f,g;f=0;for(g=b.length;f<g;++f){var h=b[f],k=new P(null);k.P(c,a.slice(e,h));d.push(k);e=h}return d};function Ch(a){var b=[],c=a.l,d=0,e=a.a;a=a.A;var f,g;f=0;for(g=e.length;f<g;++f){var h=e[f],d=ik(c,d,h,a,.5);Za(b,d);d=h}return b}l.Bb=function(a){var b=[],c=[],d=this.l,e=this.a,f=this.A,g=0,h=0,k,m;k=0;for(m=e.length;k<m;++k){var n=e[k],h=$c(d,g,n,f,a,b,h);c.push(h);g=n}b.length=h;a=new Q(null);a.P("XY",b,c);return a};l.K=function(){return"MultiLineString"};
|
|
300
|
-
l.sa=function(a){a:{var b=this.l,c=this.a,d=this.A,e=0,f,g;f=0;for(g=c.length;f<g;++f){if(gd(b,e,c[f],d,a)){a=!0;break a}e=c[f]}a=!1}return a};l.ea=function(a,b){if(a){Nc(this,b,a,2);this.l||(this.l=[]);var c=Xc(this.l,0,a,this.A,this.a);this.l.length=0===c.length?0:c[c.length-1];this.u()}else this.P("XY",null,this.a)};l.P=function(a,b,c){Mc(this,a,b);this.a=c;this.u()};
|
|
301
|
-
function lk(a,b){var c=a.V,d=[],e=[],f,g;f=0;for(g=b.length;f<g;++f){var h=b[f];0===f&&(c=h.V);Za(d,h.l);e.push(d.length)}a.P(c,d,e)};function R(a,b){x.call(this);this.ea(a,b)}u(R,x);l=R.prototype;l.sg=function(a){this.l?Za(this.l,a.l):this.l=a.l.slice();this.u()};l.clone=function(){var a=new R(null);a.P(this.V,this.l.slice());return a};l.La=function(a,b,c,d){if(d<Cb(this.F(),a,b))return d;var e=this.l,f=this.A,g,h,k;g=0;for(h=e.length;g<h;g+=f)if(k=la(a,b,e[g],e[g+1]),k<d){d=k;for(k=0;k<f;++k)c[k]=e[g+k];c.length=f}return d};l.R=function(){return Yc(this.l,0,this.l.length,this.A)};
|
|
302
|
-
l.Ug=function(a){var b=this.l?this.l.length/this.A:0;if(0>a||b<=a)return null;b=new A(null);b.P(this.V,this.l.slice(a*this.A,(a+1)*this.A));return b};l.ae=function(){var a=this.l,b=this.V,c=this.A,d=[],e,f;e=0;for(f=a.length;e<f;e+=c){var g=new A(null);g.P(b,a.slice(e,e+c));d.push(g)}return d};l.K=function(){return"MultiPoint"};l.sa=function(a){var b=this.l,c=this.A,d,e,f,g;d=0;for(e=b.length;d<e;d+=c)if(f=b[d],g=b[d+1],Eb(a,f,g))return!0;return!1};
|
|
303
|
-
l.ea=function(a,b){a?(Nc(this,b,a,1),this.l||(this.l=[]),this.l.length=Wc(this.l,0,a,this.A),this.u()):this.P("XY",null)};l.P=function(a,b){Mc(this,a,b);this.u()};function S(a,b){x.call(this);this.a=[];this.B=-1;this.C=null;this.H=this.G=this.I=-1;this.j=null;this.ea(a,b)}u(S,x);l=S.prototype;l.tg=function(a){if(this.l){var b=this.l.length;Za(this.l,a.l);a=a.Ua().slice();var c,d;c=0;for(d=a.length;c<d;++c)a[c]+=b}else this.l=a.l.slice(),a=a.Ua().slice(),this.a.push();this.a.push(a);this.u()};l.clone=function(){for(var a=new S(null),b=this.a.length,c=Array(b),d=0;d<b;++d)c[d]=this.a[d].slice();mk(a,this.V,this.l.slice(),c);return a};
|
|
304
|
-
l.La=function(a,b,c,d){if(d<Cb(this.F(),a,b))return d;if(this.G!=this.f){var e=this.a,f=0,g=0,h,k;h=0;for(k=e.length;h<k;++h)var m=e[h],g=Sc(this.l,f,m,this.A,g),f=m[m.length-1];this.I=Math.sqrt(g);this.G=this.f}e=Dh(this);f=this.a;g=this.A;h=this.I;k=0;var m=[NaN,NaN],n,p;n=0;for(p=f.length;n<p;++n){var q=f[n];d=Uc(e,k,q,g,h,!0,a,b,c,d,m);k=q[q.length-1]}return d};
|
|
305
|
-
l.nb=function(a,b){var c;a:{c=Dh(this);var d=this.a,e=this.A,f=0;if(0!==d.length){var g,h;g=0;for(h=d.length;g<h;++g){var k=d[g];if(dd(c,f,k,e,a,b)){c=!0;break a}f=k[k.length-1]}}c=!1}return c};l.oi=function(){var a=Dh(this),b=this.a,c=0,d=0,e,f;e=0;for(f=b.length;e<f;++e)var g=b[e],d=d+Pc(a,c,g,this.A),c=g[g.length-1];return d};
|
|
306
|
-
l.R=function(a){var b;void 0!==a?(b=Dh(this).slice(),ld(b,this.a,this.A,a)):b=this.l;a=b;b=this.a;var c=this.A,d=0,e=[],f=0,g,h;g=0;for(h=b.length;g<h;++g){var k=b[g];e[f++]=Zc(a,d,k,c,e[f]);d=k[k.length-1]}e.length=f;return e};
|
|
307
|
-
function Eh(a){if(a.B!=a.f){var b=a.l,c=a.a,d=a.A,e=0,f=[],g,h,k;g=0;for(h=c.length;g<h;++g){var m=c[g];k=b;var n=m[0],p=d,q=Ib(void 0);k=Nb(q,k,e,n,p);f.push((k[0]+k[2])/2,(k[1]+k[3])/2);e=m[m.length-1]}b=Dh(a);c=a.a;d=a.A;g=0;h=[];m=0;for(k=c.length;m<k;++m)e=c[m],h=ed(b,g,e,d,f,2*m,h),g=e[e.length-1];a.C=h;a.B=a.f}return a.C}l.Kg=function(){var a=new R(null);a.P("XY",Eh(this).slice());return a};
|
|
308
|
-
function Dh(a){if(a.H!=a.f){var b=a.l,c;a:{c=a.a;var d,e;d=0;for(e=c.length;d<e;++d)if(!jd(b,c[d],a.A,void 0)){c=!1;break a}c=!0}c?a.j=b:(a.j=b.slice(),a.j.length=ld(a.j,a.a,a.A));a.H=a.f}return a.j}l.Bb=function(a){var b=[],c=[],d=this.l,e=this.a,f=this.A;a=Math.sqrt(a);var g=0,h=0,k,m;k=0;for(m=e.length;k<m;++k){var n=e[k],p=[],h=ad(d,g,n,f,a,b,h,p);c.push(p);g=n[n.length-1]}b.length=h;d=new S(null);mk(d,"XY",b,c);return d};
|
|
309
|
-
l.Vg=function(a){if(0>a||this.a.length<=a)return null;var b;0===a?b=0:(b=this.a[a-1],b=b[b.length-1]);a=this.a[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 C(null);d.P(this.V,this.l.slice(b,c),a);return d};l.Md=function(){var a=this.V,b=this.l,c=this.a,d=[],e=0,f,g,h,k;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,k=m.length;h<k;++h)m[h]-=e;h=new C(null);h.P(a,b.slice(e,n),m);d.push(h);e=n}return d};l.K=function(){return"MultiPolygon"};
|
|
310
|
-
l.sa=function(a){a:{var b=Dh(this),c=this.a,d=this.A,e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];if(hd(b,e,h,d,a)){a=!0;break a}e=h[h.length-1]}a=!1}return a};l.ea=function(a,b){if(a){Nc(this,b,a,3);this.l||(this.l=[]);var c=this.l,d=this.A,e=this.a,f=0,e=e?e:[],g=0,h,k;h=0;for(k=a.length;h<k;++h)f=Xc(c,f,a[h],d,e[g]),e[g++]=f,f=f[f.length-1];e.length=g;0===e.length?this.l.length=0:(c=e[e.length-1],this.l.length=0===c.length?0:c[c.length-1]);this.u()}else mk(this,"XY",null,this.a)};
|
|
311
|
-
function mk(a,b,c,d){Mc(a,b,c);a.a=d;a.u()};function T(a){Jc.call(this);this.b=a?a:null;nk(this)}u(T,Jc);function ok(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(a[c].clone());return b}function pk(a){var b,c;if(a.b)for(b=0,c=a.b.length;b<c;++b)Ha(a.b[b],"change",a.u,a)}function nk(a){var b,c;if(a.b)for(b=0,c=a.b.length;b<c;++b)w(a.b[b],"change",a.u,a)}l=T.prototype;l.clone=function(){var a=new T(null);a.Nf(this.b);return a};
|
|
312
|
-
l.La=function(a,b,c,d){if(d<Cb(this.F(),a,b))return d;var e=this.b,f,g;f=0;for(g=e.length;f<g;++f)d=e[f].La(a,b,c,d);return d};l.nb=function(a,b){var c=this.b,d,e;d=0;for(e=c.length;d<e;++d)if(c[d].nb(a,b))return!0;return!1};l.zc=function(a){Ib(a);for(var b=this.b,c=0,d=b.length;c<d;++c)Mb(a,b[c].F());return a};l.Id=function(){return ok(this.b)};
|
|
313
|
-
l.Ec=function(a){this.o!=this.f&&(va(this.g),this.i=0,this.o=this.f);if(0>a||0!==this.i&&a<this.i)return this;var b=a.toString();if(this.g.hasOwnProperty(b))return this.g[b];var c=[],d=this.b,e=!1,f,g;f=0;for(g=d.length;f<g;++f){var h=d[f],k=h.Ec(a);c.push(k);k!==h&&(e=!0)}if(e)return a=new T(null),pk(a),a.b=c,nk(a),a.u(),this.g[b]=a;this.i=a;return this};l.K=function(){return"GeometryCollection"};l.sa=function(a){var b=this.b,c,d;c=0;for(d=b.length;c<d;++c)if(b[c].sa(a))return!0;return!1};
|
|
314
|
-
l.rotate=function(a,b){for(var c=this.b,d=0,e=c.length;d<e;++d)c[d].rotate(a,b);this.u()};l.scale=function(a,b,c){c||(c=Xb(this.F()));for(var d=this.b,e=0,f=d.length;e<f;++e)d[e].scale(a,b,c);this.u()};l.Nf=function(a){a=ok(a);pk(this);this.b=a;nk(this);this.u()};l.vb=function(a){var b=this.b,c,d;c=0;for(d=b.length;c<d;++c)b[c].vb(a);this.u()};l.translate=function(a,b){var c=this.b,d,e;d=0;for(e=c.length;d<e;++d)c[d].translate(a,b);this.u()};l.na=function(){pk(this);Jc.prototype.na.call(this)};function qk(a){a=a?a:{};ak.call(this);this.defaultDataProjection=rc(a.defaultDataProjection?a.defaultDataProjection:"EPSG:4326");a.featureProjection&&(this.g=rc(a.featureProjection));this.f=a.geometryName}u(qk,ek);function hk(a,b){return a?dk((0,rk[a.type])(a),!1,b):null}function sk(a,b){return(0,tk[a.K()])(dk(a,!0,b),b)}
|
|
315
|
-
var rk={Point:function(a){return new A(a.coordinates)},LineString:function(a){return new P(a.coordinates)},Polygon:function(a){return new C(a.coordinates)},MultiPoint:function(a){return new R(a.coordinates)},MultiLineString:function(a){return new Q(a.coordinates)},MultiPolygon:function(a){return new S(a.coordinates)},GeometryCollection:function(a,b){var c=a.geometries.map(function(a){return hk(a,b)});return new T(c)}},tk={Point:function(a){return{type:"Point",coordinates:a.R()}},LineString:function(a){return{type:"LineString",
|
|
316
|
-
coordinates:a.R()}},Polygon:function(a,b){var c;b&&(c=b.rightHanded);return{type:"Polygon",coordinates:a.R(c)}},MultiPoint:function(a){return{type:"MultiPoint",coordinates:a.R()}},MultiLineString:function(a){return{type:"MultiLineString",coordinates:a.R()}},MultiPolygon:function(a,b){var c;b&&(c=b.rightHanded);return{type:"MultiPolygon",coordinates:a.R(c)}},GeometryCollection:function(a,b){return{type:"GeometryCollection",geometries:a.b.map(function(a){var d=ua({},b);delete d.featureProjection;return sk(a,
|
|
317
|
-
d)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};function gk(a,b,c){b="Feature"===b.type?b:{type:"Feature",geometry:b};c=hk(b.geometry,c);var d=new J;a.f&&d.oc(a.f);d.Ga(c);void 0!==b.id&&d.pc(b.id);b.properties&&d.J(b.properties);return d}qk.prototype.c=function(a,b){b=ck(this,b);var c={type:"Feature"},d=a.b;void 0!==d&&(c.id=d);(d=a.L())?c.geometry=sk(d,b):c.geometry=null;d=a.Y();delete d[a.a];xa(d)?c.properties=null:c.properties=d;return c};
|
|
318
|
-
qk.prototype.a=function(a,b){b=ck(this,b);var c=[],d,e;d=0;for(e=a.length;d<e;++d)c.push(this.c(a[d],b));return{type:"FeatureCollection",features:c}};qk.prototype.b=function(a,b){return sk(a,ck(this,b))};function uk(){this.b=new XMLSerializer;ak.call(this)}u(uk,ak);l=uk.prototype;l.K=function(){return"xml"};l.Xc=function(a,b){if(a instanceof Document)return vk(this,a,b);if(a instanceof Node)return this.C(a,b);if("string"===typeof a){var c=Nj(a);return vk(this,c,b)}return null};function vk(a,b,c){a=wk(a,b,c);return 0<a.length?a[0]:null}l.lc=function(a,b){if(a instanceof Document)return wk(this,a,b);if(a instanceof Node)return xk(this,a,b);if("string"===typeof a){var c=Nj(a);return wk(this,c,b)}return[]};
|
|
319
|
-
function wk(a,b,c){var d=[];for(b=b.firstChild;b;b=b.nextSibling)b.nodeType==Node.ELEMENT_NODE&&Za(d,xk(a,b,c));return d}l.Yc=function(a,b){if(a instanceof Document)return this.s(a,b);if(a instanceof Node){var c=this.a(a,[bk(this,a,b?b:{})]);return c?c:null}return"string"===typeof a?(c=Nj(a),this.s(c,b)):null};l.mc=function(a){return a instanceof Document?this.defaultDataProjection:a instanceof Node?this.If(a):"string"===typeof a?(Nj(a),this.defaultDataProjection):null};l.If=function(){return this.defaultDataProjection};
|
|
320
|
-
l.jd=function(a,b){var c=this.aa(a,b);return this.b.serializeToString(c)};
|
|
321
|
-
l.kd=function(a,b){var c;c=ck(this,b);var d=Kj.createElementNS("http://www.opengis.net/gml","featureMembers");d.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);var e={srsName:this.srsName,curve:this.j,surface:this.v,multiSurface:this.o,multiCurve:this.D,featureNS:this.featureNS,featureType:this.featureType};c&&ua(e,c);c=[e];var f=c[c.length-1],e=f.featureType,g=f.featureNS,h={};h[g]={};h[g][e]=L(this.G,this);f=ua({},f);f.node=d;Xj(f,h,Sj(e,g),a,
|
|
322
|
-
c);return this.b.serializeToString(d)};l.ld=function(a,b){var c;c=ck(this,b);var d=Kj.createElementNS("http://www.opengis.net/gml","geom"),e={node:d,srsName:this.srsName,curve:this.j,surface:this.v,multiSurface:this.o,multiCurve:this.D};c&&ua(e,c);this.la(d,a,[e]);return this.b.serializeToString(d)};function yk(a){a=a?a:{};this.featureType=a.featureType;this.featureNS=a.featureNS;this.srsName=a.srsName;this.schemaLocation="";this.c={};this.c["http://www.opengis.net/gml"]={featureMember:Pj(yk.prototype.f),featureMembers:Pj(yk.prototype.f)};uk.call(this)}u(yk,uk);var zk=/^[\s\xa0]*$/;
|
|
323
|
-
yk.prototype.f=function(a,b){var c=a.localName,d=null;if("FeatureCollection"==c)"http://www.opengis.net/wfs"===a.namespaceURI?d=O([],this.c,a,b,this):d=O(null,this.c,a,b,this);else if("featureMembers"==c||"featureMember"==c){var e=b[0],f=e.featureType,g=e.featureNS,h,k;if(!f&&a.childNodes){f=[];g={};h=0;for(k=a.childNodes.length;h<k;++h){var m=a.childNodes[h];if(1===m.nodeType){var n=m.nodeName.split(":").pop();if(-1===f.indexOf(n)){var p="",q=0,m=m.namespaceURI,v;for(v in g){if(g[v]===m){p=v;break}++q}p||
|
|
324
|
-
(p="p"+q,g[p]=m);f.push(p+":"+n)}}}"featureMember"!=c&&(e.featureType=f,e.featureNS=g)}"string"===typeof g&&(h=g,g={},g.p0=h);var e={},f=Array.isArray(f)?f:[f],t;for(t in g){n={};h=0;for(k=f.length;h<k;++h)(-1===f[h].indexOf(":")?"p0":f[h].split(":")[0])===t&&(n[f[h].split(":").pop()]="featureMembers"==c?Oj(this.i,this):Pj(this.i,this));e[g[t]]=n}"featureMember"==c?d=O(void 0,e,a,b):d=O([],e,a,b)}null===d&&(d=[]);return d};
|
|
325
|
-
yk.prototype.a=function(a,b){var c=b[0];c.srsName=a.firstElementChild.getAttribute("srsName");var d=O(null,this.B,a,b,this);if(d)return dk(d,!1,c)};
|
|
326
|
-
yk.prototype.i=function(a,b){var c,d;(d=a.getAttribute("fid"))||(d=a.getAttributeNS("http://www.opengis.net/gml","id")||"");var e={},f;for(c=a.firstElementChild;c;c=c.nextElementSibling){var g=c.localName;if(0===c.childNodes.length||1===c.childNodes.length&&(3===c.firstChild.nodeType||4===c.firstChild.nodeType)){var h=Lj(c);zk.test(h)&&(h=void 0);e[g]=h}else"boundedBy"!==g&&(f=g),e[g]=this.a(c,b)}c=new J(e);f&&c.oc(f);d&&c.pc(d);return c};
|
|
327
|
-
function xk(a,b,c){var d={featureType:a.featureType,featureNS:a.featureNS};c&&ua(d,bk(a,b,c));return a.f(b,[d])||[]}yk.prototype.If=function(a){return rc(this.srsName?this.srsName:a.firstElementChild.getAttribute("srsName"))};function Ak(a){a=Lj(a);return Bk(a)}function Bk(a){if(a=/^\s*(true|1)|(false|0)\s*$/.exec(a))return void 0!==a[1]||!1}function Ck(a){a=Lj(a);a=Date.parse(a);return isNaN(a)?void 0:a/1E3}function Dk(a){a=Lj(a);return Ek(a)}function Ek(a){if(a=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(a))return parseFloat(a[1])}function Fk(a){a=Lj(a);return Gk(a)}function Gk(a){if(a=/^\s*(\d+)\s*$/.exec(a))return parseInt(a[1],10)}function U(a){return Lj(a).trim()}function Hk(a,b){Ik(a,b?"1":"0")}
|
|
328
|
-
function Jk(a,b){a.appendChild(Kj.createTextNode(b.toPrecision()))}function Kk(a,b){a.appendChild(Kj.createTextNode(b.toString()))}function Ik(a,b){a.appendChild(Kj.createTextNode(b))};var Lk=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function Mk(a,b,c,d){a.push(parseFloat(c.getAttribute("lon")),parseFloat(c.getAttribute("lat")));"ele"in d?(a.push(d.ele),delete d.ele,b.hasZ=!0):a.push(0);"time"in d?(a.push(d.time),delete d.time,b.hasM=!0):a.push(0);return a}
|
|
329
|
-
function Nk(a,b,c){var d="XY",e=2;a.hasZ&&a.hasM?(d="XYZM",e=4):a.hasZ?(d="XYZ",e=3):a.hasM&&(d="XYM",e=3);if(4!==e){var f,g;f=0;for(g=b.length/4;f<g;f++)b[f*e]=b[4*f],b[f*e+1]=b[4*f+1],a.hasZ&&(b[f*e+2]=b[4*f+2]),a.hasM&&(b[f*e+2]=b[4*f+3]);b.length=b.length/4*e;if(c)for(f=0,g=c.length;f<g;f++)c[f]=c[f]/4*e}return d}function Ok(a,b){var c=b[b.length-1],d=a.getAttribute("href");null!==d&&(c.link=d);Wj(Pk,a,b)}function Qk(a,b){b[b.length-1].extensionsNode_=a}
|
|
330
|
-
N(Lk,{rte:Oj(function(a,b){var c=b[0],d=O({flatCoordinates:[],layoutOptions:{}},Rk,a,b);if(d){var e=d.flatCoordinates;delete d.flatCoordinates;var f=d.layoutOptions;delete d.layoutOptions;var f=Nk(f,e),g=new P(null);g.P(f,e);dk(g,!1,c);c=new J(g);c.J(d);return c}}),trk:Oj(function(a,b){var c=b[0],d=O({flatCoordinates:[],ends:[],layoutOptions:{}},Sk,a,b);if(d){var e=d.flatCoordinates;delete d.flatCoordinates;var f=d.ends;delete d.ends;var g=d.layoutOptions;delete d.layoutOptions;var g=Nk(g,e,f),h=
|
|
331
|
-
new Q(null);h.P(g,e,f);dk(h,!1,c);c=new J(h);c.J(d);return c}}),wpt:Oj(function(a,b){var c=b[0],d=O({},Tk,a,b);if(d){var e={},f=Mk([],e,a,d),e=Nk(e,f),f=new A(f,e);dk(f,!1,c);c=new J(f);c.J(d);return c}})});
|
|
332
|
-
var Pk=N(Lk,{text:K(U,"linkText"),type:K(U,"linkType")}),Rk=N(Lk,{name:K(U),cmt:K(U),desc:K(U),src:K(U),link:Ok,number:K(Fk),extensions:Qk,type:K(U),rtept:function(a,b){var c=O({},Uk,a,b);if(c){var d=b[b.length-1];Mk(d.flatCoordinates,d.layoutOptions,a,c)}}}),Uk=N(Lk,{ele:K(Dk),time:K(Ck)}),Sk=N(Lk,{name:K(U),cmt:K(U),desc:K(U),src:K(U),link:Ok,number:K(Fk),type:K(U),extensions:Qk,trkseg:function(a,b){var c=b[b.length-1];Wj(Vk,a,b);c.ends.push(c.flatCoordinates.length)}}),Vk=N(Lk,{trkpt:function(a,
|
|
333
|
-
b){var c=O({},Wk,a,b);if(c){var d=b[b.length-1];Mk(d.flatCoordinates,d.layoutOptions,a,c)}}}),Wk=N(Lk,{ele:K(Dk),time:K(Ck)}),Tk=N(Lk,{ele:K(Dk),time:K(Ck),magvar:K(Dk),geoidheight:K(Dk),name:K(U),cmt:K(U),desc:K(U),src:K(U),link:Ok,sym:K(U),type:K(U),fix:K(U),sat:K(Fk),hdop:K(Dk),vdop:K(Dk),pdop:K(Dk),ageofdgpsdata:K(Dk),dgpsid:K(Fk),extensions:Qk});function Xk(a,b,c){a.setAttribute("href",b);b=c[c.length-1].properties;Xj({node:a},Yk,Uj,[b.linkText,b.linkType],c,Zk)}
|
|
334
|
-
function $k(a,b,c){var d=c[c.length-1],e=d.node.namespaceURI,f=d.properties;a.setAttributeNS(null,"lat",b[1]);a.setAttributeNS(null,"lon",b[0]);switch(d.geometryLayout){case "XYZM":0!==b[3]&&(f.time=b[3]);case "XYZ":0!==b[2]&&(f.ele=b[2]);break;case "XYM":0!==b[2]&&(f.time=b[2])}b="rtept"==a.nodeName?al[e]:bl[e];d=Vj(f,b);Xj({node:a,properties:f},cl,Uj,d,c,b)}
|
|
335
|
-
var Zk=["text","type"],Yk=N(Lk,{text:L(Ik),type:L(Ik)}),dl=N(Lk,"name cmt desc src link number type rtept".split(" ")),el=N(Lk,{name:L(Ik),cmt:L(Ik),desc:L(Ik),src:L(Ik),link:L(Xk),number:L(Kk),type:L(Ik),rtept:Rj(L($k))}),al=N(Lk,["ele","time"]),fl=N(Lk,"name cmt desc src link number type trkseg".split(" ")),il=N(Lk,{name:L(Ik),cmt:L(Ik),desc:L(Ik),src:L(Ik),link:L(Xk),number:L(Kk),type:L(Ik),trkseg:Rj(L(function(a,b,c){Xj({node:a,geometryLayout:b.V,properties:{}},gl,hl,b.R(),c)}))}),hl=Sj("trkpt"),
|
|
336
|
-
gl=N(Lk,{trkpt:L($k)}),bl=N(Lk,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),cl=N(Lk,{ele:L(Jk),time:L(function(a,b){var c=new Date(1E3*b);a.appendChild(Kj.createTextNode(c.getUTCFullYear()+"-"+kb(c.getUTCMonth()+1)+"-"+kb(c.getUTCDate())+"T"+kb(c.getUTCHours())+":"+kb(c.getUTCMinutes())+":"+kb(c.getUTCSeconds())+"Z"))}),magvar:L(Jk),geoidheight:L(Jk),name:L(Ik),cmt:L(Ik),desc:L(Ik),src:L(Ik),link:L(Xk),sym:L(Ik),type:L(Ik),fix:L(Ik),
|
|
337
|
-
sat:L(Kk),hdop:L(Jk),vdop:L(Jk),pdop:L(Jk),ageofdgpsdata:L(Jk),dgpsid:L(Kk)});
|
|
338
|
-
N(Lk,{rte:L(function(a,b,c){var d=c[0],e=b.Y();a={node:a,properties:e};if(b=b.L())b=dk(b,!0,d),a.geometryLayout=b.V,e.rtept=b.R();d=dl[c[c.length-1].node.namespaceURI];e=Vj(e,d);Xj(a,el,Uj,e,c,d)}),trk:L(function(a,b,c){var d=c[0],e=b.Y();a={node:a,properties:e};if(b=b.L())b=dk(b,!0,d),e.trkseg=b.Dc();d=fl[c[c.length-1].node.namespaceURI];e=Vj(e,d);Xj(a,il,Uj,e,c,d)}),wpt:L(function(a,b,c){var d=c[0],e=c[c.length-1];e.properties=b.Y();if(b=b.L())b=dk(b,!0,d),e.geometryLayout=b.V,$k(a,b.R(),c)})});function jl(){ak.call(this)}u(jl,ak);function kl(a){return"string"===typeof a?a:""}l=jl.prototype;l.K=function(){return"text"};l.Xc=function(a,b){var c;c=ck(this,b);if(c=ll(kl(a),c)){var d=new J;d.Ga(c);c=d}else c=null;return c};l.lc=function(a,b){var c=ck(this,b),d=[],c=ll(kl(a),c);this.c&&"GeometryCollection"==c.K()?d=c.b:d=[c];for(var e=[],f=0,g=d.length;f<g;++f)c=new J,c.Ga(d[f]),e.push(c);return e};l.Yc=function(a,b){return ll(kl(a),ck(this,b))};l.mc=function(){return this.defaultDataProjection};
|
|
339
|
-
l.jd=function(a,b){return ml(a,ck(this,b))};l.kd=function(a,b){var c;c=ck(this,b);if(1==a.length)c=ml(a[0],c);else{for(var d=[],e=0,f=a.length;e<f;++e)d.push(a[e].L());d=new T(d);c=nl(dk(d,!0,c))}return c};l.ld=function(a,b){var c=ck(this,b);return nl(dk(a,!0,c))};function pl(a,b,c,d,e,f){Ma.call(this);this.D=null;this.f=a?a:new Image;null!==d&&(this.f.crossOrigin=d);this.g=f?document.createElement("CANVAS"):null;this.j=f;this.i=null;this.b=e;this.a=c;this.o=b;this.s=!1;this.b==bh&&ql(this)}u(pl,Ma);function ql(a){var b=be(1,1);try{b.drawImage(a.f,0,0),b.getImageData(0,0,1,1)}catch(c){a.s=!0}}pl.prototype.v=function(){this.b=ah;this.i.forEach(Ba);this.i=null;this.c("change")};
|
|
340
|
-
pl.prototype.B=function(){this.b=bh;this.a&&(this.f.width=this.a[0],this.f.height=this.a[1]);this.a=[this.f.width,this.f.height];this.i.forEach(Ba);this.i=null;ql(this);if(!this.s&&null!==this.j){this.g.width=this.f.width;this.g.height=this.f.height;var a=this.g.getContext("2d");a.drawImage(this.f,0,0);for(var b=a.getImageData(0,0,this.f.width,this.f.height),c=b.data,d=this.j[0]/255,e=this.j[1]/255,f=this.j[2]/255,g=0,h=c.length;g<h;g+=4)c[g]*=d,c[g+1]*=e,c[g+2]*=f;a.putImageData(b,0,0)}this.c("change")};
|
|
341
|
-
pl.prototype.load=function(){if(this.b==$g){this.b=ch;this.i=[w(this.f,"error",this.v,this,!0),w(this.f,"load",this.B,this,!0)];try{this.f.src=this.o}catch(a){this.v()}}};function rl(a){a=a||{};this.g=void 0!==a.anchor?a.anchor:[.5,.5];this.i=null;this.f=void 0!==a.anchorOrigin?a.anchorOrigin:sl;this.C=void 0!==a.anchorXUnits?a.anchorXUnits:tl;this.aa=void 0!==a.anchorYUnits?a.anchorYUnits:tl;this.I=void 0!==a.crossOrigin?a.crossOrigin:null;var b=void 0!==a.img?a.img:null,c=void 0!==a.imgSize?a.imgSize:null,d=a.src;ha(!(void 0!==d&&b),4);ha(!b||b&&c,5);void 0!==d&&0!==d.length||!b||(d=b.src||ea(b).toString());ha(void 0!==d&&0<d.length,6);var e=void 0!==a.src?$g:bh,
|
|
342
|
-
f;void 0!==a.color?(f=a.color,f=Array.isArray(f)?f:$d(f)):f=null;this.b=f;f=this.I;var g=this.b,h=Kg.get(d,f,g);h||(h=new pl(b,d,c,f,e,g),Kg.set(d,f,g,h));this.c=h;this.la=void 0!==a.offset?a.offset:[0,0];this.a=void 0!==a.offsetOrigin?a.offsetOrigin:sl;this.D=null;this.B=void 0!==a.size?a.size:null;hh.call(this,{opacity:void 0!==a.opacity?a.opacity:1,rotation:void 0!==a.rotation?a.rotation:0,scale:void 0!==a.scale?a.scale:1,snapToPixel:void 0!==a.snapToPixel?a.snapToPixel:!0,rotateWithView:void 0!==
|
|
343
|
-
a.rotateWithView?a.rotateWithView:!1})}u(rl,hh);l=rl.prototype;
|
|
344
|
-
l.clone=function(){var a=this.Jb(1),b;if(this.c.b===bh)if("IMG"===a.tagName.toUpperCase())b=a.cloneNode(!0);else{b=document.createElement("canvas");var c=b.getContext("2d");b.width=a.width;b.height=a.height;c.drawImage(a,0,0)}return new rl({anchor:this.g.slice(),anchorOrigin:this.f,anchorXUnits:this.C,anchorYUnits:this.aa,crossOrigin:this.I,color:this.b&&this.b.slice?this.b.slice():this.b||void 0,img:b?b:void 0,imgSize:b?this.c.a.slice():void 0,src:b?void 0:this.c.o,offset:this.la.slice(),offsetOrigin:this.a,
|
|
345
|
-
size:null!==this.B?this.B.slice():void 0,opacity:this.o,scale:this.j,snapToPixel:this.v,rotation:this.s,rotateWithView:this.G})};l.yb=function(){if(this.i)return this.i;var a=this.g,b=this.eb();if(this.C==tl||this.aa==tl){if(!b)return null;a=this.g.slice();this.C==tl&&(a[0]*=b[0]);this.aa==tl&&(a[1]*=b[1])}if(this.f!=sl){if(!b)return null;a===this.g&&(a=this.g.slice());if(this.f==ul||this.f==vl)a[0]=-a[0]+b[0];if(this.f==wl||this.f==vl)a[1]=-a[1]+b[1]}return this.i=a};l.Ji=function(){return this.b};
|
|
346
|
-
l.Jb=function(){var a=this.c;return a.g?a.g:a.f};l.Xe=function(){return this.c.a};l.Rc=function(){return this.c.b};l.Af=function(){var a=this.c;if(!a.D)if(a.s){var b=a.a[0],c=a.a[1],d=be(b,c);d.fillRect(0,0,b,c);a.D=d.canvas}else a.D=a.f;return a.D};l.Kb=function(){if(this.D)return this.D;var a=this.la;if(this.a!=sl){var b=this.eb(),c=this.c.a;if(!b||!c)return null;a=a.slice();if(this.a==ul||this.a==vl)a[0]=c[0]-b[0]-a[0];if(this.a==wl||this.a==vl)a[1]=c[1]-b[1]-a[1]}return this.D=a};l.Ki=function(){return this.c.o};
|
|
347
|
-
l.eb=function(){return this.B?this.B:this.c.a};l.kf=function(a,b){return w(this.c,"change",a,b)};l.load=function(){this.c.load()};l.Tf=function(a,b){Ha(this.c,"change",a,b)};var tl="fraction",wl="bottom-left",vl="bottom-right",sl="top-left",ul="top-right";function xl(a){a=a||{};this.b=a.font;this.j=a.rotation;this.s=a.rotateWithView;this.f=a.scale;this.v=a.text;this.D=a.textAlign;this.o=a.textBaseline;this.c=void 0!==a.fill?a.fill:new lh({color:"#333"});this.a=void 0!==a.stroke?a.stroke:null;this.g=void 0!==a.offsetX?a.offsetX:0;this.i=void 0!==a.offsetY?a.offsetY:0}l=xl.prototype;
|
|
348
|
-
l.clone=function(){return new xl({font:this.b,rotation:this.j,rotateWithView:this.s,scale:this.f,text:this.ra(),textAlign:this.D,textBaseline:this.o,fill:this.c?this.c.clone():void 0,stroke:this.a?this.a.clone():void 0,offsetX:this.g,offsetY:this.i})};l.Fg=function(){return this.b};l.Qg=function(){return this.g};l.Rg=function(){return this.i};l.Yi=function(){return this.c};l.Zi=function(){return this.s};l.$i=function(){return this.j};l.aj=function(){return this.f};l.bj=function(){return this.a};
|
|
349
|
-
l.ra=function(){return this.v};l.Wg=function(){return this.D};l.Xg=function(){return this.o};l.Mj=function(a){this.b=a};l.Tj=function(a){this.g=a};l.Uj=function(a){this.i=a};l.cj=function(a){this.c=a};l.dj=function(a){this.j=a};l.ej=function(a){this.f=a};l.fj=function(a){this.a=a};l.gj=function(a){this.v=a};l.Vj=function(a){this.D=a};l.Wj=function(a){this.o=a};var yl=["http://www.google.com/kml/ext/2.2"],zl=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],Al={fraction:tl,pixels:"pixels"};function Bl(a){a=Lj(a);if(a=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(a))return a=a[1],[parseInt(a.substr(6,2),16),parseInt(a.substr(4,2),16),parseInt(a.substr(2,2),16),parseInt(a.substr(0,2),16)/255]}
|
|
350
|
-
function Cl(a){a=Lj(a);for(var b=[],c=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i,d;d=c.exec(a);)b.push(parseFloat(d[1]),parseFloat(d[2]),d[3]?parseFloat(d[3]):0),a=a.substr(d[0].length);return""!==a?void 0:b}function Dl(a){var b=Lj(a).trim();return a.baseURI?(new URL(b,a.baseURI)).href:b}function El(a){return Dk(a)}function Fl(a,b){return O(null,Gl,a,b)}
|
|
351
|
-
function Hl(a,b){var c=O({l:[],Xf:[]},Il,a,b);if(c){var d=c.l,c=c.Xf,e,f;e=0;for(f=Math.min(d.length,c.length);e<f;++e)d[4*e+3]=c[e];c=new P(null);c.P("XYZM",d);return c}}function Jl(a,b){var c=O({},Kl,a,b),d=O(null,Ll,a,b);if(d){var e=new P(null);e.P("XYZ",d);e.J(c);return e}}function Ml(a,b){var c=O({},Kl,a,b),d=O(null,Ll,a,b);if(d){var e=new C(null);e.P("XYZ",d,[d.length]);e.J(c);return e}}
|
|
352
|
-
function Nl(a,b){var c=O([],Ol,a,b);if(!c)return null;if(0===c.length)return new T(c);var d,e=!0,f=c[0].K(),g,h,k;h=1;for(k=c.length;h<k;++h)if(g=c[h],g.K()!=f){e=!1;break}if(e)if("Point"==f){d=c[0];e=d.V;f=d.l;h=1;for(k=c.length;h<k;++h)g=c[h],Za(f,g.l);d=new R(null);d.P(e,f);Pl(d,c)}else if("LineString"==f)d=new Q(null),lk(d,c),Pl(d,c);else if("Polygon"==f){g=d=new S(null);h=g.V;k=[];var e=[],m,n,f=0;for(m=c.length;f<m;++f){var p=c[f];0===f&&(h=p.V);var q=k.length;n=p.Ua();var v,t;v=0;for(t=n.length;v<
|
|
353
|
-
t;++v)n[v]+=q;Za(k,p.l);e.push(n)}mk(g,h,k,e);Pl(d,c)}else"GeometryCollection"==f?d=new T(c):ha(!1,37);else d=new T(c);return d}function Ql(a,b){var c=O({},Kl,a,b),d=O(null,Ll,a,b);if(d){var e=new A(null);e.P("XYZ",d);e.J(c);return e}}function Rl(a,b){var c=O({},Kl,a,b),d=O([null],Sl,a,b);if(d&&d[0]){var e=new C(null),f=d[0],g=[f.length],h,k;h=1;for(k=d.length;h<k;++h)Za(f,d[h]),g.push(f.length);e.P("XYZ",f,g);e.J(c);return e}}
|
|
354
|
-
function Tl(a,b){var c=O({},Ul,a,b);if(!c)return null;var d="fillStyle"in c?c.fillStyle:void 0,e=c.fill;void 0===e||e||(d=null);e="imageStyle"in c?c.imageStyle:void 0;void 0==e&&(e=void 0);var f="textStyle"in c?c.textStyle:void 0,g="strokeStyle"in c?c.strokeStyle:void 0,c=c.outline;void 0===c||c||(g=null);return[new nh({fill:d,image:e,stroke:g,text:f,zIndex:void 0})]}
|
|
355
|
-
function Pl(a,b){var c=b.length,d=Array(b.length),e=Array(b.length),f,g,h,k;h=k=!1;for(g=0;g<c;++g)f=b[g],d[g]=f.get("extrude"),e[g]=f.get("altitudeMode"),h=h||void 0!==d[g],k=k||e[g];h&&a.set("extrude",d);k&&a.set("altitudeMode",e)}function Vl(a,b){Wj(Wl,a,b)}function Xl(a,b){Wj(Yl,a,b)}
|
|
356
|
-
var Zl=N(zl,{displayName:K(U),value:K(U)}),Wl=N(zl,{Data:function(a,b){var c=a.getAttribute("name");Wj(Zl,a,b);var d=b[b.length-1];null!==c?d[c]=d.value:null!==d.displayName&&(d[d.displayName]=d.value)},SchemaData:function(a,b){Wj($l,a,b)}}),Yl=N(zl,{LatLonAltBox:function(a,b){var c=O({},am,a,b);if(c){var d=b[b.length-1];d.extent=[parseFloat(c.west),parseFloat(c.south),parseFloat(c.east),parseFloat(c.north)];d.altitudeMode=c.altitudeMode;d.minAltitude=parseFloat(c.minAltitude);d.maxAltitude=parseFloat(c.maxAltitude)}},
|
|
357
|
-
Lod:function(a,b){var c=O({},bm,a,b);if(c){var d=b[b.length-1];d.minLodPixels=parseFloat(c.minLodPixels);d.maxLodPixels=parseFloat(c.maxLodPixels);d.minFadeExtent=parseFloat(c.minFadeExtent);d.maxFadeExtent=parseFloat(c.maxFadeExtent)}}}),am=N(zl,{altitudeMode:K(U),minAltitude:K(Dk),maxAltitude:K(Dk),north:K(Dk),south:K(Dk),east:K(Dk),west:K(Dk)}),bm=N(zl,{minLodPixels:K(Dk),maxLodPixels:K(Dk),minFadeExtent:K(Dk),maxFadeExtent:K(Dk)}),Kl=N(zl,{extrude:K(Ak),altitudeMode:K(U)}),Gl=N(zl,{coordinates:Pj(Cl)}),
|
|
358
|
-
Sl=N(zl,{innerBoundaryIs:function(a,b){var c=O(void 0,cm,a,b);c&&b[b.length-1].push(c)},outerBoundaryIs:function(a,b){var c=O(void 0,dm,a,b);c&&(b[b.length-1][0]=c)}}),Il=N(zl,{when:function(a,b){var c=b[b.length-1].Xf,d=Lj(a),d=Date.parse(d);c.push(isNaN(d)?0:d)}},N(yl,{coord:function(a,b){var c=b[b.length-1].l,d=Lj(a);(d=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(d))?c.push(parseFloat(d[1]),parseFloat(d[2]),
|
|
359
|
-
parseFloat(d[3]),0):c.push(0,0,0,0)}})),Ll=N(zl,{coordinates:Pj(Cl)}),em=N(zl,{href:K(Dl)},N(yl,{x:K(Dk),y:K(Dk),w:K(Dk),h:K(Dk)})),fm=N(zl,{Icon:K(function(a,b){var c=O({},em,a,b);return c?c:null}),heading:K(Dk),hotSpot:K(function(a){var b=a.getAttribute("xunits"),c=a.getAttribute("yunits");return{x:parseFloat(a.getAttribute("x")),ue:Al[b],y:parseFloat(a.getAttribute("y")),ve:Al[c]}}),scale:K(El)}),cm=N(zl,{LinearRing:Pj(Fl)}),gm=N(zl,{color:K(Bl),scale:K(El)}),hm=N(zl,{color:K(Bl),width:K(Dk)}),
|
|
360
|
-
Ol=N(zl,{LineString:Oj(Jl),LinearRing:Oj(Ml),MultiGeometry:Oj(Nl),Point:Oj(Ql),Polygon:Oj(Rl)}),im=N(yl,{Track:Oj(Hl)});N(zl,{ExtendedData:Vl,Region:Xl,Link:function(a,b){Wj(jm,a,b)},address:K(U),description:K(U),name:K(U),open:K(Ak),phoneNumber:K(U),visibility:K(Ak)});var jm=N(zl,{href:K(Dl)}),dm=N(zl,{LinearRing:Pj(Fl)}),km=N(zl,{Style:K(Tl),key:K(U),styleUrl:K(Dl)});
|
|
361
|
-
N(zl,{ExtendedData:Vl,Region:Xl,MultiGeometry:K(Nl,"geometry"),LineString:K(Jl,"geometry"),LinearRing:K(Ml,"geometry"),Point:K(Ql,"geometry"),Polygon:K(Rl,"geometry"),Style:K(Tl),StyleMap:function(a,b){var c=O(void 0,lm,a,b);if(c){var d=b[b.length-1];Array.isArray(c)?d.Style=c:"string"===typeof c?d.styleUrl=c:ha(!1,38)}},address:K(U),description:K(U),name:K(U),open:K(Ak),phoneNumber:K(U),styleUrl:K(Dl),visibility:K(Ak)},N(yl,{MultiTrack:K(function(a,b){var c=O([],im,a,b);if(c){var d=new Q(null);lk(d,
|
|
362
|
-
c);return d}},"geometry"),Track:K(Hl,"geometry")}));
|
|
363
|
-
var mm=N(zl,{color:K(Bl),fill:K(Ak),outline:K(Ak)}),$l=N(zl,{SimpleData:function(a,b){var c=a.getAttribute("name");if(null!==c){var d=U(a);b[b.length-1][c]=d}}}),Ul=N(zl,{IconStyle:function(a,b){var c=O({},fm,a,b);if(c){var d=b[b.length-1],e="Icon"in c?c.Icon:{},f=!("Icon"in c)||0<Object.keys(e).length,g,h=e.href;h?g=h:f&&(g=void 0);var k,m,n;(h=c.hotSpot)?(k=[h.x,h.y],m=h.ue,n=h.ve):void 0===g?n=m=k=void 0:/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(g)&&(k=[.5,0],n=m=tl);var p,h=e.x,q=e.y;void 0!==
|
|
364
|
-
h&&void 0!==q&&(p=[h,q]);var v,h=e.w,e=e.h;void 0!==h&&void 0!==e&&(v=[h,e]);var t,e=c.heading;void 0!==e&&(t=e*Math.PI/180);c=c.scale;f?(void 0==g&&(v=void 0,void 0===c&&(c=void 0)),f=new rl({anchor:k,anchorOrigin:wl,anchorXUnits:m,anchorYUnits:n,crossOrigin:"anonymous",offset:p,offsetOrigin:wl,rotation:t,scale:c,size:v,src:g}),d.imageStyle=f):d.imageStyle=void 0}},LabelStyle:function(a,b){var c=O({},gm,a,b);c&&(b[b.length-1].textStyle=new xl({fill:new lh({color:"color"in c?c.color:void 0}),scale:c.scale}))},
|
|
365
|
-
LineStyle:function(a,b){var c=O({},hm,a,b);c&&(b[b.length-1].strokeStyle=new mh({color:"color"in c?c.color:void 0,width:"width"in c?c.width:1}))},PolyStyle:function(a,b){var c=O({},mm,a,b);if(c){var d=b[b.length-1];d.fillStyle=new lh({color:"color"in c?c.color:void 0});var e=c.fill;void 0!==e&&(d.fill=e);c=c.outline;void 0!==c&&(d.outline=c)}}}),lm=N(zl,{Pair:function(a,b){var c=O({},km,a,b);if(c){var d=c.key;d&&"normal"==d&&((d=c.styleUrl)&&(b[b.length-1]=d),(c=c.Style)&&(b[b.length-1]=c))}}});
|
|
366
|
-
function nm(a,b){var c=Array.isArray(b)?b:$d(b),c=[255*(4==c.length?c[3]:1),c[2],c[1],c[0]],d;for(d=0;4>d;++d){var e=parseInt(c[d],10).toString(16);c[d]=1==e.length?"0"+e:e}Ik(a,c.join(""))}function om(a,b,c){a={node:a};var d=b.K(),e,f;"GeometryCollection"==d?(e=b.Id(),f=pm):"MultiPoint"==d?(e=b.ae(),f=qm):"MultiLineString"==d?(e=b.Dc(),f=rm):"MultiPolygon"==d?(e=b.Md(),f=sm):ha(!1,39);Xj(a,tm,f,e,c)}function um(a,b,c){Xj({node:a},vm,wm,[b],c)}
|
|
367
|
-
function xm(a,b,c){var d={node:a};b.b&&a.setAttribute("id",b.b);a=b.Y();var e={address:1,description:1,name:1,open:1,phoneNumber:1,styleUrl:1,visibility:1};e[b.a]=1;var f=Object.keys(a||{}).sort().filter(function(a){return!e[a]});if(0<f.length){var g=Vj(a,f);Xj(d,ym,zm,[{names:f,values:g}],c)}if(f=b.g)if(f=f.call(b,0))f=Array.isArray(f)?f[0]:f,this.c&&(a.Style=f),(f=f.ra())&&(a.name=f.ra());f=Am[c[c.length-1].node.namespaceURI];a=Vj(a,f);Xj(d,ym,Uj,a,c,f);a=c[0];(b=b.L())&&(b=dk(b,!0,a));Xj(d,ym,
|
|
368
|
-
pm,[b],c)}function Bm(a,b,c){var d=b.l;a={node:a};a.layout=b.V;a.stride=b.A;Xj(a,Cm,Dm,[d],c)}function Em(a,b,c){b=b.Kd();var d=b.shift();a={node:a};Xj(a,Fm,Gm,b,c);Xj(a,Fm,Hm,[d],c)}function Im(a,b){Jk(a,Math.round(1E6*b)/1E6)}N(zl,["Document","Placemark"]);N(zl,{Document:L(function(a,b,c){Xj({node:a},Jm,Km,b,c,void 0,this)}),Placemark:L(xm)});
|
|
369
|
-
var Jm=N(zl,{Placemark:L(xm)}),Lm=N(zl,{Data:L(function(a,b,c){a.setAttribute("name",b.name);a={node:a};b=b.value;"object"==typeof b?(null!==b&&b.displayName&&Xj(a,Lm,Uj,[b.displayName],c,["displayName"]),null!==b&&b.value&&Xj(a,Lm,Uj,[b.value],c,["value"])):Xj(a,Lm,Uj,[b],c,["value"])}),value:L(function(a,b){Ik(a,b)}),displayName:L(function(a,b){a.appendChild(Kj.createCDATASection(b))})}),Mm={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",
|
|
370
|
-
MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},Nm=N(zl,["href"],N(yl,["x","y","w","h"])),Om=N(zl,{href:L(Ik)},N(yl,{x:L(Jk),y:L(Jk),w:L(Jk),h:L(Jk)})),Pm=N(zl,["scale","heading","Icon","hotSpot"]),Rm=N(zl,{Icon:L(function(a,b,c){a={node:a};var d=Nm[c[c.length-1].node.namespaceURI],e=Vj(b,d);Xj(a,Om,Uj,e,c,d);d=Nm[yl[0]];e=Vj(b,d);Xj(a,Om,Qm,e,c,d)}),heading:L(Jk),hotSpot:L(function(a,b){a.setAttribute("x",b.x);a.setAttribute("y",b.y);a.setAttribute("xunits",
|
|
371
|
-
b.ue);a.setAttribute("yunits",b.ve)}),scale:L(Im)}),Sm=N(zl,["color","scale"]),Tm=N(zl,{color:L(nm),scale:L(Im)}),Um=N(zl,["color","width"]),Vm=N(zl,{color:L(nm),width:L(Jk)}),vm=N(zl,{LinearRing:L(Bm)}),tm=N(zl,{LineString:L(Bm),Point:L(Bm),Polygon:L(Em),GeometryCollection:L(om)}),Am=N(zl,"name open visibility address phoneNumber description styleUrl Style".split(" ")),ym=N(zl,{ExtendedData:L(function(a,b,c){a={node:a};var d=b.names;b=b.values;for(var e=d.length,f=0;f<e;f++)Xj(a,Lm,Wm,[{name:d[f],
|
|
372
|
-
value:b[f]}],c)}),MultiGeometry:L(om),LineString:L(Bm),LinearRing:L(Bm),Point:L(Bm),Polygon:L(Em),Style:L(function(a,b,c){a={node:a};var d={},e=b.a,f=b.f,g=b.b;b=b.ra();g instanceof rl&&(d.IconStyle=g);b&&(d.LabelStyle=b);f&&(d.LineStyle=f);e&&(d.PolyStyle=e);b=Xm[c[c.length-1].node.namespaceURI];d=Vj(d,b);Xj(a,Ym,Uj,d,c,b)}),address:L(Ik),description:L(Ik),name:L(Ik),open:L(Hk),phoneNumber:L(Ik),styleUrl:L(Ik),visibility:L(Hk)}),Cm=N(zl,{coordinates:L(function(a,b,c){c=c[c.length-1];var d=c.layout;
|
|
373
|
-
c=c.stride;var e;"XY"==d||"XYM"==d?e=2:"XYZ"==d||"XYZM"==d?e=3:ha(!1,34);var f,g=b.length,h="";if(0<g){h+=b[0];for(d=1;d<e;++d)h+=","+b[d];for(f=c;f<g;f+=c)for(h+=" "+b[f],d=1;d<e;++d)h+=","+b[f+d]}Ik(a,h)})}),Fm=N(zl,{outerBoundaryIs:L(um),innerBoundaryIs:L(um)}),Zm=N(zl,{color:L(nm)}),Xm=N(zl,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Ym=N(zl,{IconStyle:L(function(a,b,c){a={node:a};var d={},e=b.eb(),f=b.Xe(),g={href:b.c.o};if(e){g.w=e[0];g.h=e[1];var h=b.yb(),k=b.Kb();k&&f&&0!==k[0]&&k[1]!==
|
|
374
|
-
e[1]&&(g.x=k[0],g.y=f[1]-(k[1]+e[1]));h&&0!==h[0]&&h[1]!==e[1]&&(d.hotSpot={x:h[0],ue:"pixels",y:e[1]-h[1],ve:"pixels"})}d.Icon=g;e=b.j;1!==e&&(d.scale=e);b=b.s;0!==b&&(d.heading=b);b=Pm[c[c.length-1].node.namespaceURI];d=Vj(d,b);Xj(a,Rm,Uj,d,c,b)}),LabelStyle:L(function(a,b,c){a={node:a};var d={},e=b.c;e&&(d.color=e.c);(b=b.f)&&1!==b&&(d.scale=b);b=Sm[c[c.length-1].node.namespaceURI];d=Vj(d,b);Xj(a,Tm,Uj,d,c,b)}),LineStyle:L(function(a,b,c){a={node:a};var d=Um[c[c.length-1].node.namespaceURI];b=
|
|
375
|
-
Vj({color:b.f,width:b.b},d);Xj(a,Vm,Uj,b,c,d)}),PolyStyle:L(function(a,b,c){Xj({node:a},Zm,$m,[b.c],c)})});function Qm(a,b,c){return Kj.createElementNS(yl[0],"gx:"+c)}function Km(a,b){return Kj.createElementNS(b[b.length-1].node.namespaceURI,"Placemark")}function pm(a,b){if(a)return Kj.createElementNS(b[b.length-1].node.namespaceURI,Mm[a.K()])}
|
|
376
|
-
var $m=Sj("color"),Dm=Sj("coordinates"),Wm=Sj("Data"),zm=Sj("ExtendedData"),Gm=Sj("innerBoundaryIs"),qm=Sj("Point"),rm=Sj("LineString"),wm=Sj("LinearRing"),sm=Sj("Polygon"),Hm=Sj("outerBoundaryIs");(function(){var a={},b={X:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.X=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.zk=c()}})(function(){return function d(a,b,g){function h(m,p){if(!b[m]){if(!a[m]){var q="function"==typeof require&&require;if(!p&&q)return q(m,!0);if(k)return k(m,!0);q=Error("Cannot find module '"+m+"'");throw q.code="MODULE_NOT_FOUND",q;}q=b[m]={X:{}};a[m][0].call(q.X,function(b){var d=
|
|
377
|
-
a[m][1][b];return h(d?d:b)},q,q.X,d,a,b,g)}return b[m].X}for(var k="function"==typeof require&&require,m=0;m<g.length;m++)h(g[m]);return h}({1:[function(a,b,f){f.read=function(a,b,d,e,f){var p;p=8*f-e-1;var q=(1<<p)-1,v=q>>1,t=-7;f=d?f-1:0;var B=d?-1:1,F=a[b+f];f+=B;d=F&(1<<-t)-1;F>>=-t;for(t+=p;0<t;d=256*d+a[b+f],f+=B,t-=8);p=d&(1<<-t)-1;d>>=-t;for(t+=e;0<t;p=256*p+a[b+f],f+=B,t-=8);if(0===d)d=1-v;else{if(d===q)return p?NaN:Infinity*(F?-1:1);p+=Math.pow(2,e);d-=v}return(F?-1:1)*p*Math.pow(2,d-e)};
|
|
378
|
-
f.write=function(a,b,d,e,f,p){var q,v=8*p-f-1,t=(1<<v)-1,B=t>>1,F=23===f?Math.pow(2,-24)-Math.pow(2,-77):0;p=e?0:p-1;var X=e?1:-1,ca=0>b||0===b&&0>1/b?1:0;b=Math.abs(b);isNaN(b)||Infinity===b?(b=isNaN(b)?1:0,e=t):(e=Math.floor(Math.log(b)/Math.LN2),1>b*(q=Math.pow(2,-e))&&(e--,q*=2),b=1<=e+B?b+F/q:b+F*Math.pow(2,1-B),2<=b*q&&(e++,q/=2),e+B>=t?(b=0,e=t):1<=e+B?(b=(b*q-1)*Math.pow(2,f),e+=B):(b=b*Math.pow(2,B-1)*Math.pow(2,f),e=0));for(;8<=f;a[d+p]=b&255,p+=X,b/=256,f-=8);e=e<<f|b;for(v+=f;0<v;a[d+
|
|
379
|
-
p]=e&255,p+=X,e/=256,v-=8);a[d+p-X]|=128*ca}},{}],2:[function(a,b){function f(a){this.hb=ArrayBuffer.isView&&ArrayBuffer.isView(a)?a:new Uint8Array(a||0);this.type=this.N=0;this.length=this.hb.length}function g(a,b,d){var e=d.hb,f,g;g=e[d.N++];f=(g&112)>>4;if(128>g)return h(a,f,b);g=e[d.N++];f|=(g&127)<<3;if(128>g)return h(a,f,b);g=e[d.N++];f|=(g&127)<<10;if(128>g)return h(a,f,b);g=e[d.N++];f|=(g&127)<<17;if(128>g)return h(a,f,b);g=e[d.N++];f|=(g&127)<<24;if(128>g)return h(a,f,b);g=e[d.N++];if(128>
|
|
380
|
-
g)return h(a,f|(g&1)<<31,b);throw Error("Expected varint not more than 10 bytes");}function h(a,b,d){return d?4294967296*b+(a>>>0):4294967296*(b>>>0)+(a>>>0)}b.X=f;var k=a("ieee754");f.b=0;f.a=1;f.c=2;f.f=5;f.prototype={ge:function(a,b,d){for(d=d||this.length;this.N<d;){var e=this.pa(),f=e>>3,g=this.N;this.type=e&7;a(f,b,this);this.N===g&&this.ak(e)}return b},xj:function(){var a=k.read(this.hb,this.N,!0,23,4);this.N+=4;return a},wj:function(){var a=k.read(this.hb,this.N,!0,52,8);this.N+=8;return a},
|
|
381
|
-
pa:function(a){var b=this.hb,d,e;e=b[this.N++];d=e&127;if(128>e)return d;e=b[this.N++];d|=(e&127)<<7;if(128>e)return d;e=b[this.N++];d|=(e&127)<<14;if(128>e)return d;e=b[this.N++];d|=(e&127)<<21;if(128>e)return d;e=b[this.N];return g(d|(e&15)<<28,a,this)},yj:function(){return this.pa(!0)},he:function(){var a=this.pa();return 1===a%2?(a+1)/-2:a/2},vj:function(){return!!this.pa()},ie:function(){for(var a=this.pa()+this.N,b=this.hb,d="",e=this.N;e<a;){var f=b[e],g=null,h=239<f?4:223<f?3:191<f?2:1;if(e+
|
|
382
|
-
h>a)break;var k,X,ca;if(1===h)128>f&&(g=f);else if(2===h)k=b[e+1],128===(k&192)&&(g=(f&31)<<6|k&63,127>=g&&(g=null));else if(3===h){if(k=b[e+1],X=b[e+2],128===(k&192)&&128===(X&192)&&(g=(f&15)<<12|(k&63)<<6|X&63,2047>=g||55296<=g&&57343>=g))g=null}else 4===h&&(k=b[e+1],X=b[e+2],ca=b[e+3],128===(k&192)&&128===(X&192)&&128===(ca&192)&&(g=(f&15)<<18|(k&63)<<12|(X&63)<<6|ca&63,65535>=g||1114112<=g))&&(g=null);null===g?(g=65533,h=1):65535<g&&(g-=65536,d+=String.fromCharCode(g>>>10&1023|55296),g=56320|
|
|
383
|
-
g&1023);d+=String.fromCharCode(g);e+=h}this.N=a;return d},ak:function(a){a&=7;if(a===f.b)for(;127<this.hb[this.N++];);else if(a===f.c)this.N=this.pa()+this.N;else if(a===f.f)this.N+=4;else if(a===f.a)this.N+=8;else throw Error("Unimplemented type: "+a);}}},{ieee754:1}]},{},[2])(2)})})();(function(){var a={},b={X:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.X=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Ck=c()}})(function(){return function d(a,b,g){function h(m,p){if(!b[m]){if(!a[m]){var q="function"==typeof require&&require;if(!p&&q)return q(m,!0);if(k)return k(m,!0);q=Error("Cannot find module '"+m+"'");throw q.code="MODULE_NOT_FOUND",q;}q=b[m]={X:{}};a[m][0].call(q.X,function(b){var d=
|
|
384
|
-
a[m][1][b];return h(d?d:b)},q,q.X,d,a,b,g)}return b[m].X}for(var k="function"==typeof require&&require,m=0;m<g.length;m++)h(g[m]);return h}({1:[function(a,b){function f(a,b){this.x=a;this.y=b}b.X=f;f.prototype={clone:function(){return new f(this.x,this.y)},add:function(a){return this.clone().Zf(a)},rotate:function(a){return this.clone().ig(a)},round:function(){return this.clone().jg()},angle:function(){return Math.atan2(this.y,this.x)},Zf:function(a){this.x+=a.x;this.y+=a.y;return this},ig:function(a){var b=
|
|
385
|
-
Math.cos(a);a=Math.sin(a);var d=a*this.x+b*this.y;this.x=b*this.x-a*this.y;this.y=d;return this},jg:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}};f.c=function(a){return a instanceof f?a:Array.isArray(a)?new f(a[0],a[1]):a}},{}],2:[function(a,b){b.X.vk=a("./lib/vectortile.js");b.X.wk=a("./lib/vectortilefeature.js");b.X.xk=a("./lib/vectortilelayer.js")},{"./lib/vectortile.js":3,"./lib/vectortilefeature.js":4,"./lib/vectortilelayer.js":5}],3:[function(a,b){function f(a,
|
|
386
|
-
b,d){3===a&&(a=new g(d,d.pa()+d.N),a.length&&(b[a.name]=a))}var g=a("./vectortilelayer");b.X=function(a,b){this.layers=a.ge(f,{},b)}},{"./vectortilelayer":5}],4:[function(a,b){function f(a,b,d,e,f){this.properties={};this.extent=d;this.type=0;this.ub=a;this.Ae=-1;this.tc=e;this.vc=f;a.ge(g,this,b)}function g(a,b,d){if(1==a)b.id=d.pa();else if(2==a)for(a=d.pa()+d.N;d.N<a;){var e=b.tc[d.pa()],f=b.vc[d.pa()];b.properties[e]=f}else 3==a?b.type=d.pa():4==a&&(b.Ae=d.N)}a("point-geometry");b.X=f;f.c=["Unknown",
|
|
387
|
-
"Point","LineString","Polygon"];f.prototype.bbox=function(){var a=this.ub;a.N=this.Ae;for(var b=a.pa()+a.N,d=1,e=0,f=0,g=0,v=Infinity,t=-Infinity,B=Infinity,F=-Infinity;a.N<b;)if(e||(e=a.pa(),d=e&7,e>>=3),e--,1===d||2===d)f+=a.he(),g+=a.he(),f<v&&(v=f),f>t&&(t=f),g<B&&(B=g),g>F&&(F=g);else if(7!==d)throw Error("unknown command "+d);return[v,B,t,F]}},{"point-geometry":1}],5:[function(a,b){function f(a,b){this.version=1;this.name=null;this.extent=4096;this.length=0;this.ub=a;this.tc=[];this.vc=[];this.sc=
|
|
388
|
-
[];a.ge(g,this,b);this.length=this.sc.length}function g(a,b,d){15===a?b.version=d.pa():1===a?b.name=d.ie():5===a?b.extent=d.pa():2===a?b.sc.push(d.N):3===a?b.tc.push(d.ie()):4===a&&b.vc.push(h(d))}function h(a){for(var b=null,d=a.pa()+a.N;a.N<d;)b=a.pa()>>3,b=1===b?a.ie():2===b?a.xj():3===b?a.wj():4===b?a.yj():5===b?a.pa():6===b?a.he():7===b?a.vj():null;return b}var k=a("./vectortilefeature.js");b.X=f;f.prototype.feature=function(a){if(0>a||a>=this.sc.length)throw Error("feature index out of bounds");
|
|
389
|
-
this.ub.N=this.sc[a];a=this.ub.pa()+this.ub.N;return new k(this.ub,a,this.extent,this.tc,this.vc)}},{"./vectortilefeature.js":4}]},{},[2])(2)})})();function an(a,b){b[b.length-1].rc[a.getAttribute("k")]=a.getAttribute("v")}var bn=[null],cn=N(bn,{nd:function(a,b){b[b.length-1].Eb.push(a.getAttribute("ref"))},tag:an});
|
|
390
|
-
N(bn,{node:function(a,b){var c=b[0],d=b[b.length-1],e=a.getAttribute("id"),f=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];d.Th[e]=f;var g=O({rc:{}},dn,a,b);xa(g.rc)||(f=new A(f),dk(f,!1,c),c=new J(f),c.pc(e),c.J(g.rc),d.features.push(c))},way:function(a,b){for(var c=b[0],d=a.getAttribute("id"),e=O({Eb:[],rc:{}},cn,a,b),f=b[b.length-1],g=[],h=0,k=e.Eb.length;h<k;h++)Za(g,f.Th[e.Eb[h]]);e.Eb[0]==e.Eb[e.Eb.length-1]?(h=new C(null),h.P("XY",g,[g.length])):(h=new P(null),h.P("XY",
|
|
391
|
-
g));dk(h,!1,c);c=new J(h);c.pc(d);c.J(e.rc);f.features.push(c)}});var dn=N(bn,{tag:an});function en(a){return a.getAttributeNS("http://www.w3.org/1999/xlink","href")};var fn=[null,"http://www.opengis.net/ows/1.1"];N(fn,{ServiceIdentification:K(function(a,b){return O({},gn,a,b)}),ServiceProvider:K(function(a,b){return O({},hn,a,b)}),OperationsMetadata:K(function(a,b){return O({},jn,a,b)})});
|
|
392
|
-
var kn=N(fn,{DeliveryPoint:K(U),City:K(U),AdministrativeArea:K(U),PostalCode:K(U),Country:K(U),ElectronicMailAddress:K(U)}),ln=N(fn,{Value:Qj(function(a){return U(a)})}),mn=N(fn,{AllowedValues:K(function(a,b){return O({},ln,a,b)})}),on=N(fn,{Phone:K(function(a,b){return O({},nn,a,b)}),Address:K(function(a,b){return O({},kn,a,b)})}),qn=N(fn,{HTTP:K(function(a,b){return O({},pn,a,b)})}),pn=N(fn,{Get:Qj(function(a,b){var c=en(a);return c?O({href:c},rn,a,b):void 0}),Post:void 0}),sn=N(fn,{DCP:K(function(a,
|
|
393
|
-
b){return O({},qn,a,b)})}),jn=N(fn,{Operation:function(a,b){var c=a.getAttribute("name"),d=O({},sn,a,b);d&&(b[b.length-1][c]=d)}}),nn=N(fn,{Voice:K(U),Facsimile:K(U)}),rn=N(fn,{Constraint:Qj(function(a,b){var c=a.getAttribute("name");return c?O({name:c},mn,a,b):void 0})}),tn=N(fn,{IndividualName:K(U),PositionName:K(U),ContactInfo:K(function(a,b){return O({},on,a,b)})}),gn=N(fn,{Title:K(U),ServiceTypeVersion:K(U),ServiceType:K(U)}),hn=N(fn,{ProviderName:K(U),ProviderSite:K(en),ServiceContact:K(function(a,
|
|
394
|
-
b){return O({},tn,a,b)})});K(yk.prototype.a,"bounds");var un={"http://www.opengis.net/wfs":{totalInserted:K(Fk),totalUpdated:K(Fk),totalDeleted:K(Fk)}},vn={"http://www.opengis.net/ogc":{FeatureId:Oj(function(a){return a.getAttribute("fid")})}},wn={"http://www.opengis.net/wfs":{Feature:function(a,b){Wj(vn,a,b)}}};K(function(a,b){return O({},un,a,b)},"transactionSummary");K(function(a,b){return O([],wn,a,b)},"insertIds");function xn(a){a=a?a:{};ak.call(this);this.c=void 0!==a.splitCollection?a.splitCollection:!1}u(xn,jl);function yn(a){a=a.R();return 0===a.length?"":a.join(" ")}function zn(a){a=a.R();for(var b=[],c=0,d=a.length;c<d;++c)b.push(a[c].join(" "));return b.join(",")}function An(a){var b=[];a=a.Kd();for(var c=0,d=a.length;c<d;++c)b.push("("+zn(a[c])+")");return b.join(",")}
|
|
395
|
-
function nl(a){var b=a.K(),c=(0,Bn[b])(a),b=b.toUpperCase();if(a instanceof x){a=a.V;var d="";if("XYZ"===a||"XYZM"===a)d+="Z";if("XYM"===a||"XYZM"===a)d+="M";a=d;0<a.length&&(b+=" "+a)}return 0===c.length?b+" EMPTY":b+"("+c+")"}
|
|
396
|
-
var Bn={Point:yn,LineString:zn,Polygon:An,MultiPoint:function(a){var b=[];a=a.ae();for(var c=0,d=a.length;c<d;++c)b.push("("+yn(a[c])+")");return b.join(",")},MultiLineString:function(a){var b=[];a=a.Dc();for(var c=0,d=a.length;c<d;++c)b.push("("+zn(a[c])+")");return b.join(",")},MultiPolygon:function(a){var b=[];a=a.Md();for(var c=0,d=a.length;c<d;++c)b.push("("+An(a[c])+")");return b.join(",")},GeometryCollection:function(a){var b=[];a=a.Id();for(var c=0,d=a.length;c<d;++c)b.push(nl(a[c]));return b.join(",")}};
|
|
397
|
-
function ll(a,b){var c;c=new Cn(new Dn(a));En(c);return(c=Fn(c))?dk(c,!1,b):null}function ml(a,b){var c=a.L();return c?nl(dk(c,!0,b)):""}function Dn(a){this.f=a;this.c=-1}
|
|
398
|
-
function Gn(a){var b=a.f.charAt(++a.c),c={position:a.c,value:b};if("("==b)c.type=2;else if(","==b)c.type=5;else if(")"==b)c.type=3;else if("0"<=b&&"9">=b||"."==b||"-"==b){c.type=4;var d,b=a.c,e=!1,f=!1;do{if("."==d)e=!0;else if("e"==d||"E"==d)f=!0;d=a.f.charAt(++a.c)}while("0"<=d&&"9">=d||"."==d&&(void 0===e||!e)||!f&&("e"==d||"E"==d)||f&&("-"==d||"+"==d));a=parseFloat(a.f.substring(b,a.c--));c.value=a}else if("a"<=b&&"z">=b||"A"<=b&&"Z">=b){c.type=1;b=a.c;do d=a.f.charAt(++a.c);while("a"<=d&&"z">=
|
|
399
|
-
d||"A"<=d&&"Z">=d);a=a.f.substring(b,a.c--).toUpperCase();c.value=a}else{if(" "==b||"\t"==b||"\r"==b||"\n"==b)return Gn(a);if(""===b)c.type=6;else throw Error("Unexpected character: "+b);}return c}function Cn(a){this.a=a;this.f="XY"}function En(a){a.c=Gn(a.a)}function Hn(a,b){var c=a.c.type==b;c&&En(a);return c}
|
|
400
|
-
function Fn(a){var b=a.c;if(Hn(a,1)){var b=b.value,c="XY",d=a.c;1==a.c.type&&(d=d.value,"Z"===d?c="XYZ":"M"===d?c="XYM":"ZM"===d&&(c="XYZM"),"XY"!==c&&En(a));a.f=c;if("GEOMETRYCOLLECTION"==b){a:{if(Hn(a,2)){b=[];do b.push(Fn(a));while(Hn(a,5));if(Hn(a,3)){a=b;break a}}else if(In(a)){a=[];break a}throw Error(Jn(a));}return new T(a)}d=Kn[b];c=Ln[b];if(!d||!c)throw Error("Invalid geometry type: "+b);b=d.call(a);return new c(b,a.f)}throw Error(Jn(a));}l=Cn.prototype;
|
|
401
|
-
l.ee=function(){if(Hn(this,2)){var a=Mn(this);if(Hn(this,3))return a}else if(In(this))return null;throw Error(Jn(this));};l.de=function(){if(Hn(this,2)){var a=Nn(this);if(Hn(this,3))return a}else if(In(this))return[];throw Error(Jn(this));};l.fe=function(){if(Hn(this,2)){var a=On(this);if(Hn(this,3))return a}else if(In(this))return[];throw Error(Jn(this));};
|
|
402
|
-
l.kj=function(){if(Hn(this,2)){var a;if(2==this.c.type)for(a=[this.ee()];Hn(this,5);)a.push(this.ee());else a=Nn(this);if(Hn(this,3))return a}else if(In(this))return[];throw Error(Jn(this));};l.jj=function(){if(Hn(this,2)){var a=On(this);if(Hn(this,3))return a}else if(In(this))return[];throw Error(Jn(this));};l.lj=function(){if(Hn(this,2)){for(var a=[this.fe()];Hn(this,5);)a.push(this.fe());if(Hn(this,3))return a}else if(In(this))return[];throw Error(Jn(this));};
|
|
403
|
-
function Mn(a){for(var b=[],c=a.f.length,d=0;d<c;++d){var e=a.c;if(Hn(a,4))b.push(e.value);else break}if(b.length==c)return b;throw Error(Jn(a));}function Nn(a){for(var b=[Mn(a)];Hn(a,5);)b.push(Mn(a));return b}function On(a){for(var b=[a.de()];Hn(a,5);)b.push(a.de());return b}function In(a){var b=1==a.c.type&&"EMPTY"==a.c.value;b&&En(a);return b}function Jn(a){return"Unexpected `"+a.c.value+"` at position "+a.c.position+" in `"+a.a.f+"`"}
|
|
404
|
-
var Ln={POINT:A,LINESTRING:P,POLYGON:C,MULTIPOINT:R,MULTILINESTRING:Q,MULTIPOLYGON:S},Kn={POINT:Cn.prototype.ee,LINESTRING:Cn.prototype.de,POLYGON:Cn.prototype.fe,MULTIPOINT:Cn.prototype.kj,MULTILINESTRING:Cn.prototype.jj,MULTIPOLYGON:Cn.prototype.lj};function Pn(a,b){return O({},Qn,a,b)}function Rn(a,b){return O({},Sn,a,b)}function Tn(a,b){var c=Pn(a,b);if(c){var d=[Gk(a.getAttribute("width")),Gk(a.getAttribute("height"))];c.size=d;return c}}function Un(a,b){return O([],Vn,a,b)}var Wn=[null,"http://www.opengis.net/wms"];N(Wn,{Service:K(function(a,b){return O({},Xn,a,b)}),Capability:K(function(a,b){return O({},Yn,a,b)})});
|
|
405
|
-
var Yn=N(Wn,{Request:K(function(a,b){return O({},Zn,a,b)}),Exception:K(function(a,b){return O([],$n,a,b)}),Layer:K(function(a,b){return O({},ao,a,b)})}),Xn=N(Wn,{Name:K(U),Title:K(U),Abstract:K(U),KeywordList:K(Un),OnlineResource:K(en),ContactInformation:K(function(a,b){return O({},bo,a,b)}),Fees:K(U),AccessConstraints:K(U),LayerLimit:K(Fk),MaxWidth:K(Fk),MaxHeight:K(Fk)}),bo=N(Wn,{ContactPersonPrimary:K(function(a,b){return O({},co,a,b)}),ContactPosition:K(U),ContactAddress:K(function(a,b){return O({},
|
|
406
|
-
eo,a,b)}),ContactVoiceTelephone:K(U),ContactFacsimileTelephone:K(U),ContactElectronicMailAddress:K(U)}),co=N(Wn,{ContactPerson:K(U),ContactOrganization:K(U)}),eo=N(Wn,{AddressType:K(U),Address:K(U),City:K(U),StateOrProvince:K(U),PostCode:K(U),Country:K(U)}),$n=N(Wn,{Format:Oj(U)}),ao=N(Wn,{Name:K(U),Title:K(U),Abstract:K(U),KeywordList:K(Un),CRS:Qj(U),EX_GeographicBoundingBox:K(function(a,b){var c=O({},fo,a,b);if(c){var d=c.westBoundLongitude,e=c.southBoundLatitude,f=c.eastBoundLongitude,c=c.northBoundLatitude;
|
|
407
|
-
return void 0===d||void 0===e||void 0===f||void 0===c?void 0:[d,e,f,c]}}),BoundingBox:Qj(function(a){var b=[Ek(a.getAttribute("minx")),Ek(a.getAttribute("miny")),Ek(a.getAttribute("maxx")),Ek(a.getAttribute("maxy"))],c=[Ek(a.getAttribute("resx")),Ek(a.getAttribute("resy"))];return{crs:a.getAttribute("CRS"),extent:b,res:c}}),Dimension:Qj(function(a){return{name:a.getAttribute("name"),units:a.getAttribute("units"),unitSymbol:a.getAttribute("unitSymbol"),"default":a.getAttribute("default"),multipleValues:Bk(a.getAttribute("multipleValues")),
|
|
408
|
-
nearestValue:Bk(a.getAttribute("nearestValue")),current:Bk(a.getAttribute("current")),values:U(a)}}),Attribution:K(function(a,b){return O({},go,a,b)}),AuthorityURL:Qj(function(a,b){var c=Pn(a,b);if(c)return c.name=a.getAttribute("name"),c}),Identifier:Qj(U),MetadataURL:Qj(function(a,b){var c=Pn(a,b);if(c)return c.type=a.getAttribute("type"),c}),DataURL:Qj(Pn),FeatureListURL:Qj(Pn),Style:Qj(function(a,b){return O({},ho,a,b)}),MinScaleDenominator:K(Dk),MaxScaleDenominator:K(Dk),Layer:Qj(function(a,
|
|
409
|
-
b){var c=b[b.length-1],d=O({},ao,a,b);if(d){var e=Bk(a.getAttribute("queryable"));void 0===e&&(e=c.queryable);d.queryable=void 0!==e?e:!1;e=Gk(a.getAttribute("cascaded"));void 0===e&&(e=c.cascaded);d.cascaded=e;e=Bk(a.getAttribute("opaque"));void 0===e&&(e=c.opaque);d.opaque=void 0!==e?e:!1;e=Bk(a.getAttribute("noSubsets"));void 0===e&&(e=c.noSubsets);d.noSubsets=void 0!==e?e:!1;(e=Ek(a.getAttribute("fixedWidth")))||(e=c.fixedWidth);d.fixedWidth=e;(e=Ek(a.getAttribute("fixedHeight")))||(e=c.fixedHeight);
|
|
410
|
-
d.fixedHeight=e;["Style","CRS","AuthorityURL"].forEach(function(a){a in c&&(d[a]=(d[a]||[]).concat(c[a]))});"EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" ").forEach(function(a){a in d||(d[a]=c[a])});return d}})}),go=N(Wn,{Title:K(U),OnlineResource:K(en),LogoURL:K(Tn)}),fo=N(Wn,{westBoundLongitude:K(Dk),eastBoundLongitude:K(Dk),southBoundLatitude:K(Dk),northBoundLatitude:K(Dk)}),Zn=N(Wn,{GetCapabilities:K(Rn),GetMap:K(Rn),GetFeatureInfo:K(Rn)}),
|
|
411
|
-
Sn=N(Wn,{Format:Qj(U),DCPType:Qj(function(a,b){return O({},io,a,b)})}),io=N(Wn,{HTTP:K(function(a,b){return O({},jo,a,b)})}),jo=N(Wn,{Get:K(Pn),Post:K(Pn)}),ho=N(Wn,{Name:K(U),Title:K(U),Abstract:K(U),LegendURL:Qj(Tn),StyleSheetURL:K(Pn),StyleURL:K(Pn)}),Qn=N(Wn,{Format:K(U),OnlineResource:K(en)}),Vn=N(Wn,{Keyword:Oj(U)});function ko(a){var b=U(a).split(" ");if(b&&2==b.length)return a=+b[0],b=+b[1],isNaN(a)||isNaN(b)?void 0:[a,b]}var lo=[null,"http://www.opengis.net/wmts/1.0"],mo=[null,"http://www.opengis.net/ows/1.1"];N(lo,{Contents:K(function(a,b){return O({},no,a,b)})});
|
|
412
|
-
var no=N(lo,{Layer:Qj(function(a,b){return O({},oo,a,b)}),TileMatrixSet:Qj(function(a,b){return O({},po,a,b)})}),oo=N(lo,{Style:Qj(function(a,b){var c=O({},qo,a,b);if(c){var d="true"===a.getAttribute("isDefault");c.isDefault=d;return c}}),Format:Qj(U),TileMatrixSetLink:Qj(function(a,b){return O({},ro,a,b)}),Dimension:Qj(function(a,b){return O({},so,a,b)}),ResourceURL:Qj(function(a){var b=a.getAttribute("format"),c=a.getAttribute("template");a=a.getAttribute("resourceType");var d={};b&&(d.format=b);
|
|
413
|
-
c&&(d.template=c);a&&(d.resourceType=a);return d})},N(mo,{Title:K(U),Abstract:K(U),WGS84BoundingBox:K(function(a,b){var c=O([],to,a,b);return 2!=c.length?void 0:wb(c)}),Identifier:K(U)})),qo=N(lo,{LegendURL:Qj(function(a){var b={};b.format=a.getAttribute("format");b.href=en(a);return b})},N(mo,{Title:K(U),Identifier:K(U)})),ro=N(lo,{TileMatrixSet:K(U),TileMatrixSetLimits:K(function(a,b){return O([],uo,a,b)})}),uo=N(lo,{TileMatrixLimits:Oj(function(a,b){return O({},vo,a,b)})}),vo=N(lo,{TileMatrix:K(U),
|
|
414
|
-
MinTileRow:K(Fk),MaxTileRow:K(Fk),MinTileCol:K(Fk),MaxTileCol:K(Fk)}),so=N(lo,{Default:K(U),Value:Qj(U)},N(mo,{Identifier:K(U)})),to=N(mo,{LowerCorner:Oj(ko),UpperCorner:Oj(ko)}),po=N(lo,{WellKnownScaleSet:K(U),TileMatrix:Qj(function(a,b){return O({},wo,a,b)})},N(mo,{SupportedCRS:K(U),Identifier:K(U)})),wo=N(lo,{TopLeftCorner:K(ko),ScaleDenominator:K(Dk),TileWidth:K(Fk),TileHeight:K(Fk),MatrixWidth:K(Fk),MatrixHeight:K(Fk)},N(mo,{Identifier:K(U)}));function V(a,b,c){x.call(this);this.le(a,b?b:0,c)}u(V,x);l=V.prototype;l.clone=function(){var a=new V(null);Mc(a,this.V,this.l.slice());a.u();return a};l.La=function(a,b,c,d){var e=this.l;a-=e[0];var f=b-e[1];b=a*a+f*f;if(b<d){if(0===b)for(d=0;d<this.A;++d)c[d]=e[d];else for(d=this.$d()/Math.sqrt(b),c[0]=e[0]+d*a,c[1]=e[1]+d*f,d=2;d<this.A;++d)c[d]=e[d];c.length=this.A;return b}return d};l.nb=function(a,b){var c=this.l,d=a-c[0],c=b-c[1];return d*d+c*c<=xo(this)};
|
|
415
|
-
l.fc=function(){return this.l.slice(0,this.A)};l.zc=function(a){var b=this.l,c=b[this.A]-b[0];return Hb(b[0]-c,b[1]-c,b[0]+c,b[1]+c,a)};l.$d=function(){return Math.sqrt(xo(this))};function xo(a){var b=a.l[a.A]-a.l[0];a=a.l[a.A+1]-a.l[1];return b*b+a*a}l.K=function(){return"Circle"};l.sa=function(a){var b=this.F();return $b(a,b)?(b=this.fc(),a[0]<=b[0]&&a[2]>=b[0]||a[1]<=b[1]&&a[3]>=b[1]?!0:Ob(a,this.Fa,this)):!1};
|
|
416
|
-
l.ii=function(a){var b=this.A,c=a.slice();c[b]=c[0]+(this.l[b]-this.l[0]);var d;for(d=1;d<b;++d)c[b+d]=a[d];Mc(this,this.V,c);this.u()};l.le=function(a,b,c){if(a){Nc(this,c,a,0);this.l||(this.l=[]);c=this.l;a=Vc(c,a);c[a++]=c[0]+b;var d;b=1;for(d=this.A;b<d;++b)c[a++]=c[b];c.length=a}else Mc(this,"XY",null);this.u()};l.ji=function(a){this.l[this.A]=this.l[0]+a;this.u()};function yo(a,b,c,d,e){cf.call(this,a,b);this.g=c;this.a=new Image;null!==d&&(this.a.crossOrigin=d);this.b=null;this.i=e}u(yo,cf);l=yo.prototype;l.na=function(){1==this.state&&zo(this);this.f&&Ja(this.f);this.state=5;this.u();cf.prototype.na.call(this)};l.Lc=function(){return this.a};l.getKey=function(){return this.g};l.Zh=function(){this.state=3;zo(this);this.u()};l.$h=function(){this.state=this.a.naturalWidth&&this.a.naturalHeight?2:4;zo(this);this.u()};
|
|
417
|
-
l.load=function(){if(0==this.state||3==this.state)this.state=1,this.u(),this.b=[w(this.a,"error",this.Zh,this,!0),w(this.a,"load",this.$h,this,!0)],this.i(this,this.g)};function zo(a){a.b.forEach(Ba);a.b=null};function Ao(){return[[-Infinity,-Infinity,Infinity,Infinity]]};function W(a){a=a||{};Si.call(this,{attributions:a.attributions,logo:a.logo,projection:void 0,state:"ready",wrapX:void 0!==a.wrapX?a.wrapX:!0});this.G=ba;this.C=a.format;this.Z=void 0==a.overlaps?!0:a.overlaps;this.I=a.url;void 0!==a.loader?this.G=a.loader:void 0!==this.I&&(ha(this.C,7),this.G=Zj(this.I,this.C));this.ja=void 0!==a.strategy?a.strategy:Ao;var b=void 0!==a.useSpatialIndex?a.useSpatialIndex:!0;this.a=b?new Bi:null;this.H=new Bi;this.i={};this.j={};this.s={};this.v={};this.b=null;var c,
|
|
418
|
-
d;a.features instanceof E?(c=a.features,d=c.a):Array.isArray(a.features)&&(d=a.features);b||void 0!==c||(c=new E(d));void 0!==d&&Bo(this,d);void 0!==c&&Co(this,c)}u(W,Si);l=W.prototype;l.Vb=function(a){var b=ea(a).toString();if(Do(this,b,a)){Eo(this,b,a);var c=a.L();c?(b=c.F(),this.a&&this.a.ua(b,a)):this.i[b]=a;this.c(new Fo(Go,a))}this.u()};function Eo(a,b,c){a.v[b]=[w(c,"change",a.zf,a),w(c,Wa,a.zf,a)]}
|
|
419
|
-
function Do(a,b,c){var d=!0,e=c.b;void 0!==e?e.toString()in a.j?d=!1:a.j[e.toString()]=c:(ha(!(b in a.s),30),a.s[b]=c);return d}l.xc=function(a){Bo(this,a);this.u()};function Bo(a,b){var c,d,e,f,g=[],h=[],k=[];d=0;for(e=b.length;d<e;d++)f=b[d],c=ea(f).toString(),Do(a,c,f)&&h.push(f);d=0;for(e=h.length;d<e;d++){f=h[d];c=ea(f).toString();Eo(a,c,f);var m=f.L();m?(c=m.F(),g.push(c),k.push(f)):a.i[c]=f}a.a&&a.a.load(g,k);d=0;for(e=h.length;d<e;d++)a.c(new Fo(Go,h[d]))}
|
|
420
|
-
function Co(a,b){var c=!1;w(a,Go,function(a){c||(c=!0,b.push(a.feature),c=!1)});w(a,Ho,function(a){c||(c=!0,b.remove(a.feature),c=!1)});w(b,Ud,function(a){c||(c=!0,this.Vb(a.element),c=!1)},a);w(b,Vd,function(a){c||(c=!0,this.qb(a.element),c=!1)},a);a.b=b}
|
|
421
|
-
l.clear=function(a){if(a){for(var b in this.v)this.v[b].forEach(Ba);this.b||(this.v={},this.j={},this.s={})}else if(this.a){this.a.forEach(this.ke,this);for(var c in this.i)this.ke(this.i[c])}this.b&&this.b.clear();this.a&&this.a.clear();this.H.clear();this.i={};this.c(new Fo(Io));this.u()};l.Ne=function(a,b){if(this.a)return this.a.forEach(a,b);if(this.b)return this.b.forEach(a,b)};function Jo(a,b,c){a.ib([b[0],b[1],b[0],b[1]],function(a){if(a.L().Fa(b))return c.call(void 0,a)})}
|
|
422
|
-
l.ib=function(a,b,c){if(this.a)return Gi(this.a,a,b,c);if(this.b)return this.b.forEach(b,c)};l.Oe=function(a,b,c){return this.ib(a,function(d){if(d.L().sa(a)&&(d=b.call(c,d)))return d})};l.Ue=function(){return this.b};l.wf=function(){var a;this.b?a=this.b.a:this.a&&(a=Di(this.a),xa(this.i)||Za(a,wa(this.i)));return a};l.Te=function(a){var b=[];Jo(this,a,function(a){b.push(a)});return b};l.Ve=function(a){return Ei(this.a,a)};
|
|
423
|
-
l.Qe=function(a,b){var c=a[0],d=a[1],e=null,f=[NaN,NaN],g=Infinity,h=[-Infinity,-Infinity,Infinity,Infinity],k=b?b:cc;Gi(this.a,h,function(a){if(k(a)){var b=a.L(),p=g;g=b.La(c,d,f,g);g<p&&(e=a,a=Math.sqrt(g),h[0]=c-a,h[1]=d-a,h[2]=c+a,h[3]=d+a)}});return e};l.F=function(){return this.a.F()};l.Se=function(a){a=this.j[a.toString()];return void 0!==a?a:null};l.xf=function(){return this.C};l.yf=function(){return this.I};
|
|
424
|
-
l.zf=function(a){a=a.target;var b=ea(a).toString(),c=a.L();c?(c=c.F(),b in this.i?(delete this.i[b],this.a&&this.a.ua(c,a)):this.a&&Ci(this.a,c,a)):b in this.i||(this.a&&this.a.remove(a),this.i[b]=a);c=a.b;void 0!==c?(c=c.toString(),b in this.s?(delete this.s[b],this.j[c]=a):this.j[c]!==a&&(Ko(this,a),this.j[c]=a)):b in this.s||(Ko(this,a),this.s[b]=a);this.u();this.c(new Fo(Lo,a))};
|
|
425
|
-
function wi(a,b,c,d){var e=a.H;b=a.ja(b,c);var f,g;f=0;for(g=b.length;f<g;++f){var h=b[f];Gi(e,h,function(a){return Fb(a.extent,h)})||(a.G.call(a,h,c,d),e.ua(h,{extent:h.slice()}))}}l.qb=function(a){var b=ea(a).toString();b in this.i?delete this.i[b]:this.a&&this.a.remove(a);this.ke(a);this.u()};l.ke=function(a){var b=ea(a).toString();this.v[b].forEach(Ba);delete this.v[b];var c=a.b;void 0!==c?delete this.j[c.toString()]:delete this.s[b];this.c(new Fo(Ho,a))};
|
|
426
|
-
function Ko(a,b){for(var c in a.j)if(a.j[c]===b){delete a.j[c];break}}function Fo(a,b){Ka.call(this,a);this.feature=b}u(Fo,Ka);var Go="addfeature",Lo="changefeature",Io="clear",Ho="removefeature";function Mo(a){Af.call(this,{handleDownEvent:No,handleEvent:Oo,handleUpEvent:Po});this.ma=null;this.o=!1;this.Ba=a.source?a.source:null;this.za=a.features?a.features:null;this.wg=a.snapTolerance?a.snapTolerance:12;this.T=a.type;this.b=Qo(this.T);this.xa=a.minPoints?a.minPoints:this.b===Ro?3:2;this.ta=a.maxPoints?a.maxPoints:Infinity;this.$a=a.finishCondition?a.finishCondition:cc;var b=a.geometryFunction;if(!b)if("Circle"===this.T)b=function(a,b){var c=b?b:new V([NaN,NaN]);c.le(a[0],Math.sqrt(qb(a[0],
|
|
427
|
-
a[1])));return c};else{var c,d=this.b;d===So?c=A:d===To?c=P:d===Ro&&(c=C);b=function(a,b){var g=b;g?d===Ro?g.ea([a[0].concat([a[0][0]])]):g.ea(a):g=new c(a);return g}}this.B=b;this.H=this.v=this.a=this.C=this.g=this.j=null;this.Ta=a.clickTolerance?a.clickTolerance*a.clickTolerance:36;this.qa=new H({source:new W({useSpatialIndex:!1,wrapX:a.wrapX?a.wrapX:!1}),style:a.style?a.style:Uo()});this.Aa=a.geometryName;this.ug=a.condition?a.condition:vf;this.Tb=a.freehand?cc:a.freehandCondition?a.freehandCondition:
|
|
428
|
-
wf;w(this,Ta(lf),this.Vf,this)}u(Mo,Af);function Uo(){var a=sh();return function(b){return a[b.L().K()]}}l=Mo.prototype;l.setMap=function(a){Af.prototype.setMap.call(this,a);this.Vf()};function Oo(a){this.o=this.b!==So&&this.Tb(a);var b=!this.o;this.o&&"pointerdrag"===a.type&&null!==this.g?(Vo(this,a),b=!1):"pointermove"===a.type?b=Wo(this,a):"dblclick"===a.type&&(b=!1);return Bf.call(this,a)&&b}
|
|
429
|
-
function No(a){return this.o?(this.ma=a.pixel,this.j||Xo(this,a),!0):this.ug(a)?(this.ma=a.pixel,!0):!1}function Po(a){var b=this.ma,c=a.pixel,d=b[0]-c[0],b=b[1]-c[1],d=d*d+b*b,b=!0,c=this.b===Yo;(this.o?d>this.Ta:d<=this.Ta)?(Wo(this,a),this.j?this.o||c?this.bc():Zo(this,a)?this.$a(a)&&this.bc():Vo(this,a):(Xo(this,a),this.b===So&&this.bc()),b=!1):c&&(this.j=null);return b}
|
|
430
|
-
function Wo(a,b){if(a.j){var c=b.coordinate,d=a.g.L(),e;a.b===So?e=a.a:a.b===Ro?(e=a.a[0],e=e[e.length-1],Zo(a,b)&&(c=a.j.slice())):(e=a.a,e=e[e.length-1]);e[0]=c[0];e[1]=c[1];a.B(a.a,d);a.C&&a.C.L().ea(c);d instanceof C&&a.b!==Ro?(a.v||(a.v=new J(new P(null))),d=d.Ye(0),c=a.v.L(),c.P(d.V,d.l)):a.H&&(c=a.v.L(),c.ea(a.H));$o(a)}else c=b.coordinate.slice(),a.C?a.C.L().ea(c):(a.C=new J(new A(c)),$o(a));return!0}
|
|
431
|
-
function Zo(a,b){var c=!1;if(a.g){var d=!1,e=[a.j];a.b===To?d=a.a.length>a.xa:a.b===Ro&&(d=a.a[0].length>a.xa,e=[a.a[0][0],a.a[0][a.a[0].length-2]]);if(d)for(var d=b.map,f=0,g=e.length;f<g;f++){var h=e[f],k=d.Ra(h),m=b.pixel,c=m[0]-k[0],k=m[1]-k[1];if(c=Math.sqrt(c*c+k*k)<=(a.o?1:a.wg)){a.j=h;break}}}return c}
|
|
432
|
-
function Xo(a,b){var c=b.coordinate;a.j=c;a.b===So?a.a=c.slice():a.b===Ro?(a.a=[[c.slice(),c.slice()]],a.H=a.a[0]):(a.a=[c.slice(),c.slice()],a.b===Yo&&(a.H=a.a));a.H&&(a.v=new J(new P(a.H)));c=a.B(a.a);a.g=new J;a.Aa&&a.g.oc(a.Aa);a.g.Ga(c);$o(a);a.c(new ap(bp,a.g))}
|
|
433
|
-
function Vo(a,b){var c=b.coordinate,d=a.g.L(),e,f;a.b===To?(a.j=c.slice(),f=a.a,f.length>=a.ta&&(a.o?f.pop():e=!0),f.push(c.slice()),a.B(f,d)):a.b===Ro&&(f=a.a[0],f.length>=a.ta&&(a.o?f.pop():e=!0),f.push(c.slice()),e&&(a.j=f[0]),a.B(a.a,d));$o(a);e&&a.bc()}l.Cj=function(){var a=this.g.L(),b,c;this.b===To?(b=this.a,b.splice(-2,1),this.B(b,a)):this.b===Ro&&(b=this.a[0],b.splice(-2,1),c=this.v.L(),c.ea(b),this.B(this.a,a));0===b.length&&(this.j=null);$o(this)};
|
|
434
|
-
l.bc=function(){var a=cp(this),b=this.a,c=a.L();this.b===To?(b.pop(),this.B(b,c)):this.b===Ro&&(b[0].pop(),this.B(b,c),b=c.R());"MultiPoint"===this.T?a.Ga(new R([b])):"MultiLineString"===this.T?a.Ga(new Q([b])):"MultiPolygon"===this.T&&a.Ga(new S([b]));this.c(new ap(dp,a));this.za&&this.za.push(a);this.Ba&&this.Ba.Vb(a)};function cp(a){a.j=null;var b=a.g;b&&(a.g=null,a.C=null,a.v=null,a.qa.ka().clear(!0));return b}
|
|
435
|
-
l.ri=function(a){var b=a.L();this.g=a;this.a=b.R();a=this.a[this.a.length-1];this.j=a.slice();this.a.push(a.slice());$o(this);this.c(new ap(bp,this.g))};l.Qb=dc;function $o(a){var b=[];a.g&&b.push(a.g);a.v&&b.push(a.v);a.C&&b.push(a.C);a=a.qa.ka();a.clear(!0);a.xc(b)}l.Vf=function(){var a=this.s,b=this.I();a&&b||cp(this);this.qa.setMap(b?a:null)};
|
|
436
|
-
function Qo(a){var b;"Point"===a||"MultiPoint"===a?b=So:"LineString"===a||"MultiLineString"===a?b=To:"Polygon"===a||"MultiPolygon"===a?b=Ro:"Circle"===a&&(b=Yo);return b}var So="Point",To="LineString",Ro="Polygon",Yo="Circle";function ap(a,b){Ka.call(this,a);this.feature=b}u(ap,Ka);var bp="drawstart",dp="drawend";function ep(a){Af.call(this,{handleDownEvent:fp,handleDragEvent:gp,handleEvent:hp,handleUpEvent:ip});this.Ba=a.condition?a.condition:zf;this.za=function(a){return vf(a)&&uf(a)};this.Aa=a.deleteCondition?a.deleteCondition:this.za;this.xa=this.a=null;this.qa=[0,0];this.v=this.C=!1;this.b=new Bi;this.ma=void 0!==a.pixelTolerance?a.pixelTolerance:10;this.j=this.ta=!1;this.g=[];this.B=new H({source:new W({useSpatialIndex:!1,wrapX:!!a.wrapX}),style:a.style?a.style:jp(),updateWhileAnimating:!0,updateWhileInteracting:!0});
|
|
437
|
-
this.T={Point:this.yi,LineString:this.sf,LinearRing:this.sf,Polygon:this.zi,MultiPoint:this.wi,MultiLineString:this.vi,MultiPolygon:this.xi,GeometryCollection:this.ui};this.o=a.features;this.o.forEach(this.be,this);w(this.o,Ud,this.si,this);w(this.o,Vd,this.ti,this);this.H=null}u(ep,Af);l=ep.prototype;l.be=function(a){var b=a.L();b&&b.K()in this.T&&this.T[b.K()].call(this,a,b);(b=this.s)&&b.b&&kp(this,this.qa,b);w(a,"change",this.rf,this)};function lp(a,b){a.v||(a.v=!0,a.c(new mp(np,a.o,b)))}
|
|
438
|
-
function op(a,b){pp(a,b);a.a&&0===a.o.cb()&&(a.B.ka().qb(a.a),a.a=null);Ha(b,"change",a.rf,a)}function pp(a,b){var c=a.b,d=[];c.forEach(function(a){b===a.feature&&d.push(a)});for(var e=d.length-1;0<=e;--e)c.remove(d[e])}l.ob=function(a){this.a&&!a&&(this.B.ka().qb(this.a),this.a=null);Af.prototype.ob.call(this,a)};l.setMap=function(a){this.B.setMap(a);Af.prototype.setMap.call(this,a)};l.si=function(a){this.be(a.element)};l.rf=function(a){this.j||(a=a.target,op(this,a),this.be(a))};
|
|
439
|
-
l.ti=function(a){op(this,a.element)};l.yi=function(a,b){var c=b.R(),c={feature:a,geometry:b,oa:[c,c]};this.b.ua(b.F(),c)};l.wi=function(a,b){var c=b.R(),d,e,f;e=0;for(f=c.length;e<f;++e)d=c[e],d={feature:a,geometry:b,depth:[e],index:e,oa:[d,d]},this.b.ua(b.F(),d)};l.sf=function(a,b){var c=b.R(),d,e,f,g;d=0;for(e=c.length-1;d<e;++d)f=c.slice(d,d+2),g={feature:a,geometry:b,index:d,oa:f},this.b.ua(wb(f),g)};
|
|
440
|
-
l.vi=function(a,b){var c=b.R(),d,e,f,g,h,k,m;g=0;for(h=c.length;g<h;++g)for(d=c[g],e=0,f=d.length-1;e<f;++e)k=d.slice(e,e+2),m={feature:a,geometry:b,depth:[g],index:e,oa:k},this.b.ua(wb(k),m)};l.zi=function(a,b){var c=b.R(),d,e,f,g,h,k,m;g=0;for(h=c.length;g<h;++g)for(d=c[g],e=0,f=d.length-1;e<f;++e)k=d.slice(e,e+2),m={feature:a,geometry:b,depth:[g],index:e,oa:k},this.b.ua(wb(k),m)};
|
|
441
|
-
l.xi=function(a,b){var c=b.R(),d,e,f,g,h,k,m,n,p,q;k=0;for(m=c.length;k<m;++k)for(n=c[k],g=0,h=n.length;g<h;++g)for(d=n[g],e=0,f=d.length-1;e<f;++e)p=d.slice(e,e+2),q={feature:a,geometry:b,depth:[g,k],index:e,oa:p},this.b.ua(wb(p),q)};l.ui=function(a,b){var c,d=b.b;for(c=0;c<d.length;++c)this.T[d[c].K()].call(this,a,d[c])};function qp(a,b){var c=a.a;c?c.L().ea(b):(c=new J(new A(b)),a.a=c,a.B.ka().Vb(c))}function rp(a,b){return a.index-b.index}
|
|
442
|
-
function fp(a){if(!this.Ba(a))return!1;kp(this,a.pixel,a.map);this.g.length=0;this.v=!1;var b=this.a;if(b){var c=[],b=b.L().R(),d=wb([b]),d=Ei(this.b,d),e={};d.sort(rp);for(var f=0,g=d.length;f<g;++f){var h=d[f],k=h.oa,m=ea(h.feature),n=h.depth;n&&(m+="-"+n.join("-"));e[m]||(e[m]=Array(2));if(ob(k[0],b)&&!e[m][0])this.g.push([h,0]),e[m][0]=h;else if(ob(k[1],b)&&!e[m][1]){if("LineString"!==h.geometry.K()&&"MultiLineString"!==h.geometry.K()||!e[m][0]||0!==e[m][0].index)this.g.push([h,1]),e[m][1]=h}else ea(k)in
|
|
443
|
-
this.xa&&!e[m][0]&&!e[m][1]&&c.push([h,b])}c.length&&lp(this,a);for(a=c.length-1;0<=a;--a)this.Bh.apply(this,c[a])}return!!this.a}
|
|
444
|
-
function gp(a){this.C=!1;lp(this,a);a=a.coordinate;for(var b=0,c=this.g.length;b<c;++b){for(var d=this.g[b],e=d[0],f=e.depth,g=e.geometry,h=g.R(),k=e.oa,d=d[1];a.length<g.A;)a.push(k[d][a.length]);switch(g.K()){case "Point":h=a;k[0]=k[1]=a;break;case "MultiPoint":h[e.index]=a;k[0]=k[1]=a;break;case "LineString":h[e.index+d]=a;k[d]=a;break;case "MultiLineString":h[f[0]][e.index+d]=a;k[d]=a;break;case "Polygon":h[f[0]][e.index+d]=a;k[d]=a;break;case "MultiPolygon":h[f[1]][f[0]][e.index+d]=a,k[d]=a}e=
|
|
445
|
-
g;this.j=!0;e.ea(h);this.j=!1}qp(this,a)}function ip(a){for(var b,c=this.g.length-1;0<=c;--c)b=this.g[c][0],Ci(this.b,wb(b.oa),b);this.v&&(this.c(new mp(sp,this.o,a)),this.v=!1);return!1}function hp(a){if(!(a instanceof oe))return!0;this.H=a;var b;vd(a.map.$())[1]||"pointermove"!=a.type||this.G||(this.qa=a.pixel,kp(this,a.pixel,a.map));this.a&&this.Aa(a)&&(b="singleclick"==a.type&&this.C?!0:this.Jf());"singleclick"==a.type&&(this.C=!1);return Bf.call(this,a)&&!b}
|
|
446
|
-
function kp(a,b,c){function d(a,b){return qb(e,nb(e,a.oa))-qb(e,nb(e,b.oa))}var e=c.Na(b),f=Ab(Jb(e),c.$().va()*a.ma),f=Ei(a.b,f);if(0<f.length){f.sort(d);var g=f[0].oa,h=nb(e,g),k=c.Ra(h);if(Math.sqrt(qb(b,k))<=a.ma){b=c.Ra(g[0]);c=c.Ra(g[1]);b=qb(k,b);k=qb(k,c);a.ta=Math.sqrt(Math.min(b,k))<=a.ma;a.ta&&(h=b>k?g[1]:g[0]);qp(a,h);h={};h[ea(g)]=!0;c=1;for(b=f.length;c<b;++c)if(k=f[c].oa,ob(g[0],k[0])&&ob(g[1],k[1])||ob(g[0],k[1])&&ob(g[1],k[0]))h[ea(k)]=!0;else break;a.xa=h;return}}a.a&&(a.B.ka().qb(a.a),
|
|
447
|
-
a.a=null)}
|
|
448
|
-
l.Bh=function(a,b){for(var c=a.oa,d=a.feature,e=a.geometry,f=a.depth,g=a.index,h;b.length<e.A;)b.push(0);switch(e.K()){case "MultiLineString":h=e.R();h[f[0]].splice(g+1,0,b);break;case "Polygon":h=e.R();h[f[0]].splice(g+1,0,b);break;case "MultiPolygon":h=e.R();h[f[1]][f[0]].splice(g+1,0,b);break;case "LineString":h=e.R();h.splice(g+1,0,b);break;default:return}this.j=!0;e.ea(h);this.j=!1;h=this.b;h.remove(a);tp(this,e,g,f,1);var k={oa:[c[0],b],feature:d,geometry:e,depth:f,index:g};h.ua(wb(k.oa),k);
|
|
449
|
-
this.g.push([k,1]);c={oa:[b,c[1]],feature:d,geometry:e,depth:f,index:g+1};h.ua(wb(c.oa),c);this.g.push([c,0]);this.C=!0};
|
|
450
|
-
l.Jf=function(){if(this.H&&"pointerdrag"!=this.H.type){var a=this.H;lp(this,a);var b=this.g,c={},d,e,f,g,h,k,m,n,p;for(h=b.length-1;0<=h;--h)g=b[h],n=g[0],p=ea(n.feature),n.depth&&(p+="-"+n.depth.join("-")),p in c||(c[p]={}),0===g[1]?(c[p].right=n,c[p].index=n.index):1==g[1]&&(c[p].left=n,c[p].index=n.index+1);for(p in c){m=c[p].right;h=c[p].left;g=c[p].index;k=g-1;n=void 0!==h?h:m;0>k&&(k=0);b=n.geometry;e=f=b.R();d=!1;switch(b.K()){case "MultiLineString":2<f[n.depth[0]].length&&(f[n.depth[0]].splice(g,
|
|
451
|
-
1),d=!0);break;case "LineString":2<f.length&&(f.splice(g,1),d=!0);break;case "MultiPolygon":e=e[n.depth[1]];case "Polygon":e=e[n.depth[0]],4<e.length&&(g==e.length-1&&(g=0),e.splice(g,1),d=!0,0===g&&(e.pop(),e.push(e[0]),k=e.length-1))}d&&(d=b,this.j=!0,d.ea(f),this.j=!1,f=[],void 0!==h&&(this.b.remove(h),f.push(h.oa[0])),void 0!==m&&(this.b.remove(m),f.push(m.oa[1])),void 0!==h&&void 0!==m&&(h={depth:n.depth,feature:n.feature,geometry:n.geometry,index:k,oa:f},this.b.ua(wb(h.oa),h)),tp(this,b,g,n.depth,
|
|
452
|
-
-1),this.a&&(this.B.ka().qb(this.a),this.a=null))}this.c(new mp(sp,this.o,a));this.v=!1;return!0}return!1};function tp(a,b,c,d,e){Gi(a.b,b.F(),function(a){a.geometry===b&&(void 0===d||void 0===a.depth||ab(a.depth,d))&&a.index>c&&(a.index+=e)})}function jp(){var a=sh();return function(){return a.Point}}function mp(a,b,c){Ka.call(this,a);this.features=b;this.mapBrowserEvent=c}u(mp,Ka);var np="modifystart",sp="modifyend";function up(a){kf.call(this,{handleEvent:vp});a=a?a:{};this.B=a.condition?a.condition:uf;this.v=a.addCondition?a.addCondition:dc;this.C=a.removeCondition?a.removeCondition:dc;this.G=a.toggleCondition?a.toggleCondition:wf;this.j=a.multi?a.multi:!1;this.i=a.filter?a.filter:cc;this.g=a.hitTolerance?a.hitTolerance:0;this.b=new H({source:new W({useSpatialIndex:!1,features:a.features,wrapX:a.wrapX}),style:a.style?a.style:wp(),updateWhileAnimating:!0,updateWhileInteracting:!0});if(a.layers)if("function"===
|
|
453
|
-
typeof a.layers)a=a.layers;else{var b=a.layers;a=function(a){return 0<=b.indexOf(a)}}else a=cc;this.o=a;this.a={};a=this.b.ka().b;w(a,Ud,this.Ai,this);w(a,Vd,this.Ei,this)}u(up,kf);l=up.prototype;l.Bi=function(){return this.b.ka().b};l.Ci=function(){return this.g};l.Di=function(a){a=ea(a);return this.a[a]};
|
|
454
|
-
function vp(a){if(!this.B(a))return!0;var b=this.v(a),c=this.C(a),d=this.G(a),e=!b&&!c&&!d,f=a.map,g=this.b.ka().b,h=[],k=[];if(e){va(this.a);f.Ed(a.pixel,function(a,b){if(this.i(a,b)){k.push(a);var c=ea(a);this.a[c]=b;return!this.j}}.bind(this),{layerFilter:this.o,hitTolerance:this.g});for(e=g.cb()-1;0<=e;--e){var f=g.item(e),m=k.indexOf(f);-1<m?k.splice(m,1):(g.remove(f),h.push(f))}0!==k.length&&g.Xd(k)}else{f.Ed(a.pixel,function(a,e){if(this.i(a,e)){if(!b&&!d||0<=g.a.indexOf(a))(c||d)&&0<=g.a.indexOf(a)&&
|
|
455
|
-
(h.push(a),f=ea(a),delete this.a[f]);else{k.push(a);var f=ea(a);this.a[f]=e}return!this.j}}.bind(this),{layerFilter:this.o,hitTolerance:this.g});for(e=h.length-1;0<=e;--e)g.remove(h[e]);g.Xd(k)}(0<k.length||0<h.length)&&this.c(new xp(yp,k,h,a));return tf(a)}l.Fi=function(a){this.g=a};l.setMap=function(a){var b=this.s,c=this.b.ka().b;b&&c.forEach(b.Uf,b);kf.prototype.setMap.call(this,a);this.b.setMap(a);a&&c.forEach(a.Qf,a)};
|
|
456
|
-
function wp(){var a=sh();Za(a.Polygon,a.LineString);Za(a.GeometryCollection,a.LineString);return function(b){return b.L()?a[b.L().K()]:null}}l.Ai=function(a){var b=this.s;b&&b.Qf(a.element)};l.Ei=function(a){var b=this.s;b&&b.Uf(a.element)};function xp(a,b,c,d){Ka.call(this,a);this.selected=b;this.deselected=c;this.mapBrowserEvent=d}u(xp,Ka);var yp="select";function zp(a,b,c){function d(){delete window[f];e.parentNode.removeChild(e)}var e=document.createElement("script"),f="olc_"+ea(b);e.async=!0;e.src=a+(-1==a.indexOf("?")?"?":"&")+"callback="+f;var g=setTimeout(function(){d();c&&c()},1E4);window[f]=function(a){clearTimeout(g);d();b(a)};document.getElementsByTagName("head")[0].appendChild(e)};function Ap(a,b,c,d,e,f,g,h,k,m,n){cf.call(this,e,0);this.B=void 0!==n?n:!1;this.v=g;this.s=h;this.o=null;this.b=b;this.i=d;this.j=f?f:e;this.a=[];this.Rb=null;this.g=0;f=d.ab(this.j);h=this.i.F();e=this.b.F();f=h?Zb(f,h):f;if(0===Tb(f))this.state=4;else if((h=a.F())&&(e?e=Zb(e,h):e=h),d=d.Ea(this.j[0]),d=Li(a,c,Xb(f),d),!isFinite(d)||0>=d)this.state=4;else if(this.D=new Oi(a,c,f,e,d*(void 0!==m?m:.5)),0===this.D.b.length)this.state=4;else if(this.g=b.ec(d),c=Qi(this.D),e&&(a.c?(c[1]=ja(c[1],e[1],
|
|
457
|
-
e[3]),c[3]=ja(c[3],e[1],e[3])):c=Zb(c,e)),Tb(c)){a=Id(b,c,this.g);for(b=a.M;b<=a.O;b++)for(c=a.S;c<=a.W;c++)(m=k(this.g,b,c,g))&&this.a.push(m);0===this.a.length&&(this.state=4)}else this.state=4}u(Ap,cf);Ap.prototype.na=function(){1==this.state&&(this.Rb.forEach(Ba),this.Rb=null);cf.prototype.na.call(this)};Ap.prototype.Lc=function(){return this.o};
|
|
458
|
-
Ap.prototype.nc=function(){var a=[];this.a.forEach(function(b){b&&2==b.U()&&a.push({extent:this.b.ab(b.Sa),image:b.Lc()})},this);this.a.length=0;if(0===a.length)this.state=3;else{var b=this.j[0],c=this.i.bb(b),d="number"===typeof c?c:c[0],c="number"===typeof c?c:c[1],b=this.i.Ea(b),e=this.b.Ea(this.g),f=this.i.ab(this.j);this.o=Ni(d,c,this.v,e,this.b.F(),b,f,this.D,a,this.s,this.B);this.state=2}this.u()};
|
|
459
|
-
Ap.prototype.load=function(){if(0==this.state){this.state=1;this.u();var a=0;this.Rb=[];this.a.forEach(function(b){var c=b.U();if(0==c||1==c){a++;var d;d=w(b,"change",function(){var c=b.U();if(2==c||3==c||4==c)Ba(d),a--,0===a&&(this.Rb.forEach(Ba),this.Rb=null,this.nc())},this);this.Rb.push(d)}},this);this.a.forEach(function(a){0==a.U()&&a.load()});0===a&&setTimeout(this.nc.bind(this),0)}};function Bp(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=b.f?b.f[g[0]]:null;ha(a,55);return(a.W-a.S+1+g[2]).toString()})}}function Cp(a,b){for(var c=a.length,d=Array(c),e=0;e<c;++e)d[e]=Bp(a[e],b);return Dp(d)}function Dp(a){return 1===a.length?a[0]:function(b,c,d){if(b)return a[ma((b[1]<<b[0])+b[2],a.length)](b,c,d)}}
|
|
460
|
-
function Ep(){};function Fp(a){dj.call(this);this.g=void 0!==a?a:2048}u(Fp,dj);function Gp(a){return a.b>a.g}Fp.prototype.xb=function(a){for(var b,c;Gp(this);){b=this.c.Sb;c=b.Sa[0].toString();var d;if(d=c in a)b=b.Sa,d=Cd(a[c],b[1],b[2]);if(d)break;else Ja(this.pop())}};function Hp(a){Si.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state,wrapX:a.wrapX});this.ja=void 0!==a.opaque?a.opaque:!1;this.G=void 0!==a.tilePixelRatio?a.tilePixelRatio:1;this.tileGrid=void 0!==a.tileGrid?a.tileGrid:null;this.a=new Fp(a.cacheSize);this.Z=[0,0];this.Db=""}u(Hp,Si);l=Hp.prototype;l.vf=function(){return Gp(this.a)};l.xb=function(a,b){var c=this.dc(a);c&&c.xb(b)};
|
|
461
|
-
function Hh(a,b,c,d,e){b=a.dc(b);if(!b)return!1;for(var f=!0,g,h,k=d.M;k<=d.O;++k)for(var m=d.S;m<=d.W;++m)g=a.Cc(c,k,m),h=!1,b.a.hasOwnProperty(g)&&(g=b.get(g),(h=2===g.U())&&(h=!1!==e(g))),h||(f=!1);return f}l.We=function(){return 0};l.getKey=function(){return this.Db};l.Cc=function(a,b,c){return a+"/"+b+"/"+c};l.Ld=function(){return this.ja};l.Qd=function(){return this.tileGrid};l.kb=function(a){return this.tileGrid?this.tileGrid:Md(a)};l.dc=function(a){var b=this.g;return b&&!Ec(b,a)?null:this.a};
|
|
462
|
-
function Sh(a,b,c){var d=a.kb(c);c=a.G;b=Ed(d.bb(b),a.Z);1==c?a=b:(a=a.Z,void 0===a&&(a=[0,0]),a[0]=b[0]*c+.5|0,a[1]=b[1]*c+.5|0);return a}function Ip(a,b,c){var d=void 0!==c?c:a.g;c=a.kb(d);if(a.B&&d.a){var e=b;b=e[0];a=Ld(c,e);d=Nd(d);Db(d,a)?b=e:(e=Vb(d),a[0]+=e*Math.ceil((d[0]-a[0])/e),b=c.Pd(a,b))}e=b[0];d=b[1];a=b[2];if(c.minZoom>e||e>c.maxZoom)c=!1;else{var f=c.F();c=(c=f?Id(c,f,e):c.f?c.f[e]:null)?Cd(c,d,a):!0}return c?b:null}l.pb=function(){this.a.clear();this.u()};l.Wf=ba;
|
|
463
|
-
function Jp(a,b){Ka.call(this,a);this.tile=b}u(Jp,Ka);function Kp(a){Hp.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.j?this.j.bind(this):Ep;this.urls=null;a.urls?this.dd(a.urls):a.url&&this.kc(a.url);a.tileUrlFunction&&this.Pb(a.tileUrlFunction)}u(Kp,Hp);l=Kp.prototype;l.Rd=function(){return this.tileLoadFunction};l.Sd=function(){return this.tileUrlFunction};
|
|
464
|
-
l.Td=function(){return this.urls};l.Ii=function(a){a=a.target;switch(a.U()){case 1:this.c(new Jp("tileloadstart",a));break;case 2:this.c(new Jp("tileloadend",a));break;case 3:this.c(new Jp("tileloaderror",a))}};l.pe=function(a){this.a.clear();this.tileLoadFunction=a;this.u()};l.Pb=function(a,b){this.tileUrlFunction=a;"undefined"!==typeof b?this.Db!==b&&(this.Db=b,this.u()):this.u()};
|
|
465
|
-
l.kc=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.Pb(this.j?this.j.bind(this):Cp(b,this.tileGrid),a)};l.dd=function(a){this.urls=a;var b=a.join("\n");this.Pb(this.j?this.j.bind(this):Cp(a,this.tileGrid),b)};
|
|
466
|
-
l.Wf=function(a,b,c){a=this.Cc(a,b,c);this.a.a.hasOwnProperty(a)&&this.a.get(a)};function Lp(a){Kp.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:Mp,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:yo;this.b={};this.s={};this.ma=a.reprojectionErrorThreshold;
|
|
467
|
-
this.v=!1}u(Lp,Kp);l=Lp.prototype;l.vf=function(){if(Gp(this.a))return!0;for(var a in this.b)if(Gp(this.b[a]))return!0;return!1};l.xb=function(a,b){var c=this.dc(a);this.a.xb(this.a==c?b:{});for(var d in this.b){var e=this.b[d];e.xb(e==c?b:{})}};l.We=function(a){return this.g&&a&&Ec(this.g,a),0};l.Ld=function(a){return this.g&&a&&!Ec(this.g,a)?!1:Kp.prototype.Ld.call(this,a)};
|
|
468
|
-
l.kb=function(a){var b=this.g;return!this.tileGrid||b&&!Ec(b,a)?(b=ea(a).toString(),b in this.s||(this.s[b]=Md(a)),this.s[b]):this.tileGrid};l.dc=function(a){var b=this.g;if(!b||Ec(b,a))return this.a;a=ea(a).toString();a in this.b||(this.b[a]=new Fp);return this.b[a]};function Np(a,b,c,d,e,f,g){b=[b,c,d];e=(c=Ip(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;w(e,"change",a.Ii,a);return e}
|
|
469
|
-
function Rh(a,b,c,d,e,f){if(a.g&&f&&!Ec(a.g,f)){e=a.dc(f);d=[b,c,d];var g;b=a.Cc.apply(a,d);e.a.hasOwnProperty(b)&&(g=e.get(b));c=a.getKey();if(g&&g.key==c)return g;var h=a.g,k=a.kb(h),m=a.kb(f),n=Ip(a,d,f);a=new Ap(h,k,f,m,d,n,a.G,0,function(a,b,c,d){return Op(this,a,b,c,d,h)}.bind(a),a.ma,a.v);a.key=c;g?(a.f=g,e.replace(b,a)):e.set(b,a);return a}return Op(a,b,c,d,e,f)}
|
|
470
|
-
function Op(a,b,c,d,e,f){var g,h=a.Cc(b,c,d),k=a.getKey();if(a.a.a.hasOwnProperty(h)){if(g=a.a.get(h),g.key!=k){var m=g;g=Np(a,b,c,d,e,f,k);0==m.U()?g.f=m.f:g.f=m;if(g.f){b=g.f;c=g;do{if(2==b.U()){b.f=null;break}else 1==b.U()?c=b:0==b.U()?c.f=b.f:c=b;b=c.f}while(b)}a.a.replace(h,g)}}else g=Np(a,b,c,d,e,f,k),a.a.set(h,g);return g}l.me=function(a){if(this.v!=a){this.v=a;for(var b in this.b)this.b[b].clear();this.u()}};l.oe=function(a,b){var c=rc(a);c&&(c=ea(c).toString(),c in this.s||(this.s[c]=b))};
|
|
471
|
-
function Mp(a,b){a.Lc().src=b};function Y(a){a=a||{};var b=void 0!==a.projection?a.projection:"EPSG:3857",c=void 0!==a.tileGrid?a.tileGrid:Pd({extent:Nd(b),maxZoom:a.maxZoom,minZoom:a.minZoom,tileSize:a.tileSize});Lp.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,opaque:a.opaque,projection:b,reprojectionErrorThreshold:a.reprojectionErrorThreshold,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls,
|
|
472
|
-
wrapX:void 0!==a.wrapX?a.wrapX:!0})}u(Y,Lp);function Z(a){this.I=a.account;this.H=a.map||"";this.i=a.config||{};this.C={};Y.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,maxZoom:void 0!==a.maxZoom?a.maxZoom:18,minZoom:a.minZoom,projection:a.projection,state:"loading",wrapX:a.wrapX});Pp(this)}u(Z,Y);l=Z.prototype;l.Cg=function(){return this.i};l.hk=function(a){ua(this.i,a);Pp(this)};l.Lj=function(a){this.i=a||{};Pp(this)};
|
|
473
|
-
function Pp(a){var b=JSON.stringify(a.i);if(a.C[b])Qp(a,a.C[b]);else{var c="https://"+a.I+".cartodb.com/api/v1/map";a.H&&(c+="/named/"+a.H);var d=new XMLHttpRequest;d.addEventListener("load",a.ih.bind(a,b));d.addEventListener("error",a.hh.bind(a));d.open("POST",c);d.setRequestHeader("Content-type","application/json");d.send(JSON.stringify(a.i))}}
|
|
474
|
-
l.ih=function(a,b){var c=b.target;if(!c.status||200<=c.status&&300>c.status){var d;try{d=JSON.parse(c.responseText)}catch(e){Ui(this,"error");return}Qp(this,d);this.C[a]=d;Ui(this,"ready")}else Ui(this,"error")};l.hh=function(){Ui(this,"error")};function Qp(a,b){a.kc("https://"+b.cdn_url.https+"/"+a.I+"/api/v1/map/"+b.layergroupid+"/{z}/{x}/{y}.png")};function Rp(a){var b=a.imageExtent,c=void 0!==a.crossOrigin?a.crossOrigin:null,d=void 0!==a.imageLoadFunction?a.imageLoadFunction:$i;Vi.call(this,{attributions:a.attributions,logo:a.logo,projection:rc(a.projection)});this.b=new Zg(b,void 0,1,this.o,a.url,c,d);this.i=a.imageSize?a.imageSize:null;w(this.b,"change",this.v,this)}u(Rp,Vi);Rp.prototype.s=function(a){return $b(a,this.b.F())?this.b:null};
|
|
475
|
-
Rp.prototype.v=function(a){if(this.b.U()==bh){var b=this.b.F(),c=this.b.a(),d,e;this.i?(d=this.i[0],e=this.i[1]):(d=c.width,e=c.height);b=Math.ceil(Vb(b)/(Wb(b)/e));if(b!=d){var b=be(b,e),f=b.canvas;b.drawImage(c,0,0,d,e,0,0,f.width,f.height);this.b.f=f}}Vi.prototype.v.call(this,a)};(function(){var a={},b={X:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.X=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Ak=c()}})(function(){return function d(a,b,g){function h(m,p){if(!b[m]){if(!a[m]){var q="function"==typeof require&&require;if(!p&&q)return q(m,!0);if(k)return k(m,!0);q=Error("Cannot find module '"+m+"'");throw q.code="MODULE_NOT_FOUND",q;}q=b[m]={X:{}};a[m][0].call(q.X,function(b){var d=
|
|
476
|
-
a[m][1][b];return h(d?d:b)},q,q.X,d,a,b,g)}return b[m].X}for(var k="function"==typeof require&&require,m=0;m<g.length;m++)h(g[m]);return h}({1:[function(a,b,f){a=a("./processor");f.Yf=a},{"./processor":2}],2:[function(a,b){function f(a){var b=!0;try{new ImageData(10,10)}catch(d){b=!1}return function(d){var e=d.buffers,f=d.meta,g=d.width,h=d.height,k=e.length,m=e[0].byteLength;if(d.imageOps){m=Array(k);for(d=0;d<k;++d){var da=m,Aa=d,oa;oa=new Uint8ClampedArray(e[d]);var ya=g,z=h;oa=b?new ImageData(oa,
|
|
477
|
-
ya,z):{data:oa,width:ya,height:z};da[Aa]=oa}g=a(m,f).data}else{g=new Uint8ClampedArray(m);h=Array(k);da=Array(k);for(d=0;d<k;++d)h[d]=new Uint8ClampedArray(e[d]),da[d]=[0,0,0,0];for(e=0;e<m;e+=4){for(d=0;d<k;++d)Aa=h[d],da[d][0]=Aa[e],da[d][1]=Aa[e+1],da[d][2]=Aa[e+2],da[d][3]=Aa[e+3];d=a(da,f);g[e]=d[0];g[e+1]=d[1];g[e+2]=d[2];g[e+3]=d[3]}}return g.buffer}}function g(a,b){var d=Object.keys(a.lib||{}).map(function(b){return"var "+b+" = "+a.lib[b].toString()+";"}).concat(["var __minion__ = ("+f.toString()+
|
|
478
|
-
")(",a.operation.toString(),");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),d=URL.createObjectURL(new Blob(d,{type:"text/javascript"})),d=new Worker(d);d.addEventListener("message",b);return d}function h(a,b){var d=f(a.operation);return{postMessage:function(a){setTimeout(function(){b({data:{buffer:d(a),meta:a.meta}})},0)}}}function k(a){this.qd=!!a.Ah;var b;0===a.threads?
|
|
479
|
-
b=0:this.qd?b=1:b=a.threads||1;var d=[];if(b)for(var e=0;e<b;++e)d[e]=g(a,this.De.bind(this,e));else d[0]=h(a,this.De.bind(this,0));this.wc=d;this.Ub=[];this.gg=a.uj||Infinity;this.uc=0;this.tb={};this.rd=null}var m=a("./util").Sh;k.prototype.sj=function(a,b,d){this.eg({mb:a,lf:b,wb:d});this.ze()};k.prototype.eg=function(a){for(this.Ub.push(a);this.Ub.length>this.gg;)this.Ub.shift().wb(null,null)};k.prototype.ze=function(){if(0===this.uc&&0<this.Ub.length){var a=this.rd=this.Ub.shift(),b=a.mb[0].width,
|
|
480
|
-
d=a.mb[0].height,e=a.mb.map(function(a){return a.data.buffer}),f=this.wc.length;this.uc=f;if(1===f)this.wc[0].postMessage({buffers:e,meta:a.lf,imageOps:this.qd,width:b,height:d},e);else for(var g=4*Math.ceil(a.mb[0].data.length/4/f),h=0;h<f;++h){for(var k=h*g,m=[],da=0,Aa=e.length;da<Aa;++da)m.push(e[h].slice(k,k+g));this.wc[h].postMessage({buffers:m,meta:a.lf,imageOps:this.qd,width:b,height:d},m)}}};k.prototype.De=function(a,b){this.yk||(this.tb[a]=b.data,--this.uc,0===this.uc&&this.hg())};k.prototype.hg=
|
|
481
|
-
function(){var a=this.rd,b=this.wc.length,d,e;if(1===b)d=new Uint8ClampedArray(this.tb[0].buffer),e=this.tb[0].meta;else{var f=a.mb[0].data.length;d=new Uint8ClampedArray(f);e=Array(f);for(var f=4*Math.ceil(f/4/b),g=0;g<b;++g){var h=g*f;d.set(new Uint8ClampedArray(this.tb[g].buffer),h);e[g]=this.tb[g].meta}}this.rd=null;this.tb={};a.wb(null,m(d,a.mb[0].width,a.mb[0].height),e);this.ze()};b.X=k},{"./util":3}],3:[function(a,b,f){var g=!0;try{new ImageData(10,10)}catch(k){g=!1}var h=document.createElement("canvas").getContext("2d");
|
|
482
|
-
f.Sh=function(a,b,d){if(g)return new ImageData(a,b,d);b=h.createImageData(b,d);b.data.set(a);return b}},{}]},{},[1])(1)});Ai=b.X})();function Sp(a){this.H=null;this.Aa=void 0!==a.operationType?a.operationType:Tp;this.Ba=void 0!==a.threads?a.threads:1;this.b=Up(a.sources);for(var b=0,c=this.b.length;b<c;++b)w(this.b[b],"change",this.u,this);this.i=be();this.xa=new gf(function(){return 1},this.u.bind(this));for(var b=Vp(this.b),c={},d=0,e=b.length;d<e;++d)c[ea(b[d].layer)]=b[d];this.j=this.G=null;this.ja={animate:!1,attributions:{},coordinateToPixelTransform:Lg(),extent:null,focus:null,index:0,layerStates:c,layerStatesArray:b,logos:{},
|
|
483
|
-
pixelRatio:1,pixelToCoordinateTransform:Lg(),postRenderFunctions:[],size:[0,0],skippedFeatureUids:{},tileQueue:this.xa,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{}};Vi.call(this,{});void 0!==a.operation&&this.I(a.operation,a.lib)}u(Sp,Vi);Sp.prototype.I=function(a,b){this.H=new Ai.Yf({operation:a,Ah:this.Aa===Wp,uj:1,lib:b,threads:this.Ba});this.u()};function Xp(a,b,c){var d=a.G;return!d||a.f!==d.Jj||c!==d.resolution||!Kb(b,d.extent)}
|
|
484
|
-
Sp.prototype.ma=function(a,b,c,d){c=!0;for(var e,f=0,g=this.b.length;f<g;++f)if(e=this.b[f].a.ka(),"ready"!==e.U()){c=!1;break}if(!c)return null;a=a.slice();if(!Xp(this,a,b))return this.j;c=this.i.canvas;e=Math.round(Vb(a)/b);f=Math.round(Wb(a)/b);if(e!==c.width||f!==c.height)c.width=e,c.height=f;e=ua({},this.ja);e.viewState=ua({},e.viewState);var f=Xb(a),g=Math.round(Vb(a)/b),h=Math.round(Wb(a)/b);e.extent=a;e.focus=Xb(a);e.size[0]=g;e.size[1]=h;g=e.viewState;g.center=f;g.projection=d;g.resolution=
|
|
485
|
-
b;this.j=d=new Hi(a,b,1,this.o,c,this.Z.bind(this,e));this.G={extent:a,resolution:b,Jj:this.f};return d};
|
|
486
|
-
Sp.prototype.Z=function(a,b){for(var c=this.b.length,d=Array(c),e=0;e<c;++e){var f;f=this.b[e];var g=a,h=a.layerStatesArray[e];if(f.D(g,h)){var k=g.size[0],m=g.size[1];if(Yp){var n=Yp.canvas;n.width!==k||n.height!==m?Yp=be(k,m):Yp.clearRect(0,0,k,m)}else Yp=be(k,m);f.B(g,h,Yp);f=Yp.getImageData(0,0,k,m)}else f=null;if(f)d[e]=f;else return}c={};this.c(new Zp($p,a,c));this.H.sj(d,c,this.za.bind(this,a,b));hf(a.tileQueue,16,16)};
|
|
487
|
-
Sp.prototype.za=function(a,b,c,d,e){c?b(c):d&&(this.c(new Zp(aq,a,e)),Xp(this,a.extent,a.viewState.resolution/a.pixelRatio)||this.i.putImageData(d,0,0),b(null))};var Yp=null;function Vp(a){return a.map(function(a){return ug(a.a)})}function Up(a){for(var b=a.length,c=Array(b),d=0;d<b;++d){var e=d,f=a[d],g=null;f instanceof Hp?(f=new G({source:f}),g=new Ug(f)):f instanceof Vi&&(f=new Sg({source:f}),g=new Tg(f));c[e]=g}return c}
|
|
488
|
-
function Zp(a,b,c){Ka.call(this,a);this.extent=b.extent;this.resolution=b.viewState.resolution/b.pixelRatio;this.data=c}u(Zp,Ka);var $p="beforeoperations",aq="afteroperations",Tp="pixel",Wp="image";function bq(a){Lp.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,projection:rc("EPSG:3857"),reprojectionErrorThreshold:a.reprojectionErrorThreshold,state:"loading",tileLoadFunction:a.tileLoadFunction,wrapX:void 0!==a.wrapX?a.wrapX:!0});if(a.jsonp)zp(a.url,this.C.bind(this),this.i.bind(this));else{var b=new XMLHttpRequest;b.addEventListener("load",this.H.bind(this));b.addEventListener("error",this.I.bind(this));b.open("GET",a.url);b.send()}}u(bq,Lp);
|
|
489
|
-
bq.prototype.H=function(a){a=a.target;if(!a.status||200<=a.status&&300>a.status){var b;try{b=JSON.parse(a.responseText)}catch(c){this.i();return}this.C(b)}else this.i()};bq.prototype.I=function(){this.i()};
|
|
490
|
-
bq.prototype.C=function(a){var b=rc("EPSG:4326"),c=this.g,d;if(void 0!==a.bounds){var e=qc(b,c);d=bc(a.bounds,e)}var f=a.minzoom||0,e=a.maxzoom||22;this.tileGrid=c=Pd({extent:Nd(c),maxZoom:e,minZoom:f});this.tileUrlFunction=Cp(a.tiles,c);if(void 0!==a.attribution&&!this.o){b=void 0!==d?d:b.F();d={};for(var g;f<=e;++f)g=f.toString(),d[g]=[Id(c,b,f)];this.rb([new Qd({html:a.attribution,tileRanges:d})])}Ui(this,"ready")};bq.prototype.i=function(){Ui(this,"error")};function cq(a){this.o=a.matrixIds;Fd.call(this,{extent:a.extent,origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes,sizes:a.sizes})}u(cq,Fd);cq.prototype.D=function(){return this.o};function dq(a,b){this.c=b;this.f=[{x:0,y:0,width:a,height:a}];this.b={};this.a=be(a,a);this.g=this.a.canvas}dq.prototype.get=function(a){return this.b[a]||null};
|
|
491
|
-
dq.prototype.add=function(a,b,c,d,e){var f,g,h;g=0;for(h=this.f.length;g<h;++g)if(f=this.f[g],f.width>=b+this.c&&f.height>=c+this.c)return h={offsetX:f.x+this.c,offsetY:f.y+this.c,image:this.g},this.b[a]=h,d.call(e,this.a,f.x+this.c,f.y+this.c),a=g,b+=this.c,d=c+this.c,f.width-b>f.height-d?(c={x:f.x+b,y:f.y,width:f.width-b,height:f.height},b={x:f.x,y:f.y+d,width:b,height:f.height-d},eq(this,a,c,b)):(c={x:f.x+b,y:f.y,width:f.width-b,height:d},b={x:f.x,y:f.y+d,width:f.width,height:f.height-d},eq(this,
|
|
492
|
-
a,c,b)),h;return null};function eq(a,b,c,d){b=[b,1];0<c.width&&0<c.height&&b.push(c);0<d.width&&0<d.height&&b.push(d);a.f.splice.apply(a.f,b)};function fq(a){a=a||{};this.f=void 0!==a.initialSize?a.initialSize:256;this.a=void 0!==a.maxSize?a.maxSize:2048;this.c=void 0!==a.space?a.space:1;this.g=[new dq(this.f,this.c)];this.b=this.f;this.i=[new dq(this.b,this.c)]}fq.prototype.add=function(a,b,c,d,e,f){if(b+this.c>this.a||c+this.c>this.a)return null;d=gq(this,!1,a,b,c,d,f);if(!d)return null;a=gq(this,!0,a,b,c,void 0!==e?e:ba,f);return{offsetX:d.offsetX,offsetY:d.offsetY,image:d.image,Ud:a.image}};
|
|
493
|
-
function gq(a,b,c,d,e,f,g){var h=b?a.i:a.g,k,m,n;m=0;for(n=h.length;m<n;++m){k=h[m];if(k=k.add(c,d,e,f,g))return k;k||m!==n-1||(b?(k=Math.min(2*a.b,a.a),a.b=k):(k=Math.min(2*a.f,a.a),a.f=k),k=new dq(k,a.c),h.push(k),++n)}return null};r("ol.Attribution",Qd);r("ol.Collection",E);E.prototype.clear=E.prototype.clear;E.prototype.extend=E.prototype.Xd;E.prototype.forEach=E.prototype.forEach;E.prototype.getArray=E.prototype.Uh;E.prototype.item=E.prototype.item;E.prototype.getLength=E.prototype.cb;E.prototype.insertAt=E.prototype.Ic;E.prototype.pop=E.prototype.pop;E.prototype.push=E.prototype.push;E.prototype.remove=E.prototype.remove;E.prototype.removeAt=E.prototype.je;E.prototype.setAt=E.prototype.Kj;E.prototype.get=E.prototype.get;
|
|
494
|
-
E.prototype.getKeys=E.prototype.ha;E.prototype.getProperties=E.prototype.Y;E.prototype.set=E.prototype.set;E.prototype.setProperties=E.prototype.J;E.prototype.unset=E.prototype.ia;E.prototype.changed=E.prototype.u;E.prototype.dispatchEvent=E.prototype.c;E.prototype.getRevision=E.prototype.ba;E.prototype.on=E.prototype.ca;E.prototype.once=E.prototype.da;E.prototype.un=E.prototype.fa;E.prototype.unByKey=E.prototype.ga;r("ol.Feature",J);J.prototype.clone=J.prototype.clone;J.prototype.getGeometry=J.prototype.L;
|
|
495
|
-
J.prototype.getId=J.prototype.Vh;J.prototype.getGeometryName=J.prototype.Hg;J.prototype.getStyle=J.prototype.Wh;J.prototype.getStyleFunction=J.prototype.Xh;J.prototype.setGeometry=J.prototype.Ga;J.prototype.setStyle=J.prototype.mf;J.prototype.setId=J.prototype.pc;J.prototype.setGeometryName=J.prototype.oc;J.prototype.get=J.prototype.get;J.prototype.getKeys=J.prototype.ha;J.prototype.getProperties=J.prototype.Y;J.prototype.set=J.prototype.set;J.prototype.setProperties=J.prototype.J;
|
|
496
|
-
J.prototype.unset=J.prototype.ia;J.prototype.changed=J.prototype.u;J.prototype.dispatchEvent=J.prototype.c;J.prototype.getRevision=J.prototype.ba;J.prototype.on=J.prototype.ca;J.prototype.once=J.prototype.da;J.prototype.un=J.prototype.fa;J.prototype.unByKey=J.prototype.ga;r("ol.Map",I);I.prototype.addControl=I.prototype.lg;I.prototype.addInteraction=I.prototype.mg;I.prototype.addLayer=I.prototype.ng;I.prototype.addOverlay=I.prototype.og;I.prototype.beforeRender=I.prototype.vg;
|
|
497
|
-
I.prototype.forEachFeatureAtPixel=I.prototype.Ed;I.prototype.forEachLayerAtPixel=I.prototype.bi;I.prototype.hasFeatureAtPixel=I.prototype.zh;I.prototype.getEventCoordinate=I.prototype.Eg;I.prototype.getEventPixel=I.prototype.Hd;I.prototype.getTarget=I.prototype.Od;I.prototype.getTargetElement=I.prototype.cc;I.prototype.getCoordinateFromPixel=I.prototype.Na;I.prototype.getControls=I.prototype.Dg;I.prototype.getOverlays=I.prototype.Tg;I.prototype.getOverlayById=I.prototype.Sg;
|
|
498
|
-
I.prototype.getInteractions=I.prototype.Ig;I.prototype.getLayerGroup=I.prototype.zb;I.prototype.getLayers=I.prototype.ci;I.prototype.getPixelFromCoordinate=I.prototype.Ra;I.prototype.getSize=I.prototype.Fb;I.prototype.getView=I.prototype.$;I.prototype.getViewport=I.prototype.$g;I.prototype.renderSync=I.prototype.Hj;I.prototype.render=I.prototype.render;I.prototype.removeControl=I.prototype.Aj;I.prototype.removeInteraction=I.prototype.Bj;I.prototype.removeLayer=I.prototype.Dj;
|
|
499
|
-
I.prototype.removeOverlay=I.prototype.Ej;I.prototype.setLayerGroup=I.prototype.Pj;I.prototype.setSize=I.prototype.ne;I.prototype.setTarget=I.prototype.nf;I.prototype.setView=I.prototype.Xj;I.prototype.updateSize=I.prototype.te;I.prototype.get=I.prototype.get;I.prototype.getKeys=I.prototype.ha;I.prototype.getProperties=I.prototype.Y;I.prototype.set=I.prototype.set;I.prototype.setProperties=I.prototype.J;I.prototype.unset=I.prototype.ia;I.prototype.changed=I.prototype.u;I.prototype.dispatchEvent=I.prototype.c;
|
|
500
|
-
I.prototype.getRevision=I.prototype.ba;I.prototype.on=I.prototype.ca;I.prototype.once=I.prototype.da;I.prototype.un=I.prototype.fa;I.prototype.unByKey=I.prototype.ga;Pa.prototype.changed=Pa.prototype.u;Pa.prototype.dispatchEvent=Pa.prototype.c;Pa.prototype.getRevision=Pa.prototype.ba;Pa.prototype.on=Pa.prototype.ca;Pa.prototype.once=Pa.prototype.da;Pa.prototype.un=Pa.prototype.fa;Pa.prototype.unByKey=Pa.prototype.ga;r("ol.Overlay",kj);kj.prototype.getElement=kj.prototype.Gd;kj.prototype.getId=kj.prototype.di;
|
|
501
|
-
kj.prototype.getMap=kj.prototype.Kc;kj.prototype.getOffset=kj.prototype.af;kj.prototype.getPosition=kj.prototype.pf;kj.prototype.getPositioning=kj.prototype.bf;kj.prototype.setElement=kj.prototype.Mf;kj.prototype.setMap=kj.prototype.setMap;kj.prototype.setOffset=kj.prototype.Of;kj.prototype.setPosition=kj.prototype.qf;kj.prototype.setPositioning=kj.prototype.Pf;kj.prototype.get=kj.prototype.get;kj.prototype.getKeys=kj.prototype.ha;kj.prototype.getProperties=kj.prototype.Y;kj.prototype.set=kj.prototype.set;
|
|
502
|
-
kj.prototype.setProperties=kj.prototype.J;kj.prototype.unset=kj.prototype.ia;kj.prototype.changed=kj.prototype.u;kj.prototype.dispatchEvent=kj.prototype.c;kj.prototype.getRevision=kj.prototype.ba;kj.prototype.on=kj.prototype.ca;kj.prototype.once=kj.prototype.da;kj.prototype.un=kj.prototype.fa;kj.prototype.unByKey=kj.prototype.ga;r("ol.View",D);D.prototype.animate=D.prototype.animate;D.prototype.constrainCenter=D.prototype.Ac;D.prototype.constrainResolution=D.prototype.constrainResolution;
|
|
503
|
-
D.prototype.constrainRotation=D.prototype.constrainRotation;D.prototype.getCenter=D.prototype.Ia;D.prototype.calculateExtent=D.prototype.Ie;D.prototype.getMaxResolution=D.prototype.ei;D.prototype.getMinResolution=D.prototype.fi;D.prototype.getProjection=D.prototype.gi;D.prototype.getResolution=D.prototype.va;D.prototype.getResolutions=D.prototype.hi;D.prototype.getRotation=D.prototype.Da;D.prototype.getZoom=D.prototype.bh;D.prototype.fit=D.prototype.zg;D.prototype.centerOn=D.prototype.xg;
|
|
504
|
-
D.prototype.rotate=D.prototype.rotate;D.prototype.setCenter=D.prototype.Ya;D.prototype.setResolution=D.prototype.sb;D.prototype.setRotation=D.prototype.Zd;D.prototype.setZoom=D.prototype.$j;D.prototype.get=D.prototype.get;D.prototype.getKeys=D.prototype.ha;D.prototype.getProperties=D.prototype.Y;D.prototype.set=D.prototype.set;D.prototype.setProperties=D.prototype.J;D.prototype.unset=D.prototype.ia;D.prototype.changed=D.prototype.u;D.prototype.dispatchEvent=D.prototype.c;D.prototype.getRevision=D.prototype.ba;
|
|
505
|
-
D.prototype.on=D.prototype.ca;D.prototype.once=D.prototype.da;D.prototype.un=D.prototype.fa;D.prototype.unByKey=D.prototype.ga;r("ol.animation.bounce",function(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:vb;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[td]+=1,!0;if(g.time<c+d){var h=e((g.time-c)/d),k=b-g.viewState.resolution;g.animate=!0;g.viewState.resolution+=h*k;g.viewHints[td]+=1;return!0}return!1}});
|
|
506
|
-
r("ol.animation.pan",function(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:tb;return function(a,b){if(b.time<c)return b.animate=!0,b.viewHints[td]+=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[td]+=1;return!0}return!1}});
|
|
507
|
-
r("ol.animation.rotate",function(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:tb,f=a.anchor?a.anchor:null;return function(a,h){if(h.time<c)return h.animate=!0,h.viewHints[td]+=1,!0;if(h.time<c+d){var k=1-e((h.time-c)/d),k=(b-h.viewState.rotation)*k;h.animate=!0;h.viewState.rotation+=k;if(f){var m=h.viewState.center;m[0]-=f[0];m[1]-=f[1];pb(m,k);mb(m,f)}h.viewHints[td]+=1;return!0}return!1}});
|
|
508
|
-
r("ol.animation.zoom",function(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:tb;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[td]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),k=b-g.viewState.resolution;g.animate=!0;g.viewState.resolution+=h*k;g.viewHints[td]+=1;return!0}return!1}});r("ol.control.ZoomSlider",Ej);r("ol.control.defaults",ke);r("ol.easing.easeIn",rb);r("ol.easing.easeOut",sb);r("ol.easing.inAndOut",tb);
|
|
509
|
-
r("ol.easing.linear",ub);r("ol.easing.upAndDown",vb);r("ol.events.condition.altKeyOnly",function(a){a=a.originalEvent;return a.altKey&&!(a.metaKey||a.ctrlKey)&&!a.shiftKey});r("ol.events.condition.altShiftKeysOnly",rf);r("ol.events.condition.always",cc);r("ol.events.condition.click",function(a){return"click"==a.type});r("ol.events.condition.never",dc);r("ol.events.condition.pointerMove",tf);r("ol.events.condition.singleClick",uf);r("ol.events.condition.doubleClick",function(a){return"dblclick"==a.type});
|
|
510
|
-
r("ol.events.condition.noModifierKeys",vf);r("ol.events.condition.platformModifierKeyOnly",function(a){a=a.originalEvent;return!a.altKey&&(te?a.metaKey:a.ctrlKey)&&!a.shiftKey});r("ol.events.condition.shiftKeyOnly",wf);r("ol.events.condition.targetNotEditable",xf);r("ol.events.condition.mouseOnly",yf);r("ol.events.condition.primaryAction",zf);Ka.prototype.type=Ka.prototype.type;Ka.prototype.target=Ka.prototype.target;Ka.prototype.preventDefault=Ka.prototype.preventDefault;
|
|
511
|
-
Ka.prototype.stopPropagation=Ka.prototype.stopPropagation;r("ol.extent.boundingExtent",wb);r("ol.extent.buffer",Ab);r("ol.extent.containsCoordinate",Db);r("ol.extent.containsExtent",Fb);r("ol.extent.containsXY",Eb);r("ol.extent.createEmpty",xb);r("ol.extent.equals",Kb);r("ol.extent.extend",Mb);r("ol.extent.getBottomLeft",Pb);r("ol.extent.getBottomRight",Qb);r("ol.extent.getCenter",Xb);r("ol.extent.getHeight",Wb);r("ol.extent.getIntersection",Zb);
|
|
512
|
-
r("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});r("ol.extent.getTopLeft",Sb);r("ol.extent.getTopRight",Rb);r("ol.extent.getWidth",Vb);r("ol.extent.intersects",$b);r("ol.extent.isEmpty",Ub);r("ol.extent.applyTransform",bc);r("ol.format.GeoJSON",qk);qk.prototype.readFeature=qk.prototype.Xc;qk.prototype.readFeatures=qk.prototype.lc;qk.prototype.readGeometry=qk.prototype.Yc;qk.prototype.readProjection=qk.prototype.mc;qk.prototype.writeFeature=qk.prototype.jd;
|
|
513
|
-
qk.prototype.writeFeatureObject=qk.prototype.c;qk.prototype.writeFeatures=qk.prototype.kd;qk.prototype.writeFeaturesObject=qk.prototype.a;qk.prototype.writeGeometry=qk.prototype.ld;qk.prototype.writeGeometryObject=qk.prototype.b;r("ol.format.WKT",xn);xn.prototype.readFeature=xn.prototype.Xc;xn.prototype.readFeatures=xn.prototype.lc;xn.prototype.readGeometry=xn.prototype.Yc;xn.prototype.writeFeature=xn.prototype.jd;xn.prototype.writeFeatures=xn.prototype.kd;xn.prototype.writeGeometry=xn.prototype.ld;
|
|
514
|
-
r("ol.geom.Circle",V);V.prototype.clone=V.prototype.clone;V.prototype.getCenter=V.prototype.fc;V.prototype.getRadius=V.prototype.$d;V.prototype.getType=V.prototype.K;V.prototype.intersectsExtent=V.prototype.sa;V.prototype.setCenter=V.prototype.ii;V.prototype.setCenterAndRadius=V.prototype.le;V.prototype.setRadius=V.prototype.ji;V.prototype.transform=V.prototype.Ja;r("ol.geom.Geometry",Jc);Jc.prototype.getClosestPoint=Jc.prototype.Ma;Jc.prototype.intersectsCoordinate=Jc.prototype.Fa;
|
|
515
|
-
Jc.prototype.getExtent=Jc.prototype.F;Jc.prototype.rotate=Jc.prototype.rotate;Jc.prototype.scale=Jc.prototype.scale;Jc.prototype.simplify=Jc.prototype.Pa;Jc.prototype.transform=Jc.prototype.Ja;r("ol.geom.GeometryCollection",T);T.prototype.clone=T.prototype.clone;T.prototype.getGeometries=T.prototype.Id;T.prototype.getType=T.prototype.K;T.prototype.intersectsExtent=T.prototype.sa;T.prototype.setGeometries=T.prototype.Nf;T.prototype.applyTransform=T.prototype.vb;T.prototype.translate=T.prototype.translate;
|
|
516
|
-
r("ol.geom.LinearRing",y);y.prototype.clone=y.prototype.clone;y.prototype.getArea=y.prototype.mi;y.prototype.getCoordinates=y.prototype.R;y.prototype.getType=y.prototype.K;y.prototype.setCoordinates=y.prototype.ea;r("ol.geom.LineString",P);P.prototype.appendCoordinate=P.prototype.pg;P.prototype.clone=P.prototype.clone;P.prototype.forEachSegment=P.prototype.Ag;P.prototype.getCoordinateAtM=P.prototype.ki;P.prototype.getCoordinates=P.prototype.R;P.prototype.getCoordinateAt=P.prototype.Re;
|
|
517
|
-
P.prototype.getLength=P.prototype.li;P.prototype.getType=P.prototype.K;P.prototype.intersectsExtent=P.prototype.sa;P.prototype.setCoordinates=P.prototype.ea;r("ol.geom.MultiLineString",Q);Q.prototype.appendLineString=Q.prototype.qg;Q.prototype.clone=Q.prototype.clone;Q.prototype.getCoordinateAtM=Q.prototype.ni;Q.prototype.getCoordinates=Q.prototype.R;Q.prototype.getLineString=Q.prototype.Ng;Q.prototype.getLineStrings=Q.prototype.Dc;Q.prototype.getType=Q.prototype.K;Q.prototype.intersectsExtent=Q.prototype.sa;
|
|
518
|
-
Q.prototype.setCoordinates=Q.prototype.ea;r("ol.geom.MultiPoint",R);R.prototype.appendPoint=R.prototype.sg;R.prototype.clone=R.prototype.clone;R.prototype.getCoordinates=R.prototype.R;R.prototype.getPoint=R.prototype.Ug;R.prototype.getPoints=R.prototype.ae;R.prototype.getType=R.prototype.K;R.prototype.intersectsExtent=R.prototype.sa;R.prototype.setCoordinates=R.prototype.ea;r("ol.geom.MultiPolygon",S);S.prototype.appendPolygon=S.prototype.tg;S.prototype.clone=S.prototype.clone;
|
|
519
|
-
S.prototype.getArea=S.prototype.oi;S.prototype.getCoordinates=S.prototype.R;S.prototype.getInteriorPoints=S.prototype.Kg;S.prototype.getPolygon=S.prototype.Vg;S.prototype.getPolygons=S.prototype.Md;S.prototype.getType=S.prototype.K;S.prototype.intersectsExtent=S.prototype.sa;S.prototype.setCoordinates=S.prototype.ea;r("ol.geom.Point",A);A.prototype.clone=A.prototype.clone;A.prototype.getCoordinates=A.prototype.R;A.prototype.getType=A.prototype.K;A.prototype.intersectsExtent=A.prototype.sa;
|
|
520
|
-
A.prototype.setCoordinates=A.prototype.ea;r("ol.geom.Polygon",C);C.prototype.appendLinearRing=C.prototype.rg;C.prototype.clone=C.prototype.clone;C.prototype.getArea=C.prototype.pi;C.prototype.getCoordinates=C.prototype.R;C.prototype.getInteriorPoint=C.prototype.Jg;C.prototype.getLinearRingCount=C.prototype.Og;C.prototype.getLinearRing=C.prototype.Ye;C.prototype.getLinearRings=C.prototype.Kd;C.prototype.getType=C.prototype.K;C.prototype.intersectsExtent=C.prototype.sa;C.prototype.setCoordinates=C.prototype.ea;
|
|
521
|
-
r("ol.geom.Polygon.circular",function(a,b,c,d){var e=d?d:32;d=[];var f;for(f=0;f<e;++f)Za(d,a.offset(b,c,2*Math.PI*f/e));d.push(d[0],d[1]);a=new C(null);a.P("XY",d,[d.length]);return a});r("ol.geom.Polygon.fromExtent",od);
|
|
522
|
-
r("ol.geom.Polygon.fromCircle",function(a,b,c){var d=b?b:32,e=a.A,f=a.V;b=new C(null,f);for(var d=e*(d+1),e=Array(d),g=0;g<d;g++)e[g]=0;b.P(f,e,[e.length]);f=a.fc();a=a.$d();var d=b.l,e=b.V,g=b.A,h=b.Ua(),k=d.length/g-1;c=c?c:0;for(var m,n,p=0;p<=k;++p)n=p*g,m=c+2*ma(p,k)*Math.PI/k,d[n]=f[0]+a*Math.cos(m),d[n+1]=f[1]+a*Math.sin(m);b.P(e,d,h);return b});r("ol.geom.SimpleGeometry",x);x.prototype.getFirstCoordinate=x.prototype.Va;x.prototype.getLastCoordinate=x.prototype.Wa;x.prototype.getLayout=x.prototype.Xa;
|
|
523
|
-
x.prototype.applyTransform=x.prototype.vb;x.prototype.translate=x.prototype.translate;Jc.prototype.get=Jc.prototype.get;Jc.prototype.getKeys=Jc.prototype.ha;Jc.prototype.getProperties=Jc.prototype.Y;Jc.prototype.set=Jc.prototype.set;Jc.prototype.setProperties=Jc.prototype.J;Jc.prototype.unset=Jc.prototype.ia;Jc.prototype.changed=Jc.prototype.u;Jc.prototype.dispatchEvent=Jc.prototype.c;Jc.prototype.getRevision=Jc.prototype.ba;Jc.prototype.on=Jc.prototype.ca;Jc.prototype.once=Jc.prototype.da;
|
|
524
|
-
Jc.prototype.un=Jc.prototype.fa;Jc.prototype.unByKey=Jc.prototype.ga;x.prototype.getClosestPoint=x.prototype.Ma;x.prototype.intersectsCoordinate=x.prototype.Fa;x.prototype.getExtent=x.prototype.F;x.prototype.rotate=x.prototype.rotate;x.prototype.scale=x.prototype.scale;x.prototype.simplify=x.prototype.Pa;x.prototype.transform=x.prototype.Ja;x.prototype.get=x.prototype.get;x.prototype.getKeys=x.prototype.ha;x.prototype.getProperties=x.prototype.Y;x.prototype.set=x.prototype.set;
|
|
525
|
-
x.prototype.setProperties=x.prototype.J;x.prototype.unset=x.prototype.ia;x.prototype.changed=x.prototype.u;x.prototype.dispatchEvent=x.prototype.c;x.prototype.getRevision=x.prototype.ba;x.prototype.on=x.prototype.ca;x.prototype.once=x.prototype.da;x.prototype.un=x.prototype.fa;x.prototype.unByKey=x.prototype.ga;V.prototype.getFirstCoordinate=V.prototype.Va;V.prototype.getLastCoordinate=V.prototype.Wa;V.prototype.getLayout=V.prototype.Xa;V.prototype.rotate=V.prototype.rotate;V.prototype.scale=V.prototype.scale;
|
|
526
|
-
V.prototype.getClosestPoint=V.prototype.Ma;V.prototype.intersectsCoordinate=V.prototype.Fa;V.prototype.getExtent=V.prototype.F;V.prototype.simplify=V.prototype.Pa;V.prototype.get=V.prototype.get;V.prototype.getKeys=V.prototype.ha;V.prototype.getProperties=V.prototype.Y;V.prototype.set=V.prototype.set;V.prototype.setProperties=V.prototype.J;V.prototype.unset=V.prototype.ia;V.prototype.changed=V.prototype.u;V.prototype.dispatchEvent=V.prototype.c;V.prototype.getRevision=V.prototype.ba;
|
|
527
|
-
V.prototype.on=V.prototype.ca;V.prototype.once=V.prototype.da;V.prototype.un=V.prototype.fa;V.prototype.unByKey=V.prototype.ga;T.prototype.getClosestPoint=T.prototype.Ma;T.prototype.intersectsCoordinate=T.prototype.Fa;T.prototype.getExtent=T.prototype.F;T.prototype.rotate=T.prototype.rotate;T.prototype.scale=T.prototype.scale;T.prototype.simplify=T.prototype.Pa;T.prototype.transform=T.prototype.Ja;T.prototype.get=T.prototype.get;T.prototype.getKeys=T.prototype.ha;T.prototype.getProperties=T.prototype.Y;
|
|
528
|
-
T.prototype.set=T.prototype.set;T.prototype.setProperties=T.prototype.J;T.prototype.unset=T.prototype.ia;T.prototype.changed=T.prototype.u;T.prototype.dispatchEvent=T.prototype.c;T.prototype.getRevision=T.prototype.ba;T.prototype.on=T.prototype.ca;T.prototype.once=T.prototype.da;T.prototype.un=T.prototype.fa;T.prototype.unByKey=T.prototype.ga;y.prototype.getFirstCoordinate=y.prototype.Va;y.prototype.getLastCoordinate=y.prototype.Wa;y.prototype.getLayout=y.prototype.Xa;y.prototype.rotate=y.prototype.rotate;
|
|
529
|
-
y.prototype.scale=y.prototype.scale;y.prototype.getClosestPoint=y.prototype.Ma;y.prototype.intersectsCoordinate=y.prototype.Fa;y.prototype.getExtent=y.prototype.F;y.prototype.simplify=y.prototype.Pa;y.prototype.transform=y.prototype.Ja;y.prototype.get=y.prototype.get;y.prototype.getKeys=y.prototype.ha;y.prototype.getProperties=y.prototype.Y;y.prototype.set=y.prototype.set;y.prototype.setProperties=y.prototype.J;y.prototype.unset=y.prototype.ia;y.prototype.changed=y.prototype.u;
|
|
530
|
-
y.prototype.dispatchEvent=y.prototype.c;y.prototype.getRevision=y.prototype.ba;y.prototype.on=y.prototype.ca;y.prototype.once=y.prototype.da;y.prototype.un=y.prototype.fa;y.prototype.unByKey=y.prototype.ga;P.prototype.getFirstCoordinate=P.prototype.Va;P.prototype.getLastCoordinate=P.prototype.Wa;P.prototype.getLayout=P.prototype.Xa;P.prototype.rotate=P.prototype.rotate;P.prototype.scale=P.prototype.scale;P.prototype.getClosestPoint=P.prototype.Ma;P.prototype.intersectsCoordinate=P.prototype.Fa;
|
|
531
|
-
P.prototype.getExtent=P.prototype.F;P.prototype.simplify=P.prototype.Pa;P.prototype.transform=P.prototype.Ja;P.prototype.get=P.prototype.get;P.prototype.getKeys=P.prototype.ha;P.prototype.getProperties=P.prototype.Y;P.prototype.set=P.prototype.set;P.prototype.setProperties=P.prototype.J;P.prototype.unset=P.prototype.ia;P.prototype.changed=P.prototype.u;P.prototype.dispatchEvent=P.prototype.c;P.prototype.getRevision=P.prototype.ba;P.prototype.on=P.prototype.ca;P.prototype.once=P.prototype.da;
|
|
532
|
-
P.prototype.un=P.prototype.fa;P.prototype.unByKey=P.prototype.ga;Q.prototype.getFirstCoordinate=Q.prototype.Va;Q.prototype.getLastCoordinate=Q.prototype.Wa;Q.prototype.getLayout=Q.prototype.Xa;Q.prototype.rotate=Q.prototype.rotate;Q.prototype.scale=Q.prototype.scale;Q.prototype.getClosestPoint=Q.prototype.Ma;Q.prototype.intersectsCoordinate=Q.prototype.Fa;Q.prototype.getExtent=Q.prototype.F;Q.prototype.simplify=Q.prototype.Pa;Q.prototype.transform=Q.prototype.Ja;Q.prototype.get=Q.prototype.get;
|
|
533
|
-
Q.prototype.getKeys=Q.prototype.ha;Q.prototype.getProperties=Q.prototype.Y;Q.prototype.set=Q.prototype.set;Q.prototype.setProperties=Q.prototype.J;Q.prototype.unset=Q.prototype.ia;Q.prototype.changed=Q.prototype.u;Q.prototype.dispatchEvent=Q.prototype.c;Q.prototype.getRevision=Q.prototype.ba;Q.prototype.on=Q.prototype.ca;Q.prototype.once=Q.prototype.da;Q.prototype.un=Q.prototype.fa;Q.prototype.unByKey=Q.prototype.ga;R.prototype.getFirstCoordinate=R.prototype.Va;R.prototype.getLastCoordinate=R.prototype.Wa;
|
|
534
|
-
R.prototype.getLayout=R.prototype.Xa;R.prototype.rotate=R.prototype.rotate;R.prototype.scale=R.prototype.scale;R.prototype.getClosestPoint=R.prototype.Ma;R.prototype.intersectsCoordinate=R.prototype.Fa;R.prototype.getExtent=R.prototype.F;R.prototype.simplify=R.prototype.Pa;R.prototype.transform=R.prototype.Ja;R.prototype.get=R.prototype.get;R.prototype.getKeys=R.prototype.ha;R.prototype.getProperties=R.prototype.Y;R.prototype.set=R.prototype.set;R.prototype.setProperties=R.prototype.J;
|
|
535
|
-
R.prototype.unset=R.prototype.ia;R.prototype.changed=R.prototype.u;R.prototype.dispatchEvent=R.prototype.c;R.prototype.getRevision=R.prototype.ba;R.prototype.on=R.prototype.ca;R.prototype.once=R.prototype.da;R.prototype.un=R.prototype.fa;R.prototype.unByKey=R.prototype.ga;S.prototype.getFirstCoordinate=S.prototype.Va;S.prototype.getLastCoordinate=S.prototype.Wa;S.prototype.getLayout=S.prototype.Xa;S.prototype.rotate=S.prototype.rotate;S.prototype.scale=S.prototype.scale;
|
|
536
|
-
S.prototype.getClosestPoint=S.prototype.Ma;S.prototype.intersectsCoordinate=S.prototype.Fa;S.prototype.getExtent=S.prototype.F;S.prototype.simplify=S.prototype.Pa;S.prototype.transform=S.prototype.Ja;S.prototype.get=S.prototype.get;S.prototype.getKeys=S.prototype.ha;S.prototype.getProperties=S.prototype.Y;S.prototype.set=S.prototype.set;S.prototype.setProperties=S.prototype.J;S.prototype.unset=S.prototype.ia;S.prototype.changed=S.prototype.u;S.prototype.dispatchEvent=S.prototype.c;
|
|
537
|
-
S.prototype.getRevision=S.prototype.ba;S.prototype.on=S.prototype.ca;S.prototype.once=S.prototype.da;S.prototype.un=S.prototype.fa;S.prototype.unByKey=S.prototype.ga;A.prototype.getFirstCoordinate=A.prototype.Va;A.prototype.getLastCoordinate=A.prototype.Wa;A.prototype.getLayout=A.prototype.Xa;A.prototype.rotate=A.prototype.rotate;A.prototype.scale=A.prototype.scale;A.prototype.getClosestPoint=A.prototype.Ma;A.prototype.intersectsCoordinate=A.prototype.Fa;A.prototype.getExtent=A.prototype.F;
|
|
538
|
-
A.prototype.simplify=A.prototype.Pa;A.prototype.transform=A.prototype.Ja;A.prototype.get=A.prototype.get;A.prototype.getKeys=A.prototype.ha;A.prototype.getProperties=A.prototype.Y;A.prototype.set=A.prototype.set;A.prototype.setProperties=A.prototype.J;A.prototype.unset=A.prototype.ia;A.prototype.changed=A.prototype.u;A.prototype.dispatchEvent=A.prototype.c;A.prototype.getRevision=A.prototype.ba;A.prototype.on=A.prototype.ca;A.prototype.once=A.prototype.da;A.prototype.un=A.prototype.fa;
|
|
539
|
-
A.prototype.unByKey=A.prototype.ga;C.prototype.getFirstCoordinate=C.prototype.Va;C.prototype.getLastCoordinate=C.prototype.Wa;C.prototype.getLayout=C.prototype.Xa;C.prototype.rotate=C.prototype.rotate;C.prototype.scale=C.prototype.scale;C.prototype.getClosestPoint=C.prototype.Ma;C.prototype.intersectsCoordinate=C.prototype.Fa;C.prototype.getExtent=C.prototype.F;C.prototype.simplify=C.prototype.Pa;C.prototype.transform=C.prototype.Ja;C.prototype.get=C.prototype.get;C.prototype.getKeys=C.prototype.ha;
|
|
540
|
-
C.prototype.getProperties=C.prototype.Y;C.prototype.set=C.prototype.set;C.prototype.setProperties=C.prototype.J;C.prototype.unset=C.prototype.ia;C.prototype.changed=C.prototype.u;C.prototype.dispatchEvent=C.prototype.c;C.prototype.getRevision=C.prototype.ba;C.prototype.on=C.prototype.ca;C.prototype.once=C.prototype.da;C.prototype.un=C.prototype.fa;C.prototype.unByKey=C.prototype.ga;r("ol.inherits",u);r("ol.interaction.DoubleClickZoom",pf);pf.prototype.getActive=pf.prototype.I;
|
|
541
|
-
pf.prototype.getMap=pf.prototype.ja;pf.prototype.setActive=pf.prototype.ob;pf.prototype.get=pf.prototype.get;pf.prototype.getKeys=pf.prototype.ha;pf.prototype.getProperties=pf.prototype.Y;pf.prototype.set=pf.prototype.set;pf.prototype.setProperties=pf.prototype.J;pf.prototype.unset=pf.prototype.ia;pf.prototype.changed=pf.prototype.u;pf.prototype.dispatchEvent=pf.prototype.c;pf.prototype.getRevision=pf.prototype.ba;pf.prototype.on=pf.prototype.ca;pf.prototype.once=pf.prototype.da;pf.prototype.un=pf.prototype.fa;
|
|
542
|
-
pf.prototype.unByKey=pf.prototype.ga;r("ol.interaction.Draw",Mo);Mo.prototype.removeLastPoint=Mo.prototype.Cj;Mo.prototype.finishDrawing=Mo.prototype.bc;Mo.prototype.extend=Mo.prototype.ri;Mo.prototype.getActive=Mo.prototype.I;Mo.prototype.getMap=Mo.prototype.ja;Mo.prototype.setActive=Mo.prototype.ob;Mo.prototype.get=Mo.prototype.get;Mo.prototype.getKeys=Mo.prototype.ha;Mo.prototype.getProperties=Mo.prototype.Y;Mo.prototype.set=Mo.prototype.set;Mo.prototype.setProperties=Mo.prototype.J;
|
|
543
|
-
Mo.prototype.unset=Mo.prototype.ia;Mo.prototype.changed=Mo.prototype.u;Mo.prototype.dispatchEvent=Mo.prototype.c;Mo.prototype.getRevision=Mo.prototype.ba;Mo.prototype.on=Mo.prototype.ca;Mo.prototype.once=Mo.prototype.da;Mo.prototype.un=Mo.prototype.fa;Mo.prototype.unByKey=Mo.prototype.ga;r("ol.interaction.Modify",ep);ep.prototype.removePoint=ep.prototype.Jf;ep.prototype.getActive=ep.prototype.I;ep.prototype.getMap=ep.prototype.ja;ep.prototype.setActive=ep.prototype.ob;ep.prototype.get=ep.prototype.get;
|
|
544
|
-
ep.prototype.getKeys=ep.prototype.ha;ep.prototype.getProperties=ep.prototype.Y;ep.prototype.set=ep.prototype.set;ep.prototype.setProperties=ep.prototype.J;ep.prototype.unset=ep.prototype.ia;ep.prototype.changed=ep.prototype.u;ep.prototype.dispatchEvent=ep.prototype.c;ep.prototype.getRevision=ep.prototype.ba;ep.prototype.on=ep.prototype.ca;ep.prototype.once=ep.prototype.da;ep.prototype.un=ep.prototype.fa;ep.prototype.unByKey=ep.prototype.ga;r("ol.interaction.Select",up);up.prototype.getFeatures=up.prototype.Bi;
|
|
545
|
-
up.prototype.getHitTolerance=up.prototype.Ci;up.prototype.getLayer=up.prototype.Di;up.prototype.setHitTolerance=up.prototype.Fi;up.prototype.setMap=up.prototype.setMap;up.prototype.getActive=up.prototype.I;up.prototype.getMap=up.prototype.ja;up.prototype.setActive=up.prototype.ob;up.prototype.get=up.prototype.get;up.prototype.getKeys=up.prototype.ha;up.prototype.getProperties=up.prototype.Y;up.prototype.set=up.prototype.set;up.prototype.setProperties=up.prototype.J;up.prototype.unset=up.prototype.ia;
|
|
546
|
-
up.prototype.changed=up.prototype.u;up.prototype.dispatchEvent=up.prototype.c;up.prototype.getRevision=up.prototype.ba;up.prototype.on=up.prototype.ca;up.prototype.once=up.prototype.da;up.prototype.un=up.prototype.fa;up.prototype.unByKey=up.prototype.ga;r("ol.interaction.defaults",ng);r("ol.interaction.defaults",ng);r("ol.layer.Group",wg);wg.prototype.getLayers=wg.prototype.Gb;wg.prototype.setLayers=wg.prototype.tf;wg.prototype.getExtent=wg.prototype.F;wg.prototype.getMaxResolution=wg.prototype.gc;
|
|
547
|
-
wg.prototype.getMinResolution=wg.prototype.hc;wg.prototype.getOpacity=wg.prototype.ic;wg.prototype.getVisible=wg.prototype.lb;wg.prototype.getZIndex=wg.prototype.jc;wg.prototype.setExtent=wg.prototype.Mc;wg.prototype.setMaxResolution=wg.prototype.ad;wg.prototype.setMinResolution=wg.prototype.bd;wg.prototype.setOpacity=wg.prototype.Nc;wg.prototype.setVisible=wg.prototype.Oc;wg.prototype.setZIndex=wg.prototype.Pc;wg.prototype.get=wg.prototype.get;wg.prototype.getKeys=wg.prototype.ha;
|
|
548
|
-
wg.prototype.getProperties=wg.prototype.Y;wg.prototype.set=wg.prototype.set;wg.prototype.setProperties=wg.prototype.J;wg.prototype.unset=wg.prototype.ia;wg.prototype.changed=wg.prototype.u;wg.prototype.dispatchEvent=wg.prototype.c;wg.prototype.getRevision=wg.prototype.ba;wg.prototype.on=wg.prototype.ca;wg.prototype.once=wg.prototype.da;wg.prototype.un=wg.prototype.fa;wg.prototype.unByKey=wg.prototype.ga;r("ol.layer.Image",Sg);Sg.prototype.getSource=Sg.prototype.ka;Sg.prototype.setMap=Sg.prototype.setMap;
|
|
549
|
-
Sg.prototype.setSource=Sg.prototype.cd;Sg.prototype.getExtent=Sg.prototype.F;Sg.prototype.getMaxResolution=Sg.prototype.gc;Sg.prototype.getMinResolution=Sg.prototype.hc;Sg.prototype.getOpacity=Sg.prototype.ic;Sg.prototype.getVisible=Sg.prototype.lb;Sg.prototype.getZIndex=Sg.prototype.jc;Sg.prototype.setExtent=Sg.prototype.Mc;Sg.prototype.setMaxResolution=Sg.prototype.ad;Sg.prototype.setMinResolution=Sg.prototype.bd;Sg.prototype.setOpacity=Sg.prototype.Nc;Sg.prototype.setVisible=Sg.prototype.Oc;
|
|
550
|
-
Sg.prototype.setZIndex=Sg.prototype.Pc;Sg.prototype.get=Sg.prototype.get;Sg.prototype.getKeys=Sg.prototype.ha;Sg.prototype.getProperties=Sg.prototype.Y;Sg.prototype.set=Sg.prototype.set;Sg.prototype.setProperties=Sg.prototype.J;Sg.prototype.unset=Sg.prototype.ia;Sg.prototype.changed=Sg.prototype.u;Sg.prototype.dispatchEvent=Sg.prototype.c;Sg.prototype.getRevision=Sg.prototype.ba;Sg.prototype.on=Sg.prototype.ca;Sg.prototype.once=Sg.prototype.da;Sg.prototype.un=Sg.prototype.fa;
|
|
551
|
-
Sg.prototype.unByKey=Sg.prototype.ga;r("ol.layer.Tile",G);G.prototype.getPreload=G.prototype.s;G.prototype.getSource=G.prototype.ka;G.prototype.setPreload=G.prototype.j;G.prototype.getUseInterimTilesOnError=G.prototype.v;G.prototype.setUseInterimTilesOnError=G.prototype.o;G.prototype.setMap=G.prototype.setMap;G.prototype.setSource=G.prototype.cd;G.prototype.getExtent=G.prototype.F;G.prototype.getMaxResolution=G.prototype.gc;G.prototype.getMinResolution=G.prototype.hc;G.prototype.getOpacity=G.prototype.ic;
|
|
552
|
-
G.prototype.getVisible=G.prototype.lb;G.prototype.getZIndex=G.prototype.jc;G.prototype.setExtent=G.prototype.Mc;G.prototype.setMaxResolution=G.prototype.ad;G.prototype.setMinResolution=G.prototype.bd;G.prototype.setOpacity=G.prototype.Nc;G.prototype.setVisible=G.prototype.Oc;G.prototype.setZIndex=G.prototype.Pc;G.prototype.get=G.prototype.get;G.prototype.getKeys=G.prototype.ha;G.prototype.getProperties=G.prototype.Y;G.prototype.set=G.prototype.set;G.prototype.setProperties=G.prototype.J;
|
|
553
|
-
G.prototype.unset=G.prototype.ia;G.prototype.changed=G.prototype.u;G.prototype.dispatchEvent=G.prototype.c;G.prototype.getRevision=G.prototype.ba;G.prototype.on=G.prototype.ca;G.prototype.once=G.prototype.da;G.prototype.un=G.prototype.fa;G.prototype.unByKey=G.prototype.ga;r("ol.layer.Vector",H);H.prototype.getSource=H.prototype.ka;H.prototype.getStyle=H.prototype.G;H.prototype.getStyleFunction=H.prototype.I;H.prototype.setStyle=H.prototype.C;H.prototype.setMap=H.prototype.setMap;
|
|
554
|
-
H.prototype.setSource=H.prototype.cd;H.prototype.getExtent=H.prototype.F;H.prototype.getMaxResolution=H.prototype.gc;H.prototype.getMinResolution=H.prototype.hc;H.prototype.getOpacity=H.prototype.ic;H.prototype.getVisible=H.prototype.lb;H.prototype.getZIndex=H.prototype.jc;H.prototype.setExtent=H.prototype.Mc;H.prototype.setMaxResolution=H.prototype.ad;H.prototype.setMinResolution=H.prototype.bd;H.prototype.setOpacity=H.prototype.Nc;H.prototype.setVisible=H.prototype.Oc;H.prototype.setZIndex=H.prototype.Pc;
|
|
555
|
-
H.prototype.get=H.prototype.get;H.prototype.getKeys=H.prototype.ha;H.prototype.getProperties=H.prototype.Y;H.prototype.set=H.prototype.set;H.prototype.setProperties=H.prototype.J;H.prototype.unset=H.prototype.ia;H.prototype.changed=H.prototype.u;H.prototype.dispatchEvent=H.prototype.c;H.prototype.getRevision=H.prototype.ba;H.prototype.on=H.prototype.ca;H.prototype.once=H.prototype.da;H.prototype.un=H.prototype.fa;H.prototype.unByKey=H.prototype.ga;r("ol.proj.common.add",Gg);
|
|
556
|
-
r("ol.proj.METERS_PER_UNIT",ic);r("ol.proj.setProj4",function(a){jc=a});r("ol.proj.getPointResolution",pc);r("ol.proj.addEquivalentProjections",sc);r("ol.proj.addProjection",Ac);r("ol.proj.addCoordinateTransforms",Cc);r("ol.proj.fromLonLat",function(a,b){return Hc(a,"EPSG:4326",void 0!==b?b:"EPSG:3857")});r("ol.proj.toLonLat",function(a,b){return Hc(a,void 0!==b?b:"EPSG:3857","EPSG:4326")});r("ol.proj.get",rc);r("ol.proj.equivalent",Ec);r("ol.proj.getTransform",Fc);r("ol.proj.transform",Hc);
|
|
557
|
-
r("ol.proj.transformExtent",Ic);r("ol.proj.Projection",kc);kc.prototype.getCode=kc.prototype.Bg;kc.prototype.getExtent=kc.prototype.F;kc.prototype.getUnits=kc.prototype.Zg;kc.prototype.getMetersPerUnit=kc.prototype.jb;kc.prototype.getWorldExtent=kc.prototype.ah;kc.prototype.isGlobal=kc.prototype.Ch;kc.prototype.setGlobal=kc.prototype.Oj;kc.prototype.setExtent=kc.prototype.Hi;kc.prototype.setWorldExtent=kc.prototype.Zj;kc.prototype.setGetPointResolution=kc.prototype.Nj;
|
|
558
|
-
r("ol.proj.Units.METERS_PER_UNIT",ic);uh.prototype.drawCircle=uh.prototype.Bc;uh.prototype.setStyle=uh.prototype.uf;uh.prototype.drawGeometry=uh.prototype.xd;uh.prototype.drawFeature=uh.prototype.yg;r("ol.source.CartoDB",Z);Z.prototype.getConfig=Z.prototype.Cg;Z.prototype.updateConfig=Z.prototype.hk;Z.prototype.setConfig=Z.prototype.Lj;Z.prototype.setRenderReprojectionEdges=Z.prototype.me;Z.prototype.setTileGridForProjection=Z.prototype.oe;Z.prototype.getTileLoadFunction=Z.prototype.Rd;
|
|
559
|
-
Z.prototype.getTileUrlFunction=Z.prototype.Sd;Z.prototype.getUrls=Z.prototype.Td;Z.prototype.setTileLoadFunction=Z.prototype.pe;Z.prototype.setTileUrlFunction=Z.prototype.Pb;Z.prototype.setUrl=Z.prototype.kc;Z.prototype.setUrls=Z.prototype.dd;Z.prototype.getTileGrid=Z.prototype.Qd;Z.prototype.refresh=Z.prototype.pb;Z.prototype.getAttributions=Z.prototype.Hb;Z.prototype.getLogo=Z.prototype.Ab;Z.prototype.getProjection=Z.prototype.Ib;Z.prototype.getState=Z.prototype.U;Z.prototype.setAttributions=Z.prototype.rb;
|
|
560
|
-
Z.prototype.get=Z.prototype.get;Z.prototype.getKeys=Z.prototype.ha;Z.prototype.getProperties=Z.prototype.Y;Z.prototype.set=Z.prototype.set;Z.prototype.setProperties=Z.prototype.J;Z.prototype.unset=Z.prototype.ia;Z.prototype.changed=Z.prototype.u;Z.prototype.dispatchEvent=Z.prototype.c;Z.prototype.getRevision=Z.prototype.ba;Z.prototype.on=Z.prototype.ca;Z.prototype.once=Z.prototype.da;Z.prototype.un=Z.prototype.fa;Z.prototype.unByKey=Z.prototype.ga;r("ol.source.ImageStatic",Rp);
|
|
561
|
-
r("ol.source.ImageVector",bj);r("ol.source.Raster",Sp);Sp.prototype.setOperation=Sp.prototype.I;Sp.prototype.getAttributions=Sp.prototype.Hb;Sp.prototype.getLogo=Sp.prototype.Ab;Sp.prototype.getProjection=Sp.prototype.Ib;Sp.prototype.getState=Sp.prototype.U;Sp.prototype.refresh=Sp.prototype.pb;Sp.prototype.setAttributions=Sp.prototype.rb;Sp.prototype.get=Sp.prototype.get;Sp.prototype.getKeys=Sp.prototype.ha;Sp.prototype.getProperties=Sp.prototype.Y;Sp.prototype.set=Sp.prototype.set;
|
|
562
|
-
Sp.prototype.setProperties=Sp.prototype.J;Sp.prototype.unset=Sp.prototype.ia;Sp.prototype.changed=Sp.prototype.u;Sp.prototype.dispatchEvent=Sp.prototype.c;Sp.prototype.getRevision=Sp.prototype.ba;Sp.prototype.on=Sp.prototype.ca;Sp.prototype.once=Sp.prototype.da;Sp.prototype.un=Sp.prototype.fa;Sp.prototype.unByKey=Sp.prototype.ga;r("ol.source.TileJSON",bq);r("ol.source.Vector",W);r("ol.source.Vector",W);W.prototype.addFeature=W.prototype.Vb;W.prototype.addFeatures=W.prototype.xc;
|
|
563
|
-
W.prototype.clear=W.prototype.clear;W.prototype.forEachFeature=W.prototype.Ne;W.prototype.forEachFeatureInExtent=W.prototype.ib;W.prototype.forEachFeatureIntersectingExtent=W.prototype.Oe;W.prototype.getFeaturesCollection=W.prototype.Ue;W.prototype.getFeatures=W.prototype.wf;W.prototype.getFeaturesAtCoordinate=W.prototype.Te;W.prototype.getFeaturesInExtent=W.prototype.Ve;W.prototype.getClosestFeatureToCoordinate=W.prototype.Qe;W.prototype.getExtent=W.prototype.F;W.prototype.getFeatureById=W.prototype.Se;
|
|
564
|
-
W.prototype.getFormat=W.prototype.xf;W.prototype.getUrl=W.prototype.yf;W.prototype.removeFeature=W.prototype.qb;W.prototype.getAttributions=W.prototype.Hb;W.prototype.getLogo=W.prototype.Ab;W.prototype.getProjection=W.prototype.Ib;W.prototype.getState=W.prototype.U;W.prototype.refresh=W.prototype.pb;W.prototype.setAttributions=W.prototype.rb;W.prototype.get=W.prototype.get;W.prototype.getKeys=W.prototype.ha;W.prototype.getProperties=W.prototype.Y;W.prototype.set=W.prototype.set;
|
|
565
|
-
W.prototype.setProperties=W.prototype.J;W.prototype.unset=W.prototype.ia;W.prototype.changed=W.prototype.u;W.prototype.dispatchEvent=W.prototype.c;W.prototype.getRevision=W.prototype.ba;W.prototype.on=W.prototype.ca;W.prototype.once=W.prototype.da;W.prototype.un=W.prototype.fa;W.prototype.unByKey=W.prototype.ga;W.prototype.addFeature=W.prototype.Vb;W.prototype.addFeatures=W.prototype.xc;W.prototype.clear=W.prototype.clear;W.prototype.forEachFeature=W.prototype.Ne;
|
|
566
|
-
W.prototype.forEachFeatureInExtent=W.prototype.ib;W.prototype.forEachFeatureIntersectingExtent=W.prototype.Oe;W.prototype.getFeaturesCollection=W.prototype.Ue;W.prototype.getFeatures=W.prototype.wf;W.prototype.getFeaturesAtCoordinate=W.prototype.Te;W.prototype.getFeaturesInExtent=W.prototype.Ve;W.prototype.getClosestFeatureToCoordinate=W.prototype.Qe;W.prototype.getExtent=W.prototype.F;W.prototype.getFeatureById=W.prototype.Se;W.prototype.getFormat=W.prototype.xf;W.prototype.getUrl=W.prototype.yf;
|
|
567
|
-
W.prototype.removeFeature=W.prototype.qb;W.prototype.getAttributions=W.prototype.Hb;W.prototype.getLogo=W.prototype.Ab;W.prototype.getProjection=W.prototype.Ib;W.prototype.getState=W.prototype.U;W.prototype.refresh=W.prototype.pb;W.prototype.setAttributions=W.prototype.rb;W.prototype.get=W.prototype.get;W.prototype.getKeys=W.prototype.ha;W.prototype.getProperties=W.prototype.Y;W.prototype.set=W.prototype.set;W.prototype.setProperties=W.prototype.J;W.prototype.unset=W.prototype.ia;
|
|
568
|
-
W.prototype.changed=W.prototype.u;W.prototype.dispatchEvent=W.prototype.c;W.prototype.getRevision=W.prototype.ba;W.prototype.on=W.prototype.ca;W.prototype.once=W.prototype.da;W.prototype.un=W.prototype.fa;W.prototype.unByKey=W.prototype.ga;r("ol.source.XYZ",Y);r("ol.source.XYZ",Y);Y.prototype.setRenderReprojectionEdges=Y.prototype.me;Y.prototype.setTileGridForProjection=Y.prototype.oe;Y.prototype.getTileLoadFunction=Y.prototype.Rd;Y.prototype.getTileUrlFunction=Y.prototype.Sd;
|
|
569
|
-
Y.prototype.getUrls=Y.prototype.Td;Y.prototype.setTileLoadFunction=Y.prototype.pe;Y.prototype.setTileUrlFunction=Y.prototype.Pb;Y.prototype.setUrl=Y.prototype.kc;Y.prototype.setUrls=Y.prototype.dd;Y.prototype.getTileGrid=Y.prototype.Qd;Y.prototype.refresh=Y.prototype.pb;Y.prototype.getAttributions=Y.prototype.Hb;Y.prototype.getLogo=Y.prototype.Ab;Y.prototype.getProjection=Y.prototype.Ib;Y.prototype.getState=Y.prototype.U;Y.prototype.setAttributions=Y.prototype.rb;Y.prototype.get=Y.prototype.get;
|
|
570
|
-
Y.prototype.getKeys=Y.prototype.ha;Y.prototype.getProperties=Y.prototype.Y;Y.prototype.set=Y.prototype.set;Y.prototype.setProperties=Y.prototype.J;Y.prototype.unset=Y.prototype.ia;Y.prototype.changed=Y.prototype.u;Y.prototype.dispatchEvent=Y.prototype.c;Y.prototype.getRevision=Y.prototype.ba;Y.prototype.on=Y.prototype.ca;Y.prototype.once=Y.prototype.da;Y.prototype.un=Y.prototype.fa;Y.prototype.unByKey=Y.prototype.ga;Y.prototype.setRenderReprojectionEdges=Y.prototype.me;
|
|
571
|
-
Y.prototype.setTileGridForProjection=Y.prototype.oe;Y.prototype.getTileLoadFunction=Y.prototype.Rd;Y.prototype.getTileUrlFunction=Y.prototype.Sd;Y.prototype.getUrls=Y.prototype.Td;Y.prototype.setTileLoadFunction=Y.prototype.pe;Y.prototype.setTileUrlFunction=Y.prototype.Pb;Y.prototype.setUrl=Y.prototype.kc;Y.prototype.setUrls=Y.prototype.dd;Y.prototype.getTileGrid=Y.prototype.Qd;Y.prototype.refresh=Y.prototype.pb;Y.prototype.getAttributions=Y.prototype.Hb;Y.prototype.getLogo=Y.prototype.Ab;
|
|
572
|
-
Y.prototype.getProjection=Y.prototype.Ib;Y.prototype.getState=Y.prototype.U;Y.prototype.setAttributions=Y.prototype.rb;Y.prototype.get=Y.prototype.get;Y.prototype.getKeys=Y.prototype.ha;Y.prototype.getProperties=Y.prototype.Y;Y.prototype.set=Y.prototype.set;Y.prototype.setProperties=Y.prototype.J;Y.prototype.unset=Y.prototype.ia;Y.prototype.changed=Y.prototype.u;Y.prototype.dispatchEvent=Y.prototype.c;Y.prototype.getRevision=Y.prototype.ba;Y.prototype.on=Y.prototype.ca;Y.prototype.once=Y.prototype.da;
|
|
573
|
-
Y.prototype.un=Y.prototype.fa;Y.prototype.unByKey=Y.prototype.ga;r("ol.style.AtlasManager",fq);r("ol.style.Circle",kh);kh.prototype.clone=kh.prototype.clone;kh.prototype.setRadius=kh.prototype.Z;r("ol.style.Fill",lh);lh.prototype.clone=lh.prototype.clone;lh.prototype.getColor=lh.prototype.a;lh.prototype.setColor=lh.prototype.b;r("ol.style.Icon",rl);rl.prototype.clone=rl.prototype.clone;rl.prototype.getAnchor=rl.prototype.yb;rl.prototype.getColor=rl.prototype.Ji;rl.prototype.getImage=rl.prototype.Jb;
|
|
574
|
-
rl.prototype.getOrigin=rl.prototype.Kb;rl.prototype.getSrc=rl.prototype.Ki;rl.prototype.getSize=rl.prototype.eb;rl.prototype.load=rl.prototype.load;r("ol.style.Image",hh);hh.prototype.getOpacity=hh.prototype.Sc;hh.prototype.getRotateWithView=hh.prototype.Tc;hh.prototype.getRotation=hh.prototype.Uc;hh.prototype.getScale=hh.prototype.Vc;hh.prototype.getSnapToPixel=hh.prototype.Fc;hh.prototype.setOpacity=hh.prototype.Lb;hh.prototype.setRotation=hh.prototype.Wc;hh.prototype.setScale=hh.prototype.Mb;
|
|
575
|
-
r("ol.style.RegularShape",ih);ih.prototype.clone=ih.prototype.clone;ih.prototype.getAnchor=ih.prototype.yb;ih.prototype.getAngle=ih.prototype.Bf;ih.prototype.getFill=ih.prototype.Cf;ih.prototype.getImage=ih.prototype.Jb;ih.prototype.getOrigin=ih.prototype.Kb;ih.prototype.getPoints=ih.prototype.Df;ih.prototype.getRadius=ih.prototype.Ef;ih.prototype.getRadius2=ih.prototype.cf;ih.prototype.getSize=ih.prototype.eb;ih.prototype.getStroke=ih.prototype.Ff;r("ol.style.Stroke",mh);mh.prototype.clone=mh.prototype.clone;
|
|
576
|
-
mh.prototype.getColor=mh.prototype.Li;mh.prototype.getLineCap=mh.prototype.Lg;mh.prototype.getLineDash=mh.prototype.Mi;mh.prototype.getLineJoin=mh.prototype.Mg;mh.prototype.getMiterLimit=mh.prototype.Pg;mh.prototype.getWidth=mh.prototype.Ni;mh.prototype.setColor=mh.prototype.Oi;mh.prototype.setLineCap=mh.prototype.Qj;mh.prototype.setLineDash=mh.prototype.setLineDash;mh.prototype.setLineJoin=mh.prototype.Rj;mh.prototype.setMiterLimit=mh.prototype.Sj;mh.prototype.setWidth=mh.prototype.Yj;
|
|
577
|
-
r("ol.style.Style",nh);nh.prototype.clone=nh.prototype.clone;nh.prototype.getGeometry=nh.prototype.L;nh.prototype.getGeometryFunction=nh.prototype.Gg;nh.prototype.getFill=nh.prototype.Pi;nh.prototype.setFill=nh.prototype.Ti;nh.prototype.getImage=nh.prototype.Qi;nh.prototype.setImage=nh.prototype.Ui;nh.prototype.getStroke=nh.prototype.Ri;nh.prototype.setStroke=nh.prototype.Vi;nh.prototype.getText=nh.prototype.ra;nh.prototype.setText=nh.prototype.Wi;nh.prototype.getZIndex=nh.prototype.Si;
|
|
578
|
-
nh.prototype.setGeometry=nh.prototype.Ga;nh.prototype.setZIndex=nh.prototype.Xi;r("ol.style.Text",xl);xl.prototype.clone=xl.prototype.clone;xl.prototype.getFont=xl.prototype.Fg;xl.prototype.getOffsetX=xl.prototype.Qg;xl.prototype.getOffsetY=xl.prototype.Rg;xl.prototype.getFill=xl.prototype.Yi;xl.prototype.getRotateWithView=xl.prototype.Zi;xl.prototype.getRotation=xl.prototype.$i;xl.prototype.getScale=xl.prototype.aj;xl.prototype.getStroke=xl.prototype.bj;xl.prototype.getText=xl.prototype.ra;
|
|
579
|
-
xl.prototype.getTextAlign=xl.prototype.Wg;xl.prototype.getTextBaseline=xl.prototype.Xg;xl.prototype.setFont=xl.prototype.Mj;xl.prototype.setOffsetX=xl.prototype.Tj;xl.prototype.setOffsetY=xl.prototype.Uj;xl.prototype.setFill=xl.prototype.cj;xl.prototype.setRotation=xl.prototype.dj;xl.prototype.setScale=xl.prototype.ej;xl.prototype.setStroke=xl.prototype.fj;xl.prototype.setText=xl.prototype.gj;xl.prototype.setTextAlign=xl.prototype.Vj;xl.prototype.setTextBaseline=xl.prototype.Wj;
|
|
580
|
-
ih.prototype.getOpacity=ih.prototype.Sc;ih.prototype.getRotateWithView=ih.prototype.Tc;ih.prototype.getRotation=ih.prototype.Uc;ih.prototype.getScale=ih.prototype.Vc;ih.prototype.getSnapToPixel=ih.prototype.Fc;ih.prototype.setOpacity=ih.prototype.Lb;ih.prototype.setRotation=ih.prototype.Wc;ih.prototype.setScale=ih.prototype.Mb;kh.prototype.getAngle=kh.prototype.Bf;kh.prototype.getFill=kh.prototype.Cf;kh.prototype.getPoints=kh.prototype.Df;kh.prototype.getRadius=kh.prototype.Ef;
|
|
581
|
-
kh.prototype.getRadius2=kh.prototype.cf;kh.prototype.getStroke=kh.prototype.Ff;kh.prototype.getOpacity=kh.prototype.Sc;kh.prototype.getRotateWithView=kh.prototype.Tc;kh.prototype.getRotation=kh.prototype.Uc;kh.prototype.getScale=kh.prototype.Vc;kh.prototype.getSnapToPixel=kh.prototype.Fc;kh.prototype.setOpacity=kh.prototype.Lb;kh.prototype.setRotation=kh.prototype.Wc;kh.prototype.setScale=kh.prototype.Mb;rl.prototype.getOpacity=rl.prototype.Sc;rl.prototype.getRotateWithView=rl.prototype.Tc;
|
|
582
|
-
rl.prototype.getRotation=rl.prototype.Uc;rl.prototype.getScale=rl.prototype.Vc;rl.prototype.getSnapToPixel=rl.prototype.Fc;rl.prototype.setOpacity=rl.prototype.Lb;rl.prototype.setRotation=rl.prototype.Wc;rl.prototype.setScale=rl.prototype.Mb;r("ol.tilegrid.createXYZ",Pd);r("ol.tilegrid.TileGrid",Fd);Fd.prototype.forEachTileCoord=Fd.prototype.Pe;Fd.prototype.getMaxZoom=Fd.prototype.Ze;Fd.prototype.getMinZoom=Fd.prototype.$e;Fd.prototype.getOrigin=Fd.prototype.Nb;Fd.prototype.getResolution=Fd.prototype.Ea;
|
|
583
|
-
Fd.prototype.getResolutions=Fd.prototype.Gf;Fd.prototype.getTileCoordExtent=Fd.prototype.ab;Fd.prototype.getTileCoordForCoordAndResolution=Fd.prototype.df;Fd.prototype.getTileCoordForCoordAndZ=Fd.prototype.Pd;Fd.prototype.getTileSize=Fd.prototype.bb;Fd.prototype.getZForResolution=Fd.prototype.ec;r("ol.tilegrid.WMTS",cq);cq.prototype.getMatrixIds=cq.prototype.D;
|
|
584
|
-
r("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",function(a,b,c){var d=[],e=[],f=[],g=[],h=[],k=void 0!==c?c:[];c=rc(a.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var m=c.jb(),n="ne"==c.i.substr(0,2);a.TileMatrix.sort(function(a,b){return b.ScaleDenominator-a.ScaleDenominator});a.TileMatrix.forEach(function(a){var b;0<k.length?b=$a(k,function(b){return a.Identifier==b.TileMatrix}):b=!0;if(b){e.push(a.Identifier);b=2.8E-4*a.ScaleDenominator/m;var c=a.TileWidth,t=a.TileHeight;
|
|
585
|
-
n?f.push([a.TopLeftCorner[1],a.TopLeftCorner[0]]):f.push(a.TopLeftCorner);d.push(b);g.push(c==t?c:[c,t]);h.push([a.MatrixWidth,-a.MatrixHeight])}});return new cq({extent:b,origins:f,resolutions:d,matrixIds:e,tileSizes:g,sizes:h})});cq.prototype.forEachTileCoord=cq.prototype.Pe;cq.prototype.getMaxZoom=cq.prototype.Ze;cq.prototype.getMinZoom=cq.prototype.$e;cq.prototype.getOrigin=cq.prototype.Nb;cq.prototype.getResolution=cq.prototype.Ea;cq.prototype.getResolutions=cq.prototype.Gf;
|
|
586
|
-
cq.prototype.getTileCoordExtent=cq.prototype.ab;cq.prototype.getTileCoordForCoordAndResolution=cq.prototype.df;cq.prototype.getTileCoordForCoordAndZ=cq.prototype.Pd;cq.prototype.getTileSize=cq.prototype.bb;cq.prototype.getZForResolution=cq.prototype.ec;
|
|
587
|
-
return OPENLAYERS.ol;
|
|
588
|
-
}));
|
|
589
|
-
|