Add wmts-hidpi branch
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,594 @@
|
||||
// OpenLayers 3. see http://ol3js.org/
|
||||
(function(){function aa(){return function(){}}function k(a){return function(){return this[a]}}function ba(a){return function(){return a}}var l,ca=ca||{},t=this;function da(){}function ea(a){a.Ga=function(){return a.Qd?a.Qd:a.Qd=new a}}
|
||||
function fa(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 u(a){return void 0!==a}function ga(a){return null===a}function ha(a){return"array"==fa(a)}function ia(a){var b=fa(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ka(a){return"string"==typeof a}function la(a){return"number"==typeof a}function ma(a){return"function"==fa(a)}function oa(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function v(a){return a[pa]||(a[pa]=++qa)}
|
||||
var pa="closure_uid_"+(1E9*Math.random()>>>0),qa=0;function ra(a,b,c){return a.call.apply(a.bind,arguments)}function ua(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 y(a,b,c){y=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ra:ua;return y.apply(null,arguments)}function va(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 wa=Date.now||function(){return+new Date};
|
||||
function C(a,b){var c=a.split("."),d=t;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b}function E(a,b){function c(){}c.prototype=b.prototype;a.C=b.prototype;a.prototype=new c};function xa(a){Error.captureStackTrace?Error.captureStackTrace(this,xa):this.stack=Error().stack||"";a&&(this.message=String(a))}E(xa,Error);xa.prototype.name="CustomError";function ya(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}function za(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function Aa(a){if(!Ba.test(a))return a;-1!=a.indexOf("\x26")&&(a=a.replace(Ca,"\x26amp;"));-1!=a.indexOf("\x3c")&&(a=a.replace(Da,"\x26lt;"));-1!=a.indexOf("\x3e")&&(a=a.replace(Ea,"\x26gt;"));-1!=a.indexOf('"')&&(a=a.replace(Fa,"\x26quot;"));return a}
|
||||
var Ca=/&/g,Da=/</g,Ea=/>/g,Fa=/\"/g,Ba=/[&<>\"]/;function Ga(a){a=u(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);b=Math.max(0,2-b);return Array(b+1).join("0")+a}
|
||||
function Ha(a,b){for(var c=0,d=za(String(a)).split("."),e=za(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var h=d[g]||"",m=e[g]||"",n=RegExp("(\\d*)(\\D*)","g"),p=RegExp("(\\d*)(\\D*)","g");do{var q=n.exec(h)||["","",""],r=p.exec(m)||["","",""];if(0==q[0].length&&0==r[0].length)break;c=((0==q[1].length?0:parseInt(q[1],10))<(0==r[1].length?0:parseInt(r[1],10))?-1:(0==q[1].length?0:parseInt(q[1],10))>(0==r[1].length?0:parseInt(r[1],10))?1:0)||((0==q[2].length)<(0==r[2].length)?
|
||||
-1:(0==q[2].length)>(0==r[2].length)?1:0)||(q[2]<r[2]?-1:q[2]>r[2]?1:0)}while(0==c)}return c};var Ia=Array.prototype,Ja=Ia.indexOf?function(a,b,c){return Ia.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(ka(a))return ka(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Ka=Ia.forEach?function(a,b,c){Ia.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ka(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},La=Ia.map?function(a,b,c){return Ia.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),
|
||||
f=ka(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ma=Ia.some?function(a,b,c){return Ia.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ka(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1};function Na(a,b){var c=Oa(a,b,void 0);return 0>c?null:ka(a)?a.charAt(c):a[c]}function Oa(a,b,c){for(var d=a.length,e=ka(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1}
|
||||
function Pa(a,b){var c=Ja(a,b),d;(d=0<=c)&&Ia.splice.call(a,c,1);return d}function Qa(a){return Ia.concat.apply(Ia,arguments)}function Ra(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 Sa(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(ha(d)||(e=ia(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var f=a.length,g=d.length,h=0;h<g;h++)a[f+h]=d[h];else a.push(d)}}
|
||||
function Ta(a,b,c,d){Ia.splice.apply(a,Ua(arguments,1))}function Ua(a,b,c){return 2>=arguments.length?Ia.slice.call(a,b):Ia.slice.call(a,b,c)}function Va(a,b){Ia.sort.call(a,b||Wa)}function Xa(a,b){if(!ia(a)||!ia(b)||a.length!=b.length)return!1;for(var c=a.length,d=Ya,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0}function Wa(a,b){return a>b?1:a<b?-1:0}function Ya(a,b){return a===b};function Za(a,b,c){this.a=a;this.x=b;this.y=c}function $a(a,b,c,d){return u(d)?(d.a=a,d.x=b,d.y=c,d):new Za(a,b,c)}function ab(a,b,c){return a+"/"+b+"/"+c}Za.prototype.b=function(a){return u(a)?(a[0]=this.a,a[1]=this.x,a[2]=this.y,a):[this.a,this.x,this.y]};Za.prototype.c=function(){return(this.x<<this.a)+this.y};function bb(a){var b=Array(a.a),c=1<<a.a-1,d,e;for(d=0;d<a.a;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}
|
||||
Za.prototype.toString=function(){return ab(this.a,this.x,this.y)};function cb(a,b,c,d){this.a=a;this.d=b;this.b=c;this.c=d}function db(a,b,c,d,e){return u(e)?(e.a=a,e.d=b,e.b=c,e.c=d,e):new cb(a,b,c,d)}cb.prototype.contains=function(a){return this.a<=a.x&&a.x<=this.d&&this.b<=a.y&&a.y<=this.c};function eb(a){this.c=a.html;this.a=u(a.tileRanges)?a.tileRanges:null};var fb,gb,hb,ib,jb,kb,lb;function mb(){return t.navigator?t.navigator.userAgent:null}function ob(){return t.navigator}ib=hb=gb=fb=!1;var pb;if(pb=mb()){var qb=ob();fb=0==pb.lastIndexOf("Opera",0);gb=!fb&&(-1!=pb.indexOf("MSIE")||-1!=pb.indexOf("Trident"));hb=!fb&&-1!=pb.indexOf("WebKit");ib=!fb&&!hb&&!gb&&"Gecko"==qb.product}var rb=fb,F=gb,sb=ib,tb=hb,ub,vb=ob();ub=vb&&vb.platform||"";jb=-1!=ub.indexOf("Mac");kb=-1!=ub.indexOf("Win");lb=-1!=ub.indexOf("Linux");
|
||||
var wb=!!ob()&&-1!=(ob().appVersion||"").indexOf("X11");function xb(){var a=t.document;return a?a.documentMode:void 0}var yb;a:{var zb="",Ab;if(rb&&t.opera)var Cb=t.opera.version,zb="function"==typeof Cb?Cb():Cb;else if(sb?Ab=/rv\:([^\);]+)(\)|;)/:F?Ab=/\b(?:MSIE|rv)\s+([^\);]+)(\)|;)/:tb&&(Ab=/WebKit\/(\S+)/),Ab)var Db=Ab.exec(mb()),zb=Db?Db[1]:"";if(F){var Eb=xb();if(Eb>parseFloat(zb)){yb=String(Eb);break a}}yb=zb}var Fb={};function Gb(a){return Fb[a]||(Fb[a]=0<=Ha(yb,a))}
|
||||
var Hb=t.document,Ib=Hb&&F?xb()||("CSS1Compat"==Hb.compatMode?parseInt(yb,10):5):void 0;var Jb,Kb=!F||F&&9<=Ib;!sb&&!F||F&&F&&9<=Ib||sb&&Gb("1.9.1");F&&Gb("9");function Lb(a){a=a.className;return ka(a)&&a.match(/\S+/g)||[]}function Mb(a,b){for(var c=Lb(a),d=Ua(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=Ja(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e}function Nb(a,b,c){for(var d=Lb(a),e=!1,f=0;f<d.length;f++)d[f]==b&&(Ta(d,f--,1),e=!0);e&&(d.push(c),a.className=d.join(" "))};function Ob(a,b,c){return Math.min(Math.max(a,b),c)}function Pb(a,b){var c=a%b;return 0>c*b?c+b:c}function Qb(a){return a*Math.PI/180};function Rb(a,b){this.x=u(a)?a:0;this.y=u(b)?b:0}l=Rb.prototype;l.I=function(){return new Rb(this.x,this.y)};l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};l.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};l.scale=function(a,b){var c=la(b)?b:a;this.x*=a;this.y*=c;return this};function Sb(a,b){this.width=a;this.height=b}l=Sb.prototype;l.I=function(){return new Sb(this.width,this.height)};l.W=function(){return!(this.width*this.height)};l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
|
||||
l.scale=function(a,b){var c=la(b)?b:a;this.width*=a;this.height*=c;return this};function Tb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Ub(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function Vb(a){var b=0,c;for(c in a)b++;return b}function Xb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Yb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Zb(a){for(var b in a)return!1;return!0}function $b(a){for(var b in a)delete a[b]}function ac(a,b){b in a&&delete a[b]}function G(a,b,c){return b in a?a[b]:c}
|
||||
function bc(a,b){var c=[];return b in a?a[b]:a[b]=c}function cc(a){var b={},c;for(c in a)b[c]=a[c];return b}var dc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ec(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<dc.length;f++)c=dc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function fc(a){return a?new gc(hc(a)):Jb||(Jb=new gc)}function ic(a){return ka(a)?document.getElementById(a):a}function jc(a,b){Tb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in kc?a.setAttribute(kc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}
|
||||
var kc={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 lc(a){a=a.document.documentElement;return new Sb(a.clientWidth,a.clientHeight)}
|
||||
function mc(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Kb&&g&&(g.name||g.type)){f=["\x3c",f];g.name&&f.push(' name\x3d"',Aa(g.name),'"');if(g.type){f.push(' type\x3d"',Aa(g.type),'"');var h={};ec(h,g);delete h.type;g=h}f.push("\x3e");f=f.join("")}f=e.createElement(f);g&&(ka(g)?f.className=g:ha(g)?Mb.apply(null,[f].concat(g)):jc(f,g));2<d.length&&nc(e,f,d,2);return f}
|
||||
function nc(a,b,c,d){function e(c){c&&b.appendChild(ka(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];!ia(f)||oa(f)&&0<f.nodeType?e(f):Ka(oc(f)?Ra(f):f,e)}}function pc(a){return document.createElement(a)}function qc(a,b){nc(hc(a),a,arguments,1)}function rc(a){for(var b;b=a.firstChild;)a.removeChild(b)}function sc(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)}function tc(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}
|
||||
function uc(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function vc(a){if(void 0!=a.firstElementChild)a=a.firstElementChild;else for(a=a.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a}function wc(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}function hc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
|
||||
function oc(a){if(a&&"number"==typeof a.length){if(oa(a))return"function"==typeof a.item||"string"==typeof a.item;if(ma(a))return"function"==typeof a.item}return!1}function gc(a){this.a=a||t.document||document}function xc(a){var b=a.a;a=tb?b.body:b.documentElement;b=b.parentWindow||b.defaultView;return F&&Gb("10")&&b.pageYOffset!=a.scrollTop?new Rb(a.scrollLeft,a.scrollTop):new Rb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}gc.prototype.appendChild=function(a,b){a.appendChild(b)};
|
||||
gc.prototype.contains=wc;var yc=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function zc(a,b){var c,d,e=yc.length;for(d=0;d<e;++d)try{if(c=a.getContext(yc[d],b),null!==c)return c}catch(f){}return null};var I={},Ac=F&&!Gb("9.0")&&""!==yb;I.sd=t.devicePixelRatio||1;I.td="ArrayBuffer"in t;I.Yb=!1;I.ud=function(){if(!("HTMLCanvasElement"in t))return!1;try{var a=pc("CANVAS").getContext("2d");if(null===a)return!1;u(a.setLineDash)&&(I.Yb=!0);return!0}catch(b){return!1}}();I.vd="DeviceOrientationEvent"in t;I.Ae=!0;I.wd="geolocation"in t.navigator;I.Be="JSON"in t&&"parse"in t.JSON;I.xc="ontouchstart"in t;I.De="PointerEvent"in t;I.Ce=!!t.navigator.msPointerEnabled;
|
||||
I.xd=function(){if(!("WebGLRenderingContext"in t))return!1;try{var a=pc("CANVAS");return!ga(zc(a,{Ye:!0}))}catch(b){return!1}}();function Bc(){0!=Cc&&(this.Ni=Error().stack,Dc[v(this)]=this)}var Cc=0,Dc={};Bc.prototype.Y=!1;Bc.prototype.Fb=function(){if(!this.Y&&(this.Y=!0,this.A(),0!=Cc)){var a=v(this);delete Dc[a]}};function Ec(a,b){var c=va(Fc,b);a.P||(a.P=[]);a.P.push(y(c,void 0))}Bc.prototype.A=function(){if(this.P)for(;this.P.length;)this.P.shift()()};function Fc(a){a&&"function"==typeof a.Fb&&a.Fb()};function Gc(a,b){this.type=a;this.c=this.target=b}l=Gc.prototype;l.Fb=aa();l.Ma=!1;l.Gf=!1;l.me=!0;l.za=function(){this.Ma=!0};l.preventDefault=function(){this.Gf=!0;this.me=!1};function Hc(a){a.za()}function Ic(a){a.preventDefault()};var Jc=!F||F&&9<=Ib,Kc=!F||F&&9<=Ib,Lc=F&&!Gb("9");!tb||Gb("528");sb&&Gb("1.9b")||F&&Gb("8")||rb&&Gb("9.5")||tb&&Gb("528");sb&&!Gb("8")||F&&Gb("9");var Mc=F?"focusout":"DOMFocusOut";function Nc(a){Nc[" "](a);return a}Nc[" "]=da;function Oc(a,b){a&&Pc(this,a,b)}E(Oc,Gc);var Qc=[1,4,2];l=Oc.prototype;l.target=null;l.relatedTarget=null;l.offsetX=0;l.offsetY=0;l.clientX=0;l.clientY=0;l.screenX=0;l.screenY=0;l.button=0;l.xa=0;l.Rc=0;l.Pb=!1;l.$=!1;l.ya=!1;l.Sc=!1;l.sb=!1;l.H=null;
|
||||
function Pc(a,b,c){var d=a.type=b.type;Gc.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(sb){var e;a:{try{Nc(c.nodeName);e=!0;break a}catch(f){}e=!1}e||(c=null)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.relatedTarget=c;a.offsetX=tb||void 0!==b.offsetX?b.offsetX:b.layerX;a.offsetY=tb||void 0!==b.offsetY?b.offsetY:b.layerY;a.clientX=void 0!==b.clientX?b.clientX:b.pageX;a.clientY=void 0!==b.clientY?b.clientY:b.pageY;a.screenX=b.screenX||0;a.screenY=
|
||||
b.screenY||0;a.button=b.button;a.xa=b.keyCode||0;a.Rc=b.charCode||("keypress"==d?b.keyCode:0);a.Pb=b.ctrlKey;a.$=b.altKey;a.ya=b.shiftKey;a.Sc=b.metaKey;a.sb=jb?b.metaKey:b.ctrlKey;a.state=b.state;a.H=b;b.defaultPrevented&&a.preventDefault();delete a.Ma}function Rc(a){return(Jc?0==a.H.button:"click"==a.type?!0:!!(a.H.button&Qc[0]))&&!(tb&&jb&&a.Pb)}l.za=function(){Oc.C.za.call(this);this.H.stopPropagation?this.H.stopPropagation():this.H.cancelBubble=!0};
|
||||
l.preventDefault=function(){Oc.C.preventDefault.call(this);var a=this.H;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Lc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};l.bf=k("H");var Sc="closure_listenable_"+(1E6*Math.random()|0);function Tc(a){return!(!a||!a[Sc])}var Uc=0;function Vc(a,b,c,d,e,f){this.ra=a;this.a=b;this.src=c;this.type=d;this.capture=!!e;this.$a=f;this.key=++Uc;this.Ca=this.hb=!1}function Wc(a){a.Ca=!0;a.ra=null;a.a=null;a.src=null;a.$a=null};var Xc={},Yc={},Zc={},$c={};function K(a,b,c,d,e){if(ha(b)){for(var f=0;f<b.length;f++)K(a,b[f],c,d,e);return null}c=ad(c);return Tc(a)?a.aa(b,c,d,e):bd(a,b,c,!1,d,e)}
|
||||
function bd(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");e=!!e;var g=Yc;b in g||(g[b]={G:0});g=g[b];e in g||(g[e]={G:0},g.G++);var g=g[e],h=v(a),m;if(g[h]){m=g[h];for(var n=0;n<m.length;n++)if(g=m[n],g.ra==c&&g.$a==f){if(g.Ca)break;d||(m[n].hb=!1);return m[n]}}else m=g[h]=[],g.G++;n=cd();g=new Vc(c,n,a,b,e,f);g.hb=d;n.src=a;n.ra=g;m.push(g);Zc[h]||(Zc[h]=[]);Zc[h].push(g);a.addEventListener?a.addEventListener(b,n,e):a.attachEvent(b in $c?$c[b]:$c[b]="on"+b,n);return Xc[g.key]=g}
|
||||
function cd(){var a=dd,b=Kc?function(c){return a.call(b.src,b.ra,c)}:function(c){c=a.call(b.src,b.ra,c);if(!c)return c};return b}function ed(a,b,c,d,e){if(ha(b)){for(var f=0;f<b.length;f++)ed(a,b[f],c,d,e);return null}c=ad(c);return Tc(a)?a.T.add(b,c,!0,d,e):bd(a,b,c,!0,d,e)}function fd(a,b,c,d,e){if(ha(b))for(var f=0;f<b.length;f++)fd(a,b[f],c,d,e);else if(c=ad(c),Tc(a))a.ld(b,c,d,e);else if(d=!!d,a=gd(a,b,d))for(f=0;f<a.length;f++)if(a[f].ra==c&&a[f].capture==d&&a[f].$a==e){L(a[f]);break}}
|
||||
function L(a){if(la(a)||!a||a.Ca)return!1;var b=a.src;if(Tc(b))return hd(b.T,a);var c=a.type,d=a.a,e=a.capture;b.removeEventListener?b.removeEventListener(c,d,e):b.detachEvent&&b.detachEvent(c in $c?$c[c]:$c[c]="on"+c,d);b=v(b);Zc[b]&&(d=Zc[b],Pa(d,a),0==d.length&&delete Zc[b]);Wc(a);if(d=Yc[c][e][b])Pa(d,a),0==d.length&&(delete Yc[c][e][b],Yc[c][e].G--),0==Yc[c][e].G&&(delete Yc[c][e],Yc[c].G--),0==Yc[c].G&&delete Yc[c];delete Xc[a.key];return!0}
|
||||
function gd(a,b,c){var d=Yc;return b in d&&(d=d[b],c in d&&(d=d[c],a=v(a),d[a]))?d[a]:null}function id(a){if(Tc(a))return jd(a.T,void 0);a=v(a);var b=Zc[a];if(b){var c=u(void 0),d=u(void 0);return c&&d?(b=Yc[void 0],!!b&&!!b[void 0]&&a in b[void 0]):c||d?Ma(b,function(a){return c&&void 0==a.type||d&&void 0==a.capture}):!0}return!1}function kd(a,b,c){var d=1;b=v(b);if(a[b])for(a=Ra(a[b]),b=0;b<a.length;b++){var e=a[b];e&&!e.Ca&&(d&=!1!==ld(e,c))}return Boolean(d)}
|
||||
function ld(a,b){var c=a.ra,d=a.$a||a.src;a.hb&&L(a);return c.call(d,b)}
|
||||
function dd(a,b){if(a.Ca)return!0;var c=a.type,d=Yc;if(!(c in d))return!0;var d=d[c],e,f;if(!Kc){if(!(c=b))a:{for(var c=["window","event"],g=t;e=c.shift();)if(null!=g[e])g=g[e];else{c=null;break a}c=g}e=c;c=!0 in d;g=!1 in d;if(c){if(0>e.keyCode||void 0!=e.returnValue)return!0;a:{var h=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(m){h=!0}if(h||void 0==e.returnValue)e.returnValue=!0}}h=new Oc;Pc(h,e,this);e=!0;try{if(c){for(var n=[],p=h.c;p;p=p.parentNode)n.push(p);f=d[!0];for(var q=n.length-
|
||||
1;!h.Ma&&0<=q;q--)h.c=n[q],e&=kd(f,n[q],h);if(g)for(f=d[!1],q=0;!h.Ma&&q<n.length;q++)h.c=n[q],e&=kd(f,n[q],h)}else e=ld(a,h)}finally{n&&(n.length=0)}return e}d=new Oc(b,this);return e=ld(a,d)}var md="__closure_events_fn_"+(1E9*Math.random()>>>0);function ad(a){return ma(a)?a:a[md]||(a[md]=function(b){return a.handleEvent(b)})};function nd(a){return function(){return a}}var od=nd(!1),pd=nd(!0);function qd(a){return a}function rd(a){return function(){throw a;}}function sd(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}function td(a){var b=arguments,c=b.length;return function(){for(var a=0;a<c;a++)if(!b[a].apply(this,arguments))return!1;return!0}};function ud(a){this.src=a;this.a={};this.c=0}ud.prototype.add=function(a,b,c,d,e){var f=this.a[a];f||(f=this.a[a]=[],this.c++);var g=vd(f,b,d,e);-1<g?(a=f[g],c||(a.hb=!1)):(a=new Vc(b,null,this.src,a,!!d,e),a.hb=c,f.push(a));return a};ud.prototype.remove=function(a,b,c,d){if(!(a in this.a))return!1;var e=this.a[a];b=vd(e,b,c,d);return-1<b?(Wc(e[b]),Ia.splice.call(e,b,1),0==e.length&&(delete this.a[a],this.c--),!0):!1};
|
||||
function hd(a,b){var c=b.type;if(!(c in a.a))return!1;var d=Pa(a.a[c],b);d&&(Wc(b),0==a.a[c].length&&(delete a.a[c],a.c--));return d}function jd(a,b){var c=u(b),d=u(void 0);return Ub(a.a,function(a){for(var f=0;f<a.length;++f)if(!(c&&a[f].type!=b||d&&void 0!=a[f].capture))return!0;return!1})}function vd(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Ca&&f.ra==b&&f.capture==!!c&&f.$a==d)return e}return-1};function wd(){Bc.call(this);this.T=new ud(this);this.yc=this}E(wd,Bc);wd.prototype[Sc]=!0;l=wd.prototype;l.ad=null;l.addEventListener=function(a,b,c,d){K(this,a,b,c,d)};l.removeEventListener=function(a,b,c,d){fd(this,a,b,c,d)};
|
||||
function M(a,b){var c,d=a.ad;if(d)for(c=[];d;d=d.ad)c.push(d);var d=a.yc,e=b,f=e.type||e;if(ka(e))e=new Gc(e,d);else if(e instanceof Gc)e.target=e.target||d;else{var g=e,e=new Gc(f,d);ec(e,g)}var g=!0,h;if(c)for(var m=c.length-1;!e.Ma&&0<=m;m--)h=e.c=c[m],g=xd(h,f,!0,e)&&g;e.Ma||(h=e.c=d,g=xd(h,f,!0,e)&&g,e.Ma||(g=xd(h,f,!1,e)&&g));if(c)for(m=0;!e.Ma&&m<c.length;m++)h=e.c=c[m],g=xd(h,f,!1,e)&&g;return g}
|
||||
l.A=function(){wd.C.A.call(this);if(this.T){var a=this.T,b=0,c;for(c in a.a){for(var d=a.a[c],e=0;e<d.length;e++)++b,d[e].Ca=!0;delete a.a[c];a.c--}}this.ad=null};l.aa=function(a,b,c,d){return this.T.add(a,b,!1,c,d)};l.ld=function(a,b,c,d){return this.T.remove(a,b,c,d)};function xd(a,b,c,d){b=a.T.a[b];if(!b)return!0;b=Ra(b);for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.Ca&&g.capture==c){var h=g.ra,m=g.$a||g.src;g.hb&&hd(a.T,g);e=!1!==h.call(m,d)&&e}}return e&&!1!=d.me};function yd(){wd.call(this);this.c=0}E(yd,wd);l=yd.prototype;l.s=function(){++this.c;M(this,"change")};l.Dh=function(a,b,c){return K(this,a,b,!1,c)};l.Jh=function(a,b,c){return ed(this,a,b,!1,c)};l.oi=function(a,b,c){fd(this,a,b,!1,c)};l.pi=function(a){L(a)};function zd(a,b){Gc.call(this,a);this.key=b}E(zd,Gc);function Ad(a,b){this.target=a;this.key=b;this.c=this.a=qd}Ad.prototype.transform=function(a,b){this.a=a;this.c=b;this.target.Vc(this.key)};function N(a){yd.call(this);this.e={};this.i={};this.V={};this.Z={};u(a)&&this.U(a)}E(N,yd);var Bd={},Cd={},Dd={};function Ed(a){return Bd.hasOwnProperty(a)?Bd[a]:Bd[a]="change:"+a.toLowerCase()}l=N.prototype;
|
||||
l.Ue=function(a,b,c){c=c||a;this.kd(a);var d=Ed(c);this.Z[a]=K(b,d,function(){Fd(this,a)},void 0,this);this.V[a]=K(b,"beforepropertychange",Gd(a,c),void 0,this);b=new Ad(b,c);this.i[a]=b;Fd(this,a);return b};function Gd(a,b){return function(c){c.key===b&&M(this,new zd("beforepropertychange",a))}}
|
||||
l.t=function(a){var b,c=this.i;if(c.hasOwnProperty(a)){a=c[a];b=a.target;var c=a.key,d=Cd.hasOwnProperty(c)?Cd[c]:Cd[c]="get"+(c.substr(0,1).toUpperCase()+c.substr(1)),d=G(b,d);b=u(d)?d.call(b):b.t(c);b=a.c(b)}else this.e.hasOwnProperty(a)&&(b=this.e[a]);return b};l.qa=function(){var a=this.i,b;if(Zb(this.e)){if(Zb(a))return[];b=a}else if(Zb(a))b=this.e;else{b={};for(var c in this.e)b[c]=!0;for(c in a)b[c]=!0}return Yb(b)};
|
||||
l.kb=function(){var a={},b;for(b in this.e)a[b]=this.e[b];for(b in this.i)a[b]=this.t(b);return a};l.Vc=function(a){var b=this.i;b.hasOwnProperty(a)?(a=b[a],a.target.Vc(a.key)):Fd(this,a)};function Fd(a,b){var c=Ed(b);M(a,c);M(a,new zd("propertychange",b))}
|
||||
l.u=function(a,b){M(this,new zd("beforepropertychange",a));var c=this.i;if(c.hasOwnProperty(a)){var d=c[a],c=d.target,e=d.key;b=d.a(b);d=Dd.hasOwnProperty(e)?Dd[e]:Dd[e]="set"+(e.substr(0,1).toUpperCase()+e.substr(1));d=G(c,d);u(d)?d.call(c,b):c.u(e,b)}else this.e[a]=b,Fd(this,a)};l.U=function(a){for(var b in a)this.u(b,a[b])};l.kd=function(a){var b=this.Z,c=b[a];c&&(delete b[a],L(c),b=this.t(a),delete this.i[a],this.e[a]=b);if(b=this.V[a])L(b),delete this.V[a]};l.qi=function(){for(var a in this.Z)this.kd(a)};function Hd(a,b,c){Gc.call(this,a,c);this.element=b}E(Hd,Gc);function Id(a){N.call(this);this.a=a||[];Jd(this)}E(Id,N);l=Id.prototype;l.clear=function(){for(;0<this.Ka();)this.Vd()};l.zg=function(a){var b,c;b=0;for(c=a.length;b<c;++b)this.push(a[b]);return this};l.forEach=function(a,b){Ka(this.a,a,b)};l.Ag=k("a");l.Nb=function(a){return this.a[a]};l.Ka=function(){return this.t("length")};l.kc=function(a,b){Ta(this.a,a,0,b);Jd(this);M(this,new Hd("add",b,this))};
|
||||
l.Vd=function(){return this.fd(this.Ka()-1)};l.push=function(a){var b=this.a.length;this.kc(b,a);return b};l.remove=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return this.fd(c)};l.fd=function(a){var b=this.a[a];Ia.splice.call(this.a,a,1);Jd(this);M(this,new Hd("remove",b,this));return b};l.ei=function(a,b){var c=this.Ka();if(a<c)c=this.a[a],this.a[a]=b,M(this,new Hd("remove",c,this)),M(this,new Hd("add",b,this));else{for(;c<a;++c)this.kc(c,void 0);this.kc(a,b)}};
|
||||
function Jd(a){a.u("length",a.a.length)};function Kd(a){N.call(this);a=u(a)?a:{};this.a=null;K(this,Ed("tracking"),this.l,!1,this);this.b(u(a.tracking)?a.tracking:!1)}E(Kd,N);Kd.prototype.A=function(){this.b(!1);Kd.C.A.call(this)};
|
||||
Kd.prototype.n=function(a){a=a.H;if(null!=a.alpha){var b=Qb(a.alpha);this.u("alpha",b);"boolean"==typeof a.absolute&&a.absolute?this.u("heading",b):null!=a.webkitCompassHeading&&(null!=a.webkitCompassAccuracy&&-1!=a.webkitCompassAccuracy)&&this.u("heading",Qb(a.webkitCompassHeading))}null!=a.beta&&this.u("beta",Qb(a.beta));null!=a.gamma&&this.u("gamma",Qb(a.gamma));this.s()};Kd.prototype.f=function(){return this.t("alpha")};Kd.prototype.getAlpha=Kd.prototype.f;Kd.prototype.g=function(){return this.t("beta")};
|
||||
Kd.prototype.getBeta=Kd.prototype.g;Kd.prototype.j=function(){return this.t("gamma")};Kd.prototype.getGamma=Kd.prototype.j;Kd.prototype.k=function(){return this.t("heading")};Kd.prototype.getHeading=Kd.prototype.k;Kd.prototype.d=function(){return this.t("tracking")};Kd.prototype.getTracking=Kd.prototype.d;Kd.prototype.l=function(){if(I.vd){var a=this.d();a&&null===this.a?this.a=K(t,"deviceorientation",this.n,!1,this):a||null===this.a||(L(this.a),this.a=null)}};
|
||||
Kd.prototype.b=function(a){this.u("tracking",a)};Kd.prototype.setTracking=Kd.prototype.b;function Ld(){yd.call(this);this.extent=void 0;this.e=-1;this.f={};this.j=this.i=0}E(Ld,yd);Ld.prototype.q=function(a,b){var c=u(b)?b:[NaN,NaN];this.da(a[0],a[1],c,Infinity);return c};Ld.prototype.Sa=od;var Md={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
|
||||
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
|
||||
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
|
||||
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
|
||||
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
|
||||
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Nd(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Nd.prototype.a=4;Nd.prototype.c=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Nd.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(Nd.BYTES_PER_ELEMENT=4,Nd.prototype.BYTES_PER_ELEMENT=Nd.prototype.a,Nd.prototype.set=Nd.prototype.c,Nd.prototype.toString=Nd.prototype.toString,C("Float32Array",Nd));function Od(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Od.prototype.a=8;Od.prototype.c=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Od.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{Od.BYTES_PER_ELEMENT=8}catch(Pd){}Od.prototype.BYTES_PER_ELEMENT=Od.prototype.a;Od.prototype.set=Od.prototype.c;Od.prototype.toString=Od.prototype.toString;C("Float64Array",Od)};function Qd(a,b,c,d,e){a[0]=b;a[1]=c;a[2]=d;a[3]=e};function Rd(){var a=Array(16);Sd(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function Td(){var a=Array(16);Sd(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function Sd(a,b,c,d,e,f,g,h,m,n,p,q,r,s,z,x,w){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=h;a[7]=m;a[8]=n;a[9]=p;a[10]=q;a[11]=r;a[12]=s;a[13]=z;a[14]=x;a[15]=w}
|
||||
function Ud(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 Vd(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 Wd(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],h=a[4],m=a[5],n=a[6],p=a[7],q=a[8],r=a[9],s=a[10],z=a[11],x=a[12],w=a[13],B=a[14];a=a[15];var A=b[0],D=b[1],H=b[2],P=b[3],J=b[4],U=b[5],Z=b[6],na=b[7],ta=b[8],R=b[9],sa=b[10],ja=b[11],Wb=b[12],nb=b[13],Bb=b[14];b=b[15];c[0]=d*A+h*D+q*H+x*P;c[1]=e*A+m*D+r*H+w*P;c[2]=f*A+n*D+s*H+B*P;c[3]=g*A+p*D+z*H+a*P;c[4]=d*J+h*U+q*Z+x*na;c[5]=e*J+m*U+r*Z+w*na;c[6]=f*J+n*U+s*Z+B*na;c[7]=g*J+p*U+z*Z+a*na;c[8]=d*ta+h*R+q*sa+x*ja;c[9]=e*ta+m*R+r*sa+w*ja;c[10]=f*ta+
|
||||
n*R+s*sa+B*ja;c[11]=g*ta+p*R+z*sa+a*ja;c[12]=d*Wb+h*nb+q*Bb+x*b;c[13]=e*Wb+m*nb+r*Bb+w*b;c[14]=f*Wb+n*nb+s*Bb+B*b;c[15]=g*Wb+p*nb+z*Bb+a*b}function Xd(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 Zd(a,b,c){Sd(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 $d(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],m=a[6],n=a[7],p=Math.cos(b),q=Math.sin(b);a[0]=c*p+g*q;a[1]=d*p+h*q;a[2]=e*p+m*q;a[3]=f*p+n*q;a[4]=c*-q+g*p;a[5]=d*-q+h*p;a[6]=e*-q+m*p;a[7]=f*-q+n*p}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);var ae=/^#(?:[0-9a-f]{3}){1,2}$/i,be=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,ce=/^(?:rgba)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|1|0\.\d{0,10})\)$/i;function de(a){if(!ka(a)){var b=a[0];b!=(b|0)&&(b=b+0.5|0);var c=a[1];c!=(c|0)&&(c=c+0.5|0);var d=a[2];d!=(d|0)&&(d=d+0.5|0);a="rgba("+b+","+c+","+d+","+a[3]+")"}return a}
|
||||
var fe=function(){var a={},b=0;return function(c,d){var e;if(a.hasOwnProperty(c))e=a[c];else{if(1024<=b){e=0;for(var f in a)0===(e++&3)&&(delete a[f],--b)}e=ee(c);a[c]=e;++b}u(d)&&(d[0]=e[0],d[1]=e[1],d[2]=e[2],d[3]=e[3],e=d);return e}}();
|
||||
function ee(a){var b=!1;Md.hasOwnProperty(a)&&(a=Md[a],b=!0);var c,d;if(b||ae.exec(a))return d=3==a.length-1?1:2,b=parseInt(a.substr(1+0*d,d),16),c=parseInt(a.substr(1+1*d,d),16),a=parseInt(a.substr(1+2*d,d),16),1==d&&(b=(b<<4)+b,c=(c<<4)+c,a=(a<<4)+a),b=[b,c,a,1];if(d=ce.exec(a))return b=Number(d[1]),c=Number(d[2]),a=Number(d[3]),d=Number(d[4]),b=[b,c,a,d],ge(b,b);if(d=be.exec(a))return b=Number(d[1]),c=Number(d[2]),a=Number(d[3]),b=[b,c,a,1],ge(b,b);throw Error(a+" is not a valid color");}
|
||||
function ge(a,b){var c=u(b)?b:[];c[0]=Ob(a[0]+0.5|0,0,255);c[1]=Ob(a[1]+0.5|0,0,255);c[2]=Ob(a[2]+0.5|0,0,255);c[3]=Ob(a[3],0,1);return c};var he=fe("black"),ie=[],je=[0,0,0,1];function ke(a){a=u(a)?a:{};this.a=u(a.color)?a.color:null}ke.prototype.c=k("a");function le(a){this.j=a.opacity;this.k=a.rotateWithView;this.e=a.rotation;this.f=a.scale;this.l=a.se}le.prototype.P=k("e");le.prototype.o=k("f");function me(a){a=u(a)?a:{};this.a=u(a.color)?a.color:null;this.b=a.lineCap;this.d=u(a.lineDash)?a.lineDash:null;this.e=a.lineJoin;this.f=a.miterLimit;this.c=a.width}l=me.prototype;l.oh=k("a");l.qf=k("b");l.ph=k("d");l.rf=k("e");l.vf=k("f");l.qh=k("c");function ne(a){a=u(a)?a:{};this.i=pc("CANVAS");this.c=null;this.b=u(a.fill)?a.fill:null;this.d=a.radius;this.a=u(a.stroke)?a.stroke:null;a=this.i;var b,c;null===this.a?c=0:(b=de(this.a.a),c=this.a.c,u(c)||(c=1));var d=2*(this.d+c)+1;a.height=d;a.width=d;var e=a.getContext("2d");e.arc(d/2,d/2,this.d,0,2*Math.PI,!0);null!==this.b&&(e.fillStyle=de(this.b.a),e.fill());null!==this.a&&(e.strokeStyle=b,e.lineWidth=c,e.stroke());null===this.b?(a=this.c=pc("CANVAS"),a.height=d,a.width=d,e=a.getContext("2d"),
|
||||
e.arc(d/2,d/2,this.d,0,2*Math.PI,!0),e.fillStyle=he,e.fill(),null!==this.a&&(e.strokeStyle=b,e.lineWidth=c,e.stroke())):this.c=a;this.g=[d/2,d/2];this.n=[d,d];le.call(this,{opacity:1,rotateWithView:!1,rotation:0,scale:1,se:void 0})}E(ne,le);l=ne.prototype;l.Mb=k("g");l.kh=k("b");l.de=k("c");l.Sb=k("i");l.ee=ba(2);l.lh=k("d");l.rb=k("n");l.mh=k("a");l.Rd=da;l.fe=da;l.we=da;function oe(a){a=u(a)?a:{};this.d=u(a.fill)?a.fill:null;this.e=u(a.image)?a.image:null;this.b=u(a.stroke)?a.stroke:null;this.c=u(a.text)?a.text:null;this.a=a.zIndex}l=oe.prototype;l.rh=k("d");l.sh=k("e");l.th=k("b");l.uh=k("c");l.Ef=k("a");function pe(a){N.call(this);this.Q=void 0;this.a="geometry";this.g=null;this.f=void 0;this.d=null;K(this,Ed(this.a),this.jc,!1,this);null!=a?a instanceof Ld?this.eb(a):this.U(a):this.eb(null)}E(pe,N);pe.prototype.L=function(){return this.t(this.a)};pe.prototype.getGeometry=pe.prototype.L;l=pe.prototype;l.kf=k("Q");l.jf=k("a");l.Gg=k("g");l.Hg=k("f");l.Mf=function(){this.s()};l.jc=function(){null!==this.d&&(L(this.d),this.d=null);var a=this.L();null!=a&&(this.d=K(a,"change",this.Mf,!1,this))};
|
||||
l.eb=function(a){this.u(this.a,a)};pe.prototype.setGeometry=pe.prototype.eb;pe.prototype.j=function(a){this.g=a;ma(a)||(a=ha(a)?a:[a],a=nd(a));this.f=a;this.s()};pe.prototype.b=function(a){this.Q=a};pe.prototype.k=function(a){fd(this,Ed(this.a),this.jc,!1,this);this.a=a;K(this,Ed(this.a),this.jc,!1,this);this.jc()};
|
||||
function qe(){var a=new ke({color:"rgba(255,255,255,0.4)"}),b=new me({color:"#3399CC",width:1.25}),c=[new oe({image:new ne({fill:a,stroke:b,radius:5}),fill:a,stroke:b})];qe=function(){return c};return c}function re(a,b){var c=a.f;u(c)||(c=qe);return c.call(a,b)}function se(a){ma(a)||(a=ha(a)?a:[a],a=nd(a));return a};function te(a,b,c,d,e,f){Gc.call(this,a,b);this.vectorContext=c;this.frameState=d;this.context=e;this.glContext=f}E(te,Gc);function ue(a){a=u(a)?a:{};this.i=this.d=this.e=this.c=this.b=this.a=null;this.f=u(a.style)?se(a.style):void 0;u(a.features)?ha(a.features)?this.Ub(new Id(Ra(a.features))):this.Ub(a.features):this.Ub(new Id);u(a.map)&&this.setMap(a.map)}l=ue.prototype;l.Wd=function(a){this.a.push(a)};l.Bg=k("a");l.Xd=function(){ve(this)};l.Kf=function(a){a=a.element;this.c[v(a).toString()]=K(a,"change",this.Xd,!1,this);ve(this)};l.Lf=function(a){a=v(a.element).toString();L(this.c[a]);delete this.c[a];ve(this)};
|
||||
l.Eg=function(a){if(null!==this.a){var b=this.f;u(b)||(b=re);var c=a.frameState.view2DState.resolution,d=a.vectorContext,e,f,g;this.a.forEach(function(a){g=b(a,c);if(null!=g)for(f=g.length,e=0;e<f;++e)d.Jc(a,g[e])},this)}};l.Wc=function(a){this.a.remove(a)};function ve(a){null===a.e||a.e.K()}
|
||||
l.Ub=function(a){null!==this.b&&(Ka(this.b,L),this.b=null);null!==this.c&&(Ka(Xb(this.c),L),this.c=null);this.a=a;if(null!==a){this.b=[K(a,"add",this.Kf,!1,this),K(a,"remove",this.Lf,!1,this)];this.c={};a=a.a;var b,c=a.length,d;for(b=0;b<c;++b)d=a[b],this.c[v(d).toString()]=K(d,"change",this.Xd,!1,this)}ve(this)};l.setMap=function(a){null!==this.d&&(L(this.d),this.d=null);ve(this);this.e=a;null!==a&&(this.d=K(a,"postcompose",this.Eg,!1,this),a.K())};l.Fg=function(a){this.i=a;this.f=se(a);ve(this)};
|
||||
l.Cg=k("i");l.Dg=k("f");function we(a,b){var c=a[0],d=a[1],e=b[0],f=b[1],g=e[0],e=e[1],h=f[0],f=f[1],m=h-g,n=f-e,c=0===m&&0===n?0:(m*(c-g)+n*(d-e))/(m*m+n*n||0);0>=c||(1<=c?(g=h,e=f):(g+=c*m,e+=c*n));return[g,e]}function xe(a,b){var c=Pb(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)}function ye(a,b,c){return u(a)?b.replace("{x}",a[0].toFixed(c)).replace("{y}",a[1].toFixed(c)):""}
|
||||
function ze(a,b){for(var c=!0,d=a.length-1;0<=d;--d)if(a[d]!=b[d]){c=!1;break}return c}function Ae(a,b){var c=Math.cos(b),d=Math.sin(b),e=a[1]*c+a[0]*d;a[0]=a[0]*c-a[1]*d;a[1]=e;return a}function Be(a,b){var c=a[0]-b[0],d=a[1]-b[1];return c*c+d*d}function Ce(a,b){return ye(a,"{x}, {y}",b)};function De(a){for(var b=Ee(),c=0,d=a.length;c<d;++c){var e=b,f=a[c];f[0]<e[0]&&(e[0]=f[0]);f[0]>e[2]&&(e[2]=f[0]);f[1]<e[1]&&(e[1]=f[1]);f[1]>e[3]&&(e[3]=f[1])}return b}function Fe(a,b,c){var d=Math.min.apply(null,a),e=Math.min.apply(null,b);a=Math.max.apply(null,a);b=Math.max.apply(null,b);return Ge(d,e,a,b,c)}function He(a,b,c){return u(c)?(c[0]=a[0]-b,c[1]=a[1]-b,c[2]=a[2]+b,c[3]=a[3]+b,c):[a[0]-b,a[1]-b,a[2]+b,a[3]+b]}
|
||||
function Ie(a,b){return u(b)?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a.slice()}function Je(a,b,c){b=b<a[0]?a[0]-b:a[2]<b?b-a[2]:0;a=c<a[1]?a[1]-c:a[3]<c?c-a[3]:0;return b*b+a*a}function Ke(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}function Ee(){return[Infinity,Infinity,-Infinity,-Infinity]}function Ge(a,b,c,d,e){return u(e)?(e[0]=a,e[1]=b,e[2]=c,e[3]=d,e):[a,b,c,d]}function Le(a){return Ge(Infinity,Infinity,-Infinity,-Infinity,a)}
|
||||
function Me(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function Ne(a,b){b[0]<a[0]&&(a[0]=b[0]);b[2]>a[2]&&(a[2]=b[2]);b[1]<a[1]&&(a[1]=b[1]);b[3]>a[3]&&(a[3]=b[3]);return a}function Oe(a,b,c,d,e){for(;c<d;c+=e){var f=a,g=b[c],h=b[c+1];f[0]=Math.min(f[0],g);f[1]=Math.min(f[1],h);f[2]=Math.max(f[2],g);f[3]=Math.max(f[3],h)}return a}function Pe(a){return[a[0],a[1]]}function Qe(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
|
||||
function Re(a,b,c,d){var e=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);c=Math.sin(c);e=[-e,-e,e,e];d=[-d,d,-d,d];var f,g,h;for(f=0;4>f;++f)g=e[f],h=d[f],e[f]=a[0]+g*b-h*c,d[f]=a[1]+g*c+h*b;return Fe(e,d,void 0)}function Se(a){return a[3]-a[1]}function Te(a){return[a[0],a[3]]}function Ue(a){return a[2]-a[0]}function Ve(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function We(a){return a[2]<a[0]||a[3]<a[1]}function Xe(a,b){return u(b)?(b[0]=a[0],b[1]=a[1],b[2]=a[2],b[3]=a[3],b):a}
|
||||
function Ye(a,b){var c=(a[2]-a[0])/2*(b-1),d=(a[3]-a[1])/2*(b-1);a[0]-=c;a[2]+=c;a[1]-=d;a[3]+=d}function Ze(a,b){return Ve(a,b)&&(a[0]==b[2]||a[2]==b[0]||a[1]==b[3]||a[3]==b[1])}function $e(a,b,c){a=[a[0],a[1],a[0],a[3],a[2],a[1],a[2],a[3]];b(a,a,2);return Fe([a[0],a[2],a[4],a[6]],[a[1],a[3],a[5],a[7]],c)};function af(a,b){var c,d;c=0;for(d=b.length;c<d;++c)a.push(b[c])}function bf(a,b,c){var d=a.length;if(a[0]<=b)return 0;if(!(b<=a[d-1]))if(0<c)for(c=1;c<d;++c){if(a[c]<b)return c-1}else if(0>c)for(c=1;c<d;++c){if(a[c]<=b)return c}else for(c=1;c<d;++c){if(a[c]==b)return c;if(a[c]<b)return a[c-1]-b<b-a[c]?c-1:c}return d-1};function cf(a,b,c,d){var e=c[0],f=c[1],g=c[4],h=c[5],m=c[12];c=c[13];var n=u(d)?d:[],p=0,q,r;q=0;for(r=a.length;q<r;q+=b){var s=a[q],z=a[q+1];n[p++]=e*s+g*z+m;n[p++]=f*s+h*z+c}u(d)&&n.length!=p&&(n.length=p);return n};function df(){Ld.call(this);this.b="XY";this.a=2;this.h=null}E(df,Ld);function ef(a){if("XY"==a)return 2;if("XYZ"==a||"XYM"==a)return 3;if("XYZM"==a)return 4;throw Error("unsupported layout: "+a);}l=df.prototype;l.Sa=od;l.p=function(a){if(this.e!=this.c){var b=this.h,c=this.h.length,d=this.a,e=Le(this.extent);this.extent=Oe(e,b,0,c,d);this.e=this.c}return Xe(this.extent,a)};l.ff=function(){return this.h.slice(0,this.a)};l.of=function(){return this.h.slice(this.h.length-this.a)};l.pf=k("b");
|
||||
l.Xa=function(a){this.j!=this.c&&($b(this.f),this.i=0,this.j=this.c);if(0>a||0!==this.i&&a<=this.i)return this;var b=a.toString();if(this.f.hasOwnProperty(b))return this.f[b];var c=this.lb(a);if(c.h.length<this.h.length)return this.f[b]=c;this.i=a;return this};l.lb=function(){return this};function ff(a,b,c){a.a=ef(b);a.b=b;a.h=c}
|
||||
function gf(a,b,c,d){if(u(b))c=ef(b);else{for(b=0;b<d;++b){if(0===c.length){a.b="XY";a.a=2;return}c=c[0]}c=c.length;if(2==c)b="XY";else if(3==c)b="XYZ";else if(4==c)b="XYZM";else throw Error("unsupported stride: "+c);}a.b=b;a.a=c}l.transform=function(a){null!==this.h&&(a(this.h,this.h,this.a),this.s())};function hf(a,b,c){var d=a.h;return null===d?null:cf(d,a.a,b,c)};function jf(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],m=a[b+1],e=e+(g*h-f*m),f=h,g=m;return e/2}function kf(a,b,c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],e=e+jf(a,b,h,d);b=h}return e};function lf(a,b,c,d){a=c-a;b=d-b;return a*a+b*b};function mf(a,b,c,d,e,f,g){var h=a[b],m=a[b+1],n=a[c]-h,p=a[c+1]-m;if(0!==n||0!==p)if(f=((e-h)*n+(f-m)*p)/(n*n+p*p),1<f)b=c;else if(0<f){for(e=0;e<d;++e)g[e]=a[b+e]+f*(a[c+e]-a[b+e]);g.length=d;return}for(e=0;e<d;++e)g[e]=a[b+e];g.length=d}function nf(a,b,c,d,e){var f=a[b],g=a[b+1];for(b+=d;b<c;b+=d){var h=a[b],m=a[b+1],f=lf(f,g,h,m);f>e&&(e=f);f=h;g=m}return e}function of(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];e=nf(a,b,h,d,e);b=h}return e}
|
||||
function pf(a,b,c,d,e,f,g,h,m,n,p){if(b==c)return n;var q;if(0===e){q=lf(g,h,a[b],a[b+1]);if(q<n){for(p=0;p<d;++p)m[p]=a[b+p];m.length=d;return q}return n}for(var r=u(p)?p:[NaN,NaN],s=b+d;s<c;)if(mf(a,s-d,s,d,g,h,r),q=lf(g,h,r[0],r[1]),q<n){n=q;for(p=0;p<d;++p)m[p]=r[p];m.length=d;s+=d}else s+=d*Math.max((Math.sqrt(q)-Math.sqrt(n))/e|0,1);if(f&&(mf(a,c-d,b,d,g,h,r),q=lf(g,h,r[0],r[1]),q<n)){n=q;for(p=0;p<d;++p)m[p]=r[p];m.length=d}return n}
|
||||
function qf(a,b,c,d,e,f,g,h,m,n,p){p=u(p)?p:[NaN,NaN];var q,r;q=0;for(r=c.length;q<r;++q){var s=c[q];n=pf(a,b,s,d,e,f,g,h,m,n,p);b=s}return n};function rf(a,b){var c=0,d,e;d=0;for(e=b.length;d<e;++d)a[c++]=b[d];return c}function sf(a,b,c,d){var e,f;e=0;for(f=c.length;e<f;++e){var g=c[e],h;for(h=0;h<d;++h)a[b++]=g[h]}return b}function tf(a,b,c,d,e){e=u(e)?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g)b=sf(a,b,c[g],d),e[f++]=b;e.length=f;return e};function uf(a,b,c,d,e){e=u(e)?e:[];for(var f=0;b<c;b+=d)e[f++]=a.slice(b,b+d);e.length=f;return e}function vf(a,b,c,d,e){e=u(e)?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g){var m=c[g];e[f++]=uf(a,b,m,d,e[f]);b=m}e.length=f;return e};function wf(a,b,c,d,e,f,g){var h=(c-b)/d;if(3>h){for(;b<c;b+=d)f[g++]=a[b],f[g++]=a[b+1];return g}var m=Array(h);m[0]=1;m[h-1]=1;c=[b,c-d];for(var n=0,p;0<c.length;){var q=c.pop(),r=c.pop(),s=0,z=a[r],x=a[r+1],w=a[q],B=a[q+1];for(p=r+d;p<q;p+=d){var A;A=a[p];var D=a[p+1],H=z,P=x,J=w-H,U=B-P;if(0!==J||0!==U){var Z=((A-H)*J+(D-P)*U)/(J*J+U*U);1<Z?(H=w,P=B):0<Z&&(H+=J*Z,P+=U*Z)}A=lf(A,D,H,P);A>s&&(n=p,s=A)}s>e&&(m[(n-b)/d]=1,r+d<n&&c.push(r,n),n+d<q&&c.push(n,q))}for(p=0;p<h;++p)m[p]&&(f[g++]=a[b+p*
|
||||
d],f[g++]=a[b+p*d+1]);return g}
|
||||
function xf(a,b,c,d,e,f,g,h){var m,n;m=0;for(n=c.length;m<n;++m){var p=c[m];a:{var q=a,r=p,s=d,z=e,x=f;if(b!=r){var w=z*Math.round(q[b]/z),B=z*Math.round(q[b+1]/z);b+=s;x[g++]=w;x[g++]=B;var A=void 0,D=void 0;do if(A=z*Math.round(q[b]/z),D=z*Math.round(q[b+1]/z),b+=s,b==r){x[g++]=A;x[g++]=D;break a}while(A==w&&D==B);for(;b<r;){var H,P;H=z*Math.round(q[b]/z);P=z*Math.round(q[b+1]/z);b+=s;if(H!=A||P!=D){var J=A-w,U=D-B,Z=H-w,na=P-B;J*na==U*Z&&(0>J&&Z<J||J==Z||0<J&&Z>J)&&(0>U&&na<U||U==na||0<U&&na>U)||
|
||||
(x[g++]=A,x[g++]=D,w=A,B=D);A=H;D=P}}x[g++]=A;x[g++]=D}}h.push(g);b=p}return g};function yf(a,b){df.call(this);this.d=this.g=-1;this.J(a,b)}E(yf,df);l=yf.prototype;l.I=function(){var a=new yf(null);zf(a,this.b,this.h.slice());return a};l.da=function(a,b,c,d){if(d<Je(this.p(),a,b))return d;this.d!=this.c&&(this.g=Math.sqrt(nf(this.h,0,this.h.length,this.a,0)),this.d=this.c);return pf(this.h,0,this.h.length,this.a,this.g,!0,a,b,c,d)};l.Pg=function(){return jf(this.h,0,this.h.length,this.a)};l.w=function(){return uf(this.h,0,this.h.length,this.a)};
|
||||
l.lb=function(a){var b=[];b.length=wf(this.h,0,this.h.length,this.a,a,b,0);a=new yf(null);zf(a,"XY",b);return a};l.B=ba("LinearRing");l.J=function(a,b){null===a?zf(this,"XY",null):(gf(this,b,a,1),null===this.h&&(this.h=[]),this.h.length=sf(this.h,0,a,this.a),this.s())};function zf(a,b,c){ff(a,b,c);a.s()};function Af(a,b){df.call(this);this.J(a,b)}E(Af,df);l=Af.prototype;l.I=function(){var a=new Af(null);Bf(a,this.b,this.h.slice());return a};l.da=function(a,b,c,d){var e=this.h;a=lf(a,b,e[0],e[1]);if(a<d){d=this.a;for(b=0;b<d;++b)c[b]=e[b];c.length=d;return a}return d};l.w=function(){return this.h.slice()};l.p=function(a){if(this.e!=this.c){var b=this.h,c=b[0],b=b[1];this.extent=Ge(c,b,c,b,this.extent);this.e=this.c}return Xe(this.extent,a)};l.B=ba("Point");
|
||||
l.J=function(a,b){null===a?Bf(this,"XY",null):(gf(this,b,a,0),null===this.h&&(this.h=[]),this.h.length=rf(this.h,a),this.s())};function Bf(a,b,c){ff(a,b,c);a.s()};function Cf(a,b,c,d,e,f){for(var g=!1,h=a[c-d],m=a[c-d+1];b<c;b+=d){var n=a[b],p=a[b+1];m>f!=p>f&&e<(n-h)*(f-m)/(p-m)+h&&(g=!g);h=n;m=p}return g}function Df(a,b,c,d,e,f){if(0===c.length||!Cf(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if(Cf(a,c[b-1],c[b],d,e,f))return!1;return!0};function Ef(a,b,c,d,e,f,g){var h,m,n,p,q,r=e[f+1],s=[],z=c[0];n=a[z-d];q=a[z-d+1];for(h=b;h<z;h+=d){p=a[h];m=a[h+1];if(r<=q&&m<=r||q<=r&&r<=m)n=(r-q)/(m-q)*(p-n)+n,s.push(n);n=p;q=m}z=NaN;q=-Infinity;s.sort();n=s[0];h=1;for(m=s.length;h<m;++h){p=s[h];var x=Math.abs(p-n);x>q&&(n=(n+p)/2,Df(a,b,c,d,n,r)&&(z=n,q=x));n=p}isNaN(z)&&(z=e[f]);return u(g)?(g.push(z,r),g):[z,r]};function Ff(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],m=a[b+1],e=e+(h-f)*(m+g),f=h,g=m;return 0<e}function Gf(a,b,c){var d=0,e,f;e=0;for(f=b.length;e<f;++e){var g=b[e],d=Ff(a,d,g,c);if(0===e?!d:d)return!1;d=g}return!0}function Hf(a,b,c,d){var e,f;e=0;for(f=c.length;e<f;++e){var g=c[e],h=Ff(a,b,g,d);if(0===e?!h:h)for(var h=a,m=g,n=d;b<m-n;){var p;for(p=0;p<n;++p){var q=h[b+p];h[b+p]=h[m-n+p];h[m-n+p]=q}b+=n;m-=n}b=g}return b};function If(a,b){df.call(this);this.d=[];this.k=-1;this.l=null;this.r=this.n=this.o=-1;this.g=null;this.J(a,b)}E(If,df);l=If.prototype;l.Re=function(a){null===this.h?this.h=a.h.slice():af(this.h,a.h);this.d.push(this.h.length);this.s()};l.I=function(){var a=new If(null);Jf(a,this.b,this.h.slice(),this.d.slice());return a};
|
||||
l.da=function(a,b,c,d){if(d<Je(this.p(),a,b))return d;this.n!=this.c&&(this.o=Math.sqrt(of(this.h,0,this.d,this.a,0)),this.n=this.c);return qf(this.h,0,this.d,this.a,this.o,!0,a,b,c,d)};l.Sa=function(a,b){return Df(Kf(this),0,this.d,this.a,a,b)};l.Sg=function(){return kf(Kf(this),0,this.d,this.a)};l.w=function(){return vf(this.h,0,this.d,this.a)};function Lf(a){if(a.k!=a.c){var b=Qe(a.p());a.l=Ef(Kf(a),0,a.d,a.a,b,0);a.k=a.c}return a.l}l.mf=function(){return new Af(Lf(this))};
|
||||
l.tf=function(a){if(0>a||this.d.length<=a)return null;var b=new yf(null);zf(b,this.b,this.h.slice(0===a?0:this.d[a-1],this.d[a]));return b};l.Id=function(){var a=this.b,b=this.h,c=this.d,d=[],e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],m=new yf(null);zf(m,a,b.slice(e,h));d.push(m);e=h}return d};function Kf(a){if(a.r!=a.c){var b=a.h;Gf(b,a.d,a.a)?a.g=b:(a.g=b.slice(),a.g.length=Hf(a.g,0,a.d,a.a));a.r=a.c}return a.g}
|
||||
l.lb=function(a){var b=[],c=[];b.length=xf(this.h,0,this.d,this.a,Math.sqrt(a),b,0,c);a=new If(null);Jf(a,"XY",b,c);return a};l.B=ba("Polygon");l.J=function(a,b){if(null===a)Jf(this,"XY",null,this.d);else{gf(this,b,a,2);null===this.h&&(this.h=[]);var c=tf(this.h,0,a,this.a,this.d);this.h.length=0===c.length?0:c[c.length-1];this.s()}};function Jf(a,b,c,d){ff(a,b,c);a.d=d;a.s()};/*
|
||||
|
||||
Latitude/longitude spherical geodesy formulae taken from
|
||||
http://www.movable-type.co.uk/scripts/latlong.html
|
||||
Licenced under CC-BY-3.0.
|
||||
*/
|
||||
function Mf(a){this.radius=a}function Nf(a,b,c){var d=Qb(b[1]),e=Qb(c[1]),f=(e-d)/2;b=Qb(c[0]-b[0])/2;d=Math.sin(f)*Math.sin(f)+Math.sin(b)*Math.sin(b)*Math.cos(d)*Math.cos(e);return 2*a.radius*Math.atan2(Math.sqrt(d),Math.sqrt(1-d))};var Of=new Mf(6370997);var Pf={},Qf="object"==typeof Proj4js;Pf.degrees=2*Math.PI*Of.radius/360;Pf.ft=0.3048;Pf.m=1;function Rf(a){this.a=a.code;this.ma=a.units;this.k=u(a.extent)?a.extent:null;this.c=u(a.axisOrientation)?a.axisOrientation:"enu";this.j=u(a.global)?a.global:!1;this.f=null}Rf.prototype.g=k("a");Rf.prototype.p=k("k");Rf.prototype.l=k("ma");Rf.prototype.b=function(){return Pf[this.ma]};function Sf(a){return a.c}
|
||||
function Tf(a,b){var c={units:a.units,axisOrientation:a.axis};ec(c,b);Rf.call(this,c);this.i=a;this.e=null}E(Tf,Rf);Tf.prototype.b=function(){var a=this.i.to_meter;u(a)||(a=Pf[this.ma]);return a};
|
||||
Tf.prototype.d=function(a,b){if("degrees"==this.ma)return a;null===this.e&&(this.e=Uf(this,Vf({code:"EPSG:4326",extent:null})));var c=[b[0]-a/2,b[1],b[0]+a/2,b[1],b[0],b[1]-a/2,b[0],b[1]+a/2],c=this.e(c,c,2),d=Nf(Of,c.slice(0,2),c.slice(2,4)),c=Nf(Of,c.slice(4,6),c.slice(6,8)),d=(d+c)/2;"ft"==this.ma&&(d/=0.3048);return d};function Wf(a){return a.i}var Xf={},Yf={},$f={};function ag(a){bg(a);Ka(a,function(b){Ka(a,function(a){b!==a&&cg(b,a,dg)})})}
|
||||
function eg(){var a=fg,b=gg,c=hg;Ka(ig,function(d){Ka(a,function(a){cg(d,a,b);cg(a,d,c)})})}function jg(a){Yf[a.a]=a;cg(a,a,dg)}function bg(a){Ka(a,function(a){jg(a)})}function kg(a){return null!=a?ka(a)?lg(a):a:lg("EPSG:3857")}function cg(a,b,c){a=a.a;b=b.a;a in $f||($f[a]={});$f[a][b]=c}function lg(a){var b;a instanceof Rf?b=a:ka(a)?(b=Yf[a],Qf&&!u(b)&&(b=Vf({code:a,extent:null})),u(b)||(b=null)):b=null;return b}
|
||||
function Vf(a){var b=a.code,c=Xf[b];if(!u(c)){var d=new Proj4js.Proj(b),e=d.srsCode,c=Xf[e];u(c)||(a=cc(a),a.code=e,c=new Tf(d,a),Xf[e]=c);Xf[b]=c}return c}function mg(a,b){var c=lg(a),d=lg(b);return Uf(c,d)}
|
||||
function Uf(a,b){var c=a.a,d=b.a,e;c in $f&&d in $f[c]&&(e=$f[c][d]);if(Qf&&!u(e)){var f=Wf(a instanceof Tf?a:Vf({code:c,extent:null})),g=Wf(b instanceof Tf?b:Vf({code:d,extent:null}));e=function(a,b,c){var d=a.length;c=1<c?c:2;u(b)||(b=2<c?a.slice():Array(d));for(var e,r=0;r<d;r+=c)e=new Proj4js.Point(a[r],a[r+1]),e=Proj4js.transform(f,g,e),b[r]=e.x,b[r+1]=e.y;return b};cg(a,b,e)}u(e)||(e=ng);return e}function ng(a,b){if(u(b)&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}
|
||||
function dg(a,b){var c;if(u(b)){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c};var og=new Mf(6378137);function O(a){N.call(this);a=u(a)?a:{};this.a=null;this.d=ng;this.b=void 0;K(this,Ed("projection"),this.Ig,!1,this);K(this,Ed("tracking"),this.Jg,!1,this);u(a.projection)&&this.l(lg(a.projection));u(a.trackingOptions)&&this.n(a.trackingOptions);this.f(u(a.tracking)?a.tracking:!1)}E(O,N);l=O.prototype;l.A=function(){this.f(!1);O.C.A.call(this)};l.Ig=function(){var a=this.j();null!=a&&(this.d=Uf(lg("EPSG:4326"),a),null===this.a||this.u("position",this.d(this.a)))};
|
||||
l.Jg=function(){if(I.wd){var a=this.k();a&&!u(this.b)?this.b=t.navigator.geolocation.watchPosition(y(this.Rh,this),y(this.Sh,this),this.g()):!a&&u(this.b)&&(t.navigator.geolocation.clearWatch(this.b),this.b=void 0)}};
|
||||
l.Rh=function(a){var b=a.coords;this.u("accuracy",b.accuracy);this.u("altitude",null===b.altitude?void 0:b.altitude);this.u("altitudeAccuracy",null===b.altitudeAccuracy?void 0:b.altitudeAccuracy);this.u("heading",null===b.heading?void 0:Qb(b.heading));null===this.a?this.a=[b.longitude,b.latitude]:(this.a[0]=b.longitude,this.a[1]=b.latitude);a=this.d(this.a);this.u("position",a);this.u("speed",null===b.speed?void 0:b.speed);a=this.a;var c=b.accuracy,d=u(void 0)?void 0:32,b=[],e;for(e=0;e<d;++e){var f=
|
||||
2*Math.PI*e/d,g=Qb(a[1]),h=c/og.radius,m=Math.asin(Math.sin(g)*Math.cos(h)+Math.cos(g)*Math.sin(h)*Math.cos(f));Sa(b,[180*(Qb(a[0])+Math.atan2(Math.sin(f)*Math.sin(h)*Math.cos(g),Math.cos(h)-Math.sin(g)*Math.sin(m)))/Math.PI,180*m/Math.PI])}b.push(b[0],b[1]);a=new If(null);Jf(a,"XY",b,[b.length]);a.transform(this.d);this.u("accuracyGeometry",a);this.s()};l.Sh=function(a){a.type="error";M(this,a)};l.af=function(){return this.t("accuracy")};O.prototype.getAccuracy=O.prototype.af;
|
||||
O.prototype.o=function(){return this.t("accuracyGeometry")||null};O.prototype.getAccuracyGeometry=O.prototype.o;O.prototype.r=function(){return this.t("altitude")};O.prototype.getAltitude=O.prototype.r;O.prototype.q=function(){return this.t("altitudeAccuracy")};O.prototype.getAltitudeAccuracy=O.prototype.q;O.prototype.F=function(){return this.t("heading")};O.prototype.getHeading=O.prototype.F;O.prototype.M=function(){return this.t("position")};O.prototype.getPosition=O.prototype.M;O.prototype.j=function(){return this.t("projection")};
|
||||
O.prototype.getProjection=O.prototype.j;O.prototype.v=function(){return this.t("speed")};O.prototype.getSpeed=O.prototype.v;O.prototype.k=function(){return this.t("tracking")};O.prototype.getTracking=O.prototype.k;O.prototype.g=function(){return this.t("trackingOptions")};O.prototype.getTrackingOptions=O.prototype.g;O.prototype.l=function(a){this.u("projection",a)};O.prototype.setProjection=O.prototype.l;O.prototype.f=function(a){this.u("tracking",a)};O.prototype.setTracking=O.prototype.f;
|
||||
O.prototype.n=function(a){this.u("trackingOptions",a)};O.prototype.setTrackingOptions=O.prototype.n;function pg(a,b){wd.call(this);this.a=a;this.state=b}E(pg,wd);pg.prototype.d=function(){return v(this).toString()};pg.prototype.j=k("a");function qg(a,b,c,d,e){pg.call(this,a,b);this.g=c;this.c=new Image;null!==d&&(this.c.crossOrigin=d);this.f={};this.e=null;this.n=e}E(qg,pg);qg.prototype.b=function(a){if(u(a)){var b=v(a);if(b in this.f)return this.f[b];a=Zb(this.f)?this.c:this.c.cloneNode(!1);return this.f[b]=a}return this.c};qg.prototype.d=k("g");qg.prototype.k=function(){this.state=3;Ka(this.e,L);this.e=null;M(this,"change")};
|
||||
qg.prototype.l=function(){u(this.c.naturalWidth)||(this.c.naturalWidth=this.c.width,this.c.naturalHeight=this.c.height);this.state=this.c.naturalWidth&&this.c.naturalHeight?2:4;Ka(this.e,L);this.e=null;M(this,"change")};function rg(){N.call(this);this.k=[0,0]}E(rg,N);rg.prototype.N=ba(null);rg.prototype.Xc=ba(!1);function sg(a,b){a.k[1]+=b};function tg(a){return 1-Math.pow(1-a,3)};function ug(a){return 3*a*a-2*a*a*a}function vg(a){return a}function wg(a){return 0.5>a?ug(2*a):1-ug(2*(a-0.5))};function xg(a){var b=a.source,c=u(a.start)?a.start:wa(),d=b[0],e=b[1],f=u(a.duration)?a.duration:1E3,g=u(a.easing)?a.easing:ug;return function(a,b){if(b.time<c)return b.animate=!0,b.viewHints[0]+=1,!0;if(b.time<c+f){var n=1-g((b.time-c)/f),p=d-b.view2DState.center[0],q=e-b.view2DState.center[1];b.animate=!0;b.view2DState.center[0]+=n*p;b.view2DState.center[1]+=n*q;b.viewHints[0]+=1;return!0}return!1}}
|
||||
function yg(a){var b=a.rotation,c=u(a.start)?a.start:wa(),d=u(a.duration)?a.duration:1E3,e=u(a.easing)?a.easing:ug;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[0]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),m=b-g.view2DState.rotation;g.animate=!0;g.view2DState.rotation+=h*m;g.viewHints[0]+=1;return!0}return!1}}
|
||||
function zg(a){var b=a.resolution,c=u(a.start)?a.start:wa(),d=u(a.duration)?a.duration:1E3,e=u(a.easing)?a.easing:ug;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[0]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),m=b-g.view2DState.resolution;g.animate=!0;g.view2DState.resolution+=h*m;g.viewHints[0]+=1;return!0}return!1}};function Ag(a,b,c){this.e=a;this.b=b;this.f=c;this.a=[];this.c=this.d=0}Ag.prototype.update=function(a,b){this.a.push(a,b,wa())};function Bg(a,b){var c=a.e,d=a.c,e=a.b,f=Math.log(a.b/a.c)/a.e;return xg({source:b,duration:f,easing:function(a){return d*(Math.exp(c*a*f)-1)/(e-d)}})};function Cg(a){if("function"==typeof a.wa)return a.wa();if(ka(a))return a.split("");if(ia(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Xb(a)}function Dg(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ia(a)||ka(a))Ka(a,b,c);else{var d;if("function"==typeof a.qa)d=a.qa();else if("function"!=typeof a.wa)if(ia(a)||ka(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=Yb(a);else d=void 0;for(var e=Cg(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)}};function Eg(a,b){this.c={};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)Fg(this,arguments[d],arguments[d+1])}else if(a){a instanceof Eg?(c=a.qa(),d=a.wa()):(c=Yb(a),d=Xb(a));for(var e=0;e<c.length;e++)Fg(this,c[e],d[e])}}l=Eg.prototype;l.G=0;l.pd=0;l.pa=k("G");l.wa=function(){Gg(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.c[this.a[b]]);return a};l.qa=function(){Gg(this);return this.a.concat()};l.W=function(){return 0==this.G};
|
||||
l.clear=function(){this.c={};this.pd=this.G=this.a.length=0};l.remove=function(a){return Hg(this.c,a)?(delete this.c[a],this.G--,this.pd++,this.a.length>2*this.G&&Gg(this),!0):!1};function Gg(a){if(a.G!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Hg(a.c,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.G!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],Hg(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function Ig(a,b){return Hg(a.c,b)?a.c[b]:void 0}
|
||||
function Fg(a,b,c){Hg(a.c,b)||(a.G++,a.a.push(b),a.pd++);a.c[b]=c}l.I=function(){return new Eg(this)};function Hg(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Jg=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?\x3d[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Kg(a){if(Lg){Lg=!1;var b=t.location;if(b){var c=b.href;if(c&&(c=(c=Kg(c)[3]||null)&&decodeURIComponent(c))&&c!=b.hostname)throw Lg=!0,Error();}}return a.match(Jg)}var Lg=tb;function Mg(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")}
|
||||
function Ng(a,b,c){if(ha(b))for(var d=0;d<b.length;d++)Ng(a,String(b[d]),c);else null!=b&&c.push("\x26",a,""===b?"":"\x3d",encodeURIComponent(String(b)))}function Og(a,b){for(var c in b)Ng(c,b[c],a);return a};function Pg(a,b){var c;if(a instanceof Pg)this.Ya=u(b)?b:a.Ya,Qg(this,a.Na),c=a.gb,Rg(this),this.gb=c,c=a.va,Rg(this),this.va=c,Sg(this,a.tb),c=a.ta,Rg(this),this.ta=c,Tg(this,a.a.I()),c=a.Ua,Rg(this),this.Ua=c;else if(a&&(c=Kg(String(a)))){this.Ya=!!b;Qg(this,c[1]||"",!0);var d=c[2]||"";Rg(this);this.gb=d?decodeURIComponent(d):"";d=c[3]||"";Rg(this);this.va=d?decodeURIComponent(d):"";Sg(this,c[4]);d=c[5]||"";Rg(this);this.ta=d?decodeURIComponent(d):"";Tg(this,c[6]||"",!0);c=c[7]||"";Rg(this);this.Ua=
|
||||
c?decodeURIComponent(c):""}else this.Ya=!!b,this.a=new Ug(null,0,this.Ya)}l=Pg.prototype;l.Na="";l.gb="";l.va="";l.tb=null;l.ta="";l.Ua="";l.ig=!1;l.Ya=!1;
|
||||
l.toString=function(){var a=[],b=this.Na;b&&a.push(Vg(b,Wg),":");if(b=this.va){a.push("//");var c=this.gb;c&&a.push(Vg(c,Wg),"@");a.push(encodeURIComponent(String(b)));b=this.tb;null!=b&&a.push(":",String(b))}if(b=this.ta)this.va&&"/"!=b.charAt(0)&&a.push("/"),a.push(Vg(b,"/"==b.charAt(0)?Xg:Yg));(b=this.a.toString())&&a.push("?",b);(b=this.Ua)&&a.push("#",Vg(b,Zg));return a.join("")};l.I=function(){return new Pg(this)};
|
||||
function Qg(a,b,c){Rg(a);a.Na=c?b?decodeURIComponent(b):"":b;a.Na&&(a.Na=a.Na.replace(/:$/,""))}function Sg(a,b){Rg(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.tb=b}else a.tb=null}function Tg(a,b,c){Rg(a);b instanceof Ug?(a.a=b,$g(a.a,a.Ya)):(c||(b=Vg(b,ah)),a.a=new Ug(b,0,a.Ya))}function bh(a,b,c){Rg(a);ha(c)||(c=[String(c)]);ch(a.a,b,c)}function Rg(a){if(a.ig)throw Error("Tried to modify a read-only Uri");}
|
||||
function dh(a){return a instanceof Pg?a.I():new Pg(a,void 0)}
|
||||
function eh(a,b){a instanceof Pg||(a=dh(a));b instanceof Pg||(b=dh(b));var c=a,d=b,e=c.I(),f=!!d.Na;f?Qg(e,d.Na):f=!!d.gb;if(f){var g=d.gb;Rg(e);e.gb=g}else f=!!d.va;f?(g=d.va,Rg(e),e.va=g):f=null!=d.tb;g=d.ta;if(f)Sg(e,d.tb);else if(f=!!d.ta)if("/"!=g.charAt(0)&&(c.va&&!c.ta?g="/"+g:(c=e.ta.lastIndexOf("/"),-1!=c&&(g=e.ta.substr(0,c+1)+g))),".."==g||"."==g)g="";else if(-1!=g.indexOf("./")||-1!=g.indexOf("/.")){for(var c=0==g.lastIndexOf("/",0),g=g.split("/"),h=[],m=0;m<g.length;){var n=g[m++];"."==
|
||||
n?c&&m==g.length&&h.push(""):".."==n?((1<h.length||1==h.length&&""!=h[0])&&h.pop(),c&&m==g.length&&h.push("")):(h.push(n),c=!0)}g=h.join("/")}f?(c=g,Rg(e),e.ta=c):f=""!==d.a.toString();f?Tg(e,d.a.toString()?decodeURIComponent(d.a.toString()):""):f=!!d.Ua;f&&(d=d.Ua,Rg(e),e.Ua=d);return e}function Vg(a,b){return ka(a)?encodeURI(a).replace(b,fh):null}function fh(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Wg=/[#\/\?@]/g,Yg=/[\#\?:]/g,Xg=/[\#\?]/g,ah=/[\#\?@]/g,Zg=/#/g;
|
||||
function Ug(a,b,c){this.a=a||null;this.c=!!c}function gh(a){if(!a.R&&(a.R=new Eg,a.G=0,a.a))for(var b=a.a.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),e=null,f=null;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=hh(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}l=Ug.prototype;l.R=null;l.G=null;l.pa=function(){gh(this);return this.G};
|
||||
l.add=function(a,b){gh(this);this.a=null;a=hh(this,a);var c=Ig(this.R,a);c||Fg(this.R,a,c=[]);c.push(b);this.G++;return this};l.remove=function(a){gh(this);a=hh(this,a);return Hg(this.R.c,a)?(this.a=null,this.G-=Ig(this.R,a).length,this.R.remove(a)):!1};l.clear=function(){this.R=this.a=null;this.G=0};l.W=function(){gh(this);return 0==this.G};l.qa=function(){gh(this);for(var a=this.R.wa(),b=this.R.qa(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
|
||||
l.wa=function(a){gh(this);var b=[];if(a){var c=a;gh(this);c=hh(this,c);Hg(this.R.c,c)&&(b=Qa(b,Ig(this.R,hh(this,a))))}else for(a=this.R.wa(),c=0;c<a.length;c++)b=Qa(b,a[c]);return b};function ch(a,b,c){a.remove(b);0<c.length&&(a.a=null,Fg(a.R,hh(a,b),Ra(c)),a.G+=c.length)}
|
||||
l.toString=function(){if(this.a)return this.a;if(!this.R)return"";for(var a=[],b=this.R.qa(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.wa(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="\x3d"+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("\x26")};l.I=function(){var a=new Ug;a.a=this.a;this.R&&(a.R=this.R.I(),a.G=this.G);return a};function hh(a,b){var c=String(b);a.c&&(c=c.toLowerCase());return c}
|
||||
function $g(a,b){b&&!a.c&&(gh(a),a.a=null,Dg(a.R,function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),ch(this,e,a))},a));a.c=b};function ih(a,b,c){Bc.call(this);this.d=a;this.b=c;this.a=b||window;this.c=y(this.Dd,this)}E(ih,Bc);l=ih.prototype;l.Q=null;l.od=!1;l.start=function(){jh(this);this.od=!1;var a=kh(this),b=lh(this);a&&!b&&this.a.mozRequestAnimationFrame?(this.Q=K(this.a,"MozBeforePaint",this.c),this.a.mozRequestAnimationFrame(null),this.od=!0):this.Q=a&&b?a.call(this.a,this.c):this.a.setTimeout(sd(this.c),20)};
|
||||
function jh(a){if(null!=a.Q){var b=kh(a),c=lh(a);b&&!c&&a.a.mozRequestAnimationFrame?L(a.Q):b&&c?c.call(a.a,a.Q):a.a.clearTimeout(a.Q)}a.Q=null}l.Dd=function(){this.od&&this.Q&&L(this.Q);this.Q=null;this.d.call(this.b,wa())};l.A=function(){jh(this);ih.C.A.call(this)};function kh(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null}
|
||||
function lh(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};var mh;
|
||||
function nh(){var a=t.MessageChannel;"undefined"===typeof a&&("undefined"!==typeof window&&window.postMessage&&window.addEventListener)&&(a=function(){var a=document.createElement("iframe");a.style.display="none";a.src="";document.body.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d=b.location.protocol+"//"+b.location.host,a=y(function(a){if(a.origin==d||a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);
|
||||
this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a){var b=new a,c={},d=c;b.port1.onmessage=function(){c=c.next;var a=c.zd;c.zd=null;a()};return function(a){d.next={zd:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?function(a){var b=document.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:
|
||||
function(a){t.setTimeout(a,0)}};function oh(a){wd.call(this);this.Xb=a||window;this.ic=K(this.Xb,"resize",this.Zf,!1,this);this.Za=lc(this.Xb||window)}E(oh,wd);l=oh.prototype;l.ic=null;l.Xb=null;l.Za=null;l.A=function(){oh.C.A.call(this);this.ic&&(L(this.ic),this.ic=null);this.Za=this.Xb=null};l.Zf=function(){var a=lc(this.Xb||window);a==this.Za||a&&this.Za&&a.width==this.Za.width&&a.height==this.Za.height||(this.Za=a,M(this,"resize"))};function ph(a,b,c,d,e){if(!(F||tb&&Gb("525")))return!0;if(jb&&e)return qh(a);if(e&&!d||!c&&(17==b||18==b||jb&&91==b))return!1;if(tb&&d&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(F&&d&&b==a)return!1;switch(a){case 13:return!(F&&F&&9<=Ib);case 27:return!tb}return qh(a)}
|
||||
function qh(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||tb&&0==a)return!0;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}}function rh(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function th(a,b){wd.call(this);a&&uh(this,a,b)}E(th,wd);l=th.prototype;l.Qb=null;l.mc=null;l.Tc=null;l.nc=null;l.X=-1;l.Ja=-1;l.Ec=!1;
|
||||
var vh={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},wh={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},xh=F||tb&&Gb("525"),yh=jb&&sb;
|
||||
th.prototype.a=function(a){tb&&(17==this.X&&!a.Pb||18==this.X&&!a.$||jb&&91==this.X&&!a.Sc)&&(this.Ja=this.X=-1);-1==this.X&&(a.Pb&&17!=a.xa?this.X=17:a.$&&18!=a.xa?this.X=18:a.Sc&&91!=a.xa&&(this.X=91));xh&&!ph(a.xa,this.X,a.ya,a.Pb,a.$)?this.handleEvent(a):(this.Ja=sb?rh(a.xa):a.xa,yh&&(this.Ec=a.$))};th.prototype.c=function(a){this.Ja=this.X=-1;this.Ec=a.$};
|
||||
th.prototype.handleEvent=function(a){var b=a.H,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.Ja,d=13!=c&&27!=c?b.keyCode:0):tb&&"keypress"==a.type?(c=this.Ja,d=0<=b.charCode&&63232>b.charCode&&qh(c)?b.charCode:0):rb?(c=this.Ja,d=qh(c)?b.keyCode:0):(c=b.keyCode||this.Ja,d=b.charCode||0,yh&&(e=this.Ec),jb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in vh?f=vh[c]:25==c&&a.ya&&(f=9):g&&g in wh&&(f=wh[g]);a=f==this.X;this.X=f;b=new zh(f,d,a,b);b.$=e;M(this,b)};
|
||||
function uh(a,b,c){a.nc&&Ah(a);a.Qb=b;a.mc=K(a.Qb,"keypress",a,c);a.Tc=K(a.Qb,"keydown",a.a,c,a);a.nc=K(a.Qb,"keyup",a.c,c,a)}function Ah(a){a.mc&&(L(a.mc),L(a.Tc),L(a.nc),a.mc=null,a.Tc=null,a.nc=null);a.Qb=null;a.X=-1;a.Ja=-1}th.prototype.A=function(){th.C.A.call(this);Ah(this)};function zh(a,b,c,d){d&&Pc(this,d,void 0);this.type="key";this.xa=a;this.Rc=b;this.a=c}E(zh,Oc);function Bh(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}l=Bh.prototype;l.I=function(){return new Bh(this.top,this.right,this.bottom,this.left)};l.contains=function(a){return this&&a?a instanceof Bh?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
|
||||
l.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};l.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};l.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
|
||||
l.scale=function(a,b){var c=la(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function Ch(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}l=Ch.prototype;l.I=function(){return new Ch(this.left,this.top,this.width,this.height)};l.contains=function(a){return a instanceof Ch?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};
|
||||
l.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
|
||||
l.scale=function(a,b){var c=la(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Dh(a,b){var c=hc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Eh(a,b){return Dh(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Fh(a,b,c){var d,e=sb&&(jb||wb)&&Gb("1.9");b instanceof Rb?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Gh(d,e);a.style.top=Gh(b,e)}
|
||||
function Hh(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}F&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
|
||||
function Ih(a){if(F&&!(F&&8<=Ib))return a.offsetParent;var b=hc(a),c=Eh(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Eh(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}
|
||||
function Jh(a){var b,c=hc(a),d=Eh(a,"position"),e=sb&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new Rb(0,0),g;b=c?hc(c):document;(g=!F)||(g=F&&9<=Ib)||(fc(b),g=!0);g=g?b.documentElement:b.body;if(a==g)return f;if(a.getBoundingClientRect)b=Hh(a),a=xc(fc(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{e=a;do{f.x+=e.offsetLeft;
|
||||
f.y+=e.offsetTop;e!=a&&(f.x+=e.clientLeft||0,f.y+=e.clientTop||0);if(tb&&"fixed"==Eh(e,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if(rb||tb&&"absolute"==d)f.y-=c.body.offsetTop;for(e=a;(e=Ih(e))&&e!=c.body&&e!=g;)f.x-=e.scrollLeft,rb&&"TR"==e.tagName||(f.y-=e.scrollTop)}return f}function Kh(a,b){var c=Lh(a),d=Lh(b);return new Rb(c.x-d.x,c.y-d.y)}
|
||||
function Lh(a){if(1==a.nodeType){var b;if(a.getBoundingClientRect)b=Hh(a),b=new Rb(b.left,b.top);else{b=xc(fc(a));var c=Jh(a);b=new Rb(c.x-b.x,c.y-b.y)}if(sb&&!Gb(12)){var d;F?d="-ms-transform":tb?d="-webkit-transform":rb?d="-o-transform":sb&&(d="-moz-transform");var e;d&&(e=Eh(a,d));e||(e=Eh(a,"transform"));a=e?(a=e.match(Mh))?new Rb(parseFloat(a[1]),parseFloat(a[2])):new Rb(0,0):new Rb(0,0);a=new Rb(b.x+a.x,b.y+a.y)}else a=b;return a}d=ma(a.bf);e=a;a.targetTouches?e=a.targetTouches[0]:d&&a.H.targetTouches&&
|
||||
(e=a.H.targetTouches[0]);return new Rb(e.clientX,e.clientY)}function Gh(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Nh(a){var b=Oh;if("none"!=Eh(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}
|
||||
function Oh(a){var b=a.offsetWidth,c=a.offsetHeight,d=tb&&!b&&!c;return u(b)&&!d||!a.getBoundingClientRect?new Sb(b,c):(a=Hh(a),new Sb(a.right-a.left,a.bottom-a.top))}function Ph(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity\x3d"+100*b+")")}function Qh(a,b){a.style.display=b?"":"none"}function Rh(a){return"rtl"==Eh(a,"direction")}
|
||||
function Sh(a){var b=hc(a),c=F&&a.currentStyle,d;if(d=c)fc(b),d="auto"!=c.width&&"auto"!=c.height&&!c.boxSizing;if(d)return b=Th(a,c.width,"width","pixelWidth"),a=Th(a,c.height,"height","pixelHeight"),new Sb(b,a);c=new Sb(a.offsetWidth,a.offsetHeight);b=Uh(a,"padding");a=Vh(a);return new Sb(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)}
|
||||
function Th(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b}function Wh(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?Th(a,c,"left","pixelLeft"):0}
|
||||
function Uh(a,b){if(F){var c=Wh(a,b+"Left"),d=Wh(a,b+"Right"),e=Wh(a,b+"Top"),f=Wh(a,b+"Bottom");return new Bh(e,d,f,c)}c=Dh(a,b+"Left");d=Dh(a,b+"Right");e=Dh(a,b+"Top");f=Dh(a,b+"Bottom");return new Bh(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))}var Xh={thin:2,medium:4,thick:6};function Yh(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in Xh?Xh[c]:Th(a,c,"left","pixelLeft")}
|
||||
function Vh(a){if(F){var b=Yh(a,"borderLeft"),c=Yh(a,"borderRight"),d=Yh(a,"borderTop");a=Yh(a,"borderBottom");return new Bh(d,c,a,b)}b=Dh(a,"borderLeftWidth");c=Dh(a,"borderRightWidth");d=Dh(a,"borderTopWidth");a=Dh(a,"borderBottomWidth");return new Bh(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Mh=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Zh(a,b){wd.call(this);this.a=a;var c=oa(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:null;this.e=!!c&&Rh(c);this.c=K(this.a,sb?"DOMMouseScroll":"mousewheel",this,b)}E(Zh,wd);
|
||||
Zh.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.H;if("mousewheel"==a.type){c=1;if(F||tb&&(kb||Gb("532.0")))c=40;d=$h(-a.wheelDelta,c);u(a.wheelDeltaX)?(b=$h(-a.wheelDeltaX,c),c=$h(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),u(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;la(this.b)&&(b=Ob(b,-this.b,this.b));la(this.d)&&(c=Ob(c,-this.d,this.d));this.e&&(b=-b);b=new ai(d,a,b,c);M(this,b)};function $h(a,b){return tb&&(jb||lb)&&0!=a%b?a:a/b}
|
||||
Zh.prototype.A=function(){Zh.C.A.call(this);L(this.c);this.c=null};function ai(a,b,c,d){b&&Pc(this,b,void 0);this.type="mousewheel";this.detail=a;this.b=c;this.a=d}E(ai,Oc);function bi(a,b,c){Gc.call(this,a);this.map=b;this.b=u(c)?c:null}E(bi,Gc);function ci(a,b,c){Gc.call(this,a);this.a=b;a=u(c)?c:{};this.buttons=di(a);this.bd=ei(a,this.buttons);this.bubbles=G(a,"bubbles",!1);this.cancelable=G(a,"cancelable",!1);this.view=G(a,"view",null);this.detail=G(a,"detail",null);this.screenX=G(a,"screenX",0);this.screenY=G(a,"screenY",0);this.clientX=G(a,"clientX",0);this.clientY=G(a,"clientY",0);this.d=G(a,"ctrlKey",!1);this.b=G(a,"altKey",!1);this.i=G(a,"shiftKey",!1);this.f=G(a,"metaKey",!1);this.button=G(a,"button",0);this.relatedTarget=G(a,"relatedTarget",
|
||||
null);this.pointerId=G(a,"pointerId",0);this.width=G(a,"width",0);this.height=G(a,"height",0);this.g=G(a,"tiltX",0);this.j=G(a,"tiltY",0);this.pointerType=G(a,"pointerType","");this.e=G(a,"hwTimestamp",0);this.lc=G(a,"isPrimary",!1);b.preventDefault&&(this.preventDefault=function(){b.preventDefault()})}E(ci,Gc);function di(a){if(a.buttons||fi)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a}
|
||||
function ei(a,b){var c=0;return c=a.bd?a.bd:b?0.5:0}var fi=!1;try{fi=1===(new MouseEvent("click",{buttons:1})).buttons}catch(gi){};function hi(a,b){this.a=a;this.e=b};function ii(a){hi.call(this,a,{mousedown:this.lg,mousemove:this.mg,mouseup:this.pg,mouseover:this.og,mouseout:this.ng});this.c=a.c;this.b=[]}E(ii,hi);function ji(a,b){for(var c=a.b,d=b.clientX,e=b.clientY,f=0,g=c.length,h;f<g&&(h=c[f]);f++){var m=Math.abs(e-h[1]);if(25>=Math.abs(d-h[0])&&25>=m)return!0}return!1}function ki(a){var b=li(a,a.H),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.lc=!0;b.pointerType="mouse";return b}l=ii.prototype;
|
||||
l.lg=function(a){if(!ji(this,a)){(1).toString()in this.c&&this.cancel(a);var b=ki(a);this.c[(1).toString()]=a;mi(this.a,ni,b,a)}};l.mg=function(a){if(!ji(this,a)){var b=ki(a);mi(this.a,oi,b,a)}};l.pg=function(a){if(!ji(this,a)){var b=G(this.c,(1).toString());b&&b.button===a.button&&(b=ki(a),mi(this.a,pi,b,a),ac(this.c,(1).toString()))}};l.og=function(a){if(!ji(this,a)){var b=ki(a);qi(this.a,b,a)}};l.ng=function(a){if(!ji(this,a)){var b=ki(a);ri(this.a,b,a)}};
|
||||
l.cancel=function(a){var b=ki(a);this.a.cancel(b,a);ac(this.c,(1).toString())};function si(a){hi.call(this,a,{MSPointerDown:this.ug,MSPointerMove:this.vg,MSPointerUp:this.yg,MSPointerOut:this.wg,MSPointerOver:this.xg,MSPointerCancel:this.tg,MSGotPointerCapture:this.rg,MSLostPointerCapture:this.sg});this.c=a.c;this.b=["","unavailable","touch","pen","mouse"]}E(si,hi);function ti(a,b){var c=b;la(b.H.pointerType)&&(c=li(b,b.H),c.pointerType=a.b[b.H.pointerType]);return c}l=si.prototype;l.ug=function(a){this.c[a.H.pointerId]=a;var b=ti(this,a);mi(this.a,ni,b,a)};
|
||||
l.vg=function(a){var b=ti(this,a);mi(this.a,oi,b,a)};l.yg=function(a){var b=ti(this,a);mi(this.a,pi,b,a);ac(this.c,a.H.pointerId)};l.wg=function(a){var b=ti(this,a);ri(this.a,b,a)};l.xg=function(a){var b=ti(this,a);qi(this.a,b,a)};l.tg=function(a){var b=ti(this,a);this.a.cancel(b,a);ac(this.c,a.H.pointerId)};l.sg=function(a){M(this.a,new ci("lostpointercapture",a,a.H))};l.rg=function(a){M(this.a,new ci("gotpointercapture",a,a.H))};function ui(a){hi.call(this,a,{pointerdown:this.Mh,pointermove:this.Nh,pointerup:this.Qh,pointerout:this.Oh,pointerover:this.Ph,pointercancel:this.Lh,gotpointercapture:this.Hf,lostpointercapture:this.jg})}E(ui,hi);l=ui.prototype;l.Mh=function(a){vi(this.a,a)};l.Nh=function(a){vi(this.a,a)};l.Qh=function(a){vi(this.a,a)};l.Oh=function(a){vi(this.a,a)};l.Ph=function(a){vi(this.a,a)};l.Lh=function(a){vi(this.a,a)};l.jg=function(a){vi(this.a,a)};l.Hf=function(a){vi(this.a,a)};function wi(a,b){hi.call(this,a,{touchstart:this.ni,touchmove:this.mi,touchend:this.li,touchcancel:this.ki});this.c=a.c;this.i=b;this.b=void 0;this.f=0;this.d=void 0}E(wi,hi);l=wi.prototype;l.le=function(){this.f=0;this.d=void 0};
|
||||
l.ji=function(a,b){var c=li(a,b);c.pointerId=b.identifier+2;c.bubbles=!0;c.cancelable=!0;c.detail=this.f;c.button=0;c.buttons=1;c.width=b.webkitRadiusX||b.radiusX||0;c.height=b.webkitRadiusY||b.radiusY||0;c.bd=b.webkitForce||b.force||0.5;c.lc=this.b===b.identifier;c.pointerType="touch";c.clientX=b.clientX;c.clientY=b.clientY;c.screenX=b.screenX;c.screenY=b.screenY;return c};
|
||||
function xi(a,b,c){var d=Ra(b.H.changedTouches),d=La(d,va(a.ji,b),a);Ka(d,function(a){a.preventDefault=function(){b.preventDefault()}},a);Ka(d,va(c,b),a)}function yi(a,b){var c=b.H.touches;if(Vb(a.c)>=c.length){var d=[];Tb(a.c,function(a,b){var g;if(!(g=1==b))a:{g=c.length;for(var h,m=0;m<g;m++)if(h=c[m],h.identifier===b-2){g=!0;break a}g=!1}g||d.push(a.bb)},a);Ka(d,va(a.Hc,b),a)}}
|
||||
l.ni=function(a){yi(this,a);var b=Vb(this.c),c;if(!(c=0===b)){if(b=1===b)b=(1).toString()in this.c;c=b}c&&(this.b=a.H.changedTouches[0].identifier,u(this.d)&&t.clearTimeout(this.d));zi(this,a);this.f++;xi(this,a,this.Kh)};l.Kh=function(a,b){this.c[b.pointerId]={target:b.target,bb:b,he:b.target};var c=this.a;b.bubbles=!0;mi(c,Ai,b,a);c=this.a;b.bubbles=!1;mi(c,Bi,b,a);mi(this.a,ni,b,a)};l.mi=function(a){a.preventDefault();xi(this,a,this.qg)};
|
||||
l.qg=function(a,b){var c=G(this.c,b.pointerId);if(c){var d=c.bb,e=c.he;mi(this.a,oi,b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(ri(this.a,d,a),qi(this.a,b,a)):(b.target=e,b.relatedTarget=null,this.Hc(a,b)));c.bb=b;c.he=b.target}};l.li=function(a){zi(this,a);xi(this,a,this.ri)};l.ri=function(a,b){mi(this.a,pi,b,a);this.a.bb(b,a);var c=this.a;b.bubbles=!1;mi(c,Ci,b,a);ac(this.c,b.pointerId);b.lc&&(this.b=void 0,this.d=t.setTimeout(this.le,200))};
|
||||
l.ki=function(a){xi(this,a,this.Hc)};l.Hc=function(a,b){this.a.cancel(b,a);this.a.bb(b,a);var c=this.a;b.bubbles=!1;mi(c,Ci,b,a);ac(this.c,b.pointerId);b.lc&&(this.b=void 0,this.d=t.setTimeout(this.le,200))};function zi(a,b){var c=a.i.b,d=b.H.changedTouches[0];if(a.b===d.identifier){var e=[d.clientX,d.clientY];c.push(e);t.setTimeout(function(){Pa(c,e)},2500)}};function Di(a){wd.call(this);this.d=a;this.c={};this.b={};this.a=[];I.De?Ei(this,new ui(this)):I.Ce?Ei(this,new si(this)):(a=new ii(this),Ei(this,a),I.xc&&Ei(this,new wi(this,a)));a=this.a.length;for(var b,c=0;c<a;c++)b=this.a[c],Fi(this,Yb(b.e))}E(Di,wd);function Ei(a,b){var c=Yb(b.e);c&&(Ka(c,function(a){var c=b.e[a];c&&(this.b[a]=y(c,b))},a),a.a.push(b))}Di.prototype.e=function(a){var b=this.b[a.type];b&&b(a)};function Fi(a,b){Ka(b,function(a){K(this.d,a,this.e,!1,this)},a)}
|
||||
function Gi(a,b){Ka(b,function(a){fd(this.d,a,this.e,!1,this)},a)}function li(a,b){for(var c={},d,e=0,f=Hi.length;e<f;e++)d=Hi[e][0],c[d]=a[d]||b[d]||Hi[e][1];return c}Di.prototype.bb=function(a,b){a.bubbles=!0;mi(this,Ii,a,b)};Di.prototype.cancel=function(a,b){mi(this,Ji,a,b)};function ri(a,b,c){a.bb(b,c);b.target.contains(b.relatedTarget)||(b.bubbles=!1,mi(a,Ci,b,c))}function qi(a,b,c){b.bubbles=!0;mi(a,Ai,b,c);b.target.contains(b.relatedTarget)||(b.bubbles=!1,mi(a,Bi,b,c))}
|
||||
function mi(a,b,c,d){M(a,new ci(b,d,c))}function vi(a,b){M(a,new ci(b.type,b,b.H))}Di.prototype.A=function(){for(var a=this.a.length,b,c=0;c<a;c++)b=this.a[c],Gi(this,Yb(b.e));Di.C.A.call(this)};
|
||||
var oi="pointermove",ni="pointerdown",pi="pointerup",Ai="pointerover",Ii="pointerout",Bi="pointerenter",Ci="pointerleave",Ji="pointercancel",Hi=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",
|
||||
!1],["type",""],["target",null],["currentTarget",null],["which",0]];function Ki(a,b,c,d){bi.call(this,a,b,d);this.a=c;this.originalEvent=c.H;this.coordinate=b.Hd(this.originalEvent);this.pixel=b.Mc(this.originalEvent)}E(Ki,bi);Ki.prototype.preventDefault=function(){Ki.C.preventDefault.call(this);this.a.preventDefault()};Ki.prototype.za=function(){Ki.C.za.call(this);this.a.za()};function Li(a,b,c,d){Ki.call(this,a,b,c.a,d);this.d=c}E(Li,Ki);
|
||||
function Mi(a){wd.call(this);this.b=a;this.e=0;this.g=!1;this.f=this.i=this.c=null;a=this.b.b;this.l=0;this.k={};this.d=new Di(a);this.a=null;this.i=K(this.d,ni,this.Vf,!1,this);this.j=K(this.d,oi,this.Wh,!1,this)}E(Mi,wd);function Ni(a,b){if(0!==a.e){t.clearTimeout(a.e);a.e=0;var c=new Li(Oi,a.b,b);M(a,c)}else a.e=t.setTimeout(y(function(){this.e=0;var a=new Li(Pi,this.b,b);M(this,a)},a),250)}
|
||||
function Qi(a,b){b.type==Ri||b.type==Si?delete a.k[b.pointerId]:b.type==Ti&&(a.k[b.pointerId]=!0);a.l=Vb(a.k)}l=Mi.prototype;l.Od=function(a){Qi(this,a);var b=new Li(Ri,this.b,a);M(this,b);0===this.l&&(Ka(this.c,L),this.c=null,Fc(this.a),this.a=null);!this.g&&0===a.button&&Ni(this,this.f)};
|
||||
l.Vf=function(a){Qi(this,a);var b=new Li(Ti,this.b,a);M(this,b);this.f=a;this.g=!1;null===this.c&&(this.a=new Di(document),this.c=[K(this.a,Ui,this.Kg,!1,this),K(this.a,Ri,this.Od,!1,this),K(this.d,Si,this.Od,!1,this)]);a.preventDefault()};l.Kg=function(a){if(a.clientX!=this.f.clientX||a.clientY!=this.f.clientY){this.g=!0;var b=new Li(Vi,this.b,a);M(this,b)}a.preventDefault()};l.Wh=function(a){M(this,new Li(a.type,this.b,a))};
|
||||
l.A=function(){null!==this.j&&(L(this.j),this.j=null);null!==this.i&&(L(this.i),this.i=null);null!==this.c&&(Ka(this.c,L),this.c=null);null!==this.a&&(Fc(this.a),this.a=null);null!==this.d&&(Fc(this.d),this.d=null);Mi.C.A.call(this)};var Pi="singleclick",Oi="dblclick",Vi="pointerdrag",Ui="pointermove",Ti="pointerdown",Ri="pointerup",Si="pointercancel",Wi={Mi:Pi,Ci:Oi,Fi:Vi,Ii:Ui,Ei:Ti,Li:Ri,Ki:"pointerover",Ji:"pointerout",Gi:"pointerenter",Hi:"pointerleave",Di:Si};function Xi(a,b){this.f=a;this.e=b;this.a=[];this.c=[];this.b={}}Xi.prototype.clear=function(){this.a.length=0;this.c.length=0;$b(this.b)};function Yi(a){var b=a.a,c=a.c,d=b[0];1==b.length?(b.length=0,c.length=0):(b[0]=b.pop(),c[0]=c.pop(),Zi(a,0));b=a.e(d);delete a.b[b];return d}function $i(a,b){var c=a.f(b);Infinity!=c&&(a.a.push(b),a.c.push(c),a.b[a.e(b)]=!0,aj(a,0,a.a.length-1))}Xi.prototype.pa=function(){return this.a.length};Xi.prototype.W=function(){return 0===this.a.length};
|
||||
function Zi(a,b){for(var c=a.a,d=a.c,e=c.length,f=c[b],g=d[b],h=b;b<e>>1;){var m=2*b+1,n=2*b+2,m=n<e&&d[n]<d[m]?n:m;c[b]=c[m];d[b]=d[m];b=m}c[b]=f;d[b]=g;aj(a,h,b)}function aj(a,b,c){var d=a.a;a=a.c;for(var e=d[c],f=a[c];c>b;){var g=c-1>>1;if(a[g]>f)d[c]=d[g],a[c]=a[g],c=g;else break}d[c]=e;a[c]=f}function bj(a){var b=a.f,c=a.a,d=a.c,e=0,f=c.length,g,h,m;for(h=0;h<f;++h)g=c[h],m=b(g),Infinity==m?delete a.b[a.e(g)]:(d[e]=m,c[e++]=g);c.length=e;d.length=e;for(b=(a.a.length>>1)-1;0<=b;b--)Zi(a,b)};function cj(a,b){Xi.call(this,function(b){return a.apply(null,b)},function(a){return a[0].d()});this.g=b;this.d=0}E(cj,Xi);cj.prototype.i=function(){--this.d;this.g()};function dj(a){return function(b){if(u(b))return[Ob(b[0],a[0],a[2]),Ob(b[1],a[1],a[3])]}}function ej(a){return a};function fj(a){return function(b,c,d){if(u(b))return b=bf(a,b,d),b=Ob(b+c,0,a.length-1),a[b]}}function gj(a,b,c){return function(d,e,f){if(u(d))return f=0<f?0:0>f?1:0.5,d=Math.floor(Math.log(b/d)/Math.log(a)+f),e=Math.max(d+e,0),u(c)&&(e=Math.min(e,c)),b/Math.pow(a,e)}};function hj(a){if(u(a))return 0}function ij(a,b){if(u(a))return a+b}function jj(a){var b=2*Math.PI/a;return function(a,d){if(u(a))return a=Math.floor((a+d)/b+0.5)*b}}function kj(){var a=Qb(5);return function(b,c){if(u(b))return Math.abs(b+c)<=a?0:b+c}};function lj(a,b,c){this.center=a;this.resolution=b;this.rotation=c};function Q(a){rg.call(this);a=a||{};var b={};b.center=u(a.center)?a.center:null;b.projection=kg(a.projection);var c,d,e;if(u(a.resolutions))c=a.resolutions,d=c[0],e=c[c.length-1],c=fj(c);else{d=a.maxResolution;u(d)||(d=a.projection,e=kg(d).p(),d=(null===e?360*Pf.degrees/Pf[d.ma]:Math.max(e[2]-e[0],e[3]-e[1]))/256);c=a.maxZoom;u(c)||(c=28);var f=a.zoomFactor;u(f)||(f=2);e=d/Math.pow(f,c);c=gj(f,d,c)}this.j=d;this.n=e;(u(a.enableRotation)?a.enableRotation:1)?(d=a.constrainRotation,d=u(d)&&!0!==d?!1===
|
||||
d?ij:la(d)?jj(d):ij:kj()):d=hj;this.g=new lj(u(a.extent)?dj(a.extent):ej,c,d);u(a.resolution)?b.resolution=a.resolution:u(a.zoom)&&(b.resolution=this.constrainResolution(this.j,a.zoom));b.rotation=u(a.rotation)?a.rotation:0;this.U(b)}E(Q,rg);Q.prototype.constrainResolution=function(a,b,c){return this.g.resolution(a,b||0,c||0)};Q.prototype.constrainRotation=function(a,b){return this.g.rotation(a,b||0)};Q.prototype.a=function(){return this.t("center")};Q.prototype.getCenter=Q.prototype.a;
|
||||
Q.prototype.r=function(a){var b=this.a(),c=this.b();return[b[0]-c*a[0]/2,b[1]-c*a[1]/2,b[0]+c*a[0]/2,b[1]+c*a[1]/2]};Q.prototype.l=function(){return this.t("projection")};Q.prototype.getProjection=Q.prototype.l;Q.prototype.b=function(){return this.t("resolution")};Q.prototype.getResolution=Q.prototype.b;function mj(a,b){return Math.max((a[2]-a[0])/b[0],(a[3]-a[1])/b[1])}function nj(a){var b=a.j,c=Math.log(b/a.n)/Math.log(2);return function(a){return b/Math.pow(2,a*c)}}Q.prototype.f=function(){return this.t("rotation")};
|
||||
Q.prototype.getRotation=Q.prototype.f;function oj(a){var b=a.j,c=Math.log(b/a.n)/Math.log(2);return function(a){return Math.log(b/a)/Math.log(2)/c}}l=Q.prototype;l.N=function(){return this};function pj(a){var b=a.a(),c=a.l(),d=a.b();a=a.f();return{center:b.slice(),projection:u(c)?c:null,resolution:d,rotation:u(a)?a:0}}l.Ff=function(){var a,b=this.b();if(u(b)){var c,d=0;do{c=this.constrainResolution(this.j,d);if(c==b){a=d;break}++d}while(c>this.n)}return a};
|
||||
l.Gd=function(a,b){if(!We(a)){this.sa(Qe(a));var c=mj(a,b),d=this.constrainResolution(c,0,0);d<c&&(d=this.constrainResolution(d,-1,0));this.d(d)}};
|
||||
l.Ze=function(a,b,c){var d=u(c)?c:{};c=u(d.padding)?d.padding:[0,0,0,0];var e=u(d.constrainResolution)?d.constrainResolution:!0,f=u(d.nearest)?d.nearest:!1,g=u(d.minResolution)?d.minResolution:0,h=a.h,m=this.f(),d=Math.cos(-m),m=Math.sin(-m),n=Infinity,p=Infinity,q=-Infinity,r=-Infinity;a=a.a;for(var s=0,z=h.length;s<z;s+=a)var x=h[s]*d-h[s+1]*m,w=h[s]*m+h[s+1]*d,n=Math.min(n,x),p=Math.min(p,w),q=Math.max(q,x),r=Math.max(r,w);b=mj([n,p,q,r],[b[0]-c[1]-c[3],b[1]-c[0]-c[2]]);b=isNaN(b)?g:Math.max(b,
|
||||
g);e&&(e=this.constrainResolution(b,0,0),!f&&e<b&&(e=this.constrainResolution(e,-1,0)),b=e);this.d(b);m=-m;f=(n+q)/2+(c[1]-c[3])/2*b;c=(p+r)/2+(c[0]-c[2])/2*b;this.sa([f*d-c*m,c*d+f*m])};l.We=function(a,b,c){var d=this.f(),e=Math.cos(-d),d=Math.sin(-d),f=a[0]*e-a[1]*d;a=a[1]*e+a[0]*d;var g=this.b(),f=f+(b[0]/2-c[0])*g;a+=(c[1]-b[1]/2)*g;d=-d;this.sa([f*e-a*d,a*e+f*d])};l.Xc=function(){return null!=this.a()&&u(this.b())};l.sa=function(a){this.u("center",a)};Q.prototype.setCenter=Q.prototype.sa;
|
||||
Q.prototype.q=function(a){this.u("projection",a)};Q.prototype.setProjection=Q.prototype.q;Q.prototype.d=function(a){this.u("resolution",a)};Q.prototype.setResolution=Q.prototype.d;Q.prototype.o=function(a){this.u("rotation",a)};Q.prototype.setRotation=Q.prototype.o;Q.prototype.v=function(a){a=this.constrainResolution(this.j,a,0);this.d(a)};function qj(a){N.call(this);this.element=u(a.element)?a.element:null;this.o=u(a.target)?ic(a.target):null;this.a=null;this.g=[]}E(qj,N);qj.prototype.A=function(){uc(this.element);qj.C.A.call(this)};qj.prototype.O=k("a");qj.prototype.f=da;qj.prototype.setMap=function(a){null===this.a||uc(this.element);0!=this.g.length&&(Ka(this.g,L),this.g.length=0);this.a=a;null!==this.a&&((null===this.o?a.v:this.o).appendChild(this.element),this.f!==da&&this.g.push(K(a,"postrender",this.f,!1,this)),a.K())};function rj(a){a=u(a)?a:{};this.k=pc("UL");var b=mc("DIV",{"class":(u(a.className)?a.className:"ol-attribution")+" ol-unselectable"},this.k);qj.call(this,{element:b,target:a.target});this.j=!0;this.d={};this.b={}}E(rj,qj);
|
||||
rj.prototype.f=function(a){a=a.b;if(null===a)this.j&&(Qh(this.element,!1),this.j=!1);else{var b,c,d,e,f,g,h,m,n,p=a.layersArray,q=cc(a.attributions),r={};b=0;for(c=p.length;b<c;b++)if(d=p[b].a,n=v(d).toString(),m=d.d,null!==m)for(d=0,e=m.length;d<e;d++)if(g=m[d],h=v(g).toString(),!(h in q)){f=a.usedTiles[n];var s;if(s=u(f))a:if(null===g.a)s=!0;else{var z=s=void 0,x=void 0,w=void 0;for(w in f)if(w in g.a)for(x=f[w],s=0,z=g.a[w].length;s<z;++s)if(g.a[w][s].a<=x.d&&g.a[w][s].d>=x.a&&g.a[w][s].b<=x.c&&
|
||||
g.a[w][s].c>=x.b){s=!0;break a}s=!1}s?(h in r&&delete r[h],q[h]=g):r[h]=g}b=[q,r];a=b[0];b=b[1];for(var B in this.d)B in a?(this.b[B]||(Qh(this.d[B],!0),this.b[B]=!0),delete a[B]):B in b?(this.b[B]&&(Qh(this.d[B],!1),delete this.b[B]),delete b[B]):(uc(this.d[B]),delete this.d[B],delete this.b[B]);for(B in a)c=pc("LI"),c.innerHTML=a[B].c,this.k.appendChild(c),this.d[B]=c,this.b[B]=!0;for(B in b)c=pc("LI"),c.innerHTML=b[B].c,Qh(c,!1),this.k.appendChild(c),this.d[B]=c;B=!Zb(this.b);this.j!=B&&(Qh(this.element,
|
||||
B),this.j=B)}};function sj(a){a=u(a)?a:{};this.d=pc("UL");var b=mc("DIV",{"class":(u(a.className)?a.className:"ol-logo")+" ol-unselectable"},this.d);qj.call(this,{element:b,target:a.target});this.b=!0;this.j={}}E(sj,qj);
|
||||
sj.prototype.f=function(a){a=a.b;if(null===a)this.b&&(Qh(this.element,!1),this.b=!1);else{var b;a=a.logos;var c=this.j;for(b in c)b in a||(uc(c[b]),delete c[b]);for(var d in a)if(!(d in c)){b=new Image;b.src=d;var e=a[d];""===e?e=b:(e=mc("A",{href:e,target:"_blank"}),e.appendChild(b));b=mc("LI",void 0,e);this.d.appendChild(b);c[d]=b}d=!Zb(a);this.b!=d&&(Qh(this.element,d),this.b=d)}};function tj(a){a=u(a)?a:{};var b=u(a.className)?a.className:"ol-zoom",c=u(a.delta)?a.delta:1,d=u(a.zoomInLabel)?a.zoomInLabel:"+",e=u(a.zoomOutLabel)?a.zoomOutLabel:"\u2212",f=u(a.zoomOutTipLabel)?a.zoomOutTipLabel:"Zoom out",g=mc("SPAN",{role:"tooltip"},u(a.zoomInTipLabel)?a.zoomInTipLabel:"Zoom in"),d=mc("BUTTON",{"class":b+"-in ol-has-tooltip",name:"ZoomIn",type:"button"},g,d);K(d,["touchend","click"],va(tj.prototype.d,c),!1,this);K(d,["mouseout",Mc],function(){this.blur()},!1);f=mc("SPAN",{role:"tooltip",
|
||||
type:"button"},f);e=mc("BUTTON",{"class":b+"-out ol-has-tooltip",name:"ZoomOut"},f,e);K(e,["touchend","click"],va(tj.prototype.d,-c),!1,this);K(e,["mouseout",Mc],function(){this.blur()},!1);b=mc("DIV",b+" ol-unselectable",d,e);qj.call(this,{element:b,target:a.target});this.b=u(a.duration)?a.duration:250}E(tj,qj);tj.prototype.d=function(a,b){b.preventDefault();var c=this.a,d=c.a().N(),e=d.b();u(e)&&(0<this.b&&c.oa(zg({resolution:e,duration:this.b,easing:tg})),c=d.constrainResolution(e,a),d.d(c))};function uj(a){a=u(a)?a:{};var b=new Id;(u(a.zoom)?a.zoom:1)&&b.push(new tj(u(a.zoomOptions)?a.zoomOptions:void 0));(u(a.attribution)?a.attribution:1)&&b.push(new rj(u(a.attributionOptions)?a.attributionOptions:void 0));(u(a.logo)?a.logo:1)&&b.push(new sj(u(a.logoOptions)?a.logoOptions:void 0));return b};function vj(){yd.call(this);this.g=null}E(vj,yd);vj.prototype.setMap=function(a){this.g=a};function wj(a,b,c,d,e){if(null!=c){var f=b.f(),g=b.a();u(f)&&(u(g)&&u(e)&&0<e)&&(a.oa(yg({rotation:f,duration:e,easing:tg})),u(d)&&a.oa(xg({source:g,duration:e,easing:tg})));if(null!=d){var h;a=b.a();u(a)&&(h=[a[0]-d[0],a[1]-d[1]],Ae(h,c-b.f()),a=h,a[0]+=d[0],a[1]+=d[1]);b.sa(h)}b.o(c)}}function xj(a,b,c,d,e){var f=b.b();c=b.constrainResolution(f,c,0);yj(a,b,c,d,e)}
|
||||
function yj(a,b,c,d,e){if(null!=c){var f=b.b(),g=b.a();u(f)&&(u(g)&&u(e)&&0<e)&&(a.oa(zg({resolution:f,duration:e,easing:tg})),u(d)&&a.oa(xg({source:g,duration:e,easing:tg})));if(null!=d){var h;a=b.a();e=b.b();u(a)&&u(e)&&(h=[d[0]-c*(d[0]-a[0])/e,d[1]-c*(d[1]-a[1])/e]);b.sa(h)}b.d(c)}};function zj(a){a=u(a)?a:{};this.a=u(a.delta)?a.delta:1;vj.call(this);this.b=u(a.duration)?a.duration:250}E(zj,vj);zj.prototype.ia=function(a){var b=!1,c=a.a;if(a.type==Oi){var b=a.map,d=a.coordinate,c=c.ya?-this.a:this.a,e=b.a().N();xj(b,e,c,d,this.b);a.preventDefault();b=!0}return!b};function Aj(a){a=a.a;return a.$&&!a.sb&&a.ya}function Bj(a){return a.type==Pi}function Cj(a){a=a.a;return!a.$&&!a.sb&&!a.ya}function Dj(a){a=a.a;return!a.$&&!a.sb&&a.ya}function Ej(a){a=a.a.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a}function Fj(a){return 1==a.d.pointerId};function Gj(){vj.call(this);this.i=!1;this.l={};this.b=[]}E(Gj,vj);function Hj(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return[c/b,d/b]}l=Gj.prototype;l.Ia=da;l.Ba=od;l.Aa=od;
|
||||
l.ia=function(a){if(!(a instanceof Li))return!0;var b=!1,c=a.type;if(c===Ti||c===Vi||c===Ri)c=a.d,a.type==Ri?delete this.l[c.pointerId]:a.type==Ti?this.l[c.pointerId]=c:c.pointerId in this.l&&(this.l[c.pointerId]=c),this.b=Xb(this.l);this.i&&(a.type==Vi?this.Ia(a):a.type==Ri&&(this.i=this.Ba(a)));a.type==Ti&&(this.i=a=this.Aa(a),b=this.re(a));return!b};l.re=od;function Ij(a){Gj.call(this);this.a=(u(a)?a:{}).kinetic;this.d=this.e=null;this.j=u(a.condition)?a.condition:Cj;this.f=!1}E(Ij,Gj);Ij.prototype.Ia=function(a){var b=Hj(this.b);if(null!==this.d){this.a&&this.a.update(b[0],b[1]);var c=this.d[0]-b[0],d=b[1]-this.d[1];a=a.map;var e=a.a().N(),f=pj(e),d=c=[c,d],g=f.resolution;d[0]*=g;d[1]*=g;Ae(c,f.rotation);d=c;f=f.center;d[0]+=f[0];d[1]+=f[1];c=e.g.center(c);a.K();e.sa(c)}this.d=b};
|
||||
Ij.prototype.Ba=function(a){a=a.map;var b=a.a().N();if(0===this.b.length){var c;if(c=!this.f)if(c=this.a){c=this.a;var d=wa()-c.f,e=c.a.length-3;if(c.a[e+2]<d)c=!1;else{for(var f=e-3;0<=f&&c.a[f+2]>d;)f-=3;if(0<=f){var d=c.a[e+2]-c.a[f+2],g=c.a[e]-c.a[f],e=c.a[e+1]-c.a[f+1];c.d=Math.atan2(e,g);c.c=Math.sqrt(g*g+e*e)/d;c=c.c>c.b}else c=!1}}c&&(c=(this.a.b-this.a.c)/this.a.e,e=this.a.d,f=b.a(),this.e=Bg(this.a,f),a.oa(this.e),f=a.g(f),c=a.fa([f[0]-c*Math.cos(e),f[1]-c*Math.sin(e)]),c=b.g.center(c),
|
||||
b.sa(c));sg(b,-1);a.K();return!1}this.d=null;return!0};Ij.prototype.Aa=function(a){if(0<this.b.length&&this.j(a)){var b=a.map,c=b.a().N();this.d=null;this.i||sg(c,1);b.K();null!==this.e&&Pa(b.F,this.e)&&(c.sa(a.b.view2DState.center),this.e=null);this.a&&(a=this.a,a.a.length=0,a.d=0,a.c=0);this.f=1<this.b.length;return!0}return!1};function Jj(a){a=u(a)?a:{};Gj.call(this);this.d=u(a.condition)?a.condition:Aj;this.a=void 0}E(Jj,Gj);Jj.prototype.Ia=function(a){if(Fj(a)){var b=a.map,c=b.f();a=a.pixel;c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(u(this.a)){a=c-this.a;var d=b.a().N(),e=pj(d);b.K();wj(b,d,e.rotation-a)}this.a=c}};Jj.prototype.Ba=function(a){if(!Fj(a))return!0;a=a.map;var b=a.a();sg(b,-1);var b=b.N(),c=pj(b).rotation,c=b.constrainRotation(c,0);wj(a,b,c,void 0,250);return!1};
|
||||
Jj.prototype.Aa=function(a){return Fj(a)&&Rc(a.a)&&this.d(a)?(a=a.map,sg(a.a(),1),a.K(),this.a=void 0,!0):!1};function Kj(a){this.b=this.c=this.e=this.d=this.a=null;this.f=a}E(Kj,Bc);function Lj(a){var b=a.e,c=a.c;a=La([b,[b[0],c[1]],c,[c[0],b[1]]],a.a.fa,a.a);a[4]=a[0].slice();return new If([a])}Kj.prototype.A=function(){this.setMap(null)};Kj.prototype.i=function(a){var b=this.b,c=this.f;a.vectorContext.bc(Infinity,function(a){a.la(c.d,c.b);a.ba(c.c);a.ib(b,null)})};Kj.prototype.L=k("b");function Mj(a){null===a.a||(null===a.e||null===a.c)||a.a.K()}
|
||||
Kj.prototype.setMap=function(a){null!==this.d&&(L(this.d),this.d=null,this.a.K(),this.a=null);this.a=a;null!==this.a&&(this.d=K(a,"postcompose",this.i,!1,this),Mj(this))};function Oj(a,b){Gc.call(this,a);this.coordinate=b}E(Oj,Gc);function Pj(a){Gj.call(this);a=u(a)?a:{};this.d=new Kj(u(a.style)?a.style:null);this.a=null;this.e=u(a.condition)?a.condition:pd}E(Pj,Gj);l=Pj.prototype;l.Ia=function(a){if(Fj(a)){var b=this.d;a=a.pixel;b.e=this.a;b.c=a;b.b=Lj(b);Mj(b)}};l.L=function(){return this.d.L()};l.ge=da;
|
||||
l.Ba=function(a){if(!Fj(a))return!0;this.d.setMap(null);var b=a.pixel[0]-this.a[0],c=a.pixel[1]-this.a[1];64<=b*b+c*c&&(this.ge(a),M(this,new Oj("boxend",a.coordinate)));return!1};l.Aa=function(a){if(Fj(a)&&Rc(a.a)&&this.e(a)){this.a=a.pixel;this.d.setMap(a.map);var b=this.d,c=this.a;b.e=this.a;b.c=c;b.b=Lj(b);Mj(b);M(this,new Oj("boxstart",a.coordinate));return!0}return!1};function Qj(a){a=u(a)?a:{};Pj.call(this,{condition:u(a.condition)?a.condition:Dj,style:u(a.style)?a.style:new oe({stroke:new me({color:[0,0,255,1]})})})}E(Qj,Pj);Qj.prototype.ge=function(){var a=this.g,b=a.a().N(),c=this.L().p(),d=Qe(c),c=mj(c,a.f()),c=b.constrainResolution(c,0,void 0);yj(a,b,c,d,200)};function Rj(a){vj.call(this);a=u(a)?a:{};this.a=u(a.condition)?a.condition:td(Cj,Ej);this.b=u(a.pixelDelta)?a.pixelDelta:128}E(Rj,vj);Rj.prototype.ia=function(a){var b=!1;if("key"==a.type){var c=a.a.xa;if(this.a(a)&&(40==c||37==c||39==c||38==c)){var d=a.map,b=d.a(),e=pj(b),f=e.resolution*this.b,g=0,h=0;40==c?h=-f:37==c?g=-f:39==c?g=f:h=f;c=[g,h];Ae(c,e.rotation);e=b.a();u(e)&&(u(100)&&d.oa(xg({source:e,duration:100,easing:vg})),d=b.g.center([e[0]+c[0],e[1]+c[1]]),b.sa(d));a.preventDefault();b=!0}}return!b};function Sj(a){vj.call(this);a=u(a)?a:{};this.b=u(a.condition)?a.condition:Ej;this.a=u(a.delta)?a.delta:1;this.d=u(a.duration)?a.duration:100}E(Sj,vj);Sj.prototype.ia=function(a){var b=!1;if("key"==a.type){var c=a.a.Rc;if(this.b(a)&&(43==c||45==c)){b=a.map;c=43==c?this.a:-this.a;b.K();var d=b.a().N();xj(b,d,c,void 0,this.d);a.preventDefault();b=!0}}return!b};function Tj(a){a=u(a)?a:{};vj.call(this);this.a=0;this.i=u(a.duration)?a.duration:250;this.d=null;this.e=this.b=void 0}E(Tj,vj);Tj.prototype.ia=function(a){var b=!1;if("mousewheel"==a.type){var b=a.map,c=a.a;this.d=a.coordinate;this.a+=c.a;u(this.b)||(this.b=wa());c=Math.max(80-(wa()-this.b),0);t.clearTimeout(this.e);this.e=t.setTimeout(y(this.f,this,b),c);a.preventDefault();b=!0}return!b};
|
||||
Tj.prototype.f=function(a){var b=Ob(this.a,-1,1),c=a.a().N();a.K();xj(a,c,-b,this.d,this.i);this.a=0;this.d=null;this.e=this.b=void 0};function Uj(a){Gj.call(this);a=u(a)?a:{};this.d=null;this.e=void 0;this.a=!1;this.f=0;this.j=u(a.threshold)?a.threshold:0.3}E(Uj,Gj);Uj.prototype.Ia=function(a){var b=0,c=this.b[0],d=this.b[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);u(this.e)&&(b=c-this.e,this.f+=b,!this.a&&Math.abs(this.f)>this.j&&(this.a=!0));this.e=c;a=a.map;c=Lh(a.b);d=Hj(this.b);d[0]-=c.x;d[1]-=c.y;this.d=a.fa(d);this.a&&(c=a.a().N(),d=pj(c),a.K(),wj(a,c,d.rotation+b,this.d))};
|
||||
Uj.prototype.Ba=function(a){if(2>this.b.length){a=a.map;var b=a.a();sg(b,-1);if(this.a){var b=b.N(),c=pj(b).rotation,d=this.d,c=b.constrainRotation(c,0);wj(a,b,c,d,250)}return!1}return!0};Uj.prototype.Aa=function(a){return 2<=this.b.length?(a=a.map,this.d=null,this.e=void 0,this.a=!1,this.f=0,this.i||sg(a.a(),1),a.K(),!0):!1};function Vj(a){a=u(a)?a:{};Gj.call(this);this.d=null;this.f=u(a.duration)?a.duration:400;this.a=void 0;this.e=1}E(Vj,Gj);Vj.prototype.Ia=function(a){var b=1,c=this.b[0],d=this.b[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);u(this.a)&&(b=this.a/e);this.a=e;1!=b&&(this.e=b);a=a.map;var e=a.a().N(),c=pj(e),d=Lh(a.b),f=Hj(this.b);f[0]-=d.x;f[1]-=d.y;this.d=a.fa(f);a.K();yj(a,e,c.resolution*b,this.d)};
|
||||
Vj.prototype.Ba=function(a){if(2>this.b.length){a=a.map;var b=a.a();sg(b,-1);var b=b.N(),c=pj(b).resolution,d=this.d,e=this.f,c=b.constrainResolution(c,0,this.e-1);yj(a,b,c,d,e);return!1}return!0};Vj.prototype.Aa=function(a){return 2<=this.b.length?(a=a.map,this.d=null,this.a=void 0,this.e=1,this.i||sg(a.a(),1),a.K(),!0):!1};function Wj(a){a=u(a)?a:{};var b=new Id,c=new Ag(-0.005,0.05,100);(u(a.altShiftDragRotate)?a.altShiftDragRotate:1)&&b.push(new Jj);(u(a.doubleClickZoom)?a.doubleClickZoom:1)&&b.push(new zj({delta:a.zoomDelta,duration:a.zoomDuration}));(u(a.dragPan)?a.dragPan:1)&&b.push(new Ij({kinetic:c}));(u(a.pinchRotate)?a.pinchRotate:1)&&b.push(new Uj);(u(a.pinchZoom)?a.pinchZoom:1)&&b.push(new Vj({duration:a.zoomDuration}));if(u(a.keyboard)?a.keyboard:1)b.push(new Rj),b.push(new Sj({delta:a.zoomDelta,duration:a.zoomDuration}));
|
||||
(u(a.mouseWheelZoom)?a.mouseWheelZoom:1)&&b.push(new Tj({duration:a.zoomDuration}));(u(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Qj);return b};function Xj(a){yd.call(this);this.l=lg(a.projection);this.M=u(a.extent)?a.extent:u(a.projection)?this.l.p():null;this.d=u(a.attributions)?a.attributions:null;this.r=a.logo;this.f=u(a.state)?a.state:1}E(Xj,yd);Xj.prototype.k=da;Xj.prototype.p=k("M");Xj.prototype.Z=k("f");function Yj(a,b){a.f=b;a.s()};function S(a){N.call(this);a=cc(a);a.brightness=u(a.brightness)?a.brightness:0;a.contrast=u(a.contrast)?a.contrast:1;a.hue=u(a.hue)?a.hue:0;a.opacity=u(a.opacity)?a.opacity:1;a.saturation=u(a.saturation)?a.saturation:1;a.visible=u(a.visible)?a.visible:!0;a.maxResolution=u(a.maxResolution)?a.maxResolution:Infinity;a.minResolution=u(a.minResolution)?a.minResolution:0;this.U(a)}E(S,N);S.prototype.j=function(){return this.t("brightness")};S.prototype.getBrightness=S.prototype.j;S.prototype.k=function(){return this.t("contrast")};
|
||||
S.prototype.getContrast=S.prototype.k;S.prototype.n=function(){return this.t("hue")};S.prototype.getHue=S.prototype.n;function Zj(a){var b=a.j(),c=a.k(),d=a.n(),e=a.v(),f=a.q(),g=a.Qc(),h=a.b(),m=a.o();a=a.r();return{brightness:u(b)?Ob(b,-1,1):0,contrast:u(c)?Math.max(c,0):1,hue:u(d)?d:0,opacity:u(e)?Ob(e,0,1):1,saturation:u(f)?Math.max(f,0):1,jd:g,visible:u(h)?!!h:!0,maxResolution:u(m)?m:Infinity,minResolution:u(a)?Math.max(a,0):0}}S.prototype.o=function(){return this.t("maxResolution")};
|
||||
S.prototype.getMaxResolution=S.prototype.o;S.prototype.r=function(){return this.t("minResolution")};S.prototype.getMinResolution=S.prototype.r;S.prototype.v=function(){return this.t("opacity")};S.prototype.getOpacity=S.prototype.v;S.prototype.q=function(){return this.t("saturation")};S.prototype.getSaturation=S.prototype.q;S.prototype.b=function(){return this.t("visible")};S.prototype.getVisible=S.prototype.b;S.prototype.Oa=function(a){this.u("brightness",a)};S.prototype.setBrightness=S.prototype.Oa;
|
||||
S.prototype.Pa=function(a){this.u("contrast",a)};S.prototype.setContrast=S.prototype.Pa;S.prototype.Qa=function(a){this.u("hue",a)};S.prototype.setHue=S.prototype.Qa;S.prototype.Ra=function(a){this.u("maxResolution",a)};S.prototype.setMaxResolution=S.prototype.Ra;S.prototype.zc=function(a){this.u("minResolution",a)};S.prototype.setMinResolution=S.prototype.zc;S.prototype.Ac=function(a){this.u("opacity",a)};S.prototype.setOpacity=S.prototype.Ac;S.prototype.Bc=function(a){this.u("saturation",a)};
|
||||
S.prototype.setSaturation=S.prototype.Bc;S.prototype.Cc=function(a){this.u("visible",a)};S.prototype.setVisible=S.prototype.Cc;function ak(a){var b=u(a)?a:{};a=cc(b);delete a.layers;b=b.layers;S.call(this,a);this.a=null;K(this,Ed("layers"),this.Rf,!1,this);u(b)?ha(b)&&(b=new Id(Ra(b))):b=new Id;this.d(b)}E(ak,S);l=ak.prototype;l.Nd=function(){this.b()&&this.s()};
|
||||
l.Rf=function(){null!==this.a&&(Ka(Xb(this.a),L),this.a=null);var a=this.ab();if(null!=a){this.a={add:K(a,"add",this.Qf,!1,this),remove:K(a,"remove",this.Sf,!1,this)};var a=a.a,b,c,d;b=0;for(c=a.length;b<c;b++)d=a[b],this.a[v(d).toString()]=K(d,["propertychange","change"],this.Nd,!1,this)}this.s()};l.Qf=function(a){a=a.element;this.a[v(a).toString()]=K(a,["propertychange","change"],this.Nd,!1,this);this.s()};l.Sf=function(a){a=v(a.element).toString();L(this.a[a]);delete this.a[a];this.s()};l.ab=function(){return this.t("layers")};
|
||||
ak.prototype.getLayers=ak.prototype.ab;ak.prototype.d=function(a){this.u("layers",a)};ak.prototype.setLayers=ak.prototype.d;ak.prototype.Oc=function(a){var b=u(a)?a:[];this.ab().forEach(function(a){a.Oc(b)});return b};
|
||||
ak.prototype.Nc=function(a){var b=u(a)?a:{layers:[],layerStates:[]},c=b.layers.length;this.ab().forEach(function(a){a.Nc(b)});a=Zj(this);var d,e;for(d=b.layerStates.length;c<d;c++)e=b.layerStates[c],e.brightness=Ob(e.brightness+a.brightness,-1,1),e.contrast*=a.contrast,e.hue+=a.hue,e.opacity*=a.opacity,e.saturation*=a.saturation,e.visible=e.visible&&a.visible,e.maxResolution=Math.min(e.maxResolution,a.maxResolution),e.minResolution=Math.max(e.minResolution,a.minResolution);return b};
|
||||
ak.prototype.Qc=ba(1);function bk(a){Rf.call(this,{code:a,units:"m",extent:ck,global:!0})}E(bk,Rf);var dk=6378137*Math.PI,ck=[-dk,-dk,dk,dk],fg=La(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913","urn:ogc:def:crs:EPSG:6.18:3:3857"],function(a){return new bk(a)});function gg(a,b,c){var d=a.length;c=1<c?c:2;u(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 hg(a,b,c){var d=a.length;c=1<c?c:2;u(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}bk.prototype.d=function(a,b){return a/((Math.exp(b[1]/6378137)+Math.exp(-(b[1]/6378137)))/2)};function ek(a,b){Rf.call(this,{code:a,units:"degrees",extent:fk,axisOrientation:b,global:!0})}E(ek,Rf);var fk=[-180,-90,180,90],ig=[new ek("CRS:84"),new ek("EPSG:4326","neu"),new ek("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new ek("urn:ogc:def:crs:OGC:1.3:CRS84"),new ek("urn:ogc:def:crs:OGC:2:84"),new ek("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new ek("urn:x-ogc:def:crs:EPSG:4326","neu")];ek.prototype.d=function(a){return a};function gk(){ag(fg);ag(ig);eg()};function hk(a){var b=cc(a);delete b.source;S.call(this,b);this.a=a.source;K(this.a,"change",this.Vg,!1,this)}E(hk,S);l=hk.prototype;l.Oc=function(a){a=u(a)?a:[];a.push(this);return a};l.Nc=function(a){a=u(a)?a:{layers:[],layerStates:[]};a.layers.push(this);a.layerStates.push(Zj(this));return a};l.Ug=k("a");l.Qc=function(){return this.a.f};l.Vg=function(){this.s()};function ik(a,b,c,d,e){wd.call(this);this.i=e;this.j=a;this.b=c;this.d=b;this.state=d}E(ik,wd);ik.prototype.p=k("j");function jk(a,b,c,d,e,f){ik.call(this,a,b,c,0,d);this.g=e;this.a=new Image;null!==f&&(this.a.crossOrigin=f);this.f={};this.c=null;this.state=0}E(jk,ik);jk.prototype.e=function(a){if(u(a)){var b=v(a);if(b in this.f)return this.f[b];a=Zb(this.f)?this.a:this.a.cloneNode(!1);return this.f[b]=a}return this.a};jk.prototype.k=function(){this.state=3;Ka(this.c,L);this.c=null;M(this,"change")};jk.prototype.l=function(){this.state=2;Ka(this.c,L);this.c=null;M(this,"change")};
|
||||
function kk(a){0==a.state&&(a.state=1,a.c=[ed(a.a,"error",a.k,!1,a),ed(a.a,"load",a.l,!1,a)],a.a.src=a.g)};function lk(a){this.minZoom=u(a.minZoom)?a.minZoom:0;this.a=a.resolutions;this.maxZoom=this.a.length-1;this.d=u(a.origin)?a.origin:null;this.f=null;u(a.origins)&&(this.f=a.origins);this.b=null;u(a.tileSizes)&&(this.b=a.tileSizes);this.e=u(a.tileSize)?a.tileSize:null===this.b?256:void 0}var mk=new Za(0,0,0);l=lk.prototype;l.fc=function(a,b,c,d,e){e=nk(this,a,e);for(a=a.a-1;a>=this.minZoom;){if(b.call(c,a,ok(this,e,a,d)))return!0;--a}return!1};l.uf=k("minZoom");
|
||||
l.Tb=function(a){return null===this.d?this.f[a]:this.d};l.Wa=k("a");l.hc=function(a,b,c){return a.a<this.maxZoom?(c=nk(this,a,c),ok(this,c,a.a+1,b)):null};function pk(a,b,c,d){qk(a,b[0],b[1],c,!1,mk);var e=mk.x,f=mk.y;qk(a,b[2],b[3],c,!0,mk);return db(e,mk.x,f,mk.y,d)}function ok(a,b,c,d){return pk(a,b,a.a[c],d)}function rk(a,b){var c=a.Tb(b.a),d=a.a[b.a],e=a.ga(b.a);return[c[0]+(b.x+0.5)*e*d,c[1]+(b.y+0.5)*e*d]}
|
||||
function nk(a,b,c){var d=a.Tb(b.a),e=a.a[b.a];a=a.ga(b.a);var f=d[0]+b.x*a*e;b=d[1]+b.y*a*e;return Ge(f,b,f+a*e,b+a*e,c)}function qk(a,b,c,d,e,f){var g=bf(a.a,d,0),h=d/a.a[g],m=a.Tb(g);a=a.ga(g);b=h*(b-m[0])/(d*a);c=h*(c-m[1])/(d*a);e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));return $a(g,b,c,f)}l.ga=function(a){return u(this.e)?this.e:this.b[a]};function sk(a){Xj.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.O=u(a.opaque)?a.opaque:!1;this.q=null!=a.pixelRatios?a.pixelRatios:[1];this.tileGrid=u(a.tileGrid)?a.tileGrid:null}E(sk,Xj);l=sk.prototype;l.Zc=od;l.Kc=function(a,b,c,d){var e=!0,f,g,h,m;for(h=d.a;h<=d.d;++h)for(m=d.b;m<=d.c;++m)g=this.Ha(c,h,m),a[c]&&a[c][g]||(f=b(c,h,m),null===f?e=!1:(a[c]||(a[c]={}),a[c][g]=f));return e};l.gc=ba(0);l.Ha=ab;l.Wa=function(){return this.tileGrid.Wa()};
|
||||
l.Ld=function(a){for(var b=1,c=0,d=this.q.length;c<d&&!(b=this.q[c],b>=a);++c);return b};l.Bf=k("tileGrid");function tk(a,b){var c;if(null===a.tileGrid){if(c=b.f,null===c){c=b.p();for(var d=null===c?360*Pf.degrees/b.b():Math.max(c[2]-c[0],c[3]-c[1]),e=u(void 0)?void 0:256,f=Array((u(void 0)?NaN:42)+1),d=d/e,g=0,h=f.length;g<h;++g)f[g]=d/Math.pow(2,g);c=new lk({origin:null===c?[0,0]:Pe(c),resolutions:f,tileSize:e});b.f=c}}else c=a.tileGrid;return c}
|
||||
l.Ob=function(a,b,c){a=tk(this,c).ga(a);b=this.Ld(b);return 1==b?a:a*b+0.5|0};l.xe=da;function uk(a,b){Bc.call(this);this.d=a;this.a=b}E(uk,Bc);uk.prototype.f=da;uk.prototype.l=function(a){2===a.target.state&&vk(this)};function vk(a){var b=a.a;b.b()&&1==b.Qc()&&a.d.f.K()}function wk(a,b){b.Zc()&&a.postRenderFunctions.push(va(function(a,b,e){b=v(a).toString();a.ae(e.usedTiles[b])},b))}function xk(a,b){if(null!=b){var c,d,e;d=0;for(e=b.length;d<e;++d)c=b[d],a[v(c).toString()]=c}}function yk(a,b){var c=b.r;u(c)&&(a.logos[c]="")}
|
||||
function zk(a,b,c,d){b=v(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],d.a<a.a&&(a.a=d.a),d.d>a.d&&(a.d=d.d),d.b<a.b&&(a.b=d.b),d.c>a.c&&(a.c=d.c)):a[b][c]=d:(a[b]={},a[b][c]=d)}function Ak(a,b,c,d){return function(e,f,g){e=b.mb(e,f,g,c,d);return a(e)?e:null}}function Bk(a,b,c){return[b*(Math.round(a[0]/b)+c[0]%2/2),b*(Math.round(a[1]/b)+c[1]%2/2)]}
|
||||
function Ck(a,b,c,d,e,f,g,h,m,n){var p=v(b).toString();p in a.wantedTiles||(a.wantedTiles[p]={});var q=a.wantedTiles[p];a=a.tileQueue;var r=c.minZoom,s,z,x,w,B,A;u(h)||(h=0);for(A=g;A>=r;--A)for(z=ok(c,f,A),x=c.a[A],w=z.a;w<=z.d;++w)for(B=z.b;B<=z.c;++B)g-A<=h?(s=b.mb(A,w,B,d,e),0==s.state&&(q[s.a.toString()]=!0,s.d()in a.b||$i(a,[s,p,rk(c,s.a),x])),u(m)&&m.call(n,s)):b.xe(A,w,B)};function Dk(a){a=u(a)?a:{};this.b=u(a.anchor)?a.anchor:[0.5,0.5];this.c=u(a.anchorOrigin)?a.anchorOrigin:"top-left";this.d=u(a.anchorXUnits)?a.anchorXUnits:"fraction";this.i=u(a.anchorYUnits)?a.anchorYUnits:"fraction";var b=a.src,c=u(a.crossOrigin)?a.crossOrigin:null,d=Ek.Ga(),e;e=c+":"+b;e=e in d.a?d.a[e]:null;null===e&&(e=new Fk(b,c),d.a[c+":"+b]=e,++d.c);this.a=e;this.g=u(a.size)?a.size:null;le.call(this,{opacity:u(a.opacity)?a.opacity:1,rotation:u(a.rotation)?a.rotation:0,scale:u(a.scale)?a.scale:
|
||||
1,se:void 0,rotateWithView:u(a.rotateWithView)?a.rotateWithView:!1})}E(Dk,le);l=Dk.prototype;l.Mb=function(){var a=this.b,b=this.rb();if("fraction"==this.d||"fraction"==this.i){if(null===b)return null;a=this.b.slice();"fraction"==this.d&&(a[0]*=b[0]);"fraction"==this.i&&(a[1]*=b[1])}if("top-left"!=this.c){if(null===b)return null;a===this.b&&(a=this.b.slice());if("top-right"==this.c||"bottom-right"==this.c)a[0]=-a[0]+b[0];if("bottom-left"==this.c||"bottom-right"==this.c)a[1]=-a[1]+b[1]}return a};
|
||||
l.Sb=function(){return this.a.a};l.ee=function(){return this.a.c};l.de=function(){var a=this.a;if(null===a.d)if(a.g){var b=pc("CANVAS"),c=a.e[0],d=a.e[1];b.width=c;b.height=d;b.getContext("2d").fillRect(0,0,c,d);a.d=b}else a.d=a.a;return a.d};l.nh=function(){return this.a.f};l.rb=function(){return null===this.g?this.a.e:this.g};l.Rd=function(a,b){return K(this.a,"change",a,!1,b)};l.fe=function(){var a=this.a;if(0==a.c){a.c=1;a.b=[ed(a.a,"error",a.i,!1,a),ed(a.a,"load",a.j,!1,a)];try{a.a.src=a.f}catch(b){a.i()}}};
|
||||
l.we=function(a,b){fd(this.a,"change",a,!1,b)};function Fk(a,b){wd.call(this);this.d=null;this.a=new Image;null!==b&&(this.a.crossOrigin=b);this.b=null;this.c=0;this.e=null;this.f=a;this.g=!1}E(Fk,wd);Fk.prototype.i=function(){this.c=3;Ka(this.b,L);this.b=null;M(this,"change")};
|
||||
Fk.prototype.j=function(){this.c=2;this.e=[this.a.width,this.a.height];Ka(this.b,L);this.b=null;var a=pc("CANVAS");a.width=1;a.height=1;a=a.getContext("2d");a.drawImage(this.a,0,0);try{a.getImageData(0,0,1,1)}catch(b){this.g=!0}M(this,"change")};function Ek(){this.a={};this.c=0;this.b=32}ea(Ek);Ek.prototype.clear=function(){this.a={};this.c=0};function Gk(a,b,c,d,e,f,g,h){Vd(a);0===b&&0===c||Xd(a,b,c);1==d&&1==e||Zd(a,d,e);0!==f&&$d(a,f);0===g&&0===h||Xd(a,g,h);return a}function Hk(a,b){return a[0]==b[0]&&a[1]==b[1]&&a[4]==b[4]&&a[5]==b[5]&&a[12]==b[12]&&a[13]==b[13]}function Ik(a,b,c){var d=a[1],e=a[5],f=a[13],g=b[0];b=b[1];c[0]=a[0]*g+a[4]*b+a[12];c[1]=d*g+e*b+f;return c};function Jk(a,b){Bc.call(this);this.f=b;this.b={}}E(Jk,Bc);
|
||||
function Kk(a){var b=a.view2DState,c=a.coordinateToPixelMatrix;Gk(c,a.size[0]/2,a.size[1]/2,1/b.resolution,-1/b.resolution,-b.rotation,-b.center[0],-b.center[1]);a=a.pixelToCoordinateMatrix;var b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],h=c[5],m=c[6],n=c[7],p=c[8],q=c[9],r=c[10],s=c[11],z=c[12],x=c[13],w=c[14],c=c[15],B=b*h-d*g,A=b*m-e*g,D=b*n-f*g,H=d*m-e*h,P=d*n-f*h,J=e*n-f*m,U=p*x-q*z,Z=p*w-r*z,na=p*c-s*z,ta=q*w-r*x,R=q*c-s*x,sa=r*c-s*w,ja=B*sa-A*R+D*ta+H*na-P*Z+J*U;0!=ja&&(ja=1/ja,a[0]=(h*sa-m*R+n*ta)*
|
||||
ja,a[1]=(-d*sa+e*R-f*ta)*ja,a[2]=(x*J-w*P+c*H)*ja,a[3]=(-q*J+r*P-s*H)*ja,a[4]=(-g*sa+m*na-n*Z)*ja,a[5]=(b*sa-e*na+f*Z)*ja,a[6]=(-z*J+w*D-c*A)*ja,a[7]=(p*J-r*D+s*A)*ja,a[8]=(g*R-h*na+n*U)*ja,a[9]=(-b*R+d*na-f*U)*ja,a[10]=(z*P-x*D+c*B)*ja,a[11]=(-p*P+q*D-s*B)*ja,a[12]=(-g*ta+h*Z-m*U)*ja,a[13]=(b*ta-d*Z+e*U)*ja,a[14]=(-z*H+x*A-w*B)*ja,a[15]=(p*H-q*A+r*B)*ja)}Jk.prototype.$b=function(a){return new uk(this,a)};Jk.prototype.A=function(){Tb(this.b,function(a){Fc(a)});Jk.C.A.call(this)};
|
||||
function Lk(a,b){var c=v(b).toString();if(c in a.b)return a.b[c];var d=a.$b(b);return a.b[c]=d}Jk.prototype.tc=da;Jk.prototype.q=function(a,b){for(var c in this.b)if(!(null!==b&&c in b.layerStates)){var d=this.b[c];delete this.b[c];Fc(d)}};function Mk(a){a.postRenderFunctions.push(function(){var a=Ek.Ga();if(a.c>a.b){var c=0,d,e;for(d in a.a)e=a.a[d],0!==(c++&3)||id(e)||(delete a.a[d],--a.c)}})}
|
||||
function Nk(a,b){for(var c in a.b)if(!(c in b.layerStates)){b.postRenderFunctions.push(y(a.q,a));break}};function Ok(a){hk.call(this,a)}E(Ok,hk);function Pk(a){hk.call(this,a)}E(Pk,hk);Pk.prototype.d=function(){return this.t("preload")};Pk.prototype.getPreload=Pk.prototype.d;Pk.prototype.g=function(a){this.u("preload",a)};Pk.prototype.setPreload=Pk.prototype.g;Pk.prototype.f=function(){return this.t("useInterimTilesOnError")};Pk.prototype.getUseInterimTilesOnError=Pk.prototype.f;Pk.prototype.l=function(a){this.u("useInterimTilesOnError",a)};Pk.prototype.setUseInterimTilesOnError=Pk.prototype.l;function Qk(a){a=u(a)?a:{};var b=cc(a);delete b.style;hk.call(this,b);this.F=null;this.f=void 0;u(a.style)&&this.g(a.style)}E(Qk,hk);Qk.prototype.Da=k("F");Qk.prototype.Ea=k("f");Qk.prototype.g=function(a){this.F=a;this.f=se(a);this.s()};function Rk(a,b,c,d,e){this.P={};this.b=a;this.v=b;this.i=c;this.f=d;this.yc=e;this.g=this.a=this.c=this.V=this.O=this.M=null;this.o=this.Z=this.q=this.Y=0;this.na=!1;this.j=this.Da=0;this.Ea=!1;this.Oa=0;this.d="";this.l=this.r=this.Qa=this.Pa=0;this.F=this.n=this.k=null;this.e=[];this.Ra=Rd()}
|
||||
function Sk(a,b){if(null!==a.g){var c=cf(b,2,a.f,a.e),d=a.b,e=a.Ra,f=d.globalAlpha;1!=a.o&&(d.globalAlpha=f*a.o);var g=a.Da;a.na&&(g+=a.yc);var h,m;h=0;for(m=c.length;h<m;h+=2){var n=c[h]-a.Y,p=c[h+1]-a.q;a.Ea&&(n=n+0.5|0,p=p+0.5|0);if(0!==g||1!=a.j){var q=n+a.Y,r=p+a.q;Gk(e,q,r,a.j,a.j,g,-q,-r);d.setTransform(e[0],e[1],e[4],e[5],e[12],e[13])}d.drawImage(a.g,n,p,a.Oa,a.Z)}0===g&&1==a.j||d.setTransform(1,0,0,1,0,0);1!=a.o&&(d.globalAlpha=f)}}
|
||||
function Tk(a,b,c,d){var e=0;if(null!==a.F&&""!==a.d){null===a.k||Uk(a,a.k);null===a.n||Vk(a,a.n);var f=a.F,g=a.b,h=a.V;null===h?(g.font=f.font,g.textAlign=f.textAlign,g.textBaseline=f.textBaseline,a.V={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline}):(h.font!=f.font&&(h.font=g.font=f.font),h.textAlign!=f.textAlign&&(h.textAlign=g.textAlign=f.textAlign),h.textBaseline!=f.textBaseline&&(h.textBaseline=g.textBaseline=f.textBaseline));b=cf(b,d,a.f,a.e);for(f=a.b;e<c;e+=d){g=b[e]+a.Pa;
|
||||
h=b[e+1]+a.Qa;if(0!==a.r||1!=a.l){var m=Gk(a.Ra,g,h,a.l,a.l,a.r,-g,-h);f.setTransform(m[0],m[1],m[4],m[5],m[12],m[13])}null===a.n||f.strokeText(a.d,g,h);null===a.k||f.fillText(a.d,g,h)}0===a.r&&1==a.l||f.setTransform(1,0,0,1,0,0)}}function Wk(a,b,c,d,e){a=a.b;a.moveTo(b[c],b[c+1]);var f;for(f=c+2;f<d;f+=2)a.lineTo(b[f],b[f+1]);e&&a.lineTo(b[c],b[c+1]);return d}function Xk(a,b,c,d){var e=a.b,f,g;f=0;for(g=d.length;f<g;++f)c=Wk(a,b,c,d[f],!0),e.closePath();return c}l=Rk.prototype;
|
||||
l.bc=function(a,b){var c=a.toString(),d=this.P[c];u(d)?d.push(b):this.P[c]=[b]};l.Hb=function(a){if(Ve(this.i,a.p())){if(null!==this.c||null!==this.a){null===this.c||Uk(this,this.c);null===this.a||Vk(this,this.a);var b=hf(a,this.f,this.e),c=b[2]-b[0],d=b[3]-b[1],c=Math.sqrt(c*c+d*d),d=this.b;d.beginPath();d.arc(b[0],b[1],c,0,2*Math.PI);null===this.c||d.fill();null===this.a||d.stroke()}""!==this.d&&Tk(this,a.Yc(),2,2)}};
|
||||
l.Jc=function(a,b){var c=a.L();if(null!==c&&Ve(this.i,c.p())){var d=b.a;u(d)||(d=0);this.bc(d,function(a){a.la(b.d,b.b);a.wb(b.e);a.ba(b.c);Yk[c.B()].call(a,c,null)})}};l.Ed=function(a,b){var c=a.a,d,e;d=0;for(e=c.length;d<e;++d){var f=c[d];Yk[f.B()].call(this,f,b)}};l.Lb=function(a){var b=a.h;a=a.a;null===this.g||Sk(this,b);""!==this.d&&Tk(this,b,b.length,a)};l.Kb=function(a){var b=a.h;a=a.a;null===this.g||Sk(this,b);""!==this.d&&Tk(this,b,b.length,a)};
|
||||
l.Ib=function(a){if(Ve(this.i,a.p())){if(null!==this.a){Vk(this,this.a);var b=hf(a,this.f,this.e),c=this.b;c.beginPath();Wk(this,b,0,b.length,!1);c.stroke()}""!==this.d&&(a=Zk(a),Tk(this,a,2,2))}};l.Jb=function(a){var b=a.p();if(Ve(this.i,b)){if(null!==this.a){Vk(this,this.a);var b=hf(a,this.f,this.e),c=this.b;c.beginPath();var d=a.d,e=0,f,g;f=0;for(g=d.length;f<g;++f)e=Wk(this,b,e,d[f],!1);c.stroke()}""!==this.d&&(a=$k(a),Tk(this,a,a.length,2))}};
|
||||
l.ib=function(a){if(Ve(this.i,a.p())){var b;if(null!==this.a||null!==this.c){null===this.c||Uk(this,this.c);null===this.a||Vk(this,this.a);b=hf(a,this.f,this.e);var c=this.b;c.beginPath();Xk(this,b,0,a.d);null===this.c||c.fill();null===this.a||c.stroke()}""!==this.d&&(a=Lf(a),Tk(this,a,2,2))}};
|
||||
l.cc=function(a){if(Ve(this.i,a.p())){var b;if(null!==this.a||null!==this.c){null===this.c||Uk(this,this.c);null===this.a||Vk(this,this.a);b=hf(a,this.f,this.e);var c=this.b,d=a.d,e=0,f,g;f=0;for(g=d.length;f<g;++f){var h=d[f];c.beginPath();e=Xk(this,b,e,h);null===this.c||c.fill();null===this.a||c.stroke()}}""!==this.d&&(a=al(a),Tk(this,a,a.length,2))}};
|
||||
function bl(a){var b=La(Yb(a.P),Number);Va(b);var c,d,e,f,g;c=0;for(d=b.length;c<d;++c)for(e=a.P[b[c].toString()],f=0,g=e.length;f<g;++f)e[f](a)}function Uk(a,b){var c=a.b,d=a.M;null===d?(c.fillStyle=b.fillStyle,a.M={fillStyle:b.fillStyle}):d.fillStyle!=b.fillStyle&&(d.fillStyle=c.fillStyle=b.fillStyle)}
|
||||
function Vk(a,b){var c=a.b,d=a.O;null===d?(c.lineCap=b.lineCap,I.Yb&&c.setLineDash(b.lineDash),c.lineJoin=b.lineJoin,c.lineWidth=b.lineWidth,c.miterLimit=b.miterLimit,c.strokeStyle=b.strokeStyle,a.O={lineCap:b.lineCap,lineDash:b.lineDash,lineJoin:b.lineJoin,lineWidth:b.lineWidth,miterLimit:b.miterLimit,strokeStyle:b.strokeStyle}):(d.lineCap!=b.lineCap&&(d.lineCap=c.lineCap=b.lineCap),I.Yb&&!Xa(d.lineDash,b.lineDash)&&c.setLineDash(d.lineDash=b.lineDash),d.lineJoin!=b.lineJoin&&(d.lineJoin=c.lineJoin=
|
||||
b.lineJoin),d.lineWidth!=b.lineWidth&&(d.lineWidth=c.lineWidth=b.lineWidth),d.miterLimit!=b.miterLimit&&(d.miterLimit=c.miterLimit=b.miterLimit),d.strokeStyle!=b.strokeStyle&&(d.strokeStyle=c.strokeStyle=b.strokeStyle))}
|
||||
l.la=function(a,b){if(null===a)this.c=null;else{var c=a.a;this.c={fillStyle:de(null===c?he:c)}}if(null===b)this.a=null;else{var c=b.a,d=b.b,e=b.d,f=b.e,g=b.c,h=b.f;this.a={lineCap:u(d)?d:"round",lineDash:null!=e?e:ie,lineJoin:u(f)?f:"round",lineWidth:this.v*(u(g)?g:1),miterLimit:u(h)?h:10,strokeStyle:de(null===c?je:c)}}};
|
||||
l.wb=function(a){if(null===a)this.g=null;else{var b=a.Mb(),c=a.Sb(1),d=a.j,e=a.k,f=a.e,g=a.f,h=a.rb();a=a.l;this.Y=b[0];this.q=b[1];this.Z=h[1];this.g=c;this.o=u(d)?d:1;this.na=u(e)?e:!1;this.Da=u(f)?f:0;this.j=u(g)?g:1;this.Ea=u(a)?a:!1;this.Oa=h[0]}};
|
||||
l.ba=function(a){if(null===a)this.d="";else{var b=a.c;null===b?this.k=null:(b=b.a,this.k={fillStyle:de(null===b?he:b)});var c=a.e;if(null===c)this.n=null;else{var b=c.a,d=c.b,e=c.d,f=c.e,g=c.c,c=c.f;this.n={lineCap:u(d)?d:"round",lineDash:null!=e?e:ie,lineJoin:u(f)?f:"round",lineWidth:this.v*(u(g)?g:1),miterLimit:u(c)?c:10,strokeStyle:de(null===b?je:b)}}var b=a.a,d=a.j,e=a.k,f=a.b,g=a.d,c=a.f,h=a.i;a=a.g;this.F={font:u(b)?b:"10px sans-serif",textAlign:u(h)?h:"center",textBaseline:u(a)?a:"middle"};
|
||||
this.d=u(c)?c:"";this.Pa=u(d)?d:0;this.Qa=u(e)?e:0;this.r=u(f)?f:0;this.l=this.v*(u(g)?g:1)}};var Yk={Point:Rk.prototype.Lb,LineString:Rk.prototype.Ib,Polygon:Rk.prototype.ib,MultiPoint:Rk.prototype.Kb,MultiLineString:Rk.prototype.Jb,MultiPolygon:Rk.prototype.cc,GeometryCollection:Rk.prototype.Ed,Circle:Rk.prototype.Hb};function cl(a,b){uk.call(this,a,b);this.v=Rd()}E(cl,uk);cl.prototype.k=function(a,b,c){dl(this,"precompose",c,a,void 0);var d=this.n();if(null!==d){var e=this.j();c.globalAlpha=b.opacity;if(0===a.view2DState.rotation){b=e[13];var f=d.width*e[0],g=d.height*e[5];c.drawImage(d,0,0,+d.width,+d.height,Math.round(e[12]),Math.round(b),Math.round(f),Math.round(g))}else c.setTransform(e[0],e[1],e[4],e[5],e[12],e[13]),c.drawImage(d,0,0),c.setTransform(1,0,0,1,0,0)}dl(this,"postcompose",c,a,void 0)};
|
||||
function dl(a,b,c,d,e){var f=a.a;jd(f.T,b)&&(a=u(e)?e:el(a,d),a=new Rk(c,d.pixelRatio,d.extent,a,d.view2DState.rotation),M(f,new te(b,f,a,d,c,null)),bl(a))}function el(a,b){var c=b.view2DState,d=b.pixelRatio;return Gk(a.v,d*b.size[0]/2,d*b.size[1]/2,d/c.resolution,-d/c.resolution,-c.rotation,-c.center[0],-c.center[1])};function fl(a){Xj.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.j=u(a.resolutions)?a.resolutions:null}E(fl,Xj);fl.prototype.Wa=k("j");function gl(a,b){null===a.j||(b=a.j[bf(a.j,b,0)]);return b};function hl(a,b){cl.call(this,a,b);this.c=null;this.e=Rd()}E(hl,cl);hl.prototype.f=function(a,b,c,d){var e=this.a;return e.a.k(b.extent,b.view2DState.resolution,b.view2DState.rotation,a,function(a){return c.call(d,a,e)})};hl.prototype.n=function(){return null===this.c?null:this.c.e()};hl.prototype.j=k("e");
|
||||
hl.prototype.b=function(a){var b=a.pixelRatio,c=a.view2DState,d=c.center,e=c.resolution,f=c.rotation,g=this.a.a,h=a.viewHints;h[0]||h[1]||(c=g.qb(a.extent,e,b,c.projection),null!==c&&(h=c.state,0==h?(ed(c,"change",this.l,!1,this),kk(c)):2==h&&(this.c=c)));if(null!==this.c){var c=this.c,h=c.p(),m=c.d,n=c.b,e=b*m/(e*n);Gk(this.e,b*a.size[0]/2,b*a.size[1]/2,e,e,f,n*(h[0]-d[0])/m,n*(d[1]-h[3])/m);xk(a.attributions,c.i);yk(a,g)}};function il(a,b){cl.call(this,a,b);this.o=this.e=this.i=null;this.r=Rd();this.q=NaN;this.g=this.c=null}E(il,cl);il.prototype.n=k("i");il.prototype.j=k("r");
|
||||
il.prototype.b=function(a){var b=a.pixelRatio,c=a.view2DState,d=c.projection,e=this.a,f=e.a,g=tk(f,d),h=f.gc(),m=bf(g.a,c.resolution,0),n=f.Ob(m,a.pixelRatio,d),p=g.a[m],q=p/(n/g.ga(m)),r=c.center,s;p==c.resolution?(r=Bk(r,p,a.size),s=Re(r,p,c.rotation,a.size)):s=a.extent;var z=pk(g,s,p),x=n*(z.d-z.a+1),w=n*(z.c-z.b+1),B,A;null===this.i?(B=pc("CANVAS"),B.width=x,B.height=w,A=B.getContext("2d"),this.i=B,this.e=[x,w],this.o=A):(B=this.i,A=this.o,this.e[0]<x||this.e[1]<w?(B.width=x,B.height=w,this.e=
|
||||
[x,w],this.c=null):(x=this.e[0],w=this.e[1],m==this.q&&this.c.a<=z.a&&z.d<=this.c.d&&this.c.b<=z.b&&z.c<=this.c.c||(this.c=null)));var D,H;null===this.c?(x/=n,w/=n,D=z.a-Math.floor((x-(z.d-z.a+1))/2),H=z.b-Math.floor((w-(z.c-z.b+1))/2),this.q=m,this.c=new cb(D,D+x-1,H,H+w-1),this.g=Array(x*w),w=this.c):(w=this.c,x=w.d-w.a+1);B={};B[m]={};var P=[],J=y(f.Kc,f,B,Ak(function(a){return null!==a&&2==a.state},f,b,d)),U=e.f();u(U)||(U=!0);var Z=Ee(),na=new cb(0,0,0,0),ta,R,sa;for(H=z.a;H<=z.d;++H)for(sa=
|
||||
z.b;sa<=z.c;++sa)R=f.mb(m,H,sa,b,d),D=R.state,2==D||4==D||3==D&&!U?B[m][R.a.toString()]=R:(ta=g.fc(R.a,J,null,na,Z),ta||(P.push(R),ta=g.hc(R.a,na,Z),null===ta||J(m+1,ta)));J=0;for(ta=P.length;J<ta;++J)R=P[J],H=n*(R.a.x-w.a),sa=n*(w.c-R.a.y),A.clearRect(H,sa,n,n);P=La(Yb(B),Number);Va(P);var ja=f.O,Wb=Te(nk(g,new Za(m,w.a,w.c),Z)),nb,Bb,sh,Zf,Yd,Nj,J=0;for(ta=P.length;J<ta;++J)if(nb=P[J],n=f.Ob(nb,b,d),Zf=B[nb],nb==m)for(sh in Zf)R=Zf[sh],Bb=(R.a.y-w.b)*x+(R.a.x-w.a),this.g[Bb]!=R&&(H=n*(R.a.x-w.a),
|
||||
sa=n*(w.c-R.a.y),D=R.state,4!=D&&(3!=D||U)&&ja||A.clearRect(H,sa,n,n),2==D&&A.drawImage(R.b(),h,h,n,n,H,sa,n,n),this.g[Bb]=R);else for(sh in nb=g.a[nb]/p,Zf)for(R=Zf[sh],Bb=nk(g,R.a,Z),H=(Bb[0]-Wb[0])/q,sa=(Wb[1]-Bb[3])/q,Nj=nb*n,Yd=nb*n,D=R.state,4!=D&&ja||A.clearRect(H,sa,Nj,Yd),2==D&&A.drawImage(R.b(),h,h,n,n,H,sa,Nj,Yd),R=ok(g,Bb,m,na),D=Math.max(R.a,w.a),sa=Math.min(R.d,w.d),H=Math.max(R.b,w.b),R=Math.min(R.c,w.c);D<=sa;++D)for(Yd=H;Yd<=R;++Yd)Bb=(Yd-w.b)*x+(D-w.a),this.g[Bb]=void 0;zk(a.usedTiles,
|
||||
f,m,z);Ck(a,f,g,b,d,s,m,e.d());wk(a,f);yk(a,f);Gk(this.r,b*a.size[0]/2,b*a.size[1]/2,b*q/c.resolution,b*q/c.resolution,c.rotation,(Wb[0]-r[0])/q,(r[1]-Wb[1])/q)};var jl=["Polygon","LineString","Image","Text"];function kl(a,b,c){this.Z=a;this.v=b;this.e=0;this.resolution=c;this.Y=this.r=null;this.c=[];this.coordinates=[];this.O=Rd();this.a=[];this.M=[];this.d=Ee();this.V=Rd();this.F={}}
|
||||
function ll(a,b,c,d,e,f){var g=a.coordinates.length,h=a.Lc(),m=[b[c],b[c+1]],n=[NaN,NaN],p=!0,q,r,s;for(q=c+e;q<d;q+=e){n[0]=b[q];n[1]=b[q+1];s=h[1];var z=h[2],x=h[3],w=n[0],B=n[1],A=0;w<h[0]?A=A|16:w>z&&(A=A|4);B<s?A|=8:B>x&&(A|=2);0===A&&(A=1);s=A;s!==r?(p&&(a.coordinates[g++]=m[0],a.coordinates[g++]=m[1]),a.coordinates[g++]=n[0],a.coordinates[g++]=n[1],p=!1):1===s?(a.coordinates[g++]=n[0],a.coordinates[g++]=n[1],p=!1):p=!0;m[0]=n[0];m[1]=n[1];r=s}q===c+e&&(a.coordinates[g++]=m[0],a.coordinates[g++]=
|
||||
m[1]);f&&(a.coordinates[g++]=b[c],a.coordinates[g++]=b[c+1]);return g}function ml(a,b,c){a.r=[0,b,0];a.c.push(a.r);a.F[a.c.length-1]=c.toString();a.Y=[0,b,0];a.a.push(a.Y)}
|
||||
function nl(a,b,c,d,e,f,g,h){var m;Hk(d,a.O)?m=a.M:(m=cf(a.coordinates,2,d,a.M),Ud(a.O,d));d=0;for(var n=g.length,p=0,q,r=a.V;d<n;){var s=g[d],z,x,w,B;switch(s[0]){case 0:u(G(f,a.F[d]))?d=s[2]:++d;break;case 1:b.beginPath();++d;break;case 2:q=m[p];var A=m[p+1],D=m[p+2]-q,s=m[p+3]-A;b.arc(q,A,Math.sqrt(D*D+s*s),0,2*Math.PI,!0);p+=4;++d;break;case 3:b.closePath();++d;break;case 4:p=s[1];q=s[2];z=s[3];w=s[4]*c;var H=s[5]*c,P=s[6]*c;x=s[7];var A=s[9],D=s[10],J=s[11],U=s[12]*c;for(s[8]&&(A+=e);p<q;p+=
|
||||
2){s=m[p]-w;B=m[p+1]-H;J&&(s=s+0.5|0,B=B+0.5|0);if(1!=D||0!==A){var Z=s+w,na=B+H;Gk(r,Z,na,D,D,A,-Z,-na);b.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}Z=b.globalAlpha;1!=x&&(b.globalAlpha=Z*x);b.drawImage(z,s,B,U,P);1!=x&&(b.globalAlpha=Z);1==D&&0===A||b.setTransform(1,0,0,1,0,0)}++d;break;case 5:p=s[1];q=s[2];w=s[3];H=s[4];P=s[5];A=s[6];D=s[7]*c;z=s[8];for(x=s[9];p<q;p+=2){s=m[p]+H;B=m[p+1]+P;if(1!=D||0!==A)Gk(r,s,B,D,D,A,-s,-B),b.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]);x&&b.strokeText(w,
|
||||
s,B);z&&b.fillText(w,s,B);1==D&&0===A||b.setTransform(1,0,0,1,0,0)}++d;break;case 6:if(u(h)&&(q=s[1],q=h(q,s[2])))return q;++d;break;case 7:b.fill();++d;break;case 8:p=s[1];q=s[2];b.moveTo(m[p],m[p+1]);for(p+=2;p<q;p+=2)b.lineTo(m[p],m[p+1]);++d;break;case 9:b.fillStyle=s[1];++d;break;case 10:b.strokeStyle=s[1];b.lineWidth=s[2]*c;b.lineCap=s[3];b.lineJoin=s[4];b.miterLimit=s[5];I.Yb&&b.setLineDash(s[6]);++d;break;case 11:b.font=s[1];b.textAlign=s[2];b.textBaseline=s[3];++d;break;case 12:b.stroke();
|
||||
++d;break;default:++d}}}function pl(a){var b=a.a;b.reverse();var c,d=b.length,e,f,g=-1;for(c=0;c<d;++c)if(e=b[c],f=e[0],6==f)g=c;else if(0==f){e[2]=c;e=a.a;for(f=c;g<f;){var h=e[g];e[g]=e[f];e[f]=h;++g;--f}g=-1}}function ql(a,b,c){a.r[2]=a.c.length;a.r=null;a.Y[2]=a.a.length;a.Y=null;b=[6,b,c];a.c.push(b);a.a.push(b)}kl.prototype.rc=da;kl.prototype.Lc=k("v");kl.prototype.p=k("d");
|
||||
function rl(a,b,c){kl.call(this,a,b,c);this.g=this.q=null;this.o=this.P=this.n=this.l=this.k=this.j=this.i=this.f=this.b=void 0}E(rl,kl);rl.prototype.Lb=function(a,b){if(null!==this.g){Ne(this.d,a.p());ml(this,a,v(b));var c=a.h,d=this.coordinates.length,c=ll(this,c,0,c.length,a.a,!1);this.c.push([4,d,c,this.g,this.b,this.f,this.i,this.j,this.k,this.l,this.n,this.P,this.o]);this.a.push([4,d,c,this.q,this.b,this.f,this.i,this.j,this.k,this.l,this.n,this.P,this.o]);ql(this,a,b)}};
|
||||
rl.prototype.Kb=function(a,b){if(null!==this.g){Ne(this.d,a.p());ml(this,a,v(b));var c=a.h,d=this.coordinates.length,c=ll(this,c,0,c.length,a.a,!1);this.c.push([4,d,c,this.g,this.b,this.f,this.i,this.j,this.k,this.l,this.n,this.P,this.o]);this.a.push([4,d,c,this.q,this.b,this.f,this.i,this.j,this.k,this.l,this.n,this.P,this.o]);ql(this,a,b)}};rl.prototype.rc=function(){pl(this);this.f=this.b=void 0;this.g=this.q=null;this.o=this.P=this.l=this.k=this.j=this.n=this.i=void 0};
|
||||
rl.prototype.wb=function(a){var b=a.Mb(),c=a.rb(),d=a.de(1),e=a.Sb(1);this.b=b[0];this.f=b[1];this.q=d;this.g=e;this.i=c[1];this.j=a.j;this.k=a.k;this.l=a.e;this.n=a.f;this.P=a.l;this.o=c[0]};function sl(a,b,c){kl.call(this,a,b,c);this.b={Db:void 0,yb:void 0,zb:null,Ab:void 0,Bb:void 0,Cb:void 0,Uc:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}E(sl,kl);
|
||||
function tl(a,b,c,d,e){var f=a.coordinates.length;b=ll(a,b,c,d,e,!1);f=[8,f,b];a.c.push(f);a.a.push(f);return d}l=sl.prototype;l.Lc=function(){var a=this.v;this.e&&(a=He(a,this.resolution*(this.e+1)/2));return a};
|
||||
function ul(a){var b=a.b,c=b.strokeStyle,d=b.lineCap,e=b.lineDash,f=b.lineJoin,g=b.lineWidth,h=b.miterLimit;b.Db==c&&b.yb==d&&Xa(b.zb,e)&&b.Ab==f&&b.Bb==g&&b.Cb==h||(b.Uc!=a.coordinates.length&&(a.c.push([12]),b.Uc=a.coordinates.length),a.c.push([10,c,g,d,f,h,e],[1]),b.Db=c,b.yb=d,b.zb=e,b.Ab=f,b.Bb=g,b.Cb=h)}
|
||||
l.Ib=function(a,b){var c=this.b,d=c.lineWidth;u(c.strokeStyle)&&u(d)&&(Ne(this.d,a.p()),ul(this),ml(this,a,v(b)),this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash],[1]),c=a.h,tl(this,c,0,c.length,a.a),this.a.push([12]),ql(this,a,b))};
|
||||
l.Jb=function(a,b){var c=this.b,d=c.lineWidth;if(u(c.strokeStyle)&&u(d)){Ne(this.d,a.p());ul(this);ml(this,a,v(b));this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash],[1]);var c=a.d,d=a.h,e=a.a,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=tl(this,d,f,c[g],e);this.a.push([12]);ql(this,a,b)}};l.rc=function(){this.b.Uc!=this.coordinates.length&&this.c.push([12]);pl(this);this.b=null};
|
||||
l.la=function(a,b){var c=b.a;this.b.strokeStyle=de(null===c?je:c);c=b.b;this.b.lineCap=u(c)?c:"round";c=b.d;this.b.lineDash=null===c?ie:c;c=b.e;this.b.lineJoin=u(c)?c:"round";c=b.c;this.b.lineWidth=u(c)?c:1;c=b.f;this.b.miterLimit=u(c)?c:10;this.e=Math.max(this.e,this.b.lineWidth)};
|
||||
function vl(a,b,c){kl.call(this,a,b,c);this.b={Cd:void 0,Db:void 0,yb:void 0,zb:null,Ab:void 0,Bb:void 0,Cb:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}E(vl,kl);
|
||||
function wl(a,b,c,d,e){var f=a.b,g=[1];a.c.push(g);a.a.push(g);var h,g=0;for(h=d.length;g<h;++g){var m=d[g],n=a.coordinates.length;c=ll(a,b,c,m,e,!0);c=[8,n,c];n=[3];a.c.push(c,n);a.a.push(c,n);c=m}b=[7];a.a.push(b);u(f.fillStyle)&&a.c.push(b);u(f.strokeStyle)&&(f=[12],a.c.push(f),a.a.push(f));return c}l=vl.prototype;
|
||||
l.Hb=function(a,b){var c=this.b,d=c.strokeStyle;if(u(c.fillStyle)||u(d)){Ne(this.d,a.p());xl(this);ml(this,a,v(b));this.a.push([9,de(he)]);u(c.strokeStyle)&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);d=a.h;ll(this,d,0,d.length,a.a,!1);var d=[1],e=[2];this.c.push(d,e);this.a.push(d,e);ql(this,a,b);d=[7];this.a.push(d);u(c.fillStyle)&&this.c.push(d);u(c.strokeStyle)&&(c=[12],this.c.push(c),this.a.push(c))}};
|
||||
l.ib=function(a,b){var c=this.b,d=c.strokeStyle;if(u(c.fillStyle)||u(d))Ne(this.d,a.p()),xl(this),ml(this,a,v(b)),this.a.push([9,de(he)]),u(c.strokeStyle)&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]),c=a.d,d=Kf(a),wl(this,d,0,c,a.a),ql(this,a,b)};
|
||||
l.cc=function(a,b){var c=this.b,d=c.strokeStyle;if(u(c.fillStyle)||u(d)){Ne(this.d,a.p());xl(this);ml(this,a,v(b));this.a.push([9,de(he)]);u(c.strokeStyle)&&this.a.push([10,c.strokeStyle,c.lineWidth,c.lineCap,c.lineJoin,c.miterLimit,c.lineDash]);var c=a.d,d=yl(a),e=a.a,f=0,g,h;g=0;for(h=c.length;g<h;++g)f=wl(this,d,f,c[g],e);ql(this,a,b)}};l.rc=function(){pl(this);this.b=null;var a=this.Z;if(0!==a){var b=this.coordinates,c,d;c=0;for(d=b.length;c<d;++c)b[c]=a*Math.round(b[c]/a)}};
|
||||
l.Lc=function(){var a=this.v;this.e&&(a=He(a,this.resolution*(this.e+1)/2));return a};
|
||||
l.la=function(a,b){var c=this.b;if(null===a)c.fillStyle=void 0;else{var d=a.a;c.fillStyle=de(null===d?he:d)}null===b?(c.strokeStyle=void 0,c.lineCap=void 0,c.lineDash=null,c.lineJoin=void 0,c.lineWidth=void 0,c.miterLimit=void 0):(d=b.a,c.strokeStyle=de(null===d?je:d),d=b.b,c.lineCap=u(d)?d:"round",d=b.d,c.lineDash=null===d?ie:d.slice(),d=b.e,c.lineJoin=u(d)?d:"round",d=b.c,c.lineWidth=u(d)?d:1,d=b.f,c.miterLimit=u(d)?d:10,this.e=Math.max(this.e,c.lineWidth))};
|
||||
function xl(a){var b=a.b,c=b.fillStyle,d=b.strokeStyle,e=b.lineCap,f=b.lineDash,g=b.lineJoin,h=b.lineWidth,m=b.miterLimit;u(c)&&b.Cd!=c&&(a.c.push([9,c]),b.Cd=b.fillStyle);!u(d)||b.Db==d&&b.yb==e&&b.zb==f&&b.Ab==g&&b.Bb==h&&b.Cb==m||(a.c.push([10,d,h,e,g,m,f]),b.Db=d,b.yb=e,b.zb=f,b.Ab=g,b.Bb=h,b.Cb=m)}function zl(a,b,c){kl.call(this,a,b,c);this.q=this.o=this.P=null;this.g="";this.n=this.l=this.k=this.j=0;this.i=this.f=this.b=null}E(zl,kl);
|
||||
zl.prototype.Fa=function(a,b,c,d,e,f){if(""!==this.g&&null!==this.i&&(null!==this.b||null!==this.f)){Oe(this.d,a,b,c,d);if(null!==this.b){var g=this.b,h=this.P;if(null===h||h.fillStyle!=g.fillStyle){var m=[9,g.fillStyle];this.c.push(m);this.a.push(m);null===h?this.P={fillStyle:g.fillStyle}:h.fillStyle=g.fillStyle}}null!==this.f&&(g=this.f,h=this.o,null===h||h.lineCap!=g.lineCap||h.lineDash!=g.lineDash||h.lineJoin!=g.lineJoin||h.lineWidth!=g.lineWidth||h.miterLimit!=g.miterLimit||h.strokeStyle!=g.strokeStyle)&&
|
||||
(m=[10,g.strokeStyle,g.lineWidth,g.lineCap,g.lineJoin,g.miterLimit,g.lineDash],this.c.push(m),this.a.push(m),null===h?this.o={lineCap:g.lineCap,lineDash:g.lineDash,lineJoin:g.lineJoin,lineWidth:g.lineWidth,miterLimit:g.miterLimit,strokeStyle:g.strokeStyle}:(h.lineCap=g.lineCap,h.lineDash=g.lineDash,h.lineJoin=g.lineJoin,h.lineWidth=g.lineWidth,h.miterLimit=g.miterLimit,h.strokeStyle=g.strokeStyle));g=this.i;h=this.q;if(null===h||h.font!=g.font||h.textAlign!=g.textAlign||h.textBaseline!=g.textBaseline)m=
|
||||
[11,g.font,g.textAlign,g.textBaseline],this.c.push(m),this.a.push(m),null===h?this.q={font:g.font,textAlign:g.textAlign,textBaseline:g.textBaseline}:(h.font=g.font,h.textAlign=g.textAlign,h.textBaseline=g.textBaseline);ml(this,e,v(f));g=this.coordinates.length;a=ll(this,a,b,c,d,!1);a=[5,g,a,this.g,this.j,this.k,this.l,this.n,null!==this.b,null!==this.f];this.c.push(a);this.a.push(a);ql(this,e,f)}};
|
||||
zl.prototype.ba=function(a){if(null===a)this.g="";else{var b=a.c;null===b?this.b=null:(b=b.a,b=de(null===b?he:b),null===this.b?this.b={fillStyle:b}:this.b.fillStyle=b);var c=a.e;if(null===c)this.f=null;else{var b=c.a,d=c.b,e=c.d,f=c.e,g=c.c,c=c.f,d=u(d)?d:"round",e=null!=e?e.slice():ie,f=u(f)?f:"round",g=u(g)?g:1,c=u(c)?c:10,b=de(null===b?je:b);if(null===this.f)this.f={lineCap:d,lineDash:e,lineJoin:f,lineWidth:g,miterLimit:c,strokeStyle:b};else{var h=this.f;h.lineCap=d;h.lineDash=e;h.lineJoin=f;h.lineWidth=
|
||||
g;h.miterLimit=c;h.strokeStyle=b}}var m=a.a,b=a.j,d=a.k,e=a.b,g=a.d,c=a.f,f=a.i,h=a.g;a=u(m)?m:"10px sans-serif";f=u(f)?f:"center";h=u(h)?h:"middle";null===this.i?this.i={font:a,textAlign:f,textBaseline:h}:(m=this.i,m.font=a,m.textAlign=f,m.textBaseline=h);this.g=u(c)?c:"";this.j=u(b)?b:0;this.k=u(d)?d:0;this.l=u(e)?e:0;this.n=u(g)?g:1}};function Al(a,b,c){this.f=a;this.c=b;this.e=c;this.a={};a=pc("CANVAS");a.width=1;a.height=1;this.b=a.getContext("2d");this.d=Rd()}
|
||||
function Bl(a,b,c,d,e,f,g){var h=La(Yb(a.a),Number);Va(h);a:{var m=a.c,n=m[0],p=m[1],q=m[2],m=m[3],n=cf([n,p,n,m,q,m,q,p],2,e);b.save();b.beginPath();b.moveTo(n[0],n[1]);b.lineTo(n[2],n[3]);b.lineTo(n[4],n[5]);b.lineTo(n[6],n[7]);b.closePath();b.clip();for(var r,s,n=0,p=h.length;n<p;++n)for(r=a.a[h[n].toString()],q=0,m=jl.length;q<m;++q)if(s=r[jl[q]],u(s)&&Ve(c,s.p())&&(s=nl(s,b,d,e,f,g,s.c,void 0)))break a;b.restore()}}
|
||||
function Cl(a,b,c,d,e,f,g,h){var m,n,p,q,r;m=0;for(n=b.length;m<n;++m)for(q in p=a.a[b[m].toString()],p)if(r=p[q],Ve(d,r.p())&&(r=nl(r,c,1,e,f,g,r.a,h)))return r}function Dl(a,b,c,d,e,f,g){var h=a.d;Gk(h,0.5,0.5,1/c,-1/c,-d,-e[0],-e[1]);c=La(Yb(a.a),Number);Va(c,function(a,b){return b-a});var m=a.b;m.clearRect(0,0,1,1);return Cl(a,c,m,b,h,d,f,function(a,b){if(0<m.getImageData(0,0,1,1).data[3]){var c=g(a,b);if(c)return c;m.clearRect(0,0,1,1)}})}
|
||||
function El(a){for(var b in a.a){var c=a.a[b],d;for(d in c)c[d].rc()}}function Fl(a,b,c){var d=u(b)?b.toString():"0";b=a.a[d];u(b)||(b={},a.a[d]=b);d=b[c];u(d)||(d=new Gl[c](a.f,a.c,a.e),b[c]=d);return d}Al.prototype.W=function(){return Zb(this.a)};var Gl={Image:rl,LineString:sl,Polygon:vl,Text:zl};function Hl(a,b,c){df.call(this);this.oe(a,u(b)?b:0,c)}E(Hl,df);l=Hl.prototype;l.I=function(){var a=new Hl(null),b=this.h.slice();ff(a,this.b,b);a.s();return a};l.da=function(a,b,c,d){var e=this.h;a-=e[0];var f=b-e[1];b=a*a+f*f;if(b<d){if(0===b)for(d=0;d<this.a;++d)c[d]=e[d];else for(d=this.$d()/Math.sqrt(b),c[0]=e[0]+d*a,c[1]=e[1]+d*f,d=2;d<this.a;++d)c[d]=e[d];c.length=this.a;return b}return d};l.Sa=function(a,b){var c=this.h,d=a-c[0],c=b-c[1];return d*d+c*c<=Il(this)};
|
||||
l.Yc=function(){return this.h.slice(0,this.a)};l.p=function(a){if(this.e!=this.c){var b=this.h,c=b[this.a]-b[0];this.extent=Ge(b[0]-c,b[1]-c,b[0]+c,b[1]+c,this.extent);this.e=this.c}return Xe(this.extent,a)};l.$d=function(){return Math.sqrt(Il(this))};function Il(a){var b=a.h[a.a]-a.h[0];a=a.h[a.a+1]-a.h[1];return b*b+a*a}l.Xa=function(){return this};l.B=ba("Circle");l.Mg=function(a){var b=this.a,c=this.h[b]-this.h[0],d=a.slice();d[b]=d[0]+c;for(c=1;c<b;++c)d[b+c]=a[c];ff(this,this.b,d);this.s()};
|
||||
l.oe=function(a,b,c){if(null===a)ff(this,"XY",null);else{gf(this,c,a,0);null===this.h&&(this.h=[]);c=this.h;a=rf(c,a);c[a++]=c[0]+b;var d;b=1;for(d=this.a;b<d;++b)c[a++]=c[b];c.length=a}this.s()};l.gi=function(a){this.h[this.a]=this.h[0]+a;this.s()};function Jl(a){Ld.call(this);this.a=u(a)?a:null;Kl(this)}E(Jl,Ld);function Ll(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(a[c].I());return b}function Ml(a){var b,c;if(null!==a.a)for(b=0,c=a.a.length;b<c;++b)fd(a.a[b],"change",a.s,!1,a)}function Kl(a){var b,c;if(null!==a.a)for(b=0,c=a.a.length;b<c;++b)K(a.a[b],"change",a.s,!1,a)}l=Jl.prototype;l.I=function(){var a=new Jl(null);a.qe(this.a);return a};
|
||||
l.da=function(a,b,c,d){if(d<Je(this.p(),a,b))return d;var e=this.a,f,g;f=0;for(g=e.length;f<g;++f)d=e[f].da(a,b,c,d);return d};l.Sa=function(a,b){var c=this.a,d,e;d=0;for(e=c.length;d<e;++d)if(c[d].Sa(a,b))return!0;return!1};l.p=function(a){if(this.e!=this.c){var b=Le(this.extent),c=this.a,d,e;d=0;for(e=c.length;d<e;++d)Ne(b,c[d].p());this.extent=b;this.e=this.c}return Xe(this.extent,a)};l.hf=function(){return Ll(this.a)};
|
||||
l.Xa=function(a){this.j!=this.c&&($b(this.f),this.i=0,this.j=this.c);if(0>a||0!==this.i&&a<this.i)return this;var b=a.toString();if(this.f.hasOwnProperty(b))return this.f[b];var c=[],d=this.a,e=!1,f,g;f=0;for(g=d.length;f<g;++f){var h=d[f],m=h.Xa(a);c.push(m);m!==h&&(e=!0)}if(e)return a=new Jl(null),Ml(a),a.a=c,Kl(a),a.s(),this.f[b]=a;this.i=a;return this};l.B=ba("GeometryCollection");l.W=function(){return 0==this.a.length};l.qe=function(a){a=Ll(a);Ml(this);this.a=a;Kl(this);this.s()};
|
||||
l.transform=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)b[c].transform(a);this.s()};l.A=function(){Ml(this);Jl.C.A.call(this)};function Nl(a,b,c,d,e){var f=NaN,g=NaN,h=(c-b)/d;if(0!==h)if(1==h)f=a[b],g=a[b+1];else if(2==h)f=0.5*a[b]+0.5*a[b+d],g=0.5*a[b+1]+0.5*a[b+d+1];else{var g=a[b],h=a[b+1],m=0,f=[0],n;for(n=b+d;n<c;n+=d){var p=a[n],q=a[n+1],m=m+Math.sqrt((p-g)*(p-g)+(q-h)*(q-h));f.push(m);g=p;h=q}c=0.5*m;for(var r,g=Wa,h=0,m=f.length;h<m;)n=h+m>>1,p=g(c,f[n]),0<p?h=n+1:(m=n,r=!p);r=r?h:~h;0>r?(c=(c-f[-r-2])/(f[-r-1]-f[-r-2]),b+=(-r-2)*d,f=a[b]+c*(a[b+d]-a[b]),g=a[b+1]+c*(a[b+d+1]-a[b+1])):(f=a[b+r*d],g=a[b+r*d+1])}return null!=
|
||||
e?(e.push(f,g),e):[f,g]}function Ol(a,b,c,d,e,f){if(c==b)return null;if(e<a[b+d-1])return f?(c=a.slice(b,b+d),c[d-1]=e,c):null;if(a[c-1]<e)return f?(c=a.slice(c-d,c),c[d-1]=e,c):null;if(e==a[b+d-1])return a.slice(b,b+d);b/=d;for(c/=d;b<c;)f=b+c>>1,e<a[(f+1)*d-1]?c=f:b=f+1;c=a[b*d-1];if(e==c)return a.slice((b-1)*d,(b-1)*d+d);f=(e-c)/(a[(b+1)*d-1]-c);c=[];var g;for(g=0;g<d-1;++g)c.push(a[(b-1)*d+g]+f*(a[b*d+g]-a[(b-1)*d+g]));c.push(e);return c}
|
||||
function Pl(a,b,c,d,e,f){var g=0;if(f)return Ol(a,g,b[b.length-1],c,d,e);if(d<a[c-1])return e?(a=a.slice(0,c),a[c-1]=d,a):null;if(a[a.length-1]<d)return e?(a=a.slice(a.length-c),a[c-1]=d,a):null;e=0;for(f=b.length;e<f;++e){var h=b[e];if(g!=h){if(d<a[g+c-1])break;else if(d<=a[h-1])return Ol(a,g,h,c,d,!1);g=h}}return null};function Ql(a,b){df.call(this);this.d=null;this.k=this.l=this.g=-1;this.J(a,b)}E(Ql,df);l=Ql.prototype;l.Pe=function(a){null===this.h?this.h=a.slice():af(this.h,a);this.s()};l.I=function(){var a=new Ql(null);Rl(a,this.b,this.h.slice());return a};l.da=function(a,b,c,d){if(d<Je(this.p(),a,b))return d;this.k!=this.c&&(this.l=Math.sqrt(nf(this.h,0,this.h.length,this.a,0)),this.k=this.c);return pf(this.h,0,this.h.length,this.a,this.l,!1,a,b,c,d)};
|
||||
l.Ng=function(a,b){return"XYM"!=this.b&&"XYZM"!=this.b?null:Ol(this.h,0,this.h.length,this.a,a,u(b)?b:!1)};l.w=function(){return uf(this.h,0,this.h.length,this.a)};l.Og=function(){var a=this.h,b=this.a,c=a[0],d=a[1],e=0,f;for(f=0+b;f<this.h.length;f+=b)var g=a[f],h=a[f+1],e=e+Math.sqrt((g-c)*(g-c)+(h-d)*(h-d)),c=g,d=h;return e};function Zk(a){a.g!=a.c&&(a.d=Nl(a.h,0,a.h.length,a.a,a.d),a.g=a.c);return a.d}
|
||||
l.lb=function(a){var b=[];b.length=wf(this.h,0,this.h.length,this.a,a,b,0);a=new Ql(null);Rl(a,"XY",b);return a};l.B=ba("LineString");l.J=function(a,b){null===a?Rl(this,"XY",null):(gf(this,b,a,1),null===this.h&&(this.h=[]),this.h.length=sf(this.h,0,a,this.a),this.s())};function Rl(a,b,c){ff(a,b,c);a.s()};function Sl(a,b){df.call(this);this.d=[];this.g=this.k=-1;this.J(a,b)}E(Sl,df);l=Sl.prototype;l.Qe=function(a){null===this.h?this.h=a.h.slice():af(this.h,a.h.slice());this.d.push(this.h.length);this.s()};l.I=function(){var a=new Sl(null);Tl(a,this.b,this.h.slice(),this.d.slice());return a};l.da=function(a,b,c,d){if(d<Je(this.p(),a,b))return d;this.g!=this.c&&(this.k=Math.sqrt(of(this.h,0,this.d,this.a,0)),this.g=this.c);return qf(this.h,0,this.d,this.a,this.k,!1,a,b,c,d)};
|
||||
l.Qg=function(a,b,c){return"XYM"!=this.b&&"XYZM"!=this.b||0===this.h.length?null:Pl(this.h,this.d,this.a,a,u(b)?b:!1,u(c)?c:!1)};l.w=function(){return vf(this.h,0,this.d,this.a)};l.sf=function(a){if(0>a||this.d.length<=a)return null;var b=new Ql(null);Rl(b,this.b,this.h.slice(0===a?0:this.d[a-1],this.d[a]));return b};l.Pc=function(){var a=this.h,b=this.d,c=this.b,d=[],e=0,f,g;f=0;for(g=b.length;f<g;++f){var h=b[f],m=new Ql(null);Rl(m,c,a.slice(e,h));d.push(m);e=h}return d};
|
||||
function $k(a){var b=[],c=a.h,d=0,e=a.d;a=a.a;var f,g;f=0;for(g=e.length;f<g;++f){var h=e[f],d=Nl(c,d,h,a);af(b,d);d=h}return b}l.lb=function(a){var b=[],c=[],d=this.h,e=this.d,f=this.a,g=0,h=0,m,n;m=0;for(n=e.length;m<n;++m){var p=e[m],h=wf(d,g,p,f,a,b,h);c.push(h);g=p}b.length=h;a=new Sl(null);Tl(a,"XY",b,c);return a};l.B=ba("MultiLineString");
|
||||
l.J=function(a,b){if(null===a)Tl(this,"XY",null,this.d);else{gf(this,b,a,2);null===this.h&&(this.h=[]);var c=tf(this.h,0,a,this.a,this.d);this.h.length=0===c.length?0:c[c.length-1];this.s()}};function Tl(a,b,c,d){ff(a,b,c);a.d=d;a.s()}function Ul(a,b){var c="XY",d=[],e=[],f,g;f=0;for(g=b.length;f<g;++f){var h=b[f];0===f&&(c=h.b);af(d,h.h);e.push(d.length)}Tl(a,c,d,e)};function Vl(a,b){df.call(this);this.J(a,b)}E(Vl,df);l=Vl.prototype;l.Se=function(a){null===this.h?this.h=a.h.slice():af(this.h,a.h);this.s()};l.I=function(){var a=new Vl(null),b=this.h.slice();ff(a,this.b,b);a.s();return a};l.da=function(a,b,c,d){if(d<Je(this.p(),a,b))return d;var e=this.h,f=this.a,g,h,m;g=0;for(h=e.length;g<h;g+=f)if(m=lf(a,b,e[g],e[g+1]),m<d){d=m;for(m=0;m<f;++m)c[m]=e[g+m];c.length=f}return d};l.w=function(){return uf(this.h,0,this.h.length,this.a)};
|
||||
l.xf=function(a){var b=null===this.h?0:this.h.length/this.a;if(0>a||b<=a)return null;b=new Af(null);Bf(b,this.b,this.h.slice(a*this.a,(a+1)*this.a));return b};l.Jd=function(){var a=this.h,b=this.b,c=this.a,d=[],e,f;e=0;for(f=a.length;e<f;e+=c){var g=new Af(null);Bf(g,b,a.slice(e,e+c));d.push(g)}return d};l.B=ba("MultiPoint");l.J=function(a,b){null===a?ff(this,"XY",null):(gf(this,b,a,1),null===this.h&&(this.h=[]),this.h.length=sf(this.h,0,a,this.a));this.s()};function Wl(a,b){df.call(this);this.d=[];this.k=-1;this.l=null;this.r=this.n=this.o=-1;this.g=null;this.J(a,b)}E(Wl,df);l=Wl.prototype;l.Te=function(a){if(null===this.h)this.h=a.h.slice(),a=a.d.slice(),this.d.push();else{var b=this.h.length;af(this.h,a.h);a=a.d.slice();var c,d;c=0;for(d=a.length;c<d;++c)a[c]+=b}this.d.push(a);this.s()};l.I=function(){var a=new Wl(null);Xl(a,this.b,this.h.slice(),this.d.slice());return a};
|
||||
l.da=function(a,b,c,d){if(d<Je(this.p(),a,b))return d;if(this.n!=this.c){var e=this.d,f=0,g=0,h,m;h=0;for(m=e.length;h<m;++h)var n=e[h],g=of(this.h,f,n,this.a,g),f=n[n.length-1];this.o=Math.sqrt(g);this.n=this.c}e=yl(this);f=this.d;g=this.a;h=this.o;m=0;var n=u(void 0)?void 0:[NaN,NaN],p,q;p=0;for(q=f.length;p<q;++p){var r=f[p];d=qf(e,m,r,g,h,!0,a,b,c,d,n);m=r[r.length-1]}return d};
|
||||
l.Sa=function(a,b){var c;a:{c=yl(this);var d=this.d,e=0;if(0!==d.length){var f,g;f=0;for(g=d.length;f<g;++f){var h=d[f];if(Df(c,e,h,this.a,a,b)){c=!0;break a}e=h[h.length-1]}}c=!1}return c};l.Rg=function(){var a=yl(this),b=this.d,c=0,d=0,e,f;e=0;for(f=b.length;e<f;++e)var g=b[e],d=d+kf(a,c,g,this.a),c=g[g.length-1];return d};l.w=function(){var a=this.h,b=this.d,c=this.a,d=0,e=u(void 0)?void 0:[],f=0,g,h;g=0;for(h=b.length;g<h;++g){var m=b[g];e[f++]=vf(a,d,m,c,e[f]);d=m[m.length-1]}e.length=f;return e};
|
||||
function al(a){if(a.k!=a.c){var b=a.h,c=a.d,d=a.a,e=0,f=[],g,h,m=Ee();g=0;for(h=c.length;g<h;++g){var n=c[g],m=b,p=n[0],q=d,r=Le(void 0),m=Oe(r,m,e,p,q);f.push((m[0]+m[2])/2,(m[1]+m[3])/2);e=n[n.length-1]}b=yl(a);c=a.d;d=a.a;g=0;h=[];n=0;for(m=c.length;n<m;++n)e=c[n],h=Ef(b,g,e,d,f,2*n,h),g=e[e.length-1];a.l=h;a.k=a.c}return a.l}l.nf=function(){var a=new Vl(null),b=al(this).slice();ff(a,"XY",b);a.s();return a};
|
||||
function yl(a){if(a.r!=a.c){var b=a.h,c;a:{c=a.d;var d,e;d=0;for(e=c.length;d<e;++d)if(!Gf(b,c[d],a.a)){c=!1;break a}c=!0}if(c)a.g=b;else{a.g=b.slice();c=b=a.g;d=a.d;e=a.a;var f=0,g,h;g=0;for(h=d.length;g<h;++g)f=Hf(c,f,d[g],e);b.length=f}a.r=a.c}return a.g}l.lb=function(a){var b=[],c=[],d=this.h,e=this.d,f=this.a;a=Math.sqrt(a);var g=0,h=0,m,n;m=0;for(n=e.length;m<n;++m){var p=e[m],q=[],h=xf(d,g,p,f,a,b,h,q);c.push(q);g=p[p.length-1]}b.length=h;d=new Wl(null);Xl(d,"XY",b,c);return d};
|
||||
l.yf=function(a){if(0>a||this.d.length<=a)return null;var b;0===a?b=0:(b=this.d[a-1],b=b[b.length-1]);a=this.d[a].slice();var c=a[a.length-1];if(0!==b){var d,e;d=0;for(e=a.length;d<e;++d)a[d]-=b}d=new If(null);Jf(d,this.b,this.h.slice(b,c),a);return d};l.Kd=function(){var a=this.b,b=this.h,c=this.d,d=[],e=0,f,g,h,m;f=0;for(g=c.length;f<g;++f){var n=c[f].slice(),p=n[n.length-1];if(0!==e)for(h=0,m=n.length;h<m;++h)n[h]-=e;h=new If(null);Jf(h,a,b.slice(e,p),n);d.push(h);e=p}return d};l.B=ba("MultiPolygon");
|
||||
l.J=function(a,b){if(null===a)Xl(this,"XY",null,this.d);else{gf(this,b,a,3);null===this.h&&(this.h=[]);var c=this.h,d=this.a,e=this.d,f=0,e=u(e)?e:[],g=0,h,m;h=0;for(m=a.length;h<m;++h)f=tf(c,f,a[h],d,e[g]),e[g++]=f,f=f[f.length-1];e.length=g;c=e[e.length-1];this.h.length=0===c.length?0:c[c.length-1];this.s()}};function Xl(a,b,c,d){ff(a,b,c);a.d=d;a.s()}
|
||||
function Yl(a,b){var c="XY",d=[],e=[],f,g,h;f=0;for(g=b.length;f<g;++f){var m=b[f];0===f&&(c=m.b);var n=d.length;h=m.d;var p,q;p=0;for(q=h.length;p<q;++p)h[p]+=n;af(d,m.h);e.push(h)}Xl(a,c,d,e)};function Zl(a,b,c,d,e,f,g){var h=!1,m,n;m=c.e;null===m?$l(a,b,c,d,e):(n=m.ee(),2==n||3==n?(m.we(f,g),2==n&&$l(a,b,c,d,e)):(0==n&&m.fe(),m.Rd(f,g),h=!0));return h}function $l(a,b,c,d,e){b=b.L();null!==b&&(d=b.Xa(d),(0,am[d.B()])(a,d,c,e))}
|
||||
var am={Point:function(a,b,c,d){var e=c.e;if(null!==e){var f=Fl(a,c.a,"Image");f.wb(e);f.Lb(b,d)}e=c.c;null!==e&&(a=Fl(a,c.a,"Text"),a.ba(e),a.Fa(b.w(),0,2,2,b,d))},LineString:function(a,b,c,d){var e=c.b;if(null!==e){var f=Fl(a,c.a,"LineString");f.la(null,e);f.Ib(b,d)}e=c.c;null!==e&&(a=Fl(a,c.a,"Text"),a.ba(e),a.Fa(Zk(b),0,2,2,b,d))},Polygon:function(a,b,c,d){var e=c.d,f=c.b;if(null!==e||null!==f){var g=Fl(a,c.a,"Polygon");g.la(e,f);g.ib(b,d)}e=c.c;null!==e&&(a=Fl(a,c.a,"Text"),a.ba(e),a.Fa(Lf(b),
|
||||
0,2,2,b,d))},MultiPoint:function(a,b,c,d){var e=c.e;if(null!==e){var f=Fl(a,c.a,"Image");f.wb(e);f.Kb(b,d)}e=c.c;null!==e&&(a=Fl(a,c.a,"Text"),a.ba(e),c=b.h,a.Fa(c,0,c.length,b.a,b,d))},MultiLineString:function(a,b,c,d){var e=c.b;if(null!==e){var f=Fl(a,c.a,"LineString");f.la(null,e);f.Jb(b,d)}e=c.c;null!==e&&(a=Fl(a,c.a,"Text"),a.ba(e),c=$k(b),a.Fa(c,0,c.length,2,b,d))},MultiPolygon:function(a,b,c,d){var e=c.d,f=c.b;if(null!==f||null!==e){var g=Fl(a,c.a,"Polygon");g.la(e,f);g.cc(b,d)}e=c.c;null!==
|
||||
e&&(a=Fl(a,c.a,"Text"),a.ba(e),c=al(b),a.Fa(c,0,c.length,2,b,d))},GeometryCollection:function(a,b,c,d){b=b.a;var e,f;e=0;for(f=b.length;e<f;++e)(0,am[b[e].B()])(a,b[e],c,d)},Circle:function(a,b,c,d){var e=c.d,f=c.b;if(null!==e||null!==f){var g=Fl(a,c.a,"Polygon");g.la(e,f);g.Hb(b,d)}e=c.c;null!==e&&(a=Fl(a,c.a,"Text"),a.ba(e),a.Fa(b.Yc(),0,2,2,b,d))}};function bm(a,b,c,d){this.extent=a;this.height=b;this.a=c;this.value=d}function cm(a,b){return a.extent[0]-b.extent[0]}function dm(a,b){return a.extent[1]-b.extent[1]}function em(a,b,c,d){a=a.a;for(d=Le(d);b<c;++b)Ne(d,a[b].extent);return d}bm.prototype.remove=function(a,b,c){var d=this.a,e=d.length,f,g;if(1==this.height)for(g=0;g<e;++g){if(f=d[g],f.value===b)return Ia.splice.call(d,g,1),!0}else for(g=0;g<e;++g)if(f=d[g],Ke(f.extent,a)){c.push(f);if(f.remove(a,b,c))return!0;c.pop()}return!1};
|
||||
function fm(a){var b=Le(a.extent);a=a.a;var c,d;c=0;for(d=a.length;c<d;++c)Ne(b,a[c].extent)}function gm(a){this.b=Math.max(4,u(a)?a:9);this.d=Math.max(2,Math.ceil(0.4*this.b));this.a=new bm(Ee(),1,[],null);this.c={}}function hm(a,b,c){var d=b.a;a=a.d;var e=d.length;Va(d,c);c=em(b,0,a);var f=em(b,e-a,e),g=Ue(c)+Se(c)+(Ue(f)+Se(f));for(b=a;b<e-a;++b)Ne(c,d[b].extent),g+=Ue(c)+Se(c);for(b=e-a-1;b>=a;--b)Ne(f,d[b].extent),g+=Ue(f)+Se(f);return g}l=gm.prototype;
|
||||
l.clear=function(){var a=this.a;a.extent=Le(this.a.extent);a.height=1;a.a.length=0;a.value=null;$b(this.c)};l.forEach=function(a,b){return im(this.a,a,b)};function im(a,b,c){for(var d=[a],e,f,g;0<d.length;)if(a=d.pop(),e=a.a,1==a.height)for(a=0,f=e.length;a<f;++a){if(g=b.call(c,e[a].value))return g}else d.push.apply(d,e)}function jm(a,b,c){km(a,b,c,void 0)}
|
||||
function km(a,b,c,d){a=[a.a];for(var e;0<a.length;)if(e=a.pop(),Ve(b,e.extent))if(null===e.a){if(e=c.call(d,e.value))return e}else if(Ke(b,e.extent)){if(e=im(e,c,d))return e}else a.push.apply(a,e.a)}function lm(a){var b=[];a.forEach(function(a){b.push(a)});return b}function mm(a,b){var c=[];km(a,b,function(a){c.push(a)},void 0);return c}l.p=function(a){return Xe(this.a.extent,a)};function nm(a,b,c){var d=v(c).toString();om(a,b,c,a.a.height-1);a.c[d]=Ie(b)}
|
||||
function om(a,b,c,d){for(var e=[a.a],f=a.a;null!==f.a&&e.length-1!=d;){var g=Infinity,h=Infinity,f=f.a,m=null,n,p;n=0;for(p=f.length;n<p;++n){var q=f[n],r=Ue(q.extent)*Se(q.extent),s=q.extent,z=b,x=Math.min(s[0],z[0]),w=Math.min(s[1],z[1]),B=Math.max(s[2],z[2]),s=Math.max(s[3],z[3]),x=(B-x)*(s-w)-r;x<h?(h=x,g=Math.min(r,g),m=q):x==h&&r<g&&(g=r,m=q)}f=m;e.push(f)}d=f;d.a.push(new bm(b,0,null,c));Ne(d.extent,b);for(c=e.length-1;0<=c;--c)if(e[c].a.length>a.b){g=a;h=e;f=c;d=h[f];p=g;m=d;n=hm(p,m,cm);
|
||||
p=hm(p,m,dm);n<p&&Va(m.a,cm);m=d;n=g.d;p=m.a.length;r=q=Infinity;x=Ee();w=Ee();B=0;s=void 0;for(s=n;s<=p-n;++s){var x=em(m,0,s,x),w=em(m,s,p,w),A=x,D=w,z=Math.max(A[0],D[0]),H=Math.max(A[1],D[1]),P=Math.min(A[2],D[2]),A=Math.min(A[3],D[3]),z=Math.max(0,P-z)*Math.max(0,A-H),H=Ue(x)*Se(x)+Ue(w)*Se(w);z<q?(q=z,r=Math.min(H,r),B=s):z==q&&H<r&&(r=H,B=s)}m=d.a.splice(B);m=new bm(Ee(),d.height,m,null);fm(d);fm(m);f?h[f-1].a.push(m):(h=m,f=d.height+1,m=Ne(d.extent.slice(),h.extent),g.a=new bm(m,f,[d,h],null))}else break;
|
||||
for(;0<=c;--c)Ne(e[c].extent,b)}l.W=function(){return 0===this.a.a.length};l.remove=function(a){var b=v(a).toString(),c=this.c[b];delete this.c[b];return pm(this,c,a)};function pm(a,b,c){var d=a.a,e=[d];if(b=d.remove(b,c,e))for(c=e.length-1;0<=c;--c)d=e[c],0===d.a.length?0<c?Pa(e[c-1].a,d):a.clear():fm(d);return b}l.update=function(a,b){var c=v(b).toString(),d=this.c[c];Me(d,a)||(pm(this,d,b),om(this,a,b,this.a.height-1),this.c[c]=Ie(a,d))};function qm(a){a=u(a)?a:{};Xj.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state});this.a=new gm;this.b={};this.e={};u(a.features)&&rm(this,a.features)}E(qm,Xj);l=qm.prototype;l.be=function(a){sm(this,a);this.s()};function sm(a,b){var c=v(b).toString();a.e[c]=[K(b,"change",a.ce,!1,a),K(b,"propertychange",a.ce,!1,a)];c=b.L();null===c?a.b[v(b).toString()]=b:(c=c.p(),nm(a.a,c,b));M(a,new tm("addfeature",b))}l.Le=function(a){rm(this,a);this.s()};
|
||||
function rm(a,b){var c,d;c=0;for(d=b.length;c<d;++c)sm(a,b[c])}l.clear=function(){this.a.forEach(this.gd,this);this.a.clear();Tb(this.b,this.gd,this);$b(this.b);this.s()};l.$e=function(a,b){return this.a.forEach(a,b)};function um(a,b,c){a.ec([b[0],b[1],b[0],b[1]],function(a){if(a.L().Sa(b[0],b[1]))return c.call(void 0,a)})}l.ec=function(a,b,c){return km(this.a,a,b,c)};l.ih=function(){var a=lm(this.a);Zb(this.b)||Sa(a,Xb(this.b));return a};
|
||||
l.ef=function(a){var b=[];um(this,a,function(a){b.push(a)});return b};l.cf=function(a){var b=a[0],c=a[1],d=null,e=[NaN,NaN],f=Infinity,g=[-Infinity,-Infinity,Infinity,Infinity];km(this.a,g,function(a){var m=a.L(),n=f;f=m.da(b,c,e,f);f<n&&(d=a,a=Math.sqrt(f),g[0]=b-a,g[1]=c-a,g[2]=b+a,g[3]=c+a)},void 0);return d};l.p=function(){return this.a.p()};
|
||||
l.ce=function(a){a=a.target;var b=v(a).toString(),c=a.L();null===c?b in this.b||(this.a.remove(a),this.b[b]=a):(c=c.p(),b in this.b?(delete this.b[b],nm(this.a,c,a)):this.a.update(c,a));this.s()};l.W=function(){return this.a.W()&&Zb(this.b)};l.jh=function(a){var b=v(a).toString();b in this.b?delete this.b[b]:this.a.remove(a);this.gd(a);this.s()};l.gd=function(a){var b=v(a).toString();Ka(this.e[b],L);delete this.e[b];M(this,new tm("removefeature",a))};
|
||||
function tm(a,b){Gc.call(this,a);this.feature=b}E(tm,Gc);function vm(a,b){cl.call(this,a,b);this.Eb=!1;this.g=-1;this.i=NaN;this.o=Ee();this.c=null;this.e=pc("CANVAS").getContext("2d")}E(vm,cl);
|
||||
vm.prototype.k=function(a,b,c){var d=el(this,a);dl(this,"precompose",c,a,d);var e=this.c;if(null!==e&&!e.W()){var f;jd(this.a.T,"render")?(this.e.canvas.width=c.canvas.width,this.e.canvas.height=c.canvas.height,f=this.e):f=c;f.globalAlpha=b.opacity;Bl(e,f,a.extent,a.pixelRatio,d,a.view2DState.rotation,a.skippedFeatureUids_);f!=c&&(dl(this,"render",f,a,d),c.drawImage(f.canvas,0,0))}dl(this,"postcompose",c,a,d)};
|
||||
vm.prototype.f=function(a,b,c,d){if(null!==this.c){var e=this.a;return Dl(this.c,b.extent,b.view2DState.resolution,b.view2DState.rotation,a,b.skippedFeatureUids_,function(a,b){return c.call(d,b,e)})}};vm.prototype.Wg=function(){vk(this)};
|
||||
vm.prototype.b=function(a){var b=this.a,c=b.a;xk(a.attributions,c.d);yk(a,c);if(this.Eb||!a.viewHints[0]&&!a.viewHints[1]){var d=a.extent,e=a.view2DState.resolution,f=a.pixelRatio;a=b.c;if(this.Eb||this.i!=e||this.g!=a||!Ke(this.o,d)){var g=this.o,h=Ue(d)/4,m=Se(d)/4;g[0]=d[0]-h;g[1]=d[1]-m;g[2]=d[2]+h;g[3]=d[3]+m;Fc(this.c);this.c=null;this.Eb=!1;var n=b.f;u(n)||(n=re);var p=new Al(e/(2*f),g,e);c.ec(g,function(a){var b=n(a,e);if(null!=b){var c=e*e/(4*f*f),d,g,h=!1;d=0;for(g=b.length;d<g;++d)h=Zl(p,
|
||||
a,b[d],c,a,this.Wg,this)||h;a=h}else a=!1;this.Eb=this.Eb||a},this);El(p);this.i=e;this.g=a;this.c=p}}};function wm(a,b){Jk.call(this,0,b);this.a=pc("CANVAS");this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";tc(a,this.a,0);this.c=!0;this.i=this.a.getContext("2d");this.g=Rd()}E(wm,Jk);wm.prototype.$b=function(a){return a instanceof Ok?new hl(this,a):a instanceof Pk?new il(this,a):a instanceof Qk?new vm(this,a):null};
|
||||
function xm(a,b,c){var d=a.f,e=a.i;if(jd(d.T,b)){var f=c.view2DState,g=c.pixelRatio;Gk(a.g,a.a.width/2,a.a.height/2,g/f.resolution,-g/f.resolution,-f.rotation,-f.center[0],-f.center[1]);a=new Rk(e,g,c.extent,a.g,f.rotation);M(d,new te(b,d,a,c,e,null));bl(a)}}
|
||||
wm.prototype.tc=function(a){if(null===a)this.c&&(Qh(this.a,!1),this.c=!1);else{var b=this.i,c=a.size[0]*a.pixelRatio,d=a.size[1]*a.pixelRatio;this.a.width!=c||this.a.height!=d?(this.a.width=c,this.a.height=d):b.clearRect(0,0,this.a.width,this.a.height);Kk(a);xm(this,"precompose",a);var c=a.layerStates,d=a.layersArray,e=a.view2DState.resolution,f,g,h,m;f=0;for(g=d.length;f<g;++f)h=d[f],m=Lk(this,h),h=c[v(h)],!h.visible||(1!=h.jd||e>=h.maxResolution||e<h.minResolution)||(m.b(a,h),m.k(a,h,b));xm(this,
|
||||
"postcompose",a);this.c||(Qh(this.a,!0),this.c=!0);Nk(this,a);Mk(a)}};var ym=function(){var a;return function(){if(!u(a))if(t.getComputedStyle){var b=pc("P"),c,d={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(b);for(var e in d)e in b.style&&(b.style[e]="translate(1px,1px)",c=t.getComputedStyle(b).getPropertyValue(d[e]));uc(b);a=c&&"none"!==c}else a=!1;return a}}(),zm=function(){var a;return function(){if(!u(a))if(t.getComputedStyle){var b=pc("P"),
|
||||
c,d={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(b);for(var e in d)e in b.style&&(b.style[e]="translate3d(1px,1px,1px)",c=t.getComputedStyle(b).getPropertyValue(d[e]));uc(b);a=c&&"none"!==c}else a=!1;return a}}();function Am(a,b){var c=a.style;c.WebkitTransform=b;c.MozTransform=b;c.a=b;c.msTransform=b;c.transform=b;F&&!Ac&&(a.style.transformOrigin="0 0")}
|
||||
function Bm(a,b){var c;if(zm()){if(u(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");Am(a,"matrix3d("+c+")")}else if(ym()){d=[b[0],b[1],b[4],b[5],b[12],b[13]];if(u(6)){var e=Array(6);for(c=0;6>c;++c)e[c]=d[c].toFixed(6);c=e.join(",")}else c=d.join(",");Am(a,"matrix("+c+")")}else a.style.left=Math.round(b[12])+"px",a.style.top=Math.round(b[13])+"px"};function Cm(a,b,c){uk.call(this,a,b);this.target=c}E(Cm,uk);function Dm(a,b){var c=pc("DIV");c.style.position="absolute";Cm.call(this,a,b,c);this.c=null;this.e=Td()}E(Dm,Cm);Dm.prototype.f=function(a,b,c,d){var e=this.a;return e.a.k(b.extent,b.view2DState.resolution,b.view2DState.rotation,a,function(a){return c.call(d,a,e)})};
|
||||
Dm.prototype.b=function(a){var b=a.view2DState,c=b.center,d=b.resolution,e=b.rotation,f=this.c,g=this.a.a,h=a.viewHints;h[0]||h[1]||(b=g.qb(a.extent,d,a.pixelRatio,b.projection),null!==b&&(h=b.state,0==h?(ed(b,"change",this.l,!1,this),kk(b)):2==h&&(f=b)));if(null!==f){var h=f.p(),m=f.d,b=Rd();Gk(b,a.size[0]/2,a.size[1]/2,m/d,m/d,e,(h[0]-c[0])/m,(c[1]-h[3])/m);f!=this.c&&(c=f.e(this),c.style.maxWidth="none",c.style.position="absolute",rc(this.target),this.target.appendChild(c),this.c=f);Hk(b,this.e)||
|
||||
(Bm(this.target,b),Ud(this.e,b));xk(a.attributions,f.i);yk(a,g)}};function Em(a,b){var c=pc("DIV");c.style.position="absolute";Cm.call(this,a,b,c);this.e=!0;this.g=1;this.i=0;this.c={}}E(Em,Cm);
|
||||
Em.prototype.b=function(a,b){if(b.visible){var c=a.pixelRatio,d=a.view2DState,e=d.projection,f=this.a,g=f.a,h=tk(g,e),m=g.gc(),n=bf(h.a,d.resolution,0),p=h.a[n],q=d.center,r;p==d.resolution?(q=Bk(q,p,a.size),r=Re(q,p,d.rotation,a.size)):r=a.extent;var p=pk(h,r,p),s={};s[n]={};var z=y(g.Kc,g,s,Ak(function(a){return null!==a&&2==a.state},g,c,e)),x=f.f();u(x)||(x=!0);var w=Ee(),B=new cb(0,0,0,0),A,D,H,P;for(H=p.a;H<=p.d;++H)for(P=p.b;P<=p.c;++P)A=g.mb(n,H,P,c,e),D=A.state,2==D?s[n][A.a.toString()]=A:
|
||||
4==D||3==D&&!x||(D=h.fc(A.a,z,null,B,w),D||(A=h.hc(A.a,B,w),null===A||z(n+1,A)));var J;if(this.i!=g.c){for(J in this.c)x=this.c[+J],uc(x.target);this.c={};this.i=g.c}w=La(Yb(s),Number);Va(w);var z={},U;H=0;for(P=w.length;H<P;++H){J=w[H];J in this.c?x=this.c[J]:(x=qk(h,q[0],q[1],h.a[J],!1,void 0),x=new Fm(h,x),z[J]=!0,this.c[J]=x);J=s[J];for(U in J)Gm(x,J[U],m);Hm(x)}m=La(Yb(this.c),Number);Va(m);H=Rd();U=0;for(w=m.length;U<w;++U)if(J=m[U],x=this.c[J],J in s)if(A=x.i,P=x.f,Gk(H,a.size[0]/2,a.size[1]/
|
||||
2,A/d.resolution,A/d.resolution,d.rotation,(P[0]-q[0])/A,(q[1]-P[1])/A),Im(x,H),J in z){for(J-=1;0<=J;--J)if(J in this.c){sc(x.target,this.c[J].target);break}0>J&&tc(this.target,x.target,0)}else a.viewHints[0]||a.viewHints[1]||Jm(x,r,B);else uc(x.target),delete this.c[J];b.opacity!=this.g&&(Ph(this.target,b.opacity),this.g=b.opacity);b.visible&&!this.e&&(Qh(this.target,!0),this.e=!0);zk(a.usedTiles,g,n,p);Ck(a,g,h,c,e,r,n,f.d());wk(a,g);yk(a,g)}else this.e&&(Qh(this.target,!1),this.e=!1)};
|
||||
function Fm(a,b){this.target=pc("DIV");this.target.style.position="absolute";this.target.style.width="100%";this.target.style.height="100%";this.e=a;this.b=b;this.f=Te(nk(a,b));this.i=a.a[b.a];this.c={};this.a=null;this.d=Td()}
|
||||
function Gm(a,b,c){var d=b.a,e=d.toString();if(!(e in a.c)){var f=a.e.ga(d.a),g=b.b(a),h=g.style;h.maxWidth="none";var m,n;0<c?(m=pc("DIV"),n=m.style,n.overflow="hidden",n.width=f+"px",n.height=f+"px",h.position="absolute",h.left=-c+"px",h.top=-c+"px",h.width=f+2*c+"px",h.height=f+2*c+"px",m.appendChild(g)):(h.width=f+"px",h.height=f+"px",m=g,n=h);n.position="absolute";n.left=(d.x-a.b.x)*f+"px";n.top=(a.b.y-d.y)*f+"px";null===a.a&&(a.a=document.createDocumentFragment());a.a.appendChild(m);a.c[e]=
|
||||
b}}function Hm(a){null!==a.a&&(a.target.appendChild(a.a),a.a=null)}function Jm(a,b,c){var d=ok(a.e,b,a.b.a,c);b=[];for(var e in a.c)c=a.c[e],d.contains(c.a)||b.push(c);var f,d=0;for(f=b.length;d<f;++d)c=b[d],e=c.a.toString(),uc(c.b(a)),delete a.c[e]}function Im(a,b){Hk(b,a.d)||(Bm(a.target,b),Ud(a.d,b))};function Km(a,b){Jk.call(this,0,b);this.a=pc("DIV");this.a.className="ol-unselectable";var c=this.a.style;c.position="absolute";c.width="100%";c.height="100%";tc(a,this.a,0);this.c=!0}E(Km,Jk);Km.prototype.$b=function(a){if(a instanceof Ok)a=new Dm(this,a);else if(a instanceof Pk)a=new Em(this,a);else return null;return a};
|
||||
Km.prototype.tc=function(a){if(null===a)this.c&&(Qh(this.a,!1),this.c=!1);else{var b;b=function(a,b){tc(this.a,a,b)};var c=a.layerStates,d=a.layersArray,e,f,g,h;e=0;for(f=d.length;e<f;++e)g=d[e],h=Lk(this,g),b.call(this,h.target,e),g=a.layerStates[v(g)],1==g.jd&&h.b(a,g);for(var m in this.b)m in c||(h=this.b[m],uc(h.target));this.c||(Qh(this.a,!0),this.c=!0);Kk(a);Nk(this,a);Mk(a)}};function Lm(){}l=Lm.prototype;l.bc=aa();l.Hb=aa();l.Jc=aa();l.Ed=aa();l.Lb=aa();l.Ib=aa();l.Jb=aa();l.Kb=aa();l.cc=aa();l.ib=aa();l.Fa=aa();l.la=aa();l.wb=aa();l.ba=aa();function Mm(){this.i=Rd();this.c=void 0;this.a=Rd();this.d=void 0;this.b=Rd();this.f=void 0;this.e=Rd();this.j=void 0;this.g=Rd()}
|
||||
function Nm(a,b,c,d,e){var f=!1;u(b)&&b!==a.c&&(f=a.a,Vd(f),f[12]=b,f[13]=b,f[14]=b,f[15]=1,a.c=b,f=!0);if(u(c)&&c!==a.d){f=a.b;Vd(f);f[0]=c;f[5]=c;f[10]=c;f[15]=1;var g=-0.5*c+0.5;f[12]=g;f[13]=g;f[14]=g;f[15]=1;a.d=c;f=!0}u(d)&&d!==a.f&&(f=Math.cos(d),g=Math.sin(d),Sd(a.e,0.213+0.787*f-0.213*g,0.213-0.213*f+0.143*g,0.213-0.213*f-0.787*g,0,0.715-0.715*f-0.715*g,0.715+0.285*f+0.14*g,0.715-0.715*f+0.715*g,0,0.072-0.072*f+0.928*g,0.072-0.072*f-0.283*g,0.072+0.928*f+0.072*g,0,0,0,0,1),a.f=d,f=!0);u(e)&&
|
||||
e!==a.j&&(Sd(a.g,0.213+0.787*e,0.213-0.213*e,0.213-0.213*e,0,0.715-0.715*e,0.715+0.285*e,0.715-0.715*e,0,0.072-0.072*e,0.072-0.072*e,0.072+0.928*e,0,0,0,0,1),a.j=e,f=!0);f&&(f=a.i,Vd(f),u(c)&&Wd(f,a.b,f),u(b)&&Wd(f,a.a,f),u(e)&&Wd(f,a.g,f),u(d)&&Wd(f,a.e,f));return a.i};function Om(a){this.a=a}function Pm(a){this.a=a}E(Pm,Om);Pm.prototype.B=ba(35632);function Qm(a){this.a=a}E(Qm,Om);Qm.prototype.B=ba(35633);function Rm(){this.a="precision mediump float;varying vec2 a;uniform mat4 f;uniform float g;uniform sampler2D h;void main(void){vec4 texColor\x3dtexture2D(h,a);gl_FragColor.rgb\x3d(f*vec4(texColor.rgb,1.)).rgb;gl_FragColor.a\x3dtexColor.a*g;}"}E(Rm,Pm);ea(Rm);function Sm(){this.a="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position\x3de*vec4(b,0.,1.);a\x3d(d*vec4(c,0.,1.)).st;}"}E(Sm,Qm);ea(Sm);
|
||||
function Tm(a,b){this.i=a.getUniformLocation(b,"f");this.d=a.getUniformLocation(b,"g");this.e=a.getUniformLocation(b,"e");this.f=a.getUniformLocation(b,"d");this.b=a.getUniformLocation(b,"h");this.a=a.getAttribLocation(b,"b");this.c=a.getAttribLocation(b,"c")};function Um(){this.a="precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor\x3dtexture2D(g,a);gl_FragColor.rgb\x3dtexColor.rgb;gl_FragColor.a\x3dtexColor.a*f;}"}E(Um,Pm);ea(Um);function Vm(){this.a="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position\x3de*vec4(b,0.,1.);a\x3d(d*vec4(c,0.,1.)).st;}"}E(Vm,Qm);ea(Vm);
|
||||
function Wm(a,b){this.d=a.getUniformLocation(b,"f");this.e=a.getUniformLocation(b,"e");this.f=a.getUniformLocation(b,"d");this.b=a.getUniformLocation(b,"g");this.a=a.getAttribLocation(b,"b");this.c=a.getAttribLocation(b,"c")};function Xm(a){this.a=u(a)?a:[]}function Ym(a,b,c){if(b!=c){var d=a.a,e=d.length,f;for(f=0;f<e;f+=2)if(b<=d[f]){d.splice(f,0,b,c);Zm(a);return}d.push(b,c);Zm(a)}}Xm.prototype.clear=function(){this.a.length=0};function Zm(a){a=a.a;var b=a.length,c=0,d;for(d=0;d<b;d+=2)a[d]!=a[d+1]&&(0<c&&a[c-2]<=a[d]&&a[d]<=a[c-1]?a[c-1]=Math.max(a[c-1],a[d+1]):(a[c++]=a[d],a[c++]=a[d+1]));a.length=c}function $m(a,b){var c=a.a,d=c.length,e;for(e=0;e<d;e+=2)b.call(void 0,c[e],c[e+1])}
|
||||
Xm.prototype.W=function(){return 0===this.a.length};function an(a,b,c){var d=a.a,e=d.length,f;for(f=0;f<e;f+=2)if(!(c<d[f]||d[f+1]<b)){if(d[f]>c)break;if(b<d[f])if(c==d[f])break;else if(c<d[f+1]){d[f]=Math.max(d[f],c);break}else d.splice(f,2),f-=2,e-=2;else if(b==d[f])if(c<d[f+1]){d[f]=c;break}else if(c==d[f+1]){d.splice(f,2);break}else d.splice(f,2),f-=2,e-=2;else if(c<d[f+1]){d.splice(f,2,d[f],b,c,d[f+1]);break}else if(c==d[f+1]){d[f+1]=b;break}else d[f+1]=b}Zm(a)};function bn(a,b,c){this.c=u(a)?a:[];this.a=[];this.b=new Xm;a=u(b)?b:this.c.length;a<this.c.length&&Ym(this.b,a,this.c.length);this.e=this.f=null;this.d=u(c)?c:35044}bn.prototype.add=function(a){var b=a.length,c;a:{c=this.b.a;var d=c.length,e=-1,f,g,h;for(g=0;g<d;g+=2){h=c[g+1]-c[g];if(h==b){c=c[g];break a}h>b&&(-1==e||h<f)&&(e=c[g],f=h)}c=e}an(this.b,c,c+b);for(d=0;d<b;++d)this.c[c+d]=a[d];a=0;for(d=this.a.length;a<d;++a)Ym(this.a[a],c,c+b);return c};
|
||||
bn.prototype.pa=function(){var a=this.b.a,b=a.length,c=0,d;for(d=0;d<b;d+=2)c+=a[d+1]-a[d];return this.c.length-c};bn.prototype.remove=function(a,b){var c,d;Ym(this.b,b,b+a);c=0;for(d=this.a.length;c<d;++c)an(this.a[c],b,b+a)};function cn(a,b){uk.call(this,a,b);this.M=new bn([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);this.i=this.ca=null;this.g=void 0;this.q=Rd();this.v=Td();this.V=new Mm;this.k=this.j=null}E(cn,uk);
|
||||
function dn(a,b,c){var d=a.d.d;if(u(a.g)&&a.g==c)d.bindFramebuffer(36160,a.i);else{b.postRenderFunctions.push(va(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},d,a.i,a.ca));b=d.createTexture();d.bindTexture(3553,b);d.texImage2D(3553,0,6408,c,c,0,6408,5121,null);d.texParameteri(3553,10240,9729);d.texParameteri(3553,10241,9729);var e=d.createFramebuffer();d.bindFramebuffer(36160,e);d.framebufferTexture2D(36160,36064,3553,b,0);a.ca=b;a.i=e;a.g=c}}
|
||||
function en(a,b,c,d){a=a.a;jd(a.T,b)&&M(a,new te(b,a,new Lm,d,null,c))}cn.prototype.n=function(){this.i=this.ca=null;this.g=void 0};function fn(a,b){cn.call(this,a,b);this.c=null}E(fn,cn);function gn(a,b){var c=b.e(),d=a.d.d,e=d.createTexture();d.bindTexture(3553,e);d.texImage2D(3553,0,6408,6408,5121,c);d.texParameteri(3553,10242,33071);d.texParameteri(3553,10243,33071);d.texParameteri(3553,10241,9729);d.texParameteri(3553,10240,9729);return e}fn.prototype.f=function(a,b,c,d){var e=this.a;return e.a.k(b.extent,b.view2DState.resolution,b.view2DState.rotation,a,function(a){return c.call(d,a,e)})};
|
||||
fn.prototype.b=function(a){var b=this.d.d,c=a.view2DState,d=c.center,e=c.resolution,f=c.rotation,g=this.c,h=this.ca,m=this.a.a,n=a.viewHints;n[0]||n[1]||(c=m.qb(a.extent,e,a.pixelRatio,c.projection),null!==c&&(n=c.state,0==n?(ed(c,"change",this.l,!1,this),kk(c)):2==n&&(g=c,h=gn(this,c),null===this.ca||a.postRenderFunctions.push(va(function(a,b){a.isContextLost()||a.deleteTexture(b)},b,this.ca)))));null!==g&&(b=this.d.e.f,hn(this,b.width,b.height,d,e,f,g.p()),d=this.q,Vd(d),Zd(d,1,-1),Xd(d,0,-1),this.c=
|
||||
g,this.ca=h,xk(a.attributions,g.i),yk(a,m))};function hn(a,b,c,d,e,f,g){b*=e;c*=e;a=a.v;Vd(a);Zd(a,2/b,2/c);$d(a,-f);Xd(a,g[0]-d[0],g[1]-d[1]);Zd(a,(g[2]-g[0])/2,(g[3]-g[1])/2);Xd(a,1,1)};function jn(){this.a="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor\x3dtexture2D(e,a);}"}E(jn,Pm);ea(jn);function kn(){this.a="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position\x3dvec4(b*d.xy+d.zw,0.,1.);a\x3dc;}"}E(kn,Qm);ea(kn);function ln(a,b){this.b=a.getUniformLocation(b,"e");this.d=a.getUniformLocation(b,"d");this.a=a.getAttribLocation(b,"b");this.c=a.getAttribLocation(b,"c")};function mn(a,b){cn.call(this,a,b);this.O=jn.Ga();this.Z=kn.Ga();this.c=null;this.F=new bn([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]);this.r=this.e=null;this.o=-1}E(mn,cn);mn.prototype.A=function(){var a=this.d.e,b=a.c,c=v(this.F),d=a.a[c];Pa(d.yd.a,d.ac);b.isContextLost()||b.deleteBuffer(d.buffer);delete a.a[c];mn.C.A.call(this)};mn.prototype.n=function(){mn.C.n.call(this);this.c=null};
|
||||
mn.prototype.b=function(a){var b=this.d,c=b.e,d=b.d,e=a.view2DState,f=e.projection,g=this.a,h=g.a,m=tk(h,f),n=bf(m.a,e.resolution,0),p=m.a[n],q=h.Ob(n,a.pixelRatio,f),r=q/m.ga(n),s=p/r,z=h.gc(),x=e.center,w;p==e.resolution?(x=Bk(x,p,a.size),w=Re(x,p,e.rotation,a.size)):w=a.extent;p=pk(m,w,p);if(null!==this.e&&this.e.a==p.a&&(this.e.b==p.b&&this.e.d==p.d&&this.e.c==p.c)&&this.o==h.c)s=this.r;else{var B=[p.d-p.a+1,p.c-p.b+1],B=Math.max(B[0]*q,B[1]*q),A=Math.pow(2,Math.ceil(Math.log(B)/Math.LN2)),B=
|
||||
s*A,D=m.Tb(n),H=D[0]+p.a*q*s,s=D[1]+p.b*q*s,s=[H,s,H+B,s+B];dn(this,a,A);d.viewport(0,0,A,A);d.clearColor(0,0,0,0);d.clear(16384);d.disable(3042);A=nn(c,this.O,this.Z);c.$c(A);null===this.c&&(this.c=new ln(d,A));on(c,this.F);d.enableVertexAttribArray(this.c.a);d.vertexAttribPointer(this.c.a,2,5126,!1,16,0);d.enableVertexAttribArray(this.c.c);d.vertexAttribPointer(this.c.c,2,5126,!1,16,8);d.uniform1i(this.c.b,0);c={};c[n]={};var P=y(h.Kc,h,c,Ak(function(a){return null!==a&&2==a.state&&pn(b.c,a.d())},
|
||||
h,r,f)),J=g.f();u(J)||(J=!0);var A=!0,H=Ee(),U=new cb(0,0,0,0),Z,na,ta;for(na=p.a;na<=p.d;++na)for(ta=p.b;ta<=p.c;++ta){D=h.mb(n,na,ta,r,f);Z=D.state;if(2==Z){if(pn(b.c,D.d())){c[n][D.a.toString()]=D;continue}}else if(4==Z||3==Z&&!J)continue;A=!1;Z=m.fc(D.a,P,null,U,H);Z||(D=m.hc(D.a,U,H),null===D||P(n+1,D))}P=La(Yb(c),Number);Va(P);var J=new Float32Array(4),R,sa,ja,Wb,U=0;for(na=P.length;U<na;++U)for(sa in ja=c[P[U]],ja)D=ja[sa],R=nk(m,D.a,H),ta=2*(R[2]-R[0])/B,Z=2*(R[3]-R[1])/B,Wb=2*(R[0]-s[0])/
|
||||
B-1,R=2*(R[1]-s[1])/B-1,Qd(J,ta,Z,Wb,R),d.uniform4fv(this.c.d,J),qn(b,D,q,z*r),d.drawArrays(5,0,4);A?(this.e=p,this.r=s,this.o=h.c):(this.r=this.e=null,this.o=-1,a.animate=!0)}zk(a.usedTiles,h,n,p);var nb=b.g;Ck(a,h,m,r,f,w,n,g.d(),function(a){var c;(c=2!=a.state)||(c=pn(b.c,a.d()))||(c=a.d()in nb.b);c||$i(nb,[a,rk(m,a.a),m.a[a.a.a],q,z*r])},this);wk(a,h);yk(a,h);d=this.q;Vd(d);Xd(d,(x[0]-s[0])/(s[2]-s[0]),(x[1]-s[1])/(s[3]-s[1]));0!==e.rotation&&$d(d,e.rotation);Zd(d,a.size[0]*e.resolution/(s[2]-
|
||||
s[0]),a.size[1]*e.resolution/(s[3]-s[1]));Xd(d,-0.5,-0.5)};function rn(){this.G=0;this.b={};this.c=this.a=null}l=rn.prototype;l.clear=function(){this.G=0;this.b={};this.c=this.a=null};function pn(a,b){return a.b.hasOwnProperty(b)}l.forEach=function(a,b){for(var c=this.a;null!==c;)a.call(b,c.xb,c.oc,this),c=c.ha};function sn(a,b){var c=a.b[b];if(c===a.c)return c.xb;c===a.a?(a.a=a.a.ha,a.a.La=null):(c.ha.La=c.La,c.La.ha=c.ha);c.ha=null;c.La=a.c;a.c.ha=c;a.c=c;return c.xb}l.pa=k("G");
|
||||
l.qa=function(){var a=Array(this.G),b=0,c;for(c=this.c;null!==c;c=c.La)a[b++]=c.oc;return a};l.wa=function(){var a=Array(this.G),b=0,c;for(c=this.c;null!==c;c=c.La)a[b++]=c.xb;return a};function tn(a){var b=a.a;delete a.b[b.oc];null!==b.ha&&(b.ha.La=null);a.a=b.ha;null===a.a&&(a.c=null);--a.G}function un(a,b,c){c={oc:b,ha:null,La:a.c,xb:c};null===a.c?a.a=c:a.c.ha=c;a.c=c;a.b[b]=c;++a.G};function vn(a,b){this.f=a;this.c=b;this.a={};this.d={};this.b={};this.e=null;K(this.f,"webglcontextlost",this.Bh,!1,this);K(this.f,"webglcontextrestored",this.Ch,!1,this)}
|
||||
function on(a,b){var c=a.c,d=b.c,e=v(b);if(e in a.a)e=a.a[e],c.bindBuffer(34962,e.buffer),$m(e.ac,function(a,b){var e=d.slice(a,b);c.bufferSubData(34962,a,new Float32Array(e))}),e.ac.clear();else{var f=c.createBuffer();c.bindBuffer(34962,f);c.bufferData(34962,new Float32Array(d),b.d);var g=new Xm;b.a.push(g);a.a[e]={yd:b,buffer:f,ac:g}}}l=vn.prototype;
|
||||
l.A=function(){Tb(this.a,function(a){Pa(a.yd.a,a.ac)});var a=this.c;a.isContextLost()||(Tb(this.a,function(b){a.deleteBuffer(b.buffer)}),Tb(this.b,function(b){a.deleteProgram(b)}),Tb(this.d,function(b){a.deleteShader(b)}))};l.Ah=k("c");function wn(a,b){var c=v(b);if(c in a.d)return a.d[c];var d=a.c,e=d.createShader(b.B());d.shaderSource(e,b.a);d.compileShader(e);return a.d[c]=e}
|
||||
function nn(a,b,c){var d=v(b)+"/"+v(c);if(d in a.b)return a.b[d];var e=a.c,f=e.createProgram();e.attachShader(f,wn(a,b));e.attachShader(f,wn(a,c));e.linkProgram(f);return a.b[d]=f}l.Bh=function(){$b(this.a);$b(this.d);$b(this.b);this.e=null};l.Ch=aa();l.$c=function(a){if(a==this.e)return!1;this.c.useProgram(a);this.e=a;return!0};function xn(a,b){Jk.call(this,0,b);this.a=pc("CANVAS");this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";tc(a,this.a,0);this.n=pc("CANVAS");this.l=0;this.o=this.n.getContext("2d");this.j=!0;this.d=zc(this.a,{antialias:!0,depth:!1,Ye:!0,preserveDrawingBuffer:!1,stencil:!0});this.e=new vn(this.a,this.d);K(this.a,"webglcontextlost",this.Xg,!1,this);K(this.a,"webglcontextrestored",this.Yg,!1,this);this.c=new rn;this.k=null;this.g=new Xi(y(function(a){var b=a[1];a=
|
||||
a[2];var e=b[0]-this.k[0],b=b[1]-this.k[1];return 65536*Math.log(a)+Math.sqrt(e*e+b*b)/a},this),function(a){return a[0].d()});this.r=y(function(){if(!this.g.W()){bj(this.g);var a=Yi(this.g);qn(this,a[0],a[3],a[4])}},this);this.i=0;yn(this)}E(xn,Jk);
|
||||
function qn(a,b,c,d){var e=a.d,f=b.d();if(pn(a.c,f))a=sn(a.c,f),e.bindTexture(3553,a.ca),9729!=a.Sd&&(e.texParameteri(3553,10240,9729),a.Sd=9729),9729!=a.Td&&(e.texParameteri(3553,10240,9729),a.Td=9729);else{var g=e.createTexture();e.bindTexture(3553,g);if(0<d){var h=a.n,m=a.o;a.l!=c?(h.width=c,h.height=c,a.l=c):m.clearRect(0,0,c,c);m.drawImage(b.b(),d,d,c,c,0,0,c,c);e.texImage2D(3553,0,6408,6408,5121,h)}else e.texImage2D(3553,0,6408,6408,5121,b.b());e.texParameteri(3553,10240,9729);e.texParameteri(3553,
|
||||
10241,9729);e.texParameteri(3553,10242,33071);e.texParameteri(3553,10243,33071);un(a.c,f,{ca:g,Sd:9729,Td:9729})}}l=xn.prototype;l.$b=function(a){return a instanceof Ok?new fn(this,a):a instanceof Pk?new mn(this,a):null};function zn(a,b,c){var d=a.f;jd(d.T,b)&&M(d,new te(b,d,new Lm,c,null,a.e))}l.A=function(){var a=this.d;a.isContextLost()||this.c.forEach(function(b){null===b||a.deleteTexture(b.ca)});Fc(this.e);xn.C.A.call(this)};
|
||||
l.Xe=function(a,b){for(var c=this.d,d;1024<this.c.pa()-this.i;){d=this.c.a.xb;if(null===d)if(+this.c.a.oc==b.index)break;else--this.i;else c.deleteTexture(d.ca);tn(this.c)}};l.Xg=function(a){a.preventDefault();this.c.clear();this.i=0;Tb(this.b,function(a){a.n()})};l.Yg=function(){yn(this);this.f.K()};function yn(a){a=a.d;a.activeTexture(33984);a.blendFuncSeparate(770,771,1,771);a.disable(2884);a.disable(2929);a.disable(3089);a.disable(2960)}
|
||||
l.tc=function(a){var b=this.e,c=this.d;if(c.isContextLost())return!1;if(null===a)return this.j&&(Qh(this.a,!1),this.j=!1),!1;this.k=a.focus;un(this.c,(-a.index).toString(),null);++this.i;var d=[],e=a.layersArray,f=a.view2DState.resolution,g,h,m,n;g=0;for(h=e.length;g<h;++g)m=e[g],n=a.layerStates[v(m)],n.visible&&(1==n.jd&&f<n.maxResolution&&f>=n.minResolution)&&d.push(m);g=0;for(h=d.length;g<h;++g)m=d[g],e=Lk(this,m),n=a.layerStates[v(m)],e.b(a,n);g=a.size[0]*a.pixelRatio;h=a.size[1]*a.pixelRatio;
|
||||
if(this.a.width!=g||this.a.height!=h)this.a.width=g,this.a.height=h;c.bindFramebuffer(36160,null);c.clearColor(0,0,0,0);c.clear(16384);c.enable(3042);c.viewport(0,0,this.a.width,this.a.height);zn(this,"precompose",a);g=0;for(h=d.length;g<h;++g){m=d[g];n=a.layerStates[v(m)];c=e=Lk(this,m);m=a;e=b;en(c,"precompose",e,m);on(e,c.M);var f=e.c,p=n.brightness||1!=n.contrast||n.hue||1!=n.saturation,q=void 0,r=void 0;p?(q=Rm.Ga(),r=Sm.Ga()):(q=Um.Ga(),r=Vm.Ga());q=nn(e,q,r);r=void 0;p?null===c.j?(r=new Tm(f,
|
||||
q),c.j=r):r=c.j:null===c.k?(r=new Wm(f,q),c.k=r):r=c.k;e.$c(q)&&(f.enableVertexAttribArray(r.a),f.vertexAttribPointer(r.a,2,5126,!1,16,0),f.enableVertexAttribArray(r.c),f.vertexAttribPointer(r.c,2,5126,!1,16,8),f.uniform1i(r.b,0));f.uniformMatrix4fv(r.f,!1,c.q);f.uniformMatrix4fv(r.e,!1,c.v);p&&f.uniformMatrix4fv(r.i,!1,Nm(c.V,n.brightness,n.contrast,n.hue,n.saturation));f.uniform1f(r.d,n.opacity);f.bindTexture(3553,c.ca);f.drawArrays(5,0,4);en(c,"postcompose",e,m)}this.j||(Qh(this.a,!0),this.j=!0);
|
||||
Kk(a);1024<this.c.pa()-this.i&&a.postRenderFunctions.push(y(this.Xe,this));this.g.W()||(a.postRenderFunctions.push(this.r),a.animate=!0);zn(this,"postcompose",a);Nk(this,a);Mk(a)};var An=["webgl","canvas","dom"];
|
||||
function T(a){N.call(this);var b=Bn(a);this.Ee=u(a.pixelRatio)?a.pixelRatio:I.sd;this.Cc=b.ol3Logo;this.r=new ih(this.ai,void 0,this);Ec(this,this.r);this.zc=Rd();this.Ge=Rd();this.Bc=0;this.n=this.O=this.d=null;this.b=mc("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";I.xc&&(this.b.className="ol-touch");this.Pa=mc("DIV","ol-overlaycontainer");this.b.appendChild(this.Pa);this.v=
|
||||
mc("DIV","ol-overlaycontainer-stopevent");K(this.v,"click dblclick mousedown touchstart MSPointerDown pointerdown".split(" "),Hc);this.b.appendChild(this.v);a=new Mi(this);K(a,Xb(Wi),this.Zd,!1,this);Ec(this,a);this.Oa=b.keyboardEventTarget;this.q=new th;K(this.q,"key",this.Md,!1,this);Ec(this,this.q);a=new Zh(this.b);K(a,"mousewheel",this.Md,!1,this);Ec(this,a);this.k=b.controls;this.Ac=b.deviceOptions;this.j=b.interactions;this.l=b.overlays;this.Da=new b.ci(this.b,this);Ec(this,this.Da);this.Je=
|
||||
new oh;K(this.Je,"resize",this.M,!1,this);this.na=null;this.F=[];this.Qa=[];this.Ra=new cj(y(this.Cf,this),y(this.dg,this));this.o=new Id;K(this.o,["add","remove"],this.bg,!1,this);Ec(this,this.o);this.skippedFeatureUids_={};K(this,Ed("layergroup"),this.Nf,!1,this);K(this,Ed("view"),this.eg,!1,this);K(this,Ed("size"),this.ag,!1,this);K(this,Ed("target"),this.cg,!1,this);this.U(b.si);this.k.forEach(function(a){a.setMap(this)},this);K(this.k,"add",function(a){a.element.setMap(this)},!1,this);K(this.k,
|
||||
"remove",function(a){a.element.setMap(null)},!1,this);this.j.forEach(function(a){a.setMap(this)},this);K(this.j,"add",function(a){a.element.setMap(this)},!1,this);K(this.j,"remove",function(a){a.element.setMap(null)},!1,this);this.l.forEach(function(a){a.setMap(this)},this);K(this.l,"add",function(a){a.element.setMap(this)},!1,this);K(this.l,"remove",function(a){a.element.setMap(null)},!1,this)}E(T,N);l=T.prototype;l.Ke=function(a){this.k.push(a)};l.Me=function(a){this.j.push(a)};l.Ne=function(a){this.Va().ab().push(a)};
|
||||
l.Oe=function(a){this.l.push(a)};l.oa=function(a){this.K();Array.prototype.push.apply(this.F,arguments)};l.A=function(){uc(this.b);T.C.A.call(this)};l.Yd=function(a,b,c,d,e){if(null!==this.d){a=this.fa(a);a:{var f=this.Da,g=this.d;c=u(c)?c:null;d=u(d)?d:pd;e=u(e)?e:null;var h=f.f.Va().Oc(),m;for(m=h.length-1;0<=m;--m){var n=h[m];if(n.b()&&d.call(e,n)&&(n=Lk(f,n).f(a,g,b,c))){b=n;break a}}b=void 0}return b}};l.Hd=function(a){return this.fa(this.Mc(a))};
|
||||
l.Mc=function(a){if(u(a.changedTouches)){a=a.changedTouches.item(0);var b=Lh(this.b);return[a.clientX-b.x,a.clientY-b.y]}a=Kh(a,this.b);return[a.x,a.y]};l.qc=function(){return this.t("target")};T.prototype.getTarget=T.prototype.qc;l=T.prototype;l.fa=function(a){var b=this.d;if(null===b)return null;a=a.slice();return Ik(b.pixelToCoordinateMatrix,a,a)};l.df=k("k");l.wf=k("l");l.lf=k("j");l.Va=function(){return this.t("layergroup")};T.prototype.getLayerGroup=T.prototype.Va;
|
||||
T.prototype.Fe=function(){var a=this.Va();if(u(a))return a.ab()};T.prototype.g=function(a){var b=this.d;if(null===b)return null;a=a.slice(0,2);return Ik(b.coordinateToPixelMatrix,a,a)};T.prototype.f=function(){return this.t("size")};T.prototype.getSize=T.prototype.f;T.prototype.a=function(){return this.t("view")};T.prototype.getView=T.prototype.a;l=T.prototype;l.Df=k("b");
|
||||
l.Cf=function(a,b,c,d){var e=this.d;if(!(null!==e&&b in e.wantedTiles&&e.wantedTiles[b][a.a.toString()]))return Infinity;a=c[0]-e.focus[0];c=c[1]-e.focus[1];return 65536*Math.log(d)+Math.sqrt(a*a+c*c)/d};l.Md=function(a,b){var c=new Ki(b||a.type,this,a);this.Zd(c)};l.Zd=function(a){if(null!==this.d){this.na=a.coordinate;a.b=this.d;var b=this.j.a,c;if(!1!==M(this,a))for(c=b.length-1;0<=c&&b[c].ia(a);c--);}};
|
||||
l.Yf=function(){var a=this.d,b=this.Ra;if(!b.W()){var c=16,d=c,e=0;if(null!==a){var e=a.viewHints,f=this.Ac;e[0]&&(c=!1===f.loadTilesWhileAnimating?0:8,d=2);e[1]&&(c=!1===f.loadTilesWhileInteracting?0:8,d=2);e=Vb(a.wantedTiles)}c*=e;d*=e;if(b.d<c){bj(b);c=Math.min(c-b.d,d,b.pa());for(d=0;d<c;++d)e=Yi(b)[0],ed(e,"change",b.i,!1,b),0==e.state&&(e.state=1,e.e=[ed(e.c,"error",e.k,!1,e),ed(e.c,"load",e.l,!1,e)],e.n(e,e.g));b.d+=c}}b=this.Qa;c=0;for(d=b.length;c<d;++c)b[c](this,a);b.length=0};l.ag=function(){this.K()};
|
||||
l.bg=function(){this.skippedFeatureUids_={};this.o.forEach(function(a){this.skippedFeatureUids_[v(a).toString()]=!0},this);this.K()};l.cg=function(){var a=this.qc(),a=u(a)?ic(a):null;Ah(this.q);null===a?uc(this.b):(a.appendChild(this.b),uh(this.q,null===this.Oa?a:this.Oa));this.M()};l.dg=function(){this.K()};l.fg=function(){this.K()};l.eg=function(){null!==this.O&&(L(this.O),this.O=null);var a=this.a();null!=a&&(this.O=K(a,"propertychange",this.fg,!1,this));this.K()};l.Of=function(){this.K()};
|
||||
l.Pf=function(){this.K()};l.Nf=function(){if(null!==this.n){for(var a=this.n.length,b=0;b<a;++b)L(this.n[b]);this.n=null}a=this.Va();null!=a&&(this.n=[K(a,"propertychange",this.Pf,!1,this),K(a,"change",this.Of,!1,this)]);this.K()};l.bi=function(){var a=this.r;jh(a);a.Dd()};l.K=function(){null!=this.r.Q||this.r.start()};l.Xh=function(a){if(u(this.k.remove(a)))return a};l.Yh=function(a){var b;u(this.j.remove(a))&&(b=a);return b};l.Zh=function(a){return this.Va().ab().remove(a)};l.$h=function(a){if(u(this.l.remove(a)))return a};
|
||||
l.ai=function(a){var b,c,d,e=this.f();b=this.a();var f=u(b)?this.a().N():void 0,g=null;if(u(e)&&0<e[0]&&0<e[1]&&u(f)&&f.Xc()){g=Ra(b.k);b=this.Va().Nc();var h=b.layers;d=b.layerStates;var m={},n;b=0;for(c=h.length;b<c;++b)n=h[b],m[v(n)]=d[b];d=pj(f);g={animate:!1,attributions:{},coordinateToPixelMatrix:this.zc,extent:null,focus:null===this.na?d.center:this.na,index:this.Bc++,layersArray:h,layerStates:m,logos:{},pixelRatio:this.Ee,pixelToCoordinateMatrix:this.Ge,postRenderFunctions:[],size:e,skippedFeatureUids_:this.skippedFeatureUids_,
|
||||
tileQueue:this.Ra,time:a,usedTiles:{},view2DState:d,viewHints:g,wantedTiles:{}};this.Cc&&(g.logos["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]=
|
||||
"http://ol3js.org/")}a=this.F;b=e=0;for(c=a.length;b<c;++b)f=a[b],f(this,g)&&(a[e++]=f);a.length=e;null!==g&&(g.extent=Re(d.center,d.resolution,d.rotation,g.size));this.d=g;this.Da.tc(g);null!==g&&(g.animate&&this.K(),Array.prototype.push.apply(this.Qa,g.postRenderFunctions),0!==this.F.length||(g.animate||g.viewHints[0]||g.viewHints[1])||M(this,new bi("moveend",this)));M(this,new bi("postrender",this,g));c=b=this.Yf;this&&(c=y(b,this));ma(t.setImmediate)?t.setImmediate(c):(mh||(mh=nh()),mh(c))};
|
||||
l.fi=function(a){this.u("layergroup",a)};T.prototype.setLayerGroup=T.prototype.fi;T.prototype.Ea=function(a){this.u("size",a)};T.prototype.setSize=T.prototype.Ea;T.prototype.He=function(a){this.u("target",a)};T.prototype.setTarget=T.prototype.He;T.prototype.Ie=function(a){this.u("view",a)};T.prototype.setView=T.prototype.Ie;T.prototype.M=function(){var a=this.qc(),a=u(a)?ic(a):null;null===a?this.Ea(void 0):(a=Sh(a),this.Ea([a.width,a.height]))};
|
||||
function Bn(a){var b=null;u(a.keyboardEventTarget)&&(b=ka(a.keyboardEventTarget)?document.getElementById(a.keyboardEventTarget):a.keyboardEventTarget);var c={},d=u(a.ol3Logo)?a.ol3Logo:!0,e=a.layers instanceof ak?a.layers:new ak({layers:a.layers});c.layergroup=e;c.target=a.target;c.view=u(a.view)?a.view:new Q;var e=Jk,f;u(a.renderer)?ha(a.renderer)?f=a.renderer:ka(a.renderer)&&(f=[a.renderer]):f=An;var g,h;g=0;for(h=f.length;g<h;++g){var m=f[g];if("canvas"==m){if(I.ud){e=wm;break}}else if("dom"==
|
||||
m){if(I.Ae){e=Km;break}}else if("webgl"==m&&I.xd){e=xn;break}}f=u(a.controls)?ha(a.controls)?new Id(Ra(a.controls)):a.controls:uj();g=u(a.deviceOptions)?a.deviceOptions:{};h=u(a.interactions)?ha(a.interactions)?new Id(Ra(a.interactions)):a.interactions:Wj();a=u(a.overlays)?ha(a.overlays)?new Id(Ra(a.overlays)):a.overlays:new Id;return{controls:f,deviceOptions:g,interactions:h,keyboardEventTarget:b,ol3Logo:d,overlays:a,ci:e,si:c}}gk();function Cn(a){N.call(this);this.o=u(a.insertFirst)?a.insertFirst:!0;this.v=u(a.stopEvent)?a.stopEvent:!0;this.r=u(a.offsetX)?a.offsetX:0;this.q=u(a.offsetY)?a.offsetY:0;this.b=pc("DIV");this.b.style.position="absolute";this.a={Zb:"",pc:"",uc:"",vc:"",visible:!0};this.d=null;K(this,Ed("element"),this.Jf,!1,this);K(this,Ed("map"),this.Tf,!1,this);K(this,Ed("position"),this.Wf,!1,this);K(this,Ed("positioning"),this.Xf,!1,this);u(a.element)&&this.pe(a.element);u(a.position)&&this.l(a.position);u(a.positioning)&&
|
||||
this.n(a.positioning)}E(Cn,N);Cn.prototype.j=function(){return this.t("element")};Cn.prototype.getElement=Cn.prototype.j;Cn.prototype.f=function(){return this.t("map")};Cn.prototype.getMap=Cn.prototype.f;Cn.prototype.k=function(){return this.t("position")};Cn.prototype.getPosition=Cn.prototype.k;Cn.prototype.g=function(){return this.t("positioning")};Cn.prototype.getPositioning=Cn.prototype.g;l=Cn.prototype;l.Jf=function(){rc(this.b);var a=this.j();null!=a&&qc(this.b,a)};
|
||||
l.Tf=function(){null!==this.d&&(uc(this.b),L(this.d),this.d=null);var a=this.f();null!=a&&(this.d=K(a,"postrender",this.Lg,!1,this),Dn(this),a=this.v?a.v:a.Pa,this.o?tc(a,this.b,0):qc(a,this.b))};l.Lg=function(){Dn(this)};l.Wf=function(){Dn(this)};l.Xf=function(){Dn(this)};l.pe=function(a){this.u("element",a)};Cn.prototype.setElement=Cn.prototype.pe;Cn.prototype.setMap=function(a){this.u("map",a)};Cn.prototype.setMap=Cn.prototype.setMap;Cn.prototype.l=function(a){this.u("position",a)};
|
||||
Cn.prototype.setPosition=Cn.prototype.l;Cn.prototype.n=function(a){this.u("positioning",a)};Cn.prototype.setPositioning=Cn.prototype.n;
|
||||
function Dn(a){var b=a.f(),c=a.k();if(u(b)&&null!==b.d&&u(c)){var c=b.g(c),d=b.f(),b=a.b.style,e=a.g();if("bottom-right"==e||"center-right"==e||"top-right"==e){""!==a.a.pc&&(a.a.pc=b.left="");var f=Math.round(d[0]-c[0])+"px";a.a.uc!=f&&(a.a.uc=b.right=f)}else{""!==a.a.uc&&(a.a.uc=b.right="");f=-a.r;if("bottom-center"==e||"center-center"==e||"top-center"==e)f+=Nh(a.b).width/2;f=Math.round(c[0]-f)+"px";a.a.pc!=f&&(a.a.pc=b.left=f)}if("bottom-left"==e||"bottom-center"==e||"bottom-right"==e)""!==a.a.vc&&
|
||||
(a.a.vc=b.top=""),c=Math.round(d[1]-c[1])+"px",a.a.Zb!=c&&(a.a.Zb=b.bottom=c);else{""!==a.a.Zb&&(a.a.Zb=b.bottom="");d=-a.q;if("center-left"==e||"center-center"==e||"center-right"==e)d+=Nh(a.b).height/2;c=Math.round(c[1]-d)+"px";a.a.vc!=c&&(a.a.vc=b.top=c)}a.a.visible||(Qh(a.b,!0),a.a.visible=!0)}else a.a.visible&&(Qh(a.b,!1),a.a.visible=!1)};var En=tb?"webkitfullscreenchange":sb?"mozfullscreenchange":F?"MSFullscreenChange":"fullscreenchange";function Fn(){var a=fc().a,b=a.body;return!!(b.webkitRequestFullscreen||b.mozRequestFullScreen&&a.mozFullScreenEnabled||b.msRequestFullscreen&&a.msFullscreenEnabled||b.requestFullscreen&&a.fullscreenEnabled)}
|
||||
function Gn(a){a.webkitRequestFullscreen?a.webkitRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen?a.msRequestFullscreen():a.requestFullscreen&&a.requestFullscreen()}function Hn(){var a=fc().a;return!!(a.webkitIsFullScreen||a.mozFullScreen||a.msFullscreenElement||a.fullscreenElement)};function In(a){a=u(a)?a:{};this.b=u(a.className)?a.className:"ol-full-screen";var b=mc("SPAN",{role:"tooltip"},u(a.tipLabel)?a.tipLabel:"Toggle full-screen"),c=mc("BUTTON",{"class":this.b+"-"+Hn()+" ol-has-tooltip"});c.appendChild(b);K(c,["click","touchend"],this.d,!1,this);K(c,["mouseout",Mc],function(){this.blur()},!1);K(t.document,En,this.j,!1,this);b=mc("DIV",{"class":this.b+" ol-unselectable "+(Fn()?"":"ol-unsupported")},c);qj.call(this,{element:b,target:a.target});this.k=u(a.keys)?a.keys:!1}
|
||||
E(In,qj);In.prototype.d=function(a){Fn()&&(a.preventDefault(),a=this.a,null!==a&&(Hn()?(a=fc().a,a.webkitCancelFullScreen?a.webkitCancelFullScreen():a.mozCancelFullScreen?a.mozCancelFullScreen():a.msExitFullscreen?a.msExitFullscreen():a.exitFullscreen&&a.exitFullscreen()):(a=a.qc(),a=ic(a),this.k?a.mozRequestFullScreenWithKeys?a.mozRequestFullScreenWithKeys():a.webkitRequestFullscreen?a.webkitRequestFullscreen():Gn(a):Gn(a))))};
|
||||
In.prototype.j=function(){var a=this.b+"-true",b=this.b+"-false",c=vc(this.element),d=this.a;Hn()?Nb(c,b,a):Nb(c,a,b);null===d||d.M()};function Jn(a){a=u(a)?a:{};var b=mc("DIV",{"class":u(a.className)?a.className:"ol-mouse-position"});qj.call(this,{element:b,target:a.target});K(this,Ed("projection"),this.M,!1,this);u(a.coordinateFormat)&&this.q(a.coordinateFormat);u(a.projection)&&this.r(lg(a.projection));this.na=u(a.undefinedHTML)?a.undefinedHTML:"";this.k=b.innerHTML;this.j=this.d=this.b=null}E(Jn,qj);
|
||||
Jn.prototype.f=function(a){a=a.b;null===a?this.b=null:this.b!=a.view2DState.projection&&(this.b=a.view2DState.projection,this.d=null);Kn(this,this.j)};Jn.prototype.M=function(){this.d=null};Jn.prototype.l=function(){return this.t("coordinateFormat")};Jn.prototype.getCoordinateFormat=Jn.prototype.l;Jn.prototype.n=function(){return this.t("projection")};Jn.prototype.getProjection=Jn.prototype.n;Jn.prototype.v=function(a){a=Kh(a,this.a.b);this.j=[a.x,a.y];Kn(this,this.j)};
|
||||
Jn.prototype.F=function(){Kn(this,null);this.j=null};Jn.prototype.setMap=function(a){Jn.C.setMap.call(this,a);null!==a&&(a=a.b,this.g.push(K(a,"mousemove",this.v,!1,this),K(a,"mouseout",this.F,!1,this)))};Jn.prototype.q=function(a){this.u("coordinateFormat",a)};Jn.prototype.setCoordinateFormat=Jn.prototype.q;Jn.prototype.r=function(a){this.u("projection",a)};Jn.prototype.setProjection=Jn.prototype.r;
|
||||
function Kn(a,b){var c=a.na;if(null!==b&&null!==a.b){if(null===a.d){var d=a.n();a.d=u(d)?Uf(a.b,d):ng}d=a.a.fa(b);null!==d&&(a.d(d,d),c=a.l(),c=u(c)?c(d):d.toString())}u(a.k)&&c==a.k||(a.element.innerHTML=c,a.k=c)};function Ln(a){a=a||{};var b=u(a.className)?a.className:"ol-scale-line";this.j=mc("DIV",{"class":b+"-inner"});this.l=mc("DIV",{"class":b+" ol-unselectable"},this.j);this.n=null;this.k=u(a.minWidth)?a.minWidth:64;this.d=!1;this.v=void 0;this.r="";this.b=null;qj.call(this,{element:this.l,target:a.target});K(this,Ed("units"),this.M,!1,this);this.F(a.units||"metric")}E(Ln,qj);var Mn=[1,2,5];Ln.prototype.q=function(){return this.t("units")};Ln.prototype.getUnits=Ln.prototype.q;
|
||||
Ln.prototype.f=function(a){a=a.b;null===a?this.n=null:this.n=a.view2DState;Nn(this)};Ln.prototype.M=function(){Nn(this)};Ln.prototype.F=function(a){this.u("units",a)};Ln.prototype.setUnits=Ln.prototype.F;
|
||||
function Nn(a){var b=a.n;if(null===b)a.d&&(Qh(a.l,!1),a.d=!1);else{var c=b.center,d=b.projection,b=d.d(b.resolution,c),e=d.ma,f=a.q();"degrees"!=e||"metric"!=f&&"imperial"!=f?"ft"!=e&&"m"!=e||"degrees"!=f?a.b=null:(null===a.b&&(a.b=Uf(d,lg("EPSG:4326"))),c=Math.cos(Qb(a.b(c)[1])),d=Of.radius,"ft"==e&&(d/=0.3048),b*=180/(Math.PI*c*d)):(a.b=null,c=Math.cos(Qb(c[1])),b*=Math.PI*c*Of.radius/180);c=a.k*b;e="";"degrees"==f?c<1/60?(e="\u2033",b*=3600):1>c?(e="\u2032",b*=60):e="\u00b0":"imperial"==f?0.9144>
|
||||
c?(e="in",b/=0.0254):1609.344>c?(e="ft",b/=0.3048):(e="mi",b/=1609.344):"nautical"==f?(b/=1852,e="nm"):"metric"==f?1>c?(e="mm",b*=1E3):1E3>c?e="m":(e="km",b/=1E3):"us"==f&&(0.9144>c?(e="in",b*=39.37):1609.344>c?(e="ft",b/=0.30480061):(e="mi",b/=1609.3472));for(var f=3*Math.floor(Math.log(a.k*b)/Math.log(10)),g,h;;){g=Mn[f%3]*Math.pow(10,Math.floor(f/3));h=Math.round(g/b);if(h>=a.k)break;++f}g=g+e;a.r!=g&&(a.j.innerHTML=g,a.r=g);a.v!=h&&(a.j.style.width=h+"px",a.v=h);a.d||(Qh(a.l,!0),a.d=!0)}};function On(a){Bc.call(this);this.c=a;this.a={}}E(On,Bc);var Pn=[];On.prototype.aa=function(a,b,c,d,e){ha(b)||(Pn[0]=b,b=Pn);for(var f=0;f<b.length;f++){var g=K(a,b[f],c||this,d||!1,e||this.c||this);this.a[g.key]=g}return this};
|
||||
On.prototype.ld=function(a,b,c,d,e){if(ha(b))for(var f=0;f<b.length;f++)this.ld(a,b[f],c,d,e);else{a:if(e=e||this.c||this,d=!!d,c=ad(c||this),Tc(a))a=a.T.a[b],b=-1,a&&(b=vd(a,c,d,e)),e=-1<b?a[b]:null;else{if(a=gd(a,b,d))for(b=0;b<a.length;b++)if(!a[b].Ca&&a[b].ra==c&&a[b].capture==d&&a[b].$a==e){e=a[b];break a}e=null}e&&(L(e),delete this.a[e.key])}return this};function Qn(a){Tb(a.a,L);a.a={}}On.prototype.A=function(){On.C.A.call(this);Qn(this)};
|
||||
On.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function Rn(a,b,c){wd.call(this);this.target=a;this.handle=b||a;this.c=c||new Ch(NaN,NaN,NaN,NaN);this.b=hc(a);this.a=new On(this);Ec(this,this.a);K(this.handle,["touchstart","mousedown"],this.te,!1,this)}E(Rn,wd);var Sn=F||sb&&Gb("1.9.3");l=Rn.prototype;l.clientX=0;l.clientY=0;l.screenX=0;l.screenY=0;l.ue=0;l.ve=0;l.nb=0;l.ob=0;l.Fd=!0;l.Ta=!1;l.Pd=0;l.kg=0;l.gg=!1;l.md=!1;
|
||||
l.A=function(){Rn.C.A.call(this);fd(this.handle,["touchstart","mousedown"],this.te,!1,this);Qn(this.a);Sn&&this.b.releaseCapture();this.handle=this.target=null};function Tn(a){u(a.e)||(a.e=Rh(a.target));return a.e}
|
||||
l.te=function(a){var b="mousedown"==a.type;if(!this.Fd||this.Ta||b&&!Rc(a))M(this,"earlycancel");else{Un(a);if(0==this.Pd)if(M(this,new Vn("start",this,a.clientX,a.clientY,a)))this.Ta=!0,a.preventDefault();else return;else a.preventDefault();var b=this.b,c=b.documentElement,d=!Sn;this.a.aa(b,["touchmove","mousemove"],this.Uf,d);this.a.aa(b,["touchend","mouseup"],this.dc,d);Sn?(c.setCapture(!1),this.a.aa(c,"losecapture",this.dc)):this.a.aa(b?b.parentWindow||b.defaultView:window,"blur",this.dc);F&&
|
||||
this.gg&&this.a.aa(b,"dragstart",Ic);this.f&&this.a.aa(this.f,"scroll",this.Ih,d);this.clientX=this.ue=a.clientX;this.clientY=this.ve=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.md?(a=this.target,b=a.offsetLeft,c=a.offsetParent,c||"fixed"!=Eh(a,"position")||(c=hc(a).documentElement),c?(sb?(d=Vh(c),b+=d.left):F&&8<=Ib&&(d=Vh(c),b-=d.left),a=Rh(c)?c.clientWidth-(b+a.offsetWidth):b):a=b):a=this.target.offsetLeft;this.nb=a;this.ob=this.target.offsetTop;this.d=xc(fc(this.b));this.kg=wa()}};
|
||||
l.dc=function(a,b){Qn(this.a);Sn&&this.b.releaseCapture();if(this.Ta){Un(a);this.Ta=!1;var c=Wn(this,this.nb),d=Xn(this,this.ob);M(this,new Vn("end",this,a.clientX,a.clientY,a,c,d,b||"touchcancel"==a.type))}else M(this,"earlycancel")};function Un(a){var b=a.type;"touchstart"==b||"touchmove"==b?Pc(a,a.H.targetTouches[0],a.c):"touchend"!=b&&"touchcancel"!=b||Pc(a,a.H.changedTouches[0],a.c)}
|
||||
l.Uf=function(a){if(this.Fd){Un(a);var b=(this.md&&Tn(this)?-1:1)*(a.clientX-this.clientX),c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.Ta){var d=this.ue-this.clientX,e=this.ve-this.clientY;if(d*d+e*e>this.Pd)if(M(this,new Vn("start",this,a.clientX,a.clientY,a)))this.Ta=!0;else{this.Y||this.dc(a);return}}c=Yn(this,b,c);b=c.x;c=c.y;this.Ta&&M(this,new Vn("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(Zn(this,a,b,c),a.preventDefault())}};
|
||||
function Yn(a,b,c){var d=xc(fc(a.b));b+=d.x-a.d.x;c+=d.y-a.d.y;a.d=d;a.nb+=b;a.ob+=c;b=Wn(a,a.nb);a=Xn(a,a.ob);return new Rb(b,a)}l.Ih=function(a){var b=Yn(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;Zn(this,a,b.x,b.y)};function Zn(a,b,c,d){a.md&&Tn(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";M(a,new Vn("drag",a,b.clientX,b.clientY,b,c,d))}
|
||||
function Wn(a,b){var c=a.c,d=isNaN(c.left)?null:c.left,c=isNaN(c.width)?0:c.width;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function Xn(a,b){var c=a.c,d=isNaN(c.top)?null:c.top,c=isNaN(c.height)?0:c.height;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function Vn(a,b,c,d,e,f,g,h){Gc.call(this,a);this.clientX=c;this.clientY=d;this.d=e;this.left=u(f)?f:b.nb;this.top=u(g)?g:b.ob;this.b=b;this.a=!!h}E(Vn,Gc);function $n(a){a=u(a)?a:{};this.b=void 0;this.j=ao;this.k=!1;var b=u(a.className)?a.className:"ol-zoomslider";a=mc("DIV",[b+"-thumb","ol-unselectable"]);b=mc("DIV",[b,"ol-unselectable"],a);this.d=new Rn(a);Ec(this,this.d);K(this.d,["drag","end"],this.n,void 0,this);K(b,"click",this.l,!1,this);K(a,"click",Hc);qj.call(this,{element:b})}E($n,qj);var ao=0;$n.prototype.setMap=function(a){$n.C.setMap.call(this,a);null===a||a.K()};
|
||||
$n.prototype.f=function(a){if(null!==a.b){if(!this.k){var b=this.element,c=vc(b),b=Sh(b),d;d=Jh(c);var e=Nh(c);d=new Ch(d.x,d.y,e.width,e.height);var e=Uh(c,"margin"),f=Vh(c),c=b.width-e.left-e.right-f.left-f.right-d.width;d=b.height-e.top-e.bottom-f.top-f.bottom-d.height;b.width>b.height?(this.j=1,b=new Ch(0,0,c,0)):(this.j=ao,b=new Ch(0,0,0,d));this.d.c=b||new Ch(NaN,NaN,NaN,NaN);this.k=!0}a=a.b.view2DState.resolution;a!==this.b&&(this.b=a,a=-1*(oj(this.a.a().N())(a)-1),b=this.d,c=vc(this.element),
|
||||
1==this.j?Fh(c,b.c.left+b.c.width*a):Fh(c,b.c.left,b.c.top+b.c.height*a))}};$n.prototype.l=function(a){var b=this.a,c=b.a().N();a=bo(this,co(this,a.offsetX,a.offsetY));b.oa(zg({resolution:a,duration:200,easing:tg}));a=c.constrainResolution(a);c.d(a)};function co(a,b,c){var d=a.d.c,e=0;return e=1===a.j?(b-d.left)/d.width:(c-d.top)/d.height}function bo(a,b){b=-1*(Ob(b,0,1)-1);return nj(a.a.a().N())(b)}
|
||||
$n.prototype.n=function(a){var b=this.a,c=b.a().N();"drag"===a.type?(a=bo(this,co(this,a.left,a.top)),a!==this.b&&(this.b=a,c.d(a))):(b.oa(zg({resolution:this.b,duration:200,easing:tg})),a=c.constrainResolution(this.b),c.d(a))};function eo(a){a=u(a)?a:{};this.b=u(a.extent)?a.extent:null;var b=u(a.className)?a.className:"ol-zoom-extent",c=mc("SPAN",{role:"tooltip"},u(a.tipLabel)?a.tipLabel:"Fit to extent"),b=mc("DIV",{"class":b+" ol-unselectable"}),d=mc("BUTTON",{"class":"ol-has-tooltip"});d.appendChild(c);b.appendChild(d);K(d,["touchend","click"],this.d,!1,this);K(d,["mouseout",Mc],function(){this.blur()},!1);qj.call(this,{element:b,target:a.target})}E(eo,qj);
|
||||
eo.prototype.d=function(a){a.preventDefault();a=this.a;var b=a.a().N(),c=null===this.b?b.l().p():this.b;b.Gd(c,a.f())};function fo(a){N.call(this);this.a=a;K(this.a,["change","input"],this.k,!1,this);K(this,Ed("value"),this.l,!1,this);K(this,Ed("checked"),this.j,!1,this)}E(fo,N);fo.prototype.b=function(){return this.t("checked")};fo.prototype.getChecked=fo.prototype.b;fo.prototype.d=function(){return this.t("value")};fo.prototype.getValue=fo.prototype.d;fo.prototype.g=function(a){this.u("value",a)};fo.prototype.setValue=fo.prototype.g;fo.prototype.f=function(a){this.u("checked",a)};fo.prototype.setChecked=fo.prototype.f;
|
||||
fo.prototype.k=function(){var a=this.a;"checkbox"===a.type||"radio"===a.type?this.f(a.checked):this.g(a.value)};fo.prototype.j=function(){this.a.checked=this.b()};fo.prototype.l=function(){this.a.value=this.d()};function go(){};var ho;a:if(document.implementation&&document.implementation.createDocument)ho=document.implementation.createDocument("","",null);else{if("undefined"!=typeof ActiveXObject){var io=new ActiveXObject("MSXML2.DOMDocument");if(io){io.resolveExternals=!1;io.validateOnParse=!1;try{io.setProperty("ProhibitDTD",!0),io.setProperty("MaxXMLSize",2048),io.setProperty("MaxElementDepth",256)}catch(jo){}}if(io){ho=io;break a}}throw Error("Your browser does not support creating new documents");}var ko=ho;
|
||||
function lo(a,b){return ko.createElementNS(a,b)}function mo(a,b){null===a&&(a="");return ko.createNode(1,b,a)}var no=document.implementation&&document.implementation.createDocument?lo:mo;function oo(a){return po(a,!1,[]).join("")}function po(a,b,c){if(4==a.nodeType||3==a.nodeType)b?c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(a.nodeValue);else for(a=a.firstChild;null!==a;a=a.nextSibling)po(a,b,c);return c}function qo(a){return a.localName}
|
||||
function ro(a){var b=a.localName;return u(b)?b:a.baseName}var so=F?ro:qo;function to(a){return a instanceof Document}function uo(a){return oa(a)&&9==a.nodeType}var vo=F?uo:to;function wo(a){return a instanceof Node}function xo(a){return oa(a)&&u(a.nodeType)}var yo=F?xo:wo;function zo(a,b,c){return a.getAttributeNS(b,c)||""}function Ao(a,b,c){var d="";a=Bo(a,b,c);u(a)&&(d=a.nodeValue);return d}var Co=document.implementation&&document.implementation.createDocument?zo:Ao;
|
||||
function Do(a,b,c){return a.getAttributeNodeNS(b,c)}function Eo(a,b,c){var d=null;a=a.attributes;for(var e,f,g=0,h=a.length;g<h;++g)if(e=a[g],e.namespaceURI==b&&(f=e.prefix?e.prefix+":"+c:c,f==e.nodeName)){d=e;break}return d}var Bo=document.implementation&&document.implementation.createDocument?Do:Eo;function Fo(a,b,c,d){a.setAttributeNS(b,c,d)}function Go(a,b,c,d){null===b?a.setAttribute(c,d):(b=a.ownerDocument.createNode(2,c,b),b.nodeValue=d,a.setAttributeNode(b))}
|
||||
var Ho=document.implementation&&document.implementation.createDocument?Fo:Go;function Io(a){return(new DOMParser).parseFromString(a,"application/xml")}function Jo(a,b){return function(c,d){var e=a.call(b,c,d);u(e)&&Sa(d[d.length-1],e)}}function Ko(a,b){return function(c,d){var e=a.call(b,c,d);u(e)&&d[d.length-1].push(e)}}function Lo(a){return function(b,c){var d=a.call(void 0,b,c);u(d)&&(c[c.length-1]=d)}}
|
||||
function Mo(a){return function(b,c){var d=a.call(void 0,b,c);u(d)&&bc(c[c.length-1],u(void 0)?void 0:b.localName).push(d)}}function V(a,b){return function(c,d){var e=a.call(void 0,c,d);u(e)&&(d[d.length-1][u(b)?b:c.localName]=e)}}function W(a){return function(b,c,d){a.call(void 0,b,c,d);d[d.length-1].node.appendChild(b)}}function No(a){var b,c;return function(d,e,f){if(!u(b)){b={};var g={};g[d.localName]=a;b[d.namespaceURI]=g;c=Oo(d.localName)}Po(b,c,e,f)}}
|
||||
function Oo(a,b){return function(c,d,e){c=d[d.length-1].node;d=a;u(d)||(d=e);e=b;u(b)||(e=c.namespaceURI);return no(e,d)}}var Qo=Oo();function Ro(a,b){for(var c=b.length,d=Array(c),e=0;e<c;++e)d[e]=a[b[e]];return d}function X(a,b,c){c=u(c)?c:{};var d,e;d=0;for(e=a.length;d<e;++d)c[a[d]]=b;return c}function So(a,b,c,d){for(b=b.firstElementChild;null!==b;b=b.nextElementSibling){var e=a[b.namespaceURI];u(e)&&(e=e[b.localName],u(e)&&e.call(d,b,c))}}
|
||||
function Y(a,b,c,d,e){d.push(a);So(b,c,d,e);return d.pop()}function Po(a,b,c,d,e,f){for(var g=(u(e)?e:c).length,h,m,n=0;n<g;++n)h=c[n],u(h)&&(m=b.call(f,h,d,u(e)?e[n]:void 0),u(m)&&a[m.namespaceURI][m.localName].call(f,m,h,d))}function To(a,b,c,d,e,f){e.push(a);Po(b,c,d,e,f,void 0);e.pop()};function Uo(){}E(Uo,go);l=Uo.prototype;l.B=ba("xml");l.ub=function(a){return vo(a)?Vo(this,a):yo(a)?this.ke(a):ka(a)?(a=Io(a),Vo(this,a)):null};function Vo(a,b){var c=Wo(a,b);return 0<c.length?c[0]:null}l.ua=function(a){return vo(a)?Wo(this,a):yo(a)?this.vb(a):ka(a)?(a=Io(a),Wo(this,a)):[]};function Wo(a,b){var c=[],d;for(d=b.firstChild;null!==d;d=d.nextSibling)1==d.nodeType&&Sa(c,a.vb(d));return c}l.cd=function(a){return vo(a)?this.e(a):yo(a)?this.j(a):ka(a)?(a=Io(a),this.e(a)):null};
|
||||
l.ja=function(a){return vo(a)?this.sc(a):yo(a)?this.ed(a):ka(a)?(a=Io(a),this.sc(a)):null};l.qd=function(a){return this.k(a)};l.wc=function(a){return this.l(a)};l.rd=function(a){return this.n(a)};function Xo(a){a=oo(a);return Yo(a)}function Yo(a){if(a=/^\s*(true|1)|(false|0)\s*$/.exec(a))return u(a[1])||!1}function Zo(a){a=oo(a);if(a=/^\s*(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?))\s*$/.exec(a)){var b=Date.UTC(parseInt(a[1],10),parseInt(a[2],10)-1,parseInt(a[3],10),parseInt(a[4],10),parseInt(a[5],10),parseInt(a[6],10))/1E3;if("Z"!=a[7]){var c="-"==a[8]?-1:1,b=b+60*c*parseInt(a[9],10);u(a[10])&&(b+=3600*c*parseInt(a[10],10))}return b}}
|
||||
function $o(a){a=oo(a);return ap(a)}function ap(a){if(a=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(a))return parseFloat(a[1])}function bp(a){a=oo(a);return cp(a)}function cp(a){if(a=/^\s*(\d+)\s*$/.exec(a))return parseInt(a[1],10)}function $(a){a=oo(a);return za(a)}function dp(a,b){a.appendChild(ko.createTextNode(b.toPrecision()))}function ep(a,b){a.appendChild(ko.createTextNode(b.toString()))}function fp(a,b){a.appendChild(ko.createTextNode(b))};function gp(){}E(gp,Uo);var hp=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function ip(a,b,c){a.push(parseFloat(b.getAttribute("lon")),parseFloat(b.getAttribute("lat")));"ele"in c?(a.push(G(c,"ele")),ac(c,"ele")):a.push(0);"time"in c?(a.push(G(c,"time")),ac(c,"time")):a.push(0);return a}function jp(a,b){var c=b[b.length-1],d=a.getAttribute("href");null!==d&&(c.link=d);So(kp,a,b)}
|
||||
function lp(a,b){var c=Y({flatCoordinates:[]},mp,a,b);if(u(c)){var d=G(c,"flatCoordinates");ac(c,"flatCoordinates");var e=new Ql(null);Rl(e,"XYZM",d);d=new pe(e);d.U(c);return d}}function np(a,b){var c=Y({flatCoordinates:[],ends:[]},op,a,b);if(u(c)){var d=G(c,"flatCoordinates");ac(c,"flatCoordinates");var e=G(c,"ends");ac(c,"ends");var f=new Sl(null);Tl(f,"XYZM",d,e);d=new pe(f);d.U(c);return d}}
|
||||
function pp(a,b){var c=Y({},qp,a,b);if(u(c)){var d=ip([],a,c),d=new Af(d,"XYZM"),d=new pe(d);d.U(c);return d}}
|
||||
var rp={rte:lp,trk:np,wpt:pp},sp=X(hp,{rte:Ko(lp),trk:Ko(np),wpt:Ko(pp)},void 0),kp=X(hp,{text:V($,"linkText"),type:V($,"linkType")},void 0),mp=X(hp,{name:V($),cmt:V($),desc:V($),src:V($),link:jp,number:V(bp),type:V($),rtept:function(a,b){var c=Y({},tp,a,b);u(c)&&ip(G(b[b.length-1],"flatCoordinates"),a,c)}},void 0),tp=X(hp,{ele:V($o),time:V(Zo)},void 0),op=X(hp,{name:V($),cmt:V($),desc:V($),src:V($),link:jp,number:V(bp),type:V($),trkseg:function(a,b){var c=b[b.length-1];So(up,a,b);G(c,"ends").push(G(c,
|
||||
"flatCoordinates").length)}},void 0),up=X(hp,{trkpt:function(a,b){var c=Y({},vp,a,b);u(c)&&ip(G(b[b.length-1],"flatCoordinates"),a,c)}},void 0),vp=X(hp,{ele:V($o),time:V(Zo)},void 0),qp=X(hp,{ele:V($o),time:V(Zo),magvar:V($o),geoidheight:V($o),name:V($),cmt:V($),desc:V($),src:V($),link:jp,sym:V($),type:V($),fix:V($),sat:V(bp),hdop:V($o),vdop:V($o),pdop:V($o),ageofdgpsdata:V($o),dgpsid:V(bp)},void 0);
|
||||
gp.prototype.ke=function(a){if(-1==Ja(hp,a.namespaceURI))return null;var b=rp[a.localName];if(!u(b))return null;a=b(a,[]);return u(a)?a:null};gp.prototype.vb=function(a){return-1==Ja(hp,a.namespaceURI)?[]:"gpx"==a.localName&&(a=Y([],sp,a,[]),u(a))?a:[]};gp.prototype.sc=function(){return lg("EPSG:4326")};gp.prototype.ed=function(){return lg("EPSG:4326")};function wp(a,b,c){a.setAttribute("href",b);b=G(c[c.length-1],"properties");To({node:a},xp,Qo,[G(b,"linkText"),G(b,"linkType")],c,yp)}
|
||||
function zp(a,b,c){var d=c[c.length-1],e=d.node.namespaceURI,f=G(d,"properties");Ho(a,null,"lat",b[1]);Ho(a,null,"lon",b[0]);switch(G(d,"geometryLayout")){case "XYZM":0!==b[3]&&(f.time=b[3]);case "XYZ":0!==b[2]&&(f.ele=b[2]);break;case "XYM":0!==b[2]&&(f.time=b[2])}b=Ap[e];d=Ro(f,b);To({node:a,properties:f},Bp,Qo,d,c,b)}
|
||||
var yp=["text","type"],xp=X(hp,{text:W(fp),type:W(fp)}),Cp=X(hp,"name cmt desc src link number type rtept".split(" ")),Dp=X(hp,{name:W(fp),cmt:W(fp),desc:W(fp),src:W(fp),link:W(wp),number:W(ep),type:W(fp),rtept:No(W(zp))}),Ep=X(hp,"name cmt desc src link number type trkseg".split(" ")),Hp=X(hp,{name:W(fp),cmt:W(fp),desc:W(fp),src:W(fp),link:W(wp),number:W(ep),type:W(fp),trkseg:No(W(function(a,b,c){To({node:a,geometryLayout:b.b,properties:{}},Fp,Gp,b.w(),c)}))}),Gp=Oo("trkpt"),Fp=X(hp,{trkpt:W(zp)}),
|
||||
Ap=X(hp,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),Bp=X(hp,{ele:W(dp),time:W(function(a,b){var c=new Date(1E3*b),c=c.getUTCFullYear()+"-"+Ga(c.getUTCMonth()+1)+"-"+Ga(c.getUTCDate())+"T"+Ga(c.getUTCHours())+":"+Ga(c.getUTCMinutes())+":"+Ga(c.getUTCSeconds())+"Z";a.appendChild(ko.createTextNode(c))}),magvar:W(dp),geoidheight:W(dp),name:W(fp),cmt:W(fp),desc:W(fp),src:W(fp),link:W(wp),sym:W(fp),type:W(fp),fix:W(fp),sat:W(ep),
|
||||
hdop:W(dp),vdop:W(dp),pdop:W(dp),ageofdgpsdata:W(dp),dgpsid:W(ep)});
|
||||
X(hp,{rte:W(function(a,b,c){var d=b.kb();a={node:a,properties:d};b=b.L();u(b)&&(a.geometryLayout=b.b,b=b.w(),d.rtept=b);b=Cp[c[c.length-1].node.namespaceURI];d=Ro(d,b);To(a,Dp,Qo,d,c,b)}),trk:W(function(a,b,c){var d=b.kb();a={node:a,properties:d};b=b.L();u(b)&&(b=b.Pc(),d.trkseg=b);b=Ep[c[c.length-1].node.namespaceURI];d=Ro(d,b);To(a,Hp,Qo,d,c,b)}),wpt:W(function(a,b,c){var d=c[c.length-1],e=b.kb();d.properties=e;b=b.L();u(b)&&(d.geometryLayout=b.b,zp(a,b.w(),c))})});function Ip(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};function Jp(){}E(Jp,go);function Kp(a){return oa(a)?a:ka(a)?(a=I.Be?JSON.parse(a):Ip(a),u(a)?a:null):null}l=Jp.prototype;l.B=ba("json");l.ub=function(a){return Lp(Kp(a))};l.ua=function(a){return this.a(Kp(a))};l.cd=function(a){a=Kp(a);return Mp(a)};l.ja=function(a){return this.d(Kp(a))};l.qd=function(a){return Np(a)};l.wc=function(a){var b=[],c,d;c=0;for(d=a.length;c<d;++c)b.push(Np(a[c]));return{type:"FeatureCollection",features:b}};l.rd=function(a){return this.b(a)};function Op(a){a=u(a)?a:{};this.c=lg(a.defaultProjection?a.defaultProjection:"EPSG:4326")}E(Op,Jp);function Mp(a){return null===a?null:(0,Pp[a.type])(a)}function Qp(a){return(0,Rp[a.B()])(a)}
|
||||
var Pp={Point:function(a){return new Af(a.coordinates)},LineString:function(a){return new Ql(a.coordinates)},Polygon:function(a){return new If(a.coordinates)},MultiPoint:function(a){return new Vl(a.coordinates)},MultiLineString:function(a){return new Sl(a.coordinates)},MultiPolygon:function(a){return new Wl(a.coordinates)},GeometryCollection:function(a){a=La(a.geometries,Mp);return new Jl(a)}},Rp={Point:function(a){return{type:"Point",coordinates:a.w()}},LineString:function(a){return{type:"LineString",
|
||||
coordinates:a.w()}},Polygon:function(a){return{type:"Polygon",coordinates:a.w()}},MultiPoint:function(a){return{type:"MultiPoint",coordinates:a.w()}},MultiLineString:function(a){return{type:"MultiLineString",coordinates:a.w()}},MultiPolygon:function(a){return{type:"MultiPolygon",coordinates:a.w()}},GeometryCollection:function(a){return{type:"GeometryCollection",geometries:La(a.a,Qp)}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};
|
||||
function Lp(a){var b=Mp(a.geometry),b=new pe(b);u(a.id)&&b.b(a.id);u(a.properties)&&b.U(a.properties);return b}Op.prototype.a=function(a){if("Feature"==a.type)return[Lp(a)];if("FeatureCollection"==a.type){var b=[];a=a.features;var c,d;c=0;for(d=a.length;c<d;++c)b.push(Lp(a[c]));return b}return[]};Op.prototype.ja=function(a){a=a.crs;return null!=a?"name"==a.type?lg(a.properties.name):"EPSG"==a.type?lg("EPSG:"+a.properties.code):null:this.c};
|
||||
function Np(a){var b={type:"Feature"},c=a.Q;null!=c&&(b.id=c);c=a.L();null!=c&&(c=Qp(c),b.geometry=c);a=a.kb();ac(a,"geometry");Zb(a)||(b.properties=a);return b}Op.prototype.b=Qp;function Sp(a){a=Tp(a);return La(a,function(a){return a.b.substring(a.c,a.a)})}function Up(a,b,c,d){this.b=a;this.c=b;this.a=c;this.d=d}function Tp(a){for(var b=RegExp("\r\n|\r|\n","g"),c=0,d,e=[];d=b.exec(a);)c=new Up(a,c,d.index,d.index+d[0].length),e.push(c),c=b.lastIndex;c<a.length&&(c=new Up(a,c,a.length,a.length),e.push(c));return e};function Vp(){}E(Vp,go);l=Vp.prototype;l.B=ba("text");l.ub=function(a){return Wp(this,ka(a)?a:"")};l.ua=function(a){a=Wp(this,ka(a)?a:"");return null===a?[]:[a]};l.cd=function(a){return this.c(ka(a)?a:"")};l.ja=function(){return lg("EPSG:4326")};l.qd=function(a){return this.b(a)};l.wc=function(a){return this.d(a)};l.rd=function(a){return this.e(a)};function Xp(a){a=u(a)?a:{};this.a=u(a.altitudeMode)?a.altitudeMode:"none"}E(Xp,Vp);var Yp=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,Zp=/^H.([A-Z]{3}).*?:(.*)/,$p=/^HFDTE(\d{2})(\d{2})(\d{2})/;
|
||||
function Wp(a,b){var c=a.a,d=Sp(b),e={},f=[],g=2E3,h=0,m=1,n,p;n=0;for(p=d.length;n<p;++n){var q=d[n],r;if("B"==q.charAt(0)){if(r=Yp.exec(q)){var q=parseInt(r[1],10),s=parseInt(r[2],10),z=parseInt(r[3],10),x=parseInt(r[4],10)+parseInt(r[5],10)/6E4;"S"==r[6]&&(x=-x);var w=parseInt(r[7],10)+parseInt(r[8],10)/6E4;"W"==r[9]&&(w=-w);f.push(w,x);"none"!=c&&f.push("gps"==c?parseInt(r[11],10):"barometric"==c?parseInt(r[12],10):0);f.push(Date.UTC(g,h,m,q,s,z)/1E3)}}else if("H"==q.charAt(0))if(r=$p.exec(q))m=
|
||||
parseInt(r[1],10),h=parseInt(r[2],10)-1,g=2E3+parseInt(r[3],10);else if(r=Zp.exec(q))e[r[1]]=za(r[2]),$p.exec(q)}d=new Ql(null);Rl(d,"none"==c?"XYM":"XYZM",f);c=new pe(d);c.U(e);return c};function aq(a){function b(a){return ha(a)?a:ka(a)?(!(a in d)&&"#"+a in d&&(a="#"+a),b(d[a])):c}a=u(a)?a:{};var c=u(a.defaultStyle)?a.defaultStyle:bq,d={};this.a=d;this.c=function(){var a=this.t("Style");if(u(a))return a;a=this.t("styleUrl");return u(a)?b(a):c}}E(aq,Uo);
|
||||
var cq=["http://www.google.com/kml/ext/2.2"],dq=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],eq=[255,255,255,1],fq=new ke({color:eq}),gq=[2,20],hq=[32,32],iq=new Dk({anchor:gq,anchorXUnits:"pixels",anchorYUnits:"pixels",crossOrigin:"anonymous",rotation:0,scale:1,size:hq,src:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),jq=new me({color:eq,width:1}),bq=[new oe({fill:fq,image:iq,text:null,
|
||||
stroke:jq,zIndex:0})],kq={fraction:"fraction",pixels:"pixels"};function lq(a){a=oo(a);if(a=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(a))return a=a[1],[parseInt(a.substr(6,2),16),parseInt(a.substr(4,2),16),parseInt(a.substr(2,2),16),parseInt(a.substr(0,2),16)/255]}
|
||||
function mq(a){a=oo(a);for(var b=[],c=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i,d;d=c.exec(a);)b.push(parseFloat(d[1]),parseFloat(d[2]),d[3]?parseFloat(d[3]):0),a=a.substr(d[0].length);return""!==a?void 0:b}function nq(a){var b=oo(a);return null!=a.baseURI?eh(a.baseURI,za(b)).toString():za(b)}function oq(a,b){return Y(null,pq,a,b)}
|
||||
function qq(a,b){var c=Y({h:[],ye:[]},rq,a,b);if(u(c)){var d=c.h,c=c.ye,e,f;e=0;for(f=Math.min(d.length,c.length);e<f;++e)d[4*e+3]=c[e];c=new Ql(null);Rl(c,"XYZM",d);return c}}function sq(a,b){var c=Y(null,tq,a,b);if(u(c)){var d=new Ql(null);Rl(d,"XYZ",c);return d}}function uq(a,b){var c=Y(null,tq,a,b);if(u(c)){var d=new If(null);Jf(d,"XYZ",c,[c.length]);return d}}
|
||||
function vq(a,b){var c=Y([],wq,a,b);if(!u(c))return null;if(0===c.length)return new Jl(c);var d=!0,e=c[0].B(),f,g,h;g=1;for(h=c.length;g<h;++g)if(f=c[g],f.B()!=e){d=!1;break}if(d){if("Point"==e){f=c[0];d=f.b;e=f.h;g=1;for(h=c.length;g<h;++g)f=c[g],af(e,f.h);c=new Vl(null);ff(c,d,e);c.s();return c}return"LineString"==e?(f=new Sl(null),Ul(f,c),f):"Polygon"==e?(f=new Wl(null),Yl(f,c),f):"GeometryCollection"==e?new Jl(c):null}return new Jl(c)}
|
||||
function xq(a,b){var c=Y(null,tq,a,b);if(null!=c){var d=new Af(null);Bf(d,"XYZ",c);return d}}function yq(a,b){var c=Y([null],zq,a,b);if(null!=c&&null!==c[0]){var d=new If(null),e=c[0],f=[e.length],g,h;g=1;for(h=c.length;g<h;++g)af(e,c[g]),f.push(e.length);Jf(d,"XYZ",e,f);return d}}
|
||||
function Aq(a,b){var c=Y({},Bq,a,b);if(!u(c))return null;var d=G(c,"fillStyle",fq),e=G(c,"fill");u(e)&&!e&&(d=null);var e=G(c,"imageStyle",iq),f=G(c,"strokeStyle",jq),c=G(c,"outline");u(c)&&!c&&(f=null);return[new oe({fill:d,image:e,stroke:f,text:null,zIndex:void 0})]}
|
||||
var Cq=X(dq,{value:Lo($)},void 0),Eq=X(dq,{Data:function(a,b){var c=a.getAttribute("name");if(null!==c){var d=Y(void 0,Cq,a,b);u(d)&&(b[b.length-1][c]=d)}},SchemaData:function(a,b){So(Dq,a,b)}},void 0),pq=X(dq,{coordinates:Lo(mq)},void 0),zq=X(dq,{innerBoundaryIs:function(a,b){var c=Y(void 0,Fq,a,b);u(c)&&b[b.length-1].push(c)},outerBoundaryIs:function(a,b){var c=Y(void 0,Gq,a,b);u(c)&&(b[b.length-1][0]=c)}},void 0),Hq=X(cq,{coord:function(a,b){var c=b[b.length-1].h,d=oo(a);(d=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(d))?
|
||||
c.push(parseFloat(d[1]),parseFloat(d[2]),parseFloat(d[3]),0):c.push(0,0,0,0)}},void 0),rq=X(dq,{when:function(a,b){var c=b[b.length-1].ye,d=oo(a);if(d=/^\s*(\d{4})($|-(\d{2})($|-(\d{2})($|T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?)))))\s*$/.exec(d)){var e=Date.UTC(parseInt(d[1],10),u(d[3])?parseInt(d[3],10)-1:0,u(d[5])?parseInt(d[5],10):1,u(d[7])?parseInt(d[7],10):0,u(d[8])?parseInt(d[8],10):0,u(d[9])?parseInt(d[9],10):0);if(u(d[10])&&"Z"!=d[10]){var f="-"==d[11]?-1:1,e=e+60*f*parseInt(d[12],
|
||||
10);u(d[13])&&(e+=3600*f*parseInt(d[13],10))}c.push(e)}else c.push(0)}},Hq),tq=X(dq,{coordinates:Lo(mq)},void 0),Iq=X(dq,{href:V(nq)},void 0),Jq=X(dq,{Icon:V(function(a,b){var c=Y({},Iq,a,b);return u(c)?c:null}),heading:V($o),hotSpot:V(function(a){var b=a.getAttribute("xunits"),c=a.getAttribute("yunits");return{x:parseFloat(a.getAttribute("x")),Ai:kq[b],y:parseFloat(a.getAttribute("y")),Bi:kq[c]}}),scale:V(function(a){a=$o(a);if(u(a))return Math.sqrt(a)})},void 0),Fq=X(dq,{LinearRing:Lo(oq)},void 0),
|
||||
Kq=X(dq,{color:V(lq),width:V($o)},void 0),wq=X(dq,{LineString:Ko(sq),LinearRing:Ko(uq),MultiGeometry:Ko(vq),Point:Ko(xq),Polygon:Ko(yq)},void 0),Lq=X(cq,{Track:Ko(qq)},void 0),Gq=X(dq,{LinearRing:Lo(oq)},void 0),Mq=X(dq,{Style:V(Aq),key:V($),styleUrl:V(function(a){var b=za(oo(a));return null!=a.baseURI?eh(a.baseURI,b).toString():b})},void 0),Oq={ExtendedData:function(a,b){So(Eq,a,b)},MultiGeometry:V(vq,"geometry"),LineString:V(sq,"geometry"),LinearRing:V(uq,"geometry"),Point:V(xq,"geometry"),Polygon:V(yq,
|
||||
"geometry"),Style:V(Aq),StyleMap:function(a,b){var c=Y(void 0,Nq,a,b);if(u(c)){var d=b[b.length-1];ha(c)?d.Style=c:ka(c)&&(d.styleUrl=c)}},address:V($),description:V($),name:V($),open:V(Xo),phoneNumber:V($),styleUrl:V(nq),visibility:V(Xo)},Pq=X(cq,{MultiTrack:V(function(a,b){var c=Y([],Lq,a,b);if(u(c)){var d=new Sl(null);Ul(d,c);return d}},"geometry"),Track:V(qq,"geometry")},void 0),Qq=X(dq,Oq,Pq),Rq=X(dq,{color:V(lq),fill:V(Xo),outline:V(Xo)},void 0),Dq=X(dq,{SimpleData:function(a,b){var c=a.getAttribute("name");
|
||||
if(null!==c){var d=$(a);b[b.length-1][c]=d}}},void 0),Bq=X(dq,{IconStyle:function(a,b){var c=Y({},Jq,a,b);if(u(c)){var d=b[b.length-1],e;e=G(G(c,"Icon",{}),"href");e=u(e)?e:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png";var f,g,h,m=G(c,"hotSpot");u(m)?(f=[m.x,m.y],g=m.Ai,h=m.Bi):"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"===e?(f=gq,h=g="pixels"):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(e)&&(f=[0.5,0],h=g="fraction");var n,m=G(c,"heading");u(m)&&(n=Qb(m));
|
||||
var c=G(c,"scale"),p;"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"==e&&(p=hq);f=new Dk({anchor:f,anchorOrigin:"bottom-left",anchorXUnits:g,anchorYUnits:h,crossOrigin:"anonymous",rotation:n,scale:c,size:p,src:e});d.imageStyle=f}},LineStyle:function(a,b){var c=Y({},Kq,a,b);u(c)&&(b[b.length-1].strokeStyle=new me({color:G(c,"color",eq),width:G(c,"width",1)}))},PolyStyle:function(a,b){var c=Y({},Rq,a,b);if(u(c)){var d=b[b.length-1];d.fillStyle=new ke({color:G(c,"color",eq)});var e=G(c,
|
||||
"fill");u(e)&&(d.fill=e);c=G(c,"outline");u(c)&&(d.outline=c)}}},void 0),Nq=X(dq,{Pair:function(a,b){var c=Y({},Mq,a,b);if(u(c)){var d=G(c,"key");u(d)&&"normal"==d&&(d=G(c,"styleUrl"),u(d)&&(b[b.length-1]=d),c=G(c,"Style"),u(c)&&(b[b.length-1]=c))}}},void 0);l=aq.prototype;l.je=function(a,b){so(a);var c;c={Folder:Jo(this.je,this),Placemark:Ko(this.dd,this),Style:y(this.Vh,this),StyleMap:y(this.Uh,this)};c=X(dq,c,void 0);c=Y([],c,a,b,this);if(u(c))return c};
|
||||
l.dd=function(a,b){var c=Y({geometry:null},Qq,a,b);if(u(c)){var d=new pe,e=a.getAttribute("id");null===e||d.b(e);d.U(c);d.j(this.c);return d}};l.Vh=function(a,b){var c=a.getAttribute("id");if(null!==c){var d=Aq(a,b);u(d)&&(c=null!=a.baseURI?eh(a.baseURI,"#"+c).toString():"#"+c,this.a[c]=d)}};l.Uh=function(a,b){var c=a.getAttribute("id");if(null!==c){var d=Y(void 0,Nq,a,b);u(d)&&(c=null!=a.baseURI?eh(a.baseURI,"#"+c).toString():"#"+c,this.a[c]=d)}};
|
||||
l.ke=function(a){if(-1==Ja(dq,a.namespaceURI))return null;a=this.dd(a,[]);return u(a)?a:null};l.vb=function(a){if(-1==Ja(dq,a.namespaceURI))return[];var b;b=so(a);if("Document"==b||"Folder"==b)return b=this.je(a,[]),u(b)?b:[];if("Placemark"==b)return b=this.dd(a,[]),u(b)?[b]:[];if("kml"==b){b=[];for(a=a.firstElementChild;null!==a;a=a.nextElementSibling){var c=this.vb(a);u(c)&&Sa(b,c)}return b}return[]};
|
||||
l.Th=function(a){if(vo(a))return Sq(this,a);if(yo(a))return Tq(this,a);if(ka(a))return a=Io(a),Sq(this,a)};function Sq(a,b){var c;for(c=b.firstChild;null!==c;c=c.nextSibling)if(1==c.nodeType){var d=Tq(a,c);if(u(d))return d}}
|
||||
function Tq(a,b){var c;for(c=b.firstElementChild;null!==c;c=c.nextElementSibling)if(-1!=Ja(dq,c.namespaceURI)&&"name"==c.localName)return $(c);for(c=b.firstElementChild;null!==c;c=c.nextElementSibling){var d=so(c);if(-1!=Ja(dq,c.namespaceURI)&&("Document"==d||"Folder"==d||"Placemark"==d||"kml"==d)&&(d=Tq(a,c),u(d)))return d}}l.sc=function(){return lg("EPSG:4326")};l.ed=function(){return lg("EPSG:4326")};function Uq(a){this.c=lg((u(a)?a:{}).defaultProjection||"EPSG:4326")}E(Uq,Jp);function Vq(a,b){var c=[],d,e,f;e=0;for(f=a.length;e<f;++e)d=a[e],0<e&&c.pop(),d=0<=d?b[d]:b[~d].slice().reverse(),c.push.apply(c,d);e=0;for(f=c.length;e<f;++e)c[e]=c[e].slice();return c}function Wq(a,b,c,d){a=a.geometries;var e=[],f,g;f=0;for(g=a.length;f<g;++f)e[f]=Xq(a[f],b,c,d);return e}
|
||||
function Xq(a,b,c,d){var e=a.type,f=Yq[e];b="Point"===e||"MultiPoint"===e?f(a,c,d):f(a,b);c=new pe;c.eb(b);u(a.id)&&c.b(a.id);u(a.properties)&&c.U(a.properties);return c}
|
||||
Uq.prototype.a=function(a){if("Topology"==a.type){var b,c=null,d=null;u(a.transform)&&(b=a.transform,c=b.scale,d=b.translate);var e=a.arcs;if(u(b)){b=c;var f=d,g,h;g=0;for(h=e.length;g<h;++g)for(var m=e[g],n=b,p=f,q=0,r=0,s=void 0,z=void 0,x=void 0,z=0,x=m.length;z<x;++z)s=m[z],q+=s[0],r+=s[1],s[0]=q,s[1]=r,Zq(s,n,p)}b=[];a=Xb(a.objects);f=0;for(g=a.length;f<g;++f)"GeometryCollection"===a[f].type?(h=a[f],b.push.apply(b,Wq(h,e,c,d))):(h=a[f],b.push(Xq(h,e,c,d)));return b}return[]};
|
||||
function Zq(a,b,c){a[0]=a[0]*b[0]+c[0];a[1]=a[1]*b[1]+c[1]}Uq.prototype.ja=k("c");
|
||||
var Yq={Point:function(a,b,c){a=a.coordinates;null===b||null===c||Zq(a,b,c);return new Af(a)},LineString:function(a,b){var c=Vq(a.arcs,b);return new Ql(c)},Polygon:function(a,b){var c=[],d,e;d=0;for(e=a.arcs.length;d<e;++d)c[d]=Vq(a.arcs[d],b);return new If(c)},MultiPoint:function(a,b,c){a=a.coordinates;var d,e;if(null!==b&&null!==c)for(d=0,e=a.length;d<e;++d)Zq(a[d],b,c);return new Vl(a)},MultiLineString:function(a,b){var c=[],d,e;d=0;for(e=a.arcs.length;d<e;++d)c[d]=Vq(a.arcs[d],b);return new Sl(c)},
|
||||
MultiPolygon:function(a,b){var c=[],d,e,f,g,h,m;h=0;for(m=a.arcs.length;h<m;++h){d=a.arcs[h];e=[];f=0;for(g=d.length;f<g;++f)e[f]=Vq(d[f],b);c[h]=e}return new Wl(c)}};var $q={"http://www.opengis.net/gml":{featureMembers:Lo(function(a,b){var c=so(a),d=b[0],e=G(d,"featureType"),f;"FeatureCollection"==c?f=Y(null,$q,a,b):"featureMembers"==c&&(c={},f={},c[e]=Ko(ar),f[G(d,"featureNS")]=c,f=Y([],f,a,b));u(f)||(f=[]);return f})}};function br(a,b){var c=a.firstElementChild.getAttribute("srsName");b[0].srsName=c;c=Y(null,cr,a,b);if(null!=c)return c}
|
||||
function ar(a,b){var c,d=a.getAttribute("fid")||Co(a,"http://www.opengis.net/gml","id"),e={},f;for(c=a.firstElementChild;null!==c;c=c.nextElementSibling)if(0===c.childNodes.length||1===c.childNodes.length&&3===c.firstChild.nodeType){var g=oo(c);/^[\s\xa0]*$/.test(g)&&(g=void 0);e[so(c)]=g}else f=so(c),e[f]=br(c,b);c=new pe(e);u(f)&&c.k(f);d&&c.b(d);return c}function dr(a,b){So(er,a,b)}function fr(a,b){So(gr,a,b)}function hr(a,b){So(ir,a,b)}function jr(a,b){So(kr,a,b)}function lr(a,b){So(mr,a,b)}
|
||||
function nr(a,b){var c=or(a,b);if(null!=c){var d=new Ql(null);Rl(d,"XYZ",c);return d}}function pr(a,b){var c=Y([null],qr,a,b);if(u(c)&&null!==c[0]){var d=new If(null),e=c[0],f=[e.length],g,h;g=1;for(h=c.length;g<h;++g)af(e,c[g]),f.push(e.length);Jf(d,"XYZ",e,f);return d}}function rr(a,b){var c=Y([null],sr,a,b);if(u(c)&&null!==c[0]){var d=new If(null),e=c[0],f=[e.length],g,h;g=1;for(h=c.length;g<h;++g)af(e,c[g]),f.push(e.length);Jf(d,"XYZ",e,f);return d}}
|
||||
function tr(a,b){var c=Y([null],ur,a,b);if(u(c)){var d=new Ql(null);Rl(d,"XYZ",c);return d}}function or(a,b){return Y(null,vr,a,b)}
|
||||
function wr(a,b){var c=oo(a).replace(/^\s*|\s*$/g,""),d=G(b[0],"srsName"),e=a.parentNode.getAttribute("srsDimension"),f="enu";null===d||(f=Sf(lg(d)));c=c.split(/\s+/);d=2;ga(a.getAttribute("srsDimension"))?ga(a.getAttribute("dimension"))?null===e||(d=cp(e)):d=cp(a.getAttribute("dimension")):d=cp(a.getAttribute("srsDimension"));for(var g,h,m=[],n=0,p=c.length;n<p;n+=d)e=parseFloat(c[n]),g=parseFloat(c[n+1]),h=3===d?parseFloat(c[n+2]):0,"en"===f.substr(0,2)?m.push(e,g,h):m.push(g,e,h);return m}
|
||||
var cr={"http://www.opengis.net/gml":{Point:Lo(function(a,b){var c=or(a,b);if(null!=c){var d=new Af(null);Bf(d,"XYZ",c);return d}}),MultiPoint:Lo(function(a,b){var c=Y([],xr,a,b);if(u(c))return new Vl(c)}),LineString:Lo(nr),MultiLineString:Lo(function(a,b){var c=Y([],yr,a,b);if(u(c)){var d=new Sl(null);Ul(d,c);return d}}),LinearRing:Lo(function(a,b){var c=or(a,b);if(u(c)){var d=new yf(null);zf(d,"XYZ",c);return d}}),Polygon:Lo(pr),MultiPolygon:Lo(function(a,b){var c=Y([],zr,a,b);if(u(c)){var d=new Wl(null);
|
||||
Yl(d,c);return d}}),Surface:Lo(rr),MultiSurface:Lo(function(a,b){var c=Y([],Ar,a,b);if(u(c)){var d=new Wl(null);Yl(d,c);return d}}),Curve:Lo(tr),MultiCurve:Lo(function(a,b){var c=Y([],Br,a,b);if(u(c)){var d=new Sl(null);Ul(d,c);return d}}),Envelope:Lo(function(a,b){var c=Y([null],Cr,a,b);return Ge(c[1][0],c[1][1],c[2][0],c[2][1])})}},vr={"http://www.opengis.net/gml":{pos:Lo(function(a,b){for(var c=oo(a),d=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*/,e=[],f;f=d.exec(c);)e.push(parseFloat(f[1])),c=c.substr(f[0].length);
|
||||
if(""===c){c=G(b[0],"srsName");d="enu";null===c||(d=Sf(lg(c)));if("neu"===d)for(c=0,d=e.length;c<d;c+=3)f=e[c],e[c]=e[c+1],e[c+1]=f;c=e.length;2==c&&e.push(0);return 0===c?void 0:e}}),posList:Lo(wr)}},qr={"http://www.opengis.net/gml":{interior:function(a,b){var c=Y(void 0,Dr,a,b);u(c)&&b[b.length-1].push(c)},exterior:function(a,b){var c=Y(void 0,Dr,a,b);u(c)&&(b[b.length-1][0]=c)}}},xr={"http://www.opengis.net/gml":{pointMember:Ko(dr),pointMembers:Ko(dr)}},yr={"http://www.opengis.net/gml":{lineStringMember:Ko(fr),
|
||||
lineStringMembers:Ko(fr)}},Br={"http://www.opengis.net/gml":{curveMember:Ko(hr),curveMembers:Ko(hr)}},Ar={"http://www.opengis.net/gml":{surfaceMember:Ko(jr),surfaceMembers:Ko(jr)}},zr={"http://www.opengis.net/gml":{polygonMember:Ko(lr),polygonMembers:Ko(lr)}},er={"http://www.opengis.net/gml":{Point:Ko(or)}},gr={"http://www.opengis.net/gml":{LineString:Ko(nr)}},ir={"http://www.opengis.net/gml":{LineString:Ko(nr),Curve:Ko(tr)}},kr={"http://www.opengis.net/gml":{Polygon:Ko(pr),Surface:Ko(rr)}},mr={"http://www.opengis.net/gml":{Polygon:Ko(pr)}},
|
||||
sr={"http://www.opengis.net/gml":{patches:Lo(function(a,b){return Y([null],Er,a,b)})}},ur={"http://www.opengis.net/gml":{segments:Lo(function(a,b){return Y([null],Fr,a,b)})}},Cr={"http://www.opengis.net/gml":{lowerCorner:Ko(wr),upperCorner:Ko(wr)}},Er={"http://www.opengis.net/gml":{PolygonPatch:Lo(function(a,b){return Y([null],qr,a,b)})}},Fr={"http://www.opengis.net/gml":{LineStringSegment:Lo(function(a,b){return Y([null],vr,a,b)})}},Dr={"http://www.opengis.net/gml":{LinearRing:Lo(function(a,b){var c=
|
||||
Y(null,vr,a,b);if(null!=c)return c})}};function Gr(a,b,c){c=G(c[c.length-1],"srsName");b=b.w();for(var d=b.length,e=Array(d),f,g=0;g<d;++g){f=b[g];var h=e,m=g,n="enu";null!=c&&(n=Sf(lg(c)));h[m]="en"===n.substr(0,2)?f[0]+" "+f[1]:f[1]+" "+f[0]}fp(a,e.join(" "))}
|
||||
function Hr(a,b,c){var d=G(c[c.length-1],"srsName");null!=d&&a.setAttribute("srsName",d);d=no(a.namespaceURI,"pos");a.appendChild(d);c=G(c[c.length-1],"srsName");a="enu";null!=c&&(a=Sf(lg(c)));b=b.w();fp(d,"en"===a.substr(0,2)?b[0]+" "+b[1]:b[1]+" "+b[0])}var Ir={"http://www.opengis.net/gml":{lowerCorner:W(fp),upperCorner:W(fp)}};function Jr(a,b,c){var d=G(c[c.length-1],"srsName");null!=d&&a.setAttribute("srsName",d);d=no(a.namespaceURI,"posList");a.appendChild(d);Gr(d,b,c)}
|
||||
function Kr(a,b){var c=b[b.length-1],d=c.node,e=G(c,"exteriorWritten");u(e)||(c.exteriorWritten=!0);return no(d.namespaceURI,u(e)?"interior":"exterior")}
|
||||
function Lr(a,b,c){var d=G(c[c.length-1],"srsName");"PolygonPatch"!==a.nodeName&&null!=d&&a.setAttribute("srsName",d);"Polygon"===a.nodeName||"PolygonPatch"===a.nodeName?(b=b.Id(),To({node:a,srsName:d},Mr,Kr,b,c)):"Surface"===a.nodeName&&(d=no(a.namespaceURI,"patches"),a.appendChild(d),a=no(d.namespaceURI,"PolygonPatch"),d.appendChild(a),Lr(a,b,c))}
|
||||
function Nr(a,b,c){var d=G(c[c.length-1],"srsName");"LineStringSegment"!==a.nodeName&&null!=d&&a.setAttribute("srsName",d);"LineString"===a.nodeName||"LineStringSegment"===a.nodeName?(d=no(a.namespaceURI,"posList"),a.appendChild(d),Gr(d,b,c)):"Curve"===a.nodeName&&(d=no(a.namespaceURI,"segments"),a.appendChild(d),a=no(d.namespaceURI,"LineStringSegment"),d.appendChild(a),Nr(a,b,c))}
|
||||
function Or(a,b,c){var d=c[c.length-1],e=G(d,"srsName"),d=G(d,"surface");null!=e&&a.setAttribute("srsName",e);b=b.Kd();To({node:a,srsName:e,surface:d},Pr,Qr,b,c)}function Rr(a,b,c){var d=c[c.length-1],e=G(d,"srsName"),d=G(d,"curve");null!=e&&a.setAttribute("srsName",e);b=b.Pc();To({node:a,srsName:e,curve:d},Sr,Qr,b,c)}function Tr(a,b,c){var d=no(a.namespaceURI,"LinearRing");a.appendChild(d);Jr(d,b,c)}function Ur(a,b,c){var d=Vr(b,c);u(d)&&(a.appendChild(d),Lr(d,b,c))}
|
||||
function Wr(a,b,c){var d=Vr(b,c);u(d)&&(a.appendChild(d),Nr(d,b,c))}function Xr(a,b,c){var d=cc(c[c.length-1]);d.node=a;To(d,Yr,Vr,[b],c)}
|
||||
var Pr={"http://www.opengis.net/gml":{surfaceMember:W(Ur),polygonMember:W(Ur)}},Zr={"http://www.opengis.net/gml":{pointMember:W(function(a,b,c){var d=no(a.namespaceURI,"Point");a.appendChild(d);Hr(d,b,c)})}},Sr={"http://www.opengis.net/gml":{lineStringMember:W(Wr),curveMember:W(Wr)}},Mr={"http://www.opengis.net/gml":{exterior:W(Tr),interior:W(Tr)}},Yr={"http://www.opengis.net/gml":{Curve:W(Nr),MultiCurve:W(Rr),Point:W(Hr),MultiPoint:W(function(a,b,c){var d=G(c[c.length-1],"srsName");null!=d&&a.setAttribute("srsName",
|
||||
d);b=b.Jd();To({node:a,srsName:d},Zr,Oo("pointMember"),b,c)}),LineString:W(Nr),MultiLineString:W(Rr),LinearRing:W(Jr),Polygon:W(Lr),MultiPolygon:W(Or),Surface:W(Lr),MultiSurface:W(Or),Envelope:W(function(a,b,c){var d=G(c[c.length-1],"srsName");u(d)&&a.setAttribute("srsName",d);To({node:a},Ir,Qo,[b[0]+" "+b[1],b[2]+" "+b[3]],c,["lowerCorner","upperCorner"])})}},$r={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};
|
||||
function Qr(a,b){return no("http://www.opengis.net/gml",$r[b[b.length-1].node.nodeName])}function Vr(a,b){var c=b[b.length-1],d=G(c,"multiSurface"),e=G(c,"surface"),f=G(c,"curve"),c=G(c,"multiCurve"),g;ha(a)?g="Envelope":(g=a.B(),"MultiPolygon"===g&&!0===d?g="MultiSurface":"Polygon"===g&&!0===e?g="Surface":"LineString"===g&&!0===f?g="Curve":"MultiLineString"===g&&!0===c&&(g="MultiCurve"));return no("http://www.opengis.net/gml",g)};function as(a){a=u(a)?a:{};this.b=a.featureType;this.a=a.featureNS;this.c=u(a.schemaLocation)?a.schemaLocation:"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"}E(as,Uo);as.prototype.vb=function(a){a=Y(null,$q,a,[{featureType:this.b,featureNS:this.a}]);u(a)||(a=[]);return a};as.prototype.f=function(a){if(vo(a))return bs(a);if(yo(a))return Y({},cs,a,[]);if(ka(a))return a=Io(a),bs(a)};
|
||||
as.prototype.d=function(a){if(vo(a))return ds(a);if(yo(a))return es(a);if(ka(a))return a=Io(a),ds(a)};function ds(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return es(a)}var fs={"http://www.opengis.net/gml":{boundedBy:V(br,"bounds")}};function es(a){var b={},c=cp(a.getAttribute("numberOfFeatures"));b.numberOfFeatures=c;return Y(b,fs,a,[])}
|
||||
var gs={"http://www.opengis.net/wfs":{totalInserted:V(bp),totalUpdated:V(bp),totalDeleted:V(bp)}},hs={"http://www.opengis.net/ogc":{FeatureId:Ko(function(a){return a.getAttribute("fid")})}},is={"http://www.opengis.net/wfs":{Feature:function(a,b){So(hs,a,b)}}},cs={"http://www.opengis.net/wfs":{TransactionSummary:V(function(a,b){return Y({},gs,a,b)},"transactionSummary"),InsertResults:V(function(a,b){return Y([],is,a,b)},"insertIds")}};
|
||||
function bs(a){for(a=a.firstChild;null!==a;a=a.nextSibling)if(1==a.nodeType)return Y({},cs,a,[])}var js={"http://www.opengis.net/wfs":{PropertyName:W(fp)}};function ks(a,b){var c=no("http://www.opengis.net/ogc","Filter"),d=no("http://www.opengis.net/ogc","FeatureId");c.appendChild(d);d.setAttribute("fid",b);a.appendChild(c)}
|
||||
var ls={"http://www.opengis.net/wfs":{Insert:W(function(a,b,c){var d=c[c.length-1],d=no(G(d,"featureNS"),G(d,"featureType"));a.appendChild(d);a=b.Q;u(a)&&d.setAttribute("fid",a);a=c[c.length-1];var e=G(a,"featureNS"),f=b.a;u(a.cb)||(a.cb={},a.cb[e]={});var g=b.kb();b=[];var h=[],m;for(m in g){var n=g[m];null!==n&&(b.push(m),h.push(n),m==f?m in a.cb[e]||(a.cb[e][m]=W(Xr)):m in a.cb[e]||(a.cb[e][m]=W(fp)))}m=cc(a);m.node=d;To(m,a.cb,Oo(void 0,e),h,c,b)}),Update:W(function(a,b,c){var d=c[c.length-1];
|
||||
a.setAttribute("typeName",G(d,"featurePrefix")+":"+G(d,"featureType"));d=b.Q;if(u(d)){for(var e=b.qa(),f=[],g=0,h=e.length;g<h;g++){var m=b.t(e[g]);u(m)&&f.push({name:e[g],value:m})}To({node:a},ls,Oo("Property"),f,c);ks(a,d)}}),Delete:W(function(a,b,c){c=c[c.length-1];a.setAttribute("typeName",G(c,"featurePrefix")+":"+G(c,"featureType"));b=b.Q;u(b)&&ks(a,b)}),Property:W(function(a,b,c){var d=no("http://www.opengis.net/wfs","Name");a.appendChild(d);fp(d,b.name);null!=b.value&&(d=no("http://www.opengis.net/wfs",
|
||||
"Value"),a.appendChild(d),b.value instanceof Ld?Xr(d,b.value,c):fp(d,b.value))}),Native:W(function(a,b){u(b.ti)&&a.setAttribute("vendorId",b.ti);u(b.di)&&a.setAttribute("safeToIgnore",b.di);u(b.value)&&fp(a,b.value)})}},ms={"http://www.opengis.net/wfs":{Query:W(function(a,b,c){var d=c[c.length-1],e=G(d,"featurePrefix"),f=G(d,"featureNS"),g=G(d,"propertyNames"),h=G(d,"srsName");a.setAttribute("typeName",(u(e)?e+":":"")+b);u(h)&&a.setAttribute("srsName",h);u(f)&&a.setAttribute("xmlns:"+e,f);b=cc(d);
|
||||
b.node=a;To(b,js,Oo("PropertyName"),g,c);d=G(d,"bbox");u(d)&&(g=no("http://www.opengis.net/ogc","Filter"),b=G(c[c.length-1],"geometryName"),e=no("http://www.opengis.net/ogc","BBOX"),g.appendChild(e),f=no("http://www.opengis.net/ogc","PropertyName"),fp(f,b),e.appendChild(f),Xr(e,d,c),a.appendChild(g))})}};
|
||||
as.prototype.i=function(a){var b=no("http://www.opengis.net/wfs","GetFeature");b.setAttribute("service","WFS");b.setAttribute("version","1.1.0");u(a)&&(u(a.handle)&&b.setAttribute("handle",a.handle),u(a.outputFormat)&&b.setAttribute("outputFormat",a.outputFormat),u(a.maxFeatures)&&b.setAttribute("maxFeatures",a.maxFeatures),u(a.resultType)&&b.setAttribute("resultType",a.resultType),u(a.hi)&&b.setAttribute("startIndex",a.hi),u(a.count)&&b.setAttribute("count",a.count));Ho(b,"http://www.w3.org/2001/XMLSchema-instance",
|
||||
"xsi:schemaLocation",this.c);var c=a.featureTypes;a=[{node:b,srsName:a.srsName,featureNS:u(a.featureNS)?a.featureNS:this.a,featurePrefix:a.featurePrefix,geometryName:a.geometryName,bbox:a.bbox,ie:u(a.ie)?a.ie:[]}];var d=cc(a[a.length-1]);d.node=b;To(d,ms,Oo("Query"),c,a);return b};
|
||||
as.prototype.g=function(a,b,c,d){var e=[],f=no("http://www.opengis.net/wfs","Transaction");f.setAttribute("service","WFS");f.setAttribute("version","1.1.0");u(d)&&u(d.handle)&&f.setAttribute("handle",d.handle);Ho(f,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.c);null!=a&&To({node:f,featureNS:d.featureNS,featureType:d.featureType},ls,Oo("Insert"),a,e);null!=b&&To({node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},ls,Oo("Update"),b,e);null!=
|
||||
c&&To({node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},ls,Oo("Delete"),c,e);u(d.nativeElements)&&To({node:f,featureNS:d.featureNS,featureType:d.featureType,featurePrefix:d.featurePrefix},ls,Oo("Native"),d.nativeElements,e);return f};function ns(a){return a.getAttributeNS("http://www.w3.org/1999/xlink","href")};function os(){}os.prototype.a=function(a){return vo(a)?ps(this,a):yo(a)?qs(this,a):ka(a)?(a=Io(a),ps(this,a)):null};function rs(){this.version=void 0}E(rs,os);function ps(a,b){for(var c=b.firstChild;null!==c;c=c.nextSibling)if(1==c.nodeType)return qs(a,c);return null}function qs(a,b){a.version=za(b.getAttribute("version"));var c=Y({version:a.version},ss,b,[]);return u(c)?c:null}function ts(a,b){return Y({},us,a,b)}function vs(a,b){return Y({},ws,a,b)}function xs(a,b){var c=ts(a,b);if(u(c)){var d=[cp(a.getAttribute("width")),cp(a.getAttribute("height"))];c.size=d;return c}}function ys(a,b){return Y([],zs,a,b)}
|
||||
var As=[null,"http://www.opengis.net/wms"],ss=X(As,{Service:V(function(a,b){return Y({},Bs,a,b)}),Capability:V(function(a,b){return Y({},Cs,a,b)})},void 0),Cs=X(As,{Request:V(function(a,b){return Y({},Ds,a,b)}),Exception:V(function(a,b){return Y([],Es,a,b)}),Layer:V(function(a,b){return Y({},Fs,a,b)})},void 0),Bs=X(As,{Name:V($),Title:V($),Abstract:V($),KeywordList:V(ys),OnlineResource:V(ns),ContactInformation:V(function(a,b){return Y({},Gs,a,b)}),Fees:V($),AccessConstraints:V($),LayerLimit:V(bp),
|
||||
MaxWidth:V(bp),MaxHeight:V(bp)},void 0),Gs=X(As,{ContactPersonPrimary:V(function(a,b){return Y({},Hs,a,b)}),ContactPosition:V($),ContactAddress:V(function(a,b){return Y({},Is,a,b)}),ContactVoiceTelephone:V($),ContactFacsimileTelephone:V($),ContactElectronicMailAddress:V($)},void 0),Hs=X(As,{ContactPerson:V($),ContactOrganization:V($)},void 0),Is=X(As,{AddressType:V($),Address:V($),City:V($),StateOrProvince:V($),PostCode:V($),Country:V($)},void 0),Es=X(As,{Format:Ko($)},void 0),Fs=X(As,{Name:V($),
|
||||
Title:V($),Abstract:V($),KeywordList:V(ys),CRS:Mo($),EX_GeographicBoundingBox:V(function(a,b){var c=Y({},Js,a,b);if(u(c)){var d=G(c,"westBoundLongitude"),e=G(c,"southBoundLatitude"),f=G(c,"eastBoundLongitude"),c=G(c,"northBoundLatitude");return u(d)&&u(e)&&u(f)&&u(c)?[d,e,f,c]:void 0}}),BoundingBox:Mo(function(a){var b=[ap(a.getAttribute("minx")),ap(a.getAttribute("miny")),ap(a.getAttribute("maxx")),ap(a.getAttribute("maxy"))],c=[ap(a.getAttribute("resx")),ap(a.getAttribute("resy"))];return{crs:a.getAttribute("CRS"),
|
||||
extent:b,res:c}}),Dimension:Mo(function(a){return{name:a.getAttribute("name"),units:a.getAttribute("units"),unitSymbol:a.getAttribute("unitSymbol"),"default":a.getAttribute("default"),multipleValues:Yo(a.getAttribute("multipleValues")),nearestValue:Yo(a.getAttribute("nearestValue")),current:Yo(a.getAttribute("current")),values:$(a)}}),Attribution:V(function(a,b){return Y({},Ks,a,b)}),AuthorityURL:Mo(function(a,b){var c=ts(a,b);if(u(c)){var d=a.getAttribute("name");c.name=d;return c}}),Identifier:Mo($),
|
||||
MetadataURL:Mo(function(a,b){var c=ts(a,b);if(u(c)){var d=a.getAttribute("type");c.type=d;return c}}),DataURL:Mo(ts),FeatureListURL:Mo(ts),Style:Mo(function(a,b){return Y({},Ls,a,b)}),MinScaleDenominator:V($o),MaxScaleDenominator:V($o),Layer:Mo(function(a,b){var c=b[b.length-1],d=Y({},Fs,a,b);if(u(d)){var e=Yo(a.getAttribute("queryable"));u(e)||(e=G(c,"queryable"));d.queryable=u(e)?e:!1;e=cp(a.getAttribute("cascaded"));u(e)||(e=G(c,"cascaded"));d.cascaded=e;e=Yo(a.getAttribute("opaque"));u(e)||(e=
|
||||
G(c,"opaque"));d.opaque=u(e)?e:!1;e=Yo(a.getAttribute("noSubsets"));u(e)||(e=G(c,"noSubsets"));d.noSubsets=u(e)?e:!1;e=ap(a.getAttribute("fixedWidth"));u(e)||(e=G(c,"fixedWidth"));d.fixedWidth=e;e=ap(a.getAttribute("fixedHeight"));u(e)||(e=G(c,"fixedHeight"));d.fixedHeight=e;Ka(["Style","CRS","AuthorityURL"],function(a){u(G(c,a))&&bc(d,a)});Ka("EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" "),function(a){u(G(d,a))||(d[a]=G(c,a))});return d}})},
|
||||
void 0),Ks=X(As,{Title:V($),OnlineResource:V(ns),LogoURL:V(xs)},void 0),Js=X(As,{westBoundLongitude:V($o),eastBoundLongitude:V($o),southBoundLatitude:V($o),northBoundLatitude:V($o)},void 0),Ds=X(As,{GetCapabilities:V(vs),GetMap:V(vs),GetFeatureInfo:V(vs)},void 0),ws=X(As,{Format:Mo($),DCPType:Mo(function(a,b){return Y({},Ms,a,b)})},void 0),Ms=X(As,{HTTP:V(function(a,b){return Y({},Ns,a,b)})},void 0),Ns=X(As,{Get:V(ts),Post:V(ts)},void 0),Ls=X(As,{Name:V($),Title:V($),Abstract:V($),LegendURL:Mo(xs),
|
||||
StyleSheetURL:V(ts),StyleURL:V(ts)},void 0),us=X(As,{Format:V($),OnlineResource:V(ns)},void 0),zs=X(As,{Keyword:Ko($)},void 0);function Os(a,b){wd.call(this);this.a=new On(this);var c=a;b&&(c=hc(a));this.a.aa(c,"dragenter",this.Eh);c!=a&&this.a.aa(c,"dragover",this.Fh);this.a.aa(a,"dragover",this.Gh);this.a.aa(a,"drop",this.Hh)}E(Os,wd);l=Os.prototype;l.Gb=!1;l.A=function(){Os.C.A.call(this);this.a.Fb()};l.Eh=function(a){var b=a.H.dataTransfer;(this.Gb=!(!b||!(b.types&&(0<=Ja(b.types,"Files")||0<=Ja(b.types,"public.file-url"))||b.files&&0<b.files.length)))&&a.preventDefault()};
|
||||
l.Fh=function(a){this.Gb&&(a.preventDefault(),a.H.dataTransfer.dropEffect="none")};l.Gh=function(a){this.Gb&&(a.preventDefault(),a.za(),a=a.H.dataTransfer,a.effectAllowed="all",a.dropEffect="copy")};l.Hh=function(a){this.Gb&&(a.preventDefault(),a.za(),a=new Oc(a.H),a.type="drop",M(this,a))};/*
|
||||
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 Ps(a,b){this.b=[];this.f=a;this.e=b||null}l=Ps.prototype;l.jb=!1;l.Rb=!1;l.Fc=!1;l.Ve=!1;l.hd=!1;l.Gc=0;l.cancel=function(a){if(this.jb)this.c instanceof Ps&&this.c.cancel();else{if(this.a){var b=this.a;delete this.a;a?b.cancel(a):(b.Gc--,0>=b.Gc&&b.cancel())}this.f?this.f.call(this.e,this):this.hd=!0;this.jb||(a=new Qs(this),Rs(this),Ss(this,!1,a))}};l.Bd=function(a,b){this.Fc=!1;Ss(this,a,b)};function Ss(a,b,c){a.jb=!0;a.c=c;a.Rb=!b;Ts(a)}
|
||||
function Rs(a){if(a.jb){if(!a.hd)throw new Us(a);a.hd=!1}}function Vs(a,b,c,d){a.b.push([b,c,d]);a.jb&&Ts(a)}function Ws(a){return Ma(a.b,function(a){return ma(a[1])})}
|
||||
function Ts(a){a.d&&(a.jb&&Ws(a))&&(t.clearTimeout(a.d),delete a.d);a.a&&(a.a.Gc--,delete a.a);for(var b=a.c,c=!1,d=!1;a.b.length&&!a.Fc;){var e=a.b.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Rb?g:f)try{var h=f.call(e||a.e,b);u(h)&&(a.Rb=a.Rb&&(h==b||h instanceof Error),a.c=b=h);b instanceof Ps&&(d=!0,a.Fc=!0)}catch(m){b=m,a.Rb=!0,Ws(a)||(c=!0)}}a.c=b;d&&(Vs(b,y(a.Bd,a,!0),y(a.Bd,a,!1)),b.Ve=!0);c&&(a.d=t.setTimeout(rd(b),0))}function Us(a){xa.call(this);this.a=a}E(Us,xa);Us.prototype.message="Deferred has already fired";
|
||||
Us.prototype.name="AlreadyCalledError";function Qs(a){xa.call(this);this.a=a}E(Qs,xa);Qs.prototype.message="Deferred was canceled";Qs.prototype.name="CanceledError";function Xs(a,b){xa.call(this,ya("Error %s: %s",b,Ys(a)));this.code=a}E(Xs,xa);
|
||||
function Ys(a){switch(a){case 1:return"File or directory not found";case 2:return"Insecure or disallowed operation";case 3:return"Operation aborted";case 4:return"File or directory not readable";case 5:return"Invalid encoding";case 6:return"Cannot modify file or directory";case 7:return"Invalid state";case 8:return"Invalid line-ending specifier";case 9:return"Invalid modification";case 10:return"Quota exceeded";case 11:return"Invalid filetype";case 12:return"File or directory already exists at specified path";
|
||||
default:return"Unrecognized error"}};function Zs(a,b){Gc.call(this,a.type,b);this.a=a}E(Zs,Gc);function $s(){wd.call(this);this.ka=new FileReader;this.ka.onloadstart=y(this.a,this);this.ka.onprogress=y(this.a,this);this.ka.onload=y(this.a,this);this.ka.onabort=y(this.a,this);this.ka.onerror=y(this.a,this);this.ka.onloadend=y(this.a,this)}E($s,wd);$s.prototype.getError=function(){return this.ka.error&&new Xs(this.ka.error.code,"reading file")};$s.prototype.a=function(a){M(this,new Zs(a,this))};$s.prototype.A=function(){$s.C.A.call(this);delete this.ka};
|
||||
function at(a){var b=new Ps;a.addEventListener("loadend",va(function(a,b){var e=b.ka.result,f=b.getError();null==e||f?(Rs(a),Ss(a,!1,f)):(Rs(a),Ss(a,!0,e));b.Fb()},b,a));return b};function bt(a){a=u(a)?a:{};vj.call(this);this.d=u(a.formatConstructors)?a.formatConstructors:[];this.e=u(a.reprojectTo)?lg(a.reprojectTo):null;this.b=null;this.a=void 0}E(bt,vj);l=bt.prototype;l.A=function(){u(this.a)&&L(this.a);bt.C.A.call(this)};l.If=function(a){a=a.H.dataTransfer.files;var b,c;b=0;for(c=a.length;b<c;++b){var d=a[b],e=new $s,f=at(e);e.ka.readAsText(d,"");Vs(f,this.$f,null,this)}};
|
||||
l.$f=function(a){var b=this.g,c=this.e;null===c&&(c=b.a().N().l());var b=this.d,d=[],e,f;e=0;for(f=b.length;e<f;++e){var g=new b[e],h;try{h=g.ua(a)}catch(m){h=null}if(null!==h){var g=g.ja(a),g=mg(g,c),n,p;n=0;for(p=h.length;n<p;++n){var q=h[n],r=q.L();null===r||r.transform(g);d.push(q)}}}M(this,new ct(dt,this,d,c))};l.ia=pd;
|
||||
l.setMap=function(a){u(this.a)&&(L(this.a),this.a=void 0);null!==this.b&&(Fc(this.b),this.b=null);bt.C.setMap.call(this,a);null!==a&&(this.b=new Os(a.b),this.a=K(this.b,"drop",this.If,!1,this))};var dt="addfeatures";function ct(a,b,c,d){Gc.call(this,a,b);this.features=c;this.projection=d}E(ct,Gc);function et(a,b){this.x=a;this.y=b}E(et,Rb);et.prototype.I=function(){return new et(this.x,this.y)};et.prototype.scale=Rb.prototype.scale;et.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function ft(a){a=u(a)?a:{};Gj.call(this);this.f=u(a.condition)?a.condition:Dj;this.a=this.d=void 0;this.e=0}E(ft,Gj);ft.prototype.Ia=function(a){if(Fj(a)){var b=a.map,c=b.f();a=a.pixel;a=new et(a[0]-c[0]/2,c[1]/2-a[1]);c=Math.atan2(a.y,a.x);a=Math.sqrt(a.x*a.x+a.y*a.y);var d=b.a().N(),e=pj(d);b.K();u(this.d)&&wj(b,d,e.rotation-(c-this.d));this.d=c;u(this.a)&&yj(b,d,this.a*(e.resolution/a));u(this.a)&&(this.e=this.a/a);this.a=a}};
|
||||
ft.prototype.Ba=function(a){if(!Fj(a))return!0;a=a.map;var b=a.a();sg(b,-1);var b=b.N(),c=pj(b),d=this.e-1,e=c.rotation,e=b.constrainRotation(e,0);wj(a,b,e,void 0,void 0);c=c.resolution;c=b.constrainResolution(c,0,d);yj(a,b,c,void 0,400);this.e=0;return!1};ft.prototype.Aa=function(a){return Fj(a)&&this.f(a)?(sg(a.map.a(),1),this.a=this.d=void 0,!0):!1};ft.prototype.re=function(a){return a};function gt(a,b){Gc.call(this,a);this.feature=b}E(gt,Gc);
|
||||
function ht(a){Gj.call(this);this.r=null;this.v=u(a.source)?a.source:null;this.q=u(a.features)?a.features:null;this.M=u(a.snapTolerance)?a.snapTolerance:12;this.F=u(a.minPointsPerRing)?a.minPointsPerRing:3;var b=this.n=a.type,c;if("Point"===b||"MultiPoint"===b)c=it;else if("LineString"===b||"MultiLineString"===b)c=jt;else if("Polygon"===b||"MultiPolygon"===b)c=kt;this.a=c;this.d=this.j=this.k=this.f=this.e=null;this.O=4;this.o=new ue({style:u(a.style)?a.style:lt()})}E(ht,Gj);
|
||||
function lt(){var a={};a.Polygon=[new oe({fill:new ke({color:[255,255,255,0.5]})})];a.MultiPolygon=a.Polygon;a.LineString=[new oe({stroke:new me({color:[255,255,255,1],width:5})}),new oe({stroke:new me({color:[0,153,255,1],width:3})})];a.MultiLineString=a.LineString;a.Point=[new oe({image:new ne({radius:7,fill:new ke({color:[0,153,255,1]}),stroke:new me({color:[255,255,255,0.75],width:1.5})}),zIndex:1E5})];a.MultiPoint=a.Point;return function(b){return a[b.L().B()]}}
|
||||
ht.prototype.setMap=function(a){null===a&&mt(this);this.o.setMap(a);ht.C.setMap.call(this,a)};ht.prototype.ia=function(a){var b;b=a.map;if(wc(document,b.b)&&"none"!=b.b.style.display){var c=b.f();null==c||0>=c[0]||0>=c[1]?b=!1:(b=b.a(),b=u(b)&&b.Xc()?!0:!1)}else b=!1;if(!b)return!0;b=!0;a.type===Ui?b=nt(this,a):a.type===Oi&&(b=!1);return ht.C.ia.call(this,a)&&b};ht.prototype.Aa=function(a){this.r=a.pixel;return!0};
|
||||
ht.prototype.Ba=function(a){var b=this.r,c=a.pixel,d=b[0]-c[0],b=b[1]-c[1],c=!0;if(d*d+b*b<=this.O){nt(this,a);if(null===this.e)ot(this,a);else if(this.a===it||pt(this,a)){a=mt(this);var e,d=a.L();this.a===it?e=d.w():this.a===jt?(e=d.w(),e.pop(),d.J(e)):this.a===kt&&(this.d[0].pop(),this.d[0].push(this.d[0][0]),d.J(this.d),e=d.w());"MultiPoint"===this.n?a.eb(new Vl([e])):"MultiLineString"===this.n?a.eb(new Sl([e])):"MultiPolygon"===this.n&&a.eb(new Wl([e]));null===this.q||this.q.push(a);null===this.v||
|
||||
this.v.be(a);M(this,new gt("drawend",a))}else e=a.coordinate,a=this.f.L(),this.a===jt?(this.e=e.slice(),d=a.w(),d.push(e.slice()),a.J(d)):this.a===kt&&(this.d[0].push(e.slice()),a.J(this.d)),qt(this);c=!1}return c};
|
||||
function nt(a,b){if(a.a===it&&null===a.e)ot(a,b);else if(null!==a.e){var c=b.coordinate,d=a.f.L(),e,f;a.a===it?(f=d.w(),f[0]=c[0],f[1]=c[1],d.J(f)):(a.a===jt?e=d.w():a.a===kt&&(e=a.d[0]),pt(a,b)&&(c=a.e.slice()),a.k.L().J(c),f=e[e.length-1],f[0]=c[0],f[1]=c[1],a.a===jt?d.J(e):a.a===kt&&(a.j.L().J(e),d.J(a.d)));qt(a)}return!0}
|
||||
function pt(a,b){var c=!1;if(null!==a.f){var d=a.f.L(),e=!1,f=[a.e];a.a===jt?e=2<d.w().length:a.a===kt&&(e=d.w()[0].length>a.F,f=[a.d[0][0],a.d[0][a.d[0].length-2]]);if(e)for(var d=b.map,e=0,g=f.length;e<g;e++){var h=f[e],m=d.g(h),n=b.pixel,c=n[0]-m[0],m=n[1]-m[1];if(c=Math.sqrt(c*c+m*m)<=a.M){a.e=h;break}}}return c}
|
||||
function ot(a,b){var c=b.coordinate;a.e=c;var d;a.a===it?d=new Af(c.slice()):(a.k=new pe(new Af(c.slice())),a.a===jt?d=new Ql([c.slice(),c.slice()]):a.a===kt&&(a.j=new pe(new Ql([c.slice(),c.slice()])),a.d=[[c.slice(),c.slice()]],d=new If(a.d)));a.f=new pe(d);qt(a);M(a,new gt("drawstart",a.f))}function mt(a){a.e=null;var b=a.f;null!==b&&(a.f=null,a.k=null,a.j=null,a.o.a.clear());return b}function qt(a){var b=[a.f];null===a.j||b.push(a.j);null===a.k||b.push(a.k);a.o.Ub(new Id(b))}
|
||||
var it="Point",jt="LineString",kt="Polygon";function rt(a){Gj.call(this);this.q=this.e=null;this.j=!1;this.r=[0,0];this.a=null;this.f=u(a.pixelTolerance)?a.pixelTolerance:20;this.d=null;this.k=new ue({style:a.style});this.o=a.features;K(this.o,"add",this.Dc,!1,this);K(this.o,"remove",this.Tg,!1,this);this.n={Point:this.yi,LineString:this.ze,LinearRing:this.ze,Polygon:this.zi,MultiPoint:this.wi,MultiLineString:this.vi,MultiPolygon:this.xi,GeometryCollection:this.ui}}E(rt,Gj);l=rt.prototype;
|
||||
l.setMap=function(a){null===a?this.a=null:null===this.a&&(this.a=new gm);this.k.setMap(a);rt.C.setMap.call(this,a)};l.Dc=function(a){a=a.element;var b=a.L();u(this.n[b.B()])&&this.n[b.B()].call(this,a,b);st(this,this.r,this.g)};l.yi=function(a,b){var c=b.w(),c={feature:a,geometry:b,S:[c,c]};nm(this.a,b.p(),c)};l.wi=function(a,b){var c=b.w(),d,e,f;e=0;for(f=c.length;e<f;++e)d=c[e],d={feature:a,geometry:b,depth:[e],index:e,S:[d,d]},nm(this.a,b.p(),d)};
|
||||
l.ze=function(a,b){var c=b.w(),d,e,f,g;d=0;for(e=c.length-1;d<e;++d)f=c.slice(d,d+2),g={feature:a,geometry:b,index:d,S:f},nm(this.a,De(f),g)};l.vi=function(a,b){var c=b.w(),d,e,f,g,h,m,n;g=0;for(h=c.length;g<h;++g)for(d=c[g],e=0,f=d.length-1;e<f;++e)m=d.slice(e,e+2),n={feature:a,geometry:b,depth:[g],index:e,S:m},nm(this.a,De(m),n)};
|
||||
l.zi=function(a,b){var c=b.w(),d,e,f,g,h,m,n;g=0;for(h=c.length;g<h;++g)for(d=c[g],e=0,f=d.length-1;e<f;++e)m=d.slice(e,e+2),n={feature:a,geometry:b,depth:[g],index:e,S:m},nm(this.a,De(m),n)};l.xi=function(a,b){var c=b.w(),d,e,f,g,h,m,n,p,q,r;m=0;for(n=c.length;m<n;++m)for(p=c[m],g=0,h=p.length;g<h;++g)for(d=p[g],e=0,f=d.length-1;e<f;++e)q=d.slice(e,e+2),r={feature:a,geometry:b,depth:[g,m],index:e,S:q},nm(this.a,De(q),r)};
|
||||
l.ui=function(a,b){var c,d=b.a;for(c=0;c<d.length;++c)this.n[d[c].B()].call(this,a,d[c])};l.Tg=function(a){var b=a.element;a=this.a;var c,d=[];jm(a,b.L().p(),function(a){b===a.feature&&d.push(a)});for(c=d.length-1;0<=c;--c)a.remove(d[c]);null!==this.e&&0===this.o.Ka()&&(this.k.Wc(this.e),this.e=null)};function tt(a,b){var c=a.e;null===c?(c=new pe(new Af(b)),a.e=c,a.k.Wd(c)):c.L().J(b)}
|
||||
l.Aa=function(a){st(this,a.pixel,a.map);this.d=[];var b=this.e;if(null!==b){a=[];var b=b.L().w(),c=De([b]),d=[];km(this.a,c,function(a){d.push(a)},void 0);for(var c={},e=0,f=d.length;e<f;++e){var g=d[e],h=g.S;v(g.feature)in c||(c[v(g.feature)]=!0);ze(h[0],b)?this.d.push([g,0]):ze(h[1],b)?this.d.push([g,1]):v(h)in this.q&&a.push([g,b])}for(e=a.length-1;0<=e;--e)this.hg.apply(this,a[e])}return this.j};
|
||||
l.Ia=function(a){a=a.coordinate;for(var b=0,c=this.d.length;b<c;++b){var d=this.d[b],e=d[0],f=e.depth,g=e.geometry,h=g.w(),m=e.S,d=d[1];switch(g.B()){case "Point":h=a;m[0]=m[1]=a;break;case "MultiPoint":h[e.index]=a;m[0]=m[1]=a;break;case "LineString":h[e.index+d]=a;m[d]=a;break;case "MultiLineString":h[f[0]][e.index+d]=a;m[d]=a;break;case "Polygon":h[f[0]][e.index+d]=a;m[d]=a;break;case "MultiPolygon":h[f[1]][f[0]][e.index+d]=a,m[d]=a}g.J(h);tt(this,a)}};
|
||||
l.Ba=function(){for(var a,b=this.d.length-1;0<=b;--b)a=this.d[b][0],this.a.update(De(a.S),a);return!1};l.ia=function(a){var b=a.map.a();Ra(b.k)[1]||a.type!=Ui||(this.r=a.pixel,st(this,a.pixel,a.map));return rt.C.ia.call(this,a)&&!this.j};
|
||||
function st(a,b,c){function d(a,b){return Be(e,we(e,a.S))-Be(e,we(e,b.S))}var e=c.fa(b),f=c.fa([b[0]-a.f,b[1]+a.f]),g=c.fa([b[0]+a.f,b[1]-a.f]),f=De([f,g]);a.j=!1;f=mm(a.a,f);if(0<f.length){f.sort(d);var g=f[0].S,h=we(e,g),m=c.g(h);if(Math.sqrt(Be(b,m))<=a.f){b=c.g(g[0]);c=c.g(g[1]);b=Be(m,b);c=Be(m,c);10>=Math.sqrt(Math.min(b,c))&&(h=b>c?g[1]:g[0]);tt(a,h);c={};c[v(g)]=!0;b=1;for(m=f.length;b<m;++b)if(h=f[b].S,ze(g[0],h[0])&&ze(g[1],h[1])||ze(g[0],h[1])&&ze(g[1],h[0]))c[v(h)]=!0;else break;a.q=c;
|
||||
a.j=!0;return}}null!==a.e&&(a.k.Wc(a.e),a.e=null)}
|
||||
l.hg=function(a,b){var c=a.S,d=a.feature,e=a.geometry,f=a.depth,g=a.index,h;switch(e.B()){case "MultiLineString":h=e.w();h[f[0]].splice(g+1,0,b);break;case "Polygon":h=e.w();h[f[0]].splice(g+1,0,b);break;case "MultiPolygon":h=e.w();h[f[1]][f[0]].splice(g+1,0,b);break;case "LineString":h=e.w();h.splice(g+1,0,b);break;default:return}e.J(h);h=this.a;h.remove(a);var m=v(d),n=[];jm(this.a,e.p(),function(a){v(a.feature)===m&&n.push(a)});for(var p=0,q=n.length;p<q;++p){var r=n[p];r.geometry===e&&((!u(f)||
|
||||
Xa(r.depth,f))&&r.index>g)&&++r.index}p={S:[c[0],b],feature:d,geometry:e,depth:f,index:g};nm(h,De(p.S),p);this.d.push([p,1]);c={S:[b,c[1]],feature:d,geometry:e,depth:f,index:g+1};nm(h,De(c.S),c);this.d.push([c,0])};function ut(a){vj.call(this);this.e=u(a.condition)?a.condition:Bj;this.b=u(a.addCondition)?a.addCondition:od;this.i=u(a.removeCondition)?a.removeCondition:od;this.j=u(a.toggleCondition)?a.toggleCondition:Dj;var b;if(u(a.layerFilter))b=a.layerFilter;else if(u(a.layer)){var c=a.layer;b=function(a){return a===c}}else if(u(a.layers)){var d=a.layers;b=function(a){return-1!=Ja(d,a)}}else b=pd;this.d=b;this.a=new ue({style:a.style})}E(ut,vj);ut.prototype.f=function(){return this.a.a};
|
||||
ut.prototype.ia=function(a){if(!this.e(a))return!0;var b=this.b(a),c=this.i(a),d=this.j(a);a=a.map.Yd(a.pixel,function(a){this.Dc(a,b,c,d);return a},this,this.d);u(a)||(b||c)||vt(this);return!1};ut.prototype.Dc=function(a,b,c,d){var e=this.a.a,f=-1;if(u(a)&&null!==a||b){f=e.a.indexOf(a);if(-1==f){if(!b&&!c&&0<e.Ka())for(b=e.Ka()-1;0<=b;b--)e.Nb(b)!=a&&wt(this,e.Nb(b))}else if(d||c){wt(this,e.Nb(f));return}c||-1!=f||(e.push(a),this.g.o.push(a))}else vt(this)};
|
||||
function wt(a,b){a.a.a.remove(b);a.g.o.remove(b)}function vt(a){var b,c=a.a.a;for(b=c.Ka()-1;0<=b;b--)wt(a,c.Nb(b))}ut.prototype.setMap=function(a){ut.C.setMap.call(this,a);this.a.setMap(a)};function xt(a){var b=u(a)?a:{};Qk.call(this,b);this.d=null;K(this,Ed("gradient"),this.O,!1,this);this.M(u(b.gradient)?b.gradient:yt);a=u(b.radius)?b.radius:8;var c=u(b.blur)?b.blur:15,d=u(b.shadow)?b.shadow:250,b=pc("CANVAS"),e=b.getContext("2d"),f=a+c+1;b.width=b.height=2*f;e.shadowOffsetX=e.shadowOffsetY=d;e.shadowBlur=c;e.shadowColor="#000";e.beginPath();c=f-d;e.arc(c,c,a,0,2*Math.PI,!0);e.fill();a=new Dk({src:b.toDataURL()});this.g(new oe({image:a}));K(this,"render",this.na,!1,this)}E(xt,Qk);
|
||||
var yt=["#00f","#0ff","#0f0","#ff0","#f00"];xt.prototype.l=function(){return this.t("gradient")};xt.prototype.getGradient=xt.prototype.l;xt.prototype.O=function(){var a=this.l(),b=pc("CANVAS"),c=b.getContext("2d");b.width=1;b.height=256;for(var b=c.createLinearGradient(0,0,1,256),d=1/a.length,e=0,f=a.length;e<f;++e)b.addColorStop(e*d,a[e]);c.fillStyle=b;c.fillRect(0,0,1,256);this.d=c.getImageData(0,0,1,256).data};
|
||||
xt.prototype.na=function(a){a=a.context;var b=a.canvas,b=a.getImageData(0,0,b.width,b.height),c=b.data,d,e,f;d=0;for(e=c.length;d<e;d+=4)if(f=4*c[d+3])c[d]=this.d[f],c[d+1]=this.d[f+1],c[d+2]=this.d[f+2];a.putImageData(b,0,0)};xt.prototype.M=function(a){this.u("gradient",a)};xt.prototype.setGradient=xt.prototype.M;function zt(a,b){var c=b||{},d=c.document||document,e=pc("SCRIPT"),f={ne:e,fb:void 0},g=new Ps(At,f),h=null,m=null!=c.timeout?c.timeout:5E3;0<m&&(h=window.setTimeout(function(){Bt(e,!0);var b=new Ct(Dt,"Timeout reached for loading script "+a);Rs(g);Ss(g,!1,b)},m),f.fb=h);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(Bt(e,c.Ad||!1,h),Rs(g),Ss(g,!0,null))};e.onerror=function(){Bt(e,!0,h);var b=new Ct(Et,"Error while loading script "+a);Rs(g);
|
||||
Ss(g,!1,b)};jc(e,{type:"text/javascript",charset:"UTF-8",src:a});Ft(d).appendChild(e);return g}function Ft(a){var b=a.getElementsByTagName("HEAD");return b&&0!=b.length?b[0]:a.documentElement}function At(){if(this&&this.ne){var a=this.ne;a&&"SCRIPT"==a.tagName&&Bt(a,!0,this.fb)}}function Bt(a,b,c){null!=c&&t.clearTimeout(c);a.onload=da;a.onerror=da;a.onreadystatechange=da;b&&window.setTimeout(function(){uc(a)},0)}var Et=0,Dt=1;
|
||||
function Ct(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);xa.call(this,c);this.code=a}E(Ct,xa);function Gt(a,b){this.c=new Pg(a);this.a=b?b:"callback";this.fb=5E3}var Ht=0;Gt.prototype.cancel=function(a){a&&(a.Ic&&a.Ic.cancel(),a.Q&&It(a.Q,!1))};function Jt(a){return function(){It(a,!1)}}function Kt(a,b){return function(c){It(a,!0);b.apply(void 0,arguments)}}function It(a,b){t._callbacks_[a]&&(b?delete t._callbacks_[a]:t._callbacks_[a]=da)};function Lt(a){return function(b){return null===b?void 0:a.replace("{z}",b.a.toString()).replace("{x}",b.x.toString()).replace("{y}",b.y.toString())}}function Mt(a){return Nt(La(a,Lt))}function Nt(a){return 1===a.length?a[0]:function(b,c,d){return null===b?void 0:a[Pb(b.c(),a.length)].call(this,b,c,d)}}function Ot(){}function Pt(a,b){var c=new Za(0,0,0);return function(d,e,f){return null===d?void 0:b.call(this,a.call(this,d,f,c),e,f)}}
|
||||
function Qt(a){var b=[],c=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(c){var d=c[2].charCodeAt(0),e;for(e=c[1].charCodeAt(0);e<=d;++e)b.push(a.replace(c[0],String.fromCharCode(e)))}else b.push(a);return b};function Rt(a){rn.call(this);this.d=u(a)?a:2048}E(Rt,rn);function St(a,b){for(var c,d;a.pa()>a.d&&!(c=a.a.xb,d=c.a.a.toString(),d in b&&b[d].contains(c.a));)tn(a)};function Tt(a){sk.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,opaque:a.opaque,pixelRatios:a.pixelRatios,projection:a.projection,tileGrid:a.tileGrid});this.tileUrlFunction=u(a.tileUrlFunction)?a.tileUrlFunction:Ot;this.crossOrigin=u(a.crossOrigin)?a.crossOrigin:null;this.b=new Rt;this.tileLoadFunction=u(a.tileLoadFunction)?a.tileLoadFunction:Ut;this.tileClass=u(a.tileClass)?a.tileClass:qg}E(Tt,sk);function Ut(a,b){a.b().src=b}l=Tt.prototype;
|
||||
l.Zc=function(){return this.b.pa()>this.b.d};l.ae=function(a){St(this.b,a)};l.mb=function(a,b,c,d,e){var f=this.Ha(a,b,c);if(pn(this.b,f))return sn(this.b,f);a=new Za(a,b,c);d=this.tileUrlFunction(a,d,e);d=new this.tileClass(a,u(d)?0:4,u(d)?d:"",this.crossOrigin,this.tileLoadFunction);un(this.b,f,d);return d};l.Vb=function(a){this.b.clear();this.tileUrlFunction=a;this.s()};l.xe=function(a,b,c){a=this.Ha(a,b,c);pn(this.b,a)&&sn(this.b,a)};function Vt(a){var b=Array(a.maxZoom+1),c,d=2*dk/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);lk.call(this,{minZoom:a.minZoom,origin:[-dk,dk],resolutions:b,tileSize:256})}E(Vt,lk);
|
||||
Vt.prototype.c=function(a){a=u(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=u(a.wrapX)?a.wrapX:!0,e=new Za(0,0,0),f=null;if(u(a.extent)){var f=Array(c+1),g;for(g=0;g<=c;++g)f[g]=g<b?null:ok(this,a.extent,g)}return function(a,g,n){g=a.a;if(g<b||c<g)return null;var p=Math.pow(2,g),q=a.x;if(d)q=Pb(q,p);else if(0>q||p<=q)return null;a=a.y;return a<-p||-1<a||null!==f&&(e.a=g,e.x=q,e.y=a,!f[g].contains(e))?null:$a(g,q,-a-1,n)}};
|
||||
Vt.prototype.hc=function(a,b){return a.a<this.maxZoom?db(2*a.x,2*(a.x+1),2*a.y,2*(a.y+1),b):null};Vt.prototype.fc=function(a,b,c,d){d=db(0,a.x,0,a.y,d);for(a=a.a-1;a>=this.minZoom;--a)if(d.a=d.d>>=1,d.b=d.c>>=1,b.call(c,a,d))return!0;return!1};function Wt(a){Tt.call(this,{crossOrigin:"anonymous",opaque:!0,projection:lg("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});this.a=u(a.culture)?a.culture:"en-us";var b=new Pg("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.imagerySet),b=new Gt(b,"jsonp"),c={include:"ImageryProviders",key:a.key};a=y(this.e,this);var d=c||null,c="_"+(Ht++).toString(36)+wa().toString(36);t._callbacks_||(t._callbacks_={});var e=b.c.I();if(d)for(var f in d)d.hasOwnProperty&&!d.hasOwnProperty(f)||bh(e,
|
||||
f,d[f]);a&&(t._callbacks_[c]=Kt(c,a),bh(e,b.a,"_callbacks_."+c));f=zt(e.toString(),{timeout:b.fb,Ad:!0});Vs(f,null,Jt(c),void 0)}E(Wt,Tt);var Xt=new eb({html:'\x3ca class\x3d"ol-attribution-bing-tos" target\x3d"_blank" href\x3d"http://www.microsoft.com/maps/product/terms.html"\x3eTerms of Use\x3c/a\x3e'});
|
||||
Wt.prototype.e=function(a){if(200!=a.statusCode||"OK"!=a.statusDescription||"ValidCredentials"!=a.authenticationResultCode||1!=a.resourceSets.length||1!=a.resourceSets[0].resources.length)Yj(this,2);else{var b=a.brandLogoUri,c=a.resourceSets[0].resources[0],d=new Vt({minZoom:c.zoomMin,maxZoom:c.zoomMax,tileSize:c.imageWidth});this.tileGrid=d;var e=this.a;this.tileUrlFunction=Pt(d.c(),Nt(La(c.imageUrlSubdomains,function(a){var b=c.imageUrl.replace("{subdomain}",a).replace("{culture}",e);return function(a){return null===
|
||||
a?void 0:b.replace("{quadkey}",bb(a))}})));if(c.imageryProviders){var f=Uf(lg("EPSG:4326"),this.l);a=La(c.imageryProviders,function(a){var b=a.attribution,c={};Ka(a.coverageAreas,function(a){var b=a.zoomMin,e=a.zoomMax;a=a.bbox;a=$e([a[1],a[0],a[3],a[2]],f);var g,h;for(g=b;g<=e;++g)h=g.toString(),b=ok(d,a,g),h in c?c[h].push(b):c[h]=[b]});return new eb({html:b,tileRanges:c})});a.push(Xt);this.d=a}this.r=b;Yj(this,1)}};function Yt(a,b,c){if(ma(a))c&&(a=y(a,c));else if(a&&"function"==typeof a.handleEvent)a=y(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:t.setTimeout(a,b||0)};function Zt(){}Zt.prototype.a=null;function $t(a){var b;(b=a.a)||(b={},au(a)&&(b[0]=!0,b[1]=!0),b=a.a=b);return b};var bu;function cu(){}E(cu,Zt);function du(a){return(a=au(a))?new ActiveXObject(a):new XMLHttpRequest}function au(a){if(!a.c&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.c=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.c}bu=new cu;function eu(a){wd.call(this);this.v=new Eg;this.j=a||null;this.a=!1;this.g=this.D=null;this.F=this.n="";this.b=0;this.f="";this.c=this.r=this.l=this.k=!1;this.i=0;this.e=null;this.d=fu;this.o=this.M=!1}E(eu,wd);var fu="",gu=/^https?$/i,hu=["POST","PUT"];
|
||||
function iu(a,b){if(a.D)throw Error("[goog.net.XhrIo] Object is active with another request\x3d"+a.n+"; newUri\x3d"+b);a.n=b;a.f="";a.b=0;a.F="GET";a.k=!1;a.a=!0;a.D=a.j?du(a.j):du(bu);a.g=a.j?$t(a.j):$t(bu);a.D.onreadystatechange=y(a.q,a);try{a.r=!0,a.D.open("GET",b,!0),a.r=!1}catch(c){ju(a,c);return}var d=a.v.I(),e=Na(d.qa(),ku),f=t.FormData&&!1;!(0<=Ja(hu,"GET"))||(e||f)||Fg(d,"Content-Type","application/x-www-form-urlencoded;charset\x3dutf-8");Dg(d,function(a,b){this.D.setRequestHeader(b,a)},
|
||||
a);a.d&&(a.D.responseType=a.d);"withCredentials"in a.D&&(a.D.withCredentials=a.M);try{lu(a),0<a.i&&(a.o=F&&Gb(9)&&la(a.D.timeout)&&u(a.D.ontimeout),a.o?(a.D.timeout=a.i,a.D.ontimeout=y(a.fb,a)):a.e=Yt(a.fb,a.i,a)),a.l=!0,a.D.send(""),a.l=!1}catch(g){ju(a,g)}}function ku(a){return"content-type"==a.toLowerCase()}
|
||||
eu.prototype.fb=function(){"undefined"!=typeof ca&&this.D&&(this.f="Timed out after "+this.i+"ms, aborting",this.b=8,M(this,"timeout"),this.D&&this.a&&(this.a=!1,this.c=!0,this.D.abort(),this.c=!1,this.b=8,M(this,"complete"),M(this,"abort"),mu(this)))};function ju(a,b){a.a=!1;a.D&&(a.c=!0,a.D.abort(),a.c=!1);a.f=b;a.b=5;nu(a);mu(a)}function nu(a){a.k||(a.k=!0,M(a,"complete"),M(a,"error"))}eu.prototype.A=function(){this.D&&(this.a&&(this.a=!1,this.c=!0,this.D.abort(),this.c=!1),mu(this,!0));eu.C.A.call(this)};
|
||||
eu.prototype.q=function(){if(!this.Y&&this.a&&"undefined"!=typeof ca&&(!this.g[1]||4!=ou(this)||2!=pu(this)))if(this.l&&4==ou(this))Yt(this.q,0,this);else if(M(this,"readystatechange"),4==ou(this)){this.a=!1;try{if(qu(this))M(this,"complete"),M(this,"success");else{this.b=6;var a;try{a=2<ou(this)?this.D.statusText:""}catch(b){a=""}this.f=a+" ["+pu(this)+"]";nu(this)}}finally{mu(this)}}};
|
||||
function mu(a,b){if(a.D){lu(a);var c=a.D,d=a.g[0]?da:null;a.D=null;a.g=null;b||M(a,"ready");try{c.onreadystatechange=d}catch(e){}}}function lu(a){a.D&&a.o&&(a.D.ontimeout=null);la(a.e)&&(t.clearTimeout(a.e),a.e=null)}
|
||||
function qu(a){var b=pu(a),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=Kg(String(a.n))[1]||null,!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1)),b=!gu.test(a?a.toLowerCase():"");c=b}return c}function ou(a){return a.D?a.D.readyState:0}function pu(a){try{return 2<ou(a)?a.D.status:-1}catch(b){return-1}}function ru(a){try{return a.D?a.D.responseText:""}catch(b){return""}}
|
||||
function su(a){try{if(!a.D)return null;if("response"in a.D)return a.D.response;switch(a.d){case fu:case "text":return a.D.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.D)return a.D.mozResponseArrayBuffer}return null}catch(b){return null}};function tu(a){var b=u(a)?a:{};qm.call(this,{attributions:b.attributions,extent:b.extent,logo:b.logo,projection:b.projection});this.format=b.format;u(b.doc)&&uu(this,b.doc);u(b.node)&&uu(this,b.node);u(b.object)&&uu(this,b.object);u(b.text)&&uu(this,b.text);u(b.arrayBuffer)&&uu(this,b.arrayBuffer);if(u(b.url)||u(b.urls)){Yj(this,0);a="binary"==this.format.B()&&I.td?"arraybuffer":"text";var c;u(b.url)&&(c=new eu,c.d=a,K(c,"complete",y(this.i,this)),iu(c,b.url));if(u(b.urls)){var b=b.urls,d,e;d=0;for(e=
|
||||
b.length;d<e;++d)c=new eu,c.d=a,K(c,"complete",y(this.i,this)),iu(c,b[d])}}}E(tu,qm);tu.prototype.i=function(a){a=a.target;if(qu(a)){var b=this.format.B(),c;if("binary"==b&&I.td)c=su(a);else if("json"==b)c=ru(a);else if("text"==b)c=ru(a);else if("xml"==b){if(!F)try{c=a.D?a.D.responseXML:null}catch(d){c=null}null!=c||(c=Io(ru(a)))}Fc(a);null!=c?uu(this,c):Yj(this,2)}else Yj(this,2)};
|
||||
function uu(a,b){var c=a.format,d=c.ua(b),c=c.ja(b),e=a.l;if(null!==e&&c!==e&&(c.ma!=e.ma||Uf(c,e)!==dg)){var c=mg(c,e),f,e=0;for(f=d.length;e<f;++e){var g=d[e].L();null===g||g.transform(c)}}rm(a,d);Yj(a,1)};function vu(a){a=u(a)?a:{};tu.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new gp,logo:a.logo,node:a.node,projection:a.projection,text:a.text,url:a.url,urls:a.urls})}E(vu,tu);function wu(a){a=u(a)?a:{};tu.call(this,{attributions:a.attributions,extent:a.extent,format:new Op({defaultProjection:a.defaultProjection}),logo:a.logo,object:a.object,projection:a.projection,text:a.text,url:a.url,urls:a.urls})}E(wu,tu);function xu(a){a=u(a)?a:{};tu.call(this,{format:new Xp({altitudeMode:a.altitudeMode}),projection:a.projection,text:a.text,url:a.url,urls:a.urls})}E(xu,tu);function yu(a,b,c,d,e){ik.call(this,a,b,c,2,d);this.a=e}E(yu,ik);yu.prototype.e=k("a");function zu(a){fl.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,resolutions:a.resolutions,state:a.state});this.v=a.canvasFunction;this.n=null;this.o=0;this.F=u(a.ratio)?a.ratio:1.5}E(zu,fl);zu.prototype.qb=function(a,b,c,d){b=gl(this,b);var e=this.n;if(null!==e&&this.o==this.c&&e.d==b&&e.b==c&&Ke(e.p(),a))return e;a=a.slice();Ye(a,this.F);d=this.v(a,b,c,[(a[2]-a[0])/b*c,(a[3]-a[1])/b*c],d);null===d||(e=new yu(a,b,c,this.d,d));this.n=e;this.o=this.c;return e};function Au(a){var b=u(a.attributions)?a.attributions:null,c=u(a.crossOrigin)?a.crossOrigin:null,d=a.imageExtent,e=(d[3]-d[1])/a.imageSize[1],f=a.url,g=lg(a.projection);fl.call(this,{attributions:b,extent:a.extent,logo:a.logo,projection:g,resolutions:[e]});this.a=new jk(d,e,1,b,f,c)}E(Au,fl);Au.prototype.qb=function(a){return Ve(a,this.a.p())?this.a:null};function Bu(a){this.e=a.source;this.Zg=u(a.style)?se(a.style):re;this.O=Rd();this.a=pc("CANVAS");this.g=this.a.getContext("2d");this.b=[0,0];this.i=null;zu.call(this,{attributions:a.attributions,canvasFunction:y(this.q,this),extent:a.extent,logo:a.logo,projection:a.projection,ratio:a.ratio,resolutions:a.resolutions,state:this.e.f});K(this.e,"change",this.V,void 0,this)}E(Bu,zu);
|
||||
Bu.prototype.q=function(a,b,c,d){var e=new Al(b/(2*c),a,b),f=!1;this.e.ec(a,function(a){var d;if(!(d=f))if(d=this.Zg(a,b),null!=d){var m=b*b/(4*c*c),n,p,q=!1;n=0;for(p=d.length;n<p;++n)q=Zl(e,a,d[n],m,a,this.$g,this)||q;d=q}else d=!1;f=d},this);El(e);if(f)return null;this.b[0]!=d[0]||this.b[1]!=d[1]?(this.a.width=d[0],this.a.height=d[1],this.b[0]=d[0],this.b[1]=d[1]):this.g.clearRect(0,0,d[0],d[1]);d=Gk(this.O,d[0]/2,d[1]/2,c/b,-c/b,0,-Qe(a)[0],-Qe(a)[1]);Bl(e,this.g,a,c,d,0,{});this.i=e;return this.a};
|
||||
Bu.prototype.k=function(a,b,c,d,e){return null===this.i?void 0:Dl(this.i,a,b,0,d,{},function(a,b){return e(b)})};Bu.prototype.$g=function(){this.s()};Bu.prototype.V=function(){Yj(this,this.e.f)};function Cu(a){a=u(a)?a:{};fl.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,resolutions:a.resolutions});this.O=u(a.crossOrigin)?a.crossOrigin:null;this.i=a.url;this.b=a.params;this.e=!0;Du(this);this.F=a.serverType;this.V=u(a.hidpi)?a.hidpi:!0;this.a=null;this.g=[0,0];this.n=null;this.q=NaN;this.v=0;this.o=u(a.ratio)?a.ratio:1.5}E(Cu,fl);l=Cu.prototype;
|
||||
l.ah=function(a,b,c,d){if(u(this.i)&&null!==this.a&&b==this.q&&(c===this.n||(c.ma!=this.n.ma?0:Uf(c,this.n)===dg))){var e=this.a.p(),f=this.a.b,g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:G(this.b,"LAYERS")};ec(g,this.b,d);b/=f;d=Math.floor((e[3]-a[1])/b);g[this.e?"I":"X"]=Math.floor((a[0]-e[0])/b);g[this.e?"J":"Y"]=d;return Eu(this,e,this.g,f,c,g)}};l.bh=k("b");
|
||||
l.qb=function(a,b,c,d){if(!u(this.i))return null;b=gl(this,b);1==c||this.V&&u(this.F)||(c=1);var e=this.a;if(null!==e&&this.v==this.c&&e.d==b&&e.b==c&&Ke(e.p(),a))return e;e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};ec(e,this.b);a=a.slice();var f=(a[0]+a[2])/2,g=(a[1]+a[3])/2;if(1!=this.o){var h=this.o*(a[2]-a[0])/2,m=this.o*(a[3]-a[1])/2;a[0]=f-h;a[1]=g-m;a[2]=f+h;a[3]=g+m}var h=b/c,m=Math.ceil((a[2]-a[0])/h),n=Math.ceil((a[3]-a[1])/h);a[0]=f-h*m/2;a[2]=f+
|
||||
h*m/2;a[1]=g-h*n/2;a[3]=g+h*n/2;this.g[0]=m;this.g[1]=n;e=Eu(this,a,this.g,c,d,e);this.a=new jk(a,b,c,this.d,e,this.O);this.n=d;this.q=b;this.v=this.c;return this.a};
|
||||
function Eu(a,b,c,d,e,f){f[a.e?"CRS":"SRS"]=e.a;"STYLES"in a.b||(f.STYLES=new String(""));if(1!=d)switch(a.F){case "geoserver":f.FORMAT_OPTIONS="dpi:"+(90*d+0.5|0);break;case "mapserver":f.MAP_RESOLUTION=90*d;break;case "carmentaserver":case "qgis":f.DPI=90*d}f.WIDTH=c[0];f.HEIGHT=c[1];c=e.c;f.BBOX=(a.e&&"ne"==c.substr(0,2)?[b[1],b[0],b[3],b[2]]:b).join(",");return Mg(Og([a.i],f))}l.dh=function(a){a!=this.i&&(this.i=a,this.a=null,this.s())};l.eh=function(a){ec(this.b,a);Du(this);this.a=null;this.s()};
|
||||
function Du(a){a.e=0<=Ha(G(a.b,"VERSION","1.3.0"),"1.3")};function Fu(a){a=u(a)?a:{};tu.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new aq({defaultStyle:a.defaultStyle}),logo:a.logo,node:a.node,projection:a.projection,text:a.text,url:a.url,urls:a.urls})}E(Fu,tu);function Gu(a,b,c){return function(d,e,f){return c(a,b,d,e,f)}}function Hu(){};function Iu(a){fl.call(this,{extent:a.extent,projection:a.projection,resolutions:a.resolutions});this.o=u(a.crossOrigin)?a.crossOrigin:null;this.a=u(a.displayDpi)?a.displayDpi:96;this.g=u(a.url)?Gu(a.url,u(a.params)?a.params:{},y(this.i,this)):Hu;this.q=u(a.hidpi)?a.hidpi:!0;this.n=u(a.metersPerUnit)?a.metersPerUnit:1;this.e=u(a.ratio)?a.ratio:1;this.v=u(a.useOverlay)?a.useOverlay:!1;this.b=null}E(Iu,fl);
|
||||
Iu.prototype.qb=function(a,b,c,d){b=gl(this,b);c=this.q?c:1;var e=this.b;if(null!==e&&e.d==b&&e.b==c&&Ke(e.p(),a))return e;1!=this.e&&(a=a.slice(),Ye(a,this.e));d=this.g(a,[(a[2]-a[0])/b*c,(a[3]-a[1])/b*c],d);return this.b=e=u(d)?new jk(a,b,c,this.d,d,this.o):null};
|
||||
Iu.prototype.i=function(a,b,c,d){var e;e=this.n;var f=Ue(c),g=Se(c),h=d[0],m=d[1],n=0.0254/this.a;e=m*f>h*g?f*e/(h*n):g*e/(m*n);c=Qe(c);d={OPERATION:this.v?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.MapGuide source",CLIP:"1",SETDISPLAYDPI:this.a,SETDISPLAYWIDTH:Math.round(d[0]),SETDISPLAYHEIGHT:Math.round(d[1]),SETVIEWSCALE:e,SETVIEWCENTERX:c[0],SETVIEWCENTERY:c[1]};ec(d,b);return Mg(Og([a],d))};function Ju(a){var b=u(a.projection)?a.projection:"EPSG:3857",c=new Vt({maxZoom:u(a.maxZoom)?a.maxZoom:18});Tt.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,projection:b,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:Ot});this.e=c.c({extent:a.extent,wrapX:a.wrapX});u(a.tileUrlFunction)?this.Vb(a.tileUrlFunction):u(a.urls)?this.Vb(Mt(a.urls)):u(a.url)&&this.a(a.url)}E(Ju,Tt);Ju.prototype.Vb=function(a){Ju.C.Vb.call(this,Pt(this.e,a))};
|
||||
Ju.prototype.a=function(a){this.Vb(Mt(Qt(a)))};function Ku(a){a=u(a)?a:{};Ju.call(this,{attributions:u(a.attributions)?a.attributions:Lu,crossOrigin:u(a.crossOrigin)?a.crossOrigin:"anonymous",opaque:!0,maxZoom:a.maxZoom,tileLoadFunction:a.tileLoadFunction,url:u(a.url)?a.url:"//{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}E(Ku,Ju);
|
||||
var Mu=new eb({html:'Data \x26copy; \x3ca href\x3d"http://www.openstreetmap.org/"\x3eOpenStreetMap\x3c/a\x3e contributors, \x3ca href\x3d"http://www.openstreetmap.org/copyright"\x3eODbL\x3c/a\x3e'}),Nu=new eb({html:'Tiles \x26copy; \x3ca href\x3d"http://www.openstreetmap.org/"\x3eOpenStreetMap\x3c/a\x3e contributors, \x3ca href\x3d"http://creativecommons.org/licenses/by-sa/2.0/"\x3eCC BY-SA\x3c/a\x3e'}),Lu=[Nu,Mu];function Ou(a){a=u(a)?a:{};var b=Pu[a.layer];Ju.call(this,{attributions:b.attributions,crossOrigin:"anonymous",logo:"//developer.mapquest.com/content/osm/mq_logo.png",maxZoom:b.maxZoom,opaque:!0,tileLoadFunction:a.tileLoadFunction,url:"//otile{1-4}-s.mqcdn.com/tiles/1.0.0/"+a.layer+"/{z}/{x}/{y}.jpg"})}E(Ou,Ju);
|
||||
var Qu=new eb({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/" target\x3d"_blank"\x3eMapQuest\x3c/a\x3e'}),Pu={osm:{maxZoom:28,attributions:[Qu,Mu]},sat:{maxZoom:18,attributions:[Qu,new eb({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,attributions:[Qu,Mu]}};function Ru(){}E(Ru,Uo);function Su(a,b){var c=a.getAttribute("k"),d=a.getAttribute("v");b[b.length-1].Wb[c]=d}
|
||||
var Tu=[null],Uu=X(Tu,{nd:function(a,b){b[b.length-1].pb.push(a.getAttribute("ref"))},tag:Su},void 0),Wu=X(Tu,{node:function(a,b){var c=b[b.length-1],d=a.getAttribute("id"),e=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];c.Ud[d]=e;var f=Y({Wb:{}},Vu,a,b);Zb(f.Wb)||(e=new Af(e),e=new pe(e),e.b(d),e.U(f.Wb),c.features.push(e))},way:function(a,b){for(var c=a.getAttribute("id"),d=Y({pb:[],Wb:{}},Uu,a,b),e=b[b.length-1],f=[],g=0,h=d.pb.length;g<h;g++)Sa(f,G(e.Ud,d.pb[g]));d.pb[0]==
|
||||
d.pb[d.pb.length-1]?(g=new If(null),Jf(g,"XY",f,[f.length])):(g=new Ql(null),Rl(g,"XY",f));f=new pe(g);f.b(c);f.U(d.Wb);e.features.push(f)}},void 0),Vu=X(Tu,{tag:Su},void 0);Ru.prototype.vb=function(a){return"osm"==a.localName&&(a=Y({Ud:{},features:[]},Wu,a,[]),u(a.features))?a.features:[]};Ru.prototype.sc=function(){return lg("EPSG:4326")};Ru.prototype.ed=function(){return lg("EPSG:4326")};function Xu(a){a=u(a)?a:{};tu.call(this,{attributions:a.attributions,doc:a.doc,extent:a.extent,format:new Ru,logo:a.logo,node:a.node,projection:a.projection,reprojectTo:a.reprojectTo,text:a.text,url:a.url})}E(Xu,tu);var Yu={terrain:{ea:"jpg",opaque:!0},"terrain-background":{ea:"jpg",opaque:!0},"terrain-labels":{ea:"png",opaque:!1},"terrain-lines":{ea:"png",opaque:!1},"toner-background":{ea:"png",opaque:!0},toner:{ea:"png",opaque:!0},"toner-hybrid":{ea:"png",opaque:!1},"toner-labels":{ea:"png",opaque:!1},"toner-lines":{ea:"png",opaque:!1},"toner-lite":{ea:"png",opaque:!0},watercolor:{ea:"jpg",opaque:!0}},Zu={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}};
|
||||
function $u(a){var b=a.layer.indexOf("-"),b=-1==b?a.layer:a.layer.slice(0,b),c=Yu[a.layer];Ju.call(this,{attributions:av,crossOrigin:"anonymous",maxZoom:Zu[b].maxZoom,opaque:c.opaque,tileLoadFunction:a.tileLoadFunction,url:u(a.url)?a.url:"//{a-d}.tile.stamen.com/"+a.layer+"/{z}/{x}/{y}."+c.ea})}E($u,Ju);var av=[new eb({html:'Map tiles by \x3ca href\x3d"http://stamen.com/"\x3eStamen Design\x3c/a\x3e, under \x3ca href\x3d"http://creativecommons.org/licenses/by/3.0/"\x3eCC BY 3.0\x3c/a\x3e.'}),Mu];function bv(a,b){pg.call(this,a,2);this.f=a;this.e=b.ga(a.a);this.c={}}E(bv,pg);bv.prototype.b=function(a){a=u(a)?v(a):-1;if(a in this.c)return this.c[a];var b=this.e,c=pc("CANVAS");c.width=b;c.height=b;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b+0.5,b+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.f.toString(),b/2,b/2);return this.c[a]=c};
|
||||
function cv(a){sk.call(this,{extent:a.extent,opaque:!1,projection:a.projection,tileGrid:a.tileGrid});this.a=new Rt}E(cv,sk);cv.prototype.Zc=function(){return this.a.pa()>this.a.d};cv.prototype.ae=function(a){St(this.a,a)};cv.prototype.mb=function(a,b,c){var d=this.Ha(a,b,c);if(pn(this.a,d))return sn(this.a,d);a=new bv(new Za(a,b,c),this.tileGrid);un(this.a,d,a);return a};var dv=[];C("grid",function(a){dv.push(a)});function ev(a){Tt.call(this,{crossOrigin:a.crossOrigin,projection:lg("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});this.Ic=zt(a.url,{Ad:!0});Vs(this.Ic,this.a,null,this)}E(ev,Tt);
|
||||
ev.prototype.a=function(){var a=dv.pop(),b=lg("EPSG:4326"),c;if(u(a.bounds)){var d=Uf(b,this.l);this.M=c=$e(a.bounds,d)}var e=a.minzoom||0,d=a.maxzoom||22,f=new Vt({maxZoom:d,minZoom:e});this.tileGrid=f;this.tileUrlFunction=Pt(f.c({extent:c}),Mt(a.tiles));if(u(a.attribution)){b=u(c)?c:b.p();c={};for(var g;e<=d;++e)g=e.toString(),c[g]=[ok(f,b,e)];this.d=[new eb({html:a.attribution,tileRanges:c})]}Yj(this,1)};function fv(a){a=u(a)?a:{};var b=u(a.params)?a.params:{};Tt.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,opaque:!G(b,"TRANSPARENT",!0),projection:a.projection,tileGrid:a.tileGrid,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:y(this.ii,this)});var c=a.urls;!u(c)&&u(a.url)&&(c=Qt(a.url));this.F=c;this.i=u(a.gutter)?a.gutter:0;this.a=b;this.g=NaN;this.e=!0;this.j=a.serverType;this.o=u(a.hidpi)?a.hidpi:!0;this.n="";gv(this);this.v=Ee();hv(this)}
|
||||
E(fv,Tt);l=fv.prototype;
|
||||
l.fh=function(a,b,c,d){var e=this.g;if(!isNaN(this.g)){var f=this.tileGrid;null===f&&(f=tk(this,c));b=qk(f,a[0],a[1],b,!1,void 0);if(!(f.Wa().length<=b.a)){var g=f.a[b.a],h=nk(f,b,this.v),f=f.ga(b.a),m=this.i;0!==m&&(f+=2*m,h=He(h,g*m,h));1!=e&&(f=f*e+0.5|0);m={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:G(this.a,"LAYERS")};ec(m,this.a,d);d=Math.floor((h[3]-a[1])/(g/e));m[this.e?"I":"X"]=Math.floor((a[0]-h[0])/(g/e));m[this.e?"J":"Y"]=d;return iv(this,
|
||||
b,f,h,e,c,m)}}};l.gc=k("i");l.Ha=function(a,b,c){return this.n+fv.C.Ha.call(this,a,b,c)};l.gh=k("a");
|
||||
function iv(a,b,c,d,e,f,g){var h=a.F;if(u(h)&&0!=h.length){g.WIDTH=c;g.HEIGHT=c;g[a.e?"CRS":"SRS"]=f.a;"STYLES"in a.a||(g.STYLES=new String(""));if(1!=e)switch(a.j){case "geoserver":g.FORMAT_OPTIONS="dpi:"+(90*e+0.5|0);break;case "mapserver":g.MAP_RESOLUTION=90*e;break;case "carmentaserver":case "qgis":g.DPI=90*e}c=f.c;a.e&&"ne"==c.substr(0,2)&&(c=d[0],d[0]=d[1],d[1]=c,c=d[2],d[2]=d[3],d[3]=c);g.BBOX=d.join(",");return Mg(Og([1==h.length?h[0]:h[Pb(b.c(),a.F.length)]],g))}}
|
||||
l.Ob=function(a,b,c){a=fv.C.Ob.call(this,a,b,c);return 1!=b&&this.o&&u(this.j)?a*b+0.5|0:a};function gv(a){var b=0,c=[],d;for(d in a.a)c[b++]=d+"-"+a.a[d];a.n=c.join("/")}
|
||||
l.ii=function(a,b,c){var d=this.tileGrid;null===d&&(d=tk(this,c));if(!(d.Wa().length<=a.a)){1==b||this.o&&u(this.j)||(b=1);var e=d.a[a.a],f=nk(d,a,this.v),d=d.ga(a.a),g=this.i;0!==g&&(d+=2*g,f=He(f,e*g,f));e=this.p();if(null===e||Ve(f,e)&&!Ze(f,e))return 1!=b&&(d=d*b+0.5|0),e={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0},ec(e,this.a),this.g=b,iv(this,a,d,f,b,c,e)}};l.hh=function(a){ec(this.a,a);gv(this);hv(this);this.s()};
|
||||
function hv(a){a.e=0<=Ha(G(a.a,"VERSION","1.3.0"),"1.3")};function jv(a){a=u(a)?a:{};tu.call(this,{attributions:a.attributions,extent:a.extent,format:new Uq({defaultProjection:a.defaultProjection}),logo:a.logo,object:a.object,projection:a.projection,text:a.text,url:a.url})}E(jv,tu);function kv(a){this.c=a.matrixIds;lk.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}E(kv,lk);kv.prototype.i=k("c");
|
||||
function lv(a){var b=[],c=[],d=[],e=[],f=lg(a.supportedCRS).b();Va(a.matrixIds,function(a,b){return b.scaleDenominator-a.scaleDenominator});Ka(a.matrixIds,function(a){c.push(a.identifier);d.push(a.topLeftCorner);b.push(2.8E-4*a.scaleDenominator/f);e.push(a.tileWidth)});return new kv({origins:d,resolutions:b,matrixIds:c,tileSizes:e})};var mv="KVP";
|
||||
function nv(a){function b(a){a=e==mv?Mg(Og([a],g)):a.replace(/\{(\w+?)\}/g,function(a,b){return b in g?g[b]:a});return function(b){if(null!==b){var c={TileMatrix:f.c[b.a],TileCol:b.x,TileRow:b.y};ec(c,this.a);b=a;return b=e==mv?Mg(Og([b],c)):b.replace(/\{(\w+?)\}/g,function(a,b){return c[b]})}}}var c=u(a.version)?a.version:"1.0.0",d=u(a.format)?a.format:"image/jpeg";this.a=a.dimensions||{};this.e="";ov(this);var e=u(a.requestEncoding)?a.requestEncoding:mv,f=a.tileGrid,g={Layer:a.layer,style:a.style,
|
||||
Style:a.style,TileMatrixSet:a.matrixSet};e==mv&&ec(g,{Service:"WMTS",Request:"GetTile",Version:c,Format:d});c=Ot;d=a.urls;!u(d)&&u(a.url)&&(d=Qt(a.url));u(d)&&(c=Nt(La(d,b)));var h=Ee(),m=new Za(0,0,0),c=Pt(function(b,c){var d=this.tileGrid;if(d.Wa().length<=b.a)return null;var e=b.x,f=-b.y-1,g=nk(d,b),x=c.p(),w=u(a.extent)?a.extent:x;null!==w&&(c.j&&w[0]===x[0]&&w[2]===x[2])&&(g=Math.ceil((w[2]-w[0])/(g[2]-g[0])),e=Pb(e,g),m.a=b.a,m.x=e,m.y=b.y,g=nk(d,m,h));return!Ve(g,w)||Ze(g,w)?null:new Za(b.a,
|
||||
e,f)},c);Tt.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,projection:a.projection,tileGrid:f,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:c})}E(nv,Tt);nv.prototype.i=k("a");nv.prototype.Ha=function(a,b,c){return this.e+nv.C.Ha.call(this,a,b,c)};function ov(a){var b=0,c=[],d;for(d in a.a)c[b++]=d+"-"+a.a[d];a.e=c.join("/")}nv.prototype.g=function(a){ec(this.a,a);ov(this);this.s()};function pv(a){var b=u(a)?a:b;lk.call(this,{origin:[0,0],resolutions:b.resolutions})}E(pv,lk);pv.prototype.c=function(a){a=u(a)?a:{};var b=this.minZoom,c=this.maxZoom,d=new Za(0,0,0),e=null;if(u(a.extent)){var e=Array(c+1),f;for(f=0;f<=c;++f)e[f]=f<b?null:ok(this,a.extent,f)}return function(a,f,m){f=a.a;if(f<b||c<f)return null;var n=Math.pow(2,f),p=a.x;if(0>p||n<=p)return null;a=a.y;return a<-n||-1<a||null!==e&&(d.a=f,d.x=p,d.y=-a-1,!e[f].contains(d))?null:$a(f,p,-a-1,m)}};function qv(a){a=u(a)?a:{};var b=a.size,c=b[0],d=b[1],e=[],f=256;switch(u(a.tierSizeCalculation)?a.tierSizeCalculation:"default"){case "default":for(;c>f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),f+=f;break;case "truncated":for(;c>f||d>f;)e.push([Math.ceil(c/f),Math.ceil(d/f)]),c>>=1,d>>=1}e.push([1,1]);e.reverse();for(var f=[1],g=[0],d=1,c=e.length;d<c;d++)f.push(1<<d),g.push(e[d-1][0]*e[d-1][1]+g[d-1]);f.reverse();var f=new pv({resolutions:f}),h=a.url,b=Pt(f.c({extent:[0,0,b[0],b[1]]}),function(a){return null===
|
||||
a?void 0:h+"TileGroup"+((a.x+a.y*e[a.a][0]+g[a.a])/256|0)+"/"+a.a+"-"+a.x+"-"+a.y+".jpg"});Tt.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,logo:a.logo,tileClass:rv,tileGrid:f,tileUrlFunction:b})}E(qv,Tt);function rv(a,b,c,d,e){qg.call(this,a,b,c,d,e);this.i={}}E(rv,qg);
|
||||
rv.prototype.b=function(a){var b=u(a)?v(a).toString():"";if(b in this.i)return this.i[b];a=rv.C.b.call(this,a);if(2==this.state){if(256==a.width&&256==a.height)return this.i[b]=a;var c=pc("CANVAS");c.width=256;c.height=256;c.getContext("2d").drawImage(a,0,0);return this.i[b]=c}return a};function sv(a){a=u(a)?a:{};this.a=a.font;this.b=a.rotation;this.d=a.scale;this.f=a.text;this.i=a.textAlign;this.g=a.textBaseline;this.c=u(a.fill)?a.fill:null;this.e=u(a.stroke)?a.stroke:null;this.j=u(a.offsetX)?a.offsetX:0;this.k=u(a.offsetY)?a.offsetY:0}l=sv.prototype;l.gf=k("a");l.vh=k("c");l.wh=k("b");l.xh=k("d");l.yh=k("e");l.zh=k("f");l.zf=k("i");l.Af=k("g");C("ol.Attribution",eb);C("ol.BrowserFeature",I);I.DEVICE_PIXEL_RATIO=I.sd;I.HAS_CANVAS=I.ud;I.HAS_DEVICE_ORIENTATION=I.vd;I.HAS_GEOLOCATION=I.wd;I.HAS_TOUCH=I.xc;I.HAS_WEBGL=I.xd;C("ol.Collection",Id);Id.prototype.clear=Id.prototype.clear;Id.prototype.extend=Id.prototype.zg;Id.prototype.forEach=Id.prototype.forEach;Id.prototype.getArray=Id.prototype.Ag;Id.prototype.getAt=Id.prototype.Nb;Id.prototype.getLength=Id.prototype.Ka;Id.prototype.insertAt=Id.prototype.kc;Id.prototype.pop=Id.prototype.Vd;
|
||||
Id.prototype.push=Id.prototype.push;Id.prototype.remove=Id.prototype.remove;Id.prototype.removeAt=Id.prototype.fd;Id.prototype.setAt=Id.prototype.ei;C("ol.DeviceOrientation",Kd);C("ol.Feature",pe);pe.prototype.getGeometryName=pe.prototype.jf;pe.prototype.getId=pe.prototype.kf;pe.prototype.getStyle=pe.prototype.Gg;pe.prototype.getStyleFunction=pe.prototype.Hg;pe.prototype.setGeometryName=pe.prototype.k;pe.prototype.setId=pe.prototype.b;pe.prototype.setStyle=pe.prototype.j;C("ol.FeatureOverlay",ue);
|
||||
ue.prototype.addFeature=ue.prototype.Wd;ue.prototype.getFeatures=ue.prototype.Bg;ue.prototype.getStyle=ue.prototype.Cg;ue.prototype.getStyleFunction=ue.prototype.Dg;ue.prototype.removeFeature=ue.prototype.Wc;ue.prototype.setFeatures=ue.prototype.Ub;ue.prototype.setMap=ue.prototype.setMap;ue.prototype.setStyle=ue.prototype.Fg;C("ol.Geolocation",O);qg.prototype.getImage=qg.prototype.b;C("ol.Kinetic",Ag);C("ol.Map",T);T.prototype.addControl=T.prototype.Ke;T.prototype.addInteraction=T.prototype.Me;
|
||||
T.prototype.addLayer=T.prototype.Ne;T.prototype.addOverlay=T.prototype.Oe;T.prototype.beforeRender=T.prototype.oa;T.prototype.forEachFeatureAtPixel=T.prototype.Yd;T.prototype.getControls=T.prototype.df;T.prototype.getCoordinateFromPixel=T.prototype.fa;T.prototype.getEventCoordinate=T.prototype.Hd;T.prototype.getEventPixel=T.prototype.Mc;T.prototype.getInteractions=T.prototype.lf;T.prototype.getLayers=T.prototype.Fe;T.prototype.getOverlays=T.prototype.wf;T.prototype.getPixelFromCoordinate=T.prototype.g;
|
||||
T.prototype.getViewport=T.prototype.Df;T.prototype.removeControl=T.prototype.Xh;T.prototype.removeInteraction=T.prototype.Yh;T.prototype.removeLayer=T.prototype.Zh;T.prototype.removeOverlay=T.prototype.$h;T.prototype.render=T.prototype.K;T.prototype.renderSync=T.prototype.bi;T.prototype.updateSize=T.prototype.M;Ki.prototype.preventDefault=Ki.prototype.preventDefault;Ki.prototype.stopPropagation=Ki.prototype.za;C("ol.Object",N);N.prototype.bindTo=N.prototype.Ue;N.prototype.get=N.prototype.t;
|
||||
N.prototype.getProperties=N.prototype.kb;N.prototype.notify=N.prototype.Vc;N.prototype.set=N.prototype.u;N.prototype.setValues=N.prototype.U;N.prototype.unbind=N.prototype.kd;N.prototype.unbindAll=N.prototype.qi;C("ol.Observable",yd);yd.prototype.dispatchChangeEvent=yd.prototype.s;yd.prototype.on=yd.prototype.Dh;yd.prototype.once=yd.prototype.Jh;yd.prototype.un=yd.prototype.oi;yd.prototype.unByKey=yd.prototype.pi;C("ol.Overlay",Cn);pg.prototype.getTileCoord=pg.prototype.j;Za.prototype.getZXY=Za.prototype.b;
|
||||
Za.prototype.hash=Za.prototype.c;C("ol.View2D",Q);Q.prototype.calculateExtent=Q.prototype.r;Q.prototype.centerOn=Q.prototype.We;Q.prototype.constrainResolution=Q.prototype.constrainResolution;Q.prototype.constrainRotation=Q.prototype.constrainRotation;Q.prototype.fitExtent=Q.prototype.Gd;Q.prototype.fitGeometry=Q.prototype.Ze;Q.prototype.getView2D=Q.prototype.N;Q.prototype.getZoom=Q.prototype.Ff;Q.prototype.setZoom=Q.prototype.v;
|
||||
C("ol.animation.bounce",function(a){var b=a.resolution,c=u(a.start)?a.start:wa(),d=u(a.duration)?a.duration:1E3,e=u(a.easing)?a.easing:wg;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[0]+=1,!0;if(g.time<c+d){var h=e((g.time-c)/d),m=b-g.view2DState.resolution;g.animate=!0;g.view2DState.resolution+=h*m;g.viewHints[0]+=1;return!0}return!1}});C("ol.animation.pan",xg);C("ol.animation.rotate",yg);C("ol.animation.zoom",zg);C("ol.color.asArray",function(a){return ha(a)?a:fe(a)});
|
||||
C("ol.color.asString",de);C("ol.control.Attribution",rj);rj.prototype.setMap=rj.prototype.setMap;C("ol.control.Control",qj);qj.prototype.getMap=qj.prototype.O;qj.prototype.setMap=qj.prototype.setMap;C("ol.control.FullScreen",In);C("ol.control.Logo",sj);sj.prototype.setMap=sj.prototype.setMap;C("ol.control.MousePosition",Jn);Jn.prototype.setMap=Jn.prototype.setMap;C("ol.control.ScaleLine",Ln);Ln.prototype.setMap=Ln.prototype.setMap;C("ol.control.Zoom",tj);tj.prototype.setMap=tj.prototype.setMap;
|
||||
C("ol.control.ZoomSlider",$n);C("ol.control.ZoomToExtent",eo);C("ol.control.defaults",uj);C("ol.coordinate.createStringXY",function(a){return function(b){return Ce(b,a)}});C("ol.coordinate.format",ye);C("ol.coordinate.fromProjectedArray",function(a,b){var c=b.charAt(0);return"n"===c||"s"===c?[a[1],a[0]]:a});C("ol.coordinate.rotate",Ae);C("ol.coordinate.toStringHDMS",function(a){return u(a)?xe(a[1],"NS")+" "+xe(a[0],"EW"):""});C("ol.coordinate.toStringXY",Ce);C("ol.dom.Input",fo);
|
||||
C("ol.easing.bounce",function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a});C("ol.easing.easeIn",function(a){return a*a*a});C("ol.easing.easeOut",tg);C("ol.easing.elastic",function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1});C("ol.easing.inAndOut",ug);C("ol.easing.linear",vg);C("ol.easing.upAndDown",wg);
|
||||
C("ol.events.condition.altKeyOnly",function(a){a=a.a;return a.$&&!a.sb&&!a.ya});C("ol.events.condition.altShiftKeysOnly",Aj);C("ol.events.condition.always",pd);C("ol.events.condition.never",od);C("ol.events.condition.noModifierKeys",Cj);C("ol.events.condition.platformModifierKeyOnly",function(a){a=a.a;return!a.$&&a.sb&&!a.ya});C("ol.events.condition.shiftKeyOnly",Dj);C("ol.events.condition.targetNotEditable",Ej);C("ol.extent.boundingExtent",De);C("ol.extent.buffer",He);
|
||||
C("ol.extent.containsCoordinate",function(a,b){return a[0]<=b[0]&&b[0]<=a[2]&&a[1]<=b[1]&&b[1]<=a[3]});C("ol.extent.containsExtent",Ke);C("ol.extent.createEmpty",Ee);C("ol.extent.equals",Me);C("ol.extent.extend",Ne);C("ol.extent.getBottomLeft",Pe);C("ol.extent.getBottomRight",function(a){return[a[2],a[1]]});C("ol.extent.getCenter",Qe);C("ol.extent.getHeight",Se);C("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});C("ol.extent.getTopLeft",Te);
|
||||
C("ol.extent.getTopRight",function(a){return[a[2],a[3]]});C("ol.extent.getWidth",Ue);C("ol.extent.intersects",Ve);C("ol.extent.isEmpty",We);C("ol.extent.transform",$e);C("ol.format.GPX",gp);gp.prototype.readFeature=gp.prototype.ub;gp.prototype.readFeatures=gp.prototype.ua;gp.prototype.readProjection=gp.prototype.ja;gp.prototype.writeFeatures=gp.prototype.wc;C("ol.format.GeoJSON",Op);Op.prototype.readFeature=Op.prototype.ub;Op.prototype.readFeatures=Op.prototype.ua;Op.prototype.readGeometry=Op.prototype.cd;
|
||||
Op.prototype.readProjection=Op.prototype.ja;Op.prototype.writeFeature=Op.prototype.qd;Op.prototype.writeFeatures=Op.prototype.wc;Op.prototype.writeGeometry=Op.prototype.rd;C("ol.format.IGC",Xp);Xp.prototype.readFeature=Xp.prototype.ub;Xp.prototype.readFeatures=Xp.prototype.ua;Xp.prototype.readProjection=Xp.prototype.ja;C("ol.format.KML",aq);aq.prototype.readFeature=aq.prototype.ub;aq.prototype.readFeatures=aq.prototype.ua;aq.prototype.readName=aq.prototype.Th;aq.prototype.readProjection=aq.prototype.ja;
|
||||
C("ol.format.TopoJSON",Uq);Uq.prototype.readFeatures=Uq.prototype.ua;Uq.prototype.readProjection=Uq.prototype.ja;C("ol.format.WFS",as);as.prototype.readFeatureCollectionMetadata=as.prototype.d;as.prototype.readFeatures=as.prototype.ua;as.prototype.readTransactionResponse=as.prototype.f;as.prototype.writeGetFeature=as.prototype.i;as.prototype.writeTransaction=as.prototype.g;C("ol.format.WMSCapabilities",rs);rs.prototype.read=rs.prototype.a;C("ol.geom.Circle",Hl);Hl.prototype.clone=Hl.prototype.I;
|
||||
Hl.prototype.getCenter=Hl.prototype.Yc;Hl.prototype.getExtent=Hl.prototype.p;Hl.prototype.getRadius=Hl.prototype.$d;Hl.prototype.getSimplifiedGeometry=Hl.prototype.Xa;Hl.prototype.getType=Hl.prototype.B;Hl.prototype.setCenter=Hl.prototype.Mg;Hl.prototype.setCenterAndRadius=Hl.prototype.oe;Hl.prototype.setRadius=Hl.prototype.gi;Hl.prototype.transform=Hl.prototype.transform;C("ol.geom.Geometry",Ld);Ld.prototype.getClosestPoint=Ld.prototype.q;Ld.prototype.getType=Ld.prototype.B;
|
||||
C("ol.geom.GeometryCollection",Jl);Jl.prototype.clone=Jl.prototype.I;Jl.prototype.getExtent=Jl.prototype.p;Jl.prototype.getGeometries=Jl.prototype.hf;Jl.prototype.getSimplifiedGeometry=Jl.prototype.Xa;Jl.prototype.getType=Jl.prototype.B;Jl.prototype.setGeometries=Jl.prototype.qe;C("ol.geom.LineString",Ql);Ql.prototype.appendCoordinate=Ql.prototype.Pe;Ql.prototype.clone=Ql.prototype.I;Ql.prototype.getCoordinateAtM=Ql.prototype.Ng;Ql.prototype.getCoordinates=Ql.prototype.w;Ql.prototype.getLength=Ql.prototype.Og;
|
||||
Ql.prototype.getType=Ql.prototype.B;Ql.prototype.setCoordinates=Ql.prototype.J;C("ol.geom.LinearRing",yf);yf.prototype.clone=yf.prototype.I;yf.prototype.getArea=yf.prototype.Pg;yf.prototype.getCoordinates=yf.prototype.w;yf.prototype.getType=yf.prototype.B;yf.prototype.setCoordinates=yf.prototype.J;C("ol.geom.MultiLineString",Sl);Sl.prototype.appendLineString=Sl.prototype.Qe;Sl.prototype.clone=Sl.prototype.I;Sl.prototype.getCoordinateAtM=Sl.prototype.Qg;Sl.prototype.getCoordinates=Sl.prototype.w;
|
||||
Sl.prototype.getLineString=Sl.prototype.sf;Sl.prototype.getLineStrings=Sl.prototype.Pc;Sl.prototype.getType=Sl.prototype.B;Sl.prototype.setCoordinates=Sl.prototype.J;C("ol.geom.MultiPoint",Vl);Vl.prototype.appendPoint=Vl.prototype.Se;Vl.prototype.clone=Vl.prototype.I;Vl.prototype.getCoordinates=Vl.prototype.w;Vl.prototype.getPoint=Vl.prototype.xf;Vl.prototype.getPoints=Vl.prototype.Jd;Vl.prototype.getType=Vl.prototype.B;Vl.prototype.setCoordinates=Vl.prototype.J;C("ol.geom.MultiPolygon",Wl);
|
||||
Wl.prototype.appendPolygon=Wl.prototype.Te;Wl.prototype.clone=Wl.prototype.I;Wl.prototype.getArea=Wl.prototype.Rg;Wl.prototype.getCoordinates=Wl.prototype.w;Wl.prototype.getInteriorPoints=Wl.prototype.nf;Wl.prototype.getPolygon=Wl.prototype.yf;Wl.prototype.getPolygons=Wl.prototype.Kd;Wl.prototype.getType=Wl.prototype.B;Wl.prototype.setCoordinates=Wl.prototype.J;C("ol.geom.Point",Af);Af.prototype.clone=Af.prototype.I;Af.prototype.getCoordinates=Af.prototype.w;Af.prototype.getType=Af.prototype.B;
|
||||
Af.prototype.setCoordinates=Af.prototype.J;C("ol.geom.Polygon",If);If.prototype.appendLinearRing=If.prototype.Re;If.prototype.clone=If.prototype.I;If.prototype.getArea=If.prototype.Sg;If.prototype.getCoordinates=If.prototype.w;If.prototype.getInteriorPoint=If.prototype.mf;If.prototype.getLinearRing=If.prototype.tf;If.prototype.getLinearRings=If.prototype.Id;If.prototype.getType=If.prototype.B;If.prototype.setCoordinates=If.prototype.J;C("ol.geom.SimpleGeometry",df);df.prototype.getExtent=df.prototype.p;
|
||||
df.prototype.getFirstCoordinate=df.prototype.ff;df.prototype.getLastCoordinate=df.prototype.of;df.prototype.getLayout=df.prototype.pf;df.prototype.getSimplifiedGeometry=df.prototype.Xa;df.prototype.transform=df.prototype.transform;C("ol.inherits",E);C("ol.interaction.DoubleClickZoom",zj);C("ol.interaction.DragAndDrop",bt);C("ol.interaction.DragBox",Pj);Pj.prototype.getGeometry=Pj.prototype.L;C("ol.interaction.DragPan",Ij);C("ol.interaction.DragRotate",Jj);C("ol.interaction.DragRotateAndZoom",ft);
|
||||
C("ol.interaction.DragZoom",Qj);C("ol.interaction.Draw",ht);C("ol.interaction.KeyboardPan",Rj);C("ol.interaction.KeyboardZoom",Sj);C("ol.interaction.Modify",rt);C("ol.interaction.MouseWheelZoom",Tj);C("ol.interaction.PinchRotate",Uj);C("ol.interaction.PinchZoom",Vj);C("ol.interaction.Select",ut);ut.prototype.getFeatures=ut.prototype.f;ut.prototype.setMap=ut.prototype.setMap;C("ol.interaction.defaults",Wj);C("ol.layer.Group",ak);C("ol.layer.Heatmap",xt);C("ol.layer.Image",Ok);C("ol.layer.Layer",hk);
|
||||
hk.prototype.getSource=hk.prototype.Ug;C("ol.layer.Tile",Pk);C("ol.layer.Vector",Qk);Qk.prototype.getStyle=Qk.prototype.Da;Qk.prototype.getStyleFunction=Qk.prototype.Ea;Qk.prototype.setStyle=Qk.prototype.g;C("ol.proj.METERS_PER_UNIT",Pf);C("ol.proj.Projection",Rf);Rf.prototype.getCode=Rf.prototype.g;Rf.prototype.getExtent=Rf.prototype.p;Rf.prototype.getUnits=Rf.prototype.l;C("ol.proj.addProjection",jg);C("ol.proj.common.add",gk);C("ol.proj.configureProj4jsProjection",function(a){return Vf(a)});
|
||||
C("ol.proj.get",lg);C("ol.proj.getTransform",mg);C("ol.proj.getTransformFromProjections",Uf);C("ol.proj.transform",function(a,b,c){return mg(b,c)(a)});C("ol.proj.transformWithProjections",function(a,b,c){return Uf(b,c)(a)});Rk.prototype.drawAsync=Rk.prototype.bc;Rk.prototype.drawCircleGeometry=Rk.prototype.Hb;Rk.prototype.drawFeature=Rk.prototype.Jc;Rk.prototype.drawLineStringGeometry=Rk.prototype.Ib;Rk.prototype.drawMultiLineStringGeometry=Rk.prototype.Jb;Rk.prototype.drawMultiPointGeometry=Rk.prototype.Kb;
|
||||
Rk.prototype.drawPointGeometry=Rk.prototype.Lb;Rk.prototype.drawPolygonGeometry=Rk.prototype.ib;Rk.prototype.setFillStrokeStyle=Rk.prototype.la;Rk.prototype.setImageStyle=Rk.prototype.wb;Rk.prototype.setTextStyle=Rk.prototype.ba;C("ol.source.BingMaps",Wt);Wt.TOS_ATTRIBUTION=Xt;C("ol.source.GPX",vu);C("ol.source.GeoJSON",wu);C("ol.source.IGC",xu);C("ol.source.ImageCanvas",zu);C("ol.source.ImageStatic",Au);C("ol.source.ImageVector",Bu);C("ol.source.ImageWMS",Cu);Cu.prototype.getGetFeatureInfoUrl=Cu.prototype.ah;
|
||||
Cu.prototype.getParams=Cu.prototype.bh;Cu.prototype.setUrl=Cu.prototype.dh;Cu.prototype.updateParams=Cu.prototype.eh;C("ol.source.KML",Fu);C("ol.source.MapGuide",Iu);C("ol.source.MapQuest",Ou);C("ol.source.OSM",Ku);Ku.DATA_ATTRIBUTION=Mu;Ku.TILE_ATTRIBUTION=Nu;C("ol.source.OSMXML",Xu);Xj.prototype.getExtent=Xj.prototype.p;Xj.prototype.getState=Xj.prototype.Z;C("ol.source.Stamen",$u);sk.prototype.getSupportedPixelRatio=sk.prototype.Ld;sk.prototype.getTileGrid=sk.prototype.Bf;
|
||||
C("ol.source.TileDebug",cv);C("ol.source.TileImage",Tt);C("ol.source.TileJSON",ev);C("ol.source.TileWMS",fv);fv.prototype.getGetFeatureInfoUrl=fv.prototype.fh;fv.prototype.getParams=fv.prototype.gh;fv.prototype.updateParams=fv.prototype.hh;C("ol.source.TopoJSON",jv);C("ol.source.Vector",qm);qm.prototype.addFeature=qm.prototype.be;qm.prototype.addFeatures=qm.prototype.Le;qm.prototype.forEachFeature=qm.prototype.$e;qm.prototype.forEachFeatureInExtent=qm.prototype.ec;
|
||||
qm.prototype.getClosestFeatureToCoordinate=qm.prototype.cf;qm.prototype.getExtent=qm.prototype.p;qm.prototype.getFeatures=qm.prototype.ih;qm.prototype.getFeaturesAtCoordinate=qm.prototype.ef;qm.prototype.removeFeature=qm.prototype.jh;C("ol.source.VectorFile",tu);C("ol.source.WMTS",nv);
|
||||
C("ol.source.WMTS.optionsFromCapabilities",function(a,b){var c=Na(a.contents.layers,function(a){return a.identifier==b}),d=c.tileMatrixSetLinks[0].tileMatrixSet,e=c.formats[0],f=Oa(c.styles,function(a){return a.isDefault});0>f&&(f=0);var f=c.styles[f].identifier,g={};Ka(c.dimensions,function(a){var b=a.identifier,c=a["default"];u(c)||(c=a.values[0]);g[b]=c});var h=a.contents.tileMatrixSets[d],m=lv(h),h=lg(h.supportedCRS),n=a.operationsMetadata.GetTile.dcp.http.get,p,q;switch(Yb(n[0].constraints.GetEncoding.allowedValues)[0]){case "REST":case "RESTful":q=
|
||||
"REST";p=c.resourceUrls.tile[e];break;case "KVP":q=mv,p=[],Ka(n,function(a){a.constraints.GetEncoding.allowedValues.hasOwnProperty(mv)&&p.push(a.url)})}return{urls:p,layer:b,matrixSet:d,format:e,projection:h,requestEncoding:q,tileGrid:m,style:f,dimensions:g}});nv.prototype.getDimensions=nv.prototype.i;nv.prototype.updateDimensions=nv.prototype.g;C("ol.source.XYZ",Ju);Ju.prototype.setUrl=Ju.prototype.a;C("ol.source.Zoomify",qv);C("ol.style.Circle",ne);ne.prototype.getAnchor=ne.prototype.Mb;
|
||||
ne.prototype.getFill=ne.prototype.kh;ne.prototype.getImage=ne.prototype.Sb;ne.prototype.getRadius=ne.prototype.lh;ne.prototype.getSize=ne.prototype.rb;ne.prototype.getStroke=ne.prototype.mh;C("ol.style.Fill",ke);ke.prototype.getColor=ke.prototype.c;C("ol.style.Icon",Dk);Dk.prototype.getAnchor=Dk.prototype.Mb;Dk.prototype.getImage=Dk.prototype.Sb;Dk.prototype.getSize=Dk.prototype.rb;Dk.prototype.getSrc=Dk.prototype.nh;C("ol.style.Image",le);le.prototype.getRotation=le.prototype.P;
|
||||
le.prototype.getScale=le.prototype.o;C("ol.style.Stroke",me);me.prototype.getColor=me.prototype.oh;me.prototype.getLineCap=me.prototype.qf;me.prototype.getLineDash=me.prototype.ph;me.prototype.getLineJoin=me.prototype.rf;me.prototype.getMiterLimit=me.prototype.vf;me.prototype.getWidth=me.prototype.qh;C("ol.style.Style",oe);oe.prototype.getFill=oe.prototype.rh;oe.prototype.getImage=oe.prototype.sh;oe.prototype.getStroke=oe.prototype.th;oe.prototype.getText=oe.prototype.uh;oe.prototype.getZIndex=oe.prototype.Ef;
|
||||
C("ol.style.Text",sv);sv.prototype.getFill=sv.prototype.vh;sv.prototype.getFont=sv.prototype.gf;sv.prototype.getRotation=sv.prototype.wh;sv.prototype.getScale=sv.prototype.xh;sv.prototype.getStroke=sv.prototype.yh;sv.prototype.getText=sv.prototype.zh;sv.prototype.getTextAlign=sv.prototype.zf;sv.prototype.getTextBaseline=sv.prototype.Af;C("ol.tilegrid.TileGrid",lk);lk.prototype.getMinZoom=lk.prototype.uf;lk.prototype.getOrigin=lk.prototype.Tb;lk.prototype.getResolutions=lk.prototype.Wa;
|
||||
lk.prototype.getTileSize=lk.prototype.ga;C("ol.tilegrid.WMTS",kv);kv.prototype.getMatrixIds=kv.prototype.i;C("ol.tilegrid.XYZ",Vt);C("ol.tilegrid.Zoomify",pv);C("ol.webgl.Context",vn);vn.prototype.getGL=vn.prototype.Ah;vn.prototype.useProgram=vn.prototype.$c;})();
|
||||
Reference in New Issue
Block a user