@google/earthengine 1.4.5 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/build/browser.js +616 -521
- package/build/ee_api_js.js +293 -293
- package/build/ee_api_js_debug.js +593 -498
- package/build/ee_api_js_npm.js +616 -521
- package/build/main.js +616 -521
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/batch.js +26 -28
- package/src/data.js +0 -9
- package/src/ee.js +0 -2
- package/src/geometry.js +0 -1
- package/src/serializer.js +1 -1
package/build/main.js
CHANGED
|
@@ -13,6 +13,7 @@ $jscomp.arrayIterator = function(array) {
|
|
|
13
13
|
};
|
|
14
14
|
$jscomp.ASSUME_ES5 = !1;
|
|
15
15
|
$jscomp.ASSUME_ES6 = !1;
|
|
16
|
+
$jscomp.ASSUME_ES2020 = !1;
|
|
16
17
|
$jscomp.ASSUME_NO_NATIVE_MAP = !1;
|
|
17
18
|
$jscomp.ASSUME_NO_NATIVE_SET = !1;
|
|
18
19
|
$jscomp.ISOLATE_POLYFILLS = !1;
|
|
@@ -37,7 +38,7 @@ $jscomp.getGlobal = function(passedInThis) {
|
|
|
37
38
|
throw Error("Cannot find global object");
|
|
38
39
|
}();
|
|
39
40
|
};
|
|
40
|
-
$jscomp.global = $jscomp.getGlobal(this);
|
|
41
|
+
$jscomp.global = $jscomp.ASSUME_ES2020 ? globalThis : $jscomp.getGlobal(this);
|
|
41
42
|
$jscomp.IS_SYMBOL_NATIVE = typeof Symbol === "function" && typeof Symbol("x") === "symbol";
|
|
42
43
|
$jscomp.TRUST_ES6_POLYFILLS = !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE;
|
|
43
44
|
$jscomp.polyfills = {};
|
|
@@ -171,7 +172,7 @@ $jscomp.underscoreProtoCanBeSet = function() {
|
|
|
171
172
|
}
|
|
172
173
|
return !1;
|
|
173
174
|
};
|
|
174
|
-
$jscomp.setPrototypeOf = $jscomp.TRUST_ES6_POLYFILLS && typeof Object.setPrototypeOf == "function" ? Object.setPrototypeOf : $jscomp.underscoreProtoCanBeSet() ? function(target, proto) {
|
|
175
|
+
$jscomp.setPrototypeOf = $jscomp.ASSUME_ES6 || $jscomp.TRUST_ES6_POLYFILLS && typeof Object.setPrototypeOf == "function" ? Object.setPrototypeOf : $jscomp.underscoreProtoCanBeSet() ? function(target, proto) {
|
|
175
176
|
target.__proto__ = proto;
|
|
176
177
|
if (target.__proto__ !== proto) {
|
|
177
178
|
throw new TypeError(target + " is not extensible");
|
|
@@ -181,7 +182,7 @@ $jscomp.setPrototypeOf = $jscomp.TRUST_ES6_POLYFILLS && typeof Object.setPrototy
|
|
|
181
182
|
$jscomp.inherits = function(childCtor, parentCtor) {
|
|
182
183
|
childCtor.prototype = $jscomp.objectCreate(parentCtor.prototype);
|
|
183
184
|
childCtor.prototype.constructor = childCtor;
|
|
184
|
-
if ($jscomp.setPrototypeOf) {
|
|
185
|
+
if ($jscomp.ASSUME_ES6 || $jscomp.setPrototypeOf) {
|
|
185
186
|
var setPrototypeOf = $jscomp.setPrototypeOf;
|
|
186
187
|
setPrototypeOf(childCtor, parentCtor);
|
|
187
188
|
} else {
|
|
@@ -469,6 +470,9 @@ $jscomp.getRestArguments = function() {
|
|
|
469
470
|
}
|
|
470
471
|
return restArgs;
|
|
471
472
|
};
|
|
473
|
+
$jscomp.polyfill("globalThis", function(orig) {
|
|
474
|
+
return orig || $jscomp.global;
|
|
475
|
+
}, "es_2020", "es3");
|
|
472
476
|
$jscomp.polyfill("Reflect", function(orig) {
|
|
473
477
|
return orig ? orig : {};
|
|
474
478
|
}, "es6", "es3");
|
|
@@ -770,9 +774,6 @@ $jscomp.polyfill("Array.prototype.keys", function(orig) {
|
|
|
770
774
|
});
|
|
771
775
|
};
|
|
772
776
|
}, "es6", "es3");
|
|
773
|
-
$jscomp.polyfill("globalThis", function(orig) {
|
|
774
|
-
return orig || $jscomp.global;
|
|
775
|
-
}, "es_2020", "es3");
|
|
776
777
|
$jscomp.checkEs6ConformanceViaProxy = function() {
|
|
777
778
|
try {
|
|
778
779
|
var proxied = {}, proxy = Object.create(new $jscomp.global.Proxy(proxied, {get:function(target, key, receiver) {
|
|
@@ -2187,9 +2188,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
2187
2188
|
};
|
|
2188
2189
|
var module$contents$eeapiclient$domain_object_CopyValueGetter, module$contents$eeapiclient$domain_object_CopyValueSetter, module$contents$eeapiclient$domain_object_CopyConstructor, module$contents$eeapiclient$domain_object_CopyInstanciator;
|
|
2189
2190
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
2190
|
-
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = (0,$jscomp.makeIterator)(metadata.keys || []), $jscomp$key$
|
|
2191
|
-
{mapMetadata:void 0}, $jscomp$key$
|
|
2192
|
-
var key = $jscomp$key$
|
|
2191
|
+
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = (0,$jscomp.makeIterator)(metadata.keys || []), $jscomp$key$m1892927425$40$key = $jscomp$iter$19.next(), $jscomp$loop$m1892927425$44 = {}; !$jscomp$key$m1892927425$40$key.done; $jscomp$loop$m1892927425$44 =
|
|
2192
|
+
{mapMetadata:void 0}, $jscomp$key$m1892927425$40$key = $jscomp$iter$19.next()) {
|
|
2193
|
+
var key = $jscomp$key$m1892927425$40$key.value, value = valueGetter(key, source);
|
|
2193
2194
|
if (value != null) {
|
|
2194
2195
|
var copy = void 0;
|
|
2195
2196
|
if (arrays.hasOwnProperty(key)) {
|
|
@@ -2200,11 +2201,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2200
2201
|
} else if (objects.hasOwnProperty(key)) {
|
|
2201
2202
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
2202
2203
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
2203
|
-
$jscomp$loop$
|
|
2204
|
+
$jscomp$loop$m1892927425$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m1892927425$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m1892927425$44) {
|
|
2204
2205
|
return function(v) {
|
|
2205
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
2206
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2206
2207
|
};
|
|
2207
|
-
}($jscomp$loop$
|
|
2208
|
+
}($jscomp$loop$m1892927425$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2208
2209
|
} else if (Array.isArray(value)) {
|
|
2209
2210
|
if (metadata.emptyArrayIsUnset && value.length === 0) {
|
|
2210
2211
|
continue;
|
|
@@ -2219,8 +2220,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2219
2220
|
return target;
|
|
2220
2221
|
}
|
|
2221
2222
|
function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
|
|
2222
|
-
for (var objMap = {}, $jscomp$iter$20 = (0,$jscomp.makeIterator)(Object.keys(value)), $jscomp$key$
|
|
2223
|
-
var mapKey = $jscomp$key$
|
|
2223
|
+
for (var objMap = {}, $jscomp$iter$20 = (0,$jscomp.makeIterator)(Object.keys(value)), $jscomp$key$m1892927425$41$mapKey = $jscomp$iter$20.next(); !$jscomp$key$m1892927425$41$mapKey.done; $jscomp$key$m1892927425$41$mapKey = $jscomp$iter$20.next()) {
|
|
2224
|
+
var mapKey = $jscomp$key$m1892927425$41$mapKey.value, mapValue = value[mapKey];
|
|
2224
2225
|
mapValue != null && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
|
|
2225
2226
|
}
|
|
2226
2227
|
return objMap;
|
|
@@ -2250,39 +2251,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
2250
2251
|
if (!(module$contents$eeapiclient$domain_object_sameKeys(keys1, metadata2.keys || []) && module$contents$eeapiclient$domain_object_sameKeys(arrays1, arrays2) && module$contents$eeapiclient$domain_object_sameKeys(objects1, objects2) && module$contents$eeapiclient$domain_object_sameKeys(objectMaps1, objectMaps2))) {
|
|
2251
2252
|
return !1;
|
|
2252
2253
|
}
|
|
2253
|
-
for (var $jscomp$iter$21 = (0,$jscomp.makeIterator)(keys1), $jscomp$key$
|
|
2254
|
-
var key = $jscomp$key$
|
|
2254
|
+
for (var $jscomp$iter$21 = (0,$jscomp.makeIterator)(keys1), $jscomp$key$m1892927425$42$key = $jscomp$iter$21.next(), $jscomp$loop$m1892927425$45 = {}; !$jscomp$key$m1892927425$42$key.done; $jscomp$loop$m1892927425$45 = {value2$jscomp$7:void 0, mapMetadata$jscomp$2:void 0}, $jscomp$key$m1892927425$42$key = $jscomp$iter$21.next()) {
|
|
2255
|
+
var key = $jscomp$key$m1892927425$42$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
|
|
2255
2256
|
if (has1 !== has2) {
|
|
2256
2257
|
return !1;
|
|
2257
2258
|
}
|
|
2258
2259
|
if (has1) {
|
|
2259
2260
|
var value1 = serializable1.Serializable$get(key);
|
|
2260
|
-
$jscomp$loop$
|
|
2261
|
+
$jscomp$loop$m1892927425$45.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
2261
2262
|
if (arrays1.hasOwnProperty(key)) {
|
|
2262
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2263
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !0)) {
|
|
2263
2264
|
return !1;
|
|
2264
2265
|
}
|
|
2265
2266
|
} else if (objects1.hasOwnProperty(key)) {
|
|
2266
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2267
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !0)) {
|
|
2267
2268
|
return !1;
|
|
2268
2269
|
}
|
|
2269
2270
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
2270
|
-
if ($jscomp$loop$
|
|
2271
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
2271
|
+
if ($jscomp$loop$m1892927425$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2.isPropertyArray) {
|
|
2272
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m1892927425$45) {
|
|
2272
2273
|
return function(v1, i) {
|
|
2273
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
2274
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m1892927425$45.value2$jscomp$7[i], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2);
|
|
2274
2275
|
};
|
|
2275
|
-
}($jscomp$loop$
|
|
2276
|
+
}($jscomp$loop$m1892927425$45))) {
|
|
2276
2277
|
return !1;
|
|
2277
2278
|
}
|
|
2278
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
2279
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2)) {
|
|
2279
2280
|
return !1;
|
|
2280
2281
|
}
|
|
2281
2282
|
} else if (Array.isArray(value1)) {
|
|
2282
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2283
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !1)) {
|
|
2283
2284
|
return !1;
|
|
2284
2285
|
}
|
|
2285
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2286
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !1)) {
|
|
2286
2287
|
return !1;
|
|
2287
2288
|
}
|
|
2288
2289
|
}
|
|
@@ -2304,8 +2305,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
|
|
|
2304
2305
|
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
|
|
2305
2306
|
return !1;
|
|
2306
2307
|
}
|
|
2307
|
-
for (var $jscomp$iter$22 = (0,$jscomp.makeIterator)(Object.keys(value1)), $jscomp$key$
|
|
2308
|
-
var mapKey = $jscomp$key$
|
|
2308
|
+
for (var $jscomp$iter$22 = (0,$jscomp.makeIterator)(Object.keys(value1)), $jscomp$key$m1892927425$43$mapKey = $jscomp$iter$22.next(); !$jscomp$key$m1892927425$43$mapKey.done; $jscomp$key$m1892927425$43$mapKey = $jscomp$iter$22.next()) {
|
|
2309
|
+
var mapKey = $jscomp$key$m1892927425$43$mapKey.value;
|
|
2309
2310
|
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
|
|
2310
2311
|
return !1;
|
|
2311
2312
|
}
|
|
@@ -2386,15 +2387,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
|
|
|
2386
2387
|
this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
|
|
2387
2388
|
};
|
|
2388
2389
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
|
|
2389
|
-
var $jscomp$this$
|
|
2390
|
+
var $jscomp$this$m133342051$6 = this, payload = "--" + this._boundary + "\r\n";
|
|
2390
2391
|
payload += this._metadataPayload;
|
|
2391
2392
|
return Promise.all(this.files.map(function(f) {
|
|
2392
|
-
return $jscomp$this$
|
|
2393
|
+
return $jscomp$this$m133342051$6.encodeFile(f);
|
|
2393
2394
|
})).then(function(filePayloads) {
|
|
2394
|
-
for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$
|
|
2395
|
-
payload += $jscomp$key$
|
|
2395
|
+
for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$m133342051$9$filePayload = $jscomp$iter$23.next(); !$jscomp$key$m133342051$9$filePayload.done; $jscomp$key$m133342051$9$filePayload = $jscomp$iter$23.next()) {
|
|
2396
|
+
payload += $jscomp$key$m133342051$9$filePayload.value;
|
|
2396
2397
|
}
|
|
2397
|
-
return payload += "\r\n--" + $jscomp$this$
|
|
2398
|
+
return payload += "\r\n--" + $jscomp$this$m133342051$6._boundary + "--";
|
|
2398
2399
|
});
|
|
2399
2400
|
};
|
|
2400
2401
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
|
|
@@ -2735,86 +2736,93 @@ goog.object.transpose = function(obj) {
|
|
|
2735
2736
|
goog.object.unsafeClone = module$contents$goog$object_unsafeClone;
|
|
2736
2737
|
goog.string = {};
|
|
2737
2738
|
goog.string.internal = {};
|
|
2738
|
-
goog
|
|
2739
|
+
function module$contents$goog$string$internal_startsWith(str, prefix) {
|
|
2739
2740
|
return str.lastIndexOf(prefix, 0) == 0;
|
|
2740
|
-
}
|
|
2741
|
-
goog
|
|
2741
|
+
}
|
|
2742
|
+
function module$contents$goog$string$internal_endsWith(str, suffix) {
|
|
2742
2743
|
var l = str.length - suffix.length;
|
|
2743
2744
|
return l >= 0 && str.indexOf(suffix, l) == l;
|
|
2744
|
-
}
|
|
2745
|
-
goog
|
|
2746
|
-
return goog
|
|
2747
|
-
}
|
|
2748
|
-
goog
|
|
2749
|
-
return goog
|
|
2750
|
-
}
|
|
2751
|
-
goog
|
|
2745
|
+
}
|
|
2746
|
+
function module$contents$goog$string$internal_caseInsensitiveStartsWith(str, prefix) {
|
|
2747
|
+
return module$contents$goog$string$internal_caseInsensitiveCompare(prefix, str.slice(0, prefix.length)) == 0;
|
|
2748
|
+
}
|
|
2749
|
+
function module$contents$goog$string$internal_caseInsensitiveEndsWith(str, suffix) {
|
|
2750
|
+
return module$contents$goog$string$internal_caseInsensitiveCompare(suffix, str.slice(str.length - suffix.length)) == 0;
|
|
2751
|
+
}
|
|
2752
|
+
function module$contents$goog$string$internal_caseInsensitiveEquals(str1, str2) {
|
|
2752
2753
|
return str1.toLowerCase() == str2.toLowerCase();
|
|
2753
|
-
}
|
|
2754
|
-
goog
|
|
2754
|
+
}
|
|
2755
|
+
function module$contents$goog$string$internal_isEmptyOrWhitespace(str) {
|
|
2755
2756
|
return /^[\s\xa0]*$/.test(str);
|
|
2756
|
-
}
|
|
2757
|
-
goog
|
|
2757
|
+
}
|
|
2758
|
+
var module$contents$goog$string$internal_trim = goog.TRUSTED_SITE && (goog.FEATURESET_YEAR >= 2018 || String.prototype.trim) ? function(str) {
|
|
2758
2759
|
return str.trim();
|
|
2759
2760
|
} : function(str) {
|
|
2760
2761
|
return /^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(str)[1];
|
|
2761
2762
|
};
|
|
2762
|
-
goog
|
|
2763
|
+
function module$contents$goog$string$internal_caseInsensitiveCompare(str1, str2) {
|
|
2763
2764
|
var test1 = String(str1).toLowerCase(), test2 = String(str2).toLowerCase();
|
|
2764
2765
|
return test1 < test2 ? -1 : test1 == test2 ? 0 : 1;
|
|
2765
|
-
}
|
|
2766
|
-
goog
|
|
2766
|
+
}
|
|
2767
|
+
function module$contents$goog$string$internal_newLineToBr(str, opt_xml) {
|
|
2767
2768
|
return str.replace(/(\r\n|\r|\n)/g, opt_xml ? "<br />" : "<br>");
|
|
2768
|
-
}
|
|
2769
|
-
goog
|
|
2769
|
+
}
|
|
2770
|
+
function module$contents$goog$string$internal_htmlEscape(str, opt_isLikelyToContainHtmlChars) {
|
|
2770
2771
|
if (opt_isLikelyToContainHtmlChars) {
|
|
2771
|
-
str = str.replace(goog
|
|
2772
|
+
str = str.replace(module$contents$goog$string$internal_AMP_RE, "&").replace(module$contents$goog$string$internal_LT_RE, "<").replace(module$contents$goog$string$internal_GT_RE, ">").replace(module$contents$goog$string$internal_QUOT_RE, """).replace(module$contents$goog$string$internal_SINGLE_QUOTE_RE, "'").replace(module$contents$goog$string$internal_NULL_RE, "�");
|
|
2772
2773
|
} else {
|
|
2773
|
-
if (!goog
|
|
2774
|
+
if (!module$contents$goog$string$internal_ALL_RE.test(str)) {
|
|
2774
2775
|
return str;
|
|
2775
2776
|
}
|
|
2776
|
-
str.indexOf("&") != -1 && (str = str.replace(goog
|
|
2777
|
-
str.indexOf("<") != -1 && (str = str.replace(goog
|
|
2778
|
-
str.indexOf(">") != -1 && (str = str.replace(goog
|
|
2779
|
-
str.indexOf('"') != -1 && (str = str.replace(goog
|
|
2780
|
-
str.indexOf("'") != -1 && (str = str.replace(goog
|
|
2781
|
-
str.indexOf("\x00") != -1 && (str = str.replace(goog
|
|
2777
|
+
str.indexOf("&") != -1 && (str = str.replace(module$contents$goog$string$internal_AMP_RE, "&"));
|
|
2778
|
+
str.indexOf("<") != -1 && (str = str.replace(module$contents$goog$string$internal_LT_RE, "<"));
|
|
2779
|
+
str.indexOf(">") != -1 && (str = str.replace(module$contents$goog$string$internal_GT_RE, ">"));
|
|
2780
|
+
str.indexOf('"') != -1 && (str = str.replace(module$contents$goog$string$internal_QUOT_RE, """));
|
|
2781
|
+
str.indexOf("'") != -1 && (str = str.replace(module$contents$goog$string$internal_SINGLE_QUOTE_RE, "'"));
|
|
2782
|
+
str.indexOf("\x00") != -1 && (str = str.replace(module$contents$goog$string$internal_NULL_RE, "�"));
|
|
2782
2783
|
}
|
|
2783
2784
|
return str;
|
|
2784
|
-
}
|
|
2785
|
-
goog
|
|
2786
|
-
goog
|
|
2787
|
-
goog.string.internal.GT_RE_ = />/g;
|
|
2788
|
-
goog.string.internal.QUOT_RE_ = /"/g;
|
|
2789
|
-
goog.string.internal.SINGLE_QUOTE_RE_ = /'/g;
|
|
2790
|
-
goog.string.internal.NULL_RE_ = /\x00/g;
|
|
2791
|
-
goog.string.internal.ALL_RE_ = /[\x00&<>"']/;
|
|
2792
|
-
goog.string.internal.whitespaceEscape = function(str, opt_xml) {
|
|
2793
|
-
return goog.string.internal.newLineToBr(str.replace(/ /g, "  "), opt_xml);
|
|
2794
|
-
};
|
|
2795
|
-
goog.string.internal.contains = function(str, subString) {
|
|
2785
|
+
}
|
|
2786
|
+
var module$contents$goog$string$internal_AMP_RE = /&/g, module$contents$goog$string$internal_LT_RE = /</g, module$contents$goog$string$internal_GT_RE = />/g, module$contents$goog$string$internal_QUOT_RE = /"/g, module$contents$goog$string$internal_SINGLE_QUOTE_RE = /'/g, module$contents$goog$string$internal_NULL_RE = /\x00/g, module$contents$goog$string$internal_ALL_RE = /[\x00&<>"']/;
|
|
2787
|
+
function module$contents$goog$string$internal_contains(str, subString) {
|
|
2796
2788
|
return str.indexOf(subString) != -1;
|
|
2797
|
-
}
|
|
2798
|
-
goog
|
|
2799
|
-
return goog
|
|
2800
|
-
}
|
|
2801
|
-
goog
|
|
2802
|
-
for (var order = 0, v1Subs = goog
|
|
2789
|
+
}
|
|
2790
|
+
function module$contents$goog$string$internal_caseInsensitiveContains(str, subString) {
|
|
2791
|
+
return module$contents$goog$string$internal_contains(str.toLowerCase(), subString.toLowerCase());
|
|
2792
|
+
}
|
|
2793
|
+
function module$contents$goog$string$internal_compareVersions(version1, version2) {
|
|
2794
|
+
for (var order = 0, v1Subs = module$contents$goog$string$internal_trim(String(version1)).split("."), v2Subs = module$contents$goog$string$internal_trim(String(version2)).split("."), subCount = Math.max(v1Subs.length, v2Subs.length), subIdx = 0; order == 0 && subIdx < subCount; subIdx++) {
|
|
2803
2795
|
var v1Sub = v1Subs[subIdx] || "", v2Sub = v2Subs[subIdx] || "";
|
|
2804
2796
|
do {
|
|
2805
2797
|
var v1Comp = /(\d*)(\D*)(.*)/.exec(v1Sub) || ["", "", "", ""], v2Comp = /(\d*)(\D*)(.*)/.exec(v2Sub) || ["", "", "", ""];
|
|
2806
2798
|
if (v1Comp[0].length == 0 && v2Comp[0].length == 0) {
|
|
2807
2799
|
break;
|
|
2808
2800
|
}
|
|
2809
|
-
order = goog
|
|
2801
|
+
order = module$contents$goog$string$internal_compareElements(v1Comp[1].length == 0 ? 0 : parseInt(v1Comp[1], 10), v2Comp[1].length == 0 ? 0 : parseInt(v2Comp[1], 10)) || module$contents$goog$string$internal_compareElements(v1Comp[2].length == 0, v2Comp[2].length == 0) || module$contents$goog$string$internal_compareElements(v1Comp[2], v2Comp[2]);
|
|
2810
2802
|
v1Sub = v1Comp[3];
|
|
2811
2803
|
v2Sub = v2Comp[3];
|
|
2812
2804
|
} while (order == 0);
|
|
2813
2805
|
}
|
|
2814
2806
|
return order;
|
|
2815
|
-
}
|
|
2816
|
-
goog
|
|
2807
|
+
}
|
|
2808
|
+
function module$contents$goog$string$internal_compareElements(left, right) {
|
|
2817
2809
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
2810
|
+
}
|
|
2811
|
+
goog.string.internal.caseInsensitiveCompare = module$contents$goog$string$internal_caseInsensitiveCompare;
|
|
2812
|
+
goog.string.internal.caseInsensitiveContains = module$contents$goog$string$internal_caseInsensitiveContains;
|
|
2813
|
+
goog.string.internal.caseInsensitiveEndsWith = module$contents$goog$string$internal_caseInsensitiveEndsWith;
|
|
2814
|
+
goog.string.internal.caseInsensitiveEquals = module$contents$goog$string$internal_caseInsensitiveEquals;
|
|
2815
|
+
goog.string.internal.caseInsensitiveStartsWith = module$contents$goog$string$internal_caseInsensitiveStartsWith;
|
|
2816
|
+
goog.string.internal.compareVersions = module$contents$goog$string$internal_compareVersions;
|
|
2817
|
+
goog.string.internal.contains = module$contents$goog$string$internal_contains;
|
|
2818
|
+
goog.string.internal.endsWith = module$contents$goog$string$internal_endsWith;
|
|
2819
|
+
goog.string.internal.htmlEscape = module$contents$goog$string$internal_htmlEscape;
|
|
2820
|
+
goog.string.internal.isEmptyOrWhitespace = module$contents$goog$string$internal_isEmptyOrWhitespace;
|
|
2821
|
+
goog.string.internal.newLineToBr = module$contents$goog$string$internal_newLineToBr;
|
|
2822
|
+
goog.string.internal.startsWith = module$contents$goog$string$internal_startsWith;
|
|
2823
|
+
goog.string.internal.trim = module$contents$goog$string$internal_trim;
|
|
2824
|
+
goog.string.internal.whitespaceEscape = function(str, opt_xml) {
|
|
2825
|
+
return module$contents$goog$string$internal_newLineToBr(str.replace(/ /g, "  "), opt_xml);
|
|
2818
2826
|
};
|
|
2819
2827
|
/*
|
|
2820
2828
|
|
|
@@ -2899,8 +2907,8 @@ function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUr
|
|
|
2899
2907
|
throw Error(message);
|
|
2900
2908
|
}
|
|
2901
2909
|
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
2902
|
-
var $jscomp$templatelit$
|
|
2903
|
-
["\\0"]), $jscomp$templatelit$
|
|
2910
|
+
var $jscomp$templatelit$m425881384$5 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$m425881384$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$8 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$m425881384$9 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$10 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
2911
|
+
["\\0"]), $jscomp$templatelit$m425881384$11 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$12 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), module$contents$safevalues$internals$string_literal_module = module$contents$safevalues$internals$string_literal_module || {id:"third_party/javascript/safevalues/internals/string_literal.closure.js"};
|
|
2904
2912
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
2905
2913
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
2906
2914
|
throw new TypeError("\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################");
|
|
@@ -2914,14 +2922,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
2914
2922
|
return fn.toString().indexOf("`") === -1;
|
|
2915
2923
|
}
|
|
2916
2924
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2917
|
-
return tag($jscomp$templatelit$
|
|
2925
|
+
return tag($jscomp$templatelit$m425881384$5);
|
|
2918
2926
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2919
|
-
return tag($jscomp$templatelit$
|
|
2927
|
+
return tag($jscomp$templatelit$m425881384$6);
|
|
2920
2928
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2921
|
-
return tag($jscomp$templatelit$
|
|
2929
|
+
return tag($jscomp$templatelit$m425881384$7);
|
|
2922
2930
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2923
|
-
return tag($jscomp$templatelit$
|
|
2924
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
2931
|
+
return tag($jscomp$templatelit$m425881384$8);
|
|
2932
|
+
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$9) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$10) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$11) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$12);
|
|
2925
2933
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
2926
2934
|
return Array.isArray(templateObj) && Array.isArray(templateObj.raw) && templateObj.length === templateObj.raw.length && (module$contents$safevalues$internals$string_literal_isTranspiled || templateObj !== templateObj.raw) && (module$contents$safevalues$internals$string_literal_isTranspiled && !module$contents$safevalues$internals$string_literal_frozenTSA || module$contents$safevalues$internals$string_literal_checkFrozen(templateObj)) ?
|
|
2927
2935
|
!0 : !1;
|
|
@@ -3164,32 +3172,33 @@ function module$contents$safevalues$dom$elements$button_setButtonFormaction(butt
|
|
|
3164
3172
|
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3165
3173
|
sanitizedUrl !== void 0 && (button.formAction = sanitizedUrl);
|
|
3166
3174
|
}
|
|
3167
|
-
;var module$
|
|
3168
|
-
module$
|
|
3169
|
-
|
|
3170
|
-
this.privateDoNotAccessOrElseWrappedAttributePrefix = value;
|
|
3171
|
-
};
|
|
3172
|
-
module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix.prototype.toString = function() {
|
|
3173
|
-
return this.privateDoNotAccessOrElseWrappedAttributePrefix;
|
|
3174
|
-
};
|
|
3175
|
-
var module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl = module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix;
|
|
3176
|
-
function module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal(value) {
|
|
3177
|
-
return new module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix(module$exports$safevalues$internals$secrets.secretToken, value);
|
|
3175
|
+
;var module$contents$safevalues$dom$elements$embed_module = module$contents$safevalues$dom$elements$embed_module || {id:"third_party/javascript/safevalues/dom/elements/embed.closure.js"};
|
|
3176
|
+
function module$contents$safevalues$dom$elements$embed_setEmbedSrc(embedEl, url) {
|
|
3177
|
+
embedEl.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url);
|
|
3178
3178
|
}
|
|
3179
|
-
module$exports$safevalues$
|
|
3180
|
-
function module$contents$safevalues$
|
|
3181
|
-
|
|
3179
|
+
;var module$exports$safevalues$dom$elements$form = {}, module$contents$safevalues$dom$elements$form_module = module$contents$safevalues$dom$elements$form_module || {id:"third_party/javascript/safevalues/dom/elements/form.closure.js"};
|
|
3180
|
+
function module$contents$safevalues$dom$elements$form_setFormAction(form, url) {
|
|
3181
|
+
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3182
|
+
sanitizedUrl !== void 0 && (form.action = sanitizedUrl);
|
|
3182
3183
|
}
|
|
3183
|
-
module$exports$safevalues$
|
|
3184
|
-
function module$contents$safevalues$
|
|
3185
|
-
|
|
3186
|
-
return value.privateDoNotAccessOrElseWrappedAttributePrefix;
|
|
3187
|
-
}
|
|
3188
|
-
var message = "";
|
|
3189
|
-
goog.DEBUG && (message = "Unexpected type when unwrapping SafeAttributePrefix, got '" + value + "' of type '" + typeof value + "'");
|
|
3190
|
-
throw Error(message);
|
|
3184
|
+
module$exports$safevalues$dom$elements$form.setFormAction = module$contents$safevalues$dom$elements$form_setFormAction;
|
|
3185
|
+
function module$contents$safevalues$dom$elements$form_setFormActionLite(form, url) {
|
|
3186
|
+
module$contents$safevalues$builders$url_builders_reportJavaScriptUrl(url) || (form.action = url);
|
|
3191
3187
|
}
|
|
3192
|
-
module$exports$safevalues$
|
|
3188
|
+
module$exports$safevalues$dom$elements$form.setFormActionLite = module$contents$safevalues$dom$elements$form_setFormActionLite;
|
|
3189
|
+
var module$exports$check = {}, module$contents$check_module = module$contents$check_module || {id:"javascript/typescript/contrib/check.closure.js"};
|
|
3190
|
+
function module$contents$check_checkExhaustive(value, msg) {
|
|
3191
|
+
return module$contents$check_checkExhaustiveAllowing(value, msg);
|
|
3192
|
+
}
|
|
3193
|
+
module$exports$check.checkExhaustive = module$contents$check_checkExhaustive;
|
|
3194
|
+
function module$contents$check_checkExhaustiveAllowing(value, msg) {
|
|
3195
|
+
throw Error(msg === void 0 ? "unexpected value " + value + "!" : msg);
|
|
3196
|
+
}
|
|
3197
|
+
module$exports$check.checkExhaustiveAllowing = module$contents$check_checkExhaustiveAllowing;
|
|
3198
|
+
module$exports$check.assumeExhaustive = function(value) {
|
|
3199
|
+
};
|
|
3200
|
+
module$exports$check.assumeExhaustiveAllowing = function(value) {
|
|
3201
|
+
};
|
|
3193
3202
|
var module$exports$safevalues$internals$html_impl = {}, module$contents$safevalues$internals$html_impl_module = module$contents$safevalues$internals$html_impl_module || {id:"third_party/javascript/safevalues/internals/html_impl.closure.js"};
|
|
3194
3203
|
module$exports$safevalues$internals$html_impl.SafeHtml = function(token, value) {
|
|
3195
3204
|
goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
@@ -3221,84 +3230,6 @@ module$exports$safevalues$internals$html_impl.unwrapHtml = function(value) {
|
|
|
3221
3230
|
goog.DEBUG && (message = "Unexpected type when unwrapping SafeHtml");
|
|
3222
3231
|
throw Error(message);
|
|
3223
3232
|
};
|
|
3224
|
-
var module$exports$safevalues$dom$elements$element = {}, module$contents$safevalues$dom$elements$element_module = module$contents$safevalues$dom$elements$element_module || {id:"third_party/javascript/safevalues/dom/elements/element.closure.js"}, module$contents$safevalues$dom$elements$element_ScriptOrStyle;
|
|
3225
|
-
function module$contents$safevalues$dom$elements$element_setElementInnerHtml(elOrRoot, v) {
|
|
3226
|
-
module$contents$safevalues$dom$elements$element_isElement(elOrRoot) && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(elOrRoot);
|
|
3227
|
-
elOrRoot.innerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
|
|
3228
|
-
}
|
|
3229
|
-
module$exports$safevalues$dom$elements$element.setElementInnerHtml = module$contents$safevalues$dom$elements$element_setElementInnerHtml;
|
|
3230
|
-
function module$contents$safevalues$dom$elements$element_setElementOuterHtml(e, v) {
|
|
3231
|
-
var parent = e.parentElement;
|
|
3232
|
-
parent !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(parent);
|
|
3233
|
-
e.outerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
|
|
3234
|
-
}
|
|
3235
|
-
module$exports$safevalues$dom$elements$element.setElementOuterHtml = module$contents$safevalues$dom$elements$element_setElementOuterHtml;
|
|
3236
|
-
function module$contents$safevalues$dom$elements$element_elementInsertAdjacentHtml(element, position, v) {
|
|
3237
|
-
var tagContext = position === "beforebegin" || position === "afterend" ? element.parentElement : element;
|
|
3238
|
-
tagContext !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(tagContext);
|
|
3239
|
-
element.insertAdjacentHTML(position, (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v));
|
|
3240
|
-
}
|
|
3241
|
-
module$exports$safevalues$dom$elements$element.elementInsertAdjacentHtml = module$contents$safevalues$dom$elements$element_elementInsertAdjacentHtml;
|
|
3242
|
-
function module$contents$safevalues$dom$elements$element_buildPrefixedAttributeSetter(prefix) {
|
|
3243
|
-
var prefixes = [prefix].concat((0,$jscomp.arrayFromIterable)($jscomp.getRestArguments.apply(1, arguments)));
|
|
3244
|
-
return function(e, attr, value) {
|
|
3245
|
-
module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute(prefixes, e, attr, value);
|
|
3246
|
-
};
|
|
3247
|
-
}
|
|
3248
|
-
module$exports$safevalues$dom$elements$element.buildPrefixedAttributeSetter = module$contents$safevalues$dom$elements$element_buildPrefixedAttributeSetter;
|
|
3249
|
-
function module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute(attrPrefixes, e, attr, value) {
|
|
3250
|
-
if (attrPrefixes.length === 0) {
|
|
3251
|
-
var message = "";
|
|
3252
|
-
goog.DEBUG && (message = "No prefixes are provided");
|
|
3253
|
-
throw Error(message);
|
|
3254
|
-
}
|
|
3255
|
-
var prefixes = attrPrefixes.map(function(s) {
|
|
3256
|
-
return module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix(s);
|
|
3257
|
-
}), attrLower = attr.toLowerCase();
|
|
3258
|
-
if (prefixes.every(function(p) {
|
|
3259
|
-
return attrLower.indexOf(p) !== 0;
|
|
3260
|
-
})) {
|
|
3261
|
-
throw Error('Attribute "' + attr + '" does not match any of the allowed prefixes.');
|
|
3262
|
-
}
|
|
3263
|
-
e.setAttribute(attr, value);
|
|
3264
|
-
}
|
|
3265
|
-
module$exports$safevalues$dom$elements$element.setElementPrefixedAttribute = module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute;
|
|
3266
|
-
function module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(element) {
|
|
3267
|
-
var message = "", tagName = element.tagName;
|
|
3268
|
-
if (/^(script|style)$/i.test(tagName)) {
|
|
3269
|
-
throw goog.DEBUG && (message = tagName.toLowerCase() === "script" ? "Use setScriptTextContent with a SafeScript." : "Use setStyleTextContent with a SafeStyleSheet."), Error(message);
|
|
3270
|
-
}
|
|
3271
|
-
}
|
|
3272
|
-
function module$contents$safevalues$dom$elements$element_isElement(elOrRoot) {
|
|
3273
|
-
return elOrRoot.nodeType === 1;
|
|
3274
|
-
}
|
|
3275
|
-
;var module$contents$safevalues$dom$elements$embed_module = module$contents$safevalues$dom$elements$embed_module || {id:"third_party/javascript/safevalues/dom/elements/embed.closure.js"};
|
|
3276
|
-
function module$contents$safevalues$dom$elements$embed_setEmbedSrc(embedEl, url) {
|
|
3277
|
-
embedEl.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url);
|
|
3278
|
-
}
|
|
3279
|
-
;var module$exports$safevalues$dom$elements$form = {}, module$contents$safevalues$dom$elements$form_module = module$contents$safevalues$dom$elements$form_module || {id:"third_party/javascript/safevalues/dom/elements/form.closure.js"};
|
|
3280
|
-
function module$contents$safevalues$dom$elements$form_setFormAction(form, url) {
|
|
3281
|
-
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3282
|
-
sanitizedUrl !== void 0 && (form.action = sanitizedUrl);
|
|
3283
|
-
}
|
|
3284
|
-
module$exports$safevalues$dom$elements$form.setFormAction = module$contents$safevalues$dom$elements$form_setFormAction;
|
|
3285
|
-
function module$contents$safevalues$dom$elements$form_setFormActionLite(form, url) {
|
|
3286
|
-
module$contents$safevalues$builders$url_builders_reportJavaScriptUrl(url) || (form.action = url);
|
|
3287
|
-
}
|
|
3288
|
-
module$exports$safevalues$dom$elements$form.setFormActionLite = module$contents$safevalues$dom$elements$form_setFormActionLite;
|
|
3289
|
-
var module$exports$check = {}, module$contents$check_module = module$contents$check_module || {id:"javascript/typescript/contrib/check.closure.js"};
|
|
3290
|
-
function module$contents$check_checkExhaustive(value, msg) {
|
|
3291
|
-
return module$contents$check_checkExhaustiveAllowing(value, msg);
|
|
3292
|
-
}
|
|
3293
|
-
module$exports$check.checkExhaustive = module$contents$check_checkExhaustive;
|
|
3294
|
-
function module$contents$check_checkExhaustiveAllowing(value, msg) {
|
|
3295
|
-
throw Error(msg === void 0 ? "unexpected value " + value + "!" : msg);
|
|
3296
|
-
}
|
|
3297
|
-
module$exports$check.checkExhaustiveAllowing = module$contents$check_checkExhaustiveAllowing;
|
|
3298
|
-
module$exports$check.assumeExhaustive = function(value) {
|
|
3299
|
-
};
|
|
3300
|
-
module$exports$check.assumeExhaustiveAllowing = function(value) {
|
|
3301
|
-
};
|
|
3302
3233
|
var module$exports$safevalues$dom$elements$iframe = {}, module$contents$safevalues$dom$elements$iframe_module = module$contents$safevalues$dom$elements$iframe_module || {id:"third_party/javascript/safevalues/dom/elements/iframe.closure.js"};
|
|
3303
3234
|
function module$contents$safevalues$dom$elements$iframe_setIframeSrc(iframe, v) {
|
|
3304
3235
|
iframe.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v).toString();
|
|
@@ -3320,9 +3251,9 @@ function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr
|
|
|
3320
3251
|
}
|
|
3321
3252
|
}
|
|
3322
3253
|
module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIframeIntentError = function(type, intent) {
|
|
3323
|
-
var $jscomp$tmp$error$
|
|
3324
|
-
this.message = $jscomp$tmp$error$
|
|
3325
|
-
"stack" in $jscomp$tmp$error$
|
|
3254
|
+
var $jscomp$tmp$error$494508883$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.IframeIntent[intent]);
|
|
3255
|
+
this.message = $jscomp$tmp$error$494508883$1.message;
|
|
3256
|
+
"stack" in $jscomp$tmp$error$494508883$1 && (this.stack = $jscomp$tmp$error$494508883$1.stack);
|
|
3326
3257
|
this.type = type;
|
|
3327
3258
|
this.intent = intent;
|
|
3328
3259
|
this.name = "TypeCannotBeUsedWithIframeIntentError";
|
|
@@ -3398,25 +3329,7 @@ function module$contents$safevalues$dom$elements$input_setInputFormaction(input,
|
|
|
3398
3329
|
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3399
3330
|
sanitizedUrl !== void 0 && (input.formAction = sanitizedUrl);
|
|
3400
3331
|
}
|
|
3401
|
-
;var module$
|
|
3402
|
-
function module$contents$safevalues$dom$elements$link_setLinkHrefAndRel(link, url, rel) {
|
|
3403
|
-
if (module$contents$safevalues$internals$resource_url_impl_isResourceUrl(url)) {
|
|
3404
|
-
module$contents$safevalues$dom$elements$link_setLinkWithResourceUrlHrefAndRel(link, url, rel);
|
|
3405
|
-
} else {
|
|
3406
|
-
if (module$contents$safevalues$dom$elements$link_SAFE_URL_REL_VALUES.indexOf(rel) === -1) {
|
|
3407
|
-
throw Error('TrustedResourceUrl href attribute required with rel="' + rel + '"');
|
|
3408
|
-
}
|
|
3409
|
-
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3410
|
-
sanitizedUrl !== void 0 && (link.href = sanitizedUrl, link.rel = rel);
|
|
3411
|
-
}
|
|
3412
|
-
}
|
|
3413
|
-
module$exports$safevalues$dom$elements$link.setLinkHrefAndRel = module$contents$safevalues$dom$elements$link_setLinkHrefAndRel;
|
|
3414
|
-
function module$contents$safevalues$dom$elements$link_setLinkWithResourceUrlHrefAndRel(link, url, rel) {
|
|
3415
|
-
link.href = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString();
|
|
3416
|
-
link.rel = rel;
|
|
3417
|
-
}
|
|
3418
|
-
module$exports$safevalues$dom$elements$link.setLinkWithResourceUrlHrefAndRel = module$contents$safevalues$dom$elements$link_setLinkWithResourceUrlHrefAndRel;
|
|
3419
|
-
var module$contents$safevalues$dom$elements$object_module = module$contents$safevalues$dom$elements$object_module || {id:"third_party/javascript/safevalues/dom/elements/object.closure.js"};
|
|
3332
|
+
;var module$contents$safevalues$dom$elements$object_module = module$contents$safevalues$dom$elements$object_module || {id:"third_party/javascript/safevalues/dom/elements/object.closure.js"};
|
|
3420
3333
|
function module$contents$safevalues$dom$elements$object_setObjectData(obj, v) {
|
|
3421
3334
|
obj.data = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v);
|
|
3422
3335
|
}
|
|
@@ -3426,17 +3339,17 @@ function module$contents$safevalues$dom$globals$window_windowOpen(win, url, targ
|
|
|
3426
3339
|
return sanitizedUrl !== void 0 ? win.open(sanitizedUrl, target, features) : null;
|
|
3427
3340
|
}
|
|
3428
3341
|
module$exports$safevalues$dom$globals$window.windowOpen = module$contents$safevalues$dom$globals$window_windowOpen;
|
|
3429
|
-
function module$contents$safevalues$dom$globals$window_getScriptNonce(
|
|
3430
|
-
return module$contents$safevalues$dom$globals$window_getNonceFor("script",
|
|
3342
|
+
function module$contents$safevalues$dom$globals$window_getScriptNonce(doc) {
|
|
3343
|
+
return module$contents$safevalues$dom$globals$window_getNonceFor("script", doc);
|
|
3431
3344
|
}
|
|
3432
3345
|
module$exports$safevalues$dom$globals$window.getScriptNonce = module$contents$safevalues$dom$globals$window_getScriptNonce;
|
|
3433
|
-
function module$contents$safevalues$dom$globals$window_getStyleNonce(
|
|
3434
|
-
return module$contents$safevalues$dom$globals$window_getNonceFor("style",
|
|
3346
|
+
function module$contents$safevalues$dom$globals$window_getStyleNonce(doc) {
|
|
3347
|
+
return module$contents$safevalues$dom$globals$window_getNonceFor("style", doc);
|
|
3435
3348
|
}
|
|
3436
3349
|
module$exports$safevalues$dom$globals$window.getStyleNonce = module$contents$safevalues$dom$globals$window_getStyleNonce;
|
|
3437
|
-
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName,
|
|
3438
|
-
|
|
3439
|
-
var $jscomp$optchain$
|
|
3350
|
+
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, doc) {
|
|
3351
|
+
doc = doc === void 0 ? document : doc;
|
|
3352
|
+
var $jscomp$optchain$tmpm1987982378$0, $jscomp$optchain$tmpm1987982378$1, el = ($jscomp$optchain$tmpm1987982378$1 = ($jscomp$optchain$tmpm1987982378$0 = doc).querySelector) == null ? void 0 : $jscomp$optchain$tmpm1987982378$1.call($jscomp$optchain$tmpm1987982378$0, elementName + "[nonce]");
|
|
3440
3353
|
return el == null ? "" : el.nonce || el.getAttribute("nonce") || "";
|
|
3441
3354
|
}
|
|
3442
3355
|
;var module$exports$safevalues$internals$script_impl = {}, module$contents$safevalues$internals$script_impl_module = module$contents$safevalues$internals$script_impl_module || {id:"third_party/javascript/safevalues/internals/script_impl.closure.js"};
|
|
@@ -3487,6 +3400,154 @@ function module$contents$safevalues$dom$elements$script_setScriptSrc(script, v,
|
|
|
3487
3400
|
(options == null ? 0 : options.omitNonce) || module$contents$safevalues$dom$elements$script_setNonceForScriptElement(script);
|
|
3488
3401
|
}
|
|
3489
3402
|
module$exports$safevalues$dom$elements$script.setScriptSrc = module$contents$safevalues$dom$elements$script_setScriptSrc;
|
|
3403
|
+
var module$exports$safevalues$internals$attribute_impl = {}, module$contents$safevalues$internals$attribute_impl_module = module$contents$safevalues$internals$attribute_impl_module || {id:"third_party/javascript/safevalues/internals/attribute_impl.closure.js"};
|
|
3404
|
+
module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix = function(token, value) {
|
|
3405
|
+
goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
3406
|
+
this.privateDoNotAccessOrElseWrappedAttributePrefix = value;
|
|
3407
|
+
};
|
|
3408
|
+
module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix.prototype.toString = function() {
|
|
3409
|
+
return this.privateDoNotAccessOrElseWrappedAttributePrefix;
|
|
3410
|
+
};
|
|
3411
|
+
var module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl = module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix;
|
|
3412
|
+
function module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal(value) {
|
|
3413
|
+
return new module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix(module$exports$safevalues$internals$secrets.secretToken, value);
|
|
3414
|
+
}
|
|
3415
|
+
module$exports$safevalues$internals$attribute_impl.createAttributePrefixInternal = module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal;
|
|
3416
|
+
function module$contents$safevalues$internals$attribute_impl_isAttributePrefix(value) {
|
|
3417
|
+
return value instanceof module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix;
|
|
3418
|
+
}
|
|
3419
|
+
module$exports$safevalues$internals$attribute_impl.isAttributePrefix = module$contents$safevalues$internals$attribute_impl_isAttributePrefix;
|
|
3420
|
+
function module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix(value) {
|
|
3421
|
+
if (module$contents$safevalues$internals$attribute_impl_isAttributePrefix(value)) {
|
|
3422
|
+
return value.privateDoNotAccessOrElseWrappedAttributePrefix;
|
|
3423
|
+
}
|
|
3424
|
+
var message = "";
|
|
3425
|
+
goog.DEBUG && (message = "Unexpected type when unwrapping SafeAttributePrefix, got '" + value + "' of type '" + typeof value + "'");
|
|
3426
|
+
throw Error(message);
|
|
3427
|
+
}
|
|
3428
|
+
module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
3429
|
+
var module$exports$safevalues$dom$elements$element = {}, module$contents$safevalues$dom$elements$element_module = module$contents$safevalues$dom$elements$element_module || {id:"third_party/javascript/safevalues/dom/elements/element.closure.js"}, module$contents$safevalues$dom$elements$element_ScriptOrStyle;
|
|
3430
|
+
function module$contents$safevalues$dom$elements$element_setElementInnerHtml(elOrRoot, v) {
|
|
3431
|
+
module$contents$safevalues$dom$elements$element_isElement(elOrRoot) && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(elOrRoot);
|
|
3432
|
+
elOrRoot.innerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
|
|
3433
|
+
}
|
|
3434
|
+
module$exports$safevalues$dom$elements$element.setElementInnerHtml = module$contents$safevalues$dom$elements$element_setElementInnerHtml;
|
|
3435
|
+
function module$contents$safevalues$dom$elements$element_setElementOuterHtml(e, v) {
|
|
3436
|
+
var parent = e.parentElement;
|
|
3437
|
+
parent !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(parent);
|
|
3438
|
+
e.outerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
|
|
3439
|
+
}
|
|
3440
|
+
module$exports$safevalues$dom$elements$element.setElementOuterHtml = module$contents$safevalues$dom$elements$element_setElementOuterHtml;
|
|
3441
|
+
function module$contents$safevalues$dom$elements$element_elementInsertAdjacentHtml(element, position, v) {
|
|
3442
|
+
var tagContext = position === "beforebegin" || position === "afterend" ? element.parentElement : element;
|
|
3443
|
+
tagContext !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(tagContext);
|
|
3444
|
+
element.insertAdjacentHTML(position, (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v));
|
|
3445
|
+
}
|
|
3446
|
+
module$exports$safevalues$dom$elements$element.elementInsertAdjacentHtml = module$contents$safevalues$dom$elements$element_elementInsertAdjacentHtml;
|
|
3447
|
+
function module$contents$safevalues$dom$elements$element_buildPrefixedAttributeSetter(prefix) {
|
|
3448
|
+
var prefixes = [prefix].concat((0,$jscomp.arrayFromIterable)($jscomp.getRestArguments.apply(1, arguments)));
|
|
3449
|
+
return function(e, attr, value) {
|
|
3450
|
+
module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute(prefixes, e, attr, value);
|
|
3451
|
+
};
|
|
3452
|
+
}
|
|
3453
|
+
module$exports$safevalues$dom$elements$element.buildPrefixedAttributeSetter = module$contents$safevalues$dom$elements$element_buildPrefixedAttributeSetter;
|
|
3454
|
+
function module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute(attrPrefixes, e, attr, value) {
|
|
3455
|
+
if (attrPrefixes.length === 0) {
|
|
3456
|
+
var message = "";
|
|
3457
|
+
goog.DEBUG && (message = "No prefixes are provided");
|
|
3458
|
+
throw Error(message);
|
|
3459
|
+
}
|
|
3460
|
+
var prefixes = attrPrefixes.map(function(s) {
|
|
3461
|
+
return module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix(s);
|
|
3462
|
+
}), attrLower = attr.toLowerCase();
|
|
3463
|
+
if (prefixes.every(function(p) {
|
|
3464
|
+
return attrLower.indexOf(p) !== 0;
|
|
3465
|
+
})) {
|
|
3466
|
+
throw Error('Attribute "' + attr + '" does not match any of the allowed prefixes.');
|
|
3467
|
+
}
|
|
3468
|
+
e.setAttribute(attr, value);
|
|
3469
|
+
}
|
|
3470
|
+
module$exports$safevalues$dom$elements$element.setElementPrefixedAttribute = module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute;
|
|
3471
|
+
function module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(element) {
|
|
3472
|
+
var message = "", tagName = element.tagName;
|
|
3473
|
+
if (/^(script|style)$/i.test(tagName)) {
|
|
3474
|
+
throw goog.DEBUG && (message = tagName.toLowerCase() === "script" ? "Use setScriptTextContent with a SafeScript." : "Use setStyleTextContent with a SafeStyleSheet."), Error(message);
|
|
3475
|
+
}
|
|
3476
|
+
}
|
|
3477
|
+
function module$contents$safevalues$dom$elements$element_isElement(elOrRoot) {
|
|
3478
|
+
return elOrRoot.nodeType === 1;
|
|
3479
|
+
}
|
|
3480
|
+
function module$contents$safevalues$dom$elements$element_setElementAttribute(el, attr, value) {
|
|
3481
|
+
if (el.namespaceURI !== "http://www.w3.org/1999/xhtml") {
|
|
3482
|
+
throw Error("Cannot set attribute '" + attr + "' on '" + el.tagName + "'.Element is not in the HTML namespace");
|
|
3483
|
+
}
|
|
3484
|
+
attr = attr.toLowerCase();
|
|
3485
|
+
switch(el.tagName + " " + attr) {
|
|
3486
|
+
case "A href":
|
|
3487
|
+
module$contents$safevalues$dom$elements$anchor_setAnchorHref(el, value);
|
|
3488
|
+
break;
|
|
3489
|
+
case "AREA href":
|
|
3490
|
+
module$contents$safevalues$dom$elements$area_setAreaHref(el, value);
|
|
3491
|
+
break;
|
|
3492
|
+
case "BASE href":
|
|
3493
|
+
module$contents$safevalues$dom$elements$base_setBaseHref(el, value);
|
|
3494
|
+
break;
|
|
3495
|
+
case "BUTTON formaction":
|
|
3496
|
+
module$contents$safevalues$dom$elements$button_setButtonFormaction(el, value);
|
|
3497
|
+
break;
|
|
3498
|
+
case "EMBED src":
|
|
3499
|
+
module$contents$safevalues$dom$elements$embed_setEmbedSrc(el, value);
|
|
3500
|
+
break;
|
|
3501
|
+
case "FORM action":
|
|
3502
|
+
module$contents$safevalues$dom$elements$form_setFormAction(el, value);
|
|
3503
|
+
break;
|
|
3504
|
+
case "IFRAME src":
|
|
3505
|
+
module$contents$safevalues$dom$elements$iframe_setIframeSrc(el, value);
|
|
3506
|
+
break;
|
|
3507
|
+
case "IFRAME srcdoc":
|
|
3508
|
+
module$contents$safevalues$dom$elements$iframe_setIframeSrcdoc(el, value);
|
|
3509
|
+
break;
|
|
3510
|
+
case "IFRAME sandbox":
|
|
3511
|
+
throw Error("Can't set 'sandbox' on iframe tags. Use setIframeSrcWithIntent or setIframeSrcdocWithIntent instead");
|
|
3512
|
+
case "INPUT formaction":
|
|
3513
|
+
module$contents$safevalues$dom$elements$input_setInputFormaction(el, value);
|
|
3514
|
+
break;
|
|
3515
|
+
case "LINK href":
|
|
3516
|
+
throw Error("Can't set 'href' attribute on link tags. Use setLinkHrefAndRel instead");
|
|
3517
|
+
case "LINK rel":
|
|
3518
|
+
throw Error("Can't set 'rel' attribute on link tags. Use setLinkHrefAndRel instead");
|
|
3519
|
+
case "OBJECT data":
|
|
3520
|
+
module$contents$safevalues$dom$elements$object_setObjectData(el, value);
|
|
3521
|
+
break;
|
|
3522
|
+
case "SCRIPT src":
|
|
3523
|
+
module$contents$safevalues$dom$elements$script_setScriptSrc(el, value);
|
|
3524
|
+
break;
|
|
3525
|
+
default:
|
|
3526
|
+
if (/^on./.test(attr)) {
|
|
3527
|
+
throw Error('Attribute "' + attr + '" looks like an event handler attribute. Please use a safe alternative like addEventListener instead.');
|
|
3528
|
+
}
|
|
3529
|
+
el.setAttribute(attr, value);
|
|
3530
|
+
}
|
|
3531
|
+
}
|
|
3532
|
+
module$exports$safevalues$dom$elements$element.setElementAttribute = module$contents$safevalues$dom$elements$element_setElementAttribute;
|
|
3533
|
+
var module$exports$safevalues$dom$elements$link = {}, module$contents$safevalues$dom$elements$link_module = module$contents$safevalues$dom$elements$link_module || {id:"third_party/javascript/safevalues/dom/elements/link.closure.js"}, module$contents$safevalues$dom$elements$link_SAFE_URL_REL_VALUES = "alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");
|
|
3534
|
+
function module$contents$safevalues$dom$elements$link_setLinkHrefAndRel(link, url, rel) {
|
|
3535
|
+
if (module$contents$safevalues$internals$resource_url_impl_isResourceUrl(url)) {
|
|
3536
|
+
module$contents$safevalues$dom$elements$link_setLinkWithResourceUrlHrefAndRel(link, url, rel);
|
|
3537
|
+
} else {
|
|
3538
|
+
if (module$contents$safevalues$dom$elements$link_SAFE_URL_REL_VALUES.indexOf(rel) === -1) {
|
|
3539
|
+
throw Error('TrustedResourceUrl href attribute required with rel="' + rel + '"');
|
|
3540
|
+
}
|
|
3541
|
+
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3542
|
+
sanitizedUrl !== void 0 && (link.href = sanitizedUrl, link.rel = rel);
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
module$exports$safevalues$dom$elements$link.setLinkHrefAndRel = module$contents$safevalues$dom$elements$link_setLinkHrefAndRel;
|
|
3546
|
+
function module$contents$safevalues$dom$elements$link_setLinkWithResourceUrlHrefAndRel(link, url, rel) {
|
|
3547
|
+
link.href = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString();
|
|
3548
|
+
link.rel = rel;
|
|
3549
|
+
}
|
|
3550
|
+
module$exports$safevalues$dom$elements$link.setLinkWithResourceUrlHrefAndRel = module$contents$safevalues$dom$elements$link_setLinkWithResourceUrlHrefAndRel;
|
|
3490
3551
|
var module$exports$safevalues$internals$style_sheet_impl = {}, module$contents$safevalues$internals$style_sheet_impl_module = module$contents$safevalues$internals$style_sheet_impl_module || {id:"third_party/javascript/safevalues/internals/style_sheet_impl.closure.js"};
|
|
3491
3552
|
module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet = function(token, value) {
|
|
3492
3553
|
goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
@@ -4122,14 +4183,14 @@ goog.array.concatMap = function(arr, f, opt_obj) {
|
|
|
4122
4183
|
return module$contents$goog$array_concat.apply([], module$contents$goog$array_map(arr, f, opt_obj));
|
|
4123
4184
|
};
|
|
4124
4185
|
goog.debug.errorcontext = {};
|
|
4125
|
-
goog
|
|
4126
|
-
err
|
|
4127
|
-
err
|
|
4128
|
-
}
|
|
4186
|
+
function module$contents$goog$debug$errorcontext_addErrorContext(err, contextKey, contextValue) {
|
|
4187
|
+
err.__closure__error__context__984382 || (err.__closure__error__context__984382 = {});
|
|
4188
|
+
err.__closure__error__context__984382[contextKey] = contextValue;
|
|
4189
|
+
}
|
|
4190
|
+
goog.debug.errorcontext.addErrorContext = module$contents$goog$debug$errorcontext_addErrorContext;
|
|
4129
4191
|
goog.debug.errorcontext.getErrorContext = function(err) {
|
|
4130
|
-
return err
|
|
4192
|
+
return err.__closure__error__context__984382 || {};
|
|
4131
4193
|
};
|
|
4132
|
-
goog.debug.errorcontext.CONTEXT_KEY_ = "__closure__error__context__984382";
|
|
4133
4194
|
goog.debug.LOGGING_ENABLED = goog.DEBUG;
|
|
4134
4195
|
goog.debug.FORCE_SLOPPY_STACKS = !1;
|
|
4135
4196
|
goog.debug.CHECK_FOR_THROWN_EVENT = !1;
|
|
@@ -4289,7 +4350,7 @@ goog.debug.enhanceErrorWithContext = function(err, opt_context) {
|
|
|
4289
4350
|
var error = goog.debug.enhanceError(err);
|
|
4290
4351
|
if (opt_context) {
|
|
4291
4352
|
for (var key in opt_context) {
|
|
4292
|
-
goog
|
|
4353
|
+
module$contents$goog$debug$errorcontext_addErrorContext(error, key, opt_context[key]);
|
|
4293
4354
|
}
|
|
4294
4355
|
}
|
|
4295
4356
|
return error;
|
|
@@ -4726,9 +4787,9 @@ function module$contents$safevalues$dom$globals$dom_parser_domParserParseFromStr
|
|
|
4726
4787
|
module$exports$safevalues$dom$globals$dom_parser.domParserParseFromString = module$contents$safevalues$dom$globals$dom_parser_domParserParseFromString;
|
|
4727
4788
|
var module$exports$safevalues$dom$globals$fetch = {}, module$contents$safevalues$dom$globals$fetch_module = module$contents$safevalues$dom$globals$fetch_module || {id:"third_party/javascript/safevalues/dom/globals/fetch.closure.js"};
|
|
4728
4789
|
module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError = function(url, typeName, contentType) {
|
|
4729
|
-
var $jscomp$tmp$error$
|
|
4730
|
-
this.message = $jscomp$tmp$error$
|
|
4731
|
-
"stack" in $jscomp$tmp$error$
|
|
4790
|
+
var $jscomp$tmp$error$1153895636$25 = Error.call(this, url + " was requested as a " + typeName + ', but the response Content-Type, "' + contentType + " is not appropriate for this type of content.");
|
|
4791
|
+
this.message = $jscomp$tmp$error$1153895636$25.message;
|
|
4792
|
+
"stack" in $jscomp$tmp$error$1153895636$25 && (this.stack = $jscomp$tmp$error$1153895636$25.stack);
|
|
4732
4793
|
this.url = url;
|
|
4733
4794
|
this.typeName = typeName;
|
|
4734
4795
|
this.contentType = contentType;
|
|
@@ -4740,48 +4801,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
|
|
|
4740
4801
|
return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
|
|
4741
4802
|
}
|
|
4742
4803
|
function module$contents$safevalues$dom$globals$fetch_fetchResourceUrl(u, init) {
|
|
4743
|
-
var response, $jscomp$optchain$
|
|
4744
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4745
|
-
if ($jscomp$generator$context$
|
|
4746
|
-
return $jscomp$generator$context$
|
|
4747
|
-
}
|
|
4748
|
-
response = $jscomp$generator$context$
|
|
4749
|
-
mimeType = ($jscomp$optchain$
|
|
4750
|
-
return $jscomp$generator$context$
|
|
4804
|
+
var response, $jscomp$optchain$tmp1153895636$0, $jscomp$optchain$tmp1153895636$1, $jscomp$optchain$tmp1153895636$2, mimeType;
|
|
4805
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$29) {
|
|
4806
|
+
if ($jscomp$generator$context$1153895636$29.nextAddress == 1) {
|
|
4807
|
+
return $jscomp$generator$context$1153895636$29.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
|
|
4808
|
+
}
|
|
4809
|
+
response = $jscomp$generator$context$1153895636$29.yieldResult;
|
|
4810
|
+
mimeType = ($jscomp$optchain$tmp1153895636$0 = response.headers.get("Content-Type")) == null ? void 0 : ($jscomp$optchain$tmp1153895636$1 = $jscomp$optchain$tmp1153895636$0.split(";", 2)) == null ? void 0 : ($jscomp$optchain$tmp1153895636$2 = $jscomp$optchain$tmp1153895636$1[0]) == null ? void 0 : $jscomp$optchain$tmp1153895636$2.toLowerCase();
|
|
4811
|
+
return $jscomp$generator$context$1153895636$29.return({html:function() {
|
|
4751
4812
|
var text;
|
|
4752
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4753
|
-
if ($jscomp$generator$context$
|
|
4813
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$26) {
|
|
4814
|
+
if ($jscomp$generator$context$1153895636$26.nextAddress == 1) {
|
|
4754
4815
|
if (mimeType !== "text/html") {
|
|
4755
4816
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
|
|
4756
4817
|
}
|
|
4757
|
-
return $jscomp$generator$context$
|
|
4818
|
+
return $jscomp$generator$context$1153895636$26.yield(response.text(), 2);
|
|
4758
4819
|
}
|
|
4759
|
-
text = $jscomp$generator$context$
|
|
4760
|
-
return $jscomp$generator$context$
|
|
4820
|
+
text = $jscomp$generator$context$1153895636$26.yieldResult;
|
|
4821
|
+
return $jscomp$generator$context$1153895636$26.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
|
|
4761
4822
|
});
|
|
4762
4823
|
}, script:function() {
|
|
4763
4824
|
var text;
|
|
4764
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4765
|
-
if ($jscomp$generator$context$
|
|
4825
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$27) {
|
|
4826
|
+
if ($jscomp$generator$context$1153895636$27.nextAddress == 1) {
|
|
4766
4827
|
if (mimeType !== "text/javascript" && mimeType !== "application/javascript") {
|
|
4767
4828
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
|
|
4768
4829
|
}
|
|
4769
|
-
return $jscomp$generator$context$
|
|
4830
|
+
return $jscomp$generator$context$1153895636$27.yield(response.text(), 2);
|
|
4770
4831
|
}
|
|
4771
|
-
text = $jscomp$generator$context$
|
|
4772
|
-
return $jscomp$generator$context$
|
|
4832
|
+
text = $jscomp$generator$context$1153895636$27.yieldResult;
|
|
4833
|
+
return $jscomp$generator$context$1153895636$27.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
|
|
4773
4834
|
});
|
|
4774
4835
|
}, styleSheet:function() {
|
|
4775
4836
|
var text;
|
|
4776
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4777
|
-
if ($jscomp$generator$context$
|
|
4837
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$28) {
|
|
4838
|
+
if ($jscomp$generator$context$1153895636$28.nextAddress == 1) {
|
|
4778
4839
|
if (mimeType !== "text/css") {
|
|
4779
4840
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
|
|
4780
4841
|
}
|
|
4781
|
-
return $jscomp$generator$context$
|
|
4842
|
+
return $jscomp$generator$context$1153895636$28.yield(response.text(), 2);
|
|
4782
4843
|
}
|
|
4783
|
-
text = $jscomp$generator$context$
|
|
4784
|
-
return $jscomp$generator$context$
|
|
4844
|
+
text = $jscomp$generator$context$1153895636$28.yieldResult;
|
|
4845
|
+
return $jscomp$generator$context$1153895636$28.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
|
|
4785
4846
|
});
|
|
4786
4847
|
}});
|
|
4787
4848
|
});
|
|
@@ -4848,6 +4909,7 @@ module$exports$safevalues$dom$index.setBaseHref = module$contents$safevalues$dom
|
|
|
4848
4909
|
module$exports$safevalues$dom$index.setButtonFormaction = module$contents$safevalues$dom$elements$button_setButtonFormaction;
|
|
4849
4910
|
module$exports$safevalues$dom$index.buildPrefixedAttributeSetter = module$contents$safevalues$dom$elements$element_buildPrefixedAttributeSetter;
|
|
4850
4911
|
module$exports$safevalues$dom$index.elementInsertAdjacentHtml = module$contents$safevalues$dom$elements$element_elementInsertAdjacentHtml;
|
|
4912
|
+
module$exports$safevalues$dom$index.setElementAttribute = module$contents$safevalues$dom$elements$element_setElementAttribute;
|
|
4851
4913
|
module$exports$safevalues$dom$index.setElementInnerHtml = module$contents$safevalues$dom$elements$element_setElementInnerHtml;
|
|
4852
4914
|
module$exports$safevalues$dom$index.setElementOuterHtml = module$contents$safevalues$dom$elements$element_setElementOuterHtml;
|
|
4853
4915
|
module$exports$safevalues$dom$index.setElementPrefixedAttribute = module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute;
|
|
@@ -4897,6 +4959,7 @@ safevalues.dom.setBaseHref = module$contents$safevalues$dom$elements$base_setBas
|
|
|
4897
4959
|
safevalues.dom.setButtonFormaction = module$contents$safevalues$dom$elements$button_setButtonFormaction;
|
|
4898
4960
|
safevalues.dom.buildPrefixedAttributeSetter = module$contents$safevalues$dom$elements$element_buildPrefixedAttributeSetter;
|
|
4899
4961
|
safevalues.dom.elementInsertAdjacentHtml = module$contents$safevalues$dom$elements$element_elementInsertAdjacentHtml;
|
|
4962
|
+
safevalues.dom.setElementAttribute = module$contents$safevalues$dom$elements$element_setElementAttribute;
|
|
4900
4963
|
safevalues.dom.setElementInnerHtml = module$contents$safevalues$dom$elements$element_setElementInnerHtml;
|
|
4901
4964
|
safevalues.dom.setElementOuterHtml = module$contents$safevalues$dom$elements$element_setElementOuterHtml;
|
|
4902
4965
|
safevalues.dom.setElementPrefixedAttribute = module$contents$safevalues$dom$elements$element_setElementPrefixedAttribute;
|
|
@@ -4981,11 +5044,11 @@ safevalues.restricted.reviewed.urlSafeByReview = module$contents$safevalues$rest
|
|
|
4981
5044
|
goog.string.DETECT_DOUBLE_ESCAPING = !1;
|
|
4982
5045
|
goog.string.FORCE_NON_DOM_HTML_UNESCAPING = !1;
|
|
4983
5046
|
goog.string.Unicode = {NBSP:"\u00a0", ZERO_WIDTH_SPACE:"\u200b"};
|
|
4984
|
-
goog.string.startsWith = goog
|
|
4985
|
-
goog.string.endsWith = goog
|
|
4986
|
-
goog.string.caseInsensitiveStartsWith = goog
|
|
4987
|
-
goog.string.caseInsensitiveEndsWith = goog
|
|
4988
|
-
goog.string.caseInsensitiveEquals = goog
|
|
5047
|
+
goog.string.startsWith = module$contents$goog$string$internal_startsWith;
|
|
5048
|
+
goog.string.endsWith = module$contents$goog$string$internal_endsWith;
|
|
5049
|
+
goog.string.caseInsensitiveStartsWith = module$contents$goog$string$internal_caseInsensitiveStartsWith;
|
|
5050
|
+
goog.string.caseInsensitiveEndsWith = module$contents$goog$string$internal_caseInsensitiveEndsWith;
|
|
5051
|
+
goog.string.caseInsensitiveEquals = module$contents$goog$string$internal_caseInsensitiveEquals;
|
|
4989
5052
|
goog.string.subs = function(str, var_args) {
|
|
4990
5053
|
for (var splitParts = str.split("%s"), returnString = "", subsArguments = Array.prototype.slice.call(arguments, 1); subsArguments.length && splitParts.length > 1;) {
|
|
4991
5054
|
returnString += splitParts.shift() + subsArguments.shift();
|
|
@@ -4995,7 +5058,7 @@ goog.string.subs = function(str, var_args) {
|
|
|
4995
5058
|
goog.string.collapseWhitespace = function(str) {
|
|
4996
5059
|
return str.replace(/[\s\xa0]+/g, " ").replace(/^\s+|\s+$/g, "");
|
|
4997
5060
|
};
|
|
4998
|
-
goog.string.isEmptyOrWhitespace = goog
|
|
5061
|
+
goog.string.isEmptyOrWhitespace = module$contents$goog$string$internal_isEmptyOrWhitespace;
|
|
4999
5062
|
goog.string.isEmptyString = function(str) {
|
|
5000
5063
|
return str.length == 0;
|
|
5001
5064
|
};
|
|
@@ -5037,14 +5100,14 @@ goog.string.normalizeSpaces = function(str) {
|
|
|
5037
5100
|
goog.string.collapseBreakingSpaces = function(str) {
|
|
5038
5101
|
return str.replace(/[\t\r\n ]+/g, " ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g, "");
|
|
5039
5102
|
};
|
|
5040
|
-
goog.string.trim = goog
|
|
5103
|
+
goog.string.trim = module$contents$goog$string$internal_trim;
|
|
5041
5104
|
goog.string.trimLeft = function(str) {
|
|
5042
5105
|
return str.replace(/^[\s\xa0]+/, "");
|
|
5043
5106
|
};
|
|
5044
5107
|
goog.string.trimRight = function(str) {
|
|
5045
5108
|
return str.replace(/[\s\xa0]+$/, "");
|
|
5046
5109
|
};
|
|
5047
|
-
goog.string.caseInsensitiveCompare = goog
|
|
5110
|
+
goog.string.caseInsensitiveCompare = module$contents$goog$string$internal_caseInsensitiveCompare;
|
|
5048
5111
|
goog.string.numberAwareCompare_ = function(str1, str2, tokenizerRegExp) {
|
|
5049
5112
|
if (str1 == str2) {
|
|
5050
5113
|
return 0;
|
|
@@ -5083,9 +5146,9 @@ goog.string.urlEncode = function(str) {
|
|
|
5083
5146
|
goog.string.urlDecode = function(str) {
|
|
5084
5147
|
return decodeURIComponent(str.replace(/\+/g, " "));
|
|
5085
5148
|
};
|
|
5086
|
-
goog.string.newLineToBr = goog
|
|
5149
|
+
goog.string.newLineToBr = module$contents$goog$string$internal_newLineToBr;
|
|
5087
5150
|
goog.string.htmlEscape = function(str, opt_isLikelyToContainHtmlChars) {
|
|
5088
|
-
str = goog
|
|
5151
|
+
str = module$contents$goog$string$internal_htmlEscape(str, opt_isLikelyToContainHtmlChars);
|
|
5089
5152
|
goog.string.DETECT_DOUBLE_ESCAPING && (str = str.replace(goog.string.E_RE_, "e"));
|
|
5090
5153
|
return str;
|
|
5091
5154
|
};
|
|
@@ -5206,8 +5269,8 @@ goog.string.escapeChar = function(c) {
|
|
|
5206
5269
|
}
|
|
5207
5270
|
return goog.string.jsEscapeCache_[c] = rv;
|
|
5208
5271
|
};
|
|
5209
|
-
goog.string.contains = goog
|
|
5210
|
-
goog.string.caseInsensitiveContains = goog
|
|
5272
|
+
goog.string.contains = module$contents$goog$string$internal_contains;
|
|
5273
|
+
goog.string.caseInsensitiveContains = module$contents$goog$string$internal_caseInsensitiveContains;
|
|
5211
5274
|
goog.string.countOf = function(s, ss) {
|
|
5212
5275
|
return s && ss ? s.split(ss).length - 1 : 0;
|
|
5213
5276
|
};
|
|
@@ -5251,7 +5314,7 @@ goog.string.makeSafe = function(obj) {
|
|
|
5251
5314
|
goog.string.getRandomString = function() {
|
|
5252
5315
|
return Math.floor(Math.random() * 2147483648).toString(36) + Math.abs(Math.floor(Math.random() * 2147483648) ^ goog.now()).toString(36);
|
|
5253
5316
|
};
|
|
5254
|
-
goog.string.compareVersions = goog
|
|
5317
|
+
goog.string.compareVersions = module$contents$goog$string$internal_compareVersions;
|
|
5255
5318
|
goog.string.hashCode = function(str) {
|
|
5256
5319
|
for (var result = 0, i = 0; i < str.length; ++i) {
|
|
5257
5320
|
result = 31 * result + str.charCodeAt(i) >>> 0;
|
|
@@ -6253,8 +6316,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
6253
6316
|
}
|
|
6254
6317
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
6255
6318
|
function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
|
|
6256
|
-
for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$
|
|
6257
|
-
var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6319
|
+
for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$m125199259$0$ = $jscomp$iter$29.next(); !$jscomp$key$m125199259$0$.done; $jscomp$key$m125199259$0$ = $jscomp$iter$29.next()) {
|
|
6320
|
+
var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$m125199259$0$.value), jsName__tsickle_destructured_1 = $jscomp$destructuring$var3.next().value, urlQueryParamName__tsickle_destructured_2 = $jscomp$destructuring$var3.next().value, jsName = jsName__tsickle_destructured_1, urlQueryParamName = urlQueryParamName__tsickle_destructured_2;
|
|
6258
6321
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
6259
6322
|
}
|
|
6260
6323
|
return urlQueryParams;
|
|
@@ -6265,8 +6328,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params)
|
|
|
6265
6328
|
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1, hasSafeContentType = !1;
|
|
6266
6329
|
if (params.headers) {
|
|
6267
6330
|
hasContentType = params.headers["Content-Type"] != null;
|
|
6268
|
-
for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$
|
|
6269
|
-
var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6331
|
+
for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$m125199259$1$ = $jscomp$iter$30.next(); !$jscomp$key$m125199259$1$.done; $jscomp$key$m125199259$1$ = $jscomp$iter$30.next()) {
|
|
6332
|
+
var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$m125199259$1$.value), key__tsickle_destructured_3 = $jscomp$destructuring$var5.next().value, value__tsickle_destructured_4 = $jscomp$destructuring$var5.next().value, key = key__tsickle_destructured_3, value = value__tsickle_destructured_4;
|
|
6270
6333
|
module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes(key) ? safeHeaders[key] = value : key === "Content-Type" && module$contents$eeapiclient$request_params_simpleCorsAllowedContentTypes.includes(value) ? (safeHeaders[key] = value, hasSafeContentType = !0) : (unsafeHeaders[key] = value, hasUnsafeHeaders = !0);
|
|
6271
6334
|
}
|
|
6272
6335
|
}
|
|
@@ -6306,9 +6369,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
|
|
|
6306
6369
|
return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
|
|
6307
6370
|
};
|
|
6308
6371
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
|
|
6309
|
-
var $jscomp$this$
|
|
6372
|
+
var $jscomp$this$m296226325$4 = this, responseCtor = requestParams.responseCtor || void 0;
|
|
6310
6373
|
return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
|
|
6311
|
-
return $jscomp$this$
|
|
6374
|
+
return $jscomp$this$m296226325$4.requestService.send(params, responseCtor);
|
|
6312
6375
|
}));
|
|
6313
6376
|
};
|
|
6314
6377
|
var module$exports$eeapiclient$promise_request_service = {}, module$contents$eeapiclient$promise_request_service_module = module$contents$eeapiclient$promise_request_service_module || {id:"javascript/typescript/contrib/apiclient/request_service/promise_request_service.closure.js"};
|
|
@@ -6536,14 +6599,14 @@ function module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand(str) {
|
|
|
6536
6599
|
var data = module$contents$goog$labs$userAgent$util_getUserAgentData();
|
|
6537
6600
|
return data ? data.brands.some(function($jscomp$destructuring$var6) {
|
|
6538
6601
|
var brand;
|
|
6539
|
-
return (brand = $jscomp$destructuring$var6.brand) &&
|
|
6602
|
+
return (brand = $jscomp$destructuring$var6.brand) && module$contents$goog$string$internal_contains(brand, str);
|
|
6540
6603
|
}) : !1;
|
|
6541
6604
|
}
|
|
6542
6605
|
function module$contents$goog$labs$userAgent$util_matchUserAgent(str) {
|
|
6543
|
-
return
|
|
6606
|
+
return module$contents$goog$string$internal_contains(module$contents$goog$labs$userAgent$util_getUserAgent(), str);
|
|
6544
6607
|
}
|
|
6545
6608
|
function module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase(str) {
|
|
6546
|
-
return
|
|
6609
|
+
return module$contents$goog$string$internal_caseInsensitiveContains(module$contents$goog$labs$userAgent$util_getUserAgent(), str);
|
|
6547
6610
|
}
|
|
6548
6611
|
function module$contents$goog$labs$userAgent$util_extractVersionTuples(userAgent) {
|
|
6549
6612
|
for (var versionRegExp = RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?", "g"), data = [], match; match = versionRegExp.exec(userAgent);) {
|
|
@@ -6625,7 +6688,7 @@ module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version.prototyp
|
|
|
6625
6688
|
return this.versionString_;
|
|
6626
6689
|
};
|
|
6627
6690
|
module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version.prototype.isAtLeast = function(version) {
|
|
6628
|
-
return
|
|
6691
|
+
return module$contents$goog$string$internal_compareVersions(this.versionString_, version) >= 0;
|
|
6629
6692
|
};
|
|
6630
6693
|
var module$exports$goog$labs$userAgent$highEntropy$highEntropyData = {};
|
|
6631
6694
|
module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList = new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue("fullVersionList");
|
|
@@ -6739,7 +6802,7 @@ function module$contents$goog$labs$userAgent$browser_getVersion() {
|
|
|
6739
6802
|
}
|
|
6740
6803
|
goog.labs.userAgent.browser.getVersion = module$contents$goog$labs$userAgent$browser_getVersion;
|
|
6741
6804
|
goog.labs.userAgent.browser.isVersionOrHigher = function(version) {
|
|
6742
|
-
return
|
|
6805
|
+
return module$contents$goog$string$internal_compareVersions(module$contents$goog$labs$userAgent$browser_getVersion(), version) >= 0;
|
|
6743
6806
|
};
|
|
6744
6807
|
function module$contents$goog$labs$userAgent$browser_getIEVersion(userAgent) {
|
|
6745
6808
|
var rv = /rv: *([\d\.]*)/.exec(userAgent);
|
|
@@ -6973,7 +7036,7 @@ goog.labs.userAgent.engine.isPresto = function() {
|
|
|
6973
7036
|
};
|
|
6974
7037
|
goog.labs.userAgent.engine.isTrident = module$contents$goog$labs$userAgent$engine_isTrident;
|
|
6975
7038
|
goog.labs.userAgent.engine.isVersionOrHigher = function(version) {
|
|
6976
|
-
return goog
|
|
7039
|
+
return module$contents$goog$string$internal_compareVersions(module$contents$goog$labs$userAgent$engine_getVersion(), version) >= 0;
|
|
6977
7040
|
};
|
|
6978
7041
|
goog.labs.userAgent.engine.isWebKit = module$contents$goog$labs$userAgent$engine_isWebKit;
|
|
6979
7042
|
goog.labs.userAgent.platform = {};
|
|
@@ -7087,7 +7150,7 @@ goog.labs.userAgent.platform.isKaiOS = module$contents$goog$labs$userAgent$platf
|
|
|
7087
7150
|
goog.labs.userAgent.platform.isLinux = module$contents$goog$labs$userAgent$platform_isLinux;
|
|
7088
7151
|
goog.labs.userAgent.platform.isMacintosh = module$contents$goog$labs$userAgent$platform_isMacintosh;
|
|
7089
7152
|
goog.labs.userAgent.platform.isVersionOrHigher = function(version) {
|
|
7090
|
-
return goog
|
|
7153
|
+
return module$contents$goog$string$internal_compareVersions(module$contents$goog$labs$userAgent$platform_getVersion(), version) >= 0;
|
|
7091
7154
|
};
|
|
7092
7155
|
goog.labs.userAgent.platform.isWindows = module$contents$goog$labs$userAgent$platform_isWindows;
|
|
7093
7156
|
goog.labs.userAgent.platform.version = module$contents$goog$labs$userAgent$platform_version;
|
|
@@ -7205,12 +7268,12 @@ goog.userAgent.getDocumentMode_ = function() {
|
|
|
7205
7268
|
};
|
|
7206
7269
|
goog.userAgent.VERSION = goog.userAgent.determineVersion_();
|
|
7207
7270
|
goog.userAgent.compare = function(v1, v2) {
|
|
7208
|
-
return goog
|
|
7271
|
+
return module$contents$goog$string$internal_compareVersions(v1, v2);
|
|
7209
7272
|
};
|
|
7210
7273
|
goog.userAgent.isVersionOrHigherCache_ = {};
|
|
7211
7274
|
goog.userAgent.isVersionOrHigher = function(version) {
|
|
7212
7275
|
return goog.userAgent.ASSUME_ANY_VERSION || goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_, version, function() {
|
|
7213
|
-
return goog
|
|
7276
|
+
return module$contents$goog$string$internal_compareVersions(goog.userAgent.VERSION, version) >= 0;
|
|
7214
7277
|
});
|
|
7215
7278
|
};
|
|
7216
7279
|
goog.userAgent.isDocumentModeOrHigher = function(documentMode) {
|
|
@@ -7223,18 +7286,19 @@ goog.userAgent.DOCUMENT_MODE = function() {
|
|
|
7223
7286
|
}
|
|
7224
7287
|
}();
|
|
7225
7288
|
goog.events.eventTypeHelpers = {};
|
|
7226
|
-
goog
|
|
7289
|
+
function module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName(eventName) {
|
|
7227
7290
|
return goog.userAgent.WEBKIT ? "webkit" + eventName : eventName.toLowerCase();
|
|
7228
|
-
}
|
|
7291
|
+
}
|
|
7229
7292
|
goog.events.eventTypeHelpers.getPointerFallbackEventName = function(pointerEventName, fallbackEventName) {
|
|
7230
7293
|
return goog.events.BrowserFeature.POINTER_EVENTS ? pointerEventName : fallbackEventName;
|
|
7231
7294
|
};
|
|
7295
|
+
goog.events.eventTypeHelpers.getVendorPrefixedName = module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName;
|
|
7232
7296
|
goog.events.EventType = {CLICK:"click", RIGHTCLICK:"rightclick", DBLCLICK:"dblclick", AUXCLICK:"auxclick", MOUSEDOWN:"mousedown", MOUSEUP:"mouseup", MOUSEOVER:"mouseover", MOUSEOUT:"mouseout", MOUSEMOVE:"mousemove", MOUSEENTER:"mouseenter", MOUSELEAVE:"mouseleave", MOUSECANCEL:"mousecancel", SELECTIONCHANGE:"selectionchange", SELECTSTART:"selectstart", WHEEL:"wheel", KEYPRESS:"keypress", KEYDOWN:"keydown", KEYUP:"keyup", BLUR:"blur", FOCUS:"focus", DEACTIVATE:"deactivate", FOCUSIN:"focusin", FOCUSOUT:"focusout",
|
|
7233
7297
|
CHANGE:"change", RESET:"reset", SELECT:"select", SUBMIT:"submit", INPUT:"input", PROPERTYCHANGE:"propertychange", DRAGSTART:"dragstart", DRAG:"drag", DRAGENTER:"dragenter", DRAGOVER:"dragover", DRAGLEAVE:"dragleave", DROP:"drop", DRAGEND:"dragend", TOUCHSTART:"touchstart", TOUCHMOVE:"touchmove", TOUCHEND:"touchend", TOUCHCANCEL:"touchcancel", BEFOREUNLOAD:"beforeunload", CONSOLEMESSAGE:"consolemessage", CONTEXTMENU:"contextmenu", DEVICECHANGE:"devicechange", DEVICEMOTION:"devicemotion", DEVICEORIENTATION:"deviceorientation",
|
|
7234
7298
|
DOMCONTENTLOADED:"DOMContentLoaded", ERROR:"error", HELP:"help", LOAD:"load", LOSECAPTURE:"losecapture", ORIENTATIONCHANGE:"orientationchange", READYSTATECHANGE:"readystatechange", RESIZE:"resize", SCROLL:"scroll", UNLOAD:"unload", CANPLAY:"canplay", CANPLAYTHROUGH:"canplaythrough", DURATIONCHANGE:"durationchange", EMPTIED:"emptied", ENDED:"ended", LOADEDDATA:"loadeddata", LOADEDMETADATA:"loadedmetadata", PAUSE:"pause", PLAY:"play", PLAYING:"playing", PROGRESS:"progress", RATECHANGE:"ratechange",
|
|
7235
7299
|
SEEKED:"seeked", SEEKING:"seeking", STALLED:"stalled", SUSPEND:"suspend", TIMEUPDATE:"timeupdate", VOLUMECHANGE:"volumechange", WAITING:"waiting", SOURCEOPEN:"sourceopen", SOURCEENDED:"sourceended", SOURCECLOSED:"sourceclosed", ABORT:"abort", UPDATE:"update", UPDATESTART:"updatestart", UPDATEEND:"updateend", HASHCHANGE:"hashchange", PAGEHIDE:"pagehide", PAGESHOW:"pageshow", POPSTATE:"popstate", COPY:"copy", PASTE:"paste", CUT:"cut", BEFORECOPY:"beforecopy", BEFORECUT:"beforecut", BEFOREPASTE:"beforepaste",
|
|
7236
|
-
ONLINE:"online", OFFLINE:"offline", MESSAGE:"message", CONNECT:"connect", INSTALL:"install", ACTIVATE:"activate", FETCH:"fetch", FOREIGNFETCH:"foreignfetch", MESSAGEERROR:"messageerror", STATECHANGE:"statechange", UPDATEFOUND:"updatefound", CONTROLLERCHANGE:"controllerchange", ANIMATIONSTART:goog
|
|
7237
|
-
TRANSITIONEND:goog
|
|
7300
|
+
ONLINE:"online", OFFLINE:"offline", MESSAGE:"message", CONNECT:"connect", INSTALL:"install", ACTIVATE:"activate", FETCH:"fetch", FOREIGNFETCH:"foreignfetch", MESSAGEERROR:"messageerror", STATECHANGE:"statechange", UPDATEFOUND:"updatefound", CONTROLLERCHANGE:"controllerchange", ANIMATIONSTART:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName("AnimationStart"), ANIMATIONEND:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName("AnimationEnd"), ANIMATIONITERATION:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName("AnimationIteration"),
|
|
7301
|
+
TRANSITIONEND:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName("TransitionEnd"), POINTERDOWN:"pointerdown", POINTERUP:"pointerup", POINTERCANCEL:"pointercancel", POINTERMOVE:"pointermove", POINTEROVER:"pointerover", POINTEROUT:"pointerout", POINTERENTER:"pointerenter", POINTERLEAVE:"pointerleave", GOTPOINTERCAPTURE:"gotpointercapture", LOSTPOINTERCAPTURE:"lostpointercapture", MSGESTURECHANGE:"MSGestureChange", MSGESTUREEND:"MSGestureEnd", MSGESTUREHOLD:"MSGestureHold", MSGESTURESTART:"MSGestureStart",
|
|
7238
7302
|
MSGESTURETAP:"MSGestureTap", MSGOTPOINTERCAPTURE:"MSGotPointerCapture", MSINERTIASTART:"MSInertiaStart", MSLOSTPOINTERCAPTURE:"MSLostPointerCapture", MSPOINTERCANCEL:"MSPointerCancel", MSPOINTERDOWN:"MSPointerDown", MSPOINTERENTER:"MSPointerEnter", MSPOINTERHOVER:"MSPointerHover", MSPOINTERLEAVE:"MSPointerLeave", MSPOINTERMOVE:"MSPointerMove", MSPOINTEROUT:"MSPointerOut", MSPOINTEROVER:"MSPointerOver", MSPOINTERUP:"MSPointerUp", TEXT:"text", TEXTINPUT:"textInput", COMPOSITIONSTART:"compositionstart",
|
|
7239
7303
|
COMPOSITIONUPDATE:"compositionupdate", COMPOSITIONEND:"compositionend", BEFOREINPUT:"beforeinput", FULLSCREENCHANGE:"fullscreenchange", WEBKITBEGINFULLSCREEN:"webkitbeginfullscreen", WEBKITENDFULLSCREEN:"webkitendfullscreen", EXIT:"exit", LOADABORT:"loadabort", LOADCOMMIT:"loadcommit", LOADREDIRECT:"loadredirect", LOADSTART:"loadstart", LOADSTOP:"loadstop", RESPONSIVE:"responsive", SIZECHANGED:"sizechanged", UNRESPONSIVE:"unresponsive", VISIBILITYCHANGE:"visibilitychange", STORAGE:"storage", BEFOREPRINT:"beforeprint",
|
|
7240
7304
|
AFTERPRINT:"afterprint", BEFOREINSTALLPROMPT:"beforeinstallprompt", APPINSTALLED:"appinstalled", CANCEL:"cancel", FINISH:"finish", REMOVE:"remove"};
|
|
@@ -7356,25 +7420,25 @@ goog.events.Listener.prototype.markAsRemoved = function() {
|
|
|
7356
7420
|
this.removed = !0;
|
|
7357
7421
|
this.handler = this.src = this.proxy = this.listener = null;
|
|
7358
7422
|
};
|
|
7359
|
-
goog
|
|
7423
|
+
function module$contents$goog$events$ListenerMap_ListenerMap(src) {
|
|
7360
7424
|
this.src = src;
|
|
7361
7425
|
this.listeners = {};
|
|
7362
7426
|
this.typeCount_ = 0;
|
|
7363
|
-
}
|
|
7364
|
-
goog
|
|
7427
|
+
}
|
|
7428
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.getTypeCount = function() {
|
|
7365
7429
|
return this.typeCount_;
|
|
7366
7430
|
};
|
|
7367
|
-
goog
|
|
7431
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.getListenerCount = function() {
|
|
7368
7432
|
var count = 0, type;
|
|
7369
7433
|
for (type in this.listeners) {
|
|
7370
7434
|
count += this.listeners[type].length;
|
|
7371
7435
|
}
|
|
7372
7436
|
return count;
|
|
7373
7437
|
};
|
|
7374
|
-
goog
|
|
7438
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.add = function(type, listener, callOnce, opt_useCapture, opt_listenerScope) {
|
|
7375
7439
|
var typeStr = type.toString(), listenerArray = this.listeners[typeStr];
|
|
7376
7440
|
listenerArray || (listenerArray = this.listeners[typeStr] = [], this.typeCount_++);
|
|
7377
|
-
var index = goog
|
|
7441
|
+
var index = module$contents$goog$events$ListenerMap_ListenerMap.findListenerIndex_(listenerArray, listener, opt_useCapture, opt_listenerScope);
|
|
7378
7442
|
if (index > -1) {
|
|
7379
7443
|
var listenerObj = listenerArray[index];
|
|
7380
7444
|
callOnce || (listenerObj.callOnce = !1);
|
|
@@ -7383,15 +7447,15 @@ goog.events.ListenerMap.prototype.add = function(type, listener, callOnce, opt_u
|
|
|
7383
7447
|
}
|
|
7384
7448
|
return listenerObj;
|
|
7385
7449
|
};
|
|
7386
|
-
goog
|
|
7450
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.remove = function(type, listener, opt_useCapture, opt_listenerScope) {
|
|
7387
7451
|
var typeStr = type.toString();
|
|
7388
7452
|
if (!(typeStr in this.listeners)) {
|
|
7389
7453
|
return !1;
|
|
7390
7454
|
}
|
|
7391
|
-
var listenerArray = this.listeners[typeStr], index = goog
|
|
7455
|
+
var listenerArray = this.listeners[typeStr], index = module$contents$goog$events$ListenerMap_ListenerMap.findListenerIndex_(listenerArray, listener, opt_useCapture, opt_listenerScope);
|
|
7392
7456
|
return index > -1 ? (listenerArray[index].markAsRemoved(), module$contents$goog$array_removeAt(listenerArray, index), listenerArray.length == 0 && (delete this.listeners[typeStr], this.typeCount_--), !0) : !1;
|
|
7393
7457
|
};
|
|
7394
|
-
goog
|
|
7458
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.removeByKey = function(listener) {
|
|
7395
7459
|
var type = listener.type;
|
|
7396
7460
|
if (!(type in this.listeners)) {
|
|
7397
7461
|
return !1;
|
|
@@ -7400,7 +7464,7 @@ goog.events.ListenerMap.prototype.removeByKey = function(listener) {
|
|
|
7400
7464
|
removed && (listener.markAsRemoved(), this.listeners[type].length == 0 && (delete this.listeners[type], this.typeCount_--));
|
|
7401
7465
|
return removed;
|
|
7402
7466
|
};
|
|
7403
|
-
goog
|
|
7467
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.removeAll = function(opt_type) {
|
|
7404
7468
|
var typeStr = opt_type && opt_type.toString(), count = 0, type;
|
|
7405
7469
|
for (type in this.listeners) {
|
|
7406
7470
|
if (!typeStr || type == typeStr) {
|
|
@@ -7413,7 +7477,7 @@ goog.events.ListenerMap.prototype.removeAll = function(opt_type) {
|
|
|
7413
7477
|
}
|
|
7414
7478
|
return count;
|
|
7415
7479
|
};
|
|
7416
|
-
goog
|
|
7480
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.getListeners = function(type, capture) {
|
|
7417
7481
|
var listenerArray = this.listeners[type.toString()], rv = [];
|
|
7418
7482
|
if (listenerArray) {
|
|
7419
7483
|
for (var i = 0; i < listenerArray.length; ++i) {
|
|
@@ -7423,12 +7487,12 @@ goog.events.ListenerMap.prototype.getListeners = function(type, capture) {
|
|
|
7423
7487
|
}
|
|
7424
7488
|
return rv;
|
|
7425
7489
|
};
|
|
7426
|
-
goog
|
|
7490
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.getListener = function(type, listener, capture, opt_listenerScope) {
|
|
7427
7491
|
var listenerArray = this.listeners[type.toString()], i = -1;
|
|
7428
|
-
listenerArray && (i = goog
|
|
7492
|
+
listenerArray && (i = module$contents$goog$events$ListenerMap_ListenerMap.findListenerIndex_(listenerArray, listener, capture, opt_listenerScope));
|
|
7429
7493
|
return i > -1 ? listenerArray[i] : null;
|
|
7430
7494
|
};
|
|
7431
|
-
goog
|
|
7495
|
+
module$contents$goog$events$ListenerMap_ListenerMap.prototype.hasListener = function(opt_type, opt_capture) {
|
|
7432
7496
|
var hasType = opt_type !== void 0, typeStr = hasType ? opt_type.toString() : "", hasCapture = opt_capture !== void 0;
|
|
7433
7497
|
return module$contents$goog$object_some(this.listeners, function(listenerArray, type) {
|
|
7434
7498
|
for (var i = 0; i < listenerArray.length; ++i) {
|
|
@@ -7439,7 +7503,7 @@ goog.events.ListenerMap.prototype.hasListener = function(opt_type, opt_capture)
|
|
|
7439
7503
|
return !1;
|
|
7440
7504
|
});
|
|
7441
7505
|
};
|
|
7442
|
-
goog
|
|
7506
|
+
module$contents$goog$events$ListenerMap_ListenerMap.findListenerIndex_ = function(listenerArray, listener, opt_useCapture, opt_listenerScope) {
|
|
7443
7507
|
for (var i = 0; i < listenerArray.length; ++i) {
|
|
7444
7508
|
var listenerObj = listenerArray[i];
|
|
7445
7509
|
if (!listenerObj.removed && listenerObj.listener == listener && listenerObj.capture == !!opt_useCapture && listenerObj.handler == opt_listenerScope) {
|
|
@@ -7448,8 +7512,8 @@ goog.events.ListenerMap.findListenerIndex_ = function(listenerArray, listener, o
|
|
|
7448
7512
|
}
|
|
7449
7513
|
return -1;
|
|
7450
7514
|
};
|
|
7515
|
+
goog.events.ListenerMap = module$contents$goog$events$ListenerMap_ListenerMap;
|
|
7451
7516
|
goog.events.Key = {};
|
|
7452
|
-
goog.events.ListenableType = {};
|
|
7453
7517
|
goog.events.LISTENER_MAP_PROP_ = "closure_lm_" + (Math.random() * 1E6 | 0);
|
|
7454
7518
|
goog.events.onString_ = "on";
|
|
7455
7519
|
goog.events.onStringMap_ = {};
|
|
@@ -7473,7 +7537,7 @@ goog.events.listen_ = function(src, type, listener, callOnce, opt_options, opt_h
|
|
|
7473
7537
|
throw Error("Invalid event type");
|
|
7474
7538
|
}
|
|
7475
7539
|
var capture = goog.isObject(opt_options) ? !!opt_options.capture : !!opt_options, listenerMap = goog.events.getListenerMap_(src);
|
|
7476
|
-
listenerMap || (src[goog.events.LISTENER_MAP_PROP_] = listenerMap = new goog
|
|
7540
|
+
listenerMap || (src[goog.events.LISTENER_MAP_PROP_] = listenerMap = new module$contents$goog$events$ListenerMap_ListenerMap(src));
|
|
7477
7541
|
var listenerObj = listenerMap.add(type, listener, callOnce, capture, opt_handler);
|
|
7478
7542
|
if (listenerObj.proxy) {
|
|
7479
7543
|
return listenerObj;
|
|
@@ -7676,7 +7740,7 @@ goog.events.getUniqueId = function(identifier) {
|
|
|
7676
7740
|
};
|
|
7677
7741
|
goog.events.getListenerMap_ = function(src) {
|
|
7678
7742
|
var listenerMap = src[goog.events.LISTENER_MAP_PROP_];
|
|
7679
|
-
return listenerMap instanceof goog
|
|
7743
|
+
return listenerMap instanceof module$contents$goog$events$ListenerMap_ListenerMap ? listenerMap : null;
|
|
7680
7744
|
};
|
|
7681
7745
|
goog.events.LISTENER_WRAPPER_PROP_ = "__closure_events_fn_" + (Math.random() * 1E9 >>> 0);
|
|
7682
7746
|
goog.events.wrapListener = function(listener) {
|
|
@@ -7695,7 +7759,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
|
|
|
7695
7759
|
});
|
|
7696
7760
|
goog.events.EventTarget = function() {
|
|
7697
7761
|
goog.Disposable.call(this);
|
|
7698
|
-
this.eventTargetListeners_ = new goog
|
|
7762
|
+
this.eventTargetListeners_ = new module$contents$goog$events$ListenerMap_ListenerMap(this);
|
|
7699
7763
|
this.actualEventTarget_ = this;
|
|
7700
7764
|
this.parentEventTarget_ = null;
|
|
7701
7765
|
};
|
|
@@ -8170,7 +8234,6 @@ goog.math.safeCeil = function(num, opt_epsilon) {
|
|
|
8170
8234
|
return Math.ceil(num - (opt_epsilon || 2E-15));
|
|
8171
8235
|
};
|
|
8172
8236
|
goog.iter = {};
|
|
8173
|
-
goog.iter.Iterable = {};
|
|
8174
8237
|
goog.iter.Iterator = function() {
|
|
8175
8238
|
};
|
|
8176
8239
|
goog.iter.Iterator.prototype.next = function() {
|
|
@@ -14723,6 +14786,7 @@ goog.async.nextTick = function(callback, opt_context) {
|
|
|
14723
14786
|
cb = goog.async.nextTick.wrapCallback_(cb);
|
|
14724
14787
|
goog.async.nextTick.USE_SET_TIMEOUT ? setTimeout(cb, 0) : (cb = module$exports$common$async$context$propagate.propagateAsyncContext(cb), goog.DEBUG && typeof goog.global.setImmediate === "function" && goog.async.nextTick.useSetImmediate_() ? goog.global.setImmediate(cb) : (goog.async.nextTick.nextTickImpl || (goog.async.nextTick.nextTickImpl = goog.async.nextTick.getNextTickImpl_()), goog.async.nextTick.nextTickImpl(cb)));
|
|
14725
14788
|
};
|
|
14789
|
+
goog.async.nextTick.propagateAsyncContext_ = module$exports$common$async$context$propagate.propagateAsyncContext;
|
|
14726
14790
|
goog.async.nextTick.USE_SET_TIMEOUT = !1;
|
|
14727
14791
|
goog.async.nextTick.useSetImmediate_ = function() {
|
|
14728
14792
|
return goog.global.Window && goog.global.Window.prototype && goog.global.Window.prototype.setImmediate == goog.global.setImmediate ? !1 : !0;
|
|
@@ -15066,6 +15130,20 @@ goog.Promise.prototype.thenAlways = function(onSettled, opt_context) {
|
|
|
15066
15130
|
this.addCallbackEntry_(entry);
|
|
15067
15131
|
return this;
|
|
15068
15132
|
};
|
|
15133
|
+
goog.Promise.prototype.finally = function(onSettled) {
|
|
15134
|
+
var $jscomp$this$m1061044379$32 = this;
|
|
15135
|
+
goog.Promise.LONG_STACK_TRACES && this.addStackTrace_(Error("finally"));
|
|
15136
|
+
onSettled = module$exports$common$async$context$propagate.propagateAsyncContext(onSettled);
|
|
15137
|
+
return new Promise(function(resolve, reject) {
|
|
15138
|
+
$jscomp$this$m1061044379$32.thenVoid(function(value) {
|
|
15139
|
+
onSettled();
|
|
15140
|
+
resolve(value);
|
|
15141
|
+
}, function(cause) {
|
|
15142
|
+
onSettled();
|
|
15143
|
+
reject(cause);
|
|
15144
|
+
});
|
|
15145
|
+
});
|
|
15146
|
+
};
|
|
15069
15147
|
goog.Promise.prototype.thenCatch = function(onRejected, opt_context) {
|
|
15070
15148
|
goog.Promise.LONG_STACK_TRACES && this.addStackTrace_(Error("thenCatch"));
|
|
15071
15149
|
return this.addChildPromise_(null, module$exports$common$async$context$propagate.propagateAsyncContext(onRejected), opt_context);
|
|
@@ -15791,7 +15869,7 @@ goog.string.Const.TYPE_MARKER_ = {};
|
|
|
15791
15869
|
goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ = {};
|
|
15792
15870
|
goog.string.Const.EMPTY = goog.string.Const.from("");
|
|
15793
15871
|
var module$exports$safevalues$builders$sensitive_attributes = {}, module$contents$safevalues$builders$sensitive_attributes_module = module$contents$safevalues$builders$sensitive_attributes_module || {id:"third_party/javascript/safevalues/builders/sensitive_attributes.closure.js"};
|
|
15794
|
-
module$exports$safevalues$builders$sensitive_attributes.SECURITY_SENSITIVE_ATTRIBUTES = "src srcdoc codebase data href rel action formaction sandbox
|
|
15872
|
+
module$exports$safevalues$builders$sensitive_attributes.SECURITY_SENSITIVE_ATTRIBUTES = "src srcdoc codebase data href rel action formaction sandbox icon".split(" ");
|
|
15795
15873
|
var module$contents$safevalues$builders$attribute_builders_module = module$contents$safevalues$builders$attribute_builders_module || {id:"third_party/javascript/safevalues/builders/attribute_builders.closure.js"};
|
|
15796
15874
|
function module$contents$safevalues$builders$attribute_builders_safeAttrPrefix(templ) {
|
|
15797
15875
|
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templ, 0);
|
|
@@ -16036,8 +16114,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
|
16036
16114
|
this.replacements = new Map();
|
|
16037
16115
|
};
|
|
16038
16116
|
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
16039
|
-
var $jscomp$this$
|
|
16040
|
-
return $jscomp$this$
|
|
16117
|
+
var $jscomp$this$1018007701$5 = this, openedTags = [], marker = (0,module$exports$safevalues$builders$html_builders.htmlEscape)("_safevalues_format_marker_:").toString(), html = (0,module$exports$safevalues$builders$html_builders.htmlEscape)(format).toString().replace(new RegExp("\\{" + marker + "[\\w&#;]+\\}", "g"), function(match) {
|
|
16118
|
+
return $jscomp$this$1018007701$5.replaceFormattingString(openedTags, match);
|
|
16041
16119
|
});
|
|
16042
16120
|
if (openedTags.length !== 0) {
|
|
16043
16121
|
if (goog.DEBUG) {
|
|
@@ -16255,8 +16333,8 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16255
16333
|
if (Array.isArray(token)) {
|
|
16256
16334
|
tokens.push.apply(tokens, (0,$jscomp.arrayFromIterable)(token));
|
|
16257
16335
|
} else {
|
|
16258
|
-
var $jscomp$optchain$
|
|
16259
|
-
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$
|
|
16336
|
+
var $jscomp$optchain$tmpm282935782$0 = void 0;
|
|
16337
|
+
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$tmpm282935782$0 = lastToken) == null ? void 0 : $jscomp$optchain$tmpm282935782$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE) {
|
|
16260
16338
|
tokens.push(token);
|
|
16261
16339
|
if (token.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF) {
|
|
16262
16340
|
return tokens;
|
|
@@ -16502,9 +16580,9 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16502
16580
|
repr:repr}) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER, repr:repr};
|
|
16503
16581
|
};
|
|
16504
16582
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputsPointsAreWhitespace = function() {
|
|
16505
|
-
var $jscomp$this$
|
|
16583
|
+
var $jscomp$this$m282935782$26 = this;
|
|
16506
16584
|
return this.nextTwoInputCodePoints().every(function(c) {
|
|
16507
|
-
return $jscomp$this$
|
|
16585
|
+
return $jscomp$this$m282935782$26.isWhitespace(c);
|
|
16508
16586
|
});
|
|
16509
16587
|
};
|
|
16510
16588
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.twoCodePointsAreValidEscape = function(codePoint1, codePoint2) {
|
|
@@ -16611,8 +16689,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16611
16689
|
return null;
|
|
16612
16690
|
}
|
|
16613
16691
|
if (token.lowercaseName === "url") {
|
|
16614
|
-
var nextToken = tokens[i + 1], $jscomp$optchain$
|
|
16615
|
-
if ((($jscomp$optchain$
|
|
16692
|
+
var nextToken = tokens[i + 1], $jscomp$optchain$tmpm1577590584$0 = void 0;
|
|
16693
|
+
if ((($jscomp$optchain$tmpm1577590584$0 = nextToken) == null ? void 0 : $jscomp$optchain$tmpm1577590584$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING) {
|
|
16616
16694
|
return null;
|
|
16617
16695
|
}
|
|
16618
16696
|
var parsedUrl = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(nextToken.value);
|
|
@@ -16635,8 +16713,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16635
16713
|
if (!this.allowKeyframes) {
|
|
16636
16714
|
return null;
|
|
16637
16715
|
}
|
|
16638
|
-
for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$
|
|
16639
|
-
var rule = $jscomp$key$
|
|
16716
|
+
for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$m1577590584$1$rule = $jscomp$iter$31.next(); !$jscomp$key$m1577590584$1$rule.done; $jscomp$key$m1577590584$1$rule = $jscomp$iter$31.next()) {
|
|
16717
|
+
var rule = $jscomp$key$m1577590584$1$rule.value;
|
|
16640
16718
|
if (rule instanceof CSSKeyframeRule) {
|
|
16641
16719
|
var sanitizedRule = this.sanitizeKeyframeRule(rule);
|
|
16642
16720
|
sanitizedRule && keyframeRules.push(sanitizedRule);
|
|
@@ -16648,8 +16726,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16648
16726
|
if (!this.propertyAllowlist.has(name)) {
|
|
16649
16727
|
return !1;
|
|
16650
16728
|
}
|
|
16651
|
-
for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$
|
|
16652
|
-
var discarder = $jscomp$key$
|
|
16729
|
+
for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$m1577590584$2$discarder = $jscomp$iter$32.next(); !$jscomp$key$m1577590584$2$discarder.done; $jscomp$key$m1577590584$2$discarder = $jscomp$iter$32.next()) {
|
|
16730
|
+
var discarder = $jscomp$key$m1577590584$2$discarder.value;
|
|
16653
16731
|
if (discarder(name)) {
|
|
16654
16732
|
return !1;
|
|
16655
16733
|
}
|
|
@@ -16664,8 +16742,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16664
16742
|
return sanitizedValue ? module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(name) + ": " + sanitizedValue + (isImportant ? " !important" : "") : null;
|
|
16665
16743
|
};
|
|
16666
16744
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleDeclaration = function(style, calledFromStyleElement) {
|
|
16667
|
-
for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$33 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$
|
|
16668
|
-
var name = $jscomp$key$
|
|
16745
|
+
for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$33 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$m1577590584$3$name = $jscomp$iter$33.next(); !$jscomp$key$m1577590584$3$name.done; $jscomp$key$m1577590584$3$name = $jscomp$iter$33.next()) {
|
|
16746
|
+
var name = $jscomp$key$m1577590584$3$name.value, value = style.getPropertyValue(name), isImportant = style.getPropertyPriority(name) === "important", sanitizedProperty = this.sanitizeProperty(name, value, isImportant, calledFromStyleElement);
|
|
16669
16747
|
sanitizedProperty && (sanitizedProperties += sanitizedProperty + ";");
|
|
16670
16748
|
}
|
|
16671
16749
|
return sanitizedProperties;
|
|
@@ -16679,8 +16757,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16679
16757
|
return selector + " { " + sanitizedProperties + " }";
|
|
16680
16758
|
};
|
|
16681
16759
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleElement = function(cssText) {
|
|
16682
|
-
for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(rules), $jscomp$key$
|
|
16683
|
-
var rule = $jscomp$key$
|
|
16760
|
+
for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(rules), $jscomp$key$m1577590584$4$rule = $jscomp$iter$34.next(); !$jscomp$key$m1577590584$4$rule.done; $jscomp$key$m1577590584$4$rule = $jscomp$iter$34.next()) {
|
|
16761
|
+
var rule = $jscomp$key$m1577590584$4$rule.value;
|
|
16684
16762
|
if (rule instanceof CSSStyleRule) {
|
|
16685
16763
|
var sanitizedRule = this.sanitizeStyleRule(rule);
|
|
16686
16764
|
sanitizedRule && output.push(sanitizedRule);
|
|
@@ -16776,14 +16854,14 @@ module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanit
|
|
|
16776
16854
|
["LINK", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY, conditions:new Map([["rel", new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])], ["SOURCE", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}],
|
|
16777
16855
|
["srcset", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET}]])], ["IMG", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}], ["srcset", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET}]])],
|
|
16778
16856
|
["VIDEO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}]])], ["AUDIO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}]])]], module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES =
|
|
16779
|
-
"title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked color cols colspan controls datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
|
|
16857
|
+
"title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
|
|
16780
16858
|
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES = [["dir", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
16781
16859
|
return new Map([["dir", new Set(["auto", "ltr", "rtl"])]]);
|
|
16782
16860
|
})}], ["async", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
16783
16861
|
return new Map([["async", new Set(["async"])]]);
|
|
16784
|
-
})}], ["
|
|
16862
|
+
})}], ["loading", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
16785
16863
|
return new Map([["loading", new Set(["eager", "lazy"])]]);
|
|
16786
|
-
})}], ["
|
|
16864
|
+
})}], ["target", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
16787
16865
|
return new Map([["target", new Set(["_self", "_blank"])]]);
|
|
16788
16866
|
})}]];
|
|
16789
16867
|
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES),
|
|
@@ -16841,8 +16919,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16841
16919
|
return fragment;
|
|
16842
16920
|
};
|
|
16843
16921
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
16844
|
-
for (var $jscomp$this$
|
|
16845
|
-
return $jscomp$this$
|
|
16922
|
+
for (var $jscomp$this$m1085474118$13 = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
|
|
16923
|
+
return $jscomp$this$m1085474118$13.nodeFilter(n);
|
|
16846
16924
|
}), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; currentNode !== null;) {
|
|
16847
16925
|
var sanitizedNode = void 0;
|
|
16848
16926
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
@@ -16877,8 +16955,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16877
16955
|
return this.createTextNode(textNode.data);
|
|
16878
16956
|
};
|
|
16879
16957
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
16880
|
-
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$36 = (0,$jscomp.makeIterator)(dirtyAttributes), $jscomp$key$
|
|
16881
|
-
var $jscomp$destructuring$var31 = $jscomp$key$
|
|
16958
|
+
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$36 = (0,$jscomp.makeIterator)(dirtyAttributes), $jscomp$key$m1085474118$34$ = $jscomp$iter$36.next(); !$jscomp$key$m1085474118$34$.done; $jscomp$key$m1085474118$34$ = $jscomp$iter$36.next()) {
|
|
16959
|
+
var $jscomp$destructuring$var31 = $jscomp$key$m1085474118$34$.value, name = $jscomp$destructuring$var31.name, value = $jscomp$destructuring$var31.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
|
|
16882
16960
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
16883
16961
|
switch(policy.policyAction) {
|
|
16884
16962
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -16910,9 +16988,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16910
16988
|
break;
|
|
16911
16989
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:
|
|
16912
16990
|
if (this.resourceUrlPolicy) {
|
|
16913
|
-
for (var hints$jscomp$0 = {type:module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE, attributeName:name, elementName:elementName}, srcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(value), sanitizedSrcset = {parts:[]}, $jscomp$iter$35 = (0,$jscomp.makeIterator)(srcset.parts), $jscomp$key$
|
|
16991
|
+
for (var hints$jscomp$0 = {type:module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE, attributeName:name, elementName:elementName}, srcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(value), sanitizedSrcset = {parts:[]}, $jscomp$iter$35 = (0,$jscomp.makeIterator)(srcset.parts), $jscomp$key$m1085474118$33$part = $jscomp$iter$35.next(); !$jscomp$key$m1085474118$33$part.done; $jscomp$key$m1085474118$33$part =
|
|
16914
16992
|
$jscomp$iter$35.next()) {
|
|
16915
|
-
var part = $jscomp$key$
|
|
16993
|
+
var part = $jscomp$key$m1085474118$33$part.value, url$jscomp$0 = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(part.url), sanitizedUrl$jscomp$0 = this.resourceUrlPolicy(url$jscomp$0, hints$jscomp$0);
|
|
16916
16994
|
sanitizedUrl$jscomp$0 && sanitizedSrcset.parts.push({url:sanitizedUrl$jscomp$0.toString(), descriptor:part.descriptor});
|
|
16917
16995
|
}
|
|
16918
16996
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(sanitizedSrcset));
|
|
@@ -16956,8 +17034,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16956
17034
|
if (!conditions) {
|
|
16957
17035
|
return !0;
|
|
16958
17036
|
}
|
|
16959
|
-
for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$
|
|
16960
|
-
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17037
|
+
for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$m1085474118$35$ = $jscomp$iter$37.next(); !$jscomp$key$m1085474118$35$.done; $jscomp$key$m1085474118$35$ = $jscomp$iter$37.next()) {
|
|
17038
|
+
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$m1085474118$35$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var33.next().value, expectedValues = $jscomp$destructuring$var33.next().value, $jscomp$optchain$tmpm1085474118$0 = void 0, value = ($jscomp$optchain$tmpm1085474118$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) == null ? void 0 : $jscomp$optchain$tmpm1085474118$0.value;
|
|
16961
17039
|
if (value && !expectedValues.has(value)) {
|
|
16962
17040
|
return !1;
|
|
16963
17041
|
}
|
|
@@ -16972,8 +17050,8 @@ function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_Srcse
|
|
|
16972
17050
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.Srcset = function() {
|
|
16973
17051
|
};
|
|
16974
17052
|
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(srcset) {
|
|
16975
|
-
for (var parts = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$
|
|
16976
|
-
var $jscomp$destructuring$var34 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17053
|
+
for (var parts = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$m1085474118$36$part = $jscomp$iter$38.next(); !$jscomp$key$m1085474118$36$part.done; $jscomp$key$m1085474118$36$part = $jscomp$iter$38.next()) {
|
|
17054
|
+
var $jscomp$destructuring$var34 = (0,$jscomp.makeIterator)($jscomp$key$m1085474118$36$part.value.trim().split(/\s+/, 2)), url__tsickle_destructured_3 = $jscomp$destructuring$var34.next().value, descriptor__tsickle_destructured_4 = $jscomp$destructuring$var34.next().value;
|
|
16977
17055
|
parts.push({url:url__tsickle_destructured_3, descriptor:descriptor__tsickle_destructured_4});
|
|
16978
17056
|
}
|
|
16979
17057
|
return {parts:parts};
|
|
@@ -17030,8 +17108,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17030
17108
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE;
|
|
17031
17109
|
};
|
|
17032
17110
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
|
|
17033
|
-
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$
|
|
17034
|
-
var element = $jscomp$key$
|
|
17111
|
+
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$435282654$21$element = $jscomp$iter$39.next(); !$jscomp$key$435282654$21$element.done; $jscomp$key$435282654$21$element = $jscomp$iter$39.next()) {
|
|
17112
|
+
var element = $jscomp$key$435282654$21$element.value;
|
|
17035
17113
|
element = element.toUpperCase();
|
|
17036
17114
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
17037
17115
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -17049,8 +17127,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17049
17127
|
throw Error("Element: " + element + " is not a custom element");
|
|
17050
17128
|
}
|
|
17051
17129
|
if (allowedAttributes) {
|
|
17052
|
-
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$
|
|
17053
|
-
elementPolicy.set($jscomp$key$
|
|
17130
|
+
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$435282654$22$attribute = $jscomp$iter$40.next(); !$jscomp$key$435282654$22$attribute.done; $jscomp$key$435282654$22$attribute = $jscomp$iter$40.next()) {
|
|
17131
|
+
elementPolicy.set($jscomp$key$435282654$22$attribute.value.toLowerCase(), {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
17054
17132
|
}
|
|
17055
17133
|
allowedElementPolicies.set(element, elementPolicy);
|
|
17056
17134
|
} else {
|
|
@@ -17060,15 +17138,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17060
17138
|
return this;
|
|
17061
17139
|
};
|
|
17062
17140
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
|
|
17063
|
-
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$
|
|
17064
|
-
var attribute = $jscomp$key$
|
|
17141
|
+
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$435282654$23$attribute = $jscomp$iter$41.next(); !$jscomp$key$435282654$23$attribute.done; $jscomp$key$435282654$23$attribute = $jscomp$iter$41.next()) {
|
|
17142
|
+
var attribute = $jscomp$key$435282654$23$attribute.value;
|
|
17065
17143
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
17066
17144
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
17067
17145
|
}
|
|
17068
|
-
for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$
|
|
17069
|
-
for (var $jscomp$destructuring$var37 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17146
|
+
for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$435282654$25$ = $jscomp$iter$43.next(); !$jscomp$key$435282654$25$.done; $jscomp$key$435282654$25$ = $jscomp$iter$43.next()) {
|
|
17147
|
+
for (var $jscomp$destructuring$var37 = (0,$jscomp.makeIterator)($jscomp$key$435282654$25$.value), elementName__tsickle_destructured_1 = $jscomp$destructuring$var37.next().value, originalElementPolicy__tsickle_destructured_2 = $jscomp$destructuring$var37.next().value, elementName = elementName__tsickle_destructured_1, newElementPolicy = new Map(), $jscomp$iter$42 = (0,$jscomp.makeIterator)(originalElementPolicy__tsickle_destructured_2.entries()), $jscomp$key$435282654$24$ = $jscomp$iter$42.next(); !$jscomp$key$435282654$24$.done; $jscomp$key$435282654$24$ =
|
|
17070
17148
|
$jscomp$iter$42.next()) {
|
|
17071
|
-
var $jscomp$destructuring$var39 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17149
|
+
var $jscomp$destructuring$var39 = (0,$jscomp.makeIterator)($jscomp$key$435282654$24$.value), attribute__tsickle_destructured_3 = $jscomp$destructuring$var39.next().value, attributePolicy__tsickle_destructured_4 = $jscomp$destructuring$var39.next().value, attribute$jscomp$0 = attribute__tsickle_destructured_3, attributePolicy = attributePolicy__tsickle_destructured_4;
|
|
17072
17150
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
17073
17151
|
}
|
|
17074
17152
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -17077,8 +17155,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17077
17155
|
return this;
|
|
17078
17156
|
};
|
|
17079
17157
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
|
|
17080
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$
|
|
17081
|
-
var attribute = $jscomp$key$
|
|
17158
|
+
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$435282654$26$attribute = $jscomp$iter$44.next(); !$jscomp$key$435282654$26$attribute.done; $jscomp$key$435282654$26$attribute = $jscomp$iter$44.next()) {
|
|
17159
|
+
var attribute = $jscomp$key$435282654$26$attribute.value;
|
|
17082
17160
|
if (attribute.indexOf("data-") !== 0) {
|
|
17083
17161
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
17084
17162
|
}
|
|
@@ -17140,7 +17218,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17140
17218
|
return this;
|
|
17141
17219
|
};
|
|
17142
17220
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.build = function() {
|
|
17143
|
-
var $jscomp$this$
|
|
17221
|
+
var $jscomp$this$435282654$17 = this;
|
|
17144
17222
|
this.extendSanitizerTableForCss();
|
|
17145
17223
|
var propertyDiscarders = [];
|
|
17146
17224
|
this.animationsAllowed || propertyDiscarders.push(function(property) {
|
|
@@ -17150,9 +17228,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17150
17228
|
return /^transition(-|$)/.test(property);
|
|
17151
17229
|
});
|
|
17152
17230
|
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(this.sanitizerTable, module$exports$safevalues$internals$secrets.secretToken, function(cssText) {
|
|
17153
|
-
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$
|
|
17231
|
+
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$435282654$17.resourceUrlPolicy, $jscomp$this$435282654$17.animationsAllowed, propertyDiscarders);
|
|
17154
17232
|
}, function(cssText) {
|
|
17155
|
-
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$
|
|
17233
|
+
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$435282654$17.resourceUrlPolicy, propertyDiscarders);
|
|
17156
17234
|
}, this.resourceUrlPolicy);
|
|
17157
17235
|
};
|
|
17158
17236
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.extendSanitizerTableForCss = function() {
|
|
@@ -17370,12 +17448,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
17370
17448
|
}
|
|
17371
17449
|
try {
|
|
17372
17450
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
17373
|
-
} catch ($jscomp$unused$catch$
|
|
17451
|
+
} catch ($jscomp$unused$catch$696273141$0) {
|
|
17374
17452
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
17375
17453
|
}
|
|
17376
17454
|
try {
|
|
17377
17455
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
17378
|
-
} catch ($jscomp$unused$catch$
|
|
17456
|
+
} catch ($jscomp$unused$catch$696273141$1) {
|
|
17379
17457
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
17380
17458
|
}
|
|
17381
17459
|
return !1;
|
|
@@ -18415,6 +18493,18 @@ goog.async.Deferred.prototype.addFinally = function(f, opt_scope) {
|
|
|
18415
18493
|
return result;
|
|
18416
18494
|
}, opt_scope);
|
|
18417
18495
|
};
|
|
18496
|
+
goog.async.Deferred.prototype.finally = function(f) {
|
|
18497
|
+
var $jscomp$this$m1728524513$17 = this;
|
|
18498
|
+
return new Promise(function(resolve, reject) {
|
|
18499
|
+
$jscomp$this$m1728524513$17.addCallbacks(function(v) {
|
|
18500
|
+
f();
|
|
18501
|
+
resolve(v);
|
|
18502
|
+
}, function(err) {
|
|
18503
|
+
f();
|
|
18504
|
+
reject(err);
|
|
18505
|
+
});
|
|
18506
|
+
});
|
|
18507
|
+
};
|
|
18418
18508
|
goog.async.Deferred.prototype.addCallbacks = function(cb, eb, opt_scope) {
|
|
18419
18509
|
goog.asserts.assert(!this.blocking_, "Blocking Deferreds can not be re-used");
|
|
18420
18510
|
var fired = this.hasFired();
|
|
@@ -18845,8 +18935,9 @@ goog.net.XhrLike.prototype.getAllResponseHeaders = function() {
|
|
|
18845
18935
|
};
|
|
18846
18936
|
goog.net.XhrLike.prototype.setTrustToken = function(trustTokenAttribute) {
|
|
18847
18937
|
};
|
|
18848
|
-
goog
|
|
18849
|
-
}
|
|
18938
|
+
function module$contents$goog$net$XmlHttpFactory_XmlHttpFactory() {
|
|
18939
|
+
}
|
|
18940
|
+
goog.net.XmlHttpFactory = module$contents$goog$net$XmlHttpFactory_XmlHttpFactory;
|
|
18850
18941
|
goog.net.XmlHttp = function() {
|
|
18851
18942
|
return goog.net.XmlHttp.factory_.createInstance();
|
|
18852
18943
|
};
|
|
@@ -18856,7 +18947,7 @@ goog.net.XmlHttp.setGlobalFactory = function(factory) {
|
|
|
18856
18947
|
};
|
|
18857
18948
|
goog.net.DefaultXmlHttpFactory = function() {
|
|
18858
18949
|
};
|
|
18859
|
-
goog.inherits(goog.net.DefaultXmlHttpFactory, goog
|
|
18950
|
+
goog.inherits(goog.net.DefaultXmlHttpFactory, module$contents$goog$net$XmlHttpFactory_XmlHttpFactory);
|
|
18860
18951
|
goog.net.DefaultXmlHttpFactory.prototype.createInstance = function() {
|
|
18861
18952
|
return new XMLHttpRequest();
|
|
18862
18953
|
};
|
|
@@ -19218,7 +19309,7 @@ var $jscomp$templatelit$m1153655765$99 = $jscomp.createTemplateTagFirstArg(["htt
|
|
|
19218
19309
|
ee.apiclient = {};
|
|
19219
19310
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19220
19311
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19221
|
-
ee.apiclient.API_CLIENT_VERSION = "1.
|
|
19312
|
+
ee.apiclient.API_CLIENT_VERSION = "1.5.0";
|
|
19222
19313
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19223
19314
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19224
19315
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19516,8 +19607,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19516
19607
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19517
19608
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19518
19609
|
method = method || "POST";
|
|
19519
|
-
var headers = {"Content-Type":contentType}, version = "1.
|
|
19520
|
-
version === "1.
|
|
19610
|
+
var headers = {"Content-Type":contentType}, version = "1.5.0";
|
|
19611
|
+
version === "1.5.0" && (version = "latest");
|
|
19521
19612
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19522
19613
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
19523
19614
|
if (authToken != null) {
|
|
@@ -20390,26 +20481,27 @@ ee.rpc_convert.processListImagesParams = function(params) {
|
|
|
20390
20481
|
return params;
|
|
20391
20482
|
};
|
|
20392
20483
|
goog.crypt = {};
|
|
20393
|
-
goog
|
|
20484
|
+
function module$contents$goog$crypt$Hash_Hash() {
|
|
20394
20485
|
this.blockSize = -1;
|
|
20395
|
-
}
|
|
20396
|
-
goog.crypt.
|
|
20397
|
-
|
|
20486
|
+
}
|
|
20487
|
+
goog.crypt.Hash = module$contents$goog$crypt$Hash_Hash;
|
|
20488
|
+
function module$contents$goog$crypt$Md5_Md5() {
|
|
20489
|
+
module$contents$goog$crypt$Hash_Hash.call(this);
|
|
20398
20490
|
this.blockSize = 64;
|
|
20399
20491
|
this.chain_ = Array(4);
|
|
20400
20492
|
this.block_ = Array(this.blockSize);
|
|
20401
20493
|
this.totalLength_ = this.blockLength_ = 0;
|
|
20402
20494
|
this.reset();
|
|
20403
|
-
}
|
|
20404
|
-
goog.inherits(goog
|
|
20405
|
-
goog
|
|
20495
|
+
}
|
|
20496
|
+
goog.inherits(module$contents$goog$crypt$Md5_Md5, module$contents$goog$crypt$Hash_Hash);
|
|
20497
|
+
module$contents$goog$crypt$Md5_Md5.prototype.reset = function() {
|
|
20406
20498
|
this.chain_[0] = 1732584193;
|
|
20407
20499
|
this.chain_[1] = 4023233417;
|
|
20408
20500
|
this.chain_[2] = 2562383102;
|
|
20409
20501
|
this.chain_[3] = 271733878;
|
|
20410
20502
|
this.totalLength_ = this.blockLength_ = 0;
|
|
20411
20503
|
};
|
|
20412
|
-
goog
|
|
20504
|
+
module$contents$goog$crypt$Md5_Md5.prototype.compress_ = function(buf, opt_offset) {
|
|
20413
20505
|
opt_offset || (opt_offset = 0);
|
|
20414
20506
|
var X = Array(16);
|
|
20415
20507
|
if (typeof buf === "string") {
|
|
@@ -20554,7 +20646,7 @@ goog.crypt.Md5.prototype.compress_ = function(buf, opt_offset) {
|
|
|
20554
20646
|
this.chain_[2] = this.chain_[2] + C & 4294967295;
|
|
20555
20647
|
this.chain_[3] = this.chain_[3] + D & 4294967295;
|
|
20556
20648
|
};
|
|
20557
|
-
goog
|
|
20649
|
+
module$contents$goog$crypt$Md5_Md5.prototype.update = function(bytes, opt_length) {
|
|
20558
20650
|
opt_length === void 0 && (opt_length = bytes.length);
|
|
20559
20651
|
for (var lengthMinusBlock = opt_length - this.blockSize, block = this.block_, blockLength = this.blockLength_, i = 0; i < opt_length;) {
|
|
20560
20652
|
if (blockLength == 0) {
|
|
@@ -20583,7 +20675,7 @@ goog.crypt.Md5.prototype.update = function(bytes, opt_length) {
|
|
|
20583
20675
|
this.blockLength_ = blockLength;
|
|
20584
20676
|
this.totalLength_ += opt_length;
|
|
20585
20677
|
};
|
|
20586
|
-
goog
|
|
20678
|
+
module$contents$goog$crypt$Md5_Md5.prototype.digest = function() {
|
|
20587
20679
|
var pad = Array((this.blockLength_ < 56 ? this.blockSize : this.blockSize * 2) - this.blockLength_);
|
|
20588
20680
|
pad[0] = 128;
|
|
20589
20681
|
for (var i = 1; i < pad.length - 8; ++i) {
|
|
@@ -20600,6 +20692,7 @@ goog.crypt.Md5.prototype.digest = function() {
|
|
|
20600
20692
|
}
|
|
20601
20693
|
return digest;
|
|
20602
20694
|
};
|
|
20695
|
+
goog.crypt.Md5 = module$contents$goog$crypt$Md5_Md5;
|
|
20603
20696
|
ee.Serializer = function(opt_isCompound) {
|
|
20604
20697
|
this.HASH_KEY = "__ee_hash__";
|
|
20605
20698
|
this.isCompound_ = opt_isCompound !== !1;
|
|
@@ -20612,7 +20705,7 @@ ee.Serializer = function(opt_isCompound) {
|
|
|
20612
20705
|
};
|
|
20613
20706
|
goog.exportSymbol("ee.Serializer", ee.Serializer);
|
|
20614
20707
|
ee.Serializer.jsonSerializer_ = new goog.json.Serializer();
|
|
20615
|
-
ee.Serializer.hash_ = new goog
|
|
20708
|
+
ee.Serializer.hash_ = new module$contents$goog$crypt$Md5_Md5();
|
|
20616
20709
|
ee.Serializer.encode = function(obj, opt_isCompound) {
|
|
20617
20710
|
return (new ee.Serializer(opt_isCompound !== void 0 ? opt_isCompound : !0)).encode_(obj);
|
|
20618
20711
|
};
|
|
@@ -21165,11 +21258,6 @@ goog.singleton.getInstance = function(ctor) {
|
|
|
21165
21258
|
};
|
|
21166
21259
|
goog.singleton.instantiatedSingletons = module$contents$goog$singleton_instantiatedSingletons;
|
|
21167
21260
|
ee.data = {};
|
|
21168
|
-
ee.data.ClassifierTaskConfig = {};
|
|
21169
|
-
ee.data.ImageTaskConfig = {};
|
|
21170
|
-
ee.data.MapTaskConfig = {};
|
|
21171
|
-
ee.data.TableTaskConfig = {};
|
|
21172
|
-
ee.data.VideoTaskConfig = {};
|
|
21173
21261
|
ee.data.authenticateViaOauth = function(clientId, success, opt_error, opt_extraScopes, opt_onImmediateFailed, opt_suppressDefaultScopes) {
|
|
21174
21262
|
var scopes = module$contents$ee$apiclient_apiclient.mergeAuthScopes_(!opt_suppressDefaultScopes, !1, opt_extraScopes || []);
|
|
21175
21263
|
module$contents$ee$apiclient_apiclient.setAuthClient(clientId, scopes);
|
|
@@ -24979,17 +25067,20 @@ goog.fs.FileReader.createDeferred_ = function(reader) {
|
|
|
24979
25067
|
return deferred;
|
|
24980
25068
|
};
|
|
24981
25069
|
goog.dom.vendor = {};
|
|
24982
|
-
goog
|
|
25070
|
+
function module$contents$goog$dom$vendor_getVendorJsPrefix() {
|
|
24983
25071
|
return goog.userAgent.WEBKIT ? "Webkit" : goog.userAgent.GECKO ? "Moz" : null;
|
|
24984
|
-
}
|
|
24985
|
-
goog
|
|
25072
|
+
}
|
|
25073
|
+
function module$contents$goog$dom$vendor_getVendorPrefix() {
|
|
24986
25074
|
return goog.userAgent.WEBKIT ? "-webkit" : goog.userAgent.GECKO ? "-moz" : null;
|
|
25075
|
+
}
|
|
25076
|
+
goog.dom.vendor.getPrefixedEventType = function(eventType) {
|
|
25077
|
+
return ((module$contents$goog$dom$vendor_getVendorJsPrefix() || "") + eventType).toLowerCase();
|
|
24987
25078
|
};
|
|
24988
25079
|
goog.dom.vendor.getPrefixedPropertyName = function(propertyName, opt_object) {
|
|
24989
25080
|
if (opt_object && propertyName in opt_object) {
|
|
24990
25081
|
return propertyName;
|
|
24991
25082
|
}
|
|
24992
|
-
var prefix = goog
|
|
25083
|
+
var prefix = module$contents$goog$dom$vendor_getVendorJsPrefix();
|
|
24993
25084
|
if (prefix) {
|
|
24994
25085
|
prefix = prefix.toLowerCase();
|
|
24995
25086
|
var prefixedPropertyName = prefix + goog.string.toTitleCase(propertyName);
|
|
@@ -24997,100 +25088,99 @@ goog.dom.vendor.getPrefixedPropertyName = function(propertyName, opt_object) {
|
|
|
24997
25088
|
}
|
|
24998
25089
|
return null;
|
|
24999
25090
|
};
|
|
25000
|
-
goog.dom.vendor.
|
|
25001
|
-
|
|
25002
|
-
|
|
25003
|
-
goog.math.Box = function(top, right, bottom, left) {
|
|
25091
|
+
goog.dom.vendor.getVendorJsPrefix = module$contents$goog$dom$vendor_getVendorJsPrefix;
|
|
25092
|
+
goog.dom.vendor.getVendorPrefix = module$contents$goog$dom$vendor_getVendorPrefix;
|
|
25093
|
+
function module$contents$goog$math$Box_Box(top, right, bottom, left) {
|
|
25004
25094
|
this.top = top;
|
|
25005
25095
|
this.right = right;
|
|
25006
25096
|
this.bottom = bottom;
|
|
25007
25097
|
this.left = left;
|
|
25008
|
-
}
|
|
25009
|
-
goog
|
|
25010
|
-
for (var box = new goog
|
|
25098
|
+
}
|
|
25099
|
+
module$contents$goog$math$Box_Box.boundingBox = function(var_args) {
|
|
25100
|
+
for (var box = new module$contents$goog$math$Box_Box(arguments[0].y, arguments[0].x, arguments[0].y, arguments[0].x), i = 1; i < arguments.length; i++) {
|
|
25011
25101
|
box.expandToIncludeCoordinate(arguments[i]);
|
|
25012
25102
|
}
|
|
25013
25103
|
return box;
|
|
25014
25104
|
};
|
|
25015
|
-
goog
|
|
25105
|
+
module$contents$goog$math$Box_Box.prototype.getWidth = function() {
|
|
25016
25106
|
return this.right - this.left;
|
|
25017
25107
|
};
|
|
25018
|
-
goog
|
|
25108
|
+
module$contents$goog$math$Box_Box.prototype.getHeight = function() {
|
|
25019
25109
|
return this.bottom - this.top;
|
|
25020
25110
|
};
|
|
25021
|
-
goog
|
|
25022
|
-
return new goog
|
|
25111
|
+
module$contents$goog$math$Box_Box.prototype.clone = function() {
|
|
25112
|
+
return new module$contents$goog$math$Box_Box(this.top, this.right, this.bottom, this.left);
|
|
25023
25113
|
};
|
|
25024
|
-
goog.DEBUG && (goog
|
|
25114
|
+
goog.DEBUG && (module$contents$goog$math$Box_Box.prototype.toString = function() {
|
|
25025
25115
|
return "(" + this.top + "t, " + this.right + "r, " + this.bottom + "b, " + this.left + "l)";
|
|
25026
25116
|
});
|
|
25027
|
-
goog
|
|
25028
|
-
return goog
|
|
25117
|
+
module$contents$goog$math$Box_Box.prototype.contains = function(other) {
|
|
25118
|
+
return module$contents$goog$math$Box_Box.contains(this, other);
|
|
25029
25119
|
};
|
|
25030
|
-
goog
|
|
25120
|
+
module$contents$goog$math$Box_Box.prototype.expand = function(top, opt_right, opt_bottom, opt_left) {
|
|
25031
25121
|
goog.isObject(top) ? (this.top -= top.top, this.right += top.right, this.bottom += top.bottom, this.left -= top.left) : (this.top -= top, this.right += Number(opt_right), this.bottom += Number(opt_bottom), this.left -= Number(opt_left));
|
|
25032
25122
|
return this;
|
|
25033
25123
|
};
|
|
25034
|
-
goog
|
|
25124
|
+
module$contents$goog$math$Box_Box.prototype.expandToInclude = function(box) {
|
|
25035
25125
|
this.left = Math.min(this.left, box.left);
|
|
25036
25126
|
this.top = Math.min(this.top, box.top);
|
|
25037
25127
|
this.right = Math.max(this.right, box.right);
|
|
25038
25128
|
this.bottom = Math.max(this.bottom, box.bottom);
|
|
25039
25129
|
};
|
|
25040
|
-
goog
|
|
25130
|
+
module$contents$goog$math$Box_Box.prototype.expandToIncludeCoordinate = function(coord) {
|
|
25041
25131
|
this.top = Math.min(this.top, coord.y);
|
|
25042
25132
|
this.right = Math.max(this.right, coord.x);
|
|
25043
25133
|
this.bottom = Math.max(this.bottom, coord.y);
|
|
25044
25134
|
this.left = Math.min(this.left, coord.x);
|
|
25045
25135
|
};
|
|
25046
|
-
goog
|
|
25136
|
+
module$contents$goog$math$Box_Box.equals = function(a, b) {
|
|
25047
25137
|
return a == b ? !0 : a && b ? a.top == b.top && a.right == b.right && a.bottom == b.bottom && a.left == b.left : !1;
|
|
25048
25138
|
};
|
|
25049
|
-
goog
|
|
25050
|
-
return box && other ? other instanceof goog
|
|
25139
|
+
module$contents$goog$math$Box_Box.contains = function(box, other) {
|
|
25140
|
+
return box && other ? other instanceof module$contents$goog$math$Box_Box ? other.left >= box.left && other.right <= box.right && other.top >= box.top && other.bottom <= box.bottom : other.x >= box.left && other.x <= box.right && other.y >= box.top && other.y <= box.bottom : !1;
|
|
25051
25141
|
};
|
|
25052
|
-
goog
|
|
25142
|
+
module$contents$goog$math$Box_Box.relativePositionX = function(box, coord) {
|
|
25053
25143
|
return coord.x < box.left ? coord.x - box.left : coord.x > box.right ? coord.x - box.right : 0;
|
|
25054
25144
|
};
|
|
25055
|
-
goog
|
|
25145
|
+
module$contents$goog$math$Box_Box.relativePositionY = function(box, coord) {
|
|
25056
25146
|
return coord.y < box.top ? coord.y - box.top : coord.y > box.bottom ? coord.y - box.bottom : 0;
|
|
25057
25147
|
};
|
|
25058
|
-
goog
|
|
25059
|
-
var x = goog
|
|
25148
|
+
module$contents$goog$math$Box_Box.distance = function(box, coord) {
|
|
25149
|
+
var x = module$contents$goog$math$Box_Box.relativePositionX(box, coord), y = module$contents$goog$math$Box_Box.relativePositionY(box, coord);
|
|
25060
25150
|
return Math.sqrt(x * x + y * y);
|
|
25061
25151
|
};
|
|
25062
|
-
goog
|
|
25152
|
+
module$contents$goog$math$Box_Box.intersects = function(a, b) {
|
|
25063
25153
|
return a.left <= b.right && b.left <= a.right && a.top <= b.bottom && b.top <= a.bottom;
|
|
25064
25154
|
};
|
|
25065
|
-
goog
|
|
25155
|
+
module$contents$goog$math$Box_Box.intersectsWithPadding = function(a, b, padding) {
|
|
25066
25156
|
return a.left <= b.right + padding && b.left <= a.right + padding && a.top <= b.bottom + padding && b.top <= a.bottom + padding;
|
|
25067
25157
|
};
|
|
25068
|
-
goog
|
|
25158
|
+
module$contents$goog$math$Box_Box.prototype.ceil = function() {
|
|
25069
25159
|
this.top = Math.ceil(this.top);
|
|
25070
25160
|
this.right = Math.ceil(this.right);
|
|
25071
25161
|
this.bottom = Math.ceil(this.bottom);
|
|
25072
25162
|
this.left = Math.ceil(this.left);
|
|
25073
25163
|
return this;
|
|
25074
25164
|
};
|
|
25075
|
-
goog
|
|
25165
|
+
module$contents$goog$math$Box_Box.prototype.floor = function() {
|
|
25076
25166
|
this.top = Math.floor(this.top);
|
|
25077
25167
|
this.right = Math.floor(this.right);
|
|
25078
25168
|
this.bottom = Math.floor(this.bottom);
|
|
25079
25169
|
this.left = Math.floor(this.left);
|
|
25080
25170
|
return this;
|
|
25081
25171
|
};
|
|
25082
|
-
goog
|
|
25172
|
+
module$contents$goog$math$Box_Box.prototype.round = function() {
|
|
25083
25173
|
this.top = Math.round(this.top);
|
|
25084
25174
|
this.right = Math.round(this.right);
|
|
25085
25175
|
this.bottom = Math.round(this.bottom);
|
|
25086
25176
|
this.left = Math.round(this.left);
|
|
25087
25177
|
return this;
|
|
25088
25178
|
};
|
|
25089
|
-
goog
|
|
25179
|
+
module$contents$goog$math$Box_Box.prototype.translate = function(tx, opt_ty) {
|
|
25090
25180
|
tx instanceof goog.math.Coordinate ? (this.left += tx.x, this.right += tx.x, this.top += tx.y, this.bottom += tx.y) : (goog.asserts.assertNumber(tx), this.left += tx, this.right += tx, typeof opt_ty === "number" && (this.top += opt_ty, this.bottom += opt_ty));
|
|
25091
25181
|
return this;
|
|
25092
25182
|
};
|
|
25093
|
-
goog
|
|
25183
|
+
module$contents$goog$math$Box_Box.prototype.scale = function(sx, opt_sy) {
|
|
25094
25184
|
var sy = typeof opt_sy === "number" ? opt_sy : sx;
|
|
25095
25185
|
this.left *= sx;
|
|
25096
25186
|
this.right *= sx;
|
|
@@ -25098,6 +25188,7 @@ goog.math.Box.prototype.scale = function(sx, opt_sy) {
|
|
|
25098
25188
|
this.bottom *= sy;
|
|
25099
25189
|
return this;
|
|
25100
25190
|
};
|
|
25191
|
+
goog.math.Box = module$contents$goog$math$Box_Box;
|
|
25101
25192
|
goog.math.IRect = function() {
|
|
25102
25193
|
};
|
|
25103
25194
|
goog.math.Rect = function(x, y, w, h) {
|
|
@@ -25110,7 +25201,7 @@ goog.math.Rect.prototype.clone = function() {
|
|
|
25110
25201
|
return new goog.math.Rect(this.left, this.top, this.width, this.height);
|
|
25111
25202
|
};
|
|
25112
25203
|
goog.math.Rect.prototype.toBox = function() {
|
|
25113
|
-
return new goog
|
|
25204
|
+
return new module$contents$goog$math$Box_Box(this.top, this.left + this.width, this.top + this.height, this.left);
|
|
25114
25205
|
};
|
|
25115
25206
|
goog.math.Rect.createFromPositionAndSize = function(position, size) {
|
|
25116
25207
|
return new goog.math.Rect(position.x, position.y, size.width, size.height);
|
|
@@ -25256,7 +25347,7 @@ goog.style.getVendorJsStyleName_ = function(element, style) {
|
|
|
25256
25347
|
var camelStyle = goog.string.toCamelCase(style);
|
|
25257
25348
|
propertyName = camelStyle;
|
|
25258
25349
|
if (element.style[camelStyle] === void 0) {
|
|
25259
|
-
var prefixedStyle = goog
|
|
25350
|
+
var prefixedStyle = module$contents$goog$dom$vendor_getVendorJsPrefix() + goog.string.toTitleCase(camelStyle);
|
|
25260
25351
|
element.style[prefixedStyle] !== void 0 && (propertyName = prefixedStyle);
|
|
25261
25352
|
}
|
|
25262
25353
|
goog.style.styleNameCache_[style] = propertyName;
|
|
@@ -25266,9 +25357,9 @@ goog.style.getVendorJsStyleName_ = function(element, style) {
|
|
|
25266
25357
|
goog.style.getVendorStyleName_ = function(element, style) {
|
|
25267
25358
|
var camelStyle = goog.string.toCamelCase(style);
|
|
25268
25359
|
if (element.style[camelStyle] === void 0) {
|
|
25269
|
-
var prefixedStyle = goog
|
|
25360
|
+
var prefixedStyle = module$contents$goog$dom$vendor_getVendorJsPrefix() + goog.string.toTitleCase(camelStyle);
|
|
25270
25361
|
if (element.style[prefixedStyle] !== void 0) {
|
|
25271
|
-
return goog
|
|
25362
|
+
return module$contents$goog$dom$vendor_getVendorPrefix() + "-" + style;
|
|
25272
25363
|
}
|
|
25273
25364
|
}
|
|
25274
25365
|
return style;
|
|
@@ -25357,7 +25448,7 @@ goog.style.getOffsetParent = function(element) {
|
|
|
25357
25448
|
return null;
|
|
25358
25449
|
};
|
|
25359
25450
|
goog.style.getVisibleRectForElement = function(element) {
|
|
25360
|
-
for (var visibleRect = new goog
|
|
25451
|
+
for (var visibleRect = new module$contents$goog$math$Box_Box(0, Infinity, Infinity, 0), dom = goog.dom.getDomHelper(element), body = dom.getDocument().body, documentElement = dom.getDocument().documentElement, scrollEl = dom.getDocumentScrollElement(), el = element; el = goog.style.getOffsetParent(el);) {
|
|
25361
25452
|
if ((!goog.userAgent.WEBKIT || el.clientHeight != 0 || el != body) && el != body && el != documentElement && goog.style.getStyle_(el, "overflow") != "visible") {
|
|
25362
25453
|
var pos = goog.style.getPageOffset(el), client = goog.style.getClientLeftTop(el);
|
|
25363
25454
|
pos.x += client.x;
|
|
@@ -25566,7 +25657,7 @@ goog.style.installSafeStyleSheet = function(safeStyleSheet, opt_node) {
|
|
|
25566
25657
|
head = dh.createDom(goog.dom.TagName.HEAD);
|
|
25567
25658
|
body.parentNode.insertBefore(head, body);
|
|
25568
25659
|
}
|
|
25569
|
-
var el = dh.createDom(goog.dom.TagName.STYLE), nonce = module$contents$safevalues$dom$globals$window_getStyleNonce(
|
|
25660
|
+
var el = dh.createDom(goog.dom.TagName.STYLE), nonce = module$contents$safevalues$dom$globals$window_getStyleNonce(document);
|
|
25570
25661
|
nonce && el.setAttribute("nonce", nonce);
|
|
25571
25662
|
goog.style.setSafeStyleSheet(el, safeStyleSheet);
|
|
25572
25663
|
dh.appendChild(head, el);
|
|
@@ -25643,7 +25734,7 @@ goog.style.getIePixelDistance_ = function(element, propName) {
|
|
|
25643
25734
|
};
|
|
25644
25735
|
goog.style.getBox_ = function(element, stylePrefix) {
|
|
25645
25736
|
var left = goog.style.getComputedStyle(element, stylePrefix + "Left"), right = goog.style.getComputedStyle(element, stylePrefix + "Right"), top = goog.style.getComputedStyle(element, stylePrefix + "Top"), bottom = goog.style.getComputedStyle(element, stylePrefix + "Bottom");
|
|
25646
|
-
return new goog
|
|
25737
|
+
return new module$contents$goog$math$Box_Box(parseFloat(top), parseFloat(right), parseFloat(bottom), parseFloat(left));
|
|
25647
25738
|
};
|
|
25648
25739
|
goog.style.getPaddingBox = function(element) {
|
|
25649
25740
|
return goog.style.getBox_(element, "padding");
|
|
@@ -25661,7 +25752,7 @@ goog.style.getIePixelBorder_ = function(element, prop) {
|
|
|
25661
25752
|
};
|
|
25662
25753
|
goog.style.getBorderBox = function(element) {
|
|
25663
25754
|
var left = goog.style.getComputedStyle(element, "borderLeftWidth"), right = goog.style.getComputedStyle(element, "borderRightWidth"), top = goog.style.getComputedStyle(element, "borderTopWidth"), bottom = goog.style.getComputedStyle(element, "borderBottomWidth");
|
|
25664
|
-
return new goog
|
|
25755
|
+
return new module$contents$goog$math$Box_Box(parseFloat(top), parseFloat(right), parseFloat(bottom), parseFloat(left));
|
|
25665
25756
|
};
|
|
25666
25757
|
goog.style.getFontFamily = function(el) {
|
|
25667
25758
|
var doc = goog.dom.getOwnerDocument(el), font = "";
|
|
@@ -26206,41 +26297,41 @@ module$contents$ee$layers$CloudStorageTileSource_CloudStorageTileSource.BASE_URL
|
|
|
26206
26297
|
module$contents$ee$layers$CloudStorageTileSource_CloudStorageTileSource.MISSING_TILE_ERROR_ = "The specified key does not exist.";
|
|
26207
26298
|
module$contents$ee$layers$CloudStorageTileSource_CloudStorageTileSource.ACCESS_DENIED_ERROR_ = "AccessDenied";
|
|
26208
26299
|
ee.layers.CloudStorageTileSource = module$contents$ee$layers$CloudStorageTileSource_CloudStorageTileSource;
|
|
26209
|
-
goog
|
|
26300
|
+
function module$contents$goog$structs$Queue_Queue() {
|
|
26210
26301
|
this.front_ = [];
|
|
26211
26302
|
this.back_ = [];
|
|
26212
|
-
}
|
|
26213
|
-
goog
|
|
26303
|
+
}
|
|
26304
|
+
module$contents$goog$structs$Queue_Queue.prototype.maybeFlip_ = function() {
|
|
26214
26305
|
this.front_.length === 0 && (this.front_ = this.back_, this.front_.reverse(), this.back_ = []);
|
|
26215
26306
|
};
|
|
26216
|
-
goog
|
|
26307
|
+
module$contents$goog$structs$Queue_Queue.prototype.enqueue = function(element) {
|
|
26217
26308
|
this.back_.push(element);
|
|
26218
26309
|
};
|
|
26219
|
-
goog
|
|
26310
|
+
module$contents$goog$structs$Queue_Queue.prototype.dequeue = function() {
|
|
26220
26311
|
this.maybeFlip_();
|
|
26221
26312
|
return this.front_.pop();
|
|
26222
26313
|
};
|
|
26223
|
-
goog
|
|
26314
|
+
module$contents$goog$structs$Queue_Queue.prototype.peek = function() {
|
|
26224
26315
|
this.maybeFlip_();
|
|
26225
26316
|
return module$contents$goog$array_peek(this.front_);
|
|
26226
26317
|
};
|
|
26227
|
-
goog
|
|
26318
|
+
module$contents$goog$structs$Queue_Queue.prototype.getCount = function() {
|
|
26228
26319
|
return this.front_.length + this.back_.length;
|
|
26229
26320
|
};
|
|
26230
|
-
goog
|
|
26321
|
+
module$contents$goog$structs$Queue_Queue.prototype.isEmpty = function() {
|
|
26231
26322
|
return this.front_.length === 0 && this.back_.length === 0;
|
|
26232
26323
|
};
|
|
26233
|
-
goog
|
|
26324
|
+
module$contents$goog$structs$Queue_Queue.prototype.clear = function() {
|
|
26234
26325
|
this.front_ = [];
|
|
26235
26326
|
this.back_ = [];
|
|
26236
26327
|
};
|
|
26237
|
-
goog
|
|
26328
|
+
module$contents$goog$structs$Queue_Queue.prototype.contains = function(obj) {
|
|
26238
26329
|
return module$contents$goog$array_contains(this.front_, obj) || module$contents$goog$array_contains(this.back_, obj);
|
|
26239
26330
|
};
|
|
26240
|
-
goog
|
|
26331
|
+
module$contents$goog$structs$Queue_Queue.prototype.remove = function(obj) {
|
|
26241
26332
|
return module$contents$goog$array_removeLast(this.front_, obj) || module$contents$goog$array_remove(this.back_, obj);
|
|
26242
26333
|
};
|
|
26243
|
-
goog
|
|
26334
|
+
module$contents$goog$structs$Queue_Queue.prototype.getValues = function() {
|
|
26244
26335
|
for (var res = [], i = this.front_.length - 1; i >= 0; --i) {
|
|
26245
26336
|
res.push(this.front_[i]);
|
|
26246
26337
|
}
|
|
@@ -26249,40 +26340,41 @@ goog.structs.Queue.prototype.getValues = function() {
|
|
|
26249
26340
|
}
|
|
26250
26341
|
return res;
|
|
26251
26342
|
};
|
|
26252
|
-
goog.structs.
|
|
26343
|
+
goog.structs.Queue = module$contents$goog$structs$Queue_Queue;
|
|
26344
|
+
function module$contents$goog$structs$Pool_Pool(opt_minCount, opt_maxCount) {
|
|
26253
26345
|
goog.Disposable.call(this);
|
|
26254
26346
|
this.minCount_ = opt_minCount || 0;
|
|
26255
26347
|
this.maxCount_ = opt_maxCount || 10;
|
|
26256
26348
|
if (this.minCount_ > this.maxCount_) {
|
|
26257
|
-
throw Error(goog
|
|
26349
|
+
throw Error(module$contents$goog$structs$Pool_Pool.ERROR_MIN_MAX_);
|
|
26258
26350
|
}
|
|
26259
|
-
this.freeQueue_ = new goog
|
|
26351
|
+
this.freeQueue_ = new module$contents$goog$structs$Queue_Queue();
|
|
26260
26352
|
this.inUseSet_ = new goog.structs.Set();
|
|
26261
26353
|
this.delay = 0;
|
|
26262
26354
|
this.lastAccess = null;
|
|
26263
26355
|
this.adjustForMinMax();
|
|
26264
|
-
}
|
|
26265
|
-
goog.inherits(goog
|
|
26266
|
-
goog
|
|
26267
|
-
goog
|
|
26268
|
-
goog
|
|
26356
|
+
}
|
|
26357
|
+
goog.inherits(module$contents$goog$structs$Pool_Pool, goog.Disposable);
|
|
26358
|
+
module$contents$goog$structs$Pool_Pool.ERROR_MIN_MAX_ = "[goog.structs.Pool] Min can not be greater than max";
|
|
26359
|
+
module$contents$goog$structs$Pool_Pool.ERROR_DISPOSE_UNRELEASED_OBJS_ = "[goog.structs.Pool] Objects not released";
|
|
26360
|
+
module$contents$goog$structs$Pool_Pool.prototype.setMinimumCount = function(min) {
|
|
26269
26361
|
if (min > this.maxCount_) {
|
|
26270
|
-
throw Error(goog
|
|
26362
|
+
throw Error(module$contents$goog$structs$Pool_Pool.ERROR_MIN_MAX_);
|
|
26271
26363
|
}
|
|
26272
26364
|
this.minCount_ = min;
|
|
26273
26365
|
this.adjustForMinMax();
|
|
26274
26366
|
};
|
|
26275
|
-
goog
|
|
26367
|
+
module$contents$goog$structs$Pool_Pool.prototype.setMaximumCount = function(max) {
|
|
26276
26368
|
if (max < this.minCount_) {
|
|
26277
|
-
throw Error(goog
|
|
26369
|
+
throw Error(module$contents$goog$structs$Pool_Pool.ERROR_MIN_MAX_);
|
|
26278
26370
|
}
|
|
26279
26371
|
this.maxCount_ = max;
|
|
26280
26372
|
this.adjustForMinMax();
|
|
26281
26373
|
};
|
|
26282
|
-
goog
|
|
26374
|
+
module$contents$goog$structs$Pool_Pool.prototype.setDelay = function(delay) {
|
|
26283
26375
|
this.delay = delay;
|
|
26284
26376
|
};
|
|
26285
|
-
goog
|
|
26377
|
+
module$contents$goog$structs$Pool_Pool.prototype.getObject = function() {
|
|
26286
26378
|
var time = Date.now();
|
|
26287
26379
|
if (!(this.lastAccess != null && time - this.lastAccess < this.delay)) {
|
|
26288
26380
|
var obj = this.removeFreeObject_();
|
|
@@ -26290,21 +26382,21 @@ goog.structs.Pool.prototype.getObject = function() {
|
|
|
26290
26382
|
return obj;
|
|
26291
26383
|
}
|
|
26292
26384
|
};
|
|
26293
|
-
goog
|
|
26385
|
+
module$contents$goog$structs$Pool_Pool.prototype.releaseObject = function(obj) {
|
|
26294
26386
|
return this.inUseSet_.remove(obj) ? (this.addFreeObject(obj), !0) : !1;
|
|
26295
26387
|
};
|
|
26296
|
-
goog
|
|
26388
|
+
module$contents$goog$structs$Pool_Pool.prototype.removeFreeObject_ = function() {
|
|
26297
26389
|
for (var obj; this.getFreeCount() > 0 && (obj = this.freeQueue_.dequeue(), !this.objectCanBeReused(obj));) {
|
|
26298
26390
|
this.adjustForMinMax();
|
|
26299
26391
|
}
|
|
26300
26392
|
!obj && this.getCount() < this.maxCount_ && (obj = this.createObject());
|
|
26301
26393
|
return obj;
|
|
26302
26394
|
};
|
|
26303
|
-
goog
|
|
26395
|
+
module$contents$goog$structs$Pool_Pool.prototype.addFreeObject = function(obj) {
|
|
26304
26396
|
this.inUseSet_.remove(obj);
|
|
26305
26397
|
this.objectCanBeReused(obj) && this.getCount() < this.maxCount_ ? this.freeQueue_.enqueue(obj) : this.disposeObject(obj);
|
|
26306
26398
|
};
|
|
26307
|
-
goog
|
|
26399
|
+
module$contents$goog$structs$Pool_Pool.prototype.adjustForMinMax = function() {
|
|
26308
26400
|
for (var freeQueue = this.freeQueue_; this.getCount() < this.minCount_;) {
|
|
26309
26401
|
freeQueue.enqueue(this.createObject());
|
|
26310
26402
|
}
|
|
@@ -26312,10 +26404,10 @@ goog.structs.Pool.prototype.adjustForMinMax = function() {
|
|
|
26312
26404
|
this.disposeObject(freeQueue.dequeue());
|
|
26313
26405
|
}
|
|
26314
26406
|
};
|
|
26315
|
-
goog
|
|
26407
|
+
module$contents$goog$structs$Pool_Pool.prototype.createObject = function() {
|
|
26316
26408
|
return {};
|
|
26317
26409
|
};
|
|
26318
|
-
goog
|
|
26410
|
+
module$contents$goog$structs$Pool_Pool.prototype.disposeObject = function(obj) {
|
|
26319
26411
|
if (typeof obj.dispose == "function") {
|
|
26320
26412
|
obj.dispose();
|
|
26321
26413
|
} else {
|
|
@@ -26324,28 +26416,28 @@ goog.structs.Pool.prototype.disposeObject = function(obj) {
|
|
|
26324
26416
|
}
|
|
26325
26417
|
}
|
|
26326
26418
|
};
|
|
26327
|
-
goog
|
|
26419
|
+
module$contents$goog$structs$Pool_Pool.prototype.objectCanBeReused = function(obj) {
|
|
26328
26420
|
return typeof obj.canBeReused == "function" ? obj.canBeReused() : !0;
|
|
26329
26421
|
};
|
|
26330
|
-
goog
|
|
26422
|
+
module$contents$goog$structs$Pool_Pool.prototype.contains = function(obj) {
|
|
26331
26423
|
return this.freeQueue_.contains(obj) || this.inUseSet_.contains(obj);
|
|
26332
26424
|
};
|
|
26333
|
-
goog
|
|
26425
|
+
module$contents$goog$structs$Pool_Pool.prototype.getCount = function() {
|
|
26334
26426
|
return this.freeQueue_.getCount() + this.inUseSet_.getCount();
|
|
26335
26427
|
};
|
|
26336
|
-
goog
|
|
26428
|
+
module$contents$goog$structs$Pool_Pool.prototype.getInUseCount = function() {
|
|
26337
26429
|
return this.inUseSet_.getCount();
|
|
26338
26430
|
};
|
|
26339
|
-
goog
|
|
26431
|
+
module$contents$goog$structs$Pool_Pool.prototype.getFreeCount = function() {
|
|
26340
26432
|
return this.freeQueue_.getCount();
|
|
26341
26433
|
};
|
|
26342
|
-
goog
|
|
26434
|
+
module$contents$goog$structs$Pool_Pool.prototype.isEmpty = function() {
|
|
26343
26435
|
return this.freeQueue_.isEmpty() && this.inUseSet_.isEmpty();
|
|
26344
26436
|
};
|
|
26345
|
-
goog
|
|
26346
|
-
goog
|
|
26437
|
+
module$contents$goog$structs$Pool_Pool.prototype.disposeInternal = function() {
|
|
26438
|
+
module$contents$goog$structs$Pool_Pool.superClass_.disposeInternal.call(this);
|
|
26347
26439
|
if (this.getInUseCount() > 0) {
|
|
26348
|
-
throw Error(goog
|
|
26440
|
+
throw Error(module$contents$goog$structs$Pool_Pool.ERROR_DISPOSE_UNRELEASED_OBJS_);
|
|
26349
26441
|
}
|
|
26350
26442
|
delete this.inUseSet_;
|
|
26351
26443
|
for (var freeQueue = this.freeQueue_; !freeQueue.isEmpty();) {
|
|
@@ -26353,26 +26445,27 @@ goog.structs.Pool.prototype.disposeInternal = function() {
|
|
|
26353
26445
|
}
|
|
26354
26446
|
delete this.freeQueue_;
|
|
26355
26447
|
};
|
|
26356
|
-
goog.structs.
|
|
26448
|
+
goog.structs.Pool = module$contents$goog$structs$Pool_Pool;
|
|
26449
|
+
function module$contents$goog$structs$Node_Node(key, value) {
|
|
26357
26450
|
this.key_ = key;
|
|
26358
26451
|
this.value_ = value;
|
|
26359
|
-
}
|
|
26360
|
-
goog
|
|
26452
|
+
}
|
|
26453
|
+
module$contents$goog$structs$Node_Node.prototype.getKey = function() {
|
|
26361
26454
|
return this.key_;
|
|
26362
26455
|
};
|
|
26363
|
-
goog
|
|
26456
|
+
module$contents$goog$structs$Node_Node.prototype.getValue = function() {
|
|
26364
26457
|
return this.value_;
|
|
26365
26458
|
};
|
|
26366
|
-
goog
|
|
26367
|
-
return new goog
|
|
26459
|
+
module$contents$goog$structs$Node_Node.prototype.clone = function() {
|
|
26460
|
+
return new module$contents$goog$structs$Node_Node(this.key_, this.value_);
|
|
26368
26461
|
};
|
|
26369
26462
|
var module$contents$goog$structs$Heap_Heap = function(opt_heap) {
|
|
26370
26463
|
this.nodes_ = [];
|
|
26371
26464
|
opt_heap && this.insertAll(opt_heap);
|
|
26372
26465
|
};
|
|
26373
26466
|
module$contents$goog$structs$Heap_Heap.prototype.insert = function(key, value) {
|
|
26374
|
-
var
|
|
26375
|
-
nodes.push(
|
|
26467
|
+
var nodes = this.nodes_;
|
|
26468
|
+
nodes.push(new module$contents$goog$structs$Node_Node(key, value));
|
|
26376
26469
|
this.moveUp_(nodes.length - 1);
|
|
26377
26470
|
};
|
|
26378
26471
|
module$contents$goog$structs$Heap_Heap.prototype.insertAll = function(heap) {
|
|
@@ -26381,7 +26474,7 @@ module$contents$goog$structs$Heap_Heap.prototype.insertAll = function(heap) {
|
|
|
26381
26474
|
var values = heap.getValues();
|
|
26382
26475
|
if (this.getCount() <= 0) {
|
|
26383
26476
|
for (var nodes = this.nodes_, i = 0; i < keys.length; i++) {
|
|
26384
|
-
nodes.push(new goog
|
|
26477
|
+
nodes.push(new module$contents$goog$structs$Node_Node(keys[i], values[i]));
|
|
26385
26478
|
}
|
|
26386
26479
|
return;
|
|
26387
26480
|
}
|
|
@@ -26484,27 +26577,27 @@ module$contents$goog$structs$PriorityQueue_PriorityQueue.prototype.dequeue = fun
|
|
|
26484
26577
|
return this.remove();
|
|
26485
26578
|
};
|
|
26486
26579
|
goog.structs.PriorityQueue = module$contents$goog$structs$PriorityQueue_PriorityQueue;
|
|
26487
|
-
goog
|
|
26580
|
+
function module$contents$goog$structs$PriorityPool_PriorityPool(opt_minCount, opt_maxCount) {
|
|
26488
26581
|
this.delayTimeout_ = void 0;
|
|
26489
26582
|
this.requestQueue_ = new module$contents$goog$structs$PriorityQueue_PriorityQueue();
|
|
26490
|
-
goog
|
|
26491
|
-
}
|
|
26492
|
-
goog.inherits(goog
|
|
26493
|
-
goog
|
|
26494
|
-
goog
|
|
26495
|
-
goog
|
|
26583
|
+
module$contents$goog$structs$Pool_Pool.call(this, opt_minCount, opt_maxCount);
|
|
26584
|
+
}
|
|
26585
|
+
goog.inherits(module$contents$goog$structs$PriorityPool_PriorityPool, module$contents$goog$structs$Pool_Pool);
|
|
26586
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.DEFAULT_PRIORITY_ = 100;
|
|
26587
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.prototype.setDelay = function(delay) {
|
|
26588
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.superClass_.setDelay.call(this, delay);
|
|
26496
26589
|
this.lastAccess != null && (goog.global.clearTimeout(this.delayTimeout_), this.delayTimeout_ = goog.global.setTimeout(goog.bind(this.handleQueueRequests_, this), this.delay + this.lastAccess - Date.now()), this.handleQueueRequests_());
|
|
26497
26590
|
};
|
|
26498
|
-
goog
|
|
26591
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.prototype.getObject = function(opt_callback, opt_priority) {
|
|
26499
26592
|
if (!opt_callback) {
|
|
26500
|
-
var result = goog
|
|
26593
|
+
var result = module$contents$goog$structs$PriorityPool_PriorityPool.superClass_.getObject.call(this);
|
|
26501
26594
|
result && this.delay && (this.delayTimeout_ = goog.global.setTimeout(goog.bind(this.handleQueueRequests_, this), this.delay));
|
|
26502
26595
|
return result;
|
|
26503
26596
|
}
|
|
26504
|
-
this.requestQueue_.enqueue(opt_priority !== void 0 ? opt_priority : goog
|
|
26597
|
+
this.requestQueue_.enqueue(opt_priority !== void 0 ? opt_priority : module$contents$goog$structs$PriorityPool_PriorityPool.DEFAULT_PRIORITY_, opt_callback);
|
|
26505
26598
|
this.handleQueueRequests_();
|
|
26506
26599
|
};
|
|
26507
|
-
goog
|
|
26600
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.prototype.handleQueueRequests_ = function() {
|
|
26508
26601
|
for (var requestQueue = this.requestQueue_; requestQueue.getCount() > 0;) {
|
|
26509
26602
|
var obj = this.getObject();
|
|
26510
26603
|
if (obj) {
|
|
@@ -26514,20 +26607,21 @@ goog.structs.PriorityPool.prototype.handleQueueRequests_ = function() {
|
|
|
26514
26607
|
}
|
|
26515
26608
|
}
|
|
26516
26609
|
};
|
|
26517
|
-
goog
|
|
26518
|
-
goog
|
|
26610
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.prototype.addFreeObject = function(obj) {
|
|
26611
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.superClass_.addFreeObject.call(this, obj);
|
|
26519
26612
|
this.handleQueueRequests_();
|
|
26520
26613
|
};
|
|
26521
|
-
goog
|
|
26522
|
-
goog
|
|
26614
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.prototype.adjustForMinMax = function() {
|
|
26615
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.superClass_.adjustForMinMax.call(this);
|
|
26523
26616
|
this.handleQueueRequests_();
|
|
26524
26617
|
};
|
|
26525
|
-
goog
|
|
26526
|
-
goog
|
|
26618
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.prototype.disposeInternal = function() {
|
|
26619
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.superClass_.disposeInternal.call(this);
|
|
26527
26620
|
goog.global.clearTimeout(this.delayTimeout_);
|
|
26528
26621
|
this.requestQueue_.clear();
|
|
26529
26622
|
this.requestQueue_ = null;
|
|
26530
26623
|
};
|
|
26624
|
+
goog.structs.PriorityPool = module$contents$goog$structs$PriorityPool_PriorityPool;
|
|
26531
26625
|
var module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource = function(mapId, opt_profiler) {
|
|
26532
26626
|
module$exports$ee$layers$AbstractTileSource.call(this);
|
|
26533
26627
|
this.mapId_ = mapId;
|
|
@@ -26573,7 +26667,7 @@ module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.
|
|
|
26573
26667
|
return this.profiler_ && this.profiler_.isEnabled() ? url + "&profiling=1" : url;
|
|
26574
26668
|
};
|
|
26575
26669
|
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.getGlobalTokenPool_ = function() {
|
|
26576
|
-
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ || (module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ = new goog
|
|
26670
|
+
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ || (module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ = new module$contents$goog$structs$PriorityPool_PriorityPool(0, module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.DEFAULT_TOKEN_COUNT_));
|
|
26577
26671
|
return module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_;
|
|
26578
26672
|
};
|
|
26579
26673
|
goog.exportSymbol("ee.layers.EarthEngineTileSource", module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource);
|
|
@@ -26787,9 +26881,9 @@ ee.MapTileManager.Token_.prototype.isActive = function() {
|
|
|
26787
26881
|
return this.active_;
|
|
26788
26882
|
};
|
|
26789
26883
|
ee.MapTileManager.TokenPool_ = function(opt_minCount, opt_maxCount) {
|
|
26790
|
-
goog
|
|
26884
|
+
module$contents$goog$structs$PriorityPool_PriorityPool.call(this, opt_minCount, opt_maxCount);
|
|
26791
26885
|
};
|
|
26792
|
-
$jscomp.inherits(ee.MapTileManager.TokenPool_, goog
|
|
26886
|
+
$jscomp.inherits(ee.MapTileManager.TokenPool_, module$contents$goog$structs$PriorityPool_PriorityPool);
|
|
26793
26887
|
ee.MapTileManager.TokenPool_.prototype.createObject = function() {
|
|
26794
26888
|
return new ee.MapTileManager.Token_();
|
|
26795
26889
|
};
|
|
@@ -26881,46 +26975,47 @@ goog.exportProperty(ee.MapLayerOverlay.prototype, "addTileCallback", ee.MapLayer
|
|
|
26881
26975
|
goog.exportProperty(ee.MapLayerOverlay.prototype, "getTile", ee.MapLayerOverlay.prototype.getTile);
|
|
26882
26976
|
goog.exportProperty(ee.MapLayerOverlay.prototype, "setOpacity", ee.MapLayerOverlay.prototype.setOpacity);
|
|
26883
26977
|
goog.exportProperty(ee.MapLayerOverlay.prototype, "releaseTile", ee.MapLayerOverlay.prototype.releaseTile);
|
|
26884
|
-
goog
|
|
26978
|
+
function module$contents$goog$async$Delay_Delay(listener, opt_interval, opt_handler) {
|
|
26885
26979
|
goog.Disposable.call(this);
|
|
26886
26980
|
this.listener_ = listener;
|
|
26887
26981
|
this.interval_ = opt_interval || 0;
|
|
26888
26982
|
this.handler_ = opt_handler;
|
|
26889
26983
|
this.callback_ = goog.bind(this.doAction_, this);
|
|
26890
|
-
}
|
|
26891
|
-
goog.inherits(goog
|
|
26892
|
-
goog
|
|
26893
|
-
goog
|
|
26894
|
-
goog
|
|
26984
|
+
}
|
|
26985
|
+
goog.inherits(module$contents$goog$async$Delay_Delay, goog.Disposable);
|
|
26986
|
+
module$contents$goog$async$Delay_Delay.prototype.id_ = 0;
|
|
26987
|
+
module$contents$goog$async$Delay_Delay.prototype.disposeInternal = function() {
|
|
26988
|
+
module$contents$goog$async$Delay_Delay.superClass_.disposeInternal.call(this);
|
|
26895
26989
|
this.stop();
|
|
26896
26990
|
delete this.listener_;
|
|
26897
26991
|
delete this.handler_;
|
|
26898
26992
|
};
|
|
26899
|
-
goog
|
|
26993
|
+
module$contents$goog$async$Delay_Delay.prototype.start = function(opt_interval) {
|
|
26900
26994
|
this.stop();
|
|
26901
26995
|
this.id_ = goog.Timer.callOnce(this.callback_, opt_interval !== void 0 ? opt_interval : this.interval_);
|
|
26902
26996
|
};
|
|
26903
|
-
goog
|
|
26997
|
+
module$contents$goog$async$Delay_Delay.prototype.startIfNotActive = function(opt_interval) {
|
|
26904
26998
|
this.isActive() || this.start(opt_interval);
|
|
26905
26999
|
};
|
|
26906
|
-
goog
|
|
27000
|
+
module$contents$goog$async$Delay_Delay.prototype.stop = function() {
|
|
26907
27001
|
this.isActive() && goog.Timer.clear(this.id_);
|
|
26908
27002
|
this.id_ = 0;
|
|
26909
27003
|
};
|
|
26910
|
-
goog
|
|
27004
|
+
module$contents$goog$async$Delay_Delay.prototype.fire = function() {
|
|
26911
27005
|
this.stop();
|
|
26912
27006
|
this.doAction_();
|
|
26913
27007
|
};
|
|
26914
|
-
goog
|
|
27008
|
+
module$contents$goog$async$Delay_Delay.prototype.fireIfActive = function() {
|
|
26915
27009
|
this.isActive() && this.fire();
|
|
26916
27010
|
};
|
|
26917
|
-
goog
|
|
27011
|
+
module$contents$goog$async$Delay_Delay.prototype.isActive = function() {
|
|
26918
27012
|
return this.id_ != 0;
|
|
26919
27013
|
};
|
|
26920
|
-
goog
|
|
27014
|
+
module$contents$goog$async$Delay_Delay.prototype.doAction_ = function() {
|
|
26921
27015
|
this.id_ = 0;
|
|
26922
27016
|
this.listener_ && this.listener_.call(this.handler_);
|
|
26923
27017
|
};
|
|
27018
|
+
goog.async.Delay = module$contents$goog$async$Delay_Delay;
|
|
26924
27019
|
ee.data.Profiler = function(format) {
|
|
26925
27020
|
goog.events.EventTarget.call(this);
|
|
26926
27021
|
this.format_ = format;
|
|
@@ -26930,7 +27025,7 @@ ee.data.Profiler = function(format) {
|
|
|
26930
27025
|
this.tileProfileIds_ = Object.create(null);
|
|
26931
27026
|
this.showInternal_ = !1;
|
|
26932
27027
|
this.profileError_ = null;
|
|
26933
|
-
this.throttledRefresh_ = new goog
|
|
27028
|
+
this.throttledRefresh_ = new module$contents$goog$async$Delay_Delay(goog.bind(this.refresh_, this), ee.data.Profiler.DELAY_BEFORE_REFRESH_);
|
|
26934
27029
|
this.profileData_ = ee.data.Profiler.getEmptyProfile_(format);
|
|
26935
27030
|
this.MAX_RETRY_COUNT_ = 5;
|
|
26936
27031
|
};
|
|
@@ -27031,29 +27126,29 @@ ee.data.Profiler.Format.prototype.toString = function() {
|
|
|
27031
27126
|
ee.data.Profiler.Format.TEXT = new ee.data.Profiler.Format("text");
|
|
27032
27127
|
ee.data.Profiler.Format.JSON = new ee.data.Profiler.Format("json");
|
|
27033
27128
|
(function() {
|
|
27034
|
-
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.
|
|
27035
|
-
orderedParamLists = [["name", "namedArgs"], ["name"], ["name", "var_args"], "
|
|
27036
|
-
"
|
|
27037
|
-
|
|
27038
|
-
"collection opt_description opt_bucket opt_fileNamePrefix
|
|
27039
|
-
["
|
|
27040
|
-
"
|
|
27041
|
-
"opt_callback"], ["params", "opt_callback"], ["
|
|
27042
|
-
|
|
27043
|
-
["json"], ["
|
|
27044
|
-
|
|
27045
|
-
"opt_maxError"], ["
|
|
27046
|
-
["
|
|
27047
|
-
["
|
|
27048
|
-
[ee.ApiFunction._apply, ee.ApiFunction.lookup, ee.ApiFunction._call, module$contents$ee$batch_Export.
|
|
27049
|
-
module$contents$ee$batch_Export.
|
|
27050
|
-
ee.ComputedObject.prototype.
|
|
27051
|
-
ee.data.
|
|
27052
|
-
ee.data.
|
|
27053
|
-
ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.Feature.prototype.getMap, ee.
|
|
27054
|
-
ee.Filter.
|
|
27055
|
-
ee.Image.prototype.getMapId, ee.Image.prototype.
|
|
27056
|
-
ee.ImageCollection.prototype.
|
|
27129
|
+
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toBigQuery ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.video.toDrive ee.batch.Export.table.toDrive ee.batch.Export.image.toDrive ee.batch.Export.table.toCloudStorage ee.batch.Export.table.toAsset ee.batch.Export.classifier.toAsset ee.batch.Export.image.toAsset ee.batch.Export.map.toCloudStorage ee.Collection.prototype.map ee.Collection.prototype.iterate ee.Collection.prototype.filter ee.Collection.prototype.limit ee.Collection.prototype.sort ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterBounds ee.Collection.prototype.filterDate ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.evaluate ee.data.setAssetAcl ee.data.makeThumbUrl ee.data.authenticateViaOauth ee.data.listAssets ee.data.renameAsset ee.data.getMapId ee.data.setAssetProperties ee.data.getTaskList ee.data.getTableDownloadId ee.data.authenticate ee.data.copyAsset ee.data.getTileUrl ee.data.listBuckets ee.data.makeTableDownloadUrl ee.data.getAssetRootQuota ee.data.getTaskListWithLimit ee.data.cancelOperation ee.data.deleteAsset ee.data.startTableIngestion ee.data.listOperations ee.data.getDownloadId ee.data.makeDownloadUrl ee.data.getWorkloadTag ee.data.listImages ee.data.getAssetAcl ee.data.authenticateViaPopup ee.data.getFeatureViewTilesKey ee.data.listFeatures ee.data.getAsset ee.data.getAssetRoots ee.data.authenticateViaPrivateKey ee.data.getOperation ee.data.setWorkloadTag ee.data.createAssetHome ee.data.newTaskId ee.data.getInfo ee.data.createAsset ee.data.computeValue ee.data.getThumbId ee.data.setDefaultWorkloadTag ee.data.cancelTask ee.data.getVideoThumbId ee.data.resetWorkloadTag ee.data.getFilmstripThumbId ee.data.updateAsset ee.data.getTaskStatus ee.data.getList ee.data.updateTask ee.data.startIngestion ee.data.startProcessing ee.data.createFolder ee.Date ee.Deserializer.fromCloudApiJSON ee.Deserializer.fromJSON ee.Deserializer.decode ee.Deserializer.decodeCloudApi ee.Dictionary ee.initialize ee.reset ee.call ee.Algorithms ee.InitState ee.apply ee.TILE_SIZE ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature ee.Feature.prototype.getInfo ee.Feature.prototype.getMapId ee.Feature.prototype.getMap ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.select ee.FeatureCollection ee.FeatureCollection.prototype.getMapId ee.FeatureCollection.prototype.getDownloadURL ee.Filter.and ee.Filter.gt ee.Filter.inList ee.Filter.neq ee.Filter.lt ee.Filter.or ee.Filter.lte ee.Filter.gte ee.Filter.prototype.not ee.Filter.eq ee.Filter ee.Filter.date ee.Filter.metadata ee.Filter.bounds ee.Function.prototype.call ee.Function.prototype.apply ee.Geometry.LinearRing ee.Geometry.prototype.toGeoJSON ee.Geometry.BBox ee.Geometry.prototype.toGeoJSONString ee.Geometry.MultiPoint ee.Geometry ee.Geometry.Rectangle ee.Geometry.LineString ee.Geometry.Polygon ee.Geometry.Point ee.Geometry.prototype.serialize ee.Geometry.MultiPolygon ee.Geometry.MultiLineString ee.Image.prototype.getInfo ee.Image.prototype.getMapId ee.Image.prototype.getMap ee.Image.prototype.rename ee.Image.prototype.expression ee.Image.prototype.clip ee.Image.rgb ee.Image.prototype.getThumbURL ee.Image.cat ee.Image ee.Image.prototype.getDownloadURL ee.Image.prototype.select ee.Image.prototype.getThumbId ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.linkCollection ee.ImageCollection ee.ImageCollection.prototype.first ee.List ee.Number ee.Serializer.toReadableCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encode ee.Serializer.toJSON ee.Serializer.encodeCloudApi ee.Serializer.toCloudApiJSON ee.Serializer.toReadableJSON ee.String ee.Terrain".split(" "),
|
|
27130
|
+
orderedParamLists = [["name", "namedArgs"], ["name"], ["name", "var_args"], "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "), "collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices opt_priority".split(" "),
|
|
27131
|
+
"image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "),
|
|
27132
|
+
"collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), "image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "),
|
|
27133
|
+
"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), ["collection", "opt_description", "opt_assetId", "opt_maxVertices", "opt_priority"], ["classifier", "opt_description", "opt_assetId", "opt_priority"], "image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_priority".split(" "), "image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),
|
|
27134
|
+
["algorithm", "opt_dropNulls"], ["algorithm", "opt_first"], ["filter"], ["max", "opt_property", "opt_ascending"], ["property", "opt_ascending"], ["name", "operator", "value"], ["geometry"], ["start", "opt_end"], ["opt_callback"], ["legacy"], ["func", "var_args"], ["callback"], ["assetId", "aclUpdate", "opt_callback"], ["id"], "clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "), ["parent", "opt_params", "opt_callback"], ["sourceId", "destinationId",
|
|
27135
|
+
"opt_callback"], ["params", "opt_callback"], ["assetId", "properties", "opt_callback"], ["opt_callback"], ["params", "opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["id", "x", "y", "z"], ["project", "opt_callback"], ["id"], ["rootId", "opt_callback"], ["opt_limit", "opt_callback"], ["operationName", "opt_callback"], ["assetId", "opt_callback"], ["taskId", "request", "opt_callback"],
|
|
27136
|
+
["opt_limit", "opt_callback"], ["params", "opt_callback"], ["id"], [], ["parent", "opt_params", "opt_callback"], ["assetId", "opt_callback"], ["opt_success", "opt_error"], ["params", "opt_callback"], ["asset", "params", "opt_callback"], ["id", "opt_callback"], ["opt_callback"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes", "opt_suppressDefaultScopes"], ["operationName", "opt_callback"], ["tag"], ["requestedId", "opt_callback"], ["opt_count", "opt_callback"], ["id", "opt_callback"],
|
|
27137
|
+
["value", "opt_path", "opt_force", "opt_properties", "opt_callback"], ["obj", "opt_callback"], ["params", "opt_callback"], ["tag"], ["taskId", "opt_callback"], ["params", "opt_callback"], ["opt_resetDefault"], ["params", "opt_callback"], ["assetId", "asset", "updateFields", "opt_callback"], ["taskId", "opt_callback"], ["params", "opt_callback"], ["taskId", "action", "opt_callback"], ["taskId", "request", "opt_callback"], ["taskId", "params", "opt_callback"], ["path", "opt_force", "opt_callback"],
|
|
27138
|
+
["date", "opt_tz"], ["json"], ["json"], ["json"], ["json"], ["opt_dict"], "opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "), [], ["func", "var_args"], [], [], ["func", "namedArgs"], [], ["var_args"], [], ["geometry", "opt_properties"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], ["args",
|
|
27139
|
+
"opt_column"], ["opt_visParams", "opt_callback"], ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["var_args"], ["name", "value"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["name", "value"], ["name", "value"], ["var_args"], ["name", "value"], ["name", "value"], [], ["name", "value"], ["opt_filter"], ["start", "opt_end"], ["name", "operator", "value"], ["geometry", "opt_errorMargin"], ["var_args"], ["namedArgs"], ["coords", "opt_proj", "opt_geodesic",
|
|
27140
|
+
"opt_maxError"], [], ["west", "south", "east", "north"], [], ["coords", "opt_proj"], ["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj"], ["legacy"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["opt_callback"],
|
|
27141
|
+
["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["var_args"], ["expression", "opt_map"], ["geometry"], ["r", "g", "b"], ["params", "opt_callback"], ["var_args"], ["opt_args"], ["params", "opt_callback"], ["var_args"], ["params", "opt_callback"], ["params", "opt_callback"], ["opt_callback"], ["selectors", "opt_names"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], ["opt_visParams", "opt_callback"], ["imageCollection", "opt_linkedBands", "opt_linkedProperties",
|
|
27142
|
+
"opt_matchPropertyName"], ["args"], [], ["list"], ["number"], ["obj"], ["obj"], ["obj", "opt_isCompound"], ["obj"], ["obj"], ["obj"], ["obj"], ["string"], []];
|
|
27143
|
+
[ee.ApiFunction._apply, ee.ApiFunction.lookup, ee.ApiFunction._call, module$contents$ee$batch_Export.videoMap.toCloudStorage, module$contents$ee$batch_Export.table.toBigQuery, module$contents$ee$batch_Export.image.toCloudStorage, module$contents$ee$batch_Export.video.toCloudStorage, module$contents$ee$batch_Export.table.toFeatureView, module$contents$ee$batch_Export.video.toDrive, module$contents$ee$batch_Export.table.toDrive, module$contents$ee$batch_Export.image.toDrive, module$contents$ee$batch_Export.table.toCloudStorage,
|
|
27144
|
+
module$contents$ee$batch_Export.table.toAsset, module$contents$ee$batch_Export.classifier.toAsset, module$contents$ee$batch_Export.image.toAsset, module$contents$ee$batch_Export.map.toCloudStorage, ee.Collection.prototype.map, ee.Collection.prototype.iterate, ee.Collection.prototype.filter, ee.Collection.prototype.limit, ee.Collection.prototype.sort, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.filterBounds, ee.Collection.prototype.filterDate, ee.ComputedObject.prototype.getInfo,
|
|
27145
|
+
ee.ComputedObject.prototype.serialize, ee.ComputedObject.prototype.aside, ee.ComputedObject.prototype.evaluate, ee.data.setAssetAcl, ee.data.makeThumbUrl, ee.data.authenticateViaOauth, ee.data.listAssets, ee.data.renameAsset, ee.data.getMapId, ee.data.setAssetProperties, ee.data.getTaskList, ee.data.getTableDownloadId, ee.data.authenticate, ee.data.copyAsset, ee.data.getTileUrl, ee.data.listBuckets, ee.data.makeTableDownloadUrl, ee.data.getAssetRootQuota, ee.data.getTaskListWithLimit, ee.data.cancelOperation,
|
|
27146
|
+
ee.data.deleteAsset, ee.data.startTableIngestion, ee.data.listOperations, ee.data.getDownloadId, ee.data.makeDownloadUrl, ee.data.getWorkloadTag, ee.data.listImages, ee.data.getAssetAcl, ee.data.authenticateViaPopup, ee.data.getFeatureViewTilesKey, ee.data.listFeatures, ee.data.getAsset, ee.data.getAssetRoots, ee.data.authenticateViaPrivateKey, ee.data.getOperation, ee.data.setWorkloadTag, ee.data.createAssetHome, ee.data.newTaskId, ee.data.getInfo, ee.data.createAsset, ee.data.computeValue, ee.data.getThumbId,
|
|
27147
|
+
ee.data.setDefaultWorkloadTag, ee.data.cancelTask, ee.data.getVideoThumbId, ee.data.resetWorkloadTag, ee.data.getFilmstripThumbId, ee.data.updateAsset, ee.data.getTaskStatus, ee.data.getList, ee.data.updateTask, ee.data.startIngestion, ee.data.startProcessing, ee.data.createFolder, ee.Date, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.fromJSON, ee.Deserializer.decode, ee.Deserializer.decodeCloudApi, ee.Dictionary, ee.initialize, ee.reset, ee.call, ee.Algorithms, ee.InitState, ee.apply, ee.TILE_SIZE,
|
|
27148
|
+
ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.Feature.prototype.getMap, ee.FeatureCollection.prototype.getMap, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection.prototype.select, ee.FeatureCollection, ee.FeatureCollection.prototype.getMapId, ee.FeatureCollection.prototype.getDownloadURL, ee.Filter.and, ee.Filter.gt, ee.Filter.inList, ee.Filter.neq, ee.Filter.lt, ee.Filter.or, ee.Filter.lte, ee.Filter.gte,
|
|
27149
|
+
ee.Filter.prototype.not, ee.Filter.eq, ee.Filter, ee.Filter.date, ee.Filter.metadata, ee.Filter.bounds, ee.Function.prototype.call, ee.Function.prototype.apply, ee.Geometry.LinearRing, ee.Geometry.prototype.toGeoJSON, ee.Geometry.BBox, ee.Geometry.prototype.toGeoJSONString, ee.Geometry.MultiPoint, ee.Geometry, ee.Geometry.Rectangle, ee.Geometry.LineString, ee.Geometry.Polygon, ee.Geometry.Point, ee.Geometry.prototype.serialize, ee.Geometry.MultiPolygon, ee.Geometry.MultiLineString, ee.Image.prototype.getInfo,
|
|
27150
|
+
ee.Image.prototype.getMapId, ee.Image.prototype.getMap, ee.Image.prototype.rename, ee.Image.prototype.expression, ee.Image.prototype.clip, ee.Image.rgb, ee.Image.prototype.getThumbURL, ee.Image.cat, ee.Image, ee.Image.prototype.getDownloadURL, ee.Image.prototype.select, ee.Image.prototype.getThumbId, ee.ImageCollection.prototype.getVideoThumbURL, ee.ImageCollection.prototype.getInfo, ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.getMapId, ee.ImageCollection.prototype.getFilmstripThumbURL,
|
|
27151
|
+
ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.linkCollection, ee.ImageCollection, ee.ImageCollection.prototype.first, ee.List, ee.Number, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.encode, ee.Serializer.toJSON, ee.Serializer.encodeCloudApi, ee.Serializer.toCloudApiJSON, ee.Serializer.toReadableJSON, ee.String, ee.Terrain].forEach(function(fn, i) {
|
|
27057
27152
|
fn && (exportedFnInfo[fn.toString()] = {name:orderedFnNames[i], paramNames:orderedParamLists[i]});
|
|
27058
27153
|
});
|
|
27059
27154
|
goog.global.EXPORTED_FN_INFO = exportedFnInfo;
|