(function(){function k(a){return function(){return this[a]}}function ba(a){return function(){return a}}var m,ca=ca||{},p=this;function ea(){}function ga(a){a.ia=function(){return a.Vd?a.Vd:a.Vd=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 t(a){return void 0!==a}function ia(a){return"array"==ha(a)}function ja(a){var b=ha(a);return"array"==b||"object"==b&&"number"==typeof a.length}function u(a){return"string"==typeof a}function la(a){return"number"==typeof a}function ma(a){return"function"==ha(a)}function na(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function x(a){return a[oa]||(a[oa]=++pa)} var oa="closure_uid_"+(1E9*Math.random()>>>0),pa=0;function qa(a,b,c){return a.call.apply(a.bind,arguments)}function ra(a,b,c){if(!a)throw Error();if(2/g,Ba=/\"/g,xa=/[&<>\"]/; function Ca(a){a=t(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};var Da=Array.prototype,Ea=Da.indexOf?function(a,b,c){return Da.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(u(a))return u(b)&&1==b.length?a.indexOf(b,c):-1;for(;cc?null:u(a)?a.charAt(c):a[c]}function Na(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,f=0;f=arguments.length?Da.slice.call(a,b):Da.slice.call(a,b,c)}function Ua(a,b){Da.sort.call(a,b||Va)}function Va(a,b){return a>b?1:a>=1;return b.join("")}Xa.prototype.toString=function(){return[this.z,this.x,this.y].join("/")};function $a(a,b,c,d){this.a=a;this.d=b;this.c=c;this.b=d}function ab(a,b,c,d,e){return t(e)?(e.a=a,e.d=b,e.c=c,e.b=d,e):new $a(a,b,c,d)}$a.prototype.contains=function(a){return this.a<=a.x&&a.x<=this.d&&this.c<=a.y&&a.y<=this.b};function bb(a){this.b=a.html;this.a=t(a.tileRanges)?a.tileRanges:null};function cb(){0!=db&&(this.Xg=Error().stack,eb[x(this)]=this)}var db=0,eb={};cb.prototype.ac=!1;cb.prototype.oc=function(){if(!this.ac&&(this.ac=!0,this.v(),0!=db)){var a=x(this);delete eb[a]}};function fb(a,b){var c=sa(gb,b);a.V||(a.V=[]);a.V.push(y(c,void 0))}cb.prototype.v=function(){if(this.V)for(;this.V.length;)this.V.shift()()};function gb(a){a&&"function"==typeof a.oc&&a.oc()};function hb(a,b){this.type=a;this.c=this.target=b}m=hb.prototype;m.oc=function(){};m.jb=!1;m.Ue=!1;m.ie=!0;m.rb=function(){this.jb=!0};m.U=function(){this.Ue=!0;this.ie=!1};function ib(a){a.rb()}function jb(a){a.U()};var kb,lb,mb,nb,ob,pb,qb;function rb(){return p.navigator?p.navigator.userAgent:null}function sb(){return p.navigator}nb=mb=lb=kb=!1;var tb;if(tb=rb()){var ub=sb();kb=0==tb.lastIndexOf("Opera",0);lb=!kb&&(-1!=tb.indexOf("MSIE")||-1!=tb.indexOf("Trident"));mb=!kb&&-1!=tb.indexOf("WebKit");nb=!kb&&!mb&&!lb&&"Gecko"==ub.product}var vb=kb,G=lb,wb=nb,xb=mb,yb,zb=sb();yb=zb&&zb.platform||"";ob=-1!=yb.indexOf("Mac");pb=-1!=yb.indexOf("Win");qb=-1!=yb.indexOf("Linux"); var Bb=!!sb()&&-1!=(sb().appVersion||"").indexOf("X11");function Cb(){var a=p.document;return a?a.documentMode:void 0}var Db;a:{var Fb="",Gb;if(vb&&p.opera)var Hb=p.opera.version,Fb="function"==typeof Hb?Hb():Hb;else if(wb?Gb=/rv\:([^\);]+)(\)|;)/:G?Gb=/\b(?:MSIE|rv)\s+([^\);]+)(\)|;)/:xb&&(Gb=/WebKit\/(\S+)/),Gb)var Ib=Gb.exec(rb()),Fb=Ib?Ib[1]:"";if(G){var Jb=Cb();if(Jb>parseFloat(Fb)){Db=String(Jb);break a}}Db=Fb}var Kb={}; function Lb(a){var b;if(!(b=Kb[a])){b=0;for(var c=va(String(Db)).split("."),d=va(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f(0==q[1].length?0:parseInt(q[1],10))?1:0)||((0==r[2].length)< (0==q[2].length)?-1:(0==r[2].length)>(0==q[2].length)?1:0)||(r[2]q[2]?1:0)}while(0==b)}b=Kb[a]=0<=b}return b}var Mb=p.document,Nb=Mb&&G?Cb()||("CSS1Compat"==Mb.compatMode?parseInt(Db,10):5):void 0;var Ob=!G||G&&9<=Nb,Pb=!G||G&&9<=Nb,Qb=G&&!Lb("9");!xb||Lb("528");wb&&Lb("1.9b")||G&&Lb("8")||vb&&Lb("9.5")||xb&&Lb("528");wb&&!Lb("8")||G&&Lb("9");function Rb(a){Rb[" "](a);return a}Rb[" "]=ea;function Sb(a,b){a&&Tb(this,a,b)}F(Sb,hb);var Ub=[1,4,2];m=Sb.prototype;m.target=null;m.Te=null;m.Ld=0;m.Md=0;m.clientX=0;m.clientY=0;m.hd=0;m.jd=0;m.Se=0;m.Wa=0;m.fd=0;m.Rb=!1;m.ua=!1;m.Xa=!1;m.gd=!1;m.Gb=!1;m.ea=null; function Tb(a,b,c){var d=a.type=b.type;hb.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(wb){var e;a:{try{Rb(c.nodeName);e=!0;break a}catch(f){}e=!1}e||(c=null)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.Te=c;a.Ld=xb||void 0!==b.offsetX?b.offsetX:b.layerX;a.Md=xb||void 0!==b.offsetY?b.offsetY:b.layerY;a.clientX=void 0!==b.clientX?b.clientX:b.pageX;a.clientY=void 0!==b.clientY?b.clientY:b.pageY;a.hd=b.screenX||0;a.jd=b.screenY||0;a.Se=b.button;a.Wa= b.keyCode||0;a.fd=b.charCode||("keypress"==d?b.keyCode:0);a.Rb=b.ctrlKey;a.ua=b.altKey;a.Xa=b.shiftKey;a.gd=b.metaKey;a.Gb=ob?b.metaKey:b.ctrlKey;a.a=b.state;a.ea=b;b.defaultPrevented&&a.U();delete a.jb}function Vb(a){return(Ob?0==a.ea.button:"click"==a.type?!0:!!(a.ea.button&Ub[0]))&&!(xb&&ob&&a.Rb)}m.rb=function(){Sb.F.rb.call(this);this.ea.stopPropagation?this.ea.stopPropagation():this.ea.cancelBubble=!0}; m.U=function(){Sb.F.U.call(this);var a=this.ea;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Qb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};m.Ge=k("ea");var Wb="closure_listenable_"+(1E6*Math.random()|0);function bc(a){return!(!a||!a[Wb])}var cc=0;function dc(a,b,c,d,e,f){this.Oa=a;this.a=b;this.src=c;this.type=d;this.capture=!!e;this.tb=f;this.key=++cc;this.$a=this.Bb=!1}function ec(a){a.$a=!0;a.Oa=null;a.a=null;a.src=null;a.tb=null};function fc(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function gc(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function hc(a){var b=0,c;for(c in a)b++;return b}function ic(a){for(var b in a)return b}function jc(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function kc(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function lc(a){var b=mc,c;for(c in b)if(a.call(void 0,b[c],c,b))return c}function nc(a){for(var b in a)return!1;return!0} function rc(a){var b={},c;for(c in a)b[c]=a[c];return b}var sc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function J(a,b){for(var c,d,e=1;ee.keyCode||void 0!=e.returnValue)return!0;a:{var h=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(l){h=!0}if(h||void 0==e.returnValue)e.returnValue=!0}}h=new Sb;Tb(h,e,this);e=!0;try{if(c){for(var n=[],r=h.c;r;r=r.parentNode)n.push(r);f=d[!0];for(var q=n.length- 1;!h.jb&&0<=q;q--)h.c=n[q],e&=Gc(f,n[q],h);if(g)for(f=d[!1],q=0;!h.jb&&q>>0);function xc(a){return ma(a)?a:a[Jc]||(a[Jc]=function(b){return a.handleEvent(b)})};function Kc(a){this.src=a;this.a={};this.b=0}Kc.prototype.add=function(a,b,c,d,e){var f=this.a[a];f||(f=this.a[a]=[],this.b++);var g=Lc(f,b,d,e);-1c*b?c+b:c}function dd(a){return a*Math.PI/180};function ed(a){N.call(this);a=t(a)?a:{};this.a=null;L(this,Tc("tracking"),this.i,!1,this);this.b(t(a.tracking)?a.tracking:!1)}F(ed,N);ed.prototype.v=function(){this.b(!1);ed.F.v.call(this)};var fd="DeviceOrientationEvent"in window; ed.prototype.l=function(a){a=a.ea;if(null!=a.alpha){var b=dd(a.alpha);this.o("alpha",b);"boolean"==typeof a.absolute&&a.absolute?this.o("heading",b):null!=a.webkitCompassHeading&&(null!=a.webkitCompassAccuracy&&-1!=a.webkitCompassAccuracy)&&this.o("heading",dd(a.webkitCompassHeading))}null!=a.beta&&this.o("beta",dd(a.beta));null!=a.gamma&&this.o("gamma",dd(a.gamma))};ed.prototype.d=function(){return this.get("alpha")};ed.prototype.getAlpha=ed.prototype.d;ed.prototype.e=function(){return this.get("beta")}; ed.prototype.getBeta=ed.prototype.e;ed.prototype.f=function(){return this.get("gamma")};ed.prototype.getGamma=ed.prototype.f;ed.prototype.g=function(){return this.get("heading")};ed.prototype.getHeading=ed.prototype.g;ed.prototype.c=function(){return this.get("tracking")};ed.prototype.getTracking=ed.prototype.c;ed.prototype.i=function(){if(fd){var a=this.c();a&&null===this.a?this.a=L(window,"deviceorientation",this.l,!1,this):a||null===this.a||(Ec(this.a),this.a=null)}}; ed.prototype.b=function(a){this.o("tracking",a)};ed.prototype.setTracking=ed.prototype.b;function gd(a,b){a[0]+=b[0];a[1]+=b[1]}function hd(a,b){var c=cd(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 id(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}function jd(a,b){var c=a[0]-b[0],d=a[1]-b[1];return c*c+d*d}function kd(a,b){if(t(a)){var c=b||0;return a[0].toFixed(c)+", "+a[1].toFixed(c)}return""} function ld(a,b){var c=b.charAt(0);return"n"===c||"s"===c?[a[1],a[0]]:a};function md(a){var b=nd(),c=a.length,d;for(d=0;de[1]&&(e[1]=f[0]);f[1]e[3]&&(e[3]=f[1])}return b}function od(a,b,c){var d=Math.min.apply(null,a);a=Math.max.apply(null,a);var e=Math.min.apply(null,b);b=Math.max.apply(null,b);return t(c)?(c[0]=d,c[1]=a,c[2]=e,c[3]=b,c):[d,a,e,b]}function pd(a,b){return a[0]<=b[0]&&b[0]<=a[1]&&a[2]<=b[1]&&b[1]<=a[3]}function qd(a,b){return a[0]<=b[0]&&b[1]<=a[1]&&a[2]<=b[2]&&b[3]<=a[3]} function nd(){return[Infinity,-Infinity,Infinity,-Infinity]}function rd(a,b,c,d,e){return t(e)?(e[0]=a,e[1]=b,e[2]=c,e[3]=d,e):[a,b,c,d]}function sd(a,b){return a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]&&a[3]==b[3]}function td(a,b){b[0]a[1]&&(a[1]=b[1]);b[2]a[3]&&(a[3]=b[3])}function ud(a){return[a[0],a[2]]}function vd(a){return[(a[0]+a[1])/2,(a[2]+a[3])/2]} function wd(a,b,c,d){var e=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);c=Math.sin(c);e=[-e,-e,e,e];d=[-d,d,-d,d];var f,g,h;for(f=0;4>f;++f)g=e[f],h=d[f],e[f]=a[0]+g*b-h*c,d[f]=a[1]+g*c+h*b;return od(e,d,void 0)}function xd(a){return[a[0],a[3]]}function yd(a,b){return a[0]<=b[1]&&a[1]>=b[0]&&a[2]<=b[3]&&a[3]>=b[2]}function zd(a,b,c){a=[a[0],a[2],a[0],a[3],a[1],a[2],a[1],a[3]];b(a,a,2);return od([a[0],a[2],a[4],a[6]],[a[1],a[3],a[5],a[7]],c)};function Ad(a){a=a?a:{};this.coordinates=[];this.b=[];this.c=[];this.ya=a.dimension||2;this.a=a.offset||null}Ad.prototype.add=function(a){for(var b=this.coordinates.length,c=this.a,d=this.ya,e=a.length,f,g,h=0;h2*this.u&&qe(this),!0):!1};function qe(a){if(a.u!=a.a.length){for(var b=0,c=0;bc?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")} function we(a,b,c){if(ia(b))for(var d=0;db)throw Error("Bad port number "+b);a.Kc=b}else a.Kc=null}function Ce(a,b,c){Ae(a);b instanceof De?(a.a=b,Je(a.a,a.pb)):(c||(b=Ee(b,Ke)),a.a=new De(b,0,a.pb))}function Le(a,b,c){Ae(a);ia(c)||(c=[String(c)]);Me(a.a,b,c)}function Ae(a){if(a.Af)throw Error("Tried to modify a read-only Uri");} function Ee(a,b){return u(a)?encodeURI(a).replace(b,Ne):null}function Ne(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Fe=/[#\/\?@]/g,He=/[\#\?:]/g,Ge=/[\#\?]/g,Ke=/[\#\?@]/g,Ie=/#/g;function De(a,b,c){this.a=a||null;this.b=!!c} function Oe(a){if(!a.W&&(a.W=new oe,a.u=0,a.a))for(var b=a.a.split("\x26"),c=0;c=a||96<=a&&106>=a||65<=a&&90>=a||xb&&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 Sf(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Tf(a,b){Mc.call(this);a&&(this.Fc&&Uf(this),this.Sb=a,this.Ec=L(this.Sb,"keypress",this,b),this.kd=L(this.Sb,"keydown",this.a,b,this),this.Fc=L(this.Sb,"keyup",this.b,b,this))}F(Tf,Mc);m=Tf.prototype;m.Sb=null;m.Ec=null;m.kd=null;m.Fc=null;m.qa=-1;m.fb=-1;m.Tc=!1; var Vf={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},Wf={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},Xf=G||xb&&Lb("525"),Yf=ob&&wb; Tf.prototype.a=function(a){xb&&(17==this.qa&&!a.Rb||18==this.qa&&!a.ua||ob&&91==this.qa&&!a.gd)&&(this.fb=this.qa=-1);-1==this.qa&&(a.Rb&&17!=a.Wa?this.qa=17:a.ua&&18!=a.Wa?this.qa=18:a.gd&&91!=a.Wa&&(this.qa=91));Xf&&!Qf(a.Wa,this.qa,a.Xa,a.Rb,a.ua)?this.handleEvent(a):(this.fb=wb?Sf(a.Wa):a.Wa,Yf&&(this.Tc=a.ua))};Tf.prototype.b=function(a){this.fb=this.qa=-1;this.Tc=a.ua}; Tf.prototype.handleEvent=function(a){var b=a.ea,c,d,e=b.altKey;G&&"keypress"==a.type?(c=this.fb,d=13!=c&&27!=c?b.keyCode:0):xb&&"keypress"==a.type?(c=this.fb,d=0<=b.charCode&&63232>b.charCode&&Rf(c)?b.charCode:0):vb?(c=this.fb,d=Rf(c)?b.keyCode:0):(c=b.keyCode||this.fb,d=b.charCode||0,Yf&&(e=this.Tc),ob&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Vf?f=Vf[c]:25==c&&a.Xa&&(f=9):g&&g in Wf&&(f=Wf[g]);a=f==this.qa;this.qa=f;b=new Zf(f,d,a,b);b.ua=e;M(this,b)}; function Uf(a){a.Ec&&(Ec(a.Ec),Ec(a.kd),Ec(a.Fc),a.Ec=null,a.kd=null,a.Fc=null);a.Sb=null;a.qa=-1;a.fb=-1}Tf.prototype.v=function(){Tf.F.v.call(this);Uf(this)};function Zf(a,b,c,d){d&&Tb(this,d,void 0);this.type="key";this.Wa=a;this.fd=b;this.b=c}F(Zf,Sb);function $f(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}m=$f.prototype;m.da=function(){return new $f(this.top,this.right,this.bottom,this.left)};m.contains=function(a){return this&&a?a instanceof $f?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:!1}; m.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};m.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};m.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}; m.scale=function(a,b){var c=la(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function ag(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}m=ag.prototype;m.da=function(){return new ag(this.left,this.top,this.width,this.height)};m.contains=function(a){return a instanceof ag?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}; m.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};m.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};m.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}; m.scale=function(a,b){var c=la(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function bg(a,b){var c=zf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function cg(a,b){return bg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function dg(a,b,c){var d,e=wb&&(ob||Bb)&&Lb("1.9");b instanceof vf?(d=b.x,b=b.y):(d=b,b=c);a.style.left=eg(d,e);a.style.top=eg(b,e)} function fg(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}G&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b} function gg(a){if(G&&!(G&&8<=Nb))return a.offsetParent;var b=zf(a),c=cg(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=cg(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 hg(a){var b,c=zf(a),d=cg(a,"position"),e=wb&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new vf(0,0),g;b=c?zf(c):document;g=!G||G&&9<=Nb||Nf(xf(b))?b.documentElement:b.body;if(a==g)return f;if(a.getBoundingClientRect)b=fg(a),a=Of(xf(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{b=a;do{f.x+=b.offsetLeft;f.y+= b.offsetTop;b!=a&&(f.x+=b.clientLeft||0,f.y+=b.clientTop||0);if(xb&&"fixed"==cg(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(vb||xb&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=gg(b))&&b!=c.body&&b!=g;)f.x-=b.scrollLeft,vb&&"TR"==b.tagName||(f.y-=b.scrollTop)}return f}function ig(a,b){var c=jg(a),d=jg(b);return new vf(c.x-d.x,c.y-d.y)} function jg(a){if(1==a.nodeType){var b;if(a.getBoundingClientRect)b=fg(a),b=new vf(b.left,b.top);else{b=Of(xf(a));var c=hg(a);b=new vf(c.x-b.x,c.y-b.y)}if(wb&&!Lb(12)){var d;G?d="-ms-transform":xb?d="-webkit-transform":vb?d="-o-transform":wb&&(d="-moz-transform");var e;d&&(e=cg(a,d));e||(e=cg(a,"transform"));a=e?(a=e.match(kg))?new vf(parseFloat(a[1]),parseFloat(a[2])):new vf(0,0):new vf(0,0);a=new vf(b.x+a.x,b.y+a.y)}else a=b;return a}d=ma(a.Ge);e=a;a.targetTouches?e=a.targetTouches[0]:d&&a.ea.targetTouches&& (e=a.ea.targetTouches[0]);return new vf(e.clientX,e.clientY)}function eg(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function lg(a){var b=mg;if("none"!=cg(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 mg(a){var b=a.offsetWidth,c=a.offsetHeight,d=xb&&!b&&!c;return t(b)&&!d||!a.getBoundingClientRect?new wf(b,c):(a=fg(a),new wf(a.right-a.left,a.bottom-a.top))}function ng(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 og(a,b){a.style.display=b?"":"none"}function pg(a){return"rtl"==cg(a,"direction")} function qg(a,b){var c=Nf(xf(zf(a)));if(!G||c&&Lb("8")){var d=a.style;wb?d.MozBoxSizing="border-box":xb?d.WebkitBoxSizing="border-box":d.boxSizing="border-box";d.width=Math.max(b.width,0)+"px";d.height=Math.max(b.height,0)+"px"}else if(d=a.style,c){var c=rg(a,"padding"),e=sg(a);d.pixelWidth=b.width-e.left-c.left-c.right-e.right;d.pixelHeight=b.height-e.top-c.top-c.bottom-e.bottom}else d.pixelWidth=b.width,d.pixelHeight=b.height} function tg(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 ug(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?tg(a,c,"left","pixelLeft"):0} function rg(a,b){if(G){var c=ug(a,b+"Left"),d=ug(a,b+"Right"),e=ug(a,b+"Top"),f=ug(a,b+"Bottom");return new $f(e,d,f,c)}c=bg(a,b+"Left");d=bg(a,b+"Right");e=bg(a,b+"Top");f=bg(a,b+"Bottom");return new $f(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))}var vg={thin:2,medium:4,thick:6};function wg(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 vg?vg[c]:tg(a,c,"left","pixelLeft")} function sg(a){if(G){var b=wg(a,"borderLeft"),c=wg(a,"borderRight"),d=wg(a,"borderTop");a=wg(a,"borderBottom");return new $f(d,c,a,b)}b=bg(a,"borderLeftWidth");c=bg(a,"borderRightWidth");d=bg(a,"borderTopWidth");a=bg(a,"borderBottomWidth");return new $f(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var kg=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function xg(a,b){Mc.call(this);this.a=a;var c=na(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:null;this.e=!!c&&pg(c);this.b=L(this.a,wb?"DOMMouseScroll":"mousewheel",this,b)}F(xg,Mc); xg.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.ea;if("mousewheel"==a.type){c=1;if(G||xb&&(pb||Lb("532.0")))c=40;d=yg(-a.wheelDelta,c);t(a.wheelDeltaX)?(b=yg(-a.wheelDeltaX,c),c=yg(-a.wheelDeltaY,c)):c=d}else d=a.detail,100d&&(d=-3),t(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;la(this.c)&&(b=Yc(b,-this.c,this.c));la(this.d)&&(c=Yc(c,-this.d,this.d));this.e&&(b=-b);b=new zg(d,a,b,c);M(this,b)};function yg(a,b){return xb&&(ob||qb)&&0!=a%b?a:a/b} xg.prototype.v=function(){xg.F.v.call(this);Ec(this.b);this.b=null};function zg(a,b,c,d){b&&Tb(this,b,void 0);this.type="mousewheel";this.b=a;this.oa=c;this.ma=d}F(zg,Sb);function Ag(a){this.length=a.length||a;for(var b=0;b>1;){var l=2*b+1,n=2*b+2,l=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 Bh(a){var b=a.f,c=a.a,d=a.b,e=0,f=c.length,g,h,l;for(h=0;h>1)-1;0<=b;b--)yh(a,b)};function Ch(a,b){wh.call(this,function(b){return a.apply(null,b)},function(a){return a[0].c()});this.V=b;this.d=0}F(Ch,wh);Ch.prototype.g=function(){--this.d;this.V()};function R(a){N.call(this);a=rc(a);a.brightness=t(a.brightness)?a.brightness:0;a.contrast=t(a.contrast)?a.contrast:1;a.hue=t(a.hue)?a.hue:0;a.opacity=t(a.opacity)?a.opacity:1;a.saturation=t(a.saturation)?a.saturation:1;a.visible=t(a.visible)?a.visible:!0;this.$b(a);L(this,[Tc("brightness"),Tc("contrast"),Tc("hue"),Tc("opacity"),Tc("saturation"),"load"],this.Bc,!1,this);L(this,Tc("visible"),this.Td,!1,this)}F(R,N);function Dh(a){M(a,"change")}R.prototype.f=function(){return this.get("brightness")}; R.prototype.getBrightness=R.prototype.f;R.prototype.g=function(){return this.get("contrast")};R.prototype.getContrast=R.prototype.g;R.prototype.i=function(){return this.get("hue")};R.prototype.getHue=R.prototype.i;function Eh(a){var b=a.f(),c=a.g(),d=a.i(),e=a.q(),f=a.Ba(),g=a.l();a=a.b();return{brightness:t(b)?Yc(b,-1,1):0,contrast:t(c)?Math.max(c,0):1,hue:t(d)?d:0,opacity:t(e)?Yc(e,0,1):1,Lc:f,saturation:t(g)?Math.max(g,0):1,visible:t(a)?!!a:!0}}R.prototype.q=function(){return this.get("opacity")}; R.prototype.getOpacity=R.prototype.q;R.prototype.l=function(){return this.get("saturation")};R.prototype.getSaturation=R.prototype.l;R.prototype.b=function(){return this.get("visible")};R.prototype.getVisible=R.prototype.b;R.prototype.Bc=function(){this.b()&&this.Ba()&&Dh(this)};R.prototype.Td=function(){this.Ba()&&Dh(this)};R.prototype.G=function(a){this.o("brightness",a)};R.prototype.setBrightness=R.prototype.G;R.prototype.K=function(a){this.o("contrast",a)};R.prototype.setContrast=R.prototype.K; R.prototype.Q=function(a){this.o("hue",a)};R.prototype.setHue=R.prototype.Q;R.prototype.t=function(a){this.o("opacity",a)};R.prototype.setOpacity=R.prototype.t;R.prototype.$=function(a){this.o("saturation",a)};R.prototype.setSaturation=R.prototype.$;R.prototype.la=function(a){this.o("visible",a)};R.prototype.setVisible=R.prototype.la;function Fh(a){Mc.call(this);this.i=ie(a.projection);this.g=t(a.extent)?a.extent:t(a.projection)?this.i.ba():null;this.e=t(a.attributions)?a.attributions:null;this.f=a.logo;this.b=0}F(Fh,Mc);function Gh(a){++a.b;M(a,"change")}Fh.prototype.ba=k("g");Fh.prototype.fa=k("i");Fh.prototype.Ba=Te;function Hh(a){var b=rc(a);delete b.source;R.call(this,b);this.d=a.source;L(this.d,"change",this.nf,!1,this);this.d.Ba()||Bc(this.d,"load",this.of,!1,this)}F(Hh,R);m=Hh.prototype;m.Ob=function(a){a=t(a)?a:[];a.push(this);return a};m.bd=function(a){a=t(a)?a:{layers:[],ra:[]};a.layers.push(this);a.ra.push(Eh(this));return a};m.ja=k("d");m.nf=function(){Dh(this)};m.of=function(){M(this,"load")};m.Ba=function(){return this.ja().Ba()};function Ih(a,b,c){hb.call(this,a);this.map=b;this.b=t(c)?c:null}F(Ih,hb);function Jh(a,b,c,d){Ih.call(this,a,b,d);this.a=c;this.g=this.f=null}F(Jh,Ih);Jh.prototype.d=function(){null===this.f&&(this.f=Kh(this.map,this.e()));return this.f};Jh.prototype.e=function(){if(null===this.g){var a=ig(this.a,this.map.b);this.g=[a.x,a.y]}return this.g};Jh.prototype.U=function(){Jh.F.U.call(this);this.a.U()};Jh.prototype.rb=function(){Jh.F.rb.call(this);this.a.rb()}; function Lh(a){Mc.call(this);this.a=a;this.c=!1;this.b=this.g=this.d=this.e=this.f=null;a=this.a.b;this.e=[L(a,["click","dblclick"],this.Cd,!1,this),L(a,"mousedown",this.df,!1,this),L(a,"mousemove",this.qd,!1,this),L(a,"mouseout",this.qd,!1,this),L(a,"contextmenu",this.qd,!1,this)];this.g=[L(a,["touchstart","MSPointerDown"],this.tf,!1,this),L(p.document,["touchmove","MSPointerMove"],this.sf,!1,this),L(p.document,["touchend","MSPointerUp"],this.rf,!1,this)]}F(Lh,Mc);m=Lh.prototype; m.Cd=function(a){if(!this.c){var b=a.type;M(this,0===this.f||"dblclick"==b?new Jh(Mh,this.a,a):new Jh(Nh,this.a,a))}};m.ff=function(a){this.b&&(this.b=null,Fa(this.d,Ec),this.d=null,this.c&&M(this,new Jh(Oh,this.a,a)))};m.df=function(a){M(this,new Jh(Ph,this.a,a));this.b||(this.b=a,this.c=!1,this.d=[L(p.document,"mousemove",this.ef,!1,this),L(p.document,"mouseup",this.ff,!1,this)],a.U())}; m.ef=function(a){var b;this.c||(this.c=!0,b=new Jh(Qh,this.a,this.b),M(this,b));b=new Jh(Rh,this.a,a);M(this,b)};m.qd=function(a){M(this,new Jh(a.type,this.a,a))};m.tf=function(a){a.U();this.b=a;this.c=!1;M(this,new Jh(Sh,this.a,a))};m.sf=function(a){this.b&&(this.c=!0,M(this,new Jh(Th,this.a,a)))};m.rf=function(a){M(this,new Jh(Uh,this.a,a));this.c||(a=ta(),this.f=!this.f||250c)for(c=1;cf?1:0.5,d=Math.floor(Math.log(b/d)/Math.log(a)+f),e=Math.max(d+e,0),t(c)&&(e=Math.min(e,c)),b/Math.pow(a,e)}};function ai(){return function(a,b){if(t(a))return 0.1>=Math.abs(a+b)?0:a+b}};function bi(a){var b=ai();this.resolution=a;this.rotation=b};function S(a){Wh.call(this);a=a||{};var b={};b.center=t(a.center)?a.center:null;b.projection=he(a.projection);var c,d,e;if(t(a.resolutions))c=a.resolutions,d=c[0],e=c[c.length-1],c=Zh(c);else{d=a.maxResolution;t(d)||(d=a.projection,e=he(d).ba(),d=(null===e?360*Id.degrees/Id[d.zb]:Math.max(e[1]-e[0],e[3]-e[2]))/256);c=a.maxZoom;t(c)||(c=28);var f=a.zoomFactor;t(f)||(f=2);e=d/Math.pow(f,c);c=$h(f,d,c)}this.b=d;this.f=e;this.g=new bi(c);t(a.resolution)?b.resolution=a.resolution:t(a.zoom)&&(b.resolution= this.Ia(this.b,a.zoom));b.rotation=t(a.rotation)?a.rotation:0;this.$b(b)}F(S,Wh);function ci(a,b,c){var d,e=a.a();t(e)&&(d=[e[0]-c[0],e[1]-c[1]],id(d,b-a.c()),gd(d,c));return d}function di(a,b,c){var d,e=a.a();a=a.B();t(e)&&t(a)&&(d=[c[0]-b*(c[0]-e[0])/a,c[1]-b*(c[1]-e[1])/a]);return d}S.prototype.Ia=function(a,b,c){return this.g.resolution(a,b||0,c||0)};S.prototype.kc=function(a,b){return this.g.rotation(a,b||0)};S.prototype.a=function(){return this.get("center")};S.prototype.getCenter=S.prototype.a; S.prototype.i=function(a){var b=this.a(),c=this.B();return[b[0]-c*a[0]/2,b[0]+c*a[0]/2,b[1]-c*a[1]/2,b[1]+c*a[1]/2]};S.prototype.fa=function(){return this.get("projection")};S.prototype.getProjection=S.prototype.fa;S.prototype.B=function(){return this.get("resolution")};S.prototype.getResolution=S.prototype.B;function ei(a){var b=a.b,c=Math.log(b/a.f)/Math.log(2);return function(a){return b/Math.pow(2,a*c)}}S.prototype.c=function(){return this.get("rotation")};S.prototype.getRotation=S.prototype.c; function fi(a){var b=a.b,c=Math.log(b/a.f)/Math.log(2);return function(a){return Math.log(b/a)/Math.log(2)/c}}m=S.prototype;m.O=function(){return this};function gi(a){var b=a.a(),c=a.fa(),d=a.B();a=a.c();return{center:b.slice(),projection:t(c)?c:null,resolution:d,rotation:t(a)?a:0}}m.Re=function(){var a,b=this.B();if(t(b)){var c,d=0;do{c=this.Ia(this.b,d);if(c==b){a=d;break}++d}while(c>this.f)}return a}; m.$c=function(a,b){this.Da(vd(a));var c=Math.max((a[1]-a[0])/b[0],(a[3]-a[2])/b[1]),c=this.Ia(c,0,0);this.kb(c)};m.Xb=function(){return null!=this.a()&&t(this.B())};m.Da=function(a){this.o("center",a)};S.prototype.setCenter=S.prototype.Da;S.prototype.l=function(a){this.o("projection",a)};S.prototype.setProjection=S.prototype.l;S.prototype.kb=function(a){this.o("resolution",a)};S.prototype.setResolution=S.prototype.kb;S.prototype.d=function(a){this.o("rotation",a)};S.prototype.setRotation=S.prototype.d; S.prototype.q=function(a){a=this.Ia(this.b,a,0);this.kb(a)};function hi(a){N.call(this);this.element=t(a.element)?a.element:null;this.q=a.target;this.a=null;this.e=[]}F(hi,N);hi.prototype.v=function(){Lf(this.element);hi.F.v.call(this)};hi.prototype.$=k("a");hi.prototype.d=ea;hi.prototype.setMap=function(a){null===this.a||Lf(this.element);0!=this.e.length&&(Fa(this.e,Ec),this.e.length=0);this.a=a;null!==this.a&&((t(this.q)?this.q:a.t).appendChild(this.element),this.d!==ea&&this.e.push(L(a,"postrender",this.d,!1,this)))};function ii(a){a=t(a)?a:{};this.g=Gf("UL");var b=Df("DIV",{"class":(t(a.className)?a.className:"ol-attribution")+" ol-unselectable"},this.g);hi.call(this,{element:b,target:a.target});this.f=!0;this.c={};this.b={}}F(ii,hi); ii.prototype.d=function(a){a=a.b;if(null===a)this.f&&(og(this.element,!1),this.f=!1);else{var b,c,d,e,f,g,h,l,n,r=a.Gc,q=rc(a.attributions),w={};b=0;for(c=r.length;b=B.a&&g.a[v][s].c<=B.b&&g.a[v][s].b>= B.c){s=!0;break a}s=!1}s?(h in w&&delete w[h],q[h]=g):w[h]=g}b=[q,w];a=b[0];b=b[1];for(var z in this.c)z in a?(this.b[z]||(og(this.c[z],!0),this.b[z]=!0),delete a[z]):z in b?(this.b[z]&&(og(this.c[z],!1),delete this.b[z]),delete b[z]):(Lf(this.c[z]),delete this.c[z],delete this.b[z]);for(z in a)c=Gf("LI"),c.innerHTML=a[z].b,this.g.appendChild(c),this.c[z]=c,this.b[z]=!0;for(z in b)c=Gf("LI"),c.innerHTML=b[z].b,og(c,!1),this.g.appendChild(c),this.c[z]=c;z=!nc(this.b);this.f!=z&&(og(this.element,z), this.f=z)}};function ji(a){a=t(a)?a:{};this.c=Gf("UL");var b=Df("DIV",{"class":(t(a.className)?a.className:"ol-logo")+" ol-unselectable"},this.c);hi.call(this,{element:b,target:a.target});this.b=!0;this.f={}}F(ji,hi); ji.prototype.d=function(a){a=a.b;if(null===a)this.b&&(og(this.element,!1),this.b=!1);else{var b;a=a.Wd;var c=this.f;for(b in c)b in a||(Lf(c[b]),delete c[b]);var d,e;for(b in a)b in c||(d=new Image,d.src=b,e=Gf("LI"),e.appendChild(d),this.c.appendChild(e),c[b]=e);b=!nc(a);this.b!=b&&(og(this.element,b),this.b=b)}};function ki(a){return 1-Math.pow(1-a,3)};function li(a){return 3*a*a-2*a*a*a}function mi(a){return a}function ni(a){return 0.5>a?li(2*a):1-li(2*(a-0.5))};function oi(a){var b=a.resolution,c=t(a.start)?a.start:ta(),d=t(a.duration)?a.duration:1E3,e=t(a.easing)?a.easing:ni;return function(a,g){if(g.timeb;)d-=3;if(0<=d){var b=a.a[c+2]-a.a[d+2],e=a.a[c]-a.a[d],c=a.a[c+1]-a.a[d+1];a.c=Math.atan2(c,e);a.b=Math.sqrt(e*e+c*c)/b;return a.b>a.d}return!1}function wi(a,b){var c=a.e,d=a.b,e=a.d,f=Math.log(a.d/a.b)/a.e;return pi({source:b,duration:f,easing:function(a){return d*(Math.exp(c*a*f)-1)/(e-d)}})};function xi(){}function yi(a,b,c,d,e){if(null!=c){var f=b.c(),g=b.a();t(f)&&(t(g)&&t(e))&&(a.Ha(qi({rotation:f,duration:e,easing:ki})),t(d)&&a.Ha(pi({source:g,duration:e,easing:ki})));if(null!=d){var h=ci(b,c,d);zi(a,function(){b.Da(h);b.d(c)})}else b.d(c)}}function Ai(a,b,c,d,e){var f=b.B();c=b.Ia(f,c,0);Bi(a,b,c,d,e)} function Bi(a,b,c,d,e){if(null!=c){var f=b.B(),g=b.a();t(f)&&(t(g)&&t(e))&&(a.Ha(ri({resolution:f,duration:e,easing:ki})),t(d)&&a.Ha(pi({source:g,duration:e,easing:ki})));if(null!=d){var h=di(b,c,d);zi(a,function(){b.Da(h);b.kb(c)})}else b.kb(c)}};function Ci(a){a=t(a)?a:{};this.a=t(a.delta)?a.delta:1}F(Ci,xi);Ci.prototype.xb=function(a){var b=!1,c=a.a;if(a.type==Mh&&(uh||Vb(a.a))){var b=a.map,d=a.d(),c=c.Xa?-this.a:this.a,e=b.a().O();Ai(b,e,c,d,250);a.U();b=!0}return!b};function Di(a){return a.ua&&!a.Gb&&a.Xa}function Ei(a){return"click"==a.type}function Fi(a){return!a.ua&&!a.Gb&&!a.Xa}function Gi(a){return!a.ua&&!a.Gb&&a.Xa}function Hi(a){a=a.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a};function Ii(){this.c=!1;this.i=this.j=this.e=this.d=0;this.fc=this.g=null}F(Ii,xi);m=Ii.prototype;m.Ac=ea;m.Ub=ea;m.Vb=Se;m.Sd=ea; m.xb=function(a){var b=a.map;if(!b.Xb())return!0;var c=!1,b=b.a(),d=a.a;a.type==Ph&&this.Sd(a);if(this.c)a.type==Rh?(this.oa=d.clientX-this.d,this.ma=d.clientY-this.e,this.Ac(a)):a.type==Oh&&(this.oa=d.clientX-this.d,this.ma=d.clientY-this.e,this.Ub(a),Xh(b,-1),this.c=!1);else if(a.type==Qh){var e=gi(b.O());this.d=d.clientX;this.e=d.clientY;this.ma=this.oa=0;this.g=e.center;this.fc=a.d();this.Vb(a)&&(Xh(b,1),this.c=!0,a.U(),c=!0)}return!c};function Ji(a){Ii.call(this);a=t(a)?a:{};this.f=t(a.condition)?a.condition:Fi;this.a=a.kinetic;this.b=null}F(Ji,Ii);Ji.prototype.Ac=function(a){this.a&&this.a.a.push(a.a.clientX,a.a.clientY,ta());a=a.map;var b=a.a(),c=gi(b),d=[-c.resolution*this.oa,c.resolution*this.ma];id(d,c.rotation);gd(d,this.g);Ki(a);b.Da(d)}; Ji.prototype.Ub=function(a){a=a.map;var b=a.a().O();if(this.a&&vi(this.a)){var c=gi(b),d=(this.a.d-this.a.b)/this.a.e,e=this.a.c;this.b=wi(this.a,c.center);a.Ha(this.b);c=Li(a,c.center);d=Kh(a,[c[0]-d*Math.cos(e),c[1]-d*Math.sin(e)]);b.Da(d)}Ki(a)};Ji.prototype.Vb=function(a){var b=a.a;if(Vb(b)&&this.f(b)){if(this.a){var c=this.a;c.a.length=0;c.c=0;c.b=0;this.a.a.push(b.clientX,b.clientY,ta())}Ki(a.map);return!0}return!1}; Ji.prototype.Sd=function(a){var b=a.map,c=b.a();null!==this.b&&Oa(b.K,this.b)&&(Ki(b),c.Da(a.b.C.center),this.b=null)};function Mi(a){a=t(a)?a:{};Ii.call(this);this.b=t(a.condition)?a.condition:Di;this.a=void 0}F(Mi,Ii);Mi.prototype.Ac=function(a){var b=a.map,c=b.c();a=a.e();c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(t(this.a)){a=c-this.a;var d=b.a().O(),e=gi(d);Ki(b);yi(b,d,e.rotation-a)}this.a=c};Mi.prototype.Ub=function(a){a=a.map;var b=a.a().O(),c=gi(b).rotation,c=b.kc(c,0);yi(a,b,c,void 0,250)};Mi.prototype.Vb=function(a){var b=a.a;return Vb(b)&&this.b(b)?(Ki(a.map),this.a=void 0,!0):!1};function Ni(a){var b=Df("DIV","ol-dragbox");this.b=null;this.c=a.fc;hi.call(this,{element:b})}F(Ni,hi);Ni.prototype.setMap=function(a){Ni.F.setMap.call(this,a);null!==a&&(this.b=Li(a,this.c),dg(this.element,this.b[0],this.b[1]),qg(this.element,new wf(0,0)),this.e.push(L(a,Rh,this.f,!1,this)))};Ni.prototype.f=function(a){var b=this.a;a=a.d();b=Li(b,a);dg(this.element,Math.min(b[0],this.b[0]),Math.min(b[1],this.b[1]));qg(this.element,new wf(Math.abs(b[0]-this.b[0]),Math.abs(b[1]-this.b[1])))};function Oi(a){Ii.call(this);a=t(a)?a:{};this.b=t(a.condition)?a.condition:Gi;this.a=null}F(Oi,Ii);Oi.prototype.Ub=function(a){this.a.setMap(null);this.a=null;if(64<=this.oa*this.oa+this.ma*this.ma){var b=a.map,c=md([this.fc,a.d()]);zi(b,function(){var a=b.a(),e=b.c();a.$c(c,e);a.d(0)})}};Oi.prototype.Vb=function(a){var b=a.a;return Vb(b)&&this.b(b)?(this.a=new Ni({fc:this.fc}),this.a.setMap(a.map),!0):!1};function Pi(a){a=t(a)?a:{};this.a=t(a.condition)?a.condition:Ye(Fi,Hi);this.b=t(a.delta)?a.delta:128}F(Pi,xi);Pi.prototype.xb=function(a){var b=!1;if("key"==a.type){var c=a.a,d=c.Wa;if(this.a(c)&&(40==d||37==d||39==d||38==d)){var b=a.map,c=b.a(),e=gi(c),f=e.resolution*this.b,g=0,h=0;40==d?h=-f:37==d?g=-f:39==d?g=f:h=f;d=[g,h];id(d,e.rotation);e=c.a();t(e)&&(t(100)&&b.Ha(pi({source:e,duration:100,easing:mi})),c.Da([e[0]+d[0],e[1]+d[1]]));a.U();b=!0}}return!b};function Qi(a){a=t(a)?a:{};this.b=t(a.condition)?a.condition:Ye(Fi,Hi);this.a=t(a.delta)?a.delta:1}F(Qi,xi);Qi.prototype.xb=function(a){var b=!1;if("key"==a.type){var c=a.a,d=c.fd;!this.b(c)||43!=d&&45!=d||(b=a.map,d=43==d?this.a:-this.a,Ki(b),c=b.a().O(),Ai(b,c,d,void 0,100),a.U(),b=!0)}return!b};function Ri(){this.a=0;this.c=null;this.d=this.b=void 0}F(Ri,xi);Ri.prototype.xb=function(a){var b=!1;if("mousewheel"==a.type){var b=a.map,c=a.a;this.c=a.d();this.a+=c.ma/3;t(this.b)||(this.b=ta());c=Math.max(80-(ta()-this.b),0);p.clearTimeout(this.d);this.d=p.setTimeout(y(this.e,this,b),c);a.U();b=!0}return!b};Ri.prototype.e=function(a){var b=Yc(this.a,-1,1),c=a.a().O();Ki(a);Ai(a,c,-b,this.c,250);this.a=0;this.c=null;this.d=this.b=void 0};function Si(){this.c=!1;this.j={};this.targetTouches=[]}F(Si,xi);function Ti(a){for(var b=a.length,c=0,d=0,e=0;ethis.i&&(this.a=!0));this.d=c;a=a.map;c=jg(a.b);d=Ti(this.targetTouches);d[0]-=c.x;d[1]-=c.y;this.b=Kh(a,d);this.a&&(c=a.a().O(),d=gi(c),Ki(a),yi(a,c,d.rotation+b,this.b))}; Vi.prototype.e=function(a){if(2>this.targetTouches.length){a=a.map;var b=a.a().O(),c=gi(b);if(this.a){var c=c.rotation,d=this.b,c=b.kc(c,0);yi(a,b,c,d,250)}return!1}return!0};Vi.prototype.g=function(a){return 2<=this.targetTouches.length?(a=a.map,this.b=null,this.d=void 0,this.a=!1,this.V=0,Ki(a),!0):!1};function Wi(){Si.call(this);this.b=null;this.a=void 0;this.d=1}F(Wi,Si);Wi.prototype.f=function(a){var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);t(this.a)&&(b=this.a/e);this.a=e;1!=b&&(this.d=b);a=a.map;var e=a.a().O(),c=gi(e),d=jg(a.b),f=Ti(this.targetTouches);f[0]-=d.x;f[1]-=d.y;this.b=Kh(a,f);Ki(a);Bi(a,e,c.resolution*b,this.b)}; Wi.prototype.e=function(a){if(2>this.targetTouches.length){a=a.map;var b=a.a().O(),c=gi(b).resolution,d=this.b,c=b.Ia(c,0,this.d-1);Bi(a,b,c,d,400);return!1}return!0};Wi.prototype.g=function(a){return 2<=this.targetTouches.length?(a=a.map,this.b=null,this.a=void 0,this.d=1,Ki(a),!0):!1};function Xi(a){a=t(a)?a:{};var b=new O,c=new ui;(t(a.altShiftDragRotate)?a.altShiftDragRotate:1)&&b.push(new Mi);(t(a.doubleClickZoom)?a.doubleClickZoom:1)&&b.push(new Ci({delta:a.zoomDelta}));(t(a.touchPan)?a.touchPan:1)&&b.push(new Ui({kinetic:c}));(t(a.touchRotate)?a.touchRotate:1)&&b.push(new Vi);(t(a.touchZoom)?a.touchZoom:1)&&b.push(new Wi);(t(a.dragPan)?a.dragPan:1)&&b.push(new Ji({kinetic:c}));if(t(a.keyboard)?a.keyboard:1)b.push(new Pi),b.push(new Qi({delta:a.zoomDelta}));(t(a.mouseWheelZoom)? a.mouseWheelZoom:1)&&b.push(new Ri);(t(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Oi);return b};function Yi(a){var b=t(a)?a:{};a=rc(b);delete a.layers;b=b.layers;R.call(this,a);this.a=null;L(this,Tc("layers"),this.af,!1,this);t(b)?ia(b)&&(b=new O(Ra(b))):b=new O;this.c(b)}F(Yi,R);m=Yi.prototype;m.Bc=function(){this.b()&&Dh(this)};m.Td=function(){Dh(this)}; m.af=function(){null!==this.a&&(Fa(jc(this.a),Ec),this.a=null);var a=this.gb();if(null!=a){this.a={add:L(a,"add",this.$e,!1,this),remove:L(a,"remove",this.bf,!1,this)};var a=a.a,b,c,d;b=0;for(c=a.length;b=this.minZoom;){if(b.call(c,a,lj(this,e,a,d)))return!0;--a}return!1};m.Me=k("minZoom"); m.Fb=function(a){return null===this.d?this.f[a]:this.d};m.B=function(a){return this.a[a]};m.Qb=k("a");m.xc=function(a,b,c){return a.za.d&&(a.d=d.d),d.ca.b&&(a.b=d.b)):a[b][c]=d:(a[b]={},a[b][c]=d)}function Uj(a,b,c){return function(d,e,f){d=b.c(d,e,f,c);return a(d)?d:null}}function Vj(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 Wj(a,b,c,d,e,f,g,h,l){var n=x(b).toString();n in a.Kb||(a.Kb[n]={});var r=a.Kb[n];a=a.Zf;var q=c.minZoom,w,s,A,B,v,z;for(z=f;z>=q;--z)for(s=lj(c,e,z),A=c.B(z),B=s.a;B<=s.d;++B)for(v=s.c;v<=s.b;++v)f-z<=g?(w=b.c(z,B,v,d),0==w.a&&(r[w.L.toString()]=!0,w.c()in a.c||zh(a,[w,n,oj(c,w.L),A])),t(h)&&h.call(l,w)):b.ne(z,B,v)};function Xj(a,b){cb.call(this);this.f=b;this.d={}}F(Xj,cb); function Yj(a){var b=a.C,c=a.Ed;nh(c);rh(c,a.size[0]/2,a.size[1]/2);sh(c,1/b.resolution,-1/b.resolution);th(c,-b.rotation);rh(c,-b.center[0],-b.center[1]);a=a.ee;var b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],h=c[5],l=c[6],n=c[7],r=c[8],q=c[9],w=c[10],s=c[11],A=c[12],B=c[13],v=c[14],c=c[15],z=b*h-d*g,I=b*l-e*g,D=b*n-f*g,K=d*l-e*h,T=d*n-f*h,W=e*n-f*l,E=r*B-q*A,H=r*v-w*A,ka=r*c-s*A,aa=q*v-w*B,da=q*c-s*B,fa=w*c-s*v,Z=z*fa-I*da+D*aa+K*ka-T*H+W*E;0!=Z&&(Z=1/Z,a[0]=(h*fa-l*da+n*aa)*Z,a[1]=(-d*fa+e*da-f*aa)*Z,a[2]= (B*W-v*T+c*K)*Z,a[3]=(-q*W+w*T-s*K)*Z,a[4]=(-g*fa+l*ka-n*H)*Z,a[5]=(b*fa-e*ka+f*H)*Z,a[6]=(-A*W+v*D-c*I)*Z,a[7]=(r*W-w*D+s*I)*Z,a[8]=(g*da-h*ka+n*E)*Z,a[9]=(-b*da+d*ka-f*E)*Z,a[10]=(A*T-B*D+c*z)*Z,a[11]=(-r*T+q*D-s*z)*Z,a[12]=(-g*aa+h*H-l*E)*Z,a[13]=(b*aa-d*H+e*E)*Z,a[14]=(-A*K+B*I-v*z)*Z,a[15]=(r*K-q*I+w*z)*Z)}m=Xj.prototype;m.lc=function(a){return new Oj(this,a)};m.v=function(){fc(this.d,function(a){gb(a)});Xj.F.v.call(this)};m.vc=Ue; m.Ua=function(a,b,c,d){function e(a,d){g[Ea(b,d)]=a;--f;f||c(g)}for(var f=b.length,g=Array(f),h,l=0;ld;else if("\x3c"===b)d=a=d;else if("\x3c\x3d"===b)d=a<=d;else throw Error("Unsupported comparison operator: "+this.b);return d};function ok(a){this.b=a} F(ok,jk);ok.prototype.a=function(a){if(null==a)throw Error("Attempt to evaluate identifier with no scope");return a[this.b]};function U(a){this.ab=a}F(U,jk);U.prototype.a=k("ab");var pk={kg:"\x26\x26",Wg:"||"};function qk(a,b,c){this.b=a;this.Na=b;this.Qa=c}F(qk,jk);var rk=function(){var a={},b;for(b in pk)a[pk[b]]=!0;return function(b){return!!a[b]}}(); qk.prototype.a=function(a,b,c){var d;d=this.Qa.a(a,b,c);a=this.Na.a(a,b,c);if("\x26\x26"===this.b)d=a&&d;else if("||"===this.b)d=a||d;else throw Error("Unsupported logical operator: "+this.b);return d};var sk={jg:"+",bh:"-",Rg:"*",sg:"/",Ng:"%"};function tk(a,b,c){this.b=a;this.Na=b;this.Qa=c}F(tk,jk);var uk=function(){var a={},b;for(b in sk)a[sk[b]]=!0;return function(b){return!!a[b]}}(); tk.prototype.a=function(a,b,c){var d;d=this.Qa.a(a,b,c);a=this.Na.a(a,b,c);b=this.b;if("+"===b)d=a+d;else if("-"===b)d=Number(a)-Number(d);else if("*"===b)d=Number(a)*Number(d);else if("/"===b)d=Number(a)/Number(d);else if("%"===b)d=Number(a)%Number(d);else throw Error("Unsupported math operator: "+this.b);return d};function vk(a,b){this.b=a;this.c=b}F(vk,jk);vk.prototype.a=function(a,b,c){a=this.b.a(a,b,c);if(!na(a))throw Error("Expected member expression to evaluate to an object but got "+a);return this.c.a(a)}; function wk(a){this.b=a}F(wk,jk);wk.prototype.a=function(a,b,c){return!this.b.a(a,b,c)};function xk(a){this.b=a;this.c=a.length;this.d=this.a=0}function yk(a,b){if(!a.match(b))throw new zk({type:"Unknown",value:a.b[a.a],index:a.a});a.a=a.d}function Ak(a,b){a.a+=b}function Bk(a){return 48<=a&&57>=a}function Ck(a){return 36===a||95===a||65<=a&&90>=a||97<=a&&122>=a}function Dk(a){return a.b.charCodeAt(a.a+0)}xk.prototype.match=function(a){var b=Ek(this);return"Punctuator"===b.type&&b.value===a}; function Fk(a){var b;for(b=NaN;a.a=a.c)a={type:"\x3cend\x3e",value:null,index:a.a};else if(40===b||41===b)a=Gk(a,b);else if(39===b||34===b){var c=a.a;Ak(a,1);for(var d="",e;a.a=c)Ak(a,1);else break;a=a.b.slice(b,a.a);a={type:1===a.length?"Identifier":"break"===a||"case"===a||"catch"===a||"continue"===a||"debugger"===a||"default"===a||"delete"===a||"do"===a||"else"===a||"finally"===a||"for"===a||"function"===a||"if"===a||"in"===a||"instanceof"===a||"new"===a||"return"===a||"switch"===a||"this"===a||"throw"===a||"try"===a||"typeof"===a||"var"=== a||"void"===a||"while"===a||"with"===a?"Keyword":"null"===a?"Null":"true"===a||"false"===a?"Boolean":"Identifier",value:a,index:b}}else a=46===b?Bk(a.b.charCodeAt(a.a+1))?Hk(a,b):Gk(a,b):Bk(b)?Hk(a,b):Gk(a,b);return a}function Ek(a){var b=a.a,c=Fk(a);a.d=a.a;a.a=b;return c} function Hk(a,b){var c="",d=a.a;if(46!==b){if(48===b){var e=a.b.charCodeAt(a.a+1);if(88===e||120===e){Ak(a,2);c=Dk(a);d="";for(e=a.a-2;a.a=c||65<=c&&70>=c);)d+=String.fromCharCode(c),Ak(a,1),c=Dk(a);if(0===d.length||Ck(c))throw new zk({type:"Unknown",value:String.fromCharCode(c),index:a.a});return{type:"Numeric",value:parseInt("0x"+d,16),index:e}}if(48<=e&&55>=e){Ak(a,1);d="0"+String.fromCharCode(e);e=a.a-1;for(Ak(a,1);a.a=c))break;d+=String.fromCharCode(c); Ak(a,1)}c=Dk(a);if(Ck(c)||Bk(c))throw new zk({type:"Unknown",value:String.fromCharCode(c),index:a.a});return{type:"Numeric",value:parseInt(d,8),index:e}}if(Bk(e))throw new zk({type:"Unknown",value:String.fromCharCode(e),index:a.a});}for(;Bk(b);)c+=String.fromCharCode(b),Ak(a,1),b=Dk(a)}if(46===b)for(c+=String.fromCharCode(b),Ak(a,1),b=Dk(a);Bk(b);)c+=String.fromCharCode(b),Ak(a,1),b=Dk(a);if(69===b||101===b){c+="E";Ak(a,1);b=Dk(a);if(43===b||45===b)c+=String.fromCharCode(b),Ak(a,1),b=Dk(a);if(!Bk(b))throw new zk({type:"Unknown", value:String.fromCharCode(b),index:a.a});for(;Bk(b);)c+=String.fromCharCode(b),Ak(a,1),b=Dk(a)}if(Ck(b))throw new zk({type:"Unknown",value:String.fromCharCode(b),index:a.a});return{type:"Numeric",value:parseFloat(c),index:d}} function Gk(a,b){var c=a.a;if(46===b||40===b||41===b||44===b||43===b||45===b||42===b||47===b||37===b||126===b)return Ak(a,1),{type:"Punctuator",value:String.fromCharCode(b),index:c};var d=a.b.charCodeAt(a.a+1);if(61===d){if(33===b||61===b)return Ak(a,2),61===Dk(a)?(Ak(a,1),{type:"Punctuator",value:String.fromCharCode(b)+"\x3d\x3d",index:c}):{type:"Punctuator",value:String.fromCharCode(b)+"\x3d",index:c};if(62===b||60===b)return Ak(a,2),{type:"Punctuator",value:String.fromCharCode(b)+"\x3d",index:c}}if(b=== d&&(124===b||38===b))return Ak(a,2),d=String.fromCharCode(b),{type:"Punctuator",value:d+d,index:c};if(62===b||60===b||33===b||38===b||124===b)return Ak(a,1),{type:"Punctuator",value:String.fromCharCode(b),index:c};throw new zk({type:"Unknown",value:String.fromCharCode(b),index:a.a});}function zk(a,b){ua.call(this,t(b)?b:"Unexpected token "+a.value+" at index "+a.index);this.a=a}F(zk,ua);zk.prototype.name="UnexpectedToken";function Ik(){}function Jk(a){var b=0;if("Punctuator"!==a.type)return b;switch(a.value){case "||":b=1;break;case "\x26\x26":b=2;break;case "\x3d\x3d":case "!\x3d":case "\x3d\x3d\x3d":case "!\x3d\x3d":b=3;break;case "\x3e":case "\x3c":case "\x3e\x3d":case "\x3c\x3d":b=4;break;case "+":case "-":b=5;break;case "*":case "/":case "%":b=6}return b} function Kk(a,b,c){if(nk(a))a=new mk(a,b,c);else if(rk(a))a=new qk(a,b,c);else if(uk(a))a=new tk(a,b,c);else throw Error("Unsupported binary operator: "+a);return a}function Lk(a){return new U(a)}function Mk(a){var b=new xk(a);a=Nk(new Ik,b);b=Ek(b);if("\x3cend\x3e"!==b.type)throw new zk(b);return a} function Nk(a,b){var c=Ok(a,b),d=Ek(b),e=Jk(d);if(0===e)return c;b.a=b.d;for(var f=Ok(a,b),g=[c,d,f],e=Jk(Ek(b));0b.extent[1]?l.extent[1]:b.extent[1])-(l.extent[0]b.extent[3]?l.extent[3]:b.extent[3])-(l.extent[2]e||Math.abs(l-n)g[h].extent[0]?h=r:q.extent[1]g[l].extent[2]?l=r:q.extent[3]Math.abs(g[n].extent[3]-g[l].extent[2])?c>h?(r=g.splice(c,1)[0],q=g.splice(h,1)[0]):(q=g.splice(h,1)[0],r=g.splice(c,1)[0]):n>l?(r=g.splice(n,1)[0],q=g.splice(l,1)[0]):(q=g.splice(l,1)[0],r=g.splice(n,1)[0]);for(g=[{extent:r.extent.concat(),n:[r]},{extent:q.extent.concat(),n:[q]}];0v.extent[1]?n.extent[1]:v.extent[1],n.extent[2]v.extent[3]?n.extent[3]:v.extent[3]],z=Math.abs(tl(z[1]-z[0],z[3]-z[2],n.n.length+2)-q),v=[l.extent[0] v.extent[1]?l.extent[1]:v.extent[1],l.extent[2]v.extent[3]?l.extent[3]:v.extent[3]],v=Math.abs(tl(v[1]-v[0],v[3]-v[2],l.n.length+2)-w),I=Math.abs(v-z);if(!A||!s||If.length&&(d.n.push(e[0]),f.push(d),b=e[1])}}else td(d.extent,b.extent),b={extent:d.extent.concat()}}while(0< f.length)}}rl.prototype.remove=function(a,b){arguments[0]={extent:a};switch(arguments.length){case 1:arguments[1]=!1;case 2:arguments[2]=this.b;default:arguments.length=3}if(!1===arguments[1]){var c=0,d=[];do c=d.length,d=d.concat(this.d.apply(this,arguments));while(c!=d.length);return d}return this.d.apply(this,arguments)}; rl.prototype.d=function(a,b,c){var d=[],e=[],f=[];if(!a||!yd(a.extent,c.extent))return f;a=a.extent.concat();var g;e.push(c.n.length);d.push(c);do{c=d.pop();var h=e.pop()-1;if(t(b))for(;0<=h;){var l=c.n[h];if(yd(a,l.extent))if(b&&t(l.wb)&&l.wb===b||!b&&(t(l.wb)||qd(a,l.extent))){t(l.n)?(f=vl(l,!0,[],l),c.n.splice(h,1)):f=c.n.splice(h,1);sl(c);b=void 0;c.n.length=c.n.length?(g=vl(c,!0,g,c),c.n.length=0,d.push(c),e.push(1)):0this.d&&!(b=this.a.ab,c=b.L.z.toString(),c in a&&a[c].contains(b.L));)this.pop()};function gm(){this.bounds=this.p=this.a=null}F(gm,Bd);gm.prototype.ta=function(){if(null===this.bounds){var a,b=a=Infinity,c,d=c=-Infinity,e=this.p,f=e.length,g,h;for(h=0;hf&&(f=e),lh&&(h=l);this.Sa=[c,f,g,h]}return this.Sa};m.N=ba("linestring"); m.pc=function(a){for(var b=this.s(),c=Infinity,d=0,e=1,f=b.length;eh?jd(a,d):1a!=h>a&&b<(g-e)*(a-f)/(h-f)+e)&&(d=!d);return d};function nm(a,b){this.a=null;var c=b;t(c)||(c=a[0][0].length,c=new Ad({dimension:c}));this.c=null;this.a=c;var d=a.length;this.b=Array(d);for(var e,f=0;f=c&&l[1]<=c||h[1]<=c&&l[1]>=c)h=(c-h[1])/(l[1]-h[1])*(l[0]-h[0])+h[0],d.push(h);d.sort();for(g=d.length-1;1<=g;--g)e=Math.abs(d[g]-d[g-1]),e>f&&(h=(d[g]+d[g-1])/2,a.mb([h,c])&&(f=e,b=h));a.c=[b,c]}a=a.c;return[[a[0], a[1],0]]}throw Error("Label rendering not implemented for geometry type: "+c);}function sm(a,b){var c=a.url,d=tm[c],e=!1;if(!t(d))e=!0,d=Gf("IMG"),Bc(d,"error",y(um,null,b),!1,sm),Bc(d,"load",y(vm,null,b),!1,sm),d.setAttribute("src",c);else if(null!==d){var c=a.width,f=a.height;t(c)&&t(f)?(d.width=c,d.height=f):t(c)?(d.height*=c/d.width,d.width=c):t(f)&&(d.width*=f/d.height,d.height=f)}return e?null:d}var tm={};function um(a,b){if(t(b)){var c=b.target.getAttribute("src");tm[c]=null;vm(a,b)}} function vm(a,b){if(t(b)){var c=b.target.getAttribute("src");tm[c]=b.target}t(a)&&a()};function wm(a,b){Oj.call(this,a,b);this.j=Gf("CANVAS");this.na=this.j.getContext("2d");this.G=Fg();this.Ra=Gf("CANVAS");this.lb=Fg();this.c=new fm(xm);L(b,["add","change","remove","intentchange"],this.Xe,!1,this);this.d=null;this.la="point multipoint linestring multilinestring polygon multipolygon".split(" ");this.K=null;this.q=this.i=!1;this.f=null;this.$=new $a(NaN,NaN,NaN,NaN);this.t=y(function(){this.i=!0;Ki(a.f)},this)}F(wm,$l);m=wm.prototype;m.ha=k("j");m.cd=k("G"); m.Ua=function(a,b){this.nd(a,function(a,d){b((0,d.$f)(a),d)})}; m.nd=function(a,b,c){var d=this.a.f,e=[],f=this.b;a=Kh(d,a);var g=Lj(this.f,a,0).toString();if(dm(this.c,g)){var h=this.c.get(g),g=h[1],l=h[2],h=h[3],n=l[0]/2,l=l[1]/2,l=md([[a[0]-n,a[1]-l],[a[0]+n,a[1]+l]]),d=Zl(f,l,d.a().O().fa());if(null===d){t(c)&&p.setTimeout(function(){c()},0);return}var r,q,w,s;for(s in d)if(l=d[s],n=l.H(),r=n.N(),"point"===r||"multipoint"===r)for(q=x(l),r=g[q],q=h[q],w=r[0]/2,r=r[1]/2,r=md([[a[0]-w-q[0],a[1]-r+q[1]],[a[0]+w-q[0],a[1]+r+q[1]]]),n=n.s(),ia(n[0])||(n=[n]),q= n.length-1;0<=q;--q){if(pd(r,n[q])){e.push(l);break}}else ma(n.mb)?n.mb(a)&&e.push(l):ma(n.pc)&&2*n.pc(a)<=g[x(l)][0]&&e.push(l)}p.setTimeout(function(){b(e,f)},0)};m.Xe=function(a){var b=a.extent;a=this.c;if(t(b))for(var b=lj(this.f,b,0),c=a.T(),d;c--;)d=a.a.Yb,b.contains(Ya(d))?a.pop():a.get(d);else a.clear();this.t()}; m.Pa=function(a){var b=a.C,c=b.resolution,d=b.projection,e=a.extent,f=this.b,g=this.f,h=[512,512],l=!a.R[0]&&!a.R[1];if(l){var n=0.14929107086948487,r=d.Pb();r&&(n/=r);var q=Math.max(c,n);q!==this.Q&&(g=new ij({origin:[0,0],projection:d,resolutions:[q],tileSize:h}),this.c.clear(),this.f=g)}if(null!==g){var w=g.B(0);l&&mj(g,e,w,this.$);var s=this.G,A=this.$,B,v=g,z=v.Fb(0),I=v.B(0),D=v.Aa(0);B=rd(z[0]+A.a*D[0]*I,z[0]+(A.d+1)*D[0]*I,z[1]+A.c*D[1]*I,z[1]+(A.b+1)*D[1]*I,void 0);var K=xd(B);nh(s);rh(s, a.size[0]/2,a.size[1]/2);sh(s,w/c,w/c);th(s,b.rotation);rh(s,(K[0]-b.center[0])/w,(b.center[1]-K[1])/w);if(this.i||this.Q!==w||!sd(this.K,B)){null===this.d&&(this.d=Gf("CANVAS"),this.d.width=h[0],this.d.height=h[1]);var T=this.Ra,W=h[0]*(A.d-A.a+1),E=h[1]*(A.b-A.c+1),H=this.lb,ka=W/2,aa=E/2;nh(H);rh(H,ka,aa);sh(H,1/w,-1/w);rh(H,-(K[0]+ka*w),-(K[1]-aa*w));T.width=W;T.height=E;var da=new qm(T,H,this.t),fa=this.j;fa.width=W;fa.height=E;var Z=this.na,Pa={},Ha={},Ab={},Eg=15*w,bf,Xb,oc,Hg,Ig,hn=this.la, or=hn.length,pj=!1,jn=!1,Jg,Hc,Yb,qj,Kg,Lg,kn,Mg,Ng;Hg=A.a;a:for(;Hg<=A.d;++Hg)for(Ig=A.c;Ig<=A.b;++Ig)if(Xb=new Xa(0,Hg,Ig),oc=Xb.toString(),dm(this.c,oc))Ha[oc]=Xb;else if(l){Yb=kj(g,Xb);Yb[0]-=Eg;Yb[1]+=Eg;Yb[2]-=Eg;Yb[3]+=Eg;Ng=!1;for(Jg=0;Jgthis.c.d;)this.c.pop();this.q=!1};var xm=128;function ym(a,b){Xj.call(this,0,b);this.b=Gf("CANVAS");this.b.height=a.clientHeight;this.b.width=a.clientWidth;this.b.className="ol-unselectable";Kf(a,this.b);this.c=!0;this.e=[a.clientHeight,a.clientWidth];this.g=this.b.getContext("2d")}F(ym,Xj);ym.prototype.lc=function(a){return a instanceof hk?new am(this,a):a instanceof ik?new bm(this,a):a instanceof Wl?new wm(this,a):null};ym.prototype.vc=k("b"); ym.prototype.Ic=function(a){if(null===a)this.c&&(og(this.b,!1),this.c=!1);else{var b=a.size;if(this.e[0]!=b[0]||this.e[1]!=b[1])this.b.width=b[0],this.b.height=b[1],this.e=b;var c=this.g;c.setTransform(1,0,0,1,0,0);c.clearRect(0,0,b[0],b[1]);Yj(a);var b=a.ra,d=a.Gc,e,f,g,h,l;e=0;for(f=d.length;ec;++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 Bm(a,b,c){Oj.call(this,a,b);this.target=c}F(Bm,Oj);function Cm(a,b){var c=Gf("DIV");c.style.position="absolute";Bm.call(this,a,b,c);this.c=null;this.d=lh()}F(Cm,Bm); Cm.prototype.Pa=function(a){var b=a.C,c=b.center,d=b.resolution,e=b.rotation,f=this.c,g=this.b.ja(),h=a.R;h[0]||h[1]||(b=g.ha(a.extent,d,b.projection),null!==b&&(h=b.a,0==h?(Bc(b,"change",this.l,!1,this),hj(b)):2==h&&(f=b)));if(null!==f){var h=f.ba(),l=f.B(),b=Fg();nh(b);rh(b,a.size[0]/2,a.size[1]/2);th(b,e);sh(b,l/d,l/d);rh(b,(h[0]-c[0])/l,(c[1]-h[3])/l);f!=this.c&&(c=gj(f,this),c.style.maxWidth="none",c.style.position="absolute",If(this.target),this.target.appendChild(c),this.c=f);ph(b,this.d)|| (Am(this.target,b),mh(this.d,b));Rj(a.attributions,f.e);Sj(a,g)}};function Dm(a,b){var c=Gf("DIV");c.style.position="absolute";Bm.call(this,a,b,c);this.d=!0;this.j=1;this.f=0;this.c={}}F(Dm,Bm); Dm.prototype.Pa=function(a,b){if(b.visible){var c=a.C,d=c.projection,e=this.b,f=e.ja(),g=f.tileGrid;null===g&&(g=Mj(d));var h=Yh(g.a,c.resolution,0),l=g.B(h),n=c.center,r;l==c.resolution?(n=Vj(n,l,a.size),r=wd(n,l,c.rotation,a.size)):r=a.extent;var l=mj(g,r,l),q={};q[h]={};var w=y(f.Zc,f,q,Uj(function(a){return null!==a&&2==a.a},f,d)),s=nd(),A=new $a(0,0,0,0),B,v,z,I;for(z=l.a;z<=l.d;++z)for(I=l.c;I<=l.b;++I)B=f.c(h,z,I,d),v=B.a,2==v?q[h][B.L.toString()]=B:3!=v&&4!=v&&(v=g.tc(B.L,w,null,A,s),v||(B= g.xc(B.L,A,s),null===B||w(h+1,B)));var D;if(this.f!=f.b){for(D in this.c)s=this.c[+D],Lf(s.target);this.c={};this.f=f.b}z=Ia(kc(q),Number);Ua(z);var w={},K;I=0;for(B=z.length;ID&&Kf(this.target,s.target)}else a.R[0]||a.R[1]||Im(s,r,A);else Lf(s.target),delete this.c[D];b.opacity!=this.j&&(ng(this.target,b.opacity),this.j=b.opacity);b.visible&&!this.d&&(og(this.target,!0),this.d=!0);Tj(a.gc,f,h,l);Wj(a,f,g,d,r,h,e.c());Qj(a,f);Sj(a,f)}else this.d&&(og(this.target,!1),this.d=!1)}; function Em(a,b){this.target=Gf("DIV");this.target.style.position="absolute";this.d=a;this.c=b;this.f=xd(kj(a,b));this.g=a.B(b.z);this.b={};this.a=null;this.e=lh()}function Fm(a,b){var c=b.L,d=c.toString();if(!(d in a.b)){var e=a.d.Aa(c.z),f=b.ha(a),g=f.style;g.maxWidth="none";g.position="absolute";g.left=(c.x-a.c.x)*e[0]+"px";g.top=(a.c.y-c.y)*e[1]+"px";null===a.a&&(a.a=document.createDocumentFragment());a.a.appendChild(f);a.b[d]=b}} function Gm(a){null!==a.a&&(a.target.appendChild(a.a),a.a=null)}Em.prototype.B=k("g");function Im(a,b,c){var d=lj(a.d,b,a.c.z,c);b=[];for(var e in a.b)c=a.b[e],d.contains(c.L)||b.push(c);var f,d=0;for(f=b.length;dc)break;if(bb&&(-1==e||hc?(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.i*b)/Math.log(10)),g,h;;){g=Fo[f%3]*Math.pow(10,Math.floor(f/3));h=Math.round(g/b);if(h>=a.i)break;++f}g=g+e;a.r!=g&&(a.f.innerHTML=g,a.r=g);a.G!=h&&(a.f.style.width=h+"px",a.G=h);a.c||(og(a.g,!0),a.c=!0)}};function Ho(a){cb.call(this);this.b=a;this.a={}}F(Ho,cb);var Io=[];Ho.prototype.Ya=function(a,b,c,d,e){ia(b)||(Io[0]=b,b=Io);for(var f=0;fthis.Ud)if(M(this,new Oo("start",this,a.clientX,a.clientY,a)))this.sb=!0;else{this.ac||this.qc(a);return}}c=Ro(this,b,c);b=c.x;c=c.y;this.sb&&M(this,new Oo("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(So(this,a,b,c),a.U())}}; function Ro(a,b,c){var d=Of(xf(a.c));b+=d.x-a.e.x;c+=d.y-a.e.y;a.e=d;a.oa+=b;a.ma+=c;b=Po(a,a.oa);a=Qo(a,a.ma);return new vf(b,a)}m.Mf=function(a){var b=Ro(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;So(this,a,b.x,b.y)};function So(a,b,c,d){a.wd&&Mo(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";M(a,new Oo("drag",a,b.clientX,b.clientY,b,c,d))} function Po(a,b){var c=a.b,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 Qo(a,b){var c=a.b,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 Oo(a,b,c,d,e,f,g,h){hb.call(this,a);this.clientX=c;this.clientY=d;this.d=e;this.left=t(f)?f:b.oa;this.top=t(g)?g:b.ma;this.b=b;this.a=!!h}F(Oo,hb);function To(a){a=t(a)?a:{};this.b=void 0;this.c=Uo;this.i=!1;this.f=null;a=t(a.className)?a.className:"ol-zoomslider";a=Df("DIV",a+" ol-unselectable",Df("DIV",a+"-thumb ol-unselectable"));null!==this.f&&(Fa(this.f,Ec),this.f=null);var b=new Ko(a.childNodes[0]);this.f=[L(b,["drag","end"],this.r,void 0,this)];this.g=b;L(a,["touchend","click"],this.l,!1,this);hi.call(this,{element:a})}F(To,hi);var Uo=0;To.prototype.setMap=function(a){To.F.setMap.call(this,a);null===a||Pj(a)}; To.prototype.d=function(a){if(null!==a.b){if(!this.i){var b=this.element,c=Mf(b);var d=zf(b),e=G&&b.currentStyle;e&&Nf(xf(d))&&"auto"!=e.width&&"auto"!=e.height&&!e.boxSizing?(d=tg(b,e.width,"width","pixelWidth"),b=tg(b,e.height,"height","pixelHeight"),b=new wf(d,b)):(e=new wf(b.offsetWidth,b.offsetHeight),d=rg(b,"padding"),b=sg(b),b=new wf(e.width-b.left-d.left-d.right-b.right,e.height-b.top-d.top-d.bottom-b.bottom));var e=hg(c),d=lg(c),e=new ag(e.x,e.y,d.width,d.height),d=rg(c,"margin"),f=sg(c), c=b.width-d.left-d.right-f.left-f.right-e.width,e=b.height-d.top-d.bottom-f.top-f.bottom-e.height;b.width>b.height?(this.c=1,c=new ag(0,0,c,0)):(this.c=Uo,c=new ag(0,0,0,e));this.g.b=c||new ag(NaN,NaN,NaN,NaN);this.i=!0}a=a.b.C.resolution;a!==this.b&&(this.b=a,a=-1*(fi(this.a.a().O())(a)-1),c=this.g,b=Mf(this.element),1==this.c?dg(b,c.b.left+c.b.width*a):dg(b,c.b.left,c.b.top+c.b.height*a))}};To.prototype.l=function(){}; To.prototype.r=function(a){var b=this.a,c=b.a().O();if("drag"===a.type){var b=this.g.b,d=0,d=1===this.c?(a.left-b.left)/b.width:(a.top-b.top)/b.height;a=-1*(Yc(d,0,1)-1);a=ei(this.a.a().O())(a);a!==this.b&&(this.b=a,c.kb(a))}else b.Ha(ri({resolution:this.b,duration:200,easing:ki})),a=c.Ia(this.b),c.kb(a)};function Vo(a){a=t(a)?a:{};this.b=t(a.extent)?a.extent:null;var b=Df("DIV",{"class":(t(a.className)?a.className:"ol-zoom-extent")+" ol-unselectable"}),c=Df("A",{href:"#zoomExtent"});b.appendChild(c);L(b,["touchend","click"],this.c,!1,this);hi.call(this,{element:b,target:a.target})}F(Vo,hi);Vo.prototype.c=function(a){a.U();a=this.a;var b=a.a().O(),c=null===this.b?b.fa().ba():this.b;b.$c(c,a.c())};function Wo(a){N.call(this);this.a=a;L(this.a,"change",this.l,!1,this);L(this,Tc("value"),this.r,!1,this);L(this,Tc("valueAsNumber"),this.q,!1,this);L(this,Tc("checked"),this.i,!1,this)}F(Wo,N);Wo.prototype.b=function(){return this.get("checked")};Wo.prototype.getChecked=Wo.prototype.b;Wo.prototype.d=function(){return this.get("value")};Wo.prototype.getValue=Wo.prototype.d;Wo.prototype.c=function(){return this.get("valueAsNumber")};Wo.prototype.getValueAsNumber=Wo.prototype.c; Wo.prototype.f=function(a){this.o("value",a)};Wo.prototype.setValue=Wo.prototype.f;Wo.prototype.g=function(a){this.o("valueAsNumber",a)};Wo.prototype.setValueAsNumber=Wo.prototype.g;Wo.prototype.e=function(a){this.o("checked",a)};Wo.prototype.setChecked=Wo.prototype.e;Wo.prototype.l=function(){"checkbox"===this.a.type||"radio"===this.a.type?this.e(this.a.checked):(this.f(this.a.value),this.g(this.a.valueAsNumber))};Wo.prototype.i=function(){this.a.checked=this.b()?"checked":void 0}; Wo.prototype.r=function(){this.a.value=this.d()};Wo.prototype.q=function(){this.a.value=this.c()};function Xo(a,b){this.x=a;this.y=b}F(Xo,vf);Xo.prototype.da=function(){return new Xo(this.x,this.y)};Xo.prototype.scale=vf.prototype.scale;Xo.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function Yo(a){a=t(a)?a:{};Ii.call(this);this.V=t(a.condition)?a.condition:Gi;this.a=this.b=void 0;this.f=0}F(Yo,Ii);Yo.prototype.Ac=function(a){var b=a.a;a=a.map;var c=a.c(),c=new Xo(b.Ld-c[0]/2,c[1]/2-b.Md),b=Math.atan2(c.y,c.x),c=Math.sqrt(c.x*c.x+c.y*c.y),d=a.a().O(),e=gi(d);Ki(a);t(this.b)&&yi(a,d,e.rotation-(b-this.b));this.b=b;t(this.a)&&Bi(a,d,this.a*(e.resolution/c));t(this.a)&&(this.f=this.a/c);this.a=c}; Yo.prototype.Ub=function(a){var b=a.map,c=b.a().O(),d=gi(c),e=this.f-1;zi(b,function(){var a=d.rotation,a=c.kc(a,0);yi(b,c,a,void 0,void 0);a=d.resolution;a=c.Ia(a,0,e);Bi(b,c,a,void 0,400)});this.f=0;return!0};Yo.prototype.Vb=function(a){return this.V(a.a)?(this.a=this.b=void 0,!0):!1};function Zo(a){a=t(a)?a:{};this.d=t(a.condition)?a.condition:Ei;this.b={};this.a={};this.c=t(a.layerFilter)?a.layerFilter:null}F(Zo,xi); Zo.prototype.xb=function(a){var b=a.a;if(this.d(b)){var c=a.map,d=c.Va().Ob();null===this.c||(d=Ga(d,this.c));var e=!Gi(b),f=this;c.Kd({layers:d,pixel:a.e(),success:function(a){var b=d,l=x(c);l in f.a||(f.a[l]={map:c,layers:{}});for(var n=0,r=a.length;n=b.Vc&&b.cancel())}this.l?this.l.call(this.g,this):this.sd=!0;this.nb||this.Cb(new np(this))}};m.Dd=function(a,b){this.Uc=!1;op(this,a,b)};function op(a,b,c){a.nb=!0;a.b=c;a.Tb=!b;pp(a)}function qp(a){if(a.nb){if(!a.sd)throw new rp(a);a.sd=!1}} m.aa=function(a){qp(this);op(this,!0,a)};m.Cb=function(a){qp(this);op(this,!1,a)};function sp(a,b,c){return tp(a,b,null,c)}function tp(a,b,c,d){a.c.push([b,c,d]);a.nb&&pp(a);return a}function up(a){return La(a.c,function(a){return ma(a[1])})} function pp(a){a.f&&(a.nb&&up(a))&&(p.clearTimeout(a.f),delete a.f);a.a&&(a.a.Vc--,delete a.a);for(var b=a.b,c=!1,d=!1;a.c.length&&!a.Uc;){var e=a.c.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Tb?g:f)try{var h=f.call(e||a.g,b);t(h)&&(a.Tb=a.Tb&&(h==b||h instanceof Error),a.b=b=h);b instanceof mp&&(d=!0,a.Uc=!0)}catch(l){b=l,a.Tb=!0,up(a)||(c=!0)}}a.b=b;d&&(tp(b,y(a.Dd,a,!0),y(a.Dd,a,!1)),b.Ae=!0);c&&(a.f=p.setTimeout(Ve(b),0))}function rp(a){ua.call(this);this.a=a}F(rp,ua);rp.prototype.message="Deferred has already fired"; rp.prototype.name="AlreadyCalledError";function np(a){ua.call(this);this.a=a}F(np,ua);np.prototype.message="Deferred was canceled";np.prototype.name="CanceledError";function vp(a,b,c,d,e,f){mp.call(this,e,f);this.e=a;this.d=[];this.V=!!b;this.r=!!c;this.q=!!d;for(b=this.i=0;b=d?1-d:8-d)+(Number(h)+7*(Number(c)-1))-1))):(e&&(b.a.setDate(1),b.a.setMonth(e-1)),f&&b.a.setDate(f));c=!0}else c=!1;c&&!(c=2>a.length)&&(a=a[1], c=a.match(Ap),h=0,c&&("Z"!=c[0]&&(h=60*c[2]+Number(c[3]),h*="-"==c[1]?1:-1),h-=b.a.getTimezoneOffset(),a=a.substr(0,a.length-c[0].length)),(c=a.match(zp))?(b.a.setHours(Number(c[1])),b.a.setMinutes(Number(c[2])||0),b.a.setSeconds(Number(c[3])||0),b.a.setMilliseconds(c[4]?1E3*c[4]:0),0!=h&&b.a.setTime(b.getTime()+6E4*h),c=!0):c=!1);return c?b:null} function Dp(a,b,c,d,e,f){u(a)?(this.f=a==Fp?b:0,this.d=a==Gp?b:0,this.a=a==Ep?b:0,this.b=a==Hp?b:0,this.c=a==Ip?b:0,this.e=a==Jp?b:0):(this.f=a||0,this.d=b||0,this.a=c||0,this.b=d||0,this.c=e||0,this.e=f||0)}Dp.prototype.da=function(){return new Dp(this.f,this.d,this.a,this.b,this.c,this.e)};var Fp="y",Gp="m",Ep="d",Hp="h",Ip="n",Jp="s";Dp.prototype.add=function(a){this.f+=a.f;this.d+=a.d;this.a+=a.a;this.b+=a.b;this.c+=a.c;this.e+=a.e}; function Kp(a,b,c){la(a)?(this.a=new Date(a,b||0,c||1),Lp(this,c||1)):na(a)?(this.a=new Date(a.getFullYear(),a.getMonth(),a.getDate()),Lp(this,a.getDate())):(this.a=new Date(ta()),this.a.setHours(0),this.a.setMinutes(0),this.a.setSeconds(0),this.a.setMilliseconds(0))}m=Kp.prototype;m.rc=xp.pe;m.sc=xp.qe;m.da=function(){var a=new Kp(this.a);a.rc=this.rc;a.sc=this.sc;return a};m.getFullYear=function(){return this.a.getFullYear()};m.getMonth=function(){return this.a.getMonth()};m.getDate=function(){return this.a.getDate()}; m.getTime=function(){return this.a.getTime()};function Mp(a){a=a.a.getTimezoneOffset();if(0==a)a="Z";else{var b=Math.abs(a)/60,c=Math.floor(b),b=60*(b-c);a=(0b&&(b+=12);var d;a:{switch(b){case 1:d=0!=c%4||0==c%100&&0!=c%400?28:29;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.a.setDate(1);this.a.setFullYear(c);this.a.setMonth(b);this.a.setDate(d)}a.a&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.a),this.a.setDate(1),this.a.setFullYear(a.getFullYear()), this.a.setMonth(a.getMonth()),this.a.setDate(a.getDate()),Lp(this,a.getDate()))};m.yc=function(a,b){return[this.getFullYear(),Ca(this.getMonth()+1),Ca(this.getDate())].join(a?"-":"")+(b?Mp(this):"")};m.toString=function(){return this.yc()};function Lp(a,b){a.getDate()!=b&&a.a.setUTCHours(a.a.getUTCHours()+(a.getDate()this.a.d};Wq.prototype.Nb=function(a){this.a.Nb(a)}; Wq.prototype.c=function(a,b,c,d){var e=this.eb(a,b,c);if(dm(this.a,e))return this.a.get(e);a=new Xa(a,b,c);d=this.Ga(a,d);d=new Vq(a,t(d)?0:4,t(d)?d:"",this.q);em(this.a,e,d);return d};Wq.prototype.ne=function(a,b,c){a=this.eb(a,b,c);dm(this.a,a)&&this.a.get(a)};function Xq(a){var b=Array(a.maxZoom+1),c,d=2*bj/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);ij.call(this,{minZoom:a.minZoom,origin:[-bj,bj],resolutions:b,tileSize:[256,256]})}F(Xq,ij); function Yq(a,b){var c=t(b)?b:{},d=a.minZoom,e=a.maxZoom,f=t(c.gg)?c.gg:!0,g=new Xa(0,0,0),h=null;if(t(c.extent)){var h=Array(e+1),l;for(l=0;l<=e;++l)h[l]=ls||l<=s)return null;a=a.y;return a<-l||-1=this.minZoom;--a)if(d.a=d.d>>=1,d.c=d.b>>=1,b.call(c,a,d))return!0;return!1};function Zq(a){Wq.call(this,{crossOrigin:"anonymous",opaque:!0,projection:ie("EPSG:3857")});this.j=t(a.culture)?a.culture:"en-us";this.d=!1;var b=new ye("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new Kq(b,"jsonp"),c={include:"ImageryProviders",key:a.key};a=y(this.l,this);var d=c||null,c="_"+(Lq++).toString(36)+ta().toString(36);p._callbacks_||(p._callbacks_={});var e=b.b.da();if(d)for(var f in d)d.hasOwnProperty&&!d.hasOwnProperty(f)||Le(e,f,d[f]);a&&(p._callbacks_[c]=Oq(c,a),Le(e, b.a,"_callbacks_."+c));f=Dq(e.toString(),{timeout:b.yb,Bd:!0});tp(f,null,Nq(c),void 0)}F(Zq,Wq); Zq.prototype.l=function(a){var b=a.brandLogoUri,c=a.resourceSets[0].resources[0],d=new Xq({minZoom:c.zoomMin,maxZoom:c.zoomMax,tileSize:[c.imageWidth,c.imageHeight]});this.tileGrid=d;var e=this.j;this.Ga=Tq(Yq(d),Qq(Ia(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}",Za(a))}})));var f=Ld(ie("EPSG:4326"),this.fa());this.e=Ia(c.imageryProviders,function(a){var b=a.attribution,c={};Fa(a.coverageAreas, function(a){var b=a.zoomMin,e=a.zoomMax;a=a.bbox;a=zd([a[1],a[3],a[0],a[2]],f);var g,h;for(g=b;g<=e;++g)h=g.toString(),b=lj(d,a,g),h in c?c[h].push(b):c[h]=[b]});return new bb({html:b,tileRanges:c})});this.f=b;this.d=!0;++this.b;M(this,"load")};Zq.prototype.Ba=k("d");function $q(a){var b=a.projection||ie("EPSG:3857"),c=Sq;t(a.Ga)?c=a.Ga:t(a.urls)?c=Qq(Ia(a.urls,Pq)):t(a.url)&&(c=Uq(a.url),c=Qq(Ia(c,Pq)));var d=new Xq({maxZoom:a.maxZoom,minZoom:a.minZoom}),e=Yq(d,{extent:a.extent}),c=Tq(e,c);Wq.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,projection:b,tileGrid:d,Ga:c})}F($q,Wq);function ar(a){a=t(a)?a:{};$q.call(this,{attributions:t(a.attributions)?a.attributions:t(a.attribution)?[a.attribution]:br,crossOrigin:"anonymous",opaque:!0,maxZoom:t(a.maxZoom)?a.maxZoom:18,url:t(a.url)?a.url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}F(ar,$q); var cr=new bb({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'}),dr=new bb({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'}),br=[dr,cr];function er(){$q.call(this,{attributions:[new bb({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/" target\x3d"_blank"\x3eMapQuest\x3c/a\x3e'}),cr],crossOrigin:"anonymous",logo:"http://developer.mapquest.com/content/osm/mq_logo.png",opaque:!0,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}F(er,$q); function fr(){$q.call(this,{attributions:[new bb({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/" target\x3d"_blank"\x3eMapQuest\x3c/a\x3e'}),new bb({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})],crossOrigin:"anonymous",logo:"http://developer.mapquest.com/content/osm/mq_logo.png",maxZoom:18,opaque:!0,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}F(fr,$q);function dk(a,b,c,d,e){d={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0,WIDTH:Math.round(d[0]),HEIGHT:Math.round(d[1])};J(d,b);d.STYLES=b.STYLES||new String("");b="1.3"this.a.d};Dr.prototype.Nb=function(a){this.a.Nb(a)};Dr.prototype.c=function(a,b,c){var d=this.eb(a,b,c);if(dm(this.a,d))return this.a.get(d);a=new Cr(new Xa(a,b,c),this.tileGrid);em(this.a,d,a);return a};var Er=[];C("grid",function(a){Er.push(a)});function Fr(a){Wq.call(this,{crossOrigin:a.crossOrigin,projection:ie("EPSG:3857")});this.d=!1;this.Wc=Dq(a.url,{Bd:!0});sp(this.Wc,this.j,this)}F(Fr,Wq); Fr.prototype.j=function(){var a=Er.pop(),b=ie("EPSG:4326"),c;if(t(a.bounds)){var d=a.bounds,d=[d[0],d[2],d[1],d[3]],e=Ld(b,this.fa());this.g=c=zd(d,e)}var f=a.minzoom||0,d=a.maxzoom||22;this.tileGrid=e=new Xq({maxZoom:d,minZoom:f});this.Ga=Tq(Yq(e,{extent:c}),Qq(Ia(a.tiles,Pq)));if(t(a.attribution)){b=t(c)?c:b.ba();c={};for(var g;f<=d;++f)g=f.toString(),c[g]=[lj(e,b,f)];this.e=[new bb({html:a.attribution,tileRanges:c})]}this.d=!0;++this.b;M(this,"load")};Fr.prototype.Ba=k("d");function Gr(a){var b=Sq,c=a.urls;!t(c)&&t(a.url)&&(c=Uq(a.url));this.d=a.params;this.j="";Hr(this);t(c)&&(b=Ia(c,function(a){return Rq(a,this.d)},this),b=Qq(b));var d=a.extent;Wq.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:a.tileGrid,opaque:!(t(a.params.TRANSPARENT)?a.params.TRANSPARENT:1),projection:a.projection,Ga:Tq(function(a,b){var c=this.tileGrid;null===c&&(c=Mj(b));if(c.Qb().length<=a.z)return null;var h=a.x,l=kj(c,a),n=b.ba();d=t(d)?d:n;null!==d&&(b.dd&& d[0]===n[0]&&d[1]===n[1])&&(l=Math.ceil((d[1]-d[0])/(l[1]-l[0])),h=cd(h,l),l=kj(c,new Xa(a.z,h,a.y)));return null===d||yd(l,d)?new Xa(a.z,h,a.y):null},b)});this.l=t(a.ad)?a.ad:{}}F(Gr,Wq);Gr.prototype.eb=function(a,b,c){return this.j+Gr.F.eb.call(this,a,b,c)};Gr.prototype.r=k("d"); Gr.prototype.Ua=function(a,b,c,d){var e=Kh(b,a),f=b.a().O(),g=f.fa(),h=null===this.tileGrid?Mj(g):this.tileGrid,f=f.B(),e=nj(h,e[0],e[1],f,!1,void 0),h=kj(h,e);b=Li(b,xd(h));g=this.Ga(e,g);gr(g,[a[0]-b[0],a[1]-b[1]],this.l,c,d)};function Hr(a){var b=0,c=[],d;for(d in a.d)c[b++]=d+"-"+a.d[d];a.j=c.join("/")}Gr.prototype.t=function(a){J(this.d,a);Hr(this);Gh(this)};function Ir(a){this.c=a.matrixIds;ij.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}F(Ir,ij);Ir.prototype.g=k("c"); function Jr(a){var b=[],c=[],d=[],e=[],f=ie(a.supportedCRS).Pb();Ua(a.matrixIds,function(a,b){return b.scaleDenominator-a.scaleDenominator});Fa(a.matrixIds,function(a){c.push(a.identifier);d.push(a.topLeftCorner);b.push(2.8E-4*a.scaleDenominator/f);e.push([a.tileWidth,a.tileHeight])});return new Ir({origins:d,resolutions:b,matrixIds:c,tileSizes:e})};var Kr="KVP"; function Lr(a){function b(a){a=e==Kr?ve(xe([a],g)):a.replace(/\{(\w+?)\}/g,function(a,b){return b in g?g[b]:a});return function(b){if(null!==b){var c={TileMatrix:f.c[b.z],TileCol:b.x,TileRow:b.y};J(c,this.d);b=a;return b=e==Kr?ve(xe([b],c)):b.replace(/\{(\w+?)\}/g,function(a,b){return c[b]})}}}var c=t(a.version)?a.version:"1.0.0",d=t(a.format)?a.format:"image/jpeg";this.d=a.dimensions||{};this.j="";Mr(this);var e=t(a.requestEncoding)?a.requestEncoding:Kr,f=a.tileGrid,g={Layer:a.layer,style:a.style, Style:a.style,TileMatrixSet:a.matrixSet};e==Kr&&J(g,{Service:"WMTS",Request:"GetTile",Version:c,Format:d});c=Sq;d=a.urls;!t(d)&&t(a.url)&&(d=Uq(a.url));t(d)&&(c=Qq(Ia(d,b)));var h=nd(),l=new Xa(0,0,0),c=Tq(function(b,c){var d=this.tileGrid;if(d.Qb().length<=b.z)return null;var e=b.x,f=-b.y-1,g=kj(d,b),B=c.ba(),v=t(a.extent)?a.extent:B;null!==v&&(c.dd&&v[0]===B[0]&&v[1]===B[1])&&(g=Math.ceil((v[1]-v[0])/(g[1]-g[0])),e=cd(e,g),l.z=b.z,l.x=e,l.y=b.y,g=kj(d,l,h));return yd(g,v)?new Xa(b.z,e,f):null}, c);Wq.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,tileGrid:f,Ga:c})}F(Lr,Wq);Lr.prototype.l=k("d");Lr.prototype.eb=function(a,b,c){return this.j+Lr.F.eb.call(this,a,b,c)};function Mr(a){var b=0,c=[],d;for(d in a.d)c[b++]=d+"-"+a.d[d];a.j=c.join("/")}Lr.prototype.r=function(a){J(this.d,a);Mr(this);Gh(this)};function Nr(a){this.c=t(a.color)?a.color instanceof jk?a.color:new U(a.color):new U(Or);this.a=t(a.fontFamily)?a.fontFamily instanceof jk?a.fontFamily:new U(a.fontFamily):new U(Pr);this.b=t(a.fontSize)?a.fontSize instanceof jk?a.fontSize:new U(a.fontSize):new U(Qr);this.e=a.text instanceof jk?a.text:new U(a.text);this.d=t(a.opacity)?a.opacity instanceof jk?a.opacity:new U(a.opacity):new U(Rr)}F(Nr,yl); Nr.prototype.cb=function(a){var b;a instanceof P&&(b=a,b.H());a=Qk(this.c,b);var c=Qk(this.a,b),d=Number(Qk(this.b,b)),e=Qk(this.e,b);b=Number(Qk(this.d,b));return new Ul({color:a,fontFamily:c,fontSize:d,text:e,opacity:b})};var Or="#000",Pr="sans-serif",Qr=10,Rr=1;function Sr(a){null!=a&&(a.html=a.html,a.tileRanges=a.tileRanges);bb.call(this,a)}F(Sr,bb);C("ol.Attribution",Sr);C("ol.Collection",O);O.prototype.clear=O.prototype.clear;O.prototype.extend=O.prototype.Ff;O.prototype.forEach=O.prototype.forEach;O.prototype.getArray=O.prototype.Gf;O.prototype.getAt=O.prototype.Ee;O.prototype.getLength=O.prototype.wc;O.prototype.insertAt=O.prototype.Dc;O.prototype.pop=O.prototype.pop;O.prototype.push=O.prototype.push;O.prototype.remove=O.prototype.remove; O.prototype.removeAt=O.prototype.rd;O.prototype.setAt=O.prototype.Vf;Wc.prototype.getElement=Wc.prototype.b;function Tr(a){null!=a&&(a.tracking=a.tracking);ed.call(this,a)}F(Tr,ed);C("ol.DeviceOrientation",Tr);C("ol.DeviceOrientation.SUPPORTED",fd);C("ol.Feature",P);P.prototype.getAttributes=P.prototype.ob;P.prototype.getFeatureId=P.prototype.Je;P.prototype.getGeometry=P.prototype.H;P.prototype.set=P.prototype.o;P.prototype.setGeometry=P.prototype.Ea; function Ur(a){null!=a&&(a.projection=a.projection,a.tracking=a.tracking,a.trackingOptions=a.trackingOptions);Q.call(this,a)}F(Ur,Q);C("ol.Geolocation",Ur);C("ol.Geolocation.SUPPORTED",le);function Vr(a){null!=a&&(a.controls=a.controls,a.interactions=a.interactions,a.layers=a.layers,a.overlays=a.overlays,a.renderer=a.renderer,a.renderers=a.renderers,a.target=a.target,a.view=a.view);V.call(this,a)}F(Vr,V);C("ol.Map",Vr);V.prototype.addControl=V.prototype.xe;V.prototype.addLayer=V.prototype.zd; V.prototype.addOverlay=V.prototype.ye;V.prototype.beforeRender=V.prototype.Ha;V.prototype.getControls=V.prototype.Ie;V.prototype.getFeatureInfo=V.prototype.Ke;V.prototype.getFeatures=V.prototype.Kd;V.prototype.getInteractions=V.prototype.Le;V.prototype.getLayers=V.prototype.se;V.prototype.getOverlays=V.prototype.Ne;V.prototype.getRenderer=V.prototype.Oe;V.prototype.removeControl=V.prototype.Pf;V.prototype.removeLayer=V.prototype.he;V.prototype.removeOverlay=V.prototype.Qf;V.prototype.updateSize=V.prototype.na; Jh.prototype.getCoordinate=Jh.prototype.d;Jh.prototype.getPixel=Jh.prototype.e;Jh.prototype.preventDefault=Jh.prototype.U;Jh.prototype.stopPropagation=Jh.prototype.rb;C("ol.Object",N);N.prototype.bindTo=N.prototype.ze;N.prototype.get=N.prototype.get;N.prototype.notify=N.prototype.Zd;N.prototype.on=N.prototype.Lf;N.prototype.once=N.prototype.Nf;N.prototype.set=N.prototype.o;N.prototype.setValues=N.prototype.$b;N.prototype.un=N.prototype.ag;N.prototype.unByKey=N.prototype.bg;N.prototype.unbind=N.prototype.ud; N.prototype.unbindAll=N.prototype.cg;function Wr(a){null!=a&&(a.element=a.element,a.position=a.position,a.positioning=a.positioning);so.call(this,a)}F(Wr,so);C("ol.Overlay",Wr);C("ol.OverlayPositioning",ro);ro.BOTTOM_LEFT="bottom-left";ro.BOTTOM_RIGHT="bottom-right";ro.TOP_LEFT="top-left";ro.TOP_RIGHT="top-right";function Xr(a){null!=a&&(a.axisOrientation=a.axisOrientation,a.code=a.code,a.extent=a.extent,a.global=a.global,a.units=a.units);Jd.call(this,a)}F(Xr,Jd);C("ol.Projection",Xr); Jd.prototype.getAxisOrientation=Jd.prototype.Fe;Jd.prototype.getCode=Jd.prototype.He;Jd.prototype.getExtent=Jd.prototype.ba;Jd.prototype.getMetersPerUnit=Jd.prototype.Pb;Jd.prototype.getPointResolution=Jd.prototype.b;Jd.prototype.getUnits=Jd.prototype.If;Jd.prototype.isGlobal=Jd.prototype.zf;C("ol.ProjectionUnits",Hd);Hd.DEGREES="degrees";Hd.FEET="ft";Hd.METERS="m";C("ol.RendererHint",oo);oo.CANVAS="canvas";oo.DOM="dom";oo.WEBGL="webgl";C("ol.RendererHints",no);no.createFromQueryData=no.Be; function Yr(a){null!=a&&(a.center=a.center,a.maxResolution=a.maxResolution,a.maxZoom=a.maxZoom,a.projection=a.projection,a.resolution=a.resolution,a.resolutions=a.resolutions,a.rotation=a.rotation,a.zoom=a.zoom,a.zoomFactor=a.zoomFactor);S.call(this,a)}F(Yr,S);C("ol.View2D",Yr);S.prototype.calculateExtent=S.prototype.i;S.prototype.constrainResolution=S.prototype.Ia;S.prototype.constrainRotation=S.prototype.kc;S.prototype.fitExtent=S.prototype.$c;S.prototype.getView2D=S.prototype.O; S.prototype.getZoom=S.prototype.Re;S.prototype.setZoom=S.prototype.q;C("ol.animation.bounce",function(a){null!=a&&(a.duration=a.duration,a.easing=a.easing,a.resolution=a.resolution,a.start=a.start);return oi(a)});C("ol.animation.pan",function(a){null!=a&&(a.duration=a.duration,a.easing=a.easing,a.source=a.source,a.start=a.start);return pi(a)});C("ol.animation.rotate",function(a){null!=a&&(a.duration=a.duration,a.easing=a.easing,a.rotation=a.rotation,a.start=a.start);return qi(a)}); C("ol.animation.zoom",function(a){null!=a&&(a.duration=a.duration,a.easing=a.easing,a.resolution=a.resolution,a.start=a.start);return ri(a)});C("ol.canvas.SUPPORTED",zm);function Zr(a){null!=a&&(a.className=a.className,a.target=a.target);ii.call(this,a)}F(Zr,ii);C("ol.control.Attribution",Zr);ii.prototype.setMap=ii.prototype.setMap;function $r(a){null!=a&&(a.element=a.element,a.target=a.target);hi.call(this,a)}F($r,hi);C("ol.control.Control",$r);hi.prototype.getMap=hi.prototype.$; hi.prototype.setMap=hi.prototype.setMap;function as(a){null!=a&&(a.className=a.className,a.keys=a.keys,a.target=a.target);Ao.call(this,a)}F(as,Ao);C("ol.control.FullScreen",as);function bs(a){null!=a&&(a.className=a.className,a.target=a.target);ji.call(this,a)}F(bs,ji);C("ol.control.Logo",bs);ji.prototype.setMap=ji.prototype.setMap; function cs(a){null!=a&&(a.className=a.className,a.coordinateFormat=a.coordinateFormat,a.projection=a.projection,a.target=a.target,a.undefinedHTML=a.undefinedHTML);Bo.call(this,a)}F(cs,Bo);C("ol.control.MousePosition",cs);Bo.prototype.setMap=Bo.prototype.setMap;function ds(a){null!=a&&(a.className=a.className,a.minWidth=a.minWidth,a.target=a.target,a.units=a.units);Eo.call(this,a)}F(ds,Eo);C("ol.control.ScaleLine",ds);Eo.prototype.setMap=Eo.prototype.setMap;C("ol.control.ScaleLineUnits",Do); Do.DEGREES="degrees";Do.IMPERIAL="imperial";Do.METRIC="metric";Do.NAUTICAL="nautical";Do.US="us";function es(a){null!=a&&(a.className=a.className,a.delta=a.delta,a.target=a.target);si.call(this,a)}F(es,si);C("ol.control.Zoom",es);si.prototype.setMap=si.prototype.setMap;function fs(a){null!=a&&(a.className=a.className,a.maxResolution=a.maxResolution,a.minResolution=a.minResolution);To.call(this,a)}F(fs,To);C("ol.control.ZoomSlider",fs); function gs(a){null!=a&&(a.className=a.className,a.extent=a.extent,a.target=a.target);Vo.call(this,a)}F(gs,Vo);C("ol.control.ZoomToExtent",gs); C("ol.control.defaults",function(a){if(null!=a){a.attribution=a.attribution;var b=a.attributionOptions;null!=a.attributionOptions&&(b.className=a.attributionOptions.className,b.target=a.attributionOptions.target);a.attributionOptions=b;a.logo=a.logo;b=a.logoOptions;null!=a.logoOptions&&(b.className=a.logoOptions.className,b.target=a.logoOptions.target);a.logoOptions=b;a.zoom=a.zoom;b=a.zoomOptions;null!=a.zoomOptions&&(b.className=a.zoomOptions.className,b.delta=a.zoomOptions.delta,b.target=a.zoomOptions.target); a.zoomOptions=b}return ti(a)});C("ol.coordinate.createStringXY",function(a){return function(b){return kd(b,a)}});C("ol.coordinate.fromProjectedArray",ld);C("ol.coordinate.toStringHDMS",function(a){return t(a)?hd(a[1],"NS")+" "+hd(a[0],"EW"):""});C("ol.coordinate.toStringXY",kd);C("ol.dom.Input",Wo);C("ol.easing.bounce",function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a}); C("ol.easing.easeIn",function(a){return a*a*a});C("ol.easing.easeOut",ki);C("ol.easing.elastic",function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1});C("ol.easing.inAndOut",li);C("ol.easing.linear",mi);C("ol.easing.upAndDown",ni);C("ol.expr.parse",function(a){return Mk(a)});C("ol.expr.register",function(a,b){Rk[a]=b});C("ol.extent.boundingExtent",md);C("ol.extent.containsCoordinate",pd);C("ol.extent.containsExtent",qd);C("ol.extent.equals",sd);C("ol.extent.extend",td); C("ol.extent.getBottomLeft",ud);C("ol.extent.getBottomRight",function(a){return[a[1],a[2]]});C("ol.extent.getCenter",vd);C("ol.extent.getHeight",function(a){return a[3]-a[2]});C("ol.extent.getSize",function(a){return[a[1]-a[0],a[3]-a[2]]});C("ol.extent.getTopLeft",xd);C("ol.extent.getTopRight",function(a){return[a[1],a[3]]});C("ol.extent.getWidth",function(a){return a[1]-a[0]});C("ol.extent.intersects",yd);C("ol.extent.isEmpty",function(a){return a[1]f&&(f=0);var f=c.styles[f].identifier,g={};Fa(c.dimensions,function(a){var b=a.identifier,c=a["default"];t(c)||(c=a.values[0]);g[b]=c});var h=a.contents.tileMatrixSets[d],l=Jr(h),h=ie(h.supportedCRS),n=a.operationsMetadata.GetTile.dcp.http.get,r,q;switch(kc(n[0].constraints.GetEncoding.allowedValues)[0]){case "REST":case "RESTful":q= "REST";r=c.resourceUrls.tile[e];break;case "KVP":q=Kr,r=[],Fa(n,function(a){a.constraints.GetEncoding.allowedValues.hasOwnProperty(Kr)&&r.push(a.url)})}return{urls:r,layer:b,matrixSet:d,format:e,projection:h,requestEncoding:q,tileGrid:l,style:f,dimensions:g}});Lr.prototype.getDimensions=Lr.prototype.l;Lr.prototype.updateDimensions=Lr.prototype.r;function ws(a){null!=a&&(a.color=a.color,a.opacity=a.opacity);zl.call(this,a)}F(ws,zl);C("ol.style.Fill",ws); function xs(a){null!=a&&(a.height=a.height,a.opacity=a.opacity,a.rotation=a.rotation,a.url=a.url,a.width=a.width,a.xOffset=a.xOffset,a.yOffset=a.yOffset);Np.call(this,a)}F(xs,Np);C("ol.style.Icon",xs);function ys(a){null!=a&&(a.filter=a.filter,a.symbolizers=a.symbolizers);Dl.call(this,a)}F(ys,Dl);C("ol.style.Rule",ys);function zs(a){null!=a&&(a.fill=a.fill,a.size=a.size,a.stroke=a.stroke,a.type=a.type);Nl.call(this,a)}F(zs,Nl);C("ol.style.Shape",zs);C("ol.style.ShapeType",Fl);Fl.CIRCLE="circle"; function As(a){null!=a&&(a.color=a.color,a.opacity=a.opacity,a.width=a.width);Il.call(this,a)}F(As,Il);C("ol.style.Stroke",As);function Bs(a){null!=a&&(a.rules=a.rules,a.symbolizers=a.symbolizers);Ql.call(this,a)}F(Bs,Ql);C("ol.style.Style",Bs);function Cs(a){null!=a&&(a.color=a.color,a.fontFamily=a.fontFamily,a.fontSize=a.fontSize,a.opacity=a.opacity,a.text=a.text);Nr.call(this,a)}F(Cs,Nr);C("ol.style.Text",Cs); function Ds(a){null!=a&&(a.minZoom=a.minZoom,a.origin=a.origin,a.origins=a.origins,a.resolutions=a.resolutions,a.tileSize=a.tileSize,a.tileSizes=a.tileSizes);ij.call(this,a)}F(Ds,ij);C("ol.tilegrid.TileGrid",Ds);ij.prototype.getMinZoom=ij.prototype.Me;ij.prototype.getOrigin=ij.prototype.Fb;ij.prototype.getResolutions=ij.prototype.Qb;ij.prototype.getTileSize=ij.prototype.Aa; function Es(a){null!=a&&(a.matrixIds=a.matrixIds,a.origin=a.origin,a.origins=a.origins,a.resolutions=a.resolutions,a.tileSize=a.tileSize,a.tileSizes=a.tileSizes);Ir.call(this,a)}F(Es,Ir);C("ol.tilegrid.WMTS",Es);Ir.prototype.getMatrixIds=Ir.prototype.g;function Fs(a){null!=a&&(a.maxZoom=a.maxZoom);Xq.call(this,a)}F(Fs,Xq);C("ol.tilegrid.XYZ",Fs);C("ol.webgl.SUPPORTED",gn);})();