@planet/maps 8.0.0 → 8.1.0
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 +73 -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 +103 -17
- package/readme.md +44 -35
- package/renderer/render.js +313 -0
- package/renderer/update.js +98 -0
- package/.npmignore +0 -2
- package/common.js +0 -582
- package/debug.js +0 -91520
- package/embed.js +0 -376
- package/explorer.js +0 -517
- package/ol.css +0 -241
- package/ol.min.js +0 -1012
package/explorer.js
DELETED
|
@@ -1,517 +0,0 @@
|
|
|
1
|
-
// OpenLayers. See https://openlayers.org/
|
|
2
|
-
// License: https://raw.githubusercontent.com/openlayers/openlayers/master/LICENSE.md
|
|
3
|
-
// Version: v8.0.0
|
|
4
|
-
;(function (root, factory) {
|
|
5
|
-
if (typeof exports === "object") {
|
|
6
|
-
module.exports = factory();
|
|
7
|
-
} else if (typeof define === "function" && define.amd) {
|
|
8
|
-
define([], factory);
|
|
9
|
-
} else {
|
|
10
|
-
root.ol = factory();
|
|
11
|
-
}
|
|
12
|
-
}(this, function () {
|
|
13
|
-
var OPENLAYERS = {};
|
|
14
|
-
var k,aa=this;function r(a,b){var c=OPENLAYERS,d=a.split("."),c=c||aa;d[0]in c||!c.execScript||c.execScript("var "+d[0]);for(var e;d.length&&(e=d.shift());)d.length||void 0===b?c[e]?c=c[e]:c=c[e]={}:c[e]=b};function ba(a,b){return a>b?1:a<b?-1:0}function ca(a){return 0<=da.indexOf(a)}function ea(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 ga(a,b){var c,d=Array.isArray(b)?b:[b],e=d.length;for(c=0;c<e;c++)a[a.length]=d[c]}
|
|
15
|
-
function ja(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 ka(a){var b=la,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 ma(a,b){var c=b||ba;return a.every(function(b,e){if(!e)return!0;var d=c(a[e-1],b);return!(0<d||0===d)})};function v(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a}function na(){}function oa(a){return a.Yh||(a.Yh=++pa)}var pa=0;function qa(a){this.message="Assertion failed. See https://openlayers.org/en/v8.0.0/doc/errors/#"+a+" for details.";this.code=a;this.name="AssertionError"}v(qa,Error);function ra(a,b){if(!a)throw new qa(b);};function va(a,b,c,d){this.I=a;this.M=b;this.R=c;this.S=d}function ya(a,b,c){return a.I<=b&&b<=a.M&&a.R<=c&&c<=a.S}function za(a,b){return a.I<=b.M&&a.M>=b.I&&a.R<=b.S&&a.S>=b.R};function Aa(a,b,c){return Math.min(Math.max(a,b),c)}var Ba=function(){var a;"cosh"in Math?a=Math.cosh:a=function(a){a=Math.exp(a);return(a+1/a)/2};return a}();function Ca(a,b,c,d){a=c-a;b=d-b;return a*a+b*b}function Da(a,b){var c=a%b;return 0>c*b?c+b:c}function Fa(a,b,c){return a+c*(b-a)};function Ga(a,b){if(Array.isArray(a))return a;void 0===b?b=[a,a]:b[0]=b[1]=a;return b};function Ha(a){for(var b=Ja(),c=0,d=a.length;c<d;++c)Ka(b,a[c]);return b}function La(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 Ma(a,b){return b?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function Na(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 Oa(a,b){return Pa(a,b[0],b[1])}function Qa(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}
|
|
16
|
-
function Pa(a,b,c){return a[0]<=b&&b<=a[2]&&a[1]<=c&&c<=a[3]}function Ra(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);h||(h=1);return h}function Ja(){return[Infinity,Infinity,-Infinity,-Infinity]}function Sa(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 Ta(a){return Sa(Infinity,Infinity,-Infinity,-Infinity,a)}function Ua(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}
|
|
17
|
-
function Va(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 Ka(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 Wa(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}
|
|
18
|
-
function Xa(a,b,c){var d;return(d=b.call(c,Ya(a)))||(d=b.call(c,$a(a)))||(d=b.call(c,ab(a)))?d:(d=b.call(c,bb(a)))?d:!1}function cb(a){var b=0;db(a)||(b=eb(a)*fb(a));return b}function Ya(a){return[a[0],a[1]]}function $a(a){return[a[2],a[1]]}function gb(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
|
|
19
|
-
function hb(a,b,c,d,e){var f=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);var g=Math.sin(c);c=f*b;f*=g;b*=d;var h=d*g,l=a[0],m=a[1];a=l-c+h;d=l-c-h;g=l+c-h;c=l+c+h;var h=m-f-b,l=m-f+b,n=m+f+b,f=m+f-b;return Sa(Math.min(a,d,g,c),Math.min(h,l,n,f),Math.max(a,d,g,c),Math.max(h,l,n,f),e)}function fb(a){return a[3]-a[1]}function ib(a,b,c){c=c?c:Ja();jb(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 bb(a){return[a[0],a[3]]}
|
|
20
|
-
function ab(a){return[a[2],a[3]]}function eb(a){return a[2]-a[0]}function jb(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function db(a){return a[2]<a[0]||a[3]<a[1]}function kb(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 Sa(b,a,d,e,c)};var lb="function"===typeof Object.assign?Object.assign:function(a,b){if(!a||null===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 mb(a){for(var b in a)delete a[b]}function nb(a){var b=[],c;for(c in a)b.push(a[c]);return b}function ob(a){for(var b in a)return!1;return!b};/*
|
|
21
|
-
|
|
22
|
-
Latitude/longitude spherical geodesy formulae taken from
|
|
23
|
-
http://www.movable-type.co.uk/scripts/latlong.html
|
|
24
|
-
Licensed under CC-BY-3.0.
|
|
25
|
-
*/
|
|
26
|
-
function pb(a){this.radius=a}function qb(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*rb.radius*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}
|
|
27
|
-
pb.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 rb=new pb(6370997);var sb={};sb.degrees=2*Math.PI*rb.radius/360;sb.ft=.3048;sb.m=1;sb["us-ft"]=1200/3937;var ub=null;function vb(a){this.c=a.code;this.g=a.units;this.b=void 0!==a.extent?a.extent:null;this.o=void 0!==a.worldExtent?a.worldExtent:null;this.f=void 0!==a.global?a.global:!1;this.a=!(!this.f||!this.b);this.j=a.getPointResolution;this.i=null;this.v=a.metersPerUnit;var b=a.code,c=ub||window.proj4;"function"==typeof c&&(b=c.defs(b),void 0!==b&&(void 0===a.metersPerUnit&&(this.v=b.to_meter),void 0===a.units&&(this.g=b.units)))}k=vb.prototype;k.Wf=function(){return this.c};k.C=function(){return this.b};
|
|
28
|
-
k.kb=function(){return this.g};k.ib=function(){return this.v||sb[this.g]};k.Cg=function(){return this.o};k.Ug=function(){return this.f};k.Fi=function(a){this.f=a;this.a=!(!a||!this.b)};k.Jh=function(a){this.b=a;this.a=!(!this.f||!a)};k.Si=function(a){this.o=a};k.Ei=function(a){this.j=a};var wb={};var xb={};function yb(a,b,c){a=a.c;b=b.c;a in xb||(xb[a]={});xb[a][b]=c}function zb(a,b){var c;a in xb&&b in xb[a]&&(c=xb[a][b]);return c};function Ab(a,b,c){var d=a.j;d?b=d(b,c):"degrees"!=a.kb()&&(d=Bb(a,Fb("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=(qb(b.slice(0,2),b.slice(2,4))+qb(b.slice(4,6),b.slice(6,8)))/2,a=a.ib(),void 0!==a&&(b/=a));return b}function Gb(a){Hb(a);a.forEach(function(b){a.forEach(function(a){b!==a&&yb(b,a,Ib)})})}function Jb(){var a=Kb,b=Lb,c=Mb;Nb.forEach(function(d){a.forEach(function(a){yb(d,a,b);yb(a,d,c)})})}function Ob(a){wb[a.c]=a;yb(a,a,Ib)}
|
|
29
|
-
function Hb(a){var b=[];a.forEach(function(a){b.push(Ob(a))})}function Pb(a){return a?"string"===typeof a?Fb(a):a:Fb("EPSG:3857")}function Qb(a,b,c,d){a=Fb(a);b=Fb(b);yb(a,b,Rb(c));yb(b,a,Rb(d))}function Rb(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}}
|
|
30
|
-
function Fb(a){var b=null;if(a instanceof vb)b=a;else if("string"===typeof a){var b=wb[a]||null,c=ub||window.proj4;b||"function"!=typeof c||void 0===c.defs(a)||(b=new vb({code:a}),Ob(b))}return b}function Tb(a,b){if(a===b)return!0;var c=a.kb()===b.kb();return a.c===b.c?c:Bb(a,b)===Ib&&c}function Ub(a,b){var c=Fb(a),d=Fb(b);return Bb(c,d)}
|
|
31
|
-
function Bb(a,b){var c=a.c,d=b.c,e=zb(c,d);if(!e){var f=ub||window.proj4;if("function"==typeof f){var g=f.defs(c),h=f.defs(d);void 0!==g&&void 0!==h&&(g===h?Gb([b,a]):(e=f(d,c),Qb(b,a,e.forward,e.inverse)),e=zb(c,d))}}e||(e=Vb);return e}function Vb(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 Ib(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 Wb(a,b,c){return Ub(b,c)(a,void 0,a.length)}
|
|
32
|
-
function Xb(a,b,c){b=Ub(b,c);return kb(a,b)};function Yb(a){this.minZoom=void 0!==a.minZoom?a.minZoom:0;this.a=a.resolutions;ra(ma(this.a,function(a,b){return b-a}),17);this.maxZoom=this.a.length-1;this.c=void 0!==a.origin?a.origin:null;this.f=null;void 0!==a.origins&&(this.f=a.origins,ra(this.f.length==this.a.length,20));var b=a.extent;void 0===b||this.c||this.f||(this.c=bb(b));ra(!this.c&&this.f||this.c&&!this.f,18);this.g=null;void 0!==a.tileSizes&&(this.g=a.tileSizes,ra(this.g.length==this.a.length,19));this.i=void 0!==a.tileSize?a.tileSize:
|
|
33
|
-
this.g?null:256;ra(!this.i&&this.g||this.i&&!this.g,22);this.v=void 0!==b?b:null;this.b=null;this.j=[0,0];void 0!==a.sizes?this.b=a.sizes.map(function(a){return new va(Math.min(0,a[0]),Math.max(a[0]-1,-1),Math.min(0,a[1]),Math.max(a[1]-1,-1))},this):b&&Zb(this,b)}var $b=[0,0,0];Yb.prototype.C=function(){return this.v};function ac(a,b,c,d){bc(a,b[0],b[1],c,!1,$b);var e=$b[1],f=$b[2];bc(a,b[2],b[3],c,!0,$b);a=$b[1];b=$b[2];void 0!==d?(d.I=e,d.M=a,d.R=f,d.S=b):d=new va(e,a,f,b);return d}
|
|
34
|
-
function cc(a,b,c,d){return ac(a,b,a.a[c],d)}function dc(a,b){var c=a.c?a.c:a.f[b[0]],d=a.a[b[0]],e=Ga(ec(a,b[0]),a.j);return[c[0]+(b[1]+.5)*e[0]*d,c[1]+(b[2]+.5)*e[1]*d]}function fc(a,b,c){var d=a.c?a.c:a.f[b[0]],e=a.a[b[0]];a=Ga(ec(a,b[0]),a.j);var f=d[0]+b[1]*a[0]*e;b=d[1]+b[2]*a[1]*e;return Sa(f,b,f+a[0]*e,b+a[1]*e,c)}
|
|
35
|
-
function bc(a,b,c,d,e,f){var g=gc(a,d),h=d/a.a[g],l=a.c?a.c:a.f[g];a=Ga(ec(a,g),a.j);b=h*Math.floor((b-l[0])/d+(e?.5:0))/a[0];c=h*Math.floor((c-l[1])/d+(e?0:.5))/a[1];e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));e=b;void 0!==f?(f[0]=g,f[1]=e,f[2]=c):f=[g,e,c];return f}function ec(a,b){return a.i?a.i:a.g[b]}function gc(a,b,c){return Aa(ea(a.a,b,c||0),a.minZoom,a.maxZoom)}function Zb(a,b){for(var c=a.a.length,d=Array(c),e=a.minZoom;e<c;++e)d[e]=cc(a,b,e);a.b=d};function hc(a){var b=a.i;if(!b){var b=ic(a),c=jc(b,void 0,void 0),b=new Yb({extent:b,origin:bb(b),resolutions:c,tileSize:void 0});a.i=b}return b}function jc(a,b,c){b=void 0!==b?b:42;var d=fb(a);a=eb(a);c=Ga(void 0!==c?c:256);c=Math.max(a/c[0],d/c[1]);b+=1;d=Array(b);for(a=0;a<b;++a)d[a]=c/Math.pow(2,a);return d}function ic(a){a=Fb(a);var b=a.C();b||(a=180*sb.degrees/a.ib(),b=Sa(-a,-a,a,a));return b};function kc(a){this.c=a.html;this.a=a.tileRanges?a.tileRanges:null};function lc(a){return function(b){if(b)return[Aa(b[0],a[0],a[2]),Aa(b[1],a[1],a[3])]}}function mc(a){return a};function nc(a){function b(b){var c=a.listener,e=a.oe||a.target;a.re&&oc(a);return c.call(e,b)}return a.pe=b}function pc(a,b,c,d){for(var e,f=0,g=a.length;f<g;++f)if(e=a[f],e.listener===b&&e.oe===c)return d&&(e.deleteIndex=f),e}function qc(a,b){var c=a.Ia;return c?c[b]:void 0}function rc(a){var b=a.Ia;b||(b=a.Ia={});return b}
|
|
36
|
-
function sc(a,b){var c=qc(a,b);if(c){for(var d=0,e=c.length;d<e;++d)a.removeEventListener(b,c[d].pe),mb(c[d]);c.length=0;if(c=a.Ia)delete c[b],Object.keys(c).length||delete a.Ia}}function x(a,b,c,d,e){var f=rc(a),g=f[b];g||(g=f[b]=[]);(f=pc(g,c,d,!1))?e||(f.re=!1):(f={oe:d,re:!!e,listener:c,target:a,type:b},a.addEventListener(b,nc(f)),g.push(f));return f}function tc(a,b,c,d){(a=qc(a,b))&&(c=pc(a,c,d,!0))&&oc(c)}
|
|
37
|
-
function oc(a){if(a&&a.target){a.target.removeEventListener(a.type,a.pe);var b=qc(a.target,a.type);if(b){var c="deleteIndex"in a?a.deleteIndex:b.indexOf(a);-1!==c&&b.splice(c,1);b.length||sc(a.target,a.type)}mb(a)}};function uc(){}uc.prototype.bb=!1;function vc(a){a.bb||(a.bb=!0,a.qa())}uc.prototype.qa=na;function wc(a){this.type=a;this.target=null}wc.prototype.preventDefault=wc.prototype.stopPropagation=function(){this.ii=!0};function xc(a){a.stopPropagation()};function yc(){this.Ca={};this.W={};this.V={}}v(yc,uc);yc.prototype.addEventListener=function(a,b){var c=this.V[a];c||(c=this.V[a]=[]);-1===c.indexOf(b)&&c.push(b)};
|
|
38
|
-
yc.prototype.c=function(a){var b="string"===typeof a?new wc(a):a;a=b.type;b.target=this;var c=this.V[a],d;if(c){a in this.W||(this.W[a]=0,this.Ca[a]=0);++this.W[a];for(var e=0,f=c.length;e<f;++e)if(!1===c[e].call(this,b)||b.ii){d=!1;break}--this.W[a];if(!this.W[a]){b=this.Ca[a];for(delete this.Ca[a];b--;)this.removeEventListener(a,na);delete this.W[a]}return d}};yc.prototype.qa=function(){var a=rc(this),b;for(b in a)sc(this,b)};function zc(a,b){return b?b in a.V:0<Object.keys(a.V).length}
|
|
39
|
-
yc.prototype.removeEventListener=function(a,b){var c=this.V[a];if(c){var d=c.indexOf(b);a in this.Ca?(c[d]=na,++this.Ca[a]):(c.splice(d,1),c.length||delete this.V[a])}};function Ac(){yc.call(this);this.f=0}v(Ac,yc);k=Ac.prototype;k.u=function(){++this.f;this.c("change")};k.ba=function(){return this.f};k.ea=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=x(this,a[f],b,c);return e}return x(this,a,b,c)};k.once=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=x(this,a[f],b,c,!0);return e}return x(this,a,b,c,!0)};
|
|
40
|
-
k.fa=function(a,b,c){if(Array.isArray(a))for(var d=0,e=a.length;d<e;++d)tc(this,a[d],b,c);else tc(this,a,b,c)};k.ga=function(a){if(Array.isArray(a))for(var b=0,c=a.length;b<c;++b)oc(a[b]);else oc(a)};function Bc(a){Ac.call(this);oa(this);this.v={};void 0!==a&&this.N(a)}v(Bc,Ac);var Cc={};function Dc(a){return Cc.hasOwnProperty(a)?Cc[a]:Cc[a]="change:"+a}k=Bc.prototype;k.get=function(a){var b;this.v.hasOwnProperty(a)&&(b=this.v[a]);return b};k.ja=function(){return Object.keys(this.v)};k.Y=function(){return lb({},this.v)};function Fc(a,b,c){var d;d=Dc(b);a.c(new Gc(d,b,c));a.c(new Gc("propertychange",b,c))}k.set=function(a,b,c){c?this.v[a]=b:(c=this.v[a],this.v[a]=b,c!==b&&Fc(this,a,c))};
|
|
41
|
-
k.N=function(a,b){for(var c in a)this.set(c,a[c],b)};k.la=function(a,b){if(a in this.v){var c=this.v[a];delete this.v[a];b||Fc(this,a,c)}};function Gc(a,b,c){wc.call(this,a);this.key=b;this.oldValue=c}v(Gc,wc);function y(a){Bc.call(this);this.a=a?a:[];Hc(this)}v(y,Bc);k=y.prototype;k.clear=function(){for(;0<this.zb();)this.pop()};k.nh=function(a){var b,c;b=0;for(c=a.length;b<c;++b)this.push(a[b]);return this};k.forEach=function(a,b){this.a.forEach(a,b)};k.oh=function(){return this.a};k.item=function(a){return this.a[a]};k.zb=function(){return this.get(Ic)};k.xc=function(a,b){this.a.splice(a,0,b);Hc(this);this.c(new Jc("add",b))};k.pop=function(){return this.Qd(this.zb()-1)};
|
|
42
|
-
k.push=function(a){var b=this.zb();this.xc(b,a);return this.zb()};k.remove=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return this.Qd(c)};k.Qd=function(a){var b=this.a[a];this.a.splice(a,1);Hc(this);this.c(new Jc("remove",b));return b};k.Di=function(a,b){var c=this.zb();if(a<c)c=this.a[a],this.a[a]=b,this.c(new Jc("remove",c)),this.c(new Jc("add",b));else{for(;c<a;++c)this.xc(c,void 0);this.xc(a,b)}};function Hc(a){a.set(Ic,a.a.length)}var Ic="length";
|
|
43
|
-
function Jc(a,b){wc.call(this,a);this.element=b}v(Jc,wc);var Kc=/^#(?:[0-9a-f]{3}){1,2}$/i,Lc=/^([a-z]*)$/i;function Mc(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}
|
|
44
|
-
var Oc=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)d++&3||(delete a[e],--b)}d=c;var f;Lc.exec(d)&&(e=document.createElement("div"),e.style.color=d,document.body.appendChild(e),d=getComputedStyle(e).color,document.body.removeChild(e));if(Kc.exec(d)){f=d.length-1;ra(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=(d<<4)+
|
|
45
|
-
d);f=[f,e,d,1]}else d.indexOf("rgba(")?d.indexOf("rgb(")?ra(!1,14):(d=d.slice(4,-1).split(",").map(Number),d.push(1),f=Nc(d)):(d=d.slice(5,-1).split(",").map(Number),f=Nc(d));d=f;a[c]=d;++b}return d}}();function Nc(a){var b=[];b[0]=Aa(a[0]+.5|0,0,255);b[1]=Aa(a[1]+.5|0,0,255);b[2]=Aa(a[2]+.5|0,0,255);b[3]=Aa(a[3],0,1);return b};function Pc(a){return"string"===typeof a||a instanceof CanvasPattern||a instanceof CanvasGradient?a:Mc(a)};function Qc(a,b,c){this.center=a;this.resolution=b;this.rotation=c};function Rc(a,b){var c=document.createElement("CANVAS");a&&(c.width=a);b&&(c.height=b);return c.getContext("2d")}function Sc(a){a&&a.parentNode&&a.parentNode.removeChild(a)};function Tc(a){Bc.call(this);this.element=a.element?a.element:null;this.i=this.G=null;this.B=[];this.render=a.render?a.render:na;a.target&&this.U(a.target)}v(Tc,Bc);Tc.prototype.qa=function(){Sc(this.element);Bc.prototype.qa.call(this)};Tc.prototype.va=function(){return this.i};
|
|
46
|
-
Tc.prototype.setMap=function(a){this.i&&Sc(this.element);for(var b=0,c=this.B.length;b<c;++b)oc(this.B[b]);this.B.length=0;if(this.i=a)(this.G?this.G:a.F).appendChild(this.element),this.render!==na&&this.B.push(x(a,"postrender",this.render,this)),a.render()};Tc.prototype.U=function(a){this.G="string"===typeof a?document.getElementById(a):a};function Uc(a){a=a?a:{};this.F=document.createElement("UL");this.j=document.createElement("LI");this.F.appendChild(this.j);this.j.style.display="none";this.g=void 0!==a.collapsed?a.collapsed:!0;this.A=void 0!==a.collapsible?a.collapsible:!0;this.A||(this.g=!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=
|
|
47
|
-
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.A&&!this.g?this.o:this.s,d=document.createElement("button");d.setAttribute("type","button");d.title=c;d.appendChild(e);x(d,"click",this.oa,this);c=document.createElement("div");c.className=b+" ol-unselectable ol-control"+(this.g&&this.A?" ol-collapsed":"")+(this.A?"":" ol-uncollapsible");c.appendChild(this.F);c.appendChild(d);Tc.call(this,{element:c,render:a.render?
|
|
48
|
-
a.render:Vc,target:a.target});this.D=!0;this.b={};this.a={};this.ha={}}v(Uc,Tc);
|
|
49
|
-
function Vc(a){if(a=a.frameState){var b,c,d,e,f,g,h,l,m,n,p,q=a.layerStatesArray,t=lb({},a.attributions),A={},w={},F=a.viewState.projection;c=0;for(b=q.length;c<b;c++)if(g=q[c].layer.Aa())if(n=oa(g).toString(),m=g.B)for(d=0,e=m.length;d<e;d++)if(h=m[d],l=oa(h).toString(),!(l in t)){if(f=a.usedTiles[n]){var O=g.jb(F);a:{p=void 0;var U,ha,wa=h,xa=O,ta=F;if(wa.a){for(p in f)if(p in wa.a){var O=f[p],u;ha=0;for(U=wa.a[p].length;ha<U;++ha){u=wa.a[p][ha];if(za(u,O)){p=!0;break a}var ia=cc(xa,ic(ta),parseInt(p,
|
|
50
|
-
10)),ua=ia.M-ia.I+1;if(O.I<ia.I||O.M>ia.M)if(za(u,new va(Da(O.I,ua),Da(O.M,ua),O.R,O.S))||O.M-O.I+1>ua&&za(u,ia)){p=!0;break a}}}p=!1}else p=!0}}else p=!1;p?(l in A&&delete A[l],p=h.c,p in w||(w[p]=!0,t[l]=h)):A[l]=h}b=[t,A];c=b[0];b=b[1];for(var V in this.b)V in c?(this.a[V]||(this.b[V].style.display="",this.a[V]=!0),delete c[V]):V in b?(this.a[V]&&(this.b[V].style.display="none",delete this.a[V]),delete b[V]):(Sc(this.b[V]),delete this.b[V],delete this.a[V]);for(V in c)d=document.createElement("LI"),
|
|
51
|
-
d.innerHTML=c[V].c,this.F.appendChild(d),this.b[V]=d,this.a[V]=!0;for(V in b)d=document.createElement("LI"),d.innerHTML=b[V].c,d.style.display="none",this.F.appendChild(d),this.b[V]=d;V=!ob(this.a)||!ob(a.logos);this.D!=V&&(this.element.style.display=V?"":"none",this.D=V);V&&ob(this.a)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only");var fa;a=a.logos;V=this.ha;for(fa in V)fa in a||(Sc(V[fa]),delete V[fa]);for(var sa in a)b=a[sa],b instanceof HTMLElement&&(this.j.appendChild(b),
|
|
52
|
-
V[sa]=b),sa in V||(fa=new Image,fa.src=sa,""===b?c=fa:(c=document.createElement("a"),c.href=b,c.appendChild(fa)),this.j.appendChild(c),V[sa]=c);this.j.style.display=ob(a)?"none":""}else this.D&&(this.element.style.display="none",this.D=!1)}Uc.prototype.oa=function(a){a.preventDefault();this.element.classList.toggle("ol-collapsed");if(this.g){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.g=!this.g};function Wc(a){return 1-Math.pow(1-a,3)}function Xc(a){return 3*a*a-2*a*a*a}function Yc(a){return a};function Zc(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-rotate",c=void 0!==a.label?a.label:"\u21e7";this.a=null;"string"===typeof c?(this.a=document.createElement("span"),this.a.className="ol-compass",this.a.textContent=c):(this.a=c,this.a.classList.add("ol-compass"));var d=a.tipLabel?a.tipLabel:"Reset rotation",c=document.createElement("button");c.className=b+"-reset";c.setAttribute("type","button");c.title=d;c.appendChild(this.a);x(c,"click",Zc.prototype.s,this);d=document.createElement("div");
|
|
53
|
-
d.className=b+" ol-unselectable ol-control";d.appendChild(c);b=a.render?a.render:$c;this.g=a.resetNorth?a.resetNorth:void 0;Tc.call(this,{element:d,render:b,target:a.target});this.j=void 0!==a.duration?a.duration:250;this.b=void 0!==a.autoHide?a.autoHide:!0;this.o=void 0;this.b&&this.element.classList.add("ol-hidden")}v(Zc,Tc);
|
|
54
|
-
Zc.prototype.s=function(a){a.preventDefault();if(this.g)this.g();else if(a=this.i.da()){var b=a.za();void 0!==b&&(0<this.j?(b%=2*Math.PI,a.animate({rotation:0,duration:this.j,easing:Wc})):a.yd(0))}};
|
|
55
|
-
function $c(a){if(a=a.frameState){a=a.viewState.rotation;if(a!=this.o){var b="rotate("+a+"rad)";if(this.b){var c=this.element.classList.contains("ol-hidden");c||a?c&&a&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")}this.a.style.msTransform=b;this.a.style.webkitTransform=b;this.a.style.transform=b}this.o=a}};function ad(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);x(h,"click",ad.prototype.b.bind(this,
|
|
56
|
-
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);x(d,"click",ad.prototype.b.bind(this,-c));c=document.createElement("div");c.className=b+" ol-unselectable ol-control";c.appendChild(h);c.appendChild(d);Tc.call(this,{element:c,target:a.target});this.a=void 0!==a.duration?a.duration:250}v(ad,Tc);
|
|
57
|
-
ad.prototype.b=function(a,b){b.preventDefault();var c=this.i.da();if(c){var d=c.ya();d&&(d=c.constrainResolution(d,a),0<this.a?(0<bd(c)[0]&&cd(c),c.animate({resolution:d,duration:this.a,easing:Wc})):c.Hb(d))}};function dd(a,b,c){wc.call(this,a);this.map=b;this.frameState=void 0!==c?c:null}v(dd,wc);function ed(a,b,c,d,e){dd.call(this,a,b,e);this.originalEvent=c;this.pixel=b.kd(c);this.coordinate=b.Qa(this.pixel);this.dragging=void 0!==d?d:!1}v(ed,dd);ed.prototype.preventDefault=function(){dd.prototype.preventDefault.call(this);this.originalEvent.preventDefault()};ed.prototype.stopPropagation=function(){dd.prototype.stopPropagation.call(this);this.originalEvent.stopPropagation()};var fd={mj:"singleclick",aj:"click",bj:"dblclick",ej:"pointerdrag",hj:"pointermove",dj:"pointerdown",kj:"pointerup",jj:"pointerover",ij:"pointerout",fj:"pointerenter",gj:"pointerleave",cj:"pointercancel"};function gd(a,b,c,d,e){ed.call(this,a,b,c.a,d,e);this.a=c}v(gd,ed);var hd="undefined"!==typeof navigator?navigator.userAgent.toLowerCase():"",id=-1!==hd.indexOf("firefox"),jd=-1!==hd.indexOf("safari")&&-1==hd.indexOf("chrom"),kd=-1!==hd.indexOf("webkit")&&-1==hd.indexOf("edge"),ld=-1!==hd.indexOf("macintosh"),md=window.devicePixelRatio||1,nd=!1,od=function(){if(!("HTMLCanvasElement"in window))return!1;try{var a=document.createElement("CANVAS").getContext("2d");return a?(void 0!==a.setLineDash&&(nd=!0),!0):!1}catch(b){return!1}}(),pd="ontouchstart"in window,qd="PointerEvent"in
|
|
58
|
-
window,rd=!!navigator.msPointerEnabled;function sd(a,b){this.a=a;this.g=b};function td(a){sd.call(this,a,{mousedown:this.Xg,mousemove:this.Yg,mouseup:this.ah,mouseover:this.$g,mouseout:this.Zg});this.c=a.f;this.f=[]}v(td,sd);function ud(a,b){for(var c=a.f,d=b.clientX,e=b.clientY,f=0,g=c.length,h;f<g&&(h=c[f]);f++){var l=Math.abs(e-h[1]);if(25>=Math.abs(d-h[0])&&25>=l)return!0}return!1}function vd(a){var b=wd(a,a),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.isPrimary=!0;b.pointerType="mouse";return b}k=td.prototype;
|
|
59
|
-
k.Xg=function(a){if(!ud(this,a)){(1).toString()in this.c&&this.cancel(a);var b=vd(a);this.c[(1).toString()]=a;xd(this.a,"pointerdown",b,a)}};k.Yg=function(a){if(!ud(this,a)){var b=vd(a);xd(this.a,"pointermove",b,a)}};k.ah=function(a){if(!ud(this,a)){var b=this.c[(1).toString()];b&&b.button===a.button&&(b=vd(a),xd(this.a,"pointerup",b,a),delete this.c[(1).toString()])}};k.$g=function(a){if(!ud(this,a)){var b=vd(a);yd(this.a,b,a)}};k.Zg=function(a){if(!ud(this,a)){var b=vd(a);zd(this.a,b,a)}};
|
|
60
|
-
k.cancel=function(a){var b=vd(a);this.a.cancel(b,a);delete this.c[(1).toString()]};function Ad(a){sd.call(this,a,{MSPointerDown:this.gh,MSPointerMove:this.hh,MSPointerUp:this.kh,MSPointerOut:this.ih,MSPointerOver:this.jh,MSPointerCancel:this.fh,MSGotPointerCapture:this.dh,MSLostPointerCapture:this.eh});this.c=a.f;this.f=["","unavailable","touch","pen","mouse"]}v(Ad,sd);function Bd(a,b){var c=b;"number"===typeof b.pointerType&&(c=wd(b,b),c.pointerType=a.f[b.pointerType]);return c}k=Ad.prototype;
|
|
61
|
-
k.gh=function(a){this.c[a.pointerId.toString()]=a;var b=Bd(this,a);xd(this.a,"pointerdown",b,a)};k.hh=function(a){var b=Bd(this,a);xd(this.a,"pointermove",b,a)};k.kh=function(a){var b=Bd(this,a);xd(this.a,"pointerup",b,a);delete this.c[a.pointerId.toString()]};k.ih=function(a){var b=Bd(this,a);zd(this.a,b,a)};k.jh=function(a){var b=Bd(this,a);yd(this.a,b,a)};k.fh=function(a){var b=Bd(this,a);this.a.cancel(b,a);delete this.c[a.pointerId.toString()]};
|
|
62
|
-
k.eh=function(a){this.a.c(new Cd("lostpointercapture",a,a))};k.dh=function(a){this.a.c(new Cd("gotpointercapture",a,a))};function Dd(a){sd.call(this,a,{pointerdown:this.di,pointermove:this.ei,pointerup:this.hi,pointerout:this.fi,pointerover:this.gi,pointercancel:this.ci,gotpointercapture:this.Eg,lostpointercapture:this.Vg})}v(Dd,sd);k=Dd.prototype;k.di=function(a){Ed(this.a,a)};k.ei=function(a){Ed(this.a,a)};k.hi=function(a){Ed(this.a,a)};k.fi=function(a){Ed(this.a,a)};k.gi=function(a){Ed(this.a,a)};k.ci=function(a){Ed(this.a,a)};k.Vg=function(a){Ed(this.a,a)};k.Eg=function(a){Ed(this.a,a)};function Cd(a,b,c){wc.call(this,a);this.a=b;a=c?c:{};this.buttons=Fd(a);this.pressure=Gd(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:
|
|
63
|
-
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()})}v(Cd,wc);function Fd(a){if(a.buttons||Hd)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}
|
|
64
|
-
function Gd(a,b){var c=0;a.pressure?c=a.pressure:c=b?.5:0;return c}var Hd=!1;try{Hd=1===(new MouseEvent("click",{buttons:1})).buttons}catch(a){};function Id(a,b){sd.call(this,a,{touchstart:this.Zi,touchmove:this.Yi,touchend:this.Xi,touchcancel:this.Wi});this.c=a.f;this.j=b;this.f=void 0;this.i=0;this.b=void 0}v(Id,sd);k=Id.prototype;k.af=function(){this.i=0;this.b=void 0};
|
|
65
|
-
function Jd(a,b,c){b=wd(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.f===c.identifier;b.pointerType="touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b}
|
|
66
|
-
function Kd(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=Jd(a,b,e[g]),h.preventDefault=d,c.call(a,b,h)}
|
|
67
|
-
k.Zi=function(a){var b=a.touches,c=Object.keys(this.c),d=c.length;if(d>=b.length){var e=[],f,g,h;for(f=0;f<d;++f){g=c[f];h=this.c[g];var l;if(!(l=1==g))a:{for(var m=b.length,n=0;n<m;n++)if(l=b[n],l.identifier===g-2){l=!0;break a}l=!1}l||e.push(h.out)}for(f=0;f<e.length;++f)this.ed(a,e[f])}b=a.changedTouches[0];c=Object.keys(this.c).length;if(!c||1===c&&(1).toString()in this.c)this.f=b.identifier,void 0!==this.b&&clearTimeout(this.b);Ld(this,a);this.i++;Kd(this,a,this.Zh)};
|
|
68
|
-
k.Zh=function(a,b){this.c[b.pointerId]={target:b.target,out:b,We:b.target};var c=this.a;b.bubbles=!0;xd(c,"pointerover",b,a);c=this.a;b.bubbles=!1;xd(c,"pointerenter",b,a);xd(this.a,"pointerdown",b,a)};k.Yi=function(a){a.preventDefault();Kd(this,a,this.bh)};
|
|
69
|
-
k.bh=function(a,b){var c=this.c[b.pointerId];if(c){var d=c.out,e=c.We;xd(this.a,"pointermove",b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(zd(this.a,d,a),yd(this.a,b,a)):(b.target=e,b.relatedTarget=null,this.ed(a,b)));c.out=b;c.We=b.target}};k.Xi=function(a){Ld(this,a);Kd(this,a,this.$i)};
|
|
70
|
-
k.$i=function(a,b){xd(this.a,"pointerup",b,a);this.a.out(b,a);Md(this.a,b,a);delete this.c[b.pointerId];b.isPrimary&&(this.f=void 0,this.b=setTimeout(this.af.bind(this),200))};k.Wi=function(a){Kd(this,a,this.ed)};k.ed=function(a,b){this.a.cancel(b,a);this.a.out(b,a);Md(this.a,b,a);delete this.c[b.pointerId];b.isPrimary&&(this.f=void 0,this.b=setTimeout(this.af.bind(this),200))};
|
|
71
|
-
function Ld(a,b){var c=a.j.f,d=b.changedTouches[0];if(a.f===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 Nd(a){yc.call(this);this.i=a;this.f={};this.g={};this.a=[];qd?Od(this,new Dd(this)):rd?Od(this,new Ad(this)):(a=new td(this),Od(this,a),pd&&Od(this,new Id(this,a)));a=this.a.length;for(var b,c=0;c<a;c++)b=this.a[c],Pd(this,Object.keys(b.g))}v(Nd,yc);function Od(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.a.push(b))}Nd.prototype.b=function(a){var b=this.g[a.type];b&&b(a)};
|
|
72
|
-
function Pd(a,b){b.forEach(function(a){x(this.i,a,this.b,this)},a)}function Qd(a,b){b.forEach(function(a){tc(this.i,a,this.b,this)},a)}function wd(a,b){for(var c={},d,e=0,f=Rd.length;e<f;e++)d=Rd[e][0],c[d]=a[d]||b[d]||Rd[e][1];return c}function Md(a,b,c){b.bubbles=!1;xd(a,"pointerleave",b,c)}Nd.prototype.out=function(a,b){a.bubbles=!0;xd(this,"pointerout",a,b)};Nd.prototype.cancel=function(a,b){xd(this,"pointercancel",a,b)};
|
|
73
|
-
function zd(a,b,c){a.out(b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||Md(a,b,c)}function yd(a,b,c){b.bubbles=!0;xd(a,"pointerover",b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||(b.bubbles=!1,xd(a,"pointerenter",b,c))}function xd(a,b,c,d){a.c(new Cd(b,d,c))}function Ed(a,b){a.c(new Cd(b.type,b,b))}Nd.prototype.qa=function(){for(var a=this.a.length,b,c=0;c<a;c++)b=this.a[c],Qd(this,Object.keys(b.g));yc.prototype.qa.call(this)};
|
|
74
|
-
var Rd=[["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 Sd(a){yc.call(this);this.b=a;this.j=0;this.v=!1;this.g=[];this.f=null;a=this.b.a;this.A=0;this.B={};this.i=new Nd(a);this.a=null;this.o=x(this.i,"pointerdown",this.Lg,this);this.s=x(this.i,"pointermove",this.ti,this)}v(Sd,yc);function Td(a,b){var c=new gd("click",a.b,b);a.c(c);a.j?(clearTimeout(a.j),a.j=0,c=new gd("dblclick",a.b,b),a.c(c)):a.j=setTimeout(function(){this.j=0;var a=new gd("singleclick",this.b,b);this.c(a)}.bind(a),250)}
|
|
75
|
-
function Ud(a,b){"pointerup"==b.type||"pointercancel"==b.type?delete a.B[b.pointerId]:"pointerdown"==b.type&&(a.B[b.pointerId]=!0);a.A=Object.keys(a.B).length}k=Sd.prototype;k.Fe=function(a){Ud(this,a);var b=new gd("pointerup",this.b,a);this.c(b);this.v||a.button||Td(this,this.f);this.A||(this.g.forEach(oc),this.g.length=0,this.v=!1,this.f=null,vc(this.a),this.a=null)};
|
|
76
|
-
k.Lg=function(a){Ud(this,a);var b=new gd("pointerdown",this.b,a);this.c(b);this.f=a;this.g.length||(this.a=new Nd(document),this.g.push(x(this.a,"pointermove",this.uh,this),x(this.a,"pointerup",this.Fe,this),x(this.i,"pointercancel",this.Fe,this)))};k.uh=function(a){if(a.clientX!=this.f.clientX||a.clientY!=this.f.clientY){this.v=!0;var b=new gd("pointerdrag",this.b,a,this.v);this.c(b)}a.preventDefault()};
|
|
77
|
-
k.ti=function(a){this.c(new gd(a.type,this.b,a,!(!this.f||a.clientX==this.f.clientX&&a.clientY==this.f.clientY)))};k.qa=function(){this.s&&(oc(this.s),this.s=null);this.o&&(oc(this.o),this.o=null);this.g.forEach(oc);this.g.length=0;this.a&&(vc(this.a),this.a=null);this.i&&(vc(this.i),this.i=null);yc.prototype.qa.call(this)};function Vd(a,b){this.o=a;this.b=b;this.a=[];this.c=[];this.f={}}Vd.prototype.clear=function(){this.a.length=0;this.c.length=0;mb(this.f)};Vd.prototype.j=function(a){ra(!(this.b(a)in this.f),31);var b=this.o(a);return Infinity!=b?(this.a.push(a),this.c.push(b),this.f[this.b(a)]=!0,Wd(this,0,this.a.length-1),!0):!1};function Xd(a,b){for(var c=a.a,d=a.c,e=c.length,f=c[b],g=d[b],h=b;b<e>>1;){var l=2*b+1,m=2*b+2,l=m<e&&d[m]<d[l]?m:l;c[b]=c[l];d[b]=d[l];b=l}c[b]=f;d[b]=g;Wd(a,h,b)}
|
|
78
|
-
function Wd(a,b,c){var d=a.a;a=a.c;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 Yd(a,b){Vd.call(this,function(b){return a.apply(null,b)},function(a){return a[0].nb()});this.s=b;this.i=0;this.g={}}v(Yd,Vd);Yd.prototype.j=function(a){var b=Vd.prototype.j.call(this,a);b&&x(a[0],"change",this.v,this);return b};Yd.prototype.v=function(a){a=a.target;var b=a.ia();if(2===b||3===b||4===b||5===b)tc(a,"change",this.v,this),a=a.nb(),a in this.g&&(delete this.g[a],--this.i),this.s()};function Zd(a){return function(b,c,d){if(void 0!==b)return b=ea(a,b,d),b=Aa(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 $d(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 ae(a){if(void 0!==a)return 0}function be(a,b){if(void 0!==a)return a+b}function ce(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 de(){var a=5*Math.PI/180;return function(b,c){if(void 0!==b)return Math.abs(b+c)<=a?0:b+c}};function ee(a){a=""+a;var b=a.indexOf("."),b=-1===b?a.length:b;return 2<b?a:Array(3-b).join("0")+a};function fe(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 ge(){return!0}function he(){return!1};function ie(){Bc.call(this);this.s=Ja();this.B=-1;this.g={};this.o=this.i=0}v(ie,Bc);k=ie.prototype;k.Ka=function(a,b){var c=b?b:[NaN,NaN];this.Ja(a[0],a[1],c,Infinity);return c};k.Ea=function(a){return this.ob(a[0],a[1])};k.ob=he;k.C=function(a){this.B!=this.f&&(this.s=this.jc(this.s),this.B=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};k.Na=function(a){return this.tc(a*a)};k.Ha=function(a,b){this.rb(Ub(a,b));return this};function je(a,b,c,d,e,f){for(var g=f?f:[],h=0;b<c;b+=d){var l=a[b],m=a[b+1];g[h++]=e[0]*l+e[2]*m+e[4];g[h++]=e[1]*l+e[3]*m+e[5]}f&&g.length!=h&&(g.length=h);return g};function z(){ie.call(this);this.P="XY";this.a=2;this.l=null}v(z,ie);function ke(a){var b;"XY"==a?b=2:"XYZ"==a||"XYM"==a?b=3:"XYZM"==a&&(b=4);return b}k=z.prototype;k.ob=he;k.jc=function(a){var b=this.l,c=this.l.length,d=this.a;a=Ta(a);return Wa(a,b,0,c,d)};k.Sa=function(){return this.l.slice(0,this.a)};k.Ta=function(){return this.l.slice(this.l.length-this.a)};k.Ua=function(){return this.P};
|
|
79
|
-
k.tc=function(a){this.o!=this.f&&(mb(this.g),this.i=0,this.o=this.f);if(0>a||this.i&&a<=this.i)return this;var b=a.toString();if(this.g.hasOwnProperty(b))return this.g[b];var c=this.vb(a);if(c.l.length<this.l.length)return this.g[b]=c;this.i=a;return this};k.vb=function(){return this};function le(a,b,c){a.a=ke(b);a.P=b;a.l=c}
|
|
80
|
-
function me(a,b,c,d){if(b)c=ke(b);else{for(b=0;b<d;++b)if(c.length)c=c[0];else{a.P="XY";a.a=2;return}c=c.length;var e;2==c?e="XY":3==c?e="XYZ":4==c&&(e="XYZM");b=e}a.P=b;a.a=c}k.rb=function(a){this.l&&(a(this.l,this.l,this.a),this.u())};k.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),l=b[0],m=b[1],n=0,p=0;p<d;p+=e){var q=c[p]-l,t=c[p+1]-m;f[n++]=l+q*g-t*h;f[n++]=m+q*h+t*g;for(q=p+2;q<p+e;++q)f[n++]=c[q]}c&&f.length!=n&&(f.length=n);this.u()}};
|
|
81
|
-
k.scale=function(a,b,c){var d=b;void 0===d&&(d=a);var e=c;e||(e=gb(this.C()));if(c=this.l){b=c.length;for(var f=this.a,g=c?c:[],h=e[0],e=e[1],l=0,m=0;m<b;m+=f){var n=c[m]-h,p=c[m+1]-e;g[l++]=h+a*n;g[l++]=e+d*p;for(n=m+2;n<m+f;++n)g[l++]=c[n]}c&&g.length!=l&&(g.length=l);this.u()}};k.translate=function(a,b){var c=this.l;if(c){var d=c.length,e=this.a,f=c?c:[],g=0,h,l;for(h=0;h<d;h+=e)for(f[g++]=c[h]+a,f[g++]=c[h+1]+b,l=h+2;l<h+e;++l)f[g++]=c[l];c&&f.length!=g&&(f.length=g);this.u()}};function ne(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],l=a[b+1],e=e+(g*h-f*l),f=h,g=l;return e/2}function oe(a,b,c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],e=e+ne(a,b,h,d);b=h}return e};function pe(a,b,c,d,e,f,g){var h=a[b],l=a[b+1],m=a[c]-h,n=a[c+1]-l;if(m||n)if(f=((e-h)*m+(f-l)*n)/(m*m+n*n),1<f)b=c;else if(0<f){for(e=0;e<d;++e)g[e]=Fa(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 qe(a,b,c,d,e){var f=a[b],g=a[b+1];for(b+=d;b<c;b+=d){var h=a[b],l=a[b+1],f=Ca(f,g,h,l);f>e&&(e=f);f=h;g=l}return e}function re(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];e=qe(a,b,h,d,e);b=h}return e}
|
|
82
|
-
function se(a,b,c,d,e,f,g,h,l,m,n){if(b==c)return m;var p;if(!e){p=Ca(g,h,a[b],a[b+1]);if(p<m){for(n=0;n<d;++n)l[n]=a[b+n];l.length=d;return p}return m}for(var q=n?n:[NaN,NaN],t=b+d;t<c;)if(pe(a,t-d,t,d,g,h,q),p=Ca(g,h,q[0],q[1]),p<m){m=p;for(n=0;n<d;++n)l[n]=q[n];l.length=d;t+=d}else t+=d*Math.max((Math.sqrt(p)-Math.sqrt(m))/e|0,1);if(f&&(pe(a,c-d,b,d,g,h,q),p=Ca(g,h,q[0],q[1]),p<m)){m=p;for(n=0;n<d;++n)l[n]=q[n];l.length=d}return m}
|
|
83
|
-
function te(a,b,c,d,e,f,g,h,l,m,n){n=n?n:[NaN,NaN];var p,q;p=0;for(q=c.length;p<q;++p){var t=c[p];m=se(a,b,t,d,e,f,g,h,l,m,n);b=t}return m};function ue(a,b){var c=0,d,e;d=0;for(e=b.length;d<e;++d)a[c++]=b[d];return c}function ve(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 we(a,b,c,d,e){e=e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g)b=ve(a,b,c[g],d),e[f++]=b;e.length=f;return e};function xe(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 ye(a,b,c,d,e){e=void 0!==e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g){var l=c[g];e[f++]=xe(a,b,l,d,e[f]);b=l}e.length=f;return e};function ze(a,b,c,d,e,f,g){var h=(c-b)/d;if(3>h){for(;b<c;b+=d)f[g++]=a[b],f[g++]=a[b+1];return g}var l=Array(h);l[0]=1;l[h-1]=1;c=[b,c-d];for(var m=0,n;0<c.length;){var p=c.pop(),q=c.pop(),t=0,A=a[q],w=a[q+1],F=a[p],O=a[p+1];for(n=q+d;n<p;n+=d){var U;U=a[n];var ha=a[n+1],wa=A,xa=w,ta=F-wa,u=O-xa;if(ta||u){var ia=((U-wa)*ta+(ha-xa)*u)/(ta*ta+u*u);1<ia?(wa=F,xa=O):0<ia&&(wa+=ta*ia,xa+=u*ia)}U=Ca(U,ha,wa,xa);U>t&&(m=n,t=U)}t>e&&(l[(m-b)/d]=1,q+d<m&&c.push(q,m),m+d<p&&c.push(m,p))}for(n=0;n<h;++n)l[n]&&
|
|
84
|
-
(f[g++]=a[b+n*d],f[g++]=a[b+n*d+1]);return g}
|
|
85
|
-
function Ae(a,b,c,d,e,f,g,h){var l,m;l=0;for(m=c.length;l<m;++l){var n=c[l];a:{var p,q=a,t=n,A=d,w=e,F=f,O=g;if(b!=t){var U=w*Math.round(q[b]/w),ha=w*Math.round(q[b+1]/w);b+=A;F[O++]=U;F[O++]=ha;do if(p=w*Math.round(q[b]/w),g=w*Math.round(q[b+1]/w),b+=A,b==t){F[O++]=p;F[O++]=g;g=O;break a}while(p==U&&g==ha);for(;b<t;){var wa,xa;wa=w*Math.round(q[b]/w);xa=w*Math.round(q[b+1]/w);b+=A;if(wa!=p||xa!=g){var ta=p-U,u=g-ha,ia=wa-U,ua=xa-ha;ta*ua==u*ia&&(0>ta&&ia<ta||ta==ia||0<ta&&ia>ta)&&(0>u&&ua<u||u==
|
|
86
|
-
ua||0<u&&ua>u)||(F[O++]=p,F[O++]=g,U=p,ha=g);p=wa;g=xa}}F[O++]=p;F[O++]=g}g=O}h.push(g);b=n}return g};function B(a,b){z.call(this);this.b=this.j=-1;this.Z(a,b)}v(B,z);k=B.prototype;k.clone=function(){var a=new B(null);le(a,this.P,this.l.slice());a.u();return a};k.Ja=function(a,b,c,d){if(d<Na(this.C(),a,b))return d;this.b!=this.f&&(this.j=Math.sqrt(qe(this.l,0,this.l.length,this.a,0)),this.b=this.f);return se(this.l,0,this.l.length,this.a,this.j,!0,a,b,c,d)};k.Dh=function(){return ne(this.l,0,this.l.length,this.a)};k.$=function(){return xe(this.l,0,this.l.length,this.a)};
|
|
87
|
-
k.vb=function(a){var b=[];b.length=ze(this.l,0,this.l.length,this.a,a,b,0);a=new B(null);le(a,"XY",b);a.u();return a};k.O=function(){return"LinearRing"};k.ta=function(){};k.Z=function(a,b){a?(me(this,b,a,1),this.l||(this.l=[]),this.l.length=ve(this.l,0,a,this.a)):le(this,"XY",null);this.u()};function C(a,b){z.call(this);this.Z(a,b)}v(C,z);k=C.prototype;k.clone=function(){var a=new C(null);a.K(this.P,this.l.slice());return a};k.Ja=function(a,b,c,d){var e=this.l;a=Ca(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};k.$=function(){return this.l?this.l.slice():[]};k.jc=function(a){var b=this.l,c=b[0],b=b[1];return Sa(c,b,c,b,a)};k.O=function(){return"Point"};k.ta=function(a){return Pa(a,this.l[0],this.l[1])};
|
|
88
|
-
k.Z=function(a,b){a?(me(this,b,a,0),this.l||(this.l=[]),this.l.length=ue(this.l,a),this.u()):this.K("XY",null)};k.K=function(a,b){le(this,a,b);this.u()};function Be(a,b,c,d,e){return!Xa(e,function(e){return!Ce(a,b,c,d,e[0],e[1])})}function Ce(a,b,c,d,e,f){for(var g=0,h=a[c-d],l=a[c-d+1];b<c;b+=d){var m=a[b],n=a[b+1];l<=f?n>f&&0<(m-h)*(f-l)-(e-h)*(n-l)&&g++:n<=f&&0>(m-h)*(f-l)-(e-h)*(n-l)&&g--;h=m;l=n}return!!g}function De(a,b,c,d,e,f){if(!c.length||!Ce(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if(Ce(a,c[b-1],c[b],d,e,f))return!1;return!0};function Ee(a,b,c,d,e,f,g){var h,l,m,n,p,q=e[f+1],t=[],A=c[0];m=a[A-d];p=a[A-d+1];for(h=b;h<A;h+=d){n=a[h];l=a[h+1];if(q<=p&&l<=q||p<=q&&q<=l)m=(q-p)/(l-p)*(n-m)+m,t.push(m);m=n;p=l}A=NaN;p=-Infinity;t.sort(ba);m=t[0];h=1;for(l=t.length;h<l;++h){n=t[h];var w=Math.abs(n-m);w>p&&(m=(m+n)/2,De(a,b,c,d,m,q)&&(A=m,p=w));m=n}isNaN(A)&&(A=e[f]);return g?(g.push(A,q),g):[A,q]};function Fe(a,b,c,d,e,f){for(var g=[a[b],a[b+1]],h=[],l;b+d<c;b+=d){h[0]=a[b+d];h[1]=a[b+d+1];if(l=e.call(f,g,h))return l;g[0]=h[0];g[1]=h[1]}return!1};function Ge(a,b,c,d,e){var f=Wa(Ja(),a,b,c,d);return jb(e,f)?Qa(e,f)||f[0]>=e[0]&&f[2]<=e[2]||f[1]>=e[1]&&f[3]<=e[3]?!0:Fe(a,b,c,d,function(a,b){var c=!1,d=Ra(e,a),f=Ra(e,b);if(1===d||1===f)c=!0;else{var g=e[0],h=e[1],t=e[2],A=e[3],w=b[0],F=b[1],O=(F-a[1])/(w-a[0]);f&2&&!(d&2)&&(c=w-(F-A)/O,c=c>=g&&c<=t);c||!(f&4)||d&4||(c=F-(w-t)*O,c=c>=h&&c<=A);c||!(f&8)||d&8||(c=w-(F-h)/O,c=c>=g&&c<=t);c||!(f&16)||d&16||(c=F-(w-g)*O,c=c>=h&&c<=A)}return c}):!1}
|
|
89
|
-
function He(a,b,c,d,e){var f=c[0];if(!(Ge(a,b,f,d,e)||Ce(a,b,f,d,e[0],e[1])||Ce(a,b,f,d,e[0],e[3])||Ce(a,b,f,d,e[2],e[1])||Ce(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(Be(a,c[b-1],c[b],d,e))return!1;return!0};function Ie(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],l=a[b+1],e=e+(h-f)*(l+g),f=h,g=l;return 0<e}function Je(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=Ie(a,e,h,c);if(!f){if(d&&e||!d&&!e)return!1}else if(d&&!e||!d&&e)return!1;e=h}return!0}
|
|
90
|
-
function Ke(a,b,c,d,e){e=void 0!==e?e:!1;var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],l=Ie(a,b,h,d);if(f?e&&!l||!e&&l:e&&l||!e&&!l)for(var l=a,m=h,n=d;b<m-n;){var p;for(p=0;p<n;++p){var q=l[b+p];l[b+p]=l[m-n+p];l[m-n+p]=q}b+=n;m-=n}b=h}return b}function Le(a,b,c,d){var e=0,f,g;f=0;for(g=b.length;f<g;++f)e=Ke(a,e,b[f],c,d);return e};function D(a,b){z.call(this);this.b=[];this.A=-1;this.D=null;this.U=this.F=this.G=-1;this.j=null;this.Z(a,b)}v(D,z);k=D.prototype;k.Kf=function(a){this.l?ga(this.l,a.l):this.l=a.l.slice();this.b.push(this.l.length);this.u()};k.clone=function(){var a=new D(null);a.K(this.P,this.l.slice(),this.b.slice());return a};k.Ja=function(a,b,c,d){if(d<Na(this.C(),a,b))return d;this.F!=this.f&&(this.G=Math.sqrt(re(this.l,0,this.b,this.a,0)),this.F=this.f);return te(this.l,0,this.b,this.a,this.G,!0,a,b,c,d)};
|
|
91
|
-
k.ob=function(a,b){return De(Me(this),0,this.b,this.a,a,b)};k.Gh=function(){return oe(Me(this),0,this.b,this.a)};k.$=function(a){var b;void 0!==a?(b=Me(this).slice(),Ke(b,0,this.b,this.a,a)):b=this.l;return ye(b,0,this.b,this.a)};k.Ra=function(){return this.b};function Ne(a){if(a.A!=a.f){var b=gb(a.C());a.D=Ee(Me(a),0,a.b,a.a,b,0);a.A=a.f}return a.D}k.gg=function(){return new C(Ne(this))};k.mg=function(){return this.b.length};
|
|
92
|
-
k.ze=function(a){if(0>a||this.b.length<=a)return null;var b=new B(null);le(b,this.P,this.l.slice(a?this.b[a-1]:0,this.b[a]));b.u();return b};k.pd=function(){var a=this.P,b=this.l,c=this.b,d=[],e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],l=new B(null),m=l;le(m,a,b.slice(e,h));m.u();d.push(l);e=h}return d};function Me(a){if(a.U!=a.f){var b=a.l;Je(b,a.b,a.a)?a.j=b:(a.j=b.slice(),a.j.length=Ke(a.j,0,a.b,a.a));a.U=a.f}return a.j}
|
|
93
|
-
k.vb=function(a){var b=[],c=[];b.length=Ae(this.l,0,this.b,this.a,Math.sqrt(a),b,0,c);a=new D(null);a.K("XY",b,c);return a};k.O=function(){return"Polygon"};k.ta=function(a){return He(Me(this),0,this.b,this.a,a)};k.Z=function(a,b){if(a){me(this,b,a,2);this.l||(this.l=[]);var c=we(this.l,0,a,this.a,this.b);this.l.length=c.length?c[c.length-1]:0;this.u()}else this.K("XY",null,this.b)};k.K=function(a,b,c){le(this,a,b);this.b=c;this.u()};
|
|
94
|
-
function Oe(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 D(null);c.K("XY",b,[b.length]);return c};function E(a){Bc.call(this);a=a||{};this.i=[0,0];this.b=[];this.Sc=this.Sc.bind(this);var b={};b.center=void 0!==a.center?a.center:null;this.A=Pb(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=Zd(c);else{d=Pb(a.projection);e=d.C();var h=(e?Math.max(eb(e),fb(e)):360*sb.degrees/d.ib())/256/Math.pow(2,0),l=h/Math.pow(2,28);d=a.maxResolution;void 0!==
|
|
95
|
-
d?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):l);c=f+Math.floor(Math.log(d/e)/Math.log(g));e=d/Math.pow(g,c-f);c=$d(g,d,c-f)}this.a=d;this.j=e;this.D=g;this.g=a.resolutions;this.o=f;(void 0!==a.enableRotation?a.enableRotation:1)?(f=a.constrainRotation,f=void 0===f||!0===f?de():!1===f?be:"number"===typeof f?ce(f):be):f=ae;this.B=new Qc(void 0!==a.extent?lc(a.extent):mc,c,f);void 0!==a.resolution?b.resolution=a.resolution:
|
|
96
|
-
void 0!==a.zoom&&(b.resolution=this.constrainResolution(this.a,a.zoom-this.o));b.rotation=void 0!==a.rotation?a.rotation:0;this.N(b)}v(E,Bc);k=E.prototype;
|
|
97
|
-
k.animate=function(a){var b=Date.now(),c=this.sa().slice(),d=this.ya(),e=this.za(),f=arguments.length,g;1<f&&"function"===typeof arguments[f-1]&&(g=arguments[f-1],--f);for(var h=[],l=0;l<f;++l){var m=arguments[l],n={start:b,complete:!1,anchor:m.anchor,duration:void 0!==m.duration?m.duration:1E3,easing:m.easing||Xc};m.center&&(n.Yd=c,n.$d=m.center,c=n.$d);void 0!==m.zoom?(n.Qc=d,n.Rc=this.constrainResolution(this.a,m.zoom-this.o,0),d=n.Rc):m.resolution&&(n.Qc=d,n.Rc=m.resolution,d=n.Rc);void 0!==m.rotation&&
|
|
98
|
-
(n.Zd=e,n.kf=m.rotation,e=n.kf);n.ic=g;b+=n.duration;h.push(n)}this.b.push(h);Pe(this,0,1);this.Sc()};function cd(a){Pe(a,0,-bd(a)[0]);for(var b=0,c=a.b.length;b<c;++b){var d=a.b[b];d[0].ic&&d[0].ic(!1)}a.b.length=0}
|
|
99
|
-
k.Sc=function(){void 0!==this.s&&(cancelAnimationFrame(this.s),this.s=void 0);if(0<bd(this)[0]){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.Yd){var l=h.Yd[0],m=h.Yd[1];this.set("center",[l+b*(h.$d[0]-l),m+b*(h.$d[1]-m)])}h.Qc&&(l=h.Qc+b*(h.Rc-h.Qc),h.anchor&&this.set("center",Qe(this,l,h.anchor)),this.set("resolution",l));
|
|
100
|
-
void 0!==h.Zd&&(b=h.Zd+b*(h.kf-h.Zd),h.anchor&&this.set("center",Re(this,b,h.anchor)),this.set("rotation",b));b=!0;if(!h.complete)break}}e&&(this.b[c]=null,Pe(this,0,-1),(d=d[0].ic)&&d(!0))}this.b=this.b.filter(Boolean);b&&void 0===this.s&&(this.s=requestAnimationFrame(this.Sc))}};function Re(a,b,c){var d,e=a.sa();void 0!==e&&(d=[e[0]-c[0],e[1]-c[1]],fe(d,b-a.za()),a=d,a[0]+=c[0],a[1]+=c[1]);return d}
|
|
101
|
-
function Qe(a,b,c){var d,e=a.sa();a=a.ya();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}function Se(a){var b=[100,100];a='.ol-viewport[data-view="'+oa(a)+'"]';if(a=document.querySelector(a))a=getComputedStyle(a),b[0]=parseInt(a.width,10),b[1]=parseInt(a.height,10);return b}k.gb=function(a){return this.B.center(a)};k.constrainResolution=function(a,b,c){return this.B.resolution(a,b||0,c||0)};k.constrainRotation=function(a,b){return this.B.rotation(a,b||0)};k.sa=function(){return this.get("center")};
|
|
102
|
-
function bd(a,b){return void 0!==b?(b[0]=a.i[0],b[1]=a.i[1],b):a.i.slice()}k.qe=function(a){a=a||Se(this);var b=this.sa();ra(b,1);var c=this.ya();ra(void 0!==c,2);var d=this.za();ra(void 0!==d,3);return hb(b,c,d,a)};k.xh=function(){return this.a};k.yh=function(){return this.j};k.zh=function(){return this.A};k.ya=function(){return this.get("resolution")};k.Ah=function(){return this.g};function Te(a,b){return Math.max(eb(a)/b[0],fb(a)/b[1])}k.za=function(){return this.get("rotation")};
|
|
103
|
-
k.ia=function(){var a=this.sa(),b=this.A,c=this.ya(),d=this.za();return{center:a.slice(),projection:void 0!==b?b:null,resolution:c,rotation:d}};k.Dg=function(){var a,b=this.ya();if(void 0!==b&&b>=this.j&&b<=this.a){a=this.o||0;var c,d;if(this.g){d=ea(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.D;a+=Math.log(c/b)/Math.log(d)}return a};
|
|
104
|
-
k.Qf=function(a,b){var c=b||{},d=c.size;d||(d=Se(this));var e;a instanceof z?"Circle"===a.O()?(a=a.C(),e=Oe(a),e.rotate(this.za(),gb(a))):e=a:(ra(Array.isArray(a),24),ra(!db(a),25),e=Oe(a));var f=c.padding?c.padding:[0,0,0,0],g=void 0!==c.constrainResolution?c.constrainResolution:!0,h=void 0!==c.nearest?c.nearest:!1,l;void 0!==c.minResolution?l=c.minResolution:void 0!==c.maxZoom?l=this.constrainResolution(this.a,c.maxZoom-this.o,0):l=0;var m=e.l,n=this.za(),p=Math.cos(-n),n=Math.sin(-n),q=Infinity,
|
|
105
|
-
t=Infinity,A=-Infinity,w=-Infinity;e=e.a;for(var F=0,O=m.length;F<O;F+=e)var U=m[F]*p-m[F+1]*n,ha=m[F]*n+m[F+1]*p,q=Math.min(q,U),t=Math.min(t,ha),A=Math.max(A,U),w=Math.max(w,ha);d=Te([q,t,A,w],[d[0]-f[1]-f[3],d[1]-f[0]-f[2]]);d=isNaN(d)?l:Math.max(d,l);g&&(g=this.constrainResolution(d,0,0),!h&&g<d&&(g=this.constrainResolution(g,-1,0)),d=g);n=-n;h=(q+A)/2+(f[1]-f[3])/2*d;f=(t+w)/2+(f[0]-f[2])/2*d;p=[h*p-f*n,f*p+h*n];void 0!==c.duration?this.animate({resolution:d,center:p,duration:c.duration,easing:c.easing}):
|
|
106
|
-
(this.Hb(d),this.Ma(p))};k.Pf=function(a,b,c){var d=this.za(),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.ya(),f=f+(b[0]/2-c[0])*g;a+=(c[1]-b[1]/2)*g;d=-d;this.Ma([f*e-a*d,a*e+f*d])};k.rotate=function(a,b){if(void 0!==b){var c=Re(this,a,b);this.Ma(c)}this.yd(a)};k.Ma=function(a){this.set("center",a);0<bd(this)[0]&&cd(this)};function Pe(a,b,c){a.i[b]+=c;a.u()}k.Hb=function(a){this.set("resolution",a);0<bd(this)[0]&&cd(this)};
|
|
107
|
-
k.yd=function(a){this.set("rotation",a);0<bd(this)[0]&&cd(this)};k.Ti=function(a){a=this.constrainResolution(this.a,a-this.o,0);this.Hb(a)};function Ue(){this.a=[];this.c=this.f=0};function Ve(a){Bc.call(this);this.G=null;this.Da(!0);this.handleEvent=a.handleEvent}v(Ve,Bc);Ve.prototype.ha=function(){return this.get("active")};Ve.prototype.eb=function(){return this.G};Ve.prototype.Da=function(a){this.set("active",a)};Ve.prototype.setMap=function(a){this.G=a};function We(a,b,c,d){if(void 0!==b){var e=a.za(),f=a.sa();void 0!==e&&f&&0<d?a.animate({rotation:b,anchor:c,duration:d,easing:Wc}):a.rotate(b,c)}}
|
|
108
|
-
function Xe(a,b,c,d){var e=a.ya();b=a.constrainResolution(e,b,0);if(c&&void 0!==b&&b!==e){var f=a.sa();c=Qe(a,b,c);c=a.gb(c);c=[(b*f[0]-e*c[0])/(b-e),(b*f[1]-e*c[1])/(b-e)]}Ye(a,b,c,d)}function Ye(a,b,c,d){if(b){var e=a.ya(),f=a.sa();void 0!==e&&f&&b!==e&&d?a.animate({resolution:b,anchor:c,duration:d,easing:Wc}):(c&&(c=Qe(a,b,c),a.Ma(c)),a.Hb(b))}};function Ze(a){a=a?a:{};this.a=a.delta?a.delta:1;Ve.call(this,{handleEvent:$e});this.b=void 0!==a.duration?a.duration:250}v(Ze,Ve);function $e(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.da();Xe(d,c,b,this.b);a.preventDefault();b=!0}return!b};function af(a){a=a.originalEvent;return a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}function bf(a){a=a.originalEvent;return!a.button&&!(kd&&ld&&a.ctrlKey)}function cf(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&!a.shiftKey}function df(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}function ef(a){a=a.originalEvent.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a}function ff(a){ra(a.a,56);return"mouse"==a.a.pointerType};function gf(a){a=a?a:{};Ve.call(this,{handleEvent:a.handleEvent?a.handleEvent:hf});this.Yc=a.handleDownEvent?a.handleDownEvent:he;this.Zc=a.handleDragEvent?a.handleDragEvent:na;this.Vc=a.handleMoveEvent?a.handleMoveEvent:na;this.Df=a.handleUpEvent?a.handleUpEvent:he;this.A=!1;this.U={};this.g=[]}v(gf,Ve);function jf(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return[c/b,d/b]}
|
|
109
|
-
function hf(a){if(!(a instanceof gd))return!0;var b=!1,c=a.type;if("pointerdown"===c||"pointerdrag"===c||"pointerup"===c)c=a.a,"pointerup"==a.type?delete this.U[c.pointerId]:"pointerdown"==a.type?this.U[c.pointerId]=c:c.pointerId in this.U&&(this.U[c.pointerId]=c),this.g=nb(this.U);this.A?"pointerdrag"==a.type?this.Zc(a):"pointerup"==a.type&&(this.A=this.Df(a)&&0<this.g.length):"pointerdown"==a.type?(this.A=a=this.Yc(a),b=this.Ib(a)):"pointermove"==a.type&&this.Vc(a);return!b}gf.prototype.Ib=function(a){return a};function kf(a){gf.call(this,{handleDownEvent:lf,handleDragEvent:mf,handleUpEvent:nf});a=a?a:{};this.a=a.kinetic;this.b=null;this.j=a.condition?a.condition:cf;this.i=!1}v(kf,gf);function mf(a){var b=jf(this.g);this.a&&this.a.a.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.da();var e=a.ia(),d=c=[c,d],f=e.resolution;d[0]*=f;d[1]*=f;fe(c,e.rotation);d=c;e=e.center;d[0]+=e[0];d[1]+=e[1];c=a.gb(c);a.Ma(c)}this.b=b}
|
|
110
|
-
function nf(a){var b=a.map;a=b.da();if(this.g.length)return this.a&&(a=this.a,a.a.length=0,a.f=0,a.c=0),this.b=null,!0;var c;if(c=!this.i&&this.a)if(c=this.a,6>c.a.length)c=!1;else{var d=Date.now()-100,e=c.a.length-3;if(c.a[e+2]<d)c=!1;else{for(var f=e-3;0<f&&c.a[f+2]>d;)f-=3;var d=c.a[e+2]-c.a[f+2],g=c.a[e]-c.a[f],e=c.a[e+1]-c.a[f+1];c.f=Math.atan2(e,g);c.c=Math.sqrt(g*g+e*e)/d;c=.05<c.c}}c&&(c=(.05-this.a.c)/-.005,e=this.a.f,f=a.sa(),f=b.Vb(f),b=b.Qa([f[0]-c*Math.cos(e),f[1]-c*Math.sin(e)]),a.animate({center:a.gb(b),
|
|
111
|
-
duration:500,easing:Wc}));Pe(a,1,-1);return!1}function lf(a){if(0<this.g.length&&this.j(a)){var b=a.map.da();this.b=null;this.A||Pe(b,1,1);bd(b)[0]&&b.Ma(a.frameState.viewState.center);this.a&&(a=this.a,a.a.length=0,a.f=0,a.c=0);this.i=1<this.g.length;return!0}return!1}kf.prototype.Ib=he;function of(a){a=a?a:{};gf.call(this,{handleDownEvent:pf,handleDragEvent:qf,handleUpEvent:rf});this.b=a.condition?a.condition:af;this.a=void 0;this.i=void 0!==a.duration?a.duration:250}v(of,gf);function qf(a){if(ff(a)){var b=a.map,c=b.yc();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.da(),d=b.za();We(b,d-a)}this.a=c}}function rf(a){if(!ff(a))return!0;a=a.map.da();Pe(a,1,-1);var b=a.za(),c=this.i,b=a.constrainRotation(b,0);We(a,b,void 0,c);return!1}
|
|
112
|
-
function pf(a){return ff(a)&&bf(a)&&this.b(a)?(Pe(a.map.da(),1,1),this.a=void 0,!0):!1}of.prototype.Ib=he;function sf(a){this.hb=null;this.c=document.createElement("div");this.c.style.position="absolute";this.c.className="ol-box "+a;this.f=this.b=this.a=null}v(sf,uc);sf.prototype.qa=function(){this.setMap(null)};function tf(a){var b=a.b,c=a.f;a=a.c.style;a.left=Math.min(b[0],c[0])+"px";a.top=Math.min(b[1],c[1])+"px";a.width=Math.abs(c[0]-b[0])+"px";a.height=Math.abs(c[1]-b[1])+"px"}
|
|
113
|
-
sf.prototype.setMap=function(a){if(this.a){this.a.G.removeChild(this.c);var b=this.c.style;b.left=b.top=b.width=b.height="inherit"}(this.a=a)&&this.a.G.appendChild(this.c)};function uf(a){var b=a.b,c=a.f,b=[b,[b[0],c[1]],c,[c[0],b[1]]].map(a.a.Qa,a.a);b[4]=b[0].slice();a.hb?a.hb.Z([b]):a.hb=new D([b])}sf.prototype.L=function(){return this.hb};function vf(a){gf.call(this,{handleDownEvent:wf,handleDragEvent:xf,handleUpEvent:yf});a=a?a:{};this.a=new sf(a.className||"ol-dragbox");this.b=null;this.o=a.condition?a.condition:ge;this.j=a.boxEndCondition?a.boxEndCondition:zf}v(vf,gf);function zf(a,b,c){a=c[0]-b[0];b=c[1]-b[1];return 64<=a*a+b*b}function xf(a){if(ff(a)){var b=this.a,c=a.pixel;b.b=this.b;b.f=c;uf(b);tf(b);this.c(new Af(Bf,a.coordinate,a))}}vf.prototype.L=function(){return this.a.L()};vf.prototype.i=na;
|
|
114
|
-
function yf(a){if(!ff(a))return!0;this.a.setMap(null);this.j(a,this.b,a.pixel)&&(this.i(a),this.c(new Af(Cf,a.coordinate,a)));return!1}function wf(a){if(ff(a)&&bf(a)&&this.o(a)){this.b=a.pixel;this.a.setMap(a.map);var b=this.a,c=this.b;b.b=this.b;b.f=c;uf(b);tf(b);this.c(new Af(Df,a.coordinate,a));return!0}return!1}var Df="boxstart",Bf="boxdrag",Cf="boxend";function Af(a,b,c){wc.call(this,a);this.coordinate=b;this.mapBrowserEvent=c}v(Af,wc);function Ef(a){a=a?a:{};var b=a.condition?a.condition:df;this.s=void 0!==a.duration?a.duration:200;this.B=void 0!==a.out?a.out:!1;vf.call(this,{condition:b,className:a.className||"ol-dragzoom"})}v(Ef,vf);
|
|
115
|
-
Ef.prototype.i=function(){var a=this.G,b=a.da(),c=a.yc(),d=this.L().C();if(this.B){var e=b.qe(c),d=[a.Vb(Ya(d)),a.Vb(ab(d))],a=Ta(void 0),f,g;f=0;for(g=d.length;f<g;++f)Ka(a,d[f]);a=1/Te(a,c);d=(e[2]-e[0])/2*(a-1);a=(e[3]-e[1])/2*(a-1);e[0]-=d;e[2]+=d;e[1]-=a;e[3]+=a;d=e}c=b.constrainResolution(Te(d,c));e=gb(d);e=b.gb(e);b.animate({resolution:c,center:e,duration:this.s,easing:Wc})};function Ff(a){Ve.call(this,{handleEvent:Gf});a=a||{};this.a=function(a){return cf(a)&&ef(a)};this.b=a.condition?a.condition:this.a;this.g=void 0!==a.duration?a.duration:100;this.i=void 0!==a.pixelDelta?a.pixelDelta:128}v(Ff,Ve);
|
|
116
|
-
function Gf(a){var b=!1;if("keydown"==a.type){var c=a.originalEvent.keyCode;if(this.b(a)&&(40==c||37==c||39==c||38==c)){var b=a.map.da(),d=b.ya()*this.i,e=0,f=0;40==c?f=-d:37==c?e=-d:39==c?e=d:f=d;d=[e,f];fe(d,b.za());c=this.g;if(e=b.sa())d=b.gb([e[0]+d[0],e[1]+d[1]]),c?b.animate({duration:c,easing:Yc,center:d}):b.Ma(d);a.preventDefault();b=!0}}return!b};function Hf(a){Ve.call(this,{handleEvent:If});a=a?a:{};this.b=a.condition?a.condition:ef;this.a=a.delta?a.delta:1;this.g=void 0!==a.duration?a.duration:100}v(Hf,Ve);function If(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.da(),Xe(c,b,void 0,this.g),a.preventDefault(),b=!0)}return!b};function Jf(a){Ve.call(this,{handleEvent:Kf});a=a||{};this.g=0;this.A=void 0!==a.duration?a.duration:250;this.D=void 0!==a.timeout?a.timeout:80;this.F=void 0!==a.useAnchor?a.useAnchor:!0;this.a=null;this.j=this.i=this.o=this.b=void 0}v(Jf,Ve);
|
|
117
|
-
function Kf(a){var b=a.type;if("wheel"!==b&&"mousewheel"!==b)return!0;a.preventDefault();var b=a.map,c=a.originalEvent;this.F&&(this.a=a.coordinate);var d;"wheel"==a.type?(d=c.deltaY,id&&c.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(d/=md),c.deltaMode===WheelEvent.DOM_DELTA_LINE&&(d*=40)):"mousewheel"==a.type&&(d=-c.wheelDeltaY,jd&&(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)?Lf:Mf;if(this.i===Lf){b=b.da();this.j?clearTimeout(this.j):
|
|
118
|
-
Pe(b,1,1);this.j=setTimeout(this.s.bind(this),400);d=b.ya()*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=Qe(b,d,this.a);b.Ma(b.gb(g))}b.Hb(d);0<f?b.animate({resolution:c,easing:Wc,anchor:this.a,duration:500}):0>f&&b.animate({resolution:e,easing:Wc,anchor:this.a,duration:500});this.b=a;return!1}this.g+=d;a=Math.max(this.D-(a-this.b),0);clearTimeout(this.o);this.o=setTimeout(this.B.bind(this,b),a);return!1}
|
|
119
|
-
Jf.prototype.s=function(){this.j=void 0;Pe(this.G.da(),1,-1)};Jf.prototype.B=function(a){a=a.da();0<bd(a)[0]&&cd(a);Xe(a,-Aa(this.g,-1,1),this.a,this.A);this.i=void 0;this.g=0;this.a=null;this.o=this.b=void 0};var Lf="trackpad",Mf="wheel";function Nf(a){gf.call(this,{handleDownEvent:Of,handleDragEvent:Pf,handleUpEvent:Qf});a=a||{};this.b=null;this.i=void 0;this.a=!1;this.j=0;this.s=void 0!==a.threshold?a.threshold:.3;this.o=void 0!==a.duration?a.duration:250}v(Nf,gf);
|
|
120
|
-
function Pf(a){var b=0,c=this.g[0],d=this.g[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);void 0!==this.i&&(b=c-this.i,this.j+=b,!this.a&&Math.abs(this.j)>this.s&&(this.a=!0));this.i=c;a=a.map;c=a.a.getBoundingClientRect();d=jf(this.g);d[0]-=c.left;d[1]-=c.top;this.b=a.Qa(d);this.a&&(c=a.da(),d=c.za(),a.render(),We(c,d+b,this.b))}
|
|
121
|
-
function Qf(a){if(2>this.g.length){a=a.map.da();Pe(a,1,-1);if(this.a){var b=a.za(),c=this.b,d=this.o,b=a.constrainRotation(b,0);We(a,b,c,d)}return!1}return!0}function Of(a){return 2<=this.g.length?(a=a.map,this.b=null,this.i=void 0,this.a=!1,this.j=0,this.A||Pe(a.da(),1,1),!0):!1}Nf.prototype.Ib=he;function Rf(a){gf.call(this,{handleDownEvent:Sf,handleDragEvent:Tf,handleUpEvent:Uf});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.i=1}v(Rf,gf);
|
|
122
|
-
function Tf(a){var b=1,c=this.g[0],d=this.g[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;a=a.map;var e=a.da(),d=e.ya(),f=e.a,g=e.j,c=d*b;c>f?(b=f/d,c=f):c<g&&(b=g/d,c=g);1!=b&&(this.i=b);b=a.a.getBoundingClientRect();d=jf(this.g);d[0]-=b.left;d[1]-=b.top;this.b=a.Qa(d);a.render();Ye(e,c,this.b)}
|
|
123
|
-
function Uf(a){if(2>this.g.length){a=a.map.da();Pe(a,1,-1);var b=a.ya();if(this.j||b<a.j||b>a.a){var c=this.b,d=this.o,b=a.constrainResolution(b,0,this.i-1);Ye(a,b,c,d)}return!1}return!0}function Sf(a){return 2<=this.g.length?(a=a.map,this.b=null,this.a=void 0,this.i=1,this.A||Pe(a.da(),1,1),!0):!1}Rf.prototype.Ib=he;function Vf(a){a=a?a:{};var b=new y,c=new Ue;(void 0!==a.altShiftDragRotate?a.altShiftDragRotate:1)&&b.push(new of);(void 0!==a.doubleClickZoom?a.doubleClickZoom:1)&&b.push(new Ze({delta:a.zoomDelta,duration:a.zoomDuration}));(void 0!==a.dragPan?a.dragPan:1)&&b.push(new kf({kinetic:c}));(void 0!==a.pinchRotate?a.pinchRotate:1)&&b.push(new Nf);(void 0!==a.pinchZoom?a.pinchZoom:1)&&b.push(new Rf({duration:a.zoomDuration}));if(void 0!==a.keyboard?a.keyboard:1)b.push(new Ff),b.push(new Hf({delta:a.zoomDelta,
|
|
124
|
-
duration:a.zoomDuration}));(void 0!==a.mouseWheelZoom?a.mouseWheelZoom:1)&&b.push(new Jf({duration:a.zoomDuration}));(void 0!==a.shiftDragZoom?a.shiftDragZoom:1)&&b.push(new Ef({duration:a.zoomDuration}));return b};function Wf(a){Bc.call(this);var b=lb({},a);b.opacity=void 0!==a.opacity?a.opacity:1;b.visible=void 0!==a.visible?a.visible:!0;b.zIndex=void 0!==a.zIndex?a.zIndex:0;b.maxResolution=void 0!==a.maxResolution?a.maxResolution:Infinity;b.minResolution=void 0!==a.minResolution?a.minResolution:0;this.N(b);this.a={layer:this,wd:!0}}v(Wf,Bc);
|
|
125
|
-
function Xf(a){a.a.opacity=Aa(a.Bc(),0,1);a.a.Vi=a.sd();a.a.visible=a.wb();a.a.extent=a.C();a.a.zIndex=a.na();a.a.maxResolution=a.zc();a.a.minResolution=Math.max(a.Ac(),0);return a.a}k=Wf.prototype;k.C=function(){return this.get("extent")};k.zc=function(){return this.get("maxResolution")};k.Ac=function(){return this.get("minResolution")};k.Bc=function(){return this.get("opacity")};k.wb=function(){return this.get("visible")};k.na=function(){return this.get("zIndex")};
|
|
126
|
-
k.Bd=function(a){this.set("extent",a)};k.Td=function(a){this.set("maxResolution",a)};k.Ud=function(a){this.set("minResolution",a)};k.Cd=function(a){this.set("opacity",a)};k.Dd=function(a){this.set("visible",a)};k.$b=function(a){this.set("zIndex",a)};function Yf(a){var b=a||{};a=lb({},b);delete a.layers;b=b.layers;Wf.call(this,a);this.g=[];this.b={};x(this,Dc(Zf),this.Jg,this);b?Array.isArray(b)?b=new y(b.slice()):ra(b instanceof y,43):b=new y;this.Je(b)}v(Yf,Wf);k=Yf.prototype;k.hd=function(){};k.wc=function(){this.wb()&&this.u()};
|
|
127
|
-
k.Jg=function(){this.g.forEach(oc);this.g.length=0;var a=this.Ab();this.g.push(x(a,"add",this.Ig,this),x(a,"remove",this.Kg,this));for(var b in this.b)this.b[b].forEach(oc);mb(this.b);var a=a.a,c,d;b=0;for(c=a.length;b<c;b++)d=a[b],this.b[oa(d).toString()]=[x(d,"propertychange",this.wc,this),x(d,"change",this.wc,this)];this.u()};k.Ig=function(a){a=a.element;var b=oa(a).toString();this.b[b]=[x(a,"propertychange",this.wc,this),x(a,"change",this.wc,this)];this.u()};
|
|
128
|
-
k.Kg=function(a){a=oa(a.element).toString();this.b[a].forEach(oc);delete this.b[a];this.u()};k.Ab=function(){return this.get(Zf)};k.Je=function(a){this.set(Zf,a)};
|
|
129
|
-
k.od=function(a){var b=void 0!==a?a:[],c=b.length;this.Ab().forEach(function(a){a.od(b)});a=Xf(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?ib(e.extent,a.extent):a.extent);return b};k.sd=function(){return"ready"};var Zf="layers";function $f(a){vb.call(this,{code:a,units:"m",extent:ag,global:!0,worldExtent:bg,getPointResolution:function(a,c){return a/Ba(c[1]/6378137)}})}v($f,vb);var cg=6378137*Math.PI,ag=[-cg,-cg,cg,cg],bg=[-180,-85,180,85],Kb="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 $f(a)});
|
|
130
|
-
function Lb(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]=cg*a[e]/180;var f=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));f>cg?f=cg:f<-cg&&(f=-cg);b[e+1]=f}return b}function Mb(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]/cg,b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b};var dg=new pb(6378137);function eg(a,b){vb.call(this,{code:a,units:"degrees",extent:fg,axisOrientation:b,global:!0,metersPerUnit:gg,worldExtent:fg})}v(eg,vb);var fg=[-180,-90,180,90],gg=Math.PI*dg.radius/180,Nb=[new eg("CRS:84"),new eg("EPSG:4326","neu"),new eg("urn:ogc:def:crs:EPSG::4326","neu"),new eg("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new eg("urn:ogc:def:crs:OGC:1.3:CRS84"),new eg("urn:ogc:def:crs:OGC:2:84"),new eg("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new eg("urn:x-ogc:def:crs:EPSG:4326","neu")];function hg(){Gb(Kb);Gb(Nb);Jb()};function ig(a){var b=lb({},a);delete b.source;Wf.call(this,b);this.i=this.g=this.b=null;a.map&&this.setMap(a.map);x(this,Dc("source"),this.Og,this);this.Xd(a.source?a.source:null)}v(ig,Wf);k=ig.prototype;k.od=function(a){a=a?a:[];a.push(Xf(this));return a};k.Aa=function(){return this.get("source")||null};k.sd=function(){var a=this.Aa();return a?a.ia():"undefined"};k.Ih=function(){this.u()};k.Og=function(){this.i&&(oc(this.i),this.i=null);var a=this.Aa();a&&(this.i=x(a,"change",this.Ih,this));this.u()};
|
|
131
|
-
k.setMap=function(a){this.b&&(oc(this.b),this.b=null);a||this.u();this.g&&(oc(this.g),this.g=null);a&&(this.b=x(a,"precompose",function(a){var b=Xf(this);b.wd=!1;b.zIndex=Infinity;a.frameState.layerStatesArray.push(b);a.frameState.layerStates[oa(this)]=b},this),this.g=x(this,"change",a.render,a),this.u())};k.Xd=function(a){this.set("source",a)};function jg(){this.a={};this.c=0}jg.prototype.clear=function(){this.a={};this.c=0};jg.prototype.get=function(a,b,c){a=b+":"+a+":"+(c?Mc(c):"null");return a in this.a?this.a[a]:null};jg.prototype.set=function(a,b,c,d){this.a[b+":"+a+":"+(c?Mc(c):"null")]=d;++this.c};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 l=Math.sin(f);f=Math.cos(f);a[0]=d*f;a[1]=e*l;a[2]=-d*l;a[3]=e*f;a[4]=g*d*f-h*d*l+b;a[5]=g*e*l+h*e*f+c;return a};function pg(a,b){this.i=b;this.c={};this.b={}}v(pg,uc);k=pg.prototype;k.qa=function(){for(var a in this.c)vc(this.c[a])};function qg(){if(32<kg.c){var a=0,b,c;for(b in kg.a)c=kg.a[b],a++&3||zc(c)||(delete kg.a[b],--kg.c)}}
|
|
132
|
-
k.Ga=function(a,b,c,d,e,f,g){function h(a,c){var f=oa(a).toString(),g=b.layerStates[oa(c)].wd;if(!(f in b.skippedFeatureUids)||g)return d.call(e,a,g?c:null)}var l,m=b.viewState,n=m.resolution,p=m.projection,m=a;if(p.a){var p=p.C(),q=eb(p),t=a[0];if(t<p[0]||t>p[2])m=[t+q*Math.ceil((p[0]-t)/q),a[1]]}p=b.layerStatesArray;for(q=p.length-1;0<=q;--q){var A=p[q],t=A.layer;if(A.visible&&n>=A.minResolution&&n<A.maxResolution&&f.call(g,t)&&(A=rg(this,t),t.Aa()&&(l=A.Ga(t.Aa().A?m:a,b,c,h,e)),l))return l}};
|
|
133
|
-
function rg(a,b){var c=oa(b).toString();if(c in a.c)return a.c[c];var d=b.hd(a);a.c[c]=d;a.b[c]=x(d,"change",a.Hg,a);return d}k.Hg=function(){this.i.render()};k.Ze=na;k.zi=function(a,b){for(var c in this.c)if(!(b&&c in b.layerStates)){var d=c,e=this.c[d];delete this.c[d];oc(this.b[d]);delete this.b[d];vc(e)}};function la(a,b){return a.zIndex-b.zIndex};function sg(a,b,c,d,e){wc.call(this,a);this.vectorContext=b;this.frameState=c;this.context=d;this.glContext=e}v(sg,wc);var tg=[0,0,0,1],ug=[],vg=[0,0,0,1];function wg(a,b,c,d){b&&(a.translate(c,d),a.rotate(b),a.translate(-c,-d))};function xg(){}k=xg.prototype;k.kc=function(){};k.Ed=function(){};k.Sb=function(){};k.te=function(){};k.ue=function(){};k.lc=function(){};k.mc=function(){};k.nc=function(){};k.oc=function(){};k.pc=function(){};k.qc=function(){};k.$a=function(){};k.Va=function(){};k.Zb=function(){};k.Oa=function(){};function yg(a,b,c,d,e){this.f=a;this.B=b;this.b=c;this.V=d;this.eb=e;this.J=this.a=this.c=this.ha=this.U=this.Ca=null;this.oa=this.Ia=this.o=this.D=this.A=this.W=0;this.va=!1;this.g=this.Da=0;this.bb=!1;this.F=0;this.ka="";this.Xa=this.Wa=0;this.Ya=!1;this.j=this.Za=0;this.G=this.v=this.i=null;this.s=[];this.cb=lg()}v(yg,xg);
|
|
134
|
-
function zg(a,b,c){if(a.J){b=je(b,0,c,2,a.V,a.s);c=a.f;var d=a.cb,e=c.globalAlpha;1!=a.o&&(c.globalAlpha=e*a.o);var f=a.Da;a.va&&(f+=a.eb);var g,h;g=0;for(h=b.length;g<h;g+=2){var l=b[g]-a.W,m=b[g+1]-a.A;a.bb&&(l=Math.round(l),m=Math.round(m));if(f||1!=a.g){var n=l+a.W,p=m+a.A;og(d,n,p,a.g,a.g,f,-n,-p);c.setTransform.apply(c,d)}c.drawImage(a.J,a.Ia,a.oa,a.F,a.D,l,m,a.F,a.D)}(f||1!=a.g)&&c.setTransform(1,0,0,1,0,0);1!=a.o&&(c.globalAlpha=e)}}
|
|
135
|
-
function Ag(a,b,c,d){var e=0;if(a.G&&""!==a.ka){a.i&&Bg(a,a.i);a.v&&Cg(a,a.v);var f=a.G,g=a.f,h=a.ha;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.ha={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline});b=je(b,e,c,d,a.V,a.s);f=a.f;g=a.Za;for(a.Ya&&(g+=a.eb);e<c;e+=d){var h=b[e]+
|
|
136
|
-
a.Wa,l=b[e+1]+a.Xa;if(g||1!=a.j){var m=og(a.cb,h,l,a.j,a.j,g,-h,-l);f.setTransform.apply(f,m)}a.v&&f.strokeText(a.ka,h,l);a.i&&f.fillText(a.ka,h,l)}(g||1!=a.j)&&f.setTransform(1,0,0,1,0,0)}}function Dg(a,b,c,d,e,f){var g=a.f;a=je(b,c,d,e,a.V,a.s);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 Eg(a,b,c,d,e){var f,g;f=0;for(g=d.length;f<g;++f)c=Dg(a,b,c,d[f],e,!0);return c}k=yg.prototype;
|
|
137
|
-
k.Sb=function(a){if(jb(this.b,a.C())){if(this.c||this.a){this.c&&Bg(this,this.c);this.a&&Cg(this,this.a);var b;b=this.V;var c=this.s,d=a.l;b=d?je(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.f;d.beginPath();d.arc(b[0],b[1],c,0,2*Math.PI);this.c&&d.fill();this.a&&d.stroke()}""!==this.ka&&Ag(this,a.sa(),2,2)}};k.Ed=function(a){this.Va(a.aa(),a.ca());this.Zb(a.X());this.Oa(a.ma())};
|
|
138
|
-
k.kc=function(a){switch(a.O()){case "Point":this.pc(a);break;case "LineString":this.lc(a);break;case "Polygon":this.qc(a);break;case "MultiPoint":this.nc(a);break;case "MultiLineString":this.mc(a);break;case "MultiPolygon":this.oc(a);break;case "GeometryCollection":this.ue(a);break;case "Circle":this.Sb(a)}};k.te=function(a,b){var c=(0,b.wa)(a);c&&jb(this.b,c.C())&&(this.Ed(b),this.kc(c))};k.ue=function(a){a=a.a;var b,c;b=0;for(c=a.length;b<c;++b)this.kc(a[b])};
|
|
139
|
-
k.pc=function(a){var b=a.l;a=a.a;this.J&&zg(this,b,b.length);""!==this.ka&&Ag(this,b,b.length,a)};k.nc=function(a){var b=a.l;a=a.a;this.J&&zg(this,b,b.length);""!==this.ka&&Ag(this,b,b.length,a)};k.lc=function(a){if(jb(this.b,a.C())){if(this.a){Cg(this,this.a);var b=this.f,c=a.l;b.beginPath();Dg(this,c,0,c.length,a.a,!1);b.stroke()}""!==this.ka&&(a=Fg(a),Ag(this,a,2,2))}};
|
|
140
|
-
k.mc=function(a){var b=a.C();if(jb(this.b,b)){if(this.a){Cg(this,this.a);var b=this.f,c=a.l,d=0,e=a.Ra(),f=a.a;b.beginPath();var g,h;g=0;for(h=e.length;g<h;++g)d=Dg(this,c,d,e[g],f,!1);b.stroke()}""!==this.ka&&(a=Gg(a),Ag(this,a,a.length,2))}};k.qc=function(a){if(jb(this.b,a.C())){if(this.a||this.c){this.c&&Bg(this,this.c);this.a&&Cg(this,this.a);var b=this.f;b.beginPath();Eg(this,Me(a),0,a.Ra(),a.a);this.c&&b.fill();this.a&&b.stroke()}""!==this.ka&&(a=Ne(a),Ag(this,a,2,2))}};
|
|
141
|
-
k.oc=function(a){if(jb(this.b,a.C())){if(this.a||this.c){this.c&&Bg(this,this.c);this.a&&Cg(this,this.a);var b=this.f,c=Hg(a),d=0,e=a.b,f=a.a,g,h;b.beginPath();g=0;for(h=e.length;g<h;++g)d=Eg(this,c,d,e[g],f);this.c&&b.fill();this.a&&b.stroke()}""!==this.ka&&(a=Ig(a),Ag(this,a,a.length,2))}};function Bg(a,b){var c=a.f,d=a.Ca;d?d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle):(c.fillStyle=b.fillStyle,a.Ca={fillStyle:b.fillStyle})}
|
|
142
|
-
function Cg(a,b){var c=a.f,d=a.U;d?(d.lineCap!=b.lineCap&&(d.lineCap=c.lineCap=b.lineCap),nd&&!ja(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,nd&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=
|
|
143
|
-
b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.U={lineCap:b.lineCap,lineDash:b.lineDash,lineJoin:b.lineJoin,lineWidth:b.lineWidth,miterLimit:b.miterLimit,strokeStyle:b.strokeStyle})}
|
|
144
|
-
k.Va=function(a,b){if(a){var c=a.a;this.c={fillStyle:Pc(c?c:tg)}}else this.c=null;if(b){var c=b.c,d=b.g,e=b.f,f=b.v,g=b.i,h=b.b,l=b.j;this.a={lineCap:void 0!==d?d:"round",lineDash:e?e:ug,lineDashOffset:f?f:0,lineJoin:void 0!==g?g:"round",lineWidth:this.B*(void 0!==h?h:1),miterLimit:void 0!==l?l:10,strokeStyle:Pc(c?c:vg)}}else this.a=null};
|
|
145
|
-
k.Zb=function(a){if(a){var b=a.tb(),c=a.X(1),d=a.Bb(),e=a.ab();this.W=b[0];this.A=b[1];this.D=e[1];this.J=c;this.o=a.j;this.Ia=d[0];this.oa=d[1];this.va=a.B;this.Da=a.v;this.g=a.g;this.bb=a.o;this.F=e[0]}else this.J=null};
|
|
146
|
-
k.Oa=function(a){if(a){var b=a.aa();b?(b=b.a,this.i={fillStyle:Pc(b?b:tg)}):this.i=null;var c=a.ca();if(c){var b=c.c,d=c.g,e=c.f,f=c.v,g=c.i,h=c.b,c=c.j;this.v={lineCap:void 0!==d?d:"round",lineDash:e?e:ug,lineDashOffset:f?f:0,lineJoin:void 0!==g?g:"round",lineWidth:void 0!==h?h:1,miterLimit:void 0!==c?c:10,strokeStyle:Pc(b?b:vg)}}else this.v=null;var b=a.c,d=a.f,e=a.b,f=a.v,g=a.g,h=a.a,c=a.ma(),l=a.i;a=a.j;this.G={font:void 0!==b?b:"10px sans-serif",textAlign:void 0!==l?l:"center",textBaseline:void 0!==
|
|
147
|
-
a?a:"middle"};this.ka=void 0!==c?c:"";this.Wa=void 0!==d?this.B*d:0;this.Xa=void 0!==e?this.B*e:0;this.Ya=void 0!==f?f:!1;this.Za=void 0!==g?g:0;this.j=this.B*(void 0!==h?h:1)}else this.ka=""};function Jg(a,b){pg.call(this,0,b);this.g=Rc();this.a=this.g.canvas;this.a.style.width="100%";this.a.style.height="100%";this.a.style.display="block";this.a.className="ol-unselectable";a.insertBefore(this.a,a.childNodes[0]||null);this.f=!0;this.j=lg()}v(Jg,pg);
|
|
148
|
-
function Kg(a,b,c){var d=a.i,e=a.g;if(zc(d,b)){var f=c.extent,g=c.pixelRatio,h=c.viewState.rotation,l=c.viewState,m=c.pixelRatio/l.resolution;a=og(a.j,a.a.width/2,a.a.height/2,m,-m,-l.rotation,-l.center[0],-l.center[1]);d.c(new sg(b,new yg(e,g,f,a,h),c,e,null))}}Jg.prototype.O=function(){return"canvas"};
|
|
149
|
-
Jg.prototype.Ze=function(a){if(a){var b=this.g,c=a.pixelRatio,d=Math.round(a.size[0]*c),c=Math.round(a.size[1]*c);this.a.width!=d||this.a.height!=c?(this.a.width=d,this.a.height=c):b.clearRect(0,0,d,c);var e=a.viewState.rotation,f=a.viewState,g=a.coordinateToPixelTransform,h=a.pixelToCoordinateTransform;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];ra(!!g,32);var h=f[0],l=f[1],m=f[2],n=f[3],p=f[4],q=f[5];f[0]=n/g;
|
|
150
|
-
f[1]=-l/g;f[2]=-m/g;f[3]=h/g;f[4]=(m*q-n*p)/g;f[5]=-(h*q-l*p)/g;Kg(this,"precompose",a);f=a.layerStatesArray;ka(f);wg(b,e,d/2,c/2);g=a.viewState.resolution;h=0;for(l=f.length;h<l;++h)m=f[h],n=m.layer,n=rg(this,n),m.visible&&g>=m.minResolution&&g<m.maxResolution&&"ready"==m.Vi&&n.A(a,m)&&n.B(a,m,b);wg(b,-e,d/2,c/2);Kg(this,"postcompose",a);this.f||(this.a.style.display="",this.f=!0);for(var t in this.c)if(!(t in a.layerStates)){a.postRenderFunctions.push(this.zi.bind(this));break}a.postRenderFunctions.push(qg)}else this.f&&
|
|
151
|
-
(this.a.style.display="none",this.f=!1)};var Lg=["Polygon","Circle","LineString","Image","Text"];function Mg(){};function Ng(a){a=a||{};this.c=void 0!==a.color?a.color:null;this.g=a.lineCap;this.f=void 0!==a.lineDash?a.lineDash:null;this.v=a.lineDashOffset;this.i=a.lineJoin;this.j=a.miterLimit;this.b=a.width;this.a=void 0}k=Ng.prototype;k.clone=function(){var a=this.c;return new Ng({color:a&&a.slice?a.slice():a||void 0,lineCap:this.g,lineDash:this.f?this.f.slice():void 0,lineDashOffset:this.v,lineJoin:this.i,miterLimit:this.j,width:this.b})};k.Qh=function(){return this.c};k.ig=function(){return this.g};
|
|
152
|
-
k.Rh=function(){return this.f};k.jg=function(){return this.v};k.kg=function(){return this.i};k.ng=function(){return this.j};k.Sh=function(){return this.b};k.Th=function(a){this.c=a;this.a=void 0};k.Ii=function(a){this.g=a;this.a=void 0};k.setLineDash=function(a){this.f=a;this.a=void 0};k.Ji=function(a){this.v=a;this.a=void 0};k.Ki=function(a){this.i=a;this.a=void 0};k.Li=function(a){this.j=a;this.a=void 0};k.Ri=function(a){this.b=a;this.a=void 0};var Og;
|
|
153
|
-
(function(){var a={},b={T:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.T=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.uj=c()}})(function(){return function d(a,b,g){function e(h,l){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!l&&m)return m(h,!0);if(f)return f(h,!0);m=Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m;}m=b[h]={T:{}};a[h][0].call(m.T,function(b){var d=
|
|
154
|
-
a[h][1][b];return e(d?d:b)},m,m.T,d,a,b,g)}return b[h].T}for(var f="function"==typeof require&&require,m=0;m<g.length;m++)e(g[m]);return e}({1:[function(a,b){function d(a,b,f,g,q){f=f||0;g=g||a.length-1;for(q=q||h;g>f;){if(600<g-f){var l=g-f+1,m=b-f+1,n=Math.log(l),p=.5*Math.exp(2*n/3),n=.5*Math.sqrt(n*p*(l-p)/l)*(0>m-l/2?-1:1);d(a,b,Math.max(f,Math.floor(b-m*p/l+n)),Math.min(g,Math.floor(b+(l-m)*p/l+n)),q)}l=a[b];m=f;p=g;e(a,f,b);for(0<q(a[g],l)&&e(a,f,g);m<p;){e(a,m,p);m++;for(p--;0>q(a[m],l);)m++;
|
|
155
|
-
for(;0<q(a[p],l);)p--}0===q(a[f],l)?e(a,f,p):(p++,e(a,p,g));p<=b&&(f=p+1);b<=p&&(g=p-1)}}function e(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.T=d},{}],2:[function(a,b){function d(a,b){if(!(this instanceof d))return new d(a,b);this.bd=Math.max(4,a||9);this.je=Math.max(2,Math.ceil(.4*this.bd));b&&this.yf(b);this.clear()}function e(a,b){h(a,0,a.children.length,b,a)}function h(a,b,d,e,f){f||(f=w(null));f.I=Infinity;f.R=Infinity;f.M=-Infinity;f.S=-Infinity;for(var g;b<
|
|
156
|
-
d;b++)g=a.children[b],l(f,a.xa?e(g):g);return f}function l(a,b){a.I=Math.min(a.I,b.I);a.R=Math.min(a.R,b.R);a.M=Math.max(a.M,b.M);a.S=Math.max(a.S,b.S)}function m(a,b){return a.I-b.I}function n(a,b){return a.R-b.R}function p(a){return(a.M-a.I)*(a.S-a.R)}function q(a){return a.M-a.I+(a.S-a.R)}function t(a,b){return a.I<=b.I&&a.R<=b.R&&b.M<=a.M&&b.S<=a.S}function A(a,b){return b.I<=a.M&&b.R<=a.S&&b.M>=a.I&&b.S>=a.R}function w(a){return{children:a,height:1,xa:!0,I:Infinity,R:Infinity,M:-Infinity,S:-Infinity}}
|
|
157
|
-
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,O(a,h,b,d,f),g.push(b,h,h,d))}b.T=d;var O=a("quickselect");d.prototype={all:function(){return this.ee(this.data,[])},search:function(a){var b=this.data,d=[],e=this.Fa;if(!A(a,b))return d;for(var f=[],g,h,l,m;b;){g=0;for(h=b.children.length;g<h;g++)l=b.children[g],m=b.xa?e(l):l,A(a,m)&&(b.xa?d.push(l):t(a,m)?this.ee(l,d):f.push(l));b=f.pop()}return d},load:function(a){if(!a||!a.length)return this;
|
|
158
|
-
if(a.length<this.je){for(var b=0,d=a.length;b<d;b++)this.lb(a[b]);return this}a=this.ge(a.slice(),0,a.length-1,0);this.data.children.length?this.data.height===a.height?this.me(this.data,a):(this.data.height<a.height&&(b=this.data,this.data=a,a=b),this.ie(a,this.data.height-a.height-1,!0)):this.data=a;return this},lb:function(a){a&&this.ie(a,this.data.height-1);return this},clear:function(){this.data=w([]);return this},remove:function(a,b){if(!a)return this;for(var d=this.data,e=this.Fa(a),f=[],g=
|
|
159
|
-
[],h,l,m,n;d||f.length;){d||(d=f.pop(),l=f[f.length-1],h=g.pop(),n=!0);if(d.xa){a:{m=a;var p=d.children,q=b;if(q){for(var A=0;A<p.length;A++)if(q(m,p[A])){m=A;break a}m=-1}else m=p.indexOf(m)}if(-1!==m){d.children.splice(m,1);f.push(d);this.wf(f);break}}n||d.xa||!t(d,e)?l?(h++,d=l.children[h],n=!1):d=null:(f.push(d),g.push(h),h=0,l=d,d=d.children[0])}return this},Fa:function(a){return a},fd:m,gd:n,toJSON:function(){return this.data},ee:function(a,b){for(var d=[];a;)a.xa?b.push.apply(b,a.children):
|
|
160
|
-
d.push.apply(d,a.children),a=d.pop();return b},ge:function(a,b,d,f){var g=d-b+1,h=this.bd,l;if(g<=h)return l=w(a.slice(b,d+1)),e(l,this.Fa),l;f||(f=Math.ceil(Math.log(g)/Math.log(h)),h=Math.ceil(g/Math.pow(h,f-1)));l=w([]);l.xa=!1;l.height=f;var g=Math.ceil(g/h),h=g*Math.ceil(Math.sqrt(h)),m,n,p;for(F(a,b,d,h,this.fd);b<=d;b+=h)for(n=Math.min(b+h-1,d),F(a,b,n,g,this.gd),m=b;m<=n;m+=g)p=Math.min(m+g-1,n),l.children.push(this.ge(a,m,p,f-1));e(l,this.Fa);return l},vf:function(a,b,d,e){for(var f,g,h,
|
|
161
|
-
l,m,n,q,t;;){e.push(b);if(b.xa||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.M,a.M)-Math.min(h.I,a.I))*(Math.max(h.S,a.S)-Math.min(h.R,a.R))-m,n<t?(t=n,q=m<q?m:q,l=h):n===t&&m<q&&(q=m,l=h);b=l||b.children[0]}return b},ie:function(a,b,d){var e=this.Fa;d=d?a:e(a);var e=[],f=this.vf(d,this.data,b,e);f.children.push(a);for(l(f,d);0<=b;)if(e[b].children.length>this.bd)this.Cf(e,b),b--;else break;this.sf(d,e,b)},Cf:function(a,b){var d=a[b],f=
|
|
162
|
-
d.children.length,g=this.je;this.tf(d,g,f);f=this.uf(d,g,f);f=w(d.children.splice(f,d.children.length-f));f.height=d.height;f.xa=d.xa;e(d,this.Fa);e(f,this.Fa);b?a[b-1].children.push(f):this.me(d,f)},me:function(a,b){this.data=w([a,b]);this.data.height=a.height+1;this.data.xa=!1;e(this.data,this.Fa)},uf:function(a,b,d){var e,f,g,l,m,n,q;m=n=Infinity;for(e=b;e<=d-b;e++)f=h(a,0,e,this.Fa),g=h(a,e,d,this.Fa),l=Math.max(0,Math.min(f.M,g.M)-Math.max(f.I,g.I))*Math.max(0,Math.min(f.S,g.S)-Math.max(f.R,
|
|
163
|
-
g.R)),f=p(f)+p(g),l<m?(m=l,q=e,n=f<n?f:n):l===m&&f<n&&(n=f,q=e);return q},tf:function(a,b,d){var e=a.xa?this.fd:m,f=a.xa?this.gd:n,g=this.fe(a,b,d,e);b=this.fe(a,b,d,f);g<b&&a.children.sort(e)},fe:function(a,b,d,e){a.children.sort(e);e=this.Fa;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],l(f,a.xa?e(p):p),m+=q(f);for(n=d-b-1;n>=b;n--)p=a.children[n],l(g,a.xa?e(p):p),m+=q(g);return m},sf:function(a,b,d){for(;0<=d;d--)l(b[d],a)},wf:function(a){for(var b=a.length-
|
|
164
|
-
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():e(a[b],this.Fa)},yf:function(a){var b=["return a"," - b",";"];this.fd=new Function("a","b",b.join(a[0]));this.gd=new Function("a","b",b.join(a[1]));this.Fa=new Function("a","return {minX: a"+a[0]+", minY: a"+a[1]+", maxX: a"+a[2]+", maxY: a"+a[3]+"};")}}},{quickselect:1}]},{},[2])(2)});Og=b.T})();function Pg(a){this.a=Og(a);this.c={}}k=Pg.prototype;k.lb=function(a,b){var c={I:a[0],R:a[1],M:a[2],S:a[3],value:b};this.a.lb(c);this.c[oa(b)]=c};k.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={I:f[0],R:f[1],M:f[2],S:f[3],value:g};c[d]=f;this.c[oa(g)]=f}this.a.load(c)};k.remove=function(a){a=oa(a);var b=this.c[a];delete this.c[a];return null!==this.a.remove(b)};function Qg(a){return a.a.all().map(function(a){return a.value})}
|
|
165
|
-
function Rg(a,b){return a.a.search({I:b[0],R:b[1],M:b[2],S:b[3]}).map(function(a){return a.value})}k.forEach=function(a,b){return Sg(Qg(this),a,b)};function Tg(a,b,c,d){return Sg(Rg(a,b),c,d)}function Sg(a,b,c){for(var d,e=0,f=a.length;e<f&&!(d=b.call(c,a[e]));e++);return d}k.clear=function(){this.a.clear();this.c={}};k.C=function(){var a=this.a.data;return[a.I,a.R,a.M,a.S]};function Ug(){this.b=0;this.f={};this.c=this.a=null}k=Ug.prototype;k.clear=function(){this.b=0;this.f={};this.c=this.a=null};k.forEach=function(a,b){for(var c=this.a;c;)a.call(b,c.Kb,c.mb,this),c=c.La};k.get=function(a){a=this.f[a];ra(!!a,15);if(a===this.c)return a.Kb;a===this.a?(this.a=this.a.La,this.a.Eb=null):(a.La.Eb=a.Eb,a.Eb.La=a.La);a.La=null;a.Eb=this.c;this.c=this.c.La=a;return a.Kb};
|
|
166
|
-
k.pop=function(){var a=this.a;delete this.f[a.mb];a.La&&(a.La.Eb=null);this.a=a.La;this.a||(this.c=null);--this.b;return a.Kb};k.replace=function(a,b){this.get(a);this.f[a].Kb=b};k.set=function(a,b){ra(!(a in this.f),16);var c={mb:a,La:null,Eb:this.c,Kb:b};this.c?this.c.La=c:this.a=c;this.c=c;this.f[a]=c;++this.b};var Vg=["canvas","webgl"];
|
|
167
|
-
function G(a){Bc.call(this);var b=Wg(a);this.cc=void 0!==a.loadTilesWhileAnimating?a.loadTilesWhileAnimating:!1;this.Wc=void 0!==a.loadTilesWhileInteracting?a.loadTilesWhileInteracting:!1;this.Yc=void 0!==a.pixelRatio?a.pixelRatio:md;this.Xc=b.logos;this.va=function(){this.i=void 0;this.Ai.call(this,Date.now())}.bind(this);this.cb=lg();this.Zc=lg();this.eb=0;this.b=null;this.Za=Ja();this.D=this.U=this.ha=null;this.a=document.createElement("DIV");this.a.className="ol-viewport"+(pd?" ol-touch":"");
|
|
168
|
-
this.a.style.position="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.G=document.createElement("DIV");this.G.className="ol-overlaycontainer";this.a.appendChild(this.G);this.F=document.createElement("DIV");this.F.className="ol-overlaycontainer-stopevent";a="click dblclick mousedown touchstart mspointerdown pointerdown mousewheel wheel".split(" ");for(var c=0,d=a.length;c<d;++c)x(this.F,
|
|
169
|
-
a[c],xc);this.a.appendChild(this.F);this.Wa=new Sd(this);for(var e in fd)x(this.Wa,fd[e],this.Ee,this);this.Da=b.keyboardEventTarget;this.B=null;x(this.a,"wheel",this.xb,this);x(this.a,"mousewheel",this.xb,this);this.o=b.controls;this.j=b.interactions;this.s=b.overlays;this.Gd={};this.A=new b.Ci(this.a,this);this.oa=null;this.Ya=[];this.Xa=new Yd(this.yg.bind(this),this.Qg.bind(this));this.Vc={};x(this,Dc("layergroup"),this.Gg,this);x(this,Dc("view"),this.Rg,this);x(this,Dc("size"),this.Ng,this);
|
|
170
|
-
x(this,Dc("target"),this.Pg,this);this.N(b.values);this.o.forEach(function(a){a.setMap(this)},this);x(this.o,"add",function(a){a.element.setMap(this)},this);x(this.o,"remove",function(a){a.element.setMap(null)},this);this.j.forEach(function(a){a.setMap(this)},this);x(this.j,"add",function(a){a.element.setMap(this)},this);x(this.j,"remove",function(a){a.element.setMap(null)},this);this.s.forEach(this.ne,this);x(this.s,"add",function(a){this.ne(a.element)},this);x(this.s,"remove",function(a){var b=
|
|
171
|
-
a.element.a();void 0!==b&&delete this.Gd[b.toString()];a.element.setMap(null)},this)}v(G,Bc);k=G.prototype;k.Ef=function(a){this.o.push(a)};k.Ff=function(a){this.j.push(a)};k.Gf=function(a){this.ub().Ab().push(a)};k.Hf=function(a){this.s.push(a)};k.ne=function(a){var b=a.a();void 0!==b&&(this.Gd[b.toString()]=a);a.setMap(this)};
|
|
172
|
-
k.qa=function(){vc(this.Wa);vc(this.A);tc(this.a,"wheel",this.xb,this);tc(this.a,"mousewheel",this.xb,this);this.g&&(window.removeEventListener("resize",this.g,!1),this.g=void 0);this.i&&(cancelAnimationFrame(this.i),this.i=void 0);this.Ie(null);Bc.prototype.qa.call(this)};k.Sf=function(a,b,c){if(this.b)return a=this.Qa(a),c=c?c:{},this.A.Ga(a,this.b,void 0!==c.hitTolerance?c.hitTolerance*this.b.pixelRatio:0,b,null,c.layerFilter?c.layerFilter:ge,null)};
|
|
173
|
-
k.vh=function(a,b,c,d,e){if(this.b){a:{var f=this.A,g=this.b;c=void 0!==c?c:null;d=d?d:ge;e=void 0!==e?e:null;var h,l=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&&l>=h.minResolution&&l<h.maxResolution&&d.call(e,p)&&(h=rg(f,p).v(a,g,b,c))){b=h;break a}}b=void 0}return b}};
|
|
174
|
-
k.Sg=function(a,b){if(!this.b)return!1;var c=this.Qa(a);b=b?b:{};var d=this.A;return void 0!==d.Ga(c,this.b,void 0!==b.hitTolerance?b.hitTolerance*this.b.pixelRatio:0,ge,d,b.layerFilter?b.layerFilter:ge,null)};k.Yf=function(a){return this.Qa(this.kd(a))};k.kd=function(a){var b=this.a.getBoundingClientRect();a=a.changedTouches?a.changedTouches[0]:a;return[a.clientX-b.left,a.clientY-b.top]};k.td=function(){return this.get("target")};
|
|
175
|
-
k.ud=function(){var a=this.td();return void 0!==a?"string"===typeof a?document.getElementById(a):a:null};k.Qa=function(a){var b=this.b;return b?ng(b.pixelToCoordinateTransform,a.slice()):null};k.Xf=function(){return this.o};k.rg=function(){return this.s};k.qg=function(a){a=this.Gd[a.toString()];return void 0!==a?a:null};k.fg=function(){return this.j};k.ub=function(){return this.get("layergroup")};k.wh=function(){return this.ub().Ab()};
|
|
176
|
-
k.Vb=function(a){var b=this.b;return b?ng(b.coordinateToPixelTransform,a.slice(0,2)):null};k.yc=function(){return this.get("size")};k.da=function(){return this.get("view")};k.Bg=function(){return this.a};k.yg=function(a,b,c,d){var e=this.b;if(!(e&&b in e.wantedTiles&&e.wantedTiles[b][a.nb()]))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};k.xb=function(a,b){var c=new ed(b||a.type,this,a);this.Ee(c)};
|
|
177
|
-
k.Ee=function(a){if(this.b){this.oa=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.ha()&&!d.handleEvent(a))break}}};
|
|
178
|
-
k.Mg=function(){var a=this.b,b=this.Xa;if(b.a.length){var c=16,d=c;if(a){var e=a.viewHints;e[0]&&(c=this.cc?8:0,d=2);e[1]&&(c=this.Wc?8:0,d=2)}if(b.i<c){var e=b.o,f=b.a,g=b.c,h=0,l=f.length,m,n,p;for(n=0;n<l;++n)m=f[n],p=e(m),Infinity==p?delete b.f[b.b(m)]:(g[h]=p,f[h++]=m);f.length=h;g.length=h;for(e=(b.a.length>>1)-1;0<=e;e--)Xd(b,e);for(e=0;b.i<c&&e<d&&0<b.a.length;)f=b,h=f.a,l=f.c,g=h[0],1==h.length?(h.length=0,l.length=0):(h[0]=h.pop(),l[0]=l.pop(),Xd(f,0)),h=f.b(g),delete f.f[h],f=g[0],g=f.nb(),
|
|
179
|
-
0!==f.ia()||g in b.g||(b.g[g]=!0,++b.i,++e,f.load())}}b=this.Ya;d=0;for(c=b.length;d<c;++d)b[d](this,a);b.length=0};k.Ng=function(){this.render()};
|
|
180
|
-
k.Pg=function(){var a;this.td()&&(a=this.ud());if(this.B){for(var b=0,c=this.B.length;b<c;++b)oc(this.B[b]);this.B=null}a?(a.appendChild(this.a),a=this.Da?this.Da:a,this.B=[x(a,"keydown",this.xb,this),x(a,"keypress",this.xb,this)],this.g||(this.g=this.ae.bind(this),window.addEventListener("resize",this.g,!1))):(Sc(this.a),this.g&&(window.removeEventListener("resize",this.g,!1),this.g=void 0));this.ae()};k.Qg=function(){this.render()};k.Ge=function(){this.render()};
|
|
181
|
-
k.Rg=function(){this.ha&&(oc(this.ha),this.ha=null);this.U&&(oc(this.U),this.U=null);var a=this.da();a&&(this.a.setAttribute("data-view",oa(a)),this.ha=x(a,"propertychange",this.Ge,this),this.U=x(a,"change",this.Ge,this));this.render()};k.Gg=function(){this.D&&(this.D.forEach(oc),this.D=null);var a=this.ub();a&&(this.D=[x(a,"propertychange",this.render,this),x(a,"change",this.render,this)]);this.render()};k.Bi=function(){this.i&&cancelAnimationFrame(this.i);this.va()};
|
|
182
|
-
k.render=function(){void 0===this.i&&(this.i=requestAnimationFrame(this.va))};k.ui=function(a){return this.o.remove(a)};k.vi=function(a){return this.j.remove(a)};k.xi=function(a){return this.ub().Ab().remove(a)};k.yi=function(a){return this.s.remove(a)};
|
|
183
|
-
k.Ai=function(a){var b,c,d=this.yc(),e=this.da(),f=Ja(),g=null,h;if(h=void 0!==d&&0<d[0]&&0<d[1]&&e)h=!!e.sa()&&void 0!==e.ya();if(h){g=bd(e,this.b?this.b.viewHints:void 0);h=this.ub().od();var l={};b=0;for(c=h.length;b<c;++b)l[oa(h[b].layer)]=h[b];b=e.ia();g={animate:!1,attributions:{},coordinateToPixelTransform:this.cb,extent:f,focus:this.oa?this.oa:b.center,index:this.eb++,layerStates:l,layerStatesArray:h,logos:lb({},this.Xc),pixelRatio:this.Yc,pixelToCoordinateTransform:this.Zc,postRenderFunctions:[],
|
|
184
|
-
size:d,skippedFeatureUids:this.Vc,tileQueue:this.Xa,time:a,usedTiles:{},viewState:b,viewHints:g,wantedTiles:{}}}g&&(g.extent=hb(b.center,b.resolution,b.rotation,g.size,f));this.b=g;this.A.Ze(g);g&&(g.animate&&this.render(),Array.prototype.push.apply(this.Ya,g.postRenderFunctions),g.viewHints[0]||g.viewHints[1]||Ua(g.extent,this.Za)||(this.c(new dd("moveend",this,g)),Ma(g.extent,this.Za)));this.c(new dd("postrender",this,g));setTimeout(this.Mg.bind(this),0)};
|
|
185
|
-
k.Hi=function(a){this.set("layergroup",a)};k.Wd=function(a){this.set("size",a)};k.Ie=function(a){this.set("target",a)};k.Qi=function(a){this.set("view",a)};k.ae=function(){var a=this.ud();if(a){var b=getComputedStyle(a);this.Wd([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.Wd(void 0)};
|
|
186
|
-
function Wg(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"]=
|
|
187
|
-
"https://openlayers.org/";else{var e=a.logo;"string"===typeof e?d[e]="":e instanceof HTMLElement?d[oa(e).toString()]=e:e&&(ra("string"==typeof e.href,44),ra("string"==typeof e.src,45),d[e.src]=e.href)}e=a.layers instanceof Yf?a.layers:new Yf({layers:a.layers});c.layergroup=e;c.target=a.target;c.view=void 0!==a.view?a.view:new E;var e=pg,f;void 0!==a.renderer?(Array.isArray(a.renderer)?f=a.renderer:"string"===typeof a.renderer?f=[a.renderer]:ra(!1,46),0<=f.indexOf("dom")&&(f=f.concat(Vg))):f=Vg;var g,
|
|
188
|
-
h;g=0;for(h=f.length;g<h;++g)if("canvas"==f[g]&&od){e=Jg;break}void 0!==a.controls?Array.isArray(a.controls)?f=new y(a.controls.slice()):(ra(a.controls instanceof y,47),f=a.controls):(f={},g=new y,(void 0!==f.zoom?f.zoom:1)&&g.push(new ad(f.zoomOptions)),(void 0!==f.rotate?f.rotate:1)&&g.push(new Zc(f.rotateOptions)),(void 0!==f.attribution?f.attribution:1)&&g.push(new Uc(f.attributionOptions)),f=g);void 0!==a.interactions?Array.isArray(a.interactions)?g=new y(a.interactions.slice()):(ra(a.interactions instanceof
|
|
189
|
-
y,48),g=a.interactions):g=Vf();void 0!==a.overlays?Array.isArray(a.overlays)?a=new y(a.overlays.slice()):(ra(a.overlays instanceof y,49),a=a.overlays):a=new y;return{controls:f,interactions:g,keyboardEventTarget:b,logos:d,overlays:a,Ci:e,values:c}}hg();function Xg(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-scale-line";this.g=document.createElement("DIV");this.g.className=b+"-inner";this.a=document.createElement("DIV");this.a.className=b+" ol-unselectable";this.a.appendChild(this.g);this.o=null;this.j=void 0!==a.minWidth?a.minWidth:64;this.b=!1;this.A=void 0;this.s="";Tc.call(this,{element:this.a,render:a.render?a.render:Yg,target:a.target});x(this,Dc(Zg),this.F,this);this.D(a.units||"metric")}v(Xg,Tc);var $g=[1,2,5];
|
|
190
|
-
Xg.prototype.kb=function(){return this.get(Zg)};function Yg(a){(a=a.frameState)?this.o=a.viewState:this.o=null;ah(this)}Xg.prototype.F=function(){ah(this)};Xg.prototype.D=function(a){this.set(Zg,a)};
|
|
191
|
-
function ah(a){var b=a.o;if(b){var c=b.projection,d=c.ib(),b=Ab(c,b.resolution,b.center)*d,d=a.j*b,c="",e=a.kb();"degrees"==e?(c=sb.degrees,b/=c,d<c/60?(c="\u2033",b*=3600):d<c?(c="\u2032",b*=60):c="\u00b0"):"imperial"==e?.9144>d?(c="in",b/=.0254):1609.344>d?(c="ft",b/=.3048):(c="mi",b/=1609.344):"nautical"==e?(b/=1852,c="nm"):"metric"==e?1>d?(c="mm",b*=1E3):1E3>d?c="m":(c="km",b/=1E3):"us"==e?.9144>d?(c="in",b*=39.37):1609.344>d?(c="ft",b/=.30480061):(c="mi",b/=1609.3472):ra(!1,33);for(var e=3*Math.floor(Math.log(a.j*
|
|
192
|
-
b)/Math.log(10)),f;;){f=$g[(e%3+3)%3]*Math.pow(10,Math.floor(e/3));d=Math.round(f/b);if(isNaN(d)){a.a.style.display="none";a.b=!1;return}if(d>=a.j)break;++e}b=f+" "+c;a.s!=b&&(a.g.innerHTML=b,a.s=b);a.A!=d&&(a.g.style.width=d+"px",a.A=d);a.b||(a.a.style.display="",a.b=!0)}else a.b&&(a.a.style.display="none",a.b=!1)}var Zg="units";function bh(a){this.j=a.opacity;this.B=a.rotateWithView;this.v=a.rotation;this.g=a.scale;this.o=a.snapToPixel}k=bh.prototype;k.Ec=function(){return this.j};k.Fc=function(){return this.B};k.Gc=function(){return this.v};k.Hc=function(){return this.g};k.uc=function(){return this.o};k.Cb=function(a){this.j=a};k.Ic=function(a){this.v=a};k.Db=function(a){this.g=a};function ch(a){this.W=this.s=this.b=null;this.ra=void 0!==a.fill?a.fill:null;this.F=[0,0];this.a=a.points;this.c=void 0!==a.radius?a.radius:a.radius1;this.f=void 0!==a.radius2?a.radius2:this.c;this.i=void 0!==a.angle?a.angle:0;this.ua=void 0!==a.stroke?a.stroke:null;this.D=this.G=this.A=null;this.V=a.atlasManager;dh(this,this.V);bh.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?
|
|
193
|
-
a.snapToPixel:!0})}v(ch,bh);k=ch.prototype;k.clone=function(){var a=new ch({fill:this.aa()?this.aa().clone():void 0,points:this.f!==this.c?this.a/2:this.a,radius:this.c,radius2:this.f,angle:this.i,snapToPixel:this.o,stroke:this.ca()?this.ca().clone():void 0,rotation:this.v,rotateWithView:this.B,atlasManager:this.V});a.Cb(this.j);a.Db(this.g);return a};k.tb=function(){return this.A};k.Se=function(){return this.i};k.aa=function(){return this.ra};k.Re=function(){return this.W};k.X=function(){return this.s};
|
|
194
|
-
k.md=function(){return this.D};k.Dc=function(){return 2};k.Bb=function(){return this.F};k.Te=function(){return this.a};k.Ue=function(){return this.c};k.Ce=function(){return this.f};k.ab=function(){return this.G};k.ca=function(){return this.ua};k.He=function(){};k.load=function(){};k.lf=function(){};
|
|
195
|
-
function dh(a,b){var c,d="",e="",f=0,g=null,h,l=0;a.ua&&(h=Pc(a.ua.c),l=a.ua.b,void 0===l&&(l=1),g=a.ua.f,nd||(g=null),e=a.ua.i,void 0===e&&(e="round"),d=a.ua.g,void 0===d&&(d="round"),f=a.ua.j,void 0===f&&(f=10));var m=2*(a.c+l)+1,d={strokeStyle:h,jf:l,size:m,lineCap:d,lineDash:g,lineJoin:e,miterLimit:f};void 0===b?(e=Rc(m,m),a.s=e.canvas,c=m=a.s.width,a.we(d,e,0,0),a.ra?a.W=a.s:(e=Rc(d.size,d.size),a.W=e.canvas,a.ve(d,e,0,0))):(m=Math.round(m),(e=!a.ra)&&(c=a.ve.bind(a,d)),a.ua?(f=a.ua,void 0===
|
|
196
|
-
f.a&&(f.a="s",f.a=f.c?"string"===typeof f.c?f.a+f.c:f.a+oa(f.c).toString():f.a+"-",f.a+=","+(void 0!==f.g?f.g.toString():"-")+","+(f.f?f.f.toString():"-")+","+(void 0!==f.v?f.v:"-")+","+(void 0!==f.i?f.i:"-")+","+(void 0!==f.j?f.j.toString():"-")+","+(void 0!==f.b?f.b.toString():"-")),f=f.a):f="-",a.ra?(g=a.ra,void 0===g.c&&(g.c=g.a instanceof CanvasPattern||g.a instanceof CanvasGradient?oa(g.a).toString():"f"+(g.a?Mc(g.a):"-")),g=g.c):g="-",a.b&&f==a.b[1]&&g==a.b[2]&&a.c==a.b[3]&&a.f==a.b[4]&&a.i==
|
|
197
|
-
a.b[5]&&a.a==a.b[6]||(a.b=["r"+f+g+(void 0!==a.c?a.c.toString():"-")+(void 0!==a.f?a.f.toString():"-")+(void 0!==a.i?a.i.toString():"-")+(void 0!==a.a?a.a.toString():"-"),f,g,a.c,a.f,a.i,a.a]),d=b.add(a.b[0],m,m,a.we.bind(a,d),c),a.s=d.image,a.F=[d.offsetX,d.offsetY],c=d.image.width,a.W=e?d.Tg:a.s);a.A=[m/2,m/2];a.G=[m,m];a.D=[c,c]}
|
|
198
|
-
k.we=function(a,b,c,d){var e;b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();if(Infinity===this.a)b.arc(a.size/2,a.size/2,this.c,0,2*Math.PI,!0);else for(this.f!==this.c&&(this.a*=2),c=0;c<=this.a;c++)d=2*c*Math.PI/this.a-Math.PI/2+this.i,e=c%2?this.f:this.c,b.lineTo(a.size/2+e*Math.cos(d),a.size/2+e*Math.sin(d));this.ra&&(b.fillStyle=Pc(this.ra.a),b.fill());this.ua&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.jf,a.lineDash&&b.setLineDash(a.lineDash),b.lineCap=a.lineCap,b.lineJoin=a.lineJoin,
|
|
199
|
-
b.miterLimit=a.miterLimit,b.stroke());b.closePath()};
|
|
200
|
-
k.ve=function(a,b,c,d){b.setTransform(1,0,0,1,0,0);b.translate(c,d);b.beginPath();if(Infinity===this.a)b.arc(a.size/2,a.size/2,this.c,0,2*Math.PI,!0);else{this.f!==this.c&&(this.a*=2);var e;for(c=0;c<=this.a;c++)e=2*c*Math.PI/this.a-Math.PI/2+this.i,d=c%2?this.f:this.c,b.lineTo(a.size/2+d*Math.cos(e),a.size/2+d*Math.sin(e))}b.fillStyle=tg;b.fill();this.ua&&(b.strokeStyle=a.strokeStyle,b.lineWidth=a.jf,a.lineDash&&b.setLineDash(a.lineDash),b.stroke());b.closePath()};function eh(a){a=a||{};ch.call(this,{points:Infinity,fill:a.fill,radius:a.radius,snapToPixel:a.snapToPixel,stroke:a.stroke,atlasManager:a.atlasManager})}v(eh,ch);eh.prototype.clone=function(){var a=new eh({fill:this.aa()?this.aa().clone():void 0,stroke:this.ca()?this.ca().clone():void 0,radius:this.c,snapToPixel:this.o,atlasManager:this.V});a.Cb(this.j);a.Db(this.g);return a};eh.prototype.Vd=function(a){this.c=a;dh(this,this.V)};function fh(a){a=a||{};this.a=void 0!==a.color?a.color:null;this.c=void 0}fh.prototype.clone=function(){var a=this.a;return new fh({color:a&&a.slice?a.slice():a||void 0})};fh.prototype.f=function(){return this.a};fh.prototype.b=function(a){this.a=a;this.c=void 0};function gh(a){a=a||{};this.hb=null;this.wa=hh;void 0!==a.geometry&&this.Ba(a.geometry);this.ra=void 0!==a.fill?a.fill:null;this.J=void 0!==a.image?a.image:null;this.ua=void 0!==a.stroke?a.stroke:null;this.ka=void 0!==a.text?a.text:null;this.qf=a.zIndex}k=gh.prototype;
|
|
201
|
-
k.clone=function(){var a=this.L();a&&a.clone&&(a=a.clone());return new gh({geometry:a,fill:this.aa()?this.aa().clone():void 0,image:this.X()?this.X().clone():void 0,stroke:this.ca()?this.ca().clone():void 0,text:this.ma()?this.ma().clone():void 0,zIndex:this.na()})};k.L=function(){return this.hb};k.dg=function(){return this.wa};k.aa=function(){return this.ra};k.Lc=function(a){this.ra=a};k.X=function(){return this.J};k.Gi=function(a){this.J=a};k.ca=function(){return this.ua};
|
|
202
|
-
k.Nc=function(a){this.ua=a};k.ma=function(){return this.ka};k.Oc=function(a){this.ka=a};k.na=function(){return this.qf};k.Ba=function(a){"function"===typeof a?this.wa=a:"string"===typeof a?this.wa=function(b){return b.get(a)}:a?a&&(this.wa=function(){return a}):this.wa=hh;this.hb=a};k.$b=function(a){this.qf=a};function ih(a){if("function"!==typeof a){var b;Array.isArray(a)?b=a:(ra(a instanceof gh,41),b=[a]);a=function(){return b}}return a}var jh=null;
|
|
203
|
-
function kh(){if(!jh){var a=new fh({color:"rgba(255,255,255,0.4)"}),b=new Ng({color:"#3399CC",width:1.25});jh=[new gh({image:new eh({fill:a,stroke:b,radius:5}),fill:a,stroke:b})]}return jh}
|
|
204
|
-
function lh(){var a={},b=[255,255,255,1],c=[0,153,255,1];a.Polygon=[new gh({fill:new fh({color:[255,255,255,.5]})})];a.MultiPolygon=a.Polygon;a.LineString=[new gh({stroke:new Ng({color:b,width:5})}),new gh({stroke:new Ng({color:c,width:3})})];a.MultiLineString=a.LineString;a.Circle=a.Polygon.concat(a.LineString);a.Point=[new gh({image:new eh({radius:6,fill:new fh({color:c}),stroke:new Ng({color:b,width:1.5})}),zIndex:Infinity})];a.MultiPoint=a.Point;a.GeometryCollection=a.Polygon.concat(a.LineString,
|
|
205
|
-
a.Point);return a}function hh(a){return a.L()};function H(a){Bc.call(this);this.b=void 0;this.a="geometry";this.j=null;this.i=void 0;this.g=null;x(this,Dc(this.a),this.vc,this);void 0!==a&&(a instanceof ie||!a?this.Ba(a):this.N(a))}v(H,Bc);k=H.prototype;k.clone=function(){var a=new H(this.Y());a.Mc(this.a);var b=this.L();b&&a.Ba(b.clone());(b=this.j)&&a.xd(b);return a};k.L=function(){return this.get(this.a)};k.ph=function(){return this.b};k.eg=function(){return this.a};k.qh=function(){return this.j};k.rh=function(){return this.i};k.Fg=function(){this.u()};
|
|
206
|
-
k.vc=function(){this.g&&(oc(this.g),this.g=null);var a=this.L();a&&(this.g=x(a,"change",this.Fg,this));this.u()};k.Ba=function(a){this.set(this.a,a)};k.xd=function(a){this.i=(this.j=a)?mh(a):void 0;this.u()};k.Yb=function(a){this.b=a;this.u()};k.Mc=function(a){tc(this,Dc(this.a),this.vc,this);this.a=a;x(this,Dc(this.a),this.vc,this);this.vc()};
|
|
207
|
-
function mh(a){var b;if("function"===typeof a)2==a.length?b=function(b){return a(this,b)}:b=a;else{var c;Array.isArray(a)?c=a:(ra(a instanceof gh,41),c=[a]);b=function(){return c}}return b};var nh=document.implementation.createDocument("","",null);function oh(a){return ph(a,!1,[]).join("")}function ph(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)ph(a,b,c);return c}function qh(a){return a instanceof Document}function rh(a){return a instanceof Node}function sh(a){return(new DOMParser).parseFromString(a,"application/xml")}
|
|
208
|
-
function th(a,b){return function(c,d){var e=a.call(b,c,d);void 0!==e&&ga(d[d.length-1],e)}}function uh(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 vh(a){return function(b,c){var d=a.call(this,b,c);void 0!==d&&(c[c.length-1]=d)}}function wh(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)}}}
|
|
209
|
-
function I(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)}}function J(a){return function(b,c,d){a.call(this,b,c,d);d[d.length-1].node.appendChild(b)}}function xh(a){var b,c;return function(d,e,f){if(!b){b={};var g={};g[d.localName]=a;b[d.namespaceURI]=g;c=yh(d.localName)}zh(b,c,e,f)}}function yh(a){return function(b,c,d){b=c[c.length-1].node;c=a;void 0===c&&(c=d);return nh.createElementNS(b.namespaceURI,c)}}var Ah=yh();
|
|
210
|
-
function Bh(a,b){for(var c=b.length,d=Array(c),e=0;e<c;++e)d[e]=a[b[e]];return d}function K(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 Ch(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 L(a,b,c,d,e){d.push(a);Ch(b,c,d,e);return d.pop()}
|
|
211
|
-
function zh(a,b,c,d,e,f){for(var g=(void 0!==e?e:c).length,h,l,m=0;m<g;++m)h=c[m],void 0!==h&&(l=b.call(f,h,d,void 0!==e?e[m]:void 0),void 0!==l&&a[l.namespaceURI][l.localName].call(f,l,h,d))}function Dh(a,b,c,d,e,f,g){e.push(a);zh(b,c,d,e,f,g);e.pop()};function Eh(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.O()&&(g.responseType="arraybuffer");g.onload=function(){if(!g.status||200<=g.status&&300>g.status){var a=b.O(),d;"json"==a||"text"==a?d=g.responseText:"xml"==a?(d=g.responseXML)||(d=sh(g.responseText)):"arraybuffer"==a&&(d=g.response);d&&c.call(this,b.Fb(d,{featureProjection:f}),b.Gb(d))}}.bind(this);g.send()}}
|
|
212
|
-
function Fh(a,b){return Eh(a,b,function(a){this.dd(a)})};function Gh(){this.f=this.defaultDataProjection=null}function Hh(a,b,c){var d;c&&(d={dataProjection:c.dataProjection?c.dataProjection:a.Gb(b),featureProjection:c.featureProjection});return Ih(a,d)}function Ih(a,b){return lb({dataProjection:a.defaultDataProjection,featureProjection:a.f},b)}
|
|
213
|
-
function Jh(a,b,c){var d=c?Fb(c.featureProjection):null,e=c?Fb(c.dataProjection):null,f;d&&e&&!Tb(d,e)?a instanceof ie?f=(b?a.clone():a).Ha(b?d:e,b?e:d):f=Xb(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.rb(a)}return f};function Kh(){Gh.call(this)}v(Kh,Gh);function Lh(a){return"string"===typeof a?(a=JSON.parse(a))?a:null:null!==a?a:null}k=Kh.prototype;k.O=function(){return"json"};k.Xb=function(a,b){return Mh(this,Lh(a),Hh(this,a,b))};k.Fb=function(a,b){var c=Lh(a),d=Hh(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(Mh(this,c[f],d))}else e=[Mh(this,c,d)];return e};k.Jc=function(a,b){var c=Lh(a),d=Hh(this,a,b);return Nh(c,d)};
|
|
214
|
-
k.Gb=function(a){a=Lh(a).crs;var b;a?"name"==a.type?b=Fb(a.properties.name):"EPSG"==a.type?b=Fb("EPSG:"+a.properties.code):ra(!1,36):b=this.defaultDataProjection;return b};k.Tc=function(a,b){return JSON.stringify(this.a(a,b))};k.bc=function(a,b){return JSON.stringify(this.b(a,b))};k.Uc=function(a,b){return JSON.stringify(this.g(a,b))};function Oh(a,b,c,d,e,f){var g=NaN,h=NaN,l=(c-b)/d;if(1===l)g=a[b],h=a[b+1];else if(2==l)g=(1-e)*a[b]+e*a[b+d],h=(1-e)*a[b+1]+e*a[b+d+1];else if(l){var h=a[b],l=a[b+1],m=0,g=[0],n;for(n=b+d;n<c;n+=d){var p=a[n],q=a[n+1],m=m+Math.sqrt((p-h)*(p-h)+(q-l)*(q-l));g.push(m);h=p;l=q}c=e*m;l=0;m=g.length;for(n=!1;l<m;)e=l+(m-l>>1),h=+ba(g[e],c),0>h?l=e+1:(m=e,n=!h);e=n?l:~l;0>e?(c=(c-g[-e-2])/(g[-e-1]-g[-e-2]),b+=(-e-2)*d,g=Fa(a[b],a[b+d],c),h=Fa(a[b+1],a[b+d+1],c)):(g=a[b+e*d],h=a[b+e*d+1])}return f?(f[0]=
|
|
215
|
-
g,f[1]=h,f):[g,h]}function Ph(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(Fa(a[(b-1)*d+g],a[b*d+g],f));c.push(e);return c}
|
|
216
|
-
function Qh(a,b,c,d,e,f){var g=0;if(f)return Ph(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;else if(d<=a[h-1])return Ph(a,g,h,c,d,!1);g=h}}return null};function M(a,b){z.call(this);this.b=null;this.A=this.D=this.j=-1;this.Z(a,b)}v(M,z);k=M.prototype;k.If=function(a){this.l?ga(this.l,a):this.l=a.slice();this.u()};k.clone=function(){var a=new M(null);a.K(this.P,this.l.slice());return a};k.Ja=function(a,b,c,d){if(d<Na(this.C(),a,b))return d;this.A!=this.f&&(this.D=Math.sqrt(qe(this.l,0,this.l.length,this.a,0)),this.A=this.f);return se(this.l,0,this.l.length,this.a,this.D,!1,a,b,c,d)};k.Uf=function(a,b){return Fe(this.l,0,this.l.length,this.a,a,b)};
|
|
217
|
-
k.Bh=function(a,b){return"XYM"!=this.P&&"XYZM"!=this.P?null:Ph(this.l,0,this.l.length,this.a,a,void 0!==b?b:!1)};k.$=function(){return xe(this.l,0,this.l.length,this.a)};k.xe=function(a,b){return Oh(this.l,0,this.l.length,this.a,a,b)};k.Ch=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 Fg(a){a.j!=a.f&&(a.b=a.xe(.5,a.b),a.j=a.f);return a.b}
|
|
218
|
-
k.vb=function(a){var b=[];b.length=ze(this.l,0,this.l.length,this.a,a,b,0);a=new M(null);a.K("XY",b);return a};k.O=function(){return"LineString"};k.ta=function(a){return Ge(this.l,0,this.l.length,this.a,a)};k.Z=function(a,b){a?(me(this,b,a,1),this.l||(this.l=[]),this.l.length=ve(this.l,0,a,this.a),this.u()):this.K("XY",null)};k.K=function(a,b){le(this,a,b);this.u()};function N(a,b){z.call(this);this.b=[];this.j=this.A=-1;this.Z(a,b)}v(N,z);k=N.prototype;k.Jf=function(a){this.l?ga(this.l,a.l.slice()):this.l=a.l.slice();this.b.push(this.l.length);this.u()};k.clone=function(){var a=new N(null);a.K(this.P,this.l.slice(),this.b.slice());return a};k.Ja=function(a,b,c,d){if(d<Na(this.C(),a,b))return d;this.j!=this.f&&(this.A=Math.sqrt(re(this.l,0,this.b,this.a,0)),this.j=this.f);return te(this.l,0,this.b,this.a,this.A,!1,a,b,c,d)};
|
|
219
|
-
k.Eh=function(a,b,c){return"XYM"!=this.P&&"XYZM"!=this.P||!this.l.length?null:Qh(this.l,this.b,this.a,a,void 0!==b?b:!1,void 0!==c?c:!1)};k.$=function(){return ye(this.l,0,this.b,this.a)};k.Ra=function(){return this.b};k.lg=function(a){if(0>a||this.b.length<=a)return null;var b=new M(null);b.K(this.P,this.l.slice(a?this.b[a-1]:0,this.b[a]));return b};k.sc=function(){var a=this.l,b=this.b,c=this.P,d=[],e=0,f,g;f=0;for(g=b.length;f<g;++f){var h=b[f],l=new M(null);l.K(c,a.slice(e,h));d.push(l);e=h}return d};
|
|
220
|
-
function Gg(a){var b=[],c=a.l,d=0,e=a.b;a=a.a;var f,g;f=0;for(g=e.length;f<g;++f){var h=e[f],d=Oh(c,d,h,a,.5);ga(b,d);d=h}return b}k.vb=function(a){var b=[],c=[],d=this.l,e=this.b,f=this.a,g=0,h=0,l,m;l=0;for(m=e.length;l<m;++l){var n=e[l],h=ze(d,g,n,f,a,b,h);c.push(h);g=n}b.length=h;a=new N(null);a.K("XY",b,c);return a};k.O=function(){return"MultiLineString"};k.ta=function(a){a:{var b=this.l,c=this.b,d=this.a,e=0,f,g;f=0;for(g=c.length;f<g;++f){if(Ge(b,e,c[f],d,a)){a=!0;break a}e=c[f]}a=!1}return a};
|
|
221
|
-
k.Z=function(a,b){if(a){me(this,b,a,2);this.l||(this.l=[]);var c=we(this.l,0,a,this.a,this.b);this.l.length=c.length?c[c.length-1]:0;this.u()}else this.K("XY",null,this.b)};k.K=function(a,b,c){le(this,a,b);this.b=c;this.u()};function Rh(a,b){var c=a.P,d=[],e=[],f,g;f=0;for(g=b.length;f<g;++f){var h=b[f];f||(c=h.P);ga(d,h.l);e.push(d.length)}a.K(c,d,e)};function P(a,b){z.call(this);this.Z(a,b)}v(P,z);k=P.prototype;k.Lf=function(a){this.l?ga(this.l,a.l):this.l=a.l.slice();this.u()};k.clone=function(){var a=new P(null);a.K(this.P,this.l.slice());return a};k.Ja=function(a,b,c,d){if(d<Na(this.C(),a,b))return d;var e=this.l,f=this.a,g,h,l;g=0;for(h=e.length;g<h;g+=f)if(l=Ca(a,b,e[g],e[g+1]),l<d){d=l;for(l=0;l<f;++l)c[l]=e[g+l];c.length=f}return d};k.$=function(){return xe(this.l,0,this.l.length,this.a)};
|
|
222
|
-
k.sg=function(a){var b=this.l?this.l.length/this.a:0;if(0>a||b<=a)return null;b=new C(null);b.K(this.P,this.l.slice(a*this.a,(a+1)*this.a));return b};k.Ad=function(){var a=this.l,b=this.P,c=this.a,d=[],e,f;e=0;for(f=a.length;e<f;e+=c){var g=new C(null);g.K(b,a.slice(e,e+c));d.push(g)}return d};k.O=function(){return"MultiPoint"};k.ta=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],Pa(a,f,g))return!0;return!1};
|
|
223
|
-
k.Z=function(a,b){a?(me(this,b,a,1),this.l||(this.l=[]),this.l.length=ve(this.l,0,a,this.a),this.u()):this.K("XY",null)};k.K=function(a,b){le(this,a,b);this.u()};function Q(a,b){z.call(this);this.b=[];this.A=-1;this.D=null;this.U=this.F=this.G=-1;this.j=null;this.Z(a,b)}v(Q,z);k=Q.prototype;k.Mf=function(a){if(this.l){var b=this.l.length;ga(this.l,a.l);a=a.Ra().slice();var c,d;c=0;for(d=a.length;c<d;++c)a[c]+=b}else this.l=a.l.slice(),a=a.Ra().slice(),this.b.push();this.b.push(a);this.u()};k.clone=function(){for(var a=new Q(null),b=this.b.length,c=Array(b),d=0;d<b;++d)c[d]=this.b[d].slice();Sh(a,this.P,this.l.slice(),c);return a};
|
|
224
|
-
k.Ja=function(a,b,c,d){if(d<Na(this.C(),a,b))return d;if(this.F!=this.f){var e=this.b,f=0,g=0,h,l;h=0;for(l=e.length;h<l;++h)var m=e[h],g=re(this.l,f,m,this.a,g),f=m[m.length-1];this.G=Math.sqrt(g);this.F=this.f}e=Hg(this);f=this.b;g=this.a;h=this.G;l=0;var m=[NaN,NaN],n,p;n=0;for(p=f.length;n<p;++n){var q=f[n];d=te(e,l,q,g,h,!0,a,b,c,d,m);l=q[q.length-1]}return d};
|
|
225
|
-
k.ob=function(a,b){var c;a:{c=Hg(this);var d=this.b,e=0;if(d.length){var f,g;f=0;for(g=d.length;f<g;++f){var h=d[f];if(De(c,e,h,this.a,a,b)){c=!0;break a}e=h[h.length-1]}}c=!1}return c};k.Fh=function(){var a=Hg(this),b=this.b,c=0,d=0,e,f;e=0;for(f=b.length;e<f;++e)var g=b[e],d=d+oe(a,c,g,this.a),c=g[g.length-1];return d};
|
|
226
|
-
k.$=function(a){var b;void 0!==a?(b=Hg(this).slice(),Le(b,this.b,this.a,a)):b=this.l;a=b;b=this.b;var c=this.a,d=0,e=[],f=0,g,h;g=0;for(h=b.length;g<h;++g){var l=b[g];e[f++]=ye(a,d,l,c,e[f]);d=l[l.length-1]}e.length=f;return e};
|
|
227
|
-
function Ig(a){if(a.A!=a.f){var b=a.l,c=a.b,d=a.a,e=0,f=[],g,h,l;g=0;for(h=c.length;g<h;++g){var m=c[g];l=b;var n=m[0],p=d,q=Ta(void 0);l=Wa(q,l,e,n,p);f.push((l[0]+l[2])/2,(l[1]+l[3])/2);e=m[m.length-1]}b=Hg(a);c=a.b;d=a.a;g=0;h=[];m=0;for(l=c.length;m<l;++m)e=c[m],h=Ee(b,g,e,d,f,2*m,h),g=e[e.length-1];a.D=h;a.A=a.f}return a.D}k.hg=function(){var a=new P(null);a.K("XY",Ig(this).slice());return a};
|
|
228
|
-
function Hg(a){if(a.U!=a.f){var b=a.l,c;a:{c=a.b;var d,e;d=0;for(e=c.length;d<e;++d)if(!Je(b,c[d],a.a,void 0)){c=!1;break a}c=!0}c?a.j=b:(a.j=b.slice(),a.j.length=Le(a.j,a.b,a.a));a.U=a.f}return a.j}k.vb=function(a){var b=[],c=[],d=this.l,e=this.b,f=this.a;a=Math.sqrt(a);var g=0,h=0,l,m;l=0;for(m=e.length;l<m;++l){var n=e[l],p=[],h=Ae(d,g,n,f,a,b,h,p);c.push(p);g=n[n.length-1]}b.length=h;d=new Q(null);Sh(d,"XY",b,c);return d};
|
|
229
|
-
k.tg=function(a){if(0>a||this.b.length<=a)return null;var b;a?(b=this.b[a-1],b=b[b.length-1]):b=0;a=this.b[a].slice();var c=a[a.length-1];if(b){var d,e;d=0;for(e=a.length;d<e;++d)a[d]-=b}d=new D(null);d.K(this.P,this.l.slice(b,c),a);return d};k.rd=function(){var a=this.P,b=this.l,c=this.b,d=[],e=0,f,g,h,l;f=0;for(g=c.length;f<g;++f){var m=c[f].slice(),n=m[m.length-1];if(e)for(h=0,l=m.length;h<l;++h)m[h]-=e;h=new D(null);h.K(a,b.slice(e,n),m);d.push(h);e=n}return d};k.O=function(){return"MultiPolygon"};
|
|
230
|
-
k.ta=function(a){a:{var b=Hg(this),c=this.b,d=this.a,e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];if(He(b,e,h,d,a)){a=!0;break a}e=h[h.length-1]}a=!1}return a};k.Z=function(a,b){if(a){me(this,b,a,3);this.l||(this.l=[]);var c=this.l,d=this.a,e=this.b,f=0,e=e?e:[],g=0,h,l;h=0;for(l=a.length;h<l;++h)f=we(c,f,a[h],d,e[g]),e[g++]=f,f=f[f.length-1];e.length=g;e.length?(c=e[e.length-1],this.l.length=c.length?c[c.length-1]:0):this.l.length=0;this.u()}else Sh(this,"XY",null,this.b)};
|
|
231
|
-
function Sh(a,b,c,d){le(a,b,c);a.b=d;a.u()};function R(a){ie.call(this);this.a=a?a:null;Th(this)}v(R,ie);function Uh(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(a[c].clone());return b}function Vh(a){var b,c;if(a.a)for(b=0,c=a.a.length;b<c;++b)tc(a.a[b],"change",a.u,a)}function Th(a){var b,c;if(a.a)for(b=0,c=a.a.length;b<c;++b)x(a.a[b],"change",a.u,a)}k=R.prototype;k.clone=function(){var a=new R(null);a.df(this.a);return a};
|
|
232
|
-
k.Ja=function(a,b,c,d){if(d<Na(this.C(),a,b))return d;var e=this.a,f,g;f=0;for(g=e.length;f<g;++f)d=e[f].Ja(a,b,c,d);return d};k.ob=function(a,b){var c=this.a,d,e;d=0;for(e=c.length;d<e;++d)if(c[d].ob(a,b))return!0;return!1};k.jc=function(a){Ta(a);for(var b=this.a,c=0,d=b.length;c<d;++c)Va(a,b[c].C());return a};k.ld=function(){return Uh(this.a)};
|
|
233
|
-
k.tc=function(a){this.o!=this.f&&(mb(this.g),this.i=0,this.o=this.f);if(0>a||this.i&&a<this.i)return this;var b=a.toString();if(this.g.hasOwnProperty(b))return this.g[b];var c=[],d=this.a,e=!1,f,g;f=0;for(g=d.length;f<g;++f){var h=d[f],l=h.tc(a);c.push(l);l!==h&&(e=!0)}if(e)return a=new R(null),Vh(a),a.a=c,Th(a),a.u(),this.g[b]=a;this.i=a;return this};k.O=function(){return"GeometryCollection"};k.ta=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c].ta(a))return!0;return!1};
|
|
234
|
-
k.rotate=function(a,b){for(var c=this.a,d=0,e=c.length;d<e;++d)c[d].rotate(a,b);this.u()};k.scale=function(a,b,c){c||(c=gb(this.C()));for(var d=this.a,e=0,f=d.length;e<f;++e)d[e].scale(a,b,c);this.u()};k.df=function(a){a=Uh(a);Vh(this);this.a=a;Th(this);this.u()};k.rb=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)b[c].rb(a);this.u()};k.translate=function(a,b){var c=this.a,d,e;d=0;for(e=c.length;d<e;++d)c[d].translate(a,b);this.u()};k.qa=function(){Vh(this);ie.prototype.qa.call(this)};function Wh(a){a=a?a:{};Gh.call(this);this.defaultDataProjection=Fb(a.defaultDataProjection?a.defaultDataProjection:"EPSG:4326");a.featureProjection&&(this.f=Fb(a.featureProjection));this.c=a.geometryName}v(Wh,Kh);function Nh(a,b){return a?Jh((0,Xh[a.type])(a),!1,b):null}function Yh(a,b){return(0,Zh[a.O()])(Jh(a,!0,b),b)}
|
|
235
|
-
var Xh={Point:function(a){return new C(a.coordinates)},LineString:function(a){return new M(a.coordinates)},Polygon:function(a){return new D(a.coordinates)},MultiPoint:function(a){return new P(a.coordinates)},MultiLineString:function(a){return new N(a.coordinates)},MultiPolygon:function(a){return new Q(a.coordinates)},GeometryCollection:function(a,b){var c=a.geometries.map(function(a){return Nh(a,b)});return new R(c)}},Zh={Point:function(a){return{type:"Point",coordinates:a.$()}},LineString:function(a){return{type:"LineString",
|
|
236
|
-
coordinates:a.$()}},Polygon:function(a,b){var c;b&&(c=b.rightHanded);return{type:"Polygon",coordinates:a.$(c)}},MultiPoint:function(a){return{type:"MultiPoint",coordinates:a.$()}},MultiLineString:function(a){return{type:"MultiLineString",coordinates:a.$()}},MultiPolygon:function(a,b){var c;b&&(c=b.rightHanded);return{type:"MultiPolygon",coordinates:a.$(c)}},GeometryCollection:function(a,b){return{type:"GeometryCollection",geometries:a.a.map(function(a){var c=lb({},b);delete c.featureProjection;return Yh(a,
|
|
237
|
-
c)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};function Mh(a,b,c){b="Feature"===b.type?b:{type:"Feature",geometry:b};c=Nh(b.geometry,c);var d=new H;a.c&&d.Mc(a.c);d.Ba(c);void 0!==b.id&&d.Yb(b.id);b.properties&&d.N(b.properties);return d}Wh.prototype.a=function(a,b){b=Ih(this,b);var c={type:"Feature"},d=a.b;void 0!==d&&(c.id=d);(d=a.L())?c.geometry=Yh(d,b):c.geometry=null;d=a.Y();delete d[a.a];ob(d)?c.properties=null:c.properties=d;return c};
|
|
238
|
-
Wh.prototype.b=function(a,b){b=Ih(this,b);var c=[],d,e;d=0;for(e=a.length;d<e;++d)c.push(this.a(a[d],b));return{type:"FeatureCollection",features:c}};Wh.prototype.g=function(a,b){return Yh(a,Ih(this,b))};function $h(){this.c=new XMLSerializer;Gh.call(this)}v($h,Gh);k=$h.prototype;k.O=function(){return"xml"};k.Xb=function(a,b){if(qh(a))return ai(this,a,b);if(rh(a))return this.Xe(a,b);if("string"===typeof a){var c=sh(a);return ai(this,c,b)}return null};function ai(a,b,c){a=bi(a,b,c);return 0<a.length?a[0]:null}k.Xe=function(){return null};k.Fb=function(a,b){if(qh(a))return bi(this,a,b);if(rh(a))return this.Ld(a,b);if("string"===typeof a){var c=sh(a);return bi(this,c,b)}return[]};
|
|
239
|
-
function bi(a,b,c){var d=[];for(b=b.firstChild;b;b=b.nextSibling)b.nodeType==Node.ELEMENT_NODE&&ga(d,a.Ld(b,c));return d}k.Jc=function(a){if(qh(a)||rh(a))return null;"string"===typeof a&&sh(a);return null};k.Gb=function(a){return qh(a)||rh(a)?this.defaultDataProjection:"string"===typeof a?(sh(a),this.defaultDataProjection):null};k.Tc=function(){return this.c.serializeToString(null)};k.bc=function(a,b){var c=this.be(a,b);return this.c.serializeToString(c)};k.be=function(){return null};k.Uc=function(){return this.c.serializeToString(null)};function ci(a){a=oh(a);return di(a)}function di(a){if(a=/^\s*(true|1)|(false|0)\s*$/.exec(a))return void 0!==a[1]||!1}function ei(a){a=oh(a);a=Date.parse(a);return isNaN(a)?void 0:a/1E3}function fi(a){a=oh(a);return gi(a)}function gi(a){if(a=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(a))return parseFloat(a[1])}function hi(a){a=oh(a);return ii(a)}function ii(a){if(a=/^\s*(\d+)\s*$/.exec(a))return parseInt(a[1],10)}function S(a){return oh(a).trim()}function ji(a,b){ki(a,b?"1":"0")}
|
|
240
|
-
function li(a,b){a.appendChild(nh.createTextNode(b.toPrecision()))}function mi(a,b){a.appendChild(nh.createTextNode(b.toString()))}function ki(a,b){a.appendChild(nh.createTextNode(b))};var ni=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function oi(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}
|
|
241
|
-
function pi(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 qi(a,b){var c=b[b.length-1],d=a.getAttribute("href");null!==d&&(c.link=d);Ch(ri,a,b)}function si(a,b){b[b.length-1].extensionsNode_=a}
|
|
242
|
-
K(ni,{rte:uh(function(a,b){var c=b[0],d=L({flatCoordinates:[],layoutOptions:{}},ti,a,b);if(d){var e=d.flatCoordinates;delete d.flatCoordinates;var f=d.layoutOptions;delete d.layoutOptions;var f=pi(f,e),g=new M(null);g.K(f,e);Jh(g,!1,c);c=new H(g);c.N(d);return c}}),trk:uh(function(a,b){var c=b[0],d=L({flatCoordinates:[],ends:[],layoutOptions:{}},ui,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=pi(g,e,f),h=
|
|
243
|
-
new N(null);h.K(g,e,f);Jh(h,!1,c);c=new H(h);c.N(d);return c}}),wpt:uh(function(a,b){var c=b[0],d=L({},vi,a,b);if(d){var e={},f=oi([],e,a,d),e=pi(e,f),f=new C(f,e);Jh(f,!1,c);c=new H(f);c.N(d);return c}})});
|
|
244
|
-
var ri=K(ni,{text:I(S,"linkText"),type:I(S,"linkType")}),ti=K(ni,{name:I(S),cmt:I(S),desc:I(S),src:I(S),link:qi,number:I(hi),extensions:si,type:I(S),rtept:function(a,b){var c=L({},wi,a,b);if(c){var d=b[b.length-1];oi(d.flatCoordinates,d.layoutOptions,a,c)}}}),wi=K(ni,{ele:I(fi),time:I(ei)}),ui=K(ni,{name:I(S),cmt:I(S),desc:I(S),src:I(S),link:qi,number:I(hi),type:I(S),extensions:si,trkseg:function(a,b){var c=b[b.length-1];Ch(xi,a,b);c.ends.push(c.flatCoordinates.length)}}),xi=K(ni,{trkpt:function(a,
|
|
245
|
-
b){var c=L({},yi,a,b);if(c){var d=b[b.length-1];oi(d.flatCoordinates,d.layoutOptions,a,c)}}}),yi=K(ni,{ele:I(fi),time:I(ei)}),vi=K(ni,{ele:I(fi),time:I(ei),magvar:I(fi),geoidheight:I(fi),name:I(S),cmt:I(S),desc:I(S),src:I(S),link:qi,sym:I(S),type:I(S),fix:I(S),sat:I(hi),hdop:I(fi),vdop:I(fi),pdop:I(fi),ageofdgpsdata:I(fi),dgpsid:I(hi),extensions:si});function zi(a,b,c){a.setAttribute("href",b);b=c[c.length-1].properties;Dh({node:a},Ai,Ah,[b.linkText,b.linkType],c,Bi)}
|
|
246
|
-
function Ci(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":b[3]&&(f.time=b[3]);case "XYZ":b[2]&&(f.ele=b[2]);break;case "XYM":b[2]&&(f.time=b[2])}b="rtept"==a.nodeName?Di[e]:Ei[e];d=Bh(f,b);Dh({node:a,properties:f},Fi,Ah,d,c,b)}
|
|
247
|
-
var Bi=["text","type"],Ai=K(ni,{text:J(ki),type:J(ki)}),Gi=K(ni,"name cmt desc src link number type rtept".split(" ")),Hi=K(ni,{name:J(ki),cmt:J(ki),desc:J(ki),src:J(ki),link:J(zi),number:J(mi),type:J(ki),rtept:xh(J(Ci))}),Di=K(ni,["ele","time"]),Ii=K(ni,"name cmt desc src link number type trkseg".split(" ")),Li=K(ni,{name:J(ki),cmt:J(ki),desc:J(ki),src:J(ki),link:J(zi),number:J(mi),type:J(ki),trkseg:xh(J(function(a,b,c){Dh({node:a,geometryLayout:b.P,properties:{}},Ji,Ki,b.$(),c)}))}),Ki=yh("trkpt"),
|
|
248
|
-
Ji=K(ni,{trkpt:J(Ci)}),Ei=K(ni,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),Fi=K(ni,{ele:J(li),time:J(function(a,b){var c=new Date(1E3*b);a.appendChild(nh.createTextNode(c.getUTCFullYear()+"-"+ee(c.getUTCMonth()+1)+"-"+ee(c.getUTCDate())+"T"+ee(c.getUTCHours())+":"+ee(c.getUTCMinutes())+":"+ee(c.getUTCSeconds())+"Z"))}),magvar:J(li),geoidheight:J(li),name:J(ki),cmt:J(ki),desc:J(ki),src:J(ki),link:J(zi),sym:J(ki),type:J(ki),fix:J(ki),
|
|
249
|
-
sat:J(mi),hdop:J(li),vdop:J(li),pdop:J(li),ageofdgpsdata:J(li),dgpsid:J(mi)});
|
|
250
|
-
K(ni,{rte:J(function(a,b,c){var d=c[0],e=b.Y();a={node:a,properties:e};if(b=b.L())b=Jh(b,!0,d),a.geometryLayout=b.P,e.rtept=b.$();d=Gi[c[c.length-1].node.namespaceURI];e=Bh(e,d);Dh(a,Hi,Ah,e,c,d)}),trk:J(function(a,b,c){var d=c[0],e=b.Y();a={node:a,properties:e};if(b=b.L())b=Jh(b,!0,d),e.trkseg=b.sc();d=Ii[c[c.length-1].node.namespaceURI];e=Bh(e,d);Dh(a,Li,Ah,e,c,d)}),wpt:J(function(a,b,c){var d=c[0],e=c[c.length-1];e.properties=b.Y();if(b=b.L())b=Jh(b,!0,d),e.geometryLayout=b.P,Ci(a,b.$(),c)})});function Mi(){Gh.call(this)}v(Mi,Gh);function Ni(a){return"string"===typeof a?a:""}k=Mi.prototype;k.O=function(){return"text"};k.Xb=function(a,b){var c;c=Ih(this,b);if(c=Oi(Ni(a),c)){var d=new H;d.Ba(c);c=d}else c=null;return c};k.Fb=function(a,b){var c=Ih(this,b),d=[],c=Oi(Ni(a),c);this.a&&"GeometryCollection"==c.O()?d=c.a:d=[c];for(var e=[],f=0,g=d.length;f<g;++f)c=new H,c.Ba(d[f]),e.push(c);return e};k.Jc=function(a,b){return Oi(Ni(a),Ih(this,b))};k.Gb=function(){return this.defaultDataProjection};
|
|
251
|
-
k.Tc=function(a,b){return Pi(a,Ih(this,b))};k.bc=function(a,b){var c;c=Ih(this,b);if(1==a.length)c=Pi(a[0],c);else{for(var d=[],e=0,f=a.length;e<f;++e)d.push(a[e].L());d=new R(d);c=Qi(Jh(d,!0,c))}return c};k.Uc=function(a,b){var c=Ih(this,b);return Qi(Jh(a,!0,c))};function Ri(a,b,c,d,e,f){yc.call(this);this.j=null;this.J=a?a:new Image;null!==d&&(this.J.crossOrigin=d);this.b=f?document.createElement("CANVAS"):null;this.i=f;this.g=null;this.f=e;this.a=c;this.v=b;this.o=!1;2==this.f&&Si(this)}v(Ri,yc);function Si(a){var b=Rc(1,1);try{b.drawImage(a.J,0,0),b.getImageData(0,0,1,1)}catch(c){a.o=!0}}Ri.prototype.s=function(){this.f=3;this.g.forEach(oc);this.g=null;this.c("change")};
|
|
252
|
-
Ri.prototype.B=function(){this.f=2;this.a&&(this.J.width=this.a[0],this.J.height=this.a[1]);this.a=[this.J.width,this.J.height];this.g.forEach(oc);this.g=null;Si(this);if(!this.o&&null!==this.i){this.b.width=this.J.width;this.b.height=this.J.height;var a=this.b.getContext("2d");a.drawImage(this.J,0,0);for(var b=a.getImageData(0,0,this.J.width,this.J.height),c=b.data,d=this.i[0]/255,e=this.i[1]/255,f=this.i[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")};
|
|
253
|
-
Ri.prototype.X=function(){return this.b?this.b:this.J};Ri.prototype.load=function(){if(0==this.f){this.f=1;this.g=[x(this.J,"error",this.s,this,!0),x(this.J,"load",this.B,this,!0)];try{this.J.src=this.v}catch(a){this.s()}}};function Ti(a){a=a||{};this.i=void 0!==a.anchor?a.anchor:[.5,.5];this.s=null;this.c=void 0!==a.anchorOrigin?a.anchorOrigin:"top-left";this.A=void 0!==a.anchorXUnits?a.anchorXUnits:"fraction";this.D=void 0!==a.anchorYUnits?a.anchorYUnits:"fraction";this.G=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;ra(!(void 0!==d&&b),4);ra(!b||b&&c,5);void 0!==d&&d.length||!b||(d=b.src||oa(b).toString());ra(void 0!==d&&0<d.length,6);var e=void 0!==
|
|
254
|
-
a.src?0:2,f;void 0!==a.color?(f=a.color,f=Array.isArray(f)?f:Oc(f)):f=null;this.b=f;f=this.G;var g=this.b,h=kg.get(d,f,g);h||(h=new Ri(b,d,c,f,e,g),kg.set(d,f,g,h));this.a=h;this.F=void 0!==a.offset?a.offset:[0,0];this.f=void 0!==a.offsetOrigin?a.offsetOrigin:"top-left";this.V=null;this.W=void 0!==a.size?a.size:null;bh.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!==
|
|
255
|
-
a.rotateWithView?a.rotateWithView:!1})}v(Ti,bh);k=Ti.prototype;
|
|
256
|
-
k.clone=function(){var a=this.X(1),b;if(2===this.a.f)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 Ti({anchor:this.i.slice(),anchorOrigin:this.c,anchorXUnits:this.A,anchorYUnits:this.D,crossOrigin:this.G,color:this.b&&this.b.slice?this.b.slice():this.b||void 0,img:b?b:void 0,imgSize:b?this.a.a.slice():void 0,src:b?void 0:this.a.v,offset:this.F.slice(),offsetOrigin:this.f,
|
|
257
|
-
size:null!==this.W?this.W.slice():void 0,opacity:this.j,scale:this.g,snapToPixel:this.o,rotation:this.v,rotateWithView:this.B})};
|
|
258
|
-
k.tb=function(){if(this.s)return this.s;var a=this.i,b=this.ab();if("fraction"==this.A||"fraction"==this.D){if(!b)return null;a=this.i.slice();"fraction"==this.A&&(a[0]*=b[0]);"fraction"==this.D&&(a[1]*=b[1])}if("top-left"!=this.c){if(!b)return null;a===this.i&&(a=this.i.slice());if("top-right"==this.c||"bottom-right"==this.c)a[0]=-a[0]+b[0];if("bottom-left"==this.c||"bottom-right"==this.c)a[1]=-a[1]+b[1]}return this.s=a};k.Oh=function(){return this.b};k.X=function(a){return this.a.X(a)};k.md=function(){return this.a.a};
|
|
259
|
-
k.Dc=function(){return this.a.f};k.Re=function(){var a=this.a;if(!a.j)if(a.o){var b=a.a[0],c=a.a[1],d=Rc(b,c);d.fillRect(0,0,b,c);a.j=d.canvas}else a.j=a.J;return a.j};k.Bb=function(){if(this.V)return this.V;var a=this.F;if("top-left"!=this.f){var b=this.ab(),c=this.a.a;if(!b||!c)return null;a=a.slice();if("top-right"==this.f||"bottom-right"==this.f)a[0]=c[0]-b[0]-a[0];if("bottom-left"==this.f||"bottom-right"==this.f)a[1]=c[1]-b[1]-a[1]}return this.V=a};k.Ph=function(){return this.a.v};
|
|
260
|
-
k.ab=function(){return this.W?this.W:this.a.a};k.He=function(a,b){return x(this.a,"change",a,b)};k.load=function(){this.a.load()};k.lf=function(a,b){tc(this.a,"change",a,b)};function Ui(a){a=a||{};this.c=a.font;this.g=a.rotation;this.v=a.rotateWithView;this.a=a.scale;this.ka=a.text;this.i=a.textAlign;this.j=a.textBaseline;this.ra=void 0!==a.fill?a.fill:new fh({color:"#333"});this.ua=void 0!==a.stroke?a.stroke:null;this.f=void 0!==a.offsetX?a.offsetX:0;this.b=void 0!==a.offsetY?a.offsetY:0}k=Ui.prototype;
|
|
261
|
-
k.clone=function(){return new Ui({font:this.c,rotation:this.g,rotateWithView:this.v,scale:this.a,text:this.ma(),textAlign:this.i,textBaseline:this.j,fill:this.aa()?this.aa().clone():void 0,stroke:this.ca()?this.ca().clone():void 0,offsetX:this.f,offsetY:this.b})};k.cg=function(){return this.c};k.og=function(){return this.f};k.pg=function(){return this.b};k.aa=function(){return this.ra};k.Uh=function(){return this.v};k.Vh=function(){return this.g};k.Wh=function(){return this.a};k.ca=function(){return this.ua};
|
|
262
|
-
k.ma=function(){return this.ka};k.ug=function(){return this.i};k.vg=function(){return this.j};k.cf=function(a){this.c=a};k.ef=function(a){this.f=a};k.ff=function(a){this.b=a};k.Lc=function(a){this.ra=a};k.Xh=function(a){this.g=a};k.Ve=function(a){this.a=a};k.Nc=function(a){this.ua=a};k.Oc=function(a){this.ka=a};k.gf=function(a){this.i=a};k.Ni=function(a){this.j=a};function Vi(a){a=a?a:{};$h.call(this);Wi||(Xi=[255,255,255,1],Yi=new fh({color:Xi}),Zi=[20,2],$i=aj="pixels",bj=[64,64],cj="https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png",dj=.5,ej=new Ti({anchor:Zi,anchorOrigin:"bottom-left",anchorXUnits:aj,anchorYUnits:$i,crossOrigin:"anonymous",rotation:0,scale:dj,size:bj,src:cj}),fj="NO_IMAGE",gj=new Ng({color:Xi,width:1}),hj=new Ng({color:[51,51,51,1],width:2}),ij=new Ui({font:"bold 16px Helvetica",fill:Yi,stroke:hj,scale:.8}),jj=new gh({fill:Yi,
|
|
263
|
-
image:ej,text:ij,stroke:gj,zIndex:0}),Wi=[jj]);this.defaultDataProjection=Fb("EPSG:4326");this.b=a.defaultStyle?a.defaultStyle:Wi;this.g=void 0!==a.extractStyles?a.extractStyles:!0;this.j=void 0!==a.writeStyles?a.writeStyles:!0;this.a={};this.i=void 0!==a.showPointNames?a.showPointNames:!0}var Wi,Xi,Yi,Zi,aj,$i,bj,cj,dj,ej,fj,gj,hj,ij,jj;v(Vi,$h);
|
|
264
|
-
var kj=["http://www.google.com/kml/ext/2.2"],da=[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"],lj={fraction:"fraction",pixels:"pixels"};
|
|
265
|
-
function mj(a,b){var c,d=[0,0],e="start";a.X()&&(c=a.X().md(),null===c&&(c=bj),2==c.length&&(e=a.X().g,d[0]=e*c[0]/2,d[1]=-e*c[1]/2,e="left"));if(null!==a.ma()){var f=a.ma();c=f.clone();c.cf(f.c||ij.c);c.Ve(f.a||ij.a);c.Lc(f.aa()||ij.aa());c.Nc(f.ca()||hj)}else c=ij.clone();c.Oc(b);c.ef(d[0]);c.ff(d[1]);c.gf(e);return new gh({text:c})}
|
|
266
|
-
function nj(a,b,c,d,e){return function(){var f=e,g="";f&&this.L()&&(f="Point"===this.L().O());f&&(g=this.get("name"),f=f&&g);if(a)return f?(f=mj(a[0],g),a.concat(f)):a;if(b){var h=oj(b,c,d);return f?(f=mj(h[0],g),h.concat(f)):h}return f?(f=mj(c[0],g),c.concat(f)):c}}function oj(a,b,c){return Array.isArray(a)?a:"string"===typeof a?(!(a in c)&&"#"+a in c&&(a="#"+a),oj(c[a],b,c)):b}
|
|
267
|
-
function pj(a){a=oh(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]}function qj(a){a=oh(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);if(""===a)return b}
|
|
268
|
-
function rj(a){var b=oh(a).trim();return a.baseURI?(new URL(b,a.baseURI)).href:b}function sj(a){return fi(a)}function tj(a,b){return L(null,uj,a,b)}function vj(a,b){var c=L({l:[],pf:[]},wj,a,b);if(c){var d=c.l,c=c.pf,e,f;e=0;for(f=Math.min(d.length,c.length);e<f;++e)d[4*e+3]=c[e];c=new M(null);c.K("XYZM",d);return c}}function xj(a,b){var c=L({},yj,a,b),d=L(null,zj,a,b);if(d){var e=new M(null);e.K("XYZ",d);e.N(c);return e}}
|
|
269
|
-
function Aj(a,b){var c=L({},yj,a,b),d=L(null,zj,a,b);if(d){var e=new D(null);e.K("XYZ",d,[d.length]);e.N(c);return e}}
|
|
270
|
-
function Bj(a,b){var c=L([],Cj,a,b);if(!c)return null;if(!c.length)return new R(c);var d,e=!0,f=c[0].O(),g,h,l;h=1;for(l=c.length;h<l;++h)if(g=c[h],g.O()!=f){e=!1;break}if(e)if("Point"==f){d=c[0];e=d.P;f=d.l;h=1;for(l=c.length;h<l;++h)g=c[h],ga(f,g.l);d=new P(null);d.K(e,f);Dj(d,c)}else if("LineString"==f)d=new N(null),Rh(d,c),Dj(d,c);else if("Polygon"==f){g=d=new Q(null);h=g.P;l=[];var e=[],m,n,f=0;for(m=c.length;f<m;++f){var p=c[f];f||(h=p.P);var q=l.length;n=p.Ra();var t,A;t=0;for(A=n.length;t<
|
|
271
|
-
A;++t)n[t]+=q;ga(l,p.l);e.push(n)}Sh(g,h,l,e);Dj(d,c)}else"GeometryCollection"==f?d=new R(c):ra(!1,37);else d=new R(c);return d}function Ej(a,b){var c=L({},yj,a,b),d=L(null,zj,a,b);if(d){var e=new C(null);e.K("XYZ",d);e.N(c);return e}}function Fj(a,b){var c=L({},yj,a,b),d=L([null],Gj,a,b);if(d&&d[0]){var e=new D(null),f=d[0],g=[f.length],h,l;h=1;for(l=d.length;h<l;++h)ga(f,d[h]),g.push(f.length);e.K("XYZ",f,g);e.N(c);return e}}
|
|
272
|
-
function Hj(a,b){var c=L({},Ij,a,b);if(!c)return null;var d="fillStyle"in c?c.fillStyle:Yi,e=c.fill;void 0===e||e||(d=null);e="imageStyle"in c?c.imageStyle:ej;e==fj&&(e=void 0);var f="textStyle"in c?c.textStyle:ij,g="strokeStyle"in c?c.strokeStyle:gj,c=c.outline;void 0===c||c||(g=null);return[new gh({fill:d,image:e,stroke:g,text:f,zIndex:void 0})]}
|
|
273
|
-
function Dj(a,b){var c=b.length,d=Array(b.length),e=Array(b.length),f,g,h,l;h=l=!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],l=l||e[g];h&&a.set("extrude",d);l&&a.set("altitudeMode",e)}function Jj(a,b){Ch(Kj,a,b)}function Lj(a,b){Ch(Mj,a,b)}
|
|
274
|
-
var Nj=K(da,{displayName:I(S),value:I(S)}),Kj=K(da,{Data:function(a,b){var c=a.getAttribute("name");Ch(Nj,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){Ch(Oj,a,b)}}),Mj=K(da,{LatLonAltBox:function(a,b){var c=L({},Pj,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)}},
|
|
275
|
-
Lod:function(a,b){var c=L({},Qj,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)}}}),Pj=K(da,{altitudeMode:I(S),minAltitude:I(fi),maxAltitude:I(fi),north:I(fi),south:I(fi),east:I(fi),west:I(fi)}),Qj=K(da,{minLodPixels:I(fi),maxLodPixels:I(fi),minFadeExtent:I(fi),maxFadeExtent:I(fi)}),yj=K(da,{extrude:I(ci),altitudeMode:I(S)}),uj=K(da,{coordinates:vh(qj)}),
|
|
276
|
-
Gj=K(da,{innerBoundaryIs:function(a,b){var c=L(void 0,Rj,a,b);c&&b[b.length-1].push(c)},outerBoundaryIs:function(a,b){var c=L(void 0,Sj,a,b);c&&(b[b.length-1][0]=c)}}),wj=K(da,{when:function(a,b){var c=b[b.length-1].pf,d=oh(a),d=Date.parse(d);c.push(isNaN(d)?0:d)}},K(kj,{coord:function(a,b){var c=b[b.length-1].l,d=oh(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]),
|
|
277
|
-
parseFloat(d[3]),0):c.push(0,0,0,0)}})),zj=K(da,{coordinates:vh(qj)}),Tj=K(da,{href:I(rj)},K(kj,{x:I(fi),y:I(fi),w:I(fi),h:I(fi)})),Uj=K(da,{Icon:I(function(a,b){var c=L({},Tj,a,b);return c?c:null}),heading:I(fi),hotSpot:I(function(a){var b=a.getAttribute("xunits"),c=a.getAttribute("yunits");return{x:parseFloat(a.getAttribute("x")),ce:lj[b],y:parseFloat(a.getAttribute("y")),de:lj[c]}}),scale:I(sj)}),Rj=K(da,{LinearRing:vh(tj)}),Vj=K(da,{color:I(pj),scale:I(sj)}),Wj=K(da,{color:I(pj),width:I(fi)}),
|
|
278
|
-
Cj=K(da,{LineString:uh(xj),LinearRing:uh(Aj),MultiGeometry:uh(Bj),Point:uh(Ej),Polygon:uh(Fj)}),Xj=K(kj,{Track:uh(vj)}),Zj=K(da,{ExtendedData:Jj,Region:Lj,Link:function(a,b){Ch(Yj,a,b)},address:I(S),description:I(S),name:I(S),open:I(ci),phoneNumber:I(S),visibility:I(ci)}),Yj=K(da,{href:I(rj)}),Sj=K(da,{LinearRing:vh(tj)}),ak=K(da,{Style:I(Hj),key:I(S),styleUrl:I(rj)}),ck=K(da,{ExtendedData:Jj,Region:Lj,MultiGeometry:I(Bj,"geometry"),LineString:I(xj,"geometry"),LinearRing:I(Aj,"geometry"),Point:I(Ej,
|
|
279
|
-
"geometry"),Polygon:I(Fj,"geometry"),Style:I(Hj),StyleMap:function(a,b){var c=L(void 0,bk,a,b);if(c){var d=b[b.length-1];Array.isArray(c)?d.Style=c:"string"===typeof c?d.styleUrl=c:ra(!1,38)}},address:I(S),description:I(S),name:I(S),open:I(ci),phoneNumber:I(S),styleUrl:I(rj),visibility:I(ci)},K(kj,{MultiTrack:I(function(a,b){var c=L([],Xj,a,b);if(c){var d=new N(null);Rh(d,c);return d}},"geometry"),Track:I(vj,"geometry")})),dk=K(da,{color:I(pj),fill:I(ci),outline:I(ci)}),Oj=K(da,{SimpleData:function(a,
|
|
280
|
-
b){var c=a.getAttribute("name");if(null!==c){var d=S(a);b[b.length-1][c]=d}}}),Ij=K(da,{IconStyle:function(a,b){var c=L({},Uj,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=cj);var l,m,n;(h=c.hotSpot)?(l=[h.x,h.y],m=h.ce,n=h.de):g===cj?(l=Zi,m=aj,n=$i):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(g)&&(l=[.5,0],n=m="fraction");var p,h=e.x,q=e.y;void 0!==h&&void 0!==q&&(p=[h,q]);var t,h=e.w,e=e.h;void 0!==h&&void 0!==e&&(t=[h,
|
|
281
|
-
e]);var A,e=c.heading;void 0!==e&&(A=e*Math.PI/180);c=c.scale;f?(g==cj&&(t=bj,void 0===c&&(c=dj)),f=new Ti({anchor:l,anchorOrigin:"bottom-left",anchorXUnits:m,anchorYUnits:n,crossOrigin:"anonymous",offset:p,offsetOrigin:"bottom-left",rotation:A,scale:c,size:t,src:g}),d.imageStyle=f):d.imageStyle=fj}},LabelStyle:function(a,b){var c=L({},Vj,a,b);c&&(b[b.length-1].textStyle=new Ui({fill:new fh({color:"color"in c?c.color:Xi}),scale:c.scale}))},LineStyle:function(a,b){var c=L({},Wj,a,b);c&&(b[b.length-
|
|
282
|
-
1].strokeStyle=new Ng({color:"color"in c?c.color:Xi,width:"width"in c?c.width:1}))},PolyStyle:function(a,b){var c=L({},dk,a,b);if(c){var d=b[b.length-1];d.fillStyle=new fh({color:"color"in c?c.color:Xi});var e=c.fill;void 0!==e&&(d.fill=e);c=c.outline;void 0!==c&&(d.outline=c)}}}),bk=K(da,{Pair:function(a,b){var c=L({},ak,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))}}});k=Vi.prototype;
|
|
283
|
-
k.Kd=function(a,b){var c=K(da,{Document:th(this.Kd,this),Folder:th(this.Kd,this),Placemark:uh(this.Nd,this),Style:this.ri.bind(this),StyleMap:this.pi.bind(this)});if(c=L([],c,a,b,this))return c};k.Nd=function(a,b){var c=L({geometry:null},ck,a,b);if(c){var d=new H,e=a.getAttribute("id");null!==e&&d.Yb(e);var e=b[0],f=c.geometry;f&&Jh(f,!1,e);d.Ba(f);delete c.geometry;this.g&&d.xd(nj(c.Style,c.styleUrl,this.b,this.a,this.i));delete c.Style;d.N(c);return d}};
|
|
284
|
-
k.ri=function(a,b){var c=a.getAttribute("id");if(null!==c){var d=Hj(a,b);d&&(c=a.baseURI?(new URL("#"+c,a.baseURI)).href:"#"+c,this.a[c]=d)}};k.pi=function(a,b){var c=a.getAttribute("id");if(null!==c){var d=L(void 0,bk,a,b);d&&(c=a.baseURI?(new URL("#"+c,a.baseURI)).href:"#"+c,this.a[c]=d)}};k.Xe=function(a,b){if(!ca(a.namespaceURI))return null;var c=this.Nd(a,[Hh(this,a,b)]);return c?c:null};
|
|
285
|
-
k.Ld=function(a,b){if(!ca(a.namespaceURI))return[];var c;c=a.localName;if("Document"==c||"Folder"==c)return(c=this.Kd(a,[Hh(this,a,b)]))?c:[];if("Placemark"==c)return(c=this.Nd(a,[Hh(this,a,b)]))?[c]:[];if("kml"==c){c=[];var d;for(d=a.firstElementChild;d;d=d.nextElementSibling){var e=this.Ld(d,b);e&&ga(c,e)}return c}return[]};k.mi=function(a){if(qh(a))return ek(this,a);if(rh(a))return fk(this,a);if("string"===typeof a)return a=sh(a),ek(this,a)};
|
|
286
|
-
function ek(a,b){var c;for(c=b.firstChild;c;c=c.nextSibling)if(c.nodeType==Node.ELEMENT_NODE){var d=fk(a,c);if(d)return d}}function fk(a,b){var c;for(c=b.firstElementChild;c;c=c.nextElementSibling)if(ca(c.namespaceURI)&&"name"==c.localName)return S(c);for(c=b.firstElementChild;c;c=c.nextElementSibling){var d=c.localName;if(ca(c.namespaceURI)&&("Document"==d||"Folder"==d||"Placemark"==d||"kml"==d)&&(d=fk(a,c)))return d}}
|
|
287
|
-
k.ni=function(a){var b=[];qh(a)?ga(b,gk(this,a)):rh(a)?ga(b,hk(this,a)):"string"===typeof a&&(a=sh(a),ga(b,gk(this,a)));return b};function gk(a,b){var c,d=[];for(c=b.firstChild;c;c=c.nextSibling)c.nodeType==Node.ELEMENT_NODE&&ga(d,hk(a,c));return d}
|
|
288
|
-
function hk(a,b){var c,d=[];for(c=b.firstElementChild;c;c=c.nextElementSibling)if(ca(c.namespaceURI)&&"NetworkLink"==c.localName){var e=L({},Zj,c,[]);d.push(e)}for(c=b.firstElementChild;c;c=c.nextElementSibling)e=c.localName,!ca(c.namespaceURI)||"Document"!=e&&"Folder"!=e&&"kml"!=e||ga(d,hk(a,c));return d}k.oi=function(a){var b=[];qh(a)?ga(b,ik(this,a)):rh(a)?ga(b,this.Kc(a)):"string"===typeof a&&(a=sh(a),ga(b,ik(this,a)));return b};
|
|
289
|
-
function ik(a,b){var c,d=[];for(c=b.firstChild;c;c=c.nextSibling)c.nodeType==Node.ELEMENT_NODE&&ga(d,a.Kc(c));return d}k.Kc=function(a){var b,c=[];for(b=a.firstElementChild;b;b=b.nextElementSibling)if(ca(b.namespaceURI)&&"Region"==b.localName){var d=L({},Mj,b,[]);c.push(d)}for(b=a.firstElementChild;b;b=b.nextElementSibling)a=b.localName,!ca(b.namespaceURI)||"Document"!=a&&"Folder"!=a&&"kml"!=a||ga(c,this.Kc(b));return c};
|
|
290
|
-
function jk(a,b){var c=Array.isArray(b)?b:Oc(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}ki(a,c.join(""))}function kk(a,b,c){a={node:a};var d=b.O(),e,f;"GeometryCollection"==d?(e=b.ld(),f=lk):"MultiPoint"==d?(e=b.Ad(),f=mk):"MultiLineString"==d?(e=b.sc(),f=nk):"MultiPolygon"==d?(e=b.rd(),f=ok):ra(!1,39);Dh(a,pk,f,e,c)}function qk(a,b,c){Dh({node:a},rk,sk,[b],c)}
|
|
291
|
-
function tk(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=Bh(a,f);Dh(d,uk,vk,[{names:f,values:g}],c)}if(f=b.i)if(f=f.call(b,0))f=Array.isArray(f)?f[0]:f,this.j&&(a.Style=f),(f=f.ma())&&(a.name=f.ma());f=wk[c[c.length-1].node.namespaceURI];a=Bh(a,f);Dh(d,uk,Ah,a,c,f);a=c[0];(b=b.L())&&(b=Jh(b,!0,a));Dh(d,uk,
|
|
292
|
-
lk,[b],c)}function xk(a,b,c){var d=b.l;a={node:a};a.layout=b.P;a.stride=b.a;Dh(a,yk,zk,[d],c)}function Ak(a,b,c){b=b.pd();var d=b.shift();a={node:a};Dh(a,Bk,Ck,b,c);Dh(a,Bk,Dk,[d],c)}function Ek(a,b){li(a,Math.round(1E6*b)/1E6)}
|
|
293
|
-
var Fk=K(da,["Document","Placemark"]),Ik=K(da,{Document:J(function(a,b,c){Dh({node:a},Gk,Hk,b,c,void 0,this)}),Placemark:J(tk)}),Gk=K(da,{Placemark:J(tk)}),Jk=K(da,{Data:J(function(a,b,c){a.setAttribute("name",b.name);a={node:a};b=b.value;"object"==typeof b?(null!==b&&b.displayName&&Dh(a,Jk,Ah,[b.displayName],c,["displayName"]),null!==b&&b.value&&Dh(a,Jk,Ah,[b.value],c,["value"])):Dh(a,Jk,Ah,[b],c,["value"])}),value:J(function(a,b){ki(a,b)}),displayName:J(function(a,b){a.appendChild(nh.createCDATASection(b))})}),
|
|
294
|
-
Kk={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},Lk=K(da,["href"],K(kj,["x","y","w","h"])),Mk=K(da,{href:J(ki)},K(kj,{x:J(li),y:J(li),w:J(li),h:J(li)})),Nk=K(da,["scale","heading","Icon","hotSpot"]),Pk=K(da,{Icon:J(function(a,b,c){a={node:a};var d=Lk[c[c.length-1].node.namespaceURI],e=Bh(b,d);Dh(a,Mk,Ah,e,c,d);d=Lk[kj[0]];e=Bh(b,d);Dh(a,Mk,
|
|
295
|
-
Ok,e,c,d)}),heading:J(li),hotSpot:J(function(a,b){a.setAttribute("x",b.x);a.setAttribute("y",b.y);a.setAttribute("xunits",b.ce);a.setAttribute("yunits",b.de)}),scale:J(Ek)}),Qk=K(da,["color","scale"]),Rk=K(da,{color:J(jk),scale:J(Ek)}),Sk=K(da,["color","width"]),Tk=K(da,{color:J(jk),width:J(li)}),rk=K(da,{LinearRing:J(xk)}),pk=K(da,{LineString:J(xk),Point:J(xk),Polygon:J(Ak),GeometryCollection:J(kk)}),wk=K(da,"name open visibility address phoneNumber description styleUrl Style".split(" ")),uk=K(da,
|
|
296
|
-
{ExtendedData:J(function(a,b,c){a={node:a};var d=b.names;b=b.values;for(var e=d.length,f=0;f<e;f++)Dh(a,Jk,Uk,[{name:d[f],value:b[f]}],c)}),MultiGeometry:J(kk),LineString:J(xk),LinearRing:J(xk),Point:J(xk),Polygon:J(Ak),Style:J(function(a,b,c){a={node:a};var d={},e=b.aa(),f=b.ca(),g=b.X();b=b.ma();g instanceof Ti&&(d.IconStyle=g);b&&(d.LabelStyle=b);f&&(d.LineStyle=f);e&&(d.PolyStyle=e);b=Vk[c[c.length-1].node.namespaceURI];d=Bh(d,b);Dh(a,Wk,Ah,d,c,b)}),address:J(ki),description:J(ki),name:J(ki),
|
|
297
|
-
open:J(ji),phoneNumber:J(ki),styleUrl:J(ki),visibility:J(ji)}),yk=K(da,{coordinates:J(function(a,b,c){c=c[c.length-1];var d=c.layout;c=c.stride;var e;"XY"==d||"XYM"==d?e=2:"XYZ"==d||"XYZM"==d?e=3:ra(!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]}ki(a,h)})}),Bk=K(da,{outerBoundaryIs:J(qk),innerBoundaryIs:J(qk)}),Xk=K(da,{color:J(jk)}),Vk=K(da,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Wk=K(da,{IconStyle:J(function(a,
|
|
298
|
-
b,c){a={node:a};var d={},e=b.ab(),f=b.md(),g={href:b.a.v};if(e){g.w=e[0];g.h=e[1];var h=b.tb(),l=b.Bb();l&&f&&l[0]&&l[1]!==e[1]&&(g.x=l[0],g.y=f[1]-(l[1]+e[1]));h&&h[0]&&h[1]!==e[1]&&(d.hotSpot={x:h[0],ce:"pixels",y:e[1]-h[1],de:"pixels"})}d.Icon=g;e=b.g;1!==e&&(d.scale=e);(b=b.v)&&(d.heading=b);b=Nk[c[c.length-1].node.namespaceURI];d=Bh(d,b);Dh(a,Pk,Ah,d,c,b)}),LabelStyle:J(function(a,b,c){a={node:a};var d={},e=b.aa();e&&(d.color=e.a);(b=b.a)&&1!==b&&(d.scale=b);b=Qk[c[c.length-1].node.namespaceURI];
|
|
299
|
-
d=Bh(d,b);Dh(a,Rk,Ah,d,c,b)}),LineStyle:J(function(a,b,c){a={node:a};var d=Sk[c[c.length-1].node.namespaceURI];b=Bh({color:b.c,width:b.b},d);Dh(a,Tk,Ah,b,c,d)}),PolyStyle:J(function(a,b,c){Dh({node:a},Xk,Yk,[b.a],c)})});function Ok(a,b,c){return nh.createElementNS(kj[0],"gx:"+c)}function Hk(a,b){return nh.createElementNS(b[b.length-1].node.namespaceURI,"Placemark")}function lk(a,b){if(a)return nh.createElementNS(b[b.length-1].node.namespaceURI,Kk[a.O()])}
|
|
300
|
-
var Yk=yh("color"),zk=yh("coordinates"),Uk=yh("Data"),vk=yh("ExtendedData"),Ck=yh("innerBoundaryIs"),mk=yh("Point"),nk=yh("LineString"),sk=yh("LinearRing"),ok=yh("Polygon"),Dk=yh("outerBoundaryIs");
|
|
301
|
-
Vi.prototype.be=function(a,b){b=Ih(this,b);var c=nh.createElementNS(da[4],"kml");c.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:gx",kj[0]);c.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");c.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var d={node:c},e={};1<a.length?e.Document=a:1==a.length&&(e.Placemark=a[0]);var f=
|
|
302
|
-
Fk[c.namespaceURI],e=Bh(e,f);Dh(d,Ik,Ah,e,[b],f,this);return c};(function(){var a={},b={T:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.T=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.sj=c()}})(function(){return function d(a,b,g){function e(h,l){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!l&&m)return m(h,!0);if(f)return f(h,!0);m=Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m;}m=b[h]={T:{}};a[h][0].call(m.T,function(b){var d=
|
|
303
|
-
a[h][1][b];return e(d?d:b)},m,m.T,d,a,b,g)}return b[h].T}for(var f="function"==typeof require&&require,m=0;m<g.length;m++)e(g[m]);return e}({1:[function(a,b,f){f.read=function(a,b,d,e,f){var g;g=8*f-e-1;var h=(1<<g)-1,l=h>>1,m=-7;f=d?f-1:0;var n=d?-1:1,F=a[b+f];f+=n;d=F&(1<<-m)-1;F>>=-m;for(m+=g;0<m;d=256*d+a[b+f],f+=n,m-=8);g=d&(1<<-m)-1;d>>=-m;for(m+=e;0<m;g=256*g+a[b+f],f+=n,m-=8);if(0===d)d=1-l;else{if(d===h)return g?NaN:Infinity*(F?-1:1);g+=Math.pow(2,e);d-=l}return(F?-1:1)*g*Math.pow(2,d-e)};
|
|
304
|
-
f.write=function(a,b,d,e,f,p){var g,h=8*p-f-1,l=(1<<h)-1,m=l>>1,n=23===f?Math.pow(2,-24)-Math.pow(2,-77):0;p=e?0:p-1;var O=e?1:-1,U=0>b||0===b&&0>1/b?1:0;b=Math.abs(b);isNaN(b)||Infinity===b?(b=isNaN(b)?1:0,e=l):(e=Math.floor(Math.log(b)/Math.LN2),1>b*(g=Math.pow(2,-e))&&(e--,g*=2),b=1<=e+m?b+n/g:b+n*Math.pow(2,1-m),2<=b*g&&(e++,g/=2),e+m>=l?(b=0,e=l):1<=e+m?(b=(b*g-1)*Math.pow(2,f),e+=m):(b=b*Math.pow(2,m-1)*Math.pow(2,f),e=0));for(;8<=f;a[d+p]=b&255,p+=O,b/=256,f-=8);e=e<<f|b;for(h+=f;0<h;a[d+p]=
|
|
305
|
-
e&255,p+=O,e/=256,h-=8);a[d+p-O]|=128*U}},{}],2:[function(a,b){function d(a){this.fb=ArrayBuffer.isView&&ArrayBuffer.isView(a)?a:new Uint8Array(a||0);this.type=this.H=0;this.length=this.fb.length}function e(a,b,d){var e=d.fb,f,g;g=e[d.H++];f=(g&112)>>4;if(128>g)return h(a,f,b);g=e[d.H++];f|=(g&127)<<3;if(128>g)return h(a,f,b);g=e[d.H++];f|=(g&127)<<10;if(128>g)return h(a,f,b);g=e[d.H++];f|=(g&127)<<17;if(128>g)return h(a,f,b);g=e[d.H++];f|=(g&127)<<24;if(128>g)return h(a,f,b);g=e[d.H++];if(128>g)return h(a,
|
|
306
|
-
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.T=d;var l=a("ieee754");d.b=0;d.f=1;d.a=2;d.c=5;d.prototype={Md:function(a,b,d){for(d=d||this.length;this.H<d;){var e=this.pa(),f=e>>3,g=this.H;this.type=e&7;a(f,b,this);this.H===g&&this.Ui(e)}return b},li:function(){var a=l.read(this.fb,this.H,!0,23,4);this.H+=4;return a},ki:function(){var a=l.read(this.fb,this.H,!0,52,8);this.H+=8;return a},pa:function(a){var b=
|
|
307
|
-
this.fb,d,f;f=b[this.H++];d=f&127;if(128>f)return d;f=b[this.H++];d|=(f&127)<<7;if(128>f)return d;f=b[this.H++];d|=(f&127)<<14;if(128>f)return d;f=b[this.H++];d|=(f&127)<<21;if(128>f)return d;f=b[this.H];return e(d|(f&15)<<28,a,this)},si:function(){return this.pa(!0)},Od:function(){var a=this.pa();return 1===a%2?(a+1)/-2:a/2},ji:function(){return!!this.pa()},Pd:function(){for(var a=this.pa()+this.H,b=this.fb,d="",e=this.H;e<a;){var f=b[e],g=null,h=239<f?4:223<f?3:191<f?2:1;if(e+h>a)break;var l,O,
|
|
308
|
-
U;if(1===h)128>f&&(g=f);else if(2===h)l=b[e+1],128===(l&192)&&(g=(f&31)<<6|l&63,127>=g&&(g=null));else if(3===h){if(l=b[e+1],O=b[e+2],128===(l&192)&&128===(O&192)&&(g=(f&15)<<12|(l&63)<<6|O&63,2047>=g||55296<=g&&57343>=g))g=null}else 4===h&&(l=b[e+1],O=b[e+2],U=b[e+3],128===(l&192)&&128===(O&192)&&128===(U&192)&&(g=(f&15)<<18|(l&63)<<12|(O&63)<<6|U&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|g&1023);d+=String.fromCharCode(g);
|
|
309
|
-
e+=h}this.H=a;return d},Ui:function(a){a&=7;if(a===d.b)for(;127<this.fb[this.H++];);else if(a===d.a)this.H=this.pa()+this.H;else if(a===d.c)this.H+=4;else if(a===d.f)this.H+=8;else throw Error("Unimplemented type: "+a);}}},{ieee754:1}]},{},[2])(2)})})();(function(){var a={},b={T:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.T=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.vj=c()}})(function(){return function d(a,b,g){function e(h,l){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!l&&m)return m(h,!0);if(f)return f(h,!0);m=Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m;}m=b[h]={T:{}};a[h][0].call(m.T,function(b){var d=
|
|
310
|
-
a[h][1][b];return e(d?d:b)},m,m.T,d,a,b,g)}return b[h].T}for(var f="function"==typeof require&&require,m=0;m<g.length;m++)e(g[m]);return e}({1:[function(a,b){function d(a,b){this.x=a;this.y=b}b.T=d;d.prototype={clone:function(){return new d(this.x,this.y)},add:function(a){return this.clone().rf(a)},rotate:function(a){return this.clone().Af(a)},round:function(){return this.clone().Bf()},angle:function(){return Math.atan2(this.y,this.x)},rf:function(a){this.x+=a.x;this.y+=a.y;return this},Af:function(a){var b=
|
|
311
|
-
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},Bf:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}};d.a=function(a){return a instanceof d?a:Array.isArray(a)?new d(a[0],a[1]):a}},{}],2:[function(a,b){b.T.nj=a("./lib/vectortile.js");b.T.oj=a("./lib/vectortilefeature.js");b.T.pj=a("./lib/vectortilelayer.js")},{"./lib/vectortile.js":3,"./lib/vectortilefeature.js":4,"./lib/vectortilelayer.js":5}],3:[function(a,b){function d(a,
|
|
312
|
-
b,d){3===a&&(a=new e(d,d.pa()+d.H),a.length&&(b[a.name]=a))}var e=a("./vectortilelayer");b.T=function(a,b){this.layers=a.Md(d,{},b)}},{"./vectortilelayer":5}],4:[function(a,b){function d(a,b,d,f,g){this.properties={};this.extent=d;this.type=0;this.qb=a;this.he=-1;this.ec=f;this.gc=g;a.Md(e,this,b)}function e(a,b,d){if(1==a)b.id=d.pa();else if(2==a)for(a=d.pa()+d.H;d.H<a;){var e=b.ec[d.pa()],f=b.gc[d.pa()];b.properties[e]=f}else 3==a?b.type=d.pa():4==a&&(b.he=d.H)}a("point-geometry");b.T=d;d.a=["Unknown",
|
|
313
|
-
"Point","LineString","Polygon"];d.prototype.bbox=function(){var a=this.qb;a.H=this.he;for(var b=a.pa()+a.H,d=1,e=0,f=0,g=0,t=Infinity,A=-Infinity,w=Infinity,F=-Infinity;a.H<b;)if(e||(e=a.pa(),d=e&7,e>>=3),e--,1===d||2===d)f+=a.Od(),g+=a.Od(),f<t&&(t=f),f>A&&(A=f),g<w&&(w=g),g>F&&(F=g);else if(7!==d)throw Error("unknown command "+d);return[t,w,A,F]}},{"point-geometry":1}],5:[function(a,b){function d(a,b){this.version=1;this.name=null;this.extent=4096;this.length=0;this.qb=a;this.ec=[];this.gc=[];this.dc=
|
|
314
|
-
[];a.Md(e,this,b);this.length=this.dc.length}function e(a,b,d){15===a?b.version=d.pa():1===a?b.name=d.Pd():5===a?b.extent=d.pa():2===a?b.dc.push(d.H):3===a?b.ec.push(d.Pd()):4===a&&b.gc.push(h(d))}function h(a){for(var b=null,d=a.pa()+a.H;a.H<d;)b=a.pa()>>3,b=1===b?a.Pd():2===b?a.li():3===b?a.ki():4===b?a.si():5===b?a.pa():6===b?a.Od():7===b?a.ji():null;return b}var l=a("./vectortilefeature.js");b.T=d;d.prototype.feature=function(a){if(0>a||a>=this.dc.length)throw Error("feature index out of bounds");
|
|
315
|
-
this.qb.H=this.dc[a];a=this.qb.pa()+this.qb.H;return new l(this.qb,a,this.extent,this.ec,this.gc)}},{"./vectortilefeature.js":4}]},{},[2])(2)})})();function Zk(a,b){b[b.length-1].ac[a.getAttribute("k")]=a.getAttribute("v")}var $k=[null],al=K($k,{nd:function(a,b){b[b.length-1].yb.push(a.getAttribute("ref"))},tag:Zk});
|
|
316
|
-
K($k,{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.mh[e]=f;var g=L({ac:{}},bl,a,b);ob(g.ac)||(f=new C(f),Jh(f,!1,c),c=new H(f),c.Yb(e),c.N(g.ac),d.features.push(c))},way:function(a,b){for(var c=b[0],d=a.getAttribute("id"),e=L({yb:[],ac:{}},al,a,b),f=b[b.length-1],g=[],h=0,l=e.yb.length;h<l;h++)ga(g,f.mh[e.yb[h]]);e.yb[0]==e.yb[e.yb.length-1]?(h=new D(null),h.K("XY",g,[g.length])):(h=new M(null),h.K("XY",
|
|
317
|
-
g));Jh(h,!1,c);c=new H(h);c.Yb(d);c.N(e.ac);f.features.push(c)}});var bl=K($k,{tag:Zk});function cl(a){return a.getAttributeNS("http://www.w3.org/1999/xlink","href")};var dl=[null,"http://www.opengis.net/ows/1.1"];K(dl,{ServiceIdentification:I(function(a,b){return L({},el,a,b)}),ServiceProvider:I(function(a,b){return L({},fl,a,b)}),OperationsMetadata:I(function(a,b){return L({},gl,a,b)})});
|
|
318
|
-
var hl=K(dl,{DeliveryPoint:I(S),City:I(S),AdministrativeArea:I(S),PostalCode:I(S),Country:I(S),ElectronicMailAddress:I(S)}),il=K(dl,{Value:wh(function(a){return S(a)})}),jl=K(dl,{AllowedValues:I(function(a,b){return L({},il,a,b)})}),ll=K(dl,{Phone:I(function(a,b){return L({},kl,a,b)}),Address:I(function(a,b){return L({},hl,a,b)})}),nl=K(dl,{HTTP:I(function(a,b){return L({},ml,a,b)})}),ml=K(dl,{Get:wh(function(a,b){var c=cl(a);if(c)return L({href:c},pl,a,b)}),Post:void 0}),ql=K(dl,{DCP:I(function(a,
|
|
319
|
-
b){return L({},nl,a,b)})}),gl=K(dl,{Operation:function(a,b){var c=a.getAttribute("name"),d=L({},ql,a,b);d&&(b[b.length-1][c]=d)}}),kl=K(dl,{Voice:I(S),Facsimile:I(S)}),pl=K(dl,{Constraint:wh(function(a,b){var c=a.getAttribute("name");if(c)return L({name:c},jl,a,b)})}),rl=K(dl,{IndividualName:I(S),PositionName:I(S),ContactInfo:I(function(a,b){return L({},ll,a,b)})}),el=K(dl,{Title:I(S),ServiceTypeVersion:I(S),ServiceType:I(S)}),fl=K(dl,{ProviderName:I(S),ProviderSite:I(cl),ServiceContact:I(function(a,
|
|
320
|
-
b){return L({},rl,a,b)})});function sl(a){a=a?a:{};Gh.call(this);this.a=void 0!==a.splitCollection?a.splitCollection:!1}v(sl,Mi);function tl(a){a=a.$();return a.length?a.join(" "):""}function ul(a){a=a.$();for(var b=[],c=0,d=a.length;c<d;++c)b.push(a[c].join(" "));return b.join(",")}function vl(a){var b=[];a=a.pd();for(var c=0,d=a.length;c<d;++c)b.push("("+ul(a[c])+")");return b.join(",")}
|
|
321
|
-
function Qi(a){var b=a.O(),c=(0,wl[b])(a),b=b.toUpperCase();if(a instanceof z){a=a.P;var d="";if("XYZ"===a||"XYZM"===a)d+="Z";if("XYM"===a||"XYZM"===a)d+="M";a=d;0<a.length&&(b+=" "+a)}return c.length?b+"("+c+")":b+" EMPTY"}
|
|
322
|
-
var wl={Point:tl,LineString:ul,Polygon:vl,MultiPoint:function(a){var b=[];a=a.Ad();for(var c=0,d=a.length;c<d;++c)b.push("("+tl(a[c])+")");return b.join(",")},MultiLineString:function(a){var b=[];a=a.sc();for(var c=0,d=a.length;c<d;++c)b.push("("+ul(a[c])+")");return b.join(",")},MultiPolygon:function(a){var b=[];a=a.rd();for(var c=0,d=a.length;c<d;++c)b.push("("+vl(a[c])+")");return b.join(",")},GeometryCollection:function(a){var b=[];a=a.ld();for(var c=0,d=a.length;c<d;++c)b.push(Qi(a[c]));return b.join(",")}};
|
|
323
|
-
function Oi(a,b){var c;c=new xl(new yl(a));zl(c);return(c=Al(c))?Jh(c,!1,b):null}function Pi(a,b){var c=a.L();return c?Qi(Jh(c,!0,b)):""}function yl(a){this.c=a;this.a=-1}
|
|
324
|
-
function Bl(a){var b=a.c.charAt(++a.a),c={position:a.a,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.a,e=!1,f=!1;do{if("."==d)e=!0;else if("e"==d||"E"==d)f=!0;d=a.c.charAt(++a.a)}while("0"<=d&&"9">=d||"."==d&&(void 0===e||!e)||!f&&("e"==d||"E"==d)||f&&("-"==d||"+"==d));a=parseFloat(a.c.substring(b,a.a--));c.value=a}else if("a"<=b&&"z">=b||"A"<=b&&"Z">=b){c.type=1;b=a.a;do d=a.c.charAt(++a.a);while("a"<=d&&"z">=
|
|
325
|
-
d||"A"<=d&&"Z">=d);a=a.c.substring(b,a.a--).toUpperCase();c.value=a}else{if(" "==b||"\t"==b||"\r"==b||"\n"==b)return Bl(a);if(""===b)c.type=6;else throw Error("Unexpected character: "+b);}return c}function xl(a){this.f=a;this.c="XY"}function zl(a){a.a=Bl(a.f)}function Cl(a,b){var c=a.a.type==b;c&&zl(a);return c}
|
|
326
|
-
function Al(a){var b=a.a;if(Cl(a,1)){var b=b.value,c="XY",d=a.a;1==a.a.type&&(d=d.value,"Z"===d?c="XYZ":"M"===d?c="XYM":"ZM"===d&&(c="XYZM"),"XY"!==c&&zl(a));a.c=c;if("GEOMETRYCOLLECTION"==b){a:{if(Cl(a,2)){b=[];do b.push(Al(a));while(Cl(a,5));if(Cl(a,3)){a=b;break a}}else if(Dl(a)){a=[];break a}throw Error(El(a));}return new R(a)}d=Fl[b];c=Gl[b];if(!d||!c)throw Error("Invalid geometry type: "+b);b=d.call(a);return new c(b,a.c)}throw Error(El(a));}k=xl.prototype;
|
|
327
|
-
k.Id=function(){if(Cl(this,2)){var a=Hl(this);if(Cl(this,3))return a}else if(Dl(this))return null;throw Error(El(this));};k.Hd=function(){if(Cl(this,2)){var a=Il(this);if(Cl(this,3))return a}else if(Dl(this))return[];throw Error(El(this));};k.Jd=function(){if(Cl(this,2)){var a=Jl(this);if(Cl(this,3))return a}else if(Dl(this))return[];throw Error(El(this));};
|
|
328
|
-
k.ai=function(){if(Cl(this,2)){var a;if(2==this.a.type)for(a=[this.Id()];Cl(this,5);)a.push(this.Id());else a=Il(this);if(Cl(this,3))return a}else if(Dl(this))return[];throw Error(El(this));};k.$h=function(){if(Cl(this,2)){var a=Jl(this);if(Cl(this,3))return a}else if(Dl(this))return[];throw Error(El(this));};k.bi=function(){if(Cl(this,2)){for(var a=[this.Jd()];Cl(this,5);)a.push(this.Jd());if(Cl(this,3))return a}else if(Dl(this))return[];throw Error(El(this));};
|
|
329
|
-
function Hl(a){for(var b=[],c=a.c.length,d=0;d<c;++d){var e=a.a;if(Cl(a,4))b.push(e.value);else break}if(b.length==c)return b;throw Error(El(a));}function Il(a){for(var b=[Hl(a)];Cl(a,5);)b.push(Hl(a));return b}function Jl(a){for(var b=[a.Hd()];Cl(a,5);)b.push(a.Hd());return b}function Dl(a){var b=1==a.a.type&&"EMPTY"==a.a.value;b&&zl(a);return b}function El(a){return"Unexpected `"+a.a.value+"` at position "+a.a.position+" in `"+a.f.c+"`"}
|
|
330
|
-
var Gl={POINT:C,LINESTRING:M,POLYGON:D,MULTIPOINT:P,MULTILINESTRING:N,MULTIPOLYGON:Q},Fl={POINT:xl.prototype.Id,LINESTRING:xl.prototype.Hd,POLYGON:xl.prototype.Jd,MULTIPOINT:xl.prototype.ai,MULTILINESTRING:xl.prototype.$h,MULTIPOLYGON:xl.prototype.bi};function Kl(a,b){return L({},Ll,a,b)}function Ml(a,b){return L({},Nl,a,b)}function Ol(a,b){var c=Kl(a,b);if(c){var d=[ii(a.getAttribute("width")),ii(a.getAttribute("height"))];c.size=d;return c}}function Pl(a,b){return L([],Ql,a,b)}var Rl=[null,"http://www.opengis.net/wms"];K(Rl,{Service:I(function(a,b){return L({},Sl,a,b)}),Capability:I(function(a,b){return L({},Tl,a,b)})});
|
|
331
|
-
var Tl=K(Rl,{Request:I(function(a,b){return L({},Ul,a,b)}),Exception:I(function(a,b){return L([],Vl,a,b)}),Layer:I(function(a,b){return L({},Wl,a,b)})}),Sl=K(Rl,{Name:I(S),Title:I(S),Abstract:I(S),KeywordList:I(Pl),OnlineResource:I(cl),ContactInformation:I(function(a,b){return L({},Xl,a,b)}),Fees:I(S),AccessConstraints:I(S),LayerLimit:I(hi),MaxWidth:I(hi),MaxHeight:I(hi)}),Xl=K(Rl,{ContactPersonPrimary:I(function(a,b){return L({},Yl,a,b)}),ContactPosition:I(S),ContactAddress:I(function(a,b){return L({},
|
|
332
|
-
Zl,a,b)}),ContactVoiceTelephone:I(S),ContactFacsimileTelephone:I(S),ContactElectronicMailAddress:I(S)}),Yl=K(Rl,{ContactPerson:I(S),ContactOrganization:I(S)}),Zl=K(Rl,{AddressType:I(S),Address:I(S),City:I(S),StateOrProvince:I(S),PostCode:I(S),Country:I(S)}),Vl=K(Rl,{Format:uh(S)}),Wl=K(Rl,{Name:I(S),Title:I(S),Abstract:I(S),KeywordList:I(Pl),CRS:wh(S),EX_GeographicBoundingBox:I(function(a,b){var c=L({},$l,a,b);if(c){var d=c.westBoundLongitude,e=c.southBoundLatitude,f=c.eastBoundLongitude,c=c.northBoundLatitude;
|
|
333
|
-
if(void 0!==d&&void 0!==e&&void 0!==f&&void 0!==c)return[d,e,f,c]}}),BoundingBox:wh(function(a){var b=[gi(a.getAttribute("minx")),gi(a.getAttribute("miny")),gi(a.getAttribute("maxx")),gi(a.getAttribute("maxy"))],c=[gi(a.getAttribute("resx")),gi(a.getAttribute("resy"))];return{crs:a.getAttribute("CRS"),extent:b,res:c}}),Dimension:wh(function(a){return{name:a.getAttribute("name"),units:a.getAttribute("units"),unitSymbol:a.getAttribute("unitSymbol"),"default":a.getAttribute("default"),multipleValues:di(a.getAttribute("multipleValues")),
|
|
334
|
-
nearestValue:di(a.getAttribute("nearestValue")),current:di(a.getAttribute("current")),values:S(a)}}),Attribution:I(function(a,b){return L({},am,a,b)}),AuthorityURL:wh(function(a,b){var c=Kl(a,b);if(c)return c.name=a.getAttribute("name"),c}),Identifier:wh(S),MetadataURL:wh(function(a,b){var c=Kl(a,b);if(c)return c.type=a.getAttribute("type"),c}),DataURL:wh(Kl),FeatureListURL:wh(Kl),Style:wh(function(a,b){return L({},bm,a,b)}),MinScaleDenominator:I(fi),MaxScaleDenominator:I(fi),Layer:wh(function(a,
|
|
335
|
-
b){var c=b[b.length-1],d=L({},Wl,a,b);if(d){var e=di(a.getAttribute("queryable"));void 0===e&&(e=c.queryable);d.queryable=void 0!==e?e:!1;e=ii(a.getAttribute("cascaded"));void 0===e&&(e=c.cascaded);d.cascaded=e;e=di(a.getAttribute("opaque"));void 0===e&&(e=c.opaque);d.opaque=void 0!==e?e:!1;e=di(a.getAttribute("noSubsets"));void 0===e&&(e=c.noSubsets);d.noSubsets=void 0!==e?e:!1;(e=gi(a.getAttribute("fixedWidth")))||(e=c.fixedWidth);d.fixedWidth=e;(e=gi(a.getAttribute("fixedHeight")))||(e=c.fixedHeight);
|
|
336
|
-
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}})}),am=K(Rl,{Title:I(S),OnlineResource:I(cl),LogoURL:I(Ol)}),$l=K(Rl,{westBoundLongitude:I(fi),eastBoundLongitude:I(fi),southBoundLatitude:I(fi),northBoundLatitude:I(fi)}),Ul=K(Rl,{GetCapabilities:I(Ml),GetMap:I(Ml),GetFeatureInfo:I(Ml)}),
|
|
337
|
-
Nl=K(Rl,{Format:wh(S),DCPType:wh(function(a,b){return L({},cm,a,b)})}),cm=K(Rl,{HTTP:I(function(a,b){return L({},dm,a,b)})}),dm=K(Rl,{Get:I(Kl),Post:I(Kl)}),bm=K(Rl,{Name:I(S),Title:I(S),Abstract:I(S),LegendURL:wh(Ol),StyleSheetURL:I(Kl),StyleURL:I(Kl)}),Ll=K(Rl,{Format:I(S),OnlineResource:I(cl)}),Ql=K(Rl,{Keyword:uh(S)});function em(a){var b=S(a).split(" ");if(b&&2==b.length&&(a=+b[0],b=+b[1],!isNaN(a)&&!isNaN(b)))return[a,b]}var fm=[null,"http://www.opengis.net/wmts/1.0"],gm=[null,"http://www.opengis.net/ows/1.1"];K(fm,{Contents:I(function(a,b){return L({},hm,a,b)})});
|
|
338
|
-
var hm=K(fm,{Layer:wh(function(a,b){return L({},im,a,b)}),TileMatrixSet:wh(function(a,b){return L({},jm,a,b)})}),im=K(fm,{Style:wh(function(a,b){var c=L({},km,a,b);if(c){var d="true"===a.getAttribute("isDefault");c.isDefault=d;return c}}),Format:wh(S),TileMatrixSetLink:wh(function(a,b){return L({},lm,a,b)}),Dimension:wh(function(a,b){return L({},mm,a,b)}),ResourceURL:wh(function(a){var b=a.getAttribute("format"),c=a.getAttribute("template");a=a.getAttribute("resourceType");var d={};b&&(d.format=b);
|
|
339
|
-
c&&(d.template=c);a&&(d.resourceType=a);return d})},K(gm,{Title:I(S),Abstract:I(S),WGS84BoundingBox:I(function(a,b){var c=L([],nm,a,b);if(2==c.length)return Ha(c)}),Identifier:I(S)})),km=K(fm,{LegendURL:wh(function(a){var b={};b.format=a.getAttribute("format");b.href=cl(a);return b})},K(gm,{Title:I(S),Identifier:I(S)})),lm=K(fm,{TileMatrixSet:I(S),TileMatrixSetLimits:I(function(a,b){return L([],om,a,b)})}),om=K(fm,{TileMatrixLimits:uh(function(a,b){return L({},pm,a,b)})}),pm=K(fm,{TileMatrix:I(S),
|
|
340
|
-
MinTileRow:I(hi),MaxTileRow:I(hi),MinTileCol:I(hi),MaxTileCol:I(hi)}),mm=K(fm,{Default:I(S),Value:wh(S)},K(gm,{Identifier:I(S)})),nm=K(gm,{LowerCorner:uh(em),UpperCorner:uh(em)}),jm=K(fm,{WellKnownScaleSet:I(S),TileMatrix:wh(function(a,b){return L({},qm,a,b)})},K(gm,{SupportedCRS:I(S),Identifier:I(S)})),qm=K(fm,{TopLeftCorner:I(em),ScaleDenominator:I(fi),TileWidth:I(hi),TileHeight:I(hi),MatrixWidth:I(hi),MatrixHeight:I(hi)},K(gm,{Identifier:I(S)}));function T(a,b,c){z.call(this);this.Sd(a,b?b:0,c)}v(T,z);k=T.prototype;k.clone=function(){var a=new T(null);le(a,this.P,this.l.slice());a.u();return a};k.Ja=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(b)for(d=this.zd()/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];else for(d=0;d<this.a;++d)c[d]=e[d];c.length=this.a;return b}return d};k.ob=function(a,b){var c=this.l,d=a-c[0],c=b-c[1];return d*d+c*c<=rm(this)};
|
|
341
|
-
k.sa=function(){return this.l.slice(0,this.a)};k.jc=function(a){var b=this.l,c=b[this.a]-b[0];return Sa(b[0]-c,b[1]-c,b[0]+c,b[1]+c,a)};k.zd=function(){return Math.sqrt(rm(this))};function rm(a){var b=a.l[a.a]-a.l[0];a=a.l[a.a+1]-a.l[1];return b*b+a*a}k.O=function(){return"Circle"};k.ta=function(a){var b=this.C();return jb(a,b)?(b=this.sa(),a[0]<=b[0]&&a[2]>=b[0]||a[1]<=b[1]&&a[3]>=b[1]?!0:Xa(a,this.Ea,this)):!1};
|
|
342
|
-
k.Ma=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];le(this,this.P,c);this.u()};k.Sd=function(a,b,c){if(a){me(this,c,a,0);this.l||(this.l=[]);c=this.l;a=ue(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 le(this,"XY",null);this.u()};k.$=function(){};k.Z=function(){};k.Vd=function(a){this.l[this.a]=this.l[0]+a;this.u()};function sm(a,b){yc.call(this);this.Pa=a;this.state=b;this.a=null;this.key=""}v(sm,yc);sm.prototype.u=function(){this.c("change")};sm.prototype.nb=function(){return this.key+"/"+this.Pa};sm.prototype.ia=function(){return this.state};function tm(a,b,c,d,e){sm.call(this,a,b);this.b=c;this.J=new Image;null!==d&&(this.J.crossOrigin=d);this.f=null;this.g=e}v(tm,sm);k=tm.prototype;k.qa=function(){1==this.state&&um(this);this.a&&vc(this.a);this.state=5;this.u();sm.prototype.qa.call(this)};k.X=function(){return this.J};k.nb=function(){return this.b};k.sh=function(){this.state=3;um(this);this.u()};k.th=function(){this.state=this.J.naturalWidth&&this.J.naturalHeight?2:4;um(this);this.u()};
|
|
343
|
-
k.load=function(){if(0==this.state||3==this.state)this.state=1,this.u(),this.f=[x(this.J,"error",this.sh,this,!0),x(this.J,"load",this.th,this,!0)],this.g(this,this.b)};function um(a){a.f.forEach(oc);a.f=null};function vm(a,b,c,d){this.bb=a;this.Ia=b;this.overlaps=d;this.b=0;this.resolution=c;this.Ca=this.G=null;this.c=[];this.coordinates=[];this.oa=lg();this.a=[];this.D=null;this.Da=lg();this.va=lg()}v(vm,xg);
|
|
344
|
-
function wm(a,b,c,d,e,f,g){var h=a.coordinates.length,l=a.jd();g&&(c+=e);g=[b[c],b[c+1]];var m=[NaN,NaN],n=!0,p,q,t;for(p=c+e;p<d;p+=e)m[0]=b[p],m[1]=b[p+1],t=Ra(l,m),t!==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===t?(a.coordinates[h++]=m[0],a.coordinates[h++]=m[1],n=!1):n=!0,g[0]=m[0],g[1]=m[1],q=t;if(f&&n||p===c+e)a.coordinates[h++]=g[0],a.coordinates[h++]=g[1];return h}
|
|
345
|
-
function xm(a,b){a.G=[0,b,0];a.c.push(a.G);a.Ca=[0,b,0];a.a.push(a.Ca)}vm.prototype.ra=function(a,b){if(this.ha){var c=ng(this.oa,this.ha.slice());a.translate(c[0],c[1]);a.rotate(b)}a.fill();this.ha&&a.setTransform.apply(a,this.va)};
|
|
346
|
-
function ym(a,b,c,d,e,f,g,h,l){var m;a.D&&ja(d,a.oa)?m=a.D:(a.D||(a.D=[]),m=je(a.coordinates,0,a.coordinates.length,2,d,a.D),mg(a.oa,d));d=!ob(f);for(var n=0,p=g.length,q=0,t,A=a.Da,w=a.va,F,O,U,ha,wa=0,xa=0,ta=a.c!=g||a.overlaps?0:200;n<p;){var u=g[n],ia,ua,V,fa;switch(u[0]){case 0:q=u[1];d&&f[oa(q).toString()]||!q.L()?n=u[2]:void 0===l||jb(l,q.L().C())?++n:n=u[2]+1;break;case 1:wa>ta&&(a.ra(b,e),wa=0);xa>ta&&(b.stroke(),xa=0);wa||xa||(b.beginPath(),F=O=NaN);++n;break;case 2:q=u[1];t=m[q];u=m[q+
|
|
347
|
-
1];U=m[q+2]-t;q=m[q+3]-u;q=Math.sqrt(U*U+q*q);b.moveTo(t+q,u);b.arc(t,u,q,0,2*Math.PI,!0);++n;break;case 3:b.closePath();++n;break;case 4:q=u[1];t=u[2];ia=u[3];ua=u[4]*c;V=u[5]*c;var sa=u[6],Ea=u[7],Za=u[8],tb=u[9];fa=u[10];U=u[11];ha=u[12];var Sb=u[13],Cb=u[14];for(fa&&(U+=e);q<t;q+=2){u=m[q]-ua;fa=m[q+1]-V;Sb&&(u=Math.round(u),fa=Math.round(fa));if(1!=ha||U){var Ia=u+ua,Db=fa+V;og(A,Ia,Db,ha,ha,U,-Ia,-Db);b.setTransform.apply(b,A)}Ia=b.globalAlpha;1!=Ea&&(b.globalAlpha=Ia*Ea);var Db=Cb+Za>ia.width?
|
|
348
|
-
ia.width-Za:Cb,Ec=sa+tb>ia.height?ia.height-tb:sa;b.drawImage(ia,Za,tb,Db,Ec,u,fa,Db*c,Ec*c);1!=Ea&&(b.globalAlpha=Ia);(1!=ha||U)&&b.setTransform.apply(b,w)}++n;break;case 5:q=u[1];t=u[2];V=u[3];sa=u[4]*c;Ea=u[5]*c;U=u[6];ha=u[7]*c;ia=u[8];ua=u[9];for((fa=u[10])&&(U+=e);q<t;q+=2){u=m[q]+sa;fa=m[q+1]+Ea;if(1!=ha||U)og(A,u,fa,ha,ha,U,-u,-fa),b.setTransform.apply(b,A);Za=V.split("\n");tb=Za.length;1<tb?(Sb=Math.round(1.5*b.measureText("M").width),fa-=(tb-1)/2*Sb):Sb=0;for(Cb=0;Cb<tb;Cb++)Ia=Za[Cb],ua&&
|
|
349
|
-
b.strokeText(Ia,u,fa),ia&&b.fillText(Ia,u,fa),fa+=Sb;(1!=ha||U)&&b.setTransform.apply(b,w)}++n;break;case 6:if(h&&(q=u[1],q=h(q)))return q;++n;break;case 7:ta?wa++:a.ra(b,e);++n;break;case 8:q=u[1];t=u[2];u=m[q];fa=m[q+1];U=u+.5|0;ha=fa+.5|0;if(U!==F||ha!==O)b.moveTo(u,fa),F=U,O=ha;for(q+=2;q<t;q+=2)if(u=m[q],fa=m[q+1],U=u+.5|0,ha=fa+.5|0,q==t-2||U!==F||ha!==O)b.lineTo(u,fa),F=U,O=ha;++n;break;case 9:a.ha=u[2];wa&&(a.ra(b,e),wa=0,xa&&(b.stroke(),xa=0));b.fillStyle=u[1];++n;break;case 10:var q=void 0!==
|
|
350
|
-
u[8]?u[8]:!0,Eb=u[9];t=u[2];xa&&(b.stroke(),xa=0);b.strokeStyle=u[1];b.lineWidth=q?t*c:t;b.lineCap=u[3];b.lineJoin=u[4];b.miterLimit=u[5];nd&&(t=u[6],U=u[7],q&&c!==Eb&&(t=t.map(function(a){return a*c/Eb}),U*=c/Eb,u[6]=t,u[7]=U,u[9]=c),b.lineDashOffset=U,b.setLineDash(t));++n;break;case 11:b.font=u[1];b.textAlign=u[2];b.textBaseline=u[3];++n;break;case 12:ta?xa++:b.stroke();++n;break;default:++n}}wa&&a.ra(b,e);xa&&b.stroke()}vm.prototype.F=function(a,b,c,d,e){ym(this,a,b,c,d,e,this.c,void 0,void 0)};
|
|
351
|
-
function zm(a){var b=a.a;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.a;for(f=c;g<f;){var h=e[g];e[g]=e[f];e[f]=h;++g;--f}g=-1}}function Am(a,b){a.G[2]=a.c.length;a.G=null;a.Ca[2]=a.a.length;a.Ca=null;var c=[6,b];a.c.push(c);a.a.push(c)}vm.prototype.Cc=na;vm.prototype.jd=function(){return this.Ia};function Bm(a,b,c,d){vm.call(this,a,b,c,d);this.J=this.U=null;this.A=this.W=this.V=this.B=this.s=this.o=this.v=this.j=this.i=this.g=this.f=void 0}v(Bm,vm);Bm.prototype.pc=function(a,b){if(this.J){xm(this,b);var c=a.l,d=this.coordinates.length,c=wm(this,c,0,c.length,a.a,!1,!1);this.c.push([4,d,c,this.J,this.f,this.g,this.i,this.j,this.v,this.o,this.s,this.B,this.V,this.W,this.A]);this.a.push([4,d,c,this.U,this.f,this.g,this.i,this.j,this.v,this.o,this.s,this.B,this.V,this.W,this.A]);Am(this,b)}};
|
|
352
|
-
Bm.prototype.nc=function(a,b){if(this.J){xm(this,b);var c=a.l,d=this.coordinates.length,c=wm(this,c,0,c.length,a.a,!1,!1);this.c.push([4,d,c,this.J,this.f,this.g,this.i,this.j,this.v,this.o,this.s,this.B,this.V,this.W,this.A]);this.a.push([4,d,c,this.U,this.f,this.g,this.i,this.j,this.v,this.o,this.s,this.B,this.V,this.W,this.A]);Am(this,b)}};Bm.prototype.Cc=function(){zm(this);this.g=this.f=void 0;this.J=this.U=null;this.A=this.W=this.B=this.s=this.o=this.v=this.j=this.V=this.i=void 0};
|
|
353
|
-
Bm.prototype.Zb=function(a){var b=a.tb(),c=a.ab(),d=a.Re(1),e=a.X(1),f=a.Bb();this.f=b[0];this.g=b[1];this.U=d;this.J=e;this.i=c[1];this.j=a.j;this.v=f[0];this.o=f[1];this.s=a.B;this.B=a.v;this.V=a.g;this.W=a.o;this.A=c[0]};function Cm(a,b,c,d){vm.call(this,a,b,c,d);this.g=null;this.f={Rb:void 0,Lb:void 0,Mb:null,Nb:void 0,Ob:void 0,Pb:void 0,Qb:void 0,vd:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}v(Cm,vm);function Dm(a,b,c,d,e){var f=a.coordinates.length;b=wm(a,b,c,d,e,!1,!1);f=[8,f,b];a.c.push(f);a.a.push(f);return d}k=Cm.prototype;k.jd=function(){this.g||(this.g=Ma(this.Ia),0<this.b&&La(this.g,this.resolution*(this.b+1)/2,this.g));return this.g};
|
|
354
|
-
function Em(a){var b=a.f,c=b.strokeStyle,d=b.lineCap,e=b.lineDash,f=b.lineDashOffset,g=b.lineJoin,h=b.lineWidth,l=b.miterLimit;b.Rb==c&&b.Lb==d&&ja(b.Mb,e)&&b.Nb==f&&b.Ob==g&&b.Pb==h&&b.Qb==l||(b.vd!=a.coordinates.length&&(a.c.push([12]),b.vd=a.coordinates.length),a.c.push([10,c,h,d,g,l,e,f,!0,1],[1]),b.Rb=c,b.Lb=d,b.Mb=e,b.Nb=f,b.Ob=g,b.Pb=h,b.Qb=l)}
|
|
355
|
-
k.lc=function(a,b){var c=this.f,d=c.lineWidth;void 0!==c.strokeStyle&&void 0!==d&&(Em(this),xm(this,b),this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1],[1]),c=a.l,Dm(this,c,0,c.length,a.a),this.a.push([12]),Am(this,b))};
|
|
356
|
-
k.mc=function(a,b){var c=this.f,d=c.lineWidth;if(void 0!==c.strokeStyle&&void 0!==d){Em(this);xm(this,b);this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1],[1]);var c=a.Ra(),d=a.l,e=a.a,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=Dm(this,d,f,c[g],e);this.a.push([12]);Am(this,b)}};k.Cc=function(){this.f.vd!=this.coordinates.length&&this.c.push([12]);zm(this);this.f=null};
|
|
357
|
-
k.Va=function(a,b){var c=b.c;this.f.strokeStyle=Pc(c?c:vg);c=b.g;this.f.lineCap=void 0!==c?c:"round";c=b.f;this.f.lineDash=c?c:ug;c=b.v;this.f.lineDashOffset=c?c:0;c=b.i;this.f.lineJoin=void 0!==c?c:"round";c=b.b;this.f.lineWidth=void 0!==c?c:1;c=b.j;this.f.miterLimit=void 0!==c?c:10;this.f.lineWidth>this.b&&(this.b=this.f.lineWidth,this.g=null)};function Fm(a,b,c,d){vm.call(this,a,b,c,d);this.g=null;this.f={se:void 0,Rb:void 0,Lb:void 0,Mb:null,Nb:void 0,Ob:void 0,Pb:void 0,Qb:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}v(Fm,vm);
|
|
358
|
-
function Gm(a,b,c,d,e){var f=a.f,g=void 0!==f.fillStyle,f=void 0!=f.strokeStyle,h=d.length,l=[1];a.c.push(l);a.a.push(l);for(l=0;l<h;++l){var m=d[l],n=a.coordinates.length;c=wm(a,b,c,m,e,!0,!f);c=[8,n,c];a.c.push(c);a.a.push(c);f&&(c=[3],a.c.push(c),a.a.push(c));c=m}b=[7];a.a.push(b);g&&a.c.push(b);f&&(g=[12],a.c.push(g),a.a.push(g));return c}k=Fm.prototype;
|
|
359
|
-
k.Sb=function(a,b){var c=this.f,d=c.strokeStyle;if(void 0!==c.fillStyle||void 0!==d){Hm(this,a);xm(this,b);this.a.push([9,Mc(tg)]);void 0!==c.strokeStyle&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1]);var e=a.l,d=this.coordinates.length;wm(this,e,0,e.length,a.a,!1,!1);e=[1];d=[2,d];this.c.push(e,d);this.a.push(e,d);d=[7];this.a.push(d);void 0!==c.fillStyle&&this.c.push(d);void 0!==c.strokeStyle&&(c=[12],this.c.push(c),this.a.push(c));
|
|
360
|
-
Am(this,b)}};k.qc=function(a,b){var c=this.f;Hm(this,a);xm(this,b);this.a.push([9,Mc(tg)]);void 0!==c.strokeStyle&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1]);var c=a.Ra(),d=Me(a);Gm(this,d,0,c,a.a);Am(this,b)};
|
|
361
|
-
k.oc=function(a,b){var c=this.f,d=c.strokeStyle;if(void 0!==c.fillStyle||void 0!==d){Hm(this,a);xm(this,b);this.a.push([9,Mc(tg)]);void 0!==c.strokeStyle&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash,c.lineDashOffset,!0,1]);var c=a.b,d=Hg(a),e=a.a,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=Gm(this,d,f,c[g],e);Am(this,b)}};k.Cc=function(){zm(this);this.f=null;var a=this.bb;if(a){var b=this.coordinates,c,d;c=0;for(d=b.length;c<d;++c)b[c]=a*Math.round(b[c]/a)}};
|
|
362
|
-
k.jd=function(){this.g||(this.g=Ma(this.Ia),0<this.b&&La(this.g,this.resolution*(this.b+1)/2,this.g));return this.g};
|
|
363
|
-
k.Va=function(a,b){var c=this.f;if(a){var d=a.a;c.fillStyle=Pc(d?d:tg)}else c.fillStyle=void 0;b?(d=b.c,c.strokeStyle=Pc(d?d:vg),d=b.g,c.lineCap=void 0!==d?d:"round",d=b.f,c.lineDash=d?d.slice():ug,d=b.v,c.lineDashOffset=d?d:0,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.lineDashOffset=void 0,c.lineJoin=void 0,c.lineWidth=void 0,
|
|
364
|
-
c.miterLimit=void 0)};function Hm(a,b){var c=a.f,d=c.fillStyle,e=c.strokeStyle,f=c.lineCap,g=c.lineDash,h=c.lineDashOffset,l=c.lineJoin,m=c.lineWidth,n=c.miterLimit;if(void 0!==d&&("string"!==typeof d||c.se!=d)){var p=[9,d];"string"!==typeof d&&(d=b.C(),p.push([d[0],d[3]]));a.c.push(p);c.se=c.fillStyle}void 0===e||c.Rb==e&&c.Lb==f&&ja(c.Mb,g)&&c.Nb==h&&c.Ob==l&&c.Pb==m&&c.Qb==n||(a.c.push([10,e,m,f,l,n,g,h,!0,1]),c.Rb=e,c.Lb=f,c.Mb=g,c.Nb=h,c.Ob=l,c.Pb=m,c.Qb=n)};function Im(a,b,c,d){vm.call(this,a,b,c,d);this.A=this.W=this.V=null;this.ka="";this.v=this.j=0;this.o=void 0;this.B=this.s=0;this.i=this.g=this.f=null}v(Im,vm);
|
|
365
|
-
Im.prototype.$a=function(a,b,c,d,e,f){if(""!==this.ka&&this.i&&(this.f||this.g)){if(this.f){e=this.f;var g=this.V;if(!g||g.fillStyle!=e.fillStyle){var h=[9,e.fillStyle];this.c.push(h);this.a.push(h);g?g.fillStyle=e.fillStyle:this.V={fillStyle:e.fillStyle}}}this.g&&(e=this.g,g=this.W,g&&g.lineCap==e.lineCap&&g.lineDash==e.lineDash&&g.lineDashOffset==e.lineDashOffset&&g.lineJoin==e.lineJoin&&g.lineWidth==e.lineWidth&&g.miterLimit==e.miterLimit&&g.strokeStyle==e.strokeStyle||(h=[10,e.strokeStyle,e.lineWidth,
|
|
366
|
-
e.lineCap,e.lineJoin,e.miterLimit,e.lineDash,e.lineDashOffset,!1,1],this.c.push(h),this.a.push(h),g?(g.lineCap=e.lineCap,g.lineDash=e.lineDash,g.lineDashOffset=e.lineDashOffset,g.lineJoin=e.lineJoin,g.lineWidth=e.lineWidth,g.miterLimit=e.miterLimit,g.strokeStyle=e.strokeStyle):this.W={lineCap:e.lineCap,lineDash:e.lineDash,lineDashOffset:e.lineDashOffset,lineJoin:e.lineJoin,lineWidth:e.lineWidth,miterLimit:e.miterLimit,strokeStyle:e.strokeStyle}));e=this.i;g=this.A;g&&g.font==e.font&&g.textAlign==
|
|
367
|
-
e.textAlign&&g.textBaseline==e.textBaseline||(h=[11,e.font,e.textAlign,e.textBaseline],this.c.push(h),this.a.push(h),g?(g.font=e.font,g.textAlign=e.textAlign,g.textBaseline=e.textBaseline):this.A={font:e.font,textAlign:e.textAlign,textBaseline:e.textBaseline});xm(this,f);e=this.coordinates.length;a=wm(this,a,b,c,d,!1,!1);a=[5,e,a,this.ka,this.j,this.v,this.s,this.B,!!this.f,!!this.g,this.o];this.c.push(a);this.a.push(a);Am(this,f)}};
|
|
368
|
-
Im.prototype.Oa=function(a){if(a){var b=a.aa();b?(b=b.a,b=Pc(b?b:tg),this.f?this.f.fillStyle=b:this.f={fillStyle:b}):this.f=null;var c=a.ca();if(c){var b=c.c,d=c.g,e=c.f,f=c.v,g=c.i,h=c.b,c=c.j,d=void 0!==d?d:"round",e=e?e.slice():ug,f=void 0!==f?f:0,g=void 0!==g?g:"round",h=void 0!==h?h:1,c=void 0!==c?c:10,b=Pc(b?b:vg);if(this.g){var l=this.g;l.lineCap=d;l.lineDash=e;l.lineDashOffset=f;l.lineJoin=g;l.lineWidth=h;l.miterLimit=c;l.strokeStyle=b}else this.g={lineCap:d,lineDash:e,lineDashOffset:f,lineJoin:g,
|
|
369
|
-
lineWidth:h,miterLimit:c,strokeStyle:b}}else this.g=null;var m=a.c,b=a.f,d=a.b,e=a.v,h=a.g,c=a.a,f=a.ma(),g=a.i,l=a.j;a=void 0!==m?m:"10px sans-serif";g=void 0!==g?g:"center";l=void 0!==l?l:"middle";this.i?(m=this.i,m.font=a,m.textAlign=g,m.textBaseline=l):this.i={font:a,textAlign:g,textBaseline:l};this.ka=void 0!==f?f:"";this.j=void 0!==b?b:0;this.v=void 0!==d?d:0;this.o=void 0!==e?e:!1;this.s=void 0!==h?h:0;this.B=void 0!==c?c:1}else this.ka=""};function Jm(a,b,c,d,e){this.v=a;this.c=b;this.i=d;this.j=c;this.f=e;this.a={};this.b=Rc(1,1);this.g=lg()}v(Jm,Mg);var Km={0:[[!0]]};function Lm(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}
|
|
370
|
-
function Mm(a){if(void 0!==Km[a])return Km[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;)Lm(c,a+b,a+d),Lm(c,a+d,a+b),Lm(c,a-d,a+b),Lm(c,a-b,a+d),Lm(c,a-b,a-d),Lm(c,a-d,a-b),Lm(c,a+d,a-b),Lm(c,a+b,a-d),d++,e+=1+2*d,0<2*(e-b)+1&&(--b,e+=1-2*b);return Km[a]=c}function Nm(a){for(var b in a.a){var c=a.a[b],d;for(d in c)c[d].Cc()}}
|
|
371
|
-
Jm.prototype.Ga=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]),l=this.b;l.canvas.width!==g||l.canvas.height!==g?(l.canvas.width=g,l.canvas.height=g):l.clearRect(0,0,g,g);var m;void 0!==this.f&&(m=Ja(),Ka(m,a),La(m,b*(this.f+d),m));var n=Mm(d);return Om(this,l,h,c,e,function(a){for(var b=l.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;l.clearRect(0,0,g,g);return}},m)};
|
|
372
|
-
function Pm(a,b,c){var d=void 0!==b?b.toString():"0";b=a.a[d];void 0===b&&(b={},a.a[d]=b);d=b[c];void 0===d&&(d=new Qm[c](a.v,a.c,a.j,a.i),b[c]=d);return d}
|
|
373
|
-
Jm.prototype.F=function(a,b,c,d,e,f){var g=Object.keys(this.a).map(Number);g.sort(ba);var h=this.c,l=h[0],m=h[1],n=h[2],h=h[3],l=[l,m,l,h,n,h,n,m];je(l,0,8,2,c,l);a.save();a.beginPath();a.moveTo(l[0],l[1]);a.lineTo(l[2],l[3]);a.lineTo(l[4],l[5]);a.lineTo(l[6],l[7]);a.clip();f=f?f:Lg;for(var p,q,l=0,m=g.length;l<m;++l)for(p=this.a[g[l].toString()],n=0,h=f.length;n<h;++n)q=p[f[n]],void 0!==q&&q.F(a,b,c,d,e);a.restore()};
|
|
374
|
-
function Om(a,b,c,d,e,f,g){var h=Object.keys(a.a).map(Number);h.sort(function(a,b){return b-a});var l,m,n,p,q;l=0;for(m=h.length;l<m;++l)for(p=a.a[h[l].toString()],n=Lg.length-1;0<=n;--n)if(q=p[Lg[n]],void 0!==q&&(q=ym(q,b,1,c,d,e,q.a,f,g)))return q}var Qm={Circle:Fm,Image:Bm,LineString:Cm,Polygon:Fm,Text:Im};function Rm(a){Ac.call(this);this.a=a}v(Rm,Ac);Rm.prototype.Ga=na;function Sm(a,b,c){return function(d,e){return Tm(a,b,d,e,function(a){c[d]||(c[d]={});c[d][a.Pa.toString()]=a})}}function Um(a,b){b.Oe()&&a.postRenderFunctions.push(function(a,b,e){b=oa(a).toString();a.sb(e.viewState.projection,e.usedTiles[b])}.bind(null,b))}function Vm(a,b){if(b){var c,d,e;d=0;for(e=b.length;d<e;++d)c=b[d],a[oa(c).toString()]=c}}
|
|
375
|
-
function Wm(a,b){var c=b.ha;void 0!==c&&("string"===typeof c?a.logos[c]="":c&&(ra("string"==typeof c.href,44),ra("string"==typeof c.src,45),a.logos[c.src]=c.href))};function Xm(a){Rm.call(this,a);this.G=lg()}v(Xm,Rm);function Ym(a,b,c){var d=b.pixelRatio,e=b.size[0]*d,f=b.size[1]*d,g=b.viewState.rotation,h=bb(c),l=ab(c),m=$a(c);c=Ya(c);ng(b.coordinateToPixelTransform,h);ng(b.coordinateToPixelTransform,l);ng(b.coordinateToPixelTransform,m);ng(b.coordinateToPixelTransform,c);a.save();wg(a,-g,e/2,f/2);a.beginPath();a.moveTo(h[0]*d,h[1]*d);a.lineTo(l[0]*d,l[1]*d);a.lineTo(m[0]*d,m[1]*d);a.lineTo(c[0]*d,c[1]*d);a.clip();wg(a,g,e/2,f/2)}
|
|
376
|
-
function Zm(a,b,c,d,e){var f=a.a;if(zc(f,b)){var g=d.size[0]*d.pixelRatio,h=d.size[1]*d.pixelRatio,l=d.viewState.rotation;wg(c,-l,g/2,h/2);a=e?e:$m(a,d,0);f.c(new sg(b,new yg(c,d.pixelRatio,d.extent,a,d.viewState.rotation),d,c,null));wg(c,l,g/2,h/2)}}Xm.prototype.v=function(a,b,c,d){if(this.Ga(a,b,0,ge,this))return c.call(d,this.a,null)};function $m(a,b,c){var d=b.viewState,e=b.pixelRatio,f=e/d.resolution;return og(a.G,e*b.size[0]/2,e*b.size[1]/2,f,-f,-d.rotation,-d.center[0]+c,-d.center[1])};function an(a,b){return oa(a)-oa(b)}function bn(a,b){var c=.5*a/b;return c*c}function cn(a,b,c,d,e,f){var g=!1,h,l;if(h=c.X())l=h.Dc(),2==l||3==l?h.lf(e,f):(0==l&&h.load(),h.He(e,f),g=!0);if(e=(0,c.wa)(b))d=e.tc(d),(0,dn[d.O()])(a,d,c,b);return g}
|
|
377
|
-
var dn={Point:function(a,b,c,d){var e=c.X();if(e){if(2!=e.Dc())return;var f=Pm(a,c.na(),"Image");f.Zb(e);f.pc(b,d)}if(e=c.ma())a=Pm(a,c.na(),"Text"),a.Oa(e),a.$a(b.l,0,2,2,b,d)},LineString:function(a,b,c,d){var e=c.ca();if(e){var f=Pm(a,c.na(),"LineString");f.Va(null,e);f.lc(b,d)}if(e=c.ma())a=Pm(a,c.na(),"Text"),a.Oa(e),a.$a(Fg(b),0,2,2,b,d)},Polygon:function(a,b,c,d){var e=c.aa(),f=c.ca();if(e||f){var g=Pm(a,c.na(),"Polygon");g.Va(e,f);g.qc(b,d)}if(e=c.ma())a=Pm(a,c.na(),"Text"),a.Oa(e),a.$a(Ne(b),
|
|
378
|
-
0,2,2,b,d)},MultiPoint:function(a,b,c,d){var e=c.X();if(e){if(2!=e.Dc())return;var f=Pm(a,c.na(),"Image");f.Zb(e);f.nc(b,d)}if(e=c.ma())a=Pm(a,c.na(),"Text"),a.Oa(e),c=b.l,a.$a(c,0,c.length,b.a,b,d)},MultiLineString:function(a,b,c,d){var e=c.ca();if(e){var f=Pm(a,c.na(),"LineString");f.Va(null,e);f.mc(b,d)}if(e=c.ma())a=Pm(a,c.na(),"Text"),a.Oa(e),c=Gg(b),a.$a(c,0,c.length,2,b,d)},MultiPolygon:function(a,b,c,d){var e=c.aa(),f=c.ca();if(f||e){var g=Pm(a,c.na(),"Polygon");g.Va(e,f);g.oc(b,d)}if(e=c.ma())a=
|
|
379
|
-
Pm(a,c.na(),"Text"),a.Oa(e),c=Ig(b),a.$a(c,0,c.length,2,b,d)},GeometryCollection:function(a,b,c,d){b=b.a;var e,f;e=0;for(f=b.length;e<f;++e)(0,dn[b[e].O()])(a,b[e],c,d)},Circle:function(a,b,c,d){var e=c.aa(),f=c.ca();if(e||f){var g=Pm(a,c.na(),"Circle");g.Va(e,f);g.Sb(b,d)}if(e=c.ma())a=Pm(a,c.na(),"Text"),a.Oa(e),a.$a(b.sa(),0,2,2,b,d)}};function en(a){Xm.call(this,a);this.b=!1;this.D=-1;this.s=NaN;this.j=Ja();this.g=this.o=null;this.i=Rc()}v(en,Xm);
|
|
380
|
-
en.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,l=h.C(),m=this.a.Aa(),n=$m(this,a,0);Zm(this,"precompose",c,a,n);var p=b.extent,q=void 0!==p;q&&Ym(c,a,p);if((p=this.g)&&!ob(p.a)){var t=0,A=0,w;if(zc(this.a,"render")){w=c.canvas.width;var F=c.canvas.height;if(g){var O=Math.round(Math.sqrt(w*w+F*F)),t=(O-w)/2,A=(O-F)/2;w=F=O}this.i.canvas.width=w;this.i.canvas.height=F;w=this.i}else w=c;F=w.globalAlpha;w.globalAlpha=
|
|
381
|
-
b.opacity;w!=c&&w.translate(t,A);b=a.size[0]*e;O=a.size[1]*e;wg(w,-g,b/2,O/2);p.F(w,e,n,g,f);if(m.A&&h.a&&!Qa(l,d)){for(var h=d[0],m=eb(l),U=0;h<l[0];)--U,n=m*U,n=$m(this,a,n),p.F(w,e,n,g,f),h+=m;U=0;for(h=d[2];h>l[2];)++U,n=m*U,n=$m(this,a,n),p.F(w,e,n,g,f),h-=m;n=$m(this,a,0)}wg(w,g,b/2,O/2);w!=c&&(Zm(this,"render",w,a,n),c.drawImage(w.canvas,-t,-A),w.translate(-t,-A));w.globalAlpha=F}q&&c.restore();Zm(this,"postcompose",c,a,n)};
|
|
382
|
-
en.prototype.Ga=function(a,b,c,d,e){if(this.g){var f=this.a,g={};return this.g.Ga(a,b.viewState.resolution,b.viewState.rotation,c,{},function(a){var b=oa(a).toString();if(!(b in g))return g[b]=!0,d.call(e,a,f)})}};en.prototype.F=function(){var a=this.a;a.wb()&&"ready"==a.sd()&&this.u()};
|
|
383
|
-
en.prototype.A=function(a){function b(a){var b,d=a.i;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=cn(q,a,b[e],bn(m,n),this.F,this)||d;else d=cn(q,a,b,bn(m,n),this.F,this)||d;a=d}else a=!1;this.b=this.b||a}}var c=this.a,d=c.Aa();Vm(a.attributions,d.B);Wm(a,d);var e=a.viewHints[0],f=a.viewHints[1],g=c.F,h=c.G;if(!this.b&&!g&&e||!h&&f)return!0;var l=a.extent,h=a.viewState,e=h.projection,m=h.resolution,n=a.pixelRatio,f=c.f,p=c.s,g=c.get(fn);
|
|
384
|
-
void 0===g&&(g=an);l=La(l,p*m);p=h.projection.C();d.A&&h.projection.a&&!Qa(p,a.extent)&&(a=Math.max(eb(l)/2,eb(p)),l[0]=p[0]-a,l[2]=p[2]+a);if(!this.b&&this.s==m&&this.D==f&&this.o==g&&Qa(this.j,l))return!0;this.g=null;this.b=!1;var q=new Jm(.5*m/n,l,m,d.va,c.s);gn(d,l,m,e);if(g){var t=[];d.Ub(l,function(a){t.push(a)},this);t.sort(g);t.forEach(b,this)}else d.Ub(l,b,this);Nm(q);this.s=m;this.D=f;this.o=g;this.j=l;this.g=q;return!0};function W(a){a=a?a:{};var b=lb({},a);delete b.style;delete b.renderBuffer;delete b.updateWhileAnimating;delete b.updateWhileInteracting;ig.call(this,b);this.s=void 0!==a.renderBuffer?a.renderBuffer:100;this.o=null;this.j=void 0;this.B(a.style);this.F=void 0!==a.updateWhileAnimating?a.updateWhileAnimating:!1;this.G=void 0!==a.updateWhileInteracting?a.updateWhileInteracting:!1}v(W,ig);W.prototype.hd=function(a){var b=null;"canvas"===a.O()&&(b=new en(this));return b};W.prototype.A=function(){return this.o};
|
|
385
|
-
W.prototype.D=function(){return this.j};W.prototype.B=function(a){this.o=void 0!==a?a:kh;this.j=null===a?void 0:ih(this.o);this.u()};var fn="renderOrder";function hn(){return[[-Infinity,-Infinity,Infinity,Infinity]]};function jn(a){Bc.call(this);this.g=Fb(a.projection);this.B=kn(a.attributions);this.ha=a.logo;this.oa=void 0!==a.state?a.state:"ready";this.A=void 0!==a.wrapX?a.wrapX:!1}v(jn,Bc);function kn(a){if("string"===typeof a)return[new kc({html:a})];if(a instanceof kc)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 kc({html:e}):e}return c}return null}k=jn.prototype;k.Ga=na;k.Me=function(){return this.B};k.Ae=function(){return this.ha};
|
|
386
|
-
k.Ne=function(){return this.g};k.ia=function(){return this.oa};k.Fd=function(){this.u()};k.bf=function(a){this.B=kn(a);this.u()};function X(a){a=a||{};jn.call(this,{attributions:a.attributions,logo:a.logo,projection:void 0,state:"ready",wrapX:void 0!==a.wrapX?a.wrapX:!0});this.F=na;this.D=a.format;this.va=void 0==a.overlaps?!0:a.overlaps;this.G=a.url;a.loader?this.F=a.loader:void 0!==this.G&&(ra(this.D,7),this.F=Fh(this.G,this.D));this.Da=a.strategy?a.strategy:hn;var b=void 0!==a.useSpatialIndex?a.useSpatialIndex:!0;this.a=b?new Pg:null;this.U=new Pg;this.b={};this.j={};this.o={};this.s={};this.i=null;var c,d;a.features instanceof
|
|
387
|
-
y?(c=a.features,d=c.a):Array.isArray(a.features)&&(d=a.features);b||c||(c=new y(d));d&&ln(this,d);c&&mn(this,c)}v(X,jn);k=X.prototype;k.cd=function(a){var b=oa(a).toString();if(nn(this,b,a)){on(this,b,a);var c=a.L();c?(b=c.C(),this.a&&this.a.lb(b,a)):this.b[b]=a;this.c(new pn("addfeature",a))}this.u()};function on(a,b,c){a.s[b]=[x(c,"change",a.Qe,a),x(c,"propertychange",a.Qe,a)]}
|
|
388
|
-
function nn(a,b,c){var d=!0,e=c.b;void 0!==e?e.toString()in a.j?d=!1:a.j[e.toString()]=c:(ra(!(b in a.o),30),a.o[b]=c);return d}k.dd=function(a){ln(this,a);this.u()};function ln(a,b){var c,d,e,f,g=[],h=[],l=[];d=0;for(e=b.length;d<e;d++)f=b[d],c=oa(f).toString(),nn(a,c,f)&&h.push(f);d=0;for(e=h.length;d<e;d++){f=h[d];c=oa(f).toString();on(a,c,f);var m=f.L();m?(c=m.C(),g.push(c),l.push(f)):a.b[c]=f}a.a&&a.a.load(g,l);d=0;for(e=h.length;d<e;d++)a.c(new pn("addfeature",h[d]))}
|
|
389
|
-
function mn(a,b){var c=!1;x(a,"addfeature",function(a){c||(c=!0,b.push(a.feature),c=!1)});x(a,"removefeature",function(a){c||(c=!0,b.remove(a.feature),c=!1)});x(b,"add",function(a){c||(c=!0,this.cd(a.element),c=!1)},a);x(b,"remove",function(a){c||(c=!0,this.Ye(a.element),c=!1)},a);a.i=b}
|
|
390
|
-
k.clear=function(a){if(a){for(var b in this.s)this.s[b].forEach(oc);this.i||(this.s={},this.j={},this.o={})}else if(this.a){this.a.forEach(this.Rd,this);for(var c in this.b)this.Rd(this.b[c])}this.i&&this.i.clear();this.a&&this.a.clear();this.U.clear();this.b={};this.c(new pn("clear"));this.u()};k.Rf=function(a,b){if(this.a)return this.a.forEach(a,b);if(this.i)return this.i.forEach(a,b)};function qn(a,b,c){a.Ub([b[0],b[1],b[0],b[1]],function(a){if(a.L().Ea(b))return c.call(void 0,a)})}
|
|
391
|
-
k.Ub=function(a,b,c){if(this.a)return Tg(this.a,a,b,c);if(this.i)return this.i.forEach(b,c)};k.Tf=function(a,b,c){return this.Ub(a,function(d){if(d.L().ta(a)&&(d=b.call(c,d)))return d})};k.ag=function(){return this.i};k.Lh=function(){var a;this.i?a=this.i.a:this.a&&(a=Qg(this.a),ob(this.b)||ga(a,nb(this.b)));return a};k.$f=function(a){var b=[];qn(this,a,function(a){b.push(a)});return b};k.bg=function(a){return Rg(this.a,a)};
|
|
392
|
-
k.Vf=function(a,b){var c=a[0],d=a[1],e=null,f=[NaN,NaN],g=Infinity,h=[-Infinity,-Infinity,Infinity,Infinity],l=b?b:ge;Tg(this.a,h,function(a){if(l(a)){var b=a.L(),m=g;g=b.Ja(c,d,f,g);g<m&&(e=a,a=Math.sqrt(g),h[0]=c-a,h[1]=d-a,h[2]=c+a,h[3]=d+a)}});return e};k.C=function(){return this.a.C()};k.Zf=function(a){a=this.j[a.toString()];return void 0!==a?a:null};k.Mh=function(){return this.D};k.Nh=function(){return this.G};
|
|
393
|
-
k.Qe=function(a){a=a.target;var b=oa(a).toString(),c=a.L();if(c)if(c=c.C(),b in this.b)delete this.b[b],this.a&&this.a.lb(c,a);else{if(this.a){var d=this.a,e=d.c[oa(a)];Ua([e.I,e.R,e.M,e.S],c)||(d.remove(a),d.lb(c,a))}}else b in this.b||(this.a&&this.a.remove(a),this.b[b]=a);c=a.b;void 0!==c?(c=c.toString(),b in this.o?(delete this.o[b],this.j[c]=a):this.j[c]!==a&&(rn(this,a),this.j[c]=a)):b in this.o||(rn(this,a),this.o[b]=a);this.u();this.c(new pn("changefeature",a))};
|
|
394
|
-
function gn(a,b,c,d){var e=a.U;b=a.Da(b,c);var f,g;f=0;for(g=b.length;f<g;++f){var h=b[f];Tg(e,h,function(a){return Qa(a.extent,h)})||(a.F.call(a,h,c,d),e.lb(h,{extent:h.slice()}))}}k.Ye=function(a){var b=oa(a).toString();b in this.b?delete this.b[b]:this.a&&this.a.remove(a);this.Rd(a);this.u()};k.Rd=function(a){var b=oa(a).toString();this.s[b].forEach(oc);delete this.s[b];var c=a.b;void 0!==c?delete this.j[c.toString()]:delete this.o[b];this.c(new pn("removefeature",a))};
|
|
395
|
-
function rn(a,b){for(var c in a.j)if(a.j[c]===b){delete a.j[c];break}}function pn(a,b){wc.call(this,a);this.feature=b}v(pn,wc);function sn(a){gf.call(this,{handleDownEvent:tn,handleEvent:un,handleUpEvent:vn});this.oa=null;this.o=!1;this.cb=a.source?a.source:null;this.Ya=a.features?a.features:null;this.Of=a.snapTolerance?a.snapTolerance:12;this.F=a.type;this.b=wn(this.F);this.Xa=a.minPoints?a.minPoints:this.b===xn?3:2;this.Wa=a.maxPoints?a.maxPoints:Infinity;this.Wc=a.finishCondition?a.finishCondition:ge;var b=a.geometryFunction;if(!b)if("Circle"===this.F)b=function(a,b){var c=b?b:new T([NaN,NaN]),d=a[0],e=a[1],f=d[0]-e[0],
|
|
396
|
-
d=d[1]-e[1];c.Sd(a[0],Math.sqrt(f*f+d*d));return c};else{var c,d=this.b;d===yn?c=C:d===zn?c=M:d===xn&&(c=D);b=function(a,b){var e=b;e?d===xn?e.Z([a[0].concat([a[0][0]])]):e.Z(a):e=new c(a);return e}}this.wa=b;this.D=this.s=this.a=this.B=this.i=this.j=null;this.cc=a.clickTolerance?a.clickTolerance*a.clickTolerance:36;this.va=new W({source:new X({useSpatialIndex:!1,wrapX:a.wrapX?a.wrapX:!1}),style:a.style?a.style:An()});this.Za=a.geometryName;this.Nf=a.condition?a.condition:cf;this.Xc=a.freehand?ge:
|
|
397
|
-
a.freehandCondition?a.freehandCondition:df;x(this,Dc("active"),this.mf,this)}v(sn,gf);function An(){var a=lh();return function(b){return a[b.L().O()]}}k=sn.prototype;k.setMap=function(a){gf.prototype.setMap.call(this,a);this.mf()};function un(a){this.o=this.b!==yn&&this.Xc(a);var b=!this.o;this.o&&"pointerdrag"===a.type&&null!==this.i?(Bn(this,a),b=!1):"pointermove"===a.type?b=Cn(this,a):"dblclick"===a.type&&(b=!1);return hf.call(this,a)&&b}
|
|
398
|
-
function tn(a){return this.o?(this.oa=a.pixel,this.j||Dn(this,a),!0):this.Nf(a)?(this.oa=a.pixel,!0):!1}function vn(a){var b=this.oa,c=a.pixel,d=b[0]-c[0],b=b[1]-c[1],d=d*d+b*b,b=!0,c=this.b===En;(this.o?d>this.cc:d<=this.cc)?(Cn(this,a),this.j?this.o||c?this.Tb():Fn(this,a)?this.Wc(a)&&this.Tb():Bn(this,a):(Dn(this,a),this.b===yn&&this.Tb()),b=!1):c&&(this.j=null);return b}
|
|
399
|
-
function Cn(a,b){if(a.j){var c=b.coordinate,d=a.i.L(),e;a.b===yn?e=a.a:a.b===xn?(e=a.a[0],e=e[e.length-1],Fn(a,b)&&(c=a.j.slice())):(e=a.a,e=e[e.length-1]);e[0]=c[0];e[1]=c[1];a.wa(a.a,d);a.B&&a.B.L().Z(c);d instanceof D&&a.b!==xn?(a.s||(a.s=new H(new M(null))),d=d.ze(0),c=a.s.L(),c.K(d.P,d.l)):a.D&&(c=a.s.L(),c.Z(a.D));Gn(a)}else c=b.coordinate.slice(),a.B?a.B.L().Z(c):(a.B=new H(new C(c)),Gn(a));return!0}
|
|
400
|
-
function Fn(a,b){var c=!1;if(a.i){var d=!1,e=[a.j];a.b===zn?d=a.a.length>a.Xa:a.b===xn&&(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],l=d.Vb(h),m=b.pixel,c=m[0]-l[0],l=m[1]-l[1];if(c=Math.sqrt(c*c+l*l)<=(a.o?1:a.Of)){a.j=h;break}}}return c}
|
|
401
|
-
function Dn(a,b){var c=b.coordinate;a.j=c;a.b===yn?a.a=c.slice():a.b===xn?(a.a=[[c.slice(),c.slice()]],a.D=a.a[0]):(a.a=[c.slice(),c.slice()],a.b===En&&(a.D=a.a));a.D&&(a.s=new H(new M(a.D)));c=a.wa(a.a);a.i=new H;a.Za&&a.i.Mc(a.Za);a.i.Ba(c);Gn(a);a.c(new Hn("drawstart",a.i))}
|
|
402
|
-
function Bn(a,b){var c=b.coordinate,d=a.i.L(),e,f;a.b===zn?(a.j=c.slice(),f=a.a,f.length>=a.Wa&&(a.o?f.pop():e=!0),f.push(c.slice()),a.wa(f,d)):a.b===xn&&(f=a.a[0],f.length>=a.Wa&&(a.o?f.pop():e=!0),f.push(c.slice()),e&&(a.j=f[0]),a.wa(a.a,d));Gn(a);e&&a.Tb()}k.wi=function(){var a=this.i.L(),b,c;this.b===zn?(b=this.a,b.splice(-2,1),this.wa(b,a)):this.b===xn&&(b=this.a[0],b.splice(-2,1),c=this.s.L(),c.Z(b),this.wa(this.a,a));0===b.length&&(this.j=null);Gn(this)};
|
|
403
|
-
k.Tb=function(){var a=In(this),b=this.a,c=a.L();this.b===zn?(b.pop(),this.wa(b,c)):this.b===xn&&(b[0].pop(),this.wa(b,c),b=c.$());"MultiPoint"===this.F?a.Ba(new P([b])):"MultiLineString"===this.F?a.Ba(new N([b])):"MultiPolygon"===this.F&&a.Ba(new Q([b]));this.c(new Hn("drawend",a));this.Ya&&this.Ya.push(a);this.cb&&this.cb.cd(a)};function In(a){a.j=null;var b=a.i;b&&(a.i=null,a.B=null,a.s=null,a.va.Aa().clear(!0));return b}
|
|
404
|
-
k.Hh=function(a){var b=a.L();this.i=a;this.a=b.$();a=this.a[this.a.length-1];this.j=a.slice();this.a.push(a.slice());Gn(this);this.c(new Hn("drawstart",this.i))};k.Ib=he;function Gn(a){var b=[];a.i&&b.push(a.i);a.s&&b.push(a.s);a.B&&b.push(a.B);a=a.va.Aa();a.clear(!0);a.dd(b)}k.mf=function(){var a=this.G,b=this.ha();a&&b||In(this);this.va.setMap(b?a:null)};
|
|
405
|
-
function wn(a){var b;"Point"===a||"MultiPoint"===a?b=yn:"LineString"===a||"MultiLineString"===a?b=zn:"Polygon"===a||"MultiPolygon"===a?b=xn:"Circle"===a&&(b=En);return b}var yn="Point",zn="LineString",xn="Polygon",En="Circle";function Hn(a,b){wc.call(this,a);this.feature=b}v(Hn,wc);function Jn(a){Xm.call(this,a);this.s=lg();this.b=null}v(Jn,Xm);Jn.prototype.B=function(a,b,c){Zm(this,"precompose",c,a,void 0);var d=this.X();if(d){var e=b.extent,f=void 0!==e;f&&Ym(c,a,e);var e=this.D,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()}Zm(this,"postcompose",c,a,void 0)};
|
|
406
|
-
Jn.prototype.Ga=function(a,b,c,d,e){var f=this.a;return f.Aa().Ga(a,b.viewState.resolution,b.viewState.rotation,c,b.skippedFeatureUids,function(a){return d.call(e,a,f)})};
|
|
407
|
-
Jn.prototype.v=function(a,b,c,d){if(this.X()){if(this.a.Aa().Ga!==na)return Xm.prototype.v.apply(this,arguments);var e=ng(this.s,a.slice()),f=e,g=b.viewState.resolution/this.i;f[0]*=g;f[1]*=g;this.b||(this.b=Rc(1,1));this.b.clearRect(0,0,1,1);this.b.drawImage(this.X(),e[0],e[1],1,1,0,0,1,1);e=this.b.getImageData(0,0,1,1).data;if(0<e[3])return c.call(d,this.a,e)}};function Kn(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)]}
|
|
408
|
-
function Ln(a,b,c,d,e,f,g,h,l,m,n){var p=Rc(Math.round(c*a),Math.round(c*b));if(!l.length)return p.canvas;p.scale(c,c);var q=Ja();l.forEach(function(a){Va(q,a.extent)});var t=Rc(Math.round(c*eb(q)/d),Math.round(c*fb(q)/d)),A=c/d;l.forEach(function(a){t.drawImage(a.image,m,m,a.image.width-2*m,a.image.height-2*m,(a.extent[0]-q[0])*A,-(a.extent[3]-q[3])*A,eb(a.extent)*A,fb(a.extent)*A)});var w=bb(g);h.b.forEach(function(a){var b=a.source,e=a.target,g=b[1][0],h=b[1][1],l=b[2][0],m=b[2][1];a=(e[0][0]-
|
|
409
|
-
w[0])/f;var n=-(e[0][1]-w[1])/f,A=(e[1][0]-w[0])/f,F=-(e[1][1]-w[1])/f,V=(e[2][0]-w[0])/f,fa=-(e[2][1]-w[1])/f,e=b[0][0],b=b[0][1],g=g-e,h=h-b,l=l-e,m=m-b;a:{g=[[g,h,0,0,A-a],[l,m,0,0,V-a],[0,0,g,h,F-n],[0,0,l,m,fa-n]];h=g.length;for(l=0;l<h;l++){for(var m=l,sa=Math.abs(g[l][l]),Ea=l+1;Ea<h;Ea++){var Za=Math.abs(g[Ea][l]);Za>sa&&(sa=Za,m=Ea)}if(!sa){g=null;break a}sa=g[m];g[m]=g[l];g[l]=sa;for(m=l+1;m<h;m++)for(sa=-g[m][l]/g[l][l],Ea=l;Ea<h+1;Ea++)g[m][Ea]=l==Ea?0:g[m][Ea]+sa*g[l][Ea]}l=Array(h);
|
|
410
|
-
for(m=h-1;0<=m;m--)for(l[m]=g[m][h]/g[m][m],sa=m-1;0<=sa;sa--)g[sa][h]-=g[sa][m]*l[m];g=l}g&&(p.save(),p.beginPath(),l=(a+A+V)/3,m=(n+F+fa)/3,h=Kn(l,m,a,n),A=Kn(l,m,A,F),V=Kn(l,m,V,fa),p.moveTo(A[0],A[1]),p.lineTo(h[0],h[1]),p.lineTo(V[0],V[1]),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(t.canvas,0,0),p.restore())});n&&(p.save(),p.strokeStyle="black",p.lineWidth=1,h.b.forEach(function(a){var b=a.target;a=(b[0][0]-w[0])/f;var c=-(b[0][1]-w[1])/
|
|
411
|
-
f,d=(b[1][0]-w[0])/f,e=-(b[1][1]-w[1])/f,g=(b[2][0]-w[0])/f,b=-(b[2][1]-w[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 Mn(a,b,c,d,e){this.f=a;this.g=b;var f={},g=Ub(this.g,this.f);this.c=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.v=!1;this.o=this.f.a&&!!d&&!!this.f.C()&&eb(d)==eb(this.f.C());this.a=this.f.C()?eb(this.f.C()):null;this.j=this.g.C()?eb(this.g.C()):null;a=bb(c);b=ab(c);d=$a(c);c=Ya(c);e=this.c(a);var h=this.c(b),l=this.c(d),m=this.c(c);Nn(this,a,b,d,c,e,h,l,m,10);if(this.v){var n=Infinity;this.b.forEach(function(a){n=Math.min(n,a.source[0][0],
|
|
412
|
-
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.a/2){var b=[[a.source[0][0],a.source[0][1]],[a.source[1][0],a.source[1][1]],[a.source[2][0],a.source[2][1]]];b[0][0]-n>this.a/2&&(b[0][0]-=this.a);b[1][0]-n>this.a/2&&(b[1][0]-=this.a);b[2][0]-n>this.a/2&&(b[2][0]-=this.a);Math.max(b[0][0],b[1][0],b[2][0])-Math.min(b[0][0],b[1][0],b[2][0])<this.a/2&&(a.source=b)}},this)}f={}}
|
|
413
|
-
function Nn(a,b,c,d,e,f,g,h,l,m){var n=Ha([f,g,h,l]),p=a.a?eb(n)/a.a:null,q=a.a,t=a.f.a&&.5<p&&1>p,A=!1;if(0<m){if(a.g.f&&a.j)var w=Ha([b,c,d,e]),A=A|.25<eb(w)/a.j;!t&&a.f.f&&p&&(A|=.25<p)}if(A||!a.i||jb(n,a.i)){if(!(A||isFinite(f[0])&&isFinite(f[1])&&isFinite(g[0])&&isFinite(g[1])&&isFinite(h[0])&&isFinite(h[1])&&isFinite(l[0])&&isFinite(l[1])))if(0<m)A=!0;else return;if(0<m&&(A||(n=a.c([(b[0]+d[0])/2,(b[1]+d[1])/2]),q=t?(Da(f[0],q)+Da(h[0],q))/2-Da(n[0],q):(f[0]+h[0])/2-n[0],n=(f[1]+h[1])/2-n[1],
|
|
414
|
-
A=q*q+n*n>a.s),A)){Math.abs(b[0]-d[0])<=Math.abs(b[1]-d[1])?(t=[(c[0]+d[0])/2,(c[1]+d[1])/2],q=a.c(t),n=[(e[0]+b[0])/2,(e[1]+b[1])/2],p=a.c(n),Nn(a,b,c,t,n,f,g,q,p,m-1),Nn(a,n,t,d,e,p,q,h,l,m-1)):(t=[(b[0]+c[0])/2,(b[1]+c[1])/2],q=a.c(t),n=[(d[0]+e[0])/2,(d[1]+e[1])/2],p=a.c(n),Nn(a,b,t,n,e,f,q,p,l,m-1),Nn(a,t,c,d,n,q,g,h,p,m-1));return}if(t){if(!a.o)return;a.v=!0}a.b.push({source:[f,h,l],target:[b,d,e]});a.b.push({source:[f,g,h],target:[b,c,d]})}}
|
|
415
|
-
function On(a){var b=Ja();a.b.forEach(function(a){a=a.source;Ka(b,a[0]);Ka(b,a[1]);Ka(b,a[2])});return b};function Pn(a){Jn.call(this,a);this.o=Rc();this.g=null;this.j=[];this.ha=Ja();this.oa=new va(0,0,0,0);this.D=lg()}v(Pn,Jn);function Qn(a,b){var c=b.ia(),d=a.a.De();return 2==c||4==c||3==c&&!d}
|
|
416
|
-
Pn.prototype.A=function(a,b){var c=a.pixelRatio,d=a.size,e=a.viewState,f=e.projection,g=e.resolution,h=e.center,l=this.a,e=l.Aa(),m=e.f,n=e.jb(f),p=gc(n,g,0),q=n.a[p],t=Math.round(g/q)||1,A=a.extent;void 0!==b.extent&&(A=ib(A,b.extent));if(db(A))return!1;var w=ac(n,A,q),F;F=n.c?n.c:n.f[p];var O=n.a[p],U=Ga(ec(n,p),n.j);F=Sa(F[0]+w.I*U[0]*O,F[1]+w.R*U[1]*O,F[0]+(w.M+1)*U[0]*O,F[1]+(w.S+1)*U[1]*O,void 0);O=e.s;U={};U[p]={};var ha=Sm(e,f,U),wa=this.ha,xa=this.oa,ta=!1,u,ia,ua;for(ia=w.I;ia<=w.M;++ia)for(ua=
|
|
417
|
-
w.R;ua<=w.S;++ua){u=Rn(e,p,ia,ua,c,f);if(!Qn(this,u))a:if(u.a){var V=u.a;do{if(2==V.ia()){u=V;break a}V=V.a}while(V)}if(Qn(this,u))2==u.ia()&&(U[p][u.Pa.toString()]=u,ta||-1!=this.j.indexOf(u)||(ta=!0));else{a:{for(var V=n,fa=u.Pa,sa=ha,Ea=xa,Za=fc(V,fa,wa),fa=fa[0]-1;fa>=V.minZoom;){if(sa.call(null,fa,cc(V,Za,fa,Ea))){V=!0;break a}--fa}V=!1}V||(V=n,u=u.Pa,sa=xa,u[0]<V.maxZoom?(Ea=fc(V,u,wa),u=cc(V,Ea,u[0]+1,sa)):u=null,u&&ha(p+1,u))}}u=a.viewHints;if(!(this.i&&16<Date.now()-a.time&&(u[0]||u[1])||
|
|
418
|
-
!ta&&this.g&&Qa(this.g,A)&&this.U==m)||t!=this.F){ia=Sn(e,p,f);u=Math.round((w.M-w.I+1)*ia[0]/t);ia=Math.round((w.S-w.R+1)*ia[0]/t);ta=this.o;ua=ta.canvas;ha=e.qd(f);ua.width!=u||ua.height!=ia?(this.F=t,ua.width=u,ua.height=ia):(ta.clearRect(0,0,u,ia),t=this.F);this.j.length=0;xa=Object.keys(U).map(Number);xa.sort(ba);for(var tb,Sb,Cb,sa=0,Ea=xa.length;sa<Ea;++sa){u=xa[sa];V=Sn(e,u,f);ia=n.a[u];Za=ia/q;fa=O*e.ye(f);tb=U[u];for(var Ia in tb){u=tb[Ia];ua=fc(n,u.Pa,wa);ia=(ua[0]-F[0])/q*O/t;ua=(F[3]-
|
|
419
|
-
ua[3])/q*O/t;Sb=V[0]*Za/t;Cb=V[1]*Za/t;ha||ta.clearRect(ia,ua,Sb,Cb);var Db=fa,Ec=u.X();Ec&&this.o.drawImage(Ec,Db,Db,Ec.width-2*Db,Ec.height-2*Db,ia,ua,Sb,Cb);this.j.push(u)}}this.U=m;this.i=q*c/O*t;this.g=F}Ia=this.i/g;Ia=og(this.D,c*d[0]/2,c*d[1]/2,Ia,Ia,0,(this.g[0]-h[0])/this.i*c,(h[1]-this.g[3])/this.i*c);og(this.s,c*d[0]/2-Ia[4],c*d[1]/2-Ia[5],c/g,-c/g,0,-h[0],-h[1]);d=a.usedTiles;g=oa(e).toString();h=p.toString();g in d?h in d[g]?(d=d[g][h],w.I<d.I&&(d.I=w.I),w.M>d.M&&(d.M=w.M),w.R<d.R&&(d.R=
|
|
420
|
-
w.R),w.S>d.S&&(d.S=w.S)):d[g][h]=w:(d[g]={},d[g][h]=w);l=l.Be();w=oa(e).toString();w in a.wantedTiles||(a.wantedTiles[w]={});var d=a.wantedTiles[w],g=a.tileQueue,h=n.minZoom,Eb;for(F=p;F>=h;--F)for(Eb=cc(n,A,F,Eb),m=n.a[F],q=Eb.I;q<=Eb.M;++q)for(t=Eb.R;t<=Eb.S;++t)p-F<=l?(Ia=Rn(e,F,q,t,c,f),0==Ia.ia()&&(d[Ia.nb()]=!0,Ia.nb()in g.f||g.j([Ia,w,dc(n,Ia.Pa),m]))):e.nf(F,q,t,f);Um(a,e);Wm(a,e);return 0<this.j.length};Pn.prototype.X=function(){return this.o.canvas};function Y(a){a=a?a:{};var b=lb({},a);delete b.preload;delete b.useInterimTilesOnError;ig.call(this,b);this.Ke(void 0!==a.preload?a.preload:0);this.Le(void 0!==a.useInterimTilesOnError?a.useInterimTilesOnError:!0)}v(Y,ig);k=Y.prototype;k.hd=function(a){var b=null;"canvas"===a.O()&&(b=new Pn(this));return b};k.Be=function(){return this.get("preload")};k.Ke=function(a){this.set("preload",a)};k.De=function(){return this.get("useInterimTilesOnError")};
|
|
421
|
-
k.Le=function(a){this.set("useInterimTilesOnError",a)};function Tn(a,b,c,d,e,f,g,h,l,m,n){sm.call(this,e,0);this.A=void 0!==n?n:!1;this.B=g;this.s=h;this.o=null;this.b=b;this.i=d;this.j=f?f:e;this.f=[];this.Jb=null;this.g=0;f=fc(d,this.j);h=this.i.C();e=this.b.C();f=h?ib(f,h):f;if(cb(f))if((h=a.C())&&(e?e=ib(e,h):e=h),h=gb(f),n=d.a[this.j[0]],d=Wb(h,c,a),h=Ab(c,n,h),n=c.ib(),void 0!==n&&(h*=n),n=a.ib(),void 0!==n&&(h/=n),d=Ab(a,h,d)/h,isFinite(d)&&0<d&&(h/=d),d=h,!isFinite(d)||0>=d)this.state=4;else if(this.v=new Mn(a,c,f,e,d*(void 0!==m?m:.5)),this.v.b.length)if(this.g=
|
|
422
|
-
gc(b,d),c=On(this.v),e&&(a.a?(c[1]=Aa(c[1],e[1],e[3]),c[3]=Aa(c[3],e[1],e[3])):c=ib(c,e)),cb(c)){a=cc(b,c,this.g);for(b=a.I;b<=a.M;b++)for(c=a.R;c<=a.S;c++)(m=l(this.g,b,c,g))&&this.f.push(m);this.f.length||(this.state=4)}else this.state=4;else this.state=4;else this.state=4}v(Tn,sm);Tn.prototype.qa=function(){1==this.state&&(this.Jb.forEach(oc),this.Jb=null);sm.prototype.qa.call(this)};Tn.prototype.X=function(){return this.o};
|
|
423
|
-
Tn.prototype.$e=function(){var a=[];this.f.forEach(function(b){b&&2==b.ia()&&a.push({extent:fc(this.b,b.Pa),image:b.X()})},this);this.f.length=0;if(a.length){var b=this.j[0],c=ec(this.i,b),d="number"===typeof c?c:c[0],c="number"===typeof c?c:c[1],b=this.i.a[b],e=this.b.a[this.g],f=fc(this.i,this.j);this.o=Ln(d,c,this.B,e,this.b.C(),b,f,this.v,a,this.s,this.A);this.state=2}else this.state=3;this.u()};
|
|
424
|
-
Tn.prototype.load=function(){if(0==this.state){this.state=1;this.u();var a=0;this.Jb=[];this.f.forEach(function(b){var c=b.ia();if(0==c||1==c){a++;var d;d=x(b,"change",function(){var c=b.ia();if(2==c||3==c||4==c)oc(d),a--,a||(this.Jb.forEach(oc),this.Jb=null,this.$e())},this);this.Jb.push(d)}},this);this.f.forEach(function(a){0==a.ia()&&a.load()});a||setTimeout(this.$e.bind(this),0)}};function Un(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.b?b.b[g[0]]:null;ra(a,55);return(a.S-a.R+1+g[2]).toString()})}}function Vn(a,b){for(var c=a.length,d=Array(c),e=0;e<c;++e)d[e]=Un(a[e],b);return Wn(d)}function Wn(a){return 1===a.length?a[0]:function(b,c,d){if(b)return a[Da((b[1]<<b[0])+b[2],a.length)](b,c,d)}}
|
|
425
|
-
function Xn(){};function Yn(a){Ug.call(this);this.g=void 0!==a?a:2048}v(Yn,Ug);function Zn(a){return a.b>a.g}Yn.prototype.sb=function(a){for(var b,c;Zn(this);){b=this.a.Kb;c=b.Pa[0].toString();var d;if(d=c in a)b=b.Pa,d=ya(a[c],b[1],b[2]);if(d)break;else vc(this.pop())}};function $n(a){jn.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state,wrapX:a.wrapX});this.F=void 0!==a.opaque?a.opaque:!1;this.s=void 0!==a.tilePixelRatio?a.tilePixelRatio:1;this.tileGrid=void 0!==a.tileGrid?a.tileGrid:null;this.a=new Yn(a.cacheSize);this.D=[0,0];this.mb=""}v($n,jn);k=$n.prototype;k.Oe=function(){return Zn(this.a)};k.sb=function(a,b){var c=this.Wb(a);c&&c.sb(b)};
|
|
426
|
-
function Tm(a,b,c,d,e){b=a.Wb(b);if(!b)return!1;for(var f=!0,g,h,l=d.I;l<=d.M;++l)for(var m=d.R;m<=d.S;++m)g=a.rc(c,l,m),h=!1,b.f.hasOwnProperty(g)&&(g=b.get(g),(h=2===g.ia())&&(h=!1!==e(g))),h||(f=!1);return f}k.ye=function(){return 0};k.rc=function(a,b,c){return a+"/"+b+"/"+c};k.qd=function(){return this.F};k.wg=function(){return this.tileGrid};k.jb=function(a){return this.tileGrid?this.tileGrid:hc(a)};k.Wb=function(a){var b=this.g;return b&&!Tb(b,a)?null:this.a};
|
|
427
|
-
function Sn(a,b,c){var d=a.jb(c);c=a.s;b=Ga(ec(d,b),a.D);1==c?a=b:(a=a.D,void 0===a&&(a=[0,0]),a[0]=b[0]*c+.5|0,a[1]=b[1]*c+.5|0);return a}function ao(a,b,c){var d=void 0!==c?c:a.g;c=a.jb(d);if(a.A&&d.f){var e=b;b=e[0];a=dc(c,e);d=ic(d);Oa(d,a)?b=e:(e=eb(d),a[0]+=e*Math.ceil((d[0]-a[0])/e),b=bc(c,a[0],a[1],c.a[b],!1,void 0))}e=b[0];d=b[1];a=b[2];if(c.minZoom>e||e>c.maxZoom)c=!1;else{var f=c.C();c=(c=f?cc(c,f,e):c.b?c.b[e]:null)?ya(c,d,a):!0}return c?b:null}k.Fd=function(){this.a.clear();this.u()};
|
|
428
|
-
k.nf=na;function bo(a,b){wc.call(this,a);this.tile=b}v(bo,wc);function co(a){$n.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.i?this.i.bind(this):Xn;this.urls=null;a.urls?this.hf(a.urls):a.url&&this.Pe(a.url);a.tileUrlFunction&&this.Pc(a.tileUrlFunction)}v(co,$n);k=co.prototype;k.xg=function(){return this.tileLoadFunction};k.zg=function(){return this.tileUrlFunction};
|
|
429
|
-
k.Ag=function(){return this.urls};k.Kh=function(a){a=a.target;switch(a.ia()){case 1:this.c(new bo("tileloadstart",a));break;case 2:this.c(new bo("tileloadend",a));break;case 3:this.c(new bo("tileloaderror",a))}};k.Pi=function(a){this.a.clear();this.tileLoadFunction=a;this.u()};k.Pc=function(a,b){this.tileUrlFunction=a;"undefined"!==typeof b?this.mb!==b&&(this.mb=b,this.u()):this.u()};
|
|
430
|
-
k.Pe=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.Pc(this.i?this.i.bind(this):Vn(b,this.tileGrid),a)};k.hf=function(a){this.urls=a;var b=a.join("\n");this.Pc(this.i?this.i.bind(this):Vn(a,this.tileGrid),b)};
|
|
431
|
-
k.nf=function(a,b,c){a=this.rc(a,b,c);this.a.f.hasOwnProperty(a)&&this.a.get(a)};function eo(a){co.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:fo,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=a.tileClass?a.tileClass:tm;this.b={};this.j={};this.G=a.reprojectionErrorThreshold;this.o=
|
|
432
|
-
!1}v(eo,co);k=eo.prototype;k.Oe=function(){if(Zn(this.a))return!0;for(var a in this.b)if(Zn(this.b[a]))return!0;return!1};k.sb=function(a,b){var c=this.Wb(a);this.a.sb(this.a==c?b:{});for(var d in this.b){var e=this.b[d];e.sb(e==c?b:{})}};k.ye=function(a){return this.g&&a&&Tb(this.g,a),0};k.qd=function(a){return this.g&&a&&!Tb(this.g,a)?!1:co.prototype.qd.call(this,a)};k.jb=function(a){var b=this.g;return!this.tileGrid||b&&!Tb(b,a)?(b=oa(a).toString(),b in this.j||(this.j[b]=hc(a)),this.j[b]):this.tileGrid};
|
|
433
|
-
k.Wb=function(a){var b=this.g;if(!b||Tb(b,a))return this.a;a=oa(a).toString();a in this.b||(this.b[a]=new Yn);return this.b[a]};function go(a,b,c,d,e,f,g){b=[b,c,d];e=(c=ao(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;x(e,"change",a.Kh,a);return e}
|
|
434
|
-
function Rn(a,b,c,d,e,f){if(a.g&&f&&!Tb(a.g,f)){e=a.Wb(f);d=[b,c,d];var g;b=a.rc.apply(a,d);e.f.hasOwnProperty(b)&&(g=e.get(b));c=a.mb;if(g&&g.key==c)return g;var h=a.g,l=a.jb(h),m=a.jb(f),n=ao(a,d,f);a=new Tn(h,l,f,m,d,n,a.s,0,function(a,b,c,d){return ho(this,a,b,c,d,h)}.bind(a),a.G,a.o);a.key=c;g?(a.a=g,e.replace(b,a)):e.set(b,a);return a}return ho(a,b,c,d,e,f)}
|
|
435
|
-
function ho(a,b,c,d,e,f){var g,h=a.rc(b,c,d),l=a.mb;if(a.a.f.hasOwnProperty(h)){if(g=a.a.get(h),g.key!=l){var m=g;g=go(a,b,c,d,e,f,l);0==m.ia()?g.a=m.a:g.a=m;if(g.a){b=g.a;c=g;do{if(2==b.ia()){b.a=null;break}else 1==b.ia()?c=b:0==b.ia()?c.a=b.a:c=b;b=c.a}while(b)}a.a.replace(h,g)}}else g=go(a,b,c,d,e,f,l),a.a.set(h,g);return g}k.Mi=function(a){if(this.o!=a){this.o=a;for(var b in this.b)this.b[b].clear();this.u()}};k.Oi=function(a,b){var c=Fb(a);c&&(c=oa(c).toString(),c in this.j||(this.j[c]=b))};
|
|
436
|
-
function fo(a,b){a.X().src=b};function Z(a){a=a||{};var b=void 0!==a.projection?a.projection:"EPSG:3857",c;if(void 0!==a.tileGrid)c=a.tileGrid;else{c={extent:ic(b),maxZoom:a.maxZoom,minZoom:a.minZoom,tileSize:a.tileSize};var d={};lb(d,c?c:{});void 0===d.extent&&(d.extent=Fb("EPSG:3857").C());d.resolutions=jc(d.extent,d.maxZoom,d.tileSize);delete d.maxZoom;c=new Yb(d)}eo.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,opaque:a.opaque,projection:b,reprojectionErrorThreshold:a.reprojectionErrorThreshold,
|
|
437
|
-
tileGrid:c,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls,wrapX:void 0!==a.wrapX?a.wrapX:!0})}v(Z,eo);(function(){var a={},b={T:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.T=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.tj=c()}})(function(){return function d(a,b,g){function e(h,l){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!l&&m)return m(h,!0);if(f)return f(h,!0);m=Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m;}m=b[h]={T:{}};a[h][0].call(m.T,function(b){var d=
|
|
438
|
-
a[h][1][b];return e(d?d:b)},m,m.T,d,a,b,g)}return b[h].T}for(var f="function"==typeof require&&require,m=0;m<g.length;m++)e(g[m]);return e}({1:[function(a,b,f){a=a("./processor");f.lj=a},{"./processor":2}],2:[function(a,b){function d(a){var b=!0;try{new ImageData(10,10)}catch(q){b=!1}return function(d){var e=d.buffers,f=d.meta,g=d.width,h=d.height,l=e.length,m=e[0].byteLength;if(d.imageOps){m=Array(l);for(d=0;d<l;++d){var n=m,p=d,q;q=new Uint8ClampedArray(e[d]);var ta=g,u=h;q=b?new ImageData(q,ta,
|
|
439
|
-
u):{data:q,width:ta,height:u};n[p]=q}g=a(m,f).data}else{g=new Uint8ClampedArray(m);h=Array(l);n=Array(l);for(d=0;d<l;++d)h[d]=new Uint8ClampedArray(e[d]),n[d]=[0,0,0,0];for(e=0;e<m;e+=4){for(d=0;d<l;++d)p=h[d],n[d][0]=p[e],n[d][1]=p[e+1],n[d][2]=p[e+2],n[d][3]=p[e+3];d=a(n,f);g[e]=d[0];g[e+1]=d[1];g[e+2]=d[2];g[e+3]=d[3]}}return g.buffer}}function e(a,b){var e=Object.keys(a.lib||{}).map(function(b){return"var "+b+" = "+a.lib[b].toString()+";"}).concat(["var __minion__ = ("+d.toString()+")(",a.operation.toString(),
|
|
440
|
-
");",'self.addEventListener("message", function(event) {'," var buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),e=URL.createObjectURL(new Blob(e,{type:"text/javascript"})),e=new Worker(e);e.addEventListener("message",b);return e}function h(a,b){var e=d(a.operation);return{postMessage:function(a){setTimeout(function(){b({data:{buffer:e(a),meta:a.meta}})},0)}}}function l(a){this.$c=!!a.rj;var b;0===a.threads?b=0:this.$c?b=1:b=a.threads||
|
|
441
|
-
1;var d=[];if(b)for(var f=0;f<b;++f)d[f]=e(a,this.ke.bind(this,f));else d[0]=h(a,this.ke.bind(this,0));this.hc=d;this.le=[];this.fc=0;this.pb={};this.ad=null}var m=a("./util").lh;l.prototype.xf=function(){if(0===this.fc&&0<this.le.length){var a=this.ad=this.le.shift(),b=a.inputs[0].width,d=a.inputs[0].height,e=a.inputs.map(function(a){return a.data.buffer}),f=this.hc.length;this.fc=f;if(1===f)this.hc[0].postMessage({buffers:e,meta:a.Wg,imageOps:this.$c,width:b,height:d},e);else for(var g=4*Math.ceil(a.inputs[0].data.length/
|
|
442
|
-
4/f),h=0;h<f;++h){for(var l=h*g,m=[],ha=0,wa=e.length;ha<wa;++ha)m.push(e[h].slice(l,l+g));this.hc[h].postMessage({buffers:m,meta:a.Wg,imageOps:this.$c,width:b,height:d},m)}}};l.prototype.ke=function(a,b){this.qj||(this.pb[a]=b.data,--this.fc,0===this.fc&&this.zf())};l.prototype.zf=function(){var a=this.ad,b=this.hc.length,d,e;if(1===b)d=new Uint8ClampedArray(this.pb[0].buffer),e=this.pb[0].meta;else{var f=a.inputs[0].data.length;d=new Uint8ClampedArray(f);e=Array(f);for(var f=4*Math.ceil(f/4/b),
|
|
443
|
-
g=0;g<b;++g){var h=g*f;d.set(new Uint8ClampedArray(this.pb[g].buffer),h);e[g]=this.pb[g].meta}}this.ad=null;this.pb={};a.ic(null,m(d,a.inputs[0].width,a.inputs[0].height),e);this.xf()};b.T=l},{"./util":3}],3:[function(a,b,f){var d=!0;try{new ImageData(10,10)}catch(l){d=!1}var e=document.createElement("canvas").getContext("2d");f.lh=function(a,b,f){if(d)return new ImageData(a,b,f);b=e.createImageData(b,f);b.data.set(a);return b}},{}]},{},[1])(1)})})();function io(a,b){this.a=b;this.c=[{x:0,y:0,width:a,height:a}];this.b={};this.f=Rc(a,a);this.g=this.f.canvas}io.prototype.get=function(a){return this.b[a]||null};
|
|
444
|
-
io.prototype.add=function(a,b,c,d,e){var f,g,h;g=0;for(h=this.c.length;g<h;++g)if(f=this.c[g],f.width>=b+this.a&&f.height>=c+this.a)return h={offsetX:f.x+this.a,offsetY:f.y+this.a,image:this.g},this.b[a]=h,d.call(e,this.f,f.x+this.a,f.y+this.a),a=g,b+=this.a,d=c+this.a,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},jo(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},jo(this,
|
|
445
|
-
a,c,b)),h;return null};function jo(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.c.splice.apply(a.c,b)};function ko(a){a=a||{};this.c=void 0!==a.initialSize?a.initialSize:256;this.f=void 0!==a.maxSize?a.maxSize:2048;this.a=void 0!==a.space?a.space:1;this.g=[new io(this.c,this.a)];this.b=this.c;this.i=[new io(this.b,this.a)]}ko.prototype.add=function(a,b,c,d,e,f){if(b+this.a>this.f||c+this.a>this.f)return null;d=lo(this,!1,a,b,c,d,f);if(!d)return null;a=lo(this,!0,a,b,c,e?e:na,f);return{offsetX:d.offsetX,offsetY:d.offsetY,image:d.image,Tg:a.image}};
|
|
446
|
-
function lo(a,b,c,d,e,f,g){var h=b?a.i:a.g,l,m,n;m=0;for(n=h.length;m<n;++m){l=h[m];if(l=l.add(c,d,e,f,g))return l;l||m!==n-1||(b?(l=Math.min(2*a.b,a.f),a.b=l):(l=Math.min(2*a.c,a.f),a.c=l),l=new io(l,a.a),h.push(l),++n)}return null};y.prototype.clear=y.prototype.clear;y.prototype.extend=y.prototype.nh;y.prototype.forEach=y.prototype.forEach;y.prototype.getArray=y.prototype.oh;y.prototype.item=y.prototype.item;y.prototype.getLength=y.prototype.zb;y.prototype.insertAt=y.prototype.xc;y.prototype.pop=y.prototype.pop;y.prototype.push=y.prototype.push;y.prototype.remove=y.prototype.remove;y.prototype.removeAt=y.prototype.Qd;y.prototype.setAt=y.prototype.Di;y.prototype.get=y.prototype.get;y.prototype.getKeys=y.prototype.ja;
|
|
447
|
-
y.prototype.getProperties=y.prototype.Y;y.prototype.set=y.prototype.set;y.prototype.setProperties=y.prototype.N;y.prototype.unset=y.prototype.la;y.prototype.changed=y.prototype.u;y.prototype.dispatchEvent=y.prototype.c;y.prototype.getRevision=y.prototype.ba;y.prototype.on=y.prototype.ea;y.prototype.once=y.prototype.once;y.prototype.un=y.prototype.fa;y.prototype.unByKey=y.prototype.ga;r("ol.Feature",H);H.prototype.clone=H.prototype.clone;H.prototype.getGeometry=H.prototype.L;H.prototype.getId=H.prototype.ph;
|
|
448
|
-
H.prototype.getGeometryName=H.prototype.eg;H.prototype.getStyle=H.prototype.qh;H.prototype.getStyleFunction=H.prototype.rh;H.prototype.setGeometry=H.prototype.Ba;H.prototype.setStyle=H.prototype.xd;H.prototype.setId=H.prototype.Yb;H.prototype.setGeometryName=H.prototype.Mc;H.prototype.get=H.prototype.get;H.prototype.getKeys=H.prototype.ja;H.prototype.getProperties=H.prototype.Y;H.prototype.set=H.prototype.set;H.prototype.setProperties=H.prototype.N;H.prototype.unset=H.prototype.la;
|
|
449
|
-
H.prototype.changed=H.prototype.u;H.prototype.dispatchEvent=H.prototype.c;H.prototype.getRevision=H.prototype.ba;H.prototype.on=H.prototype.ea;H.prototype.once=H.prototype.once;H.prototype.un=H.prototype.fa;H.prototype.unByKey=H.prototype.ga;r("ol.Map",G);G.prototype.addControl=G.prototype.Ef;G.prototype.addInteraction=G.prototype.Ff;G.prototype.addLayer=G.prototype.Gf;G.prototype.addOverlay=G.prototype.Hf;G.prototype.forEachFeatureAtPixel=G.prototype.Sf;G.prototype.forEachLayerAtPixel=G.prototype.vh;
|
|
450
|
-
G.prototype.hasFeatureAtPixel=G.prototype.Sg;G.prototype.getEventCoordinate=G.prototype.Yf;G.prototype.getEventPixel=G.prototype.kd;G.prototype.getTarget=G.prototype.td;G.prototype.getTargetElement=G.prototype.ud;G.prototype.getCoordinateFromPixel=G.prototype.Qa;G.prototype.getControls=G.prototype.Xf;G.prototype.getOverlays=G.prototype.rg;G.prototype.getOverlayById=G.prototype.qg;G.prototype.getInteractions=G.prototype.fg;G.prototype.getLayerGroup=G.prototype.ub;G.prototype.getLayers=G.prototype.wh;
|
|
451
|
-
G.prototype.getPixelFromCoordinate=G.prototype.Vb;G.prototype.getSize=G.prototype.yc;G.prototype.getView=G.prototype.da;G.prototype.getViewport=G.prototype.Bg;G.prototype.renderSync=G.prototype.Bi;G.prototype.render=G.prototype.render;G.prototype.removeControl=G.prototype.ui;G.prototype.removeInteraction=G.prototype.vi;G.prototype.removeLayer=G.prototype.xi;G.prototype.removeOverlay=G.prototype.yi;G.prototype.setLayerGroup=G.prototype.Hi;G.prototype.setSize=G.prototype.Wd;G.prototype.setTarget=G.prototype.Ie;
|
|
452
|
-
G.prototype.setView=G.prototype.Qi;G.prototype.updateSize=G.prototype.ae;G.prototype.get=G.prototype.get;G.prototype.getKeys=G.prototype.ja;G.prototype.getProperties=G.prototype.Y;G.prototype.set=G.prototype.set;G.prototype.setProperties=G.prototype.N;G.prototype.unset=G.prototype.la;G.prototype.changed=G.prototype.u;G.prototype.dispatchEvent=G.prototype.c;G.prototype.getRevision=G.prototype.ba;G.prototype.on=G.prototype.ea;G.prototype.once=G.prototype.once;G.prototype.un=G.prototype.fa;
|
|
453
|
-
G.prototype.unByKey=G.prototype.ga;Ac.prototype.changed=Ac.prototype.u;Ac.prototype.dispatchEvent=Ac.prototype.c;Ac.prototype.getRevision=Ac.prototype.ba;Ac.prototype.on=Ac.prototype.ea;Ac.prototype.once=Ac.prototype.once;Ac.prototype.un=Ac.prototype.fa;Ac.prototype.unByKey=Ac.prototype.ga;r("ol.View",E);E.prototype.animate=E.prototype.animate;E.prototype.constrainCenter=E.prototype.gb;E.prototype.constrainResolution=E.prototype.constrainResolution;E.prototype.constrainRotation=E.prototype.constrainRotation;
|
|
454
|
-
E.prototype.getCenter=E.prototype.sa;E.prototype.calculateExtent=E.prototype.qe;E.prototype.getMaxResolution=E.prototype.xh;E.prototype.getMinResolution=E.prototype.yh;E.prototype.getProjection=E.prototype.zh;E.prototype.getResolution=E.prototype.ya;E.prototype.getResolutions=E.prototype.Ah;E.prototype.getRotation=E.prototype.za;E.prototype.getZoom=E.prototype.Dg;E.prototype.fit=E.prototype.Qf;E.prototype.centerOn=E.prototype.Pf;E.prototype.rotate=E.prototype.rotate;E.prototype.setCenter=E.prototype.Ma;
|
|
455
|
-
E.prototype.setResolution=E.prototype.Hb;E.prototype.setRotation=E.prototype.yd;E.prototype.setZoom=E.prototype.Ti;E.prototype.get=E.prototype.get;E.prototype.getKeys=E.prototype.ja;E.prototype.getProperties=E.prototype.Y;E.prototype.set=E.prototype.set;E.prototype.setProperties=E.prototype.N;E.prototype.unset=E.prototype.la;E.prototype.changed=E.prototype.u;E.prototype.dispatchEvent=E.prototype.c;E.prototype.getRevision=E.prototype.ba;E.prototype.on=E.prototype.ea;E.prototype.once=E.prototype.once;
|
|
456
|
-
E.prototype.un=E.prototype.fa;E.prototype.unByKey=E.prototype.ga;r("ol.control.ScaleLine",Xg);Xg.prototype.getUnits=Xg.prototype.kb;Xg.prototype.setUnits=Xg.prototype.D;Xg.prototype.getMap=Xg.prototype.va;Xg.prototype.setMap=Xg.prototype.setMap;Xg.prototype.setTarget=Xg.prototype.U;Xg.prototype.get=Xg.prototype.get;Xg.prototype.getKeys=Xg.prototype.ja;Xg.prototype.getProperties=Xg.prototype.Y;Xg.prototype.set=Xg.prototype.set;Xg.prototype.setProperties=Xg.prototype.N;Xg.prototype.unset=Xg.prototype.la;
|
|
457
|
-
Xg.prototype.changed=Xg.prototype.u;Xg.prototype.dispatchEvent=Xg.prototype.c;Xg.prototype.getRevision=Xg.prototype.ba;Xg.prototype.on=Xg.prototype.ea;Xg.prototype.once=Xg.prototype.once;Xg.prototype.un=Xg.prototype.fa;Xg.prototype.unByKey=Xg.prototype.ga;r("ol.extent.boundingExtent",Ha);r("ol.extent.buffer",La);r("ol.extent.containsCoordinate",Oa);r("ol.extent.containsExtent",Qa);r("ol.extent.containsXY",Pa);r("ol.extent.createEmpty",Ja);r("ol.extent.equals",Ua);r("ol.extent.extend",Va);
|
|
458
|
-
r("ol.extent.getBottomLeft",Ya);r("ol.extent.getBottomRight",$a);r("ol.extent.getCenter",gb);r("ol.extent.getHeight",fb);r("ol.extent.getIntersection",ib);r("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});r("ol.extent.getTopLeft",bb);r("ol.extent.getTopRight",ab);r("ol.extent.getWidth",eb);r("ol.extent.intersects",jb);r("ol.extent.isEmpty",db);r("ol.extent.applyTransform",kb);r("ol.format.GeoJSON",Wh);Wh.prototype.readFeature=Wh.prototype.Xb;Wh.prototype.readFeatures=Wh.prototype.Fb;
|
|
459
|
-
Wh.prototype.readGeometry=Wh.prototype.Jc;Wh.prototype.readProjection=Wh.prototype.Gb;Wh.prototype.writeFeature=Wh.prototype.Tc;Wh.prototype.writeFeatureObject=Wh.prototype.a;Wh.prototype.writeFeatures=Wh.prototype.bc;Wh.prototype.writeFeaturesObject=Wh.prototype.b;Wh.prototype.writeGeometry=Wh.prototype.Uc;Wh.prototype.writeGeometryObject=Wh.prototype.g;r("ol.format.KML",Vi);Vi.prototype.readFeature=Vi.prototype.Xb;Vi.prototype.readFeatures=Vi.prototype.Fb;Vi.prototype.readName=Vi.prototype.mi;
|
|
460
|
-
Vi.prototype.readNetworkLinks=Vi.prototype.ni;Vi.prototype.readRegion=Vi.prototype.oi;Vi.prototype.readRegionFromNode=Vi.prototype.Kc;Vi.prototype.readProjection=Vi.prototype.Gb;Vi.prototype.writeFeatures=Vi.prototype.bc;Vi.prototype.writeFeaturesNode=Vi.prototype.be;r("ol.format.WKT",sl);sl.prototype.readFeature=sl.prototype.Xb;sl.prototype.readFeatures=sl.prototype.Fb;sl.prototype.readGeometry=sl.prototype.Jc;sl.prototype.writeFeature=sl.prototype.Tc;sl.prototype.writeFeatures=sl.prototype.bc;
|
|
461
|
-
sl.prototype.writeGeometry=sl.prototype.Uc;r("ol.geom.Circle",T);T.prototype.clone=T.prototype.clone;T.prototype.getCenter=T.prototype.sa;T.prototype.getRadius=T.prototype.zd;T.prototype.getType=T.prototype.O;T.prototype.intersectsExtent=T.prototype.ta;T.prototype.setCenter=T.prototype.Ma;T.prototype.setCenterAndRadius=T.prototype.Sd;T.prototype.setRadius=T.prototype.Vd;T.prototype.transform=T.prototype.Ha;r("ol.geom.Geometry",ie);ie.prototype.getClosestPoint=ie.prototype.Ka;
|
|
462
|
-
ie.prototype.intersectsCoordinate=ie.prototype.Ea;ie.prototype.getExtent=ie.prototype.C;ie.prototype.rotate=ie.prototype.rotate;ie.prototype.scale=ie.prototype.scale;ie.prototype.simplify=ie.prototype.Na;ie.prototype.transform=ie.prototype.Ha;r("ol.geom.GeometryCollection",R);R.prototype.clone=R.prototype.clone;R.prototype.getGeometries=R.prototype.ld;R.prototype.getType=R.prototype.O;R.prototype.intersectsExtent=R.prototype.ta;R.prototype.setGeometries=R.prototype.df;R.prototype.applyTransform=R.prototype.rb;
|
|
463
|
-
R.prototype.translate=R.prototype.translate;r("ol.geom.LinearRing",B);B.prototype.clone=B.prototype.clone;B.prototype.getArea=B.prototype.Dh;B.prototype.getCoordinates=B.prototype.$;B.prototype.getType=B.prototype.O;B.prototype.setCoordinates=B.prototype.Z;r("ol.geom.LineString",M);M.prototype.appendCoordinate=M.prototype.If;M.prototype.clone=M.prototype.clone;M.prototype.forEachSegment=M.prototype.Uf;M.prototype.getCoordinateAtM=M.prototype.Bh;M.prototype.getCoordinates=M.prototype.$;
|
|
464
|
-
M.prototype.getCoordinateAt=M.prototype.xe;M.prototype.getLength=M.prototype.Ch;M.prototype.getType=M.prototype.O;M.prototype.intersectsExtent=M.prototype.ta;M.prototype.setCoordinates=M.prototype.Z;r("ol.geom.MultiLineString",N);N.prototype.appendLineString=N.prototype.Jf;N.prototype.clone=N.prototype.clone;N.prototype.getCoordinateAtM=N.prototype.Eh;N.prototype.getCoordinates=N.prototype.$;N.prototype.getLineString=N.prototype.lg;N.prototype.getLineStrings=N.prototype.sc;N.prototype.getType=N.prototype.O;
|
|
465
|
-
N.prototype.intersectsExtent=N.prototype.ta;N.prototype.setCoordinates=N.prototype.Z;r("ol.geom.MultiPoint",P);P.prototype.appendPoint=P.prototype.Lf;P.prototype.clone=P.prototype.clone;P.prototype.getCoordinates=P.prototype.$;P.prototype.getPoint=P.prototype.sg;P.prototype.getPoints=P.prototype.Ad;P.prototype.getType=P.prototype.O;P.prototype.intersectsExtent=P.prototype.ta;P.prototype.setCoordinates=P.prototype.Z;r("ol.geom.MultiPolygon",Q);Q.prototype.appendPolygon=Q.prototype.Mf;
|
|
466
|
-
Q.prototype.clone=Q.prototype.clone;Q.prototype.getArea=Q.prototype.Fh;Q.prototype.getCoordinates=Q.prototype.$;Q.prototype.getInteriorPoints=Q.prototype.hg;Q.prototype.getPolygon=Q.prototype.tg;Q.prototype.getPolygons=Q.prototype.rd;Q.prototype.getType=Q.prototype.O;Q.prototype.intersectsExtent=Q.prototype.ta;Q.prototype.setCoordinates=Q.prototype.Z;r("ol.geom.Point",C);C.prototype.clone=C.prototype.clone;C.prototype.getCoordinates=C.prototype.$;C.prototype.getType=C.prototype.O;
|
|
467
|
-
C.prototype.intersectsExtent=C.prototype.ta;C.prototype.setCoordinates=C.prototype.Z;r("ol.geom.Polygon",D);D.prototype.appendLinearRing=D.prototype.Kf;D.prototype.clone=D.prototype.clone;D.prototype.getArea=D.prototype.Gh;D.prototype.getCoordinates=D.prototype.$;D.prototype.getInteriorPoint=D.prototype.gg;D.prototype.getLinearRingCount=D.prototype.mg;D.prototype.getLinearRing=D.prototype.ze;D.prototype.getLinearRings=D.prototype.pd;D.prototype.getType=D.prototype.O;D.prototype.intersectsExtent=D.prototype.ta;
|
|
468
|
-
D.prototype.setCoordinates=D.prototype.Z;r("ol.geom.Polygon.circular",function(a,b,c,d){var e=d?d:32;d=[];var f;for(f=0;f<e;++f)ga(d,a.offset(b,c,2*Math.PI*f/e));d.push(d[0],d[1]);a=new D(null);a.K("XY",d,[d.length]);return a});r("ol.geom.Polygon.fromExtent",Oe);
|
|
469
|
-
r("ol.geom.Polygon.fromCircle",function(a,b,c){var d=b?b:32,e=a.a,f=a.P;b=new D(null,f);for(var d=e*(d+1),e=Array(d),g=0;g<d;g++)e[g]=0;b.K(f,e,[e.length]);f=a.sa();a=a.zd();var d=b.l,e=b.P,g=b.a,h=b.Ra(),l=d.length/g-1;c=c?c:0;for(var m,n,p=0;p<=l;++p)n=p*g,m=c+2*Da(p,l)*Math.PI/l,d[n]=f[0]+a*Math.cos(m),d[n+1]=f[1]+a*Math.sin(m);b.K(e,d,h);return b});r("ol.geom.SimpleGeometry",z);z.prototype.getFirstCoordinate=z.prototype.Sa;z.prototype.getLastCoordinate=z.prototype.Ta;z.prototype.getLayout=z.prototype.Ua;
|
|
470
|
-
z.prototype.applyTransform=z.prototype.rb;z.prototype.translate=z.prototype.translate;ie.prototype.get=ie.prototype.get;ie.prototype.getKeys=ie.prototype.ja;ie.prototype.getProperties=ie.prototype.Y;ie.prototype.set=ie.prototype.set;ie.prototype.setProperties=ie.prototype.N;ie.prototype.unset=ie.prototype.la;ie.prototype.changed=ie.prototype.u;ie.prototype.dispatchEvent=ie.prototype.c;ie.prototype.getRevision=ie.prototype.ba;ie.prototype.on=ie.prototype.ea;ie.prototype.once=ie.prototype.once;
|
|
471
|
-
ie.prototype.un=ie.prototype.fa;ie.prototype.unByKey=ie.prototype.ga;z.prototype.getClosestPoint=z.prototype.Ka;z.prototype.intersectsCoordinate=z.prototype.Ea;z.prototype.getExtent=z.prototype.C;z.prototype.rotate=z.prototype.rotate;z.prototype.scale=z.prototype.scale;z.prototype.simplify=z.prototype.Na;z.prototype.transform=z.prototype.Ha;z.prototype.get=z.prototype.get;z.prototype.getKeys=z.prototype.ja;z.prototype.getProperties=z.prototype.Y;z.prototype.set=z.prototype.set;
|
|
472
|
-
z.prototype.setProperties=z.prototype.N;z.prototype.unset=z.prototype.la;z.prototype.changed=z.prototype.u;z.prototype.dispatchEvent=z.prototype.c;z.prototype.getRevision=z.prototype.ba;z.prototype.on=z.prototype.ea;z.prototype.once=z.prototype.once;z.prototype.un=z.prototype.fa;z.prototype.unByKey=z.prototype.ga;T.prototype.getFirstCoordinate=T.prototype.Sa;T.prototype.getLastCoordinate=T.prototype.Ta;T.prototype.getLayout=T.prototype.Ua;T.prototype.rotate=T.prototype.rotate;T.prototype.scale=T.prototype.scale;
|
|
473
|
-
T.prototype.getClosestPoint=T.prototype.Ka;T.prototype.intersectsCoordinate=T.prototype.Ea;T.prototype.getExtent=T.prototype.C;T.prototype.simplify=T.prototype.Na;T.prototype.get=T.prototype.get;T.prototype.getKeys=T.prototype.ja;T.prototype.getProperties=T.prototype.Y;T.prototype.set=T.prototype.set;T.prototype.setProperties=T.prototype.N;T.prototype.unset=T.prototype.la;T.prototype.changed=T.prototype.u;T.prototype.dispatchEvent=T.prototype.c;T.prototype.getRevision=T.prototype.ba;
|
|
474
|
-
T.prototype.on=T.prototype.ea;T.prototype.once=T.prototype.once;T.prototype.un=T.prototype.fa;T.prototype.unByKey=T.prototype.ga;R.prototype.getClosestPoint=R.prototype.Ka;R.prototype.intersectsCoordinate=R.prototype.Ea;R.prototype.getExtent=R.prototype.C;R.prototype.rotate=R.prototype.rotate;R.prototype.scale=R.prototype.scale;R.prototype.simplify=R.prototype.Na;R.prototype.transform=R.prototype.Ha;R.prototype.get=R.prototype.get;R.prototype.getKeys=R.prototype.ja;R.prototype.getProperties=R.prototype.Y;
|
|
475
|
-
R.prototype.set=R.prototype.set;R.prototype.setProperties=R.prototype.N;R.prototype.unset=R.prototype.la;R.prototype.changed=R.prototype.u;R.prototype.dispatchEvent=R.prototype.c;R.prototype.getRevision=R.prototype.ba;R.prototype.on=R.prototype.ea;R.prototype.once=R.prototype.once;R.prototype.un=R.prototype.fa;R.prototype.unByKey=R.prototype.ga;B.prototype.getFirstCoordinate=B.prototype.Sa;B.prototype.getLastCoordinate=B.prototype.Ta;B.prototype.getLayout=B.prototype.Ua;B.prototype.rotate=B.prototype.rotate;
|
|
476
|
-
B.prototype.scale=B.prototype.scale;B.prototype.getClosestPoint=B.prototype.Ka;B.prototype.intersectsCoordinate=B.prototype.Ea;B.prototype.getExtent=B.prototype.C;B.prototype.simplify=B.prototype.Na;B.prototype.transform=B.prototype.Ha;B.prototype.get=B.prototype.get;B.prototype.getKeys=B.prototype.ja;B.prototype.getProperties=B.prototype.Y;B.prototype.set=B.prototype.set;B.prototype.setProperties=B.prototype.N;B.prototype.unset=B.prototype.la;B.prototype.changed=B.prototype.u;
|
|
477
|
-
B.prototype.dispatchEvent=B.prototype.c;B.prototype.getRevision=B.prototype.ba;B.prototype.on=B.prototype.ea;B.prototype.once=B.prototype.once;B.prototype.un=B.prototype.fa;B.prototype.unByKey=B.prototype.ga;M.prototype.getFirstCoordinate=M.prototype.Sa;M.prototype.getLastCoordinate=M.prototype.Ta;M.prototype.getLayout=M.prototype.Ua;M.prototype.rotate=M.prototype.rotate;M.prototype.scale=M.prototype.scale;M.prototype.getClosestPoint=M.prototype.Ka;M.prototype.intersectsCoordinate=M.prototype.Ea;
|
|
478
|
-
M.prototype.getExtent=M.prototype.C;M.prototype.simplify=M.prototype.Na;M.prototype.transform=M.prototype.Ha;M.prototype.get=M.prototype.get;M.prototype.getKeys=M.prototype.ja;M.prototype.getProperties=M.prototype.Y;M.prototype.set=M.prototype.set;M.prototype.setProperties=M.prototype.N;M.prototype.unset=M.prototype.la;M.prototype.changed=M.prototype.u;M.prototype.dispatchEvent=M.prototype.c;M.prototype.getRevision=M.prototype.ba;M.prototype.on=M.prototype.ea;M.prototype.once=M.prototype.once;
|
|
479
|
-
M.prototype.un=M.prototype.fa;M.prototype.unByKey=M.prototype.ga;N.prototype.getFirstCoordinate=N.prototype.Sa;N.prototype.getLastCoordinate=N.prototype.Ta;N.prototype.getLayout=N.prototype.Ua;N.prototype.rotate=N.prototype.rotate;N.prototype.scale=N.prototype.scale;N.prototype.getClosestPoint=N.prototype.Ka;N.prototype.intersectsCoordinate=N.prototype.Ea;N.prototype.getExtent=N.prototype.C;N.prototype.simplify=N.prototype.Na;N.prototype.transform=N.prototype.Ha;N.prototype.get=N.prototype.get;
|
|
480
|
-
N.prototype.getKeys=N.prototype.ja;N.prototype.getProperties=N.prototype.Y;N.prototype.set=N.prototype.set;N.prototype.setProperties=N.prototype.N;N.prototype.unset=N.prototype.la;N.prototype.changed=N.prototype.u;N.prototype.dispatchEvent=N.prototype.c;N.prototype.getRevision=N.prototype.ba;N.prototype.on=N.prototype.ea;N.prototype.once=N.prototype.once;N.prototype.un=N.prototype.fa;N.prototype.unByKey=N.prototype.ga;P.prototype.getFirstCoordinate=P.prototype.Sa;P.prototype.getLastCoordinate=P.prototype.Ta;
|
|
481
|
-
P.prototype.getLayout=P.prototype.Ua;P.prototype.rotate=P.prototype.rotate;P.prototype.scale=P.prototype.scale;P.prototype.getClosestPoint=P.prototype.Ka;P.prototype.intersectsCoordinate=P.prototype.Ea;P.prototype.getExtent=P.prototype.C;P.prototype.simplify=P.prototype.Na;P.prototype.transform=P.prototype.Ha;P.prototype.get=P.prototype.get;P.prototype.getKeys=P.prototype.ja;P.prototype.getProperties=P.prototype.Y;P.prototype.set=P.prototype.set;P.prototype.setProperties=P.prototype.N;
|
|
482
|
-
P.prototype.unset=P.prototype.la;P.prototype.changed=P.prototype.u;P.prototype.dispatchEvent=P.prototype.c;P.prototype.getRevision=P.prototype.ba;P.prototype.on=P.prototype.ea;P.prototype.once=P.prototype.once;P.prototype.un=P.prototype.fa;P.prototype.unByKey=P.prototype.ga;Q.prototype.getFirstCoordinate=Q.prototype.Sa;Q.prototype.getLastCoordinate=Q.prototype.Ta;Q.prototype.getLayout=Q.prototype.Ua;Q.prototype.rotate=Q.prototype.rotate;Q.prototype.scale=Q.prototype.scale;
|
|
483
|
-
Q.prototype.getClosestPoint=Q.prototype.Ka;Q.prototype.intersectsCoordinate=Q.prototype.Ea;Q.prototype.getExtent=Q.prototype.C;Q.prototype.simplify=Q.prototype.Na;Q.prototype.transform=Q.prototype.Ha;Q.prototype.get=Q.prototype.get;Q.prototype.getKeys=Q.prototype.ja;Q.prototype.getProperties=Q.prototype.Y;Q.prototype.set=Q.prototype.set;Q.prototype.setProperties=Q.prototype.N;Q.prototype.unset=Q.prototype.la;Q.prototype.changed=Q.prototype.u;Q.prototype.dispatchEvent=Q.prototype.c;
|
|
484
|
-
Q.prototype.getRevision=Q.prototype.ba;Q.prototype.on=Q.prototype.ea;Q.prototype.once=Q.prototype.once;Q.prototype.un=Q.prototype.fa;Q.prototype.unByKey=Q.prototype.ga;C.prototype.getFirstCoordinate=C.prototype.Sa;C.prototype.getLastCoordinate=C.prototype.Ta;C.prototype.getLayout=C.prototype.Ua;C.prototype.rotate=C.prototype.rotate;C.prototype.scale=C.prototype.scale;C.prototype.getClosestPoint=C.prototype.Ka;C.prototype.intersectsCoordinate=C.prototype.Ea;C.prototype.getExtent=C.prototype.C;
|
|
485
|
-
C.prototype.simplify=C.prototype.Na;C.prototype.transform=C.prototype.Ha;C.prototype.get=C.prototype.get;C.prototype.getKeys=C.prototype.ja;C.prototype.getProperties=C.prototype.Y;C.prototype.set=C.prototype.set;C.prototype.setProperties=C.prototype.N;C.prototype.unset=C.prototype.la;C.prototype.changed=C.prototype.u;C.prototype.dispatchEvent=C.prototype.c;C.prototype.getRevision=C.prototype.ba;C.prototype.on=C.prototype.ea;C.prototype.once=C.prototype.once;C.prototype.un=C.prototype.fa;
|
|
486
|
-
C.prototype.unByKey=C.prototype.ga;D.prototype.getFirstCoordinate=D.prototype.Sa;D.prototype.getLastCoordinate=D.prototype.Ta;D.prototype.getLayout=D.prototype.Ua;D.prototype.rotate=D.prototype.rotate;D.prototype.scale=D.prototype.scale;D.prototype.getClosestPoint=D.prototype.Ka;D.prototype.intersectsCoordinate=D.prototype.Ea;D.prototype.getExtent=D.prototype.C;D.prototype.simplify=D.prototype.Na;D.prototype.transform=D.prototype.Ha;D.prototype.get=D.prototype.get;D.prototype.getKeys=D.prototype.ja;
|
|
487
|
-
D.prototype.getProperties=D.prototype.Y;D.prototype.set=D.prototype.set;D.prototype.setProperties=D.prototype.N;D.prototype.unset=D.prototype.la;D.prototype.changed=D.prototype.u;D.prototype.dispatchEvent=D.prototype.c;D.prototype.getRevision=D.prototype.ba;D.prototype.on=D.prototype.ea;D.prototype.once=D.prototype.once;D.prototype.un=D.prototype.fa;D.prototype.unByKey=D.prototype.ga;r("ol.interaction.Draw",sn);sn.prototype.removeLastPoint=sn.prototype.wi;sn.prototype.finishDrawing=sn.prototype.Tb;
|
|
488
|
-
sn.prototype.extend=sn.prototype.Hh;sn.prototype.getActive=sn.prototype.ha;sn.prototype.getMap=sn.prototype.eb;sn.prototype.setActive=sn.prototype.Da;sn.prototype.get=sn.prototype.get;sn.prototype.getKeys=sn.prototype.ja;sn.prototype.getProperties=sn.prototype.Y;sn.prototype.set=sn.prototype.set;sn.prototype.setProperties=sn.prototype.N;sn.prototype.unset=sn.prototype.la;sn.prototype.changed=sn.prototype.u;sn.prototype.dispatchEvent=sn.prototype.c;sn.prototype.getRevision=sn.prototype.ba;
|
|
489
|
-
sn.prototype.on=sn.prototype.ea;sn.prototype.once=sn.prototype.once;sn.prototype.un=sn.prototype.fa;sn.prototype.unByKey=sn.prototype.ga;r("ol.interaction.Pointer",gf);gf.prototype.getActive=gf.prototype.ha;gf.prototype.getMap=gf.prototype.eb;gf.prototype.setActive=gf.prototype.Da;gf.prototype.get=gf.prototype.get;gf.prototype.getKeys=gf.prototype.ja;gf.prototype.getProperties=gf.prototype.Y;gf.prototype.set=gf.prototype.set;gf.prototype.setProperties=gf.prototype.N;gf.prototype.unset=gf.prototype.la;
|
|
490
|
-
gf.prototype.changed=gf.prototype.u;gf.prototype.dispatchEvent=gf.prototype.c;gf.prototype.getRevision=gf.prototype.ba;gf.prototype.on=gf.prototype.ea;gf.prototype.once=gf.prototype.once;gf.prototype.un=gf.prototype.fa;gf.prototype.unByKey=gf.prototype.ga;r("ol.interaction.defaults",Vf);r("ol.layer.Group",Yf);Yf.prototype.getLayers=Yf.prototype.Ab;Yf.prototype.setLayers=Yf.prototype.Je;Yf.prototype.getExtent=Yf.prototype.C;Yf.prototype.getMaxResolution=Yf.prototype.zc;
|
|
491
|
-
Yf.prototype.getMinResolution=Yf.prototype.Ac;Yf.prototype.getOpacity=Yf.prototype.Bc;Yf.prototype.getVisible=Yf.prototype.wb;Yf.prototype.getZIndex=Yf.prototype.na;Yf.prototype.setExtent=Yf.prototype.Bd;Yf.prototype.setMaxResolution=Yf.prototype.Td;Yf.prototype.setMinResolution=Yf.prototype.Ud;Yf.prototype.setOpacity=Yf.prototype.Cd;Yf.prototype.setVisible=Yf.prototype.Dd;Yf.prototype.setZIndex=Yf.prototype.$b;Yf.prototype.get=Yf.prototype.get;Yf.prototype.getKeys=Yf.prototype.ja;
|
|
492
|
-
Yf.prototype.getProperties=Yf.prototype.Y;Yf.prototype.set=Yf.prototype.set;Yf.prototype.setProperties=Yf.prototype.N;Yf.prototype.unset=Yf.prototype.la;Yf.prototype.changed=Yf.prototype.u;Yf.prototype.dispatchEvent=Yf.prototype.c;Yf.prototype.getRevision=Yf.prototype.ba;Yf.prototype.on=Yf.prototype.ea;Yf.prototype.once=Yf.prototype.once;Yf.prototype.un=Yf.prototype.fa;Yf.prototype.unByKey=Yf.prototype.ga;r("ol.layer.Tile",Y);Y.prototype.getPreload=Y.prototype.Be;Y.prototype.getSource=Y.prototype.Aa;
|
|
493
|
-
Y.prototype.setPreload=Y.prototype.Ke;Y.prototype.getUseInterimTilesOnError=Y.prototype.De;Y.prototype.setUseInterimTilesOnError=Y.prototype.Le;Y.prototype.setMap=Y.prototype.setMap;Y.prototype.setSource=Y.prototype.Xd;Y.prototype.getExtent=Y.prototype.C;Y.prototype.getMaxResolution=Y.prototype.zc;Y.prototype.getMinResolution=Y.prototype.Ac;Y.prototype.getOpacity=Y.prototype.Bc;Y.prototype.getVisible=Y.prototype.wb;Y.prototype.getZIndex=Y.prototype.na;Y.prototype.setExtent=Y.prototype.Bd;
|
|
494
|
-
Y.prototype.setMaxResolution=Y.prototype.Td;Y.prototype.setMinResolution=Y.prototype.Ud;Y.prototype.setOpacity=Y.prototype.Cd;Y.prototype.setVisible=Y.prototype.Dd;Y.prototype.setZIndex=Y.prototype.$b;Y.prototype.get=Y.prototype.get;Y.prototype.getKeys=Y.prototype.ja;Y.prototype.getProperties=Y.prototype.Y;Y.prototype.set=Y.prototype.set;Y.prototype.setProperties=Y.prototype.N;Y.prototype.unset=Y.prototype.la;Y.prototype.changed=Y.prototype.u;Y.prototype.dispatchEvent=Y.prototype.c;
|
|
495
|
-
Y.prototype.getRevision=Y.prototype.ba;Y.prototype.on=Y.prototype.ea;Y.prototype.once=Y.prototype.once;Y.prototype.un=Y.prototype.fa;Y.prototype.unByKey=Y.prototype.ga;r("ol.layer.Vector",W);W.prototype.getSource=W.prototype.Aa;W.prototype.getStyle=W.prototype.A;W.prototype.getStyleFunction=W.prototype.D;W.prototype.setStyle=W.prototype.B;W.prototype.setMap=W.prototype.setMap;W.prototype.setSource=W.prototype.Xd;W.prototype.getExtent=W.prototype.C;W.prototype.getMaxResolution=W.prototype.zc;
|
|
496
|
-
W.prototype.getMinResolution=W.prototype.Ac;W.prototype.getOpacity=W.prototype.Bc;W.prototype.getVisible=W.prototype.wb;W.prototype.getZIndex=W.prototype.na;W.prototype.setExtent=W.prototype.Bd;W.prototype.setMaxResolution=W.prototype.Td;W.prototype.setMinResolution=W.prototype.Ud;W.prototype.setOpacity=W.prototype.Cd;W.prototype.setVisible=W.prototype.Dd;W.prototype.setZIndex=W.prototype.$b;W.prototype.get=W.prototype.get;W.prototype.getKeys=W.prototype.ja;W.prototype.getProperties=W.prototype.Y;
|
|
497
|
-
W.prototype.set=W.prototype.set;W.prototype.setProperties=W.prototype.N;W.prototype.unset=W.prototype.la;W.prototype.changed=W.prototype.u;W.prototype.dispatchEvent=W.prototype.c;W.prototype.getRevision=W.prototype.ba;W.prototype.on=W.prototype.ea;W.prototype.once=W.prototype.once;W.prototype.un=W.prototype.fa;W.prototype.unByKey=W.prototype.ga;r("ol.proj.METERS_PER_UNIT",sb);r("ol.proj.setProj4",function(a){ub=a});r("ol.proj.getPointResolution",Ab);r("ol.proj.addEquivalentProjections",Gb);
|
|
498
|
-
r("ol.proj.addProjection",Ob);r("ol.proj.addCoordinateTransforms",Qb);r("ol.proj.fromLonLat",function(a,b){return Wb(a,"EPSG:4326",void 0!==b?b:"EPSG:3857")});r("ol.proj.toLonLat",function(a,b){return Wb(a,void 0!==b?b:"EPSG:3857","EPSG:4326")});r("ol.proj.get",Fb);r("ol.proj.equivalent",Tb);r("ol.proj.getTransform",Ub);r("ol.proj.transform",Wb);r("ol.proj.transformExtent",Xb);r("ol.proj.common.add",hg);r("ol.proj.Projection",vb);vb.prototype.getCode=vb.prototype.Wf;vb.prototype.getExtent=vb.prototype.C;
|
|
499
|
-
vb.prototype.getUnits=vb.prototype.kb;vb.prototype.getMetersPerUnit=vb.prototype.ib;vb.prototype.getWorldExtent=vb.prototype.Cg;vb.prototype.isGlobal=vb.prototype.Ug;vb.prototype.setGlobal=vb.prototype.Fi;vb.prototype.setExtent=vb.prototype.Jh;vb.prototype.setWorldExtent=vb.prototype.Si;vb.prototype.setGetPointResolution=vb.prototype.Ei;r("ol.proj.Units.METERS_PER_UNIT",sb);yg.prototype.drawCircle=yg.prototype.Sb;yg.prototype.setStyle=yg.prototype.Ed;yg.prototype.drawGeometry=yg.prototype.kc;
|
|
500
|
-
yg.prototype.drawFeature=yg.prototype.te;r("ol.source.Vector",X);X.prototype.addFeature=X.prototype.cd;X.prototype.addFeatures=X.prototype.dd;X.prototype.clear=X.prototype.clear;X.prototype.forEachFeature=X.prototype.Rf;X.prototype.forEachFeatureInExtent=X.prototype.Ub;X.prototype.forEachFeatureIntersectingExtent=X.prototype.Tf;X.prototype.getFeaturesCollection=X.prototype.ag;X.prototype.getFeatures=X.prototype.Lh;X.prototype.getFeaturesAtCoordinate=X.prototype.$f;
|
|
501
|
-
X.prototype.getFeaturesInExtent=X.prototype.bg;X.prototype.getClosestFeatureToCoordinate=X.prototype.Vf;X.prototype.getExtent=X.prototype.C;X.prototype.getFeatureById=X.prototype.Zf;X.prototype.getFormat=X.prototype.Mh;X.prototype.getUrl=X.prototype.Nh;X.prototype.removeFeature=X.prototype.Ye;X.prototype.getAttributions=X.prototype.Me;X.prototype.getLogo=X.prototype.Ae;X.prototype.getProjection=X.prototype.Ne;X.prototype.getState=X.prototype.ia;X.prototype.refresh=X.prototype.Fd;
|
|
502
|
-
X.prototype.setAttributions=X.prototype.bf;X.prototype.get=X.prototype.get;X.prototype.getKeys=X.prototype.ja;X.prototype.getProperties=X.prototype.Y;X.prototype.set=X.prototype.set;X.prototype.setProperties=X.prototype.N;X.prototype.unset=X.prototype.la;X.prototype.changed=X.prototype.u;X.prototype.dispatchEvent=X.prototype.c;X.prototype.getRevision=X.prototype.ba;X.prototype.on=X.prototype.ea;X.prototype.once=X.prototype.once;X.prototype.un=X.prototype.fa;X.prototype.unByKey=X.prototype.ga;
|
|
503
|
-
r("ol.source.XYZ",Z);Z.prototype.setRenderReprojectionEdges=Z.prototype.Mi;Z.prototype.setTileGridForProjection=Z.prototype.Oi;Z.prototype.getTileLoadFunction=Z.prototype.xg;Z.prototype.getTileUrlFunction=Z.prototype.zg;Z.prototype.getUrls=Z.prototype.Ag;Z.prototype.setTileLoadFunction=Z.prototype.Pi;Z.prototype.setTileUrlFunction=Z.prototype.Pc;Z.prototype.setUrl=Z.prototype.Pe;Z.prototype.setUrls=Z.prototype.hf;Z.prototype.getTileGrid=Z.prototype.wg;Z.prototype.refresh=Z.prototype.Fd;
|
|
504
|
-
Z.prototype.getAttributions=Z.prototype.Me;Z.prototype.getLogo=Z.prototype.Ae;Z.prototype.getProjection=Z.prototype.Ne;Z.prototype.getState=Z.prototype.ia;Z.prototype.setAttributions=Z.prototype.bf;Z.prototype.get=Z.prototype.get;Z.prototype.getKeys=Z.prototype.ja;Z.prototype.getProperties=Z.prototype.Y;Z.prototype.set=Z.prototype.set;Z.prototype.setProperties=Z.prototype.N;Z.prototype.unset=Z.prototype.la;Z.prototype.changed=Z.prototype.u;Z.prototype.dispatchEvent=Z.prototype.c;
|
|
505
|
-
Z.prototype.getRevision=Z.prototype.ba;Z.prototype.on=Z.prototype.ea;Z.prototype.once=Z.prototype.once;Z.prototype.un=Z.prototype.fa;Z.prototype.unByKey=Z.prototype.ga;r("ol.style.AtlasManager",ko);r("ol.style.Circle",eh);eh.prototype.setRadius=eh.prototype.Vd;r("ol.style.Fill",fh);fh.prototype.clone=fh.prototype.clone;fh.prototype.getColor=fh.prototype.f;fh.prototype.setColor=fh.prototype.b;r("ol.style.Icon",Ti);Ti.prototype.clone=Ti.prototype.clone;Ti.prototype.getAnchor=Ti.prototype.tb;
|
|
506
|
-
Ti.prototype.getColor=Ti.prototype.Oh;Ti.prototype.getImage=Ti.prototype.X;Ti.prototype.getOrigin=Ti.prototype.Bb;Ti.prototype.getSrc=Ti.prototype.Ph;Ti.prototype.getSize=Ti.prototype.ab;Ti.prototype.load=Ti.prototype.load;r("ol.style.Image",bh);bh.prototype.getOpacity=bh.prototype.Ec;bh.prototype.getRotateWithView=bh.prototype.Fc;bh.prototype.getRotation=bh.prototype.Gc;bh.prototype.getScale=bh.prototype.Hc;bh.prototype.getSnapToPixel=bh.prototype.uc;bh.prototype.setOpacity=bh.prototype.Cb;
|
|
507
|
-
bh.prototype.setRotation=bh.prototype.Ic;bh.prototype.setScale=bh.prototype.Db;r("ol.style.RegularShape",ch);ch.prototype.clone=ch.prototype.clone;ch.prototype.getAnchor=ch.prototype.tb;ch.prototype.getAngle=ch.prototype.Se;ch.prototype.getFill=ch.prototype.aa;ch.prototype.getImage=ch.prototype.X;ch.prototype.getOrigin=ch.prototype.Bb;ch.prototype.getPoints=ch.prototype.Te;ch.prototype.getRadius=ch.prototype.Ue;ch.prototype.getRadius2=ch.prototype.Ce;ch.prototype.getSize=ch.prototype.ab;
|
|
508
|
-
ch.prototype.getStroke=ch.prototype.ca;r("ol.style.Stroke",Ng);Ng.prototype.clone=Ng.prototype.clone;Ng.prototype.getColor=Ng.prototype.Qh;Ng.prototype.getLineCap=Ng.prototype.ig;Ng.prototype.getLineDash=Ng.prototype.Rh;Ng.prototype.getLineDashOffset=Ng.prototype.jg;Ng.prototype.getLineJoin=Ng.prototype.kg;Ng.prototype.getMiterLimit=Ng.prototype.ng;Ng.prototype.getWidth=Ng.prototype.Sh;Ng.prototype.setColor=Ng.prototype.Th;Ng.prototype.setLineCap=Ng.prototype.Ii;Ng.prototype.setLineDash=Ng.prototype.setLineDash;
|
|
509
|
-
Ng.prototype.setLineDashOffset=Ng.prototype.Ji;Ng.prototype.setLineJoin=Ng.prototype.Ki;Ng.prototype.setMiterLimit=Ng.prototype.Li;Ng.prototype.setWidth=Ng.prototype.Ri;r("ol.style.Style",gh);gh.prototype.clone=gh.prototype.clone;gh.prototype.getGeometry=gh.prototype.L;gh.prototype.getGeometryFunction=gh.prototype.dg;gh.prototype.getFill=gh.prototype.aa;gh.prototype.setFill=gh.prototype.Lc;gh.prototype.getImage=gh.prototype.X;gh.prototype.setImage=gh.prototype.Gi;gh.prototype.getStroke=gh.prototype.ca;
|
|
510
|
-
gh.prototype.setStroke=gh.prototype.Nc;gh.prototype.getText=gh.prototype.ma;gh.prototype.setText=gh.prototype.Oc;gh.prototype.getZIndex=gh.prototype.na;gh.prototype.setGeometry=gh.prototype.Ba;gh.prototype.setZIndex=gh.prototype.$b;r("ol.style.Text",Ui);Ui.prototype.clone=Ui.prototype.clone;Ui.prototype.getFont=Ui.prototype.cg;Ui.prototype.getOffsetX=Ui.prototype.og;Ui.prototype.getOffsetY=Ui.prototype.pg;Ui.prototype.getFill=Ui.prototype.aa;Ui.prototype.getRotateWithView=Ui.prototype.Uh;
|
|
511
|
-
Ui.prototype.getRotation=Ui.prototype.Vh;Ui.prototype.getScale=Ui.prototype.Wh;Ui.prototype.getStroke=Ui.prototype.ca;Ui.prototype.getText=Ui.prototype.ma;Ui.prototype.getTextAlign=Ui.prototype.ug;Ui.prototype.getTextBaseline=Ui.prototype.vg;Ui.prototype.setFont=Ui.prototype.cf;Ui.prototype.setOffsetX=Ui.prototype.ef;Ui.prototype.setOffsetY=Ui.prototype.ff;Ui.prototype.setFill=Ui.prototype.Lc;Ui.prototype.setRotation=Ui.prototype.Xh;Ui.prototype.setScale=Ui.prototype.Ve;Ui.prototype.setStroke=Ui.prototype.Nc;
|
|
512
|
-
Ui.prototype.setText=Ui.prototype.Oc;Ui.prototype.setTextAlign=Ui.prototype.gf;Ui.prototype.setTextBaseline=Ui.prototype.Ni;ch.prototype.getOpacity=ch.prototype.Ec;ch.prototype.getRotateWithView=ch.prototype.Fc;ch.prototype.getRotation=ch.prototype.Gc;ch.prototype.getScale=ch.prototype.Hc;ch.prototype.getSnapToPixel=ch.prototype.uc;ch.prototype.setOpacity=ch.prototype.Cb;ch.prototype.setRotation=ch.prototype.Ic;ch.prototype.setScale=ch.prototype.Db;eh.prototype.clone=eh.prototype.clone;
|
|
513
|
-
eh.prototype.getAngle=eh.prototype.Se;eh.prototype.getFill=eh.prototype.aa;eh.prototype.getPoints=eh.prototype.Te;eh.prototype.getRadius=eh.prototype.Ue;eh.prototype.getRadius2=eh.prototype.Ce;eh.prototype.getStroke=eh.prototype.ca;eh.prototype.getOpacity=eh.prototype.Ec;eh.prototype.getRotateWithView=eh.prototype.Fc;eh.prototype.getRotation=eh.prototype.Gc;eh.prototype.getScale=eh.prototype.Hc;eh.prototype.getSnapToPixel=eh.prototype.uc;eh.prototype.setOpacity=eh.prototype.Cb;
|
|
514
|
-
eh.prototype.setRotation=eh.prototype.Ic;eh.prototype.setScale=eh.prototype.Db;Ti.prototype.getOpacity=Ti.prototype.Ec;Ti.prototype.getRotateWithView=Ti.prototype.Fc;Ti.prototype.getRotation=Ti.prototype.Gc;Ti.prototype.getScale=Ti.prototype.Hc;Ti.prototype.getSnapToPixel=Ti.prototype.uc;Ti.prototype.setOpacity=Ti.prototype.Cb;Ti.prototype.setRotation=Ti.prototype.Ic;Ti.prototype.setScale=Ti.prototype.Db;
|
|
515
|
-
return OPENLAYERS.ol;
|
|
516
|
-
}));
|
|
517
|
-
|