Files
openlayers/pure-python-build/build/ol.js
Tom Payne 80887d9deb Updated
2012-11-04 18:26:22 +01:00

141 lines
82 KiB
JavaScript

(function(){var h=void 0,i=!0,j=null,l=!1;function da(a){return function(){return this[a]}}var m,n=this;function s(){}function ea(a){a.ta=function(){return a.Bb?a.Bb:a.Bb=new a}}
function fa(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 t(a){return a!==h}function ga(a){return"array"==fa(a)}function ha(a){var b=fa(a);return"array"==b||"object"==b&&"number"==typeof a.length}function v(a){return"string"==typeof a}function ia(a){return"function"==fa(a)}function ja(a){var b=typeof a;return"object"==b&&a!=j||"function"==b}function w(a){return a[ka]||(a[ka]=++la)}var ka="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),la=0;
function ma(a,b,c){return a.call.apply(a.bind,arguments)}function na(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 oa(a,b,c){oa=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ma:na;return oa.apply(j,arguments)}
function pa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var qa=Date.now||function(){return+new Date};function z(a,b){var c=a.split("."),d=n;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&t(b)?d[e]=b:d=d[e]?d[e]:d[e]={}}function A(a,b){function c(){}c.prototype=b.prototype;a.j=b.prototype;a.prototype=new c};function ra(a){Error.captureStackTrace?Error.captureStackTrace(this,ra):this.stack=Error().stack||"";a&&(this.message=String(a))}A(ra,Error);ra.prototype.name="CustomError";function sa(a){if(!ta.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ua,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(va,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(wa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(ya,"&quot;"));return a}var ua=/&/g,va=/</g,wa=/>/g,ya=/\"/g,ta=/[&<>\"]/;var B=Array.prototype,za=B.indexOf?function(a,b,c){return B.indexOf.call(a,b,c)}:function(a,b,c){c=c==j?0:0>c?Math.max(0,a.length+c):c;if(v(a))return!v(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},C=B.forEach?function(a,b,c){B.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Aa=B.map?function(a,b,c){return B.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=v(a)?a.split(""):
a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ba=B.some?function(a,b,c){return B.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return i;return l};function Ca(a){return B.concat.apply(B,arguments)}function Da(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Ea(a,b,c,d){B.splice.apply(a,Fa(arguments,1))}
function Fa(a,b,c){return 2>=arguments.length?B.slice.call(a,b):B.slice.call(a,b,c)}function Ga(a,b){return a>b?1:a<b?-1:0};function Ha(a,b,c){return Math.min(Math.max(a,b),c)}function Ia(a,b){var c=a%b;return 0>c*b?c+b:c};function D(a,b){this.x=t(a)?a:0;this.y=t(b)?b:0}D.prototype.H=function(){return new D(this.x,this.y)};function Ja(a,b){this.x=a;this.y=b}A(Ja,D);Ja.prototype.H=function(){return new Ja(this.x,this.y)};Ja.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Ja.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function E(a,b){Ja.call(this,a,b)}A(E,Ja);function Ka(a,b){var c=Ia(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};function La(a,b){this.width=a;this.height=b}La.prototype.H=function(){return new La(this.width,this.height)};La.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};La.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};La.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Ma(a,b){La.call(this,a,b)}A(Ma,La);function Na(a,b,c,d){this.k=a;this.n=b;this.q=c;this.z=d}Na.prototype.a=function(){return this.z-this.n};Na.prototype.b=function(){return this.q-this.k};function Oa(a,b){return a.k<=b.q&&a.q>=b.k&&a.n<=b.z&&a.z>=b.n}Na.prototype.toString=function(){return"("+[this.k,this.n,this.q,this.z].join(", ")+")"};function Pa(a,b,c,d){Na.call(this,a,b,c,d)}A(Pa,Na);function Qa(a){var b=arguments[0],b=new Pa(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.k=Math.min(b.k,d.x);b.n=Math.min(b.n,d.y);b.q=Math.max(b.q,d.x);b.z=Math.max(b.z,d.y)}return b}Pa.prototype.transform=function(a){var b=a(new E(this.k,this.n)),a=a(new E(this.q,this.z));return new Pa(b.x,b.y,a.x,a.y)};function Ra(a){this.extent=a}Ra.prototype.transform=function(a){a=this.extent.transform(a);return new Ra(a)};function F(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Sa(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ta(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Ua(a){for(var b in a)return l;return i}var Va="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function Wa(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Va.length;f++)c=Va[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Xa={Wc:"degrees",Zc:"m"};function G(a,b,c){this.a=a;this.c=b;this.b=c}G.prototype.d=da("a");G.prototype.f=da("b");G.prototype.e=da("c");function Ya(a,b){G.call(this,a,b.units,j);this.Kb=b}A(Ya,G);var Za={},$a={},ab={};function bb(a){C(a,function(a){cb(a)});C(a,function(b){C(a,function(a){b!==a&&db(b,a,eb)})})}function cb(a){$a[a.a]=a;db(a,a,eb)}function fb(a,b){return a!=j?v(a)?gb(a):a:gb(b)}function db(a,b,c){a=a.a;b=b.a;a in ab||(ab[a]={});ab[a][b]=c}
function gb(a){var b=$a[a];"Proj4js"in n&&!t(b)&&(b=hb(a));t(b)||(b=j);return b}function hb(a){var b=Za[a];t(b)||(b=new Proj4js.Proj(a),b=new Ya(a,b),Za[a]=b);return b}function ib(a,b){var c=a.a,d=b.a,e;c in ab&&d in ab[c]&&(e=ab[c][d]);if("Proj4js"in n&&!t(e)){var f;f=(a instanceof Ya?a:hb(a.a)).Kb;var g;g=(b instanceof Ya?b:hb(a.a)).Kb;e=function(a){a=new Proj4js.Point(a.x,a.y);a=Proj4js.transform(f,g,a);return new E(a.x,a.y)};db(a,b,e)}t(e)||(e=jb);return e}
function kb(a,b){var c=gb(a),d=gb(b);return ib(c,d)}function jb(a){return a}function eb(a){return new E(a.x,a.y)}var lb=6378137*Math.PI,mb=new Pa(-lb,-lb,lb,lb),nb=Aa(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new G(a,"m",mb)}),ob=new Pa(-180,-90,180,90),pb=Aa(["CRS:84","EPSG:4326","urn:ogc:def:crs:EPSG:6.6:4326"],function(a){return new G(a,"degrees",ob)});bb(nb);bb(pb);
function qb(a){var b=6378137*Math.PI*a.x/180,a=6378137*Math.log(Math.tan(Math.PI*(a.y+90)/360));return new E(b,a)}function rb(a){return new E(180*a.x/(6378137*Math.PI),360*Math.atan(Math.exp(a.y/6378137))/Math.PI-90)}C(pb,function(a){C(nb,function(b){db(a,b,qb);db(b,a,rb)})});function sb(a,b,c){this.b=a;this.a=b||j;this.c=c||j};function tb(a){if("function"==typeof a.M)return a.M();if(v(a))return a.split("");if(ha(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Sa(a)};function ub(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof ub?(c=a.$(),d=a.M()):(c=Ta(a),d=Sa(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}m=ub.prototype;m.l=0;m.hb=0;m.M=function(){vb(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};m.$=function(){vb(this);return this.a.concat()};
m.clear=function(){this.b={};this.hb=this.l=this.a.length=0};function vb(a){if(a.l!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];wb(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.l!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],wb(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function xb(a,b){return wb(a.b,b)?a.b[b]:h}m.set=function(a,b){wb(this.b,a)||(this.l++,this.a.push(a),this.hb++);this.b[a]=b};m.H=function(){return new ub(this)};
function wb(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var yb,zb,Ab,Bb,Cb,Db,Eb;function Fb(){return n.navigator?n.navigator.userAgent:j}function Gb(){return n.navigator}Bb=Ab=zb=yb=l;var Hb;if(Hb=Fb()){var Ib=Gb();yb=0==Hb.indexOf("Opera");zb=!yb&&-1!=Hb.indexOf("MSIE");Ab=!yb&&-1!=Hb.indexOf("WebKit");Bb=!yb&&!Ab&&"Gecko"==Ib.product}var Jb=yb,H=zb,I=Bb,J=Ab,Kb,Lb=Gb();Kb=Lb&&Lb.platform||"";Cb=-1!=Kb.indexOf("Mac");Db=-1!=Kb.indexOf("Win");Eb=-1!=Kb.indexOf("Linux");var Mb=!!Gb()&&-1!=(Gb().appVersion||"").indexOf("X11"),Nb;
a:{var Ob="",Pb;if(Jb&&n.opera)var Qb=n.opera.version,Ob="function"==typeof Qb?Qb():Qb;else if(I?Pb=/rv\:([^\);]+)(\)|;)/:H?Pb=/MSIE\s+([^\);]+)(\)|;)/:J&&(Pb=/WebKit\/(\S+)/),Pb)var Rb=Pb.exec(Fb()),Ob=Rb?Rb[1]:"";if(H){var Sb,Tb=n.document;Sb=Tb?Tb.documentMode:h;if(Sb>parseFloat(Ob)){Nb=String(Sb);break a}}Nb=Ob}var Ub={};
function L(a){var b;if(!(b=Ub[a])){b=0;for(var c=String(Nb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",k=d[f]||"",r=RegExp("(\\d*)(\\D*)","g"),u=RegExp("(\\d*)(\\D*)","g");do{var p=r.exec(g)||["","",""],q=u.exec(k)||["","",""];if(0==p[0].length&&0==q[0].length)break;b=((0==p[1].length?0:parseInt(p[1],10))<(0==q[1].length?0:parseInt(q[1],10))?-1:(0==p[1].length?0:parseInt(p[1],
10))>(0==q[1].length?0:parseInt(q[1],10))?1:0)||((0==p[2].length)<(0==q[2].length)?-1:(0==p[2].length)>(0==q[2].length)?1:0)||(p[2]<q[2]?-1:p[2]>q[2]?1:0)}while(0==b)}b=Ub[a]=0<=b}return b}var Vb={};function Wb(a){return Vb[a]||(Vb[a]=H&&!!document.documentMode&&document.documentMode>=a)};var Xb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Yb(a,b){var c;if(a instanceof Yb)this.T=t(b)?b:a.T,fc(this,a.da),c=a.Pa,gc(this),this.Pa=c,c=a.ga,gc(this),this.ga=c,hc(this,a.Ja),c=a.Ha,gc(this),this.Ha=c,ic(this,a.a.H()),c=a.sa,gc(this),this.sa=c;else if(a&&(c=String(a).match(Xb))){this.T=!!b;fc(this,c[1]||"",i);var d=c[2]||"";gc(this);this.Pa=d?decodeURIComponent(d):"";d=c[3]||"";gc(this);this.ga=d?decodeURIComponent(d):"";hc(this,c[4]);d=c[5]||"";gc(this);this.Ha=d?decodeURIComponent(d):"";ic(this,c[6]||"",i);c=c[7]||"";gc(this);this.sa=
c?decodeURIComponent(c):""}else this.T=!!b,this.a=new jc(j,0,this.T)}m=Yb.prototype;m.da="";m.Pa="";m.ga="";m.Ja=j;m.Ha="";m.sa="";m.Bc=l;m.T=l;
m.toString=function(){var a=[],b=this.da;b&&a.push(kc(b,lc),":");if(b=this.ga){a.push("//");var c=this.Pa;c&&a.push(kc(c,lc),"@");a.push(encodeURIComponent(String(b)));b=this.Ja;b!=j&&a.push(":",String(b))}if(b=this.Ha)this.ga&&"/"!=b.charAt(0)&&a.push("/"),a.push(kc(b,"/"==b.charAt(0)?mc:nc));(b=this.a.toString())&&a.push("?",b);(b=this.sa)&&a.push("#",kc(b,oc));return a.join("")};m.H=function(){return new Yb(this)};
function fc(a,b,c){gc(a);a.da=c?b?decodeURIComponent(b):"":b;a.da&&(a.da=a.da.replace(/:$/,""))}function hc(a,b){gc(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Ja=b}else a.Ja=j}
function ic(a,b,c){gc(a);if(b instanceof jc){a.a=b;b=a.a;if((a=a.T)&&!b.b){pc(b);b.a=j;var d=b.s,c=function(a,b){var c=b.toLowerCase();b!=c&&(qc(this,b),rc(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(ha(d)||v(d))C(d,c,b);else{var e;if("function"==typeof d.$)e=d.$();else if("function"!=typeof d.M)if(ha(d)||v(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=Ta(d);else e=h;d=tb(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=kc(b,sc)),a.a=new jc(b,
0,a.T)}function tc(a,b,c){gc(a);ga(c)||(c=[String(c)]);rc(a.a,b,c)}function gc(a){if(a.Bc)throw Error("Tried to modify a read-only Uri");}function kc(a,b){return v(a)?encodeURI(a).replace(b,uc):j}function uc(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var lc=/[#\/\?@]/g,nc=/[\#\?:]/g,mc=/[\#\?]/g,sc=/[\#\?@]/g,oc=/#/g;function jc(a,b,c){this.a=a||j;this.b=!!c}
function pc(a){if(!a.s&&(a.s=new ub,a.l=0,a.a))for(var b=a.a.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=j,f=j;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=vc(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}m=jc.prototype;m.s=j;m.l=j;m.add=function(a,b){pc(this);this.a=j;var a=vc(this,a),c=xb(this.s,a);c||this.s.set(a,c=[]);c.push(b);this.l++;return this};
function qc(a,b){pc(a);b=vc(a,b);if(wb(a.s.b,b)){a.a=j;a.l-=xb(a.s,b).length;var c=a.s;wb(c.b,b)&&(delete c.b[b],c.l--,c.hb++,c.a.length>2*c.l&&vb(c))}}m.clear=function(){this.s=this.a=j;this.l=0};function wc(a,b){pc(a);b=vc(a,b);return wb(a.s.b,b)}m.$=function(){pc(this);for(var a=this.s.M(),b=this.s.$(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
m.M=function(a){pc(this);var b=[];if(a)wc(this,a)&&(b=Ca(b,xb(this.s,vc(this,a))));else for(var a=this.s.M(),c=0;c<a.length;c++)b=Ca(b,a[c]);return b};m.set=function(a,b){pc(this);this.a=j;a=vc(this,a);wc(this,a)&&(this.l-=xb(this.s,a).length);this.s.set(a,[b]);this.l++;return this};function rc(a,b,c){qc(a,b);0<c.length&&(a.a=j,a.s.set(vc(a,b),Da(c)),a.l+=c.length)}
m.toString=function(){if(this.a)return this.a;if(!this.s)return"";for(var a=[],b=this.s.$(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.M(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("&")};m.H=function(){var a=new jc;a.a=this.a;this.s&&(a.s=this.s.H());return a};function vc(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};var xc=!H||Wb(9),yc=!H||Wb(9),zc=H&&!L("9");!J||L("528");I&&L("1.9b")||H&&L("8")||Jb&&L("9.5")||J&&L("528");I&&!L("8")||H&&L("9");function M(){0!=Ac&&(this.Yc=Error().stack,Bc[w(this)]=this)}var Ac=0,Bc={};M.prototype.Qb=l;M.prototype.Ua=function(){if(!this.Qb&&(this.Qb=i,this.r(),0!=Ac)){var a=w(this);delete Bc[a]}};function Cc(a,b){a.W||(a.W=[]);a.W.push(b)}M.prototype.r=function(){this.W&&Dc.apply(j,this.W);if(this.jb)for(;this.jb.length;)this.jb.shift()()};function Ec(a){a&&"function"==typeof a.Ua&&a.Ua()}function Dc(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ha(d)?Dc.apply(j,d):Ec(d)}};function Fc(a,b){this.type=a;this.b=this.target=b}m=Fc.prototype;m.Ua=function(){};m.X=l;m.wa=l;m.Ma=i;m.Va=function(){this.X=i};m.w=function(){this.wa=i;this.Ma=l};function Gc(a){a.Va()};function Hc(a){Hc[" "](a);return a}Hc[" "]=s;function Ic(a,b){a&&Jc(this,a,b)}A(Ic,Fc);var Kc=[1,4,2];m=Ic.prototype;m.target=j;m.oc=j;m.mc=0;m.nc=0;m.clientX=0;m.clientY=0;m.pc=0;m.qc=0;m.kc=0;m.aa=0;m.ua=0;m.va=l;m.J=l;m.U=l;m.lc=l;m.Ia=l;m.C=j;
function Jc(a,b,c){var d=a.type=b.type;Fc.call(a,d);a.target=b.target||b.srcElement;a.b=c;if(c=b.relatedTarget){if(I){var e;a:{try{Hc(c.nodeName);e=i;break a}catch(f){}e=l}e||(c=j)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.oc=c;a.mc=J||b.offsetX!==h?b.offsetX:b.layerX;a.nc=J||b.offsetY!==h?b.offsetY:b.layerY;a.clientX=b.clientX!==h?b.clientX:b.pageX;a.clientY=b.clientY!==h?b.clientY:b.pageY;a.pc=b.screenX||0;a.qc=b.screenY||0;a.kc=b.button;a.aa=b.keyCode||0;a.ua=b.charCode||
("keypress"==d?b.keyCode:0);a.va=b.ctrlKey;a.J=b.altKey;a.U=b.shiftKey;a.lc=b.metaKey;a.Ia=Cb?b.metaKey:b.ctrlKey;a.d=b.state;a.C=b;b.defaultPrevented&&a.w();delete a.X}function Lc(a){return(xc?0==a.C.button:"click"==a.type?i:!!(a.C.button&Kc[0]))&&!(J&&Cb&&a.va)}m.Va=function(){Ic.j.Va.call(this);this.C.stopPropagation?this.C.stopPropagation():this.C.cancelBubble=i};
m.w=function(){Ic.j.w.call(this);var a=this.C;if(a.preventDefault)a.preventDefault();else if(a.returnValue=l,zc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};m.jc=da("C");function Mc(){}var Nc=0;Mc.prototype.key=0;Mc.prototype.ca=l;Mc.prototype.a=l;Mc.prototype.handleEvent=function(a){return this.b?this.ma.call(this.Xa||this.src,a):this.ma.handleEvent.call(this.ma,a)};var Oc={},Pc={},Qc={},Rc={};
function R(a,b,c,d,e){if(b){if(ga(b)){for(var f=0;f<b.length;f++)R(a,b[f],c,d,e);return j}var d=!!d,g=Pc;b in g||(g[b]={l:0,D:0});g=g[b];d in g||(g[d]={l:0,D:0},g.l++);var g=g[d],k=w(a),r;g.D++;if(g[k]){r=g[k];for(f=0;f<r.length;f++)if(g=r[f],g.ma==c&&g.Xa==e){if(g.ca)break;return r[f].key}}else r=g[k]=[],g.l++;var u=Sc,p=yc?function(a){return u.call(p.src,p.key,a)}:function(a){a=u.call(p.src,p.key,a);if(!a)return a},f=p;f.src=a;var q=g=new Mc;if(ia(c))q.b=i;else if(c&&c.handleEvent&&ia(c.handleEvent))q.b=
l;else throw Error("Invalid listener argument");q.ma=c;q.c=f;q.src=a;q.type=b;q.capture=!!d;q.Xa=e;q.a=l;q.key=++Nc;q.ca=l;c=g.key;f.key=c;r.push(g);Oc[c]=g;Qc[k]||(Qc[k]=[]);Qc[k].push(g);a.addEventListener?(a==n||!a.pb)&&a.addEventListener(b,f,d):a.attachEvent(b in Rc?Rc[b]:Rc[b]="on"+b,f);return c}throw Error("Invalid event type");}function Tc(a,b,c,d,e){if(ga(b)){for(var f=0;f<b.length;f++)Tc(a,b[f],c,d,e);return j}a=R(a,b,c,d,e);Oc[a].a=i;return a}
function Uc(a,b,c,d,e){if(ga(b))for(var f=0;f<b.length;f++)Uc(a,b[f],c,d,e);else{d=!!d;a:{f=Pc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=w(a),f[a]))){a=f[a];break a}a=j}if(a)for(f=0;f<a.length;f++)if(a[f].ma==c&&a[f].capture==d&&a[f].Xa==e){T(a[f].key);break}}}
function T(a){if(!Oc[a])return l;var b=Oc[a];if(b.ca)return l;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==n||!c.pb)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in Rc?Rc[d]:Rc[d]="on"+d,e);c=w(c);if(Qc[c]){var e=Qc[c],g=za(e,b);0<=g&&B.splice.call(e,g,1);0==e.length&&delete Qc[c]}b.ca=i;if(b=Pc[d][f][c])b.Fb=i,Vc(d,f,c,b);delete Oc[a];return i}
function Vc(a,b,c,d){if(!d.Fa&&d.Fb){for(var e=0,f=0;e<d.length;e++)d[e].ca?d[e].c.src=j:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.Fb=l;0==f&&(delete Pc[a][b][c],Pc[a][b].l--,0==Pc[a][b].l&&(delete Pc[a][b],Pc[a].l--),0==Pc[a].l&&delete Pc[a])}}function Wc(a,b,c,d,e){var f=1,b=w(b);if(a[b]){a.D--;a=a[b];a.Fa?a.Fa++:a.Fa=1;try{for(var g=a.length,k=0;k<g;k++){var r=a[k];r&&!r.ca&&(f&=Xc(r,e)!==l)}}finally{a.Fa--,Vc(c,d,b,a)}}return Boolean(f)}function Xc(a,b){a.a&&T(a.key);return a.handleEvent(b)}
function U(a,b){var c=b.type||b,d=Pc;if(!(c in d))return i;if(v(b))b=new Fc(b,a);else if(b instanceof Fc)b.target=b.target||a;else{var e=b,b=new Fc(c,a);Wa(b,e)}var e=1,f,d=d[c],c=i in d,g;if(c){f=[];for(g=a;g;g=g.bb)f.push(g);g=d[i];g.D=g.l;for(var k=f.length-1;!b.X&&0<=k&&g.D;k--)b.b=f[k],e&=Wc(g,f[k],b.type,i,b)&&b.Ma!=l}if(l in d)if(g=d[l],g.D=g.l,c)for(k=0;!b.X&&k<f.length&&g.D;k++)b.b=f[k],e&=Wc(g,f[k],b.type,l,b)&&b.Ma!=l;else for(d=a;!b.X&&d&&g.D;d=d.bb)b.b=d,e&=Wc(g,d,b.type,l,b)&&b.Ma!=
l;return Boolean(e)}
function Sc(a,b){if(!Oc[a])return i;var c=Oc[a],d=c.type,e=Pc;if(!(d in e))return i;var e=e[d],f,g;if(!yc){var k;if(!(k=b))a:{k=["window","event"];for(var r=n;f=k.shift();)if(r[f]!=j)r=r[f];else{k=j;break a}k=r}f=k;k=i in e;r=l in e;if(k){if(0>f.keyCode||f.returnValue!=h)return i;a:{var u=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(p){u=i}if(u||f.returnValue==h)f.returnValue=i}}u=new Ic;Jc(u,f,this);f=i;try{if(k){for(var q=[],x=u.b;x;x=x.parentNode)q.push(x);g=e[i];g.D=g.l;for(var y=q.length-
1;!u.X&&0<=y&&g.D;y--)u.b=q[y],f&=Wc(g,q[y],d,i,u);if(r){g=e[l];g.D=g.l;for(y=0;!u.X&&y<q.length&&g.D;y++)u.b=q[y],f&=Wc(g,q[y],d,l,u)}}else f=Xc(c,u)}finally{q&&(q.length=0)}return f}d=new Ic(b,this);return f=Xc(c,d)};var Yc,Zc=!H||Wb(9);!I&&!H||H&&Wb(9)||I&&L("1.9.1");H&&L("9");function $c(a,b){var c;c=a.className;c=v(c)&&c.match(/\S+/g)||[];for(var d=Fa(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=za(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function ad(a){return a?new bd(cd(a)):Yc||(Yc=new bd)}function dd(a,b){F(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in ed?a.setAttribute(ed[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var ed={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function fd(a){a=a.document.documentElement;return new La(a.clientWidth,a.clientHeight)}function gd(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Zc&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',sa(g.name),'"');if(g.type){f.push(' type="',sa(g.type),'"');var k={};Wa(k,g);delete k.type;g=k}f.push(">");f=f.join("")}f=e.createElement(f);g&&(v(g)?f.className=g:ga(g)?$c.apply(j,[f].concat(g)):dd(f,g));2<d.length&&hd(e,f,d,2);return f}
function hd(a,b,c,d){function e(c){c&&b.appendChild(v(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(ha(f)&&!(ja(f)&&0<f.nodeType)){var g=C,k;a:{if((k=f)&&"number"==typeof k.length){if(ja(k)){k="function"==typeof k.item||"string"==typeof k.item;break a}if(ia(k)){k="function"==typeof k.item;break a}}k=l}g(k?Da(f):f,e)}else e(f)}}function id(a,b){hd(cd(a),a,arguments,1)}function jd(a){a&&a.parentNode&&a.parentNode.removeChild(a)}
function cd(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function bd(a){this.a=a||n.document||document}bd.prototype.createElement=function(a){return this.a.createElement(a)};bd.prototype.createTextNode=function(a){return this.a.createTextNode(a)};function kd(a){var b=a.a,a=!J?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new D(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}bd.prototype.appendChild=function(a,b){a.appendChild(b)};/*
Portions of this code are from MochiKit, received by
The Closure Authors under the MIT license. All other code is Copyright
2005-2009 The Closure Authors. All Rights Reserved.
*/
function ld(a,b){this.a=[];this.f=a;this.e=b||j}m=ld.prototype;m.R=l;m.ia=l;m.pa=0;m.Pb=l;m.cc=l;m.bc=0;m.ob=function(a,b){md(this,a,b);this.pa--;0==this.pa&&this.R&&nd(this)};function md(a,b,c){a.R=i;a.b=c;a.ia=!b;nd(a)}function od(a){if(a.R){if(!a.Pb)throw new pd(a);a.Pb=l}}function qd(a){return Ba(a.a,function(a){return ia(a[1])})}
function nd(a){a.c&&(a.R&&qd(a))&&(n.clearTimeout(a.c),delete a.c);a.d&&(a.d.bc--,delete a.d);for(var b=a.b,c=l,d=l;a.a.length&&0==a.pa;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.ia?g:f)try{var k=f.call(e||a.e,b);t(k)&&(a.ia=a.ia&&(k==b||k instanceof Error),a.b=b=k);b instanceof ld&&(d=i,a.pa++)}catch(r){b=r,a.ia=i,qd(a)||(c=i)}}a.b=b;d&&a.pa&&(d=b,k=oa(a.ob,a,i),f=oa(a.ob,a,l),d.a.push([k,f,h]),d.R&&nd(d),b.cc=i);c&&(a.c=n.setTimeout(function(){throw b;},0))}
function pd(a){ra.call(this);this.a=a}A(pd,ra);pd.prototype.message="Deferred has already fired";pd.prototype.name="AlreadyCalledError";function rd(a,b){var c=b||{},d=c.document||document,e=document.createElement("SCRIPT"),f={Nb:e,Oa:h},g=new ld(sd,f),k=j,r=c.timeout!=j?c.timeout:5E3;0<r&&(k=window.setTimeout(function(){td(e,i);var b=new ud(vd,"Timeout reached for loading script "+a);od(g);md(g,l,b)},r),f.Oa=k);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)td(e,c.nb||l,k),od(g),md(g,i,j)};e.onerror=function(){td(e,i,k);var b=new ud(wd,"Error while loading script "+a);od(g);
md(g,l,b)};dd(e,{type:"text/javascript",charset:"UTF-8",src:a});f=d.getElementsByTagName("HEAD");(!f||0==f.length?d.documentElement:f[0]).appendChild(e);return g}function sd(){if(this&&this.Nb){var a=this.Nb;a&&"SCRIPT"==a.tagName&&td(a,i,this.Oa)}}function td(a,b,c){c!=j&&n.clearTimeout(c);a.onload=s;a.onerror=s;a.onreadystatechange=s;b&&window.setTimeout(function(){jd(a)},0)}var wd=0,vd=1;function ud(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ra.call(this,c);this.a=a}A(ud,ra);function xd(a){this.b=new Yb(a);this.a="jsonp";this.Oa=5E3}var yd=0;function zd(a,b){n._callbacks_[a]&&(b?delete n._callbacks_[a]:n._callbacks_[a]=s)};function Ad(a,b,c,d){Na.call(this,a,b,c,d)}A(Ad,Na);function V(a,b,c){Ja.call(this,b,c);this.i=a}A(V,E);function Bd(a){a=a.split("/");a=Aa(a,function(a){return parseInt(a,10)});return new V(a[0],a[1],a[2])}V.prototype.hash=function(){return(this.x<<this.i)+this.y};function Cd(a){var b=Array(a.i),c=1<<a.i-1,d,e;for(d=0;d<a.i;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}V.prototype.toString=function(){return[this.i,this.x,this.y].join("/")};function Dd(a,b,c,d){Na.call(this,a,b,c,d)}A(Dd,Na);function Ed(a,b,c,d){var e,f;for(e=a.k;e<=a.q;++e)for(f=a.n;f<=a.z;++f)c.call(d,new V(b,e,f))}Dd.prototype.a=function(){return this.z-this.n+1};Dd.prototype.b=function(){return this.q-this.k+1};function Fd(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d<c;++d){if(a[d]==b)return d;if(a[d]<b)return a[d-1]-b<b-a[d]?d-1:d}}return c-1};function Gd(a){this.a=a.resolutions;this.f=this.a.length;this.g=t(a.extent)?a.extent:j;this.d=t(a.origin)?a.origin:j;this.e=j;t(a.Hc)&&(this.e=a.Hc);this.b=t(a.eb)?a.eb:new Ma(256,256)}Gd.prototype.c=function(a,b,c){for(var d=Hd(this,a),a=a.i-1;0<=a&&!b.call(c,a,Id(this,d,this.a[a]));)--a};function Jd(a,b){return a.d===j?a.e[b]:a.d}
function Kd(a,b,c){var c=c/a.a[b.i],a=a.b,a=new Ma(a.width/c,a.height/c),d,e,c=Math.round(b.x*a.width);d=Math.round((b.x+1)*a.width);e=Math.round(b.y*a.height);b=Math.round((b.y+1)*a.height);return new Ad(c,e,d,b)}function Id(a,b,c){var d=Ld(a,new E(b.k,b.n),c),a=Ld(a,new E(b.q,b.z),c);return new Dd(d.x,d.y,a.x,a.y)}function Hd(a,b){var c=Jd(a,b.i),d=a.a[b.i],e=a.b,f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new Pa(f,c,f+e.width*d,c+e.height*d)}
function Ld(a,b,c){var d=Fd(a.a,c),e=c/a.a[d],f=Jd(a,d),b=new E(Math.floor((b.x-f.x)/c),Math.floor((b.y-f.y)/c)),f=a.b,f=new Ma(f.width/e,f.height/e),d=new V(d,Math.floor(b.x/f.width),Math.floor(b.y/f.height)),a=Kd(a,d,c);b.x<a.k?d.x-=1:b.x>=a.q&&(d.x+=1);b.y<a.n?d.y-=1:b.y>=a.z&&(d.y+=1);return d};function Md(a,b,c,d){this.extent=b;this.c=a;this.b=c;this.a=d}A(Md,Ra);Md.prototype.transform=function(a){a=this.extent.transform(a);return new Md(this.c,a,this.b,this.a)};function Nd(){M.call(this)}A(Nd,M);m=Nd.prototype;m.pb=i;m.bb=j;m.addEventListener=function(a,b,c,d){R(this,a,b,c,d)};m.removeEventListener=function(a,b,c,d){Uc(this,a,b,c,d)};m.r=function(){Nd.j.r.call(this);var a,b=0,c=a==j;a=!!a;if(this==j)F(Qc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)T(f.key),b++}});else{var d=w(this);if(Qc[d])for(var d=Qc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)T(f.key),b++}}this.bb=j};function Od(a,b,c){M.call(this);this.Na=a;this.g=b;this.a=0;this.b=new Image;c!==j&&(this.b.crossOrigin=c);this.d={};this.c=j}A(Od,Nd);function Pd(a,b){if(t(b)){var c,d=w(b);if(d in a.d)return a.d[d];c=Ua(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}Od.prototype.e=function(){this.a=3;C(this.c,T);this.c=j};Od.prototype.f=function(){this.a=2;C(this.c,T);this.c=j;U(this,"change")};function Qd(a){0==a.a&&(a.a=1,a.c=[Tc(a.b,"error",a.e,l,a),Tc(a.b,"load",a.f,l,a)],a.b.src=a.g)};function Rd(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){var c=[],d=b[2].charCodeAt(0),e;for(e=b[1].charCodeAt(0);e<=d;++e)c.push(a.replace(b[0],String.fromCharCode(e)));return Sd(Aa(c,Rd))}return function(b){return b===j?h:a.replace("{z}",b.i).replace("{x}",b.x).replace("{y}",b.y)}}function Sd(a){return function(b){if(b!==j){var c=Ia(b.hash(),a.length);return a[c](b)}}}function Td(){}function Ud(a,b){return function(c){return c===j?h:b(a(c))}};function Vd(a){return function(){return a}}var Wd=Vd(l),Xd=Vd(i),Yd=Vd(j);function Zd(a){M.call(this);this.h=t(a.projection)?a.projection:j;this.g=t(a.extent)?a.extent:a.projection.b;this.a=t(a.attributions)?a.attributions:j}A(Zd,Nd);Zd.prototype.V=Xd;function $d(a){Zd.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.tileGrid=t(a.tileGrid)?a.tileGrid:j;this.L=t(a.L)?a.L:Td;this.d=t(a.crossOrigin)?a.crossOrigin:"anonymous";this.b={}}A($d,Zd);function ae(a,b){var c=b.toString();if(c in a.b)return a.b[c];var d=a.L(b),d=t(d)?new Od(b,d,a.d):j;return a.b[c]=d};function be(a){var b=Array(a.maxZoom+1),c;for(c=0;c<=a.maxZoom;++c)b[c]=lb/(128<<c);Gd.call(this,{extent:mb,origin:new E(-lb,lb),resolutions:b,eb:new Ma(256,256)})}A(be,Gd);be.prototype.c=function(a,b,c){for(var d=a.x,e=a.y,a=a.i,f;;){a-=1;if(0>a)break;d=Math.floor(d/2);e=Math.floor(e/2);f=new Dd(d,e,d,e);if(b.call(c,a,f))break}};var ce={Tc:"Aerial",Uc:"AerialWithLabels",ad:"Road",$c:"OrdnanceSurvey",Vc:"CollinsBart"};
function de(a){$d.call(this,{projection:gb("EPSG:3857")});this.ec=t(a.culture)?a.culture:"en-us";this.c=l;var b=new Yb("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new xd(b),a={include:"ImageryProviders",key:a.key},c=oa(this.e,this),a=a||j,d="_"+(yd++).toString(36)+qa().toString(36);n._callbacks_||(n._callbacks_={});var e=b.b.H();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&tc(e,f,a[f]);c&&(n._callbacks_[d]=function(a){zd(d,i);c.apply(h,arguments)},tc(e,b.a,"_callbacks_."+
d));f=rd(e.toString(),{timeout:b.Oa,nb:i});f.a.push([j,function(){zd(d,l)},h]);f.R&&nd(f)}A(de,$d);
de.prototype.e=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new be({maxZoom:d,eb:new Ma(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.L=Ud(function(a){if(a.i<c||d<a.i)return j;var b=1<<a.i,e=-a.y-1;return 0>e||b<=e?j:new V(a.i,Ia(a.x,b),e)},Sd(Aa(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.ec);return function(a){return a===j?h:c.replace("{quadkey}",Cd(a))}})));var f=gb("EPSG:4326");this.a=Aa(b.imageryProviders,
function(a){var b=a.attribution,a=Aa(a.coverageAreas,function(a){var b=a.bbox;return new Md(e,new Pa(b[1],b[0],b[3],b[2]),a.zoomMin,a.zoomMax)});return new sb(b,a,f)});this.c=i;U(this,"load")};de.prototype.V=da("c");function W(a){M.call(this);t(a)&&this.Za(a)}A(W,Nd);var ee={},fe={},ge={};function he(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function ie(a){return a.ol_accessors_||(a.ol_accessors_={})}function X(a){return ee[a]||(ee[a]=a.toLowerCase()+"_changed")}function je(a){return a.ol_bindings_||(a.ol_bindings_={})}m=W.prototype;m.ac=function(a,b,c,d){c=c||a;this.gb(a);var e=X(c);je(this)[a]=R(b,e,function(){ke(this,a)},h,this);ie(this)[a]={target:b,key:c};d||ke(this,a)};m.dc=s;
m.t=function(a){var b=ie(this);if(a in b){var b=b[a],a=b.target,b=b.key,c=fe[b]||(fe[b]="get"+he(b));return a[c]?a[c]():a.t(b)}return this[a]};m.Gb=function(a){var b=ie(this);a in b?(a=b[a],a.target.Gb(a.key)):ke(this,a)};function ke(a,b){var c=X(b);U(a,c)}m.set=function(a,b){var c=ie(this);if(a in c){var d=c[a],c=d.target,d=d.key,e=ge[d]||(ge[d]="set"+he(d));if(c[e])c[e](b);else c.set(d,b)}else this[a]=b,ke(this,a)};
m.Ob=function(a){F(a,function(a,c){var d=ge[c]||(ge[c]="set"+he(c));if(this[d])this[d](a);else this.set(c,a)},this)};m.Za=W.prototype.Ob;m.gb=function(a){var b=je(this),c=b[a];c&&(delete b[a],T(c),b=this.t(a),delete ie(this)[a],this[a]=b)};m.Sc=function(){var a=je(this);C(Ta(a),function(a){this.gb(a)},this)};function le(a,b,c,d,e){Fc.call(this,a,e);this.a=b;this.index=c;this.c=d}A(le,Fc);function Y(a){W.call(this);this.a=a||[];me(this)}A(Y,W);m=Y.prototype;m.clear=function(){for(;this.length;)this.Hb()};m.forEach=function(a,b){C(this.a,a,b)};m.hc=da("a");m.ic=function(a){return this.a[a]};m.qb=function(){return this.t("length")};m.Ba=function(a,b){Ea(this.a,a,0,b);me(this);U(this,new le("add",b,h,h,this));U(this,new le("insert_at",b,a,h,this))};m.Hb=function(){return this.Lb(this.qb()-1)};
m.push=function(a){var b=this.a.length;this.Ba(b,a);return b};m.Lb=function(a){var b=this.a[a];B.splice.call(this.a,a,1);me(this);U(this,new le("remove",b,h,h,this));U(this,new le("remove_at",h,a,b,this));return b};m.Jc=function(a,b){var c=this.length;if(a<c)c=this.a[a],this.a[a]=b,U(this,new le("set_at",b,a,c,this)),U(this,new le("remove",c,h,h,this)),U(this,new le("add",b,h,h,this));else{for(;c<a;++c)this.Ba(c,h);this.Ba(a,b)}};function me(a){a.set("length",a.a.length)};function ne(a){M.call(this);this.Z=a||window;this.Ea=R(this.Z,"resize",this.xc,l,this);this.Y=fd(this.Z||window);if(J&&Db||Jb&&this.Z.self!=this.Z.top)this.Qa=window.setInterval(oa(this.mb,this),oe)}A(ne,Nd);var oe=500;m=ne.prototype;m.Ea=j;m.Z=j;m.Y=j;m.Qa=j;m.r=function(){ne.j.r.call(this);this.Ea&&(T(this.Ea),this.Ea=j);this.Qa&&(window.clearInterval(this.Qa),this.Qa=j);this.Y=this.Z=j};m.xc=function(){this.mb()};
m.mb=function(){var a=fd(this.Z||window);if(!(a==this.Y||(!a||!this.Y?0:a.width==this.Y.width&&a.height==this.Y.height)))this.Y=a,U(this,"resize")};function pe(a,b,c,d,e){if(!H&&(!J||!L("525")))return i;if(Cb&&e)return qe(a);if(e&&!d||!c&&(17==b||18==b)||H&&d&&b==a)return l;switch(a){case 13:return!(H&&Wb(9));case 27:return!J}return qe(a)}function qe(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||J&&0==a)return i;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return i;default:return l}}
function re(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function se(a,b){M.call(this);a&&(this.Da&&te(this),this.ha=a,this.Ca=R(this.ha,"keypress",this,b),this.Ya=R(this.ha,"keydown",this.a,b,this),this.Da=R(this.ha,"keyup",this.b,b,this))}A(se,Nd);m=se.prototype;m.ha=j;m.Ca=j;m.Ya=j;m.Da=j;m.P=-1;m.O=-1;m.Ra=l;
var ue={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},ve={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},we=H||J&&L("525"),xe=Cb&&I;
se.prototype.a=function(a){if(J&&(17==this.P&&!a.va||18==this.P&&!a.J))this.O=this.P=-1;we&&!pe(a.aa,this.P,a.U,a.va,a.J)?this.handleEvent(a):(this.O=I?re(a.aa):a.aa,xe&&(this.Ra=a.J))};se.prototype.b=function(a){this.O=this.P=-1;this.Ra=a.J};
se.prototype.handleEvent=function(a){var b=a.C,c,d,e=b.altKey;H&&"keypress"==a.type?(c=this.O,d=13!=c&&27!=c?b.keyCode:0):J&&"keypress"==a.type?(c=this.O,d=0<=b.charCode&&63232>b.charCode&&qe(c)?b.charCode:0):Jb?(c=this.O,d=qe(c)?b.keyCode:0):(c=b.keyCode||this.O,d=b.charCode||0,xe&&(e=this.Ra),Cb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in ue?f=ue[c]:25==c&&a.U&&(f=9):g&&g in ve&&(f=ve[g]);a=f==this.P;this.P=f;b=new ye(f,d,a,b);b.J=e;U(this,b)};
function te(a){a.Ca&&(T(a.Ca),T(a.Ya),T(a.Da),a.Ca=j,a.Ya=j,a.Da=j);a.ha=j;a.P=-1;a.O=-1}se.prototype.r=function(){se.j.r.call(this);te(this)};function ye(a,b,c,d){d&&Jc(this,d,h);this.type="key";this.aa=a;this.ua=b;this.a=c}A(ye,Ic);function ze(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}ze.prototype.H=function(){return new ze(this.top,this.right,this.bottom,this.left)};function Ae(a,b,c){v(b)?Be(a,c,b):F(b,pa(Be,a))}function Be(a,b,c){a.style[String(c).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()})]=b}function Ce(a,b){var c=cd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,j))?c[b]||c.getPropertyValue(b)||"":""}function De(a,b){return a.currentStyle?a.currentStyle[b]:j}function Ee(a,b){return Ce(a,b)||De(a,b)||a.style&&a.style[b]}
function Fe(a,b){var c,d,e=I&&(Cb||Mb)&&L("1.9");b instanceof D?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Ge(c,e);a.style.top=Ge(d,e)}function He(a){var b=a.getBoundingClientRect();H&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function Ie(a){if(H&&!Wb(8))return a.offsetParent;for(var b=cd(a),c=Ee(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Ee(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return j}function Je(a,b){var c=Ke(a),d=Ke(b);return new D(c.x-d.x,c.y-d.y)}
function Ke(a){var b=new D;if(1==a.nodeType){if(a.getBoundingClientRect){var c=He(a);b.x=c.left;b.y=c.top}else{c=kd(ad(a));var d,e=cd(a),f=Ee(a,"position"),g=I&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),k=new D(0,0),r;d=e?cd(e):document;if(r=H)if(r=!Wb(9))ad(d),r=l;r=r?d.body:d.documentElement;if(a!=r)if(a.getBoundingClientRect)d=He(a),e=kd(ad(e)),k.x=d.left+e.x,k.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),
e=e.getBoxObjectFor(r),k.x=d.screenX-e.screenX,k.y=d.screenY-e.screenY;else{g=a;do{k.x+=g.offsetLeft;k.y+=g.offsetTop;g!=a&&(k.x+=g.clientLeft||0,k.y+=g.clientTop||0);if(J&&"fixed"==Ee(g,"position")){k.x+=e.body.scrollLeft;k.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(Jb||J&&"absolute"==f)k.y-=e.body.offsetTop;for(g=a;(g=Ie(g))&&g!=e.body&&g!=r;)if(k.x-=g.scrollLeft,!Jb||"TR"!=g.tagName)k.y-=g.scrollTop}b.x=k.x-c.x;b.y=k.y-c.y}if(I&&!L(12)){var u;H?u="-ms-transform":J?u="-webkit-transform":
Jb?u="-o-transform":I&&(u="-moz-transform");var p;u&&(p=Ee(a,u));p||(p=Ee(a,"transform"));p?(a=p.match(Le),a=!a?new D(0,0):new D(parseFloat(a[1]),parseFloat(a[2]))):a=new D(0,0);b=new D(b.x+a.x,b.y+a.y)}}else u=ia(a.jc),p=a,a.targetTouches?p=a.targetTouches[0]:u&&a.C.targetTouches&&(p=a.C.targetTouches[0]),b.x=p.clientX,b.y=p.clientY;return b}function Ge(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Me(a,b){a.style.display=b?"":"none"}
function Ne(a,b){ad(cd(a));if(H&&!L("8")){var c=a.style,d;if(H){d=Oe(a,De(a,"paddingLeft"));var e=Oe(a,De(a,"paddingRight")),f=Oe(a,De(a,"paddingTop")),g=Oe(a,De(a,"paddingBottom"));d=new ze(f,e,g,d)}else d=Ce(a,"paddingLeft"),e=Ce(a,"paddingRight"),f=Ce(a,"paddingTop"),g=Ce(a,"paddingBottom"),d=new ze(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(H)var e=Pe(a,"borderLeft"),f=Pe(a,"borderRight"),g=Pe(a,"borderTop"),k=Pe(a,"borderBottom"),e=new ze(g,f,k,e);else e=Ce(a,"borderLeftWidth"),
f=Ce(a,"borderRightWidth"),g=Ce(a,"borderTopWidth"),k=Ce(a,"borderBottomWidth"),e=new ze(parseFloat(g),parseFloat(f),parseFloat(k),parseFloat(e));c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c=a.style,I?c.MozBoxSizing="border-box":J?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(b.width,0)+"px",c.height=Math.max(b.height,0)+"px"}
function Oe(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}var Qe={thin:2,medium:4,thick:6};function Pe(a,b){if("none"==De(a,b+"Style"))return 0;var c=De(a,b+"Width");return c in Qe?Qe[c]:Oe(a,c)}var Le=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Re(a){M.call(this);this.a=a;a=ja(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:j;this.e=!!a&&"rtl"==Ee(a,"direction");this.b=R(this.a,I?"DOMMouseScroll":"mousewheel",this)}A(Re,Nd);
Re.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.C;if("mousewheel"==a.type){c=1;if(H||J&&(Db||L("532.0")))c=40;d=Se(-a.wheelDelta,c);t(a.wheelDeltaX)?(b=Se(-a.wheelDeltaX,c),c=Se(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),t(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Ha(b,-this.c,this.c));"number"==typeof this.d&&(c=Ha(c,-this.d,this.d));this.e&&(b=-b);b=new Te(d,a,b,c);U(this,b)};function Se(a,b){return J&&(Cb||Eb)&&0!=a%b?a:a/b}
Re.prototype.r=function(){Re.j.r.call(this);T(this.b);delete this.b};function Te(a,b,c,d){b&&Jc(this,b,h);this.type="mousewheel";this.e=a;this.c=c;this.a=d}A(Te,Ic);var Ue=n.window;function Ve(a,b,c){M.call(this);this.b=a;this.e=b||0;this.c=c;this.d=oa(this.f,this)}A(Ve,M);Ve.prototype.a=0;Ve.prototype.r=function(){Ve.j.r.call(this);We(this);delete this.b;delete this.c};function We(a){0!=a.a&&Ue.clearTimeout(a.a);a.a=0}Ve.prototype.f=function(){this.a=0;this.b&&this.b.call(this.c)};var Xe={},Ye=j;function Ze(){Ye||(Ye=new Ve(function(){qa();F(Xe,function(a){$e(a)});Ua(Xe)||Ze()},20));var a=Ye;if(0==a.a){We(a);var b;b=a.d;var c=t(h)?h:a.e;if(!ia(b))if(b&&"function"==typeof b.handleEvent)b=oa(b.handleEvent,b);else throw Error("Invalid listener argument");b=2147483647<c?-1:Ue.setTimeout(b,c||0);a.a=b}};var af=document&&"ontouchstart"in document.documentElement;function bf(a,b,c,d){this.d=a;this.c=b;this.b=c;this.a=d};function cf(a,b){if(t(a))return a+b};function df(a){this.resolution=a;this.a=cf};function ef(a,b){Fc.call(this,a);this.map=b;this.wa=l}A(ef,Fc);ef.prototype.w=function(){ef.j.w.call(this);this.wa=i};function ff(a,b){D.call(this,a,b)}A(ff,D);function gf(a,b,c){ef.call(this,a,b);this.a=c;this.e=this.d=j}A(gf,ef);gf.prototype.c=function(){if(this.d===j){var a=this.map,b=hf(this);this.d=a.A()?jf(a.f,b):j}return this.d};function hf(a){if(a.e===j){var b=Je(a.a,a.map.b);a.e=new ff(b.x,b.y)}return a.e}function kf(a){this.a=a;this.d=j;this.c=l;this.f=0;this.e=this.b=j;a=this.a.b;af||R(a,["click","dblclick"],this.Sa,l,this);R(a,af?"touchstart":"mousedown",this.ub,l,this)}A(kf,Nd);
function lf(a){if(af){var b=a.C;b.touches&&b.touches.length&&(b=b.touches[0],a.clientX=b.clientX,a.clientY=b.clientY)}}m=kf.prototype;m.Sa=function(a){if(!this.c){var b;"dblclick"!==a.type&&(b=new gf(mf,this.a,a),U(this,b));this.f||(b=new gf(nf,this.a,a),U(this,b))}};m.Ab=function(a){if(this.d){if(!this.c){var b=(new Date).getTime();this.f=!this.f||250<b-this.f?b:0;af&&this.Sa(this.e)}this.e=j;C(this.b,T);this.d=this.b=j;this.c&&U(this,new gf(of,this.a,a))}};
m.ub=function(a){this.d||(lf(a),this.e=a,this.d={clientX:a.clientX,clientY:a.clientY},this.c=l,this.b=[R(document,af?"touchmove":"mousemove",this.fc,l,this),R(document,af?"touchend":"mouseup",this.Ab,l,this)],"mousedown"===a.type&&a.w())};m.fc=function(a){var b;this.c||(this.c=i,b=new gf(pf,this.a,this.e),U(this,b));lf(a);this.d={clientX:a.clientX,clientY:a.clientY};a.w();b=new gf(qf,this.a,a);U(this,b)};
m.r=function(){var a=this.a.b;Uc(a,af?"touchstart":"mousedown",this.ub,l,this);Uc(a,af?"touchend":"mouseup",this.Ab,l,this);Uc(a,"click",this.Sa,l,this);this.b!==j&&(C(this.b,T),this.b=j);kf.j.r.call(this)};var mf="click",nf="dblclick",pf="dragstart",qf="drag",of="dragend";function rf(a){M.call(this);this.element=t(a.element)?a.element:j;this.g=a.target;this.a=j;t(a.map)&&this.F(a.map)}A(rf,M);rf.prototype.r=function(){jd(this.element);rf.j.r.call(this)};rf.prototype.F=function(a){this.a===j||jd(this.element);this.a=a;this.a!==j&&(t(this.g)?this.g:a.v).appendChild(this.element)};function Z(a){W.call(this);this.a=a.source;this.g(t(a.brightness)?a.brightness:0);this.h(t(a.contrast)?a.contrast:0);this.m(t(a.hue)?a.hue:0);this.o(t(a.opacity)?a.opacity:1);this.v(t(a.saturation)?a.saturation:0);this.B(t(a.visible)?a.visible:i);this.a.V()||Tc(this.a,"load",this.K,l,this)}A(Z,W);Z.prototype.c=function(){return this.t("brightness")};Z.prototype.getBrightness=Z.prototype.c;Z.prototype.d=function(){return this.t("contrast")};Z.prototype.getContrast=Z.prototype.d;Z.prototype.e=function(){return this.t("hue")};
Z.prototype.getHue=Z.prototype.e;Z.prototype.b=function(){return this.t("opacity")};Z.prototype.getOpacity=Z.prototype.b;Z.prototype.f=function(){return this.t("saturation")};Z.prototype.getSaturation=Z.prototype.f;Z.prototype.N=function(){return this.t("visible")};Z.prototype.getVisible=Z.prototype.N;Z.prototype.K=function(){U(this,"load")};Z.prototype.V=function(){return this.a.V()};Z.prototype.g=function(a){a=Ha(a,-1,1);a!=this.c()&&this.set("brightness",a)};Z.prototype.setBrightness=Z.prototype.g;
Z.prototype.h=function(a){a=Ha(a,-1,1);a!=this.d()&&this.set("contrast",a)};Z.prototype.setContrast=Z.prototype.h;Z.prototype.m=function(a){a!=this.e()&&this.set("hue",a)};Z.prototype.setHue=Z.prototype.m;Z.prototype.o=function(a){a=Ha(a,0,1);a!=this.b()&&this.set("opacity",a)};Z.prototype.setOpacity=Z.prototype.o;Z.prototype.v=function(a){a=Ha(a,-1,1);a!=this.f()&&this.set("saturation",a)};Z.prototype.setSaturation=Z.prototype.v;Z.prototype.B=function(a){a=!!a;a!=this.N()&&this.set("visible",a)};
Z.prototype.setVisible=Z.prototype.B;function sf(a){this.f=document.createElement("UL");var b=gd("DIV",{"class":"ol-attribution"},this.f);this.c=j;this.e={};this.Q={};this.b={};this.d=j;rf.call(this,{element:b,map:a.map,target:a.target})}A(sf,rf);m=sf.prototype;m.Jb=function(a){var b=w(a);this.e[b]=R(a,X("visible"),this.uc,l,this);a.a.V()?tf(this,a):Tc(a,"load",this.Cc,l,this)};
function tf(a,b){var c=b.a.a;if(c!==j){var d=a.a,e=d.A(),f=uf(d),g=d.g(),k=d.a(),r=b.N(),u;u=e&&r?vf(a,b,f,k,g):j;C(c,function(a){var b=w(a),c=document.createElement("LI");c.innerHTML=a.b;(!d.A||!r||u===j||!u[b])&&"none"!=c.style.display&&Me(c,l);this.f.appendChild(c);this.Q[b]=c},a)}}
function vf(a,b,c,d,e){var f=b.a,b=f.a;if(b===j)return j;var g;f instanceof $d&&(g=Fd(f.tileGrid.a,d));var k={};C(b,function(a){var b=w(a),p=i;if(b in this.b)a=this.b[b];else{var q=a.c,a=a.a;if(a!==j&&!(q===e||(q.c!=e.c?0:ib(q,e)===eb))){var x=ib(q,e);x!==eb&&(a=Aa(a,function(a){return a.transform(x)}))}this.b[b]=a}a===j||(p=f instanceof $d?Ba(a,function(a){return a.b<=g&&g<=a.a&&Oa(a.extent,c)}):Ba(a,function(a){return a.b<=Fd(a.c.a,d)&&Fd(a.c.a,d)<=a.a&&Oa(a.extent,c)}));k[b]=p},a);return k}
m.Cc=function(a){tf(this,a.target)};m.uc=function(a){var b=this.a,c=b.A(),d=uf(b),e=b.g(),b=b.a();wf(this,a.target,c,d,b,e)};m.Dc=function(a){this.Jb(a.a)};m.Ec=function(a){var a=a.a,b=w(a);T(this.e[b]);delete this.e[b];C(a.a.a,function(a){a=w(a);delete this.b[a];jd(this.Q[a]);delete this.Q[a]},this)};m.Wa=function(){var a=this.a,b=a.A(),c=uf(a),d=a.g(),e=a.a();a.t(xf).forEach(function(a){wf(this,a,b,c,e,d)},this)};
m.zb=function(){this.c!==j&&(C(this.c,T),this.c=j);F(this.Q,function(a){jd(a)},this);this.Q={};this.b={};var a=this.a.t(xf);a!=j&&(a.forEach(this.Jb,this),this.c=[R(a,"add",this.Dc,l,this),R(a,"remove",this.Ec,l,this)])};m.F=function(a){this.d===j||C(this.d,T);this.d=j;sf.j.F.call(this,a);a!==j&&(this.d=[R(a,X(yf),this.Wa,l,this),R(a,X(xf),this.zb,l,this),R(a,X(zf),this.Wa,l,this),R(a,X(Af),this.Wa,l,this)],this.zb())};
function wf(a,b,c,d,e,f){c&&b.N()?(b=vf(a,b,d,e,f),F(b,function(a,b){var c=this.Q[b];"none"!=c.style.display!=a&&Me(c,a)},a)):(b=b.a.a,b===j||C(b,function(a){a=w(a);Me(this.Q[a],l)},a))};function Bf(a){var b=af?"touchend":"click",c=gd("A",{href:"#zoomIn","class":"ol-zoom-in"},"+");R(c,b,this.c,l,this);var d=gd("A",{href:"#zoomOut","class":"ol-zoom-out"},"\u2212");R(d,b,this.d,l,this);b=gd("DIV","ol-zoom ol-unselectable",c,d);rf.call(this,{element:b,map:a.map,target:a.target});this.b=t(a.delta)?a.delta:1}A(Bf,rf);Bf.prototype.c=function(a){a.w();this.a.zoom(this.b)};Bf.prototype.d=function(a){a.w();this.a.zoom(-this.b)};function Cf(){};function Df(a){this.a=a}A(Df,Cf);Df.prototype.b=function(a){var b=a.a;if(a.type==nf&&(af||Lc(a.a))){var c=a.map,d=a.c();c.zoom(a.a.U?-this.a:this.a,d);a.w();b.w()}};function Ef(a){return a.J&&!a.Ia&&!a.U}function Ff(a){return!a.J&&!a.Ia&&!a.U}function Gf(a){return!a.J&&!a.Ia&&a.U};function Hf(){this.f=l;this.K=this.B=this.o=this.m=0;this.ra=this.h=j}A(Hf,Cf);Hf.prototype.g=s;Hf.prototype.W=s;Hf.prototype.d=Wd;Hf.prototype.b=function(a){var b=a.map;if(b.A()){var c=a.a;this.f?a.type==qf?(this.c=c.clientX-this.m,this.a=c.clientY-this.o,this.g(a)):a.type==of&&(this.c=c.clientX-this.m,this.a=c.clientY-this.o,this.W(a),this.f=l):a.type==pf&&(this.m=c.clientX,this.o=c.clientY,this.a=this.c=0,this.h=b.c(),this.ra=a.c(),this.d(a)&&(this.f=i,a.w()))}};function If(a){Hf.call(this);this.e=a}A(If,Hf);If.prototype.g=function(a){var a=a.map,b=a.a(),c=a.e(),b=new E(-b*this.c,b*this.a);a.f.ba()&&t(c)&&b.rotate(c);a.h(new E(this.h.x+b.x,this.h.y+b.y))};If.prototype.d=function(a){return this.e(a.a)?i:l};function Jf(a){Hf.call(this);this.v=a;this.e=0}A(Jf,Hf);Jf.prototype.g=function(a){var b=a.map,c=b.d(),a=hf(a);b.rotate(this.e,-Math.atan2(c.height/2-a.y,a.x-c.width/2))};Jf.prototype.d=function(a){var b=a.a,c=a.map;return Lc(b)&&this.v(b)&&c.f.ba()?(b=c.d(),a=hf(a),a=Math.atan2(b.height/2-a.y,a.x-b.width/2),this.e=(c.e()||0)+a,i):l};function Kf(a){var b=gd("DIV","ol-dragbox");this.b=j;this.d=a.ra;this.c=j;rf.call(this,{element:b,map:a.map})}A(Kf,rf);Kf.prototype.F=function(a){this.c!==j&&(T(this.c),this.c=j);a!==j&&(this.b=Lf(a,this.d),Fe(this.element,this.b),Ne(this.element,new Ma(0,0)),this.c=R(a,qf,this.e,l,this));Kf.j.F.call(this,a)};Kf.prototype.e=function(a){var b=this.a,a=a.c(),b=Lf(b,a);Fe(this.element,new ff(Math.min(b.x,this.b.x),Math.min(b.y,this.b.y)));Ne(this.element,new Ma(Math.abs(b.x-this.b.x),Math.abs(b.y-this.b.y)))};function Mf(a){Hf.call(this);this.v=a;this.e=j}A(Mf,Hf);Mf.prototype.W=function(a){this.e.F(j);this.e=j;if(64<=this.c*this.c+this.a*this.a){var b=a.map,c=Qa(this.ra,a.c());Nf(b,function(){this.h(new E((c.k+c.q)/2,(c.n+c.z)/2));var a;a=this.d();a=t(a)?Math.max((c.q-c.k)/a.width,(c.z-c.n)/a.height):h;a=this.K.resolution(a,0);this.B(a);this.f.ba()&&this.Ka(0)},b)}};Mf.prototype.d=function(a){var b=a.a;return Lc(b)&&this.v(b)?(this.e=new Kf({map:a.map,ra:this.ra}),i):l};function Of(a){this.a=a}A(Of,Cf);Of.prototype.b=function(a){if("key"==a.type){var b=a.a,c=b.aa;if(40==c||37==c||39==c||38==c){var d=a.map,e=d.a()*this.a,c=40==c?new E(0,-e):37==c?new E(-e,0):39==c?new E(e,0):new E(0,e),e=d.c();d.h(new E(e.x+c.x,e.y+c.y));b.w();a.w()}}};function Pf(){}A(Pf,Cf);Pf.prototype.b=function(a){if("key"==a.type){var b=a.a,c=b.ua;if(43==c||45==c)a.map.zoom(43==c?4:-4),b.w(),a.w()}};function Qf(a){this.a=a}A(Qf,Cf);Qf.prototype.b=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a,d=a.c();b.zoom(0>c.a?this.a:-this.a,d);a.w();c.w()}};function Rf(a,b){W.call(this);this.e=a;this.a=b;R(this.a,X("brightness"),this.vb,l,this);R(this.a,X("contrast"),this.wb,l,this);R(this.a,X("hue"),this.xb,l,this);R(this.a,"load",this.$a,l,this);R(this.a,X("opacity"),this.xa,l,this);R(this.a,X("saturation"),this.yb,l,this);R(this.a,X("visible"),this.ya,l,this)}A(Rf,W);m=Rf.prototype;m.I=da("a");m.S=da("e");m.vb=s;m.wb=s;m.xb=s;m.$a=s;m.xa=s;m.yb=s;m.ya=s;function Sf(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Sf.prototype.a=4;Sf.prototype.set=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Sf.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(Sf.BYTES_PER_ELEMENT=4,Sf.prototype.BYTES_PER_ELEMENT=Sf.prototype.a,Sf.prototype.set=Sf.prototype.set,Sf.prototype.toString=Sf.prototype.toString,z("Float32Array",Sf));function Tf(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Tf.prototype.a=8;Tf.prototype.set=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Tf.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(Tf.BYTES_PER_ELEMENT=8,Tf.prototype.BYTES_PER_ELEMENT=Tf.prototype.a,Tf.prototype.set=Tf.prototype.set,Tf.prototype.toString=Tf.prototype.toString,z("Float64Array",Tf));function Uf(){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 Vf(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}function Wf(a,b,c){var d=b[0],e=b[1],b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14]}
function Xf(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}function Yf(a,b,c){var d=a[1]*b,e=a[2]*b,f=a[3]*b,g=a[4]*c,k=a[5]*c,r=a[6]*c,c=a[7]*c,u=1*a[8],p=1*a[9],q=1*a[10],x=1*a[11],y=a[12],N=a[13],K=a[14],S=a[15];a[0]*=b;a[1]=d;a[2]=e;a[3]=f;a[4]=g;a[5]=k;a[6]=r;a[7]=c;a[8]=u;a[9]=p;a[10]=q;a[11]=x;a[12]=y;a[13]=N;a[14]=K;a[15]=S}
function Zf(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],k=a[5],r=a[6],u=a[7],p=Math.cos(b),q=Math.sin(b);a[0]=c*p+g*q;a[1]=d*p+k*q;a[2]=e*p+r*q;a[3]=f*p+u*q;a[4]=c*-q+g*p;a[5]=d*-q+k*p;a[6]=e*-q+r*p;a[7]=f*-q+u*p}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function $f(a,b){M.call(this);this.Ka=a;this.map=b;this.G={};this.e=j;this.c=Uf();this.K=Uf();this.d=i;this.na=[R(b,X(ag),this.rb,l,this),R(b,X(yf),this.ja,l,this),R(b,X(xf),this.vc,l,this),R(b,X(zf),this.ka,l,this),R(b,X(bg),this.za,l,this),R(b,X(Af),this.la,l,this)]}A($f,M);m=$f.prototype;m.Ga=function(a){var b=this.Ta(a);this.cb(a,b)};m.ba=Wd;m.Ta=Yd;m.r=function(){F(this.G,function(a){Ec(a)});C(this.na,T);this.e===j||C(this.e,T);$f.j.r.call(this)};
function cg(a,b,c){var d=a.map.t(xf);t(d)&&d.forEach(function(a,d){if(a.V()&&a.N()){var g=w(a);b.call(c,a,this.G[g],d)}},a)}function jf(a,b){dg(a);var c=[b.x,b.y,0];Wf(a.K,c,c);return new E(c[0],c[1])}m.rb=s;m.ja=function(){this.d=i};m.Fc=function(a){this.Ga(a.a)};m.vc=function(){C(Sa(this.G),function(a){this.La(a)},this);this.G={};this.e!==j&&(C(this.e,T),this.e=j);var a=this.map.t(xf);a!=j&&(a.forEach(this.Ga,this),this.e=[R(a,"add",this.Fc,l,this),R(a,"remove",this.Gc,l,this)])};m.Gc=function(a){this.ab(a.a)};
m.ka=function(){this.d=i};m.za=function(){this.d=i};m.la=function(){this.d=i};m.ab=function(a){Ec(this.La(a))};m.La=function(a){a=w(a);if(a in this.G){var b=this.G[a];delete this.G[a];return b}return j};m.u=Wd;m.cb=function(a,b){var c=w(a);this.G[c]=b};
function dg(a){if(a.d){var b=a.map,c=b.c(),d=b.a(),e=b.e(),b=b.d();Vf(a.c);Xf(a.c,b.width/2,b.height/2);Yf(a.c,1/d,-1/d);a.ba()&&t(e)&&Zf(a.c,-e);Xf(a.c,-c.x,-c.y);var f=a.c,c=a.K,d=f[0],e=f[1],b=f[2],g=f[3],k=f[4],r=f[5],u=f[6],p=f[7],q=f[8],x=f[9],y=f[10],N=f[11],K=f[12],S=f[13],O=f[14],f=f[15],P=d*r-e*k,ca=d*u-b*k,aa=d*p-g*k,ba=e*u-b*r,xa=e*p-g*r,Zb=b*p-g*u,$b=q*S-x*K,ac=q*O-y*K,bc=q*f-N*K,cc=x*O-y*S,dc=x*f-N*S,ec=y*f-N*O,Q=P*ec-ca*dc+aa*cc+ba*bc-xa*ac+Zb*$b;0!=Q&&(Q=1/Q,c[0]=(r*ec-u*dc+p*cc)*
Q,c[1]=(-e*ec+b*dc-g*cc)*Q,c[2]=(S*Zb-O*xa+f*ba)*Q,c[3]=(-x*Zb+y*xa-N*ba)*Q,c[4]=(-k*ec+u*bc-p*ac)*Q,c[5]=(d*ec-b*bc+g*ac)*Q,c[6]=(-K*Zb+O*aa-f*ca)*Q,c[7]=(q*Zb-y*aa+N*ca)*Q,c[8]=(k*dc-r*bc+p*$b)*Q,c[9]=(-d*dc+e*bc-g*$b)*Q,c[10]=(K*xa-S*aa+f*P)*Q,c[11]=(-q*xa+x*aa-N*P)*Q,c[12]=(-k*cc+r*ac-u*$b)*Q,c[13]=(d*cc-e*ac+b*$b)*Q,c[14]=(-K*ba+S*ca-O*P)*Q,c[15]=(q*ba-x*ca+y*P)*Q);a.d=l}};function eg(a){Z.call(this,a)}A(eg,Z);function fg(a,b,c){Rf.call(this,a,b);this.target=c;this.origin=j;this.xa();this.ya()}A(fg,Rf);fg.prototype.S=function(){return fg.j.S.call(this)};fg.prototype.$a=function(){this.e.map.u()};fg.prototype.xa=function(){var a=this.I().b(),b=this.target.style;"opacity"in b?b.opacity=a:"MozOpacity"in b?b.MozOpacity=a:"filter"in b&&(b.filter=""===a?"":"alpha(opacity="+100*a+")")};fg.prototype.ya=function(){Me(this.target,this.I().N())};function gg(a,b,c){fg.call(this,a,b,c);this.b={};this.f=this.h=h;this.c={}}A(gg,fg);gg.prototype.I=function(){return gg.j.I.call(this)};gg.prototype.m=function(a){var b=a.target,b=b.Na;if(b.i===this.f){var c=b.toString();delete this.c[c]}a=i;for(c in this.c){a=l;break}if(a)for(c in a=this.f,this.b)b=Bd(c),b.i!==a&&(b=this.b[c],delete this.b[c],jd(Pd(b,this)))};
gg.prototype.u=function(){var a=this.e.map;if(a.A()){var b=hg(a),a=a.a(),c=a!==this.h,d=this.I().a,e=d.tileGrid,f=Fd(e.a,a);if(f!=this.f)for(var g in this.c)jd(Pd(this.c[g],this)),delete this.c[g];var k={};k[f]={};Ed(Id(e,b,a),f,function(a){var b=ae(d,a);if(b!==j){var c=b.Na.toString();2==b.a?k[f][c]=b:(c in this.c||(R(b,"change",this.m,l,this),this.c[c]=b,Qd(b)),k[f][c]=b,e.c(a,function(a,b){var c=i;Ed(b,a,function(b){var e=b.toString();if(!k[a]||!k[a][e])b=ae(d,b),b!==j&&2==b.a?(a in k||(k[a]={}),
k[a][e]=b):c=l});return c}))}},this);var r=Aa(Ta(k),Number);B.sort.call(r,Ga);b=document.createDocumentFragment();g=document.createDocumentFragment();for(var u=l,p=l,q=0,x=r.length;q<x;++q){var y=r[q],N=k[y],K;K=a;var S=Jd(this.I().a.tileGrid,y);K=new E(Math.round((this.origin.x-S.x)/K),Math.round((S.y-this.origin.y)/K));for(var O in N){var S=N[O],P=Kd(e,S.Na,a),ca=Pd(S,this),aa=ca.style,ba=!(O in this.b);if(ba||c)aa.left=P.k-K.x+"px",aa.top=-P.z-K.y+"px",aa.width=P.b()+"px",aa.height=P.a()+"px";
ba&&(this.b[O]=S,aa.position="absolute",y===f?(b.appendChild(ca),u=i):(g.appendChild(ca),p=i))}}p&&((O=this.target.firstChild)?O.parentNode&&O.parentNode.insertBefore(g,O):this.target.appendChild(g));u&&this.target.appendChild(b);this.f=f;this.h=a;for(var xa in this.b)a=Bd(xa),a=k[a.i],a&&xa in a||(a=this.b[xa],delete this.b[xa],jd(Pd(a,this)))}};function ig(a,b){$f.call(this,a,b);this.a=document.createElement("DIV");this.a.className="ol-layers-pane ol-unselectable";var c=this.a.style;c.position="absolute";c.width="100%";c.height="100%";a.insertBefore(this.a,a.childNodes[0]||j);this.B={};this.f=j;this.o=h;this.g=j;this.v=h;this.h=j}A(ig,$f);
function jg(a,b,c,d){b="translate("+Math.round(b)+"px, "+Math.round(c)+"px) rotate("+d.toFixed(6)+"rad) scale3d(1, 1, 1)";a=a.a.style;a.WebkitTransform=b;a.MozTransform=b;a.a=b;a.msTransform=b;a.transform=b}m=ig.prototype;m.ba=Xd;m.Ta=function(a){if(a instanceof eg){var b=document.createElement("DIV");b.className="ol-layer";b.style.position="absolute";this.a.appendChild(b);a=new gg(this,a,b);this.B[w(a)]=b;return a}return j};m.ja=function(){ig.j.ja.call(this);var a=this.map;a.A()&&a.u()};
m.ka=function(){ig.j.ka.call(this);var a=this.map;a.A()&&a.u()};m.za=function(){var a=this.map;a.A()&&a.u()};m.la=function(){ig.j.la.call(this);var a=this.map;a.A()&&a.u()};
m.u=function(){var a=this.map;if(!a.A())return l;var b=a.c(),c=a.d(),d=a.a(),a=a.e();if(this.f===j)kg(this);else if(d!==this.o||!(c.width==this.g.width&&c.height==this.g.height))kg(this);else if(!(b==this.f||this.f&&b.x==this.f.x&&b.y==this.f.y)||a!==this.v){var e=this.map,f=e.a(),g=e.c(),k=e.d(),r=this.h,u=(g.x-r.x)/f,f=(r.y-g.y)/f;lg(this,u,f);jg(this,-(u-k.width/2),-(f-k.height/2),e.e())}this.f=b;this.o=d;this.v=a;this.g=c;var p=l;cg(this,function(a,b){b.u()&&(p=i)});return p};
function kg(a){var b=a.map,c=b.d(),d=c.width/2,c=c.height/2,e=b.c(),f=b.a(),g=new E(e.x-f*d,e.y+f*c);a.h=g;lg(a,d,c);jg(a,0,0,b.e());F(a.G,function(a){a.origin=g})}function lg(a,b,c){b=Math.round(b)+"px "+Math.round(c)+"px";a=a.a.style;a.WebkitTransformOrigin=b;a.MozTransformOrigin=b;a.b=b;a.c=b;a.d=b};var mg=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function ng(a,b){var c,d,e=mg.length;for(d=0;d<e;++d)try{if(c=a.getContext(mg[d],b),c!==j)return c}catch(f){}return j};function og(){if(!("WebGLRenderingContext"in n))return l;try{var a=document.createElement("CANVAS");return ng(a)!==j}catch(b){return l}};function pg(a){this.a=a}function qg(a){this.a=a}A(qg,pg);qg.prototype.b=function(){return 35632};function rg(a){this.a=a}A(rg,pg);rg.prototype.b=function(){return 35633};function sg(a,b){Rf.call(this,a,b)}A(sg,Rf);function tg(a){U(a,"change")}m=sg.prototype;m.S=function(){return sg.j.S.call(this)};m.vb=function(){tg(this)};m.wb=function(){tg(this)};m.xb=function(){tg(this)};m.$a=function(){tg(this)};m.xa=function(){tg(this)};m.yb=function(){tg(this)};m.ya=function(){tg(this)};m.Aa=s;function ug(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}A(ug,qg);ea(ug);function vg(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nuniform vec4 uTileOffset;\n\nvoid main(void) {\n gl_Position.xy = aPosition * uTileOffset.xy + uTileOffset.zw;\n gl_Position.z = 0.;\n gl_Position.w = 1.;\n vTexCoord = aTexCoord;\n}"}A(vg,rg);ea(vg);
function wg(a,b){Rf.call(this,a,b);this.v=ug.ta();this.B=vg.ta();this.c=this.g=this.f=this.p=j;this.h=h;this.o={};this.d=Uf();this.m=this.b=j}A(wg,sg);m=wg.prototype;m.r=function(){var a=this.S().b;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.c),a.deleteTexture(this.g));wg.j.r.call(this)};m.I=function(){return wg.j.I.call(this)};m.yc=function(){tg(this)};m.Aa=function(){this.c=this.g=this.f=this.p=j;this.h=h};
m.u=function(){var a=l,b=this.S(),c=this.e.map,d=b.b,e=c.c(),f=uf(c),g=c.a(),k=hg(c),r=c.e(),u=this.I().a,p=u.tileGrid,q=Fd(p.a,g),x=p.a[q],k=Id(p,k,x),y;if(this.b!==j&&this.b.k==k.k&&k.q==this.b.q&&this.b.n==k.n&&k.n==this.b.n)y=this.m;else{var g=new Ma(k.b(),k.a()),N=p.b,g=Math.max(g.width*N.width,g.height*N.height),g=Math.pow(2,Math.ceil(Math.log(g)/Math.log(2))),K=new Ma(x*g,x*g),S=Jd(p,q),O=S.x+k.k*N.width*x,x=S.y+k.n*N.height*x;y=new Pa(O,x,O+K.width,x+K.height);x=this.S().b;!t(this.h)||this.h!=
g?(Tc(this.e.map,xg,pa(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},x,this.c,this.g)),N=x.createTexture(),x.bindTexture(3553,N),x.texImage2D(3553,0,6408,g,g,0,6408,5121,j),x.texParameteri(3553,10240,9729),x.texParameteri(3553,10241,9729),O=x.createFramebuffer(),x.bindFramebuffer(36160,O),x.framebufferTexture2D(36160,36064,3553,N,0),this.g=N,this.c=O,this.h=g):x.bindFramebuffer(36160,this.c);d.viewport(0,0,g,g);d.clearColor(0,0,0,0);d.clear(16384);d.disable(3042);
g=yg(b,this.v,this.B);d.useProgram(g);this.p===j&&(this.p={ea:d.getAttribLocation(g,"aPosition"),fa:d.getAttribLocation(g,"aTexCoord"),Rc:d.getUniformLocation(g,"uTileOffset"),fb:d.getUniformLocation(g,"uTexture")});this.f===j?(g=d.createBuffer(),d.bindBuffer(34962,g),d.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=g):d.bindBuffer(34962,this.f);d.enableVertexAttribArray(this.p.ea);d.vertexAttribPointer(this.p.ea,2,5126,l,16,0);d.enableVertexAttribArray(this.p.fa);
d.vertexAttribPointer(this.p.fa,2,5126,l,16,8);d.uniform1i(this.p.fb,0);var P={},ca=[],aa=i;P[q]={};Ed(k,q,function(a){var c=ae(u,a);if(c!==j){if(2==c.a){if(Pd(c).src in b.m){P[q][a.toString()]=c;return}ca.push(Pd(c))}else{var d=w(c);d in this.o||(Qd(c),this.o[d]=R(c,"change",this.yc,l,this))}aa=l}p.c(a,function(a,b){var c=i;Ed(b,a,function(b){var d=b.toString();if(!P[a]||!P[a][d])b=ae(u,b),b!==j&&2==b.a?(P[a]||(P[a]={}),P[a][d]=b):c=l});return c})},this);g=Aa(Ta(P),Number);B.sort.call(g,Ga);var ba=
new Float32Array(4);C(g,function(a){F(P[a],function(a){var c=Hd(p,a.Na),e=2*c.a()/K.height,f=2*(c.k-y.k)/K.width-1,g=2*(c.n-y.n)/K.height-1;ba[0]=2*c.b()/K.width;ba[1]=e;ba[2]=f;ba[3]=g;d.uniform4fv(this.p.Rc,ba);zg(b,Pd(a));d.drawArrays(5,0,4)},this)},this);0!=ca.length&&(Tc(c,xg,pa(function(a,b){C(b,function(b){zg(a,b)})},b,ca)),a=i);aa?(this.b=k,this.m=y):this.m=this.b=j}Vf(this.d);Xf(this.d,(e.x-y.k)/(y.q-y.k),(e.y-y.n)/(y.z-y.n));t(r)&&Zf(this.d,r);Yf(this.d,(f.q-f.k)/(y.q-y.k),(f.z-f.n)/(y.z-
y.n));Xf(this.d,-0.5,-0.5);return a};function Ag(){this.a="precision mediump float;\n\nuniform float uBrightness;\nuniform float uContrast;\nuniform float uHue;\nuniform float uOpacity;\nuniform mat4 uMatrix;\nuniform float uSaturation;\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n\n vec4 texCoord = uMatrix * vec4(vTexCoord, 0., 1.);\n vec4 color = texture2D(uTexture, texCoord.st);\n\n if (uHue != 0.) {\n float angle = uHue * 3.14159265;\n float s = sin(angle), c = cos(angle);\n vec3 weights = (vec3(2. * c, -sqrt(3.) * s - c, sqrt(3.) * s - c)\n + 1.) / 3.;\n color.rgb = vec3(\n dot(color.rgb, weights.xyz),\n dot(color.rgb, weights.zxy),\n dot(color.rgb, weights.yzx)\n );\n }\n\n if (uSaturation != 0.) {\n float average = (color.r + color.g + color.b) / 3.;\n if (uSaturation > 0.) {\n color.rgb += (average - color.rgb)\n * (1. - 1. / (1. - uSaturation));\n } else {\n color.rgb += (average - color.rgb) * -uSaturation;\n }\n }\n\n color.rgb += uBrightness;\n\n if (uContrast != 0.) {\n if (uContrast > 0.) {\n color.rgb = (color.rgb - 0.5) / (1. - uContrast) + 0.5;\n } else {\n color.rgb = (color.rgb - 0.5) * (1. + uContrast) + 0.5;\n }\n }\n\n color.a = color.a * uOpacity;\n\n gl_FragColor = color;\n\n}"}
A(Ag,qg);ea(Ag);function Bg(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_Position = vec4(aPosition, 0., 1.);\n vTexCoord = aTexCoord;\n}"}A(Bg,rg);ea(Bg);
function Cg(a,b){$f.call(this,a,b);this.a=document.createElement("CANVAS");this.a.height=a.clientHeight;this.a.width=a.clientWidth;this.a.className="ol-unselectable";a.insertBefore(this.a,a.childNodes[0]||j);this.v=new Ma(a.clientHeight,a.clientWidth);this.b=ng(this.a,{alpha:l,antialias:i,depth:l,preserveDrawingBuffer:l,stencil:l});R(this.a,"webglcontextlost",this.Aa,l,this);R(this.a,"webglcontextrestored",this.Ac,l,this);this.f=new bf(1,1,1,1);this.o=this.p=j;this.h={};this.g={};this.m={};this.oa=
Ag.ta();this.qa=Bg.ta();this.B={};Dg(this)}A(Cg,$f);m=Cg.prototype;m.Ga=function(a){Cg.j.Ga.call(this,a);a.N()&&this.map.u()};
function zg(a,b){var c=a.b,d=b.src,e=a.m[d];t(e)?(c.bindTexture(3553,e.Rb),9729!=e.Cb&&(c.texParameteri(3553,10240,9729),e.Cb=9729),9729!=e.Db&&(c.texParameteri(3553,10240,9729),e.Db=9729)):(e=c.createTexture(),c.bindTexture(3553,e),c.texImage2D(3553,0,6408,6408,5121,b),c.texParameteri(3553,10240,9729),c.texParameteri(3553,10241,9729),c.texParameteri(3553,10242,33071),c.texParameteri(3553,10243,33071),a.m[d]={Rb:e,Cb:9729,Db:9729})}m.ba=Xd;m.Ta=function(a){return a instanceof eg?new wg(this,a):j};
m.r=function(){var a=this.b;a.isContextLost()||(F(this.g,function(b){a.deleteProgram(b)}),F(this.h,function(b){a.deleteShader(b)}),F(this.m,function(b){a.deleteTexture(b.Rb)}));Cg.j.r.call(this)};function yg(a,b,c){var d=w(b)+"/"+w(c);if(d in a.g)return a.g[d];var e=a.b,f=e.createProgram();e.attachShader(f,Eg(a,b));e.attachShader(f,Eg(a,c));e.linkProgram(f);return a.g[d]=f}
function Eg(a,b){var c=w(b);if(c in a.h)return a.h[c];var d=a.b,e=d.createShader(b.b());d.shaderSource(e,b.a);d.compileShader(e);return a.h[c]=e}m.rb=function(){var a=this.map.Sb();this.f=new bf(a.d/255,a.c/255,a.b/255,a.a/255);this.map.u()};m.ja=function(){Cg.j.ja.call(this);this.map.u()};m.tc=function(){this.map.u()};m.ka=function(){Cg.j.ka.call(this);this.map.u()};m.za=function(){Cg.j.za.call(this);this.map.u()};m.la=function(){Cg.j.la.call(this);this.map.u()};
m.Aa=function(a){a.w();this.o=this.p=j;this.h={};this.g={};this.m={};F(this.G,function(a){a.Aa()})};m.Ac=function(){Dg(this);this.map.u()};function Dg(a){a=a.b;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}m.ab=function(a){Cg.j.ab.call(this,a);a.N()&&this.map.u()};m.La=function(a){var b=Cg.j.La.call(this,a);b!==j&&(a=w(a),T(this.B[a]),delete this.B[a]);return b};
m.u=function(){if(!this.map.A())return l;var a=this.map.d();this.v.width==a.width&&this.v.height==a.height||(this.a.width=a.width,this.a.height=a.height,this.v=a);var b=l;cg(this,function(a,c){c.u()&&(b=i)});var c=this.b;c.bindFramebuffer(36160,j);c.clearColor(this.f.d,this.f.c,this.f.b,this.f.a);c.clear(16384);c.enable(3042);c.viewport(0,0,a.width,a.height);a=yg(this,this.oa,this.qa);c.useProgram(a);this.p===j&&(this.p={ea:c.getAttribLocation(a,"aPosition"),fa:c.getAttribLocation(a,"aTexCoord"),
Lc:c.getUniformLocation(a,"uBrightness"),Mc:c.getUniformLocation(a,"uContrast"),Nc:c.getUniformLocation(a,"uHue"),Oc:c.getUniformLocation(a,"uMatrix"),Pc:c.getUniformLocation(a,"uOpacity"),Qc:c.getUniformLocation(a,"uSaturation"),fb:c.getUniformLocation(a,"uTexture")});this.o===j?(a=c.createBuffer(),c.bindBuffer(34962,a),c.bufferData(34962,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),35044),this.o=a):c.bindBuffer(34962,this.o);c.enableVertexAttribArray(this.p.ea);c.vertexAttribPointer(this.p.ea,
2,5126,l,16,0);c.enableVertexAttribArray(this.p.fa);c.vertexAttribPointer(this.p.fa,2,5126,l,16,8);c.uniform1i(this.p.fb,0);cg(this,function(a,b){c.uniformMatrix4fv(this.p.Oc,l,b.d);c.uniform1f(this.p.Lc,a.c());c.uniform1f(this.p.Mc,a.d());c.uniform1f(this.p.Nc,a.e());c.uniform1f(this.p.Pc,a.b());c.uniform1f(this.p.Qc,a.f());c.bindTexture(3553,b.g);c.drawArrays(5,0,4)},this);return b};m.cb=function(a,b){Cg.j.cb.call(this,a,b);var c=w(a);this.B[c]=R(b,"change",this.tc,l,this)};var Fg={Xc:"dom",bd:"webgl"},Gg=["webgl","dom"],xg="postrender",ag="backgroundColor",yf="center",xf="layers",zf="resolution",bg="rotation",Af="size";
function $(a){var b,c;W.call(this);var d={};t(a.center)&&(d[yf]=a.center);d[xf]=t(a.layers)?a.layers:new Y;d.projection=fb(a.projection,"EPSG:3857");t(a.resolution)?d[zf]=a.resolution:t(a.zoom)&&(d[zf]=lb/(128<<a.zoom));d.userProjection=fb(a.userProjection,"EPSG:4326");c=$f;var e;e=t(a.renderers)?a.renderers:t(a.renderer)?[a.renderer]:Gg;var f;for(f=0;f<e.length;++f)if(b=e[f],"dom"==b){if(Xd()){c=ig;break}}else if("webgl"==b&&og()){c=Cg;break}if(t(a.resolutions)){var g=a.resolutions;e=function(a,
b){if(t(a)){var c=Fd(g,a),c=Ha(c+b,0,g.length-1);return g[c]}}}else{t(a.maxResolution)&&t(a.numZoomLevels)&&t(a.zoomFactor)?(e=a.maxResolution,f=a.numZoomLevels,b=a.zoomFactor):(e=lb/128,f=116,b=Math.exp(Math.log(2)/4));var k=b,r=e,u=f-1;e=function(a,b){if(t(a)){var c=Math.floor(Math.log(r/a)/Math.log(k)+0.5),c=Math.max(c+b,0);t(u)&&(c=Math.min(c,u));return r/Math.pow(k,c)}}}f=new df(e);t(a.controls)?e=a.controls:(e=new Y,e.push(new sf({})),e.push(new Bf({delta:t(a.zoomDelta)?a.zoomDelta:4})));if(t(a.interactions))b=
a.interactions;else{b=new Y;(t(a.rotate)?a.rotate:1)&&b.push(new Jf(Ef));if(t(a.doubleClickZoom)?a.doubleClickZoom:1)b.push(new Df(t(a.zoomDelta)?a.zoomDelta:4));(t(a.dragPan)?a.dragPan:1)&&b.push(new If(Ff));var p=t(a.keyboardPanOffset)?a.keyboardPanOffset:80;if(t(a.keyboard)?a.keyboard:1)b.push(new Of(p)),b.push(new Pf);if(t(a.mouseWheelZoom)?a.mouseWheelZoom:1)b.push(new Qf(t(a.mouseWheelZoomDelta)?a.mouseWheelZoomDelta:1));(t(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Mf(Gf))}a=v(a.target)?
document.getElementById(a.target):a.target;this.lb=jb;this.ib=eb;this.Mb=l;this.oa=this.m=0;this.na=l;this.qa=a;this.K=f;this.b=gd("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.qa.appendChild(this.b);this.v=gd("DIV","ol-overlaycontainer");R(this.v,["click",af?"touchstart":"mousedown"],Gc);this.b.appendChild(this.v);a=new kf(this);R(a,[mf,nf,pf,qf,of],this.Ib,l,this);Cc(this,a);a=new se(document);R(a,"key",
this.sb,l,this);Cc(this,a);a=new Re(this.b);R(a,"mousewheel",this.sb,l,this);Cc(this,a);this.o=e;R(this.o,"add",this.rc,l,this);R(this.o,"remove",this.sc,l,this);this.Ub=b;this.f=new c(this.b,this);Cc(this,this.f);this.$b=new ne;R(this.$b,"resize",this.tb,l,this);R(this,X("projection"),this.wc,l,this);R(this,X("userProjection"),this.zc,l,this);this.Za(d);this.tb();this.o.forEach(function(a){a.F(this)},this)}A($,W);$.prototype.r=function(){jd(this.b);$.j.r.call(this)};$.prototype.Sb=function(){return this.t(ag)};
$.prototype.getBackgroundColor=$.prototype.Sb;$.prototype.c=function(){return this.t(yf)};$.prototype.getCenter=$.prototype.c;$.prototype.Vb=da("o");function uf(a){if(a.A()){var b=a.c(),c=a.a(),a=a.d();return new Pa(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)}}$.prototype.Wb=da("Ub");function Lf(a,b){if(a.A()){var c=a.f;dg(c);var d=[b.x,b.y,0];Wf(c.c,d,d);return new ff(d[0],d[1])}}$.prototype.g=function(){return this.t("projection")};$.prototype.getProjection=$.prototype.g;
$.prototype.a=function(){return this.t(zf)};$.prototype.getResolution=$.prototype.a;function hg(a){var b=a.c(),c=a.a(),d=a.e()||0,e=a.d(),a=c*e.width/2,c=c*e.height/2,c=[new E(-a,-c),new E(-a,c),new E(a,-c),new E(a,c)];C(c,function(a){a.rotate(d);a.add(b)});return Qa.apply(j,c)}$.prototype.e=function(){return this.t(bg)||0};$.prototype.getRotation=$.prototype.e;$.prototype.d=function(){return this.t(Af)};$.prototype.getSize=$.prototype.d;$.prototype.Tb=function(){return this.t("userProjection")};
$.prototype.getUserProjection=$.prototype.Tb;m=$.prototype;m.sb=function(a,b){this.Ib(new gf(b||a.type,this,a))};m.rc=function(a){a.a.F(this)};m.sc=function(a){a.a.F(j)};m.Ib=function(a){var b=this.Ub.a;if(U(this,a)!==l)for(var c=b.length-1;0<=c&&!(b[c].b(a),a.wa);c--);};m.wc=function(){Hg(this)};m.zc=function(){Hg(this)};m.tb=function(){this.kb(new Ma(this.qa.clientWidth,this.qa.clientHeight))};m.A=function(){var a;if(a=this.c()!=j)if(a=t(this.a()))a=this.d()!=j;return a};
function Hg(a){var b=a.g(),c=a.Tb();b!=j&&c!=j?(a.ib=ib(b,c),a.lb=ib(c,b)):(a.ib=eb,a.lb=jb)}m.u=function(){1>this.m&&(0===this.oa?$e(this):this.na=i)};function $e(a){var b=a.f.u();a.na=l;if(b!=a.Mb){if(b){if(1==++a.m){var c=w(a);c in Xe||(Xe[c]=a);Ze()}}else 0===--a.m&&(c=w(a),delete Xe[c],Ua(Xe)&&Ye&&We(Ye));a.Mb=b}U(a,xg)}m.rotate=function(a,b){a=this.K.a(a,b);this.Ka(a)};m.Kc=function(a){this.set(ag,a)};$.prototype.setBackgroundColor=$.prototype.Kc;$.prototype.h=function(a){this.set(yf,a)};
$.prototype.setCenter=$.prototype.h;$.prototype.Yb=function(a){this.set(xf,a)};$.prototype.setLayers=$.prototype.Yb;$.prototype.Xb=function(a){this.set("projection",a)};$.prototype.setProjection=$.prototype.Xb;$.prototype.B=function(a){this.set(zf,a)};$.prototype.setResolution=$.prototype.B;$.prototype.Ka=function(a){this.set(bg,a)};$.prototype.setRotation=$.prototype.Ka;$.prototype.kb=function(a){this.set(Af,a)};$.prototype.setSize=$.prototype.kb;
$.prototype.Zb=function(a){this.set("userProjection",a)};$.prototype.setUserProjection=$.prototype.Zb;function Nf(a,b,c){++a.oa;try{b.call(c)}finally{0===--a.oa&&(1>a.m&&a.na)&&$e(a)}}$.prototype.zoom=function(a,b){var c=this.K.resolution(this.a(),a);if(c!=j&&b!=j){var d=this.c(),e=this.a(),f=new E(b.x-c*(b.x-d.x)/e,b.y-c*(b.y-d.y)/e);Nf(this,function(){this.h(f);this.B(c)},this)}else this.B(c)};function Ig(a){var b=gd("DIV",{"class":"ol-mouse-position"});rf.call(this,{element:b,map:a.map,target:a.target});this.h=a.projection;this.e=a.coordinateFormat;this.d=t(a.undefinedHtml)?a.undefinedHtml:"";this.c=jb;this.b=[];this.f()}A(Ig,rf);Ig.prototype.f=function(){Jg(this);this.element.innerHTML=this.d};Ig.prototype.m=function(a){var b=this.a,a=Je(a,b.b),b=b.A()?jf(b.f,new ff(a.x,a.y)):j;b===j?b=this.d:(b=this.c(b),b=t(this.e)?this.e(b):b.toString());this.element.innerHTML=b};
Ig.prototype.o=function(){this.element.innerHTML=this.d};Ig.prototype.F=function(a){this.b!==j&&(C(this.b,T),this.b=j);Ig.j.F.call(this,a);if(a!==j){var b=a.b;this.v=[R(a,X("projection"),this.f,l,this),R(b,"mousemove",this.m,l,this),R(b,"mouseout",this.o,l,this)];Jg(this)}};function Jg(a){var b=a.a;b===j?a.c=jb:(b=b.g(),a.c=!t(b)||!t(a.h)?jb:ib(b,a.h))};function Kg(){this.a={}}A(Kg,Cf);Kg.prototype.c=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Kg.prototype.b=function(a){if("key"==a.type){var b=this.a[a.a.ua];b&&(b(),a.w())}};function Lg(a){this.c=this.a=this.e=j;this.d=[Mg,Ng];this.f=[];t(a.coordinate)&&this.h(a.coordinate);t(a.element)&&Og(this,a.element);t(a.map)&&this.g(a.map);t(a.positioning)&&(this.d=a.positioning,this.b())}Lg.prototype.h=function(a){this.e=a;this.b()};function Og(a,b){a.a&&jd(a.a);a.a=b;a.c&&(Ae(a.a,"position","absolute"),id(a.c.v,a.a));a.b()}Lg.prototype.m=da("a");
Lg.prototype.g=function(a){this.c=a;C(this.f,T);this.a&&Og(this,this.a);this.f=a?[R(a,X(yf),this.b,l,this),R(a,X(zf),this.b,l,this),R(a,X(bg),this.b,l,this),R(a,X(Af),this.b,l,this)]:[];this.b()};Lg.prototype.b=function(){if(this.c!==j&&this.e!==j&&this.a!==j){var a=Lf(this.c,this.e),b=this.c.t(Af),c=Math.round(a.x);this.d[0]===Pg&&(c=b.width-c);a=Math.round(a.y);this.d[1]===Ng&&(a=b.height-a);Ae(this.a,this.d[0],c+"px");Ae(this.a,this.d[1],a+"px")}};var Mg="left",Pg="right",Ng="bottom";function Qg(a){var b=a.projection||gb("EPSG:3857"),c=Td;t(a.L)?c=a.L:t(a.urls)?c=Sd(Aa(a.urls,Rd)):t(a.url)&&(c=Rd(a.url));var d=new be({maxZoom:a.maxZoom}),e=a.extent,c=e!=j?Ud(function(b){if(a.maxZoom<b.i)return j;var c=1<<b.i,k=-b.y-1;if(0>k||c<=k)return j;c=Ia(b.x,c);return!Oa(Hd(d,new V(b.i,c,b.y)),e)?j:new V(b.i,c,k)},c):Ud(function(b){if(a.maxZoom<b.i)return j;var c=1<<b.i,d=-b.y-1;return 0>d||c<=d?j:new V(b.i,Ia(b.x,c),d)},c);$d.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
extent:a.extent,projection:b,tileGrid:d,L:c})}A(Qg,$d);function Rg(){Qg.call(this,{attributions:[new sb('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new sb('Data &copy; <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}A(Rg,Qg);
function Sg(){Qg.call(this,{attributions:[new sb('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new sb("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}A(Sg,Qg);function Tg(){Qg.call(this,{attributions:[new sb('&copy; <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}A(Tg,Qg);var Ug={terrain:{type:"jpg",Eb:4,maxZoom:18},toner:{type:"png",Eb:0,maxZoom:20},watercolor:{type:"jpg",Eb:3,maxZoom:16}};
function Vg(a){var b=new sb('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'),c=a.Ic;t(a.gc)&&(c+="-"+a.gc);a=Ug[a.Ic];Qg.call(this,{attributions:[b],maxZoom:a.maxZoom,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}A(Vg,Qg);var Wg=[];z("grid",function(a){Wg.push(a)});function Xg(a){$d.call(this,{projection:gb("EPSG:3857")});this.c=l;a=this.e=rd(a.uri,{nb:i});a.a.push([this.f,j,this]);a.R&&nd(a)}A(Xg,$d);
Xg.prototype.f=function(){var a=Wg.pop(),b=gb("EPSG:4326"),c,d;t(a.bounds)?(c=a.bounds,c=new Pa(c[0],c[1],c[2],c[3]),this.g=d=c.transform(ib(b,this.h))):d=c=j;var e=a.minzoom||0,f=a.maxzoom||22,g=new be({maxZoom:f});this.tileGrid=g;this.L=Ud(function(a){if(a.i<e||f<a.i)return j;var b=1<<a.i,c=-a.y-1;if(0>c||b<=c)return j;b=Ia(a.x,b);return d!==j&&!Oa(Hd(g,new V(a.i,b,a.y)),d)?j:new V(a.i,b,c)},Sd(Aa(a.tiles,Rd)));t(a.attribution)&&(this.a=[new sb(a.attribution,[new Md(g,c,e,f)],b)]);this.c=i;U(this,
"load")};Xg.prototype.V=da("c");function Yg(a){var b=fb(a.projection,"EPSG:3857"),c=b.b,d=t(a.extent)?a.extent:c,e=t(a.version)?a.version:"1.3",f=a.tileGrid;if(!t(f)){Math.max(c.q-c.k,c.z-c.n);for(var g=Array((t(a.maxZoom)?a.maxZoom:18)+1),k=0,r=g.length;k<r;++k)g[k]=lb/(128<<k);f=new Gd({origin:new E(c.k,c.z),resolutions:g})}$d.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:f,projection:b,L:Ud(function(a){if(f.a.length<=a.i)return j;var b=a.x,e=Hd(f,a);d.k===c.k&&d.q===c.q&&(e=Math.ceil((d.q-
d.k)/(e.q-e.k)),b=Ia(b,e),e=Hd(f,new V(a.i,b,a.y)));return!Oa(e,d)?j:new V(a.i,b,a.y)},function(c){if(c!==j){var d=f.b,g=Hd(f,c),d={SERVICE:"WMS",VERSION:e,REQUEST:"GetMap",WIDTH:d.width,HEIGHT:d.height,STYLES:"",FORMAT:"image/png",TRANSPARENT:i,BBOX:[g.k,g.n,g.q,g.z].join()};d["1.3"<=e?"CRS":"SRS"]=b.a;Wa(d,a.params);var c=a.urls?a.urls[Ia(c.hash(),a.urls.length)]:a.url,k;for(k in d)c+=(~c.indexOf("?")?"&":"?")+k+"="+encodeURIComponent(d[k]);return c}})})}A(Yg,$d);z("goog.require",s);z("ol.Attribution",sb);z("ol.BingMapsStyle",ce);ce.AERIAL="Aerial";ce.AERIAL_WITH_LABELS="AerialWithLabels";ce.COLLINS_BART="CollinsBart";ce.ORDNANCE_SURVEY="OrdnanceSurvey";ce.ROAD="Road";z("ol.Collection",Y);Y.prototype.clear=Y.prototype.clear;Y.prototype.forEach=Y.prototype.forEach;Y.prototype.getArray=Y.prototype.hc;Y.prototype.getAt=Y.prototype.ic;Y.prototype.getLength=Y.prototype.qb;Y.prototype.insertAt=Y.prototype.Ba;Y.prototype.pop=Y.prototype.Hb;Y.prototype.push=Y.prototype.push;
Y.prototype.removeAt=Y.prototype.Lb;Y.prototype.setAt=Y.prototype.Jc;z("ol.Coordinate",E);E.toStringHDMS=function(a){return t(a)?Ka(a.y,"NS")+" "+Ka(a.x,"EW"):""};z("ol.Extent",Pa);
function Zg(a){$.call(this,{center:a.center,controls:a.controls,doubleClickZoom:a.doubleClickZoom,dragPan:a.dragPan,interactions:a.interactions,keyboard:a.keyboard,keyboardPanOffset:a.keyboardPanOffset,layers:a.layers,maxResolution:a.maxResolution,mouseWheelZoom:a.mouseWheelZoom,mouseWheelZoomDelta:a.mouseWheelZoomDelta,numZoomLevels:a.numZoomLevels,projection:a.projection,renderer:a.renderer,renderers:a.renderers,resolution:a.resolution,resolutions:a.resolutions,rotate:a.rotate,shiftDragZoom:a.shiftDragZoom,
target:a.target,userProjection:a.userProjection,zoom:a.zoom,zoomDelta:a.zoomDelta,zoomFactor:a.zoomFactor})}A(Zg,$);z("ol.Map",Zg);$.prototype.getControls=$.prototype.Vb;$.prototype.getInteractions=$.prototype.Wb;gf.prototype.getCoordinate=gf.prototype.c;z("ol.Object",W);W.prototype.bindTo=W.prototype.ac;W.prototype.changed=W.prototype.dc;W.prototype.get=W.prototype.t;W.prototype.notify=W.prototype.Gb;W.prototype.set=W.prototype.set;W.prototype.setOptions=W.prototype.Ob;W.prototype.setValues=W.prototype.Za;
W.prototype.unbind=W.prototype.gb;W.prototype.unbindAll=W.prototype.Sc;z("ol.Projection",G);G.addProjection=cb;G.getFromCode=gb;G.getTransform=ib;G.getTransformFromCodes=kb;G.transform=function(a,b,c){return ib(b,c)(a)};G.transformWithCodes=function(a,b,c){return kb(b,c)(a)};G.prototype.getCode=G.prototype.d;G.prototype.getExtent=G.prototype.f;G.prototype.getUnits=G.prototype.e;z("ol.ProjectionUnits",Xa);Xa.DEGREES="degrees";Xa.METERS="m";z("ol.RendererHint",Fg);Fg.DOM="dom";Fg.WEBGL="webgl";
function $g(a){sf.call(this,{map:a.map,target:a.target})}A($g,sf);z("ol.control.Attribution",$g);function ah(a){Ig.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHtml:a.undefinedHtml})}A(ah,Ig);z("ol.control.MousePosition",ah);function bh(a){Bf.call(this,{delta:a.delta,map:a.map,target:a.target})}A(bh,Bf);z("ol.control.Zoom",bh);z("ol.interaction.Keyboard",Kg);Kg.prototype.addCallback=Kg.prototype.c;
function ch(a){Z.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}A(ch,eg);z("ol.layer.TileLayer",ch);function dh(a){Lg.call(this,{coordinate:a.coordinate,element:a.element,map:a.map,positioning:a.positioning})}A(dh,Lg);z("ol.overlay.Overlay",dh);Lg.prototype.getElement=Lg.prototype.m;Lg.prototype.setCoordinate=Lg.prototype.h;Lg.prototype.setMap=Lg.prototype.g;z("ol.source.BingMaps",de);
z("ol.source.MapQuestOSM",Rg);z("ol.source.MapQuestOpenAerial",Sg);z("ol.source.OpenStreetMap",Tg);z("ol.source.Stamen",Vg);z("ol.source.TileJSON",Xg);z("ol.source.TiledWMS",Yg);})();