// OpenLayers 3. see http://ol3js.org/ (function(){function aa(){return function(a){return a}}function ba(){return function(){}}function k(a){return function(){return this[a]}}function ca(a){return function(){return a}}var l,da=da||{},ea=this;function fa(){}function ga(a){a.jb=function(){return a.me?a.me:a.me=new a}} function ha(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 s(a){return void 0!==a}function ia(a){return null===a}function ja(a){return"array"==ha(a)}function ka(a){var b=ha(a);return"array"==b||"object"==b&&"number"==typeof a.length}function na(a){return"string"==typeof a}function oa(a){return"number"==typeof a}function pa(a){return"function"==ha(a)}function ra(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function sa(a){return a[ta]||(a[ta]=++ua)} var ta="closure_uid_"+(1E9*Math.random()>>>0),ua=0;function va(a,b,c){return a.call.apply(a.bind,arguments)}function wa(a,b,c){if(!a)throw Error();if(2/g,Ia=/\"/g,Da=/[&<>\"]/;function Ja(a){a=s(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);b=Math.max(0,2-b);return Array(b+1).join("0")+a} function Ka(a,b){for(var c=0,d=Ba(String(a)).split("."),e=Ba(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g(0==r[1].length?0:parseInt(r[1],10))?1:0)||((0==q[2].length)<(0==r[2].length)? -1:(0==q[2].length)>(0==r[2].length)?1:0)||(q[2]r[2]?1:0)}while(0==c)}return c};var La,Ma,Oa,Pa,Qa,Ra,Sa;function Ta(){return ea.navigator?ea.navigator.userAgent:null}function Wa(){return ea.navigator}Pa=Oa=Ma=La=!1;var Xa;if(Xa=Ta()){var Ya=Wa();La=0==Xa.lastIndexOf("Opera",0);Ma=!La&&(-1!=Xa.indexOf("MSIE")||-1!=Xa.indexOf("Trident"));Oa=!La&&-1!=Xa.indexOf("WebKit");Pa=!La&&!Oa&&!Ma&&"Gecko"==Ya.product}var Za=La,$a=Ma,bb=Pa,cb=Oa,db,eb=Wa();db=eb&&eb.platform||"";Qa=-1!=db.indexOf("Mac");Ra=-1!=db.indexOf("Win");Sa=-1!=db.indexOf("Linux"); var fb=!!Wa()&&-1!=(Wa().appVersion||"").indexOf("X11");function gb(){var a=ea.document;return a?a.documentMode:void 0}var hb;a:{var ib="",jb;if(Za&&ea.opera)var kb=ea.opera.version,ib="function"==typeof kb?kb():kb;else if(bb?jb=/rv\:([^\);]+)(\)|;)/:$a?jb=/\b(?:MSIE|rv)\s+([^\);]+)(\)|;)/:cb&&(jb=/WebKit\/(\S+)/),jb)var lb=jb.exec(Ta()),ib=lb?lb[1]:"";if($a){var mb=gb();if(mb>parseFloat(ib)){hb=String(mb);break a}}hb=ib}var nb={};function ob(a){return nb[a]||(nb[a]=0<=Ka(hb,a))} var pb=ea.document,qb=pb&&$a?gb()||("CSS1Compat"==pb.compatMode?parseInt(hb,10):5):void 0;var rb="https:"===ea.location.protocol,sb=$a&&!ob("9.0")&&""!==hb;function tb(a){Error.captureStackTrace?Error.captureStackTrace(this,tb):this.stack=Error().stack||"";a&&(this.message=String(a))}v(tb,Error);tb.prototype.name="CustomError";var ub=Array.prototype,vb=ub.indexOf?function(a,b,c){return ub.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(na(a))return na(b)&&1==b.length?a.indexOf(b,c):-1;for(;cc?null:na(a)?a.charAt(c):a[c]}function Ab(a,b,c){for(var d=a.length,e=na(a)?a.split(""):a,f=0;f=arguments.length?ub.slice.call(a,b):ub.slice.call(a,b,c)}function Hb(a,b){ub.sort.call(a,b||Ib)}function Jb(a,b){if(!ka(a)||!ka(b)||a.length!=b.length)return!1;for(var c=a.length,d=Kb,e=0;eb?1:a>=1;return b.join("")}Lb.prototype.toString=function(){return Nb(this.a,this.x,this.y)};function Pb(a,b,c,d){this.a=a;this.d=b;this.b=c;this.c=d}function Qb(a,b,c,d,e){return s(e)?(e.a=a,e.d=b,e.b=c,e.c=d,e):new Pb(a,b,c,d)}Pb.prototype.contains=function(a){return this.a<=a.x&&a.x<=this.d&&this.b<=a.y&&a.y<=this.c};function Rb(a){this.c=a.html;this.a=s(a.tileRanges)?a.tileRanges:null};var Sb,Tb=!$a||$a&&9<=qb;!bb&&!$a||$a&&$a&&9<=qb||bb&&ob("1.9.1");$a&&ob("9");function Ub(a){a=a.className;return na(a)&&a.match(/\S+/g)||[]}function Vb(a,b){for(var c=Ub(a),d=Gb(arguments,1),e=c.length+d.length,f=c,g=0;gc*b?c+b:c}function Zb(a){return a*Math.PI/180};function $b(a,b){this.x=s(a)?a:0;this.y=s(b)?b:0}l=$b.prototype;l.L=function(){return new $b(this.x,this.y)};l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};l.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};l.scale=function(a,b){var c=oa(b)?b:a;this.x*=a;this.y*=c;return this};function ac(a,b){this.width=a;this.height=b}l=ac.prototype;l.L=function(){return new ac(this.width,this.height)};l.ja=function(){return!(this.width*this.height)};l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; l.scale=function(a,b){var c=oa(b)?b:a;this.width*=a;this.height*=c;return this};function bc(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function dc(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function ec(a){var b=0,c;for(c in a)b++;return b}function fc(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function gc(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function hc(a){for(var b in a)return!1;return!0}function ic(a){for(var b in a)delete a[b]}function jc(a,b){b in a&&delete a[b]}function w(a,b,c){return b in a?a[b]:c} function kc(a,b){var c=[];return b in a?a[b]:a[b]=c}function lc(a){var b={},c;for(c in a)b[c]=a[c];return b}var mc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function nc(a,b){for(var c,d,e=1;e=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:!1}; l.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};l.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};l.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; l.scale=function(a,b){var c=oa(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function Jc(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}l=Jc.prototype;l.L=function(){return new Jc(this.left,this.top,this.width,this.height)};l.contains=function(a){return a instanceof Jc?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height}; l.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; l.scale=function(a,b){var c=oa(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Kc(a,b){var c=qc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Lc(a,b){return Kc(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Mc(a,b,c){var d,e=bb&&(Qa||fb)&&ob("1.9");b instanceof $b?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Nc(d,e);a.style.top=Nc(b,e)} function Oc(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}$a&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b} function Pc(a){if($a&&!($a&&8<=qb))return a.offsetParent;var b=qc(a),c=Lc(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Lc(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 null} function Qc(a){var b,c=qc(a),d=Lc(a,"position"),e=bb&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new $b(0,0),g;b=c?qc(c):document;(g=!$a)||(g=$a&&9<=qb)||(oc(b),g=!0);g=g?b.documentElement:b.body;if(a==g)return f;if(a.getBoundingClientRect)b=Oc(a),a=Hc(oc(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{e=a;do{f.x+= e.offsetLeft;f.y+=e.offsetTop;e!=a&&(f.x+=e.clientLeft||0,f.y+=e.clientTop||0);if(cb&&"fixed"==Lc(e,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if(Za||cb&&"absolute"==d)f.y-=c.body.offsetTop;for(e=a;(e=Pc(e))&&e!=c.body&&e!=g;)f.x-=e.scrollLeft,Za&&"TR"==e.tagName||(f.y-=e.scrollTop)}return f}function Rc(a,b){var c=Sc(a),d=Sc(b);return new $b(c.x-d.x,c.y-d.y)} function Sc(a){if(1==a.nodeType){var b;if(a.getBoundingClientRect)b=Oc(a),b=new $b(b.left,b.top);else{b=Hc(oc(a));var c=Qc(a);b=new $b(c.x-b.x,c.y-b.y)}if(bb&&!ob(12)){var d;$a?d="-ms-transform":cb?d="-webkit-transform":Za?d="-o-transform":bb&&(d="-moz-transform");var e;d&&(e=Lc(a,d));e||(e=Lc(a,"transform"));a=e?(a=e.match(Tc))?new $b(parseFloat(a[1]),parseFloat(a[2])):new $b(0,0):new $b(0,0);a=new $b(b.x+a.x,b.y+a.y)}else a=b;return a}d=pa(a.vf);e=a;a.targetTouches?e=a.targetTouches[0]:d&&a.P.targetTouches&& (e=a.P.targetTouches[0]);return new $b(e.clientX,e.clientY)}function Nc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Uc(a){var b=Vc;if("none"!=Lc(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a} function Vc(a){var b=a.offsetWidth,c=a.offsetHeight,d=cb&&!b&&!c;return s(b)&&!d||!a.getBoundingClientRect?new ac(b,c):(a=Oc(a),new ac(a.right-a.left,a.bottom-a.top))}function Wc(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity\x3d"+100*b+")")}function Xc(a,b){a.style.display=b?"":"none"}function Yc(a){return"rtl"==Lc(a,"direction")} function Zc(a){var b=qc(a),c=$a&&a.currentStyle,d;if(d=c)oc(b),d="auto"!=c.width&&"auto"!=c.height&&!c.boxSizing;if(d)return b=$c(a,c.width,"width","pixelWidth"),a=$c(a,c.height,"height","pixelHeight"),new ac(b,a);c=new ac(a.offsetWidth,a.offsetHeight);b=bd(a,"padding");a=cd(a);return new ac(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)} function $c(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b}function dd(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?$c(a,c,"left","pixelLeft"):0} function bd(a,b){if($a){var c=dd(a,b+"Left"),d=dd(a,b+"Right"),e=dd(a,b+"Top"),f=dd(a,b+"Bottom");return new Ic(e,d,f,c)}c=Kc(a,b+"Left");d=Kc(a,b+"Right");e=Kc(a,b+"Top");f=Kc(a,b+"Bottom");return new Ic(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))}var ed={thin:2,medium:4,thick:6};function fd(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in ed?ed[c]:$c(a,c,"left","pixelLeft")} function cd(a){if($a){var b=fd(a,"borderLeft"),c=fd(a,"borderRight"),d=fd(a,"borderTop");a=fd(a,"borderBottom");return new Ic(d,c,a,b)}b=Kc(a,"borderLeftWidth");c=Kc(a,"borderRightWidth");d=Kc(a,"borderTopWidth");a=Kc(a,"borderBottomWidth");return new Ic(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Tc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function gd(a){this.length=a.length||a;for(var b=0;bc;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");wd(a,"matrix3d("+c+")")}else if(ud()){d=[b[0],b[1],b[4],b[5],b[12],b[13]];if(s(6)){var e=Array(6);for(c=0;6>c;++c)e[c]=d[c].toFixed(6);c=e.join(",")}else c=d.join(",");wd(a,"matrix("+c+")")}else a.style.left=Math.round(b[12])+"px",a.style.top=Math.round(b[13])+"px"};var yd=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function zd(a,b){var c,d,e=yd.length;for(d=0;d=a.keyCode)a.keyCode=-1}catch(b){}};l.vf=k("P");var be="closure_listenable_"+(1E6*Math.random()|0);function ce(a){return!(!a||!a[be])}var de=0;function ee(a,b,c,d,e,f){this.Ja=a;this.a=b;this.src=c;this.type=d;this.capture=!!e;this.zb=f;this.key=++de;this.eb=this.Ib=!1}function fe(a){a.eb=!0;a.Ja=null;a.a=null;a.src=null;a.zb=null};var ge={},he={},ie={},je={};function z(a,b,c,d,e){if(ja(b)){for(var f=0;fe.keyCode||void 0!=e.returnValue)return!0;a:{var h=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(m){h=!0}if(h||void 0==e.returnValue)e.returnValue=!0}}h=new Yd;Zd(h,e,this);e=!0;try{if(c){for(var n=[],p=h.c;p;p=p.parentNode)n.push(p);f=d[!0];for(var q=n.length- 1;!h.qb&&0<=q;q--)h.c=n[q],e&=ve(f,n[q],h);if(g)for(f=d[!1],q=0;!h.qb&&q>>0);function ke(a){return pa(a)?a:a[xe]||(a[xe]=function(b){return a.handleEvent(b)})};function ye(a){return function(){return a}}var ze=ye(!1),Ae=ye(!0);function Be(a){return a}function Ce(a){return function(){throw a;}}function De(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}function Ee(a){var b=arguments,c=b.length;return function(){for(var a=0;a=c||(1<=c?(g=h,e=f):(g+=c*m,e+=c*n));return[g,e]}function Ye(a,b){var c=Yb(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 Ze(a,b,c){return s(a)?b.replace("{x}",a[0].toFixed(c)).replace("{y}",a[1].toFixed(c)):""}function $e(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}function af(a,b){var c=Math.cos(b),d=Math.sin(b),e=a[1]*c+a[0]*d;a[0]=a[0]*c-a[1]*d;a[1]=e;return a}function bf(a,b){var c=a[0]-b[0],d=a[1]-b[1];return c*c+d*d}function cf(a,b){return Ze(a,"{x}, {y}",b)};function F(a){Me.call(this);a=s(a)?a:{};this.a=null;z(this,Qe("tracking"),this.h,!1,this);this.b(s(a.tracking)?a.tracking:!1)}v(F,Me);F.prototype.F=function(){this.b(!1);F.H.F.call(this)}; F.prototype.l=function(a){a=a.P;if(null!=a.alpha){var b=Zb(a.alpha);this.w("alpha",b);"boolean"==typeof a.absolute&&a.absolute?this.w("heading",b):null!=a.webkitCompassHeading&&(null!=a.webkitCompassAccuracy&&-1!=a.webkitCompassAccuracy)&&this.w("heading",Zb(a.webkitCompassHeading))}null!=a.beta&&this.w("beta",Zb(a.beta));null!=a.gamma&&this.w("gamma",Zb(a.gamma));this.k()};F.prototype.e=function(){return this.get("alpha")};F.prototype.getAlpha=F.prototype.e;F.prototype.f=function(){return this.get("beta")}; F.prototype.getBeta=F.prototype.f;F.prototype.g=function(){return this.get("gamma")};F.prototype.getGamma=F.prototype.g;F.prototype.i=function(){return this.get("heading")};F.prototype.getHeading=F.prototype.i;F.prototype.d=function(){return this.get("tracking")};F.prototype.getTracking=F.prototype.d;F.prototype.h=function(){if(Ed){var a=this.d();a&&null===this.a?this.a=z(ea,"deviceorientation",this.l,!1,this):a||null===this.a||(re(this.a),this.a=null)}}; F.prototype.b=function(a){this.w("tracking",a)};F.prototype.setTracking=F.prototype.b;function df(a,b,c){Qd.call(this,a);this.map=b;this.b=s(c)?c:null}v(df,Qd);function ef(a,b,c){Qd.call(this,a);this.a=b;a=s(c)?c:{};this.buttons=ff(a);this.Bd=gf(a,this.buttons);this.bubbles=w(a,"bubbles",!1);this.cancelable=w(a,"cancelable",!1);this.view=w(a,"view",null);this.detail=w(a,"detail",null);this.screenX=w(a,"screenX",0);this.screenY=w(a,"screenY",0);this.clientX=w(a,"clientX",0);this.clientY=w(a,"clientY",0);this.d=w(a,"ctrlKey",!1);this.b=w(a,"altKey",!1);this.g=w(a,"shiftKey",!1);this.f=w(a,"metaKey",!1);this.button=w(a,"button",0);this.relatedTarget=w(a,"relatedTarget", null);this.pointerId=w(a,"pointerId",0);this.width=w(a,"width",0);this.height=w(a,"height",0);this.i=w(a,"tiltX",0);this.h=w(a,"tiltY",0);this.pointerType=w(a,"pointerType","");this.e=w(a,"hwTimestamp",0);this.Oc=w(a,"isPrimary",!1);b.preventDefault&&(this.preventDefault=function(){b.preventDefault()})}v(ef,Qd);function ff(a){if(a.buttons||hf)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a} function gf(a,b){var c=0;return c=a.Bd?a.Bd:b?0.5:0}var hf=!1;try{hf=1===(new MouseEvent("click",{buttons:1})).buttons}catch(jf){};function kf(a,b){this.a=a;this.e=b};function lf(a){kf.call(this,a,{mousedown:this.sg,mousemove:this.tg,mouseup:this.wg,mouseover:this.vg,mouseout:this.ug});this.c=a.c;this.b=[]}v(lf,kf);function mf(a,b){for(var c=a.b,d=b.clientX,e=b.clientY,f=0,g=c.length,h;f=Math.abs(d-h[0])&&25>=m)return!0}return!1}function nf(a){var b=of(a,a.P),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.Oc=!0;b.pointerType="mouse";return b}l=lf.prototype; l.sg=function(a){if(!mf(this,a)){(1).toString()in this.c&&this.cancel(a);var b=nf(a);this.c[(1).toString()]=a;pf(this.a,qf,b,a)}};l.tg=function(a){if(!mf(this,a)){var b=nf(a);pf(this.a,rf,b,a)}};l.wg=function(a){if(!mf(this,a)){var b=w(this.c,(1).toString());b&&b.button===a.button&&(b=nf(a),pf(this.a,sf,b,a),jc(this.c,(1).toString()))}};l.vg=function(a){if(!mf(this,a)){var b=nf(a);tf(this.a,b,a)}};l.ug=function(a){if(!mf(this,a)){var b=nf(a);uf(this.a,b,a)}}; l.cancel=function(a){var b=nf(a);this.a.cancel(b,a);jc(this.c,(1).toString())};function vf(a){kf.call(this,a,{MSPointerDown:this.Bg,MSPointerMove:this.Cg,MSPointerUp:this.Fg,MSPointerOut:this.Dg,MSPointerOver:this.Eg,MSPointerCancel:this.Ag,MSGotPointerCapture:this.yg,MSLostPointerCapture:this.zg});this.c=a.c;this.b=["","unavailable","touch","pen","mouse"]}v(vf,kf);function wf(a,b){var c=b;oa(b.P.pointerType)&&(c=of(b,b.P),c.pointerType=a.b[b.P.pointerType]);return c}l=vf.prototype;l.Bg=function(a){this.c[a.P.pointerId]=a;var b=wf(this,a);pf(this.a,qf,b,a)}; l.Cg=function(a){var b=wf(this,a);pf(this.a,rf,b,a)};l.Fg=function(a){var b=wf(this,a);pf(this.a,sf,b,a);jc(this.c,a.P.pointerId)};l.Dg=function(a){var b=wf(this,a);uf(this.a,b,a)};l.Eg=function(a){var b=wf(this,a);tf(this.a,b,a)};l.Ag=function(a){var b=wf(this,a);this.a.cancel(b,a);jc(this.c,a.P.pointerId)};l.zg=function(a){A(this.a,new ef("lostpointercapture",a,a.P))};l.yg=function(a){A(this.a,new ef("gotpointercapture",a,a.P))};function xf(a){kf.call(this,a,{pointerdown:this.Hh,pointermove:this.Ih,pointerup:this.Lh,pointerout:this.Jh,pointerover:this.Kh,pointercancel:this.Gh,gotpointercapture:this.Nf,lostpointercapture:this.qg})}v(xf,kf);l=xf.prototype;l.Hh=function(a){yf(this.a,a)};l.Ih=function(a){yf(this.a,a)};l.Lh=function(a){yf(this.a,a)};l.Jh=function(a){yf(this.a,a)};l.Kh=function(a){yf(this.a,a)};l.Gh=function(a){yf(this.a,a)};l.qg=function(a){yf(this.a,a)};l.Nf=function(a){yf(this.a,a)};function zf(a,b){kf.call(this,a,{touchstart:this.gi,touchmove:this.fi,touchend:this.ei,touchcancel:this.di});this.c=a.c;this.g=b;this.b=void 0;this.f=0;this.d=void 0}v(zf,kf);l=zf.prototype;l.Qe=function(){this.f=0;this.d=void 0}; l.ci=function(a,b){var c=of(a,b);c.pointerId=b.identifier+2;c.bubbles=!0;c.cancelable=!0;c.detail=this.f;c.button=0;c.buttons=1;c.width=b.webkitRadiusX||b.radiusX||0;c.height=b.webkitRadiusY||b.radiusY||0;c.Bd=b.webkitForce||b.force||0.5;c.Oc=this.b===b.identifier;c.pointerType="touch";c.clientX=b.clientX;c.clientY=b.clientY;c.screenX=b.screenX;c.screenY=b.screenY;return c}; function Af(a,b,c){var d=Db(b.P.changedTouches),d=xb(d,ya(a.ci,b),a);wb(d,function(a){a.preventDefault=function(){b.preventDefault()}},a);wb(d,ya(c,b),a)}function Bf(a,b){var c=b.P.touches;if(ec(a.c)>=c.length){var d=[];bc(a.c,function(a,b){var g;if(!(g=1==b))a:{g=c.length;for(var h,m=0;mc)for(c=1;cf?1:0.5,d=Math.floor(Math.log(b/d)/Math.log(a)+f),e=Math.max(d+e,0),s(c)&&(e=Math.min(e,c)),b/Math.pow(a,e)}};function mg(a){if(s(a))return 0}function ng(a,b){if(s(a))return a+b}function og(a){var b=2*Math.PI/a;return function(a,d){if(s(a))return a=Math.floor((a+d)/b+0.5)*b}}function pg(){var a=Zb(5);return function(b,c){if(s(b))return Math.abs(b+c)<=a?0:b+c}};function qg(a,b,c){this.center=a;this.resolution=b;this.rotation=c};function rg(){Me.call(this);this.h=[0,0]}v(rg,Me);rg.prototype.W=ca(null);rg.prototype.vd=ca(!1);function sg(a,b){a.h[1]+=b};function tg(a){for(var b=ug(),c=0,d=a.length;ce[2]&&(e[2]=f[0]);f[1]e[3]&&(e[3]=f[1])}return b}function vg(a,b,c){var d=Math.min.apply(null,a),e=Math.min.apply(null,b);a=Math.max.apply(null,a);b=Math.max.apply(null,b);return wg(d,e,a,b,c)}function xg(a,b,c){return s(c)?(c[0]=a[0]-b,c[1]=a[1]-b,c[2]=a[2]+b,c[3]=a[3]+b,c):[a[0]-b,a[1]-b,a[2]+b,a[3]+b]} function yg(a,b){return s(b)?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function zg(a,b,c){b=ba[2]&&(a[2]=b[2]);b[1]a[3]&&(a[3]=b[3]);return a}function Eg(a,b,c,d,e){for(;cf;++f)g=e[f],h=d[f],e[f]=a[0]+g*b-h*c,d[f]=a[1]+g*c+h*b;return vg(e,d,void 0)}function Ig(a){return a[3]-a[1]}function Jg(a){return[a[0],a[3]]}function Kg(a){return a[2]-a[0]}function Mg(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Ng(a){return a[2]this.n)}return a}; l.Xd=function(a,b){if(!Ng(a)){this.ya(Gg(a));var c=th(a,b),d=this.constrainResolution(c,0,0);da?yh(2*a):1-yh(2*(a-0.5))};function Bh(a){var b=a.source,c=s(a.start)?a.start:za(),d=b[0],e=b[1],f=s(a.duration)?a.duration:1E3,g=s(a.easing)?a.easing:yh;return function(a,b){if(b.timea||0!==this.i&&a<=this.i)return this;var b=a.toString();if(this.g.hasOwnProperty(b))return this.g[b];var c=this.Kb(a);if(c.j.lengthe&&(e=f);f=h;g=m}return e}function Wh(a,b,c,d,e){var f,g;f=0;for(g=c.length;fh){for(;bu&&(n=p,u=C)}u>e&&(m[(n-b)/d]=1,r+dW&&EaW)&&(0>qa&&Naqa)||(B[g++]=C,B[g++]=M,y=C,E=M);C=R;M=la}}B[g++]=C;B[g++]=M}}h.push(g);b=p}return g};function gi(a,b){Mh.call(this);this.d=this.h=-1;this.J(a,b)}v(gi,Mh);l=gi.prototype;l.L=function(){var a=new gi(null);hi(a,this.b,this.j.slice());return a};l.ta=function(a,b,c,d){if(df!=p>f&&e<(n-h)*(f-m)/(p-m)+h&&(g=!g);h=n;m=p}return g}function li(a,b,c,d,e,f){if(0===c.length||!ki(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;bq&&(n=(n+p)/2,li(a,b,c,d,n,r)&&(x=n,q=B));n=p}isNaN(x)&&(x=e[f]);return s(g)?(g.push(x,r),g):[x,r]};function ni(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];ba||this.d.length<=a)return null;var b=new gi(null);hi(b,this.b,this.j.slice(0===a?0:this.d[a-1],this.d[a]));return b};l.ee=function(){var a=this.b,b=this.j,c=this.d,d=[],e=0,f,g;f=0;for(g=c.length;f2*this.N&&aj(this),!0):!1};function aj(a){if(a.N!=a.a.length){for(var b=0,c=0;bc?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")} function gj(a,b,c){if(ja(b))for(var d=0;db)throw Error("Bad port number "+b);a.Tb=b}else a.Tb=null}function mj(a,b,c){kj(a);b instanceof nj?(a.a=b,tj(a.a,a.xb)):(c||(b=oj(b,uj)),a.a=new nj(b,0,a.xb))}function vj(a,b,c){kj(a);ja(c)||(c=[String(c)]);wj(a.a,b,c)}function kj(a){if(a.pg)throw Error("Tried to modify a read-only Uri");} function xj(a){return a instanceof ij?a.L():new ij(a,void 0)} function yj(a,b){a instanceof ij||(a=xj(a));b instanceof ij||(b=xj(b));var c=a,d=b,e=c.L(),f=!!d.rb;f?jj(e,d.rb):f=!!d.Eb;if(f){var g=d.Eb;kj(e);e.Eb=g}else f=!!d.Ra;f?(g=d.Ra,kj(e),e.Ra=g):f=null!=d.Tb;g=d.Ma;if(f)lj(e,d.Tb);else if(f=!!d.Ma)if("/"!=g.charAt(0)&&(c.Ra&&!c.Ma?g="/"+g:(c=e.Ma.lastIndexOf("/"),-1!=c&&(g=e.Ma.substr(0,c+1)+g))),".."==g||"."==g)g="";else if(-1!=g.indexOf("./")||-1!=g.indexOf("/.")){for(var c=0==g.lastIndexOf("/",0),g=g.split("/"),h=[],m=0;m>4&15).toString(16)+(a&15).toString(16)}var pj=/[#\/\?@]/g,rj=/[\#\?:]/g,qj=/[\#\?]/g,uj=/[\#\?@]/g,sj=/#/g; function nj(a,b,c){this.a=a||null;this.c=!!c}function Aj(a){if(!a.ba&&(a.ba=new Zi,a.N=0,a.a))for(var b=a.a.split("\x26"),c=0;c=a||96<=a&&106>=a||65<=a&&90>=a||cb&&0==a)return!0;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!0;default:return!1}}function Lj(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Mj(a,b){He.call(this);a&&Nj(this,a,b)}v(Mj,He);l=Mj.prototype;l.nc=null;l.Pc=null;l.sd=null;l.Qc=null;l.ka=-1;l.nb=-1;l.ed=!1; var Oj={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},Pj={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},Qj=$a||cb&&ob("525"),Rj=Qa&&bb; Mj.prototype.a=function(a){cb&&(17==this.ka&&!a.mc||18==this.ka&&!a.ma||Qa&&91==this.ka&&!a.rd)&&(this.nb=this.ka=-1);-1==this.ka&&(a.mc&&17!=a.Ya?this.ka=17:a.ma&&18!=a.Ya?this.ka=18:a.rd&&91!=a.Ya&&(this.ka=91));Qj&&!Jj(a.Ya,this.ka,a.Za,a.mc,a.ma)?this.handleEvent(a):(this.nb=bb?Lj(a.Ya):a.Ya,Rj&&(this.ed=a.ma))};Mj.prototype.c=function(a){this.nb=this.ka=-1;this.ed=a.ma}; Mj.prototype.handleEvent=function(a){var b=a.P,c,d,e=b.altKey;$a&&"keypress"==a.type?(c=this.nb,d=13!=c&&27!=c?b.keyCode:0):cb&&"keypress"==a.type?(c=this.nb,d=0<=b.charCode&&63232>b.charCode&&Kj(c)?b.charCode:0):Za?(c=this.nb,d=Kj(c)?b.keyCode:0):(c=b.keyCode||this.nb,d=b.charCode||0,Rj&&(e=this.ed),Qa&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Oj?f=Oj[c]:25==c&&a.Za&&(f=9):g&&g in Pj&&(f=Pj[g]);a=f==this.ka;this.ka=f;b=new Sj(f,d,a,b);b.ma=e;A(this,b)}; function Nj(a,b,c){a.Qc&&Tj(a);a.nc=b;a.Pc=z(a.nc,"keypress",a,c);a.sd=z(a.nc,"keydown",a.a,c,a);a.Qc=z(a.nc,"keyup",a.c,c,a)}function Tj(a){a.Pc&&(re(a.Pc),re(a.sd),re(a.Qc),a.Pc=null,a.sd=null,a.Qc=null);a.nc=null;a.ka=-1;a.nb=-1}Mj.prototype.F=function(){Mj.H.F.call(this);Tj(this)};function Sj(a,b,c,d){d&&Zd(this,d,void 0);this.type="key";this.Ya=a;this.qd=b;this.a=c}v(Sj,Yd);function Uj(a,b){He.call(this);this.a=a;var c=ra(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:null;this.e=!!c&&Yc(c);this.c=z(this.a,bb?"DOMMouseScroll":"mousewheel",this,b)}v(Uj,He); Uj.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.P;if("mousewheel"==a.type){c=1;if($a||cb&&(Ra||ob("532.0")))c=40;d=Vj(-a.wheelDelta,c);s(a.wheelDeltaX)?(b=Vj(-a.wheelDeltaX,c),c=Vj(-a.wheelDeltaY,c)):c=d}else d=a.detail,100d&&(d=-3),s(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;oa(this.b)&&(b=Xb(b,-this.b,this.b));oa(this.d)&&(c=Xb(c,-this.d,this.d));this.e&&(b=-b);b=new Wj(d,a,b,c);A(this,b)};function Vj(a,b){return cb&&(Qa||Sa)&&0!=a%b?a:a/b} Uj.prototype.F=function(){Uj.H.F.call(this);re(this.c);this.c=null};function Wj(a,b,c,d){b&&Zd(this,b,void 0);this.type="mousewheel";this.detail=a;this.b=c;this.a=d}v(Wj,Yd);function Xj(a,b){He.call(this);this.a=a;this.state=b}v(Xj,He);Xj.prototype.d=function(){return sa(this).toString()};Xj.prototype.i=k("a");function Yj(a,b){this.f=a;this.e=b;this.a=[];this.c=[];this.b={}}Yj.prototype.clear=function(){this.a.length=0;this.c.length=0;ic(this.b)};function Zj(a){var b=a.a,c=a.c,d=b[0];1==b.length?(b.length=0,c.length=0):(b[0]=b.pop(),c[0]=c.pop(),ak(a,0));b=a.e(d);delete a.b[b];return d}function bk(a,b){var c=a.f(b);Infinity!=c&&(a.a.push(b),a.c.push(c),a.b[a.e(b)]=!0,ck(a,0,a.a.length-1))}Yj.prototype.Ga=function(){return this.a.length};Yj.prototype.ja=function(){return 0===this.a.length}; function ak(a,b){for(var c=a.a,d=a.c,e=c.length,f=c[b],g=d[b],h=b;b>1;){var m=2*b+1,n=2*b+2,m=nb;){var g=c-1>>1;if(a[g]>f)d[c]=d[g],a[c]=a[g],c=g;else break}d[c]=e;a[c]=f}function dk(a){var b=a.f,c=a.a,d=a.c,e=0,f=c.length,g,h,m;for(h=0;h>1)-1;0<=b;b--)ak(a,b)};function ek(a,b){Yj.call(this,function(b){return a.apply(null,b)},function(a){return a[0].d()});this.i=b;this.d=0}v(ek,Yj);ek.prototype.g=function(){--this.d;this.i()};function fk(a){Me.call(this);this.element=s(a.element)?a.element:null;this.A=s(a.target)?rc(a.target):null;this.b=null;this.g=[]}v(fk,Me);fk.prototype.F=function(){Ec(this.element);fk.H.F.call(this)};fk.prototype.a=k("b");fk.prototype.d=fa;fk.prototype.setMap=function(a){null===this.b||Ec(this.element);0!=this.g.length&&(wb(this.g,re),this.g.length=0);this.b=a;null!==this.b&&((null===this.A?a.v:this.A).appendChild(this.element),this.d!==fa&&this.g.push(z(a,"postrender",this.d,!1,this)),a.R())};function gk(a){a=s(a)?a:{};this.h=yc("UL");var b=vc("DIV",{"class":(s(a.className)?a.className:"ol-attribution")+" ol-unselectable"},this.h);fk.call(this,{element:b,target:a.target});this.i=!0;this.f={};this.e={}}v(gk,fk); gk.prototype.d=function(a){a=a.b;if(null===a)this.i&&(Xc(this.element,!1),this.i=!1);else{var b,c,d,e,f,g,h,m,n,p=a.layerStatesArray,q=lc(a.attributions),r={};b=0;for(c=p.length;b=B.a&&g.a[y][u].b<= B.c&&g.a[y][u].c>=B.b){u=!0;break a}u=!1}u?(h in r&&delete r[h],q[h]=g):r[h]=g}b=[q,r];a=b[0];b=b[1];for(var E in this.f)E in a?(this.e[E]||(Xc(this.f[E],!0),this.e[E]=!0),delete a[E]):E in b?(this.e[E]&&(Xc(this.f[E],!1),delete this.e[E]),delete b[E]):(Ec(this.f[E]),delete this.f[E],delete this.e[E]);for(E in a)c=yc("LI"),c.innerHTML=a[E].c,this.h.appendChild(c),this.f[E]=c,this.e[E]=!0;for(E in b)c=yc("LI"),c.innerHTML=b[E].c,Xc(c,!1),this.h.appendChild(c),this.f[E]=c;E=!hc(this.e);this.i!=E&&(Xc(this.element, E),this.i=E)}};function hk(a){a=s(a)?a:{};this.f=yc("UL");var b=vc("DIV",{"class":(s(a.className)?a.className:"ol-logo")+" ol-unselectable"},this.f);fk.call(this,{element:b,target:a.target});this.e=!0;this.i={}}v(hk,fk); hk.prototype.d=function(a){a=a.b;if(null===a)this.e&&(Xc(this.element,!1),this.e=!1);else{var b;a=a.logos;var c=this.i;for(b in c)b in a||(Ec(c[b]),delete c[b]);for(var d in a)if(!(d in c)){b=new Image;b.src=d;var e=a[d];""===e?e=b:(e=vc("A",{href:e,target:"_blank"}),e.appendChild(b));b=vc("LI",void 0,e);this.f.appendChild(b);c[d]=b}d=!hc(a);this.e!=d&&(Xc(this.element,d),this.e=d)}};function ik(a){a=s(a)?a:{};var b=s(a.className)?a.className:"ol-rotate",c=vc("SPAN",{"class":"ol-compass"},s(a.label)?a.label:"\u21e7");this.e=c;var d=vc("SPAN",{role:"tooltip"},s(a.tipLabel)?a.tipLabel:"Reset rotation"),c=vc("BUTTON",{"class":b+"-reset ol-has-tooltip",name:"ResetRotation",type:"button"},d,c),d=new Gf(c);Od(this,d);z(d,sf,ik.prototype.h,!1,this);z(c,["mouseout",Wd],function(){this.blur()},!1);b=vc("DIV",b+" ol-unselectable ol-control",c);fk.call(this,{element:b,target:a.target}); this.i=s(a.duration)?a.duration:250;this.f=s(a.autoHide)?a.autoHide:!0;b.style.opacity=this.f?0:1}v(ik,fk);ik.prototype.h=function(a){a.a.preventDefault();a=this.b;for(var b=a.a().W(),c=b.e();c<-Math.PI;)c+=2*Math.PI;for(;c>Math.PI;)c-=2*Math.PI;s(c)&&(0d;)f-=3;if(0<=f){var d=c.a[e+2]-c.a[f+2],g=c.a[e]-c.a[f],e=c.a[e+1]-c.a[f+1];c.d=Math.atan2(e,g);c.c=Math.sqrt(g*g+e*e)/d;c=c.c>c.b}else c=!1}}c&&(c=(this.a.b-this.a.c)/this.a.e,e=this.a.d,f=b.a(),this.e=mk(this.a,f),a.sa(this.e),f=a.f(f),c=a.wa([f[0]-c*Math.cos(e),f[1]-c*Math.sin(e)]),c=b.f.center(c), b.ya(c));sg(b,-1);a.R();return!1}this.d=null;return!0};ok.prototype.$a=function(a){if(0this.h&&(this.a=!0));this.e=c;a=a.map;c=Sc(a.b);d=Jh(this.b);d[0]-=c.x;d[1]-=c.y;this.d=a.wa(d);this.a&&(c=a.a().W(),d=wh(c),a.R(),Fh(a,c,d.rotation+b,this.d))}; vk.prototype.ab=function(a){if(2>this.b.length){a=a.map;var b=a.a();sg(b,-1);if(this.a){var b=b.W(),c=wh(b).rotation,d=this.d,c=b.constrainRotation(c,0);Fh(a,b,c,d,250)}return!1}return!0};vk.prototype.$a=function(a){return 2<=this.b.length?(a=a.map,this.d=null,this.e=void 0,this.a=!1,this.f=0,this.i||sg(a.a(),1),a.R(),!0):!1};function wk(a){a=s(a)?a:{};Ih.call(this);this.d=null;this.f=s(a.duration)?a.duration:400;this.a=void 0;this.e=1}v(wk,Ih);wk.prototype.mb=function(a){var b=1,c=this.b[0],d=this.b[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);s(this.a)&&(b=this.a/e);this.a=e;1!=b&&(this.e=b);a=a.map;var e=a.a().W(),c=wh(e),d=Sc(a.b),f=Jh(this.b);f[0]-=d.x;f[1]-=d.y;this.d=a.wa(f);a.R();Hh(a,e,c.resolution*b,this.d)}; wk.prototype.ab=function(a){if(2>this.b.length){a=a.map;var b=a.a();sg(b,-1);var b=b.W(),c=wh(b).resolution,d=this.d,e=this.f,c=b.constrainResolution(c,0,this.e-1);Hh(a,b,c,d,e);return!1}return!0};wk.prototype.$a=function(a){return 2<=this.b.length?(a=a.map,this.d=null,this.a=void 0,this.e=1,this.i||sg(a.a(),1),a.R(),!0):!1};function xk(a){a=s(a)?a:{};var b=new D,c=new lk(-0.005,0.05,100);(s(a.altShiftDragRotate)?a.altShiftDragRotate:1)&&b.push(new pk);(s(a.doubleClickZoom)?a.doubleClickZoom:1)&&b.push(new nk({delta:a.zoomDelta,duration:a.zoomDuration}));(s(a.dragPan)?a.dragPan:1)&&b.push(new ok({kinetic:c}));(s(a.pinchRotate)?a.pinchRotate:1)&&b.push(new vk);(s(a.pinchZoom)?a.pinchZoom:1)&&b.push(new wk({duration:a.zoomDuration}));if(s(a.keyboard)?a.keyboard:1)b.push(new sk),b.push(new tk({delta:a.zoomDelta,duration:a.zoomDuration})); (s(a.mouseWheelZoom)?a.mouseWheelZoom:1)&&b.push(new uk({duration:a.zoomDuration}));(s(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new rk);return b};function yk(a){Je.call(this);this.l=qh(a.projection);this.Q=s(a.extent)?a.extent:s(a.projection)?this.l.u():null;this.f=s(a.attributions)?a.attributions:null;this.v=a.logo;this.i=s(a.state)?a.state:1}v(yk,Je);yk.prototype.Vc=fa;yk.prototype.u=k("Q");yk.prototype.a=k("i");function zk(a,b){a.i=b;a.k()};function I(a){Me.call(this);a=lc(a);a.brightness=s(a.brightness)?a.brightness:0;a.contrast=s(a.contrast)?a.contrast:1;a.hue=s(a.hue)?a.hue:0;a.opacity=s(a.opacity)?a.opacity:1;a.saturation=s(a.saturation)?a.saturation:1;a.visible=s(a.visible)?a.visible:!0;a.maxResolution=s(a.maxResolution)?a.maxResolution:Infinity;a.minResolution=s(a.minResolution)?a.minResolution:0;this.I(a)}v(I,Me);I.prototype.d=function(){return this.get("brightness")};I.prototype.getBrightness=I.prototype.d;I.prototype.e=function(){return this.get("contrast")}; I.prototype.getContrast=I.prototype.e;I.prototype.f=function(){return this.get("hue")};I.prototype.getHue=I.prototype.f;function Ak(a){var b=a.d(),c=a.e(),d=a.f(),e=a.l(),f=a.h(),g=a.Oa(),h=a.b(),m=a.g(),n=a.i();return{layer:a,brightness:s(b)?Xb(b,-1,1):0,contrast:s(c)?Math.max(c,0):1,hue:s(d)?d:0,opacity:s(e)?Xb(e,0,1):1,saturation:s(f)?Math.max(f,0):1,Pa:g,visible:s(h)?!!h:!0,maxResolution:s(m)?m:Infinity,minResolution:s(n)?Math.max(n,0):0}}I.prototype.g=function(){return this.get("maxResolution")}; I.prototype.getMaxResolution=I.prototype.g;I.prototype.i=function(){return this.get("minResolution")};I.prototype.getMinResolution=I.prototype.i;I.prototype.l=function(){return this.get("opacity")};I.prototype.getOpacity=I.prototype.l;I.prototype.h=function(){return this.get("saturation")};I.prototype.getSaturation=I.prototype.h;I.prototype.b=function(){return this.get("visible")};I.prototype.getVisible=I.prototype.b;I.prototype.n=function(a){this.w("brightness",a)};I.prototype.setBrightness=I.prototype.n; I.prototype.o=function(a){this.w("contrast",a)};I.prototype.setContrast=I.prototype.o;I.prototype.v=function(a){this.w("hue",a)};I.prototype.setHue=I.prototype.v;I.prototype.A=function(a){this.w("maxResolution",a)};I.prototype.setMaxResolution=I.prototype.A;I.prototype.B=function(a){this.w("minResolution",a)};I.prototype.setMinResolution=I.prototype.B;I.prototype.G=function(a){this.w("opacity",a)};I.prototype.setOpacity=I.prototype.G;I.prototype.Q=function(a){this.w("saturation",a)}; I.prototype.setSaturation=I.prototype.Q;I.prototype.S=function(a){this.w("visible",a)};I.prototype.setVisible=I.prototype.S;function J(a){var b=s(a)?a:{};a=lc(b);delete a.layers;b=b.layers;I.call(this,a);this.a=null;z(this,Qe("layers"),this.Zf,!1,this);s(b)?ja(b)&&(b=new D(Db(b))):b=new D;this.aa(b)}v(J,I);l=J.prototype;l.je=function(){this.b()&&this.k()}; l.Zf=function(){null!==this.a&&(wb(fc(this.a),re),this.a=null);var a=this.Pb();if(null!=a){this.a={add:z(a,"add",this.Yf,!1,this),remove:z(a,"remove",this.$f,!1,this)};var a=a.a,b,c,d;b=0;for(c=a.length;b=this.minZoom;){if(b.call(c,a,Nk(this,e,a,d)))return!0;--a}return!1};l.Jc=k("minZoom"); l.ob=function(a){return null===this.e?this.g[a]:this.e};l.da=function(a){return this.a[a]};l.Kc=function(a,b,c){return a.a=b);++d);b=c;return 1==b?a:a*b+0.5|0};l.af=fa;function Tk(a,b){Ld.call(this);this.e=a;this.a=b}v(Tk,Ld);Tk.prototype.f=fa;Tk.prototype.p=function(a){2===a.target.state&&Uk(this)};function Uk(a){var b=a.a;b.b()&&1==b.Oa()&&a.e.f.R()}function Vk(a,b){b.yd()&&a.postRenderFunctions.push(ya(function(a,b,e){b=sa(a).toString();a.Ge(e.usedTiles[b])},b))}function Wk(a,b){if(null!=b){var c,d,e;d=0;for(e=b.length;da.d&&(a.d=d.d),d.ba.c&&(a.c=d.c)):a[b][c]=d:(a[b]={},a[b][c]=d)}function Zk(a,b,c,d){return function(e,f,g){e=b.Lb(e,f,g,c,d);return a(e)?e:null}}function $k(a,b,c){return[b*(Math.round(a[0]/b)+c[0]%2/2),b*(Math.round(a[1]/b)+c[1]%2/2)]} function al(a,b,c,d,e,f,g,h,m,n){var p=sa(b).toString();p in a.wantedTiles||(a.wantedTiles[p]={});var q=a.wantedTiles[p];a=a.tileQueue;var r=c.minZoom,u,x,B,y,E,C;s(h)||(h=0);for(C=g;C>=r;--C)for(x=Nk(c,f,C),B=c.da(C),y=x.a;y<=x.d;++y)for(E=x.b;E<=x.c;++E)g-C<=h?(u=b.Lb(C,y,E,d,e),0==u.state&&(q[u.a.toString()]=!0,u.d()in a.b||bk(a,[u,p,Qk(c,u.a),B])),s(m)&&m.call(n,u)):b.af(C,y,E)};function bl(a){a=s(a)?a:{};this.d=s(a.anchor)?a.anchor:[0.5,0.5];this.b=null;this.c=s(a.anchorOrigin)?a.anchorOrigin:"top-left";this.h=s(a.anchorXUnits)?a.anchorXUnits:"fraction";this.l=s(a.anchorYUnits)?a.anchorYUnits:"fraction";var b=a.src,c=s(a.crossOrigin)?a.crossOrigin:null,d=cl.jb(),e=d.get(b,c);null===e&&(e=new dl(b,c),d.a[c+":"+b]=e,++d.c);this.a=e;this.p=s(a.size)?a.size:null;Ni.call(this,{opacity:s(a.opacity)?a.opacity:1,origin:s(a.origin)?a.origin:[0,0],rotation:s(a.rotation)?a.rotation: 0,scale:s(a.scale)?a.scale:1,We:void 0,rotateWithView:s(a.rotateWithView)?a.rotateWithView:!1})}v(bl,Ni);l=bl.prototype; l.kc=function(){if(null!==this.b)return this.b;var a=this.d,b=this.Rb();if("fraction"==this.h||"fraction"==this.l){if(null===b)return null;a=this.d.slice();"fraction"==this.h&&(a[0]*=b[0]);"fraction"==this.l&&(a[1]*=b[1])}if("top-left"!=this.c){if(null===b)return null;a===this.d&&(a=this.d.slice());if("top-right"==this.c||"bottom-right"==this.c)a[0]=-a[0]+b[0];if("bottom-left"==this.c||"bottom-right"==this.c)a[1]=-a[1]+b[1]}return this.b=a};l.rc=function(){return this.a.a};l.Je=function(){return this.a.c}; l.Ie=function(){var a=this.a;if(null===a.d)if(a.i){var b=a.e[0],c=a.e[1],d=td(b,c);d.fillRect(0,0,b,c);a.d=d.canvas}else a.d=a.a;return a.d};l.kh=function(){return this.a.f};l.Rb=function(){return null===this.p?this.a.e:this.p};l.ne=function(a,b){return z(this.a,"change",a,!1,b)};l.Ke=function(){var a=this.a;if(0==a.c){a.c=1;a.b=[oe(a.a,"error",a.g,!1,a),oe(a.a,"load",a.h,!1,a)];try{a.a.src=a.f}catch(b){a.g()}}};l.$e=function(a,b){pe(this.a,"change",a,!1,b)}; function dl(a,b){He.call(this);this.d=null;this.a=new Image;null!==b&&(this.a.crossOrigin=b);this.b=null;this.c=0;this.e=null;this.f=a;this.i=!1}v(dl,He);dl.prototype.g=function(){this.c=3;wb(this.b,re);this.b=null;A(this,"change")};dl.prototype.h=function(){this.c=2;this.e=[this.a.width,this.a.height];wb(this.b,re);this.b=null;var a=td(1,1);a.drawImage(this.a,0,0);try{a.getImageData(0,0,1,1)}catch(b){this.i=!0}A(this,"change")};function cl(){this.a={};this.c=0;this.b=32}ga(cl); cl.prototype.clear=function(){this.a={};this.c=0};cl.prototype.get=function(a,b){var c=b+":"+a;return c in this.a?this.a[c]:null};function el(a,b,c,d,e,f,g,h){od(a);0===b&&0===c||qd(a,b,c);1==d&&1==e||rd(a,d,e);0!==f&&sd(a,f);0===g&&0===h||qd(a,g,h);return a}function fl(a,b){return a[0]==b[0]&&a[1]==b[1]&&a[4]==b[4]&&a[5]==b[5]&&a[12]==b[12]&&a[13]==b[13]}function gl(a,b,c){var d=a[1],e=a[5],f=a[13],g=b[0];b=b[1];c[0]=a[0]*g+a[4]*b+a[12];c[1]=d*g+e*b+f;return c};function hl(a,b){Ld.call(this);this.f=b;this.b={}}v(hl,Ld); function il(a){var b=a.view2DState,c=a.coordinateToPixelMatrix;el(c,a.size[0]/2,a.size[1]/2,1/b.resolution,-1/b.resolution,-b.rotation,-b.center[0],-b.center[1]);a=a.pixelToCoordinateMatrix;var b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],h=c[5],m=c[6],n=c[7],p=c[8],q=c[9],r=c[10],u=c[11],x=c[12],B=c[13],y=c[14],c=c[15],E=b*h-d*g,C=b*m-e*g,M=b*n-f*g,R=d*m-e*h,la=d*n-f*h,W=e*n-f*m,qa=p*B-q*x,Ea=p*y-r*x,Na=p*c-u*x,Va=q*y-r*B,ma=q*c-u*B,ab=r*c-u*y,Ua=E*ab-C*ma+M*Va+R*Na-la*Ea+W*qa;0!=Ua&&(Ua=1/Ua,a[0]=(h*ab-m* ma+n*Va)*Ua,a[1]=(-d*ab+e*ma-f*Va)*Ua,a[2]=(B*W-y*la+c*R)*Ua,a[3]=(-q*W+r*la-u*R)*Ua,a[4]=(-g*ab+m*Na-n*Ea)*Ua,a[5]=(b*ab-e*Na+f*Ea)*Ua,a[6]=(-x*W+y*M-c*C)*Ua,a[7]=(p*W-r*M+u*C)*Ua,a[8]=(g*ma-h*Na+n*qa)*Ua,a[9]=(-b*ma+d*Na-f*qa)*Ua,a[10]=(x*la-B*M+c*E)*Ua,a[11]=(-p*la+q*M-u*E)*Ua,a[12]=(-g*Va+h*Ea-m*qa)*Ua,a[13]=(b*Va-d*Ea+e*qa)*Ua,a[14]=(-x*R+B*C-y*E)*Ua,a[15]=(p*R-q*C+r*E)*Ua)}hl.prototype.Ac=function(a){return new Tk(this,a)};hl.prototype.F=function(){bc(this.b,function(a){Pd(a)});hl.H.F.call(this)}; function jl(a,b){var c=sa(b).toString();if(c in a.b)return a.b[c];var d=a.Ac(b);return a.b[c]=d}hl.prototype.Xc=fa;hl.prototype.v=function(a,b){for(var c in this.b)if(!(null!==b&&c in b.layerStates)){var d=this.b[c];delete this.b[c];Pd(d)}};function kl(a){a.postRenderFunctions.push(function(){var a=cl.jb();if(a.c>a.b){var c=0,d,e;for(d in a.a)e=a.a[d],0!==(c++&3)||te(e)||(delete a.a[d],--a.c)}})} function ll(a,b){for(var c in a.b)if(!(c in b.layerStates)){b.postRenderFunctions.push(xa(a.v,a));break}};function L(a){K.call(this,a)}v(L,K);function N(a){K.call(this,a)}v(N,K);N.prototype.ea=function(){return this.get("preload")};N.prototype.getPreload=N.prototype.ea;N.prototype.qa=function(a){this.w("preload",a)};N.prototype.setPreload=N.prototype.qa;N.prototype.fa=function(){return this.get("useInterimTilesOnError")};N.prototype.getUseInterimTilesOnError=N.prototype.fa;N.prototype.Fa=function(a){this.w("useInterimTilesOnError",a)};N.prototype.setUseInterimTilesOnError=N.prototype.Fa;function O(a){a=s(a)?a:{};var b=lc(a);delete b.style;K.call(this,b);this.gb=null;this.qa=void 0;s(a.style)&&this.fa(a.style)}v(O,K);O.prototype.sb=k("gb");O.prototype.xc=k("qa");O.prototype.fa=function(a){this.gb=a;this.qa=Ti(a);this.k()};function ml(a,b,c,d,e){this.v={};this.b=a;this.l=b;this.g=c;this.f=d;this.sb=e;this.i=this.a=this.c=this.ea=this.Na=this.Ea=null;this.Gb=this.fa=this.A=this.S=this.Q=this.G=0;this.Oa=!1;this.h=this.Hb=0;this.qa=!1;this.ca=0;this.d="";this.n=this.B=this.Fa=this.Pa=0;this.aa=this.o=this.p=null;this.e=[];this.gb=kd()} function nl(a,b){if(null!==a.i){var c=Lh(b,2,a.f,a.e),d=a.b,e=a.gb,f=d.globalAlpha;1!=a.A&&(d.globalAlpha=f*a.A);var g=a.Hb;a.Oa&&(g+=a.sb);var h,m;h=0;for(m=c.length;hB||this.c[1]>y)?(E.width=B,E.height= y,this.c=[B,y],this.h=!Cl(this.c),this.b=null):(B=this.c[0],y=this.c[1],m==this.B&&this.b.a<=x.a&&x.d<=this.b.d&&this.b.b<=x.b&&x.c<=this.b.c||(this.b=null)));var M,R;null===this.b?(B/=n,y/=n,M=x.a-Math.floor((B-(x.d-x.a+1))/2),R=x.b-Math.floor((y-(x.c-x.b+1))/2),this.B=m,this.b=new Pb(M,M+B-1,R,R+y-1),this.i=Array(B*y),y=this.b):(y=this.b,B=y.d-y.a+1);E={};E[m]={};var la=[],W=xa(f.kd,f,E,Zk(function(a){return null!==a&&2==a.state},f,b,d)),qa=e.fa();s(qa)||(qa=!0);var Ea=ug(),Na=new Pb(0,0,0,0),Va, ma,ab;for(R=x.a;R<=x.d;++R)for(ab=x.b;ab<=x.c;++ab)ma=f.Lb(m,R,ab,b,d),M=ma.state,2==M||4==M||3==M&&!qa?E[m][ma.a.toString()]=ma:(Va=g.Fc(ma.a,W,null,Na,Ea),Va||(la.push(ma),Va=g.Kc(ma.a,Na,Ea),null===Va||W(m+1,Va)));W=0;for(Va=la.length;Wx&&(C=C|4);EB&&(C|=2);0===C&&(C=1);u=C;u!==r?(p&&(a.coordinates[g++]=m[0],a.coordinates[g++]=m[1]),a.coordinates[g++]=n[0],a.coordinates[g++]=n[1],p=!1):1===u?(a.coordinates[g++]=n[0],a.coordinates[g++]=n[1],p=!1):p=!0;m[0]=n[0];m[1]=n[1];r=u}q===c+e&&(a.coordinates[g++]=m[0],a.coordinates[g++]= m[1]);f&&(a.coordinates[g++]=b[c],a.coordinates[g++]=b[c+1]);return g}function Kl(a,b,c){a.G=[0,b,c,0];a.c.push(a.G);a.Q=[0,b,c,0];a.a.push(a.Q)} function Ll(a,b,c,d,e,f,g,h){var m;fl(d,a.Ea)?m=a.aa:(m=Lh(a.coordinates,2,d,a.aa),nd(a.Ea,d));d=0;var n=g.length,p=0,q;for(a=a.Na;da||0!==this.i&&a>1,p=g(c,f[n]),0r?(c=(c-f[-r-2])/(f[-r-1]-f[-r-2]),b+=(-r-2)*d,f=a[b]+c*(a[b+d]-a[b]),g=a[b+1]+c*(a[b+d+1]-a[b+1])):(f=a[b+r*d],g=a[b+r*d+1])}return null!= e?(e.push(f,g),e):[f,g]}function km(a,b,c,d,e,f){if(c==b)return null;if(e>1,ea||this.d.length<=a)return null;var b=new P(null);mm(b,this.b,this.j.slice(0===a?0:this.d[a-1],this.d[a]));return b};l.Ic=function(){var a=this.j,b=this.d,c=this.b,d=[],e=0,f,g;f=0;for(g=b.length;fa||b<=a)return null;b=new ii(null);ji(b,this.b,this.j.slice(a*this.a,(a+1)*this.a));return b};l.od=function(){var a=this.j,b=this.b,c=this.a,d=[],e,f;e=0;for(f=a.length;ea||this.d.length<=a)return null;var b;0===a?b=0:(b=this.d[a-1],b=b[b.length-1]);a=this.d[a].slice();var c=a[a.length-1];if(0!==b){var d,e;d=0;for(e=a.length;d=a;--b)Dg(f,d[b].extent),g+=Kg(f)+Ig(f);return g}l=Bm.prototype; l.clear=function(){var a=this.a;a.extent=Bg(this.a.extent);a.height=1;a.a.length=0;a.value=null;ic(this.c)};l.forEach=function(a,b){return Dm(this.a,a,b)};function Dm(a,b,c){for(var d=[a],e,f,g;0a.b){g=a;h=e;f=c;d=h[f];p=g;m=d;n=Cm(p,m,xm); p=Cm(p,m,ym);n=h.maxResolution||dW&&Dc(this.target,B.target,0)}else a.viewHints[0]||a.viewHints[1]||Zm(B,r,E);else Ec(B.target),delete this.c[W];b.opacity!=this.i&&(Wc(this.target,b.opacity),this.i=b.opacity);b.visible&&!this.b&&(Xc(this.target,!0),this.b=!0);Yk(a.usedTiles,g,n,p);al(a,g,h,c,e,r,n,f.ea());Vk(a,g);Xk(a,g)}else this.b&&(Xc(this.target,!1),this.b= !1)};function Vm(a,b){this.target=yc("DIV");this.target.style.position="absolute";this.target.style.width="100%";this.target.style.height="100%";this.d=a;this.b=b;this.f=Jg(Mk(a,b));this.g=a.da(b.a);this.c={};this.a=null;this.e=md()} function Wm(a,b,c){var d=b.a,e=d.toString();if(!(e in a.c)){var f=a.d.ia(d.a),g=b.b(a),h=g.style;h.maxWidth="none";var m,n;0c)break;if(bb&&(-1==e||h=m.minResolution)&&d.push(m);g=0;for(h=d.length;g=c[0]||0>=c[1]?b=!1:(b=b.a(),b=s(b)&&b.vd()?!0:!1)}else b=!1;if(!b)return!0;b=!0;a.type===Yf?b=Xn(this,a):a.type===Sf&&(b=!1);return Rn.H.za.call(this,a)&&b};Rn.prototype.$a=function(a){this.v=a.pixel;return!0}; Rn.prototype.ab=function(a){var b=this.v,c=a.pixel,d=b[0]-c[0],b=b[1]-c[1],c=!0;if(d*d+b*b<=this.S){Xn(this,a);if(null===this.e)Yn(this,a);else if(this.a===Sn||Zn(this,a)){a=Wn(this);var e,d=a.M();this.a===Sn?e=d.C():this.a===Tn?(e=d.C(),e.pop(),d.J(e)):this.a===Un&&(this.d[0].pop(),this.d[0].push(this.d[0][0]),d.J(this.d),e=d.C());"MultiPoint"===this.n?a.fb(new pm([e])):"MultiLineString"===this.n?a.fb(new Q([e])):"MultiPolygon"===this.n&&a.fb(new S([e]));null===this.A||this.A.push(a);null===this.B|| this.B.Ka(a);A(this,new Qn("drawend",a))}else e=a.coordinate,a=this.f.M(),this.a===Tn?(this.e=e.slice(),d=a.C(),d.push(e.slice()),a.J(d)):this.a===Un&&(this.d[0].push(e.slice()),a.J(this.d)),$n(this);c=!1}return c}; function Xn(a,b){if(a.a===Sn&&null===a.e)Yn(a,b);else if(null!==a.e){var c=b.coordinate,d=a.f.M(),e,f;a.a===Sn?(f=d.C(),f[0]=c[0],f[1]=c[1],d.J(f)):(a.a===Tn?e=d.C():a.a===Un&&(e=a.d[0]),Zn(a,b)&&(c=a.e.slice()),a.l.M().J(c),f=e[e.length-1],f[0]=c[0],f[1]=c[1],a.a===Tn?d.J(e):a.a===Un&&(a.h.M().J(e),d.J(a.d)));$n(a)}return!0} function Zn(a,b){var c=!1;if(null!==a.f){var d=a.f.M(),e=!1,f=[a.e];a.a===Tn?e=2a.G,f=[a.d[0][0],a.d[0][a.d[0].length-2]]);if(e)for(var d=b.map,e=0,g=f.length;ec?(e="\u2032",b*=60):e="\u00b0":"imperial"==f?0.9144> c?(e="in",b/=0.0254):1609.344>c?(e="ft",b/=0.3048):(e="mi",b/=1609.344):"nautical"==f?(b/=1852,e="nm"):"metric"==f?1>c?(e="mm",b*=1E3):1E3>c?e="m":(e="km",b/=1E3):"us"==f&&(0.9144>c?(e="in",b*=39.37):1609.344>c?(e="ft",b/=0.30480061):(e="mi",b/=1609.3472));for(var f=3*Math.floor(Math.log(a.h*b)/Math.log(10)),g,h;;){g=mo[f%3]*Math.pow(10,Math.floor(f/3));h=Math.round(g/b);if(h>=a.h)break;++f}g=g+e;a.B!=g&&(a.i.innerHTML=g,a.B=g);a.G!=h&&(a.i.style.width=h+"px",a.G=h);a.f||(Xc(a.l,!0),a.f=!0)}};function oo(a){Ld.call(this);this.c=a;this.a={}}v(oo,Ld);var po=[];oo.prototype.na=function(a,b,c,d,e){ja(b)||(po[0]=b,b=po);for(var f=0;fthis.le)if(A(this,new vo("start",this,a.clientX,a.clientY,a)))this.vb=!0;else{this.Na||this.Dc(a);return}}c=yo(this,b,c);b=c.x;c=c.y;this.vb&&A(this,new vo("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(zo(this,a,b,c), a.preventDefault())}};function yo(a,b,c){var d=Hc(oc(a.b));b+=d.x-a.d.x;c+=d.y-a.d.y;a.d=d;a.Mb+=b;a.Nb+=c;b=wo(a,a.Mb);a=xo(a,a.Nb);return new $b(b,a)}l.Eh=function(a){var b=yo(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;zo(this,a,b.x,b.y)};function zo(a,b,c,d){a.Id&&to(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";A(a,new vo("drag",a,b.clientX,b.clientY,b,c,d))} function wo(a,b){var c=a.c,d=isNaN(c.left)?null:c.left,c=isNaN(c.width)?0:c.width;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function xo(a,b){var c=a.c,d=isNaN(c.top)?null:c.top,c=isNaN(c.height)?0:c.height;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function vo(a,b,c,d,e,f,g,h){Qd.call(this,a);this.clientX=c;this.clientY=d;this.d=e;this.left=s(f)?f:b.Mb;this.top=s(g)?g:b.Nb;this.b=b;this.a=!!h}v(vo,Qd);function Ao(a){a=s(a)?a:{};this.e=void 0;this.i=Bo;this.h=!1;var b=s(a.className)?a.className:"ol-zoomslider";a=vc("DIV",[b+"-thumb","ol-unselectable"]);b=vc("DIV",[b,"ol-unselectable"],a);this.f=new ro(a);Od(this,this.f);z(this.f,["drag","end"],this.n,void 0,this);z(b,"click",this.l,!1,this);z(a,"click",Rd);fk.call(this,{element:b})}v(Ao,fk);var Bo=0;Ao.prototype.setMap=function(a){Ao.H.setMap.call(this,a);null===a||a.R()}; Ao.prototype.d=function(a){if(null!==a.b){if(!this.h){var b=this.element,c=Fc(b),b=Zc(b),d;d=Qc(c);var e=Uc(c);d=new Jc(d.x,d.y,e.width,e.height);var e=bd(c,"margin"),f=cd(c),c=b.width-e.left-e.right-f.left-f.right-d.width;d=b.height-e.top-e.bottom-f.top-f.bottom-d.height;b.width>b.height?(this.i=1,b=new Jc(0,0,c,0)):(this.i=Bo,b=new Jc(0,0,0,d));this.f.c=b||new Jc(NaN,NaN,NaN,NaN);this.h=!0}a=a.b.view2DState.resolution;a!==this.e&&(this.e=a,a=-1*(vh(this.b.a().W())(a)-1),b=this.f,c=Fc(this.element), 1==this.i?Mc(c,b.c.left+b.c.width*a):Mc(c,b.c.left,b.c.top+b.c.height*a))}};Ao.prototype.l=function(a){var b=this.b,c=b.a().W();a=Co(this,Do(this,a.offsetX,a.offsetY));b.sa(Dh({resolution:a,duration:200,easing:xh}));a=c.constrainResolution(a);c.d(a)};function Do(a,b,c){var d=a.f.c,e=0;return e=1===a.i?(b-d.left)/d.width:(c-d.top)/d.height}function Co(a,b){b=-1*(Xb(b,0,1)-1);return uh(a.b.a().W())(b)} Ao.prototype.n=function(a){var b=this.b,c=b.a().W();"drag"===a.type?(a=Co(this,Do(this,a.left,a.top)),a!==this.e&&(this.e=a,c.d(a))):(b.sa(Dh({resolution:this.e,duration:200,easing:xh})),a=c.constrainResolution(this.e),c.d(a))};function Eo(a){a=s(a)?a:{};this.e=s(a.extent)?a.extent:null;var b=s(a.className)?a.className:"ol-zoom-extent",c=vc("SPAN",{role:"tooltip"},s(a.tipLabel)?a.tipLabel:"Fit to extent"),d=vc("BUTTON",{"class":"ol-has-tooltip"});d.appendChild(c);c=new Gf(d);Od(this,c);z(c,sf,this.f,!1,this);z(d,["mouseout",Wd],function(){this.blur()},!1);b=vc("DIV",b+" ol-unselectable ol-control",d);fk.call(this,{element:b,target:a.target})}v(Eo,fk); Eo.prototype.f=function(a){a.a.preventDefault();a=this.b;var b=a.a().W(),c=null===this.e?b.i().u():this.e;b.Xd(c,a.e())};function Fo(a){Me.call(this);this.a=a;z(this.a,["change","input"],this.i,!1,this);z(this,Qe("value"),this.h,!1,this);z(this,Qe("checked"),this.g,!1,this)}v(Fo,Me);Fo.prototype.b=function(){return this.get("checked")};Fo.prototype.getChecked=Fo.prototype.b;Fo.prototype.d=function(){return this.get("value")};Fo.prototype.getValue=Fo.prototype.d;Fo.prototype.f=function(a){this.w("value",a)};Fo.prototype.setValue=Fo.prototype.f;Fo.prototype.e=function(a){this.w("checked",a)};Fo.prototype.setChecked=Fo.prototype.e; Fo.prototype.i=function(){var a=this.a;"checkbox"===a.type||"radio"===a.type?this.e(a.checked):this.f(a.value)};Fo.prototype.g=function(){this.a.checked=this.b()};Fo.prototype.h=function(){this.a.value=this.d()};function Go(){};var Ho;a:if(document.implementation&&document.implementation.createDocument)Ho=document.implementation.createDocument("","",null);else{if("undefined"!=typeof ActiveXObject){var Io=new ActiveXObject("MSXML2.DOMDocument");if(Io){Io.resolveExternals=!1;Io.validateOnParse=!1;try{Io.setProperty("ProhibitDTD",!0),Io.setProperty("MaxXMLSize",2048),Io.setProperty("MaxElementDepth",256)}catch(Jo){}}if(Io){Ho=Io;break a}}throw Error("Your browser does not support creating new documents");}var Ko=Ho; function Lo(a,b){return Ko.createElementNS(a,b)}function Mo(a,b){null===a&&(a="");return Ko.createNode(1,b,a)}var No=document.implementation&&document.implementation.createDocument?Lo:Mo;function Oo(a){return Po(a,!1,[]).join("")}function Po(a,b,c){if(4==a.nodeType||3==a.nodeType)b?c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(a.nodeValue);else for(a=a.firstChild;null!==a;a=a.nextSibling)Po(a,b,c);return c}function Qo(a){return a.localName} function Ro(a){var b=a.localName;return s(b)?b:a.baseName}var So=$a?Ro:Qo;function To(a){return a instanceof Document}function Uo(a){return ra(a)&&9==a.nodeType}var Vo=$a?Uo:To;function Wo(a){return a instanceof Node}function Xo(a){return ra(a)&&s(a.nodeType)}var Yo=$a?Xo:Wo;function Zo(a,b,c){return a.getAttributeNS(b,c)||""}function $o(a,b,c){var d="";a=ap(a,b,c);s(a)&&(d=a.nodeValue);return d}var bp=document.implementation&&document.implementation.createDocument?Zo:$o; function cp(a,b,c){return a.getAttributeNodeNS(b,c)}function dp(a,b,c){var d=null;a=a.attributes;for(var e,f,g=0,h=a.length;g=b.gd&&b.cancel())}this.f?this.f.call(this.e,this):this.Gd=!0;this.ib||(a=new zt(this),At(this),Bt(this,!1,a))}};l.Sd=function(a,b){this.fd=!1;Bt(this,a,b)};function Bt(a,b,c){a.ib=!0;a.b=c;a.oc=!b;Ct(a)} function At(a){if(a.ib){if(!a.Gd)throw new Dt(a);a.Gd=!1}}function Et(a){return yb(a.a,function(a){return pa(a[1])})} function Ct(a){a.d&&(a.ib&&Et(a))&&(ea.clearTimeout(a.d),delete a.d);a.c&&(a.c.gd--,delete a.c);for(var b=a.b,c=!1,d=!1;a.a.length&&!a.fd;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.oc?g:f)try{var h=f.call(e||a.e,b);s(h)&&(a.oc=a.oc&&(h==b||h instanceof Error),a.b=b=h);b instanceof yt&&(d=!0,a.fd=!0)}catch(m){b=m,a.oc=!0,Et(a)||(c=!0)}}a.b=b;d&&(d=b,h=xa(a.Sd,a,!0),f=xa(a.Sd,a,!1),d.a.push([h,f,void 0]),d.ib&&Ct(d),b.nf=!0);c&&(a.d=ea.setTimeout(Ce(b),0))} function Dt(a){tb.call(this);this.a=a}v(Dt,tb);Dt.prototype.message="Deferred has already fired";Dt.prototype.name="AlreadyCalledError";function zt(a){tb.call(this);this.a=a}v(zt,tb);zt.prototype.message="Deferred was canceled";zt.prototype.name="CanceledError";function Ft(a,b){tb.call(this,Aa("Error %s: %s",b,Gt(a)));this.code=a}v(Ft,tb); function Gt(a){switch(a){case 1:return"File or directory not found";case 2:return"Insecure or disallowed operation";case 3:return"Operation aborted";case 4:return"File or directory not readable";case 5:return"Invalid encoding";case 6:return"Cannot modify file or directory";case 7:return"Invalid state";case 8:return"Invalid line-ending specifier";case 9:return"Invalid modification";case 10:return"Quota exceeded";case 11:return"Invalid filetype";case 12:return"File or directory already exists at specified path"; default:return"Unrecognized error"}};function Ht(a,b){Qd.call(this,a.type,b);this.a=a}v(Ht,Qd);function It(){He.call(this);this.Ba=new FileReader;this.Ba.onloadstart=xa(this.a,this);this.Ba.onprogress=xa(this.a,this);this.Ba.onload=xa(this.a,this);this.Ba.onabort=xa(this.a,this);this.Ba.onerror=xa(this.a,this);this.Ba.onloadend=xa(this.a,this)}v(It,He);It.prototype.getError=function(){return this.Ba.error&&new Ft(this.Ba.error.code,"reading file")};It.prototype.a=function(a){A(this,new Ht(a,this))};It.prototype.F=function(){It.H.F.call(this);delete this.Ba}; function Jt(a){var b=new yt;a.addEventListener("loadend",ya(function(a,b){var e=b.Ba.result,f=b.getError();null==e||f?(At(a),Bt(a,!1,f)):(At(a),Bt(a,!0,e));b.cc()},b,a));return b};function Kt(a){a=s(a)?a:{};Eh.call(this);this.d=s(a.formatConstructors)?a.formatConstructors:[];this.e=s(a.reprojectTo)?qh(a.reprojectTo):null;this.b=null;this.a=void 0}v(Kt,Eh);l=Kt.prototype;l.F=function(){s(this.a)&&re(this.a);Kt.H.F.call(this)};l.Of=function(a){a=a.P.dataTransfer.files;var b,c,d;b=0;for(c=a.length;bc?g[1]:g[0]);St(a,h);c={};c[sa(g)]=!0;b=1;for(m=f.length;bc)&&(a.index+=e)})}function Qt(){var a=Ui();return function(){return a.Point}};function Ut(a){Eh.call(this);a=s(a)?a:{};this.e=s(a.condition)?a.condition:bg;this.d=s(a.addCondition)?a.addCondition:ze;this.f=s(a.removeCondition)?a.removeCondition:ze;this.i=s(a.toggleCondition)?a.toggleCondition:dg;var b;if(s(a.layers))if(pa(a.layers))b=a.layers;else{var c=a.layers;b=function(a){return 0<=vb(c,a)}}else b=Ae;this.b=b;this.a=new Vi({style:s(a.style)?a.style:Vt()});a=this.a.a;z(a,"add",this.Tg,!1,this);z(a,"remove",this.Sh,!1,this)}v(Ut,Eh);l=Ut.prototype;l.Ug=function(){return this.a.a}; l.za=function(a){if(!this.e(a))return!0;var b=this.d(a),c=this.f(a),d=this.i(a),e=a.map,f=this.a.a;b||c||d?e.wd(a.pixel,function(a){var e=vb(f.a,a);-1==e?(b||d)&&f.push(a):(c||d)&&f.Wc(e)},void 0,this.b):(a=e.wd(a.pixel,aa(),void 0,this.b),s(a)&&1==f.Ab()&&f.Zd(0)==a||(0!==f.Ab()&&f.clear(),s(a)&&f.push(a)));return!1};l.setMap=function(a){var b=this.g,c=this.a.a;null===b||c.forEach(b.sb,b);Ut.H.setMap.call(this,a);this.a.setMap(a);null===a||c.forEach(a.Fa,a)}; function Vt(){var a=Ui();Eb(a.Polygon,a.LineString);Eb(a.GeometryCollection,a.LineString);return function(b){return a[b.M().D()]}}l.Tg=function(a){a=a.element;var b=this.g;null===b||b.Fa(a)};l.Sh=function(a){a=a.element;var b=this.g;null===b||b.sb(a)};function $(a){a=s(a)?a:{};O.call(this,a);this.ea=null;z(this,Qe("gradient"),this.bd,!1,this);this.yc(s(a.gradient)?a.gradient:Wt);var b=Xt(s(a.radius)?a.radius:8,s(a.blur)?a.blur:15,s(a.shadow)?a.shadow:250),c=Array(256),d=s(a.weight)?a.weight:"weight",e;e=na(d)?function(a){return a.get(d)}:d;this.fa(function(a){a=e(a);a=s(a)?Xb(a,0,1):1;var d=255*a|0,h=c[d];s(h)||(h=[new Qi({image:new bl({opacity:a,src:b})})],c[d]=h);return h});this.w("renderOrder",null);z(this,"render",this.cd,!1,this)}v($,O); var Wt=["#00f","#0ff","#0f0","#ff0","#f00"];function Xt(a,b,c){var d=a+b+1,e=2*d,e=td(e,e);e.shadowOffsetX=e.shadowOffsetY=c;e.shadowBlur=b;e.shadowColor="#000";e.beginPath();b=d-c;e.arc(b,b,a,0,2*Math.PI,!0);e.fill();return e.canvas.toDataURL()}$.prototype.Fa=function(){return this.get("gradient")};$.prototype.getGradient=$.prototype.Fa; $.prototype.bd=function(){for(var a=this.Fa(),b=td(1,256),c=b.createLinearGradient(0,0,1,256),d=1/(a.length-1),e=0,f=a.length;ea.d&&!(c=a.a.Fb,d=c.a.a.toString(),d in b&&b[d].contains(c.a));)a.pop()};function Bu(a){Rk.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,opaque:a.opaque,pixelRatios:a.pixelRatios,projection:a.projection,tileGrid:a.tileGrid});this.tileUrlFunction=s(a.tileUrlFunction)?a.tileUrlFunction:wu;this.crossOrigin=s(a.crossOrigin)?a.crossOrigin:null;this.d=new zu;this.tileLoadFunction=s(a.tileLoadFunction)?a.tileLoadFunction:Cu;this.tileClass=s(a.tileClass)?a.tileClass:bo}v(Bu,Rk);function Cu(a,b){a.b().src=b}l=Bu.prototype; l.yd=function(){return this.d.Ga()>this.d.d};l.Ge=function(a){Au(this.d,a)};l.Lb=function(a,b,c,d,e){var f=this.kb(a,b,c);if(Fn(this.d,f))return this.d.get(f);a=new Lb(a,b,c);d=this.tileUrlFunction(a,d,e);d=new this.tileClass(a,s(d)?0:4,s(d)?d:"",this.crossOrigin,this.tileLoadFunction);In(this.d,f,d);return d};l.qc=function(a){this.d.clear();this.tileUrlFunction=a;this.k()};l.af=function(a,b,c){a=this.kb(a,b,c);Fn(this.d,a)&&this.d.get(a)};function Du(a){var b=Array(a.maxZoom+1),c,d=2*Dk/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);Kk.call(this,{minZoom:a.minZoom,origin:[-Dk,Dk],resolutions:b,tileSize:256})}v(Du,Kk); Du.prototype.c=function(a){a=s(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=s(a.wrapX)?a.wrapX:!0,e=new Lb(0,0,0),f=null;if(s(a.extent)){var f=Array(c+1),g;for(g=0;g<=c;++g)f[g]=gq||p<=q)return null;a=a.y;return a<-p||-1=this.minZoom;--a)if(d.a=d.d>>=1,d.b=d.c>>=1,b.call(c,a,d))return!0;return!1};function Eu(a){Bu.call(this,{crossOrigin:"anonymous",opaque:!0,projection:qh("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});this.b=s(a.culture)?a.culture:"en-us";var b=new ij((rb?"https:":"http:")+"//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.imagerySet);pu(new nu(b,"jsonp"),{include:"ImageryProviders",key:a.key},xa(this.e,this))}v(Eu,Bu);var Fu=new Rb({html:'\x3ca class\x3d"ol-attribution-bing-tos" target\x3d"_blank" href\x3d"http://www.microsoft.com/maps/product/terms.html"\x3eTerms of Use\x3c/a\x3e'}); Eu.prototype.e=function(a){if(200!=a.statusCode||"OK"!=a.statusDescription||"ValidCredentials"!=a.authenticationResultCode||1!=a.resourceSets.length||1!=a.resourceSets[0].resources.length)zk(this,2);else{var b=a.brandLogoUri,c=a.resourceSets[0].resources[0],d=new Du({minZoom:c.zoomMin,maxZoom:c.zoomMax,tileSize:c.imageWidth});this.tileGrid=d;var e=this.b;this.tileUrlFunction=xu(d.c(),vu(xb(c.imageUrlSubdomains,function(a){var b=c.imageUrl.replace("{subdomain}",a).replace("{culture}",e);return function(a){return null=== a?void 0:b.replace("{quadkey}",Ob(a))}})));if(c.imageryProviders){var f=$g(qh("EPSG:4326"),this.l);a=xb(c.imageryProviders,function(a){var b=a.attribution,c={};wb(a.coverageAreas,function(a){var b=a.zoomMin,e=a.zoomMax;a=a.bbox;a=Rg([a[1],a[0],a[3],a[2]],f);var g,h;for(g=b;g<=e;++g)h=g.toString(),b=Nk(d,a,g),h in c?c[h].push(b):c[h]=[b]});return new Rb({html:b,tileRanges:c})});a.push(Fu);this.f=a}this.v=b;zk(this,1)}};function Gu(a,b,c){if(pa(a))c&&(a=xa(a,c));else if(a&&"function"==typeof a.handleEvent)a=xa(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647h*g?f*e/(h*n):g*e/(m*n);c=Gg(c);d={OPERATION:this.B?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.MapGuide source",CLIP:"1",SETDISPLAYDPI:this.b,SETDISPLAYWIDTH:Math.round(d[0]),SETDISPLAYHEIGHT:Math.round(d[1]),SETVIEWSCALE:e,SETVIEWCENTERX:c[0],SETVIEWCENTERY:c[1]};nc(d,b);return fj(hj([a],d))};function sv(a){var b=s(a.projection)?a.projection:"EPSG:3857",c=new Du({maxZoom:s(a.maxZoom)?a.maxZoom:18});Bu.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,projection:b,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:wu});this.e=c.c({extent:a.extent,wrapX:a.wrapX});s(a.tileUrlFunction)?this.qc(a.tileUrlFunction):s(a.urls)?this.qc(uu(a.urls)):s(a.url)&&this.b(a.url)}v(sv,Bu);sv.prototype.qc=function(a){sv.H.qc.call(this,xu(this.e,a))}; sv.prototype.b=function(a){this.qc(uu(yu(a)))};function tv(a){a=s(a)?a:{};var b=rb?"https:":"http:";sv.call(this,{attributions:s(a.attributions)?a.attributions:uv,crossOrigin:s(a.crossOrigin)?a.crossOrigin:"anonymous",opaque:!0,maxZoom:a.maxZoom,tileLoadFunction:a.tileLoadFunction,url:s(a.url)?a.url:b+"//{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}v(tv,sv); var vv=new Rb({html:'Data \x26copy; \x3ca href\x3d"http://www.openstreetmap.org/"\x3eOpenStreetMap\x3c/a\x3e contributors, \x3ca href\x3d"http://www.openstreetmap.org/copyright"\x3eODbL\x3c/a\x3e'}),wv=new Rb({html:'Tiles \x26copy; \x3ca href\x3d"http://www.openstreetmap.org/"\x3eOpenStreetMap\x3c/a\x3e contributors, \x3ca href\x3d"http://creativecommons.org/licenses/by-sa/2.0/"\x3eCC BY-SA\x3c/a\x3e'}),uv=[wv,vv];function xv(a){a=s(a)?a:{};var b=yv[a.layer];sv.call(this,{attributions:b.attributions,crossOrigin:"anonymous",logo:"//developer.mapquest.com/content/osm/mq_logo.png",maxZoom:b.maxZoom,opaque:!0,tileLoadFunction:a.tileLoadFunction,url:(rb?"https:":"http:")+"//otile{1-4}-s.mqcdn.com/tiles/1.0.0/"+a.layer+"/{z}/{x}/{y}.jpg"})}v(xv,sv); var zv=new Rb({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/" target\x3d"_blank"\x3eMapQuest\x3c/a\x3e'}),yv={osm:{maxZoom:28,attributions:[zv,vv]},sat:{maxZoom:18,attributions:[zv,new Rb({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,attributions:[zv,vv]}};function Av(a){a=s(a)?a:{};dv.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new wr,logo:a.logo,node:a.node,projection:a.projection,reprojectTo:a.reprojectTo,text:a.text,url:a.url})}v(Av,dv);function Bv(a){bv.call(this,{attributions:a.attributions,extent:a.extent,format:a.format,logo:a.logo,projection:a.projection});this.h=new Bm;this.n=a.loader;this.o=s(a.strategy)?a.strategy:Yt;this.g={}}v(Bv,bv);Bv.prototype.ra=function(a){var b=[],c,d;c=0;for(d=a.length;cthis.b.d};Hv.prototype.Ge=function(a){Au(this.b,a)};Hv.prototype.Lb=function(a,b,c){var d=this.kb(a,b,c);if(Fn(this.b,d))return this.b.get(d);a=new Gv(new Lb(a,b,c),this.tileGrid);In(this.b,d,a);return a};function Iv(a){Bu.call(this,{crossOrigin:a.crossOrigin,projection:qh("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});pu(new nu(a.url),void 0,xa(this.b,this))}v(Iv,Bu); Iv.prototype.b=function(a){var b=qh("EPSG:4326"),c;if(s(a.bounds)){var d=$g(b,this.l);this.Q=c=Rg(a.bounds,d)}var e=a.minzoom||0,d=a.maxzoom||22,f=new Du({maxZoom:d,minZoom:e});this.tileGrid=f;this.tileUrlFunction=xu(f.c({extent:c}),uu(a.tiles));if(s(a.attribution)){b=s(c)?c:b.u();c={};for(var g;e<=d;++e)g=e.toString(),c[g]=[Nk(f,b,e)];this.f=[new Rb({html:a.attribution,tileRanges:c})]}zk(this,1)};function Jv(a){bv.call(this,{attributions:a.attributions,extent:a.extent,format:a.format,logo:a.logo,projection:a.projection});var b=a.tileGrid;this.n=a.tileGrid;this.g=wu;this.o=b.c({extent:a.extent});this.h={};s(a.tileUrlFunction)?(this.g=a.tileUrlFunction,this.k()):s(a.urls)?(this.g=uu(a.urls),this.k()):s(a.url)&&(this.g=uu(yu(a.url)),this.k())}v(Jv,bv);Jv.prototype.clear=function(){ic(this.h)}; Jv.prototype.Ec=function(a,b,c,d){var e=this.n,f=this.h;b=jg(e.a,b,0);a=Nk(e,a,b);for(var g,e=a.a;e<=a.d;++e)for(g=a.b;g<=a.c;++g){var h=f[b+"/"+e+"/"+g];if(s(h)){var m,n;m=0;for(n=h.length;mf&&(f=0);var f=c.styles[f].identifier,g={};wb(c.dimensions,function(a){var b=a.identifier,c=a["default"];s(c)||(c=a.values[0]);g[b]=c});var h=a.contents.tileMatrixSets[d],m=Qv(h),h=qh(h.supportedCRS),n=a.operationsMetadata.GetTile.dcp.http.get,p,q;switch(gc(n[0].constraints.GetEncoding.allowedValues)[0]){case "REST":case "RESTful":q= "REST";p=c.resourceUrls.tile[e];break;case "KVP":q=Rv,p=[],wb(n,function(a){a.constraints.GetEncoding.allowedValues.hasOwnProperty(Rv)&&p.push(a.url)})}return{urls:p,layer:b,matrixSet:d,format:e,projection:h,requestEncoding:q,tileGrid:m,style:f,dimensions:g}};function Vv(a){var b=s(a)?a:b;Kk.call(this,{origin:[0,0],resolutions:b.resolutions})}v(Vv,Kk);Vv.prototype.c=function(a){a=s(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=new Lb(0,0,0),e=null;if(s(a.extent)){var e=Array(c+1),f;for(f=0;f<=c;++f)e[f]=fp||n<=p)return null;a=a.y;return a<-n||-1f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),f+=f;break;case "truncated":for(;c>f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),c>>=1,d>>=1}e.push([1,1]);e.reverse();for(var f=[1],g=[0],d=1,c=e.length;d