(function(){var h=void 0,j=!0,k=null,l=!1;function aa(){return function(a){return a}}function m(a){return function(){return this[a]}}var p,w=this;function ba(){}function ca(a){a.Ya=function(){return a.qc?a.qc:a.qc=new a}} function da(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function x(a){return a!==h}function ea(a){return"array"==da(a)}function fa(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ga(a){return"string"==typeof a}function ha(a){return"function"==da(a)}function ia(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function y(a){return a[ja]||(a[ja]=++ka)}var ja="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ka=0; function la(a,b,c){return a.call.apply(a.bind,arguments)}function ma(a,b,c){if(!a)throw Error();if(2")&&(a=a.replace(wa,">"));-1!=a.indexOf('"')&&(a=a.replace(xa,"""));return a}var ua=/&/g,va=//g,xa=/\"/g,ta=/[&<>\"]/;var ya=Array.prototype,za=ya.indexOf?function(a,b,c){return ya.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ga(a))return!ga(b)||1!=b.length?-1:a.indexOf(b,c);for(;c=arguments.length?ya.slice.call(a,b):ya.slice.call(a,b,c)}function Ja(a){ya.sort.call(a,Ka)} function Ka(a,b){return a>b?1:a2*this.n&&Za(this),j):l};function Za(a){if(a.n!=a.a.length){for(var b=0,c=0;bparseFloat(sb)){rb=String(wb);break a}}rb=sb}var yb={}; function zb(a){var b;if(!(b=yb[a])){b=0;for(var c=String(rb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f(0==q[1].length?0:parseInt(q[1],10))?1:0)||((0==s[2].length)<(0==q[2].length)?-1:(0==s[2].length)>(0==q[2].length)?1:0)||(s[2]q[2]?1:0)}while(0==b)}b=yb[a]=0<=b}return b}var Ab={};function Bb(a){return Ab[a]||(Ab[a]=F&&!!document.documentMode&&document.documentMode>=a)};var Cb,Db=!F||Bb(9);!nb&&!F||F&&Bb(9)||nb&&zb("1.9.1");F&&zb("9");function Eb(a,b){var c;c=a.className;c=ga(c)&&c.match(/\S+/g)||[];for(var d=Ia(arguments,1),e=c.length+d.length,f=c,g=0;gc*b?c+b:c};function Hb(a,b){this.x=x(a)?a:0;this.y=x(b)?b:0}Hb.prototype.S=function(){return new Hb(this.x,this.y)};function Ib(a,b){this.width=a;this.height=b}p=Ib.prototype;p.S=function(){return new Ib(this.width,this.height)};p.Ia=function(){return!(this.width*this.height)};p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Jb(a){return a?new Kb(Lb(a)):Cb||(Cb=new Kb)}function Mb(a,b){La(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Nb?a.setAttribute(Nb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Nb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"}; function Ob(a){a=a.document.documentElement;return new Ib(a.clientWidth,a.clientHeight)}function Pb(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Db&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',ra(g.name),'"');if(g.type){f.push(' type="',ra(g.type),'"');var i={};Va(i,g);delete i.type;g=i}f.push(">");f=f.join("")}f=e.createElement(f);g&&(ga(g)?f.className=g:ea(g)?Eb.apply(k,[f].concat(g)):Mb(f,g));2=a.keyCode)a.keyCode=-1}catch(b){}};p.cd=m("K");function mc(){}var nc=0;mc.prototype.key=0;mc.prototype.za=l;mc.prototype.a=l;mc.prototype.handleEvent=function(a){return this.b?this.Ja.call(this.Ob||this.src,a):this.Ja.handleEvent.call(this.Ja,a)};var oc={},pc={},qc={},rc={}; function H(a,b,c,d,e){if(b){if(ea(b)){for(var f=0;ff.keyCode||f.returnValue!=h)return j;a:{var r=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(s){r=j}if(r||f.returnValue==h)f.returnValue=j}}r=new ic;jc(r,f,this);f=j;try{if(i){for(var q=[],v=r.c;v;v=v.parentNode)q.push(v);g=e[j];g.Q=g.n;for(var u=q.length- 1;!r.qa&&0<=u&&g.Q;u--)r.c=q[u],f&=xc(g,q[u],d,j,r);if(n){g=e[l];g.Q=g.n;for(u=0;!r.qa&&u=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function Ac(a,b){var c=Lb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function Bc(a,b){return a.currentStyle?a.currentStyle[b]:k}function Cc(a,b){return Ac(a,b)||Bc(a,b)||a.style&&a.style[b]}function Dc(a,b){var c,d,e=nb&&(fb||qb)&&zb("1.9");b instanceof Hb?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Ec(c,e);a.style.top=Ec(d,e)} function Fc(a){var b=a.getBoundingClientRect();F&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b} function Gc(a){if(F&&!Bb(8))return a.offsetParent;for(var b=Lb(a),c=Cc(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Cc(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return k}function Hc(a,b){var c=Ic(a),d=Ic(b);return new Hb(c.x-d.x,c.y-d.y)} function Ic(a){var b=new Hb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Fc(a);b.x=c.left;b.y=c.top}else{c=Wb(Jb(a));var d,e=Lb(a),f=Cc(a,"position"),g=nb&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),i=new Hb(0,0),n;d=e?Lb(e):document;if(n=F)if(n=!Bb(9))Jb(d),n=l;n=n?d.body:d.documentElement;if(a!=n)if(a.getBoundingClientRect)d=Fc(a),e=Wb(Jb(e)),i.x=d.left+e.x,i.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a), e=e.getBoxObjectFor(n),i.x=d.screenX-e.screenX,i.y=d.screenY-e.screenY;else{g=a;do{i.x+=g.offsetLeft;i.y+=g.offsetTop;g!=a&&(i.x+=g.clientLeft||0,i.y+=g.clientTop||0);if(G&&"fixed"==Cc(g,"position")){i.x+=e.body.scrollLeft;i.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(mb||G&&"absolute"==f)i.y-=e.body.offsetTop;for(g=a;(g=Gc(g))&&g!=e.body&&g!=n;)if(i.x-=g.scrollLeft,!mb||"TR"!=g.tagName)i.y-=g.scrollTop}b.x=i.x-c.x;b.y=i.y-c.y}if(nb&&!zb(12)){var r;F?r="-ms-transform":G?r="-webkit-transform": mb?r="-o-transform":nb&&(r="-moz-transform");var s;r&&(s=Cc(a,r));s||(s=Cc(a,"transform"));s?(a=s.match(Jc),a=!a?new Hb(0,0):new Hb(parseFloat(a[1]),parseFloat(a[2]))):a=new Hb(0,0);b=new Hb(b.x+a.x,b.y+a.y)}}else r=ha(a.cd),s=a,a.targetTouches?s=a.targetTouches[0]:r&&a.K.targetTouches&&(s=a.K.targetTouches[0]),b.x=s.clientX,b.y=s.clientY;return b}function Ec(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a} function Kc(a){var b=a.offsetWidth,c=a.offsetHeight,d=G&&!b&&!c;return(!x(b)||d)&&a.getBoundingClientRect?(a=Fc(a),new Ib(a.right-a.left,a.bottom-a.top)):new Ib(b,c)}function Lc(a,b){a.style.display=b?"":"none"} function Mc(a,b){Jb(Lb(a));if(F&&!zb("8")){var c=a.style,d;if(F){d=Nc(a,Bc(a,"paddingLeft"));var e=Nc(a,Bc(a,"paddingRight")),f=Nc(a,Bc(a,"paddingTop")),g=Nc(a,Bc(a,"paddingBottom"));d=new zc(f,e,g,d)}else d=Ac(a,"paddingLeft"),e=Ac(a,"paddingRight"),f=Ac(a,"paddingTop"),g=Ac(a,"paddingBottom"),d=new zc(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(F)var e=Oc(a,"borderLeft"),f=Oc(a,"borderRight"),g=Oc(a,"borderTop"),i=Oc(a,"borderBottom"),e=new zc(g,f,i,e);else e=Ac(a,"borderLeftWidth"), f=Ac(a,"borderRightWidth"),g=Ac(a,"borderTopWidth"),i=Ac(a,"borderBottomWidth"),e=new zc(parseFloat(g),parseFloat(f),parseFloat(i),parseFloat(e));c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c=a.style,nb?c.MozBoxSizing="border-box":G?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(b.width,0)+"px",c.height=Math.max(b.height,0)+"px"} function Nc(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}var Pc={thin:2,medium:4,thick:6};function Oc(a,b){if("none"==Bc(a,b+"Style"))return 0;var c=Bc(a,b+"Width");return c in Pc?Pc[c]:Nc(a,c)}var Jc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Qc(a,b){this.x=a;this.y=b}B(Qc,Hb);Qc.prototype.S=function(){return new Qc(this.x,this.y)};Qc.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Qc.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function L(a,b){Qc.call(this,a,b)}B(L,Qc);function Rc(a,b){var c=Gb(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};var Sc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Tc(a,b,c){if(ea(b))for(var d=0;db)throw Error("Bad port number "+b);a.rb=b}else a.rb=k} function Yc(a,b,c){Wc(a);if(b instanceof Zc){a.a=b;b=a.a;if((a=a.la)&&!b.b){ed(b);b.a=k;var d=b.D,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),fd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(fa(d)||ga(d))C(d,c,b);else{var e;if("function"==typeof d.W)e=d.W();else if("function"!=typeof d.N)if(fa(d)||ga(d)){e=[];for(var f=d.length,g=0;g>4&15).toString(16)+(a&15).toString(16)}var ad=/[#\/\?@]/g,cd=/[\#\?:]/g,bd=/[\#\?]/g,gd=/[\#\?@]/g,dd=/#/g;function Zc(a,b,c){this.a=a||k;this.b=!!c} function ed(a){if(!a.D&&(a.D=new Xa,a.n=0,a.a))for(var b=a.a.split("&"),c=0;c=a||96<=a&&106>=a||65<=a&&90>=a||G&&0==a)return j;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return j;default:return l}} function Cd(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Dd(a,b){$b.call(this);a&&(this.hb&&Ed(this),this.Da=a,this.gb=H(this.Da,"keypress",this,b),this.Pb=H(this.Da,"keydown",this.a,b,this),this.hb=H(this.Da,"keyup",this.b,b,this))}B(Dd,md);p=Dd.prototype;p.Da=k;p.gb=k;p.Pb=k;p.hb=k;p.ga=-1;p.fa=-1;p.Bb=l; var Fd={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Gd={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Hd=F||G&&zb("525"),Id=fb&&nb; Dd.prototype.a=function(a){if(G&&(17==this.ga&&!a.ab||18==this.ga&&!a.ca))this.fa=this.ga=-1;Hd&&!Ad(a.va,this.ga,a.ma,a.ab,a.ca)?this.handleEvent(a):(this.fa=nb?Cd(a.va):a.va,Id&&(this.Bb=a.ca))};Dd.prototype.b=function(a){this.fa=this.ga=-1;this.Bb=a.ca}; Dd.prototype.handleEvent=function(a){var b=a.K,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.fa,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.fa,d=0<=b.charCode&&63232>b.charCode&&Bd(c)?b.charCode:0):mb?(c=this.fa,d=Bd(c)?b.keyCode:0):(c=b.keyCode||this.fa,d=b.charCode||0,Id&&(e=this.Bb),fb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Fd?f=Fd[c]:25==c&&a.ma&&(f=9):g&&g in Gd&&(f=Gd[g]);a=f==this.ga;this.ga=f;b=new Jd(f,d,a,b);b.ca=e;K(this,b)}; function Ed(a){a.gb&&(I(a.gb),I(a.Pb),I(a.hb),a.gb=k,a.Pb=k,a.hb=k);a.Da=k;a.ga=-1;a.fa=-1}Dd.prototype.r=function(){Dd.v.r.call(this);Ed(this)};function Jd(a,b,c,d){d&&jc(this,d,h);this.type="key";this.va=a;this.$a=b;this.b=c}B(Jd,ic);function Kd(a){$b.call(this);this.a=a;a=ia(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&"rtl"==Cc(a,"direction");this.b=H(this.a,nb?"DOMMouseScroll":"mousewheel",this)}B(Kd,md); Kd.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.K;if("mousewheel"==a.type){c=1;if(F||G&&(gb||zb("532.0")))c=40;d=Ld(-a.wheelDelta,c);x(a.wheelDeltaX)?(b=Ld(-a.wheelDeltaX,c),c=Ld(-a.wheelDeltaY,c)):c=d}else d=a.detail,100d&&(d=-3),x(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Fb(b,-this.c,this.c));"number"==typeof this.d&&(c=Fb(c,-this.d,this.d));this.e&&(b=-b);b=new Md(d,a,b,c);K(this,b)};function Ld(a,b){return G&&(fb||hb)&&0!=a%b?a:a/b} Kd.prototype.r=function(){Kd.v.r.call(this);I(this.b);delete this.b};function Md(a,b,c,d){b&&jc(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Md,ic);var Nd=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function M(a){$b.call(this);this.o={};x(a)&&this.nb(a)}B(M,md);var Od={},Pd={},Qd={};function Rd(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Sd(a){return a.ol_accessors_||(a.ol_accessors_={})}function Td(a){return Od.hasOwnProperty(a)?Od[a]:Od[a]=a.toLowerCase()+"_changed"}function Ud(a){return a.ol_bindings_||(a.ol_bindings_={})}p=M.prototype; p.Uc=function(a,b,c,d){c=c||a;this.Wb(a);var e=Td(c);Ud(this)[a]=H(b,e,function(){Vd(this,a)},h,this);Sd(this)[a]={target:b,key:c};d||Vd(this,a)};p.Xc=ba;p.s=function(a){var b,c=Sd(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Pd.hasOwnProperty(b)?Pd[b]:Pd[b]="get"+Rd(b),b=a[c]?a[c]():a.s(b)):this.o.hasOwnProperty(a)&&(b=this.o[a]);return b}; p.W=function(){for(var a=Sa(Sd(this)).concat(Sa(this.o)),b={},c=0,d=0;d=b.i&&a.j<=b.k&&a.k>=b.j}$d.prototype.toString=function(){return"("+[this.i,this.j,this.l,this.k].join(", ")+")"};function be(a,b,c,d){$d.call(this,a,b,c,d)}B(be,$d);function ce(a){var b=arguments[0],b=new be(b.x,b.y,b.x,b.y),c;for(c=1;c>=1;return b.join("")}re.prototype.toString=function(){return[this.m,this.x,this.y].join("/")};function te(a,b,c,d){this.i=a;this.j=b;this.l=c;this.k=d}B(te,$d);te.prototype.contains=function(a){return this.i<=a.x&&a.x<=this.l&&this.j<=a.y&&a.y<=this.k};te.prototype.aa=function(){return this.k-this.j+1};te.prototype.ea=function(){return this.l-this.i+1};function ue(a,b){this.b=a;this.a=b||k};function ve(a){$b.call(this);this.e=0;this.V=a;this.a=0}B(ve,md);ve.prototype.b=function(){return y(this).toString()};function we(a){this.d=a;this.f=8;this.c=0;this.a=[];this.b={}}function xe(a,b,c,d){if(0==b.a){var e=b.b();if(!(e in a.b)){var f=a.d(b,c,d);Infinity!=f&&(a.a.push([f,b,c,d]),a.b[e]=j,ye(a,0,a.a.length-1),b.e++)}}}we.prototype.e=function(){--this.c};function ze(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b>1;){var g=2*b+1,i=2*b+2,g=ib;){var e=c-1>>1;if(a[e][0]>d[0])a[c]=a[e],c=e;else break}a[c]=d};/* Latitude/longitude spherical geodesy formulae taken from http://www.movable-type.co.uk/scripts/latlong.html Licenced under CC-BY-3.0. */ function Ae(a,b){var c=a.y*Math.PI/180,d=b.y*Math.PI/180,e=(d-c)/2,f=(b.x-a.x)*Math.PI/180/2,c=Math.sin(e)*Math.sin(e)+Math.sin(f)*Math.sin(f)*Math.cos(c)*Math.cos(d);return 2*Be.a*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};var Be=new function(){this.a=6370997};var Ce="object"==typeof Proj4js,De={Nc:"degrees",ye:"ft",Ce:"m"};function O(a,b,c,d){this.a=a;this.c=b;this.na=c;this.d=x(d)?d:"enu";this.f=k}O.prototype.h=m("a");O.prototype.H=m("na");O.prototype.o=m("c");O.prototype.g=m("d");function Ee(a,b){O.call(this,a,b.units,k,b.axis);this.Ac=b;this.e=k}B(Ee,O); Ee.prototype.b=function(a,b){if("degrees"==this.c)return a;this.e===k&&(this.e=Fe(this,Ge("EPSG:4326")));var c=[b.x-a/2,b.y,b.x+a/2,b.y,b.x,b.y-a/2,b.x,b.y+a/2],c=this.e(c,c,2),c=(Ae(new L(c[0],c[1]),new L(c[2],c[3]))+Ae(new L(c[4],c[5]),new L(c[6],c[7])))/2;"ft"==this.c&&(c/=0.3048);return c};var He={},Ie={},Je={};function Ke(a){C(a,function(a){Le(a)});C(a,function(b){C(a,function(a){b!==a&&Me(b,a,Ne)})})}function Le(a){Ie[a.a]=a;Me(a,a,Ne)} function Oe(a){return a!=k?ga(a)?Pe(a):a:Pe("EPSG:3857")}function Me(a,b,c){a=a.a;b=b.a;a in Je||(Je[a]={});Je[a][b]=c}function Pe(a){var b=Ie[a];Ce&&!x(b)&&(b=Ge(a));x(b)||(b=k);return b}function Ge(a){var b=He[a];if(!x(b)){var c=new Proj4js.Proj(a),d=c.srsCode,b=He[d];x(b)||(b=new Ee(d,c),He[d]=b);He[a]=b}return b} function Fe(a,b){var c=a.a,d=b.a,e;c in Je&&d in Je[c]&&(e=Je[c][d]);if(Ce&&!x(e)){var f;f=(a instanceof Ee?a:Ge(a.a)).Ac;var g;g=(b instanceof Ee?b:Ge(b.a)).Ac;e=function(a,b,c){var d=a.length,c=1=Math.abs(a+c)?0:a+c}};var pf={rc:aa(),Jc:function(a){return 0.5>a?mf(2*a):1-mf(2*(a-0.5))},$c:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Cb:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a}};var qf={Cb:function(a){var b=a.resolution,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:pf.Jc;return function(a,g){if(g.timeb?(d="\u2032",a*=60):d="\u00b0":"imperial"==this.c?0.9144>b?(d="in",a/=0.0254):1609.344>b?(d="ft",a/=0.3048):(d="mi",a/=1609.344):"nautical"==this.c?(a/=1852,d="nm"):"metric"==this.c?1>b?(d="mm",a*=1E3):1E3>b?d="m":(d="km",a/=1E3):"us"==this.c&&(0.9144>b?(d="in",a*=39.37):1609.344>b?(d="ft",a/=0.30480061):(d="mi",a/=1609.3472));for(var b=3*Math.floor(Math.log(this.h*a)/Math.log(10)),e,f;;){e=Af[b%3]*Math.pow(10,Math.floor(b/3));f=Math.round(e/a);if(f>=this.h)break;++b}e=e+d;this.t!=e&& (this.t=this.g.innerHTML=e);this.F!=f&&(this.g.style.width=f+"px",this.F=f);this.f||(Lc(this.o,j),this.f=j)}};zf.prototype.a=function(a){this.e!==k&&(C(this.e,I),this.e=k);zf.v.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.w,l,this)])};function Bf(a){var a=x(a)?a:{},b=Pb("A",{href:"#zoomIn","class":"ol-zoom-in"});H(b,["touchend","click"],this.d,l,this);var c=Pb("A",{href:"#zoomOut","class":"ol-zoom-out"});H(c,["touchend","click"],this.e,l,this);b=Pb("DIV","ol-zoom ol-unselectable",b,c);wf.call(this,{element:b,map:a.map,target:a.target});this.c=x(a.delta)?a.delta:1}B(Bf,wf);Bf.prototype.d=function(a){a.C();a=this.b;sf(a);vf(a.a(),a,this.c,h,250)};Bf.prototype.e=function(a){a.C();a=this.b;sf(a);vf(a.a(),a,-this.c,h,250)};function Cf(a,b){var c=x(a)?a:{},d=[];if(x(c.attribution)?c.attribution:1)d.push(new xf(x(c.Nd)?c.Nd:h));x(c.Od)&&c.Od&&d.push(new zf(x(c.Pd)?c.Pd:h));if(x(c.zoom)?c.zoom:1)d.push(new Bf(x(c.ke)?c.ke:h));x(b)&&Ga(d,b);return d};function Df(a,b,c){this.e=a;this.d=b;this.f=c;this.a=[];this.b=this.c=0}function Ef(a){for(var b=pa(),c=a.a.length-1,d=c-1;0<=d&&a.a[d].Na>b-a.f;)d--;if(0<=d){var b=a.a[d],c=a.a[c],d=c.x-b.x,e=c.y-b.y;a.c=Math.atan2(e,d);a.b=Math.sqrt(d*d+e*e)/(c.Na-b.Na);return a.b>a.d}return l}Df.prototype.pa=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return qf.pa({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Ff(){};function Gf(a){this.a=a}B(Gf,Ff);Gf.prototype.oa=function(a){var b=a.a;if(a.type==Ze&&(Nd||lc(a.a))){var c=a.map,d=a.d(),e=a.a.ma?-this.a:this.a;vf(c.a(),c,e,d,250);a.C();b.C()}};function Hf(a){return a.ca&&!a.qb&&a.ma}function If(a){return!a.ca&&!a.qb&&!a.ma}function Jf(a){return!a.ca&&!a.qb&&a.ma};function Kf(){this.e=l;this.p=this.na=this.h=this.g=0;this.Ma=this.f=k}B(Kf,Ff);p=Kf.prototype;p.Ib=ba;p.cb=ba;p.eb=od;p.pc=ba;p.oa=function(a){var b=a.map;if(b.Ha()){var b=b.a(),c=a.a;a.type==bf&&this.pc(a);this.e?a.type==df?(this.d=c.clientX-this.g,this.b=c.clientY-this.h,this.Ib(a)):a.type==af&&(this.d=c.clientX-this.g,this.b=c.clientY-this.h,this.cb(a),this.e=l):a.type==cf&&(this.g=c.clientX,this.h=c.clientY,this.b=this.d=0,this.f=b.M(),this.Ma=a.d(),this.eb(a)&&(this.e=j,a.C()))}};function Lf(a,b){Kf.call(this);this.o=a;this.a=b;this.c=k}B(Lf,Kf);Lf.prototype.Ib=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,Na:pa()});var a=a.map,b=a.a(),c=b.P(),d=b.X(),c=new L(-c*this.d,c*this.b);c.rotate(d);d=new L(this.f.x+c.x,this.f.y+c.y);sf(a);b.a(d)}; Lf.prototype.cb=function(a){var b=a.map,a=b.a();kf(a,-1);if(this.a&&Ef(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.M();this.c=this.a.pa(e);b.c(this.c);e=Mf(b,e);b=We(b,new Ue(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};Lf.prototype.eb=function(a){var b=a.a;if(this.o(b)){if(this.a){var c=this.a;c.a.length=0;c.c=0;c.b=0;this.a.a.push({x:b.clientX,y:b.clientY,Na:pa()})}a=a.map;sf(a);kf(a.a(),1);return j}return l}; Lf.prototype.pc=function(a){var b=a.map,c=b.a();this.c!==k&&Da(b.h,this.c)&&(sf(b),c.a(a.b.u.center),this.c=k)};function Nf(a){Kf.call(this);this.c=a}B(Nf,Kf);Nf.prototype.Ib=function(a){var b=a.map,c=b.f(),a=Xe(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(x(this.a)){var a=c-this.a,d=b.a();sf(b);rf(d,b,d.X()-a)}this.a=c};Nf.prototype.cb=function(a){var a=a.map,b=a.a();b.rotate(a,b.X(),h,250);kf(b,-1)};Nf.prototype.eb=function(a){var b=a.a;return lc(b)&&this.c(b)?(a=a.map,b=a.a(),sf(a),this.a=h,kf(b,1),j):l};function Of(a){var b=Pb("DIV","ol-dragbox");this.c=k;this.e=a.Ma;this.d=k;wf.call(this,{element:b,map:a.map})}B(Of,wf);Of.prototype.a=function(a){this.d!==k&&(I(this.d),this.d=k);a!==k&&(this.c=Mf(a,this.e),Dc(this.element,this.c),Mc(this.element,new Zd(0,0)),this.d=H(a,df,this.f,l,this));Of.v.a.call(this,a)};Of.prototype.f=function(a){var b=this.b,a=a.d(),b=Mf(b,a);Dc(this.element,new Ue(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Mc(this.element,new Zd(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Pf(a){Kf.call(this);this.c=a;this.a=k}B(Pf,Kf);Pf.prototype.cb=function(a){this.a.a(k);this.a=k;if(64<=this.d*this.d+this.b*this.b){var b=a.map,c=ce(this.Ma,a.d());tf(b,function(){var a=b.a(),e=b.f();a.f(c,e);a.d(0)})}};Pf.prototype.eb=function(a){var b=a.a;return lc(b)&&this.c(b)?(this.a=new Of({map:a.map,Ma:this.Ma}),j):l};function Qf(a){this.a=a}B(Qf,Ff);Qf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.va;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.P()*this.a,c=40==c?new L(0,-e):37==c?new L(-e,0):39==c?new L(e,0):new L(0,e),e=d.M();d.a(new L(e.x+c.x,e.y+c.y));b.C();a.C()}}};function Rf(){}B(Rf,Ff);Rf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.$a;if(43==c||45==c){var d=a.map,c=43==c?4:-4;sf(d);vf(d.a(),d,c,h,100);b.C();a.C()}}};function Sf(){this.a=0;this.c=k;this.d=this.b=h}B(Sf,Ff);Sf.prototype.oa=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a;this.c=a.d();this.a+=c.b/3;x(this.b)||(this.b=pa());var d=Math.max(80-(pa()-this.b),0);w.clearTimeout(this.d);this.d=w.setTimeout(na(this.e,this,b),d);a.C();c.C()}};Sf.prototype.e=function(a){var b=Fb(this.a,-1,1),c=a.a();sf(a);vf(c,a,-b,this.c,250);this.a=0;this.c=k;this.d=this.b=h};function Tf(){this.g=l;this.h={};this.targetTouches=[]}B(Tf,Ff);function Uf(a){for(var b=a.length,c=0,d=0,e=0;ethis.o&&(this.a=j));this.c=c;var a=a.map,c=a.a(),d=Ic(a.b),e=Uf(this.targetTouches);e.x-=d.x;e.y-=d.y;d=We(a,e);this.a&&rf(c,a,c.X()+b,d)}; Wf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();this.a&&b.rotate(a,b.X(),h,250);kf(b,-1);return l}return j};Wf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.c=h,this.a=l,this.b=0,kf(a,1),j):l};function Xf(){Tf.call(this)}B(Xf,Tf);Xf.prototype.e=function(a){var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);x(this.a)&&(b=this.a/e);this.a=e;a=a.map;e=a.a();c=Ic(a.b);d=Uf(this.targetTouches);d.x-=c.x;d.y-=c.y;c=We(a,d);uf(e,a,e.P()*b,c)};Xf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();b.zoom(a,b.P(),h,250);kf(b,-1);return l}return j}; Xf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.a=h,kf(a,1),j):l};function Yf(a,b){var c=x(a)?a:{},d=new N;(x(c.rotate)?c.rotate:1)&&d.push(new Nf(Hf));if(x(c.Qd)?c.Qd:1)d.push(new Gf(x(c.le)?c.le:1));(x(c.Wd)?c.Wd:1)&&d.push(new Vf(new Df(-0.005,0.05,100)));(x(c.Xd)?c.Xd:1)&&d.push(new Wf);(x(c.Yd)?c.Yd:1)&&d.push(new Xf);(x(c.Rd)?c.Rd:1)&&d.push(new Lf(If,new Df(-0.005,0.05,100)));var e=x(c.Td)?c.Td:80;if(x(c.Sd)?c.Sd:1)d.push(new Qf(e)),d.push(new Rf);(x(c.Ud)?c.Ud:1)&&d.push(new Sf);(x(c.Vd)?c.Vd:1)&&d.push(new Pf(Jf));if(x(b))for(c=0;cc?a[1]="?":c==f.length-1&&(a[1]=h));return a.join("")};function Gg(a,b){return function(c,d,e){return Fg(a,b,c,d,e)}}function Hg(){};function Ig(a){Se.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Ga=x(a.Ga)?a.Ga:Hg;this.d=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=x(a.resolutions)?a.resolutions:k}B(Ig,Se);function Jg(a,b,c,d,e){var f=k,d=a.Ga(b,d,e);x(d)&&(f=new fg(b,c,d,a.d,a.ka()));return f};function Kg(a){P.call(this,a)}B(Kg,P);function Lg(a){P.call(this,a)}B(Lg,P);function Mg(a,b){sg.call(this,a,b)}B(Mg,sg);function Ng(a,b){sg.call(this,a,b);this.b=k;this.c=ge()}B(Ng,Mg);Ng.prototype.I=function(){return this.b===k?k:gg(this.b,this)};Ng.prototype.xa=m("c"); Ng.prototype.ha=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.a.Y(),g=a.B;!g[0]&&!g[1]&&(b=f.I(a.extent,d,b.projection),b!==k&&(f=b.a,0==f?(tc(b,"change",this.Jb,l,this),hg(b)):2==f&&(this.b=b)));if(this.b!==k){var b=this.b,f=b.H(),g=b.e,i=this.c;ke(i);oe(i,a.size.width/2,a.size.height/2);qe(i,e);pe(i,g/d,g/d);oe(i,(f.i-c.x)/g,(c.y-f.k)/g);wg(a.attributions,b.ka())}};function Og(a,b){sg.call(this,a,b);this.e=this.c=this.d=k;this.f=ge();this.b=k}B(Og,Mg);Og.prototype.I=m("d");Og.prototype.xa=m("f"); Og.prototype.ha=function(a){var b=a.u,c=b.projection,d=this.a.Y(),e=y(d).toString(),f=d.tileGrid;f===k&&(f=pg(c));var g=nf(f.a,b.resolution),i=og(f,g),n=f.a[g],r=kg(f,a.extent,n),s=r.ea(),q=r.aa(),i=new Zd(i.width*s,i.height*q),v,u;this.d===k?(v=Rb("CANVAS"),v.width=i.width,v.height=i.height,u=v.getContext("2d"),this.d=v,this.c=i,this.e=u,this.b=Array(s*q)):(v=this.d,u=this.e,this.c.width==i.width&&this.c.height==i.height||(v.width=i.width,v.height=i.height,this.c=i,this.b=Array(s*q)));q={};q[g]= {};var i=na(d.d,d,q,zg(function(a){return a!==k&&2==a.a},d,f,c)),t,z,E,D;for(E=r.i;E<=r.l;++E)for(D=r.j;D<=r.k;++D)if(z=new re(g,E,D),t=d.b(z,f,c),t!==k){v=t.a;if(0==v)ug(this,t),yg(a.Qa,d,z),v=ng(f,z),xe(a.Vb,t,e,v);else if(2==v){q[g][z.toString()]=t;continue}else if(3==v)continue;f.b(z,i)}e=Aa(Sa(q),Number);Ja(e);v=d.G;var c=de(jg(f,new re(g,r.i,r.k))),U,R,J,Z,V,sa;for(U=0;Uc;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Sg(a,b,c){sg.call(this,a,b);this.target=c}B(Sg,sg);Sg.prototype.r=function(){Vb(this.target);Sg.v.r.call(this)};function Tg(a,b){var c=Rb("DIV");c.className="ol-layer-image";c.style.position="absolute";Sg.call(this,a,b,c);this.b=k;this.c=ie()}B(Tg,Sg); Tg.prototype.ha=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.b,g=this.a.Y(),i=a.B;!i[0]&&!i[1]&&(b=g.I(a.extent,d,b.projection),b!==k&&(g=b.a,0==g?(tc(b,"change",this.Jb,l,this),hg(b)):2==g&&(f=b)));f!==k&&(g=f.H(),i=f.e,b=ge(),ke(b),oe(b,a.size.width/2,a.size.height/2),qe(b,e),pe(b,i/d,i/d),oe(b,(g.i-c.x)/i,(c.y-g.k)/i),f!=this.b&&(c=gg(f,this),c.style.position="absolute",Tb(this.target),this.target.appendChild(c),this.b=f),me(b,this.c)||(Rg(this.target,b),je(this.c,b)),wg(a.attributions, f.ka()))};function Ug(a,b){var c=Rb("DIV");c.className="ol-layer-tile";c.style.position="absolute";Sg.call(this,a,b,c);this.c=j;this.d=1;this.b={}}B(Ug,Sg); Ug.prototype.ha=function(a,b){if(b.visible){var c=a.u,d=c.projection,e=this.a.Y(),f=y(e).toString(),g=e.tileGrid;g===k&&(g=pg(d));var i=nf(g.a,c.resolution),n=kg(g,a.extent,g.a[i]),r={};r[i]={};var s=na(e.d,e,r,zg(function(a){return a!==k&&2==a.a},e,g,d)),q,v,u,t,z;for(t=n.i;t<=n.l;++t)for(z=n.j;z<=n.k;++z)if(u=new re(i,t,z),q=e.b(u,g,d),q!==k){v=q.a;if(0==v)ug(this,q),yg(a.Qa,e,u),v=ng(g,u),xe(a.Vb,q,f,v);else if(2==v){r[i][u.toString()]=q;continue}else if(3==v)continue;g.b(u,s)}s=Aa(Sa(r),Number); Ja(s);var d={},E;for(q=0;qu&&Ub(this.target,f.target)}else{if(!a.B[0]&&!a.B[1]){v=kg(f.d,a.extent,f.d.a[f.c.m]);u=[];z=t=h;for(z in f.b)t=f.b[z],v.contains(t.V)||u.push(t); v=h;for(v=0;v=a.$()){for(var a=this.a,d=0;d>1,a[d].L>c.L)a[b]=a[d],b=d;else break;a[b]=c}p=dh.prototype; p.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ca(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a>1;){var f=2*a+1,g=2*a+2,f=ge.L)break;b[a]=b[f];a=f}b[a]=e}return c.Z}};p.N=function(){for(var a=this.a,b=[],c=a.length,d=0;dc;++c)d=b.remove(),lh(a,d)},b,u));R?(this.b=q,this.w=v):(this.w=this.b=k,a.R=j)}xg(a.Pa,g,r,q);rg(g,r,a.extent,n);vg(a,g);ke(this.d); oe(this.d,(d.center.x-v.i)/(v.l-v.i),(d.center.y-v.j)/(v.k-v.j));qe(this.d,d.rotation);pe(this.d,a.size.width*d.resolution/(v.l-v.i),a.size.height*d.resolution/(v.k-v.j));oe(this.d,-0.5,-0.5)};function mh(){this.n=0;this.c={};this.b=this.a=k}p=mh.prototype;p.clear=function(){this.n=0;this.c={};this.b=this.a=k};function kh(a,b){return a.c.hasOwnProperty(b)}p.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.Z,c.L,this),c=c.U};function nh(a,b){var c=a.c[b];if(c===a.b)return c.Z;c===a.a?(a.a=a.a.U,a.a.ia=k):(c.U.ia=c.ia,c.ia.U=c.U);c.U=k;c.ia=a.b;a.b.U=c;a.b=c;return c.Z}p.$=m("n");p.W=function(){var a=Array(this.n),b=0,c;for(c=this.b;c!==k;c=c.ia)a[b++]=c.L;return a}; p.N=function(){var a=Array(this.n),b=0,c;for(c=this.b;c!==k;c=c.ia)a[b++]=c.Z;return a};function oh(a){var b=a.a;delete a.c[b.L];b.U!==k&&(b.U.ia=k);a.a=b.U;a.a===k&&(a.b=k);--a.n}function ph(a,b,c){c={L:b,U:k,ia:a.b,Z:c};a.b===k?a.a=c:a.b.U=c;a.b=c;a.c[b]=c;++a.n};var qh=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function rh(a,b){var c,d,e=qh.length;for(d=0;d>1)-1;0<=b;b--)ze(a,b);for(a=this.J;0b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=ce.apply(k,c)}this.e=f;this.G.ob(f);this.p=l;f!==k&&(f.R&&sf(this),Array.prototype.push.apply(this.yb, f.wa));K(this,new Te("postrender",this,f));w.setTimeout(this.Pc,0)}};p.ae=function(a){this.q("backgroundColor",a)};S.prototype.setBackgroundColor=S.prototype.ae;S.prototype.Rc=function(a){this.q(Bg,a)};S.prototype.setLayers=S.prototype.Rc;S.prototype.Ra=function(a){this.q("size",a)};S.prototype.setSize=S.prototype.Ra;S.prototype.Sc=function(a){this.q("view",a)};S.prototype.setView=S.prototype.Sc;function tf(a,b,c){++a.g;try{b.call(c)}finally{0===--a.g&&a.p&&(a=a.d,sd(a),a.Gb())}} yh.Yc=function(a){var b=w.location.search.substring(1),a=x(a)?a:new Zc(b);return kd(a,"renderers")?ld(a,"renderers").split(","):kd(a,"renderer")?[ld(a,"renderer")]:Ah};Ke(bg);Ke(eg);function Bh(a,b,c){var d=a.length,c=1this.d&&!(b=this.a.Z,c=b.V.m.toString(),c in a&&a[c].contains(b.V));)oh(this)};function ui(a){qg.call(this,{attributions:a.attributions,extent:a.extent,opaque:a.opaque,projection:a.projection,tileGrid:a.tileGrid});this.da=x(a.da)?a.da:qi;this.F=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new ti}B(ui,qg);ui.prototype.f=function(){return this.a.$()>this.a.d};ui.prototype.Ca=function(a){this.a.Ca(a)};ui.prototype.b=function(a,b,c){var d=a.toString();if(kh(this.a,d))return nh(this.a,d);b=this.da(a,b,c);x(b)?(a=new si(a,b,this.F),ph(this.a,d,a)):a=k;return a}; ui.prototype.p=function(a){a=a.toString();kh(this.a,a)&&nh(this.a,a)};function vi(a){var b=Array(a.maxZoom+1),c,d=2*ag/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);ig.call(this,{origin:new L(-ag,ag),resolutions:b,tileSize:new Zd(256,256)})}B(vi,ig);vi.prototype.b=function(a,b,c){for(var d=a.x,e=a.y,a=a.m,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new te(d,e,d,e);if(b.call(c,a,f))break}};function wi(a){ui.call(this,{opaque:j,projection:Pe("EPSG:3857")});this.Zc=x(a.culture)?a.culture:"en-us";this.g=l;var b=new Uc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new ki(b),a={include:"ImageryProviders",key:a.key},c=na(this.t,this),a=a||k,d="_"+(li++).toString(36)+pa().toString(36);w._callbacks_||(w._callbacks_={});var e=b.b.S();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&hd(e,f,a[f]);c&&(w._callbacks_[d]=function(a){mi(d,j);c.apply(h,arguments)},hd(e, b.a,"_callbacks_."+d));f=ei(e.toString(),{timeout:b.vb,dc:j});f.a.push([k,function(){mi(d,l)},h]);f.ja&&ai(f)}B(wi,ui); wi.prototype.t=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new vi({maxZoom:d,tileSize:new Zd(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.da=ri(function(a){if(a.me||b<=e?k:new re(a.m,Gb(a.x,b),e)},oi(Aa(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.Zc);return function(a){return a===k?h:c.replace("{quadkey}",se(a))}})));var f=Fe(Pe("EPSG:4326"),this.o);this.e= Aa(b.imageryProviders,function(a){var b=a.attribution,c={};C(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new be(a[1],a[0],a[3],a[2])).transform(f),g,i;for(g=b;g<=d;++g)i=g.toString(),b=kg(e,a,e.a[g]),i in c?c[i].push(b):c[i]=[b]});return new ue(b,c)});this.g=j;K(this,"load")};wi.prototype.c=m("g");function xi(a,b){ve.call(this,a);this.a=2;this.f=a;this.d=og(b,a.m);this.c={}}B(xi,ve);xi.prototype.I=function(a){a=x(a)?y(a):-1;if(a in this.c)return this.c[a];var b=this.d,c=Rb("CANVAS");c.width=b.width;c.height=b.height;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b.width+0.5,b.height+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.f.toString(),b.width/2,b.height/2);return this.c[a]=c}; function yi(a){qg.call(this,{extent:a.extent,opaque:l,projection:a.projection,tileGrid:a.tileGrid});this.a=new ti}B(yi,qg);yi.prototype.f=function(){return this.a.$()>this.a.d};yi.prototype.Ca=function(a){this.a.Ca(a)};yi.prototype.b=function(a){var b=a.toString();if(kh(this.a,b))return nh(this.a,b);a=new xi(a,this.tileGrid);ph(this.a,b,a);return a};function zi(a){var b=a.projection||Pe("EPSG:3857"),c=qi;x(a.da)?c=a.da:x(a.urls)?c=oi(Aa(a.urls,ni)):x(a.url)&&(c=ni(a.url));var d=new vi({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?ri(function(b){if(a.maxZoomi||c<=i)return k;c=Gb(b.x,c);return!ae(jg(d,new re(b.m,c,b.y)),e)?k:new re(b.m,c,i)},c):ri(function(b){if(a.maxZoomd||c<=d?k:new re(b.m,Gb(b.x,c),d)},c);ui.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin, extent:a.extent,projection:b,tileGrid:d,da:c})}B(zi,ui);function Ai(){zi.call(this,{attributions:[new ue('Tiles Courtesy of MapQuest '),new ue('Data © OpenStreetMap contributors, CC BY-SA')],opaque:j,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(Ai,zi); function Bi(){zi.call(this,{attributions:[new ue('Tiles Courtesy of MapQuest '),new ue("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,opaque:j,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(Bi,zi);function Ci(){zi.call(this,{attributions:[new ue('© OpenStreetMap contributors, CC BY-SA')],opaque:j,maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(Ci,zi);function Di(a){Ig.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,Ga:x(a.url)?Gg(a.url,a.params):Hg});this.b=k;this.f=1.5}B(Di,Ig); Di.prototype.I=function(a,b,c){this.a===k||(b=this.a[nf(this.a,b)]);var d=this.b,e;if(e=d!==k)if(e=d.e==b)e=d.H(),e=e.i<=a.i&&a.l<=e.l&&e.j<=a.j&&a.k<=e.k;if(e)return d;var d=a=new be(a.i,a.j,a.l,a.k),f=this.f;e=d.ea()/2*(f-1);f=d.aa()/2*(f-1);d.i-=e;d.j-=f;d.l+=e;d.k+=f;return this.b=Jg(this,a,b,new Zd(a.ea()/b,a.aa()/b),c)};var Ei={terrain:{T:"jpg",opaque:j},"terrain-background":{T:"jpg",opaque:j},"terrain-labels":{T:"png",opaque:l},"terrain-lines":{T:"png",opaque:l},"toner-background":{T:"png",opaque:j},toner:{T:"png",opaque:j},"toner-hybrid":{T:"png",opaque:l},"toner-labels":{T:"png",opaque:l},"toner-lines":{T:"png",opaque:l},"toner-lite":{T:"png",opaque:j},watercolor:{T:"jpg",opaque:j}},Fi={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}}; function Gi(a){var b=new ue('Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.'),c=a.layer.indexOf("-"),c=-1==c?a.layer:a.layer.slice(0,c),d=Ei[a.layer];zi.call(this,{attributions:[b],maxZoom:Fi[c].maxZoom,opaque:d.opaque,url:x(a.url)?a.url:"http://{a-d}.tile.stamen.com/"+a.layer+ "/{z}/{x}/{y}."+d.T})}B(Gi,zi);function Hi(a){var b=a.imageExtent,c=a.imageSize,d=b.aa()/c.height,e=x(a.projection)?a.projection:k,f=a.url;Ig.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Ga:function(){return f},resolutions:[d]});this.b=Jg(this,b,d,c,e)}B(Hi,Ig);Hi.prototype.I=function(a){return ae(a,this.b.H())?this.b:k};var Ii=[];A("grid",function(a){Ii.push(a)});function Ji(a){ui.call(this,{projection:Pe("EPSG:3857")});this.g=l;a=this.t=ei(a.uri,{dc:j});a.a.push([this.w,k,this]);a.ja&&ai(a)}B(Ji,ui); Ji.prototype.w=function(){var a=Ii.pop(),b=Pe("EPSG:4326"),c,d;x(a.bounds)?(c=a.bounds,c=new be(c[0],c[1],c[2],c[3]),this.h=d=c.transform(Fe(b,this.o))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new vi({maxZoom:f});this.tileGrid=g;this.da=ri(function(a){if(a.mc||b<=c)return k;b=Gb(a.x,b);return d!==k&&!ae(jg(g,new re(a.m,b,a.y)),d)?k:new re(a.m,b,c)},oi(Aa(a.tiles,ni)));if(x(a.attribution)){b=d===k?b.H():d;c={};var i,n;for(i=e;i<=f;++i)n=i.toString(), c[n]=[kg(g,b,g.a[i])];this.e=[new ue(a.attribution,c)]}this.g=j;K(this,"load")};Ji.prototype.c=m("g");function Ki(a){var b;a.urls?(b=Aa(a.urls,function(b){return pi(b,a.params)}),b=oi(b)):b=a.url?pi(a.url,a.params):qi;var c=a.extent;ui.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c,tileGrid:a.tileGrid,opaque:!(x(a.params.TRANSPARENT)?a.params.TRANSPARENT:1),projection:a.projection,da:ri(function(a,b,f){if(b.Fb().length<=a.m)return k;var g=a.x,i=jg(b,a),f=f.H();c=x(c)?c:f;c.i===f.i&&c.l===f.l&&(i=Math.ceil((c.l-c.i)/(i.l-i.i)),g=Gb(g,i),i=jg(b,new re(a.m,g,a.y)));return!ae(i, c)?k:new re(a.m,g,a.y)},b)})}B(Ki,ui);A("goog.require",ba);function Li(a){T.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}B(Li,T);A("ol.AnchoredElement",Li);A("ol.AnchoredElementPositioning",Dh);Dh.BOTTOM_LEFT="bottom-left";Dh.BOTTOM_RIGHT="bottom-right";Dh.TOP_LEFT="top-left";Dh.TOP_RIGHT="top-right";A("ol.Attribution",ue);A("ol.Collection",N);N.prototype.clear=N.prototype.clear;N.prototype.forEach=N.prototype.forEach;N.prototype.getAt=N.prototype.bd;N.prototype.getLength=N.prototype.Za; N.prototype.insertAt=N.prototype.fb;N.prototype.pop=N.prototype.wc;N.prototype.push=N.prototype.push;N.prototype.remove=N.prototype.remove;N.prototype.removeAt=N.prototype.Rb;N.prototype.setAt=N.prototype.$d;A("ol.Coordinate",L);L.toStringHDMS=function(a){return x(a)?Rc(a.y,"NS")+" "+Rc(a.x,"EW"):""};A("ol.Extent",be);be.prototype.getHeight=be.prototype.aa;be.prototype.getWidth=be.prototype.ea;A("ol.Geolocation",X); function Mi(a){S.call(this,{controls:a.controls,interactions:a.interactions,layers:a.layers,renderer:a.renderer,renderers:a.renderers,target:a.target,view:a.view})}B(Mi,S);A("ol.Map",Mi);S.prototype.addPreRenderFunction=S.prototype.c;S.prototype.addPreRenderFunctions=S.prototype.Ab;S.prototype.getInteractions=S.prototype.Mc;S.prototype.getRenderer=S.prototype.Oc;Ve.prototype.getCoordinate=Ve.prototype.d;A("ol.Object",M);M.prototype.bindTo=M.prototype.Uc;M.prototype.changed=M.prototype.Xc; M.prototype.get=M.prototype.s;M.prototype.notify=M.prototype.vc;M.prototype.set=M.prototype.q;M.prototype.setOptions=M.prototype.Ec;M.prototype.setValues=M.prototype.nb;M.prototype.unbind=M.prototype.Wb;M.prototype.unbindAll=M.prototype.je;A("ol.Projection",O);O.prototype.getAxisOrientation=O.prototype.g;O.prototype.getCode=O.prototype.h;O.prototype.getExtent=O.prototype.H;O.prototype.getPointResolution=O.prototype.b;O.prototype.getUnits=O.prototype.o;A("ol.ProjectionUnits",De);De.DEGREES="degrees"; De.METERS="m";A("ol.RendererHint",zh);zh.CANVAS="canvas";zh.DOM="dom";zh.WEBGL="webgl";A("ol.RendererHints",yh);yh.createFromQueryData=yh.Yc;function Ni(a){Q.call(this,{center:a.center,maxResolution:a.maxResolution,numZoomLevels:a.numZoomLevels,projection:a.projection,resolution:a.resolution,resolutions:a.resolutions,rotation:a.rotation,zoom:a.zoom,zoomFactor:a.zoomFactor})}B(Ni,Q);A("ol.View2D",Ni);Q.prototype.fitExtent=Q.prototype.f;Q.prototype.getView2D=Q.prototype.g;A("ol.animation",qf); qf.bounce=qf.Cb;qf.pan=qf.pa;qf.rotate=qf.rotate;qf.zoom=qf.zoom;function Oi(a){xf.call(this,{map:a.map,target:a.target})}B(Oi,xf);A("ol.control.Attribution",Oi);xf.prototype.setMap=xf.prototype.a;function Pi(a){Gh.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}B(Pi,Gh);A("ol.control.MousePosition",Pi);Gh.prototype.setMap=Gh.prototype.a; function Qi(a){zf.call(this,{map:a.map,minWidth:a.minWidth,target:a.target,units:a.units})}B(Qi,zf);A("ol.control.ScaleLine",Qi);zf.prototype.setMap=zf.prototype.a;A("ol.control.ScaleLineUnits",yf);yf.DEGREES="degrees";yf.IMPERIAL="imperial";yf.METRIC="metric";yf.NAUTICAL="nautical";yf.US="us";function Ri(a){Bf.call(this,{delta:a.delta,map:a.map,target:a.target})}B(Ri,Bf);A("ol.control.Zoom",Ri);Bf.prototype.setMap=Bf.prototype.a;A("ol.control.defaults",Cf);A("ol.easing",pf);pf.bounce=pf.Cb; pf.elastic=pf.$c;pf.linear=pf.rc;pf.upAndDown=pf.Jc;A("ol.interaction.Keyboard",Ih);Ih.prototype.addCallback=Ih.prototype.b;A("ol.interaction.defaults",Yf);function Si(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Si,Kg);A("ol.layer.ImageLayer",Si); function Ti(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Ti,Lg);A("ol.layer.TileLayer",Ti);A("ol.parser.ogc.WMSCapabilities",Uh);Uh.prototype.read=Uh.prototype.ra;A("ol.parser.ogc.WMTSCapabilities",Yh);Yh.prototype.read=Yh.prototype.ra;A("ol.projection.addProjection",Le);A("ol.projection.getFromCode",Pe);A("ol.projection.getTransform",Fe);A("ol.projection.getTransformFromCodes",Re); A("ol.projection.transform",function(a,b,c){b=Fe(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});A("ol.projection.transformWithCodes",function(a,b,c){b=Re(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});Pg.prototype.getCanvas=Pg.prototype.Xa;A("ol.source.BingMaps",wi);function Ui(a){yi.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}B(Ui,yi);A("ol.source.DebugTileSource",Ui);A("ol.source.MapQuestOSM",Ai);A("ol.source.MapQuestOpenAerial",Bi); A("ol.source.OpenStreetMap",Ci);A("ol.source.SingleImageWMS",Di);A("ol.source.Stamen",Gi);A("ol.source.StaticImage",Hi);A("ol.source.TileJSON",Ji);A("ol.source.TiledWMS",Ki);function Vi(a){ig.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}B(Vi,ig);A("ol.tilegrid.TileGrid",Vi);function Wi(a){vi.call(this,{maxZoom:a.maxZoom})}B(Wi,vi);A("ol.tilegrid.XYZ",Wi);qf.oe={};qf.Fe={};qf.Ge={};qf.Pe={};})();