@google/earthengine 0.1.417 → 0.1.419
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/build/browser.js +1463 -1388
- package/build/ee_api_js.js +618 -618
- package/build/ee_api_js_debug.js +1440 -1365
- package/build/ee_api_js_npm.js +1463 -1388
- package/build/main.js +1463 -1388
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/eeapiclient/request_params.ts +16 -1
- package/src/eeapiclient/request_params_test.ts +16 -0
package/build/browser.js
CHANGED
|
@@ -16,7 +16,7 @@ $jscomp.SIMPLE_FROUND_POLYFILL = !1;
|
|
|
16
16
|
$jscomp.ISOLATE_POLYFILLS = !1;
|
|
17
17
|
$jscomp.FORCE_POLYFILL_PROMISE = !1;
|
|
18
18
|
$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION = !1;
|
|
19
|
-
$jscomp.INSTRUMENT_ASYNC_CONTEXT = !
|
|
19
|
+
$jscomp.INSTRUMENT_ASYNC_CONTEXT = !0;
|
|
20
20
|
$jscomp.defineProperty = $jscomp.ASSUME_ES5 || typeof Object.defineProperties == "function" ? Object.defineProperty : function(target, property, descriptor) {
|
|
21
21
|
if (target == Array.prototype || target == Object.prototype) {
|
|
22
22
|
return target;
|
|
@@ -764,6 +764,28 @@ $jscomp.polyfill("Array.prototype.keys", function(orig) {
|
|
|
764
764
|
});
|
|
765
765
|
};
|
|
766
766
|
}, "es6", "es3");
|
|
767
|
+
$jscomp.checkStringArgs = function(thisArg, arg, func) {
|
|
768
|
+
if (thisArg == null) {
|
|
769
|
+
throw new TypeError("The 'this' value for String.prototype." + func + " must not be null or undefined");
|
|
770
|
+
}
|
|
771
|
+
if (arg instanceof RegExp) {
|
|
772
|
+
throw new TypeError("First argument to String.prototype." + func + " must not be a regular expression");
|
|
773
|
+
}
|
|
774
|
+
return thisArg + "";
|
|
775
|
+
};
|
|
776
|
+
$jscomp.polyfill("String.prototype.endsWith", function(orig) {
|
|
777
|
+
return orig ? orig : function(searchString, opt_position) {
|
|
778
|
+
var string = $jscomp.checkStringArgs(this, searchString, "endsWith");
|
|
779
|
+
searchString += "";
|
|
780
|
+
opt_position === void 0 && (opt_position = string.length);
|
|
781
|
+
for (var i = Math.max(0, Math.min(opt_position | 0, string.length)), j = searchString.length; j > 0 && i > 0;) {
|
|
782
|
+
if (string[--i] != searchString[--j]) {
|
|
783
|
+
return !1;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
return j <= 0;
|
|
787
|
+
};
|
|
788
|
+
}, "es6", "es3");
|
|
767
789
|
$jscomp.checkEs6ConformanceViaProxy = function() {
|
|
768
790
|
try {
|
|
769
791
|
var proxied = {}, proxy = Object.create(new $jscomp.global.Proxy(proxied, {get:function(target, key, receiver) {
|
|
@@ -1062,28 +1084,6 @@ $jscomp.polyfill("Set", function(NativeSet) {
|
|
|
1062
1084
|
};
|
|
1063
1085
|
return PolyfillSet;
|
|
1064
1086
|
}, "es6", "es3");
|
|
1065
|
-
$jscomp.checkStringArgs = function(thisArg, arg, func) {
|
|
1066
|
-
if (thisArg == null) {
|
|
1067
|
-
throw new TypeError("The 'this' value for String.prototype." + func + " must not be null or undefined");
|
|
1068
|
-
}
|
|
1069
|
-
if (arg instanceof RegExp) {
|
|
1070
|
-
throw new TypeError("First argument to String.prototype." + func + " must not be a regular expression");
|
|
1071
|
-
}
|
|
1072
|
-
return thisArg + "";
|
|
1073
|
-
};
|
|
1074
|
-
$jscomp.polyfill("String.prototype.endsWith", function(orig) {
|
|
1075
|
-
return orig ? orig : function(searchString, opt_position) {
|
|
1076
|
-
var string = $jscomp.checkStringArgs(this, searchString, "endsWith");
|
|
1077
|
-
searchString += "";
|
|
1078
|
-
opt_position === void 0 && (opt_position = string.length);
|
|
1079
|
-
for (var i = Math.max(0, Math.min(opt_position | 0, string.length)), j = searchString.length; j > 0 && i > 0;) {
|
|
1080
|
-
if (string[--i] != searchString[--j]) {
|
|
1081
|
-
return !1;
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
return j <= 0;
|
|
1085
|
-
};
|
|
1086
|
-
}, "es6", "es3");
|
|
1087
1087
|
$jscomp.polyfill("Array.prototype.entries", function(orig) {
|
|
1088
1088
|
return orig ? orig : function() {
|
|
1089
1089
|
return $jscomp.iteratorFromArray(this, function(i, v) {
|
|
@@ -1249,7 +1249,7 @@ $jscomp.polyfill("String.prototype.padStart", function(orig) {
|
|
|
1249
1249
|
return $jscomp.stringPadding(opt_padString, targetLength - string.length) + string;
|
|
1250
1250
|
};
|
|
1251
1251
|
}, "es8", "es3");
|
|
1252
|
-
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1,
|
|
1252
|
+
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_flush_queue_fix__disable:!1, GoogFlags__client_only_wiz_ordered_reaction_execution__disable:!1, GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__enable:!1, GoogFlags__jspb_enable_low_index_extension_writes__disable:!1, GoogFlags__jspb_ignore_implicit_extension_deps__enable:!1, GoogFlags__jspb_readonly_repeated_fields__disable:!1, GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__disable:!1,
|
|
1253
1253
|
GoogFlags__override_disable_toggles:!1, GoogFlags__testonly_debug_flag__enable:!1, GoogFlags__testonly_disabled_flag__enable:!1, GoogFlags__testonly_stable_flag__disable:!1, GoogFlags__testonly_staging_flag__disable:!1, GoogFlags__use_toggles:!1, GoogFlags__use_user_agent_client_hints__enable:!1, GoogFlags__wiz_enable_native_promise__enable:!1};
|
|
1254
1254
|
/*
|
|
1255
1255
|
|
|
@@ -2145,9 +2145,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
2145
2145
|
};
|
|
2146
2146
|
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;
|
|
2147
2147
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
2148
|
-
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$
|
|
2149
|
-
{mapMetadata:void 0}, $jscomp$key$
|
|
2150
|
-
var key = $jscomp$key$
|
|
2148
|
+
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 =
|
|
2149
|
+
{mapMetadata:void 0}, $jscomp$key$m1892927425$40$key = $jscomp$iter$19.next()) {
|
|
2150
|
+
var key = $jscomp$key$m1892927425$40$key.value, value = valueGetter(key, source);
|
|
2151
2151
|
if (value != null) {
|
|
2152
2152
|
var copy = void 0;
|
|
2153
2153
|
if (arrays.hasOwnProperty(key)) {
|
|
@@ -2158,11 +2158,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2158
2158
|
} else if (objects.hasOwnProperty(key)) {
|
|
2159
2159
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
2160
2160
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
2161
|
-
$jscomp$loop$
|
|
2161
|
+
$jscomp$loop$m1892927425$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m1892927425$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m1892927425$44) {
|
|
2162
2162
|
return function(v) {
|
|
2163
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
2163
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2164
2164
|
};
|
|
2165
|
-
}($jscomp$loop$
|
|
2165
|
+
}($jscomp$loop$m1892927425$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2166
2166
|
} else if (Array.isArray(value)) {
|
|
2167
2167
|
if (metadata.emptyArrayIsUnset && value.length === 0) {
|
|
2168
2168
|
continue;
|
|
@@ -2177,8 +2177,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2177
2177
|
return target;
|
|
2178
2178
|
}
|
|
2179
2179
|
function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
|
|
2180
|
-
for (var objMap = {}, $jscomp$iter$20 = (0,$jscomp.makeIterator)(Object.keys(value)), $jscomp$key$
|
|
2181
|
-
var mapKey = $jscomp$key$
|
|
2180
|
+
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()) {
|
|
2181
|
+
var mapKey = $jscomp$key$m1892927425$41$mapKey.value, mapValue = value[mapKey];
|
|
2182
2182
|
mapValue != null && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
|
|
2183
2183
|
}
|
|
2184
2184
|
return objMap;
|
|
@@ -2208,39 +2208,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
2208
2208
|
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))) {
|
|
2209
2209
|
return !1;
|
|
2210
2210
|
}
|
|
2211
|
-
for (var $jscomp$iter$21 = (0,$jscomp.makeIterator)(keys1), $jscomp$key$
|
|
2212
|
-
var key = $jscomp$key$
|
|
2211
|
+
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()) {
|
|
2212
|
+
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);
|
|
2213
2213
|
if (has1 !== has2) {
|
|
2214
2214
|
return !1;
|
|
2215
2215
|
}
|
|
2216
2216
|
if (has1) {
|
|
2217
2217
|
var value1 = serializable1.Serializable$get(key);
|
|
2218
|
-
$jscomp$loop$
|
|
2218
|
+
$jscomp$loop$m1892927425$45.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
2219
2219
|
if (arrays1.hasOwnProperty(key)) {
|
|
2220
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2220
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !0)) {
|
|
2221
2221
|
return !1;
|
|
2222
2222
|
}
|
|
2223
2223
|
} else if (objects1.hasOwnProperty(key)) {
|
|
2224
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2224
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !0)) {
|
|
2225
2225
|
return !1;
|
|
2226
2226
|
}
|
|
2227
2227
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
2228
|
-
if ($jscomp$loop$
|
|
2229
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
2228
|
+
if ($jscomp$loop$m1892927425$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2.isPropertyArray) {
|
|
2229
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m1892927425$45) {
|
|
2230
2230
|
return function(v1, i) {
|
|
2231
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
2231
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m1892927425$45.value2$jscomp$7[i], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2);
|
|
2232
2232
|
};
|
|
2233
|
-
}($jscomp$loop$
|
|
2233
|
+
}($jscomp$loop$m1892927425$45))) {
|
|
2234
2234
|
return !1;
|
|
2235
2235
|
}
|
|
2236
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
2236
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2)) {
|
|
2237
2237
|
return !1;
|
|
2238
2238
|
}
|
|
2239
2239
|
} else if (Array.isArray(value1)) {
|
|
2240
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2240
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !1)) {
|
|
2241
2241
|
return !1;
|
|
2242
2242
|
}
|
|
2243
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2243
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !1)) {
|
|
2244
2244
|
return !1;
|
|
2245
2245
|
}
|
|
2246
2246
|
}
|
|
@@ -2262,8 +2262,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
|
|
|
2262
2262
|
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
|
|
2263
2263
|
return !1;
|
|
2264
2264
|
}
|
|
2265
|
-
for (var $jscomp$iter$22 = (0,$jscomp.makeIterator)(Object.keys(value1)), $jscomp$key$
|
|
2266
|
-
var mapKey = $jscomp$key$
|
|
2265
|
+
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()) {
|
|
2266
|
+
var mapKey = $jscomp$key$m1892927425$43$mapKey.value;
|
|
2267
2267
|
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
|
|
2268
2268
|
return !1;
|
|
2269
2269
|
}
|
|
@@ -2344,15 +2344,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
|
|
|
2344
2344
|
this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
|
|
2345
2345
|
};
|
|
2346
2346
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
|
|
2347
|
-
var $jscomp$this$
|
|
2347
|
+
var $jscomp$this$m133342051$6 = this, payload = "--" + this._boundary + "\r\n";
|
|
2348
2348
|
payload += this._metadataPayload;
|
|
2349
2349
|
return Promise.all(this.files.map(function(f) {
|
|
2350
|
-
return $jscomp$this$
|
|
2350
|
+
return $jscomp$this$m133342051$6.encodeFile(f);
|
|
2351
2351
|
})).then(function(filePayloads) {
|
|
2352
|
-
for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$
|
|
2353
|
-
payload += $jscomp$key$
|
|
2352
|
+
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()) {
|
|
2353
|
+
payload += $jscomp$key$m133342051$9$filePayload.value;
|
|
2354
2354
|
}
|
|
2355
|
-
return payload += "\r\n--" + $jscomp$this$
|
|
2355
|
+
return payload += "\r\n--" + $jscomp$this$m133342051$6._boundary + "--";
|
|
2356
2356
|
});
|
|
2357
2357
|
};
|
|
2358
2358
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
|
|
@@ -2777,6 +2777,7 @@ goog.string.internal.compareElements_ = function(left, right) {
|
|
|
2777
2777
|
};
|
|
2778
2778
|
/*
|
|
2779
2779
|
|
|
2780
|
+
Copyright Google LLC
|
|
2780
2781
|
SPDX-License-Identifier: Apache-2.0
|
|
2781
2782
|
*/
|
|
2782
2783
|
var module$contents$safevalues$environment$dev_module = module$contents$safevalues$environment$dev_module || {id:"third_party/javascript/safevalues/environment/dev.closure.js"};
|
|
@@ -2914,64 +2915,66 @@ goog.string.Const.from = function(s) {
|
|
|
2914
2915
|
goog.string.Const.TYPE_MARKER_ = {};
|
|
2915
2916
|
goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ = {};
|
|
2916
2917
|
goog.string.Const.EMPTY = goog.string.Const.from("");
|
|
2917
|
-
goog
|
|
2918
|
-
if (goog.DEBUG && token !== goog
|
|
2918
|
+
var module$contents$goog$html$TrustedResourceUrl_CONSTRUCTOR_TOKEN_PRIVATE_ = {}, module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl = function(value, token) {
|
|
2919
|
+
if (goog.DEBUG && token !== module$contents$goog$html$TrustedResourceUrl_CONSTRUCTOR_TOKEN_PRIVATE_) {
|
|
2919
2920
|
throw Error("TrustedResourceUrl is not meant to be built directly");
|
|
2920
2921
|
}
|
|
2921
2922
|
this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_ = value;
|
|
2922
2923
|
};
|
|
2923
|
-
goog
|
|
2924
|
+
module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.prototype.toString = function() {
|
|
2924
2925
|
return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_ + "";
|
|
2925
2926
|
};
|
|
2926
|
-
goog
|
|
2927
|
-
|
|
2928
|
-
return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(parts[1] + goog.html.TrustedResourceUrl.stringifyParams_("?", parts[2] || "", searchParams) + goog.html.TrustedResourceUrl.stringifyParams_("#", urlHash, opt_hashParams));
|
|
2927
|
+
module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.prototype.cloneWithParams = function(searchParams, opt_hashParams) {
|
|
2928
|
+
return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.cloneWithParams(this, searchParams, opt_hashParams);
|
|
2929
2929
|
};
|
|
2930
|
-
goog
|
|
2931
|
-
|
|
2930
|
+
module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.cloneWithParams = function(url, searchParams, opt_hashParams) {
|
|
2931
|
+
var urlString = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(url), parts = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.URL_PARAM_PARSER_.exec(urlString), urlHash = parts[3] || "";
|
|
2932
|
+
return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(parts[1] + module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.stringifyParams_("?", parts[2] || "", searchParams) + module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.stringifyParams_("#", urlHash, opt_hashParams));
|
|
2932
2933
|
};
|
|
2933
|
-
goog
|
|
2934
|
-
|
|
2934
|
+
module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap = function(trustedResourceUrl) {
|
|
2935
|
+
return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrapTrustedScriptURL(trustedResourceUrl).toString();
|
|
2936
|
+
};
|
|
2937
|
+
module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrapTrustedScriptURL = function(trustedResourceUrl) {
|
|
2938
|
+
if (trustedResourceUrl instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl && trustedResourceUrl.constructor === module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl) {
|
|
2935
2939
|
return trustedResourceUrl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_;
|
|
2936
2940
|
}
|
|
2937
2941
|
goog.asserts.fail("expected object of type TrustedResourceUrl, got '%s' of type %s", trustedResourceUrl, goog.typeOf(trustedResourceUrl));
|
|
2938
2942
|
return "type_error:TrustedResourceUrl";
|
|
2939
2943
|
};
|
|
2940
|
-
goog
|
|
2944
|
+
module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.format = function(format, args) {
|
|
2941
2945
|
var formatStr = goog.string.Const.unwrap(format);
|
|
2942
|
-
if (!goog
|
|
2946
|
+
if (!module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.BASE_URL_.test(formatStr)) {
|
|
2943
2947
|
throw Error("Invalid TrustedResourceUrl format: " + formatStr);
|
|
2944
2948
|
}
|
|
2945
|
-
var result = formatStr.replace(goog
|
|
2949
|
+
var result = formatStr.replace(module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.FORMAT_MARKER_, function(match, id) {
|
|
2946
2950
|
if (!Object.prototype.hasOwnProperty.call(args, id)) {
|
|
2947
2951
|
throw Error('Found marker, "' + id + '", in format string, "' + formatStr + '", but no valid label mapping found in args: ' + JSON.stringify(args));
|
|
2948
2952
|
}
|
|
2949
2953
|
var arg = args[id];
|
|
2950
2954
|
return arg instanceof goog.string.Const ? goog.string.Const.unwrap(arg) : encodeURIComponent(String(arg));
|
|
2951
2955
|
});
|
|
2952
|
-
return goog
|
|
2956
|
+
return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(result);
|
|
2953
2957
|
};
|
|
2954
|
-
goog
|
|
2955
|
-
goog
|
|
2956
|
-
goog
|
|
2957
|
-
goog
|
|
2958
|
-
return goog
|
|
2958
|
+
module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.FORMAT_MARKER_ = /%{(\w+)}/g;
|
|
2959
|
+
module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.BASE_URL_ = RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)", "i");
|
|
2960
|
+
module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.URL_PARAM_PARSER_ = /^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/;
|
|
2961
|
+
module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.formatWithParams = function(format, args, searchParams, opt_hashParams) {
|
|
2962
|
+
return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.format(format, args).cloneWithParams(searchParams, opt_hashParams);
|
|
2959
2963
|
};
|
|
2960
|
-
goog
|
|
2961
|
-
return goog
|
|
2964
|
+
module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.fromConstant = function(url) {
|
|
2965
|
+
return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(url));
|
|
2962
2966
|
};
|
|
2963
|
-
goog
|
|
2967
|
+
module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.fromConstants = function(parts) {
|
|
2964
2968
|
for (var unwrapped = "", i = 0; i < parts.length; i++) {
|
|
2965
2969
|
unwrapped += goog.string.Const.unwrap(parts[i]);
|
|
2966
2970
|
}
|
|
2967
|
-
return goog
|
|
2971
|
+
return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(unwrapped);
|
|
2968
2972
|
};
|
|
2969
|
-
goog
|
|
2970
|
-
goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse = function(url) {
|
|
2973
|
+
module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse = function(url) {
|
|
2971
2974
|
var noinlineUrl = url, policy = goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse(), value = policy ? policy.createScriptURL(noinlineUrl) : noinlineUrl;
|
|
2972
|
-
return new goog
|
|
2975
|
+
return new module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl(value, module$contents$goog$html$TrustedResourceUrl_CONSTRUCTOR_TOKEN_PRIVATE_);
|
|
2973
2976
|
};
|
|
2974
|
-
goog
|
|
2977
|
+
module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.stringifyParams_ = function(prefix, currentString, params) {
|
|
2975
2978
|
if (params == null) {
|
|
2976
2979
|
return currentString;
|
|
2977
2980
|
}
|
|
@@ -2988,22 +2991,25 @@ goog.html.TrustedResourceUrl.stringifyParams_ = function(prefix, currentString,
|
|
|
2988
2991
|
}
|
|
2989
2992
|
return currentString;
|
|
2990
2993
|
};
|
|
2994
|
+
goog.html.TrustedResourceUrl = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl;
|
|
2995
|
+
var module$exports$goog$html$trustedresourceurl_internals_for_safevalues = {};
|
|
2996
|
+
module$exports$goog$html$trustedresourceurl_internals_for_safevalues.createTrustedResourceUrl = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse;
|
|
2991
2997
|
var module$exports$safevalues$internals$resource_url_impl = {}, module$contents$safevalues$internals$resource_url_impl_module = module$contents$safevalues$internals$resource_url_impl_module || {id:"third_party/javascript/safevalues/internals/resource_url_impl.closure.js"};
|
|
2992
|
-
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl = goog
|
|
2998
|
+
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl;
|
|
2993
2999
|
function module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(url) {
|
|
2994
|
-
return (0,goog
|
|
3000
|
+
return (0,module$exports$goog$html$trustedresourceurl_internals_for_safevalues.createTrustedResourceUrl)(url);
|
|
2995
3001
|
}
|
|
2996
3002
|
module$exports$safevalues$internals$resource_url_impl.createResourceUrlInternal = module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal;
|
|
2997
3003
|
function module$contents$safevalues$internals$resource_url_impl_isResourceUrl(value) {
|
|
2998
|
-
return value instanceof goog
|
|
3004
|
+
return value instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl;
|
|
2999
3005
|
}
|
|
3000
3006
|
module$exports$safevalues$internals$resource_url_impl.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
|
|
3001
3007
|
function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(value) {
|
|
3002
|
-
return goog
|
|
3008
|
+
return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrapTrustedScriptURL(value);
|
|
3003
3009
|
}
|
|
3004
3010
|
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
3005
|
-
var $jscomp$templatelit$
|
|
3006
|
-
["\\0"]), $jscomp$templatelit$
|
|
3011
|
+
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"],
|
|
3012
|
+
["\\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"};
|
|
3007
3013
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
3008
3014
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
3009
3015
|
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 ##############################");
|
|
@@ -3017,14 +3023,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
3017
3023
|
return fn.toString().indexOf("`") === -1;
|
|
3018
3024
|
}
|
|
3019
3025
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
3020
|
-
return tag($jscomp$templatelit$
|
|
3026
|
+
return tag($jscomp$templatelit$m425881384$5);
|
|
3021
3027
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
3022
|
-
return tag($jscomp$templatelit$
|
|
3028
|
+
return tag($jscomp$templatelit$m425881384$6);
|
|
3023
3029
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
3024
|
-
return tag($jscomp$templatelit$
|
|
3030
|
+
return tag($jscomp$templatelit$m425881384$7);
|
|
3025
3031
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
3026
|
-
return tag($jscomp$templatelit$
|
|
3027
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
3032
|
+
return tag($jscomp$templatelit$m425881384$8);
|
|
3033
|
+
}), 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);
|
|
3028
3034
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
3029
3035
|
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)) ?
|
|
3030
3036
|
!0 : !1;
|
|
@@ -3294,672 +3300,320 @@ function module$contents$safevalues$internals$attribute_impl_unwrapAttributePref
|
|
|
3294
3300
|
throw Error(message);
|
|
3295
3301
|
}
|
|
3296
3302
|
module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
+
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"}, module$contents$safevalues$internals$html_impl_trustedTypes = goog.global.trustedTypes;
|
|
3304
|
+
module$exports$safevalues$internals$html_impl.SafeHtml = function(token, value) {
|
|
3305
|
+
goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
3306
|
+
this.privateDoNotAccessOrElseWrappedHtml = value;
|
|
3307
|
+
};
|
|
3308
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.prototype.toString = function() {
|
|
3309
|
+
return this.privateDoNotAccessOrElseWrappedHtml + "";
|
|
3310
|
+
};
|
|
3311
|
+
var module$contents$safevalues$internals$html_impl_HtmlImpl = module$exports$safevalues$internals$html_impl.SafeHtml;
|
|
3312
|
+
function module$contents$safevalues$internals$html_impl_constructHtml(value) {
|
|
3313
|
+
return new module$exports$safevalues$internals$html_impl.SafeHtml(module$exports$safevalues$internals$secrets.secretToken, value);
|
|
3303
3314
|
}
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
goog.asserts.assert(arr.length != null);
|
|
3308
|
-
return Array.prototype.indexOf.call(arr, obj, opt_fromIndex);
|
|
3309
|
-
} : function(arr, obj, opt_fromIndex) {
|
|
3310
|
-
var fromIndex = opt_fromIndex == null ? 0 : opt_fromIndex < 0 ? Math.max(0, arr.length + opt_fromIndex) : opt_fromIndex;
|
|
3311
|
-
if (typeof arr === "string") {
|
|
3312
|
-
return typeof obj !== "string" || obj.length != 1 ? -1 : arr.indexOf(obj, fromIndex);
|
|
3313
|
-
}
|
|
3314
|
-
for (var i = fromIndex; i < arr.length; i++) {
|
|
3315
|
-
if (i in arr && arr[i] === obj) {
|
|
3316
|
-
return i;
|
|
3317
|
-
}
|
|
3318
|
-
}
|
|
3319
|
-
return -1;
|
|
3315
|
+
module$exports$safevalues$internals$html_impl.createHtmlInternal = function(value) {
|
|
3316
|
+
var noinlineValue = value, policy = (0,goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse)();
|
|
3317
|
+
return module$contents$safevalues$internals$html_impl_constructHtml(policy ? policy.createHTML(noinlineValue) : noinlineValue);
|
|
3320
3318
|
};
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
for (var i = fromIndex; i >= 0; i--) {
|
|
3332
|
-
if (i in arr && arr[i] === obj) {
|
|
3333
|
-
return i;
|
|
3334
|
-
}
|
|
3319
|
+
module$exports$safevalues$internals$html_impl.EMPTY_HTML = module$contents$safevalues$internals$pure_pure(function() {
|
|
3320
|
+
return module$contents$safevalues$internals$html_impl_constructHtml(module$contents$safevalues$internals$html_impl_trustedTypes ? module$contents$safevalues$internals$html_impl_trustedTypes.emptyHTML : "");
|
|
3321
|
+
});
|
|
3322
|
+
function module$contents$safevalues$internals$html_impl_isHtml(value) {
|
|
3323
|
+
return value instanceof module$exports$safevalues$internals$html_impl.SafeHtml;
|
|
3324
|
+
}
|
|
3325
|
+
module$exports$safevalues$internals$html_impl.isHtml = module$contents$safevalues$internals$html_impl_isHtml;
|
|
3326
|
+
module$exports$safevalues$internals$html_impl.unwrapHtml = function(value) {
|
|
3327
|
+
if (module$contents$safevalues$internals$html_impl_isHtml(value)) {
|
|
3328
|
+
return value.privateDoNotAccessOrElseWrappedHtml;
|
|
3335
3329
|
}
|
|
3336
|
-
|
|
3330
|
+
var message = "";
|
|
3331
|
+
goog.DEBUG && (message = "Unexpected type when unwrapping SafeHtml");
|
|
3332
|
+
throw Error(message);
|
|
3337
3333
|
};
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
goog.
|
|
3341
|
-
|
|
3342
|
-
} : function(arr, f, opt_obj) {
|
|
3343
|
-
for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
|
|
3344
|
-
i in arr2 && f.call(opt_obj, arr2[i], i, arr);
|
|
3345
|
-
}
|
|
3334
|
+
var module$exports$safevalues$internals$style_impl = {}, module$contents$safevalues$internals$style_impl_module = module$contents$safevalues$internals$style_impl_module || {id:"third_party/javascript/safevalues/internals/style_impl.closure.js"};
|
|
3335
|
+
module$exports$safevalues$internals$style_impl.SafeStyle = function(token, value) {
|
|
3336
|
+
goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
3337
|
+
this.privateDoNotAccessOrElseWrappedStyle = value;
|
|
3346
3338
|
};
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3339
|
+
module$exports$safevalues$internals$style_impl.SafeStyle.prototype.toString = function() {
|
|
3340
|
+
return this.privateDoNotAccessOrElseWrappedStyle;
|
|
3341
|
+
};
|
|
3342
|
+
var module$contents$safevalues$internals$style_impl_StyleImpl = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
3343
|
+
function module$contents$safevalues$internals$style_impl_createStyleInternal(value) {
|
|
3344
|
+
return new module$exports$safevalues$internals$style_impl.SafeStyle(module$exports$safevalues$internals$secrets.secretToken, value);
|
|
3352
3345
|
}
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
f.call(opt_obj, val, i, arr) && (res[resLength++] = val);
|
|
3362
|
-
}
|
|
3346
|
+
module$exports$safevalues$internals$style_impl.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
|
|
3347
|
+
function module$contents$safevalues$internals$style_impl_isStyle(value) {
|
|
3348
|
+
return value instanceof module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
3349
|
+
}
|
|
3350
|
+
module$exports$safevalues$internals$style_impl.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
3351
|
+
function module$contents$safevalues$internals$style_impl_unwrapStyle(value) {
|
|
3352
|
+
if (module$contents$safevalues$internals$style_impl_isStyle(value)) {
|
|
3353
|
+
return value.privateDoNotAccessOrElseWrappedStyle;
|
|
3363
3354
|
}
|
|
3364
|
-
|
|
3355
|
+
var message = "";
|
|
3356
|
+
goog.DEBUG && (message = "Unexpected type when unwrapping SafeStyle, got '" + value + "' of type '" + typeof value + "'");
|
|
3357
|
+
throw Error(message);
|
|
3358
|
+
}
|
|
3359
|
+
module$exports$safevalues$internals$style_impl.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
3360
|
+
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"};
|
|
3361
|
+
module$exports$safevalues$dom$elements$element.setInnerHtml = function(elOrRoot, v) {
|
|
3362
|
+
module$contents$safevalues$dom$elements$element_isElement(elOrRoot) && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(elOrRoot);
|
|
3363
|
+
elOrRoot.innerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
|
|
3365
3364
|
};
|
|
3366
|
-
|
|
3367
|
-
var
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
} : function(arr, f, opt_obj) {
|
|
3371
|
-
for (var l = arr.length, res = Array(l), arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
|
|
3372
|
-
i in arr2 && (res[i] = f.call(opt_obj, arr2[i], i, arr));
|
|
3373
|
-
}
|
|
3374
|
-
return res;
|
|
3365
|
+
module$exports$safevalues$dom$elements$element.setOuterHtml = function(e, v) {
|
|
3366
|
+
var parent = e.parentElement;
|
|
3367
|
+
parent !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(parent);
|
|
3368
|
+
e.outerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
|
|
3375
3369
|
};
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
goog.asserts.assert(arr.length != null);
|
|
3379
|
-
opt_obj && (f = goog.TRUSTED_SITE ? f.bind(opt_obj) : goog.bind(f, opt_obj));
|
|
3380
|
-
return Array.prototype.reduce.call(arr, f, val);
|
|
3381
|
-
} : function(arr, f, val, opt_obj) {
|
|
3382
|
-
var rval = val;
|
|
3383
|
-
module$contents$goog$array_forEach(arr, function(val, index) {
|
|
3384
|
-
rval = f.call(opt_obj, rval, val, index, arr);
|
|
3385
|
-
});
|
|
3386
|
-
return rval;
|
|
3370
|
+
module$exports$safevalues$dom$elements$element.setCssText = function(e, v) {
|
|
3371
|
+
e.style.cssText = module$contents$safevalues$internals$style_impl_unwrapStyle(v);
|
|
3387
3372
|
};
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
return Array.prototype.reduceRight.call(arr, f, val);
|
|
3393
|
-
} : function(arr, f, val, opt_obj) {
|
|
3394
|
-
var rval = val;
|
|
3395
|
-
module$contents$goog$array_forEachRight(arr, function(val, index) {
|
|
3396
|
-
rval = f.call(opt_obj, rval, val, index, arr);
|
|
3397
|
-
});
|
|
3398
|
-
return rval;
|
|
3373
|
+
module$exports$safevalues$dom$elements$element.insertAdjacentHtml = function(element, position, v) {
|
|
3374
|
+
var tagContext = position === "beforebegin" || position === "afterend" ? element.parentElement : element;
|
|
3375
|
+
tagContext !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(tagContext);
|
|
3376
|
+
element.insertAdjacentHTML(position, (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v));
|
|
3399
3377
|
};
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
return
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) {
|
|
3406
|
-
return !0;
|
|
3407
|
-
}
|
|
3408
|
-
}
|
|
3409
|
-
return !1;
|
|
3378
|
+
module$exports$safevalues$dom$elements$element.buildPrefixedAttributeSetter = function(prefix) {
|
|
3379
|
+
var prefixes = [prefix].concat((0,$jscomp.arrayFromIterable)($jscomp.getRestArguments.apply(1, arguments)));
|
|
3380
|
+
return function(e, attr, value) {
|
|
3381
|
+
module$contents$safevalues$dom$elements$element_setPrefixedAttribute(prefixes, e, attr, value);
|
|
3382
|
+
};
|
|
3410
3383
|
};
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
|
|
3417
|
-
if (i in arr2 && !f.call(opt_obj, arr2[i], i, arr)) {
|
|
3418
|
-
return !1;
|
|
3419
|
-
}
|
|
3384
|
+
function module$contents$safevalues$dom$elements$element_setPrefixedAttribute(attrPrefixes, e, attr, value) {
|
|
3385
|
+
if (attrPrefixes.length === 0) {
|
|
3386
|
+
var message = "";
|
|
3387
|
+
goog.DEBUG && (message = "No prefixes are provided");
|
|
3388
|
+
throw Error(message);
|
|
3420
3389
|
}
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
}
|
|
3429
|
-
|
|
3430
|
-
}
|
|
3431
|
-
goog.array.count = module$contents$goog$array_count;
|
|
3432
|
-
function module$contents$goog$array_find(arr, f, opt_obj) {
|
|
3433
|
-
var i = module$contents$goog$array_findIndex(arr, f, opt_obj);
|
|
3434
|
-
return i < 0 ? null : typeof arr === "string" ? arr.charAt(i) : arr[i];
|
|
3390
|
+
var prefixes = attrPrefixes.map(function(s) {
|
|
3391
|
+
return module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix(s);
|
|
3392
|
+
}), attrLower = attr.toLowerCase();
|
|
3393
|
+
if (prefixes.every(function(p) {
|
|
3394
|
+
return attrLower.indexOf(p) !== 0;
|
|
3395
|
+
})) {
|
|
3396
|
+
throw Error('Attribute "' + attr + '" does not match any of the allowed prefixes.');
|
|
3397
|
+
}
|
|
3398
|
+
e.setAttribute(attr, value);
|
|
3435
3399
|
}
|
|
3436
|
-
|
|
3437
|
-
function module$contents$
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
}
|
|
3400
|
+
module$exports$safevalues$dom$elements$element.setPrefixedAttribute = module$contents$safevalues$dom$elements$element_setPrefixedAttribute;
|
|
3401
|
+
function module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(element) {
|
|
3402
|
+
var message = "", tagName = element.tagName;
|
|
3403
|
+
if (tagName === "SCRIPT" || tagName === "STYLE") {
|
|
3404
|
+
throw goog.DEBUG && (message = tagName === "SCRIPT" ? "Use safeScriptEl.setTextContent with a SafeScript." : "Use safeStyleEl.setTextContent with a SafeStyleSheet."), Error(message);
|
|
3442
3405
|
}
|
|
3443
|
-
return -1;
|
|
3444
3406
|
}
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
var i = module$contents$goog$array_findIndexRight(arr, f, opt_obj);
|
|
3448
|
-
return i < 0 ? null : typeof arr === "string" ? arr.charAt(i) : arr[i];
|
|
3449
|
-
};
|
|
3450
|
-
function module$contents$goog$array_findIndexRight(arr, f, opt_obj) {
|
|
3451
|
-
for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = l - 1; i >= 0; i--) {
|
|
3452
|
-
if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) {
|
|
3453
|
-
return i;
|
|
3454
|
-
}
|
|
3455
|
-
}
|
|
3456
|
-
return -1;
|
|
3457
|
-
}
|
|
3458
|
-
goog.array.findIndexRight = module$contents$goog$array_findIndexRight;
|
|
3459
|
-
function module$contents$goog$array_contains(arr, obj) {
|
|
3460
|
-
return module$contents$goog$array_indexOf(arr, obj) >= 0;
|
|
3461
|
-
}
|
|
3462
|
-
goog.array.contains = module$contents$goog$array_contains;
|
|
3463
|
-
function module$contents$goog$array_isEmpty(arr) {
|
|
3464
|
-
return arr.length == 0;
|
|
3465
|
-
}
|
|
3466
|
-
goog.array.isEmpty = module$contents$goog$array_isEmpty;
|
|
3467
|
-
function module$contents$goog$array_clear(arr) {
|
|
3468
|
-
if (!Array.isArray(arr)) {
|
|
3469
|
-
for (var i = arr.length - 1; i >= 0; i--) {
|
|
3470
|
-
delete arr[i];
|
|
3471
|
-
}
|
|
3472
|
-
}
|
|
3473
|
-
arr.length = 0;
|
|
3474
|
-
}
|
|
3475
|
-
goog.array.clear = module$contents$goog$array_clear;
|
|
3476
|
-
goog.array.insert = function(arr, obj) {
|
|
3477
|
-
module$contents$goog$array_contains(arr, obj) || arr.push(obj);
|
|
3478
|
-
};
|
|
3479
|
-
function module$contents$goog$array_insertAt(arr, obj, opt_i) {
|
|
3480
|
-
module$contents$goog$array_splice(arr, opt_i, 0, obj);
|
|
3481
|
-
}
|
|
3482
|
-
goog.array.insertAt = module$contents$goog$array_insertAt;
|
|
3483
|
-
goog.array.insertArrayAt = function(arr, elementsToAdd, opt_i) {
|
|
3484
|
-
goog.partial(module$contents$goog$array_splice, arr, opt_i, 0).apply(null, elementsToAdd);
|
|
3485
|
-
};
|
|
3486
|
-
goog.array.insertBefore = function(arr, obj, opt_obj2) {
|
|
3487
|
-
var i;
|
|
3488
|
-
arguments.length == 2 || (i = module$contents$goog$array_indexOf(arr, opt_obj2)) < 0 ? arr.push(obj) : module$contents$goog$array_insertAt(arr, obj, i);
|
|
3489
|
-
};
|
|
3490
|
-
function module$contents$goog$array_remove(arr, obj) {
|
|
3491
|
-
var i = module$contents$goog$array_indexOf(arr, obj), rv;
|
|
3492
|
-
(rv = i >= 0) && module$contents$goog$array_removeAt(arr, i);
|
|
3493
|
-
return rv;
|
|
3494
|
-
}
|
|
3495
|
-
goog.array.remove = module$contents$goog$array_remove;
|
|
3496
|
-
function module$contents$goog$array_removeLast(arr, obj) {
|
|
3497
|
-
var i = module$contents$goog$array_lastIndexOf(arr, obj);
|
|
3498
|
-
return i >= 0 ? (module$contents$goog$array_removeAt(arr, i), !0) : !1;
|
|
3499
|
-
}
|
|
3500
|
-
goog.array.removeLast = module$contents$goog$array_removeLast;
|
|
3501
|
-
function module$contents$goog$array_removeAt(arr, i) {
|
|
3502
|
-
goog.asserts.assert(arr.length != null);
|
|
3503
|
-
return Array.prototype.splice.call(arr, i, 1).length == 1;
|
|
3504
|
-
}
|
|
3505
|
-
goog.array.removeAt = module$contents$goog$array_removeAt;
|
|
3506
|
-
goog.array.removeIf = function(arr, f, opt_obj) {
|
|
3507
|
-
var i = module$contents$goog$array_findIndex(arr, f, opt_obj);
|
|
3508
|
-
return i >= 0 ? (module$contents$goog$array_removeAt(arr, i), !0) : !1;
|
|
3509
|
-
};
|
|
3510
|
-
goog.array.removeAllIf = function(arr, f, opt_obj) {
|
|
3511
|
-
var removedCount = 0;
|
|
3512
|
-
module$contents$goog$array_forEachRight(arr, function(val, index) {
|
|
3513
|
-
f.call(opt_obj, val, index, arr) && module$contents$goog$array_removeAt(arr, index) && removedCount++;
|
|
3514
|
-
});
|
|
3515
|
-
return removedCount;
|
|
3516
|
-
};
|
|
3517
|
-
function module$contents$goog$array_concat(var_args) {
|
|
3518
|
-
return Array.prototype.concat.apply([], arguments);
|
|
3407
|
+
function module$contents$safevalues$dom$elements$element_isElement(elOrRoot) {
|
|
3408
|
+
return elOrRoot.nodeType === 1;
|
|
3519
3409
|
}
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3410
|
+
;var module$exports$safevalues$dom$elements$embed = {}, module$contents$safevalues$dom$elements$embed_module = module$contents$safevalues$dom$elements$embed_module || {id:"third_party/javascript/safevalues/dom/elements/embed.closure.js"};
|
|
3411
|
+
module$exports$safevalues$dom$elements$embed.setSrc = function(embedEl, url) {
|
|
3412
|
+
embedEl.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url);
|
|
3523
3413
|
};
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
rv[i] = object[i];
|
|
3529
|
-
}
|
|
3530
|
-
return rv;
|
|
3531
|
-
}
|
|
3532
|
-
return [];
|
|
3533
|
-
}
|
|
3534
|
-
goog.array.toArray = module$contents$goog$array_toArray;
|
|
3535
|
-
goog.array.clone = module$contents$goog$array_toArray;
|
|
3536
|
-
function module$contents$goog$array_extend(arr1, var_args) {
|
|
3537
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
3538
|
-
var arr2 = arguments[i];
|
|
3539
|
-
if (goog.isArrayLike(arr2)) {
|
|
3540
|
-
var len1 = arr1.length || 0, len2 = arr2.length || 0;
|
|
3541
|
-
arr1.length = len1 + len2;
|
|
3542
|
-
for (var j = 0; j < len2; j++) {
|
|
3543
|
-
arr1[len1 + j] = arr2[j];
|
|
3544
|
-
}
|
|
3545
|
-
} else {
|
|
3546
|
-
arr1.push(arr2);
|
|
3547
|
-
}
|
|
3548
|
-
}
|
|
3549
|
-
}
|
|
3550
|
-
goog.array.extend = module$contents$goog$array_extend;
|
|
3551
|
-
function module$contents$goog$array_splice(arr, index, howMany, var_args) {
|
|
3552
|
-
goog.asserts.assert(arr.length != null);
|
|
3553
|
-
return Array.prototype.splice.apply(arr, module$contents$goog$array_slice(arguments, 1));
|
|
3554
|
-
}
|
|
3555
|
-
goog.array.splice = module$contents$goog$array_splice;
|
|
3556
|
-
function module$contents$goog$array_slice(arr, start, opt_end) {
|
|
3557
|
-
goog.asserts.assert(arr.length != null);
|
|
3558
|
-
return arguments.length <= 2 ? Array.prototype.slice.call(arr, start) : Array.prototype.slice.call(arr, start, opt_end);
|
|
3559
|
-
}
|
|
3560
|
-
goog.array.slice = module$contents$goog$array_slice;
|
|
3561
|
-
function module$contents$goog$array_removeDuplicates(arr, opt_rv, opt_keyFn) {
|
|
3562
|
-
var returnArray = opt_rv || arr;
|
|
3563
|
-
if (goog.FEATURESET_YEAR >= 2018) {
|
|
3564
|
-
for (var defaultKeyFn = function(item) {
|
|
3565
|
-
return item;
|
|
3566
|
-
}, keyFn = opt_keyFn || defaultKeyFn, cursorInsert = 0, cursorRead = 0, seen = new Set(); cursorRead < arr.length;) {
|
|
3567
|
-
var current = arr[cursorRead++], key = keyFn(current);
|
|
3568
|
-
seen.has(key) || (seen.add(key), returnArray[cursorInsert++] = current);
|
|
3569
|
-
}
|
|
3570
|
-
returnArray.length = cursorInsert;
|
|
3571
|
-
} else {
|
|
3572
|
-
for (var defaultKeyFn$jscomp$0 = function(item) {
|
|
3573
|
-
return goog.isObject(item) ? "o" + goog.getUid(item) : (typeof item).charAt(0) + item;
|
|
3574
|
-
}, keyFn$jscomp$0 = opt_keyFn || defaultKeyFn$jscomp$0, cursorInsert$jscomp$0 = 0, cursorRead$jscomp$0 = 0, seen$jscomp$0 = {}; cursorRead$jscomp$0 < arr.length;) {
|
|
3575
|
-
var current$jscomp$0 = arr[cursorRead$jscomp$0++], key$jscomp$0 = keyFn$jscomp$0(current$jscomp$0);
|
|
3576
|
-
Object.prototype.hasOwnProperty.call(seen$jscomp$0, key$jscomp$0) || (seen$jscomp$0[key$jscomp$0] = !0, returnArray[cursorInsert$jscomp$0++] = current$jscomp$0);
|
|
3577
|
-
}
|
|
3578
|
-
returnArray.length = cursorInsert$jscomp$0;
|
|
3579
|
-
}
|
|
3580
|
-
}
|
|
3581
|
-
goog.array.removeDuplicates = module$contents$goog$array_removeDuplicates;
|
|
3582
|
-
function module$contents$goog$array_binarySearch(arr, target, opt_compareFn) {
|
|
3583
|
-
return module$contents$goog$array_binarySearch_(arr, opt_compareFn || module$contents$goog$array_defaultCompare, !1, target);
|
|
3584
|
-
}
|
|
3585
|
-
goog.array.binarySearch = module$contents$goog$array_binarySearch;
|
|
3586
|
-
goog.array.binarySelect = function(arr, evaluator, opt_obj) {
|
|
3587
|
-
return module$contents$goog$array_binarySearch_(arr, evaluator, !0, void 0, opt_obj);
|
|
3414
|
+
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"};
|
|
3415
|
+
module$exports$safevalues$dom$elements$form.setAction = function(form, url) {
|
|
3416
|
+
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3417
|
+
sanitizedUrl !== void 0 && (form.action = sanitizedUrl);
|
|
3588
3418
|
};
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
compareResult = isEvaluator ? compareFn.call(opt_selfObj, arr[middle], middle, arr) : compareFn(opt_target, arr[middle]);
|
|
3593
|
-
compareResult > 0 ? left = middle + 1 : (right = middle, found = !compareResult);
|
|
3594
|
-
}
|
|
3595
|
-
return found ? left : -left - 1;
|
|
3419
|
+
var module$exports$check = {}, module$contents$check_module = module$contents$check_module || {id:"javascript/typescript/contrib/check.closure.js"};
|
|
3420
|
+
function module$contents$check_checkExhaustive(value, msg) {
|
|
3421
|
+
return module$contents$check_checkExhaustiveAllowing(value, msg);
|
|
3596
3422
|
}
|
|
3597
|
-
|
|
3598
|
-
|
|
3423
|
+
module$exports$check.checkExhaustive = module$contents$check_checkExhaustive;
|
|
3424
|
+
function module$contents$check_checkExhaustiveAllowing(value, msg) {
|
|
3425
|
+
throw Error(msg === void 0 ? "unexpected value " + value + "!" : msg);
|
|
3599
3426
|
}
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
for (var compArr = Array(arr.length), i = 0; i < arr.length; i++) {
|
|
3603
|
-
compArr[i] = {index:i, value:arr[i]};
|
|
3604
|
-
}
|
|
3605
|
-
var valueCompareFn = opt_compareFn || module$contents$goog$array_defaultCompare;
|
|
3606
|
-
module$contents$goog$array_sort(compArr, function(obj1, obj2) {
|
|
3607
|
-
return valueCompareFn(obj1.value, obj2.value) || obj1.index - obj2.index;
|
|
3608
|
-
});
|
|
3609
|
-
for (var i$jscomp$0 = 0; i$jscomp$0 < arr.length; i$jscomp$0++) {
|
|
3610
|
-
arr[i$jscomp$0] = compArr[i$jscomp$0].value;
|
|
3611
|
-
}
|
|
3427
|
+
module$exports$check.checkExhaustiveAllowing = module$contents$check_checkExhaustiveAllowing;
|
|
3428
|
+
module$exports$check.assumeExhaustive = function(value) {
|
|
3612
3429
|
};
|
|
3613
|
-
|
|
3614
|
-
var keyCompareFn = opt_compareFn || module$contents$goog$array_defaultCompare;
|
|
3615
|
-
module$contents$goog$array_sort(arr, function(a, b) {
|
|
3616
|
-
return keyCompareFn(keyFn(a), keyFn(b));
|
|
3617
|
-
});
|
|
3618
|
-
}
|
|
3619
|
-
goog.array.sortByKey = module$contents$goog$array_sortByKey;
|
|
3620
|
-
goog.array.sortObjectsByKey = function(arr, key, opt_compareFn) {
|
|
3621
|
-
module$contents$goog$array_sortByKey(arr, function(obj) {
|
|
3622
|
-
return obj[key];
|
|
3623
|
-
}, opt_compareFn);
|
|
3430
|
+
module$exports$check.assumeExhaustiveAllowing = function(value) {
|
|
3624
3431
|
};
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
if (compareResult > 0 || compareResult == 0 && opt_strict) {
|
|
3629
|
-
return !1;
|
|
3630
|
-
}
|
|
3631
|
-
}
|
|
3632
|
-
return !0;
|
|
3432
|
+
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"};
|
|
3433
|
+
function module$contents$safevalues$dom$elements$iframe_setSrc(iframe, v) {
|
|
3434
|
+
iframe.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v).toString();
|
|
3633
3435
|
}
|
|
3634
|
-
|
|
3635
|
-
function module$contents$
|
|
3636
|
-
|
|
3637
|
-
return !1;
|
|
3638
|
-
}
|
|
3639
|
-
for (var l = arr1.length, equalsFn = opt_equalsFn || module$contents$goog$array_defaultCompareEquality, i = 0; i < l; i++) {
|
|
3640
|
-
if (!equalsFn(arr1[i], arr2[i])) {
|
|
3641
|
-
return !1;
|
|
3642
|
-
}
|
|
3643
|
-
}
|
|
3644
|
-
return !0;
|
|
3436
|
+
module$exports$safevalues$dom$elements$iframe.setSrc = module$contents$safevalues$dom$elements$iframe_setSrc;
|
|
3437
|
+
function module$contents$safevalues$dom$elements$iframe_setSrcdoc(iframe, v) {
|
|
3438
|
+
iframe.srcdoc = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
|
|
3645
3439
|
}
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3440
|
+
module$exports$safevalues$dom$elements$iframe.setSrcdoc = module$contents$safevalues$dom$elements$iframe_setSrcdoc;
|
|
3441
|
+
module$exports$safevalues$dom$elements$iframe.Intent = {FORMATTED_HTML_CONTENT:0, EMBEDDED_INTERNAL_CONTENT:1, EMBEDDED_TRUSTED_EXTERNAL_CONTENT:2};
|
|
3442
|
+
module$exports$safevalues$dom$elements$iframe.Intent[module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT] = "FORMATTED_HTML_CONTENT";
|
|
3443
|
+
module$exports$safevalues$dom$elements$iframe.Intent[module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT] = "EMBEDDED_INTERNAL_CONTENT";
|
|
3444
|
+
module$exports$safevalues$dom$elements$iframe.Intent[module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT] = "EMBEDDED_TRUSTED_EXTERNAL_CONTENT";
|
|
3445
|
+
var module$contents$safevalues$dom$elements$iframe_SandboxDirective = {ALLOW_SAME_ORIGIN:"allow-same-origin", ALLOW_SCRIPTS:"allow-scripts", ALLOW_FORMS:"allow-forms", ALLOW_POPUPS:"allow-popups", ALLOW_POPUPS_TO_ESCAPE_SANDBOX:"allow-popups-to-escape-sandbox", ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION:"allow-storage-access-by-user-activation"};
|
|
3446
|
+
function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr, directives) {
|
|
3447
|
+
ifr.setAttribute("sandbox", "");
|
|
3448
|
+
for (var i = 0; i < directives.length; i++) {
|
|
3449
|
+
ifr.sandbox.supports && !ifr.sandbox.supports(directives[i]) || ifr.sandbox.add(directives[i]);
|
|
3653
3450
|
}
|
|
3654
|
-
return module$contents$goog$array_defaultCompare(arr1.length, arr2.length);
|
|
3655
|
-
};
|
|
3656
|
-
function module$contents$goog$array_defaultCompare(a, b) {
|
|
3657
|
-
return a > b ? 1 : a < b ? -1 : 0;
|
|
3658
|
-
}
|
|
3659
|
-
goog.array.defaultCompare = module$contents$goog$array_defaultCompare;
|
|
3660
|
-
goog.array.inverseDefaultCompare = function(a, b) {
|
|
3661
|
-
return -module$contents$goog$array_defaultCompare(a, b);
|
|
3662
|
-
};
|
|
3663
|
-
function module$contents$goog$array_defaultCompareEquality(a, b) {
|
|
3664
|
-
return a === b;
|
|
3665
3451
|
}
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
return index >= 0 ? module$contents$goog$array_removeAt(array, index) : !1;
|
|
3674
|
-
};
|
|
3675
|
-
goog.array.bucket = function(array, sorter, opt_obj) {
|
|
3676
|
-
for (var buckets = {}, i = 0; i < array.length; i++) {
|
|
3677
|
-
var value = array[i], key = sorter.call(opt_obj, value, i, array);
|
|
3678
|
-
key !== void 0 && (buckets[key] || (buckets[key] = [])).push(value);
|
|
3679
|
-
}
|
|
3680
|
-
return buckets;
|
|
3681
|
-
};
|
|
3682
|
-
goog.array.bucketToMap = function(array, sorter) {
|
|
3683
|
-
for (var buckets = new Map(), i = 0; i < array.length; i++) {
|
|
3684
|
-
var value = array[i], key = sorter(value, i, array);
|
|
3685
|
-
if (key !== void 0) {
|
|
3686
|
-
var bucket = buckets.get(key);
|
|
3687
|
-
bucket || (bucket = [], buckets.set(key, bucket));
|
|
3688
|
-
bucket.push(value);
|
|
3689
|
-
}
|
|
3690
|
-
}
|
|
3691
|
-
return buckets;
|
|
3692
|
-
};
|
|
3693
|
-
goog.array.toObject = function(arr, keyFunc, opt_obj) {
|
|
3694
|
-
var ret = {};
|
|
3695
|
-
module$contents$goog$array_forEach(arr, function(element, index) {
|
|
3696
|
-
ret[keyFunc.call(opt_obj, element, index, arr)] = element;
|
|
3697
|
-
});
|
|
3698
|
-
return ret;
|
|
3699
|
-
};
|
|
3700
|
-
goog.array.toMap = function(arr, keyFunc) {
|
|
3701
|
-
for (var map = new Map(), i = 0; i < arr.length; i++) {
|
|
3702
|
-
var element = arr[i];
|
|
3703
|
-
map.set(keyFunc(element, i, arr), element);
|
|
3704
|
-
}
|
|
3705
|
-
return map;
|
|
3452
|
+
module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError = function(type, intent) {
|
|
3453
|
+
var $jscomp$tmp$error$494508883$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.Intent[intent]);
|
|
3454
|
+
this.message = $jscomp$tmp$error$494508883$1.message;
|
|
3455
|
+
"stack" in $jscomp$tmp$error$494508883$1 && (this.stack = $jscomp$tmp$error$494508883$1.stack);
|
|
3456
|
+
this.type = type;
|
|
3457
|
+
this.intent = intent;
|
|
3458
|
+
this.name = "TypeCannotBeUsedWithIntentError";
|
|
3706
3459
|
};
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
for (var i = start; i < end; i += step) {
|
|
3715
|
-
array.push(i);
|
|
3716
|
-
}
|
|
3717
|
-
} else {
|
|
3718
|
-
for (var i$jscomp$0 = start; i$jscomp$0 > end; i$jscomp$0 += step) {
|
|
3719
|
-
array.push(i$jscomp$0);
|
|
3720
|
-
}
|
|
3721
|
-
}
|
|
3722
|
-
return array;
|
|
3723
|
-
}
|
|
3724
|
-
goog.array.range = module$contents$goog$array_range;
|
|
3725
|
-
function module$contents$goog$array_repeat(value, n) {
|
|
3726
|
-
for (var array = [], i = 0; i < n; i++) {
|
|
3727
|
-
array[i] = value;
|
|
3728
|
-
}
|
|
3729
|
-
return array;
|
|
3730
|
-
}
|
|
3731
|
-
goog.array.repeat = module$contents$goog$array_repeat;
|
|
3732
|
-
function module$contents$goog$array_flatten(var_args) {
|
|
3733
|
-
for (var result = [], i = 0; i < arguments.length; i++) {
|
|
3734
|
-
var element = arguments[i];
|
|
3735
|
-
if (Array.isArray(element)) {
|
|
3736
|
-
for (var c = 0; c < element.length; c += 8192) {
|
|
3737
|
-
for (var chunk = module$contents$goog$array_slice(element, c, c + 8192), recurseResult = module$contents$goog$array_flatten.apply(null, chunk), r = 0; r < recurseResult.length; r++) {
|
|
3738
|
-
result.push(recurseResult[r]);
|
|
3739
|
-
}
|
|
3460
|
+
$jscomp.inherits(module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError, Error);
|
|
3461
|
+
module$exports$safevalues$dom$elements$iframe.setSrcWithIntent = function(element, intent, src) {
|
|
3462
|
+
element.removeAttribute("srcdoc");
|
|
3463
|
+
switch(intent) {
|
|
3464
|
+
case module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT:
|
|
3465
|
+
if (src instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl) {
|
|
3466
|
+
throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("TrustedResourceUrl", module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT);
|
|
3740
3467
|
}
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
arguments[i].length < minLen && (minLen = arguments[i].length);
|
|
3765
|
-
}
|
|
3766
|
-
for (var i$jscomp$0 = 0; i$jscomp$0 < minLen; i$jscomp$0++) {
|
|
3767
|
-
for (var value = [], j = 0; j < arguments.length; j++) {
|
|
3768
|
-
value.push(arguments[j][i$jscomp$0]);
|
|
3769
|
-
}
|
|
3770
|
-
result.push(value);
|
|
3468
|
+
module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, []);
|
|
3469
|
+
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(src);
|
|
3470
|
+
sanitizedUrl !== void 0 && (element.src = sanitizedUrl);
|
|
3471
|
+
break;
|
|
3472
|
+
case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT:
|
|
3473
|
+
if (!(src instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl)) {
|
|
3474
|
+
throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError(typeof src, module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT);
|
|
3475
|
+
}
|
|
3476
|
+
module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SAME_ORIGIN, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,
|
|
3477
|
+
module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);
|
|
3478
|
+
module$contents$safevalues$dom$elements$iframe_setSrc(element, src);
|
|
3479
|
+
break;
|
|
3480
|
+
case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT:
|
|
3481
|
+
if (src instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl) {
|
|
3482
|
+
throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("TrustedResourceUrl", module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT);
|
|
3483
|
+
}
|
|
3484
|
+
module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SAME_ORIGIN, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,
|
|
3485
|
+
module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);
|
|
3486
|
+
var sanitizedUrl$jscomp$0 = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(src);
|
|
3487
|
+
sanitizedUrl$jscomp$0 !== void 0 && (element.src = sanitizedUrl$jscomp$0);
|
|
3488
|
+
break;
|
|
3489
|
+
default:
|
|
3490
|
+
module$contents$check_checkExhaustive(intent);
|
|
3771
3491
|
}
|
|
3772
|
-
return result;
|
|
3773
3492
|
};
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3493
|
+
module$exports$safevalues$dom$elements$iframe.setSrcdocWithIntent = function(element, intent, srcdoc) {
|
|
3494
|
+
element.removeAttribute("src");
|
|
3495
|
+
switch(intent) {
|
|
3496
|
+
case module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT:
|
|
3497
|
+
if (srcdoc instanceof module$exports$safevalues$internals$html_impl.SafeHtml) {
|
|
3498
|
+
throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("SafeHtml", module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT);
|
|
3499
|
+
}
|
|
3500
|
+
element.csp = "default-src 'none'";
|
|
3501
|
+
module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, []);
|
|
3502
|
+
module$contents$safevalues$dom$elements$iframe_setSrcdoc(element, (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(srcdoc));
|
|
3503
|
+
break;
|
|
3504
|
+
case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT:
|
|
3505
|
+
if (!(srcdoc instanceof module$exports$safevalues$internals$html_impl.SafeHtml)) {
|
|
3506
|
+
throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("string", module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT);
|
|
3507
|
+
}
|
|
3508
|
+
module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SAME_ORIGIN, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,
|
|
3509
|
+
module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);
|
|
3510
|
+
module$contents$safevalues$dom$elements$iframe_setSrcdoc(element, srcdoc);
|
|
3511
|
+
break;
|
|
3512
|
+
case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT:
|
|
3513
|
+
if (srcdoc instanceof module$exports$safevalues$internals$html_impl.SafeHtml) {
|
|
3514
|
+
throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("SafeHtml", module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT);
|
|
3515
|
+
}
|
|
3516
|
+
module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX,
|
|
3517
|
+
module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);
|
|
3518
|
+
module$contents$safevalues$dom$elements$iframe_setSrcdoc(element, (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(srcdoc));
|
|
3519
|
+
break;
|
|
3520
|
+
default:
|
|
3521
|
+
module$contents$check_checkExhaustive(intent);
|
|
3779
3522
|
}
|
|
3780
3523
|
};
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
module$contents$
|
|
3784
|
-
|
|
3785
|
-
});
|
|
3786
|
-
return result;
|
|
3787
|
-
};
|
|
3788
|
-
goog.array.concatMap = function(arr, f, opt_obj) {
|
|
3789
|
-
return module$contents$goog$array_concat.apply([], module$contents$goog$array_map(arr, f, opt_obj));
|
|
3524
|
+
var module$exports$safevalues$dom$elements$input = {}, module$contents$safevalues$dom$elements$input_module = module$contents$safevalues$dom$elements$input_module || {id:"third_party/javascript/safevalues/dom/elements/input.closure.js"};
|
|
3525
|
+
module$exports$safevalues$dom$elements$input.setFormaction = function(input, url) {
|
|
3526
|
+
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3527
|
+
sanitizedUrl !== void 0 && (input.formAction = sanitizedUrl);
|
|
3790
3528
|
};
|
|
3791
|
-
|
|
3529
|
+
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(" ");
|
|
3530
|
+
module$exports$safevalues$dom$elements$link.setHrefAndRel = function(link, url, rel) {
|
|
3531
|
+
if (module$contents$safevalues$internals$resource_url_impl_isResourceUrl(url)) {
|
|
3532
|
+
module$contents$safevalues$dom$elements$link_setHrefAndRelWithTrustedResourceUrl(link, url, rel);
|
|
3533
|
+
} else {
|
|
3534
|
+
if (module$contents$safevalues$dom$elements$link_SAFE_URL_REL_VALUES.indexOf(rel) === -1) {
|
|
3535
|
+
throw Error('TrustedResourceUrl href attribute required with rel="' + rel + '"');
|
|
3536
|
+
}
|
|
3537
|
+
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3538
|
+
sanitizedUrl !== void 0 && (link.href = sanitizedUrl, link.rel = rel);
|
|
3539
|
+
}
|
|
3792
3540
|
};
|
|
3793
|
-
|
|
3541
|
+
function module$contents$safevalues$dom$elements$link_setHrefAndRelWithTrustedResourceUrl(link, url, rel) {
|
|
3542
|
+
link.href = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString();
|
|
3543
|
+
link.rel = rel;
|
|
3544
|
+
}
|
|
3545
|
+
module$exports$safevalues$dom$elements$link.setHrefAndRelWithTrustedResourceUrl = module$contents$safevalues$dom$elements$link_setHrefAndRelWithTrustedResourceUrl;
|
|
3546
|
+
var module$exports$safevalues$dom$elements$object = {}, module$contents$safevalues$dom$elements$object_module = module$contents$safevalues$dom$elements$object_module || {id:"third_party/javascript/safevalues/dom/elements/object.closure.js"};
|
|
3547
|
+
module$exports$safevalues$dom$elements$object.setData = function(obj, v) {
|
|
3548
|
+
obj.data = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v);
|
|
3794
3549
|
};
|
|
3795
|
-
|
|
3796
|
-
|
|
3550
|
+
var module$exports$safevalues$dom$globals$window = {}, module$contents$safevalues$dom$globals$window_module = module$contents$safevalues$dom$globals$window_module || {id:"third_party/javascript/safevalues/dom/globals/window.closure.js"};
|
|
3551
|
+
module$exports$safevalues$dom$globals$window.open = function(win, url, target, features) {
|
|
3552
|
+
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3553
|
+
return sanitizedUrl !== void 0 ? win.open(sanitizedUrl, target, features) : null;
|
|
3797
3554
|
};
|
|
3798
|
-
|
|
3555
|
+
module$exports$safevalues$dom$globals$window.getScriptNonce = function(win) {
|
|
3556
|
+
return module$contents$safevalues$dom$globals$window_getNonceFor("script", win);
|
|
3799
3557
|
};
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
goog.dom.TagName.ACRONYM = "ACRONYM";
|
|
3803
|
-
goog.dom.TagName.ADDRESS = "ADDRESS";
|
|
3804
|
-
goog.dom.TagName.APPLET = "APPLET";
|
|
3805
|
-
goog.dom.TagName.AREA = "AREA";
|
|
3806
|
-
goog.dom.TagName.ARTICLE = "ARTICLE";
|
|
3807
|
-
goog.dom.TagName.ASIDE = "ASIDE";
|
|
3808
|
-
goog.dom.TagName.AUDIO = "AUDIO";
|
|
3809
|
-
goog.dom.TagName.B = "B";
|
|
3810
|
-
goog.dom.TagName.BASE = "BASE";
|
|
3811
|
-
goog.dom.TagName.BASEFONT = "BASEFONT";
|
|
3812
|
-
goog.dom.TagName.BDI = "BDI";
|
|
3813
|
-
goog.dom.TagName.BDO = "BDO";
|
|
3814
|
-
goog.dom.TagName.BIG = "BIG";
|
|
3815
|
-
goog.dom.TagName.BLOCKQUOTE = "BLOCKQUOTE";
|
|
3816
|
-
goog.dom.TagName.BODY = "BODY";
|
|
3817
|
-
goog.dom.TagName.BR = "BR";
|
|
3818
|
-
goog.dom.TagName.BUTTON = "BUTTON";
|
|
3819
|
-
goog.dom.TagName.CANVAS = "CANVAS";
|
|
3820
|
-
goog.dom.TagName.CAPTION = "CAPTION";
|
|
3821
|
-
goog.dom.TagName.CENTER = "CENTER";
|
|
3822
|
-
goog.dom.TagName.CITE = "CITE";
|
|
3823
|
-
goog.dom.TagName.CODE = "CODE";
|
|
3824
|
-
goog.dom.TagName.COL = "COL";
|
|
3825
|
-
goog.dom.TagName.COLGROUP = "COLGROUP";
|
|
3826
|
-
goog.dom.TagName.COMMAND = "COMMAND";
|
|
3827
|
-
goog.dom.TagName.DATA = "DATA";
|
|
3828
|
-
goog.dom.TagName.DATALIST = "DATALIST";
|
|
3829
|
-
goog.dom.TagName.DD = "DD";
|
|
3830
|
-
goog.dom.TagName.DEL = "DEL";
|
|
3831
|
-
goog.dom.TagName.DETAILS = "DETAILS";
|
|
3832
|
-
goog.dom.TagName.DFN = "DFN";
|
|
3833
|
-
goog.dom.TagName.DIALOG = "DIALOG";
|
|
3834
|
-
goog.dom.TagName.DIR = "DIR";
|
|
3835
|
-
goog.dom.TagName.DIV = "DIV";
|
|
3836
|
-
goog.dom.TagName.DL = "DL";
|
|
3837
|
-
goog.dom.TagName.DT = "DT";
|
|
3838
|
-
goog.dom.TagName.EM = "EM";
|
|
3839
|
-
goog.dom.TagName.EMBED = "EMBED";
|
|
3840
|
-
goog.dom.TagName.FIELDSET = "FIELDSET";
|
|
3841
|
-
goog.dom.TagName.FIGCAPTION = "FIGCAPTION";
|
|
3842
|
-
goog.dom.TagName.FIGURE = "FIGURE";
|
|
3843
|
-
goog.dom.TagName.FONT = "FONT";
|
|
3844
|
-
goog.dom.TagName.FOOTER = "FOOTER";
|
|
3845
|
-
goog.dom.TagName.FORM = "FORM";
|
|
3846
|
-
goog.dom.TagName.FRAME = "FRAME";
|
|
3847
|
-
goog.dom.TagName.FRAMESET = "FRAMESET";
|
|
3848
|
-
goog.dom.TagName.H1 = "H1";
|
|
3849
|
-
goog.dom.TagName.H2 = "H2";
|
|
3850
|
-
goog.dom.TagName.H3 = "H3";
|
|
3851
|
-
goog.dom.TagName.H4 = "H4";
|
|
3852
|
-
goog.dom.TagName.H5 = "H5";
|
|
3853
|
-
goog.dom.TagName.H6 = "H6";
|
|
3854
|
-
goog.dom.TagName.HEAD = "HEAD";
|
|
3855
|
-
goog.dom.TagName.HEADER = "HEADER";
|
|
3856
|
-
goog.dom.TagName.HGROUP = "HGROUP";
|
|
3857
|
-
goog.dom.TagName.HR = "HR";
|
|
3858
|
-
goog.dom.TagName.HTML = "HTML";
|
|
3859
|
-
goog.dom.TagName.I = "I";
|
|
3860
|
-
goog.dom.TagName.IFRAME = "IFRAME";
|
|
3861
|
-
goog.dom.TagName.IMG = "IMG";
|
|
3862
|
-
goog.dom.TagName.INPUT = "INPUT";
|
|
3863
|
-
goog.dom.TagName.INS = "INS";
|
|
3864
|
-
goog.dom.TagName.ISINDEX = "ISINDEX";
|
|
3865
|
-
goog.dom.TagName.KBD = "KBD";
|
|
3866
|
-
goog.dom.TagName.KEYGEN = "KEYGEN";
|
|
3867
|
-
goog.dom.TagName.LABEL = "LABEL";
|
|
3868
|
-
goog.dom.TagName.LEGEND = "LEGEND";
|
|
3869
|
-
goog.dom.TagName.LI = "LI";
|
|
3870
|
-
goog.dom.TagName.LINK = "LINK";
|
|
3871
|
-
goog.dom.TagName.MAIN = "MAIN";
|
|
3872
|
-
goog.dom.TagName.MAP = "MAP";
|
|
3873
|
-
goog.dom.TagName.MARK = "MARK";
|
|
3874
|
-
goog.dom.TagName.MATH = "MATH";
|
|
3875
|
-
goog.dom.TagName.MENU = "MENU";
|
|
3876
|
-
goog.dom.TagName.MENUITEM = "MENUITEM";
|
|
3877
|
-
goog.dom.TagName.META = "META";
|
|
3878
|
-
goog.dom.TagName.METER = "METER";
|
|
3879
|
-
goog.dom.TagName.NAV = "NAV";
|
|
3880
|
-
goog.dom.TagName.NOFRAMES = "NOFRAMES";
|
|
3881
|
-
goog.dom.TagName.NOSCRIPT = "NOSCRIPT";
|
|
3882
|
-
goog.dom.TagName.OBJECT = "OBJECT";
|
|
3883
|
-
goog.dom.TagName.OL = "OL";
|
|
3884
|
-
goog.dom.TagName.OPTGROUP = "OPTGROUP";
|
|
3885
|
-
goog.dom.TagName.OPTION = "OPTION";
|
|
3886
|
-
goog.dom.TagName.OUTPUT = "OUTPUT";
|
|
3887
|
-
goog.dom.TagName.P = "P";
|
|
3888
|
-
goog.dom.TagName.PARAM = "PARAM";
|
|
3889
|
-
goog.dom.TagName.PICTURE = "PICTURE";
|
|
3890
|
-
goog.dom.TagName.PRE = "PRE";
|
|
3891
|
-
goog.dom.TagName.PROGRESS = "PROGRESS";
|
|
3892
|
-
goog.dom.TagName.Q = "Q";
|
|
3893
|
-
goog.dom.TagName.RP = "RP";
|
|
3894
|
-
goog.dom.TagName.RT = "RT";
|
|
3895
|
-
goog.dom.TagName.RTC = "RTC";
|
|
3896
|
-
goog.dom.TagName.RUBY = "RUBY";
|
|
3897
|
-
goog.dom.TagName.S = "S";
|
|
3898
|
-
goog.dom.TagName.SAMP = "SAMP";
|
|
3899
|
-
goog.dom.TagName.SCRIPT = "SCRIPT";
|
|
3900
|
-
goog.dom.TagName.SECTION = "SECTION";
|
|
3901
|
-
goog.dom.TagName.SELECT = "SELECT";
|
|
3902
|
-
goog.dom.TagName.SMALL = "SMALL";
|
|
3903
|
-
goog.dom.TagName.SOURCE = "SOURCE";
|
|
3904
|
-
goog.dom.TagName.SPAN = "SPAN";
|
|
3905
|
-
goog.dom.TagName.STRIKE = "STRIKE";
|
|
3906
|
-
goog.dom.TagName.STRONG = "STRONG";
|
|
3907
|
-
goog.dom.TagName.STYLE = "STYLE";
|
|
3908
|
-
goog.dom.TagName.SUB = "SUB";
|
|
3909
|
-
goog.dom.TagName.SUMMARY = "SUMMARY";
|
|
3910
|
-
goog.dom.TagName.SUP = "SUP";
|
|
3911
|
-
goog.dom.TagName.SVG = "SVG";
|
|
3912
|
-
goog.dom.TagName.TABLE = "TABLE";
|
|
3913
|
-
goog.dom.TagName.TBODY = "TBODY";
|
|
3914
|
-
goog.dom.TagName.TD = "TD";
|
|
3915
|
-
goog.dom.TagName.TEMPLATE = "TEMPLATE";
|
|
3916
|
-
goog.dom.TagName.TEXTAREA = "TEXTAREA";
|
|
3917
|
-
goog.dom.TagName.TFOOT = "TFOOT";
|
|
3918
|
-
goog.dom.TagName.TH = "TH";
|
|
3919
|
-
goog.dom.TagName.THEAD = "THEAD";
|
|
3920
|
-
goog.dom.TagName.TIME = "TIME";
|
|
3921
|
-
goog.dom.TagName.TITLE = "TITLE";
|
|
3922
|
-
goog.dom.TagName.TR = "TR";
|
|
3923
|
-
goog.dom.TagName.TRACK = "TRACK";
|
|
3924
|
-
goog.dom.TagName.TT = "TT";
|
|
3925
|
-
goog.dom.TagName.U = "U";
|
|
3926
|
-
goog.dom.TagName.UL = "UL";
|
|
3927
|
-
goog.dom.TagName.VAR = "VAR";
|
|
3928
|
-
goog.dom.TagName.VIDEO = "VIDEO";
|
|
3929
|
-
goog.dom.TagName.WBR = "WBR";
|
|
3930
|
-
goog.dom.tags = {};
|
|
3931
|
-
goog.dom.tags.VOID_TAGS_ = {area:!0, base:!0, br:!0, col:!0, command:!0, embed:!0, hr:!0, img:!0, input:!0, keygen:!0, link:!0, meta:!0, param:!0, source:!0, track:!0, wbr:!0};
|
|
3932
|
-
goog.dom.tags.isVoidTag = function(tagName) {
|
|
3933
|
-
return goog.dom.tags.VOID_TAGS_[tagName] === !0;
|
|
3558
|
+
module$exports$safevalues$dom$globals$window.getStyleNonce = function(win) {
|
|
3559
|
+
return module$contents$safevalues$dom$globals$window_getNonceFor("style", win);
|
|
3934
3560
|
};
|
|
3935
|
-
|
|
3936
|
-
|
|
3561
|
+
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, win) {
|
|
3562
|
+
var $jscomp$optchain$tmpm1987982378$0, $jscomp$optchain$tmpm1987982378$1, el = ($jscomp$optchain$tmpm1987982378$1 = ($jscomp$optchain$tmpm1987982378$0 = win.document).querySelector) == null ? void 0 : $jscomp$optchain$tmpm1987982378$1.call($jscomp$optchain$tmpm1987982378$0, elementName + "[nonce]");
|
|
3563
|
+
return el ? el.nonce || el.getAttribute("nonce") || "" : "";
|
|
3564
|
+
}
|
|
3565
|
+
;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"}, module$contents$safevalues$internals$script_impl_trustedTypes = goog.global.trustedTypes;
|
|
3566
|
+
module$exports$safevalues$internals$script_impl.SafeScript = function(token, value) {
|
|
3937
3567
|
goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
3938
|
-
this.
|
|
3568
|
+
this.privateDoNotAccessOrElseWrappedScript = value;
|
|
3939
3569
|
};
|
|
3940
|
-
module$exports$safevalues$internals$
|
|
3941
|
-
return this.
|
|
3570
|
+
module$exports$safevalues$internals$script_impl.SafeScript.prototype.toString = function() {
|
|
3571
|
+
return this.privateDoNotAccessOrElseWrappedScript + "";
|
|
3942
3572
|
};
|
|
3943
|
-
var module$contents$safevalues$internals$
|
|
3944
|
-
function module$contents$safevalues$internals$
|
|
3945
|
-
return new module$exports$safevalues$internals$
|
|
3573
|
+
var module$contents$safevalues$internals$script_impl_ScriptImpl = module$exports$safevalues$internals$script_impl.SafeScript;
|
|
3574
|
+
function module$contents$safevalues$internals$script_impl_constructScript(value) {
|
|
3575
|
+
return new module$exports$safevalues$internals$script_impl.SafeScript(module$exports$safevalues$internals$secrets.secretToken, value);
|
|
3946
3576
|
}
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
return
|
|
3577
|
+
function module$contents$safevalues$internals$script_impl_createScriptInternal(value) {
|
|
3578
|
+
var noinlineValue = value, policy = (0,goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse)();
|
|
3579
|
+
return module$contents$safevalues$internals$script_impl_constructScript(policy ? policy.createScript(noinlineValue) : noinlineValue);
|
|
3950
3580
|
}
|
|
3951
|
-
module$exports$safevalues$internals$
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3581
|
+
module$exports$safevalues$internals$script_impl.createScriptInternal = module$contents$safevalues$internals$script_impl_createScriptInternal;
|
|
3582
|
+
module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT = module$contents$safevalues$internals$pure_pure(function() {
|
|
3583
|
+
return module$contents$safevalues$internals$script_impl_constructScript(module$contents$safevalues$internals$script_impl_trustedTypes ? module$contents$safevalues$internals$script_impl_trustedTypes.emptyScript : "");
|
|
3584
|
+
});
|
|
3585
|
+
function module$contents$safevalues$internals$script_impl_isScript(value) {
|
|
3586
|
+
return value instanceof module$exports$safevalues$internals$script_impl.SafeScript;
|
|
3587
|
+
}
|
|
3588
|
+
module$exports$safevalues$internals$script_impl.isScript = module$contents$safevalues$internals$script_impl_isScript;
|
|
3589
|
+
function module$contents$safevalues$internals$script_impl_unwrapScript(value) {
|
|
3590
|
+
if (module$contents$safevalues$internals$script_impl_isScript(value)) {
|
|
3591
|
+
return value.privateDoNotAccessOrElseWrappedScript;
|
|
3955
3592
|
}
|
|
3956
3593
|
var message = "";
|
|
3957
|
-
goog.DEBUG && (message = "Unexpected type when unwrapping
|
|
3594
|
+
goog.DEBUG && (message = "Unexpected type when unwrapping SafeScript");
|
|
3958
3595
|
throw Error(message);
|
|
3959
3596
|
}
|
|
3960
|
-
module$exports$safevalues$internals$
|
|
3597
|
+
module$exports$safevalues$internals$script_impl.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
|
|
3598
|
+
var module$exports$safevalues$dom$elements$script = {}, module$contents$safevalues$dom$elements$script_module = module$contents$safevalues$dom$elements$script_module || {id:"third_party/javascript/safevalues/dom/elements/script.closure.js"};
|
|
3599
|
+
function module$contents$safevalues$dom$elements$script_setNonceForScriptElement(script) {
|
|
3600
|
+
var nonce = (0,module$exports$safevalues$dom$globals$window.getScriptNonce)(script.ownerDocument && script.ownerDocument.defaultView || window);
|
|
3601
|
+
nonce && script.setAttribute("nonce", nonce);
|
|
3602
|
+
}
|
|
3603
|
+
module$exports$safevalues$dom$elements$script.setTextContent = function(script, v, options) {
|
|
3604
|
+
script.textContent = module$contents$safevalues$internals$script_impl_unwrapScript(v);
|
|
3605
|
+
(options == null ? 0 : options.omitNonce) || module$contents$safevalues$dom$elements$script_setNonceForScriptElement(script);
|
|
3606
|
+
};
|
|
3607
|
+
module$exports$safevalues$dom$elements$script.setSrc = function(script, v, options) {
|
|
3608
|
+
script.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v);
|
|
3609
|
+
(options == null ? 0 : options.omitNonce) || module$contents$safevalues$dom$elements$script_setNonceForScriptElement(script);
|
|
3610
|
+
};
|
|
3961
3611
|
var module$exports$safevalues$for_closure$index = {}, module$contents$safevalues$for_closure$index_module = module$contents$safevalues$for_closure$index_module || {id:"third_party/javascript/safevalues/for_closure/index.closure.js"};
|
|
3962
3612
|
module$exports$safevalues$for_closure$index.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
|
|
3613
|
+
module$exports$safevalues$for_closure$index.EMPTY_HTML = module$exports$safevalues$internals$html_impl.EMPTY_HTML;
|
|
3614
|
+
module$exports$safevalues$for_closure$index.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
|
|
3615
|
+
module$exports$safevalues$for_closure$index.createHtmlInternal = module$exports$safevalues$internals$html_impl.createHtmlInternal;
|
|
3616
|
+
module$exports$safevalues$for_closure$index.unwrapHtml = module$exports$safevalues$internals$html_impl.unwrapHtml;
|
|
3963
3617
|
module$exports$safevalues$for_closure$index.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
3964
3618
|
module$exports$safevalues$for_closure$index.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
|
|
3965
3619
|
module$exports$safevalues$for_closure$index.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
@@ -3967,6 +3621,10 @@ module$exports$safevalues$for_closure$index.SafeUrl = module$exports$safevalues$
|
|
|
3967
3621
|
module$exports$safevalues$for_closure$index.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
3968
3622
|
var module$exports$safevalues$for_closure = {};
|
|
3969
3623
|
module$exports$safevalues$for_closure.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
|
|
3624
|
+
module$exports$safevalues$for_closure.EMPTY_HTML = module$exports$safevalues$for_closure$index.EMPTY_HTML;
|
|
3625
|
+
module$exports$safevalues$for_closure.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
|
|
3626
|
+
module$exports$safevalues$for_closure.createHtmlInternal = module$exports$safevalues$for_closure$index.createHtmlInternal;
|
|
3627
|
+
module$exports$safevalues$for_closure.unwrapHtml = module$exports$safevalues$for_closure$index.unwrapHtml;
|
|
3970
3628
|
module$exports$safevalues$for_closure.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
3971
3629
|
module$exports$safevalues$for_closure.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
|
|
3972
3630
|
module$exports$safevalues$for_closure.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
@@ -4135,503 +3793,529 @@ module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecu
|
|
|
4135
3793
|
};
|
|
4136
3794
|
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.EMPTY = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse("");
|
|
4137
3795
|
goog.html.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
4138
|
-
var module$
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
module$contents$goog$html$
|
|
4148
|
-
|
|
3796
|
+
var module$exports$goog$html$safestylesheet_internals_for_safevalues = {};
|
|
3797
|
+
module$exports$goog$html$safestylesheet_internals_for_safevalues.createSafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse;
|
|
3798
|
+
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"};
|
|
3799
|
+
module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
3800
|
+
function module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheet) {
|
|
3801
|
+
return (0,module$exports$goog$html$safestylesheet_internals_for_safevalues.createSafeStyleSheet)(styleSheet);
|
|
3802
|
+
}
|
|
3803
|
+
module$exports$safevalues$internals$style_sheet_impl.createStyleSheetInternal = module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal;
|
|
3804
|
+
function module$contents$safevalues$internals$style_sheet_impl_isStyleSheet(value) {
|
|
3805
|
+
return value instanceof module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
3806
|
+
}
|
|
3807
|
+
module$exports$safevalues$internals$style_sheet_impl.isStyleSheet = module$contents$safevalues$internals$style_sheet_impl_isStyleSheet;
|
|
3808
|
+
function module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(value) {
|
|
3809
|
+
return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(value);
|
|
3810
|
+
}
|
|
3811
|
+
module$exports$safevalues$internals$style_sheet_impl.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
|
|
3812
|
+
var module$exports$safevalues$dom$elements$style = {}, module$contents$safevalues$dom$elements$style_module = module$contents$safevalues$dom$elements$style_module || {id:"third_party/javascript/safevalues/dom/elements/style.closure.js"};
|
|
3813
|
+
module$exports$safevalues$dom$elements$style.setTextContent = function(elem, safeStyleSheet) {
|
|
3814
|
+
elem.textContent = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(safeStyleSheet);
|
|
4149
3815
|
};
|
|
4150
|
-
module$contents$
|
|
4151
|
-
|
|
4152
|
-
|
|
3816
|
+
var module$exports$safevalues$dom$elements$svg = {}, module$contents$safevalues$dom$elements$svg_module = module$contents$safevalues$dom$elements$svg_module || {id:"third_party/javascript/safevalues/dom/elements/svg.closure.js"}, module$contents$safevalues$dom$elements$svg_UNSAFE_SVG_ATTRIBUTES = ["href", "xlink:href"];
|
|
3817
|
+
module$exports$safevalues$dom$elements$svg.setAttribute = function(svg, attr, value) {
|
|
3818
|
+
var attrLower = attr.toLowerCase();
|
|
3819
|
+
if (module$contents$safevalues$dom$elements$svg_UNSAFE_SVG_ATTRIBUTES.indexOf(attrLower) !== -1 || attrLower.indexOf("on") === 0) {
|
|
3820
|
+
var msg = "";
|
|
3821
|
+
goog.DEBUG && (msg = "Setting the '" + attrLower + "' attribute on SVG can cause XSS.");
|
|
3822
|
+
throw Error(msg);
|
|
4153
3823
|
}
|
|
4154
|
-
|
|
4155
|
-
return "type_error:SafeHtml";
|
|
4156
|
-
};
|
|
4157
|
-
module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape = function(textOrHtml) {
|
|
4158
|
-
return textOrHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml ? textOrHtml : module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(String(textOrHtml)));
|
|
3824
|
+
svg.setAttribute(attr, value);
|
|
4159
3825
|
};
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
3826
|
+
goog.array = {};
|
|
3827
|
+
goog.NATIVE_ARRAY_PROTOTYPES = goog.TRUSTED_SITE;
|
|
3828
|
+
var module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS = goog.FEATURESET_YEAR > 2012;
|
|
3829
|
+
goog.array.ASSUME_NATIVE_FUNCTIONS = module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS;
|
|
3830
|
+
function module$contents$goog$array_peek(array) {
|
|
3831
|
+
return array[array.length - 1];
|
|
3832
|
+
}
|
|
3833
|
+
goog.array.peek = module$contents$goog$array_peek;
|
|
3834
|
+
goog.array.last = module$contents$goog$array_peek;
|
|
3835
|
+
var module$contents$goog$array_indexOf = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.indexOf) ? function(arr, obj, opt_fromIndex) {
|
|
3836
|
+
goog.asserts.assert(arr.length != null);
|
|
3837
|
+
return Array.prototype.indexOf.call(arr, obj, opt_fromIndex);
|
|
3838
|
+
} : function(arr, obj, opt_fromIndex) {
|
|
3839
|
+
var fromIndex = opt_fromIndex == null ? 0 : opt_fromIndex < 0 ? Math.max(0, arr.length + opt_fromIndex) : opt_fromIndex;
|
|
3840
|
+
if (typeof arr === "string") {
|
|
3841
|
+
return typeof obj !== "string" || obj.length != 1 ? -1 : arr.indexOf(obj, fromIndex);
|
|
4163
3842
|
}
|
|
4164
|
-
var
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
if (textOrHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml) {
|
|
4169
|
-
return textOrHtml;
|
|
3843
|
+
for (var i = fromIndex; i < arr.length; i++) {
|
|
3844
|
+
if (i in arr && arr[i] === obj) {
|
|
3845
|
+
return i;
|
|
3846
|
+
}
|
|
4170
3847
|
}
|
|
4171
|
-
|
|
4172
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html)));
|
|
4173
|
-
};
|
|
4174
|
-
module$contents$goog$html$SafeHtml_SafeHtml.create = function(tagName, attributes, content) {
|
|
4175
|
-
module$contents$goog$html$SafeHtml_SafeHtml.verifyTagName(String(tagName));
|
|
4176
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(tagName), attributes, content);
|
|
3848
|
+
return -1;
|
|
4177
3849
|
};
|
|
4178
|
-
module$contents$goog$
|
|
4179
|
-
|
|
4180
|
-
|
|
3850
|
+
goog.array.indexOf = module$contents$goog$array_indexOf;
|
|
3851
|
+
var module$contents$goog$array_lastIndexOf = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.lastIndexOf) ? function(arr, obj, opt_fromIndex) {
|
|
3852
|
+
goog.asserts.assert(arr.length != null);
|
|
3853
|
+
return Array.prototype.lastIndexOf.call(arr, obj, opt_fromIndex == null ? arr.length - 1 : opt_fromIndex);
|
|
3854
|
+
} : function(arr, obj, opt_fromIndex) {
|
|
3855
|
+
var fromIndex = opt_fromIndex == null ? arr.length - 1 : opt_fromIndex;
|
|
3856
|
+
fromIndex < 0 && (fromIndex = Math.max(0, arr.length + fromIndex));
|
|
3857
|
+
if (typeof arr === "string") {
|
|
3858
|
+
return typeof obj !== "string" || obj.length != 1 ? -1 : arr.lastIndexOf(obj, fromIndex);
|
|
4181
3859
|
}
|
|
4182
|
-
|
|
4183
|
-
|
|
3860
|
+
for (var i = fromIndex; i >= 0; i--) {
|
|
3861
|
+
if (i in arr && arr[i] === obj) {
|
|
3862
|
+
return i;
|
|
3863
|
+
}
|
|
4184
3864
|
}
|
|
3865
|
+
return -1;
|
|
4185
3866
|
};
|
|
4186
|
-
module$contents$goog$
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
var
|
|
4192
|
-
|
|
4193
|
-
};
|
|
4194
|
-
module$contents$goog$html$SafeHtml_SafeHtml.createSandboxIframe = function(src, srcdoc, attributes, content) {
|
|
4195
|
-
if (!module$contents$goog$html$SafeHtml_SafeHtml.canUseSandboxIframe()) {
|
|
4196
|
-
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? "The browser does not support sandboxed iframes." : "");
|
|
3867
|
+
goog.array.lastIndexOf = module$contents$goog$array_lastIndexOf;
|
|
3868
|
+
var module$contents$goog$array_forEach = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.forEach) ? function(arr, f, opt_obj) {
|
|
3869
|
+
goog.asserts.assert(arr.length != null);
|
|
3870
|
+
Array.prototype.forEach.call(arr, f, opt_obj);
|
|
3871
|
+
} : function(arr, f, opt_obj) {
|
|
3872
|
+
for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
|
|
3873
|
+
i in arr2 && f.call(opt_obj, arr2[i], i, arr);
|
|
4197
3874
|
}
|
|
4198
|
-
var fixedAttributes = {};
|
|
4199
|
-
fixedAttributes.src = src ? module$contents$safevalues$internals$url_impl_unwrapUrl(module$contents$safevalues$builders$url_builders_sanitizeUrl(src)) : null;
|
|
4200
|
-
fixedAttributes.srcdoc = srcdoc || null;
|
|
4201
|
-
fixedAttributes.sandbox = "";
|
|
4202
|
-
var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes(fixedAttributes, {}, attributes);
|
|
4203
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
|
|
4204
3875
|
};
|
|
4205
|
-
module$contents$goog$
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
goog.html.TrustedResourceUrl.unwrap(src);
|
|
4210
|
-
var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes({src:src}, {}, attributes);
|
|
4211
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script", combinedAttrs);
|
|
4212
|
-
};
|
|
4213
|
-
module$contents$goog$html$SafeHtml_SafeHtml.createStyle = function(styleSheet, attributes) {
|
|
4214
|
-
var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes({type:"text/css"}, {}, attributes), content = "";
|
|
4215
|
-
styleSheet = module$contents$goog$array_concat(styleSheet);
|
|
4216
|
-
for (var i = 0; i < styleSheet.length; i++) {
|
|
4217
|
-
content += module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(styleSheet[i]);
|
|
3876
|
+
goog.array.forEach = module$contents$goog$array_forEach;
|
|
3877
|
+
function module$contents$goog$array_forEachRight(arr, f, opt_obj) {
|
|
3878
|
+
for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = l - 1; i >= 0; --i) {
|
|
3879
|
+
i in arr2 && f.call(opt_obj, arr2[i], i, arr);
|
|
4218
3880
|
}
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
argument.forEach(addArgument);
|
|
4230
|
-
} else {
|
|
4231
|
-
var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(argument);
|
|
4232
|
-
content.push(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html));
|
|
3881
|
+
}
|
|
3882
|
+
goog.array.forEachRight = module$contents$goog$array_forEachRight;
|
|
3883
|
+
var module$contents$goog$array_filter = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.filter) ? function(arr, f, opt_obj) {
|
|
3884
|
+
goog.asserts.assert(arr.length != null);
|
|
3885
|
+
return Array.prototype.filter.call(arr, f, opt_obj);
|
|
3886
|
+
} : function(arr, f, opt_obj) {
|
|
3887
|
+
for (var l = arr.length, res = [], resLength = 0, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
|
|
3888
|
+
if (i in arr2) {
|
|
3889
|
+
var val = arr2[i];
|
|
3890
|
+
f.call(opt_obj, val, i, arr) && (res[resLength++] = val);
|
|
4233
3891
|
}
|
|
4234
|
-
}
|
|
4235
|
-
|
|
4236
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(content.join(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(separatorHtml)));
|
|
3892
|
+
}
|
|
3893
|
+
return res;
|
|
4237
3894
|
};
|
|
4238
|
-
module$contents$goog$
|
|
4239
|
-
|
|
3895
|
+
goog.array.filter = module$contents$goog$array_filter;
|
|
3896
|
+
var module$contents$goog$array_map = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.map) ? function(arr, f, opt_obj) {
|
|
3897
|
+
goog.asserts.assert(arr.length != null);
|
|
3898
|
+
return Array.prototype.map.call(arr, f, opt_obj);
|
|
3899
|
+
} : function(arr, f, opt_obj) {
|
|
3900
|
+
for (var l = arr.length, res = Array(l), arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
|
|
3901
|
+
i in arr2 && (res[i] = f.call(opt_obj, arr2[i], i, arr));
|
|
3902
|
+
}
|
|
3903
|
+
return res;
|
|
4240
3904
|
};
|
|
4241
|
-
module$contents$goog$
|
|
4242
|
-
|
|
4243
|
-
|
|
3905
|
+
goog.array.map = module$contents$goog$array_map;
|
|
3906
|
+
goog.array.reduce = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.reduce) ? function(arr, f, val, opt_obj) {
|
|
3907
|
+
goog.asserts.assert(arr.length != null);
|
|
3908
|
+
opt_obj && (f = goog.TRUSTED_SITE ? f.bind(opt_obj) : goog.bind(f, opt_obj));
|
|
3909
|
+
return Array.prototype.reduce.call(arr, f, val);
|
|
3910
|
+
} : function(arr, f, val, opt_obj) {
|
|
3911
|
+
var rval = val;
|
|
3912
|
+
module$contents$goog$array_forEach(arr, function(val, index) {
|
|
3913
|
+
rval = f.call(opt_obj, rval, val, index, arr);
|
|
3914
|
+
});
|
|
3915
|
+
return rval;
|
|
4244
3916
|
};
|
|
4245
|
-
module$contents$goog$
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
3917
|
+
goog.array.reduceRight = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.reduceRight) ? function(arr, f, val, opt_obj) {
|
|
3918
|
+
goog.asserts.assert(arr.length != null);
|
|
3919
|
+
goog.asserts.assert(f != null);
|
|
3920
|
+
opt_obj && (f = goog.TRUSTED_SITE ? f.bind(opt_obj) : goog.bind(f, opt_obj));
|
|
3921
|
+
return Array.prototype.reduceRight.call(arr, f, val);
|
|
3922
|
+
} : function(arr, f, val, opt_obj) {
|
|
3923
|
+
var rval = val;
|
|
3924
|
+
module$contents$goog$array_forEachRight(arr, function(val, index) {
|
|
3925
|
+
rval = f.call(opt_obj, rval, val, index, arr);
|
|
3926
|
+
});
|
|
3927
|
+
return rval;
|
|
4255
3928
|
};
|
|
4256
|
-
module$contents$goog$
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
}
|
|
4264
|
-
var value = attributes[name];
|
|
4265
|
-
value != null && (result += " " + module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value));
|
|
4266
|
-
}
|
|
3929
|
+
var module$contents$goog$array_some = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.some) ? function(arr, f, opt_obj) {
|
|
3930
|
+
goog.asserts.assert(arr.length != null);
|
|
3931
|
+
return Array.prototype.some.call(arr, f, opt_obj);
|
|
3932
|
+
} : function(arr, f, opt_obj) {
|
|
3933
|
+
for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
|
|
3934
|
+
if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) {
|
|
3935
|
+
return !0;
|
|
4267
3936
|
}
|
|
4268
3937
|
}
|
|
4269
|
-
return
|
|
3938
|
+
return !1;
|
|
4270
3939
|
};
|
|
4271
|
-
module$contents$goog$
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
for (var
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
if (attributes) {
|
|
4280
|
-
for (var name$jscomp$1 in attributes) {
|
|
4281
|
-
if (Object.prototype.hasOwnProperty.call(attributes, name$jscomp$1)) {
|
|
4282
|
-
var nameLower = name$jscomp$1.toLowerCase();
|
|
4283
|
-
if (nameLower in fixedAttributes) {
|
|
4284
|
-
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Cannot override "' + nameLower + '" attribute, got "' + name$jscomp$1 + '" with value "' + attributes[name$jscomp$1] + '"' : "");
|
|
4285
|
-
}
|
|
4286
|
-
nameLower in defaultAttributes && delete combinedAttributes[nameLower];
|
|
4287
|
-
combinedAttributes[name$jscomp$1] = attributes[name$jscomp$1];
|
|
4288
|
-
}
|
|
3940
|
+
goog.array.some = module$contents$goog$array_some;
|
|
3941
|
+
var module$contents$goog$array_every = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.every) ? function(arr, f, opt_obj) {
|
|
3942
|
+
goog.asserts.assert(arr.length != null);
|
|
3943
|
+
return Array.prototype.every.call(arr, f, opt_obj);
|
|
3944
|
+
} : function(arr, f, opt_obj) {
|
|
3945
|
+
for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
|
|
3946
|
+
if (i in arr2 && !f.call(opt_obj, arr2[i], i, arr)) {
|
|
3947
|
+
return !1;
|
|
4289
3948
|
}
|
|
4290
3949
|
}
|
|
4291
|
-
return
|
|
3950
|
+
return !0;
|
|
4292
3951
|
};
|
|
4293
|
-
module$contents$goog$
|
|
4294
|
-
module$contents$goog$
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
value = goog.string.Const.unwrap(value);
|
|
4301
|
-
} else if (name.toLowerCase() == "style") {
|
|
4302
|
-
if (module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE) {
|
|
4303
|
-
value = module$contents$goog$html$SafeHtml_getStyleValue(value);
|
|
4304
|
-
} else {
|
|
4305
|
-
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "style" not supported.' : "");
|
|
4306
|
-
}
|
|
4307
|
-
} else {
|
|
4308
|
-
if (/^on/i.test(name)) {
|
|
4309
|
-
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" requires goog.string.Const value, "' + value + '" given.' : "");
|
|
4310
|
-
}
|
|
4311
|
-
if (name.toLowerCase() in module$contents$goog$html$SafeHtml_URL_ATTRIBUTES) {
|
|
4312
|
-
if (value instanceof goog.html.TrustedResourceUrl) {
|
|
4313
|
-
value = goog.html.TrustedResourceUrl.unwrap(value);
|
|
4314
|
-
} else if (value instanceof module$exports$safevalues$internals$url_impl.SafeUrl) {
|
|
4315
|
-
value = module$contents$safevalues$internals$url_impl_unwrapUrl(value);
|
|
4316
|
-
} else if (typeof value === "string") {
|
|
4317
|
-
value = module$contents$safevalues$builders$url_builders_sanitizeUrl(value).toString();
|
|
4318
|
-
} else {
|
|
4319
|
-
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" on tag "' + tagName + '" requires safevalues.SafeUrl, goog.string.Const, or string, value "' + value + '" given.' : "");
|
|
4320
|
-
}
|
|
4321
|
-
}
|
|
4322
|
-
}
|
|
4323
|
-
goog.asserts.assert(value instanceof module$exports$safevalues$internals$url_impl.SafeUrl || value instanceof goog.html.TrustedResourceUrl || value instanceof module$exports$safevalues$internals$style_impl.SafeStyle || value instanceof module$contents$goog$html$SafeHtml_SafeHtml || typeof value === "string" || typeof value === "number", "String or number value expected, got " + typeof value + " with value: " + value);
|
|
4324
|
-
return name + '="' + goog.string.internal.htmlEscape(String(value)) + '"';
|
|
4325
|
-
}
|
|
4326
|
-
function module$contents$goog$html$SafeHtml_getStyleValue(value) {
|
|
4327
|
-
if (!goog.isObject(value)) {
|
|
4328
|
-
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'The "style" attribute requires goog.html.SafeStyle or map of style properties, ' + typeof value + " given: " + value : "");
|
|
4329
|
-
}
|
|
4330
|
-
value instanceof module$exports$safevalues$internals$style_impl.SafeStyle || (value = module$exports$safevalues$internals$style_impl.SafeStyle.create(value));
|
|
4331
|
-
return module$exports$safevalues$internals$style_impl.SafeStyle.unwrap(value);
|
|
3952
|
+
goog.array.every = module$contents$goog$array_every;
|
|
3953
|
+
function module$contents$goog$array_count(arr, f, opt_obj) {
|
|
3954
|
+
var count = 0;
|
|
3955
|
+
module$contents$goog$array_forEach(arr, function(element, index, arr) {
|
|
3956
|
+
f.call(opt_obj, element, index, arr) && ++count;
|
|
3957
|
+
}, opt_obj);
|
|
3958
|
+
return count;
|
|
4332
3959
|
}
|
|
4333
|
-
module$contents$goog$
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
module$exports$safevalues$internals$html_impl.SafeHtml = module$contents$goog$html$SafeHtml_SafeHtml;
|
|
4345
|
-
module$exports$safevalues$internals$html_impl.createHtmlInternal = function(html) {
|
|
4346
|
-
return (0,module$exports$goog$html$safehtml_internals_for_safevalues.createSafeHtml)(html);
|
|
4347
|
-
};
|
|
4348
|
-
module$exports$safevalues$internals$html_impl.EMPTY_HTML = module$contents$goog$html$SafeHtml_SafeHtml.EMPTY;
|
|
4349
|
-
module$exports$safevalues$internals$html_impl.isHtml = function(value) {
|
|
4350
|
-
return value instanceof module$contents$goog$html$SafeHtml_SafeHtml;
|
|
4351
|
-
};
|
|
4352
|
-
module$exports$safevalues$internals$html_impl.unwrapHtml = function(value) {
|
|
4353
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(value);
|
|
4354
|
-
};
|
|
4355
|
-
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"};
|
|
4356
|
-
module$exports$safevalues$dom$elements$element.setInnerHtml = function(elOrRoot, v) {
|
|
4357
|
-
module$contents$safevalues$dom$elements$element_isElement(elOrRoot) && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(elOrRoot);
|
|
4358
|
-
elOrRoot.innerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
|
|
4359
|
-
};
|
|
4360
|
-
module$exports$safevalues$dom$elements$element.setOuterHtml = function(e, v) {
|
|
4361
|
-
var parent = e.parentElement;
|
|
4362
|
-
parent !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(parent);
|
|
4363
|
-
e.outerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
|
|
4364
|
-
};
|
|
4365
|
-
module$exports$safevalues$dom$elements$element.setCssText = function(e, v) {
|
|
4366
|
-
e.style.cssText = module$contents$safevalues$internals$style_impl_unwrapStyle(v);
|
|
4367
|
-
};
|
|
4368
|
-
module$exports$safevalues$dom$elements$element.insertAdjacentHtml = function(element, position, v) {
|
|
4369
|
-
var tagContext = position === "beforebegin" || position === "afterend" ? element.parentElement : element;
|
|
4370
|
-
tagContext !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(tagContext);
|
|
4371
|
-
element.insertAdjacentHTML(position, (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v));
|
|
4372
|
-
};
|
|
4373
|
-
module$exports$safevalues$dom$elements$element.buildPrefixedAttributeSetter = function(prefix) {
|
|
4374
|
-
var prefixes = [prefix].concat((0,$jscomp.arrayFromIterable)($jscomp.getRestArguments.apply(1, arguments)));
|
|
4375
|
-
return function(e, attr, value) {
|
|
4376
|
-
module$contents$safevalues$dom$elements$element_setPrefixedAttribute(prefixes, e, attr, value);
|
|
4377
|
-
};
|
|
4378
|
-
};
|
|
4379
|
-
function module$contents$safevalues$dom$elements$element_setPrefixedAttribute(attrPrefixes, e, attr, value) {
|
|
4380
|
-
if (attrPrefixes.length === 0) {
|
|
4381
|
-
var message = "";
|
|
4382
|
-
goog.DEBUG && (message = "No prefixes are provided");
|
|
4383
|
-
throw Error(message);
|
|
3960
|
+
goog.array.count = module$contents$goog$array_count;
|
|
3961
|
+
function module$contents$goog$array_find(arr, f, opt_obj) {
|
|
3962
|
+
var i = module$contents$goog$array_findIndex(arr, f, opt_obj);
|
|
3963
|
+
return i < 0 ? null : typeof arr === "string" ? arr.charAt(i) : arr[i];
|
|
3964
|
+
}
|
|
3965
|
+
goog.array.find = module$contents$goog$array_find;
|
|
3966
|
+
function module$contents$goog$array_findIndex(arr, f, opt_obj) {
|
|
3967
|
+
for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
|
|
3968
|
+
if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) {
|
|
3969
|
+
return i;
|
|
3970
|
+
}
|
|
4384
3971
|
}
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
3972
|
+
return -1;
|
|
3973
|
+
}
|
|
3974
|
+
goog.array.findIndex = module$contents$goog$array_findIndex;
|
|
3975
|
+
goog.array.findRight = function(arr, f, opt_obj) {
|
|
3976
|
+
var i = module$contents$goog$array_findIndexRight(arr, f, opt_obj);
|
|
3977
|
+
return i < 0 ? null : typeof arr === "string" ? arr.charAt(i) : arr[i];
|
|
3978
|
+
};
|
|
3979
|
+
function module$contents$goog$array_findIndexRight(arr, f, opt_obj) {
|
|
3980
|
+
for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = l - 1; i >= 0; i--) {
|
|
3981
|
+
if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) {
|
|
3982
|
+
return i;
|
|
3983
|
+
}
|
|
4392
3984
|
}
|
|
4393
|
-
|
|
3985
|
+
return -1;
|
|
4394
3986
|
}
|
|
4395
|
-
|
|
4396
|
-
function module$contents$
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
3987
|
+
goog.array.findIndexRight = module$contents$goog$array_findIndexRight;
|
|
3988
|
+
function module$contents$goog$array_contains(arr, obj) {
|
|
3989
|
+
return module$contents$goog$array_indexOf(arr, obj) >= 0;
|
|
3990
|
+
}
|
|
3991
|
+
goog.array.contains = module$contents$goog$array_contains;
|
|
3992
|
+
function module$contents$goog$array_isEmpty(arr) {
|
|
3993
|
+
return arr.length == 0;
|
|
3994
|
+
}
|
|
3995
|
+
goog.array.isEmpty = module$contents$goog$array_isEmpty;
|
|
3996
|
+
function module$contents$goog$array_clear(arr) {
|
|
3997
|
+
if (!Array.isArray(arr)) {
|
|
3998
|
+
for (var i = arr.length - 1; i >= 0; i--) {
|
|
3999
|
+
delete arr[i];
|
|
4000
|
+
}
|
|
4400
4001
|
}
|
|
4002
|
+
arr.length = 0;
|
|
4401
4003
|
}
|
|
4402
|
-
|
|
4403
|
-
|
|
4004
|
+
goog.array.clear = module$contents$goog$array_clear;
|
|
4005
|
+
goog.array.insert = function(arr, obj) {
|
|
4006
|
+
module$contents$goog$array_contains(arr, obj) || arr.push(obj);
|
|
4007
|
+
};
|
|
4008
|
+
function module$contents$goog$array_insertAt(arr, obj, opt_i) {
|
|
4009
|
+
module$contents$goog$array_splice(arr, opt_i, 0, obj);
|
|
4404
4010
|
}
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4011
|
+
goog.array.insertAt = module$contents$goog$array_insertAt;
|
|
4012
|
+
goog.array.insertArrayAt = function(arr, elementsToAdd, opt_i) {
|
|
4013
|
+
goog.partial(module$contents$goog$array_splice, arr, opt_i, 0).apply(null, elementsToAdd);
|
|
4408
4014
|
};
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
sanitizedUrl !== void 0 && (form.action = sanitizedUrl);
|
|
4015
|
+
goog.array.insertBefore = function(arr, obj, opt_obj2) {
|
|
4016
|
+
var i;
|
|
4017
|
+
arguments.length == 2 || (i = module$contents$goog$array_indexOf(arr, opt_obj2)) < 0 ? arr.push(obj) : module$contents$goog$array_insertAt(arr, obj, i);
|
|
4413
4018
|
};
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4019
|
+
function module$contents$goog$array_remove(arr, obj) {
|
|
4020
|
+
var i = module$contents$goog$array_indexOf(arr, obj), rv;
|
|
4021
|
+
(rv = i >= 0) && module$contents$goog$array_removeAt(arr, i);
|
|
4022
|
+
return rv;
|
|
4417
4023
|
}
|
|
4418
|
-
|
|
4419
|
-
function module$contents$
|
|
4420
|
-
|
|
4024
|
+
goog.array.remove = module$contents$goog$array_remove;
|
|
4025
|
+
function module$contents$goog$array_removeLast(arr, obj) {
|
|
4026
|
+
var i = module$contents$goog$array_lastIndexOf(arr, obj);
|
|
4027
|
+
return i >= 0 ? (module$contents$goog$array_removeAt(arr, i), !0) : !1;
|
|
4421
4028
|
}
|
|
4422
|
-
|
|
4423
|
-
module$
|
|
4029
|
+
goog.array.removeLast = module$contents$goog$array_removeLast;
|
|
4030
|
+
function module$contents$goog$array_removeAt(arr, i) {
|
|
4031
|
+
goog.asserts.assert(arr.length != null);
|
|
4032
|
+
return Array.prototype.splice.call(arr, i, 1).length == 1;
|
|
4033
|
+
}
|
|
4034
|
+
goog.array.removeAt = module$contents$goog$array_removeAt;
|
|
4035
|
+
goog.array.removeIf = function(arr, f, opt_obj) {
|
|
4036
|
+
var i = module$contents$goog$array_findIndex(arr, f, opt_obj);
|
|
4037
|
+
return i >= 0 ? (module$contents$goog$array_removeAt(arr, i), !0) : !1;
|
|
4424
4038
|
};
|
|
4425
|
-
|
|
4039
|
+
goog.array.removeAllIf = function(arr, f, opt_obj) {
|
|
4040
|
+
var removedCount = 0;
|
|
4041
|
+
module$contents$goog$array_forEachRight(arr, function(val, index) {
|
|
4042
|
+
f.call(opt_obj, val, index, arr) && module$contents$goog$array_removeAt(arr, index) && removedCount++;
|
|
4043
|
+
});
|
|
4044
|
+
return removedCount;
|
|
4426
4045
|
};
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
iframe.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v).toString();
|
|
4430
|
-
}
|
|
4431
|
-
module$exports$safevalues$dom$elements$iframe.setSrc = module$contents$safevalues$dom$elements$iframe_setSrc;
|
|
4432
|
-
function module$contents$safevalues$dom$elements$iframe_setSrcdoc(iframe, v) {
|
|
4433
|
-
iframe.srcdoc = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
|
|
4046
|
+
function module$contents$goog$array_concat(var_args) {
|
|
4047
|
+
return Array.prototype.concat.apply([], arguments);
|
|
4434
4048
|
}
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
module$
|
|
4440
|
-
var
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4049
|
+
goog.array.concat = module$contents$goog$array_concat;
|
|
4050
|
+
goog.array.join = function(var_args) {
|
|
4051
|
+
return Array.prototype.concat.apply([], arguments);
|
|
4052
|
+
};
|
|
4053
|
+
function module$contents$goog$array_toArray(object) {
|
|
4054
|
+
var length = object.length;
|
|
4055
|
+
if (length > 0) {
|
|
4056
|
+
for (var rv = Array(length), i = 0; i < length; i++) {
|
|
4057
|
+
rv[i] = object[i];
|
|
4058
|
+
}
|
|
4059
|
+
return rv;
|
|
4445
4060
|
}
|
|
4061
|
+
return [];
|
|
4446
4062
|
}
|
|
4447
|
-
module$
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
element.removeAttribute("srcdoc");
|
|
4458
|
-
switch(intent) {
|
|
4459
|
-
case module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT:
|
|
4460
|
-
if (src instanceof goog.html.TrustedResourceUrl) {
|
|
4461
|
-
throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("TrustedResourceUrl", module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT);
|
|
4462
|
-
}
|
|
4463
|
-
module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, []);
|
|
4464
|
-
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(src);
|
|
4465
|
-
sanitizedUrl !== void 0 && (element.src = sanitizedUrl);
|
|
4466
|
-
break;
|
|
4467
|
-
case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT:
|
|
4468
|
-
if (!(src instanceof goog.html.TrustedResourceUrl)) {
|
|
4469
|
-
throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError(typeof src, module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT);
|
|
4470
|
-
}
|
|
4471
|
-
module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SAME_ORIGIN, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,
|
|
4472
|
-
module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);
|
|
4473
|
-
module$contents$safevalues$dom$elements$iframe_setSrc(element, src);
|
|
4474
|
-
break;
|
|
4475
|
-
case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT:
|
|
4476
|
-
if (src instanceof goog.html.TrustedResourceUrl) {
|
|
4477
|
-
throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("TrustedResourceUrl", module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT);
|
|
4063
|
+
goog.array.toArray = module$contents$goog$array_toArray;
|
|
4064
|
+
goog.array.clone = module$contents$goog$array_toArray;
|
|
4065
|
+
function module$contents$goog$array_extend(arr1, var_args) {
|
|
4066
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
4067
|
+
var arr2 = arguments[i];
|
|
4068
|
+
if (goog.isArrayLike(arr2)) {
|
|
4069
|
+
var len1 = arr1.length || 0, len2 = arr2.length || 0;
|
|
4070
|
+
arr1.length = len1 + len2;
|
|
4071
|
+
for (var j = 0; j < len2; j++) {
|
|
4072
|
+
arr1[len1 + j] = arr2[j];
|
|
4478
4073
|
}
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4074
|
+
} else {
|
|
4075
|
+
arr1.push(arr2);
|
|
4076
|
+
}
|
|
4077
|
+
}
|
|
4078
|
+
}
|
|
4079
|
+
goog.array.extend = module$contents$goog$array_extend;
|
|
4080
|
+
function module$contents$goog$array_splice(arr, index, howMany, var_args) {
|
|
4081
|
+
goog.asserts.assert(arr.length != null);
|
|
4082
|
+
return Array.prototype.splice.apply(arr, module$contents$goog$array_slice(arguments, 1));
|
|
4083
|
+
}
|
|
4084
|
+
goog.array.splice = module$contents$goog$array_splice;
|
|
4085
|
+
function module$contents$goog$array_slice(arr, start, opt_end) {
|
|
4086
|
+
goog.asserts.assert(arr.length != null);
|
|
4087
|
+
return arguments.length <= 2 ? Array.prototype.slice.call(arr, start) : Array.prototype.slice.call(arr, start, opt_end);
|
|
4088
|
+
}
|
|
4089
|
+
goog.array.slice = module$contents$goog$array_slice;
|
|
4090
|
+
function module$contents$goog$array_removeDuplicates(arr, opt_rv, opt_keyFn) {
|
|
4091
|
+
var returnArray = opt_rv || arr;
|
|
4092
|
+
if (goog.FEATURESET_YEAR >= 2018) {
|
|
4093
|
+
for (var defaultKeyFn = function(item) {
|
|
4094
|
+
return item;
|
|
4095
|
+
}, keyFn = opt_keyFn || defaultKeyFn, cursorInsert = 0, cursorRead = 0, seen = new Set(); cursorRead < arr.length;) {
|
|
4096
|
+
var current = arr[cursorRead++], key = keyFn(current);
|
|
4097
|
+
seen.has(key) || (seen.add(key), returnArray[cursorInsert++] = current);
|
|
4098
|
+
}
|
|
4099
|
+
returnArray.length = cursorInsert;
|
|
4100
|
+
} else {
|
|
4101
|
+
for (var defaultKeyFn$jscomp$0 = function(item) {
|
|
4102
|
+
return goog.isObject(item) ? "o" + goog.getUid(item) : (typeof item).charAt(0) + item;
|
|
4103
|
+
}, keyFn$jscomp$0 = opt_keyFn || defaultKeyFn$jscomp$0, cursorInsert$jscomp$0 = 0, cursorRead$jscomp$0 = 0, seen$jscomp$0 = {}; cursorRead$jscomp$0 < arr.length;) {
|
|
4104
|
+
var current$jscomp$0 = arr[cursorRead$jscomp$0++], key$jscomp$0 = keyFn$jscomp$0(current$jscomp$0);
|
|
4105
|
+
Object.prototype.hasOwnProperty.call(seen$jscomp$0, key$jscomp$0) || (seen$jscomp$0[key$jscomp$0] = !0, returnArray[cursorInsert$jscomp$0++] = current$jscomp$0);
|
|
4106
|
+
}
|
|
4107
|
+
returnArray.length = cursorInsert$jscomp$0;
|
|
4486
4108
|
}
|
|
4109
|
+
}
|
|
4110
|
+
goog.array.removeDuplicates = module$contents$goog$array_removeDuplicates;
|
|
4111
|
+
function module$contents$goog$array_binarySearch(arr, target, opt_compareFn) {
|
|
4112
|
+
return module$contents$goog$array_binarySearch_(arr, opt_compareFn || module$contents$goog$array_defaultCompare, !1, target);
|
|
4113
|
+
}
|
|
4114
|
+
goog.array.binarySearch = module$contents$goog$array_binarySearch;
|
|
4115
|
+
goog.array.binarySelect = function(arr, evaluator, opt_obj) {
|
|
4116
|
+
return module$contents$goog$array_binarySearch_(arr, evaluator, !0, void 0, opt_obj);
|
|
4487
4117
|
};
|
|
4488
|
-
module$
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
}
|
|
4511
|
-
module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX,
|
|
4512
|
-
module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);
|
|
4513
|
-
module$contents$safevalues$dom$elements$iframe_setSrcdoc(element, (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(srcdoc));
|
|
4514
|
-
break;
|
|
4515
|
-
default:
|
|
4516
|
-
module$contents$check_checkExhaustive(intent);
|
|
4118
|
+
function module$contents$goog$array_binarySearch_(arr, compareFn, isEvaluator, opt_target, opt_selfObj) {
|
|
4119
|
+
for (var left = 0, right = arr.length, found; left < right;) {
|
|
4120
|
+
var middle = left + (right - left >>> 1), compareResult = void 0;
|
|
4121
|
+
compareResult = isEvaluator ? compareFn.call(opt_selfObj, arr[middle], middle, arr) : compareFn(opt_target, arr[middle]);
|
|
4122
|
+
compareResult > 0 ? left = middle + 1 : (right = middle, found = !compareResult);
|
|
4123
|
+
}
|
|
4124
|
+
return found ? left : -left - 1;
|
|
4125
|
+
}
|
|
4126
|
+
function module$contents$goog$array_sort(arr, opt_compareFn) {
|
|
4127
|
+
arr.sort(opt_compareFn || module$contents$goog$array_defaultCompare);
|
|
4128
|
+
}
|
|
4129
|
+
goog.array.sort = module$contents$goog$array_sort;
|
|
4130
|
+
goog.array.stableSort = function(arr, opt_compareFn) {
|
|
4131
|
+
for (var compArr = Array(arr.length), i = 0; i < arr.length; i++) {
|
|
4132
|
+
compArr[i] = {index:i, value:arr[i]};
|
|
4133
|
+
}
|
|
4134
|
+
var valueCompareFn = opt_compareFn || module$contents$goog$array_defaultCompare;
|
|
4135
|
+
module$contents$goog$array_sort(compArr, function(obj1, obj2) {
|
|
4136
|
+
return valueCompareFn(obj1.value, obj2.value) || obj1.index - obj2.index;
|
|
4137
|
+
});
|
|
4138
|
+
for (var i$jscomp$0 = 0; i$jscomp$0 < arr.length; i$jscomp$0++) {
|
|
4139
|
+
arr[i$jscomp$0] = compArr[i$jscomp$0].value;
|
|
4517
4140
|
}
|
|
4518
4141
|
};
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4142
|
+
function module$contents$goog$array_sortByKey(arr, keyFn, opt_compareFn) {
|
|
4143
|
+
var keyCompareFn = opt_compareFn || module$contents$goog$array_defaultCompare;
|
|
4144
|
+
module$contents$goog$array_sort(arr, function(a, b) {
|
|
4145
|
+
return keyCompareFn(keyFn(a), keyFn(b));
|
|
4146
|
+
});
|
|
4147
|
+
}
|
|
4148
|
+
goog.array.sortByKey = module$contents$goog$array_sortByKey;
|
|
4149
|
+
goog.array.sortObjectsByKey = function(arr, key, opt_compareFn) {
|
|
4150
|
+
module$contents$goog$array_sortByKey(arr, function(obj) {
|
|
4151
|
+
return obj[key];
|
|
4152
|
+
}, opt_compareFn);
|
|
4523
4153
|
};
|
|
4524
|
-
|
|
4525
|
-
module$
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4154
|
+
function module$contents$goog$array_isSorted(arr, opt_compareFn, opt_strict) {
|
|
4155
|
+
for (var compare = opt_compareFn || module$contents$goog$array_defaultCompare, i = 1; i < arr.length; i++) {
|
|
4156
|
+
var compareResult = compare(arr[i - 1], arr[i]);
|
|
4157
|
+
if (compareResult > 0 || compareResult == 0 && opt_strict) {
|
|
4158
|
+
return !1;
|
|
4159
|
+
}
|
|
4160
|
+
}
|
|
4161
|
+
return !0;
|
|
4162
|
+
}
|
|
4163
|
+
goog.array.isSorted = module$contents$goog$array_isSorted;
|
|
4164
|
+
function module$contents$goog$array_equals(arr1, arr2, opt_equalsFn) {
|
|
4165
|
+
if (!goog.isArrayLike(arr1) || !goog.isArrayLike(arr2) || arr1.length != arr2.length) {
|
|
4166
|
+
return !1;
|
|
4167
|
+
}
|
|
4168
|
+
for (var l = arr1.length, equalsFn = opt_equalsFn || module$contents$goog$array_defaultCompareEquality, i = 0; i < l; i++) {
|
|
4169
|
+
if (!equalsFn(arr1[i], arr2[i])) {
|
|
4170
|
+
return !1;
|
|
4171
|
+
}
|
|
4172
|
+
}
|
|
4173
|
+
return !0;
|
|
4174
|
+
}
|
|
4175
|
+
goog.array.equals = module$contents$goog$array_equals;
|
|
4176
|
+
goog.array.compare3 = function(arr1, arr2, opt_compareFn) {
|
|
4177
|
+
for (var compare = opt_compareFn || module$contents$goog$array_defaultCompare, l = Math.min(arr1.length, arr2.length), i = 0; i < l; i++) {
|
|
4178
|
+
var result = compare(arr1[i], arr2[i]);
|
|
4179
|
+
if (result != 0) {
|
|
4180
|
+
return result;
|
|
4531
4181
|
}
|
|
4532
|
-
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
4533
|
-
sanitizedUrl !== void 0 && (link.href = sanitizedUrl, link.rel = rel);
|
|
4534
4182
|
}
|
|
4183
|
+
return module$contents$goog$array_defaultCompare(arr1.length, arr2.length);
|
|
4535
4184
|
};
|
|
4536
|
-
function module$contents$
|
|
4537
|
-
|
|
4538
|
-
link.rel = rel;
|
|
4185
|
+
function module$contents$goog$array_defaultCompare(a, b) {
|
|
4186
|
+
return a > b ? 1 : a < b ? -1 : 0;
|
|
4539
4187
|
}
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
module$
|
|
4543
|
-
obj.data = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v);
|
|
4188
|
+
goog.array.defaultCompare = module$contents$goog$array_defaultCompare;
|
|
4189
|
+
goog.array.inverseDefaultCompare = function(a, b) {
|
|
4190
|
+
return -module$contents$goog$array_defaultCompare(a, b);
|
|
4544
4191
|
};
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4192
|
+
function module$contents$goog$array_defaultCompareEquality(a, b) {
|
|
4193
|
+
return a === b;
|
|
4194
|
+
}
|
|
4195
|
+
goog.array.defaultCompareEquality = module$contents$goog$array_defaultCompareEquality;
|
|
4196
|
+
goog.array.binaryInsert = function(array, value, opt_compareFn) {
|
|
4197
|
+
var index = module$contents$goog$array_binarySearch(array, value, opt_compareFn);
|
|
4198
|
+
return index < 0 ? (module$contents$goog$array_insertAt(array, value, -(index + 1)), !0) : !1;
|
|
4549
4199
|
};
|
|
4550
|
-
|
|
4551
|
-
|
|
4200
|
+
goog.array.binaryRemove = function(array, value, opt_compareFn) {
|
|
4201
|
+
var index = module$contents$goog$array_binarySearch(array, value, opt_compareFn);
|
|
4202
|
+
return index >= 0 ? module$contents$goog$array_removeAt(array, index) : !1;
|
|
4552
4203
|
};
|
|
4553
|
-
|
|
4554
|
-
|
|
4204
|
+
goog.array.bucket = function(array, sorter, opt_obj) {
|
|
4205
|
+
for (var buckets = {}, i = 0; i < array.length; i++) {
|
|
4206
|
+
var value = array[i], key = sorter.call(opt_obj, value, i, array);
|
|
4207
|
+
key !== void 0 && (buckets[key] || (buckets[key] = [])).push(value);
|
|
4208
|
+
}
|
|
4209
|
+
return buckets;
|
|
4555
4210
|
};
|
|
4556
|
-
function
|
|
4557
|
-
var
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4211
|
+
goog.array.bucketToMap = function(array, sorter) {
|
|
4212
|
+
for (var buckets = new Map(), i = 0; i < array.length; i++) {
|
|
4213
|
+
var value = array[i], key = sorter(value, i, array);
|
|
4214
|
+
if (key !== void 0) {
|
|
4215
|
+
var bucket = buckets.get(key);
|
|
4216
|
+
bucket || (bucket = [], buckets.set(key, bucket));
|
|
4217
|
+
bucket.push(value);
|
|
4218
|
+
}
|
|
4219
|
+
}
|
|
4220
|
+
return buckets;
|
|
4564
4221
|
};
|
|
4565
|
-
|
|
4566
|
-
|
|
4222
|
+
goog.array.toObject = function(arr, keyFunc, opt_obj) {
|
|
4223
|
+
var ret = {};
|
|
4224
|
+
module$contents$goog$array_forEach(arr, function(element, index) {
|
|
4225
|
+
ret[keyFunc.call(opt_obj, element, index, arr)] = element;
|
|
4226
|
+
});
|
|
4227
|
+
return ret;
|
|
4567
4228
|
};
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4229
|
+
goog.array.toMap = function(arr, keyFunc) {
|
|
4230
|
+
for (var map = new Map(), i = 0; i < arr.length; i++) {
|
|
4231
|
+
var element = arr[i];
|
|
4232
|
+
map.set(keyFunc(element, i, arr), element);
|
|
4233
|
+
}
|
|
4234
|
+
return map;
|
|
4235
|
+
};
|
|
4236
|
+
function module$contents$goog$array_range(startOrEnd, opt_end, opt_step) {
|
|
4237
|
+
var array = [], start = 0, end = startOrEnd, step = opt_step || 1;
|
|
4238
|
+
opt_end !== void 0 && (start = startOrEnd, end = opt_end);
|
|
4239
|
+
if (step * (end - start) < 0) {
|
|
4240
|
+
return [];
|
|
4241
|
+
}
|
|
4242
|
+
if (step > 0) {
|
|
4243
|
+
for (var i = start; i < end; i += step) {
|
|
4244
|
+
array.push(i);
|
|
4245
|
+
}
|
|
4246
|
+
} else {
|
|
4247
|
+
for (var i$jscomp$0 = start; i$jscomp$0 > end; i$jscomp$0 += step) {
|
|
4248
|
+
array.push(i$jscomp$0);
|
|
4249
|
+
}
|
|
4250
|
+
}
|
|
4251
|
+
return array;
|
|
4582
4252
|
}
|
|
4583
|
-
|
|
4584
|
-
function module$contents$
|
|
4585
|
-
|
|
4586
|
-
|
|
4253
|
+
goog.array.range = module$contents$goog$array_range;
|
|
4254
|
+
function module$contents$goog$array_repeat(value, n) {
|
|
4255
|
+
for (var array = [], i = 0; i < n; i++) {
|
|
4256
|
+
array[i] = value;
|
|
4587
4257
|
}
|
|
4588
|
-
|
|
4589
|
-
goog.DEBUG && (message = "Unexpected type when unwrapping SafeScript");
|
|
4590
|
-
throw Error(message);
|
|
4258
|
+
return array;
|
|
4591
4259
|
}
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4260
|
+
goog.array.repeat = module$contents$goog$array_repeat;
|
|
4261
|
+
function module$contents$goog$array_flatten(var_args) {
|
|
4262
|
+
for (var result = [], i = 0; i < arguments.length; i++) {
|
|
4263
|
+
var element = arguments[i];
|
|
4264
|
+
if (Array.isArray(element)) {
|
|
4265
|
+
for (var c = 0; c < element.length; c += 8192) {
|
|
4266
|
+
for (var chunk = module$contents$goog$array_slice(element, c, c + 8192), recurseResult = module$contents$goog$array_flatten.apply(null, chunk), r = 0; r < recurseResult.length; r++) {
|
|
4267
|
+
result.push(recurseResult[r]);
|
|
4268
|
+
}
|
|
4269
|
+
}
|
|
4270
|
+
} else {
|
|
4271
|
+
result.push(element);
|
|
4272
|
+
}
|
|
4273
|
+
}
|
|
4274
|
+
return result;
|
|
4597
4275
|
}
|
|
4598
|
-
module$
|
|
4599
|
-
|
|
4600
|
-
(
|
|
4276
|
+
goog.array.flatten = module$contents$goog$array_flatten;
|
|
4277
|
+
goog.array.rotate = function(array, n) {
|
|
4278
|
+
goog.asserts.assert(array.length != null);
|
|
4279
|
+
array.length && (n %= array.length, n > 0 ? Array.prototype.unshift.apply(array, array.splice(-n, n)) : n < 0 && Array.prototype.push.apply(array, array.splice(0, -n)));
|
|
4280
|
+
return array;
|
|
4601
4281
|
};
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
(
|
|
4282
|
+
goog.array.moveItem = function(arr, fromIndex, toIndex) {
|
|
4283
|
+
goog.asserts.assert(fromIndex >= 0 && fromIndex < arr.length);
|
|
4284
|
+
goog.asserts.assert(toIndex >= 0 && toIndex < arr.length);
|
|
4285
|
+
var removedItems = Array.prototype.splice.call(arr, fromIndex, 1);
|
|
4286
|
+
Array.prototype.splice.call(arr, toIndex, 0, removedItems[0]);
|
|
4605
4287
|
};
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
}
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
}
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
return
|
|
4620
|
-
}
|
|
4621
|
-
module$exports$safevalues$internals$style_sheet_impl.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
|
|
4622
|
-
var module$exports$safevalues$dom$elements$style = {}, module$contents$safevalues$dom$elements$style_module = module$contents$safevalues$dom$elements$style_module || {id:"third_party/javascript/safevalues/dom/elements/style.closure.js"};
|
|
4623
|
-
module$exports$safevalues$dom$elements$style.setTextContent = function(elem, safeStyleSheet) {
|
|
4624
|
-
elem.textContent = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(safeStyleSheet);
|
|
4288
|
+
goog.array.zip = function(var_args) {
|
|
4289
|
+
if (!arguments.length) {
|
|
4290
|
+
return [];
|
|
4291
|
+
}
|
|
4292
|
+
for (var result = [], minLen = arguments[0].length, i = 1; i < arguments.length; i++) {
|
|
4293
|
+
arguments[i].length < minLen && (minLen = arguments[i].length);
|
|
4294
|
+
}
|
|
4295
|
+
for (var i$jscomp$0 = 0; i$jscomp$0 < minLen; i$jscomp$0++) {
|
|
4296
|
+
for (var value = [], j = 0; j < arguments.length; j++) {
|
|
4297
|
+
value.push(arguments[j][i$jscomp$0]);
|
|
4298
|
+
}
|
|
4299
|
+
result.push(value);
|
|
4300
|
+
}
|
|
4301
|
+
return result;
|
|
4625
4302
|
};
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
goog.DEBUG && (msg = "Setting the '" + attrLower + "' attribute on SVG can cause XSS.");
|
|
4632
|
-
throw Error(msg);
|
|
4303
|
+
goog.array.shuffle = function(arr, opt_randFn) {
|
|
4304
|
+
for (var randFn = opt_randFn || Math.random, i = arr.length - 1; i > 0; i--) {
|
|
4305
|
+
var j = Math.floor(randFn() * (i + 1)), tmp = arr[i];
|
|
4306
|
+
arr[i] = arr[j];
|
|
4307
|
+
arr[j] = tmp;
|
|
4633
4308
|
}
|
|
4634
|
-
|
|
4309
|
+
};
|
|
4310
|
+
goog.array.copyByIndex = function(arr, index_arr) {
|
|
4311
|
+
var result = [];
|
|
4312
|
+
module$contents$goog$array_forEach(index_arr, function(index) {
|
|
4313
|
+
result.push(arr[index]);
|
|
4314
|
+
});
|
|
4315
|
+
return result;
|
|
4316
|
+
};
|
|
4317
|
+
goog.array.concatMap = function(arr, f, opt_obj) {
|
|
4318
|
+
return module$contents$goog$array_concat.apply([], module$contents$goog$array_map(arr, f, opt_obj));
|
|
4635
4319
|
};
|
|
4636
4320
|
goog.debug.errorcontext = {};
|
|
4637
4321
|
goog.debug.errorcontext.addErrorContext = function(err, contextKey, contextValue) {
|
|
@@ -5221,9 +4905,9 @@ function module$contents$safevalues$dom$globals$dom_parser_parseFromString(parse
|
|
|
5221
4905
|
module$exports$safevalues$dom$globals$dom_parser.parseFromString = module$contents$safevalues$dom$globals$dom_parser_parseFromString;
|
|
5222
4906
|
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"};
|
|
5223
4907
|
module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError = function(url, typeName, contentType) {
|
|
5224
|
-
var $jscomp$tmp$error$
|
|
5225
|
-
this.message = $jscomp$tmp$error$
|
|
5226
|
-
"stack" in $jscomp$tmp$error$
|
|
4908
|
+
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.");
|
|
4909
|
+
this.message = $jscomp$tmp$error$1153895636$25.message;
|
|
4910
|
+
"stack" in $jscomp$tmp$error$1153895636$25 && (this.stack = $jscomp$tmp$error$1153895636$25.stack);
|
|
5227
4911
|
this.url = url;
|
|
5228
4912
|
this.typeName = typeName;
|
|
5229
4913
|
this.contentType = contentType;
|
|
@@ -5235,48 +4919,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
|
|
|
5235
4919
|
return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
|
|
5236
4920
|
}
|
|
5237
4921
|
function module$contents$safevalues$dom$globals$fetch_fetchResourceUrl(u, init) {
|
|
5238
|
-
var response, $jscomp$optchain$
|
|
5239
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
5240
|
-
if ($jscomp$generator$context$
|
|
5241
|
-
return $jscomp$generator$context$
|
|
5242
|
-
}
|
|
5243
|
-
response = $jscomp$generator$context$
|
|
5244
|
-
mimeType = ($jscomp$optchain$
|
|
5245
|
-
return $jscomp$generator$context$
|
|
4922
|
+
var response, $jscomp$optchain$tmp1153895636$0, $jscomp$optchain$tmp1153895636$1, $jscomp$optchain$tmp1153895636$2, mimeType;
|
|
4923
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$29) {
|
|
4924
|
+
if ($jscomp$generator$context$1153895636$29.nextAddress == 1) {
|
|
4925
|
+
return $jscomp$generator$context$1153895636$29.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
|
|
4926
|
+
}
|
|
4927
|
+
response = $jscomp$generator$context$1153895636$29.yieldResult;
|
|
4928
|
+
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();
|
|
4929
|
+
return $jscomp$generator$context$1153895636$29.return({html:function() {
|
|
5246
4930
|
var text;
|
|
5247
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
5248
|
-
if ($jscomp$generator$context$
|
|
4931
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$26) {
|
|
4932
|
+
if ($jscomp$generator$context$1153895636$26.nextAddress == 1) {
|
|
5249
4933
|
if (mimeType !== "text/html") {
|
|
5250
4934
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
|
|
5251
4935
|
}
|
|
5252
|
-
return $jscomp$generator$context$
|
|
4936
|
+
return $jscomp$generator$context$1153895636$26.yield(response.text(), 2);
|
|
5253
4937
|
}
|
|
5254
|
-
text = $jscomp$generator$context$
|
|
5255
|
-
return $jscomp$generator$context$
|
|
4938
|
+
text = $jscomp$generator$context$1153895636$26.yieldResult;
|
|
4939
|
+
return $jscomp$generator$context$1153895636$26.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
|
|
5256
4940
|
});
|
|
5257
4941
|
}, script:function() {
|
|
5258
4942
|
var text;
|
|
5259
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
5260
|
-
if ($jscomp$generator$context$
|
|
4943
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$27) {
|
|
4944
|
+
if ($jscomp$generator$context$1153895636$27.nextAddress == 1) {
|
|
5261
4945
|
if (mimeType !== "text/javascript" && mimeType !== "application/javascript") {
|
|
5262
4946
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
|
|
5263
4947
|
}
|
|
5264
|
-
return $jscomp$generator$context$
|
|
4948
|
+
return $jscomp$generator$context$1153895636$27.yield(response.text(), 2);
|
|
5265
4949
|
}
|
|
5266
|
-
text = $jscomp$generator$context$
|
|
5267
|
-
return $jscomp$generator$context$
|
|
4950
|
+
text = $jscomp$generator$context$1153895636$27.yieldResult;
|
|
4951
|
+
return $jscomp$generator$context$1153895636$27.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
|
|
5268
4952
|
});
|
|
5269
4953
|
}, styleSheet:function() {
|
|
5270
4954
|
var text;
|
|
5271
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
5272
|
-
if ($jscomp$generator$context$
|
|
4955
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$28) {
|
|
4956
|
+
if ($jscomp$generator$context$1153895636$28.nextAddress == 1) {
|
|
5273
4957
|
if (mimeType !== "text/css") {
|
|
5274
4958
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
|
|
5275
4959
|
}
|
|
5276
|
-
return $jscomp$generator$context$
|
|
4960
|
+
return $jscomp$generator$context$1153895636$28.yield(response.text(), 2);
|
|
5277
4961
|
}
|
|
5278
|
-
text = $jscomp$generator$context$
|
|
5279
|
-
return $jscomp$generator$context$
|
|
4962
|
+
text = $jscomp$generator$context$1153895636$28.yieldResult;
|
|
4963
|
+
return $jscomp$generator$context$1153895636$28.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
|
|
5280
4964
|
});
|
|
5281
4965
|
}});
|
|
5282
4966
|
});
|
|
@@ -6698,25 +6382,25 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
6698
6382
|
}
|
|
6699
6383
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
6700
6384
|
function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
|
|
6701
|
-
for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$
|
|
6702
|
-
var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6385
|
+
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()) {
|
|
6386
|
+
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;
|
|
6703
6387
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
6704
6388
|
}
|
|
6705
6389
|
return urlQueryParams;
|
|
6706
6390
|
}
|
|
6707
6391
|
module$exports$eeapiclient$request_params.buildQueryParams = module$contents$eeapiclient$request_params_buildQueryParams;
|
|
6708
|
-
var module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders = ["accept", "accept-language", "content-language"], module$contents$eeapiclient$request_params_simpleCorsAllowedMethods = ["GET", "HEAD", "POST"];
|
|
6392
|
+
var module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders = ["accept", "accept-language", "content-language"], module$contents$eeapiclient$request_params_simpleCorsAllowedMethods = ["GET", "HEAD", "POST"], module$contents$eeapiclient$request_params_simpleCorsAllowedContentTypes = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"];
|
|
6709
6393
|
module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params) {
|
|
6710
|
-
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1;
|
|
6394
|
+
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1, hasSafeContentType = !1;
|
|
6711
6395
|
if (params.headers) {
|
|
6712
6396
|
hasContentType = params.headers["Content-Type"] != null;
|
|
6713
|
-
for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$
|
|
6714
|
-
var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6715
|
-
module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes(key) ? safeHeaders[key] = value : (unsafeHeaders[key] = value, hasUnsafeHeaders = !0);
|
|
6397
|
+
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()) {
|
|
6398
|
+
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;
|
|
6399
|
+
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);
|
|
6716
6400
|
}
|
|
6717
6401
|
}
|
|
6718
6402
|
if (params.body != null || params.httpMethod === "PUT" || params.httpMethod === "POST") {
|
|
6719
|
-
hasContentType || (unsafeHeaders["Content-Type"] = "application/json", hasUnsafeHeaders = !0), safeHeaders["Content-Type"] = "text/plain";
|
|
6403
|
+
hasContentType || (unsafeHeaders["Content-Type"] = "application/json", hasUnsafeHeaders = !0), hasSafeContentType || (safeHeaders["Content-Type"] = "text/plain");
|
|
6720
6404
|
}
|
|
6721
6405
|
if (hasUnsafeHeaders) {
|
|
6722
6406
|
var finalParam = (0,module$exports$goog$net$rpc$HttpCors.generateEncodedHttpHeadersOverwriteParam)(unsafeHeaders);
|
|
@@ -6751,9 +6435,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
|
|
|
6751
6435
|
return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
|
|
6752
6436
|
};
|
|
6753
6437
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
|
|
6754
|
-
var $jscomp$this$
|
|
6438
|
+
var $jscomp$this$m296226325$4 = this, responseCtor = requestParams.responseCtor || void 0;
|
|
6755
6439
|
return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
|
|
6756
|
-
return $jscomp$this$
|
|
6440
|
+
return $jscomp$this$m296226325$4.requestService.send(params, responseCtor);
|
|
6757
6441
|
}));
|
|
6758
6442
|
};
|
|
6759
6443
|
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"};
|
|
@@ -6919,9 +6603,9 @@ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_
|
|
|
6919
6603
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_user_agent_client_hints__enable = !1;
|
|
6920
6604
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable = !1;
|
|
6921
6605
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__disable = !1;
|
|
6922
|
-
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_direct_reactions__disable = !1;
|
|
6923
6606
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_flush_queue_fix__disable = !1;
|
|
6924
6607
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_ordered_reaction_execution__disable = !1;
|
|
6608
|
+
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__enable = !1;
|
|
6925
6609
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_enable_low_index_extension_writes__disable = !1;
|
|
6926
6610
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__wiz_enable_native_promise__enable = !1;
|
|
6927
6611
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_readonly_repeated_fields__disable = !1;
|
|
@@ -6935,10 +6619,9 @@ var module$contents$goog$flags_STAGING = goog.readFlagInternalDoNotUseOrElse(1,
|
|
|
6935
6619
|
goog.flags.USE_USER_AGENT_CLIENT_HINTS = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_user_agent_client_hints__enable : goog.readFlagInternalDoNotUseOrElse(610401301, !1);
|
|
6936
6620
|
goog.flags.ASYNC_THROW_ON_UNICODE_TO_BYTE = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable : goog.readFlagInternalDoNotUseOrElse(899588437, !1);
|
|
6937
6621
|
goog.flags.JSPB_STOP_USING_REPEATED_FIELD_SETS_FROM_GENCODE = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__disable : goog.readFlagInternalDoNotUseOrElse(188588736, !0);
|
|
6938
|
-
goog.flags.
|
|
6939
|
-
goog.flags.
|
|
6940
|
-
goog.flags.
|
|
6941
|
-
module$contents$goog$flags_STAGING);
|
|
6622
|
+
goog.flags.CLIENT_ONLY_WIZ_FLUSH_QUEUE_FIX = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_flush_queue_fix__disable : goog.readFlagInternalDoNotUseOrElse(644029907, !0);
|
|
6623
|
+
goog.flags.CLIENT_ONLY_WIZ_ORDERED_REACTION_EXECUTION = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_ordered_reaction_execution__disable : goog.readFlagInternalDoNotUseOrElse(1822726157, !0);
|
|
6624
|
+
goog.flags.CLIENT_ONLY_WIZ_SYNC_REACTION_WITHIN_REACTION_THROWS_ERROR = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__enable : goog.readFlagInternalDoNotUseOrElse(661449076, !1);
|
|
6942
6625
|
goog.flags.JSPB_ENABLE_LOW_INDEX_EXTENSION_WRITES = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.FLAGS_STAGING_DEFAULT && (module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_enable_low_index_extension_writes__disable) : goog.readFlagInternalDoNotUseOrElse(645172343,
|
|
6943
6626
|
module$contents$goog$flags_STAGING);
|
|
6944
6627
|
goog.flags.WIZ_ENABLE_NATIVE_PROMISE = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__wiz_enable_native_promise__enable : goog.readFlagInternalDoNotUseOrElse(651175828, goog.DEBUG);
|
|
@@ -7668,7 +7351,6 @@ goog.userAgent.isVersionOrHigher = function(version) {
|
|
|
7668
7351
|
goog.userAgent.isDocumentModeOrHigher = function(documentMode) {
|
|
7669
7352
|
return Number(goog.userAgent.DOCUMENT_MODE) >= documentMode;
|
|
7670
7353
|
};
|
|
7671
|
-
goog.userAgent.isDocumentMode = goog.userAgent.isDocumentModeOrHigher;
|
|
7672
7354
|
goog.userAgent.DOCUMENT_MODE = function() {
|
|
7673
7355
|
if (goog.global.document && goog.userAgent.IE) {
|
|
7674
7356
|
var documentMode = goog.userAgent.getDocumentMode_();
|
|
@@ -12164,6 +11846,48 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
12164
11846
|
}, set:function(value) {
|
|
12165
11847
|
this.Serializable$set("uris", value);
|
|
12166
11848
|
}}});
|
|
11849
|
+
module$exports$eeapiclient$ee_api_client.ImportExternalImageRequestParameters = function() {
|
|
11850
|
+
};
|
|
11851
|
+
module$exports$eeapiclient$ee_api_client.ImportExternalImageRequest = function(parameters) {
|
|
11852
|
+
parameters = parameters === void 0 ? {} : parameters;
|
|
11853
|
+
module$exports$eeapiclient$domain_object.Serializable.call(this);
|
|
11854
|
+
this.Serializable$set("imageManifest", parameters.imageManifest == null ? null : parameters.imageManifest);
|
|
11855
|
+
this.Serializable$set("overwrite", parameters.overwrite == null ? null : parameters.overwrite);
|
|
11856
|
+
this.Serializable$set("useLatestObjectVersion", parameters.useLatestObjectVersion == null ? null : parameters.useLatestObjectVersion);
|
|
11857
|
+
};
|
|
11858
|
+
$jscomp.inherits(module$exports$eeapiclient$ee_api_client.ImportExternalImageRequest, module$exports$eeapiclient$domain_object.Serializable);
|
|
11859
|
+
module$exports$eeapiclient$ee_api_client.ImportExternalImageRequest.prototype.getConstructor = function() {
|
|
11860
|
+
return module$exports$eeapiclient$ee_api_client.ImportExternalImageRequest;
|
|
11861
|
+
};
|
|
11862
|
+
module$exports$eeapiclient$ee_api_client.ImportExternalImageRequest.prototype.getPartialClassMetadata = function() {
|
|
11863
|
+
return {keys:["imageManifest", "overwrite", "useLatestObjectVersion"], objects:{imageManifest:module$exports$eeapiclient$ee_api_client.ImageManifest}};
|
|
11864
|
+
};
|
|
11865
|
+
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.ImportExternalImageRequest.prototype, {imageManifest:{configurable:!0, enumerable:!0, get:function() {
|
|
11866
|
+
return this.Serializable$has("imageManifest") ? this.Serializable$get("imageManifest") : null;
|
|
11867
|
+
}, set:function(value) {
|
|
11868
|
+
this.Serializable$set("imageManifest", value);
|
|
11869
|
+
}}, overwrite:{configurable:!0, enumerable:!0, get:function() {
|
|
11870
|
+
return this.Serializable$has("overwrite") ? this.Serializable$get("overwrite") : null;
|
|
11871
|
+
}, set:function(value) {
|
|
11872
|
+
this.Serializable$set("overwrite", value);
|
|
11873
|
+
}}, useLatestObjectVersion:{configurable:!0, enumerable:!0, get:function() {
|
|
11874
|
+
return this.Serializable$has("useLatestObjectVersion") ? this.Serializable$get("useLatestObjectVersion") : null;
|
|
11875
|
+
}, set:function(value) {
|
|
11876
|
+
this.Serializable$set("useLatestObjectVersion", value);
|
|
11877
|
+
}}});
|
|
11878
|
+
module$exports$eeapiclient$ee_api_client.ImportExternalImageResponseParameters = function() {
|
|
11879
|
+
};
|
|
11880
|
+
module$exports$eeapiclient$ee_api_client.ImportExternalImageResponse = function(parameters) {
|
|
11881
|
+
parameters = parameters === void 0 ? {} : parameters;
|
|
11882
|
+
module$exports$eeapiclient$domain_object.Serializable.call(this);
|
|
11883
|
+
};
|
|
11884
|
+
$jscomp.inherits(module$exports$eeapiclient$ee_api_client.ImportExternalImageResponse, module$exports$eeapiclient$domain_object.Serializable);
|
|
11885
|
+
module$exports$eeapiclient$ee_api_client.ImportExternalImageResponse.prototype.getConstructor = function() {
|
|
11886
|
+
return module$exports$eeapiclient$ee_api_client.ImportExternalImageResponse;
|
|
11887
|
+
};
|
|
11888
|
+
module$exports$eeapiclient$ee_api_client.ImportExternalImageResponse.prototype.getPartialClassMetadata = function() {
|
|
11889
|
+
return {keys:[]};
|
|
11890
|
+
};
|
|
12167
11891
|
module$exports$eeapiclient$ee_api_client.ImportImageRequestParameters = function() {
|
|
12168
11892
|
};
|
|
12169
11893
|
module$exports$eeapiclient$ee_api_client.ImportImageRequest = function(parameters) {
|
|
@@ -14706,6 +14430,12 @@ module$exports$eeapiclient$ee_api_client.ProjectsImageApiClientImpl.prototype.im
|
|
|
14706
14430
|
this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$"));
|
|
14707
14431
|
return this.$apiClient.$request({body:$requestBody, httpMethod:"POST", methodId:"earthengine.projects.image.import", path:"/" + this.gapiVersion + "/" + project + "/image:import", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.Operation});
|
|
14708
14432
|
};
|
|
14433
|
+
module$exports$eeapiclient$ee_api_client.ProjectsImageApiClientImpl.prototype.importExternal = function(project, $requestBody, namedParameters, passthroughNamedParameters) {
|
|
14434
|
+
namedParameters = namedParameters === void 0 ? {} : namedParameters;
|
|
14435
|
+
passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
|
|
14436
|
+
this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$"));
|
|
14437
|
+
return this.$apiClient.$request({body:$requestBody, httpMethod:"POST", methodId:"earthengine.projects.image.importExternal", path:"/" + this.gapiVersion + "/" + project + "/image:importExternal", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.ImportExternalImageResponse});
|
|
14438
|
+
};
|
|
14709
14439
|
module$exports$eeapiclient$ee_api_client.ProjectsImageApiClient = function() {
|
|
14710
14440
|
};
|
|
14711
14441
|
module$exports$eeapiclient$ee_api_client.IProjectsImageCollectionApiClient$XgafvEnum = function() {
|
|
@@ -15215,6 +14945,145 @@ module$contents$goog$async$FreeList_FreeList.prototype.occupants = function() {
|
|
|
15215
14945
|
return this.occupants_;
|
|
15216
14946
|
};
|
|
15217
14947
|
goog.async.FreeList = module$contents$goog$async$FreeList_FreeList;
|
|
14948
|
+
goog.dom.HtmlElement = function() {
|
|
14949
|
+
};
|
|
14950
|
+
goog.dom.TagName = function() {
|
|
14951
|
+
};
|
|
14952
|
+
goog.dom.TagName.cast = function(name, type) {
|
|
14953
|
+
return name;
|
|
14954
|
+
};
|
|
14955
|
+
goog.dom.TagName.prototype.toString = function() {
|
|
14956
|
+
};
|
|
14957
|
+
goog.dom.TagName.A = "A";
|
|
14958
|
+
goog.dom.TagName.ABBR = "ABBR";
|
|
14959
|
+
goog.dom.TagName.ACRONYM = "ACRONYM";
|
|
14960
|
+
goog.dom.TagName.ADDRESS = "ADDRESS";
|
|
14961
|
+
goog.dom.TagName.APPLET = "APPLET";
|
|
14962
|
+
goog.dom.TagName.AREA = "AREA";
|
|
14963
|
+
goog.dom.TagName.ARTICLE = "ARTICLE";
|
|
14964
|
+
goog.dom.TagName.ASIDE = "ASIDE";
|
|
14965
|
+
goog.dom.TagName.AUDIO = "AUDIO";
|
|
14966
|
+
goog.dom.TagName.B = "B";
|
|
14967
|
+
goog.dom.TagName.BASE = "BASE";
|
|
14968
|
+
goog.dom.TagName.BASEFONT = "BASEFONT";
|
|
14969
|
+
goog.dom.TagName.BDI = "BDI";
|
|
14970
|
+
goog.dom.TagName.BDO = "BDO";
|
|
14971
|
+
goog.dom.TagName.BIG = "BIG";
|
|
14972
|
+
goog.dom.TagName.BLOCKQUOTE = "BLOCKQUOTE";
|
|
14973
|
+
goog.dom.TagName.BODY = "BODY";
|
|
14974
|
+
goog.dom.TagName.BR = "BR";
|
|
14975
|
+
goog.dom.TagName.BUTTON = "BUTTON";
|
|
14976
|
+
goog.dom.TagName.CANVAS = "CANVAS";
|
|
14977
|
+
goog.dom.TagName.CAPTION = "CAPTION";
|
|
14978
|
+
goog.dom.TagName.CENTER = "CENTER";
|
|
14979
|
+
goog.dom.TagName.CITE = "CITE";
|
|
14980
|
+
goog.dom.TagName.CODE = "CODE";
|
|
14981
|
+
goog.dom.TagName.COL = "COL";
|
|
14982
|
+
goog.dom.TagName.COLGROUP = "COLGROUP";
|
|
14983
|
+
goog.dom.TagName.COMMAND = "COMMAND";
|
|
14984
|
+
goog.dom.TagName.DATA = "DATA";
|
|
14985
|
+
goog.dom.TagName.DATALIST = "DATALIST";
|
|
14986
|
+
goog.dom.TagName.DD = "DD";
|
|
14987
|
+
goog.dom.TagName.DEL = "DEL";
|
|
14988
|
+
goog.dom.TagName.DETAILS = "DETAILS";
|
|
14989
|
+
goog.dom.TagName.DFN = "DFN";
|
|
14990
|
+
goog.dom.TagName.DIALOG = "DIALOG";
|
|
14991
|
+
goog.dom.TagName.DIR = "DIR";
|
|
14992
|
+
goog.dom.TagName.DIV = "DIV";
|
|
14993
|
+
goog.dom.TagName.DL = "DL";
|
|
14994
|
+
goog.dom.TagName.DT = "DT";
|
|
14995
|
+
goog.dom.TagName.EM = "EM";
|
|
14996
|
+
goog.dom.TagName.EMBED = "EMBED";
|
|
14997
|
+
goog.dom.TagName.FIELDSET = "FIELDSET";
|
|
14998
|
+
goog.dom.TagName.FIGCAPTION = "FIGCAPTION";
|
|
14999
|
+
goog.dom.TagName.FIGURE = "FIGURE";
|
|
15000
|
+
goog.dom.TagName.FONT = "FONT";
|
|
15001
|
+
goog.dom.TagName.FOOTER = "FOOTER";
|
|
15002
|
+
goog.dom.TagName.FORM = "FORM";
|
|
15003
|
+
goog.dom.TagName.FRAME = "FRAME";
|
|
15004
|
+
goog.dom.TagName.FRAMESET = "FRAMESET";
|
|
15005
|
+
goog.dom.TagName.H1 = "H1";
|
|
15006
|
+
goog.dom.TagName.H2 = "H2";
|
|
15007
|
+
goog.dom.TagName.H3 = "H3";
|
|
15008
|
+
goog.dom.TagName.H4 = "H4";
|
|
15009
|
+
goog.dom.TagName.H5 = "H5";
|
|
15010
|
+
goog.dom.TagName.H6 = "H6";
|
|
15011
|
+
goog.dom.TagName.HEAD = "HEAD";
|
|
15012
|
+
goog.dom.TagName.HEADER = "HEADER";
|
|
15013
|
+
goog.dom.TagName.HGROUP = "HGROUP";
|
|
15014
|
+
goog.dom.TagName.HR = "HR";
|
|
15015
|
+
goog.dom.TagName.HTML = "HTML";
|
|
15016
|
+
goog.dom.TagName.I = "I";
|
|
15017
|
+
goog.dom.TagName.IFRAME = "IFRAME";
|
|
15018
|
+
goog.dom.TagName.IMG = "IMG";
|
|
15019
|
+
goog.dom.TagName.INPUT = "INPUT";
|
|
15020
|
+
goog.dom.TagName.INS = "INS";
|
|
15021
|
+
goog.dom.TagName.ISINDEX = "ISINDEX";
|
|
15022
|
+
goog.dom.TagName.KBD = "KBD";
|
|
15023
|
+
goog.dom.TagName.KEYGEN = "KEYGEN";
|
|
15024
|
+
goog.dom.TagName.LABEL = "LABEL";
|
|
15025
|
+
goog.dom.TagName.LEGEND = "LEGEND";
|
|
15026
|
+
goog.dom.TagName.LI = "LI";
|
|
15027
|
+
goog.dom.TagName.LINK = "LINK";
|
|
15028
|
+
goog.dom.TagName.MAIN = "MAIN";
|
|
15029
|
+
goog.dom.TagName.MAP = "MAP";
|
|
15030
|
+
goog.dom.TagName.MARK = "MARK";
|
|
15031
|
+
goog.dom.TagName.MATH = "MATH";
|
|
15032
|
+
goog.dom.TagName.MENU = "MENU";
|
|
15033
|
+
goog.dom.TagName.MENUITEM = "MENUITEM";
|
|
15034
|
+
goog.dom.TagName.META = "META";
|
|
15035
|
+
goog.dom.TagName.METER = "METER";
|
|
15036
|
+
goog.dom.TagName.NAV = "NAV";
|
|
15037
|
+
goog.dom.TagName.NOFRAMES = "NOFRAMES";
|
|
15038
|
+
goog.dom.TagName.NOSCRIPT = "NOSCRIPT";
|
|
15039
|
+
goog.dom.TagName.OBJECT = "OBJECT";
|
|
15040
|
+
goog.dom.TagName.OL = "OL";
|
|
15041
|
+
goog.dom.TagName.OPTGROUP = "OPTGROUP";
|
|
15042
|
+
goog.dom.TagName.OPTION = "OPTION";
|
|
15043
|
+
goog.dom.TagName.OUTPUT = "OUTPUT";
|
|
15044
|
+
goog.dom.TagName.P = "P";
|
|
15045
|
+
goog.dom.TagName.PARAM = "PARAM";
|
|
15046
|
+
goog.dom.TagName.PICTURE = "PICTURE";
|
|
15047
|
+
goog.dom.TagName.PRE = "PRE";
|
|
15048
|
+
goog.dom.TagName.PROGRESS = "PROGRESS";
|
|
15049
|
+
goog.dom.TagName.Q = "Q";
|
|
15050
|
+
goog.dom.TagName.RP = "RP";
|
|
15051
|
+
goog.dom.TagName.RT = "RT";
|
|
15052
|
+
goog.dom.TagName.RTC = "RTC";
|
|
15053
|
+
goog.dom.TagName.RUBY = "RUBY";
|
|
15054
|
+
goog.dom.TagName.S = "S";
|
|
15055
|
+
goog.dom.TagName.SAMP = "SAMP";
|
|
15056
|
+
goog.dom.TagName.SCRIPT = "SCRIPT";
|
|
15057
|
+
goog.dom.TagName.SECTION = "SECTION";
|
|
15058
|
+
goog.dom.TagName.SELECT = "SELECT";
|
|
15059
|
+
goog.dom.TagName.SMALL = "SMALL";
|
|
15060
|
+
goog.dom.TagName.SOURCE = "SOURCE";
|
|
15061
|
+
goog.dom.TagName.SPAN = "SPAN";
|
|
15062
|
+
goog.dom.TagName.STRIKE = "STRIKE";
|
|
15063
|
+
goog.dom.TagName.STRONG = "STRONG";
|
|
15064
|
+
goog.dom.TagName.STYLE = "STYLE";
|
|
15065
|
+
goog.dom.TagName.SUB = "SUB";
|
|
15066
|
+
goog.dom.TagName.SUMMARY = "SUMMARY";
|
|
15067
|
+
goog.dom.TagName.SUP = "SUP";
|
|
15068
|
+
goog.dom.TagName.SVG = "SVG";
|
|
15069
|
+
goog.dom.TagName.TABLE = "TABLE";
|
|
15070
|
+
goog.dom.TagName.TBODY = "TBODY";
|
|
15071
|
+
goog.dom.TagName.TD = "TD";
|
|
15072
|
+
goog.dom.TagName.TEMPLATE = "TEMPLATE";
|
|
15073
|
+
goog.dom.TagName.TEXTAREA = "TEXTAREA";
|
|
15074
|
+
goog.dom.TagName.TFOOT = "TFOOT";
|
|
15075
|
+
goog.dom.TagName.TH = "TH";
|
|
15076
|
+
goog.dom.TagName.THEAD = "THEAD";
|
|
15077
|
+
goog.dom.TagName.TIME = "TIME";
|
|
15078
|
+
goog.dom.TagName.TITLE = "TITLE";
|
|
15079
|
+
goog.dom.TagName.TR = "TR";
|
|
15080
|
+
goog.dom.TagName.TRACK = "TRACK";
|
|
15081
|
+
goog.dom.TagName.TT = "TT";
|
|
15082
|
+
goog.dom.TagName.U = "U";
|
|
15083
|
+
goog.dom.TagName.UL = "UL";
|
|
15084
|
+
goog.dom.TagName.VAR = "VAR";
|
|
15085
|
+
goog.dom.TagName.VIDEO = "VIDEO";
|
|
15086
|
+
goog.dom.TagName.WBR = "WBR";
|
|
15218
15087
|
goog.dom.element = {};
|
|
15219
15088
|
var module$contents$goog$dom$element_isElement = function(value) {
|
|
15220
15089
|
return goog.isObject(value) && value.nodeType === goog.dom.NodeType.ELEMENT;
|
|
@@ -15328,48 +15197,240 @@ goog.asserts.dom.assertIsHtmlTextAreaElement = function(value) {
|
|
|
15328
15197
|
goog.asserts.dom.assertIsHtmlCanvasElement = function(value) {
|
|
15329
15198
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.CANVAS);
|
|
15330
15199
|
};
|
|
15331
|
-
goog.asserts.dom.assertIsHtmlEmbedElement = function(value) {
|
|
15332
|
-
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.EMBED);
|
|
15200
|
+
goog.asserts.dom.assertIsHtmlEmbedElement = function(value) {
|
|
15201
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.EMBED);
|
|
15202
|
+
};
|
|
15203
|
+
goog.asserts.dom.assertIsHtmlFormElement = module$contents$goog$asserts$dom_assertIsHtmlFormElement;
|
|
15204
|
+
goog.asserts.dom.assertIsHtmlFrameElement = function(value) {
|
|
15205
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.FRAME);
|
|
15206
|
+
};
|
|
15207
|
+
goog.asserts.dom.assertIsHtmlIFrameElement = module$contents$goog$asserts$dom_assertIsHtmlIFrameElement;
|
|
15208
|
+
goog.asserts.dom.assertIsHtmlObjectElement = function(value) {
|
|
15209
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.OBJECT);
|
|
15210
|
+
};
|
|
15211
|
+
goog.asserts.dom.assertIsHtmlScriptElement = module$contents$goog$asserts$dom_assertIsHtmlScriptElement;
|
|
15212
|
+
goog.dom.asserts = {};
|
|
15213
|
+
goog.dom.asserts.assertIsLocation = function(o) {
|
|
15214
|
+
if (module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS) {
|
|
15215
|
+
var win = goog.dom.asserts.getWindow_(o);
|
|
15216
|
+
win && (!o || !(o instanceof win.Location) && o instanceof win.Element) && goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s", goog.dom.asserts.debugStringForType_(o));
|
|
15217
|
+
}
|
|
15218
|
+
return o;
|
|
15219
|
+
};
|
|
15220
|
+
goog.dom.asserts.debugStringForType_ = function(value) {
|
|
15221
|
+
if (goog.isObject(value)) {
|
|
15222
|
+
try {
|
|
15223
|
+
return value.constructor.displayName || value.constructor.name || Object.prototype.toString.call(value);
|
|
15224
|
+
} catch (e) {
|
|
15225
|
+
return "<object could not be stringified>";
|
|
15226
|
+
}
|
|
15227
|
+
} else {
|
|
15228
|
+
return value === void 0 ? "undefined" : value === null ? "null" : typeof value;
|
|
15229
|
+
}
|
|
15230
|
+
};
|
|
15231
|
+
goog.dom.asserts.getWindow_ = function(o) {
|
|
15232
|
+
try {
|
|
15233
|
+
var doc = o && o.ownerDocument, win = doc && (doc.defaultView || doc.parentWindow);
|
|
15234
|
+
win = win || goog.global;
|
|
15235
|
+
if (win.Element && win.Location) {
|
|
15236
|
+
return win;
|
|
15237
|
+
}
|
|
15238
|
+
} catch (ex) {
|
|
15239
|
+
}
|
|
15240
|
+
return null;
|
|
15241
|
+
};
|
|
15242
|
+
goog.dom.tags = {};
|
|
15243
|
+
goog.dom.tags.VOID_TAGS_ = {area:!0, base:!0, br:!0, col:!0, command:!0, embed:!0, hr:!0, img:!0, input:!0, keygen:!0, link:!0, meta:!0, param:!0, source:!0, track:!0, wbr:!0};
|
|
15244
|
+
goog.dom.tags.isVoidTag = function(tagName) {
|
|
15245
|
+
return goog.dom.tags.VOID_TAGS_[tagName] === !0;
|
|
15246
|
+
};
|
|
15247
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.unwrap = function(safeHtml) {
|
|
15248
|
+
return (0,module$exports$safevalues$for_closure$index.unwrapHtml)(safeHtml).toString();
|
|
15249
|
+
};
|
|
15250
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML = function(safeHtml) {
|
|
15251
|
+
return (0,module$exports$safevalues$for_closure$index.unwrapHtml)(safeHtml);
|
|
15252
|
+
};
|
|
15253
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape = function(textOrHtml) {
|
|
15254
|
+
return textOrHtml instanceof module$exports$safevalues$internals$html_impl.SafeHtml ? textOrHtml : (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(goog.string.internal.htmlEscape(String(textOrHtml)));
|
|
15255
|
+
};
|
|
15256
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscapePreservingNewlines = function(textOrHtml) {
|
|
15257
|
+
if (textOrHtml instanceof module$exports$safevalues$internals$html_impl.SafeHtml) {
|
|
15258
|
+
return textOrHtml;
|
|
15259
|
+
}
|
|
15260
|
+
var html = module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape(textOrHtml);
|
|
15261
|
+
return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(goog.string.internal.newLineToBr(module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(html)));
|
|
15262
|
+
};
|
|
15263
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscapePreservingNewlinesAndSpaces = function(textOrHtml) {
|
|
15264
|
+
if (textOrHtml instanceof module$exports$safevalues$internals$html_impl.SafeHtml) {
|
|
15265
|
+
return textOrHtml;
|
|
15266
|
+
}
|
|
15267
|
+
var html = module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape(textOrHtml);
|
|
15268
|
+
return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(goog.string.internal.whitespaceEscape(module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(html)));
|
|
15269
|
+
};
|
|
15270
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.create = function(tagName, attributes, content) {
|
|
15271
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.verifyTagName(String(tagName));
|
|
15272
|
+
return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(tagName), attributes, content);
|
|
15273
|
+
};
|
|
15274
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.verifyTagName = function(tagName) {
|
|
15275
|
+
if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(tagName)) {
|
|
15276
|
+
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? "Invalid tag name <" + tagName + ">." : "");
|
|
15277
|
+
}
|
|
15278
|
+
if (tagName.toUpperCase() in module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES) {
|
|
15279
|
+
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? "Tag name <" + tagName + "> is not allowed for SafeHtml." : "");
|
|
15280
|
+
}
|
|
15281
|
+
};
|
|
15282
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.createIframe = function(src, srcdoc, attributes, content) {
|
|
15283
|
+
src && module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(src);
|
|
15284
|
+
var fixedAttributes = {};
|
|
15285
|
+
fixedAttributes.src = src || null;
|
|
15286
|
+
fixedAttributes.srcdoc = srcdoc && module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(srcdoc);
|
|
15287
|
+
var combinedAttrs = module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes(fixedAttributes, {sandbox:""}, attributes);
|
|
15288
|
+
return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
|
|
15289
|
+
};
|
|
15290
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.createSandboxIframe = function(src, srcdoc, attributes, content) {
|
|
15291
|
+
if (!module$exports$safevalues$internals$html_impl.SafeHtml.canUseSandboxIframe()) {
|
|
15292
|
+
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? "The browser does not support sandboxed iframes." : "");
|
|
15293
|
+
}
|
|
15294
|
+
var fixedAttributes = {};
|
|
15295
|
+
fixedAttributes.src = src ? module$contents$safevalues$internals$url_impl_unwrapUrl(module$contents$safevalues$builders$url_builders_sanitizeUrl(src)) : null;
|
|
15296
|
+
fixedAttributes.srcdoc = srcdoc || null;
|
|
15297
|
+
fixedAttributes.sandbox = "";
|
|
15298
|
+
var combinedAttrs = module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes(fixedAttributes, {}, attributes);
|
|
15299
|
+
return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
|
|
15300
|
+
};
|
|
15301
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.canUseSandboxIframe = function() {
|
|
15302
|
+
return goog.global.HTMLIFrameElement && "sandbox" in goog.global.HTMLIFrameElement.prototype;
|
|
15303
|
+
};
|
|
15304
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.createScriptSrc = function(src, attributes) {
|
|
15305
|
+
module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(src);
|
|
15306
|
+
var combinedAttrs = module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes({src:src}, {}, attributes);
|
|
15307
|
+
return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script", combinedAttrs);
|
|
15308
|
+
};
|
|
15309
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.createStyle = function(styleSheet, attributes) {
|
|
15310
|
+
var combinedAttrs = module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes({type:"text/css"}, {}, attributes), content = "";
|
|
15311
|
+
styleSheet = module$contents$goog$array_concat(styleSheet);
|
|
15312
|
+
for (var i = 0; i < styleSheet.length; i++) {
|
|
15313
|
+
content += module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(styleSheet[i]);
|
|
15314
|
+
}
|
|
15315
|
+
var htmlContent = (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(content);
|
|
15316
|
+
return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style", combinedAttrs, htmlContent);
|
|
15317
|
+
};
|
|
15318
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.createMetaRefresh = function(url, secs) {
|
|
15319
|
+
var unwrappedUrl = module$contents$safevalues$internals$url_impl_unwrapUrl(module$contents$safevalues$builders$url_builders_sanitizeUrl(url));
|
|
15320
|
+
return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta", {"http-equiv":"refresh", content:(secs || 0) + "; url=" + unwrappedUrl});
|
|
15333
15321
|
};
|
|
15334
|
-
|
|
15335
|
-
|
|
15336
|
-
|
|
15322
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.join = function(separator, parts) {
|
|
15323
|
+
var separatorHtml = module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape(separator), content = [], addArgument = function(argument) {
|
|
15324
|
+
if (Array.isArray(argument)) {
|
|
15325
|
+
argument.forEach(addArgument);
|
|
15326
|
+
} else {
|
|
15327
|
+
var html = module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape(argument);
|
|
15328
|
+
content.push(module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(html));
|
|
15329
|
+
}
|
|
15330
|
+
};
|
|
15331
|
+
parts.forEach(addArgument);
|
|
15332
|
+
return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(content.join(module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(separatorHtml)));
|
|
15337
15333
|
};
|
|
15338
|
-
|
|
15339
|
-
|
|
15340
|
-
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.OBJECT);
|
|
15334
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.concat = function(var_args) {
|
|
15335
|
+
return module$exports$safevalues$internals$html_impl.SafeHtml.join(module$exports$safevalues$internals$html_impl.SafeHtml.EMPTY, Array.prototype.slice.call(arguments));
|
|
15341
15336
|
};
|
|
15342
|
-
|
|
15343
|
-
|
|
15344
|
-
|
|
15345
|
-
if (
|
|
15346
|
-
|
|
15347
|
-
|
|
15337
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse = function(tagName, attributes, content) {
|
|
15338
|
+
var result = "<" + tagName + module$exports$safevalues$internals$html_impl.SafeHtml.stringifyAttributes(tagName, attributes);
|
|
15339
|
+
content == null ? content = [] : Array.isArray(content) || (content = [content]);
|
|
15340
|
+
if (goog.dom.tags.isVoidTag(tagName.toLowerCase())) {
|
|
15341
|
+
goog.asserts.assert(!content.length, "Void tag <" + tagName + "> does not allow content."), result += ">";
|
|
15342
|
+
} else {
|
|
15343
|
+
var html = module$exports$safevalues$internals$html_impl.SafeHtml.concat(content);
|
|
15344
|
+
result += ">" + module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(html) + "</" + tagName + ">";
|
|
15348
15345
|
}
|
|
15349
|
-
return
|
|
15346
|
+
return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(result);
|
|
15350
15347
|
};
|
|
15351
|
-
|
|
15352
|
-
|
|
15353
|
-
|
|
15354
|
-
|
|
15355
|
-
|
|
15356
|
-
|
|
15348
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.stringifyAttributes = function(tagName, attributes) {
|
|
15349
|
+
var result = "";
|
|
15350
|
+
if (attributes) {
|
|
15351
|
+
for (var name in attributes) {
|
|
15352
|
+
if (Object.prototype.hasOwnProperty.call(attributes, name)) {
|
|
15353
|
+
if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(name)) {
|
|
15354
|
+
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Invalid attribute name "' + name + '".' : "");
|
|
15355
|
+
}
|
|
15356
|
+
var value = attributes[name];
|
|
15357
|
+
value != null && (result += " " + module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value));
|
|
15358
|
+
}
|
|
15357
15359
|
}
|
|
15358
|
-
} else {
|
|
15359
|
-
return value === void 0 ? "undefined" : value === null ? "null" : typeof value;
|
|
15360
15360
|
}
|
|
15361
|
+
return result;
|
|
15361
15362
|
};
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
15365
|
-
|
|
15366
|
-
|
|
15367
|
-
|
|
15363
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes = function(fixedAttributes, defaultAttributes, attributes) {
|
|
15364
|
+
var combinedAttributes = {}, name;
|
|
15365
|
+
for (name in fixedAttributes) {
|
|
15366
|
+
Object.prototype.hasOwnProperty.call(fixedAttributes, name) && (goog.asserts.assert(name.toLowerCase() == name, "Must be lower case"), combinedAttributes[name] = fixedAttributes[name]);
|
|
15367
|
+
}
|
|
15368
|
+
for (var name$jscomp$0 in defaultAttributes) {
|
|
15369
|
+
Object.prototype.hasOwnProperty.call(defaultAttributes, name$jscomp$0) && (goog.asserts.assert(name$jscomp$0.toLowerCase() == name$jscomp$0, "Must be lower case"), combinedAttributes[name$jscomp$0] = defaultAttributes[name$jscomp$0]);
|
|
15370
|
+
}
|
|
15371
|
+
if (attributes) {
|
|
15372
|
+
for (var name$jscomp$1 in attributes) {
|
|
15373
|
+
if (Object.prototype.hasOwnProperty.call(attributes, name$jscomp$1)) {
|
|
15374
|
+
var nameLower = name$jscomp$1.toLowerCase();
|
|
15375
|
+
if (nameLower in fixedAttributes) {
|
|
15376
|
+
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Cannot override "' + nameLower + '" attribute, got "' + name$jscomp$1 + '" with value "' + attributes[name$jscomp$1] + '"' : "");
|
|
15377
|
+
}
|
|
15378
|
+
nameLower in defaultAttributes && delete combinedAttributes[nameLower];
|
|
15379
|
+
combinedAttributes[name$jscomp$1] = attributes[name$jscomp$1];
|
|
15380
|
+
}
|
|
15368
15381
|
}
|
|
15369
|
-
} catch (ex) {
|
|
15370
15382
|
}
|
|
15371
|
-
return
|
|
15383
|
+
return combinedAttributes;
|
|
15372
15384
|
};
|
|
15385
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES = goog.DEBUG;
|
|
15386
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.SUPPORT_STYLE_ATTRIBUTE = !0;
|
|
15387
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.from = module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape;
|
|
15388
|
+
var module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG = /^[a-zA-Z0-9-]+$/, module$contents$goog$html$SafeHtml_URL_ATTRIBUTES = {action:!0, cite:!0, data:!0, formaction:!0, href:!0, manifest:!0, poster:!0, src:!0}, module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES = module$contents$goog$object_createSet(goog.dom.TagName.APPLET, goog.dom.TagName.BASE, goog.dom.TagName.EMBED, goog.dom.TagName.IFRAME, goog.dom.TagName.LINK, goog.dom.TagName.MATH, goog.dom.TagName.META, goog.dom.TagName.OBJECT,
|
|
15389
|
+
goog.dom.TagName.SCRIPT, goog.dom.TagName.STYLE, goog.dom.TagName.SVG, goog.dom.TagName.TEMPLATE);
|
|
15390
|
+
function module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value) {
|
|
15391
|
+
if (value instanceof goog.string.Const) {
|
|
15392
|
+
value = goog.string.Const.unwrap(value);
|
|
15393
|
+
} else if (name.toLowerCase() == "style") {
|
|
15394
|
+
if (module$exports$safevalues$internals$html_impl.SafeHtml.SUPPORT_STYLE_ATTRIBUTE) {
|
|
15395
|
+
value = module$contents$goog$html$SafeHtml_getStyleValue(value);
|
|
15396
|
+
} else {
|
|
15397
|
+
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "style" not supported.' : "");
|
|
15398
|
+
}
|
|
15399
|
+
} else {
|
|
15400
|
+
if (/^on/i.test(name)) {
|
|
15401
|
+
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" requires goog.string.Const value, "' + value + '" given.' : "");
|
|
15402
|
+
}
|
|
15403
|
+
if (name.toLowerCase() in module$contents$goog$html$SafeHtml_URL_ATTRIBUTES) {
|
|
15404
|
+
if (value instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl) {
|
|
15405
|
+
value = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(value);
|
|
15406
|
+
} else if (value instanceof module$exports$safevalues$internals$url_impl.SafeUrl) {
|
|
15407
|
+
value = module$contents$safevalues$internals$url_impl_unwrapUrl(value);
|
|
15408
|
+
} else if (typeof value === "string") {
|
|
15409
|
+
value = module$contents$safevalues$builders$url_builders_sanitizeUrl(value).toString();
|
|
15410
|
+
} else {
|
|
15411
|
+
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" on tag "' + tagName + '" requires safevalues.SafeUrl, goog.string.Const, or string, value "' + value + '" given.' : "");
|
|
15412
|
+
}
|
|
15413
|
+
}
|
|
15414
|
+
}
|
|
15415
|
+
goog.asserts.assert(value instanceof module$exports$safevalues$internals$url_impl.SafeUrl || value instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl || value instanceof module$exports$safevalues$internals$style_impl.SafeStyle || value instanceof module$exports$safevalues$internals$html_impl.SafeHtml || typeof value === "string" || typeof value === "number", "String or number value expected, got " +
|
|
15416
|
+
typeof value + " with value: " + value);
|
|
15417
|
+
return name + '="' + goog.string.internal.htmlEscape(String(value)) + '"';
|
|
15418
|
+
}
|
|
15419
|
+
function module$contents$goog$html$SafeHtml_getStyleValue(value) {
|
|
15420
|
+
if (!goog.isObject(value)) {
|
|
15421
|
+
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'The "style" attribute requires goog.html.SafeStyle or map of style properties, ' + typeof value + " given: " + value : "");
|
|
15422
|
+
}
|
|
15423
|
+
value instanceof module$exports$safevalues$internals$style_impl.SafeStyle || (value = module$exports$safevalues$internals$style_impl.SafeStyle.create(value));
|
|
15424
|
+
return module$exports$safevalues$internals$style_impl.SafeStyle.unwrap(value);
|
|
15425
|
+
}
|
|
15426
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.DOCTYPE_HTML = function() {
|
|
15427
|
+
return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)("<!DOCTYPE html>");
|
|
15428
|
+
}();
|
|
15429
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.EMPTY = module$exports$safevalues$for_closure$index.EMPTY_HTML;
|
|
15430
|
+
module$exports$safevalues$internals$html_impl.SafeHtml.BR = function() {
|
|
15431
|
+
return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)("<br>");
|
|
15432
|
+
}();
|
|
15433
|
+
goog.html.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
|
|
15373
15434
|
var module$exports$safevalues$for_friends$index = {}, module$contents$safevalues$for_friends$index_module = module$contents$safevalues$for_friends$index_module || {id:"third_party/javascript/safevalues/for_friends/index.closure.js"};
|
|
15374
15435
|
module$exports$safevalues$for_friends$index.IS_NOT_JAVASCRIPT_URL_PATTERN = module$exports$safevalues$builders$url_builders.IS_NOT_JAVASCRIPT_URL_PATTERN;
|
|
15375
15436
|
module$exports$safevalues$for_friends$index.unwrapUrlOrSanitize = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize;
|
|
@@ -15596,8 +15657,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
|
15596
15657
|
this.replacements = new Map();
|
|
15597
15658
|
};
|
|
15598
15659
|
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
15599
|
-
var $jscomp$this$
|
|
15600
|
-
return $jscomp$this$
|
|
15660
|
+
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) {
|
|
15661
|
+
return $jscomp$this$1018007701$5.replaceFormattingString(openedTags, match);
|
|
15601
15662
|
});
|
|
15602
15663
|
if (openedTags.length !== 0) {
|
|
15603
15664
|
if (goog.DEBUG) {
|
|
@@ -15815,8 +15876,8 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
15815
15876
|
if (Array.isArray(token)) {
|
|
15816
15877
|
tokens.push.apply(tokens, (0,$jscomp.arrayFromIterable)(token));
|
|
15817
15878
|
} else {
|
|
15818
|
-
var $jscomp$optchain$
|
|
15819
|
-
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$
|
|
15879
|
+
var $jscomp$optchain$tmpm282935782$0 = void 0;
|
|
15880
|
+
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) {
|
|
15820
15881
|
tokens.push(token);
|
|
15821
15882
|
if (token.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF) {
|
|
15822
15883
|
return tokens;
|
|
@@ -16062,9 +16123,9 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16062
16123
|
repr:repr}) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER, repr:repr};
|
|
16063
16124
|
};
|
|
16064
16125
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputsPointsAreWhitespace = function() {
|
|
16065
|
-
var $jscomp$this$
|
|
16126
|
+
var $jscomp$this$m282935782$26 = this;
|
|
16066
16127
|
return this.nextTwoInputCodePoints().every(function(c) {
|
|
16067
|
-
return $jscomp$this$
|
|
16128
|
+
return $jscomp$this$m282935782$26.isWhitespace(c);
|
|
16068
16129
|
});
|
|
16069
16130
|
};
|
|
16070
16131
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.twoCodePointsAreValidEscape = function(codePoint1, codePoint2) {
|
|
@@ -16171,8 +16232,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16171
16232
|
return null;
|
|
16172
16233
|
}
|
|
16173
16234
|
if (token.lowercaseName === "url") {
|
|
16174
|
-
var nextToken = tokens[i + 1], $jscomp$optchain$
|
|
16175
|
-
if ((($jscomp$optchain$
|
|
16235
|
+
var nextToken = tokens[i + 1], $jscomp$optchain$tmpm1577590584$0 = void 0;
|
|
16236
|
+
if ((($jscomp$optchain$tmpm1577590584$0 = nextToken) == null ? void 0 : $jscomp$optchain$tmpm1577590584$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING) {
|
|
16176
16237
|
return null;
|
|
16177
16238
|
}
|
|
16178
16239
|
var parsedUrl = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(nextToken.value);
|
|
@@ -16195,8 +16256,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16195
16256
|
if (!this.allowKeyframes) {
|
|
16196
16257
|
return null;
|
|
16197
16258
|
}
|
|
16198
|
-
for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$
|
|
16199
|
-
var rule = $jscomp$key$
|
|
16259
|
+
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()) {
|
|
16260
|
+
var rule = $jscomp$key$m1577590584$1$rule.value;
|
|
16200
16261
|
if (rule instanceof CSSKeyframeRule) {
|
|
16201
16262
|
var sanitizedRule = this.sanitizeKeyframeRule(rule);
|
|
16202
16263
|
sanitizedRule && keyframeRules.push(sanitizedRule);
|
|
@@ -16208,8 +16269,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16208
16269
|
if (!this.propertyAllowlist.has(name)) {
|
|
16209
16270
|
return !1;
|
|
16210
16271
|
}
|
|
16211
|
-
for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$
|
|
16212
|
-
var discarder = $jscomp$key$
|
|
16272
|
+
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()) {
|
|
16273
|
+
var discarder = $jscomp$key$m1577590584$2$discarder.value;
|
|
16213
16274
|
if (discarder(name)) {
|
|
16214
16275
|
return !1;
|
|
16215
16276
|
}
|
|
@@ -16224,8 +16285,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16224
16285
|
return sanitizedValue ? module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(name) + ": " + sanitizedValue + (isImportant ? " !important" : "") : null;
|
|
16225
16286
|
};
|
|
16226
16287
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleDeclaration = function(style, calledFromStyleElement) {
|
|
16227
|
-
for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$33 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$
|
|
16228
|
-
var name = $jscomp$key$
|
|
16288
|
+
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()) {
|
|
16289
|
+
var name = $jscomp$key$m1577590584$3$name.value, value = style.getPropertyValue(name), isImportant = style.getPropertyPriority(name) === "important", sanitizedProperty = this.sanitizeProperty(name, value, isImportant, calledFromStyleElement);
|
|
16229
16290
|
sanitizedProperty && (sanitizedProperties += sanitizedProperty + ";");
|
|
16230
16291
|
}
|
|
16231
16292
|
return sanitizedProperties;
|
|
@@ -16239,8 +16300,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16239
16300
|
return selector + " { " + sanitizedProperties + " }";
|
|
16240
16301
|
};
|
|
16241
16302
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleElement = function(cssText) {
|
|
16242
|
-
for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(rules), $jscomp$key$
|
|
16243
|
-
var rule = $jscomp$key$
|
|
16303
|
+
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()) {
|
|
16304
|
+
var rule = $jscomp$key$m1577590584$4$rule.value;
|
|
16244
16305
|
if (rule instanceof CSSStyleRule) {
|
|
16245
16306
|
var sanitizedRule = this.sanitizeStyleRule(rule);
|
|
16246
16307
|
sanitizedRule && output.push(sanitizedRule);
|
|
@@ -16263,6 +16324,9 @@ function module$contents$safevalues$builders$html_sanitizer$css$sanitizer_saniti
|
|
|
16263
16324
|
return (new module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer(propertyAllowlist, functionAllowlist, resourceUrlPolicy, !1, propertyDiscarders)).sanitizeStyleAttribute(cssText);
|
|
16264
16325
|
}
|
|
16265
16326
|
module$exports$safevalues$builders$html_sanitizer$css$sanitizer.sanitizeStyleAttribute = module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute;
|
|
16327
|
+
var module$exports$safevalues$builders$html_sanitizer$css$css_isolation = {}, module$contents$safevalues$builders$html_sanitizer$css$css_isolation_module = module$contents$safevalues$builders$html_sanitizer$css$css_isolation_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/css/css_isolation.closure.js"};
|
|
16328
|
+
module$exports$safevalues$builders$html_sanitizer$css$css_isolation.CSS_ISOLATION_PROPERTIES = "display:inline-block;clip-path:inset(0);overflow:hidden;vertical-align:top;text-decoration:inherit";
|
|
16329
|
+
module$exports$safevalues$builders$html_sanitizer$css$css_isolation.CSS_ISOLATION_STYLESHEET = ":host{" + module$exports$safevalues$builders$html_sanitizer$css$css_isolation.CSS_ISOLATION_PROPERTIES + "}";
|
|
16266
16330
|
var module$contents$safevalues$builders$html_sanitizer$inert_fragment_module = module$contents$safevalues$builders$html_sanitizer$inert_fragment_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/inert_fragment.closure.js"};
|
|
16267
16331
|
function module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(dirtyHtml, inertDocument) {
|
|
16268
16332
|
if (goog.DEBUG && inertDocument.defaultView) {
|
|
@@ -16368,7 +16432,6 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16368
16432
|
this.styleElementSanitizer = styleElementSanitizer;
|
|
16369
16433
|
this.styleAttributeSanitizer = styleAttributeSanitizer;
|
|
16370
16434
|
this.resourceUrlPolicy = resourceUrlPolicy;
|
|
16371
|
-
this.SHADOW_DOM_INTERNAL_CSS = ":host{display:block;clip-path:inset(0);overflow:hidden}";
|
|
16372
16435
|
this.changes = [];
|
|
16373
16436
|
module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
16374
16437
|
};
|
|
@@ -16390,7 +16453,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16390
16453
|
};
|
|
16391
16454
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeWithCssToFragment = function(htmlWithCss, inertDocument) {
|
|
16392
16455
|
var elem = document.createElement("safevalues-with-css"), shadow = elem.attachShadow({mode:"closed"}), sanitized = this.sanitizeToFragmentInternal(htmlWithCss, inertDocument), internalStyle = document.createElement("style");
|
|
16393
|
-
internalStyle.textContent =
|
|
16456
|
+
internalStyle.textContent = module$exports$safevalues$builders$html_sanitizer$css$css_isolation.CSS_ISOLATION_STYLESHEET;
|
|
16394
16457
|
internalStyle.id = "safevalues-internal-style";
|
|
16395
16458
|
shadow.appendChild(internalStyle);
|
|
16396
16459
|
shadow.appendChild(sanitized);
|
|
@@ -16399,8 +16462,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16399
16462
|
return fragment;
|
|
16400
16463
|
};
|
|
16401
16464
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
16402
|
-
for (var $jscomp$this$
|
|
16403
|
-
return $jscomp$this$
|
|
16465
|
+
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) {
|
|
16466
|
+
return $jscomp$this$m1085474118$13.nodeFilter(n);
|
|
16404
16467
|
}), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; currentNode !== null;) {
|
|
16405
16468
|
var sanitizedNode = void 0;
|
|
16406
16469
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
@@ -16435,8 +16498,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16435
16498
|
return this.createTextNode(textNode.data);
|
|
16436
16499
|
};
|
|
16437
16500
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
16438
|
-
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$
|
|
16439
|
-
var $jscomp$destructuring$var31 = $jscomp$key$
|
|
16501
|
+
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()) {
|
|
16502
|
+
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);
|
|
16440
16503
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
16441
16504
|
switch(policy.policyAction) {
|
|
16442
16505
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -16468,9 +16531,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16468
16531
|
break;
|
|
16469
16532
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:
|
|
16470
16533
|
if (this.resourceUrlPolicy) {
|
|
16471
|
-
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$
|
|
16534
|
+
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 =
|
|
16472
16535
|
$jscomp$iter$35.next()) {
|
|
16473
|
-
var part = $jscomp$key$
|
|
16536
|
+
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);
|
|
16474
16537
|
sanitizedUrl$jscomp$0 && sanitizedSrcset.parts.push({url:sanitizedUrl$jscomp$0.toString(), descriptor:part.descriptor});
|
|
16475
16538
|
}
|
|
16476
16539
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(sanitizedSrcset));
|
|
@@ -16514,8 +16577,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16514
16577
|
if (!conditions) {
|
|
16515
16578
|
return !0;
|
|
16516
16579
|
}
|
|
16517
|
-
for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$
|
|
16518
|
-
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
16580
|
+
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()) {
|
|
16581
|
+
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;
|
|
16519
16582
|
if (value && !expectedValues.has(value)) {
|
|
16520
16583
|
return !1;
|
|
16521
16584
|
}
|
|
@@ -16530,8 +16593,8 @@ function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_Srcse
|
|
|
16530
16593
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.Srcset = function() {
|
|
16531
16594
|
};
|
|
16532
16595
|
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(srcset) {
|
|
16533
|
-
for (var parts = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$
|
|
16534
|
-
var $jscomp$destructuring$var34 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
16596
|
+
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()) {
|
|
16597
|
+
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;
|
|
16535
16598
|
parts.push({url:url__tsickle_destructured_3, descriptor:descriptor__tsickle_destructured_4});
|
|
16536
16599
|
}
|
|
16537
16600
|
return {parts:parts};
|
|
@@ -16588,8 +16651,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16588
16651
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE;
|
|
16589
16652
|
};
|
|
16590
16653
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
|
|
16591
|
-
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$
|
|
16592
|
-
var element = $jscomp$key$
|
|
16654
|
+
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()) {
|
|
16655
|
+
var element = $jscomp$key$435282654$21$element.value;
|
|
16593
16656
|
element = element.toUpperCase();
|
|
16594
16657
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
16595
16658
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -16607,8 +16670,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16607
16670
|
throw Error("Element: " + element + " is not a custom element");
|
|
16608
16671
|
}
|
|
16609
16672
|
if (allowedAttributes) {
|
|
16610
|
-
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$
|
|
16611
|
-
elementPolicy.set($jscomp$key$
|
|
16673
|
+
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()) {
|
|
16674
|
+
elementPolicy.set($jscomp$key$435282654$22$attribute.value.toLowerCase(), {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
16612
16675
|
}
|
|
16613
16676
|
allowedElementPolicies.set(element, elementPolicy);
|
|
16614
16677
|
} else {
|
|
@@ -16618,15 +16681,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16618
16681
|
return this;
|
|
16619
16682
|
};
|
|
16620
16683
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
|
|
16621
|
-
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$
|
|
16622
|
-
var attribute = $jscomp$key$
|
|
16684
|
+
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()) {
|
|
16685
|
+
var attribute = $jscomp$key$435282654$23$attribute.value;
|
|
16623
16686
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
16624
16687
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
16625
16688
|
}
|
|
16626
|
-
for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$
|
|
16627
|
-
for (var $jscomp$destructuring$var37 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
16689
|
+
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()) {
|
|
16690
|
+
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$ =
|
|
16628
16691
|
$jscomp$iter$42.next()) {
|
|
16629
|
-
var $jscomp$destructuring$var39 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
16692
|
+
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;
|
|
16630
16693
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
16631
16694
|
}
|
|
16632
16695
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -16635,8 +16698,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16635
16698
|
return this;
|
|
16636
16699
|
};
|
|
16637
16700
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
|
|
16638
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$
|
|
16639
|
-
var attribute = $jscomp$key$
|
|
16701
|
+
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()) {
|
|
16702
|
+
var attribute = $jscomp$key$435282654$26$attribute.value;
|
|
16640
16703
|
if (attribute.indexOf("data-") !== 0) {
|
|
16641
16704
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
16642
16705
|
}
|
|
@@ -16698,7 +16761,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
16698
16761
|
return this;
|
|
16699
16762
|
};
|
|
16700
16763
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.build = function() {
|
|
16701
|
-
var $jscomp$this$
|
|
16764
|
+
var $jscomp$this$435282654$17 = this;
|
|
16702
16765
|
this.extendSanitizerTableForCss();
|
|
16703
16766
|
var propertyDiscarders = [];
|
|
16704
16767
|
this.animationsAllowed || propertyDiscarders.push(function(property) {
|
|
@@ -16708,9 +16771,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
16708
16771
|
return /^transition(-|$)/.test(property);
|
|
16709
16772
|
});
|
|
16710
16773
|
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(this.sanitizerTable, module$exports$safevalues$internals$secrets.secretToken, function(cssText) {
|
|
16711
|
-
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$
|
|
16774
|
+
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);
|
|
16712
16775
|
}, function(cssText) {
|
|
16713
|
-
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$
|
|
16776
|
+
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);
|
|
16714
16777
|
}, this.resourceUrlPolicy);
|
|
16715
16778
|
};
|
|
16716
16779
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.extendSanitizerTableForCss = function() {
|
|
@@ -16770,9 +16833,11 @@ function module$contents$safevalues$builders$resource_url_builders_isValidPathSt
|
|
|
16770
16833
|
function module$contents$safevalues$builders$resource_url_builders_isValidRelativePathStart(base) {
|
|
16771
16834
|
return RegExp("^[^:\\s\\\\/]+/").test(base);
|
|
16772
16835
|
}
|
|
16836
|
+
function module$contents$safevalues$builders$resource_url_builders_UrlSegments() {
|
|
16837
|
+
}
|
|
16773
16838
|
function module$contents$safevalues$builders$resource_url_builders_getUrlSegments(url) {
|
|
16774
|
-
var
|
|
16775
|
-
return {
|
|
16839
|
+
var parts = url.split(/\?|#/), params = /\?/.test(url) ? "?" + parts[1] : "";
|
|
16840
|
+
return {urlPath:parts[0], params:params, fragment:/#/.test(url) ? "#" + (params ? parts[2] : parts[1]) : ""};
|
|
16776
16841
|
}
|
|
16777
16842
|
function module$contents$safevalues$builders$resource_url_builders_trustedResourceUrl(templateObj) {
|
|
16778
16843
|
var rest = $jscomp.getRestArguments.apply(1, arguments);
|
|
@@ -16795,26 +16860,36 @@ function module$contents$safevalues$builders$resource_url_builders_trustedResour
|
|
|
16795
16860
|
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(url);
|
|
16796
16861
|
}
|
|
16797
16862
|
module$exports$safevalues$builders$resource_url_builders.trustedResourceUrl = module$contents$safevalues$builders$resource_url_builders_trustedResourceUrl;
|
|
16863
|
+
var module$contents$safevalues$builders$resource_url_builders_IterableEntries, module$contents$safevalues$builders$resource_url_builders_SearchParams;
|
|
16798
16864
|
function module$contents$safevalues$builders$resource_url_builders_appendParams(trustedUrl, params) {
|
|
16865
|
+
function addParam(value, key) {
|
|
16866
|
+
value != null && (module$contents$safevalues$builders$resource_url_builders_isArray(value) ? value.forEach(function(v) {
|
|
16867
|
+
return addParam(v, key);
|
|
16868
|
+
}) : (urlParams += separator + encodeURIComponent(key) + "=" + encodeURIComponent(value), separator = "&"));
|
|
16869
|
+
}
|
|
16799
16870
|
var urlSegments = module$contents$safevalues$builders$resource_url_builders_getUrlSegments(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(trustedUrl).toString()), urlParams = urlSegments.params, separator = urlParams.length ? "&" : "?";
|
|
16800
|
-
params.
|
|
16801
|
-
|
|
16802
|
-
|
|
16803
|
-
|
|
16804
|
-
|
|
16805
|
-
});
|
|
16806
|
-
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(urlSegments.path + urlParams + urlSegments.hash);
|
|
16871
|
+
module$contents$safevalues$builders$resource_url_builders_isPlainObject(params) && (params = Object.entries(params));
|
|
16872
|
+
module$contents$safevalues$builders$resource_url_builders_isArray(params) ? params.forEach(function(pair) {
|
|
16873
|
+
return addParam(pair[1], pair[0]);
|
|
16874
|
+
}) : params.forEach(addParam);
|
|
16875
|
+
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(urlSegments.urlPath + urlParams + urlSegments.fragment);
|
|
16807
16876
|
}
|
|
16808
16877
|
module$exports$safevalues$builders$resource_url_builders.appendParams = module$contents$safevalues$builders$resource_url_builders_appendParams;
|
|
16878
|
+
function module$contents$safevalues$builders$resource_url_builders_isArray(x) {
|
|
16879
|
+
return Array.isArray(x);
|
|
16880
|
+
}
|
|
16881
|
+
function module$contents$safevalues$builders$resource_url_builders_isPlainObject(x) {
|
|
16882
|
+
return x.constructor === Object;
|
|
16883
|
+
}
|
|
16809
16884
|
var module$contents$safevalues$builders$resource_url_builders_BEFORE_FRAGMENT_REGEXP = /[^#]*/;
|
|
16810
16885
|
function module$contents$safevalues$builders$resource_url_builders_replaceFragment(trustedUrl, fragment) {
|
|
16811
16886
|
var urlString = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(trustedUrl).toString();
|
|
16812
|
-
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(module$contents$safevalues$builders$resource_url_builders_BEFORE_FRAGMENT_REGEXP.exec(urlString)[0] + "#" + fragment);
|
|
16887
|
+
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(module$contents$safevalues$builders$resource_url_builders_BEFORE_FRAGMENT_REGEXP.exec(urlString)[0] + (fragment.trim() ? "#" + fragment : ""));
|
|
16813
16888
|
}
|
|
16814
16889
|
module$exports$safevalues$builders$resource_url_builders.replaceFragment = module$contents$safevalues$builders$resource_url_builders_replaceFragment;
|
|
16815
16890
|
function module$contents$safevalues$builders$resource_url_builders_appendPathSegment(trustedUrl, pathSegment) {
|
|
16816
|
-
var urlSegments = module$contents$safevalues$builders$resource_url_builders_getUrlSegments(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(trustedUrl).toString()), separator = urlSegments.
|
|
16817
|
-
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(newPath + urlSegments.params + urlSegments.
|
|
16891
|
+
var urlSegments = module$contents$safevalues$builders$resource_url_builders_getUrlSegments(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(trustedUrl).toString()), separator = urlSegments.urlPath.slice(-1) === "/" ? "" : "/", newPath = urlSegments.urlPath + separator + encodeURIComponent(pathSegment);
|
|
16892
|
+
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(newPath + urlSegments.params + urlSegments.fragment);
|
|
16818
16893
|
}
|
|
16819
16894
|
module$exports$safevalues$builders$resource_url_builders.appendPathSegment = module$contents$safevalues$builders$resource_url_builders_appendPathSegment;
|
|
16820
16895
|
function module$contents$safevalues$builders$resource_url_builders_objectUrlFromScript(safeScript) {
|
|
@@ -16939,12 +17014,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
16939
17014
|
}
|
|
16940
17015
|
try {
|
|
16941
17016
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
16942
|
-
} catch ($jscomp$unused$catch$
|
|
17017
|
+
} catch ($jscomp$unused$catch$696273141$0) {
|
|
16943
17018
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
16944
17019
|
}
|
|
16945
17020
|
try {
|
|
16946
17021
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
16947
|
-
} catch ($jscomp$unused$catch$
|
|
17022
|
+
} catch ($jscomp$unused$catch$696273141$1) {
|
|
16948
17023
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
16949
17024
|
}
|
|
16950
17025
|
return !1;
|
|
@@ -17019,7 +17094,7 @@ module$exports$safevalues$index.EMPTY_HTML = module$exports$safevalues$internals
|
|
|
17019
17094
|
module$exports$safevalues$index.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
|
|
17020
17095
|
module$exports$safevalues$index.isHtml = module$exports$safevalues$internals$html_impl.isHtml;
|
|
17021
17096
|
module$exports$safevalues$index.unwrapHtml = module$exports$safevalues$internals$html_impl.unwrapHtml;
|
|
17022
|
-
module$exports$safevalues$index.TrustedResourceUrl = goog
|
|
17097
|
+
module$exports$safevalues$index.TrustedResourceUrl = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl;
|
|
17023
17098
|
module$exports$safevalues$index.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
|
|
17024
17099
|
module$exports$safevalues$index.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
17025
17100
|
module$exports$safevalues$index.EMPTY_SCRIPT = module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT;
|
|
@@ -17041,7 +17116,7 @@ module$exports$safevalues$index.reportOnlyHtmlPassthrough = module$contents$safe
|
|
|
17041
17116
|
goog.dom.safe = {};
|
|
17042
17117
|
goog.dom.safe.InsertAdjacentHtmlPosition = {AFTERBEGIN:"afterbegin", AFTEREND:"afterend", BEFOREBEGIN:"beforebegin", BEFOREEND:"beforeend"};
|
|
17043
17118
|
goog.dom.safe.insertAdjacentHtml = function(node, position, html) {
|
|
17044
|
-
node.insertAdjacentHTML(position, module$
|
|
17119
|
+
node.insertAdjacentHTML(position, module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(html));
|
|
17045
17120
|
};
|
|
17046
17121
|
goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_ = {MATH:!0, SCRIPT:!0, STYLE:!0, SVG:!0, TEMPLATE:!0};
|
|
17047
17122
|
goog.dom.safe.isInnerHtmlCleanupRecursive_ = goog.functions.cacheReturnValue(function() {
|
|
@@ -17055,7 +17130,7 @@ goog.dom.safe.isInnerHtmlCleanupRecursive_ = goog.functions.cacheReturnValue(fun
|
|
|
17055
17130
|
return !1;
|
|
17056
17131
|
}
|
|
17057
17132
|
var innerChild = div.firstChild.firstChild;
|
|
17058
|
-
div.innerHTML = module$
|
|
17133
|
+
div.innerHTML = module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(module$exports$safevalues$internals$html_impl.SafeHtml.EMPTY);
|
|
17059
17134
|
return !innerChild.parentElement;
|
|
17060
17135
|
});
|
|
17061
17136
|
goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse = function(elem, html) {
|
|
@@ -17064,7 +17139,7 @@ goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse = function(elem, html) {
|
|
|
17064
17139
|
elem.removeChild(elem.lastChild);
|
|
17065
17140
|
}
|
|
17066
17141
|
}
|
|
17067
|
-
elem.innerHTML = module$
|
|
17142
|
+
elem.innerHTML = module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(html);
|
|
17068
17143
|
};
|
|
17069
17144
|
goog.dom.safe.setInnerHtml = function(elem, html) {
|
|
17070
17145
|
if (module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && elem.tagName && goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[elem.tagName.toUpperCase()]) {
|
|
@@ -17076,13 +17151,13 @@ goog.dom.safe.setInnerHtmlFromConstant = function(element, constHtml) {
|
|
|
17076
17151
|
goog.dom.safe.setInnerHtml(element, module$contents$safevalues$restricted$reviewed_htmlSafeByReview(goog.string.Const.unwrap(constHtml), {justification:"Constant HTML to be immediatelly used."}));
|
|
17077
17152
|
};
|
|
17078
17153
|
goog.dom.safe.setOuterHtml = function(elem, html) {
|
|
17079
|
-
elem.outerHTML = module$
|
|
17154
|
+
elem.outerHTML = module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(html);
|
|
17080
17155
|
};
|
|
17081
17156
|
goog.dom.safe.setFormElementAction = function(form, url) {
|
|
17082
17157
|
module$contents$goog$asserts$dom_assertIsHtmlFormElement(form).action = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
|
|
17083
17158
|
};
|
|
17084
17159
|
goog.dom.safe.documentWrite = function(doc, html) {
|
|
17085
|
-
doc.write(module$
|
|
17160
|
+
doc.write(module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(html));
|
|
17086
17161
|
};
|
|
17087
17162
|
goog.dom.safe.setAnchorHref = function(anchor, url) {
|
|
17088
17163
|
module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(anchor);
|
|
@@ -17090,24 +17165,24 @@ goog.dom.safe.setAnchorHref = function(anchor, url) {
|
|
|
17090
17165
|
};
|
|
17091
17166
|
goog.dom.safe.setIframeSrc = function(iframe, url) {
|
|
17092
17167
|
module$contents$goog$asserts$dom_assertIsHtmlIFrameElement(iframe);
|
|
17093
|
-
iframe.src = goog
|
|
17168
|
+
iframe.src = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(url);
|
|
17094
17169
|
};
|
|
17095
17170
|
goog.dom.safe.setLinkHrefAndRel = function(link, url, rel) {
|
|
17096
17171
|
module$contents$goog$asserts$dom_assertIsHtmlLinkElement(link);
|
|
17097
17172
|
link.rel = rel;
|
|
17098
17173
|
if (goog.string.internal.caseInsensitiveContains(rel, "stylesheet")) {
|
|
17099
|
-
goog.asserts.assert(url instanceof goog
|
|
17100
|
-
link.href = goog
|
|
17174
|
+
goog.asserts.assert(url instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl, 'URL must be TrustedResourceUrl because "rel" contains "stylesheet"');
|
|
17175
|
+
link.href = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(url);
|
|
17101
17176
|
var nonce = goog.dom.safe.getStyleNonce(link.ownerDocument && link.ownerDocument.defaultView);
|
|
17102
17177
|
nonce && link.setAttribute("nonce", nonce);
|
|
17103
17178
|
} else {
|
|
17104
|
-
link.href = url instanceof goog
|
|
17179
|
+
link.href = url instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl ? module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(url) : goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
|
|
17105
17180
|
}
|
|
17106
17181
|
};
|
|
17107
17182
|
goog.dom.safe.setScriptSrc = function(script, url) {
|
|
17108
17183
|
module$contents$goog$asserts$dom_assertIsHtmlScriptElement(script);
|
|
17109
17184
|
goog.dom.safe.setNonceForScriptElement_(script);
|
|
17110
|
-
script.src = goog
|
|
17185
|
+
script.src = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrapTrustedScriptURL(url);
|
|
17111
17186
|
};
|
|
17112
17187
|
goog.dom.safe.setNonceForScriptElement_ = function(script) {
|
|
17113
17188
|
var nonce = goog.dom.safe.getScriptNonce(script.ownerDocument && script.ownerDocument.defaultView);
|
|
@@ -17132,7 +17207,7 @@ goog.dom.safe.parseFromStringHtml = function(parser, html) {
|
|
|
17132
17207
|
return goog.dom.safe.parseFromString(parser, html, "text/html");
|
|
17133
17208
|
};
|
|
17134
17209
|
goog.dom.safe.parseFromString = function(parser, content, type) {
|
|
17135
|
-
return parser.parseFromString(module$
|
|
17210
|
+
return parser.parseFromString(module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(content), type);
|
|
17136
17211
|
};
|
|
17137
17212
|
goog.dom.safe.createImageFromBlob = function(blob) {
|
|
17138
17213
|
if (!/^image\/.*/g.test(blob.type)) {
|
|
@@ -17458,7 +17533,7 @@ goog.dom.getWindow = function(opt_doc) {
|
|
|
17458
17533
|
return opt_doc ? goog.dom.getWindow_(opt_doc) : window;
|
|
17459
17534
|
};
|
|
17460
17535
|
goog.dom.getWindow_ = function(doc) {
|
|
17461
|
-
return doc.
|
|
17536
|
+
return doc.defaultView;
|
|
17462
17537
|
};
|
|
17463
17538
|
goog.dom.createDom = function(tagName, opt_attributes, var_args) {
|
|
17464
17539
|
return goog.dom.createDom_(document, arguments);
|
|
@@ -19027,6 +19102,82 @@ goog.async.Deferred.assertNoErrors = function() {
|
|
|
19027
19102
|
error.throwError();
|
|
19028
19103
|
}
|
|
19029
19104
|
};
|
|
19105
|
+
safevalues.safeAttrPrefix = module$contents$safevalues$builders$attribute_builders_safeAttrPrefix;
|
|
19106
|
+
safevalues.htmlFragment = module$contents$safevalues$builders$document_fragment_builders_htmlFragment;
|
|
19107
|
+
safevalues.htmlToNode = module$contents$safevalues$builders$document_fragment_builders_htmlToNode;
|
|
19108
|
+
safevalues.svgFragment = module$contents$safevalues$builders$document_fragment_builders_svgFragment;
|
|
19109
|
+
safevalues.concatHtmls = module$exports$safevalues$index.concatHtmls;
|
|
19110
|
+
safevalues.createHtml = module$exports$safevalues$index.createHtml;
|
|
19111
|
+
safevalues.doctypeHtml = module$exports$safevalues$index.doctypeHtml;
|
|
19112
|
+
safevalues.htmlEscape = module$exports$safevalues$index.htmlEscape;
|
|
19113
|
+
safevalues.joinHtmls = module$exports$safevalues$index.joinHtmls;
|
|
19114
|
+
safevalues.nodeToHtml = module$exports$safevalues$index.nodeToHtml;
|
|
19115
|
+
safevalues.scriptToHtml = module$exports$safevalues$index.scriptToHtml;
|
|
19116
|
+
safevalues.scriptUrlToHtml = module$exports$safevalues$index.scriptUrlToHtml;
|
|
19117
|
+
safevalues.styleSheetToHtml = module$exports$safevalues$index.styleSheetToHtml;
|
|
19118
|
+
safevalues.HtmlFormatter = module$exports$safevalues$builders$html_formatter.HtmlFormatter;
|
|
19119
|
+
safevalues.sanitizeHtmlWithCss = module$contents$safevalues$builders$html_sanitizer$default_css_sanitizer_sanitizeHtmlWithCss;
|
|
19120
|
+
safevalues.sanitizeHtml = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtml;
|
|
19121
|
+
safevalues.sanitizeHtmlAssertUnchanged = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged;
|
|
19122
|
+
safevalues.sanitizeHtmlToFragment = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlToFragment;
|
|
19123
|
+
safevalues.CssSanitizer = module$exports$safevalues$index.CssSanitizer;
|
|
19124
|
+
safevalues.HtmlSanitizer = module$exports$safevalues$index.HtmlSanitizer;
|
|
19125
|
+
safevalues.CssSanitizerBuilder = module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder;
|
|
19126
|
+
safevalues.HtmlSanitizerBuilder = module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder;
|
|
19127
|
+
safevalues.ResourceUrlPolicyHintsType = module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType;
|
|
19128
|
+
safevalues.ResourceUrlPolicy = module$exports$safevalues$index.ResourceUrlPolicy;
|
|
19129
|
+
safevalues.ResourceUrlPolicyHints = module$exports$safevalues$index.ResourceUrlPolicyHints;
|
|
19130
|
+
safevalues.appendParams = module$contents$safevalues$builders$resource_url_builders_appendParams;
|
|
19131
|
+
safevalues.appendPathSegment = module$contents$safevalues$builders$resource_url_builders_appendPathSegment;
|
|
19132
|
+
safevalues.objectUrlFromScript = module$contents$safevalues$builders$resource_url_builders_objectUrlFromScript;
|
|
19133
|
+
safevalues.replaceFragment = module$contents$safevalues$builders$resource_url_builders_replaceFragment;
|
|
19134
|
+
safevalues.toAbsoluteResourceUrl = module$contents$safevalues$builders$resource_url_builders_toAbsoluteResourceUrl;
|
|
19135
|
+
safevalues.trustedResourceUrl = module$contents$safevalues$builders$resource_url_builders_trustedResourceUrl;
|
|
19136
|
+
safevalues.concatScripts = module$contents$safevalues$builders$script_builders_concatScripts;
|
|
19137
|
+
safevalues.safeScript = module$contents$safevalues$builders$script_builders_safeScript;
|
|
19138
|
+
safevalues.safeScriptWithArgs = module$contents$safevalues$builders$script_builders_safeScriptWithArgs;
|
|
19139
|
+
safevalues.valueAsScript = module$contents$safevalues$builders$script_builders_valueAsScript;
|
|
19140
|
+
safevalues.concatStyles = module$contents$safevalues$builders$style_builders_concatStyles;
|
|
19141
|
+
safevalues.safeStyle = module$contents$safevalues$builders$style_builders_safeStyle;
|
|
19142
|
+
safevalues.styleForMigration = module$contents$safevalues$builders$style_builders_styleForMigration;
|
|
19143
|
+
safevalues.concatStyleSheets = module$contents$safevalues$builders$style_sheet_builders_concatStyleSheets;
|
|
19144
|
+
safevalues.safeStyleRule = module$contents$safevalues$builders$style_sheet_builders_safeStyleRule;
|
|
19145
|
+
safevalues.safeStyleSheet = module$contents$safevalues$builders$style_sheet_builders_safeStyleSheet;
|
|
19146
|
+
safevalues.SanitizableUrlScheme = module$exports$safevalues$builders$url_builders.SanitizableUrlScheme;
|
|
19147
|
+
safevalues.addJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback;
|
|
19148
|
+
safevalues.fromMediaSource = module$contents$safevalues$builders$url_builders_fromMediaSource;
|
|
19149
|
+
safevalues.fromTrustedResourceUrl = module$contents$safevalues$builders$url_builders_fromTrustedResourceUrl;
|
|
19150
|
+
safevalues.objectUrlFromSafeSource = module$contents$safevalues$builders$url_builders_objectUrlFromSafeSource;
|
|
19151
|
+
safevalues.removeJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback;
|
|
19152
|
+
safevalues.safeUrl = module$contents$safevalues$builders$url_builders_safeUrl;
|
|
19153
|
+
safevalues.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
|
|
19154
|
+
safevalues.trySanitizeUrl = module$contents$safevalues$builders$url_builders_trySanitizeUrl;
|
|
19155
|
+
safevalues.Scheme = module$exports$safevalues$index.Scheme;
|
|
19156
|
+
safevalues.SafeAttributePrefix = module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix;
|
|
19157
|
+
safevalues.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
19158
|
+
safevalues.EMPTY_HTML = module$exports$safevalues$index.EMPTY_HTML;
|
|
19159
|
+
safevalues.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
|
|
19160
|
+
safevalues.isHtml = module$exports$safevalues$index.isHtml;
|
|
19161
|
+
safevalues.unwrapHtml = module$exports$safevalues$index.unwrapHtml;
|
|
19162
|
+
safevalues.TrustedResourceUrl = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl;
|
|
19163
|
+
safevalues.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
|
|
19164
|
+
safevalues.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
19165
|
+
safevalues.EMPTY_SCRIPT = module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT;
|
|
19166
|
+
safevalues.SafeScript = module$exports$safevalues$internals$script_impl.SafeScript;
|
|
19167
|
+
safevalues.isScript = module$contents$safevalues$internals$script_impl_isScript;
|
|
19168
|
+
safevalues.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
|
|
19169
|
+
safevalues.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
19170
|
+
safevalues.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
19171
|
+
safevalues.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
19172
|
+
safevalues.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
19173
|
+
safevalues.isStyleSheet = module$contents$safevalues$internals$style_sheet_impl_isStyleSheet;
|
|
19174
|
+
safevalues.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
|
|
19175
|
+
safevalues.ABOUT_BLANK = module$exports$safevalues$internals$url_impl.ABOUT_BLANK;
|
|
19176
|
+
safevalues.INNOCUOUS_URL = module$exports$safevalues$internals$url_impl.INNOCUOUS_URL;
|
|
19177
|
+
safevalues.SafeUrl = module$exports$safevalues$internals$url_impl.SafeUrl;
|
|
19178
|
+
safevalues.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
|
|
19179
|
+
safevalues.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
19180
|
+
safevalues.reportOnlyHtmlPassthrough = module$contents$safevalues$reporting$reporting_reportOnlyHtmlPassthrough;
|
|
19030
19181
|
goog.net = {};
|
|
19031
19182
|
goog.net.jsloader = {};
|
|
19032
19183
|
goog.net.jsloader.Options = {};
|
|
@@ -19052,7 +19203,7 @@ goog.net.jsloader.safeLoadMany = function(trustedUris, opt_options) {
|
|
|
19052
19203
|
return goog.net.jsloader.scriptLoadingDeferred_;
|
|
19053
19204
|
};
|
|
19054
19205
|
goog.net.jsloader.safeLoad = function(trustedUri, opt_options) {
|
|
19055
|
-
var options = opt_options || {}, doc = options.document || document, uri =
|
|
19206
|
+
var options = opt_options || {}, doc = options.document || document, uri = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(trustedUri).toString(), script = (new goog.dom.DomHelper(doc)).createElement(goog.dom.TagName.SCRIPT), request = {script_:script, timeout_:void 0}, deferred = new goog.async.Deferred(goog.net.jsloader.cancel_, request), timeout = null, timeoutDuration = options.timeout != null ? options.timeout : goog.net.jsloader.DEFAULT_TIMEOUT;
|
|
19056
19207
|
timeoutDuration > 0 && (timeout = window.setTimeout(function() {
|
|
19057
19208
|
goog.net.jsloader.cleanup_(script, !0);
|
|
19058
19209
|
deferred.errback(new goog.net.jsloader.Error(goog.net.jsloader.ErrorCode.TIMEOUT, "Timeout reached for loading script " + uri));
|
|
@@ -19067,13 +19218,13 @@ goog.net.jsloader.safeLoad = function(trustedUri, opt_options) {
|
|
|
19067
19218
|
var properties = options.attributes || {};
|
|
19068
19219
|
module$contents$goog$object_extend(properties, {type:"text/javascript", charset:"UTF-8"});
|
|
19069
19220
|
goog.dom.setProperties(script, properties);
|
|
19070
|
-
|
|
19221
|
+
module$exports$safevalues$dom$elements$script.setSrc(script, trustedUri);
|
|
19071
19222
|
goog.net.jsloader.getScriptParentElement_(doc).appendChild(script);
|
|
19072
19223
|
return deferred;
|
|
19073
19224
|
};
|
|
19074
19225
|
goog.net.jsloader.safeLoadAndVerify = function(trustedUri, verificationObjName, options) {
|
|
19075
19226
|
goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_] || (goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_] = {});
|
|
19076
|
-
var verifyObjs = goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_], uri =
|
|
19227
|
+
var verifyObjs = goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_], uri = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(trustedUri).toString();
|
|
19077
19228
|
if (verifyObjs[verificationObjName] !== void 0) {
|
|
19078
19229
|
return goog.async.Deferred.fail(new goog.net.jsloader.Error(goog.net.jsloader.ErrorCode.VERIFY_OBJECT_ALREADY_EXISTS, "Verification object " + verificationObjName + " already defined."));
|
|
19079
19230
|
}
|
|
@@ -19733,87 +19884,11 @@ goog.net.XhrIo.prototype.formatMsg_ = function(msg) {
|
|
|
19733
19884
|
goog.debug.entryPointRegistry.register(function(transformer) {
|
|
19734
19885
|
goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_ = transformer(goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_);
|
|
19735
19886
|
});
|
|
19736
|
-
safevalues.safeAttrPrefix = module$contents$safevalues$builders$attribute_builders_safeAttrPrefix;
|
|
19737
|
-
safevalues.htmlFragment = module$contents$safevalues$builders$document_fragment_builders_htmlFragment;
|
|
19738
|
-
safevalues.htmlToNode = module$contents$safevalues$builders$document_fragment_builders_htmlToNode;
|
|
19739
|
-
safevalues.svgFragment = module$contents$safevalues$builders$document_fragment_builders_svgFragment;
|
|
19740
|
-
safevalues.concatHtmls = module$exports$safevalues$index.concatHtmls;
|
|
19741
|
-
safevalues.createHtml = module$exports$safevalues$index.createHtml;
|
|
19742
|
-
safevalues.doctypeHtml = module$exports$safevalues$index.doctypeHtml;
|
|
19743
|
-
safevalues.htmlEscape = module$exports$safevalues$index.htmlEscape;
|
|
19744
|
-
safevalues.joinHtmls = module$exports$safevalues$index.joinHtmls;
|
|
19745
|
-
safevalues.nodeToHtml = module$exports$safevalues$index.nodeToHtml;
|
|
19746
|
-
safevalues.scriptToHtml = module$exports$safevalues$index.scriptToHtml;
|
|
19747
|
-
safevalues.scriptUrlToHtml = module$exports$safevalues$index.scriptUrlToHtml;
|
|
19748
|
-
safevalues.styleSheetToHtml = module$exports$safevalues$index.styleSheetToHtml;
|
|
19749
|
-
safevalues.HtmlFormatter = module$exports$safevalues$builders$html_formatter.HtmlFormatter;
|
|
19750
|
-
safevalues.sanitizeHtmlWithCss = module$contents$safevalues$builders$html_sanitizer$default_css_sanitizer_sanitizeHtmlWithCss;
|
|
19751
|
-
safevalues.sanitizeHtml = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtml;
|
|
19752
|
-
safevalues.sanitizeHtmlAssertUnchanged = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged;
|
|
19753
|
-
safevalues.sanitizeHtmlToFragment = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlToFragment;
|
|
19754
|
-
safevalues.CssSanitizer = module$exports$safevalues$index.CssSanitizer;
|
|
19755
|
-
safevalues.HtmlSanitizer = module$exports$safevalues$index.HtmlSanitizer;
|
|
19756
|
-
safevalues.CssSanitizerBuilder = module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder;
|
|
19757
|
-
safevalues.HtmlSanitizerBuilder = module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder;
|
|
19758
|
-
safevalues.ResourceUrlPolicyHintsType = module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType;
|
|
19759
|
-
safevalues.ResourceUrlPolicy = module$exports$safevalues$index.ResourceUrlPolicy;
|
|
19760
|
-
safevalues.ResourceUrlPolicyHints = module$exports$safevalues$index.ResourceUrlPolicyHints;
|
|
19761
|
-
safevalues.appendParams = module$contents$safevalues$builders$resource_url_builders_appendParams;
|
|
19762
|
-
safevalues.appendPathSegment = module$contents$safevalues$builders$resource_url_builders_appendPathSegment;
|
|
19763
|
-
safevalues.objectUrlFromScript = module$contents$safevalues$builders$resource_url_builders_objectUrlFromScript;
|
|
19764
|
-
safevalues.replaceFragment = module$contents$safevalues$builders$resource_url_builders_replaceFragment;
|
|
19765
|
-
safevalues.toAbsoluteResourceUrl = module$contents$safevalues$builders$resource_url_builders_toAbsoluteResourceUrl;
|
|
19766
|
-
safevalues.trustedResourceUrl = module$contents$safevalues$builders$resource_url_builders_trustedResourceUrl;
|
|
19767
|
-
safevalues.concatScripts = module$contents$safevalues$builders$script_builders_concatScripts;
|
|
19768
|
-
safevalues.safeScript = module$contents$safevalues$builders$script_builders_safeScript;
|
|
19769
|
-
safevalues.safeScriptWithArgs = module$contents$safevalues$builders$script_builders_safeScriptWithArgs;
|
|
19770
|
-
safevalues.valueAsScript = module$contents$safevalues$builders$script_builders_valueAsScript;
|
|
19771
|
-
safevalues.concatStyles = module$contents$safevalues$builders$style_builders_concatStyles;
|
|
19772
|
-
safevalues.safeStyle = module$contents$safevalues$builders$style_builders_safeStyle;
|
|
19773
|
-
safevalues.styleForMigration = module$contents$safevalues$builders$style_builders_styleForMigration;
|
|
19774
|
-
safevalues.concatStyleSheets = module$contents$safevalues$builders$style_sheet_builders_concatStyleSheets;
|
|
19775
|
-
safevalues.safeStyleRule = module$contents$safevalues$builders$style_sheet_builders_safeStyleRule;
|
|
19776
|
-
safevalues.safeStyleSheet = module$contents$safevalues$builders$style_sheet_builders_safeStyleSheet;
|
|
19777
|
-
safevalues.SanitizableUrlScheme = module$exports$safevalues$builders$url_builders.SanitizableUrlScheme;
|
|
19778
|
-
safevalues.addJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback;
|
|
19779
|
-
safevalues.fromMediaSource = module$contents$safevalues$builders$url_builders_fromMediaSource;
|
|
19780
|
-
safevalues.fromTrustedResourceUrl = module$contents$safevalues$builders$url_builders_fromTrustedResourceUrl;
|
|
19781
|
-
safevalues.objectUrlFromSafeSource = module$contents$safevalues$builders$url_builders_objectUrlFromSafeSource;
|
|
19782
|
-
safevalues.removeJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback;
|
|
19783
|
-
safevalues.safeUrl = module$contents$safevalues$builders$url_builders_safeUrl;
|
|
19784
|
-
safevalues.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
|
|
19785
|
-
safevalues.trySanitizeUrl = module$contents$safevalues$builders$url_builders_trySanitizeUrl;
|
|
19786
|
-
safevalues.Scheme = module$exports$safevalues$index.Scheme;
|
|
19787
|
-
safevalues.SafeAttributePrefix = module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix;
|
|
19788
|
-
safevalues.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
19789
|
-
safevalues.EMPTY_HTML = module$exports$safevalues$index.EMPTY_HTML;
|
|
19790
|
-
safevalues.SafeHtml = module$exports$safevalues$index.SafeHtml;
|
|
19791
|
-
safevalues.isHtml = module$exports$safevalues$index.isHtml;
|
|
19792
|
-
safevalues.unwrapHtml = module$exports$safevalues$index.unwrapHtml;
|
|
19793
|
-
safevalues.TrustedResourceUrl = goog.html.TrustedResourceUrl;
|
|
19794
|
-
safevalues.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
|
|
19795
|
-
safevalues.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
19796
|
-
safevalues.EMPTY_SCRIPT = module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT;
|
|
19797
|
-
safevalues.SafeScript = module$exports$safevalues$internals$script_impl.SafeScript;
|
|
19798
|
-
safevalues.isScript = module$contents$safevalues$internals$script_impl_isScript;
|
|
19799
|
-
safevalues.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
|
|
19800
|
-
safevalues.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
19801
|
-
safevalues.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
19802
|
-
safevalues.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
19803
|
-
safevalues.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
19804
|
-
safevalues.isStyleSheet = module$contents$safevalues$internals$style_sheet_impl_isStyleSheet;
|
|
19805
|
-
safevalues.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
|
|
19806
|
-
safevalues.ABOUT_BLANK = module$exports$safevalues$internals$url_impl.ABOUT_BLANK;
|
|
19807
|
-
safevalues.INNOCUOUS_URL = module$exports$safevalues$internals$url_impl.INNOCUOUS_URL;
|
|
19808
|
-
safevalues.SafeUrl = module$exports$safevalues$internals$url_impl.SafeUrl;
|
|
19809
|
-
safevalues.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
|
|
19810
|
-
safevalues.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
19811
|
-
safevalues.reportOnlyHtmlPassthrough = module$contents$safevalues$reporting$reporting_reportOnlyHtmlPassthrough;
|
|
19812
19887
|
var $jscomp$templatelit$m1153655765$99 = $jscomp.createTemplateTagFirstArg(["https://accounts.google.com/gsi/client"]);
|
|
19813
19888
|
ee.apiclient = {};
|
|
19814
19889
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19815
19890
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19816
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
19891
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.419";
|
|
19817
19892
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19818
19893
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19819
19894
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -20111,8 +20186,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
20111
20186
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
20112
20187
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
20113
20188
|
method = method || "POST";
|
|
20114
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
20115
|
-
version === "0.1.
|
|
20189
|
+
var headers = {"Content-Type":contentType}, version = "0.1.419";
|
|
20190
|
+
version === "0.1.419" && (version = "latest");
|
|
20116
20191
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
20117
20192
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
20118
20193
|
if (authToken != null) {
|
|
@@ -26173,7 +26248,7 @@ goog.style.installSafeStyleSheet = function(safeStyleSheet, opt_node) {
|
|
|
26173
26248
|
head = dh.createDom(goog.dom.TagName.HEAD);
|
|
26174
26249
|
body.parentNode.insertBefore(head, body);
|
|
26175
26250
|
}
|
|
26176
|
-
var el = dh.createDom(goog.dom.TagName.STYLE), nonce =
|
|
26251
|
+
var el = dh.createDom(goog.dom.TagName.STYLE), nonce = module$exports$safevalues$dom$globals$window.getStyleNonce(window);
|
|
26177
26252
|
nonce && el.setAttribute("nonce", nonce);
|
|
26178
26253
|
goog.style.setSafeStyleSheet(el, safeStyleSheet);
|
|
26179
26254
|
dh.appendChild(head, el);
|
|
@@ -26183,7 +26258,7 @@ goog.style.uninstallStyles = function(styleSheet) {
|
|
|
26183
26258
|
goog.dom.removeNode(styleSheet.ownerNode || styleSheet.owningElement || styleSheet);
|
|
26184
26259
|
};
|
|
26185
26260
|
goog.style.setSafeStyleSheet = function(element, safeStyleSheet) {
|
|
26186
|
-
var stylesString = module$contents$
|
|
26261
|
+
var stylesString = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(safeStyleSheet);
|
|
26187
26262
|
goog.global.trustedTypes ? goog.dom.setTextContent(element, stylesString) : element.innerHTML = stylesString;
|
|
26188
26263
|
};
|
|
26189
26264
|
goog.style.setPreWrap = function(el) {
|
|
@@ -27641,29 +27716,29 @@ ee.data.Profiler.Format.prototype.toString = function() {
|
|
|
27641
27716
|
ee.data.Profiler.Format.TEXT = new ee.data.Profiler.Format("text");
|
|
27642
27717
|
ee.data.Profiler.Format.JSON = new ee.data.Profiler.Format("json");
|
|
27643
27718
|
(function() {
|
|
27644
|
-
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.
|
|
27645
|
-
orderedParamLists = [["name", "namedArgs"], ["name"], ["name", "var_args"], "collection opt_description
|
|
27646
|
-
"
|
|
27647
|
-
"collection opt_description
|
|
27648
|
-
"collection opt_description
|
|
27649
|
-
["
|
|
27650
|
-
|
|
27651
|
-
"opt_callback"], ["
|
|
27652
|
-
"
|
|
27653
|
-
"
|
|
27654
|
-
"
|
|
27655
|
-
|
|
27656
|
-
"
|
|
27657
|
-
[], ["list"], ["number"], ["obj", "
|
|
27658
|
-
[ee.ApiFunction._apply, ee.ApiFunction.lookup, ee.ApiFunction._call, module$contents$ee$batch_Export.
|
|
27659
|
-
module$contents$ee$batch_Export.
|
|
27660
|
-
ee.ComputedObject.prototype.
|
|
27661
|
-
ee.data.
|
|
27662
|
-
ee.data.
|
|
27663
|
-
ee.
|
|
27664
|
-
ee.Filter, ee.Filter.
|
|
27665
|
-
ee.Image.
|
|
27666
|
-
ee.ImageCollection.prototype.getFilmstripThumbURL, ee.ImageCollection.prototype.
|
|
27719
|
+
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.toAsset ee.batch.Export.classifier.toAsset ee.batch.Export.table.toCloudStorage ee.batch.Export.image.toAsset ee.batch.Export.map.toCloudStorage ee.Collection.prototype.sort ee.Collection.prototype.map ee.Collection.prototype.iterate ee.Collection.prototype.filterMetadata ee.Collection.prototype.limit ee.Collection.prototype.filterBounds ee.Collection.prototype.filterDate ee.Collection.prototype.filter ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.data.setWorkloadTag ee.data.authenticate ee.data.getTileUrl ee.data.getTableDownloadId ee.data.getAssetAcl ee.data.getWorkloadTag ee.data.makeTableDownloadUrl ee.data.getTaskListWithLimit ee.data.listImages ee.data.listOperations ee.data.getDownloadId ee.data.getAssetRoots ee.data.cancelOperation ee.data.authenticateViaPopup ee.data.getAsset ee.data.createAssetHome ee.data.makeDownloadUrl ee.data.getFeatureViewTilesKey ee.data.listFeatures ee.data.setDefaultWorkloadTag ee.data.getInfo ee.data.createAsset ee.data.resetWorkloadTag ee.data.authenticateViaPrivateKey ee.data.getOperation ee.data.updateAsset ee.data.newTaskId ee.data.computeValue ee.data.getThumbId ee.data.cancelTask ee.data.getList ee.data.createFolder ee.data.setAssetAcl ee.data.getVideoThumbId ee.data.startIngestion ee.data.updateTask ee.data.getTaskStatus ee.data.renameAsset ee.data.getFilmstripThumbId ee.data.startProcessing ee.data.listAssets ee.data.setAssetProperties ee.data.makeThumbUrl ee.data.authenticateViaOauth ee.data.copyAsset ee.data.listBuckets ee.data.getAssetRootQuota ee.data.getMapId ee.data.deleteAsset ee.data.getTaskList ee.data.startTableIngestion ee.Date ee.Deserializer.decodeCloudApi ee.Deserializer.fromCloudApiJSON ee.Deserializer.decode ee.Deserializer.fromJSON ee.Dictionary ee.InitState ee.apply ee.TILE_SIZE ee.initialize ee.call ee.reset ee.Algorithms ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature.prototype.getInfo ee.Feature.prototype.getMapId ee.Feature.prototype.getMap ee.Feature ee.FeatureCollection ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMapId ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.select ee.Filter.neq ee.Filter.and ee.Filter.lt ee.Filter.gt ee.Filter.metadata ee.Filter.inList ee.Filter.prototype.not ee.Filter.or ee.Filter.lte ee.Filter.gte ee.Filter ee.Filter.eq ee.Filter.date ee.Filter.bounds ee.Function.prototype.call ee.Function.prototype.apply ee.Geometry.LinearRing ee.Geometry.prototype.toGeoJSON ee.Geometry.BBox ee.Geometry.MultiPoint ee.Geometry.Rectangle ee.Geometry.prototype.toGeoJSONString ee.Geometry ee.Geometry.LineString ee.Geometry.Point ee.Geometry.prototype.serialize ee.Geometry.MultiPolygon ee.Geometry.Polygon ee.Geometry.MultiLineString ee.Image.prototype.getThumbURL ee.Image.prototype.select ee.Image ee.Image.prototype.getMap ee.Image.prototype.getDownloadURL ee.Image.prototype.getThumbId ee.Image.rgb ee.Image.cat ee.Image.prototype.expression ee.Image.prototype.rename ee.Image.prototype.clip ee.Image.prototype.getMapId ee.Image.prototype.getInfo ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.linkCollection ee.ImageCollection ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.first ee.List ee.Number ee.Serializer.encodeCloudApiPretty ee.Serializer.encode ee.Serializer.toJSON ee.Serializer.encodeCloudApi ee.Serializer.toCloudApiJSON ee.Serializer.toReadableJSON ee.Serializer.toReadableCloudApiJSON ee.String ee.Terrain".split(" "),
|
|
27720
|
+
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(" "),
|
|
27721
|
+
"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(" "),
|
|
27722
|
+
"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(" "),
|
|
27723
|
+
["collection", "opt_description", "opt_assetId", "opt_maxVertices", "opt_priority"], ["classifier", "opt_description", "opt_assetId", "opt_priority"], "collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), "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(" "),
|
|
27724
|
+
["property", "opt_ascending"], ["algorithm", "opt_dropNulls"], ["algorithm", "opt_first"], ["name", "operator", "value"], ["max", "opt_property", "opt_ascending"], ["geometry"], ["start", "opt_end"], ["filter"], ["func", "var_args"], ["callback"], ["opt_callback"], ["legacy"], ["tag"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["id", "x", "y", "z"], ["params", "opt_callback"], ["assetId", "opt_callback"], [], ["id"], ["opt_limit", "opt_callback"], ["parent",
|
|
27725
|
+
"opt_params", "opt_callback"], ["opt_limit", "opt_callback"], ["params", "opt_callback"], ["opt_callback"], ["operationName", "opt_callback"], ["opt_success", "opt_error"], ["id", "opt_callback"], ["requestedId", "opt_callback"], ["id"], ["params", "opt_callback"], ["asset", "params", "opt_callback"], ["tag"], ["id", "opt_callback"], ["value", "opt_path", "opt_force", "opt_properties", "opt_callback"], ["opt_resetDefault"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes", "opt_suppressDefaultScopes"],
|
|
27726
|
+
["operationName", "opt_callback"], ["assetId", "asset", "updateFields", "opt_callback"], ["opt_count", "opt_callback"], ["obj", "opt_callback"], ["params", "opt_callback"], ["taskId", "opt_callback"], ["params", "opt_callback"], ["path", "opt_force", "opt_callback"], ["assetId", "aclUpdate", "opt_callback"], ["params", "opt_callback"], ["taskId", "request", "opt_callback"], ["taskId", "action", "opt_callback"], ["taskId", "opt_callback"], ["sourceId", "destinationId", "opt_callback"], ["params",
|
|
27727
|
+
"opt_callback"], ["taskId", "params", "opt_callback"], ["parent", "opt_params", "opt_callback"], ["assetId", "properties", "opt_callback"], ["id"], "clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "), ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["project", "opt_callback"], ["rootId", "opt_callback"], ["params", "opt_callback"], ["assetId", "opt_callback"], ["opt_callback"], ["taskId", "request", "opt_callback"], ["date", "opt_tz"],
|
|
27728
|
+
["json"], ["json"], ["json"], ["json"], ["opt_dict"], [], ["func", "namedArgs"], [], "opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "), ["func", "var_args"], [], [], ["var_args"], [], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["geometry", "opt_properties"], ["args", "opt_column"], ["opt_visParams", "opt_callback"], ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["opt_visParams", "opt_callback"],
|
|
27729
|
+
["opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], ["name", "value"], ["var_args"], ["name", "value"], ["name", "value"], ["name", "operator", "value"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], [], ["var_args"], ["name", "value"], ["name", "value"], ["opt_filter"], ["name", "value"], ["start", "opt_end"], ["geometry", "opt_errorMargin"], ["var_args"], ["namedArgs"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], [], ["west",
|
|
27730
|
+
"south", "east", "north"], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], [], ["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj"], ["legacy"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["params", "opt_callback"], ["var_args"], ["opt_args"],
|
|
27731
|
+
["opt_visParams", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["r", "g", "b"], ["var_args"], ["expression", "opt_map"], ["var_args"], ["geometry"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["opt_callback"], ["selectors", "opt_names"], ["params", "opt_callback"], ["imageCollection", "opt_linkedBands", "opt_linkedProperties", "opt_matchPropertyName"], ["args"], ["params", "opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"],
|
|
27732
|
+
[], ["list"], ["number"], ["obj"], ["obj", "opt_isCompound"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj"], ["string"], []];
|
|
27733
|
+
[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.toAsset,
|
|
27734
|
+
module$contents$ee$batch_Export.classifier.toAsset, module$contents$ee$batch_Export.table.toCloudStorage, module$contents$ee$batch_Export.image.toAsset, module$contents$ee$batch_Export.map.toCloudStorage, ee.Collection.prototype.sort, ee.Collection.prototype.map, ee.Collection.prototype.iterate, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.limit, ee.Collection.prototype.filterBounds, ee.Collection.prototype.filterDate, ee.Collection.prototype.filter, ee.ComputedObject.prototype.aside,
|
|
27735
|
+
ee.ComputedObject.prototype.evaluate, ee.ComputedObject.prototype.getInfo, ee.ComputedObject.prototype.serialize, ee.data.setWorkloadTag, ee.data.authenticate, ee.data.getTileUrl, ee.data.getTableDownloadId, ee.data.getAssetAcl, ee.data.getWorkloadTag, ee.data.makeTableDownloadUrl, ee.data.getTaskListWithLimit, ee.data.listImages, ee.data.listOperations, ee.data.getDownloadId, ee.data.getAssetRoots, ee.data.cancelOperation, ee.data.authenticateViaPopup, ee.data.getAsset, ee.data.createAssetHome,
|
|
27736
|
+
ee.data.makeDownloadUrl, ee.data.getFeatureViewTilesKey, ee.data.listFeatures, ee.data.setDefaultWorkloadTag, ee.data.getInfo, ee.data.createAsset, ee.data.resetWorkloadTag, ee.data.authenticateViaPrivateKey, ee.data.getOperation, ee.data.updateAsset, ee.data.newTaskId, ee.data.computeValue, ee.data.getThumbId, ee.data.cancelTask, ee.data.getList, ee.data.createFolder, ee.data.setAssetAcl, ee.data.getVideoThumbId, ee.data.startIngestion, ee.data.updateTask, ee.data.getTaskStatus, ee.data.renameAsset,
|
|
27737
|
+
ee.data.getFilmstripThumbId, ee.data.startProcessing, ee.data.listAssets, ee.data.setAssetProperties, ee.data.makeThumbUrl, ee.data.authenticateViaOauth, ee.data.copyAsset, ee.data.listBuckets, ee.data.getAssetRootQuota, ee.data.getMapId, ee.data.deleteAsset, ee.data.getTaskList, ee.data.startTableIngestion, ee.Date, ee.Deserializer.decodeCloudApi, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.decode, ee.Deserializer.fromJSON, ee.Dictionary, ee.InitState, ee.apply, ee.TILE_SIZE, ee.initialize,
|
|
27738
|
+
ee.call, ee.reset, ee.Algorithms, ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.Feature.prototype.getMap, ee.Feature, ee.FeatureCollection, ee.FeatureCollection.prototype.getMap, ee.FeatureCollection.prototype.getDownloadURL, ee.FeatureCollection.prototype.getMapId, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection.prototype.select, ee.Filter.neq, ee.Filter.and, ee.Filter.lt, ee.Filter.gt, ee.Filter.metadata, ee.Filter.inList,
|
|
27739
|
+
ee.Filter.prototype.not, ee.Filter.or, ee.Filter.lte, ee.Filter.gte, ee.Filter, ee.Filter.eq, ee.Filter.date, ee.Filter.bounds, ee.Function.prototype.call, ee.Function.prototype.apply, ee.Geometry.LinearRing, ee.Geometry.prototype.toGeoJSON, ee.Geometry.BBox, ee.Geometry.MultiPoint, ee.Geometry.Rectangle, ee.Geometry.prototype.toGeoJSONString, ee.Geometry, ee.Geometry.LineString, ee.Geometry.Point, ee.Geometry.prototype.serialize, ee.Geometry.MultiPolygon, ee.Geometry.Polygon, ee.Geometry.MultiLineString,
|
|
27740
|
+
ee.Image.prototype.getThumbURL, ee.Image.prototype.select, ee.Image, ee.Image.prototype.getMap, ee.Image.prototype.getDownloadURL, ee.Image.prototype.getThumbId, ee.Image.rgb, ee.Image.cat, ee.Image.prototype.expression, ee.Image.prototype.rename, ee.Image.prototype.clip, ee.Image.prototype.getMapId, ee.Image.prototype.getInfo, ee.ImageCollection.prototype.getInfo, ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.getVideoThumbURL, ee.ImageCollection.prototype.linkCollection, ee.ImageCollection,
|
|
27741
|
+
ee.ImageCollection.prototype.getFilmstripThumbURL, ee.ImageCollection.prototype.getMapId, ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.first, ee.List, ee.Number, ee.Serializer.encodeCloudApiPretty, ee.Serializer.encode, ee.Serializer.toJSON, ee.Serializer.encodeCloudApi, ee.Serializer.toCloudApiJSON, ee.Serializer.toReadableJSON, ee.Serializer.toReadableCloudApiJSON, ee.String, ee.Terrain].forEach(function(fn, i) {
|
|
27667
27742
|
fn && (exportedFnInfo[fn.toString()] = {name:orderedFnNames[i], paramNames:orderedParamLists[i]});
|
|
27668
27743
|
});
|
|
27669
27744
|
goog.global.EXPORTED_FN_INFO = exportedFnInfo;
|