(function(){var h,aa=aa||{},k=this,m=function(a){return void 0!==a},n=function(a){return"string"==typeof a},p=function(a){return"number"==typeof a},ba=function(){},ca=function(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},da=function(a){return null!=a},q=function(a){return"array"==ca(a)},ea=function(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length},r=function(a){return"function"==ca(a)},t=function(a){var b=typeof a;return"object"==b&&null!=a||"function"== b},fa="closure_uid_"+(1E9*Math.random()>>>0),ha=0,ia=function(a,b,c){return a.call.apply(a.bind,arguments)},ja=function(a,b,c){if(!a)throw Error();if(2")&&(a=a.replace(ta,">"));-1!=a.indexOf('"')&&(a=a.replace(ua,"""));-1!=a.indexOf("'")&& (a=a.replace(va,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(wa,"�"));return a},ra=/&/g,sa=//g,ua=/"/g,va=/'/g,wa=/\x00/g,pa=/[\x00&<>"']/,ya=function(a,b){return ab?1:0};var za=function(a,b){b.unshift(a);y.call(this,na.apply(null,b));b.shift()};x(za,y);za.prototype.name="AssertionError"; var Aa=function(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a&&(e+=": "+a,f=b);throw new za(""+e,f||[]);},z=function(a,b,c){a||Aa("",null,b,Array.prototype.slice.call(arguments,2));return a},Ba=function(a,b){throw new za("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Ca=function(a,b,c){p(a)||Aa("Expected number but got %s: %s.",[ca(a),a],b,Array.prototype.slice.call(arguments,2));return a},Da=function(a,b,c){r(a)||Aa("Expected function but got %s: %s.",[ca(a), a],b,Array.prototype.slice.call(arguments,2))},Ea=function(a,b,c){t(a)||Aa("Expected object but got %s: %s.",[ca(a),a],b,Array.prototype.slice.call(arguments,2))},Fa=function(a,b,c){q(a)||Aa("Expected array but got %s: %s.",[ca(a),a],b,Array.prototype.slice.call(arguments,2))};var Ga=Array.prototype.indexOf?function(a,b,c){z(null!=a.length);return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(n(a))return n(b)&&1==b.length?a.indexOf(b,c):-1;for(;cc&&(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},Ia=Array.prototype.forEach?function(a,b,c){z(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]},Ra=function(a){if(!q(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},Ta= function(a,b){b=Ga(a,b);var c;(c=0<=b)&&Sa(a,b);return c},Sa=function(a,b){z(null!=a.length);Array.prototype.splice.call(a,b,1)},Ua=function(a){return Array.prototype.concat.apply([],arguments)},Va=function(a){var b=a.length;if(0=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},Ya=function(a){for(var b={},c=0,d=0;dparseFloat(Cb)){Bb=String(Eb);break a}}Bb=Cb} var Fb=Bb,tb={},Gb=function(a){return ub(a,function(){for(var b=0,c=oa(String(Fb)).split("."),d=oa(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f=a.keyCode)a.keyCode=-1}catch(b){}};var Nb="closure_listenable_"+(1E6*Math.random()|0),Ob=function(a){return!(!a||!a[Nb])},Pb=0;var Qb=function(a,b,c,d,e){this.listener=a;this.Kb=null;this.src=b;this.type=c;this.capture=!!d;this.ca=e;this.key=++Pb;this.La=this.pb=!1},Rb=function(a){a.La=!0;a.listener=null;a.Kb=null;a.src=null;a.ca=null};var Sb=function(a){this.src=a;this.C={};this.kb=0};Sb.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.C[f];a||(a=this.C[f]=[],this.kb++);var g=Tb(a,b,d,e);-1d.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); e=a.type;for(var f=d.length-1;!b.wa&&0<=f;f--)b.currentTarget=d[f],a=ic(d[f],e,!0,b),c=c&&a;for(f=0;!b.wa&&f>>0),$b=function(a){z(a,"Listener can not be null.");if(r(a))return a;z(a.handleEvent,"An object listener must have handleEvent method.");a[jc]||(a[jc]=function(b){return a.handleEvent(b)});return a[jc]};var kc=function(a){A.call(this);this.ta=a;this.f={}};x(kc,A);var lc=[];kc.prototype.$=function(a,b,c,d){q(b)||(b&&(lc[0]=b.toString()),b=lc);for(var e=0;e++d,"infinite loop")}b=this.Wd;d=a.type||a;if(n(a))a=new B(a,b);else if(a instanceof B)a.target=a.target||b;else{var e=a;a=new B(d,b);rb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.wa&&0<=f;f--){var g=a.currentTarget=c[f];e=oc(g,d,!0,a)&&e}a.wa||(g=a.currentTarget=b,e=oc(g,d,!0,a)&&e,a.wa||(e=oc(g,d,!1,a)&&e));if(c)for(f=0;!a.wa&&f=b.gc&&b.cancel())}this.Fd?this.Fd.call(this.gd,this):this.Mc=!0;this.Ha||Zc(this,new $c)}};Yc.prototype.dd=function(a,b){this.fc=!1;ad(this,a,b)}; var ad=function(a,b,c){a.Ha=!0;a.fa=c;a.Za=!b;bd(a)},dd=function(a){if(a.Ha){if(!a.Mc)throw new cd;a.Mc=!1}};Yc.prototype.hc=function(a){dd(this);ed(a);ad(this,!0,a)};var Zc=function(a,b){dd(a);ed(b);ad(a,!1,b)},ed=function(a){z(!(a instanceof Yc),"An execution sequence may not be initiated with a blocking Deferred.")},fd=function(a,b,c){z(!a.Zc,"Blocking Deferreds can not be re-used");a.Ob.push([b,c,void 0]);a.Ha&&bd(a)}; Yc.prototype.then=function(a,b,c){var d,e,f=new Kc(function(a,b){d=a;e=b});fd(this,d,function(a){a instanceof $c?f.cancel():e(a)});return f.then(a,b,c)};Gc(Yc); var gd=function(a){return La(a.Ob,function(a){return r(a[1])})},bd=function(a){if(a.Wb&&a.Ha&&gd(a)){var b=a.Wb,c=hd[b];c&&(k.clearTimeout(c.da),delete hd[b]);a.Wb=0}a.s&&(a.s.gc--,delete a.s);b=a.fa;for(var d=c=!1;a.Ob.length&&!a.fc;){var e=a.Ob.shift(),f=e[0],g=e[1];e=e[2];if(f=a.Za?g:f)try{var l=f.call(e||a.gd,b);m(l)&&(a.Za=a.Za&&(l==b||l instanceof Error),a.fa=b=l);if(Hc(b)||"function"===typeof k.Promise&&b instanceof k.Promise)d=!0,a.fc=!0}catch(w){b=w,a.Za=!0,gd(a)||(c=!0)}}a.fa=b;d&&(l=u(a.dd, a,!0),d=u(a.dd,a,!1),b instanceof Yc?(fd(b,l,d),b.Zc=!0):b.then(l,d));c&&(b=new id(b),hd[b.da]=b,a.Wb=b.da)},cd=function(){y.call(this)};x(cd,y);cd.prototype.message="Deferred has already fired";cd.prototype.name="AlreadyCalledError";var $c=function(){y.call(this)};x($c,y);$c.prototype.message="Deferred was canceled";$c.prototype.name="CanceledError";var id=function(a){this.da=k.setTimeout(u(this.De,this),0);this.tb=a}; id.prototype.De=function(){z(hd[this.da],"Cannot throw an error that is not scheduled.");delete hd[this.da];throw this.tb;};var hd={};var jd=function(){C.call(this);this.D=new FileReader;this.D.onloadstart=u(this.Fa,this);this.D.onprogress=u(this.Fa,this);this.D.onload=u(this.Fa,this);this.D.onabort=u(this.Fa,this);this.D.onerror=u(this.Fa,this);this.D.onloadend=u(this.Fa,this)};x(jd,C);h=jd.prototype;h.abort=function(){try{this.D.abort()}catch(a){throw new Ec(a,"aborting read");}};h.ja=function(){return this.D.readyState};h.getError=function(){return this.D.error&&new Ec(this.D.error,"reading file")}; h.Fa=function(a){this.dispatchEvent(new Fc(a,this))};h.c=function(){jd.j.c.call(this);delete this.D};h.readAsBinaryString=function(a){this.D.readAsBinaryString(a)};h.readAsArrayBuffer=function(a){this.D.readAsArrayBuffer(a)};h.readAsText=function(a,b){this.D.readAsText(a,b)};var kd=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var ld=function(a,b,c,d,e){this.reset(a,b,c,d,e)};ld.prototype.kd=null;var md=0;ld.prototype.reset=function(a,b,c,d,e){"number"==typeof e||md++;d||la();this.cb=a;this.ue=b;delete this.kd};ld.prototype.Qd=function(a){this.cb=a};var nd=function(a){this.Ed=a;this.td=this.ic=this.cb=this.s=null},od=function(a,b){this.name=a;this.value=b};od.prototype.toString=function(){return this.name};var pd=new od("SEVERE",1E3),qd=new od("INFO",800),rd=new od("CONFIG",700),sd=new od("FINE",500);nd.prototype.getName=function(){return this.Ed};nd.prototype.getParent=function(){return this.s};nd.prototype.pd=function(){this.ic||(this.ic={});return this.ic};nd.prototype.Qd=function(a){this.cb=a}; var td=function(a){if(a.cb)return a.cb;if(a.s)return td(a.s);Ba("Root logger has no level set.");return null};nd.prototype.log=function(a,b,c){if(a.value>=td(this).value)for(r(b)&&(b=b()),a=new ld(a,String(b),this.Ed),c&&(a.kd=c),c="log:"+a.ue,(b=k.console)&&b.timeStamp&&b.timeStamp(c),(b=k.msWriteProfilerMark)&&b(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()}};nd.prototype.info=function(a,b){this.log(qd,a,b)}; var ud={},vd=null,wd=function(a){vd||(vd=new nd(""),ud[""]=vd,vd.Qd(rd));var b;if(!(b=ud[a])){b=new nd(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=wd(a.substr(0,c));c.pd()[d]=b;b.s=c;ud[a]=b}return b};var xd="StopIteration"in k?k.StopIteration:{message:"StopIteration",stack:""},yd=function(){};yd.prototype.next=function(){throw xd;};yd.prototype.Ba=function(){return this}; var zd=function(a){if(a instanceof yd)return a;if("function"==typeof a.Ba)return a.Ba(!1);if(ea(a)){var b=0,c=new yd;c.next=function(){for(;;){if(b>=a.length)throw xd;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Ad=function(a,b){if(ea(a))try{Ia(a,b,void 0)}catch(c){if(c!==xd)throw c;}else{a=zd(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==xd)throw c;}}};var Bd=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))},Cd=function(a){a=String(a);if(Bd(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);},Ed=function(a){return(new Dd(void 0)).w(a)},Dd=function(a){this.Mb=a}; Dd.prototype.w=function(a){var b=[];Fd(this,a,b);return b.join("")}; var Fd=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(q(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f2*this.i&&Pd(this),!0):!1};var Pd=function(a){var b,c;if(a.i!=a.f.length){for(b=c=0;c=d.f.length)throw xd;var e=d.f[b++];return a?e:d.o[e]};return e};var Qd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Sd=function(a){if(a.l&&"function"==typeof a.l)a=a.l();else if(ea(a)||n(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},Td=function(a){if(a.u&&"function"==typeof a.u)return a.u();if(n(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d");c=c.join("")}c=a.createElement(c);d&&(n(d)?c.className=d:q(d)?c.className=d.join(" "):Ee(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.na].join("-"),this.Qc.sd()].join("-");var f=this.fd(d,b,c,a);f.tileSize=this.tileSize;Ne(f.I,this.opacity);this.oa.set(a,f);this.ca.$(f,"status-changed",function(){switch(f.getStatus()){case "loaded":this.dispatchEvent(new Qe(this.uc()));break;case "throttled":this.dispatchEvent(new Re);break;case "failed":this.dispatchEvent(new Se)}}); this.Qc.Bd(f,(new Date).getTime()/1E3);return f.I};h.releaseTile=function(a){var b=this.oa.get(a.id);this.oa.remove(a.id);b&&(b.abort(),Za(b))};h.c=function(){Oe.j.c.call(this);this.oa.forEach(Za);this.oa.clear();this.oa=null;Za(this.ca);this.Qc=this.ca=null};var Pe=function(a,b){return Oa(a.oa.u(),function(a){return a.getStatus()==b})},Qe=function(){B.call(this,"tile-load")};x(Qe,B);var Re=function(){B.call(this,"tile-throttle")};x(Re,B);var Se=function(){B.call(this,"tile-fail")};x(Se,B); var Te=function(a,b,c,d){C.call(this);this.Ea=a;this.zoom=b;this.I=c.createElement("div");this.I.id=d;this.se=5;this.Lb=function(){};this.Nc="new";this.Md=0;this.Cc=!1};x(Te,C); var Ve=function(a){if(!a.Cc&&"loading"==a.getStatus())throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");Ue(a,"loading");a.ga=new E;a.ga.Na="blob";a.ga.$("complete",function(){var a=me(this.ga),c=this.ga.getStatus();429==c&&Ue(this,"throttled");if(kd(c)){var d={};db(ne(this.ga),function(a,b){d[b.toLowerCase()]=a});this.Be=d;this.Rd=a;this.Va()}else if(a){var e=new jd;e.$("loadend",function(){this.hb(e.D.result)},void 0,this);e.readAsText(a)}else this.hb("Failed to load tile.")}, !1,a);a.ga.eb("ready",ka(Za,a.ga));a.ga.send(a.Pb,"GET")};h=Te.prototype;h.Va=function(){this.Lb(this);Ue(this,"loaded")};h.Sa=function(){Za(this.ga)};h.hb=function(a){if(this.Md>=this.se){try{JSON.parse(a)}catch(b){}Ue(this,"failed")}else this.Sa(),setTimeout(u(function(){this.X||(this.Cc=!0,Ve(this),this.Cc=!1)},this),1E3*Math.pow(2,this.Md++))};h.abort=function(){this.Sa();Ue(this,"aborted")};h.getStatus=function(){return this.Nc}; var Ue=function(a,b){a.Nc=b;a.dispatchEvent("status-changed")},We={aborted:!0,failed:!0,loaded:!0};Te.prototype.c=function(){Te.j.c.call(this);this.Sa();this.I.remove();this.Lb=null};var Xe=function(){A.call(this)};x(Xe,A);var Ye=function(a,b){Oe.call(this,a,b);this.ad=new D;this.jd=new D};x(Ye,Oe);v("ee.layers.BinaryOverlay",Ye);Ye.prototype.fd=function(a,b,c,d){var e=new Ze(a,b,c,d);this.ca.$(e,"status-changed",function(){"loaded"==e.getStatus()&&(this.ad.set(a,new Float32Array(e.$d)),this.jd.set(a,e.I))});return e};Ye.prototype.c=function(){Ye.j.c.call(this);this.jd=this.ad=null};var Ze=function(a,b,c,d){Te.call(this,a,b,c,d)};x(Ze,Te); Ze.prototype.Va=function(){var a=new jd;a.$("loadend",function(){this.$d=a.D.result;Te.prototype.Va.call(this)},void 0,this);a.readAsArrayBuffer(this.Rd)};var $e=function(a){for(var b=arguments[0],c=1;cb)throw Error("Bad port number "+b);a.Ka=b}else a.Ka=null}; kf.prototype.getPath=function(){return this.ea};kf.prototype.setPath=function(a,b){mf(this);this.ea=b?pf(a,!0):a;return this};var of=function(a,b,c){mf(a);b instanceof qf?(a.U=b,a.U.Lc(a.M)):(c||(b=rf(b,wf)),a.U=new qf(b,0,a.M))};kf.prototype.removeParameter=function(a){mf(this);this.U.remove(a);return this};var mf=function(a){if(a.oe)throw Error("Tried to modify a read-only Uri");};kf.prototype.Lc=function(a){this.M=a;this.U&&this.U.Lc(a);return this}; var xf=function(a){return a instanceof kf?a.clone():new kf(a,void 0)},pf=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},rf=function(a,b,c){return n(a)?(a=encodeURI(a).replace(b,yf),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},yf=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},sf=/[#\/\?@]/g,uf=/[\#\?:]/g,tf=/[\#\?]/g,wf=/[\#\?@]/g,vf=/#/g,qf=function(a,b,c){this.i=this.m=null;this.J=a||null;this.M=!!c},zf=function(a){a.m|| (a.m=new D,a.i=0,a.J&&Zd(a.J,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=qf.prototype;h.l=function(){zf(this);return this.i};h.add=function(a,b){zf(this);this.J=null;a=Af(this,a);var c=this.m.get(a);c||this.m.set(a,c=[]);c.push(b);this.i=Ca(this.i)+1;return this};h.remove=function(a){zf(this);a=Af(this,a);return this.m.ia(a)?(this.J=null,this.i=Ca(this.i)-this.m.get(a).length,this.m.remove(a)):!1};h.clear=function(){this.m=this.J=null;this.i=0}; h.isEmpty=function(){zf(this);return 0==this.i};h.ia=function(a){zf(this);a=Af(this,a);return this.m.ia(a)};h.Ta=function(a){var b=this.u();return 0<=Ga(b,a)};h.forEach=function(a,b){zf(this);this.m.forEach(function(c,d){Ia(c,function(c){a.call(b,c,d,this)},this)},this)};h.T=function(){zf(this);for(var a=this.m.u(),b=this.m.T(),c=[],d=0;db&&(b+=e);return[Vf,"map",a.mapid,d,b,c].join("/")+"?token="+a.token};v("ee.data.getTileUrl",eg);var fg=function(a,b){a=ob(a);return F("/value",G(a),b)};v("ee.data.getValue",fg);var gg=function(a,b){a=ob(a);q(a.dimensions)&&(a.dimensions=a.dimensions.join("x"));a=G(a).add("getid","1");return F("/thumb",a,b)};v("ee.data.getThumbId",gg);var hg=function(a){return Vf+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token}; v("ee.data.makeThumbUrl",hg);var ig=function(a,b){a=ob(a);return F("/download",G(a),b)};v("ee.data.getDownloadId",ig);var jg=function(a){return Vf+"/api/download?docid="+a.docid+"&token="+a.token};v("ee.data.makeDownloadUrl",jg);var kg=function(a,b){a=ob(a);return F("/table",G(a),b)};v("ee.data.getTableDownloadId",kg);var lg=function(a){return Vf+"/api/table?docid="+a.docid+"&token="+a.token};v("ee.data.makeTableDownloadUrl",lg); var ng=function(a,b,c){var d=mg;try{return mg=a,b.call(c)}finally{mg=d}};v("ee.data.withProfiling",ng);v("ee.data.newTaskId",function(a,b){var c={};p(a)&&(c.count=a);return F("/newtaskid",G(c),b)});v("ee.data.getTaskStatus",function(a,b){if(n(a))a=[a];else if(!q(a))throw Error("Invalid taskId: expected a string or an array of strings.");return F("/taskstatus?q="+a.join(),null,b,"GET")});v("ee.data.getTaskList",function(a){return F("/tasklist",null,a,"GET")}); v("ee.data.cancelTask",function(a,b){return og(a,"CANCEL",b)});var og=function(a,b,c){if(n(a))a=[a];else if(!q(a))throw Error("Invalid taskId: expected a string or an array of strings.");if(!jb(pg,b))throw Error("Invalid action: "+b);return F("/updatetask",G({id:a,action:b}),c,"POST")};v("ee.data.updateTask",og);v("ee.data.startProcessing",function(a,b,c){b=ob(b);b.id=a;return F("/processingrequest",G(b),c)}); v("ee.data.startIngestion",function(a,b,c){a={id:a,request:Ed(b)};return F("/ingestionrequest",G(a),c)});v("ee.data.startTableIngestion",function(a,b,c){a={id:a,tableRequest:Ed(b)};return F("/ingestionrequest",G(a),c)});var qg=function(a,b){return F("/info",(new qf).add("id",a),b)};v("ee.data.getInfo",qg);var rg=function(a,b){a=G(a);return F("/list",a,b)};v("ee.data.getList",rg);v("ee.data.getAssetRoots",function(a){return F("/buckets",null,a,"GET")}); v("ee.data.createAssetHome",function(a,b){a=G({id:a});F("/createbucket",a,b)});v("ee.data.createAsset",function(a,b,c,d){n(a)||(a=Ed(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;return F("/create",G(a),d)});v("ee.data.createFolder",function(a,b,c){return F("/createfolder",G({id:a,force:b||!1}),c)});v("ee.data.renameAsset",function(a,b,c){F("/rename",G({sourceId:a,destinationId:b}),c)});v("ee.data.copyAsset",function(a,b,c){F("/copy",G({sourceId:a,destinationId:b}),c)}); v("ee.data.deleteAsset",function(a,b){F("/delete",G({id:a}),b)});v("ee.data.getAssetAcl",function(a,b){return F("/getacl",G({id:a}),b,"GET")});v("ee.data.setAssetAcl",function(a,b,c){a={id:a,value:Ed(b)};F("/setacl",G(a),c)});v("ee.data.setAssetProperties",function(a,b,c){a={id:a,properties:Ed(b)};F("/setproperties",G(a),c)});v("ee.data.getAssetRootQuota",function(a,b){return F("/quota",G({id:a}),b,"GET")}); var pg={He:"CANCEL",Ke:"UPDATE"},F=function(a,b,c,d){Xf();var e=mg,f={"Content-Type":"application/x-www-form-urlencoded"},g=Qf();if(null!=g)f.Authorization=g;else if(c&&Kf&&Bf)return Ff(function(){ng(e,function(){F(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new qf;e&&b.add("profiling","1");b=$f(b,a);null!=Wf&&(f["X-XSRF-Token"]=Wf);var l=b?b.toString():"";"GET"!=g||/^[\s\xa0]*$/.test(l)||(a+=-1!=a.indexOf("?")?"&":"?",a+=l,l=null);var w=Tf+a;if(c)return f=sg(w,c,g,l,f),tg.push(f),ug.sc(),null;for(var qa= function(a,b){this.setRequestHeader&&this.setRequestHeader(b,a)},Ma,Mg=0;;){Ma=Nd();Ma.open(g,w,!1);db(f,qa,Ma);Ma.send(l);if(429!=Ma.status||5f)return f++,setTimeout(function(){tg.push(g);ug.sc()},Math.min(12E4,1E3*Math.pow(2,f))),null;var c=a.getStatus(), d=u(a.getResponseHeader,a);try{var e=a.a?a.a.responseText:""}catch(Zi){Jd(a.H,"Can not get responseText: "+Zi.message),e=""}return vg(c,d,e,l,b)};return g},vg=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(qa){var w="Invalid JSON: "+c}else w="Response was unexpectedly not JSON, but "+b;if(t(g))"error"in g&&"message"in g.error? w=g.error.message:"data"in g||(w="Malformed response: "+c);else if(0===a)w="Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";else if(200>a||300<=a)w="Server returned HTTP code: "+a;if(e)return e(l,w),null;if(!w)return l;throw Error(w);},Ef=function(a){var b=function(){k.gapi.config.update("client/cors",!0);Kf||(Kf=k.gapi.auth.authorize);a()};if(t(k.gapi)&&t(k.gapi.auth)&&r(k.gapi.auth.authorize))b();else{for(var c=la().toString(36);c in k;)c+="_";k[c]=function(){delete k[c];b()};jf(ye({onload:c}))}},Jf=function(a,b,c){c.access_token?(b=c.token_type+" "+c.access_token,isFinite(c.expires_in)&&(c=900*c.expires_in,setTimeout(Ff,.9*c),Of=la()+c),Df=b,a&&a()):b&&b(c.error||"Unknown error.")},G=function(a){var b=new qf,c;for(c in a)b.set(c,a[c]);return b},tg=[],ug=new cf(function(){var a=tg.shift();if(a){var b=a.url,c=a.hc,d=a.method,e=a.content;a=a.headers;var f=Yf,g=new E;de.push(g);c&&g.$("complete",c);g.eb("ready",g.ce);f&&(g.Qa=Math.max(0, f));g.send(b,d,e,a)}0==tg.length||ug.sc()},350),Tf=null,Vf=null,Wf=null,$f=qc,Df=null,Of=null,Bf=null,Cf=[],Kf=null,ze=te("https://apis.google.com/js/client.js?onload=%{onload}"),Uf=!1,Yf=0,mg=null;var wg=function(a,b){this.zd=a;this.Zb=b};wg.prototype.getKey=function(){return this.zd};wg.prototype.clone=function(){return new wg(this.zd,this.Zb)};var xg=function(a){this.N=[];if(a)a:{if(a instanceof xg){var b=a.T();a=a.u();if(0>=this.l()){for(var c=this.N,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c};h=xg.prototype; h.remove=function(){var a=this.N,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ra(a);else{a[0]=a.pop();a=0;b=this.N;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.u=function(){for(var a=this.N,b=[],c=a.length,d=0;dc)return!1;!(b instanceof H)&&5this.Eb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.Y=new zg;this.ka=new H;this.lc=0;this.Dc=null;this.nb()};x(Eg,A);Eg.prototype.Xa=function(){var a=la();if(!(null!=this.Dc&&a-this.Dcthis.Eb&&0e&&(e+=d);return[a.re,c,e,b.y].join("/")};Ug.prototype.uc=function(){return this.pa.length};var Wg=function(a){B.call(this,"tileevent");this.count=a};x(Wg,B);var Xg=function(){};var Yg=function(){this.ha=-1};var Zg=function(){this.ha=64;this.B=Array(4);this.Yd=Array(this.ha);this.Ub=this.Ra=0;this.reset()};x(Zg,Yg);Zg.prototype.reset=function(){this.B[0]=1732584193;this.B[1]=4023233417;this.B[2]=2562383102;this.B[3]=271733878;this.Ub=this.Ra=0}; var $g=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.B[0];c=a.B[1];e=a.B[2];var f=a.B[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.B[0]=a.B[0]+b&4294967295;a.B[1]=a.B[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.B[2]=a.B[2]+e&4294967295;a.B[3]=a.B[3]+f&4294967295}; Zg.prototype.update=function(a,b){m(b)||(b=a.length);for(var c=b-this.ha,d=this.Yd,e=this.Ra,f=0;fthis.Ra?this.ha:2*this.ha)-this.Ra);a[0]=128;for(var b=1;bb;++b)for(var d=0;32>d;d+=8)a[c++]=this.B[b]>>>d&255;return a};var ah=function(a){this.mb="__ee_hash__";this.Bc=!1!==a;this.Oa=[];this.Ga={};this.Wc=[]};v("ee.Serializer",ah);var bh=new Dd,ch=new Zg,eh=function(a,b){return dh(new ah(m(b)?b:!0),a)};v("ee.Serializer.encode",eh);var fh=function(a){return bh.w(eh(a))};v("ee.Serializer.toJSON",fh);var gh=function(a){a=dh(new ah(!1),a);return"JSON"in k?k.JSON.stringify(a,null," "):bh.w(a)};v("ee.Serializer.toReadableJSON",gh); var dh=function(a,b){b=a.sb(b);a.Bc&&(b=t(b)&&"ValueRef"==b.type&&1==a.Oa.length?a.Oa[0][1]:{type:"CompoundValue",scope:a.Oa,value:b},a.Oa=[],Ia(a.Wc,u(function(a){delete a[this.mb]},a)),a.Wc=[],a.Ga={});return b}; ah.prototype.sb=function(a){if(!m(a))throw Error("Can't encode an undefined value.");var b=t(a)?a[this.mb]:null;if(this.Bc&&null!=b&&this.Ga[b])return{type:"ValueRef",value:this.Ga[b]};if(null===a||"boolean"==typeof a||p(a)||n(a))return a;if(t(a)&&"function"==typeof a.getFullYear)return{type:"Invocation",functionName:"Date",arguments:{value:Math.floor(a.getTime())}};if(a instanceof Xg){var c=a.encode(u(this.sb,this));if(!(q(c)||t(c)&&"ArgumentRef"!=c.type))return c}else if(q(a))c=Ka(a,function(a){return this.sb(a)}, this);else if(t(a)&&!r(a))c=fb(a,function(a){if(!r(a))return this.sb(a)},this),nb(c,this.mb),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.Bc){ch.reset();ch.update(bh.w(c));b=ch.digest().toString();if(this.Ga[b])var d=this.Ga[b];else d=String(this.Oa.length),this.Oa.push([d,c]),this.Ga[b]=d;a[this.mb]=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.h=a;this.v=b;this.A=c||null};x(I,Xg);v("ee.ComputedObject",I);I.prototype.evaluate=function(a){if(!a||!r(a))throw Error("evaluate() requires a callback function.");fg({json:this.w()},a)};I.prototype.evaluate=I.prototype.evaluate; I.prototype.Z=function(a){return fg({json:this.w()},a)};I.prototype.getInfo=I.prototype.Z;I.prototype.encode=function(a){if(null===this.h&&null===this.v)return{type:"ArgumentRef",value:this.A};var b={},c;for(c in this.v)m(this.v[c])&&(b[c]=a(this.v[c]));b={type:"Invocation",arguments:b};a=a(this.h);b[n(a)?"functionName":"function"]=a;return b};I.prototype.w=function(){return fh(this)};I.prototype.serialize=I.prototype.w;I.prototype.toString=function(){return"ee."+this.name()+"("+gh(this)+")"}; v("ee.ComputedObject.prototype.toString",I.prototype.toString);I.prototype.name=function(){return"ComputedObject"};I.prototype.Xc=function(a,b){var c=Va(arguments);c[0]=this;a.apply(k,c);return this};I.prototype.aside=I.prototype.Xc;var hh=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;a=new c;a.h=b.h;a.v=b.v;a.A=b.A;return a},J=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var ih={},jh=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"},kh=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}},lh=function(a){return p(a)|| a instanceof I&&"Number"==a.name()},mh=function(a){return n(a)||a instanceof I&&"String"==a.name()},nh=function(a){return t(a)&&!r(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1};var K=function(){if(!(this instanceof K))return new K};x(K,Xg);v("ee.Function",K);var oh=qc;K.prototype.call=function(a){return this.apply(ph(this,Array.prototype.slice.call(arguments,0)))};K.prototype.call=K.prototype.call;K.prototype.apply=function(a){a=new I(this,qh(this,a));return oh(a,this.G().returns)};K.prototype.apply=K.prototype.apply; var rh=function(a,b,c){var d=m(b),e=a.G(),f=!1;if(1==c.length&&nh(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=ob(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=ph(a,d?[b].concat(c):c);return a.apply(c)},qh=function(a,b){for(var c=a.G().args,d={},e={},f=0;f/,"");for(var c=0;c/,"");return new L(b,a)}),a&&a())};a?F("/algorithms",null,c,"GET"):c(F("/algorithms",null,void 0,"GET"))}},N=function(a,b,c,d){wh();var e=d||"";db(uh,function(d,g){var f=g.split(".");if(2==f.length&&f[0]==b){f=e+f[1];var w=d.G();vh[g]=!0;var qa=!1; w.args.length&&(g=w.args[0].type,qa="Object"!=g&&kh(g,c));g=qa?a.prototype:a;f in g&&!g[f].signature||(g[f]=function(a){return rh(d,qa?this:void 0,Array.prototype.slice.call(arguments,0))},g[f].toString=u(d.toString,d,f,qa),g[f].signature=w)}})},O=function(a){var b=function(a){for(var b in a)r(a[b])&&a[b].signature&&delete a[b]};b(a);b(a.prototype)};var P=function(a,b){var c=Ah(a),d=Ka(c,function(a){return a.replace(/^opt_/,"")});a=(a=Bh(a))?" to function "+a:"";var e={},f=b[0],g=t(f)&&!r(f)&&!q(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=nh(c))a:{b=ib(c);var d=["properties"];if(ea(b)&&ea(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]=gj(g),aj.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,vh[g]=!0):f[g].signature={});ih=f;hj()}catch(l){Yi(l);return}Ui="ready";for(Vi=[];0a.te)return!1;a.Yc++;Pg(a.F,a.da);setTimeout(u(a.Ce,a),0);return!0}; mj.prototype.Ce=function(){if(!this.Ca){var a=u(function(a){this.Ca||(Og(this.F,this.da,a),Yb(this.F,pj,u(this.le,this)),this.F.start())},this),b=this.getUrl();if(xf(b).U.ia("profiling")){var c=new E;c.Na="blob";c.$("complete",u(function(){this.Jd=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(200<=c.getStatus()&&300>c.getStatus())try{var d=URL.createObjectURL(me(c))}catch(e){}a(d||b)},this));c.eb("ready",u(c.W,c));c.send(b,"GET")}else a(b)}};var qj=function(){this.O=!1}; x(qj,A);qj.prototype.setActive=function(a){this.O=a};qj.prototype.xd=function(){return this.O};var lj=function(a,b){Hg.call(this,a,b)};x(lj,Hg);lj.prototype.kc=function(){return new qj};lj.prototype.qb=function(a){a.W()};lj.prototype.Gc=function(a){return!a.X&&!a.xd()};var Z=function(a,b,c,d,e){Ug.call(this,a,b,c);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.Cb=m(d.Cb)?d.Cb:!0;this.name=d.name;this.Sc=new H;this.Hc=1;this.K=e||null};x(Z,Ug);v("ee.MapLayerOverlay",Z);Z.prototype.dc=function(a){return Zb(this,"tileevent",a)};Z.prototype.addTileCallback=Z.prototype.dc;Z.prototype.Kc=function(a){gc(a)}; Z.prototype.removeTileCallback=Z.prototype.Kc;Z.prototype.getTile=function(a,b,c){if(ba.y||a.y>=1<