Files
openlayers/master/build/ol.js
Éric Lemoine 5d14b9e2d4 Updated
2013-02-20 10:38:25 +01:00

200 lines
115 KiB
JavaScript

(function(){var h=void 0,j=!0,k=null,p=!1;function q(a){return function(){return this[a]}}var s,w=this;function aa(){}function ba(a){a.Sa=function(){return a.qc?a.qc:a.qc=new a}}
function ca(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function x(a){return a!==h}function da(a){return"array"==ca(a)}function ea(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ga(a){return"string"==typeof a}function ha(a){return"function"==ca(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.s=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(!sa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ta,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(ua,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(va,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(wa,"&quot;"));return a}var ta=/&/g,ua=/</g,va=/>/g,wa=/\"/g,sa=/[&<>\"]/;var xa=Array.prototype,ya=xa.indexOf?function(a,b,c){return xa.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},D=xa.forEach?function(a,b,c){xa.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)},za=xa.map?function(a,b,c){return xa.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},Aa=xa.some?function(a,b,c){return xa.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 p};function Ba(a){if(!da(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Ca(a,b){var c=ya(a,b),d;(d=0<=c)&&xa.splice.call(a,c,1);return d}function Da(a){return xa.concat.apply(xa,arguments)}
function Ea(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 Ma(a,b,c,d){xa.splice.apply(a,Na(arguments,1))}function Na(a,b,c){return 2>=arguments.length?xa.slice.call(a,b):xa.slice.call(a,b,c)}function Oa(a){xa.sort.call(a,Pa)}function Pa(a,b){return a>b?1:a<b?-1:0};var Qa,Ra,Sa,Ta,Ua,Va,Wa;function Xa(){return w.navigator?w.navigator.userAgent:k}function Ya(){return w.navigator}Ta=Sa=Ra=Qa=p;var Za;if(Za=Xa()){var $a=Ya();Qa=0==Za.indexOf("Opera");Ra=!Qa&&-1!=Za.indexOf("MSIE");Sa=!Qa&&-1!=Za.indexOf("WebKit");Ta=!Qa&&!Sa&&"Gecko"==$a.product}var ab=Qa,E=Ra,bb=Ta,F=Sa,cb,db=Ya();cb=db&&db.platform||"";Ua=-1!=cb.indexOf("Mac");Va=-1!=cb.indexOf("Win");Wa=-1!=cb.indexOf("Linux");var eb=!!Ya()&&-1!=(Ya().appVersion||"").indexOf("X11"),fb;
a:{var gb="",hb;if(ab&&w.opera)var ib=w.opera.version,gb="function"==typeof ib?ib():ib;else if(bb?hb=/rv\:([^\);]+)(\)|;)/:E?hb=/MSIE\s+([^\);]+)(\)|;)/:F&&(hb=/WebKit\/(\S+)/),hb)var jb=hb.exec(Xa()),gb=jb?jb[1]:"";if(E){var kb,lb=w.document;kb=lb?lb.documentMode:h;if(kb>parseFloat(gb)){fb=String(kb);break a}}fb=gb}var mb={};
function nb(a){var b;if(!(b=mb[a])){b=0;for(var c=String(fb).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]||"",r=RegExp("(\\d*)(\\D*)","g"),n=RegExp("(\\d*)(\\D*)","g");do{var l=r.exec(g)||["","",""],m=n.exec(i)||["","",""];if(0==l[0].length&&0==m[0].length)break;b=((0==l[1].length?0:parseInt(l[1],10))<(0==m[1].length?0:parseInt(m[1],10))?-1:(0==l[1].length?0:parseInt(l[1],
10))>(0==m[1].length?0:parseInt(m[1],10))?1:0)||((0==l[2].length)<(0==m[2].length)?-1:(0==l[2].length)>(0==m[2].length)?1:0)||(l[2]<m[2]?-1:l[2]>m[2]?1:0)}while(0==b)}b=mb[a]=0<=b}return b}var ob={};function pb(a){return ob[a]||(ob[a]=E&&!!document.documentMode&&document.documentMode>=a)};var qb,rb=!E||pb(9);!bb&&!E||E&&pb(9)||bb&&nb("1.9.1");E&&nb("9");function sb(a,b){var c;c=a.className;c=ga(c)&&c.match(/\S+/g)||[];for(var d=Na(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=ya(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function tb(a,b,c){return Math.min(Math.max(a,b),c)}function ub(a,b){var c=a%b;return 0>c*b?c+b:c};function vb(a,b){this.x=x(a)?a:0;this.y=x(b)?b:0}vb.prototype.O=function(){return new vb(this.x,this.y)};function wb(a,b){this.width=a;this.height=b}s=wb.prototype;s.O=function(){return new wb(this.width,this.height)};s.Fa=function(){return!(this.width*this.height)};s.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};s.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};s.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function xb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function yb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function zb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Ab(a){for(var b in a)return p;return j}var Bb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function Cb(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<Bb.length;f++)c=Bb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Db(a){return a?new Eb(Fb(a)):qb||(qb=new Eb)}function Gb(a,b){xb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Hb?a.setAttribute(Hb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Hb={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 Ib(a){a=a.document.documentElement;return new wb(a.clientWidth,a.clientHeight)}function Jb(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!rb&&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={};Cb(i,g);delete i.type;g=i}f.push(">");f=f.join("")}f=e.createElement(f);g&&(ga(g)?f.className=g:da(g)?sb.apply(k,[f].concat(g)):Gb(f,g));2<d.length&&Kb(e,f,d,2);return f}
function Kb(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(ea(f)&&!(ia(f)&&0<f.nodeType)){var g=D,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=p}g(i?Ea(f):f,e)}else e(f)}}function Lb(a){return document.createElement(a)}function Mb(a,b){Kb(Fb(a),a,arguments,1)}function Nb(a){for(var b;b=a.firstChild;)a.removeChild(b)}
function Ob(a,b){a.insertBefore(b,a.childNodes[0]||k)}function Pb(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Fb(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Eb(a){this.a=a||w.document||document}Eb.prototype.createElement=function(a){return this.a.createElement(a)};Eb.prototype.createTextNode=function(a){return this.a.createTextNode(a)};
function Qb(a){var b=a.a,a=!F?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new vb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Eb.prototype.appendChild=function(a,b){a.appendChild(b)};Eb.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 Rb=!E||pb(9),Sb=!E||pb(9),Tb=E&&!nb("9");!F||nb("528");bb&&nb("1.9b")||E&&nb("8")||ab&&nb("9.5")||F&&nb("528");bb&&!nb("8")||E&&nb("9");function G(){0!=Ub&&(this.Me=Error().stack,Vb[y(this)]=this)}var Ub=0,Vb={};G.prototype.Ac=p;G.prototype.Ab=function(){if(!this.Ac&&(this.Ac=j,this.p(),0!=Ub)){var a=y(this);delete Vb[a]}};function Wb(a,b){a.na||(a.na=[]);a.na.push(b)}G.prototype.p=function(){this.na&&Xb.apply(k,this.na);if(this.Fc)for(;this.Fc.length;)this.Fc.shift()()};function Yb(a){a&&"function"==typeof a.Ab&&a.Ab()}function Xb(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ea(d)?Xb.apply(k,d):Yb(d)}};function Zb(a,b){this.type=a;this.c=this.target=b}s=Zb.prototype;s.Ab=function(){};s.ia=p;s.Va=p;s.ob=j;s.Eb=function(){this.ia=j};s.w=function(){this.Va=j;this.ob=p};function $b(a){a.Eb()};function ac(a){ac[" "](a);return a}ac[" "]=aa;function bc(a,b){a&&cc(this,a,b)}B(bc,Zb);var dc=[1,4,2];s=bc.prototype;s.target=k;s.xd=k;s.vd=0;s.wd=0;s.clientX=0;s.clientY=0;s.yd=0;s.zd=0;s.td=0;s.ma=0;s.Ta=0;s.Ua=p;s.X=p;s.ha=p;s.ud=p;s.lb=p;s.H=k;
function cc(a,b,c){var d=a.type=b.type;Zb.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(bb){var e;a:{try{ac(c.nodeName);e=j;break a}catch(f){}e=p}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.xd=c;a.vd=F||b.offsetX!==h?b.offsetX:b.layerX;a.wd=F||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.yd=b.screenX||0;a.zd=b.screenY||0;a.td=b.button;a.ma=b.keyCode||0;a.Ta=b.charCode||
("keypress"==d?b.keyCode:0);a.Ua=b.ctrlKey;a.X=b.altKey;a.ha=b.shiftKey;a.ud=b.metaKey;a.lb=Ua?b.metaKey:b.ctrlKey;a.a=b.state;a.H=b;b.defaultPrevented&&a.w();delete a.ia}function ec(a){return(Rb?0==a.H.button:"click"==a.type?j:!!(a.H.button&dc[0]))&&!(F&&Ua&&a.Ua)}s.Eb=function(){bc.s.Eb.call(this);this.H.stopPropagation?this.H.stopPropagation():this.H.cancelBubble=j};
s.w=function(){bc.s.w.call(this);var a=this.H;if(a.preventDefault)a.preventDefault();else if(a.returnValue=p,Tb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};s.od=q("H");function fc(){}var gc=0;fc.prototype.key=0;fc.prototype.ra=p;fc.prototype.a=p;fc.prototype.handleEvent=function(a){return this.b?this.Ga.call(this.Mb||this.src,a):this.Ga.handleEvent.call(this.Ga,a)};var hc={},ic={},jc={},kc={};
function H(a,b,c,d,e){if(b){if(da(b)){for(var f=0;f<b.length;f++)H(a,b[f],c,d,e);return k}var d=!!d,g=ic;b in g||(g[b]={l:0,M:0});g=g[b];d in g||(g[d]={l:0,M:0},g.l++);var g=g[d],i=y(a),r;g.M++;if(g[i]){r=g[i];for(f=0;f<r.length;f++)if(g=r[f],g.Ga==c&&g.Mb==e){if(g.ra)break;return r[f].key}}else r=g[i]=[],g.l++;var n=lc,l=Sb?function(a){return n.call(l.src,l.key,a)}:function(a){a=n.call(l.src,l.key,a);if(!a)return a},f=l;f.src=a;var m=g=new fc;if(ha(c))m.b=j;else if(c&&c.handleEvent&&ha(c.handleEvent))m.b=
p;else throw Error("Invalid listener argument");m.Ga=c;m.c=f;m.src=a;m.type=b;m.capture=!!d;m.Mb=e;m.a=p;m.key=++gc;m.ra=p;c=g.key;f.key=c;r.push(g);hc[c]=g;jc[i]||(jc[i]=[]);jc[i].push(g);a.addEventListener?(a==w||!a.fc)&&a.addEventListener(b,f,d):a.attachEvent(b in kc?kc[b]:kc[b]="on"+b,f);return c}throw Error("Invalid event type");}function mc(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)mc(a,b[f],c,d,e);return k}a=H(a,b,c,d,e);hc[a].a=j;return a}
function nc(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)nc(a,b[f],c,d,e);else{d=!!d;a:{f=ic;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].Ga==c&&a[f].capture==d&&a[f].Mb==e){I(a[f].key);break}}}
function I(a){if(!hc[a])return p;var b=hc[a];if(b.ra)return p;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==w||!c.fc)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in kc?kc[d]:kc[d]="on"+d,e);c=y(c);jc[c]&&(e=jc[c],Ca(e,b),0==e.length&&delete jc[c]);b.ra=j;if(b=ic[d][f][c])b.uc=j,oc(d,f,c,b);delete hc[a];return j}
function oc(a,b,c,d){if(!d.gb&&d.uc){for(var e=0,f=0;e<d.length;e++)d[e].ra?d[e].c.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.uc=p;0==f&&(delete ic[a][b][c],ic[a][b].l--,0==ic[a][b].l&&(delete ic[a][b],ic[a].l--),0==ic[a].l&&delete ic[a])}}function pc(a,b,c,d,e){var f=1,b=y(b);if(a[b]){a.M--;a=a[b];a.gb?a.gb++:a.gb=1;try{for(var g=a.length,i=0;i<g;i++){var r=a[i];r&&!r.ra&&(f&=qc(r,e)!==p)}}finally{a.gb--,oc(c,d,b,a)}}return Boolean(f)}function qc(a,b){a.a&&I(a.key);return a.handleEvent(b)}
function J(a,b){var c=b.type||b,d=ic;if(!(c in d))return j;if(ga(b))b=new Zb(b,a);else if(b instanceof Zb)b.target=b.target||a;else{var e=b,b=new Zb(c,a);Cb(b,e)}var e=1,f,d=d[c],c=j in d,g;if(c){f=[];for(g=a;g;g=g.Rb)f.push(g);g=d[j];g.M=g.l;for(var i=f.length-1;!b.ia&&0<=i&&g.M;i--)b.c=f[i],e&=pc(g,f[i],b.type,j,b)&&b.ob!=p}if(p in d)if(g=d[p],g.M=g.l,c)for(i=0;!b.ia&&i<f.length&&g.M;i++)b.c=f[i],e&=pc(g,f[i],b.type,p,b)&&b.ob!=p;else for(d=a;!b.ia&&d&&g.M;d=d.Rb)b.c=d,e&=pc(g,d,b.type,p,b)&&b.ob!=
p;return Boolean(e)}
function lc(a,b){if(!hc[a])return j;var c=hc[a],d=c.type,e=ic;if(!(d in e))return j;var e=e[d],f,g;if(!Sb){var i;if(!(i=b))a:{i=["window","event"];for(var r=w;f=i.shift();)if(r[f]!=k)r=r[f];else{i=k;break a}i=r}f=i;i=j in e;r=p in e;if(i){if(0>f.keyCode||f.returnValue!=h)return j;a:{var n=p;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(l){n=j}if(n||f.returnValue==h)f.returnValue=j}}n=new bc;cc(n,f,this);f=j;try{if(i){for(var m=[],t=n.c;t;t=t.parentNode)m.push(t);g=e[j];g.M=g.l;for(var u=m.length-
1;!n.ia&&0<=u&&g.M;u--)n.c=m[u],f&=pc(g,m[u],d,j,n);if(r){g=e[p];g.M=g.l;for(u=0;!n.ia&&u<m.length&&g.M;u++)n.c=m[u],f&=pc(g,m[u],d,p,n)}}else f=qc(c,n)}finally{m&&(m.length=0)}return f}d=new bc(b,this);return f=qc(c,d)};function rc(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}rc.prototype.O=function(){return new rc(this.top,this.right,this.bottom,this.left)};rc.prototype.contains=function(a){return!this||!a?p:a instanceof rc?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 sc(a,b){var c=Fb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function tc(a,b){return a.currentStyle?a.currentStyle[b]:k}function uc(a,b){return sc(a,b)||tc(a,b)||a.style&&a.style[b]}function vc(a,b){var c,d,e=bb&&(Ua||eb)&&nb("1.9");b instanceof vb?(c=b.x,d=b.y):(c=b,d=h);a.style.left=wc(c,e);a.style.top=wc(d,e)}
function xc(a){var b=a.getBoundingClientRect();E&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function yc(a){if(E&&!pb(8))return a.offsetParent;for(var b=Fb(a),c=uc(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=uc(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 zc(a,b){var c=Ac(a),d=Ac(b);return new vb(c.x-d.x,c.y-d.y)}
function Ac(a){var b=new vb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=xc(a);b.x=c.left;b.y=c.top}else{c=Qb(Db(a));var d,e=Fb(a),f=uc(a,"position"),g=bb&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),i=new vb(0,0),r;d=e?Fb(e):document;if(r=E)if(r=!pb(9))Db(d),r=p;r=r?d.body:d.documentElement;if(a!=r)if(a.getBoundingClientRect)d=xc(a),e=Qb(Db(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(r),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(F&&"fixed"==uc(g,"position")){i.x+=e.body.scrollLeft;i.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(ab||F&&"absolute"==f)i.y-=e.body.offsetTop;for(g=a;(g=yc(g))&&g!=e.body&&g!=r;)if(i.x-=g.scrollLeft,!ab||"TR"!=g.tagName)i.y-=g.scrollTop}b.x=i.x-c.x;b.y=i.y-c.y}if(bb&&!nb(12)){var n;E?n="-ms-transform":F?n="-webkit-transform":
ab?n="-o-transform":bb&&(n="-moz-transform");var l;n&&(l=uc(a,n));l||(l=uc(a,"transform"));l?(a=l.match(Bc),a=!a?new vb(0,0):new vb(parseFloat(a[1]),parseFloat(a[2]))):a=new vb(0,0);b=new vb(b.x+a.x,b.y+a.y)}}else n=ha(a.od),l=a,a.targetTouches?l=a.targetTouches[0]:n&&a.H.targetTouches&&(l=a.H.targetTouches[0]),b.x=l.clientX,b.y=l.clientY;return b}function wc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Cc(a,b){a.style.display=b?"":"none"}
function Dc(a,b){Db(Fb(a));if(E&&!nb("8")){var c=a.style,d;if(E){d=Ec(a,tc(a,"paddingLeft"));var e=Ec(a,tc(a,"paddingRight")),f=Ec(a,tc(a,"paddingTop")),g=Ec(a,tc(a,"paddingBottom"));d=new rc(f,e,g,d)}else d=sc(a,"paddingLeft"),e=sc(a,"paddingRight"),f=sc(a,"paddingTop"),g=sc(a,"paddingBottom"),d=new rc(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(E)var e=Fc(a,"borderLeft"),f=Fc(a,"borderRight"),g=Fc(a,"borderTop"),i=Fc(a,"borderBottom"),e=new rc(g,f,i,e);else e=sc(a,"borderLeftWidth"),
f=sc(a,"borderRightWidth"),g=sc(a,"borderTopWidth"),i=sc(a,"borderBottomWidth"),e=new rc(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,bb?c.MozBoxSizing="border-box":F?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 Ec(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 Gc={thin:2,medium:4,thick:6};function Fc(a,b){if("none"==tc(a,b+"Style"))return 0;var c=tc(a,b+"Width");return c in Gc?Gc[c]:Ec(a,c)}var Bc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Hc(a,b){this.x=a;this.y=b}B(Hc,vb);Hc.prototype.O=function(){return new Hc(this.x,this.y)};Hc.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Hc.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 K(a,b){Hc.call(this,a,b)}B(K,Hc);function Ic(a,b){var c=ub(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};function Jc(a){if("function"==typeof a.K)return a.K();if(ga(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return yb(a)};function Kc(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Kc?(c=a.V(),d=a.K()):(c=zb(a),d=yb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}s=Kc.prototype;s.l=0;s.$b=0;s.U=q("l");s.K=function(){Lc(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};s.V=function(){Lc(this);return this.a.concat()};s.Fa=function(){return 0==this.l};
s.clear=function(){this.b={};this.$b=this.l=this.a.length=0};s.remove=function(a){return Mc(this.b,a)?(delete this.b[a],this.l--,this.$b++,this.a.length>2*this.l&&Lc(this),j):p};function Lc(a){if(a.l!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Mc(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.l!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],Mc(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}s.get=function(a,b){return Mc(this.b,a)?this.b[a]:b};
s.set=function(a,b){Mc(this.b,a)||(this.l++,this.a.push(a),this.$b++);this.b[a]=b};s.O=function(){return new Kc(this)};function Mc(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Nc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Oc(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=h)}return a.join("")}function Pc(a,b,c){if(da(b))for(var d=0;d<b.length;d++)Pc(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}
function Qc(a,b,c){for(c=c||0;c<b.length;c+=2)Pc(b[c],b[c+1],a);return a}function Rc(a,b){for(var c in b)Pc(c,b[c],a);return a}function Sc(a,b){return Oc(2==arguments.length?Qc([a],arguments[1],0):Qc([a],arguments,1))};function Tc(a,b){var c;if(a instanceof Tc)this.ga=x(b)?b:a.ga,Uc(this,a.sa),c=a.ub,Vc(this),this.ub=c,c=a.xa,Vc(this),this.xa=c,Wc(this,a.mb),c=a.kb,Vc(this),this.kb=c,Xc(this,a.a.O()),c=a.Ra,Vc(this),this.Ra=c;else if(a&&(c=String(a).match(Nc))){this.ga=!!b;Uc(this,c[1]||"",j);var d=c[2]||"";Vc(this);this.ub=d?decodeURIComponent(d):"";d=c[3]||"";Vc(this);this.xa=d?decodeURIComponent(d):"";Wc(this,c[4]);d=c[5]||"";Vc(this);this.kb=d?decodeURIComponent(d):"";Xc(this,c[6]||"",j);c=c[7]||"";Vc(this);
this.Ra=c?decodeURIComponent(c):""}else this.ga=!!b,this.a=new Yc(k,0,this.ga)}s=Tc.prototype;s.sa="";s.ub="";s.xa="";s.mb=k;s.kb="";s.Ra="";s.Wd=p;s.ga=p;
s.toString=function(){var a=[],b=this.sa;b&&a.push(Zc(b,$c),":");if(b=this.xa){a.push("//");var c=this.ub;c&&a.push(Zc(c,$c),"@");a.push(encodeURIComponent(String(b)));b=this.mb;b!=k&&a.push(":",String(b))}if(b=this.kb)this.xa&&"/"!=b.charAt(0)&&a.push("/"),a.push(Zc(b,"/"==b.charAt(0)?ad:bd));(b=this.a.toString())&&a.push("?",b);(b=this.Ra)&&a.push("#",Zc(b,cd));return a.join("")};s.O=function(){return new Tc(this)};
function Uc(a,b,c){Vc(a);a.sa=c?b?decodeURIComponent(b):"":b;a.sa&&(a.sa=a.sa.replace(/:$/,""))}function Wc(a,b){Vc(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.mb=b}else a.mb=k}
function Xc(a,b,c){Vc(a);if(b instanceof Yc){a.a=b;b=a.a;if((a=a.ga)&&!b.b){gd(b);b.a=k;var d=b.t,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),hd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(ea(d)||ga(d))D(d,c,b);else{var e;if("function"==typeof d.V)e=d.V();else if("function"!=typeof d.K)if(ea(d)||ga(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=zb(d);else e=h;d=Jc(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=Zc(b,id)),a.a=
new Yc(b,0,a.ga)}function jd(a,b,c){Vc(a);da(c)||(c=[String(c)]);hd(a.a,b,c)}function Vc(a){if(a.Wd)throw Error("Tried to modify a read-only Uri");}function Zc(a,b){return ga(a)?encodeURI(a).replace(b,kd):k}function kd(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var $c=/[#\/\?@]/g,bd=/[\#\?:]/g,ad=/[\#\?]/g,id=/[\#\?@]/g,cd=/#/g;function Yc(a,b,c){this.a=a||k;this.b=!!c}
function gd(a){if(!a.t&&(a.t=new Kc,a.l=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=ld(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}s=Yc.prototype;s.t=k;s.l=k;s.U=function(){gd(this);return this.l};s.add=function(a,b){gd(this);this.a=k;var a=ld(this,a),c=this.t.get(a);c||this.t.set(a,c=[]);c.push(b);this.l++;return this};
s.remove=function(a){gd(this);a=ld(this,a);return Mc(this.t.b,a)?(this.a=k,this.l-=this.t.get(a).length,this.t.remove(a)):p};s.clear=function(){this.t=this.a=k;this.l=0};s.Fa=function(){gd(this);return 0==this.l};function md(a,b){gd(a);b=ld(a,b);return Mc(a.t.b,b)}s.V=function(){gd(this);for(var a=this.t.K(),b=this.t.V(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
s.K=function(a){gd(this);var b=[];if(a)md(this,a)&&(b=Da(b,this.t.get(ld(this,a))));else for(var a=this.t.K(),c=0;c<a.length;c++)b=Da(b,a[c]);return b};s.set=function(a,b){gd(this);this.a=k;a=ld(this,a);md(this,a)&&(this.l-=this.t.get(a).length);this.t.set(a,[b]);this.l++;return this};s.get=function(a,b){var c=a?this.K(a):[];return 0<c.length?String(c[0]):b};function hd(a,b,c){a.remove(b);0<c.length&&(a.a=k,a.t.set(ld(a,b),Ea(c)),a.l+=c.length)}
s.toString=function(){if(this.a)return this.a;if(!this.t)return"";for(var a=[],b=this.t.V(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.K(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("&")};s.O=function(){var a=new Yc;a.a=this.a;this.t&&(a.t=this.t.O());return a};function ld(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};function nd(){G.call(this)}B(nd,G);s=nd.prototype;s.fc=j;s.Rb=k;s.addEventListener=function(a,b,c,d){H(this,a,b,c,d)};s.removeEventListener=function(a,b,c,d){nc(this,a,b,c,d)};s.p=function(){nd.s.p.call(this);var a,b=0,c=a==k;a=!!a;if(this==k)xb(jc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)I(f.key),b++}});else{var d=y(this);if(jc[d])for(var d=jc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)I(f.key),b++}}this.Rb=k};function od(a){return function(){return a}}var pd=od(p),qd=od(j),rd=od(k);function sd(a,b,c){G.call(this);this.d=a;this.c=c;this.a=b||window;this.b=na(this.Db,this)}B(sd,G);s=sd.prototype;s.L=k;s.Zb=p;s.start=function(){td(this);this.Zb=p;var a=ud(this),b=vd(this);if(a&&!b&&this.a.mozRequestAnimationFrame)this.L=H(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(k),this.Zb=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.L=a}};
function td(a){if(a.L!=k){var b=ud(a),c=vd(a);b&&!c&&a.a.mozRequestAnimationFrame?I(a.L):b&&c?c.call(a.a,a.L):a.a.clearTimeout(a.L)}a.L=k}s.Db=function(){this.Zb&&this.L&&I(this.L);this.L=k;this.d.call(this.c,pa())};s.p=function(){td(this);sd.s.p.call(this)};function ud(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}
function vd(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function wd(a){G.call(this);this.ka=a||window;this.eb=H(this.ka,"resize",this.Od,p,this);this.ja=Ib(this.ka||window);if(F&&Va||ab&&this.ka.self!=this.ka.top)this.xb=window.setInterval(na(this.ac,this),xd)}B(wd,nd);var xd=500;s=wd.prototype;s.eb=k;s.ka=k;s.ja=k;s.xb=k;s.p=function(){wd.s.p.call(this);this.eb&&(I(this.eb),this.eb=k);this.xb&&(window.clearInterval(this.xb),this.xb=k);this.ja=this.ka=k};s.Od=function(){this.ac()};
s.ac=function(){var a=Ib(this.ka||window);if(!(a==this.ja||(!a||!this.ja?0:a.width==this.ja.width&&a.height==this.ja.height)))this.ja=a,J(this,"resize")};function yd(a,b,c,d,e){if(!E&&(!F||!nb("525")))return j;if(Ua&&e)return zd(a);if(e&&!d||!c&&(17==b||18==b)||E&&d&&b==a)return p;switch(a){case 13:return!(E&&pb(9));case 27:return!F}return zd(a)}function zd(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||F&&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 p}}
function Ad(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Bd(a,b){G.call(this);a&&(this.Za&&Cd(this),this.Aa=a,this.Ya=H(this.Aa,"keypress",this,b),this.Nb=H(this.Aa,"keydown",this.a,b,this),this.Za=H(this.Aa,"keyup",this.b,b,this))}B(Bd,nd);s=Bd.prototype;s.Aa=k;s.Ya=k;s.Nb=k;s.Za=k;s.ba=-1;s.aa=-1;s.yb=p;
var Dd={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},Ed={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},Fd=E||F&&nb("525"),Gd=Ua&&bb;
Bd.prototype.a=function(a){if(F&&(17==this.ba&&!a.Ua||18==this.ba&&!a.X))this.aa=this.ba=-1;Fd&&!yd(a.ma,this.ba,a.ha,a.Ua,a.X)?this.handleEvent(a):(this.aa=bb?Ad(a.ma):a.ma,Gd&&(this.yb=a.X))};Bd.prototype.b=function(a){this.aa=this.ba=-1;this.yb=a.X};
Bd.prototype.handleEvent=function(a){var b=a.H,c,d,e=b.altKey;E&&"keypress"==a.type?(c=this.aa,d=13!=c&&27!=c?b.keyCode:0):F&&"keypress"==a.type?(c=this.aa,d=0<=b.charCode&&63232>b.charCode&&zd(c)?b.charCode:0):ab?(c=this.aa,d=zd(c)?b.keyCode:0):(c=b.keyCode||this.aa,d=b.charCode||0,Gd&&(e=this.yb),Ua&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Dd?f=Dd[c]:25==c&&a.ha&&(f=9):g&&g in Ed&&(f=Ed[g]);a=f==this.ba;this.ba=f;b=new Hd(f,d,a,b);b.X=e;J(this,b)};
function Cd(a){a.Ya&&(I(a.Ya),I(a.Nb),I(a.Za),a.Ya=k,a.Nb=k,a.Za=k);a.Aa=k;a.ba=-1;a.aa=-1}Bd.prototype.p=function(){Bd.s.p.call(this);Cd(this)};function Hd(a,b,c,d){d&&cc(this,d,h);this.type="key";this.ma=a;this.Ta=b;this.b=c}B(Hd,bc);function Id(a){G.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"==uc(a,"direction");this.b=H(this.a,bb?"DOMMouseScroll":"mousewheel",this)}B(Id,nd);
Id.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.H;if("mousewheel"==a.type){c=1;if(E||F&&(Va||nb("532.0")))c=40;d=Jd(-a.wheelDelta,c);x(a.wheelDeltaX)?(b=Jd(-a.wheelDeltaX,c),c=Jd(-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=tb(b,-this.c,this.c));"number"==typeof this.d&&(c=tb(c,-this.d,this.d));this.e&&(b=-b);b=new Kd(d,a,b,c);J(this,b)};function Jd(a,b){return F&&(Ua||Wa)&&0!=a%b?a:a/b}
Id.prototype.p=function(){Id.s.p.call(this);I(this.b);delete this.b};function Kd(a,b,c,d){b&&cc(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Kd,bc);var Ld=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function L(a){G.call(this);x(a)&&this.hb(a)}B(L,nd);var Md={},Nd={},Od={};function Pd(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Qd(a){return a.ol_accessors_||(a.ol_accessors_={})}function Rd(a){return Md[a]||(Md[a]=a.toLowerCase()+"_changed")}function Sd(a){return a.ol_bindings_||(a.ol_bindings_={})}s=L.prototype;s.Sc=function(a,b,c,d){c=c||a;this.Yb(a);var e=Rd(c);Sd(this)[a]=H(b,e,function(){Td(this,a)},h,this);Qd(this)[a]={target:b,key:c};d||Td(this,a)};s.Xc=aa;
s.get=function(a){var b=Qd(this);if(a in b){var b=b[a],a=b.target,b=b.key,c=Nd[b]||(Nd[b]="get"+Pd(b));return a[c]?a[c]():a.get(b)}return this[a]};s.wc=function(a){var b=Qd(this);a in b?(a=b[a],a.target.wc(a.key)):Td(this,a)};function Td(a,b){var c=Rd(b);J(a,c);J(a,"changed")}s.set=function(a,b){var c=Qd(this);if(a in c){var d=c[a],c=d.target,d=d.key,e=Od[d]||(Od[d]="set"+Pd(d));if(c[e])c[e](b);else c.set(d,b)}else this[a]=b,Td(this,a)};
s.Ic=function(a){xb(a,function(a,c){var d=Od[c]||(Od[c]="set"+Pd(c));if(this[d])this[d](a);else this.set(c,a)},this)};s.hb=L.prototype.Ic;s.Yb=function(a){var b=Sd(this),c=b[a];c&&(delete b[a],I(c),b=this.get(a),delete Qd(this)[a],this[a]=b)};s.re=function(){var a=Sd(this);D(zb(a),function(a){this.Yb(a)},this)};function Ud(a,b,c,d,e){Zb.call(this,a,e);this.a=b;this.index=c;this.b=d}B(Ud,Zb);function M(a){L.call(this);this.a=a||[];Vd(this)}B(M,L);s=M.prototype;s.clear=function(){for(;this.length;)this.xc()};s.forEach=function(a,b){D(this.a,a,b)};s.md=q("a");s.nd=function(a){return this.a[a]};s.hc=function(){return this.get("length")};s.Xa=function(a,b){Ma(this.a,a,0,b);Vd(this);J(this,new Ud("add",b,h,h,this));J(this,new Ud("insert_at",b,a,h,this))};s.xc=function(){return this.Dc(this.hc()-1)};
s.push=function(a){var b=this.a.length;this.Xa(b,a);return b};s.Dc=function(a){var b=this.a[a];xa.splice.call(this.a,a,1);Vd(this);J(this,new Ud("remove",b,h,h,this));J(this,new Ud("remove_at",h,a,b,this));return b};s.ie=function(a,b){var c=this.length;if(a<c)c=this.a[a],this.a[a]=b,J(this,new Ud("set_at",b,a,c,this)),J(this,new Ud("remove",c,h,h,this)),J(this,new Ud("add",b,h,h,this));else{for(;c<a;++c)this.Xa(c,h);this.Xa(a,b)}};function Vd(a){a.set("length",a.a.length)};function Wd(){this.c=tb(255,0,255);this.b=tb(255,0,255);this.a=tb(255,0,255);this.d=tb(1,0,1)};function Xd(a,b){wb.call(this,a,b)}B(Xd,wb);function Yd(a,b,c,d){this.h=a;this.k=b;this.m=c;this.j=d}Yd.prototype.a=function(){return this.j-this.k};Yd.prototype.b=function(){return this.m-this.h};function Zd(a,b){return a.h<=b.m&&a.m>=b.h&&a.k<=b.j&&a.j>=b.k}Yd.prototype.toString=function(){return"("+[this.h,this.k,this.m,this.j].join(", ")+")"};function $d(a,b,c,d){Yd.call(this,a,b,c,d)}B($d,Yd);function ae(a){var b=arguments[0],b=new $d(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.h=Math.min(b.h,d.x);b.k=Math.min(b.k,d.y);b.m=Math.max(b.m,d.x);b.j=Math.max(b.j,d.y)}return b}function be(a){return new K(a.h,a.j)}$d.prototype.transform=function(a){var b=a(new K(this.h,this.k)),a=a(new K(this.m,this.j));return new $d(Math.min(b.x,a.x),Math.min(b.y,a.y),Math.max(b.x,a.x),Math.max(b.y,a.y))};function ce(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}ce.prototype.a=4;ce.prototype.set=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};ce.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(ce.BYTES_PER_ELEMENT=4,ce.prototype.BYTES_PER_ELEMENT=ce.prototype.a,ce.prototype.set=ce.prototype.set,ce.prototype.toString=ce.prototype.toString,A("Float32Array",ce));function de(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}de.prototype.a=8;de.prototype.set=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};de.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(de.BYTES_PER_ELEMENT=8,de.prototype.BYTES_PER_ELEMENT=de.prototype.a,de.prototype.set=de.prototype.set,de.prototype.toString=de.prototype.toString,A("Float64Array",de));function ee(){var a=Array(16);fe(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function ge(){var a=Array(16);fe(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function fe(a,b,c,d,e,f,g,i,r,n,l,m,t,u,v,C,z){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=i;a[7]=r;a[8]=n;a[9]=l;a[10]=m;a[11]=t;a[12]=u;a[13]=v;a[14]=C;a[15]=z}
function he(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 ie(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 je(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],i=a[4],r=a[5],n=a[6],l=a[7],m=a[8],t=a[9],u=a[10],v=a[11],C=a[12],z=a[13],N=a[14],a=a[15],S=b[0],P=b[1],Y=b[2],fa=b[3],Fa=b[4],Ga=b[5],Ha=b[6],Ia=b[7],Ja=b[8],Ka=b[9],La=b[10],U=b[11],dd=b[12],ed=b[13],fd=b[14],b=b[15];c[0]=d*S+i*P+m*Y+C*fa;c[1]=e*S+r*P+t*Y+z*fa;c[2]=f*S+n*P+u*Y+N*fa;c[3]=g*S+l*P+v*Y+a*fa;c[4]=d*Fa+i*Ga+m*Ha+C*Ia;c[5]=e*Fa+r*Ga+t*Ha+z*Ia;c[6]=f*Fa+n*Ga+u*Ha+N*Ia;c[7]=g*Fa+l*Ga+v*Ha+a*Ia;c[8]=d*Ja+i*Ka+m*La+C*U;c[9]=e*Ja+r*Ka+t*La+
z*U;c[10]=f*Ja+n*Ka+u*La+N*U;c[11]=g*Ja+l*Ka+v*La+a*U;c[12]=d*dd+i*ed+m*fd+C*b;c[13]=e*dd+r*ed+t*fd+z*b;c[14]=f*dd+n*ed+u*fd+N*b;c[15]=g*dd+l*ed+v*fd+a*b}function ke(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 le(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 me(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 ne(a,b,c){fe(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 oe(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],i=a[5],r=a[6],n=a[7],l=Math.cos(b),m=Math.sin(b);a[0]=c*l+g*m;a[1]=d*l+i*m;a[2]=e*l+r*m;a[3]=f*l+n*m;a[4]=c*-m+g*l;a[5]=d*-m+i*l;a[6]=e*-m+r*l;a[7]=f*-m+n*l}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function O(a,b,c){Hc.call(this,b,c);this.n=a}B(O,K);O.prototype.hash=function(){return(this.x<<this.n)+this.y};function pe(a){var b=Array(a.n),c=1<<a.n-1,d,e;for(d=0;d<a.n;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}O.prototype.toString=function(){return[this.n,this.x,this.y].join("/")};function qe(a){G.call(this);this.S=a;this.a=0}B(qe,nd);qe.prototype.c=function(){return y(this).toString()};function re(a){this.d=a;this.e=8;this.c=0;this.a=[];this.b={}}function se(a,b,c,d){if(0==b.a){var e=b.c();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,te(a,0,a.a.length-1))}}}re.prototype.f=function(){--this.c};function ue(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;te(a,f,b)}function te(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};function ve(a,b,c,d){Yd.call(this,a,b,c,d)}B(ve,Yd);ve.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.m&&this.k<=a.y&&a.y<=this.j};ve.prototype.a=function(){return this.j-this.k+1};ve.prototype.b=function(){return this.m-this.h+1};var we="object"==typeof Proj4js,xe={Ee:"degrees",Ne:"m"};function Q(a,b,c){this.a=a;this.e=b;this.d=c}Q.prototype.b=q("a");Q.prototype.A=q("d");Q.prototype.c=q("e");function ye(a,b){Q.call(this,a,b.units,k);this.Cc=b}B(ye,Q);var ze={},Ae={},Be={};function Ce(a){D(a,function(a){De(a)});D(a,function(b){D(a,function(a){b!==a&&Ee(b,a,Fe)})})}function De(a){Ae[a.a]=a;Ee(a,a,Fe)}function Ge(a){return a!=k?ga(a)?He(a):a:He("EPSG:3857")}function Ee(a,b,c){a=a.a;b=b.a;a in Be||(Be[a]={});Be[a][b]=c}
function He(a){var b=Ae[a];we&&!x(b)&&(b=Ie(a));x(b)||(b=k);return b}function Ie(a){var b=ze[a];x(b)||(b=new Proj4js.Proj(a),b=new ye(a,b),ze[a]=b);return b}function Je(a,b){var c=a.a,d=b.a,e;c in Be&&d in Be[c]&&(e=Be[c][d]);if(we&&!x(e)){var f;f=(a instanceof ye?a:Ie(a.a)).Cc;var g;g=(b instanceof ye?b:Ie(a.a)).Cc;e=function(a){a=new Proj4js.Point(a.x,a.y);a=Proj4js.transform(f,g,a);return new K(a.x,a.y)};Ee(a,b,e)}x(e)||(e=Ke);return e}function Le(a,b){var c=He(a),d=He(b);return Je(c,d)}
function Ke(a){return a}function Fe(a){return new K(a.x,a.y)}var Me=6378137*Math.PI,Ne=new $d(-Me,-Me,Me,Me),Oe=za(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Q(a,"m",Ne)}),Pe=new $d(-180,-90,180,90),Qe=za(["CRS:84","EPSG:4326","urn:ogc:def:crs:EPSG:6.6:4326"],function(a){return new Q(a,"degrees",Pe)});Ce(Oe);Ce(Qe);function Re(a){var b=6378137*Math.PI*a.x/180,a=6378137*Math.log(Math.tan(Math.PI*(a.y+90)/360));return new K(b,a)}
function Se(a){return new K(180*a.x/(6378137*Math.PI),360*Math.atan(Math.exp(a.y/6378137))/Math.PI-90)}D(Qe,function(a){D(Oe,function(b){Ee(a,b,Re);Ee(b,a,Se)})});function Te(a,b){this.b=a;this.a=b||k};function Ue(a){G.call(this);this.g=x(a.projection)?a.projection:k;this.f=x(a.extent)?a.extent:a.projection.A();this.Na=x(a.attributions)?a.attributions:k}B(Ue,nd);Ue.prototype.A=q("f");Ue.prototype.c=qd;function R(a){L.call(this);this.g=a.source;this.i(x(a.brightness)?a.brightness:0);this.o(x(a.contrast)?a.contrast:1);this.r(x(a.hue)?a.hue:0);this.z(x(a.opacity)?a.opacity:1);this.B(x(a.saturation)?a.saturation:1);this.C(x(a.visible)?a.visible:j);this.g.c()||mc(this.g,"load",this.G,p,this)}B(R,L);R.prototype.b=function(){return this.get("brightness")};R.prototype.getBrightness=R.prototype.b;R.prototype.c=function(){return this.get("contrast")};R.prototype.getContrast=R.prototype.c;R.prototype.d=function(){return this.get("hue")};
R.prototype.getHue=R.prototype.d;R.prototype.e=function(){return this.get("opacity")};R.prototype.getOpacity=R.prototype.e;R.prototype.f=function(){return this.get("saturation")};R.prototype.getSaturation=R.prototype.f;R.prototype.Q=q("g");R.prototype.a=function(){return this.get("visible")};R.prototype.getVisible=R.prototype.a;R.prototype.G=function(){J(this,"load")};R.prototype.i=function(a){a=tb(a,-1,1);a!=this.b()&&this.set("brightness",a)};R.prototype.setBrightness=R.prototype.i;
R.prototype.o=function(a){a=Math.max(0,a);a!=this.c()&&this.set("contrast",a)};R.prototype.setContrast=R.prototype.o;R.prototype.r=function(a){a!=this.d()&&this.set("hue",a)};R.prototype.setHue=R.prototype.r;R.prototype.z=function(a){a=tb(a,0,1);a!=this.e()&&this.set("opacity",a)};R.prototype.setOpacity=R.prototype.z;R.prototype.B=function(a){a=Math.max(0,a);a!=this.f()&&this.set("saturation",a)};R.prototype.setSaturation=R.prototype.B;
R.prototype.C=function(a){a=!!a;a!=this.a()&&this.set("visible",a)};R.prototype.setVisible=R.prototype.C;function Ve(a){return 3*a*a-2*a*a*a};function We(){this.b=[0,0]}B(We,L);function Xe(a){return a}function Ye(a){return 0.5>a?Ve(2*a):1-Ve(2*(a-0.5))};var Ze={Tc: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:Ye;return function(a,g){if(g.time<c)return g.N=j,g.v[0]+=1,j;if(g.time<c+d){var i=e((g.time-c)/d),r=b-g.q.resolution;g.N=j;g.q.resolution+=i*r;g.v[0]+=1;return j}return p}},jb: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:Ve;return function(a,b){if(b.time<c)return b.N=j,b.v[0]+=1,j;if(b.time<c+f){var n=1-
g((b.time-c)/f),l=d-b.q.center.x,m=e-b.q.center.y;b.N=j;b.q.center.x+=n*l;b.q.center.y+=n*m;b.v[0]+=1;return j}return p}},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:Ve;return function(a,g){if(g.time<c)return g.N=j,g.v[0]+=1,j;if(g.time<c+d){var i=1-e((g.time-c)/d),r=b-g.q.rotation;g.N=j;g.q.rotation+=i*r;g.v[0]+=1;return j}return p}},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:Xe;return function(a,g){if(g.time<c)return g.N=j,g.v[0]+=1,j;if(g.time<c+d){var i=1-e((g.time-c)/d),r=b-g.q.resolution;g.N=j;g.q.resolution+=i*r;g.v[0]+=1;return j}return p}}};function $e(a,b,c){this.e=a;this.c=b;this.f=c;this.a=[];this.b=this.d=0}$e.prototype.jb=function(a){var b=this.e,c=this.b,d=this.c,e=Math.log(this.c/this.b)/this.e;return Ze.jb({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function af(a,b,c){Zb.call(this,a);this.map=b;this.Va=p;this.d=x(c)?c:k}B(af,Zb);af.prototype.w=function(){af.s.w.call(this);this.Va=j};function bf(a,b){vb.call(this,a,b)}B(bf,vb);function cf(a,b,c,d){af.call(this,a,b,d);this.a=c;this.f=this.e=k}B(cf,af);cf.prototype.b=function(){this.e===k&&(this.e=df(this.map,ef(this)));return this.e};function ef(a){if(a.f===k){var b=zc(a.a,a.map.b);a.f=new bf(b.x,b.y)}return a.f}function ff(a){this.a=a;this.d=k;this.c=p;this.f=0;this.e=this.b=this.i=this.g=k;a=this.a.b;Ld||(this.g=H(a,["click","dblclick"],this.cc,p,this));this.i=H(a,Ld?"touchstart":"mousedown",this.Bd,p,this)}B(ff,nd);
function gf(a){if(Ld){var b=a.H;b.touches&&b.touches.length&&(b=b.touches[0],a.clientX=b.clientX,a.clientY=b.clientY)}}s=ff.prototype;s.cc=function(a){if(!this.c){var b;"dblclick"!==a.type&&(b=new cf(hf,this.a,a),J(this,b));this.f||(b=new cf(jf,this.a,a),J(this,b))}};s.Qd=function(a){if(this.d){if(!this.c){var b=(new Date).getTime();this.f=!this.f||250<b-this.f?b:0;Ld&&this.cc(this.e)}this.e=k;D(this.b,I);this.d=this.b=k;this.c&&J(this,new cf(kf,this.a,a))}};
s.Bd=function(a){J(this,new cf(lf,this.a,a));this.d||(gf(a),this.e=a,this.d={clientX:a.clientX,clientY:a.clientY},this.c=p,this.b=[H(document,Ld?"touchmove":"mousemove",this.ed,p,this),H(document,Ld?"touchend":"mouseup",this.Qd,p,this)],"mousedown"===a.type&&a.w())};s.ed=function(a){var b;this.c||(this.c=j,b=new cf(mf,this.a,this.e),J(this,b));gf(a);this.d={clientX:a.clientX,clientY:a.clientY};a.w();b=new cf(nf,this.a,a);J(this,b)};
s.p=function(){I(this.g);I(this.i);this.b!==k&&(D(this.b,I),this.b=k);ff.s.p.call(this)};var hf="click",jf="dblclick",mf="dragstart",nf="drag",kf="dragend",lf="down",of={Be:hf,De:jf,Je:mf,He:nf,Ie:kf,Ge:lf};function pf(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 qf(a,b){if(x(a))return a+b};function rf(a){this.resolution=a;this.rotation=qf};function T(a){this.b=[0,0];var a=a||{},b={};b.center=x(a.center)?a.center:k;b.projection=Ge(a.projection);if(x(a.resolution))b.resolution=a.resolution;else if(x(a.zoom)){var c=b.projection.A(),c=Math.max(c.m-c.h,c.j-c.k);b.resolution=c/(256<<a.zoom)}b.rotation=a.rotation;this.hb(b);if(x(a.resolutions))var d=a.resolutions,a=function(a,b){if(x(a)){var c=pf(d,a),c=tb(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=Ge(a.projection).A(),b=Math.max(a.m-a.h,a.j-a.k)/256,c=116,a=Math.exp(Math.log(2)/4));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.e=new rf(a)}B(T,We);T.prototype.Y=function(){return this.get("center")};T.prototype.getCenter=T.prototype.Y;T.prototype.A=function(a){var b=this.Y(),c=this.ca();return new $d(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};
T.prototype.yc=function(){return this.get("projection")};T.prototype.getProjection=T.prototype.yc;T.prototype.ca=function(){return this.get("resolution")};T.prototype.getResolution=T.prototype.ca;T.prototype.za=function(){return this.get("rotation")||0};T.prototype.getRotation=T.prototype.za;T.prototype.Ea=function(){return this.Y()!=k&&x(this.ca())};T.prototype.a=function(a){this.set("center",a)};T.prototype.setCenter=T.prototype.a;T.prototype.f=function(a){this.set("projection",a)};
T.prototype.setProjection=T.prototype.f;T.prototype.c=function(a){this.set("resolution",a)};T.prototype.setResolution=T.prototype.c;T.prototype.d=function(a){this.set("rotation",a)};T.prototype.setRotation=T.prototype.d;T.prototype.rotate=function(a,b,c){b=this.e.rotation(b,0);if(c!=k){var d=this.Y(),e=new K(d.x-c.x,d.y-c.y);e.rotate(b-this.za());e.x+=c.x;e.y+=c.y;sf(a,function(){this.a(e);this.d(b)},this)}else this.d(b)};
T.prototype.zoom=function(a,b,c,d){var e=this.ca();x(e)&&x(d)&&(tf(a),a.B(Ze.zoom({resolution:e,duration:d})));var f=this.e.resolution(e,b);if(f!=k&&c!=k){var b=this.Y(),d=this.ca(),g=new K(c.x-f*(c.x-b.x)/d,c.y-f*(c.y-b.y)/d);sf(a,function(){this.a(g);this.c(f)},this)}else this.c(f)};function uf(a){G.call(this);this.element=x(a.element)?a.element:k;this.i=a.target;this.b=k;x(a.map)&&this.a(a.map)}B(uf,G);uf.prototype.p=function(){Pb(this.element);uf.s.p.call(this)};uf.prototype.a=function(a){this.b===k||Pb(this.element);this.b=a;this.b!==k&&(x(this.i)?this.i:a.o).appendChild(this.element)};function vf(a,b,c,d){Yd.call(this,a,b,c,d)}B(vf,Yd);function wf(a){this.a=a.resolutions;this.g=this.a.length;this.f=x(a.extent)?a.extent:k;this.d=x(a.origin)?a.origin:k;this.e=k;x(a.origins)&&(this.e=a.origins);this.b=x(a.tileSize)?a.tileSize:new Xd(256,256)}wf.prototype.c=function(a,b,c){for(var d=xf(this,a),a=a.n-1;0<=a&&!b.call(c,a,yf(this,d,this.a[a]));)--a};wf.prototype.A=q("f");function zf(a,b){return a.d===k?a.e[b]:a.d}function yf(a,b,c){var d=Af(a,new K(b.h,b.k),c),a=Af(a,new K(b.m,b.j),c);return new ve(d.x,d.y,a.x,a.y)}
function Bf(a,b){var c=zf(a,b.n),d=a.a[b.n],e=a.b;return new K(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function xf(a,b){var c=zf(a,b.n),d=a.a[b.n],e=a.b,f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new $d(f,c,f+e.width*d,c+e.height*d)}
function Af(a,b,c){var d=pf(a.a,c),e=c/a.a[d],f=zf(a,d),b=new K(Math.floor((b.x-f.x)/c),Math.floor((b.y-f.y)/c)),f=a.b,f=new Xd(f.width/e,f.height/e),d=new O(d,Math.floor(b.x/f.width),Math.floor(b.y/f.height)),c=c/a.a[d.n],a=a.b,a=new Xd(a.width/c,a.height/c),c=Math.round(d.x*a.width),e=Math.round((d.x+1)*a.width),f=Math.round(d.y*a.height),a=Math.round((d.y+1)*a.height),a=new vf(c,f,e,a);b.x<a.h?d.x-=1:b.x>=a.m&&(d.x+=1);b.y<a.k?d.y-=1:b.y>=a.j&&(d.y+=1);return d};function Cf(a){Ue.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.tileGrid=x(a.tileGrid)?a.tileGrid:k}B(Cf,Ue);Cf.prototype.d=pd;function Df(a){this.g=Lb("UL");var b=Jb("DIV",{"class":"ol-attribution ol-unselectable"},this.g);uf.call(this,{element:b,map:a.map,target:a.target});this.f=j;this.c={};this.d={};this.e=k}B(Df,uf);Df.prototype.o=function(a){a=a.d;a===k?Ef(this,k):Ef(this,a.Ka)};Df.prototype.a=function(a){this.e!==k&&(D(this.e,I),this.e=k);Df.s.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.o,p,this)])};
function Ef(a,b){if(b===k)a.f&&(Cc(a.element,p),a.f=p);else{var c={},d={},e=a.b.i();x(e)&&e.forEach(function(a){a=a.Q();a instanceof Cf&&(d[y(a).toString()]=a);a=a.Na;if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],v=y(b).toString(),c[v]=j}});var e={},f,g,i,r,n,l;for(l in b)if(f=d[l],n=f.Na,n!==k){g=b[l];for(f=0;f<n.length;++f)if(i=n[f],r=y(i).toString(),!(r in e)){var m;a:if(i.a===k)m=j;else{var t=m=h,u=h;for(u in g)if(u in i.a){t=g[u];for(m=0;m<i.a[u].length;++m)if(Zd(i.a[u][m],t)){m=j;break a}}m=
p}m&&(e[r]=i)}}l=za(zb(e),Number);Oa(l);var v;for(f=0;f<l.length;++f)v=l[f].toString(),v in a.c?a.d[v]||(Cc(a.c[v],j),a.d[v]=j):(g=Lb("LI"),g.innerHTML=e[v].b,a.g.appendChild(g),a.c[v]=g,a.d[v]=j),delete c[v];for(v in c)Pb(a.c[v]),delete a.c[v],delete a.d[v];e=0!=l.length;a.f!=e&&(Cc(a.element,e),a.f=e)}};function Ff(a){var b=Ld?"touchend":"click",c=Jb("A",{href:"#zoomIn","class":"ol-zoom-in"},"+");H(c,b,this.d,p,this);var d=Jb("A",{href:"#zoomOut","class":"ol-zoom-out"},"\u2212");H(d,b,this.e,p,this);b=Jb("DIV","ol-zoom ol-unselectable",c,d);uf.call(this,{element:b,map:a.map,target:a.target});this.c=x(a.delta)?a.delta:1}B(Ff,uf);Ff.prototype.d=function(a){a.w();a=this.b;tf(a);a.a().zoom(a,this.c,h,250)};Ff.prototype.e=function(a){a.w();a=this.b;tf(a);a.a().zoom(a,-this.c,h,250)};function Gf(){};function Hf(a){this.a=a}B(Hf,Gf);Hf.prototype.oa=function(a){var b=a.a;if(a.type==jf&&(Ld||ec(a.a))){var c=a.map,d=a.b(),e=a.a.ha?-this.a:this.a;c.a().zoom(c,e,d);a.w();b.w()}};function If(a){return a.X&&!a.lb&&a.ha}function Jf(a){return!a.X&&!a.lb&&!a.ha}function Kf(a){return!a.X&&!a.lb&&a.ha};function Lf(){this.e=p;this.r=this.o=this.i=this.g=0;this.Ja=this.f=k}B(Lf,Gf);s=Lf.prototype;s.Fb=aa;s.Gb=aa;s.Wa=pd;s.pc=aa;s.oa=function(a){var b=a.map;if(b.Ea()){var b=b.a(),c=a.a;a.type==lf&&this.pc(a);this.e?a.type==nf?(this.d=c.clientX-this.g,this.b=c.clientY-this.i,this.Fb(a)):a.type==kf&&(this.d=c.clientX-this.g,this.b=c.clientY-this.i,this.Gb(a),this.e=p):a.type==mf&&(this.g=c.clientX,this.i=c.clientY,this.b=this.d=0,this.f=b.Y(),this.Ja=a.b(),this.Wa(a)&&(this.e=j,a.w()))}};function Mf(a,b){Lf.call(this);this.na=a;this.a=b;this.c=k}B(Mf,Lf);Mf.prototype.Fb=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,qb:pa()});var a=a.map,b=a.a(),c=b.ca(),d=b.za(),c=new K(-c*this.d,c*this.b);c.rotate(d);d=new K(this.f.x+c.x,this.f.y+c.y);tf(a);b.a(d)};
Mf.prototype.Gb=function(a){var b=a.map,a=b.a();a.b[1]+=-1;var c;if(c=this.a){c=this.a;for(var d=pa(),e=c.a.length-1,f=e-1;0<=f&&c.a[f].qb>d-c.f;)f--;if(0<=f){var d=c.a[f],e=c.a[e],f=e.x-d.x,g=e.y-d.y;c.d=Math.atan2(g,f);c.b=Math.sqrt(f*f+g*g)/(e.qb-d.qb);c=c.b>c.c}else c=p}c&&(c=(this.a.c-this.a.b)/this.a.e,d=this.a.d,e=a.Y(),this.c=this.a.jb(e),b.B(this.c),e=Nf(b,e),b=df(b,new bf(e.x-c*Math.cos(d),e.y-c*Math.sin(d))),a.a(b))};
Mf.prototype.Wa=function(a){var b=a.a;if(this.na(b)){if(this.a){var c=this.a;c.a.length=0;c.d=0;c.b=0;this.a.a.push({x:b.clientX,y:b.clientY,qb:pa()})}a=a.map;tf(a);a=a.a();a.b[1]+=1;return j}return p};Mf.prototype.pc=function(a){var b=a.map,c=b.a();this.c!==k&&Ca(b.r,this.c)&&(tf(b),c.a(a.d.q.center),this.c=k)};function Of(a){Lf.call(this);this.c=a}B(Of,Lf);Of.prototype.Fb=function(a){var b=a.map,c=b.e(),a=ef(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();tf(b);d.rotate(b,d.za()-a)}this.a=c};Of.prototype.Wa=function(a){var b=a.a;return ec(b)&&this.c(b)?(a=a.map,a.a(),tf(a),this.a=h,j):p};function Pf(a){var b=Jb("DIV","ol-dragbox");this.c=k;this.e=a.Ja;this.d=k;uf.call(this,{element:b,map:a.map})}B(Pf,uf);Pf.prototype.a=function(a){this.d!==k&&(I(this.d),this.d=k);a!==k&&(this.c=Nf(a,this.e),vc(this.element,this.c),Dc(this.element,new Xd(0,0)),this.d=H(a,nf,this.f,p,this));Pf.s.a.call(this,a)};Pf.prototype.f=function(a){var b=this.b,a=a.b(),b=Nf(b,a);vc(this.element,new bf(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Dc(this.element,new Xd(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Qf(a){Lf.call(this);this.c=a;this.a=k}B(Qf,Lf);Qf.prototype.Gb=function(a){this.a.a(k);this.a=k;if(64<=this.d*this.d+this.b*this.b){var b=a.map,c=ae(this.Ja,a.b());sf(b,function(){var a=b.a(),e=b.e();a.a(new K((c.h+c.m)/2,(c.k+c.j)/2));e=Math.max((c.m-c.h)/e.width,(c.j-c.k)/e.height);e=a.e.resolution(e,0);a.c(e);a.d(0)})}};Qf.prototype.Wa=function(a){var b=a.a;return ec(b)&&this.c(b)?(this.a=new Pf({map:a.map,Ja:this.Ja}),j):p};function Rf(a){this.a=a}B(Rf,Gf);Rf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.ma;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.ca()*this.a,c=40==c?new K(0,-e):37==c?new K(-e,0):39==c?new K(e,0):new K(0,e),e=d.Y();d.a(new K(e.x+c.x,e.y+c.y));b.w();a.w()}}};function Sf(){}B(Sf,Gf);Sf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.Ta;if(43==c||45==c){var d=a.map,c=43==c?4:-4;tf(d);d.a().zoom(d,c,h,100);b.w();a.w()}}};function Tf(a){this.a=a}B(Tf,Gf);Tf.prototype.oa=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a,d=a.b(),e=0>c.b?this.a:-this.a,f=b.a();tf(b);f.zoom(b,e,d);a.w();c.w()}};function Uf(a,b,c,d){this.f=a;this.g=c;this.e=b;this.b=new Image;d!==k&&(this.b.crossOrigin=d);this.d={};this.c=k;this.a=0}B(Uf,nd);Uf.prototype.A=q("f");function Vf(a,b){if(x(b)){var c,d=y(b);if(d in a.d)return a.d[d];c=Ab(a.d)?a.b:a.b.cloneNode(p);return a.d[d]=c}return a.b}Uf.prototype.i=function(){this.a=3;D(this.c,I);this.c=k;J(this,"change")};Uf.prototype.o=function(){this.a=2;D(this.c,I);this.c=k;J(this,"change")};
function Wf(a){0==a.a&&(a.a=1,a.c=[mc(a.b,"error",a.i,p,a),mc(a.b,"load",a.o,p,a)],a.b.src=a.g)};function Xf(a,b){L.call(this);this.o=a;this.a=b;H(this.a,Rd("brightness"),this.Ib,p,this);H(this.a,Rd("contrast"),this.Jb,p,this);H(this.a,Rd("hue"),this.Kb,p,this);H(this.a,"load",this.Dd,p,this);H(this.a,Rd("opacity"),this.Ed,p,this);H(this.a,Rd("saturation"),this.Lb,p,this);H(this.a,Rd("visible"),this.Gd,p,this)}B(Xf,L);function Yf(a){J(a,"change")}s=Xf.prototype;s.W=q("o");s.Ib=aa;s.Jb=aa;s.Kb=aa;s.Hb=function(a){2===a.target.a&&tf(this.o.map)};s.Dd=function(){Yf(this)};s.Ed=function(){Yf(this)};
s.Lb=aa;s.Gd=function(){Yf(this)};s.Qb=function(a){2===a.target.a&&tf(this.o.map)};function Zf(a,b){b.d()&&a.pa.push(oa(function(a,b,e){b=y(a).toString();a.ya(e.Ka[b])},b))}function $f(a,b,c,d){b=y(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],a.h=Math.min(a.h,d.h),a.k=Math.min(a.k,d.k),a.m=Math.max(a.m,d.m),a.j=Math.max(a.j,d.j)):a[b][c]=d:(a[b]={},a[b][c]=d)}function ag(a,b,c){b=y(b).toString();c=c.toString();b in a||(a[b]={});a[b][c]=j};function bg(a,b){G.call(this);this.qa=a;this.map=b;this.d={};this.C=H(b,Rd(cg),this.Id,p,this);this.e=k;this.z={}}B(bg,G);s=bg.prototype;s.la=function(a){var b=this.Pa(a),a=y(a);this.d[a]=b;this.z[a]=H(b,"change",this.Fd,p,this)};
function dg(a){var b=a.q,c=a.ec;ie(c);me(c,a.size.width/2,a.size.height/2);ne(c,1/b.resolution,-1/b.resolution);oe(c,-b.rotation);me(c,-b.center.x,-b.center.y);var a=a.Bc,b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],i=c[5],r=c[6],n=c[7],l=c[8],m=c[9],t=c[10],u=c[11],v=c[12],C=c[13],z=c[14],c=c[15],N=b*i-d*g,S=b*r-e*g,P=b*n-f*g,Y=d*r-e*i,fa=d*n-f*i,Fa=e*n-f*r,Ga=l*C-m*v,Ha=l*z-t*v,Ia=l*c-u*v,Ja=m*z-t*C,Ka=m*c-u*C,La=t*c-u*z,U=N*La-S*Ka+P*Ja+Y*Ia-fa*Ha+Fa*Ga;0!=U&&(U=1/U,a[0]=(i*La-r*Ka+n*Ja)*U,a[1]=(-d*La+e*
Ka-f*Ja)*U,a[2]=(C*Fa-z*fa+c*Y)*U,a[3]=(-m*Fa+t*fa-u*Y)*U,a[4]=(-g*La+r*Ia-n*Ha)*U,a[5]=(b*La-e*Ia+f*Ha)*U,a[6]=(-v*Fa+z*P-c*S)*U,a[7]=(l*Fa-t*P+u*S)*U,a[8]=(g*Ka-i*Ia+n*Ga)*U,a[9]=(-b*Ka+d*Ia-f*Ga)*U,a[10]=(v*fa-C*P+c*N)*U,a[11]=(-l*fa+m*P-u*N)*U,a[12]=(-g*Ja+i*Ha-r*Ga)*U,a[13]=(b*Ja-d*Ha+e*Ga)*U,a[14]=(-v*Y+C*S-z*N)*U,a[15]=(l*Y-m*S+t*N)*U)}s.Pa=rd;s.p=function(){xb(this.d,function(a){Yb(a)});I(this.C);this.e===k||D(this.e,I);bg.s.p.call(this)};s.Cb=rd;
function eg(a,b){var c=y(b);return a.d[c]}s.Fd=function(){fg(this.map)};s.Hd=function(a){this.la(a.a)};s.Id=function(){Xb(yb(this.d));this.d={};this.e!==k&&(D(this.e,I),this.e=k);var a=this.map.i();a!=k&&(a.forEach(this.la,this),this.e=[H(a,"add",this.Hd,p,this),H(a,"remove",this.Jd,p,this)])};s.Jd=function(a){this.Sb(a.a)};s.Sb=function(a){a=y(a);if(a in this.d){var b=this.d[a];delete this.d[a];I(this.z[a]);delete this.z[a];a=b}else a=k;Yb(a)};s.ib=aa;function gg(){};function hg(a){Ue.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Da=x(a.Da)?a.Da:gg;this.d=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=x(a.resolutions)?a.resolutions:k}B(hg,Ue);function ig(a,b,c,d){var e=k,d=a.Da(b,d);x(d)&&(e=new Uf(b,c,d,a.d));return e};function jg(a){R.call(this,a)}B(jg,R);function kg(a){R.call(this,a)}B(kg,R);function lg(a,b){Xf.call(this,a,b)}B(lg,Xf);function mg(a,b){Xf.call(this,a,b);this.b=k;this.c=ee()}B(mg,lg);mg.prototype.F=function(){return this.b===k?k:Vf(this.b,this)};mg.prototype.G=q("c");mg.prototype.da=function(a){var b=a.q,c=b.center,d=b.resolution,b=b.rotation,e,f=this.a.Q();e=a.v;!e[0]&&!e[1]&&(e=f.F(a.extent,d),e!==k&&(f=e.a,0==f?(mc(e,"change",this.Hb,p,this),Wf(e)):2==f&&(this.b=e)));if(this.b!==k){e=this.b;f=e.A();e=e.e;var g=this.c;ie(g);me(g,a.size.width/2,a.size.height/2);oe(g,b);ne(g,e/d,e/d);me(g,(f.h-c.x)/e,(c.y-f.j)/e)}};function ng(a,b){Xf.call(this,a,b);this.d=this.b=this.c=k;this.e=ee()}B(ng,lg);ng.prototype.F=q("c");ng.prototype.G=q("e");
ng.prototype.da=function(a){function b(a,b){var c=j,e,f,g,i;for(g=b.h;g<=b.m;++g)for(i=b.k;i<=b.j;++i){e=new O(a,g,i);f=e.toString();if(u[a]&&u[a][f])return;e=d.a(e);e!==k&&2==e.a?(u[a]||(u[a]={}),u[a][f]=e):c=p}return c}var c=a.q,d=this.a.Q(),e=y(d).toString(),f=d.tileGrid,g=f.b,i=pf(f.a,c.resolution),r=f.a[i],n=yf(f,a.extent,r),l=new Xd(g.width*n.b(),g.height*n.a()),m,t;this.c===k?(m=Lb("CANVAS"),m.width=l.width,m.height=l.height,t=m.getContext("2d"),this.c=m,this.b=l,this.d=t):(m=this.c,t=this.d,
this.b.width==l.width&&this.b.height==l.height||(m.width=l.width,m.height=l.height,this.b=l));t.clearRect(0,0,l.width,l.height);var u={};u[i]={};var v,C,z;for(C=n.h;C<=n.m;++C)for(z=n.k;z<=n.j;++z)if(m=new O(i,C,z),l=d.a(m),l!==k){v=l.a;if(0==v)mc(l,"change",this.Qb,p,this),ag(a.La,d,m),v=Bf(f,m),se(a.Wb,l,e,v);else if(2==v){u[i][m.toString()]=l;continue}else if(3==v)continue;f.c(m,b)}m=za(zb(u),Number);Oa(m);var e=be(xf(f,new O(i,n.h,n.j))),N,S;for(C=0;C<m.length;++C)if(l=m[C],z=u[l],l==i)for(N in z)l=
z[N],t.drawImage(l.F(),g.width*(l.S.x-n.h),g.height*(n.j-l.S.y));else for(N in v=f.a[l]/r,z)l=z[N],S=xf(f,l.S),t.drawImage(l.F(),(S.h-e.x)/r,(e.y-S.j)/r,v*g.width,v*g.height);$f(a.Ka,d,i,n);Zf(a,d);f=this.e;ie(f);me(f,a.size.width/2,a.size.height/2);oe(f,c.rotation);ne(f,r/c.resolution,r/c.resolution);me(f,(e.x-c.center.x)/r,(c.center.y-e.y)/r)};function og(a,b){bg.call(this,a,b);this.f=new Xd(a.clientHeight,a.clientWidth);this.c=Lb("CANVAS");this.c.height=this.f.height;this.c.width=this.f.width;this.c.className="ol-unselectable";Ob(a,this.c);this.g=j;this.i=this.c.getContext("2d")}B(og,bg);og.prototype.Pa=function(a){return a instanceof jg?new mg(this,a):a instanceof kg?new ng(this,a):k};og.prototype.Cb=q("c");
og.prototype.ib=function(a){if(a===k)this.g&&(Cc(this.c,p),this.g=p);else{var b=a.size;this.f.width==b.width&&this.f.height==b.height||(this.c.width=b.width,this.c.height=b.height,this.f=b);var c=this.i;c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.c.toFixed(0)+","+d.b.toFixed(0)+","+d.a.toFixed(0)+")";c.globalAlpha=1;c.fillRect(0,0,b.width,b.height);D(a.bb,function(b){var d=a.ab[y(b)];if(d.visible)if(d.nb){var g=eg(this,b);g.da(a,d);b=g.F();b!==k&&(g=g.G(),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.N=j},this);this.g||(Cc(this.c,j),this.g=j);dg(a)}};function pg(){if(!("HTMLCanvasElement"in w))return p;try{return Lb("CANVAS").getContext("2d")!==k}catch(a){return p}};function qg(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 rg(a,b,c){Xf.call(this,a,b);this.target=c}B(rg,Xf);rg.prototype.p=function(){Pb(this.target);rg.s.p.call(this)};function sg(a,b){var c=Lb("DIV");c.className="ol-layer-image";c.style.position="absolute";rg.call(this,a,b,c);this.b=k;this.c=ge()}B(sg,rg);
sg.prototype.da=function(a){var b=a.q,c=b.center,d=b.resolution,e=b.rotation,b=this.b,f=this.a.Q(),g=a.v;!g[0]&&!g[1]&&(f=f.F(a.extent,d),f!==k&&(g=f.a,0==g?(mc(f,"change",this.Hb,p,this),Wf(f)):2==g&&(b=f)));if(b!==k){var g=b.A(),i=b.e,f=ee();ie(f);me(f,a.size.width/2,a.size.height/2);oe(f,e);ne(f,i/d,i/d);me(f,(g.h-c.x)/i,(c.y-g.j)/i);b!=this.b&&(a=Vf(b,this),a.style.position="absolute",Nb(this.target),this.target.appendChild(a),this.b=b);ke(f,this.c)||(qg(this.target,f),he(this.c,f))}};function tg(a,b){var c=Lb("DIV");c.className="ol-layer-tile";c.style.position="absolute";rg.call(this,a,b,c);this.c=j;this.d=1;this.b={}}B(tg,rg);
tg.prototype.da=function(a,b){if(b.visible){var c=a.q,d=this.a.Q(),e=y(d).toString(),f=d.tileGrid,g=pf(f.a,c.resolution),i=yf(f,a.extent,f.a[g]),r={};r[g]={};var n=function(a,b){var c=j,e,f,g,i;for(g=b.h;g<=b.m;++g)for(i=b.k;i<=b.j;++i){e=new O(a,g,i);f=e.toString();if(r[a]&&r[a][f])return;e=d.a(e);e!==k&&2==e.a?(r[a]||(r[a]={}),r[a][f]=e):c=p}return c},l,m,t,u,v;for(u=i.h;u<=i.m;++u)for(v=i.k;v<=i.j;++v)if(t=new O(g,u,v),l=d.a(t),l!==k){m=l.a;if(0==m)mc(l,"change",this.Qb,p,this),ag(a.La,d,t),m=
Bf(f,t),se(a.Wb,l,e,m);else if(2==m){r[g][t.toString()]=l;continue}else if(3==m)continue;f.c(t,n)}l=za(zb(r),Number);Oa(l);var e={},C;for(t=0;t<l.length;++t){u=l[t];u in this.b?n=this.b[u]:(n=Af(f,c.center,f.a[u]),n=new ug(f,n),e[u]=j,this.b[u]=n);u=r[u];for(C in u){v=n;m=u[C];var z=m.S,N=z.toString();if(!(N in v.b)){var S=v.d.b,P=m.F(v),Y=P.style;Y.position="absolute";Y.left=(z.x-v.c.x)*S.width+"px";Y.top=(v.c.y-z.y)*S.height+"px";v.a===k&&(v.a=document.createDocumentFragment());v.a.appendChild(P);
v.b[N]=m}}n.a!==k&&(n.target.appendChild(n.a),n.a=k)}f=za(zb(this.b),Number);Oa(f);l=ee();for(C=0;C<f.length;++C)if(u=f[C],n=this.b[u],u in r)if(v=n.g,t=n.f,ie(l),me(l,a.size.width/2,a.size.height/2),oe(l,c.rotation),ne(l,v/c.resolution,v/c.resolution),me(l,(t.x-c.center.x)/v,(c.center.y-t.y)/v),t=n,v=l,ke(v,t.e)||(qg(t.target,v),he(t.e,v)),u in e){for(t=u-1;0<=t;--t)if(t in this.b){u=this.b[t].target;u.parentNode&&u.parentNode.insertBefore(n.target,u.nextSibling);break}0>t&&Ob(this.target,n.target)}else{if(!a.v[0]&&
!a.v[1]){m=yf(n.d,a.extent,n.d.a[n.c.n]);t=[];v=u=h;for(v in n.b)u=n.b[v],m.contains(u.S)||t.push(u);m=h;for(m=0;m<t.length;++m)u=t[m],v=u.S.toString(),Pb(u.F(n)),delete n.b[v]}}else Pb(n.target),delete this.b[u];b.opacity!=this.d&&(c=b.opacity,e=this.target.style,"opacity"in e?e.opacity=c:"MozOpacity"in e?e.MozOpacity=c:"filter"in e&&(e.filter=""===c?"":"alpha(opacity="+100*c+")"),this.d=b.opacity);b.visible&&!this.c&&(Cc(this.target,j),this.c=j);$f(a.Ka,d,g,i);Zf(a,d)}else this.c&&(Cc(this.target,
p),this.c=p)};function ug(a,b){this.target=Lb("DIV");this.target.style.position="absolute";this.d=a;this.c=b;this.f=be(xf(a,b));this.g=a.a[b.n];this.b={};this.a=k;this.e=ge()};function vg(a,b){bg.call(this,a,b);this.c=Lb("DIV");this.c.className="ol-layers ol-unselectable";var c=this.c.style;c.position="absolute";c.width="100%";c.height="100%";Ob(a,this.c);this.f=j}B(vg,bg);vg.prototype.la=function(a){vg.s.la.call(this,a);fg(this.map)};vg.prototype.Pa=function(a){var b;a instanceof kg?b=new tg(this,a):a instanceof jg&&(b=new sg(this,a));this.c.appendChild(b.target);return b};
vg.prototype.ib=function(a){a===k?this.f&&(Cc(this.c,p),this.f=p):(D(a.bb,function(b){var c=a.ab[y(b)];c.nb&&eg(this,b).da(a,c)},this),this.f||(Cc(this.c,j),this.f=j),dg(a))};function wg(a){this.a=a}wg.prototype.Q=q("a");function xg(a){this.a=a}B(xg,wg);xg.prototype.b=function(){return 35632};function yg(a){this.a=a}B(yg,wg);yg.prototype.b=function(){return 35633};function zg(a,b){Xf.call(this,a,b);this.z=new Float32Array(16);this.C=new Float32Array(16);this.Z=new Float32Array(16);this.qa=new Float32Array(16);this.B=new Float32Array(16);this.c=j;this.Ib();this.Jb();this.Kb();this.Lb()}B(zg,Xf);function Ag(a){if(a.c){var b=a.B;ie(b);je(b,a.C,b);je(b,a.z,b);je(b,a.qa,b);je(b,a.Z,b);a.c=p}return a.B}s=zg.prototype;s.W=function(){return zg.s.W.call(this)};s.Ib=function(){var a=this.a.b(),b=this.z;ie(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=j;Yf(this)};
s.Jb=function(){var a=this.a.c(),b=this.C;ie(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;Yf(this)};s.Kb=function(){var a=this.a.d(),b=Math.cos(a),a=Math.sin(a);fe(this.Z,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;Yf(this)};
s.Lb=function(){var a=this.a.f();fe(this.qa,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;Yf(this)};s.Ca=aa;function Bg(a,b){zg.call(this,a,b);this.b=this.d=k;this.e=ge();this.f=ee()}B(Bg,zg);s=Bg.prototype;s.p=function(){var a=this.W().a;a.isContextLost()||a.deleteTexture(this.b);Bg.s.p.call(this)};s.ic=q("e");s.jc=q("b");s.kc=q("f");s.Ca=function(){this.b=k};
s.da=function(a){var b=this.W().a,c=a.q,d=c.center,e=c.resolution,f=c.rotation,c=this.d,g=this.b,i=this.a.Q(),r=a.v;!r[0]&&!r[1]&&(i=i.F(a.extent,e),i!==k&&(r=i.a,0==r?(mc(i,"change",this.Hb,p,this),Wf(i)):2==r&&(c=i,g=Vf(i,this),i=this.W().a,r=i.createTexture(),i.bindTexture(3553,r),i.texImage2D(3553,0,6408,6408,5121,g),i.texParameteri(3553,10242,33071),i.texParameteri(3553,10243,33071),i.texParameteri(3553,10241,9729),i.texParameteri(3553,10240,9729),g=r,this.b===k||a.pa.push(oa(function(a,b){a.isContextLost()||
a.deleteTexture(b)},b,this.b)))));c!==k&&(i=this.W().Cb(),a=c.A(),b=i.width*e,e*=i.height,i=this.f,ie(i),ne(i,2/b,2/e),oe(i,-f),me(i,a.h-d.x,a.k-d.y),ne(i,a.b()/2,a.a()/2),me(i,1,1),d=this.e,ie(d),ne(d,1,-1),me(d,0,-1),this.d=c,this.b=g)};function Cg(a,b){this.J=a;this.T=b}Cg.prototype.O=function(){return new Cg(this.J,this.T)};function Dg(a){this.a=[];if(a)a:{var b,c;if(a instanceof Dg){if(b=a.V(),c=a.K(),0>=a.U()){for(var a=this.a,d=0;d<b.length;d++)a.push(new Cg(b[d],c[d]));break a}}else b=zb(a),c=yb(a);for(d=0;d<b.length;d++)Eg(this,b[d],c[d])}}function Eg(a,b,c){var d=a.a;d.push(new Cg(b,c));b=d.length-1;a=a.a;for(c=a[b];0<b;)if(d=b-1>>1,a[d].J>c.J)a[b]=a[d],b=d;else break;a[b]=c}s=Dg.prototype;
s.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ba(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].J<b[f].J?g:f;if(b[f].J>e.J)break;b[a]=b[f];a=f}b[a]=e}return c.T}};s.K=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].T);return b};s.V=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].J);return b};s.O=function(){return new Dg(this)};s.U=function(){return this.a.length};
s.Fa=function(){return 0==this.a.length};s.clear=function(){Ba(this.a)};function Fg(){Dg.call(this)}B(Fg,Dg);function Gg(){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(Gg,xg);ba(Gg);function Hg(){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(Hg,yg);ba(Hg);
function Ig(a,b){zg.call(this,a,b);this.tb=Gg.Sa();this.wb=Hg.Sa();this.e=this.g=this.f=this.u=k;this.i=h;this.d=ee();this.vb=ge();this.r=this.b=k}B(Ig,zg);s=Ig.prototype;s.p=function(){var a=this.W().a;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));Ig.s.p.call(this)};s.ic=q("d");s.jc=q("g");s.kc=q("vb");s.Ca=function(){this.e=this.g=this.f=this.u=k;this.i=h};
s.da=function(a){var b=this.W(),c=b.a,d=a.q,e=d.center,f=this.a.Q(),g=y(f).toString(),i=f.tileGrid,r=pf(i.a,d.resolution),n=i.a[r],l=yf(i,a.extent,n),m;if(this.b!==k&&this.b.h==l.h&&this.b.k==l.k&&this.b.m==l.m&&this.b.j==l.j)m=this.r;else{var t=new Xd(l.b(),l.a()),u=i.b,t=Math.max(t.width*u.width,t.height*u.height),t=Math.pow(2,Math.ceil(Math.log(t)/Math.log(2))),v=new Xd(n*t,n*t),C=zf(i,r),z=C.x+l.h*u.width*n,n=C.y+l.k*u.height*n;m=new $d(z,n,z+v.width,n+v.height);n=this.W().a;!x(this.i)||this.i!=
t?(a.pa.push(oa(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},n,this.e,this.g)),u=n.createTexture(),n.bindTexture(3553,u),n.texImage2D(3553,0,6408,t,t,0,6408,5121,k),n.texParameteri(3553,10240,9729),n.texParameteri(3553,10241,9729),z=n.createFramebuffer(),n.bindFramebuffer(36160,z),n.framebufferTexture2D(36160,36064,3553,u,0),this.g=u,this.e=z,this.i=t):n.bindFramebuffer(36160,this.e);c.viewport(0,0,t,t);c.clearColor(0,0,0,0);c.clear(16384);c.disable(3042);t=Jg(b,
this.tb,this.wb);c.useProgram(t);this.u===k&&(this.u={ta:c.getAttribLocation(t,"aPosition"),ua:c.getAttribLocation(t,"aTexCoord"),pe:c.getUniformLocation(t,"uTileOffset"),Xb:c.getUniformLocation(t,"uTexture")});this.f===k?(t=c.createBuffer(),c.bindBuffer(34962,t),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=t):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.u.ta);c.vertexAttribPointer(this.u.ta,2,5126,p,16,0);c.enableVertexAttribArray(this.u.ua);c.vertexAttribPointer(this.u.ua,
2,5126,p,16,8);c.uniform1i(this.u.Xb,0);var N={};N[r]={};for(var n=function(a,c){var d=j,e,g,i,n;for(i=c.h;i<=c.m;++i)for(n=c.k;n<=c.j;++n){e=new O(a,i,n);g=e.toString();if(N[a]&&N[a][g])return;e=f.a(e);e!==k&&2==e.a&&Kg(b.b,e.c())?(N[a]||(N[a]={}),N[a][g]=e):d=p}return d},t=new Fg,S=j,P,Y,C=l.h;C<=l.m;++C)for(Y=l.k;Y<=l.j;++Y)if(z=new O(r,C,Y),u=f.a(z),u!==k){P=u.a;if(0==P)mc(u,"change",this.Qb,p,this),ag(a.La,f,z),P=Bf(i,z),se(a.Wb,u,g,P);else if(2==P)if(Kg(b.b,u.c())){N[r][z.toString()]=u;continue}else P=
Bf(i,z),S=P.x-e.x,P=P.y-e.y,S=Math.sqrt(S*S+P*P),Eg(t,S,u);else if(3==P)continue;S=p;i.c(z,n)}e=za(zb(N),Number);Oa(e);var fa=new Float32Array(4);D(e,function(a){xb(N[a],function(a){var d=xf(i,a.S),e=2*d.a()/v.height,f=2*(d.h-m.h)/v.width-1,g=2*(d.k-m.k)/v.height-1;fa[0]=2*d.b()/v.width;fa[1]=e;fa[2]=f;fa[3]=g;c.uniform4fv(this.u.pe,fa);Lg(b,a);c.drawArrays(5,0,4)},this)},this);t.Fa()||a.pa.push(oa(function(a,b){var c,d;for(c=0;!b.Fa()&&4>c;++c)d=b.remove(),Lg(a,d)},b,t));S?(this.b=l,this.r=m):(this.r=
this.b=k,a.N=j)}$f(a.Ka,f,r,l);Zf(a,f);ie(this.d);me(this.d,(d.center.x-m.h)/(m.m-m.h),(d.center.y-m.k)/(m.j-m.k));oe(this.d,d.rotation);ne(this.d,a.size.width*d.resolution/(m.m-m.h),a.size.height*d.resolution/(m.j-m.k));me(this.d,-0.5,-0.5)};function Mg(){this.l=0;this.c={};this.b=this.a=k}s=Mg.prototype;s.clear=function(){this.l=0;this.c={};this.b=this.a=k};function Kg(a,b){return a.c.hasOwnProperty(b)}s.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.T,c.J,this),c=c.P};s.get=function(a){a=this.c[a];if(a===this.b)return a.T;a===this.a?(this.a=this.a.P,this.a.ea=k):(a.P.ea=a.ea,a.ea.P=a.P);a.P=k;a.ea=this.b;this.b=this.b.P=a;return a.T};s.U=q("l");
s.V=function(){var a=Array(this.l),b=0,c;for(c=this.b;c!==k;c=c.ea)a[b++]=c.J;return a};s.K=function(){var a=Array(this.l),b=0,c;for(c=this.b;c!==k;c=c.ea)a[b++]=c.T;return a};function Ng(a){var b=a.a;delete a.c[b.J];b.P!==k&&(b.P.ea=k);a.a=b.P;a.a===k&&(a.b=k);--a.l}s.set=function(a,b){var c={J:a,P:k,ea:this.b,T:b};this.b===k?this.a=c:this.b.P=c;this.b=c;this.c[a]=c;++this.l};var Og=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function Pg(a,b){var c,d,e=Og.length;for(d=0;d<e;++d)try{if(c=a.getContext(Og[d],b),c!==k)return c}catch(f){}return k};function Qg(){this.a="precision mediump float;\n\nuniform mat4 uColorMatrix;\nuniform float uOpacity;\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n\n vec4 texColor = texture2D(uTexture, vTexCoord);\n vec4 color = uColorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * uOpacity;\n\n gl_FragColor = color;\n\n}"}B(Qg,xg);ba(Qg);
function Rg(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nuniform mat4 uTexCoordMatrix;\nuniform mat4 uVertexCoordMatrix;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_Position = uVertexCoordMatrix * vec4(aPosition, 0., 1.);\n vTexCoord = (uTexCoordMatrix * vec4(aTexCoord, 0., 1.)).st;\n}"}B(Rg,yg);ba(Rg);
function Sg(a,b){bg.call(this,a,b);this.c=Lb("CANVAS");this.c.height=a.clientHeight;this.c.width=a.clientWidth;this.c.className="ol-unselectable";Ob(a,this.c);this.r=j;this.B=new Xd(a.clientHeight,a.clientWidth);this.a=Pg(this.c,{alpha:p,antialias:j,depth:p,preserveDrawingBuffer:p,stencil:p});H(this.c,"webglcontextlost",this.Ca,p,this);H(this.c,"webglcontextrestored",this.Td,p,this);this.o=this.u=k;this.g={};this.f={};this.b=new Mg;this.i=0;this.G=Qg.Sa();this.Z=Rg.Sa();Tg(this)}B(Sg,bg);s=Sg.prototype;
s.la=function(a){Sg.s.la.call(this,a);a.a()&&fg(this.map)};
function Lg(a,b){var c=a.a,d=b.c();if(Kg(a.b,d))d=a.b.get(d),c.bindTexture(3553,d.Vb),9729!=d.rc&&(c.texParameteri(3553,10240,9729),d.rc=9729),9729!=d.sc&&(c.texParameteri(3553,10240,9729),d.sc=9729);else{var e=c.createTexture();c.bindTexture(3553,e);c.texImage2D(3553,0,6408,6408,5121,b.F());c.texParameteri(3553,10240,9729);c.texParameteri(3553,10241,9729);c.texParameteri(3553,10242,33071);c.texParameteri(3553,10243,33071);a.b.set(d,{Vb:e,rc:9729,sc:9729})}}
s.Pa=function(a){var b=k;a instanceof kg?b=new Ig(this,a):a instanceof jg&&(b=new Bg(this,a));return b};s.p=function(){var a=this.a;a.isContextLost()||(xb(this.f,function(b){a.deleteProgram(b)}),xb(this.g,function(b){a.deleteShader(b)}),this.b.forEach(function(b){b===k||a.deleteTexture(b.Vb)}));Sg.s.p.call(this)};s.hd=function(a,b){for(var c=this.a,d;1024<this.b.U()-this.i;){d=this.b.a.T;if(d===k)if(+this.b.a.J==b.time)break;else--this.i;else c.deleteTexture(d.Vb);Ng(this.b)}};s.Cb=q("c");
function Jg(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,Ug(a,b));e.attachShader(f,Ug(a,c));e.linkProgram(f);return a.f[d]=f}function Ug(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.Q());d.compileShader(e);return a.g[c]=e}s.Ca=function(a){a.w();this.o=this.u=k;this.g={};this.f={};this.b.clear();this.i=0;xb(this.d,function(a){a.Ca()})};s.Td=function(){Tg(this);fg(this.map)};
function Tg(a){a=a.a;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}s.Sb=function(a){Sg.s.Sb.call(this,a);a.a()&&fg(this.map)};
s.ib=function(a){var b=this.a;if(a===k)return this.r&&(Cc(this.c,p),this.r=p),p;this.b.set(a.time.toString(),k);++this.i;D(a.bb,function(b){var c=a.ab[y(b)];c.visible&&c.nb&&eg(this,b).da(a,c)},this);var c=a.size;this.B.width==c.width&&this.B.height==c.height||(this.c.width=c.width,this.c.height=c.height,this.B=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=Jg(this,this.G,this.Z);b.useProgram(c);
this.u===k&&(this.u={ta:b.getAttribLocation(c,"aPosition"),ua:b.getAttribLocation(c,"aTexCoord"),me:b.getUniformLocation(c,"uColorMatrix"),oe:b.getUniformLocation(c,"uTexCoordMatrix"),qe:b.getUniformLocation(c,"uVertexCoordMatrix"),ne:b.getUniformLocation(c,"uOpacity"),Xb:b.getUniformLocation(c,"uTexture")});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.u.ta);
b.vertexAttribPointer(this.u.ta,2,5126,p,16,0);b.enableVertexAttribArray(this.u.ua);b.vertexAttribPointer(this.u.ua,2,5126,p,16,8);b.uniform1i(this.u.Xb,0);D(a.bb,function(c){var d=a.ab[y(c)];d.visible&&d.nb&&(d=eg(this,c),b.uniformMatrix4fv(this.u.oe,p,d.ic()),b.uniformMatrix4fv(this.u.qe,p,d.kc()),b.uniformMatrix4fv(this.u.me,p,Ag(d)),b.uniform1f(this.u.ne,c.e()),b.bindTexture(3553,d.jc()),b.drawArrays(5,0,4))},this);this.r||(Cc(this.c,j),this.r=j);dg(a);1024<this.b.U()-this.i&&a.pa.push(na(this.hd,
this))};function Vg(){if(!("WebGLRenderingContext"in w))return p;try{var a=Lb("CANVAS");return Pg(a)!==k}catch(b){return p}};var Wg={},Xg={Ae:"canvas",Fe:"dom",lf:"webgl"},Yg=["webgl","canvas","dom"],cg="layers";
function V(a){var b,c;L.call(this);var d={};d[cg]=x(a.layers)?a.layers:new M;d.view=x(a.view)?a.view:new T;c=bg;var e;e=x(a.renderers)?a.renderers:x(a.renderer)?[a.renderer]:Yg;var f;for(b=0;b<e.length;++b)if(f=e[b],"canvas"==f){if(pg()){c=og;break}}else if("dom"==f){if(qd()){c=vg;break}}else if("webgl"==f&&Vg()){c=Sg;break}e=[];(x(a.attributionControl)?a.attributionControl:1)&&e.push(new Df({}));if(x(a.zoomControl)?a.zoomControl:1)e.push(new Ff({delta:x(a.zoomDelta)?a.zoomDelta:4}));if(x(a.interactions))b=
a.interactions;else{b=new M;(x(a.rotate)?a.rotate:1)&&b.push(new Of(If));if(x(a.doubleClickZoom)?a.doubleClickZoom:1)b.push(new Hf(x(a.zoomDelta)?a.zoomDelta:4));(x(a.dragPan)?a.dragPan:1)&&b.push(new Mf(Jf,new $e(-0.005,0.05,100)));f=x(a.keyboardPanOffset)?a.keyboardPanOffset:80;if(x(a.keyboard)?a.keyboard:1)b.push(new Rf(f)),b.push(new Sf);if(x(a.mouseWheelZoom)?a.mouseWheelZoom:1)b.push(new Tf(x(a.mouseWheelZoomDelta)?a.mouseWheelZoomDelta:1));(x(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Qf(Kf))}a=
ga(a.target)?document.getElementById(a.target):a.target;this.c=new sd(this.he,h,this);Wb(this,this.c);this.Lc=ee();this.Oc=ee();this.d=k;this.f=0;this.g=p;this.C=a;this.z=k;this.b=Jb("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.C.appendChild(this.b);this.o=Jb("DIV","ol-overlaycontainer");H(this.o,["click",Ld?"touchstart":"mousedown"],$b);this.b.appendChild(this.o);a=
new ff(this);H(a,yb(of),this.zc,p,this);Wb(this,a);a=new Bd(document);H(a,"key",this.nc,p,this);Wb(this,a);a=new Id(this.b);H(a,"mousewheel",this.nc,p,this);Wb(this,a);this.qa=b;this.vb=new c(this.b,this);Wb(this,this.vb);this.Rc=new wd;H(this.Rc,"resize",this.oc,p,this);this.r=[];this.tb=[];this.Nc=na(this.Nd,this);this.G=new re(na(this.pd,this));H(this,Rd("view"),this.Rd,p,this);H(this,Rd("size"),this.Pd,p,this);H(this,Rd("backgroundColor"),this.Ad,p,this);this.hb(d);this.oc();D(e,function(a){a.a(this)},
this)}B(V,L);V.prototype.B=function(a){tf(this);this.r.push(a)};V.prototype.Kc=function(a){tf(this);Array.prototype.push.apply(this.r,a)};V.prototype.p=function(){Pb(this.b);V.s.p.call(this)};V.prototype.Z=function(){return this.get("backgroundColor")};V.prototype.getBackgroundColor=V.prototype.Z;function df(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];le(c.Bc,d,d);return new K(d[0],d[1])}V.prototype.Mc=q("qa");V.prototype.i=function(){return this.get(cg)};V.prototype.getLayers=V.prototype.i;
function Nf(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];le(c.ec,d,d);return new bf(d[0],d[1])}V.prototype.e=function(){return this.get("size")};V.prototype.getSize=V.prototype.e;V.prototype.a=function(){return this.get("view")};V.prototype.getView=V.prototype.a;s=V.prototype;s.pd=function(a,b,c){var d=this.d;if(d===k||!(b in d.La)||!d.La[b][a.S.toString()])return Infinity;b=d.q.center;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};s.nc=function(a,b){this.zc(new cf(b||a.type,this,a))};
s.zc=function(a){a.d=this.d;var b=this.qa.a;if(J(this,a)!==p)for(var c=b.length-1;0<=c&&!(b[c].oa(a),a.Va);c--);};
s.Nd=function(){var a=this.G,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.c(),delete a.b[e]):(e[0]=f,b[d++]=e);b.length=d;for(b=(a.a.length>>1)-1;0<=b;b--)ue(a,b);for(a=this.G;0<a.a.length&&a.c<a.e;)b=a,d=b.a,c=d[0][1],1==d.length?d.length=0:(d[0]=d.pop(),ue(b,0)),d=c.c(),delete b.b[d],b=c,mc(b,"change",a.f,p,a),0==b.a&&(b.a=1,b.d=[mc(b.b,"error",b.g,p,b),mc(b.b,"load",b.i,p,b)],b.b.src=b.f),++a.c;a=this.tb;for(b=0;b<a.length;++b)a[b](this,this.d);
a.length=0};s.Ad=function(){fg(this)};s.oc=function(){this.wb(new Xd(this.C.clientWidth,this.C.clientHeight))};s.Pd=function(){fg(this)};s.Sd=function(){fg(this)};s.Rd=function(){this.z!==k&&(I(this.z),this.z=k);var a=this.a();a!=k&&(this.z=H(a,"changed",this.Sd,p,this));fg(this)};s.Ea=function(){var a=this.a(),b;if(b=x(a)){if(a=a.Ea())a=this.e()!=k;b=a}return b};function fg(a){a.c.L==k&&(0===a.f?(a=a.c,td(a),a.Db()):a.g=j)}function tf(a){0===a.f?a.c.L!=k||a.c.start():a.g=j}
s.he=function(a){var b;if(0==this.f){var c=this.e();b=this.i();var d=x(b)?b.a:h;b=this.a();var e=x(b)?this.a():h,f=k;if(x(d)&&x(c)&&x(e)&&e.Ea()){var f=this.Z(),g=Ea(b.b),i={},r;for(b=0;b<d.length;++b){r=d[b];var n=i,l=y(r),m=r;r=m.b();var t=m.c(),u=m.d(),v=m.e(),C=m.Q().c(),z=m.f(),m=m.a();n[l]={brightness:x(r)?r:0,contrast:x(t)?t:1,hue:x(u)?u:0,opacity:x(v)?v:1,nb:C,saturation:x(z)?z:1,visible:x(m)?m:j}}b=e.Y();n=e.yc();l=e.ca();e=e.za();n={center:new K(b.x,b.y),projection:n,resolution:l,rotation:e};
f={N:p,backgroundColor:x(f)?f:new Wd,ec:this.Lc,extent:k,bb:d,ab:i,Bc:this.Oc,pa:[],size:c,Wb:this.G,time:a,Ka:{},q:n,v:g,La:{}}}a=this.r;for(b=d=0;b<a.length;++b)e=a[b],e(this,f)&&(a[d++]=e);a.length=d;if(f!==k){a=n.center;b=n.resolution;d=n.rotation;e=b*c.width/2;c=b*c.height/2;c=[new K(-e,-c),new K(-e,c),new K(e,-c),new K(e,c)];for(b=0;4>b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=ae.apply(k,c)}this.d=f;this.vb.ib(f);this.g=p;f!==k&&(f.N&&tf(this),Array.prototype.push.apply(this.tb,f.pa));J(this,
new af("postrender",this,f));w.setTimeout(this.Nc,0)}};s.je=function(a){this.set("backgroundColor",a)};V.prototype.setBackgroundColor=V.prototype.je;V.prototype.Pc=function(a){this.set(cg,a)};V.prototype.setLayers=V.prototype.Pc;V.prototype.wb=function(a){this.set("size",a)};V.prototype.setSize=V.prototype.wb;V.prototype.Qc=function(a){this.set("view",a)};V.prototype.setView=V.prototype.Qc;function sf(a,b,c){++a.f;try{b.call(c)}finally{0===--a.f&&a.g&&(a=a.c,td(a),a.Db())}}
Wg.$c=function(a){var b=w.location.search.substring(1),a=x(a)?a:new Yc(b);return md(a,"renderers")?a.get("renderers").split(","):md(a,"renderer")?[a.get("renderer")]:Yg};var Zg={xe:"bottom-left",ye:"bottom-right",gf:"top-left",hf:"top-right"};function W(a){L.call(this);this.b=Lb("DIV");this.b.style.position="absolute";this.a={Oa:"",cb:"",pb:"",sb:"",visible:j};H(this,Rd("element"),this.Cd,p,this);H(this,Rd("map"),this.Kd,p,this);H(this,Rd("position"),this.Ld,p,this);H(this,Rd("positioning"),this.Md,p,this);x(a.element)&&this.Hc(a.element);x(a.position)&&this.o(a.position);x(a.positioning)&&this.set("positioning",a.positioning);x(a.map)&&this.i(a.map)}B(W,L);
W.prototype.f=function(){return this.get("element")};W.prototype.getElement=W.prototype.f;W.prototype.d=function(){return this.get("map")};W.prototype.getMap=W.prototype.d;W.prototype.g=function(){return this.get("position")};W.prototype.getPosition=W.prototype.g;W.prototype.e=function(){return this.get("positioning")};W.prototype.getPositioning=W.prototype.e;s=W.prototype;s.Cd=function(){Nb(this.b);var a=this.f();a!=k&&Mb(this.b,a)};
s.Kd=function(){this.c!==k&&(Pb(this.b),I(this.c),this.c=k);var a=this.d();a!=k&&(this.c=H(a,"postrender",this.be,p,this),$g(this),Mb(a.o,this.b))};s.be=function(){$g(this)};s.Ld=function(){$g(this)};s.Md=function(){$g(this)};s.Hc=function(a){this.set("element",a)};W.prototype.setElement=W.prototype.Hc;W.prototype.i=function(a){this.set("map",a)};W.prototype.setMap=W.prototype.i;W.prototype.o=function(a){this.set("position",a)};W.prototype.setPosition=W.prototype.o;
function $g(a){var b=a.d(),c=a.g();if(!x(b)||!b.Ea()||!x(c))a.a.visible&&(Cc(a.b,p),a.a.visible=p);else{var c=Nf(b,c),d=b.e(),b=a.b.style,e=a.e();if("bottom-right"==e||"top-right"==e){""!==a.a.cb&&(a.a.cb=b.left="");var f=Math.round(d.width-c.x)+"px";a.a.pb!=f&&(a.a.pb=b.right=f)}else""!==a.a.pb&&(a.a.pb=b.right=""),f=Math.round(c.x)+"px",a.a.cb!=f&&(a.a.cb=b.left=f);"top-left"==e||"top-right"==e?(""!==a.a.Oa&&(a.a.Oa=b.bottom=""),c=Math.round(c.y)+"px",a.a.sb!=c&&(a.a.sb=b.top=c)):(""!==a.a.sb&&
(a.a.sb=b.top=""),c=Math.round(d.height-c.y)+"px",a.a.Oa!=c&&(a.a.Oa=b.bottom=c));a.a.visible||(Cc(a.b,j),a.a.visible=j)}};/*
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 ah(a,b){this.a=[];this.f=a;this.e=b||k}s=ah.prototype;s.fa=p;s.Ba=p;s.Ha=0;s.Jc=p;s.Wc=p;s.Uc=0;s.dc=function(a,b){bh(this,a,b);this.Ha--;0==this.Ha&&this.fa&&ch(this)};function bh(a,b,c){a.fa=j;a.b=c;a.Ba=!b;ch(a)}function dh(a){if(a.fa){if(!a.Jc)throw new eh(a);a.Jc=p}}function fh(a){return Aa(a.a,function(a){return ha(a[1])})}
function ch(a){a.c&&(a.fa&&fh(a))&&(w.clearTimeout(a.c),delete a.c);a.d&&(a.d.Uc--,delete a.d);for(var b=a.b,c=p,d=p;a.a.length&&0==a.Ha;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Ba?g:f)try{var i=f.call(e||a.e,b);x(i)&&(a.Ba=a.Ba&&(i==b||i instanceof Error),a.b=b=i);b instanceof ah&&(d=j,a.Ha++)}catch(r){b=r,a.Ba=j,fh(a)||(c=j)}}a.b=b;d&&a.Ha&&(d=b,i=na(a.dc,a,j),f=na(a.dc,a,p),d.a.push([i,f,h]),d.fa&&ch(d),b.Wc=j);c&&(a.c=w.setTimeout(function(){throw b;},0))}
function eh(a){qa.call(this);this.a=a}B(eh,qa);eh.prototype.message="Deferred has already fired";eh.prototype.name="AlreadyCalledError";function gh(a,b){var c=b||{},d=c.document||document,e=Lb("SCRIPT"),f={Gc:e,rb:h},g=new ah(hh,f),i=k,r=c.timeout!=k?c.timeout:5E3;0<r&&(i=window.setTimeout(function(){ih(e,j);var b=new jh(kh,"Timeout reached for loading script "+a);dh(g);bh(g,p,b)},r),f.rb=i);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)ih(e,c.bc||p,i),dh(g),bh(g,j,k)};e.onerror=function(){ih(e,j,i);var b=new jh(lh,"Error while loading script "+a);dh(g);bh(g,p,b)};Gb(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 hh(){if(this&&this.Gc){var a=this.Gc;a&&"SCRIPT"==a.tagName&&ih(a,j,this.rb)}}function ih(a,b,c){c!=k&&w.clearTimeout(c);a.onload=aa;a.onerror=aa;a.onreadystatechange=aa;b&&window.setTimeout(function(){Pb(a)},0)}var lh=0,kh=1;function jh(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);qa.call(this,c);this.code=a}B(jh,qa);function mh(a){this.b=new Tc(a);this.a="jsonp";this.rb=5E3}var nh=0;function oh(a,b){w._callbacks_[a]&&(b?delete w._callbacks_[a]:w._callbacks_[a]=aa)};function ph(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 qh(za(c,ph))}return function(b){return b===k?h:a.replace("{z}",b.n).replace("{x}",b.x).replace("{y}",b.y)}}function qh(a){return function(b){if(b!==k){var c=ub(b.hash(),a.length);return a[c](b)}}}
function rh(a,b){return function(c){if(c!==k)return c=xf(b,c),Oc([a,"&","BBOX","=",encodeURIComponent(String([c.h,c.k,c.m,c.j].join()))])}}function sh(){}function th(a,b){return function(c){return c===k?h:b(a(c))}};function uh(a,b,c){qe.call(this,a);this.f=b;this.b=new Image;c!==k&&(this.b.crossOrigin=c);this.e={};this.d=k}B(uh,qe);uh.prototype.F=function(a){if(x(a)){var b=y(a);if(b in this.e)return this.e[b];a=Ab(this.e)?this.b:this.b.cloneNode(p);return this.e[b]=a}return this.b};uh.prototype.c=q("f");uh.prototype.g=function(){this.a=3;D(this.d,I);this.d=k;J(this,"change")};uh.prototype.i=function(){this.a=2;D(this.d,I);this.d=k;J(this,"change")};function vh(a){Mg.call(this);this.d=x(a)?a:512}B(vh,Mg);vh.prototype.ya=function(a){for(var b,c;this.U()>this.d&&!(b=this.a.T,c=b.S.n.toString(),c in a&&a[c].contains(b.S));)Ng(this)};function wh(a){Cf.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.$=x(a.$)?a.$:sh;this.r=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.b=new vh}B(wh,Cf);wh.prototype.d=function(){return this.b.U()>this.b.d};wh.prototype.ya=function(a){this.b.ya(a)};wh.prototype.a=function(a){var b=a.toString();if(Kg(this.b,b))return this.b.get(b);var c=this.$(a);x(c)?(a=new uh(a,c,this.r),this.b.set(b,a)):a=k;return a};function xh(a){var b=Array(a.maxZoom+1),c;for(c=0;c<=a.maxZoom;++c)b[c]=2*Me/(256<<c);wf.call(this,{extent:Ne,origin:new K(-Me,Me),resolutions:b,tileSize:new Xd(256,256)})}B(xh,wf);xh.prototype.c=function(a,b,c){for(var d=a.x,e=a.y,a=a.n,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new ve(d,e,d,e);if(b.call(c,a,f))break}};var yh={ve:"Aerial",we:"AerialWithLabels",Qe:"Road",Oe:"OrdnanceSurvey",Ce:"CollinsBart"};
function zh(a){wh.call(this,{projection:He("EPSG:3857")});this.ad=x(a.culture)?a.culture:"en-us";this.e=p;var b=new Tc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new mh(b),a={include:"ImageryProviders",key:a.key},c=na(this.i,this),a=a||k,d="_"+(nh++).toString(36)+pa().toString(36);w._callbacks_||(w._callbacks_={});var e=b.b.O();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&jd(e,f,a[f]);c&&(w._callbacks_[d]=function(a){oh(d,j);c.apply(h,arguments)},jd(e,b.a,"_callbacks_."+
d));f=gh(e.toString(),{timeout:b.rb,bc:j});f.a.push([k,function(){oh(d,p)},h]);f.fa&&ch(f)}B(zh,wh);
zh.prototype.i=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new xh({maxZoom:d,tileSize:new Xd(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.$=th(function(a){if(a.n<c||d<a.n)return k;var b=1<<a.n,e=-a.y-1;return 0>e||b<=e?k:new O(a.n,ub(a.x,b),e)},qh(za(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.ad);return function(a){return a===k?h:c.replace("{quadkey}",pe(a))}})));var f=Je(He("EPSG:4326"),this.g);this.Na=
za(b.imageryProviders,function(a){var b=a.attribution,c={};D(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new $d(a[1],a[0],a[3],a[2])).transform(f),g,i;for(g=b;g<=d;++g)i=g.toString(),b=yf(e,a,e.a[g]),i in c?c[i].push(b):c[i]=[b]});return new Te(b,c)});this.e=j;J(this,"load")};zh.prototype.c=q("e");function X(a){L.call(this);this.a=k;Ah&&(H(this,Rd("projection"),this.o,p,this),this.G=navigator.geolocation.watchPosition(na(this.B,this),na(this.C,this),a))}B(X,L);X.prototype.p=function(){navigator.geolocation.clearWatch(this.G);X.s.p.call(this)};X.prototype.o=function(){var a=this.c();a!=k&&(this.b=Je(He("EPSG:4326"),a),this.a===k||this.set("position",this.b(this.a)))};var Ah="geolocation"in navigator;
X.prototype.B=function(a){a=a.coords;this.set("accuracy",a.accuracy);this.set("altitude",a.altitude===k?h:a.altitude);this.set("altitudeAccuracy",a.altitudeAccuracy===k?h:a.altitudeAccuracy);this.set("heading",a.heading===k?h:a.heading*Math.PI/180);this.a=new K(a.longitude,a.latitude);this.set("position",this.b(this.a));this.set("speed",a.speed===k?h:a.speed)};X.prototype.C=function(){};X.prototype.d=function(){return this.get("accuracy")};X.prototype.getAccuracy=X.prototype.d;X.prototype.e=function(){return this.get("altitude")};
X.prototype.getAltitude=X.prototype.e;X.prototype.f=function(){return this.get("altitudeAccuracy")};X.prototype.getAltitudeAccuracy=X.prototype.f;X.prototype.g=function(){return this.get("heading")};X.prototype.getHeading=X.prototype.g;X.prototype.r=function(){return this.get("position")};X.prototype.getPosition=X.prototype.r;X.prototype.c=function(){return this.get("projection")};X.prototype.getProjection=X.prototype.c;X.prototype.i=function(){return this.get("speed")};X.prototype.getSpeed=X.prototype.i;
X.prototype.z=function(a){this.set("projection",a)};X.prototype.setProjection=X.prototype.z;X.prototype.b=function(a){return a};function Bh(a){var b=Jb("DIV",{"class":"ol-mouse-position"});uf.call(this,{element:b,map:a.map,target:a.target});this.o=a.projection;this.g=a.coordinateFormat;this.Z=x(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.r=Ke;this.d=this.e=this.z=k}B(Bh,uf);Bh.prototype.G=function(a){a=a.d;a===k?this.c=k:this.c=a.q.projection;Ch(this,this.e)};Bh.prototype.B=function(a){a=zc(a,this.b.b);a=new bf(a.x,a.y);Ch(this,a);this.e=a};Bh.prototype.C=function(){Ch(this,k);this.e=k};
Bh.prototype.a=function(a){this.d!==k&&(D(this.d,I),this.d=k);Bh.s.a.call(this,a);if(a!==k){var b=a.b;this.d=[H(b,"mousemove",this.B,p,this),H(b,"mouseout",this.C,p,this),H(a,"postrender",this.G,p,this)]}};function Ch(a,b){var c=a.Z;if(b!==k){a.z!=a.c&&(a.r=x(a.o)?Je(a.c,a.o):Ke,a.z=a.c);var d=df(a.b,b);d!==k&&(d=a.r(d),c=x(a.g)?a.g(d):d.toString())}if(!x(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};function Dh(){this.a={}}B(Dh,Gf);Dh.prototype.b=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Dh.prototype.oa=function(a){if("key"==a.type){var b=this.a[a.a.Ta];b&&(b(),a.w())}};function Eh(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=p;b.validateOnParse=p;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 Fh(){}function Gh(a,b,c){c||(c={});var d=a.D[b.namespaceURI]||a.D[a.a];if(d){var e=b.localName||b.nodeName.split(":").pop();(d=d[e]||d["*"])&&d.apply(a,[b,c])}}function Z(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&&Gh(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}
Fh.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,r=a.length;i<r;++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 Hh(){function a(a,b){b.ke.push($(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),vf:a.getAttribute("locator"),ke:[]};b.gc.push(e);Z(this,a,e)}this.D={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];Z(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.Ef=p;b.Bb={version:a.getAttribute("version"),language:a.getAttribute("language"),gc:[]};Z(this,a,b.Bb)},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.Bb={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),gc:[]};Z(this,a,b.Bb)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}}}B(Hh,Fh);
Hh.prototype.Ia=function(a){"string"==typeof a&&(a=Eh(a));var b={exceptionReport:k};a&&Z(this,a,b);return b};function Ih(a){this.c=a=a||{};this.Qa=a.Qa||k;this.version=a.version;this.profile=a.profile;a.Ma!==h?this.Ma=a.Ma:this.Ma=p;a.Tb!==h?this.Tb=a.Tb:this.Tb=p}
Ih.prototype.Ia=function(a,b){"string"==typeof a&&(a=Eh(a));var c;c=a.documentElement;var d;c?(d=this.version,d||(d=c.getAttribute("version"),d||(d=this.Qa))):d=this.version||this.Qa;d=(c=d)||this.Qa;var e=this.profile?"_"+this.profile:"";if(!this.a||this.a.VERSION!=d){var f=this.b["v"+d.replace(/\./g,"_")+e];if(!f&&(""!==e&&this.Ma&&(e="",f=this.b["v"+d.replace(/\./g,"_")+e]),!f))throw"Can't find a parser for version "+d+e;this.a=new f(this.c)}this.a=this.a;d=this.a.Ia(a,b);e=this.a.fd||k;e!==k&&
d[e]===h&&(d.error=(new Hh).Ia(a));d.version=c;return d};function Jh(){this.a="http://www.opengis.net/wms";this.fd="service";this.D={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};Z(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.Cf=a;return b},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ContactInformation:function(a,b){b.Zc={};Z(this,a,b.Zc)},ContactPersonPrimary:function(a,b){b.de={};Z(this,a,b.de)},ContactPerson:function(a,b){b.xf=$(a)},ContactOrganization:function(a,b){b.wf=$(a)},ContactPosition:function(a,b){b.position=$(a)},ContactAddress:function(a,b){b.Yc={};Z(this,a,b.Yc)},AddressType:function(a,b){b.type=$(a)},Address:function(a,
b){b.of=$(a)},City:function(a,b){b.city=$(a)},StateOrProvince:function(a,b){b.Df=$(a)},PostCode:function(a,b){b.zf=$(a)},Country:function(a,b){b.country=$(a)},ContactVoiceTelephone:function(a,b){b.yf=$(a)},ContactFacsimileTelephone:function(a,b){b.qf=$(a)},ContactElectronicMailAddress:function(a,b){b.pf=$(a)},Fees:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.rf=c)},AccessConstraints:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.nf=c)},Capability:function(a,b){b.va={vc:[],layers:[]};
Z(this,a,b.va)},Request:function(a,b){b.Ec={};Z(this,a,b.Ec)},GetCapabilities:function(a,b){b.qd={I:[]};Z(this,a,b.qd)},Format:function(a,b){da(b.I)?b.I.push($(a)):b.sf=$(a)},DCPType:function(a,b){Z(this,a,b)},HTTP:function(a,b){Z(this,a,b)},Get:function(a,b){b.get={};Z(this,a,b.get);b.href||(b.href=b.get.href)},Post:function(a,b){b.ee={};Z(this,a,b.ee);b.href||(b.href=b.get.href)},GetMap:function(a,b){b.mc={I:[]};Z(this,a,b.mc)},GetFeatureInfo:function(a,b){b.lc={I:[]};Z(this,a,b.lc)},Exception:function(a,
b){b.gd={I:[]};Z(this,a,b.gd)},Layer:function(a,b){var c,d;b.va?(d=b.va,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,r=a.getAttribute("noSubsets"),n=a.getAttribute("fixedWidth"),l=a.getAttribute("fixedHeight"),e=c||{},f={vc:[],Ub:c?[].concat(c.Ub):[],R:{},Yd:[],bbox:{},fb:e.fb,wa:{},zb:{},Ud:{},$a:[],
ge:f&&""!==f?"1"===f||"true"===f:e.ge||p,Vc:g!==k?parseInt(g,10):e.Vc||0,ce:i?"1"===i||"true"===i:e.ce||p,ae:r!==k?"1"===r||"true"===r:e.ae||p,ld:n!==k?parseInt(n,10):e.ld||0,kd:l!==k?parseInt(l,10):e.kd||0,Pb:e.Pb,Ob:e.Ob,attribution:e.attribution};c&&(Cb(f.R,e.R),Cb(f.bbox,e.bbox),Cb(f.wa,e.wa),Cb(f.zb,e.zb));b.vc.push(f);f.va=d;Z(this,a,f);delete f.va;f.name&&(c=f.name.split(":"),g=d.Ec,e=g.lc,0<c.length&&(f.prefix=c[0]),d.layers.push(f),f.I===h&&(f.I=g.mc.I),f.Vd===h&&e&&(f.Vd=e.I))},Attribution:function(a,
b){b.attribution={};Z(this,a,b.attribution)},LogoURL:function(a,b){b.Xd={width:a.getAttribute("width"),height:a.getAttribute("height")};Z(this,a,b.Xd)},Style:function(a,b){var c={};b.Ub.push(c);Z(this,a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;Z(this,a,c)},MetadataURL:function(a,b){var c={type:a.getAttribute("type")};b.Yd.push(c);Z(this,a,c)},DataURL:function(a,b){b.cd={};Z(this,a,b.cd)},FeatureListURL:function(a,b){b.jd={};Z(this,
a,b.jd)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};Z(this,a,d);b.zb[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.Ud[c]=$(a)},KeywordList:function(a,b){Z(this,a,b)},SRS:function(a,b){b.R[$(a)]=j}}}}B(Jh,Fh);Jh.prototype.Ia=function(a){"string"==typeof a&&(a=Eh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Gh(this,a,b);return b};function Kh(){Jh.call(this);var a=this.D["http://www.opengis.net/wms"].BoundingBox;Cb(this.D["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){Z(this,a,c)},Keyword:function(a,c){c.$a&&c.$a.push({value:$(a)})},DescribeLayer:function(a,c){c.dd={I:[]};Z(this,a,c.dd)},GetLegendGraphic:function(a,c){c.rd={I:[]};Z(this,a,c.rd)},GetStyles:function(a,c){c.sd={I:[]};Z(this,a,c.sd)},PutStyles:function(a,c){c.fe={I:[]};Z(this,a,c.fe)},UserDefinedSymbolization:function(a,c){var d={Ff:1==parseInt(a.getAttribute("SupportSLD"),
10),Gf:1==parseInt(a.getAttribute("UserLayer"),10),Hf:1==parseInt(a.getAttribute("UserStyle"),10),Bf:1==parseInt(a.getAttribute("RemoteWFS"),10)};c.If=d},LatLonBoundingBox:function(a,c){c.fb=[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.R=b.getAttribute("SRS");c.bbox[d.R]=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.Ob=parseFloat(39.37*(d/f)*g));e!=Number.POSITIVE_INFINITY&&(c.Pb=parseFloat(39.37*(e/f)*g))},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),se:a.getAttribute("unitSymbol")};c.wa[d.name]=d},Extent:function(a,c){var d=a.getAttribute("name").toLowerCase();d in c.dimensions&&(d=c.wa[d],d.$d="1"===a.getAttribute("nearestValue"),d.Zd="1"===a.getAttribute("multipleValues"),d.bd="1"===a.getAttribute("current"),
d["default"]=a.getAttribute("default")||"",d.te=$(a).split(","))}})}B(Kh,Jh);function Lh(){Kh.call(this);this.version="1.1.0";Cb(this.D["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=$(a).split(/ +/),d=0,e=c.length;d<e;d++)b.R[c[d]]=j}})}B(Lh,Kh);function Mh(){Kh.call(this);this.version="1.1.1";Cb(this.D["http://www.opengis.net/wms"],{SRS:function(a,b){b.R[$(a)]=j}})}B(Mh,Kh);function Nh(){Mh.call(this);this.profile="WMSC";Cb(this.D["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.ue={le:[]};Z(this,a,b.ue)},TileSet:function(a,b){var c={R:{},bbox:{},resolutions:[]};Z(this,a,c);b.le.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.Ub=$(a)}})}B(Nh,Mh);function Oh(){Jh.call(this);var a=this.D["http://www.opengis.net/wms"].BoundingBox;Cb(this.D["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){Z(this,a,c)},LayerLimit:function(a,c){c.uf=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.R=b.getAttribute("CRS");c.bbox[d.R]=d},CRS:function(a,c){this.D["http://www.opengis.net/wms"].SRS.apply(this,arguments)},
EX_GeographicBoundingBox:function(a,c){c.fb=[];Z(this,a,c.fb)},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.Ob=parseFloat($(a)).toPrecision(16)},MaxScaleDenominator:function(a,c){c.Pb=parseFloat($(a)).toPrecision(16)},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),se:a.getAttribute("unitSymbol"),
$d:"1"===a.getAttribute("nearestValue"),Zd:"1"===a.getAttribute("multipleValues"),"default":a.getAttribute("default")||"",bd:"1"===a.getAttribute("current"),te:$(a).split(",")};c.wa[d.name]=d},Keyword:function(a,c){var d={value:$(a),Jf:a.getAttribute("vocabulary")};c.$a&&c.$a.push(d)}});this.D.sld={UserDefinedSymbolization:function(a,c){this.D["http://www.opengis.net/wms"].jf.apply(this,arguments);var d=a.getAttribute("InlineFeature");c.userSymbols.tf=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");
c.userSymbols.Af=1==parseInt(d,10)},DescribeLayer:function(a,c){this.D["http://www.opengis.net/wms"].Ke.apply(this,arguments)},GetLegendGraphic:function(a,c){this.D["http://www.opengis.net/wms"].Le.apply(this,arguments)}}}B(Oh,Jh);function Ph(a){a=a||{};a.defaultVersion="1.1.1";this.b={};this.b.v1_1_0=Lh;this.b.v1_1_1=Mh;this.b.v1_1_1_WMSC=Nh;this.b.v1_3_0=Oh;Ih.call(this,a)}B(Ph,Ih);function Qh(a,b){qe.call(this,a);this.a=2;this.e=a;this.d=b.b;this.b={}}B(Qh,qe);Qh.prototype.F=function(a){a=x(a)?y(a):-1;if(a in this.b)return this.b[a];var b=this.d,c=Lb("CANVAS");c.width=b.width;c.height=b.height;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b.width+0.5,b.height+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.e.toString(),b.width/2,b.height/2);return this.b[a]=c};
function Rh(a){Cf.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.b=new vh}B(Rh,Cf);Rh.prototype.d=function(){return this.b.U()>this.b.d};Rh.prototype.ya=function(a){this.b.ya(a)};Rh.prototype.a=function(a){var b=a.toString();if(Kg(this.b,b))return this.b.get(b);a=new Qh(a,this.tileGrid);this.b.set(b,a);return a};function Sh(a){var b=a.projection||He("EPSG:3857"),c=sh;x(a.$)?c=a.$:x(a.urls)?c=qh(za(a.urls,ph)):x(a.url)&&(c=ph(a.url));var d=new xh({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?th(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,i=-b.y-1;if(0>i||c<=i)return k;c=ub(b.x,c);return!Zd(xf(d,new O(b.n,c,b.y)),e)?k:new O(b.n,c,i)},c):th(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,d=-b.y-1;return 0>d||c<=d?k:new O(b.n,ub(b.x,c),d)},c);wh.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
extent:a.extent,projection:b,tileGrid:d,$:c})}B(Sh,wh);function Th(){Sh.call(this,{attributions:[new Te('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 Te('Data &copy; <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(Th,Sh);
function Uh(){Sh.call(this,{attributions:[new Te('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 Te("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(Uh,Sh);function Vh(){Sh.call(this,{attributions:[new Te('&copy; <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(Vh,Sh);function Wh(a){var b=Ge(a.projection),c=b.A(),c=x(a.extent)?a.extent:c,d=x(a.version)?a.version:"1.3",e={SERVICE:"WMS",VERSION:d,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:j};e["1.3"<=d?"CRS":"SRS"]=b.a;Cb(e,a.params);if(a.url)var f=Oc(Rc([a.url],e)),d=function(a,b){return Sc(f,"BBOX",[a.h,a.k,a.m,a.j].join(),"HEIGHT",b.height,"WIDTH",b.width)};else d=gg;hg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c,projection:b,resolutions:a.resolutions,Da:d});this.b=
k;this.e=1.5}B(Wh,hg);Wh.prototype.F=function(a,b){var c=b;this.a===k||(c=this.a[pf(this.a,c)]);var b=c,c=this.b,d;if(d=c!==k)if(d=c.e==b)d=c.A(),d=d.h<=a.h&&a.m<=d.m&&d.k<=a.k&&a.j<=d.j;if(d)return c;var c=a=new $d(a.h,a.k,a.m,a.j),e=this.e;d=c.b()/2*(e-1);e=c.a()/2*(e-1);c.h-=d;c.k-=e;c.m+=d;c.j+=e;return this.b=ig(this,a,b,new Xd(a.b()/b,a.a()/b))};var Xh={Te:"background",Ue:"labels",Ve:"lines",Xe:"2010",Ye:"2011",Ze:"2011-labels",$e:"2011-lines",af:"2011-lite",bf:"background",cf:"hybrid",df:"labels",ef:"lines",ff:"lite"},Yh={Se:"terrain",We:"toner",kf:"watercolor"},Zh={terrain:{type:"jpg",tc:4,maxZoom:18},toner:{type:"png",tc:0,maxZoom:20},watercolor:{type:"jpg",tc:3,maxZoom:16}};
function $h(a){var b=new Te('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.provider;x(a.flavor)&&(c+="-"+a.flavor);a=Zh[a.provider];Sh.call(this,{attributions:[b],maxZoom:a.maxZoom,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}B($h,Sh);function ai(a){var b=a.imageExtent,c=a.imageSize,d=b.a()/c.height,e=a.url;hg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Da:function(){return e},resolutions:[d]});this.b=ig(this,b,d,c)}B(ai,hg);ai.prototype.F=function(a){return Zd(a,this.b.A())?this.b:k};var bi=[];A("grid",function(a){bi.push(a)});function ci(a){wh.call(this,{projection:He("EPSG:3857")});this.e=p;a=this.i=gh(a.uri,{bc:j});a.a.push([this.o,k,this]);a.fa&&ch(a)}B(ci,wh);
ci.prototype.o=function(){var a=bi.pop(),b=He("EPSG:4326"),c,d;x(a.bounds)?(c=a.bounds,c=new $d(c[0],c[1],c[2],c[3]),this.f=d=c.transform(Je(b,this.g))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new xh({maxZoom:f});this.tileGrid=g;this.$=th(function(a){if(a.n<e||f<a.n)return k;var b=1<<a.n,c=-a.y-1;if(0>c||b<=c)return k;b=ub(a.x,b);return d!==k&&!Zd(xf(g,new O(a.n,b,a.y)),d)?k:new O(a.n,b,c)},qh(za(a.tiles,ph)));if(x(a.attribution)){b=d===k?b.A():d;c={};var i,r;for(i=e;i<=f;++i)r=i.toString(),c[r]=
[yf(g,b,g.a[i])];this.Na=[new Te(a.attribution,c)]}this.e=j;J(this,"load")};ci.prototype.c=q("e");function di(a){var b=Ge(a.projection),c=b.A(),d=x(a.extent)?a.extent:c,e=x(a.version)?a.version:"1.3",f,g;if(x(a.tileGrid))g=a.tileGrid;else{var i=a.maxZoom;g=b.A();for(var r=Math.max(g.m-g.h,g.j-g.k),n=x(h)?h:new Xd(256,256),i=Array((x(i)?i:18)+1),l=0,m=i.length;l<m;++l)i[l]=r/(n.width<<l);g=new wf({origin:be(g),resolutions:i,tileSize:n})}f=g;var t={SERVICE:"WMS",VERSION:e,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:j};g=f.b;t.WIDTH=g.width;t.HEIGHT=g.height;t["1.3"<=e?"CRS":"SRS"]=
b.a;Cb(t,a.params);a.urls?(e=za(a.urls,function(a){a=Oc(Rc([a],t));return rh(a,f)}),e=qh(e)):a.url?(e=Oc(Rc([a.url],t)),e=rh(e,f)):e=sh;wh.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:f,projection:b,$:th(function(a){if(f.a.length<=a.n)return k;var b=a.x,e=xf(f,a);d.h===c.h&&d.m===c.m&&(e=Math.ceil((d.m-d.h)/(e.m-e.h)),b=ub(b,e),e=xf(f,new O(a.n,b,a.y)));return!Zd(e,d)?k:new O(a.n,b,a.y)},e)})}B(di,wh);A("goog.require",aa);function ei(a){W.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}B(ei,W);A("ol.AnchoredElement",ei);A("ol.AnchoredElementPositioning",Zg);Zg.BOTTOM_LEFT="bottom-left";Zg.BOTTOM_RIGHT="bottom-right";Zg.TOP_LEFT="top-left";Zg.TOP_RIGHT="top-right";A("ol.Attribution",Te);A("ol.BingMapsStyle",yh);yh.AERIAL="Aerial";yh.AERIAL_WITH_LABELS="AerialWithLabels";yh.COLLINS_BART="CollinsBart";yh.ORDNANCE_SURVEY="OrdnanceSurvey";yh.ROAD="Road";
A("ol.Collection",M);M.prototype.clear=M.prototype.clear;M.prototype.forEach=M.prototype.forEach;M.prototype.getArray=M.prototype.md;M.prototype.getAt=M.prototype.nd;M.prototype.getLength=M.prototype.hc;M.prototype.insertAt=M.prototype.Xa;M.prototype.pop=M.prototype.xc;M.prototype.push=M.prototype.push;M.prototype.removeAt=M.prototype.Dc;M.prototype.setAt=M.prototype.ie;A("ol.Coordinate",K);K.toStringHDMS=function(a){return x(a)?Ic(a.y,"NS")+" "+Ic(a.x,"EW"):""};A("ol.Extent",$d);
A("ol.Geolocation",X);function fi(a){V.call(this,{attributionControl:a.attributionControl,doubleClickZoom:a.doubleClickZoom,dragPan:a.dragPan,interactions:a.interactions,keyboard:a.keyboard,keyboardPanOffset:a.keyboardPanOffset,layers:a.layers,mouseWheelZoom:a.mouseWheelZoom,mouseWheelZoomDelta:a.mouseWheelZoomDelta,renderer:a.renderer,renderers:a.renderers,shiftDragZoom:a.shiftDragZoom,target:a.target,view:a.view,zoomControl:a.zoomControl,zoomDelta:a.zoomDelta})}B(fi,V);A("ol.Map",fi);
V.prototype.addPreRenderFunction=V.prototype.B;V.prototype.addPreRenderFunctions=V.prototype.Kc;V.prototype.getInteractions=V.prototype.Mc;cf.prototype.getCoordinate=cf.prototype.b;A("ol.Object",L);L.prototype.bindTo=L.prototype.Sc;L.prototype.changed=L.prototype.Xc;L.prototype.get=L.prototype.get;L.prototype.notify=L.prototype.wc;L.prototype.set=L.prototype.set;L.prototype.setOptions=L.prototype.Ic;L.prototype.setValues=L.prototype.hb;L.prototype.unbind=L.prototype.Yb;L.prototype.unbindAll=L.prototype.re;
A("ol.Projection",Q);Q.addProjection=De;Q.getFromCode=He;Q.getTransform=Je;Q.getTransformFromCodes=Le;Q.transform=function(a,b,c){return Je(b,c)(a)};Q.transformWithCodes=function(a,b,c){return Le(b,c)(a)};Q.prototype.getCode=Q.prototype.b;Q.prototype.getExtent=Q.prototype.A;Q.prototype.getUnits=Q.prototype.c;A("ol.ProjectionUnits",xe);xe.DEGREES="degrees";xe.METERS="m";A("ol.RendererHint",Xg);Xg.CANVAS="canvas";Xg.DOM="dom";Xg.WEBGL="webgl";A("ol.RendererHints",Wg);Wg.createFromQueryData=Wg.$c;
function gi(a){T.call(this,{center:a.center,maxResolution:a.maxResolution,numZoomLevels:a.numZoomLevels,projection:a.projection,resolution:a.resolution,resolutions:a.resolutions,rotation:a.rotation,zoom:a.zoom,zoomFactor:a.zoomFactor})}B(gi,T);A("ol.View2D",gi);A("ol.animation",Ze);Ze.bounce=Ze.Tc;Ze.pan=Ze.jb;Ze.rotate=Ze.rotate;function hi(a){Df.call(this,{map:a.map,target:a.target})}B(hi,Df);A("ol.control.Attribution",hi);Df.prototype.setMap=Df.prototype.a;
function ii(a){Bh.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}B(ii,Bh);A("ol.control.MousePosition",ii);Bh.prototype.setMap=Bh.prototype.a;function ji(a){Ff.call(this,{delta:a.delta,map:a.map,target:a.target})}B(ji,Ff);A("ol.control.Zoom",ji);Ff.prototype.setMap=Ff.prototype.a;A("ol.interaction.Keyboard",Dh);Dh.prototype.addCallback=Dh.prototype.b;
function ki(a){R.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(ki,jg);A("ol.layer.ImageLayer",ki);function li(a){R.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(li,kg);A("ol.layer.TileLayer",li);A("ol.parser.ogc.WMSCapabilities",Ph);Ph.prototype.read=Ph.prototype.Ia;A("ol.source.BingMaps",zh);
function mi(a){Rh.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}B(mi,Rh);A("ol.source.DebugTileSource",mi);A("ol.source.MapQuestOSM",Th);A("ol.source.MapQuestOpenAerial",Uh);A("ol.source.OpenStreetMap",Vh);A("ol.source.SingleImageWMS",Wh);A("ol.source.Stamen",$h);A("ol.source.StamenFlavor",Xh);Xh.TERRAIN_BACKGROUND="background";Xh.TERRAIN_LABELS="labels";Xh.TERRAIN_LINES="lines";Xh.TONER_2010="2010";Xh.TONER_2011="2011";Xh.TONER_2011_LABELS="2011-labels";
Xh.TONER_2011_LINES="2011-lines";Xh.TONER_2011_LITE="2011-lite";Xh.TONER_BACKGROUND="background";Xh.TONER_HYBRID="hybrid";Xh.TONER_LABELS="labels";Xh.TONER_LINES="lines";Xh.TONER_LITE="lite";A("ol.source.StamenProvider",Yh);Yh.TERRAIN="terrain";Yh.TONER="toner";Yh.WATERCOLOR="watercolor";A("ol.source.StaticImage",ai);A("ol.source.TileJSON",ci);A("ol.source.TiledWMS",di);function ni(a){wf.call(this,{extent:a.extent,origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize})}
B(ni,wf);A("ol.tilegrid.TileGrid",ni);function oi(a){xh.call(this,{maxZoom:a.maxZoom})}B(oi,xh);A("ol.tilegrid.XYZ",oi);Ze.ze={};Ze.Pe={};Ze.Re={};Ze.mf={};})();