planet-maps
Version:
Custom builds of OpenLayers 3
99 lines (96 loc) • 149 kB
JavaScript
// OpenLayers 3. See http://openlayers.org/
// License: https://raw.githubusercontent.com/openlayers/ol3/master/LICENSE.md
// Version: v5.0.1
(function (root, factory) {
if (typeof exports === "object") {
module.exports = factory();
} else if (typeof define === "function" && define.amd) {
define([], factory);
} else {
root.ol = factory();
}
}(this, function () {
var OPENLAYERS = {};
var l,da=this;function t(a,b,c){a=a.split(".");c=c||da;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]?c=c[d]:c=c[d]={}:c[d]=b}
function ea(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 ga(a){return"number"==typeof a}function ha(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ia(a){return a[ja]||(a[ja]=++ka)}var ja="closure_uid_"+(1E9*Math.random()>>>0),ka=0;function ma(a,b,c){return a.call.apply(a.bind,arguments)}
function na(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 oa(a,b,c){oa=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ma:na;return oa.apply(null,arguments)};function v(a,b){a.prototype=Object.create(b.prototype);a.prototype.constructor=a}function pa(){}var qa=Function("return this")();function ra(a,b,c){return Math.min(Math.max(a,b),c)}var sa=function(){var a;"cosh"in Math?a=Math.cosh:a=function(a){a=Math.exp(a);return(a+1/a)/2};return a}();function ta(a,b,c,d){a=c-a;b=d-b;return a*a+b*b}function ua(a,b){var c=a%b;return 0>c*b?c+b:c}function va(a,b,c){return a+c*(b-a)};function wa(a){return function(b){if(b)return[ra(b[0],a[0],a[2]),ra(b[1],a[1],a[3])]}}function xa(a){return a};function ya(a,b,c){this.center=a;this.resolution=b;this.rotation=c};var za="function"===typeof Object.assign?Object.assign:function(a,b){if(!a||!a)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(a),d=1,e=arguments.length;d<e;++d){var f=arguments[d];if(void 0!==f&&null!==f)for(var g in f)f.hasOwnProperty(g)&&(c[g]=f[g])}return c};function Aa(a){for(var b in a)delete a[b]}function Ba(a){for(var b in a)return!1;return!b};var Ca="olm_"+(1E4*Math.random()|0);function Da(a){function b(b){var d=a.listener,e=a.Kb||a.target;a.Nb&&Ea(a);return d.call(e,b)}return a.Lb=b}function Fa(a,b,c,d){for(var e,f=0,g=a.length;f<g;++f)if(e=a[f],e.listener===b&&e.Kb===c)return d&&(e.deleteIndex=f),e}function Ga(a,b){var c=a[Ca];return c?c[b]:void 0}function Ha(a){var b=a[Ca];b||(b=a[Ca]={});return b}
function Ja(a,b){var c=Ga(a,b);if(c){for(var d=0,e=c.length;d<e;++d)a.removeEventListener(b,c[d].Lb),Aa(c[d]);c.length=0;if(c=a[Ca])delete c[b],0===Object.keys(c).length&&delete a[Ca]}}function y(a,b,c,d,e){var f=Ha(a),g=f[b];g||(g=f[b]=[]);(f=Fa(g,c,d,!1))?e||(f.Nb=!1):(f={Kb:d,Nb:!!e,listener:c,target:a,type:b},a.addEventListener(b,Da(f)),g.push(f));return f}function Ka(a,b,c,d){(a=Ga(a,b))&&(c=Fa(a,c,d,!0))&&Ea(c)}
function Ea(a){if(a&&a.target){a.target.removeEventListener(a.type,a.Lb);var b=Ga(a.target,a.type);if(b){var c="deleteIndex"in a?a.deleteIndex:b.indexOf(a);-1!==c&&b.splice(c,1);0===b.length&&Ja(a.target,a.type)}Aa(a)}};function La(){}La.prototype.Ma=!1;function Ma(a){a.Ma||(a.Ma=!0,a.R())}La.prototype.R=pa;function Na(a,b){this.type=a;this.target=b||null}Na.prototype.preventDefault=Na.prototype.stopPropagation=function(){this.Re=!0};function Oa(a){a.stopPropagation()};function Pa(){this.ra={};this.na={};this.ga={}}v(Pa,La);Pa.prototype.addEventListener=function(a,b){var c=this.ga[a];c||(c=this.ga[a]=[]);-1===c.indexOf(b)&&c.push(b)};
Pa.prototype.g=function(a){var b="string"===typeof a?new Na(a):a;a=b.type;b.target=this;var c=this.ga[a],d;if(c){a in this.na||(this.na[a]=0,this.ra[a]=0);++this.na[a];for(var e=0,f=c.length;e<f;++e)if(!1===c[e].call(this,b)||b.Re){d=!1;break}--this.na[a];if(0===this.na[a]){b=this.ra[a];for(delete this.ra[a];b--;)this.removeEventListener(a,pa);delete this.na[a]}return d}};Pa.prototype.R=function(){var a=Ha(this),b;for(b in a)Ja(this,b)};
function Qa(a,b){return b?b in a.ga:0<Object.keys(a.ga).length}Pa.prototype.removeEventListener=function(a,b){var c=this.ga[a];if(c){var d=c.indexOf(b);a in this.ra?(c[d]=pa,++this.ra[a]):(c.splice(d,1),0===c.length&&delete this.ga[a])}};function Ra(){Pa.call(this);this.i=0}v(Ra,Pa);l=Ra.prototype;l.j=function(){++this.i;this.g("change")};l.S=function(){return this.i};l.T=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=y(this,a[f],b,c);return e}return y(this,a,b,c)};l.U=function(a,b,c){if(Array.isArray(a)){for(var d=a.length,e=Array(d),f=0;f<d;++f)e[f]=y(this,a[f],b,c,!0);return e}return y(this,a,b,c,!0)};
l.V=function(a,b,c){if(Array.isArray(a))for(var d=0,e=a.length;d<e;++d)Ka(this,a[d],b,c);else Ka(this,a,b,c)};l.W=function(a){if(Array.isArray(a))for(var b=0,c=a.length;b<c;++b)Ea(a[b]);else Ea(a)};function Sa(a,b,c){Na.call(this,a);this.key=b;this.oldValue=c}v(Sa,Na);function Ta(a){Ra.call(this);ia(this);this.v={};void 0!==a&&this.O(a)}v(Ta,Ra);var Ua={};function Va(a){return Ua.hasOwnProperty(a)?Ua[a]:Ua[a]="change:"+a}l=Ta.prototype;l.get=function(a){var b;this.v.hasOwnProperty(a)&&(b=this.v[a]);return b};l.Y=function(){return Object.keys(this.v)};l.Z=function(){return za({},this.v)};function Wa(a,b,c){var d;d=Va(b);a.g(new Sa(d,b,c));a.g(new Sa("propertychange",b,c))}
l.set=function(a,b,c){c?this.v[a]=b:(c=this.v[a],this.v[a]=b,c!==b&&Wa(this,a,c))};l.O=function(a,b){for(var c in a)this.set(c,a[c],b)};l.$=function(a,b){if(a in this.v){var c=this.v[a];delete this.v[a];b||Wa(this,a,c)}};function Xa(a,b){return a>b?1:a<b?-1:0}function Ya(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 Za(a,b){var c;c=ea(b);var d="array"==c||"object"==c&&"number"==typeof b.length?b:[b],e=d.length;for(c=0;c<e;c++)a[a.length]=d[c]}
function $a(a,b){var c=a.indexOf(b),d=-1<c;d&&a.splice(c,1);return d}function ab(a){var b=bb,c=a.length,d=Array(a.length),e;for(e=0;e<c;e++)d[e]={index:e,value:a[e]};d.sort(function(a,c){return b(a.value,c.value)||a.index-c.index});for(e=0;e<a.length;e++)a[e]=d[e].value};function cb(a){return function(b,c,d){if(void 0!==b)return b=Ya(a,b,d),b=ra(b+c,0,a.length-1),a[b]}}function db(a,b,c){return function(d,e,f){if(void 0!==d)return d=Math.max(Math.floor(Math.log(b/d)/Math.log(a)+(0<f?0:0>f?1:.5))+e,0),void 0!==c&&(d=Math.min(d,c)),b/Math.pow(a,d)}};function eb(a){if(void 0!==a)return 0}function fb(a,b){if(void 0!==a)return a+b}function gb(a){var b=2*Math.PI/a;return function(a,d){if(void 0!==a)return a=Math.floor((a+d)/b+.5)*b}}function hb(){var a=5*Math.PI/180;return function(b,c){if(void 0!==b)return Math.abs(b+c)<=a?0:b+c}};function ib(a,b){a[0]+=b[0];a[1]+=b[1]}function jb(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 kb(a){for(var b=mb(),c=0,d=a.length;c<d;++c)nb(b,a[c]);return b}function ob(a,b,c){b=b<a[0]?a[0]-b:a[2]<b?b-a[2]:0;a=c<a[1]?a[1]-c:a[3]<c?c-a[3]:0;return b*b+a*a}function pb(a,b){return qb(a,b[0],b[1])}function rb(a,b){return a[0]<=b[0]&&b[2]<=a[2]&&a[1]<=b[1]&&b[3]<=a[3]}function qb(a,b,c){return a[0]<=b&&b<=a[2]&&a[1]<=c&&c<=a[3]}function sb(a,b){var c=a[1],d=a[2],e=a[3],f=b[0],g=b[1],h=0;f<a[0]?h|=16:f>d&&(h|=4);g<c?h|=8:g>e&&(h|=2);0===h&&(h=1);return h}
function mb(){return[Infinity,Infinity,-Infinity,-Infinity]}function tb(a,b,c,d,e){return e?(e[0]=a,e[1]=b,e[2]=c,e[3]=d,e):[a,b,c,d]}function ub(a){return tb(Infinity,Infinity,-Infinity,-Infinity,a)}function vb(a,b){return a[0]==b[0]&&a[2]==b[2]&&a[1]==b[1]&&a[3]==b[3]}function wb(a,b){b[0]<a[0]&&(a[0]=b[0]);b[2]>a[2]&&(a[2]=b[2]);b[1]<a[1]&&(a[1]=b[1]);b[3]>a[3]&&(a[3]=b[3]);return a}function nb(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 xb(a,b,c,d,e){for(;c<d;c+=e){var f=a,g=b[c],h=b[c+1];f[0]=Math.min(f[0],g);f[1]=Math.min(f[1],h);f[2]=Math.max(f[2],g);f[3]=Math.max(f[3],h)}return a}function yb(a,b,c){var d;return(d=b.call(c,zb(a)))||(d=b.call(c,Ab(a)))||(d=b.call(c,Bb(a)))?d:(d=b.call(c,Cb(a)))?d:!1}function Db(a){var b=0;Eb(a)||(b=Fb(a)*Gb(a));return b}function zb(a){return[a[0],a[1]]}function Ab(a){return[a[2],a[1]]}function Hb(a){return[(a[0]+a[2])/2,(a[1]+a[3])/2]}
function Ib(a,b,c,d,e){var f=b*d[0]/2;d=b*d[1]/2;b=Math.cos(c);var g=Math.sin(c);c=f*b;f*=g;b*=d;var h=d*g,k=a[0],m=a[1];a=k-c+h;d=k-c-h;g=k+c-h;c=k+c+h;var h=m-f-b,k=m-f+b,n=m+f+b,f=m+f-b;return tb(Math.min(a,d,g,c),Math.min(h,k,n,f),Math.max(a,d,g,c),Math.max(h,k,n,f),e)}function Gb(a){return a[3]-a[1]}function Jb(a,b,c){c=c?c:mb();Kb(a,b)&&(c[0]=a[0]>b[0]?a[0]:b[0],c[1]=a[1]>b[1]?a[1]:b[1],c[2]=a[2]<b[2]?a[2]:b[2],c[3]=a[3]<b[3]?a[3]:b[3]);return c}function Cb(a){return[a[0],a[3]]}
function Bb(a){return[a[2],a[3]]}function Fb(a){return a[2]-a[0]}function Kb(a,b){return a[0]<=b[2]&&a[2]>=b[0]&&a[1]<=b[3]&&a[3]>=b[1]}function Eb(a){return a[2]<a[0]||a[3]<a[1]}function Lb(a,b,c){a=[a[0],a[1],a[0],a[3],a[2],a[1],a[2],a[3]];b(a,a,2);var d=[a[0],a[2],a[4],a[6]],e=[a[1],a[3],a[5],a[7]];b=Math.min.apply(null,d);a=Math.min.apply(null,e);d=Math.max.apply(null,d);e=Math.max.apply(null,e);return tb(b,a,d,e,c)};function Mb(){return!0}function Nb(){return!1};/*
Latitude/longitude spherical geodesy formulae taken from
http://www.movable-type.co.uk/scripts/latlong.html
Licensed under CC-BY-3.0.
*/
function Ob(a){this.radius=a}function Pb(a,b){var c=a[1]*Math.PI/180,d=b[1]*Math.PI/180,e=(d-c)/2,f=(b[0]-a[0])*Math.PI/180/2,c=Math.sin(e)*Math.sin(e)+Math.sin(f)*Math.sin(f)*Math.cos(c)*Math.cos(d);return 2*Qb.radius*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}
Ob.prototype.offset=function(a,b,c){var d=a[1]*Math.PI/180;b/=this.radius;var e=Math.asin(Math.sin(d)*Math.cos(b)+Math.cos(d)*Math.sin(b)*Math.cos(c));return[180*(a[0]*Math.PI/180+Math.atan2(Math.sin(c)*Math.sin(b)*Math.cos(d),Math.cos(b)-Math.sin(d)*Math.sin(e)))/Math.PI,180*e/Math.PI]};var Qb=new Ob(6370997);var Rb={};Rb.degrees=2*Math.PI*Qb.radius/360;Rb.ft=.3048;Rb.m=1;Rb["us-ft"]=1200/3937;function z(a){this.a=a.code;this.i=a.units;this.f=void 0!==a.extent?a.extent:null;this.v=void 0!==a.worldExtent?a.worldExtent:null;this.b=void 0!==a.global?a.global:!1;this.g=!(!this.b||!this.f);this.h=void 0!==a.getPointResolution?a.getPointResolution:this.vd;this.c=null;this.l=a.metersPerUnit}l=z.prototype;l.ad=function(){return this.a};l.u=function(){return this.f};l.Dd=function(){return this.i};
l.Ga=function(){return this.l||Rb[this.i]};l.Fd=function(){return this.v};l.$d=function(){return this.b};l.cf=function(a){this.b=a;this.g=!(!a||!this.f)};l.Ie=function(a){this.f=a;this.g=!(!this.b||!a)};l.mf=function(a){this.v=a};l.bf=function(a){this.h=a};
l.vd=function(a,b){if("degrees"==this.i)return a;var c=Sb(this,Tb("EPSG:4326")),d=[b[0]-a/2,b[1],b[0]+a/2,b[1],b[0],b[1]-a/2,b[0],b[1]+a/2],d=c(d,d,2),c=(Pb(d.slice(0,2),d.slice(2,4))+Pb(d.slice(4,6),d.slice(6,8)))/2,d=this.Ga();void 0!==d&&(c/=d);return c};l.getPointResolution=function(a,b){return this.h(a,b)};var Ub={},Vb={};function Wb(a){Xb(a);a.forEach(function(b){a.forEach(function(a){b!==a&&Yb(b,a,Zb)})})}
function $b(){var a=ac,b=bc,c=cc;dc.forEach(function(d){a.forEach(function(a){Yb(d,a,b);Yb(a,d,c)})})}function ec(a){Ub[a.a]=a;Yb(a,a,Zb)}function Xb(a){var b=[];a.forEach(function(a){b.push(ec(a))})}function fc(a){return a?"string"===typeof a?Tb(a):a:Tb("EPSG:3857")}function Yb(a,b,c){a=a.a;b=b.a;a in Vb||(Vb[a]={});Vb[a][b]=c}
function gc(a){return function(b,c,d){var e=b.length;d=void 0!==d?d:2;c=void 0!==c?c:Array(e);var f,g;for(g=0;g<e;g+=d)for(f=a([b[g],b[g+1]]),c[g]=f[0],c[g+1]=f[1],f=d-1;2<=f;--f)c[g+f]=b[g+f];return c}}function Tb(a){var b;a instanceof z?b=a:"string"===typeof a?b=Ub[a]:b=null;return b}function hc(a,b){if(a===b)return!0;var c=a.i===b.i;return a.a===b.a?c:Sb(a,b)===Zb&&c}function ic(a,b){var c=Tb(a),d=Tb(b);return Sb(c,d)}
function Sb(a,b){var c=a.a,d=b.a,e;c in Vb&&d in Vb[c]&&(e=Vb[c][d]);void 0===e&&(e=jc);return e}function jc(a,b){if(void 0!==b&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}function Zb(a,b){var c;if(void 0!==b){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c}function kc(a,b,c){return ic(b,c)(a,void 0,a.length)};function A(){Ta.call(this);this.D=mb();this.I=-1;this.l={};this.B=this.s=0}v(A,Ta);l=A.prototype;l.ia=function(a,b){var c=b?b:[NaN,NaN];this.oa(a[0],a[1],c,Infinity);return c};l.Qc=function(a){return this.Ba(a[0],a[1])};l.Ba=Nb;l.u=function(a){this.I!=this.i&&(this.D=this.Za(this.D),this.I=this.i);var b=this.D;a?(a[0]=b[0],a[1]=b[1],a[2]=b[2],a[3]=b[3]):a=b;return a};l.la=function(a){return this.rb(a*a)};l.ka=function(a,b){this.Ra(ic(a,b));return this};function lc(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}lc.prototype.BYTES_PER_ELEMENT=4;lc.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};lc.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(lc.BYTES_PER_ELEMENT=4,lc.prototype.BYTES_PER_ELEMENT=lc.prototype.BYTES_PER_ELEMENT,lc.prototype.set=lc.prototype.set,lc.prototype.toString=lc.prototype.toString,t("Float32Array",lc,void 0));function mc(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}mc.prototype.BYTES_PER_ELEMENT=8;mc.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};mc.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{mc.BYTES_PER_ELEMENT=8}catch(a){}mc.prototype.BYTES_PER_ELEMENT=mc.prototype.BYTES_PER_ELEMENT;mc.prototype.set=mc.prototype.set;mc.prototype.toString=mc.prototype.toString;t("Float64Array",mc,void 0)};function nc(){var a=Array(16);a[0]=0;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=0;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=0;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=0;return a}function oc(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}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function pc(a,b,c,d,e,f){var g=e[0],h=e[1],k=e[4],m=e[5],n=e[12];e=e[13];for(var p=f?f:[],q=0;b<c;b+=d){var u=a[b],w=a[b+1];p[q++]=g*u+k*w+n;p[q++]=h*u+m*w+e}f&&p.length!=q&&(p.length=q);return p};function B(){A.call(this);this.f="XY";this.b=2;this.a=null}v(B,A);function qc(a){if("XY"==a)return 2;if("XYZ"==a||"XYM"==a)return 3;if("XYZM"==a)return 4}l=B.prototype;l.Ba=Nb;l.Za=function(a){var b=this.a,c=this.a.length,d=this.b;a=ub(a);return xb(a,b,0,c,d)};l.ta=function(){return this.a.slice(0,this.b)};l.ua=function(){return this.a.slice(this.a.length-this.b)};l.va=function(){return this.f};
l.rb=function(a){this.B!=this.i&&(Aa(this.l),this.s=0,this.B=this.i);if(0>a||0!==this.s&&a<=this.s)return this;var b=a.toString();if(this.l.hasOwnProperty(b))return this.l[b];var c=this.Ha(a);if(c.a.length<this.a.length)return this.l[b]=c;this.s=a;return this};l.Ha=function(){return this};function rc(a,b,c){a.b=qc(b);a.f=b;a.a=c}function sc(a,b,c,d){if(b)c=qc(b);else{for(b=0;b<d;++b){if(0===c.length){a.f="XY";a.b=2;return}c=c[0]}c=c.length;b=2==c?"XY":3==c?"XYZ":4==c?"XYZM":void 0}a.f=b;a.b=c}
l.Ra=function(a){this.a&&(a(this.a,this.a,this.b),this.j())};l.rotate=function(a,b){var c=this.a;if(c){for(var d=c.length,e=this.b,f=c?c:[],g=Math.cos(a),h=Math.sin(a),k=b[0],m=b[1],n=0,p=0;p<d;p+=e){var q=c[p]-k,u=c[p+1]-m;f[n++]=k+q*g-u*h;f[n++]=m+q*h+u*g;for(q=p+2;q<p+e;++q)f[n++]=c[q]}c&&f.length!=n&&(f.length=n);this.j()}};
l.gb=function(a,b){var c=this.a;if(c){var d=c.length,e=this.b,f=c?c:[],g=0,h,k;for(h=0;h<d;h+=e)for(f[g++]=c[h]+a,f[g++]=c[h+1]+b,k=h+2;k<h+e;++k)f[g++]=c[k];c&&f.length!=g&&(f.length=g);this.j()}};function tc(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],k=a[b+1],e=e+(g*h-f*k),f=h,g=k;return e/2}function uc(a,b,c,d){var e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],e=e+tc(a,b,h,d);b=h}return e};function vc(a,b,c,d,e,f,g){var h=a[b],k=a[b+1],m=a[c]-h,n=a[c+1]-k;if(0!==m||0!==n)if(f=((e-h)*m+(f-k)*n)/(m*m+n*n),1<f)b=c;else if(0<f){for(e=0;e<d;++e)g[e]=va(a[b+e],a[c+e],f);g.length=d;return}for(e=0;e<d;++e)g[e]=a[b+e];g.length=d}function wc(a,b,c,d,e){var f=a[b],g=a[b+1];for(b+=d;b<c;b+=d){var h=a[b],k=a[b+1],f=ta(f,g,h,k);f>e&&(e=f);f=h;g=k}return e}function xc(a,b,c,d,e){var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f];e=wc(a,b,h,d,e);b=h}return e}
function yc(a,b,c,d,e,f,g,h,k,m,n){if(b==c)return m;var p;if(0===e){p=ta(g,h,a[b],a[b+1]);if(p<m){for(n=0;n<d;++n)k[n]=a[b+n];k.length=d;return p}return m}for(var q=n?n:[NaN,NaN],u=b+d;u<c;)if(vc(a,u-d,u,d,g,h,q),p=ta(g,h,q[0],q[1]),p<m){m=p;for(n=0;n<d;++n)k[n]=q[n];k.length=d;u+=d}else u+=d*Math.max((Math.sqrt(p)-Math.sqrt(m))/e|0,1);if(f&&(vc(a,c-d,b,d,g,h,q),p=ta(g,h,q[0],q[1]),p<m)){m=p;for(n=0;n<d;++n)k[n]=q[n];k.length=d}return m}
function zc(a,b,c,d,e,f,g,h,k,m,n){n=n?n:[NaN,NaN];var p,q;p=0;for(q=c.length;p<q;++p){var u=c[p];m=yc(a,b,u,d,e,f,g,h,k,m,n);b=u}return m};function Ac(a,b){var c=0,d,e;d=0;for(e=b.length;d<e;++d)a[c++]=b[d];return c}function Bc(a,b,c,d){var e,f;e=0;for(f=c.length;e<f;++e){var g=c[e],h;for(h=0;h<d;++h)a[b++]=g[h]}return b}function Cc(a,b,c,d,e){e=e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g)b=Bc(a,b,c[g],d),e[f++]=b;e.length=f;return e};function Dc(a,b,c,d,e){e=void 0!==e?e:[];for(var f=0;b<c;b+=d)e[f++]=a.slice(b,b+d);e.length=f;return e}function Ec(a,b,c,d,e){e=void 0!==e?e:[];var f=0,g,h;g=0;for(h=c.length;g<h;++g){var k=c[g];e[f++]=Dc(a,b,k,d,e[f]);b=k}e.length=f;return e};function Fc(a,b,c,d,e,f,g){var h=(c-b)/d;if(3>h){for(;b<c;b+=d)f[g++]=a[b],f[g++]=a[b+1];return g}var k=Array(h);k[0]=1;k[h-1]=1;c=[b,c-d];for(var m=0,n;0<c.length;){var p=c.pop(),q=c.pop(),u=0,w=a[q],x=a[q+1],r=a[p],S=a[p+1];for(n=q+d;n<p;n+=d){var P;P=a[n];var Q=a[n+1],O=w,Z=x,U=r-O,aa=S-Z;if(0!==U||0!==aa){var T=((P-O)*U+(Q-Z)*aa)/(U*U+aa*aa);1<T?(O=r,Z=S):0<T&&(O+=U*T,Z+=aa*T)}P=ta(P,Q,O,Z);P>u&&(m=n,u=P)}u>e&&(k[(m-b)/d]=1,q+d<m&&c.push(q,m),m+d<p&&c.push(m,p))}for(n=0;n<h;++n)k[n]&&(f[g++]=
a[b+n*d],f[g++]=a[b+n*d+1]);return g}
function Gc(a,b,c,d,e,f,g,h){var k,m;k=0;for(m=c.length;k<m;++k){var n=c[k];a:{var p=a,q=n,u=d,w=e,x=f;if(b!=q){var r=w*Math.round(p[b]/w),S=w*Math.round(p[b+1]/w);b+=u;x[g++]=r;x[g++]=S;var P,Q;do if(P=w*Math.round(p[b]/w),Q=w*Math.round(p[b+1]/w),b+=u,b==q){x[g++]=P;x[g++]=Q;break a}while(P==r&&Q==S);for(;b<q;){var O,Z;O=w*Math.round(p[b]/w);Z=w*Math.round(p[b+1]/w);b+=u;if(O!=P||Z!=Q){var U=P-r,aa=Q-S,T=O-r,L=Z-S;U*L==aa*T&&(0>U&&T<U||U==T||0<U&&T>U)&&(0>aa&&L<aa||aa==L||0<aa&&L>aa)||(x[g++]=P,
x[g++]=Q,r=P,S=Q);P=O;Q=Z}}x[g++]=P;x[g++]=Q}}h.push(g);b=n}return g};function C(a,b){B.call(this);this.c=this.o=-1;this.M(a,b)}v(C,B);l=C.prototype;l.clone=function(){var a=new C(null);rc(a,this.f,this.a.slice());a.j();return a};l.oa=function(a,b,c,d){if(d<ob(this.u(),a,b))return d;this.c!=this.i&&(this.o=Math.sqrt(wc(this.a,0,this.a.length,this.b,0)),this.c=this.i);return yc(this.a,0,this.a.length,this.b,this.o,!0,a,b,c,d)};l.Ae=function(){return tc(this.a,0,this.a.length,this.b)};l.ea=function(){return Dc(this.a,0,this.a.length,this.b)};
l.Ha=function(a){var b=[];b.length=Fc(this.a,0,this.a.length,this.b,a,b,0);a=new C(null);rc(a,"XY",b);a.j();return a};l.P=function(){return"LinearRing"};l.M=function(a,b){a?(sc(this,b,a,1),this.a||(this.a=[]),this.a.length=Bc(this.a,0,a,this.b)):rc(this,"XY",null);this.j()};function D(a,b){B.call(this);this.M(a,b)}v(D,B);l=D.prototype;l.clone=function(){var a=new D(null);rc(a,this.f,this.a.slice());a.j();return a};l.oa=function(a,b,c,d){var e=this.a;a=ta(a,b,e[0],e[1]);if(a<d){d=this.b;for(b=0;b<d;++b)c[b]=e[b];c.length=d;return a}return d};l.ea=function(){return this.a?this.a.slice():[]};l.Za=function(a){var b=this.a,c=b[0],b=b[1];return tb(c,b,c,b,a)};l.P=function(){return"Point"};l.X=function(a){return qb(a,this.a[0],this.a[1])};
l.M=function(a,b){a?(sc(this,b,a,0),this.a||(this.a=[]),this.a.length=Ac(this.a,a)):rc(this,"XY",null);this.j()};function Hc(a,b,c,d,e){return!yb(e,function(e){return!Ic(a,b,c,d,e[0],e[1])})}function Ic(a,b,c,d,e,f){for(var g=!1,h=a[c-d],k=a[c-d+1];b<c;b+=d){var m=a[b],n=a[b+1];k>f!=n>f&&e<(m-h)*(f-k)/(n-k)+h&&(g=!g);h=m;k=n}return g}function Jc(a,b,c,d,e,f){if(0===c.length||!Ic(a,b,c[0],d,e,f))return!1;var g;b=1;for(g=c.length;b<g;++b)if(Ic(a,c[b-1],c[b],d,e,f))return!1;return!0};function Kc(a,b,c,d,e,f,g){var h,k,m,n,p,q=e[f+1],u=[],w=c[0];m=a[w-d];p=a[w-d+1];for(h=b;h<w;h+=d){n=a[h];k=a[h+1];if(q<=p&&k<=q||p<=q&&q<=k)m=(q-p)/(k-p)*(n-m)+m,u.push(m);m=n;p=k}w=NaN;p=-Infinity;u.sort(Xa);m=u[0];h=1;for(k=u.length;h<k;++h){n=u[h];var x=Math.abs(n-m);x>p&&(m=(m+n)/2,Jc(a,b,c,d,m,q)&&(w=m,p=x));m=n}isNaN(w)&&(w=e[f]);return g?(g.push(w,q),g):[w,q]};function Lc(a,b,c,d,e,f){for(var g=[a[b],a[b+1]],h=[],k;b+d<c;b+=d){h[0]=a[b+d];h[1]=a[b+d+1];if(k=e.call(f,g,h))return k;g[0]=h[0];g[1]=h[1]}return!1};function Mc(a,b,c,d,e){var f=xb(mb(),a,b,c,d);return Kb(e,f)?rb(e,f)||f[0]>=e[0]&&f[2]<=e[2]||f[1]>=e[1]&&f[3]<=e[3]?!0:Lc(a,b,c,d,function(a,b){var c=!1,d=sb(e,a),f=sb(e,b);if(1===d||1===f)c=!0;else{var p=e[0],q=e[1],u=e[2],w=e[3],x=b[0],r=b[1],S=(r-a[1])/(x-a[0]);f&2&&!(d&2)&&(c=x-(r-w)/S,c=c>=p&&c<=u);c||!(f&4)||d&4||(c=r-(x-u)*S,c=c>=q&&c<=w);c||!(f&8)||d&8||(c=x-(r-q)/S,c=c>=p&&c<=u);c||!(f&16)||d&16||(c=r-(x-p)*S,c=c>=q&&c<=w)}return c}):!1}
function Nc(a,b,c,d,e){var f=c[0];if(!(Mc(a,b,f,d,e)||Ic(a,b,f,d,e[0],e[1])||Ic(a,b,f,d,e[0],e[3])||Ic(a,b,f,d,e[2],e[1])||Ic(a,b,f,d,e[2],e[3])))return!1;if(1===c.length)return!0;b=1;for(f=c.length;b<f;++b)if(Hc(a,c[b-1],c[b],d,e))return!1;return!0};function Oc(a,b,c,d){for(var e=0,f=a[c-d],g=a[c-d+1];b<c;b+=d)var h=a[b],k=a[b+1],e=e+(h-f)*(k+g),f=h,g=k;return 0<e}function Pc(a,b,c,d){var e=0;d=void 0!==d?d:!1;var f,g;f=0;for(g=b.length;f<g;++f){var h=b[f],e=Oc(a,e,h,c);if(0===f){if(d&&e||!d&&!e)return!1}else if(d&&!e||!d&&e)return!1;e=h}return!0}
function Qc(a,b,c,d,e){e=void 0!==e?e:!1;var f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],k=Oc(a,b,h,d);if(0===f?e&&k||!e&&!k:e&&!k||!e&&k)for(var k=a,m=h,n=d;b<m-n;){var p;for(p=0;p<n;++p){var q=k[b+p];k[b+p]=k[m-n+p];k[m-n+p]=q}b+=n;m-=n}b=h}return b}function Rc(a,b,c,d){var e=0,f,g;f=0;for(g=b.length;f<g;++f)e=Qc(a,e,b[f],c,d);return e};function E(a,b){B.call(this);this.c=[];this.G=-1;this.J=null;this.da=this.N=this.ca=-1;this.o=null;this.M(a,b)}v(E,B);l=E.prototype;l.Mc=function(a){this.a?Za(this.a,a.a):this.a=a.a.slice();this.c.push(this.a.length);this.j()};l.clone=function(){var a=new E(null);Sc(a,this.f,this.a.slice(),this.c.slice());return a};
l.oa=function(a,b,c,d){if(d<ob(this.u(),a,b))return d;this.N!=this.i&&(this.ca=Math.sqrt(xc(this.a,0,this.c,this.b,0)),this.N=this.i);return zc(this.a,0,this.c,this.b,this.ca,!0,a,b,c,d)};l.Ba=function(a,b){return Jc(Tc(this),0,this.c,this.b,a,b)};l.De=function(){return uc(Tc(this),0,this.c,this.b)};l.ea=function(a){var b;void 0!==a?(b=Tc(this).slice(),Qc(b,0,this.c,this.b,a)):b=this.a;return Ec(b,0,this.c,this.b)};l.Ea=function(){return this.c};
function Uc(a){if(a.G!=a.i){var b=Hb(a.u());a.J=Kc(Tc(a),0,a.c,a.b,b,0);a.G=a.i}return a.J}l.hd=function(){return new D(Uc(this))};l.pd=function(){return this.c.length};l.od=function(a){if(0>a||this.c.length<=a)return null;var b=new C(null);rc(b,this.f,this.a.slice(0===a?0:this.c[a-1],this.c[a]));b.j();return b};l.qd=function(){var a=this.f,b=this.a,c=this.c,d=[],e=0,f,g;f=0;for(g=c.length;f<g;++f){var h=c[f],k=new C(null),m=k;rc(m,a,b.slice(e,h));m.j();d.push(k);e=h}return d};
function Tc(a){if(a.da!=a.i){var b=a.a;Pc(b,a.c,a.b)?a.o=b:(a.o=b.slice(),a.o.length=Qc(a.o,0,a.c,a.b));a.da=a.i}return a.o}l.Ha=function(a){var b=[],c=[];b.length=Gc(this.a,0,this.c,this.b,Math.sqrt(a),b,0,c);a=new E(null);Sc(a,"XY",b,c);return a};l.P=function(){return"Polygon"};l.X=function(a){return Nc(Tc(this),0,this.c,this.b,a)};
l.M=function(a,b){if(a){sc(this,b,a,2);this.a||(this.a=[]);var c=Cc(this.a,0,a,this.b,this.c);this.a.length=0===c.length?0:c[c.length-1];this.j()}else Sc(this,"XY",null,this.c)};function Sc(a,b,c,d){rc(a,b,c);a.c=d;a.j()}function Vc(a){var b=a[0],c=a[1],d=a[2];a=a[3];b=[b,c,b,a,d,a,d,c,b,c];c=new E(null);Sc(c,"XY",b,[b.length]);return c};function F(a){Ta.call(this);a=a||{};this.a=[0,0];var b={};b.center=void 0!==a.center?a.center:null;this.l=fc(a.projection);var c,d,e,f=void 0!==a.minZoom?a.minZoom:0;c=void 0!==a.maxZoom?a.maxZoom:28;var g=void 0!==a.zoomFactor?a.zoomFactor:2;if(void 0!==a.resolutions)c=a.resolutions,d=c[0],e=c[c.length-1],c=cb(c);else{d=fc(a.projection);e=d.u();var h=(e?Math.max(Fb(e),Gb(e)):360*Rb.degrees/d.Ga())/256/Math.pow(2,0),k=h/Math.pow(2,28);d=a.maxResolution;void 0!==d?f=0:d=h/Math.pow(g,f);e=a.minResolution;
void 0===e&&(e=void 0!==a.maxZoom?void 0!==a.maxResolution?d/Math.pow(g,c):h/Math.pow(g,c):k);c=f+Math.floor(Math.log(d/e)/Math.log(g));e=d/Math.pow(g,c-f);c=db(g,d,c-f)}this.b=d;this.h=e;this.s=a.resolutions;this.f=f;f=void 0!==a.extent?wa(a.extent):xa;(void 0!==a.enableRotation?a.enableRotation:1)?(d=a.constrainRotation,d=void 0===d||!0===d?hb():!1===d?fb:ga(d)?gb(d):fb):d=eb;this.c=new ya(f,c,d);void 0!==a.resolution?b.resolution=a.resolution:void 0!==a.zoom&&(b.resolution=this.constrainResolution(this.b,
a.zoom-this.f));b.rotation=void 0!==a.rotation?a.rotation:0;this.O(b)}v(F,Ta);l=F.prototype;l.$a=function(a){return this.c.center(a)};l.constrainResolution=function(a,b,c){return this.c.resolution(a,b||0,c||0)};l.constrainRotation=function(a,b){return this.c.rotation(a,b||0)};l.ja=function(){return this.get("center")};l.Mb=function(a){var b=this.ja(),c=this.H(),d=this.aa();return Ib(b,c,d,a)};l.te=function(){return this.b};l.ue=function(){return this.h};l.ve=function(){return this.l};l.H=function(){return this.get("resolution")};
l.we=function(){return this.s};function Wc(a,b){return Math.max(Fb(a)/b[0],Gb(a)/b[1])}l.aa=function(){return this.get("rotation")};l.L=function(){var a=this.ja(),b=this.l,c=this.H(),d=this.aa();return{center:[Math.round(a[0]/c)*c,Math.round(a[1]/c)*c],projection:void 0!==b?b:null,resolution:c,rotation:d}};l.Gd=function(){var a,b=this.H();if(void 0!==b){var c,d=0;do{c=this.constrainResolution(this.b,d);if(c==b){a=d;break}++d}while(c>this.h)}return void 0!==a?this.f+a:a};
l.Yc=function(a,b,c){a instanceof B||(a=Vc(a));var d=c||{};c=void 0!==d.padding?d.padding:[0,0,0,0];var e=void 0!==d.constrainResolution?d.constrainResolution:!0,f=void 0!==d.nearest?d.nearest:!1,g;void 0!==d.minResolution?g=d.minResolution:void 0!==d.maxZoom?g=this.constrainResolution(this.b,d.maxZoom-this.f,0):g=0;var h=a.a,k=this.aa(),d=Math.cos(-k),k=Math.sin(-k),m=Infinity,n=Infinity,p=-Infinity,q=-Infinity;a=a.b;for(var u=0,w=h.length;u<w;u+=a)var x=h[u]*d-h[u+1]*k,r=h[u]*k+h[u+1]*d,m=Math.min(m,
x),n=Math.min(n,r),p=Math.max(p,x),q=Math.max(q,r);b=Wc([m,n,p,q],[b[0]-c[1]-c[3],b[1]-c[0]-c[2]]);b=isNaN(b)?g:Math.max(b,g);e&&(g=this.constrainResolution(b,0,0),!f&&g<b&&(g=this.constrainResolution(g,-1,0)),b=g);this.Ka(b);k=-k;f=(m+p)/2+(c[1]-c[3])/2*b;c=(n+q)/2+(c[0]-c[2])/2*b;this.qa([f*d-c*k,c*d+f*k])};l.Pc=function(a,b,c){var d=this.aa(),e=Math.cos(-d),d=Math.sin(-d),f=a[0]*e-a[1]*d;a=a[1]*e+a[0]*d;var g=this.H(),f=f+(b[0]/2-c[0])*g;a+=(c[1]-b[1]/2)*g;d=-d;this.qa([f*e-a*d,a*e+f*d])};
l.rotate=function(a,b){if(void 0!==b){var c,d=this.ja();void 0!==d&&(c=[d[0]-b[0],d[1]-b[1]],jb(c,a-this.aa()),ib(c,b));this.qa(c)}this.vb(a)};l.qa=function(a){this.set("center",a)};function Xc(a,b){a.a[1]+=b}l.Ka=function(a){this.set("resolution",a)};l.vb=function(a){this.set("rotation",a)};l.nf=function(a){a=this.constrainResolution(this.b,a-this.f,0);this.Ka(a)};function Yc(a){return 1-Math.pow(1-a,3)}function Zc(a){return 3*a*a-2*a*a*a}function $c(a){return a};function ad(a){var b=a.source,c=a.start?a.start:Date.now(),d=b[0],e=b[1],f=void 0!==a.duration?a.duration:1E3,g=a.easing?a.easing:Zc;return function(a,b){if(b.time<c)return b.animate=!0,b.viewHints[0]+=1,!0;if(b.time<c+f){var m=1-g((b.time-c)/f),n=d-b.viewState.center[0],p=e-b.viewState.center[1];b.animate=!0;b.viewState.center[0]+=m*n;b.viewState.center[1]+=m*p;b.viewHints[0]+=1;return!0}return!1}}
function bd(a){var b=a.rotation?a.rotation:0,c=a.start?a.start:Date.now(),d=void 0!==a.duration?a.duration:1E3,e=a.easing?a.easing:Zc,f=a.anchor?a.anchor:null;return function(a,h){if(h.time<c)return h.animate=!0,h.viewHints[0]+=1,!0;if(h.time<c+d){var k=1-e((h.time-c)/d),k=(b-h.viewState.rotation)*k;h.animate=!0;h.viewState.rotation+=k;if(f){var m=h.viewState.center;m[0]-=f[0];m[1]-=f[1];jb(m,k);ib(m,f)}h.viewHints[0]+=1;return!0}return!1}}
function cd(a){var b=a.resolution,c=a.start?a.start:Date.now(),d=void 0!==a.duration?a.duration:1E3,e=a.easing?a.easing:Zc;return function(a,g){if(g.time<c)return g.animate=!0,g.viewHints[0]+=1,!0;if(g.time<c+d){var h=1-e((g.time-c)/d),k=b-g.viewState.resolution;g.animate=!0;g.viewState.resolution+=h*k;g.viewHints[0]+=1;return!0}return!1}};function dd(a,b,c,d){this.w=a;this.A=b;this.C=c;this.F=d}function ed(a,b,c){return a.w<=b&&b<=a.A&&a.C<=c&&c<=a.F}function fd(a,b){return a.w<=b.A&&a.A>=b.w&&a.C<=b.F&&a.F>=b.C};function gd(a){this.b=a.html;this.a=a.tileRanges?a.tileRanges:null};function hd(a,b,c){Na.call(this,a,c);this.element=b}v(hd,Na);function id(a){Ta.call(this);this.a=a?a:[];jd(this)}v(id,Ta);id.prototype.clear=function(){for(;0<this.get("length");)kd(this,this.get("length")-1)};function ld(a,b,c){a.a.forEach(b,c)}id.prototype.push=function(a){var b=this.a.length;this.a.splice(b,0,a);jd(this);this.g(new hd("add",a,this));return b};id.prototype.remove=function(a){var b=this.a,c,d;c=0;for(d=b.length;c<d;++c)if(b[c]===a)return kd(this,c)};
function kd(a,b){var c=a.a[b];a.a.splice(b,1);jd(a);a.g(new hd("remove",c,a));return c}function jd(a){a.set("length",a.a.length)};function md(a){if("string"!==typeof a){var b=a[0];b!=(b|0)&&(b=b+.5|0);var c=a[1];c!=(c|0)&&(c=c+.5|0);var d=a[2];d!=(d|0)&&(d=d+.5|0);a="rgba("+b+","+c+","+d+","+(void 0===a[3]?1:a[3])+")"}return a};function nd(a){return"string"===typeof a||a instanceof CanvasPattern||a instanceof CanvasGradient?a:md(a)};var od;a:{var pd=da.navigator;if(pd){var qd=pd.userAgent;if(qd){od=qd;break a}}od=""};var rd=-1!=od.toLowerCase().indexOf("webkit")&&-1==od.indexOf("Edge");function sd(a,b){var c=document.createElement("CANVAS");a&&(c.width=a);b&&(c.height=b);return c.getContext("2d")}function td(a){a&&a.parentNode&&a.parentNode.removeChild(a)};function ud(a,b,c){Na.call(this,a);this.map=b;this.frameState=void 0!==c?c:null}v(ud,Na);function vd(a){Ta.call(this);this.element=a.element?a.element:null;this.s=this.G=null;this.B=[];this.render=a.render?a.render:pa;a.target&&(a=a.target,this.G="string"===typeof a?document.getElementById(a):a)}v(vd,Ta);vd.prototype.R=function(){td(this.element);Ta.prototype.R.call(this)};
vd.prototype.setMap=function(a){this.s&&td(this.element);for(var b=0,c=this.B.length;b<c;++b)Ea(this.B[b]);this.B.length=0;if(this.s=a)(this.G?this.G:a.I).appendChild(this.element),this.render!==pa&&this.B.push(y(a,"postrender",this.render,this)),a.render()};function wd(){this.i=0;this.g={};this.a=this.b=null}wd.prototype.clear=function(){this.i=0;this.g={};this.a=this.b=null};wd.prototype.get=function(a){a=this.g[a];if(a===this.a)return a.Va;a===this.b?(this.b=this.b.pa,this.b.Ja=null):(a.pa.Ja=a.Ja,a.Ja.pa=a.pa);a.pa=null;a.Ja=this.a;this.a=this.a.pa=a;return a.Va};wd.prototype.set=function(a,b){var c={Ta:a,pa:null,Ja:this.a,Va:b};this.a?this.a.pa=c:this.b=c;this.a=c;this.g[a]=c;++this.i};function xd(a){wd.call(this);this.f=void 0!==a?a:2048}v(xd,wd);function yd(a){return a.i>a.f}xd.prototype.Ca=function(a){for(var b,c;yd(this);){b=this.b.Va;c=b.ma[0].toString();var d;if(d=c in a)b=b.ma,d=ed(a[c],b[1],b[2]);if(d)break;else c=this.b,delete this.g[c.Ta],c.pa&&(c.pa.Ja=null),this.b=c.pa,this.b||(this.a=null),--this.i,Ma(c.Va)}};function zd(a,b){Pa.call(this);this.ma=a;this.state=b;this.a=null;this.key=""}v(zd,Pa);function Ad(a){a.g("change")}zd.prototype.getKey=function(){return ia(this).toString()};zd.prototype.L=function(){return this.state};function Bd(a,b){if(Array.isArray(a))return a;void 0===b?b=[a,a]:(b[0]=a,b[1]=a);return b};function Cd(a){Ta.call(this);this.b=Tb(a.projection);this.l=Dd(a.attributions);this.o=a.logo;this.G=void 0!==a.state?a.state:"ready";this.I=void 0!==a.wrapX?a.wrapX:!1}v(Cd,Ta);function Dd(a){if("string"===typeof a)return[new gd({html:a})];if(a instanceof gd)return[a];if(Array.isArray(a)){for(var b=a.length,c=Array(b),d=0;d<b;d++){var e=a[d];c[d]="string"===typeof e?new gd({html:e}):e}return c}return null}l=Cd.prototype;l.Da=pa;l.gc=function(){return this.l};l.Sb=function(){return this.o};l.hc=function(){return this.b};
l.L=function(){return this.G};l.xb=function(){this.j()};l.nc=function(a){this.l=Dd(a);this.j()};function Ed(a){this.minZoom=void 0!==a.minZoom?a.minZoom:0;this.i=a.resolutions;this.maxZoom=this.i.length-1;this.a=void 0!==a.origin?a.origin:null;this.g=null;void 0!==a.origins&&(this.g=a.origins);var b=a.extent;void 0===b||this.a||this.g||(this.a=Cb(b));this.c=null;void 0!==a.tileSizes&&(this.c=a.tileSizes);this.h=void 0!==a.tileSize?a.tileSize:this.c?null:256;this.v=void 0!==b?b:null;this.b=null;this.f=[0,0];void 0!==a.sizes?this.b=a.sizes.map(function(a){return new dd(Math.min(0,a[0]),Math.max(a[0]-
1,-1),Math.min(0,a[1]),Math.max(a[1]-1,-1))},this):b&&Fd(this,b)}var Gd=[0,0,0];function Hd(a,b,c,d,e){e=Id(a,b,e);for(b=b[0]-1;b>=a.minZoom;){if(c.call(null,b,Jd(a,e,b,d)))return!0;--b}return!1}Ed.prototype.u=function(){return this.v};Ed.prototype.H=function(a){return this.i[a]};function Kd(a,b,c,d){return b[0]<a.maxZoom?(d=Id(a,b,d),Jd(a,d,b[0]+1,c)):null}
function Ld(a,b,c,d){Md(a,b[0],b[1],c,!1,Gd);var e=Gd[1],f=Gd[2];Md(a,b[2],b[3],c,!0,Gd);a=Gd[1];b=Gd[2];void 0!==d?(d.w=e,d.A=a,d.C=f,d.F=b):d=new dd(e,a,f,b);return d}function Jd(a,b,c,d){c=a.H(c);return Ld(a,b,c,d)}function Nd(a,b){var c=a.a?a.a:a.g[b[0]],d=a.H(b[0]),e=Bd(Od(a,b[0]),a.f);return[c[0]+(b[1]+.5)*e[0]*d,c[1]+(b[2]+.5)*e[1]*d]}function Id(a,b,c){var d=a.a?a.a:a.g[b[0]],e=a.H(b[0]);a=Bd(Od(a,b[0]),a.f);var f=d[0]+b[1]*a[0]*e;b=d[1]+b[2]*a[1]*e;return tb(f,b,f+a[0]*e,b+a[1]*e,c)}
function Md(a,b,c,d,e,f){var g=Pd(a,d),h=d/a.H(g),k=a.a?a.a:a.g[g];a=Bd(Od(a,g),a.f);b=h*Math.floor((b-k[0])/d+(e?.5:0))/a[0];c=h*Math.floor((c-k[1])/d+(e?0:.5))/a[1];e?(b=Math.ceil(b)-1,c=Math.ceil(c)-1):(b=Math.floor(b),c=Math.floor(c));e=b;void 0!==f?(f[0]=g,f[1]=e,f[2]=c):f=[g,e,c];return f}function Qd(a,b,c,d){c=a.H(c);return Md(a,b[0],b[1],c,!1,d)}function Od(a,b){return a.h?a.h:a.c[b]}function Pd(a,b,c){b=Ya(a.i,b,c||0);return ra(b,a.minZoom,a.maxZoom)}
function Fd(a,b){for(var c=a.i.length,d=Array(c),e=a.minZoom;e<c;++e)d[e]=Jd(a,b,e);a.b=d}function Rd(a){var b=a.c;if(!b){var b=Sd(a),c=Td(b,void 0,void 0),b=new Ed({extent:b,origin:Cb(b),resolutions:c,tileSize:void 0});a.c=b}return b}function Td(a,b,c){b=void 0!==b?b:42;var d=Gb(a);a=Fb(a);c=Bd(void 0!==c?c:256);c=Math.max(a/c[0],d/c[1]);b+=1;d=Array(b);for(a=0;a<b;++a)d[a]=c/Math.pow(2,a);return d}function Sd(a){a=Tb(a);var b=a.u();b||(a=180*Rb.degrees/a.Ga(),b=tb(-a,-a,a,a));return b};function Ud(a){Cd.call(this,{attributions:a.attributions,extent:a.extent,logo:a.logo,projection:a.projection,state:a.state,wrapX:a.wrapX});this.J=void 0!==a.opaque?a.opaque:!1;this.B=void 0!==a.tilePixelRatio?a.tilePixelRatio:1;this.tileGrid=void 0!==a.tileGrid?a.tileGrid:null;this.a=new xd(a.cacheSize);this.D=[0,0];this.Ta=""}v(Ud,Cd);l=Ud.prototype;l.ic=function(){return yd(this.a)};l.Ca=function(a,b){var c=this.Sa(a);c&&c.Ca(b)};
function Vd(a,b,c,d,e){b=a.Sa(b);if(!b)return!1;for(var f=!0,g,h,k=d.w;k<=d.A;++k)for(var m=d.C;m<=d.F;++m)g=a.ab(c,k,m),h=!1,b.g.hasOwnProperty(g)&&(g=b.get(g),(h=2===g.L())&&(h=!1!==e(g))),h||(f=!1);return f}l.Rb=function(){return 0};l.getKey=function(){return this.Ta};l.ab=function(a,b,c){return a+"/"+b+"/"+c};l.qb=function(){return this.J};l.Ub=function(){return this.tileGrid};l.wa=function(a){return this.tileGrid?this.tileGrid:Rd(a)};l.Sa=function(a){var b=this.b;return b&&!hc(b,a)?null:this.a};
function Wd(a,b,c){var d=a.wa(c);c=a.B;b=Bd(Od(d,b),a.D);1==c?a=b:(a=a.D,void 0===a&&(a=[0,0]),a[0]=b[0]*c+.5|0,a[1]=b[1]*c+.5|0);return a}function Xd(a,b,c){var d=void 0!==c?c:a.b;c=a.wa(d);if(a.I&&d.b){var e=b;b=e[0];a=Nd(c,e);d=Sd(d);pb(d,a)?b=e:(e=Fb(d),a[0]+=e*Math.ceil((d[0]-a[0])/e),b=Qd(c,a,b))}e=b[0];d=b[1];a=b[2];if(c.minZoom>e||e>c.maxZoom)c=!1;else{var f=c.u();c=(c=f?Jd(c,f,e):c.b?c.b[e]:null)?ed(c,d,a):!0}return c?b:null}l.xb=function(){this.a.clear();this.j()};l.uc=pa;
function Yd(a,b){Na.call(this,a);this.tile=b}v(Yd,Na);function Zd(a){a=a?a:{};this.I=document.createElement("UL");this.h=document.createElement("LI");this.I.appendChild(this.h);this.h.style.display="none";this.f=void 0!==a.collapsed?a.collapsed:!0;this.o=void 0!==a.collapsible?a.collapsible:!0;this.o||(this.f=!1);var b=void 0!==a.className?a.className:"ol-attribution",c=void 0!==a.tipLabel?a.tipLabel:"Attributions",d=void 0!==a.collapseLabel?a.collapseLabel:"\u00bb";"string"===typeof d?(this.c=document.createElement("span"),this.c.textContent=d):this.c=
d;d=void 0!==a.label?a.label:"i";"string"===typeof d?(this.l=document.createElement("span"),this.l.textContent=d):this.l=d;var e=this.o&&!this.f?this.c:this.l,d=document.createElement("button");d.setAttribute("type","button");d.title=c;d.appendChild(e);y(d,"click",this.N,this);c=document.createElement("div");c.className=b+" ol-unselectable ol-control"+(this.f&&this.o?" ol-collapsed":"")+(this.o?"":" ol-uncollapsible");c.appendChild(this.I);c.appendChild(d);vd.call(this,{element:c,render:a.render?
a.render:$d,target:a.target});this.D=!0;this.b={};this.a={};this.J={}}v(Zd,vd);
function $d(a){if(a=a.frameState){var b,c,d,e,f,g,h,k,m,n,p,q=a.layerStatesArray,u=za({},a.attributions),w={},x=a.viewState.projection;c=0;for(b=q.length;c<b;c++)if(g=q[c].layer.xa())if(n=ia(g).toString(),m=g.l)for(d=0,e=m.length;d<e;d++)if(h=m[d],k=ia(h).toString(),!(k in u)){if(f=a.usedTiles[n]){var r=g.wa(x);a:{p=h;var S=x;if(p.a){var P,Q,O,Z=void 0;for(Z in f)if(Z in p.a){O=f[Z];var U;P=0;for(Q=p.a[Z].length;P<Q;++P){U=p.a[Z][P];if(fd(U,O)){p=!0;break a}var aa=Jd(r,Sd(S),parseInt(Z,10)),T=aa.A-
aa.w+1;if(O.w<aa.w||O.A>aa.A)if(fd(U,new dd(ua(O.w,T),ua(O.A,T),O.C,O.F))||O.A-O.w+1>T&&fd(U,aa)){p=!0;break a}}}p=!1}else p=!0}}else p=!1;p?(k in w&&delete w[k],u[k]=h):w[k]=h}b=[u,w];c=b[0];b=b[1];for(var L in this.b)L in c?(this.a[L]||(this.b[L].style.display="",this.a[L]=!0),delete c[L]):L in b?(this.a[L]&&(this.b[L].style.display="none",delete this.a[L]),delete b[L]):(td(this.b[L]),delete this.b[L],delete this.a[L]);for(L in c)d=document.createElement("LI"),d.innerHTML=c[L].b,this.I.appendChild(d),
this.b[L]=d,this.a[L]=!0;for(L in b)d=document.createElement("LI"),d.innerHTML=b[L].b,d.style.display="none",this.I.appendChild(d),this.b[L]=d;L=!Ba(this.a)||!Ba(a.logos);this.D!=L&&(this.element.style.display=L?"":"none",this.D=L);L&&Ba(this.a)?this.element.classList.add("ol-logo-only"):this.element.classList.remove("ol-logo-only");var V;a=a.logos;L=this.J;for(V in L)V in a||(td(L[V]),delete L[V]);for(var X in a)b=a[X],b instanceof HTMLElement&&(this.h.appendChild(b),L[X]=b),X in L||(V=new Image,
V.src=X,""===b?c=V:(c=document.createElement("a"),c.href=b,c.appendChild(V)),this.h.appendChild(c),L[X]=c);this.h.style.display=Ba(a)?"none":""}else this.D&&(this.element.style.display="none",this.D=!1)}Zd.prototype.N=function(a){a.preventDefault();this.element.classList.toggle("ol-collapsed");if(this.f){a=this.l;var b=a.parentNode;b&&b.replaceChild(this.c,a)}else a=this.c,(b=a.parentNode)&&b.replaceChild(this.l,a);this.f=!this.f};function ae(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-rotate",c=void 0!==a.label?a.label:"\u21e7";this.a=null;"string"===typeof c?(this.a=document.createElement("span"),this.a.className="ol-compass",this.a.textContent=c):(this.a=c,this.a.classList.add("ol-compass"));var d=a.tipLabel?a.tipLabel:"Reset rotation",c=document.createElement("button");c.className=b+"-reset";c.setAttribute("type","button");c.title=d;c.appendChild(this.a);y(c,"click",ae.prototype.l,this);d=document.createElement("div");
d.className=b+" ol-unselectable ol-control";d.appendChild(c);b=a.render?a.render:be;this.f=a.resetNorth?a.resetNorth:void 0;vd.call(this,{element:d,render:b,target:a.target});this.c=void 0!==a.duration?a.duration:250;this.b=void 0!==a.autoHide?a.autoHide:!0;this.h=void 0;this.b&&this.element.classList.add("ol-hidden")}v(ae,vd);
ae.prototype.l=function(a){a.preventDefault();if(void 0!==this.f)this.f();else{a=this.s;var b=a.K();if(b){var c=b.aa();void 0!==c&&(0<this.c&&(c%=2*Math.PI,c<-Math.PI&&(c+=2*Math.PI),c>Math.PI&&(c-=2*Math.PI),a.ha(bd({rotation:c,duration:this.c,easing:Yc}))),b.vb(0))}}};
function be(a){if(a=a.frameState){a=a.viewState.rotation;if(a!=this.h){var b="rotate("+a+"rad)";if(this.b){var c=this.element.classList.contains("ol-hidden");c||0!==a?c&&0!==a&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")}this.a.style.msTransform=b;this.a.style.webkitTransform=b;this.a.style.transform=b}this.h=a}};function ce(a){a=a?a:{};var b=void 0!==a.className?a.className:"ol-zoom",c=void 0!==a.delta?a.delta:1,d=void 0!==a.zoomInLabel?a.zoomInLabel:"+",e=void 0!==a.zoomOutLabel?a.zoomOutLabel:"\u2212",f=void 0!==a.zoomInTipLabel?a.zoomInTipLabel:"Zoom in",g=void 0!==a.zoomOutTipLabel?a.zoomOutTipLabel:"Zoom out",h=document.createElement("button");h.className=b+"-in";h.setAttribute("type","button");h.title=f;h.appendChild("string"===typeof d?document.createTextNode(d):d);y(h,"click",ce.prototype.b.bind(this,
c));d=document.createElement("button");d.className=b+"-out";d.setAttribute("type","button");d.title=g;d.appendChild("string"===typeof e?document.createTextNode(e):e);y(d,"click",ce.prototype.b.bind(this,-c));c=document.createElement("div");c.className=b+" ol-unselectable ol-control";c.appendChild(h);c.appendChild(d);vd.call(this,{element:c,target:a.target});this.a=void 0!==a.duration?a.duration:250}v(ce,vd);
ce.prototype.b=function(a,b){b.preventDefault();var c=this.s,d=c.K();if(d){var e=d.H();e&&(0<this.a&&c.ha(cd({resolution:e,duration:this.a,easing:Yc})),c=d.constrainResolution(e,a),d.Ka(c))}};var de;
function ee(){var a=da.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&-1==od.indexOf("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=oa(function(a){if(("*"==d||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&&-1==od.indexOf("Trident")&&-1==od.indexOf("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var a=c.Ob;c.Ob=null;a()}};return function(a){d.next={Ob: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){da.setTimeout(a,0)}};function fe(a,b,c){Na.call(this,a);this.a=b;a=c?c:{};this.buttons=ge(a);this.pressure=he(a,this.buttons);this.bubbles="bubbles"in a?a.bubbles:!1;this.cancelable="cancelable"in a?a.cancelable:!1;this.view="view"in a?a.view:null;this.detail="detail"in a?a.detail:null;this.screenX="screenX"in a?a.screenX:0;this.screenY="screenY"in a?a.screenY:0;this.clientX="clientX"in a?a.clientX:0;this.clientY="clientY"in a?a.clientY:0;this.button="button"in a?a.button:0;this.relatedTarget="relatedTarget"in a?a.relatedTarget:
null;this.pointerId="pointerId"in a?a.pointerId:0;this.width="width"in a?a.width:0;this.height="height"in a?a.height:0;this.pointerType="pointerType"in a?a.pointerType:"";this.isPrimary="isPrimary"in a?a.isPrimary:!1;b.preventDefault&&(this.preventDefault=function(){b.preventDefault()})}v(fe,Na);function ge(a){if(a.buttons||ie)a=a.buttons;else switch(a.which){case 1:a=1;break;case 2:a=4;break;case 3:a=2;break;default:a=0}return a}
function he(a,b){var c=0;a.pressure?c=a.pressure:c=b?.5:0;return c}var ie=!1;try{ie=1===(new MouseEvent("click",{buttons:1})).buttons}catch(a){};var je="undefined"!==typeof navigator?navigator.userAgent.toLowerCase():"",ke=-1!==je.indexOf("firefox"),le=-1!==je.indexOf("safari")&&-1===je.indexOf("chrom"),me=-1!==je.indexOf("macintosh"),ne=qa.devicePixelRatio||1,oe=!1,pe=function(){if(!("HTMLCanvasElement"in qa))return!1;try{var a=sd();return a?(a.setLineDash&&(oe=!0),!0):!1}catch(b){return!1}}(),qe="ontouchstart"in qa,re="PointerEvent"in qa,se=!!qa.navigator.msPointerEnabled;function te(a,b){this.a=a;this.f=b};function ue(a){te.call(this,a,{mousedown:this.be,mousemove:this.ce,mouseup:this.fe,mouseover:this.ee,mouseout:this.de});this.b=a.b;this.g=[]}v(ue,te);function ve(a,b){for(var c=a.g,d=b.clientX,e=b.clientY,f=0,g=c.length,h;f<g&&(h=c[f]);f++){var k=Math.abs(e-h[1]);if(25>=Math.abs(d-h[0])&&25>=k)return!0}return!1}function we(a){var b=xe(a,a),c=b.preventDefault;b.preventDefault=function(){a.preventDefault();c()};b.pointerId=1;b.isPrimary=!0;b.pointerType="mouse";return b}l=ue.prototype;
l.be=function(a){if(!ve(this,a)){if((1).toString()in this.b){var b=we(a);ye(this.a,ze,b,a);delete this.b[(1).toString()]}b=we(a);this.b[(1).toString()]=a;ye(this.a,Ae,b,a)}};l.ce=function(a){if(!ve(this,a)){var b=we(a);ye(this.a,Be,b,a)}};l.fe=function(a){if(!ve(this,a)){var b=this.b[(1).toString()];b&&b.button===a.button&&(b=we(a),ye(this.a,Ce,b,a),delete this.b[(1).toString()])}};l.ee=function(a){if(!ve(this,a)){var b=we(a);De(this.a,b,a)}};
l.de=function(a){if(!ve(this,a)){var b=we(a);Ee(this.a,b,a)}};function Fe(a){te.call(this,a,{MSPointerDown:this.ke,MSPointerMove:this.le,MSPointerUp:this.oe,MSPointerOut:this.me,MSPointerOver:this.ne,MSPointerCancel:this.je,MSGotPointerCapture:this.he,MSLostPointerCapture:this.ie});this.b=a.b;this.g=["","unavailable","touch","pen","mouse"]}v(Fe,te);function Ge(a,b){var c=b;ga(b.pointerType)&&(c=xe(b,b),c.pointerType=a.g[b.pointerType]);return c}l=Fe.prototype;l.ke=function(a){this.b[a.pointerId.toString()]=a;var b=Ge(this,a);ye(this.a,Ae,b,a)};
l.le=function(a){var b=Ge(this,a);ye(this.a,Be,b,a)};l.oe=function(a){var b=Ge(this,a);ye(this.a,Ce,b,a);delete this.b[a.pointerId.toString()]};l.me=function(a){var b=Ge(this,a);Ee(this.a,b,a)};l.ne=function(a){var b=Ge(this,a);De(this.a,b,a)};l.je=function(a){var b=Ge(this,a);ye(this.a,ze,b,a);delete this.b[a.pointerId.toString()]};l.ie=function(a){this.a.g(new fe("lostpointercapture",a,a))};l.he=function(a){this.a.g(new fe("gotpointercapture",a,a))};function He(a){te.call(this,a,{pointerdown:this.Me,pointermove:this.Ne,pointerup:this.Qe,pointerout:this.Oe,pointerover:this.Pe,pointercancel:this.Le,gotpointercapture:this.Hd,lostpointercapture:this.ae})}v(He,te);l=He.prototype;l.Me=function(a){Ie(this.a,a)};l.Ne=function(a){Ie(this.a,a)};l.Qe=function(a){Ie(this.a,a)};l.Oe=function(a){Ie(this.a,a)};l.Pe=function(a){Ie(this.a,a)};l.Le=function(a){Ie(this.a,a)};l.ae=function(a){Ie(this.a,a)};l.Hd=function(a){Ie(this.a,a)};function Je(a,b){te.call(this,a,{touchstart:this.tf,touchmove:this.sf,touchend:this.rf,touchcancel:this.qf});this.b=a.b;this.h=b;this.g=void 0;this.c=0;this.i=void 0}v(Je,te);l=Je.prototype;l.mc=function(){this.c=0;this.i=void 0};
function Ke(a,b,c){b=xe(b,c);b.pointerId=c.identifier+2;b.bubbles=!0;b.cancelable=!0;b.detail=a.c;b.button=0;b.buttons=1;b.width=c.webkitRadiusX||c.radiusX||0;b.height=c.webkitRadiusY||c.radiusY||0;b.pressure=c.webkitForce||c.force||.5;b.isPrimary=a.g===c.identifier;b.pointerType="touch";b.clientX=c.clientX;b.clientY=c.clientY;b.screenX=c.screenX;b.screenY=c.screenY;return b}
function Le(a,b,c){function d(){b.preventDefault()}var e=Array.prototype.slice.call(b.changedTouches),f=e.length,g,h;for(g=0;g<f;++g)h=Ke(a,b,e[g]),h.preventDefault=d,c.call(a,b,h)}
l.tf=function(a){var b=a.touches,c=Object.keys(this.b),d=c.length;if(d>=b.length){var e=[],f,g,h;for(f=0;f<d;++f){g=c[f];h=this.b[g];var k;if(!(k=1==g))a:{k=b.length;for(var m,n=0;n<k;n++)if(m=b[n],m.identifier===g-2){k=!0;break a}k=!1}k||e.push(h.out)}for(f=0;f<e.length;++f)this.jb(a,e[f])}b=a.changedTouches[0];c=Object.keys(this.b).length;if(0===c||1===c&&(1).toString()in this.b)this.g=b.identifier,void 0!==this.i&&qa.clearTimeout(this.i);Me(this,a);this.c++;Le(this,a,this.Ke)};
l.Ke=function(a,b){this.b[b.pointerId]={target:b.target,out:b,jc:b.target};var c=this.a;b.bubbles=!0;ye(c,Ne,b,a);c=this.a;b.bubbles=!1;ye(c,Oe,b,a);ye(this.a,Ae,b,a)};l.sf=function(a){a.preventDefault();Le(this,a,this.ge)};l.ge=function(a,b){var c=this.b[b.pointerId];if(c){var d=c.out,e=c.jc;ye(this.a,Be,b,a);d&&e!==b.target&&(d.relatedTarget=b.target,b.relatedTarget=e,d.target=e,b.target?(Ee(this.a,d,a),De(this.a,b,a)):(b.target=e,b.relatedTarget=null,this.jb(a,b)));c.out=b;c.jc=b.target}};