Files
openlayers/master/build/ol.js
Éric Lemoine ef9db32dda Updated
2013-03-15 10:38:51 +01:00

297 lines
164 KiB
JavaScript

(function(){function aa(a){throw a;}var g=void 0,i=!0,k=null,l=!1;function ba(){return function(a){return a}}function n(a){return function(){return this[a]}}function ca(a){return function(){return a}}var p,r=this;function da(){}function fa(a){a.lb=function(){return a.Tc?a.Tc:a.Tc=new a}}
function ga(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 x(a){return a!==g}function ha(a){return"array"==ga(a)}function ia(a){var b=ga(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ja(a){return"string"==typeof a}function ka(a){return"function"==ga(a)}function la(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function z(a){return a[na]||(a[na]=++oa)}var na="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),oa=0;
function pa(a,b,c){return a.call.apply(a.bind,arguments)}function qa(a,b,c){a||aa(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 ra(a,b,c){ra=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?pa:qa;return ra.apply(k,arguments)}
function sa(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 ta=Date.now||function(){return+new Date};function C(a,b){var c=a.split("."),d=r;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&x(b)?d[e]=b:d=d[e]?d[e]:d[e]={}}function D(a,b){function c(){}c.prototype=b.prototype;a.z=b.prototype;a.prototype=new c};function ua(a){Error.captureStackTrace?Error.captureStackTrace(this,ua):this.stack=Error().stack||"";a&&(this.message=String(a))}D(ua,Error);ua.prototype.name="CustomError";function va(a){if(!xa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ya,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(za,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ba,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ca,"&quot;"));return a}var ya=/&/g,za=/</g,Ba=/>/g,Ca=/\"/g,xa=/[&<>\"]/;var Da=Array.prototype,Fa=Da.indexOf?function(a,b,c){return Da.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ja(a))return!ja(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},F=Da.forEach?function(a,b,c){Da.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ja(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Ga=Da.map?function(a,b,c){return Da.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=
ja(a)?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));return e},Ha=Da.some?function(a,b,c){return Da.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ja(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 Ja(a,b,c){for(var d=a.length,e=ja(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1}function La(a){if(!ha(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}
function Ma(a,b){var c=Fa(a,b),d;(d=0<=c)&&Da.splice.call(a,c,1);return d}function Na(a){return Da.concat.apply(Da,arguments)}function Oa(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 Pa(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(ha(d)||(e=ia(d))&&d.hasOwnProperty("callee"))a.push.apply(a,d);else if(e)for(var f=a.length,h=d.length,j=0;j<h;j++)a[f+j]=d[j];else a.push(d)}}function Qa(a,b,c,d){Da.splice.apply(a,Ra(arguments,1))}
function Ra(a,b,c){return 2>=arguments.length?Da.slice.call(a,b):Da.slice.call(a,b,c)}function Sa(a){Da.sort.call(a,Ta)}function Ta(a,b){return a>b?1:a<b?-1:0};function Ua(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Va(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Wa(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Xa(a){for(var b in a)return l;return i}function Ya(a){var b={},c;for(c in a)b[c]=a[c];return b}var Za="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function $a(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<Za.length;f++)c=Za[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function ab(a){if("function"==typeof a.W)return a.W();if(ja(a))return a.split("");if(ia(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Va(a)};function bb(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){c%2&&aa(Error("Uneven number of arguments"));for(var d=0;d<c;d+=2)cb(this,arguments[d],arguments[d+1])}else if(a){a instanceof bb?(c=a.ba(),d=a.W()):(c=Wa(a),d=Va(a));for(var e=0;e<c.length;e++)cb(this,c[e],d[e])}}p=bb.prototype;p.o=0;p.qc=0;p.J=n("o");p.W=function(){db(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};p.ba=function(){db(this);return this.a.concat()};p.Wa=function(){return 0==this.o};
p.clear=function(){this.b={};this.qc=this.o=this.a.length=0};p.remove=function(a){return eb(this.b,a)?(delete this.b[a],this.o--,this.qc++,this.a.length>2*this.o&&db(this),i):l};function db(a){if(a.o!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];eb(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.o!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],eb(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function fb(a,b){return eb(a.b,b)?a.b[b]:g}
function cb(a,b,c){eb(a.b,b)||(a.o++,a.a.push(b),a.qc++);a.b[b]=c}p.V=function(){return new bb(this)};function eb(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var gb,hb,ib,jb,kb,lb,ob;function pb(){return r.navigator?r.navigator.userAgent:k}function qb(){return r.navigator}jb=ib=hb=gb=l;var rb;if(rb=pb()){var sb=qb();gb=0==rb.indexOf("Opera");hb=!gb&&-1!=rb.indexOf("MSIE");ib=!gb&&-1!=rb.indexOf("WebKit");jb=!gb&&!ib&&"Gecko"==sb.product}var tb=gb,G=hb,ub=jb,xb=ib,yb,zb=qb();yb=zb&&zb.platform||"";kb=-1!=yb.indexOf("Mac");lb=-1!=yb.indexOf("Win");ob=-1!=yb.indexOf("Linux");var Ab=!!qb()&&-1!=(qb().appVersion||"").indexOf("X11"),Bb;
a:{var Eb="",Fb;if(tb&&r.opera)var Gb=r.opera.version,Eb="function"==typeof Gb?Gb():Gb;else if(ub?Fb=/rv\:([^\);]+)(\)|;)/:G?Fb=/MSIE\s+([^\);]+)(\)|;)/:xb&&(Fb=/WebKit\/(\S+)/),Fb)var Hb=Fb.exec(pb()),Eb=Hb?Hb[1]:"";if(G){var Ib,Jb=r.document;Ib=Jb?Jb.documentMode:g;if(Ib>parseFloat(Eb)){Bb=String(Ib);break a}}Bb=Eb}var Kb={};
function Lb(a){var b;if(!(b=Kb[a])){b=0;for(var c=String(Bb).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 h=c[f]||"",j=d[f]||"",m=RegExp("(\\d*)(\\D*)","g"),q=RegExp("(\\d*)(\\D*)","g");do{var v=m.exec(h)||["","",""],s=q.exec(j)||["","",""];if(0==v[0].length&&0==s[0].length)break;b=((0==v[1].length?0:parseInt(v[1],10))<(0==s[1].length?0:parseInt(s[1],10))?-1:(0==v[1].length?0:parseInt(v[1],
10))>(0==s[1].length?0:parseInt(s[1],10))?1:0)||((0==v[2].length)<(0==s[2].length)?-1:(0==v[2].length)>(0==s[2].length)?1:0)||(v[2]<s[2]?-1:v[2]>s[2]?1:0)}while(0==b)}b=Kb[a]=0<=b}return b}var Mb={};function Nb(a){return Mb[a]||(Mb[a]=G&&!!document.documentMode&&document.documentMode>=a)};var Ob,Pb=!G||Nb(9);!ub&&!G||G&&Nb(9)||ub&&Lb("1.9.1");G&&Lb("9");function Qb(a,b){var c;c=a.className;c=ja(c)&&c.match(/\S+/g)||[];for(var d=Ra(arguments,1),e=c.length+d.length,f=c,h=0;h<d.length;h++)0<=Fa(f,d[h])||f.push(d[h]);a.className=c.join(" ");return c.length==e};function Rb(a,b,c){return Math.min(Math.max(a,b),c)}function Sb(a,b){var c=a%b;return 0>c*b?c+b:c};function Tb(a,b){this.x=x(a)?a:0;this.y=x(b)?b:0}Tb.prototype.V=function(){return new Tb(this.x,this.y)};function Ub(a,b){this.width=a;this.height=b}p=Ub.prototype;p.V=function(){return new Ub(this.width,this.height)};p.Wa=function(){return!(this.width*this.height)};p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Vb(a){return a?new Zb($b(a)):Ob||(Ob=new Zb)}function ac(a,b){Ua(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in bc?a.setAttribute(bc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var bc={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 cc(a){a=a.document.documentElement;return new Ub(a.clientWidth,a.clientHeight)}function dc(a,b,c){var d=arguments,e=document,f=d[0],h=d[1];if(!Pb&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',va(h.name),'"');if(h.type){f.push(' type="',va(h.type),'"');var j={};$a(j,h);delete j.type;h=j}f.push(">");f=f.join("")}f=e.createElement(f);h&&(ja(h)?f.className=h:ha(h)?Qb.apply(k,[f].concat(h)):ac(f,h));2<d.length&&ec(e,f,d,2);return f}
function ec(a,b,c,d){function e(c){c&&b.appendChild(ja(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(ia(f)&&!(la(f)&&0<f.nodeType)){var h=F,j;a:{if((j=f)&&"number"==typeof j.length){if(la(j)){j="function"==typeof j.item||"string"==typeof j.item;break a}if(ka(j)){j="function"==typeof j.item;break a}}j=l}h(j?Oa(f):f,e)}else e(f)}}function fc(a){return document.createElement(a)}function gc(a,b){ec($b(a),a,arguments,1)}function hc(a){for(var b;b=a.firstChild;)a.removeChild(b)}
function ic(a,b){a.insertBefore(b,a.childNodes[0]||k)}function jc(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function kc(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function $b(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Zb(a){this.a=a||r.document||document}Zb.prototype.createElement=function(a){return this.a.createElement(a)};Zb.prototype.createTextNode=function(a){return this.a.createTextNode(a)};function lc(){return i}
function mc(a){var b=a.a,a=!xb?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new Tb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Zb.prototype.appendChild=function(a,b){a.appendChild(b)};Zb.prototype.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var qc=!G||Nb(9),rc=!G||Nb(9),sc=G&&!Lb("9");!xb||Lb("528");ub&&Lb("1.9b")||G&&Lb("8")||tb&&Lb("9.5")||xb&&Lb("528");ub&&!Lb("8")||G&&Lb("9");function tc(){0!=uc&&(this.sf=Error().stack,vc[z(this)]=this)}var uc=0,vc={};tc.prototype.hc=l;tc.prototype.Sb=function(){if(!this.hc&&(this.hc=i,this.r(),0!=uc)){var a=z(this);delete vc[a]}};function wc(a,b){a.vb||(a.vb=[]);a.vb.push(b)}tc.prototype.r=function(){this.vb&&xc.apply(k,this.vb);if(this.od)for(;this.od.length;)this.od.shift()()};function yc(a){a&&"function"==typeof a.Sb&&a.Sb()}function xc(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ia(d)?xc.apply(k,d):yc(d)}};function zc(a,b){this.type=a;this.b=this.target=b}p=zc.prototype;p.Sb=function(){};p.Ga=l;p.rb=l;p.Jb=i;p.Zb=function(){this.Ga=i};p.A=function(){this.rb=i;this.Jb=l};function Ac(a){a.Zb()}function Bc(a){a.A()};function Cc(a){Cc[" "](a);return a}Cc[" "]=da;function Dc(a,b){a&&Ec(this,a,b)}D(Dc,zc);var Fc=[1,4,2];p=Dc.prototype;p.target=k;p.Td=k;p.Rd=0;p.Sd=0;p.clientX=0;p.clientY=0;p.Xb=0;p.Yb=0;p.Pd=0;p.Ia=0;p.pb=0;p.qb=l;p.na=l;p.Ca=l;p.Qd=l;p.Gb=l;p.L=k;
function Ec(a,b,c){var d=a.type=b.type;zc.call(a,d);a.target=b.target||b.srcElement;a.b=c;if(c=b.relatedTarget){if(ub){var e;a:{try{Cc(c.nodeName);e=i;break a}catch(f){}e=l}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.Td=c;a.Rd=xb||b.offsetX!==g?b.offsetX:b.layerX;a.Sd=xb||b.offsetY!==g?b.offsetY:b.layerY;a.clientX=b.clientX!==g?b.clientX:b.pageX;a.clientY=b.clientY!==g?b.clientY:b.pageY;a.Xb=b.screenX||0;a.Yb=b.screenY||0;a.Pd=b.button;a.Ia=b.keyCode||0;a.pb=b.charCode||
("keypress"==d?b.keyCode:0);a.qb=b.ctrlKey;a.na=b.altKey;a.Ca=b.shiftKey;a.Qd=b.metaKey;a.Gb=kb?b.metaKey:b.ctrlKey;a.a=b.state;a.L=b;b.defaultPrevented&&a.A();delete a.Ga}function Gc(a){return(qc?0==a.L.button:"click"==a.type?i:!!(a.L.button&Fc[0]))&&!(xb&&kb&&a.qb)}p.Zb=function(){Dc.z.Zb.call(this);this.L.stopPropagation?this.L.stopPropagation():this.L.cancelBubble=i};
p.A=function(){Dc.z.A.call(this);var a=this.L;if(a.preventDefault)a.preventDefault();else if(a.returnValue=l,sc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};p.Kd=n("L");function Hc(){}var Ic=0;Hc.prototype.key=0;Hc.prototype.La=l;Hc.prototype.a=l;Hc.prototype.handleEvent=function(a){return this.b?this.Xa.call(this.fc||this.src,a):this.Xa.handleEvent.call(this.Xa,a)};var Jc={},Kc={},Lc={},Mc={};
function I(a,b,c,d,e){if(b){if(ha(b)){for(var f=0;f<b.length;f++)I(a,b[f],c,d,e);return k}var d=!!d,h=Kc;b in h||(h[b]={o:0,Y:0});h=h[b];d in h||(h[d]={o:0,Y:0},h.o++);var h=h[d],j=z(a),m;h.Y++;if(h[j]){m=h[j];for(f=0;f<m.length;f++)if(h=m[f],h.Xa==c&&h.fc==e){if(h.La)break;return m[f].key}}else m=h[j]=[],h.o++;var q=Nc,v=rc?function(a){return q.call(v.src,v.key,a)}:function(a){a=q.call(v.src,v.key,a);if(!a)return a},f=v;f.src=a;var s=h=new Hc;ka(c)?s.b=i:c&&c.handleEvent&&ka(c.handleEvent)?s.b=l:
aa(Error("Invalid listener argument"));s.Xa=c;s.c=f;s.src=a;s.type=b;s.capture=!!d;s.fc=e;s.a=l;s.key=++Ic;s.La=l;c=h.key;f.key=c;m.push(h);Jc[c]=h;Lc[j]||(Lc[j]=[]);Lc[j].push(h);a.addEventListener?(a==r||!a.Bc)&&a.addEventListener(b,f,d):a.attachEvent(b in Mc?Mc[b]:Mc[b]="on"+b,f);return c}aa(Error("Invalid event type"))}function Oc(a,b,c,d,e){if(ha(b)){for(var f=0;f<b.length;f++)Oc(a,b[f],c,d,e);return k}a=I(a,b,c,d,e);Jc[a].a=i;return a}
function Uc(a,b,c,d,e){if(ha(b))for(var f=0;f<b.length;f++)Uc(a,b[f],c,d,e);else{d=!!d;a:{f=Kc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=z(a),f[a]))){a=f[a];break a}a=k}if(a)for(f=0;f<a.length;f++)if(a[f].Xa==c&&a[f].capture==d&&a[f].fc==e){J(a[f].key);break}}}
function J(a){if(!Jc[a])return l;var b=Jc[a];if(b.La)return l;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==r||!c.Bc)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in Mc?Mc[d]:Mc[d]="on"+d,e);c=z(c);Lc[c]&&(e=Lc[c],Ma(e,b),0==e.length&&delete Lc[c]);b.La=i;if(b=Kc[d][f][c])b.Xc=i,Vc(d,f,c,b);delete Jc[a];return i}
function Vc(a,b,c,d){if(!d.Cb&&d.Xc){for(var e=0,f=0;e<d.length;e++)d[e].La?d[e].c.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.Xc=l;0==f&&(delete Kc[a][b][c],Kc[a][b].o--,0==Kc[a][b].o&&(delete Kc[a][b],Kc[a].o--),0==Kc[a].o&&delete Kc[a])}}function Wc(a,b,c,d,e){var f=1,b=z(b);if(a[b]){a.Y--;a=a[b];a.Cb?a.Cb++:a.Cb=1;try{for(var h=a.length,j=0;j<h;j++){var m=a[j];m&&!m.La&&(f&=Xc(m,e)!==l)}}finally{a.Cb--,Vc(c,d,b,a)}}return Boolean(f)}function Xc(a,b){a.a&&J(a.key);return a.handleEvent(b)}
function K(a,b){var c=b.type||b,d=Kc;if(!(c in d))return i;if(ja(b))b=new zc(b,a);else if(b instanceof zc)b.target=b.target||a;else{var e=b,b=new zc(c,a);$a(b,e)}var e=1,f,d=d[c],c=i in d,h;if(c){f=[];for(h=a;h;h=h.ic)f.push(h);h=d[i];h.Y=h.o;for(var j=f.length-1;!b.Ga&&0<=j&&h.Y;j--)b.b=f[j],e&=Wc(h,f[j],b.type,i,b)&&b.Jb!=l}if(l in d)if(h=d[l],h.Y=h.o,c)for(j=0;!b.Ga&&j<f.length&&h.Y;j++)b.b=f[j],e&=Wc(h,f[j],b.type,l,b)&&b.Jb!=l;else for(d=a;!b.Ga&&d&&h.Y;d=d.ic)b.b=d,e&=Wc(h,d,b.type,l,b)&&b.Jb!=
l;return Boolean(e)}
function Nc(a,b){if(!Jc[a])return i;var c=Jc[a],d=c.type,e=Kc;if(!(d in e))return i;var e=e[d],f,h;if(!rc){var j;if(!(j=b))a:{j=["window","event"];for(var m=r;f=j.shift();)if(m[f]!=k)m=m[f];else{j=k;break a}j=m}f=j;j=i in e;m=l in e;if(j){if(0>f.keyCode||f.returnValue!=g)return i;a:{var q=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(v){q=i}if(q||f.returnValue==g)f.returnValue=i}}q=new Dc;Ec(q,f,this);f=i;try{if(j){for(var s=[],A=q.b;A;A=A.parentNode)s.push(A);h=e[i];h.Y=h.o;for(var u=s.length-
1;!q.Ga&&0<=u&&h.Y;u--)q.b=s[u],f&=Wc(h,s[u],d,i,q);if(m){h=e[l];h.Y=h.o;for(u=0;!q.Ga&&u<s.length&&h.Y;u++)q.b=s[u],f&=Wc(h,s[u],d,l,q)}}else f=Xc(c,q)}finally{s&&(s.length=0)}return f}d=new Dc(b,this);return f=Xc(c,d)};function Yc(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}Yc.prototype.V=function(){return new Yc(this.top,this.right,this.bottom,this.left)};Yc.prototype.contains=function(a){return!this||!a?l:a instanceof Yc?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function Zc(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}Zc.prototype.V=function(){return new Zc(this.left,this.top,this.width,this.height)};Zc.prototype.ha=function(a){return this.left<=a.left+a.width&&a.left<=this.left+this.width&&this.top<=a.top+a.height&&a.top<=this.top+this.height};
Zc.prototype.contains=function(a){return a instanceof Zc?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};function $c(a,b){var c=$b(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function ad(a,b){return $c(a,b)||(a.currentStyle?a.currentStyle[b]:k)||a.style&&a.style[b]}function bd(a,b,c){var d,e=ub&&(kb||Ab)&&Lb("1.9");b instanceof Tb?(d=b.x,b=b.y):(d=b,b=c);a.style.left=cd(d,e);a.style.top=cd(b,e)}
function dd(a){var b=a.getBoundingClientRect();G&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function ed(a){if(G&&!Nb(8))return a.offsetParent;for(var b=$b(a),c=ad(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=ad(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 k}
function fd(a){var b,c=$b(a),d=ad(a,"position"),e=ub&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new Tb(0,0),h;b=c?$b(c):document;h=G&&!Nb(9)&&!lc(Vb(b))?b.body:b.documentElement;if(a==h)return f;if(a.getBoundingClientRect)b=dd(a),a=mc(Vb(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(h),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{b=a;do{f.x+=b.offsetLeft;f.y+=
b.offsetTop;b!=a&&(f.x+=b.clientLeft||0,f.y+=b.clientTop||0);if(xb&&"fixed"==ad(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(tb||xb&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=ed(b))&&b!=c.body&&b!=h;)if(f.x-=b.scrollLeft,!tb||"TR"!=b.tagName)f.y-=b.scrollTop}return f}function gd(a,b){var c=hd(a),d=hd(b);return new Tb(c.x-d.x,c.y-d.y)}
function hd(a){var b=new Tb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=dd(a);b.x=c.left;b.y=c.top}else{var c=mc(Vb(a)),d=fd(a);b.x=d.x-c.x;b.y=d.y-c.y}if(ub&&!Lb(12)){var e;G?e="-ms-transform":xb?e="-webkit-transform":tb?e="-o-transform":ub&&(e="-moz-transform");var f;e&&(f=ad(a,e));f||(f=ad(a,"transform"));f?(a=f.match(id),a=!a?new Tb(0,0):new Tb(parseFloat(a[1]),parseFloat(a[2]))):a=new Tb(0,0);b=new Tb(b.x+a.x,b.y+a.y)}}else e=ka(a.Kd),f=a,a.targetTouches?f=a.targetTouches[0]:e&&a.L.targetTouches&&
(f=a.L.targetTouches[0]),b.x=f.clientX,b.y=f.clientY;return b}function cd(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function jd(a){if("none"!=ad(a,"display"))return kd(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=kd(a);b.display=c;b.position=e;b.visibility=d;return a}
function kd(a){var b=a.offsetWidth,c=a.offsetHeight,d=xb&&!b&&!c;return(!x(b)||d)&&a.getBoundingClientRect?(a=dd(a),new Ub(a.right-a.left,a.bottom-a.top)):new Ub(b,c)}function ld(a,b){a.style.display=b?"":"none"}function md(a){return"rtl"==ad(a,"direction")}
function nd(a,b){var c=lc(Vb($b(a)));if(G&&(!c||!Lb("8"))){var d=a.style;if(c){var c=od(a,"padding"),e=pd(a);d.pixelWidth=b.width-e.left-c.left-c.right-e.right;d.pixelHeight=b.height-e.top-c.top-c.bottom-e.bottom}else d.pixelWidth=b.width,d.pixelHeight=b.height}else d=a.style,ub?d.MozBoxSizing="border-box":xb?d.WebkitBoxSizing="border-box":d.boxSizing="border-box",d.width=Math.max(b.width,0)+"px",d.height=Math.max(b.height,0)+"px"}
function qd(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b}function rd(a,b){return qd(a,a.currentStyle?a.currentStyle[b]:k,"left","pixelLeft")}
function od(a,b){if(G){var c=rd(a,b+"Left"),d=rd(a,b+"Right"),e=rd(a,b+"Top"),f=rd(a,b+"Bottom");return new Yc(e,d,f,c)}c=$c(a,b+"Left");d=$c(a,b+"Right");e=$c(a,b+"Top");f=$c(a,b+"Bottom");return new Yc(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))}var sd={thin:2,medium:4,thick:6};function td(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:k))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:k;return c in sd?sd[c]:qd(a,c,"left","pixelLeft")}
function pd(a){if(G){var b=td(a,"borderLeft"),c=td(a,"borderRight"),d=td(a,"borderTop"),a=td(a,"borderBottom");return new Yc(d,c,a,b)}b=$c(a,"borderLeftWidth");c=$c(a,"borderRightWidth");d=$c(a,"borderTopWidth");a=$c(a,"borderBottomWidth");return new Yc(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var id=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function ud(a,b){this.x=a;this.y=b}D(ud,Tb);ud.prototype.V=function(){return new ud(this.x,this.y)};ud.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 L(a,b){ud.call(this,a,b)}D(L,ud);function vd(a,b){var c=Sb(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 wd(a,b){if(x(a)){var c=b||0;return a.x.toFixed(c)+", "+a.y.toFixed(c)}return""}function xd(a,b){var c=b.charAt(0);return"n"===c||"s"===c?new L(a[1],a[0]):new L(a[0],a[1])};var yd=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function zd(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=g)}return a.join("")}function Ad(a,b,c){if(ha(b))for(var d=0;d<b.length;d++)Ad(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}
function Bd(a,b){for(var c in b)Ad(c,b[c],a);return a};function Cd(a,b){var c;if(a instanceof Cd)this.Aa=x(b)?b:a.Aa,Dd(this,a.Ma),c=a.Nb,Ed(this),this.Nb=c,c=a.Na,Ed(this),this.Na=c,Fd(this,a.Hb),c=a.Fb,Ed(this),this.Fb=c,Gd(this,a.a.V()),c=a.jb,Ed(this),this.jb=c;else if(a&&(c=String(a).match(yd))){this.Aa=!!b;Dd(this,c[1]||"",i);var d=c[2]||"";Ed(this);this.Nb=d?decodeURIComponent(d):"";d=c[3]||"";Ed(this);this.Na=d?decodeURIComponent(d):"";Fd(this,c[4]);d=c[5]||"";Ed(this);this.Fb=d?decodeURIComponent(d):"";Gd(this,c[6]||"",i);c=c[7]||"";Ed(this);
this.jb=c?decodeURIComponent(c):""}else this.Aa=!!b,this.a=new Hd(k,0,this.Aa)}p=Cd.prototype;p.Ma="";p.Nb="";p.Na="";p.Hb=k;p.Fb="";p.jb="";p.we=l;p.Aa=l;
p.toString=function(){var a=[],b=this.Ma;b&&a.push(Id(b,Jd),":");if(b=this.Na){a.push("//");var c=this.Nb;c&&a.push(Id(c,Jd),"@");a.push(encodeURIComponent(String(b)));b=this.Hb;b!=k&&a.push(":",String(b))}if(b=this.Fb)this.Na&&"/"!=b.charAt(0)&&a.push("/"),a.push(Id(b,"/"==b.charAt(0)?Kd:Ld));(b=this.a.toString())&&a.push("?",b);(b=this.jb)&&a.push("#",Id(b,Md));return a.join("")};p.V=function(){return new Cd(this)};
function Dd(a,b,c){Ed(a);a.Ma=c?b?decodeURIComponent(b):"":b;a.Ma&&(a.Ma=a.Ma.replace(/:$/,""))}function Fd(a,b){Ed(a);b?(b=Number(b),(isNaN(b)||0>b)&&aa(Error("Bad port number "+b)),a.Hb=b):a.Hb=k}
function Gd(a,b,c){Ed(a);if(b instanceof Hd){a.a=b;b=a.a;if((a=a.Aa)&&!b.b){Nd(b);b.a=k;var d=b.H,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),$d(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(ia(d)||ja(d))F(d,c,b);else{var e;if("function"==typeof d.ba)e=d.ba();else if("function"!=typeof d.W)if(ia(d)||ja(d)){e=[];for(var f=d.length,h=0;h<f;h++)e.push(h)}else e=Wa(d);else e=g;d=ab(d);f=d.length;for(h=0;h<f;h++)c.call(b,d[h],e&&e[h])}}b.b=a}else c||(b=Id(b,ae)),a.a=
new Hd(b,0,a.Aa)}function be(a,b,c){Ed(a);ha(c)||(c=[String(c)]);$d(a.a,b,c)}function Ed(a){a.we&&aa(Error("Tried to modify a read-only Uri"))}function Id(a,b){return ja(a)?encodeURI(a).replace(b,ce):k}function ce(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Jd=/[#\/\?@]/g,Ld=/[\#\?:]/g,Kd=/[\#\?]/g,ae=/[\#\?@]/g,Md=/#/g;function Hd(a,b,c){this.a=a||k;this.b=!!c}
function Nd(a){if(!a.H&&(a.H=new bb,a.o=0,a.a))for(var b=a.a.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=k,f=k;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=de(a,e);d=a;f=f?decodeURIComponent(f.replace(/\+/g," ")):"";Nd(d);d.a=k;var e=de(d,e),h=fb(d.H,e);h||cb(d.H,e,h=[]);h.push(f);d.o++}}p=Hd.prototype;p.H=k;p.o=k;p.J=function(){Nd(this);return this.o};
p.remove=function(a){Nd(this);a=de(this,a);return eb(this.H.b,a)?(this.a=k,this.o-=fb(this.H,a).length,this.H.remove(a)):l};p.clear=function(){this.H=this.a=k;this.o=0};p.Wa=function(){Nd(this);return 0==this.o};function ee(a,b){Nd(a);b=de(a,b);return eb(a.H.b,b)}p.ba=function(){Nd(this);for(var a=this.H.W(),b=this.H.ba(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
p.W=function(a){Nd(this);var b=[];if(a)ee(this,a)&&(b=Na(b,fb(this.H,de(this,a))));else for(var a=this.H.W(),c=0;c<a.length;c++)b=Na(b,a[c]);return b};function fe(a,b){var c=b?a.W(b):[];return 0<c.length?String(c[0]):g}function $d(a,b,c){a.remove(b);0<c.length&&(a.a=k,cb(a.H,de(a,b),Oa(c)),a.o+=c.length)}
p.toString=function(){if(this.a)return this.a;if(!this.H)return"";for(var a=[],b=this.H.ba(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.W(d),f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+encodeURIComponent(String(d[f])));a.push(h)}return this.a=a.join("&")};p.V=function(){var a=new Hd;a.a=this.a;this.H&&(a.H=this.H.V());return a};function de(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};function ge(){tc.call(this)}D(ge,tc);p=ge.prototype;p.Bc=i;p.ic=k;p.addEventListener=function(a,b,c,d){I(this,a,b,c,d)};p.removeEventListener=function(a,b,c,d){Uc(this,a,b,c,d)};p.r=function(){ge.z.r.call(this);var a,b=0,c=a==k;a=!!a;if(this==k)Ua(Lc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)J(f.key),b++}});else{var d=z(this);if(Lc[d])for(var d=Lc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)J(f.key),b++}}this.ic=k};function he(a){return function(){return a}}var ie=he(l),je=he(i),ke=he(k);function le(a,b,c){tc.call(this);this.d=a;this.c=c;this.a=b||window;this.b=ra(this.Wb,this)}D(le,tc);p=le.prototype;p.X=k;p.pc=l;p.start=function(){me(this);this.pc=l;var a=ne(this),b=oe(this);if(a&&!b&&this.a.mozRequestAnimationFrame)this.X=I(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(k),this.pc=i;else{if(a&&b)a=a.call(this.a,this.b);else{var c=this.b,d;d=d||0;a=this.a.setTimeout(function(){return c.apply(this,Array.prototype.slice.call(arguments,0,d))},20)}this.X=a}};
function me(a){if(a.X!=k){var b=ne(a),c=oe(a);b&&!c&&a.a.mozRequestAnimationFrame?J(a.X):b&&c?c.call(a.a,a.X):a.a.clearTimeout(a.X)}a.X=k}p.Wb=function(){this.pc&&this.X&&J(this.X);this.X=k;this.d.call(this.c,ta())};p.r=function(){me(this);le.z.r.call(this)};function ne(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}
function oe(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function pe(a){tc.call(this);this.Ha=a||window;this.Bb=I(this.Ha,"resize",this.le,l,this);this.Ba=cc(this.Ha||window);if(xb&&lb||tb&&this.Ha.self!=this.Ha.top)this.Ob=window.setInterval(ra(this.vc,this),qe)}D(pe,ge);var qe=500;p=pe.prototype;p.Bb=k;p.Ha=k;p.Ba=k;p.Ob=k;p.r=function(){pe.z.r.call(this);this.Bb&&(J(this.Bb),this.Bb=k);this.Ob&&(window.clearInterval(this.Ob),this.Ob=k);this.Ba=this.Ha=k};p.le=function(){this.vc()};
p.vc=function(){var a=cc(this.Ha||window);if(!(a==this.Ba||(!a||!this.Ba?0:a.width==this.Ba.width&&a.height==this.Ba.height)))this.Ba=a,K(this,"resize")};function re(a,b,c,d,e){if(!G&&(!xb||!Lb("525")))return i;if(kb&&e)return se(a);if(e&&!d||!c&&(17==b||18==b)||G&&d&&b==a)return l;switch(a){case 13:return!(G&&Nb(9));case 27:return!xb}return se(a)}function se(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||xb&&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 te(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function ue(a,b){tc.call(this);a&&(this.xb&&ve(this),this.Ra=a,this.wb=I(this.Ra,"keypress",this,b),this.gc=I(this.Ra,"keydown",this.a,b,this),this.xb=I(this.Ra,"keyup",this.b,b,this))}D(ue,ge);p=ue.prototype;p.Ra=k;p.wb=k;p.gc=k;p.xb=k;p.ua=-1;p.ta=-1;p.Qb=l;
var we={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},xe={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},ye=G||xb&&Lb("525"),ze=kb&&ub;
ue.prototype.a=function(a){if(xb&&(17==this.ua&&!a.qb||18==this.ua&&!a.na))this.ta=this.ua=-1;ye&&!re(a.Ia,this.ua,a.Ca,a.qb,a.na)?this.handleEvent(a):(this.ta=ub?te(a.Ia):a.Ia,ze&&(this.Qb=a.na))};ue.prototype.b=function(a){this.ta=this.ua=-1;this.Qb=a.na};
ue.prototype.handleEvent=function(a){var b=a.L,c,d,e=b.altKey;G&&"keypress"==a.type?(c=this.ta,d=13!=c&&27!=c?b.keyCode:0):xb&&"keypress"==a.type?(c=this.ta,d=0<=b.charCode&&63232>b.charCode&&se(c)?b.charCode:0):tb?(c=this.ta,d=se(c)?b.keyCode:0):(c=b.keyCode||this.ta,d=b.charCode||0,ze&&(e=this.Qb),kb&&(63==d&&224==c)&&(c=191));var f=c,h=b.keyIdentifier;c?63232<=c&&c in we?f=we[c]:25==c&&a.Ca&&(f=9):h&&h in xe&&(f=xe[h]);a=f==this.ua;this.ua=f;b=new Ae(f,d,a,b);b.na=e;K(this,b)};
function ve(a){a.wb&&(J(a.wb),J(a.gc),J(a.xb),a.wb=k,a.gc=k,a.xb=k);a.Ra=k;a.ua=-1;a.ta=-1}ue.prototype.r=function(){ue.z.r.call(this);ve(this)};function Ae(a,b,c,d){d&&Ec(this,d,g);this.type="key";this.Ia=a;this.pb=b;this.c=c}D(Ae,Dc);function Be(a){tc.call(this);this.a=a;a=la(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&md(a);this.b=I(this.a,ub?"DOMMouseScroll":"mousewheel",this)}D(Be,ge);
Be.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.L;if("mousewheel"==a.type){c=1;if(G||xb&&(lb||Lb("532.0")))c=40;d=Ce(-a.wheelDelta,c);x(a.wheelDeltaX)?(b=Ce(-a.wheelDeltaX,c),c=Ce(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),x(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Rb(b,-this.c,this.c));"number"==typeof this.d&&(c=Rb(c,-this.d,this.d));this.e&&(b=-b);b=new De(d,a,b,c);K(this,b)};function Ce(a,b){return xb&&(kb||ob)&&0!=a%b?a:a/b}
Be.prototype.r=function(){Be.z.r.call(this);J(this.b);delete this.b};function De(a,b,c,d){b&&Ec(this,b,g);this.type="mousewheel";this.c=a;this.O=c;this.N=d}D(De,Dc);var Ee=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function M(a){tc.call(this);this.s={};x(a)&&this.Db(a)}D(M,ge);var Fe={},Ge={},He={};function Ie(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Je(a){return a.ol_accessors_||(a.ol_accessors_={})}function Ke(a){return Fe.hasOwnProperty(a)?Fe[a]:Fe[a]=a.toLowerCase()+"_changed"}function Le(a){return a.ol_bindings_||(a.ol_bindings_={})}p=M.prototype;
p.xd=function(a,b,c,d){c=c||a;this.nc(a);var e=Ke(c);Le(this)[a]=I(b,e,function(){Me(this,a)},g,this);Je(this)[a]={target:b,key:c};d||Me(this,a)};p.Ad=da;p.q=function(a){var b,c=Je(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Ge.hasOwnProperty(b)?Ge[b]:Ge[b]="get"+Ie(b),b=a[c]?a[c]():a.q(b)):this.s.hasOwnProperty(a)&&(b=this.s[a]);return b};
p.ba=function(){for(var a=Wa(Je(this)).concat(Wa(this.s)),b={},c=0,d=0;d<a.length;){var e=a[d++],f=la(e)?"o"+z(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=i,a[c++]=e)}a.length=c;return a};p.Yc=function(a){var b=Je(this);b.hasOwnProperty(a)?(a=b[a],a.target.Yc(a.key)):Me(this,a)};function Me(a,b){var c=Ke(b);K(a,c);K(a,"changed")}
p.p=function(a,b){var c=Je(this);if(c.hasOwnProperty(a)){var d=c[a],c=d.target,d=d.key,e=He.hasOwnProperty(d)?He[d]:He[d]="set"+Ie(d);if(c[e])c[e](b);else c.p(d,b)}else this.s[a]=b,Me(this,a)};p.hd=function(a){var b,c,d;for(b in a)if(c=a[b],d=He.hasOwnProperty(b)?He[b]:He[b]="set"+Ie(b),this[d])this[d](c);else this.p(b,c)};p.Db=M.prototype.hd;p.nc=function(a){var b=Le(this),c=b[a];c&&(delete b[a],J(c),b=this.q(a),delete Je(this)[a],this.s[a]=b)};p.Ye=function(){for(var a in Le(this))this.nc(a)};function Ne(a,b,c){zc.call(this,a,c);this.a=b}D(Ne,zc);function N(a){M.call(this);this.a=a||[];Oe(this)}D(N,M);p=N.prototype;p.clear=function(){for(;0<this.mb();)this.pop()};p.forEach=function(a,b){F(this.a,a,b)};p.Hd=function(a){return this.a[a]};p.mb=function(){return this.q("length")};p.ub=function(a,b){Qa(this.a,a,0,b);Oe(this);K(this,new Ne("add",b,this))};p.pop=function(){return this.jc(this.mb()-1)};p.push=function(a){var b=this.a.length;this.ub(b,a);return b};
p.remove=function(a){var b;for(b=0;b<this.a.length;++b)if(this.a[b]===a)return this.jc(b)};p.jc=function(a){var b=this.a[a];Da.splice.call(this.a,a,1);Oe(this);K(this,new Ne("remove",b,this));return b};p.Ne=function(a,b){var c=this.mb();if(a<c)c=this.a[a],this.a[a]=b,K(this,new Ne("remove",c,this)),K(this,new Ne("add",b,this));else{for(;c<a;++c)this.ub(c,g);this.ub(a,b)}};function Oe(a){a.p("length",a.a.length)};function Pe(){this.c=Rb(255,0,255);this.b=Rb(255,0,255);this.a=Rb(255,0,255);this.d=Rb(1,0,1)};function Qe(a,b){Ub.call(this,a,b)}D(Qe,Ub);function Re(a,b,c,d){this.h=a;this.l=b;this.j=c;this.k=d}function Se(a,b){a.h=Math.min(a.h,b.h);a.l=Math.min(a.l,b.l);a.j=Math.max(a.j,b.j);a.k=Math.max(a.k,b.k)}p=Re.prototype;p.ad=function(){return new L((this.h+this.j)/2,(this.l+this.k)/2)};p.ga=function(){return this.k-this.l};p.ma=function(){return this.j-this.h};p.ha=function(a){return this.h<=a.j&&this.j>=a.h&&this.l<=a.k&&this.k>=a.l};p.toString=function(){return"("+[this.h,this.l,this.j,this.k].join(", ")+")"};function O(a,b,c,d){Re.call(this,a,b,c,d)}D(O,Re);function Te(a){var b=arguments[0],b=new O(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.h=Math.min(b.h,d.x);b.l=Math.min(b.l,d.y);b.j=Math.max(b.j,d.x);b.k=Math.max(b.k,d.y)}return b}
function Ue(a,b,c,d){for(var e=b*d.width/2,f=b*d.height/2,b=Math.cos(c),d=Math.sin(c),e=[-e,-e,e,e],c=[-f,f,-f,f],h,j,f=0;4>f;++f)h=e[f],j=c[f],e[f]=a.x+h*b-j*d,c[f]=a.y+h*d+j*b;a=Math.min.apply(k,e);b=Math.min.apply(k,c);e=Math.max.apply(k,e);c=Math.max.apply(k,c);return new O(a,b,e,c)}p=O.prototype;p.Bd=function(a){return this.h<=a.x&&a.x<=this.j&&this.l<=a.y&&a.y<=this.k};p.yc=function(a){return this.h<=a.h&&a.j<=this.j&&this.l<=a.l&&a.k<=this.k};p.Gc=function(){return new L(this.h,this.l)};
p.Jd=function(){return new L(this.j,this.l)};p.ob=function(){return new L(this.h,this.k)};p.Nd=function(){return new L(this.j,this.k)};p.transform=function(a){var b=[this.h,this.l,this.j,this.k],b=a(b,b,2);return new O(Math.min(b[0],b[2]),Math.min(b[1],b[3]),Math.max(b[0],b[2]),Math.max(b[1],b[3]))};function Ve(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Ve.prototype.a=4;Ve.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Ve.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(Ve.BYTES_PER_ELEMENT=4,Ve.prototype.BYTES_PER_ELEMENT=Ve.prototype.a,Ve.prototype.set=Ve.prototype.b,Ve.prototype.toString=Ve.prototype.toString,C("Float32Array",Ve));function We(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}We.prototype.a=8;We.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};We.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(We.BYTES_PER_ELEMENT=8,We.prototype.BYTES_PER_ELEMENT=We.prototype.a,We.prototype.set=We.prototype.b,We.prototype.toString=We.prototype.toString,C("Float64Array",We));function Xe(){var a=Array(16);Ye(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function Ze(){var a=Array(16);Ye(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function Ye(a,b,c,d,e,f,h,j,m,q,v,s,A,u,t,y,w){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=h;a[6]=j;a[7]=m;a[8]=q;a[9]=v;a[10]=s;a[11]=A;a[12]=u;a[13]=t;a[14]=y;a[15]=w}
function $e(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15]}function af(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 bf(a,b,c){var d=a[0],e=a[1],f=a[2],h=a[3],j=a[4],m=a[5],q=a[6],v=a[7],s=a[8],A=a[9],u=a[10],t=a[11],y=a[12],w=a[13],B=a[14],a=a[15],E=b[0],Q=b[1],H=b[2],R=b[3],Y=b[4],Z=b[5],ea=b[6],ma=b[7],wa=b[8],Ea=b[9],Aa=b[10],S=b[11],Ia=b[12],vb=b[13],wb=b[14],b=b[15];c[0]=d*E+j*Q+s*H+y*R;c[1]=e*E+m*Q+A*H+w*R;c[2]=f*E+q*Q+u*H+B*R;c[3]=h*E+v*Q+t*H+a*R;c[4]=d*Y+j*Z+s*ea+y*ma;c[5]=e*Y+m*Z+A*ea+w*ma;c[6]=f*Y+q*Z+u*ea+B*ma;c[7]=h*Y+v*Z+t*ea+a*ma;c[8]=d*wa+j*Ea+s*Aa+y*S;c[9]=e*wa+m*Ea+A*Aa+w*S;c[10]=f*wa+
q*Ea+u*Aa+B*S;c[11]=h*wa+v*Ea+t*Aa+a*S;c[12]=d*Ia+j*vb+s*wb+y*b;c[13]=e*Ia+m*vb+A*wb+w*b;c[14]=f*Ia+q*vb+u*wb+B*b;c[15]=h*Ia+v*vb+t*wb+a*b}function cf(a,b){return a.length==b.length&&a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]&&a[3]==b[3]&&a[4]==b[4]&&a[5]==b[5]&&a[6]==b[6]&&a[7]==b[7]&&a[8]==b[8]&&a[9]==b[9]&&a[10]==b[10]&&a[11]==b[11]&&a[12]==b[12]&&a[13]==b[13]&&a[14]==b[14]&&a[15]==b[15]}
function df(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];return c}function ef(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 ff(a,b,c){Ye(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}
function xf(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],h=a[4],j=a[5],m=a[6],q=a[7],v=Math.cos(b),s=Math.sin(b);a[0]=c*v+h*s;a[1]=d*v+j*s;a[2]=e*v+m*s;a[3]=f*v+q*s;a[4]=c*-s+h*v;a[5]=d*-s+j*v;a[6]=e*-s+m*v;a[7]=f*-s+q*v}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function yf(a,b,c){ud.call(this,b,c);this.n=a}D(yf,L);yf.prototype.hash=function(){return(this.x<<this.n)+this.y};function zf(a){var b=Array(a.n),c=1<<a.n-1,d,e;for(d=0;d<a.n;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}yf.prototype.toString=function(){return[this.n,this.x,this.y].join("/")};function Af(a,b,c,d){this.h=a;this.l=b;this.j=c;this.k=d}D(Af,Re);Af.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.j&&this.l<=a.y&&a.y<=this.k};Af.prototype.ga=function(){return this.k-this.l+1};Af.prototype.ma=function(){return this.j-this.h+1};function Bf(a,b){this.b=a;this.a=b||k};function Cf(a,b){tc.call(this);this.fa=a;this.a=b}D(Cf,ge);Cf.prototype.b=function(){return z(this).toString()};function Df(a){this.d=a;this.f=8;this.c=0;this.a=[];this.b={}}function Ef(a,b,c,d){if(0==b.a){var e=b.b();if(!(e in a.b)){var f=a.d(b,c,d);Infinity!=f&&(a.a.push([f,b,c,d]),a.b[e]=i,Ff(a,0,a.a.length-1))}}}Df.prototype.e=function(){--this.c};function Gf(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b<d>>1;){var h=2*b+1,j=2*b+2,h=j<d&&c[j][0]<c[h][0]?j:h;c[b]=c[h];b=h}c[b]=e;Ff(a,f,b)}function Ff(a,b,c){for(var a=a.a,d=a[c];c>b;){var e=c-1>>1;if(a[e][0]>d[0])a[c]=a[e],c=e;else break}a[c]=d};/*
Latitude/longitude spherical geodesy formulae taken from
http://www.movable-type.co.uk/scripts/latlong.html
Licenced under CC-BY-3.0.
*/
function Hf(a){this.a=a}function If(a,b){var c=a.y*Math.PI/180,d=b.y*Math.PI/180,e=(d-c)/2,f=(b.x-a.x)*Math.PI/180/2,c=Math.sin(e)*Math.sin(e)+Math.sin(f)*Math.sin(f)*Math.cos(c)*Math.cos(d);return 2*Jf.a*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}
Hf.prototype.offset=function(a,b,c){var d=a.y*Math.PI/180,b=b/this.a,e=Math.asin(Math.sin(d)*Math.cos(b)+Math.cos(d)*Math.sin(b)*Math.cos(c));return new L(180*(a.x*Math.PI/180+Math.atan2(Math.sin(c)*Math.sin(b)*Math.cos(d),Math.cos(b)-Math.sin(d)*Math.sin(e)))/Math.PI,180*e/Math.PI)};var Jf=new Hf(6370997);var Kf="object"==typeof Proj4js,Lf={rd:"degrees",of:"ft",vf:"m"},Mf={};Mf.degrees=2*Math.PI*Jf.a/360;Mf.ft=0.3048;Mf.m=1;function Nf(a){this.a=a.code;this.b=a.units;this.g=a.extent;this.d=x(a.axisOrientation)?a.axisOrientation:"enu";this.Vb=x(a.global)?a.global:l;this.f=k}p=Nf.prototype;p.Ld=n("a");p.I=n("g");p.Od=n("b");p.Hc=function(){return Mf[this.b]};p.Id=n("d");p.ve=n("Vb");function Of(a,b){var c={units:a.units,axisOrientation:a.axis};$a(c,b);Nf.call(this,c);this.dd=a;this.e=k}D(Of,Nf);
Of.prototype.c=function(a,b){if("degrees"==this.b)return a;this.e===k&&(this.e=Pf(this,Qf({code:"EPSG:4326",extent:k})));var c=[b.x-a/2,b.y,b.x+a/2,b.y,b.x,b.y-a/2,b.x,b.y+a/2],c=this.e(c,c,2),c=(If(new L(c[0],c[1]),new L(c[2],c[3]))+If(new L(c[4],c[5]),new L(c[6],c[7])))/2;"ft"==this.b&&(c/=0.3048);return c};var Rf={},Sf={},Tf={};function Uf(a){F(a,function(a){Vf(a)});F(a,function(b){F(a,function(a){b!==a&&Wf(b,a,Xf)})})}function Vf(a){Sf[a.a]=a;Wf(a,a,Xf)}
function Yf(a){return a!=k?ja(a)?Zf(a):a:Zf("EPSG:3857")}function Wf(a,b,c){a=a.a;b=b.a;a in Tf||(Tf[a]={});Tf[a][b]=c}function Zf(a){var b;a instanceof Nf?b=a:ja(a)?(b=Sf[a],Kf&&!x(b)&&(b=Qf({code:a,extent:k})),x(b)||(b=k)):b=k;return b}function Qf(a){var b=a.code,c=Rf[b];if(!x(c)){var d=new Proj4js.Proj(b),e=d.srsCode,c=Rf[e];x(c)||(a=Ya(a),a.code=e,c=new Of(d,a),Rf[e]=c);Rf[b]=c}return c}function $f(a,b){var c=Zf(a),d=Zf(b);return Pf(c,d)}
function Pf(a,b){var c=a.a,d=b.a,e;c in Tf&&d in Tf[c]&&(e=Tf[c][d]);if(Kf&&!x(e)){var f;f=(a instanceof Of?a:Qf({code:c,extent:k})).dd;var h;h=(b instanceof Of?b:Qf({code:d,extent:k})).dd;e=function(a,b,c){var d=a.length,c=1<c?c:2;x(b)||(b=2<c?a.slice():Array(d));for(var e,A=0;A<d;A+=c)e=new Proj4js.Point(a[A],a[A+1]),e=Proj4js.transform(f,h,e),b[A]=e.x,b[A+1]=e.y;return b};Wf(a,b,e)}x(e)||(e=ag);return e}function ag(a,b){if(x(b)&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}
function Xf(a,b){var c;if(x(b)){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c};function bg(a){tc.call(this);this.c=Zf(a.projection);this.s=x(a.extent)?a.extent:x(a.projection)?this.c.I():k;this.f=x(a.attributions)?a.attributions:k}D(bg,ge);bg.prototype.za=n("f");bg.prototype.I=n("s");bg.prototype.d=je;function P(a){M.call(this);this.t=a.source;this.B(x(a.brightness)?a.brightness:0);this.G(x(a.contrast)?a.contrast:1);this.K(x(a.hue)?a.hue:0);this.T(x(a.opacity)?a.opacity:1);this.Z(x(a.saturation)?a.saturation:1);this.qa(x(a.visible)?a.visible:i);this.t.d()||Oc(this.t,"load",this.wa,l,this)}D(P,M);P.prototype.d=function(){return this.q("brightness")};P.prototype.getBrightness=P.prototype.d;P.prototype.e=function(){return this.q("contrast")};P.prototype.getContrast=P.prototype.e;P.prototype.f=function(){return this.q("hue")};
P.prototype.getHue=P.prototype.f;P.prototype.g=function(){return this.q("opacity")};P.prototype.getOpacity=P.prototype.g;P.prototype.i=function(){return this.q("saturation")};P.prototype.getSaturation=P.prototype.i;P.prototype.da=n("t");P.prototype.u=function(){return this.q("visible")};P.prototype.getVisible=P.prototype.u;P.prototype.wa=function(){K(this,"load")};P.prototype.B=function(a){a=Rb(a,-1,1);a!=this.d()&&this.p("brightness",a)};P.prototype.setBrightness=P.prototype.B;
P.prototype.G=function(a){a=Math.max(0,a);a!=this.e()&&this.p("contrast",a)};P.prototype.setContrast=P.prototype.G;P.prototype.K=function(a){a!=this.f()&&this.p("hue",a)};P.prototype.setHue=P.prototype.K;P.prototype.T=function(a){a=Rb(a,0,1);a!=this.g()&&this.p("opacity",a)};P.prototype.setOpacity=P.prototype.T;P.prototype.Z=function(a){a=Math.max(0,a);a!=this.i()&&this.p("saturation",a)};P.prototype.setSaturation=P.prototype.Z;P.prototype.qa=function(a){a=!!a;a!=this.u()&&this.p("visible",a)};
P.prototype.setVisible=P.prototype.qa;function cg(a,b,c){zc.call(this,a);this.map=b;this.rb=l;this.c=x(c)?c:k}D(cg,zc);cg.prototype.A=function(){cg.z.A.call(this);this.rb=i};function dg(a,b){Tb.call(this,a,b)}D(dg,Tb);function eg(a,b,c,d){cg.call(this,a,b,d);this.a=c;this.f=this.e=k}D(eg,cg);eg.prototype.d=function(){this.e===k&&(this.e=fg(this.map,gg(this)));return this.e};function gg(a){if(a.f===k){var b=gd(a.a,a.map.b);a.f=new dg(b.x,b.y)}return a.f}
function hg(a){this.a=a;this.e=k;this.b=l;this.c=this.g=this.d=this.s=this.i=this.f=k;a=this.a.b;this.i=I(a,["click","dblclick"],this.xc,l,this);this.s=I(a,"mousedown",this.ee,l,this);this.g=[I(a,["touchstart","MSPointerDown"],this.qe,l,this),I(a,["touchmove","MSPointerMove"],this.pe,l,this),I(a,["touchend","MSPointerUp"],this.oe,l,this)]}D(hg,ge);p=hg.prototype;p.xc=function(a){if(!this.b){var b=a.type;K(this,0==this.f||"dblclick"==b?new eg(ig,this.a,a):new eg(jg,this.a,a))}};
p.ge=function(a){this.e&&(this.c=k,F(this.d,J),this.e=this.d=k,this.b&&K(this,new eg(kg,this.a,a)))};p.ee=function(a){K(this,new eg(lg,this.a,a));this.e||(this.c=a,this.e={clientX:a.clientX,clientY:a.clientY},this.b=l,this.d=[I(document,"mousemove",this.fe,l,this),I(document,"mouseup",this.ge,l,this)],a.A())};p.fe=function(a){var b;this.b||(this.b=i,b=new eg(mg,this.a,this.c),K(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new eg(ng,this.a,a);K(this,b)};
p.qe=function(a){a.A();this.c=a;this.b=l;K(this,new eg(og,this.a,a))};p.pe=function(a){this.b=i;K(this,new eg(pg,this.a,a))};p.oe=function(a){K(this,new eg(qg,this.a,a));this.b||(a=ta(),this.f=!this.f||250<a-this.f?a:0,this.xc(this.c));this.c=k};p.r=function(){J(this.i);J(this.s);this.d!==k&&(F(this.d,J),this.d=k);this.g!==k&&(F(this.g,J),this.g=k);hg.z.r.call(this)};
var jg="click",ig="dblclick",lg="down",mg="dragstart",ng="drag",kg="dragend",og="touchstart",pg="touchmove",qg="touchend",rg={ff:jg,gf:ig,jf:lg,mf:mg,kf:ng,lf:kg,Jf:og,If:pg,Hf:qg};function sg(){M.call(this);this.e=[0,0]}D(sg,M);function tg(a,b){a.e[1]+=b};function ug(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 vg(a){this.resolution=a;this.rotation=function(a,c){if(x(a))return 0.1>=Math.abs(a+c)?0:a+c}};var wg={Rb:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a},Ed:function(a){return a*a*a},Oa:function(a){return 1-Math.pow(1-a,3)},Fd:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Ja:function(a){return 3*a*a-2*a*a*a},Uc:ba(),pd:function(a){return 0.5>a?wg.Ja(2*a):1-wg.Ja(2*(a-0.5))}};var xg={Rb:function(a){var b=a.resolution,c=x(a.start)?a.start:ta(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:wg.pd;return function(a,h){if(h.time<c)return h.$=i,h.F[0]+=1,i;if(h.time<c+d){var j=e((h.time-c)/d),m=b-h.v.resolution;h.$=i;h.v.resolution+=j*m;h.F[0]+=1;return i}return l}},ia:function(a){var b=a.source,c=x(a.start)?a.start:ta(),d=b.x,e=b.y,f=x(a.duration)?a.duration:1E3,h=x(a.easing)?a.easing:wg.Ja;return function(a,b){if(b.time<c)return b.$=i,b.F[0]+=1,i;if(b.time<c+f){var q=
1-h((b.time-c)/f),v=d-b.v.center.x,s=e-b.v.center.y;b.$=i;b.v.center.x+=q*v;b.v.center.y+=q*s;b.F[0]+=1;return i}return l}},rotate:function(a){var b=a.rotation,c=x(a.start)?a.start:ta(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:wg.Ja;return function(a,h){if(h.time<c)return h.$=i,h.F[0]+=1,i;if(h.time<c+d){var j=1-e((h.time-c)/d),m=b-h.v.rotation;h.$=i;h.v.rotation+=j*m;h.F[0]+=1;return i}return l}},zoom:function(a){var b=a.resolution,c=x(a.start)?a.start:ta(),d=x(a.duration)?a.duration:
1E3,e=x(a.easing)?a.easing:wg.Ja;return function(a,h){if(h.time<c)return h.$=i,h.F[0]+=1,i;if(h.time<c+d){var j=1-e((h.time-c)/d),m=b-h.v.resolution;h.$=i;h.v.resolution+=j*m;h.F[0]+=1;return i}return l}}};function T(a){sg.call(this);var a=a||{},b={};b.center=x(a.center)?a.center:k;b.projection=Yf(a.projection);if(x(a.resolution))b.resolution=a.resolution;else if(x(a.zoom)){var c=b.projection.I(),c=Math.max(c.j-c.h,c.k-c.l);b.resolution=c/(256*Math.pow(2,a.zoom))}b.rotation=a.rotation;this.Db(b);if(x(a.resolutions))var d=a.resolutions,a=function(a,b){if(x(a)){var c=ug(d,a),c=Rb(c+b,0,d.length-1);return d[c]}};else{x(a.maxResolution)&&x(a.numZoomLevels)&&x(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,
a=a.zoomFactor):(a=Yf(a.projection).I(),b=Math.max(a.j-a.h,a.k-a.l)/256,c=29,a=2);var e=a,f=b,h=c-1,a=function(a,b){if(x(a)){var c=Math.floor(Math.log(f/a)/Math.log(e)+0.5),c=Math.max(c+b,0);x(h)&&(c=Math.min(c,h));return f/Math.pow(e,c)}}}this.c=new vg(a)}D(T,sg);T.prototype.R=function(){return this.q("center")};T.prototype.getCenter=T.prototype.R;T.prototype.I=function(a){var b=this.R(),c=this.S();return new O(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};T.prototype.Zc=function(){return this.q("projection")};
T.prototype.getProjection=T.prototype.Zc;T.prototype.S=function(){return this.q("resolution")};T.prototype.getResolution=T.prototype.S;T.prototype.ca=function(){return this.q("rotation")||0};T.prototype.getRotation=T.prototype.ca;T.prototype.g=function(){return this};T.prototype.f=function(a,b){this.a(a.ad());var c=Math.max((a.j-a.h)/b.width,(a.k-a.l)/b.height),c=this.c.resolution(c,0);this.b(c)};T.prototype.Va=function(){return this.R()!=k&&x(this.S())};
T.prototype.a=function(a){this.p("center",a)};T.prototype.setCenter=T.prototype.a;T.prototype.i=function(a){this.p("projection",a)};T.prototype.setProjection=T.prototype.i;T.prototype.b=function(a){this.p("resolution",a)};T.prototype.setResolution=T.prototype.b;T.prototype.d=function(a){this.p("rotation",a)};T.prototype.setRotation=T.prototype.d;T.prototype.ia=function(a,b,c){var d=this.R();x(d)&&(x(c)&&(yg(a),a.ra(xg.ia({source:d,duration:c,easing:wg.Uc}))),this.a(new L(d.x+b.x,d.y+b.y)))};
T.prototype.rotate=function(a,b,c,d){b=this.c.rotation(b,0);zg(this,a,b,c,d)};function zg(a,b,c,d,e){if(c!=k){var f=a.ca(),h=a.R();x(f)&&(x(h)&&x(e))&&(yg(b),b.ra(xg.rotate({rotation:f,duration:e,easing:wg.Oa})),x(d)&&b.ra(xg.ia({source:h,duration:e,easing:wg.Oa})));if(d!=k){var e=a.R(),j=new L(e.x-d.x,e.y-d.y);j.rotate(c-a.ca());j.x+=d.x;j.y+=d.y;Ag(b,function(){this.a(j);this.d(c)},a)}else a.d(c)}}T.prototype.zoom=function(a,b,c,d){b=this.c.resolution(b,0);Bg(this,a,b,c,d)};
function Cg(a,b,c,d,e){var f=a.S(),c=a.c.resolution(f,c);Bg(a,b,c,d,e)}function Bg(a,b,c,d,e){if(c!=k){var f=a.S(),h=a.R();x(f)&&(x(h)&&x(e))&&(yg(b),b.ra(xg.zoom({resolution:f,duration:e,easing:wg.Oa})),x(d)&&b.ra(xg.ia({source:h,duration:e,easing:wg.Oa})));if(d!=k){var e=a.R(),f=a.S(),j=new L(d.x-c*(d.x-e.x)/f,d.y-c*(d.y-e.y)/f);Ag(b,function(){this.a(j);this.b(c)},a)}else a.b(c)}};function Dg(a){tc.call(this);this.element=x(a.element)?a.element:k;this.u=a.target;this.b=k;x(a.map)&&this.a(a.map)}D(Dg,tc);Dg.prototype.r=function(){jc(this.element);Dg.z.r.call(this)};Dg.prototype.a=function(a){this.b===k||jc(this.element);this.b=a;this.b!==k&&(x(this.u)?this.u:a.t).appendChild(this.element)};function Eg(a){a=x(a)?a:{};this.g=fc("UL");var b=dc("DIV",{"class":"ol-attribution ol-unselectable"},this.g);Dg.call(this,{element:b,map:a.map,target:a.target});this.f=i;this.c={};this.d={};this.e=k}D(Eg,Dg);
Eg.prototype.i=function(a){var b=a.c;if(b===k)this.f&&(ld(this.element,l),this.f=l);else{var c={},d={},a=this.b.e();x(a)&&a.forEach(function(a){a=a.da();d[z(a).toString()]=a;a=a.za();if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],t=z(b).toString(),c[t]=i}});var a=Ya(b.attributions),b=b.ab,e={},f,h,j,m,q,v;for(v in b)if(f=d[v],q=f.za(),q!==k){h=b[v];for(f=0;f<q.length;++f)if(j=q[f],m=z(j).toString(),!(m in e)){var s;a:if(j.a===k)s=i;else{var A=s=g,u=g;for(u in h)if(u in j.a){A=h[u];for(s=0;s<j.a[u].length;++s)if(j.a[u][s].ha(A)){s=
i;break a}}s=l}s&&(e[m]=j)}}$a(a,e);v=Ga(Wa(a),Number);Sa(v);for(var t,b=0;b<v.length;++b)t=v[b].toString(),t in this.c?this.d[t]||(ld(this.c[t],i),this.d[t]=i):(e=fc("LI"),e.innerHTML=a[t].b,this.g.appendChild(e),this.c[t]=e,this.d[t]=i),delete c[t];for(t in c)jc(this.c[t]),delete this.c[t],delete this.d[t];a=0!=v.length;this.f!=a&&(ld(this.element,a),this.f=a)}};Eg.prototype.a=function(a){this.e!==k&&(F(this.e,J),this.e=k);Eg.z.a.call(this,a);a!==k&&(this.e=[I(a,"postrender",this.i,l,this)])};function Fg(a){var a=x(a)?a:{},b=dc("A",{href:"#zoomIn","class":"ol-zoom-in"});I(b,["touchend","click"],this.d,l,this);var c=dc("A",{href:"#zoomOut","class":"ol-zoom-out"});I(c,["touchend","click"],this.e,l,this);b=dc("DIV","ol-zoom ol-unselectable",b,c);Dg.call(this,{element:b,map:a.map,target:a.target});this.c=x(a.delta)?a.delta:1}D(Fg,Dg);Fg.prototype.d=function(a){a.A();a=this.b;yg(a);Cg(a.a(),a,this.c,g,250)};Fg.prototype.e=function(a){a.A();a=this.b;yg(a);Cg(a.a(),a,-this.c,g,250)};function Gg(a,b){var c=x(a)?a:{},d=[];if(x(c.attribution)?c.attribution:1)d.push(new Eg(x(c.Be)?c.Be:g));if(x(c.zoom)?c.zoom:1)d.push(new Fg(x(c.Ze)?c.Ze:g));x(b)&&Pa(d,b);return d};function Hg(a,b,c){this.e=a;this.d=b;this.f=c;this.a=[];this.b=this.c=0}function Ig(a){for(var b=ta(),c=a.a.length-1,d=c-1;0<=d&&a.a[d].$a>b-a.f;)d--;if(0<=d){var b=a.a[d],c=a.a[c],d=c.x-b.x,e=c.y-b.y;a.c=Math.atan2(e,d);a.b=Math.sqrt(d*d+e*e)/(c.$a-b.$a);return a.b>a.d}return l}Hg.prototype.ia=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return xg.ia({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Jg(){};function Kg(a){this.a=a}D(Kg,Jg);Kg.prototype.Ea=function(a){var b=a.a;if(a.type==ig&&(Ee||Gc(a.a))){var c=a.map,d=a.d(),e=a.a.Ca?-this.a:this.a;Cg(c.a(),c,e,d,250);a.A();b.A()}};function Lg(a){return a.na&&!a.Gb&&a.Ca}function Mg(a){return!a.na&&!a.Gb&&!a.Ca}function Ng(a){return!a.na&&!a.Gb&&a.Ca};function Og(){this.c=l;this.s=this.i=this.e=this.d=0;this.Za=this.f=k}D(Og,Jg);p=Og.prototype;p.$b=da;p.sb=da;p.tb=ie;p.Rc=da;p.Ea=function(a){var b=a.map;if(b.Va()){var b=b.a(),c=a.a;a.type==lg&&this.Rc(a);this.c?a.type==ng?(this.O=c.clientX-this.d,this.N=c.clientY-this.e,this.$b(a)):a.type==kg&&(this.O=c.clientX-this.d,this.N=c.clientY-this.e,this.sb(a),this.c=l):a.type==mg&&(this.d=c.clientX,this.e=c.clientY,this.N=this.O=0,this.f=b.R(),this.Za=a.d(),this.tb(a)&&(this.c=i,a.A()))}};function Pg(a,b){Og.call(this);this.g=a;this.a=b;this.b=k}D(Pg,Og);Pg.prototype.$b=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,$a:ta()});var a=a.map,b=a.a(),c=b.S(),d=b.ca(),c=new L(-c*this.O,c*this.N);c.rotate(d);d=new L(this.f.x+c.x,this.f.y+c.y);yg(a);b.a(d)};
Pg.prototype.sb=function(a){var b=a.map,a=b.a();tg(a,-1);if(this.a&&Ig(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.R();this.b=this.a.ia(e);b.ra(this.b);e=Qg(b,e);b=fg(b,new dg(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};Pg.prototype.tb=function(a){var b=a.a;if(this.g(b)){if(this.a){var c=this.a;c.a.length=0;c.c=0;c.b=0;this.a.a.push({x:b.clientX,y:b.clientY,$a:ta()})}a=a.map;yg(a);tg(a.a(),1);return i}return l};
Pg.prototype.Rc=function(a){var b=a.map,c=b.a();this.b!==k&&Ma(b.i,this.b)&&(yg(b),c.a(a.c.v.center),this.b=k)};function Rg(a){Og.call(this);this.b=a}D(Rg,Og);Rg.prototype.$b=function(a){var b=a.map,c=b.f(),a=gg(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(x(this.a)){var a=c-this.a,d=b.a();yg(b);zg(d,b,d.ca()-a)}this.a=c};Rg.prototype.sb=function(a){var a=a.map,b=a.a();b.rotate(a,b.ca(),g,250);tg(b,-1)};Rg.prototype.tb=function(a){var b=a.a;return Gc(b)&&this.b(b)?(a=a.map,b=a.a(),yg(a),this.a=g,tg(b,1),i):l};function Sg(a){var b=dc("DIV","ol-dragbox");this.c=k;this.e=a.Za;this.d=k;Dg.call(this,{element:b,map:a.map})}D(Sg,Dg);Sg.prototype.a=function(a){this.d!==k&&(J(this.d),this.d=k);a!==k&&(this.c=Qg(a,this.e),bd(this.element,this.c),nd(this.element,new Qe(0,0)),this.d=I(a,ng,this.f,l,this));Sg.z.a.call(this,a)};Sg.prototype.f=function(a){var b=this.b,a=a.d(),b=Qg(b,a);bd(this.element,new dg(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));nd(this.element,new Qe(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Tg(a){Og.call(this);this.b=a;this.a=k}D(Tg,Og);Tg.prototype.sb=function(a){this.a.a(k);this.a=k;if(64<=this.O*this.O+this.N*this.N){var b=a.map,c=Te(this.Za,a.d());Ag(b,function(){var a=b.a(),e=b.f();a.f(c,e);a.d(0)})}};Tg.prototype.tb=function(a){var b=a.a;return Gc(b)&&this.b(b)?(this.a=new Sg({map:a.map,Za:this.Za}),i):l};function Ug(a){a=x(a)?a:{};this.a=x(a.delta)?a.delta:128}D(Ug,Jg);Ug.prototype.Ea=function(a){if("key"==a.type){var b=a.a,c=b.Ia;if(40==c||37==c||39==c||38==c){var d=a.map,e=d.a(),f=e.S(),h=e.ca(),f=f*this.a,j=0,m=0;40==c?m=-f:37==c?j=-f:39==c?j=f:m=f;c=new L(j,m);c.rotate(h);e.ia(d,c,100);b.A();a.A()}}};function Vg(a){a=x(a)?a:{};this.a=x(a.delta)?a.delta:1}D(Vg,Jg);Vg.prototype.Ea=function(a){if("key"==a.type){var b=a.a,c=b.pb;if(43==c||45==c){var d=a.map,c=43==c?this.a:-this.a;yg(d);Cg(d.a(),d,c,g,100);b.A();a.A()}}};function Wg(){this.a=0;this.c=k;this.d=this.b=g}D(Wg,Jg);Wg.prototype.Ea=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a;this.c=a.d();this.a+=c.N/3;x(this.b)||(this.b=ta());var d=Math.max(80-(ta()-this.b),0);r.clearTimeout(this.d);this.d=r.setTimeout(ra(this.e,this,b),d);a.A();c.A()}};Wg.prototype.e=function(a){var b=Rb(this.a,-1,1),c=a.a();yg(a);Cg(c,a,-b,this.c,250);this.a=0;this.c=k;this.d=this.b=g};function Xg(){this.g=l;this.i={};this.targetTouches=[]}D(Xg,Jg);function Yg(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return new dg(c/b,d/b)}Xg.prototype.e=da;Xg.prototype.d=ie;Xg.prototype.f=ie;Xg.prototype.Ea=function(a){var b=a.a.L;x(b.targetTouches)?this.targetTouches=b.targetTouches:(a.type==qg?delete this.i[b.pointerId]:this.i[b.pointerId]=b,this.targetTouches=Va(this.i));this.g&&(a.type==pg?this.e(a):a.type==qg&&(this.g=this.d(a)));a.type==og&&(this.g=this.f(a))};function Zg(a){Xg.call(this);this.a=a;this.b=this.c=k}D(Zg,Xg);Zg.prototype.e=function(a){var b=Yg(this.targetTouches);if(this.b!==k){this.a&&this.a.a.push({x:b.x,y:b.y,$a:ta()});var c=this.b.x-b.x,d=b.y-this.b.y,a=a.map.a(),c=new L(c,d),d=a.S();c.x*=d;c.y*=d;c=c.rotate(a.ca());d=a.R();c.x+=d.x;c.y+=d.y;a.a(c)}this.b=b};
Zg.prototype.d=function(a){var b=a.map,a=b.a();if(0==this.targetTouches.length){tg(a,-1);if(this.a&&Ig(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.R();this.c=this.a.ia(e);b.ra(this.c);e=Qg(b,e);b=fg(b,new dg(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}return l}this.b=k;return i};Zg.prototype.f=function(a){if(1<=this.targetTouches.length){var b=a.map,c=b.a();this.b=k;this.c!==k&&Ma(b.i,this.c)&&(yg(b),c.a(a.c.v.center),this.c=k);this.a&&(a=this.a,a.a.length=0,a.c=0,a.b=0);tg(c,1);return i}return l};function $g(a){Xg.call(this);this.a=l;this.b=0;this.s=x(a)?a:0.3}D($g,Xg);$g.prototype.e=function(a){var b=0,c=this.targetTouches[0],d=this.targetTouches[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);x(this.c)&&(b=c-this.c,this.b+=b,!this.a&&Math.abs(this.b)>this.s&&(this.a=i));this.c=c;var a=a.map,c=a.a(),d=hd(a.b),e=Yg(this.targetTouches);e.x-=d.x;e.y-=d.y;d=fg(a,e);this.a&&zg(c,a,c.ca()+b,d)};
$g.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();this.a&&b.rotate(a,b.ca(),g,250);tg(b,-1);return l}return i};$g.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.c=g,this.a=l,this.b=0,tg(a,1),i):l};function ah(){Xg.call(this)}D(ah,Xg);ah.prototype.e=function(a){var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);x(this.a)&&(b=this.a/e);this.a=e;a=a.map;e=a.a();c=hd(a.b);d=Yg(this.targetTouches);d.x-=c.x;d.y-=c.y;c=fg(a,d);Bg(e,a,e.S()*b,c)};ah.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();b.zoom(a,b.S(),g,250);tg(b,-1);return l}return i};
ah.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.a=g,tg(a,1),i):l};function bh(a,b){var c=x(a)?a:{},d=new N;(x(c.rotate)?c.rotate:1)&&d.push(new Rg(Lg));if(x(c.Ce)?c.Ce:1)d.push(new Kg(x(c.$e)?c.$e:1));(x(c.He)?c.He:1)&&d.push(new Zg(new Hg(-0.005,0.05,100)));(x(c.Ie)?c.Ie:1)&&d.push(new $g);(x(c.Je)?c.Je:1)&&d.push(new ah);(x(c.De)?c.De:1)&&d.push(new Pg(Mg,new Hg(-0.005,0.05,100)));if(x(c.Ee)?c.Ee:1)d.push(new Ug),d.push(new Vg);(x(c.Fe)?c.Fe:1)&&d.push(new Wg);(x(c.Ge)?c.Ge:1)&&d.push(new Tg(Ng));if(x(b))for(c=0;c<b.length;++c)d.push(b[c]);return d};function ch(a){Nf.call(this,{code:a,units:"m",extent:dh,global:i})}D(ch,Nf);var eh=6378137*Math.PI,dh=new O(-eh,-eh,eh,eh),fh=Ga(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new ch(a)});ch.prototype.c=function(a,b){return a/((Math.exp(b.y/6378137)+Math.exp(-(b.y/6378137)))/2)};function gh(a,b){Nf.call(this,{code:a,units:"degrees",extent:hh,axisOrientation:b,global:i})}D(gh,Nf);var hh=new O(-180,-90,180,90),ih=[new gh("CRS:84"),new gh("EPSG:4326","neu"),new gh("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new gh("urn:ogc:def:crs:OGC:1.3:CRS84")];gh.prototype.c=ba();function jh(a,b,c,d,e){this.f=e;this.g=a;this.i=c;this.e=b;this.b=new Image;d!==k&&(this.b.crossOrigin=d);this.d={};this.c=k;this.a=0}D(jh,ge);jh.prototype.za=n("f");jh.prototype.I=n("g");function kh(a,b){if(x(b)){var c,d=z(b);if(d in a.d)return a.d[d];c=Xa(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}jh.prototype.s=function(){this.a=3;F(this.c,J);this.c=k;K(this,"change")};jh.prototype.u=function(){this.a=2;F(this.c,J);this.c=k;K(this,"change")};
function lh(a){0==a.a&&(a.a=1,a.c=[Oc(a.b,"error",a.s,l,a),Oc(a.b,"load",a.u,l,a)],a.b.src=a.i)};function Rh(a){this.a=a.resolutions;this.i=this.a.length;this.d=x(a.origin)?a.origin:k;this.f=k;x(a.origins)&&(this.f=a.origins);this.c=k;x(a.tileSizes)&&(this.c=a.tileSizes);this.e=x(a.tileSize)?a.tileSize:this.c===k?new Qe(256,256):k}Rh.prototype.b=function(a,b,c){for(var d=Sh(this,a),a=a.n-1;0<=a&&!b.call(c,a,Th(this,d,this.a[a]));)--a};function Uh(a,b){return a.d===k?a.f[b]:a.d}Rh.prototype.nb=n("a");
function Th(a,b,c){var d=Vh(a,new L(b.h,b.l),c),a=Vh(a,new L(b.j,b.k),c,i);return new Af(d.x,d.y,a.x,a.y)}function Wh(a,b){var c=Uh(a,b.n),d=a.a[b.n],e=Xh(a,b.n);return new L(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function Sh(a,b){var c=Uh(a,b.n),d=a.a[b.n],e=Xh(a,b.n),f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new O(f,c,f+e.width*d,c+e.height*d)}
function Vh(a,b,c,d){var e=ug(a.a,c),f=c/a.a[e],h=Uh(a,e),j=Xh(a,e),a=f*(b.x-h.x)/(c*j.width),b=f*(b.y-h.y)/(c*j.height);d?(a=Math.ceil(a)-1,b=Math.ceil(b)-1):(a=Math.floor(a),b=Math.floor(b));return new yf(e,a,b)}function Xh(a,b){return a.e===k?a.c[b]:a.e}function Yh(a){var b=a.f;b===k&&(b=Zh(a),a.f=b);return b}
function Zh(a,b,c){for(var a=a.I(),d=Math.max(a.j-a.h,a.k-a.l),c=x(c)?c:new Qe(256,256),b=Array((x(b)?b:42)+1),d=d/c.width,e=0,f=b.length;e<f;++e)b[e]=d/Math.pow(2,e);return new Rh({origin:a.Gc(),resolutions:b,tileSize:c})};function $h(a){bg.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.G=x(a.opaque)?a.opaque:l;this.tileGrid=x(a.tileGrid)?a.tileGrid:k}D($h,bg);$h.prototype.g=ie;$h.prototype.e=function(a,b,c,d){var e=i,f,h,j,m;for(j=d.h;j<=d.j;++j)for(m=d.l;m<=d.k;++m)if(f=new yf(c,j,m),h=f.toString(),!a[c]||!a[c][h])f=b(f),f===k?e=l:(a[c]||(a[c]={}),a[c][h]=f);return e};$h.prototype.nb=function(){return this.tileGrid.nb()};
function ai(a,b,c,d){for(var e,f,h;0<=b;--b){e=Th(d,c,d.a[b]);for(f=e.h;f<=e.j;++f)for(h=e.l;h<=e.k;++h)a.u(b+"/"+f+"/"+h)}}$h.prototype.u=da;function bi(a,b){M.call(this);this.u=a;this.a=b;this.t={};I(this.a,Ke("brightness"),this.bc,l,this);I(this.a,Ke("contrast"),this.cc,l,this);I(this.a,Ke("hue"),this.dc,l,this);I(this.a,"load",this.Xd,l,this);I(this.a,Ke("opacity"),this.Yd,l,this);I(this.a,Ke("saturation"),this.ec,l,this);I(this.a,Ke("visible"),this.$d,l,this)}D(bi,M);function ci(a){K(a,"change")}p=bi.prototype;p.la=n("u");p.bc=da;p.cc=da;p.dc=da;p.ac=function(a){2===a.target.a&&yg(this.u.map)};p.Xd=function(){ci(this)};p.Yd=function(){ci(this)};
p.ec=da;p.$d=function(){ci(this)};p.ne=function(a){a=a.target;2===a.a&&yg(this.u.map);delete this.t[a.b()]};function di(a,b){var c=b.b();c in a.t||(a.t[c]=i,Oc(b,"change",a.ne,l,a))}function ei(a,b){b.g()&&a.Fa.push(sa(function(a,b,e){b=z(a).toString();a.Pa(e.ab[b])},b))}function fi(a,b){if(b!=k){var c,d;for(c=0;c<b.length;++c)d=b[c],a[z(d).toString()]=d}}function gi(a,b,c,d){b=z(b).toString();c=c.toString();b in a?c in a[b]?Se(a[b][c],d):a[b][c]=d:(a[b]={},a[b][c]=d)}
function hi(a,b,c){b=z(b).toString();c=c.toString();b in a||(a[b]={});a[b][c]=i}function ii(a,b,c,d){return function(e){e=b.b(e,c,d);return a(e)?e:k}}function ji(a,b,c){return new L(b*(Math.round(a.x/b)+c.width%2/2),b*(Math.round(a.y/b)+c.height%2/2))};function ki(a,b){tc.call(this);this.T=a;this.map=b;this.d={};this.B=I(b,Ke(li),this.be,l,this);this.e=k;this.t={}}D(ki,tc);p=ki.prototype;p.bd=function(a){var b=this.gb(a),a=z(a);this.d[a]=b;this.t[a]=I(b,"change",this.Zd,l,this);mi(this.map)};
function ni(a){var b=a.v,c=a.Ac;af(c);ef(c,a.size.width/2,a.size.height/2);ff(c,1/b.resolution,-1/b.resolution);xf(c,-b.rotation);ef(c,-b.center.x,-b.center.y);var a=a.cd,b=c[0],d=c[1],e=c[2],f=c[3],h=c[4],j=c[5],m=c[6],q=c[7],v=c[8],s=c[9],A=c[10],u=c[11],t=c[12],y=c[13],w=c[14],c=c[15],B=b*j-d*h,E=b*m-e*h,Q=b*q-f*h,H=d*m-e*j,R=d*q-f*j,Y=e*q-f*m,Z=v*y-s*t,ea=v*w-A*t,ma=v*c-u*t,wa=s*w-A*y,Ea=s*c-u*y,Aa=A*c-u*w,S=B*Aa-E*Ea+Q*wa+H*ma-R*ea+Y*Z;0!=S&&(S=1/S,a[0]=(j*Aa-m*Ea+q*wa)*S,a[1]=(-d*Aa+e*Ea-f*
wa)*S,a[2]=(y*Y-w*R+c*H)*S,a[3]=(-s*Y+A*R-u*H)*S,a[4]=(-h*Aa+m*ma-q*ea)*S,a[5]=(b*Aa-e*ma+f*ea)*S,a[6]=(-t*Y+w*Q-c*E)*S,a[7]=(v*Y-A*Q+u*E)*S,a[8]=(h*Ea-j*ma+q*Z)*S,a[9]=(-b*Ea+d*ma-f*Z)*S,a[10]=(t*R-y*Q+c*B)*S,a[11]=(-v*R+s*Q-u*B)*S,a[12]=(-h*wa+j*ea-m*Z)*S,a[13]=(b*wa-d*ea+e*Z)*S,a[14]=(-t*H+y*E-w*B)*S,a[15]=(v*H-s*E+A*B)*S)}p.gb=function(a){return new bi(this,a)};p.r=function(){Ua(this.d,function(a){yc(a)});J(this.B);this.e===k||F(this.e,J);ki.z.r.call(this)};p.kb=ke;
function oi(a,b){var c=z(b);return a.d[c]}p.Zd=function(){mi(this.map)};p.ae=function(a){this.bd(a.a)};p.be=function(){xc(Va(this.d));this.d={};this.e!==k&&(F(this.e,J),this.e=k);var a=this.map.e();a!=k&&(a.forEach(this.bd,this),this.e=[I(a,"add",this.ae,l,this),I(a,"remove",this.ce,l,this)])};p.ce=function(a){a=z(a.a);if(a in this.d){var b=this.d[a];delete this.d[a];J(this.t[a]);delete this.t[a];a=b}else a=k;yc(a);mi(this.map)};p.Eb=da;function pi(a,b,c,d,e){d={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:i,WIDTH:Math.round(d.width),HEIGHT:Math.round(d.height)};$a(d,b);d.STYLES=b.STYLES||new String("");b="1.3"<d.VERSION;d[b?"CRS":"SRS"]=e.a;e=e.d;d.BBOX=(b&&"ne"==e.substr(0,2)?[c.l,c.h,c.k,c.j]:[c.h,c.l,c.j,c.k]).join(",");return zd(Bd([a],d))};function qi(a,b){return function(c,d,e){return pi(a,b,c,d,e)}}function ri(){};function si(a){bg.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Ua=x(a.Ua)?a.Ua:ri;this.e=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=x(a.resolutions)?a.resolutions:k}D(si,bg);function ti(a,b,c,d,e){var f=k,d=a.Ua(b,d,e);x(d)&&(f=new jh(b,c,d,a.e,a.za()));return f};function ui(a){P.call(this,a)}D(ui,P);function vi(a){P.call(this,a)}D(vi,P);function wi(a){a=a?a:{};this.b=[];this.d=[];this.e=[];this.a=a.P||2;this.c=a.offset||k}function xi(a,b){for(var c=a.b.length,d=a.c,e=a.a,f=b.length,h,j,m=0;m<f;++m)if(h=b[m],d){j=c+m*e;for(var q=0;q<e;++q)a.b[j+q]=h[q]-d[q]}else Array.prototype.push.apply(a.b,h);c=a.d.push(c);a.e.push(f);return c-1}function yi(a,b,c,d){b=a.b[a.d[b]+c*a.a+d];a.c&&(b+=a.c[d]);return b}wi.prototype.J=function(a){return this.e[a]};function zi(){this.a=k}var Ai={Bf:"point",uf:"linestring",tf:"linearring",Cf:"polygon",yf:"multipoint",xf:"multilinestring",zf:"multipolygon",pf:"geometrycollection"};function Bi(a){M.call(this,a);this.b=k}D(Bi,M);p=Bi.prototype;p.Qa=function(){var a=this.ba(),b=a.length,c={},d,e;for(d=0;d<b;++d)e=a[d],c[e]=this.q(e);return c};p.sa=function(){return x(this.a)?this.q(this.a):k};p.p=function(a,b){!x(this.a)&&b instanceof zi&&(this.a=a);Bi.z.p.call(this,a,b)};p.gd=function(a){x(this.a)||(this.a="geometry");this.p(this.a,a)};p.Pe=function(a){this.b=a};function Ci(a){bg.call(this,a)}D(Ci,bg);function Di(a,b,c,d,e,f){Re.call(this,a,b,c,d);this.c=e;this.d=f;this.b={};this.a=[]}D(Di,Re);function Ei(a,b,c,d){if(a.ha(b)&&(!x(d)||a.b[d]===i)){var e=a.a.length;if(0===e)x(a.e)&&(c[a.f]=a.e);else for(var f=0;f<e;++f)Ei(a.a[f],b,c,d)}}function Fi(a,b){if(a.ha(b)){var c=a.a.length;if(0===c)return a.c===k?a:a.c;for(var d,e=0;e<c;++e)if(d=Fi(a.a[e],b),x(d))return d;return a}}function Gi(a,b){Se(a,b);a.c===k||Gi(a.c,b)}
function Hi(){this.a=new Di(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,k,0)}function Ii(a,b,c){var d={};Ei(a.a,b,d,c);return d};function Ji(a){x(a)&&(this.a=a)};function Ki(){}function Li(){};function Mi(a){this.a=x(a.filter)?a.filter:k;this.b=x(a.symbolizers)?a.symbolizers:[]};function Ni(a){this.a=x(a.rules)?a.rules:[]}Ni.prototype.apply=function(a){for(var b=this.a,c=[],d,e=0,f=b.length;e<f;++e)if(d=b[e],d.a===k||d.a.a(a)){d=d.b;for(var h=0,j=d.length;h<j;++h)c.push(d[h].a(a))}return c};function Oi(a){Ji.call(this);this.b=a}D(Oi,Ji);Oi.prototype.I=n("b");Oi.prototype.a=function(a){return a.sa().d().ha(this.b)};function Pi(a){Ji.call(this);this.b=a}D(Pi,Ji);Pi.prototype.a=function(a){a=a.sa();return a===k?l:a.c()===this.b};function Qi(a,b){Ji.call(this);this.b=a;this.c=b}D(Qi,Ji);Qi.prototype.a=function(a){for(var b=this.b,c=0,d=b.length,e=this.c,f=e(i,l),h=f;h===f&&c<d;)h=e(h,b[c].a(a)),++c;return h};function Ri(a,b){return a&&b}function Si(a,b){return a||b}var Ti={a:Ri,b:Si};function Ui(){this.clear()}Ui.prototype.clear=function(){this.a={};var a={},b;for(b in Ai)a[Ai[b]]={};this.c=a;this.b=new Hi};function Vi(a){P.call(this,a);this.Pb=x(a.style)?a.style:k;this.w=new Ui;this.b=new wi;this.a=new wi;this.c=new wi}D(Vi,P);
Vi.prototype.xa=function(a,b,c){function d(a,b){return f[b]}var e,f={point:this.b,linestring:this.a,polygon:this.c,multipoint:this.b,multilinstring:this.a,multipolygon:this.c};"string"===typeof a?(e={fb:d},a=JSON.parse(a),e=Wi(a,e)):"object"===typeof a?e=Wi(a,{fb:d}):aa(Error("Data type not supported: "+a));c=$f(this.da().c,c);c(this.b.b,this.b.b,this.b.a);c(this.a.b,this.a.b,this.a.a);c(this.c.b,this.c.b,this.c.a);c=e;a=0;for(e=c.length;a<e;++a){var b=this.w,h=c[a],j=z(h).toString(),m=h.sa();b.a[j]=
h;if(m!==k){var q=m.c();b.c[q][j]=h;j=m.d();if(b=Fi(b.b.a,j))if(m=new Di(j.h,j.l,j.j,j.k,b,b.d+1),m.e=h,m.f=z(h).toString(),b.a.push(m),Gi(b,j),x(q)&&(m.b[q]=i,b.b[q]=i),6<=b.a.length&&6>b.d&&(j=b.a.length,0!==j))for(var q=Math.ceil(j/2),m=h=g,v=0;v<j;++v)h=b.a[v],0===v%q&&(m=new Di(h.h,h.l,h.j,h.k,b,b.d+1),$a(b.b,m.b),b.a.push(m)),h.c=m,$a(m.b,h.b),m.a.push(h),Se(m,h)}}K(this,"change")};function Xi(a,b){bi.call(this,a,b)}D(Xi,bi);function Yi(a,b){bi.call(this,a,b);this.b=k;this.c=Xe()}D(Yi,Xi);Yi.prototype.M=function(){return this.b===k?k:kh(this.b,this)};Yi.prototype.Ub=n("c");
Yi.prototype.oa=function(a){var b=a.v,c=b.center,d=b.resolution,e=b.rotation,f=this.a.da(),h=a.F;!h[0]&&!h[1]&&(b=f.M(a.extent,d,b.projection),b!==k&&(f=b.a,0==f?(Oc(b,"change",this.ac,l,this),lh(b)):2==f&&(this.b=b)));if(this.b!==k){var b=this.b,f=b.I(),h=b.e,j=this.c;af(j);ef(j,a.size.width/2,a.size.height/2);xf(j,e);ff(j,h/d,h/d);ef(j,(f.h-c.x)/h,(c.y-f.k)/h);fi(a.attributions,b.za())}};function Zi(a,b){bi.call(this,a,b);this.e=this.c=this.d=k;this.f=Xe();this.b=k}D(Zi,Xi);Zi.prototype.M=n("d");Zi.prototype.Ub=n("f");
Zi.prototype.oa=function(a){var b=a.v,c=b.projection,d=this.a.da(),e=z(d).toString(),f=d.tileGrid;f===k&&(f=Yh(c));var h=ug(f.a,b.resolution),j=Xh(f,h),m=f.a[h],q=b.center,v;m==b.resolution?(q=ji(q,m,a.size),v=Ue(q,m,b.rotation,a.size)):v=a.extent;var s=Th(f,v,m),A=s.ma(),u=s.ga(),j=new Qe(j.width*A,j.height*u),t,y;this.d===k?(t=fc("CANVAS"),t.width=j.width,t.height=j.height,y=t.getContext("2d"),this.d=t,this.c=j,this.e=y,this.b=Array(A*u)):(t=this.d,y=this.e,this.c.width==j.width&&this.c.height==
j.height||(t.width=j.width,t.height=j.height,this.c=j,this.b=Array(A*u)));u={};u[h]={};var j=ra(d.e,d,u,ii(function(a){return a!==k&&2==a.a},d,f,c)),w,B,E,Q,H;for(Q=s.h;Q<=s.j;++Q)for(H=s.l;H<=s.k;++H){B=new yf(h,Q,H);w=d.b(B,f,c);E=w.a;if(0==E)hi(a.bb,d,B),t=Wh(f,B),Ef(a.mc,w,e,t);else if(1==E)di(this,w);else if(2==E||4==E){u[h][B.toString()]=w;continue}else if(3==E)continue;f.b(B,j)}e=Ga(Wa(u),Number);Sa(e);t=d.G;var c=Sh(f,new yf(h,s.h,s.k)).ob(),R,Y,Z,ea,ma,wa;for(R=0;R<e.length;++R)if(B=e[R],
j=Xh(f,B),ea=u[B],B==h)for(Y in ea)w=ea[Y],B=w.fa,B=(B.y-s.l)*A+(B.x-s.h),this.b[B]!=w&&(Q=j.width*(w.fa.x-s.h),H=j.height*(s.k-w.fa.y),E=w.a,(4==E||!t)&&y.clearRect(Q,H,j.width,j.height),2==E&&y.drawImage(w.M(),Q,H),this.b[B]=w);else for(Y in B=f.a[B]/m,ea){w=ea[Y];Z=Sh(f,w.fa);Q=(Z.h-c.x)/m;H=(c.y-Z.k)/m;wa=B*j.width;ma=B*j.height;E=w.a;(4==E||!t)&&y.clearRect(Q,H,wa,ma);2==E&&y.drawImage(w.M(),Q,H,wa,ma);H=Th(f,Z,f.a[h]);E=Math.max(H.h,s.h);w=Math.min(H.j,s.j);Q=Math.max(H.l,s.l);for(H=Math.min(H.k,
s.k);E<=w;++E)for(Z=Q;Z<=H;++Z)this.b[(Z-s.l)*A+(E-s.h)]=g}gi(a.ab,d,h,s);ai(d,h,v,f);ei(a,d);d=this.f;af(d);ef(d,a.size.width/2,a.size.height/2);xf(d,b.rotation);ff(d,m/b.resolution,m/b.resolution);ef(d,(c.x-q.x)/m,(q.y-c.y)/m)};function $i(){this.o=0;this.c={};this.b=this.a=k}p=$i.prototype;p.clear=function(){this.o=0;this.c={};this.b=this.a=k};function aj(a,b){return a.c.hasOwnProperty(b)}p.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.U,c.Q,this),c=c.ea};function bj(a,b){var c=a.c[b];if(c===a.b)return c.U;c===a.a?(a.a=a.a.ea,a.a.va=k):(c.ea.va=c.va,c.va.ea=c.ea);c.ea=k;c.va=a.b;a.b.ea=c;a.b=c;return c.U}p.J=n("o");p.ba=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.va)a[b++]=c.Q;return a};
p.W=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.va)a[b++]=c.U;return a};p.pop=function(){var a=this.a;delete this.c[a.Q];a.ea!==k&&(a.ea.va=k);this.a=a.ea;this.a===k&&(this.b=k);--this.o;return a.U};function cj(a,b,c){c={Q:b,ea:k,va:a.b,U:c};a.b===k?a.a=c:a.b.ea=c;a.b=c;a.c[b]=c;++a.o};function dj(a){$i.call(this);this.d=x(a)?a:512}D(dj,$i);dj.prototype.Pa=function(a){for(var b,c;this.J()>this.d&&!(b=this.a.U,c=b.fa.n.toString(),c in a&&a[c].contains(b.fa));)this.pop()};function ej(a,b){this.a=k;var c=b;x(c)||(c=a[0].length,c=new wi({P:c}));this.a=c;this.b=xi(c,a);this.P=c.a;this.e=k}D(ej,zi);ej.prototype.J=function(){return this.a.J(this.b)};ej.prototype.d=function(){if(this.e===k){var a=this.P,b=this.a,c=this.b,d=b.J(c),e=b.d[c],d=e+d*a,b=b.b,f,h,j,m,q,c=f=b[e];h=j=b[e+1];for(q=e+a;q<d;q+=a)e=b[q],m=b[q+1],e<c?c=e:e>f&&(f=e),m<h?h=m:m>j&&(j=m);this.e=new O(c,h,f,j)}return this.e};ej.prototype.c=ca("linestring");function fj(){this.bounds=this.b=this.a=k}D(fj,zi);fj.prototype.d=function(){if(this.bounds===k){var a,b=a=Number.POSITIVE_INFINITY,c,d=c=Number.NEGATIVE_INFINITY,e=this.b,f=e.length,h,j;for(j=0;j<f;++j)h=e[j].d(),a=Math.min(h.h,a),b=Math.min(h.l,b),c=Math.max(h.j,c),d=Math.max(h.k,d);this.bounds=new O(a,b,c,d)}return this.bounds};function gj(a,b){fj.call(this);var c=b;x(c)||(c=a[0][0].length,c=new wi({P:c}));var d=a.length;this.b=Array(d);for(var e=0;e<d;++e)this.b[e]=new ej(a[e],c);this.P=c.a}D(gj,fj);gj.prototype.c=ca("multilinestring");function hj(a,b){this.a=k;var c=b;x(c)||(c=a.length,c=new wi({P:c}));this.a=c;this.b=xi(c,[a]);this.P=c.a;this.e=k}D(hj,zi);hj.prototype.d=function(){if(this.e===k){var a=yi(this.a,this.b,0,0),b=yi(this.a,this.b,0,1);this.e=new O(a,b,a,b)}return this.e};hj.prototype.c=ca("point");function ij(a,b){fj.call(this);var c=b;x(c)||(c=a[0].length,c=new wi({P:c}));this.a=c;var d=a.length;this.b=Array(d);for(var e=0;e<d;++e)this.b[e]=new hj(a[e],c);this.P=c.a}D(ij,fj);ij.prototype.c=ca("multipoint");function jj(a,b){ej.call(this,a,b)}D(jj,ej);jj.prototype.c=ca("linearring");function kj(a,b){this.a=k;var c=b;x(c)||(c=a[0][0].length,c=new wi({P:c}));this.a=c;var d=a.length;this.b=Array(d);for(var e=0;e<d;++e)this.b[e]=new jj(a[e],c);this.P=c.a;this.e=k}D(kj,zi);kj.prototype.d=function(){return this.b[0].d()};kj.prototype.c=ca("polygon");function lj(a,b){fj.call(this);var c=b;x(c)||(c=a[0][0][0].length,c=new wi({P:c}));var d=a.length;this.b=Array(d);for(var e=0;e<d;++e)this.b[e]=new kj(a[e],c);this.P=c.a}D(lj,fj);lj.prototype.c=ca("multipolygon");function mj(a){this.b=a}mj.prototype.a=function(a,b){var c=x(a)?a:r,d=x(b)?b:r,e=[],f=[],h;for(h in d)e.push(h),f.push(d[h]);return(new Function(e.join(","),"return "+this.b)).apply(c,f)};function U(a){this.U=a}D(U,mj);U.prototype.a=n("U");function nj(){}D(nj,Ki);function oj(a){this.url=a.url;this.width=a.width;this.height=a.height;this.opacity=a.opacity;this.rotation=a.rotation}D(oj,nj);oj.prototype.a=function(a){return this.url==a.type&&this.width==a.width&&this.height==a.height&&this.opacity==a.opacity&&this.rotation==a.rotation};
function pj(a){this.e=a.url instanceof mj?a.url:new U(a.url);this.d=!x(a.width)?k:a.width instanceof mj?a.width:new U(a.width);this.b=!x(a.height)?k:a.height instanceof mj?a.height:new U(a.height);this.c=!x(a.opacity)?new U(qj.opacity):a.opacity instanceof mj?a.opacity:new U(a.opacity);this.f=!x(a.rotation)?new U(qj.rotation):a.rotation instanceof mj?a.rotation:new U(a.rotation)}
pj.prototype.a=function(a){var b=a.Qa(),c=this.e.a(a,b),d=this.d===k?g:this.d.a(a,b),e=this.b===k?g:this.b.a(a,b),f=this.c.a(a,b),a=this.c.a(a,b);return new oj({url:c,width:d,height:e,opacity:f,rotation:a})};var qj=new oj({url:"#",opacity:1,rotation:0});function rj(a){this.strokeColor=a.strokeColor;this.strokeWidth=a.strokeWidth;this.opacity=a.opacity}D(rj,Ki);rj.prototype.a=function(a){return this.strokeColor==a.strokeColor&&this.strokeWidth==a.strokeWidth&&this.opacity==a.opacity};
function sj(a){this.c=!x(a.strokeColor)?new U(tj.strokeColor):a.strokeColor instanceof mj?a.strokeColor:new U(a.strokeColor);this.d=!x(a.strokeWidth)?new U(tj.strokeWidth):a.strokeWidth instanceof mj?a.strokeWidth:new U(a.strokeWidth);this.b=!x(a.opacity)?new U(tj.opacity):a.opacity instanceof mj?a.opacity:new U(a.opacity)}D(sj,Li);sj.prototype.a=function(a){var b;x(a)&&(b=a.Qa());var c=this.c.a(a,b),d=this.d.a(a,b),a=this.b.a(a,b);return new rj({strokeColor:c,strokeWidth:d,opacity:a})};
var tj=new rj({strokeColor:"#696969",strokeWidth:1.5,opacity:0.75});function uj(a){this.fillColor=a.fillColor;this.strokeColor=a.strokeColor;this.strokeWidth=a.strokeWidth;this.opacity=a.opacity}D(uj,Ki);uj.prototype.a=function(a){return this.fillColor==a.fillColor&&this.strokeColor==a.strokeColor&&this.strokeWidth==a.strokeWidth&&this.opacity==a.opacity};
function vj(a){this.b=a.fillColor==k?k:a.fillColor instanceof mj?a.fillColor:new U(a.fillColor);var b=k,c=k;if(a.strokeColor!=k||a.strokeWidth!=k)b=a.strokeColor==k?new U(wj.strokeColor):a.strokeColor instanceof mj?a.strokeColor:new U(a.strokeColor),c=!x(a.strokeWidth)?new U(wj.strokeWidth):a.strokeWidth instanceof mj?a.strokeWidth:new U(a.strokeWidth);this.c=b;this.d=c;this.e=!x(a.opacity)?new U(wj.opacity):a.opacity instanceof mj?a.opacity:new U(a.opacity)}D(vj,Li);
vj.prototype.a=function(a){var b;x(a)&&(b=a.Qa());var c=this.b===k?g:this.b.a(a,b),d=this.c===k?g:this.c.a(a,b),e=this.d===k?g:this.d.a(a,b),a=this.e.a(a,b);return new uj({fillColor:c,strokeColor:d,strokeWidth:e,opacity:a})};var wj=new uj({fillColor:"#ffffff",strokeColor:"#696969",strokeWidth:1.5,opacity:0.75});var xj={ef:"circle"};function yj(a){this.type=a.type;this.size=a.size;this.fillColor=a.fillColor;this.strokeColor=a.strokeColor;this.strokeWidth=a.strokeWidth;this.opacity=a.opacity}D(yj,nj);yj.prototype.a=function(a){return this.type==a.type&&this.size==a.size&&this.fillColor==a.fillColor&&this.strokeColor==a.strokeColor&&this.strokeWidth==a.strokeWidth&&this.opacity==a.opacity};
function zj(a){this.g=x(a.type)?a.type:Aj.type;this.f=!x(a.size)?new U(Aj.size):a.size instanceof mj?a.size:new U(a.size);this.b=a.fillColor==k?k:a.fillColor instanceof mj?a.fillColor:new U(a.fillColor);var b=k,c=k;if(a.strokeColor!=k||a.strokeWidth!=k)b=a.strokeColor==k?new U(Aj.strokeColor):a.strokeColor instanceof mj?a.strokeColor:new U(a.strokeColor),c=!x(a.strokeWidth)?new U(Aj.strokeWidth):a.strokeWidth instanceof mj?a.strokeWidth:new U(a.strokeWidth);this.c=b;this.d=c;this.e=!x(a.opacity)?
new U(Aj.opacity):a.opacity instanceof mj?a.opacity:new U(a.opacity)}zj.prototype.a=function(a){var b;x(a)&&(b=a.Qa());var c=this.f.a(a,b),d=this.b===k?g:this.b.a(a,b),e=this.c===k?g:this.c.a(a,b),f=this.d===k?g:this.d.a(a,b),a=this.e.a(a,b);return new yj({type:this.g,size:c,fillColor:d,strokeColor:e,strokeWidth:f,opacity:a})};var Aj=new yj({type:"circle",size:5,fillColor:"#ffffff",strokeColor:"#696969",strokeWidth:1.5,opacity:0.75});function Bj(a,b,c){var a=a.getContext("2d"),d=x(g)?g.x:0,e=x(g)?g.y:0;this.d=b;a.setTransform(b[0],b[1],b[4],b[5],b[12]+d,b[13]+e);var d=[1,0,0],e=d[0],f=d[1],h=d[2];d[0]=e*b[0]+f*b[4]+h*b[8];d[1]=e*b[1]+f*b[5]+h*b[9];d[2]=e*b[2]+f*b[6]+h*b[10];this.b=1/Math.sqrt(d[0]*d[0]+d[1]*d[1]);this.a=a;this.c=c}
function Cj(a,b){var c=a.url,d=Dj[c],e=l;if(x(d)){if(d!==k){var c=a.width,f=a.height;x(c)&&x(f)?(d.width=c,d.height=f):x(c)?(d.height*=c/d.width,d.width=c):x(f)&&(d.width*=f/d.height,d.height=f)}}else e=i,d=fc("IMG"),Oc(d,"error",ra(Ej,k,b),l,Cj),Oc(d,"load",ra(Fj,k,b),l,Cj),d.setAttribute("src",c),Dj[c]=d;return e?k:d}var Dj={};function Ej(a,b){if(x(b)){var c=b.target.getAttribute("src");Dj[c]=k;Fj(a,b)}}function Fj(a,b){if(x(b)){var c=b.target.getAttribute("src");Dj[c]=b.target}x(a)&&a()};function Gj(a,b){bi.call(this,a,b);this.d=fc("CANVAS");this.G=this.d.getContext("2d");this.g=Xe();this.T=fc("CANVAS");this.Z=Xe();this.b=new dj(Hj);Oc(b,"change",this.Wd,l,this);this.c=k;this.B=[new Pi("point"),new Pi("multipoint"),new Pi("linestring"),new Pi("multilinestring"),new Pi("polygon"),new Pi("multipolygon")];this.i=k;this.e=this.ka=l;this.f=k;this.w=ra(function(){this.ka=i;yg(a.map)},this)}D(Gj,Xi);p=Gj.prototype;p.M=n("d");p.Ub=n("g");p.Wd=function(){this.b.clear();this.w()};
p.oa=function(a){var b=a.v,c=b.resolution,d=a.extent,e=this.a,f=this.f;f===k&&(this.f=f=Zh(b.projection,22,new Qe(512,512)));var h=ug(f.a,c),j=f.a[h],m=Th(f,d,j),q,v=Uh(f,h),s=f.a[h],A=Xh(f,h);q=new O(v.x+m.h*A.width*s,v.y+m.l*A.height*s,v.x+(m.j+1)*A.width*s,v.y+(m.k+1)*A.height*s);var u=Xh(f,h),t=q.ob(),y=this.g;af(y);ef(y,a.size.width/2,a.size.height/2);ff(y,j/c,j/c);xf(y,b.rotation);ef(y,(t.x-b.center.x)/j,(b.center.y-t.y)/j);if(this.ka||!(this.K===j&&this.i.toString()===q.toString())){this.c===
k&&(this.c=fc("CANVAS"),this.c.width=u.width,this.c.height=u.height);var w=this.T,B=new Qe(u.width*m.ma(),u.height*m.ga()),E=this.Z,Q=B.width/2,H=B.height/2;af(E);ef(E,Q,H);ff(E,1/j,-1/j);ef(E,-(t.x+Q*j),-(t.y-H*j));w.width=B.width;w.height=B.height;var R=new Bj(w,E,this.w),Y=this.d;Y.width=B.width;Y.height=B.height;var Z=this.G,ea={},ma={},wa={},Ea=15*j,Aa,S,Ia,vb,wb,dk=this.B,Rm=dk.length,ek=l,gf,mh,mb,fk,nc,nh,oh,hf,gk;for(vb=m.h;vb<=m.j;++vb)for(wb=m.l;wb<=m.k;++wb)if(S=new yf(h,vb,wb),Ia=S.toString(),
aj(this.b,Ia))ma[Ia]=S;else if(!a.F[0]){mb=Sh(f,S);mb.h-=Ea;mb.l-=Ea;mb.j+=Ea;mb.k+=Ea;fk=new Oi(mb);for(gf=0;gf<Rm;++gf){mh=dk[gf];nc=mh.b;x(ea[nc])||(ea[nc]={});var Sm=$a,Tm=ea[nc],Od=e.w,Cb=new Qi([mh,fk],Ri),oc=g,Wb=g;if(x(Cb)){if(Cb instanceof Pi)Wb=Od.c[Cb.b];else if(Cb instanceof Oi)Wb=Ii(Od.b,Cb.I());else if(Cb instanceof Qi&&Cb.c===Ri){var hk=Cb.b;if(2===hk.length){for(var Pd=g,ph=g,qh=g,oc=0;1>=oc;++oc)Pd=hk[oc],Pd instanceof Pi?ph=Pd:Pd instanceof Oi&&(qh=Pd);qh&&ph&&(Wb=Ii(Od.b,qh.I(),
ph.b))}}if(!x(Wb)){var ik=Od.a,rh=g,Wb={};for(oc in ik)rh=ik[oc],Cb.a(rh)===i&&(Wb[oc]=rh)}}else Wb=Od.a;Sm(Tm,Wb)}wa[Ia]=S}for(nc in ea){var jk=ea[nc],Qd={},Rd=[],kk=e.Pb,lk=g,jf=g,mk=g,kf=g,Sd=g,nk=g,Td=g,sh=g,lf=g;for(lk in jk){var mf=kf=jk[lk],th=k;if(mf.b!==k)for(var ok=mf.b.length,th=Array(ok),nf=0;nf<ok;++nf)th[nf]=mf.b[nf].a(mf);Sd=th;if(Sd===k){var uh;if(kk===k){var pk=kf.sa(),of=[];if(pk!==k){var pc=pk.c();"point"===pc||"multipoint"===pc?of.push(Aj):"linestring"===pc||"multilinestring"===
pc?of.push(tj):("linearring"===pc||"polygon"===pc||"multipolygon"===pc)&&of.push(wj)}uh=of}else uh=kk.apply(kf);Sd=uh}nk=Sd.length;for(jf=0;jf<nk;++jf){Td=Sd[jf];for(mk in Qd)if(sh=Rd[Qd[mk]][1],Td.a(sh)){Td=sh;break}lf=z(Td);lf in Qd||(Qd[lf]=Rd.length,Rd.push([[],Td]));Rd[Qd[lf]][0].push(kf)}}nh=Rd;gk=nh.length;for(hf=0;hf<gk;++hf){oh=nh[hf];var vh=R,qk=nc,wh=oh[0],xh=oh[1],yh=l;switch(qk){case "point":case "multipoint":var zh=vh,rk=wh,Xb=xh,Ud=zh.a,Yb=g,Ah=g,pf=g,sk=g,qf=g,Bh=g,rf=g,tk=g,Vd=g,
Ch=g;if(Xb instanceof yj){var uk=g;if("circle"===Xb.type){var Pc=Xb,vk=Pc.strokeWidth||0,Dh=Pc.size+2*vk+1,wk=Dh/2,sf=fc("CANVAS"),nb=sf.getContext("2d"),Eh=Pc.fillColor,Fh=Pc.strokeColor,Um=2*Math.PI;sf.height=Dh;sf.width=Dh;nb.globalAlpha=Pc.opacity;Eh&&(nb.fillStyle=Eh);Fh&&(nb.lineWidth=vk,nb.strokeStyle=Fh,nb.lineCap="round",nb.lineJoin="round");nb.beginPath();nb.arc(wk,wk,Pc.size/2,0,Um,i);Eh&&nb.fill();Fh&&nb.stroke();uk=sf}else aa(Error("Unsupported shape type: "+Xb));Yb=uk;Ah=1}else Xb instanceof
oj?(Yb=Cj(Xb,zh.c),Ah=Xb.opacity):aa(Error("Unsupported symbolizer: "+Xb));if(Yb===k)yh=i;else{var Vm=Yb.width/2,Wm=Yb.height/2;Ud.save();Ud.setTransform(1,0,0,1,-Vm,-Wm);Ud.globalAlpha=Ah;pf=0;for(sk=rk.length;pf<sk;++pf){qf=rk[pf].sa();Bh=qf instanceof hj?[qf]:qf.b;rf=0;for(tk=Bh.length;rf<tk;++rf)Vd=Bh[rf],Ch=df(zh.d,[yi(Vd.a,Vd.b,0,0),yi(Vd.a,Vd.b,0,1),0],[]),Ud.drawImage(Yb,Ch[0],Ch[1],Yb.width,Yb.height)}Ud.restore();yh=l}break;case "linestring":case "multilinestring":var xk=vh,yk=wh,Gh=xh,
Db=xk.a,tf=g,zk=g,uf=g,Hh=g,vf=g,Ak=g,Qc=g,Rc=g,Bk=g,Ih=g,Jh=g;Db.globalAlpha=Gh.opacity;Db.strokeStyle=Gh.strokeColor;Db.lineWidth=Gh.strokeWidth*xk.b;Db.lineCap="round";Db.lineJoin="round";Db.beginPath();tf=0;for(zk=yk.length;tf<zk;++tf){uf=yk[tf].sa();Hh=uf instanceof ej?[uf]:uf.b;vf=0;for(Ak=Hh.length;vf<Ak;++vf){Qc=Hh[vf];Rc=0;for(Bk=Qc.J();Rc<Bk;++Rc)Ih=yi(Qc.a,Qc.b,Rc,0),Jh=yi(Qc.a,Qc.b,Rc,1),0===Rc?Db.moveTo(Ih,Jh):Db.lineTo(Ih,Jh)}}Db.stroke();break;case "polygon":case "multipolygon":var Ck=
vh,Dk=wh,Wd=xh,Ka=Ck.a,Kh=Wd.strokeColor,Xd=Wd.fillColor,Yd=g,Lh=g,wf=g,Mh=g,Zd=g,Nh=g,Ek=g,Oh=g,Fk=g,Sc=g,Tc=g,Gk=g,Ph=g,Qh=g;Ka.globalAlpha=Wd.opacity;Kh&&(Ka.strokeStyle=Wd.strokeColor,Ka.lineWidth=Wd.strokeWidth*Ck.b,Ka.lineCap="round",Ka.lineJoin="round");Xd&&(Ka.fillStyle=Xd);Ka.beginPath();Yd=0;for(Lh=Dk.length;Yd<Lh;++Yd){wf=Dk[Yd].sa();Mh=wf instanceof kj?[wf]:wf.b;Zd=0;for(Nh=Mh.length;Zd<Nh;++Zd)if(Ek=Mh[Zd],Oh=Ek.b,Fk=Oh.length,0<Fk){Sc=Oh[0];Tc=0;for(Gk=Sc.J();Tc<Gk;++Tc)Ph=yi(Sc.a,Sc.b,
Tc,0),Qh=yi(Sc.a,Sc.b,Tc,1),0===Tc?Ka.moveTo(Ph,Qh):Ka.lineTo(Ph,Qh);Xd&&Kh&&(Ka.fill(),Ka.stroke(),(Yd<Lh-1||Zd<Nh-1)&&Ka.beginPath())}}if(!Xd||!Kh)Xd?Ka.fill():Ka.stroke();break;default:aa(Error("Rendering not implemented for geometry type: "+qk))}if(ek=yh)break}ek||$a(ma,wa)}this.ka=i;for(Ia in ma)S=ma[Ia],aj(this.b,Ia)?Aa=bj(this.b,Ia):(Aa=this.c.cloneNode(l),Aa.getContext("2d").drawImage(w,(m.h-S.x)*u.width,(S.y-m.k)*u.height),cj(this.b,Ia,Aa)),Z.drawImage(Aa,u.width*(S.x-m.h),u.height*(m.k-
S.y)),this.ka=l;this.K=j;this.i=q;this.e||(this.e=i,a.Fa.push(ra(this.Le,this)))}};p.Le=function(){for(;this.b.J()>this.b.d;)this.b.pop();this.e=l};var Hj=128;function Ij(a,b){ki.call(this,a,b);this.f=new Qe(a.clientHeight,a.clientWidth);this.c=fc("CANVAS");this.c.height=this.f.height;this.c.width=this.f.width;this.c.className="ol-unselectable";ic(a,this.c);this.g=i;this.i=this.c.getContext("2d")}D(Ij,ki);Ij.prototype.gb=function(a){return a instanceof ui?new Yi(this,a):a instanceof vi?new Zi(this,a):a instanceof Vi?new Gj(this,a):k};Ij.prototype.kb=n("c");
Ij.prototype.Eb=function(a){if(a===k)this.g&&(ld(this.c,l),this.g=l);else{var b=a.size;this.f.width==b.width&&this.f.height==b.height||(this.c.width=b.width,this.c.height=b.height,this.f=b);var c=this.i;c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.c.toFixed(0)+","+d.b.toFixed(0)+","+d.a.toFixed(0)+")";c.globalAlpha=1;c.fillRect(0,0,b.width,b.height);ni(a);F(a.zb,function(b){var d=a.yb[z(b)];if(d.visible)if(d.Ib){var h=oi(this,b);h.oa(a,d);b=h.M();b!==k&&(h=h.Ub(),c.setTransform(h[0],
h[1],h[4],h[5],h[12],h[13]),c.globalAlpha=d.opacity,c.drawImage(b,0,0))}else a.$=i},this);this.g||(ld(this.c,i),this.g=i)}};var Jj=function(){if(!("HTMLCanvasElement"in r))return l;try{return fc("CANVAS").getContext("2d")!==k}catch(a){return l}}();function Kj(a,b){var c;if(x(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Lj(a,b,c){bi.call(this,a,b);this.target=c}D(Lj,bi);Lj.prototype.r=function(){jc(this.target);Lj.z.r.call(this)};function Mj(a,b){var c=fc("DIV");c.className="ol-layer-image";c.style.position="absolute";Lj.call(this,a,b,c);this.b=k;this.c=Ze()}D(Mj,Lj);
Mj.prototype.oa=function(a){var b=a.v,c=b.center,d=b.resolution,e=b.rotation,f=this.b,h=this.a.da(),j=a.F;!j[0]&&!j[1]&&(b=h.M(a.extent,d,b.projection),b!==k&&(h=b.a,0==h?(Oc(b,"change",this.ac,l,this),lh(b)):2==h&&(f=b)));f!==k&&(h=f.I(),j=f.e,b=Xe(),af(b),ef(b,a.size.width/2,a.size.height/2),xf(b,e),ff(b,j/d,j/d),ef(b,(h.h-c.x)/j,(c.y-h.k)/j),f!=this.b&&(c=kh(f,this),c.style.position="absolute",hc(this.target),this.target.appendChild(c),this.b=f),cf(b,this.c)||(Kj(this.target,b),$e(this.c,b)),fi(a.attributions,
f.za()))};function Nj(a,b){var c=fc("DIV");c.className="ol-layer-tile";c.style.position="absolute";Lj.call(this,a,b,c);this.c=i;this.d=1;this.b={}}D(Nj,Lj);
Nj.prototype.oa=function(a,b){if(b.visible){var c=a.v,d=c.projection,e=this.a.da(),f=z(e).toString(),h=e.tileGrid;h===k&&(h=Yh(d));var j=ug(h.a,c.resolution),m=h.a[j],q=c.center,v;m==c.resolution?(q=ji(q,m,a.size),v=Ue(q,m,c.rotation,a.size)):v=a.extent;var m=Th(h,v,m),s={};s[j]={};var A=ra(e.e,e,s,ii(function(a){return a!==k&&2==a.a},e,h,d)),u,t,y,w,B;for(w=m.h;w<=m.j;++w)for(B=m.l;B<=m.k;++B){y=new yf(j,w,B);u=e.b(y,h,d);t=u.a;if(0==t)hi(a.bb,e,y),t=Wh(h,y),Ef(a.mc,u,f,t);else if(1==t)di(this,u);
else if(2==t){s[j][y.toString()]=u;continue}else if(3==t||4==t)continue;h.b(y,A)}A=Ga(Wa(s),Number);Sa(A);var d={},E;for(u=0;u<A.length;++u){y=A[u];y in this.b?f=this.b[y]:(f=Vh(h,q,h.a[y]),f=new Oj(h,f),d[y]=i,this.b[y]=f);y=s[y];for(E in y){w=f;B=y[E];t=B.fa;var Q=t.toString();if(!(Q in w.b)){var H=Xh(w.c,t.n),R=B.M(w),Y=R.style;Y.position="absolute";Y.left=(t.x-w.d.x)*H.width+"px";Y.top=(w.d.y-t.y)*H.height+"px";w.a===k&&(w.a=document.createDocumentFragment());w.a.appendChild(R);w.b[Q]=B}}f.a!==
k&&(f.target.appendChild(f.a),f.a=k)}E=Ga(Wa(this.b),Number);Sa(E);u=Xe();for(A=0;A<E.length;++A)if(y=E[A],f=this.b[y],y in s)if(B=f.g,w=f.f,af(u),ef(u,a.size.width/2,a.size.height/2),xf(u,c.rotation),ff(u,B/c.resolution,B/c.resolution),ef(u,(w.x-q.x)/B,(q.y-w.y)/B),w=f,B=u,cf(B,w.e)||(Kj(w.target,B),$e(w.e,B)),y in d){for(y-=1;0<=y;--y)if(y in this.b){w=this.b[y].target;w.parentNode&&w.parentNode.insertBefore(f.target,w.nextSibling);break}0>y&&ic(this.target,f.target)}else{if(!a.F[0]&&!a.F[1]){t=
Th(f.c,v,f.c.a[f.d.n]);y=[];B=w=g;for(B in f.b)w=f.b[B],t.contains(w.fa)||y.push(w);t=g;for(t=0;t<y.length;++t)w=y[t],B=w.fa.toString(),jc(w.M(f)),delete f.b[B]}}else jc(f.target),delete this.b[y];b.opacity!=this.d&&(c=b.opacity,q=this.target.style,"opacity"in q?q.opacity=c:"MozOpacity"in q?q.MozOpacity=c:"filter"in q&&(q.filter=""===c?"":"alpha(opacity="+100*c+")"),this.d=b.opacity);b.visible&&!this.c&&(ld(this.target,i),this.c=i);gi(a.ab,e,j,m);ai(e,j,v,h);ei(a,e)}else this.c&&(ld(this.target,l),
this.c=l)};function Oj(a,b){this.target=fc("DIV");this.target.style.position="absolute";this.c=a;this.d=b;this.f=Sh(a,b).ob();this.g=a.a[b.n];this.b={};this.a=k;this.e=Ze()};function Pj(a,b){ki.call(this,a,b);this.c=fc("DIV");this.c.className="ol-layers ol-unselectable";var c=this.c.style;c.position="absolute";c.width="100%";c.height="100%";ic(a,this.c);this.f=i}D(Pj,ki);Pj.prototype.gb=function(a){var b;a instanceof vi?b=new Nj(this,a):a instanceof ui&&(b=new Mj(this,a));this.c.appendChild(b.target);return b};
Pj.prototype.Eb=function(a){a===k?this.f&&(ld(this.c,l),this.f=l):(F(a.zb,function(b){var c=a.yb[z(b)];c.Ib&&oi(this,b).oa(a,c)},this),this.f||(ld(this.c,i),this.f=i),ni(a))};function Qj(a){this.a=a}Qj.prototype.da=n("a");function Rj(a){this.a=a}D(Rj,Qj);Rj.prototype.b=ca(35632);function Sj(a){this.a=a}D(Sj,Qj);Sj.prototype.b=ca(35633);function Tj(a,b){bi.call(this,a,b);this.B=new Float32Array(16);this.K=new Float32Array(16);this.T=new Float32Array(16);this.Z=new Float32Array(16);this.G=new Float32Array(16);this.c=i;this.bc();this.cc();this.dc();this.ec()}D(Tj,bi);function Uj(a){if(a.c){var b=a.G;af(b);bf(b,a.K,b);bf(b,a.B,b);bf(b,a.Z,b);bf(b,a.T,b);a.c=l}return a.G}p=Tj.prototype;p.la=function(){return Tj.z.la.call(this)};p.bc=function(){var a=this.a.d(),b=this.B;af(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;ci(this)};
p.cc=function(){var a=this.a.e(),b=this.K;af(b);b[0]=a;b[5]=a;b[10]=a;b[15]=1;a=-0.5*a+0.5;b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;ci(this)};p.dc=function(){var a=this.a.f(),b=Math.cos(a),a=Math.sin(a);Ye(this.T,0.213+0.787*b-0.213*a,0.213-0.213*b+0.143*a,0.213-0.213*b-0.787*a,0,0.715-0.715*b-0.715*a,0.715+0.285*b+0.14*a,0.715-0.715*b+0.715*a,0,0.072-0.072*b+0.928*a,0.072-0.072*b-0.283*a,0.072+0.928*b+0.072*a,0,0,0,0,1);this.c=i;ci(this)};
p.ec=function(){var a=this.a.i();Ye(this.Z,0.213+0.787*a,0.213-0.213*a,0.213-0.213*a,0,0.715-0.715*a,0.715+0.285*a,0.715-0.715*a,0,0.072-0.072*a,0.072-0.072*a,0.072+0.928*a,0,0,0,0,1);this.c=i;ci(this)};p.Ta=da;function Vj(a,b){Tj.call(this,a,b);this.b=this.d=k;this.f=Ze();this.e=Xe()}D(Vj,Tj);p=Vj.prototype;p.r=function(){var a=this.la().a;a.isContextLost()||a.deleteTexture(this.b);Vj.z.r.call(this)};p.Jc=n("f");p.Kc=n("b");p.Ic=n("e");p.Ta=function(){this.b=k};
p.oa=function(a){var b=this.la().a,c=a.v,d=c.center,e=c.resolution,f=c.rotation,h=this.d,j=this.b,m=this.a.da(),q=a.F;!q[0]&&!q[1]&&(c=m.M(a.extent,e,c.projection),c!==k&&(m=c.a,0==m?(Oc(c,"change",this.ac,l,this),lh(c)):2==m&&(h=c,j=kh(c,this),c=this.la().a,m=c.createTexture(),c.bindTexture(3553,m),c.texImage2D(3553,0,6408,6408,5121,j),c.texParameteri(3553,10242,33071),c.texParameteri(3553,10243,33071),c.texParameteri(3553,10241,9729),c.texParameteri(3553,10240,9729),j=m,this.b===k||a.Fa.push(sa(function(a,
b){a.isContextLost()||a.deleteTexture(b)},b,this.b)))));h!==k&&(m=this.la().kb(),b=h.I(),c=m.width*e,e*=m.height,m=this.e,af(m),ff(m,2/c,2/e),xf(m,-f),ef(m,b.h-d.x,b.l-d.y),ff(m,b.ma()/2,b.ga()/2),ef(m,1,1),d=this.f,af(d),ff(d,1,-1),ef(d,0,-1),this.d=h,this.b=j,fi(a.attributions,h.za()))};function Wj(a,b){this.Q=a;this.U=b}Wj.prototype.V=function(){return new Wj(this.Q,this.U)};function Xj(a){this.a=[];if(a)a:{var b,c;if(a instanceof Xj){if(b=a.ba(),c=a.W(),0>=a.J()){for(var a=this.a,d=0;d<b.length;d++)a.push(new Wj(b[d],c[d]));break a}}else b=Wa(a),c=Va(a);for(d=0;d<b.length;d++)Yj(this,b[d],c[d])}}function Yj(a,b,c){var d=a.a;d.push(new Wj(b,c));b=d.length-1;a=a.a;for(c=a[b];0<b;)if(d=b-1>>1,a[d].Q>c.Q)a[b]=a[d],b=d;else break;a[b]=c}p=Xj.prototype;
p.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)La(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2,f=h<d&&b[h].Q<b[f].Q?h:f;if(b[f].Q>e.Q)break;b[a]=b[f];a=f}b[a]=e}return c.U}};p.W=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].U);return b};p.ba=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Q);return b};p.V=function(){return new Xj(this)};p.J=function(){return this.a.length};
p.Wa=function(){return 0==this.a.length};p.clear=function(){La(this.a)};function Zj(){Xj.call(this)}D(Zj,Xj);function $j(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}D($j,Rj);fa($j);function ak(){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}"}D(ak,Sj);fa(ak);
function bk(a,b){Tj.call(this,a,b);this.qa=$j.lb();this.xa=ak.lb();this.e=this.g=this.f=this.D=k;this.i=g;this.d=Xe();this.wa=Ze();this.w=this.b=k}D(bk,Tj);p=bk.prototype;p.r=function(){var a=this.la().a;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));bk.z.r.call(this)};p.Jc=n("d");p.Kc=n("g");p.Ic=n("wa");p.Ta=function(){this.e=this.g=this.f=this.D=k;this.i=g};
p.oa=function(a){var b=this.la(),c=b.a,d=a.v,e=d.projection,f=this.a.da(),h=z(f).toString(),j=f.tileGrid;j===k&&(j=Yh(e));var m=ug(j.a,d.resolution),q=j.a[m],v=d.center,s;q==d.resolution?(v=ji(v,q,a.size),s=Ue(v,q,d.rotation,a.size)):s=a.extent;var A=Th(j,s,q),u;if(this.b!==k&&this.b.h==A.h&&this.b.l==A.l&&this.b.j==A.j&&this.b.k==A.k)u=this.w;else{var t=new Qe(A.ma(),A.ga()),y=Xh(j,m),t=Math.max(t.width*y.width,t.height*y.height),t=Math.pow(2,Math.ceil(Math.log(t)/Math.log(2))),w=new Qe(q*t,q*t),
B=Uh(j,m),E=B.x+A.h*y.width*q,q=B.y+A.l*y.height*q;u=new O(E,q,E+w.width,q+w.height);q=this.la().a;!x(this.i)||this.i!=t?(a.Fa.push(sa(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},q,this.e,this.g)),y=q.createTexture(),q.bindTexture(3553,y),q.texImage2D(3553,0,6408,t,t,0,6408,5121,k),q.texParameteri(3553,10240,9729),q.texParameteri(3553,10241,9729),E=q.createFramebuffer(),q.bindFramebuffer(36160,E),q.framebufferTexture2D(36160,36064,3553,y,0),this.g=y,this.e=E,this.i=
t):q.bindFramebuffer(36160,this.e);c.viewport(0,0,t,t);c.clearColor(0,0,0,0);c.clear(16384);c.disable(3042);t=ck(b,this.qa,this.xa);c.useProgram(t);this.D===k&&(this.D={rc:c.getAttribLocation(t,"aPosition"),sc:c.getAttribLocation(t,"aTexCoord"),Se:c.getUniformLocation(t,"uTileOffset"),Re:c.getUniformLocation(t,"uTexture")});this.f===k?(t=c.createBuffer(),c.bindBuffer(34962,t),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=t):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.D.rc);
c.vertexAttribPointer(this.D.rc,2,5126,l,16,0);c.enableVertexAttribArray(this.D.sc);c.vertexAttribPointer(this.D.sc,2,5126,l,16,8);c.uniform1i(this.D.Re,0);var Q={};Q[m]={};for(var q=ra(f.e,f,Q,ii(function(a){return a!==k&&2==a.a&&aj(b.b,a.b())},f,j,e)),t=new Zj,H=i,R,Y,B=A.h;B<=A.j;++B)for(Y=A.l;Y<=A.k;++Y){E=new yf(m,B,Y);y=f.b(E,j,e);R=y.a;if(0==R)hi(a.bb,f,E),R=Wh(j,E),Ef(a.mc,y,h,R);else if(1==R)di(this,y);else if(2==R)if(aj(b.b,y.b())){Q[m][E.toString()]=y;continue}else R=Wh(j,E),H=R.x-v.x,
R=R.y-v.y,H=Math.sqrt(H*H+R*R),Yj(t,H,y);else if(3==R||4==R)continue;H=l;j.b(E,q)}e=Ga(Wa(Q),Number);Sa(e);var Z=new Float32Array(4);F(e,function(a){Ua(Q[a],function(a){var d=Sh(j,a.fa),e=2*d.ga()/w.height,f=2*(d.h-u.h)/w.width-1,h=2*(d.l-u.l)/w.height-1;Z[0]=2*d.ma()/w.width;Z[1]=e;Z[2]=f;Z[3]=h;c.uniform4fv(this.D.Se,Z);Hk(b,a);c.drawArrays(5,0,4)},this)},this);t.Wa()||a.Fa.push(sa(function(a,b){var c,d;for(c=0;!b.Wa()&&4>c;++c)d=b.remove(),Hk(a,d)},b,t));H?(this.b=A,this.w=u):(this.w=this.b=k,
a.$=i)}gi(a.ab,f,m,A);ai(f,m,s,j);ei(a,f);af(this.d);ef(this.d,(v.x-u.h)/(u.j-u.h),(v.y-u.l)/(u.k-u.l));xf(this.d,d.rotation);ff(this.d,a.size.width*d.resolution/(u.j-u.h),a.size.height*d.resolution/(u.k-u.l));ef(this.d,-0.5,-0.5)};var Ik=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function Jk(a,b){var c,d,e=Ik.length;for(d=0;d<e;++d)try{if(c=a.getContext(Ik[d],b),c!==k)return c}catch(f){}return k}var Kk=function(){if(!("WebGLRenderingContext"in r))return l;try{var a=fc("CANVAS");return Jk(a)!==k}catch(b){return l}}();function Lk(){this.a="precision mediump float;\n\nuniform mat4 u_colorMatrix;\nuniform float u_opacity;\nuniform sampler2D u_texture;\n\nvarying vec2 v_texCoord;\n\nvoid main(void) {\n\n vec4 texColor = texture2D(u_texture, v_texCoord);\n vec4 color = u_colorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * u_opacity;\n\n gl_FragColor = color;\n\n}"}D(Lk,Rj);fa(Lk);
function Mk(){this.a="attribute vec2 a_position;\nattribute vec2 a_texCoord;\n\nuniform mat4 u_texCoordMatrix;\nuniform mat4 u_projectionMatrix;\n\nvarying vec2 v_texCoord;\n\nvoid main(void) {\n gl_Position = u_projectionMatrix * vec4(a_position, 0., 1.);\n v_texCoord = (u_texCoordMatrix * vec4(a_texCoord, 0., 1.)).st;\n}"}D(Mk,Sj);fa(Mk);
function Nk(a,b){ki.call(this,a,b);this.c=fc("CANVAS");this.c.height=a.clientHeight;this.c.width=a.clientWidth;this.c.className="ol-unselectable";ic(a,this.c);this.u=i;this.w=new Qe(a.clientHeight,a.clientWidth);this.a=Jk(this.c,{alpha:l,antialias:i,depth:l,preserveDrawingBuffer:l,stencil:l});I(this.c,"webglcontextlost",this.Ta,l,this);I(this.c,"webglcontextrestored",this.te,l,this);this.s=this.D=k;this.g={};this.f={};this.b=new $i;this.i=0;this.G=Lk.lb();this.K=Mk.lb();Ok(this)}D(Nk,ki);
function Hk(a,b){var c=a.a,d=b.b();if(aj(a.b,d))d=bj(a.b,d),c.bindTexture(3553,d.lc),9729!=d.Vc&&(c.texParameteri(3553,10240,9729),d.Vc=9729),9729!=d.Wc&&(c.texParameteri(3553,10240,9729),d.Wc=9729);else{var e=c.createTexture();c.bindTexture(3553,e);c.texImage2D(3553,0,6408,6408,5121,b.M());c.texParameteri(3553,10240,9729);c.texParameteri(3553,10241,9729);c.texParameteri(3553,10242,33071);c.texParameteri(3553,10243,33071);cj(a.b,d,{lc:e,Vc:9729,Wc:9729})}}p=Nk.prototype;
p.gb=function(a){var b=k;a instanceof vi?b=new bk(this,a):a instanceof ui&&(b=new Vj(this,a));return b};p.r=function(){var a=this.a;a.isContextLost()||(Ua(this.f,function(b){a.deleteProgram(b)}),Ua(this.g,function(b){a.deleteShader(b)}),this.b.forEach(function(b){b===k||a.deleteTexture(b.lc)}));Nk.z.r.call(this)};p.Gd=function(a,b){for(var c=this.a,d;1024<this.b.J()-this.i;){d=this.b.a.U;if(d===k)if(+this.b.a.Q==b.time)break;else--this.i;else c.deleteTexture(d.lc);this.b.pop()}};p.kb=n("c");
function ck(a,b,c){var d=z(b)+"/"+z(c);if(d in a.f)return a.f[d];var e=a.a,f=e.createProgram();e.attachShader(f,Pk(a,b));e.attachShader(f,Pk(a,c));e.linkProgram(f);return a.f[d]=f}function Pk(a,b){var c=z(b);if(c in a.g)return a.g[c];var d=a.a,e=d.createShader(b.b());d.shaderSource(e,b.da());d.compileShader(e);return a.g[c]=e}p.Ta=function(a){a.A();this.s=this.D=k;this.g={};this.f={};this.b.clear();this.i=0;Ua(this.d,function(a){a.Ta()})};p.te=function(){Ok(this);mi(this.map)};
function Ok(a){a=a.a;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}
p.Eb=function(a){var b=this.a;if(a===k)return this.u&&(ld(this.c,l),this.u=l),l;cj(this.b,a.time.toString(),k);++this.i;F(a.zb,function(b){var c=a.yb[z(b)];c.visible&&c.Ib&&oi(this,b).oa(a,c)},this);var c=a.size;this.w.width==c.width&&this.w.height==c.height||(this.c.width=c.width,this.c.height=c.height,this.w=c);b.bindFramebuffer(36160,k);var d=a.backgroundColor;b.clearColor(d.c/255,d.b/255,d.a/255,d.d);b.clear(16384);b.enable(3042);b.viewport(0,0,c.width,c.height);c=ck(this,this.G,this.K);b.useProgram(c);
this.D===k&&(this.D={tc:b.getAttribLocation(c,"a_position"),uc:b.getAttribLocation(c,"a_texCoord"),Te:b.getUniformLocation(c,"u_colorMatrix"),We:b.getUniformLocation(c,"u_texCoordMatrix"),Ve:b.getUniformLocation(c,"u_projectionMatrix"),Ue:b.getUniformLocation(c,"u_opacity"),Xe:b.getUniformLocation(c,"u_texture")});this.s===k?(c=b.createBuffer(),b.bindBuffer(34962,c),b.bufferData(34962,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),35044),this.s=c):b.bindBuffer(34962,this.s);b.enableVertexAttribArray(this.D.tc);
b.vertexAttribPointer(this.D.tc,2,5126,l,16,0);b.enableVertexAttribArray(this.D.uc);b.vertexAttribPointer(this.D.uc,2,5126,l,16,8);b.uniform1i(this.D.Xe,0);F(a.zb,function(c){var d=a.yb[z(c)];d.visible&&d.Ib&&(d=oi(this,c),b.uniformMatrix4fv(this.D.We,l,d.Jc()),b.uniformMatrix4fv(this.D.Ve,l,d.Ic()),b.uniformMatrix4fv(this.D.Te,l,Uj(d)),b.uniform1f(this.D.Ue,c.g()),b.bindTexture(3553,d.Kc()),b.drawArrays(5,0,4))},this);this.u||(ld(this.c,i),this.u=i);ni(a);1024<this.b.J()-this.i&&a.Fa.push(ra(this.Gd,
this))};var Qk={},Rk={df:"canvas",hf:"dom",Mf:"webgl"},Sk=["webgl","canvas","dom"],li="layers";
function V(a){var b;M.call(this);var c={},d;d=x(a.layers)?ha(a.layers)?new N(Oa(a.layers)):a.layers:new N;c[li]=d;c.view=x(a.view)?a.view:new T;b=ki;d=x(a.renderers)?a.renderers:x(a.renderer)?[a.renderer]:Sk;var e,f;for(e=0;e<d.length;++e)if(f=d[e],"canvas"==f){if(Jj){b=Ij;break}}else if("dom"==f){b=Pj;break}else if("webgl"==f&&Kk){b=Nk;break}d=x(a.controls)?a.controls:Gg();e=x(a.interactions)?a.interactions:bh();a=ja(a.target)?document.getElementById(a.target):a.target;this.c=new le(this.Me,g,this);
wc(this,this.c);this.wa=Xe();this.sd=Xe();this.d=k;this.g=0;this.ka=l;this.T=a;this.w=k;this.b=dc("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.b.style.msTouchAction="none";this.T.appendChild(this.b);this.t=dc("DIV","ol-overlaycontainer");I(this.t,["click",Ee?"touchstart":"mousedown"],Ac);this.b.appendChild(this.t);a=new hg(this);I(a,Va(rg),this.$c,l,this);wc(this,a);a=new ue(document);I(a,"key",this.Pc,
l,this);wc(this,a);a=new Be(this.b);I(a,"mousewheel",this.Pc,l,this);wc(this,a);this.K=e;this.B=new b(this.b,this);wc(this,this.B);this.vd=new pe;I(this.vd,"resize",this.Qc,l,this);this.u=k;this.i=[];this.Z=[];this.qd=ra(this.ke,this);this.G=new Df(ra(this.Md,this));I(this,Ke("view"),this.re,l,this);I(this,Ke("size"),this.me,l,this);I(this,Ke("backgroundColor"),this.Ud,l,this);this.Db(c);this.Qc();x(d)&&F(d,function(a){a.a(this)},this)}D(V,M);p=V.prototype;p.ze=function(a){this.e().push(a)};
p.ra=function(a){yg(this);this.i.push(a)};p.wd=function(a){yg(this);Array.prototype.push.apply(this.i,a)};p.r=function(){jc(this.b);V.z.r.call(this)};p.Fc=function(){return this.q("backgroundColor")};V.prototype.getBackgroundColor=V.prototype.Fc;V.prototype.Pb=n("B");function fg(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];df(c.cd,d,d);return new L(d[0],d[1])}V.prototype.xa=n("K");V.prototype.e=function(){return this.q(li)};V.prototype.getLayers=V.prototype.e;
function Qg(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];df(c.Ac,d,d);return new dg(d[0],d[1])}V.prototype.f=function(){return this.q("size")};V.prototype.getSize=V.prototype.f;V.prototype.a=function(){return this.q("view")};V.prototype.getView=V.prototype.a;p=V.prototype;p.Md=function(a,b,c){var d=this.d;if(d===k||!(b in d.bb)||!d.bb[b][a.fa.toString()])return Infinity;b=this.u===k?d.v.center:this.u;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};
p.Pc=function(a,b){var c=b||a.type,d=new eg(c,this,a);this.$c(d);"mouseout"==c?this.u=k:this.u=d.d()};p.$c=function(a){a.c=this.d;var b=this.K.a;if(K(this,a)!==l)for(var c=b.length-1;0<=c&&!(b[c].Ea(a),a.rb);c--);};
p.ke=function(){var a=this.G,b=a.a,c,d=0,e,f,h,j;for(c=0;c<b.length;++c)e=b[c],h=e[1],j=e[2],f=e[3],f=a.d(h,j,f),Infinity==f?(e=h.b(),delete a.b[e]):(e[0]=f,b[d++]=e);b.length=d;for(b=(a.a.length>>1)-1;0<=b;b--)Gf(a,b);for(var a=this.G,m;0<a.a.length&&a.c<a.f;)m=a,c=m.a,b=c[0][1],1==c.length?c.length=0:(c[0]=c.pop(),Gf(m,0)),c=b.b(),delete m.b[c],m=b,Oc(m,"change",a.e,l,a),b=m,0==b.a&&(b.a=1,b.d=[Oc(b.c,"error",b.g,l,b),Oc(b.c,"load",b.i,l,b)],b.c.src=b.f),++a.c;x(m)&&yg(this);m=this.Z;for(a=0;a<
m.length;++a)m[a](this,this.d);m.length=0};p.Ud=function(){mi(this)};p.Qc=function(){var a=jd(this.T);this.qa(new Qe(a.width,a.height))};p.me=function(){mi(this)};p.se=function(){mi(this)};p.re=function(){this.w!==k&&(J(this.w),this.w=k);var a=this.a();a!=k&&(this.w=I(a,"changed",this.se,l,this));mi(this)};p.Va=function(){var a=this.a(),b;if(b=x(a)){if(a=a.Va())a=this.f()!=k;b=a}return b};function mi(a){a.c.X==k&&(0===a.g?(a=a.c,me(a),a.Wb()):a.ka=i)}
function yg(a){0===a.g?a.c.X!=k||a.c.start():a.ka=i}p.Ae=function(a){return this.e().remove(a)};
p.Me=function(a){var b;if(0==this.g){var c=this.f(),d=this.e(),d=x(d)?d.a:g;b=this.a();var e=x(b)?this.a().g():g,f=k;if(x(d)&&x(c)&&x(e)&&e.Va()){var f=this.Fc(),h=Oa(b.e),j={},m;for(b=0;b<d.length;++b){m=d[b];var q=j,v=z(m),s=m;m=s.d();var A=s.e(),u=s.f(),t=s.g(),y=s.da().d(),w=s.i(),s=s.u();q[v]={brightness:x(m)?m:0,contrast:x(A)?A:1,hue:x(u)?u:0,opacity:x(t)?t:1,Ib:y,saturation:x(w)?w:1,visible:x(s)?s:i}}b=e.R();q=e.Zc();v=e.S();e=e.ca();q={center:new L(b.x,b.y),projection:q,resolution:v,rotation:e};
f={$:l,attributions:{},backgroundColor:x(f)?f:new Pe,Ac:this.wa,extent:k,zb:d,yb:j,cd:this.sd,Fa:[],size:c,mc:this.G,time:a,ab:{},v:q,F:h,bb:{}}}a=this.i;for(b=c=0;b<a.length;++b)d=a[b],d(this,f)&&(a[c++]=d);a.length=c;f!==k&&(f.extent=Ue(q.center,q.resolution,q.rotation,f.size));this.d=f;this.B.Eb(f);this.ka=l;f!==k&&(f.$&&yg(this),Array.prototype.push.apply(this.Z,f.Fa));K(this,new cg("postrender",this,f));r.setTimeout(this.qd,0)}};p.Oe=function(a){this.p("backgroundColor",a)};
V.prototype.setBackgroundColor=V.prototype.Oe;V.prototype.td=function(a){this.p(li,a)};V.prototype.setLayers=V.prototype.td;V.prototype.qa=function(a){this.p("size",a)};V.prototype.setSize=V.prototype.qa;V.prototype.ud=function(a){this.p("view",a)};V.prototype.setView=V.prototype.ud;function Ag(a,b,c){++a.g;try{b.call(c)}finally{0===--a.g&&a.ka&&(a=a.c,me(a),a.Wb())}}
Qk.Cd=function(a){var b=r.location.search.substring(1),a=x(a)?a:new Hd(b);return ee(a,"renderers")?fe(a,"renderers").split(","):ee(a,"renderer")?[fe(a,"renderer")]:Sk};Uf(fh);Uf(ih);function Tk(a,b,c){var d=a.length,c=1<c?c:2;x(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=6378137*Math.PI*a[e]/180,b[e+1]=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));return b}
function Uk(a,b,c){var d=a.length,c=1<c?c:2;x(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=180*a[e]/(6378137*Math.PI),b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b}F(ih,function(a){F(fh,function(b){Wf(a,b,Tk);Wf(b,a,Uk)})});var Vk={af:"bottom-left",bf:"bottom-right",Ff:"top-left",Gf:"top-right"};function Wk(a){M.call(this);this.b=fc("DIV");this.b.style.position="absolute";this.a={eb:"",Ab:"",Kb:"",Mb:"",visible:i};I(this,Ke("element"),this.Vd,l,this);I(this,Ke("map"),this.de,l,this);I(this,Ke("position"),this.ie,l,this);I(this,Ke("positioning"),this.je,l,this);x(a.element)&&this.fd(a.element);x(a.position)&&this.u(a.position);x(a.positioning)&&this.p("positioning",a.positioning);x(a.map)&&this.i(a.map)}D(Wk,M);
Wk.prototype.f=function(){return this.q("element")};Wk.prototype.getElement=Wk.prototype.f;Wk.prototype.d=function(){return this.q("map")};Wk.prototype.getMap=Wk.prototype.d;Wk.prototype.g=function(){return this.q("position")};Wk.prototype.getPosition=Wk.prototype.g;Wk.prototype.e=function(){return this.q("positioning")};Wk.prototype.getPositioning=Wk.prototype.e;p=Wk.prototype;p.Vd=function(){hc(this.b);var a=this.f();a!=k&&gc(this.b,a)};
p.de=function(){this.c!==k&&(jc(this.b),J(this.c),this.c=k);var a=this.d();a!=k&&(this.c=I(a,"postrender",this.ye,l,this),Xk(this),gc(a.t,this.b))};p.ye=function(){Xk(this)};p.ie=function(){Xk(this)};p.je=function(){Xk(this)};p.fd=function(a){this.p("element",a)};Wk.prototype.setElement=Wk.prototype.fd;Wk.prototype.i=function(a){this.p("map",a)};Wk.prototype.setMap=Wk.prototype.i;Wk.prototype.u=function(a){this.p("position",a)};Wk.prototype.setPosition=Wk.prototype.u;
function Xk(a){var b=a.d(),c=a.g();if(!x(b)||!b.Va()||!x(c))a.a.visible&&(ld(a.b,l),a.a.visible=l);else{var c=Qg(b,c),d=b.f(),b=a.b.style,e=a.e();if("bottom-right"==e||"top-right"==e){""!==a.a.Ab&&(a.a.Ab=b.left="");var f=Math.round(d.width-c.x)+"px";a.a.Kb!=f&&(a.a.Kb=b.right=f)}else""!==a.a.Kb&&(a.a.Kb=b.right=""),f=Math.round(c.x)+"px",a.a.Ab!=f&&(a.a.Ab=b.left=f);"top-left"==e||"top-right"==e?(""!==a.a.eb&&(a.a.eb=b.bottom=""),c=Math.round(c.y)+"px",a.a.Mb!=c&&(a.a.Mb=b.top=c)):(""!==a.a.Mb&&
(a.a.Mb=b.top=""),c=Math.round(d.height-c.y)+"px",a.a.eb!=c&&(a.a.eb=b.bottom=c));a.a.visible||(ld(a.b,i),a.a.visible=i)}};function W(){M.call(this);this.a=k;this.c(l);I(this,Ke("projection"),this.G,l,this);I(this,Ke("tracking"),this.K,l,this)}D(W,M);W.prototype.r=function(){this.c(l);W.z.r.call(this)};W.prototype.G=function(){var a=this.g();a!=k&&(this.d=Pf(Zf("EPSG:4326"),a),this.a!==k&&(a=[this.a.x,this.a.y],a=this.d(a,a,2),this.p("position",new L(a[0],a[1]))))};
W.prototype.K=function(){if(Yk){var a=this.e();a&&!x(this.b)?this.b=navigator.geolocation.watchPosition(ra(this.qa,this),ra(this.wa,this),this.f()):!a&&x(this.b)&&(navigator.geolocation.clearWatch(this.b),this.b=g)}};var Yk="geolocation"in navigator;
W.prototype.qa=function(a){a=a.coords;this.p("accuracy",a.accuracy);this.p("altitude",a.altitude===k?g:a.altitude);this.p("altitudeAccuracy",a.altitudeAccuracy===k?g:a.altitudeAccuracy);this.p("heading",a.heading===k?g:a.heading*Math.PI/180);this.a=new L(a.longitude,a.latitude);var b=[a.longitude,a.latitude],b=this.d(b,b,2);this.p("position",new L(b[0],b[1]));this.p("speed",a.speed===k?g:a.speed)};W.prototype.wa=function(){};W.prototype.i=function(){return this.q("accuracy")};
W.prototype.getAccuracy=W.prototype.i;W.prototype.u=function(){return this.q("altitude")};W.prototype.getAltitude=W.prototype.u;W.prototype.t=function(){return this.q("altitudeAccuracy")};W.prototype.getAltitudeAccuracy=W.prototype.t;W.prototype.w=function(){return this.q("heading")};W.prototype.getHeading=W.prototype.w;W.prototype.T=function(){return this.q("position")};W.prototype.getPosition=W.prototype.T;W.prototype.g=function(){return this.q("projection")};W.prototype.getProjection=W.prototype.g;
W.prototype.B=function(){return this.q("speed")};W.prototype.getSpeed=W.prototype.B;W.prototype.e=function(){return this.q("tracking")};W.prototype.getTracking=W.prototype.e;W.prototype.f=function(){return this.q("trackingOptions")};W.prototype.getTrackingOptions=W.prototype.f;W.prototype.Z=function(a){this.p("projection",a)};W.prototype.setProjection=W.prototype.Z;W.prototype.c=function(a){this.p("tracking",a)};W.prototype.setTracking=W.prototype.c;
W.prototype.xa=function(a){this.p("trackingOptions",a)};W.prototype.setTrackingOptions=W.prototype.xa;W.prototype.d=ba();function Zk(a){var a=x(a)?a:{},b=dc("DIV",{"class":"ol-mouse-position"});Dg.call(this,{element:b,map:a.map,target:a.target});this.i=Zf(a.projection);this.g=a.coordinateFormat;this.K=x(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.s=ag;this.d=this.e=this.t=k}D(Zk,Dg);Zk.prototype.G=function(a){a=a.c;a===k?this.c=k:this.c=a.v.projection;$k(this,this.e)};Zk.prototype.w=function(a){a=gd(a,this.b.b);a=new dg(a.x,a.y);$k(this,a);this.e=a};
Zk.prototype.B=function(){$k(this,k);this.e=k};Zk.prototype.a=function(a){this.d!==k&&(F(this.d,J),this.d=k);Zk.z.a.call(this,a);if(a!==k){var b=a.b;this.d=[I(b,"mousemove",this.w,l,this),I(b,"mouseout",this.B,l,this),I(a,"postrender",this.G,l,this)]}};function $k(a,b){var c=a.K;if(b!==k){a.t!=a.c&&(a.s=a.i===k?ag:Pf(a.c,a.i),a.t=a.c);var d=fg(a.b,b);d!==k&&(c=[d.x,d.y],c=a.s(c,c),d=new L(c[0],c[1]),c=x(a.g)?a.g(d):d.toString())}if(!x(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};var al={rd:"degrees",rf:"imperial",Af:"nautical",wf:"metric",Kf:"us"};function bl(a){a=a||{};this.g=dc("DIV",{"class":"ol-scale-line-inner"});this.s=dc("DIV",{"class":"ol-scale-line ol-unselectable"},this.g);this.i=x(a.minWidth)?a.minWidth:64;this.c=x(a.units)?a.units:"metric";this.e=k;this.f=l;this.t="";this.d=k;Dg.call(this,{element:this.s,map:a.map,target:a.target})}D(bl,Dg);var cl=[1,2,5];
bl.prototype.w=function(a){a=a.c;if(a===k)this.f&&(ld(this.s,l),this.f=l);else{var a=a.v,b=a.center,c=a.projection,a=c.c(a.resolution,b),d=c.b;"degrees"==d&&("metric"==this.c||"imperial"==this.c)?(this.d=k,b=Math.cos(b.y*Math.PI/180),a*=Math.PI*b*Jf.a/180):("ft"==d||"m"==d)&&"degrees"==this.c?(this.d===k&&(this.d=Pf(c,Zf("EPSG:4326"))),b=[b.x,b.y],b=this.d(b,b,2),b=Math.cos(b[1]*Math.PI/180),c=Jf.a,"ft"==d&&(c/=0.3048),a*=180/(Math.PI*b*c)):this.d=k;b=this.i*a;d="";"degrees"==this.c?b<1/60?(d="\u2033",
a*=3600):1>b?(d="\u2032",a*=60):d="\u00b0":"imperial"==this.c?0.9144>b?(d="in",a/=0.0254):1609.344>b?(d="ft",a/=0.3048):(d="mi",a/=1609.344):"nautical"==this.c?(a/=1852,d="nm"):"metric"==this.c?1>b?(d="mm",a*=1E3):1E3>b?d="m":(d="km",a/=1E3):"us"==this.c&&(0.9144>b?(d="in",a*=39.37):1609.344>b?(d="ft",a/=0.30480061):(d="mi",a/=1609.3472));for(var b=3*Math.floor(Math.log(this.i*a)/Math.log(10)),e,f;;){e=cl[b%3]*Math.pow(10,Math.floor(b/3));f=Math.round(e/a);if(f>=this.i)break;++b}e=e+d;this.t!=e&&
(this.t=this.g.innerHTML=e);this.B!=f&&(this.g.style.width=f+"px",this.B=f);this.f||(ld(this.s,i),this.f=i)}};bl.prototype.a=function(a){this.e!==k&&(F(this.e,J),this.e=k);bl.z.a.call(this,a);a!==k&&(this.e=[I(a,"postrender",this.w,l,this)])};function dl(a){tc.call(this);this.b=a;this.a=[]}D(dl,tc);var el=[];function fl(a,b,c,d,e){ha(c)||(el[0]=c,c=el);for(var f=0;f<c.length;f++){var h=I(b,c[f],d||a,e||l,a.b||a);a.a.push(h)}}function gl(a){F(a.a,J);a.a.length=0}dl.prototype.r=function(){dl.z.r.call(this);gl(this)};dl.prototype.handleEvent=function(){aa(Error("EventHandler.handleEvent not implemented"))};function hl(a,b,c){tc.call(this);this.target=a;this.d=b||a;this.b=c||new Zc(NaN,NaN,NaN,NaN);this.c=$b(a);this.a=new dl(this);I(this.d,["touchstart","mousedown"],this.ld,l,this)}D(hl,ge);var il=G||ub&&Lb("1.9.3");p=hl.prototype;p.clientX=0;p.clientY=0;p.Lc=0;p.Mc=0;p.Nc=0;p.Oc=0;p.O=0;p.N=0;p.Cc=i;p.Da=l;p.Sc=0;p.xe=0;p.ue=l;p.oc=l;p.r=function(){hl.z.r.call(this);Uc(this.d,["touchstart","mousedown"],this.ld,l,this);gl(this.a);il&&this.c.releaseCapture();this.a=this.d=this.target=k};
function jl(a){x(a.f)||(a.f=md(a.target));return a.f}
p.ld=function(a){var b="mousedown"==a.type;if(this.Cc&&!this.Da&&(!b||Gc(a))){kl(a);if(0==this.Sc)if(K(this,new ll("start",this,a.clientX,a.clientY,a)))this.Da=i,a.A();else return;else a.A();var b=this.c,c=b.documentElement,d=!il;fl(this.a,b,["touchmove","mousemove"],this.he,d);fl(this.a,b,["touchend","mouseup"],this.ib,d);il?(c.setCapture(l),fl(this.a,c,"losecapture",this.ib)):fl(this.a,b?b.parentWindow||b.defaultView:window,"blur",this.ib);G&&this.ue&&fl(this.a,b,"dragstart",Bc);this.g&&fl(this.a,
this.g,"scroll",this.Ke,d);this.clientX=this.Nc=a.clientX;this.clientY=this.Oc=a.clientY;this.Lc=a.Xb;this.Mc=a.Yb;this.oc?(a=this.target,b=a.offsetLeft,c=a.offsetParent,!c&&"fixed"==ad(a,"position")&&(c=$b(a).documentElement),c?(ub?(d=pd(c),b+=d.left):Nb(8)&&(d=pd(c),b-=d.left),a=md(c)?c.clientWidth-(b+a.offsetWidth):b):a=b):a=this.target.offsetLeft;this.O=a;this.N=this.target.offsetTop;this.e=mc(Vb(this.c));this.xe=ta()}else K(this,"earlycancel")};
p.ib=function(a,b){gl(this.a);il&&this.c.releaseCapture();if(this.Da){kl(a);this.Da=l;var c=ml(this,this.O),d=nl(this,this.N);K(this,new ll("end",this,a.clientX,a.clientY,a,c,d,b||"touchcancel"==a.type))}else K(this,"earlycancel");("touchend"==a.type||"touchcancel"==a.type)&&a.A()};function kl(a){var b=a.type;"touchstart"==b||"touchmove"==b?Ec(a,a.L.targetTouches[0],a.b):("touchend"==b||"touchcancel"==b)&&Ec(a,a.L.changedTouches[0],a.b)}
p.he=function(a){if(this.Cc){kl(a);var b=(this.oc&&jl(this)?-1:1)*(a.clientX-this.clientX),c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.Lc=a.Xb;this.Mc=a.Yb;if(!this.Da){var d=this.Nc-this.clientX,e=this.Oc-this.clientY;if(d*d+e*e>this.Sc)if(K(this,new ll("start",this,a.clientX,a.clientY,a)))this.Da=i;else{this.hc||this.ib(a);return}}c=pl(this,b,c);b=c.x;c=c.y;this.Da&&K(this,new ll("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(ql(this,a,b,c),a.A())}};
function pl(a,b,c){var d=mc(Vb(a.c)),b=b+(d.x-a.e.x),c=c+(d.y-a.e.y);a.e=d;a.O+=b;a.N+=c;b=ml(a,a.O);a=nl(a,a.N);return new Tb(b,a)}p.Ke=function(a){var b=pl(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;ql(this,a,b.x,b.y)};function ql(a,b,c,d){a.oc&&jl(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";K(a,new ll("drag",a,b.clientX,b.clientY,b,c,d))}
function ml(a,b){var c=a.b,d=!isNaN(c.left)?c.left:k,c=!isNaN(c.width)?c.width:0;return Math.min(d!=k?d+c:Infinity,Math.max(d!=k?d:-Infinity,b))}function nl(a,b){var c=a.b,d=!isNaN(c.top)?c.top:k,c=!isNaN(c.height)?c.height:0;return Math.min(d!=k?d+c:Infinity,Math.max(d!=k?d:-Infinity,b))}function ll(a,b,c,d,e,f,h,j){zc.call(this,a);this.clientX=c;this.clientY=d;this.d=e;this.left=x(f)?f:b.O;this.top=x(h)?h:b.N;this.c=b;this.a=!!j}D(ll,zc);function rl(a){this.s=x(a.maxResolution)?a.maxResolution:156543.0339;this.g=x(a.minResolution)?a.minResolution:0.5971642833948135;this.t=this.s-this.g;this.d=sl;this.e=this.f=k;var b=dc("DIV","ol-zoomslider ol-unselectable",dc("DIV","ol-zoomslider-thumb ol-unselectable"));this.e!==k&&(F(this.e,J),this.e=k);var c=new hl(b.childNodes[0]);this.e=[I(c,["drag","end"],this.G,g,this)];this.i=c;I(b,["touchend","click"],this.w,l,this);Dg.call(this,{element:b,map:a.map})}D(rl,Dg);var sl=0;
rl.prototype.a=function(a){rl.z.a.call(this,a);this.c=a.a().S();this.f!==k&&(F(this.f,J),this.f=k);this.b!==k&&(this.f=[I(this.b,"postrender",this.B,g,this)]);var b=this.element,a=b.firstElementChild!=g?b.firstElementChild:kc(b.firstChild);var c=$b(b),d=G&&b.currentStyle;d&&lc(Vb(c))&&"auto"!=d.width&&"auto"!=d.height&&!d.boxSizing?(c=qd(b,d.width,"width","pixelWidth"),b=qd(b,d.height,"height","pixelHeight"),b=new Ub(c,b)):(d=new Ub(b.offsetWidth,b.offsetHeight),c=od(b,"padding"),b=pd(b),b=new Ub(d.width-
b.left-c.left-c.right-b.right,d.height-b.top-c.top-c.bottom-b.bottom));var d=fd(a),c=jd(a),d=new Zc(d.x,d.y,c.width,c.height),c=od(a,"margin"),e=pd(a),a=b.width-c.left-c.right-e.left-e.right-d.width,d=b.height-c.top-c.bottom-e.top-e.bottom-d.height;b.width>b.height?(this.d=1,a=new Zc(0,0,a,0)):(this.d=sl,a=new Zc(0,0,0,d));this.i.b=a||new Zc(NaN,NaN,NaN,NaN);tl(this,this.c)};rl.prototype.B=function(a){a=a.c.v.resolution;a!==this.c&&(this.c=a,tl(this,a))};rl.prototype.w=function(){};
function tl(a,b){var c=(Rb(b,a.g,a.s)-a.g)/a.t,d=a.i,e=a.element.firstElementChild!=g?a.element.firstElementChild:kc(a.element.firstChild);1==a.d?bd(e,d.b.left+d.b.width*c):bd(e,d.b.left,d.b.top+d.b.height*c)}rl.prototype.G=function(a){var b=this.b,c=this.i.b,d=0,d=1===this.d?(a.left-c.left)/c.width:(a.top-c.top)/c.height,a=Rb(d,0,1),a=this.g+this.t*a;a!==this.c&&(this.c=a,b.a().b(a))};function ul(){this.a={}}D(ul,Jg);ul.prototype.b=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};ul.prototype.Ea=function(a){if("key"==a.type){var b=this.a[a.a.pb];b&&(b(),a.A())}};function vl(){};function wl(){}D(wl,vl);wl.prototype.pa=function(a){a=JSON.parse(a);return xl(this,a)};
function xl(a,b){var c;switch(b.type){case "FeatureCollection":c=Wi(b);break;case "Feature":c=yl(b);break;case "GeometryCollection":c=b.geometries;var d=c.length,e=Array(d),f;for(f=0;f<d;++f)e[f]=xl(a,c[f]);c=e;break;case "Point":c=new hj(b.coordinates,g);break;case "LineString":c=new ej(b.coordinates,g);break;case "Polygon":c=new kj(b.coordinates,g);break;case "MultiPoint":c=new ij(b.coordinates,g);break;case "MultiLineString":c=new gj(b.coordinates,g);break;case "MultiPolygon":c=new lj(b.coordinates,
g);break;default:aa(Error("GeoJSON parsing not implemented for type: "+b.type))}return c}
function yl(a,b){var c=a.geometry,d=k,e=b||{},f=new Bi(a.properties);if(c){var h=c.type,e=e.fb,j;e&&(j=e(f,zl[h]));switch(h){case "Point":d=new hj(c.coordinates,j);break;case "LineString":d=new ej(c.coordinates,j);break;case "Polygon":d=new kj(c.coordinates,j);break;case "MultiPoint":d=new ij(c.coordinates,j);break;case "MultiLineString":d=new gj(c.coordinates,j);break;case "MultiPolygon":d=new lj(c.coordinates,j);break;default:aa(Error("Bad geometry type: "+h))}f.gd(d)}return f}
function Wi(a,b){var c=a.features,d=c.length,e=Array(d),f;for(f=0;f<d;++f)e[f]=yl(c[f],b);return e}var zl={Point:"point",LineString:"linestring",Polygon:"polygon",MultiPoint:"multipoint",MultiLineString:"multilinestring",MultiPolygon:"multipolygon",GeometryCollection:"geometrycollection"};function Al(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");if(b){b.resolveExternals=l;b.validateOnParse=l;try{b.setProperty("ProhibitDTD",i),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}}b.loadXML(a);return b}aa(Error("Your browser does not support loading xml documents"))};function Bl(){this.Ka={nd:/^\s*|\s*$/g,a:/\s*/g,kd:/\s+/,md:/\s*,\s*/g}}D(Bl,vl);function Cl(a,b,c){c||(c={});var d=a.C[b.namespaceURI]||a.C[a.a];if(d){var e=b.localName||b.nodeName.split(":").pop();(d=d[e]||d["*"])&&d.apply(a,[b,c])}}function X(a,b,c){c||(c={});for(var b=b.childNodes,d,e=0,f=b.length;e<f;++e)d=b[e],1==d.nodeType&&Cl(a,d,c)}function $(a){var b="";if(a)for(a=a.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:case 4:b+=a.nodeValue}return b}
Bl.prototype.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else{var e=k;if(a.getAttributeNodeNS)e=a.getAttributeNodeNS(b,c);else for(var a=a.attributes,f,h,j=0,m=a.length;j<m;++j)if(f=a[j],f.namespaceURI==b&&(h=f.prefix?f.prefix+":"+c:c,h==f.nodeName)){e=f;break}if(b=e)d=b.nodeValue}return d};function Dl(){function a(a,b){b.Qe.push($(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),Of:a.getAttribute("locator"),Qe:[]};b.Ec.push(e);X(this,a,e)}this.C={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];X(this,a,b.exceptionReport)},ServiceException:function(a,b){var e={};e.code=a.getAttribute("code");e.locator=a.getAttribute("locator");e.text=$(a);b.exceptions.push(e)}},"http://www.opengis.net/ows":{ExceptionReport:function(a,
b){b.Pf=l;b.Tb={version:a.getAttribute("version"),language:a.getAttribute("language"),Ec:[]};X(this,a,b.Tb)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}},"http://www.opengis.net/ows/1.1":{ExceptionReport:function(a,b){b.Tb={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),Ec:[]};X(this,a,b.Tb)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}};Bl.call(this)}D(Dl,Bl);
Dl.prototype.pa=function(a){"string"==typeof a&&(a=Al(a));var b={exceptionReport:k};a&&X(this,a,b);return b};function El(a){this.c=a=a||{};this.hb=a.hb||k;this.version=a.version;this.profile=a.profile;a.cb!==g?this.cb=a.cb:this.cb=l;a.kc!==g?this.kc=a.kc:this.kc=l}
El.prototype.pa=function(a,b){"string"==typeof a&&(a=Al(a));var c;c=a.documentElement;var d;c?(d=this.version,d||(d=c.getAttribute("version"),d||(d=this.hb))):d=this.version||this.hb;d=(c=d)||this.hb;var e=this.profile?"_"+this.profile:"";if(!this.b||this.b.VERSION!=d){var f=this.a["v"+d.replace(/\./g,"_")+e];f||(""!==e&&this.cb&&(e="",f=this.a["v"+d.replace(/\./g,"_")+e]),f||aa("Can't find a parser for version "+d+e));this.b=new f(this.c)}this.b=this.b;d=this.b.pa(a,b);e=this.b.Dc||k;e!==k&&d[e]===
g&&(d.error=(new Dl).pa(a));d.version=c;return d};function Fl(){this.a="http://www.opengis.net/wms";this.Dc="service";this.C={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};X(this,a,b.service)},Name:function(a,b){b.name=$(a)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};
if(!isNaN(a.x)||!isNaN(a.y))b.res=a;return b},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ContactInformation:function(a,b){b.contactInformation={};X(this,a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};X(this,a,b.personPrimary)},ContactPerson:function(a,b){b.person=$(a)},ContactOrganization:function(a,b){b.organization=$(a)},ContactPosition:function(a,b){b.position=$(a)},ContactAddress:function(a,b){b.contactAddress=
{};X(this,a,b.contactAddress)},AddressType:function(a,b){b.type=$(a)},Address:function(a,b){b.address=$(a)},City:function(a,b){b.city=$(a)},StateOrProvince:function(a,b){b.stateOrProvince=$(a)},PostCode:function(a,b){b.postcode=$(a)},Country:function(a,b){b.country=$(a)},ContactVoiceTelephone:function(a,b){b.phone=$(a)},ContactFacsimileTelephone:function(a,b){b.fax=$(a)},ContactElectronicMailAddress:function(a,b){b.email=$(a)},Fees:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.fees=c)},
AccessConstraints:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.accessConstraints=c)},Capability:function(a,b){b.capability={};b.capability.nestedLayers=[];b.capability.layers=[];X(this,a,b.capability)},Request:function(a,b){b.request={};X(this,a,b.request)},GetCapabilities:function(a,b){b.getcapabilities={};b.getcapabilities.formats=[];X(this,a,b.getcapabilities)},Format:function(a,b){ha(b.formats)?b.formats.push($(a)):b.format=$(a)},DCPType:function(a,b){X(this,a,b)},HTTP:function(a,b){X(this,
a,b)},Get:function(a,b){b.get={};X(this,a,b.get)},Post:function(a,b){b.post={};X(this,a,b.post)},GetMap:function(a,b){b.getmap={};b.getmap.formats=[];X(this,a,b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={};b.getfeatureinfo.formats=[];X(this,a,b.getfeatureinfo)},Exception:function(a,b){b.exception={};b.exception.formats=[];X(this,a,b.exception)},Layer:function(a,b){var c,d;b.capability?(d=b.capability,c=b):d=b;var e=a.getAttributeNode("queryable"),f=e&&e.specified?a.getAttribute("queryable"):
k,h=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):k,j=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):k,m=a.getAttribute("noSubsets"),q=a.getAttribute("fixedWidth"),v=a.getAttribute("fixedHeight"),e=c||{},f={nestedLayers:[],styles:c?[].concat(c.styles):[],srs:{},metadataURLs:[],bbox:{},llbbox:e.llbbox,dimensions:{},authorityURLs:{},identifiers:{},keywords:[],queryable:f&&""!==f?"1"===f||"true"===f:e.queryable||l,cascaded:h!==k?parseInt(h,10):e.cascaded||
0,opaque:j?"1"===j||"true"===j:e.opaque||l,noSubsets:m!==k?"1"===m||"true"===m:e.noSubsets||l,fixedWidth:q!==k?parseInt(q,10):e.fixedWidth||0,fixedHeight:v!==k?parseInt(v,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&($a(f.srs,e.srs),$a(f.bbox,e.bbox),$a(f.dimensions,e.dimensions),$a(f.authorityURLs,e.authorityURLs));b.nestedLayers.push(f);f.capability=d;X(this,a,f);delete f.capability;f.name&&(c=f.name.split(":"),h=d.request,e=h.getfeatureinfo,0<c.length&&
(f.prefix=c[0]),d.layers.push(f),f.formats===g&&(f.formats=h.getmap.formats),f.infoFormats===g&&e&&(f.infoFormats=e.formats))},Attribution:function(a,b){b.attribution={};X(this,a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};X(this,a,b.logo)},Style:function(a,b){var c={};b.styles.push(c);X(this,a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;X(this,a,c)},MetadataURL:function(a,
b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);X(this,a,c)},DataURL:function(a,b){b.dataURL={};X(this,a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};X(this,a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};X(this,a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=$(a)},KeywordList:function(a,b){X(this,a,b)},SRS:function(a,b){b.srs[$(a)]=i}}};Bl.call(this)}D(Fl,Bl);
Fl.prototype.pa=function(a){"string"==typeof a&&(a=Al(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Cl(this,a,b);return b};function Gl(){Fl.call(this);var a=this.C["http://www.opengis.net/wms"].BoundingBox;$a(this.C["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){X(this,a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:$(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};X(this,a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic={formats:[]};X(this,a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};X(this,a,c.getstyles)},PutStyles:function(a,
c){c.putstyles={formats:[]};X(this,a,c.putstyles)},UserDefinedSymbolization:function(a,c){var d={supportSLD:1==parseInt(a.getAttribute("SupportSLD"),10),userLayer:1==parseInt(a.getAttribute("UserLayer"),10),userStyle:1==parseInt(a.getAttribute("UserStyle"),10),remoteWFS:1==parseInt(a.getAttribute("RemoteWFS"),10)};c.userSymbols=d},LatLonBoundingBox:function(a,c){c.llbbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))]},
BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("SRS");c.bbox[d.srs]=d},ScaleHint:function(a,c){var d=parseFloat(a.getAttribute("min")),e=parseFloat(a.getAttribute("max")),f=Math.pow(2,0.5),h=25.4/0.28;0!==d&&(c.maxScale=parseFloat(39.37*(d/f)*h));e!=Number.POSITIVE_INFINITY&&(c.minScale=parseFloat(39.37*(e/f)*h))},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol")};c.dimensions[d.name]=
d},Extent:function(a,c){var d=a.getAttribute("name").toLowerCase();d in c.dimensions&&(d=c.dimensions[d],d.nearestVal="1"===a.getAttribute("nearestValue"),d.multipleVal="1"===a.getAttribute("multipleValues"),d.current="1"===a.getAttribute("current"),d["default"]=a.getAttribute("default")||"",d.values=$(a).split(","))}})}D(Gl,Fl);function Hl(){Gl.call(this);this.version="1.1.0";$a(this.C["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=$(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=i}})}D(Hl,Gl);function Il(){Gl.call(this);this.version="1.1.1";$a(this.C["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[$(a)]=i}})}D(Il,Gl);function Jl(){Il.call(this);this.profile="WMSC";$a(this.C["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};X(this,a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};X(this,a,c);b.Qf.push(c)},Resolutions:function(a,b){for(var c=$(a).split(" "),d=0,e=c.length;d<e;d++)""!==c[d]&&b.resolutions.push(parseFloat(c[d]))},Width:function(a,b){b.width=parseInt($(a),10)},Height:function(a,b){b.height=parseInt($(a),10)},Layers:function(a,
b){b.layers=$(a)},Styles:function(a,b){b.styles=$(a)}})}D(Jl,Il);function Kl(){Fl.call(this);var a=this.C["http://www.opengis.net/wms"].BoundingBox;$a(this.C["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){X(this,a,c)},LayerLimit:function(a,c){c.layerLimit=parseInt($(a),10)},MaxWidth:function(a,c){c.maxWidth=parseInt($(a),10)},MaxHeight:function(a,c){c.maxHeight=parseInt($(a),10)},BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("CRS");c.bbox[d.srs]=d},CRS:function(a,c){this.C["http://www.opengis.net/wms"].SRS.apply(this,
arguments)},EX_GeographicBoundingBox:function(a,c){c.llbbox=[];X(this,a,c.llbbox)},westBoundLongitude:function(a,c){c[0]=$(a)},eastBoundLongitude:function(a,c){c[2]=$(a)},southBoundLatitude:function(a,c){c[1]=$(a)},northBoundLatitude:function(a,c){c[3]=$(a)},MinScaleDenominator:function(a,c){c.maxScale=parseFloat($(a)).toPrecision(16)},MaxScaleDenominator:function(a,c){c.minScale=parseFloat($(a)).toPrecision(16)},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),
unitsymbol:a.getAttribute("unitSymbol"),nearestVal:"1"===a.getAttribute("nearestValue"),multipleVal:"1"===a.getAttribute("multipleValues"),"default":a.getAttribute("default")||"",current:"1"===a.getAttribute("current"),values:$(a).split(",")};c.dimensions[d.name]=d},Keyword:function(a,c){var d={value:$(a),vocabulary:a.getAttribute("vocabulary")};c.keywords&&c.keywords.push(d)}});this.C.sld={UserDefinedSymbolization:function(a,c){this.C["http://www.opengis.net/wms"].Lf.apply(this,arguments);var d=
a.getAttribute("InlineFeature");c.userSymbols.inlineFeature=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");c.userSymbols.remoteWCS=1==parseInt(d,10)},DescribeLayer:function(a,c){this.C["http://www.opengis.net/wms"].nf.apply(this,arguments)},GetLegendGraphic:function(a,c){this.C["http://www.opengis.net/wms"].qf.apply(this,arguments)}}}D(Kl,Fl);function Ll(a){a=a||{};a.defaultVersion="1.1.1";this.a={};this.a.v1_1_0=Hl;this.a.v1_1_1=Il;this.a.v1_1_1_WMSC=Jl;this.a.v1_3_0=Kl;El.call(this,a)}D(Ll,El);function Ml(){this.C={"http://www.opengis.net/ows":{ServiceIdentification:function(a,b){b.serviceIdentification={};X(this,a,b.serviceIdentification)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},Keywords:function(a,b){b.keywords={};X(this,a,b.keywords)},Keyword:function(a,b){b[$(a)]=i},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),value:$(a)}},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=$(a)},Fees:function(a,b){b.fees=$(a)},
AccessConstraints:function(a,b){b.accessConstraints=$(a)},ServiceProvider:function(a,b){b.serviceProvider={};X(this,a,b.serviceProvider)},ProviderName:function(a,b){b.providerName=$(a)},ProviderSite:function(a,b){b.providerSite=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceContact:function(a,b){b.serviceContact={};X(this,a,b.serviceContact)},IndividualName:function(a,b){b.individualName=$(a)},PositionName:function(a,b){b.positionName=$(a)},ContactInfo:function(a,b){b.contactInfo=
{};X(this,a,b.contactInfo)},Phone:function(a,b){b.phone={};X(this,a,b.phone)},Voice:function(a,b){b.voice=$(a)},Address:function(a,b){b.address={};X(this,a,b.address)},DeliveryPoint:function(a,b){b.deliveryPoint=$(a)},City:function(a,b){b.city=$(a)},AdministrativeArea:function(a,b){b.administrativeArea=$(a)},PostalCode:function(a,b){b.postalCode=$(a)},Country:function(a,b){b.country=$(a)},ElectronicMailAddress:function(a,b){b.electronicMailAddress=$(a)},Role:function(a,b){b.role=$(a)},OperationsMetadata:function(a,
b){b.operationsMetadata={};X(this,a,b.operationsMetadata)},Operation:function(a,b){var c=a.getAttribute("name");b[c]={};X(this,a,b[c])},DCP:function(a,b){b.dcp={};X(this,a,b.dcp)},HTTP:function(a,b){b.http={};X(this,a,b.http)},Get:function(a,b){b.get||(b.get=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};X(this,a,c);b.get.push(c)},Post:function(a,b){b.post||(b.post=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};X(this,a,c);b.post.push(c)},
Parameter:function(a,b){b.parameters||(b.parameters={});var c=a.getAttribute("name");b.parameters[c]={};X(this,a,b.parameters[c])},Constraint:function(a,b){b.constraints||(b.constraints={});var c=a.getAttribute("name");b.constraints[c]={};X(this,a,b.constraints[c])},Value:function(a,b){b[$(a)]=i},OutputFormat:function(a,b){b.formats.push({value:$(a)});X(this,a,b)},WGS84BoundingBox:function(a,b){var c={};c.crs=a.getAttribute("crs");b.BoundingBox?b.BoundingBox.push(c):(b.projection=c.crs,c=b);X(this,
a,c)},BoundingBox:function(a,b){this.C["http://www.opengis.net/ows"].WGS84BoundingBox.apply(this,[a,b])},LowerCorner:function(a,b){var c=$(a).replace(this.Ka.nd,""),c=c.replace(this.Ka.md,","),c=c.split(this.Ka.kd);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=$(a).replace(this.Ka.nd,""),c=c.replace(this.Ka.md,","),c=c.split(this.Ka.kd);b.right=c[0];b.top=c[1];b.bounds=new O(parseFloat(b.left),parseFloat(b.bottom),parseFloat(b.right),parseFloat(b.top));delete b.left;delete b.bottom;delete b.right;
delete b.top},Language:function(a,b){b.language=$(a)}}};Bl.call(this)}D(Ml,Bl);function Nl(){Ml.call(this);this.C["http://www.opengis.net/ows/1.1"]=this.C["http://www.opengis.net/ows"];$a(this.C["http://www.opengis.net/ows/1.1"],{AllowedValues:function(a,b){b.allowedValues={};X(this,a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=i},DataType:function(a,b){b.dataType=$(a)},Range:function(a,b){b.range={};X(this,a,b.range)},MinimumValue:function(a,b){b.minValue=$(a)},MaximumValue:function(a,b){b.maxValue=$(a)},Identifier:function(a,b){b.identifier=$(a)},SupportedCRS:function(a,
b){b.supportedCRS=$(a)}})}D(Nl,Ml);function Ol(){this.a="http://www.opengis.net/wtms/1.0";this.Dc="serviceIdentification";this.C={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){X(this,a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};X(this,a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};X(this,a,d);c.layers.push(d)},Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");X(this,a,d);c.styles.push(d)},
Format:function(a,c){c.formats.push($(a))},TileMatrixSetLink:function(a,c){var d={};X(this,a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};X(this,a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=$(a)},TileMatrix:function(a,c){var d={supportedCRS:c.supportedCRS};X(this,a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat($(a))},TopLeftCorner:function(a,c){var d=$(a).split(" "),e=Zf(c.supportedCRS).d;c.topLeftCorner=
xd([parseFloat(d[0]),parseFloat(d[1])],e)},TileWidth:function(a,c){c.tileWidth=parseInt($(a),10)},TileHeight:function(a,c){c.tileHeight=parseInt($(a),10)},MatrixWidth:function(a,c){c.matrixWidth=parseInt($(a),10)},MatrixHeight:function(a,c){c.matrixHeight=parseInt($(a),10)},ResourceURL:function(a,c){var d=a.getAttribute("resourceType"),e=a.getAttribute("format"),f=a.getAttribute("template");c.resourceUrls||(c.resourceUrls={});c.resourceUrls[d]||(c.resourceUrls[d]={});c.resourceUrls[d][e]||(c.resourceUrls[d][e]=
[]);c.resourceUrls[d][e].push(f)},WSDL:function(a,c){c.wsdl={};c.wsdl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceMetadataURL:function(a,c){c.serviceMetadataUrl={};c.serviceMetadataUrl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},LegendURL:function(a,c){c.legend={};c.legend.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href");c.legend.format=a.getAttribute("format")},Dimension:function(a,c){var d={values:[]};X(this,a,d);c.dimensions.push(d)},
Default:function(a,c){c["default"]=$(a)},Value:function(a,c){c.values.push($(a))}}};var a=new Nl;this.C["http://www.opengis.net/ows/1.1"]=a.C["http://www.opengis.net/ows/1.1"];Bl.call(this)}D(Ol,Bl);Ol.prototype.pa=function(a){"string"==typeof a&&(a=Al(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Cl(this,a,b);return b};function Pl(a){a=a||{};a.defaultVersion="1.0.0";this.a={};this.a.v1_0_0=Ol;El.call(this,a)}D(Pl,El);/*
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 Ql(a,b){this.a=[];this.f=a;this.e=b||k}p=Ql.prototype;p.ya=l;p.Sa=l;p.Ya=0;p.jd=l;p.zd=l;p.yd=0;p.zc=function(a,b){Rl(this,a,b);this.Ya--;0==this.Ya&&this.ya&&Sl(this)};function Rl(a,b,c){a.ya=i;a.b=c;a.Sa=!b;Sl(a)}function Tl(a){a.ya&&(a.jd||aa(new Ul(a)),a.jd=l)}p.fb=function(a){Tl(this);Rl(this,i,a)};function Vl(a){return Ha(a.a,function(a){return ka(a[1])})}
function Sl(a){a.c&&(a.ya&&Vl(a))&&(r.clearTimeout(a.c),delete a.c);a.d&&(a.d.yd--,delete a.d);for(var b=a.b,c=l,d=l;a.a.length&&0==a.Ya;){var e=a.a.shift(),f=e[0],h=e[1],e=e[2];if(f=a.Sa?h:f)try{var j=f.call(e||a.e,b);x(j)&&(a.Sa=a.Sa&&(j==b||j instanceof Error),a.b=b=j);b instanceof Ql&&(d=i,a.Ya++)}catch(m){b=m,a.Sa=i,Vl(a)||(c=i)}}a.b=b;d&&a.Ya&&(d=b,j=ra(a.zc,a,i),f=ra(a.zc,a,l),d.a.push([j,f,g]),d.ya&&Sl(d),b.zd=i);c&&(a.c=r.setTimeout(function(){aa(b)},0))}
function Ul(a){ua.call(this);this.a=a}D(Ul,ua);Ul.prototype.message="Deferred has already fired";Ul.prototype.name="AlreadyCalledError";function Wl(a,b){var c=b||{},d=c.document||document,e=fc("SCRIPT"),f={ed:e,Lb:g},h=new Ql(Xl,f),j=k,m=c.timeout!=k?c.timeout:5E3;0<m&&(j=window.setTimeout(function(){Yl(e,i);var b=new Zl($l,"Timeout reached for loading script "+a);Tl(h);Rl(h,l,b)},m),f.Lb=j);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)Yl(e,c.wc||l,j),h.fb(k)};e.onerror=function(){Yl(e,i,j);var b=new Zl(am,"Error while loading script "+a);Tl(h);Rl(h,l,b)};ac(e,{type:"text/javascript",
charset:"UTF-8",src:a});f=d.getElementsByTagName("HEAD");(!f||0==f.length?d.documentElement:f[0]).appendChild(e);return h}function Xl(){if(this&&this.ed){var a=this.ed;a&&"SCRIPT"==a.tagName&&Yl(a,i,this.Lb)}}function Yl(a,b,c){c!=k&&r.clearTimeout(c);a.onload=da;a.onerror=da;a.onreadystatechange=da;b&&window.setTimeout(function(){jc(a)},0)}var am=0,$l=1;function Zl(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ua.call(this,c);this.code=a}D(Zl,ua);function bm(a){this.b=new Cd(a);this.a="jsonp";this.Lb=5E3}var cm=0;function dm(a,b){r._callbacks_[a]&&(b?delete r._callbacks_[a]:r._callbacks_[a]=da)};function em(a){return function(b){return b===k?g:a.replace("{z}",b.n).replace("{x}",b.x).replace("{y}",b.y)}}function fm(a){return 1===a.length?a[0]:function(b,c,d){if(b!==k){var e=Sb(b.hash(),a.length);return a[e](b,c,d)}}}function gm(){}function hm(a,b){return function(c,d,e){return c===k?g:b(a(c,d,e),d,e)}}
function im(a){var b=[],c=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(c){var d=c[2].charCodeAt(0),e;for(e=c[1].charCodeAt(0);e<=d;++e)b.push(a.replace(c[0],String.fromCharCode(e)))}else b.push(a);return b};function jm(a,b,c,d){Cf.call(this,a,b);this.f=c;this.c=new Image;d!==k&&(this.c.crossOrigin=d);this.e={};this.d=k}D(jm,Cf);jm.prototype.M=function(a){if(x(a)){var b=z(a);if(b in this.e)return this.e[b];a=Xa(this.e)?this.c:this.c.cloneNode(l);return this.e[b]=a}return this.c};jm.prototype.b=n("f");jm.prototype.g=function(){this.a=3;F(this.d,J);this.d=k;K(this,"change")};jm.prototype.i=function(){this.a=2;F(this.d,J);this.d=k;K(this,"change")};function km(a){$h.call(this,{attributions:a.attributions,extent:a.extent,opaque:a.opaque,projection:a.projection,tileGrid:a.tileGrid});this.ja=x(a.ja)?a.ja:gm;this.B=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new dj}D(km,$h);km.prototype.g=function(){return this.a.J()>this.a.d};km.prototype.Pa=function(a){this.a.Pa(a)};km.prototype.b=function(a,b,c){var d=a.toString();if(aj(this.a,d))return bj(this.a,d);b=this.ja(a,b,c);a=new jm(a,x(b)?0:4,x(b)?b:"",this.B);cj(this.a,d,a);return a};
km.prototype.u=function(a){aj(this.a,a)&&bj(this.a,a)};function lm(a){var b=Array(a.maxZoom+1),c,d=2*eh/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);Rh.call(this,{origin:new L(-eh,eh),resolutions:b,tileSize:new Qe(256,256)})}D(lm,Rh);lm.prototype.b=function(a,b,c){for(var d=a.x,e=a.y,a=a.n,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new Af(d,e,d,e);if(b.call(c,a,f))break}};function mm(a){km.call(this,{opaque:i,projection:Zf("EPSG:3857")});this.Dd=x(a.culture)?a.culture:"en-us";this.i=l;var b=new Cd("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new bm(b),a={include:"ImageryProviders",key:a.key},c=ra(this.t,this),a=a||k,d="_"+(cm++).toString(36)+ta().toString(36);r._callbacks_||(r._callbacks_={});var e=b.b.V();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&be(e,f,a[f]);c&&(r._callbacks_[d]=function(a){dm(d,i);c.apply(g,arguments)},be(e,
b.a,"_callbacks_."+d));f=Wl(e.toString(),{timeout:b.Lb,wc:i});f.a.push([k,function(){dm(d,l)},g]);f.ya&&Sl(f)}D(mm,km);
mm.prototype.t=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new lm({maxZoom:d,tileSize:new Qe(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.ja=hm(function(a){if(a.n<c||d<a.n)return k;var b=1<<a.n,e=-a.y-1;return 0>e||b<=e?k:new yf(a.n,Sb(a.x,b),e)},fm(Ga(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.Dd);return function(a){return a===k?g:c.replace("{quadkey}",zf(a))}})));var f=Pf(Zf("EPSG:4326"),this.c);this.f=
Ga(b.imageryProviders,function(a){var b=a.attribution,c={};F(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new O(a[1],a[0],a[3],a[2])).transform(f),h,j;for(h=b;h<=d;++h)j=h.toString(),b=Th(e,a,e.a[h]),j in c?c[j].push(b):c[j]=[b]});return new Bf(b,c)});this.i=i;K(this,"load")};mm.prototype.d=n("i");function nm(a,b){Cf.call(this,a,2);this.e=a;this.d=Xh(b,a.n);this.c={}}D(nm,Cf);nm.prototype.M=function(a){a=x(a)?z(a):-1;if(a in this.c)return this.c[a];var b=this.d,c=fc("CANVAS");c.width=b.width;c.height=b.height;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b.width+0.5,b.height+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.e.toString(),b.width/2,b.height/2);return this.c[a]=c};
function om(a){$h.call(this,{extent:a.extent,opaque:l,projection:a.projection,tileGrid:a.tileGrid});this.a=new dj}D(om,$h);om.prototype.g=function(){return this.a.J()>this.a.d};om.prototype.Pa=function(a){this.a.Pa(a)};om.prototype.b=function(a){var b=a.toString();if(aj(this.a,b))return bj(this.a,b);a=new nm(a,this.tileGrid);cj(this.a,b,a);return a};function pm(a){var b=a.projection||Zf("EPSG:3857"),c=gm;x(a.ja)?c=a.ja:x(a.urls)?c=fm(Ga(a.urls,em)):x(a.url)&&(c=im(a.url),c=fm(Ga(c,em)));var d=new lm({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?hm(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,j=-b.y-1;if(0>j||c<=j)return k;c=Sb(b.x,c);return!Sh(d,new yf(b.n,c,b.y)).ha(e)?k:new yf(b.n,c,j)},c):hm(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,d=-b.y-1;return 0>d||c<=d?k:new yf(b.n,Sb(b.x,c),d)},c);km.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
extent:a.extent,projection:b,tileGrid:d,ja:c})}D(pm,km);function qm(){pm.call(this,{attributions:[new Bf('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 Bf('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>')],opaque:i,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}D(qm,pm);
function rm(){pm.call(this,{attributions:[new Bf('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 Bf("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,opaque:i,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}D(rm,pm);function sm(){pm.call(this,{attributions:[new Bf('&copy; <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],opaque:i,maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}D(sm,pm);function tm(a){si.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,Ua:x(a.url)?qi(a.url,a.params):ri});this.b=k;this.g=x(a.ratio)?a.ratio:1.5}D(tm,si);
tm.prototype.M=function(a,b,c){this.a===k||(b=this.a[ug(this.a,b)]);var d=this.b;if(d!==k&&d.e==b&&d.I().yc(a))return d;var d=a=new O(a.h,a.l,a.j,a.k),e=this.g,f=d.ma()/2*(e-1),e=d.ga()/2*(e-1);d.h-=f;d.l-=e;d.j+=f;d.k+=e;return this.b=ti(this,a,b,new Qe(a.ma()/b,a.ga()/b),c)};var um={terrain:{aa:"jpg",opaque:i},"terrain-background":{aa:"jpg",opaque:i},"terrain-labels":{aa:"png",opaque:l},"terrain-lines":{aa:"png",opaque:l},"toner-background":{aa:"png",opaque:i},toner:{aa:"png",opaque:i},"toner-hybrid":{aa:"png",opaque:l},"toner-labels":{aa:"png",opaque:l},"toner-lines":{aa:"png",opaque:l},"toner-lite":{aa:"png",opaque:i},watercolor:{aa:"jpg",opaque:i}},vm={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}},wm=[new Bf('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>.')];
function xm(a){var b=a.layer.indexOf("-"),b=-1==b?a.layer:a.layer.slice(0,b),c=um[a.layer];pm.call(this,{attributions:wm,maxZoom:vm[b].maxZoom,opaque:c.opaque,url:x(a.url)?a.url:"http://{a-d}.tile.stamen.com/"+a.layer+"/{z}/{x}/{y}."+c.aa})}D(xm,pm);function ym(a){var b=a.url,c=a.imageExtent,d=a.imageSize,e=c.ga()/d.height,f=Zf(a.projection);si.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Ua:function(){return b},resolutions:[e]});this.b=ti(this,c,e,d,f)}D(ym,si);ym.prototype.M=function(a){return a.ha(this.b.I())?this.b:k};var zm=[];C("grid",function(a){zm.push(a)});function Am(a){km.call(this,{projection:Zf("EPSG:3857")});this.i=l;a=this.t=Wl(a.uri,{wc:i});a.a.push([this.w,k,this]);a.ya&&Sl(a)}D(Am,km);
Am.prototype.w=function(){var a=zm.pop(),b=Zf("EPSG:4326"),c,d;x(a.bounds)?(c=a.bounds,c=new O(c[0],c[1],c[2],c[3]),this.s=d=c.transform(Pf(b,this.c))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,h=new lm({maxZoom:f});this.tileGrid=h;this.ja=hm(function(a){if(a.n<e||f<a.n)return k;var b=1<<a.n,c=-a.y-1;if(0>c||b<=c)return k;b=Sb(a.x,b);return d!==k&&!Sh(h,new yf(a.n,b,a.y)).ha(d)?k:new yf(a.n,b,c)},fm(Ga(a.tiles,em)));if(x(a.attribution)){b=d===k?b.I():d;c={};var j,m;for(j=e;j<=f;++j)m=j.toString(),
c[m]=[Th(h,b,h.a[j])];this.f=[new Bf(a.attribution,c)]}this.i=i;K(this,"load")};Am.prototype.d=n("i");function Bm(a){var b=gm,c=a.urls;!x(c)&&x(a.url)&&(c=im(a.url));x(c)&&(b=Ga(c,function(b){var c=a.params;return function(a,d,m){return a===k?g:pi(b,c,Sh(d,a),Xh(d,a.n),m)}}),b=fm(b));var d=a.extent;km.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:a.tileGrid,opaque:!(x(a.params.TRANSPARENT)?a.params.TRANSPARENT:1),projection:a.projection,ja:hm(function(a,b,c){if(b.nb().length<=a.n)return k;var j=a.x,m=Sh(b,a),q=c.I();d=x(d)?d:q;d!==k&&(c.Vb&&d.h===q.h&&d.j===q.j)&&
(c=Math.ceil((d.j-d.h)/(m.j-m.h)),j=Sb(j,c),m=Sh(b,new yf(a.n,j,a.y)));return!m.ha(d)?k:new yf(a.n,j,a.y)},b)})}D(Bm,km);function Cm(a){this.g=a.matrixIds;Rh.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}D(Cm,Rh);function Dm(a){var b=x(a.version)?a.version:"1.0.0",c=x(a.format)?a.format:"image/jpeg",d=x(a.requestEncoding)?a.requestEncoding:"KVP",e=a.tileGrid,f={Layer:a.layer,style:a.style,TileMatrixSet:a.matrixSet};$a(f,a.dimensions||{});var h;"KVP"==d&&(h={Service:"WMTS",Request:"GetTile",Version:b,Format:c,TileMatrix:"{TileMatrix}",TileRow:"{TileRow}",TileCol:"{TileCol}"},$a(h,f));b=gm;c=a.urls;!x(c)&&x(a.url)&&(c=im(a.url));x(c)&&(b=fm(Ga(c,function(a){x(h)&&(a=zd(Bd([a],h)));var b=a;return function(a){if(a!==
k){a={TileMatrix:e.g[a.n],TileCol:a.x,TileRow:a.y};"KVP"!=d&&$a(a,f);var c=b,h;for(h in a)c=c.replace("{"+h+"}",a[h]).replace("%7B"+h+"%7D",a[h]);return c}}})));b=hm(function(b,c,d){if(c.nb().length<=b.n)return k;var e=b.x,f=-b.y-1,h=Sh(c,b),u=d.I(),t=x(a.extent)?a.extent:u;t!==k&&(d.Vb&&t.h===u.h&&t.j===u.j)&&(d=Math.ceil((t.j-t.h)/(h.j-h.h)),e=Sb(e,d),h=Sh(c,new yf(b.n,e,b.y)));return!h.ha(t)?k:new yf(b.n,e,f)},b);km.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,
projection:a.projection,tileGrid:e,ja:b})}D(Dm,km);C("goog.require",da);function Em(a){Wk.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}D(Em,Wk);C("ol.AnchoredElement",Em);C("ol.AnchoredElementPositioning",Vk);Vk.BOTTOM_LEFT="bottom-left";Vk.BOTTOM_RIGHT="bottom-right";Vk.TOP_LEFT="top-left";Vk.TOP_RIGHT="top-right";C("ol.Attribution",Bf);C("ol.Collection",N);N.prototype.clear=N.prototype.clear;N.prototype.forEach=N.prototype.forEach;N.prototype.getAt=N.prototype.Hd;N.prototype.getLength=N.prototype.mb;
N.prototype.insertAt=N.prototype.ub;N.prototype.pop=N.prototype.pop;N.prototype.push=N.prototype.push;N.prototype.remove=N.prototype.remove;N.prototype.removeAt=N.prototype.jc;N.prototype.setAt=N.prototype.Ne;C("ol.Coordinate",L);C("ol.Coordinate.createStringXY",function(a){return function(b){return wd(b,a)}});C("ol.Coordinate.fromProjectedArray",xd);C("ol.Coordinate.toStringHDMS",function(a){return x(a)?vd(a.y,"NS")+" "+vd(a.x,"EW"):""});C("ol.Coordinate.toStringXY",wd);C("ol.Expression",mj);
C("ol.Extent",O);O.prototype.containsCoordinate=O.prototype.Bd;O.prototype.containsExtent=O.prototype.yc;O.prototype.getBottomLeft=O.prototype.Gc;O.prototype.getBottomRight=O.prototype.Jd;O.prototype.getCenter=O.prototype.ad;O.prototype.getHeight=O.prototype.ga;O.prototype.getTopLeft=O.prototype.ob;O.prototype.getTopRight=O.prototype.Nd;O.prototype.getWidth=O.prototype.ma;O.prototype.transform=O.prototype.transform;C("ol.Feature",Bi);Bi.prototype.get=Bi.prototype.q;Bi.prototype.getAttributes=Bi.prototype.Qa;
Bi.prototype.getGeometry=Bi.prototype.sa;Bi.prototype.set=Bi.prototype.p;Bi.prototype.setGeometry=Bi.prototype.gd;Bi.prototype.setSymbolizers=Bi.prototype.Pe;C("ol.Geolocation",W);function Fm(a){V.call(this,{controls:a.controls,interactions:a.interactions,layers:a.layers,renderer:a.renderer,renderers:a.renderers,target:a.target,view:a.view})}D(Fm,V);C("ol.Map",Fm);V.prototype.addLayer=V.prototype.ze;V.prototype.addPreRenderFunction=V.prototype.ra;V.prototype.addPreRenderFunctions=V.prototype.wd;
V.prototype.getInteractions=V.prototype.xa;V.prototype.getRenderer=V.prototype.Pb;V.prototype.removeLayer=V.prototype.Ae;eg.prototype.getCoordinate=eg.prototype.d;C("ol.Object",M);M.prototype.bindTo=M.prototype.xd;M.prototype.changed=M.prototype.Ad;M.prototype.get=M.prototype.q;M.prototype.notify=M.prototype.Yc;M.prototype.set=M.prototype.p;M.prototype.setOptions=M.prototype.hd;M.prototype.setValues=M.prototype.Db;M.prototype.unbind=M.prototype.nc;M.prototype.unbindAll=M.prototype.Ye;
function Gm(a){Nf.call(this,{axisOrientation:a.axisOrientation,code:a.code,extent:a.extent,global:a.global,units:a.units})}D(Gm,Nf);C("ol.Projection",Gm);Nf.prototype.getAxisOrientation=Nf.prototype.Id;Nf.prototype.getCode=Nf.prototype.Ld;Nf.prototype.getExtent=Nf.prototype.I;Nf.prototype.getMetersPerUnit=Nf.prototype.Hc;Nf.prototype.getPointResolution=Nf.prototype.c;Nf.prototype.getUnits=Nf.prototype.Od;Nf.prototype.isGlobal=Nf.prototype.ve;C("ol.ProjectionUnits",Lf);Lf.DEGREES="degrees";
Lf.FEET="ft";Lf.METERS="m";C("ol.RendererHint",Rk);Rk.CANVAS="canvas";Rk.DOM="dom";Rk.WEBGL="webgl";C("ol.RendererHints",Qk);Qk.createFromQueryData=Qk.Cd;function Hm(a){T.call(this,{center:a.center,maxResolution:a.maxResolution,numZoomLevels:a.numZoomLevels,projection:a.projection,resolution:a.resolution,resolutions:a.resolutions,rotation:a.rotation,zoom:a.zoom,zoomFactor:a.zoomFactor})}D(Hm,T);C("ol.View2D",Hm);T.prototype.fitExtent=T.prototype.f;T.prototype.getView2D=T.prototype.g;
C("ol.animation",xg);xg.bounce=xg.Rb;xg.pan=xg.ia;xg.rotate=xg.rotate;xg.zoom=xg.zoom;function Im(a){Eg.call(this,{map:a.map,target:a.target})}D(Im,Eg);C("ol.control.Attribution",Im);Eg.prototype.setMap=Eg.prototype.a;function Jm(a){Zk.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}D(Jm,Zk);C("ol.control.MousePosition",Jm);Zk.prototype.setMap=Zk.prototype.a;
function Km(a){bl.call(this,{map:a.map,minWidth:a.minWidth,target:a.target,units:a.units})}D(Km,bl);C("ol.control.ScaleLine",Km);bl.prototype.setMap=bl.prototype.a;C("ol.control.ScaleLineUnits",al);al.DEGREES="degrees";al.IMPERIAL="imperial";al.METRIC="metric";al.NAUTICAL="nautical";al.US="us";function Lm(a){Fg.call(this,{delta:a.delta,map:a.map,target:a.target})}D(Lm,Fg);C("ol.control.Zoom",Lm);Fg.prototype.setMap=Fg.prototype.a;
function Mm(a){rl.call(this,{map:a.map,maxResolution:a.maxResolution,minResolution:a.minResolution})}D(Mm,rl);C("ol.control.ZoomSlider",Mm);C("ol.control.defaults",Gg);C("ol.easing",wg);wg.bounce=wg.Rb;wg.easeIn=wg.Ed;wg.easeOut=wg.Oa;wg.elastic=wg.Fd;wg.inAndOut=wg.Ja;wg.linear=wg.Uc;wg.upAndDown=wg.pd;C("ol.filter.Filter",Ji);C("ol.filter.Geometry",Pi);C("ol.filter.Logical",Qi);C("ol.filter.LogicalOperator",Ti);Ti.AND=Ri;Ti.OR=Si;C("ol.geom.LineString",ej);C("ol.geom.MultiLineString",gj);
C("ol.geom.MultiPoint",ij);C("ol.geom.MultiPolygon",lj);C("ol.geom.Point",hj);C("ol.geom.Polygon",kj);C("ol.interaction.Keyboard",ul);ul.prototype.addCallback=ul.prototype.b;C("ol.interaction.defaults",bh);function Nm(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}D(Nm,ui);C("ol.layer.ImageLayer",Nm);
function Om(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}D(Om,vi);C("ol.layer.TileLayer",Om);function Pm(a){Vi.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}D(Pm,Vi);C("ol.layer.Vector",Pm);Vi.prototype.parseFeatures=Vi.prototype.xa;C("ol.parser.GeoJSON",wl);wl.prototype.read=wl.prototype.pa;
C("ol.parser.ogc.WMSCapabilities",Ll);Ll.prototype.read=Ll.prototype.pa;C("ol.parser.ogc.WMTSCapabilities",Pl);Pl.prototype.read=Pl.prototype.pa;C("ol.projection.addProjection",Vf);C("ol.projection.configureProj4jsProjection",function(a){return Qf(a)});C("ol.projection.get",Zf);C("ol.projection.getTransform",$f);C("ol.projection.getTransformFromProjections",Pf);C("ol.projection.transform",function(a,b,c){b=$f(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});
C("ol.projection.transformWithProjections",function(a,b,c){b=Pf(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});Ij.prototype.getCanvas=Ij.prototype.kb;function Qm(a){mm.call(this,{culture:a.culture,key:a.key,style:a.style})}D(Qm,mm);C("ol.source.BingMaps",Qm);function Xm(a){om.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}D(Xm,om);C("ol.source.DebugTileSource",Xm);C("ol.source.MapQuestOSM",qm);C("ol.source.MapQuestOpenAerial",rm);C("ol.source.OpenStreetMap",sm);
function Ym(a){tm.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,params:a.params,projection:a.projection,ratio:a.ratio,resolutions:a.resolutions,url:a.url})}D(Ym,tm);C("ol.source.SingleImageWMS",Ym);function Zm(a){xm.call(this,{layer:a.layer,maxZoom:a.maxZoom,minZoom:a.minZoom,opaque:a.opaque,url:a.url})}D(Zm,xm);C("ol.source.Stamen",Zm);
function $m(a){ym.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,imageExtent:a.imageExtent,imageSize:a.imageSize,projection:a.projection,url:a.url})}D($m,ym);C("ol.source.StaticImage",$m);function an(a){Am.call(this,{uri:a.uri})}D(an,Am);C("ol.source.TileJSON",an);function bn(a){Bm.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,maxZoom:a.maxZoom,params:a.params,projection:a.projection,tileGrid:a.tileGrid,url:a.url,urls:a.urls})}
D(bn,Bm);C("ol.source.TiledWMS",bn);function cn(a){bg.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection})}D(cn,Ci);C("ol.source.Vector",cn);function dn(a){Dm.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,dimensions:a.dimensions,extent:a.extent,format:a.format,layer:a.layer,matrixSet:a.matrixSet,maxZoom:a.maxZoom,projection:a.projection,requestEncoding:a.requestEncoding,style:a.style,tileGrid:a.tileGrid,url:a.url,urls:a.urls})}D(dn,Dm);
C("ol.source.WMTS",dn);
C("ol.source.WMTS.optionsFromCapabilities",function(a,b){var c;c=a.contents.layers;var d=Ja(c,function(a){return a.identifier==b},g);c=0>d?k:ja(c)?c.charAt(d):c[d];var d=c.tileMatrixSetLinks[0].tileMatrixSet,e=c.formats[0],f=Ja(c.styles,function(a){return a.isDefault});0>f&&(f=0);var f=c.styles[f].identifier,h={};F(c.dimensions,function(a){var b=a.identifier,c=a["default"];x(c)||(c=a.values[0]);h[b]=c});var j=a.contents.tileMatrixSets[d],m,q=[],v=[],s=[],A=[],u=Zf(j.supportedCRS).Hc();F(j.matrixIds,
function(a){v.push(a.identifier);s.push(a.topLeftCorner);q.push(2.8E-4*a.scaleDenominator/u);A.push(new Qe(a.tileWidth,a.tileHeight))});m=new Cm({origins:s,resolutions:q,matrixIds:v,tileSizes:A});var j=Zf(j.supportedCRS),t=a.operationsMetadata.GetTile.dcp.http.get,y=Wa(t[0].constraints.GetEncoding.allowedValues)[0],w;switch(y){case "REST":w=c.resourceUrls.tile[e];break;case "KVP":w=[],F(t,function(a){a.constraints.GetEncoding.allowedValues.hasOwnProperty("KVP")&&w.push(a.url)})}return{urls:w,layer:b,
matrixSet:d,format:e,projection:j,requestEncoding:y,tileGrid:m,style:f,dimensions:h}});function en(a){pj.call(this,{height:a.height,opacity:a.opacity,rotation:a.rotation,url:a.url,width:a.width})}D(en,pj);C("ol.style.Icon",en);C("ol.style.IconType",{});function fn(a){sj.call(this,{opacity:a.opacity,strokeColor:a.strokeColor,strokeWidth:a.strokeWidth})}D(fn,sj);C("ol.style.Line",fn);
function gn(a){vj.call(this,{fillColor:a.fillColor,opacity:a.opacity,strokeColor:a.strokeColor,strokeWidth:a.strokeWidth})}D(gn,vj);C("ol.style.Polygon",gn);function hn(a){Mi.call(this,{filter:a.filter,symbolizers:a.symbolizers})}D(hn,Mi);C("ol.style.Rule",hn);function jn(a){zj.call(this,{fillColor:a.fillColor,opacity:a.opacity,size:a.size,strokeColor:a.strokeColor,strokeWidth:a.strokeWidth,type:a.type})}D(jn,zj);C("ol.style.Shape",jn);C("ol.style.ShapeType",xj);xj.CIRCLE="circle";
function kn(a){Ni.call(this,{rules:a.rules})}D(kn,Ni);C("ol.style.Style",kn);function ln(a){Rh.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}D(ln,Rh);C("ol.tilegrid.TileGrid",ln);function mn(a){Cm.call(this,{matrixIds:a.matrixIds,origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}D(mn,Cm);C("ol.tilegrid.WMTS",mn);function nn(a){lm.call(this,{maxZoom:a.maxZoom})}D(nn,lm);
C("ol.tilegrid.XYZ",nn);xg.cf={};xg.Df={};xg.Ef={};xg.Nf={};})();