Files
openlayers/master/build/ol.js
Éric Lemoine 849774dceb Updated
2013-03-06 18:06:39 +01:00

241 lines
130 KiB
JavaScript

(function(){var h=void 0,j=!0,k=null,l=!1;function aa(){return function(a){return a}}function m(a){return function(){return this[a]}}var p,w=this;function ba(){}function ca(a){a.Ya=function(){return a.qc?a.qc:a.qc=new a}}
function da(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!==h}function ea(a){return"array"==da(a)}function fa(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ga(a){return"string"==typeof a}function ha(a){return"function"==da(a)}function ia(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function y(a){return a[ja]||(a[ja]=++ka)}var ja="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ka=0;
function la(a,b,c){return a.call.apply(a.bind,arguments)}function ma(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function na(a,b,c){na=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return na.apply(k,arguments)}
function oa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var pa=Date.now||function(){return+new Date};function A(a,b){var c=a.split("."),d=w;!(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 B(a,b){function c(){}c.prototype=b.prototype;a.v=b.prototype;a.prototype=new c};function qa(a){Error.captureStackTrace?Error.captureStackTrace(this,qa):this.stack=Error().stack||"";a&&(this.message=String(a))}B(qa,Error);qa.prototype.name="CustomError";function ra(a){if(!ta.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ua,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(va,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(wa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(xa,"&quot;"));return a}var ua=/&/g,va=/</g,wa=/>/g,xa=/\"/g,ta=/[&<>\"]/;var ya=Array.prototype,za=ya.indexOf?function(a,b,c){return ya.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ga(a))return!ga(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},C=ya.forEach?function(a,b,c){ya.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ga(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Aa=ya.map?function(a,b,c){return ya.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=
ga(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ba=ya.some?function(a,b,c){return ya.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ga(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return j;return l};function Ca(a){if(!ea(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Da(a,b){var c=za(a,b),d;(d=0<=c)&&ya.splice.call(a,c,1);return d}function Ea(a){return ya.concat.apply(ya,arguments)}
function Fa(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 Ga(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(ea(d)||(e=fa(d))&&d.hasOwnProperty("callee"))a.push.apply(a,d);else if(e)for(var f=a.length,g=d.length,i=0;i<g;i++)a[f+i]=d[i];else a.push(d)}}function Ha(a,b,c,d){ya.splice.apply(a,Ia(arguments,1))}function Ia(a,b,c){return 2>=arguments.length?ya.slice.call(a,b):ya.slice.call(a,b,c)}function Ja(a){ya.sort.call(a,Ka)}
function Ka(a,b){return a>b?1:a<b?-1:0};function La(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Ma(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Sa(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Ta(a){for(var b in a)return l;return j}var Ua="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function Va(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<Ua.length;f++)c=Ua[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Wa(a){if("function"==typeof a.N)return a.N();if(ga(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ma(a)};function Xa(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)Ya(this,arguments[d],arguments[d+1])}else if(a){a instanceof Xa?(c=a.W(),d=a.N()):(c=Sa(a),d=Ma(a));for(var e=0;e<c.length;e++)Ya(this,c[e],d[e])}}p=Xa.prototype;p.n=0;p.Yb=0;p.$=m("n");p.N=function(){Za(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};p.W=function(){Za(this);return this.a.concat()};p.Ia=function(){return 0==this.n};
p.clear=function(){this.b={};this.Yb=this.n=this.a.length=0};p.remove=function(a){return $a(this.b,a)?(delete this.b[a],this.n--,this.Yb++,this.a.length>2*this.n&&Za(this),j):l};function Za(a){if(a.n!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];$a(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.n!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],$a(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function ab(a,b){return $a(a.b,b)?a.b[b]:h}
function Ya(a,b,c){$a(a.b,b)||(a.n++,a.a.push(b),a.Yb++);a.b[b]=c}p.S=function(){return new Xa(this)};function $a(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var bb,cb,db,eb,fb,gb,hb;function ib(){return w.navigator?w.navigator.userAgent:k}function jb(){return w.navigator}eb=db=cb=bb=l;var kb;if(kb=ib()){var lb=jb();bb=0==kb.indexOf("Opera");cb=!bb&&-1!=kb.indexOf("MSIE");db=!bb&&-1!=kb.indexOf("WebKit");eb=!bb&&!db&&"Gecko"==lb.product}var mb=bb,F=cb,nb=eb,G=db,ob,pb=jb();ob=pb&&pb.platform||"";fb=-1!=ob.indexOf("Mac");gb=-1!=ob.indexOf("Win");hb=-1!=ob.indexOf("Linux");var qb=!!jb()&&-1!=(jb().appVersion||"").indexOf("X11"),rb;
a:{var sb="",tb;if(mb&&w.opera)var ub=w.opera.version,sb="function"==typeof ub?ub():ub;else if(nb?tb=/rv\:([^\);]+)(\)|;)/:F?tb=/MSIE\s+([^\);]+)(\)|;)/:G&&(tb=/WebKit\/(\S+)/),tb)var vb=tb.exec(ib()),sb=vb?vb[1]:"";if(F){var wb,xb=w.document;wb=xb?xb.documentMode:h;if(wb>parseFloat(sb)){rb=String(wb);break a}}rb=sb}var yb={};
function zb(a){var b;if(!(b=yb[a])){b=0;for(var c=String(rb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",i=d[f]||"",n=RegExp("(\\d*)(\\D*)","g"),r=RegExp("(\\d*)(\\D*)","g");do{var s=n.exec(g)||["","",""],q=r.exec(i)||["","",""];if(0==s[0].length&&0==q[0].length)break;b=((0==s[1].length?0:parseInt(s[1],10))<(0==q[1].length?0:parseInt(q[1],10))?-1:(0==s[1].length?0:parseInt(s[1],
10))>(0==q[1].length?0:parseInt(q[1],10))?1:0)||((0==s[2].length)<(0==q[2].length)?-1:(0==s[2].length)>(0==q[2].length)?1:0)||(s[2]<q[2]?-1:s[2]>q[2]?1:0)}while(0==b)}b=yb[a]=0<=b}return b}var Ab={};function Bb(a){return Ab[a]||(Ab[a]=F&&!!document.documentMode&&document.documentMode>=a)};var Cb,Db=!F||Bb(9);!nb&&!F||F&&Bb(9)||nb&&zb("1.9.1");F&&zb("9");function Eb(a,b){var c;c=a.className;c=ga(c)&&c.match(/\S+/g)||[];for(var d=Ia(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=za(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function Fb(a,b,c){return Math.min(Math.max(a,b),c)}function Gb(a,b){var c=a%b;return 0>c*b?c+b:c};function Hb(a,b){this.x=x(a)?a:0;this.y=x(b)?b:0}Hb.prototype.S=function(){return new Hb(this.x,this.y)};function Ib(a,b){this.width=a;this.height=b}p=Ib.prototype;p.S=function(){return new Ib(this.width,this.height)};p.Ia=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 Jb(a){return a?new Kb(Lb(a)):Cb||(Cb=new Kb)}function Mb(a,b){La(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Nb?a.setAttribute(Nb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Nb={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 Ob(a){a=a.document.documentElement;return new Ib(a.clientWidth,a.clientHeight)}function Pb(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Db&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',ra(g.name),'"');if(g.type){f.push(' type="',ra(g.type),'"');var i={};Va(i,g);delete i.type;g=i}f.push(">");f=f.join("")}f=e.createElement(f);g&&(ga(g)?f.className=g:ea(g)?Eb.apply(k,[f].concat(g)):Mb(f,g));2<d.length&&Qb(e,f,d,2);return f}
function Qb(a,b,c,d){function e(c){c&&b.appendChild(ga(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(fa(f)&&!(ia(f)&&0<f.nodeType)){var g=C,i;a:{if((i=f)&&"number"==typeof i.length){if(ia(i)){i="function"==typeof i.item||"string"==typeof i.item;break a}if(ha(i)){i="function"==typeof i.item;break a}}i=l}g(i?Fa(f):f,e)}else e(f)}}function Rb(a){return document.createElement(a)}function Sb(a,b){Qb(Lb(a),a,arguments,1)}function Tb(a){for(var b;b=a.firstChild;)a.removeChild(b)}
function Ub(a,b){a.insertBefore(b,a.childNodes[0]||k)}function Vb(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Lb(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Kb(a){this.a=a||w.document||document}Kb.prototype.createElement=function(a){return this.a.createElement(a)};Kb.prototype.createTextNode=function(a){return this.a.createTextNode(a)};
function Wb(a){var b=a.a,a=!G?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new Hb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Kb.prototype.appendChild=function(a,b){a.appendChild(b)};Kb.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 Xb=!F||Bb(9),Yb=!F||Bb(9),Zb=F&&!zb("9");!G||zb("528");nb&&zb("1.9b")||F&&zb("8")||mb&&zb("9.5")||G&&zb("528");nb&&!zb("8")||F&&zb("9");function $b(){0!=ac&&(this.Be=Error().stack,bc[y(this)]=this)}var ac=0,bc={};$b.prototype.Bc=l;$b.prototype.Db=function(){if(!this.Bc&&(this.Bc=j,this.r(),0!=ac)){var a=y(this);delete bc[a]}};function cc(a,b){a.na||(a.na=[]);a.na.push(b)}$b.prototype.r=function(){this.na&&dc.apply(k,this.na);if(this.Kc)for(;this.Kc.length;)this.Kc.shift()()};function ec(a){a&&"function"==typeof a.Db&&a.Db()}function dc(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];fa(d)?dc.apply(k,d):ec(d)}};function fc(a,b){this.type=a;this.c=this.target=b}p=fc.prototype;p.Db=function(){};p.qa=l;p.bb=l;p.tb=j;p.Hb=function(){this.qa=j};p.C=function(){this.bb=j;this.tb=l};function gc(a){a.Hb()};function hc(a){hc[" "](a);return a}hc[" "]=ba;function ic(a,b){a&&jc(this,a,b)}B(ic,fc);var kc=[1,4,2];p=ic.prototype;p.target=k;p.jd=k;p.gd=0;p.hd=0;p.clientX=0;p.clientY=0;p.kd=0;p.ld=0;p.ed=0;p.va=0;p.$a=0;p.ab=l;p.ca=l;p.ma=l;p.fd=l;p.qb=l;p.K=k;
function jc(a,b,c){var d=a.type=b.type;fc.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(nb){var e;a:{try{hc(c.nodeName);e=j;break a}catch(f){}e=l}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.jd=c;a.gd=G||b.offsetX!==h?b.offsetX:b.layerX;a.hd=G||b.offsetY!==h?b.offsetY:b.layerY;a.clientX=b.clientX!==h?b.clientX:b.pageX;a.clientY=b.clientY!==h?b.clientY:b.pageY;a.kd=b.screenX||0;a.ld=b.screenY||0;a.ed=b.button;a.va=b.keyCode||0;a.$a=b.charCode||
("keypress"==d?b.keyCode:0);a.ab=b.ctrlKey;a.ca=b.altKey;a.ma=b.shiftKey;a.fd=b.metaKey;a.qb=fb?b.metaKey:b.ctrlKey;a.a=b.state;a.K=b;b.defaultPrevented&&a.C();delete a.qa}function lc(a){return(Xb?0==a.K.button:"click"==a.type?j:!!(a.K.button&kc[0]))&&!(G&&fb&&a.ab)}p.Hb=function(){ic.v.Hb.call(this);this.K.stopPropagation?this.K.stopPropagation():this.K.cancelBubble=j};
p.C=function(){ic.v.C.call(this);var a=this.K;if(a.preventDefault)a.preventDefault();else if(a.returnValue=l,Zb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};p.cd=m("K");function mc(){}var nc=0;mc.prototype.key=0;mc.prototype.za=l;mc.prototype.a=l;mc.prototype.handleEvent=function(a){return this.b?this.Ja.call(this.Ob||this.src,a):this.Ja.handleEvent.call(this.Ja,a)};var oc={},pc={},qc={},rc={};
function H(a,b,c,d,e){if(b){if(ea(b)){for(var f=0;f<b.length;f++)H(a,b[f],c,d,e);return k}var d=!!d,g=pc;b in g||(g[b]={n:0,Q:0});g=g[b];d in g||(g[d]={n:0,Q:0},g.n++);var g=g[d],i=y(a),n;g.Q++;if(g[i]){n=g[i];for(f=0;f<n.length;f++)if(g=n[f],g.Ja==c&&g.Ob==e){if(g.za)break;return n[f].key}}else n=g[i]=[],g.n++;var r=sc,s=Yb?function(a){return r.call(s.src,s.key,a)}:function(a){a=r.call(s.src,s.key,a);if(!a)return a},f=s;f.src=a;var q=g=new mc;if(ha(c))q.b=j;else if(c&&c.handleEvent&&ha(c.handleEvent))q.b=
l;else throw Error("Invalid listener argument");q.Ja=c;q.c=f;q.src=a;q.type=b;q.capture=!!d;q.Ob=e;q.a=l;q.key=++nc;q.za=l;c=g.key;f.key=c;n.push(g);oc[c]=g;qc[i]||(qc[i]=[]);qc[i].push(g);a.addEventListener?(a==w||!a.hc)&&a.addEventListener(b,f,d):a.attachEvent(b in rc?rc[b]:rc[b]="on"+b,f);return c}throw Error("Invalid event type");}function tc(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)tc(a,b[f],c,d,e);return k}a=H(a,b,c,d,e);oc[a].a=j;return a}
function uc(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)uc(a,b[f],c,d,e);else{d=!!d;a:{f=pc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=y(a),f[a]))){a=f[a];break a}a=k}if(a)for(f=0;f<a.length;f++)if(a[f].Ja==c&&a[f].capture==d&&a[f].Ob==e){I(a[f].key);break}}}
function I(a){if(!oc[a])return l;var b=oc[a];if(b.za)return l;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==w||!c.hc)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in rc?rc[d]:rc[d]="on"+d,e);c=y(c);qc[c]&&(e=qc[c],Da(e,b),0==e.length&&delete qc[c]);b.za=j;if(b=pc[d][f][c])b.uc=j,vc(d,f,c,b);delete oc[a];return j}
function vc(a,b,c,d){if(!d.mb&&d.uc){for(var e=0,f=0;e<d.length;e++)d[e].za?d[e].c.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.uc=l;0==f&&(delete pc[a][b][c],pc[a][b].n--,0==pc[a][b].n&&(delete pc[a][b],pc[a].n--),0==pc[a].n&&delete pc[a])}}function wc(a){var b,c=0,d=b==k;b=!!b;if(a==k)La(qc,function(a){for(var e=a.length-1;0<=e;e--){var f=a[e];if(d||b==f.capture)I(f.key),c++}});else if(a=y(a),qc[a])for(var a=qc[a],e=a.length-1;0<=e;e--){var f=a[e];if(d||b==f.capture)I(f.key),c++}}
function xc(a,b,c,d,e){var f=1,b=y(b);if(a[b]){a.Q--;a=a[b];a.mb?a.mb++:a.mb=1;try{for(var g=a.length,i=0;i<g;i++){var n=a[i];n&&!n.za&&(f&=yc(n,e)!==l)}}finally{a.mb--,vc(c,d,b,a)}}return Boolean(f)}function yc(a,b){a.a&&I(a.key);return a.handleEvent(b)}
function K(a,b){var c=b.type||b,d=pc;if(!(c in d))return j;if(ga(b))b=new fc(b,a);else if(b instanceof fc)b.target=b.target||a;else{var e=b,b=new fc(c,a);Va(b,e)}var e=1,f,d=d[c],c=j in d,g;if(c){f=[];for(g=a;g;g=g.Qb)f.push(g);g=d[j];g.Q=g.n;for(var i=f.length-1;!b.qa&&0<=i&&g.Q;i--)b.c=f[i],e&=xc(g,f[i],b.type,j,b)&&b.tb!=l}if(l in d)if(g=d[l],g.Q=g.n,c)for(i=0;!b.qa&&i<f.length&&g.Q;i++)b.c=f[i],e&=xc(g,f[i],b.type,l,b)&&b.tb!=l;else for(d=a;!b.qa&&d&&g.Q;d=d.Qb)b.c=d,e&=xc(g,d,b.type,l,b)&&b.tb!=
l;return Boolean(e)}
function sc(a,b){if(!oc[a])return j;var c=oc[a],d=c.type,e=pc;if(!(d in e))return j;var e=e[d],f,g;if(!Yb){var i;if(!(i=b))a:{i=["window","event"];for(var n=w;f=i.shift();)if(n[f]!=k)n=n[f];else{i=k;break a}i=n}f=i;i=j in e;n=l in e;if(i){if(0>f.keyCode||f.returnValue!=h)return j;a:{var r=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(s){r=j}if(r||f.returnValue==h)f.returnValue=j}}r=new ic;jc(r,f,this);f=j;try{if(i){for(var q=[],v=r.c;v;v=v.parentNode)q.push(v);g=e[j];g.Q=g.n;for(var u=q.length-
1;!r.qa&&0<=u&&g.Q;u--)r.c=q[u],f&=xc(g,q[u],d,j,r);if(n){g=e[l];g.Q=g.n;for(u=0;!r.qa&&u<q.length&&g.Q;u++)r.c=q[u],f&=xc(g,q[u],d,l,r)}}else f=yc(c,r)}finally{q&&(q.length=0)}return f}d=new ic(b,this);return f=yc(c,d)};function zc(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}zc.prototype.S=function(){return new zc(this.top,this.right,this.bottom,this.left)};zc.prototype.contains=function(a){return!this||!a?l:a instanceof zc?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 Ac(a,b){var c=Lb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function Bc(a,b){return a.currentStyle?a.currentStyle[b]:k}function Cc(a,b){return Ac(a,b)||Bc(a,b)||a.style&&a.style[b]}function Dc(a,b){var c,d,e=nb&&(fb||qb)&&zb("1.9");b instanceof Hb?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Ec(c,e);a.style.top=Ec(d,e)}
function Fc(a){var b=a.getBoundingClientRect();F&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function Gc(a){if(F&&!Bb(8))return a.offsetParent;for(var b=Lb(a),c=Cc(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Cc(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 Hc(a,b){var c=Ic(a),d=Ic(b);return new Hb(c.x-d.x,c.y-d.y)}
function Ic(a){var b=new Hb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Fc(a);b.x=c.left;b.y=c.top}else{c=Wb(Jb(a));var d,e=Lb(a),f=Cc(a,"position"),g=nb&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),i=new Hb(0,0),n;d=e?Lb(e):document;if(n=F)if(n=!Bb(9))Jb(d),n=l;n=n?d.body:d.documentElement;if(a!=n)if(a.getBoundingClientRect)d=Fc(a),e=Wb(Jb(e)),i.x=d.left+e.x,i.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),
e=e.getBoxObjectFor(n),i.x=d.screenX-e.screenX,i.y=d.screenY-e.screenY;else{g=a;do{i.x+=g.offsetLeft;i.y+=g.offsetTop;g!=a&&(i.x+=g.clientLeft||0,i.y+=g.clientTop||0);if(G&&"fixed"==Cc(g,"position")){i.x+=e.body.scrollLeft;i.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(mb||G&&"absolute"==f)i.y-=e.body.offsetTop;for(g=a;(g=Gc(g))&&g!=e.body&&g!=n;)if(i.x-=g.scrollLeft,!mb||"TR"!=g.tagName)i.y-=g.scrollTop}b.x=i.x-c.x;b.y=i.y-c.y}if(nb&&!zb(12)){var r;F?r="-ms-transform":G?r="-webkit-transform":
mb?r="-o-transform":nb&&(r="-moz-transform");var s;r&&(s=Cc(a,r));s||(s=Cc(a,"transform"));s?(a=s.match(Jc),a=!a?new Hb(0,0):new Hb(parseFloat(a[1]),parseFloat(a[2]))):a=new Hb(0,0);b=new Hb(b.x+a.x,b.y+a.y)}}else r=ha(a.cd),s=a,a.targetTouches?s=a.targetTouches[0]:r&&a.K.targetTouches&&(s=a.K.targetTouches[0]),b.x=s.clientX,b.y=s.clientY;return b}function Ec(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}
function Kc(a){var b=a.offsetWidth,c=a.offsetHeight,d=G&&!b&&!c;return(!x(b)||d)&&a.getBoundingClientRect?(a=Fc(a),new Ib(a.right-a.left,a.bottom-a.top)):new Ib(b,c)}function Lc(a,b){a.style.display=b?"":"none"}
function Mc(a,b){Jb(Lb(a));if(F&&!zb("8")){var c=a.style,d;if(F){d=Nc(a,Bc(a,"paddingLeft"));var e=Nc(a,Bc(a,"paddingRight")),f=Nc(a,Bc(a,"paddingTop")),g=Nc(a,Bc(a,"paddingBottom"));d=new zc(f,e,g,d)}else d=Ac(a,"paddingLeft"),e=Ac(a,"paddingRight"),f=Ac(a,"paddingTop"),g=Ac(a,"paddingBottom"),d=new zc(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(F)var e=Oc(a,"borderLeft"),f=Oc(a,"borderRight"),g=Oc(a,"borderTop"),i=Oc(a,"borderBottom"),e=new zc(g,f,i,e);else e=Ac(a,"borderLeftWidth"),
f=Ac(a,"borderRightWidth"),g=Ac(a,"borderTopWidth"),i=Ac(a,"borderBottomWidth"),e=new zc(parseFloat(g),parseFloat(f),parseFloat(i),parseFloat(e));c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c=a.style,nb?c.MozBoxSizing="border-box":G?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(b.width,0)+"px",c.height=Math.max(b.height,0)+"px"}
function Nc(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}var Pc={thin:2,medium:4,thick:6};function Oc(a,b){if("none"==Bc(a,b+"Style"))return 0;var c=Bc(a,b+"Width");return c in Pc?Pc[c]:Nc(a,c)}var Jc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Qc(a,b){this.x=a;this.y=b}B(Qc,Hb);Qc.prototype.S=function(){return new Qc(this.x,this.y)};Qc.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Qc.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){Qc.call(this,a,b)}B(L,Qc);function Rc(a,b){var c=Gb(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)};var Sc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Tc(a,b,c){if(ea(b))for(var d=0;d<b.length;d++)Tc(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))};function Uc(a,b){var c;if(a instanceof Uc)this.la=x(b)?b:a.la,Vc(this,a.Aa),c=a.xb,Wc(this),this.xb=c,c=a.Ba,Wc(this),this.Ba=c,Xc(this,a.rb),c=a.pb,Wc(this),this.pb=c,Yc(this,a.a.S()),c=a.Wa,Wc(this),this.Wa=c;else if(a&&(c=String(a).match(Sc))){this.la=!!b;Vc(this,c[1]||"",j);var d=c[2]||"";Wc(this);this.xb=d?decodeURIComponent(d):"";d=c[3]||"";Wc(this);this.Ba=d?decodeURIComponent(d):"";Xc(this,c[4]);d=c[5]||"";Wc(this);this.pb=d?decodeURIComponent(d):"";Yc(this,c[6]||"",j);c=c[7]||"";Wc(this);
this.Wa=c?decodeURIComponent(c):""}else this.la=!!b,this.a=new Zc(k,0,this.la)}p=Uc.prototype;p.Aa="";p.xb="";p.Ba="";p.rb=k;p.pb="";p.Wa="";p.Ld=l;p.la=l;
p.toString=function(){var a=[],b=this.Aa;b&&a.push($c(b,ad),":");if(b=this.Ba){a.push("//");var c=this.xb;c&&a.push($c(c,ad),"@");a.push(encodeURIComponent(String(b)));b=this.rb;b!=k&&a.push(":",String(b))}if(b=this.pb)this.Ba&&"/"!=b.charAt(0)&&a.push("/"),a.push($c(b,"/"==b.charAt(0)?bd:cd));(b=this.a.toString())&&a.push("?",b);(b=this.Wa)&&a.push("#",$c(b,dd));return a.join("")};p.S=function(){return new Uc(this)};
function Vc(a,b,c){Wc(a);a.Aa=c?b?decodeURIComponent(b):"":b;a.Aa&&(a.Aa=a.Aa.replace(/:$/,""))}function Xc(a,b){Wc(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.rb=b}else a.rb=k}
function Yc(a,b,c){Wc(a);if(b instanceof Zc){a.a=b;b=a.a;if((a=a.la)&&!b.b){ed(b);b.a=k;var d=b.D,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),fd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(fa(d)||ga(d))C(d,c,b);else{var e;if("function"==typeof d.W)e=d.W();else if("function"!=typeof d.N)if(fa(d)||ga(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=Sa(d);else e=h;d=Wa(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=$c(b,gd)),a.a=
new Zc(b,0,a.la)}function hd(a,b,c){Wc(a);ea(c)||(c=[String(c)]);fd(a.a,b,c)}function Wc(a){if(a.Ld)throw Error("Tried to modify a read-only Uri");}function $c(a,b){return ga(a)?encodeURI(a).replace(b,id):k}function id(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var ad=/[#\/\?@]/g,cd=/[\#\?:]/g,bd=/[\#\?]/g,gd=/[\#\?@]/g,dd=/#/g;function Zc(a,b,c){this.a=a||k;this.b=!!c}
function ed(a){if(!a.D&&(a.D=new Xa,a.n=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=jd(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}p=Zc.prototype;p.D=k;p.n=k;p.$=function(){ed(this);return this.n};p.add=function(a,b){ed(this);this.a=k;var a=jd(this,a),c=ab(this.D,a);c||Ya(this.D,a,c=[]);c.push(b);this.n++;return this};
p.remove=function(a){ed(this);a=jd(this,a);return $a(this.D.b,a)?(this.a=k,this.n-=ab(this.D,a).length,this.D.remove(a)):l};p.clear=function(){this.D=this.a=k;this.n=0};p.Ia=function(){ed(this);return 0==this.n};function kd(a,b){ed(a);b=jd(a,b);return $a(a.D.b,b)}p.W=function(){ed(this);for(var a=this.D.N(),b=this.D.W(),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.N=function(a){ed(this);var b=[];if(a)kd(this,a)&&(b=Ea(b,ab(this.D,jd(this,a))));else for(var a=this.D.N(),c=0;c<a.length;c++)b=Ea(b,a[c]);return b};function ld(a,b){var c=b?a.N(b):[];return 0<c.length?String(c[0]):h}function fd(a,b,c){a.remove(b);0<c.length&&(a.a=k,Ya(a.D,jd(a,b),Fa(c)),a.n+=c.length)}
p.toString=function(){if(this.a)return this.a;if(!this.D)return"";for(var a=[],b=this.D.W(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.N(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("&")};p.S=function(){var a=new Zc;a.a=this.a;this.D&&(a.D=this.D.S());return a};function jd(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};function md(){$b.call(this)}B(md,$b);p=md.prototype;p.hc=j;p.Qb=k;p.addEventListener=function(a,b,c,d){H(this,a,b,c,d)};p.removeEventListener=function(a,b,c,d){uc(this,a,b,c,d)};p.r=function(){md.v.r.call(this);wc(this);this.Qb=k};function nd(a){return function(){return a}}var od=nd(l),pd=nd(j),qd=nd(k);function rd(a,b,c){$b.call(this);this.d=a;this.c=c;this.a=b||window;this.b=na(this.Gb,this)}B(rd,$b);p=rd.prototype;p.O=k;p.Xb=l;p.start=function(){sd(this);this.Xb=l;var a=wd(this),b=xd(this);if(a&&!b&&this.a.mozRequestAnimationFrame)this.O=H(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(k),this.Xb=j;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.O=a}};
function sd(a){if(a.O!=k){var b=wd(a),c=xd(a);b&&!c&&a.a.mozRequestAnimationFrame?I(a.O):b&&c?c.call(a.a,a.O):a.a.clearTimeout(a.O)}a.O=k}p.Gb=function(){this.Xb&&this.O&&I(this.O);this.O=k;this.d.call(this.c,pa())};p.r=function(){sd(this);rd.v.r.call(this)};function wd(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}
function xd(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function yd(a){$b.call(this);this.ta=a||window;this.lb=H(this.ta,"resize",this.Cd,l,this);this.sa=Ob(this.ta||window);if(G&&gb||mb&&this.ta.self!=this.ta.top)this.zb=window.setInterval(na(this.cc,this),zd)}B(yd,md);var zd=500;p=yd.prototype;p.lb=k;p.ta=k;p.sa=k;p.zb=k;p.r=function(){yd.v.r.call(this);this.lb&&(I(this.lb),this.lb=k);this.zb&&(window.clearInterval(this.zb),this.zb=k);this.sa=this.ta=k};p.Cd=function(){this.cc()};
p.cc=function(){var a=Ob(this.ta||window);if(!(a==this.sa||(!a||!this.sa?0:a.width==this.sa.width&&a.height==this.sa.height)))this.sa=a,K(this,"resize")};function Ad(a,b,c,d,e){if(!F&&(!G||!zb("525")))return j;if(fb&&e)return Bd(a);if(e&&!d||!c&&(17==b||18==b)||F&&d&&b==a)return l;switch(a){case 13:return!(F&&Bb(9));case 27:return!G}return Bd(a)}function Bd(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||G&&0==a)return j;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 j;default:return l}}
function Cd(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Dd(a,b){$b.call(this);a&&(this.hb&&Ed(this),this.Da=a,this.gb=H(this.Da,"keypress",this,b),this.Pb=H(this.Da,"keydown",this.a,b,this),this.hb=H(this.Da,"keyup",this.b,b,this))}B(Dd,md);p=Dd.prototype;p.Da=k;p.gb=k;p.Pb=k;p.hb=k;p.ga=-1;p.fa=-1;p.Bb=l;
var Fd={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},Gd={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},Hd=F||G&&zb("525"),Id=fb&&nb;
Dd.prototype.a=function(a){if(G&&(17==this.ga&&!a.ab||18==this.ga&&!a.ca))this.fa=this.ga=-1;Hd&&!Ad(a.va,this.ga,a.ma,a.ab,a.ca)?this.handleEvent(a):(this.fa=nb?Cd(a.va):a.va,Id&&(this.Bb=a.ca))};Dd.prototype.b=function(a){this.fa=this.ga=-1;this.Bb=a.ca};
Dd.prototype.handleEvent=function(a){var b=a.K,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.fa,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.fa,d=0<=b.charCode&&63232>b.charCode&&Bd(c)?b.charCode:0):mb?(c=this.fa,d=Bd(c)?b.keyCode:0):(c=b.keyCode||this.fa,d=b.charCode||0,Id&&(e=this.Bb),fb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Fd?f=Fd[c]:25==c&&a.ma&&(f=9):g&&g in Gd&&(f=Gd[g]);a=f==this.ga;this.ga=f;b=new Jd(f,d,a,b);b.ca=e;K(this,b)};
function Ed(a){a.gb&&(I(a.gb),I(a.Pb),I(a.hb),a.gb=k,a.Pb=k,a.hb=k);a.Da=k;a.ga=-1;a.fa=-1}Dd.prototype.r=function(){Dd.v.r.call(this);Ed(this)};function Jd(a,b,c,d){d&&jc(this,d,h);this.type="key";this.va=a;this.$a=b;this.b=c}B(Jd,ic);function Kd(a){$b.call(this);this.a=a;a=ia(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&"rtl"==Cc(a,"direction");this.b=H(this.a,nb?"DOMMouseScroll":"mousewheel",this)}B(Kd,md);
Kd.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.K;if("mousewheel"==a.type){c=1;if(F||G&&(gb||zb("532.0")))c=40;d=Ld(-a.wheelDelta,c);x(a.wheelDeltaX)?(b=Ld(-a.wheelDeltaX,c),c=Ld(-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=Fb(b,-this.c,this.c));"number"==typeof this.d&&(c=Fb(c,-this.d,this.d));this.e&&(b=-b);b=new Md(d,a,b,c);K(this,b)};function Ld(a,b){return G&&(fb||hb)&&0!=a%b?a:a/b}
Kd.prototype.r=function(){Kd.v.r.call(this);I(this.b);delete this.b};function Md(a,b,c,d){b&&jc(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Md,ic);var Nd=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function M(a){$b.call(this);this.o={};x(a)&&this.nb(a)}B(M,md);var Od={},Pd={},Qd={};function Rd(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Sd(a){return a.ol_accessors_||(a.ol_accessors_={})}function Td(a){return Od.hasOwnProperty(a)?Od[a]:Od[a]=a.toLowerCase()+"_changed"}function Ud(a){return a.ol_bindings_||(a.ol_bindings_={})}p=M.prototype;
p.Uc=function(a,b,c,d){c=c||a;this.Wb(a);var e=Td(c);Ud(this)[a]=H(b,e,function(){Vd(this,a)},h,this);Sd(this)[a]={target:b,key:c};d||Vd(this,a)};p.Xc=ba;p.s=function(a){var b,c=Sd(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Pd.hasOwnProperty(b)?Pd[b]:Pd[b]="get"+Rd(b),b=a[c]?a[c]():a.s(b)):this.o.hasOwnProperty(a)&&(b=this.o[a]);return b};
p.W=function(){for(var a=Sa(Sd(this)).concat(Sa(this.o)),b={},c=0,d=0;d<a.length;){var e=a[d++],f=ia(e)?"o"+y(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=j,a[c++]=e)}a.length=c;return a};p.vc=function(a){var b=Sd(this);b.hasOwnProperty(a)?(a=b[a],a.target.vc(a.key)):Vd(this,a)};function Vd(a,b){var c=Td(b);K(a,c);K(a,"changed")}
p.q=function(a,b){var c=Sd(this);if(c.hasOwnProperty(a)){var d=c[a],c=d.target,d=d.key,e=Qd.hasOwnProperty(d)?Qd[d]:Qd[d]="set"+Rd(d);if(c[e])c[e](b);else c.q(d,b)}else this.o[a]=b,Vd(this,a)};p.Ec=function(a){var b,c,d;for(b in a)if(c=a[b],d=Qd.hasOwnProperty(b)?Qd[b]:Qd[b]="set"+Rd(b),this[d])this[d](c);else this.q(b,c)};p.nb=M.prototype.Ec;p.Wb=function(a){var b=Ud(this),c=b[a];c&&(delete b[a],I(c),b=this.s(a),delete Sd(this)[a],this.o[a]=b)};p.je=function(){for(var a in Ud(this))this.Wb(a)};function Wd(a,b,c){fc.call(this,a,c);this.a=b}B(Wd,fc);function N(a){M.call(this);this.a=a||[];Xd(this)}B(N,M);p=N.prototype;p.clear=function(){for(;0<this.Za();)this.wc()};p.forEach=function(a,b){C(this.a,a,b)};p.bd=function(a){return this.a[a]};p.Za=function(){return this.s("length")};p.fb=function(a,b){Ha(this.a,a,0,b);Xd(this);K(this,new Wd("add",b,this))};p.wc=function(){return this.Rb(this.Za()-1)};p.push=function(a){var b=this.a.length;this.fb(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.Rb(b)};p.Rb=function(a){var b=this.a[a];ya.splice.call(this.a,a,1);Xd(this);K(this,new Wd("remove",b,this));return b};p.$d=function(a,b){var c=this.Za();if(a<c)c=this.a[a],this.a[a]=b,K(this,new Wd("remove",c,this)),K(this,new Wd("add",b,this));else{for(;c<a;++c)this.fb(c,h);this.fb(a,b)}};function Xd(a){a.q("length",a.a.length)};function Yd(){this.c=Fb(255,0,255);this.b=Fb(255,0,255);this.a=Fb(255,0,255);this.d=Fb(1,0,1)};function Zd(a,b){Ib.call(this,a,b)}B(Zd,Ib);function $d(a,b,c,d){this.i=a;this.j=b;this.l=c;this.k=d}$d.prototype.aa=function(){return this.k-this.j};$d.prototype.ea=function(){return this.l-this.i};function ae(a,b){return a.i<=b.l&&a.l>=b.i&&a.j<=b.k&&a.k>=b.j}$d.prototype.toString=function(){return"("+[this.i,this.j,this.l,this.k].join(", ")+")"};function be(a,b,c,d){$d.call(this,a,b,c,d)}B(be,$d);function ce(a){var b=arguments[0],b=new be(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.i=Math.min(b.i,d.x);b.j=Math.min(b.j,d.y);b.l=Math.max(b.l,d.x);b.k=Math.max(b.k,d.y)}return b}function de(a){return new L(a.i,a.k)}be.prototype.transform=function(a){var b=[this.i,this.j,this.l,this.k],b=a(b,b,2);return new be(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 ee(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}ee.prototype.a=4;ee.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]};ee.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(ee.BYTES_PER_ELEMENT=4,ee.prototype.BYTES_PER_ELEMENT=ee.prototype.a,ee.prototype.set=ee.prototype.b,ee.prototype.toString=ee.prototype.toString,A("Float32Array",ee));function fe(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}fe.prototype.a=8;fe.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]};fe.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(fe.BYTES_PER_ELEMENT=8,fe.prototype.BYTES_PER_ELEMENT=fe.prototype.a,fe.prototype.set=fe.prototype.b,fe.prototype.toString=fe.prototype.toString,A("Float64Array",fe));function ge(){var a=Array(16);he(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function ie(){var a=Array(16);he(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function he(a,b,c,d,e,f,g,i,n,r,s,q,v,u,t,z,E){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=i;a[7]=n;a[8]=r;a[9]=s;a[10]=q;a[11]=v;a[12]=u;a[13]=t;a[14]=z;a[15]=E}
function je(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 ke(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 le(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],i=a[4],n=a[5],r=a[6],s=a[7],q=a[8],v=a[9],u=a[10],t=a[11],z=a[12],E=a[13],D=a[14],a=a[15],U=b[0],R=b[1],J=b[2],Z=b[3],V=b[4],sa=b[5],Na=b[6],Oa=b[7],Pa=b[8],Qa=b[9],Ra=b[10],W=b[11],td=b[12],ud=b[13],vd=b[14],b=b[15];c[0]=d*U+i*R+q*J+z*Z;c[1]=e*U+n*R+v*J+E*Z;c[2]=f*U+r*R+u*J+D*Z;c[3]=g*U+s*R+t*J+a*Z;c[4]=d*V+i*sa+q*Na+z*Oa;c[5]=e*V+n*sa+v*Na+E*Oa;c[6]=f*V+r*sa+u*Na+D*Oa;c[7]=g*V+s*sa+t*Na+a*Oa;c[8]=d*Pa+i*Qa+q*Ra+z*W;c[9]=e*Pa+n*Qa+v*Ra+E*W;c[10]=
f*Pa+r*Qa+u*Ra+D*W;c[11]=g*Pa+s*Qa+t*Ra+a*W;c[12]=d*td+i*ud+q*vd+z*b;c[13]=e*td+n*ud+v*vd+E*b;c[14]=f*td+r*ud+u*vd+D*b;c[15]=g*td+s*ud+t*vd+a*b}function me(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 ne(a,b,c){var d=b[0],e=b[1],b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14]}function oe(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 pe(a,b,c){he(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 qe(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],i=a[5],n=a[6],r=a[7],s=Math.cos(b),q=Math.sin(b);a[0]=c*s+g*q;a[1]=d*s+i*q;a[2]=e*s+n*q;a[3]=f*s+r*q;a[4]=c*-q+g*s;a[5]=d*-q+i*s;a[6]=e*-q+n*s;a[7]=f*-q+r*s}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function re(a,b,c){Qc.call(this,b,c);this.m=a}B(re,L);re.prototype.hash=function(){return(this.x<<this.m)+this.y};function se(a){var b=Array(a.m),c=1<<a.m-1,d,e;for(d=0;d<a.m;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}re.prototype.toString=function(){return[this.m,this.x,this.y].join("/")};function te(a,b,c,d){this.i=a;this.j=b;this.l=c;this.k=d}B(te,$d);te.prototype.contains=function(a){return this.i<=a.x&&a.x<=this.l&&this.j<=a.y&&a.y<=this.k};te.prototype.aa=function(){return this.k-this.j+1};te.prototype.ea=function(){return this.l-this.i+1};function ue(a,b){this.b=a;this.a=b||k};function ve(a){$b.call(this);this.e=0;this.V=a;this.a=0}B(ve,md);ve.prototype.b=function(){return y(this).toString()};function we(a){this.d=a;this.f=8;this.c=0;this.a=[];this.b={}}function xe(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]=j,ye(a,0,a.a.length-1),b.e++)}}}we.prototype.e=function(){--this.c};function ze(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b<d>>1;){var g=2*b+1,i=2*b+2,g=i<d&&c[i][0]<c[g][0]?i:g;c[b]=c[g];b=g}c[b]=e;ye(a,f,b)}function ye(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 Ae(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*Be.a*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};var Be=new function(){this.a=6370997};var Ce="object"==typeof Proj4js,De={Nc:"degrees",ye:"ft",Ce:"m"};function O(a,b,c,d){this.a=a;this.c=b;this.na=c;this.d=x(d)?d:"enu";this.f=k}O.prototype.h=m("a");O.prototype.H=m("na");O.prototype.o=m("c");O.prototype.g=m("d");function Ee(a,b){O.call(this,a,b.units,k,b.axis);this.Ac=b;this.e=k}B(Ee,O);
Ee.prototype.b=function(a,b){if("degrees"==this.c)return a;this.e===k&&(this.e=Fe(this,Ge("EPSG:4326")));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=(Ae(new L(c[0],c[1]),new L(c[2],c[3]))+Ae(new L(c[4],c[5]),new L(c[6],c[7])))/2;"ft"==this.c&&(c/=0.3048);return c};var He={},Ie={},Je={};function Ke(a){C(a,function(a){Le(a)});C(a,function(b){C(a,function(a){b!==a&&Me(b,a,Ne)})})}function Le(a){Ie[a.a]=a;Me(a,a,Ne)}
function Oe(a){return a!=k?ga(a)?Pe(a):a:Pe("EPSG:3857")}function Me(a,b,c){a=a.a;b=b.a;a in Je||(Je[a]={});Je[a][b]=c}function Pe(a){var b=Ie[a];Ce&&!x(b)&&(b=Ge(a));x(b)||(b=k);return b}function Ge(a){var b=He[a];if(!x(b)){var c=new Proj4js.Proj(a),d=c.srsCode,b=He[d];x(b)||(b=new Ee(d,c),He[d]=b);He[a]=b}return b}
function Fe(a,b){var c=a.a,d=b.a,e;c in Je&&d in Je[c]&&(e=Je[c][d]);if(Ce&&!x(e)){var f;f=(a instanceof Ee?a:Ge(a.a)).Ac;var g;g=(b instanceof Ee?b:Ge(b.a)).Ac;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,v=0;v<d;v+=c)e=new Proj4js.Point(a[v],a[v+1]),e=Proj4js.transform(f,g,e),b[v]=e.x,b[v+1]=e.y;return b};Me(a,b,e)}x(e)||(e=Qe);return e}function Re(a,b){var c=Pe(a),d=Pe(b);return Fe(c,d)}
function Qe(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 Ne(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 Se(a){$b.call(this);this.o=x(a.projection)?a.projection:k;this.h=x(a.extent)?a.extent:x(a.projection)?a.projection.H():k;this.e=x(a.attributions)?a.attributions:k}B(Se,md);Se.prototype.ka=m("e");Se.prototype.H=m("h");Se.prototype.c=pd;function P(a){M.call(this);this.g=a.source;this.h(x(a.brightness)?a.brightness:0);this.p(x(a.contrast)?a.contrast:1);this.t(x(a.hue)?a.hue:0);this.w(x(a.opacity)?a.opacity:1);this.F(x(a.saturation)?a.saturation:1);this.G(x(a.visible)?a.visible:j);this.g.c()||tc(this.g,"load",this.J,l,this)}B(P,M);P.prototype.b=function(){return this.s("brightness")};P.prototype.getBrightness=P.prototype.b;P.prototype.c=function(){return this.s("contrast")};P.prototype.getContrast=P.prototype.c;P.prototype.d=function(){return this.s("hue")};
P.prototype.getHue=P.prototype.d;P.prototype.e=function(){return this.s("opacity")};P.prototype.getOpacity=P.prototype.e;P.prototype.f=function(){return this.s("saturation")};P.prototype.getSaturation=P.prototype.f;P.prototype.Y=m("g");P.prototype.a=function(){return this.s("visible")};P.prototype.getVisible=P.prototype.a;P.prototype.J=function(){K(this,"load")};P.prototype.h=function(a){a=Fb(a,-1,1);a!=this.b()&&this.q("brightness",a)};P.prototype.setBrightness=P.prototype.h;
P.prototype.p=function(a){a=Math.max(0,a);a!=this.c()&&this.q("contrast",a)};P.prototype.setContrast=P.prototype.p;P.prototype.t=function(a){a!=this.d()&&this.q("hue",a)};P.prototype.setHue=P.prototype.t;P.prototype.w=function(a){a=Fb(a,0,1);a!=this.e()&&this.q("opacity",a)};P.prototype.setOpacity=P.prototype.w;P.prototype.F=function(a){a=Math.max(0,a);a!=this.f()&&this.q("saturation",a)};P.prototype.setSaturation=P.prototype.F;P.prototype.G=function(a){a=!!a;a!=this.a()&&this.q("visible",a)};
P.prototype.setVisible=P.prototype.G;function Te(a,b,c){fc.call(this,a);this.map=b;this.bb=l;this.b=x(c)?c:k}B(Te,fc);Te.prototype.C=function(){Te.v.C.call(this);this.bb=j};function Ue(a,b){Hb.call(this,a,b)}B(Ue,Hb);function Ve(a,b,c,d){Te.call(this,a,b,d);this.a=c;this.f=this.e=k}B(Ve,Te);Ve.prototype.d=function(){this.e===k&&(this.e=We(this.map,Xe(this)));return this.e};function Xe(a){if(a.f===k){var b=Hc(a.a,a.map.b);a.f=new Ue(b.x,b.y)}return a.f}
function Ye(a){this.a=a;this.e=k;this.b=l;this.c=this.g=this.d=this.o=this.h=this.f=k;a=this.a.b;this.h=H(a,["click","dblclick"],this.ec,l,this);this.o=H(a,"mousedown",this.wd,l,this);this.g=[H(a,["touchstart","MSPointerDown"],this.Hd,l,this),H(a,["touchmove","MSPointerMove"],this.Gd,l,this),H(a,["touchend","MSPointerUp"],this.Fd,l,this)]}B(Ye,md);p=Ye.prototype;p.ec=function(a){if(!this.b){var b=a.type;K(this,0==this.f||"dblclick"==b?new Ve(Ze,this.a,a):new Ve($e,this.a,a))}};
p.yd=function(a){this.e&&(this.c=k,C(this.d,I),this.e=this.d=k,this.b&&K(this,new Ve(af,this.a,a)))};p.wd=function(a){K(this,new Ve(bf,this.a,a));this.e||(this.c=a,this.e={clientX:a.clientX,clientY:a.clientY},this.b=l,this.d=[H(document,"mousemove",this.xd,l,this),H(document,"mouseup",this.yd,l,this)],a.C())};p.xd=function(a){var b;this.b||(this.b=j,b=new Ve(cf,this.a,this.c),K(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new Ve(df,this.a,a);K(this,b)};
p.Hd=function(a){a.C();this.c=a;this.b=l;K(this,new Ve(ef,this.a,a))};p.Gd=function(a){this.b=j;K(this,new Ve(ff,this.a,a))};p.Fd=function(a){K(this,new Ve(gf,this.a,a));this.b||(a=pa(),this.f=!this.f||250<a-this.f?a:0,this.ec(this.c));this.c=k};p.r=function(){I(this.h);I(this.o);this.d!==k&&(C(this.d,I),this.d=k);this.g!==k&&(C(this.g,I),this.g=k);Ye.v.r.call(this)};
var $e="click",Ze="dblclick",bf="down",cf="dragstart",df="drag",af="dragend",ef="touchstart",ff="touchmove",gf="touchend",hf={qe:$e,re:Ze,te:bf,we:cf,ue:df,ve:af,Le:ef,Ke:ff,Je:gf};function jf(){M.call(this);this.e=[0,0]}B(jf,M);function kf(a,b){a.e[1]+=b};function lf(a){return 1-Math.pow(1-a,3)}function mf(a){return 3*a*a-2*a*a*a};function nf(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 of(a){this.resolution=a;this.rotation=function(a,c){if(x(a))return 0.1>=Math.abs(a+c)?0:a+c}};var pf={rc:aa(),Jc:function(a){return 0.5>a?mf(2*a):1-mf(2*(a-0.5))},$c:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Cb: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}};var qf={Cb:function(a){var b=a.resolution,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:pf.Jc;return function(a,g){if(g.time<c)return g.R=j,g.B[0]+=1,j;if(g.time<c+d){var i=e((g.time-c)/d),n=b-g.u.resolution;g.R=j;g.u.resolution+=i*n;g.B[0]+=1;return j}return l}},pa:function(a){var b=a.source,c=x(a.start)?a.start:pa(),d=b.x,e=b.y,f=x(a.duration)?a.duration:1E3,g=x(a.easing)?a.easing:mf;return function(a,b){if(b.time<c)return b.R=j,b.B[0]+=1,j;if(b.time<c+f){var r=
1-g((b.time-c)/f),s=d-b.u.center.x,q=e-b.u.center.y;b.R=j;b.u.center.x+=r*s;b.u.center.y+=r*q;b.B[0]+=1;return j}return l}},rotate:function(a){var b=a.rotation,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:mf;return function(a,g){if(g.time<c)return g.R=j,g.B[0]+=1,j;if(g.time<c+d){var i=1-e((g.time-c)/d),n=b-g.u.rotation;g.R=j;g.u.rotation+=i*n;g.B[0]+=1;return j}return l}},zoom:function(a){var b=a.resolution,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,
e=x(a.easing)?a.easing:pf.rc;return function(a,g){if(g.time<c)return g.R=j,g.B[0]+=1,j;if(g.time<c+d){var i=1-e((g.time-c)/d),n=b-g.u.resolution;g.R=j;g.u.resolution+=i*n;g.B[0]+=1;return j}return l}}};function Q(a){jf.call(this);var a=a||{},b={};b.center=x(a.center)?a.center:k;b.projection=Oe(a.projection);if(x(a.resolution))b.resolution=a.resolution;else if(x(a.zoom)){var c=b.projection.H(),c=Math.max(c.l-c.i,c.k-c.j);b.resolution=c/(256*Math.pow(2,a.zoom))}b.rotation=a.rotation;this.nb(b);if(x(a.resolutions))var d=a.resolutions,a=function(a,b){if(x(a)){var c=nf(d,a),c=Fb(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=Oe(a.projection).H(),b=Math.max(a.l-a.i,a.k-a.j)/256,c=29,a=2);var e=a,f=b,g=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(g)&&(c=Math.min(c,g));return f/Math.pow(e,c)}}}this.b=new of(a)}B(Q,jf);Q.prototype.M=function(){return this.s("center")};Q.prototype.getCenter=Q.prototype.M;Q.prototype.H=function(a){var b=this.M(),c=this.P();return new be(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};Q.prototype.xc=function(){return this.s("projection")};
Q.prototype.getProjection=Q.prototype.xc;Q.prototype.P=function(){return this.s("resolution")};Q.prototype.getResolution=Q.prototype.P;Q.prototype.X=function(){return this.s("rotation")||0};Q.prototype.getRotation=Q.prototype.X;Q.prototype.g=function(){return this};Q.prototype.f=function(a,b){this.a(new L((a.i+a.l)/2,(a.j+a.k)/2));var c=Math.max((a.l-a.i)/b.width,(a.k-a.j)/b.height),c=this.b.resolution(c,0);this.c(c)};Q.prototype.Ha=function(){return this.M()!=k&&x(this.P())};
Q.prototype.a=function(a){this.q("center",a)};Q.prototype.setCenter=Q.prototype.a;Q.prototype.h=function(a){this.q("projection",a)};Q.prototype.setProjection=Q.prototype.h;Q.prototype.c=function(a){this.q("resolution",a)};Q.prototype.setResolution=Q.prototype.c;Q.prototype.d=function(a){this.q("rotation",a)};Q.prototype.setRotation=Q.prototype.d;Q.prototype.rotate=function(a,b,c,d){b=this.b.rotation(b,0);rf(this,a,b,c,d)};
function rf(a,b,c,d,e){if(c!=k){var f=a.X(),g=a.M();x(f)&&(x(g)&&x(e))&&(sf(b),b.c(qf.rotate({rotation:f,duration:e,easing:lf})),x(d)&&b.c(qf.pa({source:g,duration:e,easing:lf})));if(d!=k){var e=a.M(),i=new L(e.x-d.x,e.y-d.y);i.rotate(c-a.X());i.x+=d.x;i.y+=d.y;tf(b,function(){this.a(i);this.d(c)},a)}else a.d(c)}}Q.prototype.zoom=function(a,b,c,d){b=this.b.resolution(b,0);uf(this,a,b,c,d)};function vf(a,b,c,d,e){var f=a.P(),c=a.b.resolution(f,c);uf(a,b,c,d,e)}
function uf(a,b,c,d,e){if(c!=k){var f=a.P(),g=a.M();x(f)&&(x(g)&&x(e))&&(sf(b),b.c(qf.zoom({resolution:f,duration:e,easing:lf})),x(d)&&b.c(qf.pa({source:g,duration:e,easing:lf})));if(d!=k){var e=a.M(),f=a.P(),i=new L(d.x-c*(d.x-e.x)/f,d.y-c*(d.y-e.y)/f);tf(b,function(){this.a(i);this.c(c)},a)}else a.c(c)}};function wf(a){$b.call(this);this.element=x(a.element)?a.element:k;this.p=a.target;this.b=k;x(a.map)&&this.a(a.map)}B(wf,$b);wf.prototype.r=function(){Vb(this.element);wf.v.r.call(this)};wf.prototype.a=function(a){this.b===k||Vb(this.element);this.b=a;this.b!==k&&(x(this.p)?this.p:a.w).appendChild(this.element)};function xf(a){a=x(a)?a:{};this.g=Rb("UL");var b=Pb("DIV",{"class":"ol-attribution ol-unselectable"},this.g);wf.call(this,{element:b,map:a.map,target:a.target});this.f=j;this.c={};this.d={};this.e=k}B(xf,wf);
xf.prototype.h=function(a){var b=a.b;if(b===k)this.f&&(Lc(this.element,l),this.f=l);else{var c={},d={},a=this.b.t();x(a)&&a.forEach(function(a){a=a.Y();d[y(a).toString()]=a;a=a.ka();if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],t=y(b).toString(),c[t]=j}});var e=b.attributions,a={},f;for(f in e)a[f]=e[f];f=b.Pa;var b={},g,i,n,r,s;for(s in f)if(e=d[s],r=e.ka(),r!==k){g=f[s];for(e=0;e<r.length;++e)if(i=r[e],n=y(i).toString(),!(n in b)){var q;a:if(i.a===k)q=j;else{var v=q=h,u=h;for(u in g)if(u in i.a){v=
g[u];for(q=0;q<i.a[u].length;++q)if(ae(i.a[u][q],v)){q=j;break a}}q=l}q&&(b[n]=i)}}Va(a,b);s=Aa(Sa(a),Number);Ja(s);var t;for(f=0;f<s.length;++f)t=s[f].toString(),t in this.c?this.d[t]||(Lc(this.c[t],j),this.d[t]=j):(b=Rb("LI"),b.innerHTML=a[t].b,this.g.appendChild(b),this.c[t]=b,this.d[t]=j),delete c[t];for(t in c)Vb(this.c[t]),delete this.c[t],delete this.d[t];a=0!=s.length;this.f!=a&&(Lc(this.element,a),this.f=a)}};
xf.prototype.a=function(a){this.e!==k&&(C(this.e,I),this.e=k);xf.v.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.h,l,this)])};var yf={Nc:"degrees",Ae:"imperial",Ee:"nautical",De:"metric",Me:"us"};function zf(a){a=a||{};this.g=Pb("DIV",{"class":"ol-scale-line-inner"});this.o=Pb("DIV",{"class":"ol-scale-line ol-unselectable"},this.g);this.h=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;wf.call(this,{element:this.o,map:a.map,target:a.target})}B(zf,wf);var Af=[1,2,5];
zf.prototype.w=function(a){a=a.b;if(a===k)this.f&&(Lc(this.o,l),this.f=l);else{var a=a.u,b=a.center,c=a.projection,a=c.b(a.resolution,b),d=c.c;"degrees"==d&&("metric"==this.c||"imperial"==this.c)?(this.d=k,b=Math.cos(b.y*Math.PI/180),a*=Math.PI*b*Be.a/180):("ft"==d||"m"==d)&&"degrees"==this.c?(this.d===k&&(this.d=Fe(c,Pe("EPSG:4326"))),b=[b.x,b.y],b=this.d(b,b,2),b=Math.cos(b[1]*Math.PI/180),c=Be.a,"ft"==d&&(c/=0.3048),a*=180/(Math.PI*b*c)):this.d=k;b=this.h*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.h*a)/Math.log(10)),e,f;;){e=Af[b%3]*Math.pow(10,Math.floor(b/3));f=Math.round(e/a);if(f>=this.h)break;++b}e=e+d;this.t!=e&&
(this.t=this.g.innerHTML=e);this.F!=f&&(this.g.style.width=f+"px",this.F=f);this.f||(Lc(this.o,j),this.f=j)}};zf.prototype.a=function(a){this.e!==k&&(C(this.e,I),this.e=k);zf.v.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.w,l,this)])};function Bf(a){var a=x(a)?a:{},b=Pb("A",{href:"#zoomIn","class":"ol-zoom-in"});H(b,["touchend","click"],this.d,l,this);var c=Pb("A",{href:"#zoomOut","class":"ol-zoom-out"});H(c,["touchend","click"],this.e,l,this);b=Pb("DIV","ol-zoom ol-unselectable",b,c);wf.call(this,{element:b,map:a.map,target:a.target});this.c=x(a.delta)?a.delta:1}B(Bf,wf);Bf.prototype.d=function(a){a.C();a=this.b;sf(a);vf(a.a(),a,this.c,h,250)};Bf.prototype.e=function(a){a.C();a=this.b;sf(a);vf(a.a(),a,-this.c,h,250)};function Cf(a,b){var c=x(a)?a:{},d=[];if(x(c.attribution)?c.attribution:1)d.push(new xf(x(c.Nd)?c.Nd:h));x(c.Od)&&c.Od&&d.push(new zf(x(c.Pd)?c.Pd:h));if(x(c.zoom)?c.zoom:1)d.push(new Bf(x(c.ke)?c.ke:h));x(b)&&Ga(d,b);return d};function Df(a,b,c){this.e=a;this.d=b;this.f=c;this.a=[];this.b=this.c=0}function Ef(a){for(var b=pa(),c=a.a.length-1,d=c-1;0<=d&&a.a[d].Na>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.Na-b.Na);return a.b>a.d}return l}Df.prototype.pa=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return qf.pa({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Ff(){};function Gf(a){this.a=a}B(Gf,Ff);Gf.prototype.oa=function(a){var b=a.a;if(a.type==Ze&&(Nd||lc(a.a))){var c=a.map,d=a.d(),e=a.a.ma?-this.a:this.a;vf(c.a(),c,e,d,250);a.C();b.C()}};function Hf(a){return a.ca&&!a.qb&&a.ma}function If(a){return!a.ca&&!a.qb&&!a.ma}function Jf(a){return!a.ca&&!a.qb&&a.ma};function Kf(){this.e=l;this.p=this.na=this.h=this.g=0;this.Ma=this.f=k}B(Kf,Ff);p=Kf.prototype;p.Ib=ba;p.cb=ba;p.eb=od;p.pc=ba;p.oa=function(a){var b=a.map;if(b.Ha()){var b=b.a(),c=a.a;a.type==bf&&this.pc(a);this.e?a.type==df?(this.d=c.clientX-this.g,this.b=c.clientY-this.h,this.Ib(a)):a.type==af&&(this.d=c.clientX-this.g,this.b=c.clientY-this.h,this.cb(a),this.e=l):a.type==cf&&(this.g=c.clientX,this.h=c.clientY,this.b=this.d=0,this.f=b.M(),this.Ma=a.d(),this.eb(a)&&(this.e=j,a.C()))}};function Lf(a,b){Kf.call(this);this.o=a;this.a=b;this.c=k}B(Lf,Kf);Lf.prototype.Ib=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,Na:pa()});var a=a.map,b=a.a(),c=b.P(),d=b.X(),c=new L(-c*this.d,c*this.b);c.rotate(d);d=new L(this.f.x+c.x,this.f.y+c.y);sf(a);b.a(d)};
Lf.prototype.cb=function(a){var b=a.map,a=b.a();kf(a,-1);if(this.a&&Ef(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.M();this.c=this.a.pa(e);b.c(this.c);e=Mf(b,e);b=We(b,new Ue(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};Lf.prototype.eb=function(a){var b=a.a;if(this.o(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,Na:pa()})}a=a.map;sf(a);kf(a.a(),1);return j}return l};
Lf.prototype.pc=function(a){var b=a.map,c=b.a();this.c!==k&&Da(b.h,this.c)&&(sf(b),c.a(a.b.u.center),this.c=k)};function Nf(a){Kf.call(this);this.c=a}B(Nf,Kf);Nf.prototype.Ib=function(a){var b=a.map,c=b.f(),a=Xe(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();sf(b);rf(d,b,d.X()-a)}this.a=c};Nf.prototype.cb=function(a){var a=a.map,b=a.a();b.rotate(a,b.X(),h,250);kf(b,-1)};Nf.prototype.eb=function(a){var b=a.a;return lc(b)&&this.c(b)?(a=a.map,b=a.a(),sf(a),this.a=h,kf(b,1),j):l};function Of(a){var b=Pb("DIV","ol-dragbox");this.c=k;this.e=a.Ma;this.d=k;wf.call(this,{element:b,map:a.map})}B(Of,wf);Of.prototype.a=function(a){this.d!==k&&(I(this.d),this.d=k);a!==k&&(this.c=Mf(a,this.e),Dc(this.element,this.c),Mc(this.element,new Zd(0,0)),this.d=H(a,df,this.f,l,this));Of.v.a.call(this,a)};Of.prototype.f=function(a){var b=this.b,a=a.d(),b=Mf(b,a);Dc(this.element,new Ue(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Mc(this.element,new Zd(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Pf(a){Kf.call(this);this.c=a;this.a=k}B(Pf,Kf);Pf.prototype.cb=function(a){this.a.a(k);this.a=k;if(64<=this.d*this.d+this.b*this.b){var b=a.map,c=ce(this.Ma,a.d());tf(b,function(){var a=b.a(),e=b.f();a.f(c,e);a.d(0)})}};Pf.prototype.eb=function(a){var b=a.a;return lc(b)&&this.c(b)?(this.a=new Of({map:a.map,Ma:this.Ma}),j):l};function Qf(a){this.a=a}B(Qf,Ff);Qf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.va;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.P()*this.a,c=40==c?new L(0,-e):37==c?new L(-e,0):39==c?new L(e,0):new L(0,e),e=d.M();d.a(new L(e.x+c.x,e.y+c.y));b.C();a.C()}}};function Rf(){}B(Rf,Ff);Rf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.$a;if(43==c||45==c){var d=a.map,c=43==c?4:-4;sf(d);vf(d.a(),d,c,h,100);b.C();a.C()}}};function Sf(){this.a=0;this.c=k;this.d=this.b=h}B(Sf,Ff);Sf.prototype.oa=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a;this.c=a.d();this.a+=c.b/3;x(this.b)||(this.b=pa());var d=Math.max(80-(pa()-this.b),0);w.clearTimeout(this.d);this.d=w.setTimeout(na(this.e,this,b),d);a.C();c.C()}};Sf.prototype.e=function(a){var b=Fb(this.a,-1,1),c=a.a();sf(a);vf(c,a,-b,this.c,250);this.a=0;this.c=k;this.d=this.b=h};function Tf(){this.g=l;this.h={};this.targetTouches=[]}B(Tf,Ff);function Uf(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 Ue(c/b,d/b)}Tf.prototype.e=ba;Tf.prototype.d=od;Tf.prototype.f=od;Tf.prototype.oa=function(a){var b=a.a.K;x(b.targetTouches)?this.targetTouches=b.targetTouches:(a.type==gf?delete this.h[b.pointerId]:this.h[b.pointerId]=b,this.targetTouches=Ma(this.h));this.g&&(a.type==ff?this.e(a):a.type==gf&&(this.g=this.d(a)));a.type==ef&&(this.g=this.f(a))};function Vf(a){Tf.call(this);this.a=a;this.b=this.c=k}B(Vf,Tf);Vf.prototype.e=function(a){var b=Uf(this.targetTouches);if(this.b!==k){this.a&&this.a.a.push({x:b.x,y:b.y,Na:pa()});var c=this.b.x-b.x,d=b.y-this.b.y,a=a.map.a(),c=new L(c,d),d=a.P();c.x*=d;c.y*=d;c=c.rotate(a.X()).add(a.M());a.a(c)}this.b=b};
Vf.prototype.d=function(a){var b=a.map,a=b.a();if(0==this.targetTouches.length){kf(a,-1);if(this.a&&Ef(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.M();this.c=this.a.pa(e);b.c(this.c);e=Mf(b,e);b=We(b,new Ue(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}return l}this.b=k;return j};Vf.prototype.f=function(a){if(1<=this.targetTouches.length){var b=a.map,c=b.a();this.b=k;this.c!==k&&Da(b.h,this.c)&&(sf(b),c.a(a.b.u.center),this.c=k);this.a&&(a=this.a,a.a.length=0,a.c=0,a.b=0);kf(c,1);return j}return l};function Wf(a){Tf.call(this);this.a=l;this.b=0;this.o=x(a)?a:0.3}B(Wf,Tf);Wf.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.o&&(this.a=j));this.c=c;var a=a.map,c=a.a(),d=Ic(a.b),e=Uf(this.targetTouches);e.x-=d.x;e.y-=d.y;d=We(a,e);this.a&&rf(c,a,c.X()+b,d)};
Wf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();this.a&&b.rotate(a,b.X(),h,250);kf(b,-1);return l}return j};Wf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.c=h,this.a=l,this.b=0,kf(a,1),j):l};function Xf(){Tf.call(this)}B(Xf,Tf);Xf.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=Ic(a.b);d=Uf(this.targetTouches);d.x-=c.x;d.y-=c.y;c=We(a,d);uf(e,a,e.P()*b,c)};Xf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();b.zoom(a,b.P(),h,250);kf(b,-1);return l}return j};
Xf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.a=h,kf(a,1),j):l};function Yf(a,b){var c=x(a)?a:{},d=new N;(x(c.rotate)?c.rotate:1)&&d.push(new Nf(Hf));if(x(c.Qd)?c.Qd:1)d.push(new Gf(x(c.le)?c.le:1));(x(c.Wd)?c.Wd:1)&&d.push(new Vf(new Df(-0.005,0.05,100)));(x(c.Xd)?c.Xd:1)&&d.push(new Wf);(x(c.Yd)?c.Yd:1)&&d.push(new Xf);(x(c.Rd)?c.Rd:1)&&d.push(new Lf(If,new Df(-0.005,0.05,100)));var e=x(c.Td)?c.Td:80;if(x(c.Sd)?c.Sd:1)d.push(new Qf(e)),d.push(new Rf);(x(c.Ud)?c.Ud:1)&&d.push(new Sf);(x(c.Vd)?c.Vd:1)&&d.push(new Pf(Jf));if(x(b))for(c=0;c<b.length;++c)d.push(b[c]);
return d};function Zf(a){O.call(this,a,"m",$f)}B(Zf,O);var ag=6378137*Math.PI,$f=new be(-ag,-ag,ag,ag),bg=Aa(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Zf(a)});Zf.prototype.b=function(a,b){return a/((Math.exp(b.y/6378137)+Math.exp(-(b.y/6378137)))/2)};function cg(a,b){O.call(this,a,"degrees",dg,b)}B(cg,O);var dg=new be(-180,-90,180,90),eg=[new cg("CRS:84"),new cg("EPSG:4326","neu"),new cg("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new cg("urn:ogc:def:crs:OGC:1.3:CRS84")];cg.prototype.b=aa();function fg(a,b,c,d,e){this.f=e;this.g=a;this.h=c;this.e=b;this.b=new Image;d!==k&&(this.b.crossOrigin=d);this.d={};this.c=k;this.a=0}B(fg,md);fg.prototype.ka=m("f");fg.prototype.H=m("g");function gg(a,b){if(x(b)){var c,d=y(b);if(d in a.d)return a.d[d];c=Ta(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}fg.prototype.o=function(){this.a=3;C(this.c,I);this.c=k;K(this,"change")};fg.prototype.p=function(){this.a=2;C(this.c,I);this.c=k;K(this,"change")};
function hg(a){0==a.a&&(a.a=1,a.c=[tc(a.b,"error",a.o,l,a),tc(a.b,"load",a.p,l,a)],a.b.src=a.h)};function ig(a){this.a=a.resolutions;this.g=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 Zd(256,256):k}ig.prototype.b=function(a,b,c){for(var d=jg(this,a),a=a.m-1;0<=a&&!b.call(c,a,kg(this,d,this.a[a]));)--a};function lg(a,b){return a.d===k?a.f[b]:a.d}ig.prototype.Fb=m("a");
function kg(a,b,c){var d=mg(a,new L(b.i,b.j),c),a=mg(a,new L(b.l,b.k),c,j);return new te(d.x,d.y,a.x,a.y)}function ng(a,b){var c=lg(a,b.m),d=a.a[b.m],e=og(a,b.m);return new L(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function jg(a,b){var c=lg(a,b.m),d=a.a[b.m],e=og(a,b.m),f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new be(f,c,f+e.width*d,c+e.height*d)}
function mg(a,b,c,d){var e=nf(a.a,c),f=c/a.a[e],g=lg(a,e),i=og(a,e),a=f*(b.x-g.x)/(c*i.width),b=f*(b.y-g.y)/(c*i.height);d?(a=Math.ceil(a)-1,b=Math.ceil(b)-1):(a=Math.floor(a),b=Math.floor(b));return new re(e,a,b)}function og(a,b){return a.e===k?a.c[b]:a.e}
function pg(a){var b=a.f;if(b===k){for(var b=a.H(),c=Math.max(b.l-b.i,b.k-b.j),d=x(h)?h:new Zd(256,256),e=Array((x(h)?NaN:42)+1),c=c/d.width,f=0,g=e.length;f<g;++f)e[f]=c/Math.pow(2,f);b=new ig({origin:de(b),resolutions:e,tileSize:d});a.f=b}return b};function qg(a){Se.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}B(qg,Se);qg.prototype.f=od;qg.prototype.d=function(a,b,c,d){var e=j,f,g,i,n;for(i=d.i;i<=d.l;++i)for(n=d.j;n<=d.k;++n)if(f=new re(c,i,n),g=f.toString(),!a[c]||!a[c][g])f=b(f),f===k?e=l:(a[c]||(a[c]={}),a[c][g]=f);return e};qg.prototype.Fb=function(){return this.tileGrid.Fb()};
function rg(a,b,c,d){for(var e,f,g;0<=b;--b){e=kg(d,c,d.a[b]);for(f=e.i;f<=e.l;++f)for(g=e.j;g<=e.k;++g)a.p(b+"/"+f+"/"+g)}}qg.prototype.p=ba;function sg(a,b){M.call(this);this.p=a;this.a=b;this.t={};H(this.a,Td("brightness"),this.Kb,l,this);H(this.a,Td("contrast"),this.Lb,l,this);H(this.a,Td("hue"),this.Mb,l,this);H(this.a,"load",this.od,l,this);H(this.a,Td("opacity"),this.pd,l,this);H(this.a,Td("saturation"),this.Nb,l,this);H(this.a,Td("visible"),this.rd,l,this)}B(sg,M);function tg(a){K(a,"change")}p=sg.prototype;p.ba=m("p");p.Kb=ba;p.Lb=ba;p.Mb=ba;p.Jb=function(a){2===a.target.a&&sf(this.p.map)};p.od=function(){tg(this)};p.pd=function(){tg(this)};
p.Nb=ba;p.rd=function(){tg(this)};p.Ed=function(a){a=a.target;2===a.a&&sf(this.p.map);delete this.t[a.b()]};function ug(a,b){var c=b.b();c in a.t||(a.t[c]=j,tc(b,"change",a.Ed,l,a))}function vg(a,b){b.f()&&a.wa.push(oa(function(a,b,e){b=y(a).toString();a.Ca(e.Pa[b])},b))}function wg(a,b){var c,d;for(c=0;c<b.length;++c)d=b[c],a[y(d).toString()]=d}
function xg(a,b,c,d){b=y(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],a.i=Math.min(a.i,d.i),a.j=Math.min(a.j,d.j),a.l=Math.max(a.l,d.l),a.k=Math.max(a.k,d.k)):a[b][c]=d:(a[b]={},a[b][c]=d)}function yg(a,b,c){b=y(b).toString();c=c.toString();b in a||(a[b]={});a[b][c]=j}function zg(a,b,c,d){return function(e){e=b.b(e,c,d);return a(e)?e:k}};function Ag(a,b){$b.call(this);this.xa=a;this.map=b;this.d={};this.F=H(b,Td(Bg),this.td,l,this);this.e=k;this.t={}}B(Ag,$b);p=Ag.prototype;p.ua=function(a){var b=this.Ua(a),a=y(a);this.d[a]=b;this.t[a]=H(b,"change",this.qd,l,this)};
function Cg(a){var b=a.u,c=a.gc;ke(c);oe(c,a.size.width/2,a.size.height/2);pe(c,1/b.resolution,-1/b.resolution);qe(c,-b.rotation);oe(c,-b.center.x,-b.center.y);var a=a.zc,b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],i=c[5],n=c[6],r=c[7],s=c[8],q=c[9],v=c[10],u=c[11],t=c[12],z=c[13],E=c[14],c=c[15],D=b*i-d*g,U=b*n-e*g,R=b*r-f*g,J=d*n-e*i,Z=d*r-f*i,V=e*r-f*n,sa=s*z-q*t,Na=s*E-v*t,Oa=s*c-u*t,Pa=q*E-v*z,Qa=q*c-u*z,Ra=v*c-u*E,W=D*Ra-U*Qa+R*Pa+J*Oa-Z*Na+V*sa;0!=W&&(W=1/W,a[0]=(i*Ra-n*Qa+r*Pa)*W,a[1]=(-d*Ra+e*Qa-
f*Pa)*W,a[2]=(z*V-E*Z+c*J)*W,a[3]=(-q*V+v*Z-u*J)*W,a[4]=(-g*Ra+n*Oa-r*Na)*W,a[5]=(b*Ra-e*Oa+f*Na)*W,a[6]=(-t*V+E*R-c*U)*W,a[7]=(s*V-v*R+u*U)*W,a[8]=(g*Qa-i*Oa+r*sa)*W,a[9]=(-b*Qa+d*Oa-f*sa)*W,a[10]=(t*Z-z*R+c*D)*W,a[11]=(-s*Z+q*R-u*D)*W,a[12]=(-g*Pa+i*Na-n*sa)*W,a[13]=(b*Pa-d*Na+e*sa)*W,a[14]=(-t*J+z*U-E*D)*W,a[15]=(s*J-q*U+v*D)*W)}p.Ua=function(a){return new sg(this,a)};p.r=function(){La(this.d,function(a){ec(a)});I(this.F);this.e===k||C(this.e,I);Ag.v.r.call(this)};p.Xa=qd;
function Dg(a,b){var c=y(b);return a.d[c]}p.qd=function(){Eg(this.map)};p.sd=function(a){this.ua(a.a)};p.td=function(){dc(Ma(this.d));this.d={};this.e!==k&&(C(this.e,I),this.e=k);var a=this.map.t();a!=k&&(a.forEach(this.ua,this),this.e=[H(a,"add",this.sd,l,this),H(a,"remove",this.ud,l,this)])};p.ud=function(a){this.Sb(a.a)};p.Sb=function(a){a=y(a);if(a in this.d){var b=this.d[a];delete this.d[a];I(this.t[a]);delete this.t[a];a=b}else a=k;ec(a)};p.ob=ba;function Fg(a,b,c,d,e){d={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:j,WIDTH:d.width,HEIGHT:d.height};Va(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.j,c.i,c.k,c.l]:[c.i,c.j,c.l,c.k]).join(",");var a=[a],f;for(f in d)Tc(f,d[f],a);a[1]&&(f=a[0],c=f.indexOf("#"),0<=c&&(a.push(f.substr(c)),a[0]=f=f.substr(0,c)),c=f.indexOf("?"),0>c?a[1]="?":c==f.length-1&&(a[1]=h));return a.join("")};function Gg(a,b){return function(c,d,e){return Fg(a,b,c,d,e)}}function Hg(){};function Ig(a){Se.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Ga=x(a.Ga)?a.Ga:Hg;this.d=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=x(a.resolutions)?a.resolutions:k}B(Ig,Se);function Jg(a,b,c,d,e){var f=k,d=a.Ga(b,d,e);x(d)&&(f=new fg(b,c,d,a.d,a.ka()));return f};function Kg(a){P.call(this,a)}B(Kg,P);function Lg(a){P.call(this,a)}B(Lg,P);function Mg(a,b){sg.call(this,a,b)}B(Mg,sg);function Ng(a,b){sg.call(this,a,b);this.b=k;this.c=ge()}B(Ng,Mg);Ng.prototype.I=function(){return this.b===k?k:gg(this.b,this)};Ng.prototype.xa=m("c");
Ng.prototype.ha=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.a.Y(),g=a.B;!g[0]&&!g[1]&&(b=f.I(a.extent,d,b.projection),b!==k&&(f=b.a,0==f?(tc(b,"change",this.Jb,l,this),hg(b)):2==f&&(this.b=b)));if(this.b!==k){var b=this.b,f=b.H(),g=b.e,i=this.c;ke(i);oe(i,a.size.width/2,a.size.height/2);qe(i,e);pe(i,g/d,g/d);oe(i,(f.i-c.x)/g,(c.y-f.k)/g);wg(a.attributions,b.ka())}};function Og(a,b){sg.call(this,a,b);this.e=this.c=this.d=k;this.f=ge();this.b=k}B(Og,Mg);Og.prototype.I=m("d");Og.prototype.xa=m("f");
Og.prototype.ha=function(a){var b=a.u,c=b.projection,d=this.a.Y(),e=y(d).toString(),f=d.tileGrid;f===k&&(f=pg(c));var g=nf(f.a,b.resolution),i=og(f,g),n=f.a[g],r=kg(f,a.extent,n),s=r.ea(),q=r.aa(),i=new Zd(i.width*s,i.height*q),v,u;this.d===k?(v=Rb("CANVAS"),v.width=i.width,v.height=i.height,u=v.getContext("2d"),this.d=v,this.c=i,this.e=u,this.b=Array(s*q)):(v=this.d,u=this.e,this.c.width==i.width&&this.c.height==i.height||(v.width=i.width,v.height=i.height,this.c=i,this.b=Array(s*q)));q={};q[g]=
{};var i=na(d.d,d,q,zg(function(a){return a!==k&&2==a.a},d,f,c)),t,z,E,D;for(E=r.i;E<=r.l;++E)for(D=r.j;D<=r.k;++D)if(z=new re(g,E,D),t=d.b(z,f,c),t!==k){v=t.a;if(0==v)ug(this,t),yg(a.Qa,d,z),v=ng(f,z),xe(a.Vb,t,e,v);else if(2==v){q[g][z.toString()]=t;continue}else if(3==v)continue;f.b(z,i)}e=Aa(Sa(q),Number);Ja(e);v=d.G;var c=de(jg(f,new re(g,r.i,r.k))),U,R,J,Z,V,sa;for(U=0;U<e.length;++U)if(t=e[U],i=og(f,t),Z=q[t],t==g)for(R in Z)t=Z[R],z=t.V,z=(z.y-r.j)*s+(z.x-r.i),this.b[z]!=t&&(E=i.width*(t.V.x-
r.i),D=i.height*(r.k-t.V.y),v||u.clearRect(E,D,i.width,i.height),u.drawImage(t.I(),E,D),this.b[z]=t);else for(R in z=f.a[t]/n,Z){t=Z[R];J=jg(f,t.V);E=(J.i-c.x)/n;D=(c.y-J.k)/n;sa=z*i.width;V=z*i.height;v||u.clearRect(E,D,sa,V);u.drawImage(t.I(),E,D,sa,V);D=kg(f,J,f.a[g]);J=Math.max(D.i,r.i);t=Math.min(D.l,r.l);E=Math.max(D.j,r.j);for(D=Math.min(D.k,r.k);J<=t;++J)for(V=E;V<=D;++V)this.b[(V-r.j)*s+(J-r.i)]=h}xg(a.Pa,d,g,r);rg(d,g,a.extent,f);vg(a,d);d=this.f;ke(d);oe(d,a.size.width/2,a.size.height/
2);qe(d,b.rotation);pe(d,n/b.resolution,n/b.resolution);oe(d,(c.x-b.center.x)/n,(b.center.y-c.y)/n)};function Pg(a,b){Ag.call(this,a,b);this.f=new Zd(a.clientHeight,a.clientWidth);this.c=Rb("CANVAS");this.c.height=this.f.height;this.c.width=this.f.width;this.c.className="ol-unselectable";Ub(a,this.c);this.g=j;this.h=this.c.getContext("2d")}B(Pg,Ag);Pg.prototype.Ua=function(a){return a instanceof Kg?new Ng(this,a):a instanceof Lg?new Og(this,a):k};Pg.prototype.Xa=m("c");
Pg.prototype.ob=function(a){if(a===k)this.g&&(Lc(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.h;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);C(a.jb,function(b){var d=a.ib[y(b)];if(d.visible)if(d.sb){var g=Dg(this,b);g.ha(a,d);b=g.I();b!==k&&(g=g.xa(),c.setTransform(g[0],
g[1],g[4],g[5],g[12],g[13]),c.globalAlpha=d.opacity,c.drawImage(b,0,0))}else a.R=j},this);this.g||(Lc(this.c,j),this.g=j);Cg(a)}};var Qg=function(){if(!("HTMLCanvasElement"in w))return l;try{return Rb("CANVAS").getContext("2d")!==k}catch(a){return l}}();function Rg(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 Sg(a,b,c){sg.call(this,a,b);this.target=c}B(Sg,sg);Sg.prototype.r=function(){Vb(this.target);Sg.v.r.call(this)};function Tg(a,b){var c=Rb("DIV");c.className="ol-layer-image";c.style.position="absolute";Sg.call(this,a,b,c);this.b=k;this.c=ie()}B(Tg,Sg);
Tg.prototype.ha=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.b,g=this.a.Y(),i=a.B;!i[0]&&!i[1]&&(b=g.I(a.extent,d,b.projection),b!==k&&(g=b.a,0==g?(tc(b,"change",this.Jb,l,this),hg(b)):2==g&&(f=b)));f!==k&&(g=f.H(),i=f.e,b=ge(),ke(b),oe(b,a.size.width/2,a.size.height/2),qe(b,e),pe(b,i/d,i/d),oe(b,(g.i-c.x)/i,(c.y-g.k)/i),f!=this.b&&(c=gg(f,this),c.style.position="absolute",Tb(this.target),this.target.appendChild(c),this.b=f),me(b,this.c)||(Rg(this.target,b),je(this.c,b)),wg(a.attributions,
f.ka()))};function Ug(a,b){var c=Rb("DIV");c.className="ol-layer-tile";c.style.position="absolute";Sg.call(this,a,b,c);this.c=j;this.d=1;this.b={}}B(Ug,Sg);
Ug.prototype.ha=function(a,b){if(b.visible){var c=a.u,d=c.projection,e=this.a.Y(),f=y(e).toString(),g=e.tileGrid;g===k&&(g=pg(d));var i=nf(g.a,c.resolution),n=kg(g,a.extent,g.a[i]),r={};r[i]={};var s=na(e.d,e,r,zg(function(a){return a!==k&&2==a.a},e,g,d)),q,v,u,t,z;for(t=n.i;t<=n.l;++t)for(z=n.j;z<=n.k;++z)if(u=new re(i,t,z),q=e.b(u,g,d),q!==k){v=q.a;if(0==v)ug(this,q),yg(a.Qa,e,u),v=ng(g,u),xe(a.Vb,q,f,v);else if(2==v){r[i][u.toString()]=q;continue}else if(3==v)continue;g.b(u,s)}s=Aa(Sa(r),Number);
Ja(s);var d={},E;for(q=0;q<s.length;++q){u=s[q];u in this.b?f=this.b[u]:(f=mg(g,c.center,g.a[u]),f=new Vg(g,f),d[u]=j,this.b[u]=f);u=r[u];for(E in u){t=f;z=u[E];v=z.V;var D=v.toString();if(!(D in t.b)){var U=og(t.d,v.m),R=z.I(t),J=R.style;J.position="absolute";J.left=(v.x-t.c.x)*U.width+"px";J.top=(t.c.y-v.y)*U.height+"px";t.a===k&&(t.a=document.createDocumentFragment());t.a.appendChild(R);t.b[D]=z}}f.a!==k&&(f.target.appendChild(f.a),f.a=k)}E=Aa(Sa(this.b),Number);Ja(E);q=ge();for(s=0;s<E.length;++s)if(u=
E[s],f=this.b[u],u in r)if(z=f.g,t=f.f,ke(q),oe(q,a.size.width/2,a.size.height/2),qe(q,c.rotation),pe(q,z/c.resolution,z/c.resolution),oe(q,(t.x-c.center.x)/z,(c.center.y-t.y)/z),t=f,z=q,me(z,t.e)||(Rg(t.target,z),je(t.e,z)),u in d){for(u-=1;0<=u;--u)if(u in this.b){t=this.b[u].target;t.parentNode&&t.parentNode.insertBefore(f.target,t.nextSibling);break}0>u&&Ub(this.target,f.target)}else{if(!a.B[0]&&!a.B[1]){v=kg(f.d,a.extent,f.d.a[f.c.m]);u=[];z=t=h;for(z in f.b)t=f.b[z],v.contains(t.V)||u.push(t);
v=h;for(v=0;v<u.length;++v)t=u[v],z=t.V.toString(),Vb(t.I(f)),delete f.b[z]}}else Vb(f.target),delete this.b[u];b.opacity!=this.d&&(c=b.opacity,r=this.target.style,"opacity"in r?r.opacity=c:"MozOpacity"in r?r.MozOpacity=c:"filter"in r&&(r.filter=""===c?"":"alpha(opacity="+100*c+")"),this.d=b.opacity);b.visible&&!this.c&&(Lc(this.target,j),this.c=j);xg(a.Pa,e,i,n);rg(e,i,a.extent,g);vg(a,e)}else this.c&&(Lc(this.target,l),this.c=l)};
function Vg(a,b){this.target=Rb("DIV");this.target.style.position="absolute";this.d=a;this.c=b;this.f=de(jg(a,b));this.g=a.a[b.m];this.b={};this.a=k;this.e=ie()};function Wg(a,b){Ag.call(this,a,b);this.c=Rb("DIV");this.c.className="ol-layers ol-unselectable";var c=this.c.style;c.position="absolute";c.width="100%";c.height="100%";Ub(a,this.c);this.f=j}B(Wg,Ag);Wg.prototype.ua=function(a){Wg.v.ua.call(this,a);Eg(this.map)};Wg.prototype.Ua=function(a){var b;a instanceof Lg?b=new Ug(this,a):a instanceof Kg&&(b=new Tg(this,a));this.c.appendChild(b.target);return b};
Wg.prototype.ob=function(a){a===k?this.f&&(Lc(this.c,l),this.f=l):(C(a.jb,function(b){var c=a.ib[y(b)];c.sb&&Dg(this,b).ha(a,c)},this),this.f||(Lc(this.c,j),this.f=j),Cg(a))};function Xg(a){this.a=a}Xg.prototype.Y=m("a");function Yg(a){this.a=a}B(Yg,Xg);Yg.prototype.b=function(){return 35632};function Zg(a){this.a=a}B(Zg,Xg);Zg.prototype.b=function(){return 35633};function $g(a,b){sg.call(this,a,b);this.F=new Float32Array(16);this.J=new Float32Array(16);this.La=new Float32Array(16);this.Oa=new Float32Array(16);this.G=new Float32Array(16);this.c=j;this.Kb();this.Lb();this.Mb();this.Nb()}B($g,sg);function ah(a){if(a.c){var b=a.G;ke(b);le(b,a.J,b);le(b,a.F,b);le(b,a.Oa,b);le(b,a.La,b);a.c=l}return a.G}p=$g.prototype;p.ba=function(){return $g.v.ba.call(this)};p.Kb=function(){var a=this.a.b(),b=this.F;ke(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=j;tg(this)};
p.Lb=function(){var a=this.a.c(),b=this.J;ke(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=j;tg(this)};p.Mb=function(){var a=this.a.d(),b=Math.cos(a),a=Math.sin(a);he(this.La,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=j;tg(this)};
p.Nb=function(){var a=this.a.f();he(this.Oa,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=j;tg(this)};p.Fa=ba;function bh(a,b){$g.call(this,a,b);this.b=this.d=k;this.f=ie();this.e=ge()}B(bh,$g);p=bh.prototype;p.r=function(){var a=this.ba().a;a.isContextLost()||a.deleteTexture(this.b);bh.v.r.call(this)};p.lc=m("f");p.mc=m("b");p.kc=m("e");p.Fa=function(){this.b=k};
p.ha=function(a){var b=this.ba().a,c=a.u,d=c.center,e=c.resolution,f=c.rotation,g=this.d,i=this.b,n=this.a.Y(),r=a.B;!r[0]&&!r[1]&&(c=n.I(a.extent,e,c.projection),c!==k&&(n=c.a,0==n?(tc(c,"change",this.Jb,l,this),hg(c)):2==n&&(g=c,i=gg(c,this),c=this.ba().a,n=c.createTexture(),c.bindTexture(3553,n),c.texImage2D(3553,0,6408,6408,5121,i),c.texParameteri(3553,10242,33071),c.texParameteri(3553,10243,33071),c.texParameteri(3553,10241,9729),c.texParameteri(3553,10240,9729),i=n,this.b===k||a.wa.push(oa(function(a,
b){a.isContextLost()||a.deleteTexture(b)},b,this.b)))));g!==k&&(n=this.ba().Xa(),b=g.H(),c=n.width*e,e*=n.height,n=this.e,ke(n),pe(n,2/c,2/e),qe(n,-f),oe(n,b.i-d.x,b.j-d.y),pe(n,b.ea()/2,b.aa()/2),oe(n,1,1),d=this.f,ke(d),pe(d,1,-1),oe(d,0,-1),this.d=g,this.b=i,wg(a.attributions,g.ka()))};function ch(a,b){this.L=a;this.Z=b}ch.prototype.S=function(){return new ch(this.L,this.Z)};function dh(a){this.a=[];if(a)a:{var b,c;if(a instanceof dh){if(b=a.W(),c=a.N(),0>=a.$()){for(var a=this.a,d=0;d<b.length;d++)a.push(new ch(b[d],c[d]));break a}}else b=Sa(a),c=Ma(a);for(d=0;d<b.length;d++)eh(this,b[d],c[d])}}function eh(a,b,c){var d=a.a;d.push(new ch(b,c));b=d.length-1;a=a.a;for(c=a[b];0<b;)if(d=b-1>>1,a[d].L>c.L)a[b]=a[d],b=d;else break;a[b]=c}p=dh.prototype;
p.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ca(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,g=2*a+2,f=g<d&&b[g].L<b[f].L?g:f;if(b[f].L>e.L)break;b[a]=b[f];a=f}b[a]=e}return c.Z}};p.N=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Z);return b};p.W=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].L);return b};p.S=function(){return new dh(this)};p.$=function(){return this.a.length};
p.Ia=function(){return 0==this.a.length};p.clear=function(){Ca(this.a)};function fh(){dh.call(this)}B(fh,dh);function gh(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}B(gh,Yg);ca(gh);function hh(){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}"}B(hh,Zg);ca(hh);
function ih(a,b){$g.call(this,a,b);this.yb=gh.Ya();this.Ab=hh.Ya();this.e=this.g=this.f=this.A=k;this.h=h;this.d=ge();this.Ra=ie();this.w=this.b=k}B(ih,$g);p=ih.prototype;p.r=function(){var a=this.ba().a;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));ih.v.r.call(this)};p.lc=m("d");p.mc=m("g");p.kc=m("Ra");p.Fa=function(){this.e=this.g=this.f=this.A=k;this.h=h};
p.ha=function(a){var b=this.ba(),c=b.a,d=a.u,e=d.projection,f=d.center,g=this.a.Y(),i=y(g).toString(),n=g.tileGrid;n===k&&(n=pg(e));var r=nf(n.a,d.resolution),s=n.a[r],q=kg(n,a.extent,s),v;if(this.b!==k&&this.b.i==q.i&&this.b.j==q.j&&this.b.l==q.l&&this.b.k==q.k)v=this.w;else{var u=new Zd(q.ea(),q.aa()),t=og(n,r),u=Math.max(u.width*t.width,u.height*t.height),u=Math.pow(2,Math.ceil(Math.log(u)/Math.log(2))),z=new Zd(s*u,s*u),E=lg(n,r),D=E.x+q.i*t.width*s,s=E.y+q.j*t.height*s;v=new be(D,s,D+z.width,
s+z.height);s=this.ba().a;!x(this.h)||this.h!=u?(a.wa.push(oa(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},s,this.e,this.g)),t=s.createTexture(),s.bindTexture(3553,t),s.texImage2D(3553,0,6408,u,u,0,6408,5121,k),s.texParameteri(3553,10240,9729),s.texParameteri(3553,10241,9729),D=s.createFramebuffer(),s.bindFramebuffer(36160,D),s.framebufferTexture2D(36160,36064,3553,t,0),this.g=t,this.e=D,this.h=u):s.bindFramebuffer(36160,this.e);c.viewport(0,0,u,u);c.clearColor(0,
0,0,0);c.clear(16384);c.disable(3042);u=jh(b,this.yb,this.Ab);c.useProgram(u);this.A===k&&(this.A={Zb:c.getAttribLocation(u,"aPosition"),$b:c.getAttribLocation(u,"aTexCoord"),de:c.getUniformLocation(u,"uTileOffset"),ce:c.getUniformLocation(u,"uTexture")});this.f===k?(u=c.createBuffer(),c.bindBuffer(34962,u),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=u):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.A.Zb);c.vertexAttribPointer(this.A.Zb,2,5126,l,
16,0);c.enableVertexAttribArray(this.A.$b);c.vertexAttribPointer(this.A.$b,2,5126,l,16,8);c.uniform1i(this.A.ce,0);var U={};U[r]={};for(var s=na(g.d,g,U,zg(function(a){return a!==k&&2==a.a&&kh(b.b,a.b())},g,n,e)),u=new fh,R=j,J,Z,E=q.i;E<=q.l;++E)for(Z=q.j;Z<=q.k;++Z)if(D=new re(r,E,Z),t=g.b(D,n,e),t!==k){J=t.a;if(0==J)ug(this,t),yg(a.Qa,g,D),J=ng(n,D),xe(a.Vb,t,i,J);else if(2==J)if(kh(b.b,t.b())){U[r][D.toString()]=t;continue}else J=ng(n,D),R=J.x-f.x,J=J.y-f.y,R=Math.sqrt(R*R+J*J),eh(u,R,t);else if(3==
J)continue;R=l;n.b(D,s)}e=Aa(Sa(U),Number);Ja(e);var V=new Float32Array(4);C(e,function(a){La(U[a],function(a){var d=jg(n,a.V),e=2*d.aa()/z.height,f=2*(d.i-v.i)/z.width-1,g=2*(d.j-v.j)/z.height-1;V[0]=2*d.ea()/z.width;V[1]=e;V[2]=f;V[3]=g;c.uniform4fv(this.A.de,V);lh(b,a);c.drawArrays(5,0,4)},this)},this);u.Ia()||a.wa.push(oa(function(a,b){var c,d;for(c=0;!b.Ia()&&4>c;++c)d=b.remove(),lh(a,d)},b,u));R?(this.b=q,this.w=v):(this.w=this.b=k,a.R=j)}xg(a.Pa,g,r,q);rg(g,r,a.extent,n);vg(a,g);ke(this.d);
oe(this.d,(d.center.x-v.i)/(v.l-v.i),(d.center.y-v.j)/(v.k-v.j));qe(this.d,d.rotation);pe(this.d,a.size.width*d.resolution/(v.l-v.i),a.size.height*d.resolution/(v.k-v.j));oe(this.d,-0.5,-0.5)};function mh(){this.n=0;this.c={};this.b=this.a=k}p=mh.prototype;p.clear=function(){this.n=0;this.c={};this.b=this.a=k};function kh(a,b){return a.c.hasOwnProperty(b)}p.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.Z,c.L,this),c=c.U};function nh(a,b){var c=a.c[b];if(c===a.b)return c.Z;c===a.a?(a.a=a.a.U,a.a.ia=k):(c.U.ia=c.ia,c.ia.U=c.U);c.U=k;c.ia=a.b;a.b.U=c;a.b=c;return c.Z}p.$=m("n");p.W=function(){var a=Array(this.n),b=0,c;for(c=this.b;c!==k;c=c.ia)a[b++]=c.L;return a};
p.N=function(){var a=Array(this.n),b=0,c;for(c=this.b;c!==k;c=c.ia)a[b++]=c.Z;return a};function oh(a){var b=a.a;delete a.c[b.L];b.U!==k&&(b.U.ia=k);a.a=b.U;a.a===k&&(a.b=k);--a.n}function ph(a,b,c){c={L:b,U:k,ia:a.b,Z:c};a.b===k?a.a=c:a.b.U=c;a.b=c;a.c[b]=c;++a.n};var qh=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function rh(a,b){var c,d,e=qh.length;for(d=0;d<e;++d)try{if(c=a.getContext(qh[d],b),c!==k)return c}catch(f){}return k}var sh=function(){if(!("WebGLRenderingContext"in w))return l;try{var a=Rb("CANVAS");return rh(a)!==k}catch(b){return l}}();function th(){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}"}B(th,Yg);ca(th);
function uh(){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}"}B(uh,Zg);ca(uh);
function vh(a,b){Ag.call(this,a,b);this.c=Rb("CANVAS");this.c.height=a.clientHeight;this.c.width=a.clientWidth;this.c.className="ol-unselectable";Ub(a,this.c);this.p=j;this.w=new Zd(a.clientHeight,a.clientWidth);this.a=rh(this.c,{alpha:l,antialias:j,depth:l,preserveDrawingBuffer:l,stencil:l});H(this.c,"webglcontextlost",this.Fa,l,this);H(this.c,"webglcontextrestored",this.Kd,l,this);this.o=this.A=k;this.g={};this.f={};this.b=new mh;this.h=0;this.G=th.Ya();this.J=uh.Ya();wh(this)}B(vh,Ag);p=vh.prototype;
p.ua=function(a){vh.v.ua.call(this,a);a.a()&&Eg(this.map)};
function lh(a,b){var c=a.a,d=b.b();if(kh(a.b,d))d=nh(a.b,d),c.bindTexture(3553,d.Ub),9729!=d.sc&&(c.texParameteri(3553,10240,9729),d.sc=9729),9729!=d.tc&&(c.texParameteri(3553,10240,9729),d.tc=9729);else{var e=c.createTexture();c.bindTexture(3553,e);c.texImage2D(3553,0,6408,6408,5121,b.I());c.texParameteri(3553,10240,9729);c.texParameteri(3553,10241,9729);c.texParameteri(3553,10242,33071);c.texParameteri(3553,10243,33071);ph(a.b,d,{Ub:e,sc:9729,tc:9729})}}
p.Ua=function(a){var b=k;a instanceof Lg?b=new ih(this,a):a instanceof Kg&&(b=new bh(this,a));return b};p.r=function(){var a=this.a;a.isContextLost()||(La(this.f,function(b){a.deleteProgram(b)}),La(this.g,function(b){a.deleteShader(b)}),this.b.forEach(function(b){b===k||a.deleteTexture(b.Ub)}));vh.v.r.call(this)};p.ad=function(a,b){for(var c=this.a,d;1024<this.b.$()-this.h;){d=this.b.a.Z;if(d===k)if(+this.b.a.L==b.time)break;else--this.h;else c.deleteTexture(d.Ub);oh(this.b)}};p.Xa=m("c");
function jh(a,b,c){var d=y(b)+"/"+y(c);if(d in a.f)return a.f[d];var e=a.a,f=e.createProgram();e.attachShader(f,xh(a,b));e.attachShader(f,xh(a,c));e.linkProgram(f);return a.f[d]=f}function xh(a,b){var c=y(b);if(c in a.g)return a.g[c];var d=a.a,e=d.createShader(b.b());d.shaderSource(e,b.Y());d.compileShader(e);return a.g[c]=e}p.Fa=function(a){a.C();this.o=this.A=k;this.g={};this.f={};this.b.clear();this.h=0;La(this.d,function(a){a.Fa()})};p.Kd=function(){wh(this);Eg(this.map)};
function wh(a){a=a.a;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}p.Sb=function(a){vh.v.Sb.call(this,a);a.a()&&Eg(this.map)};
p.ob=function(a){var b=this.a;if(a===k)return this.p&&(Lc(this.c,l),this.p=l),l;ph(this.b,a.time.toString(),k);++this.h;C(a.jb,function(b){var c=a.ib[y(b)];c.visible&&c.sb&&Dg(this,b).ha(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=jh(this,this.G,this.J);b.useProgram(c);
this.A===k&&(this.A={ac:b.getAttribLocation(c,"a_position"),bc:b.getAttribLocation(c,"a_texCoord"),ee:b.getUniformLocation(c,"u_colorMatrix"),he:b.getUniformLocation(c,"u_texCoordMatrix"),ge:b.getUniformLocation(c,"u_projectionMatrix"),fe:b.getUniformLocation(c,"u_opacity"),ie:b.getUniformLocation(c,"u_texture")});this.o===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.o=c):b.bindBuffer(34962,this.o);b.enableVertexAttribArray(this.A.ac);
b.vertexAttribPointer(this.A.ac,2,5126,l,16,0);b.enableVertexAttribArray(this.A.bc);b.vertexAttribPointer(this.A.bc,2,5126,l,16,8);b.uniform1i(this.A.ie,0);C(a.jb,function(c){var d=a.ib[y(c)];d.visible&&d.sb&&(d=Dg(this,c),b.uniformMatrix4fv(this.A.he,l,d.lc()),b.uniformMatrix4fv(this.A.ge,l,d.kc()),b.uniformMatrix4fv(this.A.ee,l,ah(d)),b.uniform1f(this.A.fe,c.e()),b.bindTexture(3553,d.mc()),b.drawArrays(5,0,4))},this);this.p||(Lc(this.c,j),this.p=j);Cg(a);1024<this.b.$()-this.h&&a.wa.push(na(this.ad,
this))};var yh={},zh={pe:"canvas",se:"dom",Oe:"webgl"},Ah=["webgl","canvas","dom"],Bg="layers";
function S(a){var b;M.call(this);var c={};c[Bg]=x(a.layers)?a.layers:new N;c.view=x(a.view)?a.view:new Q;b=Ag;var d;d=x(a.renderers)?a.renderers:x(a.renderer)?[a.renderer]:Ah;var e,f;for(e=0;e<d.length;++e)if(f=d[e],"canvas"==f){if(Qg){b=Pg;break}}else if("dom"==f){b=Wg;break}else if("webgl"==f&&sh){b=vh;break}d=x(a.controls)?a.controls:Cf();e=x(a.interactions)?a.interactions:Yf();a=ga(a.target)?document.getElementById(a.target):a.target;this.d=new rd(this.Zd,h,this);cc(this,this.d);this.Lc=ge();
this.Qc=ge();this.e=k;this.g=0;this.p=l;this.Oa=a;this.F=k;this.b=Pb("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.Oa.appendChild(this.b);this.w=Pb("DIV","ol-overlaycontainer");H(this.w,["click",Nd?"touchstart":"mousedown"],gc);this.b.appendChild(this.w);a=new Ye(this);H(a,Ma(hf),this.yc,l,this);cc(this,a);a=new Dd(document);H(a,"key",this.nc,l,this);cc(this,a);a=new Kd(this.b);
H(a,"mousewheel",this.nc,l,this);cc(this,a);this.La=e;this.G=new b(this.b,this);cc(this,this.G);this.Tc=new yd;H(this.Tc,"resize",this.oc,l,this);this.h=[];this.yb=[];this.Pc=na(this.Bd,this);this.J=new we(na(this.dd,this));H(this,Td("view"),this.Id,l,this);H(this,Td("size"),this.Dd,l,this);H(this,Td("backgroundColor"),this.md,l,this);this.nb(c);this.oc();x(d)&&C(d,function(a){a.a(this)},this)}B(S,M);S.prototype.c=function(a){sf(this);this.h.push(a)};
S.prototype.Ab=function(a){sf(this);Array.prototype.push.apply(this.h,a)};S.prototype.r=function(){Vb(this.b);S.v.r.call(this)};S.prototype.xa=function(){return this.s("backgroundColor")};S.prototype.getBackgroundColor=S.prototype.xa;S.prototype.Oc=m("G");function We(a,b){var c=a.e;if(c===k)return k;var d=[b.x,b.y,0];ne(c.zc,d,d);return new L(d[0],d[1])}S.prototype.Mc=m("La");S.prototype.t=function(){return this.s(Bg)};S.prototype.getLayers=S.prototype.t;
function Mf(a,b){var c=a.e;if(c===k)return k;var d=[b.x,b.y,0];ne(c.gc,d,d);return new Ue(d[0],d[1])}S.prototype.f=function(){return this.s("size")};S.prototype.getSize=S.prototype.f;S.prototype.a=function(){return this.s("view")};S.prototype.getView=S.prototype.a;p=S.prototype;p.dd=function(a,b,c){var d=this.e;if(d===k||!(b in d.Qa)||!d.Qa[b][a.V.toString()])return Infinity;b=d.u.center;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};p.nc=function(a,b){this.yc(new Ve(b||a.type,this,a))};
p.yc=function(a){a.b=this.e;var b=this.La.a;if(K(this,a)!==l)for(var c=b.length-1;0<=c&&!(b[c].oa(a),a.bb);c--);};
p.Bd=function(){var a=this.J,b=a.a,c,d=0,e,f,g,i;for(c=0;c<b.length;++c)e=b[c],g=e[1],i=e[2],f=e[3],f=a.d(g,i,f),Infinity==f?(e=g.b(),delete a.b[e],g.e--,0===g.e&&wc(g)):(e[0]=f,b[d++]=e);b.length=d;for(b=(a.a.length>>1)-1;0<=b;b--)ze(a,b);for(a=this.J;0<a.a.length&&a.c<a.f;)b=a,d=b.a,c=d[0][1],1==d.length?d.length=0:(d[0]=d.pop(),ze(b,0)),d=c.b(),delete b.b[d],c.e--,b=c,tc(b,"change",a.e,l,a),0==b.a&&(b.a=1,b.d=[tc(b.c,"error",b.h,l,b),tc(b.c,"load",b.o,l,b)],b.c.src=b.g),++a.c;a=this.yb;for(b=0;b<
a.length;++b)a[b](this,this.e);a.length=0};p.md=function(){Eg(this)};p.oc=function(){var a;var b=this.Oa;if("none"!=Cc(b,"display"))a=Kc(b);else{a=b.style;var c=a.display,d=a.visibility,e=a.position;a.visibility="hidden";a.position="absolute";a.display="inline";b=Kc(b);a.display=c;a.position=e;a.visibility=d;a=b}this.Ra(new Zd(a.width,a.height))};p.Dd=function(){Eg(this)};p.Jd=function(){Eg(this)};
p.Id=function(){this.F!==k&&(I(this.F),this.F=k);var a=this.a();a!=k&&(this.F=H(a,"changed",this.Jd,l,this));Eg(this)};p.Ha=function(){var a=this.a(),b;if(b=x(a)){if(a=a.Ha())a=this.f()!=k;b=a}return b};function Eg(a){a.d.O==k&&(0===a.g?(a=a.d,sd(a),a.Gb()):a.p=j)}function sf(a){0===a.g?a.d.O!=k||a.d.start():a.p=j}
p.Zd=function(a){var b;if(0==this.g){var c=this.f();b=this.t();var d=x(b)?b.a:h;b=this.a();var e=x(b)?this.a().g():h,f=k;if(x(d)&&x(c)&&x(e)&&e.Ha()){var f=this.xa(),g=Fa(b.e),i={},n;for(b=0;b<d.length;++b){n=d[b];var r=i,s=y(n),q=n;n=q.b();var v=q.c(),u=q.d(),t=q.e(),z=q.Y().c(),E=q.f(),q=q.a();r[s]={brightness:x(n)?n:0,contrast:x(v)?v:1,hue:x(u)?u:0,opacity:x(t)?t:1,sb:z,saturation:x(E)?E:1,visible:x(q)?q:j}}b=e.M();r=e.xc();s=e.P();e=e.X();r={center:new L(b.x,b.y),projection:r,resolution:s,rotation:e};
f={R:l,attributions:{},backgroundColor:x(f)?f:new Yd,gc:this.Lc,extent:k,jb:d,ib:i,zc:this.Qc,wa:[],size:c,Vb:this.J,time:a,Pa:{},u:r,B:g,Qa:{}}}a=this.h;for(b=d=0;b<a.length;++b)e=a[b],e(this,f)&&(a[d++]=e);a.length=d;if(f!==k){a=r.center;b=r.resolution;d=r.rotation;e=b*c.width/2;c=b*c.height/2;c=[new L(-e,-c),new L(-e,c),new L(e,-c),new L(e,c)];for(b=0;4>b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=ce.apply(k,c)}this.e=f;this.G.ob(f);this.p=l;f!==k&&(f.R&&sf(this),Array.prototype.push.apply(this.yb,
f.wa));K(this,new Te("postrender",this,f));w.setTimeout(this.Pc,0)}};p.ae=function(a){this.q("backgroundColor",a)};S.prototype.setBackgroundColor=S.prototype.ae;S.prototype.Rc=function(a){this.q(Bg,a)};S.prototype.setLayers=S.prototype.Rc;S.prototype.Ra=function(a){this.q("size",a)};S.prototype.setSize=S.prototype.Ra;S.prototype.Sc=function(a){this.q("view",a)};S.prototype.setView=S.prototype.Sc;function tf(a,b,c){++a.g;try{b.call(c)}finally{0===--a.g&&a.p&&(a=a.d,sd(a),a.Gb())}}
yh.Yc=function(a){var b=w.location.search.substring(1),a=x(a)?a:new Zc(b);return kd(a,"renderers")?ld(a,"renderers").split(","):kd(a,"renderer")?[ld(a,"renderer")]:Ah};Ke(bg);Ke(eg);function Bh(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 Ch(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}C(eg,function(a){C(bg,function(b){Me(a,b,Bh);Me(b,a,Ch)})});var Dh={me:"bottom-left",ne:"bottom-right",He:"top-left",Ie:"top-right"};function T(a){M.call(this);this.b=Rb("DIV");this.b.style.position="absolute";this.a={Ta:"",kb:"",ub:"",wb:"",visible:j};H(this,Td("element"),this.nd,l,this);H(this,Td("map"),this.vd,l,this);H(this,Td("position"),this.zd,l,this);H(this,Td("positioning"),this.Ad,l,this);x(a.element)&&this.Dc(a.element);x(a.position)&&this.p(a.position);x(a.positioning)&&this.q("positioning",a.positioning);x(a.map)&&this.h(a.map)}B(T,M);
T.prototype.f=function(){return this.s("element")};T.prototype.getElement=T.prototype.f;T.prototype.d=function(){return this.s("map")};T.prototype.getMap=T.prototype.d;T.prototype.g=function(){return this.s("position")};T.prototype.getPosition=T.prototype.g;T.prototype.e=function(){return this.s("positioning")};T.prototype.getPositioning=T.prototype.e;p=T.prototype;p.nd=function(){Tb(this.b);var a=this.f();a!=k&&Sb(this.b,a)};
p.vd=function(){this.c!==k&&(Vb(this.b),I(this.c),this.c=k);var a=this.d();a!=k&&(this.c=H(a,"postrender",this.Md,l,this),Eh(this),Sb(a.w,this.b))};p.Md=function(){Eh(this)};p.zd=function(){Eh(this)};p.Ad=function(){Eh(this)};p.Dc=function(a){this.q("element",a)};T.prototype.setElement=T.prototype.Dc;T.prototype.h=function(a){this.q("map",a)};T.prototype.setMap=T.prototype.h;T.prototype.p=function(a){this.q("position",a)};T.prototype.setPosition=T.prototype.p;
function Eh(a){var b=a.d(),c=a.g();if(!x(b)||!b.Ha()||!x(c))a.a.visible&&(Lc(a.b,l),a.a.visible=l);else{var c=Mf(b,c),d=b.f(),b=a.b.style,e=a.e();if("bottom-right"==e||"top-right"==e){""!==a.a.kb&&(a.a.kb=b.left="");var f=Math.round(d.width-c.x)+"px";a.a.ub!=f&&(a.a.ub=b.right=f)}else""!==a.a.ub&&(a.a.ub=b.right=""),f=Math.round(c.x)+"px",a.a.kb!=f&&(a.a.kb=b.left=f);"top-left"==e||"top-right"==e?(""!==a.a.Ta&&(a.a.Ta=b.bottom=""),c=Math.round(c.y)+"px",a.a.wb!=c&&(a.a.wb=b.top=c)):(""!==a.a.wb&&
(a.a.wb=b.top=""),c=Math.round(d.height-c.y)+"px",a.a.Ta!=c&&(a.a.Ta=b.bottom=c));a.a.visible||(Lc(a.b,j),a.a.visible=j)}};function X(a){M.call(this);this.a=k;Fh&&(H(this,Td("projection"),this.p,l,this),this.J=navigator.geolocation.watchPosition(na(this.F,this),na(this.G,this),a))}B(X,M);X.prototype.r=function(){navigator.geolocation.clearWatch(this.J);X.v.r.call(this)};X.prototype.p=function(){var a=this.c();a!=k&&(this.b=Fe(Pe("EPSG:4326"),a),this.a!==k&&(a=[this.a.x,this.a.y],a=this.b(a,a,2),this.q("position",new L(a[0],a[1]))))};var Fh="geolocation"in navigator;
X.prototype.F=function(a){a=a.coords;this.q("accuracy",a.accuracy);this.q("altitude",a.altitude===k?h:a.altitude);this.q("altitudeAccuracy",a.altitudeAccuracy===k?h:a.altitudeAccuracy);this.q("heading",a.heading===k?h:a.heading*Math.PI/180);this.a=new L(a.longitude,a.latitude);var b=[a.longitude,a.latitude],b=this.b(b,b,2);this.q("position",new L(b[0],b[1]));this.q("speed",a.speed===k?h:a.speed)};X.prototype.G=function(){};X.prototype.d=function(){return this.s("accuracy")};
X.prototype.getAccuracy=X.prototype.d;X.prototype.e=function(){return this.s("altitude")};X.prototype.getAltitude=X.prototype.e;X.prototype.f=function(){return this.s("altitudeAccuracy")};X.prototype.getAltitudeAccuracy=X.prototype.f;X.prototype.g=function(){return this.s("heading")};X.prototype.getHeading=X.prototype.g;X.prototype.t=function(){return this.s("position")};X.prototype.getPosition=X.prototype.t;X.prototype.c=function(){return this.s("projection")};X.prototype.getProjection=X.prototype.c;
X.prototype.h=function(){return this.s("speed")};X.prototype.getSpeed=X.prototype.h;X.prototype.w=function(a){this.q("projection",a)};X.prototype.setProjection=X.prototype.w;X.prototype.b=aa();function Gh(a){var a=x(a)?a:{},b=Pb("DIV",{"class":"ol-mouse-position"});wf.call(this,{element:b,map:a.map,target:a.target});this.h=a.projection;this.g=a.coordinateFormat;this.J=x(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.o=Qe;this.d=this.e=this.t=k}B(Gh,wf);Gh.prototype.G=function(a){a=a.b;a===k?this.c=k:this.c=a.u.projection;Hh(this,this.e)};Gh.prototype.w=function(a){a=Hc(a,this.b.b);a=new Ue(a.x,a.y);Hh(this,a);this.e=a};Gh.prototype.F=function(){Hh(this,k);this.e=k};
Gh.prototype.a=function(a){this.d!==k&&(C(this.d,I),this.d=k);Gh.v.a.call(this,a);if(a!==k){var b=a.b;this.d=[H(b,"mousemove",this.w,l,this),H(b,"mouseout",this.F,l,this),H(a,"postrender",this.G,l,this)]}};function Hh(a,b){var c=a.J;if(b!==k){a.t!=a.c&&(a.o=x(a.h)?Fe(a.c,a.h):Qe,a.t=a.c);var d=We(a.b,b);d!==k&&(c=[d.x,d.y],c=a.o(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};function Ih(){this.a={}}B(Ih,Ff);Ih.prototype.b=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Ih.prototype.oa=function(a){if("key"==a.type){var b=this.a[a.a.$a];b&&(b(),a.C())}};function Jh(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",j),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};function Kh(){this.ya={Ic:/^\s*|\s*$/g,a:/\s*/g,Gc:/\s+/,Hc:/\s*,\s*/g}}function Lh(a,b,c){c||(c={});var d=a.z[b.namespaceURI]||a.z[a.a];if(d){var e=b.localName||b.nodeName.split(":").pop();(d=d[e]||d["*"])&&d.apply(a,[b,c])}}function Y(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&&Lh(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}
Kh.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,g,i=0,n=a.length;i<n;++i)if(f=a[i],f.namespaceURI==b&&(g=f.prefix?f.prefix+":"+c:c,g==f.nodeName)){e=f;break}if(b=e)d=b.nodeValue}return d};function Mh(){function a(a,b){b.be.push($(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),Qe:a.getAttribute("locator"),be:[]};b.jc.push(e);Y(this,a,e)}this.z={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];Y(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.Re=l;b.Eb={version:a.getAttribute("version"),language:a.getAttribute("language"),jc:[]};Y(this,a,b.Eb)},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.Eb={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),jc:[]};Y(this,a,b.Eb)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}};Kh.call(this)}B(Mh,Kh);
Mh.prototype.ra=function(a){"string"==typeof a&&(a=Jh(a));var b={exceptionReport:k};a&&Y(this,a,b);return b};function Nh(a){this.c=a=a||{};this.Va=a.Va||k;this.version=a.version;this.profile=a.profile;a.Sa!==h?this.Sa=a.Sa:this.Sa=l;a.Tb!==h?this.Tb=a.Tb:this.Tb=l}
Nh.prototype.ra=function(a,b){"string"==typeof a&&(a=Jh(a));var c;c=a.documentElement;var d;c?(d=this.version,d||(d=c.getAttribute("version"),d||(d=this.Va))):d=this.version||this.Va;d=(c=d)||this.Va;var e=this.profile?"_"+this.profile:"";if(!this.b||this.b.VERSION!=d){var f=this.a["v"+d.replace(/\./g,"_")+e];if(!f&&(""!==e&&this.Sa&&(e="",f=this.a["v"+d.replace(/\./g,"_")+e]),!f))throw"Can't find a parser for version "+d+e;this.b=new f(this.c)}this.b=this.b;d=this.b.ra(a,b);e=this.b.ic||k;e!==k&&
d[e]===h&&(d.error=(new Mh).ra(a));d.version=c;return d};function Oh(){this.a="http://www.opengis.net/wms";this.ic="service";this.z={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};Y(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={};Y(this,a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};Y(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=
{};Y(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=[];Y(this,a,b.capability)},Request:function(a,b){b.request={};Y(this,a,b.request)},GetCapabilities:function(a,b){b.getcapabilities={};b.getcapabilities.formats=[];Y(this,a,b.getcapabilities)},Format:function(a,b){ea(b.formats)?b.formats.push($(a)):b.format=$(a)},DCPType:function(a,b){Y(this,a,b)},HTTP:function(a,b){Y(this,
a,b)},Get:function(a,b){b.get={};Y(this,a,b.get)},Post:function(a,b){b.post={};Y(this,a,b.post)},GetMap:function(a,b){b.getmap={};b.getmap.formats=[];Y(this,a,b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={};b.getfeatureinfo.formats=[];Y(this,a,b.getfeatureinfo)},Exception:function(a,b){b.exception={};b.exception.formats=[];Y(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,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):k,i=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):k,n=a.getAttribute("noSubsets"),r=a.getAttribute("fixedWidth"),s=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:g!==k?parseInt(g,10):e.cascaded||
0,opaque:i?"1"===i||"true"===i:e.opaque||l,noSubsets:n!==k?"1"===n||"true"===n:e.noSubsets||l,fixedWidth:r!==k?parseInt(r,10):e.fixedWidth||0,fixedHeight:s!==k?parseInt(s,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&(Va(f.srs,e.srs),Va(f.bbox,e.bbox),Va(f.dimensions,e.dimensions),Va(f.authorityURLs,e.authorityURLs));b.nestedLayers.push(f);f.capability=d;Y(this,a,f);delete f.capability;f.name&&(c=f.name.split(":"),g=d.request,e=g.getfeatureinfo,0<c.length&&
(f.prefix=c[0]),d.layers.push(f),f.formats===h&&(f.formats=g.getmap.formats),f.infoFormats===h&&e&&(f.infoFormats=e.formats))},Attribution:function(a,b){b.attribution={};Y(this,a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};Y(this,a,b.logo)},Style:function(a,b){var c={};b.styles.push(c);Y(this,a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;Y(this,a,c)},MetadataURL:function(a,
b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);Y(this,a,c)},DataURL:function(a,b){b.dataURL={};Y(this,a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};Y(this,a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};Y(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){Y(this,a,b)},SRS:function(a,b){b.srs[$(a)]=j}}};Kh.call(this)}B(Oh,Kh);
Oh.prototype.ra=function(a){"string"==typeof a&&(a=Jh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Lh(this,a,b);return b};function Ph(){Oh.call(this);var a=this.z["http://www.opengis.net/wms"].BoundingBox;Va(this.z["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){Y(this,a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:$(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};Y(this,a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic={formats:[]};Y(this,a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};Y(this,a,c.getstyles)},PutStyles:function(a,
c){c.putstyles={formats:[]};Y(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),g=25.4/0.28;0!==d&&(c.maxScale=parseFloat(39.37*(d/f)*g));e!=Number.POSITIVE_INFINITY&&(c.minScale=parseFloat(39.37*(e/f)*g))},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(","))}})}B(Ph,Oh);function Qh(){Ph.call(this);this.version="1.1.0";Va(this.z["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]]=j}})}B(Qh,Ph);function Rh(){Ph.call(this);this.version="1.1.1";Va(this.z["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[$(a)]=j}})}B(Rh,Ph);function Sh(){Rh.call(this);this.profile="WMSC";Va(this.z["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};Y(this,a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};Y(this,a,c);b.Te.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)}})}B(Sh,Rh);function Th(){Oh.call(this);var a=this.z["http://www.opengis.net/wms"].BoundingBox;Va(this.z["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){Y(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.z["http://www.opengis.net/wms"].SRS.apply(this,
arguments)},EX_GeographicBoundingBox:function(a,c){c.llbbox=[];Y(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.z.sld={UserDefinedSymbolization:function(a,c){this.z["http://www.opengis.net/wms"].Ne.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.z["http://www.opengis.net/wms"].xe.apply(this,arguments)},GetLegendGraphic:function(a,c){this.z["http://www.opengis.net/wms"].ze.apply(this,arguments)}}}B(Th,Oh);function Uh(a){a=a||{};a.defaultVersion="1.1.1";this.a={};this.a.v1_1_0=Qh;this.a.v1_1_1=Rh;this.a.v1_1_1_WMSC=Sh;this.a.v1_3_0=Th;Nh.call(this,a)}B(Uh,Nh);function Vh(){this.z={"http://www.opengis.net/ows":{ServiceIdentification:function(a,b){b.serviceIdentification={};Y(this,a,b.serviceIdentification)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},Keywords:function(a,b){b.keywords={};Y(this,a,b.keywords)},Keyword:function(a,b){b[$(a)]=j},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={};Y(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={};Y(this,a,b.serviceContact)},IndividualName:function(a,b){b.individualName=$(a)},PositionName:function(a,b){b.positionName=$(a)},ContactInfo:function(a,b){b.contactInfo=
{};Y(this,a,b.contactInfo)},Phone:function(a,b){b.phone={};Y(this,a,b.phone)},Voice:function(a,b){b.voice=$(a)},Address:function(a,b){b.address={};Y(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={};Y(this,a,b.operationsMetadata)},Operation:function(a,b){var c=a.getAttribute("name");b[c]={};Y(this,a,b[c])},DCP:function(a,b){b.dcp={};Y(this,a,b.dcp)},HTTP:function(a,b){b.http={};Y(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")};Y(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")};Y(this,a,c);b.post.push(c)},
Parameter:function(a,b){b.parameters||(b.parameters={});var c=a.getAttribute("name");b.parameters[c]={};Y(this,a,b.parameters[c])},Constraint:function(a,b){b.constraints||(b.constraints={});var c=a.getAttribute("name");b.constraints[c]={};Y(this,a,b.constraints[c])},Value:function(a,b){b[$(a)]=j},OutputFormat:function(a,b){b.formats.push({value:$(a)});Y(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);Y(this,
a,c)},BoundingBox:function(a,b){this.z["http://www.opengis.net/ows"].WGS84BoundingBox.apply(this,[a,b])},LowerCorner:function(a,b){var c=$(a).replace(this.ya.Ic,""),c=c.replace(this.ya.Hc,","),c=c.split(this.ya.Gc);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=$(a).replace(this.ya.Ic,""),c=c.replace(this.ya.Hc,","),c=c.split(this.ya.Gc);b.right=c[0];b.top=c[1];b.bounds=new be(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)}}};Kh.call(this)}B(Vh,Kh);function Wh(){Vh.call(this);this.z["http://www.opengis.net/ows/1.1"]=this.z["http://www.opengis.net/ows"];Va(this.z["http://www.opengis.net/ows/1.1"],{AllowedValues:function(a,b){b.allowedValues={};Y(this,a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=j},DataType:function(a,b){b.dataType=$(a)},Range:function(a,b){b.range={};Y(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)}})}B(Wh,Vh);function Xh(){this.a="http://www.opengis.net/wtms/1.0";this.ic="serviceIdentification";this.z={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){Y(this,a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};Y(this,a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};Y(this,a,d);c.layers.push(d)},Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");Y(this,a,d);c.styles.push(d)},
Format:function(a,c){c.formats.push($(a))},TileMatrixSetLink:function(a,c){var d={};Y(this,a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};Y(this,a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=$(a)},TileMatrix:function(a,c){var d={supportedCRS:c.Se};Y(this,a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat($(a))},TopLeftCorner:function(a,c){var d=$(a).split(" "),e=Pe(c.supportedCRS).d,d=[parseFloat(d[0]),
parseFloat(d[1])],e=e.charAt(0);c.topLeftCorner="n"===e||"s"===e?new L(d[1],d[0]):new L(d[0],d[1])},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:[]};Y(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 Wh;this.z["http://www.opengis.net/ows/1.1"]=a.z["http://www.opengis.net/ows/1.1"];Kh.call(this)}B(Xh,Kh);Xh.prototype.ra=function(a){"string"==typeof a&&(a=Jh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Lh(this,a,b);return b};function Yh(a){a=a||{};a.defaultVersion="1.0.0";this.a={};this.a.v1_0_0=Xh;Nh.call(this,a)}B(Yh,Nh);/*
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 Zh(a,b){this.a=[];this.f=a;this.e=b||k}p=Zh.prototype;p.ja=l;p.Ea=l;p.Ka=0;p.Fc=l;p.Wc=l;p.Vc=0;p.fc=function(a,b){$h(this,a,b);this.Ka--;0==this.Ka&&this.ja&&ai(this)};function $h(a,b,c){a.ja=j;a.b=c;a.Ea=!b;ai(a)}function bi(a){if(a.ja){if(!a.Fc)throw new ci(a);a.Fc=l}}function di(a){return Ba(a.a,function(a){return ha(a[1])})}
function ai(a){a.c&&(a.ja&&di(a))&&(w.clearTimeout(a.c),delete a.c);a.d&&(a.d.Vc--,delete a.d);for(var b=a.b,c=l,d=l;a.a.length&&0==a.Ka;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Ea?g:f)try{var i=f.call(e||a.e,b);x(i)&&(a.Ea=a.Ea&&(i==b||i instanceof Error),a.b=b=i);b instanceof Zh&&(d=j,a.Ka++)}catch(n){b=n,a.Ea=j,di(a)||(c=j)}}a.b=b;d&&a.Ka&&(d=b,i=na(a.fc,a,j),f=na(a.fc,a,l),d.a.push([i,f,h]),d.ja&&ai(d),b.Wc=j);c&&(a.c=w.setTimeout(function(){throw b;},0))}
function ci(a){qa.call(this);this.a=a}B(ci,qa);ci.prototype.message="Deferred has already fired";ci.prototype.name="AlreadyCalledError";function ei(a,b){var c=b||{},d=c.document||document,e=Rb("SCRIPT"),f={Cc:e,vb:h},g=new Zh(fi,f),i=k,n=c.timeout!=k?c.timeout:5E3;0<n&&(i=window.setTimeout(function(){gi(e,j);var b=new hi(ii,"Timeout reached for loading script "+a);bi(g);$h(g,l,b)},n),f.vb=i);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)gi(e,c.dc||l,i),bi(g),$h(g,j,k)};e.onerror=function(){gi(e,j,i);var b=new hi(ji,"Error while loading script "+a);bi(g);$h(g,l,b)};Mb(e,
{type:"text/javascript",charset:"UTF-8",src:a});f=d.getElementsByTagName("HEAD");(!f||0==f.length?d.documentElement:f[0]).appendChild(e);return g}function fi(){if(this&&this.Cc){var a=this.Cc;a&&"SCRIPT"==a.tagName&&gi(a,j,this.vb)}}function gi(a,b,c){c!=k&&w.clearTimeout(c);a.onload=ba;a.onerror=ba;a.onreadystatechange=ba;b&&window.setTimeout(function(){Vb(a)},0)}var ji=0,ii=1;function hi(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);qa.call(this,c);this.code=a}B(hi,qa);function ki(a){this.b=new Uc(a);this.a="jsonp";this.vb=5E3}var li=0;function mi(a,b){w._callbacks_[a]&&(b?delete w._callbacks_[a]:w._callbacks_[a]=ba)};function ni(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){var c=[],d=b[2].charCodeAt(0),e;for(e=b[1].charCodeAt(0);e<=d;++e)c.push(a.replace(b[0],String.fromCharCode(e)));return oi(Aa(c,ni))}return function(b){return b===k?h:a.replace("{z}",b.m).replace("{x}",b.x).replace("{y}",b.y)}}function oi(a){return function(b,c,d){if(b!==k){var e=Gb(b.hash(),a.length);return a[e](b,c,d)}}}function pi(a,b){return function(c,d,e){return c===k?h:Fg(a,b,jg(d,c),og(d,c.m),e)}}
function qi(){}function ri(a,b){return function(c,d,e){return c===k?h:b(a(c,d,e),d,e)}};function si(a,b,c){ve.call(this,a);this.g=b;this.c=new Image;c!==k&&(this.c.crossOrigin=c);this.f={};this.d=k}B(si,ve);si.prototype.I=function(a){if(x(a)){var b=y(a);if(b in this.f)return this.f[b];a=Ta(this.f)?this.c:this.c.cloneNode(l);return this.f[b]=a}return this.c};si.prototype.b=m("g");si.prototype.h=function(){this.a=3;C(this.d,I);this.d=k;K(this,"change")};si.prototype.o=function(){this.a=2;C(this.d,I);this.d=k;K(this,"change")};function ti(a){mh.call(this);this.d=x(a)?a:512}B(ti,mh);ti.prototype.Ca=function(a){for(var b,c;this.$()>this.d&&!(b=this.a.Z,c=b.V.m.toString(),c in a&&a[c].contains(b.V));)oh(this)};function ui(a){qg.call(this,{attributions:a.attributions,extent:a.extent,opaque:a.opaque,projection:a.projection,tileGrid:a.tileGrid});this.da=x(a.da)?a.da:qi;this.F=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new ti}B(ui,qg);ui.prototype.f=function(){return this.a.$()>this.a.d};ui.prototype.Ca=function(a){this.a.Ca(a)};ui.prototype.b=function(a,b,c){var d=a.toString();if(kh(this.a,d))return nh(this.a,d);b=this.da(a,b,c);x(b)?(a=new si(a,b,this.F),ph(this.a,d,a)):a=k;return a};
ui.prototype.p=function(a){a=a.toString();kh(this.a,a)&&nh(this.a,a)};function vi(a){var b=Array(a.maxZoom+1),c,d=2*ag/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);ig.call(this,{origin:new L(-ag,ag),resolutions:b,tileSize:new Zd(256,256)})}B(vi,ig);vi.prototype.b=function(a,b,c){for(var d=a.x,e=a.y,a=a.m,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new te(d,e,d,e);if(b.call(c,a,f))break}};function wi(a){ui.call(this,{opaque:j,projection:Pe("EPSG:3857")});this.Zc=x(a.culture)?a.culture:"en-us";this.g=l;var b=new Uc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new ki(b),a={include:"ImageryProviders",key:a.key},c=na(this.t,this),a=a||k,d="_"+(li++).toString(36)+pa().toString(36);w._callbacks_||(w._callbacks_={});var e=b.b.S();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&hd(e,f,a[f]);c&&(w._callbacks_[d]=function(a){mi(d,j);c.apply(h,arguments)},hd(e,
b.a,"_callbacks_."+d));f=ei(e.toString(),{timeout:b.vb,dc:j});f.a.push([k,function(){mi(d,l)},h]);f.ja&&ai(f)}B(wi,ui);
wi.prototype.t=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new vi({maxZoom:d,tileSize:new Zd(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.da=ri(function(a){if(a.m<c||d<a.m)return k;var b=1<<a.m,e=-a.y-1;return 0>e||b<=e?k:new re(a.m,Gb(a.x,b),e)},oi(Aa(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.Zc);return function(a){return a===k?h:c.replace("{quadkey}",se(a))}})));var f=Fe(Pe("EPSG:4326"),this.o);this.e=
Aa(b.imageryProviders,function(a){var b=a.attribution,c={};C(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new be(a[1],a[0],a[3],a[2])).transform(f),g,i;for(g=b;g<=d;++g)i=g.toString(),b=kg(e,a,e.a[g]),i in c?c[i].push(b):c[i]=[b]});return new ue(b,c)});this.g=j;K(this,"load")};wi.prototype.c=m("g");function xi(a,b){ve.call(this,a);this.a=2;this.f=a;this.d=og(b,a.m);this.c={}}B(xi,ve);xi.prototype.I=function(a){a=x(a)?y(a):-1;if(a in this.c)return this.c[a];var b=this.d,c=Rb("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.f.toString(),b.width/2,b.height/2);return this.c[a]=c};
function yi(a){qg.call(this,{extent:a.extent,opaque:l,projection:a.projection,tileGrid:a.tileGrid});this.a=new ti}B(yi,qg);yi.prototype.f=function(){return this.a.$()>this.a.d};yi.prototype.Ca=function(a){this.a.Ca(a)};yi.prototype.b=function(a){var b=a.toString();if(kh(this.a,b))return nh(this.a,b);a=new xi(a,this.tileGrid);ph(this.a,b,a);return a};function zi(a){var b=a.projection||Pe("EPSG:3857"),c=qi;x(a.da)?c=a.da:x(a.urls)?c=oi(Aa(a.urls,ni)):x(a.url)&&(c=ni(a.url));var d=new vi({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?ri(function(b){if(a.maxZoom<b.m)return k;var c=1<<b.m,i=-b.y-1;if(0>i||c<=i)return k;c=Gb(b.x,c);return!ae(jg(d,new re(b.m,c,b.y)),e)?k:new re(b.m,c,i)},c):ri(function(b){if(a.maxZoom<b.m)return k;var c=1<<b.m,d=-b.y-1;return 0>d||c<=d?k:new re(b.m,Gb(b.x,c),d)},c);ui.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
extent:a.extent,projection:b,tileGrid:d,da:c})}B(zi,ui);function Ai(){zi.call(this,{attributions:[new ue('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 ue('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:j,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(Ai,zi);
function Bi(){zi.call(this,{attributions:[new ue('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 ue("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,opaque:j,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(Bi,zi);function Ci(){zi.call(this,{attributions:[new ue('&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:j,maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(Ci,zi);function Di(a){Ig.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,Ga:x(a.url)?Gg(a.url,a.params):Hg});this.b=k;this.f=1.5}B(Di,Ig);
Di.prototype.I=function(a,b,c){this.a===k||(b=this.a[nf(this.a,b)]);var d=this.b,e;if(e=d!==k)if(e=d.e==b)e=d.H(),e=e.i<=a.i&&a.l<=e.l&&e.j<=a.j&&a.k<=e.k;if(e)return d;var d=a=new be(a.i,a.j,a.l,a.k),f=this.f;e=d.ea()/2*(f-1);f=d.aa()/2*(f-1);d.i-=e;d.j-=f;d.l+=e;d.k+=f;return this.b=Jg(this,a,b,new Zd(a.ea()/b,a.aa()/b),c)};var Ei={terrain:{T:"jpg",opaque:j},"terrain-background":{T:"jpg",opaque:j},"terrain-labels":{T:"png",opaque:l},"terrain-lines":{T:"png",opaque:l},"toner-background":{T:"png",opaque:j},toner:{T:"png",opaque:j},"toner-hybrid":{T:"png",opaque:l},"toner-labels":{T:"png",opaque:l},"toner-lines":{T:"png",opaque:l},"toner-lite":{T:"png",opaque:j},watercolor:{T:"jpg",opaque:j}},Fi={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}};
function Gi(a){var b=new ue('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'),c=a.layer.indexOf("-"),c=-1==c?a.layer:a.layer.slice(0,c),d=Ei[a.layer];zi.call(this,{attributions:[b],maxZoom:Fi[c].maxZoom,opaque:d.opaque,url:x(a.url)?a.url:"http://{a-d}.tile.stamen.com/"+a.layer+
"/{z}/{x}/{y}."+d.T})}B(Gi,zi);function Hi(a){var b=a.imageExtent,c=a.imageSize,d=b.aa()/c.height,e=x(a.projection)?a.projection:k,f=a.url;Ig.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Ga:function(){return f},resolutions:[d]});this.b=Jg(this,b,d,c,e)}B(Hi,Ig);Hi.prototype.I=function(a){return ae(a,this.b.H())?this.b:k};var Ii=[];A("grid",function(a){Ii.push(a)});function Ji(a){ui.call(this,{projection:Pe("EPSG:3857")});this.g=l;a=this.t=ei(a.uri,{dc:j});a.a.push([this.w,k,this]);a.ja&&ai(a)}B(Ji,ui);
Ji.prototype.w=function(){var a=Ii.pop(),b=Pe("EPSG:4326"),c,d;x(a.bounds)?(c=a.bounds,c=new be(c[0],c[1],c[2],c[3]),this.h=d=c.transform(Fe(b,this.o))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new vi({maxZoom:f});this.tileGrid=g;this.da=ri(function(a){if(a.m<e||f<a.m)return k;var b=1<<a.m,c=-a.y-1;if(0>c||b<=c)return k;b=Gb(a.x,b);return d!==k&&!ae(jg(g,new re(a.m,b,a.y)),d)?k:new re(a.m,b,c)},oi(Aa(a.tiles,ni)));if(x(a.attribution)){b=d===k?b.H():d;c={};var i,n;for(i=e;i<=f;++i)n=i.toString(),
c[n]=[kg(g,b,g.a[i])];this.e=[new ue(a.attribution,c)]}this.g=j;K(this,"load")};Ji.prototype.c=m("g");function Ki(a){var b;a.urls?(b=Aa(a.urls,function(b){return pi(b,a.params)}),b=oi(b)):b=a.url?pi(a.url,a.params):qi;var c=a.extent;ui.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c,tileGrid:a.tileGrid,opaque:!(x(a.params.TRANSPARENT)?a.params.TRANSPARENT:1),projection:a.projection,da:ri(function(a,b,f){if(b.Fb().length<=a.m)return k;var g=a.x,i=jg(b,a),f=f.H();c=x(c)?c:f;c.i===f.i&&c.l===f.l&&(i=Math.ceil((c.l-c.i)/(i.l-i.i)),g=Gb(g,i),i=jg(b,new re(a.m,g,a.y)));return!ae(i,
c)?k:new re(a.m,g,a.y)},b)})}B(Ki,ui);A("goog.require",ba);function Li(a){T.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}B(Li,T);A("ol.AnchoredElement",Li);A("ol.AnchoredElementPositioning",Dh);Dh.BOTTOM_LEFT="bottom-left";Dh.BOTTOM_RIGHT="bottom-right";Dh.TOP_LEFT="top-left";Dh.TOP_RIGHT="top-right";A("ol.Attribution",ue);A("ol.Collection",N);N.prototype.clear=N.prototype.clear;N.prototype.forEach=N.prototype.forEach;N.prototype.getAt=N.prototype.bd;N.prototype.getLength=N.prototype.Za;
N.prototype.insertAt=N.prototype.fb;N.prototype.pop=N.prototype.wc;N.prototype.push=N.prototype.push;N.prototype.remove=N.prototype.remove;N.prototype.removeAt=N.prototype.Rb;N.prototype.setAt=N.prototype.$d;A("ol.Coordinate",L);L.toStringHDMS=function(a){return x(a)?Rc(a.y,"NS")+" "+Rc(a.x,"EW"):""};A("ol.Extent",be);be.prototype.getHeight=be.prototype.aa;be.prototype.getWidth=be.prototype.ea;A("ol.Geolocation",X);
function Mi(a){S.call(this,{controls:a.controls,interactions:a.interactions,layers:a.layers,renderer:a.renderer,renderers:a.renderers,target:a.target,view:a.view})}B(Mi,S);A("ol.Map",Mi);S.prototype.addPreRenderFunction=S.prototype.c;S.prototype.addPreRenderFunctions=S.prototype.Ab;S.prototype.getInteractions=S.prototype.Mc;S.prototype.getRenderer=S.prototype.Oc;Ve.prototype.getCoordinate=Ve.prototype.d;A("ol.Object",M);M.prototype.bindTo=M.prototype.Uc;M.prototype.changed=M.prototype.Xc;
M.prototype.get=M.prototype.s;M.prototype.notify=M.prototype.vc;M.prototype.set=M.prototype.q;M.prototype.setOptions=M.prototype.Ec;M.prototype.setValues=M.prototype.nb;M.prototype.unbind=M.prototype.Wb;M.prototype.unbindAll=M.prototype.je;A("ol.Projection",O);O.prototype.getAxisOrientation=O.prototype.g;O.prototype.getCode=O.prototype.h;O.prototype.getExtent=O.prototype.H;O.prototype.getPointResolution=O.prototype.b;O.prototype.getUnits=O.prototype.o;A("ol.ProjectionUnits",De);De.DEGREES="degrees";
De.METERS="m";A("ol.RendererHint",zh);zh.CANVAS="canvas";zh.DOM="dom";zh.WEBGL="webgl";A("ol.RendererHints",yh);yh.createFromQueryData=yh.Yc;function Ni(a){Q.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})}B(Ni,Q);A("ol.View2D",Ni);Q.prototype.fitExtent=Q.prototype.f;Q.prototype.getView2D=Q.prototype.g;A("ol.animation",qf);
qf.bounce=qf.Cb;qf.pan=qf.pa;qf.rotate=qf.rotate;qf.zoom=qf.zoom;function Oi(a){xf.call(this,{map:a.map,target:a.target})}B(Oi,xf);A("ol.control.Attribution",Oi);xf.prototype.setMap=xf.prototype.a;function Pi(a){Gh.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}B(Pi,Gh);A("ol.control.MousePosition",Pi);Gh.prototype.setMap=Gh.prototype.a;
function Qi(a){zf.call(this,{map:a.map,minWidth:a.minWidth,target:a.target,units:a.units})}B(Qi,zf);A("ol.control.ScaleLine",Qi);zf.prototype.setMap=zf.prototype.a;A("ol.control.ScaleLineUnits",yf);yf.DEGREES="degrees";yf.IMPERIAL="imperial";yf.METRIC="metric";yf.NAUTICAL="nautical";yf.US="us";function Ri(a){Bf.call(this,{delta:a.delta,map:a.map,target:a.target})}B(Ri,Bf);A("ol.control.Zoom",Ri);Bf.prototype.setMap=Bf.prototype.a;A("ol.control.defaults",Cf);A("ol.easing",pf);pf.bounce=pf.Cb;
pf.elastic=pf.$c;pf.linear=pf.rc;pf.upAndDown=pf.Jc;A("ol.interaction.Keyboard",Ih);Ih.prototype.addCallback=Ih.prototype.b;A("ol.interaction.defaults",Yf);function Si(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})}B(Si,Kg);A("ol.layer.ImageLayer",Si);
function Ti(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})}B(Ti,Lg);A("ol.layer.TileLayer",Ti);A("ol.parser.ogc.WMSCapabilities",Uh);Uh.prototype.read=Uh.prototype.ra;A("ol.parser.ogc.WMTSCapabilities",Yh);Yh.prototype.read=Yh.prototype.ra;A("ol.projection.addProjection",Le);A("ol.projection.getFromCode",Pe);A("ol.projection.getTransform",Fe);A("ol.projection.getTransformFromCodes",Re);
A("ol.projection.transform",function(a,b,c){b=Fe(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});A("ol.projection.transformWithCodes",function(a,b,c){b=Re(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});Pg.prototype.getCanvas=Pg.prototype.Xa;A("ol.source.BingMaps",wi);function Ui(a){yi.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}B(Ui,yi);A("ol.source.DebugTileSource",Ui);A("ol.source.MapQuestOSM",Ai);A("ol.source.MapQuestOpenAerial",Bi);
A("ol.source.OpenStreetMap",Ci);A("ol.source.SingleImageWMS",Di);A("ol.source.Stamen",Gi);A("ol.source.StaticImage",Hi);A("ol.source.TileJSON",Ji);A("ol.source.TiledWMS",Ki);function Vi(a){ig.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}B(Vi,ig);A("ol.tilegrid.TileGrid",Vi);function Wi(a){vi.call(this,{maxZoom:a.maxZoom})}B(Wi,vi);A("ol.tilegrid.XYZ",Wi);qf.oe={};qf.Fe={};qf.Ge={};qf.Pe={};})();