@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/embed.js
DELETED
|
@@ -1,376 +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 l,ba=this;function q(a,b){var c=OPENLAYERS,d=a.split("."),c=c||ba;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 ca(a,b){return a>b?1:a<b?-1:0}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 fa(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 ia(a){var b=ka,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 la(a,b){var c=b||ca;return a.every(function(b,e){if(!e)return!0;var d=c(a[e-1],b);return!(0<d||0===d)})};function t(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a}function oa(){}function pa(a){return a.Mf||(a.Mf=++qa)}var qa=0;function ra(a){this.message="Assertion failed. See https://openlayers.org/en/v8.0.0/doc/errors/#"+a+" for details.";this.code=a;this.name="AssertionError"}t(ra,Error);function u(a,b){if(!a)throw new ra(b);};function ta(a,b,c,d){this.I=a;this.K=b;this.L=c;this.N=d}function va(a,b,c){return a.I<=b&&b<=a.K&&a.L<=c&&c<=a.N}function xa(a,b){return a.I<=b.K&&a.K>=b.I&&a.L<=b.N&&a.N>=b.L};function ya(a,b,c){return Math.min(Math.max(a,b),c)}var za=function(){var a;"cosh"in Math?a=Math.cosh:a=function(a){a=Math.exp(a);return(a+1/a)/2};return a}();function Aa(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 Ea(a,b,c){return a+c*(b-a)};function Fa(a,b){if(Array.isArray(a))return a;void 0===b?b=[a,a]:b[0]=b[1]=a;return b};function Ga(a){for(var b=Ha(),c=0,d=a.length;c<d;++c)Ja(b,a[c]);return b}function Ka(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 La(a,b){return Ma(a,b[0],b[1])}function Oa(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}function Ma(a,b,c){return a[0]<=b&&b<=a[2]&&a[1]<=c&&c<=a[3]}function Pa(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}
|
|
16
|
-
function Ha(){return[Infinity,Infinity,-Infinity,-Infinity]}function Qa(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 Ra(a){return Qa(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]}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 Ja(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])}
|
|
17
|
-
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}function Xa(a,b,c){var d;return(d=b.call(c,bb(a)))||(d=b.call(c,cb(a)))||(d=b.call(c,db(a)))?d:(d=b.call(c,eb(a)))?d:!1}function fb(a){var b=0;gb(a)||(b=hb(a)*ib(a));return b}function bb(a){return[a[0],a[1]]}function cb(a){return[a[2],a[1]]}function jb(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
|
|
18
|
-
function lb(a,b,c,d,e){var f=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);var g=Math.sin(c);c=f*b;f*=g;b*=d;var h=d*g,k=a[0],m=a[1];a=k-c+h;d=k-c-h;g=k+c-h;c=k+c+h;var h=m-f-b,k=m-f+b,n=m+f+b,f=m+f-b;return Qa(Math.min(a,d,g,c),Math.min(h,k,n,f),Math.max(a,d,g,c),Math.max(h,k,n,f),e)}function ib(a){return a[3]-a[1]}function mb(a,b,c){c=c?c:Ha();nb(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 eb(a){return[a[0],a[3]]}
|
|
19
|
-
function db(a){return[a[2],a[3]]}function hb(a){return a[2]-a[0]}function nb(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function gb(a){return a[2]<a[0]||a[3]<a[1]}function ob(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 Qa(b,a,d,e,c)};var pb="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 qb(a){for(var b in a)delete a[b]}function rb(a){for(var b in a)return!1;return!b};/*
|
|
20
|
-
|
|
21
|
-
Latitude/longitude spherical geodesy formulae taken from
|
|
22
|
-
http://www.movable-type.co.uk/scripts/latlong.html
|
|
23
|
-
Licensed under CC-BY-3.0.
|
|
24
|
-
*/
|
|
25
|
-
function sb(a){this.radius=a}function tb(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*ub.radius*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}
|
|
26
|
-
sb.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 ub=new sb(6370997);var vb={};vb.degrees=2*Math.PI*ub.radius/360;vb.ft=.3048;vb.m=1;vb["us-ft"]=1200/3937;function wb(a){this.a=a.code;this.b=a.units;this.o=void 0!==a.extent?a.extent:null;this.l=void 0!==a.worldExtent?a.worldExtent:null;this.c=void 0!==a.global?a.global:!1;this.g=!(!this.c||!this.o);this.j=a.getPointResolution;this.i=null;this.V=a.metersPerUnit}l=wb.prototype;l.pe=function(){return this.a};l.A=function(){return this.o};l.De=function(){return this.b};l.$a=function(){return this.V||vb[this.b]};l.Fe=function(){return this.l};l.Xe=function(){return this.c};
|
|
27
|
-
l.ig=function(a){this.c=a;this.g=!(!a||!this.o)};l.Kf=function(a){this.o=a;this.g=!(!this.c||!a)};l.og=function(a){this.l=a};l.hg=function(a){this.j=a};var xb={};var yb={};function Gb(a,b,c){a=a.a;b=b.a;a in yb||(yb[a]={});yb[a][b]=c};function Hb(a,b,c){var d=a.j;d?b=d(b,c):"degrees"!=a.b&&(d=Ib(a,Jb("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=(tb(b.slice(0,2),b.slice(2,4))+tb(b.slice(4,6),b.slice(6,8)))/2,a=a.$a(),void 0!==a&&(b/=a));return b}function Kb(a){Lb(a);a.forEach(function(b){a.forEach(function(a){b!==a&&Gb(b,a,Mb)})})}function Nb(){var a=Ob,b=Pb,c=Qb;Rb.forEach(function(d){a.forEach(function(a){Gb(d,a,b);Gb(a,d,c)})})}function Sb(a){xb[a.a]=a;Gb(a,a,Mb)}
|
|
28
|
-
function Lb(a){var b=[];a.forEach(function(a){b.push(Sb(a))})}function Tb(a){return a?"string"===typeof a?Jb(a):a:Jb("EPSG:3857")}function Ub(a){return function(b,c,d){var e=b.length;d=void 0!==d?d:2;c=void 0!==c?c:Array(e);var f,g;for(g=0;g<e;g+=d)for(f=a([b[g],b[g+1]]),c[g]=f[0],c[g+1]=f[1],f=d-1;2<=f;--f)c[g+f]=b[g+f];return c}}function Jb(a){var b=null;a instanceof wb?b=a:"string"===typeof a&&(b=xb[a]||null);return b}
|
|
29
|
-
function Vb(a,b){if(a===b)return!0;var c=a.b===b.b;return a.a===b.a?c:Ib(a,b)===Mb&&c}function Wb(a,b){var c=Jb(a),d=Jb(b);return Ib(c,d)}function Ib(a,b){var c;c=a.a;var d=b.a,e;c in yb&&d in yb[c]&&(e=yb[c][d]);(c=e)||(c=Xb);return c}function Xb(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 Mb(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 Yb(a,b,c){return Wb(b,c)(a,void 0,a.length)}
|
|
30
|
-
function bc(a,b,c){b=Wb(b,c);return ob(a,b)};function cc(a){this.minZoom=void 0!==a.minZoom?a.minZoom:0;this.a=a.resolutions;u(la(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.g=null;void 0!==a.origins&&(this.g=a.origins,u(this.g.length==this.a.length,20));var b=a.extent;void 0===b||this.c||this.g||(this.c=eb(b));u(!this.c&&this.g||this.c&&!this.g,18);this.o=null;void 0!==a.tileSizes&&(this.o=a.tileSizes,u(this.o.length==this.a.length,19));this.i=void 0!==a.tileSize?a.tileSize:
|
|
31
|
-
this.o?null:256;u(!this.i&&this.o||this.i&&!this.o,22);this.l=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 ta(Math.min(0,a[0]),Math.max(a[0]-1,-1),Math.min(0,a[1]),Math.max(a[1]-1,-1))},this):b&&dc(this,b)}var ec=[0,0,0];cc.prototype.A=function(){return this.l};function fc(a,b,c,d){gc(a,b[0],b[1],c,!1,ec);var e=ec[1],f=ec[2];gc(a,b[2],b[3],c,!0,ec);a=ec[1];b=ec[2];void 0!==d?(d.I=e,d.K=a,d.L=f,d.N=b):d=new ta(e,a,f,b);return d}
|
|
32
|
-
function hc(a,b,c,d){return fc(a,b,a.a[c],d)}function ic(a,b){var c=a.c?a.c:a.g[b[0]],d=a.a[b[0]],e=Fa(jc(a,b[0]),a.j);return[c[0]+(b[1]+.5)*e[0]*d,c[1]+(b[2]+.5)*e[1]*d]}function kc(a,b,c){var d=a.c?a.c:a.g[b[0]],e=a.a[b[0]];a=Fa(jc(a,b[0]),a.j);var f=d[0]+b[1]*a[0]*e;b=d[1]+b[2]*a[1]*e;return Qa(f,b,f+a[0]*e,b+a[1]*e,c)}
|
|
33
|
-
function gc(a,b,c,d,e,f){var g=lc(a,d),h=d/a.a[g],k=a.c?a.c:a.g[g];a=Fa(jc(a,g),a.j);b=h*Math.floor((b-k[0])/d+(e?.5:0))/a[0];c=h*Math.floor((c-k[1])/d+(e?0:.5))/a[1];e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));e=b;void 0!==f?(f[0]=g,f[1]=e,f[2]=c):f=[g,e,c];return f}function jc(a,b){return a.i?a.i:a.o[b]}function lc(a,b,c){return ya(ea(a.a,b,c||0),a.minZoom,a.maxZoom)}function dc(a,b){for(var c=a.a.length,d=Array(c),e=a.minZoom;e<c;++e)d[e]=hc(a,b,e);a.b=d};function mc(a){var b=a.i;if(!b){var b=nc(a),c=oc(b,void 0,void 0),b=new cc({extent:b,origin:eb(b),resolutions:c,tileSize:void 0});a.i=b}return b}function oc(a,b,c){b=void 0!==b?b:42;var d=ib(a);a=hb(a);c=Fa(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 nc(a){a=Jb(a);var b=a.A();b||(a=180*vb.degrees/a.$a(),b=Qa(-a,-a,a,a));return b};function pc(a){this.c=a.html;this.a=a.tileRanges?a.tileRanges:null};function qc(a){return function(b){if(b)return[ya(b[0],a[0],a[2]),ya(b[1],a[1],a[3])]}}function rc(a){return a};function sc(a){function b(b){var c=a.listener,e=a.Dc||a.target;a.Gc&&tc(a);return c.call(e,b)}return a.Ec=b}function uc(a,b,c,d){for(var e,f=0,g=a.length;f<g;++f)if(e=a[f],e.listener===b&&e.Dc===c)return d&&(e.deleteIndex=f),e}function vc(a,b){var c=a.va;return c?c[b]:void 0}function wc(a){var b=a.va;b||(b=a.va={});return b}
|
|
34
|
-
function Ec(a,b){var c=vc(a,b);if(c){for(var d=0,e=c.length;d<e;++d)a.removeEventListener(b,c[d].Ec),qb(c[d]);c.length=0;if(c=a.va)delete c[b],Object.keys(c).length||delete a.va}}function v(a,b,c,d,e){var f=wc(a),g=f[b];g||(g=f[b]=[]);(f=uc(g,c,d,!1))?e||(f.Gc=!1):(f={Dc:d,Gc:!!e,listener:c,target:a,type:b},a.addEventListener(b,sc(f)),g.push(f));return f}function Fc(a,b,c,d){(a=vc(a,b))&&(c=uc(a,c,d,!0))&&tc(c)}
|
|
35
|
-
function tc(a){if(a&&a.target){a.target.removeEventListener(a.type,a.Ec);var b=vc(a.target,a.type);if(b){var c="deleteIndex"in a?a.deleteIndex:b.indexOf(a);-1!==c&&b.splice(c,1);b.length||Ec(a.target,a.type)}qb(a)}};function Gc(){}Gc.prototype.ib=!1;function Hc(a){a.ib||(a.ib=!0,a.$())}Gc.prototype.$=oa;function Ic(a){this.type=a;this.target=null}Ic.prototype.preventDefault=Ic.prototype.stopPropagation=function(){this.Uf=!0};function Jc(a){a.stopPropagation()};function Kc(){this.sa={};this.pa={};this.V={}}t(Kc,Gc);Kc.prototype.addEventListener=function(a,b){var c=this.V[a];c||(c=this.V[a]=[]);-1===c.indexOf(b)&&c.push(b)};
|
|
36
|
-
Kc.prototype.c=function(a){var b="string"===typeof a?new Ic(a):a;a=b.type;b.target=this;var c=this.V[a],d;if(c){a in this.pa||(this.pa[a]=0,this.sa[a]=0);++this.pa[a];for(var e=0,f=c.length;e<f;++e)if(!1===c[e].call(this,b)||b.Uf){d=!1;break}--this.pa[a];if(!this.pa[a]){b=this.sa[a];for(delete this.sa[a];b--;)this.removeEventListener(a,oa);delete this.pa[a]}return d}};Kc.prototype.$=function(){var a=wc(this),b;for(b in a)Ec(this,b)};function Lc(a,b){return b?b in a.V:0<Object.keys(a.V).length}
|
|
37
|
-
Kc.prototype.removeEventListener=function(a,b){var c=this.V[a];if(c){var d=c.indexOf(b);a in this.sa?(c[d]=oa,++this.sa[a]):(c.splice(d,1),c.length||delete this.V[a])}};function Mc(){Kc.call(this);this.g=0}t(Mc,Kc);l=Mc.prototype;l.s=function(){++this.g;this.c("change")};l.ea=function(){return this.g};l.ga=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=v(this,a[f],b,c);return e}return v(this,a,b,c)};l.once=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=v(this,a[f],b,c,!0);return e}return v(this,a,b,c,!0)};
|
|
38
|
-
l.ha=function(a,b,c){if(Array.isArray(a))for(var d=0,e=a.length;d<e;++d)Fc(this,a[d],b,c);else Fc(this,a,b,c)};l.ia=function(a){if(Array.isArray(a))for(var b=0,c=a.length;b<c;++b)tc(a[b]);else tc(a)};function Nc(a){Mc.call(this);pa(this);this.o={};void 0!==a&&this.O(a)}t(Nc,Mc);var Oc={};function Pc(a){return Oc.hasOwnProperty(a)?Oc[a]:Oc[a]="change:"+a}l=Nc.prototype;l.get=function(a){var b;this.o.hasOwnProperty(a)&&(b=this.o[a]);return b};l.ja=function(){return Object.keys(this.o)};l.Y=function(){return pb({},this.o)};function Qc(a,b,c){var d;d=Pc(b);a.c(new Rc(d,b,c));a.c(new Rc("propertychange",b,c))}l.set=function(a,b,c){c?this.o[a]=b:(c=this.o[a],this.o[a]=b,c!==b&&Qc(this,a,c))};
|
|
39
|
-
l.O=function(a,b){for(var c in a)this.set(c,a[c],b)};l.la=function(a,b){if(a in this.o){var c=this.o[a];delete this.o[a];b||Qc(this,a,c)}};function Rc(a,b,c){Ic.call(this,a);this.key=b;this.oldValue=c}t(Rc,Ic);function Sc(a){Nc.call(this);this.a=a?a:[];Tc(this)}t(Sc,Nc);l=Sc.prototype;l.clear=function(){for(;0<this.get(Uc);)this.pop()};l.forEach=function(a,b){this.a.forEach(a,b)};l.item=function(a){return this.a[a]};l.pop=function(){return Vc(this,this.get(Uc)-1)};l.push=function(a){var b=this.get(Uc);this.a.splice(b,0,a);Tc(this);this.c(new Wc("add",a));return this.get(Uc)};l.remove=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return Vc(this,c)};
|
|
40
|
-
function Vc(a,b){var c=a.a[b];a.a.splice(b,1);Tc(a);a.c(new Wc("remove",c));return c}function Tc(a){a.set(Uc,a.a.length)}var Uc="length";function Wc(a,b){Ic.call(this,a);this.element=b}t(Wc,Ic);var Xc=/^#(?:[0-9a-f]{3}){1,2}$/i,Yc=/^([a-z]*)$/i;function Zc(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}
|
|
41
|
-
var gd=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;Yc.exec(d)&&(e=document.createElement("div"),e.style.color=d,document.body.appendChild(e),d=getComputedStyle(e).color,document.body.removeChild(e));if(Xc.exec(d)){f=d.length-1;u(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)+
|
|
42
|
-
d);f=[f,e,d,1]}else d.indexOf("rgba(")?d.indexOf("rgb(")?u(!1,14):(d=d.slice(4,-1).split(",").map(Number),d.push(1),f=$c(d)):(d=d.slice(5,-1).split(",").map(Number),f=$c(d));d=f;a[c]=d;++b}return d}}();function $c(a){var b=[];b[0]=ya(a[0]+.5|0,0,255);b[1]=ya(a[1]+.5|0,0,255);b[2]=ya(a[2]+.5|0,0,255);b[3]=ya(a[3],0,1);return b};function hd(a){return"string"===typeof a||a instanceof CanvasPattern||a instanceof CanvasGradient?a:Zc(a)};function id(a,b,c){this.center=a;this.resolution=b;this.rotation=c};function jd(a,b){var c=document.createElement("CANVAS");a&&(c.width=a);b&&(c.height=b);return c.getContext("2d")}function kd(a){a&&a.parentNode&&a.parentNode.removeChild(a)};function ld(a){Nc.call(this);this.element=a.element?a.element:null;this.v=this.R=null;this.B=[];this.render=a.render?a.render:oa;a.target&&(a=a.target,this.R="string"===typeof a?document.getElementById(a):a)}t(ld,Nc);ld.prototype.$=function(){kd(this.element);Nc.prototype.$.call(this)};
|
|
43
|
-
ld.prototype.setMap=function(a){this.v&&kd(this.element);for(var b=0,c=this.B.length;b<c;++b)tc(this.B[b]);this.B.length=0;if(this.v=a)(this.R?this.R:a.P).appendChild(this.element),this.render!==oa&&this.B.push(v(a,"postrender",this.render,this)),a.render()};function md(a){a=a?a:{};this.P=document.createElement("UL");this.j=document.createElement("LI");this.P.appendChild(this.j);this.j.style.display="none";this.i=void 0!==a.collapsed?a.collapsed:!0;this.C=void 0!==a.collapsible?a.collapsible:!0;this.C||(this.i=!1);var b=void 0!==a.className?a.className:"ol-attribution",c=void 0!==a.tipLabel?a.tipLabel:"Attributions",d=void 0!==a.collapseLabel?a.collapseLabel:"\u00bb";"string"===typeof d?(this.l=document.createElement("span"),this.l.textContent=d):this.l=
|
|
44
|
-
d;d=void 0!==a.label?a.label:"i";"string"===typeof d?(this.u=document.createElement("span"),this.u.textContent=d):this.u=d;var e=this.C&&!this.i?this.l:this.u,d=document.createElement("button");d.setAttribute("type","button");d.title=c;d.appendChild(e);v(d,"click",this.ba,this);c=document.createElement("div");c.className=b+" ol-unselectable ol-control"+(this.i&&this.C?" ol-collapsed":"")+(this.C?"":" ol-uncollapsible");c.appendChild(this.P);c.appendChild(d);ld.call(this,{element:c,render:a.render?
|
|
45
|
-
a.render:nd,target:a.target});this.G=!0;this.b={};this.a={};this.X={}}t(md,ld);
|
|
46
|
-
function nd(a){if(a=a.frameState){var b,c,d,e,f,g,h,k,m,n,p,r=a.layerStatesArray,x=pb({},a.attributions),A={},O={},T=a.viewState.projection;c=0;for(b=r.length;c<b;c++)if(g=r[c].layer.Ka())if(n=pa(g).toString(),m=g.u)for(d=0,e=m.length;d<e;d++)if(h=m[d],k=pa(h).toString(),!(k in x)){if(f=a.usedTiles[n]){var S=g.Ra(T);a:{p=void 0;var Y,ja,ma=h,sa=S,da=T;if(ma.a){for(p in f)if(p in ma.a){var S=f[p],ga;ja=0;for(Y=ma.a[p].length;ja<Y;++ja){ga=ma.a[p][ja];if(xa(ga,S)){p=!0;break a}var na=hc(sa,nc(da),parseInt(p,
|
|
47
|
-
10)),Na=na.K-na.I+1;if(S.I<na.I||S.K>na.K)if(xa(ga,new ta(Da(S.I,Na),Da(S.K,Na),S.L,S.N))||S.K-S.I+1>Na&&xa(ga,na)){p=!0;break a}}}p=!1}else p=!0}}else p=!1;p?(k in A&&delete A[k],p=h.c,p in O||(O[p]=!0,x[k]=h)):A[k]=h}b=[x,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]):(kd(this.b[V]),delete this.b[V],delete this.a[V]);for(V in c)d=document.createElement("LI"),
|
|
48
|
-
d.innerHTML=c[V].c,this.P.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.P.appendChild(d),this.b[V]=d;V=!rb(this.a)||!rb(a.logos);this.G!=V&&(this.element.style.display=V?"":"none",this.G=V);V&&rb(this.a)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only");var wa;a=a.logos;V=this.X;for(wa in V)wa in a||(kd(V[wa]),delete V[wa]);for(var ha in a)b=a[ha],b instanceof HTMLElement&&(this.j.appendChild(b),
|
|
49
|
-
V[ha]=b),ha in V||(wa=new Image,wa.src=ha,""===b?c=wa:(c=document.createElement("a"),c.href=b,c.appendChild(wa)),this.j.appendChild(c),V[ha]=c);this.j.style.display=rb(a)?"none":""}else this.G&&(this.element.style.display="none",this.G=!1)}md.prototype.ba=function(a){a.preventDefault();this.element.classList.toggle("ol-collapsed");if(this.i){a=this.u;var b=a.parentNode;b&&b.replaceChild(this.l,a)}else a=this.l,(b=a.parentNode)&&b.replaceChild(this.u,a);this.i=!this.i};function od(a){return 1-Math.pow(1-a,3)}function pd(a){return 3*a*a-2*a*a*a}function qd(a){return a};function rd(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);v(c,"click",rd.prototype.u,this);d=document.createElement("div");
|
|
50
|
-
d.className=b+" ol-unselectable ol-control";d.appendChild(c);b=a.render?a.render:sd;this.i=a.resetNorth?a.resetNorth:void 0;ld.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.l=void 0;this.b&&this.element.classList.add("ol-hidden")}t(rd,ld);
|
|
51
|
-
rd.prototype.u=function(a){a.preventDefault();if(this.i)this.i();else if(a=this.v.T()){var b=a.oa();void 0!==b&&(0<this.j?a.animate({rotation:0,duration:this.j,easing:od}):a.bc(0))}};
|
|
52
|
-
function sd(a){if(a=a.frameState){a=a.viewState.rotation;if(a!=this.l){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.l=a}};function td(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);v(h,"click",td.prototype.b.bind(this,
|
|
53
|
-
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);v(d,"click",td.prototype.b.bind(this,-c));c=document.createElement("div");c.className=b+" ol-unselectable ol-control";c.appendChild(h);c.appendChild(d);ld.call(this,{element:c,target:a.target});this.a=void 0!==a.duration?a.duration:250}t(td,ld);
|
|
54
|
-
td.prototype.b=function(a,b){b.preventDefault();var c=this.v.T();if(c){var d=c.na();d&&(d=c.constrainResolution(d,a),0<this.a?(0<ud(c)[0]&&vd(c),c.animate({resolution:d,duration:this.a,easing:od})):c.fb(d))}};function wd(a,b,c){Ic.call(this,a);this.map=b;this.frameState=void 0!==c?c:null}t(wd,Ic);function xd(a,b,c,d,e){wd.call(this,a,b,e);this.originalEvent=c;this.pixel=b.Ub(c);this.coordinate=b.Ea(this.pixel);this.dragging=void 0!==d?d:!1}t(xd,wd);xd.prototype.preventDefault=function(){wd.prototype.preventDefault.call(this);this.originalEvent.preventDefault()};xd.prototype.stopPropagation=function(){wd.prototype.stopPropagation.call(this);this.originalEvent.stopPropagation()};var yd={Jg:"singleclick",xg:"click",yg:"dblclick",Bg:"pointerdrag",Eg:"pointermove",Ag:"pointerdown",Hg:"pointerup",Gg:"pointerover",Fg:"pointerout",Cg:"pointerenter",Dg:"pointerleave",zg:"pointercancel"};function zd(a,b,c,d,e){xd.call(this,a,b,c.a,d,e);this.a=c}t(zd,xd);var Ad="undefined"!==typeof navigator?navigator.userAgent.toLowerCase():"",Bd=-1!==Ad.indexOf("firefox"),Cd=-1!==Ad.indexOf("safari")&&-1==Ad.indexOf("chrom"),Dd=-1!==Ad.indexOf("webkit")&&-1==Ad.indexOf("edge"),Ed=-1!==Ad.indexOf("macintosh"),Fd=window.devicePixelRatio||1,Gd=!1,Hd=function(){if(!("HTMLCanvasElement"in window))return!1;try{var a=document.createElement("CANVAS").getContext("2d");return a?(void 0!==a.setLineDash&&(Gd=!0),!0):!1}catch(b){return!1}}(),Id="ontouchstart"in window,Jd="PointerEvent"in
|
|
55
|
-
window,Kd=!!navigator.msPointerEnabled;function Ld(a,b){this.a=a;this.o=b};function Md(a){Ld.call(this,a,{mousedown:this.$e,mousemove:this.af,mouseup:this.df,mouseover:this.cf,mouseout:this.bf});this.c=a.g;this.g=[]}t(Md,Ld);function ge(a,b){for(var c=a.g,d=b.clientX,e=b.clientY,f=0,g=c.length,h;f<g&&(h=c[f]);f++){var k=Math.abs(e-h[1]);if(25>=Math.abs(d-h[0])&&25>=k)return!0}return!1}function he(a){var b=ie(a,a),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.isPrimary=!0;b.pointerType="mouse";return b}l=Md.prototype;
|
|
56
|
-
l.$e=function(a){if(!ge(this,a)){(1).toString()in this.c&&this.cancel(a);var b=he(a);this.c[(1).toString()]=a;je(this.a,"pointerdown",b,a)}};l.af=function(a){if(!ge(this,a)){var b=he(a);je(this.a,"pointermove",b,a)}};l.df=function(a){if(!ge(this,a)){var b=this.c[(1).toString()];b&&b.button===a.button&&(b=he(a),je(this.a,"pointerup",b,a),delete this.c[(1).toString()])}};l.cf=function(a){if(!ge(this,a)){var b=he(a);ke(this.a,b,a)}};l.bf=function(a){if(!ge(this,a)){var b=he(a);le(this.a,b,a)}};
|
|
57
|
-
l.cancel=function(a){var b=he(a);this.a.cancel(b,a);delete this.c[(1).toString()]};function me(a){Ld.call(this,a,{MSPointerDown:this.jf,MSPointerMove:this.kf,MSPointerUp:this.nf,MSPointerOut:this.lf,MSPointerOver:this.mf,MSPointerCancel:this.hf,MSGotPointerCapture:this.ff,MSLostPointerCapture:this.gf});this.c=a.g;this.g=["","unavailable","touch","pen","mouse"]}t(me,Ld);function ne(a,b){var c=b;"number"===typeof b.pointerType&&(c=ie(b,b),c.pointerType=a.g[b.pointerType]);return c}l=me.prototype;
|
|
58
|
-
l.jf=function(a){this.c[a.pointerId.toString()]=a;var b=ne(this,a);je(this.a,"pointerdown",b,a)};l.kf=function(a){var b=ne(this,a);je(this.a,"pointermove",b,a)};l.nf=function(a){var b=ne(this,a);je(this.a,"pointerup",b,a);delete this.c[a.pointerId.toString()]};l.lf=function(a){var b=ne(this,a);le(this.a,b,a)};l.mf=function(a){var b=ne(this,a);ke(this.a,b,a)};l.hf=function(a){var b=ne(this,a);this.a.cancel(b,a);delete this.c[a.pointerId.toString()]};
|
|
59
|
-
l.gf=function(a){this.a.c(new oe("lostpointercapture",a,a))};l.ff=function(a){this.a.c(new oe("gotpointercapture",a,a))};function pe(a){Ld.call(this,a,{pointerdown:this.Pf,pointermove:this.Qf,pointerup:this.Tf,pointerout:this.Rf,pointerover:this.Sf,pointercancel:this.Of,gotpointercapture:this.He,lostpointercapture:this.Ye})}t(pe,Ld);l=pe.prototype;l.Pf=function(a){qe(this.a,a)};l.Qf=function(a){qe(this.a,a)};l.Tf=function(a){qe(this.a,a)};l.Rf=function(a){qe(this.a,a)};l.Sf=function(a){qe(this.a,a)};l.Of=function(a){qe(this.a,a)};l.Ye=function(a){qe(this.a,a)};l.He=function(a){qe(this.a,a)};function oe(a,b,c){Ic.call(this,a);this.a=b;a=c?c:{};this.buttons=re(a);this.pressure=se(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:
|
|
60
|
-
null;this.pointerId="pointerId"in a?a.pointerId:0;this.width="width"in a?a.width:0;this.height="height"in a?a.height:0;this.pointerType="pointerType"in a?a.pointerType:"";this.isPrimary="isPrimary"in a?a.isPrimary:!1;b.preventDefault&&(this.preventDefault=function(){b.preventDefault()})}t(oe,Ic);function re(a){if(a.buttons||te)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}
|
|
61
|
-
function se(a,b){var c=0;a.pressure?c=a.pressure:c=b?.5:0;return c}var te=!1;try{te=1===(new MouseEvent("click",{buttons:1})).buttons}catch(a){};function ue(a,b){Ld.call(this,a,{touchstart:this.vg,touchmove:this.ug,touchend:this.tg,touchcancel:this.sg});this.c=a.g;this.j=b;this.g=void 0;this.i=0;this.b=void 0}t(ue,Ld);l=ue.prototype;l.wd=function(){this.i=0;this.b=void 0};
|
|
62
|
-
function ve(a,b,c){b=ie(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.g===c.identifier;b.pointerType="touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b}
|
|
63
|
-
function we(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=ve(a,b,e[g]),h.preventDefault=d,c.call(a,b,h)}
|
|
64
|
-
l.vg=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 k;if(!(k=1==g))a:{for(var m=b.length,n=0;n<m;n++)if(k=b[n],k.identifier===g-2){k=!0;break a}k=!1}k||e.push(h.out)}for(f=0;f<e.length;++f)this.Pb(a,e[f])}b=a.changedTouches[0];c=Object.keys(this.c).length;if(!c||1===c&&(1).toString()in this.c)this.g=b.identifier,void 0!==this.b&&clearTimeout(this.b);xe(this,a);this.i++;we(this,a,this.Nf)};
|
|
65
|
-
l.Nf=function(a,b){this.c[b.pointerId]={target:b.target,out:b,td:b.target};var c=this.a;b.bubbles=!0;je(c,"pointerover",b,a);c=this.a;b.bubbles=!1;je(c,"pointerenter",b,a);je(this.a,"pointerdown",b,a)};l.ug=function(a){a.preventDefault();we(this,a,this.ef)};
|
|
66
|
-
l.ef=function(a,b){var c=this.c[b.pointerId];if(c){var d=c.out,e=c.td;je(this.a,"pointermove",b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(le(this.a,d,a),ke(this.a,b,a)):(b.target=e,b.relatedTarget=null,this.Pb(a,b)));c.out=b;c.td=b.target}};l.tg=function(a){xe(this,a);we(this,a,this.wg)};
|
|
67
|
-
l.wg=function(a,b){je(this.a,"pointerup",b,a);this.a.out(b,a);ye(this.a,b,a);delete this.c[b.pointerId];b.isPrimary&&(this.g=void 0,this.b=setTimeout(this.wd.bind(this),200))};l.sg=function(a){we(this,a,this.Pb)};l.Pb=function(a,b){this.a.cancel(b,a);this.a.out(b,a);ye(this.a,b,a);delete this.c[b.pointerId];b.isPrimary&&(this.g=void 0,this.b=setTimeout(this.wd.bind(this),200))};
|
|
68
|
-
function xe(a,b){var c=a.j.g,d=b.changedTouches[0];if(a.g===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 ze(a){Kc.call(this);this.i=a;this.g={};this.o={};this.a=[];Jd?Ae(this,new pe(this)):Kd?Ae(this,new me(this)):(a=new Md(this),Ae(this,a),Id&&Ae(this,new ue(this,a)));a=this.a.length;for(var b,c=0;c<a;c++)b=this.a[c],Be(this,Object.keys(b.o))}t(ze,Kc);function Ae(a,b){var c=Object.keys(b.o);c&&(c.forEach(function(a){var c=b.o[a];c&&(this.o[a]=c.bind(b))},a),a.a.push(b))}ze.prototype.b=function(a){var b=this.o[a.type];b&&b(a)};
|
|
69
|
-
function Be(a,b){b.forEach(function(a){v(this.i,a,this.b,this)},a)}function Ce(a,b){b.forEach(function(a){Fc(this.i,a,this.b,this)},a)}function ie(a,b){for(var c={},d,e=0,f=De.length;e<f;e++)d=De[e][0],c[d]=a[d]||b[d]||De[e][1];return c}function ye(a,b,c){b.bubbles=!1;je(a,"pointerleave",b,c)}ze.prototype.out=function(a,b){a.bubbles=!0;je(this,"pointerout",a,b)};ze.prototype.cancel=function(a,b){je(this,"pointercancel",a,b)};
|
|
70
|
-
function le(a,b,c){a.out(b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||ye(a,b,c)}function ke(a,b,c){b.bubbles=!0;je(a,"pointerover",b,c);var d=b.target,e=b.relatedTarget;d&&e&&d.contains(e)||(b.bubbles=!1,je(a,"pointerenter",b,c))}function je(a,b,c,d){a.c(new oe(b,d,c))}function qe(a,b){a.c(new oe(b.type,b,b))}ze.prototype.$=function(){for(var a=this.a.length,b,c=0;c<a;c++)b=this.a[c],Ce(this,Object.keys(b.o));Kc.prototype.$.call(this)};
|
|
71
|
-
var De=[["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 Ee(a){Kc.call(this);this.b=a;this.j=0;this.l=!1;this.o=[];this.g=null;a=this.b.a;this.C=0;this.B={};this.i=new ze(a);this.a=null;this.u=v(this.i,"pointerdown",this.Oe,this);this.v=v(this.i,"pointermove",this.Zf,this)}t(Ee,Kc);function Fe(a,b){var c=new zd("click",a.b,b);a.c(c);a.j?(clearTimeout(a.j),a.j=0,c=new zd("dblclick",a.b,b),a.c(c)):a.j=setTimeout(function(){this.j=0;var a=new zd("singleclick",this.b,b);this.c(a)}.bind(a),250)}
|
|
72
|
-
function Ge(a,b){"pointerup"==b.type||"pointercancel"==b.type?delete a.B[b.pointerId]:"pointerdown"==b.type&&(a.B[b.pointerId]=!0);a.C=Object.keys(a.B).length}l=Ee.prototype;l.dd=function(a){Ge(this,a);var b=new zd("pointerup",this.b,a);this.c(b);this.l||a.button||Fe(this,this.g);this.C||(this.o.forEach(tc),this.o.length=0,this.l=!1,this.g=null,Hc(this.a),this.a=null)};
|
|
73
|
-
l.Oe=function(a){Ge(this,a);var b=new zd("pointerdown",this.b,a);this.c(b);this.g=a;this.o.length||(this.a=new ze(document),this.o.push(v(this.a,"pointermove",this.tf,this),v(this.a,"pointerup",this.dd,this),v(this.i,"pointercancel",this.dd,this)))};l.tf=function(a){if(a.clientX!=this.g.clientX||a.clientY!=this.g.clientY){this.l=!0;var b=new zd("pointerdrag",this.b,a,this.l);this.c(b)}a.preventDefault()};
|
|
74
|
-
l.Zf=function(a){this.c(new zd(a.type,this.b,a,!(!this.g||a.clientX==this.g.clientX&&a.clientY==this.g.clientY)))};l.$=function(){this.v&&(tc(this.v),this.v=null);this.u&&(tc(this.u),this.u=null);this.o.forEach(tc);this.o.length=0;this.a&&(Hc(this.a),this.a=null);this.i&&(Hc(this.i),this.i=null);Kc.prototype.$.call(this)};function He(a,b){this.V=a;this.b=b;this.a=[];this.c=[];this.g={}}He.prototype.clear=function(){this.a.length=0;this.c.length=0;qb(this.g)};He.prototype.j=function(a){u(!(this.b(a)in this.g),31);var b=this.V(a);return Infinity!=b?(this.a.push(a),this.c.push(b),this.g[this.b(a)]=!0,Ie(this,0,this.a.length-1),!0):!1};function Je(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 k=2*b+1,m=2*b+2,k=m<e&&d[m]<d[k]?m:k;c[b]=c[k];d[b]=d[k];b=k}c[b]=f;d[b]=g;Ie(a,h,b)}
|
|
75
|
-
function Ie(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 Ke(a,b){He.call(this,function(b){return a.apply(null,b)},function(a){return a[0].Ta()});this.u=b;this.i=0;this.o={}}t(Ke,He);Ke.prototype.j=function(a){var b=He.prototype.j.call(this,a);b&&v(a[0],"change",this.l,this);return b};Ke.prototype.l=function(a){a=a.target;var b=a.U();if(2===b||3===b||4===b||5===b)Fc(a,"change",this.l,this),a=a.Ta(),a in this.o&&(delete this.o[a],--this.i),this.u()};function Le(a){return function(b,c,d){if(void 0!==b)return b=ea(a,b,d),b=ya(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 Me(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 Ne(a){if(void 0!==a)return 0}function Oe(a,b){if(void 0!==a)return a+b}function Pe(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 Qe(){var a=5*Math.PI/180;return function(b,c){if(void 0!==b)return Math.abs(b+c)<=a?0:b+c}};function Re(a){a=""+a;var b=a.indexOf("."),b=-1===b?a.length:b;return 2<b?a:Array(3-b).join("0")+a};function Se(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 Te(){return!0}function Ue(){return!1};function w(){Nc.call(this);this.v=Ha();this.B=-1;this.i={};this.u=this.j=0}t(w,Nc);l=w.prototype;l.wa=function(a,b){var c=b?b:[NaN,NaN];this.Ba(a[0],a[1],c,Infinity);return c};l.ta=function(a){return this.Ua(a[0],a[1])};l.Ua=Ue;l.A=function(a){this.B!=this.g&&(this.v=this.Ab(this.v),this.B=this.g);var b=this.v;a?(a[0]=b[0],a[1]=b[1],a[2]=b[2],a[3]=b[3]):a=b;return a};l.za=function(a){return this.Yb(a*a)};l.ua=function(a,b){this.Xa(Wb(a,b));return this};function Ve(a,b,c,d,e,f){for(var g=f?f:[],h=0;b<c;b+=d){var k=a[b],m=a[b+1];g[h++]=e[0]*k+e[2]*m+e[4];g[h++]=e[1]*k+e[3]*m+e[5]}f&&g.length!=h&&(g.length=h);return g};function y(){w.call(this);this.H="XY";this.a=2;this.f=null}t(y,w);function We(a){var b;"XY"==a?b=2:"XYZ"==a||"XYM"==a?b=3:"XYZM"==a&&(b=4);return b}l=y.prototype;l.Ua=Ue;l.Ab=function(a){var b=this.f,c=this.f.length,d=this.a;a=Ra(a);return Wa(a,b,0,c,d)};l.Ga=function(){return this.f.slice(0,this.a)};l.Ha=function(){return this.f.slice(this.f.length-this.a)};l.Ia=function(){return this.H};
|
|
76
|
-
l.Yb=function(a){this.u!=this.g&&(qb(this.i),this.j=0,this.u=this.g);if(0>a||this.j&&a<=this.j)return this;var b=a.toString();if(this.i.hasOwnProperty(b))return this.i[b];var c=this.ab(a);if(c.f.length<this.f.length)return this.i[b]=c;this.j=a;return this};l.ab=function(){return this};function Xe(a,b,c){a.a=We(b);a.H=b;a.f=c}
|
|
77
|
-
function Ye(a,b,c,d){if(b)c=We(b);else{for(b=0;b<d;++b)if(c.length)c=c[0];else{a.H="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.H=b;a.a=c}l.Xa=function(a){this.f&&(a(this.f,this.f,this.a),this.s())};l.rotate=function(a,b){var c=this.f;if(c){for(var d=c.length,e=this.a,f=c?c:[],g=Math.cos(a),h=Math.sin(a),k=b[0],m=b[1],n=0,p=0;p<d;p+=e){var r=c[p]-k,x=c[p+1]-m;f[n++]=k+r*g-x*h;f[n++]=m+r*h+x*g;for(r=p+2;r<p+e;++r)f[n++]=c[r]}c&&f.length!=n&&(f.length=n);this.s()}};
|
|
78
|
-
l.scale=function(a,b,c){var d=b;void 0===d&&(d=a);var e=c;e||(e=jb(this.A()));if(c=this.f){b=c.length;for(var f=this.a,g=c?c:[],h=e[0],e=e[1],k=0,m=0;m<b;m+=f){var n=c[m]-h,p=c[m+1]-e;g[k++]=h+a*n;g[k++]=e+d*p;for(n=m+2;n<m+f;++n)g[k++]=c[n]}c&&g.length!=k&&(g.length=k);this.s()}};l.translate=function(a,b){var c=this.f;if(c){var d=c.length,e=this.a,f=c?c:[],g=0,h,k;for(h=0;h<d;h+=e)for(f[g++]=c[h]+a,f[g++]=c[h+1]+b,k=h+2;k<h+e;++k)f[g++]=c[k];c&&f.length!=g&&(f.length=g);this.s()}};function Ze(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],k=a[b+1],e=e+(g*h-f*k),f=h,g=k;return e/2}function $e(a,b,c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],e=e+Ze(a,b,h,d);b=h}return e};function af(a,b,c,d,e,f,g){var h=a[b],k=a[b+1],m=a[c]-h,n=a[c+1]-k;if(m||n)if(f=((e-h)*m+(f-k)*n)/(m*m+n*n),1<f)b=c;else if(0<f){for(e=0;e<d;++e)g[e]=Ea(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 bf(a,b,c,d,e){var f=a[b],g=a[b+1];for(b+=d;b<c;b+=d){var h=a[b],k=a[b+1],f=Aa(f,g,h,k);f>e&&(e=f);f=h;g=k}return e}function cf(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];e=bf(a,b,h,d,e);b=h}return e}
|
|
79
|
-
function df(a,b,c,d,e,f,g,h,k,m,n){if(b==c)return m;var p;if(!e){p=Aa(g,h,a[b],a[b+1]);if(p<m){for(n=0;n<d;++n)k[n]=a[b+n];k.length=d;return p}return m}for(var r=n?n:[NaN,NaN],x=b+d;x<c;)if(af(a,x-d,x,d,g,h,r),p=Aa(g,h,r[0],r[1]),p<m){m=p;for(n=0;n<d;++n)k[n]=r[n];k.length=d;x+=d}else x+=d*Math.max((Math.sqrt(p)-Math.sqrt(m))/e|0,1);if(f&&(af(a,c-d,b,d,g,h,r),p=Aa(g,h,r[0],r[1]),p<m)){m=p;for(n=0;n<d;++n)k[n]=r[n];k.length=d}return m}
|
|
80
|
-
function ef(a,b,c,d,e,f,g,h,k,m,n){n=n?n:[NaN,NaN];var p,r;p=0;for(r=c.length;p<r;++p){var x=c[p];m=df(a,b,x,d,e,f,g,h,k,m,n);b=x}return m};function ff(a,b){var c=0,d,e;d=0;for(e=b.length;d<e;++d)a[c++]=b[d];return c}function gf(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 hf(a,b,c,d,e){e=e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g)b=gf(a,b,c[g],d),e[f++]=b;e.length=f;return e};function jf(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 kf(a,b,c,d,e){e=void 0!==e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g){var k=c[g];e[f++]=jf(a,b,k,d,e[f]);b=k}e.length=f;return e};function lf(a,b,c,d,e,f,g){var h=(c-b)/d;if(3>h){for(;b<c;b+=d)f[g++]=a[b],f[g++]=a[b+1];return g}var k=Array(h);k[0]=1;k[h-1]=1;c=[b,c-d];for(var m=0,n;0<c.length;){var p=c.pop(),r=c.pop(),x=0,A=a[r],O=a[r+1],T=a[p],S=a[p+1];for(n=r+d;n<p;n+=d){var Y;Y=a[n];var ja=a[n+1],ma=A,sa=O,da=T-ma,ga=S-sa;if(da||ga){var na=((Y-ma)*da+(ja-sa)*ga)/(da*da+ga*ga);1<na?(ma=T,sa=S):0<na&&(ma+=da*na,sa+=ga*na)}Y=Aa(Y,ja,ma,sa);Y>x&&(m=n,x=Y)}x>e&&(k[(m-b)/d]=1,r+d<m&&c.push(r,m),m+d<p&&c.push(m,p))}for(n=0;n<h;++n)k[n]&&
|
|
81
|
-
(f[g++]=a[b+n*d],f[g++]=a[b+n*d+1]);return g}
|
|
82
|
-
function mf(a,b,c,d,e,f,g,h){var k,m;k=0;for(m=c.length;k<m;++k){var n=c[k];a:{var p,r=a,x=n,A=d,O=e,T=f,S=g;if(b!=x){var Y=O*Math.round(r[b]/O),ja=O*Math.round(r[b+1]/O);b+=A;T[S++]=Y;T[S++]=ja;do if(p=O*Math.round(r[b]/O),g=O*Math.round(r[b+1]/O),b+=A,b==x){T[S++]=p;T[S++]=g;g=S;break a}while(p==Y&&g==ja);for(;b<x;){var ma,sa;ma=O*Math.round(r[b]/O);sa=O*Math.round(r[b+1]/O);b+=A;if(ma!=p||sa!=g){var da=p-Y,ga=g-ja,na=ma-Y,Na=sa-ja;da*Na==ga*na&&(0>da&&na<da||da==na||0<da&&na>da)&&(0>ga&&Na<ga||
|
|
83
|
-
ga==Na||0<ga&&Na>ga)||(T[S++]=p,T[S++]=g,Y=p,ja=g);p=ma;g=sa}}T[S++]=p;T[S++]=g}g=S}h.push(g);b=n}return g};function z(a,b){y.call(this);this.b=this.l=-1;this.W(a,b)}t(z,y);l=z.prototype;l.clone=function(){var a=new z(null);Xe(a,this.H,this.f.slice());a.s();return a};l.Ba=function(a,b,c,d){if(d<Ka(this.A(),a,b))return d;this.b!=this.g&&(this.l=Math.sqrt(bf(this.f,0,this.f.length,this.a,0)),this.b=this.g);return df(this.f,0,this.f.length,this.a,this.l,!0,a,b,c,d)};l.Cf=function(){return Ze(this.f,0,this.f.length,this.a)};l.da=function(){return jf(this.f,0,this.f.length,this.a)};
|
|
84
|
-
l.ab=function(a){var b=[];b.length=lf(this.f,0,this.f.length,this.a,a,b,0);a=new z(null);Xe(a,"XY",b);a.s();return a};l.S=function(){return"LinearRing"};l.fa=function(){};l.W=function(a,b){a?(Ye(this,b,a,1),this.f||(this.f=[]),this.f.length=gf(this.f,0,a,this.a)):Xe(this,"XY",null);this.s()};function B(a,b){y.call(this);this.W(a,b)}t(B,y);l=B.prototype;l.clone=function(){var a=new B(null);a.F(this.H,this.f.slice());return a};l.Ba=function(a,b,c,d){var e=this.f;a=Aa(a,b,e[0],e[1]);if(a<d){d=this.a;for(b=0;b<d;++b)c[b]=e[b];c.length=d;return a}return d};l.da=function(){return this.f?this.f.slice():[]};l.Ab=function(a){var b=this.f,c=b[0],b=b[1];return Qa(c,b,c,b,a)};l.S=function(){return"Point"};l.fa=function(a){return Ma(a,this.f[0],this.f[1])};
|
|
85
|
-
l.W=function(a,b){a?(Ye(this,b,a,0),this.f||(this.f=[]),this.f.length=ff(this.f,a),this.s()):this.F("XY",null)};l.F=function(a,b){Xe(this,a,b);this.s()};function nf(a,b,c,d,e){return!Xa(e,function(e){return!of(a,b,c,d,e[0],e[1])})}function of(a,b,c,d,e,f){for(var g=0,h=a[c-d],k=a[c-d+1];b<c;b+=d){var m=a[b],n=a[b+1];k<=f?n>f&&0<(m-h)*(f-k)-(e-h)*(n-k)&&g++:n<=f&&0>(m-h)*(f-k)-(e-h)*(n-k)&&g--;h=m;k=n}return!!g}function pf(a,b,c,d,e,f){if(!c.length||!of(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if(of(a,c[b-1],c[b],d,e,f))return!1;return!0};function qf(a,b,c,d,e,f,g){var h,k,m,n,p,r=e[f+1],x=[],A=c[0];m=a[A-d];p=a[A-d+1];for(h=b;h<A;h+=d){n=a[h];k=a[h+1];if(r<=p&&k<=r||p<=r&&r<=k)m=(r-p)/(k-p)*(n-m)+m,x.push(m);m=n;p=k}A=NaN;p=-Infinity;x.sort(ca);m=x[0];h=1;for(k=x.length;h<k;++h){n=x[h];var O=Math.abs(n-m);O>p&&(m=(m+n)/2,pf(a,b,c,d,m,r)&&(A=m,p=O));m=n}isNaN(A)&&(A=e[f]);return g?(g.push(A,r),g):[A,r]};function rf(a,b,c,d,e,f){for(var g=[a[b],a[b+1]],h=[],k;b+d<c;b+=d){h[0]=a[b+d];h[1]=a[b+d+1];if(k=e.call(f,g,h))return k;g[0]=h[0];g[1]=h[1]}return!1};function sf(a,b,c,d,e){var f=Wa(Ha(),a,b,c,d);return nb(e,f)?Oa(e,f)||f[0]>=e[0]&&f[2]<=e[2]||f[1]>=e[1]&&f[3]<=e[3]?!0:rf(a,b,c,d,function(a,b){var c=!1,d=Pa(e,a),f=Pa(e,b);if(1===d||1===f)c=!0;else{var g=e[0],h=e[1],x=e[2],A=e[3],O=b[0],T=b[1],S=(T-a[1])/(O-a[0]);f&2&&!(d&2)&&(c=O-(T-A)/S,c=c>=g&&c<=x);c||!(f&4)||d&4||(c=T-(O-x)*S,c=c>=h&&c<=A);c||!(f&8)||d&8||(c=O-(T-h)/S,c=c>=g&&c<=x);c||!(f&16)||d&16||(c=T-(O-g)*S,c=c>=h&&c<=A)}return c}):!1}
|
|
86
|
-
function tf(a,b,c,d,e){var f=c[0];if(!(sf(a,b,f,d,e)||of(a,b,f,d,e[0],e[1])||of(a,b,f,d,e[0],e[3])||of(a,b,f,d,e[2],e[1])||of(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(nf(a,c[b-1],c[b],d,e))return!1;return!0};function uf(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],k=a[b+1],e=e+(h-f)*(k+g),f=h,g=k;return 0<e}function vf(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=uf(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}
|
|
87
|
-
function wf(a,b,c,d,e){e=void 0!==e?e:!1;var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],k=uf(a,b,h,d);if(f?e&&!k||!e&&k:e&&k||!e&&!k)for(var k=a,m=h,n=d;b<m-n;){var p;for(p=0;p<n;++p){var r=k[b+p];k[b+p]=k[m-n+p];k[m-n+p]=r}b+=n;m-=n}b=h}return b}function xf(a,b,c,d){var e=0,f,g;f=0;for(g=b.length;f<g;++f)e=wf(a,e,b[f],c,d);return e};function C(a,b){y.call(this);this.b=[];this.C=-1;this.G=null;this.X=this.P=this.R=-1;this.l=null;this.W(a,b)}t(C,y);l=C.prototype;l.ie=function(a){this.f?fa(this.f,a.f):this.f=a.f.slice();this.b.push(this.f.length);this.s()};l.clone=function(){var a=new C(null);a.F(this.H,this.f.slice(),this.b.slice());return a};l.Ba=function(a,b,c,d){if(d<Ka(this.A(),a,b))return d;this.P!=this.g&&(this.R=Math.sqrt(cf(this.f,0,this.b,this.a,0)),this.P=this.g);return ef(this.f,0,this.b,this.a,this.R,!0,a,b,c,d)};
|
|
88
|
-
l.Ua=function(a,b){return pf(yf(this),0,this.b,this.a,a,b)};l.Ff=function(){return $e(yf(this),0,this.b,this.a)};l.da=function(a){var b;void 0!==a?(b=yf(this).slice(),wf(b,0,this.b,this.a,a)):b=this.f;return kf(b,0,this.b,this.a)};l.Qa=function(){return this.b};function zf(a){if(a.C!=a.g){var b=jb(a.A());a.G=qf(yf(a),0,a.b,a.a,b,0);a.C=a.g}return a.G}l.te=function(){return new B(zf(this))};l.xe=function(){return this.b.length};
|
|
89
|
-
l.we=function(a){if(0>a||this.b.length<=a)return null;var b=new z(null);Xe(b,this.H,this.f.slice(a?this.b[a-1]:0,this.b[a]));b.s();return b};l.Tc=function(){var a=this.H,b=this.f,c=this.b,d=[],e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],k=new z(null),m=k;Xe(m,a,b.slice(e,h));m.s();d.push(k);e=h}return d};function yf(a){if(a.X!=a.g){var b=a.f;vf(b,a.b,a.a)?a.l=b:(a.l=b.slice(),a.l.length=wf(a.l,0,a.b,a.a));a.X=a.g}return a.l}
|
|
90
|
-
l.ab=function(a){var b=[],c=[];b.length=mf(this.f,0,this.b,this.a,Math.sqrt(a),b,0,c);a=new C(null);a.F("XY",b,c);return a};l.S=function(){return"Polygon"};l.fa=function(a){return tf(yf(this),0,this.b,this.a,a)};l.W=function(a,b){if(a){Ye(this,b,a,2);this.f||(this.f=[]);var c=hf(this.f,0,a,this.a,this.b);this.f.length=c.length?c[c.length-1]:0;this.s()}else this.F("XY",null,this.b)};l.F=function(a,b,c){Xe(this,a,b);this.b=c;this.s()};
|
|
91
|
-
function Af(a){var b=a[0],c=a[1],d=a[2];a=a[3];b=[b,c,b,a,d,a,d,c,b,c];c=new C(null);c.F("XY",b,[b.length]);return c};function D(a){Nc.call(this);a=a||{};this.j=[0,0];this.b=[];this.Lb=this.Lb.bind(this);var b={};b.center=void 0!==a.center?a.center:null;this.C=Tb(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=Le(c);else{d=Tb(a.projection);e=d.A();var h=(e?Math.max(hb(e),ib(e)):360*vb.degrees/d.$a())/256/Math.pow(2,0),k=h/Math.pow(2,28);d=a.maxResolution;void 0!==
|
|
92
|
-
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):k);c=f+Math.floor(Math.log(d/e)/Math.log(g));e=d/Math.pow(g,c-f);c=Me(g,d,c-f)}this.a=d;this.l=e;this.G=g;this.i=a.resolutions;this.u=f;(void 0!==a.enableRotation?a.enableRotation:1)?(f=a.constrainRotation,f=void 0===f||!0===f?Qe():!1===f?Oe:"number"===typeof f?Pe(f):Oe):f=Ne;this.B=new id(void 0!==a.extent?qc(a.extent):rc,c,f);void 0!==a.resolution?b.resolution=a.resolution:
|
|
93
|
-
void 0!==a.zoom&&(b.resolution=this.constrainResolution(this.a,a.zoom-this.u));b.rotation=void 0!==a.rotation?a.rotation:0;this.O(b)}t(D,Nc);l=D.prototype;
|
|
94
|
-
l.animate=function(a){var b=Date.now(),c=this.ca().slice(),d=this.na(),e=this.oa(),f=arguments.length,g;1<f&&"function"===typeof arguments[f-1]&&(g=arguments[f-1],--f);for(var h=[],k=0;k<f;++k){var m=arguments[k],n={start:b,complete:!1,anchor:m.anchor,duration:void 0!==m.duration?m.duration:1E3,easing:m.easing||pd};m.center&&(n.mc=c,n.pc=m.center,c=n.pc);void 0!==m.zoom?(n.Jb=d,n.Kb=this.constrainResolution(this.a,m.zoom-this.u,0),d=n.Kb):m.resolution&&(n.Jb=d,n.Kb=m.resolution,d=n.Kb);void 0!==m.rotation&&
|
|
95
|
-
(n.nc=e,n.Hd=m.rotation,e=n.Hd);n.zb=g;b+=n.duration;h.push(n)}this.b.push(h);Bf(this,0,1);this.Lb()};function vd(a){Bf(a,0,-ud(a)[0]);for(var b=0,c=a.b.length;b<c;++b){var d=a.b[b];d[0].zb&&d[0].zb(!1)}a.b.length=0}
|
|
96
|
-
l.Lb=function(){void 0!==this.v&&(cancelAnimationFrame(this.v),this.v=void 0);if(0<ud(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.mc){var k=h.mc[0],m=h.mc[1];this.set("center",[k+b*(h.pc[0]-k),m+b*(h.pc[1]-m)])}h.Jb&&(k=h.Jb+b*(h.Kb-h.Jb),h.anchor&&this.set("center",Xf(this,k,h.anchor)),this.set("resolution",k));
|
|
97
|
-
void 0!==h.nc&&(b=h.nc+b*(h.Hd-h.nc),h.anchor&&this.set("center",Yf(this,b,h.anchor)),this.set("rotation",b));b=!0;if(!h.complete)break}}e&&(this.b[c]=null,Bf(this,0,-1),(d=d[0].zb)&&d(!0))}this.b=this.b.filter(Boolean);b&&void 0===this.v&&(this.v=requestAnimationFrame(this.Lb))}};function Yf(a,b,c){var d,e=a.ca();void 0!==e&&(d=[e[0]-c[0],e[1]-c[1]],Se(d,b-a.oa()),a=d,a[0]+=c[0],a[1]+=c[1]);return d}
|
|
98
|
-
function Xf(a,b,c){var d,e=a.ca();a=a.na();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 Zf(a){var b=[100,100];a='.ol-viewport[data-view="'+pa(a)+'"]';if(a=document.querySelector(a))a=getComputedStyle(a),b[0]=parseInt(a.width,10),b[1]=parseInt(a.height,10);return b}l.Oa=function(a){return this.B.center(a)};l.constrainResolution=function(a,b,c){return this.B.resolution(a,b||0,c||0)};l.constrainRotation=function(a,b){return this.B.rotation(a,b||0)};l.ca=function(){return this.get("center")};
|
|
99
|
-
function ud(a,b){return void 0!==b?(b[0]=a.j[0],b[1]=a.j[1],b):a.j.slice()}l.Fc=function(a){a=a||Zf(this);var b=this.ca();u(b,1);var c=this.na();u(void 0!==c,2);var d=this.oa();u(void 0!==d,3);return lb(b,c,d,a)};l.wf=function(){return this.a};l.xf=function(){return this.l};l.yf=function(){return this.C};l.na=function(){return this.get("resolution")};l.zf=function(){return this.i};function $f(a,b){return Math.max(hb(a)/b[0],ib(a)/b[1])}l.oa=function(){return this.get("rotation")};
|
|
100
|
-
l.U=function(){var a=this.ca(),b=this.C,c=this.na(),d=this.oa();return{center:a.slice(),projection:void 0!==b?b:null,resolution:c,rotation:d}};l.Ge=function(){var a,b=this.na();if(void 0!==b&&b>=this.l&&b<=this.a){a=this.u||0;var c,d;if(this.i){d=ea(this.i,b,1);a+=d;if(d==this.i.length-1)return a;c=this.i[d];d=c/this.i[d+1]}else c=this.a,d=this.G;a+=Math.log(c/b)/Math.log(d)}return a};
|
|
101
|
-
l.me=function(a,b){var c=b||{},d=c.size;d||(d=Zf(this));var e;a instanceof y?"Circle"===a.S()?(a=a.A(),e=Af(a),e.rotate(this.oa(),jb(a))):e=a:(u(Array.isArray(a),24),u(!gb(a),25),e=Af(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,k;void 0!==c.minResolution?k=c.minResolution:void 0!==c.maxZoom?k=this.constrainResolution(this.a,c.maxZoom-this.u,0):k=0;var m=e.f,n=this.oa(),p=Math.cos(-n),n=Math.sin(-n),r=Infinity,
|
|
102
|
-
x=Infinity,A=-Infinity,O=-Infinity;e=e.a;for(var T=0,S=m.length;T<S;T+=e)var Y=m[T]*p-m[T+1]*n,ja=m[T]*n+m[T+1]*p,r=Math.min(r,Y),x=Math.min(x,ja),A=Math.max(A,Y),O=Math.max(O,ja);d=$f([r,x,A,O],[d[0]-f[1]-f[3],d[1]-f[0]-f[2]]);d=isNaN(d)?k:Math.max(d,k);g&&(g=this.constrainResolution(d,0,0),!h&&g<d&&(g=this.constrainResolution(g,-1,0)),d=g);n=-n;h=(r+A)/2+(f[1]-f[3])/2*d;f=(x+O)/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}):
|
|
103
|
-
(this.fb(d),this.ya(p))};l.le=function(a,b,c){var d=this.oa(),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.na(),f=f+(b[0]/2-c[0])*g;a+=(c[1]-b[1]/2)*g;d=-d;this.ya([f*e-a*d,a*e+f*d])};l.rotate=function(a,b){if(void 0!==b){var c=Yf(this,a,b);this.ya(c)}this.bc(a)};l.ya=function(a){this.set("center",a);0<ud(this)[0]&&vd(this)};function Bf(a,b,c){a.j[b]+=c;a.s()}l.fb=function(a){this.set("resolution",a);0<ud(this)[0]&&vd(this)};
|
|
104
|
-
l.bc=function(a){this.set("rotation",a);0<ud(this)[0]&&vd(this)};l.pg=function(a){a=this.constrainResolution(this.a,a-this.u,0);this.fb(a)};function ag(){this.a=[];this.c=this.g=0};function bg(a){Nc.call(this);this.C=null;this.set("active",!0);this.handleEvent=a.handleEvent}t(bg,Nc);bg.prototype.setMap=function(a){this.C=a};function cg(a,b,c,d){if(void 0!==b){var e=a.oa(),f=a.ca();void 0!==e&&f&&0<d?a.animate({rotation:b,anchor:c,duration:d,easing:od}):a.rotate(b,c)}}function dg(a,b,c,d){var e=a.na();b=a.constrainResolution(e,b,0);if(c&&void 0!==b&&b!==e){var f=a.ca();c=Xf(a,b,c);c=a.Oa(c);c=[(b*f[0]-e*c[0])/(b-e),(b*f[1]-e*c[1])/(b-e)]}eg(a,b,c,d)}
|
|
105
|
-
function eg(a,b,c,d){if(b){var e=a.na(),f=a.ca();void 0!==e&&f&&b!==e&&d?a.animate({resolution:b,anchor:c,duration:d,easing:od}):(c&&(c=Xf(a,b,c),a.ya(c)),a.fb(b))}};function fg(a){a=a?a:{};this.a=a.delta?a.delta:1;bg.call(this,{handleEvent:gg});this.b=void 0!==a.duration?a.duration:250}t(fg,bg);function gg(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.T();dg(d,c,b,this.b);a.preventDefault();b=!0}return!b};function hg(a){a=a.originalEvent;return a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}function ig(a){a=a.originalEvent;return!a.button&&!(Dd&&Ed&&a.ctrlKey)}function jg(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&!a.shiftKey}function kg(a){a=a.originalEvent;return!a.altKey&&!(a.metaKey||a.ctrlKey)&&a.shiftKey}function lg(a){a=a.originalEvent.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a}function mg(a){u(a.a,56);return"mouse"==a.a.pointerType};function ng(a){a=a?a:{};bg.call(this,{handleEvent:a.handleEvent?a.handleEvent:og});this.G=a.handleDownEvent?a.handleDownEvent:Ue;this.P=a.handleDragEvent?a.handleDragEvent:oa;this.R=a.handleMoveEvent?a.handleMoveEvent:oa;this.X=a.handleUpEvent?a.handleUpEvent:Ue;this.i=!1;this.u={};this.a=[]}t(ng,bg);function pg(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]}
|
|
106
|
-
function og(a){if(!(a instanceof zd))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);var c=this.u,d=[],e;for(e in c)d.push(c[e]);this.a=d}this.i?"pointerdrag"==a.type?this.P(a):"pointerup"==a.type&&(this.i=this.X(a)&&0<this.a.length):"pointerdown"==a.type?(this.i=a=this.G(a),b=this.l(a)):"pointermove"==a.type&&this.R(a);
|
|
107
|
-
return!b}ng.prototype.l=function(a){return a};function qg(a){ng.call(this,{handleDownEvent:rg,handleDragEvent:sg,handleUpEvent:tg});a=a?a:{};this.b=a.kinetic;this.j=null;this.B=a.condition?a.condition:jg;this.v=!1}t(qg,ng);function sg(a){var b=pg(this.a);this.b&&this.b.a.push(b[0],b[1],Date.now());if(this.j){var c=this.j[0]-b[0],d=b[1]-this.j[1];a=a.map.T();var e=a.U(),d=c=[c,d],f=e.resolution;d[0]*=f;d[1]*=f;Se(c,e.rotation);d=c;e=e.center;d[0]+=e[0];d[1]+=e[1];c=a.Oa(c);a.ya(c)}this.j=b}
|
|
108
|
-
function tg(a){var b=a.map;a=b.T();if(this.a.length)return this.b&&(a=this.b,a.a.length=0,a.g=0,a.c=0),this.j=null,!0;var c;if(c=!this.v&&this.b)if(c=this.b,6>c.a.length)c=!1;else{var d=Date.now()-100,e=c.a.length-3;if(c.a[e+2]<d)c=!1;else{for(var f=e-3;0<f&&c.a[f+2]>d;)f-=3;var d=c.a[e+2]-c.a[f+2],g=c.a[e]-c.a[f],e=c.a[e+1]-c.a[f+1];c.g=Math.atan2(e,g);c.c=Math.sqrt(g*g+e*e)/d;c=.05<c.c}}c&&(c=(.05-this.b.c)/-.005,e=this.b.g,f=a.ca(),f=b.Db(f),b=b.Ea([f[0]-c*Math.cos(e),f[1]-c*Math.sin(e)]),a.animate({center:a.Oa(b),
|
|
109
|
-
duration:500,easing:od}));Bf(a,1,-1);return!1}function rg(a){if(0<this.a.length&&this.B(a)){var b=a.map.T();this.j=null;this.i||Bf(b,1,1);ud(b)[0]&&b.ya(a.frameState.viewState.center);this.b&&(a=this.b,a.a.length=0,a.g=0,a.c=0);this.v=1<this.a.length;return!0}return!1}qg.prototype.l=Ue;function ug(a){a=a?a:{};ng.call(this,{handleDownEvent:vg,handleDragEvent:wg,handleUpEvent:xg});this.j=a.condition?a.condition:hg;this.b=void 0;this.v=void 0!==a.duration?a.duration:250}t(ug,ng);function wg(a){if(mg(a)){var b=a.map,c=b.Hb();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(void 0!==this.b){a=c-this.b;var b=b.T(),d=b.oa();cg(b,d-a)}this.b=c}}function xg(a){if(!mg(a))return!0;a=a.map.T();Bf(a,1,-1);var b=a.oa(),c=this.v,b=a.constrainRotation(b,0);cg(a,b,void 0,c);return!1}
|
|
110
|
-
function vg(a){return mg(a)&&ig(a)&&this.j(a)?(Bf(a.map.T(),1,1),this.b=void 0,!0):!1}ug.prototype.l=Ue;function yg(a){this.Pa=null;this.c=document.createElement("div");this.c.style.position="absolute";this.c.className="ol-box "+a;this.g=this.b=this.a=null}t(yg,Gc);yg.prototype.$=function(){this.setMap(null)};function zg(a){var b=a.b,c=a.g;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"}
|
|
111
|
-
yg.prototype.setMap=function(a){if(this.a){this.a.R.removeChild(this.c);var b=this.c.style;b.left=b.top=b.width=b.height="inherit"}(this.a=a)&&this.a.R.appendChild(this.c)};function Ag(a){var b=a.b,c=a.g,b=[b,[b[0],c[1]],c,[c[0],b[1]]].map(a.a.Ea,a.a);b[4]=b[0].slice();a.Pa?a.Pa.W([b]):a.Pa=new C([b])}yg.prototype.qa=function(){return this.Pa};function Bg(a){ng.call(this,{handleDownEvent:Cg,handleDragEvent:Dg,handleUpEvent:Eg});a=a?a:{};this.b=new yg(a.className||"ol-dragbox");this.j=null;this.ba=a.condition?a.condition:Te;this.B=a.boxEndCondition?a.boxEndCondition:Fg}t(Bg,ng);function Fg(a,b,c){a=c[0]-b[0];b=c[1]-b[1];return 64<=a*a+b*b}function Dg(a){if(mg(a)){var b=this.b,c=a.pixel;b.b=this.j;b.g=c;Ag(b);zg(b);this.c(new Gg(Hg,a.coordinate,a))}}Bg.prototype.qa=function(){return this.b.qa()};Bg.prototype.v=oa;
|
|
112
|
-
function Eg(a){if(!mg(a))return!0;this.b.setMap(null);this.B(a,this.j,a.pixel)&&(this.v(a),this.c(new Gg(Ig,a.coordinate,a)));return!1}function Cg(a){if(mg(a)&&ig(a)&&this.ba(a)){this.j=a.pixel;this.b.setMap(a.map);var b=this.b,c=this.j;b.b=this.j;b.g=c;Ag(b);zg(b);this.c(new Gg(Jg,a.coordinate,a));return!0}return!1}var Jg="boxstart",Hg="boxdrag",Ig="boxend";function Gg(a,b,c){Ic.call(this,a);this.coordinate=b;this.mapBrowserEvent=c}t(Gg,Ic);function Kg(a){a=a?a:{};var b=a.condition?a.condition:kg;this.Aa=void 0!==a.duration?a.duration:200;this.Ma=void 0!==a.out?a.out:!1;Bg.call(this,{condition:b,className:a.className||"ol-dragzoom"})}t(Kg,Bg);
|
|
113
|
-
Kg.prototype.v=function(){var a=this.C,b=a.T(),c=a.Hb(),d=this.qa().A();if(this.Ma){var e=b.Fc(c),d=[a.Db(bb(d)),a.Db(db(d))],a=Ra(void 0),f,g;f=0;for(g=d.length;f<g;++f)Ja(a,d[f]);a=1/$f(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($f(d,c));e=jb(d);e=b.Oa(e);b.animate({resolution:c,center:e,duration:this.Aa,easing:od})};function Lg(a){bg.call(this,{handleEvent:Mg});a=a||{};this.a=function(a){return jg(a)&&lg(a)};this.b=a.condition?a.condition:this.a;this.i=void 0!==a.duration?a.duration:100;this.j=void 0!==a.pixelDelta?a.pixelDelta:128}t(Lg,bg);
|
|
114
|
-
function Mg(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.T(),d=b.na()*this.j,e=0,f=0;40==c?f=-d:37==c?e=-d:39==c?e=d:f=d;d=[e,f];Se(d,b.oa());c=this.i;if(e=b.ca())d=b.Oa([e[0]+d[0],e[1]+d[1]]),c?b.animate({duration:c,easing:qd,center:d}):b.ya(d);a.preventDefault();b=!0}}return!b};function Ng(a){bg.call(this,{handleEvent:Og});a=a?a:{};this.b=a.condition?a.condition:lg;this.a=a.delta?a.delta:1;this.i=void 0!==a.duration?a.duration:100}t(Ng,bg);function Og(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.T(),dg(c,b,void 0,this.i),a.preventDefault(),b=!0)}return!b};function Pg(a){bg.call(this,{handleEvent:Qg});a=a||{};this.i=0;this.G=void 0!==a.duration?a.duration:250;this.P=void 0!==a.timeout?a.timeout:80;this.R=void 0!==a.useAnchor?a.useAnchor:!0;this.a=null;this.l=this.j=this.u=this.b=void 0}t(Pg,bg);
|
|
115
|
-
function Qg(a){var b=a.type;if("wheel"!==b&&"mousewheel"!==b)return!0;a.preventDefault();var b=a.map,c=a.originalEvent;this.R&&(this.a=a.coordinate);var d;"wheel"==a.type?(d=c.deltaY,Bd&&c.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(d/=Fd),c.deltaMode===WheelEvent.DOM_DELTA_LINE&&(d*=40)):"mousewheel"==a.type&&(d=-c.wheelDeltaY,Cd&&(d/=3));if(0===d)return!1;a=Date.now();void 0===this.b&&(this.b=a);if(!this.j||400<a-this.b)this.j=4>Math.abs(d)?Rg:Sg;if(this.j===Rg){b=b.T();this.l?clearTimeout(this.l):
|
|
116
|
-
Bf(b,1,1);this.l=setTimeout(this.v.bind(this),400);d=b.na()*Math.pow(2,d/300);var c=b.l,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=Xf(b,d,this.a);b.ya(b.Oa(g))}b.fb(d);0<f?b.animate({resolution:c,easing:od,anchor:this.a,duration:500}):0>f&&b.animate({resolution:e,easing:od,anchor:this.a,duration:500});this.b=a;return!1}this.i+=d;a=Math.max(this.P-(a-this.b),0);clearTimeout(this.u);this.u=setTimeout(this.B.bind(this,b),a);return!1}
|
|
117
|
-
Pg.prototype.v=function(){this.l=void 0;Bf(this.C.T(),1,-1)};Pg.prototype.B=function(a){a=a.T();0<ud(a)[0]&&vd(a);dg(a,-ya(this.i,-1,1),this.a,this.G);this.j=void 0;this.i=0;this.a=null;this.u=this.b=void 0};var Rg="trackpad",Sg="wheel";function Tg(a){ng.call(this,{handleDownEvent:Ug,handleDragEvent:Vg,handleUpEvent:Wg});a=a||{};this.j=null;this.v=void 0;this.b=!1;this.B=0;this.Aa=void 0!==a.threshold?a.threshold:.3;this.ba=void 0!==a.duration?a.duration:250}t(Tg,ng);
|
|
118
|
-
function Vg(a){var b=0,c=this.a[0],d=this.a[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);void 0!==this.v&&(b=c-this.v,this.B+=b,!this.b&&Math.abs(this.B)>this.Aa&&(this.b=!0));this.v=c;a=a.map;c=a.a.getBoundingClientRect();d=pg(this.a);d[0]-=c.left;d[1]-=c.top;this.j=a.Ea(d);this.b&&(c=a.T(),d=c.oa(),a.render(),cg(c,d+b,this.j))}
|
|
119
|
-
function Wg(a){if(2>this.a.length){a=a.map.T();Bf(a,1,-1);if(this.b){var b=a.oa(),c=this.j,d=this.ba,b=a.constrainRotation(b,0);cg(a,b,c,d)}return!1}return!0}function Ug(a){return 2<=this.a.length?(a=a.map,this.j=null,this.v=void 0,this.b=!1,this.B=0,this.i||Bf(a.T(),1,1),!0):!1}Tg.prototype.l=Ue;function Xg(a){ng.call(this,{handleDownEvent:Yg,handleDragEvent:Zg,handleUpEvent:$g});a=a?a:{};this.B=a.constrainResolution||!1;this.j=null;this.ba=void 0!==a.duration?a.duration:400;this.b=void 0;this.v=1}t(Xg,ng);
|
|
120
|
-
function Zg(a){var b=1,c=this.a[0],d=this.a[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);void 0!==this.b&&(b=this.b/e);this.b=e;a=a.map;var e=a.T(),d=e.na(),f=e.a,g=e.l,c=d*b;c>f?(b=f/d,c=f):c<g&&(b=g/d,c=g);1!=b&&(this.v=b);b=a.a.getBoundingClientRect();d=pg(this.a);d[0]-=b.left;d[1]-=b.top;this.j=a.Ea(d);a.render();eg(e,c,this.j)}
|
|
121
|
-
function $g(a){if(2>this.a.length){a=a.map.T();Bf(a,1,-1);var b=a.na();if(this.B||b<a.l||b>a.a){var c=this.j,d=this.ba,b=a.constrainResolution(b,0,this.v-1);eg(a,b,c,d)}return!1}return!0}function Yg(a){return 2<=this.a.length?(a=a.map,this.j=null,this.b=void 0,this.v=1,this.i||Bf(a.T(),1,1),!0):!1}Xg.prototype.l=Ue;function ah(a){Nc.call(this);var b=pb({},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.O(b);this.a={layer:this,fd:!0}}t(ah,Nc);
|
|
122
|
-
function bh(a){a.a.opacity=ya(a.ld(),0,1);a.a.rg=a.Xc();a.a.visible=a.ac();a.a.extent=a.A();a.a.zIndex=a.Eb();a.a.maxResolution=a.jd();a.a.minResolution=Math.max(a.kd(),0);return a.a}l=ah.prototype;l.A=function(){return this.get("extent")};l.jd=function(){return this.get("maxResolution")};l.kd=function(){return this.get("minResolution")};l.ld=function(){return this.get("opacity")};l.ac=function(){return this.get("visible")};l.Eb=function(){return this.get("zIndex")};
|
|
123
|
-
l.Gf=function(a){this.set("extent",a)};l.kg=function(a){this.set("maxResolution",a)};l.lg=function(a){this.set("minResolution",a)};l.Hf=function(a){this.set("opacity",a)};l.If=function(a){this.set("visible",a)};l.Gd=function(a){this.set("zIndex",a)};function ch(a){var b=a||{};a=pb({},b);delete a.layers;b=b.layers;ah.call(this,a);this.i=[];this.b={};v(this,Pc(dh),this.Me,this);b?Array.isArray(b)?b=new Sc(b.slice()):u(b instanceof Sc,43):b=new Sc;this.set(dh,b)}t(ch,ah);l=ch.prototype;l.Hc=function(){};l.Gb=function(){this.ac()&&this.s()};
|
|
124
|
-
l.Me=function(){this.i.forEach(tc);this.i.length=0;var a=this.get(dh);this.i.push(v(a,"add",this.Le,this),v(a,"remove",this.Ne,this));for(var b in this.b)this.b[b].forEach(tc);qb(this.b);var a=a.a,c,d;b=0;for(c=a.length;b<c;b++)d=a[b],this.b[pa(d).toString()]=[v(d,"propertychange",this.Gb,this),v(d,"change",this.Gb,this)];this.s()};l.Le=function(a){a=a.element;var b=pa(a).toString();this.b[b]=[v(a,"propertychange",this.Gb,this),v(a,"change",this.Gb,this)];this.s()};
|
|
125
|
-
l.Ne=function(a){a=pa(a.element).toString();this.b[a].forEach(tc);delete this.b[a];this.s()};l.Vb=function(a){var b=void 0!==a?a:[],c=b.length;this.get(dh).forEach(function(a){a.Vb(b)});a=bh(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?mb(e.extent,a.extent):a.extent);return b};l.Xc=function(){return"ready"};
|
|
126
|
-
var dh="layers";function eh(a){wb.call(this,{code:a,units:"m",extent:fh,global:!0,worldExtent:gh,getPointResolution:function(a,c){return a/za(c[1]/6378137)}})}t(eh,wb);var hh=6378137*Math.PI,fh=[-hh,-hh,hh,hh],gh=[-180,-85,180,85],Ob="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 eh(a)});
|
|
127
|
-
function Pb(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]=hh*a[e]/180;var f=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));f>hh?f=hh:f<-hh&&(f=-hh);b[e+1]=f}return b}function Qb(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]/hh,b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b};var ih=new sb(6378137);function jh(a,b){wb.call(this,{code:a,units:"degrees",extent:kh,axisOrientation:b,global:!0,metersPerUnit:lh,worldExtent:kh})}t(jh,wb);var kh=[-180,-90,180,90],lh=Math.PI*ih.radius/180,Rb=[new jh("CRS:84"),new jh("EPSG:4326","neu"),new jh("urn:ogc:def:crs:EPSG::4326","neu"),new jh("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new jh("urn:ogc:def:crs:OGC:1.3:CRS84"),new jh("urn:ogc:def:crs:OGC:2:84"),new jh("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new jh("urn:x-ogc:def:crs:EPSG:4326","neu")];function mh(){Kb(Ob);Kb(Rb);Nb()};function nh(a){var b=pb({},a);delete b.source;ah.call(this,b);this.j=this.i=this.b=null;a.map&&this.setMap(a.map);v(this,Pc("source"),this.Re,this);this.Dd(a.source?a.source:null)}t(nh,ah);l=nh.prototype;l.Vb=function(a){a=a?a:[];a.push(bh(this));return a};l.Ka=function(){return this.get("source")||null};l.Xc=function(){var a=this.Ka();return a?a.U():"undefined"};l.Jf=function(){this.s()};l.Re=function(){this.j&&(tc(this.j),this.j=null);var a=this.Ka();a&&(this.j=v(a,"change",this.Jf,this));this.s()};
|
|
128
|
-
l.setMap=function(a){this.b&&(tc(this.b),this.b=null);a||this.s();this.i&&(tc(this.i),this.i=null);a&&(this.b=v(a,"precompose",function(a){var b=bh(this);b.fd=!1;b.zIndex=Infinity;a.frameState.layerStatesArray.push(b);a.frameState.layerStates[pa(this)]=b},this),this.i=v(this,"change",a.render,a),this.s())};l.Dd=function(a){this.set("source",a)};function oh(){this.a={};this.c=0}oh.prototype.clear=function(){this.a={};this.c=0};oh.prototype.get=function(a,b,c){a=b+":"+a+":"+(c?Zc(c):"null");return a in this.a?this.a[a]:null};oh.prototype.set=function(a,b,c,d){this.a[b+":"+a+":"+(c?Zc(c):"null")]=d;++this.c};var ph=new oh;function qh(){return[1,0,0,1,0,0]}function rh(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 sh(a,b,c,d,e,f,g,h){var k=Math.sin(f);f=Math.cos(f);a[0]=d*f;a[1]=e*k;a[2]=-d*k;a[3]=e*f;a[4]=g*d*f-h*d*k+b;a[5]=g*e*k+h*e*f+c;return a};function th(a,b){this.i=b;this.c={};this.b={}}t(th,Gc);l=th.prototype;l.$=function(){for(var a in this.c)Hc(this.c[a])};function uh(){if(32<ph.c){var a=0,b,c;for(b in ph.a)c=ph.a[b],a++&3||Lc(c)||(delete ph.a[b],--ph.c)}}
|
|
129
|
-
l.Da=function(a,b,c,d,e,f,g){function h(a,c){var f=pa(a).toString(),g=b.layerStates[pa(c)].fd;if(!(f in b.skippedFeatureUids)||g)return d.call(e,a,g?c:null)}var k,m=b.viewState,n=m.resolution,p=m.projection,m=a;if(p.g){var p=p.A(),r=hb(p),x=a[0];if(x<p[0]||x>p[2])m=[x+r*Math.ceil((p[0]-x)/r),a[1]]}p=b.layerStatesArray;for(r=p.length-1;0<=r;--r){var A=p[r],x=A.layer;if(A.visible&&n>=A.minResolution&&n<A.maxResolution&&f.call(g,x)&&(A=vh(this,x),x.Ka()&&(k=A.Da(x.Ka().P?m:a,b,c,h,e)),k))return k}};
|
|
130
|
-
function vh(a,b){var c=pa(b).toString();if(c in a.c)return a.c[c];var d=b.Hc(a);a.c[c]=d;a.b[c]=v(d,"change",a.Ke,a);return d}l.Ke=function(){this.i.render()};l.ud=oa;l.dg=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];tc(this.b[d]);delete this.b[d];Hc(e)}};function ka(a,b){return a.zIndex-b.zIndex};function wh(a,b,c,d,e){Ic.call(this,a);this.vectorContext=b;this.frameState=c;this.context=d;this.glContext=e}t(wh,Ic);var xh=[0,0,0,1],yh=[],zh=[0,0,0,1];function Ah(a,b,c,d){b&&(a.translate(c,d),a.rotate(b),a.translate(-c,-d))};function Bh(){}l=Bh.prototype;l.Bb=function(){};l.dc=function(){};l.Sb=function(){};l.Ic=function(){};l.Jc=function(){};l.Kc=function(){};l.Lc=function(){};l.Mc=function(){};l.Nc=function(){};l.Oc=function(){};l.Pc=function(){};l.zd=function(){};l.Bd=function(){};l.pd=function(){};function Ch(a,b,c,d,e){this.g=a;this.pa=b;this.b=c;this.v=d;this.tb=e;this.M=this.a=this.c=this.X=this.R=this.P=null;this.Aa=this.ba=this.V=this.C=this.sa=this.B=0;this.Ma=!1;this.o=this.ib=0;this.jb=!1;this.G=0;this.ka="";this.lb=this.kb=0;this.mb=!1;this.j=this.nb=0;this.va=this.l=this.i=null;this.u=[];this.sb=qh()}t(Ch,Bh);
|
|
131
|
-
function Dh(a,b,c){if(a.M){b=Ve(b,0,c,2,a.v,a.u);c=a.g;var d=a.sb,e=c.globalAlpha;1!=a.V&&(c.globalAlpha=e*a.V);var f=a.ib;a.Ma&&(f+=a.tb);var g,h;g=0;for(h=b.length;g<h;g+=2){var k=b[g]-a.B,m=b[g+1]-a.sa;a.jb&&(k=Math.round(k),m=Math.round(m));if(f||1!=a.o){var n=k+a.B,p=m+a.sa;sh(d,n,p,a.o,a.o,f,-n,-p);c.setTransform.apply(c,d)}c.drawImage(a.M,a.ba,a.Aa,a.G,a.C,k,m,a.G,a.C)}(f||1!=a.o)&&c.setTransform(1,0,0,1,0,0);1!=a.V&&(c.globalAlpha=e)}}
|
|
132
|
-
function Eh(a,b,c,d){var e=0;if(a.va&&""!==a.ka){a.i&&Fh(a,a.i);a.l&&Gh(a,a.l);var f=a.va,g=a.g,h=a.X;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.X={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline});b=Ve(b,e,c,d,a.v,a.u);f=a.g;g=a.nb;for(a.mb&&(g+=a.tb);e<c;e+=d){var h=b[e]+
|
|
133
|
-
a.kb,k=b[e+1]+a.lb;if(g||1!=a.j){var m=sh(a.sb,h,k,a.j,a.j,g,-h,-k);f.setTransform.apply(f,m)}a.l&&f.strokeText(a.ka,h,k);a.i&&f.fillText(a.ka,h,k)}(g||1!=a.j)&&f.setTransform(1,0,0,1,0,0)}}function Hh(a,b,c,d,e,f){var g=a.g;a=Ve(b,c,d,e,a.v,a.u);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 Ih(a,b,c,d,e){var f,g;f=0;for(g=d.length;f<g;++f)c=Hh(a,b,c,d[f],e,!0);return c}l=Ch.prototype;
|
|
134
|
-
l.Sb=function(a){if(nb(this.b,a.A())){if(this.c||this.a){this.c&&Fh(this,this.c);this.a&&Gh(this,this.a);var b;b=this.v;var c=this.u,d=a.f;b=d?Ve(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.g;d.beginPath();d.arc(b[0],b[1],c,0,2*Math.PI);this.c&&d.fill();this.a&&d.stroke()}""!==this.ka&&Eh(this,a.ca(),2,2)}};l.dc=function(a){this.zd(a.Fa(),a.La());this.Bd(a.aa());this.pd(a.Ja())};
|
|
135
|
-
l.Bb=function(a){switch(a.S()){case "Point":this.Oc(a);break;case "LineString":this.Kc(a);break;case "Polygon":this.Pc(a);break;case "MultiPoint":this.Mc(a);break;case "MultiLineString":this.Lc(a);break;case "MultiPolygon":this.Nc(a);break;case "GeometryCollection":this.Jc(a);break;case "Circle":this.Sb(a)}};l.Ic=function(a,b){var c=(0,b.ob)(a);c&&nb(this.b,c.A())&&(this.dc(b),this.Bb(c))};l.Jc=function(a){a=a.a;var b,c;b=0;for(c=a.length;b<c;++b)this.Bb(a[b])};
|
|
136
|
-
l.Oc=function(a){var b=a.f;a=a.a;this.M&&Dh(this,b,b.length);""!==this.ka&&Eh(this,b,b.length,a)};l.Mc=function(a){var b=a.f;a=a.a;this.M&&Dh(this,b,b.length);""!==this.ka&&Eh(this,b,b.length,a)};l.Kc=function(a){if(nb(this.b,a.A())){if(this.a){Gh(this,this.a);var b=this.g,c=a.f;b.beginPath();Hh(this,c,0,c.length,a.a,!1);b.stroke()}""!==this.ka&&(a.C!=a.g&&(a.l=a.Qc(.5,a.l),a.C=a.g),Eh(this,a.l,2,2))}};
|
|
137
|
-
l.Lc=function(a){var b=a.A();if(nb(this.b,b)){if(this.a){Gh(this,this.a);var b=this.g,c=a.f,d=0,e=a.Qa(),f=a.a;b.beginPath();var g,h;g=0;for(h=e.length;g<h;++g)d=Hh(this,c,d,e[g],f,!1);b.stroke()}if(""!==this.ka){b=[];c=a.f;e=0;d=a.b;a=a.a;f=0;for(g=d.length;f<g;++f)h=d[f],e=Jh(c,e,h,a,.5),fa(b,e),e=h;Eh(this,b,b.length,2)}}};
|
|
138
|
-
l.Pc=function(a){if(nb(this.b,a.A())){if(this.a||this.c){this.c&&Fh(this,this.c);this.a&&Gh(this,this.a);var b=this.g;b.beginPath();Ih(this,yf(a),0,a.Qa(),a.a);this.c&&b.fill();this.a&&b.stroke()}""!==this.ka&&(a=zf(a),Eh(this,a,2,2))}};
|
|
139
|
-
l.Nc=function(a){if(nb(this.b,a.A())){if(this.a||this.c){this.c&&Fh(this,this.c);this.a&&Gh(this,this.a);var b=this.g,c=Kh(a),d=0,e=a.b,f=a.a,g,h;b.beginPath();g=0;for(h=e.length;g<h;++g)d=Ih(this,c,d,e[g],f);this.c&&b.fill();this.a&&b.stroke()}""!==this.ka&&(a=Lh(a),Eh(this,a,a.length,2))}};function Fh(a,b){var c=a.g,d=a.P;d?d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle):(c.fillStyle=b.fillStyle,a.P={fillStyle:b.fillStyle})}
|
|
140
|
-
function Gh(a,b){var c=a.g,d=a.R;if(d){d.lineCap!=b.lineCap&&(d.lineCap=c.lineCap=b.lineCap);var e;if(e=Gd){a:{e=d.lineDash;var f=b.lineDash,g=e.length;if(g!==f.length)e=!1;else{for(var h=0;h<g;h++)if(e[h]!==f[h]){e=!1;break a}e=!0}}e=!e}e&&c.setLineDash(d.lineDash=b.lineDash);d.lineJoin!=b.lineJoin&&(d.lineJoin=c.lineJoin=b.lineJoin);d.lineWidth!=b.lineWidth&&(d.lineWidth=c.lineWidth=b.lineWidth);d.miterLimit!=b.miterLimit&&(d.miterLimit=c.miterLimit=b.miterLimit);d.strokeStyle!=b.strokeStyle&&(d.strokeStyle=
|
|
141
|
-
c.strokeStyle=b.strokeStyle)}else c.lineCap=b.lineCap,Gd&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.R={lineCap:b.lineCap,lineDash:b.lineDash,lineJoin:b.lineJoin,lineWidth:b.lineWidth,miterLimit:b.miterLimit,strokeStyle:b.strokeStyle}}
|
|
142
|
-
l.zd=function(a,b){if(a){var c=a.a;this.c={fillStyle:hd(c?c:xh)}}else this.c=null;if(b){var c=b.c,d=b.b,e=b.a,f=b.o,g=b.i,h=b.g,k=b.j;this.a={lineCap:void 0!==d?d:"round",lineDash:e?e:yh,lineDashOffset:f?f:0,lineJoin:void 0!==g?g:"round",lineWidth:this.pa*(void 0!==h?h:1),miterLimit:void 0!==k?k:10,strokeStyle:hd(c?c:zh)}}else this.a=null};
|
|
143
|
-
l.Bd=function(a){if(a){var b=Mh(a),c=a.aa(1),d=Nh(a),e=Oh(a);this.B=b[0];this.sa=b[1];this.C=e[1];this.M=c;this.V=a.C;this.ba=d[0];this.Aa=d[1];this.Ma=a.G;this.ib=a.pa;this.o=a.v;this.jb=a.va;this.G=e[0]}else this.M=null};
|
|
144
|
-
l.pd=function(a){if(a){var b=a.Fa();b?(b=b.a,this.i={fillStyle:hd(b?b:xh)}):this.i=null;var c=a.La();if(c){var b=c.c,d=c.b,e=c.a,f=c.o,g=c.i,h=c.g,c=c.j;this.l={lineCap:void 0!==d?d:"round",lineDash:e?e:yh,lineDashOffset:f?f:0,lineJoin:void 0!==g?g:"round",lineWidth:void 0!==h?h:1,miterLimit:void 0!==c?c:10,strokeStyle:hd(b?b:zh)}}else this.l=null;var b=a.c,d=a.g,e=a.b,f=a.o,g=a.i,h=a.a,c=a.Ja(),k=a.j;a=a.l;this.va={font:void 0!==b?b:"10px sans-serif",textAlign:void 0!==k?k:"center",textBaseline:void 0!==
|
|
145
|
-
a?a:"middle"};this.ka=void 0!==c?c:"";this.kb=void 0!==d?this.pa*d:0;this.lb=void 0!==e?this.pa*e:0;this.mb=void 0!==f?f:!1;this.nb=void 0!==g?g:0;this.j=this.pa*(void 0!==h?h:1)}else this.ka=""};function Ph(a,b){th.call(this,0,b);this.o=jd();this.a=this.o.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.g=!0;this.j=qh()}t(Ph,th);
|
|
146
|
-
function Wh(a,b,c){var d=a.i,e=a.o;if(Lc(d,b)){var f=c.extent,g=c.pixelRatio,h=c.viewState.rotation,k=c.viewState,m=c.pixelRatio/k.resolution;a=sh(a.j,a.a.width/2,a.a.height/2,m,-m,-k.rotation,-k.center[0],-k.center[1]);d.c(new wh(b,new Ch(e,g,f,a,h),c,e,null))}}Ph.prototype.S=function(){return"canvas"};
|
|
147
|
-
Ph.prototype.ud=function(a){if(a){var b=this.o,c=a.pixelRatio,d=Math.round(a.size[0]*c),e=Math.round(a.size[1]*c);this.a.width!=d||this.a.height!=e?(this.a.width=d,this.a.height=e):b.clearRect(0,0,d,e);var f=a.viewState.rotation,g=a.viewState,h=a.coordinateToPixelTransform,k=a.pixelToCoordinateTransform;sh(h,a.size[0]/2,a.size[1]/2,1/g.resolution,-1/g.resolution,-g.rotation,-g.center[0],-g.center[1]);k[0]=h[0];k[1]=h[1];k[2]=h[2];k[3]=h[3];k[4]=h[4];k[5]=h[5];var m=k[0]*k[3]-k[1]*k[2];u(!!m,32);var n=
|
|
148
|
-
k[0],p=k[1],r=k[2],x=k[3],A=k[4],O=k[5];k[0]=x/m;k[1]=-p/m;k[2]=-r/m;k[3]=n/m;k[4]=(r*O-x*A)/m;k[5]=-(n*O-p*A)/m;Wh(this,"precompose",a);var T=a.layerStatesArray;ia(T);Ah(b,f,d/2,e/2);var S=a.viewState.resolution,Y,ja,ma,sa,da;Y=0;for(ja=T.length;Y<ja;++Y)if(da=T[Y],ma=da.layer,sa=vh(this,ma),da.visible&&S>=da.minResolution&&S<da.maxResolution&&"ready"==da.rg){var ga;var na,Na,V,wa,ha,Ba,Zb,Nd,Cf,Df,Qh,$b,ac,ua,aa=sa,Ya=a,Rh=da,Sa=Ya.pixelRatio,Od=Ya.size,Ef=Ya.viewState,zb=Ef.projection,ad=Ef.resolution,
|
|
149
|
-
Pd=Ef.center,Sh=aa.a,Ia=Sh.Ka(),Th=Ia.g,Ca=Ia.Ra(zb),Ta=lc(Ca,ad,0),xc=Ca.a[Ta],Za=Math.round(ad/xc)||1,yc=Ya.extent;void 0!==Rh.extent&&(yc=mb(yc,Rh.extent));if(gb(yc))ga=!1;else{var $a=fc(Ca,yc,xc),Qd,Rd=$a,Sd=Ca.c?Ca.c:Ca.g[Ta],Td=Ca.a[Ta],Ud=Fa(jc(Ca,Ta),Ca.j);Qd=Qa(Sd[0]+Rd.I*Ud[0]*Td,Sd[1]+Rd.L*Ud[1]*Td,Sd[0]+(Rd.K+1)*Ud[0]*Td,Sd[1]+(Rd.N+1)*Ud[1]*Td,void 0);var Vd=Ia.B,bd={};bd[Ta]={};var Uh=Xh(Ia,zb,bd),Ff=aa.R,Vh=aa.X,Gf=!1;for(ac=$a.I;ac<=$a.K;++ac)for($b=$a.L;$b<=$a.N;++$b){ua=$h(Ia,Ta,
|
|
150
|
-
ac,$b,Sa,zb);if(!ji(aa,ua))b:{var Hf=ua;if(Hf.a){var cd=Hf.a;do{if(2==cd.U()){ua=cd;break b}cd=cd.a}while(cd)}ua=Hf}if(ji(aa,ua))2==ua.U()&&(bd[Ta][ua.Ca.toString()]=ua,Gf||-1!=aa.j.indexOf(ua)||(Gf=!0));else{var If;b:{for(var Jf=Ca,Yh=ua.Ca,Bk=Uh,Ck=Vh,Dk=kc(Jf,Yh,Ff),Wd=Yh[0]-1;Wd>=Jf.minZoom;){if(Bk.call(null,Wd,hc(Jf,Dk,Wd,Ck))){If=!0;break b}--Wd}If=!1}if(!If){var Xd;var Kf=Ca,Lf=ua.Ca,Ek=Vh;if(Lf[0]<Kf.maxZoom){var Fk=kc(Kf,Lf,Ff);Xd=hc(Kf,Fk,Lf[0]+1,Ek)}else Xd=null;Xd&&Uh(Ta+1,Xd)}}}var Zh=
|
|
151
|
-
Ya.viewHints;if(!(aa.i&&16<Date.now()-Ya.time&&(Zh[0]||Zh[1])||!Gf&&aa.o&&Oa(aa.o,yc)&&aa.P==Th)||Za!=aa.C){var ai=oi(Ia,Ta,zb),Mf=Math.round(($a.K-$a.I+1)*ai[0]/Za),Nf=Math.round(($a.N-$a.L+1)*ai[0]/Za),Of=aa.u,Yd=Of.canvas,Gk=Ia.Xb(zb);Yd.width!=Mf||Yd.height!=Nf?(aa.C=Za,Yd.width=Mf,Yd.height=Nf):(Of.clearRect(0,0,Mf,Nf),Za=aa.C);aa.j.length=0;var Pf=Object.keys(bd).map(Number);Pf.sort(ca);Zb=0;for(Ba=Pf.length;Zb<Ba;++Zb){Nd=Pf[Zb];Cf=oi(Ia,Nd,zb);Qh=Ca.a[Nd];Df=Qh/xc;wa=Vd*Ia.Sc(zb);V=bd[Nd];
|
|
152
|
-
for(var Hk in V){ua=V[Hk];ha=kc(Ca,ua.Ca,Ff);ac=(ha[0]-Qd[0])/xc*Vd/Za;$b=(Qd[3]-ha[3])/xc*Vd/Za;Na=Cf[0]*Df/Za;na=Cf[1]*Df/Za;Gk||Of.clearRect(ac,$b,Na,na);var Ik=aa,Jk=ac,Kk=$b,Lk=Na,Mk=na,Zd=wa,$d=ua.aa();$d&&Ik.u.drawImage($d,Zd,Zd,$d.width-2*Zd,$d.height-2*Zd,Jk,Kk,Lk,Mk);aa.j.push(ua)}}aa.P=Th;aa.i=xc*Sa/Vd*Za;aa.o=Qd}var bi=aa.i/ad,ci=sh(aa.B,Sa*Od[0]/2,Sa*Od[1]/2,bi,bi,0,(aa.o[0]-Pd[0])/aa.i*Sa,(Pd[1]-aa.o[3])/aa.i*Sa);sh(aa.v,Sa*Od[0]/2-ci[4],Sa*Od[1]/2-ci[5],Sa/ad,-Sa/ad,0,-Pd[0],-Pd[1]);
|
|
153
|
-
var zc=Ya.usedTiles,Nk=Ta,Qf=$a,Ac=pa(Ia).toString(),ae=Nk.toString();if(Ac in zc)if(ae in zc[Ac]){var Ab=zc[Ac][ae],Bb=Qf;Bb.I<Ab.I&&(Ab.I=Bb.I);Bb.K>Ab.K&&(Ab.K=Bb.K);Bb.L<Ab.L&&(Ab.L=Bb.L);Bb.N>Ab.N&&(Ab.N=Bb.N)}else zc[Ac][ae]=Qf;else zc[Ac]={},zc[Ac][ae]=Qf;var Cb=void 0,dd=void 0,ed=void 0,di=void 0,Bc=void 0,Cc=void 0,be=Ya,Rf=Ia,ce=Ca,Ok=Sa,ei=zb,Pk=yc,fi=Ta,Qk=Sh.Wc(),de=pa(Rf).toString();de in be.wantedTiles||(be.wantedTiles[de]={});for(var Rk=be.wantedTiles[de],gi=be.tileQueue,Sk=ce.minZoom,
|
|
154
|
-
Cb=fi;Cb>=Sk;--Cb)for(Bc=hc(ce,Pk,Cb,Bc),di=ce.a[Cb],ed=Bc.I;ed<=Bc.K;++ed)for(dd=Bc.L;dd<=Bc.N;++dd)fi-Cb<=Qk?(Cc=$h(Rf,Cb,ed,dd,Ok,ei),0==Cc.U()&&(Rk[Cc.Ta()]=!0,Cc.Ta()in gi.g||gi.j([Cc,de,ic(ce,Cc.Ca),di]))):Rf.Id(Cb,ed,dd,ei);pi(Ya,Ia);var hi=Ya,Db=Ia.C;void 0!==Db&&("string"===typeof Db?hi.logos[Db]="":Db&&(u("string"==typeof Db.href,44),u("string"==typeof Db.src,45),hi.logos[Db.src]=Db.href));ga=0<aa.j.length}if(ga){var ee=sa,Sf=a,ii=da,Eb=b;qi(ee,"precompose",Eb,Sf);var Dc=ee.aa();if(Dc){var fd=
|
|
155
|
-
ii.extent,ki=void 0!==fd;if(ki){var kb=Eb,Fb=Sf,ab=Fb.pixelRatio,li=Fb.size[0]*ab,mi=Fb.size[1]*ab,ni=Fb.viewState.rotation,Tf=eb(fd),Uf=db(fd),Vf=cb(fd),Wf=bb(fd);rh(Fb.coordinateToPixelTransform,Tf);rh(Fb.coordinateToPixelTransform,Uf);rh(Fb.coordinateToPixelTransform,Vf);rh(Fb.coordinateToPixelTransform,Wf);kb.save();Ah(kb,-ni,li/2,mi/2);kb.beginPath();kb.moveTo(Tf[0]*ab,Tf[1]*ab);kb.lineTo(Uf[0]*ab,Uf[1]*ab);kb.lineTo(Vf[0]*ab,Vf[1]*ab);kb.lineTo(Wf[0]*ab,Wf[1]*ab);kb.clip();Ah(kb,ni,li/2,mi/
|
|
156
|
-
2)}var fe=ee.B,Uk=Eb.globalAlpha;Eb.globalAlpha=ii.opacity;Eb.drawImage(Dc,0,0,+Dc.width,+Dc.height,Math.round(fe[4]),Math.round(fe[5]),Math.round(Dc.width*fe[0]),Math.round(Dc.height*fe[3]));Eb.globalAlpha=Uk;ki&&Eb.restore()}qi(ee,"postcompose",Eb,Sf)}}Ah(b,-f,d/2,e/2);Wh(this,"postcompose",a);this.g||(this.a.style.display="",this.g=!0);for(var Vk in this.c)if(!(Vk in a.layerStates)){a.postRenderFunctions.push(this.dg.bind(this));break}a.postRenderFunctions.push(uh)}else this.g&&(this.a.style.display=
|
|
157
|
-
"none",this.g=!1)};function ri(a){a=a||{};this.c=void 0!==a.color?a.color:null;this.b=a.lineCap;this.a=void 0!==a.lineDash?a.lineDash:null;this.o=a.lineDashOffset;this.i=a.lineJoin;this.j=a.miterLimit;this.g=a.width}ri.prototype.clone=function(){var a=this.c;return new ri({color:a&&a.slice?a.slice():a||void 0,lineCap:this.b,lineDash:this.a?this.a.slice():void 0,lineDashOffset:this.o,lineJoin:this.i,miterLimit:this.j,width:this.g})};ri.prototype.setLineDash=function(a){this.a=a};(function(){var a={},b={J:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.J=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Rg=c()}})(function(){return function d(a,b,g){function e(h,k){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!k&&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]={J:{}};a[h][0].call(m.J,function(b){var d=
|
|
158
|
-
a[h][1][b];return e(d?d:b)},m,m.J,d,a,b,g)}return b[h].J}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,r){f=f||0;g=g||a.length-1;for(r=r||h;g>f;){if(600<g-f){var k=g-f+1,m=b-f+1,n=Math.log(k),p=.5*Math.exp(2*n/3),n=.5*Math.sqrt(n*p*(k-p)/k)*(0>m-k/2?-1:1);d(a,b,Math.max(f,Math.floor(b-m*p/k+n)),Math.min(g,Math.floor(b+(k-m)*p/k+n)),r)}k=a[b];m=f;p=g;e(a,f,b);for(0<r(a[g],k)&&e(a,f,g);m<p;){e(a,m,p);m++;for(p--;0>r(a[m],k);)m++;
|
|
159
|
-
for(;0<r(a[p],k);)p--}0===r(a[f],k)?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.J=d},{}],2:[function(a,b){function d(a,b){if(!(this instanceof d))return new d(a,b);this.Ob=Math.max(4,a||9);this.yc=Math.max(2,Math.ceil(.4*this.Ob));b&&this.Yd(b);this.clear()}function e(a,b){h(a,0,a.children.length,b,a)}function h(a,b,d,e,f){f||(f=O(null));f.I=Infinity;f.L=Infinity;f.K=-Infinity;f.N=-Infinity;for(var g;b<
|
|
160
|
-
d;b++)g=a.children[b],k(f,a.ma?e(g):g);return f}function k(a,b){a.I=Math.min(a.I,b.I);a.L=Math.min(a.L,b.L);a.K=Math.max(a.K,b.K);a.N=Math.max(a.N,b.N)}function m(a,b){return a.I-b.I}function n(a,b){return a.L-b.L}function p(a){return(a.K-a.I)*(a.N-a.L)}function r(a){return a.K-a.I+(a.N-a.L)}function x(a,b){return a.I<=b.I&&a.L<=b.L&&b.K<=a.K&&b.N<=a.N}function A(a,b){return b.I<=a.K&&b.L<=a.N&&b.K>=a.I&&b.N>=a.L}function O(a){return{children:a,height:1,ma:!0,I:Infinity,L:Infinity,K:-Infinity,N:-Infinity}}
|
|
161
|
-
function T(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,S(a,h,b,d,f),g.push(b,h,h,d))}b.J=d;var S=a("quickselect");d.prototype={all:function(){return this.tc(this.data,[])},search:function(a){var b=this.data,d=[],e=this.ra;if(!A(a,b))return d;for(var f=[],g,h,k,m;b;){g=0;for(h=b.children.length;g<h;g++)k=b.children[g],m=b.ma?e(k):k,A(a,m)&&(b.ma?d.push(k):x(a,m)?this.tc(k,d):f.push(k));b=f.pop()}return d},load:function(a){if(!a||!a.length)return this;
|
|
162
|
-
if(a.length<this.yc){for(var b=0,d=a.length;b<d;b++)this.We(a[b]);return this}a=this.vc(a.slice(),0,a.length-1,0);this.data.children.length?this.data.height===a.height?this.Bc(this.data,a):(this.data.height<a.height&&(b=this.data,this.data=a,a=b),this.xc(a,this.data.height-a.height-1,!0)):this.data=a;return this},We:function(a){a&&this.xc(a,this.data.height-1);return this},clear:function(){this.data=O([]);return this},remove:function(a,b){if(!a)return this;for(var d=this.data,e=this.ra(a),f=[],g=
|
|
163
|
-
[],h,k,m,n;d||f.length;){d||(d=f.pop(),k=f[f.length-1],h=g.pop(),n=!0);if(d.ma){a:{m=a;var p=d.children,r=b;if(r){for(var A=0;A<p.length;A++)if(r(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.Wd(f);break}}n||d.ma||!x(d,e)?k?(h++,d=k.children[h],n=!1):d=null:(f.push(d),g.push(h),h=0,k=d,d=d.children[0])}return this},ra:function(a){return a},Qb:m,Rb:n,toJSON:function(){return this.data},tc:function(a,b){for(var d=[];a;)a.ma?b.push.apply(b,a.children):
|
|
164
|
-
d.push.apply(d,a.children),a=d.pop();return b},vc:function(a,b,d,f){var g=d-b+1,h=this.Ob,k;if(g<=h)return k=O(a.slice(b,d+1)),e(k,this.ra),k;f||(f=Math.ceil(Math.log(g)/Math.log(h)),h=Math.ceil(g/Math.pow(h,f-1)));k=O([]);k.ma=!1;k.height=f;var g=Math.ceil(g/h),h=g*Math.ceil(Math.sqrt(h)),m,n,p;for(T(a,b,d,h,this.Qb);b<=d;b+=h)for(n=Math.min(b+h-1,d),T(a,b,n,g,this.Rb),m=b;m<=n;m+=g)p=Math.min(m+g-1,n),k.children.push(this.vc(a,m,p,f-1));e(k,this.ra);return k},Vd:function(a,b,d,e){for(var f,g,h,
|
|
165
|
-
k,m,n,r,x;;){e.push(b);if(b.ma||e.length-1===d)break;r=x=Infinity;f=0;for(g=b.children.length;f<g;f++)h=b.children[f],m=p(h),n=(Math.max(h.K,a.K)-Math.min(h.I,a.I))*(Math.max(h.N,a.N)-Math.min(h.L,a.L))-m,n<x?(x=n,r=m<r?m:r,k=h):n===x&&m<r&&(r=m,k=h);b=k||b.children[0]}return b},xc:function(a,b,d){var e=this.ra;d=d?a:e(a);var e=[],f=this.Vd(d,this.data,b,e);f.children.push(a);for(k(f,d);0<=b;)if(e[b].children.length>this.Ob)this.be(e,b),b--;else break;this.Sd(d,e,b)},be:function(a,b){var d=a[b],f=
|
|
166
|
-
d.children.length,g=this.yc;this.Td(d,g,f);f=this.Ud(d,g,f);f=O(d.children.splice(f,d.children.length-f));f.height=d.height;f.ma=d.ma;e(d,this.ra);e(f,this.ra);b?a[b-1].children.push(f):this.Bc(d,f)},Bc:function(a,b){this.data=O([a,b]);this.data.height=a.height+1;this.data.ma=!1;e(this.data,this.ra)},Ud:function(a,b,d){var e,f,g,k,m,n,r;m=n=Infinity;for(e=b;e<=d-b;e++)f=h(a,0,e,this.ra),g=h(a,e,d,this.ra),k=Math.max(0,Math.min(f.K,g.K)-Math.max(f.I,g.I))*Math.max(0,Math.min(f.N,g.N)-Math.max(f.L,
|
|
167
|
-
g.L)),f=p(f)+p(g),k<m?(m=k,r=e,n=f<n?f:n):k===m&&f<n&&(n=f,r=e);return r},Td:function(a,b,d){var e=a.ma?this.Qb:m,f=a.ma?this.Rb:n,g=this.uc(a,b,d,e);b=this.uc(a,b,d,f);g<b&&a.children.sort(e)},uc:function(a,b,d,e){a.children.sort(e);e=this.ra;var f=h(a,0,b,e),g=h(a,d-b,d,e),m=r(f)+r(g),n,p;for(n=b;n<d-b;n++)p=a.children[n],k(f,a.ma?e(p):p),m+=r(f);for(n=d-b-1;n>=b;n--)p=a.children[n],k(g,a.ma?e(p):p),m+=r(g);return m},Sd:function(a,b,d){for(;0<=d;d--)k(b[d],a)},Wd:function(a){for(var b=a.length-
|
|
168
|
-
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.ra)},Yd:function(a){var b=["return a"," - b",";"];this.Qb=new Function("a","b",b.join(a[0]));this.Rb=new Function("a","b",b.join(a[1]));this.ra=new Function("a","return {minX: a"+a[0]+", minY: a"+a[1]+", maxX: a"+a[2]+", maxY: a"+a[3]+"};")}}},{quickselect:1}]},{},[2])(2)})})();function si(){this.b=0;this.g={};this.c=this.a=null}l=si.prototype;l.clear=function(){this.b=0;this.g={};this.c=this.a=null};l.forEach=function(a,b){for(var c=this.a;c;)a.call(b,c.hb,c.Sa,this),c=c.xa};l.get=function(a){a=this.g[a];u(!!a,15);if(a===this.c)return a.hb;a===this.a?(this.a=this.a.xa,this.a.eb=null):(a.xa.eb=a.eb,a.eb.xa=a.xa);a.xa=null;a.eb=this.c;this.c=this.c.xa=a;return a.hb};
|
|
169
|
-
l.pop=function(){var a=this.a;delete this.g[a.Sa];a.xa&&(a.xa.eb=null);this.a=a.xa;this.a||(this.c=null);--this.b;return a.hb};l.replace=function(a,b){this.get(a);this.g[a].hb=b};l.set=function(a,b){u(!(a in this.g),16);var c={Sa:a,xa:null,eb:this.c,hb:b};this.c?this.c.xa=c:this.a=c;this.c=c;this.g[a]=c;++this.b};var ti=["canvas","webgl"];
|
|
170
|
-
function E(a){Nc.call(this);var b=ui(a);this.Md=void 0!==a.loadTilesWhileAnimating?a.loadTilesWhileAnimating:!1;this.Nd=void 0!==a.loadTilesWhileInteracting?a.loadTilesWhileInteracting:!1;this.Pd=void 0!==a.pixelRatio?a.pixelRatio:Fd;this.Od=b.logos;this.Ma=function(){this.j=void 0;this.eg.call(this,Date.now())}.bind(this);this.sb=qh();this.Qd=qh();this.tb=0;this.b=null;this.nb=Ha();this.G=this.X=this.ba=null;this.a=document.createElement("DIV");this.a.className="ol-viewport"+(Id?" ol-touch":"");
|
|
171
|
-
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.R=document.createElement("DIV");this.R.className="ol-overlaycontainer";this.a.appendChild(this.R);this.P=document.createElement("DIV");this.P.className="ol-overlaycontainer-stopevent";a="click dblclick mousedown touchstart mspointerdown pointerdown mousewheel wheel".split(" ");for(var c=0,d=a.length;c<d;++c)v(this.P,
|
|
172
|
-
a[c],Jc);this.a.appendChild(this.P);this.kb=new Ee(this);for(var e in yd)v(this.kb,yd[e],this.cd,this);this.jb=b.keyboardEventTarget;this.B=null;v(this.a,"wheel",this.bb,this);v(this.a,"mousewheel",this.bb,this);this.u=b.controls;this.l=b.interactions;this.v=b.overlays;this.gc={};this.C=new b.gg(this.a,this);this.Aa=null;this.mb=[];this.lb=new Ke(this.Ce.bind(this),this.Te.bind(this));this.Ld={};v(this,Pc("layergroup"),this.Je,this);v(this,Pc("view"),this.Ue,this);v(this,Pc("size"),this.Qe,this);
|
|
173
|
-
v(this,Pc("target"),this.Se,this);this.O(b.values);this.u.forEach(function(a){a.setMap(this)},this);v(this.u,"add",function(a){a.element.setMap(this)},this);v(this.u,"remove",function(a){a.element.setMap(null)},this);this.l.forEach(function(a){a.setMap(this)},this);v(this.l,"add",function(a){a.element.setMap(this)},this);v(this.l,"remove",function(a){a.element.setMap(null)},this);this.v.forEach(this.Cc,this);v(this.v,"add",function(a){this.Cc(a.element)},this);v(this.v,"remove",function(a){var b=
|
|
174
|
-
a.element.a();void 0!==b&&delete this.gc[b.toString()];a.element.setMap(null)},this)}t(E,Nc);l=E.prototype;l.ce=function(a){this.u.push(a)};l.de=function(a){this.l.push(a)};l.ee=function(a){this.Za().get(dh).push(a)};l.fe=function(a){this.v.push(a)};l.Cc=function(a){var b=a.a();void 0!==b&&(this.gc[b.toString()]=a);a.setMap(this)};
|
|
175
|
-
l.$=function(){Hc(this.kb);Hc(this.C);Fc(this.a,"wheel",this.bb,this);Fc(this.a,"mousewheel",this.bb,this);this.i&&(window.removeEventListener("resize",this.i,!1),this.i=void 0);this.j&&(cancelAnimationFrame(this.j),this.j=void 0);this.gd(null);Nc.prototype.$.call(this)};l.ne=function(a,b,c){if(this.b)return a=this.Ea(a),c=c?c:{},this.C.Da(a,this.b,void 0!==c.hitTolerance?c.hitTolerance*this.b.pixelRatio:0,b,null,c.layerFilter?c.layerFilter:Te,null)};
|
|
176
|
-
l.uf=function(a,b,c,d,e){if(this.b){a:{var f=this.C,g=this.b;c=void 0!==c?c:null;d=d?d:Te;e=void 0!==e?e:null;var h,k=g.viewState.resolution,m=g.layerStatesArray,n=m.length;a=rh(g.pixelToCoordinateTransform,a.slice());for(--n;0<=n;--n){h=m[n];var p=h.layer;if(h.visible&&k>=h.minResolution&&k<h.maxResolution&&d.call(e,p)&&(h=vh(f,p).l(a,g,b,c))){b=h;break a}}b=void 0}return b}};
|
|
177
|
-
l.Ve=function(a,b){if(!this.b)return!1;var c=this.Ea(a);b=b?b:{};var d=this.C;return void 0!==d.Da(c,this.b,void 0!==b.hitTolerance?b.hitTolerance*this.b.pixelRatio:0,Te,d,b.layerFilter?b.layerFilter:Te,null)};l.re=function(a){return this.Ea(this.Ub(a))};l.Ub=function(a){var b=this.a.getBoundingClientRect();a=a.changedTouches?a.changedTouches[0]:a;return[a.clientX-b.left,a.clientY-b.top]};l.Zb=function(){return this.get("target")};
|
|
178
|
-
l.$b=function(){var a=this.Zb();return void 0!==a?"string"===typeof a?document.getElementById(a):a:null};l.Ea=function(a){var b=this.b;return b?rh(b.pixelToCoordinateTransform,a.slice()):null};l.qe=function(){return this.u};l.ze=function(){return this.v};l.ye=function(a){a=this.gc[a.toString()];return void 0!==a?a:null};l.se=function(){return this.l};l.Za=function(){return this.get("layergroup")};l.vf=function(){return this.Za().get(dh)};
|
|
179
|
-
l.Db=function(a){var b=this.b;return b?rh(b.coordinateToPixelTransform,a.slice(0,2)):null};l.Hb=function(){return this.get("size")};l.T=function(){return this.get("view")};l.Ee=function(){return this.a};l.Ce=function(a,b,c,d){var e=this.b;if(!(e&&b in e.wantedTiles&&e.wantedTiles[b][a.Ta()]))return Infinity;a=c[0]-e.focus[0];c=c[1]-e.focus[1];return 65536*Math.log(d)+Math.sqrt(a*a+c*c)/d};l.bb=function(a,b){var c=new xd(b||a.type,this,a);this.cd(c)};
|
|
180
|
-
l.cd=function(a){if(this.b){this.Aa=a.coordinate;a.frameState=this.b;var b=this.l.a,c;if(!1!==this.c(a))for(c=b.length-1;0<=c;c--){var d=b[c];if(d.get("active")&&!d.handleEvent(a))break}}};
|
|
181
|
-
l.Pe=function(){var a=this.b,b=this.lb;if(b.a.length){var c=16,d=c;if(a){var e=a.viewHints;e[0]&&(c=this.Md?8:0,d=2);e[1]&&(c=this.Nd?8:0,d=2)}if(b.i<c){var e=b.V,f=b.a,g=b.c,h=0,k=f.length,m,n,p;for(n=0;n<k;++n)m=f[n],p=e(m),Infinity==p?delete b.g[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--)Je(b,e);for(e=0;b.i<c&&e<d&&0<b.a.length;)f=b,h=f.a,k=f.c,g=h[0],1==h.length?(h.length=0,k.length=0):(h[0]=h.pop(),k[0]=k.pop(),Je(f,0)),h=f.b(g),delete f.g[h],f=g[0],g=f.Ta(),
|
|
182
|
-
0!==f.U()||g in b.o||(b.o[g]=!0,++b.i,++e,f.load())}}b=this.mb;d=0;for(c=b.length;d<c;++d)b[d](this,a);b.length=0};l.Qe=function(){this.render()};
|
|
183
|
-
l.Se=function(){var a;this.Zb()&&(a=this.$b());if(this.B){for(var b=0,c=this.B.length;b<c;++b)tc(this.B[b]);this.B=null}a?(a.appendChild(this.a),a=this.jb?this.jb:a,this.B=[v(a,"keydown",this.bb,this),v(a,"keypress",this.bb,this)],this.i||(this.i=this.qc.bind(this),window.addEventListener("resize",this.i,!1))):(kd(this.a),this.i&&(window.removeEventListener("resize",this.i,!1),this.i=void 0));this.qc()};l.Te=function(){this.render()};l.ed=function(){this.render()};
|
|
184
|
-
l.Ue=function(){this.ba&&(tc(this.ba),this.ba=null);this.X&&(tc(this.X),this.X=null);var a=this.T();a&&(this.a.setAttribute("data-view",pa(a)),this.ba=v(a,"propertychange",this.ed,this),this.X=v(a,"change",this.ed,this));this.render()};l.Je=function(){this.G&&(this.G.forEach(tc),this.G=null);var a=this.Za();a&&(this.G=[v(a,"propertychange",this.render,this),v(a,"change",this.render,this)]);this.render()};l.fg=function(){this.j&&cancelAnimationFrame(this.j);this.Ma()};
|
|
185
|
-
l.render=function(){void 0===this.j&&(this.j=requestAnimationFrame(this.Ma))};l.$f=function(a){return this.u.remove(a)};l.ag=function(a){return this.l.remove(a)};l.bg=function(a){return this.Za().get(dh).remove(a)};l.cg=function(a){return this.v.remove(a)};
|
|
186
|
-
l.eg=function(a){var b,c,d=this.Hb(),e=this.T(),f=Ha(),g=null,h;if(h=void 0!==d&&0<d[0]&&0<d[1]&&e)h=!!e.ca()&&void 0!==e.na();if(h){g=ud(e,this.b?this.b.viewHints:void 0);h=this.Za().Vb();var k={};b=0;for(c=h.length;b<c;++b)k[pa(h[b].layer)]=h[b];b=e.U();g={animate:!1,attributions:{},coordinateToPixelTransform:this.sb,extent:f,focus:this.Aa?this.Aa:b.center,index:this.tb++,layerStates:k,layerStatesArray:h,logos:pb({},this.Od),pixelRatio:this.Pd,pixelToCoordinateTransform:this.Qd,postRenderFunctions:[],
|
|
187
|
-
size:d,skippedFeatureUids:this.Ld,tileQueue:this.lb,time:a,usedTiles:{},viewState:b,viewHints:g,wantedTiles:{}}}g&&(g.extent=lb(b.center,b.resolution,b.rotation,g.size,f));this.b=g;this.C.ud(g);g&&(g.animate&&this.render(),Array.prototype.push.apply(this.mb,g.postRenderFunctions),!g.viewHints[0]&&!g.viewHints[1]&&!Ua(g.extent,this.nb)&&(this.c(new wd("moveend",this,g)),a=g.extent,d=this.nb))&&(d[0]=a[0],d[1]=a[1],d[2]=a[2],d[3]=a[3]);this.c(new wd("postrender",this,g));setTimeout(this.Pe.bind(this),
|
|
188
|
-
0)};l.jg=function(a){this.set("layergroup",a)};l.kc=function(a){this.set("size",a)};l.gd=function(a){this.set("target",a)};l.ng=function(a){this.set("view",a)};l.qc=function(){var a=this.$b();if(a){var b=getComputedStyle(a);this.kc([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.kc(void 0)};
|
|
189
|
-
function ui(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"]=
|
|
190
|
-
"https://openlayers.org/";else{var e=a.logo;"string"===typeof e?d[e]="":e instanceof HTMLElement?d[pa(e).toString()]=e:e&&(u("string"==typeof e.href,44),u("string"==typeof e.src,45),d[e.src]=e.href)}e=a.layers instanceof ch?a.layers:new ch({layers:a.layers});c.layergroup=e;c.target=a.target;c.view=void 0!==a.view?a.view:new D;var e=th,f;void 0!==a.renderer?(Array.isArray(a.renderer)?f=a.renderer:"string"===typeof a.renderer?f=[a.renderer]:u(!1,46),0<=f.indexOf("dom")&&(f=f.concat(ti))):f=ti;var g,
|
|
191
|
-
h;g=0;for(h=f.length;g<h;++g)if("canvas"==f[g]&&Hd){e=Ph;break}void 0!==a.controls?Array.isArray(a.controls)?f=new Sc(a.controls.slice()):(u(a.controls instanceof Sc,47),f=a.controls):(f={},g=new Sc,(void 0!==f.zoom?f.zoom:1)&&g.push(new td(f.zoomOptions)),(void 0!==f.rotate?f.rotate:1)&&g.push(new rd(f.rotateOptions)),(void 0!==f.attribution?f.attribution:1)&&g.push(new md(f.attributionOptions)),f=g);if(void 0!==a.interactions)Array.isArray(a.interactions)?g=new Sc(a.interactions.slice()):(u(a.interactions instanceof
|
|
192
|
-
Sc,48),g=a.interactions);else{g={};h=new Sc;var k=new ag;(void 0!==g.altShiftDragRotate?g.altShiftDragRotate:1)&&h.push(new ug);(void 0!==g.doubleClickZoom?g.doubleClickZoom:1)&&h.push(new fg({delta:g.zoomDelta,duration:g.zoomDuration}));(void 0!==g.dragPan?g.dragPan:1)&&h.push(new qg({kinetic:k}));(void 0!==g.pinchRotate?g.pinchRotate:1)&&h.push(new Tg);(void 0!==g.pinchZoom?g.pinchZoom:1)&&h.push(new Xg({duration:g.zoomDuration}));if(void 0!==g.keyboard?g.keyboard:1)h.push(new Lg),h.push(new Ng({delta:g.zoomDelta,
|
|
193
|
-
duration:g.zoomDuration}));(void 0!==g.mouseWheelZoom?g.mouseWheelZoom:1)&&h.push(new Pg({duration:g.zoomDuration}));(void 0!==g.shiftDragZoom?g.shiftDragZoom:1)&&h.push(new Kg({duration:g.zoomDuration}));g=h}void 0!==a.overlays?Array.isArray(a.overlays)?a=new Sc(a.overlays.slice()):(u(a.overlays instanceof Sc,49),a=a.overlays):a=new Sc;return{controls:f,interactions:g,keyboardEventTarget:b,logos:d,overlays:a,gg:e,values:c}}mh();function vi(a){this.C=a.opacity;this.G=a.rotateWithView;this.pa=a.rotation;this.v=a.scale;this.va=a.snapToPixel};function wi(a){a=a||{};this.a=void 0!==a.color?a.color:null}wi.prototype.clone=function(){var a=this.a;return new wi({color:a&&a.slice?a.slice():a||void 0})};function xi(a){a=a||{};this.Pa=null;this.ob=yi;void 0!==a.geometry&&this.Ib(a.geometry);this.Tb=void 0!==a.fill?a.fill:null;this.M=void 0!==a.image?a.image:null;this.oc=void 0!==a.stroke?a.stroke:null;this.ka=void 0!==a.text?a.text:null;this.Kd=a.zIndex}l=xi.prototype;
|
|
194
|
-
l.clone=function(){var a=this.qa();a&&a.clone&&(a=a.clone());return new xi({geometry:a,fill:this.Fa()?this.Fa().clone():void 0,image:this.aa()?this.aa().clone():void 0,stroke:this.La()?this.La().clone():void 0,text:this.Ja()?this.Ja().clone():void 0,zIndex:this.Eb()})};l.qa=function(){return this.Pa};l.Fa=function(){return this.Tb};l.aa=function(){return this.M};l.La=function(){return this.oc};l.Ja=function(){return this.ka};l.Eb=function(){return this.Kd};
|
|
195
|
-
l.Ib=function(a){"function"===typeof a?this.ob=a:"string"===typeof a?this.ob=function(b){return b.get(a)}:a?a&&(this.ob=function(){return a}):this.ob=yi;this.Pa=a};l.Gd=function(a){this.Kd=a};function yi(a){return a.qa()};function zi(a){Nc.call(this);this.i=void 0;this.a="geometry";this.l=null;this.j=void 0;this.b=null;v(this,Pc(this.a),this.Fb,this);void 0!==a&&(a instanceof w||!a?this.Ib(a):this.O(a))}t(zi,Nc);l=zi.prototype;l.clone=function(){var a=new zi(this.Y()),b=this.a;Fc(a,Pc(a.a),a.Fb,a);a.a=b;v(a,Pc(a.a),a.Fb,a);a.Fb();(b=this.qa())&&a.Ib(b.clone());if(b=this.l)a.l=b,a.j=b?Ai(b):void 0,a.s();return a};l.qa=function(){return this.get(this.a)};l.Ie=function(){this.s()};
|
|
196
|
-
l.Fb=function(){this.b&&(tc(this.b),this.b=null);var a=this.qa();a&&(this.b=v(a,"change",this.Ie,this));this.s()};l.Ib=function(a){this.set(this.a,a)};function Ai(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:(u(a instanceof xi,41),c=[a]);b=function(){return c}}return b};var Bi=document.implementation.createDocument("","",null);function Ci(a){return Di(a,!1,[]).join("")}function Di(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)Di(a,b,c);return c}function Ei(a){return function(b,c){var d=a.call(this,b,c);void 0!==d&&c[c.length-1].push(d)}}
|
|
197
|
-
function Fi(a){return function(b,c){var d=a.call(this,b,c);void 0!==d&&(c[c.length-1]=d)}}function Gi(a){return function(b,c){var d=a.call(this,b,c);if(void 0!==d){var e=c[c.length-1],f=b.localName,g;f in e?g=e[f]:g=e[f]=[];g.push(d)}}}function F(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 G(a){return function(b,c,d){a.call(this,b,c,d);d[d.length-1].node.appendChild(b)}}
|
|
198
|
-
function Hi(a){var b,c;return function(d,e,f){if(!b){b={};var g={};g[d.localName]=a;b[d.namespaceURI]=g;c=Ii(d.localName)}Ji(b,c,e,f)}}function Ii(a){return function(b,c,d){b=c[c.length-1].node;c=a;void 0===c&&(c=d);return Bi.createElementNS(b.namespaceURI,c)}}var Ki=Ii();function Li(a,b){for(var c=b.length,d=Array(c),e=0;e<c;++e)d[e]=a[b[e]];return d}function H(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}
|
|
199
|
-
function Mi(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 I(a,b,c,d){d.push(a);Mi(b,c,d,void 0);return d.pop()}function Ji(a,b,c,d,e,f){for(var g=(void 0!==e?e:c).length,h,k,m=0;m<g;++m)h=c[m],void 0!==h&&(k=b.call(f,h,d,void 0!==e?e[m]:void 0),void 0!==k&&a[k.namespaceURI][k.localName].call(f,k,h,d))}function Ni(a,b,c,d,e,f,g){e.push(a);Ji(b,c,d,e,f,g);e.pop()};function Oi(a,b,c){var d=c?Jb(c.featureProjection):null,e=c?Jb(c.dataProjection):null,f;d&&e&&!Vb(d,e)?a instanceof w?f=(b?a.clone():a).ua(b?d:e,b?e:d):f=bc(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.Xa(a)}return f};function Jh(a,b,c,d,e,f){var g=NaN,h=NaN,k=(c-b)/d;if(1===k)g=a[b],h=a[b+1];else if(2==k)g=(1-e)*a[b]+e*a[b+d],h=(1-e)*a[b+1]+e*a[b+d+1];else if(k){var h=a[b],k=a[b+1],m=0,g=[0],n;for(n=b+d;n<c;n+=d){var p=a[n],r=a[n+1],m=m+Math.sqrt((p-h)*(p-h)+(r-k)*(r-k));g.push(m);h=p;k=r}c=e*m;k=0;m=g.length;for(n=!1;k<m;)e=k+(m-k>>1),h=+ca(g[e],c),0>h?k=e+1:(m=e,n=!h);e=n?k:~k;0>e?(c=(c-g[-e-2])/(g[-e-1]-g[-e-2]),b+=(-e-2)*d,g=Ea(a[b],a[b+d],c),h=Ea(a[b+1],a[b+d+1],c)):(g=a[b+e*d],h=a[b+e*d+1])}return f?(f[0]=
|
|
200
|
-
g,f[1]=h,f):[g,h]}function Pi(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(Ea(a[(b-1)*d+g],a[b*d+g],f));c.push(e);return c}
|
|
201
|
-
function Qi(a,b,c,d,e,f){var g=0;if(f)return Pi(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 Pi(a,g,h,c,d,!1);g=h}}return null};function J(a,b){y.call(this);this.l=null;this.b=this.G=this.C=-1;this.W(a,b)}t(J,y);l=J.prototype;l.ge=function(a){this.f?fa(this.f,a):this.f=a.slice();this.s()};l.clone=function(){var a=new J(null);a.F(this.H,this.f.slice());return a};l.Ba=function(a,b,c,d){if(d<Ka(this.A(),a,b))return d;this.b!=this.g&&(this.G=Math.sqrt(bf(this.f,0,this.f.length,this.a,0)),this.b=this.g);return df(this.f,0,this.f.length,this.a,this.G,!1,a,b,c,d)};l.oe=function(a,b){return rf(this.f,0,this.f.length,this.a,a,b)};
|
|
202
|
-
l.Af=function(a,b){return"XYM"!=this.H&&"XYZM"!=this.H?null:Pi(this.f,0,this.f.length,this.a,a,void 0!==b?b:!1)};l.da=function(){return jf(this.f,0,this.f.length,this.a)};l.Qc=function(a,b){return Jh(this.f,0,this.f.length,this.a,a,b)};l.Bf=function(){var a=this.f,b=this.a,c=a[0],d=a[1],e=0,f;for(f=0+b;f<this.f.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};
|
|
203
|
-
l.ab=function(a){var b=[];b.length=lf(this.f,0,this.f.length,this.a,a,b,0);a=new J(null);a.F("XY",b);return a};l.S=function(){return"LineString"};l.fa=function(a){return sf(this.f,0,this.f.length,this.a,a)};l.W=function(a,b){a?(Ye(this,b,a,1),this.f||(this.f=[]),this.f.length=gf(this.f,0,a,this.a),this.s()):this.F("XY",null)};l.F=function(a,b){Xe(this,a,b);this.s()};function K(a,b){y.call(this);this.b=[];this.l=this.C=-1;this.W(a,b)}t(K,y);l=K.prototype;l.he=function(a){this.f?fa(this.f,a.f.slice()):this.f=a.f.slice();this.b.push(this.f.length);this.s()};l.clone=function(){var a=new K(null);a.F(this.H,this.f.slice(),this.b.slice());return a};l.Ba=function(a,b,c,d){if(d<Ka(this.A(),a,b))return d;this.l!=this.g&&(this.C=Math.sqrt(cf(this.f,0,this.b,this.a,0)),this.l=this.g);return ef(this.f,0,this.b,this.a,this.C,!1,a,b,c,d)};
|
|
204
|
-
l.Df=function(a,b,c){return"XYM"!=this.H&&"XYZM"!=this.H||!this.f.length?null:Qi(this.f,this.b,this.a,a,void 0!==b?b:!1,void 0!==c?c:!1)};l.da=function(){return kf(this.f,0,this.b,this.a)};l.Qa=function(){return this.b};l.ve=function(a){if(0>a||this.b.length<=a)return null;var b=new J(null);b.F(this.H,this.f.slice(a?this.b[a-1]:0,this.b[a]));return b};l.Wb=function(){var a=this.f,b=this.b,c=this.H,d=[],e=0,f,g;f=0;for(g=b.length;f<g;++f){var h=b[f],k=new J(null);k.F(c,a.slice(e,h));d.push(k);e=h}return d};
|
|
205
|
-
l.ab=function(a){var b=[],c=[],d=this.f,e=this.b,f=this.a,g=0,h=0,k,m;k=0;for(m=e.length;k<m;++k){var n=e[k],h=lf(d,g,n,f,a,b,h);c.push(h);g=n}b.length=h;a=new K(null);a.F("XY",b,c);return a};l.S=function(){return"MultiLineString"};l.fa=function(a){a:{var b=this.f,c=this.b,d=this.a,e=0,f,g;f=0;for(g=c.length;f<g;++f){if(sf(b,e,c[f],d,a)){a=!0;break a}e=c[f]}a=!1}return a};
|
|
206
|
-
l.W=function(a,b){if(a){Ye(this,b,a,2);this.f||(this.f=[]);var c=hf(this.f,0,a,this.a,this.b);this.f.length=c.length?c[c.length-1]:0;this.s()}else this.F("XY",null,this.b)};l.F=function(a,b,c){Xe(this,a,b);this.b=c;this.s()};function Ri(a,b){var c=a.H,d=[],e=[],f,g;f=0;for(g=b.length;f<g;++f){var h=b[f];f||(c=h.H);fa(d,h.f);e.push(d.length)}a.F(c,d,e)};function L(a,b){y.call(this);this.W(a,b)}t(L,y);l=L.prototype;l.je=function(a){this.f?fa(this.f,a.f):this.f=a.f.slice();this.s()};l.clone=function(){var a=new L(null);a.F(this.H,this.f.slice());return a};l.Ba=function(a,b,c,d){if(d<Ka(this.A(),a,b))return d;var e=this.f,f=this.a,g,h,k;g=0;for(h=e.length;g<h;g+=f)if(k=Aa(a,b,e[g],e[g+1]),k<d){d=k;for(k=0;k<f;++k)c[k]=e[g+k];c.length=f}return d};l.da=function(){return jf(this.f,0,this.f.length,this.a)};
|
|
207
|
-
l.Ae=function(a){var b=this.f?this.f.length/this.a:0;if(0>a||b<=a)return null;b=new B(null);b.F(this.H,this.f.slice(a*this.a,(a+1)*this.a));return b};l.hd=function(){var a=this.f,b=this.H,c=this.a,d=[],e,f;e=0;for(f=a.length;e<f;e+=c){var g=new B(null);g.F(b,a.slice(e,e+c));d.push(g)}return d};l.S=function(){return"MultiPoint"};l.fa=function(a){var b=this.f,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],Ma(a,f,g))return!0;return!1};
|
|
208
|
-
l.W=function(a,b){a?(Ye(this,b,a,1),this.f||(this.f=[]),this.f.length=gf(this.f,0,a,this.a),this.s()):this.F("XY",null)};l.F=function(a,b){Xe(this,a,b);this.s()};function M(a,b){y.call(this);this.b=[];this.C=-1;this.G=null;this.X=this.P=this.R=-1;this.l=null;this.W(a,b)}t(M,y);l=M.prototype;l.ke=function(a){if(this.f){var b=this.f.length;fa(this.f,a.f);a=a.Qa().slice();var c,d;c=0;for(d=a.length;c<d;++c)a[c]+=b}else this.f=a.f.slice(),a=a.Qa().slice(),this.b.push();this.b.push(a);this.s()};l.clone=function(){for(var a=new M(null),b=this.b.length,c=Array(b),d=0;d<b;++d)c[d]=this.b[d].slice();Si(a,this.H,this.f.slice(),c);return a};
|
|
209
|
-
l.Ba=function(a,b,c,d){if(d<Ka(this.A(),a,b))return d;if(this.P!=this.g){var e=this.b,f=0,g=0,h,k;h=0;for(k=e.length;h<k;++h)var m=e[h],g=cf(this.f,f,m,this.a,g),f=m[m.length-1];this.R=Math.sqrt(g);this.P=this.g}e=Kh(this);f=this.b;g=this.a;h=this.R;k=0;var m=[NaN,NaN],n,p;n=0;for(p=f.length;n<p;++n){var r=f[n];d=ef(e,k,r,g,h,!0,a,b,c,d,m);k=r[r.length-1]}return d};
|
|
210
|
-
l.Ua=function(a,b){var c;a:{c=Kh(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(pf(c,e,h,this.a,a,b)){c=!0;break a}e=h[h.length-1]}}c=!1}return c};l.Ef=function(){var a=Kh(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+$e(a,c,g,this.a),c=g[g.length-1];return d};
|
|
211
|
-
l.da=function(a){var b;void 0!==a?(b=Kh(this).slice(),xf(b,this.b,this.a,a)):b=this.f;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 k=b[g];e[f++]=kf(a,d,k,c,e[f]);d=k[k.length-1]}e.length=f;return e};
|
|
212
|
-
function Lh(a){if(a.C!=a.g){var b=a.f,c=a.b,d=a.a,e=0,f=[],g,h,k;g=0;for(h=c.length;g<h;++g){var m=c[g];k=b;var n=m[0],p=d,r=Ra(void 0);k=Wa(r,k,e,n,p);f.push((k[0]+k[2])/2,(k[1]+k[3])/2);e=m[m.length-1]}b=Kh(a);c=a.b;d=a.a;g=0;h=[];m=0;for(k=c.length;m<k;++m)e=c[m],h=qf(b,g,e,d,f,2*m,h),g=e[e.length-1];a.G=h;a.C=a.g}return a.G}l.ue=function(){var a=new L(null);a.F("XY",Lh(this).slice());return a};
|
|
213
|
-
function Kh(a){if(a.X!=a.g){var b=a.f,c;a:{c=a.b;var d,e;d=0;for(e=c.length;d<e;++d)if(!vf(b,c[d],a.a,void 0)){c=!1;break a}c=!0}c?a.l=b:(a.l=b.slice(),a.l.length=xf(a.l,a.b,a.a));a.X=a.g}return a.l}l.ab=function(a){var b=[],c=[],d=this.f,e=this.b,f=this.a;a=Math.sqrt(a);var g=0,h=0,k,m;k=0;for(m=e.length;k<m;++k){var n=e[k],p=[],h=mf(d,g,n,f,a,b,h,p);c.push(p);g=n[n.length-1]}b.length=h;d=new M(null);Si(d,"XY",b,c);return d};
|
|
214
|
-
l.Be=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 C(null);d.F(this.H,this.f.slice(b,c),a);return d};l.Vc=function(){var a=this.H,b=this.f,c=this.b,d=[],e=0,f,g,h,k;f=0;for(g=c.length;f<g;++f){var m=c[f].slice(),n=m[m.length-1];if(e)for(h=0,k=m.length;h<k;++h)m[h]-=e;h=new C(null);h.F(a,b.slice(e,n),m);d.push(h);e=n}return d};l.S=function(){return"MultiPolygon"};
|
|
215
|
-
l.fa=function(a){a:{var b=Kh(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(tf(b,e,h,d,a)){a=!0;break a}e=h[h.length-1]}a=!1}return a};l.W=function(a,b){if(a){Ye(this,b,a,3);this.f||(this.f=[]);var c=this.f,d=this.a,e=this.b,f=0,e=e?e:[],g=0,h,k;h=0;for(k=a.length;h<k;++h)f=hf(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.f.length=c.length?c[c.length-1]:0):this.f.length=0;this.s()}else Si(this,"XY",null,this.b)};
|
|
216
|
-
function Si(a,b,c,d){Xe(a,b,c);a.b=d;a.s()};function N(a){w.call(this);this.a=a?a:null;Ti(this)}t(N,w);function Ui(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(a[c].clone());return b}function Vi(a){var b,c;if(a.a)for(b=0,c=a.a.length;b<c;++b)Fc(a.a[b],"change",a.s,a)}function Ti(a){var b,c;if(a.a)for(b=0,c=a.a.length;b<c;++b)v(a.a[b],"change",a.s,a)}l=N.prototype;l.clone=function(){var a=new N(null);a.Ad(this.a);return a};
|
|
217
|
-
l.Ba=function(a,b,c,d){if(d<Ka(this.A(),a,b))return d;var e=this.a,f,g;f=0;for(g=e.length;f<g;++f)d=e[f].Ba(a,b,c,d);return d};l.Ua=function(a,b){var c=this.a,d,e;d=0;for(e=c.length;d<e;++d)if(c[d].Ua(a,b))return!0;return!1};l.Ab=function(a){Ra(a);for(var b=this.a,c=0,d=b.length;c<d;++c)Va(a,b[c].A());return a};l.Rc=function(){return Ui(this.a)};
|
|
218
|
-
l.Yb=function(a){this.u!=this.g&&(qb(this.i),this.j=0,this.u=this.g);if(0>a||this.j&&a<this.j)return this;var b=a.toString();if(this.i.hasOwnProperty(b))return this.i[b];var c=[],d=this.a,e=!1,f,g;f=0;for(g=d.length;f<g;++f){var h=d[f],k=h.Yb(a);c.push(k);k!==h&&(e=!0)}if(e)return a=new N(null),Vi(a),a.a=c,Ti(a),a.s(),this.i[b]=a;this.j=a;return this};l.S=function(){return"GeometryCollection"};l.fa=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c].fa(a))return!0;return!1};
|
|
219
|
-
l.rotate=function(a,b){for(var c=this.a,d=0,e=c.length;d<e;++d)c[d].rotate(a,b);this.s()};l.scale=function(a,b,c){c||(c=jb(this.A()));for(var d=this.a,e=0,f=d.length;e<f;++e)d[e].scale(a,b,c);this.s()};l.Ad=function(a){a=Ui(a);Vi(this);this.a=a;Ti(this);this.s()};l.Xa=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)b[c].Xa(a);this.s()};l.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.s()};l.$=function(){Vi(this);w.prototype.$.call(this)};function Wi(a){a=Ci(a);return Xi(a)}function Xi(a){if(a=/^\s*(true|1)|(false|0)\s*$/.exec(a))return void 0!==a[1]||!1}function Yi(a){a=Ci(a);a=Date.parse(a);return isNaN(a)?void 0:a/1E3}function P(a){a=Ci(a);return Zi(a)}function Zi(a){if(a=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(a))return parseFloat(a[1])}function $i(a){a=Ci(a);return aj(a)}function aj(a){if(a=/^\s*(\d+)\s*$/.exec(a))return parseInt(a[1],10)}function Q(a){return Ci(a).trim()}function bj(a,b){R(a,b?"1":"0")}
|
|
220
|
-
function cj(a,b){a.appendChild(Bi.createTextNode(b.toPrecision()))}function dj(a,b){a.appendChild(Bi.createTextNode(b.toString()))}function R(a,b){a.appendChild(Bi.createTextNode(b))};var ej=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function fj(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}
|
|
221
|
-
function gj(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 hj(a,b){var c=b[b.length-1],d=a.getAttribute("href");null!==d&&(c.link=d);Mi(ij,a,b)}function jj(a,b){b[b.length-1].extensionsNode_=a}
|
|
222
|
-
H(ej,{rte:Ei(function(a,b){var c=b[0],d=I({flatCoordinates:[],layoutOptions:{}},kj,a,b);if(d){var e=d.flatCoordinates;delete d.flatCoordinates;var f=d.layoutOptions;delete d.layoutOptions;var f=gj(f,e),g=new J(null);g.F(f,e);Oi(g,!1,c);c=new zi(g);c.O(d);return c}}),trk:Ei(function(a,b){var c=b[0],d=I({flatCoordinates:[],ends:[],layoutOptions:{}},lj,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=gj(g,e,f),h=
|
|
223
|
-
new K(null);h.F(g,e,f);Oi(h,!1,c);c=new zi(h);c.O(d);return c}}),wpt:Ei(function(a,b){var c=b[0],d=I({},mj,a,b);if(d){var e={},f=fj([],e,a,d),e=gj(e,f),f=new B(f,e);Oi(f,!1,c);c=new zi(f);c.O(d);return c}})});
|
|
224
|
-
var ij=H(ej,{text:F(Q,"linkText"),type:F(Q,"linkType")}),kj=H(ej,{name:F(Q),cmt:F(Q),desc:F(Q),src:F(Q),link:hj,number:F($i),extensions:jj,type:F(Q),rtept:function(a,b){var c=I({},nj,a,b);if(c){var d=b[b.length-1];fj(d.flatCoordinates,d.layoutOptions,a,c)}}}),nj=H(ej,{ele:F(P),time:F(Yi)}),lj=H(ej,{name:F(Q),cmt:F(Q),desc:F(Q),src:F(Q),link:hj,number:F($i),type:F(Q),extensions:jj,trkseg:function(a,b){var c=b[b.length-1];Mi(oj,a,b);c.ends.push(c.flatCoordinates.length)}}),oj=H(ej,{trkpt:function(a,
|
|
225
|
-
b){var c=I({},pj,a,b);if(c){var d=b[b.length-1];fj(d.flatCoordinates,d.layoutOptions,a,c)}}}),pj=H(ej,{ele:F(P),time:F(Yi)}),mj=H(ej,{ele:F(P),time:F(Yi),magvar:F(P),geoidheight:F(P),name:F(Q),cmt:F(Q),desc:F(Q),src:F(Q),link:hj,sym:F(Q),type:F(Q),fix:F(Q),sat:F($i),hdop:F(P),vdop:F(P),pdop:F(P),ageofdgpsdata:F(P),dgpsid:F($i),extensions:jj});function qj(a,b,c){a.setAttribute("href",b);b=c[c.length-1].properties;Ni({node:a},rj,Ki,[b.linkText,b.linkType],c,sj)}
|
|
226
|
-
function tj(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?uj[e]:vj[e];d=Li(f,b);Ni({node:a,properties:f},wj,Ki,d,c,b)}
|
|
227
|
-
var sj=["text","type"],rj=H(ej,{text:G(R),type:G(R)}),xj=H(ej,"name cmt desc src link number type rtept".split(" ")),yj=H(ej,{name:G(R),cmt:G(R),desc:G(R),src:G(R),link:G(qj),number:G(dj),type:G(R),rtept:Hi(G(tj))}),uj=H(ej,["ele","time"]),zj=H(ej,"name cmt desc src link number type trkseg".split(" ")),Cj=H(ej,{name:G(R),cmt:G(R),desc:G(R),src:G(R),link:G(qj),number:G(dj),type:G(R),trkseg:Hi(G(function(a,b,c){Ni({node:a,geometryLayout:b.H,properties:{}},Aj,Bj,b.da(),c)}))}),Bj=Ii("trkpt"),Aj=H(ej,
|
|
228
|
-
{trkpt:G(tj)}),vj=H(ej,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),wj=H(ej,{ele:G(cj),time:G(function(a,b){var c=new Date(1E3*b);a.appendChild(Bi.createTextNode(c.getUTCFullYear()+"-"+Re(c.getUTCMonth()+1)+"-"+Re(c.getUTCDate())+"T"+Re(c.getUTCHours())+":"+Re(c.getUTCMinutes())+":"+Re(c.getUTCSeconds())+"Z"))}),magvar:G(cj),geoidheight:G(cj),name:G(R),cmt:G(R),desc:G(R),src:G(R),link:G(qj),sym:G(R),type:G(R),fix:G(R),sat:G(dj),
|
|
229
|
-
hdop:G(cj),vdop:G(cj),pdop:G(cj),ageofdgpsdata:G(cj),dgpsid:G(dj)});
|
|
230
|
-
H(ej,{rte:G(function(a,b,c){var d=c[0],e=b.Y();a={node:a,properties:e};if(b=b.qa())b=Oi(b,!0,d),a.geometryLayout=b.H,e.rtept=b.da();d=xj[c[c.length-1].node.namespaceURI];e=Li(e,d);Ni(a,yj,Ki,e,c,d)}),trk:G(function(a,b,c){var d=c[0],e=b.Y();a={node:a,properties:e};if(b=b.qa())b=Oi(b,!0,d),e.trkseg=b.Wb();d=zj[c[c.length-1].node.namespaceURI];e=Li(e,d);Ni(a,Cj,Ki,e,c,d)}),wpt:G(function(a,b,c){var d=c[0],e=c[c.length-1];e.properties=b.Y();if(b=b.qa())b=Oi(b,!0,d),e.geometryLayout=b.H,tj(a,b.da(),c)})});function Dj(a,b,c,d,e,f){Kc.call(this);this.M=a?a:new Image;null!==d&&(this.M.crossOrigin=d);this.b=f?document.createElement("CANVAS"):null;this.i=f;this.o=null;this.g=e;this.a=c;this.j=b;this.u=!1;2==this.g&&Ej(this)}t(Dj,Kc);function Ej(a){var b=jd(1,1);try{b.drawImage(a.M,0,0),b.getImageData(0,0,1,1)}catch(c){a.u=!0}}Dj.prototype.l=function(){this.g=3;this.o.forEach(tc);this.o=null;this.c("change")};
|
|
231
|
-
Dj.prototype.v=function(){this.g=2;this.a&&(this.M.width=this.a[0],this.M.height=this.a[1]);this.a=[this.M.width,this.M.height];this.o.forEach(tc);this.o=null;Ej(this);if(!this.u&&null!==this.i){this.b.width=this.M.width;this.b.height=this.M.height;var a=this.b.getContext("2d");a.drawImage(this.M,0,0);for(var b=a.getImageData(0,0,this.M.width,this.M.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")};
|
|
232
|
-
Dj.prototype.aa=function(){return this.b?this.b:this.M};Dj.prototype.load=function(){if(0==this.g){this.g=1;this.o=[v(this.M,"error",this.l,this,!0),v(this.M,"load",this.v,this,!0)];try{this.M.src=this.j}catch(a){this.l()}}};function Fj(a){a=a||{};this.b=void 0!==a.anchor?a.anchor:[.5,.5];this.i=null;this.c=void 0!==a.anchorOrigin?a.anchorOrigin:"top-left";this.V=void 0!==a.anchorXUnits?a.anchorXUnits:"fraction";this.u=void 0!==a.anchorYUnits?a.anchorYUnits:"fraction";this.sa=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;u(!(void 0!==d&&b),4);u(!b||b&&c,5);void 0!==d&&d.length||!b||(d=b.src||pa(b).toString());u(void 0!==d&&0<d.length,6);var e=void 0!==
|
|
233
|
-
a.src?0:2,f;void 0!==a.color?(f=a.color,f=Array.isArray(f)?f:gd(f)):f=null;this.o=f;f=this.sa;var g=this.o,h=ph.get(d,f,g);h||(h=new Dj(b,d,c,f,e,g),ph.set(d,f,g,h));this.a=h;this.B=void 0!==a.offset?a.offset:[0,0];this.g=void 0!==a.offsetOrigin?a.offsetOrigin:"top-left";this.j=null;this.l=void 0!==a.size?a.size:null;vi.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!==
|
|
234
|
-
a.rotateWithView?a.rotateWithView:!1})}t(Fj,vi);
|
|
235
|
-
Fj.prototype.clone=function(){var a=this.aa(1),b;if(2===this.a.g)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 Fj({anchor:this.b.slice(),anchorOrigin:this.c,anchorXUnits:this.V,anchorYUnits:this.u,crossOrigin:this.sa,color:this.o&&this.o.slice?this.o.slice():this.o||void 0,img:b?b:void 0,imgSize:b?this.a.a.slice():void 0,src:b?void 0:this.a.j,offset:this.B.slice(),
|
|
236
|
-
offsetOrigin:this.g,size:null!==this.l?this.l.slice():void 0,opacity:this.C,scale:this.v,snapToPixel:this.va,rotation:this.pa,rotateWithView:this.G})};
|
|
237
|
-
function Mh(a){if(a.i)return a.i;var b=a.b,c=Oh(a);if("fraction"==a.V||"fraction"==a.u){if(!c)return null;b=a.b.slice();"fraction"==a.V&&(b[0]*=c[0]);"fraction"==a.u&&(b[1]*=c[1])}if("top-left"!=a.c){if(!c)return null;b===a.b&&(b=a.b.slice());if("top-right"==a.c||"bottom-right"==a.c)b[0]=-b[0]+c[0];if("bottom-left"==a.c||"bottom-right"==a.c)b[1]=-b[1]+c[1]}a.i=b;return a.i}Fj.prototype.aa=function(a){return this.a.aa(a)};
|
|
238
|
-
function Nh(a){if(a.j)return a.j;var b=a.B;if("top-left"!=a.g){var c=Oh(a),d=a.a.a;if(!c||!d)return null;b=b.slice();if("top-right"==a.g||"bottom-right"==a.g)b[0]=d[0]-c[0]-b[0];if("bottom-left"==a.g||"bottom-right"==a.g)b[1]=d[1]-c[1]-b[1]}a.j=b;return a.j}function Oh(a){return a.l?a.l:a.a.a}Fj.prototype.load=function(){this.a.load()};function Gj(a){a=a||{};this.c=a.font;this.i=a.rotation;this.o=a.rotateWithView;this.a=a.scale;this.ka=a.text;this.j=a.textAlign;this.l=a.textBaseline;this.Tb=void 0!==a.fill?a.fill:new wi({color:"#333"});this.oc=void 0!==a.stroke?a.stroke:null;this.g=void 0!==a.offsetX?a.offsetX:0;this.b=void 0!==a.offsetY?a.offsetY:0}
|
|
239
|
-
Gj.prototype.clone=function(){return new Gj({font:this.c,rotation:this.i,rotateWithView:this.o,scale:this.a,text:this.Ja(),textAlign:this.j,textBaseline:this.l,fill:this.Fa()?this.Fa().clone():void 0,stroke:this.La()?this.La().clone():void 0,offsetX:this.g,offsetY:this.b})};Gj.prototype.Fa=function(){return this.Tb};Gj.prototype.La=function(){return this.oc};Gj.prototype.Ja=function(){return this.ka};var Hj=["http://www.google.com/kml/ext/2.2"],U=[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"],Ij={fraction:"fraction",pixels:"pixels"};function Jj(a){a=Ci(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]}
|
|
240
|
-
function Kj(a){a=Ci(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}function Lj(a){var b=Ci(a).trim();return a.baseURI?(new URL(b,a.baseURI)).href:b}function Mj(a){return P(a)}function Nj(a,b){return I(null,Oj,a,b)}
|
|
241
|
-
function Pj(a,b){var c=I({f:[],Jd:[]},Qj,a,b);if(c){var d=c.f,c=c.Jd,e,f;e=0;for(f=Math.min(d.length,c.length);e<f;++e)d[4*e+3]=c[e];c=new J(null);c.F("XYZM",d);return c}}function Rj(a,b){var c=I({},Sj,a,b),d=I(null,Tj,a,b);if(d){var e=new J(null);e.F("XYZ",d);e.O(c);return e}}function Uj(a,b){var c=I({},Sj,a,b),d=I(null,Tj,a,b);if(d){var e=new C(null);e.F("XYZ",d,[d.length]);e.O(c);return e}}
|
|
242
|
-
function Vj(a,b){var c=I([],Wj,a,b);if(!c)return null;if(!c.length)return new N(c);var d,e=!0,f=c[0].S(),g,h,k;h=1;for(k=c.length;h<k;++h)if(g=c[h],g.S()!=f){e=!1;break}if(e)if("Point"==f){d=c[0];e=d.H;f=d.f;h=1;for(k=c.length;h<k;++h)g=c[h],fa(f,g.f);d=new L(null);d.F(e,f);Xj(d,c)}else if("LineString"==f)d=new K(null),Ri(d,c),Xj(d,c);else if("Polygon"==f){g=d=new M(null);h=g.H;k=[];var e=[],m,n,f=0;for(m=c.length;f<m;++f){var p=c[f];f||(h=p.H);var r=k.length;n=p.Qa();var x,A;x=0;for(A=n.length;x<
|
|
243
|
-
A;++x)n[x]+=r;fa(k,p.f);e.push(n)}Si(g,h,k,e);Xj(d,c)}else"GeometryCollection"==f?d=new N(c):u(!1,37);else d=new N(c);return d}function Yj(a,b){var c=I({},Sj,a,b),d=I(null,Tj,a,b);if(d){var e=new B(null);e.F("XYZ",d);e.O(c);return e}}function Zj(a,b){var c=I({},Sj,a,b),d=I([null],ak,a,b);if(d&&d[0]){var e=new C(null),f=d[0],g=[f.length],h,k;h=1;for(k=d.length;h<k;++h)fa(f,d[h]),g.push(f.length);e.F("XYZ",f,g);e.O(c);return e}}
|
|
244
|
-
function bk(a,b){var c=I({},ck,a,b);if(!c)return null;var d="fillStyle"in c?c.fillStyle:void 0,e=c.fill;void 0===e||e||(d=null);e="imageStyle"in c?c.imageStyle:void 0;!e&&(e=void 0);var f="textStyle"in c?c.textStyle:void 0,g="strokeStyle"in c?c.strokeStyle:void 0,c=c.outline;void 0===c||c||(g=null);return[new xi({fill:d,image:e,stroke:g,text:f,zIndex:void 0})]}
|
|
245
|
-
function Xj(a,b){var c=b.length,d=Array(b.length),e=Array(b.length),f,g,h,k;h=k=!1;for(g=0;g<c;++g)f=b[g],d[g]=f.get("extrude"),e[g]=f.get("altitudeMode"),h=h||void 0!==d[g],k=k||e[g];h&&a.set("extrude",d);k&&a.set("altitudeMode",e)}function dk(a,b){Mi(ek,a,b)}function fk(a,b){Mi(gk,a,b)}
|
|
246
|
-
var hk=H(U,{displayName:F(Q),value:F(Q)}),ek=H(U,{Data:function(a,b){var c=a.getAttribute("name");Mi(hk,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){Mi(ik,a,b)}}),gk=H(U,{LatLonAltBox:function(a,b){var c=I({},jk,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)}},
|
|
247
|
-
Lod:function(a,b){var c=I({},kk,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)}}}),jk=H(U,{altitudeMode:F(Q),minAltitude:F(P),maxAltitude:F(P),north:F(P),south:F(P),east:F(P),west:F(P)}),kk=H(U,{minLodPixels:F(P),maxLodPixels:F(P),minFadeExtent:F(P),maxFadeExtent:F(P)}),Sj=H(U,{extrude:F(Wi),altitudeMode:F(Q)}),Oj=H(U,{coordinates:Fi(Kj)}),ak=
|
|
248
|
-
H(U,{innerBoundaryIs:function(a,b){var c=I(void 0,lk,a,b);c&&b[b.length-1].push(c)},outerBoundaryIs:function(a,b){var c=I(void 0,mk,a,b);c&&(b[b.length-1][0]=c)}}),Qj=H(U,{when:function(a,b){var c=b[b.length-1].Jd,d=Ci(a),d=Date.parse(d);c.push(isNaN(d)?0:d)}},H(Hj,{coord:function(a,b){var c=b[b.length-1].f,d=Ci(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]),parseFloat(d[3]),
|
|
249
|
-
0):c.push(0,0,0,0)}})),Tj=H(U,{coordinates:Fi(Kj)}),nk=H(U,{href:F(Lj)},H(Hj,{x:F(P),y:F(P),w:F(P),h:F(P)})),ok=H(U,{Icon:F(function(a,b){var c=I({},nk,a,b);return c?c:null}),heading:F(P),hotSpot:F(function(a){var b=a.getAttribute("xunits"),c=a.getAttribute("yunits");return{x:parseFloat(a.getAttribute("x")),rc:Ij[b],y:parseFloat(a.getAttribute("y")),sc:Ij[c]}}),scale:F(Mj)}),lk=H(U,{LinearRing:Fi(Nj)}),pk=H(U,{color:F(Jj),scale:F(Mj)}),qk=H(U,{color:F(Jj),width:F(P)}),Wj=H(U,{LineString:Ei(Rj),LinearRing:Ei(Uj),
|
|
250
|
-
MultiGeometry:Ei(Vj),Point:Ei(Yj),Polygon:Ei(Zj)}),rk=H(Hj,{Track:Ei(Pj)});H(U,{ExtendedData:dk,Region:fk,Link:function(a,b){Mi(sk,a,b)},address:F(Q),description:F(Q),name:F(Q),open:F(Wi),phoneNumber:F(Q),visibility:F(Wi)});var sk=H(U,{href:F(Lj)}),mk=H(U,{LinearRing:Fi(Nj)}),tk=H(U,{Style:F(bk),key:F(Q),styleUrl:F(Lj)});
|
|
251
|
-
H(U,{ExtendedData:dk,Region:fk,MultiGeometry:F(Vj,"geometry"),LineString:F(Rj,"geometry"),LinearRing:F(Uj,"geometry"),Point:F(Yj,"geometry"),Polygon:F(Zj,"geometry"),Style:F(bk),StyleMap:function(a,b){var c=I(void 0,uk,a,b);if(c){var d=b[b.length-1];Array.isArray(c)?d.Style=c:"string"===typeof c?d.styleUrl=c:u(!1,38)}},address:F(Q),description:F(Q),name:F(Q),open:F(Wi),phoneNumber:F(Q),styleUrl:F(Lj),visibility:F(Wi)},H(Hj,{MultiTrack:F(function(a,b){var c=I([],rk,a,b);if(c){var d=new K(null);Ri(d,
|
|
252
|
-
c);return d}},"geometry"),Track:F(Pj,"geometry")}));
|
|
253
|
-
var vk=H(U,{color:F(Jj),fill:F(Wi),outline:F(Wi)}),ik=H(U,{SimpleData:function(a,b){var c=a.getAttribute("name");if(null!==c){var d=Q(a);b[b.length-1][c]=d}}}),ck=H(U,{IconStyle:function(a,b){var c=I({},ok,a,b);if(c){var d=b[b.length-1],e="Icon"in c?c.Icon:{},f=!("Icon"in c)||0<Object.keys(e).length,g,h=e.href;h?g=h:f&&(g=void 0);var k,m,n;(h=c.hotSpot)?(k=[h.x,h.y],m=h.rc,n=h.sc):void 0===g?n=m=k=void 0:/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(g)&&(k=[.5,0],n=m="fraction");var p,h=e.x,r=
|
|
254
|
-
e.y;void 0!==h&&void 0!==r&&(p=[h,r]);var x,h=e.w,e=e.h;void 0!==h&&void 0!==e&&(x=[h,e]);var A,e=c.heading;void 0!==e&&(A=e*Math.PI/180);c=c.scale;f?(void 0==g&&(x=void 0,void 0===c&&(c=void 0)),f=new Fj({anchor:k,anchorOrigin:"bottom-left",anchorXUnits:m,anchorYUnits:n,crossOrigin:"anonymous",offset:p,offsetOrigin:"bottom-left",rotation:A,scale:c,size:x,src:g}),d.imageStyle=f):d.imageStyle=void 0}},LabelStyle:function(a,b){var c=I({},pk,a,b);c&&(b[b.length-1].textStyle=new Gj({fill:new wi({color:"color"in
|
|
255
|
-
c?c.color:void 0}),scale:c.scale}))},LineStyle:function(a,b){var c=I({},qk,a,b);c&&(b[b.length-1].strokeStyle=new ri({color:"color"in c?c.color:void 0,width:"width"in c?c.width:1}))},PolyStyle:function(a,b){var c=I({},vk,a,b);if(c){var d=b[b.length-1];d.fillStyle=new wi({color:"color"in c?c.color:void 0});var e=c.fill;void 0!==e&&(d.fill=e);c=c.outline;void 0!==c&&(d.outline=c)}}}),uk=H(U,{Pair:function(a,b){var c=I({},tk,a,b);if(c){var d=c.key;d&&"normal"==d&&((d=c.styleUrl)&&(b[b.length-1]=d),(c=
|
|
256
|
-
c.Style)&&(b[b.length-1]=c))}}});function wk(a,b){var c=Array.isArray(b)?b:gd(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}R(a,c.join(""))}function xk(a,b,c){a={node:a};var d=b.S(),e,f;"GeometryCollection"==d?(e=b.Rc(),f=yk):"MultiPoint"==d?(e=b.hd(),f=zk):"MultiLineString"==d?(e=b.Wb(),f=Ak):"MultiPolygon"==d?(e=b.Vc(),f=Tk):u(!1,39);Ni(a,Wk,f,e,c)}function Xk(a,b,c){Ni({node:a},Yk,Zk,[b],c)}
|
|
257
|
-
function $k(a,b,c){var d={node:a};b.i&&a.setAttribute("id",b.i);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=Li(a,f);Ni(d,al,bl,[{names:f,values:g}],c)}if(f=b.j)if(f=f.call(b,0))f=Array.isArray(f)?f[0]:f,this.a&&(a.Style=f),(f=f.Ja())&&(a.name=f.Ja());f=cl[c[c.length-1].node.namespaceURI];a=Li(a,f);Ni(d,al,Ki,a,c,f);a=c[0];(b=b.qa())&&(b=Oi(b,!0,a));Ni(d,al,
|
|
258
|
-
yk,[b],c)}function dl(a,b,c){var d=b.f;a={node:a};a.layout=b.H;a.stride=b.a;Ni(a,el,fl,[d],c)}function gl(a,b,c){b=b.Tc();var d=b.shift();a={node:a};Ni(a,hl,il,b,c);Ni(a,hl,jl,[d],c)}function kl(a,b){cj(a,Math.round(1E6*b)/1E6)}H(U,["Document","Placemark"]);H(U,{Document:G(function(a,b,c){Ni({node:a},ll,ml,b,c,void 0,this)}),Placemark:G($k)});
|
|
259
|
-
var ll=H(U,{Placemark:G($k)}),nl=H(U,{Data:G(function(a,b,c){a.setAttribute("name",b.name);a={node:a};b=b.value;"object"==typeof b?(null!==b&&b.displayName&&Ni(a,nl,Ki,[b.displayName],c,["displayName"]),null!==b&&b.value&&Ni(a,nl,Ki,[b.value],c,["value"])):Ni(a,nl,Ki,[b],c,["value"])}),value:G(function(a,b){R(a,b)}),displayName:G(function(a,b){a.appendChild(Bi.createCDATASection(b))})}),pl={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",
|
|
260
|
-
MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry",GeometryCollection:"MultiGeometry"},ql=H(U,["href"],H(Hj,["x","y","w","h"])),rl=H(U,{href:G(R)},H(Hj,{x:G(cj),y:G(cj),w:G(cj),h:G(cj)})),sl=H(U,["scale","heading","Icon","hotSpot"]),ul=H(U,{Icon:G(function(a,b,c){a={node:a};var d=ql[c[c.length-1].node.namespaceURI],e=Li(b,d);Ni(a,rl,Ki,e,c,d);d=ql[Hj[0]];e=Li(b,d);Ni(a,rl,tl,e,c,d)}),heading:G(cj),hotSpot:G(function(a,b){a.setAttribute("x",b.x);a.setAttribute("y",b.y);a.setAttribute("xunits",
|
|
261
|
-
b.rc);a.setAttribute("yunits",b.sc)}),scale:G(kl)}),vl=H(U,["color","scale"]),wl=H(U,{color:G(wk),scale:G(kl)}),xl=H(U,["color","width"]),yl=H(U,{color:G(wk),width:G(cj)}),Yk=H(U,{LinearRing:G(dl)}),Wk=H(U,{LineString:G(dl),Point:G(dl),Polygon:G(gl),GeometryCollection:G(xk)}),cl=H(U,"name open visibility address phoneNumber description styleUrl Style".split(" ")),al=H(U,{ExtendedData:G(function(a,b,c){a={node:a};var d=b.names;b=b.values;for(var e=d.length,f=0;f<e;f++)Ni(a,nl,zl,[{name:d[f],value:b[f]}],
|
|
262
|
-
c)}),MultiGeometry:G(xk),LineString:G(dl),LinearRing:G(dl),Point:G(dl),Polygon:G(gl),Style:G(function(a,b,c){a={node:a};var d={},e=b.Fa(),f=b.La(),g=b.aa();b=b.Ja();g instanceof Fj&&(d.IconStyle=g);b&&(d.LabelStyle=b);f&&(d.LineStyle=f);e&&(d.PolyStyle=e);b=Al[c[c.length-1].node.namespaceURI];d=Li(d,b);Ni(a,Bl,Ki,d,c,b)}),address:G(R),description:G(R),name:G(R),open:G(bj),phoneNumber:G(R),styleUrl:G(R),visibility:G(bj)}),el=H(U,{coordinates:G(function(a,b,c){c=c[c.length-1];var d=c.layout;c=c.stride;
|
|
263
|
-
var e;"XY"==d||"XYM"==d?e=2:"XYZ"==d||"XYZM"==d?e=3:u(!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]}R(a,h)})}),hl=H(U,{outerBoundaryIs:G(Xk),innerBoundaryIs:G(Xk)}),Cl=H(U,{color:G(wk)}),Al=H(U,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Bl=H(U,{IconStyle:G(function(a,b,c){a={node:a};var d={},e=Oh(b),f=b.a.a,g={href:b.a.j};if(e){g.w=e[0];g.h=e[1];var h=Mh(b),k=Nh(b);k&&f&&k[0]&&k[1]!==e[1]&&(g.x=k[0],g.y=
|
|
264
|
-
f[1]-(k[1]+e[1]));h&&h[0]&&h[1]!==e[1]&&(d.hotSpot={x:h[0],rc:"pixels",y:e[1]-h[1],sc:"pixels"})}d.Icon=g;e=b.v;1!==e&&(d.scale=e);(b=b.pa)&&(d.heading=b);b=sl[c[c.length-1].node.namespaceURI];d=Li(d,b);Ni(a,ul,Ki,d,c,b)}),LabelStyle:G(function(a,b,c){a={node:a};var d={},e=b.Fa();e&&(d.color=e.a);(b=b.a)&&1!==b&&(d.scale=b);b=vl[c[c.length-1].node.namespaceURI];d=Li(d,b);Ni(a,wl,Ki,d,c,b)}),LineStyle:G(function(a,b,c){a={node:a};var d=xl[c[c.length-1].node.namespaceURI];b=Li({color:b.c,width:b.g},
|
|
265
|
-
d);Ni(a,yl,Ki,b,c,d)}),PolyStyle:G(function(a,b,c){Ni({node:a},Cl,Dl,[b.a],c)})});function tl(a,b,c){return Bi.createElementNS(Hj[0],"gx:"+c)}function ml(a,b){return Bi.createElementNS(b[b.length-1].node.namespaceURI,"Placemark")}function yk(a,b){if(a)return Bi.createElementNS(b[b.length-1].node.namespaceURI,pl[a.S()])}var Dl=Ii("color"),fl=Ii("coordinates"),zl=Ii("Data"),bl=Ii("ExtendedData"),il=Ii("innerBoundaryIs"),zk=Ii("Point"),Ak=Ii("LineString"),Zk=Ii("LinearRing"),Tk=Ii("Polygon"),jl=Ii("outerBoundaryIs");(function(){var a={},b={J:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.J=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Pg=c()}})(function(){return function d(a,b,g){function e(h,k){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!k&&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]={J:{}};a[h][0].call(m.J,function(b){var d=
|
|
266
|
-
a[h][1][b];return e(d?d:b)},m,m.J,d,a,b,g)}return b[h].J}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,k=h>>1,m=-7;f=d?f-1:0;var n=d?-1:1,T=a[b+f];f+=n;d=T&(1<<-m)-1;T>>=-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-k;else{if(d===h)return g?NaN:Infinity*(T?-1:1);g+=Math.pow(2,e);d-=k}return(T?-1:1)*g*Math.pow(2,d-e)};
|
|
267
|
-
f.write=function(a,b,d,e,f,p){var g,h=8*p-f-1,k=(1<<h)-1,m=k>>1,n=23===f?Math.pow(2,-24)-Math.pow(2,-77):0;p=e?0:p-1;var S=e?1:-1,Y=0>b||0===b&&0>1/b?1:0;b=Math.abs(b);isNaN(b)||Infinity===b?(b=isNaN(b)?1:0,e=k):(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>=k?(b=0,e=k):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+=S,b/=256,f-=8);e=e<<f|b;for(h+=f;0<h;a[d+p]=
|
|
268
|
-
e&255,p+=S,e/=256,h-=8);a[d+p-S]|=128*Y}},{}],2:[function(a,b){function d(a){this.Na=ArrayBuffer.isView&&ArrayBuffer.isView(a)?a:new Uint8Array(a||0);this.type=this.D=0;this.length=this.Na.length}function e(a,b,d){var e=d.Na,f,g;g=e[d.D++];f=(g&112)>>4;if(128>g)return h(a,f,b);g=e[d.D++];f|=(g&127)<<3;if(128>g)return h(a,f,b);g=e[d.D++];f|=(g&127)<<10;if(128>g)return h(a,f,b);g=e[d.D++];f|=(g&127)<<17;if(128>g)return h(a,f,b);g=e[d.D++];f|=(g&127)<<24;if(128>g)return h(a,f,b);g=e[d.D++];if(128>g)return h(a,
|
|
269
|
-
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.J=d;var k=a("ieee754");d.b=0;d.g=1;d.a=2;d.c=5;d.prototype={hc:function(a,b,d){for(d=d||this.length;this.D<d;){var e=this.Z(),f=e>>3,g=this.D;this.type=e&7;a(f,b,this);this.D===g&&this.qg(e)}return b},Xf:function(){var a=k.read(this.Na,this.D,!0,23,4);this.D+=4;return a},Wf:function(){var a=k.read(this.Na,this.D,!0,52,8);this.D+=8;return a},Z:function(a){var b=
|
|
270
|
-
this.Na,d,f;f=b[this.D++];d=f&127;if(128>f)return d;f=b[this.D++];d|=(f&127)<<7;if(128>f)return d;f=b[this.D++];d|=(f&127)<<14;if(128>f)return d;f=b[this.D++];d|=(f&127)<<21;if(128>f)return d;f=b[this.D];return e(d|(f&15)<<28,a,this)},Yf:function(){return this.Z(!0)},ic:function(){var a=this.Z();return 1===a%2?(a+1)/-2:a/2},Vf:function(){return!!this.Z()},jc:function(){for(var a=this.Z()+this.D,b=this.Na,d="",e=this.D;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 k,S,Y;if(1===
|
|
271
|
-
h)128>f&&(g=f);else if(2===h)k=b[e+1],128===(k&192)&&(g=(f&31)<<6|k&63,127>=g&&(g=null));else if(3===h){if(k=b[e+1],S=b[e+2],128===(k&192)&&128===(S&192)&&(g=(f&15)<<12|(k&63)<<6|S&63,2047>=g||55296<=g&&57343>=g))g=null}else 4===h&&(k=b[e+1],S=b[e+2],Y=b[e+3],128===(k&192)&&128===(S&192)&&128===(Y&192)&&(g=(f&15)<<18|(k&63)<<12|(S&63)<<6|Y&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);
|
|
272
|
-
e+=h}this.D=a;return d},qg:function(a){a&=7;if(a===d.b)for(;127<this.Na[this.D++];);else if(a===d.a)this.D=this.Z()+this.D;else if(a===d.c)this.D+=4;else if(a===d.g)this.D+=8;else throw Error("Unimplemented type: "+a);}}},{ieee754:1}]},{},[2])(2)})})();(function(){var a={},b={J:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.J=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Sg=c()}})(function(){return function d(a,b,g){function e(h,k){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!k&&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]={J:{}};a[h][0].call(m.J,function(b){var d=
|
|
273
|
-
a[h][1][b];return e(d?d:b)},m,m.J,d,a,b,g)}return b[h].J}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.J=d;d.prototype={clone:function(){return new d(this.x,this.y)},add:function(a){return this.clone().Rd(a)},rotate:function(a){return this.clone().$d(a)},round:function(){return this.clone().ae()},angle:function(){return Math.atan2(this.y,this.x)},Rd:function(a){this.x+=a.x;this.y+=a.y;return this},$d:function(a){var b=
|
|
274
|
-
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},ae: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.J.Kg=a("./lib/vectortile.js");b.J.Lg=a("./lib/vectortilefeature.js");b.J.Mg=a("./lib/vectortilelayer.js")},{"./lib/vectortile.js":3,"./lib/vectortilefeature.js":4,"./lib/vectortilelayer.js":5}],3:[function(a,b){function d(a,
|
|
275
|
-
b,d){3===a&&(a=new e(d,d.Z()+d.D),a.length&&(b[a.name]=a))}var e=a("./vectortilelayer");b.J=function(a,b){this.layers=a.hc(d,{},b)}},{"./vectortilelayer":5}],4:[function(a,b){function d(a,b,d,f,g){this.properties={};this.extent=d;this.type=0;this.Wa=a;this.wc=-1;this.vb=f;this.xb=g;a.hc(e,this,b)}function e(a,b,d){if(1==a)b.id=d.Z();else if(2==a)for(a=d.Z()+d.D;d.D<a;){var e=b.vb[d.Z()],f=b.xb[d.Z()];b.properties[e]=f}else 3==a?b.type=d.Z():4==a&&(b.wc=d.D)}a("point-geometry");b.J=d;d.a=["Unknown",
|
|
276
|
-
"Point","LineString","Polygon"];d.prototype.bbox=function(){var a=this.Wa;a.D=this.wc;for(var b=a.Z()+a.D,d=1,e=0,f=0,g=0,x=Infinity,A=-Infinity,O=Infinity,T=-Infinity;a.D<b;)if(e||(e=a.Z(),d=e&7,e>>=3),e--,1===d||2===d)f+=a.ic(),g+=a.ic(),f<x&&(x=f),f>A&&(A=f),g<O&&(O=g),g>T&&(T=g);else if(7!==d)throw Error("unknown command "+d);return[x,O,A,T]}},{"point-geometry":1}],5:[function(a,b){function d(a,b){this.version=1;this.name=null;this.extent=4096;this.length=0;this.Wa=a;this.vb=[];this.xb=[];this.ub=
|
|
277
|
-
[];a.hc(e,this,b);this.length=this.ub.length}function e(a,b,d){15===a?b.version=d.Z():1===a?b.name=d.jc():5===a?b.extent=d.Z():2===a?b.ub.push(d.D):3===a?b.vb.push(d.jc()):4===a&&b.xb.push(h(d))}function h(a){for(var b=null,d=a.Z()+a.D;a.D<d;)b=a.Z()>>3,b=1===b?a.jc():2===b?a.Xf():3===b?a.Wf():4===b?a.Yf():5===b?a.Z():6===b?a.ic():7===b?a.Vf():null;return b}var k=a("./vectortilefeature.js");b.J=d;d.prototype.feature=function(a){if(0>a||a>=this.ub.length)throw Error("feature index out of bounds");
|
|
278
|
-
this.Wa.D=this.ub[a];a=this.Wa.Z()+this.Wa.D;return new k(this.Wa,a,this.extent,this.vb,this.xb)}},{"./vectortilefeature.js":4}]},{},[2])(2)})})();function El(a,b){b[b.length-1].rb[a.getAttribute("k")]=a.getAttribute("v")}var Fl=[null],Gl=H(Fl,{nd:function(a,b){b[b.length-1].cb.push(a.getAttribute("ref"))},tag:El});
|
|
279
|
-
H(Fl,{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.qf[e]=f;var g=I({rb:{}},Hl,a,b);rb(g.rb)||(f=new B(f),Oi(f,!1,c),c=new zi(f),c.i=e,c.s(),c.O(g.rb),d.features.push(c))},way:function(a,b){for(var c=b[0],d=a.getAttribute("id"),e=I({cb:[],rb:{}},Gl,a,b),f=b[b.length-1],g=[],h=0,k=e.cb.length;h<k;h++)fa(g,f.qf[e.cb[h]]);e.cb[0]==e.cb[e.cb.length-1]?(h=new C(null),h.F("XY",g,[g.length])):(h=new J(null),
|
|
280
|
-
h.F("XY",g));Oi(h,!1,c);c=new zi(h);c.i=d;c.s();c.O(e.rb);f.features.push(c)}});var Hl=H(Fl,{tag:El});function Il(a){return a.getAttributeNS("http://www.w3.org/1999/xlink","href")};var Jl=[null,"http://www.opengis.net/ows/1.1"];H(Jl,{ServiceIdentification:F(function(a,b){return I({},Kl,a,b)}),ServiceProvider:F(function(a,b){return I({},Ll,a,b)}),OperationsMetadata:F(function(a,b){return I({},Ml,a,b)})});
|
|
281
|
-
var Nl=H(Jl,{DeliveryPoint:F(Q),City:F(Q),AdministrativeArea:F(Q),PostalCode:F(Q),Country:F(Q),ElectronicMailAddress:F(Q)}),Ol=H(Jl,{Value:Gi(function(a){return Q(a)})}),Pl=H(Jl,{AllowedValues:F(function(a,b){return I({},Ol,a,b)})}),Rl=H(Jl,{Phone:F(function(a,b){return I({},Ql,a,b)}),Address:F(function(a,b){return I({},Nl,a,b)})}),Tl=H(Jl,{HTTP:F(function(a,b){return I({},Sl,a,b)})}),Sl=H(Jl,{Get:Gi(function(a,b){var c=Il(a);if(c)return I({href:c},Ul,a,b)}),Post:void 0}),Vl=H(Jl,{DCP:F(function(a,
|
|
282
|
-
b){return I({},Tl,a,b)})}),Ml=H(Jl,{Operation:function(a,b){var c=a.getAttribute("name"),d=I({},Vl,a,b);d&&(b[b.length-1][c]=d)}}),Ql=H(Jl,{Voice:F(Q),Facsimile:F(Q)}),Ul=H(Jl,{Constraint:Gi(function(a,b){var c=a.getAttribute("name");if(c)return I({name:c},Pl,a,b)})}),Wl=H(Jl,{IndividualName:F(Q),PositionName:F(Q),ContactInfo:F(function(a,b){return I({},Rl,a,b)})}),Kl=H(Jl,{Title:F(Q),ServiceTypeVersion:F(Q),ServiceType:F(Q)}),Ll=H(Jl,{ProviderName:F(Q),ProviderSite:F(Il),ServiceContact:F(function(a,
|
|
283
|
-
b){return I({},Wl,a,b)})});function Xl(a,b){return I({},Yl,a,b)}function Zl(a,b){return I({},$l,a,b)}function am(a,b){var c=Xl(a,b);if(c){var d=[aj(a.getAttribute("width")),aj(a.getAttribute("height"))];c.size=d;return c}}function bm(a,b){return I([],cm,a,b)}var dm=[null,"http://www.opengis.net/wms"];H(dm,{Service:F(function(a,b){return I({},em,a,b)}),Capability:F(function(a,b){return I({},fm,a,b)})});
|
|
284
|
-
var fm=H(dm,{Request:F(function(a,b){return I({},gm,a,b)}),Exception:F(function(a,b){return I([],hm,a,b)}),Layer:F(function(a,b){return I({},im,a,b)})}),em=H(dm,{Name:F(Q),Title:F(Q),Abstract:F(Q),KeywordList:F(bm),OnlineResource:F(Il),ContactInformation:F(function(a,b){return I({},jm,a,b)}),Fees:F(Q),AccessConstraints:F(Q),LayerLimit:F($i),MaxWidth:F($i),MaxHeight:F($i)}),jm=H(dm,{ContactPersonPrimary:F(function(a,b){return I({},km,a,b)}),ContactPosition:F(Q),ContactAddress:F(function(a,b){return I({},
|
|
285
|
-
lm,a,b)}),ContactVoiceTelephone:F(Q),ContactFacsimileTelephone:F(Q),ContactElectronicMailAddress:F(Q)}),km=H(dm,{ContactPerson:F(Q),ContactOrganization:F(Q)}),lm=H(dm,{AddressType:F(Q),Address:F(Q),City:F(Q),StateOrProvince:F(Q),PostCode:F(Q),Country:F(Q)}),hm=H(dm,{Format:Ei(Q)}),im=H(dm,{Name:F(Q),Title:F(Q),Abstract:F(Q),KeywordList:F(bm),CRS:Gi(Q),EX_GeographicBoundingBox:F(function(a,b){var c=I({},mm,a,b);if(c){var d=c.westBoundLongitude,e=c.southBoundLatitude,f=c.eastBoundLongitude,c=c.northBoundLatitude;
|
|
286
|
-
if(void 0!==d&&void 0!==e&&void 0!==f&&void 0!==c)return[d,e,f,c]}}),BoundingBox:Gi(function(a){var b=[Zi(a.getAttribute("minx")),Zi(a.getAttribute("miny")),Zi(a.getAttribute("maxx")),Zi(a.getAttribute("maxy"))],c=[Zi(a.getAttribute("resx")),Zi(a.getAttribute("resy"))];return{crs:a.getAttribute("CRS"),extent:b,res:c}}),Dimension:Gi(function(a){return{name:a.getAttribute("name"),units:a.getAttribute("units"),unitSymbol:a.getAttribute("unitSymbol"),"default":a.getAttribute("default"),multipleValues:Xi(a.getAttribute("multipleValues")),
|
|
287
|
-
nearestValue:Xi(a.getAttribute("nearestValue")),current:Xi(a.getAttribute("current")),values:Q(a)}}),Attribution:F(function(a,b){return I({},nm,a,b)}),AuthorityURL:Gi(function(a,b){var c=Xl(a,b);if(c)return c.name=a.getAttribute("name"),c}),Identifier:Gi(Q),MetadataURL:Gi(function(a,b){var c=Xl(a,b);if(c)return c.type=a.getAttribute("type"),c}),DataURL:Gi(Xl),FeatureListURL:Gi(Xl),Style:Gi(function(a,b){return I({},om,a,b)}),MinScaleDenominator:F(P),MaxScaleDenominator:F(P),Layer:Gi(function(a,b){var c=
|
|
288
|
-
b[b.length-1],d=I({},im,a,b);if(d){var e=Xi(a.getAttribute("queryable"));void 0===e&&(e=c.queryable);d.queryable=void 0!==e?e:!1;e=aj(a.getAttribute("cascaded"));void 0===e&&(e=c.cascaded);d.cascaded=e;e=Xi(a.getAttribute("opaque"));void 0===e&&(e=c.opaque);d.opaque=void 0!==e?e:!1;e=Xi(a.getAttribute("noSubsets"));void 0===e&&(e=c.noSubsets);d.noSubsets=void 0!==e?e:!1;(e=Zi(a.getAttribute("fixedWidth")))||(e=c.fixedWidth);d.fixedWidth=e;(e=Zi(a.getAttribute("fixedHeight")))||(e=c.fixedHeight);d.fixedHeight=
|
|
289
|
-
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}})}),nm=H(dm,{Title:F(Q),OnlineResource:F(Il),LogoURL:F(am)}),mm=H(dm,{westBoundLongitude:F(P),eastBoundLongitude:F(P),southBoundLatitude:F(P),northBoundLatitude:F(P)}),gm=H(dm,{GetCapabilities:F(Zl),GetMap:F(Zl),GetFeatureInfo:F(Zl)}),$l=H(dm,
|
|
290
|
-
{Format:Gi(Q),DCPType:Gi(function(a,b){return I({},pm,a,b)})}),pm=H(dm,{HTTP:F(function(a,b){return I({},qm,a,b)})}),qm=H(dm,{Get:F(Xl),Post:F(Xl)}),om=H(dm,{Name:F(Q),Title:F(Q),Abstract:F(Q),LegendURL:Gi(am),StyleSheetURL:F(Xl),StyleURL:F(Xl)}),Yl=H(dm,{Format:F(Q),OnlineResource:F(Il)}),cm=H(dm,{Keyword:Ei(Q)});function rm(a){var b=Q(a).split(" ");if(b&&2==b.length&&(a=+b[0],b=+b[1],!isNaN(a)&&!isNaN(b)))return[a,b]}var sm=[null,"http://www.opengis.net/wmts/1.0"],tm=[null,"http://www.opengis.net/ows/1.1"];H(sm,{Contents:F(function(a,b){return I({},um,a,b)})});
|
|
291
|
-
var um=H(sm,{Layer:Gi(function(a,b){return I({},vm,a,b)}),TileMatrixSet:Gi(function(a,b){return I({},wm,a,b)})}),vm=H(sm,{Style:Gi(function(a,b){var c=I({},xm,a,b);if(c){var d="true"===a.getAttribute("isDefault");c.isDefault=d;return c}}),Format:Gi(Q),TileMatrixSetLink:Gi(function(a,b){return I({},ym,a,b)}),Dimension:Gi(function(a,b){return I({},zm,a,b)}),ResourceURL:Gi(function(a){var b=a.getAttribute("format"),c=a.getAttribute("template");a=a.getAttribute("resourceType");var d={};b&&(d.format=b);
|
|
292
|
-
c&&(d.template=c);a&&(d.resourceType=a);return d})},H(tm,{Title:F(Q),Abstract:F(Q),WGS84BoundingBox:F(function(a,b){var c=I([],Am,a,b);if(2==c.length)return Ga(c)}),Identifier:F(Q)})),xm=H(sm,{LegendURL:Gi(function(a){var b={};b.format=a.getAttribute("format");b.href=Il(a);return b})},H(tm,{Title:F(Q),Identifier:F(Q)})),ym=H(sm,{TileMatrixSet:F(Q),TileMatrixSetLimits:F(function(a,b){return I([],Bm,a,b)})}),Bm=H(sm,{TileMatrixLimits:Ei(function(a,b){return I({},Cm,a,b)})}),Cm=H(sm,{TileMatrix:F(Q),
|
|
293
|
-
MinTileRow:F($i),MaxTileRow:F($i),MinTileCol:F($i),MaxTileCol:F($i)}),zm=H(sm,{Default:F(Q),Value:Gi(Q)},H(tm,{Identifier:F(Q)})),Am=H(tm,{LowerCorner:Ei(rm),UpperCorner:Ei(rm)}),wm=H(sm,{WellKnownScaleSet:F(Q),TileMatrix:Gi(function(a,b){return I({},Dm,a,b)})},H(tm,{SupportedCRS:F(Q),Identifier:F(Q)})),Dm=H(sm,{TopLeftCorner:F(rm),ScaleDenominator:F(P),TileWidth:F($i),TileHeight:F($i),MatrixWidth:F($i),MatrixHeight:F($i)},H(tm,{Identifier:F(Q)}));function W(a,b,c){y.call(this);this.yd(a,b?b:0,c)}t(W,y);l=W.prototype;l.clone=function(){var a=new W(null);Xe(a,this.H,this.f.slice());a.s();return a};l.Ba=function(a,b,c,d){var e=this.f;a-=e[0];var f=b-e[1];b=a*a+f*f;if(b<d){if(b)for(d=this.cc()/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};l.Ua=function(a,b){var c=this.f,d=a-c[0],c=b-c[1];return d*d+c*c<=Em(this)};
|
|
294
|
-
l.ca=function(){return this.f.slice(0,this.a)};l.Ab=function(a){var b=this.f,c=b[this.a]-b[0];return Qa(b[0]-c,b[1]-c,b[0]+c,b[1]+c,a)};l.cc=function(){return Math.sqrt(Em(this))};function Em(a){var b=a.f[a.a]-a.f[0];a=a.f[a.a+1]-a.f[1];return b*b+a*a}l.S=function(){return"Circle"};l.fa=function(a){var b=this.A();return nb(a,b)?(b=this.ca(),a[0]<=b[0]&&a[2]>=b[0]||a[1]<=b[1]&&a[3]>=b[1]?!0:Xa(a,this.ta,this)):!1};
|
|
295
|
-
l.ya=function(a){var b=this.a,c=a.slice();c[b]=c[0]+(this.f[b]-this.f[0]);var d;for(d=1;d<b;++d)c[b+d]=a[d];Xe(this,this.H,c);this.s()};l.yd=function(a,b,c){if(a){Ye(this,c,a,0);this.f||(this.f=[]);c=this.f;a=ff(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 Xe(this,"XY",null);this.s()};l.da=function(){};l.W=function(){};l.mg=function(a){this.f[this.a]=this.f[0]+a;this.s()};function Fm(a,b){Kc.call(this);this.Ca=a;this.state=b;this.a=null;this.key=""}t(Fm,Kc);Fm.prototype.s=function(){this.c("change")};Fm.prototype.Ta=function(){return this.key+"/"+this.Ca};Fm.prototype.U=function(){return this.state};function Gm(a,b,c,d,e){Fm.call(this,a,b);this.b=c;this.M=new Image;null!==d&&(this.M.crossOrigin=d);this.g=null;this.o=e}t(Gm,Fm);l=Gm.prototype;l.$=function(){1==this.state&&Hm(this);this.a&&Hc(this.a);this.state=5;this.s();Fm.prototype.$.call(this)};l.aa=function(){return this.M};l.Ta=function(){return this.b};l.rf=function(){this.state=3;Hm(this);this.s()};l.sf=function(){this.state=this.M.naturalWidth&&this.M.naturalHeight?2:4;Hm(this);this.s()};
|
|
296
|
-
l.load=function(){if(0==this.state||3==this.state)this.state=1,this.s(),this.g=[v(this.M,"error",this.rf,this,!0),v(this.M,"load",this.sf,this,!0)],this.o(this,this.b)};function Hm(a){a.g.forEach(tc);a.g=null};function Im(a){Mc.call(this);this.a=a}t(Im,Mc);Im.prototype.Da=oa;function Xh(a,b,c){return function(d,e){return Jm(a,b,d,e,function(a){c[d]||(c[d]={});c[d][a.Ca.toString()]=a})}}function pi(a,b){b.sd()&&a.postRenderFunctions.push(function(a,b,e){b=pa(a).toString();a.Ya(e.viewState.projection,e.usedTiles[b])}.bind(null,b))};function Km(a){Im.call(this,a);this.G=qh()}t(Km,Im);function qi(a,b,c,d){var e=a.a;if(Lc(e,b)){var f=d.size[0]*d.pixelRatio,g=d.size[1]*d.pixelRatio,h=d.viewState.rotation;Ah(c,-h,f/2,g/2);var k=d.viewState,m=d.pixelRatio,n=m/k.resolution;a=sh(a.G,m*d.size[0]/2,m*d.size[1]/2,n,-n,-k.rotation,-k.center[0]+0,-k.center[1]);e.c(new wh(b,new Ch(c,d.pixelRatio,d.extent,a,d.viewState.rotation),d,c,null));Ah(c,h,f/2,g/2)}}Km.prototype.l=function(a,b,c,d){if(this.Da(a,b,0,Te,this))return c.call(d,this.a,null)};function Lm(a){Nc.call(this);this.b=Jb(a.projection);this.u=Mm(a.attributions);this.C=a.logo;this.R=void 0!==a.state?a.state:"ready";this.P=void 0!==a.wrapX?a.wrapX:!1}t(Lm,Nc);function Mm(a){if("string"===typeof a)return[new pc({html:a})];if(a instanceof pc)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 pc({html:e}):e}return c}return null}l=Lm.prototype;l.Da=oa;l.qd=function(){return this.u};l.Uc=function(){return this.C};l.rd=function(){return this.b};
|
|
297
|
-
l.U=function(){return this.R};l.ec=function(){this.s()};l.xd=function(a){this.u=Mm(a);this.s()};function Nm(a){Km.call(this,a);this.v=qh();this.b=null}t(Nm,Km);Nm.prototype.Da=function(a,b,c,d,e){var f=this.a;return f.Ka().Da(a,b.viewState.resolution,b.viewState.rotation,c,b.skippedFeatureUids,function(a){return d.call(e,a,f)})};
|
|
298
|
-
Nm.prototype.l=function(a,b,c,d){if(this.aa()){if(this.a.Ka().Da!==oa)return Km.prototype.l.apply(this,arguments);var e=rh(this.v,a.slice()),f=e,g=b.viewState.resolution/this.i;f[0]*=g;f[1]*=g;this.b||(this.b=jd(1,1));this.b.clearRect(0,0,1,1);this.b.drawImage(this.aa(),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 Om(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)]}
|
|
299
|
-
function Pm(a,b,c,d,e,f,g,h,k,m,n){var p=jd(Math.round(c*a),Math.round(c*b));if(!k.length)return p.canvas;p.scale(c,c);var r=Ha();k.forEach(function(a){Va(r,a.extent)});var x=jd(Math.round(c*hb(r)/d),Math.round(c*ib(r)/d)),A=c/d;k.forEach(function(a){x.drawImage(a.image,m,m,a.image.width-2*m,a.image.height-2*m,(a.extent[0]-r[0])*A,-(a.extent[3]-r[3])*A,hb(a.extent)*A,ib(a.extent)*A)});var O=eb(g);h.b.forEach(function(a){var b=a.source,e=a.target,g=b[1][0],h=b[1][1],k=b[2][0],m=b[2][1];a=(e[0][0]-
|
|
300
|
-
O[0])/f;var n=-(e[0][1]-O[1])/f,A=(e[1][0]-O[0])/f,T=-(e[1][1]-O[1])/f,V=(e[2][0]-O[0])/f,wa=-(e[2][1]-O[1])/f,e=b[0][0],b=b[0][1],g=g-e,h=h-b,k=k-e,m=m-b;a:{g=[[g,h,0,0,A-a],[k,m,0,0,V-a],[0,0,g,h,T-n],[0,0,k,m,wa-n]];h=g.length;for(k=0;k<h;k++){for(var m=k,ha=Math.abs(g[k][k]),Ba=k+1;Ba<h;Ba++){var Zb=Math.abs(g[Ba][k]);Zb>ha&&(ha=Zb,m=Ba)}if(!ha){g=null;break a}ha=g[m];g[m]=g[k];g[k]=ha;for(m=k+1;m<h;m++)for(ha=-g[m][k]/g[k][k],Ba=k;Ba<h+1;Ba++)g[m][Ba]=k==Ba?0:g[m][Ba]+ha*g[k][Ba]}k=Array(h);
|
|
301
|
-
for(m=h-1;0<=m;m--)for(k[m]=g[m][h]/g[m][m],ha=m-1;0<=ha;ha--)g[ha][h]-=g[ha][m]*k[m];g=k}g&&(p.save(),p.beginPath(),k=(a+A+V)/3,m=(n+T+wa)/3,h=Om(k,m,a,n),A=Om(k,m,A,T),V=Om(k,m,V,wa),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(r[0]-e,r[3]-b),p.scale(d/c,-d/c),p.drawImage(x.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]-O[0])/f;var c=-(b[0][1]-O[1])/
|
|
302
|
-
f,d=(b[1][0]-O[0])/f,e=-(b[1][1]-O[1])/f,g=(b[2][0]-O[0])/f,b=-(b[2][1]-O[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 Qm(a,b,c,d,e){this.g=a;this.o=b;var f={},g=Wb(this.o,this.g);this.c=function(a){var b=a[0]+"/"+a[1];f[b]||(f[b]=g(a));return f[b]};this.i=d;this.u=e*e;this.b=[];this.l=!1;this.V=this.g.g&&!!d&&!!this.g.A()&&hb(d)==hb(this.g.A());this.a=this.g.A()?hb(this.g.A()):null;this.j=this.o.A()?hb(this.o.A()):null;a=eb(c);b=db(c);d=cb(c);c=bb(c);e=this.c(a);var h=this.c(b),k=this.c(d),m=this.c(c);Rm(this,a,b,d,c,e,h,k,m,10);if(this.l){var n=Infinity;this.b.forEach(function(a){n=Math.min(n,a.source[0][0],
|
|
303
|
-
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={}}
|
|
304
|
-
function Rm(a,b,c,d,e,f,g,h,k,m){var n=Ga([f,g,h,k]),p=a.a?hb(n)/a.a:null,r=a.a,x=a.g.g&&.5<p&&1>p,A=!1;if(0<m){if(a.o.c&&a.j)var O=Ga([b,c,d,e]),A=A|.25<hb(O)/a.j;!x&&a.g.c&&p&&(A|=.25<p)}if(A||!a.i||nb(n,a.i)){if(!(A||isFinite(f[0])&&isFinite(f[1])&&isFinite(g[0])&&isFinite(g[1])&&isFinite(h[0])&&isFinite(h[1])&&isFinite(k[0])&&isFinite(k[1])))if(0<m)A=!0;else return;if(0<m&&(A||(n=a.c([(b[0]+d[0])/2,(b[1]+d[1])/2]),r=x?(Da(f[0],r)+Da(h[0],r))/2-Da(n[0],r):(f[0]+h[0])/2-n[0],n=(f[1]+h[1])/2-n[1],
|
|
305
|
-
A=r*r+n*n>a.u),A)){Math.abs(b[0]-d[0])<=Math.abs(b[1]-d[1])?(x=[(c[0]+d[0])/2,(c[1]+d[1])/2],r=a.c(x),n=[(e[0]+b[0])/2,(e[1]+b[1])/2],p=a.c(n),Rm(a,b,c,x,n,f,g,r,p,m-1),Rm(a,n,x,d,e,p,r,h,k,m-1)):(x=[(b[0]+c[0])/2,(b[1]+c[1])/2],r=a.c(x),n=[(d[0]+e[0])/2,(d[1]+e[1])/2],p=a.c(n),Rm(a,b,x,n,e,f,r,p,k,m-1),Rm(a,x,c,d,n,r,g,h,p,m-1));return}if(x){if(!a.V)return;a.l=!0}a.b.push({source:[f,h,k],target:[b,d,e]});a.b.push({source:[f,g,h],target:[b,c,d]})}}
|
|
306
|
-
function Sm(a){var b=Ha();a.b.forEach(function(a){a=a.source;Ja(b,a[0]);Ja(b,a[1]);Ja(b,a[2])});return b};function Tm(a){Nm.call(this,a);this.u=jd();this.o=null;this.j=[];this.R=Ha();this.X=new ta(0,0,0,0);this.B=qh()}t(Tm,Nm);function ji(a,b){var c=b.U(),d=a.a.bd();return 2==c||4==c||3==c&&!d}Tm.prototype.aa=function(){return this.u.canvas};function X(a){a=a?a:{};var b=pb({},a);delete b.preload;delete b.useInterimTilesOnError;nh.call(this,b);this.md(void 0!==a.preload?a.preload:0);this.od(void 0!==a.useInterimTilesOnError?a.useInterimTilesOnError:!0)}t(X,nh);l=X.prototype;l.Hc=function(a){var b=null;"canvas"===a.S()&&(b=new Tm(this));return b};l.Wc=function(){return this.get("preload")};l.md=function(a){this.set("preload",a)};l.bd=function(){return this.get("useInterimTilesOnError")};
|
|
307
|
-
l.od=function(a){this.set("useInterimTilesOnError",a)};function Um(a,b,c,d,e,f,g,h,k,m,n){Fm.call(this,e,0);this.C=void 0!==n?n:!1;this.B=g;this.v=h;this.u=null;this.b=b;this.i=d;this.j=f?f:e;this.g=[];this.gb=null;this.o=0;f=kc(d,this.j);h=this.i.A();e=this.b.A();f=h?mb(f,h):f;if(fb(f))if((h=a.A())&&(e?e=mb(e,h):e=h),h=jb(f),n=d.a[this.j[0]],d=Yb(h,c,a),h=Hb(c,n,h),n=c.$a(),void 0!==n&&(h*=n),n=a.$a(),void 0!==n&&(h/=n),d=Hb(a,h,d)/h,isFinite(d)&&0<d&&(h/=d),d=h,!isFinite(d)||0>=d)this.state=4;else if(this.l=new Qm(a,c,f,e,d*(void 0!==m?m:.5)),this.l.b.length)if(this.o=
|
|
308
|
-
lc(b,d),c=Sm(this.l),e&&(a.g?(c[1]=ya(c[1],e[1],e[3]),c[3]=ya(c[3],e[1],e[3])):c=mb(c,e)),fb(c)){a=hc(b,c,this.o);for(b=a.I;b<=a.K;b++)for(c=a.L;c<=a.N;c++)(m=k(this.o,b,c,g))&&this.g.push(m);this.g.length||(this.state=4)}else this.state=4;else this.state=4;else this.state=4}t(Um,Fm);Um.prototype.$=function(){1==this.state&&(this.gb.forEach(tc),this.gb=null);Fm.prototype.$.call(this)};Um.prototype.aa=function(){return this.u};
|
|
309
|
-
Um.prototype.vd=function(){var a=[];this.g.forEach(function(b){b&&2==b.U()&&a.push({extent:kc(this.b,b.Ca),image:b.aa()})},this);this.g.length=0;if(a.length){var b=this.j[0],c=jc(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.o],f=kc(this.i,this.j);this.u=Pm(d,c,this.B,e,this.b.A(),b,f,this.l,a,this.v,this.C);this.state=2}else this.state=3;this.s()};
|
|
310
|
-
Um.prototype.load=function(){if(0==this.state){this.state=1;this.s();var a=0;this.gb=[];this.g.forEach(function(b){var c=b.U();if(0==c||1==c){a++;var d;d=v(b,"change",function(){var c=b.U();if(2==c||3==c||4==c)tc(d),a--,a||(this.gb.forEach(tc),this.gb=null,this.vd())},this);this.gb.push(d)}},this);this.g.forEach(function(a){0==a.U()&&a.load()});a||setTimeout(this.vd.bind(this),0)}};function Vm(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;u(a,55);return(a.N-a.L+1+g[2]).toString()})}}function Wm(a,b){for(var c=a.length,d=Array(c),e=0;e<c;++e)d[e]=Vm(a[e],b);return Xm(d)}function Xm(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)}}
|
|
311
|
-
function Ym(){};function Zm(a){si.call(this);this.o=void 0!==a?a:2048}t(Zm,si);function $m(a){return a.b>a.o}Zm.prototype.Ya=function(a){for(var b,c;$m(this);){b=this.a.hb;c=b.Ca[0].toString();var d;if(d=c in a)b=b.Ca,d=va(a[c],b[1],b[2]);if(d)break;else Hc(this.pop())}};function an(a){Lm.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state,wrapX:a.wrapX});this.X=void 0!==a.opaque?a.opaque:!1;this.B=void 0!==a.tilePixelRatio?a.tilePixelRatio:1;this.tileGrid=void 0!==a.tileGrid?a.tileGrid:null;this.a=new Zm(a.cacheSize);this.G=[0,0];this.Sa=""}t(an,Lm);l=an.prototype;l.sd=function(){return $m(this.a)};l.Ya=function(a,b){var c=this.pb(a);c&&c.Ya(b)};
|
|
312
|
-
function Jm(a,b,c,d,e){b=a.pb(b);if(!b)return!1;for(var f=!0,g,h,k=d.I;k<=d.K;++k)for(var m=d.L;m<=d.N;++m)g=a.Cb(c,k,m),h=!1,b.g.hasOwnProperty(g)&&(g=b.get(g),(h=2===g.U())&&(h=!1!==e(g))),h||(f=!1);return f}l.Sc=function(){return 0};l.Cb=function(a,b,c){return a+"/"+b+"/"+c};l.Xb=function(){return this.X};l.Yc=function(){return this.tileGrid};l.Ra=function(a){return this.tileGrid?this.tileGrid:mc(a)};l.pb=function(a){var b=this.b;return b&&!Vb(b,a)?null:this.a};
|
|
313
|
-
function oi(a,b,c){var d=a.Ra(c);c=a.B;b=Fa(jc(d,b),a.G);1==c?a=b:(a=a.G,void 0===a&&(a=[0,0]),a[0]=b[0]*c+.5|0,a[1]=b[1]*c+.5|0);return a}function bn(a,b,c){var d=void 0!==c?c:a.b;c=a.Ra(d);if(a.P&&d.c){var e=b;b=e[0];a=ic(c,e);d=nc(d);La(d,a)?b=e:(e=hb(d),a[0]+=e*Math.ceil((d[0]-a[0])/e),b=gc(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.A();c=(c=f?hc(c,f,e):c.b?c.b[e]:null)?va(c,d,a):!0}return c?b:null}l.ec=function(){this.a.clear();this.s()};
|
|
314
|
-
l.Id=oa;function cn(a,b){Ic.call(this,a);this.tile=b}t(cn,Ic);function dn(a){an.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,state:a.state,tileGrid:a.tileGrid,tilePixelRatio:a.tilePixelRatio,wrapX:a.wrapX});this.tileLoadFunction=a.tileLoadFunction;this.tileUrlFunction=this.j?this.j.bind(this):Ym;this.urls=null;a.urls?this.lc(a.urls):a.url&&this.fc(a.url);a.tileUrlFunction&&this.qb(a.tileUrlFunction)}t(dn,an);l=dn.prototype;l.Zc=function(){return this.tileLoadFunction};l.$c=function(){return this.tileUrlFunction};
|
|
315
|
-
l.ad=function(){return this.urls};l.Lf=function(a){a=a.target;switch(a.U()){case 1:this.c(new cn("tileloadstart",a));break;case 2:this.c(new cn("tileloadend",a));break;case 3:this.c(new cn("tileloaderror",a))}};l.Fd=function(a){this.a.clear();this.tileLoadFunction=a;this.s()};l.qb=function(a,b){this.tileUrlFunction=a;"undefined"!==typeof b?this.Sa!==b&&(this.Sa=b,this.s()):this.s()};
|
|
316
|
-
l.fc=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.qb(this.j?this.j.bind(this):Wm(b,this.tileGrid),a)};l.lc=function(a){this.urls=a;var b=a.join("\n");this.qb(this.j?this.j.bind(this):Wm(a,this.tileGrid),b)};
|
|
317
|
-
l.Id=function(a,b,c){a=this.Cb(a,b,c);this.a.g.hasOwnProperty(a)&&this.a.get(a)};function en(a){dn.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:fn,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:Gm;this.i={};this.l={};this.ba=a.reprojectionErrorThreshold;
|
|
318
|
-
this.v=!1}t(en,dn);l=en.prototype;l.sd=function(){if($m(this.a))return!0;for(var a in this.i)if($m(this.i[a]))return!0;return!1};l.Ya=function(a,b){var c=this.pb(a);this.a.Ya(this.a==c?b:{});for(var d in this.i){var e=this.i[d];e.Ya(e==c?b:{})}};l.Sc=function(a){return this.b&&a&&Vb(this.b,a),0};l.Xb=function(a){return this.b&&a&&!Vb(this.b,a)?!1:dn.prototype.Xb.call(this,a)};
|
|
319
|
-
l.Ra=function(a){var b=this.b;return!this.tileGrid||b&&!Vb(b,a)?(b=pa(a).toString(),b in this.l||(this.l[b]=mc(a)),this.l[b]):this.tileGrid};l.pb=function(a){var b=this.b;if(!b||Vb(b,a))return this.a;a=pa(a).toString();a in this.i||(this.i[a]=new Zm);return this.i[a]};function gn(a,b,c,d,e,f,g){b=[b,c,d];e=(c=bn(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;v(e,"change",a.Lf,a);return e}
|
|
320
|
-
function $h(a,b,c,d,e,f){if(a.b&&f&&!Vb(a.b,f)){e=a.pb(f);d=[b,c,d];var g;b=a.Cb.apply(a,d);e.g.hasOwnProperty(b)&&(g=e.get(b));c=a.Sa;if(g&&g.key==c)return g;var h=a.b,k=a.Ra(h),m=a.Ra(f),n=bn(a,d,f);a=new Um(h,k,f,m,d,n,a.B,0,function(a,b,c,d){return hn(this,a,b,c,d,h)}.bind(a),a.ba,a.v);a.key=c;g?(a.a=g,e.replace(b,a)):e.set(b,a);return a}return hn(a,b,c,d,e,f)}
|
|
321
|
-
function hn(a,b,c,d,e,f){var g,h=a.Cb(b,c,d),k=a.Sa;if(a.a.g.hasOwnProperty(h)){if(g=a.a.get(h),g.key!=k){var m=g;g=gn(a,b,c,d,e,f,k);0==m.U()?g.a=m.a:g.a=m;if(g.a){b=g.a;c=g;do{if(2==b.U()){b.a=null;break}else 1==b.U()?c=b:0==b.U()?c.a=b.a:c=b;b=c.a}while(b)}a.a.replace(h,g)}}else g=gn(a,b,c,d,e,f,k),a.a.set(h,g);return g}l.Cd=function(a){if(this.v!=a){this.v=a;for(var b in this.i)this.i[b].clear();this.s()}};l.Ed=function(a,b){var c=Jb(a);c&&(c=pa(c).toString(),c in this.l||(this.l[c]=b))};
|
|
322
|
-
function fn(a,b){a.aa().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:nc(b),maxZoom:a.maxZoom,minZoom:a.minZoom,tileSize:a.tileSize};var d={};pb(d,c?c:{});void 0===d.extent&&(d.extent=Jb("EPSG:3857").A());d.resolutions=oc(d.extent,d.maxZoom,d.tileSize);delete d.maxZoom;c=new cc(d)}en.call(this,{attributions:a.attributions,cacheSize:a.cacheSize,crossOrigin:a.crossOrigin,logo:a.logo,opaque:a.opaque,projection:b,reprojectionErrorThreshold:a.reprojectionErrorThreshold,
|
|
323
|
-
tileGrid:c,tileLoadFunction:a.tileLoadFunction,tilePixelRatio:a.tilePixelRatio,tileUrlFunction:a.tileUrlFunction,url:a.url,urls:a.urls,wrapX:void 0!==a.wrapX?a.wrapX:!0})}t(Z,en);(function(){var a={},b={J:a};(function(c){if("object"===typeof a&&"undefined"!==typeof b)b.J=c();else{var d;"undefined"!==typeof window?d=window:"undefined"!==typeof global?d=global:"undefined"!==typeof self?d=self:d=this;d.Qg=c()}})(function(){return function d(a,b,g){function e(h,k){if(!b[h]){if(!a[h]){var m="function"==typeof require&&require;if(!k&&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]={J:{}};a[h][0].call(m.J,function(b){var d=
|
|
324
|
-
a[h][1][b];return e(d?d:b)},m,m.J,d,a,b,g)}return b[h].J}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.Ig=a},{"./processor":2}],2:[function(a,b){function d(a){var b=!0;try{new ImageData(10,10)}catch(r){b=!1}return function(d){var e=d.buffers,f=d.meta,g=d.width,h=d.height,k=e.length,m=e[0].byteLength;if(d.imageOps){m=Array(k);for(d=0;d<k;++d){var n=m,p=d,r;r=new Uint8ClampedArray(e[d]);var da=g,ga=h;r=b?new ImageData(r,da,
|
|
325
|
-
ga):{data:r,width:da,height:ga};n[p]=r}g=a(m,f).data}else{g=new Uint8ClampedArray(m);h=Array(k);n=Array(k);for(d=0;d<k;++d)h[d]=new Uint8ClampedArray(e[d]),n[d]=[0,0,0,0];for(e=0;e<m;e+=4){for(d=0;d<k;++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(),
|
|
326
|
-
");",'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 k(a){this.Mb=!!a.Og;var b;0===a.threads?b=0:this.Mb?b=1:b=a.threads||
|
|
327
|
-
1;var d=[];if(b)for(var f=0;f<b;++f)d[f]=e(a,this.zc.bind(this,f));else d[0]=h(a,this.zc.bind(this,0));this.yb=d;this.Ac=[];this.wb=0;this.Va={};this.Nb=null}var m=a("./util").pf;k.prototype.Xd=function(){if(0===this.wb&&0<this.Ac.length){var a=this.Nb=this.Ac.shift(),b=a.inputs[0].width,d=a.inputs[0].height,e=a.inputs.map(function(a){return a.data.buffer}),f=this.yb.length;this.wb=f;if(1===f)this.yb[0].postMessage({buffers:e,meta:a.Ze,imageOps:this.Mb,width:b,height:d},e);else for(var g=4*Math.ceil(a.inputs[0].data.length/
|
|
328
|
-
4/f),h=0;h<f;++h){for(var k=h*g,m=[],ja=0,ma=e.length;ja<ma;++ja)m.push(e[h].slice(k,k+g));this.yb[h].postMessage({buffers:m,meta:a.Ze,imageOps:this.Mb,width:b,height:d},m)}}};k.prototype.zc=function(a,b){this.Ng||(this.Va[a]=b.data,--this.wb,0===this.wb&&this.Zd())};k.prototype.Zd=function(){var a=this.Nb,b=this.yb.length,d,e;if(1===b)d=new Uint8ClampedArray(this.Va[0].buffer),e=this.Va[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),
|
|
329
|
-
g=0;g<b;++g){var h=g*f;d.set(new Uint8ClampedArray(this.Va[g].buffer),h);e[g]=this.Va[g].meta}}this.Nb=null;this.Va={};a.zb(null,m(d,a.inputs[0].width,a.inputs[0].height),e);this.Xd()};b.J=k},{"./util":3}],3:[function(a,b,f){var d=!0;try{new ImageData(10,10)}catch(k){d=!1}var e=document.createElement("canvas").getContext("2d");f.pf=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)})})();q("ol.Map",E);E.prototype.addControl=E.prototype.ce;E.prototype.addInteraction=E.prototype.de;E.prototype.addLayer=E.prototype.ee;E.prototype.addOverlay=E.prototype.fe;E.prototype.forEachFeatureAtPixel=E.prototype.ne;E.prototype.forEachLayerAtPixel=E.prototype.uf;E.prototype.hasFeatureAtPixel=E.prototype.Ve;E.prototype.getEventCoordinate=E.prototype.re;E.prototype.getEventPixel=E.prototype.Ub;E.prototype.getTarget=E.prototype.Zb;E.prototype.getTargetElement=E.prototype.$b;
|
|
330
|
-
E.prototype.getCoordinateFromPixel=E.prototype.Ea;E.prototype.getControls=E.prototype.qe;E.prototype.getOverlays=E.prototype.ze;E.prototype.getOverlayById=E.prototype.ye;E.prototype.getInteractions=E.prototype.se;E.prototype.getLayerGroup=E.prototype.Za;E.prototype.getLayers=E.prototype.vf;E.prototype.getPixelFromCoordinate=E.prototype.Db;E.prototype.getSize=E.prototype.Hb;E.prototype.getView=E.prototype.T;E.prototype.getViewport=E.prototype.Ee;E.prototype.renderSync=E.prototype.fg;
|
|
331
|
-
E.prototype.render=E.prototype.render;E.prototype.removeControl=E.prototype.$f;E.prototype.removeInteraction=E.prototype.ag;E.prototype.removeLayer=E.prototype.bg;E.prototype.removeOverlay=E.prototype.cg;E.prototype.setLayerGroup=E.prototype.jg;E.prototype.setSize=E.prototype.kc;E.prototype.setTarget=E.prototype.gd;E.prototype.setView=E.prototype.ng;E.prototype.updateSize=E.prototype.qc;E.prototype.get=E.prototype.get;E.prototype.getKeys=E.prototype.ja;E.prototype.getProperties=E.prototype.Y;
|
|
332
|
-
E.prototype.set=E.prototype.set;E.prototype.setProperties=E.prototype.O;E.prototype.unset=E.prototype.la;E.prototype.changed=E.prototype.s;E.prototype.dispatchEvent=E.prototype.c;E.prototype.getRevision=E.prototype.ea;E.prototype.on=E.prototype.ga;E.prototype.once=E.prototype.once;E.prototype.un=E.prototype.ha;E.prototype.unByKey=E.prototype.ia;Mc.prototype.changed=Mc.prototype.s;Mc.prototype.dispatchEvent=Mc.prototype.c;Mc.prototype.getRevision=Mc.prototype.ea;Mc.prototype.on=Mc.prototype.ga;
|
|
333
|
-
Mc.prototype.once=Mc.prototype.once;Mc.prototype.un=Mc.prototype.ha;Mc.prototype.unByKey=Mc.prototype.ia;q("ol.View",D);D.prototype.animate=D.prototype.animate;D.prototype.constrainCenter=D.prototype.Oa;D.prototype.constrainResolution=D.prototype.constrainResolution;D.prototype.constrainRotation=D.prototype.constrainRotation;D.prototype.getCenter=D.prototype.ca;D.prototype.calculateExtent=D.prototype.Fc;D.prototype.getMaxResolution=D.prototype.wf;D.prototype.getMinResolution=D.prototype.xf;
|
|
334
|
-
D.prototype.getProjection=D.prototype.yf;D.prototype.getResolution=D.prototype.na;D.prototype.getResolutions=D.prototype.zf;D.prototype.getRotation=D.prototype.oa;D.prototype.getZoom=D.prototype.Ge;D.prototype.fit=D.prototype.me;D.prototype.centerOn=D.prototype.le;D.prototype.rotate=D.prototype.rotate;D.prototype.setCenter=D.prototype.ya;D.prototype.setResolution=D.prototype.fb;D.prototype.setRotation=D.prototype.bc;D.prototype.setZoom=D.prototype.pg;D.prototype.get=D.prototype.get;
|
|
335
|
-
D.prototype.getKeys=D.prototype.ja;D.prototype.getProperties=D.prototype.Y;D.prototype.set=D.prototype.set;D.prototype.setProperties=D.prototype.O;D.prototype.unset=D.prototype.la;D.prototype.changed=D.prototype.s;D.prototype.dispatchEvent=D.prototype.c;D.prototype.getRevision=D.prototype.ea;D.prototype.on=D.prototype.ga;D.prototype.once=D.prototype.once;D.prototype.un=D.prototype.ha;D.prototype.unByKey=D.prototype.ia;q("ol.geom.Circle",W);W.prototype.clone=W.prototype.clone;
|
|
336
|
-
W.prototype.getCenter=W.prototype.ca;W.prototype.getRadius=W.prototype.cc;W.prototype.getType=W.prototype.S;W.prototype.intersectsExtent=W.prototype.fa;W.prototype.setCenter=W.prototype.ya;W.prototype.setCenterAndRadius=W.prototype.yd;W.prototype.setRadius=W.prototype.mg;W.prototype.transform=W.prototype.ua;q("ol.geom.Geometry",w);w.prototype.getClosestPoint=w.prototype.wa;w.prototype.intersectsCoordinate=w.prototype.ta;w.prototype.getExtent=w.prototype.A;w.prototype.rotate=w.prototype.rotate;
|
|
337
|
-
w.prototype.scale=w.prototype.scale;w.prototype.simplify=w.prototype.za;w.prototype.transform=w.prototype.ua;q("ol.geom.GeometryCollection",N);N.prototype.clone=N.prototype.clone;N.prototype.getGeometries=N.prototype.Rc;N.prototype.getType=N.prototype.S;N.prototype.intersectsExtent=N.prototype.fa;N.prototype.setGeometries=N.prototype.Ad;N.prototype.applyTransform=N.prototype.Xa;N.prototype.translate=N.prototype.translate;q("ol.geom.LinearRing",z);z.prototype.clone=z.prototype.clone;
|
|
338
|
-
z.prototype.getArea=z.prototype.Cf;z.prototype.getCoordinates=z.prototype.da;z.prototype.getType=z.prototype.S;z.prototype.setCoordinates=z.prototype.W;q("ol.geom.LineString",J);J.prototype.appendCoordinate=J.prototype.ge;J.prototype.clone=J.prototype.clone;J.prototype.forEachSegment=J.prototype.oe;J.prototype.getCoordinateAtM=J.prototype.Af;J.prototype.getCoordinates=J.prototype.da;J.prototype.getCoordinateAt=J.prototype.Qc;J.prototype.getLength=J.prototype.Bf;J.prototype.getType=J.prototype.S;
|
|
339
|
-
J.prototype.intersectsExtent=J.prototype.fa;J.prototype.setCoordinates=J.prototype.W;q("ol.geom.MultiLineString",K);K.prototype.appendLineString=K.prototype.he;K.prototype.clone=K.prototype.clone;K.prototype.getCoordinateAtM=K.prototype.Df;K.prototype.getCoordinates=K.prototype.da;K.prototype.getLineString=K.prototype.ve;K.prototype.getLineStrings=K.prototype.Wb;K.prototype.getType=K.prototype.S;K.prototype.intersectsExtent=K.prototype.fa;K.prototype.setCoordinates=K.prototype.W;
|
|
340
|
-
q("ol.geom.MultiPoint",L);L.prototype.appendPoint=L.prototype.je;L.prototype.clone=L.prototype.clone;L.prototype.getCoordinates=L.prototype.da;L.prototype.getPoint=L.prototype.Ae;L.prototype.getPoints=L.prototype.hd;L.prototype.getType=L.prototype.S;L.prototype.intersectsExtent=L.prototype.fa;L.prototype.setCoordinates=L.prototype.W;q("ol.geom.MultiPolygon",M);M.prototype.appendPolygon=M.prototype.ke;M.prototype.clone=M.prototype.clone;M.prototype.getArea=M.prototype.Ef;
|
|
341
|
-
M.prototype.getCoordinates=M.prototype.da;M.prototype.getInteriorPoints=M.prototype.ue;M.prototype.getPolygon=M.prototype.Be;M.prototype.getPolygons=M.prototype.Vc;M.prototype.getType=M.prototype.S;M.prototype.intersectsExtent=M.prototype.fa;M.prototype.setCoordinates=M.prototype.W;q("ol.geom.Point",B);B.prototype.clone=B.prototype.clone;B.prototype.getCoordinates=B.prototype.da;B.prototype.getType=B.prototype.S;B.prototype.intersectsExtent=B.prototype.fa;B.prototype.setCoordinates=B.prototype.W;
|
|
342
|
-
q("ol.geom.Polygon",C);C.prototype.appendLinearRing=C.prototype.ie;C.prototype.clone=C.prototype.clone;C.prototype.getArea=C.prototype.Ff;C.prototype.getCoordinates=C.prototype.da;C.prototype.getInteriorPoint=C.prototype.te;C.prototype.getLinearRingCount=C.prototype.xe;C.prototype.getLinearRing=C.prototype.we;C.prototype.getLinearRings=C.prototype.Tc;C.prototype.getType=C.prototype.S;C.prototype.intersectsExtent=C.prototype.fa;C.prototype.setCoordinates=C.prototype.W;
|
|
343
|
-
q("ol.geom.Polygon.circular",function(a,b,c,d){var e=d?d:32;d=[];var f;for(f=0;f<e;++f)fa(d,a.offset(b,c,2*Math.PI*f/e));d.push(d[0],d[1]);a=new C(null);a.F("XY",d,[d.length]);return a});q("ol.geom.Polygon.fromExtent",Af);
|
|
344
|
-
q("ol.geom.Polygon.fromCircle",function(a,b,c){var d=b?b:32,e=a.a,f=a.H;b=new C(null,f);for(var d=e*(d+1),e=Array(d),g=0;g<d;g++)e[g]=0;b.F(f,e,[e.length]);f=a.ca();a=a.cc();var d=b.f,e=b.H,g=b.a,h=b.Qa(),k=d.length/g-1;c=c?c:0;for(var m,n,p=0;p<=k;++p)n=p*g,m=c+2*Da(p,k)*Math.PI/k,d[n]=f[0]+a*Math.cos(m),d[n+1]=f[1]+a*Math.sin(m);b.F(e,d,h);return b});q("ol.geom.SimpleGeometry",y);y.prototype.getFirstCoordinate=y.prototype.Ga;y.prototype.getLastCoordinate=y.prototype.Ha;y.prototype.getLayout=y.prototype.Ia;
|
|
345
|
-
y.prototype.applyTransform=y.prototype.Xa;y.prototype.translate=y.prototype.translate;w.prototype.get=w.prototype.get;w.prototype.getKeys=w.prototype.ja;w.prototype.getProperties=w.prototype.Y;w.prototype.set=w.prototype.set;w.prototype.setProperties=w.prototype.O;w.prototype.unset=w.prototype.la;w.prototype.changed=w.prototype.s;w.prototype.dispatchEvent=w.prototype.c;w.prototype.getRevision=w.prototype.ea;w.prototype.on=w.prototype.ga;w.prototype.once=w.prototype.once;w.prototype.un=w.prototype.ha;
|
|
346
|
-
w.prototype.unByKey=w.prototype.ia;y.prototype.getClosestPoint=y.prototype.wa;y.prototype.intersectsCoordinate=y.prototype.ta;y.prototype.getExtent=y.prototype.A;y.prototype.rotate=y.prototype.rotate;y.prototype.scale=y.prototype.scale;y.prototype.simplify=y.prototype.za;y.prototype.transform=y.prototype.ua;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.O;
|
|
347
|
-
y.prototype.unset=y.prototype.la;y.prototype.changed=y.prototype.s;y.prototype.dispatchEvent=y.prototype.c;y.prototype.getRevision=y.prototype.ea;y.prototype.on=y.prototype.ga;y.prototype.once=y.prototype.once;y.prototype.un=y.prototype.ha;y.prototype.unByKey=y.prototype.ia;W.prototype.getFirstCoordinate=W.prototype.Ga;W.prototype.getLastCoordinate=W.prototype.Ha;W.prototype.getLayout=W.prototype.Ia;W.prototype.rotate=W.prototype.rotate;W.prototype.scale=W.prototype.scale;
|
|
348
|
-
W.prototype.getClosestPoint=W.prototype.wa;W.prototype.intersectsCoordinate=W.prototype.ta;W.prototype.getExtent=W.prototype.A;W.prototype.simplify=W.prototype.za;W.prototype.get=W.prototype.get;W.prototype.getKeys=W.prototype.ja;W.prototype.getProperties=W.prototype.Y;W.prototype.set=W.prototype.set;W.prototype.setProperties=W.prototype.O;W.prototype.unset=W.prototype.la;W.prototype.changed=W.prototype.s;W.prototype.dispatchEvent=W.prototype.c;W.prototype.getRevision=W.prototype.ea;
|
|
349
|
-
W.prototype.on=W.prototype.ga;W.prototype.once=W.prototype.once;W.prototype.un=W.prototype.ha;W.prototype.unByKey=W.prototype.ia;N.prototype.getClosestPoint=N.prototype.wa;N.prototype.intersectsCoordinate=N.prototype.ta;N.prototype.getExtent=N.prototype.A;N.prototype.rotate=N.prototype.rotate;N.prototype.scale=N.prototype.scale;N.prototype.simplify=N.prototype.za;N.prototype.transform=N.prototype.ua;N.prototype.get=N.prototype.get;N.prototype.getKeys=N.prototype.ja;N.prototype.getProperties=N.prototype.Y;
|
|
350
|
-
N.prototype.set=N.prototype.set;N.prototype.setProperties=N.prototype.O;N.prototype.unset=N.prototype.la;N.prototype.changed=N.prototype.s;N.prototype.dispatchEvent=N.prototype.c;N.prototype.getRevision=N.prototype.ea;N.prototype.on=N.prototype.ga;N.prototype.once=N.prototype.once;N.prototype.un=N.prototype.ha;N.prototype.unByKey=N.prototype.ia;z.prototype.getFirstCoordinate=z.prototype.Ga;z.prototype.getLastCoordinate=z.prototype.Ha;z.prototype.getLayout=z.prototype.Ia;z.prototype.rotate=z.prototype.rotate;
|
|
351
|
-
z.prototype.scale=z.prototype.scale;z.prototype.getClosestPoint=z.prototype.wa;z.prototype.intersectsCoordinate=z.prototype.ta;z.prototype.getExtent=z.prototype.A;z.prototype.simplify=z.prototype.za;z.prototype.transform=z.prototype.ua;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.O;z.prototype.unset=z.prototype.la;z.prototype.changed=z.prototype.s;
|
|
352
|
-
z.prototype.dispatchEvent=z.prototype.c;z.prototype.getRevision=z.prototype.ea;z.prototype.on=z.prototype.ga;z.prototype.once=z.prototype.once;z.prototype.un=z.prototype.ha;z.prototype.unByKey=z.prototype.ia;J.prototype.getFirstCoordinate=J.prototype.Ga;J.prototype.getLastCoordinate=J.prototype.Ha;J.prototype.getLayout=J.prototype.Ia;J.prototype.rotate=J.prototype.rotate;J.prototype.scale=J.prototype.scale;J.prototype.getClosestPoint=J.prototype.wa;J.prototype.intersectsCoordinate=J.prototype.ta;
|
|
353
|
-
J.prototype.getExtent=J.prototype.A;J.prototype.simplify=J.prototype.za;J.prototype.transform=J.prototype.ua;J.prototype.get=J.prototype.get;J.prototype.getKeys=J.prototype.ja;J.prototype.getProperties=J.prototype.Y;J.prototype.set=J.prototype.set;J.prototype.setProperties=J.prototype.O;J.prototype.unset=J.prototype.la;J.prototype.changed=J.prototype.s;J.prototype.dispatchEvent=J.prototype.c;J.prototype.getRevision=J.prototype.ea;J.prototype.on=J.prototype.ga;J.prototype.once=J.prototype.once;
|
|
354
|
-
J.prototype.un=J.prototype.ha;J.prototype.unByKey=J.prototype.ia;K.prototype.getFirstCoordinate=K.prototype.Ga;K.prototype.getLastCoordinate=K.prototype.Ha;K.prototype.getLayout=K.prototype.Ia;K.prototype.rotate=K.prototype.rotate;K.prototype.scale=K.prototype.scale;K.prototype.getClosestPoint=K.prototype.wa;K.prototype.intersectsCoordinate=K.prototype.ta;K.prototype.getExtent=K.prototype.A;K.prototype.simplify=K.prototype.za;K.prototype.transform=K.prototype.ua;K.prototype.get=K.prototype.get;
|
|
355
|
-
K.prototype.getKeys=K.prototype.ja;K.prototype.getProperties=K.prototype.Y;K.prototype.set=K.prototype.set;K.prototype.setProperties=K.prototype.O;K.prototype.unset=K.prototype.la;K.prototype.changed=K.prototype.s;K.prototype.dispatchEvent=K.prototype.c;K.prototype.getRevision=K.prototype.ea;K.prototype.on=K.prototype.ga;K.prototype.once=K.prototype.once;K.prototype.un=K.prototype.ha;K.prototype.unByKey=K.prototype.ia;L.prototype.getFirstCoordinate=L.prototype.Ga;L.prototype.getLastCoordinate=L.prototype.Ha;
|
|
356
|
-
L.prototype.getLayout=L.prototype.Ia;L.prototype.rotate=L.prototype.rotate;L.prototype.scale=L.prototype.scale;L.prototype.getClosestPoint=L.prototype.wa;L.prototype.intersectsCoordinate=L.prototype.ta;L.prototype.getExtent=L.prototype.A;L.prototype.simplify=L.prototype.za;L.prototype.transform=L.prototype.ua;L.prototype.get=L.prototype.get;L.prototype.getKeys=L.prototype.ja;L.prototype.getProperties=L.prototype.Y;L.prototype.set=L.prototype.set;L.prototype.setProperties=L.prototype.O;
|
|
357
|
-
L.prototype.unset=L.prototype.la;L.prototype.changed=L.prototype.s;L.prototype.dispatchEvent=L.prototype.c;L.prototype.getRevision=L.prototype.ea;L.prototype.on=L.prototype.ga;L.prototype.once=L.prototype.once;L.prototype.un=L.prototype.ha;L.prototype.unByKey=L.prototype.ia;M.prototype.getFirstCoordinate=M.prototype.Ga;M.prototype.getLastCoordinate=M.prototype.Ha;M.prototype.getLayout=M.prototype.Ia;M.prototype.rotate=M.prototype.rotate;M.prototype.scale=M.prototype.scale;
|
|
358
|
-
M.prototype.getClosestPoint=M.prototype.wa;M.prototype.intersectsCoordinate=M.prototype.ta;M.prototype.getExtent=M.prototype.A;M.prototype.simplify=M.prototype.za;M.prototype.transform=M.prototype.ua;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.O;M.prototype.unset=M.prototype.la;M.prototype.changed=M.prototype.s;M.prototype.dispatchEvent=M.prototype.c;
|
|
359
|
-
M.prototype.getRevision=M.prototype.ea;M.prototype.on=M.prototype.ga;M.prototype.once=M.prototype.once;M.prototype.un=M.prototype.ha;M.prototype.unByKey=M.prototype.ia;B.prototype.getFirstCoordinate=B.prototype.Ga;B.prototype.getLastCoordinate=B.prototype.Ha;B.prototype.getLayout=B.prototype.Ia;B.prototype.rotate=B.prototype.rotate;B.prototype.scale=B.prototype.scale;B.prototype.getClosestPoint=B.prototype.wa;B.prototype.intersectsCoordinate=B.prototype.ta;B.prototype.getExtent=B.prototype.A;
|
|
360
|
-
B.prototype.simplify=B.prototype.za;B.prototype.transform=B.prototype.ua;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.O;B.prototype.unset=B.prototype.la;B.prototype.changed=B.prototype.s;B.prototype.dispatchEvent=B.prototype.c;B.prototype.getRevision=B.prototype.ea;B.prototype.on=B.prototype.ga;B.prototype.once=B.prototype.once;B.prototype.un=B.prototype.ha;
|
|
361
|
-
B.prototype.unByKey=B.prototype.ia;C.prototype.getFirstCoordinate=C.prototype.Ga;C.prototype.getLastCoordinate=C.prototype.Ha;C.prototype.getLayout=C.prototype.Ia;C.prototype.rotate=C.prototype.rotate;C.prototype.scale=C.prototype.scale;C.prototype.getClosestPoint=C.prototype.wa;C.prototype.intersectsCoordinate=C.prototype.ta;C.prototype.getExtent=C.prototype.A;C.prototype.simplify=C.prototype.za;C.prototype.transform=C.prototype.ua;C.prototype.get=C.prototype.get;C.prototype.getKeys=C.prototype.ja;
|
|
362
|
-
C.prototype.getProperties=C.prototype.Y;C.prototype.set=C.prototype.set;C.prototype.setProperties=C.prototype.O;C.prototype.unset=C.prototype.la;C.prototype.changed=C.prototype.s;C.prototype.dispatchEvent=C.prototype.c;C.prototype.getRevision=C.prototype.ea;C.prototype.on=C.prototype.ga;C.prototype.once=C.prototype.once;C.prototype.un=C.prototype.ha;C.prototype.unByKey=C.prototype.ia;q("ol.source.XYZ",Z);Z.prototype.setRenderReprojectionEdges=Z.prototype.Cd;Z.prototype.setTileGridForProjection=Z.prototype.Ed;
|
|
363
|
-
Z.prototype.getTileLoadFunction=Z.prototype.Zc;Z.prototype.getTileUrlFunction=Z.prototype.$c;Z.prototype.getUrls=Z.prototype.ad;Z.prototype.setTileLoadFunction=Z.prototype.Fd;Z.prototype.setTileUrlFunction=Z.prototype.qb;Z.prototype.setUrl=Z.prototype.fc;Z.prototype.setUrls=Z.prototype.lc;Z.prototype.getTileGrid=Z.prototype.Yc;Z.prototype.refresh=Z.prototype.ec;Z.prototype.getAttributions=Z.prototype.qd;Z.prototype.getLogo=Z.prototype.Uc;Z.prototype.getProjection=Z.prototype.rd;
|
|
364
|
-
Z.prototype.getState=Z.prototype.U;Z.prototype.setAttributions=Z.prototype.xd;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.O;Z.prototype.unset=Z.prototype.la;Z.prototype.changed=Z.prototype.s;Z.prototype.dispatchEvent=Z.prototype.c;Z.prototype.getRevision=Z.prototype.ea;Z.prototype.on=Z.prototype.ga;Z.prototype.once=Z.prototype.once;Z.prototype.un=Z.prototype.ha;
|
|
365
|
-
Z.prototype.unByKey=Z.prototype.ia;q("ol.extent.boundingExtent",Ga);q("ol.extent.buffer",function(a,b,c){return c?(c[0]=a[0]-b,c[1]=a[1]-b,c[2]=a[2]+b,c[3]=a[3]+b,c):[a[0]-b,a[1]-b,a[2]+b,a[3]+b]});q("ol.extent.containsCoordinate",La);q("ol.extent.containsExtent",Oa);q("ol.extent.containsXY",Ma);q("ol.extent.createEmpty",Ha);q("ol.extent.equals",Ua);q("ol.extent.extend",Va);q("ol.extent.getBottomLeft",bb);q("ol.extent.getBottomRight",cb);q("ol.extent.getCenter",jb);q("ol.extent.getHeight",ib);
|
|
366
|
-
q("ol.extent.getIntersection",mb);q("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});q("ol.extent.getTopLeft",eb);q("ol.extent.getTopRight",db);q("ol.extent.getWidth",hb);q("ol.extent.intersects",nb);q("ol.extent.isEmpty",gb);q("ol.extent.applyTransform",ob);q("ol.layer.Tile",X);X.prototype.getPreload=X.prototype.Wc;X.prototype.getSource=X.prototype.Ka;X.prototype.setPreload=X.prototype.md;X.prototype.getUseInterimTilesOnError=X.prototype.bd;X.prototype.setUseInterimTilesOnError=X.prototype.od;
|
|
367
|
-
X.prototype.setMap=X.prototype.setMap;X.prototype.setSource=X.prototype.Dd;X.prototype.getExtent=X.prototype.A;X.prototype.getMaxResolution=X.prototype.jd;X.prototype.getMinResolution=X.prototype.kd;X.prototype.getOpacity=X.prototype.ld;X.prototype.getVisible=X.prototype.ac;X.prototype.getZIndex=X.prototype.Eb;X.prototype.setExtent=X.prototype.Gf;X.prototype.setMaxResolution=X.prototype.kg;X.prototype.setMinResolution=X.prototype.lg;X.prototype.setOpacity=X.prototype.Hf;X.prototype.setVisible=X.prototype.If;
|
|
368
|
-
X.prototype.setZIndex=X.prototype.Gd;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.O;X.prototype.unset=X.prototype.la;X.prototype.changed=X.prototype.s;X.prototype.dispatchEvent=X.prototype.c;X.prototype.getRevision=X.prototype.ea;X.prototype.on=X.prototype.ga;X.prototype.once=X.prototype.once;X.prototype.un=X.prototype.ha;X.prototype.unByKey=X.prototype.ia;
|
|
369
|
-
q("ol.proj.METERS_PER_UNIT",vb);q("ol.proj.setProj4",void 0);q("ol.proj.getPointResolution",Hb);q("ol.proj.addEquivalentProjections",Kb);q("ol.proj.addProjection",Sb);q("ol.proj.addCoordinateTransforms",function(a,b,c,d){a=Jb(a);b=Jb(b);Gb(a,b,Ub(c));Gb(b,a,Ub(d))});q("ol.proj.fromLonLat",function(a,b){return Yb(a,"EPSG:4326",void 0!==b?b:"EPSG:3857")});q("ol.proj.toLonLat",function(a,b){return Yb(a,void 0!==b?b:"EPSG:3857","EPSG:4326")});q("ol.proj.get",Jb);q("ol.proj.equivalent",Vb);
|
|
370
|
-
q("ol.proj.getTransform",Wb);q("ol.proj.transform",Yb);q("ol.proj.transformExtent",bc);q("ol.proj.common.add",mh);q("ol.proj.Projection",wb);wb.prototype.getCode=wb.prototype.pe;wb.prototype.getExtent=wb.prototype.A;wb.prototype.getUnits=wb.prototype.De;wb.prototype.getMetersPerUnit=wb.prototype.$a;wb.prototype.getWorldExtent=wb.prototype.Fe;wb.prototype.isGlobal=wb.prototype.Xe;wb.prototype.setGlobal=wb.prototype.ig;wb.prototype.setExtent=wb.prototype.Kf;wb.prototype.setWorldExtent=wb.prototype.og;
|
|
371
|
-
wb.prototype.setGetPointResolution=wb.prototype.hg;q("ol.proj.Units.METERS_PER_UNIT",vb);Ch.prototype.drawCircle=Ch.prototype.Sb;Ch.prototype.setStyle=Ch.prototype.dc;Ch.prototype.drawGeometry=Ch.prototype.Bb;Ch.prototype.drawFeature=Ch.prototype.Ic;q("ol.source.XYZ",Z);Z.prototype.setRenderReprojectionEdges=Z.prototype.Cd;Z.prototype.setTileGridForProjection=Z.prototype.Ed;Z.prototype.getTileLoadFunction=Z.prototype.Zc;Z.prototype.getTileUrlFunction=Z.prototype.$c;Z.prototype.getUrls=Z.prototype.ad;
|
|
372
|
-
Z.prototype.setTileLoadFunction=Z.prototype.Fd;Z.prototype.setTileUrlFunction=Z.prototype.qb;Z.prototype.setUrl=Z.prototype.fc;Z.prototype.setUrls=Z.prototype.lc;Z.prototype.getTileGrid=Z.prototype.Yc;Z.prototype.refresh=Z.prototype.ec;Z.prototype.getAttributions=Z.prototype.qd;Z.prototype.getLogo=Z.prototype.Uc;Z.prototype.getProjection=Z.prototype.rd;Z.prototype.getState=Z.prototype.U;Z.prototype.setAttributions=Z.prototype.xd;Z.prototype.get=Z.prototype.get;Z.prototype.getKeys=Z.prototype.ja;
|
|
373
|
-
Z.prototype.getProperties=Z.prototype.Y;Z.prototype.set=Z.prototype.set;Z.prototype.setProperties=Z.prototype.O;Z.prototype.unset=Z.prototype.la;Z.prototype.changed=Z.prototype.s;Z.prototype.dispatchEvent=Z.prototype.c;Z.prototype.getRevision=Z.prototype.ea;Z.prototype.on=Z.prototype.ga;Z.prototype.once=Z.prototype.once;Z.prototype.un=Z.prototype.ha;Z.prototype.unByKey=Z.prototype.ia;
|
|
374
|
-
return OPENLAYERS.ol;
|
|
375
|
-
}));
|
|
376
|
-
|