// OpenLayers 3. See http://openlayers.org/ // License: https://raw.githubusercontent.com/openlayers/ol3/master/LICENSE.md // Version: v3.8.2 (function (root, factory) { if (typeof exports === "object") { module.exports = factory(); } else if (typeof define === "function" && define.amd) { define([], factory); } else { root.ol = factory(); } }(this, function () { var OPENLAYERS = {}; var l,aa=aa||{},ba=this;function m(b){return void 0!==b}function u(b,c,d){b=b.split(".");d=d||ba;b[0]in d||!d.execScript||d.execScript("var "+b[0]);for(var e;b.length&&(e=b.shift());)!b.length&&m(c)?d[e]=c:d[e]?d=d[e]:d=d[e]={}}function ca(){}function da(b){b.Pa=function(){return b.Dg?b.Dg:b.Dg=new b}} function ea(b){var c=typeof b;if("object"==c)if(b){if(b instanceof Array)return"array";if(b instanceof Object)return c;var d=Object.prototype.toString.call(b);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof b.length&&"undefined"!=typeof b.splice&&"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof b.call&&"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==c&&"undefined"==typeof b.call)return"object";return c}function fa(b){return null===b}function ga(b){return"array"==ea(b)}function ha(b){var c=ea(b);return"array"==c||"object"==c&&"number"==typeof b.length}function ia(b){return"string"==typeof b}function ja(b){return"number"==typeof b}function ka(b){return"function"==ea(b)}function la(b){var c=typeof b;return"object"==c&&null!=b||"function"==c}function ma(b){return b[na]||(b[na]=++oa)} var na="closure_uid_"+(1E9*Math.random()>>>0),oa=0;function pa(b,c,d){return b.call.apply(b.bind,arguments)}function qa(b,c,d){if(!b)throw Error();if(2")&&(b=b.replace(Ha,">"));-1!=b.indexOf('"')&&(b=b.replace(Ja,"""));-1!=b.indexOf("'")&&(b=b.replace(Ka,"'"));-1!=b.indexOf("\x00")&&(b=b.replace(La,"�"));return b}var Fa=/&/g,Ga=//g,Ja=/"/g,Ka=/'/g,La=/\x00/g,Ea=/[\x00&<>"']/; function Ma(b){b=m(void 0)?b.toFixed(void 0):String(b);var c=b.indexOf(".");-1==c&&(c=b.length);c=Math.max(0,2-c);return Array(c+1).join("0")+b} function Na(b,c){for(var d=0,e=Ca(String(b)).split("."),f=Ca(String(c)).split("."),g=Math.max(e.length,f.length),h=0;0==d&&hc?1:0};var Qa=Array.prototype;function Ra(b,c){return Qa.indexOf.call(b,c,void 0)}function Sa(b,c,d){Qa.forEach.call(b,c,d)}function Ta(b,c){return Qa.filter.call(b,c,void 0)}function Ua(b,c,d){return Qa.map.call(b,c,d)}function Va(b,c){return Qa.some.call(b,c,void 0)}function Wa(b,c){var d=Xa(b,c,void 0);return 0>d?null:ia(b)?b.charAt(d):b[d]}function Xa(b,c,d){for(var e=b.length,f=ia(b)?b.split(""):b,g=0;g=arguments.length?Qa.slice.call(b,c):Qa.slice.call(b,c,d)}function gb(b,c){b.sort(c||hb)}function ib(b,c){if(!ha(b)||!ha(c)||b.length!=c.length)return!1;for(var d=b.length,e=jb,f=0;fc?1:bparseFloat(b))?String(c):b}(),Rb={};function Sb(b){return Rb[b]||(Rb[b]=0<=Na(Qb,b))}var Tb=ba.document,Ub=Tb&&Jb?Pb()||("CSS1Compat"==Tb.compatMode?parseInt(Qb,10):5):void 0;var Vb=Jb&&!Sb("9.0")&&""!==Qb;function Wb(b,c,d){return Math.min(Math.max(b,c),d)}function Xb(b,c){var d=b%c;return 0>d*c?d+c:d}function Yb(b,c,d){return b+d*(c-b)}function Zb(b){return b*Math.PI/180};function $b(b){return function(c){if(m(c))return[Wb(c[0],b[0],b[2]),Wb(c[1],b[1],b[3])]}}function ac(b){return b};function bc(b,c,d){var e=b.length;if(b[0]<=c)return 0;if(!(c<=b[e-1]))if(0d)for(d=1;dg?1:.5,e=Math.floor(Math.log(c/e)/Math.log(b)+g),f=Math.max(e+f,0),m(d)&&(f=Math.min(f,d)),c/Math.pow(b,f)}};function ec(b){if(m(b))return 0}function fc(b,c){if(m(b))return b+c}function gc(b){var c=2*Math.PI/b;return function(b,e){if(m(b))return b=Math.floor((b+e)/c+.5)*c}}function hc(){var b=Zb(5);return function(c,d){if(m(c))return Math.abs(c+d)<=b?0:c+d}};function ic(b,c,d){this.center=b;this.resolution=c;this.rotation=d};var jc=!Jb||Jb&&9<=Ub,kc=!Jb||Jb&&9<=Ub,mc=Jb&&!Sb("9");!Lb||Sb("528");Kb&&Sb("1.9b")||Jb&&Sb("8")||Ib&&Sb("9.5")||Lb&&Sb("528");Kb&&!Sb("8")||Jb&&Sb("9");function nc(){0!=oc&&(pc[ma(this)]=this);this.fa=this.fa;this.da=this.da}var oc=0,pc={};nc.prototype.fa=!1;nc.prototype.jd=function(){if(!this.fa&&(this.fa=!0,this.X(),0!=oc)){var b=ma(this);delete pc[b]}};function qc(b,c){var d=sa(rc,c);b.fa?d.call(void 0):(b.da||(b.da=[]),b.da.push(m(void 0)?ra(d,void 0):d))}nc.prototype.X=function(){if(this.da)for(;this.da.length;)this.da.shift()()};function rc(b){b&&"function"==typeof b.jd&&b.jd()};function sc(b,c){this.type=b;this.c=this.target=c;this.i=!1;this.Dh=!0}sc.prototype.ob=function(){this.i=!0};sc.prototype.preventDefault=function(){this.Dh=!1};function tc(b){b.ob()}function uc(b){b.preventDefault()};var vc=Jb?"focusout":"DOMFocusOut";function wc(b){wc[" "](b);return b}wc[" "]=ca;function xc(b,c){sc.call(this,b?b.type:"");this.relatedTarget=this.c=this.target=null;this.B=this.g=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.v=this.f=this.b=this.l=!1;this.state=null;this.j=!1;this.a=null;b&&yc(this,b,c)}w(xc,sc);var zc=[1,4,2]; function yc(b,c,d){b.a=c;var e=b.type=c.type;b.target=c.target||c.srcElement;b.c=d;if(d=c.relatedTarget){if(Kb){var f;a:{try{wc(d.nodeName);f=!0;break a}catch(g){}f=!1}f||(d=null)}}else"mouseover"==e?d=c.fromElement:"mouseout"==e&&(d=c.toElement);b.relatedTarget=d;Object.defineProperties?Object.defineProperties(b,{offsetX:{configurable:!0,enumerable:!0,get:b.sg,set:b.to},offsetY:{configurable:!0,enumerable:!0,get:b.tg,set:b.uo}}):(b.offsetX=b.sg(),b.offsetY=b.tg());b.clientX=void 0!==c.clientX?c.clientX: c.pageX;b.clientY=void 0!==c.clientY?c.clientY:c.pageY;b.screenX=c.screenX||0;b.screenY=c.screenY||0;b.button=c.button;b.g=c.keyCode||0;b.B=c.charCode||("keypress"==e?c.keyCode:0);b.l=c.ctrlKey;b.b=c.altKey;b.f=c.shiftKey;b.v=c.metaKey;b.j=Mb?c.metaKey:c.ctrlKey;b.state=c.state;c.defaultPrevented&&b.preventDefault()}function Ac(b){return(jc?0==b.a.button:"click"==b.type?!0:!!(b.a.button&zc[0]))&&!(Lb&&Mb&&b.l)}l=xc.prototype; l.ob=function(){xc.aa.ob.call(this);this.a.stopPropagation?this.a.stopPropagation():this.a.cancelBubble=!0};l.preventDefault=function(){xc.aa.preventDefault.call(this);var b=this.a;if(b.preventDefault)b.preventDefault();else if(b.returnValue=!1,mc)try{if(b.ctrlKey||112<=b.keyCode&&123>=b.keyCode)b.keyCode=-1}catch(c){}};l.ij=function(){return this.a};l.sg=function(){return Lb||void 0!==this.a.offsetX?this.a.offsetX:this.a.layerX}; l.to=function(b){Object.defineProperties(this,{offsetX:{writable:!0,enumerable:!0,configurable:!0,value:b}})};l.tg=function(){return Lb||void 0!==this.a.offsetY?this.a.offsetY:this.a.layerY};l.uo=function(b){Object.defineProperties(this,{offsetY:{writable:!0,enumerable:!0,configurable:!0,value:b}})};var Bc="closure_listenable_"+(1E6*Math.random()|0);function Cc(b){return!(!b||!b[Bc])}var Dc=0;function Ec(b,c,d,e,f){this.listener=b;this.a=null;this.src=c;this.type=d;this.ad=!!e;this.ee=f;this.key=++Dc;this.Rc=this.Ld=!1}function Fc(b){b.Rc=!0;b.listener=null;b.a=null;b.src=null;b.ee=null};function Gc(b){this.src=b;this.a={};this.b=0}Gc.prototype.add=function(b,c,d,e,f){var g=b.toString();b=this.a[g];b||(b=this.a[g]=[],this.b++);var h=Ic(b,c,e,f);-1f.keyCode||void 0!=f.returnValue)){a:{var g=!1;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(h){g=!0}if(g||void 0==f.returnValue)f.returnValue=!0}f=[];for(g=d.c;g;g=g.parentNode)f.push(g);for(var g=b.type,k=f.length-1;!d.i&&0<=k;k--){d.c=f[k];var n=Yc(f[k],g,!0,d),e=e&&n}for(k=0;!d.i&&k>>0);function Pc(b){if(ka(b))return b;b[$c]||(b[$c]=function(c){return b.handleEvent(c)});return b[$c]};function ad(){nc.call(this);this.jb=new Gc(this);this.Hd=this;this.Ma=null}w(ad,nc);ad.prototype[Bc]=!0;l=ad.prototype;l.addEventListener=function(b,c,d,e){x(this,b,c,d,e)};l.removeEventListener=function(b,c,d,e){Wc(this,b,c,d,e)}; function C(b,c){var d,e=b.Ma;if(e)for(d=[];e;e=e.Ma)d.push(e);var e=b.Hd,f=c,g=f.type||f;if(ia(f))f=new sc(f,e);else if(f instanceof sc)f.target=f.target||e;else{var h=f,f=new sc(g,e);Gb(f,h)}var h=!0,k;if(d)for(var n=d.length-1;!f.i&&0<=n;n--)k=f.c=d[n],h=bd(k,g,!0,f)&&h;f.i||(k=f.c=e,h=bd(k,g,!0,f)&&h,f.i||(h=bd(k,g,!1,f)&&h));if(d)for(n=0;!f.i&&n=d||(1<=d?(h=k,f=g):(h+=d*n,f+=d*p));return[h,f]}function pd(b,c){var d=Xb(b+180,360)-180,e=Math.abs(Math.round(3600*d));return Math.floor(e/3600)+"\u00b0 "+Ma(Math.floor(e/60%60))+"\u2032 "+Ma(Math.floor(e%60))+"\u2033 "+c.charAt(0>d?1:0)} function qd(b,c,d){return m(b)?c.replace("{x}",b[0].toFixed(d)).replace("{y}",b[1].toFixed(d)):""}function rd(b,c){for(var d=!0,e=b.length-1;0<=e;--e)if(b[e]!=c[e]){d=!1;break}return d}function sd(b,c){var d=Math.cos(c),e=Math.sin(c),f=b[1]*d+b[0]*e;b[0]=b[0]*d-b[1]*e;b[1]=f;return b}function td(b,c){var d=b[0]-c[0],e=b[1]-c[1];return d*d+e*e}function ud(b,c){return td(b,od(b,c))}function vd(b,c){return qd(b,"{x}, {y}",c)};function wd(b){this.length=b.length||b;for(var c=0;ce&&(k=k|4);hf&&(k|=2);0===k&&(k=1);return k}function Ld(){return[Infinity,Infinity,-Infinity,-Infinity]} function Od(b,c,d,e,f){return m(f)?(f[0]=b,f[1]=c,f[2]=d,f[3]=e,f):[b,c,d,e]}function Wd(b,c){var d=b[0],e=b[1];return Od(d,e,d,e,c)}function Xd(b,c){return b[0]==c[0]&&b[2]==c[2]&&b[1]==c[1]&&b[3]==c[3]}function Yd(b,c){c[0]b[2]&&(b[2]=c[2]);c[1]b[3]&&(b[3]=c[3]);return b}function Md(b,c){c[0]b[2]&&(b[2]=c[0]);c[1]b[3]&&(b[3]=c[1])} function Zd(b,c,d,e,f){for(;dg;++g)h=f[g],k=e[g],f[g]=b[0]+h*c-k*d,e[g]=b[1]+h*d+k*c;return Nd(f,e,void 0)}function ge(b){return b[3]-b[1]}function he(b,c,d){d=m(d)?d:Ld();ie(b,c)&&(d[0]=b[0]>c[0]?b[0]:c[0],d[1]=b[1]>c[1]?b[1]:c[1],d[2]=b[2]=c[0]&&b[1]<=c[3]&&b[3]>=c[1]}function ke(b){return b[2]b||0!==this.i&&b<=this.i)return this;var c=b.toString();if(this.g.hasOwnProperty(c))return this.g[c];var d=this.Gc(b);if(d.o.lengthf&&(f=g);g=k;h=n}return f}function jf(b,c,d,e,f){var g,h;g=0;for(h=d.length;gk){for(;cv&&(p=q,v=y)}v>f&&(n[(p-c)/e]=1,t+eS&&PaS)&&(0>ta&&Rta)||(z[h++]=y,z[h++]=J,E=y,A=J);y=L;J=H}}z[h++]=y;z[h++]=J}}k.push(h);c=q}return h};function tf(b,c){Ze.call(this);this.c=this.j=-1;this.ja(b,c)}w(tf,Ze);l=tf.prototype;l.clone=function(){var b=new tf(null);uf(b,this.b,this.o.slice());return b};l.Ya=function(b,c,d,e){if(eg!=q>g&&f<(p-k)*(g-n)/(q-n)+k&&(h=!h);k=p;n=q}return h}function yf(b,c,d,e,f,g){if(0===d.length||!xf(b,c,d[0],e,f,g))return!1;var h;c=1;for(h=d.length;cr&&(p=(p+q)/2,yf(b,c,d,e,p,t)&&(B=p,r=z));p=q}isNaN(B)&&(B=f[g]);return m(h)?(h.push(B,t),h):[B,t]};function Af(b,c,d,e,f,g){for(var h=[b[c],b[c+1]],k=[],n;c+e=f[0]&&g[2]<=f[2]||g[1]>=f[1]&&g[3]<=f[3]?!0:Af(b,c,d,e,function(b,c){var d=!1,e=Vd(f,b),g=Vd(f,c);if(1===e||1===g)d=!0;else{var r=f[0],t=f[1],v=f[2],B=f[3],z=c[0],E=c[1],A=(E-b[1])/(z-b[0]);g&2&&!(e&2)&&(d=z-(E-B)/A,d=d>=r&&d<=v);d||!(g&4)||e&4||(d=E-(z-v)*A,d=d>=t&&d<=B);d||!(g&8)||e&8||(d=z-(E-t)/A,d=d>=r&&d<=v);d||!(g&16)||e&16||(d=E-(z-r)*A,d=d>=t&&d<=B)}return d}):!1} function Cf(b,c,d,e,f){var g=d[0];if(!(Bf(b,c,g,e,f)||xf(b,c,g,e,f[0],f[1])||xf(b,c,g,e,f[0],f[3])||xf(b,c,g,e,f[2],f[1])||xf(b,c,g,e,f[2],f[3])))return!1;if(1===d.length)return!0;c=1;for(g=d.length;cb||this.c.length<=b)return null;var c=new tf(null);uf(c,this.b,this.o.slice(0===b?0:this.c[b-1],this.c[b]));return c};l.Ud=function(){var b=this.b,c=this.o,d=this.c,e=[],f=0,g,h;g=0;for(h=d.length;gthis.j)}return m(b)?this.f+b:b}; l.af=function(b,c,d){b instanceof Ze||(b=Lf(b));var e=m(d)?d:{};d=m(e.padding)?e.padding:[0,0,0,0];var f=m(e.constrainResolution)?e.constrainResolution:!0,g=m(e.nearest)?e.nearest:!1,h;m(e.minResolution)?h=e.minResolution:m(e.maxZoom)?h=this.constrainResolution(this.b,e.maxZoom-this.f,0):h=0;var k=b.o,n=this.Ea(),e=Math.cos(-n),n=Math.sin(-n),p=Infinity,q=Infinity,r=-Infinity,t=-Infinity;b=b.H;for(var v=0,B=k.length;vb?Wf(2*b):1-Wf(2*(b-.5))};function Zf(b){var c=b.source,d=m(b.start)?b.start:ua(),e=c[0],f=c[1],g=m(b.duration)?b.duration:1E3,h=m(b.easing)?b.easing:Wf;return function(b,c){if(c.time>=1;return d.join("")}function eg(b){return cg(b[0],b[1],b[2])}function fg(b,c,d){var e=b[0],f=gg(c,b);d=hg(d);if(Sd(d,f))return b;b=je(d);d=Math.ceil((d[0]-f[0])/b);f[0]+=b*d;return c.Zd(f,e)} function ig(b,c){var d=b[0],e=b[1],f=b[2];if(c.minZoom>d||d>c.maxZoom)return!1;var g=c.R(),d=null===g?null===c.b?null:c.b[d]:jg(c,g,d);return null===d?!0:kg(d,e,f)};function lg(b,c,d,e){this.a=b;this.f=c;this.b=d;this.c=e}lg.prototype.contains=function(b){return kg(this,b[1],b[2])};function kg(b,c,d){return b.a<=c&&c<=b.f&&b.b<=d&&d<=b.c}function mg(b,c){return b.a==c.a&&b.b==c.b&&b.f==c.f&&b.c==c.c}function ng(b){return b.f-b.a+1}function og(b,c){return b.a<=c.f&&b.f>=c.a&&b.b<=c.c&&b.c>=c.b};function pg(b){this.b=b.html;this.a=m(b.tileRanges)?b.tileRanges:null}pg.prototype.c=function(){return this.b};function qg(b,c,d){sc.call(this,b,d);this.element=c}w(qg,sc);function rg(b){gd.call(this);this.b=m(b)?b:[];sg(this)}w(rg,gd);l=rg.prototype;l.clear=function(){for(;0");g=g.join("")}g=f.createElement(g);h&&(ia(h)?g.className=h:ga(h)?g.className=h.join(" "):Jg(g,h));2=this.left&&b.right<=this.right&&b.top>=this.top&&b.bottom<=this.bottom:b.x>=this.left&&b.x<=this.right&&b.y>=this.top&&b.y<=this.bottom:!1}; l.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};l.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};l.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; l.scale=function(b,c){var d=ja(c)?c:b;this.left*=b;this.right*=b;this.top*=d;this.bottom*=d;return this};function eh(b,c,d,e){this.left=b;this.top=c;this.width=d;this.height=e}l=eh.prototype;l.clone=function(){return new eh(this.left,this.top,this.width,this.height)};l.contains=function(b){return b instanceof eh?this.left<=b.left&&this.left+this.width>=b.left+b.width&&this.top<=b.top&&this.top+this.height>=b.top+b.height:b.x>=this.left&&b.x<=this.left+this.width&&b.y>=this.top&&b.y<=this.top+this.height}; function fh(b,c){var d=c.xb.g};function Bh(b,c){ad.call(this);this.a=b;this.state=c}w(Bh,ad);function Ch(b){C(b,"change")}Bh.prototype.pb=function(){return ma(this).toString()};Bh.prototype.i=function(){return this.a};function Dh(b){gd.call(this);this.j=Ae(b.projection);this.g=m(b.attributions)?b.attributions:null;this.U=b.logo;this.A=m(b.state)?b.state:"ready";this.G=m(b.wrapX)?b.wrapX:!1}w(Dh,gd);l=Dh.prototype;l.te=ca;l.la=function(){return this.g};l.ka=function(){return this.U};l.ma=function(){return this.j};l.na=function(){return this.A};function Eh(b){return b.G}function Fh(b,c){b.A=c;b.s()};function Gh(b){this.minZoom=m(b.minZoom)?b.minZoom:0;this.a=b.resolutions;this.maxZoom=this.a.length-1;this.c=m(b.origin)?b.origin:null;this.g=null;m(b.origins)&&(this.g=b.origins);var c=b.extent;m(c)&&null===this.c&&null===this.g&&(this.c=de(c));this.i=null;m(b.tileSizes)&&(this.i=b.tileSizes);this.l=m(b.tileSize)?b.tileSize:null===this.i?256:null;this.v=m(c)?c:null;this.b=null;m(b.sizes)?this.b=Ua(b.sizes,function(b){return new lg(Math.min(0,b[0]),Math.max(b[0]-1,-1),Math.min(0,b[1]),Math.max(b[1]- 1,-1))},this):null!=c&&Hh(this,c);this.f=[0,0]}var Ih=[0,0,0];function Jh(b,c,d,e,f){f=Kh(b,c,f);for(c=c[0]-1;c>=b.minZoom;){if(d.call(null,c,jg(b,f,c,e)))return!0;--c}return!1}l=Gh.prototype;l.R=function(){return this.v};l.pg=function(){return this.maxZoom};l.qg=function(){return this.minZoom};l.Nc=function(b){return null===this.c?this.g[b]:this.c};l.ua=function(b){return this.a[b]};l.ih=function(){return this.a};function Lh(b,c,d,e){return c[0]ta.f)if(og(S,new lg(Xb(L.a,Pa),Xb(L.f,Pa),L.b,L.c))||ng(L)>Pa&&og(S,ta)){r=!0;break a}}r=!1}}}else r=!1;r?(n in B&&delete B[n],v[n]=k):B[n]=k}c=[v,B];d=c[0];c=c[1];for(var R in this.l)R in d?(this.i[R]||(oh(this.l[R],!0),this.i[R]=!0),delete d[R]):R in c?(this.i[R]&&(oh(this.l[R],!1),delete this.i[R]),delete c[R]):(Tg(this.l[R]),delete this.l[R],delete this.i[R]);for(R in d)e= Pg("LI"),e.innerHTML=d[R].b,this.G.appendChild(e),this.l[R]=e,this.i[R]=!0;for(R in c)e=Pg("LI"),e.innerHTML=c[R].b,oh(e,!1),this.G.appendChild(e),this.l[R]=e;R=!xb(this.i)||!xb(b.logos);this.u!=R&&(oh(this.element,R),this.u=R);R&&xb(this.i)?ah(this.element,"ol-logo-only"):bh(this.element,"ol-logo-only");var Aa;b=b.logos;R=this.T;for(Aa in R)Aa in b||(Tg(R[Aa]),delete R[Aa]);for(var fb in b)fb in R||(Aa=new Image,Aa.src=fb,d=b[fb],""===d?d=Aa:(d=Mg("A",{href:d}),d.appendChild(Aa)),this.A.appendChild(d), R[fb]=d);oh(this.A,!xb(b))}}l=Wh.prototype;l.rl=function(b){b.preventDefault();Yh(this)};function Yh(b){ch(b.element,"ol-collapsed");b.f?Ug(b.C,b.K):Ug(b.K,b.C);b.f=!b.f}l.ql=function(){return this.j};l.tl=function(b){this.j!==b&&(this.j=b,ch(this.element,"ol-uncollapsible"),!b&&this.f&&Yh(this))};l.sl=function(b){this.j&&this.f!==b&&Yh(this)};l.pl=function(){return this.f};function Zh(b){b=m(b)?b:{};var c=m(b.className)?b.className:"ol-rotate",d=m(b.label)?b.label:"\u21e7";this.f=null;ia(d)?this.f=Mg("SPAN","ol-compass",d):(this.f=d,ah(this.f,"ol-compass"));d=Mg("BUTTON",{"class":c+"-reset",type:"button",title:m(b.tipLabel)?b.tipLabel:"Reset rotation"},this.f);x(d,"click",Zh.prototype.A,!1,this);c=Mg("DIV",c+" ol-unselectable ol-control",d);wh.call(this,{element:c,render:m(b.render)?b.render:$h,target:b.target});this.j=m(b.duration)?b.duration:250;this.i=m(b.autoHide)? b.autoHide:!0;this.l=void 0;this.i&&ah(this.element,"ol-hidden")}w(Zh,wh);Zh.prototype.A=function(b){b.preventDefault();b=this.b;var c=b.Y();if(null!==c){for(var d=c.Ea();d<-Math.PI;)d+=2*Math.PI;for(;d>Math.PI;)d-=2*Math.PI;m(d)&&(02*this.c&&xi(this),!0):!1};function xi(b){if(b.c!=b.a.length){for(var c=0,d=0;c=b||96<=b&&106>=b||65<=b&&90>=b||Lb&&0==b)return!0;switch(b){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 Di(b){if(Kb)b=Ei(b);else if(Mb&&Lb)a:switch(b){case 93:b=91;break a}return b} function Ei(b){switch(b){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return b}};function Fi(b,c){ad.call(this);b&&Gi(this,b,c)}w(Fi,ad);l=Fi.prototype;l.qd=null;l.ge=null;l.pf=null;l.he=null;l.Qa=-1;l.Pb=-1;l.Ue=!1; var Hi={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},Ii={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},Ji=Jb||Lb&&Sb("525"),Ki=Mb&&Kb; Fi.prototype.a=function(b){Lb&&(17==this.Qa&&!b.l||18==this.Qa&&!b.b||Mb&&91==this.Qa&&!b.v)&&(this.Pb=this.Qa=-1);-1==this.Qa&&(b.l&&17!=b.g?this.Qa=17:b.b&&18!=b.g?this.Qa=18:b.v&&91!=b.g&&(this.Qa=91));Ji&&!Bi(b.g,this.Qa,b.f,b.l,b.b)?this.handleEvent(b):(this.Pb=Di(b.g),Ki&&(this.Ue=b.b))};Fi.prototype.b=function(b){this.Pb=this.Qa=-1;this.Ue=b.b}; Fi.prototype.handleEvent=function(b){var c=b.a,d,e,f=c.altKey;Jb&&"keypress"==b.type?(d=this.Pb,e=13!=d&&27!=d?c.keyCode:0):Lb&&"keypress"==b.type?(d=this.Pb,e=0<=c.charCode&&63232>c.charCode&&Ci(d)?c.charCode:0):Ib?(d=this.Pb,e=Ci(d)?c.keyCode:0):(d=c.keyCode||this.Pb,e=c.charCode||0,Ki&&(f=this.Ue),Mb&&63==e&&224==d&&(d=191));var g=d=Di(d),h=c.keyIdentifier;d?63232<=d&&d in Hi?g=Hi[d]:25==d&&b.f&&(g=9):h&&h in Ii&&(g=Ii[h]);this.Qa=g;b=new Li(g,e,0,c);b.b=f;C(this,b)}; function Gi(b,c,d){b.he&&Mi(b);b.qd=c;b.ge=x(b.qd,"keypress",b,d);b.pf=x(b.qd,"keydown",b.a,d,b);b.he=x(b.qd,"keyup",b.b,d,b)}function Mi(b){b.ge&&(Xc(b.ge),Xc(b.pf),Xc(b.he),b.ge=null,b.pf=null,b.he=null);b.qd=null;b.Qa=-1;b.Pb=-1}Fi.prototype.X=function(){Fi.aa.X.call(this);Mi(this)};function Li(b,c,d,e){xc.call(this,e);this.type="key";this.g=b;this.B=c}w(Li,xc);function Ni(b,c){ad.call(this);var d=this.a=b;(d=la(d)&&1==d.nodeType?this.a:this.a?this.a.body:null)&&hh(d,"direction");this.b=x(this.a,Kb?"DOMMouseScroll":"mousewheel",this,c)}w(Ni,ad); Ni.prototype.handleEvent=function(b){var c=0,d=0,e=0;b=b.a;if("mousewheel"==b.type){d=1;if(Jb||Lb&&(Nb||Sb("532.0")))d=40;e=Oi(-b.wheelDelta,d);m(b.wheelDeltaX)?(c=Oi(-b.wheelDeltaX,d),d=Oi(-b.wheelDeltaY,d)):d=e}else e=b.detail,100e&&(e=-3),m(b.axis)&&b.axis===b.HORIZONTAL_AXIS?c=e:d=e;ja(this.c)&&Wb(c,-this.c,this.c);ja(this.f)&&(d=Wb(d,-this.f,this.f));c=new Pi(e,b,0,d);C(this,c)};function Oi(b,c){return Lb&&(Mb||Ob)&&0!=b%c?b:b/c} Ni.prototype.X=function(){Ni.aa.X.call(this);Xc(this.b);this.b=null};function Pi(b,c,d,e){xc.call(this,c);this.type="mousewheel";this.detail=b;this.A=e}w(Pi,xc);function Qi(b,c,d){sc.call(this,b);this.a=c;b=m(d)?d:{};this.buttons=Ri(b);this.pressure=Si(b,this.buttons);this.bubbles=Ab(b,"bubbles",!1);this.cancelable=Ab(b,"cancelable",!1);this.view=Ab(b,"view",null);this.detail=Ab(b,"detail",null);this.screenX=Ab(b,"screenX",0);this.screenY=Ab(b,"screenY",0);this.clientX=Ab(b,"clientX",0);this.clientY=Ab(b,"clientY",0);this.button=Ab(b,"button",0);this.relatedTarget=Ab(b,"relatedTarget",null);this.pointerId=Ab(b,"pointerId",0);this.width=Ab(b,"width",0);this.height= Ab(b,"height",0);this.pointerType=Ab(b,"pointerType","");this.isPrimary=Ab(b,"isPrimary",!1);c.preventDefault&&(this.preventDefault=function(){c.preventDefault()})}w(Qi,sc);function Ri(b){if(b.buttons||Ti)b=b.buttons;else switch(b.which){case 1:b=1;break;case 2:b=4;break;case 3:b=2;break;default:b=0}return b}function Si(b,c){var d=0;b.pressure?d=b.pressure:d=c?.5:0;return d}var Ti=!1;try{Ti=1===(new MouseEvent("click",{buttons:1})).buttons}catch(Ui){};function Vi(b,c){var d=Pg("CANVAS");m(b)&&(d.width=b);m(c)&&(d.height=c);return d.getContext("2d")} var Wi=function(){var b;return function(){if(!m(b))if(ba.getComputedStyle){var c=Pg("P"),d,e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(c);for(var f in e)f in c.style&&(c.style[f]="translate(1px,1px)",d=ba.getComputedStyle(c).getPropertyValue(e[f]));Tg(c);b=d&&"none"!==d}else b=!1;return b}}(),Xi=function(){var b;return function(){if(!m(b))if(ba.getComputedStyle){var c=Pg("P"), d,e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(c);for(var f in e)f in c.style&&(c.style[f]="translate3d(1px,1px,1px)",d=ba.getComputedStyle(c).getPropertyValue(e[f]));Tg(c);b=d&&"none"!==d}else b=!1;return b}}();function Yi(b,c){var d=b.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.msTransform=c;d.transform=c;Jb&&!Vb&&(b.style.transformOrigin="0 0")} function Zi(b,c){var d;if(Xi()){if(m(6)){var e=Array(16);for(d=0;16>d;++d)e[d]=c[d].toFixed(6);d=e.join(",")}else d=c.join(",");Yi(b,"matrix3d("+d+")")}else if(Wi()){e=[c[0],c[1],c[4],c[5],c[12],c[13]];if(m(6)){var f=Array(6);for(d=0;6>d;++d)f[d]=e[d].toFixed(6);d=f.join(",")}else d=e.join(",");Yi(b,"matrix("+d+")")}else b.style.left=Math.round(c[12])+"px",b.style.top=Math.round(c[13])+"px"};var $i=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function aj(b,c){var d,e,f=$i.length;for(e=0;e=Math.abs(e-k[0])&&25>=n)return!0}return!1}function sj(b){var c=tj(b,b.a),d=c.preventDefault;c.preventDefault=function(){b.preventDefault();d()};c.pointerId=1;c.isPrimary=!0;c.pointerType="mouse";return c}l=qj.prototype; l.Kk=function(b){if(!rj(this,b)){(1).toString()in this.b&&this.cancel(b);var c=sj(b);this.b[(1).toString()]=b;uj(this.a,vj,c,b)}};l.Lk=function(b){if(!rj(this,b)){var c=sj(b);uj(this.a,xj,c,b)}};l.Ok=function(b){if(!rj(this,b)){var c=this.b[(1).toString()];c&&c.button===b.button&&(c=sj(b),uj(this.a,yj,c,b),zb(this.b,(1).toString()))}};l.Nk=function(b){if(!rj(this,b)){var c=sj(b);zj(this.a,c,b)}};l.Mk=function(b){if(!rj(this,b)){var c=sj(b);Aj(this.a,c,b)}}; l.cancel=function(b){var c=sj(b);this.a.cancel(c,b);zb(this.b,(1).toString())};function Bj(b){pj.call(this,b,{MSPointerDown:this.Tk,MSPointerMove:this.Uk,MSPointerUp:this.Xk,MSPointerOut:this.Vk,MSPointerOver:this.Wk,MSPointerCancel:this.Sk,MSGotPointerCapture:this.Qk,MSLostPointerCapture:this.Rk});this.b=b.b;this.c=["","unavailable","touch","pen","mouse"]}w(Bj,pj);function Cj(b,c){var d=c;ja(c.a.pointerType)&&(d=tj(c,c.a),d.pointerType=b.c[c.a.pointerType]);return d}l=Bj.prototype;l.Tk=function(b){this.b[b.a.pointerId]=b;var c=Cj(this,b);uj(this.a,vj,c,b)}; l.Uk=function(b){var c=Cj(this,b);uj(this.a,xj,c,b)};l.Xk=function(b){var c=Cj(this,b);uj(this.a,yj,c,b);zb(this.b,b.a.pointerId)};l.Vk=function(b){var c=Cj(this,b);Aj(this.a,c,b)};l.Wk=function(b){var c=Cj(this,b);zj(this.a,c,b)};l.Sk=function(b){var c=Cj(this,b);this.a.cancel(c,b);zb(this.b,b.a.pointerId)};l.Rk=function(b){C(this.a,new Qi("lostpointercapture",b,b.a))};l.Qk=function(b){C(this.a,new Qi("gotpointercapture",b,b.a))};function Dj(b){pj.call(this,b,{pointerdown:this.Cn,pointermove:this.Dn,pointerup:this.Gn,pointerout:this.En,pointerover:this.Fn,pointercancel:this.Bn,gotpointercapture:this.Xj,lostpointercapture:this.Jk})}w(Dj,pj);l=Dj.prototype;l.Cn=function(b){Ej(this.a,b)};l.Dn=function(b){Ej(this.a,b)};l.Gn=function(b){Ej(this.a,b)};l.En=function(b){Ej(this.a,b)};l.Fn=function(b){Ej(this.a,b)};l.Bn=function(b){Ej(this.a,b)};l.Jk=function(b){Ej(this.a,b)};l.Xj=function(b){Ej(this.a,b)};function Fj(b,c){pj.call(this,b,{touchstart:this.Io,touchmove:this.Ho,touchend:this.Go,touchcancel:this.Fo});this.b=b.b;this.j=c;this.c=void 0;this.i=0;this.f=void 0}w(Fj,pj);l=Fj.prototype;l.Ch=function(){this.i=0;this.f=void 0}; function Gj(b,c,d){c=tj(c,d);c.pointerId=d.identifier+2;c.bubbles=!0;c.cancelable=!0;c.detail=b.i;c.button=0;c.buttons=1;c.width=d.webkitRadiusX||d.radiusX||0;c.height=d.webkitRadiusY||d.radiusY||0;c.pressure=d.webkitForce||d.force||.5;c.isPrimary=b.c===d.identifier;c.pointerType="touch";c.clientX=d.clientX;c.clientY=d.clientY;c.screenX=d.screenX;c.screenY=d.screenY;return c} function Hj(b,c,d){function e(){c.preventDefault()}var f=Array.prototype.slice.call(c.a.changedTouches),g=f.length,h,k;for(h=0;h=c.length){var f=[],g,h,k;for(g=0;g=b.minResolution&&cb.f&&(b.f=e.f),e.bb.c&&(b.c=e.c)):b[c][d]=e:(b[c]={},b[c][d]=e)}function yk(b,c,d){return[c*(Math.round(b[0]/c)+d[0]%2/2),c*(Math.round(b[1]/c)+d[1]%2/2)]} function zk(b,c,d,e,f,g,h,k,n,p){var q=ma(c).toString();q in b.wantedTiles||(b.wantedTiles[q]={});var r=b.wantedTiles[q];b=b.tileQueue;var t=d.minZoom,v,B,z,E,A,y;for(y=h;y>=t;--y)for(B=jg(d,g,y,B),z=d.ua(y),E=B.a;E<=B.f;++E)for(A=B.b;A<=B.c;++A)h-y<=k?(v=c.cc(y,E,A,e,f),0==v.state&&(r[eg(v.a)]=!0,v.pb()in b.c||Ak(b,[v,q,gg(d,v.a),z])),m(n)&&n.call(p,v)):c.Pf(y,E,A)};function Bk(b){this.u=b.opacity;this.G=b.rotateWithView;this.B=b.rotation;this.v=b.scale;this.fa=b.snapToPixel}l=Bk.prototype;l.ve=function(){return this.u};l.Xd=function(){return this.G};l.we=function(){return this.B};l.xe=function(){return this.v};l.Yd=function(){return this.fa};l.ye=function(b){this.B=b};l.ze=function(b){this.v=b};function Ck(b){b=m(b)?b:{};this.g=m(b.anchor)?b.anchor:[.5,.5];this.f=null;this.b=m(b.anchorOrigin)?b.anchorOrigin:"top-left";this.j=m(b.anchorXUnits)?b.anchorXUnits:"fraction";this.l=m(b.anchorYUnits)?b.anchorYUnits:"fraction";var c=m(b.crossOrigin)?b.crossOrigin:null,d=m(b.img)?b.img:null,e=m(b.imgSize)?b.imgSize:null,f=b.src;m(f)&&0!==f.length||null===d||(f=d.src);var g=m(b.src)?0:2,h=Dk.Pa(),k=h.get(f,c);null===k&&(k=new Ek(d,f,e,c,g),h.set(f,c,k));this.a=k;this.da=m(b.offset)?b.offset:[0,0]; this.c=m(b.offsetOrigin)?b.offsetOrigin:"top-left";this.i=null;this.A=m(b.size)?b.size:null;Bk.call(this,{opacity:m(b.opacity)?b.opacity:1,rotation:m(b.rotation)?b.rotation:0,scale:m(b.scale)?b.scale:1,snapToPixel:m(b.snapToPixel)?b.snapToPixel:!0,rotateWithView:m(b.rotateWithView)?b.rotateWithView:!1})}w(Ck,Bk);l=Ck.prototype; l.zb=function(){if(null!==this.f)return this.f;var b=this.g,c=this.fb();if("fraction"==this.j||"fraction"==this.l){if(null===c)return null;b=this.g.slice();"fraction"==this.j&&(b[0]*=c[0]);"fraction"==this.l&&(b[1]*=c[1])}if("top-left"!=this.b){if(null===c)return null;b===this.g&&(b=this.g.slice());if("top-right"==this.b||"bottom-right"==this.b)b[0]=-b[0]+c[0];if("bottom-left"==this.b||"bottom-right"==this.b)b[1]=-b[1]+c[1]}return this.f=b};l.Tb=function(){return this.a.a};l.Td=function(){return this.a.b}; l.wd=function(){return this.a.c};l.ue=function(){var b=this.a;if(null===b.g)if(b.l){var c=b.b[0],d=b.b[1],e=Vi(c,d);e.fillRect(0,0,c,d);b.g=e.canvas}else b.g=b.a;return b.g};l.Eb=function(){if(null!==this.i)return this.i;var b=this.da;if("top-left"!=this.c){var c=this.fb(),d=this.a.b;if(null===c||null===d)return null;b=b.slice();if("top-right"==this.c||"bottom-right"==this.c)b[0]=d[0]-c[0]-b[0];if("bottom-left"==this.c||"bottom-right"==this.c)b[1]=d[1]-c[1]-b[1]}return this.i=b};l.Om=function(){return this.a.i}; l.fb=function(){return null===this.A?this.a.b:this.A};l.rf=function(b,c){return x(this.a,"change",b,!1,c)};l.load=function(){this.a.load()};l.Of=function(b,c){Wc(this.a,"change",b,!1,c)};function Ek(b,c,d,e,f){ad.call(this);this.g=null;this.a=null===b?new Image:b;null!==e&&(this.a.crossOrigin=e);this.f=null;this.c=f;this.b=d;this.i=c;this.l=!1}w(Ek,ad);Ek.prototype.j=function(){this.c=3;Sa(this.f,Xc);this.f=null;C(this,"change")}; Ek.prototype.B=function(){this.c=2;this.b=[this.a.width,this.a.height];Sa(this.f,Xc);this.f=null;var b=Vi(1,1);b.drawImage(this.a,0,0);try{b.getImageData(0,0,1,1)}catch(c){this.l=!0}C(this,"change")};Ek.prototype.load=function(){if(0==this.c){this.c=1;this.f=[Vc(this.a,"error",this.j,!1,this),Vc(this.a,"load",this.B,!1,this)];try{this.a.src=this.i}catch(b){this.j()}}};function Dk(){this.a={};this.b=0}da(Dk);Dk.prototype.clear=function(){this.a={};this.b=0}; Dk.prototype.get=function(b,c){var d=c+":"+b;return d in this.a?this.a[d]:null};Dk.prototype.set=function(b,c,d){this.a[c+":"+b]=d;++this.b};function Fk(b,c){nc.call(this);this.i=c;this.f={};this.v={}}w(Fk,nc);function Gk(b){var c=b.viewState,d=b.coordinateToPixelMatrix;ok(d,b.size[0]/2,b.size[1]/2,1/c.resolution,-1/c.resolution,-c.rotation,-c.center[0],-c.center[1]);Gd(d,b.pixelToCoordinateMatrix)}l=Fk.prototype;l.X=function(){pb(this.f,rc);Fk.aa.X.call(this)}; function Hk(){var b=Dk.Pa();if(32h[2])k=Math.ceil((h[0]-q)/p),k=[q+p*k,b[1]]}p=c.layerStatesArray;for(q=p.length-1;0<=q;--q){h=p[q];var r=h.layer;if(!h.Qb||lk(h,n)&&f.call(g,r))if(h=Ik(this,r).Va(Eh(r.ca())?k:b,c,d,e))return h}}; l.Xg=function(b,c,d,e,f,g){var h,k=c.viewState.resolution,n=c.layerStatesArray,p;for(p=n.length-1;0<=p;--p){h=n[p];var q=h.layer;if(lk(h,k)&&f.call(g,q)&&(h=Ik(this,q).lc(b,c,d,e)))return h}};l.Yg=function(b,c,d,e){b=this.yf(b,c,pe,this,d,e);return m(b)};function Ik(b,c){var d=ma(c).toString();if(d in b.f)return b.f[d];var e=b.Ze(c);b.f[d]=e;b.v[d]=x(e,"change",b.ik,!1,b);return e}l.ik=function(){this.i.render()};l.Ge=ca; l.eo=function(b,c){for(var d in this.f)if(!(null!==c&&d in c.layerStates)){var e=d,f=this.f[e];delete this.f[e];Xc(this.v[e]);delete this.v[e];rc(f)}};function Jk(b,c){for(var d in b.f)if(!(d in c.layerStates)){c.postRenderFunctions.push(ra(b.eo,b));break}};function Kk(b,c){this.j=b;this.g=c;this.a=[];this.b=[];this.c={}}Kk.prototype.clear=function(){this.a.length=0;this.b.length=0;yb(this.c)};function Lk(b){var c=b.a,d=b.b,e=c[0];1==c.length?(c.length=0,d.length=0):(c[0]=c.pop(),d[0]=d.pop(),Mk(b,0));c=b.g(e);delete b.c[c];return e}function Ak(b,c){var d=b.j(c);Infinity!=d&&(b.a.push(c),b.b.push(d),b.c[b.g(c)]=!0,Nk(b,0,b.a.length-1))}Kk.prototype.ac=function(){return this.a.length};Kk.prototype.wa=function(){return 0===this.a.length}; function Mk(b,c){for(var d=b.a,e=b.b,f=d.length,g=d[c],h=e[c],k=c;c>1;){var n=2*c+1,p=2*c+2,n=pc;){var h=d-1>>1;if(b[h]>g)e[d]=e[h],b[d]=b[h],d=h;else break}e[d]=f;b[d]=g}function Ok(b){var c=b.j,d=b.a,e=b.b,f=0,g=d.length,h,k,n;for(k=0;k>1)-1;0<=c;c--)Mk(b,c)};function Pk(b,c){Kk.call(this,function(c){return b.apply(null,c)},function(b){return b[0].pb()});this.l=c;this.f=0}w(Pk,Kk);Pk.prototype.i=function(b){b=b.target;var c=b.state;if(2===c||3===c||4===c)Wc(b,"change",this.i,!1,this),--this.f,this.l()};function Qk(b,c,d){for(var e=0,f;b.fd.a.length)d=!1;else{var e=ua()-d.i,f=d.a.length-3;if(d.a[f+2]e;)g-=3;var e=d.a[f+2]-d.a[g+2],h=d.a[f]-d.a[g],f=d.a[f+1]-d.a[g+1];d.g=Math.atan2(f,h);d.b=Math.sqrt(h*h+f*f)/e;d=d.b>d.c}}d&&(d=this.f,d=(d.c-d.b)/d.f,f=this.f.g,g=c.Ka(),this.j=Sk(this.f,g),b.Oa(this.j),g=b.ya(g),d=b.ta([g[0]-d*Math.cos(f),g[1]-d*Math.sin(f)]),d=c.Nd(d),c.eb(d));Uf(c,-1);b.render(); return!1}this.g=null;return!0}function kl(b){if(0f;++f)e[f]=c.charCodeAt(d++)|c.charCodeAt(d++)<<8|c.charCodeAt(d++)<<16|c.charCodeAt(d++)<<24;else for(f=0;16>f;++f)e[f]=c[d++]|c[d++]<<8|c[d++]<<16|c[d++]<<24;c=b.a[0];d=b.a[1];var f=b.a[2],g=b.a[3],h=0,h=c+(g^d&(f^g))+e[0]+3614090360&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[1]+3905402710&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[2]+606105819&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^ c))+e[3]+3250441966&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[4]+4118548399&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[5]+1200080426&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[6]+2821735955&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[7]+4249261313&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[8]+1770035416&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[9]+2336552879&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+ (d^g&(c^d))+e[10]+4294925233&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[11]+2304563134&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[12]+1804603682&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[13]+4254626195&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[14]+2792965006&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[15]+1236535329&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(f^g&(d^f))+e[1]+4129170786&4294967295;c=d+(h<<5&4294967295| h>>>27);h=g+(d^f&(c^d))+e[6]+3225465664&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[11]+643717713&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[0]+3921069994&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(f^g&(d^f))+e[5]+3593408605&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[10]+38016083&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[15]+3634488961&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[4]+3889429448&4294967295;d=f+(h<<20&4294967295| h>>>12);h=c+(f^g&(d^f))+e[9]+568446438&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[14]+3275163606&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[3]+4107603335&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[8]+1163531501&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(f^g&(d^f))+e[13]+2850285829&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[2]+4243563512&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[7]+1735328473&4294967295;f=g+(h<<14&4294967295| h>>>18);h=d+(g^c&(f^g))+e[12]+2368359562&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(d^f^g)+e[5]+4294588738&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[8]+2272392833&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[11]+1839030562&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[14]+4259657740&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(d^f^g)+e[1]+2763975236&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[4]+1272893353&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^ c^d)+e[7]+4139469664&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[10]+3200236656&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(d^f^g)+e[13]+681279174&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[0]+3936430074&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[3]+3572445317&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[6]+76029189&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(d^f^g)+e[9]+3654602809&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[12]+3873151461&4294967295; g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[15]+530742520&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[2]+3299628645&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(f^(d|~g))+e[0]+4096336452&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[7]+1126891415&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[14]+2878612391&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[5]+4237533241&4294967295;d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[12]+1700485571&4294967295;c=d+ (h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[3]+2399980690&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[10]+4293915773&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[1]+2240044497&4294967295;d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[8]+1873313359&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[15]+4264355552&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[6]+2734768916&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[13]+1309151649&4294967295; d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[4]+4149444226&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[11]+3174756917&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[2]+718787259&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[9]+3951481745&4294967295;b.a[0]=b.a[0]+c&4294967295;b.a[1]=b.a[1]+(f+(h<<21&4294967295|h>>>11))&4294967295;b.a[2]=b.a[2]+f&4294967295;b.a[3]=b.a[3]+g&4294967295} Bl.prototype.update=function(b,c){m(c)||(c=b.length);for(var d=c-this.b,e=this.g,f=this.c,g=0;gc.c?c.b:2*c.b)-c.c);d[0]=128;for(b=1;bb;++b)for(var f=0;32>f;f+=8)d[e++]=c.a[b]>>>f&255; if(8192>d.length)c=String.fromCharCode.apply(null,d);else for(c="",b=0;bthis.G&&(this.f=!0));this.j=d;b=b.map;d=lh(b.b);e=il(this.i);e[0]-=d.x;e[1]-=d.y;this.g=b.ta(e);this.f&&(d=b.Y(),e=d.Ea(),b.render(),Vk(b,d,e+c,this.g))}function Yl(b){if(2>this.i.length){b=b.map;var c=b.Y();Uf(c,-1);if(this.f){var d=c.Ea(),e=this.g,f=this.u,d=c.constrainRotation(d,0);Vk(b,c,d,e,f)}return!1}return!0} function Wl(b){return 2<=this.i.length?(b=b.map,this.g=null,this.j=void 0,this.f=!1,this.l=0,this.A||Uf(b.Y(),1),b.render(),!0):!1}Vl.prototype.wc=oe;function Zl(b){gl.call(this,{handleDownEvent:$l,handleDragEvent:am,handleUpEvent:bm});b=m(b)?b:{};this.g=null;this.l=m(b.duration)?b.duration:400;this.f=void 0;this.j=1}w(Zl,gl);function am(b){var c=1,d=this.i[0],e=this.i[1],f=d.clientX-e.clientX,d=d.clientY-e.clientY,f=Math.sqrt(f*f+d*d);m(this.f)&&(c=this.f/f);this.f=f;1!=c&&(this.j=c);b=b.map;var f=b.Y(),d=f.Da(),e=lh(b.b),g=il(this.i);g[0]-=e.x;g[1]-=e.y;this.g=b.ta(g);b.render();Xk(b,f,d*c,this.g)} function bm(b){if(2>this.i.length){b=b.map;var c=b.Y();Uf(c,-1);var d=c.Da(),e=this.g,f=this.l,d=c.constrainResolution(d,0,this.j-1);Xk(b,c,d,e,f);return!1}return!0}function $l(b){return 2<=this.i.length?(b=b.map,this.g=null,this.f=void 0,this.j=1,this.A||Uf(b.Y(),1),b.render(),!0):!1}Zl.prototype.wc=oe;function cm(b){b=m(b)?b:{};var c=new rg,d=new Rk(-.005,.05,100);(m(b.altShiftDragRotate)?b.altShiftDragRotate:1)&&c.push(new nl);(m(b.doubleClickZoom)?b.doubleClickZoom:1)&&c.push(new Yk({delta:b.zoomDelta,duration:b.zoomDuration}));(m(b.dragPan)?b.dragPan:1)&&c.push(new jl({kinetic:d}));(m(b.pinchRotate)?b.pinchRotate:1)&&c.push(new Vl);(m(b.pinchZoom)?b.pinchZoom:1)&&c.push(new Zl({duration:b.zoomDuration}));if(m(b.keyboard)?b.keyboard:1)c.push(new Pl),c.push(new Rl({delta:b.zoomDelta,duration:b.zoomDuration})); (m(b.mouseWheelZoom)?b.mouseWheelZoom:1)&&c.push(new Tl({duration:b.zoomDuration}));(m(b.shiftDragZoom)?b.shiftDragZoom:1)&&c.push(new Ol);return c};function dm(b){var c=m(b)?b:{};b=Cb(c);delete b.layers;c=c.layers;hk.call(this,b);this.c=[];this.b={};x(this,id("layers"),this.kk,!1,this);null!=c?ga(c)&&(c=new rg(c.slice())):c=new rg;this.Lh(c)}w(dm,hk);l=dm.prototype;l.ce=function(){this.nb()&&this.s()}; l.kk=function(){Sa(this.c,Xc);this.c.length=0;var b=this.Kc();this.c.push(x(b,"add",this.jk,!1,this),x(b,"remove",this.lk,!1,this));pb(this.b,function(b){Sa(b,Xc)});yb(this.b);var b=b.b,c,d,e;c=0;for(d=b.length;cthis.g&&(this.g=this.c.lineWidth,this.f=null)}; function Pm(b,c,d){Fm.call(this,b,c,d);this.c={eg:void 0,hd:void 0,cd:void 0,dd:null,ed:void 0,fd:void 0,gd:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}w(Pm,Fm); function Qm(b,c,d,e,f){var g=b.c,h=[1];b.b.push(h);b.a.push(h);var k,h=0;for(k=e.length;hthis.g&&(this.g=d.lineWidth,this.f=null))}; function Rm(b){var c=b.c,d=c.fillStyle,e=c.strokeStyle,f=c.lineCap,g=c.lineDash,h=c.lineJoin,k=c.lineWidth,n=c.miterLimit;m(d)&&c.eg!=d&&(b.b.push([9,d]),c.eg=c.fillStyle);!m(e)||c.hd==e&&c.cd==f&&c.dd==g&&c.ed==h&&c.fd==k&&c.gd==n||(b.b.push([10,e,k,f,h,n,g]),c.hd=e,c.cd=f,c.dd=g,c.ed=h,c.fd=k,c.gd=n)}function Sm(b,c,d){Fm.call(this,b,c,d);this.da=this.fa=this.G=null;this.l="";this.u=this.A=this.v=this.B=0;this.j=this.i=this.c=null}w(Sm,Fm); Sm.prototype.yb=function(b,c,d,e,f,g){if(""!==this.l&&null!==this.j&&(null!==this.c||null!==this.i)){if(null!==this.c){f=this.c;var h=this.G;if(null===h||h.fillStyle!=f.fillStyle){var k=[9,f.fillStyle];this.b.push(k);this.a.push(k);null===h?this.G={fillStyle:f.fillStyle}:h.fillStyle=f.fillStyle}}null!==this.i&&(f=this.i,h=this.fa,null===h||h.lineCap!=f.lineCap||h.lineDash!=f.lineDash||h.lineJoin!=f.lineJoin||h.lineWidth!=f.lineWidth||h.miterLimit!=f.miterLimit||h.strokeStyle!=f.strokeStyle)&&(k=[10, f.strokeStyle,f.lineWidth,f.lineCap,f.lineJoin,f.miterLimit,f.lineDash,!1],this.b.push(k),this.a.push(k),null===h?this.fa={lineCap:f.lineCap,lineDash:f.lineDash,lineJoin:f.lineJoin,lineWidth:f.lineWidth,miterLimit:f.miterLimit,strokeStyle:f.strokeStyle}:(h.lineCap=f.lineCap,h.lineDash=f.lineDash,h.lineJoin=f.lineJoin,h.lineWidth=f.lineWidth,h.miterLimit=f.miterLimit,h.strokeStyle=f.strokeStyle));f=this.j;h=this.da;if(null===h||h.font!=f.font||h.textAlign!=f.textAlign||h.textBaseline!=f.textBaseline)k= [11,f.font,f.textAlign,f.textBaseline],this.b.push(k),this.a.push(k),null===h?this.da={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline}:(h.font=f.font,h.textAlign=f.textAlign,h.textBaseline=f.textBaseline);Hm(this,g);f=this.coordinates.length;b=Gm(this,b,c,d,e,!1);b=[5,f,b,this.l,this.B,this.v,this.A,this.u,null!==this.c,null!==this.i];this.b.push(b);this.a.push(b);Km(this,g)}}; Sm.prototype.Ia=function(b){if(null===b)this.l="";else{var c=b.a;null===c?this.c=null:(c=c.a,c=yg(null===c?El:c),null===this.c?this.c={fillStyle:c}:this.c.fillStyle=c);var d=b.i;if(null===d)this.i=null;else{var c=d.a,e=d.f,f=d.c,g=d.g,h=d.b,d=d.i,e=m(e)?e:"round",f=null!=f?f.slice():Fl,g=m(g)?g:"round",h=m(h)?h:1,d=m(d)?d:10,c=yg(null===c?Gl:c);if(null===this.i)this.i={lineCap:e,lineDash:f,lineJoin:g,lineWidth:h,miterLimit:d,strokeStyle:c};else{var k=this.i;k.lineCap=e;k.lineDash=f;k.lineJoin=g;k.lineWidth= h;k.miterLimit=d;k.strokeStyle=c}}var n=b.f,c=b.B,e=b.v,f=b.g,h=b.b,d=b.c,g=b.j,k=b.l;b=m(n)?n:"10px sans-serif";g=m(g)?g:"center";k=m(k)?k:"middle";null===this.j?this.j={font:b,textAlign:g,textBaseline:k}:(n=this.j,n.font=b,n.textAlign=g,n.textBaseline=k);this.l=m(d)?d:"";this.B=m(c)?c:0;this.v=m(e)?e:0;this.A=m(f)?f:0;this.u=m(h)?h:1}};function Tm(b,c,d,e){this.l=b;this.c=c;this.j=d;this.f=e;this.b={};this.g=Vi(1,1);this.i=Ad()} function Um(b){for(var c in b.b){var d=b.b[c],e;for(e in d)d[e].qe()}}function Vm(b,c,d,e,f,g){var h=b.i;ok(h,.5,.5,1/d,-1/d,-e,-c[0],-c[1]);var k=b.g;k.clearRect(0,0,1,1);var n;m(b.f)&&(n=Ld(),Md(n,c),Pd(n,d*b.f,n));return Wm(b,k,h,e,f,function(b){if(0=c[0]||b[1]<=c[1]&&b[3]>=c[1]?!0:$d(b,this.Ye,this)):!1}; l.Al=function(b){var c=this.H,d=b.slice();d[c]=d[0]+(this.o[c]-this.o[0]);var e;for(e=1;eb||0!==this.i&&b>1,q=h(d,g[p]),0t?(d=(d-g[-t-2])/(g[-t-1]-g[-t-2]),c+=(-t-2)*e,g=Yb(b[c],b[c+e],d),h=Yb(b[c+1],b[c+e+1],d)):(g=b[c+t*e],h=b[c+t*e+1])}return null!=f? (f[0]=g,f[1]=h,f):[g,h]}function fn(b,c,d,e,f,g){if(d==c)return null;if(f>1,fb||this.c.length<=b)return null;var c=new N(null);hn(c,this.b,this.o.slice(0===b?0:this.c[b-1],this.c[b]));return c};l.md=function(){var b=this.o,c=this.c,d=this.b,e=[],f=0,g,h;g=0;for(h=c.length;gb||c<=b)return null;c=new D(null);vf(c,this.b,this.o.slice(b*this.H,(b+1)*this.H));return c};l.pe=function(){var b=this.o,c=this.b,d=this.H,e=[],f,g;f=0;for(g=b.length;fb||this.c.length<=b)return null;var c;0===b?c=0:(c=this.c[b-1],c=c[c.length-1]);b=this.c[b].slice();var d=b[b.length-1];if(0!==c){var e,f;e=0;for(f=b.length;ed?b[1]="?":d==c.length-1&&(b[1]=void 0)}return b.join("")} function no(b,c,d){if(ga(c))for(var e=0;e=b[0]&&c[3]>=b[1]}function r(b,c,d,e,f){for(var g=[c,d],h;g.length;)d=g.pop(),c=g.pop(),d-c<=e||(h=c+Math.ceil((d-c)/e/2)*e,t(b,c,d,h,f),g.push(c,h,h,d))}function t(b,c,d,e,f){for(var g,h,k,n,p;d>c;){600h-g/2?-1:1),k=Math.max(c,Math.floor(e-h*n/g+p)),h=Math.min(d,Math.floor(e+(g-h)*n/g+p)),t(b,k,h,e,f));g=b[e];h=c;n=d;v(b,c,e);for(0f(b[h],g);)h++;for(;0this.Te)this.Ji(e,c),c--;else break;this.Ai(d,e,c)},Ji:function(b,c){var e=b[c],f=e.children.length,g=this.Zf;this.Bi(e,g,f);f={children:e.children.splice(this.Ci(e,g,f)),height:e.height};e.Ba&&(f.Ba=!0);d(e,this.La);d(f,this.La);c?b[c-1].children.push(f):this.ag(e, f)},ag:function(b,c){this.data={children:[b,c],height:b.height+1};d(this.data,this.La)},Ci:function(b,c,d){var f,g,h,n,p,q,r;p=q=Infinity;for(f=c;f<=d-c;f++){g=e(b,0,f,this.La);h=e(b,f,d,this.La);var t=g,v=h;n=Math.max(t[0],v[0]);var Aa=Math.max(t[1],v[1]),fb=Math.min(t[2],v[2]),t=Math.min(t[3],v[3]);n=Math.max(0,fb-n)*Math.max(0,t-Aa);g=k(g)+k(h);n=c;q--)r=b.children[q],f(k,b.Ba?g(r):r.bbox),p+=n(k);return p},Ai:function(b,c,d){for(;0<=d;d--)f(c[d].bbox,b)},Ei:function(b){for(var c=b.length-1,e;0<=c;c--)0===b[c].children.length?0E||this.c[1]>A)?(y.width=E,y.height=A,this.c=[E,A],this.B=!Dm(this.c),this.f=null):(E=this.c[0],A=this.c[1],(y=p!=this.u)||(y=this.f,y=!(y.a<=z.a&&z.f<=y.f&&y.b<=z.b&&z.c<=y.c)),y&&(this.f=null)));var L,H;null===this.f?(E/=q[0],A/=q[1],L=z.a-Math.floor((E-ng(z))/2),H=z.b-Math.floor((A-(z.c-z.b+1))/2),this.u=p,this.C=q[0],this.G=q[1],this.f=new lg(L,L+E-1,H,H+A-1),this.l=Array(E*A),A=this.f):(A=this.f,E=ng(A));y={};y[p]={};var S=[],ta= this.Od(h,y),Pa=g.c(),R=Ld(),Aa=new lg(0,0,0,0),fb,Ia,Db;for(H=z.a;H<=z.f;++H)for(Db=z.b;Db<=z.c;++Db)Ia=h.cc(p,H,Db,d,f),L=Ia.state,2==L||4==L||3==L&&!Pa?y[p][eg(Ia.a)]=Ia:(fb=Jh(k,Ia.a,ta,Aa,R),fb||(S.push(Ia),fb=Lh(k,Ia.a,Aa,R),null===fb||ta(p+1,fb)));ta=0;for(fb=S.length;tan[2];)++p,q=k*p,q=Bm(this,b,q),Ym(r,t,f,q,h,g),c-=k;q=Bm(this,b,0)}t!=d&&(Am(this,"render",t,b,q),d.drawImage(t.canvas,0,0));t.globalAlpha=v}Am(this,"postcompose",d,b,q)};Np.prototype.Va=function(b,c,d,e){if(null!==this.c){var f=c.viewState.resolution,g=c.viewState.rotation,h=this.b,k=c.layerStates[ma(h)],n={};return Vm(this.c,b,f,g,k.Qb?c.skippedFeatureUids:{},function(b){var c=ma(b).toString();if(!(c in n))return n[c]=!0,d.call(e,b,h)})}};Np.prototype.v=function(){sk(this)}; Np.prototype.se=function(b){function c(b){var c;m(b.c)?c=b.c.call(b,p):m(d.b)&&(c=(0,d.b)(b,p));if(null!=c){if(null!=c){var e,f,g=!1;e=0;for(f=c.length;eS&&Sg(this.target,z.target,0)}else{if(!b.viewHints[0]&&!b.viewHints[1]){J=jg(z.f,t,z.c[0],A);S=[];y=H=void 0;for(y in z.b)H=z.b[y],J.contains(H.a)|| S.push(H);Pa=J=void 0;J=0;for(Pa=S.length;J=k;){n=b.c[p];v=b.v[p];E=ma(v).toString();if(!m(r[E])&&(!m(B)||ie(B,v.Z().R()))&&(z.clear(z.COLOR_BUFFER_BIT|z.DEPTH_BUFFER_BIT),z.drawElements(4,q-n,f,n*c),q=t(v))){b=q;break a}q=n;p--}b=void 0}else z.clear(z.COLOR_BUFFER_BIT|z.DEPTH_BUFFER_BIT),vq(b,z,c,r,b.j,b.i),b=(b=t(null))?b:void 0;J=b}else vq(b,z,c,r,b.Xa,b.u);z.disableVertexAttribArray(A.f);z.disableVertexAttribArray(A.a);z.disableVertexAttribArray(A.g); z.disableVertexAttribArray(A.b);z.disableVertexAttribArray(A.c);return J} function vq(b,c,d,e,f,g){var h=d.c?5125:5123;d=d.c?4:2;if(xb(e)){var k;b=0;e=f.length;for(k=0;bc[0]|| c[0]>f[0]||0>c[1]||c[1]>f[1])&&(null===this.j&&(this.j=Vi(1,1)),this.j.clearRect(0,0,1,1),this.j.drawImage(this.f.a(),c[0],c[1],1,1,0,0,1,1),0e?c[0]=e-d:0>f&&(c[0]=Math.abs(f)+ d),0>g?c[1]=g-d:0>h&&(c[1]=Math.abs(h)+d),0===c[0]&&0===c[1])||(d=b.Y().Ka(),e=b.ya(d),c=[e[0]+c[0],e[1]+c[1]],null!==this.g&&(this.g.source=d,b.Oa(Zf(this.g))),b.Y().eb(b.ta(c)))}}};l.uk=function(){dr(this)};l.Hh=function(b){this.set("element",b)};l.setMap=function(b){this.set("map",b)};l.Mh=function(b){this.set("offset",b)};l.wf=function(b){this.set("position",b)}; function er(b,c){var d=Hg(b);hh(b,"position");var e=new Dg(0,0),f;f=d?Hg(d):document;f=!Jb||Jb&&9<=Ub||Xg(Fg(f))?f.documentElement:f.body;b!=f&&(f=kh(b),d=Yg(Fg(d)),e.x=f.left+d.x,e.y=f.top+d.y);return[e.x,e.y,e.x+c[0],e.y+c[1]]}l.Nh=function(b){this.set("positioning",b)}; function dr(b){var c=b.ne(),d=b.Ng();if(m(c)&&null!==c.c&&m(d)){var d=c.ya(d),e=c.Ca(),c=b.c.style,f=b.rg(),g=b.ug(),h=f[0],f=f[1];if("bottom-right"==g||"center-right"==g||"top-right"==g)""!==b.b.je&&(b.b.je=c.left=""),h=Math.round(e[0]-d[0]-h)+"px",b.b.He!=h&&(b.b.He=c.right=h);else{""!==b.b.He&&(b.b.He=c.right="");if("bottom-center"==g||"center-center"==g||"top-center"==g)h-=mh(b.c).width/2;h=Math.round(d[0]+h)+"px";b.b.je!=h&&(b.b.je=c.left=h)}if("bottom-left"==g||"bottom-center"==g||"bottom-right"== g)""!==b.b.Ie&&(b.b.Ie=c.top=""),d=Math.round(e[1]-d[1]-f)+"px",b.b.Kd!=d&&(b.b.Kd=c.bottom=d);else{""!==b.b.Kd&&(b.b.Kd=c.bottom="");if("center-left"==g||"center-center"==g||"center-right"==g)f-=mh(b.c).height/2;d=Math.round(d[1]+f)+"px";b.b.Ie!=d&&(b.b.Ie=c.top=d)}b.b.visible||(oh(b.c,!0),b.b.visible=!0)}else b.b.visible&&(oh(b.c,!1),b.b.visible=!1)};function fr(b){b=m(b)?b:{};this.i=m(b.collapsed)?b.collapsed:!0;this.j=m(b.collapsible)?b.collapsible:!0;this.j||(this.i=!1);var c=m(b.className)?b.className:"ol-overviewmap",d=m(b.tipLabel)?b.tipLabel:"Overview map",e=m(b.collapseLabel)?b.collapseLabel:"\u00ab";this.A=ia(e)?Mg("SPAN",{},e):e;e=m(b.label)?b.label:"\u00bb";this.u=ia(e)?Mg("SPAN",{},e):e;d=Mg("BUTTON",{type:"button",title:d},this.j&&!this.i?this.A:this.u);x(d,"click",this.xl,!1,this);var e=Mg("DIV","ol-overviewmap-map"),f=this.f=new X({controls:new rg, interactions:new rg,target:e});m(b.layers)&&b.layers.forEach(function(b){f.bg(b)},this);var g=Mg("DIV","ol-overviewmap-box");this.l=new cr({position:[0,0],positioning:"bottom-left",element:g});this.f.cg(this.l);c=Mg("DIV",c+" ol-unselectable ol-control"+(this.i&&this.j?" ol-collapsed":"")+(this.j?"":" ol-uncollapsible"),e,d);wh.call(this,{element:c,render:m(b.render)?b.render:gr,target:b.target})}w(fr,wh);l=fr.prototype; l.setMap=function(b){var c=this.b;b!==c&&(c&&(c=c.Y())&&Wc(c,id("rotation"),this.de,!1,this),fr.aa.setMap.call(this,b),b&&(this.v.push(x(b,"propertychange",this.nk,!1,this)),0===this.f.Mg().Rb()&&this.f.Kh(b.bc()),b=b.Y()))&&(x(b,id("rotation"),this.de,!1,this),Sf(b)&&(this.f.Uc(),hr(this)))};l.nk=function(b){"view"===b.key&&((b=b.oldValue)&&Wc(b,id("rotation"),this.de,!1,this),b=this.b.Y(),x(b,id("rotation"),this.de,!1,this))};l.de=function(){this.f.Y().oe(this.b.Y().Ea())}; function gr(){var b=this.b,c=this.f;if(null!==b.c&&null!==c.c){var d=b.Ca(),b=b.Y().Zc(d),e=c.Ca(),d=c.Y().Zc(e),f=c.ya(de(b)),c=c.ya(be(b)),c=new Eg(Math.abs(f[0]-c[0]),Math.abs(f[1]-c[1])),f=e[0],e=e[1];c.width<.1*f||c.height<.1*e||c.width>.75*f||c.height>.75*e?hr(this):Ud(d,b)||(b=this.f,d=this.b.Y(),b.Y().eb(d.Ka()))}ir(this)}function hr(b){var c=b.b;b=b.f;var d=c.Ca(),c=c.Y().Zc(d),d=b.Ca();b=b.Y();var e=Math.log(7.5)/Math.LN2;le(c,1/(.1*Math.pow(2,e/2)));b.af(c,d)} function ir(b){var c=b.b,d=b.f;if(null!==c.c&&null!==d.c){var e=c.Ca(),f=c.Y(),g=d.Y();d.Ca();var c=f.Ea(),h=b.l,d=b.l.me(),f=f.Zc(e),e=g.Da(),g=ae(f),f=ce(f),k;b=b.b.Y().Ka();m(b)&&(k=[g[0]-b[0],g[1]-b[1]],sd(k,c),nd(k,b));h.wf(k);null!=d&&(k=new Eg(Math.abs((g[0]-f[0])/e),Math.abs((f[1]-g[1])/e)),c=Xg(Fg(Hg(d))),!Jb||Sb("10")||c&&Sb("8")?(d=d.style,Kb?d.MozBoxSizing="border-box":Lb?d.WebkitBoxSizing="border-box":d.boxSizing="border-box",d.width=Math.max(k.width,0)+"px",d.height=Math.max(k.height, 0)+"px"):(b=d.style,c?(c=rh(d,"padding"),d=uh(d),b.pixelWidth=k.width-d.left-c.left-c.right-d.right,b.pixelHeight=k.height-d.top-c.top-c.bottom-d.bottom):(b.pixelWidth=k.width,b.pixelHeight=k.height)))}}l.xl=function(b){b.preventDefault();jr(this)};function jr(b){ch(b.element,"ol-collapsed");b.i?Ug(b.A,b.u):Ug(b.u,b.A);b.i=!b.i;var c=b.f;b.i||null!==c.c||(c.Uc(),hr(b),Vc(c,"postrender",function(){ir(this)},!1,b))}l.wl=function(){return this.j}; l.zl=function(b){this.j!==b&&(this.j=b,ch(this.element,"ol-uncollapsible"),!b&&this.i&&jr(this))};l.yl=function(b){this.j&&this.i!==b&&jr(this)};l.vl=function(){return this.i};function kr(b){b=m(b)?b:{};var c=m(b.className)?b.className:"ol-scale-line";this.l=Mg("DIV",c+"-inner");this.j=Mg("DIV",c+" ol-unselectable",this.l);this.u=null;this.A=m(b.minWidth)?b.minWidth:64;this.f=!1;this.K=void 0;this.G="";this.i=null;wh.call(this,{element:this.j,render:m(b.render)?b.render:lr,target:b.target});x(this,id("units"),this.$,!1,this);this.T(b.units||"metric")}w(kr,wh);var mr=[1,2,5];kr.prototype.C=function(){return this.get("units")}; function lr(b){b=b.frameState;null===b?this.u=null:this.u=b.viewState;nr(this)}kr.prototype.$=function(){nr(this)};kr.prototype.T=function(b){this.set("units",b)}; function nr(b){var c=b.u;if(null===c)b.f&&(oh(b.j,!1),b.f=!1);else{var d=c.center,e=c.projection,c=e.getPointResolution(c.resolution,d),f=e.b,g=b.C();"degrees"!=f||"metric"!=g&&"imperial"!=g&&"us"!=g&&"nautical"!=g?"degrees"!=f&&"degrees"==g?(null===b.i&&(b.i=Ee(e,Ae("EPSG:4326"))),d=Math.cos(Zb(b.i(d)[1])),e=we.radius,e/=xe[f],c*=180/(Math.PI*d*e)):b.i=null:(b.i=null,d=Math.cos(Zb(d[1])),c*=Math.PI*d*we.radius/180);d=b.A*c;f="";"degrees"==g?d<1/60?(f="\u2033",c*=3600):1>d?(f="\u2032",c*=60):f="\u00b0": "imperial"==g?.9144>d?(f="in",c/=.0254):1609.344>d?(f="ft",c/=.3048):(f="mi",c/=1609.344):"nautical"==g?(c/=1852,f="nm"):"metric"==g?1>d?(f="mm",c*=1E3):1E3>d?f="m":(f="km",c/=1E3):"us"==g&&(.9144>d?(f="in",c*=39.37):1609.344>d?(f="ft",c/=.30480061):(f="mi",c/=1609.3472));for(d=3*Math.floor(Math.log(b.A*c)/Math.log(10));;){e=mr[d%3]*Math.pow(10,Math.floor(d/3));g=Math.round(e/c);if(isNaN(g)){oh(b.j,!1);b.f=!1;return}if(g>=b.A)break;++d}c=e+" "+f;b.G!=c&&(b.l.innerHTML=c,b.G=c);b.K!=g&&(b.l.style.width= g+"px",b.K=g);b.f||(oh(b.j,!0),b.f=!0)}};function or(b){nc.call(this);this.b=b;this.a={}}w(or,nc);var pr=[];or.prototype.Ra=function(b,c,d,e){ga(c)||(c&&(pr[0]=c.toString()),c=pr);for(var f=0;fd.height?(this.j=1,d=new eh(0,0,e,0)):(this.j=Ar,d=new eh(0,0,0,c));this.f.a=d||new eh(NaN,NaN,NaN,NaN);this.u=!0}b=b.frameState.viewState.resolution;b!==this.i&&(this.i=b,b=1-Qf(this.b.Y())(b),d=this.f,c=Vg(this.element),1==this.j?ih(c,d.a.left+d.a.width*b):ih(c, d.a.left,d.a.top+d.a.height*b))}}l.Yj=function(b){var c=this.b,d=c.Y(),e=d.Da();c.Oa(ag({resolution:e,duration:this.A,easing:Vf}));b=Cr(this,b.offsetX-this.l[0]/2,b.offsetY-this.l[1]/2);b=Dr(this,b);d.Yb(d.constrainResolution(b))};l.ak=function(){Uf(this.b.Y(),1)};l.Zj=function(b){b=Cr(this,b.left,b.top);this.i=Dr(this,b);this.b.Y().Yb(this.i)};l.$j=function(){var b=this.b,c=b.Y();Uf(c,-1);b.Oa(ag({resolution:this.i,duration:this.A,easing:Vf}));b=c.constrainResolution(this.i);c.Yb(b)}; function Cr(b,c,d){var e=b.f.a;return Wb(1===b.j?(c-e.left)/e.width:(d-e.top)/e.height,0,1)}function Dr(b,c){return Pf(b.b.Y())(1-c)};function Er(b){b=m(b)?b:{};this.f=m(b.extent)?b.extent:null;var c=m(b.className)?b.className:"ol-zoom-extent",d=Mg("BUTTON",{type:"button",title:m(b.tipLabel)?b.tipLabel:"Fit to extent"},m(b.label)?b.label:"E");x(d,"click",this.i,!1,this);c=Mg("DIV",c+" ol-unselectable ol-control",d);wh.call(this,{element:c,target:b.target})}w(Er,wh);Er.prototype.i=function(b){b.preventDefault();var c=this.b;b=c.Y();var d=null===this.f?b.g.R():this.f,c=c.Ca();b.af(d,c)};function Fr(b){gd.call(this);b=m(b)?b:{};this.b=null;x(this,id("tracking"),this.$k,!1,this);this.tf(m(b.tracking)?b.tracking:!1)}w(Fr,gd);l=Fr.prototype;l.X=function(){this.tf(!1);Fr.aa.X.call(this)}; l.vn=function(b){b=b.a;if(null!=b.alpha){var c=Zb(b.alpha);this.set("alpha",c);"boolean"==typeof b.absolute&&b.absolute?this.set("heading",c):null!=b.webkitCompassHeading&&null!=b.webkitCompassAccuracy&&-1!=b.webkitCompassAccuracy&&this.set("heading",Zb(b.webkitCompassHeading))}null!=b.beta&&this.set("beta",Zb(b.beta));null!=b.gamma&&this.set("gamma",Zb(b.gamma));this.s()};l.ej=function(){return this.get("alpha")};l.hj=function(){return this.get("beta")};l.qj=function(){return this.get("gamma")}; l.Zk=function(){return this.get("heading")};l.Ig=function(){return this.get("tracking")};l.$k=function(){if(fj){var b=this.Ig();b&&null===this.b?this.b=x(ba,"deviceorientation",this.vn,!1,this):b||null===this.b||(Xc(this.b),this.b=null)}};l.tf=function(b){this.set("tracking",b)};function Gr(){this.defaultDataProjection=null}function Hr(b,c,d){var e;m(d)&&(e={dataProjection:m(d.dataProjection)?d.dataProjection:b.Ga(c),featureProjection:d.featureProjection});return Ir(b,e)}function Ir(b,c){var d;m(c)&&(d={featureProjection:c.featureProjection,dataProjection:null!=c.dataProjection?c.dataProjection:b.defaultDataProjection,rightHanded:c.rightHanded});return d} function Jr(b,c,d){var e=m(d)?Ae(d.featureProjection):null;d=m(d)?Ae(d.dataProjection):null;return null===e||null===d||Se(e,d)?b:b instanceof Xe?(c?b.clone():b).transform(c?e:d,c?d:e):We(c?b.slice():b,c?e:d,c?d:e)};function Kr(){this.defaultDataProjection=null}w(Kr,Gr);function Lr(b){return la(b)?b:ia(b)?(b=$n(b),m(b)?b:null):null}l=Kr.prototype;l.V=function(){return"json"};l.Fb=function(b,c){return this.Pc(Lr(b),Hr(this,b,c))};l.ra=function(b,c){return this.Ff(Lr(b),Hr(this,b,c))};l.Qc=function(b,c){return this.th(Lr(b),Hr(this,b,c))};l.Ga=function(b){return this.zh(Lr(b))};l.Dd=function(b,c){return ao(this.Vc(b,c))};l.Gb=function(b,c){return ao(this.Le(b,c))};l.Wc=function(b,c){return ao(this.Ne(b,c))};function Mr(b){b=m(b)?b:{};this.defaultDataProjection=null;this.a=b.geometryName}w(Mr,Kr); function Nr(b,c){if(null===b)return null;var d;if(ja(b.x)&&ja(b.y))d="Point";else if(null!=b.points)d="MultiPoint";else if(null!=b.paths)d=1===b.paths.length?"LineString":"MultiLineString";else if(null!=b.rings){var e=b.rings,f=Or(b),g=[];d=[];var h,k;h=0;for(k=e.length;hc)throw Error("Bad port number "+c);b.Oc=c}else b.Oc=null}function nt(b,c,d){c instanceof pt?(b.a=c,vt(b.a,b.ec)):(d||(c=qt(c,wt)),b.a=new pt(c,0,b.ec))}function xt(b){return b instanceof kt?b.clone():new kt(b,void 0)} function yt(b,c){b instanceof kt||(b=xt(b));c instanceof kt||(c=xt(c));var d=b,e=c,f=d.clone(),g=!!e.Wb;g?lt(f,e.Wb):g=!!e.yc;g?f.yc=e.yc:g=!!e.vb;g?f.vb=e.vb:g=null!=e.Oc;var h=e.qb;if(g)mt(f,e.Oc);else if(g=!!e.qb)if("/"!=h.charAt(0)&&(d.vb&&!d.qb?h="/"+h:(d=f.qb.lastIndexOf("/"),-1!=d&&(h=f.qb.substr(0,d+1)+h))),d=h,".."==d||"."==d)h="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){for(var h=0==d.lastIndexOf("/",0),d=d.split("/"),k=[],n=0;n>4&15).toString(16)+(b&15).toString(16)} var rt=/[#\/\?@]/g,tt=/[\#\?:]/g,st=/[\#\?]/g,wt=/[\#\?@]/g,ut=/#/g;function pt(b,c,d){this.a=b||null;this.b=!!d}function At(b){b.pa||(b.pa=new wi,b.Aa=0,b.a&&lo(b.a,function(c,d){b.add(decodeURIComponent(c.replace(/\+/g," ")),d)}))}l=pt.prototype;l.pa=null;l.Aa=null;l.ac=function(){At(this);return this.Aa};l.add=function(b,c){At(this);this.a=null;b=Bt(this,b);var d=this.pa.get(b);d||this.pa.set(b,d=[]);d.push(c);this.Aa++;return this}; l.remove=function(b){At(this);b=Bt(this,b);return yi(this.pa.b,b)?(this.a=null,this.Aa-=this.pa.get(b).length,this.pa.remove(b)):!1};l.clear=function(){this.pa=this.a=null;this.Aa=0};l.wa=function(){At(this);return 0==this.Aa};function Ct(b,c){At(b);c=Bt(b,c);return yi(b.pa.b,c)}l.O=function(){At(this);for(var b=this.pa.mb(),c=this.pa.O(),d=[],e=0;ee;++e){var f=parseInt(d[e],10).toString(16);d[e]=1==f.length?"0"+f:f}js(b,d.join(""))} function Gu(b,c,d){rp({node:b},Hu,Iu,[c],d)}function Ju(b,c,d){var e={node:b};null!=c.ha&&b.setAttribute("id",c.ha);b=c.P();var f=c.c;m(f)&&(f=f.call(c,0),null!==f&&0f?~(f<<1):f<<1;d="";e=0;for(f=b.length;e>=5;h=g+63;k+=String.fromCharCode(h);d+=k}return d} function Tv(b,c){var d=m(c)?c:1E5,e=[],f=0,g=0,h,k;h=0;for(k=b.length;hn?(e.push(f),g=f=0):g+=5}f=0;for(g=e.length;f>1):h>>1;f=0;for(g=e.length;f=b||"."==b&&!d} function uw(b){var c=b.b.charAt(++b.a),d={position:b.a,value:c};if("("==c)d.type=2;else if(","==c)d.type=5;else if(")"==c)d.type=3;else if(ww(c)||"-"==c){d.type=4;var e,c=b.a,f=!1,g=!1;do{if("."==e)f=!0;else if("e"==e||"E"==e)g=!0;e=b.b.charAt(++b.a)}while(ww(e,f)||!g&&("e"==e||"E"==e)||g&&("-"==e||"+"==e));b=parseFloat(b.b.substring(c,b.a--));d.value=b}else if("a"<=c&&"z">=c||"A"<=c&&"Z">=c){d.type=1;c=b.a;do e=b.b.charAt(++b.a);while("a"<=e&&"z">=e||"A"<=e&&"Z">=e);b=b.b.substring(c,b.a--).toUpperCase(); d.value=b}else{if(" "==c||"\t"==c||"\r"==c||"\n"==c)return uw(b);if(""===c)d.type=6;else throw Error("Unexpected character: "+c);}return d}function sw(b){this.b=b}l=sw.prototype;l.match=function(b){if(b=this.a.type==b)this.a=uw(this.b);return b}; function vw(b){var c=b.a;if(b.match(1)){var d=c.value;if("GEOMETRYCOLLECTION"==d){a:{if(b.match(2)){c=[];do c.push(vw(b));while(b.match(5));if(b.match(3)){b=c;break a}}else if(xw(b)){b=[];break a}throw Error(yw(b));}return new an(b)}var e=zw[d],c=Aw[d];if(!m(e)||!m(c))throw Error("Invalid geometry type: "+d);b=e.call(b);return new c(b)}throw Error(yw(b));}l.Cf=function(){if(this.match(2)){var b=Bw(this);if(this.match(3))return b}else if(xw(this))return null;throw Error(yw(this));}; l.Bf=function(){if(this.match(2)){var b=Cw(this);if(this.match(3))return b}else if(xw(this))return[];throw Error(yw(this));};l.Df=function(){if(this.match(2)){var b=Dw(this);if(this.match(3))return b}else if(xw(this))return[];throw Error(yw(this));};l.zn=function(){if(this.match(2)){var b;if(2==this.a.type)for(b=[this.Cf()];this.match(5);)b.push(this.Cf());else b=Cw(this);if(this.match(3))return b}else if(xw(this))return[];throw Error(yw(this));}; l.yn=function(){if(this.match(2)){var b=Dw(this);if(this.match(3))return b}else if(xw(this))return[];throw Error(yw(this));};l.An=function(){if(this.match(2)){for(var b=[this.Df()];this.match(5);)b.push(this.Df());if(this.match(3))return b}else if(xw(this))return[];throw Error(yw(this));};function Bw(b){for(var c=[],d=0;2>d;++d){var e=b.a;if(b.match(4))c.push(e.value);else break}if(2==c.length)return c;throw Error(yw(b));}function Cw(b){for(var c=[Bw(b)];b.match(5);)c.push(Bw(b));return c} function Dw(b){for(var c=[b.Bf()];b.match(5);)c.push(b.Bf());return c}function xw(b){var c=1==b.a.type&&"EMPTY"==b.a.value;c&&(b.a=uw(b.b));return c}function yw(b){return"Unexpected `"+b.a.value+"` at position "+b.a.position+" in `"+b.b.b+"`"}var Aw={POINT:D,LINESTRING:N,POLYGON:F,MULTIPOINT:ln,MULTILINESTRING:O,MULTIPOLYGON:P},zw={POINT:sw.prototype.Cf,LINESTRING:sw.prototype.Bf,POLYGON:sw.prototype.Df,MULTIPOINT:sw.prototype.zn,MULTILINESTRING:sw.prototype.yn,MULTIPOLYGON:sw.prototype.An};function Ew(){this.version=void 0}w(Ew,xv);Ew.prototype.b=function(b){for(b=b.firstChild;null!==b;b=b.nextSibling)if(1==b.nodeType)return this.a(b);return null};Ew.prototype.a=function(b){this.version=Ca(b.getAttribute("version"));b=V({version:this.version},Fw,b,[]);return m(b)?b:null};function Gw(b,c){return V({},Hw,b,c)}function Iw(b,c){return V({},Jw,b,c)}function Kw(b,c){var d=Gw(b,c);if(m(d)){var e=[hs(b.getAttribute("width")),hs(b.getAttribute("height"))];d.size=e;return d}} function Lw(b,c){return V([],Mw,b,c)} var Nw=[null,"http://www.opengis.net/wms"],Fw=T(Nw,{Service:Q(function(b,c){return V({},Ow,b,c)}),Capability:Q(function(b,c){return V({},Pw,b,c)})}),Pw=T(Nw,{Request:Q(function(b,c){return V({},Qw,b,c)}),Exception:Q(function(b,c){return V([],Rw,b,c)}),Layer:Q(function(b,c){return V({},Sw,b,c)})}),Ow=T(Nw,{Name:Q(Y),Title:Q(Y),Abstract:Q(Y),KeywordList:Q(Lw),OnlineResource:Q(wv),ContactInformation:Q(function(b,c){return V({},Tw,b,c)}),Fees:Q(Y),AccessConstraints:Q(Y),LayerLimit:Q(gs),MaxWidth:Q(gs), MaxHeight:Q(gs)}),Tw=T(Nw,{ContactPersonPrimary:Q(function(b,c){return V({},Uw,b,c)}),ContactPosition:Q(Y),ContactAddress:Q(function(b,c){return V({},Vw,b,c)}),ContactVoiceTelephone:Q(Y),ContactFacsimileTelephone:Q(Y),ContactElectronicMailAddress:Q(Y)}),Uw=T(Nw,{ContactPerson:Q(Y),ContactOrganization:Q(Y)}),Vw=T(Nw,{AddressType:Q(Y),Address:Q(Y),City:Q(Y),StateOrProvince:Q(Y),PostCode:Q(Y),Country:Q(Y)}),Rw=T(Nw,{Format:hp(Y)}),Sw=T(Nw,{Name:Q(Y),Title:Q(Y),Abstract:Q(Y),KeywordList:Q(Lw),CRS:jp(Y), EX_GeographicBoundingBox:Q(function(b,c){var d=V({},Ww,b,c);if(m(d)){var e=d.westBoundLongitude,f=d.southBoundLatitude,g=d.eastBoundLongitude,d=d.northBoundLatitude;return m(e)&&m(f)&&m(g)&&m(d)?[e,f,g,d]:void 0}}),BoundingBox:jp(function(b){var c=[fs(b.getAttribute("minx")),fs(b.getAttribute("miny")),fs(b.getAttribute("maxx")),fs(b.getAttribute("maxy"))],d=[fs(b.getAttribute("resx")),fs(b.getAttribute("resy"))];return{crs:b.getAttribute("CRS"),extent:c,res:d}}),Dimension:jp(function(b){return{name:b.getAttribute("name"), units:b.getAttribute("units"),unitSymbol:b.getAttribute("unitSymbol"),"default":b.getAttribute("default"),multipleValues:cs(b.getAttribute("multipleValues")),nearestValue:cs(b.getAttribute("nearestValue")),current:cs(b.getAttribute("current")),values:Y(b)}}),Attribution:Q(function(b,c){return V({},Xw,b,c)}),AuthorityURL:jp(function(b,c){var d=Gw(b,c);if(m(d))return d.name=b.getAttribute("name"),d}),Identifier:jp(Y),MetadataURL:jp(function(b,c){var d=Gw(b,c);if(m(d))return d.type=b.getAttribute("type"), d}),DataURL:jp(Gw),FeatureListURL:jp(Gw),Style:jp(function(b,c){return V({},Yw,b,c)}),MinScaleDenominator:Q(es),MaxScaleDenominator:Q(es),Layer:jp(function(b,c){var d=c[c.length-1],e=V({},Sw,b,c);if(m(e)){var f=cs(b.getAttribute("queryable"));m(f)||(f=d.queryable);e.queryable=m(f)?f:!1;f=hs(b.getAttribute("cascaded"));m(f)||(f=d.cascaded);e.cascaded=f;f=cs(b.getAttribute("opaque"));m(f)||(f=d.opaque);e.opaque=m(f)?f:!1;f=cs(b.getAttribute("noSubsets"));m(f)||(f=d.noSubsets);e.noSubsets=m(f)?f:!1; f=fs(b.getAttribute("fixedWidth"));m(f)||(f=d.fixedWidth);e.fixedWidth=f;f=fs(b.getAttribute("fixedHeight"));m(f)||(f=d.fixedHeight);e.fixedHeight=f;Sa(["Style","CRS","AuthorityURL"],function(b){var c=d[b];if(m(c)){var f=Bb(e,b),f=f.concat(c);e[b]=f}});Sa("EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" "),function(b){m(e[b])||(e[b]=d[b])});return e}})}),Xw=T(Nw,{Title:Q(Y),OnlineResource:Q(wv),LogoURL:Q(Kw)}),Ww=T(Nw,{westBoundLongitude:Q(es), eastBoundLongitude:Q(es),southBoundLatitude:Q(es),northBoundLatitude:Q(es)}),Qw=T(Nw,{GetCapabilities:Q(Iw),GetMap:Q(Iw),GetFeatureInfo:Q(Iw)}),Jw=T(Nw,{Format:jp(Y),DCPType:jp(function(b,c){return V({},Zw,b,c)})}),Zw=T(Nw,{HTTP:Q(function(b,c){return V({},$w,b,c)})}),$w=T(Nw,{Get:Q(Gw),Post:Q(Gw)}),Yw=T(Nw,{Name:Q(Y),Title:Q(Y),Abstract:Q(Y),LegendURL:jp(Kw),StyleSheetURL:Q(Gw),StyleURL:Q(Gw)}),Hw=T(Nw,{Format:Q(Y),OnlineResource:Q(wv)}),Mw=T(Nw,{Keyword:hp(Y)});function ax(){this.c="http://mapserver.gis.umn.edu/mapserver";this.a=new vs;this.defaultDataProjection=null}w(ax,Yr); function bx(b,c,d){c.namespaceURI=b.c;var e=Qo(c),f=[];if(0===c.childNodes.length)return f;"msGMLOutput"==e&&Sa(c.childNodes,function(b){if(1===b.nodeType){var c=d[0],e=b.localName,n=RegExp,p;p="_layer".replace(/([-()\[\]{}+?*.$\^|,:#=c.l&&c.cancel())}this.u?this.u.call(this.A,this):this.B=!0;this.a||(b=new Fx,Gx(this),Hx(this,!1,b))}};Ex.prototype.v=function(b,c){this.j=!1;Hx(this,b,c)};function Hx(b,c,d){b.a=!0;b.c=d;b.f=!c;Ix(b)} function Gx(b){if(b.a){if(!b.B)throw new Jx;b.B=!1}}Ex.prototype.$c=function(b){Gx(this);Hx(this,!0,b)};function Kx(b,c,d,e){b.g.push([c,d,e]);b.a&&Ix(b)}Ex.prototype.then=function(b,c,d){var e,f,g=new Ln(function(b,c){e=b;f=c});Kx(this,e,function(b){b instanceof Fx?g.cancel():f(b)});return g.then(b,c,d)};Cn(Ex);function Lx(b){return Va(b.g,function(b){return ka(b[1])})} function Ix(b){if(b.i&&b.a&&Lx(b)){var c=b.i,d=Mx[c];d&&(ba.clearTimeout(d.ha),delete Mx[c]);b.i=0}b.b&&(b.b.l--,delete b.b);for(var c=b.c,e=d=!1;b.g.length&&!b.j;){var f=b.g.shift(),g=f[0],h=f[1],f=f[2];if(g=b.f?h:g)try{var k=g.call(f||b.A,c);m(k)&&(b.f=b.f&&(k==c||k instanceof Error),b.c=c=k);Dn(c)&&(e=!0,b.j=!0)}catch(n){c=n,b.f=!0,Lx(b)||(d=!0)}}b.c=c;e&&(k=ra(b.v,b,!0),e=ra(b.v,b,!1),c instanceof Ex?(Kx(c,k,e),c.G=!0):c.then(k,e));d&&(c=new Nx(c),Mx[c.ha]=c,b.i=c.ha)} function Jx(){xa.call(this)}w(Jx,xa);Jx.prototype.message="Deferred has already fired";Jx.prototype.name="AlreadyCalledError";function Fx(){xa.call(this)}w(Fx,xa);Fx.prototype.message="Deferred was canceled";Fx.prototype.name="CanceledError";function Nx(b){this.ha=ba.setTimeout(ra(this.b,this),0);this.a=b}Nx.prototype.b=function(){delete Mx[this.ha];throw this.a;};var Mx={};function Ox(b,c){m(b.name)?(this.name=b.name,this.code=Px[b.name]):(this.code=b.code,this.name=Qx(b.code));xa.call(this,Ba("%s %s",this.name,c))}w(Ox,xa);function Qx(b){var c=wb(Px,function(c){return b==c});if(!m(c))throw Error("Invalid code: "+b);return c}var Px={AbortError:3,EncodingError:5,InvalidModificationError:9,InvalidStateError:7,NotFoundError:1,NotReadableError:4,NoModificationAllowedError:6,PathExistsError:12,QuotaExceededError:10,SecurityError:2,SyntaxError:8,TypeMismatchError:11};function Rx(b,c){sc.call(this,b.type,c)}w(Rx,sc);function Sx(){ad.call(this);this.gb=new FileReader;this.gb.onloadstart=ra(this.a,this);this.gb.onprogress=ra(this.a,this);this.gb.onload=ra(this.a,this);this.gb.onabort=ra(this.a,this);this.gb.onerror=ra(this.a,this);this.gb.onloadend=ra(this.a,this)}w(Sx,ad);Sx.prototype.getError=function(){return this.gb.error&&new Ox(this.gb.error,"reading file")};Sx.prototype.a=function(b){C(this,new Rx(b,this))};Sx.prototype.X=function(){Sx.aa.X.call(this);delete this.gb}; function Tx(b){var c=new Ex;b.Ra("loadend",sa(function(b,c){var f=c.gb.result,g=c.getError();null==f||g?(Gx(b),Hx(b,!1,g)):b.$c(f);c.jd()},c,b));return c};function Ux(b){b=m(b)?b:{};Uk.call(this,{handleEvent:pe});this.i=m(b.formatConstructors)?b.formatConstructors:[];this.A=m(b.projection)?Ae(b.projection):null;this.g=null;this.f=void 0}w(Ux,Uk);Ux.prototype.X=function(){m(this.f)&&Xc(this.f);Ux.aa.X.call(this)};Ux.prototype.j=function(b){b=b.a.dataTransfer.files;var c,d,e;c=0;for(d=b.length;cb.Xa:b.g===hy&&(e=b.f[0].length>b.Xa,f=[b.f[0][0],b.f[0][b.f[0].length-2]]);if(e)for(var e=c.map,g=0,h=f.length;gb.Na,b.C(g,e);else if(b.g===hy){g=b.f[0];g.push(d.slice());if(f=g.length>b.Na)b.l=g[0];b.C(b.f,e)}qy(b);f&&b.U()} cy.prototype.U=function(){var b=ry(this),c=this.f,d=b.Z();this.g===jy?(c.pop(),this.C(c,d)):this.g===hy&&(c[0].pop(),c[0].push(c[0][0]),this.C(c,d));"MultiPoint"===this.ba?b.Sa(new ln([c])):"MultiLineString"===this.ba?b.Sa(new O([c])):"MultiPolygon"===this.ba&&b.Sa(new P([c]));C(this,new by("drawend",b));null===this.rb||this.rb.push(b);null===this.tb||this.tb.vd(b)};function ry(b){b.l=null;var c=b.j;null!==c&&(b.j=null,b.G=null,b.u=null,b.qa.ca().clear(!0));return c}cy.prototype.wc=oe; function qy(b){var c=[];null===b.j||c.push(b.j);null===b.u||c.push(b.u);null===b.G||c.push(b.G);b=b.qa.ca();b.clear(!0);b.Bc(c)}cy.prototype.ub=function(){var b=this.v,c=this.b();null!==b&&c||ry(this);this.qa.setMap(c?b:null)};function gy(b){var c;"Point"===b||"MultiPoint"===b?c=iy:"LineString"===b||"MultiLineString"===b?c=jy:"Polygon"===b||"MultiPolygon"===b?c=hy:"Circle"===b&&(c=oy);return c}var iy="Point",jy="LineString",hy="Polygon",oy="Circle";function sy(b,c,d){sc.call(this,b);this.features=c;this.mapBrowserPointerEvent=d}w(sy,sc); function ty(b){gl.call(this,{handleDownEvent:uy,handleDragEvent:vy,handleEvent:wy,handleUpEvent:xy});this.ea=m(b.deleteCondition)?b.deleteCondition:ue(cl,bl);this.ba=this.g=null;this.U=[0,0];this.C=!1;this.f=new xp;this.u=m(b.pixelTolerance)?b.pixelTolerance:10;this.T=!1;this.j=null;this.G=new M({source:new W({useSpatialIndex:!1,wrapX:m(b.wrapX)?b.wrapX:!1}),style:m(b.style)?b.style:yy(),updateWhileAnimating:!0,updateWhileInteracting:!0});this.K={Point:this.Ol,LineString:this.Rg,LinearRing:this.Rg, Polygon:this.Pl,MultiPoint:this.Ml,MultiLineString:this.Ll,MultiPolygon:this.Nl,GeometryCollection:this.Kl};this.l=b.features;this.l.forEach(this.Qg,this);x(this.l,"add",this.Il,!1,this);x(this.l,"remove",this.Jl,!1,this)}w(ty,gl);l=ty.prototype;l.Qg=function(b){var c=b.Z();m(this.K[c.V()])&&this.K[c.V()].call(this,b,c);b=this.v;null===b||zy(this,this.U,b)};l.setMap=function(b){this.G.setMap(b);ty.aa.setMap.call(this,b)};l.Il=function(b){this.Qg(b.element)}; l.Jl=function(b){var c=b.element;b=this.f;var d,e=[];Bp(b,c.Z().R(),function(b){c===b.feature&&e.push(b)});for(d=e.length-1;0<=d;--d)b.remove(e[d]);null!==this.g&&0===this.l.Rb()&&(this.G.ca().Mc(this.g),this.g=null)};l.Ol=function(b,c){var d=c.W(),d={feature:b,geometry:c,ia:[d,d]};this.f.oa(c.R(),d)};l.Ml=function(b,c){var d=c.W(),e,f,g;f=0;for(g=d.length;fd?h[1]:h[0]);Ay(b,k);d={};d[ma(h)]=!0;c=1;for(n=g.length;cd&&(b.index+=f)})}function yy(){var b=Nl();return function(){return b.Point}};function Dy(b,c,d,e){sc.call(this,b);this.selected=c;this.deselected=d;this.mapBrowserEvent=e}w(Dy,sc); function Ey(b){Uk.call(this,{handleEvent:Fy});b=m(b)?b:{};this.A=m(b.condition)?b.condition:bl;this.j=m(b.addCondition)?b.addCondition:oe;this.C=m(b.removeCondition)?b.removeCondition:oe;this.U=m(b.toggleCondition)?b.toggleCondition:dl;this.l=m(b.multi)?b.multi:!1;this.g=m(b.filter)?b.filter:pe;var c;if(m(b.layers))if(ka(b.layers))c=b.layers;else{var d=b.layers;c=function(b){return Ya(d,b)}}else c=pe;this.i=c;this.f=new M({source:new W({useSpatialIndex:!1,wrapX:b.wrapX}),style:m(b.style)?b.style: Gy(),updateWhileAnimating:!0,updateWhileInteracting:!0});b=this.f.ca().c;x(b,"add",this.u,!1,this);x(b,"remove",this.K,!1,this)}w(Ey,Uk);Ey.prototype.G=function(){return this.f.ca().c}; function Fy(b){if(!this.A(b))return!0;var c=this.j(b),d=this.C(b),e=this.U(b),f=!c&&!d&&!e,g=b.map,h=this.f.ca().c,k=[],n=[],p=!1;if(f)g.bf(b.pixel,function(b,c){if(this.g(b,c))return n.push(b),!this.l},this,this.i),0f?h[1]:h[0],d=c.ya(n),d=[Math.round(d[0]),Math.round(d[1])]);c=n;g&&(b.coordinate=c.slice(0,2),b.pixel=d);return hl.call(this,b)} function Jy(){var b=sb(this.u);b.length&&(Sa(b,this.Vh,this),this.u={});return!1}function Ky(b,c){return ud(this.K,b.ia)-ud(this.K,c.ia)};function Z(b){b=m(b)?b:{};var c=Cb(b);delete c.gradient;delete c.radius;delete c.blur;delete c.shadow;delete c.weight;M.call(this,c);this.f=null;this.$=m(b.shadow)?b.shadow:250;this.G=void 0;this.v=null;x(this,id("gradient"),this.ek,!1,this);this.Jh(m(b.gradient)?b.gradient:Ly);this.Fh(m(b.blur)?b.blur:15);this.Wg(m(b.radius)?b.radius:8);x(this,[id("blur"),id("radius")],this.Bg,!1,this);this.Bg();var d=m(b.weight)?b.weight:"weight",e;ia(d)?e=function(b){return b.get(d)}:e=d;this.g(ra(function(b){b= e(b);b=m(b)?Wb(b,0,1):1;var c=255*b|0,d=this.v[c];m(d)||(d=[new Jl({image:new Ck({opacity:b,src:this.G})})],this.v[c]=d);return d},this));this.set("renderOrder",null);x(this,"render",this.wk,!1,this)}w(Z,M);var Ly=["#00f","#0ff","#0f0","#ff0","#f00"];l=Z.prototype;l.jg=function(){return this.get("blur")};l.ng=function(){return this.get("gradient")};l.Vg=function(){return this.get("radius")}; l.ek=function(){for(var b=this.ng(),c=Vi(1,256),d=c.createLinearGradient(0,0,1,256),e=1/(b.length-1),f=0,g=b.length;fTerms of Use'}); ez.prototype.l=function(b){if(200!=b.statusCode||"OK"!=b.statusDescription||"ValidCredentials"!=b.authenticationResultCode||1!=b.resourceSets.length||1!=b.resourceSets[0].resources.length)Fh(this,"error");else{var c=b.brandLogoUri;-1==c.indexOf("https")&&(c=c.replace("http","https"));var d=b.resourceSets[0].resources[0],e=-1==this.f?d.zoomMax:this.f;b=hg(this.j);var f=Ph({extent:b,minZoom:d.zoomMin,maxZoom:e,tileSize:d.imageWidth==d.imageHeight?d.imageWidth:[d.imageWidth,d.imageHeight]});this.tileGrid= f;var g=this.i;this.tileUrlFunction=$y(Ua(d.imageUrlSubdomains,function(b){var c=[0,0,0],e=d.imageUrl.replace("{subdomain}",b).replace("{culture}",g);return function(b){if(null!==b)return bg(b[0],b[1],-b[2]-1,c),e.replace("{quadkey}",dg(c))}}));if(d.imageryProviders){var h=Ee(Ae("EPSG:4326"),this.j);b=Ua(d.imageryProviders,function(b){var c=b.attribution,d={};Sa(b.coverageAreas,function(b){var c=b.zoomMin,g=Math.min(b.zoomMax,e);b=b.bbox;b=me([b[1],b[0],b[3],b[2]],h);var k,n;for(k=c;k<=g;++k)n=k.toString(), c=jg(f,b,k),n in d?d[n].push(c):d[n]=[c]});return new pg({html:c,tileRanges:d})});b.push(fz);this.g=b}this.U=c;Fh(this,"ready")}};function gz(b){W.call(this,{attributions:b.attributions,extent:b.extent,logo:b.logo,projection:b.projection});this.K=void 0;this.ba=m(b.distance)?b.distance:20;this.C=[];this.u=b.source;this.u.D("change",gz.prototype.qa,this)}w(gz,W);gz.prototype.ea=function(){return this.u};gz.prototype.hc=function(b,c,d){c!==this.K&&(this.clear(),this.K=c,this.u.hc(b,c,d),hz(this),this.Bc(this.C))};gz.prototype.qa=function(){this.clear();hz(this);this.Bc(this.C);this.s()}; function hz(b){if(m(b.K)){b.C.length=0;for(var c=Ld(),d=b.ba*b.K,e=b.u.Lc(),f={},g=0,h=e.length;gk*h?g*f/(k*p):h*f/(n*p);d=ee(d);e={OPERATION:this.ea?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.i,SETDISPLAYWIDTH:Math.round(e[0]),SETDISPLAYHEIGHT:Math.round(e[1]),SETVIEWSCALE:f,SETVIEWCENTERX:d[0],SETVIEWCENTERY:d[1]};Gb(e,c);return mo(oo([b],e))};l.gm=function(b){this.c=null;this.b=b;this.s()};function kz(b){var c=m(b.attributions)?b.attributions:null,d=b.imageExtent,e,f;m(b.imageSize)&&(e=ge(d)/b.imageSize[1],f=[e]);var g=m(b.crossOrigin)?b.crossOrigin:null,h=m(b.imageLoadFunction)?b.imageLoadFunction:zn;tn.call(this,{attributions:c,logo:b.logo,projection:Ae(b.projection),resolutions:f});this.b=new yx(d,e,1,c,b.url,g,h);x(this.b,"change",this.l,!1,this)}w(kz,tn);kz.prototype.mc=function(b){return ie(b,this.b.R())?this.b:null};function lz(b){b=m(b)?b:{};tn.call(this,{attributions:b.attributions,logo:b.logo,projection:b.projection,resolutions:b.resolutions});this.ba=m(b.crossOrigin)?b.crossOrigin:null;this.f=b.url;this.u=m(b.imageLoadFunction)?b.imageLoadFunction:zn;this.c=b.params;this.i=!0;mz(this);this.$=b.serverType;this.ea=m(b.hidpi)?b.hidpi:!0;this.b=null;this.C=[0,0];this.T=0;this.K=m(b.ratio)?b.ratio:1.5}w(lz,tn);var nz=[101,101];l=lz.prototype; l.nm=function(b,c,d,e){if(m(this.f)){var f=fe(b,c,0,nz),g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.c.LAYERS};Gb(g,this.c,e);e=Math.floor((f[3]-b[1])/c);g[this.i?"I":"X"]=Math.floor((b[0]-f[0])/c);g[this.i?"J":"Y"]=e;return oz(this,f,nz,1,Ae(d),g)}};l.pm=function(){return this.c}; l.mc=function(b,c,d,e){if(!m(this.f))return null;c=un(this,c);1==d||this.ea&&m(this.$)||(d=1);var f=this.b;if(null!==f&&this.T==this.a&&f.resolution==c&&f.g==d&&Ud(f.R(),b))return f;f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Gb(f,this.c);b=b.slice();var g=(b[0]+b[2])/2,h=(b[1]+b[3])/2;if(1!=this.K){var k=this.K*je(b)/2,n=this.K*ge(b)/2;b[0]=g-k;b[1]=h-n;b[2]=g+k;b[3]=h+n}var k=c/d,n=Math.ceil(je(b)/k),p=Math.ceil(ge(b)/k);b[0]=g-k*n/2;b[2]=g+k*n/2;b[1]=h- k*p/2;b[3]=h+k*p/2;this.C[0]=n;this.C[1]=p;e=oz(this,b,this.C,d,e,f);this.b=new yx(b,c,d,this.g,e,this.ba,this.u);this.T=this.a;x(this.b,"change",this.l,!1,this);return this.b};l.om=function(){return this.u}; function oz(b,c,d,e,f,g){g[b.i?"CRS":"SRS"]=f.a;"STYLES"in b.c||(g.STYLES=new String(""));if(1!=e)switch(b.$){case "geoserver":e=90*e+.5|0;g.FORMAT_OPTIONS=m(g.FORMAT_OPTIONS)?g.FORMAT_OPTIONS+(";dpi:"+e):"dpi:"+e;break;case "mapserver":g.MAP_RESOLUTION=90*e;break;case "carmentaserver":case "qgis":g.DPI=90*e}g.WIDTH=d[0];g.HEIGHT=d[1];d=f.f;var h;b.i&&"ne"==d.substr(0,2)?h=[c[1],c[0],c[3],c[2]]:h=c;g.BBOX=h.join(",");return mo(oo([b.f],g))}l.qm=function(){return this.f}; l.rm=function(b){this.b=null;this.u=b;this.s()};l.sm=function(b){b!=this.f&&(this.f=b,this.b=null,this.s())};l.tm=function(b){Gb(this.c,b);mz(this);this.b=null;this.s()};function mz(b){b.i=0<=Na(Ab(b.c,"VERSION","1.3.0"),"1.3")};function pz(b){var c=m(b.projection)?b.projection:"EPSG:3857",d=m(b.tileGrid)?b.tileGrid:Ph({extent:hg(c),maxZoom:b.maxZoom,tileSize:b.tileSize});cz.call(this,{attributions:b.attributions,crossOrigin:b.crossOrigin,logo:b.logo,projection:c,tileGrid:d,tileLoadFunction:b.tileLoadFunction,tilePixelRatio:b.tilePixelRatio,tileUrlFunction:az,wrapX:m(b.wrapX)?b.wrapX:!0});m(b.tileUrlFunction)?this.Fa(b.tileUrlFunction):m(b.urls)?this.Fa(Zy(b.urls)):m(b.url)&&this.f(b.url)}w(pz,cz);pz.prototype.f=function(b){this.Fa(Zy(bz(b)))};function qz(b){b=m(b)?b:{};var c;m(b.attributions)?c=b.attributions:c=[rz];pz.call(this,{attributions:c,crossOrigin:m(b.crossOrigin)?b.crossOrigin:"anonymous",opaque:!0,maxZoom:m(b.maxZoom)?b.maxZoom:19,tileLoadFunction:b.tileLoadFunction,url:m(b.url)?b.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:b.wrapX})}w(qz,pz);var rz=new pg({html:'© OpenStreetMap contributors.'});function sz(b){b=m(b)?b:{};var c=tz[b.layer];this.i=b.layer;pz.call(this,{attributions:c.attributions,crossOrigin:"anonymous",logo:"https://developer.mapquest.com/content/osm/mq_logo.png",maxZoom:c.maxZoom,opaque:!0,tileLoadFunction:b.tileLoadFunction,url:m(b.url)?b.url:"https://otile{1-4}-s.mqcdn.com/tiles/1.0.0/"+this.i+"/{z}/{x}/{y}.jpg"})}w(sz,pz); var uz=new pg({html:'Tiles Courtesy of MapQuest'}),tz={osm:{maxZoom:19,attributions:[uz,rz]},sat:{maxZoom:18,attributions:[uz,new pg({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,attributions:[uz,rz]}};sz.prototype.l=function(){return this.i};(function(){var b={},c={kb:b};(function(d){if("object"===typeof b&&"undefined"!==typeof c)c.kb=d();else{var e;"undefined"!==typeof window?e=window:"undefined"!==typeof global?e=global:"undefined"!==typeof self?e=self:e=this;e.cp=d()}})(function(){return function e(b,c,h){function k(p,r){if(!c[p]){if(!b[p]){var t="function"==typeof require&&require;if(!r&&t)return t(p,!0);if(n)return n(p,!0);t=Error("Cannot find module '"+p+"'");throw t.code="MODULE_NOT_FOUND",t;}t=c[p]={kb:{}};b[p][0].call(t.kb,function(c){var e= b[p][1][c];return k(e?e:c)},t,t.kb,e,b,c,h)}return c[p].kb}for(var n="function"==typeof require&&require,p=0;pthis.Hi;)this.Yc.shift().$c(null,null)};n.prototype.Xf=function(){if(0===this.Id&&0Stamen Design, under CC BY 3.0.'}),rz];function Gz(b){b=m(b)?b:{};var c=m(b.params)?b.params:{};cz.call(this,{attributions:b.attributions,crossOrigin:b.crossOrigin,logo:b.logo,projection:b.projection,tileGrid:b.tileGrid,tileLoadFunction:b.tileLoadFunction,tileUrlFunction:ra(this.xm,this),wrapX:m(b.wrapX)?b.wrapX:!0});var d=b.urls;!m(d)&&m(b.url)&&(d=bz(b.url));this.i=null!=d?d:[];this.f=c;this.l=Ld()}w(Gz,cz);l=Gz.prototype;l.um=function(){return this.f};l.dc=function(b,c,d){b=Gz.aa.dc.call(this,b,c,d);return 1==c?b:ld(b,c,this.c)}; l.vm=function(){return this.i};l.wm=function(b){b=m(b)?bz(b):null;this.ah(b)};l.ah=function(b){this.i=null!=b?b:[];this.s()}; l.xm=function(b,c,d){var e=this.tileGrid;null===e&&(e=Th(this,d));if(!(e.a.length<=b[0])){var f=Kh(e,b,this.l),g=md(e.Ja(b[0]),this.c);1!=c&&(g=ld(g,c,this.c));e={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};Gb(e,this.f);var h=this.i;0==h.length?b=void 0:(d=d.a.split(":").pop(),e.SIZE=g[0]+","+g[1],e.BBOX=f.join(","),e.BBOXSR=d,e.IMAGESR=d,e.DPI=Math.round(90*c),b=1==h.length?h[0]:h[Xb((b[1]<g||e>g;)f.push([Math.ceil(d/g),Math.ceil(e/g)]),g+=g;break;case "truncated":for(;d>g||e>g;)f.push([Math.ceil(d/g),Math.ceil(e/g)]),d>>=1,e>>=1}f.push([1,1]);f.reverse();for(var g=[1],h=[0],e=1,d=f.length;ethis.c||d+this.a>this.c)return null;e=dA(this,!1,b,c,d,e,g);if(null===e)return null;b=dA(this,!0,b,c,d,m(f)?f:qe,g);return{offsetX:e.offsetX,offsetY:e.offsetY,image:e.image,Cg:b.image}}; function dA(b,c,d,e,f,g,h){var k=c?b.i:b.g,n,p,q;p=0;for(q=k.length;p=c+this.a&&g.height>=d+this.a)return k={offsetX:g.x+this.a,offsetY:g.y+this.a,image:this.c},this.f[b]=k,e.call(f,this.g,g.x+this.a,g.y+this.a),b=h,c=c+this.a,d=d+this.a,f=e=void 0,g.width-c>g.height-d?(e={x:g.x+c,y:g.y,width:g.width-c,height:g.height},f={x:g.x,y:g.y+d,width:c,height:g.height-d},eA(this,b,e,f)):(e={x:g.x+c,y:g.y,width:g.width-c,height:d},f={x:g.x,y:g.y+d,width:g.width,height:g.height- d},eA(this,b,e,f)),k;return null};function eA(b,c,d,e){c=[c,1];0f&&(f=0);g=d.TileMatrixSetLink[f].TileMatrixSet; var h=d.Format[0];m(c.format)&&(h=c.format);f=Xa(d.Style,function(b){return m(c.style)?b.Title==c.style:b.isDefault});0>f&&(f=0);f=d.Style[f].Identifier;var k={};m(d.Dimension)&&Sa(d.Dimension,function(b){var c=b.Identifier,d=b["default"];m(d)||(d=b.values[0]);k[c]=d});var n=Wa(b.Contents.TileMatrixSet,function(b){return b.Identifier==g}),p;p=m(c.projection)?Ae(c.projection):Ae(n.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var q=d.WGS84BoundingBox,r,t;m(q)&&(t=Ae("EPSG:4326").R(), t=q[0]==t[0]&&q[2]==t[2],r=We(q,"EPSG:4326",p),q=p.R(),null===q||Ud(q,r)||(r=void 0));var n=Xz(n,r),v=[];r=c.requestEncoding;r=m(r)?r:"";if(b.hasOwnProperty("OperationsMetadata")&&b.OperationsMetadata.hasOwnProperty("GetTile")&&0!=r.lastIndexOf("REST",0))for(var d=b.OperationsMetadata.GetTile.DCP.HTTP.Get,q=0,B=d.length;q