243 lines
133 KiB
JavaScript
243 lines
133 KiB
JavaScript
(function(){var h=void 0,i=!0,k=null,l=!1;function aa(){return function(a){return a}}function n(a){return function(){return this[a]}}var p,w=this;function ba(){}function ca(a){a.cb=function(){return a.wc?a.wc:a.wc=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 y(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 z(a){return a[ja]||(a[ja]=++ka)}var ja="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ka=0;
|
|
function la(a,b,c){return a.call.apply(a.bind,arguments)}function ma(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function na(a,b,c){na=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return na.apply(k,arguments)}
|
|
function oa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var pa=Date.now||function(){return+new Date};function A(a,b){var c=a.split("."),d=w;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&y(b)?d[e]=b:d=d[e]?d[e]:d[e]={}}function B(a,b){function c(){}c.prototype=b.prototype;a.w=b.prototype;a.prototype=new c};function qa(a){Error.captureStackTrace?Error.captureStackTrace(this,qa):this.stack=Error().stack||"";a&&(this.message=String(a))}B(qa,Error);qa.prototype.name="CustomError";function ra(a){if(!sa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ta,"&"));-1!=a.indexOf("<")&&(a=a.replace(wa,"<"));-1!=a.indexOf(">")&&(a=a.replace(xa,">"));-1!=a.indexOf('"')&&(a=a.replace(ya,"""));return a}var ta=/&/g,wa=/</g,xa=/>/g,ya=/\"/g,sa=/[&<>\"]/;var za=Array.prototype,Aa=za.indexOf?function(a,b,c){return za.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ga(a))return!ga(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},D=za.forEach?function(a,b,c){za.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ga(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Ba=za.map?function(a,b,c){return za.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=
|
|
ga(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ca=za.some?function(a,b,c){return za.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ga(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return i;return l};function Da(a){if(!ea(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Ea(a,b){var c=Aa(a,b),d;(d=0<=c)&&za.splice.call(a,c,1);return d}function Fa(a){return za.concat.apply(za,arguments)}
|
|
function Ga(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Ha(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(ea(d)||(e=fa(d))&&d.hasOwnProperty("callee"))a.push.apply(a,d);else if(e)for(var f=a.length,g=d.length,j=0;j<g;j++)a[f+j]=d[j];else a.push(d)}}function Ia(a,b,c,d){za.splice.apply(a,Ja(arguments,1))}function Ja(a,b,c){return 2>=arguments.length?za.slice.call(a,b):za.slice.call(a,b,c)}function Ka(a){za.sort.call(a,La)}
|
|
function La(a,b){return a>b?1:a<b?-1:0};function Ma(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Na(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Oa(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Ta(a){for(var b in a)return l;return i}function Ua(a){var b={},c;for(c in a)b[c]=a[c];return b}var Va="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
|
|
function Wa(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Va.length;f++)c=Va[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Xa(a){if("function"==typeof a.O)return a.O();if(ga(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Na(a)};function Ya(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)Za(this,arguments[d],arguments[d+1])}else if(a){a instanceof Ya?(c=a.Z(),d=a.O()):(c=Oa(a),d=Na(a));for(var e=0;e<c.length;e++)Za(this,c[e],d[e])}}p=Ya.prototype;p.o=0;p.bc=0;p.ba=n("o");p.O=function(){$a(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};p.Z=function(){$a(this);return this.a.concat()};p.Pa=function(){return 0==this.o};
|
|
p.clear=function(){this.b={};this.bc=this.o=this.a.length=0};p.remove=function(a){return ab(this.b,a)?(delete this.b[a],this.o--,this.bc++,this.a.length>2*this.o&&$a(this),i):l};function $a(a){if(a.o!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];ab(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.o!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],ab(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function bb(a,b){return ab(a.b,b)?a.b[b]:h}
|
|
function Za(a,b,c){ab(a.b,b)||(a.o++,a.a.push(b),a.bc++);a.b[b]=c}p.T=function(){return new Ya(this)};function ab(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var cb,db,eb,fb,gb,hb,ib;function jb(){return w.navigator?w.navigator.userAgent:k}function kb(){return w.navigator}fb=eb=db=cb=l;var lb;if(lb=jb()){var mb=kb();cb=0==lb.indexOf("Opera");db=!cb&&-1!=lb.indexOf("MSIE");eb=!cb&&-1!=lb.indexOf("WebKit");fb=!cb&&!eb&&"Gecko"==mb.product}var nb=cb,E=db,ob=fb,pb=eb,qb,rb=kb();qb=rb&&rb.platform||"";gb=-1!=qb.indexOf("Mac");hb=-1!=qb.indexOf("Win");ib=-1!=qb.indexOf("Linux");var sb=!!kb()&&-1!=(kb().appVersion||"").indexOf("X11"),tb;
|
|
a:{var ub="",vb;if(nb&&w.opera)var wb=w.opera.version,ub="function"==typeof wb?wb():wb;else if(ob?vb=/rv\:([^\);]+)(\)|;)/:E?vb=/MSIE\s+([^\);]+)(\)|;)/:pb&&(vb=/WebKit\/(\S+)/),vb)var xb=vb.exec(jb()),ub=xb?xb[1]:"";if(E){var yb,zb=w.document;yb=zb?zb.documentMode:h;if(yb>parseFloat(ub)){tb=String(yb);break a}}tb=ub}var Ab={};
|
|
function Bb(a){var b;if(!(b=Ab[a])){b=0;for(var c=String(tb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",j=d[f]||"",m=RegExp("(\\d*)(\\D*)","g"),r=RegExp("(\\d*)(\\D*)","g");do{var s=m.exec(g)||["","",""],q=r.exec(j)||["","",""];if(0==s[0].length&&0==q[0].length)break;b=((0==s[1].length?0:parseInt(s[1],10))<(0==q[1].length?0:parseInt(q[1],10))?-1:(0==s[1].length?0:parseInt(s[1],
|
|
10))>(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:s[2]>q[2]?1:0)}while(0==b)}b=Ab[a]=0<=b}return b}var Cb={};function Db(a){return Cb[a]||(Cb[a]=E&&!!document.documentMode&&document.documentMode>=a)};var Eb,Fb=!E||Db(9);!ob&&!E||E&&Db(9)||ob&&Bb("1.9.1");E&&Bb("9");function Gb(a,b){var c;c=a.className;c=ga(c)&&c.match(/\S+/g)||[];for(var d=Ja(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=Aa(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function Hb(a,b,c){return Math.min(Math.max(a,b),c)}function Ib(a,b){var c=a%b;return 0>c*b?c+b:c};function Jb(a,b){this.x=y(a)?a:0;this.y=y(b)?b:0}Jb.prototype.T=function(){return new Jb(this.x,this.y)};function Kb(a,b){this.width=a;this.height=b}p=Kb.prototype;p.T=function(){return new Kb(this.width,this.height)};p.Pa=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 Lb(a){return a?new Mb(Nb(a)):Eb||(Eb=new Mb)}function Ob(a,b){Ma(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Pb?a.setAttribute(Pb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Pb={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 Qb(a){a=a.document.documentElement;return new Kb(a.clientWidth,a.clientHeight)}function Rb(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Fb&&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 j={};Wa(j,g);delete j.type;g=j}f.push(">");f=f.join("")}f=e.createElement(f);g&&(ga(g)?f.className=g:ea(g)?Gb.apply(k,[f].concat(g)):Ob(f,g));2<d.length&&Sb(e,f,d,2);return f}
|
|
function Sb(a,b,c,d){function e(c){c&&b.appendChild(ga(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(fa(f)&&!(ia(f)&&0<f.nodeType)){var g=D,j;a:{if((j=f)&&"number"==typeof j.length){if(ia(j)){j="function"==typeof j.item||"string"==typeof j.item;break a}if(ha(j)){j="function"==typeof j.item;break a}}j=l}g(j?Ga(f):f,e)}else e(f)}}function Tb(a){return document.createElement(a)}function Ub(a,b){Sb(Nb(a),a,arguments,1)}function Vb(a){for(var b;b=a.firstChild;)a.removeChild(b)}
|
|
function Wb(a,b){a.insertBefore(b,a.childNodes[0]||k)}function Xb(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Nb(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Mb(a){this.a=a||w.document||document}Mb.prototype.createElement=function(a){return this.a.createElement(a)};Mb.prototype.createTextNode=function(a){return this.a.createTextNode(a)};
|
|
function Yb(a){var b=a.a,a=!pb?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new Jb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Mb.prototype.appendChild=function(a,b){a.appendChild(b)};Mb.prototype.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var Zb=!E||Db(9),$b=!E||Db(9),ac=E&&!Bb("9");!pb||Bb("528");ob&&Bb("1.9b")||E&&Bb("8")||nb&&Bb("9.5")||pb&&Bb("528");ob&&!Bb("8")||E&&Bb("9");function bc(){0!=cc&&(this.Ke=Error().stack,dc[z(this)]=this)}var cc=0,dc={};bc.prototype.Gc=l;bc.prototype.Hb=function(){if(!this.Gc&&(this.Gc=i,this.s(),0!=cc)){var a=z(this);delete dc[a]}};function ec(a,b){a.Qa||(a.Qa=[]);a.Qa.push(b)}bc.prototype.s=function(){this.Qa&&fc.apply(k,this.Qa);if(this.Pc)for(;this.Pc.length;)this.Pc.shift()()};function gc(a){a&&"function"==typeof a.Hb&&a.Hb()}function fc(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];fa(d)?fc.apply(k,d):gc(d)}};function hc(a,b){this.type=a;this.c=this.target=b}p=hc.prototype;p.Hb=function(){};p.sa=l;p.hb=l;p.yb=i;p.Lb=function(){this.sa=i};p.D=function(){this.hb=i;this.yb=l};function ic(a){a.Lb()};function jc(a){jc[" "](a);return a}jc[" "]=ba;function kc(a,b){a&&lc(this,a,b)}B(kc,hc);var mc=[1,4,2];p=kc.prototype;p.target=k;p.sd=k;p.qd=0;p.rd=0;p.clientX=0;p.clientY=0;p.td=0;p.ud=0;p.od=0;p.za=0;p.fb=0;p.gb=l;p.ea=l;p.qa=l;p.pd=l;p.vb=l;p.L=k;
|
|
function lc(a,b,c){var d=a.type=b.type;hc.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(ob){var e;a:{try{jc(c.nodeName);e=i;break a}catch(f){}e=l}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.sd=c;a.qd=pb||b.offsetX!==h?b.offsetX:b.layerX;a.rd=pb||b.offsetY!==h?b.offsetY:b.layerY;a.clientX=b.clientX!==h?b.clientX:b.pageX;a.clientY=b.clientY!==h?b.clientY:b.pageY;a.td=b.screenX||0;a.ud=b.screenY||0;a.od=b.button;a.za=b.keyCode||0;a.fb=b.charCode||
|
|
("keypress"==d?b.keyCode:0);a.gb=b.ctrlKey;a.ea=b.altKey;a.qa=b.shiftKey;a.pd=b.metaKey;a.vb=gb?b.metaKey:b.ctrlKey;a.a=b.state;a.L=b;b.defaultPrevented&&a.D();delete a.sa}function nc(a){return(Zb?0==a.L.button:"click"==a.type?i:!!(a.L.button&mc[0]))&&!(pb&&gb&&a.gb)}p.Lb=function(){kc.w.Lb.call(this);this.L.stopPropagation?this.L.stopPropagation():this.L.cancelBubble=i};
|
|
p.D=function(){kc.w.D.call(this);var a=this.L;if(a.preventDefault)a.preventDefault();else if(a.returnValue=l,ac)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};p.jd=n("L");function oc(){}var pc=0;oc.prototype.key=0;oc.prototype.Ea=l;oc.prototype.a=l;oc.prototype.handleEvent=function(a){return this.b?this.Ra.call(this.Sb||this.src,a):this.Ra.handleEvent.call(this.Ra,a)};var qc={},rc={},sc={},tc={};
|
|
function F(a,b,c,d,e){if(b){if(ea(b)){for(var f=0;f<b.length;f++)F(a,b[f],c,d,e);return k}var d=!!d,g=rc;b in g||(g[b]={o:0,R:0});g=g[b];d in g||(g[d]={o:0,R:0},g.o++);var g=g[d],j=z(a),m;g.R++;if(g[j]){m=g[j];for(f=0;f<m.length;f++)if(g=m[f],g.Ra==c&&g.Sb==e){if(g.Ea)break;return m[f].key}}else m=g[j]=[],g.o++;var r=uc,s=$b?function(a){return r.call(s.src,s.key,a)}:function(a){a=r.call(s.src,s.key,a);if(!a)return a},f=s;f.src=a;var q=g=new oc;if(ha(c))q.b=i;else if(c&&c.handleEvent&&ha(c.handleEvent))q.b=
|
|
l;else throw Error("Invalid listener argument");q.Ra=c;q.c=f;q.src=a;q.type=b;q.capture=!!d;q.Sb=e;q.a=l;q.key=++pc;q.Ea=l;c=g.key;f.key=c;m.push(g);qc[c]=g;sc[j]||(sc[j]=[]);sc[j].push(g);a.addEventListener?(a==w||!a.lc)&&a.addEventListener(b,f,d):a.attachEvent(b in tc?tc[b]:tc[b]="on"+b,f);return c}throw Error("Invalid event type");}function vc(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)vc(a,b[f],c,d,e);return k}a=F(a,b,c,d,e);qc[a].a=i;return a}
|
|
function wc(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)wc(a,b[f],c,d,e);else{d=!!d;a:{f=rc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=z(a),f[a]))){a=f[a];break a}a=k}if(a)for(f=0;f<a.length;f++)if(a[f].Ra==c&&a[f].capture==d&&a[f].Sb==e){H(a[f].key);break}}}
|
|
function H(a){if(!qc[a])return l;var b=qc[a];if(b.Ea)return l;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==w||!c.lc)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in tc?tc[d]:tc[d]="on"+d,e);c=z(c);sc[c]&&(e=sc[c],Ea(e,b),0==e.length&&delete sc[c]);b.Ea=i;if(b=rc[d][f][c])b.Ac=i,xc(d,f,c,b);delete qc[a];return i}
|
|
function xc(a,b,c,d){if(!d.rb&&d.Ac){for(var e=0,f=0;e<d.length;e++)d[e].Ea?d[e].c.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.Ac=l;0==f&&(delete rc[a][b][c],rc[a][b].o--,0==rc[a][b].o&&(delete rc[a][b],rc[a].o--),0==rc[a].o&&delete rc[a])}}function yc(a,b,c,d,e){var f=1,b=z(b);if(a[b]){a.R--;a=a[b];a.rb?a.rb++:a.rb=1;try{for(var g=a.length,j=0;j<g;j++){var m=a[j];m&&!m.Ea&&(f&=zc(m,e)!==l)}}finally{a.rb--,xc(c,d,b,a)}}return Boolean(f)}function zc(a,b){a.a&&H(a.key);return a.handleEvent(b)}
|
|
function J(a,b){var c=b.type||b,d=rc;if(!(c in d))return i;if(ga(b))b=new hc(b,a);else if(b instanceof hc)b.target=b.target||a;else{var e=b,b=new hc(c,a);Wa(b,e)}var e=1,f,d=d[c],c=i in d,g;if(c){f=[];for(g=a;g;g=g.Vb)f.push(g);g=d[i];g.R=g.o;for(var j=f.length-1;!b.sa&&0<=j&&g.R;j--)b.c=f[j],e&=yc(g,f[j],b.type,i,b)&&b.yb!=l}if(l in d)if(g=d[l],g.R=g.o,c)for(j=0;!b.sa&&j<f.length&&g.R;j++)b.c=f[j],e&=yc(g,f[j],b.type,l,b)&&b.yb!=l;else for(d=a;!b.sa&&d&&g.R;d=d.Vb)b.c=d,e&=yc(g,d,b.type,l,b)&&b.yb!=
|
|
l;return Boolean(e)}
|
|
function uc(a,b){if(!qc[a])return i;var c=qc[a],d=c.type,e=rc;if(!(d in e))return i;var e=e[d],f,g;if(!$b){var j;if(!(j=b))a:{j=["window","event"];for(var m=w;f=j.shift();)if(m[f]!=k)m=m[f];else{j=k;break a}j=m}f=j;j=i in e;m=l in e;if(j){if(0>f.keyCode||f.returnValue!=h)return i;a:{var r=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(s){r=i}if(r||f.returnValue==h)f.returnValue=i}}r=new kc;lc(r,f,this);f=i;try{if(j){for(var q=[],v=r.c;v;v=v.parentNode)q.push(v);g=e[i];g.R=g.o;for(var u=q.length-
|
|
1;!r.sa&&0<=u&&g.R;u--)r.c=q[u],f&=yc(g,q[u],d,i,r);if(m){g=e[l];g.R=g.o;for(u=0;!r.sa&&u<q.length&&g.R;u++)r.c=q[u],f&=yc(g,q[u],d,l,r)}}else f=zc(c,r)}finally{q&&(q.length=0)}return f}d=new kc(b,this);return f=zc(c,d)};function Ac(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}Ac.prototype.T=function(){return new Ac(this.top,this.right,this.bottom,this.left)};Ac.prototype.contains=function(a){return!this||!a?l:a instanceof Ac?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function Bc(a,b){var c=Nb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function Cc(a,b){return a.currentStyle?a.currentStyle[b]:k}function Dc(a,b){return Bc(a,b)||Cc(a,b)||a.style&&a.style[b]}function Ec(a,b){var c,d,e=ob&&(gb||sb)&&Bb("1.9");b instanceof Jb?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Fc(c,e);a.style.top=Fc(d,e)}
|
|
function Gc(a){var b=a.getBoundingClientRect();E&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
|
|
function Hc(a){if(E&&!Db(8))return a.offsetParent;for(var b=Nb(a),c=Dc(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Dc(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 Ic(a,b){var c=Jc(a),d=Jc(b);return new Jb(c.x-d.x,c.y-d.y)}
|
|
function Jc(a){var b=new Jb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Gc(a);b.x=c.left;b.y=c.top}else{c=Yb(Lb(a));var d,e=Nb(a),f=Dc(a,"position"),g=ob&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),j=new Jb(0,0),m;d=e?Nb(e):document;if(m=E)if(m=!Db(9))Lb(d),m=l;m=m?d.body:d.documentElement;if(a!=m)if(a.getBoundingClientRect)d=Gc(a),e=Yb(Lb(e)),j.x=d.left+e.x,j.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),
|
|
e=e.getBoxObjectFor(m),j.x=d.screenX-e.screenX,j.y=d.screenY-e.screenY;else{g=a;do{j.x+=g.offsetLeft;j.y+=g.offsetTop;g!=a&&(j.x+=g.clientLeft||0,j.y+=g.clientTop||0);if(pb&&"fixed"==Dc(g,"position")){j.x+=e.body.scrollLeft;j.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(nb||pb&&"absolute"==f)j.y-=e.body.offsetTop;for(g=a;(g=Hc(g))&&g!=e.body&&g!=m;)if(j.x-=g.scrollLeft,!nb||"TR"!=g.tagName)j.y-=g.scrollTop}b.x=j.x-c.x;b.y=j.y-c.y}if(ob&&!Bb(12)){var r;E?r="-ms-transform":pb?r="-webkit-transform":
|
|
nb?r="-o-transform":ob&&(r="-moz-transform");var s;r&&(s=Dc(a,r));s||(s=Dc(a,"transform"));s?(a=s.match(Kc),a=!a?new Jb(0,0):new Jb(parseFloat(a[1]),parseFloat(a[2]))):a=new Jb(0,0);b=new Jb(b.x+a.x,b.y+a.y)}}else r=ha(a.jd),s=a,a.targetTouches?s=a.targetTouches[0]:r&&a.L.targetTouches&&(s=a.L.targetTouches[0]),b.x=s.clientX,b.y=s.clientY;return b}function Fc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}
|
|
function Lc(a){var b=a.offsetWidth,c=a.offsetHeight,d=pb&&!b&&!c;return(!y(b)||d)&&a.getBoundingClientRect?(a=Gc(a),new Kb(a.right-a.left,a.bottom-a.top)):new Kb(b,c)}function Mc(a,b){a.style.display=b?"":"none"}
|
|
function Nc(a,b){Lb(Nb(a));if(E&&!Bb("8")){var c=a.style,d;if(E){d=Oc(a,Cc(a,"paddingLeft"));var e=Oc(a,Cc(a,"paddingRight")),f=Oc(a,Cc(a,"paddingTop")),g=Oc(a,Cc(a,"paddingBottom"));d=new Ac(f,e,g,d)}else d=Bc(a,"paddingLeft"),e=Bc(a,"paddingRight"),f=Bc(a,"paddingTop"),g=Bc(a,"paddingBottom"),d=new Ac(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(E)var e=Pc(a,"borderLeft"),f=Pc(a,"borderRight"),g=Pc(a,"borderTop"),j=Pc(a,"borderBottom"),e=new Ac(g,f,j,e);else e=Bc(a,"borderLeftWidth"),
|
|
f=Bc(a,"borderRightWidth"),g=Bc(a,"borderTopWidth"),j=Bc(a,"borderBottomWidth"),e=new Ac(parseFloat(g),parseFloat(f),parseFloat(j),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,ob?c.MozBoxSizing="border-box":pb?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 Oc(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 Qc={thin:2,medium:4,thick:6};function Pc(a,b){if("none"==Cc(a,b+"Style"))return 0;var c=Cc(a,b+"Width");return c in Qc?Qc[c]:Oc(a,c)}var Kc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Rc(a,b){this.x=a;this.y=b}B(Rc,Jb);Rc.prototype.T=function(){return new Rc(this.x,this.y)};Rc.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Rc.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function K(a,b){Rc.call(this,a,b)}B(K,Rc);function Sc(a,b){var c=Ib(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 Tc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Uc(a,b,c){if(ea(b))for(var d=0;d<b.length;d++)Uc(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))};function Vc(a,b){var c;if(a instanceof Vc)this.pa=y(b)?b:a.pa,Wc(this,a.Fa),c=a.Cb,Xc(this),this.Cb=c,c=a.Ha,Xc(this),this.Ha=c,Yc(this,a.wb),c=a.ub,Xc(this),this.ub=c,Zc(this,a.a.T()),c=a.ab,Xc(this),this.ab=c;else if(a&&(c=String(a).match(Tc))){this.pa=!!b;Wc(this,c[1]||"",i);var d=c[2]||"";Xc(this);this.Cb=d?decodeURIComponent(d):"";d=c[3]||"";Xc(this);this.Ha=d?decodeURIComponent(d):"";Yc(this,c[4]);d=c[5]||"";Xc(this);this.ub=d?decodeURIComponent(d):"";Zc(this,c[6]||"",i);c=c[7]||"";Xc(this);
|
|
this.ab=c?decodeURIComponent(c):""}else this.pa=!!b,this.a=new $c(k,0,this.pa)}p=Vc.prototype;p.Fa="";p.Cb="";p.Ha="";p.wb=k;p.ub="";p.ab="";p.Vd=l;p.pa=l;
|
|
p.toString=function(){var a=[],b=this.Fa;b&&a.push(ad(b,bd),":");if(b=this.Ha){a.push("//");var c=this.Cb;c&&a.push(ad(c,bd),"@");a.push(encodeURIComponent(String(b)));b=this.wb;b!=k&&a.push(":",String(b))}if(b=this.ub)this.Ha&&"/"!=b.charAt(0)&&a.push("/"),a.push(ad(b,"/"==b.charAt(0)?cd:dd));(b=this.a.toString())&&a.push("?",b);(b=this.ab)&&a.push("#",ad(b,ed));return a.join("")};p.T=function(){return new Vc(this)};
|
|
function Wc(a,b,c){Xc(a);a.Fa=c?b?decodeURIComponent(b):"":b;a.Fa&&(a.Fa=a.Fa.replace(/:$/,""))}function Yc(a,b){Xc(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.wb=b}else a.wb=k}
|
|
function Zc(a,b,c){Xc(a);if(b instanceof $c){a.a=b;b=a.a;if((a=a.pa)&&!b.b){fd(b);b.a=k;var d=b.F,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),gd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(fa(d)||ga(d))D(d,c,b);else{var e;if("function"==typeof d.Z)e=d.Z();else if("function"!=typeof d.O)if(fa(d)||ga(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=Oa(d);else e=h;d=Xa(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=ad(b,hd)),a.a=
|
|
new $c(b,0,a.pa)}function id(a,b,c){Xc(a);ea(c)||(c=[String(c)]);gd(a.a,b,c)}function Xc(a){if(a.Vd)throw Error("Tried to modify a read-only Uri");}function ad(a,b){return ga(a)?encodeURI(a).replace(b,jd):k}function jd(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var bd=/[#\/\?@]/g,dd=/[\#\?:]/g,cd=/[\#\?]/g,hd=/[\#\?@]/g,ed=/#/g;function $c(a,b,c){this.a=a||k;this.b=!!c}
|
|
function fd(a){if(!a.F&&(a.F=new Ya,a.o=0,a.a))for(var b=a.a.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=k,f=k;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=kd(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}p=$c.prototype;p.F=k;p.o=k;p.ba=function(){fd(this);return this.o};p.add=function(a,b){fd(this);this.a=k;var a=kd(this,a),c=bb(this.F,a);c||Za(this.F,a,c=[]);c.push(b);this.o++;return this};
|
|
p.remove=function(a){fd(this);a=kd(this,a);return ab(this.F.b,a)?(this.a=k,this.o-=bb(this.F,a).length,this.F.remove(a)):l};p.clear=function(){this.F=this.a=k;this.o=0};p.Pa=function(){fd(this);return 0==this.o};function ld(a,b){fd(a);b=kd(a,b);return ab(a.F.b,b)}p.Z=function(){fd(this);for(var a=this.F.O(),b=this.F.Z(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
|
|
p.O=function(a){fd(this);var b=[];if(a)ld(this,a)&&(b=Fa(b,bb(this.F,kd(this,a))));else for(var a=this.F.O(),c=0;c<a.length;c++)b=Fa(b,a[c]);return b};function md(a,b){var c=b?a.O(b):[];return 0<c.length?String(c[0]):h}function gd(a,b,c){a.remove(b);0<c.length&&(a.a=k,Za(a.F,kd(a,b),Ga(c)),a.o+=c.length)}
|
|
p.toString=function(){if(this.a)return this.a;if(!this.F)return"";for(var a=[],b=this.F.Z(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.O(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("&")};p.T=function(){var a=new $c;a.a=this.a;this.F&&(a.F=this.F.T());return a};function kd(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};function nd(){bc.call(this)}B(nd,bc);p=nd.prototype;p.lc=i;p.Vb=k;p.addEventListener=function(a,b,c,d){F(this,a,b,c,d)};p.removeEventListener=function(a,b,c,d){wc(this,a,b,c,d)};p.s=function(){nd.w.s.call(this);var a,b=0,c=a==k;a=!!a;if(this==k)Ma(sc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)H(f.key),b++}});else{var d=z(this);if(sc[d])for(var d=sc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)H(f.key),b++}}this.Vb=k};function od(a){return function(){return a}}var pd=od(l),qd=od(i),rd=od(k);function sd(a,b,c){bc.call(this);this.d=a;this.c=c;this.a=b||window;this.b=na(this.Kb,this)}B(sd,bc);p=sd.prototype;p.P=k;p.ac=l;p.start=function(){td(this);this.ac=l;var a=ud(this),b=vd(this);if(a&&!b&&this.a.mozRequestAnimationFrame)this.P=F(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(k),this.ac=i;else{if(a&&b)a=a.call(this.a,this.b);else{var c=this.b,d;d=d||0;a=this.a.setTimeout(function(){return c.apply(this,Array.prototype.slice.call(arguments,0,d))},20)}this.P=a}};
|
|
function td(a){if(a.P!=k){var b=ud(a),c=vd(a);b&&!c&&a.a.mozRequestAnimationFrame?H(a.P):b&&c?c.call(a.a,a.P):a.a.clearTimeout(a.P)}a.P=k}p.Kb=function(){this.ac&&this.P&&H(this.P);this.P=k;this.d.call(this.c,pa())};p.s=function(){td(this);sd.w.s.call(this)};function ud(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}
|
|
function vd(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function wd(a){bc.call(this);this.xa=a||window;this.qb=F(this.xa,"resize",this.Ld,l,this);this.ua=Qb(this.xa||window);if(pb&&hb||nb&&this.xa.self!=this.xa.top)this.Db=window.setInterval(na(this.gc,this),Ad)}B(wd,nd);var Ad=500;p=wd.prototype;p.qb=k;p.xa=k;p.ua=k;p.Db=k;p.s=function(){wd.w.s.call(this);this.qb&&(H(this.qb),this.qb=k);this.Db&&(window.clearInterval(this.Db),this.Db=k);this.ua=this.xa=k};p.Ld=function(){this.gc()};
|
|
p.gc=function(){var a=Qb(this.xa||window);if(!(a==this.ua||(!a||!this.ua?0:a.width==this.ua.width&&a.height==this.ua.height)))this.ua=a,J(this,"resize")};function Bd(a,b,c,d,e){if(!E&&(!pb||!Bb("525")))return i;if(gb&&e)return Cd(a);if(e&&!d||!c&&(17==b||18==b)||E&&d&&b==a)return l;switch(a){case 13:return!(E&&Db(9));case 27:return!pb}return Cd(a)}function Cd(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||pb&&0==a)return i;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 i;default:return l}}
|
|
function Dd(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Ed(a,b){bc.call(this);a&&(this.mb&&Fd(this),this.Ka=a,this.lb=F(this.Ka,"keypress",this,b),this.Tb=F(this.Ka,"keydown",this.a,b,this),this.mb=F(this.Ka,"keyup",this.b,b,this))}B(Ed,nd);p=Ed.prototype;p.Ka=k;p.lb=k;p.Tb=k;p.mb=k;p.ja=-1;p.ia=-1;p.Fb=l;
|
|
var Gd={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},Hd={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},Id=E||pb&&Bb("525"),Jd=gb&&ob;
|
|
Ed.prototype.a=function(a){if(pb&&(17==this.ja&&!a.gb||18==this.ja&&!a.ea))this.ia=this.ja=-1;Id&&!Bd(a.za,this.ja,a.qa,a.gb,a.ea)?this.handleEvent(a):(this.ia=ob?Dd(a.za):a.za,Jd&&(this.Fb=a.ea))};Ed.prototype.b=function(a){this.ia=this.ja=-1;this.Fb=a.ea};
|
|
Ed.prototype.handleEvent=function(a){var b=a.L,c,d,e=b.altKey;E&&"keypress"==a.type?(c=this.ia,d=13!=c&&27!=c?b.keyCode:0):pb&&"keypress"==a.type?(c=this.ia,d=0<=b.charCode&&63232>b.charCode&&Cd(c)?b.charCode:0):nb?(c=this.ia,d=Cd(c)?b.keyCode:0):(c=b.keyCode||this.ia,d=b.charCode||0,Jd&&(e=this.Fb),gb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Gd?f=Gd[c]:25==c&&a.qa&&(f=9):g&&g in Hd&&(f=Hd[g]);a=f==this.ja;this.ja=f;b=new Kd(f,d,a,b);b.ea=e;J(this,b)};
|
|
function Fd(a){a.lb&&(H(a.lb),H(a.Tb),H(a.mb),a.lb=k,a.Tb=k,a.mb=k);a.Ka=k;a.ja=-1;a.ia=-1}Ed.prototype.s=function(){Ed.w.s.call(this);Fd(this)};function Kd(a,b,c,d){d&&lc(this,d,h);this.type="key";this.za=a;this.fb=b;this.b=c}B(Kd,kc);function Ld(a){bc.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"==Dc(a,"direction");this.b=F(this.a,ob?"DOMMouseScroll":"mousewheel",this)}B(Ld,nd);
|
|
Ld.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.L;if("mousewheel"==a.type){c=1;if(E||pb&&(hb||Bb("532.0")))c=40;d=Md(-a.wheelDelta,c);y(a.wheelDeltaX)?(b=Md(-a.wheelDeltaX,c),c=Md(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),y(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Hb(b,-this.c,this.c));"number"==typeof this.d&&(c=Hb(c,-this.d,this.d));this.e&&(b=-b);b=new Nd(d,a,b,c);J(this,b)};function Md(a,b){return pb&&(gb||ib)&&0!=a%b?a:a/b}
|
|
Ld.prototype.s=function(){Ld.w.s.call(this);H(this.b);delete this.b};function Nd(a,b,c,d){b&&lc(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Nd,kc);var Od=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function M(a){bc.call(this);this.t={};y(a)&&this.sb(a)}B(M,nd);var Pd={},Qd={},Rd={};function Sd(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Td(a){return a.ol_accessors_||(a.ol_accessors_={})}function Ud(a){return Pd.hasOwnProperty(a)?Pd[a]:Pd[a]=a.toLowerCase()+"_changed"}function Vd(a){return a.ol_bindings_||(a.ol_bindings_={})}p=M.prototype;
|
|
p.Yc=function(a,b,c,d){c=c||a;this.$b(a);var e=Ud(c);Vd(this)[a]=F(b,e,function(){Wd(this,a)},h,this);Td(this)[a]={target:b,key:c};d||Wd(this,a)};p.ad=ba;p.q=function(a){var b,c=Td(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Qd.hasOwnProperty(b)?Qd[b]:Qd[b]="get"+Sd(b),b=a[c]?a[c]():a.q(b)):this.t.hasOwnProperty(a)&&(b=this.t[a]);return b};
|
|
p.Z=function(){for(var a=Oa(Td(this)).concat(Oa(this.t)),b={},c=0,d=0;d<a.length;){var e=a[d++],f=ia(e)?"o"+z(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=i,a[c++]=e)}a.length=c;return a};p.Bc=function(a){var b=Td(this);b.hasOwnProperty(a)?(a=b[a],a.target.Bc(a.key)):Wd(this,a)};function Wd(a,b){var c=Ud(b);J(a,c);J(a,"changed")}
|
|
p.p=function(a,b){var c=Td(this);if(c.hasOwnProperty(a)){var d=c[a],c=d.target,d=d.key,e=Rd.hasOwnProperty(d)?Rd[d]:Rd[d]="set"+Sd(d);if(c[e])c[e](b);else c.p(d,b)}else this.t[a]=b,Wd(this,a)};p.Jc=function(a){var b,c,d;for(b in a)if(c=a[b],d=Rd.hasOwnProperty(b)?Rd[b]:Rd[b]="set"+Sd(b),this[d])this[d](c);else this.p(b,c)};p.sb=M.prototype.Jc;p.$b=function(a){var b=Vd(this),c=b[a];c&&(delete b[a],H(c),b=this.q(a),delete Td(this)[a],this.t[a]=b)};p.se=function(){for(var a in Vd(this))this.$b(a)};function Xd(a,b,c){hc.call(this,a,c);this.a=b}B(Xd,hc);function N(a){M.call(this);this.a=a||[];Yd(this)}B(N,M);p=N.prototype;p.clear=function(){for(;0<this.eb();)this.pop()};p.forEach=function(a,b){D(this.a,a,b)};p.gd=function(a){return this.a[a]};p.eb=function(){return this.q("length")};p.kb=function(a,b){Ia(this.a,a,0,b);Yd(this);J(this,new Xd("add",b,this))};p.pop=function(){return this.Wb(this.eb()-1)};p.push=function(a){var b=this.a.length;this.kb(b,a);return b};
|
|
p.remove=function(a){var b;for(b=0;b<this.a.length;++b)if(this.a[b]===a)return this.Wb(b)};p.Wb=function(a){var b=this.a[a];za.splice.call(this.a,a,1);Yd(this);J(this,new Xd("remove",b,this));return b};p.ie=function(a,b){var c=this.eb();if(a<c)c=this.a[a],this.a[a]=b,J(this,new Xd("remove",c,this)),J(this,new Xd("add",b,this));else{for(;c<a;++c)this.kb(c,h);this.kb(a,b)}};function Yd(a){a.p("length",a.a.length)};function Zd(){this.c=Hb(255,0,255);this.b=Hb(255,0,255);this.a=Hb(255,0,255);this.d=Hb(1,0,1)};function $d(a,b){Kb.call(this,a,b)}B($d,Kb);function ae(a,b,c,d){this.i=a;this.j=b;this.l=c;this.k=d}ae.prototype.ca=function(){return this.k-this.j};ae.prototype.ha=function(){return this.l-this.i};function be(a,b){return a.i<=b.l&&a.l>=b.i&&a.j<=b.k&&a.k>=b.j}ae.prototype.toString=function(){return"("+[this.i,this.j,this.l,this.k].join(", ")+")"};function ce(a,b,c,d){ae.call(this,a,b,c,d)}B(ce,ae);function de(a){var b=arguments[0],b=new ce(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.i=Math.min(b.i,d.x);b.j=Math.min(b.j,d.y);b.l=Math.max(b.l,d.x);b.k=Math.max(b.k,d.y)}return b}function ee(a){return new K(a.i,a.k)}ce.prototype.transform=function(a){var b=[this.i,this.j,this.l,this.k],b=a(b,b,2);return new ce(Math.min(b[0],b[2]),Math.min(b[1],b[3]),Math.max(b[0],b[2]),Math.max(b[1],b[3]))};function fe(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}fe.prototype.a=4;fe.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};fe.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(fe.BYTES_PER_ELEMENT=4,fe.prototype.BYTES_PER_ELEMENT=fe.prototype.a,fe.prototype.set=fe.prototype.b,fe.prototype.toString=fe.prototype.toString,A("Float32Array",fe));function ge(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}ge.prototype.a=8;ge.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};ge.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(ge.BYTES_PER_ELEMENT=8,ge.prototype.BYTES_PER_ELEMENT=ge.prototype.a,ge.prototype.set=ge.prototype.b,ge.prototype.toString=ge.prototype.toString,A("Float64Array",ge));function he(){var a=Array(16);ie(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function je(){var a=Array(16);ie(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function ie(a,b,c,d,e,f,g,j,m,r,s,q,v,u,t,x,C){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=j;a[7]=m;a[8]=r;a[9]=s;a[10]=q;a[11]=v;a[12]=u;a[13]=t;a[14]=x;a[15]=C}
|
|
function ke(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15]}function le(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}
|
|
function me(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],j=a[4],m=a[5],r=a[6],s=a[7],q=a[8],v=a[9],u=a[10],t=a[11],x=a[12],C=a[13],G=a[14],a=a[15],I=b[0],T=b[1],L=b[2],W=b[3],$=b[4],ua=b[5],va=b[6],Pa=b[7],Qa=b[8],Ra=b[9],Sa=b[10],X=b[11],xd=b[12],yd=b[13],zd=b[14],b=b[15];c[0]=d*I+j*T+q*L+x*W;c[1]=e*I+m*T+v*L+C*W;c[2]=f*I+r*T+u*L+G*W;c[3]=g*I+s*T+t*L+a*W;c[4]=d*$+j*ua+q*va+x*Pa;c[5]=e*$+m*ua+v*va+C*Pa;c[6]=f*$+r*ua+u*va+G*Pa;c[7]=g*$+s*ua+t*va+a*Pa;c[8]=d*Qa+j*Ra+q*Sa+x*X;c[9]=e*Qa+m*Ra+v*Sa+C*X;c[10]=
|
|
f*Qa+r*Ra+u*Sa+G*X;c[11]=g*Qa+s*Ra+t*Sa+a*X;c[12]=d*xd+j*yd+q*zd+x*b;c[13]=e*xd+m*yd+v*zd+C*b;c[14]=f*xd+r*yd+u*zd+G*b;c[15]=g*xd+s*yd+t*zd+a*b}function ne(a,b){return a.length==b.length&&a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]&&a[3]==b[3]&&a[4]==b[4]&&a[5]==b[5]&&a[6]==b[6]&&a[7]==b[7]&&a[8]==b[8]&&a[9]==b[9]&&a[10]==b[10]&&a[11]==b[11]&&a[12]==b[12]&&a[13]==b[13]&&a[14]==b[14]&&a[15]==b[15]}
|
|
function oe(a,b,c){var d=b[0],e=b[1],b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14]}function pe(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],f=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=f}function qe(a,b,c){ie(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}
|
|
function re(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],j=a[5],m=a[6],r=a[7],s=Math.cos(b),q=Math.sin(b);a[0]=c*s+g*q;a[1]=d*s+j*q;a[2]=e*s+m*q;a[3]=f*s+r*q;a[4]=c*-q+g*s;a[5]=d*-q+j*s;a[6]=e*-q+m*s;a[7]=f*-q+r*s}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function se(a,b,c){Rc.call(this,b,c);this.n=a}B(se,K);se.prototype.hash=function(){return(this.x<<this.n)+this.y};function te(a){var b=Array(a.n),c=1<<a.n-1,d,e;for(d=0;d<a.n;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}se.prototype.toString=function(){return[this.n,this.x,this.y].join("/")};function ue(a,b,c,d){this.i=a;this.j=b;this.l=c;this.k=d}B(ue,ae);ue.prototype.contains=function(a){return this.i<=a.x&&a.x<=this.l&&this.j<=a.y&&a.y<=this.k};ue.prototype.ca=function(){return this.k-this.j+1};ue.prototype.ha=function(){return this.l-this.i+1};function ve(a,b){this.b=a;this.a=b||k};function we(a,b){bc.call(this);this.X=a;this.a=b}B(we,nd);we.prototype.b=function(){return z(this).toString()};function xe(a){this.d=a;this.f=8;this.c=0;this.a=[];this.b={}}function ye(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]=i,ze(a,0,a.a.length-1))}}}xe.prototype.e=function(){--this.c};function Ae(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b<d>>1;){var g=2*b+1,j=2*b+2,g=j<d&&c[j][0]<c[g][0]?j:g;c[b]=c[g];b=g}c[b]=e;ze(a,f,b)}function ze(a,b,c){for(var a=a.a,d=a[c];c>b;){var e=c-1>>1;if(a[e][0]>d[0])a[c]=a[e],c=e;else break}a[c]=d};/*
|
|
|
|
Latitude/longitude spherical geodesy formulae taken from
|
|
http://www.movable-type.co.uk/scripts/latlong.html
|
|
Licenced under CC-BY-3.0.
|
|
*/
|
|
function Be(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*Ce.a*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};var Ce=new function(){this.a=6370997};var De="object"==typeof Proj4js,Ee={Rc:"degrees",He:"ft",Le:"m"},Fe={};Fe.degrees=2*Math.PI*Ce.a/360;Fe.ft=0.3048;Fe.m=1;function O(a){this.a=a.code;this.b=a.units;this.g=a.extent;this.d=y(a.axisOrientation)?a.axisOrientation:"enu";this.sc=y(a.global)?a.global:l;this.f=k}p=O.prototype;p.kd=n("a");p.I=n("g");p.nd=n("b");p.ld=function(){return Fe[this.b]};p.hd=n("d");p.Ud=n("sc");function Ge(a,b){var c={units:a.units,axisOrientation:a.axis};Wa(c,b);O.call(this,c);this.Fc=a;this.e=k}B(Ge,O);
|
|
Ge.prototype.c=function(a,b){if("degrees"==this.b)return a;this.e===k&&(this.e=He(this,Ie({code:"EPSG:4326",extent:k})));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=(Be(new K(c[0],c[1]),new K(c[2],c[3]))+Be(new K(c[4],c[5]),new K(c[6],c[7])))/2;"ft"==this.b&&(c/=0.3048);return c};var Je={},Ke={},Le={};function Me(a){D(a,function(a){Ne(a)});D(a,function(b){D(a,function(a){b!==a&&Oe(b,a,Pe)})})}function Ne(a){Ke[a.a]=a;Oe(a,a,Pe)}
|
|
function Qe(a){return a!=k?ga(a)?Re(a):a:Re("EPSG:3857")}function Oe(a,b,c){a=a.a;b=b.a;a in Le||(Le[a]={});Le[a][b]=c}function Re(a){var b;a instanceof O?b=a:ga(a)?(b=Ke[a],De&&!y(b)&&(b=Ie({code:a,extent:k})),y(b)||(b=k)):b=k;return b}function Ie(a){var b=a.code,c=Je[b];if(!y(c)){var d=new Proj4js.Proj(b),e=d.srsCode,c=Je[e];y(c)||(a=Ua(a),a.code=e,c=new Ge(d,a),Je[e]=c);Je[b]=c}return c}function Se(a,b){var c=Re(a),d=Re(b);return He(c,d)}
|
|
function He(a,b){var c=a.a,d=b.a,e;c in Le&&d in Le[c]&&(e=Le[c][d]);if(De&&!y(e)){var f;f=(a instanceof Ge?a:Ie({code:c,extent:k})).Fc;var g;g=(b instanceof Ge?b:Ie({code:d,extent:k})).Fc;e=function(a,b,c){var d=a.length,c=1<c?c:2;y(b)||(b=2<c?a.slice():Array(d));for(var e,v=0;v<d;v+=c)e=new Proj4js.Point(a[v],a[v+1]),e=Proj4js.transform(f,g,e),b[v]=e.x,b[v+1]=e.y;return b};Oe(a,b,e)}y(e)||(e=Te);return e}function Te(a,b){if(y(b)&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}
|
|
function Pe(a,b){var c;if(y(b)){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c};function Ue(a){bc.call(this);this.f=Re(a.projection);this.t=y(a.extent)?a.extent:y(a.projection)?this.f.I():k;this.e=y(a.attributions)?a.attributions:k}B(Ue,nd);Ue.prototype.oa=n("e");Ue.prototype.I=n("t");Ue.prototype.c=qd;function P(a){M.call(this);this.g=a.source;this.h(y(a.brightness)?a.brightness:0);this.r(y(a.contrast)?a.contrast:1);this.u(y(a.hue)?a.hue:0);this.z(y(a.opacity)?a.opacity:1);this.G(y(a.saturation)?a.saturation:1);this.H(y(a.visible)?a.visible:i);this.g.c()||vc(this.g,"load",this.K,l,this)}B(P,M);P.prototype.b=function(){return this.q("brightness")};P.prototype.getBrightness=P.prototype.b;P.prototype.c=function(){return this.q("contrast")};P.prototype.getContrast=P.prototype.c;P.prototype.d=function(){return this.q("hue")};
|
|
P.prototype.getHue=P.prototype.d;P.prototype.e=function(){return this.q("opacity")};P.prototype.getOpacity=P.prototype.e;P.prototype.f=function(){return this.q("saturation")};P.prototype.getSaturation=P.prototype.f;P.prototype.$=n("g");P.prototype.a=function(){return this.q("visible")};P.prototype.getVisible=P.prototype.a;P.prototype.K=function(){J(this,"load")};P.prototype.h=function(a){a=Hb(a,-1,1);a!=this.b()&&this.p("brightness",a)};P.prototype.setBrightness=P.prototype.h;
|
|
P.prototype.r=function(a){a=Math.max(0,a);a!=this.c()&&this.p("contrast",a)};P.prototype.setContrast=P.prototype.r;P.prototype.u=function(a){a!=this.d()&&this.p("hue",a)};P.prototype.setHue=P.prototype.u;P.prototype.z=function(a){a=Hb(a,0,1);a!=this.e()&&this.p("opacity",a)};P.prototype.setOpacity=P.prototype.z;P.prototype.G=function(a){a=Math.max(0,a);a!=this.f()&&this.p("saturation",a)};P.prototype.setSaturation=P.prototype.G;P.prototype.H=function(a){a=!!a;a!=this.a()&&this.p("visible",a)};
|
|
P.prototype.setVisible=P.prototype.H;function Ve(a,b,c){hc.call(this,a);this.map=b;this.hb=l;this.d=y(c)?c:k}B(Ve,hc);Ve.prototype.D=function(){Ve.w.D.call(this);this.hb=i};function We(a,b){Jb.call(this,a,b)}B(We,Jb);function Xe(a,b,c,d){Ve.call(this,a,b,d);this.a=c;this.f=this.e=k}B(Xe,Ve);Xe.prototype.b=function(){this.e===k&&(this.e=Ye(this.map,Ze(this)));return this.e};function Ze(a){if(a.f===k){var b=Ic(a.a,a.map.b);a.f=new We(b.x,b.y)}return a.f}
|
|
function $e(a){this.a=a;this.e=k;this.b=l;this.c=this.g=this.d=this.t=this.h=this.f=k;a=this.a.b;this.h=F(a,["click","dblclick"],this.ic,l,this);this.t=F(a,"mousedown",this.Fd,l,this);this.g=[F(a,["touchstart","MSPointerDown"],this.Qd,l,this),F(a,["touchmove","MSPointerMove"],this.Pd,l,this),F(a,["touchend","MSPointerUp"],this.Od,l,this)]}B($e,nd);p=$e.prototype;p.ic=function(a){if(!this.b){var b=a.type;J(this,0==this.f||"dblclick"==b?new Xe(af,this.a,a):new Xe(bf,this.a,a))}};
|
|
p.Hd=function(a){this.e&&(this.c=k,D(this.d,H),this.e=this.d=k,this.b&&J(this,new Xe(cf,this.a,a)))};p.Fd=function(a){J(this,new Xe(df,this.a,a));this.e||(this.c=a,this.e={clientX:a.clientX,clientY:a.clientY},this.b=l,this.d=[F(document,"mousemove",this.Gd,l,this),F(document,"mouseup",this.Hd,l,this)],a.D())};p.Gd=function(a){var b;this.b||(this.b=i,b=new Xe(ef,this.a,this.c),J(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new Xe(ff,this.a,a);J(this,b)};
|
|
p.Qd=function(a){a.D();this.c=a;this.b=l;J(this,new Xe(gf,this.a,a))};p.Pd=function(a){this.b=i;J(this,new Xe(hf,this.a,a))};p.Od=function(a){J(this,new Xe(jf,this.a,a));this.b||(a=pa(),this.f=!this.f||250<a-this.f?a:0,this.ic(this.c));this.c=k};p.s=function(){H(this.h);H(this.t);this.d!==k&&(D(this.d,H),this.d=k);this.g!==k&&(D(this.g,H),this.g=k);$e.w.s.call(this)};
|
|
var bf="click",af="dblclick",df="down",ef="dragstart",ff="drag",cf="dragend",gf="touchstart",hf="touchmove",jf="touchend",kf={ze:bf,Ae:af,Ce:df,Fe:ef,De:ff,Ee:cf,Ue:gf,Te:hf,Se:jf};function lf(){M.call(this);this.e=[0,0]}B(lf,M);function mf(a,b){a.e[1]+=b};function nf(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d<c;++d){if(a[d]==b)return d;if(a[d]<b)return a[d-1]-b<b-a[d]?d-1:d}}return c-1};function of(a){this.resolution=a;this.rotation=function(a,c){if(y(a))return 0.1>=Math.abs(a+c)?0:a+c}};var Q={Gb: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},dd:function(a){return a*a*a},Ia:function(a){return 1-Math.pow(1-a,3)},ed:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Aa:function(a){return 3*a*a-2*a*a*a},xc:aa(),Oc:function(a){return 0.5>a?Q.Aa(2*a):1-Q.Aa(2*(a-0.5))}};var pf={Gb:function(a){var b=a.resolution,c=y(a.start)?a.start:pa(),d=y(a.duration)?a.duration:1E3,e=y(a.easing)?a.easing:Q.Oc;return function(a,g){if(g.time<c)return g.S=i,g.C[0]+=1,i;if(g.time<c+d){var j=e((g.time-c)/d),m=b-g.v.resolution;g.S=i;g.v.resolution+=j*m;g.C[0]+=1;return i}return l}},aa:function(a){var b=a.source,c=y(a.start)?a.start:pa(),d=b.x,e=b.y,f=y(a.duration)?a.duration:1E3,g=y(a.easing)?a.easing:Q.Aa;return function(a,b){if(b.time<c)return b.S=i,b.C[0]+=1,i;if(b.time<c+f){var r=
|
|
1-g((b.time-c)/f),s=d-b.v.center.x,q=e-b.v.center.y;b.S=i;b.v.center.x+=r*s;b.v.center.y+=r*q;b.C[0]+=1;return i}return l}},rotate:function(a){var b=a.rotation,c=y(a.start)?a.start:pa(),d=y(a.duration)?a.duration:1E3,e=y(a.easing)?a.easing:Q.Aa;return function(a,g){if(g.time<c)return g.S=i,g.C[0]+=1,i;if(g.time<c+d){var j=1-e((g.time-c)/d),m=b-g.v.rotation;g.S=i;g.v.rotation+=j*m;g.C[0]+=1;return i}return l}},zoom:function(a){var b=a.resolution,c=y(a.start)?a.start:pa(),d=y(a.duration)?a.duration:
|
|
1E3,e=y(a.easing)?a.easing:Q.Aa;return function(a,g){if(g.time<c)return g.S=i,g.C[0]+=1,i;if(g.time<c+d){var j=1-e((g.time-c)/d),m=b-g.v.resolution;g.S=i;g.v.resolution+=j*m;g.C[0]+=1;return i}return l}}};function R(a){lf.call(this);var a=a||{},b={};b.center=y(a.center)?a.center:k;b.projection=Qe(a.projection);if(y(a.resolution))b.resolution=a.resolution;else if(y(a.zoom)){var c=b.projection.I(),c=Math.max(c.l-c.i,c.k-c.j);b.resolution=c/(256*Math.pow(2,a.zoom))}b.rotation=a.rotation;this.sb(b);if(y(a.resolutions))var d=a.resolutions,a=function(a,b){if(y(a)){var c=nf(d,a),c=Hb(c+b,0,d.length-1);return d[c]}};else{y(a.maxResolution)&&y(a.numZoomLevels)&&y(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,
|
|
a=a.zoomFactor):(a=Qe(a.projection).I(),b=Math.max(a.l-a.i,a.k-a.j)/256,c=29,a=2);var e=a,f=b,g=c-1,a=function(a,b){if(y(a)){var c=Math.floor(Math.log(f/a)/Math.log(e)+0.5),c=Math.max(c+b,0);y(g)&&(c=Math.min(c,g));return f/Math.pow(e,c)}}}this.b=new of(a)}B(R,lf);R.prototype.N=function(){return this.q("center")};R.prototype.getCenter=R.prototype.N;R.prototype.I=function(a){var b=this.N(),c=this.Q();return new ce(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};R.prototype.Cc=function(){return this.q("projection")};
|
|
R.prototype.getProjection=R.prototype.Cc;R.prototype.Q=function(){return this.q("resolution")};R.prototype.getResolution=R.prototype.Q;R.prototype.V=function(){return this.q("rotation")||0};R.prototype.getRotation=R.prototype.V;R.prototype.g=function(){return this};R.prototype.f=function(a,b){this.a(new K((a.i+a.l)/2,(a.j+a.k)/2));var c=Math.max((a.l-a.i)/b.width,(a.k-a.j)/b.height),c=this.b.resolution(c,0);this.c(c)};R.prototype.Oa=function(){return this.N()!=k&&y(this.Q())};
|
|
R.prototype.a=function(a){this.p("center",a)};R.prototype.setCenter=R.prototype.a;R.prototype.h=function(a){this.p("projection",a)};R.prototype.setProjection=R.prototype.h;R.prototype.c=function(a){this.p("resolution",a)};R.prototype.setResolution=R.prototype.c;R.prototype.d=function(a){this.p("rotation",a)};R.prototype.setRotation=R.prototype.d;R.prototype.aa=function(a,b,c){var d=this.N();y(d)&&(y(c)&&(qf(a),a.ga(pf.aa({source:d,duration:c,easing:Q.xc}))),this.a(new K(d.x+b.x,d.y+b.y)))};
|
|
R.prototype.rotate=function(a,b,c,d){b=this.b.rotation(b,0);rf(this,a,b,c,d)};function rf(a,b,c,d,e){if(c!=k){var f=a.V(),g=a.N();y(f)&&(y(g)&&y(e))&&(qf(b),b.ga(pf.rotate({rotation:f,duration:e,easing:Q.Ia})),y(d)&&b.ga(pf.aa({source:g,duration:e,easing:Q.Ia})));if(d!=k){var e=a.N(),j=new K(e.x-d.x,e.y-d.y);j.rotate(c-a.V());j.x+=d.x;j.y+=d.y;sf(b,function(){this.a(j);this.d(c)},a)}else a.d(c)}}R.prototype.zoom=function(a,b,c,d){b=this.b.resolution(b,0);tf(this,a,b,c,d)};
|
|
function uf(a,b,c,d,e){var f=a.Q(),c=a.b.resolution(f,c);tf(a,b,c,d,e)}function tf(a,b,c,d,e){if(c!=k){var f=a.Q(),g=a.N();y(f)&&(y(g)&&y(e))&&(qf(b),b.ga(pf.zoom({resolution:f,duration:e,easing:Q.Ia})),y(d)&&b.ga(pf.aa({source:g,duration:e,easing:Q.Ia})));if(d!=k){var e=a.N(),f=a.Q(),j=new K(d.x-c*(d.x-e.x)/f,d.y-c*(d.y-e.y)/f);sf(b,function(){this.a(j);this.c(c)},a)}else a.c(c)}};function vf(a){bc.call(this);this.element=y(a.element)?a.element:k;this.r=a.target;this.b=k;y(a.map)&&this.a(a.map)}B(vf,bc);vf.prototype.s=function(){Xb(this.element);vf.w.s.call(this)};vf.prototype.a=function(a){this.b===k||Xb(this.element);this.b=a;this.b!==k&&(y(this.r)?this.r:a.z).appendChild(this.element)};function wf(a){a=y(a)?a:{};this.g=Tb("UL");var b=Rb("DIV",{"class":"ol-attribution ol-unselectable"},this.g);vf.call(this,{element:b,map:a.map,target:a.target});this.f=i;this.c={};this.d={};this.e=k}B(wf,vf);
|
|
wf.prototype.h=function(a){var b=a.d;if(b===k)this.f&&(Mc(this.element,l),this.f=l);else{var c={},d={},a=this.b.e();y(a)&&a.forEach(function(a){a=a.$();d[z(a).toString()]=a;a=a.oa();if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],t=z(b).toString(),c[t]=i}});var a=Ua(b.attributions),b=b.Va,e={},f,g,j,m,r,s;for(s in b)if(f=d[s],r=f.oa(),r!==k){g=b[s];for(f=0;f<r.length;++f)if(j=r[f],m=z(j).toString(),!(m in e)){var q;a:if(j.a===k)q=i;else{var v=q=h,u=h;for(u in g)if(u in j.a){v=g[u];for(q=0;q<j.a[u].length;++q)if(be(j.a[u][q],
|
|
v)){q=i;break a}}q=l}q&&(e[m]=j)}}Wa(a,e);s=Ba(Oa(a),Number);Ka(s);for(var t,b=0;b<s.length;++b)t=s[b].toString(),t in this.c?this.d[t]||(Mc(this.c[t],i),this.d[t]=i):(e=Tb("LI"),e.innerHTML=a[t].b,this.g.appendChild(e),this.c[t]=e,this.d[t]=i),delete c[t];for(t in c)Xb(this.c[t]),delete this.c[t],delete this.d[t];a=0!=s.length;this.f!=a&&(Mc(this.element,a),this.f=a)}};wf.prototype.a=function(a){this.e!==k&&(D(this.e,H),this.e=k);wf.w.a.call(this,a);a!==k&&(this.e=[F(a,"postrender",this.h,l,this)])};function xf(a){var a=y(a)?a:{},b=Rb("A",{href:"#zoomIn","class":"ol-zoom-in"});F(b,["touchend","click"],this.d,l,this);var c=Rb("A",{href:"#zoomOut","class":"ol-zoom-out"});F(c,["touchend","click"],this.e,l,this);b=Rb("DIV","ol-zoom ol-unselectable",b,c);vf.call(this,{element:b,map:a.map,target:a.target});this.c=y(a.delta)?a.delta:1}B(xf,vf);xf.prototype.d=function(a){a.D();a=this.b;qf(a);uf(a.a(),a,this.c,h,250)};xf.prototype.e=function(a){a.D();a=this.b;qf(a);uf(a.a(),a,-this.c,h,250)};function yf(a,b){var c=y(a)?a:{},d=[];if(y(c.attribution)?c.attribution:1)d.push(new wf(y(c.Zd)?c.Zd:h));if(y(c.zoom)?c.zoom:1)d.push(new xf(y(c.te)?c.te:h));y(b)&&Ha(d,b);return d};function zf(a,b,c){this.e=a;this.d=b;this.f=c;this.a=[];this.b=this.c=0}function Af(a){for(var b=pa(),c=a.a.length-1,d=c-1;0<=d&&a.a[d].Ua>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.Ua-b.Ua);return a.b>a.d}return l}zf.prototype.aa=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return pf.aa({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Bf(){};function Cf(a){this.a=a}B(Cf,Bf);Cf.prototype.ra=function(a){var b=a.a;if(a.type==af&&(Od||nc(a.a))){var c=a.map,d=a.b(),e=a.a.qa?-this.a:this.a;uf(c.a(),c,e,d,250);a.D();b.D()}};function Df(a){return a.ea&&!a.vb&&a.qa}function Ef(a){return!a.ea&&!a.vb&&!a.qa}function Ff(a){return!a.ea&&!a.vb&&a.qa};function Gf(){this.e=l;this.r=this.Qa=this.h=this.g=0;this.Ta=this.f=k}B(Gf,Bf);p=Gf.prototype;p.Mb=ba;p.ib=ba;p.jb=pd;p.vc=ba;p.ra=function(a){var b=a.map;if(b.Oa()){var b=b.a(),c=a.a;a.type==df&&this.vc(a);this.e?a.type==ff?(this.d=c.clientX-this.g,this.b=c.clientY-this.h,this.Mb(a)):a.type==cf&&(this.d=c.clientX-this.g,this.b=c.clientY-this.h,this.ib(a),this.e=l):a.type==ef&&(this.g=c.clientX,this.h=c.clientY,this.b=this.d=0,this.f=b.N(),this.Ta=a.b(),this.jb(a)&&(this.e=i,a.D()))}};function Hf(a,b){Gf.call(this);this.t=a;this.a=b;this.c=k}B(Hf,Gf);Hf.prototype.Mb=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,Ua:pa()});var a=a.map,b=a.a(),c=b.Q(),d=b.V(),c=new K(-c*this.d,c*this.b);c.rotate(d);d=new K(this.f.x+c.x,this.f.y+c.y);qf(a);b.a(d)};
|
|
Hf.prototype.ib=function(a){var b=a.map,a=b.a();mf(a,-1);if(this.a&&Af(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.N();this.c=this.a.aa(e);b.ga(this.c);e=If(b,e);b=Ye(b,new We(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};Hf.prototype.jb=function(a){var b=a.a;if(this.t(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,Ua:pa()})}a=a.map;qf(a);mf(a.a(),1);return i}return l};
|
|
Hf.prototype.vc=function(a){var b=a.map,c=b.a();this.c!==k&&Ea(b.h,this.c)&&(qf(b),c.a(a.d.v.center),this.c=k)};function Jf(a){Gf.call(this);this.c=a}B(Jf,Gf);Jf.prototype.Mb=function(a){var b=a.map,c=b.f(),a=Ze(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(y(this.a)){var a=c-this.a,d=b.a();qf(b);rf(d,b,d.V()-a)}this.a=c};Jf.prototype.ib=function(a){var a=a.map,b=a.a();b.rotate(a,b.V(),h,250);mf(b,-1)};Jf.prototype.jb=function(a){var b=a.a;return nc(b)&&this.c(b)?(a=a.map,b=a.a(),qf(a),this.a=h,mf(b,1),i):l};function Kf(a){var b=Rb("DIV","ol-dragbox");this.c=k;this.e=a.Ta;this.d=k;vf.call(this,{element:b,map:a.map})}B(Kf,vf);Kf.prototype.a=function(a){this.d!==k&&(H(this.d),this.d=k);a!==k&&(this.c=If(a,this.e),Ec(this.element,this.c),Nc(this.element,new $d(0,0)),this.d=F(a,ff,this.f,l,this));Kf.w.a.call(this,a)};Kf.prototype.f=function(a){var b=this.b,a=a.b(),b=If(b,a);Ec(this.element,new We(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Nc(this.element,new $d(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Lf(a){Gf.call(this);this.c=a;this.a=k}B(Lf,Gf);Lf.prototype.ib=function(a){this.a.a(k);this.a=k;if(64<=this.d*this.d+this.b*this.b){var b=a.map,c=de(this.Ta,a.b());sf(b,function(){var a=b.a(),e=b.f();a.f(c,e);a.d(0)})}};Lf.prototype.jb=function(a){var b=a.a;return nc(b)&&this.c(b)?(this.a=new Kf({map:a.map,Ta:this.Ta}),i):l};function Mf(a){a=y(a)?a:{};this.a=y(a.delta)?a.delta:128}B(Mf,Bf);Mf.prototype.ra=function(a){if("key"==a.type){var b=a.a,c=b.za;if(40==c||37==c||39==c||38==c){var d=a.map,e=d.a(),f=e.Q(),g=e.V(),f=f*this.a,j=0,m=0;40==c?m=-f:37==c?j=-f:39==c?j=f:m=f;c=new K(j,m);c.rotate(g);e.aa(d,c,100);b.D();a.D()}}};function Nf(a){a=y(a)?a:{};this.a=y(a.delta)?a.delta:1}B(Nf,Bf);Nf.prototype.ra=function(a){if("key"==a.type){var b=a.a,c=b.fb;if(43==c||45==c){var d=a.map,c=43==c?this.a:-this.a;qf(d);uf(d.a(),d,c,h,100);b.D();a.D()}}};function Of(){this.a=0;this.c=k;this.d=this.b=h}B(Of,Bf);Of.prototype.ra=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a;this.c=a.b();this.a+=c.b/3;y(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.D();c.D()}};Of.prototype.e=function(a){var b=Hb(this.a,-1,1),c=a.a();qf(a);uf(c,a,-b,this.c,250);this.a=0;this.c=k;this.d=this.b=h};function Pf(){this.g=l;this.h={};this.targetTouches=[]}B(Pf,Bf);function Qf(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return new We(c/b,d/b)}Pf.prototype.e=ba;Pf.prototype.d=pd;Pf.prototype.f=pd;Pf.prototype.ra=function(a){var b=a.a.L;y(b.targetTouches)?this.targetTouches=b.targetTouches:(a.type==jf?delete this.h[b.pointerId]:this.h[b.pointerId]=b,this.targetTouches=Na(this.h));this.g&&(a.type==hf?this.e(a):a.type==jf&&(this.g=this.d(a)));a.type==gf&&(this.g=this.f(a))};function Rf(a){Pf.call(this);this.a=a;this.b=this.c=k}B(Rf,Pf);Rf.prototype.e=function(a){var b=Qf(this.targetTouches);if(this.b!==k){this.a&&this.a.a.push({x:b.x,y:b.y,Ua:pa()});var c=this.b.x-b.x,d=b.y-this.b.y,a=a.map.a(),c=new K(c,d),d=a.Q();c.x*=d;c.y*=d;c=c.rotate(a.V()).add(a.N());a.a(c)}this.b=b};
|
|
Rf.prototype.d=function(a){var b=a.map,a=b.a();if(0==this.targetTouches.length){mf(a,-1);if(this.a&&Af(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.N();this.c=this.a.aa(e);b.ga(this.c);e=If(b,e);b=Ye(b,new We(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}return l}this.b=k;return i};Rf.prototype.f=function(a){if(1<=this.targetTouches.length){var b=a.map,c=b.a();this.b=k;this.c!==k&&Ea(b.h,this.c)&&(qf(b),c.a(a.d.v.center),this.c=k);this.a&&(a=this.a,a.a.length=0,a.c=0,a.b=0);mf(c,1);return i}return l};function Sf(a){Pf.call(this);this.a=l;this.b=0;this.t=y(a)?a:0.3}B(Sf,Pf);Sf.prototype.e=function(a){var b=0,c=this.targetTouches[0],d=this.targetTouches[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);y(this.c)&&(b=c-this.c,this.b+=b,!this.a&&Math.abs(this.b)>this.t&&(this.a=i));this.c=c;var a=a.map,c=a.a(),d=Jc(a.b),e=Qf(this.targetTouches);e.x-=d.x;e.y-=d.y;d=Ye(a,e);this.a&&rf(c,a,c.V()+b,d)};
|
|
Sf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();this.a&&b.rotate(a,b.V(),h,250);mf(b,-1);return l}return i};Sf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.c=h,this.a=l,this.b=0,mf(a,1),i):l};function Tf(){Pf.call(this)}B(Tf,Pf);Tf.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);y(this.a)&&(b=this.a/e);this.a=e;a=a.map;e=a.a();c=Jc(a.b);d=Qf(this.targetTouches);d.x-=c.x;d.y-=c.y;c=Ye(a,d);tf(e,a,e.Q()*b,c)};Tf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();b.zoom(a,b.Q(),h,250);mf(b,-1);return l}return i};
|
|
Tf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.a=h,mf(a,1),i):l};function Uf(a,b){var c=y(a)?a:{},d=new N;(y(c.rotate)?c.rotate:1)&&d.push(new Jf(Df));if(y(c.$d)?c.$d:1)d.push(new Cf(y(c.ue)?c.ue:1));(y(c.ee)?c.ee:1)&&d.push(new Rf(new zf(-0.005,0.05,100)));(y(c.fe)?c.fe:1)&&d.push(new Sf);(y(c.ge)?c.ge:1)&&d.push(new Tf);(y(c.ae)?c.ae:1)&&d.push(new Hf(Ef,new zf(-0.005,0.05,100)));if(y(c.be)?c.be:1)d.push(new Mf),d.push(new Nf);(y(c.ce)?c.ce:1)&&d.push(new Of);(y(c.de)?c.de:1)&&d.push(new Lf(Ff));if(y(b))for(c=0;c<b.length;++c)d.push(b[c]);return d};function Vf(a){O.call(this,{code:a,units:"m",extent:Wf,global:i})}B(Vf,O);var Xf=6378137*Math.PI,Wf=new ce(-Xf,-Xf,Xf,Xf),Yf=Ba(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Vf(a)});Vf.prototype.c=function(a,b){return a/((Math.exp(b.y/6378137)+Math.exp(-(b.y/6378137)))/2)};function Zf(a,b){O.call(this,{code:a,units:"degrees",extent:$f,axisOrientation:b,global:i})}B(Zf,O);var $f=new ce(-180,-90,180,90),ag=[new Zf("CRS:84"),new Zf("EPSG:4326","neu"),new Zf("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Zf("urn:ogc:def:crs:OGC:1.3:CRS84")];Zf.prototype.c=aa();function bg(a,b,c,d,e){this.f=e;this.g=a;this.h=c;this.e=b;this.b=new Image;d!==k&&(this.b.crossOrigin=d);this.d={};this.c=k;this.a=0}B(bg,nd);bg.prototype.oa=n("f");bg.prototype.I=n("g");function cg(a,b){if(y(b)){var c,d=z(b);if(d in a.d)return a.d[d];c=Ta(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}bg.prototype.t=function(){this.a=3;D(this.c,H);this.c=k;J(this,"change")};bg.prototype.r=function(){this.a=2;D(this.c,H);this.c=k;J(this,"change")};
|
|
function dg(a){0==a.a&&(a.a=1,a.c=[vc(a.b,"error",a.t,l,a),vc(a.b,"load",a.r,l,a)],a.b.src=a.h)};function eg(a){this.a=a.resolutions;this.g=this.a.length;this.d=y(a.origin)?a.origin:k;this.f=k;y(a.origins)&&(this.f=a.origins);this.c=k;y(a.tileSizes)&&(this.c=a.tileSizes);this.e=y(a.tileSize)?a.tileSize:this.c===k?new $d(256,256):k}eg.prototype.b=function(a,b,c){for(var d=fg(this,a),a=a.n-1;0<=a&&!b.call(c,a,gg(this,d,this.a[a]));)--a};function hg(a,b){return a.d===k?a.f[b]:a.d}eg.prototype.Jb=n("a");
|
|
function gg(a,b,c){var d=ig(a,new K(b.i,b.j),c),a=ig(a,new K(b.l,b.k),c,i);return new ue(d.x,d.y,a.x,a.y)}function jg(a,b){var c=hg(a,b.n),d=a.a[b.n],e=kg(a,b.n);return new K(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function fg(a,b){var c=hg(a,b.n),d=a.a[b.n],e=kg(a,b.n),f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new ce(f,c,f+e.width*d,c+e.height*d)}
|
|
function ig(a,b,c,d){var e=nf(a.a,c),f=c/a.a[e],g=hg(a,e),j=kg(a,e),a=f*(b.x-g.x)/(c*j.width),b=f*(b.y-g.y)/(c*j.height);d?(a=Math.ceil(a)-1,b=Math.ceil(b)-1):(a=Math.floor(a),b=Math.floor(b));return new se(e,a,b)}function kg(a,b){return a.e===k?a.c[b]:a.e}
|
|
function lg(a){var b=a.f;if(b===k){for(var b=a.I(),c=Math.max(b.l-b.i,b.k-b.j),d=y(h)?h:new $d(256,256),e=Array((y(h)?NaN:42)+1),c=c/d.width,f=0,g=e.length;f<g;++f)e[f]=c/Math.pow(2,f);b=new eg({origin:ee(b),resolutions:e,tileSize:d});a.f=b}return b};function mg(a){Ue.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.H=y(a.opaque)?a.opaque:l;this.tileGrid=y(a.tileGrid)?a.tileGrid:k}B(mg,Ue);mg.prototype.g=pd;mg.prototype.d=function(a,b,c,d){var e=i,f,g,j,m;for(j=d.i;j<=d.l;++j)for(m=d.j;m<=d.k;++m)if(f=new se(c,j,m),g=f.toString(),!a[c]||!a[c][g])f=b(f),f===k?e=l:(a[c]||(a[c]={}),a[c][g]=f);return e};mg.prototype.Jb=function(){return this.tileGrid.Jb()};
|
|
function ng(a,b,c,d){for(var e,f,g;0<=b;--b){e=gg(d,c,d.a[b]);for(f=e.i;f<=e.l;++f)for(g=e.j;g<=e.k;++g)a.r(b+"/"+f+"/"+g)}}mg.prototype.r=ba;function og(a,b){M.call(this);this.r=a;this.a=b;this.u={};F(this.a,Ud("brightness"),this.Ob,l,this);F(this.a,Ud("contrast"),this.Pb,l,this);F(this.a,Ud("hue"),this.Qb,l,this);F(this.a,"load",this.xd,l,this);F(this.a,Ud("opacity"),this.yd,l,this);F(this.a,Ud("saturation"),this.Rb,l,this);F(this.a,Ud("visible"),this.Ad,l,this)}B(og,M);function pg(a){J(a,"change")}p=og.prototype;p.da=n("r");p.Ob=ba;p.Pb=ba;p.Qb=ba;p.Nb=function(a){2===a.target.a&&qf(this.r.map)};p.xd=function(){pg(this)};p.yd=function(){pg(this)};
|
|
p.Rb=ba;p.Ad=function(){pg(this)};p.Nd=function(a){a=a.target;2===a.a&&qf(this.r.map);delete this.u[a.b()]};function qg(a,b){var c=b.b();c in a.u||(a.u[c]=i,vc(b,"change",a.Nd,l,a))}function rg(a,b){b.g()&&a.Ca.push(oa(function(a,b,e){b=z(a).toString();a.Ja(e.Va[b])},b))}function sg(a,b){if(b!=k){var c,d;for(c=0;c<b.length;++c)d=b[c],a[z(d).toString()]=d}}
|
|
function tg(a,b,c,d){b=z(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],a.i=Math.min(a.i,d.i),a.j=Math.min(a.j,d.j),a.l=Math.max(a.l,d.l),a.k=Math.max(a.k,d.k)):a[b][c]=d:(a[b]={},a[b][c]=d)}function ug(a,b,c){b=z(b).toString();c=c.toString();b in a||(a[b]={});a[b][c]=i}function vg(a,b,c,d){return function(e){e=b.b(e,c,d);return a(e)?e:k}};function wg(a,b){bc.call(this);this.ma=a;this.map=b;this.d={};this.G=F(b,Ud(xg),this.Cd,l,this);this.e=k;this.u={}}B(wg,bc);p=wg.prototype;p.Ba=function(a){var b=this.Za(a),a=z(a);this.d[a]=b;this.u[a]=F(b,"change",this.zd,l,this)};
|
|
function yg(a){var b=a.v,c=a.kc;le(c);pe(c,a.size.width/2,a.size.height/2);qe(c,1/b.resolution,-1/b.resolution);re(c,-b.rotation);pe(c,-b.center.x,-b.center.y);var a=a.Ec,b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],j=c[5],m=c[6],r=c[7],s=c[8],q=c[9],v=c[10],u=c[11],t=c[12],x=c[13],C=c[14],c=c[15],G=b*j-d*g,I=b*m-e*g,T=b*r-f*g,L=d*m-e*j,W=d*r-f*j,$=e*r-f*m,ua=s*x-q*t,va=s*C-v*t,Pa=s*c-u*t,Qa=q*C-v*x,Ra=q*c-u*x,Sa=v*c-u*C,X=G*Sa-I*Ra+T*Qa+L*Pa-W*va+$*ua;0!=X&&(X=1/X,a[0]=(j*Sa-m*Ra+r*Qa)*X,a[1]=(-d*Sa+e*Ra-
|
|
f*Qa)*X,a[2]=(x*$-C*W+c*L)*X,a[3]=(-q*$+v*W-u*L)*X,a[4]=(-g*Sa+m*Pa-r*va)*X,a[5]=(b*Sa-e*Pa+f*va)*X,a[6]=(-t*$+C*T-c*I)*X,a[7]=(s*$-v*T+u*I)*X,a[8]=(g*Ra-j*Pa+r*ua)*X,a[9]=(-b*Ra+d*Pa-f*ua)*X,a[10]=(t*W-x*T+c*G)*X,a[11]=(-s*W+q*T-u*G)*X,a[12]=(-g*Qa+j*va-m*ua)*X,a[13]=(b*Qa-d*va+e*ua)*X,a[14]=(-t*L+x*I-C*G)*X,a[15]=(s*L-q*I+v*G)*X)}p.Za=function(a){return new og(this,a)};p.s=function(){Ma(this.d,function(a){gc(a)});H(this.G);this.e===k||D(this.e,H);wg.w.s.call(this)};p.bb=rd;
|
|
function zg(a,b){var c=z(b);return a.d[c]}p.zd=function(){Ag(this.map)};p.Bd=function(a){this.Ba(a.a)};p.Cd=function(){fc(Na(this.d));this.d={};this.e!==k&&(D(this.e,H),this.e=k);var a=this.map.e();a!=k&&(a.forEach(this.Ba,this),this.e=[F(a,"add",this.Bd,l,this),F(a,"remove",this.Dd,l,this)])};p.Dd=function(a){this.Ub(a.a)};p.Ub=function(a){a=z(a);if(a in this.d){var b=this.d[a];delete this.d[a];H(this.u[a]);delete this.u[a];a=b}else a=k;gc(a)};p.tb=ba;function Bg(a,b,c,d,e){d={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:i,WIDTH:Math.round(d.width),HEIGHT:Math.round(d.height)};Wa(d,b);d.STYLES=b.STYLES||new String("");b="1.3"<d.VERSION;d[b?"CRS":"SRS"]=e.a;e=e.d;d.BBOX=(b&&"ne"==e.substr(0,2)?[c.j,c.i,c.k,c.l]:[c.i,c.j,c.l,c.k]).join(",");var a=[a],f;for(f in d)Uc(f,d[f],a);a[1]&&(f=a[0],c=f.indexOf("#"),0<=c&&(a.push(f.substr(c)),a[0]=f=f.substr(0,c)),c=f.indexOf("?"),0>c?a[1]="?":c==f.length-1&&(a[1]=h));return a.join("")}
|
|
;function Cg(a,b){return function(c,d,e){return Bg(a,b,c,d,e)}}function Dg(){};function Eg(a){Ue.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Na=y(a.Na)?a.Na:Dg;this.d=y(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=y(a.resolutions)?a.resolutions:k}B(Eg,Ue);function Fg(a,b,c,d,e){var f=k,d=a.Na(b,d,e);y(d)&&(f=new bg(b,c,d,a.d,a.oa()));return f};function Gg(a){P.call(this,a)}B(Gg,P);function Hg(a){P.call(this,a)}B(Hg,P);function Ig(a,b){og.call(this,a,b)}B(Ig,og);function Jg(a,b){og.call(this,a,b);this.b=k;this.c=he()}B(Jg,Ig);Jg.prototype.J=function(){return this.b===k?k:cg(this.b,this)};Jg.prototype.ma=n("c");
|
|
Jg.prototype.ka=function(a){var b=a.v,c=b.center,d=b.resolution,e=b.rotation,f=this.a.$(),g=a.C;!g[0]&&!g[1]&&(b=f.J(a.extent,d,b.projection),b!==k&&(f=b.a,0==f?(vc(b,"change",this.Nb,l,this),dg(b)):2==f&&(this.b=b)));if(this.b!==k){var b=this.b,f=b.I(),g=b.e,j=this.c;le(j);pe(j,a.size.width/2,a.size.height/2);re(j,e);qe(j,g/d,g/d);pe(j,(f.i-c.x)/g,(c.y-f.k)/g);sg(a.attributions,b.oa())}};function Kg(a,b){og.call(this,a,b);this.e=this.c=this.d=k;this.f=he();this.b=k}B(Kg,Ig);Kg.prototype.J=n("d");Kg.prototype.ma=n("f");
|
|
Kg.prototype.ka=function(a){var b=a.v,c=b.projection,d=this.a.$(),e=z(d).toString(),f=d.tileGrid;f===k&&(f=lg(c));var g=nf(f.a,b.resolution),j=kg(f,g),m=f.a[g],r=gg(f,a.extent,m),s=r.ha(),q=r.ca(),j=new $d(j.width*s,j.height*q),v,u;this.d===k?(v=Tb("CANVAS"),v.width=j.width,v.height=j.height,u=v.getContext("2d"),this.d=v,this.c=j,this.e=u,this.b=Array(s*q)):(v=this.d,u=this.e,this.c.width==j.width&&this.c.height==j.height||(v.width=j.width,v.height=j.height,this.c=j,this.b=Array(s*q)));q={};q[g]=
|
|
{};var j=na(d.d,d,q,vg(function(a){return a!==k&&2==a.a},d,f,c)),t,x,C,G,I;for(G=r.i;G<=r.l;++G)for(I=r.j;I<=r.k;++I){x=new se(g,G,I);t=d.b(x,f,c);C=t.a;if(0==C)ug(a.Wa,d,x),v=jg(f,x),ye(a.Zb,t,e,v);else if(1==C)qg(this,t);else if(2==C||4==C){q[g][x.toString()]=t;continue}else if(3==C)continue;f.b(x,j)}e=Ba(Oa(q),Number);Ka(e);v=d.H;var c=ee(fg(f,new se(g,r.i,r.k))),T,L,W,$,ua,va;for(T=0;T<e.length;++T)if(x=e[T],j=kg(f,x),$=q[x],x==g)for(L in $)t=$[L],x=t.X,x=(x.y-r.j)*s+(x.x-r.i),this.b[x]!=t&&(G=
|
|
j.width*(t.X.x-r.i),I=j.height*(r.k-t.X.y),C=t.a,(4==C||!v)&&u.clearRect(G,I,j.width,j.height),2==C&&u.drawImage(t.J(),G,I),this.b[x]=t);else for(L in x=f.a[x]/m,$){t=$[L];W=fg(f,t.X);G=(W.i-c.x)/m;I=(c.y-W.k)/m;va=x*j.width;ua=x*j.height;C=t.a;(4==C||!v)&&u.clearRect(G,I,va,ua);2==C&&u.drawImage(t.J(),G,I,va,ua);I=gg(f,W,f.a[g]);C=Math.max(I.i,r.i);t=Math.min(I.l,r.l);G=Math.max(I.j,r.j);for(I=Math.min(I.k,r.k);C<=t;++C)for(W=G;W<=I;++W)this.b[(W-r.j)*s+(C-r.i)]=h}tg(a.Va,d,g,r);ng(d,g,a.extent,
|
|
f);rg(a,d);d=this.f;le(d);pe(d,a.size.width/2,a.size.height/2);re(d,b.rotation);qe(d,m/b.resolution,m/b.resolution);pe(d,(c.x-b.center.x)/m,(b.center.y-c.y)/m)};function Lg(a,b){wg.call(this,a,b);this.f=new $d(a.clientHeight,a.clientWidth);this.c=Tb("CANVAS");this.c.height=this.f.height;this.c.width=this.f.width;this.c.className="ol-unselectable";Wb(a,this.c);this.g=i;this.h=this.c.getContext("2d")}B(Lg,wg);Lg.prototype.Za=function(a){return a instanceof Gg?new Jg(this,a):a instanceof Hg?new Kg(this,a):k};Lg.prototype.bb=n("c");
|
|
Lg.prototype.tb=function(a){if(a===k)this.g&&(Mc(this.c,l),this.g=l);else{var b=a.size;this.f.width==b.width&&this.f.height==b.height||(this.c.width=b.width,this.c.height=b.height,this.f=b);var c=this.h;c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.c.toFixed(0)+","+d.b.toFixed(0)+","+d.a.toFixed(0)+")";c.globalAlpha=1;c.fillRect(0,0,b.width,b.height);D(a.ob,function(b){var d=a.nb[z(b)];if(d.visible)if(d.xb){var g=zg(this,b);g.ka(a,d);b=g.J();b!==k&&(g=g.ma(),c.setTransform(g[0],
|
|
g[1],g[4],g[5],g[12],g[13]),c.globalAlpha=d.opacity,c.drawImage(b,0,0))}else a.S=i},this);this.g||(Mc(this.c,i),this.g=i);yg(a)}};var Mg=function(){if(!("HTMLCanvasElement"in w))return l;try{return Tb("CANVAS").getContext("2d")!==k}catch(a){return l}}();function Ng(a,b){var c;if(y(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Og(a,b,c){og.call(this,a,b);this.target=c}B(Og,og);Og.prototype.s=function(){Xb(this.target);Og.w.s.call(this)};function Pg(a,b){var c=Tb("DIV");c.className="ol-layer-image";c.style.position="absolute";Og.call(this,a,b,c);this.b=k;this.c=je()}B(Pg,Og);
|
|
Pg.prototype.ka=function(a){var b=a.v,c=b.center,d=b.resolution,e=b.rotation,f=this.b,g=this.a.$(),j=a.C;!j[0]&&!j[1]&&(b=g.J(a.extent,d,b.projection),b!==k&&(g=b.a,0==g?(vc(b,"change",this.Nb,l,this),dg(b)):2==g&&(f=b)));f!==k&&(g=f.I(),j=f.e,b=he(),le(b),pe(b,a.size.width/2,a.size.height/2),re(b,e),qe(b,j/d,j/d),pe(b,(g.i-c.x)/j,(c.y-g.k)/j),f!=this.b&&(c=cg(f,this),c.style.position="absolute",Vb(this.target),this.target.appendChild(c),this.b=f),ne(b,this.c)||(Ng(this.target,b),ke(this.c,b)),sg(a.attributions,
|
|
f.oa()))};function Qg(a,b){var c=Tb("DIV");c.className="ol-layer-tile";c.style.position="absolute";Og.call(this,a,b,c);this.c=i;this.d=1;this.b={}}B(Qg,Og);
|
|
Qg.prototype.ka=function(a,b){if(b.visible){var c=a.v,d=c.projection,e=this.a.$(),f=z(e).toString(),g=e.tileGrid;g===k&&(g=lg(d));var j=nf(g.a,c.resolution),m=gg(g,a.extent,g.a[j]),r={};r[j]={};var s=na(e.d,e,r,vg(function(a){return a!==k&&2==a.a},e,g,d)),q,v,u,t,x;for(t=m.i;t<=m.l;++t)for(x=m.j;x<=m.k;++x){u=new se(j,t,x);q=e.b(u,g,d);v=q.a;if(0==v)ug(a.Wa,e,u),v=jg(g,u),ye(a.Zb,q,f,v);else if(1==v)qg(this,q);else if(2==v){r[j][u.toString()]=q;continue}else if(3==v||4==v)continue;g.b(u,s)}s=Ba(Oa(r),
|
|
Number);Ka(s);var d={},C;for(q=0;q<s.length;++q){u=s[q];u in this.b?f=this.b[u]:(f=ig(g,c.center,g.a[u]),f=new Rg(g,f),d[u]=i,this.b[u]=f);u=r[u];for(C in u){t=f;x=u[C];v=x.X;var G=v.toString();if(!(G in t.b)){var I=kg(t.d,v.n),T=x.J(t),L=T.style;L.position="absolute";L.left=(v.x-t.c.x)*I.width+"px";L.top=(t.c.y-v.y)*I.height+"px";t.a===k&&(t.a=document.createDocumentFragment());t.a.appendChild(T);t.b[G]=x}}f.a!==k&&(f.target.appendChild(f.a),f.a=k)}C=Ba(Oa(this.b),Number);Ka(C);q=he();for(s=0;s<
|
|
C.length;++s)if(u=C[s],f=this.b[u],u in r)if(x=f.g,t=f.f,le(q),pe(q,a.size.width/2,a.size.height/2),re(q,c.rotation),qe(q,x/c.resolution,x/c.resolution),pe(q,(t.x-c.center.x)/x,(c.center.y-t.y)/x),t=f,x=q,ne(x,t.e)||(Ng(t.target,x),ke(t.e,x)),u in d){for(u-=1;0<=u;--u)if(u in this.b){t=this.b[u].target;t.parentNode&&t.parentNode.insertBefore(f.target,t.nextSibling);break}0>u&&Wb(this.target,f.target)}else{if(!a.C[0]&&!a.C[1]){v=gg(f.d,a.extent,f.d.a[f.c.n]);u=[];x=t=h;for(x in f.b)t=f.b[x],v.contains(t.X)||
|
|
u.push(t);v=h;for(v=0;v<u.length;++v)t=u[v],x=t.X.toString(),Xb(t.J(f)),delete f.b[x]}}else Xb(f.target),delete this.b[u];b.opacity!=this.d&&(c=b.opacity,r=this.target.style,"opacity"in r?r.opacity=c:"MozOpacity"in r?r.MozOpacity=c:"filter"in r&&(r.filter=""===c?"":"alpha(opacity="+100*c+")"),this.d=b.opacity);b.visible&&!this.c&&(Mc(this.target,i),this.c=i);tg(a.Va,e,j,m);ng(e,j,a.extent,g);rg(a,e)}else this.c&&(Mc(this.target,l),this.c=l)};
|
|
function Rg(a,b){this.target=Tb("DIV");this.target.style.position="absolute";this.d=a;this.c=b;this.f=ee(fg(a,b));this.g=a.a[b.n];this.b={};this.a=k;this.e=je()};function Sg(a,b){wg.call(this,a,b);this.c=Tb("DIV");this.c.className="ol-layers ol-unselectable";var c=this.c.style;c.position="absolute";c.width="100%";c.height="100%";Wb(a,this.c);this.f=i}B(Sg,wg);Sg.prototype.Ba=function(a){Sg.w.Ba.call(this,a);Ag(this.map)};Sg.prototype.Za=function(a){var b;a instanceof Hg?b=new Qg(this,a):a instanceof Gg&&(b=new Pg(this,a));this.c.appendChild(b.target);return b};
|
|
Sg.prototype.tb=function(a){a===k?this.f&&(Mc(this.c,l),this.f=l):(D(a.ob,function(b){var c=a.nb[z(b)];c.xb&&zg(this,b).ka(a,c)},this),this.f||(Mc(this.c,i),this.f=i),yg(a))};function Tg(a){this.a=a}Tg.prototype.$=n("a");function Ug(a){this.a=a}B(Ug,Tg);Ug.prototype.b=function(){return 35632};function Vg(a){this.a=a}B(Vg,Tg);Vg.prototype.b=function(){return 35633};function Wg(a,b){og.call(this,a,b);this.G=new Float32Array(16);this.K=new Float32Array(16);this.va=new Float32Array(16);this.wa=new Float32Array(16);this.H=new Float32Array(16);this.c=i;this.Ob();this.Pb();this.Qb();this.Rb()}B(Wg,og);function Xg(a){if(a.c){var b=a.H;le(b);me(b,a.K,b);me(b,a.G,b);me(b,a.wa,b);me(b,a.va,b);a.c=l}return a.H}p=Wg.prototype;p.da=function(){return Wg.w.da.call(this)};p.Ob=function(){var a=this.a.b(),b=this.G;le(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;pg(this)};
|
|
p.Pb=function(){var a=this.a.c(),b=this.K;le(b);b[0]=a;b[5]=a;b[10]=a;b[15]=1;a=-0.5*a+0.5;b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;pg(this)};p.Qb=function(){var a=this.a.d(),b=Math.cos(a),a=Math.sin(a);ie(this.va,0.213+0.787*b-0.213*a,0.213-0.213*b+0.143*a,0.213-0.213*b-0.787*a,0,0.715-0.715*b-0.715*a,0.715+0.285*b+0.14*a,0.715-0.715*b+0.715*a,0,0.072-0.072*b+0.928*a,0.072-0.072*b-0.283*a,0.072+0.928*b+0.072*a,0,0,0,0,1);this.c=i;pg(this)};
|
|
p.Rb=function(){var a=this.a.f();ie(this.wa,0.213+0.787*a,0.213-0.213*a,0.213-0.213*a,0,0.715-0.715*a,0.715+0.285*a,0.715-0.715*a,0,0.072-0.072*a,0.072-0.072*a,0.072+0.928*a,0,0,0,0,1);this.c=i;pg(this)};p.Ma=ba;function Yg(a,b){Wg.call(this,a,b);this.b=this.d=k;this.f=je();this.e=he()}B(Yg,Wg);p=Yg.prototype;p.s=function(){var a=this.da().a;a.isContextLost()||a.deleteTexture(this.b);Yg.w.s.call(this)};p.qc=n("f");p.rc=n("b");p.pc=n("e");p.Ma=function(){this.b=k};
|
|
p.ka=function(a){var b=this.da().a,c=a.v,d=c.center,e=c.resolution,f=c.rotation,g=this.d,j=this.b,m=this.a.$(),r=a.C;!r[0]&&!r[1]&&(c=m.J(a.extent,e,c.projection),c!==k&&(m=c.a,0==m?(vc(c,"change",this.Nb,l,this),dg(c)):2==m&&(g=c,j=cg(c,this),c=this.da().a,m=c.createTexture(),c.bindTexture(3553,m),c.texImage2D(3553,0,6408,6408,5121,j),c.texParameteri(3553,10242,33071),c.texParameteri(3553,10243,33071),c.texParameteri(3553,10241,9729),c.texParameteri(3553,10240,9729),j=m,this.b===k||a.Ca.push(oa(function(a,
|
|
b){a.isContextLost()||a.deleteTexture(b)},b,this.b)))));g!==k&&(m=this.da().bb(),b=g.I(),c=m.width*e,e*=m.height,m=this.e,le(m),qe(m,2/c,2/e),re(m,-f),pe(m,b.i-d.x,b.j-d.y),qe(m,b.ha()/2,b.ca()/2),pe(m,1,1),d=this.f,le(d),qe(d,1,-1),pe(d,0,-1),this.d=g,this.b=j,sg(a.attributions,g.oa()))};function Zg(a,b){this.M=a;this.Y=b}Zg.prototype.T=function(){return new Zg(this.M,this.Y)};function $g(a){this.a=[];if(a)a:{var b,c;if(a instanceof $g){if(b=a.Z(),c=a.O(),0>=a.ba()){for(var a=this.a,d=0;d<b.length;d++)a.push(new Zg(b[d],c[d]));break a}}else b=Oa(a),c=Na(a);for(d=0;d<b.length;d++)ah(this,b[d],c[d])}}function ah(a,b,c){var d=a.a;d.push(new Zg(b,c));b=d.length-1;a=a.a;for(c=a[b];0<b;)if(d=b-1>>1,a[d].M>c.M)a[b]=a[d],b=d;else break;a[b]=c}p=$g.prototype;
|
|
p.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Da(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,g=2*a+2,f=g<d&&b[g].M<b[f].M?g:f;if(b[f].M>e.M)break;b[a]=b[f];a=f}b[a]=e}return c.Y}};p.O=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Y);return b};p.Z=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].M);return b};p.T=function(){return new $g(this)};p.ba=function(){return this.a.length};
|
|
p.Pa=function(){return 0==this.a.length};p.clear=function(){Da(this.a)};function bh(){$g.call(this)}B(bh,$g);function ch(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}B(ch,Ug);ca(ch);function dh(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nuniform vec4 uTileOffset;\n\nvoid main(void) {\n gl_Position.xy = aPosition * uTileOffset.xy + uTileOffset.zw;\n gl_Position.z = 0.;\n gl_Position.w = 1.;\n vTexCoord = aTexCoord;\n}"}B(dh,Vg);ca(dh);
|
|
function eh(a,b){Wg.call(this,a,b);this.ya=ch.cb();this.Eb=dh.cb();this.e=this.g=this.f=this.B=k;this.h=h;this.d=he();this.Ga=je();this.z=this.b=k}B(eh,Wg);p=eh.prototype;p.s=function(){var a=this.da().a;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));eh.w.s.call(this)};p.qc=n("d");p.rc=n("g");p.pc=n("Ga");p.Ma=function(){this.e=this.g=this.f=this.B=k;this.h=h};
|
|
p.ka=function(a){var b=this.da(),c=b.a,d=a.v,e=d.projection,f=d.center,g=this.a.$(),j=z(g).toString(),m=g.tileGrid;m===k&&(m=lg(e));var r=nf(m.a,d.resolution),s=m.a[r],q=gg(m,a.extent,s),v;if(this.b!==k&&this.b.i==q.i&&this.b.j==q.j&&this.b.l==q.l&&this.b.k==q.k)v=this.z;else{var u=new $d(q.ha(),q.ca()),t=kg(m,r),u=Math.max(u.width*t.width,u.height*t.height),u=Math.pow(2,Math.ceil(Math.log(u)/Math.log(2))),x=new $d(s*u,s*u),C=hg(m,r),G=C.x+q.i*t.width*s,s=C.y+q.j*t.height*s;v=new ce(G,s,G+x.width,
|
|
s+x.height);s=this.da().a;!y(this.h)||this.h!=u?(a.Ca.push(oa(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},s,this.e,this.g)),t=s.createTexture(),s.bindTexture(3553,t),s.texImage2D(3553,0,6408,u,u,0,6408,5121,k),s.texParameteri(3553,10240,9729),s.texParameteri(3553,10241,9729),G=s.createFramebuffer(),s.bindFramebuffer(36160,G),s.framebufferTexture2D(36160,36064,3553,t,0),this.g=t,this.e=G,this.h=u):s.bindFramebuffer(36160,this.e);c.viewport(0,0,u,u);c.clearColor(0,
|
|
0,0,0);c.clear(16384);c.disable(3042);u=fh(b,this.ya,this.Eb);c.useProgram(u);this.B===k&&(this.B={cc:c.getAttribLocation(u,"aPosition"),dc:c.getAttribLocation(u,"aTexCoord"),me:c.getUniformLocation(u,"uTileOffset"),le:c.getUniformLocation(u,"uTexture")});this.f===k?(u=c.createBuffer(),c.bindBuffer(34962,u),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=u):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.B.cc);c.vertexAttribPointer(this.B.cc,2,5126,l,
|
|
16,0);c.enableVertexAttribArray(this.B.dc);c.vertexAttribPointer(this.B.dc,2,5126,l,16,8);c.uniform1i(this.B.le,0);var I={};I[r]={};for(var s=na(g.d,g,I,vg(function(a){return a!==k&&2==a.a&&gh(b.b,a.b())},g,m,e)),u=new bh,T=i,L,W,C=q.i;C<=q.l;++C)for(W=q.j;W<=q.k;++W){G=new se(r,C,W);t=g.b(G,m,e);L=t.a;if(0==L)ug(a.Wa,g,G),L=jg(m,G),ye(a.Zb,t,j,L);else if(1==L)qg(this,t);else if(2==L)if(gh(b.b,t.b())){I[r][G.toString()]=t;continue}else L=jg(m,G),T=L.x-f.x,L=L.y-f.y,T=Math.sqrt(T*T+L*L),ah(u,T,t);
|
|
else if(3==L||4==L)continue;T=l;m.b(G,s)}e=Ba(Oa(I),Number);Ka(e);var $=new Float32Array(4);D(e,function(a){Ma(I[a],function(a){var d=fg(m,a.X),e=2*d.ca()/x.height,f=2*(d.i-v.i)/x.width-1,g=2*(d.j-v.j)/x.height-1;$[0]=2*d.ha()/x.width;$[1]=e;$[2]=f;$[3]=g;c.uniform4fv(this.B.me,$);hh(b,a);c.drawArrays(5,0,4)},this)},this);u.Pa()||a.Ca.push(oa(function(a,b){var c,d;for(c=0;!b.Pa()&&4>c;++c)d=b.remove(),hh(a,d)},b,u));T?(this.b=q,this.z=v):(this.z=this.b=k,a.S=i)}tg(a.Va,g,r,q);ng(g,r,a.extent,m);rg(a,
|
|
g);le(this.d);pe(this.d,(d.center.x-v.i)/(v.l-v.i),(d.center.y-v.j)/(v.k-v.j));re(this.d,d.rotation);qe(this.d,a.size.width*d.resolution/(v.l-v.i),a.size.height*d.resolution/(v.k-v.j));pe(this.d,-0.5,-0.5)};function ih(){this.o=0;this.c={};this.b=this.a=k}p=ih.prototype;p.clear=function(){this.o=0;this.c={};this.b=this.a=k};function gh(a,b){return a.c.hasOwnProperty(b)}p.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.Y,c.M,this),c=c.W};function jh(a,b){var c=a.c[b];if(c===a.b)return c.Y;c===a.a?(a.a=a.a.W,a.a.la=k):(c.W.la=c.la,c.la.W=c.W);c.W=k;c.la=a.b;a.b.W=c;a.b=c;return c.Y}p.ba=n("o");p.Z=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.la)a[b++]=c.M;return a};
|
|
p.O=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.la)a[b++]=c.Y;return a};p.pop=function(){var a=this.a;delete this.c[a.M];a.W!==k&&(a.W.la=k);this.a=a.W;this.a===k&&(this.b=k);--this.o;return a.Y};function kh(a,b,c){c={M:b,W:k,la:a.b,Y:c};a.b===k?a.a=c:a.b.W=c;a.b=c;a.c[b]=c;++a.o};var lh=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function mh(a,b){var c,d,e=lh.length;for(d=0;d<e;++d)try{if(c=a.getContext(lh[d],b),c!==k)return c}catch(f){}return k}var nh=function(){if(!("WebGLRenderingContext"in w))return l;try{var a=Tb("CANVAS");return mh(a)!==k}catch(b){return l}}();function oh(){this.a="precision mediump float;\n\nuniform mat4 u_colorMatrix;\nuniform float u_opacity;\nuniform sampler2D u_texture;\n\nvarying vec2 v_texCoord;\n\nvoid main(void) {\n\n vec4 texColor = texture2D(u_texture, v_texCoord);\n vec4 color = u_colorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * u_opacity;\n\n gl_FragColor = color;\n\n}"}B(oh,Ug);ca(oh);
|
|
function ph(){this.a="attribute vec2 a_position;\nattribute vec2 a_texCoord;\n\nuniform mat4 u_texCoordMatrix;\nuniform mat4 u_projectionMatrix;\n\nvarying vec2 v_texCoord;\n\nvoid main(void) {\n gl_Position = u_projectionMatrix * vec4(a_position, 0., 1.);\n v_texCoord = (u_texCoordMatrix * vec4(a_texCoord, 0., 1.)).st;\n}"}B(ph,Vg);ca(ph);
|
|
function qh(a,b){wg.call(this,a,b);this.c=Tb("CANVAS");this.c.height=a.clientHeight;this.c.width=a.clientWidth;this.c.className="ol-unselectable";Wb(a,this.c);this.r=i;this.z=new $d(a.clientHeight,a.clientWidth);this.a=mh(this.c,{alpha:l,antialias:i,depth:l,preserveDrawingBuffer:l,stencil:l});F(this.c,"webglcontextlost",this.Ma,l,this);F(this.c,"webglcontextrestored",this.Td,l,this);this.t=this.B=k;this.g={};this.f={};this.b=new ih;this.h=0;this.H=oh.cb();this.K=ph.cb();rh(this)}B(qh,wg);p=qh.prototype;
|
|
p.Ba=function(a){qh.w.Ba.call(this,a);a.a()&&Ag(this.map)};
|
|
function hh(a,b){var c=a.a,d=b.b();if(gh(a.b,d))d=jh(a.b,d),c.bindTexture(3553,d.Yb),9729!=d.yc&&(c.texParameteri(3553,10240,9729),d.yc=9729),9729!=d.zc&&(c.texParameteri(3553,10240,9729),d.zc=9729);else{var e=c.createTexture();c.bindTexture(3553,e);c.texImage2D(3553,0,6408,6408,5121,b.J());c.texParameteri(3553,10240,9729);c.texParameteri(3553,10241,9729);c.texParameteri(3553,10242,33071);c.texParameteri(3553,10243,33071);kh(a.b,d,{Yb:e,yc:9729,zc:9729})}}
|
|
p.Za=function(a){var b=k;a instanceof Hg?b=new eh(this,a):a instanceof Gg&&(b=new Yg(this,a));return b};p.s=function(){var a=this.a;a.isContextLost()||(Ma(this.f,function(b){a.deleteProgram(b)}),Ma(this.g,function(b){a.deleteShader(b)}),this.b.forEach(function(b){b===k||a.deleteTexture(b.Yb)}));qh.w.s.call(this)};p.fd=function(a,b){for(var c=this.a,d;1024<this.b.ba()-this.h;){d=this.b.a.Y;if(d===k)if(+this.b.a.M==b.time)break;else--this.h;else c.deleteTexture(d.Yb);this.b.pop()}};p.bb=n("c");
|
|
function fh(a,b,c){var d=z(b)+"/"+z(c);if(d in a.f)return a.f[d];var e=a.a,f=e.createProgram();e.attachShader(f,sh(a,b));e.attachShader(f,sh(a,c));e.linkProgram(f);return a.f[d]=f}function sh(a,b){var c=z(b);if(c in a.g)return a.g[c];var d=a.a,e=d.createShader(b.b());d.shaderSource(e,b.$());d.compileShader(e);return a.g[c]=e}p.Ma=function(a){a.D();this.t=this.B=k;this.g={};this.f={};this.b.clear();this.h=0;Ma(this.d,function(a){a.Ma()})};p.Td=function(){rh(this);Ag(this.map)};
|
|
function rh(a){a=a.a;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}p.Ub=function(a){qh.w.Ub.call(this,a);a.a()&&Ag(this.map)};
|
|
p.tb=function(a){var b=this.a;if(a===k)return this.r&&(Mc(this.c,l),this.r=l),l;kh(this.b,a.time.toString(),k);++this.h;D(a.ob,function(b){var c=a.nb[z(b)];c.visible&&c.xb&&zg(this,b).ka(a,c)},this);var c=a.size;this.z.width==c.width&&this.z.height==c.height||(this.c.width=c.width,this.c.height=c.height,this.z=c);b.bindFramebuffer(36160,k);var d=a.backgroundColor;b.clearColor(d.c/255,d.b/255,d.a/255,d.d);b.clear(16384);b.enable(3042);b.viewport(0,0,c.width,c.height);c=fh(this,this.H,this.K);b.useProgram(c);
|
|
this.B===k&&(this.B={ec:b.getAttribLocation(c,"a_position"),fc:b.getAttribLocation(c,"a_texCoord"),ne:b.getUniformLocation(c,"u_colorMatrix"),qe:b.getUniformLocation(c,"u_texCoordMatrix"),pe:b.getUniformLocation(c,"u_projectionMatrix"),oe:b.getUniformLocation(c,"u_opacity"),re:b.getUniformLocation(c,"u_texture")});this.t===k?(c=b.createBuffer(),b.bindBuffer(34962,c),b.bufferData(34962,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),35044),this.t=c):b.bindBuffer(34962,this.t);b.enableVertexAttribArray(this.B.ec);
|
|
b.vertexAttribPointer(this.B.ec,2,5126,l,16,0);b.enableVertexAttribArray(this.B.fc);b.vertexAttribPointer(this.B.fc,2,5126,l,16,8);b.uniform1i(this.B.re,0);D(a.ob,function(c){var d=a.nb[z(c)];d.visible&&d.xb&&(d=zg(this,c),b.uniformMatrix4fv(this.B.qe,l,d.qc()),b.uniformMatrix4fv(this.B.pe,l,d.pc()),b.uniformMatrix4fv(this.B.ne,l,Xg(d)),b.uniform1f(this.B.oe,c.e()),b.bindTexture(3553,d.rc()),b.drawArrays(5,0,4))},this);this.r||(Mc(this.c,i),this.r=i);yg(a);1024<this.b.ba()-this.h&&a.Ca.push(na(this.fd,
|
|
this))};var th={},uh={ye:"canvas",Be:"dom",Xe:"webgl"},vh=["webgl","canvas","dom"],xg="layers";
|
|
function S(a){var b;M.call(this);var c={},d;d=y(a.layers)?ea(a.layers)?new N(Ga(a.layers)):a.layers:new N;c[xg]=d;c.view=y(a.view)?a.view:new R;b=wg;d=y(a.renderers)?a.renderers:y(a.renderer)?[a.renderer]:vh;var e,f;for(e=0;e<d.length;++e)if(f=d[e],"canvas"==f){if(Mg){b=Lg;break}}else if("dom"==f){b=Sg;break}else if("webgl"==f&&nh){b=qh;break}d=y(a.controls)?a.controls:yf();e=y(a.interactions)?a.interactions:Uf();a=ga(a.target)?document.getElementById(a.target):a.target;this.c=new sd(this.he,h,this);
|
|
ec(this,this.c);this.Ga=he();this.Tc=he();this.d=k;this.g=0;this.r=l;this.va=a;this.G=k;this.b=Rb("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.b.style.msTouchAction="none";this.va.appendChild(this.b);this.z=Rb("DIV","ol-overlaycontainer");F(this.z,["click",Od?"touchstart":"mousedown"],ic);this.b.appendChild(this.z);a=new $e(this);F(a,Na(kf),this.Dc,l,this);ec(this,a);a=new Ed(document);F(a,"key",this.tc,
|
|
l,this);ec(this,a);a=new Ld(this.b);F(a,"mousewheel",this.tc,l,this);ec(this,a);this.ma=e;this.H=new b(this.b,this);ec(this,this.H);this.Wc=new wd;F(this.Wc,"resize",this.uc,l,this);this.u=k;this.h=[];this.wa=[];this.Sc=na(this.Kd,this);this.K=new xe(na(this.md,this));F(this,Ud("view"),this.Rd,l,this);F(this,Ud("size"),this.Md,l,this);F(this,Ud("backgroundColor"),this.vd,l,this);this.sb(c);this.uc();y(d)&&D(d,function(a){a.a(this)},this)}B(S,M);p=S.prototype;p.Xd=function(a){this.e().push(a)};
|
|
p.ga=function(a){qf(this);this.h.push(a)};p.Xc=function(a){qf(this);Array.prototype.push.apply(this.h,a)};p.s=function(){Xb(this.b);S.w.s.call(this)};p.oc=function(){return this.q("backgroundColor")};S.prototype.getBackgroundColor=S.prototype.oc;S.prototype.Qc=n("H");function Ye(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];oe(c.Ec,d,d);return new K(d[0],d[1])}S.prototype.Eb=n("ma");S.prototype.e=function(){return this.q(xg)};S.prototype.getLayers=S.prototype.e;
|
|
function If(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];oe(c.kc,d,d);return new We(d[0],d[1])}S.prototype.f=function(){return this.q("size")};S.prototype.getSize=S.prototype.f;S.prototype.a=function(){return this.q("view")};S.prototype.getView=S.prototype.a;p=S.prototype;p.md=function(a,b,c){var d=this.d;if(d===k||!(b in d.Wa)||!d.Wa[b][a.X.toString()])return Infinity;b=this.u===k?d.v.center:this.u;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};
|
|
p.tc=function(a,b){var c=b||a.type,d=new Xe(c,this,a);this.Dc(d);"mouseout"==c?this.u=k:this.u=d.b()};p.Dc=function(a){a.d=this.d;var b=this.ma.a;if(J(this,a)!==l)for(var c=b.length-1;0<=c&&!(b[c].ra(a),a.hb);c--);};
|
|
p.Kd=function(){var a=this.K,b=a.a,c,d=0,e,f,g,j;for(c=0;c<b.length;++c)e=b[c],g=e[1],j=e[2],f=e[3],f=a.d(g,j,f),Infinity==f?(e=g.b(),delete a.b[e]):(e[0]=f,b[d++]=e);b.length=d;for(b=(a.a.length>>1)-1;0<=b;b--)Ae(a,b);for(var a=this.K,m;0<a.a.length&&a.c<a.f;)m=a,c=m.a,b=c[0][1],1==c.length?c.length=0:(c[0]=c.pop(),Ae(m,0)),c=b.b(),delete m.b[c],m=b,vc(m,"change",a.e,l,a),b=m,0==b.a&&(b.a=1,b.d=[vc(b.c,"error",b.g,l,b),vc(b.c,"load",b.h,l,b)],b.c.src=b.f),++a.c;y(m)&&qf(this);m=this.wa;for(a=0;a<
|
|
m.length;++a)m[a](this,this.d);m.length=0};p.vd=function(){Ag(this)};p.uc=function(){var a;var b=this.va;if("none"!=Dc(b,"display"))a=Lc(b);else{a=b.style;var c=a.display,d=a.visibility,e=a.position;a.visibility="hidden";a.position="absolute";a.display="inline";b=Lc(b);a.display=c;a.position=e;a.visibility=d;a=b}this.ya(new $d(a.width,a.height))};p.Md=function(){Ag(this)};p.Sd=function(){Ag(this)};
|
|
p.Rd=function(){this.G!==k&&(H(this.G),this.G=k);var a=this.a();a!=k&&(this.G=F(a,"changed",this.Sd,l,this));Ag(this)};p.Oa=function(){var a=this.a(),b;if(b=y(a)){if(a=a.Oa())a=this.f()!=k;b=a}return b};function Ag(a){a.c.P==k&&(0===a.g?(a=a.c,td(a),a.Kb()):a.r=i)}function qf(a){0===a.g?a.c.P!=k||a.c.start():a.r=i}p.Yd=function(a){return this.e().remove(a)};
|
|
p.he=function(a){var b;if(0==this.g){var c=this.f();b=this.e();var d=y(b)?b.a:h;b=this.a();var e=y(b)?this.a().g():h,f=k;if(y(d)&&y(c)&&y(e)&&e.Oa()){var f=this.oc(),g=Ga(b.e),j={},m;for(b=0;b<d.length;++b){m=d[b];var r=j,s=z(m),q=m;m=q.b();var v=q.c(),u=q.d(),t=q.e(),x=q.$().c(),C=q.f(),q=q.a();r[s]={brightness:y(m)?m:0,contrast:y(v)?v:1,hue:y(u)?u:0,opacity:y(t)?t:1,xb:x,saturation:y(C)?C:1,visible:y(q)?q:i}}b=e.N();r=e.Cc();s=e.Q();e=e.V();r={center:new K(b.x,b.y),projection:r,resolution:s,rotation:e};
|
|
f={S:l,attributions:{},backgroundColor:y(f)?f:new Zd,kc:this.Ga,extent:k,ob:d,nb:j,Ec:this.Tc,Ca:[],size:c,Zb:this.K,time:a,Va:{},v:r,C:g,Wa:{}}}a=this.h;for(b=d=0;b<a.length;++b)e=a[b],e(this,f)&&(a[d++]=e);a.length=d;if(f!==k){a=r.center;b=r.resolution;d=r.rotation;e=b*c.width/2;c=b*c.height/2;c=[new K(-e,-c),new K(-e,c),new K(e,-c),new K(e,c)];for(b=0;4>b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=de.apply(k,c)}this.d=f;this.H.tb(f);this.r=l;f!==k&&(f.S&&qf(this),Array.prototype.push.apply(this.wa,
|
|
f.Ca));J(this,new Ve("postrender",this,f));w.setTimeout(this.Sc,0)}};p.je=function(a){this.p("backgroundColor",a)};S.prototype.setBackgroundColor=S.prototype.je;S.prototype.Uc=function(a){this.p(xg,a)};S.prototype.setLayers=S.prototype.Uc;S.prototype.ya=function(a){this.p("size",a)};S.prototype.setSize=S.prototype.ya;S.prototype.Vc=function(a){this.p("view",a)};S.prototype.setView=S.prototype.Vc;function sf(a,b,c){++a.g;try{b.call(c)}finally{0===--a.g&&a.r&&(a=a.c,td(a),a.Kb())}}
|
|
th.bd=function(a){var b=w.location.search.substring(1),a=y(a)?a:new $c(b);return ld(a,"renderers")?md(a,"renderers").split(","):ld(a,"renderer")?[md(a,"renderer")]:vh};Me(Yf);Me(ag);function wh(a,b,c){var d=a.length,c=1<c?c:2;y(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=6378137*Math.PI*a[e]/180,b[e+1]=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));return b}
|
|
function xh(a,b,c){var d=a.length,c=1<c?c:2;y(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=180*a[e]/(6378137*Math.PI),b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b}D(ag,function(a){D(Yf,function(b){Oe(a,b,wh);Oe(b,a,xh)})});var yh={ve:"bottom-left",we:"bottom-right",Qe:"top-left",Re:"top-right"};function U(a){M.call(this);this.b=Tb("DIV");this.b.style.position="absolute";this.a={Ya:"",pb:"",zb:"",Bb:"",visible:i};F(this,Ud("element"),this.wd,l,this);F(this,Ud("map"),this.Ed,l,this);F(this,Ud("position"),this.Id,l,this);F(this,Ud("positioning"),this.Jd,l,this);y(a.element)&&this.Ic(a.element);y(a.position)&&this.r(a.position);y(a.positioning)&&this.p("positioning",a.positioning);y(a.map)&&this.h(a.map)}B(U,M);
|
|
U.prototype.f=function(){return this.q("element")};U.prototype.getElement=U.prototype.f;U.prototype.d=function(){return this.q("map")};U.prototype.getMap=U.prototype.d;U.prototype.g=function(){return this.q("position")};U.prototype.getPosition=U.prototype.g;U.prototype.e=function(){return this.q("positioning")};U.prototype.getPositioning=U.prototype.e;p=U.prototype;p.wd=function(){Vb(this.b);var a=this.f();a!=k&&Ub(this.b,a)};
|
|
p.Ed=function(){this.c!==k&&(Xb(this.b),H(this.c),this.c=k);var a=this.d();a!=k&&(this.c=F(a,"postrender",this.Wd,l,this),zh(this),Ub(a.z,this.b))};p.Wd=function(){zh(this)};p.Id=function(){zh(this)};p.Jd=function(){zh(this)};p.Ic=function(a){this.p("element",a)};U.prototype.setElement=U.prototype.Ic;U.prototype.h=function(a){this.p("map",a)};U.prototype.setMap=U.prototype.h;U.prototype.r=function(a){this.p("position",a)};U.prototype.setPosition=U.prototype.r;
|
|
function zh(a){var b=a.d(),c=a.g();if(!y(b)||!b.Oa()||!y(c))a.a.visible&&(Mc(a.b,l),a.a.visible=l);else{var c=If(b,c),d=b.f(),b=a.b.style,e=a.e();if("bottom-right"==e||"top-right"==e){""!==a.a.pb&&(a.a.pb=b.left="");var f=Math.round(d.width-c.x)+"px";a.a.zb!=f&&(a.a.zb=b.right=f)}else""!==a.a.zb&&(a.a.zb=b.right=""),f=Math.round(c.x)+"px",a.a.pb!=f&&(a.a.pb=b.left=f);"top-left"==e||"top-right"==e?(""!==a.a.Ya&&(a.a.Ya=b.bottom=""),c=Math.round(c.y)+"px",a.a.Bb!=c&&(a.a.Bb=b.top=c)):(""!==a.a.Bb&&
|
|
(a.a.Bb=b.top=""),c=Math.round(d.height-c.y)+"px",a.a.Ya!=c&&(a.a.Ya=b.bottom=c));a.a.visible||(Mc(a.b,i),a.a.visible=i)}};function V(){M.call(this);this.a=k;this.c(l);F(this,Ud("projection"),this.H,l,this);F(this,Ud("tracking"),this.K,l,this)}B(V,M);V.prototype.s=function(){this.c(l);V.w.s.call(this)};V.prototype.H=function(){var a=this.g();a!=k&&(this.d=He(Re("EPSG:4326"),a),this.a!==k&&(a=[this.a.x,this.a.y],a=this.d(a,a,2),this.p("position",new K(a[0],a[1]))))};
|
|
V.prototype.K=function(){if(Ah){var a=this.e();a&&!y(this.b)?this.b=navigator.geolocation.watchPosition(na(this.wa,this),na(this.ya,this),this.f()):!a&&y(this.b)&&(navigator.geolocation.clearWatch(this.b),this.b=h)}};var Ah="geolocation"in navigator;
|
|
V.prototype.wa=function(a){a=a.coords;this.p("accuracy",a.accuracy);this.p("altitude",a.altitude===k?h:a.altitude);this.p("altitudeAccuracy",a.altitudeAccuracy===k?h:a.altitudeAccuracy);this.p("heading",a.heading===k?h:a.heading*Math.PI/180);this.a=new K(a.longitude,a.latitude);var b=[a.longitude,a.latitude],b=this.d(b,b,2);this.p("position",new K(b[0],b[1]));this.p("speed",a.speed===k?h:a.speed)};V.prototype.ya=function(){};V.prototype.h=function(){return this.q("accuracy")};
|
|
V.prototype.getAccuracy=V.prototype.h;V.prototype.r=function(){return this.q("altitude")};V.prototype.getAltitude=V.prototype.r;V.prototype.u=function(){return this.q("altitudeAccuracy")};V.prototype.getAltitudeAccuracy=V.prototype.u;V.prototype.z=function(){return this.q("heading")};V.prototype.getHeading=V.prototype.z;V.prototype.ma=function(){return this.q("position")};V.prototype.getPosition=V.prototype.ma;V.prototype.g=function(){return this.q("projection")};V.prototype.getProjection=V.prototype.g;
|
|
V.prototype.G=function(){return this.q("speed")};V.prototype.getSpeed=V.prototype.G;V.prototype.e=function(){return this.q("tracking")};V.prototype.getTracking=V.prototype.e;V.prototype.f=function(){return this.q("trackingOptions")};V.prototype.getTrackingOptions=V.prototype.f;V.prototype.va=function(a){this.p("projection",a)};V.prototype.setProjection=V.prototype.va;V.prototype.c=function(a){this.p("tracking",a)};V.prototype.setTracking=V.prototype.c;
|
|
V.prototype.Ga=function(a){this.p("trackingOptions",a)};V.prototype.setTrackingOptions=V.prototype.Ga;V.prototype.d=aa();function Bh(a){var a=y(a)?a:{},b=Rb("DIV",{"class":"ol-mouse-position"});vf.call(this,{element:b,map:a.map,target:a.target});this.h=Re(a.projection);this.g=a.coordinateFormat;this.K=y(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.t=Te;this.d=this.e=this.u=k}B(Bh,vf);Bh.prototype.H=function(a){a=a.d;a===k?this.c=k:this.c=a.v.projection;Ch(this,this.e)};Bh.prototype.z=function(a){a=Ic(a,this.b.b);a=new We(a.x,a.y);Ch(this,a);this.e=a};
|
|
Bh.prototype.G=function(){Ch(this,k);this.e=k};Bh.prototype.a=function(a){this.d!==k&&(D(this.d,H),this.d=k);Bh.w.a.call(this,a);if(a!==k){var b=a.b;this.d=[F(b,"mousemove",this.z,l,this),F(b,"mouseout",this.G,l,this),F(a,"postrender",this.H,l,this)]}};function Ch(a,b){var c=a.K;if(b!==k){a.u!=a.c&&(a.t=a.h===k?Te:He(a.c,a.h),a.u=a.c);var d=Ye(a.b,b);d!==k&&(c=[d.x,d.y],c=a.t(c,c),d=new K(c[0],c[1]),c=y(a.g)?a.g(d):d.toString())}if(!y(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};var Dh={Rc:"degrees",Je:"imperial",Ne:"nautical",Me:"metric",Ve:"us"};function Eh(a){a=a||{};this.g=Rb("DIV",{"class":"ol-scale-line-inner"});this.t=Rb("DIV",{"class":"ol-scale-line ol-unselectable"},this.g);this.h=y(a.minWidth)?a.minWidth:64;this.c=y(a.units)?a.units:"metric";this.e=k;this.f=l;this.u="";this.d=k;vf.call(this,{element:this.t,map:a.map,target:a.target})}B(Eh,vf);var Fh=[1,2,5];
|
|
Eh.prototype.z=function(a){a=a.d;if(a===k)this.f&&(Mc(this.t,l),this.f=l);else{var a=a.v,b=a.center,c=a.projection,a=c.c(a.resolution,b),d=c.b;"degrees"==d&&("metric"==this.c||"imperial"==this.c)?(this.d=k,b=Math.cos(b.y*Math.PI/180),a*=Math.PI*b*Ce.a/180):("ft"==d||"m"==d)&&"degrees"==this.c?(this.d===k&&(this.d=He(c,Re("EPSG:4326"))),b=[b.x,b.y],b=this.d(b,b,2),b=Math.cos(b[1]*Math.PI/180),c=Ce.a,"ft"==d&&(c/=0.3048),a*=180/(Math.PI*b*c)):this.d=k;b=this.h*a;d="";"degrees"==this.c?b<1/60?(d="\u2033",
|
|
a*=3600):1>b?(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=Fh[b%3]*Math.pow(10,Math.floor(b/3));f=Math.round(e/a);if(f>=this.h)break;++b}e=e+d;this.u!=e&&
|
|
(this.u=this.g.innerHTML=e);this.G!=f&&(this.g.style.width=f+"px",this.G=f);this.f||(Mc(this.t,i),this.f=i)}};Eh.prototype.a=function(a){this.e!==k&&(D(this.e,H),this.e=k);Eh.w.a.call(this,a);a!==k&&(this.e=[F(a,"postrender",this.z,l,this)])};function Gh(){this.a={}}B(Gh,Bf);Gh.prototype.b=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Gh.prototype.ra=function(a){if("key"==a.type){var b=this.a[a.a.fb];b&&(b(),a.D())}};function Hh(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");if(b){b.resolveExternals=l;b.validateOnParse=l;try{b.setProperty("ProhibitDTD",i),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};function Ih(){this.Da={Nc:/^\s*|\s*$/g,a:/\s*/g,Lc:/\s+/,Mc:/\s*,\s*/g}}function Jh(a,b,c){c||(c={});var d=a.A[b.namespaceURI]||a.A[a.a];if(d){var e=b.localName||b.nodeName.split(":").pop();(d=d[e]||d["*"])&&d.apply(a,[b,c])}}function Y(a,b,c){c||(c={});for(var b=b.childNodes,d,e=0,f=b.length;e<f;++e)d=b[e],1==d.nodeType&&Jh(a,d,c)}function Z(a){var b="";if(a)for(a=a.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:case 4:b+=a.nodeValue}return b}
|
|
Ih.prototype.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else{var e=k;if(a.getAttributeNodeNS)e=a.getAttributeNodeNS(b,c);else for(var a=a.attributes,f,g,j=0,m=a.length;j<m;++j)if(f=a[j],f.namespaceURI==b&&(g=f.prefix?f.prefix+":"+c:c,g==f.nodeName)){e=f;break}if(b=e)d=b.nodeValue}return d};function Kh(){function a(a,b){b.ke.push(Z(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),Ze:a.getAttribute("locator"),ke:[]};b.nc.push(e);Y(this,a,e)}this.A={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];Y(this,a,b.exceptionReport)},ServiceException:function(a,b){var e={};e.code=a.getAttribute("code");e.locator=a.getAttribute("locator");e.text=Z(a);b.exceptions.push(e)}},"http://www.opengis.net/ows":{ExceptionReport:function(a,
|
|
b){b.$e=l;b.Ib={version:a.getAttribute("version"),language:a.getAttribute("language"),nc:[]};Y(this,a,b.Ib)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}},"http://www.opengis.net/ows/1.1":{ExceptionReport:function(a,b){b.Ib={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),nc:[]};Y(this,a,b.Ib)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}};Ih.call(this)}B(Kh,Ih);
|
|
Kh.prototype.ta=function(a){"string"==typeof a&&(a=Hh(a));var b={exceptionReport:k};a&&Y(this,a,b);return b};function Lh(a){this.c=a=a||{};this.$a=a.$a||k;this.version=a.version;this.profile=a.profile;a.Xa!==h?this.Xa=a.Xa:this.Xa=l;a.Xb!==h?this.Xb=a.Xb:this.Xb=l}
|
|
Lh.prototype.ta=function(a,b){"string"==typeof a&&(a=Hh(a));var c;c=a.documentElement;var d;c?(d=this.version,d||(d=c.getAttribute("version"),d||(d=this.$a))):d=this.version||this.$a;d=(c=d)||this.$a;var e=this.profile?"_"+this.profile:"";if(!this.b||this.b.VERSION!=d){var f=this.a["v"+d.replace(/\./g,"_")+e];if(!f&&(""!==e&&this.Xa&&(e="",f=this.a["v"+d.replace(/\./g,"_")+e]),!f))throw"Can't find a parser for version "+d+e;this.b=new f(this.c)}this.b=this.b;d=this.b.ta(a,b);e=this.b.mc||k;e!==k&&
|
|
d[e]===h&&(d.error=(new Kh).ta(a));d.version=c;return d};function Mh(){this.a="http://www.opengis.net/wms";this.mc="service";this.A={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};Y(this,a,b.service)},Name:function(a,b){b.name=Z(a)},Title:function(a,b){b.title=Z(a)},Abstract:function(a,b){b["abstract"]=Z(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};
|
|
if(!isNaN(a.x)||!isNaN(a.y))b.res=a;return b},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ContactInformation:function(a,b){b.contactInformation={};Y(this,a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};Y(this,a,b.personPrimary)},ContactPerson:function(a,b){b.person=Z(a)},ContactOrganization:function(a,b){b.organization=Z(a)},ContactPosition:function(a,b){b.position=Z(a)},ContactAddress:function(a,b){b.contactAddress=
|
|
{};Y(this,a,b.contactAddress)},AddressType:function(a,b){b.type=Z(a)},Address:function(a,b){b.address=Z(a)},City:function(a,b){b.city=Z(a)},StateOrProvince:function(a,b){b.stateOrProvince=Z(a)},PostCode:function(a,b){b.postcode=Z(a)},Country:function(a,b){b.country=Z(a)},ContactVoiceTelephone:function(a,b){b.phone=Z(a)},ContactFacsimileTelephone:function(a,b){b.fax=Z(a)},ContactElectronicMailAddress:function(a,b){b.email=Z(a)},Fees:function(a,b){var c=Z(a);c&&"none"!=c.toLowerCase()&&(b.fees=c)},
|
|
AccessConstraints:function(a,b){var c=Z(a);c&&"none"!=c.toLowerCase()&&(b.accessConstraints=c)},Capability:function(a,b){b.capability={};b.capability.nestedLayers=[];b.capability.layers=[];Y(this,a,b.capability)},Request:function(a,b){b.request={};Y(this,a,b.request)},GetCapabilities:function(a,b){b.getcapabilities={};b.getcapabilities.formats=[];Y(this,a,b.getcapabilities)},Format:function(a,b){ea(b.formats)?b.formats.push(Z(a)):b.format=Z(a)},DCPType:function(a,b){Y(this,a,b)},HTTP:function(a,b){Y(this,
|
|
a,b)},Get:function(a,b){b.get={};Y(this,a,b.get)},Post:function(a,b){b.post={};Y(this,a,b.post)},GetMap:function(a,b){b.getmap={};b.getmap.formats=[];Y(this,a,b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={};b.getfeatureinfo.formats=[];Y(this,a,b.getfeatureinfo)},Exception:function(a,b){b.exception={};b.exception.formats=[];Y(this,a,b.exception)},Layer:function(a,b){var c,d;b.capability?(d=b.capability,c=b):d=b;var e=a.getAttributeNode("queryable"),f=e&&e.specified?a.getAttribute("queryable"):
|
|
k,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):k,j=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):k,m=a.getAttribute("noSubsets"),r=a.getAttribute("fixedWidth"),s=a.getAttribute("fixedHeight"),e=c||{},f={nestedLayers:[],styles:c?[].concat(c.styles):[],srs:{},metadataURLs:[],bbox:{},llbbox:e.llbbox,dimensions:{},authorityURLs:{},identifiers:{},keywords:[],queryable:f&&""!==f?"1"===f||"true"===f:e.queryable||l,cascaded:g!==k?parseInt(g,10):e.cascaded||
|
|
0,opaque:j?"1"===j||"true"===j:e.opaque||l,noSubsets:m!==k?"1"===m||"true"===m:e.noSubsets||l,fixedWidth:r!==k?parseInt(r,10):e.fixedWidth||0,fixedHeight:s!==k?parseInt(s,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&(Wa(f.srs,e.srs),Wa(f.bbox,e.bbox),Wa(f.dimensions,e.dimensions),Wa(f.authorityURLs,e.authorityURLs));b.nestedLayers.push(f);f.capability=d;Y(this,a,f);delete f.capability;f.name&&(c=f.name.split(":"),g=d.request,e=g.getfeatureinfo,0<c.length&&
|
|
(f.prefix=c[0]),d.layers.push(f),f.formats===h&&(f.formats=g.getmap.formats),f.infoFormats===h&&e&&(f.infoFormats=e.formats))},Attribution:function(a,b){b.attribution={};Y(this,a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};Y(this,a,b.logo)},Style:function(a,b){var c={};b.styles.push(c);Y(this,a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;Y(this,a,c)},MetadataURL:function(a,
|
|
b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);Y(this,a,c)},DataURL:function(a,b){b.dataURL={};Y(this,a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};Y(this,a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};Y(this,a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=Z(a)},KeywordList:function(a,b){Y(this,a,b)},SRS:function(a,b){b.srs[Z(a)]=i}}};Ih.call(this)}B(Mh,Ih);
|
|
Mh.prototype.ta=function(a){"string"==typeof a&&(a=Hh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Jh(this,a,b);return b};function Nh(){Mh.call(this);var a=this.A["http://www.opengis.net/wms"].BoundingBox;Wa(this.A["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){Y(this,a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:Z(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};Y(this,a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic={formats:[]};Y(this,a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};Y(this,a,c.getstyles)},PutStyles:function(a,
|
|
c){c.putstyles={formats:[]};Y(this,a,c.putstyles)},UserDefinedSymbolization:function(a,c){var d={supportSLD:1==parseInt(a.getAttribute("SupportSLD"),10),userLayer:1==parseInt(a.getAttribute("UserLayer"),10),userStyle:1==parseInt(a.getAttribute("UserStyle"),10),remoteWFS:1==parseInt(a.getAttribute("RemoteWFS"),10)};c.userSymbols=d},LatLonBoundingBox:function(a,c){c.llbbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))]},
|
|
BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("SRS");c.bbox[d.srs]=d},ScaleHint:function(a,c){var d=parseFloat(a.getAttribute("min")),e=parseFloat(a.getAttribute("max")),f=Math.pow(2,0.5),g=25.4/0.28;0!==d&&(c.maxScale=parseFloat(39.37*(d/f)*g));e!=Number.POSITIVE_INFINITY&&(c.minScale=parseFloat(39.37*(e/f)*g))},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol")};c.dimensions[d.name]=
|
|
d},Extent:function(a,c){var d=a.getAttribute("name").toLowerCase();d in c.dimensions&&(d=c.dimensions[d],d.nearestVal="1"===a.getAttribute("nearestValue"),d.multipleVal="1"===a.getAttribute("multipleValues"),d.current="1"===a.getAttribute("current"),d["default"]=a.getAttribute("default")||"",d.values=Z(a).split(","))}})}B(Nh,Mh);function Oh(){Nh.call(this);this.version="1.1.0";Wa(this.A["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=Z(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=i}})}B(Oh,Nh);function Ph(){Nh.call(this);this.version="1.1.1";Wa(this.A["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[Z(a)]=i}})}B(Ph,Nh);function Qh(){Ph.call(this);this.profile="WMSC";Wa(this.A["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};Y(this,a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};Y(this,a,c);b.bf.push(c)},Resolutions:function(a,b){for(var c=Z(a).split(" "),d=0,e=c.length;d<e;d++)""!==c[d]&&b.resolutions.push(parseFloat(c[d]))},Width:function(a,b){b.width=parseInt(Z(a),10)},Height:function(a,b){b.height=parseInt(Z(a),10)},Layers:function(a,
|
|
b){b.layers=Z(a)},Styles:function(a,b){b.styles=Z(a)}})}B(Qh,Ph);function Rh(){Mh.call(this);var a=this.A["http://www.opengis.net/wms"].BoundingBox;Wa(this.A["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){Y(this,a,c)},LayerLimit:function(a,c){c.layerLimit=parseInt(Z(a),10)},MaxWidth:function(a,c){c.maxWidth=parseInt(Z(a),10)},MaxHeight:function(a,c){c.maxHeight=parseInt(Z(a),10)},BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("CRS");c.bbox[d.srs]=d},CRS:function(a,c){this.A["http://www.opengis.net/wms"].SRS.apply(this,
|
|
arguments)},EX_GeographicBoundingBox:function(a,c){c.llbbox=[];Y(this,a,c.llbbox)},westBoundLongitude:function(a,c){c[0]=Z(a)},eastBoundLongitude:function(a,c){c[2]=Z(a)},southBoundLatitude:function(a,c){c[1]=Z(a)},northBoundLatitude:function(a,c){c[3]=Z(a)},MinScaleDenominator:function(a,c){c.maxScale=parseFloat(Z(a)).toPrecision(16)},MaxScaleDenominator:function(a,c){c.minScale=parseFloat(Z(a)).toPrecision(16)},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),
|
|
unitsymbol:a.getAttribute("unitSymbol"),nearestVal:"1"===a.getAttribute("nearestValue"),multipleVal:"1"===a.getAttribute("multipleValues"),"default":a.getAttribute("default")||"",current:"1"===a.getAttribute("current"),values:Z(a).split(",")};c.dimensions[d.name]=d},Keyword:function(a,c){var d={value:Z(a),vocabulary:a.getAttribute("vocabulary")};c.keywords&&c.keywords.push(d)}});this.A.sld={UserDefinedSymbolization:function(a,c){this.A["http://www.opengis.net/wms"].We.apply(this,arguments);var d=
|
|
a.getAttribute("InlineFeature");c.userSymbols.inlineFeature=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");c.userSymbols.remoteWCS=1==parseInt(d,10)},DescribeLayer:function(a,c){this.A["http://www.opengis.net/wms"].Ge.apply(this,arguments)},GetLegendGraphic:function(a,c){this.A["http://www.opengis.net/wms"].Ie.apply(this,arguments)}}}B(Rh,Mh);function Sh(a){a=a||{};a.defaultVersion="1.1.1";this.a={};this.a.v1_1_0=Oh;this.a.v1_1_1=Ph;this.a.v1_1_1_WMSC=Qh;this.a.v1_3_0=Rh;Lh.call(this,a)}B(Sh,Lh);function Th(){this.A={"http://www.opengis.net/ows":{ServiceIdentification:function(a,b){b.serviceIdentification={};Y(this,a,b.serviceIdentification)},Title:function(a,b){b.title=Z(a)},Abstract:function(a,b){b["abstract"]=Z(a)},Keywords:function(a,b){b.keywords={};Y(this,a,b.keywords)},Keyword:function(a,b){b[Z(a)]=i},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),value:Z(a)}},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=Z(a)},Fees:function(a,b){b.fees=Z(a)},
|
|
AccessConstraints:function(a,b){b.accessConstraints=Z(a)},ServiceProvider:function(a,b){b.serviceProvider={};Y(this,a,b.serviceProvider)},ProviderName:function(a,b){b.providerName=Z(a)},ProviderSite:function(a,b){b.providerSite=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceContact:function(a,b){b.serviceContact={};Y(this,a,b.serviceContact)},IndividualName:function(a,b){b.individualName=Z(a)},PositionName:function(a,b){b.positionName=Z(a)},ContactInfo:function(a,b){b.contactInfo=
|
|
{};Y(this,a,b.contactInfo)},Phone:function(a,b){b.phone={};Y(this,a,b.phone)},Voice:function(a,b){b.voice=Z(a)},Address:function(a,b){b.address={};Y(this,a,b.address)},DeliveryPoint:function(a,b){b.deliveryPoint=Z(a)},City:function(a,b){b.city=Z(a)},AdministrativeArea:function(a,b){b.administrativeArea=Z(a)},PostalCode:function(a,b){b.postalCode=Z(a)},Country:function(a,b){b.country=Z(a)},ElectronicMailAddress:function(a,b){b.electronicMailAddress=Z(a)},Role:function(a,b){b.role=Z(a)},OperationsMetadata:function(a,
|
|
b){b.operationsMetadata={};Y(this,a,b.operationsMetadata)},Operation:function(a,b){var c=a.getAttribute("name");b[c]={};Y(this,a,b[c])},DCP:function(a,b){b.dcp={};Y(this,a,b.dcp)},HTTP:function(a,b){b.http={};Y(this,a,b.http)},Get:function(a,b){b.get||(b.get=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};Y(this,a,c);b.get.push(c)},Post:function(a,b){b.post||(b.post=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};Y(this,a,c);b.post.push(c)},
|
|
Parameter:function(a,b){b.parameters||(b.parameters={});var c=a.getAttribute("name");b.parameters[c]={};Y(this,a,b.parameters[c])},Constraint:function(a,b){b.constraints||(b.constraints={});var c=a.getAttribute("name");b.constraints[c]={};Y(this,a,b.constraints[c])},Value:function(a,b){b[Z(a)]=i},OutputFormat:function(a,b){b.formats.push({value:Z(a)});Y(this,a,b)},WGS84BoundingBox:function(a,b){var c={};c.crs=a.getAttribute("crs");b.BoundingBox?b.BoundingBox.push(c):(b.projection=c.crs,c=b);Y(this,
|
|
a,c)},BoundingBox:function(a,b){this.A["http://www.opengis.net/ows"].WGS84BoundingBox.apply(this,[a,b])},LowerCorner:function(a,b){var c=Z(a).replace(this.Da.Nc,""),c=c.replace(this.Da.Mc,","),c=c.split(this.Da.Lc);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=Z(a).replace(this.Da.Nc,""),c=c.replace(this.Da.Mc,","),c=c.split(this.Da.Lc);b.right=c[0];b.top=c[1];b.bounds=new ce(parseFloat(b.left),parseFloat(b.bottom),parseFloat(b.right),parseFloat(b.top));delete b.left;delete b.bottom;
|
|
delete b.right;delete b.top},Language:function(a,b){b.language=Z(a)}}};Ih.call(this)}B(Th,Ih);function Uh(){Th.call(this);this.A["http://www.opengis.net/ows/1.1"]=this.A["http://www.opengis.net/ows"];Wa(this.A["http://www.opengis.net/ows/1.1"],{AllowedValues:function(a,b){b.allowedValues={};Y(this,a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=i},DataType:function(a,b){b.dataType=Z(a)},Range:function(a,b){b.range={};Y(this,a,b.range)},MinimumValue:function(a,b){b.minValue=Z(a)},MaximumValue:function(a,b){b.maxValue=Z(a)},Identifier:function(a,b){b.identifier=Z(a)},SupportedCRS:function(a,
|
|
b){b.supportedCRS=Z(a)}})}B(Uh,Th);function Vh(){this.a="http://www.opengis.net/wtms/1.0";this.mc="serviceIdentification";this.A={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){Y(this,a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};Y(this,a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};Y(this,a,d);c.layers.push(d)},Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");Y(this,a,d);c.styles.push(d)},
|
|
Format:function(a,c){c.formats.push(Z(a))},TileMatrixSetLink:function(a,c){var d={};Y(this,a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};Y(this,a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=Z(a)},TileMatrix:function(a,c){var d={supportedCRS:c.af};Y(this,a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat(Z(a))},TopLeftCorner:function(a,c){var d=Z(a).split(" "),e=Re(c.supportedCRS).d,d=[parseFloat(d[0]),
|
|
parseFloat(d[1])],e=e.charAt(0);c.topLeftCorner="n"===e||"s"===e?new K(d[1],d[0]):new K(d[0],d[1])},TileWidth:function(a,c){c.tileWidth=parseInt(Z(a),10)},TileHeight:function(a,c){c.tileHeight=parseInt(Z(a),10)},MatrixWidth:function(a,c){c.matrixWidth=parseInt(Z(a),10)},MatrixHeight:function(a,c){c.matrixHeight=parseInt(Z(a),10)},ResourceURL:function(a,c){var d=a.getAttribute("resourceType"),e=a.getAttribute("format"),f=a.getAttribute("template");c.resourceUrls||(c.resourceUrls={});c.resourceUrls[d]||
|
|
(c.resourceUrls[d]={});c.resourceUrls[d][e]||(c.resourceUrls[d][e]=[]);c.resourceUrls[d][e].push(f)},WSDL:function(a,c){c.wsdl={};c.wsdl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceMetadataURL:function(a,c){c.serviceMetadataUrl={};c.serviceMetadataUrl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},LegendURL:function(a,c){c.legend={};c.legend.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href");c.legend.format=a.getAttribute("format")},
|
|
Dimension:function(a,c){var d={values:[]};Y(this,a,d);c.dimensions.push(d)},Default:function(a,c){c["default"]=Z(a)},Value:function(a,c){c.values.push(Z(a))}}};var a=new Uh;this.A["http://www.opengis.net/ows/1.1"]=a.A["http://www.opengis.net/ows/1.1"];Ih.call(this)}B(Vh,Ih);Vh.prototype.ta=function(a){"string"==typeof a&&(a=Hh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Jh(this,a,b);return b};function Wh(a){a=a||{};a.defaultVersion="1.0.0";this.a={};this.a.v1_0_0=Vh;Lh.call(this,a)}B(Wh,Lh);/*
|
|
Portions of this code are from MochiKit, received by
|
|
The Closure Authors under the MIT license. All other code is Copyright
|
|
2005-2009 The Closure Authors. All Rights Reserved.
|
|
*/
|
|
function Xh(a,b){this.a=[];this.f=a;this.e=b||k}p=Xh.prototype;p.na=l;p.La=l;p.Sa=0;p.Kc=l;p.$c=l;p.Zc=0;p.jc=function(a,b){Yh(this,a,b);this.Sa--;0==this.Sa&&this.na&&Zh(this)};function Yh(a,b,c){a.na=i;a.b=c;a.La=!b;Zh(a)}function $h(a){if(a.na){if(!a.Kc)throw new ai(a);a.Kc=l}}function bi(a){return Ca(a.a,function(a){return ha(a[1])})}
|
|
function Zh(a){a.c&&(a.na&&bi(a))&&(w.clearTimeout(a.c),delete a.c);a.d&&(a.d.Zc--,delete a.d);for(var b=a.b,c=l,d=l;a.a.length&&0==a.Sa;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.La?g:f)try{var j=f.call(e||a.e,b);y(j)&&(a.La=a.La&&(j==b||j instanceof Error),a.b=b=j);b instanceof Xh&&(d=i,a.Sa++)}catch(m){b=m,a.La=i,bi(a)||(c=i)}}a.b=b;d&&a.Sa&&(d=b,j=na(a.jc,a,i),f=na(a.jc,a,l),d.a.push([j,f,h]),d.na&&Zh(d),b.$c=i);c&&(a.c=w.setTimeout(function(){throw b;},0))}
|
|
function ai(a){qa.call(this);this.a=a}B(ai,qa);ai.prototype.message="Deferred has already fired";ai.prototype.name="AlreadyCalledError";function ci(a,b){var c=b||{},d=c.document||document,e=Tb("SCRIPT"),f={Hc:e,Ab:h},g=new Xh(di,f),j=k,m=c.timeout!=k?c.timeout:5E3;0<m&&(j=window.setTimeout(function(){ei(e,i);var b=new fi(gi,"Timeout reached for loading script "+a);$h(g);Yh(g,l,b)},m),f.Ab=j);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)ei(e,c.hc||l,j),$h(g),Yh(g,i,k)};e.onerror=function(){ei(e,i,j);var b=new fi(hi,"Error while loading script "+a);$h(g);Yh(g,l,b)};Ob(e,
|
|
{type:"text/javascript",charset:"UTF-8",src:a});f=d.getElementsByTagName("HEAD");(!f||0==f.length?d.documentElement:f[0]).appendChild(e);return g}function di(){if(this&&this.Hc){var a=this.Hc;a&&"SCRIPT"==a.tagName&&ei(a,i,this.Ab)}}function ei(a,b,c){c!=k&&w.clearTimeout(c);a.onload=ba;a.onerror=ba;a.onreadystatechange=ba;b&&window.setTimeout(function(){Xb(a)},0)}var hi=0,gi=1;function fi(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);qa.call(this,c);this.code=a}B(fi,qa);function ii(a){this.b=new Vc(a);this.a="jsonp";this.Ab=5E3}var ji=0;function ki(a,b){w._callbacks_[a]&&(b?delete w._callbacks_[a]:w._callbacks_[a]=ba)};function li(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){var c=[],d=b[2].charCodeAt(0),e;for(e=b[1].charCodeAt(0);e<=d;++e)c.push(a.replace(b[0],String.fromCharCode(e)));return mi(Ba(c,li))}return function(b){return b===k?h:a.replace("{z}",b.n).replace("{x}",b.x).replace("{y}",b.y)}}function mi(a){return function(b,c,d){if(b!==k){var e=Ib(b.hash(),a.length);return a[e](b,c,d)}}}function ni(a,b){return function(c,d,e){return c===k?h:Bg(a,b,fg(d,c),kg(d,c.n),e)}}
|
|
function oi(){}function pi(a,b){return function(c,d,e){return c===k?h:b(a(c,d,e),d,e)}};function qi(a,b,c,d){we.call(this,a,b);this.f=c;this.c=new Image;d!==k&&(this.c.crossOrigin=d);this.e={};this.d=k}B(qi,we);qi.prototype.J=function(a){if(y(a)){var b=z(a);if(b in this.e)return this.e[b];a=Ta(this.e)?this.c:this.c.cloneNode(l);return this.e[b]=a}return this.c};qi.prototype.b=n("f");qi.prototype.g=function(){this.a=3;D(this.d,H);this.d=k;J(this,"change")};qi.prototype.h=function(){this.a=2;D(this.d,H);this.d=k;J(this,"change")};function ri(a){ih.call(this);this.d=y(a)?a:512}B(ri,ih);ri.prototype.Ja=function(a){for(var b,c;this.ba()>this.d&&!(b=this.a.Y,c=b.X.n.toString(),c in a&&a[c].contains(b.X));)this.pop()};function si(a){mg.call(this,{attributions:a.attributions,extent:a.extent,opaque:a.opaque,projection:a.projection,tileGrid:a.tileGrid});this.fa=y(a.fa)?a.fa:oi;this.G=y(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new ri}B(si,mg);si.prototype.g=function(){return this.a.ba()>this.a.d};si.prototype.Ja=function(a){this.a.Ja(a)};si.prototype.b=function(a,b,c){var d=a.toString();if(gh(this.a,d))return jh(this.a,d);b=this.fa(a,b,c);a=new qi(a,y(b)?0:4,y(b)?b:"",this.G);kh(this.a,d,a);return a};
|
|
si.prototype.r=function(a){a=a.toString();gh(this.a,a)&&jh(this.a,a)};function ti(a){var b=Array(a.maxZoom+1),c,d=2*Xf/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);eg.call(this,{origin:new K(-Xf,Xf),resolutions:b,tileSize:new $d(256,256)})}B(ti,eg);ti.prototype.b=function(a,b,c){for(var d=a.x,e=a.y,a=a.n,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new ue(d,e,d,e);if(b.call(c,a,f))break}};function ui(a){si.call(this,{opaque:i,projection:Re("EPSG:3857")});this.cd=y(a.culture)?a.culture:"en-us";this.h=l;var b=new Vc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new ii(b),a={include:"ImageryProviders",key:a.key},c=na(this.u,this),a=a||k,d="_"+(ji++).toString(36)+pa().toString(36);w._callbacks_||(w._callbacks_={});var e=b.b.T();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&id(e,f,a[f]);c&&(w._callbacks_[d]=function(a){ki(d,i);c.apply(h,arguments)},id(e,
|
|
b.a,"_callbacks_."+d));f=ci(e.toString(),{timeout:b.Ab,hc:i});f.a.push([k,function(){ki(d,l)},h]);f.na&&Zh(f)}B(ui,si);
|
|
ui.prototype.u=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new ti({maxZoom:d,tileSize:new $d(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.fa=pi(function(a){if(a.n<c||d<a.n)return k;var b=1<<a.n,e=-a.y-1;return 0>e||b<=e?k:new se(a.n,Ib(a.x,b),e)},mi(Ba(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.cd);return function(a){return a===k?h:c.replace("{quadkey}",te(a))}})));var f=He(Re("EPSG:4326"),this.f);this.e=
|
|
Ba(b.imageryProviders,function(a){var b=a.attribution,c={};D(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new ce(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=gg(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new ve(b,c)});this.h=i;J(this,"load")};ui.prototype.c=n("h");function vi(a,b){we.call(this,a,2);this.e=a;this.d=kg(b,a.n);this.c={}}B(vi,we);vi.prototype.J=function(a){a=y(a)?z(a):-1;if(a in this.c)return this.c[a];var b=this.d,c=Tb("CANVAS");c.width=b.width;c.height=b.height;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b.width+0.5,b.height+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.e.toString(),b.width/2,b.height/2);return this.c[a]=c};
|
|
function wi(a){mg.call(this,{extent:a.extent,opaque:l,projection:a.projection,tileGrid:a.tileGrid});this.a=new ri}B(wi,mg);wi.prototype.g=function(){return this.a.ba()>this.a.d};wi.prototype.Ja=function(a){this.a.Ja(a)};wi.prototype.b=function(a){var b=a.toString();if(gh(this.a,b))return jh(this.a,b);a=new vi(a,this.tileGrid);kh(this.a,b,a);return a};function xi(a){var b=a.projection||Re("EPSG:3857"),c=oi;y(a.fa)?c=a.fa:y(a.urls)?c=mi(Ba(a.urls,li)):y(a.url)&&(c=li(a.url));var d=new ti({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?pi(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,j=-b.y-1;if(0>j||c<=j)return k;c=Ib(b.x,c);return!be(fg(d,new se(b.n,c,b.y)),e)?k:new se(b.n,c,j)},c):pi(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,d=-b.y-1;return 0>d||c<=d?k:new se(b.n,Ib(b.x,c),d)},c);si.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
|
|
extent:a.extent,projection:b,tileGrid:d,fa:c})}B(xi,si);function yi(){xi.call(this,{attributions:[new ve('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new ve('Data © <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],opaque:i,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(yi,xi);
|
|
function zi(){xi.call(this,{attributions:[new ve('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new ve("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,opaque:i,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(zi,xi);function Ai(){xi.call(this,{attributions:[new ve('© <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],opaque:i,maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(Ai,xi);function Bi(a){Eg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,Na:y(a.url)?Cg(a.url,a.params):Dg});this.b=k;this.g=1.5}B(Bi,Eg);
|
|
Bi.prototype.J=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.I(),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 ce(a.i,a.j,a.l,a.k),f=this.g;e=d.ha()/2*(f-1);f=d.ca()/2*(f-1);d.i-=e;d.j-=f;d.l+=e;d.k+=f;return this.b=Fg(this,a,b,new $d(a.ha()/b,a.ca()/b),c)};var Ci={terrain:{U:"jpg",opaque:i},"terrain-background":{U:"jpg",opaque:i},"terrain-labels":{U:"png",opaque:l},"terrain-lines":{U:"png",opaque:l},"toner-background":{U:"png",opaque:i},toner:{U:"png",opaque:i},"toner-hybrid":{U:"png",opaque:l},"toner-labels":{U:"png",opaque:l},"toner-lines":{U:"png",opaque:l},"toner-lite":{U:"png",opaque:i},watercolor:{U:"jpg",opaque:i}},Di={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}},Ei=[new ve('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.')];
|
|
function Fi(a){var b=a.layer.indexOf("-"),b=-1==b?a.layer:a.layer.slice(0,b),c=Ci[a.layer];xi.call(this,{attributions:Ei,maxZoom:Di[b].maxZoom,opaque:c.opaque,url:y(a.url)?a.url:"http://{a-d}.tile.stamen.com/"+a.layer+"/{z}/{x}/{y}."+c.U})}B(Fi,xi);function Gi(a){var b=a.url,c=a.imageExtent,d=a.imageSize,e=c.ca()/d.height,f=Re(a.projection);Eg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Na:function(){return b},resolutions:[e]});this.b=Fg(this,c,e,d,f)}B(Gi,Eg);Gi.prototype.J=function(a){return be(a,this.b.I())?this.b:k};var Hi=[];A("grid",function(a){Hi.push(a)});function Ii(a){si.call(this,{projection:Re("EPSG:3857")});this.h=l;a=this.u=ci(a.uri,{hc:i});a.a.push([this.z,k,this]);a.na&&Zh(a)}B(Ii,si);
|
|
Ii.prototype.z=function(){var a=Hi.pop(),b=Re("EPSG:4326"),c,d;y(a.bounds)?(c=a.bounds,c=new ce(c[0],c[1],c[2],c[3]),this.t=d=c.transform(He(b,this.f))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new ti({maxZoom:f});this.tileGrid=g;this.fa=pi(function(a){if(a.n<e||f<a.n)return k;var b=1<<a.n,c=-a.y-1;if(0>c||b<=c)return k;b=Ib(a.x,b);return d!==k&&!be(fg(g,new se(a.n,b,a.y)),d)?k:new se(a.n,b,c)},mi(Ba(a.tiles,li)));if(y(a.attribution)){b=d===k?b.I():d;c={};var j,m;for(j=e;j<=f;++j)m=j.toString(),
|
|
c[m]=[gg(g,b,g.a[j])];this.e=[new ve(a.attribution,c)]}this.h=i;J(this,"load")};Ii.prototype.c=n("h");function Ji(a){var b;a.urls?(b=Ba(a.urls,function(b){return ni(b,a.params)}),b=mi(b)):b=a.url?ni(a.url,a.params):oi;var c=a.extent;si.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c,tileGrid:a.tileGrid,opaque:!(y(a.params.TRANSPARENT)?a.params.TRANSPARENT:1),projection:a.projection,fa:pi(function(a,b,f){if(b.Jb().length<=a.n)return k;var g=a.x,j=fg(b,a),m=f.I();c=y(c)?c:m;c!==k&&(f.sc&&c.i===m.i&&c.l===m.l)&&(f=Math.ceil((c.l-c.i)/(j.l-j.i)),g=Ib(g,f),j=fg(b,new se(a.n,g,
|
|
a.y)));return!be(j,c)?k:new se(a.n,g,a.y)},b)})}B(Ji,si);A("goog.require",ba);function Ki(a){U.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}B(Ki,U);A("ol.AnchoredElement",Ki);A("ol.AnchoredElementPositioning",yh);yh.BOTTOM_LEFT="bottom-left";yh.BOTTOM_RIGHT="bottom-right";yh.TOP_LEFT="top-left";yh.TOP_RIGHT="top-right";A("ol.Attribution",ve);A("ol.Collection",N);N.prototype.clear=N.prototype.clear;N.prototype.forEach=N.prototype.forEach;N.prototype.getAt=N.prototype.gd;N.prototype.getLength=N.prototype.eb;
|
|
N.prototype.insertAt=N.prototype.kb;N.prototype.pop=N.prototype.pop;N.prototype.push=N.prototype.push;N.prototype.remove=N.prototype.remove;N.prototype.removeAt=N.prototype.Wb;N.prototype.setAt=N.prototype.ie;A("ol.Coordinate",K);K.toStringHDMS=function(a){return y(a)?Sc(a.y,"NS")+" "+Sc(a.x,"EW"):""};A("ol.Extent",ce);ce.prototype.getHeight=ce.prototype.ca;ce.prototype.getWidth=ce.prototype.ha;A("ol.Geolocation",V);
|
|
function Li(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(Li,S);A("ol.Map",Li);S.prototype.addLayer=S.prototype.Xd;S.prototype.addPreRenderFunction=S.prototype.ga;S.prototype.addPreRenderFunctions=S.prototype.Xc;S.prototype.getInteractions=S.prototype.Eb;S.prototype.getRenderer=S.prototype.Qc;S.prototype.removeLayer=S.prototype.Yd;Xe.prototype.getCoordinate=Xe.prototype.b;A("ol.Object",M);
|
|
M.prototype.bindTo=M.prototype.Yc;M.prototype.changed=M.prototype.ad;M.prototype.get=M.prototype.q;M.prototype.notify=M.prototype.Bc;M.prototype.set=M.prototype.p;M.prototype.setOptions=M.prototype.Jc;M.prototype.setValues=M.prototype.sb;M.prototype.unbind=M.prototype.$b;M.prototype.unbindAll=M.prototype.se;function Mi(a){O.call(this,{axisOrientation:a.axisOrientation,code:a.code,extent:a.extent,global:a.global,units:a.units})}B(Mi,O);A("ol.Projection",Mi);O.prototype.getAxisOrientation=O.prototype.hd;
|
|
O.prototype.getCode=O.prototype.kd;O.prototype.getExtent=O.prototype.I;O.prototype.getMetersPerUnit=O.prototype.ld;O.prototype.getPointResolution=O.prototype.c;O.prototype.getUnits=O.prototype.nd;O.prototype.isGlobal=O.prototype.Ud;A("ol.ProjectionUnits",Ee);Ee.DEGREES="degrees";Ee.FEET="ft";Ee.METERS="m";A("ol.RendererHint",uh);uh.CANVAS="canvas";uh.DOM="dom";uh.WEBGL="webgl";A("ol.RendererHints",th);th.createFromQueryData=th.bd;
|
|
function Ni(a){R.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,R);A("ol.View2D",Ni);R.prototype.fitExtent=R.prototype.f;R.prototype.getView2D=R.prototype.g;A("ol.animation",pf);pf.bounce=pf.Gb;pf.pan=pf.aa;pf.rotate=pf.rotate;pf.zoom=pf.zoom;function Oi(a){wf.call(this,{map:a.map,target:a.target})}B(Oi,wf);
|
|
A("ol.control.Attribution",Oi);wf.prototype.setMap=wf.prototype.a;function Pi(a){Bh.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}B(Pi,Bh);A("ol.control.MousePosition",Pi);Bh.prototype.setMap=Bh.prototype.a;function Qi(a){Eh.call(this,{map:a.map,minWidth:a.minWidth,target:a.target,units:a.units})}B(Qi,Eh);A("ol.control.ScaleLine",Qi);Eh.prototype.setMap=Eh.prototype.a;A("ol.control.ScaleLineUnits",Dh);Dh.DEGREES="degrees";
|
|
Dh.IMPERIAL="imperial";Dh.METRIC="metric";Dh.NAUTICAL="nautical";Dh.US="us";function Ri(a){xf.call(this,{delta:a.delta,map:a.map,target:a.target})}B(Ri,xf);A("ol.control.Zoom",Ri);xf.prototype.setMap=xf.prototype.a;A("ol.control.defaults",yf);A("ol.easing",Q);Q.bounce=Q.Gb;Q.easeIn=Q.dd;Q.easeOut=Q.Ia;Q.elastic=Q.ed;Q.inAndOut=Q.Aa;Q.linear=Q.xc;Q.upAndDown=Q.Oc;A("ol.interaction.Keyboard",Gh);Gh.prototype.addCallback=Gh.prototype.b;A("ol.interaction.defaults",Uf);
|
|
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,Gg);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,Hg);A("ol.layer.TileLayer",Ti);A("ol.parser.ogc.WMSCapabilities",Sh);Sh.prototype.read=Sh.prototype.ta;A("ol.parser.ogc.WMTSCapabilities",Wh);
|
|
Wh.prototype.read=Wh.prototype.ta;A("ol.projection.addProjection",Ne);A("ol.projection.configureProj4jsProjection",function(a){return Ie(a)});A("ol.projection.get",Re);A("ol.projection.getTransform",Se);A("ol.projection.getTransformFromProjections",He);A("ol.projection.transform",function(a,b,c){b=Se(b,c);a=[a.x,a.y];a=b(a,a,2);return new K(a[0],a[1])});A("ol.projection.transformWithProjections",function(a,b,c){b=He(b,c);a=[a.x,a.y];a=b(a,a,2);return new K(a[0],a[1])});Lg.prototype.getCanvas=Lg.prototype.bb;
|
|
function Ui(a){ui.call(this,{culture:a.culture,key:a.key,style:a.style})}B(Ui,ui);A("ol.source.BingMaps",Ui);function Vi(a){wi.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}B(Vi,wi);A("ol.source.DebugTileSource",Vi);A("ol.source.MapQuestOSM",yi);A("ol.source.MapQuestOpenAerial",zi);A("ol.source.OpenStreetMap",Ai);
|
|
function Wi(a){Bi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,params:a.params,projection:a.projection,resolutions:a.resolutions,url:a.url})}B(Wi,Bi);A("ol.source.SingleImageWMS",Wi);function Xi(a){Fi.call(this,{layer:a.layer,maxZoom:a.maxZoom,minZoom:a.minZoom,opaque:a.opaque,url:a.url})}B(Xi,Fi);A("ol.source.Stamen",Xi);
|
|
function Yi(a){Gi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,imageExtent:a.imageExtent,imageSize:a.imageSize,projection:a.projection,url:a.url})}B(Yi,Gi);A("ol.source.StaticImage",Yi);function Zi(a){Ii.call(this,{uri:a.uri})}B(Zi,Ii);A("ol.source.TileJSON",Zi);function $i(a){Ji.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,maxZoom:a.maxZoom,params:a.params,projection:a.projection,tileGrid:a.tileGrid,url:a.url,urls:a.urls})}
|
|
B($i,Ji);A("ol.source.TiledWMS",$i);function aj(a){eg.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}B(aj,eg);A("ol.tilegrid.TileGrid",aj);function bj(a){ti.call(this,{maxZoom:a.maxZoom})}B(bj,ti);A("ol.tilegrid.XYZ",bj);pf.xe={};pf.Oe={};pf.Pe={};pf.Ye={};})();
|