(function(){var h,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ba="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,ca=function(){ca=function(){};ba.Symbol||(ba.Symbol=da)},da=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),fa=function(){ca();var a=ba.Symbol.iterator;a||(a=ba.Symbol.iterator=ba.Symbol("iterator"));"function"!=typeof Array.prototype[a]&& aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(this)}});fa=function(){}},ea=function(a){var b=0;return ha(function(){return b>>0),sa=0,ta=function(a,b,c){return a.call.apply(a.bind,arguments)},ua=function(a,b,c){if(!a)throw Error();if(2c&&(c=Math.max(0,a.length+c));if(n(a))return n(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},Ha=Array.prototype.forEach?function(a,b,c){x(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=n(a)?a.split(""):a,f=0;fb?null:n(a)?a.charAt(b):a[b]},Qa=function(a){if(!p(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},Sa=function(a,b){b=Fa(a,b);var c;(c=0<= b)&&Ra(a,b);return c},Ra=function(a,b){x(null!=a.length);Array.prototype.splice.call(a,b,1)},Ta=function(a){return Array.prototype.concat.apply([],arguments)},Ua=function(a){var b=a.length;if(0=arguments.length?Array.prototype.slice.call(a, b):Array.prototype.slice.call(a,b,c)},Xa=function(a){for(var b={},c=0,d=0;d")&&(a=a.replace(db,">"));-1!=a.indexOf('"')&&(a=a.replace(eb,"""));-1!= a.indexOf("'")&&(a=a.replace(fb,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(gb,"�"));return a},bb=/&/g,cb=//g,eb=/"/g,fb=/'/g,gb=/\x00/g,ab=/[\x00&<>"']/,ib=function(a,b){return ab?1:0};var jb;a:{var kb=k.navigator;if(kb){var lb=kb.userAgent;if(lb){jb=lb;break a}}jb=""}var B=function(a){return-1!=jb.indexOf(a)};var mb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},nb=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},ob=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},pb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},qb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},rb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},sb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},ub=function(a){var b= tb,c;for(c in b)if(a.call(void 0,b[c],c,b))return c},vb=function(a){for(var b in a)return!1;return!0},wb=function(a,b){b in a&&delete a[b]},xb=function(a){var b={},c;for(c in a)b[c]=a[c];return b},yb=function(a){var b=na(a);if("object"==b||"array"==b){if(q(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=yb(a[c]);return b}return a},zb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Ab=function(a,b){for(var c,d,e=1;eparseFloat(Lb)){Kb=String(Nb);break a}}Kb=Lb} var Ob=Kb,Cb={},Pb=function(a){return Db(a,function(){for(var b=0,c=$a(String(Ob)).split("."),d=$a(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f=a.keyCode)a.keyCode=-1}catch(b){}};var Yb="closure_listenable_"+(1E6*Math.random()|0),Zb=function(a){return!(!a||!a[Yb])},$b=0;var ac=function(a,b,c,d,e){this.listener=a;this.Mb=null;this.src=b;this.type=c;this.capture=!!d;this.da=e;this.key=++$b;this.Ma=this.rb=!1},bc=function(a){a.Ma=!0;a.listener=null;a.Mb=null;a.src=null;a.da=null};var cc=function(a){this.src=a;this.D={};this.mb=0};cc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.D[f];a||(a=this.D[f]=[],this.mb++);var g=dc(a,b,d,e);-1 d.keyCode||void 0!=d.returnValue)){a:{var e=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(g){e=!0}if(e||void 0==d.returnValue)d.returnValue=!0}d=[];for(e=b.currentTarget;e;e=e.parentNode)d.push(e);a=a.type;for(e=d.length-1;!b.xa&&0<=e;e--){b.currentTarget=d[e];var f=tc(d[e],a,!0,b);c=c&&f}for(e=0;!b.xa&&e>> 0),kc=function(a){x(a,"Listener can not be null.");if(q(a))return a;x(a.handleEvent,"An object listener must have handleEvent method.");a[uc]||(a[uc]=function(b){return a.handleEvent(b)});return a[uc]};var vc=function(a){z.call(this);this.ua=a;this.h={}};v(vc,z);var wc=[];vc.prototype.aa=function(a,b,c,d){p(b)||(b&&(wc[0]=b.toString()),b=wc);for(var e=0;e++d,"infinite loop")}b=this.Wd;d=a.type||a;if(n(a))a=new A(a,b);else if(a instanceof A)a.target=a.target||b;else{var e=a;a=new A(d,b);Ab(a,e)}e=!0;if(c)for(var f=c.length-1;!a.xa&&0<=f;f--){var g=a.currentTarget=c[f];e=zc(g,d,!0,a)&&e}a.xa||(g=a.currentTarget=b,e=zc(g,d,!0,a)&&e,a.xa||(e=zc(g,d,!1,a)&&e));if(c)for(f=0;!a.xa&&f=b.gc&&b.cancel())}this.Fd?this.Fd.call(this.gd,this):this.Mc=!0;this.Ia||jd(this,new kd(this))}};id.prototype.dd=function(a,b){this.fc=!1;ld(this,a,b)}; var ld=function(a,b,c){a.Ia=!0;a.ga=c;a.ab=!b;md(a)},od=function(a){if(a.Ia){if(!a.Mc)throw new nd(a);a.Mc=!1}};id.prototype.hc=function(a){od(this);pd(a);ld(this,!0,a)};var jd=function(a,b){od(a);pd(b);ld(a,!1,b)},pd=function(a){x(!(a instanceof id),"An execution sequence may not be initiated with a blocking Deferred.")},qd=function(a,b,c){x(!a.Zc,"Blocking Deferreds can not be re-used");a.Qb.push([b,c,void 0]);a.Ia&&md(a)}; id.prototype.then=function(a,b,c){var d,e,f=new Vc(function(a,b){d=a;e=b});qd(this,d,function(a){a instanceof kd?f.cancel():e(a)});return f.then(a,b,c)};Rc(id); var rd=function(a){return La(a.Qb,function(a){return q(a[1])})},md=function(a){if(a.Wb&&a.Ia&&rd(a)){var b=a.Wb,c=sd[b];c&&(k.clearTimeout(c.ea),delete sd[b]);a.Wb=0}a.u&&(a.u.gc--,delete a.u);b=a.ga;for(var d=c=!1;a.Qb.length&&!a.fc;){var e=a.Qb.shift(),f=e[0],g=e[1];e=e[2];if(f=a.ab?g:f)try{var l=f.call(e||a.gd,b);m(l)&&(a.ab=a.ab&&(l==b||l instanceof Error),a.ga=b=l);if(Sc(b)||"function"===typeof k.Promise&&b instanceof k.Promise)d=!0,a.fc=!0}catch(y){b=y,a.ab=!0,rd(a)||(c=!0)}}a.ga=b;d&&(l=t(a.dd, a,!0),d=t(a.dd,a,!1),b instanceof id?(qd(b,l,d),b.Zc=!0):b.then(l,d));c&&(b=new td(b),sd[b.ea]=b,a.Wb=b.ea)},nd=function(){w.call(this)};v(nd,w);nd.prototype.message="Deferred has already fired";nd.prototype.name="AlreadyCalledError";var kd=function(){w.call(this)};v(kd,w);kd.prototype.message="Deferred was canceled";kd.prototype.name="CanceledError";var td=function(a){this.ea=k.setTimeout(t(this.Ce,this),0);this.vb=a}; td.prototype.Ce=function(){x(sd[this.ea],"Cannot throw an error that is not scheduled.");delete sd[this.ea];throw this.vb;};var sd={};var ud=function(){C.call(this);this.F=new FileReader;this.F.onloadstart=t(this.Ga,this);this.F.onprogress=t(this.Ga,this);this.F.onload=t(this.Ga,this);this.F.onabort=t(this.Ga,this);this.F.onerror=t(this.Ga,this);this.F.onloadend=t(this.Ga,this)};v(ud,C);h=ud.prototype;h.abort=function(){try{this.F.abort()}catch(a){throw new Pc(a,"aborting read");}};h.ka=function(){return this.F.readyState};h.getError=function(){return this.F.error&&new Pc(this.F.error,"reading file")}; h.Ga=function(a){this.dispatchEvent(new Qc(a,this))};h.f=function(){ud.l.f.call(this);delete this.F};h.readAsBinaryString=function(a){this.F.readAsBinaryString(a)};h.readAsArrayBuffer=function(a){this.F.readAsArrayBuffer(a)};h.readAsText=function(a,b){this.F.readAsText(a,b)};var vd=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var wd=function(a,b,c){this.reset(a,b,c,void 0,void 0)};wd.prototype.kd=null;var xd=0;wd.prototype.reset=function(a,b,c,d,e){"number"==typeof e||xd++;d||wa();this.fb=a;delete this.kd};wd.prototype.Qd=function(a){this.fb=a};var yd=function(a){this.Ed=a;this.td=this.ic=this.fb=this.u=null},zd=function(a,b){this.name=a;this.value=b};zd.prototype.toString=function(){return this.name};var Ad=new zd("SEVERE",1E3),Bd=new zd("INFO",800),Cd=new zd("CONFIG",700),Dd=new zd("FINE",500);yd.prototype.getName=function(){return this.Ed};yd.prototype.getParent=function(){return this.u};yd.prototype.pd=function(){this.ic||(this.ic={});return this.ic};yd.prototype.Qd=function(a){this.fb=a}; var Ed=function(a){if(a.fb)return a.fb;if(a.u)return Ed(a.u);Aa("Root logger has no level set.");return null};yd.prototype.log=function(a,b,c){if(a.value>=Ed(this).value)for(q(b)&&(b=b()),a=new wd(a,String(b),this.Ed),c&&(a.kd=c),c=this;c;){var d=c,e=a;if(d.td)for(var f=0;b=d.td[f];f++)b(e);c=c.getParent()}};yd.prototype.info=function(a,b){this.log(Bd,a,b)}; var Fd={},Gd=null,Hd=function(a){Gd||(Gd=new yd(""),Fd[""]=Gd,Gd.Qd(Cd));var b;if(!(b=Fd[a])){b=new yd(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=Hd(a.substr(0,c));c.pd()[d]=b;b.u=c;Fd[a]=b}return b};var Id="StopIteration"in k?k.StopIteration:{message:"StopIteration",stack:""},Jd=function(){};Jd.prototype.next=function(){throw Id;};Jd.prototype.Ca=function(){return this}; var Kd=function(a){if(a instanceof Jd)return a;if("function"==typeof a.Ca)return a.Ca(!1);if(qa(a)){var b=0,c=new Jd;c.next=function(){for(;;){if(b>=a.length)throw Id;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Ld=function(a,b){if(qa(a))try{Ha(a,b,void 0)}catch(c){if(c!==Id)throw c;}else{a=Kd(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Id)throw c;}}};var Nd=function(a){return(new Md(void 0)).A(a)},Md=function(a){this.Ob=a};Md.prototype.A=function(a){var b=[];Od(this,a,b);return b.join("")}; var Od=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(p(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f2*this.j&&Yd(this),!0):!1};var Yd=function(a){if(a.j!=a.h.length){for(var b=0,c=0;b=d.h.length)throw Id;var e=d.h[b++];return a?e:d.s[e]};return e};var Zd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var ae=function(a){if(a.m&&"function"==typeof a.m)a=a.m();else if(qa(a)||n(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},be=function(a){if(a.w&&"function"==typeof a.w)return a.w();if(n(a))return a.split("");if(qa(a)){for(var b=[],c=a.length,d=0;d");c=c.join("")}c=a.createElement(c);d&&(n(d)?c.className=d:p(d)?c.className=d.join(" "):Ne(c,d));2a.y||a.y>=d)return c.createElement("div");var e=a.x%d;0>e&&(e+=d);d=new google.maps.Point(e,a.y);a=[[a.x,a.y,b,this.oa].join("-"),this.Qc.sd()].join("-");var f=this.fd(d,b,c,a);f.tileSize=this.tileSize;We(f.J,this.opacity);this.pa.set(a,f);this.da.aa(f,"status-changed",function(){switch(f.getStatus()){case "loaded":this.dispatchEvent(new Ze(this.uc()));break;case "throttled":this.dispatchEvent(new $e(f.Ra));break;case "failed":this.dispatchEvent(new af(f.Ra, f.he))}});this.Qc.Bd(f,(new Date).getTime()/1E3);return f.J};h.releaseTile=function(a){var b=this.pa.get(a.id);this.pa.remove(a.id);b&&(b.abort(),Ya(b))};h.f=function(){Xe.l.f.call(this);this.pa.forEach(Ya);this.pa.clear();this.pa=null;Ya(this.da);this.Qc=this.da=null};var Ye=function(a,b){return Na(a.pa.w(),function(a){return a.getStatus()==b})},Ze=function(){A.call(this,"tile-load")};v(Ze,A);var $e=function(){A.call(this,"tile-throttle")};v($e,A);var af=function(){A.call(this,"tile-fail")}; v(af,A);var bf=function(a,b,c,d){C.call(this);this.Fa=a;this.zoom=b;this.J=c.createElement("div");this.J.id=d;this.se=5;this.Nb=function(){};this.Nc="new";this.Md=0;this.Cc=!1};v(bf,C); var df=function(a){if(!a.Cc&&"loading"==a.getStatus())throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");cf(a,"loading");a.ha=new E;a.ha.Oa="blob";a.ha.aa("complete",function(){var a=ve(this.ha),c=this.ha.getStatus();429==c&&cf(this,"throttled");if(vd(c)){var d={};mb(we(this.ha),function(a,b){d[b.toLowerCase()]=a});this.Ae=d;this.Rd=a;this.Xa()}else if(a){var e=new ud;e.aa("loadend",function(){this.jb(e.F.result)},void 0,this);e.readAsText(a)}else this.jb("Failed to load tile.")}, !1,a);a.ha.gb("ready",va(Ya,a.ha));a.ha.send(a.Ra,"GET")};h=bf.prototype;h.Xa=function(){this.Nb(this);cf(this,"loaded")};h.Ua=function(){Ya(this.ha)};h.jb=function(a){var b=function(a){try{if(a=JSON.parse(a),a.error&&a.error.message)return a.error.message}catch(d){}return a};this.Md>=this.se?(this.he=b(a),cf(this,"failed")):(this.Ua(),setTimeout(t(function(){this.Y||(this.Cc=!0,df(this),this.Cc=!1)},this),1E3*Math.pow(2,this.Md++)))};h.abort=function(){this.Ua();cf(this,"aborted")};h.getStatus=function(){return this.Nc}; var cf=function(a,b){a.Nc=b;a.dispatchEvent("status-changed")},ef={aborted:!0,failed:!0,loaded:!0};bf.prototype.f=function(){bf.l.f.call(this);this.Ua();this.J.remove();this.Nb=null};var ff=function(){z.call(this)};v(ff,z);var gf=function(a,b){Xe.call(this,a,b);this.ad=new D;this.jd=new D};v(gf,Xe);u("ee.layers.BinaryOverlay",gf);gf.prototype.fd=function(a,b,c,d){var e=new hf(a,b,c,d);this.da.aa(e,"status-changed",function(){"loaded"==e.getStatus()&&(this.ad.set(a,new Float32Array(e.$d)),this.jd.set(a,e.J))});return e};gf.prototype.f=function(){gf.l.f.call(this);this.jd=this.ad=null};var hf=function(a,b,c,d){bf.call(this,a,b,c,d)};v(hf,bf); hf.prototype.Xa=function(){var a=new ud;a.aa("loadend",function(){this.$d=a.F.result;bf.prototype.Xa.call(this)},void 0,this);a.readAsArrayBuffer(this.Rd)};var jf=function(a){for(var b=arguments[0],c=1;cb)throw Error("Bad port number "+b);a.La=b}else a.La=null}; tf.prototype.getPath=function(){return this.fa};tf.prototype.setPath=function(a,b){vf(this);this.fa=b?yf(a,!0):a;return this};var xf=function(a,b,c){vf(a);b instanceof zf?(a.V=b,a.V.Lc(a.N)):(c||(b=Af(b,Ff)),a.V=new zf(b,a.N))};tf.prototype.removeParameter=function(a){vf(this);this.V.remove(a);return this};var vf=function(a){if(a.oe)throw Error("Tried to modify a read-only Uri");};tf.prototype.Lc=function(a){this.N=a;this.V&&this.V.Lc(a)}; var Gf=function(a){return a instanceof tf?a.clone():new tf(a,void 0)},yf=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Af=function(a,b,c){return n(a)?(a=encodeURI(a).replace(b,Hf),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Hf=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Bf=/[#\/\?@]/g,Df=/[#\?:]/g,Cf=/[#\?]/g,Ff=/[#\?@]/g,Ef=/#/g,zf=function(a,b){this.j=this.o=null;this.K=a||null;this.N=!!b},If=function(a){a.o|| (a.o=new D,a.j=0,a.K&&ie(a.K,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=zf.prototype;h.m=function(){If(this);return this.j};h.add=function(a,b){If(this);this.K=null;a=Jf(this,a);var c=this.o.get(a);c||this.o.set(a,c=[]);c.push(b);this.j=Ba(this.j)+1;return this};h.remove=function(a){If(this);a=Jf(this,a);return this.o.ja(a)?(this.K=null,this.j=Ba(this.j)-this.o.get(a).length,this.o.remove(a)):!1};h.clear=function(){this.o=this.K=null;this.j=0}; h.isEmpty=function(){If(this);return 0==this.j};h.ja=function(a){If(this);a=Jf(this,a);return this.o.ja(a)};h.Va=function(a){var b=this.w();return 0<=Fa(b,a)};h.forEach=function(a,b){If(this);this.o.forEach(function(c,d){Ha(c,function(c){a.call(b,c,d,this)},this)},this)};h.U=function(){If(this);for(var a=this.o.w(),b=this.o.U(),c=[],d=0;db&&(b+=e);return[fg,"map",a.mapid,d,b,c].join("/")+"?token="+a.token};u("ee.data.getTileUrl",qg);var rg=function(a,b){a=xb(a);return F("/value",G(a),b)};u("ee.data.getValue",rg); var sg=function(a,b){a=xb(a);p(a.dimensions)&&(a.dimensions=a.dimensions.join("x"));a=G(a).add("getid","1");return F("/thumb",a,b)};u("ee.data.getThumbId",sg);var tg=function(a){return fg+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};u("ee.data.makeThumbUrl",tg);var ug=function(a,b){a=xb(a);return F("/download",G(a),b)};u("ee.data.getDownloadId",ug);var vg=function(a){return fg+"/api/download?docid="+a.docid+"&token="+a.token};u("ee.data.makeDownloadUrl",vg); var wg=function(a,b){a=xb(a);return F("/table",G(a),b)};u("ee.data.getTableDownloadId",wg);var xg=function(a){return fg+"/api/table?docid="+a.docid+"&token="+a.token};u("ee.data.makeTableDownloadUrl",xg);var zg=function(a,b,c){var d=yg;try{return yg=a,b.call(c)}finally{yg=d}};u("ee.data.withProfiling",zg);u("ee.data.newTaskId",function(a,b){var c={};la(a)&&(c.count=a);return F("/newtaskid",G(c),b)}); u("ee.data.getTaskStatus",function(a,b){if(n(a))a=[a];else if(!p(a))throw Error("Invalid taskId: expected a string or an array of strings.");return F("/taskstatus?q="+a.join(),null,b,"GET")});u("ee.data.getTaskList",function(a){return F("/tasklist",null,a,"GET")});u("ee.data.cancelTask",function(a,b){return Ag(a,"CANCEL",b)}); var Ag=function(a,b,c){if(n(a))a=[a];else if(!p(a))throw Error("Invalid taskId: expected a string or an array of strings.");if(!sb(Bg,b))throw Error("Invalid action: "+b);return F("/updatetask",G({id:a,action:b}),c,"POST")};u("ee.data.updateTask",Ag);u("ee.data.startProcessing",function(a,b,c){b=xb(b);b.id=a;return F("/processingrequest",G(b),c)});u("ee.data.startIngestion",function(a,b,c){a={id:a,request:Nd(b)};return F("/ingestionrequest",G(a),c)}); u("ee.data.startTableIngestion",function(a,b,c){a={id:a,tableRequest:Nd(b)};return F("/ingestionrequest",G(a),c)});var Cg=function(a,b){return F("/info",(new zf).add("id",a),b)};u("ee.data.getInfo",Cg);var Dg=function(a,b){a=G(a);return F("/list",a,b)};u("ee.data.getList",Dg);u("ee.data.getAssetRoots",function(a){return F("/buckets",null,a,"GET")});u("ee.data.createAssetHome",function(a,b){a=G({id:a});F("/createbucket",a,b)}); u("ee.data.createAsset",function(a,b,c,d,e){n(a)||(a=Nd(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;void 0!=d&&(a.properties=Nd(d));return F("/create",G(a),e)});u("ee.data.createFolder",function(a,b,c){return F("/createfolder",G({id:a,force:b||!1}),c)});u("ee.data.renameAsset",function(a,b,c){F("/rename",G({sourceId:a,destinationId:b}),c)});u("ee.data.copyAsset",function(a,b,c){F("/copy",G({sourceId:a,destinationId:b}),c)});u("ee.data.deleteAsset",function(a,b){F("/delete",G({id:a}),b)}); u("ee.data.getAssetAcl",function(a,b){return F("/getacl",G({id:a}),b,"GET")});u("ee.data.setAssetAcl",function(a,b,c){a={id:a,value:Nd(b)};F("/setacl",G(a),c)});u("ee.data.setAssetProperties",function(a,b,c){a={id:a,properties:Nd(b)};F("/setproperties",G(a),c)});u("ee.data.getAssetRootQuota",function(a,b){return F("/quota",G({id:a}),b,"GET")}); var Bg={Ge:"CANCEL",Je:"UPDATE"},F=function(a,b,c,d){hg();var e=yg,f={"Content-Type":"application/x-www-form-urlencoded"},g=ag();if(null!=g)f.Authorization=g;else if(c&&Tf&&Kf)return Of(function(){zg(e,function(){F(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new zf;e&&b.add("profiling","1");null!=Vf&&b.add("api_key",Vf);b=kg(b,a);null!=gg&&(f["X-XSRF-Token"]=gg);var l=b?b.toString():"";"GET"!=g||/^[\s\xa0]*$/.test(l)||(a+=-1!=a.indexOf("?")?"&":"?",a+=l,l=null);var y=dg+a;if(c)return Eg.push(Fg(y, c,g,l,f)),Gg.sc(),null;for(var oa=function(a,b){this.setRequestHeader&&this.setRequestHeader(b,a)},Ka,Ug=0;;){Ka=Wd();Ka.open(g,y,!1);mb(f,oa,Ka);Ka.send(l);if(429!=Ka.status||5f)return f++,setTimeout(function(){Eg.push(g);Gg.sc()},Math.min(12E4, 1E3*Math.pow(2,f))),null;var c=a.getStatus(),d=t(a.getResponseHeader,a);try{var e=a.a?a.a.responseText:""}catch(kj){Sd(a.I,"Can not get responseText: "+kj.message),e=""}return Hg(c,d,e,l,b)};return g},Hg=function(a,b,c,d,e){var f=b("X-Earth-Engine-Computation-Profile");f&&d&&d(f);b=(b=b("Content-Type"))?b.replace(/;.*/,""):"application/json";if("application/json"==b||"text/json"==b)try{var g=JSON.parse(c);var l=g.data}catch(oa){var y="Invalid JSON: "+c}else y="Response was unexpectedly not JSON, but "+ b;if(r(g))"error"in g&&"message"in g.error?y=g.error.message:"data"in g||(y="Malformed response: "+c);else if(0===a)y="Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";else if(200>a||300<=a)y="Server returned HTTP code: "+a;if(e)return e(l,y),null;if(!y)return l;throw Error(y);},Nf=function(a){var b=function(){k.gapi.config.update("client/cors",!0);Tf||(Tf=k.gapi.auth.authorize);a()};if(r(k.gapi)&&r(k.gapi.auth)&&q(k.gapi.auth.authorize))b(); else{for(var c=wa().toString(36);c in k;)c+="_";k[c]=function(){delete k[c];b()};sf(Ke({onload:c}))}},Sf=function(a,b,c){c.access_token?(b=c.token_type+" "+c.access_token,isFinite(c.expires_in)&&(c=900*c.expires_in,setTimeout(Of,.9*c),Zf=wa()+c),Mf=b,a&&a()):b&&b(c.error||"Unknown error.")},G=function(a){var b=new zf;a=ia(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=ia(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},Eg=[],Gg=new mf(function(){var a=Eg.shift();if(a){var b= a.url,c=a.hc,d=a.method,e=a.content;a=a.headers;var f=ig,g=new E;ne.push(g);c&&g.aa("complete",c);g.gb("ready",g.ce);f&&(g.Sa=Math.max(0,f));g.send(b,d,e,a)}0==Eg.length||Gg.sc()},350),dg=null,fg=null,gg=null,kg=Bc,Mf=null,Zf=null,Kf=null,Lf=[],Tf=null,Ge=Ce("https://apis.google.com/js/client.js?onload=%{onload}"),Vf=null,eg=!1,ig=0,yg=null;var Ig=function(a,b){this.zd=a;this.Zb=b};Ig.prototype.getKey=function(){return this.zd};Ig.prototype.clone=function(){return new Ig(this.zd,this.Zb)};var Jg=function(a){this.O=[];if(a)a:{if(a instanceof Jg){var b=a.U();a=a.w();if(0>=this.m()){for(var c=this.O,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};h=Jg.prototype; h.remove=function(){var a=this.O,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Qa(a);else{a[0]=a.pop();a=0;b=this.O;for(var d=b.length,e=b[a];a>1;){var f=2*a+1,g=2*a+2;f=ge.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.Zb}};h.w=function(){for(var a=this.O,b=[],c=a.length,d=0;dc)return!1;!(b instanceof H)&&5this.Gb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.Z=new Lg;this.la=new H;this.lc=0;this.Dc=null;this.pb()};v(Qg,z);Qg.prototype.Za=function(){var a=wa();if(!(null!=this.Dc&&a-this.Dcthis.Gb&&0e&&(e+=d);return[a.re,c,e,b.y].join("/")};fh.prototype.uc=function(){return this.qa.length};var hh=function(a){A.call(this,"tileevent");this.count=a};v(hh,A);var ih=function(){};var jh=function(){this.ia=-1};var kh=function(){this.ia=64;this.C=Array(4);this.Yd=Array(this.ia);this.Ub=this.Ta=0;this.reset()};v(kh,jh);kh.prototype.reset=function(){this.C[0]=1732584193;this.C[1]=4023233417;this.C[2]=2562383102;this.C[3]=271733878;this.Ub=this.Ta=0}; var lh=function(a,b,c){c||(c=0);var d=Array(16);if(n(b))for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.C[0];c=a.C[1];e=a.C[2];var f=a.C[3];var g=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e& (f^b))+d[3]+3250441966&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(g<<12&4294967295|g>>>20);g= e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(g<<5&4294967295| g>>>27);g=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(g<<20&4294967295| g>>>12);g=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(g<<14&4294967295| g>>>18);g=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^ b^c)+d[7]+4139469664&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[12]+3873151461&4294967295; f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+ (g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[13]+1309151649&4294967295; c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.C[0]=a.C[0]+b&4294967295;a.C[1]=a.C[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.C[2]=a.C[2]+e&4294967295;a.C[3]=a.C[3]+f&4294967295}; kh.prototype.update=function(a,b){m(b)||(b=a.length);for(var c=b-this.ia,d=this.Yd,e=this.Ta,f=0;fthis.Ta?this.ia:2*this.ia)-this.Ta);a[0]=128;for(var b=1;bb;++b)for(var d=0;32>d;d+=8)a[c++]=this.C[b]>>>d&255;return a};var mh=function(a){this.ob="__ee_hash__";this.Bc=!1!==a;this.Pa=[];this.Ha={};this.Wc=[]};u("ee.Serializer",mh);var nh=new Md,oh=new kh,qh=function(a,b){return ph(new mh(m(b)?b:!0),a)};u("ee.Serializer.encode",qh);var rh=function(a){return nh.A(qh(a))};u("ee.Serializer.toJSON",rh);var sh=function(a){a=ph(new mh(!1),a);return"JSON"in k?k.JSON.stringify(a,null," "):nh.A(a)};u("ee.Serializer.toReadableJSON",sh); var ph=function(a,b){b=a.ub(b);a.Bc&&(b=r(b)&&"ValueRef"==b.type&&1==a.Pa.length?a.Pa[0][1]:{type:"CompoundValue",scope:a.Pa,value:b},a.Pa=[],Ha(a.Wc,t(function(a){delete a[this.ob]},a)),a.Wc=[],a.Ha={});return b}; mh.prototype.ub=function(a){if(!m(a))throw Error("Can't encode an undefined value.");var b=r(a)?a[this.ob]:null;if(this.Bc&&null!=b&&this.Ha[b])return{type:"ValueRef",value:this.Ha[b]};if(null===a||"boolean"==typeof a||la(a)||n(a))return a;if(r(a)&&"function"==typeof a.getFullYear)return{type:"Invocation",functionName:"Date",arguments:{value:Math.floor(a.getTime())}};if(a instanceof ih){var c=a.encode(t(this.ub,this));if(!(p(c)||r(c)&&"ArgumentRef"!=c.type))return c}else if(p(a))c=Ja(a,function(a){return this.ub(a)}, this);else if(r(a)&&!q(a))c=ob(a,function(a){if(!q(a))return this.ub(a)},this),wb(c,this.ob),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.Bc){oh.reset();oh.update(nh.A(c));b=oh.digest().toString();if(this.Ha[b])var d=this.Ha[b];else d=String(this.Pa.length),this.Pa.push([d,c]),this.Ha[b]=d;a[this.ob]=b;this.Wc.push(a);return{type:"ValueRef",value:d}}return c};var I=function(a,b,c){if(!(this instanceof I))return J(I,arguments);if(c&&(a||b))throw Error('When "opt_varName" is specified, "func" and "args" must be null.');if(a&&!b)throw Error('When "func" is specified, "args" must not be null.');this.i=a;this.args=b;this.B=c||null};v(I,ih);u("ee.ComputedObject",I);I.prototype.evaluate=function(a){if(!a||!q(a))throw Error("evaluate() requires a callback function.");rg({json:this.A()},a)};I.prototype.evaluate=I.prototype.evaluate; I.prototype.$=function(a){return rg({json:this.A()},a)};I.prototype.getInfo=I.prototype.$;I.prototype.encode=function(a){if(null===this.i&&null===this.args)return{type:"ArgumentRef",value:this.B};var b={},c;for(c in this.args)m(this.args[c])&&(b[c]=a(this.args[c]));b={type:"Invocation",arguments:b};a=a(this.i);b[n(a)?"functionName":"function"]=a;return b};I.prototype.A=function(){return rh(this)};I.prototype.serialize=I.prototype.A; I.prototype.toString=function(){return"ee."+this.name()+"("+sh(this)+")"};u("ee.ComputedObject.prototype.toString",I.prototype.toString);I.prototype.name=function(){return"ComputedObject"};I.prototype.Xc=function(a,b){var c=Ua(arguments);c[0]=this;a.apply(k,c);return this};I.prototype.aside=I.prototype.Xc; var th=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;a=new c;a.i=b.i;a.args=b.args;a.B=b.B;return a},J=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var uh={},vh=function(a){return a.prototype instanceof I?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"},wh=function(a,b){if(b==a)return!0;switch(a){case "Element":return"Element"==b||"Image"==b||"Feature"==b||"Collection"==b||"ImageCollection"==b||"FeatureCollection"==b;case "FeatureCollection":case "Collection":return"Collection"==b||"ImageCollection"==b||"FeatureCollection"==b;case "Object":return!0;default:return!1}},xh=function(a){return la(a)|| a instanceof I&&"Number"==a.name()},yh=function(a){return n(a)||a instanceof I&&"String"==a.name()},zh=function(a){return r(a)&&!q(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1};var K=function(){if(!(this instanceof K))return new K};v(K,ih);u("ee.Function",K);var Ah=Bc;K.prototype.call=function(a){return this.apply(Bh(this,Array.prototype.slice.call(arguments,0)))};K.prototype.call=K.prototype.call;K.prototype.apply=function(a){a=new I(this,Ch(this,a));return Ah(a,this.H().returns)};K.prototype.apply=K.prototype.apply; var Dh=function(a,b,c){var d=m(b),e=a.H(),f=!1;if(1==c.length&&zh(c[0])){var g=e.args;d&&(g=g.slice(1));g.length&&(f=!((1==g.length||g[1].optional)&&"Dictionary"==g[0].type))}if(f){if(c=xb(c[0]),d){d=e.args[0].name;if(d in c)throw Error("Named args for "+e.name+" can't contain keyword "+d);c[d]=b}}else c=Bh(a,d?[b].concat(c):c);return a.apply(c)},Ch=function(a,b){for(var c=a.H().args,d={},e={},f=0;f/,"");for(var c=0;c/,"");return new L(b,a)}),a&&a())};a?og(c):c(og())}},N=function(a,b,c,d){Ih();var e=d||"";mb(Gh,function(d,g){var f=g.split(".");if(2==f.length&&f[0]==b){f=e+f[1];var y=d.H();Hh[g]=!0;var oa=!1;y.args.length&&(g=y.args[0].type,oa="Object"!=g&&wh(g, c));g=oa?a.prototype:a;f in g&&!g[f].signature||(g[f]=function(a){return Dh(d,oa?this:void 0,Array.prototype.slice.call(arguments,0))},g[f].toString=t(d.toString,d,f,oa),g[f].signature=y)}})},O=function(a){var b=function(a){for(var b in a)q(a[b])&&a[b].signature&&delete a[b]};b(a);b(a.prototype)};var P=function(a,b){var c=Mh(a),d=Ja(c,function(a){return a.replace(/^opt_/,"")});a=(a=Nh(a))?" to function "+a:"";var e={},f=b[0],g=r(f)&&!q(f)&&!p(f)&&!(f instanceof I);if(1d.length)throw Error("Received too many arguments"+a+". Expected at most "+d.length+" but got "+b.length+".");for(f=0;f=arguments.length){var c=arguments[0];if(b=zh(c))a:{b=rb(c);var d=["properties"];if(qa(b)&&qa(d)&&b.length==d.length){for(var e=b.length,f=0;fc||4/,"");c[e]=!0}var f=k.ee,g;for(g in b)g in c&&!(g in f)&&(f[g]=sj(g),mj.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,Hh[g]=!0):f[g].signature={});uh=f;tj()}catch(l){jj(l);return}fj="ready";for(gj=[];0a.te)return!1;a.Yc++;ah(a.G,a.ea);setTimeout(t(a.Be,a),0);return!0}; yj.prototype.Be=function(){if(!this.Da){var a=t(function(a){this.Da||($g(this.G,this.ea,a),ic(this.G,Bj,t(this.le,this)),this.G.start())},this),b=this.getUrl();if(Gf(b).V.ja("profiling")){var c=new E;c.Oa="blob";c.aa("complete",t(function(){this.Jd=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(200<=c.getStatus()&&300>c.getStatus())try{var d=URL.createObjectURL(ve(c))}catch(e){}a(d||b)},this));c.gb("ready",t(c.X,c));c.send(b,"GET")}else a(b)}};var Cj=function(){this.P=!1}; v(Cj,z);Cj.prototype.setActive=function(a){this.P=a};Cj.prototype.xd=function(){return this.P};var xj=function(a,b){Tg.call(this,a,b)};v(xj,Tg);xj.prototype.kc=function(){return new Cj};xj.prototype.sb=function(a){a.X()};xj.prototype.Gc=function(a){return!a.Y&&!a.xd()};var Z=function(a,b,c,d,e){fh.call(this,a,b,c,d,e);this.minZoom=d.minZoom||0;this.maxZoom=d.maxZoom||20;if(!window.google||!window.google.maps)throw Error("Google Maps API hasn't been initialized.");this.tileSize=d.tileSize||new google.maps.Size(256,256);this.Eb=m(d.Eb)?d.Eb:!0;this.name=d.name;this.Sc=new H;this.Hc=1;this.L=e||null};v(Z,fh);u("ee.MapLayerOverlay",Z);Z.prototype.dc=function(a){return jc(this,"tileevent",a)};Z.prototype.addTileCallback=Z.prototype.dc;Z.prototype.Kc=function(a){rc(a)}; Z.prototype.removeTileCallback=Z.prototype.Kc;Z.prototype.getTile=function(a,b,c){if(ba.y||a.y>=1<