Files
openlayers/master/build/ol.js
Tom Payne 1f8c98db8c Update
2012-10-18 11:50:40 +02:00

140 lines
81 KiB
JavaScript

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