UNPKG

planet-maps

Version:

Custom builds of OpenLayers 3

101 lines (99 loc) 262 kB
// OpenLayers 3. See http://openlayers.org/ // License: https://raw.githubusercontent.com/openlayers/ol3/master/LICENSE.md // Version: v5.0.1 (function (root, factory) { if (typeof exports === "object") { module.exports = factory(); } else if (typeof define === "function" && define.amd) { define([], factory); } else { root.ol = factory(); } }(this, function () { var OPENLAYERS = {}; var k,aa=this;function r(a,b,c){a=a.split(".");c=c||aa;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]?c=c[d]:c=c[d]={}:c[d]=b} function ca(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function da(a){return"number"==typeof a}function fa(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function w(a){return a[ga]||(a[ga]=++ha)}var ga="closure_uid_"+(1E9*Math.random()>>>0),ha=0;function la(a,b,c){return a.call.apply(a.bind,arguments)} function ma(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function na(a,b,c){na=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return na.apply(null,arguments)};function x(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a}function qa(){}var sa=Function("return this")();function ta(a,b,c){return Math.min(Math.max(a,b),c)}var va=function(){var a;"cosh"in Math?a=Math.cosh:a=function(a){a=Math.exp(a);return(a+1/a)/2};return a}();function wa(a,b,c,d){a=c-a;b=d-b;return a*a+b*b}function xa(a,b){var c=a%b;return 0>c*b?c+b:c}function ya(a,b,c){return a+c*(b-a)};function za(a){return function(b){if(b)return[ta(b[0],a[0],a[2]),ta(b[1],a[1],a[3])]}}function Aa(a){return a};function Ba(a,b,c){this.center=a;this.resolution=b;this.rotation=c};var Ca="function"===typeof Object.assign?Object.assign:function(a,b){if(!a||!a)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(a),d=1,e=arguments.length;d<e;++d){var f=arguments[d];if(void 0!==f&&null!==f)for(var g in f)f.hasOwnProperty(g)&&(c[g]=f[g])}return c};function Da(a){for(var b in a)delete a[b]}function Ea(a){var b=[],c;for(c in a)b.push(a[c]);return b}function Fa(a){for(var b in a)return!1;return!b};var Ha="olm_"+(1E4*Math.random()|0);function Ia(a){function b(b){var d=a.listener,e=a.Xd||a.target;a.$d&&Ja(a);return d.call(e,b)}return a.Yd=b}function Ka(a,b,c,d){for(var e,f=0,g=a.length;f<g;++f)if(e=a[f],e.listener===b&&e.Xd===c)return d&&(e.deleteIndex=f),e}function La(a,b){var c=a[Ha];return c?c[b]:void 0}function Ma(a){var b=a[Ha];b||(b=a[Ha]={});return b} function Na(a,b){var c=La(a,b);if(c){for(var d=0,e=c.length;d<e;++d)a.removeEventListener(b,c[d].Yd),Da(c[d]);c.length=0;if(c=a[Ha])delete c[b],0===Object.keys(c).length&&delete a[Ha]}}function y(a,b,c,d,e){var f=Ma(a),g=f[b];g||(g=f[b]=[]);(f=Ka(g,c,d,!1))?e||(f.$d=!1):(f={Xd:d,$d:!!e,listener:c,target:a,type:b},a.addEventListener(b,Ia(f)),g.push(f));return f}function Oa(a,b,c,d){(a=La(a,b))&&(c=Ka(a,c,d,!0))&&Ja(c)} function Ja(a){if(a&&a.target){a.target.removeEventListener(a.type,a.Yd);var b=La(a.target,a.type);if(b){var c="deleteIndex"in a?a.deleteIndex:b.indexOf(a);-1!==c&&b.splice(c,1);0===b.length&&Na(a.target,a.type)}Da(a)}};function Pa(){}Pa.prototype.Za=!1;function Qa(a){a.Za||(a.Za=!0,a.ga())}Pa.prototype.ga=qa;function Ra(a,b){this.type=a;this.target=b||null}Ra.prototype.preventDefault=Ra.prototype.stopPropagation=function(){this.Di=!0};function Sa(a){a.stopPropagation()};function Ta(){this.ya={};this.ca={};this.ea={}}x(Ta,Pa);Ta.prototype.addEventListener=function(a,b){var c=this.ea[a];c||(c=this.ea[a]=[]);-1===c.indexOf(b)&&c.push(b)}; Ta.prototype.f=function(a){var b="string"===typeof a?new Ra(a):a;a=b.type;b.target=this;var c=this.ea[a],d;if(c){a in this.ca||(this.ca[a]=0,this.ya[a]=0);++this.ca[a];for(var e=0,f=c.length;e<f;++e)if(!1===c[e].call(this,b)||b.Di){d=!1;break}--this.ca[a];if(0===this.ca[a]){b=this.ya[a];for(delete this.ya[a];b--;)this.removeEventListener(a,qa);delete this.ca[a]}return d}};Ta.prototype.ga=function(){var a=Ma(this),b;for(b in a)Na(this,b)}; function Ua(a,b){return b?b in a.ea:0<Object.keys(a.ea).length}Ta.prototype.removeEventListener=function(a,b){var c=this.ea[a];if(c){var d=c.indexOf(b);a in this.ya?(c[d]=qa,++this.ya[a]):(c.splice(d,1),0===c.length&&delete this.ea[a])}};function Va(){Ta.call(this);this.g=0}x(Va,Ta);k=Va.prototype;k.o=function(){++this.g;this.f("change")};k.U=function(){return this.g};k.W=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=y(this,a[f],b,c);return e}return y(this,a,b,c)};k.X=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=y(this,a[f],b,c,!0);return e}return y(this,a,b,c,!0)}; k.Y=function(a,b,c){if(Array.isArray(a))for(var d=0,e=a.length;d<e;++d)Oa(this,a[d],b,c);else Oa(this,a,b,c)};k.Z=function(a){if(Array.isArray(a))for(var b=0,c=a.length;b<c;++b)Ja(a[b]);else Ja(a)};function Wa(a,b,c){Ra.call(this,a);this.key=b;this.oldValue=c}x(Wa,Ra);function Xa(a){Va.call(this);w(this);this.v={};void 0!==a&&this.P(a)}x(Xa,Va);var Ya={};function Za(a){return Ya.hasOwnProperty(a)?Ya[a]:Ya[a]="change:"+a}k=Xa.prototype;k.get=function(a){var b;this.v.hasOwnProperty(a)&&(b=this.v[a]);return b};k.$=function(){return Object.keys(this.v)};k.T=function(){return Ca({},this.v)};function $a(a,b,c){var d;d=Za(b);a.f(new Wa(d,b,c));a.f(new Wa("propertychange",b,c))} k.set=function(a,b,c){c?this.v[a]=b:(c=this.v[a],this.v[a]=b,c!==b&&$a(this,a,c))};k.P=function(a,b){for(var c in a)this.set(c,a[c],b)};k.ba=function(a,b){if(a in this.v){var c=this.v[a];delete this.v[a];b||$a(this,a,c)}};function ab(a,b){return a>b?1:a<b?-1:0}function bb(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 cb(a,b){var c;c=ca(b);var d="array"==c||"object"==c&&"number"==typeof b.length?b:[b],e=d.length;for(c=0;c<e;c++)a[a.length]=d[c]} function db(a,b){var c=a.indexOf(b),d=-1<c;d&&a.splice(c,1);return d}function eb(a,b){var c=a.length;if(c!==b.length)return!1;for(var d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0}function fb(a){var b=gb,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 hb(a){return function(b,c,d){if(void 0!==b)return b=bb(a,b,d),b=ta(b+c,0,a.length-1),a[b]}}function ib(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)+(0<f?0:0>f?1:.5))+e,0),void 0!==c&&(d=Math.min(d,c)),b/Math.pow(a,d)}};function jb(a){if(void 0!==a)return 0}function kb(a,b){if(void 0!==a)return a+b}function lb(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 mb(){var a=5*Math.PI/180;return function(b,c){if(void 0!==b)return Math.abs(b+c)<=a?0:b+c}};function nb(a,b){a[0]+=b[0];a[1]+=b[1]}function ob(a,b){var c=a[0],d=a[1],e=b[0],f=b[1],g=e[0],e=e[1],h=f[0],f=f[1],l=h-g,m=f-e,c=0===l&&0===m?0:(l*(c-g)+m*(d-e))/(l*l+m*m||0);0>=c||(1<=c?(g=h,e=f):(g+=c*l,e+=c*m));return[g,e]}function pb(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}function qb(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 rb(a,b){var c=a[0]-b[0],d=a[1]-b[1];return c*c+d*d};function sb(a){for(var b=tb(),c=0,d=a.length;c<d;++c)ub(b,a[c]);return b}function vb(a,b,c){return c?(c[0]=a[0]-b,c[1]=a[1]-b,c[2]=a[2]+b,c[3]=a[3]+b,c):[a[0]-b,a[1]-b,a[2]+b,a[3]+b]}function wb(a,b){return b?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function xb(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 yb(a,b){return zb(a,b[0],b[1])}function Ab(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]} function zb(a,b,c){return a[0]<=b&&b<=a[2]&&a[1]<=c&&c<=a[3]}function Bb(a,b){var c=a[1],d=a[2],e=a[3],f=b[0],g=b[1],h=0;f<a[0]?h|=16:f>d&&(h|=4);g<c?h|=8:g>e&&(h|=2);0===h&&(h=1);return h}function tb(){return[Infinity,Infinity,-Infinity,-Infinity]}function Cb(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 Eb(a){return Cb(Infinity,Infinity,-Infinity,-Infinity,a)}function Fb(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]} function Gb(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 ub(a,b){b[0]<a[0]&&(a[0]=b[0]);b[0]>a[2]&&(a[2]=b[0]);b[1]<a[1]&&(a[1]=b[1]);b[1]>a[3]&&(a[3]=b[1])}function Hb(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 Ib(a,b,c){var d;return(d=b.call(c,Jb(a)))||(d=b.call(c,Kb(a)))||(d=b.call(c,Lb(a)))?d:(d=b.call(c,Mb(a)))?d:!1}function Nb(a){var b=0;Ob(a)||(b=Pb(a)*Qb(a));return b}function Jb(a){return[a[0],a[1]]}function Kb(a){return[a[2],a[1]]}function Rb(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]} function Sb(a,b,c,d,e){var f=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);var g=Math.sin(c);c=f*b;f*=g;b*=d;var h=d*g,l=a[0],m=a[1];a=l-c+h;d=l-c-h;g=l+c-h;c=l+c+h;var h=m-f-b,l=m-f+b,n=m+f+b,f=m+f-b;return Cb(Math.min(a,d,g,c),Math.min(h,l,n,f),Math.max(a,d,g,c),Math.max(h,l,n,f),e)}function Qb(a){return a[3]-a[1]}function Tb(a,b,c){c=c?c:tb();Ub(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 Mb(a){return[a[0],a[3]]} function Lb(a){return[a[2],a[3]]}function Pb(a){return a[2]-a[0]}function Ub(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Ob(a){return a[2]<a[0]||a[3]<a[1]}function Vb(a,b){var c=(a[2]-a[0])/2*(b-1),d=(a[3]-a[1])/2*(b-1);a[0]-=c;a[2]+=c;a[1]-=d;a[3]+=d} function Wb(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 Cb(b,a,d,e,c)};function Xb(){return!0}function Yb(){return!1};/* Latitude/longitude spherical geodesy formulae taken from http://www.movable-type.co.uk/scripts/latlong.html Licensed under CC-BY-3.0. */ function Zb(a){this.radius=a}function $b(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*ac.radius*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))} Zb.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 ac=new Zb(6370997);var bc={};bc.degrees=2*Math.PI*ac.radius/360;bc.ft=.3048;bc.m=1;bc["us-ft"]=1200/3937; function cc(a){this.f=a.code;this.b=a.units;this.c=void 0!==a.extent?a.extent:null;this.j=void 0!==a.worldExtent?a.worldExtent:null;this.h=void 0!==a.axisOrientation?a.axisOrientation:"enu";this.g=void 0!==a.global?a.global:!1;this.a=!(!this.g||!this.c);this.v=void 0!==a.getPointResolution?a.getPointResolution:this.kg;this.i=null;this.l=a.metersPerUnit;var b=dc,c=a.code,d=ec||sa.proj4;if("function"==typeof d&&void 0===b[c]){var e=d.defs(c);if(void 0!==e){void 0!==e.axis&&void 0===a.axisOrientation&& (this.h=e.axis);void 0===a.metersPerUnit&&(this.l=e.to_meter);void 0===a.units&&(this.b=e.units);for(var f in b)b=d.defs(f),void 0!==b&&(a=fc(f),b===e?gc([a,this]):(b=d(f,c),hc(a,this,b.forward,b.inverse)))}}}k=cc.prototype;k.Rf=function(){return this.f};k.A=function(){return this.c};k.qg=function(){return this.b};k.ab=function(){return this.l||bc[this.b]};k.sg=function(){return this.j};k.Zg=function(){return this.g};k.Vi=function(a){this.g=a;this.a=!(!a||!this.c)}; k.Ph=function(a){this.c=a;this.a=!(!this.g||!a)};k.ij=function(a){this.j=a};k.Ui=function(a){this.v=a};k.kg=function(a,b){if("degrees"==this.b)return a;var c=ic(this,fc("EPSG:4326")),d=[b[0]-a/2,b[1],b[0]+a/2,b[1],b[0],b[1]-a/2,b[0],b[1]+a/2],d=c(d,d,2),c=($b(d.slice(0,2),d.slice(2,4))+$b(d.slice(4,6),d.slice(6,8)))/2,d=this.ab();void 0!==d&&(c/=d);return c};k.getPointResolution=function(a,b){return this.v(a,b)};var dc={},jc={},ec=null; function gc(a){kc(a);a.forEach(function(b){a.forEach(function(a){b!==a&&lc(b,a,mc)})})}function nc(){var a=oc,b=pc,c=qc;rc.forEach(function(d){a.forEach(function(a){lc(d,a,b);lc(a,d,c)})})}function sc(a){dc[a.f]=a;lc(a,a,mc)}function kc(a){var b=[];a.forEach(function(a){b.push(sc(a))})}function tc(a){return a?"string"===typeof a?fc(a):a:fc("EPSG:3857")}function lc(a,b,c){a=a.f;b=b.f;a in jc||(jc[a]={});jc[a][b]=c}function hc(a,b,c,d){a=fc(a);b=fc(b);lc(a,b,uc(c));lc(b,a,uc(d))} function uc(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 fc(a){var b;if(a instanceof cc)b=a;else if("string"===typeof a){b=dc[a];var c=ec||sa.proj4;void 0===b&&"function"==typeof c&&void 0!==c.defs(a)&&(b=new cc({code:a}),sc(b))}else b=null;return b}function vc(a,b){if(a===b)return!0;var c=a.b===b.b;return a.f===b.f?c:ic(a,b)===mc&&c} function wc(a,b){var c=fc(a),d=fc(b);return ic(c,d)}function ic(a,b){var c=a.f,d=b.f,e;c in jc&&d in jc[c]&&(e=jc[c][d]);void 0===e&&(e=xc);return e}function xc(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 mc(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 yc(a,b,c){return wc(b,c)(a,void 0,a.length)}function zc(a,b,c){b=wc(b,c);return Wb(a,b)};function Ac(){Xa.call(this);this.w=tb();this.C=-1;this.i={};this.u=this.l=0}x(Ac,Xa);k=Ac.prototype;k.Fa=function(a,b){var c=b?b:[NaN,NaN];this.Ea(a[0],a[1],c,Infinity);return c};k.ce=function(a){return this.fb(a[0],a[1])};k.fb=Yb;k.A=function(a){this.C!=this.g&&(this.w=this.bc(this.w),this.C=this.g);var b=this.w;a?(a[0]=b[0],a[1]=b[1],a[2]=b[2],a[3]=b[3]):a=b;return a};k.Ia=function(a){return this.gc(a*a)};k.Ba=function(a,b){this.kb(wc(a,b));return this};function Bc(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Bc.prototype.BYTES_PER_ELEMENT=4;Bc.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Bc.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(Bc.BYTES_PER_ELEMENT=4,Bc.prototype.BYTES_PER_ELEMENT=Bc.prototype.BYTES_PER_ELEMENT,Bc.prototype.set=Bc.prototype.set,Bc.prototype.toString=Bc.prototype.toString,r("Float32Array",Bc,void 0));function Cc(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Cc.prototype.BYTES_PER_ELEMENT=8;Cc.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Cc.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{Cc.BYTES_PER_ELEMENT=8}catch(a){}Cc.prototype.BYTES_PER_ELEMENT=Cc.prototype.BYTES_PER_ELEMENT;Cc.prototype.set=Cc.prototype.set;Cc.prototype.toString=Cc.prototype.toString;r("Float64Array",Cc,void 0)};function Dc(){var a=Array(16);a[0]=0;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=0;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=0;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=0;return a} function Ec(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],l=a[6],m=a[7],n=a[8],p=a[9],q=a[10],t=a[11],z=a[12],C=a[13],u=a[14],W=a[15],P=c*h-d*g,v=c*l-e*g,N=c*m-f*g,ia=d*l-e*h,ja=d*m-f*h,ba=e*m-f*l,ka=n*C-p*z,S=n*u-q*z,oa=n*W-t*z,pa=p*u-q*C,ua=p*W-t*C,ra=q*W-t*u,ea=P*ra-v*ua+N*pa+ia*oa-ja*S+ba*ka;0!=ea&&(ea=1/ea,b[0]=(h*ra-l*ua+m*pa)*ea,b[1]=(-d*ra+e*ua-f*pa)*ea,b[2]=(C*ba-u*ja+W*ia)*ea,b[3]=(-p*ba+q*ja-t*ia)*ea,b[4]=(-g*ra+l*oa-m*S)*ea,b[5]=(c*ra-e*oa+f*S)*ea,b[6]=(-z*ba+u*N-W*v)*ea,b[7]=(n* ba-q*N+t*v)*ea,b[8]=(g*ua-h*oa+m*ka)*ea,b[9]=(-c*ua+d*oa-f*ka)*ea,b[10]=(z*ja-C*N+W*P)*ea,b[11]=(-n*ja+p*N-t*P)*ea,b[12]=(-g*pa+h*S-l*ka)*ea,b[13]=(c*pa-d*S+e*ka)*ea,b[14]=(-z*ia+C*v-u*P)*ea,b[15]=(n*ia-p*v+q*P)*ea)}function Fc(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],f=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=f}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function Gc(a,b,c,d,e,f){var g=e[0],h=e[1],l=e[4],m=e[5],n=e[12];e=e[13];for(var p=f?f:[],q=0;b<c;b+=d){var t=a[b],z=a[b+1];p[q++]=g*t+l*z+n;p[q++]=h*t+m*z+e}f&&p.length!=q&&(p.length=q);return p};function A(){Ac.call(this);this.b="XY";this.s=2;this.a=null}x(A,Ac);function Hc(a){if("XY"==a)return 2;if("XYZ"==a||"XYM"==a)return 3;if("XYZM"==a)return 4}k=A.prototype;k.fb=Yb;k.bc=function(a){var b=this.a,c=this.a.length,d=this.s;a=Eb(a);return Hb(a,b,0,c,d)};k.Ma=function(){return this.a.slice(0,this.s)};k.Oa=function(){return this.a.slice(this.a.length-this.s)};k.Pa=function(){return this.b}; k.gc=function(a){this.u!=this.g&&(Da(this.i),this.l=0,this.u=this.g);if(0>a||0!==this.l&&a<=this.l)return this;var b=a.toString();if(this.i.hasOwnProperty(b))return this.i[b];var c=this.pb(a);if(c.a.length<this.a.length)return this.i[b]=c;this.l=a;return this};k.pb=function(){return this};function Ic(a,b,c){a.s=Hc(b);a.b=b;a.a=c}function Jc(a,b,c,d){if(b)c=Hc(b);else{for(b=0;b<d;++b){if(0===c.length){a.b="XY";a.s=2;return}c=c[0]}c=c.length;b=2==c?"XY":3==c?"XYZ":4==c?"XYZM":void 0}a.b=b;a.s=c} k.kb=function(a){this.a&&(a(this.a,this.a,this.s),this.o())};k.rotate=function(a,b){var c=this.a;if(c){for(var d=c.length,e=this.s,f=c?c:[],g=Math.cos(a),h=Math.sin(a),l=b[0],m=b[1],n=0,p=0;p<d;p+=e){var q=c[p]-l,t=c[p+1]-m;f[n++]=l+q*g-t*h;f[n++]=m+q*h+t*g;for(q=p+2;q<p+e;++q)f[n++]=c[q]}c&&f.length!=n&&(f.length=n);this.o()}}; k.pc=function(a,b){var c=this.a;if(c){var d=c.length,e=this.s,f=c?c:[],g=0,h,l;for(h=0;h<d;h+=e)for(f[g++]=c[h]+a,f[g++]=c[h+1]+b,l=h+2;l<h+e;++l)f[g++]=c[l];c&&f.length!=g&&(f.length=g);this.o()}};function Kc(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],l=a[b+1],e=e+(g*h-f*l),f=h,g=l;return e/2}function Lc(a,b,c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],e=e+Kc(a,b,h,d);b=h}return e};function Mc(a,b,c,d,e,f,g){var h=a[b],l=a[b+1],m=a[c]-h,n=a[c+1]-l;if(0!==m||0!==n)if(f=((e-h)*m+(f-l)*n)/(m*m+n*n),1<f)b=c;else if(0<f){for(e=0;e<d;++e)g[e]=ya(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 Nc(a,b,c,d,e){var f=a[b],g=a[b+1];for(b+=d;b<c;b+=d){var h=a[b],l=a[b+1],f=wa(f,g,h,l);f>e&&(e=f);f=h;g=l}return e}function Oc(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];e=Nc(a,b,h,d,e);b=h}return e} function Pc(a,b,c,d,e,f,g,h,l,m,n){if(b==c)return m;var p;if(0===e){p=wa(g,h,a[b],a[b+1]);if(p<m){for(n=0;n<d;++n)l[n]=a[b+n];l.length=d;return p}return m}for(var q=n?n:[NaN,NaN],t=b+d;t<c;)if(Mc(a,t-d,t,d,g,h,q),p=wa(g,h,q[0],q[1]),p<m){m=p;for(n=0;n<d;++n)l[n]=q[n];l.length=d;t+=d}else t+=d*Math.max((Math.sqrt(p)-Math.sqrt(m))/e|0,1);if(f&&(Mc(a,c-d,b,d,g,h,q),p=wa(g,h,q[0],q[1]),p<m)){m=p;for(n=0;n<d;++n)l[n]=q[n];l.length=d}return m} function Qc(a,b,c,d,e,f,g,h,l,m,n){n=n?n:[NaN,NaN];var p,q;p=0;for(q=c.length;p<q;++p){var t=c[p];m=Pc(a,b,t,d,e,f,g,h,l,m,n);b=t}return m};function Rc(a,b){var c=0,d,e;d=0;for(e=b.length;d<e;++d)a[c++]=b[d];return c}function Sc(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 Tc(a,b,c,d,e){e=e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g)b=Sc(a,b,c[g],d),e[f++]=b;e.length=f;return e};function Uc(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 Wc(a,b,c,d,e){e=void 0!==e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g){var l=c[g];e[f++]=Uc(a,b,l,d,e[f]);b=l}e.length=f;return e};function Xc(a,b,c,d,e,f,g){var h=(c-b)/d;if(3>h){for(;b<c;b+=d)f[g++]=a[b],f[g++]=a[b+1];return g}var l=Array(h);l[0]=1;l[h-1]=1;c=[b,c-d];for(var m=0,n;0<c.length;){var p=c.pop(),q=c.pop(),t=0,z=a[q],C=a[q+1],u=a[p],W=a[p+1];for(n=q+d;n<p;n+=d){var P;P=a[n];var v=a[n+1],N=z,ia=C,ja=u-N,ba=W-ia;if(0!==ja||0!==ba){var ka=((P-N)*ja+(v-ia)*ba)/(ja*ja+ba*ba);1<ka?(N=u,ia=W):0<ka&&(N+=ja*ka,ia+=ba*ka)}P=wa(P,v,N,ia);P>t&&(m=n,t=P)}t>e&&(l[(m-b)/d]=1,q+d<m&&c.push(q,m),m+d<p&&c.push(m,p))}for(n=0;n<h;++n)l[n]&& (f[g++]=a[b+n*d],f[g++]=a[b+n*d+1]);return g} function Yc(a,b,c,d,e,f,g,h){var l,m;l=0;for(m=c.length;l<m;++l){var n=c[l];a:{var p=a,q=n,t=d,z=e,C=f;if(b!=q){var u=z*Math.round(p[b]/z),W=z*Math.round(p[b+1]/z);b+=t;C[g++]=u;C[g++]=W;var P,v;do if(P=z*Math.round(p[b]/z),v=z*Math.round(p[b+1]/z),b+=t,b==q){C[g++]=P;C[g++]=v;break a}while(P==u&&v==W);for(;b<q;){var N,ia;N=z*Math.round(p[b]/z);ia=z*Math.round(p[b+1]/z);b+=t;if(N!=P||ia!=v){var ja=P-u,ba=v-W,ka=N-u,S=ia-W;ja*S==ba*ka&&(0>ja&&ka<ja||ja==ka||0<ja&&ka>ja)&&(0>ba&&S<ba||ba==S||0<ba&& S>ba)||(C[g++]=P,C[g++]=v,u=P,W=v);P=N;v=ia}}C[g++]=P;C[g++]=v}}h.push(g);b=n}return g};function B(a,b){A.call(this);this.c=this.j=-1;this.aa(a,b)}x(B,A);k=B.prototype;k.clone=function(){var a=new B(null);Ic(a,this.b,this.a.slice());a.o();return a};k.Ea=function(a,b,c,d){if(d<xb(this.A(),a,b))return d;this.c!=this.g&&(this.j=Math.sqrt(Nc(this.a,0,this.a.length,this.s,0)),this.c=this.g);return Pc(this.a,0,this.a.length,this.s,this.j,!0,a,b,c,d)};k.Fh=function(){return Kc(this.a,0,this.a.length,this.s)};k.R=function(){return Uc(this.a,0,this.a.length,this.s)}; k.pb=function(a){var b=[];b.length=Xc(this.a,0,this.a.length,this.s,a,b,0);a=new B(null);Ic(a,"XY",b);a.o();return a};k.K=function(){return"LinearRing"};k.aa=function(a,b){a?(Jc(this,b,a,1),this.a||(this.a=[]),this.a.length=Sc(this.a,0,a,this.s)):Ic(this,"XY",null);this.o()};function D(a,b){A.call(this);this.aa(a,b)}x(D,A);k=D.prototype;k.clone=function(){var a=new D(null);Ic(a,this.b,this.a.slice());a.o();return a};k.Ea=function(a,b,c,d){var e=this.a;a=wa(a,b,e[0],e[1]);if(a<d){d=this.s;for(b=0;b<d;++b)c[b]=e[b];c.length=d;return a}return d};k.R=function(){return this.a?this.a.slice():[]};k.bc=function(a){var b=this.a,c=b[0],b=b[1];return Cb(c,b,c,b,a)};k.K=function(){return"Point"};k.la=function(a){return zb(a,this.a[0],this.a[1])}; k.aa=function(a,b){a?(Jc(this,b,a,0),this.a||(this.a=[]),this.a.length=Rc(this.a,a)):Ic(this,"XY",null);this.o()};function Zc(a,b,c,d,e){return!Ib(e,function(e){return!$c(a,b,c,d,e[0],e[1])})}function $c(a,b,c,d,e,f){for(var g=!1,h=a[c-d],l=a[c-d+1];b<c;b+=d){var m=a[b],n=a[b+1];l>f!=n>f&&e<(m-h)*(f-l)/(n-l)+h&&(g=!g);h=m;l=n}return g}function ad(a,b,c,d,e,f){if(0===c.length||!$c(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if($c(a,c[b-1],c[b],d,e,f))return!1;return!0};function bd(a,b,c,d,e,f,g){var h,l,m,n,p,q=e[f+1],t=[],z=c[0];m=a[z-d];p=a[z-d+1];for(h=b;h<z;h+=d){n=a[h];l=a[h+1];if(q<=p&&l<=q||p<=q&&q<=l)m=(q-p)/(l-p)*(n-m)+m,t.push(m);m=n;p=l}z=NaN;p=-Infinity;t.sort(ab);m=t[0];h=1;for(l=t.length;h<l;++h){n=t[h];var C=Math.abs(n-m);C>p&&(m=(m+n)/2,ad(a,b,c,d,m,q)&&(z=m,p=C));m=n}isNaN(z)&&(z=e[f]);return g?(g.push(z,q),g):[z,q]};function cd(a,b,c,d,e,f){for(var g=[a[b],a[b+1]],h=[],l;b+d<c;b+=d){h[0]=a[b+d];h[1]=a[b+d+1];if(l=e.call(f,g,h))return l;g[0]=h[0];g[1]=h[1]}return!1};function dd(a,b,c,d,e){var f=Hb(tb(),a,b,c,d);return Ub(e,f)?Ab(e,f)||f[0]>=e[0]&&f[2]<=e[2]||f[1]>=e[1]&&f[3]<=e[3]?!0:cd(a,b,c,d,function(a,b){var c=!1,d=Bb(e,a),f=Bb(e,b);if(1===d||1===f)c=!0;else{var p=e[0],q=e[1],t=e[2],z=e[3],C=b[0],u=b[1],W=(u-a[1])/(C-a[0]);f&2&&!(d&2)&&(c=C-(u-z)/W,c=c>=p&&c<=t);c||!(f&4)||d&4||(c=u-(C-t)*W,c=c>=q&&c<=z);c||!(f&8)||d&8||(c=C-(u-q)/W,c=c>=p&&c<=t);c||!(f&16)||d&16||(c=u-(C-p)*W,c=c>=q&&c<=z)}return c}):!1} function ed(a,b,c,d,e){var f=c[0];if(!(dd(a,b,f,d,e)||$c(a,b,f,d,e[0],e[1])||$c(a,b,f,d,e[0],e[3])||$c(a,b,f,d,e[2],e[1])||$c(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(Zc(a,c[b-1],c[b],d,e))return!1;return!0};function fd(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],l=a[b+1],e=e+(h-f)*(l+g),f=h,g=l;return 0<e}function gd(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=fd(a,e,h,c);if(0===f){if(d&&e||!d&&!e)return!1}else if(d&&!e||!d&&e)return!1;e=h}return!0} function hd(a,b,c,d,e){e=void 0!==e?e:!1;var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],l=fd(a,b,h,d);if(0===f?e&&l||!e&&!l:e&&!l||!e&&l)for(var l=a,m=h,n=d;b<m-n;){var p;for(p=0;p<n;++p){var q=l[b+p];l[b+p]=l[m-n+p];l[m-n+p]=q}b+=n;m-=n}b=h}return b}function id(a,b,c,d){var e=0,f,g;f=0;for(g=b.length;f<g;++f)e=hd(a,e,b[f],c,d);return e};function E(a,b){A.call(this);this.c=[];this.B=-1;this.D=null;this.I=this.G=this.F=-1;this.j=null;this.aa(a,b)}x(E,A);k=E.prototype;k.Kf=function(a){this.a?cb(this.a,a.a):this.a=a.a.slice();this.c.push(this.a.length);this.o()};k.clone=function(){var a=new E(null);jd(a,this.b,this.a.slice(),this.c.slice());return a};k.Ea=function(a,b,c,d){if(d<xb(this.A(),a,b))return d;this.G!=this.g&&(this.F=Math.sqrt(Oc(this.a,0,this.c,this.s,0)),this.G=this.g);return Qc(this.a,0,this.c,this.s,this.F,!0,a,b,c,d)}; k.fb=function(a,b){return ad(kd(this),0,this.c,this.s,a,b)};k.Ih=function(){return Lc(kd(this),0,this.c,this.s)};k.R=function(a){var b;void 0!==a?(b=kd(this).slice(),hd(b,0,this.c,this.s,a)):b=this.a;return Wc(b,0,this.c,this.s)};k.Ua=function(){return this.c};function ld(a){if(a.B!=a.g){var b=Rb(a.A());a.D=bd(kd(a),0,a.c,a.s,b,0);a.B=a.g}return a.D}k.Zf=function(){return new D(ld(this))};k.dg=function(){return this.c.length}; k.re=function(a){if(0>a||this.c.length<=a)return null;var b=new B(null);Ic(b,this.b,this.a.slice(0===a?0:this.c[a-1],this.c[a]));b.o();return b};k.se=function(){var a=this.b,b=this.a,c=this.c,d=[],e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],l=new B(null),m=l;Ic(m,a,b.slice(e,h));m.o();d.push(l);e=h}return d};function kd(a){if(a.I!=a.g){var b=a.a;gd(b,a.c,a.s)?a.j=b:(a.j=b.slice(),a.j.length=hd(a.j,0,a.c,a.s));a.I=a.g}return a.j} k.pb=function(a){var b=[],c=[];b.length=Yc(this.a,0,this.c,this.s,Math.sqrt(a),b,0,c);a=new E(null);jd(a,"XY",b,c);return a};k.K=function(){return"Polygon"};k.la=function(a){return ed(kd(this),0,this.c,this.s,a)};k.aa=function(a,b){if(a){Jc(this,b,a,2);this.a||(this.a=[]);var c=Tc(this.a,0,a,this.s,this.c);this.a.length=0===c.length?0:c[c.length-1];this.o()}else jd(this,"XY",null,this.c)};function jd(a,b,c,d){Ic(a,b,c);a.c=d;a.o()} function md(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 E(null);jd(c,"XY",b,[b.length]);return c};function F(a){Xa.call(this);a=a||{};this.b=[0,0];var b={};b.center=void 0!==a.center?a.center:null;this.l=tc(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=hb(c);else{d=tc(a.projection);e=d.A();var h=(e?Math.max(Pb(e),Qb(e)):360*bc.degrees/d.ab())/256/Math.pow(2,0),l=h/Math.pow(2,28);d=a.maxResolution;void 0!==d?f=0:d=h/Math.pow(g,f);e=a.minResolution; void 0===e&&(e=void 0!==a.maxZoom?void 0!==a.maxResolution?d/Math.pow(g,c):h/Math.pow(g,c):l);c=f+Math.floor(Math.log(d/e)/Math.log(g));e=d/Math.pow(g,c-f);c=ib(g,d,c-f)}this.a=d;this.c=e;this.j=a.resolutions;this.h=f;f=void 0!==a.extent?za(a.extent):Aa;(void 0!==a.enableRotation?a.enableRotation:1)?(d=a.constrainRotation,d=void 0===d||!0===d?mb():!1===d?kb:da(d)?lb(d):kb):d=jb;this.i=new Ba(f,c,d);void 0!==a.resolution?b.resolution=a.resolution:void 0!==a.zoom&&(b.resolution=this.constrainResolution(this.a, a.zoom-this.h));b.rotation=void 0!==a.rotation?a.rotation:0;this.P(b)}x(F,Xa);k=F.prototype;k.cc=function(a){return this.i.center(a)};k.constrainResolution=function(a,b,c){return this.i.resolution(a,b||0,c||0)};k.constrainRotation=function(a,b){return this.i.rotation(a,b||0)};k.Aa=function(){return this.get("center")};function nd(a,b){return void 0!==b?(b[0]=a.b[0],b[1]=a.b[1],b):a.b.slice()}k.Zd=function(a){var b=this.Aa(),c=this.S(),d=this.wa();return Sb(b,c,d,a)};k.yh=function(){return this.a}; k.zh=function(){return this.c};k.Ah=function(){return this.l};k.S=function(){return this.get("resolution")};k.Bh=function(){return this.j};function od(a,b){return Math.max(Pb(a)/b[0],Qb(a)/b[1])}function pd(a){var b=a.a,c=Math.log(b/a.c)/Math.log(2);return function(a){return b/Math.pow(2,a*c)}}k.wa=function(){return this.get("rotation")};function qd(a){var b=a.a,c=Math.log(b/a.c)/Math.log(2);return function(a){return Math.log(b/a)/Math.log(2)/c}} k.N=function(){var a=this.Aa(),b=this.l,c=this.S(),d=this.wa();return{center:[Math.round(a[0]/c)*c,Math.round(a[1]/c)*c],projection:void 0!==b?b:null,resolution:c,rotation:d}};k.tg=function(){var a,b=this.S();if(void 0!==b){var c,d=0;do{c=this.constrainResolution(this.a,d);if(c==b){a=d;break}++d}while(c>this.c)}return void 0!==a?this.h+a:a}; k.Pf=function(a,b,c){a instanceof A||(a=md(a));var d=c||{};c=void 0!==d.padding?d.padding:[0,0,0,0];var e=void 0!==d.constrainResolution?d.constrainResolution:!0,f=void 0!==d.nearest?d.nearest:!1,g;void 0!==d.minResolution?g=d.minResolution:void 0!==d.maxZoom?g=this.constrainResolution(this.a,d.maxZoom-this.h,0):g=0;var h=a.a,l=this.wa(),d=Math.cos(-l),l=Math.sin(-l),m=Infinity,n=Infinity,p=-Infinity,q=-Infinity;a=a.s;for(var t=0,z=h.length;t<z;t+=a)var C=h[t]*d-h[t+1]*l,u=h[t]*l+h[t+1]*d,m=Math.min(m, C),n=Math.min(n,u),p=Math.max(p,C),q=Math.max(q,u);b=od([m,n,p,q],[b[0]-c[1]-c[3],b[1]-c[0]-c[2]]);b=isNaN(b)?g:Math.max(b,g);e&&(g=this.constrainResolution(b,0,0),!f&&g<b&&(g=this.constrainResolution(g,-1,0)),b=g);this.Ra(b);l=-l;f=(m+p)/2+(c[1]-c[3])/2*b;c=(n+q)/2+(c[0]-c[2])/2*b;this.Ha([f*d-c*l,c*d+f*l])};k.Nf=function(a,b,c){var d=this.wa(),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.S(),f=f+(b[0]/2-c[0])*g;a+=(c[1]-b[1]/2)*g;d=-d;this.Ha([f*e-a*d,a*e+f*d])}; k.rotate=function(a,b){if(void 0!==b){var c,d=this.Aa();void 0!==d&&(c=[d[0]-b[0],d[1]-b[1]],qb(c,a-this.wa()),nb(c,b));this.Ha(c)}this.sd(a)};k.Ha=function(a){this.set("center",a)};function rd(a,b){a.b[1]+=b}k.Ra=function(a){this.set("resolution",a)};k.sd=function(a){this.set("rotation",a)};k.jj=function(a){a=this.constrainResolution(this.a,a-this.h,0);this.Ra(a)};function sd(a){return Math.pow(a,3)}function td(a){return 1-sd(1-a)}function ud(a){return 3*a*a-2*a*a*a}function vd(a){return a}function wd(a){return.5>a?ud(2*a):1-ud(2*(a-.5))};function xd(a){var b=a.source,c=a.start?a.start:Date.now(),d=b[0],e=b[1],f=void 0!==a.duration?a.duration:1E3,g=a.easing?a.easing:ud;return function(a,b){if(b.time<c)return b.animate=!0,b.viewHints[0]+=1,!0;if(b.time<c+f){var m=1-g((b.time-c)/f),n=d-b.viewState.center[0],p=e-b.viewState.center[1];b.animate=!0;b.viewState.center[0]+=m*n;b.viewState.center[1]+=m*p;b.viewHints[0]+=1;return!0}return!1}} function yd(a){var b=a.rotation?a.rotation:0,c=a.start?a.start:Date.now(),d=void 0!==a.duration?a.duration:1E3,e=a.easing?a.easing:ud,f=a.anchor?a.anchor:null;return function(a,h){if(h.time<c)return h.animate=!0,h.viewHints[0]+=1,!0;if(h.time<c+d){var l=1-e((h.time-c)/d),l=(b-h.viewState.rotation)*l;h.animate=!0;h.viewState.rotation+=l;if(f){var m=h.viewState.center;m[0]-=f[0];m[1]-=f[1];qb(m,l);nb(m,f)}h.viewHints[0]+=1;return!0}return!1}} function zd(a){var b=a.resolution,c=a.start?a.start:Date.now(),d=void 0!==a.duration?a.duration:1E3,e=a.easing?a.easing:ud;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[0]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),l=b-g.viewState.resolution;g.animate=!0;g.viewState.resolution+=h*l;g.viewHints[0]+=1;return!0}return!1}};function Ad(a,b,c,d){this.H=a;this.J=b;this.L=c;this.O=d}function Bd(a,b,c){return a.H<=b&&b<=a.J&&a.L<=c&&c<=a.O}function Cd(a,b){return a.H<=b.J&&a.J>=b.H&&a.L<=b.O&&a.O>=b.L};function Dd(a){this.f=a.html;this.a=a.tileRanges?a.tileRanges:null};function Ed(a,b,c){Ra.call(this,a,c);this.element=b}x(Ed,Ra);function G(a){Xa.call(this);this.a=a?a:[];Fd(this)}x(G,Xa);k=G.prototype;k.clear=function(){for(;0<this.eb();)this.pop()};k.qd=function(a){var b,c;b=0;for(c=a.length;b<c;++b)this.push(a[b]);return this};k.forEach=function(a,b){this.a.forEach(a,b)};k.qh=function(){return this.a};k.Ie=function(a){return this.a[a]};k.eb=function(){return this.get("length")};k.lc=function(a,b){this.a.splice(a,0,b);Fd(this);this.f(new Ed("add",b,this))}; k.pop=function(){return this.Cd(this.eb()-1)};k.push=function(a){var b=this.a.length;this.lc(b,a);return b};k.remove=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return this.Cd(c)};k.Cd=function(a){var b=this.a[a];this.a.splice(a,1);Fd(this);this.f(new Ed("remove",b,this));return b};k.Qi=function(a,b){var c=this.eb();if(a<c)c=this.a[a],this.a[a]=b,this.f(new Ed("remove",c,this)),this.f(new Ed("add",b,this));else{for(;c<a;++c)this.lc(c,void 0);this.lc(a,b)}}; function Fd(a){a.set("length",a.a.length)};function Gd(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var Hd=/^#(?:[0-9a-f]{3}){1,2}$/i,Id=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,Jd=/^(?:rgba)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|1|0\.\d{0,10})\)$/i;function Kd(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} var Md=function(){var a={},b=0;return function(c){var d;if(a.hasOwnProperty(c))d=a[c];else{if(1024<=b){d=0;for(var e in a)0===(d++&3)&&(delete a[e],--b)}var f,g;Hd.exec(c)?(g=3==c.length-1?1:2,d=parseInt(c.substr(1+0*g,g),16),e=parseInt(c.substr(1+1*g,g),16),f=parseInt(c.substr(1+2*g,g),16),1==g&&(d=(d<<4)+d,e=(e<<4)+e,f=(f<<4)+f),d=[d,e,f,1]):(g=Jd.exec(c))?(d=Number(g[1]),e=Number(g[2]),f=Number(g[3]),g=Number(g[4]),d=[d,e,f,g],d=Ld(d,d)):(g=Id.exec(c))?(d=Number(g[1]),e=Number(g[2]),f=Number(g[3]), d=[d,e,f,1],d=Ld(d,d)):d=void 0;a[c]=d;++b}return d}}();function Ld(a,b){var c=b||[];c[0]=ta(a[0]+.5|0,0,255);c[1]=ta(a[1]+.5|0,0,255);c[2]=ta(a[2]+.5|0,0,255);c[3]=ta(a[3],0,1);return c};function Nd(a){return"string"===typeof a||a instanceof CanvasPattern||a instanceof CanvasGradient?a:Kd(a)};var Od;a:{var Pd=aa.navigator;if(Pd){var Qd=Pd.userAgent;if(Qd){Od=Qd;break a}}Od=""};var Rd=-1!=Od.toLowerCase().indexOf("webkit")&&-1==Od.indexOf("Edge");function Sd(a,b){var c=document.createElement("CANVAS");a&&(c.width=a);b&&(c.height=b);return c.getContext("2d")}function Td(a){a&&a.parentNode&&a.parentNode.removeChild(a)};function Ud(a,b,c){Ra.call(this,a);this.map=b;this.frameState=void 0!==c?c:null}x(Ud,Ra);function Vd(a){Xa.call(this);this.element=a.element?a.element:null;this.a=this.D=null;this.w=[];this.render=a.render?a.render:qa;a.target&&(a=a.target,this.D="string"===typeof a?document.getElementById(a):a)}x(Vd,Xa);Vd.prototype.ga=function(){Td(this.element);Xa.prototype.ga.call(this)}; Vd.prototype.setMap=function(a){this.a&&Td(this.element);for(var b=0,c=this.w.length;b<c;++b)Ja(this.w[b]);this.w.length=0;if(this.a=a)(this.D?this.D:a.w).appendChild(this.element),this.render!==qa&&this.w.push(y(a,"postrender",this.render,this)),a.render()};function Wd(){this.b=0;this.g={};this.f=this.a=null}k=Wd.prototype;k.clear=function(){this.b=0;this.g={};this.f=this.a=null};k.forEach=function(a,b){for(var c=this.a;c;)a.call(b,c.Cb,c.sb,this),c=c.Ga};k.get=function(a){a=this.g[a];if(a===this.f)return a.Cb;a===this.a?(this.a=this.a.Ga,this.a.xb=null):(a.Ga.xb=a.xb,a.xb.Ga=a.Ga);a.Ga=null;a.xb=this.f;this.f=this.f.Ga=a;return a.Cb};k.pop=function(){var a=this.a;delete this.g[a.sb];a.Ga&&(a.Ga.xb=null);this.a=a.Ga;this.a||(this.f=null);--this.b;return a.Cb}; k.replace=function(a,b){this.get(a);this.g[a].Cb=b};k.set=function(a,b){var c={sb:a,Ga:null,xb:this.f,Cb:b};this.f?this.f.Ga=c:this.a=c;this.f=c;this.g[a]=c;++this.b};function Xd(a){Wd.call(this);this.c=void 0!==a?a:2048}x(Xd,Wd);function Yd(a){return a.b>a.c}Xd.prototype.lb=function(a){for(var b,c;Yd(this);){b=this.a.Cb;c=b.Ja[0].toString();var d;if(d=c in a)b=b.Ja,d=Bd(a[c],b[1],b[2]);if(d)break;else Qa(this.pop())}};function Zd(a,b){Ta.call(this);this.Ja=a;this.state=b;this.a=null;this.key=""}x(Zd,Ta);function $d(a){a.f("change")}Zd.prototype.getKey=function(){return w(this).toString()};Zd.prototype.N=function(){return this.state};function ae(a,b){if(Array.isArray(a))return a;void 0===b?b=[a,a]:(b[0]=a,b[1]=a);return b};function be(a){Xa.call(this);this.h=fc(a.projection);this.l=ce(a.attributions);this.G=a.logo;this.ja=void 0!==a.state?a.state:"ready";this.w=void 0!==a.wrapX?a.wrapX:!1}x(be,Xa);function ce(a){if("string"===typeof a)return[new Dd({html:a})];if(a instanceof Dd)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 Dd({html:e}):e}return c}return null}k=be.prototype;k.ta=qa;k.vb=function(){return this.l};k.ob=function(){return this.G};k.wb=function(){return this.h}; k.N=function(){return this.ja};k.gb=function(){this.o()};k.ib=function(a){this.l=ce(a);this.o()};function de(a,b){a.ja=b;a.o()};function ee(a){this.minZoom=void 0!==a.minZoom?a.minZoom:0;this.f=a.resolutions;this.maxZoom=this.f.length-1;this.g=void 0!==a.origin?a.origin:null;this.c=null;void 0!==a.origins&&(this.c=a.origins);var b=a.extent;void 0===b||this.g||this.c||(this.g=Mb(b));this.h=null;void 0!==a.tileSizes&&(this.h=a.tileSizes);this.i=void 0!==a.tileSize?a.tileSize:this.h?null:256;this.j=void 0!==b?b:null;this.a=null;this.b=[0,0];void 0!==a.sizes?this.a=a.sizes.map(function(a){return new Ad(Math.min(0,a[0]),Math.max(a[0]- 1,-1),Math.min(0,a[1]),Math.max(a[1]-1,-1))},this):b&&fe(this,b)}var ge=[0,0,0];k=ee.prototype;k.ge=function(a,b,c){a=he(this,a,b);for(var d=a.H,e=a.J;d<=e;++d)for(var f=a.L,g=a.O;f<=g;++f)c([b,d,f])};function ie(a,b,c,d,e){e=a.Qa(b,e);for(b=b[0]-1;b>=a.minZoom;){if(c.call(null,b,he(a,e,b,d)))return!0;--b}return!1}k.A=function(){return this.j};k.te=function(){return this.maxZoom};k.ue=function(){return this.minZoom};k.za=function(a){return this.g?this.g:this.c[a]};k.S=function(a){return this.f[a]}; k.Ye=function(){return this.f};function je(a,b,c,d){return b[0]<a.maxZoom?(d=a.Qa(b,d),he(a,d,b[0]+1,c)):null}function ke(a,b,c,d){le(a,b[0],b[1],c,!1,ge);var e=ge[1],f=ge[2];le(a,b[2],b[3],c,!0,ge);a=ge[1];b=ge[2];void 0!==d?(d.H=e,d.J=a,d.L=f,d.O=b):d=new Ad(e,a,f,b);return d}function he(a,b,c,d){c=a.S(c);return ke(a,b,c,d)}function me(a,b){var c=a.za(b[0]),d=a.S(b[0]),e=ae(a.Wa(b[0]),a.b);return[c[0]+(b[1]+.5)*e[0]*d,c[1]+(b[2]+.5)*e[1]*d]} k.Qa=function(a,b){var c=this.za(a[0]),d=this.S(a[0]),e=ae(this.Wa(a[0]),this.b),f=c[0]+a[1]*e[0]*d,c=c[1]+a[2]*e[1]*d;return Cb(f,c,f+e[0]*d,c+e[1]*d,b)};k.ze=function(a,b,c){return le(this,a[0],a[1],b,!1,c)};function le(a,b,c,d,e,f){var g=a.qb(d),h=d/a.S(g),l=a.za(g);a=ae(a.Wa(g),a.b);b=h*Math.floor((b-l[0])/d+(e?.5:0))/a[0];c=h*Math.floor((c-l[1])/d+(e?0:.5))/a[1];e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));e=b;void 0!==f?(f[0]=g,f[1]=e,f[2]=c):f=[g,e,c];return f} k.ic=function(a,b,c){b=this.S(b);return le(this,a[0],a[1],b,!1,c)};k.Wa=function(a){return this.i?this.i:this.h[a]};k.qb=function(a,b){var c=bb(this.f,a,b||0);return ta(c,this.minZoom,this.maxZoom)};function fe(a,b){for(var c=a.f.length,d=Array(c),e=a.minZoom;e<c;++e)d[e]=he(a,b,e);a.a=d}function ne(a){var b=a.i;if(!b){var b=oe(a),c=pe(b,void 0,void 0),b=new ee({extent:b,origin:Mb(b),resolutions:c,tileSize:void 0});a.i=b}return b} function qe(a){var b={};Ca(b,void 0!==a?a:{});void 0===b.extent&&(b.extent=fc("EPSG:3857").A());b.resolutions=pe(b.extent,b.maxZoom,b.tileSize);delete b.maxZoom;return new ee(b)}function pe(a,b,c){b=void 0!==b?b:42;var d=Qb(a);a=Pb(a);c=ae(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 oe(a){a=fc(a);var b=a.A();b||(a=180*bc.degrees/a.ab(),b=Cb(-a,-a,a,a));return b};function re(a){be.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state,wrapX:a.wrapX});this.fa=void 0!==a.opaque?a.opaque:!1;this.F=void 0!==a.tilePixelRatio?a.tilePixelRatio:1;this.tileGrid=void 0!==a.tileGrid?a.tileGrid:null;this.a=new Xd(a.cacheSize);this.I=[0,0];this.sb=""}x(re,be);k=re.prototype;k.Pe=function(){return Yd(this.a)};k.lb=function(a,b){var c=this.Nb(a);c&&c.lb(b)}; function se(a,b,c,d,e){b=a.Nb(b);if(!b)return!1;for(var f=!0,g,h,l=d.H;l<=d.J;++l)for(var m=d.L;m<=d.O;++m)g=a.ec(c,l,m),h=!1,b.g.hasOwnProperty(g)&&(g=b.get(g),(h=2===g.N())&&(h=!1!==e(g))),h||(f=!1);return f}k.oe=function(){return 0};k.getKey=function(){return this.sb};k.ec=function(a,b,c){return a+"/"+b+"/"+c};k.gd=function(){return this.fa};k.jd=function(){return this.tileGrid};k.Va=function(a){return this.tileGrid?this.tileGrid:ne(a)};k.Nb=function(a){var b=this.h;return b&&!vc(b,a)?null:this.a}; function te(a,b,c){var d=a.Va(c);c=a.F;b=ae(d.Wa(b),a.I);1==c?a=b:(a=a.I,void 0===a&&(a=[0,0]),a[0]=b[0]*c+.5|0,a[1]=b[1]*c+.5|0);return a}function ue(a,b,c){var d=void 0!==c?c:a.h;c=a.Va(d);if(a.w&&d.g){var e=b;b=e[0];a=me(c,e);d=oe(d);yb(d,a)?b=e:(e=Pb(d),a[0]+=e*Math.ceil((d[0]-a[0])/e),b=c.ic(a,b))}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?he(c,f,e):c.a?c.a[e]:null)?Bd(c,d,a):!0}return c?b:null}k.gb=function(){this.a.clear();this.o()};k.mf=qa; function ve(a,b){Ra.call(this,a);this.tile=b}x(ve,Ra);function we(a){a=a?a:{};this.B=document.createElement("UL");this.l=document.createElement("LI");this.B.appendChild(this.l);this.l.style.display="none";this.h=void 0!==a.collapsed?a.collapsed:!0;this.u=void 0!==a.collapsible?a.collapsible:!0;this.u||(this.h=!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.i=document.createElement("span"),this.i.textContent=d):this.i= d;d=void 0!==a.label?a.label:"i";"string"===typeof d?(this.j=document.createElement("span"),this.j.textContent=d):this.j=d;var e=this.u&&!this.h?this.i:this.j,d=document.createElement("button");d.setAttribute("type","button");d.title=c;d.appendChild(e);y(d,"click",this.F,this);c=document.createElement("div");c.className=b+" ol-unselectable ol-control"+(this.h&&this.u?" ol-collapsed":"")+(this.u?"":" ol-uncollapsible");c.appendChild(this.B);c.appendChild(d);Vd.call(this,{element:c,render:a.render? a.render:xe,target:a.target});this.C=!0;this.c={};this.b={};this.G={}}x(we,Vd); function xe(a){if(a=a.frameState){var b,c,d,e,f,g,h,l,m,n,p,q=a.layerStatesArray,t=Ca({},a.attributions),z={},C=a.viewState.projection;c=0;for(b=q.length;c<b;c++)if(g=q[c].layer.da())if(n=w(g).toString(),m=g.l)for(d=0,e=m.length;d<e;d++)if(h=m[d],l=w(h).toString(),!(l in t)){if(f=a.usedTiles[n]){var u=g.Va(C);a:{p=h;var W=C;if(p.a){var P,v,N,ia=void 0;for(ia in f)if(ia in p.a){N=f[ia];var ja;P=0;for(v=p.a[ia].length;P<v;++P){ja=p.a[ia][P];if(Cd(ja,N)){p=!0;break a}var ba=he(u,oe(W),parseInt(ia,10)), ka=ba.J-ba.H+1;if(N.H<ba.H||N.J>ba.J)if(Cd(ja,new Ad(xa(N.H,ka),xa(N.J,ka),N.L,N.O))||N.J-N.H+1>ka&&Cd(ja,ba)){p=!0;break a}}}p=!1}else p=!0}}else p=!1;p?(l in z&&delete z[l],t[l]=h):z[l]=h}b=[t,z];c=b[0];b=b[1];for(var S in this.c)S in c?(this.b[S]||(this.c[S].style.display="",this.b[S]=!0),delete c[S]):S in b?(this.b[S]&&(this.c[S].style.display="none",delete this.b[S]),delete b[S]):(Td(this.c[S]),delete this.c[S],delete this.b[S]);for(S in c)d=document.createElement("LI"),d.innerHTML=c[S].f,this.B.appendChild(d), this.c[S]=d,this.b[S]=!0;for(S in b)d=document.createElement("LI"),d.innerHTML=b[S].f,d.style.display="none",this.B.appendChild(d),this.c[S]=d;S=!Fa(this.b)||!Fa(a.logos);this.C!=S&&(this.element.style.display=S?"":"none",this.C=S);S&&Fa(this.b)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only");var oa;a=a.logos;S=this.G;for(oa in S)oa in a||(Td(S[oa]),delete S[oa]);for(var pa in a)b=a[pa],b instanceof HTMLElement&&(this.l.appendChild(b),S[pa]=b),pa in S||(oa= new Image,oa.src=pa,""===b?c=oa:(c=document.createElement("a"),c.href=b,c.appendChild(oa)),this.l.appendChild(c),S[pa]=c);this.l.style.display=Fa(a)?"none":""}else this.C&&(this.element.style.display="none",this.C=!1)}we.prototype.F=function(a){a.preventDefault();this.element.classList.toggle("ol-collapsed");if(this.h){a=this.j;var b=a.parentNode;b&&b.replaceChild(this.i,a)}else a=this.i,(b=a.parentNode)&&b.replaceChild(this.j,a);this.h=!this.h};function ye(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-rotate",c=void 0!==a.label?a.label:"\u21e7";this.b=null;"string"===typeof c?(this.b=document.createElement("span"),this.b.className="ol-compass",this.b.textContent=c):(this.b=c,this.b.classList.add("ol-compass"));var d=a.tipLabel?a.tipLabel:"Reset rotation",c=document.createElement("button");c.className=b+"-reset";c.setAttribute("type","button");c.title=d;c.appendChild(this.b);y(c,"click",ye.prototype.j,this);d=document.createElement("div"); d.className=b+" ol-unselectable ol-control";d.appendChild(c);b=a.render?a.render:ze;this.h=a.resetNorth?a.resetNorth:void 0;Vd.call(this,{element:d,render:b,target:a.target});this.i=void 0!==a.duration?a.duration:250;this.c=void 0!==a.autoHide?a.autoHide:!0;this.l=void 0;this.c&&this.element.classList.add("ol-hidden")}x(ye,Vd); ye.prototype.j=function(a){a.preventDefault();if(void 0!==this.h)this.h();else{a=this.a;var b=a.V();if(b){var c=b.wa();void 0!==c&&(0<this.i&&(c%=2*Math.PI,c<-Math.PI&&(c+=2*Math.PI),c>Math.PI&&(c-=2*Math.PI),a.sa(yd({rotation:c,duration:this.i,easing:td}))),b.sd(0))}}}; function ze(a){if(a=a.frameState){a=a.viewState.rotation;if(a!=this.l){var b="rotate("+a+"rad)";if(this.c){var c=this.element.classList.contains("ol-hidden");c||0!==a?c&&0!==a&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")}this.b.style.msTransform=b;this.b.style.webkitTransform=b;this.b.style.transform=b}this.l=a}};function Ae(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-zoom",c=void 0!==a.delta?a.delta:1,d=void 0!==a.zoomInLabel?a.zoomInLabel:"+",e=void 0!==a.zoomOutLabel?a.zoomOutLabel:"\u2212",f=void 0!==a.zoomInTipLabel?a.zoomInTipLabel:"Zoom in",g=void 0!==a.zoomOutTipLabel?a.zoomOutTipLabel:"Zoom out",h=document.createElement("button");h.className=b+"-in";h.setAttribute("type","button");h.title=f;h.appendChild("string"===typeof d?document.createTextNode(d):d);y(h,"click",Ae.prototype.c.bind(this, c));d=document.createElement("button");d.className=b+"-out";d.setAttribute("type","button");d.title=g;d.appendChild("string"===typeof e?document.createTextNode(e):e);y(d,"click",Ae.prototype.c.bind(this,-c));c=document.createElement("div");c.className=b+" ol-unselectable ol-control";c.appendChild(h);c.appendChild(d);Vd.call(this,{element:c,target:a.target});this.b=void 0!==a.duration?a.duration:250}x(Ae,Vd); Ae.prototype.c=function(a,b){b.preventDefault();var c=this.a,d=c.V();if(d){var e=d.S();e&&(0<this.b&&c.sa(zd({resolution:e,duration:this.b,easing:td})),c=d.constrainResolution(e,a),d.Ra(c))}};function Be(a){a=a?a:{};var b=new G;(void 0!==a.zoom?a.zoom:1)&&b.push(new Ae(a.zoomOptions));(void 0!==a.rotate?a.rotate:1)&&b.push(new ye(a.rotateOptions));(void 0!==a.attribution?a.attribution:1)&&b.push(new we(a.attributionOptions));return b};var Ce; function De(){var a=aa.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&-1==Od.indexOf("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=na(function(a){if(("*"==d||a.origin== d)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&-1==Od.indexOf("Trident")&&-1==Od.indexOf("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var a=c.be;c.be=null;a()}};return function(a){d.next={be:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(a){var b= document.createElement("SCRIPT");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){aa.setTimeout(a,0)}};function Ee(a,b,c){Ra.call(this,a);this.a=b;a=c?c:{};this.buttons=Fe(a);this.pressure=Ge(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: 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