Skip to content

Instantly share code, notes, and snippets.

@bartvde
Created November 4, 2013 19:00
Show Gist options
  • Save bartvde/7307520 to your computer and use it in GitHub Desktop.
Save bartvde/7307520 to your computer and use it in GitHub Desktop.
(function(){function h(a){return function(){return this[a]}}function ba(a){return function(){return a}}var m,ca=ca||{},p=this;function ea(){}function fa(a){a.ra=function(){return a.Rd?a.Rd:a.Rd=new a}}
function ga(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 r(a){return void 0!==a}function ia(a){return"array"==ga(a)}function ja(a){var b=ga(a);return"array"==b||"object"==b&&"number"==typeof a.length}function u(a){return"string"==typeof a}function ka(a){return"number"==typeof a}function ma(a){return"function"==ga(a)}function na(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function v(a){return a[oa]||(a[oa]=++pa)}
var oa="closure_uid_"+(1E9*Math.random()>>>0),pa=0;function qa(a,b,c){return a.call.apply(a.bind,arguments)}function ra(a,b,c){if(!a)throw Error();if(2<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")?qa:ra;return y.apply(null,arguments)}function sa(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 ta=Date.now||function(){return+new Date};
function C(a,b){var c=a.split("."),d=p;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.H=b.prototype;a.prototype=new c;a.prototype.constructor=a};function ua(a){Error.captureStackTrace?Error.captureStackTrace(this,ua):this.stack=Error().stack||"";a&&(this.message=String(a))}E(ua,Error);ua.prototype.name="CustomError";function wa(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function xa(a){if(!ya.test(a))return a;-1!=a.indexOf("\x26")&&(a=a.replace(za,"\x26amp;"));-1!=a.indexOf("\x3c")&&(a=a.replace(Aa,"\x26lt;"));-1!=a.indexOf("\x3e")&&(a=a.replace(Ba,"\x26gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ca,"\x26quot;"));return a}var za=/&/g,Aa=/</g,Ba=/>/g,Ca=/\"/g,ya=/[&<>\"]/;
function Da(a){a=r(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);b=Math.max(0,2-b);return Array(b+1).join("0")+a};var Fa=Array.prototype,Ga=Fa.indexOf?function(a,b,c){return Fa.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(u(a))return u(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Ja=Fa.forEach?function(a,b,c){Fa.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Ka=Fa.filter?function(a,b,c){return Fa.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=
0,g=u(a)?a.split(""):a,k=0;k<d;k++)if(k in g){var l=g[k];b.call(c,l,k,a)&&(e[f++]=l)}return e},La=Fa.map?function(a,b,c){return Fa.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=u(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ma=Fa.some?function(a,b,c){return Fa.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=u(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:u(a)?a.charAt(c):a[c]}function Oa(a,b,c){for(var d=a.length,e=u(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=Ga(a,b),d;(d=0<=c)&&Fa.splice.call(a,c,1);return d}function Qa(a){return Fa.concat.apply(Fa,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,c,d){Fa.splice.apply(a,Ta(arguments,1))}
function Ta(a,b,c){return 2>=arguments.length?Fa.slice.call(a,b):Fa.slice.call(a,b,c)}function Va(a,b){Fa.sort.call(a,b||Wa)}function Wa(a,b){return a>b?1:a<b?-1:0}function Ya(a,b){for(var c={},d=0;d<a.length;d++){var e=a[d],f=b.call(void 0,e,d,a);r(f)&&(c[f]||(c[f]=[])).push(e)}return c};function Za(a,b,c){this.z=a;this.x=b;this.y=c}function $a(a){a=a.split("/");a=La(a,function(a){return parseInt(a,10)});return new Za(a[0],a[1],a[2])}function ab(a,b,c){return a+"/"+b+"/"+c}Za.prototype.a=function(a){return r(a)?(a[0]=this.z,a[1]=this.x,a[2]=this.y,a):[this.z,this.x,this.y]};function bb(a){var b=Array(a.z),c=1<<a.z-1,d,e;for(d=0;d<a.z;++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.z,this.x,this.y)};function cb(a,b,c,d){this.a=a;this.d=b;this.c=c;this.b=d}function db(a,b,c,d,e){return r(e)?(e.a=a,e.d=b,e.c=c,e.b=d,e):new cb(a,b,c,d)}cb.prototype.contains=function(a){return this.a<=a.x&&a.x<=this.d&&this.c<=a.y&&a.y<=this.b};function eb(a){this.b=a.html;this.a=r(a.tileRanges)?a.tileRanges:null};function fb(){0!=gb&&(this.Yg=Error().stack,hb[v(this)]=this)}var gb=0,hb={};fb.prototype.Yb=!1;fb.prototype.mc=function(){if(!this.Yb&&(this.Yb=!0,this.A(),0!=gb)){var a=v(this);delete hb[a]}};function ib(a,b){var c=sa(jb,b);a.G||(a.G=[]);a.G.push(y(c,void 0))}fb.prototype.A=function(){if(this.G)for(;this.G.length;)this.G.shift()()};function jb(a){a&&"function"==typeof a.mc&&a.mc()};function kb(a,b){this.type=a;this.c=this.target=b}m=kb.prototype;m.mc=function(){};m.ab=!1;m.Te=!1;m.ee=!0;m.nb=function(){this.ab=!0};m.T=function(){this.Te=!0;this.ee=!1};function lb(a){a.nb()}function mb(a){a.T()};var nb,ob,pb,qb,rb,ub,vb;function wb(){return p.navigator?p.navigator.userAgent:null}function xb(){return p.navigator}qb=pb=ob=nb=!1;var yb;if(yb=wb()){var zb=xb();nb=0==yb.lastIndexOf("Opera",0);ob=!nb&&(-1!=yb.indexOf("MSIE")||-1!=yb.indexOf("Trident"));pb=!nb&&-1!=yb.indexOf("WebKit");qb=!nb&&!pb&&!ob&&"Gecko"==zb.product}var Ab=nb,F=ob,Bb=qb,Db=pb,Eb,Fb=xb();Eb=Fb&&Fb.platform||"";rb=-1!=Eb.indexOf("Mac");ub=-1!=Eb.indexOf("Win");vb=-1!=Eb.indexOf("Linux");
var Hb=!!xb()&&-1!=(xb().appVersion||"").indexOf("X11");function Ib(){var a=p.document;return a?a.documentMode:void 0}var Jb;a:{var Kb="",Lb;if(Ab&&p.opera)var Mb=p.opera.version,Kb="function"==typeof Mb?Mb():Mb;else if(Bb?Lb=/rv\:([^\);]+)(\)|;)/:F?Lb=/\b(?:MSIE|rv)\s+([^\);]+)(\)|;)/:Db&&(Lb=/WebKit\/(\S+)/),Lb)var Nb=Lb.exec(wb()),Kb=Nb?Nb[1]:"";if(F){var Ob=Ib();if(Ob>parseFloat(Kb)){Jb=String(Ob);break a}}Jb=Kb}var Pb={};
function Qb(a){var b;if(!(b=Pb[a])){b=0;for(var c=wa(String(Jb)).split("."),d=wa(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",k=d[f]||"",l=RegExp("(\\d*)(\\D*)","g"),n=RegExp("(\\d*)(\\D*)","g");do{var q=l.exec(g)||["","",""],s=n.exec(k)||["","",""];if(0==q[0].length&&0==s[0].length)break;b=((0==q[1].length?0:parseInt(q[1],10))<(0==s[1].length?0:parseInt(s[1],10))?-1:(0==q[1].length?0:parseInt(q[1],10))>(0==s[1].length?0:parseInt(s[1],10))?1:0)||((0==q[2].length)<
(0==s[2].length)?-1:(0==q[2].length)>(0==s[2].length)?1:0)||(q[2]<s[2]?-1:q[2]>s[2]?1:0)}while(0==b)}b=Pb[a]=0<=b}return b}var Rb=p.document,Sb=Rb&&F?Ib()||("CSS1Compat"==Rb.compatMode?parseInt(Jb,10):5):void 0;var Tb=!F||F&&9<=Sb,Ub=!F||F&&9<=Sb,Vb=F&&!Qb("9");!Db||Qb("528");Bb&&Qb("1.9b")||F&&Qb("8")||Ab&&Qb("9.5")||Db&&Qb("528");Bb&&!Qb("8")||F&&Qb("9");function Wb(a){Wb[" "](a);return a}Wb[" "]=ea;function Xb(a,b){a&&Yb(this,a,b)}E(Xb,kb);var Zb=[1,4,2];m=Xb.prototype;m.target=null;m.Se=null;m.Qe=0;m.Re=0;m.clientX=0;m.clientY=0;m.dd=0;m.ed=0;m.Pe=0;m.Na=0;m.bd=0;m.Pb=!1;m.sa=!1;m.Oa=!1;m.cd=!1;m.Fb=!1;m.aa=null;
function Yb(a,b,c){var d=a.type=b.type;kb.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(Bb){var e;a:{try{Wb(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.Se=c;a.Qe=Db||void 0!==b.offsetX?b.offsetX:b.layerX;a.Re=Db||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.dd=b.screenX||0;a.ed=b.screenY||0;a.Pe=b.button;a.Na=
b.keyCode||0;a.bd=b.charCode||("keypress"==d?b.keyCode:0);a.Pb=b.ctrlKey;a.sa=b.altKey;a.Oa=b.shiftKey;a.cd=b.metaKey;a.Fb=rb?b.metaKey:b.ctrlKey;a.state=b.state;a.aa=b;b.defaultPrevented&&a.T();delete a.ab}function $b(a){return(Tb?0==a.aa.button:"click"==a.type?!0:!!(a.aa.button&Zb[0]))&&!(Db&&rb&&a.Pb)}m.nb=function(){Xb.H.nb.call(this);this.aa.stopPropagation?this.aa.stopPropagation():this.aa.cancelBubble=!0};
m.T=function(){Xb.H.T.call(this);var a=this.aa;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Vb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};m.De=h("aa");var ac="closure_listenable_"+(1E6*Math.random()|0);function ic(a){return!(!a||!a[ac])}var jc=0;function kc(a,b,c,d,e,f){this.Ia=a;this.a=b;this.src=c;this.type=d;this.capture=!!e;this.pb=f;this.key=++jc;this.Ra=this.xb=!1}function lc(a){a.Ra=!0;a.Ia=null;a.a=null;a.src=null;a.pb=null};function mc(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function nc(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function oc(a){var b=0,c;for(c in a)b++;return b}function pc(a){for(var b in a)return b}function qc(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function rc(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function sc(a){var b=tc,c;for(c in b)if(a.call(void 0,b[c],c,b))return c}function uc(a){for(var b in a)return!1;return!0}
function xc(a){var b={},c;for(c in a)b[c]=a[c];return b}var yc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function zc(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<yc.length;f++)c=yc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Ac={},Bc={},Cc={},Dc={};function H(a,b,c,d,e){if(ia(b)){for(var f=0;f<b.length;f++)H(a,b[f],c,d,e);return null}c=Ec(c);return ic(a)?a.Pa(b,c,d,e):Fc(a,b,c,!1,d,e)}
function Fc(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");e=!!e;var g=Bc;b in g||(g[b]={u:0});g=g[b];e in g||(g[e]={u:0},g.u++);var g=g[e],k=v(a),l;if(g[k]){l=g[k];for(var n=0;n<l.length;n++)if(g=l[n],g.Ia==c&&g.pb==f){if(g.Ra)break;d||(l[n].xb=!1);return l[n]}}else l=g[k]=[],g.u++;n=Gc();g=new kc(c,n,a,b,e,f);g.xb=d;n.src=a;n.Ia=g;l.push(g);Cc[k]||(Cc[k]=[]);Cc[k].push(g);a.addEventListener?a.addEventListener(b,n,e):a.attachEvent(b in Dc?Dc[b]:Dc[b]="on"+b,n);return Ac[g.key]=g}
function Gc(){var a=Hc,b=Ub?function(c){return a.call(b.src,b.Ia,c)}:function(c){c=a.call(b.src,b.Ia,c);if(!c)return c};return b}function Ic(a,b,c,d,e){if(ia(b)){for(var f=0;f<b.length;f++)Ic(a,b[f],c,d,e);return null}c=Ec(c);return ic(a)?a.Da.add(b,c,!0,d,e):Fc(a,b,c,!0,d,e)}function Jc(a,b,c,d,e){if(ia(b))for(var f=0;f<b.length;f++)Jc(a,b[f],c,d,e);else if(c=Ec(c),ic(a))a.qd(b,c,d,e);else if(d=!!d,a=Kc(a,b,d))for(f=0;f<a.length;f++)if(a[f].Ia==c&&a[f].capture==d&&a[f].pb==e){Lc(a[f]);break}}
function Lc(a){if(ka(a)||!a||a.Ra)return!1;var b=a.src;if(ic(b))return Mc(b.Da,a);var c=a.type,d=a.a,e=a.capture;b.removeEventListener?b.removeEventListener(c,d,e):b.detachEvent&&b.detachEvent(c in Dc?Dc[c]:Dc[c]="on"+c,d);b=v(b);Cc[b]&&(d=Cc[b],Pa(d,a),0==d.length&&delete Cc[b]);lc(a);if(d=Bc[c][e][b])Pa(d,a),0==d.length&&(delete Bc[c][e][b],Bc[c][e].u--),0==Bc[c][e].u&&(delete Bc[c][e],Bc[c].u--),0==Bc[c].u&&delete Bc[c];delete Ac[a.key];return!0}
function Kc(a,b,c){var d=Bc;return b in d&&(d=d[b],c in d&&(d=d[c],a=v(a),d[a]))?d[a]:null}function Nc(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.Ra&&(d&=!1!==Oc(e,c))}return Boolean(d)}function Oc(a,b){var c=a.Ia,d=a.pb||a.src;a.xb&&Lc(a);return c.call(d,b)}
function Hc(a,b){if(a.Ra)return!0;var c=a.type,d=Bc;if(!(c in d))return!0;var d=d[c],e,f;if(!Ub){if(!(c=b))a:{for(var c=["window","event"],g=p;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 k=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(l){k=!0}if(k||void 0==e.returnValue)e.returnValue=!0}}k=new Xb;Yb(k,e,this);e=!0;try{if(c){for(var n=[],q=k.c;q;q=q.parentNode)n.push(q);f=d[!0];for(var s=n.length-
1;!k.ab&&0<=s;s--)k.c=n[s],e&=Nc(f,n[s],k);if(g)for(f=d[!1],s=0;!k.ab&&s<n.length;s++)k.c=n[s],e&=Nc(f,n[s],k)}else e=Oc(a,k)}finally{n&&(n.length=0)}return e}d=new Xb(b,this);return e=Oc(a,d)}var Pc="__closure_events_fn_"+(1E9*Math.random()>>>0);function Ec(a){return ma(a)?a:a[Pc]||(a[Pc]=function(b){return a.handleEvent(b)})};function Qc(a){this.src=a;this.a={};this.b=0}Qc.prototype.add=function(a,b,c,d,e){var f=this.a[a];f||(f=this.a[a]=[],this.b++);var g=Rc(f,b,d,e);-1<g?(a=f[g],c||(a.xb=!1)):(a=new kc(b,null,this.src,a,!!d,e),a.xb=c,f.push(a));return a};Qc.prototype.remove=function(a,b,c,d){if(!(a in this.a))return!1;var e=this.a[a];b=Rc(e,b,c,d);return-1<b?(lc(e[b]),Fa.splice.call(e,b,1),0==e.length&&(delete this.a[a],this.b--),!0):!1};
function Mc(a,b){var c=b.type;if(!(c in a.a))return!1;var d=Pa(a.a[c],b);d&&(lc(b),0==a.a[c].length&&(delete a.a[c],a.b--));return d}function Rc(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Ra&&f.Ia==b&&f.capture==!!c&&f.pb==d)return e}return-1};function Sc(){fb.call(this);this.Da=new Qc(this);this.Nc=this}E(Sc,fb);Sc.prototype[ac]=!0;m=Sc.prototype;m.ld=null;m.addEventListener=function(a,b,c,d){H(this,a,b,c,d)};m.removeEventListener=function(a,b,c,d){Jc(this,a,b,c,d)};
function I(a,b){var c,d=a.ld;if(d)for(c=[];d;d=d.ld)c.push(d);var d=a.Nc,e=b,f=e.type||e;if(u(e))e=new kb(e,d);else if(e instanceof kb)e.target=e.target||d;else{var g=e,e=new kb(f,d);zc(e,g)}var g=!0,k;if(c)for(var l=c.length-1;!e.ab&&0<=l;l--)k=e.c=c[l],g=Tc(k,f,!0,e)&&g;e.ab||(k=e.c=d,g=Tc(k,f,!0,e)&&g,e.ab||(g=Tc(k,f,!1,e)&&g));if(c)for(l=0;!e.ab&&l<c.length;l++)k=e.c=c[l],g=Tc(k,f,!1,e)&&g;return g}
m.A=function(){Sc.H.A.call(this);if(this.Da){var a=this.Da,b=0,c;for(c in a.a){for(var d=a.a[c],e=0;e<d.length;e++)++b,d[e].Ra=!0;delete a.a[c];a.b--}}this.ld=null};m.Pa=function(a,b,c,d){return this.Da.add(a,b,!1,c,d)};m.qd=function(a,b,c,d){return this.Da.remove(a,b,c,d)};function Tc(a,b,c,d){b=a.Da.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.Ra&&g.capture==c){var k=g.Ia,l=g.pb||g.src;g.xb&&Mc(a.Da,g);e=!1!==k.call(l,d)&&e}}return e&&!1!=d.ee};function K(a){Sc.call(this);this.n={};r(a)&&this.Xb(a)}E(K,Sc);var Uc={},Vc={},Wc={};function Xc(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Yc(a){return a.ol_accessors_||(a.ol_accessors_={})}function Zc(a){return Uc.hasOwnProperty(a)?Uc[a]:Uc[a]="change:"+a.toLowerCase()}function $c(a){return a.ol_bindings_||(a.ol_bindings_={})}m=K.prototype;
m.we=function(a,b,c){c=c||a;this.pd(a);var d=Zc(c);$c(this)[a]=H(b,d,function(){ad(this,a)},void 0,this);Yc(this)[a]={target:b,key:c};ad(this,a)};m.get=function(a){var b,c=Yc(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Vc.hasOwnProperty(b)?Vc[b]:Vc[b]="get"+Xc(b),b=a[c]?a[c]():a.get(b)):this.n.hasOwnProperty(a)&&(b=this.n[a]);return b};
m.Fa=function(){for(var a=rc(Yc(this)).concat(rc(this.n)),b={},c=0,d=0;d<a.length;){var e=a[d++],f=na(e)?"o"+v(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c;return a};m.Vd=function(a){var b=Yc(this);b.hasOwnProperty(a)?(a=b[a],a.target.Vd(a.key)):ad(this,a)};function ad(a,b){var c=Zc(b);I(a,c);I(a,"change")}m.Hf=function(a,b,c){return H(this,a,b,!1,c)};m.Jf=function(a,b,c){return Ic(this,a,b,!1,c)};
m.k=function(a,b){var c=Yc(this);if(c.hasOwnProperty(a)){var d=c[a],c=d.target,d=d.key,e=Wc.hasOwnProperty(d)?Wc[d]:Wc[d]="set"+Xc(d);if(c[e])c[e](b);else c.k(d,b)}else this.n[a]=b,ad(this,a)};m.Xb=function(a){var b,c,d;for(b in a)if(c=a[b],d=Wc.hasOwnProperty(b)?Wc[b]:Wc[b]="set"+Xc(b),this[d])this[d](c);else this.k(b,c)};m.pd=function(a){var b=$c(this),c=b[a];c&&(delete b[a],Lc(c),b=this.get(a),delete Yc(this)[a],this.n[a]=b)};m.Zf=function(a,b,c){Jc(this,a,b,!1,c)};m.$f=function(a){Lc(a)};
m.ag=function(){for(var a in $c(this))this.pd(a)};function bd(a,b,c){kb.call(this,a,c);this.a=b}E(bd,kb);bd.prototype.b=h("a");function M(a){K.call(this);this.a=a||[];cd(this)}E(M,K);m=M.prototype;m.clear=function(){for(;0<this.uc();)this.pop()};m.Df=function(a){var b,c;b=0;for(c=a.length;b<c;++b)this.push(a[b]);return this};m.forEach=function(a,b){Ja(this.a,a,b)};m.Ef=h("a");m.Ce=function(a){return this.a[a]};m.uc=function(){return this.get("length")};m.Bc=function(a,b){Sa(this.a,a,0,b);cd(this);I(this,new bd("add",b,this))};
m.pop=function(){return this.md(this.uc()-1)};m.push=function(a){var b=this.a.length;this.Bc(b,a);return b};m.remove=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return this.md(c)};m.md=function(a){var b=this.a[a];Fa.splice.call(this.a,a,1);cd(this);I(this,new bd("remove",b,this));return b};m.Sf=function(a,b){var c=this.uc();if(a<c)c=this.a[a],this.a[a]=b,I(this,new bd("remove",c,this)),I(this,new bd("add",b,this));else{for(;c<a;++c)this.Bc(c,void 0);this.Bc(a,b)}};
function cd(a){a.k("length",a.a.length)};function dd(a,b,c){return Math.min(Math.max(a,b),c)}function ed(a,b){var c=a%b;return 0>c*b?c+b:c}function fd(a){return a*Math.PI/180};function jd(a){K.call(this);a=r(a)?a:{};this.a=null;H(this,Zc("tracking"),this.i,!1,this);this.b(r(a.tracking)?a.tracking:!1)}E(jd,K);jd.prototype.A=function(){this.b(!1);jd.H.A.call(this)};var kd="DeviceOrientationEvent"in p;
jd.prototype.o=function(a){a=a.aa;if(null!=a.alpha){var b=fd(a.alpha);this.k("alpha",b);"boolean"==typeof a.absolute&&a.absolute?this.k("heading",b):null!=a.webkitCompassHeading&&(null!=a.webkitCompassAccuracy&&-1!=a.webkitCompassAccuracy)&&this.k("heading",fd(a.webkitCompassHeading))}null!=a.beta&&this.k("beta",fd(a.beta));null!=a.gamma&&this.k("gamma",fd(a.gamma))};jd.prototype.d=function(){return this.get("alpha")};jd.prototype.getAlpha=jd.prototype.d;jd.prototype.e=function(){return this.get("beta")};
jd.prototype.getBeta=jd.prototype.e;jd.prototype.f=function(){return this.get("gamma")};jd.prototype.getGamma=jd.prototype.f;jd.prototype.g=function(){return this.get("heading")};jd.prototype.getHeading=jd.prototype.g;jd.prototype.c=function(){return this.get("tracking")};jd.prototype.getTracking=jd.prototype.c;jd.prototype.i=function(){if(kd){var a=this.c();a&&null===this.a?this.a=H(p,"deviceorientation",this.o,!1,this):a||null===this.a||(Lc(this.a),this.a=null)}};
jd.prototype.b=function(a){this.k("tracking",a)};jd.prototype.setTracking=jd.prototype.b;function ld(a,b){a[0]+=b[0];a[1]+=b[1]}function md(a,b){var c=ed(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 nd(a,b){var c=Math.cos(b),d=Math.sin(b),e=a[1]*c+a[0]*d;a[0]=a[0]*c-a[1]*d;a[1]=e}function od(a,b){var c=a[0]-b[0],d=a[1]-b[1];return c*c+d*d}function pd(a,b){if(r(a)){var c=b||0;return a[0].toFixed(c)+", "+a[1].toFixed(c)}return""}
function qd(a,b){var c=b.charAt(0);return"n"===c||"s"===c?[a[1],a[0]]:a};function rd(a){var b=sd(),c=a.length,d;for(d=0;d<c;++d)td(b,a[d]);return b}function ud(a,b,c){var d=Math.min.apply(null,a);a=Math.max.apply(null,a);var e=Math.min.apply(null,b);b=Math.max.apply(null,b);return vd(d,a,e,b,c)}function wd(a,b){return a[0]<=b[0]&&b[0]<=a[2]&&a[1]<=b[1]&&b[1]<=a[3]}function xd(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}function sd(){return[Infinity,Infinity,-Infinity,-Infinity]}
function vd(a,b,c,d,e){return r(e)?(e[0]=a,e[2]=b,e[1]=c,e[3]=d,e):[a,c,b,d]}function yd(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function zd(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])}function td(a,b){b[0]<a[0]&&(a[0]=b[0]);b[0]>a[2]&&(a[2]=b[0]);b[1]<a[1]&&(a[1]=b[1]);b[1]>a[3]&&(a[3]=b[1])}function Ad(a){return[a[0],a[1]]}function Bd(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
function Cd(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,k;for(f=0;4>f;++f)g=e[f],k=d[f],e[f]=a[0]+g*b-k*c,d[f]=a[1]+g*c+k*b;return ud(e,d,void 0)}function Dd(a){return[a[0],a[3]]}function Ed(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Fd(a,b){return Ed(a,b)&&(a[0]==b[2]||a[2]==b[0]||a[1]==b[3]||a[3]==b[1])}
function Gd(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 ud([a[0],a[2],a[4],a[6]],[a[1],a[3],a[5],a[7]],c)};function Hd(){Sc.call(this)}E(Hd,Sc);Hd.prototype.$=function(){return new this.constructor(this.p())};function Id(a,b,c){kb.call(this,a,b);this.a=c}E(Id,kb);var Jd={Wg:"point",Jg:"linestring",Ig:"linearring",Xg:"polygon",Rg:"multipoint",Pg:"multilinestring",Sg:"multipolygon",Cg:"geometrycollection"};function N(a){K.call(this,a);this.bb="default";this.b=null}E(N,K);m=N.prototype;m.jb=function(){var a=this.Fa(),b=a.length,c={},d,e;for(d=0;d<b;++d)e=a[d],c[e]=this.get(e);return c};m.Ge=h("Ea");m.D=function(){return r(this.a)?this.get(this.a):null};m.zb=h("b");m.Od=function(a){I(this,new Kd(Ld,this,a.a))};
m.k=function(a,b){var c=this.D(),d=null;null!=c&&(d=c.fa(),a===this.a&&Jc(c,"change",this.Od,!1,this));b instanceof Hd&&(r(this.a)||(this.a=a),a===this.a&&H(b,"change",this.Od,!1,this));N.H.k.call(this,a,b);I(this,new Kd(Ld,this,d))};m.Aa=function(a){r(this.a)||(this.a="geometry");this.k(this.a,a)};var Ld="featurechange";function Kd(a,b,c){kb.call(this,a,b);this.a=c}E(Kd,kb);/*
Latitude/longitude spherical geodesy formulae taken from
http://www.movable-type.co.uk/scripts/latlong.html
Licenced under CC-BY-3.0.
*/
function Md(a,b,c){var d=fd(b[1]),e=fd(c[1]),f=(e-d)/2;b=fd(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.a*Math.atan2(Math.sqrt(d),Math.sqrt(1-d))};var Nd=new function(){this.a=6370997};var Od="object"==typeof Proj4js,Pd={le:"degrees",Bg:"ft",Mg:"m"},Qd={};Qd.degrees=2*Math.PI*Nd.a/360;Qd.ft=0.3048;Qd.m=1;function Rd(a){this.Ua=a.code;this.Jb=a.units;this.g=r(a.extent)?a.extent:null;this.d=r(a.axisOrientation)?a.axisOrientation:"enu";this.Hd=r(a.global)?a.global:!1;this.e=null}Rd.prototype.ba=h("g");Rd.prototype.a=function(){return Qd[this.Jb]};function Sd(a){return a.d}function Td(a,b){var c={units:a.units,axisOrientation:a.axis};zc(c,b);Rd.call(this,c);this.f=a;this.c=null}
E(Td,Rd);Td.prototype.a=function(){var a=this.f.to_meter;r(a)||(a=Qd[this.Jb]);return a};Td.prototype.b=function(a,b){if("degrees"==this.Jb)return a;null===this.c&&(this.c=Ud(this,Vd({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.c(c,c,2),d=Md(Nd,c.slice(0,2),c.slice(2,4)),c=Md(Nd,c.slice(4,6),c.slice(6,8)),d=(d+c)/2;"ft"==this.Jb&&(d/=0.3048);return d};function Wd(a){return a.f}var Xd={},Yd={},Zd={};
function $d(a){ae(a);Ja(a,function(b){Ja(a,function(a){b!==a&&be(b,a,le)})})}function me(){var a=ne,b=oe,c=pe;Ja(qe,function(d){Ja(a,function(a){be(d,a,b);be(a,d,c)})})}function re(a){Yd[a.Ua]=a;be(a,a,le)}function ae(a){Ja(a,function(a){re(a)})}function se(a){return null!=a?u(a)?te(a):a:te("EPSG:3857")}function be(a,b,c){a=a.Ua;b=b.Ua;a in Zd||(Zd[a]={});Zd[a][b]=c}function te(a){var b;a instanceof Rd?b=a:u(a)?(b=Yd[a],Od&&!r(b)&&(b=Vd({code:a,extent:null})),r(b)||(b=null)):b=null;return b}
function Vd(a){var b=a.code,c=Xd[b];if(!r(c)){var d=new Proj4js.Proj(b),e=d.srsCode,c=Xd[e];r(c)||(a=xc(a),a.code=e,c=new Td(d,a),Xd[e]=c);Xd[b]=c}return c}function ue(a,b){var c=te(a),d=te(b);return Ud(c,d)}
function Ud(a,b){var c=a.Ua,d=b.Ua,e;c in Zd&&d in Zd[c]&&(e=Zd[c][d]);if(Od&&!r(e)){var f=Wd(a instanceof Td?a:Vd({code:c,extent:null})),g=Wd(b instanceof Td?b:Vd({code:d,extent:null}));e=function(a,b,c){var d=a.length;c=1<c?c:2;r(b)||(b=2<c?a.slice():Array(d));for(var e,x=0;x<d;x+=c)e=new Proj4js.Point(a[x],a[x+1]),e=Proj4js.transform(f,g,e),b[x]=e.x,b[x+1]=e.y;return b};be(a,b,e)}r(e)||(e=ve);return e}function ve(a,b){if(r(b)&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}
function le(a,b){var c;if(r(b)){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c};function O(a){K.call(this);a=r(a)?a:{};this.a=null;this.c=ve;this.b=void 0;H(this,Zc("projection"),this.Q,!1,this);H(this,Zc("tracking"),this.W,!1,this);r(a.projection)&&this.g(te(a.projection));r(a.trackingOptions)&&this.i(a.trackingOptions);this.d(r(a.tracking)?a.tracking:!1)}E(O,K);O.prototype.A=function(){this.d(!1);O.H.A.call(this)};O.prototype.Q=function(){var a=this.ha();null!=a&&(this.c=Ud(te("EPSG:4326"),a),null===this.a||this.k("position",this.c(this.a)))};
O.prototype.W=function(){if(we){var a=this.f();a&&!r(this.b)?this.b=p.navigator.geolocation.watchPosition(y(this.la,this),y(this.ia,this),this.e()):!a&&r(this.b)&&(p.navigator.geolocation.clearWatch(this.b),this.b=void 0)}};var we="geolocation"in p.navigator;
O.prototype.la=function(a){a=a.coords;this.k("accuracy",a.accuracy);this.k("altitude",null===a.altitude?void 0:a.altitude);this.k("altitudeAccuracy",null===a.altitudeAccuracy?void 0:a.altitudeAccuracy);this.k("heading",null===a.heading?void 0:fd(a.heading));null===this.a?this.a=[a.longitude,a.latitude]:(this.a[0]=a.longitude,this.a[1]=a.latitude);this.k("position",this.c(this.a));this.k("speed",null===a.speed?void 0:a.speed)};O.prototype.ia=function(a){a.type="error";I(this,a)};O.prototype.o=function(){return this.get("accuracy")};
O.prototype.getAccuracy=O.prototype.o;O.prototype.q=function(){return this.get("altitude")};O.prototype.getAltitude=O.prototype.q;O.prototype.r=function(){return this.get("altitudeAccuracy")};O.prototype.getAltitudeAccuracy=O.prototype.r;O.prototype.v=function(){return this.get("heading")};O.prototype.getHeading=O.prototype.v;O.prototype.K=function(){return this.get("position")};O.prototype.getPosition=O.prototype.K;O.prototype.ha=function(){return this.get("projection")};
O.prototype.getProjection=O.prototype.ha;O.prototype.s=function(){return this.get("speed")};O.prototype.getSpeed=O.prototype.s;O.prototype.f=function(){return this.get("tracking")};O.prototype.getTracking=O.prototype.f;O.prototype.e=function(){return this.get("trackingOptions")};O.prototype.getTrackingOptions=O.prototype.e;O.prototype.g=function(a){this.k("projection",a)};O.prototype.setProjection=O.prototype.g;O.prototype.d=function(a){this.k("tracking",a)};O.prototype.setTracking=O.prototype.d;
O.prototype.i=function(a){this.k("trackingOptions",a)};O.prototype.setTrackingOptions=O.prototype.i;function xe(a,b){Sc.call(this);this.L=a;this.state=b}E(xe,Sc);xe.prototype.a=function(){return v(this).toString()};xe.prototype.f=h("L");function ye(a,b,c,d,e){xe.call(this,a,b);this.e=c;this.b=new Image;null!==d&&(this.b.crossOrigin=d);this.d={};this.c=null;this.g=e}E(ye,xe);ye.prototype.ca=function(a){if(r(a)){var b=v(a);if(b in this.d)return this.d[b];a=uc(this.d)?this.b:this.b.cloneNode(!1);return this.d[b]=a}return this.b};ye.prototype.a=h("e");ye.prototype.i=function(){this.state=3;Ja(this.c,Lc);this.c=null;I(this,"change")};
ye.prototype.n=function(){this.state=this.b.naturalWidth&&this.b.naturalHeight?2:4;Ja(this.c,Lc);this.c=null;I(this,"change")};function ze(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}ze.prototype.a=4;ze.prototype.b=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};ze.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(ze.BYTES_PER_ELEMENT=4,ze.prototype.BYTES_PER_ELEMENT=ze.prototype.a,ze.prototype.set=ze.prototype.b,ze.prototype.toString=ze.prototype.toString,C("Float32Array",ze));function Ae(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}Ae.prototype.a=8;Ae.prototype.b=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};Ae.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{Ae.BYTES_PER_ELEMENT=8}catch(Be){}Ae.prototype.BYTES_PER_ELEMENT=Ae.prototype.a;Ae.prototype.set=Ae.prototype.b;Ae.prototype.toString=Ae.prototype.toString;C("Float64Array",Ae)};function Ce(a,b,c,d,e){a[0]=b;a[1]=c;a[2]=d;a[3]=e};function De(){var a=Array(16);Ee(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function Fe(){var a=Array(16);Ee(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function Ee(a,b,c,d,e,f,g,k,l,n,q,s,x,t,A,B,w){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=k;a[7]=l;a[8]=n;a[9]=q;a[10]=s;a[11]=x;a[12]=t;a[13]=A;a[14]=B;a[15]=w}
function Ge(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 He(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 Ie(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],k=a[4],l=a[5],n=a[6],q=a[7],s=a[8],x=a[9],t=a[10],A=a[11],B=a[12],w=a[13],z=a[14];a=a[15];var J=b[0],D=b[1],S=b[2],V=b[3],Q=b[4],G=b[5],L=b[6],da=b[7],va=b[8],ha=b[9],la=b[10],aa=b[11],Xa=b[12],Ea=b[13],Cb=b[14];b=b[15];c[0]=d*J+k*D+s*S+B*V;c[1]=e*J+l*D+x*S+w*V;c[2]=f*J+n*D+t*S+z*V;c[3]=g*J+q*D+A*S+a*V;c[4]=d*Q+k*G+s*L+B*da;c[5]=e*Q+l*G+x*L+w*da;c[6]=f*Q+n*G+t*L+z*da;c[7]=g*Q+q*G+A*L+a*da;c[8]=d*va+k*ha+s*la+B*aa;c[9]=e*va+l*ha+x*la+w*aa;c[10]=f*
va+n*ha+t*la+z*aa;c[11]=g*va+q*ha+A*la+a*aa;c[12]=d*Xa+k*Ea+s*Cb+B*b;c[13]=e*Xa+l*Ea+x*Cb+w*b;c[14]=f*Xa+n*Ea+t*Cb+z*b;c[15]=g*Xa+q*Ea+A*Cb+a*b}function Je(a,b){return a.length==b.length&&a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]&&a[3]==b[3]&&a[4]==b[4]&&a[5]==b[5]&&a[6]==b[6]&&a[7]==b[7]&&a[8]==b[8]&&a[9]==b[9]&&a[10]==b[10]&&a[11]==b[11]&&a[12]==b[12]&&a[13]==b[13]&&a[14]==b[14]&&a[15]==b[15]}
function Ke(a,b,c){var d=b[0],e=b[1];b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14]}function Le(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 Me(a,b,c){Ee(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 Ne(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],k=a[5],l=a[6],n=a[7],q=Math.cos(b),s=Math.sin(b);a[0]=c*q+g*s;a[1]=d*q+k*s;a[2]=e*q+l*s;a[3]=f*q+n*s;a[4]=c*-s+g*q;a[5]=d*-s+k*q;a[6]=e*-s+l*q;a[7]=f*-s+n*q}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function Oe(a,b){this.f=a;this.e=b;this.a=[];this.b=[];this.c={}}Oe.prototype.clear=function(){this.a.length=0;this.b.length=0;var a=this.c,b;for(b in a)delete a[b]};function Pe(a){var b=a.a,c=a.b,d=b[0];1==b.length?(b.length=0,c.length=0):(b[0]=b.pop(),c[0]=c.pop(),Qe(a,0));b=a.e(d);delete a.c[b];return d}function Re(a,b){var c=a.f(b);Infinity!=c&&(a.a.push(b),a.b.push(c),a.c[a.e(b)]=!0,Se(a,0,a.a.length-1))}Oe.prototype.ga=function(){return this.a.length};Oe.prototype.rb=function(){return 0===this.a.length};
function Qe(a,b){for(var c=a.a,d=a.b,e=c.length,f=c[b],g=d[b],k=b;b<e>>1;){var l=2*b+1,n=2*b+2,l=n<e&&d[n]<d[l]?n:l;c[b]=c[l];d[b]=d[l];b=l}c[b]=f;d[b]=g;Se(a,k,b)}function Se(a,b,c){var d=a.a;a=a.b;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 Te(a){var b=a.f,c=a.a,d=a.b,e=0,f=c.length,g,k,l;for(k=0;k<f;++k)g=c[k],l=b(g),Infinity==l?delete a.c[a.e(g)]:(d[e]=l,c[e++]=g);c.length=e;d.length=e;for(b=(a.a.length>>1)-1;0<=b;b--)Qe(a,b)};function Ue(a,b){Oe.call(this,function(b){return a.apply(null,b)},function(a){return a[0].a()});this.G=b;this.d=0}E(Ue,Oe);Ue.prototype.g=function(){--this.d;this.G()};function Ve(a){Sc.call(this);this.o=te(a.projection);this.i=r(a.extent)?a.extent:r(a.projection)?this.o.ba():null;this.d=r(a.attributions)?a.attributions:null;this.g=a.logo;this.f=r(a.state)?a.state:1;this.c=0}E(Ve,Sc);function We(a){++a.c;I(a,"change")}Ve.prototype.ba=h("i");Ve.prototype.ha=h("o");function P(a){K.call(this);a=xc(a);a.brightness=r(a.brightness)?a.brightness:0;a.contrast=r(a.contrast)?a.contrast:1;a.hue=r(a.hue)?a.hue:0;a.opacity=r(a.opacity)?a.opacity:1;a.saturation=r(a.saturation)?a.saturation:1;a.visible=r(a.visible)?a.visible:!0;a.maxResolution=r(a.maxResolution)?a.maxResolution:Infinity;a.minResolution=r(a.minResolution)?a.minResolution:0;this.Xb(a);H(this,[Zc("brightness"),Zc("contrast"),Zc("hue"),Zc("opacity"),Zc("saturation"),Zc("maxResolution"),Zc("minResolution")],
this.zc,!1,this);H(this,Zc("visible"),this.Pd,!1,this)}E(P,K);function Xe(a){I(a,"change")}P.prototype.e=function(){return this.get("brightness")};P.prototype.getBrightness=P.prototype.e;P.prototype.f=function(){return this.get("contrast")};P.prototype.getContrast=P.prototype.f;P.prototype.g=function(){return this.get("hue")};P.prototype.getHue=P.prototype.g;
function Ye(a){var b=a.e(),c=a.f(),d=a.g(),e=a.r(),f=a.q(),g=a.kb(),k=a.b(),l=a.i();a=a.o();return{brightness:r(b)?dd(b,-1,1):0,contrast:r(c)?Math.max(c,0):1,hue:r(d)?d:0,opacity:r(e)?dd(e,0,1):1,saturation:r(f)?Math.max(f,0):1,bc:g,visible:r(k)?!!k:!0,maxResolution:r(l)?l:Infinity,minResolution:r(a)?Math.max(a,0):0}}P.prototype.i=function(){return this.get("maxResolution")};P.prototype.getMaxResolution=P.prototype.i;P.prototype.o=function(){return this.get("minResolution")};
P.prototype.getMinResolution=P.prototype.o;P.prototype.r=function(){return this.get("opacity")};P.prototype.getOpacity=P.prototype.r;P.prototype.q=function(){return this.get("saturation")};P.prototype.getSaturation=P.prototype.q;P.prototype.b=function(){return this.get("visible")};P.prototype.getVisible=P.prototype.b;P.prototype.zc=function(){this.b()&&1==this.kb()&&Xe(this)};P.prototype.Pd=function(){1==this.kb()&&Xe(this)};P.prototype.Q=function(a){this.k("brightness",a)};
P.prototype.setBrightness=P.prototype.Q;P.prototype.W=function(a){this.k("contrast",a)};P.prototype.setContrast=P.prototype.W;P.prototype.la=function(a){this.k("hue",a)};P.prototype.setHue=P.prototype.la;P.prototype.ia=function(a){this.k("maxResolution",a)};P.prototype.setMaxResolution=P.prototype.ia;P.prototype.va=function(a){this.k("minResolution",a)};P.prototype.setMinResolution=P.prototype.va;P.prototype.K=function(a){this.k("opacity",a)};P.prototype.setOpacity=P.prototype.K;
P.prototype.eb=function(a){this.k("saturation",a)};P.prototype.setSaturation=P.prototype.eb;P.prototype.fb=function(a){this.k("visible",a)};P.prototype.setVisible=P.prototype.fb;function Ze(a){var b=xc(a);delete b.source;P.call(this,b);this.s=a.source;H(this.s,"change",this.nf,!1,this)}E(Ze,P);m=Ze.prototype;m.Nb=function(a){a=r(a)?a:[];a.push(this);return a};m.$c=function(a){a=r(a)?a:{layers:[],pa:[]};a.layers.push(this);a.pa.push(Ye(this));return a};m.ja=h("s");m.kb=function(){return this.ja().f};m.nf=function(){Xe(this)};function $e(){K.call(this);this.e=[0,0]}E($e,K);function af(a,b){a.e[1]+=b};function bf(a){return 1-Math.pow(1-a,3)};function cf(a){return 3*a*a-2*a*a*a}function df(a){return a}function ef(a){return 0.5>a?cf(2*a):1-cf(2*(a-0.5))};function ff(a){var b=a.resolution,c=r(a.start)?a.start:ta(),d=r(a.duration)?a.duration:1E3,e=r(a.easing)?a.easing:ef;return function(a,g){if(g.time<c)return g.qa=!0,g.M[0]+=1,!0;if(g.time<c+d){var k=e((g.time-c)/d),l=b-g.B.resolution;g.qa=!0;g.B.resolution+=k*l;g.M[0]+=1;return!0}return!1}}
function gf(a){var b=a.source,c=r(a.start)?a.start:ta(),d=b[0],e=b[1],f=r(a.duration)?a.duration:1E3,g=r(a.easing)?a.easing:cf;return function(a,b){if(b.time<c)return b.qa=!0,b.M[0]+=1,!0;if(b.time<c+f){var n=1-g((b.time-c)/f),q=d-b.B.center[0],s=e-b.B.center[1];b.qa=!0;b.B.center[0]+=n*q;b.B.center[1]+=n*s;b.M[0]+=1;return!0}return!1}}
function hf(a){var b=a.rotation,c=r(a.start)?a.start:ta(),d=r(a.duration)?a.duration:1E3,e=r(a.easing)?a.easing:cf;return function(a,g){if(g.time<c)return g.qa=!0,g.M[0]+=1,!0;if(g.time<c+d){var k=1-e((g.time-c)/d),l=b-g.B.rotation;g.qa=!0;g.B.rotation+=k*l;g.M[0]+=1;return!0}return!1}}
function jf(a){var b=a.resolution,c=r(a.start)?a.start:ta(),d=r(a.duration)?a.duration:1E3,e=r(a.easing)?a.easing:cf;return function(a,g){if(g.time<c)return g.qa=!0,g.M[0]+=1,!0;if(g.time<c+d){var k=1-e((g.time-c)/d),l=b-g.B.resolution;g.qa=!0;g.B.resolution+=k*l;g.M[0]+=1;return!0}return!1}};function kf(a,b,c){this.e=a;this.d=b;this.f=c;this.a=[];this.b=this.c=0}function lf(a){var b=ta()-a.f,c=a.a.length-3;if(a.a[c+2]<b)return!1;for(var d=c-3;0<=d&&a.a[d+2]>b;)d-=3;if(0<=d){var b=a.a[c+2]-a.a[d+2],e=a.a[c]-a.a[d],c=a.a[c+1]-a.a[d+1];a.c=Math.atan2(c,e);a.b=Math.sqrt(e*e+c*c)/b;return a.b>a.d}return!1}function mf(a,b){var c=a.e,d=a.b,e=a.d,f=Math.log(a.d/a.b)/a.e;return gf({source:b,duration:f,easing:function(a){return d*(Math.exp(c*a*f)-1)/(e-d)}})};function nf(a){if("function"==typeof a.Ga)return a.Ga();if(u(a))return a.split("");if(ja(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return qc(a)}function of(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ja(a)||u(a))Ja(a,b,c);else{var d;if("function"==typeof a.Fa)d=a.Fa();else if("function"!=typeof a.Ga)if(ja(a)||u(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=rc(a);else d=void 0;for(var e=nf(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)}};function Cf(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)Df(this,arguments[d],arguments[d+1])}else if(a){a instanceof Cf?(c=a.Fa(),d=a.Ga()):(c=rc(a),d=qc(a));for(var e=0;e<c.length;e++)Df(this,c[e],d[e])}}m=Cf.prototype;m.u=0;m.td=0;m.ga=h("u");m.Ga=function(){Ef(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};m.Fa=function(){Ef(this);return this.a.concat()};m.rb=function(){return 0==this.u};
m.clear=function(){this.b={};this.td=this.u=this.a.length=0};m.remove=function(a){return Ff(this.b,a)?(delete this.b[a],this.u--,this.td++,this.a.length>2*this.u&&Ef(this),!0):!1};function Ef(a){if(a.u!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Ff(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.u!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],Ff(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}m.get=function(a,b){return Ff(this.b,a)?this.b[a]:b};
function Df(a,b,c){Ff(a.b,b)||(a.u++,a.a.push(b),a.td++);a.b[b]=c}m.$=function(){return new Cf(this)};function Ff(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Gf=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?\x3d[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Hf(a){if(If){If=!1;var b=p.location;if(b){var c=b.href;if(c&&(c=(c=Hf(c)[3]||null)&&decodeURIComponent(c))&&c!=b.hostname)throw If=!0,Error();}}return a.match(Gf)}var If=Db;function Jf(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 Kf(a,b,c){if(ia(b))for(var d=0;d<b.length;d++)Kf(a,String(b[d]),c);else null!=b&&c.push("\x26",a,""===b?"":"\x3d",encodeURIComponent(String(b)))}function Lf(a,b){for(var c in b)Kf(c,b[c],a);return a};function Mf(a,b){var c;if(a instanceof Mf)this.lb=r(b)?b:a.lb,Nf(this,a.Hb),c=a.Mc,Of(this),this.Mc=c,c=a.Lb,Of(this),this.Lb=c,Pf(this,a.Ic),c=a.Hc,Of(this),this.Hc=c,Qf(this,a.a.$()),c=a.sc,Of(this),this.sc=c;else if(a&&(c=Hf(String(a)))){this.lb=!!b;Nf(this,c[1]||"",!0);var d=c[2]||"";Of(this);this.Mc=d?decodeURIComponent(d):"";d=c[3]||"";Of(this);this.Lb=d?decodeURIComponent(d):"";Pf(this,c[4]);d=c[5]||"";Of(this);this.Hc=d?decodeURIComponent(d):"";Qf(this,c[6]||"",!0);c=c[7]||"";Of(this);this.sc=
c?decodeURIComponent(c):""}else this.lb=!!b,this.a=new Rf(null,0,this.lb)}m=Mf.prototype;m.Hb="";m.Mc="";m.Lb="";m.Ic=null;m.Hc="";m.sc="";m.yf=!1;m.lb=!1;
m.toString=function(){var a=[],b=this.Hb;b&&a.push(Sf(b,Tf),":");if(b=this.Lb){a.push("//");var c=this.Mc;c&&a.push(Sf(c,Tf),"@");a.push(encodeURIComponent(String(b)));b=this.Ic;null!=b&&a.push(":",String(b))}if(b=this.Hc)this.Lb&&"/"!=b.charAt(0)&&a.push("/"),a.push(Sf(b,"/"==b.charAt(0)?Uf:Vf));(b=this.a.toString())&&a.push("?",b);(b=this.sc)&&a.push("#",Sf(b,Wf));return a.join("")};m.$=function(){return new Mf(this)};
function Nf(a,b,c){Of(a);a.Hb=c?b?decodeURIComponent(b):"":b;a.Hb&&(a.Hb=a.Hb.replace(/:$/,""))}function Pf(a,b){Of(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Ic=b}else a.Ic=null}function Qf(a,b,c){Of(a);b instanceof Rf?(a.a=b,Xf(a.a,a.lb)):(c||(b=Sf(b,Yf)),a.a=new Rf(b,0,a.lb))}function Zf(a,b,c){Of(a);ia(c)||(c=[String(c)]);$f(a.a,b,c)}function Of(a){if(a.yf)throw Error("Tried to modify a read-only Uri");}
function Sf(a,b){return u(a)?encodeURI(a).replace(b,ag):null}function ag(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Tf=/[#\/\?@]/g,Vf=/[\#\?:]/g,Uf=/[\#\?]/g,Yf=/[\#\?@]/g,Wf=/#/g;function Rf(a,b,c){this.a=a||null;this.b=!!c}
function bg(a){if(!a.V&&(a.V=new Cf,a.u=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=cg(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}m=Rf.prototype;m.V=null;m.u=null;m.ga=function(){bg(this);return this.u};m.add=function(a,b){bg(this);this.a=null;a=cg(this,a);var c=this.V.get(a);c||Df(this.V,a,c=[]);c.push(b);this.u++;return this};
m.remove=function(a){bg(this);a=cg(this,a);return Ff(this.V.b,a)?(this.a=null,this.u-=this.V.get(a).length,this.V.remove(a)):!1};m.clear=function(){this.V=this.a=null;this.u=0};m.rb=function(){bg(this);return 0==this.u};function dg(a,b){bg(a);b=cg(a,b);return Ff(a.V.b,b)}m.Fa=function(){bg(this);for(var a=this.V.Ga(),b=this.V.Fa(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
m.Ga=function(a){bg(this);var b=[];if(a)dg(this,a)&&(b=Qa(b,this.V.get(cg(this,a))));else{a=this.V.Ga();for(var c=0;c<a.length;c++)b=Qa(b,a[c])}return b};m.get=function(a,b){var c=a?this.Ga(a):[];return 0<c.length?String(c[0]):b};function $f(a,b,c){a.remove(b);0<c.length&&(a.a=null,Df(a.V,cg(a,b),Ra(c)),a.u+=c.length)}
m.toString=function(){if(this.a)return this.a;if(!this.V)return"";for(var a=[],b=this.V.Fa(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.Ga(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")};m.$=function(){var a=new Rf;a.a=this.a;this.V&&(a.V=this.V.$(),a.u=this.u);return a};function cg(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c}
function Xf(a,b){b&&!a.b&&(bg(a),a.a=null,of(a.V,function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),$f(this,e,a))},a));a.b=b};function eg(a){return function(){return a}}var fg=eg(!1),gg=eg(!0),hg=eg(null);function ig(a){return function(){throw a;}}function jg(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}function kg(a){var b=arguments,c=b.length;return function(){for(var a,e=0;e<c;e++)a=b[e].apply(this,arguments);return a}}function lg(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 mg(a,b,c){fb.call(this);this.d=a;this.c=c;this.a=b||window;this.b=y(this.Tc,this)}E(mg,fb);m=mg.prototype;m.ma=null;m.sd=!1;m.start=function(){ng(this);this.sd=!1;var a=og(this),b=pg(this);a&&!b&&this.a.mozRequestAnimationFrame?(this.ma=H(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(null),this.sd=!0):this.ma=a&&b?a.call(this.a,this.b):this.a.setTimeout(jg(this.b),20)};
function ng(a){if(null!=a.ma){var b=og(a),c=pg(a);b&&!c&&a.a.mozRequestAnimationFrame?Lc(a.ma):b&&c?c.call(a.a,a.ma):a.a.clearTimeout(a.ma)}a.ma=null}m.Tc=function(){this.sd&&this.ma&&Lc(this.ma);this.ma=null;this.d.call(this.c,ta())};m.A=function(){ng(this);mg.H.A.call(this)};function og(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null}
function pg(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};var qg;
function rg(){var a=p.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.wd;c.wd=null;a()};return function(a){d.next={wd: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){p.setTimeout(a,0)}};var sg,tg=!F||F&&9<=Sb;!Bb&&!F||F&&F&&9<=Sb||Bb&&Qb("1.9.1");F&&Qb("9");function ug(a){a=a.className;return u(a)&&a.match(/\S+/g)||[]}function vg(a,b){for(var c=ug(a),d=Ta(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=Ga(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e}function wg(a,b,c){for(var d=ug(a),e=!1,f=0;f<d.length;f++)d[f]==b&&(Sa(d,f--,1),e=!0);e&&(d.push(c),a.className=d.join(" "))};function xg(a,b){this.x=r(a)?a:0;this.y=r(b)?b:0}m=xg.prototype;m.$=function(){return new xg(this.x,this.y)};m.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};m.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};m.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};m.scale=function(a,b){var c=ka(b)?b:a;this.x*=a;this.y*=c;return this};function yg(a,b){this.width=a;this.height=b}m=yg.prototype;m.$=function(){return new yg(this.width,this.height)};m.rb=function(){return!(this.width*this.height)};m.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};m.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};m.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
m.scale=function(a,b){var c=ka(b)?b:a;this.width*=a;this.height*=c;return this};function zg(a){return a?new Ag(Bg(a)):sg||(sg=new Ag)}function Cg(a,b){mc(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Dg?a.setAttribute(Dg[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Dg={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 Eg(a){a=a.document.documentElement;return new yg(a.clientWidth,a.clientHeight)}function Fg(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!tg&&g&&(g.name||g.type)){f=["\x3c",f];g.name&&f.push(' name\x3d"',xa(g.name),'"');if(g.type){f.push(' type\x3d"',xa(g.type),'"');var k={};zc(k,g);delete k.type;g=k}f.push("\x3e");f=f.join("")}f=e.createElement(f);g&&(u(g)?f.className=g:ia(g)?vg.apply(null,[f].concat(g)):Cg(f,g));2<d.length&&Gg(e,f,d,2);return f}
function Gg(a,b,c,d){function e(c){c&&b.appendChild(u(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];!ja(f)||na(f)&&0<f.nodeType?e(f):Ja(Hg(f)?Ra(f):f,e)}}function Ig(a){return document.createElement(a)}function Jg(a,b){Gg(Bg(a),a,arguments,1)}function Kg(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Lg(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)}function Mg(a,b){a.insertBefore(b,a.childNodes[0]||null)}
function Ng(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Og(a){if(void 0!=a.firstElementChild)a=a.firstElementChild;else for(a=a.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a}function Bg(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Hg(a){if(a&&"number"==typeof a.length){if(na(a))return"function"==typeof a.item||"string"==typeof a.item;if(ma(a))return"function"==typeof a.item}return!1}function Ag(a){this.a=a||p.document||document}Ag.prototype.createTextNode=function(a){return this.a.createTextNode(String(a))};
function Pg(){return!0}function Qg(a){var b=a.a;a=Db?b.body:b.documentElement;b=b.parentWindow||b.defaultView;return F&&Qb("10")&&b.pageYOffset!=a.scrollTop?new xg(a.scrollLeft,a.scrollTop):new xg(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Ag.prototype.appendChild=function(a,b){a.appendChild(b)};
Ag.prototype.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};function Rg(a){Sc.call(this);this.fc=a||window;this.xc=H(this.fc,"resize",this.kf,!1,this);this.mb=Eg(this.fc||window)}E(Rg,Sc);m=Rg.prototype;m.xc=null;m.fc=null;m.mb=null;m.A=function(){Rg.H.A.call(this);this.xc&&(Lc(this.xc),this.xc=null);this.mb=this.fc=null};m.kf=function(){var a=Eg(this.fc||window);a==this.mb||a&&this.mb&&a.width==this.mb.width&&a.height==this.mb.height||(this.mb=a,I(this,"resize"))};function Tg(a,b,c,d,e){if(!(F||Db&&Qb("525")))return!0;if(rb&&e)return Ug(a);if(e&&!d||!c&&(17==b||18==b||rb&&91==b))return!1;if(Db&&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<=Sb);case 27:return!Db}return Ug(a)}
function Ug(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||Db&&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 vh(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function wh(a,b){Sc.call(this);a&&xh(this,a,b)}E(wh,Sc);m=wh.prototype;m.Qb=null;m.Cc=null;m.fd=null;m.Dc=null;m.oa=-1;m.Xa=-1;m.Pc=!1;
var yh={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},zh={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},Ah=F||Db&&Qb("525"),Bh=rb&&Bb;
wh.prototype.a=function(a){Db&&(17==this.oa&&!a.Pb||18==this.oa&&!a.sa||rb&&91==this.oa&&!a.cd)&&(this.Xa=this.oa=-1);-1==this.oa&&(a.Pb&&17!=a.Na?this.oa=17:a.sa&&18!=a.Na?this.oa=18:a.cd&&91!=a.Na&&(this.oa=91));Ah&&!Tg(a.Na,this.oa,a.Oa,a.Pb,a.sa)?this.handleEvent(a):(this.Xa=Bb?vh(a.Na):a.Na,Bh&&(this.Pc=a.sa))};wh.prototype.b=function(a){this.Xa=this.oa=-1;this.Pc=a.sa};
wh.prototype.handleEvent=function(a){var b=a.aa,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.Xa,d=13!=c&&27!=c?b.keyCode:0):Db&&"keypress"==a.type?(c=this.Xa,d=0<=b.charCode&&63232>b.charCode&&Ug(c)?b.charCode:0):Ab?(c=this.Xa,d=Ug(c)?b.keyCode:0):(c=b.keyCode||this.Xa,d=b.charCode||0,Bh&&(e=this.Pc),rb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in yh?f=yh[c]:25==c&&a.Oa&&(f=9):g&&g in zh&&(f=zh[g]);a=f==this.oa;this.oa=f;b=new Ch(f,d,a,b);b.sa=e;I(this,b)};
function xh(a,b,c){a.Dc&&Dh(a);a.Qb=b;a.Cc=H(a.Qb,"keypress",a,c);a.fd=H(a.Qb,"keydown",a.a,c,a);a.Dc=H(a.Qb,"keyup",a.b,c,a)}function Dh(a){a.Cc&&(Lc(a.Cc),Lc(a.fd),Lc(a.Dc),a.Cc=null,a.fd=null,a.Dc=null);a.Qb=null;a.oa=-1;a.Xa=-1}wh.prototype.A=function(){wh.H.A.call(this);Dh(this)};function Ch(a,b,c,d){d&&Yb(this,d,void 0);this.type="key";this.Na=a;this.bd=b;this.a=c}E(Ch,Xb);function Eh(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}m=Eh.prototype;m.$=function(){return new Eh(this.top,this.right,this.bottom,this.left)};m.contains=function(a){return this&&a?a instanceof Eh?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
m.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};m.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};m.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
m.scale=function(a,b){var c=ka(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function Fh(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}m=Fh.prototype;m.$=function(){return new Fh(this.left,this.top,this.width,this.height)};m.contains=function(a){return a instanceof Fh?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};
m.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};m.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};m.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
m.scale=function(a,b){var c=ka(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Gh(a,b){var c=Bg(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Hh(a,b){return Gh(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Ih(a,b,c){var d,e=Bb&&(rb||Hb)&&Qb("1.9");b instanceof xg?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Jh(d,e);a.style.top=Jh(b,e)}
function Kh(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 Lh(a){if(F&&!(F&&8<=Sb))return a.offsetParent;var b=Bg(a),c=Hh(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Hh(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 Mh(a){var b,c=Bg(a),d=Hh(a,"position"),e=Bb&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new xg(0,0),g;b=c?Bg(c):document;g=!F||F&&9<=Sb||Pg(zg(b))?b.documentElement:b.body;if(a==g)return f;if(a.getBoundingClientRect)b=Kh(a),a=Qg(zg(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{b=a;do{f.x+=b.offsetLeft;f.y+=
b.offsetTop;b!=a&&(f.x+=b.clientLeft||0,f.y+=b.clientTop||0);if(Db&&"fixed"==Hh(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(Ab||Db&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=Lh(b))&&b!=c.body&&b!=g;)f.x-=b.scrollLeft,Ab&&"TR"==b.tagName||(f.y-=b.scrollTop)}return f}function Nh(a,b){var c=Oh(a),d=Oh(b);return new xg(c.x-d.x,c.y-d.y)}
function Oh(a){if(1==a.nodeType){var b;if(a.getBoundingClientRect)b=Kh(a),b=new xg(b.left,b.top);else{b=Qg(zg(a));var c=Mh(a);b=new xg(c.x-b.x,c.y-b.y)}if(Bb&&!Qb(12)){var d;F?d="-ms-transform":Db?d="-webkit-transform":Ab?d="-o-transform":Bb&&(d="-moz-transform");var e;d&&(e=Hh(a,d));e||(e=Hh(a,"transform"));a=e?(a=e.match(Ph))?new xg(parseFloat(a[1]),parseFloat(a[2])):new xg(0,0):new xg(0,0);a=new xg(b.x+a.x,b.y+a.y)}else a=b;return a}d=ma(a.De);e=a;a.targetTouches?e=a.targetTouches[0]:d&&a.aa.targetTouches&&
(e=a.aa.targetTouches[0]);return new xg(e.clientX,e.clientY)}function Jh(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Qh(a){var b=Rh;if("none"!=Hh(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 Rh(a){var b=a.offsetWidth,c=a.offsetHeight,d=Db&&!b&&!c;return r(b)&&!d||!a.getBoundingClientRect?new yg(b,c):(a=Kh(a),new yg(a.right-a.left,a.bottom-a.top))}function Sh(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 Th(a,b){a.style.display=b?"":"none"}function Uh(a){return"rtl"==Hh(a,"direction")}
function Vh(a,b){var c=Pg(zg(Bg(a)));if(!F||c&&Qb("8")){var d=a.style;Bb?d.MozBoxSizing="border-box":Db?d.WebkitBoxSizing="border-box":d.boxSizing="border-box";d.width=Math.max(b.width,0)+"px";d.height=Math.max(b.height,0)+"px"}else if(d=a.style,c){var c=Wh(a,"padding"),e=Xh(a);d.pixelWidth=b.width-e.left-c.left-c.right-e.right;d.pixelHeight=b.height-e.top-c.top-c.bottom-e.bottom}else d.pixelWidth=b.width,d.pixelHeight=b.height}
function Yh(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 Zh(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?Yh(a,c,"left","pixelLeft"):0}
function Wh(a,b){if(F){var c=Zh(a,b+"Left"),d=Zh(a,b+"Right"),e=Zh(a,b+"Top"),f=Zh(a,b+"Bottom");return new Eh(e,d,f,c)}c=Gh(a,b+"Left");d=Gh(a,b+"Right");e=Gh(a,b+"Top");f=Gh(a,b+"Bottom");return new Eh(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))}var $h={thin:2,medium:4,thick:6};function ai(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 $h?$h[c]:Yh(a,c,"left","pixelLeft")}
function Xh(a){if(F){var b=ai(a,"borderLeft"),c=ai(a,"borderRight"),d=ai(a,"borderTop");a=ai(a,"borderBottom");return new Eh(d,c,a,b)}b=Gh(a,"borderLeftWidth");c=Gh(a,"borderRightWidth");d=Gh(a,"borderTopWidth");a=Gh(a,"borderBottomWidth");return new Eh(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Ph=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function bi(a,b){Sc.call(this);this.a=a;var c=na(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:null;this.e=!!c&&Uh(c);this.b=H(this.a,Bb?"DOMMouseScroll":"mousewheel",this,b)}E(bi,Sc);
bi.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.aa;if("mousewheel"==a.type){c=1;if(F||Db&&(ub||Qb("532.0")))c=40;d=ci(-a.wheelDelta,c);r(a.wheelDeltaX)?(b=ci(-a.wheelDeltaX,c),c=ci(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),r(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;ka(this.c)&&(b=dd(b,-this.c,this.c));ka(this.d)&&(c=dd(c,-this.d,this.d));this.e&&(b=-b);b=new di(d,a,b,c);I(this,b)};function ci(a,b){return Db&&(rb||vb)&&0!=a%b?a:a/b}
bi.prototype.A=function(){bi.H.A.call(this);Lc(this.b);this.b=null};function di(a,b,c,d){b&&Yb(this,b,void 0);this.type="mousewheel";this.d=a;this.b=c;this.a=d}E(di,Xb);var ei=p.document&&"ontouchstart"in p.document.documentElement||!!p.navigator.msPointerEnabled;function fi(a,b,c){kb.call(this,a);this.map=b;this.b=r(c)?c:null}E(fi,kb);function gi(a,b,c,d){fi.call(this,a,b,d);this.a=c;this.g=this.f=null}E(gi,fi);gi.prototype.d=function(){null===this.f&&(this.f=this.map.Fd(this.a.aa));return this.f};gi.prototype.e=function(){null===this.g&&(this.g=this.map.Yc(this.a.aa));return this.g};gi.prototype.T=function(){gi.H.T.call(this);this.a.T()};gi.prototype.nb=function(){gi.H.nb.call(this);this.a.nb()};
function hi(a){Sc.call(this);this.a=a;this.e=0;this.c=!1;this.b=this.g=this.d=this.f=null;a=this.a.b;this.f=[H(a,["click","dblclick"],this.ye,!1,this),H(a,"mousedown",this.cf,!1,this)];this.g=[H(a,["touchstart","MSPointerDown"],this.sf,!1,this),H(p.document,["touchmove","MSPointerMove"],this.rf,!1,this),H(p.document,["touchend","MSPointerUp"],this.qf,!1,this)]}E(hi,Sc);m=hi.prototype;m.ye=function(a){this.c||I(this,"dblclick"==a.type?new gi(ii,this.a,a):new gi(ji,this.a,a))};
m.ef=function(a){this.b&&(this.b=null,Ja(this.d,Lc),this.d=null,this.c&&I(this,new gi(ki,this.a,a)))};m.cf=function(a){I(this,new gi(li,this.a,a));this.b||(this.b=a,this.c=!1,this.d=[H(p.document,"mousemove",this.df,!1,this),H(p.document,"mouseup",this.ef,!1,this)],a.T())};m.df=function(a){var b;this.c||(this.c=!0,b=new gi(mi,this.a,this.b),I(this,b));b=new gi(ni,this.a,a);I(this,b)};m.sf=function(a){a.T();this.b=a;this.c=!1;I(this,new gi(oi,this.a,a))};
m.rf=function(a){this.b&&(this.c=!0,I(this,new gi(pi,this.a,a)))};m.qf=function(a){var b=new gi(qi,this.a,a);I(this,b);this.c||(0!==this.e?(p.clearTimeout(this.e),this.e=0,b=new gi(ii,this.a,this.b),I(this,b),this.b=null):this.e=p.setTimeout(y(function(){this.e=0;b=new gi(ji,this.a,this.b);I(this,b);this.b=null},this),250))};m.A=function(){null!==this.f&&(Ja(this.f,Lc),this.f=null);null!==this.d&&(Ja(this.d,Lc),this.d=null);null!==this.g&&(Ja(this.g,Lc),this.g=null);hi.H.A.call(this)};
var ji="click",ii="dblclick",li="down",mi="dragstart",ni="drag",ki="dragend",oi="touchstart",pi="touchmove",qi="touchend",ri={rg:ji,sg:ii,vg:li,yg:mi,wg:ni,xg:ki,hh:oi,gh:pi,fh:qi};function si(a){return function(b){if(r(b))return[dd(b[0],a[0],a[2]),dd(b[1],a[1],a[3])]}}function ti(a){return a};function ui(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 vi(a){return function(b,c,d){if(r(b))return b=ui(a,b,d),b=dd(b+c,0,a.length-1),a[b]}}function wi(a,b,c){return function(d,e,f){if(r(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),r(c)&&(e=Math.min(e,c)),b/Math.pow(a,e)}};function xi(){return function(a,b){if(r(a))return 0.1>=Math.abs(a+b)?0:a+b}};function yi(a,b){var c=xi();this.center=a;this.resolution=b;this.rotation=c};function R(a){$e.call(this);a=a||{};var b={};b.center=r(a.center)?a.center:null;b.projection=se(a.projection);var c,d,e;if(r(a.resolutions))c=a.resolutions,d=c[0],e=c[c.length-1],c=vi(c);else{d=a.maxResolution;r(d)||(d=a.projection,e=se(d).ba(),d=(null===e?360*Qd.degrees/Qd[d.Jb]:Math.max(e[2]-e[0],e[3]-e[1]))/256);c=a.maxZoom;r(c)||(c=28);var f=a.zoomFactor;r(f)||(f=2);e=d/Math.pow(f,c);c=wi(f,d,c)}this.b=d;this.f=e;this.gb=new yi(r(a.extent)?si(a.extent):ti,c);r(a.resolution)?b.resolution=a.resolution:
r(a.zoom)&&(b.resolution=this.Ca(this.b,a.zoom));b.rotation=r(a.rotation)?a.rotation:0;this.Xb(b)}E(R,$e);function zi(a,b,c){var d,e=a.a();r(e)&&(d=[e[0]-c[0],e[1]-c[1]],nd(d,b-a.c()),ld(d,c));return d}function Ai(a,b,c){var d,e=a.a();a=a.F();r(e)&&r(a)&&(d=[c[0]-b*(c[0]-e[0])/a,c[1]-b*(c[1]-e[1])/a]);return d}R.prototype.Ca=function(a,b,c){return this.gb.resolution(a,b||0,c||0)};R.prototype.ic=function(a,b){return this.gb.rotation(a,b||0)};R.prototype.a=function(){return this.get("center")};
R.prototype.getCenter=R.prototype.a;R.prototype.g=function(a){var b=this.a(),c=this.F();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]};R.prototype.ha=function(){return this.get("projection")};R.prototype.getProjection=R.prototype.ha;R.prototype.F=function(){return this.get("resolution")};R.prototype.getResolution=R.prototype.F;function Bi(a){var b=a.b,c=Math.log(b/a.f)/Math.log(2);return function(a){return b/Math.pow(2,a*c)}}R.prototype.c=function(){return this.get("rotation")};
R.prototype.getRotation=R.prototype.c;function Ci(a){var b=a.b,c=Math.log(b/a.f)/Math.log(2);return function(a){return Math.log(b/a)/Math.log(2)/c}}m=R.prototype;m.O=function(){return this};function Di(a){var b=a.a(),c=a.ha(),d=a.F();a=a.c();return{center:b.slice(),projection:r(c)?c:null,resolution:d,rotation:r(a)?a:0}}m.Oe=function(){var a,b=this.F();if(r(b)){var c,d=0;do{c=this.Ca(this.b,d);if(c==b){a=d;break}++d}while(c>this.f)}return a};
m.Xc=function(a,b){this.za(Bd(a));var c=Math.max((a[2]-a[0])/b[0],(a[3]-a[1])/b[1]),c=this.Ca(c,0,0);this.cb(c)};m.Vb=function(){return null!=this.a()&&r(this.F())};m.za=function(a){this.k("center",a)};R.prototype.setCenter=R.prototype.za;R.prototype.i=function(a){this.k("projection",a)};R.prototype.setProjection=R.prototype.i;R.prototype.cb=function(a){this.k("resolution",a)};R.prototype.setResolution=R.prototype.cb;R.prototype.d=function(a){this.k("rotation",a)};R.prototype.setRotation=R.prototype.d;
R.prototype.o=function(a){a=this.Ca(this.b,a,0);this.cb(a)};function Ei(a){K.call(this);this.element=r(a.element)?a.element:null;this.q=a.target;this.a=null;this.e=[]}E(Ei,K);Ei.prototype.A=function(){Ng(this.element);Ei.H.A.call(this)};Ei.prototype.W=h("a");Ei.prototype.d=ea;Ei.prototype.setMap=function(a){null===this.a||Ng(this.element);0!=this.e.length&&(Ja(this.e,Lc),this.e.length=0);this.a=a;null!==this.a&&((r(this.q)?this.q:a.v).appendChild(this.element),this.d!==ea&&this.e.push(H(a,"postrender",this.d,!1,this)))};function Fi(a){a=r(a)?a:{};this.g=Ig("UL");var b=Fg("DIV",{"class":(r(a.className)?a.className:"ol-attribution")+" ol-unselectable"},this.g);Ei.call(this,{element:b,target:a.target});this.f=!0;this.c={};this.b={}}E(Fi,Ei);
Fi.prototype.d=function(a){a=a.b;if(null===a)this.f&&(Th(this.element,!1),this.f=!1);else{var b,c,d,e,f,g,k,l,n,q=a.Ec,s=xc(a.attributions),x={};b=0;for(c=q.length;b<c;b++)if(d=q[b].ja(),n=v(d).toString(),l=d.d,null!==l)for(d=0,e=l.length;d<e;d++)if(g=l[d],k=v(g).toString(),!(k in s)){f=a.ec[n];var t;if(t=r(f))a:if(null===g.a)t=!0;else{var A=t=void 0,B=void 0,w=void 0;for(w in f)if(w in g.a)for(B=f[w],t=0,A=g.a[w].length;t<A;++t)if(g.a[w][t].a<=B.d&&g.a[w][t].d>=B.a&&g.a[w][t].c<=B.b&&g.a[w][t].b>=
B.c){t=!0;break a}t=!1}t?(k in x&&delete x[k],s[k]=g):x[k]=g}b=[s,x];a=b[0];b=b[1];for(var z in this.c)z in a?(this.b[z]||(Th(this.c[z],!0),this.b[z]=!0),delete a[z]):z in b?(this.b[z]&&(Th(this.c[z],!1),delete this.b[z]),delete b[z]):(Ng(this.c[z]),delete this.c[z],delete this.b[z]);for(z in a)c=Ig("LI"),c.innerHTML=a[z].b,this.g.appendChild(c),this.c[z]=c,this.b[z]=!0;for(z in b)c=Ig("LI"),c.innerHTML=b[z].b,Th(c,!1),this.g.appendChild(c),this.c[z]=c;z=!uc(this.b);this.f!=z&&(Th(this.element,z),
this.f=z)}};function Gi(a){a=r(a)?a:{};this.c=Ig("UL");var b=Fg("DIV",{"class":(r(a.className)?a.className:"ol-logo")+" ol-unselectable"},this.c);Ei.call(this,{element:b,target:a.target});this.b=!0;this.f={}}E(Gi,Ei);
Gi.prototype.d=function(a){a=a.b;if(null===a)this.b&&(Th(this.element,!1),this.b=!1);else{var b;a=a.Sd;var c=this.f;for(b in c)b in a||(Ng(c[b]),delete c[b]);var d,e;for(b in a)b in c||(d=new Image,d.src=b,e=Ig("LI"),e.appendChild(d),this.c.appendChild(e),c[b]=e);b=!uc(a);this.b!=b&&(Th(this.element,b),this.b=b)}};function Hi(a){a=r(a)?a:{};var b=r(a.className)?a.className:"ol-zoom",c=r(a.delta)?a.delta:1,d=Fg("A",{href:"#zoomIn","class":b+"-in"});H(d,["touchend","click"],sa(Hi.prototype.c,c),!1,this);var e=Fg("A",{href:"#zoomOut","class":b+"-out"});H(e,["touchend","click"],sa(Hi.prototype.c,-c),!1,this);b=Fg("DIV",b+" ol-unselectable",d,e);Ei.call(this,{element:b,target:a.target});this.b=r(a.duration)?a.duration:250}E(Hi,Ei);
Hi.prototype.c=function(a,b){b.T();var c=this.a,d=c.a().O(),e=d.F();r(e)&&(0<this.b&&c.Ba(jf({resolution:e,duration:this.b,easing:bf})),c=d.Ca(e,a),d.cb(c))};function Ii(a){a=r(a)?a:{};var b=new M;(r(a.attribution)?a.attribution:1)&&b.push(new Fi(r(a.attributionOptions)?a.attributionOptions:void 0));(r(a.logo)?a.logo:1)&&b.push(new Gi(r(a.logoOptions)?a.logoOptions:void 0));(r(a.zoom)?a.zoom:1)&&b.push(new Hi(r(a.zoomOptions)?a.zoomOptions:void 0));return b};function Ji(){}function Ki(a,b,c,d,e){if(null!=c){var f=b.c(),g=b.a();r(f)&&(r(g)&&r(e)&&0<e)&&(a.Ba(hf({rotation:f,duration:e,easing:bf})),r(d)&&a.Ba(gf({source:g,duration:e,easing:bf})));if(null!=d){var k=zi(b,c,d);Li(a,function(){b.za(k);b.d(c)})}else b.d(c)}}function Mi(a,b,c,d,e){var f=b.F();c=b.Ca(f,c,0);Ni(a,b,c,d,e)}
function Ni(a,b,c,d,e){if(null!=c){var f=b.F(),g=b.a();r(f)&&(r(g)&&r(e)&&0<e)&&(a.Ba(jf({resolution:f,duration:e,easing:bf})),r(d)&&a.Ba(gf({source:g,duration:e,easing:bf})));if(null!=d){var k=Ai(b,c,d);Li(a,function(){b.za(k);b.cb(c)})}else b.cb(c)}};function Oi(a){a=r(a)?a:{};this.a=r(a.delta)?a.delta:1;this.b=r(a.duration)?a.duration:250}E(Oi,Ji);Oi.prototype.tb=function(a){var b=!1,c=a.a;if(a.type==ii&&(ei||$b(a.a))){var b=a.map,d=a.d(),c=c.Oa?-this.a:this.a,e=b.a().O();Mi(b,e,c,d,this.b);a.T();b=!0}return!b};function Pi(a){a=a.a;return a.sa&&!a.Fb&&a.Oa}function Qi(a){return"click"==a.a.type}function Ri(a){a=a.a;return!a.sa&&!a.Fb&&!a.Oa}function Si(a){a=a.a;return!a.sa&&!a.Fb&&a.Oa}function Ti(a){a=a.a.target.tagName;return"INPUT"!==a&&"SELECT"!==a&&"TEXTAREA"!==a};function Ui(){this.e=!1;this.c=this.b=this.g=this.f=0;this.cc=this.i=null}E(Ui,Ji);m=Ui.prototype;m.yc=ea;m.Sb=ea;m.Tb=fg;m.Nd=ea;
m.tb=function(a){var b=a.map;if(!b.Vb())return!0;var c=!1,b=b.a(),d=a.a;a.type==li&&this.Nd(a);if(this.e)a.type==ni?(this.b=d.clientX-this.f,this.c=d.clientY-this.g,this.yc(a)):a.type==ki&&(this.b=d.clientX-this.f,this.c=d.clientY-this.g,this.Sb(a),af(b,-1),this.e=!1);else if(a.type==mi){var e=Di(b.O());this.f=d.clientX;this.g=d.clientY;this.c=this.b=0;this.i=e.center;this.cc=a.d();this.Tb(a)&&(af(b,1),this.e=!0,a.T(),c=!0)}return!c};function Vi(a){Ui.call(this);a=r(a)?a:{};this.G=r(a.condition)?a.condition:Ri;this.a=a.kinetic;this.d=null}E(Vi,Ui);Vi.prototype.yc=function(a){this.a&&this.a.a.push(a.a.clientX,a.a.clientY,ta());a=a.map;var b=a.a(),c=Di(b),d=[-c.resolution*this.b,c.resolution*this.c];nd(d,c.rotation);ld(d,this.i);d=b.gb.center(d);Wi(a);b.za(d)};
Vi.prototype.Sb=function(a){a=a.map;var b=a.a().O();if(this.a&&lf(this.a)){var c=Di(b),d=(this.a.d-this.a.b)/this.a.e,e=this.a.c;this.d=mf(this.a,c.center);a.Ba(this.d);c=Xi(a,c.center);d=Yi(a,[c[0]-d*Math.cos(e),c[1]-d*Math.sin(e)]);d=b.gb.center(d);b.za(d)}Wi(a)};Vi.prototype.Tb=function(a){var b=a.a;if($b(b)&&this.G(a)){if(this.a){var c=this.a;c.a.length=0;c.c=0;c.b=0;this.a.a.push(b.clientX,b.clientY,ta())}Wi(a.map);return!0}return!1};
Vi.prototype.Nd=function(a){var b=a.map,c=b.a();null!==this.d&&Pa(b.g,this.d)&&(Wi(b),c.za(a.b.B.center),this.d=null)};function Zi(a){a=r(a)?a:{};Ui.call(this);this.d=r(a.condition)?a.condition:Pi;this.a=void 0}E(Zi,Ui);Zi.prototype.yc=function(a){var b=a.map,c=b.c();a=a.e();c=Math.atan2(c[1]/2-a[1],a[0]-c[0]/2);if(r(this.a)){a=c-this.a;var d=b.a().O(),e=Di(d);Wi(b);Ki(b,d,e.rotation-a)}this.a=c};Zi.prototype.Sb=function(a){a=a.map;var b=a.a().O(),c=Di(b).rotation,c=b.ic(c,0);Ki(a,b,c,void 0,250)};Zi.prototype.Tb=function(a){return $b(a.a)&&this.d(a)?(Wi(a.map),this.a=void 0,!0):!1};function $i(a){var b=Fg("DIV","ol-dragbox");this.c=r(a.condition)?a.condition:gg;this.b=null;this.f=a.cc;Ei.call(this,{element:b})}E($i,Ei);$i.prototype.setMap=function(a){$i.H.setMap.call(this,a);null!==a&&(this.b=Xi(a,this.f),Ih(this.element,this.b[0],this.b[1]),Vh(this.element,new yg(0,0)),this.e.push(H(a,ni,this.g,!1,this)))};
$i.prototype.g=function(a){if(this.c(a)){var b=this.a;a=a.d();b=Xi(b,a);Ih(this.element,Math.min(b[0],this.b[0]),Math.min(b[1],this.b[1]));Vh(this.element,new yg(Math.abs(b[0]-this.b[0]),Math.abs(b[1]-this.b[1])))}};function aj(a){Ui.call(this);a=r(a)?a:{};this.d=r(a.condition)?a.condition:Si;this.a=null}E(aj,Ui);aj.prototype.Sb=function(a){this.a.setMap(null);this.a=null;if(64<=this.b*this.b+this.c*this.c){var b=a.map,c=rd([this.cc,a.d()]);Li(b,function(){var a=b.a(),e=b.c();a.Xc(c,e);a.d(0)})}};aj.prototype.Tb=function(a){return $b(a.a)&&this.d(a)?(this.a=new $i({cc:this.cc}),this.a.setMap(a.map),!0):!1};function bj(a){a=r(a)?a:{};this.a=r(a.condition)?a.condition:lg(Ri,Ti);this.b=r(a.delta)?a.delta:128}E(bj,Ji);bj.prototype.tb=function(a){var b=!1;if("key"==a.type){var c=a.a.Na;if(this.a(a)&&(40==c||37==c||39==c||38==c)){var d=a.map,b=d.a(),e=Di(b),f=e.resolution*this.b,g=0,k=0;40==c?k=-f:37==c?g=-f:39==c?g=f:k=f;c=[g,k];nd(c,e.rotation);e=b.a();r(e)&&(r(100)&&d.Ba(gf({source:e,duration:100,easing:df})),d=b.gb.center([e[0]+c[0],e[1]+c[1]]),b.za(d));a.T();b=!0}}return!b};function cj(a){a=r(a)?a:{};this.b=r(a.condition)?a.condition:Ti;this.a=r(a.delta)?a.delta:1;this.c=r(a.duration)?a.duration:100}E(cj,Ji);cj.prototype.tb=function(a){var b=!1;if("key"==a.type){var c=a.a.bd;if(this.b(a)&&(43==c||45==c)){b=a.map;c=43==c?this.a:-this.a;Wi(b);var d=b.a().O();Mi(b,d,c,void 0,this.c);a.T();b=!0}}return!b};function dj(a){a=r(a)?a:{};this.a=0;this.f=r(a.duration)?a.duration:250;this.c=null;this.d=this.b=void 0}E(dj,Ji);dj.prototype.tb=function(a){var b=!1;if("mousewheel"==a.type){var b=a.map,c=a.a;this.c=a.d();this.a+=c.a/3;r(this.b)||(this.b=ta());c=Math.max(80-(ta()-this.b),0);p.clearTimeout(this.d);this.d=p.setTimeout(y(this.e,this,b),c);a.T();b=!0}return!b};dj.prototype.e=function(a){var b=dd(this.a,-1,1),c=a.a().O();Wi(a);Mi(a,c,-b,this.c,this.f);this.a=0;this.c=null;this.d=this.b=void 0};function ej(){this.c=!1;this.i={};this.targetTouches=[]}E(ej,Ji);function fj(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]}ej.prototype.f=ea;ej.prototype.e=fg;ej.prototype.g=fg;
ej.prototype.tb=function(a){var b=a.map.a(),c=a.type;if(c===oi||c===pi||c===qi)c=a.a.aa,r(c.targetTouches)?this.targetTouches=c.targetTouches:r(c.pointerId)&&(a.type==qi?delete this.i[c.pointerId]:this.i[c.pointerId]=c,this.targetTouches=qc(this.i));this.c&&(a.type==pi?this.f(a):a.type==qi&&((this.c=this.e(a))||af(b,-1)));a.type==oi&&(a=this.g(a),!this.c&&a&&af(b,1),this.c=a);return!0};function gj(a){ej.call(this);this.a=(r(a)?a:{}).kinetic;this.b=this.d=null;this.G=!1}E(gj,ej);gj.prototype.f=function(a){var b=fj(this.targetTouches);if(null!==this.b){this.a&&this.a.a.push(b[0],b[1],ta());var c=this.b[0]-b[0],d=b[1]-this.b[1];a=a.map;var e=a.a().O(),f=Di(e),d=c=[c,d],g=f.resolution;d[0]*=g;d[1]*=g;nd(c,f.rotation);ld(c,f.center);c=e.gb.center(c);Wi(a);e.za(c)}this.b=b};
gj.prototype.e=function(a){a=a.map;var b=a.a();if(0===this.targetTouches.length){if(!this.G&&this.a&&lf(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=b.a();this.d=mf(this.a,e);a.Ba(this.d);e=Xi(a,e);c=Yi(a,[e[0]-c*Math.cos(d),e[1]-c*Math.sin(d)]);c=b.gb.center(c);b.za(c)}Wi(a);return!1}this.b=null;return!0};
gj.prototype.g=function(a){if(0<this.targetTouches.length){var b=a.map,c=b.a();this.b=null;Wi(b);null!==this.d&&Pa(b.g,this.d)&&(c.za(a.b.B.center),this.d=null);this.a&&(a=this.a,a.a.length=0,a.c=0,a.b=0);this.G=1<this.targetTouches.length;return!0}return!1};function hj(a){ej.call(this);a=r(a)?a:{};this.b=null;this.d=void 0;this.a=!1;this.G=0;this.n=r(a.threshold)?a.threshold:0.3}E(hj,ej);hj.prototype.f=function(a){var b=0,c=this.targetTouches[0],d=this.targetTouches[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);r(this.d)&&(b=c-this.d,this.G+=b,!this.a&&Math.abs(this.G)>this.n&&(this.a=!0));this.d=c;a=a.map;c=Oh(a.b);d=fj(this.targetTouches);d[0]-=c.x;d[1]-=c.y;this.b=Yi(a,d);this.a&&(c=a.a().O(),d=Di(c),Wi(a),Ki(a,c,d.rotation+b,this.b))};
hj.prototype.e=function(a){if(2>this.targetTouches.length){a=a.map;var b=a.a().O(),c=Di(b);if(this.a){var c=c.rotation,d=this.b,c=b.ic(c,0);Ki(a,b,c,d,250)}return!1}return!0};hj.prototype.g=function(a){return 2<=this.targetTouches.length?(a=a.map,this.b=null,this.d=void 0,this.a=!1,this.G=0,Wi(a),!0):!1};function ij(a){a=r(a)?a:{};ej.call(this);this.b=null;this.G=r(a.duration)?a.duration:400;this.a=void 0;this.d=1}E(ij,ej);ij.prototype.f=function(a){var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);r(this.a)&&(b=this.a/e);this.a=e;1!=b&&(this.d=b);a=a.map;var e=a.a().O(),c=Di(e),d=Oh(a.b),f=fj(this.targetTouches);f[0]-=d.x;f[1]-=d.y;this.b=Yi(a,f);Wi(a);Ni(a,e,c.resolution*b,this.b)};
ij.prototype.e=function(a){if(2>this.targetTouches.length){a=a.map;var b=a.a().O(),c=Di(b).resolution,d=this.b,e=this.G,c=b.Ca(c,0,this.d-1);Ni(a,b,c,d,e);return!1}return!0};ij.prototype.g=function(a){return 2<=this.targetTouches.length?(a=a.map,this.b=null,this.a=void 0,this.d=1,Wi(a),!0):!1};function jj(a){a=r(a)?a:{};var b=new M,c=new kf(-0.005,0.05,100);(r(a.altShiftDragRotate)?a.altShiftDragRotate:1)&&b.push(new Zi);(r(a.doubleClickZoom)?a.doubleClickZoom:1)&&b.push(new Oi({delta:a.zoomDelta,duration:a.zoomDuration}));(r(a.touchPan)?a.touchPan:1)&&b.push(new gj({kinetic:c}));(r(a.touchRotate)?a.touchRotate:1)&&b.push(new hj);(r(a.touchZoom)?a.touchZoom:1)&&b.push(new ij({duration:a.zoomDuration}));(r(a.dragPan)?a.dragPan:1)&&b.push(new Vi({kinetic:c}));if(r(a.keyboard)?a.keyboard:
1)b.push(new bj),b.push(new cj({delta:a.zoomDelta,duration:a.zoomDuration}));(r(a.mouseWheelZoom)?a.mouseWheelZoom:1)&&b.push(new dj({duration:a.zoomDuration}));(r(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new aj);return b};function kj(a){var b=r(a)?a:{};a=xc(b);delete a.layers;b=b.layers;P.call(this,a);this.a=null;H(this,Zc("layers"),this.$e,!1,this);r(b)?ia(b)&&(b=new M(Ra(b))):b=new M;this.c(b)}E(kj,P);m=kj.prototype;m.zc=function(){this.b()&&Xe(this)};m.Pd=function(){Xe(this)};
m.$e=function(){null!==this.a&&(Ja(qc(this.a),Lc),this.a=null);var a=this.Ya();if(null!=a){this.a={add:H(a,"add",this.Ze,!1,this),remove:H(a,"remove",this.af,!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()]=H(d,"change",this.zc,!1,this)}Xe(this)};m.Ze=function(a){a=a.a;this.a[v(a).toString()]=H(a,"change",this.zc,!1,this);Xe(this)};m.af=function(a){a=v(a.a).toString();Lc(this.a[a]);delete this.a[a];Xe(this)};m.Ya=function(){return this.get("layers")};
kj.prototype.getLayers=kj.prototype.Ya;kj.prototype.c=function(a){this.k("layers",a)};kj.prototype.setLayers=kj.prototype.c;kj.prototype.Nb=function(a){var b=r(a)?a:[];this.Ya().forEach(function(a){a.Nb(b)});return b};
kj.prototype.$c=function(a){var b=r(a)?a:{layers:[],pa:[]},c=b.layers.length;this.Ya().forEach(function(a){a.$c(b)});a=Ye(this);var d,e;for(d=b.pa.length;c<d;c++)e=b.pa[c],e.brightness=dd(e.brightness+a.brightness,-1,1),e.contrast*=a.contrast,e.hue+=a.hue,e.opacity*=a.opacity,e.saturation*=a.saturation,e.bc=this.kb(),e.visible=e.visible&&a.visible,e.maxResolution=Math.min(e.maxResolution,a.maxResolution),e.minResolution=Math.max(e.minResolution,a.minResolution);return b};
kj.prototype.kb=function(){var a=[0,0,0],b=this.Ya().a,c=b.length,d;for(d=0;d<c;++d){var e=b[d].kb();++a[e]}return a[1]?1:a[0]?0:a[2]?2:1};function lj(a){return Math.pow(2,Math.ceil(Math.log(a)/Math.LN2))};function mj(a){Rd.call(this,{code:a,units:"m",extent:nj,global:!0})}E(mj,Rd);var oj=6378137*Math.PI,nj=[-oj,-oj,oj,oj],ne=La(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913","urn:ogc:def:crs:EPSG:6.18:3:3857"],function(a){return new mj(a)});function oe(a,b,c){var d=a.length;c=1<c?c:2;r(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 pe(a,b,c){var d=a.length;c=1<c?c:2;r(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}mj.prototype.b=function(a,b){return a/((Math.exp(b[1]/6378137)+Math.exp(-(b[1]/6378137)))/2)};function pj(a,b){Rd.call(this,{code:a,units:"degrees",extent:qj,axisOrientation:b,global:!0})}E(pj,Rd);var qj=[-180,-90,180,90],qe=[new pj("CRS:84"),new pj("EPSG:4326","neu"),new pj("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new pj("urn:ogc:def:crs:OGC:1.3:CRS84"),new pj("urn:ogc:def:crs:OGC:2:84"),new pj("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new pj("urn:x-ogc:def:crs:EPSG:4326","neu")];pj.prototype.b=function(a){return a};function rj(){$d(ne);$d(qe);me()};function sj(a,b,c,d,e){Sc.call(this);this.d=e;this.e=a;this.g=c;this.f=b;this.a=new Image;null!==d&&(this.a.crossOrigin=d);this.c={};this.b=null;this.state=0}E(sj,Sc);sj.prototype.ba=h("e");function tj(a,b){if(r(b)){var c,d=v(b);if(d in a.c)return a.c[d];c=uc(a.c)?a.a:a.a.cloneNode(!1);return a.c[d]=c}return a.a}sj.prototype.F=h("f");sj.prototype.i=function(){this.state=3;Ja(this.b,Lc);this.b=null;I(this,"change")};sj.prototype.n=function(){this.state=2;Ja(this.b,Lc);this.b=null;I(this,"change")};
function uj(a){0==a.state&&(a.state=1,a.b=[Ic(a.a,"error",a.i,!1,a),Ic(a.a,"load",a.n,!1,a)],a.a.src=a.g)};function vj(a){this.minZoom=r(a.minZoom)?a.minZoom:0;this.a=a.resolutions;this.maxZoom=this.a.length-1;this.d=r(a.origin)?a.origin:null;this.f=null;r(a.origins)&&(this.f=a.origins);this.b=null;r(a.tileSizes)&&(this.b=a.tileSizes);this.e=r(a.tileSize)?a.tileSize:null===this.b?[256,256]:null}var wj=new Za(0,0,0);m=vj.prototype;m.rc=function(a,b,c,d,e){e=xj(this,a,e);for(a=a.z-1;a>=this.minZoom;){if(b.call(c,a,yj(this,e,a,d)))return!0;--a}return!1};m.Ie=h("minZoom");
m.Eb=function(a){return null===this.d?this.f[a]:this.d};m.F=function(a){return this.a[a]};m.Ob=h("a");m.vc=function(a,b,c){return a.z<this.maxZoom?(c=xj(this,a,c),yj(this,c,a.z+1,b)):null};function zj(a,b,c,d){Aj(a,b[0],b[1],c,!1,wj);var e=wj.x,f=wj.y;Aj(a,b[2],b[3],c,!0,wj);return db(e,wj.x,f,wj.y,d)}function yj(a,b,c,d){c=a.F(c);return zj(a,b,c,d)}function dk(a,b){var c=a.Eb(b.z),d=a.F(b.z),e=a.xa(b.z);return[c[0]+(b.x+0.5)*e[0]*d,c[1]+(b.y+0.5)*e[1]*d]}
function xj(a,b,c){var d=a.Eb(b.z),e=a.F(b.z);a=a.xa(b.z);var f=d[0]+b.x*a[0]*e;b=d[1]+b.y*a[1]*e;return vd(f,f+a[0]*e,b,b+a[1]*e,c)}function Aj(a,b,c,d,e,f){var g=ui(a.a,d,0),k=d/a.F(g),l=a.Eb(g);a=a.xa(g);b=k*(b-l[0])/(d*a[0]);c=k*(c-l[1])/(d*a[1]);e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));e=b;r(f)?(f.z=g,f.x=e,f.y=c):f=new Za(g,e,c);return f}function ek(a,b,c){c=a.F(c);return Aj(a,b[0],b[1],c,!1,void 0)}m.xa=function(a){return null===this.e?this.b[a]:this.e};
function fk(a){var b=a.e;if(null===b){for(var b=a.ba(),c=null===b?360*Qd.degrees/a.a():Math.max(b[2]-b[0],b[3]-b[1]),d=r(void 0)?void 0:[256,256],e=Array((r(void 0)?NaN:42)+1),c=c/Math.max(d[0],d[1]),f=0,g=e.length;f<g;++f)e[f]=c/Math.pow(2,f);b=new vj({origin:null===b?[0,0]:Ad(b),resolutions:e,tileSize:d});a.e=b}return b};function gk(a){Ve.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.K=r(a.opaque)?a.opaque:!1;this.tileGrid=r(a.tileGrid)?a.tileGrid:null}E(gk,Ve);m=gk.prototype;m.kd=fg;m.Wc=function(a,b,c,d){var e=!0,f,g,k,l;for(k=d.a;k<=d.d;++k)for(l=d.c;l<=d.b;++l)g=this.Wa(c,k,l),a[c]&&a[c][g]||(f=b(c,k,l),null===f?e=!1:(a[c]||(a[c]={}),a[c][g]=f));return e};m.Wa=ab;m.Ob=function(){return this.tileGrid.Ob()};m.Le=h("tileGrid");m.ke=ea;function hk(a,b){fb.call(this);this.a=a;this.b=b}E(hk,fb);hk.prototype.La=function(a,b,c){var d=this.b,e=d.ja();ma(e.La)&&e.La(a,this.a.f,function(a){b(a,d)},c)};hk.prototype.o=function(a){2===a.target.state&&(a=this.b,a.b()&&1==a.kb()&&ik(this.a.f))};function jk(a,b){b.kd()&&a.$a.push(sa(function(a,b,e){b=v(a).toString();a.Mb(e.ec[b])},b))}function kk(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 lk(a,b){var c=b.g;r(c)&&(a.Sd[c]=!0)}
function mk(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.c<a.c&&(a.c=d.c),d.b>a.b&&(a.b=d.b)):a[b][c]=d:(a[b]={},a[b][c]=d)}function nk(a,b,c){return function(d,e,f){d=b.Ab(d,e,f,c);return a(d)?d:null}}function ok(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 pk(a,b,c,d,e,f,g,k,l){var n=v(b).toString();n in a.Kb||(a.Kb[n]={});var q=a.Kb[n];a=a.Xf;var s=c.minZoom,x,t,A,B,w,z;for(z=f;z>=s;--z)for(t=yj(c,e,z),A=c.F(z),B=t.a;B<=t.d;++B)for(w=t.c;w<=t.b;++w)f-z<=g?(x=b.Ab(z,B,w,d),0==x.state&&(q[x.L.toString()]=!0,x.a()in a.c||Re(a,[x,n,dk(c,x.L),A])),r(k)&&k.call(l,x)):b.ke(z,B,w)};function qk(a,b){fb.call(this);this.f=b;this.d={}}E(qk,fb);
function rk(a){var b=a.B,c=a.zd;He(c);Le(c,a.size[0]/2,a.size[1]/2);Me(c,1/b.resolution,-1/b.resolution);Ne(c,-b.rotation);Le(c,-b.center[0],-b.center[1]);a=a.ae;var b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],k=c[5],l=c[6],n=c[7],q=c[8],s=c[9],x=c[10],t=c[11],A=c[12],B=c[13],w=c[14],c=c[15],z=b*k-d*g,J=b*l-e*g,D=b*n-f*g,S=d*l-e*k,V=d*n-f*k,Q=e*n-f*l,G=q*B-s*A,L=q*w-x*A,da=q*c-t*A,va=s*w-x*B,ha=s*c-t*B,la=x*c-t*w,aa=z*la-J*ha+D*va+S*da-V*L+Q*G;0!=aa&&(aa=1/aa,a[0]=(k*la-l*ha+n*va)*aa,a[1]=(-d*la+e*ha-f*va)*
aa,a[2]=(B*Q-w*V+c*S)*aa,a[3]=(-s*Q+x*V-t*S)*aa,a[4]=(-g*la+l*da-n*L)*aa,a[5]=(b*la-e*da+f*L)*aa,a[6]=(-A*Q+w*D-c*J)*aa,a[7]=(q*Q-x*D+t*J)*aa,a[8]=(g*ha-k*da+n*G)*aa,a[9]=(-b*ha+d*da-f*G)*aa,a[10]=(A*V-B*D+c*z)*aa,a[11]=(-q*V+s*D-t*z)*aa,a[12]=(-g*va+k*L-l*G)*aa,a[13]=(b*va-d*L+e*G)*aa,a[14]=(-A*S+B*J-w*z)*aa,a[15]=(q*S-s*J+x*z)*aa)}m=qk.prototype;m.jc=function(a){return new hk(this,a)};m.A=function(){mc(this.d,function(a){jb(a)});qk.H.A.call(this)};m.tc=hg;
m.La=function(a,b,c,d){function e(a,d){g[Ga(b,d)]=a;--f;f||c(g)}for(var f=b.length,g=Array(f),k,l=0;l<f;++l)k=b[l],k=sk(this,k),ma(k.La)?k.La(a,e,d):--f};function tk(a,b,c,d,e){function f(a,b){k[Ga(c,b)]=a;--g;g||d(k)}for(var g=c.length,k=Array(g),l,n=0;n<g;++n)l=c[n],l=sk(a,l),ma(l.jd)?l.jd(b,f,e):--g}function sk(a,b){var c=v(b).toString();if(c in a.d)return a.d[c];var d=a.jc(b);return a.d[c]=d}m.Gc=ea;
m.Pf=function(a,b){for(var c in this.d)if(!(null!==b&&c in b.pa)){var d=this.d[c];delete this.d[c];jb(d)}};function uk(a,b){for(var c in a.d)if(!(c in b.pa)){b.$a.push(y(a.Pf,a));break}};var vk=function(){if(!("HTMLCanvasElement"in p))return!1;try{return null!==Ig("CANVAS").getContext("2d")}catch(a){return!1}}();function wk(a,b){var c=xk;return function(d,e,f){return c(a,b,d,e,f)}}function yk(){};function zk(a){Ve.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection});this.Db=r(a.Db)?a.Db:yk;this.n=r(a.crossOrigin)?a.crossOrigin:null;this.b=r(a.resolutions)?a.resolutions:null}E(zk,Ve);function Ak(a,b,c,d,e){var f=null;d=a.Db(b,d,e);r(d)&&(f=new sj(b,c,d,a.n,a.d));return f};function Bk(a){Ze.call(this,a)}E(Bk,Ze);function Ck(a){Ze.call(this,a);this.v(r(a.preload)?a.preload:0)}E(Ck,Ze);Ck.prototype.c=function(){return this.get("preload")};Ck.prototype.getPreload=Ck.prototype.c;Ck.prototype.v=function(a){this.k("preload",a)};Ck.prototype.setPreload=Ck.prototype.v;function Dk(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:p.setTimeout(a,b||0)};function Ek(){}Ek.prototype.a=null;function Fk(a){var b;(b=a.a)||(b={},Gk(a)&&(b[0]=!0,b[1]=!0),b=a.a=b);return b};var Hk;function Ik(){}E(Ik,Ek);function Jk(a){return(a=Gk(a))?new ActiveXObject(a):new XMLHttpRequest}function Gk(a){if(!a.b&&"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.b=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.b}Hk=new Ik;function Kk(a){Sc.call(this);this.la=new Cf;this.n=a||null;this.b=!1;this.i=this.a=null;this.ia=this.r="";this.d=0;this.f="";this.c=this.v=this.q=this.o=!1;this.g=0;this.e=null;this.Q=Lk;this.s=this.va=!1}E(Kk,Sc);var Lk="",Mk=/^https?$/i,Nk=["POST","PUT"],Ok=[];function Pk(a,b){var c=new Kk;Ok.push(c);b&&c.Pa("complete",b);c.Da.add("ready",c.W,!0,void 0,void 0);Qk(c,a,void 0,void 0,void 0)}Kk.prototype.W=function(){this.mc();Pa(Ok,this)};
function Qk(a,b,c,d,e){if(a.a)throw Error("[goog.net.XhrIo] Object is active with another request\x3d"+a.r+"; newUri\x3d"+b);c=c?c.toUpperCase():"GET";a.r=b;a.f="";a.d=0;a.ia=c;a.o=!1;a.b=!0;a.a=a.n?Jk(a.n):Jk(Hk);a.i=a.n?Fk(a.n):Fk(Hk);a.a.onreadystatechange=y(a.K,a);try{a.v=!0,a.a.open(c,b,!0),a.v=!1}catch(f){Rk(a,f);return}b=d||"";var g=a.la.$();e&&of(e,function(a,b){Df(g,b,a)});e=Na(g.Fa(),Sk);d=p.FormData&&b instanceof p.FormData;!(0<=Ga(Nk,c))||(e||d)||Df(g,"Content-Type","application/x-www-form-urlencoded;charset\x3dutf-8");
of(g,function(a,b){this.a.setRequestHeader(b,a)},a);a.Q&&(a.a.responseType=a.Q);"withCredentials"in a.a&&(a.a.withCredentials=a.va);try{Tk(a),0<a.g&&(a.s=F&&Qb(9)&&ka(a.a.timeout)&&r(a.a.ontimeout),a.s?(a.a.timeout=a.g,a.a.ontimeout=y(a.ub,a)):a.e=Dk(a.ub,a.g,a)),a.q=!0,a.a.send(b),a.q=!1}catch(k){Rk(a,k)}}function Sk(a){return"content-type"==a.toLowerCase()}
Kk.prototype.ub=function(){"undefined"!=typeof ca&&this.a&&(this.f="Timed out after "+this.g+"ms, aborting",this.d=8,I(this,"timeout"),this.a&&this.b&&(this.b=!1,this.c=!0,this.a.abort(),this.c=!1,this.d=8,I(this,"complete"),I(this,"abort"),Uk(this)))};function Rk(a,b){a.b=!1;a.a&&(a.c=!0,a.a.abort(),a.c=!1);a.f=b;a.d=5;Vk(a);Uk(a)}function Vk(a){a.o||(a.o=!0,I(a,"complete"),I(a,"error"))}Kk.prototype.A=function(){this.a&&(this.b&&(this.b=!1,this.c=!0,this.a.abort(),this.c=!1),Uk(this,!0));Kk.H.A.call(this)};
Kk.prototype.K=function(){if(!this.Yb&&this.b&&"undefined"!=typeof ca&&(!this.i[1]||4!=Wk(this)||2!=Xk(this)))if(this.q&&4==Wk(this))Dk(this.K,0,this);else if(I(this,"readystatechange"),4==Wk(this)){this.b=!1;try{if(Yk(this))I(this,"complete"),I(this,"success");else{this.d=6;var a;try{a=2<Wk(this)?this.a.statusText:""}catch(b){a=""}this.f=a+" ["+Xk(this)+"]";Vk(this)}}finally{Uk(this)}}};
function Uk(a,b){if(a.a){Tk(a);var c=a.a,d=a.i[0]?ea:null;a.a=null;a.i=null;b||I(a,"ready");try{c.onreadystatechange=d}catch(e){}}}function Tk(a){a.a&&a.s&&(a.a.ontimeout=null);ka(a.e)&&(p.clearTimeout(a.e),a.e=null)}
function Yk(a){var b=Xk(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=Hf(String(a.r))[1]||null,!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1)),b=!Mk.test(a?a.toLowerCase():"");c=b}return c}function Wk(a){return a.a?a.a.readyState:0}function Xk(a){try{return 2<Wk(a)?a.a.status:-1}catch(b){return-1}}function Zk(a){try{return a.a?a.a.responseText:""}catch(b){return""}};function $k(a){this.b=r(a.data)?a.data:null;this.a=0;this.n=r(a.parser)?a.parser:null;this.e=a.url;Ve.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection})}E($k,Ve);function al(a,b,c,d){r(a.e)&&0==a.a?(a.a=1,Pk(a.e,y(function(a){a=a.target;Yk(a)?(bl(b,Zk(a),this.n,c),this.a=2,r(d)&&d()):this.a=3},a))):null!==a.b&&(bl(b,a.b,a.n,c),a.b=null,a.a=2);return a.a};function cl(a){this.c=r(a)?a:6;this.a=Math.floor(this.c/2);this.b={extent:sd(),l:[]}}function dl(a){var b=a.l.length,c=a.extent;if(0===b)c[0]=c[1]=Infinity,c[2]=c[3]=-Infinity;else{var d=a.l[0].extent;c[0]=d[0];c[2]=d[2];c[1]=d[1];c[3]=d[3];for(d=1;d<b;++d)zd(c,a.l[d].extent)}}function el(a,b,c){var d=(a+b)/2;a*=b;return a*c/(a/(d*d))}
function fl(a,b,c){var d;if(0===c.l.length)c.extent=b.extent.slice(),c.l.push(b);else{var e=-1,f=[],g;f.push(c);c=c.l;do{-1!=e&&(f.push(c[e]),c=c[e].l,e=-1);for(var k=c.length-1;0<=k;--k){var l=c[k];if(r(l.sb)){e=-1;break}var n=el(l.extent[2]-l.extent[0],l.extent[3]-l.extent[1],l.l.length+1),l=el((l.extent[2]>b.extent[2]?l.extent[2]:b.extent[2])-(l.extent[0]<b.extent[0]?l.extent[0]:b.extent[0]),(l.extent[3]>b.extent[3]?l.extent[3]:b.extent[3])-(l.extent[1]<b.extent[1]?l.extent[1]:b.extent[1]),l.l.length+
2);if(0>e||Math.abs(l-n)<g)g=Math.abs(l-n),e=k}}while(-1!=e);do{if(d&&r(d.l)&&0===d.l.length)for(e=d,d=f.pop(),g=0,c=d.l.length;g<c;++g){if(d.l[g]===e||0===d.l[g].l.length){d.l.splice(g,1);break}}else d=f.pop();e=ia(b);if(r(b.sb)||r(b.l)||e){if(e){e=0;for(g=b.length;e<g;++e)zd(d.extent,b[e].extent);d.l=d.l.concat(b)}else zd(d.extent,b.extent),d.l.push(b);if(d.l.length<=a.c)b={extent:d.extent.slice()};else{b=a;g=e=d.l;c=g.length-1;for(var k=0,n=g.length-1,l=0,q=void 0,s=void 0,q=g.length-2;0<=q;--q)s=
g[q],s.extent[0]>g[k].extent[0]?k=q:s.extent[2]<g[c].extent[1]&&(c=q),s.extent[1]>g[l].extent[1]?l=q:s.extent[3]<g[n].extent[3]&&(n=q);Math.abs(g[c].extent[2]-g[k].extent[0])>Math.abs(g[n].extent[3]-g[l].extent[1])?c>k?(q=g.splice(c,1)[0],s=g.splice(k,1)[0]):(s=g.splice(k,1)[0],q=g.splice(c,1)[0]):n>l?(q=g.splice(n,1)[0],s=g.splice(l,1)[0]):(s=g.splice(l,1)[0],q=g.splice(n,1)[0]);for(g=[{extent:q.extent.slice(),l:[q]},{extent:s.extent.slice(),l:[s]}];0<e.length;){c=b;for(var k=e,n=g[0],l=g[1],s=el(n.extent[2]-
n.extent[0],n.extent[3]-n.extent[1],n.l.length+1),x=el(l.extent[2]-l.extent[0],l.extent[3]-l.extent[1],l.l.length+1),t=void 0,A=void 0,q=void 0,B=k.length-1;0<=B;--B){var w=k[B],z=[n.extent[0]<w.extent[0]?n.extent[0]:w.extent[0],n.extent[2]>w.extent[2]?n.extent[2]:w.extent[2],n.extent[1]<w.extent[1]?n.extent[1]:w.extent[1],n.extent[3]>w.extent[3]?n.extent[3]:w.extent[3]],z=Math.abs(el(z[1]-z[0],z[3]-z[2],n.l.length+2)-s),w=[l.extent[0]<w.extent[0]?l.extent[0]:w.extent[0],l.extent[2]>w.extent[2]?l.extent[2]:
w.extent[2],l.extent[1]<w.extent[1]?l.extent[1]:w.extent[1],l.extent[3]>w.extent[3]?l.extent[3]:w.extent[3]],w=Math.abs(el(w[1]-w[0],w[3]-w[2],l.l.length+2)-x),J=Math.abs(w-z);if(!A||!t||J<t)A=B,t=J,q=w<z?l:n}s=k.splice(A,1)[0];n.l.length+k.length+1<=c.a?(n.l.push(s),zd(n.extent,s.extent)):l.l.length+k.length+1<=c.a?(l.l.push(s),zd(l.extent,s.extent)):(q.l.push(s),zd(q.extent,s.extent))}b=e=g;1>f.length&&(d.l.push(e[0]),f.push(d),b=e[1])}}else zd(d.extent,b.extent),b={extent:d.extent.slice()}}while(0<
f.length)}}cl.prototype.remove=function(a,b){arguments[0]={extent:a};switch(arguments.length){case 1:arguments[1]=!1;case 2:arguments[2]=this.b;default:arguments.length=3}if(!1===arguments[1]){var c=0,d=[];do c=d.length,d=d.concat(this.d.apply(this,arguments));while(c!=d.length);return d}return this.d.apply(this,arguments)};
cl.prototype.d=function(a,b,c){var d=[],e=[],f=[];if(!a||!Ed(a.extent,c.extent))return f;a=a.extent.slice();var g;e.push(c.l.length);d.push(c);do{c=d.pop();var k=e.pop()-1;if(r(b))for(;0<=k;){var l=c.l[k];if(Ed(a,l.extent))if(b&&r(l.sb)&&l.sb===b||!b&&(r(l.sb)||xd(a,l.extent))){r(l.l)?(f=gl(l,!0,[],l),c.l.splice(k,1)):f=c.l.splice(k,1);dl(c);b=void 0;c.l.length<this.a&&(g=gl(c,!0,[],c));break}else r(l.l)&&(e.push(k),d.push(c),c=l,k=l.l.length);k-=1}else if(r(g)){c.l.splice(k+1,1);0<c.l.length&&dl(c);
k=0;for(l=g.length;k<l;++k)fl(this,g[k],c);g.length=0;0===d.length&&1>=c.l.length?(g=gl(c,!0,g,c),c.l.length=0,d.push(c),e.push(1)):0<d.length&&c.l.length<this.a?(g=gl(c,!0,g,c),c.l.length=0):g=void 0}else dl(c)}while(0<d.length);return f};
function gl(a,b,c,d,e,f){var g={},k=[];if(!Ed(a.extent,d.extent))return c;k.push(d.l);do{d=k.pop();for(var l=d.length-1;0<=l;--l){var n=d[l];Ed(a.extent,n.extent)&&(r(n.l)?k.push(n.l):r(n.sb)&&(b?c.push(n):r(e)&&n.type!=e||(n=n.sb,r(f)?g[v(n).toString()]=n:c.push(n))))}}while(0<k.length);return r(f)?g:c};function T(){}function hl(a,b){this.c=a;this.b=b}E(hl,T);hl.prototype.a=function(a,b,c){var d=this.c.a(null!=b?b:a);if(!d||!ma(d))throw Error("Expected function but found "+d);for(var e=r(c)?c:{},f=this.b.length,g=Array(f),k=0;k<f;++k)g[k]=this.b[k].a(a,b,c);return d.apply(e,g)};var il={Ag:"\x3d\x3d",Ug:"!\x3d",Zg:"\x3d\x3d\x3d",$g:"!\x3d\x3d",Dg:"\x3e",Kg:"\x3c",Eg:"\x3e\x3d",Lg:"\x3c\x3d"};function jl(a,b,c){this.b=a;this.Ha=b;this.Ka=c}E(jl,T);
var kl=function(){var a={},b;for(b in il)a[il[b]]=!0;return function(b){return!!a[b]}}();jl.prototype.a=function(a,b,c){var d;d=this.Ka.a(a,b,c);a=this.Ha.a(a,b,c);b=this.b;if("\x3d\x3d"===b)d=a==d;else if("!\x3d"===b)d=a!=d;else if("\x3d\x3d\x3d"===b)d=a===d;else if("!\x3d\x3d"===b)d=a!==d;else if("\x3e"===b)d=a>d;else if("\x3c"===b)d=a<d;else if("\x3e\x3d"===b)d=a>=d;else if("\x3c\x3d"===b)d=a<=d;else throw Error("Unsupported comparison operator: "+this.b);return d};function ll(a){this.b=a}
E(ll,T);ll.prototype.a=function(a){if(null==a)throw Error("Attempt to evaluate identifier with no scope");return a[this.b]};function U(a){this.Sa=a}E(U,T);U.prototype.a=h("Sa");var ml={ig:"\x26\x26",Vg:"||"};function nl(a,b,c){this.b=a;this.Ha=b;this.Ka=c}E(nl,T);var pl=function(){var a={},b;for(b in ml)a[ml[b]]=!0;return function(b){return!!a[b]}}();
nl.prototype.a=function(a,b,c){var d;d=this.Ka.a(a,b,c);a=this.Ha.a(a,b,c);if("\x26\x26"===this.b)d=a&&d;else if("||"===this.b)d=a||d;else throw Error("Unsupported logical operator: "+this.b);return d};var ql={hg:"+",ah:"-",Qg:"*",tg:"/",Og:"%"};function rl(a,b,c){this.b=a;this.Ha=b;this.Ka=c}E(rl,T);var sl=function(){var a={},b;for(b in ql)a[ql[b]]=!0;return function(b){return!!a[b]}}();
rl.prototype.a=function(a,b,c){var d;d=this.Ka.a(a,b,c);a=this.Ha.a(a,b,c);b=this.b;if("+"===b)d=a+d;else if("-"===b)d=Number(a)-Number(d);else if("*"===b)d=Number(a)*Number(d);else if("/"===b)d=Number(a)/Number(d);else if("%"===b)d=Number(a)%Number(d);else throw Error("Unsupported math operator: "+this.b);return d};function tl(a,b){this.b=a;this.c=b}E(tl,T);tl.prototype.a=function(a,b,c){a=this.b.a(a,b,c);if(!na(a))throw Error("Expected member expression to evaluate to an object but got "+a);return this.c.a(a)};
function ul(a){this.b=a}E(ul,T);ul.prototype.a=function(a,b,c){return!this.b.a(a,b,c)};function vl(a){this.b=a;this.c=a.length;this.d=this.a=0}function wl(a,b){if(!a.match(b))throw new xl({type:"Unknown",value:a.b[a.a],index:a.a});a.a=a.d}function yl(a,b){a.a+=b}function zl(a){return 48<=a&&57>=a}function Al(a){return 36===a||95===a||65<=a&&90>=a||97<=a&&122>=a}function Bl(a){return a.b.charCodeAt(a.a+0)}vl.prototype.match=function(a){var b=Cl(this);return"Punctuator"===b.type&&b.value===a};
vl.prototype.next=function(){var a;for(a=NaN;this.a<this.c;)if(a=Bl(this),32===a||9===a||11===a||12===a||160===a||5760<=a&&0<"\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005"+"\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\ufeff".indexOf(String.fromCharCode(a)))yl(this,1);else break;if(this.a>=this.c)a={type:"\x3cend\x3e",value:null,index:this.a};else if(40===a||41===a)a=Dl(this,a);else if(39===a||34===a){var b=this.a;yl(this,1);for(var c="",d;this.a<this.c;){d=Bl(this);yl(this,1);if(d===a){a=
0;break}92===d?(c+=this.b[this.a],yl(this,1)):c+=String.fromCharCode(d)}if(0!==a)throw new xl(Cl(this));a={type:"String",value:c,index:b}}else if(Al(a)){b=a;a=this.a;for(yl(this,1);this.a<this.c;)if(b=Bl(this),Al(b)||48<=b&&57>=b)yl(this,1);else break;b=this.b.slice(a,this.a);a={type:1===b.length?"Identifier":"break"===b||"case"===b||"catch"===b||"continue"===b||"debugger"===b||"default"===b||"delete"===b||"do"===b||"else"===b||"finally"===b||"for"===b||"function"===b||"if"===b||"in"===b||"instanceof"===
b||"new"===b||"return"===b||"switch"===b||"this"===b||"throw"===b||"try"===b||"typeof"===b||"var"===b||"void"===b||"while"===b||"with"===b?"Keyword":"null"===b?"Null":"true"===b||"false"===b?"Boolean":"Identifier",value:b,index:a}}else a=46===a?zl(this.b.charCodeAt(this.a+1))?El(this,a):Dl(this,a):zl(a)?El(this,a):Dl(this,a);return a};function Cl(a){var b=a.a,c=a.next();a.d=a.a;a.a=b;return c}
function El(a,b){var c="",d=a.a;if(46!==b){if(48===b){var e=a.b.charCodeAt(a.a+1);if(88===e||120===e){yl(a,2);c=Bl(a);d="";for(e=a.a-2;a.a<a.c&&(zl(c)||97<=c&&102>=c||65<=c&&70>=c);)d+=String.fromCharCode(c),yl(a,1),c=Bl(a);if(0===d.length||Al(c))throw new xl({type:"Unknown",value:String.fromCharCode(c),index:a.a});return{type:"Numeric",value:parseInt("0x"+d,16),index:e}}if(48<=e&&55>=e){yl(a,1);d="0"+String.fromCharCode(e);e=a.a-1;for(yl(a,1);a.a<a.c;){c=Bl(a);if(!(48<=c&&55>=c))break;d+=String.fromCharCode(c);
yl(a,1)}c=Bl(a);if(Al(c)||zl(c))throw new xl({type:"Unknown",value:String.fromCharCode(c),index:a.a});return{type:"Numeric",value:parseInt(d,8),index:e}}if(zl(e))throw new xl({type:"Unknown",value:String.fromCharCode(e),index:a.a});}for(;zl(b);)c+=String.fromCharCode(b),yl(a,1),b=Bl(a)}if(46===b)for(c+=String.fromCharCode(b),yl(a,1),b=Bl(a);zl(b);)c+=String.fromCharCode(b),yl(a,1),b=Bl(a);if(69===b||101===b){c+="E";yl(a,1);b=Bl(a);if(43===b||45===b)c+=String.fromCharCode(b),yl(a,1),b=Bl(a);if(!zl(b))throw new xl({type:"Unknown",
value:String.fromCharCode(b),index:a.a});for(;zl(b);)c+=String.fromCharCode(b),yl(a,1),b=Bl(a)}if(Al(b))throw new xl({type:"Unknown",value:String.fromCharCode(b),index:a.a});return{type:"Numeric",value:parseFloat(c),index:d}}
function Dl(a,b){var c=a.a;if(46===b||40===b||41===b||44===b||43===b||45===b||42===b||47===b||37===b||126===b)return yl(a,1),{type:"Punctuator",value:String.fromCharCode(b),index:c};var d=a.b.charCodeAt(a.a+1);if(61===d){if(33===b||61===b)return yl(a,2),61===Bl(a)?(yl(a,1),{type:"Punctuator",value:String.fromCharCode(b)+"\x3d\x3d",index:c}):{type:"Punctuator",value:String.fromCharCode(b)+"\x3d",index:c};if(62===b||60===b)return yl(a,2),{type:"Punctuator",value:String.fromCharCode(b)+"\x3d",index:c}}if(b===
d&&(124===b||38===b))return yl(a,2),d=String.fromCharCode(b),{type:"Punctuator",value:d+d,index:c};if(62===b||60===b||33===b||38===b||124===b)return yl(a,1),{type:"Punctuator",value:String.fromCharCode(b),index:c};throw new xl({type:"Unknown",value:String.fromCharCode(b),index:a.a});}function xl(a,b){ua.call(this,r(b)?b:"Unexpected token "+a.value+" at index "+a.index);this.a=a}E(xl,ua);xl.prototype.name="UnexpectedToken";function Fl(){}function Gl(a){var b=0;if("Punctuator"!==a.type)return b;switch(a.value){case "||":b=1;break;case "\x26\x26":b=2;break;case "\x3d\x3d":case "!\x3d":case "\x3d\x3d\x3d":case "!\x3d\x3d":b=3;break;case "\x3e":case "\x3c":case "\x3e\x3d":case "\x3c\x3d":b=4;break;case "+":case "-":b=5;break;case "*":case "/":case "%":b=6}return b}
function Hl(a,b,c){if(kl(a))a=new jl(a,b,c);else if(pl(a))a=new nl(a,b,c);else if(sl(a))a=new rl(a,b,c);else throw Error("Unsupported binary operator: "+a);return a}function Il(a){return new U(a)}function Jl(a){var b=new vl(a);a=Kl(new Fl,b);b=Cl(b);if("\x3cend\x3e"!==b.type)throw new xl(b);return a}
function Kl(a,b){var c=Ll(a,b),d=Cl(b),e=Gl(d);if(0===e)return c;b.a=b.d;for(var f=Ll(a,b),g=[c,d,f],e=Gl(Cl(b));0<e;){for(;2<g.length&&e<=Gl(g[g.length-2]);)f=g.pop(),d=g.pop(),c=g.pop(),g.push(Hl(d.value,c,f));g.push(b.next());g.push(Ll(a,b));e=Gl(Cl(b))}c=g.length-1;for(d=g[c];1<c;)d=Hl(g[c-1].value,g[c-2],d),c-=2;return d}
function Ml(a,b){var c;c=Cl(b);if("("===c.value)wl(b,"("),c=Kl(a,b),wl(b,")");else{b.a=b.d;var d=c.type;if("Identifier"===d)c=new ll(c.value);else if("String"===d||"Numeric"===d)c=Il(c.value);else if("Boolean"===d)c=Il("true"===c.value);else if("Null"===d)c=Il(null);else throw new xl(c);}d=Cl(b);if("("===d.value){if(!(c instanceof ll))throw new xl(d);d=[];wl(b,"(");if(!b.match(")"))for(;;){d.push(Kl(a,b));if(b.match(")"))break;wl(b,",")}b.a=b.d;c=new hl(c,d)}else for(;"."===d.value;){d=b;wl(d,".");
d=d.next();if("Identifier"!==d.type&&"Keyword"!==d.type&&"Boolean"!==d.type&&"Null"!==d.type)throw new xl(d);c=new tl(c,new ll(String(d.value)));d=Cl(b)}return c}function Ll(a,b){var c,d=Cl(b);if("Punctuator"!==d.type)c=Ml(a,b);else if("!"===d.value||"-"===d.value||"+"===d.value){b.a=b.d;c=Ll(a,b);if("!"===d.value)d=new ul(c);else if(c instanceof U)d="+"===d.value?Il(+c.a()):Il(-c.a());else throw new xl(d);c=d}else c=Ml(a,b);return c};function W(a,b){var c;r(b)&&(c=b.jb());return a.a(c,Nl,b)}var Nl={concat:function(a){for(var b="",c=0,d=arguments.length;c<d;++c)b+=String(arguments[c]);return b}};Nl.counter=function(){var a=0;return function(b){var c=++a;r(b)&&(c+=b);return c}}();Nl.extent=function(a,b,c,d,e,f){e=!1;(f=r(f)?this.get(f):this.D())&&(e=Ed(f.fa(),[a,b,c,d]));return e};Nl.fid=function(a){var b=!1,c=this.Ea;if(r(c))for(var d=0,e=arguments.length;d<e;++d)if(arguments[d]===c){b=!0;break}return b};
Nl.like=function(a,b,c,d,e,f){if("."==c)throw Error('"." is an unsupported wildCard character for the "like" function');c=r(c)?c:"*";d=r(d)?d:".";e=r(e)?e:"!";b=b.replace(RegExp("\\"+e+"(.|$)","g"),"\\$1");b=b.replace(RegExp("\\"+d,"g"),".");b=b.replace(RegExp("\\"+c,"g"),".*");b=b.replace(RegExp("\\\\.\\*","g"),"\\"+c);b=b.replace(RegExp("\\\\\\.","g"),"\\"+d);return RegExp(b,!1===f?"gi":"g").test(a)};Nl.ieq=function(a,b){return u(a)&&u(b)?a.toUpperCase()==b.toUpperCase():a==b};
Nl.ineq=function(a,b){return u(a)&&u(b)?a.toUpperCase()!=b.toUpperCase():a!=b};Nl.geometryType=function(a){var b=!1,c=this.D();c&&(b=c.S()===a);return b};Nl.renderIntent=function(a){return this.bb==a};Nl.intersects=function(){throw Error("Spatial function not implemented: intersects");};Nl.within=function(){throw Error("Spatial function not implemented: within");};Nl.contains=function(){throw Error("Spatial function not implemented: contains");};
Nl.dwithin=function(){throw Error("Spatial function not implemented: dwithin");};function Ol(){};function Pl(a){this.fillColor=a.fillColor;this.na=a.na;this.strokeColor=a.strokeColor;this.U=a.U;this.da=a.da;this.zIndex=a.zIndex}E(Pl,Ol);Pl.prototype.a=function(a){return this.fillColor==a.fillColor&&this.na==a.na&&this.strokeColor==a.strokeColor&&this.U==a.U&&this.da==a.da&&this.zIndex==a.zIndex};function Ql(){};function Rl(a){a=a||{};this.a=null!=a.color?a.color instanceof T?a.color:new U(a.color):new U(Sl);this.b=null!=a.opacity?a.opacity instanceof T?a.opacity:new U(a.opacity):new U(Tl);this.c=null!=a.zIndex?a.zIndex instanceof T?a.zIndex:new U(a.zIndex):new U(Ul)}E(Rl,Ql);Rl.prototype.Va=function(a){var b;a instanceof N&&(b=a,a=(a=b.D())?a.S():null);var c=null;if("polygon"===a||"multipolygon"===a)a=W(this.a,b),c=Number(W(this.b,b)),b=Number(W(this.c,b)),c=new Pl({fillColor:a,na:c,zIndex:b});return c};
var Sl="#ffffff",Tl=0.4,Ul=0;function Vl(a){var b=null;r(a.filter)&&(b=u(a.filter)?Jl(a.filter):a.filter);this.a=b;this.d=r(a.symbolizers)?a.symbolizers:[];this.c=r(a.minResolution)?a.minResolution:0;this.b=r(a.maxResolution)?a.maxResolution:Infinity}Vl.prototype.zb=h("d");function Wl(){}E(Wl,Ql);function Xl(){}E(Xl,Ol);var Yl={qg:"circle"};function Zl(a){this.type=a.type;this.size=a.size;this.fillColor=a.fillColor;this.na=a.na;this.strokeColor=a.strokeColor;this.U=a.U;this.da=a.da;this.zIndex=a.zIndex}E(Zl,Xl);Zl.prototype.a=function(a){return this.type==a.type&&this.size==a.size&&this.fillColor==a.fillColor&&this.na==a.na&&this.strokeColor==a.strokeColor&&this.U==a.U&&this.da==a.da&&this.zIndex==a.zIndex};function $l(a){this.color=a.color;this.opacity=a.opacity;this.width=a.width;this.zIndex=a.zIndex}E($l,Ol);$l.prototype.a=function(a){return this.color==a.color&&this.opacity==a.opacity&&this.width==a.width&&this.zIndex==a.zIndex};function am(a){a=a||{};this.a=null!=a.color?a.color instanceof T?a.color:new U(a.color):new U(bm);this.b=null!=a.opacity?a.opacity instanceof T?a.opacity:new U(a.opacity):new U(cm);this.c=null!=a.width?a.width instanceof T?a.width:new U(a.width):new U(dm);this.d=null!=a.zIndex?a.zIndex instanceof T?a.zIndex:new U(a.zIndex):new U(em)}E(am,Ql);
am.prototype.Va=function(a){var b;a instanceof N&&(b=a,a=(a=b.D())?a.S():null);var c=W(this.a,b),d=Number(W(this.b,b)),e=Number(W(this.c,b));b=Number(W(this.d,b));var f=null;if("linestring"===a||"multilinestring"===a)f=new $l({color:c,opacity:d,width:e,zIndex:b});else if("polygon"===a||"multipolygon"===a)f=new Pl({strokeColor:c,U:d,da:e,zIndex:b});return f};var bm="#696969",cm=0.75,dm=1.5,em=0;function fm(a){this.c=r(a.type)?a.type:gm;this.d=null!=a.size?a.size instanceof T?a.size:new U(a.size):new U(hm);this.b=null!=a.fill?a.fill:null;this.a=null!=a.stroke?a.stroke:null;this.e=null!=a.zIndex?a.zIndex instanceof T?a.zIndex:new U(a.zIndex):new U(im)}E(fm,Wl);
fm.prototype.Va=function(a){var b;a instanceof N&&(b=a,a=(a=b.D())?a.S():null);var c=null;if("point"===a||"multipoint"===a){a=Number(W(this.d,b));var d,e;null!==this.b&&(d=W(this.b.a,b),e=Number(W(this.b.b,b)));var f,g,k;null!==this.a&&(f=W(this.a.a,b),g=Number(W(this.a.b,b)),k=Number(W(this.a.c,b)));b=Number(W(this.e,b));c=new Zl({type:this.c,size:a,fillColor:d,na:e,strokeColor:f,U:g,da:k,zIndex:b})}return c};fm.prototype.S=h("c");var gm="circle",hm=5,im=0;function jm(a){this.b=r(a.rules)?a.rules:[];this.a=r(a.symbolizers)?a.symbolizers:[]}var km=null;function lm(a,b){for(var c=a.length,d=Array(c),e=0;e<c;++e)d[e]=a[e].Va(b);for(var c=[],f,g,k,l,n=0,q=d.length;n<q;++n)if(e=d[n],e instanceof Pl)if(r(e.strokeColor)&&!r(e.fillColor))if(g){for(k in e)l=e[k],r(l)&&(g[k]=l);g=null}else f=e,c.push(f);else if(r(e.fillColor)&&!r(e.strokeColor))if(f){for(k in e)l=e[k],r(l)&&(f[k]=l);f=null}else g=e,c.push(g);else c.push(e);else e&&c.push(e);return c};function mm(a){this.color=a.color;this.fontFamily=a.fontFamily;this.fontSize=a.fontSize;this.fontWeight=a.fontWeight;this.text=a.text;this.opacity=a.opacity;this.strokeColor=a.strokeColor;this.U=a.U;this.da=a.da;this.zIndex=a.zIndex}E(mm,Ol);mm.prototype.a=function(a){return this.color==a.color&&this.fontFamily==a.fontFamily&&this.fontSize==a.fontSize&&this.fontWeight==a.fontWeight&&this.opacity==a.opacity&&this.strokeColor==a.strokeColor&&this.U==a.U&&this.da==a.da&&this.zIndex==a.zIndex};function nm(){this.clear()}nm.prototype.clear=function(){this.a={};this.b=new cl};nm.prototype.add=function(a){var b=v(a).toString(),c=a.D();this.a[b]=a;null!==c&&(b=this.b,a={extent:c.fa(),sb:a},r(void 0)&&(a.type=void 0),fl(b,a,b.b))};nm.prototype.remove=function(a,b){var c=v(a).toString(),d=a.D();delete this.a[c];null!==d&&(c=r(b)?b:d.fa(),this.b.remove(c,a))};
function om(a){Ze.call(this,a);this.c=r(a.style)?a.style:null;this.a=new nm;this.Yf=r(a.transformFeatureInfo)?a.transformFeatureInfo:pm;this.Oc=!1}E(om,Ze);function qm(a,b){for(var c=sd(),d,e,f=0,g=b.length;f<g;++f)d=b[f],a.a.add(d),e=d.D(),null===e||zd(c,e.fa()),H(d,Ld,a.v,!1,a);I(a,new rm(sm,b,[c]))}om.prototype.v=function(a){var b=a.target,c=[];null===a.a||c.push(a.a);var d=b.D();null!==d&&(this.a.remove(b,a.a),this.a.add(b),c.push(d.fa()));I(this,new rm(tm,[b],c))};
om.prototype.clear=function(){this.a.clear();I(this,new rm(um,[],[]))};function vm(a,b,c,d){return 1==al(a.ja(),a,c,d)?null:gl({extent:b},!1,[],a.a.b.b,void 0,!0)}
function bl(a,b,c,d){function e(a){var b=a.features,c=this.ja().ha();null===c&&(c=a.metadata.projection);a=ue(c,d);for(var c=null,e=0,n=b.length;e<n;++e)c=b[e].D(),null===c||c.transform(a);qm(this,b)}if(u(b))ma(c.ce)?c.ce(b,y(e,a)):(b=c.$b(b),e.call(a,b));else if(na(b))ma(c.be)?c.be(b,y(e,a)):(b=c.Zb(b),e.call(a,b));else throw Error("Data type not supported: "+b);}
om.prototype.d=function(a,b){for(var c=r(b)?b:qc(this.a.a),d=sd(),e,f=c.length-1;0<=f;--f)e=c[f],e.bb=a,e=e.D(),null===e||zd(d,e.fa());I(this,new rm(wm,c,[d]))};om.prototype.wb=function(a,b){return a[1].zIndex-b[1].zIndex};function pm(a){return La(a,function(a){return v(a)}).join(", ")}function rm(a,b,c){kb.call(this,a);this.features=b;this.a=c}E(rm,kb);var sm="featureadd",tm="featurechange",um="featureremove",wm="intentchange";function xm(a,b){hk.call(this,a,b)}E(xm,hk);function ym(a,b){hk.call(this,a,b);this.c=null;this.d=De()}E(ym,xm);ym.prototype.ca=function(){return null===this.c?null:tj(this.c,this)};ym.prototype.ad=h("d");
ym.prototype.Ja=function(a){var b=a.B,c=b.center,d=b.resolution,e=b.rotation,f=this.b.ja(),g=a.M;g[0]||g[1]||(b=f.ca(a.extent,d,b.projection),null!==b&&(g=b.state,0==g?(Ic(b,"change",this.o,!1,this),uj(b)):2==g&&(this.c=b)));if(null!==this.c){var b=this.c,g=b.ba(),k=b.F(),l=this.d;He(l);Le(l,a.size[0]/2,a.size[1]/2);Ne(l,e);Me(l,k/d,k/d);Le(l,(g[0]-c[0])/k,(c[1]-g[3])/k);kk(a.attributions,b.d);lk(a,f)}};function zm(a,b){hk.call(this,a,b);this.n=this.d=this.f=null;this.q=De();this.s=NaN;this.i=this.c=null}E(zm,xm);zm.prototype.ca=h("f");zm.prototype.ad=h("q");
zm.prototype.Ja=function(a){var b=a.B,c=b.projection,d=this.b,e=d.ja(),f=e.tileGrid;null===f&&(f=fk(c));var g=ui(f.a,b.resolution,0),k=f.xa(g),l=f.F(g),n=b.center,q;l==b.resolution?(n=ok(n,l,a.size),q=Cd(n,l,b.rotation,a.size)):q=a.extent;var s=zj(f,q,l),x=k[0]*(s.d-s.a+1),t=k[1]*(s.b-s.c+1),A,B;null===this.f?(A=Ig("CANVAS"),A.width=x,A.height=t,B=A.getContext("2d"),this.f=A,this.d=[x,t],this.n=B):(A=this.f,B=this.n,this.d[0]<x||this.d[1]<t?(A.width=x,A.height=t,this.d=[x,t],this.c=null):(x=this.d[0],
t=this.d[1],g==this.s&&this.c.a<=s.a&&s.d<=this.c.d&&this.c.c<=s.c&&s.b<=this.c.b||(this.c=null)));var w,z;null===this.c?(x/=k[0],t/=k[1],w=s.a-Math.floor((x-(s.d-s.a+1))/2),z=s.c-Math.floor((t-(s.b-s.c+1))/2),this.s=g,this.c=new cb(w,w+x-1,z,z+t-1),this.i=Array(x*t),t=this.c):(t=this.c,x=t.d-t.a+1);A={};A[g]={};var J=[],D=y(e.Wc,e,A,nk(function(a){return null!==a&&2==a.state},e,c)),S=sd(),V=new cb(0,0,0,0),Q,G,L;for(z=s.a;z<=s.d;++z)for(L=s.c;L<=s.b;++L)G=e.Ab(g,z,L,c),w=G.state,2==w||4==w||3==w?
A[g][G.L.toString()]=G:(Q=f.rc(G.L,D,null,V,S),Q||(J.push(G),Q=f.vc(G.L,V,S),null===Q||D(g+1,Q)));D=0;for(Q=J.length;D<Q;++D)G=J[D],z=k[0]*(G.L.x-t.a),L=k[1]*(t.b-G.L.y),B.clearRect(z,L,k[0],k[1]);var da=La(rc(A),Number);Va(da);var va=e.K,J=Dd(xj(f,new Za(g,t.a,t.b),S)),ha,la,aa,Xa,Ea,Cb,D=0;for(Q=da.length;D<Q;++D)if(ha=da[D],k=f.xa(ha),Xa=A[ha],ha==g)for(aa in Xa)G=Xa[aa],la=(G.L.y-t.c)*x+(G.L.x-t.a),this.i[la]!=G&&(z=k[0]*(G.L.x-t.a),L=k[1]*(t.b-G.L.y),w=G.state,4!=w&&3!=w&&va||B.clearRect(z,L,
k[0],k[1]),2==w&&B.drawImage(G.ca(),z,L),this.i[la]=G);else for(aa in ha=f.F(ha)/l,Xa)for(G=Xa[aa],la=xj(f,G.L,S),z=(la[0]-J[0])/l,L=(J[1]-la[3])/l,Cb=ha*k[0],Ea=ha*k[1],w=G.state,4!=w&&va||B.clearRect(z,L,Cb,Ea),2==w&&B.drawImage(G.ca(),z,L,Cb,Ea),G=yj(f,la,g,V),w=Math.max(G.a,t.a),L=Math.min(G.d,t.d),z=Math.max(G.c,t.c),G=Math.min(G.b,t.b);w<=L;++w)for(Ea=z;Ea<=G;++Ea)la=(Ea-t.c)*x+(w-t.a),this.i[la]=void 0;mk(a.ec,e,g,s);pk(a,e,f,c,q,g,d.c());jk(a,e);lk(a,e);c=this.q;He(c);Le(c,a.size[0]/2,a.size[1]/
2);Ne(c,b.rotation);Me(c,l/b.resolution,l/b.resolution);Le(c,(J[0]-n[0])/l,(n[1]-J[1])/l)};function Am(){this.u=0;this.c={};this.b=this.a=null}m=Am.prototype;m.clear=function(){this.u=0;this.c={};this.b=this.a=null};function Bm(a,b){return a.c.hasOwnProperty(b)}m.forEach=function(a,b){for(var c=this.a;null!==c;)a.call(b,c.Sa,c.Wb,this),c=c.ya};m.get=function(a){a=this.c[a];if(a===this.b)return a.Sa;a===this.a?(this.a=this.a.ya,this.a.Za=null):(a.ya.Za=a.Za,a.Za.ya=a.ya);a.ya=null;a.Za=this.b;this.b=this.b.ya=a;return a.Sa};m.ga=h("u");
m.Fa=function(){var a=Array(this.u),b=0,c;for(c=this.b;null!==c;c=c.Za)a[b++]=c.Wb;return a};m.Ga=function(){var a=Array(this.u),b=0,c;for(c=this.b;null!==c;c=c.Za)a[b++]=c.Sa;return a};m.pop=function(){var a=this.a;delete this.c[a.Wb];null!==a.ya&&(a.ya.Za=null);this.a=a.ya;null===this.a&&(this.b=null);--this.u;return a.Sa};function Cm(a,b,c){c={Wb:b,ya:null,Za:a.b,Sa:c};null===a.b?a.a=c:a.b.ya=c;a.b=c;a.c[b]=c;++a.u};function Dm(a){Am.call(this);this.d=r(a)?a:2048}E(Dm,Am);Dm.prototype.Mb=function(a){for(var b,c;this.ga()>this.d&&!(b=this.a.Sa,c=b.L.z.toString(),c in a&&a[c].contains(b.L));)this.pop()};function Em(){Sc.call(this);this.bounds=this.t=null}E(Em,Hd);Em.prototype.fa=function(){if(null===this.bounds){for(var a=sd(),b=this.t,c=0,d=b.length;c<d;++c)zd(a,b[c].fa());this.bounds=a}return this.bounds};Em.prototype.p=function(){for(var a=this.t.length,b=Array(a),c=0;c<a;++c)b[c]=this.t[c].p();return b};Em.prototype.b=function(a){this.bounds=null;for(var b=sd(),c=this.t,d=c.length-1;0<=d;--d){var e=c[d];zd(b,e!==a.target||null===a.a?e.fa():a.a)}I(this,new Id("change",this,b))};
Em.prototype.transform=function(a){for(var b=this.t,c=0,d=b.length;c<d;++c)b[c].transform(a);this.bounds=null};function Fm(a){Sc.call(this);this.d=a;this.b=null}E(Fm,Hd);m=Fm.prototype;m.get=function(a,b){return this.p()[a][b]};m.p=h("d");m.ga=function(){return this.p().length};m.fa=function(){if(null===this.b){for(var a=this.p(),b=sd(),c=0,d=a.length;c<d;++c)td(b,a[c]);this.b=b}return this.b};m.S=ba("linestring");
m.nc=function(a){for(var b=this.p(),c=Infinity,d=0,e=1,f=b.length;e<f;d=e++){var g=[b[d],b[e]],d=g[0],g=g[1],k=od(d,g);0===k?d=od(a,d):(k=((a[0]-d[0])*(g[0]-d[0])+(a[1]-d[1])*(g[1]-d[1]))/k,d=0>k?od(a,d):1<k?od(a,g):od(a,[d[0]+k*(g[0]-d[0]),d[1]+k*(g[1]-d[1])]));c=Math.min(c,d)}return Math.sqrt(c)};m.transform=function(a){for(var b=this.p(),c,d=0,e=b.length;d<e;++d)c=b[d],a(c,c,c.length);a=this.b;this.b=null;this.d=b;I(this,new Id("change",this,a))};function Gm(a){Em.call(this);var b=a.length;this.t=Array(b);for(var c=0;c<b;++c){var d=new Fm(a[c]);this.t[c]=d;H(d,"change",this.b,!1,this)}}E(Gm,Em);Gm.prototype.S=ba("multilinestring");Gm.prototype.nc=function(a){for(var b=Infinity,c=0,d=this.t.length;c<d;++c)b=Math.min(b,this.t[c].nc(a));return b};function Hm(a){Sc.call(this);this.d=a;this.b=null}E(Hm,Hd);m=Hm.prototype;m.get=function(a){return this.p()[a]};m.fa=function(){if(null===this.b){var a=this.get(0),b=this.get(1);this.b=[a,b,a,b]}return this.b};m.p=h("d");m.S=ba("point");m.transform=function(a){var b=this.p();a(b,b,b.length);a=this.b;this.b=null;this.d=b;I(this,new Id("change",this,a))};function Im(a){Em.call(this);var b=a.length;this.t=Array(b);for(var c=0;c<b;++c){var d=new Hm(a[c]);this.t[c]=d;H(d,"change",this.b,!1,this)}}E(Im,Em);Im.prototype.S=ba("multipoint");function Jm(a){Fm.call(this,a)}E(Jm,Fm);function Km(a){for(var b=a.length,c=0,d=a[b-1],e=d[0],d=d[1],f,g,k=0;k<b;++k)g=a[k],f=g[0],g=g[1],c+=(f-e)*(g+d),e=f,d=g;return 0<c}Jm.prototype.S=ba("linearring");Jm.prototype.hb=function(a){var b=a[0];a=a[1];var c=this.p(),d=!1,e,f,g,k,l=c.length,n=0;for(k=l-1;n<l;k=n++)e=c[n][0],f=c[n][1],g=c[k][0],k=c[k][1],(e=f>a!=k>a&&b<(g-e)*(a-f)/(k-f)+e)&&(d=!d);return d};function Lm(a){Sc.call(this);this.c=null;var b=a.length;this.a=Array(b);for(var c,d=0;d<b;++d)c=a[d],0===d?Km(c)||c.reverse():Km(c)&&c.reverse(),c=new Jm(c),H(c,"change",this.lf,!1,this),this.a[d]=c}E(Lm,Hd);m=Lm.prototype;m.fa=function(){return this.a[0].fa()};m.p=function(){for(var a=this.a.length,b=Array(a),c=0;c<a;++c)b[c]=this.a[c].p();return b};m.S=ba("polygon");m.lf=function(a){var b=null,b=a.target===this.a[0]?a.a:this.fa();I(this,new Id("change",this,b))};
m.hb=function(a){for(var b=this.a,c,d=0,e=b.length;d<e&&(c=b[d].hb(a),0<d&&(c=!c),c);++d);return c};m.transform=function(a){for(var b=this.a,c=0,d=b.length;c<d;++c)b[c].transform(a)};function Mm(a){Em.call(this);var b=a.length;this.t=Array(b);for(var c=0;c<b;++c){var d=new Lm(a[c]);this.t[c]=d;H(d,"change",this.b,!1,this)}}E(Mm,Em);Mm.prototype.S=ba("multipolygon");Mm.prototype.hb=function(a){for(var b=!1,c=0,d=this.t.length;c<d;++c)if(this.t[c].hb(a)){b=!0;break}return b};function Nm(a){this.url=a.url;this.width=a.width;this.height=a.height;this.opacity=a.opacity;this.rotation=a.rotation;this.xOffset=a.xOffset;this.yOffset=a.yOffset;this.zIndex=a.zIndex}E(Nm,Xl);Nm.prototype.a=function(a){return this.url==a.url&&this.width==a.width&&this.height==a.height&&this.opacity==a.opacity&&this.rotation==a.rotation&&this.xOffset==a.xOffset&&this.yOffset==a.yOffset&&this.zIndex==a.zIndex};function Om(a,b,c){a=a.getContext("2d");this.e=b;var d=[1,0,0],e=d[0],f=d[1],g=d[2];d[0]=e*b[0]+f*b[4]+g*b[8];d[1]=e*b[1]+f*b[5]+g*b[9];d[2]=e*b[2]+f*b[6]+g*b[10];this.b=1/Math.sqrt(d[0]*d[0]+d[1]*d[1]);this.d=a;this.g=c;this.a={};this.f={};this.c=[0,0]}
function Pm(a){if(a instanceof Em){a=a.t;for(var b=a.length,c=[],d=0;d<b;++d)c.push.apply(c,Pm(a[d]));return c}c=a.S();if("point"==c)return[[a.get(0),a.get(1),0]];if("polygon"==c){if(null===a.c){var c=Bd(a.fa())[1],e=a.a[0].p(),d=[],f=0,g,k,l;for(g=e.length-1;1<=g;--g)if(k=e[g],l=e[g-1],k[1]>=c&&l[1]<=c||k[1]<=c&&l[1]>=c)k=(c-k[1])/(l[1]-k[1])*(l[0]-k[0])+k[0],d.push(k);d.sort();for(g=d.length-1;1<=g;--g)e=Math.abs(d[g]-d[g-1]),e>f&&(k=(d[g]+d[g-1])/2,a.hb([k,c])&&(f=e,b=k));a.c=[b,c]}a=a.c;return[[a[0],
a[1],0]]}throw Error("Label rendering not implemented for geometry type: "+c);}function Qm(a,b){var c=a.url,d=Rm[c],e=!1;if(!r(d))e=!0,d=Ig("IMG"),Ic(d,"error",y(Sm,null,b),!1,Qm),Ic(d,"load",y(Tm,null,b),!1,Qm),d.setAttribute("src",c);else if(null!==d){var c=a.width,f=a.height;r(c)&&r(f)?(d.width=c,d.height=f):r(c)?(d.height*=c/d.width,d.width=c):r(f)&&(d.width*=f/d.height,d.height=f)}return e?null:d}var Rm={};function Sm(a,b){if(r(b)){var c=b.target.getAttribute("src");Rm[c]=null;Tm(a,b)}}
function Tm(a,b){if(r(b)){var c=b.target.getAttribute("src");Rm[c]=b.target}r(a)&&a()};function Um(a,b){hk.call(this,a,b);this.i=Ig("CANVAS");this.la=this.i.getContext("2d");this.v=De();this.ia=Ig("CANVAS");this.va=De();this.c=new Dm(Vm);H(b,[sm,tm,um,wm],this.We,!1,this);this.K=this.d=null;this.q=this.n=!1;this.f=null;this.W=new cb(NaN,NaN,NaN,NaN);this.s=y(function(){this.n=!0;Wi(a.f)},this)}E(Um,xm);m=Um.prototype;m.ca=h("i");m.ad=h("v");m.La=function(a,b){this.jd(a,function(a,d){b((0,d.Yf)(a),d)})};
m.jd=function(a,b,c){var d=this.a.f,e=[],f=this.b;a=Yi(d,a);var g=ek(this.f,a,0).toString();if(Bm(this.c,g)){var k=this.c.get(g),g=k[1],l=k[2],k=k[3],n=l[0]/2,l=l[1]/2,l=rd([[a[0]-n,a[1]-l],[a[0]+n,a[1]+l]]),d=vm(f,l,d.a().O().ha());if(null===d){r(c)&&p.setTimeout(function(){c()},0);return}var q,s,x,t;for(t in d)if(l=d[t],"hidden"!=l.bb)if(n=l.D(),q=n.S(),"point"===q||"multipoint"===q)for(s=v(l),q=g[s],s=k[s],x=q[0]/2,q=q[1]/2,q=rd([[a[0]-x-s[0],a[1]-q+s[1]],[a[0]+x-s[0],a[1]+q+s[1]]]),n=n.p(),ia(n[0])||
(n=[n]),s=n.length-1;0<=s;--s){if(wd(q,n[s])){e.push(l);break}}else ma(n.hb)?n.hb(a)&&e.push(l):ma(n.nc)&&2*n.nc(a)<=g[v(l)][0]&&e.push(l)}p.setTimeout(function(){b(e,f)},0)};m.We=function(a){a=a.a;var b=this.c,c=a.length;if(0<c)for(var d=0;d<c;++d)for(var e=b,f=yj(this.f,a[d],0),g=e.ga(),k=void 0;g--;)k=e.a.Wb,f.contains($a(k))?e.pop():e.get(k);else b.clear();this.s()};
m.Ja=function(a){var b=a.B,c=b.resolution,d=b.projection,e=a.extent,f=this.b,g=this.f,k=[512,512],l=!a.M[0]&&!a.M[1];if(l){var n=0.14929107086948487,q=d.a();q&&(n/=q);var s=Math.max(c,n);s!==this.Q&&(g=new vj({origin:[0,0],projection:d,resolutions:[s],tileSize:k}),this.c.clear(),this.f=g)}if(null!==g){var x=g.F(0);l&&zj(g,e,x,this.W);var t=this.v,A=this.W,B,w=g,z=w.Eb(0),J=w.F(0),D=w.xa(0);B=vd(z[0]+A.a*D[0]*J,z[0]+(A.d+1)*D[0]*J,z[1]+A.c*D[1]*J,z[1]+(A.b+1)*D[1]*J,void 0);var S=Dd(B);He(t);Le(t,
a.size[0]/2,a.size[1]/2);Me(t,x/c,x/c);Ne(t,b.rotation);Le(t,(S[0]-b.center[0])/x,(b.center[1]-S[1])/x);if(this.n||this.Q!==x||!yd(this.K,B)){null===this.d&&(this.d=Ig("CANVAS"),this.d.width=k[0],this.d.height=k[1]);var V=this.ia,Q=k[0]*(A.d-A.a+1),G=k[1]*(A.b-A.c+1),L=this.va,da=Q/2,va=G/2;He(L);Le(L,da,va);Me(L,1/x,-1/x);Le(L,-(S[0]+da*x),-(S[1]-va*x));V.width=Q;V.height=G;var ha=new Om(V,L,this.s),la=this.i;la.width=Q;la.height=G;var aa=this.la,Xa={},Ea={},Cb={},Sg=15*x,pf,bc,vc,Vg,Wg,Bj=!1,zn=
!1,cc,Xg,Yg,An,Zg,$g;Vg=A.a;a:for(;Vg<=A.d;++Vg)for(Wg=A.c;Wg<=A.b;++Wg)if(bc=new Za(0,Vg,Wg),vc=bc.toString(),Bm(this.c,vc))Ea[vc]=bc;else if(l){cc=xj(g,bc);cc[0]-=Sg;cc[2]+=Sg;cc[1]-=Sg;cc[3]+=Sg;$g=!1;Zg=vm(f,cc,d,this.s);if(null===Zg){Bj=!0;break a}$g=$g||!uc(Zg);zc(Xa,Zg);$g&&(Cb[vc]=bc)}else zn=!0;this.n=zn;var qf={},gd=[],Cj=f.c,Bn,rf,Cn,sf,Dj,tf,Dn,ce,Ej,ah,Fj;for(Bn in Xa){sf=Xa[Bn];Dj=sf.zb();if(null===Dj){null===Cj&&(null===km&&(km=new jm({rules:[new Vl({filter:new hl(new ll("renderIntent"),
[new U("select")]),symbolizers:[new fm({fill:new Rl({color:"#ffffff",opacity:0.7}),stroke:new am({color:"#696969",opacity:0.9,width:2})}),new Rl({color:"#ffffff",opacity:0.7}),new am({color:"#696969",opacity:0.9,width:2})]})],symbolizers:[new fm({fill:new Rl,stroke:new am}),new Rl,new am]})),Cj=km);for(var En=Cj,Fn=sf,Gn=x,Hn=En.b,bh=[],In=!1,de=void 0,Gj=0,Yr=Hn.length;Gj<Yr;++Gj){var de=Hn[Gj],Hj=Gn>=de.c&&Gn<de.b;Hj&&null!==de.a&&(Hj=!!W(de.a,Fn));Hj&&(In=!0,bh.push.apply(bh,de.zb()))}In||(bh=
En.a);tf=lm(bh,Fn)}else tf=lm(Dj,sf);Dn=tf.length;for(rf=0;rf<Dn;++rf){ce=tf[rf];for(Cn in qf)if(Ej=gd[qf[Cn]][1],ce.a(Ej)){ce=Ej;break}ah=v(ce);ah in qf||(qf[ah]=gd.length,gd.push([[],ce,[]]));Fj=gd[qf[ah]];Fj[0].push(sf);ce instanceof mm&&Fj[2].push(tf[rf].text)}}gd.sort(f.wb);An=gd.length;for(Yg=0;Yg<An;++Yg){Xg=gd[Yg];var ch=ha,dh=Xg[0],sb=Xg[1],Zr=Xg[2],Ij=!1;if(sb instanceof Xl){var Ha=ch,Jn=dh,dc=sb,uf=Ha.d,ec=void 0,Jj=void 0,eh=void 0,Kn=void 0,fh=void 0,ee=void 0,gh=void 0,hh=void 0,Kj=
void 0,ih=void 0,Ln=void 0,Lj=void 0,vf=void 0,jh=0,kh=0;if(dc instanceof Zl){var Mn=void 0;if("circle"===dc.type){var hd=dc,Nn=hd.da||0,Mj=hd.size+2*Nn+1,On=Mj/2,lh=Ig("CANVAS"),Gb=lh.getContext("2d"),Nj=hd.fillColor,Oj=hd.strokeColor,$r=2*Math.PI;lh.height=Mj;lh.width=Mj;Nj&&(Gb.fillStyle=Nj);Oj&&(Gb.lineWidth=Nn,Gb.strokeStyle=Oj,Gb.lineCap="round",Gb.lineJoin="round");Gb.beginPath();Gb.arc(On,On,hd.size/2,0,$r,!0);Nj&&(Gb.globalAlpha=hd.na,Gb.fill());Oj&&(Gb.globalAlpha=hd.U,Gb.stroke());Mn=lh}else throw Error("Unsupported shape type: "+
dc);ec=Mn;Jj=1}else if(dc instanceof Nm)ec=Qm(dc,Ha.g),Jj=dc.opacity,jh=dc.xOffset,kh=dc.yOffset;else throw Error("Unsupported symbolizer: "+dc);if(null===ec)Ij=!0;else{var as=Math.floor(ec.width/2),bs=Math.floor(ec.height/2),Pn=ec.width*Ha.b,Qn=ec.height*Ha.b,cs=jh*Ha.b,ds=kh*Ha.b;uf.save();uf.setTransform(1,0,0,1,-as,-bs);uf.globalAlpha=Jj;eh=0;for(Kn=Jn.length;eh<Kn;++eh)if(fh=Jn[eh],"hidden"!==fh.bb)for(ee=v(fh),gh=Ha.a[ee],Ha.a[ee]=r(gh)?[Math.max(gh[0],Pn),Math.max(gh[1],Qn)]:[Pn,Qn],Ha.f[ee]=
[jh*Ha.b,kh*Ha.b],Ha.c=[Math.max(Ha.c[0],Ha.a[ee][0]+2*Math.abs(cs)),Math.max(Ha.c[1],Ha.a[ee][1]+2*Math.abs(ds))],hh=fh.D(),Kj=hh instanceof Hm?[hh]:hh.t,ih=0,Ln=Kj.length;ih<Ln;++ih)Lj=Kj[ih],vf=[Lj.get(0),Lj.get(1),0],Ke(Ha.e,vf,vf),uf.drawImage(ec,Math.round(vf[0]+jh),Math.round(vf[1]+kh),ec.width,ec.height);uf.restore();Ij=!1}}else if(sb instanceof $l){var wc=ch,Rn=dh,Pj=sb,fc=wc.d,mh=void 0,Sn=void 0,nh=void 0,oh=void 0,fe=void 0,ph=void 0,Qj=void 0,qh=void 0,Tn=void 0,Rj=void 0,Sj=void 0,wf=
void 0,Un=void 0,Vn=void 0,gc=[NaN,NaN,0],ge=[NaN,NaN],he=[NaN,NaN];fc.globalAlpha=Pj.opacity;fc.strokeStyle=Pj.color;fc.lineWidth=Pj.width;fc.lineCap="round";fc.lineJoin="round";Vn=fc.lineWidth*wc.b;fc.beginPath();mh=0;for(Sn=Rn.length;mh<Sn;++mh)if(nh=Rn[mh],"hidden"!==nh.bb)for(oh=v(nh),fe=r(wc.a[oh])?wc.a[oh]:[0],fe[0]=Math.max(fe[0],Vn),wc.a[oh]=fe,wc.c=[Math.max(fe[0],wc.c[0]),Math.max(fe[0],wc.c[1])],ph=nh.D(),Qj=ph instanceof Fm?[ph]:ph.t,qh=0,Tn=Qj.length;qh<Tn;++qh)for(Rj=Qj[qh].p(),wf=
0,Un=Rj.length;wf<Un;++wf)if(Sj=Rj[wf],gc[0]=Sj[0],gc[1]=Sj[1],Ke(wc.e,gc,gc),0===wf)he[0]=NaN,he[1]=NaN,fc.moveTo(gc[0],gc[1]);else if(ge[0]=Math.round(gc[0]),ge[1]=Math.round(gc[1]),ge[0]!==he[0]||ge[1]!==he[1])fc.lineTo(gc[0],gc[1]),he[0]=ge[0],he[1]=ge[1];fc.stroke()}else if(sb instanceof Pl){var Wn=ch,Xn=dh,Ia=Wn.d,rh=sb.strokeColor,Yn=sb.da,sh=sb.U,xf=sb.fillColor,th=sb.na,ie=void 0,yf=void 0,Tj=void 0,uh=void 0,Uj=void 0,zf=void 0,Vj=void 0,Zn=void 0,Wj=void 0,$n=void 0,Xj=void 0,Yj=void 0,
Af=void 0,ao=void 0,Zj=void 0,hc=[NaN,NaN,0],je=[NaN,NaN],ke=[NaN,NaN];rh&&(Ia.strokeStyle=rh,Yn&&(Ia.lineWidth=Yn),Ia.lineCap="round",Ia.lineJoin="round");xf&&(Ia.fillStyle=xf);Ia.beginPath();yf=0;for(Tj=Xn.length;yf<Tj;++yf)if(Zj=Xn[yf],"hidden"!==Zj.bb)for(uh=Zj.D(),Uj=uh instanceof Lm?[uh]:uh.t,zf=0,Vj=Uj.length;zf<Vj;++zf)if(Zn=Uj[zf],Wj=Zn.a,$n=Wj.length,0<$n){Xj=Wj[0].p();Af=0;for(ao=Xj.length;Af<ao;++Af)if(Yj=Xj[Af],hc[0]=Yj[0],hc[1]=Yj[1],Ke(Wn.e,hc,hc),0===Af)ke[0]=NaN,ke[1]=NaN,Ia.moveTo(hc[0],
hc[1]);else if(je[0]=Math.round(hc[0]),je[1]=Math.round(hc[1]),je[0]!==ke[0]||je[1]!==ke[1])Ia.lineTo(hc[0],hc[1]),ke[0]=je[0],ke[1]=je[1];xf&&rh&&(th!==ie&&(ie=Ia.globalAlpha=th),Ia.fill(),sh!==ie&&(ie=Ia.globalAlpha=sh),Ia.stroke(),(yf<Tj-1||zf<Vj-1)&&Ia.beginPath())}xf&&rh||(xf?(th!==ie&&(Ia.globalAlpha=th),Ia.fill()):(sh!==ie&&(Ia.globalAlpha=sh),Ia.stroke()))}else if(sb instanceof mm){var bo=ch,co=dh,Ua=sb,eo=Zr,tb=bo.d,ak=void 0,bk=void 0,id=void 0;tb.fillStyle!==Ua.color&&(tb.fillStyle=Ua.color);
tb.font=Ua.fontWeight+" "+Ua.fontSize+"px "+Ua.fontFamily;tb.globalAlpha=Ua.opacity;tb.textAlign="center";tb.textBaseline="middle";var fo=!1;r(Ua.strokeColor)&&(fo=!0,tb.strokeStyle=Ua.strokeColor,tb.lineWidth=Ua.da);for(var Bf=0,es=co.length;Bf<es;++Bf)if(ak=co[Bf],"hidden"!==ak.bb)for(var bk=Pm(ak.D()),ck=0,fs=bk.length;ck<fs;++ck)id=bk[ck],Ke(bo.e,id,id),fo&&(Ua.U!==Ua.opacity&&(tb.globalAlpha=Ua.U),tb.strokeText(eo[Bf],id[0],id[1]),Ua.U!==Ua.opacity&&(tb.globalAlpha=Ua.opacity)),tb.fillText(eo[Bf],
id[0],id[1])}if(Bj=Ij)break}Bj||zc(Ea,Cb);var gs=ha.a,hs=ha.c,is=ha.f;for(vc in Ea)bc=Ea[vc],Bm(this.c,vc)?pf=this.c.get(vc)[0]:(pf=this.d.cloneNode(!1),pf.getContext("2d").drawImage(V,(A.a-bc.x)*k[0],(bc.y-A.b)*k[1]),Cm(this.c,vc,[pf,gs,hs,is])),aa.drawImage(pf,k[0]*(bc.x-A.a),k[1]*(A.b-bc.y));this.Q=x;this.K=B;this.q||(this.q=!0,a.$a.push(y(this.Lf,this)))}}};m.Lf=function(){for(;this.c.ga()>this.c.d;)this.c.pop();this.q=!1};var Vm=128;function Wm(a,b){qk.call(this,0,b);this.b=Ig("CANVAS");this.b.height=a.clientHeight;this.b.width=a.clientWidth;this.b.className="ol-unselectable";Mg(a,this.b);this.c=!0;this.e=[a.clientHeight,a.clientWidth];this.g=this.b.getContext("2d")}E(Wm,qk);Wm.prototype.jc=function(a){return a instanceof Bk?new ym(this,a):a instanceof Ck?new zm(this,a):a instanceof om?new Um(this,a):null};Wm.prototype.tc=h("b");
Wm.prototype.Gc=function(a){if(null===a)this.c&&(Th(this.b,!1),this.c=!1);else{var b=a.size;if(this.e[0]!=b[0]||this.e[1]!=b[1])this.b.width=b[0],this.b.height=b[1],this.e=b;var c=this.g;c.clearRect(0,0,b[0],b[1]);rk(a);var b=a.pa,d=a.Ec,e=a.B.resolution,f,g,k,l,n;f=0;for(g=d.length;f<g;++f)if(k=d[f],l=sk(this,k),n=b[v(k)],n.visible&&!(1!=n.bc||e>=n.maxResolution||e<n.minResolution)&&(l.Ja(a,n),k=l.ca(),null!==k))if(l=l.ad(),c.globalAlpha=n.opacity,0===a.B.rotation){n=l[13];var q=k.width*l[0],s=k.height*
l[5];c.drawImage(k,0,0,k.width,k.height,Math.round(l[12]),Math.round(n),Math.round(q),Math.round(s))}else c.setTransform(l[0],l[1],l[4],l[5],l[12],l[13]),c.drawImage(k,0,0),c.setTransform(1,0,0,1,0,0);this.c||(Th(this.b,!0),this.c=!0);uk(this,a)}};function Xm(a,b){var c;if(r(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Ym(a,b,c){hk.call(this,a,b);this.target=c}E(Ym,hk);function Zm(a,b){var c=Ig("DIV");c.style.position="absolute";Ym.call(this,a,b,c);this.c=null;this.d=Fe()}E(Zm,Ym);
Zm.prototype.Ja=function(a){var b=a.B,c=b.center,d=b.resolution,e=b.rotation,f=this.c,g=this.b.ja(),k=a.M;k[0]||k[1]||(b=g.ca(a.extent,d,b.projection),null!==b&&(k=b.state,0==k?(Ic(b,"change",this.o,!1,this),uj(b)):2==k&&(f=b)));if(null!==f){var k=f.ba(),l=f.F(),b=De();He(b);Le(b,a.size[0]/2,a.size[1]/2);Ne(b,e);Me(b,l/d,l/d);Le(b,(k[0]-c[0])/l,(c[1]-k[3])/l);f!=this.c&&(c=tj(f,this),c.style.maxWidth="none",c.style.position="absolute",Kg(this.target),this.target.appendChild(c),this.c=f);Je(b,this.d)||
(Xm(this.target,b),Ge(this.d,b));kk(a.attributions,f.d);lk(a,g)}};function $m(a,b){var c=Ig("DIV");c.style.position="absolute";Ym.call(this,a,b,c);this.d=!0;this.i=1;this.f=0;this.c={}}E($m,Ym);
$m.prototype.Ja=function(a,b){if(b.visible){var c=a.B,d=c.projection,e=this.b,f=e.ja(),g=f.tileGrid;null===g&&(g=fk(d));var k=ui(g.a,c.resolution,0),l=g.F(k),n=c.center,q;l==c.resolution?(n=ok(n,l,a.size),q=Cd(n,l,c.rotation,a.size)):q=a.extent;var l=zj(g,q,l),s={};s[k]={};var x=y(f.Wc,f,s,nk(function(a){return null!==a&&2==a.state},f,d)),t=sd(),A=new cb(0,0,0,0),B,w,z,J;for(z=l.a;z<=l.d;++z)for(J=l.c;J<=l.b;++J)B=f.Ab(k,z,J,d),w=B.state,2==w?s[k][B.L.toString()]=B:3!=w&&4!=w&&(w=g.rc(B.L,x,null,
A,t),w||(B=g.vc(B.L,A,t),null===B||x(k+1,B)));var D;if(this.f!=f.c){for(D in this.c)t=this.c[+D],Ng(t.target);this.c={};this.f=f.c}z=La(rc(s),Number);Va(z);var x={},S;J=0;for(B=z.length;J<B;++J){D=z[J];D in this.c?t=this.c[D]:(t=ek(g,n,D),t=new an(g,t),x[D]=!0,this.c[D]=t);D=s[D];for(S in D)bn(t,D[S]);cn(t)}S=La(rc(this.c),Number);Va(S);var V;B=De();z=0;for(J=S.length;z<J;++z)if(D=S[z],t=this.c[D],D in s)if(V=t.F(),w=t.f,He(B),Le(B,a.size[0]/2,a.size[1]/2),Ne(B,c.rotation),Me(B,V/c.resolution,V/c.resolution),
Le(B,(w[0]-n[0])/V,(n[1]-w[1])/V),dn(t,B),D in x){for(D-=1;0<=D;--D)if(D in this.c){Lg(t.target,this.c[D].target);break}0>D&&Mg(this.target,t.target)}else a.M[0]||a.M[1]||en(t,q,A);else Ng(t.target),delete this.c[D];b.opacity!=this.i&&(Sh(this.target,b.opacity),this.i=b.opacity);b.visible&&!this.d&&(Th(this.target,!0),this.d=!0);mk(a.ec,f,k,l);pk(a,f,g,d,q,k,e.c());jk(a,f);lk(a,f)}else this.d&&(Th(this.target,!1),this.d=!1)};
function an(a,b){this.target=Ig("DIV");this.target.style.position="absolute";this.d=a;this.c=b;this.f=Dd(xj(a,b));this.g=a.F(b.z);this.b={};this.a=null;this.e=Fe()}function bn(a,b){var c=b.L,d=c.toString();if(!(d in a.b)){var e=a.d.xa(c.z),f=b.ca(a),g=f.style;g.maxWidth="none";g.position="absolute";g.left=(c.x-a.c.x)*e[0]+"px";g.top=(a.c.y-c.y)*e[1]+"px";null===a.a&&(a.a=document.createDocumentFragment());a.a.appendChild(f);a.b[d]=b}}
function cn(a){null!==a.a&&(a.target.appendChild(a.a),a.a=null)}an.prototype.F=h("g");function en(a,b,c){var d=yj(a.d,b,a.c.z,c);b=[];for(var e in a.b)c=a.b[e],d.contains(c.L)||b.push(c);var f,d=0;for(f=b.length;d<f;++d)c=b[d],e=c.L.toString(),Ng(c.ca(a)),delete a.b[e]}function dn(a,b){Je(b,a.e)||(Xm(a.target,b),Ge(a.e,b))};function fn(a,b){qk.call(this,0,b);this.b=Ig("DIV");this.b.className="ol-unselectable";var c=this.b.style;c.position="absolute";c.width="100%";c.height="100%";Mg(a,this.b);this.c=!0}E(fn,qk);fn.prototype.jc=function(a){if(a instanceof Ck)a=new $m(this,a);else if(a instanceof Bk)a=new Zm(this,a);else return null;this.b.appendChild(a.target);return a};
fn.prototype.Gc=function(a){if(null===a)this.c&&(Th(this.b,!1),this.c=!1);else{var b=a.pa,c=a.Ec,d,e,f,g;d=0;for(e=c.length;d<e;++d)f=c[d],g=sk(this,f),f=a.pa[v(f)],1==f.bc&&g.Ja(a,f);for(var k in this.d)k in b||(g=this.d[k],Ng(g.target));this.c||(Th(this.b,!0),this.c=!0);rk(a);uk(this,a)}};var gn=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function hn(a,b){var c,d,e=gn.length;for(d=0;d<e;++d)try{if(c=a.getContext(gn[d],b),null!==c)return c}catch(f){}return null}var jn=function(){if(!("WebGLRenderingContext"in p))return!1;try{var a=Ig("CANVAS");return null!==hn(a)}catch(b){return!1}}();function kn(a,b){var c=sd(),d=a.a;ln(a,function(a,f){for(var g,k,l=a;l<f;l+=b)g=d[l],k=d[l+1],c[0]=Math.min(c[0],g),c[1]=Math.min(c[1],k),c[2]=Math.max(c[2],g),c[3]=Math.max(c[3],k)});return c}function mn(a,b,c,d){var e=c.length,f,g,k;for(f=0;f<e;++f)for(k=c[f],g=0;g<d;++g)a[b++]=k[g];return b};function nn(a){this.a=r(a)?a:[]}function on(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);pn(a);return}d.push(b,c);pn(a)}}nn.prototype.clear=function(){this.a.length=0};function pn(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 qn(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])}
nn.prototype.rb=function(){return 0===this.a.length};function rn(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}pn(a)};function sn(a,b,c){this.a=r(a)?a:[];this.b=[];this.c=new nn;a=r(b)?b:this.a.length;a<this.a.length&&on(this.c,a,this.a.length);this.e=this.f=null;this.d=r(c)?c:35044}function tn(a,b){var c;a:{c=a.c.a;var d=c.length,e=-1,f,g,k;for(g=0;g<d;g+=2){k=c[g+1]-c[g];if(k==b){c=c[g];break a}k>b&&(-1==e||k<f)&&(e=c[g],f=k)}c=e}rn(a.c,c,c+b);return c}sn.prototype.add=function(a){var b=a.length,c=tn(this,b),d;for(d=0;d<b;++d)this.a[c+d]=a[d];a=0;for(d=this.b.length;a<d;++a)on(this.b[a],c,c+b);return c};
function ln(a,b){if(0!==a.a.length){var c=a.a.length,d=a.c.a,e=d.length;if(0===e)b.call(void 0,0,c);else{0<d[0]&&b.call(void 0,0,d[0]);var f;for(f=1;f<e-1;f+=2)b.call(void 0,d[f],d[f+1]);d[e-1]<c&&b.call(void 0,d[e-1],c)}}}sn.prototype.ga=function(){var a=this.c.a,b=a.length,c=0,d;for(d=0;d<b;d+=2)c+=a[d+1]-a[d];return this.a.length-c};sn.prototype.remove=function(a,b){var c,d;on(this.c,b,b+a);c=0;for(d=this.b.length;c<d;++c)rn(this.b[c],b,b+a)};function un(a,b,c){this.ea=a;this.a=r(b)?b:{};this.b=r(c)?c:2}m=un.prototype;m.add=function(a){var b=a.length*this.b,c=tn(this.ea,b);this.a[c+""]=c+b;mn(this.ea.a,c,a,this.b);return c};m.get=function(a){for(var b=this.ea.a,c=this.a[a+""],d=this.b,e=Array((c-a)/d),f=0;a<c;a+=d)e[f++]=b.slice(a,a+d);return e};m.ga=function(){return oc(this.a)};m.ba=function(){return kn(this.ea,this.b)};m.remove=function(a){this.ea.remove(this.a[a+""]-a,a);delete this.a[a+""]};function vn(a,b){this.ea=a;this.a=r(b)?b:2}m=vn.prototype;m.add=function(a){return this.ea.add(a)};m.get=function(a){return this.ea.a.slice(a,a+this.a)};m.ga=function(){return this.ea.ga()/this.a};m.ba=function(){return kn(this.ea,this.a)};m.remove=function(a){this.ea.remove(this.a,a)};function wn(a){Ve.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.b=r(a.pointCollections)?a.pointCollections:[];this.a=r(a.Bf)?a.Bf:[]}E(wn,Ve);function xn(a){Ze.call(this,a)}E(xn,Ze);function yn(a,b,c){var d=b[0];b=b[1];c[0]=d*a[0]+b*a[4]+a[12];c[1]=d*a[1]+b*a[5]+a[13];return c};function go(a,b){hk.call(this,a,b);this.i=this.ta=null;this.n=void 0;this.e=De();this.r=Fe();this.K=new Float32Array(16);this.v=void 0;this.s=new Float32Array(16);this.W=void 0;this.Q=new Float32Array(16);this.ia=void 0;this.la=new Float32Array(16);this.fb=void 0;this.eb=new Float32Array(16)}E(go,hk);
function ho(a,b,c){var d=a.a.a;if(r(a.n)&&a.n==c)d.bindFramebuffer(36160,a.i);else{b.$a.push(sa(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},d,a.i,a.ta));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.ta=b;a.i=e;a.n=c}}
function io(a,b,c,d,e){var f=!1;b!==a.v&&(f=a.s,He(f),f[12]=b,f[13]=b,f[14]=b,f[15]=1,a.v=b,f=!0);c!==a.W&&(b=a.Q,He(b),b[0]=c,b[5]=c,b[10]=c,b[15]=1,f=-0.5*c+0.5,b[12]=f,b[13]=f,b[14]=f,b[15]=1,a.W=c,f=!0);d!==a.ia&&(c=Math.cos(d),b=Math.sin(d),Ee(a.la,0.213+0.787*c-0.213*b,0.213-0.213*c+0.143*b,0.213-0.213*c-0.787*b,0,0.715-0.715*c-0.715*b,0.715+0.285*c+0.14*b,0.715-0.715*c+0.715*b,0,0.072-0.072*c+0.928*b,0.072-0.072*c-0.283*b,0.072+0.928*c+0.072*b,0,0,0,0,1),a.ia=d,f=!0);e!==a.fb&&(Ee(a.eb,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.fb=e,f=!0);f&&(d=a.K,He(d),Ie(d,a.Q,d),Ie(d,a.s,d),Ie(d,a.eb,d),Ie(d,a.la,d));return a.K}go.prototype.g=function(){this.i=this.ta=null;this.n=void 0};function jo(a,b){go.call(this,a,b);this.c=null}E(jo,go);function ko(a,b){var c=tj(b,a),d=a.a.a,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}
jo.prototype.Ja=function(a){var b=this.a.a,c=a.B,d=c.center,e=c.resolution,f=c.rotation,g=this.c,k=this.ta,l=this.b.ja(),n=a.M;n[0]||n[1]||(c=l.ca(a.extent,e,c.projection),null!==c&&(n=c.state,0==n?(Ic(c,"change",this.o,!1,this),uj(c)):2==n&&(g=c,k=ko(this,c),null===this.ta||a.$a.push(sa(function(a,b){a.isContextLost()||a.deleteTexture(b)},b,this.ta)))));null!==g&&(b=this.a.tc(),lo(this,b.width,b.height,d,e,f,g.ba()),d=this.e,He(d),Me(d,1,-1),Le(d,0,-1),this.c=g,this.ta=k,kk(a.attributions,g.d),lk(a,
l))};function lo(a,b,c,d,e,f,g){b*=e;c*=e;a=a.r;He(a);Me(a,2/b,2/c);Ne(a,-f);Le(a,g[0]-d[0],g[1]-d[1]);Me(a,(g[2]-g[0])/2,(g[3]-g[1])/2);Le(a,1,1)};function mo(a){this.a=a}mo.prototype.ja=h("a");function no(a){this.a=a}E(no,mo);no.prototype.S=ba(35632);function oo(a){this.a=a}E(oo,mo);oo.prototype.S=ba(35633);function po(){this.a="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor\x3dtexture2D(e,a);}"}E(po,no);fa(po);function qo(){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(qo,oo);fa(qo);function ro(a,b){this.c=a.getUniformLocation(b,"e");this.d=a.getUniformLocation(b,"d");this.a=a.getAttribLocation(b,"b");this.b=a.getAttribLocation(b,"c")};function so(a,b){go.call(this,a,b);this.wb=po.ra();this.Nc=qo.ra();this.c=null;this.va=new sn([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]);this.q=this.d=null;this.f=-1}E(so,go);so.prototype.A=function(){var a=this.a,b=a.a,c=v(this.va),d=a.e[c];Pa(d.ea.b,d.lc);b.isContextLost()||b.deleteBuffer(d.buffer);delete a.e[c];so.H.A.call(this)};so.prototype.g=function(){so.H.g.call(this);this.c=null};
so.prototype.Ja=function(a){var b=this.a,c=b.a,d=a.B,e=d.projection,f=this.b,g=f.ja(),k=g.tileGrid;null===k&&(k=fk(e));var l=ui(k.a,d.resolution,0),n=k.F(l),q=d.center,s;n==d.resolution?(q=ok(q,n,a.size),s=Cd(q,n,d.rotation,a.size)):s=a.extent;var x=zj(k,s,n);if(null!==this.d&&this.d.a==x.a&&(this.d.c==x.c&&this.d.d==x.d&&this.d.b==x.b)&&this.f==g.c)n=this.q;else{var t=[x.d-x.a+1,x.b-x.c+1],A=k.xa(l),t=Math.max(t[0]*A[0],t[1]*A[1]),B=lj(t),t=n*B,w=k.Eb(l),z=w[0]+x.a*A[0]*n,n=w[1]+x.c*A[1]*n,n=[z,
n,z+t,n+t];ho(this,a,B);c.viewport(0,0,B,B);c.clearColor(0,0,0,0);c.clear(16384);c.disable(3042);A=to(b,this.wb,this.Nc);c.useProgram(A);null===this.c&&(this.c=new ro(c,A));uo(b,this.va);c.enableVertexAttribArray(this.c.a);c.vertexAttribPointer(this.c.a,2,5126,!1,16,0);c.enableVertexAttribArray(this.c.b);c.vertexAttribPointer(this.c.b,2,5126,!1,16,8);c.uniform1i(this.c.c,0);A={};A[l]={};var J=y(g.Wc,g,A,nk(function(a){return null!==a&&2==a.state&&Bm(b.b,a.a())},g,e)),B=!0,z=sd(),D=new cb(0,0,0,0),
S,V,Q;for(V=x.a;V<=x.d;++V)for(Q=x.c;Q<=x.b;++Q){w=g.Ab(l,V,Q,e);S=w.state;if(2==S){if(Bm(b.b,w.a())){A[l][w.L.toString()]=w;continue}}else if(3==S||4==S)continue;B=!1;S=k.rc(w.L,J,null,D,z);S||(w=k.vc(w.L,D,z),null===w||J(l+1,w))}J=La(rc(A),Number);Va(J);var D=new Float32Array(4),G,L,da,va,ha;V=0;for(Q=J.length;V<Q;++V)for(da in va=A[J[V]],va)w=va[da],L=xj(k,w.L,z),S=2*(L[2]-L[0])/t,G=2*(L[3]-L[1])/t,ha=2*(L[0]-n[0])/t-1,L=2*(L[1]-n[1])/t-1,Ce(D,S,G,ha,L),c.uniform4fv(this.c.d,D),vo(b,w),c.drawArrays(5,
0,4);B?(this.d=x,this.q=n,this.f=g.c):(this.q=this.d=null,this.f=-1,a.qa=!0)}mk(a.ec,g,l,x);var la=b.o;pk(a,g,k,e,s,l,f.c(),function(a){var c;(c=2!=a.state)||(c=Bm(b.b,a.a()))||(c=a.a()in la.c);c||Re(la,[a,dk(k,a.L),k.F(a.L.z)])},this);jk(a,g);lk(a,g);c=this.e;He(c);Le(c,(q[0]-n[0])/(n[2]-n[0]),(q[1]-n[1])/(n[3]-n[1]));Ne(c,d.rotation);Me(c,a.size[0]*d.resolution/(n[2]-n[0]),a.size[1]*d.resolution/(n[3]-n[1]));Le(c,-0.5,-0.5)};function wo(){this.a="precision mediump float;uniform vec4 c;void main(void){gl_FragColor\x3dc;}"}E(wo,no);fa(wo);function xo(){this.a="attribute vec2 a;uniform mat4 b;void main(void){gl_Position\x3db*vec4(a,0.,1.);}"}E(xo,oo);fa(xo);function yo(a,b){this.b=a.getUniformLocation(b,"c");this.c=a.getUniformLocation(b,"b");this.a=a.getAttribLocation(b,"a")};function zo(){this.a="precision mediump float;uniform vec4 d;void main(void){gl_FragColor\x3dd;}"}E(zo,no);fa(zo);function Ao(){this.a="attribute vec2 a;uniform float b;uniform mat4 c;void main(void){gl_Position\x3dc*vec4(a,0.,1.);gl_PointSize\x3db;}"}E(Ao,oo);fa(Ao);function Bo(a,b){this.b=a.getUniformLocation(b,"d");this.c=a.getUniformLocation(b,"c");this.d=a.getUniformLocation(b,"b");this.a=a.getAttribLocation(b,"a")};function Co(a,b){go.call(this,a,b);He(this.r);this.f=Fe();this.c=this.d=null}E(Co,go);Co.prototype.g=function(){Co.H.g.call(this);this.c=null};
Co.prototype.Ja=function(a){var b=this.a.a,c=a.B,d=this.b.ja(),e=a.size,f=lj(Math.max(e[0],e[1]));ho(this,a,f);b.viewport(0,0,f,f);b.clearColor(0,0,0,0);b.clear(16384);b.enable(3042);He(this.f);0!==c.rotation&&Ne(this.f,-c.rotation);Me(this.f,2/(f*c.resolution),2/(f*c.resolution));Le(this.f,-c.center[0],-c.center[1]);a=d.b;0<a.length&&Do(this,a);d=d.a;if(0<d.length){a=this.a;var b=a.a,c=wo.ra(),g=xo.ra(),c=to(a,c,g);b.useProgram(c);null===this.d&&(this.d=new yo(b,c));b.uniformMatrix4fv(this.d.c,!1,
this.f);for(var k,l,g=0;g<d.length;++g){l=d[g];k=l.ea;c=l.b;uo(a,k);k=l;l=k.b;var n=La(rc(k.a),Number);Va(n);for(var q=n.length,s=[],x=void 0,t=void 0,A=void 0,A=t=void 0,x=0;x<q;++x)for(t=n[x],A=k.a[t],A=A/l-1,t=t/l;t<A;++t)s.push(t,t+1);l=new Uint16Array(s);k=b.createBuffer();b.bindBuffer(34963,k);b.bufferData(34963,l,35048);b.enableVertexAttribArray(this.d.a);b.vertexAttribPointer(this.d.a,2,5126,!1,4*c,0);b.uniform4fv(this.d.b,[1,1,0,0.75]);b.drawElements(1,l.length,5123,0);b.bindBuffer(34963,
null);b.deleteBuffer(k)}}He(this.e);Le(this.e,0.5,0.5);Me(this.e,e[0]/f,e[1]/f);Le(this.e,-0.5,-0.5)};function Do(a,b){var c=a.a,d=c.a,e=zo.ra(),f=Ao.ra(),e=to(c,e,f);d.useProgram(e);null===a.c&&(a.c=new Bo(d,e));d.uniformMatrix4fv(a.c.c,!1,a.f);for(var g,k,f=0;f<b.length;++f)k=b[f],e=k.ea,g=k.a,uo(c,e),d.enableVertexAttribArray(a.c.a),d.vertexAttribPointer(a.c.a,2,5126,!1,4*g,0),d.uniform4fv(a.c.b,[1,0,0,0.75]),d.uniform1f(a.c.d,3),ln(e,function(a,b){d.drawArrays(0,a/g,(b-a)/g)})};function Eo(){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(Eo,no);fa(Eo);function Fo(){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(Fo,oo);fa(Fo);
function Go(a,b){this.g=a.getUniformLocation(b,"f");this.d=a.getUniformLocation(b,"g");this.e=a.getUniformLocation(b,"e");this.f=a.getUniformLocation(b,"d");this.c=a.getUniformLocation(b,"h");this.a=a.getAttribLocation(b,"b");this.b=a.getAttribLocation(b,"c")};function Ho(){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(Ho,no);fa(Ho);function Io(){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(Io,oo);fa(Io);
function Jo(a,b){this.d=a.getUniformLocation(b,"f");this.e=a.getUniformLocation(b,"e");this.f=a.getUniformLocation(b,"d");this.c=a.getUniformLocation(b,"g");this.a=a.getAttribLocation(b,"b");this.b=a.getAttribLocation(b,"c")};function Ko(a,b){qk.call(this,0,b);this.c=Ig("CANVAS");this.c.height=a.clientHeight;this.c.width=a.clientWidth;this.c.className="ol-unselectable";Mg(a,this.c);this.s=!0;this.v=[a.clientHeight,a.clientWidth];this.a=hn(this.c,{antialias:!0,depth:!1,preserveDrawingBuffer:!1,stencil:!1});H(this.c,"webglcontextlost",this.Gf,!1,this);H(this.c,"webglcontextrestored",this.vf,!1,this);this.r=this.q=null;this.W=new sn([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);this.e={};this.i={};this.g={};this.b=new Am;this.K=
null;this.o=new Oe(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].a()});this.Q=y(function(){if(!this.o.rb()){Te(this.o);var a=Pe(this.o)[0];vo(this,a)}},this);this.n=0;Lo(this)}E(Ko,qk);
function uo(a,b){var c=a.a,d=b.a,e=v(b);if(e in a.e)e=a.e[e],c.bindBuffer(34962,e.buffer),qn(e.lc,function(a,b){var e=d.slice(a,b);c.bufferSubData(34962,a,new Float32Array(e))}),e.lc.clear();else{var f=c.createBuffer();c.bindBuffer(34962,f);c.bufferData(34962,new Float32Array(d),b.d);var g=new nn;b.b.push(g);a.e[e]={ea:b,buffer:f,lc:g}}}
function vo(a,b){var c=a.a,d=b.a();if(Bm(a.b,d))d=a.b.get(d),c.bindTexture(3553,d.ta),9729!=d.Td&&(c.texParameteri(3553,10240,9729),d.Td=9729),9729!=d.Ud&&(c.texParameteri(3553,10240,9729),d.Ud=9729);else{var e=c.createTexture();c.bindTexture(3553,e);c.texImage2D(3553,0,6408,6408,5121,b.ca());c.texParameteri(3553,10240,9729);c.texParameteri(3553,10241,9729);c.texParameteri(3553,10242,33071);c.texParameteri(3553,10243,33071);Cm(a.b,d,{ta:e,Td:9729,Ud:9729})}}m=Ko.prototype;
m.jc=function(a){return a instanceof Ck?new so(this,a):a instanceof Bk?new jo(this,a):a instanceof xn?new Co(this,a):null};m.A=function(){var a=this.a;mc(this.e,function(a){Pa(a.ea.b,a.lc)});a.isContextLost()||(mc(this.e,function(b){a.deleteBuffer(b.buffer)}),mc(this.g,function(b){a.deleteProgram(b)}),mc(this.i,function(b){a.deleteShader(b)}),this.b.forEach(function(b){null===b||a.deleteTexture(b.ta)}));Ko.H.A.call(this)};
m.Ae=function(a,b){for(var c=this.a,d;1024<this.b.ga()-this.n;){d=this.b.a.Sa;if(null===d)if(+this.b.a.Wb==b.index)break;else--this.n;else c.deleteTexture(d.ta);this.b.pop()}};m.tc=h("c");function to(a,b,c){var d=v(b)+"/"+v(c);if(d in a.g)return a.g[d];var e=a.a,f=e.createProgram();e.attachShader(f,Mo(a,b));e.attachShader(f,Mo(a,c));e.linkProgram(f);return a.g[d]=f}
function Mo(a,b){var c=v(b);if(c in a.i)return a.i[c];var d=a.a,e=d.createShader(b.S());d.shaderSource(e,b.ja());d.compileShader(e);return a.i[c]=e}m.Gf=function(a){a.T();this.r=this.q=null;this.e={};this.i={};this.g={};this.b.clear();this.n=0;mc(this.d,function(a){a.g()})};m.vf=function(){Lo(this);ik(this.f)};function Lo(a){a=a.a;a.activeTexture(33984);a.blendFuncSeparate(770,771,1,771);a.disable(2884);a.disable(2929);a.disable(3089)}
m.Gc=function(a){var b=this.a;if(b.isContextLost())return!1;if(null===a)return this.s&&(Th(this.c,!1),this.s=!1),!1;this.K=a.focus;Cm(this.b,(-a.index).toString(),null);++this.n;var c=a.Ec,d=a.B.resolution,e,f,g,k,l;e=0;for(f=c.length;e<f;++e)g=c[e],k=sk(this,g),l=a.pa[v(g)],l.visible&&(1==l.bc&&d<l.maxResolution&&d>=l.minResolution)&&k.Ja(a,l);e=a.size;if(this.v[0]!=e[0]||this.v[1]!=e[1])this.c.width=e[0],this.c.height=e[1],this.v=e;b.bindFramebuffer(36160,null);b.clearColor(0,0,0,0);b.clear(16384);
b.enable(3042);b.viewport(0,0,e[0],e[1]);uo(this,this.W);var n=null,q;e=0;for(f=c.length;e<f;++e)if(g=c[e],l=a.pa[v(g)],l.visible&&!(1!=l.bc||d>=l.maxResolution||d<l.minResolution)){var s=l.brightness||1!=l.contrast||l.hue||1!=l.saturation,x;s?(k=Eo.ra(),x=Fo.ra()):(k=Ho.ra(),x=Io.ra());k=to(this,k,x);k!=n&&(b.useProgram(k),n=k,s?null===this.q?this.q=q=new Go(b,k):q=this.q:null===this.r?this.r=q=new Jo(b,k):q=this.r,b.enableVertexAttribArray(q.a),b.vertexAttribPointer(q.a,2,5126,!1,16,0),b.enableVertexAttribArray(q.b),
b.vertexAttribPointer(q.b,2,5126,!1,16,8),b.uniform1i(q.c,0));k=sk(this,g);b.uniformMatrix4fv(q.f,!1,k.e);b.uniformMatrix4fv(q.e,!1,k.r);s&&b.uniformMatrix4fv(q.g,!1,io(k,l.brightness,l.contrast,l.hue,l.saturation));b.uniform1f(q.d,l.opacity);b.bindTexture(3553,k.ta);b.drawArrays(5,0,4)}this.s||(Th(this.c,!0),this.s=!0);rk(a);1024<this.b.ga()-this.n&&a.$a.push(y(this.Ae,this));this.o.rb()||(a.$a.push(this.Q),a.qa=!0);uk(this,a)};var No={},Oo={mg:"canvas",ug:"dom",kh:"webgl"},Po=["webgl","canvas","dom"];
function X(a){K.call(this);a=Qo(a);this.e=new mg(this.Qf,void 0,this);ib(this,this.e);this.Oc=De();this.qe=De();this.oe=0;this.d=null;this.f=0;this.s=!1;this.r=this.Q=null;this.b=Fg("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";ei&&(this.b.className="ol-touch");this.eb=Fg("DIV","ol-overlaycontainer");this.b.appendChild(this.eb);this.v=Fg("DIV","ol-overlaycontainer-stopevent");
H(this.v,["click","dblclick",ei?"touchstart":"mousedown",ei?"touchend":"mouseup"],lb);this.b.appendChild(this.v);var b=new hi(this);H(b,qc(ri),this.Wd,!1,this);ib(this,b);this.q=new wh;H(this.q,"key",this.Md,!1,this);ib(this,this.q);b=new bi(this.b);H(b,"mousewheel",this.Md,!1,this);ib(this,b);this.o=a.controls;this.va=a.interactions;this.K=a.overlays;this.i=new a.Rf(this.b,this);ib(this,this.i);this.te=new Rg;H(this.te,"resize",this.ia,!1,this);this.W=null;this.g=[];this.fb=[];this.wb=new Ue(y(this.Me,
this),y(this.pf,this));H(this,Zc("layergroup"),this.Xe,!1,this);H(this,Zc("view"),this.tf,!1,this);H(this,Zc("size"),this.mf,!1,this);H(this,Zc("target"),this.of,!1,this);this.Xb(a.bg);this.o.forEach(function(a){a.setMap(this)},this);this.K.forEach(function(a){a.d(this)},this)}E(X,K);m=X.prototype;m.ue=function(a){this.o.push(a);a.setMap(this)};m.ud=function(a){this.Ma().Ya().push(a)};m.ve=function(a){this.K.push(a);a.d(this)};m.Ba=function(a){Wi(this);Array.prototype.push.apply(this.g,arguments)};
m.A=function(){Ng(this.b);X.H.A.call(this)};m.Fd=function(a){return Yi(this,this.Yc(a))};m.Yc=function(a){if(r(a.changedTouches)){a=a.changedTouches.item(0);var b=Oh(this.b);return[a.clientX-b.x,a.clientY-b.y]}a=Nh(a,this.b);return[a.x,a.y]};m.Ke=h("i");m.Fc=function(){return this.get("target")};X.prototype.getTarget=X.prototype.Fc;function Yi(a,b){var c=a.d;if(null===c)return null;var d=b.slice();return yn(c.ae,d,d)}m=X.prototype;m.Ee=h("o");m.Je=h("K");
m.Fe=function(a){var b=null!=a.layers?a.layers:this.Ma().Nb();this.i.La(a.pixel,b,a.success,a.error)};m.Gd=function(a){var b=null!=a.layers?a.layers:this.Ma().Nb();tk(this.i,a.pixel,b,a.success,a.error)};m.He=h("va");m.Ma=function(){return this.get("layergroup")};X.prototype.getLayerGroup=X.prototype.Ma;X.prototype.pe=function(){return this.Ma().Ya()};function Xi(a,b){var c=a.d;if(null===c)return null;var d=b.slice(0,2);return yn(c.zd,d,d)}X.prototype.c=function(){return this.get("size")};
X.prototype.getSize=X.prototype.c;X.prototype.a=function(){return this.get("view")};X.prototype.getView=X.prototype.a;m=X.prototype;m.Ne=h("b");m.Me=function(a,b,c,d){var e=this.d;if(!(null!==e&&b in e.Kb&&e.Kb[b][a.L.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};m.Md=function(a,b){this.Wd(new gi(b||a.type,this,a))};
m.Wd=function(a){if(null!==this.d){this.W=a.d();a.b=this.d;var b=this.va.a,c;if(!1!==I(this,a))for(c=b.length-1;0<=c&&b[c].tb(a);c--);}};
m.jf=function(){var a=this.d,b=this.wb;if(!b.rb()){var c=16,d=c,e=0;if(null!==a){e=a.M;if(e[0]||e[1])c=8,d=2;e=oc(a.Kb)}c*=e;d*=e;if(b.d<c){Te(b);c=Math.min(c-b.d,d,b.ga());for(d=0;d<c;++d)e=Pe(b)[0],Ic(e,"change",b.g,!1,b),0==e.state&&(e.state=1,e.c=[Ic(e.b,"error",e.i,!1,e),Ic(e.b,"load",e.n,!1,e)],e.g(e,e.e));b.d+=c}}b=this.fb;c=0;for(d=b.length;c<d;++c)b[c](this,a);b.length=0};m.mf=function(){ik(this)};
m.of=function(){var a=this.Fc(),a=r(a)?u(a)?document.getElementById(a):a:null;Dh(this.q);null===a?Ng(this.b):(a.appendChild(this.b),xh(this.q,a));this.ia()};m.pf=function(){Wi(this)};m.uf=function(){ik(this)};m.tf=function(){null!==this.Q&&(Lc(this.Q),this.Q=null);var a=this.a();null!=a&&(this.Q=H(a,"change",this.uf,!1,this));ik(this)};m.Ye=function(){ik(this)};m.Xe=function(){null!==this.r&&(Lc(this.r),this.r=null);var a=this.Ma();null!=a&&(this.r=H(a,"change",this.Ye,!1,this));ik(this)};
m.Vb=function(){var a=this.a(),b;if(b=r(a)){if(a=a.Vb())a=null!=this.c();b=a}return b};function ik(a){null==a.e.ma&&(0===a.f?(a=a.e,ng(a),a.Tc()):a.s=!0)}function Wi(a){0===a.f?null!=a.e.ma||a.e.start():a.s=!0}m.Mf=function(a){if(r(this.o.remove(a)))return a.setMap(null),a};m.de=function(a){return this.Ma().Ya().remove(a)};m.Nf=function(a){if(r(this.K.remove(a)))return a.d(null),a};
m.Qf=function(a){var b,c,d;if(0===this.f){var e=this.c();b=this.a();var f=r(b)?this.a().O():void 0,g=null;if(r(e)&&r(f)&&f.Vb()){g=Ra(b.e);b=this.Ma().$c();var k=b.layers;d=b.pa;var l={},n;b=0;for(c=k.length;b<c;++b)n=k[b],l[v(n)]=d[b];d=Di(f);g={qa:!1,attributions:{},zd:this.Oc,extent:null,focus:null===this.W?d.center:this.W,index:this.oe++,Ec:k,pa:l,Sd:{},ae:this.qe,$a:[],size:e,Xf:this.wb,time:a,ec:{},B:d,M:g,Kb:{}}}a=this.g;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=Cd(d.center,d.resolution,d.rotation,g.size));this.d=g;this.i.Gc(g);this.s=!1;null!==g&&(g.qa&&Wi(this),Array.prototype.push.apply(this.fb,g.$a),0!=this.g.length||(g.qa||g.M[0]||g.M[1])||I(this,new fi("moveend",this)));I(this,new fi("postrender",this,g));c=b=this.jf;this&&(c=y(b,this));ma(p.setImmediate)?p.setImmediate(c):(qg||(qg=rg()),qg(c))}};m.Tf=function(a){this.k("layergroup",a)};X.prototype.setLayerGroup=X.prototype.Tf;X.prototype.la=function(a){this.k("size",a)};
X.prototype.setSize=X.prototype.la;X.prototype.re=function(a){this.k("target",a)};X.prototype.setTarget=X.prototype.re;X.prototype.se=function(a){this.k("view",a)};X.prototype.setView=X.prototype.se;X.prototype.ia=function(){var a=this.Fc(),a=r(a)?u(a)?document.getElementById(a):a:null;null===a?this.la(void 0):(a=Qh(a),this.la([a.width,a.height]))};function Li(a,b){++a.f;try{b.call(void 0)}finally{if(0===--a.f&&a.s){var c=a.e;ng(c);c.Tc()}}}
function Qo(a){var b={},c=a.layers instanceof kj?a.layers:new kj({layers:a.layers});b.layergroup=c;b.target=a.target;b.view=r(a.view)?a.view:new R;var c=qk,d;d=r(a.renderers)?a.renderers:r(a.renderer)?[a.renderer]:Po;var e=d.length,f,g;for(f=0;f<e;++f)if(g=d[f],"canvas"==g){if(vk){c=Wm;break}}else if("dom"==g){c=fn;break}else if("webgl"==g&&jn){c=Ko;break}d=r(a.controls)?ia(a.controls)?new M(Ra(a.controls)):a.controls:Ii();e=r(a.interactions)?a.interactions:jj();a=r(a.overlays)?ia(a.overlays)?new M(Ra(a.overlays)):
a.overlays:new M;return{controls:d,interactions:e,overlays:a,Rf:c,bg:b}}No.ze=function(a){var b=p.location.search.substring(1);a=r(a)?a:new Rf(b);return dg(a,"renderers")?a.get("renderers").split(","):dg(a,"renderer")?[a.get("renderer")]:Po};rj();var Ro={kg:"bottom-left",jg:"bottom-center",lg:"bottom-right",og:"center-left",ng:"center-center",pg:"center-right",dh:"top-left",bh:"top-center",eh:"top-right"};
function So(a){K.call(this);this.r=r(a.stopEvent)?a.stopEvent:!1;this.b=Ig("DIV");this.b.style.position="absolute";this.a={hc:"",Ha:"",Ka:"",Lc:"",visible:!0};this.c=null;H(this,Zc("element"),this.Ve,!1,this);H(this,Zc("map"),this.bf,!1,this);H(this,Zc("position"),this.gf,!1,this);H(this,Zc("positioning"),this.hf,!1,this);r(a.element)&&this.ge(a.element);r(a.position)&&this.o(a.position);r(a.positioning)&&this.q(a.positioning)}E(So,K);So.prototype.g=function(){return this.get("element")};
So.prototype.getElement=So.prototype.g;So.prototype.e=function(){return this.get("map")};So.prototype.getMap=So.prototype.e;So.prototype.i=function(){return this.get("position")};So.prototype.getPosition=So.prototype.i;So.prototype.f=function(){return this.get("positioning")};So.prototype.getPositioning=So.prototype.f;m=So.prototype;m.Ve=function(){Kg(this.b);var a=this.g();null!=a&&Jg(this.b,a)};
m.bf=function(){null!==this.c&&(Ng(this.b),Lc(this.c),this.c=null);var a=this.e();null!=a&&(this.c=H(a,"postrender",this.Ff,!1,this),To(this),Jg(this.r?a.v:a.eb,this.b))};m.Ff=function(){To(this)};m.gf=function(){To(this)};m.hf=function(){To(this)};m.ge=function(a){this.k("element",a)};So.prototype.setElement=So.prototype.ge;So.prototype.d=function(a){this.k("map",a)};So.prototype.setMap=So.prototype.d;So.prototype.o=function(a){this.k("position",a)};So.prototype.setPosition=So.prototype.o;
So.prototype.q=function(a){this.k("positioning",a)};So.prototype.setPositioning=So.prototype.q;
function To(a){var b=a.e(),c=a.i();if(r(b)&&b.Vb()&&r(c)){var c=Xi(b,c),d=b.c(),b=a.b.style,e=a.f();if("bottom-right"==e||"center-right"==e||"top-right"==e){""!==a.a.Ha&&(a.a.Ha=b.left="");var f=Math.round(d[0]-c[0])+"px";a.a.Ka!=f&&(a.a.Ka=b.right=f)}else{""!==a.a.Ka&&(a.a.Ka=b.right="");f=0;if("bottom-center"==e||"center-center"==e||"top-center"==e)f=Qh(a.b).width/2;f=Math.round(c[0]-f)+"px";a.a.Ha!=f&&(a.a.Ha=b.left=f)}if("bottom-left"==e||"bottom-center"==e||"bottom-right"==e)""!==a.a.Lc&&(a.a.Lc=
b.top=""),c=Math.round(d[1]-c[1])+"px",a.a.hc!=c&&(a.a.hc=b.bottom=c);else{""!==a.a.hc&&(a.a.hc=b.bottom="");d=0;if("center-left"==e||"center-center"==e||"center-right"==e)d=Qh(a.b).height/2;c=Math.round(c[1]-d)+"px";a.a.Lc!=c&&(a.a.Lc=b.top=c)}a.a.visible||(Th(a.b,!0),a.a.visible=!0)}else a.a.visible&&(Th(a.b,!1),a.a.visible=!1)};var Uo;Uo=!1;var Vo=wb();Vo&&(-1!=Vo.indexOf("Firefox")||-1!=Vo.indexOf("Camino")||-1!=Vo.indexOf("iPhone")||-1!=Vo.indexOf("iPod")||-1!=Vo.indexOf("iPad")||-1!=Vo.indexOf("Android")||-1!=Vo.indexOf("Chrome")&&(Uo=!0));var Wo=Uo;var Xo=Db?"webkitfullscreenchange":"mozfullscreenchange";function Yo(){var a=zg().a,b=a.body;return!!b.webkitRequestFullScreen||!!b.mozRequestFullScreen&&a.mozFullScreenEnabled}function Zo(){var a=zg().a;return!!a.webkitIsFullScreen||!!a.mozFullScreen};function $o(a){a=r(a)?a:{};this.b=r(a.className)?a.className:"ol-full-screen";var b=Fg("A",{href:"#fullScreen","class":this.b+"-"+Zo()});H(b,["click","touchend"],this.c,!1,this);H(p.document,Xo,this.f,!1,this);b=Fg("DIV",{"class":this.b+" ol-unselectable "+(Yo()?"":"ol-unsupported")},b);Ei.call(this,{element:b,target:a.target});this.g=r(a.keys)?a.keys:!1}E($o,Ei);
$o.prototype.c=function(a){Yo()&&(a.T(),a=this.a,null!==a&&(Zo()?(a=zg().a,a.webkitCancelFullScreen?a.webkitCancelFullScreen():a.mozCancelFullScreen&&a.mozCancelFullScreen()):(a=a.Fc(),a=u(a)?document.getElementById(a):a,this.g?a.mozRequestFullScreenWithKeys?a.mozRequestFullScreenWithKeys():a.webkitRequestFullScreen&&a.ALLOW_KEYBOARD_INPUT&&Wo?a.webkitRequestFullScreen(a.ALLOW_KEYBOARD_INPUT):a.webkitRequestFullScreen?a.webkitRequestFullScreen():a.mozRequestFullScreen&&a.mozRequestFullScreen():a.webkitRequestFullScreen?
a.webkitRequestFullScreen():a.mozRequestFullScreen&&a.mozRequestFullScreen())))};$o.prototype.f=function(){var a=this.b+"-true",b=this.b+"-false",c=Og(this.element);Zo()?wg(c,b,a):wg(c,a,b)};function ap(a){a=r(a)?a:{};var b=Fg("DIV",{"class":r(a.className)?a.className:"ol-mouse-position"});Ei.call(this,{element:b,target:a.target});H(this,Zc("projection"),this.K,!1,this);r(a.coordinateFormat)&&this.r(a.coordinateFormat);r(a.projection)&&this.o(te(a.projection));this.Q=r(a.undefinedHTML)?a.undefinedHTML:"";this.g=b.innerHTML;this.f=this.c=this.b=null}E(ap,Ei);ap.prototype.d=function(a){a=a.b;null===a?this.b=null:this.b!=a.B.projection&&(this.b=a.B.projection,this.c=null);bp(this,this.f)};
ap.prototype.K=function(){this.c=null};ap.prototype.i=function(){return this.get("coordinateFormat")};ap.prototype.getCoordinateFormat=ap.prototype.i;ap.prototype.ha=function(){return this.get("projection")};ap.prototype.getProjection=ap.prototype.ha;ap.prototype.s=function(a){a=Nh(a,this.a.b);this.f=[a.x,a.y];bp(this,this.f)};ap.prototype.v=function(){bp(this,null);this.f=null};
ap.prototype.setMap=function(a){ap.H.setMap.call(this,a);null!==a&&(a=a.b,this.e.push(H(a,"mousemove",this.s,!1,this),H(a,"mouseout",this.v,!1,this)))};ap.prototype.r=function(a){this.k("coordinateFormat",a)};ap.prototype.setCoordinateFormat=ap.prototype.r;ap.prototype.o=function(a){this.k("projection",a)};ap.prototype.setProjection=ap.prototype.o;
function bp(a,b){var c=a.Q;if(null!==b&&null!==a.b){if(null===a.c){var d=a.ha();a.c=r(d)?Ud(a.b,d):ve}d=Yi(a.a,b);null!==d&&(a.c(d,d),c=a.i(),c=r(c)?c(d):d.toString())}r(a.g)&&c==a.g||(a.element.innerHTML=c,a.g=c)};var cp={le:"degrees",Hg:"imperial",Tg:"nautical",Ng:"metric",ih:"us"};function dp(a){a=a||{};var b=r(a.className)?a.className:"ol-scale-line";this.f=Fg("DIV",{"class":b+"-inner"});this.g=Fg("DIV",{"class":b+" ol-unselectable"},this.f);this.o=null;this.i=r(a.minWidth)?a.minWidth:64;this.c=!1;this.v=void 0;this.r="";this.b=null;Ei.call(this,{element:this.g,target:a.target});H(this,Zc("units"),this.Q,!1,this);this.K(a.units||"metric")}E(dp,Ei);var ep=[1,2,5];dp.prototype.s=function(){return this.get("units")};
dp.prototype.getUnits=dp.prototype.s;dp.prototype.d=function(a){a=a.b;null===a?this.o=null:this.o=a.B;fp(this)};dp.prototype.Q=function(){fp(this)};dp.prototype.K=function(a){this.k("units",a)};dp.prototype.setUnits=dp.prototype.K;
function fp(a){var b=a.o;if(null===b)a.c&&(Th(a.g,!1),a.c=!1);else{var c=b.center,d=b.projection,b=d.b(b.resolution,c),e=d.Jb,f=a.s();"degrees"!=e||"metric"!=f&&"imperial"!=f?"ft"!=e&&"m"!=e||"degrees"!=f?a.b=null:(null===a.b&&(a.b=Ud(d,te("EPSG:4326"))),c=Math.cos(fd(a.b(c)[1])),d=Nd.a,"ft"==e&&(d/=0.3048),b*=180/(Math.PI*c*d)):(a.b=null,c=Math.cos(fd(c[1])),b*=Math.PI*c*Nd.a/180);c=a.i*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.i*b)/Math.log(10)),g,k;;){g=ep[f%3]*Math.pow(10,Math.floor(f/3));k=Math.round(g/b);if(k>=a.i)break;++f}g=g+e;a.r!=g&&(a.f.innerHTML=g,a.r=g);a.v!=k&&(a.f.style.width=k+"px",a.v=k);a.c||(Th(a.g,!0),a.c=!0)}};function gp(a){fb.call(this);this.b=a;this.a={}}E(gp,fb);var hp=[];gp.prototype.Pa=function(a,b,c,d,e){ia(b)||(hp[0]=b,b=hp);for(var f=0;f<b.length;f++){var g=H(a,b[f],c||this,d||!1,e||this.b||this);this.a[g.key]=g}return this};
gp.prototype.qd=function(a,b,c,d,e){if(ia(b))for(var f=0;f<b.length;f++)this.qd(a,b[f],c,d,e);else{a:if(e=e||this.b||this,d=!!d,c=Ec(c||this),ic(a))a=a.Da.a[b],b=-1,a&&(b=Rc(a,c,d,e)),e=-1<b?a[b]:null;else{if(a=Kc(a,b,d))for(b=0;b<a.length;b++)if(!a[b].Ra&&a[b].Ia==c&&a[b].capture==d&&a[b].pb==e){e=a[b];break a}e=null}e&&(Lc(e),delete this.a[e.key])}return this};function ip(a){mc(a.a,Lc);a.a={}}gp.prototype.A=function(){gp.H.A.call(this);ip(this)};
gp.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function jp(a,b,c){Sc.call(this);this.target=a;this.d=b||a;this.b=c||new Fh(NaN,NaN,NaN,NaN);this.c=Bg(a);this.a=new gp(this);ib(this,this.a);H(this.d,["touchstart","mousedown"],this.ie,!1,this)}E(jp,Sc);var kp=F||Bb&&Qb("1.9.3");m=jp.prototype;m.clientX=0;m.clientY=0;m.Id=0;m.Jd=0;m.Kd=0;m.Ld=0;m.Bb=0;m.Cb=0;m.Ad=!0;m.ob=!1;m.Qd=0;m.Cf=0;m.xf=!1;m.rd=!1;
m.A=function(){jp.H.A.call(this);Jc(this.d,["touchstart","mousedown"],this.ie,!1,this);ip(this.a);kp&&this.c.releaseCapture();this.d=this.target=null};function lp(a){r(a.f)||(a.f=Uh(a.target));return a.f}
m.ie=function(a){var b="mousedown"==a.type;if(!this.Ad||this.ob||b&&!$b(a))I(this,"earlycancel");else{mp(a);if(0==this.Qd)if(I(this,new np("start",this,a.clientX,a.clientY,a)))this.ob=!0,a.T();else return;else a.T();var b=this.c,c=b.documentElement,d=!kp;this.a.Pa(b,["touchmove","mousemove"],this.ff,d);this.a.Pa(b,["touchend","mouseup"],this.oc,d);kp?(c.setCapture(!1),this.a.Pa(c,"losecapture",this.oc)):this.a.Pa(b?b.parentWindow||b.defaultView:window,"blur",this.oc);F&&this.xf&&this.a.Pa(b,"dragstart",
mb);this.g&&this.a.Pa(this.g,"scroll",this.If,d);this.clientX=this.Kd=a.clientX;this.clientY=this.Ld=a.clientY;this.Id=a.dd;this.Jd=a.ed;this.rd?(a=this.target,b=a.offsetLeft,c=a.offsetParent,c||"fixed"!=Hh(a,"position")||(c=Bg(a).documentElement),c?(Bb?(d=Xh(c),b+=d.left):F&&8<=Sb&&(d=Xh(c),b-=d.left),a=Uh(c)?c.clientWidth-(b+a.offsetWidth):b):a=b):a=this.target.offsetLeft;this.Bb=a;this.Cb=this.target.offsetTop;this.e=Qg(zg(this.c));this.Cf=ta()}};
m.oc=function(a,b){ip(this.a);kp&&this.c.releaseCapture();if(this.ob){mp(a);this.ob=!1;var c=op(this,this.Bb),d=pp(this,this.Cb);I(this,new np("end",this,a.clientX,a.clientY,a,c,d,b||"touchcancel"==a.type))}else I(this,"earlycancel")};function mp(a){var b=a.type;"touchstart"==b||"touchmove"==b?Yb(a,a.aa.targetTouches[0],a.c):"touchend"!=b&&"touchcancel"!=b||Yb(a,a.aa.changedTouches[0],a.c)}
m.ff=function(a){if(this.Ad){mp(a);var b=(this.rd&&lp(this)?-1:1)*(a.clientX-this.clientX),c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.Id=a.dd;this.Jd=a.ed;if(!this.ob){var d=this.Kd-this.clientX,e=this.Ld-this.clientY;if(d*d+e*e>this.Qd)if(I(this,new np("start",this,a.clientX,a.clientY,a)))this.ob=!0;else{this.Yb||this.oc(a);return}}c=qp(this,b,c);b=c.x;c=c.y;this.ob&&I(this,new np("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(rp(this,a,b,c),a.T())}};
function qp(a,b,c){var d=Qg(zg(a.c));b+=d.x-a.e.x;c+=d.y-a.e.y;a.e=d;a.Bb+=b;a.Cb+=c;b=op(a,a.Bb);a=pp(a,a.Cb);return new xg(b,a)}m.If=function(a){var b=qp(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;rp(this,a,b.x,b.y)};function rp(a,b,c,d){a.rd&&lp(a)?a.target.style.right=c+"px":a.target.style.left=c+"px";a.target.style.top=d+"px";I(a,new np("drag",a,b.clientX,b.clientY,b,c,d))}
function op(a,b){var c=a.b,d=isNaN(c.left)?null:c.left,c=isNaN(c.width)?0:c.width;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function pp(a,b){var c=a.b,d=isNaN(c.top)?null:c.top,c=isNaN(c.height)?0:c.height;return Math.min(null!=d?d+c:Infinity,Math.max(null!=d?d:-Infinity,b))}function np(a,b,c,d,e,f,g,k){kb.call(this,a);this.clientX=c;this.clientY=d;this.d=e;this.left=r(f)?f:b.Bb;this.top=r(g)?g:b.Cb;this.b=b;this.a=!!k}E(np,kb);function sp(a){a=r(a)?a:{};this.b=void 0;this.c=tp;this.i=!1;this.f=null;a=r(a.className)?a.className:"ol-zoomslider";a=Fg("DIV",a+" ol-unselectable",Fg("DIV",a+"-thumb ol-unselectable"));null!==this.f&&(Ja(this.f,Lc),this.f=null);var b=new jp(a.childNodes[0]);this.f=[H(b,["drag","end"],this.r,void 0,this)];this.g=b;H(a,["touchend","click"],this.o,!1,this);Ei.call(this,{element:a})}E(sp,Ei);var tp=0;sp.prototype.setMap=function(a){sp.H.setMap.call(this,a);null===a||ik(a)};
sp.prototype.d=function(a){if(null!==a.b){if(!this.i){var b=this.element,c=Og(b);var d=Bg(b),e=F&&b.currentStyle;e&&Pg(zg(d))&&"auto"!=e.width&&"auto"!=e.height&&!e.boxSizing?(d=Yh(b,e.width,"width","pixelWidth"),b=Yh(b,e.height,"height","pixelHeight"),b=new yg(d,b)):(e=new yg(b.offsetWidth,b.offsetHeight),d=Wh(b,"padding"),b=Xh(b),b=new yg(e.width-b.left-d.left-d.right-b.right,e.height-b.top-d.top-d.bottom-b.bottom));var e=Mh(c),d=Qh(c),e=new Fh(e.x,e.y,d.width,d.height),d=Wh(c,"margin"),f=Xh(c),
c=b.width-d.left-d.right-f.left-f.right-e.width,e=b.height-d.top-d.bottom-f.top-f.bottom-e.height;b.width>b.height?(this.c=1,c=new Fh(0,0,c,0)):(this.c=tp,c=new Fh(0,0,0,e));this.g.b=c||new Fh(NaN,NaN,NaN,NaN);this.i=!0}a=a.b.B.resolution;a!==this.b&&(this.b=a,a=-1*(Ci(this.a.a().O())(a)-1),c=this.g,b=Og(this.element),1==this.c?Ih(b,c.b.left+c.b.width*a):Ih(b,c.b.left,c.b.top+c.b.height*a))}};sp.prototype.o=function(){};
sp.prototype.r=function(a){var b=this.a,c=b.a().O();if("drag"===a.type){var b=this.g.b,d=0,d=1===this.c?(a.left-b.left)/b.width:(a.top-b.top)/b.height;a=-1*(dd(d,0,1)-1);a=Bi(this.a.a().O())(a);a!==this.b&&(this.b=a,c.cb(a))}else b.Ba(jf({resolution:this.b,duration:200,easing:bf})),a=c.Ca(this.b),c.cb(a)};function up(a){a=r(a)?a:{};this.b=r(a.extent)?a.extent:null;var b=Fg("DIV",{"class":(r(a.className)?a.className:"ol-zoom-extent")+" ol-unselectable"}),c=Fg("A",{href:"#zoomExtent"});b.appendChild(c);H(b,["touchend","click"],this.c,!1,this);Ei.call(this,{element:b,target:a.target})}E(up,Ei);up.prototype.c=function(a){a.T();a=this.a;var b=a.a().O(),c=null===this.b?b.ha().ba():this.b;b.Xc(c,a.c())};function vp(a){K.call(this);this.a=a;H(this.a,"change",this.o,!1,this);H(this,Zc("value"),this.r,!1,this);H(this,Zc("valueAsNumber"),this.q,!1,this);H(this,Zc("checked"),this.i,!1,this)}E(vp,K);vp.prototype.b=function(){return this.get("checked")};vp.prototype.getChecked=vp.prototype.b;vp.prototype.d=function(){return this.get("value")};vp.prototype.getValue=vp.prototype.d;vp.prototype.c=function(){return this.get("valueAsNumber")};vp.prototype.getValueAsNumber=vp.prototype.c;
vp.prototype.f=function(a){this.k("value",a)};vp.prototype.setValue=vp.prototype.f;vp.prototype.g=function(a){this.k("valueAsNumber",a)};vp.prototype.setValueAsNumber=vp.prototype.g;vp.prototype.e=function(a){this.k("checked",a)};vp.prototype.setChecked=vp.prototype.e;vp.prototype.o=function(){"checkbox"===this.a.type||"radio"===this.a.type?this.e(this.a.checked):(this.f(this.a.value),this.g(this.a.valueAsNumber))};vp.prototype.i=function(){this.a.checked=this.b()?"checked":void 0};
vp.prototype.r=function(){this.a.value=this.d()};vp.prototype.q=function(){this.a.value=this.c()};function wp(a,b){this.x=a;this.y=b}E(wp,xg);wp.prototype.$=function(){return new wp(this.x,this.y)};wp.prototype.scale=xg.prototype.scale;wp.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function xp(a){a=r(a)?a:{};Ui.call(this);this.n=r(a.condition)?a.condition:Si;this.a=this.d=void 0;this.G=0}E(xp,Ui);xp.prototype.yc=function(a){var b=a.map,c=b.c();a=a.e();a=new wp(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().O(),e=Di(d);Wi(b);r(this.d)&&Ki(b,d,e.rotation-(c-this.d));this.d=c;r(this.a)&&Ni(b,d,this.a*(e.resolution/a));r(this.a)&&(this.G=this.a/a);this.a=a};
xp.prototype.Sb=function(a){var b=a.map,c=b.a().O(),d=Di(c),e=this.G-1;Li(b,function(){var a=d.rotation,a=c.ic(a,0);Ki(b,c,a,void 0,void 0);a=d.resolution;a=c.Ca(a,0,e);Ni(b,c,a,void 0,400)});this.G=0;return!0};xp.prototype.Tb=function(a){return this.n(a)?(this.a=this.d=void 0,!0):!1};function yp(a){a=r(a)?a:{};this.e=r(a.condition)?a.condition:Qi;this.d=r(a.addCondition)?a.addCondition:Si;this.b={};this.a={};this.c=r(a.layerFilter)?a.layerFilter:null}E(yp,Ji);
yp.prototype.tb=function(a){if(this.e(a)){var b=a.map,c=b.Ma().Nb();null===this.c||(c=Ka(c,this.c));var d=!this.d(a),e=this;b.Gd({layers:c,pixel:a.e(),success:function(a){var g=c,k=v(b);k in e.a||(e.a[k]={map:b,layers:{}});for(var l=0,n=a.length;l<n;++l){var q=g[l],s=v(q),x=e.a[k].layers[s];r(x)||(x=new om({source:new $k({parser:null}),style:q instanceof om?q.c:null}),x.Oc=!0,b.ud(x),e.a[k].layers[s]=x,e.b[s]={});var t,A;ma(q.d)&&(t=[],A=[]);var B=a[l],w=B.length,z=[],J=[],D=e.b[s],S=D;if(d){for(var V in D)r(A)&&
A.push(q.a.a[V]),J.push(D[V]);D={};e.b[s]=D}for(var Q=0;Q<w;++Q){var G=B[Q],L=v(G),da=D[L];da?(r(A)&&A.push(G),delete D[L],J.push(da)):L in S||(da=new N(G.jb()),da.Aa(G.D().$()),da.Ea=G.Ea,da.b=G.zb(),da.bb="selected",D[L]=da,r(t)&&t.push(G),z.push(da))}ma(q.d)&&(q.d("hidden",t),q.d("default",A));q=x;B=sd();Q=Q=void 0;w=0;for(S=J.length;w<S;++w)Q=J[w],q.a.remove(Q),Q=Q.D(),null===Q||zd(B,Q.fa());I(q,new rm(um,J,[B]));qm(x,z);0==oc(D)&&(b.de(x),delete e.a[k].layers[s],delete e.b[s])}}})}return!0};function zp(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");if(b){b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}
function Ap(a){if("undefined"!=typeof XMLSerializer)return(new XMLSerializer).serializeToString(a);if(a=a.xml)return a;throw Error("Your browser does not support serializing XML documents");};function Bp(){};function Cp(){p.ActiveXObject&&(this.b=new ActiveXObject("Microsoft.XMLDOM"));this.R={ua:/^\s*|\s*$/g,Of:/\s*/g,Ib:/\s+/,od:/\s*,\s*/g}}E(Cp,Bp);m=Cp.prototype;m.Qa=function(a,b){b||(b={});var c=this.j[a.namespaceURI]||this.j[this.C];if(c){var d=a.localName||a.nodeName.split(":").pop();(c=c[d]||c["*"])&&c.apply(this,[a,b])}return b};function Y(a,b,c){c||(c={});b=b.childNodes;for(var d,e=0,f=b.length;e<f;++e)d=b[e],1==d.nodeType&&a.Qa(d,c)}
function Z(a){var b="";if(a)for(a=a.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:case 4:b+=a.nodeValue}return b}m.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else{var e=null;if(a.getAttributeNodeNS)e=a.getAttributeNodeNS(b,c);else{a=a.attributes;for(var f,g,k=0,l=a.length;k<l;++k)if(f=a[k],f.namespaceURI==b&&(g=f.prefix?f.prefix+":"+c:c,g==f.nodeName)){e=f;break}}if(b=e)d=b.nodeValue}return d};
m.createElementNS=function(a,b){var c=b?b:this.C;return this.b?this.b.createNode(1,a,c):document.createElementNS(c,a)};function $(a,b,c,d,e){var f=null;r(a.a)&&(f=a.a[d?d:a.C][b].apply(a,[c]),e&&f&&e.appendChild(f));return f}m.createTextNode=function(a){return this.b?this.b.createTextNode(a):document.createTextNode(a)};
m.setAttributeNS=function(a,b,c,d){if(a.setAttributeNS)a.setAttributeNS(b,c,d);else if(this.b)b?(b=a.ownerDocument.createNode(2,c,b),b.nodeValue=d,a.setAttributeNode(b)):a.setAttribute(c,d);else throw Error("setAttributeNS not implemented");};function Dp(a,b){if(a.b)return b.xml;if(1==b.nodeType){var c=document.implementation.createDocument("","",null);c.importNode?c.appendChild(c.importNode(b,!0)):c.appendChild(b);return Ap(c)}return Ap(b)}
m.createDocumentFragment=function(){return this.b?this.b.createDocumentFragment():document.createDocumentFragment()};function Ep(a){a=r(a)?a:{};this.extractAttributes=r(a.extractAttributes)?a.extractAttributes:!0;this.extractWaypoints=r(a.extractWaypoints)?a.extractWaypoints:!0;this.extractTracks=r(a.extractTracks)?a.extractTracks:!0;this.extractRoutes=r(a.extractRoutes)?a.extractRoutes:!0;this.creator=r(a.creator)?a.creator:"OpenLayers";this.defaultDesc=r(a.defaultDesc)?a.defaultDesc:"No description available";this.C="http://www.topografix.com/GPX/1/1";this.schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd";
this.j={"http://www.topografix.com/GPX/1/1":{gpx:function(a,c){r(c.features)||(c.features=[]);Y(this,a,c)},wpt:function(a,c){if(this.extractWaypoints){var d={},e=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];Y(this,a,d);d=new N(d);e=new Hm(e);d.Aa(e);c.features.push(d)}},rte:function(a,c){if(this.extractRoutes||c.Be){var d={properties:{},geometry:{type:"linestring",coordinates:[]}};Y(this,a,d);var e=new N(d.properties),d=new Fm(d.geometry.coordinates);e.Aa(d);c.features.push(e)}},
rtept:function(a,c){var d=[parseFloat(a.getAttribute("lon")),parseFloat(a.getAttribute("lat"))];c.geometry.coordinates.push(d)},trk:function(a,c){if(this.extractTracks){var d=this.j[this.C];c.Be=!0;d.rte.apply(this,arguments)}},trkseg:function(a,c){Y(this,a,c)},trkpt:function(a,c){this.j[this.C].rtept.apply(this,arguments)},"*":function(a,c){if(!0===this.extractAttributes){var d=a.childNodes.length;1!==d&&2!==d||3!==a.firstChild.nodeType&&4!==a.firstChild.nodeType||this.j[this.C]._attribute.apply(this,
arguments)}},_attribute:function(a,c){var d=a.localName||a.nodeName.split(":").pop(),e=Z(a);c.properties?c.properties[d]=e.replace(this.R.ua,""):c[d]=e.replace(this.R.ua,"")}}};this.j["http://www.topografix.com/GPX/1/0"]=this.j[this.C];this.a={"http://www.topografix.com/GPX/1/1":{_feature:function(a){var c=a.D();if(c instanceof Hm)return $(this,"wpt",a);if(c instanceof Fm||c instanceof Gm||c instanceof Lm)return $(this,"trk",a)},wpt:function(a){var c=this.createElementNS("wpt"),d=a.D().p();c.setAttribute("lon",
d[0]);c.setAttribute("lat",d[1]);d=a.jb();a=d.name||v(a).toString();$(this,"name",a,void 0,c);$(this,"desc",d.description||this.defaultDesc,void 0,c);return c},trk:function(a){var c=a.jb(),d=this.createElementNS("trk"),e=c.name||v(a).toString();$(this,"name",e,void 0,d);$(this,"desc",c.description||this.defaultDesc,void 0,d);c=a.D();if(c instanceof Fm)$(this,"trkseg",a.D(),void 0,d);else if(c instanceof Gm)for(e=c.t,a=0,c=e.length;a<c;++a)$(this,"trkseg",e[a],void 0,d);else if(c instanceof Lm)for(e=
c.a,a=0,c=e.length;a<c;++a)$(this,"trkseg",e[a],void 0,d);return d},trkseg:function(a){var c=this.createElementNS("trkseg");a=a.p();for(var d=0,e=a.length;d<e;++d)$(this,"trkpt",a[d],void 0,c);return c},trkpt:function(a){var c=this.createElementNS("trkpt");c.setAttribute("lon",a[0]);c.setAttribute("lat",a[1]);return c},metadata:function(a){var c=this.createElementNS("metadata");r(a.name)&&$(this,"name",a.name,void 0,c);r(a.desc)&&$(this,"desc",a.desc,void 0,c);r(a.author)&&$(this,"author",a.author,
void 0,c);return c},name:function(a){var c=this.createElementNS("name");c.appendChild(this.createTextNode(a));return c},desc:function(a){var c=this.createElementNS("desc");c.appendChild(this.createTextNode(a));return c},author:function(a){var c=this.createElementNS("author");c.appendChild(this.createTextNode(a));return c}}};Cp.call(this)}E(Ep,Cp);Ep.prototype.P=function(a){u(a)&&(a=zp(a));a&&9==a.nodeType&&(a=a.documentElement);var b={metadata:{projection:"EPSG:4326"}};this.Qa(a,b);return b};
Ep.prototype.$b=function(a){return this.P(a)};Ep.prototype.Zb=function(a){return this.P(a)};
Ep.prototype.write=function(a){var b=ia(a.features)?a.features:[a.features],c=this.createElementNS("gpx");c.setAttribute("version","1.1");c.setAttribute("creator",this.creator);this.setAttributeNS(c,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);r(a.metadata)&&$(this,"metadata",a.metadata,void 0,c);a=0;for(var d=b.length;a<d;a++)$(this,"_feature",b[a],void 0,c);return Dp(this,c)};function Fp(a){Em.call(this);for(var b=a.length-1;0<=b;--b)H(a[b],"change",this.b,!1,this);this.t=a}E(Fp,Em);Fp.prototype.$=function(){for(var a=this.t.length,b=Array(a),c=0;c<a;++c)b[c]=this.t[c].$();return new Fp(b)};Fp.prototype.S=ba("geometrycollection");function Gp(){}E(Gp,Bp);fa(Gp);Gp.prototype.P=function(a){a=JSON.parse(a);return Hp(this,a)};Gp.prototype.$b=function(a){a=JSON.parse(a);return Ip(this,a)};Gp.prototype.Zb=function(a){return Ip(this,a)};
function Hp(a,b){var c;if("FeatureCollection"===b.type){c=b.features;var d=c.length,e=Array(d),f;for(f=0;f<d;++f)e[f]=Jp(c[f]);c=e}else if("Feature"===b.type)c=Jp(b);else if("GeometryCollection"===b.type){c=b.geometries;d=c.length;e=Array(d);for(f=0;f<d;++f)e[f]=Hp(a,c[f]);c=e}else c=Jp({type:"Feature",geometry:b}).D();return c}
function Ip(a,b){var c=Hp(a,b),d=[],e;if(c instanceof N)d=[c];else if(c instanceof Hd)e=new N,e.Aa(c),d=[e];else if(ia(c))for(var f,g,k=0,l=c.length;k<l;++k)if(f=c[k],g=g||f instanceof Hd)e=new N,e.Aa(f),d[k]=e;else{d=c;break}c="EPSG:4326";null!=b.crs&&(e=b.crs,"name"===e.type&&(c=e.properties.name));return{features:d,metadata:{projection:c}}}
function Jp(a){var b=a.geometry,c=null,d=new N(a.properties);r(a.id)&&(d.Ea=a.id);if(b){a=b.type;switch(a){case "Point":c=new Hm(b.coordinates);break;case "LineString":c=new Fm(b.coordinates);break;case "Polygon":c=new Lm(b.coordinates);break;case "MultiPoint":c=new Im(b.coordinates);break;case "MultiLineString":c=new Gm(b.coordinates);break;case "MultiPolygon":c=new Mm(b.coordinates);break;default:throw Error("Bad geometry type: "+a);}d.Aa(c)}return d}
function Kp(a){var b=a.S();return{type:sc(function(a){return a===b}),coordinates:a.p()}}function Lp(a){var b=a.D();a=a.jb();return{type:"Feature",properties:nc(a,function(a){return!(a instanceof Hd)}),geometry:Kp(b)}}
Gp.prototype.write=function(a){var b;if(a instanceof Fp){b=[];a=a.t;for(var c=0,d=a.length;c<d;++c)b.push(Kp(a[c]));b={type:"GeometryCollection",geometries:b}}else if(a instanceof Hd)b=Kp(a);else if(a instanceof N)b=Lp(a);else if(ia(a)){b=[];c=0;for(d=a.length;c<d;++c)b.push(Lp(a[c]));b={type:"FeatureCollection",features:b}}return JSON.stringify(b)};
var tc={Point:"point",LineString:"linestring",Polygon:"polygon",MultiPoint:"multipoint",MultiLineString:"multilinestring",MultiPolygon:"multipolygon",GeometryCollection:"geometrycollection"};/*
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 Mp(a,b){this.c=[];this.o=a;this.g=b||null}m=Mp.prototype;m.ib=!1;m.Rb=!1;m.Qc=!1;m.xe=!1;m.nd=!1;m.Rc=0;m.cancel=function(a){if(this.ib)this.b instanceof Mp&&this.b.cancel();else{if(this.a){var b=this.a;delete this.a;a?b.cancel(a):(b.Rc--,0>=b.Rc&&b.cancel())}this.o?this.o.call(this.g,this):this.nd=!0;this.ib||this.yb(new Np(this))}};m.yd=function(a,b){this.Qc=!1;Op(this,a,b)};function Op(a,b,c){a.ib=!0;a.b=c;a.Rb=!b;Pp(a)}function Qp(a){if(a.ib){if(!a.nd)throw new Rp(a);a.nd=!1}}
function Sp(a,b){Qp(a);Op(a,!0,b)}m.yb=function(a){Qp(this);Op(this,!1,a)};function Tp(a,b,c){return Up(a,b,null,c)}function Up(a,b,c,d){a.c.push([b,c,d]);a.ib&&Pp(a);return a}function Vp(a){return Ma(a.c,function(a){return ma(a[1])})}
function Pp(a){a.f&&(a.ib&&Vp(a))&&(p.clearTimeout(a.f),delete a.f);a.a&&(a.a.Rc--,delete a.a);for(var b=a.b,c=!1,d=!1;a.c.length&&!a.Qc;){var e=a.c.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Rb?g:f)try{var k=f.call(e||a.g,b);r(k)&&(a.Rb=a.Rb&&(k==b||k instanceof Error),a.b=b=k);b instanceof Mp&&(d=!0,a.Qc=!0)}catch(l){b=l,a.Rb=!0,Vp(a)||(c=!0)}}a.b=b;d&&(Up(b,y(a.yd,a,!0),y(a.yd,a,!1)),b.xe=!0);c&&(a.f=p.setTimeout(ig(b),0))}function Rp(a){ua.call(this);this.a=a}E(Rp,ua);Rp.prototype.message="Deferred has already fired";
Rp.prototype.name="AlreadyCalledError";function Np(a){ua.call(this);this.a=a}E(Np,ua);Np.prototype.message="Deferred was canceled";Np.prototype.name="CanceledError";function Wp(a,b,c,d,e,f){Mp.call(this,e,f);this.e=a;this.d=[];this.G=!!b;this.r=!!c;this.q=!!d;for(b=this.n=0;b<a.length;b++)Up(a[b],y(this.i,this,b,!0),y(this.i,this,b,!1));0!=a.length||this.G||Sp(this,this.d)}E(Wp,Mp);Wp.prototype.i=function(a,b,c){this.n++;this.d[a]=[b,c];this.ib||(this.G&&b?Sp(this,[a,c]):this.r&&!b?this.yb(c):this.n==this.e.length&&Sp(this,this.d));this.q&&!b&&(c=null);return c};Wp.prototype.yb=function(a){Wp.H.yb.call(this,a);for(a=0;a<this.e.length;a++)this.e[a].cancel()};
function Xp(a){return Tp(new Wp(a,!1,!0),function(a){for(var c=[],d=0;d<a.length;d++)c[d]=a[d][1];return c})};var Yp;
Yp={e:["BC","AD"],d:["Before Christ","Anno Domini"],g:"JFMAMJJASOND".split(""),Yb:"JFMAMJJASOND".split(""),f:"January February March April May June July August September October November December".split(" "),r:"January February March April May June July August September October November December".split(" "),n:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),v:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),la:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Q:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
q:"Sun Mon Tue Wed Thu Fri Sat".split(" "),K:"Sun Mon Tue Wed Thu Fri Sat".split(" "),G:"SMTWTFS".split(""),s:"SMTWTFS".split(""),o:["Q1","Q2","Q3","Q4"],i:["1st quarter","2nd quarter","3rd quarter","4th quarter"],a:["AM","PM"],b:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],W:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],c:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],me:6,ia:[5,6],ne:5};var Zp=/^(\d{4})(?:(?:-?(\d{2})(?:-?(\d{2}))?)|(?:-?(\d{3}))|(?:-?W(\d{2})(?:-?([1-7]))?))?$/,$p=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,aq=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/;function bq(a,b,c,d,e,f){u(a)?(this.f=a==cq?b:0,this.d=a==dq?b:0,this.a=a==eq?b:0,this.b=a==fq?b:0,this.c=a==gq?b:0,this.e=a==hq?b:0):(this.f=a||0,this.d=b||0,this.a=c||0,this.b=d||0,this.c=e||0,this.e=f||0)}bq.prototype.$=function(){return new bq(this.f,this.d,this.a,this.b,this.c,this.e)};
var cq="y",dq="m",eq="d",fq="h",gq="n",hq="s";bq.prototype.add=function(a){this.f+=a.f;this.d+=a.d;this.a+=a.a;this.b+=a.b;this.c+=a.c;this.e+=a.e};function iq(a,b,c){ka(a)?(this.a=new Date(a,b||0,c||1),jq(this,c||1)):na(a)?(this.a=new Date(a.getFullYear(),a.getMonth(),a.getDate()),jq(this,a.getDate())):(this.a=new Date(ta()),this.a.setHours(0),this.a.setMinutes(0),this.a.setSeconds(0),this.a.setMilliseconds(0))}m=iq.prototype;m.pc=Yp.me;m.qc=Yp.ne;
m.$=function(){var a=new iq(this.a);a.pc=this.pc;a.qc=this.qc;return a};m.getFullYear=function(){return this.a.getFullYear()};m.getMonth=function(){return this.a.getMonth()};m.getDate=function(){return this.a.getDate()};m.getTime=function(){return this.a.getTime()};function kq(a){a=a.a.getTimezoneOffset();if(0==a)a="Z";else{var b=Math.abs(a)/60,c=Math.floor(b),b=60*(b-c);a=(0<a?"-":"+")+Da(c)+":"+Da(b)}return a}
m.add=function(a){if(a.f||a.d){var b=this.getMonth()+a.d+12*a.f,c=this.getFullYear()+Math.floor(b/12),b=b%12;0>b&&(b+=12);var d;a:{switch(b){case 1:d=0!=c%4||0==c%100&&0!=c%400?28:29;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.a.setDate(1);this.a.setFullYear(c);this.a.setMonth(b);this.a.setDate(d)}a.a&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.a),this.a.setDate(1),this.a.setFullYear(a.getFullYear()),
this.a.setMonth(a.getMonth()),this.a.setDate(a.getDate()),jq(this,a.getDate()))};m.wc=function(a,b){return[this.getFullYear(),Da(this.getMonth()+1),Da(this.getDate())].join(a?"-":"")+(b?kq(this):"")};m.toString=function(){return this.wc()};function jq(a,b){a.getDate()!=b&&a.a.setUTCHours(a.a.getUTCHours()+(a.getDate()<b?1:-1))}m.valueOf=function(){return this.a.valueOf()};function lq(a,b,c,d,e,f,g){this.a=ka(a)?new Date(a,b||0,c||1,d||0,e||0,f||0,g||0):new Date(a?a.getTime():ta())}E(lq,iq);
lq.prototype.add=function(a){iq.prototype.add.call(this,a);a.b&&this.a.setHours(this.a.getHours()+a.b);a.c&&this.a.setMinutes(this.a.getMinutes()+a.c);a.e&&this.a.setSeconds(this.a.getSeconds()+a.e)};lq.prototype.wc=function(a,b){var c=iq.prototype.wc.call(this,a);return a?c+" "+Da(this.a.getHours())+":"+Da(this.a.getMinutes())+":"+Da(this.a.getSeconds())+(b?kq(this):""):c+"T"+Da(this.a.getHours())+Da(this.a.getMinutes())+Da(this.a.getSeconds())+(b?kq(this):"")};lq.prototype.toString=function(){return this.wc()};
lq.prototype.$=function(){var a=new lq(this.a);a.pc=this.pc;a.qc=this.qc;return a};function mq(a){this.d=a.url instanceof T?a.url:new U(a.url);this.b=r(a.width)?a.width instanceof T?a.width:new U(a.width):null;this.a=r(a.height)?a.height instanceof T?a.height:new U(a.height):null;this.c=r(a.opacity)?a.opacity instanceof T?a.opacity:new U(a.opacity):new U(nq);this.f=r(a.rotation)?a.rotation instanceof T?a.rotation:new U(a.rotation):new U(oq);this.g=r(a.xOffset)?a.xOffset instanceof T?a.xOffset:new U(a.xOffset):new U(pq);this.G=r(a.yOffset)?a.yOffset instanceof T?a.yOffset:new U(a.yOffset):
new U(qq);this.e=null!=a.zIndex?a.zIndex instanceof T?a.zIndex:new U(a.zIndex):new U(rq)}E(mq,Wl);
mq.prototype.Va=function(a){var b;a instanceof N&&(b=a,a=(a=b.D())?a.S():null);var c=null;if("point"===a||"multipoint"===a){a=W(this.d,b);var d;null===this.b||(d=Number(W(this.b,b)));var e;null===this.a||(e=Number(W(this.a,b)));var c=Number(W(this.c,b)),f=Number(W(this.f,b)),g=Number(W(this.g,b)),k=Number(W(this.G,b));b=Number(W(this.e,b));c=new Nm({url:a,width:d,height:e,opacity:c,rotation:f,xOffset:g,yOffset:k,zIndex:b})}return c};var nq=1,oq=0,pq=0,qq=0,rq=0;function sq(a){a=r(a)?a:{};this.extractAttributes=r(a.extractAttributes)?a.extractAttributes:!0;this.extractStyles=r(a.extractStyles)?a.extractStyles:!1;this.schemaLocation="http://www.opengis.net/kml/2.2 http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd";this.maxDepth=r(a.maxDepth)?a.maxDepth:0;this.trackAttributes=r(a.trackAttributes)?a.trackAttributes:null;this.C="http://www.opengis.net/kml/2.2";this.j={"http://www.opengis.net/kml/2.2":{kml:function(a,c){r(c.features)||(c.features=[]);r(c.links)||
(c.links=[]);Y(this,a,c)},Document:function(a,c){Y(this,a,c)},"*":function(a,c){if(!0===this.extractAttributes){var d=a.childNodes.length;1!==d&&2!==d||3!==a.firstChild.nodeType&&4!==a.firstChild.nodeType||this.j[this.C]._attribute.apply(this,arguments)}},NetworkLink:function(a,c){var d={};Y(this,a,d);c.links.push(d)},Link:function(a,c){Y(this,a,c)},_attribute:function(a,c){var d=a.localName||a.nodeName.split(":").pop(),e=Z(a);c.properties?c.properties[d]=e.replace(this.R.ua,""):c[d]=e.replace(this.R.ua,
"")},Placemark:function(a,c){var d={properties:{}},e=a.getAttribute("id");Y(this,a,d);if(r(d.ka)){var f=d.ka,g,k;delete d.ka;for(var l=0,n=f.vb.length;l<n;++l){if(this.trackAttributes)for(g=0,k=this.trackAttributes.length;g<k;++g){var q=this.trackAttributes[g];d.properties[q]=f.attributes[q][l]}d.properties.when=f.vb[l];r(f.Ta[l])&&(d.properties.heading=parseFloat(f.Ta[l][0]),d.properties.tilt=parseFloat(f.Ta[l][1]),d.properties.roll=parseFloat(f.Ta[l][2]));3===f.Gb[l].coordinates.length&&(d.properties.altitude=
f.Gb[l].coordinates[2]);g=new N(d.properties);null!==e&&(g.Ea=e);if(k=f.Gb[l])k=tq(this,{geometry:k}),r(k)&&g.Aa(k);c.features.push(g)}}else if(r(d.geometry)){uq(c,d.properties.styleUrl);g=new N(d.properties);null!==e&&(g.Ea=e);d.geometry&&(k=tq(this,d),r(k)&&g.Aa(k));e=void 0;if(r(d.styles))e=d.styles[0].symbolizers;else if(r(d.styleMaps))for(d=d.styleMaps[0],l=0,n=d.pairs.length;l<n;l++)f=d.pairs[l],"normal"===f.key&&(r(f.styleUrl)?(uq(c,f.styleUrl),g.k("styleUrl",f.styleUrl)):r(f.styles)&&(e=f.styles[0].symbolizers));
vq(g,c.styles,c.styleMaps,e);c.features.push(g)}},MultiGeometry:function(a,c){var d=[];Y(this,a,d);var e=Ya(d,function(a){return a.type}),f;if(1===oc(e))switch(pc(e)){case "point":f={type:"multipoint",N:d};break;case "linestring":f={type:"multilinestring",N:d};break;case "polygon":f={type:"multipolygon",N:d}}else f={type:"geometrycollection",N:d};ia(c)?c.push(f):c.geometry=f},Point:function(a,c){var d=[];Y(this,a,d);d={type:"point",coordinates:d[0][0]};ia(c)?c.push(d):c.geometry=d},Polygon:function(a,
c){var d=[];Y(this,a,d);d={type:"polygon",coordinates:d};ia(c)?c.push(d):c.geometry=d},LineString:function(a,c){var d=[];Y(this,a,d);d={type:"linestring",coordinates:d[0]};ia(c)?c.push(d):c.geometry=d},outerBoundaryIs:function(a,c){Y(this,a,c)},LinearRing:function(a,c){Y(this,a,c)},coordinates:function(a,c){for(var d=this.R,e=Z(a).replace(d.ua,"").split(d.Ib),f=[],g=0,k=e.length;g<k;g++){for(var l=e[g].replace(d.Of,"").split(","),n=[],q=0,s=l.length;q<s;q++)n.push(parseFloat(l[q]));f.push(n)}c.push(f)},
innerBoundaryIs:function(a,c){Y(this,a,c)},Folder:function(a,c){Y(this,a,c)},ExtendedData:function(a,c){Y(this,a,c.properties)},SchemaData:function(a,c){Y(this,a,c)},SimpleData:function(a,c){c[a.getAttribute("name")]=Z(a)},Data:function(a,c){var d={};Y(this,a,d);c[a.getAttribute("name")]=d.value},when:function(a,c){var d=Z(a),e=d.split("T");2===e.length&&2===e[1].split("-").length&&(d+=":00");var e=d,d=new lq(2E3),e=wa(e),e=e.split(-1==e.indexOf("T")?" ":"T"),f;var g=e[0].match(Zp);if(g){var k=Number(g[2]),
l=Number(g[3]),n=Number(g[4]);f=Number(g[5]);var q=Number(g[6])||1;d.a.setFullYear(Number(g[1]));n?(d.a.setDate(1),d.a.setMonth(0),d.add(new bq(eq,n-1))):f?(d.a.setMonth(0),d.a.setDate(1),g=d.a.getDay()||7,d.add(new bq(eq,(4>=g?1-g:8-g)+(Number(q)+7*(Number(f)-1))-1))):(k&&(d.a.setDate(1),d.a.setMonth(k-1)),l&&d.a.setDate(l));f=!0}else f=!1;f&&!(f=2>e.length)&&(e=e[1],f=e.match(aq),q=0,f&&("Z"!=f[0]&&(q=60*f[2]+Number(f[3]),q*="-"==f[1]?1:-1),q-=d.a.getTimezoneOffset(),e=e.substr(0,e.length-f[0].length)),
(f=e.match($p))?(d.a.setHours(Number(f[1])),d.a.setMinutes(Number(f[2])||0),d.a.setSeconds(Number(f[3])||0),d.a.setMilliseconds(f[4]?1E3*f[4]:0),0!=q&&d.a.setTime(d.getTime()+6E4*q),f=!0):f=!1);d=f?d:null;null===d||(d=new Date(d.getTime()));c.vb.push(d)},_trackPointAttribute:function(a,c){var d=a.nodeName.split(":").pop();c.attributes[d].push(Z(a))},StyleMap:function(a,c){if(!0===this.extractStyles){c.styleMaps||(c.styleMaps=[]);var d={pairs:[]},e=a.getAttribute("id");null===e||(d.id=e);Y(this,a,
d);c.styleMaps.push(d)}},Pair:function(a,c){var d={},e=a.getAttribute("id");null===e||(d.id=e);Y(this,a,d);c.pairs.push(d)},Style:function(a,c){if(!0===this.extractStyles){c.styles||(c.styles=[]);var d={symbolizers:[],ids:[]},e=a.getAttribute("id");null===e||(d.id=e);Y(this,a,d);c.styles.push(d)}},LineStyle:function(a,c){var d={},e={};Y(this,a,d);d.color&&(e.color=d.color.color,e.opacity=d.color.opacity);d.width&&(e.width=parseFloat(d.width));c.ids.push(a.getAttribute("id"));c.symbolizers.push(new am(e))},
PolyStyle:function(a,c){var d={},e={};Y(this,a,d);"0"!==d.fill&&"false"!==d.fill&&(d.color?(e.color=d.color.color,e.opacity=d.color.opacity):(e.color="#ffffff",e.opacity=1),c.symbolizers.push(new Rl(e)));"0"!==d.outline&&"false"!==d.outline&&(d.color?(e.color=d.color.color,e.opacity=d.color.opacity):(e.color="#ffffff",e.opacity=1),c.symbolizers.push(new am(e)));c.ids.push(a.getAttribute("id"))},fill:function(a,c){c.fill=Z(a)},outline:function(a,c){c.outline=Z(a)},scale:function(a,c){c.scale=parseFloat(Z(a))},
Icon:function(a,c){c.qb={};Y(this,a,c.qb)},href:function(a,c){c.href=Z(a)},w:function(a,c){c.dg=Z(a)},h:function(a,c){c.Ue=Z(a)},x:function(a,c){c.x=Z(a)},y:function(a,c){c.y=Z(a)},hotSpot:function(a,c){c.Ub={x:parseFloat(a.getAttribute("x")),y:parseFloat(a.getAttribute("y")),fg:a.getAttribute("xunits"),gg:a.getAttribute("yunits")}},IconStyle:function(a,c){var d={},e={};Y(this,a,d);var f=d.scale||1,g=32*f,k=32*f,l,n;if(r(d.qb)&&(l=d.qb.href,r(l))){n=d.qb.dg;var q=d.qb.Ue;0!=l.lastIndexOf("http://maps.google.com/mapfiles/kml",
0)||(r(n)||r(q))||(q=n=64,f/=2);n=n||q;q=q||n;n&&(g=parseInt(n,10)*f);q&&(k=parseInt(q,10)*f);if(n=l.match(this.R.Af)){var q=n[1],s=n[2];l=d.qb.x;n=d.qb.y;l="http://maps.google.com/mapfiles/kml/pal"+q+"/icon"+(8*(n?7-n/32:7)+(l?l/32:0))+s}e.opacity=1;e.url=l}r(d.Ub)&&(l=d.Ub.x,n=d.Ub.y,q=d.Ub.fg,d=d.Ub.gg,"pixels"===q?e.xOffset=-l*f:"insetPixels"===q?e.xOffset=-g+l*f:"fraction"===q&&(e.xOffset=-g*l),"pixels"==d?e.yOffset=-k+n*f+1:"insetPixels"==d?e.yOffset=-(n*f)+1:"fraction"==d&&(e.yOffset=-k*(1-
n)+1));e.width=g;e.height=k;c.ids.push(a.getAttribute("id"));c.symbolizers.push(new mq(e))},color:function(a,c){var d=Z(a);d&&(d=d.match(this.R.zf))&&(c.color={color:"#"+d[4]+d[3]+d[2],opacity:parseInt(d[1],16)/255})},width:function(a,c){c.width=Z(a)}},"http://www.google.com/kml/ext/2.2":{Track:function(a,c){c.ka={vb:[],Gb:[],Ta:[]};if(this.trackAttributes){var d;c.ka.attributes={};for(var e=0,f=this.trackAttributes.length;e<f;++e){d=this.trackAttributes[e];c.ka.attributes[d]=[];var g=this.j[this.C];
d in g||(g[d]=g._trackPointAttribute)}}Y(this,a,c.ka);if(c.ka.vb.length!==c.ka.Gb.length)throw Error("gx:Track with unequal number of when ("+c.ka.vb.length+") and gx:coord ("+c.ka.Gb.length+") elements.");if(0<c.ka.Ta.length&&c.ka.vb.length!==c.ka.Ta.length)throw Error("gx:Track with unequal number of when ("+c.ka.vb.length+") and gx:angles ("+c.ka.Ta.length+") elements.");},coord:function(a,c){for(var d=Z(a).replace(this.R.ua,"").split(/\s+/),e=0,f=d.length;e<f;++e)d[e]=parseFloat(d[e]);c.Gb.push({type:"point",
coordinates:d})},angles:function(a,c){var d=Z(a).replace(this.R.ua,"").split(/\s+/);c.Ta.push(d)}}};this.a={"http://www.opengis.net/kml/2.2":{kml:function(a){var c=this.createElementNS("kml");$(this,"Document",a,null,c);return c},Document:function(a){var c=this.createElementNS("Document"),d;for(d in a)if(a.hasOwnProperty(d)&&u(a[d])){var e=this.createElementNS(d);e.appendChild(this.createTextNode(a[d]));c.appendChild(e)}if(r(a.dc))for(d=0,e=a.dc.length;d<e;++d)$(this,"_style",a.dc[d],null,c);if(r(a.je))for(d=
0,e=a.je.length;d<e;++d)$(this,"_styleMap",a.je[d],null,c);d=0;for(e=a.features.length;d<e;++d)$(this,"_feature",a.features[d],null,c);return c},_style:function(a){var c=this.createElementNS("Style");r(a.id)&&this.setAttributeNS(c,null,"id",a.id);for(var d=0,e=a.symbolizers.length;d<e;++d)$(this,"_symbolizer",{Kc:a.symbolizers[d],id:a.wf?a.wf[d]:void 0},null,c);return c},_styleMap:function(a){var c=this.createElementNS("StyleMap");r(a.id)&&this.setAttributeNS(c,null,"id",a.id);for(var d=0,e=a.Kf.length;d<
e;++d)$(this,"Pair",a.Kf[d],null,c);return c},_symbolizer:function(a){var c=a.Kc;if(c instanceof mq)return $(this,"IconStyle",a);if(c instanceof am)return $(this,"LineStyle",a);if(c instanceof Rl)return $(this,"PolyStyle",a)},Pair:function(a){var c=this.createElementNS("Pair");r(a.id)&&this.setAttributeNS(c,null,"id",a.id);r(a.key)&&$(this,"key",a.key,null,c);if(r(a.Vf))$(this,"styleUrl",a.Vf,null,c);else if(r(a.dc))for(var d=0,e=a.dc.length;d<e;++d)$(this,"_style",a.dc[d],null,c);return c},key:function(a){var c=
this.createElementNS("key");c.appendChild(this.createTextNode(a));return c},PolyStyle:function(a){var c=this.createElementNS("PolyStyle");a.id&&this.setAttributeNS(c,null,"id",a.id);a=a.Kc.Va("polygon");var d,e;0!==a.na?($(this,"fill","1",null,c),d=a.fillColor,e=a.na):$(this,"fill","0",null,c);a.U?($(this,"outline","1",null,c),d=d||a.strokeColor,e=e||a.U):$(this,"outline","0",null,c);d&&e&&$(this,"color",{color:d.substring(1),opacity:e},null,c);return c},fill:function(a){var c=this.createElementNS("fill");
c.appendChild(this.createTextNode(a));return c},outline:function(a){var c=this.createElementNS("outline");c.appendChild(this.createTextNode(a));return c},LineStyle:function(a){var c=this.createElementNS("LineStyle");a.id&&this.setAttributeNS(c,null,"id",a.id);a=a.Kc.Va("linestring");$(this,"color",{color:a.color.substring(1),opacity:a.opacity},null,c);$(this,"width",a.width,null,c);return c},color:function(a){var c=a.color;a=(255*a.opacity).toString(16)+c.substring(4,6)+c.substring(2,4)+c.substring(0,
2);c=this.createElementNS("color");c.appendChild(this.createTextNode(a));return c},width:function(a){var c=this.createElementNS("width");c.appendChild(this.createTextNode(a));return c},IconStyle:function(a){var c=this.createElementNS("IconStyle");this.setAttributeNS(c,null,"id",a.id);$(this,"Icon",a.Kc.Va("point").url,null,c);return c},Icon:function(a){var c=this.createElementNS("Icon");$(this,"href",a,null,c);return c},href:function(a){var c=this.createElementNS("href");c.appendChild(this.createTextNode(a));
return c},_feature:function(a){var c=this.createElementNS("Placemark"),d=a.Ea;r(d)&&c.setAttribute("id",d);$(this,"name",a,null,c);$(this,"description",a,null,c);r(a.get("styleUrl"))?$(this,"styleUrl",a.get("styleUrl"),null,c):(d=a.zb(),null===d||$(this,"_style",{symbolizers:d},null,c));$(this,"_geometry",a.D(),null,c);return c},name:function(a){a=a.get("name");if(r(a)){var c=this.createElementNS("name");c.appendChild(this.createTextNode(a));return c}},description:function(a){a=a.get("description");
if(r(a)){var c=this.createElementNS("description");c.appendChild(this.createTextNode(a));return c}},styleUrl:function(a){var c=this.createElementNS("styleUrl");c.appendChild(this.createTextNode(a));return c},_geometry:function(a){if(a instanceof Hm)return $(this,"Point",a);if(a instanceof Fm)return $(this,"LineString",a);if(a instanceof Lm)return $(this,"Polygon",a);if(a instanceof Em)return $(this,"MultiGeometry",a)},MultiGeometry:function(a){var c=this.createElementNS("MultiGeometry");a=a.t;for(var d=
0,e=a.length;d<e;++d)$(this,"_geometry",a[d],null,c);return c},Point:function(a){var c=this.createElementNS("Point");a=a.p();$(this,"coordinates",[a],null,c);return c},LineString:function(a){var c=this.createElementNS("LineString");$(this,"coordinates",a.p(),null,c);return c},Polygon:function(a){var c=this.createElementNS("Polygon");a=a.p();$(this,"outerBoundaryIs",a[0],null,c);for(var d=1,e=a.length;d<e;++d)$(this,"innerBoundaryIs",a[d],null,c);return c},outerBoundaryIs:function(a){var c=this.createElementNS("outerBoundaryIs");
$(this,"LinearRing",a,null,c);return c},innerBoundaryIs:function(a){var c=this.createElementNS("innerBoundaryIs");$(this,"LinearRing",a,null,c);return c},LinearRing:function(a){var c=this.createElementNS("LinearRing");$(this,"coordinates",a,null,c);return c},coordinates:function(a){for(var c=this.createElementNS("coordinates"),d="",e=0,f=a.length;e<f;++e){for(var g=0,k=a[e].length;g<k;++g)d+=a[e][g],g<k-1&&(d+=",");e<f-1&&(d+=" ")}c.appendChild(this.createTextNode(d));return c}}};Cp.call(this);zc(this.R,
{zf:/(\w{2})(\w{2})(\w{2})(\w{2})/,Af:/root:\/\/icons\/palette-(\d+)(\.\w+)/,a:/\$\[(.*?)\]/g})}E(sq,Cp);m=sq.prototype;m.be=function(a,b){this.P(a,b)};m.ce=function(a,b){this.P(a,b)};m.$b=function(a){return this.P(a)};m.Zb=function(a){return this.P(a)};function uq(a,b){r(b)&&(0==b.lastIndexOf("#",0)||a.links.push({href:b}))}
function wq(a,b,c,d){var e;if(a.c<a.maxDepth){a.c++;for(var f=0,g=c.links.length;f<g;++f){var k=c.links[f];if(!0!==k.cg){e=!0;var l=new Mp,n=new Kk,q=a;H(n,"complete",function(a){if(Yk(a.target)){var e;var f=a.target;try{e=f.a?f.a.responseXML:null}catch(g){e=null}e=e||Zk(a.target);u(e)&&(e=zp(e));jb(a.target);e&&(9==e.nodeType&&(e=e.documentElement),q.Qa(e,c));wq(q,b,c,d);Sp(this,e)}},!1,l);b.push(l);Qk(n,k.href);k.cg=!0}}}!0!==e&&!0!==a.vd&&d.call(a)}
m.P=function(a,b){u(a)&&(a=zp(a));a&&9==a.nodeType&&(a=a.documentElement);var c={metadata:{projection:"EPSG:4326"}};this.Qa(a,c);if(r(b)){var d=[];this.c=0;this.vd=!1;wq(this,d,c,function(){this.vd=!0;Up(Xp(d),function(){for(var a=0,d=c.features.length;a<d;++a)vq(c.features[a],c.styles,c.styleMaps);b.call(null,c)},function(){throw Error("KML: parsing of NetworkLinks failed");},this)})}else return c};
function vq(a,b,c,d){var e,f;if(a.get("styleUrl")&&null===a.zb()){var g=a.get("styleUrl"),g=g.substring(g.indexOf("#")+1);if(r(c))for(e=0,f=c.length;e<f;++e){var k=c[e];if(k.id===g){c=0;for(e=k.pairs.length;c<e;c++)f=k.pairs[c],"normal"===f.key&&(r(f.styleUrl)?(g=f.styleUrl,g=g.substring(g.indexOf("#")+1)):r(f.styles)&&(d=f.styles[0].symbolizers));break}}if(!r(d)&&r(b))for(e=0,f=b.length;e<f;++e)if(b[e].id===g){d=b[e].symbolizers;break}}r(d)&&(a.b=d)}
function tq(a,b){var c=null,d,e;switch(b.geometry.type){case "point":c=new Hm(b.geometry.coordinates);break;case "linestring":c=new Fm(b.geometry.coordinates);break;case "polygon":c=new Lm(b.geometry.coordinates);break;case "multipoint":d=[];c=0;for(e=b.geometry.N.length;c<e;c++)d.push(b.geometry.N[c].coordinates);c=new Im(d);break;case "multilinestring":d=[];c=0;for(e=b.geometry.N.length;c<e;c++)d.push(b.geometry.N[c].coordinates);c=new Gm(d);break;case "multipolygon":d=[];c=0;for(e=b.geometry.N.length;c<
e;c++)d.push(b.geometry.N[c].coordinates);c=new Mm(d);break;case "geometrycollection":d=[];c=0;for(e=b.geometry.N.length;c<e;c++)d.push(tq(a,{geometry:b.geometry.N[c]}));c=new Fp(d)}return c}m.write=function(a){a=$(this,"kml",a);this.setAttributeNS(a,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);return Dp(this,a)};function xq(){}E(xq,Bp);fa(xq);function yq(a,b){for(var c=[],d,e=0,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}xq.prototype.P=function(a){a=JSON.parse(a);return this.Zb(a).features};xq.prototype.$b=function(a){a=JSON.parse(a);if("Topology"!==a.type)throw Error('Not a "Topology" type object');return{features:zq(a),metadata:{projection:"EPSG:4326"}}};
xq.prototype.Zb=function(a){if("Topology"!==a.type)throw Error('Not a "Topology" type object');return{features:zq(a),metadata:{projection:"EPSG:4326"}}};
function Aq(a,b,c,d){var e=a.type;if("Point"===e)b=a.coordinates,Bq(b,c,d),b=new Hm(b);else if("LineString"===e)b=yq(a.arcs,b),b=new Fm(b);else if("Polygon"===e){c=a.arcs;d=c.length;for(var e=Array(d),f=0;f<d;++f)e[f]=yq(c[f],b);b=new Lm(e)}else if("MultiPoint"===e){b=a.coordinates;e=0;for(f=b.length;e<f;++e)Bq(b[e],c,d);b=new Im(b)}else if("MultiLineString"===e){c=a.arcs;d=c.length;e=Array(d);for(f=0;f<d;++f)e[f]=yq(c[f],b);b=new Gm(e)}else if("MultiPolygon"===e){c=a.arcs;d=c.length;for(var e=Array(d),
g,k,l,n=0;n<d;++n){f=c[n];g=f.length;k=Array(g);for(l=0;l<g;++l)k[l]=yq(f[l],b);e[n]=k}b=new Mm(e)}else throw Error("Unsupported geometry type: "+e);c=new N;c.Aa(b);r(a.id)&&(c.Ea=String(a.id));return c}function Cq(a,b,c,d){a=a.geometries;for(var e=a.length,f=Array(e),g=0;g<e;++g)f[g]=Aq(a[g],b,c,d);return f}
function zq(a){for(var b=a.transform,c=b.scale,b=b.translate,d=a.arcs,e=0,f=d.length;e<f;++e)for(var g=d[e],k=c,l=b,n=0,q=0,s=void 0,x=0,t=g.length;x<t;++x)s=g[x],n+=s[0],q+=s[1],s[0]=n,s[1]=q,Bq(s,k,l);a=a.objects;var e=[],A;for(A in a)"GeometryCollection"===a[A].type?e.push.apply(e,Cq(a[A],d,c,b)):e.push(Aq(a[A],d,c,b));return e}function Bq(a,b,c){a[0]=a[0]*b[0]+c[0];a[1]=a[1]*b[1]+c[1]};function Dq(){}E(Dq,Bp);fa(Dq);var Eq=/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,Fq=/\s+/,Gq=/\)\s*,\s*\(/,Hq=/\)\s*\)\s*,\s*\(\s*\(/,Iq=/^\s*\(?(.*?)\)?\s*$/,Jq=/,\s*([A-Za-z])/g,Kq=/[\n\r]/g;m=Dq.prototype;m.hd=function(a){a=wa(a).split(Fq);return new Hm(La(a,parseFloat))};m.gd=function(a){a=wa(a).split(",");for(var b=[],c=0,d=a.length;c<d;++c)b.push(this.hd.apply(this,[a[c]]).p());return new Fm(b)};
m.Yd=function(a){var b;a=wa(a).split(Gq);for(var c=[],d=0,e=a.length;d<e;++d)b=a[d].replace(Iq,"$1"),b=this.gd.apply(this,[b]).p(),c.push(b);return new Lm(c)};m.Bd=function(a){a=a.p();return a[0]+" "+a[1]};m.Uc=function(a){a=a.p();for(var b=[],c=0,d=a.length;c<d;++c)b.push(a[c][0]+" "+a[c][1]);return b.join(",")};m.Cd=function(a){var b=[];a=a.a;for(var c=0,d=a.length;c<d;++c)b.push("("+this.Uc.apply(this,[a[c]])+")");return b.join(",")};
m.Zd=function(a){a=a.replace(Kq," ");a=Eq.exec(a);var b;if(a)switch(b=a[1].toLowerCase(),a=a[2],b){case "point":b=this.hd(a);break;case "multipoint":var c=wa(a).split(",");a=[];for(var d=0,e=c.length;d<e;++d)b=c[d].replace(Iq,"$1"),a.push(this.hd.apply(this,[b]));b=a.length;c=Array(b);for(d=0;d<b;++d)c[d]=a[d].p();b=new Im(c);break;case "linestring":b=this.gd(a);break;case "multilinestring":c=wa(a).split(Gq);a=[];d=0;for(e=c.length;d<e;++d)b=c[d].replace(Iq,"$1"),a.push(this.gd.apply(this,[b]));b=
a.length;c=Array(b);for(d=0;d<b;++d)c[d]=a[d].p();b=new Gm(c);break;case "polygon":b=this.Yd(a);break;case "multipolygon":c=wa(a).split(Hq);a=[];d=0;for(e=c.length;d<e;++d)b=c[d].replace(Iq,"$1"),a.push(this.Yd.apply(this,[b]));b=a.length;c=Array(b);for(d=0;d<b;++d)c[d]=a[d].p();b=new Mm(c);break;case "geometrycollection":a=a.replace(Jq,"|$1");a=wa(a).split("|");b=[];c=0;for(d=a.length;c<d;++c)b.push(this.Zd.apply(this,[a[c]]));b=new Fp(b);break;default:throw Error("Bad geometry type: "+b);}return b};
m.Xd=function(a){var b=a.S(),c=b.toUpperCase()+"(";if(a instanceof Hm)c+=this.Bd(a);else if(a instanceof Im){b=c;c=[];a=a.t;for(var d=0,e=a.length;d<e;++d)c.push("("+this.Bd.apply(this,[a[d]])+")");c=b+c.join(",")}else if(a instanceof Fm)c+=this.Uc(a);else if(a instanceof Gm){b=c;c=[];a=a.t;d=0;for(e=a.length;d<e;++d)c.push("("+this.Uc.apply(this,[a[d]])+")");c=b+c.join(",")}else if(a instanceof Lm)c+=this.Cd(a);else if(a instanceof Mm){b=c;c=[];a=a.t;d=0;for(e=a.length;d<e;++d)c.push("("+this.Cd.apply(this,
[a[d]])+")");c=b+c.join(",")}else if(a instanceof Fp){b=c;c=[];a=a.t;d=0;for(e=a.length;d<e;++d)c.push(this.Xd.apply(this,[a[d]]));c=b+c.join(",")}else throw Error("Bad geometry type: "+b);return c+")"};m.P=function(a){return this.Zd(a)};m.write=function(a){return this.Xd(a)};function Lq(a){var b=r(a)?a:{};this.extractAttributes=r(b.extractAttributes)?b.extractAttributes:!0;this.surface=r(b.surface)?b.surface:!1;this.curve=r(b.curve)?b.curve:!1;this.multiCurve=r(b.multiCurve)?b.multiCurve:!0;this.multiSurface=r(b.multiSurface)?b.multiSurface:!0;this.readOptions=b.readOptions;this.writeOptions=b.writeOptions;r(b.schemaLocation)&&(this.schemaLocation=b.schemaLocation);r(b.featureNS)&&(this.featureNS=b.featureNS);r(b.featureType)&&(this.featureType=b.featureType);this.Uf=
!r(a)||u(a.featureType);this.C="http://www.opengis.net/gml";this.j={"http://www.opengis.net/wfs":{FeatureCollection:function(a,b){Y(this,a,b)}},"http://ogr.maptools.org/":{FeatureCollection:function(a,b){Y(this,a,b)}},"http://www.opengis.net/gml":{_inherit:function(a){var b;r(this.srsName)||(b=this.srsName=a.getAttribute("srsName"));r(this.axisOrientation)||(this.axisOrientation=null!=b?Sd(te(b)):"enu")},name:function(a,b){b.name=Z(a)},featureMember:function(a,b){Y(this,a,b)},featureMembers:function(a,
b){Y(this,a,b)},GeometryCollection:function(a,b){var e=[];this.j[this.C]._inherit.apply(this,[a,e,b]);Y(this,a,e);b.geometry={type:"geometrycollection",N:e}},geometryMember:function(a,b){Y(this,a,b)},MultiPoint:function(a,b){var e=[];this.j[this.C]._inherit.apply(this,[a,e,b]);Y(this,a,e);b.geometry={type:"multipoint",N:e}},pointMember:function(a,b){Y(this,a,b)},MultiLineString:function(a,b){var e=[];this.j[this.C]._inherit.apply(this,[a,e,b]);Y(this,a,e);b.geometry={type:"multilinestring",N:e}},
lineStringMember:function(a,b){Y(this,a,b)},MultiPolygon:function(a,b){var e=[];this.j[this.C]._inherit.apply(this,[a,e,b]);Y(this,a,e);b.geometry={type:"multipolygon",N:e}},polygonMember:function(a,b){Y(this,a,b)},Point:function(a,b){var e=[];this.j[this.C]._inherit.apply(this,[a,e,b]);Y(this,a,e);e={type:"point",coordinates:e[0][0]};ia(b)?b.push(e):b.geometry=e},LineString:function(a,b){var e=[];this.j[this.C]._inherit.apply(this,[a,e,b]);Y(this,a,e);e={type:"linestring",coordinates:e[0]};ia(b)?
b.push(e):b.geometry=e},Polygon:function(a,b){var e={$d:null,Ac:[]};this.j[this.C]._inherit.apply(this,[a,e,b]);Y(this,a,e);e.Ac.unshift(e.$d);e={type:"polygon",coordinates:e.Ac};ia(b)?b.push(e):b.geometry=e},LinearRing:function(a,b){var e=[];this.j[this.C]._inherit.apply(this,[a,e,b]);Y(this,a,e);ia(b)?b.push(e):b.geometry={type:"linearring",coordinates:e[0]}},coordinates:function(a,b){for(var e=Z(a).replace(this.R.ua,""),e=e.replace(this.R.od,","),f=a.getAttribute("cs")||",",g=a.getAttribute("ts")||
this.R.Ib,g=e.split(g),k=g.length,l=Array(k),n=0;n<k;++n)e=La(g[n].split(f),parseFloat),"en"===this.axisOrientation.substr(0,2)?l[n]=e:2===e.length?l[n]=e.reverse():3===e.length&&(l[n]=[e[1],e[0],e[2]]);b.push(l)},coord:function(a,b){var e={};0===b.length&&b.push([]);Y(this,a,e);r(e.z)?b.push([e.x,e.y,e.z]):b[0].push([e.x,e.y])},X:function(a,b){b.x=parseFloat(Z(a))},Y:function(a,b){b.y=parseFloat(Z(a))},Z:function(a,b){b.z=parseFloat(Z(a))}}};this.d={"*":function(a,b){var e,f=a.localName||a.nodeName.split(":").pop();
b.features?this.Uf||-1===Ga(this.featureType,f)?f===this.featureType&&(e="_typeName"):e="_typeName":0===a.childNodes.length||1===a.childNodes.length&&3===a.firstChild.nodeType?this.extractAttributes&&(e="_attribute"):e="_geometry";e&&this.j[this.featureNS][e].apply(this,[a,b])},_typeName:function(a,b){var e={properties:{}};Y(this,a,e);e.name&&(e.properties.name=e.name);var f=new N(e.properties);if(e=e.geometry)e=Mq(this,{geometry:e}),r(e)&&f.Aa(e);e=a.getAttribute("fid")||this.getAttributeNS(a,this.C,
"id");null!==e&&(f.Ea=e);b.features.push(f)},_geometry:function(a,b){this.geometryName||(this.geometryName=a.nodeName.split(":").pop());Y(this,a,b)},_attribute:function(a,b){var e=a.localName||a.nodeName.split(":").pop();b.properties[e]=Z(a)}};r(this.featureNS)&&(this.j[this.featureNS]=this.d);this.a={"http://www.opengis.net/gml":{featureMember:function(a){var b=this.createElementNS("gml:featureMember");$(this,"_typeName",a,this.featureNS,b);return b},MultiPoint:function(a){var b=this.createElementNS("gml:MultiPoint");
a=a.t;for(var e=0,f=a.length;e<f;++e)$(this,"pointMember",a[e],null,b);return b},pointMember:function(a){var b=this.createElementNS("gml:pointMember");$(this,"Point",a,null,b);return b},MultiLineString:function(a){var b=this.createElementNS("gml:MultiLineString");a=a.t;for(var e=0,f=a.length;e<f;++e)$(this,"lineStringMember",a[e],null,b);return b},lineStringMember:function(a){var b=this.createElementNS("gml:lineStringMember");$(this,"LineString",a,null,b);return b},MultiPolygon:function(a){var b=
this.createElementNS("gml:MultiPolygon");a=a.t;for(var e=0,f=a.length;e<f;++e)$(this,"polygonMember",a[e],null,b);return b},polygonMember:function(a){var b=this.createElementNS("gml:polygonMember");$(this,"Polygon",a,null,b);return b},GeometryCollection:function(a){var b=this.createElementNS("gml:GeometryCollection");a=a.t;for(var e=0,f=a.length;e<f;++e)$(this,"geometryMember",a[e],null,b);return b},geometryMember:function(a){var b=this.createElementNS("gml:geometryMember");a=$(this,"_geometry",a,
this.featureNS);b.appendChild(a.firstChild);return b}},"http://www.opengis.net/wfs":{FeatureCollection:function(a){for(var b=this.createElementNS("wfs:FeatureCollection","http://www.opengis.net/wfs"),e=0,f=a.length;e<f;++e)$(this,"featureMember",a[e],null,b);return b}}};this.c={_typeName:function(a){var b=this.createElementNS("feature:"+this.featureType,this.featureNS),e=a.Ea;r(e)&&this.setAttributeNS(b,this.C,"fid",e);null!==a.D()&&$(this,"_geometry",a.D(),this.featureNS,b);a=a.jb();for(var f in a)e=
a[f],null==e||e instanceof Hd||$(this,"_attribute",{name:f,value:e},this.featureNS,b);return b},_geometry:function(a){var b=this.createElementNS("feature:"+this.geometryName,this.featureNS),e=a.S(),f;"point"===e?f=$(this,"Point",a,null,b):"multipoint"===e?f=$(this,"MultiPoint",a,null,b):"linearring"===e?f=$(this,"LinearRing",a.p(),null,b):"linestring"===e?f=$(this,"LineString",a,null,b):"multilinestring"===e?f=$(this,"MultiLineString",a,null,b):"polygon"===e?f=$(this,"Polygon",a,null,b):"multipolygon"===
e?f=$(this,"MultiPolygon",a,null,b):"geometrycollection"===e&&(f=$(this,"GeometryCollection",a,null,b));null!=this.srsName&&this.setAttributeNS(f,null,"srsName",this.srsName);return b},_attribute:function(a){var b=this.createElementNS("feature:"+a.name,this.featureNS);b.appendChild(this.createTextNode(a.value));return b}};r(this.featureNS)&&(this.a[this.featureNS]=this.c);Cp.call(this)}E(Lq,Cp);
Lq.prototype.P=function(a,b){var c;r(b)&&r(b.srsName)?c=b.srsName:r(this.readOptions)&&r(this.readOptions.srsName)&&(c=this.readOptions.srsName);r(c)&&(this.srsName=u(c)?c:c.Ua);r(b)&&r(b.axisOrientation)?this.axisOrientation=b.axisOrientation:r(this.readOptions)&&r(this.readOptions.axisOrientation)&&(this.axisOrientation=this.readOptions.axisOrientation);"string"==typeof a&&(a=zp(a));a&&9==a.nodeType&&(a=a.documentElement);c={features:[],metadata:{}};this.Qa(a,c,!0);c.metadata.projection=this.srsName;
delete this.srsName;delete this.axisOrientation;return c};
Lq.prototype.Qa=function(a,b,c){!0===c&&!0===this.e&&(this.featureType=null,delete this.j[this.featureNS],delete this.a[this.featureNS],this.featureNS=null);!this.featureNS&&(a.parentNode.namespaceURI==this.C&&/^(.*:)?featureMembers?$/.test(a.parentNode.nodeName))&&(this.featureType=a.nodeName.split(":").pop(),this.j[a.namespaceURI]=this.d,this.a[a.namespaceURI]=this.c,this.featureNS=a.namespaceURI,this.e=!0);return Cp.prototype.Qa.apply(this,[a,b])};
function Mq(a,b){var c=null,d,e;switch(b.geometry.type){case "point":c=new Hm(b.geometry.coordinates);break;case "linearring":c=new Jm(b.geometry.coordinates);break;case "linestring":c=new Fm(b.geometry.coordinates);break;case "polygon":c=new Lm(b.geometry.coordinates);break;case "multipoint":d=[];c=0;for(e=b.geometry.N.length;c<e;c++)d.push(b.geometry.N[c].coordinates);c=new Im(d);break;case "multilinestring":d=[];c=0;for(e=b.geometry.N.length;c<e;c++)d.push(b.geometry.N[c].coordinates);c=new Gm(d);
break;case "multipolygon":d=[];c=0;for(e=b.geometry.N.length;c<e;c++)d.push(b.geometry.N[c].coordinates);c=new Mm(d);break;case "geometrycollection":d=[];c=0;for(e=b.geometry.N.length;c<e;c++)d.push(Mq(a,{geometry:b.geometry.N[c]}));c=new Fp(d)}return c}Lq.prototype.$b=function(a){return this.P(a)};
function Nq(a,b,c){var d;r(c)&&r(c.srsName)?d=c.srsName:r(a.writeOptions)&&r(a.writeOptions.srsName)?d=a.writeOptions.srsName:r(b.metadata)&&(d=b.metadata.projection);a.srsName=u(d)?d:d.Ua;a.axisOrientation=r(c)&&r(c.axisOrientation)?c.axisOrientation:r(a.writeOptions)&&r(a.writeOptions.axisOrientation)?a.writeOptions.axisOrientation:Sd(te(a.srsName))};function Oq(a){this.schemaLocation="http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd";Lq.call(this,a);zc(this.j["http://www.opengis.net/gml"],{outerBoundaryIs:function(a,c){var d=[];Y(this,a,d);c.outer=d[0][0]},innerBoundaryIs:function(a,c){var d=[];Y(this,a,d);c.Ac.push(d[0][0])},Box:function(a,c){var d=[];this.j[this.C]._inherit.apply(this,[a,d,c]);Y(this,a,d);c.projection=a.getAttribute("srsName");c.bounds=[d[0][0][0],d[0][0][1],d[0][1][0],d[0][1][1]]}});zc(this.a["http://www.opengis.net/gml"],
{Point:function(a){var c=this.createElementNS("gml:Point");$(this,"coordinates",[a.p()],null,c);return c},coordinates:function(a){for(var c=a.length,d=Array(c),e=0;e<c;++e){var f=a[e],g=Qa(f);"en"!==this.axisOrientation.substr(0,2)&&(g[0]=f[1],g[1]=f[0]);d[e]=g.join(",")}a=d.join(" ");c=this.createElementNS("gml:coordinates");this.setAttributeNS(c,null,"decimal",".");this.setAttributeNS(c,null,"cs",",");this.setAttributeNS(c,null,"ts"," ");c.appendChild(this.createTextNode(a));return c},LineString:function(a){var c=
this.createElementNS("gml:LineString");$(this,"coordinates",a.p(),null,c);return c},Polygon:function(a){var c=this.createElementNS("gml:Polygon");a=a.p();$(this,"outerBoundaryIs",a[0].reverse(),null,c);for(var d=1;d<a.length;++d)$(this,"innerBoundaryIs",a[d].reverse(),null,c);return c},outerBoundaryIs:function(a){var c=this.createElementNS("gml:outerBoundaryIs");$(this,"LinearRing",a,null,c);return c},innerBoundaryIs:function(a){var c=this.createElementNS("gml:innerBoundaryIs");$(this,"LinearRing",
a,null,c);return c},LinearRing:function(a){var c=this.createElementNS("gml:LinearRing");$(this,"coordinates",a,null,c);return c},Box:function(a){var c=this.createElementNS("gml:Box");$(this,"coordinates",[[a[0],a[1]],[a[2],a[3]]],null,c);null!=this.srsName&&c.setAttribute("srsName",this.srsName);return c}})}E(Oq,Lq);
Oq.prototype.write=function(a,b){Nq(this,a,b);var c=$(this,"FeatureCollection",a.features,"http://www.opengis.net/wfs");this.setAttributeNS(c,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);c=Dp(this,c);delete this.srsName;delete this.axisOrientation;return c};function Pq(a){this.schemaLocation="http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd";Lq.call(this,a);this.c._geometry=function(a){var c=this.createElementNS("feature:"+this.geometryName,this.featureNS),d=a.S(),e;"point"===d?e=$(this,"Point",a,null,c):"multipoint"===d?e=$(this,"MultiPoint",a,null,c):"linestring"===d?e=!0===this.curve?$(this,"Curve",a,null,c):$(this,"LineString",a,null,c):"linearring"===d?e=$(this,"LinearRing",a.p(),null,c):"multilinestring"===
d?e=!1===this.multiCurve?$(this,"MultiLineString",a,null,c):$(this,"MultiCurve",a,null,c):"polygon"===d?e=!0===this.surface?$(this,"Surface",a,null,c):$(this,"Polygon",a,null,c):"multipolygon"===d?e=!1===this.multiSurface?$(this,"MultiPolygon",a,null,c):$(this,"MultiSurface",a,null,c):"geometrycollection"===d&&(e=$(this,"MultiGeometry",a,null,c));null!=this.srsName&&this.setAttributeNS(e,null,"srsName",this.srsName);return c};zc(this.j["http://www.opengis.net/gml"],{_inherit:kg(this.j["http://www.opengis.net/gml"]._inherit,
function(a,c,d){if(a=parseInt(a.getAttribute("srsDimension"),10)||d&&d.he)c.he=a}),featureMembers:function(a,c){Y(this,a,c)},Curve:function(a,c){var d=[];this.j[this.C]._inherit.apply(this,[a,d,c]);Y(this,a,d);d={type:"linestring",coordinates:d[0]};ia(c)?c.push(d):c.geometry=d},segments:function(a,c){Y(this,a,c)},LineStringSegment:function(a,c){var d=[];Y(this,a,d);c.push(d[0])},pos:function(a,c){var d=Z(a).replace(this.R.ua,""),d=La(d.split(this.R.Ib),parseFloat);"en"===this.axisOrientation.substr(0,
2)?c.push([d]):2===d.length?c.push([d.reverse()]):3===d.length&&c.push([[d[1],d[0],d[2]]])},posList:function(a,c){for(var d=Z(a).replace(this.R.ua,"").split(this.R.Ib),e=c.he||parseInt(a.getAttribute("srsDimension")||a.getAttribute("dimension"),10)||2,f,g,k=Array(d.length/e),l=0,n=d.length;l<n;l+=e){f=parseFloat(d[l]);g=parseFloat(d[l+1]);var q="en"===this.axisOrientation.substr(0,2);3===e?k[l/e]=q?[f,g,parseFloat(d[l+2])]:[g,f,parseFloat(d[l+2])]:2===e&&(k[l/e]=q?[f,g]:[g,f])}c.push(k)},Surface:function(a,
c){Y(this,a,c)},patches:function(a,c){Y(this,a,c)},PolygonPatch:function(a,c){this.j[this.C].Polygon.apply(this,[a,c])},exterior:function(a,c){var d=[];Y(this,a,d);c.$d=d[0][0]},interior:function(a,c){var d=[];Y(this,a,d);c.Ac.push(d[0][0])},MultiCurve:function(a,c){var d=[];this.j[this.C]._inherit.apply(this,[a,d,c]);Y(this,a,d);c.geometry={type:"multilinestring",N:d}},curveMember:function(a,c){Y(this,a,c)},MultiSurface:function(a,c){var d=[];this.j[this.C]._inherit.apply(this,[a,d,c]);Y(this,a,
d);c.geometry={type:"multipolygon",N:d}},surfaceMember:function(a,c){Y(this,a,c)},surfaceMembers:function(a,c){Y(this,a,c)},pointMembers:function(a,c){Y(this,a,c)},lineStringMembers:function(a,c){Y(this,a,c)},polygonMembers:function(a,c){Y(this,a,c)},geometryMembers:function(a,c){Y(this,a,c)},Envelope:function(a,c){var d=[];this.j[this.C]._inherit.apply(this,[a,d,c]);Y(this,a,d);c.projection=a.getAttribute("srsName");c.bounds=[d[0][0],d[0][1],d[1][0],d[1][1]]},lowerCorner:function(a,c){var d=[];this.j[this.C].pos.apply(this,
[a,d]);c.push(d[0][0])},upperCorner:function(a,c){var d=[];this.j[this.C].pos.apply(this,[a,d]);c.push(d[0][0])}});zc(this.a["http://www.opengis.net/gml"],{featureMembers:function(a){for(var c=this.createElementNS("gml:featureMembers"),d=0,e=a.length;d<e;++d)$(this,"_typeName",a[d],this.featureNS,c);return c},Point:function(a){var c=this.createElementNS("gml:Point");$(this,"pos",a.p(),null,c);return c},pos:function(a){a="en"===this.axisOrientation.substr(0,2)?a[0]+" "+a[1]:a[1]+" "+a[0];var c=this.createElementNS("gml:pos");
c.appendChild(this.createTextNode(a));return c},LineString:function(a){var c=this.createElementNS("gml:LineString");$(this,"posList",a.p(),null,c);return c},Curve:function(a){var c=this.createElementNS("gml:Curve");$(this,"segments",a,null,c);return c},segments:function(a){var c=this.createElementNS("gml:segments");$(this,"LineStringSegment",a,null,c);return c},LineStringSegment:function(a){var c=this.createElementNS("gml:LineStringSegment");$(this,"posList",a.p(),null,c);return c},posList:function(a){for(var c=
a.length,d=Array(c),e,f=0;f<c;++f)e=a[f],d[f]="en"===this.axisOrientation.substr(0,2)?e[0]+" "+e[1]:e[1]+" "+e[0];a=this.createElementNS("gml:posList");a.appendChild(this.createTextNode(d.join(" ")));return a},Surface:function(a){var c=this.createElementNS("gml:Surface");$(this,"patches",a,null,c);return c},patches:function(a){var c=this.createElementNS("gml:patches");$(this,"PolygonPatch",a,null,c);return c},PolygonPatch:function(a){var c=this.createElementNS("gml:PolygonPatch");c.setAttribute("interpolation",
"planar");a=a.p();$(this,"exterior",a[0].reverse(),null,c);for(var d=1,e=a.length;d<e;++d)$(this,"interior",a[d].reverse(),null,c);return c},Polygon:function(a){var c=this.createElementNS("gml:Polygon");a=a.p();$(this,"exterior",a[0].reverse(),null,c);for(var d=1,e=a.length;d<e;++d)$(this,"interior",a[d].reverse(),null,c);return c},exterior:function(a){var c=this.createElementNS("gml:exterior");$(this,"LinearRing",a,null,c);return c},interior:function(a){var c=this.createElementNS("gml:interior");
$(this,"LinearRing",a,null,c);return c},LinearRing:function(a){var c=this.createElementNS("gml:LinearRing");$(this,"posList",a,null,c);return c},MultiCurve:function(a){var c=this.createElementNS("gml:MultiCurve");a=a.t;for(var d=0,e=a.length;d<e;++d)$(this,"curveMember",a[d],null,c);return c},curveMember:function(a){var c=this.createElementNS("gml:curveMember");this.curve?$(this,"Curve",a,null,c):$(this,"LineString",a,null,c);return c},MultiSurface:function(a){var c=this.createElementNS("gml:MultiSurface");
a=a.t;for(var d=0,e=a.length;d<e;++d)$(this,"surfaceMember",a[d],null,c);return c},surfaceMember:function(a){var c=this.createElementNS("gml:surfaceMember");this.surface?$(this,"Surface",a,null,c):$(this,"Polygon",a,null,c);return c},Envelope:function(a){var c=this.createElementNS("gml:Envelope");$(this,"lowerCorner",a,null,c);$(this,"upperCorner",a,null,c);r(this.srsName)&&c.setAttribute("srsName",this.srsName);return c},lowerCorner:function(a){a="en"===this.axisOrientation.substr(0,2)?a[0]+" "+
a[1]:a[1]+" "+a[0];var c=this.createElementNS("gml:lowerCorner");c.appendChild(this.createTextNode(a));return c},upperCorner:function(a){a="en"===this.axisOrientation.substr(0,2)?a[2]+" "+a[3]:a[3]+" "+a[2];var c=this.createElementNS("gml:upperCorner");c.appendChild(this.createTextNode(a));return c}})}E(Pq,Lq);
Pq.prototype.write=function(a,b){Nq(this,a,b);var c=$(this,"featureMembers",a.features);this.setAttributeNS(c,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);c=Dp(this,c);delete this.srsName;delete this.axisOrientation;return c};function Qq(){function a(a,b){b.Wf.push(Z(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),mh:a.getAttribute("locator"),Wf:[]};b.Ed.push(e);Y(this,a,e)}this.j={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];Y(this,a,b.exceptionReport)},ServiceException:function(a,b){var e={};e.code=a.getAttribute("code");e.locator=a.getAttribute("locator");e.text=Z(a);b.exceptions.push(e)}},"http://www.opengis.net/ows":{ExceptionReport:function(a,
b){b.success=!1;b.Vc={version:a.getAttribute("version"),language:a.getAttribute("language"),Ed:[]};Y(this,a,b.Vc)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}},"http://www.opengis.net/ows/1.1":{ExceptionReport:function(a,b){b.Vc={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),Ed:[]};Y(this,a,b.Vc)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}};Cp.call(this)}
E(Qq,Cp);Qq.prototype.P=function(a){u(a)&&(a=zp(a));var b={exceptionReport:null};a&&Y(this,a,b);return b};function Rq(a){this.b=a=r(a)?a:{};this.kc=a.kc||null;this.version=a.version;this.profile=a.profile;r(a.gc)?this.gc=a.gc:this.gc=!1;r(a.Jc)?this.Jc=a.Jc:this.Jc=!1}function Sq(a,b,c){b?(c=a.version,c||(c=b.getAttribute("version"),c||(c=a.kc))):c=c&&c.version||a.version||a.kc;return c}
function Tq(a,b){b=b||a.kc;var c=a.profile?"_"+a.profile:"";if(!a.parser||a.parser.VERSION!=b){var d=a.a["v"+b.replace(/\./g,"_")+c];if(!d&&(""!==c&&a.gc&&(c="",d=a.a["v"+b.replace(/\./g,"_")+c]),!d))throw"Can't find a parser for version "+b+c;a.parser=new d(a.b)}return a.parser}Rq.prototype.write=function(a,b){var c=Sq(this,null,b);this.parser=Tq(this,c);c=this.parser.write(a,b);return!1===this.Jc?c:Ap(c)};
Rq.prototype.P=function(a,b){u(a)&&(a=zp(a));var c=Sq(this,a.documentElement);this.parser=Tq(this,c);var d=this.parser.P(a,b),e=this.parser.Dd||null;null!==e&&void 0===d[e]&&(e=new Qq,d.error=e.P(a));d.version=c;return d};function Uq(){this.C="http://www.opengis.net/wms";this.Dd="service";this.j={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};Y(this,a,b.service)},Name:function(a,b){b.name=Z(a)},Title:function(a,b){b.title=Z(a)},Abstract:function(a,b){b["abstract"]=Z(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};
isNaN(a.x)&&isNaN(a.y)||(b.res=a);return b},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ContactInformation:function(a,b){b.contactInformation={};Y(this,a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};Y(this,a,b.personPrimary)},ContactPerson:function(a,b){b.person=Z(a)},ContactOrganization:function(a,b){b.organization=Z(a)},ContactPosition:function(a,b){b.position=Z(a)},ContactAddress:function(a,b){b.contactAddress=
{};Y(this,a,b.contactAddress)},AddressType:function(a,b){b.type=Z(a)},Address:function(a,b){b.address=Z(a)},City:function(a,b){b.city=Z(a)},StateOrProvince:function(a,b){b.stateOrProvince=Z(a)},PostCode:function(a,b){b.postcode=Z(a)},Country:function(a,b){b.country=Z(a)},ContactVoiceTelephone:function(a,b){b.phone=Z(a)},ContactFacsimileTelephone:function(a,b){b.fax=Z(a)},ContactElectronicMailAddress:function(a,b){b.email=Z(a)},Fees:function(a,b){var c=Z(a);c&&"none"!=c.toLowerCase()&&(b.fees=c)},
AccessConstraints:function(a,b){var c=Z(a);c&&"none"!=c.toLowerCase()&&(b.accessConstraints=c)},Capability:function(a,b){b.capability={};b.capability.nestedLayers=[];b.capability.layers=[];Y(this,a,b.capability)},Request:function(a,b){b.request={};Y(this,a,b.request)},GetCapabilities:function(a,b){b.getcapabilities={};b.getcapabilities.formats=[];Y(this,a,b.getcapabilities)},Format:function(a,b){ia(b.formats)?b.formats.push(Z(a)):b.format=Z(a)},DCPType:function(a,b){Y(this,a,b)},HTTP:function(a,b){Y(this,
a,b)},Get:function(a,b){b.get={};Y(this,a,b.get)},Post:function(a,b){b.post={};Y(this,a,b.post)},GetMap:function(a,b){b.getmap={};b.getmap.formats=[];Y(this,a,b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={};b.getfeatureinfo.formats=[];Y(this,a,b.getfeatureinfo)},Exception:function(a,b){b.exception={};b.exception.formats=[];Y(this,a,b.exception)},Layer:function(a,b){var c,d;b.capability?(d=b.capability,c=b):d=b;var e=a.getAttributeNode("queryable"),f=e&&e.specified?a.getAttribute("queryable"):
null,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):null,k=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):null,l=a.getAttribute("noSubsets"),n=a.getAttribute("fixedWidth"),q=a.getAttribute("fixedHeight"),e=c||{},f={nestedLayers:[],styles:c?[].concat(c.styles):[],srs:{},metadataURLs:[],bbox:{},llbbox:e.llbbox,dimensions:{},authorityURLs:{},identifiers:{},keywords:[],queryable:f&&""!==f?"1"===f||"true"===f:e.queryable||!1,cascaded:null!==g?parseInt(g,
10):e.cascaded||0,opaque:k?"1"===k||"true"===k:e.opaque||!1,noSubsets:null!==l?"1"===l||"true"===l:e.noSubsets||!1,fixedWidth:null!==n?parseInt(n,10):e.fixedWidth||0,fixedHeight:null!==q?parseInt(q,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&(zc(f.srs,e.srs),zc(f.bbox,e.bbox),zc(f.dimensions,e.dimensions),zc(f.authorityURLs,e.authorityURLs));b.nestedLayers.push(f);f.capability=d;Y(this,a,f);delete f.capability;f.name&&(c=f.name.split(":"),g=d.request,
e=g.getfeatureinfo,0<c.length&&(f.prefix=c[0]),d.layers.push(f),r(f.formats)||(f.formats=g.getmap.formats),!r(f.infoFormats)&&e&&(f.infoFormats=e.formats))},Attribution:function(a,b){b.attribution={};Y(this,a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};Y(this,a,b.logo)},Style:function(a,b){var c={};b.styles.push(c);Y(this,a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;Y(this,
a,c)},MetadataURL:function(a,b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);Y(this,a,c)},DataURL:function(a,b){b.dataURL={};Y(this,a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};Y(this,a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};Y(this,a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=Z(a)},KeywordList:function(a,b){Y(this,a,b)},SRS:function(a,b){b.srs[Z(a)]=!0}}};Cp.call(this)}
E(Uq,Cp);Uq.prototype.P=function(a){u(a)&&(a=zp(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};this.Qa(a,b);return b};function Vq(){Uq.call(this);var a=this.j["http://www.opengis.net/wms"].BoundingBox;zc(this.j["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){Y(this,a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:Z(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};Y(this,a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic={formats:[]};Y(this,a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};Y(this,a,c.getstyles)},PutStyles:function(a,
c){c.putstyles={formats:[]};Y(this,a,c.putstyles)},UserDefinedSymbolization:function(a,c){var d={supportSLD:1==parseInt(a.getAttribute("SupportSLD"),10),userLayer:1==parseInt(a.getAttribute("UserLayer"),10),userStyle:1==parseInt(a.getAttribute("UserStyle"),10),remoteWFS:1==parseInt(a.getAttribute("RemoteWFS"),10)};c.userSymbols=d},LatLonBoundingBox:function(a,c){c.llbbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))]},
BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("SRS");c.bbox[d.srs]=d},ScaleHint:function(a,c){var d=parseFloat(a.getAttribute("min")),e=parseFloat(a.getAttribute("max")),f=Math.pow(2,0.5),g=25.4/0.28;0!==d&&(c.maxScale=parseFloat(39.37*(d/f)*g));Infinity!=e&&(c.minScale=parseFloat(39.37*(e/f)*g))},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol")};c.dimensions[d.name]=d},Extent:function(a,
c){var d=a.getAttribute("name").toLowerCase();d in c.dimensions&&(d=c.dimensions[d],d.nearestVal="1"===a.getAttribute("nearestValue"),d.multipleVal="1"===a.getAttribute("multipleValues"),d.current="1"===a.getAttribute("current"),d["default"]=a.getAttribute("default")||"",d.values=Z(a).split(","))}})}E(Vq,Uq);function Wq(){Vq.call(this);this.version="1.1.0";zc(this.j["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=Z(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=!0}})}E(Wq,Vq);function Xq(){Vq.call(this);this.version="1.1.1";zc(this.j["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[Z(a)]=!0}})}E(Xq,Vq);function Yq(){Xq.call(this);this.profile="WMSC";zc(this.j["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};Y(this,a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};Y(this,a,c);b.nh.push(c)},Resolutions:function(a,b){for(var c=Z(a).split(" "),d=0,e=c.length;d<e;d++)""!==c[d]&&b.resolutions.push(parseFloat(c[d]))},Width:function(a,b){b.width=parseInt(Z(a),10)},Height:function(a,b){b.height=parseInt(Z(a),10)},Layers:function(a,
b){b.layers=Z(a)},Styles:function(a,b){b.styles=Z(a)}})}E(Yq,Xq);function Zq(){Uq.call(this);var a=this.j["http://www.opengis.net/wms"].BoundingBox;zc(this.j["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){Y(this,a,c)},LayerLimit:function(a,c){c.layerLimit=parseInt(Z(a),10)},MaxWidth:function(a,c){c.maxWidth=parseInt(Z(a),10)},MaxHeight:function(a,c){c.maxHeight=parseInt(Z(a),10)},BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("CRS");c.bbox[d.srs]=d},CRS:function(a,c){this.j["http://www.opengis.net/wms"].SRS.apply(this,
arguments)},EX_GeographicBoundingBox:function(a,c){c.llbbox=[];Y(this,a,c.llbbox)},westBoundLongitude:function(a,c){c[0]=Z(a)},eastBoundLongitude:function(a,c){c[2]=Z(a)},southBoundLatitude:function(a,c){c[1]=Z(a)},northBoundLatitude:function(a,c){c[3]=Z(a)},MinScaleDenominator:function(a,c){c.maxScale=parseFloat(Z(a)).toPrecision(16)},MaxScaleDenominator:function(a,c){c.minScale=parseFloat(Z(a)).toPrecision(16)},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),
unitsymbol:a.getAttribute("unitSymbol"),nearestVal:"1"===a.getAttribute("nearestValue"),multipleVal:"1"===a.getAttribute("multipleValues"),"default":a.getAttribute("default")||"",current:"1"===a.getAttribute("current"),values:Z(a).split(",")};c.dimensions[d.name]=d},Keyword:function(a,c){var d={value:Z(a),vocabulary:a.getAttribute("vocabulary")};c.keywords&&c.keywords.push(d)}});this.j.sld={UserDefinedSymbolization:function(a,c){this.j["http://www.opengis.net/wms"].jh.apply(this,arguments);var d=
a.getAttribute("InlineFeature");c.userSymbols.inlineFeature=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");c.userSymbols.remoteWCS=1==parseInt(d,10)},DescribeLayer:function(a,c){this.j["http://www.opengis.net/wms"].zg.apply(this,arguments)},GetLegendGraphic:function(a,c){this.j["http://www.opengis.net/wms"].Fg.apply(this,arguments)}}}E(Zq,Uq);function $q(a){a=a||{};a.defaultVersion="1.1.1";this.a={};this.a.v1_1_0=Wq;this.a.v1_1_1=Xq;this.a.v1_1_1_WMSC=Yq;this.a.v1_3_0=Zq;Rq.call(this,a)}E($q,Rq);function ar(){this.j={"http://www.opengis.net/ows":{ServiceIdentification:function(a,b){b.serviceIdentification={};Y(this,a,b.serviceIdentification)},Title:function(a,b){b.title=Z(a)},Abstract:function(a,b){b["abstract"]=Z(a)},Keywords:function(a,b){b.keywords={};Y(this,a,b.keywords)},Keyword:function(a,b){b[Z(a)]=!0},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),value:Z(a)}},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=Z(a)},Fees:function(a,b){b.fees=Z(a)},
AccessConstraints:function(a,b){b.accessConstraints=Z(a)},ServiceProvider:function(a,b){b.serviceProvider={};Y(this,a,b.serviceProvider)},ProviderName:function(a,b){b.providerName=Z(a)},ProviderSite:function(a,b){b.providerSite=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceContact:function(a,b){b.serviceContact={};Y(this,a,b.serviceContact)},IndividualName:function(a,b){b.individualName=Z(a)},PositionName:function(a,b){b.positionName=Z(a)},ContactInfo:function(a,b){b.contactInfo=
{};Y(this,a,b.contactInfo)},Phone:function(a,b){b.phone={};Y(this,a,b.phone)},Voice:function(a,b){b.voice=Z(a)},Address:function(a,b){b.address={};Y(this,a,b.address)},DeliveryPoint:function(a,b){b.deliveryPoint=Z(a)},City:function(a,b){b.city=Z(a)},AdministrativeArea:function(a,b){b.administrativeArea=Z(a)},PostalCode:function(a,b){b.postalCode=Z(a)},Country:function(a,b){b.country=Z(a)},ElectronicMailAddress:function(a,b){b.electronicMailAddress=Z(a)},Role:function(a,b){b.role=Z(a)},OperationsMetadata:function(a,
b){b.operationsMetadata={};Y(this,a,b.operationsMetadata)},Operation:function(a,b){var c=a.getAttribute("name");b[c]={};Y(this,a,b[c])},DCP:function(a,b){b.dcp={};Y(this,a,b.dcp)},HTTP:function(a,b){b.http={};Y(this,a,b.http)},Get:function(a,b){b.get||(b.get=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};Y(this,a,c);b.get.push(c)},Post:function(a,b){b.post||(b.post=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};Y(this,a,c);b.post.push(c)},
Parameter:function(a,b){b.parameters||(b.parameters={});var c=a.getAttribute("name");b.parameters[c]={};Y(this,a,b.parameters[c])},Constraint:function(a,b){b.constraints||(b.constraints={});var c=a.getAttribute("name");b.constraints[c]={};Y(this,a,b.constraints[c])},Value:function(a,b){b[Z(a)]=!0},OutputFormat:function(a,b){b.formats.push({value:Z(a)});Y(this,a,b)},WGS84BoundingBox:function(a,b){var c={};c.crs=a.getAttribute("crs");b.BoundingBox?b.BoundingBox.push(c):(b.projection=c.crs,c=b);Y(this,
a,c)},BoundingBox:function(a,b){this.j[a.namespaceURI].WGS84BoundingBox.apply(this,[a,b])},LowerCorner:function(a,b){var c=Z(a).replace(this.R.ua,""),c=c.replace(this.R.od,","),c=c.split(this.R.Ib);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=Z(a).replace(this.R.ua,""),c=c.replace(this.R.od,","),c=c.split(this.R.Ib);b.right=c[0];b.top=c[1];b.bounds=[parseFloat(b.left),parseFloat(b.right),parseFloat(b.bottom),parseFloat(b.top)];delete b.left;delete b.bottom;delete b.right;delete b.top},
Language:function(a,b){b.language=Z(a)}}};Cp.call(this)}E(ar,Cp);function br(){ar.call(this);this.j["http://www.opengis.net/ows/1.1"]=this.j["http://www.opengis.net/ows"];zc(this.j["http://www.opengis.net/ows/1.1"],{AllowedValues:function(a,b){b.allowedValues={};Y(this,a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=!0},DataType:function(a,b){b.dataType=Z(a)},Range:function(a,b){b.range={};Y(this,a,b.range)},MinimumValue:function(a,b){b.minValue=Z(a)},MaximumValue:function(a,b){b.maxValue=Z(a)},Identifier:function(a,b){b.identifier=Z(a)},SupportedCRS:function(a,
b){b.supportedCRS=Z(a)}})}E(br,ar);function cr(){this.C="http://www.opengis.net/wmts/1.0";this.Dd="serviceIdentification";this.j={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){Y(this,a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};Y(this,a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};Y(this,a,d);c.layers.push(d)},Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");Y(this,a,d);c.styles.push(d)},
Format:function(a,c){c.formats.push(Z(a))},TileMatrixSetLink:function(a,c){var d={};Y(this,a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};Y(this,a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=Z(a)},TileMatrix:function(a,c){var d={supportedCRS:c.supportedCRS};Y(this,a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat(Z(a))},TopLeftCorner:function(a,c){var d=Z(a).split(" "),e=Sd(te(c.supportedCRS));c.topLeftCorner=
qd([parseFloat(d[0]),parseFloat(d[1])],e)},TileWidth:function(a,c){c.tileWidth=parseInt(Z(a),10)},TileHeight:function(a,c){c.tileHeight=parseInt(Z(a),10)},MatrixWidth:function(a,c){c.matrixWidth=parseInt(Z(a),10)},MatrixHeight:function(a,c){c.matrixHeight=parseInt(Z(a),10)},ResourceURL:function(a,c){var d=a.getAttribute("resourceType"),e=a.getAttribute("format"),f=a.getAttribute("template");c.resourceUrls||(c.resourceUrls={});c.resourceUrls[d]||(c.resourceUrls[d]={});c.resourceUrls[d][e]||(c.resourceUrls[d][e]=
[]);c.resourceUrls[d][e].push(f)},WSDL:function(a,c){c.wsdl={};c.wsdl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceMetadataURL:function(a,c){c.serviceMetadataUrl={};c.serviceMetadataUrl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},LegendURL:function(a,c){c.legend={};c.legend.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href");c.legend.format=a.getAttribute("format")},Dimension:function(a,c){var d={values:[]};Y(this,a,d);c.dimensions.push(d)},
Default:function(a,c){c["default"]=Z(a)},Value:function(a,c){c.values.push(Z(a))}}};var a=new br;this.j["http://www.opengis.net/ows/1.1"]=a.j["http://www.opengis.net/ows/1.1"];Cp.call(this)}E(cr,Cp);cr.prototype.P=function(a){u(a)&&(a=zp(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};this.Qa(a,b);return b};function dr(a){a=a||{};a.defaultVersion="1.0.0";this.a={};this.a.v1_0_0=cr;Rq.call(this,a)}E(dr,Rq);function er(a,b){var c=b||{},d=c.document||document,e=Ig("SCRIPT"),f={fe:e,ub:void 0},g=new Mp(fr,f),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){gr(e,!0);g.yb(new hr(ir,"Timeout reached for loading script "+a))},l),f.ub=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(gr(e,c.xd||!1,k),Sp(g,null))};e.onerror=function(){gr(e,!0,k);g.yb(new hr(jr,"Error while loading script "+a))};Cg(e,{type:"text/javascript",
charset:"UTF-8",src:a});kr(d).appendChild(e);return g}function kr(a){var b=a.getElementsByTagName("HEAD");return b&&0!=b.length?b[0]:a.documentElement}function fr(){if(this&&this.fe){var a=this.fe;a&&"SCRIPT"==a.tagName&&gr(a,!0,this.ub)}}function gr(a,b,c){null!=c&&p.clearTimeout(c);a.onload=ea;a.onerror=ea;a.onreadystatechange=ea;b&&window.setTimeout(function(){Ng(a)},0)}var jr=0,ir=1;function hr(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ua.call(this,c);this.code=a}E(hr,ua);function lr(a,b){this.b=new Mf(a);this.a=b?b:"callback";this.ub=5E3}var mr=0;lr.prototype.cancel=function(a){a&&(a.Sc&&a.Sc.cancel(),a.ma&&nr(a.ma,!1))};function or(a){return function(){nr(a,!1)}}function pr(a,b){return function(c){nr(a,!0);b.apply(void 0,arguments)}}function nr(a,b){p._callbacks_[a]&&(b?delete p._callbacks_[a]:p._callbacks_[a]=ea)};function qr(a){return function(b){return null===b?void 0:a.replace("{z}",""+b.z).replace("{x}",""+b.x).replace("{y}",""+b.y)}}function rr(a){return sr(La(a,qr))}function sr(a){return 1===a.length?a[0]:function(b,c){return null===b?void 0:a[ed((b.x<<b.z)+b.y,a.length)].call(this,b,c)}}function tr(a,b){var c=xk,d=sd();return function(e,f){if(null!==e){var g=this.tileGrid;null===g&&(g=fk(f));var k=g.xa(e.z),g=xj(g,e,d);return c.call(this,a,b,g,k,f)}}}function ur(){}
function vr(a,b){var c=new Za(0,0,0);return function(d,e){return null===d?void 0:b.call(this,a.call(this,d,e,c),e)}}function wr(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 xr(a){gk.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,opaque:a.opaque,projection:a.projection,tileGrid:a.tileGrid});this.tileUrlFunction=r(a.tileUrlFunction)?a.tileUrlFunction:ur;this.q=r(a.crossOrigin)?a.crossOrigin:null;this.a=new Dm;this.r=r(a.tileLoadFunction)?a.tileLoadFunction:yr}E(xr,gk);function yr(a,b){a.ca().src=b}m=xr.prototype;m.kd=function(){return this.a.ga()>this.a.d};m.Mb=function(a){this.a.Mb(a)};
m.Ab=function(a,b,c,d){var e=this.Wa(a,b,c);if(Bm(this.a,e))return this.a.get(e);a=new Za(a,b,c);d=this.tileUrlFunction(a,d);d=new ye(a,r(d)?0:4,r(d)?d:"",this.q,this.r);Cm(this.a,e,d);return d};m.ac=function(a){this.a.clear();this.tileUrlFunction=a;We(this)};m.ke=function(a,b,c){a=this.Wa(a,b,c);Bm(this.a,a)&&this.a.get(a)};function zr(a){var b=Array(a.maxZoom+1),c,d=2*oj/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);vj.call(this,{minZoom:a.minZoom,origin:[-oj,oj],resolutions:b,tileSize:[256,256]})}E(zr,vj);
function Ar(a,b){var c=r(b)?b:{},d=a.minZoom,e=a.maxZoom,f=r(c.eg)?c.eg:!0,g=new Za(0,0,0),k=null;if(r(c.extent)){var k=Array(e+1),l;for(l=0;l<=e;++l)k[l]=l<d?null:yj(a,c.extent,l)}return function(a,b,c){b=a.z;if(b<d||e<b)return null;var l=Math.pow(2,b),t=a.x;if(f)t=ed(t,l);else if(0>t||l<=t)return null;a=a.y;return a<-l||-1<a||null!==k&&(g.z=b,g.x=t,g.y=a,!k[b].contains(g))?null:r(c)?(c.z=b,c.x=t,c.y=-a-1,c):new Za(b,t,-a-1)}}
zr.prototype.vc=function(a,b){return a.z<this.maxZoom?db(2*a.x,2*(a.x+1),2*a.y,2*(a.y+1),b):null};zr.prototype.rc=function(a,b,c,d){d=db(0,a.x,0,a.y,d);for(a=a.z-1;a>=this.minZoom;--a)if(d.a=d.d>>=1,d.c=d.b>>=1,b.call(c,a,d))return!0;return!1};function Br(a){xr.call(this,{crossOrigin:"anonymous",opaque:!0,projection:te("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});this.b=r(a.culture)?a.culture:"en-us";var b=new Mf("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new lr(b,"jsonp"),c={include:"ImageryProviders",key:a.key};a=y(this.e,this);var d=c||null,c="_"+(mr++).toString(36)+ta().toString(36);p._callbacks_||(p._callbacks_={});var e=b.b.$();if(d)for(var f in d)d.hasOwnProperty&&!d.hasOwnProperty(f)||Zf(e,f,d[f]);
a&&(p._callbacks_[c]=pr(c,a),Zf(e,b.a,"_callbacks_."+c));f=er(e.toString(),{timeout:b.ub,xd:!0});Up(f,null,or(c),void 0)}E(Br,xr);
Br.prototype.e=function(a){var b=a.brandLogoUri,c=a.resourceSets[0].resources[0],d=new zr({minZoom:c.zoomMin,maxZoom:c.zoomMax,tileSize:[c.imageWidth,c.imageHeight]});this.tileGrid=d;var e=this.b;this.tileUrlFunction=vr(Ar(d),sr(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))}})));var f=Ud(te("EPSG:4326"),this.ha());this.d=La(c.imageryProviders,function(a){var b=a.attribution,
c={};Ja(a.coverageAreas,function(a){var b=a.zoomMin,e=a.zoomMax;a=a.bbox;a=Gd([a[1],a[3],a[0],a[2]],f);var g,k;for(g=b;g<=e;++g)k=g.toString(),b=yj(d,a,g),k in c?c[k].push(b):c[k]=[b]});return new eb({html:b,tileRanges:c})});this.g=b;this.f=1;We(this)};function Cr(a){var b=Dr(a.url),c=a.imageExtent,d=a.imageSize,e=(c[3]-c[1])/d[1],f=te(a.projection);zk.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Db:b,resolutions:[e]});this.a=Ak(this,c,e,d,f)}E(Cr,zk);Cr.prototype.ca=function(a){return Ed(a,this.a.ba())?this.a:null};function Dr(a){return function(){return a}};function xk(a,b,c,d,e){d={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0,WIDTH:Math.round(d[0]),HEIGHT:Math.round(d[1])};zc(d,b);d.STYLES=b.STYLES||new String("");b="1.3"<d.VERSION;d[b?"CRS":"SRS"]=e.Ua;e=e.d;d.BBOX=(b&&"ne"==e.substr(0,2)?[c[1],c[0],c[3],c[2]]:[c[0],c[1],c[2],c[3]]).join(",");return Jf(Lf([a],d))}
function Er(a,b,c,d,e){a=a.replace("REQUEST\x3dGetMap","REQUEST\x3dGetFeatureInfo").replace(Fr,"LAYERS\x3d$1\x26QUERY_LAYERS\x3d$1");c=r(c)?xc(c):{};var f={method:"iframe",params:{}};zc(f,c);c={INFO_FORMAT:"text/html"};var g=parseFloat(a.match(Gr)[1]),k=Math.round(b[0]);b=Math.round(b[1]);1.3<=g?zc(c,{I:k,J:b}):zc(c,{X:k,Y:b});zc(c,f.params);a=Jf(Lf([a],c));"iframe"==f.method?p.setTimeout(function(){d('\x3ciframe seamless src\x3d"'+a+'"\x3e\x3c/iframe\x3e')},0):"xhr_get"==f.method&&Pk(a,function(a){a=
a.target;Yk(a)?d(Zk(a)):r(e)&&e()})}var Fr=/LAYERS=([^&]+)/,Gr=/VERSION=([^&]+)/;function Hr(a){this.e=a.params;zk.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,Db:r(a.url)?wk(a.url,this.e):yk});this.q=r(a.Zc)?a.Zc:{};this.a=null;this.v=r(a.ratio)?a.ratio:1.5}E(Hr,zk);Hr.prototype.r=h("e");
Hr.prototype.ca=function(a,b,c){null===this.b||(b=this.b[ui(this.b,b,0)]);var d=this.a;if(null!==d&&d.F()==b&&xd(d.ba(),a))return d;var d=a=a.slice(),e=this.v,f=(d[2]-d[0])/2*(e-1),e=(d[3]-d[1])/2*(e-1);d[0]-=f;d[2]+=f;d[1]-=e;d[3]+=e;return this.a=Ak(this,a,b,[(a[2]-a[0])/b,(a[3]-a[1])/b],c)};Hr.prototype.La=function(a,b,c,d){var e=b.a().O().ha(),f=b.c(),g=Yi(b,[0,f[1]]);b=Yi(b,[f[0],0]);e=this.Db([g[0],b[0],g[1],b[1]],f,e);Er(e,a,this.q,c,d)};
Hr.prototype.s=function(a){zc(this.e,a);this.a=null;We(this)};function Ir(a){var b=a.projection||te("EPSG:3857"),c=new zr({maxZoom:r(a.maxZoom)?a.maxZoom:18});xr.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,logo:a.logo,projection:b,tileGrid:c,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:ur});this.e=Ar(c,{extent:a.extent});r(a.tileUrlFunction)?this.ac(a.tileUrlFunction):r(a.urls)?this.ac(rr(a.urls)):r(a.url)&&this.b(a.url)}E(Ir,xr);Ir.prototype.ac=function(a){Ir.H.ac.call(this,vr(this.e,a))};Ir.prototype.b=function(a){this.ac(rr(wr(a)))};function Jr(a){a=r(a)?a:{};Ir.call(this,{attributions:r(a.attributions)?a.attributions:Kr,crossOrigin:"anonymous",opaque:!0,maxZoom:a.maxZoom,tileLoadFunction:a.tileLoadFunction,url:r(a.url)?a.url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}E(Jr,Ir);
var Lr=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'}),Mr=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'}),Kr=[Mr,Lr];function Nr(a){Ir.call(this,{attributions:[new eb({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/" target\x3d"_blank"\x3eMapQuest\x3c/a\x3e'}),Lr],crossOrigin:"anonymous",logo:"http://developer.mapquest.com/content/osm/mq_logo.png",opaque:!0,maxZoom:28,tileLoadFunction:(r(a)?a:{}).tileLoadFunction,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}E(Nr,Ir);
function Or(a){Ir.call(this,{attributions:[new eb({html:'Tiles Courtesy of \x3ca href\x3d"http://www.mapquest.com/" target\x3d"_blank"\x3eMapQuest\x3c/a\x3e'}),new eb({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})],crossOrigin:"anonymous",logo:"http://developer.mapquest.com/content/osm/mq_logo.png",maxZoom:18,opaque:!0,tileLoadFunction:(r(a)?a:{}).tileLoadFunction,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}E(Or,Ir);var Pr={terrain:{wa:"jpg",opaque:!0},"terrain-background":{wa:"jpg",opaque:!0},"terrain-labels":{wa:"png",opaque:!1},"terrain-lines":{wa:"png",opaque:!1},"toner-background":{wa:"png",opaque:!0},toner:{wa:"png",opaque:!0},"toner-hybrid":{wa:"png",opaque:!1},"toner-labels":{wa:"png",opaque:!1},"toner-lines":{wa:"png",opaque:!1},"toner-lite":{wa:"png",opaque:!0},watercolor:{wa:"jpg",opaque:!0}},Qr={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}};
function Rr(a){var b=a.layer.indexOf("-"),b=-1==b?a.layer:a.layer.slice(0,b),c=Pr[a.layer];Ir.call(this,{attributions:Sr,crossOrigin:"anonymous",maxZoom:Qr[b].maxZoom,opaque:c.opaque,tileLoadFunction:a.tileLoadFunction,url:r(a.url)?a.url:"http://{a-d}.tile.stamen.com/"+a.layer+"/{z}/{x}/{y}."+c.wa})}E(Rr,Ir);
var Sr=[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.'}),Lr];function Tr(a,b){xe.call(this,a,2);this.d=a;this.c=b.xa(a.z);this.b={}}E(Tr,xe);Tr.prototype.ca=function(a){a=r(a)?v(a):-1;if(a in this.b)return this.b[a];var b=this.c,c=Ig("CANVAS");c.width=b[0];c.height=b[1];var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b[0]+0.5,b[1]+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.d.toString(),b[0]/2,b[1]/2);return this.b[a]=c};
function Ur(a){gk.call(this,{extent:a.extent,opaque:!1,projection:a.projection,tileGrid:a.tileGrid});this.a=new Dm}E(Ur,gk);Ur.prototype.kd=function(){return this.a.ga()>this.a.d};Ur.prototype.Mb=function(a){this.a.Mb(a)};Ur.prototype.Ab=function(a,b,c){var d=this.Wa(a,b,c);if(Bm(this.a,d))return this.a.get(d);a=new Tr(new Za(a,b,c),this.tileGrid);Cm(this.a,d,a);return a};var Vr=[];C("grid",function(a){Vr.push(a)});function Wr(a){xr.call(this,{crossOrigin:a.crossOrigin,projection:te("EPSG:3857"),state:0,tileLoadFunction:a.tileLoadFunction});this.Sc=er(a.url,{xd:!0});Tp(this.Sc,this.b,this)}E(Wr,xr);
Wr.prototype.b=function(){var a=Vr.pop(),b=te("EPSG:4326"),c;if(r(a.bounds)){var d=Ud(b,this.ha());this.i=c=Gd(a.bounds,d)}var e=a.minzoom||0,d=a.maxzoom||22,f=new zr({maxZoom:d,minZoom:e});this.tileGrid=f;this.tileUrlFunction=vr(Ar(f,{extent:c}),rr(a.tiles));if(r(a.attribution)){b=r(c)?c:b.ba();c={};for(var g;e<=d;++e)g=e.toString(),c[g]=[yj(f,b,e)];this.d=[new eb({html:a.attribution,tileRanges:c})]}this.f=1;We(this)};function Xr(a){var b=ur,c=a.urls;!r(c)&&r(a.url)&&(c=wr(a.url));this.b=a.params;this.e="";js(this);r(c)&&(b=La(c,function(a){return tr(a,this.b)},this),b=sr(b));var d=a.extent;xr.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,logo:a.logo,tileGrid:a.tileGrid,opaque:!(r(a.params.TRANSPARENT)?a.params.TRANSPARENT:1),projection:a.projection,tileLoadFunction:a.tileLoadFunction,tileUrlFunction:vr(function(a,b){var c=this.tileGrid;null===c&&(c=fk(b));if(c.Ob().length<=a.z)return null;
var k=a.x,l=xj(c,a),n=b.ba();d=r(d)?d:n;null!==d&&(b.Hd&&d[0]===n[0]&&d[2]===n[2])&&(l=Math.ceil((d[2]-d[0])/(l[2]-l[0])),k=ed(k,l),l=xj(c,new Za(a.z,k,a.y)));return null===d||Ed(l,d)&&!Fd(l,d)?new Za(a.z,k,a.y):null},b)});this.n=r(a.Zc)?a.Zc:{}}E(Xr,xr);Xr.prototype.Wa=function(a,b,c){return this.e+Xr.H.Wa.call(this,a,b,c)};Xr.prototype.s=h("b");
Xr.prototype.La=function(a,b,c,d){var e=Yi(b,a),f=b.a().O(),g=f.ha(),k=null===this.tileGrid?fk(g):this.tileGrid,f=f.F(),e=Aj(k,e[0],e[1],f,!1,void 0),k=xj(k,e);b=Xi(b,Dd(k));g=this.tileUrlFunction(e,g);Er(g,[a[0]-b[0],a[1]-b[1]],this.n,c,d)};function js(a){var b=0,c=[],d;for(d in a.b)c[b++]=d+"-"+a.b[d];a.e=c.join("/")}Xr.prototype.v=function(a){zc(this.b,a);js(this);We(this)};function ks(a){this.c=a.matrixIds;vj.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}E(ks,vj);ks.prototype.g=h("c");
function ls(a){var b=[],c=[],d=[],e=[],f=te(a.supportedCRS).a();Va(a.matrixIds,function(a,b){return b.scaleDenominator-a.scaleDenominator});Ja(a.matrixIds,function(a){c.push(a.identifier);d.push(a.topLeftCorner);b.push(2.8E-4*a.scaleDenominator/f);e.push([a.tileWidth,a.tileHeight])});return new ks({origins:d,resolutions:b,matrixIds:c,tileSizes:e})};var ms="KVP";
function ns(a){function b(a){a=e==ms?Jf(Lf([a],g)):a.replace(/\{(\w+?)\}/g,function(a,b){return b in g?g[b]:a});return function(b){if(null!==b){var c={TileMatrix:f.c[b.z],TileCol:b.x,TileRow:b.y};zc(c,this.b);b=a;return b=e==ms?Jf(Lf([b],c)):b.replace(/\{(\w+?)\}/g,function(a,b){return c[b]})}}}var c=r(a.version)?a.version:"1.0.0",d=r(a.format)?a.format:"image/jpeg";this.b=a.dimensions||{};this.e="";os(this);var e=r(a.requestEncoding)?a.requestEncoding:ms,f=a.tileGrid,g={Layer:a.layer,style:a.style,
Style:a.style,TileMatrixSet:a.matrixSet};e==ms&&zc(g,{Service:"WMTS",Request:"GetTile",Version:c,Format:d});c=ur;d=a.urls;!r(d)&&r(a.url)&&(d=wr(a.url));r(d)&&(c=sr(La(d,b)));var k=sd(),l=new Za(0,0,0),c=vr(function(b,c){var d=this.tileGrid;if(d.Ob().length<=b.z)return null;var e=b.x,f=-b.y-1,g=xj(d,b),B=c.ba(),w=r(a.extent)?a.extent:B;null!==w&&(c.Hd&&w[0]===B[0]&&w[2]===B[2])&&(g=Math.ceil((w[2]-w[0])/(g[2]-g[0])),e=ed(e,g),l.z=b.z,l.x=e,l.y=b.y,g=xj(d,l,k));return!Ed(g,w)||Fd(g,w)?null:new Za(b.z,
e,f)},c);xr.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(ns,xr);ns.prototype.n=h("b");ns.prototype.Wa=function(a,b,c){return this.e+ns.H.Wa.call(this,a,b,c)};function os(a){var b=0,c=[],d;for(d in a.b)c[b++]=d+"-"+a.b[d];a.e=c.join("/")}ns.prototype.s=function(a){zc(this.b,a);os(this);We(this)};function ps(a){this.e=r(a.color)?a.color instanceof T?a.color:new U(a.color):new U(qs);this.b=r(a.fontFamily)?a.fontFamily instanceof T?a.fontFamily:new U(a.fontFamily):new U(rs);this.c=r(a.fontSize)?a.fontSize instanceof T?a.fontSize:new U(a.fontSize):new U(ss);this.d=r(a.fontWeight)?a.fontWeight instanceof T?a.fontWeight:new U(a.fontWeight):new U(ts);this.G=a.text instanceof T?a.text:new U(a.text);this.f=r(a.opacity)?a.opacity instanceof T?a.opacity:new U(a.opacity):new U(us);this.a=null!=a.stroke?
a.stroke:null;this.g=null!=a.zIndex?a.zIndex instanceof T?a.zIndex:new U(a.zIndex):new U(vs)}E(ps,Ql);ps.prototype.Va=function(a){var b;a instanceof N&&(b=a,b.D());a=W(this.e,b);var c=W(this.b,b),d=Number(W(this.c,b)),e=W(this.d,b),f=W(this.G,b),g=Number(W(this.f,b)),k,l,n;null!==this.a&&(k=W(this.a.a,b),l=Number(W(this.a.b,b)),n=Number(W(this.a.c,b)));b=Number(W(this.g,b));return new mm({color:a,fontFamily:c,fontSize:d,fontWeight:e,text:f,opacity:g,strokeColor:k,U:l,da:n,zIndex:b})};
var qs="#000",rs="sans-serif",ss=10,ts="normal",us=1,vs=0;function ws(a){null!=a&&(a.html=a.html,a.tileRanges=a.tileRanges);eb.call(this,a)}E(ws,eb);C("ol.Attribution",ws);C("ol.Collection",M);M.prototype.clear=M.prototype.clear;M.prototype.extend=M.prototype.Df;M.prototype.forEach=M.prototype.forEach;M.prototype.getArray=M.prototype.Ef;M.prototype.getAt=M.prototype.Ce;M.prototype.getLength=M.prototype.uc;M.prototype.insertAt=M.prototype.Bc;M.prototype.pop=M.prototype.pop;M.prototype.push=M.prototype.push;M.prototype.remove=M.prototype.remove;
M.prototype.removeAt=M.prototype.md;M.prototype.setAt=M.prototype.Sf;bd.prototype.getElement=bd.prototype.b;function xs(a){null!=a&&(a.tracking=a.tracking);jd.call(this,a)}E(xs,jd);C("ol.DeviceOrientation",xs);C("ol.DeviceOrientation.SUPPORTED",kd);C("ol.Feature",N);N.prototype.getAttributes=N.prototype.jb;N.prototype.getGeometry=N.prototype.D;N.prototype.getId=N.prototype.Ge;N.prototype.set=N.prototype.k;N.prototype.setGeometry=N.prototype.Aa;
function ys(a){null!=a&&(a.projection=a.projection,a.tracking=a.tracking,a.trackingOptions=a.trackingOptions);O.call(this,a)}E(ys,O);C("ol.Geolocation",ys);C("ol.Geolocation.SUPPORTED",we);ye.prototype.getImage=ye.prototype.ca;C("ol.Kinetic",kf);function zs(a){null!=a&&(a.controls=a.controls,a.interactions=a.interactions,a.layers=a.layers,a.overlays=a.overlays,a.renderer=a.renderer,a.renderers=a.renderers,a.target=a.target,a.view=a.view);X.call(this,a)}E(zs,X);C("ol.Map",zs);
X.prototype.addControl=X.prototype.ue;X.prototype.addLayer=X.prototype.ud;X.prototype.addOverlay=X.prototype.ve;X.prototype.beforeRender=X.prototype.Ba;X.prototype.getControls=X.prototype.Ee;X.prototype.getEventCoordinate=X.prototype.Fd;X.prototype.getEventPixel=X.prototype.Yc;X.prototype.getFeatureInfo=X.prototype.Fe;X.prototype.getFeatures=X.prototype.Gd;X.prototype.getInteractions=X.prototype.He;X.prototype.getLayers=X.prototype.pe;X.prototype.getOverlays=X.prototype.Je;
X.prototype.getRenderer=X.prototype.Ke;X.prototype.getViewport=X.prototype.Ne;X.prototype.removeControl=X.prototype.Mf;X.prototype.removeLayer=X.prototype.de;X.prototype.removeOverlay=X.prototype.Nf;X.prototype.updateSize=X.prototype.ia;gi.prototype.getCoordinate=gi.prototype.d;gi.prototype.getPixel=gi.prototype.e;gi.prototype.preventDefault=gi.prototype.T;gi.prototype.stopPropagation=gi.prototype.nb;C("ol.Object",K);K.prototype.bindTo=K.prototype.we;K.prototype.get=K.prototype.get;
K.prototype.notify=K.prototype.Vd;K.prototype.on=K.prototype.Hf;K.prototype.once=K.prototype.Jf;K.prototype.set=K.prototype.k;K.prototype.setValues=K.prototype.Xb;K.prototype.un=K.prototype.Zf;K.prototype.unByKey=K.prototype.$f;K.prototype.unbind=K.prototype.pd;K.prototype.unbindAll=K.prototype.ag;function As(a){null!=a&&(a.element=a.element,a.position=a.position,a.positioning=a.positioning,a.stopEvent=a.stopEvent);So.call(this,a)}E(As,So);C("ol.Overlay",As);C("ol.OverlayPositioning",Ro);
Ro.BOTTOM_CENTER="bottom-center";Ro.BOTTOM_LEFT="bottom-left";Ro.BOTTOM_RIGHT="bottom-right";Ro.CENTER_CENTER="center-center";Ro.CENTER_LEFT="center-left";Ro.CENTER_RIGHT="center-right";Ro.TOP_CENTER="top-center";Ro.TOP_LEFT="top-left";Ro.TOP_RIGHT="top-right";C("ol.RendererHint",Oo);Oo.CANVAS="canvas";Oo.DOM="dom";Oo.WEBGL="webgl";C("ol.RendererHints",No);No.createFromQueryData=No.ze;xe.prototype.getTileCoord=xe.prototype.f;Za.prototype.getZXY=Za.prototype.a;
function Bs(a){null!=a&&(a.center=a.center,a.extent=a.extent,a.maxResolution=a.maxResolution,a.maxZoom=a.maxZoom,a.projection=a.projection,a.resolution=a.resolution,a.resolutions=a.resolutions,a.rotation=a.rotation,a.zoom=a.zoom,a.zoomFactor=a.zoomFactor);R.call(this,a)}E(Bs,R);C("ol.View2D",Bs);R.prototype.calculateExtent=R.prototype.g;R.prototype.constrainResolution=R.prototype.Ca;R.prototype.constrainRotation=R.prototype.ic;R.prototype.fitExtent=R.prototype.Xc;R.prototype.getView2D=R.prototype.O;
R.prototype.getZoom=R.prototype.Oe;R.prototype.setZoom=R.prototype.o;C("ol.animation.bounce",function(a){null!=a&&(a.duration=a.duration,a.easing=a.easing,a.resolution=a.resolution,a.start=a.start);return ff(a)});C("ol.animation.pan",function(a){null!=a&&(a.duration=a.duration,a.easing=a.easing,a.source=a.source,a.start=a.start);return gf(a)});C("ol.animation.rotate",function(a){null!=a&&(a.duration=a.duration,a.easing=a.easing,a.rotation=a.rotation,a.start=a.start);return hf(a)});
C("ol.animation.zoom",function(a){null!=a&&(a.duration=a.duration,a.easing=a.easing,a.resolution=a.resolution,a.start=a.start);return jf(a)});function Cs(a){null!=a&&(a.className=a.className,a.target=a.target);Fi.call(this,a)}E(Cs,Fi);C("ol.control.Attribution",Cs);Fi.prototype.setMap=Fi.prototype.setMap;function Ds(a){null!=a&&(a.element=a.element,a.target=a.target);Ei.call(this,a)}E(Ds,Ei);C("ol.control.Control",Ds);Ei.prototype.getMap=Ei.prototype.W;Ei.prototype.setMap=Ei.prototype.setMap;
function Es(a){null!=a&&(a.className=a.className,a.keys=a.keys,a.target=a.target);$o.call(this,a)}E(Es,$o);C("ol.control.FullScreen",Es);function Fs(a){null!=a&&(a.className=a.className,a.target=a.target);Gi.call(this,a)}E(Fs,Gi);C("ol.control.Logo",Fs);Gi.prototype.setMap=Gi.prototype.setMap;function Gs(a){null!=a&&(a.className=a.className,a.coordinateFormat=a.coordinateFormat,a.projection=a.projection,a.target=a.target,a.undefinedHTML=a.undefinedHTML);ap.call(this,a)}E(Gs,ap);
C("ol.control.MousePosition",Gs);ap.prototype.setMap=ap.prototype.setMap;function Hs(a){null!=a&&(a.className=a.className,a.minWidth=a.minWidth,a.target=a.target,a.units=a.units);dp.call(this,a)}E(Hs,dp);C("ol.control.ScaleLine",Hs);dp.prototype.setMap=dp.prototype.setMap;C("ol.control.ScaleLineUnits",cp);cp.DEGREES="degrees";cp.IMPERIAL="imperial";cp.METRIC="metric";cp.NAUTICAL="nautical";cp.US="us";
function Is(a){null!=a&&(a.className=a.className,a.delta=a.delta,a.duration=a.duration,a.target=a.target);Hi.call(this,a)}E(Is,Hi);C("ol.control.Zoom",Is);Hi.prototype.setMap=Hi.prototype.setMap;function Js(a){null!=a&&(a.className=a.className,a.maxResolution=a.maxResolution,a.minResolution=a.minResolution);sp.call(this,a)}E(Js,sp);C("ol.control.ZoomSlider",Js);function Ks(a){null!=a&&(a.className=a.className,a.extent=a.extent,a.target=a.target);up.call(this,a)}E(Ks,up);
C("ol.control.ZoomToExtent",Ks);
C("ol.control.defaults",function(a){if(null!=a){a.attribution=a.attribution;var b=a.attributionOptions;null!=a.attributionOptions&&(b.className=a.attributionOptions.className,b.target=a.attributionOptions.target);a.attributionOptions=b;a.logo=a.logo;b=a.logoOptions;null!=a.logoOptions&&(b.className=a.logoOptions.className,b.target=a.logoOptions.target);a.logoOptions=b;a.zoom=a.zoom;b=a.zoomOptions;null!=a.zoomOptions&&(b.className=a.zoomOptions.className,b.delta=a.zoomOptions.delta,b.duration=a.zoomOptions.duration,
b.target=a.zoomOptions.target);a.zoomOptions=b}return Ii(a)});C("ol.coordinate.createStringXY",function(a){return function(b){return pd(b,a)}});C("ol.coordinate.fromProjectedArray",qd);C("ol.coordinate.toStringHDMS",function(a){return r(a)?md(a[1],"NS")+" "+md(a[0],"EW"):""});C("ol.coordinate.toStringXY",pd);C("ol.dom.Input",vp);
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",bf);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",cf);C("ol.easing.linear",df);C("ol.easing.upAndDown",ef);C("ol.expr.parse",function(a){return Jl(a)});
C("ol.expr.register",function(a,b){Nl[a]=b});C("ol.extent.boundingExtent",rd);C("ol.extent.containsCoordinate",wd);C("ol.extent.containsExtent",xd);C("ol.extent.equals",yd);C("ol.extent.extend",zd);C("ol.extent.getBottomLeft",Ad);C("ol.extent.getBottomRight",function(a){return[a[2],a[1]]});C("ol.extent.getCenter",Bd);C("ol.extent.getHeight",function(a){return a[3]-a[1]});C("ol.extent.getSize",function(a){return[a[2]-a[0],a[3]-a[1]]});C("ol.extent.getTopLeft",Dd);
C("ol.extent.getTopRight",function(a){return[a[2],a[3]]});C("ol.extent.getWidth",function(a){return a[2]-a[0]});C("ol.extent.intersects",Ed);C("ol.extent.isEmpty",function(a){return a[2]<a[0]||a[3]<a[1]});C("ol.extent.transform",Gd);C("ol.geom.Geometry",Hd);C("ol.geom.GeometryType",Jd);Jd.GEOMETRYCOLLECTION="geometrycollection";Jd.LINEARRING="linearring";Jd.LINESTRING="linestring";Jd.MULTILINESTRING="multilinestring";Jd.MULTIPOINT="multipoint";Jd.MULTIPOLYGON="multipolygon";Jd.POINT="point";
Jd.POLYGON="polygon";C("ol.geom.LineString",Fm);Fm.prototype.getCoordinates=Fm.prototype.p;C("ol.geom.MultiLineString",Gm);Gm.prototype.getCoordinates=Gm.prototype.p;C("ol.geom.MultiPoint",Im);Im.prototype.getCoordinates=Im.prototype.p;C("ol.geom.MultiPolygon",Mm);Mm.prototype.getCoordinates=Mm.prototype.p;C("ol.geom.Point",Hm);Hm.prototype.getCoordinates=Hm.prototype.p;C("ol.geom.Polygon",Lm);Lm.prototype.getCoordinates=Lm.prototype.p;C("ol.geom2.LineStringCollection",un);
C("ol.geom2.LineStringCollection.pack",function(a,b,c){var d=a.length;c=r(c)?c:0<d?a[0][0].length:2;var e;if(r(b))e=b;else for(b=e=0;b<d;++b)e+=a[b].length;var f=Array(e*c);e={};var g=0,k;for(b=0;b<d;++b)k=g,g=mn(f,g,a[b],c),e[k+""]=g;a=new sn(f,g);return new un(a,e,c)});C("ol.geom2.PointCollection",vn);C("ol.geom2.PointCollection.createEmpty",function(a,b){var c=r(b)?b:2,d=new sn(Array(a*c),0);return new vn(d,c)});
C("ol.geom2.PointCollection.pack",function(a,b,c){var d=a.length;c=r(c)?c:0<d?a[0].length:2;b=Array(r(b)?b:d*c);mn(b,0,a,c);a=new sn(b,d*c);return new vn(a,c)});vn.prototype.add=vn.prototype.add;C("ol.inherits",E);function Ls(a){null!=a&&(a.delta=a.delta,a.duration=a.duration);Oi.call(this,a)}E(Ls,Oi);C("ol.interaction.DoubleClickZoom",Ls);function Ms(a){null!=a&&(a.condition=a.condition,a.kinetic=a.kinetic);Vi.call(this,a)}E(Ms,Vi);C("ol.interaction.DragPan",Ms);
function Ns(a){null!=a&&(a.condition=a.condition);Zi.call(this,a)}E(Ns,Zi);C("ol.interaction.DragRotate",Ns);function Os(a){null!=a&&(a.condition=a.condition);xp.call(this,a)}E(Os,xp);C("ol.interaction.DragRotateAndZoom",Os);function Ps(a){null!=a&&(a.condition=a.condition);aj.call(this,a)}E(Ps,aj);C("ol.interaction.DragZoom",Ps);function Qs(a){null!=a&&(a.condition=a.condition,a.pixelDelta=a.pixelDelta);bj.call(this,a)}E(Qs,bj);C("ol.interaction.KeyboardPan",Qs);
function Rs(a){null!=a&&(a.condition=a.condition,a.delta=a.delta,a.duration=a.duration);cj.call(this,a)}E(Rs,cj);C("ol.interaction.KeyboardZoom",Rs);C("ol.interaction.MouseWheelZoom",dj);function Ss(a){null!=a&&(a.addCondition=a.addCondition,a.condition=a.condition,a.layerFilter=a.layerFilter);yp.call(this,a)}E(Ss,yp);C("ol.interaction.Select",Ss);function Ts(a){null!=a&&(a.kinetic=a.kinetic);gj.call(this,a)}E(Ts,gj);C("ol.interaction.TouchPan",Ts);
function Us(a){null!=a&&(a.threshold=a.threshold);hj.call(this,a)}E(Us,hj);C("ol.interaction.TouchRotate",Us);C("ol.interaction.TouchZoom",ij);C("ol.interaction.condition.altKeyOnly",function(a){a=a.a;return a.sa&&!a.Fb&&!a.Oa});C("ol.interaction.condition.altShiftKeysOnly",Pi);C("ol.interaction.condition.always",gg);C("ol.interaction.condition.noModifierKeys",Ri);C("ol.interaction.condition.platformModifierKeyOnly",function(a){a=a.a;return!a.sa&&a.Fb&&!a.Oa});
C("ol.interaction.condition.shiftKeyOnly",Si);C("ol.interaction.condition.targetNotEditable",Ti);C("ol.interaction.defaults",function(a){null!=a&&(a.altShiftDragRotate=a.altShiftDragRotate,a.doubleClickZoom=a.doubleClickZoom,a.dragPan=a.dragPan,a.keyboard=a.keyboard,a.mouseWheelZoom=a.mouseWheelZoom,a.shiftDragZoom=a.shiftDragZoom,a.touchPan=a.touchPan,a.touchRotate=a.touchRotate,a.touchZoom=a.touchZoom,a.zoomDelta=a.zoomDelta,a.zoomDuration=a.zoomDuration);return jj(a)});
function Vs(a){null!=a&&(a.brightness=a.brightness,a.contrast=a.contrast,a.hue=a.hue,a.layers=a.layers,a.maxResolution=a.maxResolution,a.minResolution=a.minResolution,a.opacity=a.opacity,a.saturation=a.saturation,a.visible=a.visible);kj.call(this,a)}E(Vs,kj);C("ol.layer.Group",Vs);
function Ws(a){null!=a&&(a.brightness=a.brightness,a.contrast=a.contrast,a.hue=a.hue,a.maxResolution=a.maxResolution,a.minResolution=a.minResolution,a.opacity=a.opacity,a.saturation=a.saturation,a.source=a.source,a.visible=a.visible);Ze.call(this,a)}E(Ws,Bk);C("ol.layer.Image",Ws);C("ol.layer.Layer",Ze);Ze.prototype.getSource=Ze.prototype.ja;
function Xs(a){null!=a&&(a.brightness=a.brightness,a.contrast=a.contrast,a.hue=a.hue,a.maxResolution=a.maxResolution,a.minResolution=a.minResolution,a.opacity=a.opacity,a.preload=a.preload,a.saturation=a.saturation,a.source=a.source,a.visible=a.visible);Ck.call(this,a)}E(Xs,Ck);C("ol.layer.Tile",Xs);
function Ys(a){null!=a&&(a.maxResolution=a.maxResolution,a.minResolution=a.minResolution,a.opacity=a.opacity,a.source=a.source,a.style=a.style,a.transformFeatureInfo=a.transformFeatureInfo,a.visible=a.visible);om.call(this,a)}E(Ys,om);C("ol.layer.Vector",Ys);C("ol.layer.Vector2",xn);C("ol.parser.GPX",Ep);C("ol.parser.GeoJSON",Gp);C("ol.parser.KML",sq);C("ol.parser.TopoJSON",xq);C("ol.parser.WKT",Dq);Dq.read=function(a){return Dq.ra().P(a)};Dq.write=function(a){return Dq.ra().write(a)};
Dq.prototype.read=Dq.prototype.P;Dq.prototype.write=Dq.prototype.write;C("ol.parser.ogc.GML_v2",Oq);Oq.prototype.read=Oq.prototype.P;Oq.prototype.write=Oq.prototype.write;C("ol.parser.ogc.GML_v3",Pq);Pq.prototype.read=Pq.prototype.P;Pq.prototype.write=Pq.prototype.write;C("ol.parser.ogc.WMSCapabilities",$q);$q.prototype.read=$q.prototype.P;C("ol.parser.ogc.WMTSCapabilities",dr);dr.prototype.read=dr.prototype.P;
function Zs(a){null!=a&&(a.axisOrientation=a.axisOrientation,a.code=a.code,a.extent=a.extent,a.global=a.global,a.units=a.units);Rd.call(this,a)}E(Zs,Rd);C("ol.proj.Projection",Zs);Rd.prototype.getExtent=Rd.prototype.ba;C("ol.proj.Units",Pd);Pd.DEGREES="degrees";Pd.FEET="ft";Pd.METERS="m";C("ol.proj.addProjection",re);C("ol.proj.common.add",rj);C("ol.proj.configureProj4jsProjection",function(a){return Vd(a)});C("ol.proj.get",te);C("ol.proj.getTransform",ue);
C("ol.proj.getTransformFromProjections",Ud);C("ol.proj.transform",function(a,b,c){return ue(b,c)(a)});C("ol.proj.transformWithProjections",function(a,b,c){return Ud(b,c)(a)});Wm.prototype.getCanvas=Wm.prototype.tc;function $s(a){null!=a&&(a.culture=a.culture,a.key=a.key,a.style=a.style,a.tileLoadFunction=a.tileLoadFunction);Br.call(this,a)}E($s,Br);C("ol.source.BingMaps",$s);
function at(a){null!=a&&(a.attributions=a.attributions,a.crossOrigin=a.crossOrigin,a.extent=a.extent,a.imageExtent=a.imageExtent,a.imageSize=a.imageSize,a.projection=a.projection,a.url=a.url);Cr.call(this,a)}E(at,Cr);C("ol.source.ImageStatic",at);function bt(a){null!=a&&(a.attributions=a.attributions,a.crossOrigin=a.crossOrigin,a.extent=a.extent,a.params=a.params,a.projection=a.projection,a.ratio=a.ratio,a.resolutions=a.resolutions,a.url=a.url);Hr.call(this,a)}E(bt,Hr);C("ol.source.ImageWMS",bt);
Hr.prototype.getParams=Hr.prototype.r;Hr.prototype.updateParams=Hr.prototype.s;C("ol.source.MapQuestOSM",Nr);C("ol.source.MapQuestOpenAerial",Or);C("ol.source.OSM",Jr);Jr.DATA_ATTRIBUTION=Lr;Jr.TILE_ATTRIBUTION=Mr;Ve.prototype.getExtent=Ve.prototype.ba;function ct(a){null!=a&&(a.layer=a.layer,a.maxZoom=a.maxZoom,a.minZoom=a.minZoom,a.opaque=a.opaque,a.tileLoadFunction=a.tileLoadFunction,a.url=a.url);Rr.call(this,a)}E(ct,Rr);C("ol.source.Stamen",ct);C("ol.source.Tile",gk);
gk.prototype.getTileGrid=gk.prototype.Le;function dt(a){null!=a&&(a.extent=a.extent,a.projection=a.projection,a.tileGrid=a.tileGrid);Ur.call(this,a)}E(dt,Ur);C("ol.source.TileDebug",dt);function et(a){null!=a&&(a.crossOrigin=a.crossOrigin,a.tileLoadFunction=a.tileLoadFunction,a.url=a.url);Wr.call(this,a)}E(et,Wr);C("ol.source.TileJSON",et);
function ft(a){null!=a&&(a.attributions=a.attributions,a.crossOrigin=a.crossOrigin,a.extent=a.extent,a.logo=a.logo,a.maxZoom=a.maxZoom,a.params=a.params,a.projection=a.projection,a.tileGrid=a.tileGrid,a.tileLoadFunction=a.tileLoadFunction,a.url=a.url,a.urls=a.urls);Xr.call(this,a)}E(ft,Xr);C("ol.source.TileWMS",ft);Xr.prototype.getParams=Xr.prototype.s;Xr.prototype.updateParams=Xr.prototype.v;
function gt(a){null!=a&&(a.attributions=a.attributions,a.data=a.data,a.extent=a.extent,a.logo=a.logo,a.parser=a.parser,a.projection=a.projection,a.url=a.url);$k.call(this,a)}E(gt,$k);C("ol.source.Vector",gt);C("ol.source.Vector2",wn);C("ol.source.WMSGetFeatureInfoMethod",{Gg:"iframe",lh:"xhr_get"});
function ht(a){null!=a&&(a.attributions=a.attributions,a.crossOrigin=a.crossOrigin,a.dimensions=a.dimensions,a.extent=a.extent,a.format=a.format,a.layer=a.layer,a.logo=a.logo,a.matrixSet=a.matrixSet,a.maxZoom=a.maxZoom,a.projection=a.projection,a.requestEncoding=a.requestEncoding,a.style=a.style,a.tileGrid=a.tileGrid,a.tileLoadFunction=a.tileLoadFunction,a.url=a.url,a.urls=a.urls,a.version=a.version);ns.call(this,a)}E(ht,ns);C("ol.source.WMTS",ht);
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={};Ja(c.dimensions,function(a){var b=a.identifier,c=a["default"];r(c)||(c=a.values[0]);g[b]=c});var k=a.contents.tileMatrixSets[d],l=ls(k),k=te(k.supportedCRS),n=a.operationsMetadata.GetTile.dcp.http.get,q,s;switch(rc(n[0].constraints.GetEncoding.allowedValues)[0]){case "REST":case "RESTful":s=
"REST";q=c.resourceUrls.tile[e];break;case "KVP":s=ms,q=[],Ja(n,function(a){a.constraints.GetEncoding.allowedValues.hasOwnProperty(ms)&&q.push(a.url)})}return{urls:q,layer:b,matrixSet:d,format:e,projection:k,requestEncoding:s,tileGrid:l,style:f,dimensions:g}});ns.prototype.getDimensions=ns.prototype.n;ns.prototype.updateDimensions=ns.prototype.s;
function it(a){null!=a&&(a.attributions=a.attributions,a.crossOrigin=a.crossOrigin,a.extent=a.extent,a.logo=a.logo,a.maxZoom=a.maxZoom,a.minZoom=a.minZoom,a.projection=a.projection,a.tileLoadFunction=a.tileLoadFunction,a.tileUrlFunction=a.tileUrlFunction,a.url=a.url,a.urls=a.urls);Ir.call(this,a)}E(it,Ir);C("ol.source.XYZ",it);Ir.prototype.setUrl=Ir.prototype.b;function jt(a){null!=a&&(a.color=a.color,a.opacity=a.opacity,a.zIndex=a.zIndex);Rl.call(this,a)}E(jt,Rl);C("ol.style.Fill",jt);
function kt(a){null!=a&&(a.height=a.height,a.opacity=a.opacity,a.rotation=a.rotation,a.url=a.url,a.width=a.width,a.xOffset=a.xOffset,a.yOffset=a.yOffset,a.zIndex=a.zIndex);mq.call(this,a)}E(kt,mq);C("ol.style.Icon",kt);function lt(a){null!=a&&(a.filter=a.filter,a.maxResolution=a.maxResolution,a.minResolution=a.minResolution,a.symbolizers=a.symbolizers);Vl.call(this,a)}E(lt,Vl);C("ol.style.Rule",lt);
function mt(a){null!=a&&(a.fill=a.fill,a.size=a.size,a.stroke=a.stroke,a.type=a.type,a.zIndex=a.zIndex);fm.call(this,a)}E(mt,fm);C("ol.style.Shape",mt);C("ol.style.ShapeType",Yl);Yl.CIRCLE="circle";function nt(a){null!=a&&(a.color=a.color,a.opacity=a.opacity,a.width=a.width,a.zIndex=a.zIndex);am.call(this,a)}E(nt,am);C("ol.style.Stroke",nt);function ot(a){null!=a&&(a.rules=a.rules,a.symbolizers=a.symbolizers);jm.call(this,a)}E(ot,jm);C("ol.style.Style",ot);
function pt(a){null!=a&&(a.color=a.color,a.fontFamily=a.fontFamily,a.fontSize=a.fontSize,a.fontWeight=a.fontWeight,a.opacity=a.opacity,a.stroke=a.stroke,a.text=a.text,a.zIndex=a.zIndex);ps.call(this,a)}E(pt,ps);C("ol.style.Text",pt);function qt(a){null!=a&&(a.minZoom=a.minZoom,a.origin=a.origin,a.origins=a.origins,a.resolutions=a.resolutions,a.tileSize=a.tileSize,a.tileSizes=a.tileSizes);vj.call(this,a)}E(qt,vj);C("ol.tilegrid.TileGrid",qt);vj.prototype.getMinZoom=vj.prototype.Ie;
vj.prototype.getOrigin=vj.prototype.Eb;vj.prototype.getResolutions=vj.prototype.Ob;vj.prototype.getTileSize=vj.prototype.xa;function rt(a){null!=a&&(a.matrixIds=a.matrixIds,a.origin=a.origin,a.origins=a.origins,a.resolutions=a.resolutions,a.tileSize=a.tileSize,a.tileSizes=a.tileSizes);ks.call(this,a)}E(rt,ks);C("ol.tilegrid.WMTS",rt);ks.prototype.getMatrixIds=ks.prototype.g;function st(a){null!=a&&(a.maxZoom=a.maxZoom);zr.call(this,a)}E(st,zr);C("ol.tilegrid.XYZ",st);C("ol.webgl.SUPPORTED",jn);})();
@bored-engineer
Copy link

What was the source of this paste? I've got a obfuscated js file with similar chunks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment