mirror of
https://github.com/google/earthengine-api.git
synced 2025-12-08 19:26:12 +00:00
250 lines
118 KiB
JavaScript
250 lines
118 KiB
JavaScript
(function() {var b,e=e||{};e.global=this;e.uf=function(a,c,d){a=a.split(".");d=d||e.global;a[0]in d||!d.execScript||d.execScript("var "+a[0]);for(var f;a.length&&(f=a.shift());)a.length||void 0===c?d=d[f]?d[f]:d[f]={}:d[f]=c};e.pp=function(a,c){e.uf(a,c)};e.gc=!0;e.Vm="en";e.Fh=!0;e.Dq=function(a){e.uf(a)};e.Pq=function(a){if(!e.gc)throw a=a||"",Error("Importing test-only code into non-debug environment"+a?": "+a:".");};
|
|
e.Xf=function(a){a=a.split(".");for(var c=e.global,d;d=a.shift();)if(e.bb(c[d]))c=c[d];else return null;return c};e.Sp=function(a,c){var d=c||e.global,f;for(f in a)d[f]=a[f]};e.Bo=function(a,c,d){if(e.hh){var f;a=a.replace(/\\/g,"/");for(var g=e.fc,h=0;f=c[h];h++)g.Wc[f]=a,a in g.pf||(g.pf[a]={}),g.pf[a][f]=!0;for(f=0;c=d[f];f++)a in g.Xc||(g.Xc[a]={}),g.Xc[a][c]=!0}};e.hr=!1;e.fm=!0;e.Iq=function(){};e.Yd="";e.fg=function(){};e.Wp=function(a){return a};
|
|
e.Ao=function(){throw Error("unimplemented abstract method");};e.Co=function(a){a.Tg=function(){if(a.Yc)return a.Yc;e.gc&&(e.mh[e.mh.length]=a);return a.Yc=new a}};e.mh=[];e.hh=!1;
|
|
e.hh&&(e.hk={},e.fc={pf:{},Wc:{},Xc:{},dh:{},Zd:{}},e.qh=function(){var a=e.global.document;return"undefined"!=typeof a&&"write"in a},e.Yk=function(){if(e.global.uk)e.Yd=e.global.uk;else if(e.qh())for(var a=e.global.document.getElementsByTagName("script"),c=a.length-1;0<=c;--c){var d=a[c].src,f=d.lastIndexOf("?"),f=-1==f?d.length:f;if("base.js"==d.substr(f-7,7)){e.Yd=d.substr(0,f-7);break}}},e.bh=function(a){var c=e.global.rl||e.sk;!e.fc.Zd[a]&&c(a)&&(e.fc.Zd[a]=!0)},e.sk=function(a){if(e.qh()){var c=
|
|
e.global.document;if("complete"==c.readyState){if(/\bdeps.js$/.test(a))return!1;throw Error('Cannot write "'+a+'" after document load');}c.write('<script type="text/javascript" src="'+a+'">\x3c/script>');return!0}return!1},e.kr=function(){function a(g){if(!(g in f.Zd)){if(!(g in f.dh)&&(f.dh[g]=!0,g in f.Xc))for(var k in f.Xc[g])if(!e.ql(k))if(k in f.Wc)a(f.Wc[k]);else throw Error("Undefined nameToPath for "+k);g in d||(d[g]=!0,c.push(g))}}var c=[],d={},f=e.fc,g;for(g in e.hk)f.Zd[g]||a(g);for(g=
|
|
0;g<c.length;g++)if(c[g])e.bh(e.Yd+c[g]);else throw Error("Undefined script input");},e.Hp=function(a){return a in e.fc.Wc?e.fc.Wc[a]:null},e.Yk(),e.global.Il||e.bh(e.Yd+"deps.js"));
|
|
e.Da=function(a){var c=typeof a;if("object"==c)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return c;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
|
|
else if("function"==c&&"undefined"==typeof a.call)return"object";return c};e.aa=function(a){return void 0!==a};e.zf=function(a){return null===a};e.bb=function(a){return null!=a};e.isArray=function(a){return"array"==e.Da(a)};e.Y=function(a){var c=e.Da(a);return"array"==c||"object"==c&&"number"==typeof a.length};e.Uh=function(a){return e.Pa(a)&&"function"==typeof a.getFullYear};e.q=function(a){return"string"==typeof a};e.Gf=function(a){return"boolean"==typeof a};e.ia=function(a){return"number"==typeof a};
|
|
e.xa=function(a){return"function"==e.Da(a)};e.Pa=function(a){var c=typeof a;return"object"==c&&null!=a||"function"==c};e.Vc=function(a){return a[e.Zc]||(a[e.Zc]=++e.vk)};e.Up=function(a){return!!a[e.Zc]};e.ll=function(a){"removeAttribute"in a&&a.removeAttribute(e.Zc);try{delete a[e.Zc]}catch(c){}};e.Zc="closure_uid_"+(1E9*Math.random()>>>0);e.vk=0;e.zp=e.Vc;e.Gq=e.ll;
|
|
e.mk=function(a){var c=e.Da(a);if("object"==c||"array"==c){if(a.ba)return a.ba();var c="array"==c?[]:{},d;for(d in a)c[d]=e.mk(a[d]);return c}return a};e.yk=function(a,c,d){return a.call.apply(a.bind,arguments)};e.xk=function(a,c,d){if(!a)throw Error();if(2<arguments.length){var f=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,f);return a.apply(c,d)}}return function(){return a.apply(c,arguments)}};
|
|
e.bind=function(a,c,d){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e.bind=e.yk:e.bind=e.xk;return e.bind.apply(null,arguments)};e.Gg=function(a,c){var d=Array.prototype.slice.call(arguments,1);return function(){var c=d.slice();c.push.apply(c,arguments);return a.apply(this,c)}};e.Gh=function(a,c){for(var d in c)a[d]=c[d]};e.now=e.Fh&&Date.now||function(){return+new Date};
|
|
e.Rp=function(a){if(e.global.execScript)e.global.execScript(a,"JavaScript");else if(e.global.eval)if(null==e.de&&(e.global.eval("var _et_ = 1;"),"undefined"!=typeof e.global._et_?(delete e.global._et_,e.de=!0):e.de=!1),e.de)e.global.eval(a);else{var c=e.global.document,d=c.createElement("script");d.type="text/javascript";d.defer=!1;d.appendChild(c.createTextNode(a));c.body.appendChild(d);c.body.removeChild(d)}else throw Error("goog.globalEval not available");};e.de=null;
|
|
e.xp=function(a,c){var d=function(a){return e.sh[a]||a},f=function(a){a=a.split("-");for(var c=[],f=0;f<a.length;f++)c.push(d(a[f]));return c.join("-")},f=e.sh?"BY_WHOLE"==e.wk?d:f:function(a){return a};return c?a+"-"+f(c):f(a)};e.Jq=function(a,c){e.sh=a;e.wk=c};e.Cp=function(a,c){var d=c||{},f;for(f in d){var g=(""+d[f]).replace(/\$/g,"$$$$");a=a.replace(RegExp("\\{\\$"+f+"\\}","gi"),g)}return a};e.Dp=function(a){return a};e.T=function(a,c){e.uf(a,c,void 0)};e.j=function(a,c,d){a[c]=d};
|
|
e.A=function(a,c){function d(){}d.prototype=c.prototype;a.Ja=c.prototype;a.prototype=new d;a.prototype.constructor=a};
|
|
e.Oo=function(a,c,d){var f=arguments.callee.caller;if(e.gc&&!f)throw Error("arguments.caller not defined. goog.base() expects not to be running in strict mode. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if(f.Ja)return f.Ja.constructor.apply(a,Array.prototype.slice.call(arguments,1));for(var g=Array.prototype.slice.call(arguments,2),h=!1,k=a.constructor;k;k=k.Ja&&k.Ja.constructor)if(k.prototype[c]===f)h=!0;else if(h)return k.prototype[c].apply(a,g);if(a[c]===f)return a.constructor.prototype[c].apply(a,
|
|
g);throw Error("goog.base called from a method of one name to a method of a different name");};e.scope=function(a){a.call(e.global)};e.Hk=!0;
|
|
e.Hk&&(Function.prototype.bind=Function.prototype.bind||function(a,c){if(1<arguments.length){var d=Array.prototype.slice.call(arguments,1);d.unshift(this,a);return e.bind.apply(null,d)}return e.bind(this,a)},Function.prototype.Gg=function(a){var c=Array.prototype.slice.call(arguments);c.unshift(this,null);return e.bind.apply(null,c)},Function.prototype.A=function(a){e.A(this,a)},Function.prototype.Gh=function(a){e.Gh(this.prototype,a)});e.object={};e.object.forEach=function(a,c,d){for(var f in a)c.call(d,a[f],f,a)};e.object.filter=function(a,c,d){var f={},g;for(g in a)c.call(d,a[g],g,a)&&(f[g]=a[g]);return f};e.object.map=function(a,c,d){var f={},g;for(g in a)f[g]=c.call(d,a[g],g,a);return f};e.object.some=function(a,c,d){for(var f in a)if(c.call(d,a[f],f,a))return!0;return!1};e.object.every=function(a,c,d){for(var f in a)if(!c.call(d,a[f],f,a))return!1;return!0};e.object.wa=function(a){var c=0,d;for(d in a)c++;return c};
|
|
e.object.vp=function(a){for(var c in a)return c};e.object.wp=function(a){for(var c in a)return a[c]};e.object.contains=function(a,c){return e.object.Xb(a,c)};e.object.N=function(a){var c=[],d=0,f;for(f in a)c[d++]=a[f];return c};e.object.da=function(a){var c=[],d=0,f;for(f in a)c[d++]=f;return c};e.object.Qp=function(a,c){for(var d=e.Y(c),f=d?c:arguments,d=d?0:1;d<f.length&&(a=a[f[d]],e.aa(a));d++);return a};e.object.$a=function(a,c){return c in a};
|
|
e.object.Xb=function(a,c){for(var d in a)if(a[d]==c)return!0;return!1};e.object.Zk=function(a,c,d){for(var f in a)if(c.call(d,a[f],f,a))return f};e.object.up=function(a,c,d){return(c=e.object.Zk(a,c,d))&&a[c]};e.object.ma=function(a){for(var c in a)return!1;return!0};e.object.clear=function(a){for(var c in a)delete a[c]};e.object.remove=function(a,c){var d;(d=c in a)&&delete a[c];return d};
|
|
e.object.add=function(a,c,d){if(c in a)throw Error('The object already contains the key "'+c+'"');e.object.set(a,c,d)};e.object.get=function(a,c,d){return c in a?a[c]:d};e.object.set=function(a,c,d){a[c]=d};e.object.Oq=function(a,c,d){return c in a?a[c]:a[c]=d};e.object.ba=function(a){var c={},d;for(d in a)c[d]=a[d];return c};e.object.tg=function(a){var c=e.Da(a);if("object"==c||"array"==c){if(a.ba)return a.ba();var c="array"==c?[]:{},d;for(d in a)c[d]=e.object.tg(a[d]);return c}return a};
|
|
e.object.ol=function(a){var c={},d;for(d in a)c[a[d]]=d;return c};e.object.Eh="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");e.object.extend=function(a,c){for(var d,f,g=1;g<arguments.length;g++){f=arguments[g];for(d in f)a[d]=f[d];for(var h=0;h<e.object.Eh.length;h++)d=e.object.Eh[h],Object.prototype.hasOwnProperty.call(f,d)&&(a[d]=f[d])}};
|
|
e.object.create=function(a){var c=arguments.length;if(1==c&&e.isArray(arguments[0]))return e.object.create.apply(null,arguments[0]);if(c%2)throw Error("Uneven number of arguments");for(var d={},f=0;f<c;f+=2)d[arguments[f]]=arguments[f+1];return d};e.object.Ok=function(a){var c=arguments.length;if(1==c&&e.isArray(arguments[0]))return e.object.Ok.apply(null,arguments[0]);for(var d={},f=0;f<c;f++)d[arguments[f]]=!0;return d};
|
|
e.object.lp=function(a){var c=a;Object.isFrozen&&!Object.isFrozen(a)&&(c=Object.create(a),Object.freeze(c));return c};e.object.dq=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};e.ca={};e.ca.rk=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+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))};e.ca.parse=function(a){a=String(a);if(e.ca.rk(a))try{return eval("("+a+")")}catch(c){}throw Error("Invalid JSON string: "+a);};e.ca.gr=function(a){return eval("("+a+")")};e.ca.ga=function(a,c){return(new e.ca.B(c)).ga(a)};
|
|
e.ca.B=function(a){this.fe=a};e.ca.B.prototype.ga=function(a){var c=[];l(this,a,c);return c.join("")};
|
|
var l=function(a,c,d){switch(typeof c){case "string":p(c,d);break;case "number":d.push(isFinite(c)&&!isNaN(c)?c:"null");break;case "boolean":d.push(c);break;case "undefined":d.push("null");break;case "object":if(null==c){d.push("null");break}if(e.isArray(c)){var f=c.length;d.push("[");for(var g="",h=0;h<f;h++)d.push(g),g=c[h],l(a,a.fe?a.fe.call(c,String(h),g):g,d),g=",";d.push("]");break}d.push("{");f="";for(h in c)Object.prototype.hasOwnProperty.call(c,h)&&(g=c[h],"function"!=typeof g&&(d.push(f),
|
|
p(h,d),d.push(":"),l(a,a.fe?a.fe.call(c,h,g):g,d),f=","));d.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof c);}};e.ca.B.nf={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"};e.ca.B.ek=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
|
|
var p=function(a,c){c.push('"',a.replace(e.ca.B.ek,function(a){if(a in e.ca.B.nf)return e.ca.B.nf[a];var c=a.charCodeAt(0),g="\\u";16>c?g+="000":256>c?g+="00":4096>c&&(g+="0");return e.ca.B.nf[a]=g+c.toString(16)}),'"')};e.debug={};e.debug.Ic=function(a){Error.captureStackTrace?Error.captureStackTrace(this,e.debug.Ic):this.stack=Error().stack||"";a&&(this.message=String(a))};e.A(e.debug.Ic,Error);e.debug.Ic.prototype.name="CustomError";e.Rg={};e.Rg.Vj={Uj:1,wl:2,Kk:3,Fl:4,im:5,hm:6,Ln:7,Jl:8,Ck:9,Xl:10,Wl:11,yn:12};e.c={};e.c.wo={wn:"\u00a0"};e.c.kd=function(a,c){return 0==a.lastIndexOf(c,0)};e.c.ki=function(a){var c=a.length-1;return 0<=c&&a.indexOf("/",c)==c};e.c.Yo=function(a,c){return 0==e.c.Ng(c,a.substr(0,c.length))};e.c.Xo=function(a,c){return 0==e.c.Ng(c,a.substr(a.length-c.length,c.length))};e.c.Cj=function(a){return e.g.t.Df.toLowerCase()==a.toLowerCase()};
|
|
e.c.mj=function(a,c){for(var d=a.split("%s"),f="",g=Array.prototype.slice.call(arguments,1);g.length&&1<d.length;)f+=d.shift()+g.shift();return f+d.join("%s")};e.c.dp=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};e.c.ma=function(a){return/^[\s\xa0]*$/.test(a)};e.c.cq=function(a){return e.c.ma(e.c.Wi(a))};e.c.aq=function(a){return!/[^\t\n\r ]/.test(a)};e.c.Zp=function(a){return!/[^a-zA-Z]/.test(a)};e.c.fq=function(a){return!/[^0-9]/.test(a)};e.c.$p=function(a){return!/[^a-zA-Z0-9]/.test(a)};
|
|
e.c.hq=function(a){return" "==a};e.c.iq=function(a){return 1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\ufffd">=a};e.c.Wq=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};e.c.Wo=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};e.c.uq=function(a){return a.replace(/\xa0|\s/g," ")};e.c.tq=function(a){return a.replace(/\xa0|[ \t]+/g," ")};e.c.cp=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};e.c.trim=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};
|
|
e.c.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};e.c.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};e.c.Ng=function(a,c){var d=String(a).toLowerCase(),f=String(c).toLowerCase();return d<f?-1:d==f?0:1};e.c.Og=/(\.\d+)|(\d+)|(\D+)/g;
|
|
e.c.wq=function(a,c){if(a==c)return 0;if(!a)return-1;if(!c)return 1;for(var d=a.toLowerCase().match(e.c.Og),f=c.toLowerCase().match(e.c.Og),g=Math.min(d.length,f.length),h=0;h<g;h++){var k=d[h],m=f[h];if(k!=m)return d=parseInt(k,10),!isNaN(d)&&(f=parseInt(m,10),!isNaN(f)&&d-f)?d-f:k<m?-1:1}return d.length!=f.length?d.length-f.length:a<c?-1:1};e.c.nc=function(a){return encodeURIComponent(String(a))};e.c.md=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
|
|
e.c.Dj=function(a,c){return a.replace(/(\r\n|\r|\n)/g,c?"<br />":"<br>")};e.c.Hc=function(a){if(!e.c.Yi.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(e.c.Zi,"&"));-1!=a.indexOf("<")&&(a=a.replace(e.c.aj,"<"));-1!=a.indexOf(">")&&(a=a.replace(e.c.$i,">"));-1!=a.indexOf('"')&&(a=a.replace(e.c.bj,"""));return a};e.c.Zi=/&/g;e.c.aj=/</g;e.c.$i=/>/g;e.c.bj=/\"/g;e.c.Yi=/[&<>\"]/;e.c.Eg=function(a){return e.c.contains(a,"&")?"document"in e.global?e.c.pj(a):e.c.qj(a):a};
|
|
e.c.pj=function(a){var c={"&":"&","<":"<",">":">",""":'"'},d=document.createElement("div");return a.replace(e.c.Bj,function(a,g){var h=c[a];if(h)return h;if("#"==g.charAt(0)){var k=Number("0"+g.substr(1));isNaN(k)||(h=String.fromCharCode(k))}h||(d.innerHTML=a+" ",h=d.firstChild.nodeValue.slice(0,-1));return c[a]=h})};
|
|
e.c.qj=function(a){return a.replace(/&([^;]+);/g,function(a,d){switch(d){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==d.charAt(0)){var f=Number("0"+d.substr(1));if(!isNaN(f))return String.fromCharCode(f)}return a}})};e.c.Bj=/&([^;\s<&]+);?/g;e.c.ir=function(a,c){return e.c.Dj(a.replace(/ /g,"  "),c)};
|
|
e.c.Xq=function(a,c){for(var d=c.length,f=0;f<d;f++){var g=1==d?c:c.charAt(f);if(a.charAt(0)==g&&a.charAt(a.length-1)==g)return a.substring(1,a.length-1)}return a};e.c.truncate=function(a,c,d){d&&(a=e.c.Eg(a));a.length>c&&(a=a.substring(0,c-3)+"...");d&&(a=e.c.Hc(a));return a};
|
|
e.c.dr=function(a,c,d,f){d&&(a=e.c.Eg(a));if(f&&a.length>c)f>c&&(f=c),a=a.substring(0,c-f)+"..."+a.substring(a.length-f);else if(a.length>c){f=Math.floor(c/2);var g=a.length-f;a=a.substring(0,f+c%2)+"..."+a.substring(g)}d&&(a=e.c.Hc(a));return a};e.c.Ze={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\"};e.c.Jd={"'":"\\'"};
|
|
e.c.quote=function(a){a=String(a);if(a.quote)return a.quote();for(var c=['"'],d=0;d<a.length;d++){var f=a.charAt(d),g=f.charCodeAt(0);c[d+1]=e.c.Ze[f]||(31<g&&127>g?f:e.c.Ig(f))}c.push('"');return c.join("")};e.c.sp=function(a){for(var c=[],d=0;d<a.length;d++)c[d]=e.c.Ig(a.charAt(d));return c.join("")};
|
|
e.c.Ig=function(a){if(a in e.c.Jd)return e.c.Jd[a];if(a in e.c.Ze)return e.c.Jd[a]=e.c.Ze[a];var c=a,d=a.charCodeAt(0);if(31<d&&127>d)c=a;else{if(256>d){if(c="\\x",16>d||256<d)c+="0"}else c="\\u",4096>d&&(c+="0");c+=d.toString(16).toUpperCase()}return e.c.Jd[a]=c};e.c.$q=function(a){for(var c={},d=0;d<a.length;d++)c[a.charAt(d)]=!0;return c};e.c.contains=function(a,c){return-1!=a.indexOf(c)};e.c.gp=function(a,c){return a&&c?a.split(c).length-1:0};
|
|
e.c.sc=function(a,c,d){var f=a;0<=c&&c<a.length&&0<d&&(f=a.substr(0,c)+a.substr(c+d,a.length-c-d));return f};e.c.remove=function(a,c){var d=RegExp(e.c.Ne(c),"");return a.replace(d,"")};e.c.qc=function(a,c){var d=RegExp(e.c.Ne(c),"g");return a.replace(d,"")};e.c.Ne=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};e.c.repeat=function(a,c){return Array(c+1).join(a)};
|
|
e.c.xq=function(a,c,d){a=e.aa(d)?a.toFixed(d):String(a);d=a.indexOf(".");-1==d&&(d=a.length);return e.c.repeat("0",Math.max(0,c-d))+a};e.c.Wi=function(a){return null==a?"":String(a)};e.c.ji=function(a){return Array.prototype.join.call(arguments,"")};e.c.Lf=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^e.now()).toString(36)};
|
|
e.c.Fg=function(a,c){for(var d=0,f=e.c.trim(String(a)).split("."),g=e.c.trim(String(c)).split("."),h=Math.max(f.length,g.length),k=0;0==d&&k<h;k++){var m=f[k]||"",n=g[k]||"",q=RegExp("(\\d*)(\\D*)","g"),s=RegExp("(\\d*)(\\D*)","g");do{var y=q.exec(m)||["","",""],r=s.exec(n)||["","",""];if(0==y[0].length&&0==r[0].length)break;d=e.c.af(0==y[1].length?0:parseInt(y[1],10),0==r[1].length?0:parseInt(r[1],10))||e.c.af(0==y[2].length,0==r[2].length)||e.c.af(y[2],r[2])}while(0==d)}return d};
|
|
e.c.af=function(a,c){return a<c?-1:a>c?1:0};e.c.Aj=4294967296;e.c.Vp=function(a){for(var c=0,d=0;d<a.length;++d)c=31*c+a.charCodeAt(d),c%=e.c.Aj;return c};e.c.Fj=2147483648*Math.random()|0;e.c.mp=function(){return"goog_"+e.c.Fj++};e.c.ar=function(a){var c=Number(a);return 0==c&&e.c.ma(a)?NaN:c};e.c.eq=function(a){return/^[a-z]+([A-Z][a-z]*)*$/.test(a)};e.c.jq=function(a){return/^([A-Z][a-z]*)+$/.test(a)};e.c.Zq=function(a){return String(a).replace(/\-([a-z])/g,function(a,d){return d.toUpperCase()})};
|
|
e.c.br=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};e.c.cr=function(a,c){var d=e.q(c)?e.c.Ne(c):"\\s";return a.replace(RegExp("(^"+(d?"|["+d+"]+":"")+")([a-z])","g"),function(a,c,d){return c+d.toUpperCase()})};e.c.yq=function(a){isFinite(a)&&(a=String(a));return e.q(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN};e.c.Tq=function(a,c,d){a=a.split(c);for(var f=[];0<d&&a.length;)f.push(a.shift()),d--;a.length&&f.push(a.join(c));return f};e.l={};e.l.Ra=e.gc;e.l.Wd=function(a,c){c.unshift(a);e.debug.Ic.call(this,e.c.mj.apply(null,c));c.shift()};e.A(e.l.Wd,e.debug.Ic);e.l.Wd.prototype.name="AssertionError";e.l.Wa=function(a,c,d,f){var g="Assertion failed";if(d)var g=g+(": "+d),h=f;else a&&(g+=": "+a,h=c);throw new e.l.Wd(""+g,h||[]);};e.l.assert=function(a,c,d){e.l.Ra&&!a&&e.l.Wa("",null,c,Array.prototype.slice.call(arguments,2));return a};
|
|
e.l.ld=function(a,c){if(e.l.Ra)throw new e.l.Wd("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};e.l.Ko=function(a,c,d){e.l.Ra&&!e.ia(a)&&e.l.Wa("Expected number but got %s: %s.",[e.Da(a),a],c,Array.prototype.slice.call(arguments,2));return a};e.l.No=function(a,c,d){e.l.Ra&&!e.q(a)&&e.l.Wa("Expected string but got %s: %s.",[e.Da(a),a],c,Array.prototype.slice.call(arguments,2));return a};
|
|
e.l.Io=function(a,c,d){e.l.Ra&&!e.xa(a)&&e.l.Wa("Expected function but got %s: %s.",[e.Da(a),a],c,Array.prototype.slice.call(arguments,2));return a};e.l.Lo=function(a,c,d){e.l.Ra&&!e.Pa(a)&&e.l.Wa("Expected object but got %s: %s.",[e.Da(a),a],c,Array.prototype.slice.call(arguments,2));return a};e.l.Vh=function(a,c,d){e.l.Ra&&!e.isArray(a)&&e.l.Wa("Expected array but got %s: %s.",[e.Da(a),a],c,Array.prototype.slice.call(arguments,2))};
|
|
e.l.Go=function(a,c,d){e.l.Ra&&!e.Gf(a)&&e.l.Wa("Expected boolean but got %s: %s.",[e.Da(a),a],c,Array.prototype.slice.call(arguments,2));return a};e.l.Ho=function(a,c,d){!e.l.Ra||e.Pa(a)&&a.nodeType==e.Rg.Vj.Uj||e.l.Wa("Expected Element but got %s: %s.",[e.Da(a),a],c,Array.prototype.slice.call(arguments,2));return a};e.l.Jo=function(a,c,d,f){!e.l.Ra||a instanceof c||e.l.Wa("instanceof check failed.",null,d,Array.prototype.slice.call(arguments,3));return a};
|
|
e.l.Mo=function(){for(var a in Object.prototype)e.l.ld(a+" should not be enumerable in Object.prototype.")};e.b={};e.Ya=e.Fh;e.b.zq=function(a){return a[a.length-1]};e.b.F=Array.prototype;e.b.indexOf=e.Ya&&e.b.F.indexOf?function(a,c,d){e.l.assert(null!=a.length);return e.b.F.indexOf.call(a,c,d)}:function(a,c,d){d=null==d?0:0>d?Math.max(0,a.length+d):d;if(e.q(a))return e.q(c)&&1==c.length?a.indexOf(c,d):-1;for(;d<a.length;d++)if(d in a&&a[d]===c)return d;return-1};
|
|
e.b.lastIndexOf=e.Ya&&e.b.F.lastIndexOf?function(a,c,d){e.l.assert(null!=a.length);return e.b.F.lastIndexOf.call(a,c,null==d?a.length-1:d)}:function(a,c,d){d=null==d?a.length-1:d;0>d&&(d=Math.max(0,a.length+d));if(e.q(a))return e.q(c)&&1==c.length?a.lastIndexOf(c,d):-1;for(;0<=d;d--)if(d in a&&a[d]===c)return d;return-1};
|
|
e.b.forEach=e.Ya&&e.b.F.forEach?function(a,c,d){e.l.assert(null!=a.length);e.b.F.forEach.call(a,c,d)}:function(a,c,d){for(var f=a.length,g=e.q(a)?a.split(""):a,h=0;h<f;h++)h in g&&c.call(d,g[h],h,a)};e.b.lj=function(a,c){for(var d=a.length,f=e.q(a)?a.split(""):a,d=d-1;0<=d;--d)d in f&&c.call(void 0,f[d],d,a)};
|
|
e.b.filter=e.Ya&&e.b.F.filter?function(a,c,d){e.l.assert(null!=a.length);return e.b.F.filter.call(a,c,d)}:function(a,c,d){for(var f=a.length,g=[],h=0,k=e.q(a)?a.split(""):a,m=0;m<f;m++)if(m in k){var n=k[m];c.call(d,n,m,a)&&(g[h++]=n)}return g};e.b.map=e.Ya&&e.b.F.map?function(a,c,d){e.l.assert(null!=a.length);return e.b.F.map.call(a,c,d)}:function(a,c,d){for(var f=a.length,g=Array(f),h=e.q(a)?a.split(""):a,k=0;k<f;k++)k in h&&(g[k]=c.call(d,h[k],k,a));return g};
|
|
e.b.reduce=e.Ya&&e.b.F.reduce?function(a,c,d,f){e.l.assert(null!=a.length);f&&(c=e.bind(c,f));return e.b.F.reduce.call(a,c,d)}:function(a,c,d,f){var g=d;e.b.forEach(a,function(d,k){g=c.call(f,g,d,k,a)});return g};e.b.reduceRight=e.Ya&&e.b.F.reduceRight?function(a,c,d,f){e.l.assert(null!=a.length);f&&(c=e.bind(c,f));return e.b.F.reduceRight.call(a,c,d)}:function(a,c,d,f){var g=d;e.b.lj(a,function(d,k){g=c.call(f,g,d,k,a)});return g};
|
|
e.b.some=e.Ya&&e.b.F.some?function(a,c,d){e.l.assert(null!=a.length);return e.b.F.some.call(a,c,d)}:function(a,c,d){for(var f=a.length,g=e.q(a)?a.split(""):a,h=0;h<f;h++)if(h in g&&c.call(d,g[h],h,a))return!0;return!1};e.b.every=e.Ya&&e.b.F.every?function(a,c,d){e.l.assert(null!=a.length);return e.b.F.every.call(a,c,d)}:function(a,c,d){for(var f=a.length,g=e.q(a)?a.split(""):a,h=0;h<f;h++)if(h in g&&!c.call(d,g[h],h,a))return!1;return!0};
|
|
e.b.count=function(a,c,d){var f=0;e.b.forEach(a,function(a,h,k){c.call(d,a,h,k)&&++f},d);return f};e.b.find=function(a,c,d){c=e.b.ig(a,c,d);return 0>c?null:e.q(a)?a.charAt(c):a[c]};e.b.ig=function(a,c,d){for(var f=a.length,g=e.q(a)?a.split(""):a,h=0;h<f;h++)if(h in g&&c.call(d,g[h],h,a))return h;return-1};e.b.tp=function(a,c,d){c=e.b.Ei(a,c,d);return 0>c?null:e.q(a)?a.charAt(c):a[c]};
|
|
e.b.Ei=function(a,c,d){for(var f=a.length,g=e.q(a)?a.split(""):a,f=f-1;0<=f;f--)if(f in g&&c.call(d,g[f],f,a))return f;return-1};e.b.contains=function(a,c){return 0<=e.b.indexOf(a,c)};e.b.ma=function(a){return 0==a.length};e.b.clear=function(a){if(!e.isArray(a))for(var c=a.length-1;0<=c;c--)delete a[c];a.length=0};e.b.Xp=function(a,c){e.b.contains(a,c)||a.push(c)};e.b.yg=function(a,c,d){e.b.splice(a,d,0,c)};e.b.Yp=function(a,c,d){e.Gg(e.b.splice,a,d,0).apply(null,c)};
|
|
e.b.insertBefore=function(a,c,d){var f;2==arguments.length||0>(f=e.b.indexOf(a,d))?a.push(c):e.b.yg(a,c,f)};e.b.remove=function(a,c){var d=e.b.indexOf(a,c),f;(f=0<=d)&&e.b.sc(a,d);return f};e.b.sc=function(a,c){e.l.assert(null!=a.length);return 1==e.b.F.splice.call(a,c,1).length};e.b.Hq=function(a,c,d){c=e.b.ig(a,c,d);return 0<=c?(e.b.sc(a,c),!0):!1};e.b.concat=function(a){return e.b.F.concat.apply(e.b.F,arguments)};
|
|
e.b.Cd=function(a){var c=a.length;if(0<c){for(var d=Array(c),f=0;f<c;f++)d[f]=a[f];return d}return[]};e.b.ba=e.b.Cd;e.b.extend=function(a,c){for(var d=1;d<arguments.length;d++){var f=arguments[d],g;if(e.isArray(f)||(g=e.Y(f))&&Object.prototype.hasOwnProperty.call(f,"callee"))a.push.apply(a,f);else if(g)for(var h=a.length,k=f.length,m=0;m<k;m++)a[h+m]=f[m];else a.push(f)}};e.b.splice=function(a,c,d,f){e.l.assert(null!=a.length);return e.b.F.splice.apply(a,e.b.slice(arguments,1))};
|
|
e.b.slice=function(a,c,d){e.l.assert(null!=a.length);return 2>=arguments.length?e.b.F.slice.call(a,c):e.b.F.slice.call(a,c,d)};e.b.Fq=function(a,c){for(var d=c||a,f={},g=0,h=0;h<a.length;){var k=a[h++],m=e.Pa(k)?"o"+e.Vc(k):(typeof k).charAt(0)+k;Object.prototype.hasOwnProperty.call(f,m)||(f[m]=!0,d[g++]=k)}d.length=g};e.b.qg=function(a,c,d){return e.b.sg(a,d||e.b.vb,!1,c)};e.b.Ro=function(a,c,d){return e.b.sg(a,c,!0,void 0,d)};
|
|
e.b.sg=function(a,c,d,f,g){for(var h=0,k=a.length,m;h<k;){var n=h+k>>1,q;q=d?c.call(g,a[n],n,a):c(f,a[n]);0<q?h=n+1:(k=n,m=!q)}return m?h:~h};e.b.sort=function(a,c){e.l.assert(null!=a.length);e.b.F.sort.call(a,c||e.b.vb)};e.b.Uq=function(a,c){for(var d=0;d<a.length;d++)a[d]={index:d,value:a[d]};var f=c||e.b.vb;e.b.sort(a,function(a,c){return f(a.value,c.value)||a.index-c.index});for(d=0;d<a.length;d++)a[d]=a[d].value};e.b.Sq=function(a,c,d){var f=d||e.b.vb;e.b.sort(a,function(a,d){return f(a[c],d[c])})};
|
|
e.b.gq=function(a,c,d){c=c||e.b.vb;for(var f=1;f<a.length;f++){var g=c(a[f-1],a[f]);if(0<g||0==g&&d)return!1}return!0};e.b.Id=function(a,c,d){if(!e.Y(a)||!e.Y(c)||a.length!=c.length)return!1;var f=a.length;d=d||e.b.Ti;for(var g=0;g<f;g++)if(!d(a[g],c[g]))return!1;return!0};e.b.compare=function(a,c,d){return e.b.Id(a,c,d)};e.b.ep=function(a,c,d){d=d||e.b.vb;for(var f=Math.min(a.length,c.length),g=0;g<f;g++){var h=d(a[g],c[g]);if(0!=h)return h}return e.b.vb(a.length,c.length)};
|
|
e.b.vb=function(a,c){return a>c?1:a<c?-1:0};e.b.Ti=function(a,c){return a===c};e.b.Po=function(a,c,d){d=e.b.qg(a,c,d);return 0>d?(e.b.yg(a,c,-(d+1)),!0):!1};e.b.Qo=function(a,c,d){c=e.b.qg(a,c,d);return 0<=c?e.b.sc(a,c):!1};e.b.So=function(a,c,d){for(var f={},g=0;g<a.length;g++){var h=a[g],k=c.call(d,h,g,a);e.aa(k)&&(f[k]||(f[k]=[])).push(h)}return f};e.b.nl=function(a,c,d){var f={};e.b.forEach(a,function(g,h){f[c.call(d,g,h,a)]=g});return f};
|
|
e.b.jl=function(a,c,d){var f=[],g=0,h=a;d=d||1;void 0!==c&&(g=a,h=c);if(0>d*(h-g))return[];if(0<d)for(a=g;a<h;a+=d)f.push(a);else for(a=g;a>h;a+=d)f.push(a);return f};e.b.repeat=function(a,c){for(var d=[],f=0;f<c;f++)d[f]=a;return d};e.b.kj=function(a){for(var c=[],d=0;d<arguments.length;d++){var f=arguments[d];e.isArray(f)?c.push.apply(c,e.b.kj.apply(null,f)):c.push(f)}return c};
|
|
e.b.rotate=function(a,c){e.l.assert(null!=a.length);a.length&&(c%=a.length,0<c?e.b.F.unshift.apply(a,a.splice(-c,c)):0>c&&e.b.F.push.apply(a,a.splice(0,-c)));return a};e.b.qq=function(a,c,d){e.l.assert(0<=c&&c<a.length);e.l.assert(0<=d&&d<a.length);c=e.b.F.splice.call(a,c,1);e.b.F.splice.call(a,d,0,c[0])};e.b.lr=function(a){if(!arguments.length)return[];for(var c=[],d=0;;d++){for(var f=[],g=0;g<arguments.length;g++){var h=arguments[g];if(d>=h.length)return c;f.push(h[d])}c.push(f)}};
|
|
e.b.Rq=function(a,c){for(var d=c||Math.random,f=a.length-1;0<f;f--){var g=Math.floor(d()*(f+1)),h=a[f];a[f]=a[g];a[g]=h}};e.debug.$={};e.debug.lm=function(){};e.debug.$.dc=[];e.debug.$.hf=[];e.debug.$.fh=!1;e.debug.$.Jh=function(a){e.debug.$.dc[e.debug.$.dc.length]=a;if(e.debug.$.fh)for(var c=e.debug.$.hf,d=0;d<c.length;d++)a(e.bind(c[d].jk,c[d]))};e.debug.$.pq=function(a){e.debug.$.fh=!0;for(var c=e.bind(a.jk,a),d=0;d<e.debug.$.dc.length;d++)e.debug.$.dc[d](c);e.debug.$.hf.push(a)};
|
|
e.debug.$.fr=function(a){var c=e.debug.$.hf;e.l.assert(a==c[c.length-1],"Only the most recent monitor can be unwrapped.");a=e.bind(a.pl,a);for(var d=0;d<e.debug.$.dc.length;d++)e.debug.$.dc[d](a);c.length--};e.Rk={};e.Rk.Bm=function(){};e.J=function(){e.J.kf!=e.J.lf.vc&&(e.J.Hb[e.Vc(this)]=this)};e.J.lf={vc:0,$j:1,Gk:2};e.J.kf=0;e.J.Dm=!0;e.J.Hb={};e.J.Op=function(){var a=[],c;for(c in e.J.Hb)e.J.Hb.hasOwnProperty(c)&&a.push(e.J.Hb[Number(c)]);return a};e.J.bp=function(){e.J.Hb={}};e.J.prototype.mf=!1;e.J.prototype.ae=function(){return this.mf};
|
|
e.J.prototype.ub=function(){if(!this.mf&&(this.mf=!0,this.Ta(),e.J.kf!=e.J.lf.vc)){var a=e.Vc(this);if(e.J.kf==e.J.lf.$j&&!e.J.Hb.hasOwnProperty(a))throw Error(this+" did not call the goog.Disposable base constructor or was disposed of after a clearUndisposedObjects call");delete e.J.Hb[a]}};e.J.prototype.Ta=function(){if(this.Hh)for(;this.Hh.length;)this.Hh.shift()()};e.J.ae=function(a){return a&&"function"==typeof a.ae?a.ae():!1};e.ub=function(a){a&&"function"==typeof a.ub&&a.ub()};
|
|
e.ok=function(a){for(var c=0,d=arguments.length;c<d;++c){var f=arguments[c];e.Y(f)?e.ok.apply(null,f):e.ub(f)}};e.a={};e.a.hb=function(a,c){this.type=a;this.currentTarget=this.target=c};b=e.a.hb.prototype;b.Ta=function(){};b.ub=function(){};b.gb=!1;b.defaultPrevented=!1;b.cg=!0;b.stopPropagation=function(){this.gb=!0};b.preventDefault=function(){this.defaultPrevented=!0;this.cg=!1};e.a.hb.stopPropagation=function(a){a.stopPropagation()};e.a.hb.preventDefault=function(a){a.preventDefault()};e.wb={};e.wb.object=function(a,c){return c};e.wb.rf=function(a){e.wb.rf[" "](a);return a};e.wb.rf[" "]=e.fg;e.wb.ui=function(a){try{return e.wb.rf(a.nodeName),!0}catch(c){}return!1};e.userAgent={};e.userAgent.vh=!1;e.userAgent.uh=!1;e.userAgent.Bh=!1;e.userAgent.sf=!1;e.userAgent.Ah=!1;e.userAgent.jj=!1;e.userAgent.$b=e.userAgent.vh||e.userAgent.uh||e.userAgent.sf||e.userAgent.Bh||e.userAgent.Ah;e.userAgent.Ie=function(){return e.global.navigator?e.global.navigator.userAgent:null};e.userAgent.Dd=function(){return e.global.navigator};
|
|
e.userAgent.fl=function(){e.userAgent.Gc=!1;e.userAgent.Re=!1;e.userAgent.Fd=!1;e.userAgent.ng=!1;e.userAgent.mg=!1;var a;if(!e.userAgent.$b&&(a=e.userAgent.Ie())){var c=e.userAgent.Dd();e.userAgent.Gc=e.c.kd(a,"Opera");e.userAgent.Re=!e.userAgent.Gc&&(e.c.contains(a,"MSIE")||e.c.contains(a,"Trident"));e.userAgent.Fd=!e.userAgent.Gc&&e.c.contains(a,"WebKit");e.userAgent.ng=e.userAgent.Fd&&e.c.contains(a,"Mobile");e.userAgent.mg=!e.userAgent.Gc&&!e.userAgent.Fd&&!e.userAgent.Re&&"Gecko"==c.product}};
|
|
e.userAgent.$b||e.userAgent.fl();e.userAgent.of=e.userAgent.$b?e.userAgent.Ah:e.userAgent.Gc;e.userAgent.Ca=e.userAgent.$b?e.userAgent.vh:e.userAgent.Re;e.userAgent.yd=e.userAgent.$b?e.userAgent.uh:e.userAgent.mg;e.userAgent.Va=e.userAgent.$b?e.userAgent.Bh||e.userAgent.sf:e.userAgent.Fd;e.userAgent.an=e.userAgent.sf||e.userAgent.ng;e.userAgent.Yn=e.userAgent.Va;e.userAgent.Pk=function(){var a=e.userAgent.Dd();return a&&a.platform||""};e.userAgent.Ue=e.userAgent.Pk();e.userAgent.zh=!1;
|
|
e.userAgent.Ch=!1;e.userAgent.yh=!1;e.userAgent.Dh=!1;e.userAgent.th=!1;e.userAgent.xh=!1;e.userAgent.wh=!1;e.userAgent.nb=e.userAgent.zh||e.userAgent.Ch||e.userAgent.yh||e.userAgent.Dh||e.userAgent.th||e.userAgent.xh||e.userAgent.wh;
|
|
e.userAgent.el=function(){e.userAgent.Oi=e.c.contains(e.userAgent.Ue,"Mac");e.userAgent.Pi=e.c.contains(e.userAgent.Ue,"Win");e.userAgent.Ni=e.c.contains(e.userAgent.Ue,"Linux");e.userAgent.Qi=!!e.userAgent.Dd()&&e.c.contains(e.userAgent.Dd().appVersion||"","X11");var a=e.userAgent.Ie();e.userAgent.Ki=!!a&&e.c.contains(a,"Android");e.userAgent.Mi=!!a&&e.c.contains(a,"iPhone");e.userAgent.Li=!!a&&e.c.contains(a,"iPad")};e.userAgent.nb||e.userAgent.el();
|
|
e.userAgent.Xm=e.userAgent.nb?e.userAgent.zh:e.userAgent.Oi;e.userAgent.yo=e.userAgent.nb?e.userAgent.Ch:e.userAgent.Pi;e.userAgent.Om=e.userAgent.nb?e.userAgent.yh:e.userAgent.Ni;e.userAgent.zo=e.userAgent.nb?e.userAgent.Dh:e.userAgent.Qi;e.userAgent.sl=e.userAgent.nb?e.userAgent.th:e.userAgent.Ki;e.userAgent.Im=e.userAgent.nb?e.userAgent.xh:e.userAgent.Mi;e.userAgent.Hm=e.userAgent.nb?e.userAgent.wh:e.userAgent.Li;
|
|
e.userAgent.Qk=function(){var a="",c;e.userAgent.of&&e.global.opera?(a=e.global.opera.version,a="function"==typeof a?a():a):(e.userAgent.yd?c=/rv\:([^\);]+)(\)|;)/:e.userAgent.Ca?c=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:e.userAgent.Va&&(c=/WebKit\/(\S+)/),c&&(a=(a=c.exec(e.userAgent.Ie()))?a[1]:""));return e.userAgent.Ca&&(c=e.userAgent.eh(),c>parseFloat(a))?String(c):a};e.userAgent.eh=function(){var a=e.global.document;return a?a.documentMode:void 0};e.userAgent.VERSION=e.userAgent.Qk();
|
|
e.userAgent.compare=function(a,c){return e.c.Fg(a,c)};e.userAgent.Hg={};e.userAgent.Ka=function(a){return e.userAgent.jj||e.userAgent.Hg[a]||(e.userAgent.Hg[a]=0<=e.c.Fg(e.userAgent.VERSION,a))};e.userAgent.kq=e.userAgent.Ka;e.userAgent.vf=function(a){return e.userAgent.Ca&&e.userAgent.tk>=a};e.userAgent.bq=e.userAgent.vf;var t=e.global.document;e.userAgent.tk=t&&e.userAgent.Ca?e.userAgent.eh()||("CSS1Compat"==t.compatMode?parseInt(e.userAgent.VERSION,10):5):void 0;e.a.qd={xm:!e.userAgent.Ca||e.userAgent.vf(9),ye:!e.userAgent.Ca||e.userAgent.vf(9),Fi:e.userAgent.Ca&&!e.userAgent.Ka("9"),wm:!e.userAgent.Va||e.userAgent.Ka("528"),vm:e.userAgent.yd&&e.userAgent.Ka("1.9b")||e.userAgent.Ca&&e.userAgent.Ka("8")||e.userAgent.of&&e.userAgent.Ka("9.5")||e.userAgent.Va&&e.userAgent.Ka("528"),zm:e.userAgent.yd&&!e.userAgent.Ka("8")||e.userAgent.Ca&&!e.userAgent.Ka("9"),oo:"ontouchstart"in e.global||!!(e.global.document&&document.documentElement&&"ontouchstart"in document.documentElement)||
|
|
!(!e.global.navigator||!e.global.navigator.msMaxTouchPoints)};e.a.ee=function(a){return e.userAgent.Va?"webkit"+a:e.userAgent.of?"o"+a.toLowerCase():a.toLowerCase()};
|
|
e.a.la={Hl:"click",Ul:"dblclick",bn:"mousedown",dn:"mouseup",ti:"mouseover",si:"mouseout",cn:"mousemove",bo:"selectstart",Km:"keypress",Jm:"keydown",Lm:"keyup",El:"blur",nm:"focus",Vl:"deactivate",om:e.userAgent.Ca?"focusin":"DOMFocusIn",pm:e.userAgent.Ca?"focusout":"DOMFocusOut",Gl:"change",ao:"select",fo:"submit",Fm:"input",Nn:"propertychange",dm:"dragstart",Zl:"drag",am:"dragenter",cm:"dragover",bm:"dragleave",em:"drop",$l:"dragend",no:"touchstart",mo:"touchmove",lo:"touchend",ko:"touchcancel",
|
|
Cl:"beforeunload",Pl:"consolemessage",Ql:"contextmenu",Yl:"DOMContentLoaded",Kg:"error",ym:"help",Pm:"load",Wm:"losecapture",En:"orientationchange",Pn:"readystatechange",Vn:"resize",Zn:"scroll",so:"unload",um:"hashchange",Fn:"pagehide",Gn:"pageshow",Jn:"popstate",Sl:"copy",Hn:"paste",Tl:"cut",zl:"beforecopy",Al:"beforecut",Bl:"beforepaste",Dn:"online",Dg:"offline",Ym:"message",Ol:"connect",vl:e.a.ee("AnimationStart"),tl:e.a.ee("AnimationEnd"),ul:e.a.ee("AnimationIteration"),po:e.a.ee("TransitionEnd"),
|
|
fn:"MSGestureChange",gn:"MSGestureEnd",hn:"MSGestureHold",jn:"MSGestureStart",kn:"MSGestureTap",ln:"MSGotPointerCapture",mn:"MSInertiaStart",nn:"MSLostPointerCapture",on:"MSPointerCancel",pn:"MSPointerDown",qn:"MSPointerMove",sn:"MSPointerOver",rn:"MSPointerOut",tn:"MSPointerUp",jo:"textinput",Ll:"compositionstart",Ml:"compositionupdate",Kl:"compositionend",jm:"exit",Qm:"loadabort",Rm:"loadcommit",Sm:"loadredirect",Tm:"loadstart",Um:"loadstop",Wn:"responsive",eo:"sizechanged",to:"unresponsive",xo:"visibilitychange"};e.a.ib=function(a,c){if(a){var d=this.type=a.type;e.a.hb.call(this,d);this.target=a.target||a.srcElement;this.currentTarget=c;var f=a.relatedTarget;f?e.userAgent.yd&&(e.wb.ui(f)||(f=null)):d==e.a.la.ti?f=a.fromElement:d==e.a.la.si&&(f=a.toElement);this.relatedTarget=f;this.offsetX=e.userAgent.Va||void 0!==a.offsetX?a.offsetX:a.layerX;this.offsetY=e.userAgent.Va||void 0!==a.offsetY?a.offsetY:a.layerY;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;
|
|
this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==d?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.yc=a;a.defaultPrevented&&this.preventDefault();delete this.gb}};e.A(e.a.ib,e.a.hb);e.a.ib.vn={Mm:0,$m:1,Xn:2};e.a.ib.Cm=[1,4,2];b=e.a.ib.prototype;b.target=null;b.relatedTarget=null;b.offsetX=0;b.offsetY=0;b.clientX=0;b.clientY=0;
|
|
b.screenX=0;b.screenY=0;b.button=0;b.keyCode=0;b.charCode=0;b.ctrlKey=!1;b.altKey=!1;b.shiftKey=!1;b.metaKey=!1;b.yc=null;b.stopPropagation=function(){e.a.ib.Ja.stopPropagation.call(this);this.yc.stopPropagation?this.yc.stopPropagation():this.yc.cancelBubble=!0};b.preventDefault=function(){e.a.ib.Ja.preventDefault.call(this);var a=this.yc;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,e.a.qd.Fi)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(c){}};b.Ta=function(){};e.a.fa=function(){};e.a.fa.lg="closure_listenable_"+(1E6*Math.random()|0);e.a.fa.Mk=function(){e.a.za.prototype[e.a.fa.lg]=!0};e.a.fa.Oa=function(a){try{return!(!a||!a[e.a.fa.lg])}catch(c){return!1}};e.a.Ed=function(){};e.a.Ed.Si=0;e.a.Ed.Di=function(){return++e.a.Ed.Si};e.a.gg=function(a,c,d,f,g,h){this.qb=a;this.pd=c;this.src=d;this.type=f;this.capture=!!g;this.nd=h;this.key=e.a.Ed.Di();this.Mb=this.ob=!1};e.a.gg.gm=!1;var u=function(a){a.Mb=!0;a.qb=null;a.pd=null;a.src=null;a.nd=null};e.a.ua=function(a){this.src=a;this.Z={};this.pc=0};e.a.ua.prototype.add=function(a,c,d,f,g){var h=this.Z[a];h||(h=this.Z[a]=[],this.pc++);var k=e.a.ua.ue(h,c,f,g);-1<k?(a=h[k],d||(a.ob=!1)):(a=new e.a.gg(c,null,this.src,a,!!f,g),a.ob=d,h.push(a));return a};e.a.ua.prototype.remove=function(a,c,d,f){if(!(a in this.Z))return!1;var g=this.Z[a];c=e.a.ua.ue(g,c,d,f);return-1<c?(u(g[c]),e.b.sc(g,c),0==g.length&&(delete this.Z[a],this.pc--),!0):!1};
|
|
var v=function(a,c){var d=c.type;if(!(d in a.Z))return!1;var f=e.b.remove(a.Z[d],c);f&&(u(c),0==a.Z[d].length&&(delete a.Z[d],a.pc--));return f};e.a.ua.prototype.qc=function(a){var c=0,d;for(d in this.Z)if(!a||d==a){for(var f=this.Z[d],g=0;g<f.length;g++)++c,u(f[g]);delete this.Z[d];this.pc--}return c};e.a.ua.prototype.Bc=function(a,c){var d=this.Z[a],f=[];if(d)for(var g=0;g<d.length;++g){var h=d[g];h.capture==c&&f.push(h)}return f};
|
|
e.a.ua.prototype.Wb=function(a,c,d,f){a=this.Z[a];var g=-1;a&&(g=e.a.ua.ue(a,c,d,f));return-1<g?a[g]:null};e.a.ua.prototype.Cc=function(a,c){var d=e.aa(a),f=e.aa(c);return e.object.some(this.Z,function(g){for(var h=0;h<g.length;++h)if(!(d&&g[h].type!=a||f&&g[h].capture!=c))return!0;return!1})};e.a.ua.ue=function(a,c,d,f){for(var g=0;g<a.length;++g){var h=a[g];if(!h.Mb&&h.qb==c&&h.capture==!!d&&h.nd==f)return g}return-1};e.a.mq={};e.a.te="closure_lm_"+(1E6*Math.random()|0);e.a.Ui="on";e.a.Ve={};e.a.Ae={ai:0,bi:1,vi:2};e.a.ze=2;e.a.rd=0;e.a.Ob=function(a,c,d,f,g){if(e.isArray(c)){for(var h=0;h<c.length;h++)e.a.Ob(a,c[h],d,f,g);return null}d=e.a.Ad(d);return e.a.fa.Oa(a)?a.Ob(c,d,f,g):e.a.hg(a,c,d,!1,f,g)};
|
|
e.a.hg=function(a,c,d,f,g,h){if(!c)throw Error("Invalid event type");var k=!!g;if(k&&!e.a.qd.ye){if(e.a.ze==e.a.Ae.ai)return e.l.ld("Can not register capture listener in IE8-."),null;if(e.a.ze==e.a.Ae.bi)return null}var m=e.a.ab(a);m||(a[e.a.te]=m=new e.a.ua(a));d=m.add(c,d,f,g,h);if(d.pd)return d;f=e.a.ci();d.pd=f;f.src=a;f.qb=d;a.addEventListener?a.addEventListener(c,f,k):a.attachEvent(e.a.Kf(c),f);e.a.rd++;return d};
|
|
e.a.ci=function(){var a=e.a.Fc,c=e.a.qd.ye?function(d){return a.call(c.src,c.qb,d)}:function(d){d=a.call(c.src,c.qb,d);if(!d)return d};return c};e.a.od=function(a,c,d,f,g){if(e.isArray(c)){for(var h=0;h<c.length;h++)e.a.od(a,c[h],d,f,g);return null}d=e.a.Ad(d);return e.a.fa.Oa(a)?a.od(c,d,f,g):e.a.hg(a,c,d,!0,f,g)};e.a.lq=function(a,c,d,f,g){c.Ob(a,d,f,g)};
|
|
e.a.Ac=function(a,c,d,f,g){if(e.isArray(c)){for(var h=0;h<c.length;h++)e.a.Ac(a,c[h],d,f,g);return null}d=e.a.Ad(d);if(e.a.fa.Oa(a))return a.Ac(c,d,f,g);if(!a)return!1;if(a=e.a.ab(a))if(c=a.Wb(c,d,!!f,g))return e.a.Nb(c);return!1};
|
|
e.a.Nb=function(a){if(e.ia(a)||!a||a.Mb)return!1;var c=a.src;if(e.a.fa.Oa(c))return c.Nb(a);var d=a.type,f=a.pd;c.removeEventListener?c.removeEventListener(d,f,a.capture):c.detachEvent&&c.detachEvent(e.a.Kf(d),f);e.a.rd--;(d=e.a.ab(c))?(v(d,a),0==d.pc&&(d.src=null,c[e.a.te]=null)):u(a);return!0};e.a.er=function(a,c,d,f,g){c.Ac(a,d,f,g)};
|
|
e.a.qc=function(a,c){if(!a)return 0;if(e.a.fa.Oa(a))return a.ta?a.ta.qc(c):0;var d=e.a.ab(a);if(!d)return 0;var f=0,g;for(g in d.Z)if(!c||g==c)for(var h=e.b.ba(d.Z[g]),k=0;k<h.length;++k)e.a.Nb(h[k])&&++f;return f};e.a.Eq=function(){return e.a.rd=0};e.a.Bc=function(a,c,d){return e.a.fa.Oa(a)?a.Bc(c,d):a?(a=e.a.ab(a))?a.Bc(c,d):[]:[]};e.a.Wb=function(a,c,d,f,g){d=e.a.Ad(d);f=!!f;return e.a.fa.Oa(a)?a.Wb(c,d,f,g):a?(a=e.a.ab(a))?a.Wb(c,d,f,g):null:null};
|
|
e.a.Cc=function(a,c,d){if(e.a.fa.Oa(a))return a.Cc(c,d);a=e.a.ab(a);return!!a&&a.Cc(c,d)};e.a.Sk=function(a){var c=[],d;for(d in a)a[d]&&a[d].id?c.push(d+" = "+a[d]+" ("+a[d].id+")"):c.push(d+" = "+a[d]);return c.join("\n")};e.a.Kf=function(a){return a in e.a.Ve?e.a.Ve[a]:e.a.Ve[a]=e.a.Ui+a};e.a.Vb=function(a,c,d,f){return e.a.fa.Oa(a)?a.Vb(c,d,f):e.a.Ge(a,c,d,f)};
|
|
e.a.Ge=function(a,c,d,f){var g=1;if(a=e.a.ab(a))if(c=a.Z[c])for(c=e.b.ba(c),a=0;a<c.length;a++){var h=c[a];h&&h.capture==d&&!h.Mb&&(g&=!1!==e.a.ne(h,f))}return Boolean(g)};e.a.ne=function(a,c){var d=a.qb,f=a.nd||a.src;a.ob&&e.a.Nb(a);return d.call(f,c)};e.a.Np=function(){return e.a.rd};e.a.dispatchEvent=function(a,c){e.l.assert(e.a.fa.Oa(a),"Can not use goog.events.dispatchEvent with non-goog.events.Listenable instance.");return a.dispatchEvent(c)};e.a.Bq=function(a){e.a.Fc=a.Wh(e.a.Fc)};
|
|
e.a.Fc=function(a,c){if(a.Mb)return!0;if(!e.a.qd.ye){var d=c||e.Xf("window.event"),f=new e.a.ib(d,this),g=!0;if(e.a.ze==e.a.Ae.vi){if(!e.a.wi(d)){e.a.xi(d);for(var d=[],h=f.currentTarget;h;h=h.parentNode)d.push(h);for(var h=a.type,k=d.length-1;!f.gb&&0<=k;k--)f.currentTarget=d[k],g&=e.a.Ge(d[k],h,!0,f);for(k=0;!f.gb&&k<d.length;k++)f.currentTarget=d[k],g&=e.a.Ge(d[k],h,!1,f)}}else g=e.a.ne(a,f);return g}return e.a.ne(a,new e.a.ib(c,this))};
|
|
e.a.xi=function(a){var c=!1;if(0==a.keyCode)try{a.keyCode=-1;return}catch(d){c=!0}if(c||void 0==a.returnValue)a.returnValue=!0};e.a.wi=function(a){return 0>a.keyCode||void 0!=a.returnValue};e.a.Vi=0;e.a.Pp=function(a){return a+"_"+e.a.Vi++};e.a.ab=function(a){a=a[e.a.te];return a instanceof e.a.ua?a:null};e.a.$f="__closure_events_fn_"+(1E9*Math.random()>>>0);
|
|
e.a.Ad=function(a){e.l.assert(a,"Listener can not be null.");if(e.xa(a))return a;e.l.assert(a.handleEvent,"An object listener must have handleEvent method.");return a[e.a.$f]||(a[e.a.$f]=function(c){return a.handleEvent(c)})};e.debug.$.Jh(function(a){e.a.Fc=a(e.a.Fc)});e.a.za=function(){e.J.call(this);this.ta=new e.a.ua(this);this.di=this};e.A(e.a.za,e.J);e.a.fa.Mk();e.a.za.qi=1E3;b=e.a.za.prototype;b.Fe=null;b.addEventListener=function(a,c,d,f){e.a.Ob(this,a,c,d,f)};b.removeEventListener=function(a,c,d,f){e.a.Ac(this,a,c,d,f)};b.dispatchEvent=function(a){w(this);var c,d=this.Fe;if(d){c=[];for(var f=1;d;d=d.Fe)c.push(d),e.l.assert(++f<e.a.za.qi,"infinite loop")}return e.a.za.ri(this.di,a,c)};
|
|
b.Ta=function(){e.a.za.Ja.Ta.call(this);this.ta&&this.ta.qc(void 0);this.Fe=null};b.Ob=function(a,c,d,f){w(this);return this.ta.add(a,c,!1,d,f)};b.od=function(a,c,d,f){return this.ta.add(a,c,!0,d,f)};b.Ac=function(a,c,d,f){return this.ta.remove(a,c,d,f)};b.Nb=function(a){return v(this.ta,a)};
|
|
b.Vb=function(a,c,d){a=this.ta.Z[a];if(!a)return!0;a=e.b.ba(a);for(var f=!0,g=0;g<a.length;++g){var h=a[g];if(h&&!h.Mb&&h.capture==c){var k=h.qb,m=h.nd||h.src;h.ob&&this.Nb(h);f=!1!==k.call(m,d)&&f}}return f&&!1!=d.cg};b.Bc=function(a,c){return this.ta.Bc(a,c)};b.Wb=function(a,c,d,f){return this.ta.Wb(a,c,d,f)};b.Cc=function(a,c){return this.ta.Cc(a,c)};var w=function(a){e.l.assert(a.ta,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};
|
|
e.a.za.ri=function(a,c,d){var f=c.type||c;if(e.q(c))c=new e.a.hb(c,a);else if(c instanceof e.a.hb)c.target=c.target||a;else{var g=c;c=new e.a.hb(f,a);e.object.extend(c,g)}var g=!0,h;if(d)for(var k=d.length-1;!c.gb&&0<=k;k--)h=c.currentTarget=d[k],g=h.Vb(f,!0,c)&&g;c.gb||(h=c.currentTarget=a,g=h.Vb(f,!0,c)&&g,c.gb||(g=h.Vb(f,!1,c)&&g));if(d)for(k=0;!c.gb&&k<d.length;k++)h=c.currentTarget=d[k],g=h.Vb(f,!1,c)&&g;return g};e.m={};e.m.u=function(){};e.n={};e.n.ha="StopIteration"in e.global?e.global.StopIteration:Error("StopIteration");e.n.na=function(){};e.n.na.prototype.next=function(){throw e.n.ha;};e.n.na.prototype.Qc=function(){return this};e.n.va=function(a){if(a instanceof e.n.na)return a;if("function"==typeof a.Qc)return a.Qc(!1);if(e.Y(a)){var c=0,d=new e.n.na;d.next=function(){for(;;){if(c>=a.length)throw e.n.ha;if(c in a)return a[c++];c++}};return d}throw Error("Not implemented");};
|
|
e.n.forEach=function(a,c,d){if(e.Y(a))try{e.b.forEach(a,c,d)}catch(f){if(f!==e.n.ha)throw f;}else{a=e.n.va(a);try{for(;;)c.call(d,a.next(),void 0,a)}catch(g){if(g!==e.n.ha)throw g;}}};e.n.filter=function(a,c,d){var f=e.n.va(a);a=new e.n.na;a.next=function(){for(;;){var a=f.next();if(c.call(d,a,void 0,f))return a}};return a};
|
|
e.n.jl=function(a,c,d){var f=0,g=a,h=d||1;1<arguments.length&&(f=a,g=c);if(0==h)throw Error("Range step argument must not be zero");var k=new e.n.na;k.next=function(){if(0<h&&f>=g||0>h&&f<=g)throw e.n.ha;var a=f;f+=h;return a};return k};e.n.join=function(a,c){return e.n.Cd(a).join(c)};e.n.map=function(a,c,d){var f=e.n.va(a);a=new e.n.na;a.next=function(){for(;;){var a=f.next();return c.call(d,a,void 0,f)}};return a};
|
|
e.n.reduce=function(a,c,d,f){var g=d;e.n.forEach(a,function(a){g=c.call(f,g,a)});return g};e.n.some=function(a,c,d){a=e.n.va(a);try{for(;;)if(c.call(d,a.next(),void 0,a))return!0}catch(f){if(f!==e.n.ha)throw f;}return!1};e.n.every=function(a,c,d){a=e.n.va(a);try{for(;;)if(!c.call(d,a.next(),void 0,a))return!1}catch(f){if(f!==e.n.ha)throw f;}return!0};
|
|
e.n.$o=function(a){var c=arguments,d=c.length,f=0,g=new e.n.na;g.next=function(){try{if(f>=d)throw e.n.ha;return e.n.va(c[f]).next()}catch(a){if(a!==e.n.ha||f>=d)throw a;f++;return this.next()}};return g};e.n.qp=function(a,c,d){var f=e.n.va(a);a=new e.n.na;var g=!0;a.next=function(){for(;;){var a=f.next();if(!g||!c.call(d,a,void 0,f))return g=!1,a}};return a};
|
|
e.n.Yq=function(a,c,d){var f=e.n.va(a);a=new e.n.na;var g=!0;a.next=function(){for(;;)if(g){var a=f.next();if(c.call(d,a,void 0,f))return a;g=!1}else throw e.n.ha;};return a};e.n.Cd=function(a){if(e.Y(a))return e.b.Cd(a);a=e.n.va(a);var c=[];e.n.forEach(a,function(a){c.push(a)});return c};
|
|
e.n.Id=function(a,c){a=e.n.va(a);c=e.n.va(c);var d,f;try{for(;;){d=f=!1;var g=a.next();d=!0;var h=c.next();f=!0;if(g!=h)break}}catch(k){if(k!==e.n.ha)throw k;if(d&&!f)return!1;if(!f)try{c.next()}catch(m){if(m!==e.n.ha)throw m;return!0}}return!1};e.n.sq=function(a,c){try{return e.n.va(a).next()}catch(d){if(d!=e.n.ha)throw d;return c}};
|
|
e.n.product=function(a){if(e.b.some(arguments,function(a){return!a.length})||!arguments.length)return new e.n.na;var c=new e.n.na,d=arguments,f=e.b.repeat(0,d.length);c.next=function(){if(f){for(var a=e.b.map(f,function(a,c){return d[c][a]}),c=f.length-1;0<=c;c--){e.l.assert(f);if(f[c]<d[c].length-1){f[c]++;break}if(0==c){f=null;break}f[c]=0}return a}throw e.n.ha;};return c};
|
|
e.n.np=function(a){var c=e.n.va(a),d=[],f=0;a=new e.n.na;var g=!1;a.next=function(){var a=null;if(!g)try{return a=c.next(),d.push(a),a}catch(k){if(k!=e.n.ha||e.b.ma(d))throw k;g=!0}a=d[f];f=(f+1)%d.length;return a};return a};e.m.W=function(a,c){this.P={};this.Q=[];this.xc=this.O=0;var d=arguments.length;if(1<d){if(d%2)throw Error("Uneven number of arguments");for(var f=0;f<d;f+=2)this.set(arguments[f],arguments[f+1])}else a&&this.We(a)};b=e.m.W.prototype;b.wa=function(){return this.O};b.N=function(){x(this);for(var a=[],c=0;c<this.Q.length;c++)a.push(this.P[this.Q[c]]);return a};b.da=function(){x(this);return this.Q.concat()};b.$a=function(a){return e.m.W.zb(this.P,a)};
|
|
b.Xb=function(a){for(var c=0;c<this.Q.length;c++){var d=this.Q[c];if(e.m.W.zb(this.P,d)&&this.P[d]==a)return!0}return!1};b.Id=function(a,c){if(this===a)return!0;if(this.O!=a.wa())return!1;var d=c||e.m.W.oj;x(this);for(var f,g=0;f=this.Q[g];g++)if(!d(this.get(f),a.get(f)))return!1;return!0};e.m.W.oj=function(a,c){return a===c};e.m.W.prototype.ma=function(){return 0==this.O};e.m.W.prototype.clear=function(){this.P={};this.xc=this.O=this.Q.length=0};
|
|
e.m.W.prototype.remove=function(a){return e.m.W.zb(this.P,a)?(delete this.P[a],this.O--,this.xc++,this.Q.length>2*this.O&&x(this),!0):!1};var x=function(a){if(a.O!=a.Q.length){for(var c=0,d=0;c<a.Q.length;){var f=a.Q[c];e.m.W.zb(a.P,f)&&(a.Q[d++]=f);c++}a.Q.length=d}if(a.O!=a.Q.length){for(var g={},d=c=0;c<a.Q.length;)f=a.Q[c],e.m.W.zb(g,f)||(a.Q[d++]=f,g[f]=1),c++;a.Q.length=d}};b=e.m.W.prototype;b.get=function(a,c){return e.m.W.zb(this.P,a)?this.P[a]:c};
|
|
b.set=function(a,c){e.m.W.zb(this.P,a)||(this.O++,this.Q.push(a),this.xc++);this.P[a]=c};b.We=function(a){var c;a instanceof e.m.W?(c=a.da(),a=a.N()):(c=e.object.da(a),a=e.object.N(a));for(var d=0;d<c.length;d++)this.set(c[d],a[d])};b.ba=function(){return new e.m.W(this)};b.ol=function(){for(var a=new e.m.W,c=0;c<this.Q.length;c++){var d=this.Q[c];a.set(this.P[d],d)}return a};b.nl=function(){x(this);for(var a={},c=0;c<this.Q.length;c++){var d=this.Q[c];a[d]=this.P[d]}return a};
|
|
b.Qc=function(a){x(this);var c=0,d=this.Q,f=this.P,g=this.xc,h=this,k=new e.n.na;k.next=function(){for(;;){if(g!=h.xc)throw Error("The map has changed since the iterator was created");if(c>=d.length)throw e.n.ha;var k=d[c++];return a?k:f[k]}};return k};e.m.W.zb=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)};e.m.wa=function(a){return"function"==typeof a.wa?a.wa():e.Y(a)||e.q(a)?a.length:e.object.wa(a)};e.m.N=function(a){if("function"==typeof a.N)return a.N();if(e.q(a))return a.split("");if(e.Y(a)){for(var c=[],d=a.length,f=0;f<d;f++)c.push(a[f]);return c}return e.object.N(a)};e.m.da=function(a){if("function"==typeof a.da)return a.da();if("function"!=typeof a.N){if(e.Y(a)||e.q(a)){var c=[];a=a.length;for(var d=0;d<a;d++)c.push(d);return c}return e.object.da(a)}};
|
|
e.m.contains=function(a,c){return"function"==typeof a.contains?a.contains(c):"function"==typeof a.Xb?a.Xb(c):e.Y(a)||e.q(a)?e.b.contains(a,c):e.object.Xb(a,c)};e.m.ma=function(a){return"function"==typeof a.ma?a.ma():e.Y(a)||e.q(a)?e.b.ma(a):e.object.ma(a)};e.m.clear=function(a){"function"==typeof a.clear?a.clear():e.Y(a)?e.b.clear(a):e.object.clear(a)};
|
|
e.m.forEach=function(a,c,d){if("function"==typeof a.forEach)a.forEach(c,d);else if(e.Y(a)||e.q(a))e.b.forEach(a,c,d);else for(var f=e.m.da(a),g=e.m.N(a),h=g.length,k=0;k<h;k++)c.call(d,g[k],f&&f[k],a)};e.m.filter=function(a,c,d){if("function"==typeof a.filter)return a.filter(c,d);if(e.Y(a)||e.q(a))return e.b.filter(a,c,d);var f,g=e.m.da(a),h=e.m.N(a),k=h.length;if(g){f={};for(var m=0;m<k;m++)c.call(d,h[m],g[m],a)&&(f[g[m]]=h[m])}else for(f=[],m=0;m<k;m++)c.call(d,h[m],void 0,a)&&f.push(h[m]);return f};
|
|
e.m.map=function(a,c,d){if("function"==typeof a.map)return a.map(c,d);if(e.Y(a)||e.q(a))return e.b.map(a,c,d);var f,g=e.m.da(a),h=e.m.N(a),k=h.length;if(g){f={};for(var m=0;m<k;m++)f[g[m]]=c.call(d,h[m],g[m],a)}else for(f=[],m=0;m<k;m++)f[m]=c.call(d,h[m],void 0,a);return f};e.m.some=function(a,c,d){if("function"==typeof a.some)return a.some(c,d);if(e.Y(a)||e.q(a))return e.b.some(a,c,d);for(var f=e.m.da(a),g=e.m.N(a),h=g.length,k=0;k<h;k++)if(c.call(d,g[k],f&&f[k],a))return!0;return!1};
|
|
e.m.every=function(a,c,d){if("function"==typeof a.every)return a.every(c,d);if(e.Y(a)||e.q(a))return e.b.every(a,c,d);for(var f=e.m.da(a),g=e.m.N(a),h=g.length,k=0;k<h;k++)if(!c.call(d,g[k],f&&f[k],a))return!1;return!0};e.m.Qa=function(a){this.P=new e.m.W;a&&this.We(a)};e.m.Qa.gf=function(a){var c=typeof a;return"object"==c&&a||"function"==c?"o"+e.Vc(a):c.substr(0,1)+a};b=e.m.Qa.prototype;b.wa=function(){return this.P.wa()};b.add=function(a){this.P.set(e.m.Qa.gf(a),a)};b.We=function(a){a=e.m.N(a);for(var c=a.length,d=0;d<c;d++)this.add(a[d])};b.qc=function(a){a=e.m.N(a);for(var c=a.length,d=0;d<c;d++)this.remove(a[d])};b.remove=function(a){return this.P.remove(e.m.Qa.gf(a))};b.clear=function(){this.P.clear()};
|
|
b.ma=function(){return this.P.ma()};b.contains=function(a){return this.P.$a(e.m.Qa.gf(a))};b.N=function(){return this.P.N()};b.ba=function(){return new e.m.Qa(this)};b.Id=function(a){return this.wa()==e.m.wa(a)&&z(this,a)};var z=function(a,c){var d=e.m.wa(c);if(a.wa()>d)return!1;!(c instanceof e.m.Qa)&&5<d&&(c=new e.m.Qa(c));return e.m.every(a,function(a){return e.m.contains(c,a)})};e.m.Qa.prototype.Qc=function(){return this.P.Qc(!1)};e.debug.Aa=e.gc;e.debug.Zo=function(a,c,d){d=d||e.global;var f=d.onerror,g=!!c;e.userAgent.Va&&!e.userAgent.Ka("535.3")&&(g=!g);d.onerror=function(c,d,m){f&&f(c,d,m);a({message:c,fileName:d,Yf:m});return g}};e.debug.Sk=function(a,c){if("undefined"==typeof a)return"undefined";if(null==a)return"NULL";var d=[],f;for(f in a)if(c||!e.xa(a[f])){var g=f+" = ";try{g+=a[f]}catch(h){g+="*** "+h+" ***"}d.push(g)}return d.join("\n")};
|
|
e.debug.op=function(a,c){var d=new e.m.Qa,f=[],g=function(a,k){var m=k+" ";try{if(e.aa(a))if(e.zf(a))f.push("NULL");else if(e.q(a))f.push('"'+a.replace(/\n/g,"\n"+k)+'"');else if(e.xa(a))f.push(String(a).replace(/\n/g,"\n"+k));else if(e.Pa(a))if(d.contains(a))f.push("*** reference loop detected ***");else{d.add(a);f.push("{");for(var n in a)if(c||!e.xa(a[n]))f.push("\n"),f.push(m),f.push(n+" = "),g(a[n],m);f.push("\n"+k+"}")}else f.push(a);else f.push("undefined")}catch(q){f.push("*** "+q+" ***")}};
|
|
g(a,"");return f.join("")};e.debug.Tk=function(a){for(var c=[],d=0;d<a.length;d++)e.isArray(a[d])?c.push(e.debug.Tk(a[d])):c.push(a[d]);return"[ "+c.join(", ")+" ]"};
|
|
e.debug.bk=function(a,c){try{var d=e.debug.cj(a);return"Message: "+e.c.Hc(d.message)+'\nUrl: <a href="view-source:'+d.fileName+'" target="_new">'+d.fileName+"</a>\nLine: "+d.lineNumber+"\n\nBrowser stack:\n"+e.c.Hc(d.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+e.c.Hc(e.debug.Cg(c)+"-> ")}catch(f){return"Exception trying to expose exception! You win, we lose. "+f}};
|
|
e.debug.cj=function(a){var c=e.Xf("window.location.href");if(e.q(a))return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:c,stack:"Not available"};var d,f,g=!1;try{d=a.lineNumber||a.Yf||"Not available"}catch(h){d="Not available",g=!0}try{f=a.fileName||a.filename||a.sourceURL||e.global.$googDebugFname||c}catch(k){f="Not available",g=!0}return!g&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name?a:{message:a.message||"Not available",name:a.name||"UnknownError",lineNumber:d,fileName:f,
|
|
stack:a.stack||"Not available"}};e.debug.rp=function(a,c){var d="string"==typeof a?Error(a):a;d.stack||(d.stack=e.debug.Cg(arguments.callee.caller));if(c){for(var f=0;d["message"+f];)++f;d["message"+f]=String(c)}return d};
|
|
e.debug.Kp=function(a){for(var c=[],d=arguments.callee.caller,f=0;d&&(!a||f<a);){c.push(e.debug.Xe(d));c.push("()\n");try{d=d.caller}catch(g){c.push("[exception trying to get caller]\n");break}f++;if(f>=e.debug.rg){c.push("[...long stack...]");break}}a&&f>=a?c.push("[...reached max depth limit...]"):c.push("[end]");return c.join("")};e.debug.rg=50;e.debug.Cg=function(a){return e.debug.ug(a||arguments.callee.caller,[])};
|
|
e.debug.ug=function(a,c){var d=[];if(e.b.contains(c,a))d.push("[...circular reference...]");else if(a&&c.length<e.debug.rg){d.push(e.debug.Xe(a)+"(");for(var f=a.arguments,g=0;g<f.length;g++){0<g&&d.push(", ");var h;h=f[g];switch(typeof h){case "object":h=h?"object":"null";break;case "string":break;case "number":h=String(h);break;case "boolean":h=h?"true":"false";break;case "function":h=(h=e.debug.Xe(h))?h:"[fn]";break;default:h=typeof h}40<h.length&&(h=h.substr(0,40)+"...");d.push(h)}c.push(a);d.push(")\n");
|
|
try{d.push(e.debug.ug(a.caller,c))}catch(k){d.push("[exception trying to get caller]\n")}}else a?d.push("[...long stack...]"):d.push("[end]");return d.join("")};e.debug.Nq=function(a){e.debug.rh=a};e.debug.Xe=function(a){if(e.debug.hc[a])return e.debug.hc[a];if(e.debug.rh){var c=e.debug.rh(a);if(c)return e.debug.hc[a]=c}a=String(a);e.debug.hc[a]||(c=/function ([^\(]+)/.exec(a),e.debug.hc[a]=c?c[1]:"[Anonymous]");return e.debug.hc[a]};
|
|
e.debug.oq=function(a){return a.replace(/ /g,"[_]").replace(/\f/g,"[f]").replace(/\n/g,"[n]\n").replace(/\r/g,"[r]").replace(/\t/g,"[t]")};e.debug.hc={};e.debug.Ha=function(a,c,d,f,g){this.reset(a,c,d,f,g)};e.debug.Ha.prototype.Vg=null;e.debug.Ha.prototype.Ug=null;e.debug.Ha.kk=!0;e.debug.Ha.lk=0;e.debug.Ha.prototype.reset=function(a,c,d,f,g){e.debug.Ha.kk&&("number"==typeof g||e.debug.Ha.lk++);f||e.now();this.wc=a;this.Xi=c;delete this.Vg;delete this.Ug};e.debug.Ha.prototype.Oe=function(a){this.wc=a};e.debug.ka=function(){e.l.assert(e.debug.ka.Qg(),"Cannot use goog.debug.LogBuffer without defining goog.debug.LogBuffer.CAPACITY.");this.clear()};e.debug.ka.Tg=function(){e.debug.ka.Yc||(e.debug.ka.Yc=new e.debug.ka);return e.debug.ka.Yc};e.debug.ka.Xd=0;e.debug.ka.Qg=function(){return 0<e.debug.ka.Xd};e.debug.ka.prototype.clear=function(){this.Xg=Array(e.debug.ka.Xd);this.Yg=-1;this.Zg=!1};e.debug.i=function(a){this.zd=a};e.debug.i.prototype.xd=null;e.debug.i.prototype.wc=null;e.debug.i.prototype.df=null;e.debug.i.prototype.Sb=null;e.debug.i.rb=!0;e.debug.i.rb||(e.debug.i.Ce=[]);e.debug.i.p=function(a,c){this.name=a;this.value=c};e.debug.i.p.prototype.toString=function(){return this.name};e.debug.i.p.vc=new e.debug.i.p("OFF",Infinity);e.debug.i.p.Jk=new e.debug.i.p("SHOUT",1200);e.debug.i.p.Pe=new e.debug.i.p("SEVERE",1E3);e.debug.i.p.Bg=new e.debug.i.p("WARNING",900);
|
|
e.debug.i.p.Ag=new e.debug.i.p("INFO",800);e.debug.i.p.pg=new e.debug.i.p("CONFIG",700);e.debug.i.p.zg=new e.debug.i.p("FINE",500);e.debug.i.p.Dk=new e.debug.i.p("FINER",400);e.debug.i.p.Ek=new e.debug.i.p("FINEST",300);e.debug.i.p.Bk=new e.debug.i.p("ALL",0);e.debug.i.p.Ye=[e.debug.i.p.vc,e.debug.i.p.Jk,e.debug.i.p.Pe,e.debug.i.p.Bg,e.debug.i.p.Ag,e.debug.i.p.pg,e.debug.i.p.zg,e.debug.i.p.Dk,e.debug.i.p.Ek,e.debug.i.p.Bk];e.debug.i.p.kb=null;
|
|
e.debug.i.p.xg=function(){e.debug.i.p.kb={};for(var a=0,c;c=e.debug.i.p.Ye[a];a++)e.debug.i.p.kb[c.value]=c,e.debug.i.p.kb[c.name]=c};e.debug.i.p.Ip=function(a){e.debug.i.p.kb||e.debug.i.p.xg();return e.debug.i.p.kb[a]||null};e.debug.i.p.Jp=function(a){e.debug.i.p.kb||e.debug.i.p.xg();if(a in e.debug.i.p.kb)return e.debug.i.p.kb[a];for(var c=0;c<e.debug.i.p.Ye.length;++c){var d=e.debug.i.p.Ye[c];if(d.value<=a)return d}return null};e.debug.i.cc=function(a){return e.debug.S.cc(a)};
|
|
e.debug.i.Rj=function(a){e.global.console&&(e.global.console.timeStamp?e.global.console.timeStamp(a):e.global.console.markTimeline&&e.global.console.markTimeline(a));e.global.msWriteProfilerMark&&e.global.msWriteProfilerMark(a)};e.debug.i.prototype.oh=function(a){e.debug.Aa&&(e.debug.i.rb?(this.Sb||(this.Sb=[]),this.Sb.push(a)):(e.l.assert(!this.zd,"Cannot call addHandler on a non-root logger when goog.debug.Logger.ENABLE_HIERARCHY is false."),e.debug.i.Ce.push(a)))};
|
|
e.debug.i.prototype.ph=function(a){if(e.debug.Aa){var c=e.debug.i.rb?this.Sb:e.debug.i.Ce;return!!c&&e.b.remove(c,a)}return!1};e.debug.i.prototype.getParent=function(){return this.xd};e.debug.i.prototype.Oe=function(a){e.debug.Aa&&(e.debug.i.rb?this.wc=a:(e.l.assert(!this.zd,"Cannot call setLevel() on a non-root logger when goog.debug.Logger.ENABLE_HIERARCHY is false."),e.debug.i.pi=a))};
|
|
var A=function(a){if(!e.debug.Aa)return e.debug.i.p.vc;if(!e.debug.i.rb)return e.debug.i.pi;if(a.wc)return a.wc;if(a.xd)return A(a.xd);e.l.ld("Root logger has no level set.");return null};b=e.debug.i.prototype;b.log=function(a,c,d){if(e.debug.Aa&&e.debug.Aa&&a.value>=A(this).value)if(a=this.Qj(a,c,d),e.debug.i.Rj("log:"+a.Xi),e.debug.i.rb)for(c=this;c;){d=c;var f=a;if(d.Sb)for(var g=0,h=void 0;h=d.Sb[g];g++)h(f);c=c.getParent()}else for(c=0;d=e.debug.i.Ce[c++];)d(a)};
|
|
b.Qj=function(a,c,d){var f;if(e.debug.ka.Qg()){var g=e.debug.ka.Tg();f=this.zd;var h=(g.Yg+1)%e.debug.ka.Xd;g.Yg=h;g.Zg?(g=g.Xg[h],g.reset(a,c,f),f=g):(g.Zg=h==e.debug.ka.Xd-1,f=g.Xg[h]=new e.debug.Ha(a,c,f))}else f=new e.debug.Ha(a,String(c),this.zd);d&&(f.Vg=d,g=e.debug.bk(d,arguments.callee.caller),f.Ug=g);return f};b.Le=function(a,c){e.debug.Aa&&this.log(e.debug.i.p.Bg,a,c)};b.info=function(a,c){e.debug.Aa&&this.log(e.debug.i.p.Ag,a,c)};
|
|
b.ra=function(a,c){e.debug.Aa&&this.log(e.debug.i.p.zg,a,c)};e.debug.S={};e.debug.S.Bd={};e.debug.S.Dc=null;e.debug.S.v=function(){e.debug.S.Dc||(e.debug.S.Dc=new e.debug.i(""),e.debug.S.Bd[""]=e.debug.S.Dc,e.debug.S.Dc.Oe(e.debug.i.p.pg))};e.debug.S.Bp=function(){return e.debug.S.Bd};e.debug.S.Ii=function(){e.debug.S.v();return e.debug.S.Dc};e.debug.S.cc=function(a){e.debug.S.v();return e.debug.S.Bd[a]||e.debug.S.ak(a)};
|
|
e.debug.S.kp=function(a){return function(c){var d=a||e.debug.S.Ii();e.debug.Aa&&d.log(e.debug.i.p.Pe,"Error: "+c.message+" ("+c.fileName+" @ Line: "+c.Yf+")",void 0)}};e.debug.S.ak=function(a){var c=new e.debug.i(a);if(e.debug.i.rb){var d=a.lastIndexOf("."),f=a.substr(d+1),d=e.debug.S.cc(a.substr(0,d));d.df||(d.df={});d.df[f]=c;c.xd=d}return e.debug.S.Bd[a]=c};e.log={};e.log.jb=e.debug.Aa;e.log.i=e.debug.i;e.log.p=e.debug.i.p;e.log.Ha=e.debug.Ha;e.log.cc=function(a,c){if(e.log.jb){var d=e.debug.i.cc(a);c&&d&&d.Oe(c);return d}return null};e.log.oh=function(a,c){e.log.jb&&a&&a.oh(c)};e.log.ph=function(a,c){return e.log.jb&&a?a.ph(c):!1};e.log.log=function(a,c,d,f){e.log.jb&&a&&a.log(c,d,f)};e.log.error=function(a,c,d){e.log.jb&&a&&e.debug.Aa&&a.log(e.debug.i.p.Pe,c,d)};e.log.Le=function(a,c,d){e.log.jb&&a&&a.Le(c,d)};
|
|
e.log.info=function(a,c,d){e.log.jb&&a&&a.info(c,d)};e.log.ra=function(a,c,d){e.log.jb&&a&&a.ra(c,d)};e.U=function(a,c){e.a.za.call(this);this.Je=a||1;this.zc=c||e.U.Ke;this.ag=e.bind(this.Ci,this);this.bg=e.now()};e.A(e.U,e.a.za);e.U.ik=2147483647;e.U.prototype.enabled=!1;e.U.Ke=e.global;e.U.gk=0.8;e.U.prototype.mb=null;
|
|
e.U.prototype.Ci=function(){if(this.enabled){var a=e.now()-this.bg;0<a&&a<this.Je*e.U.gk?this.mb=this.zc.setTimeout(this.ag,this.Je-a):(this.mb&&(this.zc.clearTimeout(this.mb),this.mb=null),this.dispatchEvent(e.U.fk),this.enabled&&(this.mb=this.zc.setTimeout(this.ag,this.Je),this.bg=e.now()))}};e.U.prototype.stop=function(){this.enabled=!1;this.mb&&(this.zc.clearTimeout(this.mb),this.mb=null)};e.U.prototype.Ta=function(){e.U.Ja.Ta.call(this);this.stop();delete this.zc};e.U.fk="tick";
|
|
e.U.ob=function(a,c,d){if(e.xa(a))d&&(a=e.bind(a,d));else if(a&&"function"==typeof a.handleEvent)a=e.bind(a.handleEvent,a);else throw Error("Invalid listener argument");return c>e.U.ik?-1:e.U.Ke.setTimeout(a,c||0)};e.U.clear=function(a){e.U.Ke.clearTimeout(a)};e.uri={};e.uri.e={};e.uri.e.Oc={Mg:38,EQUAL:61,rj:35,sj:63};e.uri.e.jg=function(a,c,d,f,g,h,k){var m="";a&&(m+=a+":");d&&(m+="//",c&&(m+=c+"@"),m+=d,f&&(m+=":"+f));g&&(m+=g);h&&(m+="?"+h);k&&(m+="#"+k);return m};e.uri.e.Lj=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");e.uri.e.D={rc:1,pe:2,sb:3,tb:4,qe:5,re:6,If:7};e.uri.e.split=function(a){e.uri.e.Kj();return a.match(e.uri.e.Lj)};e.uri.e.bf=e.userAgent.Va;
|
|
e.uri.e.Kj=function(){if(e.uri.e.bf){e.uri.e.bf=!1;var a=e.global.location;if(a){var c=a.href;if(c&&(c=e.uri.e.lc(c))&&c!=a.hostname)throw e.uri.e.bf=!0,Error();}}};e.uri.e.Ld=function(a){return a&&decodeURIComponent(a)};e.uri.e.Yb=function(a,c){return e.uri.e.split(c)[a]||null};e.uri.e.mc=function(a){return e.uri.e.Yb(e.uri.e.D.rc,a)};e.uri.e.Yh=function(a){a=e.uri.e.mc(a);!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1));return a?a.toLowerCase():""};
|
|
e.uri.e.Jj=function(a){return e.uri.e.Yb(e.uri.e.D.pe,a)};e.uri.e.jd=function(a){return e.uri.e.Ld(e.uri.e.Jj(a))};e.uri.e.Gj=function(a){return e.uri.e.Yb(e.uri.e.D.sb,a)};e.uri.e.lc=function(a){return e.uri.e.Ld(e.uri.e.Gj(a))};e.uri.e.hd=function(a){return Number(e.uri.e.Yb(e.uri.e.D.tb,a))||null};e.uri.e.Ij=function(a){return e.uri.e.Yb(e.uri.e.D.qe,a)};e.uri.e.Lb=function(a){return e.uri.e.Ld(e.uri.e.Ij(a))};e.uri.e.Jf=function(a){return e.uri.e.Yb(e.uri.e.D.re,a)};
|
|
e.uri.e.Hj=function(a){var c=a.indexOf("#");return 0>c?null:a.substr(c+1)};e.uri.e.Mq=function(a,c){return e.uri.e.Nj(a)+(c?"#"+c:"")};e.uri.e.gd=function(a){return e.uri.e.Ld(e.uri.e.Hj(a))};e.uri.e.Ap=function(a){a=e.uri.e.split(a);return e.uri.e.jg(a[e.uri.e.D.rc],a[e.uri.e.D.pe],a[e.uri.e.D.sb],a[e.uri.e.D.tb])};e.uri.e.Gp=function(a){a=e.uri.e.split(a);return e.uri.e.jg(null,null,null,null,a[e.uri.e.D.qe],a[e.uri.e.D.re],a[e.uri.e.D.If])};
|
|
e.uri.e.Nj=function(a){var c=a.indexOf("#");return 0>c?a:a.substr(0,c)};e.uri.e.cl=function(a,c){var d=e.uri.e.split(a),f=e.uri.e.split(c);return d[e.uri.e.D.sb]==f[e.uri.e.D.sb]&&d[e.uri.e.D.rc]==f[e.uri.e.D.rc]&&d[e.uri.e.D.tb]==f[e.uri.e.D.tb]};e.uri.e.ii=function(a){if(e.gc&&(0<=a.indexOf("#")||0<=a.indexOf("?")))throw Error("goog.uri.utils: Fragment or query identifiers are not supported: ["+a+"]");};
|
|
e.uri.e.De=function(a){if(a[1]){var c=a[0],d=c.indexOf("#");0<=d&&(a.push(c.substr(d)),a[0]=c=c.substr(0,d));d=c.indexOf("?");0>d?a[1]="?":d==c.length-1&&(a[1]=void 0)}return a.join("")};e.uri.e.Be=function(a,c,d){if(e.isArray(c)){e.l.Vh(c);for(var f=0;f<c.length;f++)e.uri.e.Be(a,String(c[f]),d)}else null!=c&&d.push("&",a,""===c?"":"=",e.c.nc(c))};
|
|
e.uri.e.cf=function(a,c,d){e.l.assert(0==Math.max(c.length-(d||0),0)%2,"goog.uri.utils: Key/value lists must be even in length.");for(d=d||0;d<c.length;d+=2)e.uri.e.Be(c[d],c[d+1],a);return a};e.uri.e.To=function(a,c){var d=e.uri.e.cf([],a,c);d[0]="";return d.join("")};e.uri.e.Pg=function(a,c){for(var d in c)e.uri.e.Be(d,c[d],a);return a};e.uri.e.Uo=function(a){a=e.uri.e.Pg([],a);a[0]="";return a.join("")};
|
|
e.uri.e.Do=function(a,c){return e.uri.e.De(2==arguments.length?e.uri.e.cf([a],arguments[1],0):e.uri.e.cf([a],arguments,1))};e.uri.e.Eo=function(a,c){return e.uri.e.De(e.uri.e.Pg([a],c))};e.uri.e.gi=function(a,c,d){a=[a,"&",c];e.bb(d)&&a.push("=",e.c.nc(d));return e.uri.e.De(a)};
|
|
e.uri.e.vd=function(a,c,d,f){for(var g=d.length;0<=(c=a.indexOf(d,c))&&c<f;){var h=a.charCodeAt(c-1);if(h==e.uri.e.Oc.Mg||h==e.uri.e.Oc.sj)if(h=a.charCodeAt(c+g),!h||h==e.uri.e.Oc.EQUAL||h==e.uri.e.Oc.Mg||h==e.uri.e.Oc.rj)return c;c+=g+1}return-1};e.uri.e.wd=/#|$/;e.uri.e.Tp=function(a,c){return 0<=e.uri.e.vd(a,0,c,a.search(e.uri.e.wd))};
|
|
e.uri.e.Ep=function(a,c){var d=a.search(e.uri.e.wd),f=e.uri.e.vd(a,0,c,d);if(0>f)return null;var g=a.indexOf("&",f);if(0>g||g>d)g=d;f+=c.length+1;return e.c.md(a.substr(f,g-f))};e.uri.e.Fp=function(a,c){for(var d=a.search(e.uri.e.wd),f=0,g,h=[];0<=(g=e.uri.e.vd(a,f,c,d));){f=a.indexOf("&",g);if(0>f||f>d)f=d;g+=c.length+1;h.push(e.c.md(a.substr(g,f-g)))}return h};e.uri.e.Ej=/[?&]($|#)/;
|
|
e.uri.e.hi=function(a,c){for(var d=a.search(e.uri.e.wd),f=0,g,h=[];0<=(g=e.uri.e.vd(a,f,c,d));)h.push(a.substring(f,g)),f=Math.min(a.indexOf("&",g)+1||d,d);h.push(a.substr(f));return h.join("").replace(e.uri.e.Ej,"$1")};e.uri.e.Oj=function(a){var c=e.uri.e.Vf.Uf,d=e.c.Lf();return e.uri.e.gi(e.uri.e.hi(a,c),c,d)};e.uri.e.Fo=function(a,c){e.uri.e.ii(a);e.c.ki(a)&&(a=a.substr(0,a.length-1));e.c.kd(c,"/")&&(c=c.substr(1));return e.c.ji(a,"/",c)};e.uri.e.Vf={Uf:"zx"};e.uri.e.il=function(a){return e.uri.e.Oj(a)};e.g={};e.g.Ea={NO_ERROR:0,dj:1,hj:2,gj:3,ej:4,fj:5,ij:6,He:7,TIMEOUT:8,Dg:9};
|
|
e.g.Ea.yp=function(a){switch(a){case e.g.Ea.NO_ERROR:return"No Error";case e.g.Ea.dj:return"Access denied to content document";case e.g.Ea.hj:return"File not found";case e.g.Ea.gj:return"Firefox silently errored";case e.g.Ea.ej:return"Application custom error";case e.g.Ea.fj:return"An exception occurred";case e.g.Ea.ij:return"Http response at 400 or 500 level";case e.g.Ea.He:return"Request was aborted";case e.g.Ea.TIMEOUT:return"Request timed out";case e.g.Ea.Dg:return"The resource is not available offline";
|
|
default:return"Unrecognized error code"}};e.g.la={fb:"complete",$h:"success",Kg:"error",He:"abort",Jb:"ready",Zh:"readystatechange",TIMEOUT:"timeout",Em:"incrementaldata",Mn:"progress"};e.g.Ua={Rl:100,ho:101,xj:200,uj:201,tj:202,xn:203,wj:204,Un:205,yj:206,un:300,en:301,rm:302,$n:303,vj:304,vo:305,io:307,yl:400,ro:401,In:402,qm:403,An:404,Zm:405,zn:406,On:407,Sn:408,Nl:409,tm:410,Nm:411,Kn:412,Qn:413,Tn:414,uo:415,Rn:416,km:417,Gm:500,Bn:501,xl:502,co:503,sm:504,Am:505,zj:1223};e.g.Ua.me=function(a){switch(a){case e.g.Ua.xj:case e.g.Ua.uj:case e.g.Ua.tj:case e.g.Ua.wj:case e.g.Ua.yj:case e.g.Ua.vj:case e.g.Ua.zj:return!0;default:return!1}};e.g.ce=function(){};e.g.ce.prototype.wg=null;e.g.ce.prototype.kc=function(){var a;(a=this.wg)||(a={},B(this)&&(a[e.g.I.td.dg]=!0,a[e.g.I.td.Of]=!0),a=this.wg=a);return a};e.g.Kd=function(a,c){this.Ak=a;this.zk=c};e.A(e.g.Kd,e.g.ce);e.g.Kd.prototype.je=function(){return this.Ak()};e.g.Kd.prototype.kc=function(){return this.zk()};e.g.I=function(){return e.g.I.vg.je()};e.g.I.nj=!1;e.g.I.kc=function(){return e.g.I.vg.kc()};e.g.I.td={dg:0,Of:1};e.g.I.Ub={Ji:0,LOADING:1,Pf:2,Gk:3,fb:4};e.g.I.Lq=function(a,c){e.g.I.Jg(new e.g.Kd(a,c))};e.g.I.Jg=function(a){e.g.I.vg=a};e.g.tf=function(){};e.A(e.g.tf,e.g.ce);e.g.tf.prototype.je=function(){var a=B(this);return a?new ActiveXObject(a):new XMLHttpRequest};
|
|
var B=function(a){if(e.g.I.nj)return"";if(!a.Lg&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var c=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],d=0;d<c.length;d++){var f=c[d];try{return new ActiveXObject(f),a.Lg=f}catch(g){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.Lg};e.g.I.Jg(new e.g.tf);e.g.t=function(a){e.a.za.call(this);this.headers=new e.m.W;this.ed=a||null;this.Za=!1;this.ad=this.C=null;this.ic=this.xf=this.$c="";this.pb=this.he=this.bd=this.ge=!1;this.Kb=0;this.cd=null;this.yf=e.g.t.Th.Sh;this.dd=this.wf=!1};e.A(e.g.t,e.a.za);e.g.t.Th={Sh:"",Kk:"text",Ck:"document",Dl:"blob",ARRAY_BUFFER:"arraybuffer"};e.g.t.prototype.qa=e.log.cc("goog.net.XhrIo");e.g.t.Df="Content-Type";e.g.t.Xh=/^https?$/i;e.g.t.Mh=["POST","PUT"];e.g.t.Lh="application/x-www-form-urlencoded;charset=utf-8";
|
|
e.g.t.Cf="timeout";e.g.t.ie="ontimeout";e.g.t.se=[];e.g.t.send=function(a,c,d,f,g,h,k){var m=new e.g.t;e.g.t.se.push(m);c&&m.Ob(e.g.la.fb,c);m.od(e.g.la.Jb,m.Bi);h&&(m.Kb=Math.max(0,h));k&&(m.wf=k);m.send(a,d,f,g)};e.g.t.ap=function(){for(var a=e.g.t.se;a.length;)a.pop().ub()};e.g.t.Cq=function(a){e.g.t.prototype.Ec=a.Wh(e.g.t.prototype.Ec)};e.g.t.prototype.Bi=function(){this.ub();e.b.remove(e.g.t.se,this)};
|
|
e.g.t.prototype.send=function(a,c,d,f){if(this.C)throw Error("[goog.net.XhrIo] Object is active with another request="+this.$c+"; newUri="+a);c=c?c.toUpperCase():"GET";this.$c=a;this.ic="";this.xf=c;this.ge=!1;this.Za=!0;this.C=this.ed?this.ed.je():e.g.I();this.ad=this.ed?this.ed.kc():e.g.I.kc();this.C.onreadystatechange=e.bind(this.Bf,this);try{e.log.ra(this.qa,C(this,"Opening Xhr")),this.he=!0,this.C.open(c,a,!0),this.he=!1}catch(g){e.log.ra(this.qa,C(this,"Error opening Xhr: "+g.message));D(this,
|
|
g);return}a=d||"";var h=this.headers.ba();f&&e.m.forEach(f,function(a,c){h.set(c,a)});f=e.b.find(h.da(),e.g.t.Nh);d=e.global.FormData&&a instanceof e.global.FormData;!e.b.contains(e.g.t.Mh,c)||f||d||h.set(e.g.t.Df,e.g.t.Lh);e.m.forEach(h,function(a,c){this.C.setRequestHeader(c,a)},this);this.yf&&(this.C.responseType=this.yf);e.object.$a(this.C,"withCredentials")&&(this.C.withCredentials=this.wf);try{E(this),0<this.Kb&&(this.dd=e.g.t.Oh(this.C),e.log.ra(this.qa,C(this,"Will abort after "+this.Kb+"ms if incomplete, xhr2 "+
|
|
this.dd)),this.dd?(this.C[e.g.t.Cf]=this.Kb,this.C[e.g.t.ie]=e.bind(this.Ef,this)):this.cd=e.U.ob(this.Ef,this.Kb,this)),e.log.ra(this.qa,C(this,"Sending request")),this.bd=!0,this.C.send(a),this.bd=!1}catch(k){e.log.ra(this.qa,C(this,"Send error: "+k.message)),D(this,k)}};e.g.t.Oh=function(a){return e.userAgent.Ca&&e.userAgent.Ka(9)&&e.ia(a[e.g.t.Cf])&&e.aa(a[e.g.t.ie])};e.g.t.Nh=function(a){return e.c.Cj(a)};
|
|
e.g.t.prototype.Ef=function(){"undefined"!=typeof e&&this.C&&(this.ic="Timed out after "+this.Kb+"ms, aborting",e.log.ra(this.qa,C(this,this.ic)),this.dispatchEvent(e.g.la.TIMEOUT),this.abort(e.g.Ea.TIMEOUT))};var D=function(a,c){a.Za=!1;a.C&&(a.pb=!0,a.C.abort(),a.pb=!1);a.ic=c;F(a);G(a)},F=function(a){a.ge||(a.ge=!0,a.dispatchEvent(e.g.la.fb),a.dispatchEvent(e.g.la.Kg))};
|
|
e.g.t.prototype.abort=function(){this.C&&this.Za&&(e.log.ra(this.qa,C(this,"Aborting")),this.Za=!1,this.pb=!0,this.C.abort(),this.pb=!1,this.dispatchEvent(e.g.la.fb),this.dispatchEvent(e.g.la.He),G(this))};e.g.t.prototype.Ta=function(){this.C&&(this.Za&&(this.Za=!1,this.pb=!0,this.C.abort(),this.pb=!1),G(this,!0));e.g.t.Ja.Ta.call(this)};e.g.t.prototype.Bf=function(){this.ae()||(this.he||this.bd||this.pb?H(this):this.Ec())};e.g.t.prototype.Ec=function(){H(this)};
|
|
var H=function(a){if(a.Za&&"undefined"!=typeof e)if(a.ad[e.g.I.td.Of]&&I(a)==e.g.I.Ub.fb&&2==J(a))e.log.ra(a.qa,C(a,"Local request error detected and ignored"));else if(a.bd&&I(a)==e.g.I.Ub.fb)e.U.ob(a.Bf,0,a);else if(a.dispatchEvent(e.g.la.Zh),I(a)==e.g.I.Ub.fb){e.log.ra(a.qa,C(a,"Request complete"));a.Za=!1;try{if(a.me())a.dispatchEvent(e.g.la.fb),a.dispatchEvent(e.g.la.$h);else{var c;try{c=I(a)>e.g.I.Ub.Pf?a.C.statusText:""}catch(d){e.log.ra(a.qa,"Can not get status: "+d.message),c=""}a.ic=c+" ["+
|
|
J(a)+"]";F(a)}}finally{G(a)}}},G=function(a,c){if(a.C){E(a);var d=a.C,f=a.ad[e.g.I.td.dg]?e.fg:null;a.C=null;a.ad=null;c||a.dispatchEvent(e.g.la.Jb);try{d.onreadystatechange=f}catch(g){e.log.error(a.qa,"Problem encountered resetting onreadystatechange: "+g.message)}}},E=function(a){a.C&&a.dd&&(a.C[e.g.t.ie]=null);e.ia(a.cd)&&(e.U.clear(a.cd),a.cd=null)};e.g.t.prototype.me=function(){var a=J(this),c;if(!(c=e.g.Ua.me(a))){if(a=0===a)a=e.uri.e.Yh(String(this.$c)),a=!e.g.t.Xh.test(a);c=a}return c};
|
|
var I=function(a){return a.C?a.C.readyState:e.g.I.Ub.Ji},J=function(a){try{return I(a)>e.g.I.Ub.Pf?a.C.status:-1}catch(c){return e.log.Le(a.qa,"Can not get status: "+c.message),-1}};e.g.t.prototype.Nf=function(){try{return this.C?this.C.responseText:""}catch(a){return e.log.ra(this.qa,"Can not get responseText: "+a.message),""}};var C=function(a,c){return c+" ["+a.xf+" "+a.$c+" "+J(a)+"]"};e.debug.$.Jh(function(a){e.g.t.prototype.Ec=a(e.g.t.prototype.Ec)});e.k=function(a,c){var d;a instanceof e.k?(this.Ba=e.aa(c)?c:a.Ba,K(this,a.mc()),L(this,a.jd()),M(this,a.lc()),N(this,a.hd()),O(this,a.Lb()),P(this,a.Jf().ba()),Q(this,a.gd())):a&&(d=e.uri.e.split(String(a)))?(this.Ba=!!c,K(this,d[e.uri.e.D.rc]||"",!0),L(this,d[e.uri.e.D.pe]||"",!0),M(this,d[e.uri.e.D.sb]||"",!0),N(this,d[e.uri.e.D.tb]),O(this,d[e.uri.e.D.qe]||"",!0),P(this,d[e.uri.e.D.re]||"",!0),Q(this,d[e.uri.e.D.If]||"",!0)):(this.Ba=!!c,this.Na=new e.k.ja(null,0,this.Ba))};e.k.Zj=!1;e.k.Ai=e.uri.e.Vf.Uf;
|
|
b=e.k.prototype;b.bc="";b.Te="";b.tc="";b.Hd=null;b.Gd="";b.Se="";b.gl=!1;b.Ba=!1;b.toString=function(){var a=[],c=this.mc();c&&a.push(e.k.uc(c,e.k.Wf),":");if(c=this.lc()){a.push("//");var d=this.jd();d&&a.push(e.k.uc(d,e.k.Wf),"@");a.push(e.c.nc(c));c=this.hd();null!=c&&a.push(":",String(c))}if(c=this.Lb())this.tc&&"/"!=c.charAt(0)&&a.push("/"),a.push(e.k.uc(c,"/"==c.charAt(0)?e.k.li:e.k.ni));(c=this.Na.toString())&&a.push("?",c);(c=this.gd())&&a.push("#",e.k.uc(c,e.k.mi));return a.join("")};
|
|
b.$g=function(a){var c=this.ba(),d=!!a.bc;d?K(c,a.mc()):d=!!a.Te;d?L(c,a.jd()):d=!!a.tc;d?M(c,a.lc()):d=null!=a.Hd;var f=a.Lb();if(d)N(c,a.hd());else if(d=!!a.Gd){if("/"!=f.charAt(0))if(this.tc&&!this.Gd)f="/"+f;else{var g=c.Lb().lastIndexOf("/");-1!=g&&(f=c.Lb().substr(0,g+1)+f)}f=e.k.Ri(f)}d?O(c,f):d=""!==a.Na.toString();d?P(c,e.k.ac(a.Na.toString())):d=!!a.Se;d&&Q(c,a.gd());return c};b.ba=function(){return new e.k(this)};b.mc=function(){return this.bc};
|
|
var K=function(a,c,d){R(a);a.bc=d?e.k.ac(c):c;a.bc&&(a.bc=a.bc.replace(/:$/,""))};e.k.prototype.jd=function(){return this.Te};var L=function(a,c,d){R(a);a.Te=d?e.k.ac(c):c};e.k.prototype.lc=function(){return this.tc};var M=function(a,c,d){R(a);a.tc=d?e.k.ac(c):c};e.k.prototype.hd=function(){return this.Hd};var N=function(a,c){R(a);if(c){c=Number(c);if(isNaN(c)||0>c)throw Error("Bad port number "+c);a.Hd=c}else a.Hd=null};e.k.prototype.Lb=function(){return this.Gd};
|
|
var O=function(a,c,d){R(a);a.Gd=d?e.k.ac(c):c},P=function(a,c,d){R(a);c instanceof e.k.ja?(a.Na=c,a.Na.ff(a.Ba)):(d||(c=e.k.uc(c,e.k.Tj)),a.Na=new e.k.ja(c,0,a.Ba))};e.k.prototype.Jf=function(){return this.Na};e.k.prototype.gd=function(){return this.Se};var Q=function(a,c,d){R(a);a.Se=d?e.k.ac(c):c};e.k.prototype.il=function(){R(this);var a=e.k.Ai,c=e.c.Lf();R(this);this.Na.set(a,c);return this};var R=function(a){if(a.gl)throw Error("Tried to modify a read-only Uri");};
|
|
e.k.prototype.ff=function(a){this.Ba=a;this.Na&&this.Na.ff(a);return this};e.k.parse=function(a,c){return a instanceof e.k?a.ba():new e.k(a,c)};e.k.create=function(a,c,d,f,g,h,k,m){m=new e.k(null,m);a&&K(m,a);c&&L(m,c);d&&M(m,d);f&&N(m,f);g&&O(m,g);h&&P(m,h);k&&Q(m,k);return m};e.k.$g=function(a,c){a instanceof e.k||(a=e.k.parse(a));c instanceof e.k||(c=e.k.parse(c));return a.$g(c)};
|
|
e.k.Ri=function(a){if(".."==a||"."==a)return"";if(e.c.contains(a,"./")||e.c.contains(a,"/.")){var c=e.c.kd(a,"/");a=a.split("/");for(var d=[],f=0;f<a.length;){var g=a[f++];"."==g?c&&f==a.length&&d.push(""):".."==g?((1<d.length||1==d.length&&""!=d[0])&&d.pop(),c&&f==a.length&&d.push("")):(d.push(g),c=!0)}return d.join("/")}return a};e.k.ac=function(a){return a?decodeURIComponent(a):""};e.k.uc=function(a,c){return e.q(a)?encodeURI(a).replace(c,e.k.Sj):null};
|
|
e.k.Sj=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};e.k.Wf=/[#\/\?@]/g;e.k.ni=/[\#\?:]/g;e.k.li=/[\#\?]/g;e.k.Tj=/[\#\?@]/g;e.k.mi=/#/g;e.k.cl=function(a,c){var d=e.uri.e.split(a),f=e.uri.e.split(c);return d[e.uri.e.D.sb]==f[e.uri.e.D.sb]&&d[e.uri.e.D.tb]==f[e.uri.e.D.tb]};e.k.ja=function(a,c,d){this.sa=a||null;this.Ba=!!d};
|
|
var T=function(a){if(!a.V&&(a.V=new e.m.W,a.O=0,a.sa))for(var c=a.sa.split("&"),d=0;d<c.length;d++){var f=c[d].indexOf("="),g=null,h=null;0<=f?(g=c[d].substring(0,f),h=c[d].substring(f+1)):g=c[d];g=e.c.md(g);g=S(a,g);a.add(g,h?e.c.md(h):"")}};e.k.ja.jp=function(a,c,d){c=e.m.da(a);if("undefined"==typeof c)throw Error("Keys are undefined");d=new e.k.ja(null,0,d);a=e.m.N(a);for(var f=0;f<c.length;f++){var g=c[f],h=a[f];e.isArray(h)?U(d,g,h):d.add(g,h)}return d};
|
|
e.k.ja.ip=function(a,c,d,f){if(a.length!=c.length)throw Error("Mismatched lengths for keys/values");d=new e.k.ja(null,0,f);for(f=0;f<a.length;f++)d.add(a[f],c[f]);return d};b=e.k.ja.prototype;b.V=null;b.O=null;b.wa=function(){T(this);return this.O};b.add=function(a,c){T(this);this.sa=null;a=S(this,a);var d=this.V.get(a);d||this.V.set(a,d=[]);d.push(c);this.O++;return this};b.remove=function(a){T(this);a=S(this,a);return this.V.$a(a)?(this.sa=null,this.O-=this.V.get(a).length,this.V.remove(a)):!1};
|
|
b.clear=function(){this.V=this.sa=null;this.O=0};b.ma=function(){T(this);return 0==this.O};b.$a=function(a){T(this);a=S(this,a);return this.V.$a(a)};b.Xb=function(a){var c=this.N();return e.b.contains(c,a)};b.da=function(){T(this);for(var a=this.V.N(),c=this.V.da(),d=[],f=0;f<c.length;f++)for(var g=a[f],h=0;h<g.length;h++)d.push(c[f]);return d};
|
|
b.N=function(a){T(this);var c=[];if(e.q(a))this.$a(a)&&(c=e.b.concat(c,this.V.get(S(this,a))));else{a=this.V.N();for(var d=0;d<a.length;d++)c=e.b.concat(c,a[d])}return c};b.set=function(a,c){T(this);this.sa=null;a=S(this,a);this.$a(a)&&(this.O-=this.V.get(a).length);this.V.set(a,[c]);this.O++;return this};b.get=function(a,c){var d=a?this.N(a):[];return e.k.Zj?0<d.length?d[0]:c:0<d.length?String(d[0]):c};var U=function(a,c,d){a.remove(c);0<d.length&&(a.sa=null,a.V.set(S(a,c),e.b.ba(d)),a.O+=d.length)};
|
|
e.k.ja.prototype.toString=function(){if(this.sa)return this.sa;if(!this.V)return"";for(var a=[],c=this.V.da(),d=0;d<c.length;d++)for(var f=c[d],g=e.c.nc(f),f=this.N(f),h=0;h<f.length;h++){var k=g;""!==f[h]&&(k+="="+e.c.nc(f[h]));a.push(k)}return this.sa=a.join("&")};e.k.ja.prototype.ba=function(){var a=new e.k.ja;a.sa=this.sa;this.V&&(a.V=this.V.ba(),a.O=this.O);return a};var S=function(a,c){var d=String(c);a.Ba&&(d=d.toLowerCase());return d};
|
|
e.k.ja.prototype.ff=function(a){a&&!this.Ba&&(T(this),this.sa=null,e.m.forEach(this.V,function(a,d){var f=d.toLowerCase();d!=f&&(this.remove(d),U(this,f,a))},this));this.Ba=a};e.k.ja.prototype.extend=function(a){for(var c=0;c<arguments.length;c++)e.m.forEach(arguments[c],function(a,c){this.add(c,a)},this)};var V={data:{}};V.data.ud=null;V.data.ec=null;V.data.w=!1;V.data.Zf=0;V.data.ck="/api";V.data.dk="https://earthengine.googleapis.com";V.data.v=function(a,c){e.bb(a)?V.data.ud=a:V.data.w||(V.data.ud=V.data.ck);e.bb(c)?V.data.ec=c:V.data.w||(V.data.ec=V.data.dk);V.data.w=!0};V.data.reset=function(){V.data.ud=null;V.data.ec=null;V.data.w=!1};V.data.Kq=function(a){V.data.Zf=a};V.data.lb=function(a,c){return V.data.Fa("/info",(new e.k.ja).add("id",a),c)};
|
|
V.data.al=function(a,c){var d=V.data.Xa(a);return V.data.Fa("/list",d,c)};V.data.qf=function(a,c){a.json_format="v2";return V.data.Fa("/mapid",V.data.Xa(a),c)};V.data.Mp=function(a,c,d,f){var g=Math.pow(2,f);c%=g;0>c&&(c+=g);return[V.data.ec,"map",a.mapid,f,c,d].join("/")+"?token="+a.token};V.data.nh=function(a,c){a.json_format="v2";return V.data.Fa("/value",V.data.Xa(a),c)};
|
|
V.data.jh=function(a,c){a.json_format="v2";e.isArray(a.size)&&(a.size=a.size.join("x"));var d=V.data.Xa(a).add("getid","1");return V.data.Fa("/thumb",d,c)};V.data.lh=function(a){return V.data.ec+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};V.data.ih=function(a,c){a.json_format="v2";return V.data.Fa("/download",V.data.Xa(a),c)};V.data.kh=function(a){return V.data.ec+"/api/download?docid="+a.docid+"&token="+a.token};V.data.Sg=function(a){return V.data.Fa("/algorithms",null,a,"GET")};
|
|
V.data.hp=function(a,c,d){a={value:a,json_format:"v2"};void 0!==c&&(a.id=c);return V.data.Fa("/create",V.data.Xa(a),d)};V.data.rq=function(a,c){var d={};e.ia(a)&&(d.count=a);return V.data.Fa("/newtaskid",V.data.Xa(d),c)};V.data.Lp=function(a,c){if(e.q(a))a=[a];else if(!e.isArray(a))throw Error("Invalid task_id: expected a string or an array of strings.");var d="/taskstatus?q="+a.join();return V.data.Fa(d,null,c,"GET")};V.data.Aq=function(a,c,d){c.tid=a;return V.data.Fa("/prepare",V.data.Xa(c),d)};
|
|
V.data.Vq=function(a,c,d){c.id=a;return V.data.Fa("/processingrequest",V.data.Xa(c),d)};
|
|
V.data.Fa=function(a,c,d,f){function g(a,c){var d=!1;try{var f=e.ca.parse(a),g=f.data}catch(h){d=!0}var r=void 0;d||!("data"in f||"error"in f)?r="Malformed response: "+a:"error"in f&&(r=f.error.message);if(c)c(g,r);else{if(!r)return g;throw Error(r);}}V.data.v();f=f||"POST";a=V.data.ud+a;c=c?c.toString():"";if(d)e.g.t.send(a,function(a){return g(a.target.Nf(),d)},f,c,{"Content-Type":"application/x-www-form-urlencoded"},V.data.Zf);else{var h=e.g.I();h.open(f,a,!1);h.setRequestHeader("Content-Type",
|
|
"application/x-www-form-urlencoded");h.send(c);return g(h.responseText,null)}};V.data.Xa=function(a){var c=new e.k.ja,d;for(d in a)c.set(d,a[d]);return c};
|
|
V.data.Qq=function(a){var c=a||{};e.g.t.send=function(a,d,h,k){var m=new function(){};m.target={};m.target.Nf=function(){return a in c?e.q(c[a])?c[a]:c[a](a,d,h,k):'{"error": {}}'};setTimeout(e.bind(d,m,m),0)};var d=function(){};d.prototype.open=function(a,c){this.url=c;this.method=a};d.prototype.setRequestHeader=function(){};d.prototype.send=function(a){this.responseText=this.url in c?e.q(c[this.url])?c[this.url]:c[this.url](this.url,this.method,a):e.ca.ga({data:{url:this.url,method:this.method,
|
|
data:a}})};e.g.I=function(){return new d}};e.T("ee.data",V.data);e.j(V.data,"getInfo",V.data.lb);e.j(V.data,"getList",V.data.al);e.j(V.data,"getMapId",V.data.qf);e.j(V.data,"getValue",V.data.nh);e.j(V.data,"getThumbId",V.data.jh);e.j(V.data,"makeThumbUrl",V.data.lh);e.j(V.data,"getDownloadId",V.data.ih);e.j(V.data,"makeDownloadUrl",V.data.kh);e.M={};e.M.$d=function(a){return function(){return a}};e.M.mm=e.M.$d(!1);e.M.qo=e.M.$d(!0);e.M.Cn=e.M.$d(null);e.M.dl=function(a){return a};e.M.error=function(a){return function(){throw Error(a);}};e.M.ld=function(a){return function(){throw a;}};e.M.nq=function(a,c){c=c||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,c))}};e.M.vq=function(a){return function(){return arguments[a]}};e.M.jr=function(a,c){return e.M.nk(a,e.M.$d(c))};
|
|
e.M.fp=function(a,c){var d=arguments,f=d.length;return function(){var a;f&&(a=d[f-1].apply(this,arguments));for(var c=f-2;0<=c;c--)a=d[c].call(this,a);return a}};e.M.nk=function(a){var c=arguments,d=c.length;return function(){for(var a,g=0;g<d;g++)a=c[g].apply(this,arguments);return a}};e.M.Uc=function(a){var c=arguments,d=c.length;return function(){for(var a=0;a<d;a++)if(!c[a].apply(this,arguments))return!1;return!0}};
|
|
e.M.Ih=function(a){var c=arguments,d=c.length;return function(){for(var a=0;a<d;a++)if(c[a].apply(this,arguments))return!0;return!1}};e.M.cb=function(a){return function(){return!a.apply(this,arguments)}};e.M.create=function(a,c){var d=function(){};d.prototype=a.prototype;d=new d;a.apply(d,Array.prototype.slice.call(arguments,1));return d};e.M.pk=!0;e.M.Vo=function(a){var c=!1,d;return function(){if(!e.M.pk)return a();c||(d=a(),c=!0);return d}};V.Pb=function(){};e.Ib={};e.Ib.Fk=function(){};e.Ib.be=function(){this.ea=Array(4);this.Yj=Array(64);this.Nd=this.Pc=0;this.reset()};e.A(e.Ib.be,e.Ib.Fk);e.Ib.be.prototype.reset=function(){this.ea[0]=1732584193;this.ea[1]=4023233417;this.ea[2]=2562383102;this.ea[3]=271733878;this.Nd=this.Pc=0};
|
|
var W=function(a,c,d){d||(d=0);var f=Array(16);if(e.q(c))for(var g=0;16>g;++g)f[g]=c.charCodeAt(d++)|c.charCodeAt(d++)<<8|c.charCodeAt(d++)<<16|c.charCodeAt(d++)<<24;else for(g=0;16>g;++g)f[g]=c[d++]|c[d++]<<8|c[d++]<<16|c[d++]<<24;c=a.ea[0];d=a.ea[1];var g=a.ea[2],h=a.ea[3],k=0,k=c+(h^d&(g^h))+f[0]+3614090360&4294967295;c=d+(k<<7&4294967295|k>>>25);k=h+(g^c&(d^g))+f[1]+3905402710&4294967295;h=c+(k<<12&4294967295|k>>>20);k=g+(d^h&(c^d))+f[2]+606105819&4294967295;g=h+(k<<17&4294967295|k>>>15);k=d+
|
|
(c^g&(h^c))+f[3]+3250441966&4294967295;d=g+(k<<22&4294967295|k>>>10);k=c+(h^d&(g^h))+f[4]+4118548399&4294967295;c=d+(k<<7&4294967295|k>>>25);k=h+(g^c&(d^g))+f[5]+1200080426&4294967295;h=c+(k<<12&4294967295|k>>>20);k=g+(d^h&(c^d))+f[6]+2821735955&4294967295;g=h+(k<<17&4294967295|k>>>15);k=d+(c^g&(h^c))+f[7]+4249261313&4294967295;d=g+(k<<22&4294967295|k>>>10);k=c+(h^d&(g^h))+f[8]+1770035416&4294967295;c=d+(k<<7&4294967295|k>>>25);k=h+(g^c&(d^g))+f[9]+2336552879&4294967295;h=c+(k<<12&4294967295|k>>>
|
|
20);k=g+(d^h&(c^d))+f[10]+4294925233&4294967295;g=h+(k<<17&4294967295|k>>>15);k=d+(c^g&(h^c))+f[11]+2304563134&4294967295;d=g+(k<<22&4294967295|k>>>10);k=c+(h^d&(g^h))+f[12]+1804603682&4294967295;c=d+(k<<7&4294967295|k>>>25);k=h+(g^c&(d^g))+f[13]+4254626195&4294967295;h=c+(k<<12&4294967295|k>>>20);k=g+(d^h&(c^d))+f[14]+2792965006&4294967295;g=h+(k<<17&4294967295|k>>>15);k=d+(c^g&(h^c))+f[15]+1236535329&4294967295;d=g+(k<<22&4294967295|k>>>10);k=c+(g^h&(d^g))+f[1]+4129170786&4294967295;c=d+(k<<5&4294967295|
|
|
k>>>27);k=h+(d^g&(c^d))+f[6]+3225465664&4294967295;h=c+(k<<9&4294967295|k>>>23);k=g+(c^d&(h^c))+f[11]+643717713&4294967295;g=h+(k<<14&4294967295|k>>>18);k=d+(h^c&(g^h))+f[0]+3921069994&4294967295;d=g+(k<<20&4294967295|k>>>12);k=c+(g^h&(d^g))+f[5]+3593408605&4294967295;c=d+(k<<5&4294967295|k>>>27);k=h+(d^g&(c^d))+f[10]+38016083&4294967295;h=c+(k<<9&4294967295|k>>>23);k=g+(c^d&(h^c))+f[15]+3634488961&4294967295;g=h+(k<<14&4294967295|k>>>18);k=d+(h^c&(g^h))+f[4]+3889429448&4294967295;d=g+(k<<20&4294967295|
|
|
k>>>12);k=c+(g^h&(d^g))+f[9]+568446438&4294967295;c=d+(k<<5&4294967295|k>>>27);k=h+(d^g&(c^d))+f[14]+3275163606&4294967295;h=c+(k<<9&4294967295|k>>>23);k=g+(c^d&(h^c))+f[3]+4107603335&4294967295;g=h+(k<<14&4294967295|k>>>18);k=d+(h^c&(g^h))+f[8]+1163531501&4294967295;d=g+(k<<20&4294967295|k>>>12);k=c+(g^h&(d^g))+f[13]+2850285829&4294967295;c=d+(k<<5&4294967295|k>>>27);k=h+(d^g&(c^d))+f[2]+4243563512&4294967295;h=c+(k<<9&4294967295|k>>>23);k=g+(c^d&(h^c))+f[7]+1735328473&4294967295;g=h+(k<<14&4294967295|
|
|
k>>>18);k=d+(h^c&(g^h))+f[12]+2368359562&4294967295;d=g+(k<<20&4294967295|k>>>12);k=c+(d^g^h)+f[5]+4294588738&4294967295;c=d+(k<<4&4294967295|k>>>28);k=h+(c^d^g)+f[8]+2272392833&4294967295;h=c+(k<<11&4294967295|k>>>21);k=g+(h^c^d)+f[11]+1839030562&4294967295;g=h+(k<<16&4294967295|k>>>16);k=d+(g^h^c)+f[14]+4259657740&4294967295;d=g+(k<<23&4294967295|k>>>9);k=c+(d^g^h)+f[1]+2763975236&4294967295;c=d+(k<<4&4294967295|k>>>28);k=h+(c^d^g)+f[4]+1272893353&4294967295;h=c+(k<<11&4294967295|k>>>21);k=g+(h^
|
|
c^d)+f[7]+4139469664&4294967295;g=h+(k<<16&4294967295|k>>>16);k=d+(g^h^c)+f[10]+3200236656&4294967295;d=g+(k<<23&4294967295|k>>>9);k=c+(d^g^h)+f[13]+681279174&4294967295;c=d+(k<<4&4294967295|k>>>28);k=h+(c^d^g)+f[0]+3936430074&4294967295;h=c+(k<<11&4294967295|k>>>21);k=g+(h^c^d)+f[3]+3572445317&4294967295;g=h+(k<<16&4294967295|k>>>16);k=d+(g^h^c)+f[6]+76029189&4294967295;d=g+(k<<23&4294967295|k>>>9);k=c+(d^g^h)+f[9]+3654602809&4294967295;c=d+(k<<4&4294967295|k>>>28);k=h+(c^d^g)+f[12]+3873151461&4294967295;
|
|
h=c+(k<<11&4294967295|k>>>21);k=g+(h^c^d)+f[15]+530742520&4294967295;g=h+(k<<16&4294967295|k>>>16);k=d+(g^h^c)+f[2]+3299628645&4294967295;d=g+(k<<23&4294967295|k>>>9);k=c+(g^(d|~h))+f[0]+4096336452&4294967295;c=d+(k<<6&4294967295|k>>>26);k=h+(d^(c|~g))+f[7]+1126891415&4294967295;h=c+(k<<10&4294967295|k>>>22);k=g+(c^(h|~d))+f[14]+2878612391&4294967295;g=h+(k<<15&4294967295|k>>>17);k=d+(h^(g|~c))+f[5]+4237533241&4294967295;d=g+(k<<21&4294967295|k>>>11);k=c+(g^(d|~h))+f[12]+1700485571&4294967295;c=d+
|
|
(k<<6&4294967295|k>>>26);k=h+(d^(c|~g))+f[3]+2399980690&4294967295;h=c+(k<<10&4294967295|k>>>22);k=g+(c^(h|~d))+f[10]+4293915773&4294967295;g=h+(k<<15&4294967295|k>>>17);k=d+(h^(g|~c))+f[1]+2240044497&4294967295;d=g+(k<<21&4294967295|k>>>11);k=c+(g^(d|~h))+f[8]+1873313359&4294967295;c=d+(k<<6&4294967295|k>>>26);k=h+(d^(c|~g))+f[15]+4264355552&4294967295;h=c+(k<<10&4294967295|k>>>22);k=g+(c^(h|~d))+f[6]+2734768916&4294967295;g=h+(k<<15&4294967295|k>>>17);k=d+(h^(g|~c))+f[13]+1309151649&4294967295;
|
|
d=g+(k<<21&4294967295|k>>>11);k=c+(g^(d|~h))+f[4]+4149444226&4294967295;c=d+(k<<6&4294967295|k>>>26);k=h+(d^(c|~g))+f[11]+3174756917&4294967295;h=c+(k<<10&4294967295|k>>>22);k=g+(c^(h|~d))+f[2]+718787259&4294967295;g=h+(k<<15&4294967295|k>>>17);k=d+(h^(g|~c))+f[9]+3951481745&4294967295;a.ea[0]=a.ea[0]+c&4294967295;a.ea[1]=a.ea[1]+(g+(k<<21&4294967295|k>>>11))&4294967295;a.ea[2]=a.ea[2]+g&4294967295;a.ea[3]=a.ea[3]+h&4294967295};
|
|
e.Ib.be.prototype.update=function(a,c){e.aa(c)||(c=a.length);for(var d=c-64,f=this.Yj,g=this.Pc,h=0;h<c;){if(0==g)for(;h<=d;)W(this,a,h),h+=64;if(e.q(a))for(;h<c;){if(f[g++]=a.charCodeAt(h++),64==g){W(this,f);g=0;break}}else for(;h<c;)if(f[g++]=a[h++],64==g){W(this,f);g=0;break}}this.Pc=g;this.Nd+=c};
|
|
var aa=function(){var a=V.B.oe,c=Array((56>a.Pc?64:128)-a.Pc);c[0]=128;for(var d=1;d<c.length-8;++d)c[d]=0;for(var f=8*a.Nd,d=c.length-8;d<c.length;++d)c[d]=f&255,f/=256;a.update(c);c=Array(16);for(d=f=0;4>d;++d)for(var g=0;32>g;g+=8)c[f++]=a.ea[d]>>>g&255;return c};V.B=function(a){this.xe="__ee_hash__";this.ve=!1!==a;this.Rb=[];this.Qb={}};V.B.we=new e.ca.B;V.B.oe=new e.Ib.be;V.B.toJSON=function(a){return V.B.we.ga(X(new V.B(!0),a))};V.B.gh=function(a){a=X(new V.B(!1),a);return"JSON"in window?window.JSON.stringify(a,null," "):V.B.we.ga(a)};var X=function(a,c){var d=a.sd(c);a.ve&&(d=e.Pa(d)&&"ValueRef"==d.type&&1==a.Rb.length?a.Rb[0][1]:{type:"CompoundValue",scope:a.Rb,value:d},a.Rb=[],a.Qb={});return d};
|
|
V.B.prototype.sd=function(a){if(!e.aa(a))throw Error("Can't encode an undefined value.");var c,d=e.Pa(a)?a[this.xe]:null;if(this.ve&&null!=d&&this.Qb[d])return{type:"ValueRef",value:this.Qb[d]};if(null===a||e.Gf(a)||e.ia(a)||e.q(a))return a;if(e.Uh(a))return{type:"Date",value:Math.floor(1E3*a.getTime())};if(a instanceof V.Pb){if(c=a.pa(e.bind(this.sd,this)),!e.Pa(c)||"ArgumentRef"==c.type)return c}else if(e.isArray(a))c=e.b.map(a,function(a){return this.sd(a)},this);else if(e.Pa(a)&&!e.xa(a))c=e.object.map(a,
|
|
function(a){if(!e.xa(a))return this.sd(a)},this),e.object.remove(c,this.xe),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.ve){V.B.oe.reset();V.B.oe.update(V.B.we.ga(c));var d=aa(),f;this.Qb[d]?f=this.Qb[d]:(f=String(this.Rb.length),this.Rb.push([f,c]),this.Qb[d]=f);a[this.xe]=d;return{type:"ValueRef",value:f}}return c};e.T("ee.Serializer",V.B);e.T("ee.Serializer.toJSON",V.B.toJSON);e.T("ee.Serializer.toReadableJSON",V.B.gh);V.r=function(a,c){if(!(this instanceof V.r))return new V.r(a,c);this.oa=a;this.Ia=c};e.A(V.r,V.Pb);b=V.r.prototype;b.lb=function(a){return V.data.nh({json:this.ga()},a)};b.pa=function(a){var c={},d;for(d in this.Ia)e.aa(this.Ia[d])&&(c[d]=a(this.Ia[d]));c={type:"Invocation",arguments:c};a=a(this.oa);c[e.q(a)?"functionName":"function"]=a;return c};b.ga=function(){return V.B.toJSON(this)};b.toString=function(){return"ee."+this.name()+"("+V.B.gh(this)+")"};b.name=function(){return"ComputedObject"};
|
|
e.T("ee.ComputedObject",V.r);e.j(V.r.prototype,"getInfo",V.r.prototype.lb);e.j(V.r.prototype,"serialize",V.r.prototype.ga);e.j(V.r.prototype,"toString",V.r.prototype.toString);V.X=function(){if(!(this instanceof V.X))return new V.X};e.A(V.X,V.Pb);V.X.jf=e.M.dl;V.X.kl=function(){V.X.jf=V.qk};V.X.prototype.call=function(a){return this.apply(ba(this,Array.prototype.slice.call(arguments,0)))};
|
|
V.X.prototype.apply=function(a){for(var c=V.r,d=this.La().args,f={},g={},h=0;h<d.length;h++){var k=d[h].name;if(k in a&&e.aa(a[k]))f[k]=V.X.jf(a[k],d[h].type);else if(!d[h].optional)throw Error("Required argument ("+k+") missing to function: "+this);g[k]=!0}var d=[],m;for(m in a)g[m]||d.push(m);if(0<d.length)throw Error("Unrecognized arguments ("+d+") to function: "+this);return V.X.jf(new c(this,f),this.La().returns)};
|
|
var ba=function(a,c){var d=a.La().args;if(d.length<c.length)throw Error("Too many ("+c.length+") arguments to function: "+a);for(var f={},g=0;g<c.length;g++)f[d[g].name]=c[g];return f};
|
|
V.X.prototype.toString=function(a,c){var d=this.La(),f=[];f.push(a||d.name);f.push("(");f.push(e.b.map(d.args.slice(1),function(a){return a.name}).join(", "));f.push(")\n");d.description&&(f.push("\n"),f.push(d.description),f.push("\n"));if(d.args.length){f.push("\nArgs:\n");for(var g=0;g<d.args.length;g++){c&&0==g?f.push(" this:"):f.push("\n ");var h=d.args[g];f.push(h.name);f.push(" (");f.push(h.type);h.optional&&f.push(", optional");f.push("): ");f.push(h.description)}}return f.join("")};
|
|
V.X.prototype.ga=function(){return V.B.toJSON(this)};V.L={};V.L.ah="__EE_VAR_TYPE";V.L.og=function(a){return a.prototype instanceof V.r?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"};
|
|
V.L.kg=function(a,c){if(c==a)return!0;switch(a){case "EEObject":return"Image"==c||"Feature"==c||"Collection"==c||"EECollection"==c||"ImageCollection"==c||"FeatureCollection"==c;case "FeatureCollection":case "EECollection":case "Collection":return"Collection"==c||"EECollection"==c||"ImageCollection"==c||"FeatureCollection"==c;case "Object":return!0;default:return!1}};V.L.ia=function(a){return e.ia(a)||V.L.fd(a,Number)};V.L.q=function(a){return e.q(a)||V.L.fd(a,String)};
|
|
V.L.isArray=function(a){return e.isArray(a)||V.L.fd(a,Array)};V.L.fd=function(a,c){if(a instanceof V.Pb){var d=a[V.L.ah];return d&&(d==c||d.prototype instanceof c)}return!1};V.h=function(a,c){if(!e.aa(c))return V.h.$e(a);if(!(this instanceof V.h))return new V.h(a,c);this.ef=e.object.tg(c);this.ef.name=a};e.A(V.h,V.X);V.h.K=function(a,c){return V.X.prototype.call.apply(V.h.$e(a),Array.prototype.slice.call(arguments,1))};V.h.Tb=function(a,c){return V.h.$e(a).apply(c)};V.h.prototype.pa=function(){return this.ef.name};V.h.prototype.La=function(){return this.ef};V.h.xb=null;V.h.Qe={};V.h.Wj=function(){V.h.v();return e.object.map(V.h.xb,function(a){return a.La()})};
|
|
V.h.oi=function(){V.h.v();return e.object.filter(V.h.xb,function(a,c){return!V.h.Qe[c]})};V.h.$e=function(a){V.h.v();var c=V.h.xb[a];if(!c)throw Error("Unknown built-in function name: "+a);return c};V.h.v=function(a){if(!V.h.xb){var c=function(c){V.h.xb=e.object.map(c,function(a,c){a.returns=a.returns.replace(/<.*>/,"");for(var d=0;d<a.args.length;d++)a.args[d].type=a.args[d].type.replace(/<.*>/,"");return new V.h(c,a)});a&&a()};a?V.data.Sg(c):c(V.data.Sg())}};
|
|
V.h.reset=function(){V.h.xb=null;V.h.Qe={}};V.h.ya=function(a,c,d,f){V.h.v();var g=f||"";e.object.forEach(V.h.xb,function(f,k){var m=k.split(".");if(2==m.length&&m[0]==c){var m=g+m[1],n=f.La();V.h.Qe[k]=!0;var q=!1;if(n.args.length)var s=n.args[0].type,q="Object"!=s&&V.L.kg(s,d);s=q?a.prototype:a;m in s&&(m+="_");s[m]=function(a){var c=Array.prototype.slice.call(arguments,0);q&&c.unshift(this);return f.call.apply(f,c)};s[m].toString=e.bind(f.toString,f,m,q);s[m].signature=n}})};
|
|
V.h.Sa=function(a){var c=function(a){for(var c in a)e.xa(a[c])&&a[c].signature&&delete a[c]};c(a);c(a.prototype)};V.eb=function(a,c,d){if(!(this instanceof V.eb))return new V.eb(a,c,d);var f,g;if(e.xa(d)){if(e.isArray(a)||!e.Pa(a))throw Error('The "args" of a custom function created from a native JS function must be a map from name to type.');f=[];g=[];var h=[],k;for(k in a){var m=a[k];f.push(k);g.push(m);h.push(V.eb.Hi(m,k))}d=d.apply(null,h)}else{if(!e.isArray(a))throw Error('The "args" of a custom function created from an expression must be an array of names.');f=a;g=e.b.map(a,function(){return Object})}this.eg=
|
|
f;this.yi=g;this.zi=c||Object;this.Gi=d};e.A(V.eb,V.X);V.eb.prototype.pa=function(a){return{type:"Function",argumentNames:this.eg,body:a(this.Gi)}};V.eb.prototype.La=function(){return{name:"",args:e.b.map(this.eg,function(a,c){return{name:a,type:V.L.og(this.yi[c]),optional:!1}},this),returns:V.L.og(this.zi)}};
|
|
V.eb.Hi=function(a,c){var d=function(){};a=a||Object;d.prototype=a.prototype instanceof V.Pb?a.prototype:V.Pb.prototype;d=new d;d.pa=function(){return{type:"ArgumentRef",value:c}};d[V.L.ah]=a;return d};V.d=function(a){if(!(this instanceof V.d))return new V.d(a);if(a instanceof V.d)return a;V.d.v();if(e.isArray(a)){if(0==a.length)throw Error("Empty list specified for ee.Filter().");if(1==a.length)return new V.d(a[0]);V.r.call(this,new V.h("Filter.and"),{filters:a});this.oc=a}else if(a instanceof V.r)V.r.call(this,a.oa,a.Ia),this.oc=[a];else{if(e.aa(a))throw Error("Invalid argument specified for ee.Filter(): "+a);V.r.call(this,null,null);this.oc=[]}};e.A(V.d,V.r);V.d.w=!1;
|
|
V.d.v=function(){V.d.w||(V.h.ya(V.d,"Filter","Filter"),V.d.w=!0)};V.d.reset=function(){V.h.Sa(V.d);V.d.w=!1};V.d.Hf={equals:"equals",less_than:"lessThan",greater_than:"greaterThan",contains:"stringContains",starts_with:"stringStartsWith",ends_with:"stringEndsWith"};V.d.prototype.length=function(){return this.oc.length};var Y=function(a,c){var d=a.oc.slice(0);c instanceof V.d?e.b.extend(d,c.oc):c instanceof Array?e.b.extend(d,c):d.push(c);return new V.d(d)};
|
|
V.d.prototype.cb=function(){return V.h.K("Filter.not",this)};V.d.Mj=function(a,c,d){c=c.toLowerCase();var f=!1;e.c.kd(c,"not_")&&(f=!0,c=c.substring(4));if(!(c in V.d.Hf))throw Error("Unknown filtering operator: "+c);a=V.h.K("Filter."+V.d.Hf[c],a,d);return f?a.cb():a};V.d.Kc=function(a,c){return V.h.K("Filter.equals",a,c)};V.d.Rd=function(a,c){return V.d.Kc(a,c).cb()};V.d.Mc=function(a,c){return V.h.K("Filter.lessThan",a,c)};V.d.Od=function(a,c){return V.d.Mc(a,c).cb()};
|
|
V.d.Lc=function(a,c){return V.h.K("Filter.greaterThan",a,c)};V.d.Qd=function(a,c){return V.d.Lc(a,c).cb()};V.d.contains=function(a,c){return V.h.K("Filter.stringContains",a,c)};V.d.Sd=function(a,c){return V.d.contains(a,c).cb()};V.d.Nc=function(a,c){return V.h.K("Filter.stringStartsWith",a,c)};V.d.Ud=function(a,c){return V.d.Nc(a,c).cb()};V.d.Jc=function(a,c){return V.h.K("Filter.stringEndsWith",a,c)};V.d.Td=function(a,c){return V.d.Jc(a,c).cb()};
|
|
V.d.Uc=function(a){var c=Array.prototype.slice.call(arguments);return V.h.K("Filter.and",c)};V.d.Ih=function(a){var c=Array.prototype.slice.call(arguments);return V.h.K("Filter.or",c)};V.d.Tc=function(a,c){e.aa(c)||(c=0xffffffffffff);var d=V.h.K("DateRange",a,c);return V.h.Tb("Filter.dateRangeContains",{leftValue:d,rightField:"system:time_start"})};V.d.Pd=function(a,c,d,f){return V.h.Tb("Filter.listContains",{leftField:d,rightValue:f,rightField:a,leftValue:c})};
|
|
V.d.Sc=function(a,c){return V.h.Tb("Filter.intersects",{leftField:".all",rightValue:V.h.K("Feature",a),maxError:c})};b=V.d.prototype;b.Kc=function(){return Y(this,V.d.Kc.apply(null,[].slice.call(arguments)))};b.Rd=function(){return Y(this,V.d.Rd.apply(null,[].slice.call(arguments)))};b.Mc=function(){return Y(this,V.d.Mc.apply(null,[].slice.call(arguments)))};b.Od=function(){return Y(this,V.d.Od.apply(null,[].slice.call(arguments)))};b.Lc=function(){return Y(this,V.d.Lc.apply(null,[].slice.call(arguments)))};
|
|
b.Qd=function(){return Y(this,V.d.Qd.apply(null,[].slice.call(arguments)))};b.contains=function(){return Y(this,V.d.contains.apply(null,[].slice.call(arguments)))};b.Sd=function(){return Y(this,V.d.Sd.apply(null,[].slice.call(arguments)))};b.Nc=function(){return Y(this,V.d.Nc.apply(null,[].slice.call(arguments)))};b.Ud=function(){return Y(this,V.d.Ud.apply(null,[].slice.call(arguments)))};b.Jc=function(){return Y(this,V.d.Jc.apply(null,[].slice.call(arguments)))};
|
|
b.Td=function(){return Y(this,V.d.Td.apply(null,[].slice.call(arguments)))};b.Uc=function(){return Y(this,V.d.Uc.apply(null,[].slice.call(arguments)))};b.Tc=function(){return Y(this,V.d.Tc.apply(null,[].slice.call(arguments)))};b.Pd=function(){return Y(this,V.d.Pd.apply(null,[].slice.call(arguments)))};b.Sc=function(){return Y(this,V.d.Sc.apply(null,[].slice.call(arguments)))};b.name=function(){return"Filter"};e.T("ee.Filter",V.d);e.j(V.d.prototype,"length",V.d.prototype.length);
|
|
e.j(V.d.prototype,"and",V.d.prototype.Uc);e.j(V.d.prototype,"eq",V.d.prototype.Kc);e.j(V.d.prototype,"neq",V.d.prototype.Rd);e.j(V.d.prototype,"lt",V.d.prototype.Mc);e.j(V.d.prototype,"gte",V.d.prototype.Od);e.j(V.d.prototype,"gt",V.d.prototype.Lc);e.j(V.d.prototype,"lte",V.d.prototype.Qd);e.j(V.d.prototype,"contains",V.d.prototype.contains);e.j(V.d.prototype,"not_contains",V.d.prototype.Sd);e.j(V.d.prototype,"starts_with",V.d.prototype.Nc);e.j(V.d.prototype,"not_starts_with",V.d.prototype.Ud);
|
|
e.j(V.d.prototype,"ends_with",V.d.prototype.Jc);e.j(V.d.prototype,"not_ends_with",V.d.prototype.Td);e.j(V.d.prototype,"bounds",V.d.prototype.Sc);e.j(V.d.prototype,"inList",V.d.prototype.Pd);e.j(V.d.prototype,"date",V.d.prototype.Tc);e.j(V.d.prototype,"serialize",V.d.prototype.ga);e.j(V.d.prototype,"toString",V.d.prototype.toString);e.j(V.d,"and",V.d.Uc);e.j(V.d,"or",V.d.Ih);e.j(V.d,"eq",V.d.Kc);e.j(V.d,"neq",V.d.Rd);e.j(V.d,"lt",V.d.Mc);e.j(V.d,"gte",V.d.Od);e.j(V.d,"gt",V.d.Lc);e.j(V.d,"lte",V.d.Qd);
|
|
e.j(V.d,"contains",V.d.contains);e.j(V.d,"not_contains",V.d.Sd);e.j(V.d,"starts_with",V.d.Nc);e.j(V.d,"not_starts_with",V.d.Ud);e.j(V.d,"ends_with",V.d.Jc);e.j(V.d,"not_ends_with",V.d.Td);e.j(V.d,"bounds",V.d.Sc);e.j(V.d,"inList",V.d.Pd);e.j(V.d,"date",V.d.Tc);V.u=function(a,c){V.r.call(this,a,c);V.u.v()};e.A(V.u,V.r);V.u.Qf=0;V.u.w=!1;V.u.v=function(){V.u.w||(V.h.ya(V.u,"Collection","Collection"),V.h.ya(V.u,"AggregateFeatureCollection","Collection","aggregate_"),V.u.w=!0)};V.u.reset=function(){V.h.Sa(V.u);V.u.w=!1;V.u.Qf=0};b=V.u.prototype;b.filter=function(a){if(!a)throw Error("Empty filters.");return Z(this,V.h.K("Collection.filter",this,a))};b.Xk=function(a,c,d){return this.filter(V.d.Mj(a,c,d))};b.Vk=function(a){return this.filter(V.d.Sc(a))};
|
|
b.Wk=function(a,c){return this.filter(V.d.Tc(a,c))};b.lb=function(a){return V.u.Ja.lb.call(this,a)};b.hl=function(a,c,d){return Z(this,V.h.K("Collection.limit",this,a,c,d))};b.sort=function(a,c){return Z(this,V.h.K("Collection.limit",this,void 0,a,c))};var Z=function(a,c){return c instanceof a.constructor?c:new a.constructor(c)};V.u.prototype.name=function(){return"Collection"};
|
|
var $=function(a,c,d,f,g,h){if(e.xa(d)){if(f)throw Error("Can't use dynamicArgs with a mapped JS function.");var k="_MAPPING_VAR_"+V.u.Qf++;d=new V.eb(e.object.create(k,c),c,d)}else if(e.q(d))d=new V.h(d);else if(!(d instanceof V.X))throw Error("Can't map non-callable object: "+d);c={collection:a,baseAlgorithm:d};f?c.dynamicArgs=f:(k=d.La().args[0].name,c.dynamicArgs=e.object.create(k,".all"));g&&(c.constantArgs=g);h&&(c.destination=h);return Z(a,V.h.Tb("Collection.map",c))};
|
|
V.u.prototype.map=function(a,c,d,f){return $(this,V.r,a,c,d,f)};V.u.Mf=function(a,c){e.object.forEach(c.prototype,function(d,f){e.xa(d)&&d.signature&&(a.prototype["map_"+f]=function(){var a=null;V.L.kg("EEObject",d.signature.returns)||(a=f);var h=Array.prototype.slice.call(arguments,0);return $(this,c,function(a){return d.apply(a,h)},null,null,a)})})};e.T("ee.Collection",V.u);e.j(V.u.prototype,"filter",V.u.prototype.filter);e.j(V.u.prototype,"filterMetadata",V.u.prototype.Xk);
|
|
e.j(V.u.prototype,"filterBounds",V.u.prototype.Vk);e.j(V.u.prototype,"filterDate",V.u.prototype.Wk);e.j(V.u.prototype,"limit",V.u.prototype.hl);e.j(V.u.prototype,"sort",V.u.prototype.sort);V.f=function(a,c,d){if(!(this instanceof V.f))return new V.f(a,c,d);V.f.v();var f=e.bb(c)||e.bb(d);if(a instanceof V.r&&Boolean(a.oa)){if(f)throw Error("Setting the CRS or geodesic on a computed Geometry is not suported. Use Geometry.transform().");V.r.call(this,a.oa,a.Ia)}else{a instanceof V.f&&(a=a.pa());if(3<arguments.length)throw Error("The Geometry constructor takes at most 3 arguments ("+arguments.length+" given)");if(!V.f.Tf(a))throw Error("Invalid GeoJSON geometry: "+JSON.stringify(a));V.r.call(this,
|
|
null,null);this.Sf=a.type;this.ei=a.coordinates||null;this.fi=a.geometries||null;this.Rf=c;this.Ee=d;!e.aa(d)&&"geodesic"in a&&(this.Ee=Boolean(a.geodesic))}};e.A(V.f,V.r);V.f.w=!1;V.f.v=function(){V.f.w||(V.h.ya(V.f,"Geometry","Geometry"),V.f.w=!0)};V.f.reset=function(){V.h.Sa(V.f);V.f.w=!1};
|
|
V.f.Fb=function(a,c){if(!(this instanceof V.f.Fb))return V.f.yb(V.f.Fb,arguments);if(2<arguments.length)throw Error("The Geometry.Point constructor takes at most 2 arguments ("+arguments.length+" given)");if(1==arguments.length&&e.isArray(arguments[0])&&2==arguments[0].length){var d=arguments[0];a=d[0];c=d[1]}V.f.call(this,{type:"Point",coordinates:[a,c]})};e.A(V.f.Fb,V.f);
|
|
V.f.Cb=function(a){if(!(this instanceof V.f.Cb))return V.f.yb(V.f.Cb,arguments);V.f.call(this,{type:"MultiPoint",coordinates:V.f.Zb(a,2,arguments)})};e.A(V.f.Cb,V.f);V.f.Gb=function(a,c,d,f){if(!(this instanceof V.f.Gb))return new V.f.Gb(a,c,d,f);if(4<arguments.length)throw Error("The Geometry.Rectangle constructor takes at most 4 arguments ("+arguments.length+" given)");if(e.isArray(a)){var g=a;a=g[0];c=g[1];d=g[2];f=g[3]}V.f.call(this,{type:"Polygon",coordinates:[[[a,f],[a,c],[d,c],[d,f]]]})};
|
|
e.A(V.f.Gb,V.f);V.f.Ab=function(a){if(!(this instanceof V.f.Ab))return V.f.yb(V.f.Ab,arguments);V.f.call(this,{type:"LineString",coordinates:V.f.Zb(a,2,arguments)})};e.A(V.f.Ab,V.f);V.f.Bb=function(a){if(!(this instanceof V.f.Bb))return V.f.yb(V.f.Bb,arguments);V.f.call(this,{type:"LinearRing",coordinates:V.f.Zb(a,2,arguments)})};e.A(V.f.Bb,V.f);V.f.Rc=function(a){if(!(this instanceof V.f.Rc))return V.f.yb(V.f.Rc,arguments);V.f.call(this,{type:"MultiLineString",coordinates:V.f.Zb(a,3,arguments)})};
|
|
e.A(V.f.Rc,V.f);V.f.Eb=function(a){if(!(this instanceof V.f.Eb))return V.f.yb(V.f.Eb,arguments);V.f.call(this,{type:"Polygon",coordinates:V.f.Zb(a,3,arguments)})};e.A(V.f.Eb,V.f);V.f.Db=function(a){if(!(this instanceof V.f.Db))return V.f.yb(V.f.Db,arguments);V.f.call(this,{type:"MultiPolygon",coordinates:V.f.Zb(a,4,arguments)})};e.A(V.f.Db,V.f);b=V.f.prototype;
|
|
b.pa=function(a){if(this.oa){if(!a)throw Error("Must specify an encode function when encoding a computed geometry.");return V.r.prototype.pa.call(this,a)}a={type:this.Sf};"GeometryCollection"==this.Sf?a.geometries=this.fi:a.coordinates=this.ei;e.bb(this.Rf)&&(a.crs={type:"name",properties:{name:this.Rf}});e.bb(this.Ee)&&(a.geodesic=this.Ee);return a};b.Wg=function(){if(this.oa)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return this.pa()};
|
|
b.Kh=function(){if(this.oa)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return(new e.ca.B).ga(this.Wg())};b.ga=function(){return V.B.toJSON(this)};b.toString=function(){return"ee.Geometry("+this.Kh()+")"};
|
|
V.f.Tf=function(a){var c=a.type;if("GeometryCollection"==c){c=a.geometries;if(!e.isArray(c))return!1;for(a=0;a<c.length;a++)if(!V.f.Tf(c[a]))return!1;return!0}a=V.f.Md(a.coordinates);return"Point"==c&&1==a||"MultiPoint"==c&&2==a||"LineString"==c&&2==a||"LinearRing"==c&&2==a||"MultiLineString"==c&&3==a||"Polygon"==c&&3==a||"MultiPolygon"==c&&4==a};
|
|
V.f.Md=function(a){if(!e.isArray(a))return-1;if(e.isArray(a[0])){for(var c=V.f.Md(a[0]),d=1;d<a.length;d++)if(V.f.Md(a[d])!=c)return-1;return c+1}for(d=0;d<a.length;d++)if(!e.ia(a[d]))return-1;return 0==a.length%2?1:-1};V.f.Pj=function(a){if("number"==typeof a[0]){if(0!=a.length%2)throw Error("Invalid number of coordinates: "+a.length);for(var c=[],d=0;d<a.length;d+=2)c.push([a[d],a[d+1]]);a=c}return a};
|
|
V.f.Zb=function(a,c,d){if(2>c||4<c)throw Error("Unexpected nesting level.");!e.isArray(a)&&d&&(a=V.f.Pj(Array.prototype.slice.call(d)));d=a;for(var f=0;e.isArray(d);)d=d[0],f++;for(;f<c;)a=[a],f++;if(V.f.Md(a)!=c)throw Error("Invalid geometry");return a};V.f.yb=function(a,c){var d=function(){};d.prototype=a.prototype;var d=new d,f=a.apply(d,c);return void 0!==f?f:d};V.f.prototype.name=function(){return"Geometry"};e.T("ee.Geometry",V.f);e.j(V.f,"Point",V.f.Fb);e.j(V.f,"MultiPoint",V.f.Cb);
|
|
e.j(V.f,"Rectangle",V.f.Gb);e.j(V.f,"LineString",V.f.Ab);e.j(V.f,"LinearRing",V.f.Bb);e.j(V.f,"MultiLineString",V.f.Rc);e.j(V.f,"Polygon",V.f.Eb);e.j(V.f,"MultiPolygon",V.f.Db);e.j(V.f.prototype,"toGeoJSON",V.f.prototype.Wg);e.j(V.f.prototype,"toGeoJSONString",V.f.prototype.Kh);e.j(V.f.prototype,"toString",V.f.prototype.toString);V.s=function(a,c){if(!(this instanceof V.s))return new V.s(a,c);if(a instanceof V.s){if(c)throw Error("Can't create Feature out of a Feature and properties.");return a}if(2<arguments.length)throw Error("The Feature constructor takes at most 2 arguments ("+arguments.length+" given)");V.s.v();a instanceof V.f||null===a?V.r.call(this,new V.h("Feature"),{geometry:a,metadata:c||null}):a instanceof V.r?V.r.call(this,a.oa,a.Ia):"Feature"==a.type?V.r.call(this,new V.h("Feature"),{geometry:new V.f(a.geometry),
|
|
metadata:a.properties||null}):V.r.call(this,new V.h("Feature"),{geometry:new V.f(a),metadata:c||null})};e.A(V.s,V.r);V.s.w=!1;V.s.v=function(){V.s.w||(V.h.ya(V.s,"Feature","Feature"),V.s.w=!0)};V.s.reset=function(){V.h.Sa(V.s);V.s.w=!1};V.s.prototype.Ga=function(a,c){return V.h.K("Collection",[this]).Ga(a,c)};V.s.Fb=function(a,c){return V.f.Fb.apply(null,arguments)};V.s.Cb=function(a){return V.f.Cb.apply(null,arguments)};V.s.Gb=function(a,c,d,f){return new V.f.Gb(a,c,d,f)};
|
|
V.s.Ab=function(a){return V.f.Ab.apply(null,arguments)};V.s.Bb=function(a){return V.f.Bb.apply(null,arguments)};V.s.Ik=function(a){return V.f.Rc.apply(null,arguments)};V.s.Eb=function(a){return V.f.Eb.apply(null,arguments)};V.s.Db=function(a){return V.f.Db.apply(null,arguments)};V.s.prototype.name=function(){return"Feature"};e.T("ee.Feature",V.s);e.j(V.s,"Point",V.s.Fb);e.j(V.s,"MultiPoint",V.s.Cb);e.j(V.s,"Rectangle",V.s.Gb);e.j(V.s,"LineString",V.s.Ab);e.j(V.s,"LinearRing",V.s.Bb);
|
|
e.j(V.s,"MultiLine",V.s.Ik);e.j(V.s,"Polygon",V.s.Eb);e.j(V.s,"MultiPolygon",V.s.Db);e.j(V.s,"getMap",V.s.prototype.Ga);V.G=function(a,c){if(!(this instanceof V.G))return new V.G(a,c);if(a instanceof V.G)return a;if(2<arguments.length)throw Error("The FeatureCollection constructor takes at most 2 arguments ("+arguments.length+" given)");V.G.v();a instanceof V.f&&(a=new V.s(a));a instanceof V.s&&(a=[a]);if(V.L.ia(a)||V.L.q(a)){var d={tableId:a};c&&(d.geometryColumn=c);V.u.call(this,new V.h("Collection.loadTable"),d)}else if(e.isArray(a))V.u.call(this,new V.h("Collection"),{features:e.b.map(a,function(a){return new V.s(a)})});
|
|
else if(a instanceof V.r)V.u.call(this,a.oa,a.Ia);else throw Error("Unrecognized argument type to convert to a FeatureCollection: "+a);};e.A(V.G,V.u);V.G.w=!1;V.G.v=function(){V.G.w||(V.h.ya(V.G,"FeatureCollection","FeatureCollection"),V.u.Mf(V.G,V.s),V.G.w=!0)};V.G.reset=function(){V.h.Sa(V.G);V.G.w=!1};V.G.prototype.Ga=function(a,c){var d=V.h.Tb("Collection.draw",{collection:this,color:(a||{}).color||"000000"});if(c)d.Ga(null,c);else return d.Ga()};
|
|
V.G.prototype.map=function(a,c,d,f){return $(this,V.s,a,c,d,f)};V.G.prototype.name=function(){return"FeatureCollection"};e.T("ee.FeatureCollection",V.G);e.j(V.G.prototype,"map",V.G.prototype.map);e.j(V.G.prototype,"getMap",V.G.prototype.Ga);V.o=function(a){if(!(this instanceof V.o))return new V.o(a);if(a instanceof V.o)return a;V.o.v();var c=arguments.length;if(0==c||1==c&&!e.aa(a))V.r.call(this,new V.h("Image.mask"),{image:new V.o(0),mask:new V.o(0)});else if(1==c)if(V.L.ia(a))V.r.call(this,new V.h("Image.constant"),{value:a});else if(V.L.q(a))V.r.call(this,new V.h("Image.load"),{id:a});else{if(e.isArray(a))return V.o.le(e.b.map(a,function(a){return new V.o(a)}));if(a instanceof V.r)V.r.call(this,a.oa,a.Ia);else throw Error("Unrecognized argument type to convert to an Image: "+
|
|
a);}else if(2==c){var c=arguments[0],d=arguments[1];if(V.L.q(c)&&V.L.ia(d))V.r.call(this,new V.h("Image.load"),{id:c,version:d});else throw Error("Unrecognized argument types to convert to an Image: "+arguments);}else throw Error("The Image constructor takes at most 2 arguments ("+c+" given)");};e.A(V.o,V.r);V.o.w=!1;V.o.v=function(){V.o.w||(V.h.ya(V.o,"Image","Image"),V.h.ya(V.o,"Window","Image","focal_"),V.o.w=!0)};V.o.reset=function(){V.h.Sa(V.o);V.o.w=!1};
|
|
V.o.prototype.lb=function(a){return V.o.Ja.lb.call(this,a)};V.o.prototype.Ga=function(a,c){var d=a||{};d.image=this.ga();if(c)V.data.qf(d,e.bind(function(a,d){a&&(a.image=this);c(a,d)},this));else return d=V.data.qf(d),d.image=this,d};V.o.prototype.$k=function(a){a=a||{};a.image=this.ga();a=V.data.ih(a);return V.data.kh(a)};V.o.prototype.bl=function(a){a=a||{};a.image=this.ga();return V.data.lh(V.data.jh(a))};V.o.ml=function(a,c,d){return V.o.le([a,c,d],["vis-red","vis-green","vis-blue"])};
|
|
V.o.Nk=function(a){var c=Array.prototype.slice.call(arguments);return V.o.le(c,null)};V.o.le=function(a,c){if(0==a.length)throw Error("Can't combine 0 images.");for(var d=new V.o(a[0]),f=1;f<a.length;f++)d=V.h.K("Image.addBands",d,a[f]);c&&(d=d.select([".*"],c));return d};
|
|
V.o.prototype.select=function(a,c){var d={input:this,bandSelectors:a};if(e.isArray(a))c&&(d.newNames=c);else{a=Array.prototype.slice.call(arguments);for(var f=0;f<a.length;f++)if(!e.q(a[f])&&!e.ia(a[f]))throw Error("Illegal argument to select(): "+a[f]);d.bandSelectors=a}return V.h.Tb("Image.select",d)};
|
|
V.o.prototype.Uk=function(a,c){var d=V.h.K("Image.parseExpression",a,"DEFAULT_EXPRESSION_IMAGE"),f=["DEFAULT_EXPRESSION_IMAGE"],g={DEFAULT_EXPRESSION_IMAGE:this};if(c)for(var h in c)f.push(h),g[h]=new V.o(c[h]);h=new V.X;h.pa=function(a){return d.pa(a)};h.La=function(){return{name:"",args:e.b.map(f,function(a){return{name:a,type:"Image",optional:!1}},this),returns:"Image"}};return h.apply(g)};V.o.prototype.clip=function(a){try{a=new V.f(a)}catch(c){}return V.h.K("Image.clip",this,a)};
|
|
V.o.prototype.name=function(){return"Image"};e.T("ee.Image",V.o);e.j(V.o.prototype,"getInfo",V.o.prototype.lb);e.j(V.o.prototype,"getDownloadURL",V.o.prototype.$k);e.j(V.o.prototype,"getThumbURL",V.o.prototype.bl);e.j(V.o.prototype,"getMap",V.o.prototype.Ga);e.j(V.o.prototype,"select",V.o.prototype.select);e.j(V.o.prototype,"expression",V.o.prototype.Uk);e.j(V.o.prototype,"clip",V.o.prototype.clip);e.j(V.o,"cat",V.o.Nk);e.j(V.o,"rgb",V.o.ml);e.j(V.o,"toString",V.o.toString);V.H=function(a){if(!(this instanceof V.H))return new V.H(a);if(a instanceof V.H)return a;if(1!=arguments.length)throw Error("The ImageCollection constructor takes exactly 1 argument ("+arguments.length+" given)");V.H.v();a instanceof V.o&&(a=[a]);if(V.L.q(a))V.u.call(this,new V.h("ImageCollection.load"),{id:a});else if(e.isArray(a))V.u.call(this,new V.h("ImageCollection.fromImages"),{images:e.b.map(a,function(a){return new V.o(a)})});else if(a instanceof V.r)V.u.call(this,a.oa,a.Ia);else throw Error("Unrecognized argument type to convert to an ImageCollection: "+
|
|
a);};e.A(V.H,V.u);V.H.w=!1;V.H.v=function(){V.H.w||(V.h.ya(V.H,"ImageCollection","ImageCollection"),V.h.ya(V.H,"reduce","ImageCollection"),V.u.Mf(V.H,V.o),V.H.w=!0)};V.H.reset=function(){V.h.Sa(V.H);V.H.w=!1};V.H.prototype.Ga=function(a,c){var d=V.h.K("ImageCollection.mosaic",this);if(c)d.Ga(a,c);else return d.Ga(a)};V.H.prototype.map=function(a,c,d,f){return $(this,V.o,a,c,d,f)};V.H.prototype.name=function(){return"ImageCollection"};e.T("ee.ImageCollection",V.H);e.j(V.H.prototype,"map",V.H.prototype.map);
|
|
e.j(V.H.prototype,"getMap",V.H.prototype.Ga);V.R=function(a){if(!(this instanceof V.R))return new V.R(a);if(a instanceof V.R)return a;V.R.v();if(e.q(a))V.r.call(this,null,null);else if(a instanceof V.r)V.r.call(this,a.oa,a.Ia);else throw Error("Invalid argument specified for ee.String(): "+a);this.Me=a};e.A(V.R,V.r);V.R.w=!1;V.R.v=function(){V.R.w||(V.h.ya(V.R,"String","String"),V.R.w=!0)};V.R.reset=function(){V.h.Sa(V.R);V.R.w=!1};V.R.prototype.pa=function(a){return e.q(this.Me)?this.Me:this.Me.pa(a)};V.R.prototype.name=function(){return"String"};
|
|
e.T("ee.String",V.R);e.j(V.R.prototype,"encode",V.R.prototype.pa);V.v=function(a,c,d){if(V.jc!=V.Ma.Jb||a||c){if(V.Ff()==V.Ma.LOADING)throw Error("Already loading.");V.jc=V.Ma.LOADING;V.data.v(a,c);a=function(){V.o.v();V.s.v();V.u.v();V.H.v();V.G.v();V.d.v();V.f.v();V.R.v();V.Ph();V.Qh();V.jc=V.Ma.Jb;d&&d()};if(d)V.h.v(a);else try{V.h.v(),a()}catch(f){alert("Could not read algorithm list.")}}};V.reset=function(){V.jc=V.Ma.ke;V.data.reset();V.h.reset();V.o.reset();V.s.reset();V.u.reset();V.H.reset();V.G.reset();V.d.reset();V.f.reset();V.R.reset();V.Rh();V.Af={}};
|
|
V.Ma={ke:"not_ready",LOADING:"loading",Jb:"ready"};V.jc=V.Ma.ke;V.Lk=256;V.Vd=[];V.Af={};V.Ff=function(){return V.jc};V.call=function(a,c){e.q(a)&&(a=new V.h(a));var d=Array.prototype.slice.call(arguments,1);return V.X.prototype.call.apply(a,d)};V.apply=function(a,c){e.q(a)&&(a=new V.h(a));return a.apply(c)};
|
|
V.qk=function(a,c){if(e.zf(a))return null;if(e.aa(a))switch(c){case "Image":return new V.o(a);case "ImageCollection":return new V.H(a);case "Feature":case "EEObject":return a instanceof V.u?V.h.K("Feature",V.h.K("Collection.geometry",a)):"EEObject"==c&&a instanceof V.o?a:new V.s(a);case "Geometry":return a instanceof V.G?V.h.K("Collection.geometry",a):new V.f(a);case "FeatureCollection":case "EECollection":case "Collection":return a instanceof V.u?a:new V.G(a);case "Filter":return new V.d(a);case "ErrorMargin":return e.ia(a)?
|
|
V.h.K("ErrorMargin",a,"meters"):a;case "Algorithm":return e.q(a)?new V.h(a):a;case "Date":return e.q(a)?new Date(a):e.ia(a)?new Date(a):a;case "Dictionary":return c in V?a instanceof V[c]?a:a instanceof V.r?new V[c](a):a:a;case "String":return V.L.q(a)||a instanceof V.R||a instanceof V.r||V.L.fd(a,V.R)?new V.R(a):a;case "List":return a;default:if(c in V&&a){if(a instanceof V[c])return a;if(e.q(a)){if(!(a in V[c]))throw Error("Unknown algorithm: "+c+"."+a);return V[c][a].call()}return new V[c](a)}return a}};
|
|
V.Qh=function(){e.object.forEach(V.h.oi(),function(a,c){var d=a.La();if(!d.hidden){for(var f=c.split("."),g=V.Af;1<f.length;){var h=f[0];h in g||(g[h]={});g=g[h];f=e.b.slice(f,1)}h=e.bind(a.call,a);h.signature=d;h.toString=e.bind(a.toString,a);g[f[0]]=h}})};
|
|
V.Ph=function(){var a=V.h.Wj(),c={},d={},f;for(f in a){if(-1!=f.indexOf(".")){var g=f.slice(0,f.indexOf("."));c[g]=!0}g=a[f].returns.replace(/<.*>/,"");d[g]=!0}var a=["List"],h;for(h in a)c[h]&&delete c[h];for(var k in c)k in d&&!(k in V)&&(V[k]=V.Xj(k),V.Vd.push(k))};V.Rh=function(){for(var a=0;a<V.Vd.length;a++){var c=V.Vd[a];V.h.Sa(V[c]);delete V[c]}V.Vd=[]};
|
|
V.Xj=function(a){var c=function(c){var f=Array.prototype.slice.apply(arguments);f[0]instanceof V.r&&1==f.length?f=f[0]:(f.unshift(a),f=V.h.K.apply(null,f));if(this instanceof V[a])V.r.call(this,f.oa,f.Ia);else return new V[a](f)};e.A(c,V.r);V.h.ya(c,a,a);return c};V.X.kl();e.T("ee.initialize",V.v);e.T("ee.reset",V.reset);e.T("ee.InitState",V.Ma);e.T("ee.InitState.NOT_READY",V.Ma.ke);e.T("ee.InitState.LOADING",V.Ma.LOADING);e.T("ee.InitState.READY",V.Ma.Jb);e.T("ee.ready",V.Ff);e.T("ee.call",V.call);
|
|
e.T("ee.apply",V.apply);e.T("ee.TILE_SIZE",V.Lk);})();
|
|
//# sourceMappingURL=ee_api_js.sourcemap
|