@google/earthengine 1.1.2 → 1.1.4
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 +425 -519
- package/build/ee_api_js.js +45 -45
- package/build/ee_api_js_debug.js +403 -497
- package/build/ee_api_js_npm.js +425 -519
- package/build/main.js +425 -519
- package/package.json +1 -1
- package/src/apiclient.js +13 -2
package/build/ee_api_js_debug.js
CHANGED
|
@@ -1253,7 +1253,7 @@ $jscomp.polyfill("String.prototype.padStart", function(orig) {
|
|
|
1253
1253
|
return $jscomp.stringPadding(opt_padString, targetLength - string.length) + string;
|
|
1254
1254
|
};
|
|
1255
1255
|
}, "es8", "es3");
|
|
1256
|
-
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_on_init_within_reaction_throws_error__enable:!1, GoogFlags__client_only_wiz_ordered_reaction_execution__disable:!1, GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__disable:!1,
|
|
1256
|
+
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_on_init_within_reaction_throws_error__enable:!1, GoogFlags__client_only_wiz_ordered_reaction_execution__disable:!1, GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__disable:!1, GoogFlags__jspb_ignore_implicit_extension_deps__disable:!1, GoogFlags__jspb_readonly_repeated_fields__disable:!1, GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__disable:!1,
|
|
1257
1257
|
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};
|
|
1258
1258
|
/*
|
|
1259
1259
|
|
|
@@ -1297,8 +1297,9 @@ goog.readFlagInternalDoNotUseOrElse = function(googFlagId, defaultValue) {
|
|
|
1297
1297
|
};
|
|
1298
1298
|
goog.FLAGS_OBJECT_ = "CLOSURE_FLAGS";
|
|
1299
1299
|
goog.FLAGS_STAGING_DEFAULT = !0;
|
|
1300
|
+
goog.CLOSURE_TOGGLE_ORDINALS = typeof CLOSURE_TOGGLE_ORDINALS === "object" ? CLOSURE_TOGGLE_ORDINALS : goog.global.CLOSURE_TOGGLE_ORDINALS;
|
|
1300
1301
|
goog.readToggleInternalDoNotCallDirectly = function(name) {
|
|
1301
|
-
var ordinals =
|
|
1302
|
+
var ordinals = goog.CLOSURE_TOGGLE_ORDINALS, ordinal = ordinals && ordinals[name];
|
|
1302
1303
|
return typeof ordinal !== "number" ? !!ordinal : !!(goog.TOGGLES_[Math.floor(ordinal / 30)] & 1 << ordinal % 30);
|
|
1303
1304
|
};
|
|
1304
1305
|
goog.TOGGLE_VAR_ = "_F_toggles";
|
|
@@ -2151,9 +2152,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
2151
2152
|
};
|
|
2152
2153
|
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;
|
|
2153
2154
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
2154
|
-
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$
|
|
2155
|
-
{mapMetadata:void 0}, $jscomp$key$
|
|
2156
|
-
var key = $jscomp$key$
|
|
2155
|
+
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 =
|
|
2156
|
+
{mapMetadata:void 0}, $jscomp$key$m1892927425$40$key = $jscomp$iter$19.next()) {
|
|
2157
|
+
var key = $jscomp$key$m1892927425$40$key.value, value = valueGetter(key, source);
|
|
2157
2158
|
if (value != null) {
|
|
2158
2159
|
var copy = void 0;
|
|
2159
2160
|
if (arrays.hasOwnProperty(key)) {
|
|
@@ -2164,11 +2165,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2164
2165
|
} else if (objects.hasOwnProperty(key)) {
|
|
2165
2166
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
2166
2167
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
2167
|
-
$jscomp$loop$
|
|
2168
|
+
$jscomp$loop$m1892927425$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m1892927425$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m1892927425$44) {
|
|
2168
2169
|
return function(v) {
|
|
2169
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
2170
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2170
2171
|
};
|
|
2171
|
-
}($jscomp$loop$
|
|
2172
|
+
}($jscomp$loop$m1892927425$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2172
2173
|
} else if (Array.isArray(value)) {
|
|
2173
2174
|
if (metadata.emptyArrayIsUnset && value.length === 0) {
|
|
2174
2175
|
continue;
|
|
@@ -2183,8 +2184,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2183
2184
|
return target;
|
|
2184
2185
|
}
|
|
2185
2186
|
function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
|
|
2186
|
-
for (var objMap = {}, $jscomp$iter$20 = (0,$jscomp.makeIterator)(Object.keys(value)), $jscomp$key$
|
|
2187
|
-
var mapKey = $jscomp$key$
|
|
2187
|
+
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()) {
|
|
2188
|
+
var mapKey = $jscomp$key$m1892927425$41$mapKey.value, mapValue = value[mapKey];
|
|
2188
2189
|
mapValue != null && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
|
|
2189
2190
|
}
|
|
2190
2191
|
return objMap;
|
|
@@ -2214,39 +2215,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
2214
2215
|
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))) {
|
|
2215
2216
|
return !1;
|
|
2216
2217
|
}
|
|
2217
|
-
for (var $jscomp$iter$21 = (0,$jscomp.makeIterator)(keys1), $jscomp$key$
|
|
2218
|
-
var key = $jscomp$key$
|
|
2218
|
+
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()) {
|
|
2219
|
+
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);
|
|
2219
2220
|
if (has1 !== has2) {
|
|
2220
2221
|
return !1;
|
|
2221
2222
|
}
|
|
2222
2223
|
if (has1) {
|
|
2223
2224
|
var value1 = serializable1.Serializable$get(key);
|
|
2224
|
-
$jscomp$loop$
|
|
2225
|
+
$jscomp$loop$m1892927425$45.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
2225
2226
|
if (arrays1.hasOwnProperty(key)) {
|
|
2226
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2227
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !0)) {
|
|
2227
2228
|
return !1;
|
|
2228
2229
|
}
|
|
2229
2230
|
} else if (objects1.hasOwnProperty(key)) {
|
|
2230
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2231
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !0)) {
|
|
2231
2232
|
return !1;
|
|
2232
2233
|
}
|
|
2233
2234
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
2234
|
-
if ($jscomp$loop$
|
|
2235
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
2235
|
+
if ($jscomp$loop$m1892927425$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2.isPropertyArray) {
|
|
2236
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m1892927425$45) {
|
|
2236
2237
|
return function(v1, i) {
|
|
2237
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
2238
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m1892927425$45.value2$jscomp$7[i], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2);
|
|
2238
2239
|
};
|
|
2239
|
-
}($jscomp$loop$
|
|
2240
|
+
}($jscomp$loop$m1892927425$45))) {
|
|
2240
2241
|
return !1;
|
|
2241
2242
|
}
|
|
2242
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
2243
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2)) {
|
|
2243
2244
|
return !1;
|
|
2244
2245
|
}
|
|
2245
2246
|
} else if (Array.isArray(value1)) {
|
|
2246
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2247
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !1)) {
|
|
2247
2248
|
return !1;
|
|
2248
2249
|
}
|
|
2249
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2250
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !1)) {
|
|
2250
2251
|
return !1;
|
|
2251
2252
|
}
|
|
2252
2253
|
}
|
|
@@ -2268,8 +2269,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
|
|
|
2268
2269
|
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
|
|
2269
2270
|
return !1;
|
|
2270
2271
|
}
|
|
2271
|
-
for (var $jscomp$iter$22 = (0,$jscomp.makeIterator)(Object.keys(value1)), $jscomp$key$
|
|
2272
|
-
var mapKey = $jscomp$key$
|
|
2272
|
+
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()) {
|
|
2273
|
+
var mapKey = $jscomp$key$m1892927425$43$mapKey.value;
|
|
2273
2274
|
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
|
|
2274
2275
|
return !1;
|
|
2275
2276
|
}
|
|
@@ -2350,15 +2351,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
|
|
|
2350
2351
|
this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
|
|
2351
2352
|
};
|
|
2352
2353
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
|
|
2353
|
-
var $jscomp$this$
|
|
2354
|
+
var $jscomp$this$m133342051$6 = this, payload = "--" + this._boundary + "\r\n";
|
|
2354
2355
|
payload += this._metadataPayload;
|
|
2355
2356
|
return Promise.all(this.files.map(function(f) {
|
|
2356
|
-
return $jscomp$this$
|
|
2357
|
+
return $jscomp$this$m133342051$6.encodeFile(f);
|
|
2357
2358
|
})).then(function(filePayloads) {
|
|
2358
|
-
for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$
|
|
2359
|
-
payload += $jscomp$key$
|
|
2359
|
+
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()) {
|
|
2360
|
+
payload += $jscomp$key$m133342051$9$filePayload.value;
|
|
2360
2361
|
}
|
|
2361
|
-
return payload += "\r\n--" + $jscomp$this$
|
|
2362
|
+
return payload += "\r\n--" + $jscomp$this$m133342051$6._boundary + "--";
|
|
2362
2363
|
});
|
|
2363
2364
|
};
|
|
2364
2365
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
|
|
@@ -2863,8 +2864,8 @@ function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUr
|
|
|
2863
2864
|
throw Error(message);
|
|
2864
2865
|
}
|
|
2865
2866
|
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
2866
|
-
var $jscomp$templatelit$
|
|
2867
|
-
["\\0"]), $jscomp$templatelit$
|
|
2867
|
+
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"],
|
|
2868
|
+
["\\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"};
|
|
2868
2869
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
2869
2870
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
2870
2871
|
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 ##############################");
|
|
@@ -2878,14 +2879,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
2878
2879
|
return fn.toString().indexOf("`") === -1;
|
|
2879
2880
|
}
|
|
2880
2881
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2881
|
-
return tag($jscomp$templatelit$
|
|
2882
|
+
return tag($jscomp$templatelit$m425881384$5);
|
|
2882
2883
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2883
|
-
return tag($jscomp$templatelit$
|
|
2884
|
+
return tag($jscomp$templatelit$m425881384$6);
|
|
2884
2885
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2885
|
-
return tag($jscomp$templatelit$
|
|
2886
|
+
return tag($jscomp$templatelit$m425881384$7);
|
|
2886
2887
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2887
|
-
return tag($jscomp$templatelit$
|
|
2888
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
2888
|
+
return tag($jscomp$templatelit$m425881384$8);
|
|
2889
|
+
}), 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);
|
|
2889
2890
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
2890
2891
|
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)) ?
|
|
2891
2892
|
!0 : !1;
|
|
@@ -2933,7 +2934,7 @@ function module$contents$safevalues$builders$url_builders_isSafeAudioMimeType(mi
|
|
|
2933
2934
|
return /^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(mimeType);
|
|
2934
2935
|
}
|
|
2935
2936
|
function module$contents$safevalues$builders$url_builders_isSafeFontMimeType(mimeType) {
|
|
2936
|
-
return /^font
|
|
2937
|
+
return /^font\/[\w-]+$/i.test(mimeType);
|
|
2937
2938
|
}
|
|
2938
2939
|
module$exports$safevalues$builders$url_builders.Scheme = function() {
|
|
2939
2940
|
};
|
|
@@ -3179,29 +3180,16 @@ module$exports$safevalues$internals$html_impl.unwrapHtml = function(value) {
|
|
|
3179
3180
|
throw Error(message);
|
|
3180
3181
|
};
|
|
3181
3182
|
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"};
|
|
3182
|
-
module$exports$safevalues$internals$style_impl.SafeStyle = function(token, value) {
|
|
3183
|
-
goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
3184
|
-
this.privateDoNotAccessOrElseWrappedStyle = value;
|
|
3185
|
-
};
|
|
3186
|
-
module$exports$safevalues$internals$style_impl.SafeStyle.prototype.toString = function() {
|
|
3187
|
-
return this.privateDoNotAccessOrElseWrappedStyle;
|
|
3188
|
-
};
|
|
3189
|
-
var module$contents$safevalues$internals$style_impl_StyleImpl = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
3190
3183
|
function module$contents$safevalues$internals$style_impl_createStyleInternal(value) {
|
|
3191
|
-
return
|
|
3184
|
+
return value;
|
|
3192
3185
|
}
|
|
3193
3186
|
module$exports$safevalues$internals$style_impl.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
|
|
3194
3187
|
function module$contents$safevalues$internals$style_impl_isStyle(value) {
|
|
3195
|
-
return value
|
|
3188
|
+
return typeof value === "string";
|
|
3196
3189
|
}
|
|
3197
3190
|
module$exports$safevalues$internals$style_impl.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
3198
3191
|
function module$contents$safevalues$internals$style_impl_unwrapStyle(value) {
|
|
3199
|
-
|
|
3200
|
-
return value.privateDoNotAccessOrElseWrappedStyle;
|
|
3201
|
-
}
|
|
3202
|
-
var message = "";
|
|
3203
|
-
goog.DEBUG && (message = "Unexpected type when unwrapping SafeStyle, got '" + value + "' of type '" + typeof value + "'");
|
|
3204
|
-
throw Error(message);
|
|
3192
|
+
return value;
|
|
3205
3193
|
}
|
|
3206
3194
|
module$exports$safevalues$internals$style_impl.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
3207
3195
|
var module$exports$safevalues$dom$elements$element = {}, module$contents$safevalues$dom$elements$element_module = module$contents$safevalues$dom$elements$element_module || {id:"third_party/javascript/safevalues/dom/elements/element.closure.js"}, module$contents$safevalues$dom$elements$element_ScriptOrStyle;
|
|
@@ -3263,6 +3251,9 @@ module$exports$safevalues$dom$elements$form.setAction = function(form, url) {
|
|
|
3263
3251
|
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3264
3252
|
sanitizedUrl !== void 0 && (form.action = sanitizedUrl);
|
|
3265
3253
|
};
|
|
3254
|
+
module$exports$safevalues$dom$elements$form.setActionLite = function(form, url) {
|
|
3255
|
+
module$contents$safevalues$builders$url_builders_reportJavaScriptUrl(url) || (form.action = url);
|
|
3256
|
+
};
|
|
3266
3257
|
var module$exports$check = {}, module$contents$check_module = module$contents$check_module || {id:"javascript/typescript/contrib/check.closure.js"};
|
|
3267
3258
|
function module$contents$check_checkExhaustive(value, msg) {
|
|
3268
3259
|
return module$contents$check_checkExhaustiveAllowing(value, msg);
|
|
@@ -3297,9 +3288,9 @@ function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr
|
|
|
3297
3288
|
}
|
|
3298
3289
|
}
|
|
3299
3290
|
module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError = function(type, intent) {
|
|
3300
|
-
var $jscomp$tmp$error$
|
|
3301
|
-
this.message = $jscomp$tmp$error$
|
|
3302
|
-
"stack" in $jscomp$tmp$error$
|
|
3291
|
+
var $jscomp$tmp$error$494508883$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.Intent[intent]);
|
|
3292
|
+
this.message = $jscomp$tmp$error$494508883$1.message;
|
|
3293
|
+
"stack" in $jscomp$tmp$error$494508883$1 && (this.stack = $jscomp$tmp$error$494508883$1.stack);
|
|
3303
3294
|
this.type = type;
|
|
3304
3295
|
this.intent = intent;
|
|
3305
3296
|
this.name = "TypeCannotBeUsedWithIntentError";
|
|
@@ -3399,15 +3390,16 @@ module$exports$safevalues$dom$globals$window.open = function(win, url, target, f
|
|
|
3399
3390
|
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
3400
3391
|
return sanitizedUrl !== void 0 ? win.open(sanitizedUrl, target, features) : null;
|
|
3401
3392
|
};
|
|
3402
|
-
module$exports$safevalues$dom$globals$window.getScriptNonce = function(
|
|
3403
|
-
return module$contents$safevalues$dom$globals$window_getNonceFor("script",
|
|
3393
|
+
module$exports$safevalues$dom$globals$window.getScriptNonce = function(documentOrWindow) {
|
|
3394
|
+
return module$contents$safevalues$dom$globals$window_getNonceFor("script", documentOrWindow);
|
|
3404
3395
|
};
|
|
3405
|
-
module$exports$safevalues$dom$globals$window.getStyleNonce = function(
|
|
3406
|
-
return module$contents$safevalues$dom$globals$window_getNonceFor("style",
|
|
3396
|
+
module$exports$safevalues$dom$globals$window.getStyleNonce = function(documentOrWindow) {
|
|
3397
|
+
return module$contents$safevalues$dom$globals$window_getNonceFor("style", documentOrWindow);
|
|
3407
3398
|
};
|
|
3408
|
-
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName,
|
|
3409
|
-
|
|
3410
|
-
|
|
3399
|
+
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, documentOrWindow) {
|
|
3400
|
+
documentOrWindow = documentOrWindow === void 0 ? document : documentOrWindow;
|
|
3401
|
+
var $jscomp$optchain$tmpm1987982378$0, $jscomp$optchain$tmpm1987982378$1, el = ($jscomp$optchain$tmpm1987982378$1 = ($jscomp$optchain$tmpm1987982378$0 = "document" in documentOrWindow ? documentOrWindow.document : documentOrWindow).querySelector) == null ? void 0 : $jscomp$optchain$tmpm1987982378$1.call($jscomp$optchain$tmpm1987982378$0, elementName + "[nonce]");
|
|
3402
|
+
return el == null ? "" : el.nonce || el.getAttribute("nonce") || "";
|
|
3411
3403
|
}
|
|
3412
3404
|
;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"};
|
|
3413
3405
|
module$exports$safevalues$internals$script_impl.SafeScript = function(token, value) {
|
|
@@ -4223,6 +4215,13 @@ goog.debug.serializeErrorStack_ = function(e, seen) {
|
|
|
4223
4215
|
seen[goog.debug.serializeErrorAsKey_(e)] = !0;
|
|
4224
4216
|
var stack = e.stack || "", cause = e.cause;
|
|
4225
4217
|
cause && !seen[goog.debug.serializeErrorAsKey_(cause)] && (stack += "\nCaused by: ", cause.stack && cause.stack.indexOf(cause.toString()) == 0 || (stack += typeof cause === "string" ? cause : cause.message + "\n"), stack += goog.debug.serializeErrorStack_(cause, seen));
|
|
4218
|
+
var errors = e.errors;
|
|
4219
|
+
if (Array.isArray(errors)) {
|
|
4220
|
+
for (var actualIndex = 1, i = 0; i < errors.length && !(actualIndex > 4); i++) {
|
|
4221
|
+
seen[goog.debug.serializeErrorAsKey_(errors[i])] || (stack += "\nInner error " + actualIndex++ + ": ", errors[i].stack && errors[i].stack.indexOf(errors[i].toString()) == 0 || (stack += typeof errors[i] === "string" ? errors[i] : errors[i].message + "\n"), stack += goog.debug.serializeErrorStack_(errors[i], seen));
|
|
4222
|
+
}
|
|
4223
|
+
i < errors.length && (stack += "\n... " + (errors.length - i) + " more inner errors");
|
|
4224
|
+
}
|
|
4226
4225
|
return stack;
|
|
4227
4226
|
};
|
|
4228
4227
|
goog.debug.serializeErrorAsKey_ = function(e) {
|
|
@@ -4681,9 +4680,9 @@ function module$contents$safevalues$dom$globals$dom_parser_parseFromString(parse
|
|
|
4681
4680
|
module$exports$safevalues$dom$globals$dom_parser.parseFromString = module$contents$safevalues$dom$globals$dom_parser_parseFromString;
|
|
4682
4681
|
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"};
|
|
4683
4682
|
module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError = function(url, typeName, contentType) {
|
|
4684
|
-
var $jscomp$tmp$error$
|
|
4685
|
-
this.message = $jscomp$tmp$error$
|
|
4686
|
-
"stack" in $jscomp$tmp$error$
|
|
4683
|
+
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.");
|
|
4684
|
+
this.message = $jscomp$tmp$error$1153895636$25.message;
|
|
4685
|
+
"stack" in $jscomp$tmp$error$1153895636$25 && (this.stack = $jscomp$tmp$error$1153895636$25.stack);
|
|
4687
4686
|
this.url = url;
|
|
4688
4687
|
this.typeName = typeName;
|
|
4689
4688
|
this.contentType = contentType;
|
|
@@ -4695,48 +4694,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
|
|
|
4695
4694
|
return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
|
|
4696
4695
|
}
|
|
4697
4696
|
function module$contents$safevalues$dom$globals$fetch_fetchResourceUrl(u, init) {
|
|
4698
|
-
var response, $jscomp$optchain$
|
|
4699
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4700
|
-
if ($jscomp$generator$context$
|
|
4701
|
-
return $jscomp$generator$context$
|
|
4702
|
-
}
|
|
4703
|
-
response = $jscomp$generator$context$
|
|
4704
|
-
mimeType = ($jscomp$optchain$
|
|
4705
|
-
return $jscomp$generator$context$
|
|
4697
|
+
var response, $jscomp$optchain$tmp1153895636$0, $jscomp$optchain$tmp1153895636$1, $jscomp$optchain$tmp1153895636$2, mimeType;
|
|
4698
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$29) {
|
|
4699
|
+
if ($jscomp$generator$context$1153895636$29.nextAddress == 1) {
|
|
4700
|
+
return $jscomp$generator$context$1153895636$29.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
|
|
4701
|
+
}
|
|
4702
|
+
response = $jscomp$generator$context$1153895636$29.yieldResult;
|
|
4703
|
+
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();
|
|
4704
|
+
return $jscomp$generator$context$1153895636$29.return({html:function() {
|
|
4706
4705
|
var text;
|
|
4707
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4708
|
-
if ($jscomp$generator$context$
|
|
4706
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$26) {
|
|
4707
|
+
if ($jscomp$generator$context$1153895636$26.nextAddress == 1) {
|
|
4709
4708
|
if (mimeType !== "text/html") {
|
|
4710
4709
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
|
|
4711
4710
|
}
|
|
4712
|
-
return $jscomp$generator$context$
|
|
4711
|
+
return $jscomp$generator$context$1153895636$26.yield(response.text(), 2);
|
|
4713
4712
|
}
|
|
4714
|
-
text = $jscomp$generator$context$
|
|
4715
|
-
return $jscomp$generator$context$
|
|
4713
|
+
text = $jscomp$generator$context$1153895636$26.yieldResult;
|
|
4714
|
+
return $jscomp$generator$context$1153895636$26.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
|
|
4716
4715
|
});
|
|
4717
4716
|
}, script:function() {
|
|
4718
4717
|
var text;
|
|
4719
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4720
|
-
if ($jscomp$generator$context$
|
|
4718
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$27) {
|
|
4719
|
+
if ($jscomp$generator$context$1153895636$27.nextAddress == 1) {
|
|
4721
4720
|
if (mimeType !== "text/javascript" && mimeType !== "application/javascript") {
|
|
4722
4721
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
|
|
4723
4722
|
}
|
|
4724
|
-
return $jscomp$generator$context$
|
|
4723
|
+
return $jscomp$generator$context$1153895636$27.yield(response.text(), 2);
|
|
4725
4724
|
}
|
|
4726
|
-
text = $jscomp$generator$context$
|
|
4727
|
-
return $jscomp$generator$context$
|
|
4725
|
+
text = $jscomp$generator$context$1153895636$27.yieldResult;
|
|
4726
|
+
return $jscomp$generator$context$1153895636$27.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
|
|
4728
4727
|
});
|
|
4729
4728
|
}, styleSheet:function() {
|
|
4730
4729
|
var text;
|
|
4731
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4732
|
-
if ($jscomp$generator$context$
|
|
4730
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$28) {
|
|
4731
|
+
if ($jscomp$generator$context$1153895636$28.nextAddress == 1) {
|
|
4733
4732
|
if (mimeType !== "text/css") {
|
|
4734
4733
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
|
|
4735
4734
|
}
|
|
4736
|
-
return $jscomp$generator$context$
|
|
4735
|
+
return $jscomp$generator$context$1153895636$28.yield(response.text(), 2);
|
|
4737
4736
|
}
|
|
4738
|
-
text = $jscomp$generator$context$
|
|
4739
|
-
return $jscomp$generator$context$
|
|
4737
|
+
text = $jscomp$generator$context$1153895636$28.yieldResult;
|
|
4738
|
+
return $jscomp$generator$context$1153895636$28.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
|
|
4740
4739
|
});
|
|
4741
4740
|
}});
|
|
4742
4741
|
});
|
|
@@ -4813,6 +4812,54 @@ module$exports$safevalues$dom$index.safeServiceWorkerContainer = module$exports$
|
|
|
4813
4812
|
module$exports$safevalues$dom$index.safeUrl = module$exports$safevalues$dom$globals$url;
|
|
4814
4813
|
module$exports$safevalues$dom$index.safeWindow = module$exports$safevalues$dom$globals$window;
|
|
4815
4814
|
module$exports$safevalues$dom$index.safeWorker = module$exports$safevalues$dom$globals$worker;
|
|
4815
|
+
module$exports$safevalues$dom$index.setAnchorHref = module$exports$safevalues$dom$elements$anchor.setHref;
|
|
4816
|
+
module$exports$safevalues$dom$index.setAnchorHrefLite = module$exports$safevalues$dom$elements$anchor.setHrefLite;
|
|
4817
|
+
module$exports$safevalues$dom$index.setAreaHref = module$exports$safevalues$dom$elements$area.setHref;
|
|
4818
|
+
module$exports$safevalues$dom$index.setBaseHref = module$exports$safevalues$dom$elements$base.setHref;
|
|
4819
|
+
module$exports$safevalues$dom$index.setButtonFormaction = module$exports$safevalues$dom$elements$button.setFormaction;
|
|
4820
|
+
module$exports$safevalues$dom$index.buildPrefixedAttributeSetter = module$exports$safevalues$dom$elements$element.buildPrefixedAttributeSetter;
|
|
4821
|
+
module$exports$safevalues$dom$index.elementInsertAdjacentHtml = module$exports$safevalues$dom$elements$element.insertAdjacentHtml;
|
|
4822
|
+
module$exports$safevalues$dom$index.setElementCssText = module$exports$safevalues$dom$elements$element.setCssText;
|
|
4823
|
+
module$exports$safevalues$dom$index.setElementInnerHtml = module$exports$safevalues$dom$elements$element.setInnerHtml;
|
|
4824
|
+
module$exports$safevalues$dom$index.setElementOuterHtml = module$exports$safevalues$dom$elements$element.setOuterHtml;
|
|
4825
|
+
module$exports$safevalues$dom$index.setElementPrefixedAttribute = module$exports$safevalues$dom$elements$element.setPrefixedAttribute;
|
|
4826
|
+
module$exports$safevalues$dom$index.setEmbedSrc = module$exports$safevalues$dom$elements$embed.setSrc;
|
|
4827
|
+
module$exports$safevalues$dom$index.setFormAction = module$exports$safevalues$dom$elements$form.setAction;
|
|
4828
|
+
module$exports$safevalues$dom$index.IframeIntent = module$exports$safevalues$dom$elements$iframe.Intent;
|
|
4829
|
+
module$exports$safevalues$dom$index.TypeCannotBeUsedWithIframeIntentError = module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError;
|
|
4830
|
+
module$exports$safevalues$dom$index.setIframeSrc = module$exports$safevalues$dom$elements$iframe.setSrc;
|
|
4831
|
+
module$exports$safevalues$dom$index.setIframeSrcWithIntent = module$exports$safevalues$dom$elements$iframe.setSrcWithIntent;
|
|
4832
|
+
module$exports$safevalues$dom$index.setIframeSrcdoc = module$exports$safevalues$dom$elements$iframe.setSrcdoc;
|
|
4833
|
+
module$exports$safevalues$dom$index.setIframeSrcdocWithIntent = module$exports$safevalues$dom$elements$iframe.setSrcdocWithIntent;
|
|
4834
|
+
module$exports$safevalues$dom$index.setInputFormaction = module$exports$safevalues$dom$elements$input.setFormaction;
|
|
4835
|
+
module$exports$safevalues$dom$index.setLinkHrefAndRel = module$exports$safevalues$dom$elements$link.setHrefAndRel;
|
|
4836
|
+
module$exports$safevalues$dom$index.setLinkWithResourceUrlHrefAndRel = module$exports$safevalues$dom$elements$link.setHrefAndRelWithTrustedResourceUrl;
|
|
4837
|
+
module$exports$safevalues$dom$index.setObjectData = module$exports$safevalues$dom$elements$object.setData;
|
|
4838
|
+
module$exports$safevalues$dom$index.setScriptSrc = module$exports$safevalues$dom$elements$script.setSrc;
|
|
4839
|
+
module$exports$safevalues$dom$index.setScriptTextContent = module$exports$safevalues$dom$elements$script.setTextContent;
|
|
4840
|
+
module$exports$safevalues$dom$index.setStyleTextContent = module$exports$safevalues$dom$elements$style.setTextContent;
|
|
4841
|
+
module$exports$safevalues$dom$index.setSvgAttribute = module$exports$safevalues$dom$elements$svg.setAttribute;
|
|
4842
|
+
module$exports$safevalues$dom$index.setSvgUseHref = module$exports$safevalues$dom$elements$svg_use.setHref;
|
|
4843
|
+
module$exports$safevalues$dom$index.documentExecCommand = module$exports$safevalues$dom$globals$document.execCommand;
|
|
4844
|
+
module$exports$safevalues$dom$index.documentExecCommandInsertHtml = module$exports$safevalues$dom$globals$document.execCommandInsertHtml;
|
|
4845
|
+
module$exports$safevalues$dom$index.documentWrite = module$exports$safevalues$dom$globals$document.write;
|
|
4846
|
+
module$exports$safevalues$dom$index.domParserParseFromString = module$exports$safevalues$dom$globals$dom_parser.parseFromString;
|
|
4847
|
+
module$exports$safevalues$dom$index.domParserParseHtml = module$exports$safevalues$dom$globals$dom_parser.parseHtml;
|
|
4848
|
+
module$exports$safevalues$dom$index.domParserParseXml = module$exports$safevalues$dom$globals$dom_parser.parseXml;
|
|
4849
|
+
module$exports$safevalues$dom$index.fetchResourceUrl = module$exports$safevalues$dom$globals$global.fetchResourceUrl;
|
|
4850
|
+
module$exports$safevalues$dom$index.globalEval = module$exports$safevalues$dom$globals$global.globalEval;
|
|
4851
|
+
module$exports$safevalues$dom$index.locationAssign = module$exports$safevalues$dom$globals$location.assign;
|
|
4852
|
+
module$exports$safevalues$dom$index.locationReplace = module$exports$safevalues$dom$globals$location.replace;
|
|
4853
|
+
module$exports$safevalues$dom$index.setLocationHref = module$exports$safevalues$dom$globals$location.setHref;
|
|
4854
|
+
module$exports$safevalues$dom$index.rangeCreateContextualFragment = module$exports$safevalues$dom$globals$range.createContextualFragment;
|
|
4855
|
+
module$exports$safevalues$dom$index.serviceWorkerContainerRegister = module$exports$safevalues$dom$globals$service_worker_container.register;
|
|
4856
|
+
module$exports$safevalues$dom$index.objectUrlFromSafeSource = module$exports$safevalues$dom$globals$url.objectUrlFromSafeSource;
|
|
4857
|
+
module$exports$safevalues$dom$index.getScriptNonce = module$exports$safevalues$dom$globals$window.getScriptNonce;
|
|
4858
|
+
module$exports$safevalues$dom$index.getStyleNonce = module$exports$safevalues$dom$globals$window.getStyleNonce;
|
|
4859
|
+
module$exports$safevalues$dom$index.windowOpen = module$exports$safevalues$dom$globals$window.open;
|
|
4860
|
+
module$exports$safevalues$dom$index.createWorker = module$exports$safevalues$dom$globals$worker.create;
|
|
4861
|
+
module$exports$safevalues$dom$index.createSharedWorker = module$exports$safevalues$dom$globals$worker.createShared;
|
|
4862
|
+
module$exports$safevalues$dom$index.workerGlobalScopeImportScripts = module$exports$safevalues$dom$globals$worker.importScripts;
|
|
4816
4863
|
var safevalues = {dom:{}};
|
|
4817
4864
|
safevalues.dom.safeAnchorEl = module$exports$safevalues$dom$elements$anchor;
|
|
4818
4865
|
safevalues.dom.safeAreaEl = module$exports$safevalues$dom$elements$area;
|
|
@@ -4838,6 +4885,54 @@ safevalues.dom.safeServiceWorkerContainer = module$exports$safevalues$dom$global
|
|
|
4838
4885
|
safevalues.dom.safeUrl = module$exports$safevalues$dom$globals$url;
|
|
4839
4886
|
safevalues.dom.safeWindow = module$exports$safevalues$dom$globals$window;
|
|
4840
4887
|
safevalues.dom.safeWorker = module$exports$safevalues$dom$globals$worker;
|
|
4888
|
+
safevalues.dom.setAnchorHref = module$exports$safevalues$dom$index.setAnchorHref;
|
|
4889
|
+
safevalues.dom.setAnchorHrefLite = module$exports$safevalues$dom$index.setAnchorHrefLite;
|
|
4890
|
+
safevalues.dom.setAreaHref = module$exports$safevalues$dom$index.setAreaHref;
|
|
4891
|
+
safevalues.dom.setBaseHref = module$exports$safevalues$dom$index.setBaseHref;
|
|
4892
|
+
safevalues.dom.setButtonFormaction = module$exports$safevalues$dom$index.setButtonFormaction;
|
|
4893
|
+
safevalues.dom.buildPrefixedAttributeSetter = module$exports$safevalues$dom$index.buildPrefixedAttributeSetter;
|
|
4894
|
+
safevalues.dom.elementInsertAdjacentHtml = module$exports$safevalues$dom$index.elementInsertAdjacentHtml;
|
|
4895
|
+
safevalues.dom.setElementCssText = module$exports$safevalues$dom$index.setElementCssText;
|
|
4896
|
+
safevalues.dom.setElementInnerHtml = module$exports$safevalues$dom$index.setElementInnerHtml;
|
|
4897
|
+
safevalues.dom.setElementOuterHtml = module$exports$safevalues$dom$index.setElementOuterHtml;
|
|
4898
|
+
safevalues.dom.setElementPrefixedAttribute = module$exports$safevalues$dom$index.setElementPrefixedAttribute;
|
|
4899
|
+
safevalues.dom.setEmbedSrc = module$exports$safevalues$dom$index.setEmbedSrc;
|
|
4900
|
+
safevalues.dom.setFormAction = module$exports$safevalues$dom$index.setFormAction;
|
|
4901
|
+
safevalues.dom.IframeIntent = module$exports$safevalues$dom$index.IframeIntent;
|
|
4902
|
+
safevalues.dom.TypeCannotBeUsedWithIframeIntentError = module$exports$safevalues$dom$index.TypeCannotBeUsedWithIframeIntentError;
|
|
4903
|
+
safevalues.dom.setIframeSrc = module$exports$safevalues$dom$index.setIframeSrc;
|
|
4904
|
+
safevalues.dom.setIframeSrcWithIntent = module$exports$safevalues$dom$index.setIframeSrcWithIntent;
|
|
4905
|
+
safevalues.dom.setIframeSrcdoc = module$exports$safevalues$dom$index.setIframeSrcdoc;
|
|
4906
|
+
safevalues.dom.setIframeSrcdocWithIntent = module$exports$safevalues$dom$index.setIframeSrcdocWithIntent;
|
|
4907
|
+
safevalues.dom.setInputFormaction = module$exports$safevalues$dom$index.setInputFormaction;
|
|
4908
|
+
safevalues.dom.setLinkHrefAndRel = module$exports$safevalues$dom$index.setLinkHrefAndRel;
|
|
4909
|
+
safevalues.dom.setLinkWithResourceUrlHrefAndRel = module$exports$safevalues$dom$index.setLinkWithResourceUrlHrefAndRel;
|
|
4910
|
+
safevalues.dom.setObjectData = module$exports$safevalues$dom$index.setObjectData;
|
|
4911
|
+
safevalues.dom.setScriptSrc = module$exports$safevalues$dom$index.setScriptSrc;
|
|
4912
|
+
safevalues.dom.setScriptTextContent = module$exports$safevalues$dom$index.setScriptTextContent;
|
|
4913
|
+
safevalues.dom.setStyleTextContent = module$exports$safevalues$dom$index.setStyleTextContent;
|
|
4914
|
+
safevalues.dom.setSvgAttribute = module$exports$safevalues$dom$index.setSvgAttribute;
|
|
4915
|
+
safevalues.dom.setSvgUseHref = module$exports$safevalues$dom$index.setSvgUseHref;
|
|
4916
|
+
safevalues.dom.documentExecCommand = module$exports$safevalues$dom$index.documentExecCommand;
|
|
4917
|
+
safevalues.dom.documentExecCommandInsertHtml = module$exports$safevalues$dom$index.documentExecCommandInsertHtml;
|
|
4918
|
+
safevalues.dom.documentWrite = module$exports$safevalues$dom$index.documentWrite;
|
|
4919
|
+
safevalues.dom.domParserParseFromString = module$exports$safevalues$dom$index.domParserParseFromString;
|
|
4920
|
+
safevalues.dom.domParserParseHtml = module$exports$safevalues$dom$index.domParserParseHtml;
|
|
4921
|
+
safevalues.dom.domParserParseXml = module$exports$safevalues$dom$index.domParserParseXml;
|
|
4922
|
+
safevalues.dom.fetchResourceUrl = module$exports$safevalues$dom$index.fetchResourceUrl;
|
|
4923
|
+
safevalues.dom.globalEval = module$exports$safevalues$dom$index.globalEval;
|
|
4924
|
+
safevalues.dom.locationAssign = module$exports$safevalues$dom$index.locationAssign;
|
|
4925
|
+
safevalues.dom.locationReplace = module$exports$safevalues$dom$index.locationReplace;
|
|
4926
|
+
safevalues.dom.setLocationHref = module$exports$safevalues$dom$index.setLocationHref;
|
|
4927
|
+
safevalues.dom.rangeCreateContextualFragment = module$exports$safevalues$dom$index.rangeCreateContextualFragment;
|
|
4928
|
+
safevalues.dom.serviceWorkerContainerRegister = module$exports$safevalues$dom$index.serviceWorkerContainerRegister;
|
|
4929
|
+
safevalues.dom.objectUrlFromSafeSource = module$exports$safevalues$dom$index.objectUrlFromSafeSource;
|
|
4930
|
+
safevalues.dom.getScriptNonce = module$exports$safevalues$dom$index.getScriptNonce;
|
|
4931
|
+
safevalues.dom.getStyleNonce = module$exports$safevalues$dom$index.getStyleNonce;
|
|
4932
|
+
safevalues.dom.windowOpen = module$exports$safevalues$dom$index.windowOpen;
|
|
4933
|
+
safevalues.dom.createWorker = module$exports$safevalues$dom$index.createWorker;
|
|
4934
|
+
safevalues.dom.createSharedWorker = module$exports$safevalues$dom$index.createSharedWorker;
|
|
4935
|
+
safevalues.dom.workerGlobalScopeImportScripts = module$exports$safevalues$dom$index.workerGlobalScopeImportScripts;
|
|
4841
4936
|
var module$exports$safevalues$restricted$reviewed = {}, module$contents$safevalues$restricted$reviewed_module = module$contents$safevalues$restricted$reviewed_module || {id:"third_party/javascript/safevalues/restricted/reviewed.closure.js"};
|
|
4842
4937
|
function module$contents$safevalues$restricted$reviewed_assertValidJustification(justification) {
|
|
4843
4938
|
if (typeof justification !== "string" || justification.trim() === "") {
|
|
@@ -6158,8 +6253,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
6158
6253
|
}
|
|
6159
6254
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
6160
6255
|
function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
|
|
6161
|
-
for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$
|
|
6162
|
-
var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6256
|
+
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()) {
|
|
6257
|
+
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;
|
|
6163
6258
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
6164
6259
|
}
|
|
6165
6260
|
return urlQueryParams;
|
|
@@ -6170,8 +6265,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params)
|
|
|
6170
6265
|
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1, hasSafeContentType = !1;
|
|
6171
6266
|
if (params.headers) {
|
|
6172
6267
|
hasContentType = params.headers["Content-Type"] != null;
|
|
6173
|
-
for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$
|
|
6174
|
-
var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6268
|
+
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()) {
|
|
6269
|
+
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;
|
|
6175
6270
|
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);
|
|
6176
6271
|
}
|
|
6177
6272
|
}
|
|
@@ -6211,9 +6306,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
|
|
|
6211
6306
|
return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
|
|
6212
6307
|
};
|
|
6213
6308
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
|
|
6214
|
-
var $jscomp$this$
|
|
6309
|
+
var $jscomp$this$m296226325$4 = this, responseCtor = requestParams.responseCtor || void 0;
|
|
6215
6310
|
return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
|
|
6216
|
-
return $jscomp$this$
|
|
6311
|
+
return $jscomp$this$m296226325$4.requestService.send(params, responseCtor);
|
|
6217
6312
|
}));
|
|
6218
6313
|
};
|
|
6219
6314
|
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"};
|
|
@@ -6389,7 +6484,7 @@ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_o
|
|
|
6389
6484
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__disable = !1;
|
|
6390
6485
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__wiz_enable_native_promise__enable = !1;
|
|
6391
6486
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_readonly_repeated_fields__disable = !1;
|
|
6392
|
-
module$exports$closure$flags$flags$2etoggles.
|
|
6487
|
+
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_ignore_implicit_extension_deps__disable = !1;
|
|
6393
6488
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable = !1;
|
|
6394
6489
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable = !1;
|
|
6395
6490
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable = !1;
|
|
@@ -6406,7 +6501,7 @@ goog.flags.CLIENT_ONLY_WIZ_SYNC_REACTION_WITHIN_REACTION_THROWS_ERROR = module$e
|
|
|
6406
6501
|
!0);
|
|
6407
6502
|
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);
|
|
6408
6503
|
goog.flags.JSPB_READONLY_REPEATED_FIELDS = 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_readonly_repeated_fields__disable) : goog.readFlagInternalDoNotUseOrElse(653718497, module$contents$goog$flags_STAGING);
|
|
6409
|
-
goog.flags.JSPB_IGNORE_IMPLICIT_EXTENSION_DEPS = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.
|
|
6504
|
+
goog.flags.JSPB_IGNORE_IMPLICIT_EXTENSION_DEPS = 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_ignore_implicit_extension_deps__disable) : goog.readFlagInternalDoNotUseOrElse(660014094, module$contents$goog$flags_STAGING);
|
|
6410
6505
|
goog.flags.TESTONLY_DISABLED_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable : goog.readFlagInternalDoNotUseOrElse(2147483644, !1);
|
|
6411
6506
|
goog.flags.TESTONLY_DEBUG_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable : goog.readFlagInternalDoNotUseOrElse(2147483645, goog.DEBUG);
|
|
6412
6507
|
goog.flags.TESTONLY_STAGING_FLAG = 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__testonly_staging_flag__disable) : goog.readFlagInternalDoNotUseOrElse(2147483646, module$contents$goog$flags_STAGING);
|
|
@@ -9209,17 +9304,6 @@ module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum = {DATA_TYPE_UNSPEC
|
|
|
9209
9304
|
return [module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.DATA_TYPE_UNSPECIFIED, module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.INT8, module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.UINT8, module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.INT16, module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.UINT16,
|
|
9210
9305
|
module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.INT32, module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.UINT32, module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.FLOAT, module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum.DOUBLE];
|
|
9211
9306
|
}};
|
|
9212
|
-
module$exports$eeapiclient$ee_api_client.ITrialStatusEligibilityEnum = function() {
|
|
9213
|
-
};
|
|
9214
|
-
module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum = {ACCOUNT_INELIGIBLE:"ACCOUNT_INELIGIBLE", ALREADY_EVALUATED:"ALREADY_EVALUATED", ELIGIBILITY_UNSPECIFIED:"ELIGIBILITY_UNSPECIFIED", ELIGIBLE:"ELIGIBLE", NO_BILLING_ACCOUNT:"NO_BILLING_ACCOUNT", REDEEMED:"REDEEMED", values:function() {
|
|
9215
|
-
return [module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum.ELIGIBILITY_UNSPECIFIED, module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum.ELIGIBLE, module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum.REDEEMED, module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum.ALREADY_EVALUATED, module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum.NO_BILLING_ACCOUNT,
|
|
9216
|
-
module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum.ACCOUNT_INELIGIBLE];
|
|
9217
|
-
}};
|
|
9218
|
-
module$exports$eeapiclient$ee_api_client.ITrialStatusStateEnum = function() {
|
|
9219
|
-
};
|
|
9220
|
-
module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum = {ACTIVE:"ACTIVE", EXPIRED:"EXPIRED", STATE_UNSPECIFIED:"STATE_UNSPECIFIED", values:function() {
|
|
9221
|
-
return [module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum.STATE_UNSPECIFIED, module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum.ACTIVE, module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum.EXPIRED];
|
|
9222
|
-
}};
|
|
9223
9307
|
module$exports$eeapiclient$ee_api_client.IVideoFileExportOptionsFileFormatEnum = function() {
|
|
9224
9308
|
};
|
|
9225
9309
|
module$exports$eeapiclient$ee_api_client.VideoFileExportOptionsFileFormatEnum = {GIF:"GIF", MP4:"MP4", VIDEO_FILE_FORMAT_UNSPECIFIED:"VIDEO_FILE_FORMAT_UNSPECIFIED", VP9:"VP9", values:function() {
|
|
@@ -12294,7 +12378,6 @@ module$exports$eeapiclient$ee_api_client.ProjectConfig = function(parameters) {
|
|
|
12294
12378
|
this.Serializable$set("name", parameters.name == null ? null : parameters.name);
|
|
12295
12379
|
this.Serializable$set("registration", parameters.registration == null ? null : parameters.registration);
|
|
12296
12380
|
this.Serializable$set("registrationState", parameters.registrationState == null ? null : parameters.registrationState);
|
|
12297
|
-
this.Serializable$set("trialStatus", parameters.trialStatus == null ? null : parameters.trialStatus);
|
|
12298
12381
|
this.Serializable$set("vpcServiceControlsRestricted", parameters.vpcServiceControlsRestricted == null ? null : parameters.vpcServiceControlsRestricted);
|
|
12299
12382
|
};
|
|
12300
12383
|
$jscomp.inherits(module$exports$eeapiclient$ee_api_client.ProjectConfig, module$exports$eeapiclient$domain_object.Serializable);
|
|
@@ -12302,7 +12385,7 @@ module$exports$eeapiclient$ee_api_client.ProjectConfig.prototype.getConstructor
|
|
|
12302
12385
|
return module$exports$eeapiclient$ee_api_client.ProjectConfig;
|
|
12303
12386
|
};
|
|
12304
12387
|
module$exports$eeapiclient$ee_api_client.ProjectConfig.prototype.getPartialClassMetadata = function() {
|
|
12305
|
-
return {enums:{registrationState:module$exports$eeapiclient$ee_api_client.ProjectConfigRegistrationStateEnum}, keys:["name", "registration", "registrationState", "
|
|
12388
|
+
return {enums:{registrationState:module$exports$eeapiclient$ee_api_client.ProjectConfigRegistrationStateEnum}, keys:["name", "registration", "registrationState", "vpcServiceControlsRestricted"], objects:{registration:module$exports$eeapiclient$ee_api_client.ProjectRegistration}};
|
|
12306
12389
|
};
|
|
12307
12390
|
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.ProjectConfig.prototype, {name:{configurable:!0, enumerable:!0, get:function() {
|
|
12308
12391
|
return this.Serializable$has("name") ? this.Serializable$get("name") : null;
|
|
@@ -12316,10 +12399,6 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
12316
12399
|
return this.Serializable$has("registrationState") ? this.Serializable$get("registrationState") : null;
|
|
12317
12400
|
}, set:function(value) {
|
|
12318
12401
|
this.Serializable$set("registrationState", value);
|
|
12319
|
-
}}, trialStatus:{configurable:!0, enumerable:!0, get:function() {
|
|
12320
|
-
return this.Serializable$has("trialStatus") ? this.Serializable$get("trialStatus") : null;
|
|
12321
|
-
}, set:function(value) {
|
|
12322
|
-
this.Serializable$set("trialStatus", value);
|
|
12323
12402
|
}}, vpcServiceControlsRestricted:{configurable:!0, enumerable:!0, get:function() {
|
|
12324
12403
|
return this.Serializable$has("vpcServiceControlsRestricted") ? this.Serializable$get("vpcServiceControlsRestricted") : null;
|
|
12325
12404
|
}, set:function(value) {
|
|
@@ -13478,55 +13557,6 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
13478
13557
|
}, set:function(value) {
|
|
13479
13558
|
this.Serializable$set("tilesPerFile", value);
|
|
13480
13559
|
}}});
|
|
13481
|
-
module$exports$eeapiclient$ee_api_client.TrialStatusParameters = function() {
|
|
13482
|
-
};
|
|
13483
|
-
module$exports$eeapiclient$ee_api_client.TrialStatus = function(parameters) {
|
|
13484
|
-
parameters = parameters === void 0 ? {} : parameters;
|
|
13485
|
-
module$exports$eeapiclient$domain_object.Serializable.call(this);
|
|
13486
|
-
this.Serializable$set("billingAccount", parameters.billingAccount == null ? null : parameters.billingAccount);
|
|
13487
|
-
this.Serializable$set("eligibility", parameters.eligibility == null ? null : parameters.eligibility);
|
|
13488
|
-
this.Serializable$set("state", parameters.state == null ? null : parameters.state);
|
|
13489
|
-
this.Serializable$set("startTime", parameters.startTime == null ? null : parameters.startTime);
|
|
13490
|
-
this.Serializable$set("expiryTime", parameters.expiryTime == null ? null : parameters.expiryTime);
|
|
13491
|
-
this.Serializable$set("subscription", parameters.subscription == null ? null : parameters.subscription);
|
|
13492
|
-
};
|
|
13493
|
-
$jscomp.inherits(module$exports$eeapiclient$ee_api_client.TrialStatus, module$exports$eeapiclient$domain_object.Serializable);
|
|
13494
|
-
module$exports$eeapiclient$ee_api_client.TrialStatus.prototype.getConstructor = function() {
|
|
13495
|
-
return module$exports$eeapiclient$ee_api_client.TrialStatus;
|
|
13496
|
-
};
|
|
13497
|
-
module$exports$eeapiclient$ee_api_client.TrialStatus.prototype.getPartialClassMetadata = function() {
|
|
13498
|
-
return {enums:{eligibility:module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum, state:module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum}, keys:"billingAccount eligibility expiryTime startTime state subscription".split(" ")};
|
|
13499
|
-
};
|
|
13500
|
-
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.TrialStatus.prototype, {billingAccount:{configurable:!0, enumerable:!0, get:function() {
|
|
13501
|
-
return this.Serializable$has("billingAccount") ? this.Serializable$get("billingAccount") : null;
|
|
13502
|
-
}, set:function(value) {
|
|
13503
|
-
this.Serializable$set("billingAccount", value);
|
|
13504
|
-
}}, eligibility:{configurable:!0, enumerable:!0, get:function() {
|
|
13505
|
-
return this.Serializable$has("eligibility") ? this.Serializable$get("eligibility") : null;
|
|
13506
|
-
}, set:function(value) {
|
|
13507
|
-
this.Serializable$set("eligibility", value);
|
|
13508
|
-
}}, expiryTime:{configurable:!0, enumerable:!0, get:function() {
|
|
13509
|
-
return this.Serializable$has("expiryTime") ? this.Serializable$get("expiryTime") : null;
|
|
13510
|
-
}, set:function(value) {
|
|
13511
|
-
this.Serializable$set("expiryTime", value);
|
|
13512
|
-
}}, startTime:{configurable:!0, enumerable:!0, get:function() {
|
|
13513
|
-
return this.Serializable$has("startTime") ? this.Serializable$get("startTime") : null;
|
|
13514
|
-
}, set:function(value) {
|
|
13515
|
-
this.Serializable$set("startTime", value);
|
|
13516
|
-
}}, state:{configurable:!0, enumerable:!0, get:function() {
|
|
13517
|
-
return this.Serializable$has("state") ? this.Serializable$get("state") : null;
|
|
13518
|
-
}, set:function(value) {
|
|
13519
|
-
this.Serializable$set("state", value);
|
|
13520
|
-
}}, subscription:{configurable:!0, enumerable:!0, get:function() {
|
|
13521
|
-
return this.Serializable$has("subscription") ? this.Serializable$get("subscription") : null;
|
|
13522
|
-
}, set:function(value) {
|
|
13523
|
-
this.Serializable$set("subscription", value);
|
|
13524
|
-
}}});
|
|
13525
|
-
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.TrialStatus, {Eligibility:{configurable:!0, enumerable:!0, get:function() {
|
|
13526
|
-
return module$exports$eeapiclient$ee_api_client.TrialStatusEligibilityEnum;
|
|
13527
|
-
}}, State:{configurable:!0, enumerable:!0, get:function() {
|
|
13528
|
-
return module$exports$eeapiclient$ee_api_client.TrialStatusStateEnum;
|
|
13529
|
-
}}});
|
|
13530
13560
|
module$exports$eeapiclient$ee_api_client.UpdateAssetRequestParameters = function() {
|
|
13531
13561
|
};
|
|
13532
13562
|
module$exports$eeapiclient$ee_api_client.UpdateAssetRequest = function(parameters) {
|
|
@@ -14694,11 +14724,11 @@ module$contents$goog$async$FreeList_FreeList.prototype.occupants = function() {
|
|
|
14694
14724
|
return this.occupants_;
|
|
14695
14725
|
};
|
|
14696
14726
|
goog.async.FreeList = module$contents$goog$async$FreeList_FreeList;
|
|
14697
|
-
goog.async.nextTick = function(callback, opt_context
|
|
14727
|
+
goog.async.nextTick = function(callback, opt_context) {
|
|
14698
14728
|
var cb = callback;
|
|
14699
14729
|
opt_context && (cb = goog.bind(callback, opt_context));
|
|
14700
14730
|
cb = goog.async.nextTick.wrapCallback_(cb);
|
|
14701
|
-
goog.async.nextTick.USE_SET_TIMEOUT ? setTimeout(cb, 0) : typeof goog.global.setImmediate === "function" &&
|
|
14731
|
+
goog.async.nextTick.USE_SET_TIMEOUT ? setTimeout(cb, 0) : goog.DEBUG && typeof goog.global.setImmediate === "function" && goog.async.nextTick.useSetImmediate_() ? goog.global.setImmediate(cb) : (goog.async.nextTick.nextTickImpl || (goog.async.nextTick.nextTickImpl = goog.async.nextTick.getNextTickImpl_()), goog.async.nextTick.nextTickImpl(cb));
|
|
14702
14732
|
};
|
|
14703
14733
|
goog.async.nextTick.USE_SET_TIMEOUT = !1;
|
|
14704
14734
|
goog.async.nextTick.useSetImmediate_ = function() {
|
|
@@ -14818,26 +14848,29 @@ goog.debug.asyncStackTag.getTestNameProvider = function() {
|
|
|
14818
14848
|
return module$contents$goog$debug$asyncStackTag_testNameProvider;
|
|
14819
14849
|
};
|
|
14820
14850
|
var module$contents$goog$async$run_ASSUME_NATIVE_PROMISE = goog.FEATURESET_YEAR >= 2018, module$contents$goog$async$run_schedule, module$contents$goog$async$run_workQueueScheduled = !1, module$contents$goog$async$run_workQueue = new module$contents$goog$async$WorkQueue_WorkQueue(), module$contents$goog$async$run_run = function(callback, context) {
|
|
14851
|
+
callback = module$contents$goog$debug$asyncStackTag_wrap(callback, "goog.async.run");
|
|
14821
14852
|
module$contents$goog$async$run_schedule || module$contents$goog$async$run_initializeRunner();
|
|
14822
14853
|
module$contents$goog$async$run_workQueueScheduled || (module$contents$goog$async$run_schedule(), module$contents$goog$async$run_workQueueScheduled = !0);
|
|
14823
|
-
callback = module$contents$goog$debug$asyncStackTag_wrap(callback, "goog.async.run");
|
|
14824
14854
|
module$contents$goog$async$run_workQueue.add(callback, context);
|
|
14825
14855
|
}, module$contents$goog$async$run_initializeRunner = function() {
|
|
14826
14856
|
if (module$contents$goog$async$run_ASSUME_NATIVE_PROMISE || goog.global.Promise && goog.global.Promise.resolve) {
|
|
14827
14857
|
var promise = goog.global.Promise.resolve(void 0);
|
|
14828
14858
|
module$contents$goog$async$run_schedule = function() {
|
|
14829
|
-
promise.then(module$contents$goog$async$
|
|
14859
|
+
promise.then(module$contents$goog$async$run_processWorkQueueInternal);
|
|
14830
14860
|
};
|
|
14831
14861
|
} else {
|
|
14832
14862
|
module$contents$goog$async$run_schedule = function() {
|
|
14833
|
-
(0,goog.async.nextTick)(module$contents$goog$async$
|
|
14863
|
+
(0,goog.async.nextTick)(module$contents$goog$async$run_processWorkQueueInternal);
|
|
14834
14864
|
};
|
|
14835
14865
|
}
|
|
14836
14866
|
};
|
|
14837
14867
|
module$contents$goog$async$run_run.forceNextTick = function(realSetTimeout) {
|
|
14868
|
+
if (goog.DISALLOW_TEST_ONLY_CODE) {
|
|
14869
|
+
throw Error("goog.async.run.forceNextTick is only available with goog.DEBUG");
|
|
14870
|
+
}
|
|
14838
14871
|
module$contents$goog$async$run_schedule = function() {
|
|
14839
|
-
(0,goog.async.nextTick)(module$contents$goog$async$
|
|
14840
|
-
realSetTimeout && realSetTimeout(module$contents$goog$async$
|
|
14872
|
+
(0,goog.async.nextTick)(module$contents$goog$async$run_processWorkQueueInternal);
|
|
14873
|
+
realSetTimeout && realSetTimeout(module$contents$goog$async$run_processWorkQueueInternal);
|
|
14841
14874
|
};
|
|
14842
14875
|
};
|
|
14843
14876
|
goog.DEBUG && (module$contents$goog$async$run_run.resetQueue = function() {
|
|
@@ -14846,7 +14879,7 @@ goog.DEBUG && (module$contents$goog$async$run_run.resetQueue = function() {
|
|
|
14846
14879
|
}, module$contents$goog$async$run_run.resetSchedulerForTest = function() {
|
|
14847
14880
|
module$contents$goog$async$run_initializeRunner();
|
|
14848
14881
|
});
|
|
14849
|
-
module$contents$goog$async$
|
|
14882
|
+
function module$contents$goog$async$run_processWorkQueueInternal() {
|
|
14850
14883
|
for (var item = null; item = module$contents$goog$async$run_workQueue.remove();) {
|
|
14851
14884
|
try {
|
|
14852
14885
|
item.fn.call(item.scope);
|
|
@@ -14856,6 +14889,12 @@ module$contents$goog$async$run_run.processWorkQueue = function() {
|
|
|
14856
14889
|
module$contents$goog$async$run_workQueue.returnUnused(item);
|
|
14857
14890
|
}
|
|
14858
14891
|
module$contents$goog$async$run_workQueueScheduled = !1;
|
|
14892
|
+
}
|
|
14893
|
+
module$contents$goog$async$run_run.processWorkQueue = function() {
|
|
14894
|
+
if (goog.DISALLOW_TEST_ONLY_CODE) {
|
|
14895
|
+
throw Error("goog.async.run.processWorkQueue is only available for tests.");
|
|
14896
|
+
}
|
|
14897
|
+
module$contents$goog$async$run_processWorkQueueInternal();
|
|
14859
14898
|
};
|
|
14860
14899
|
goog.async.run = module$contents$goog$async$run_run;
|
|
14861
14900
|
goog.promise = {};
|
|
@@ -15549,14 +15588,6 @@ var module$contents$goog$asserts$dom_assertIsHtmlElement = function(value) {
|
|
|
15549
15588
|
}, module$contents$goog$asserts$dom_assertIsHtmlElementOfType = function(value, tagName) {
|
|
15550
15589
|
module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && !module$contents$goog$dom$element_isHtmlElementOfType(value, tagName) && goog.asserts.fail("Argument is not an HTML Element with tag name " + (tagName.toString() + "; got: " + module$contents$goog$asserts$dom_debugStringForType(value)));
|
|
15551
15590
|
return value;
|
|
15552
|
-
}, module$contents$goog$asserts$dom_assertIsHtmlAnchorElement = function(value) {
|
|
15553
|
-
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.A);
|
|
15554
|
-
}, module$contents$goog$asserts$dom_assertIsHtmlLinkElement = function(value) {
|
|
15555
|
-
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.LINK);
|
|
15556
|
-
}, module$contents$goog$asserts$dom_assertIsHtmlFormElement = function(value) {
|
|
15557
|
-
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.FORM);
|
|
15558
|
-
}, module$contents$goog$asserts$dom_assertIsHtmlIFrameElement = function(value) {
|
|
15559
|
-
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.IFRAME);
|
|
15560
15591
|
}, module$contents$goog$asserts$dom_debugStringForType = function(value) {
|
|
15561
15592
|
if (goog.isObject(value)) {
|
|
15562
15593
|
try {
|
|
@@ -15574,11 +15605,15 @@ goog.asserts.dom.assertIsElement = function(value) {
|
|
|
15574
15605
|
};
|
|
15575
15606
|
goog.asserts.dom.assertIsHtmlElement = module$contents$goog$asserts$dom_assertIsHtmlElement;
|
|
15576
15607
|
goog.asserts.dom.assertIsHtmlElementOfType = module$contents$goog$asserts$dom_assertIsHtmlElementOfType;
|
|
15577
|
-
goog.asserts.dom.assertIsHtmlAnchorElement =
|
|
15608
|
+
goog.asserts.dom.assertIsHtmlAnchorElement = function(value) {
|
|
15609
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.A);
|
|
15610
|
+
};
|
|
15578
15611
|
goog.asserts.dom.assertIsHtmlButtonElement = function(value) {
|
|
15579
15612
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.BUTTON);
|
|
15580
15613
|
};
|
|
15581
|
-
goog.asserts.dom.assertIsHtmlLinkElement =
|
|
15614
|
+
goog.asserts.dom.assertIsHtmlLinkElement = function(value) {
|
|
15615
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.LINK);
|
|
15616
|
+
};
|
|
15582
15617
|
goog.asserts.dom.assertIsHtmlImageElement = function(value) {
|
|
15583
15618
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.IMG);
|
|
15584
15619
|
};
|
|
@@ -15600,46 +15635,152 @@ goog.asserts.dom.assertIsHtmlCanvasElement = function(value) {
|
|
|
15600
15635
|
goog.asserts.dom.assertIsHtmlEmbedElement = function(value) {
|
|
15601
15636
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.EMBED);
|
|
15602
15637
|
};
|
|
15603
|
-
goog.asserts.dom.assertIsHtmlFormElement =
|
|
15638
|
+
goog.asserts.dom.assertIsHtmlFormElement = function(value) {
|
|
15639
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.FORM);
|
|
15640
|
+
};
|
|
15604
15641
|
goog.asserts.dom.assertIsHtmlFrameElement = function(value) {
|
|
15605
15642
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.FRAME);
|
|
15606
15643
|
};
|
|
15607
|
-
goog.asserts.dom.assertIsHtmlIFrameElement =
|
|
15644
|
+
goog.asserts.dom.assertIsHtmlIFrameElement = function(value) {
|
|
15645
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.IFRAME);
|
|
15646
|
+
};
|
|
15608
15647
|
goog.asserts.dom.assertIsHtmlObjectElement = function(value) {
|
|
15609
15648
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.OBJECT);
|
|
15610
15649
|
};
|
|
15611
15650
|
goog.asserts.dom.assertIsHtmlScriptElement = function(value) {
|
|
15612
15651
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.SCRIPT);
|
|
15613
15652
|
};
|
|
15614
|
-
goog.
|
|
15615
|
-
|
|
15616
|
-
|
|
15617
|
-
var win = goog.dom.asserts.getWindow_(o);
|
|
15618
|
-
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));
|
|
15619
|
-
}
|
|
15620
|
-
return o;
|
|
15653
|
+
goog.math.Coordinate = function(opt_x, opt_y) {
|
|
15654
|
+
this.x = opt_x !== void 0 ? opt_x : 0;
|
|
15655
|
+
this.y = opt_y !== void 0 ? opt_y : 0;
|
|
15621
15656
|
};
|
|
15622
|
-
goog.
|
|
15623
|
-
|
|
15624
|
-
try {
|
|
15625
|
-
return value.constructor.displayName || value.constructor.name || Object.prototype.toString.call(value);
|
|
15626
|
-
} catch (e) {
|
|
15627
|
-
return "<object could not be stringified>";
|
|
15628
|
-
}
|
|
15629
|
-
} else {
|
|
15630
|
-
return value === void 0 ? "undefined" : value === null ? "null" : typeof value;
|
|
15631
|
-
}
|
|
15657
|
+
goog.math.Coordinate.prototype.clone = function() {
|
|
15658
|
+
return new goog.math.Coordinate(this.x, this.y);
|
|
15632
15659
|
};
|
|
15633
|
-
goog.
|
|
15634
|
-
|
|
15635
|
-
|
|
15636
|
-
|
|
15637
|
-
|
|
15638
|
-
|
|
15639
|
-
|
|
15640
|
-
|
|
15641
|
-
|
|
15642
|
-
|
|
15660
|
+
goog.DEBUG && (goog.math.Coordinate.prototype.toString = function() {
|
|
15661
|
+
return "(" + this.x + ", " + this.y + ")";
|
|
15662
|
+
});
|
|
15663
|
+
goog.math.Coordinate.prototype.equals = function(other) {
|
|
15664
|
+
return other instanceof goog.math.Coordinate && goog.math.Coordinate.equals(this, other);
|
|
15665
|
+
};
|
|
15666
|
+
goog.math.Coordinate.equals = function(a, b) {
|
|
15667
|
+
return a == b ? !0 : a && b ? a.x == b.x && a.y == b.y : !1;
|
|
15668
|
+
};
|
|
15669
|
+
goog.math.Coordinate.distance = function(a, b) {
|
|
15670
|
+
var dx = a.x - b.x, dy = a.y - b.y;
|
|
15671
|
+
return Math.sqrt(dx * dx + dy * dy);
|
|
15672
|
+
};
|
|
15673
|
+
goog.math.Coordinate.magnitude = function(a) {
|
|
15674
|
+
return Math.sqrt(a.x * a.x + a.y * a.y);
|
|
15675
|
+
};
|
|
15676
|
+
goog.math.Coordinate.azimuth = function(a) {
|
|
15677
|
+
return goog.math.angle(0, 0, a.x, a.y);
|
|
15678
|
+
};
|
|
15679
|
+
goog.math.Coordinate.squaredDistance = function(a, b) {
|
|
15680
|
+
var dx = a.x - b.x, dy = a.y - b.y;
|
|
15681
|
+
return dx * dx + dy * dy;
|
|
15682
|
+
};
|
|
15683
|
+
goog.math.Coordinate.difference = function(a, b) {
|
|
15684
|
+
return new goog.math.Coordinate(a.x - b.x, a.y - b.y);
|
|
15685
|
+
};
|
|
15686
|
+
goog.math.Coordinate.sum = function(a, b) {
|
|
15687
|
+
return new goog.math.Coordinate(a.x + b.x, a.y + b.y);
|
|
15688
|
+
};
|
|
15689
|
+
goog.math.Coordinate.prototype.ceil = function() {
|
|
15690
|
+
this.x = Math.ceil(this.x);
|
|
15691
|
+
this.y = Math.ceil(this.y);
|
|
15692
|
+
return this;
|
|
15693
|
+
};
|
|
15694
|
+
goog.math.Coordinate.prototype.floor = function() {
|
|
15695
|
+
this.x = Math.floor(this.x);
|
|
15696
|
+
this.y = Math.floor(this.y);
|
|
15697
|
+
return this;
|
|
15698
|
+
};
|
|
15699
|
+
goog.math.Coordinate.prototype.round = function() {
|
|
15700
|
+
this.x = Math.round(this.x);
|
|
15701
|
+
this.y = Math.round(this.y);
|
|
15702
|
+
return this;
|
|
15703
|
+
};
|
|
15704
|
+
goog.math.Coordinate.prototype.translate = function(tx, opt_ty) {
|
|
15705
|
+
tx instanceof goog.math.Coordinate ? (this.x += tx.x, this.y += tx.y) : (this.x += Number(tx), typeof opt_ty === "number" && (this.y += opt_ty));
|
|
15706
|
+
return this;
|
|
15707
|
+
};
|
|
15708
|
+
goog.math.Coordinate.prototype.scale = function(sx, opt_sy) {
|
|
15709
|
+
var sy;
|
|
15710
|
+
this.x *= sx;
|
|
15711
|
+
this.y *= typeof opt_sy === "number" ? opt_sy : sx;
|
|
15712
|
+
return this;
|
|
15713
|
+
};
|
|
15714
|
+
goog.math.Coordinate.prototype.rotateRadians = function(radians, opt_center) {
|
|
15715
|
+
var center = opt_center || new goog.math.Coordinate(0, 0), x = this.x, y = this.y, cos = Math.cos(radians), sin = Math.sin(radians);
|
|
15716
|
+
this.x = (x - center.x) * cos - (y - center.y) * sin + center.x;
|
|
15717
|
+
this.y = (x - center.x) * sin + (y - center.y) * cos + center.y;
|
|
15718
|
+
};
|
|
15719
|
+
goog.math.Coordinate.prototype.rotateDegrees = function(degrees, opt_center) {
|
|
15720
|
+
this.rotateRadians(goog.math.toRadians(degrees), opt_center);
|
|
15721
|
+
};
|
|
15722
|
+
goog.math.Size = function(width, height) {
|
|
15723
|
+
this.width = width;
|
|
15724
|
+
this.height = height;
|
|
15725
|
+
};
|
|
15726
|
+
goog.math.Size.equals = function(a, b) {
|
|
15727
|
+
return a == b ? !0 : a && b ? a.width == b.width && a.height == b.height : !1;
|
|
15728
|
+
};
|
|
15729
|
+
goog.math.Size.prototype.clone = function() {
|
|
15730
|
+
return new goog.math.Size(this.width, this.height);
|
|
15731
|
+
};
|
|
15732
|
+
goog.DEBUG && (goog.math.Size.prototype.toString = function() {
|
|
15733
|
+
return "(" + this.width + " x " + this.height + ")";
|
|
15734
|
+
});
|
|
15735
|
+
goog.math.Size.prototype.getLongest = function() {
|
|
15736
|
+
return Math.max(this.width, this.height);
|
|
15737
|
+
};
|
|
15738
|
+
goog.math.Size.prototype.getShortest = function() {
|
|
15739
|
+
return Math.min(this.width, this.height);
|
|
15740
|
+
};
|
|
15741
|
+
goog.math.Size.prototype.area = function() {
|
|
15742
|
+
return this.width * this.height;
|
|
15743
|
+
};
|
|
15744
|
+
goog.math.Size.prototype.perimeter = function() {
|
|
15745
|
+
return (this.width + this.height) * 2;
|
|
15746
|
+
};
|
|
15747
|
+
goog.math.Size.prototype.aspectRatio = function() {
|
|
15748
|
+
return this.width / this.height;
|
|
15749
|
+
};
|
|
15750
|
+
goog.math.Size.prototype.isEmpty = function() {
|
|
15751
|
+
return !this.area();
|
|
15752
|
+
};
|
|
15753
|
+
goog.math.Size.prototype.ceil = function() {
|
|
15754
|
+
this.width = Math.ceil(this.width);
|
|
15755
|
+
this.height = Math.ceil(this.height);
|
|
15756
|
+
return this;
|
|
15757
|
+
};
|
|
15758
|
+
goog.math.Size.prototype.fitsInside = function(target) {
|
|
15759
|
+
return this.width <= target.width && this.height <= target.height;
|
|
15760
|
+
};
|
|
15761
|
+
goog.math.Size.prototype.floor = function() {
|
|
15762
|
+
this.width = Math.floor(this.width);
|
|
15763
|
+
this.height = Math.floor(this.height);
|
|
15764
|
+
return this;
|
|
15765
|
+
};
|
|
15766
|
+
goog.math.Size.prototype.round = function() {
|
|
15767
|
+
this.width = Math.round(this.width);
|
|
15768
|
+
this.height = Math.round(this.height);
|
|
15769
|
+
return this;
|
|
15770
|
+
};
|
|
15771
|
+
goog.math.Size.prototype.scale = function(sx, opt_sy) {
|
|
15772
|
+
var sy;
|
|
15773
|
+
this.width *= sx;
|
|
15774
|
+
this.height *= typeof opt_sy === "number" ? opt_sy : sx;
|
|
15775
|
+
return this;
|
|
15776
|
+
};
|
|
15777
|
+
goog.math.Size.prototype.scaleToCover = function(target) {
|
|
15778
|
+
var s = this.aspectRatio() <= target.aspectRatio() ? target.width / this.width : target.height / this.height;
|
|
15779
|
+
return this.scale(s);
|
|
15780
|
+
};
|
|
15781
|
+
goog.math.Size.prototype.scaleToFit = function(target) {
|
|
15782
|
+
var s = this.aspectRatio() > target.aspectRatio() ? target.width / this.width : target.height / this.height;
|
|
15783
|
+
return this.scale(s);
|
|
15643
15784
|
};
|
|
15644
15785
|
goog.string.Const = function(opt_token, opt_content) {
|
|
15645
15786
|
this.stringConstValueWithSecurityContract__googStringSecurityPrivate_ = opt_token === goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ && opt_content || "";
|
|
@@ -15661,12 +15802,6 @@ goog.string.Const.from = function(s) {
|
|
|
15661
15802
|
goog.string.Const.TYPE_MARKER_ = {};
|
|
15662
15803
|
goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ = {};
|
|
15663
15804
|
goog.string.Const.EMPTY = goog.string.Const.from("");
|
|
15664
|
-
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"};
|
|
15665
|
-
module$exports$safevalues$for_friends$index.IS_NOT_JAVASCRIPT_URL_PATTERN = module$exports$safevalues$builders$url_builders.IS_NOT_JAVASCRIPT_URL_PATTERN;
|
|
15666
|
-
module$exports$safevalues$for_friends$index.unwrapUrlOrSanitize = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize;
|
|
15667
|
-
safevalues.for_friends = {};
|
|
15668
|
-
safevalues.for_friends.IS_NOT_JAVASCRIPT_URL_PATTERN = module$exports$safevalues$builders$url_builders.IS_NOT_JAVASCRIPT_URL_PATTERN;
|
|
15669
|
-
safevalues.for_friends.unwrapUrlOrSanitize = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize;
|
|
15670
15805
|
var module$exports$safevalues$builders$sensitive_attributes = {}, module$contents$safevalues$builders$sensitive_attributes_module = module$contents$safevalues$builders$sensitive_attributes_module || {id:"third_party/javascript/safevalues/builders/sensitive_attributes.closure.js"};
|
|
15671
15806
|
module$exports$safevalues$builders$sensitive_attributes.SECURITY_SENSITIVE_ATTRIBUTES = "src srcdoc codebase data href rel action formaction sandbox cite poster icon".split(" ");
|
|
15672
15807
|
var module$contents$safevalues$builders$attribute_builders_module = module$contents$safevalues$builders$attribute_builders_module || {id:"third_party/javascript/safevalues/builders/attribute_builders.closure.js"};
|
|
@@ -15781,6 +15916,7 @@ module$exports$safevalues$builders$html_builders.scriptUrlToHtml = function(src,
|
|
|
15781
15916
|
if (options == null ? 0 : options.async) {
|
|
15782
15917
|
stringTag += " async";
|
|
15783
15918
|
}
|
|
15919
|
+
(options == null ? void 0 : options.attributionSrc) !== void 0 && (stringTag += ' attributionsrc="' + module$contents$safevalues$builders$html_builders_htmlEscapeToString(options.attributionSrc) + '"');
|
|
15784
15920
|
if (options == null ? 0 : options.customElement) {
|
|
15785
15921
|
stringTag += ' custom-element="' + module$contents$safevalues$builders$html_builders_htmlEscapeToString(options.customElement) + '"';
|
|
15786
15922
|
}
|
|
@@ -15912,8 +16048,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
|
15912
16048
|
this.replacements = new Map();
|
|
15913
16049
|
};
|
|
15914
16050
|
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
15915
|
-
var $jscomp$this$
|
|
15916
|
-
return $jscomp$this$
|
|
16051
|
+
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) {
|
|
16052
|
+
return $jscomp$this$1018007701$5.replaceFormattingString(openedTags, match);
|
|
15917
16053
|
});
|
|
15918
16054
|
if (openedTags.length !== 0) {
|
|
15919
16055
|
if (goog.DEBUG) {
|
|
@@ -16131,8 +16267,8 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16131
16267
|
if (Array.isArray(token)) {
|
|
16132
16268
|
tokens.push.apply(tokens, (0,$jscomp.arrayFromIterable)(token));
|
|
16133
16269
|
} else {
|
|
16134
|
-
var $jscomp$optchain$
|
|
16135
|
-
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$
|
|
16270
|
+
var $jscomp$optchain$tmpm282935782$0 = void 0;
|
|
16271
|
+
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) {
|
|
16136
16272
|
tokens.push(token);
|
|
16137
16273
|
if (token.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF) {
|
|
16138
16274
|
return tokens;
|
|
@@ -16378,9 +16514,9 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16378
16514
|
repr:repr}) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER, repr:repr};
|
|
16379
16515
|
};
|
|
16380
16516
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputsPointsAreWhitespace = function() {
|
|
16381
|
-
var $jscomp$this$
|
|
16517
|
+
var $jscomp$this$m282935782$26 = this;
|
|
16382
16518
|
return this.nextTwoInputCodePoints().every(function(c) {
|
|
16383
|
-
return $jscomp$this$
|
|
16519
|
+
return $jscomp$this$m282935782$26.isWhitespace(c);
|
|
16384
16520
|
});
|
|
16385
16521
|
};
|
|
16386
16522
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.twoCodePointsAreValidEscape = function(codePoint1, codePoint2) {
|
|
@@ -16487,8 +16623,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16487
16623
|
return null;
|
|
16488
16624
|
}
|
|
16489
16625
|
if (token.lowercaseName === "url") {
|
|
16490
|
-
var nextToken = tokens[i + 1], $jscomp$optchain$
|
|
16491
|
-
if ((($jscomp$optchain$
|
|
16626
|
+
var nextToken = tokens[i + 1], $jscomp$optchain$tmpm1577590584$0 = void 0;
|
|
16627
|
+
if ((($jscomp$optchain$tmpm1577590584$0 = nextToken) == null ? void 0 : $jscomp$optchain$tmpm1577590584$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING) {
|
|
16492
16628
|
return null;
|
|
16493
16629
|
}
|
|
16494
16630
|
var parsedUrl = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(nextToken.value);
|
|
@@ -16511,8 +16647,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16511
16647
|
if (!this.allowKeyframes) {
|
|
16512
16648
|
return null;
|
|
16513
16649
|
}
|
|
16514
|
-
for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$
|
|
16515
|
-
var rule = $jscomp$key$
|
|
16650
|
+
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()) {
|
|
16651
|
+
var rule = $jscomp$key$m1577590584$1$rule.value;
|
|
16516
16652
|
if (rule instanceof CSSKeyframeRule) {
|
|
16517
16653
|
var sanitizedRule = this.sanitizeKeyframeRule(rule);
|
|
16518
16654
|
sanitizedRule && keyframeRules.push(sanitizedRule);
|
|
@@ -16524,8 +16660,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16524
16660
|
if (!this.propertyAllowlist.has(name)) {
|
|
16525
16661
|
return !1;
|
|
16526
16662
|
}
|
|
16527
|
-
for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$
|
|
16528
|
-
var discarder = $jscomp$key$
|
|
16663
|
+
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()) {
|
|
16664
|
+
var discarder = $jscomp$key$m1577590584$2$discarder.value;
|
|
16529
16665
|
if (discarder(name)) {
|
|
16530
16666
|
return !1;
|
|
16531
16667
|
}
|
|
@@ -16540,8 +16676,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16540
16676
|
return sanitizedValue ? module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(name) + ": " + sanitizedValue + (isImportant ? " !important" : "") : null;
|
|
16541
16677
|
};
|
|
16542
16678
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleDeclaration = function(style, calledFromStyleElement) {
|
|
16543
|
-
for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$33 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$
|
|
16544
|
-
var name = $jscomp$key$
|
|
16679
|
+
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()) {
|
|
16680
|
+
var name = $jscomp$key$m1577590584$3$name.value, value = style.getPropertyValue(name), isImportant = style.getPropertyPriority(name) === "important", sanitizedProperty = this.sanitizeProperty(name, value, isImportant, calledFromStyleElement);
|
|
16545
16681
|
sanitizedProperty && (sanitizedProperties += sanitizedProperty + ";");
|
|
16546
16682
|
}
|
|
16547
16683
|
return sanitizedProperties;
|
|
@@ -16555,8 +16691,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16555
16691
|
return selector + " { " + sanitizedProperties + " }";
|
|
16556
16692
|
};
|
|
16557
16693
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleElement = function(cssText) {
|
|
16558
|
-
for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(rules), $jscomp$key$
|
|
16559
|
-
var rule = $jscomp$key$
|
|
16694
|
+
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()) {
|
|
16695
|
+
var rule = $jscomp$key$m1577590584$4$rule.value;
|
|
16560
16696
|
if (rule instanceof CSSStyleRule) {
|
|
16561
16697
|
var sanitizedRule = this.sanitizeStyleRule(rule);
|
|
16562
16698
|
sanitizedRule && output.push(sanitizedRule);
|
|
@@ -16717,8 +16853,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16717
16853
|
return fragment;
|
|
16718
16854
|
};
|
|
16719
16855
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
16720
|
-
for (var $jscomp$this$
|
|
16721
|
-
return $jscomp$this$
|
|
16856
|
+
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) {
|
|
16857
|
+
return $jscomp$this$m1085474118$13.nodeFilter(n);
|
|
16722
16858
|
}), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; currentNode !== null;) {
|
|
16723
16859
|
var sanitizedNode = void 0;
|
|
16724
16860
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
@@ -16753,8 +16889,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16753
16889
|
return this.createTextNode(textNode.data);
|
|
16754
16890
|
};
|
|
16755
16891
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
16756
|
-
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$
|
|
16757
|
-
var $jscomp$destructuring$var31 = $jscomp$key$
|
|
16892
|
+
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()) {
|
|
16893
|
+
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);
|
|
16758
16894
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
16759
16895
|
switch(policy.policyAction) {
|
|
16760
16896
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -16786,9 +16922,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16786
16922
|
break;
|
|
16787
16923
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:
|
|
16788
16924
|
if (this.resourceUrlPolicy) {
|
|
16789
|
-
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$
|
|
16925
|
+
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 =
|
|
16790
16926
|
$jscomp$iter$35.next()) {
|
|
16791
|
-
var part = $jscomp$key$
|
|
16927
|
+
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);
|
|
16792
16928
|
sanitizedUrl$jscomp$0 && sanitizedSrcset.parts.push({url:sanitizedUrl$jscomp$0.toString(), descriptor:part.descriptor});
|
|
16793
16929
|
}
|
|
16794
16930
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(sanitizedSrcset));
|
|
@@ -16832,8 +16968,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16832
16968
|
if (!conditions) {
|
|
16833
16969
|
return !0;
|
|
16834
16970
|
}
|
|
16835
|
-
for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$
|
|
16836
|
-
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
16971
|
+
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()) {
|
|
16972
|
+
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;
|
|
16837
16973
|
if (value && !expectedValues.has(value)) {
|
|
16838
16974
|
return !1;
|
|
16839
16975
|
}
|
|
@@ -16848,8 +16984,8 @@ function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_Srcse
|
|
|
16848
16984
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.Srcset = function() {
|
|
16849
16985
|
};
|
|
16850
16986
|
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(srcset) {
|
|
16851
|
-
for (var parts = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$
|
|
16852
|
-
var $jscomp$destructuring$var34 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
16987
|
+
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()) {
|
|
16988
|
+
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;
|
|
16853
16989
|
parts.push({url:url__tsickle_destructured_3, descriptor:descriptor__tsickle_destructured_4});
|
|
16854
16990
|
}
|
|
16855
16991
|
return {parts:parts};
|
|
@@ -16906,8 +17042,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16906
17042
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE;
|
|
16907
17043
|
};
|
|
16908
17044
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
|
|
16909
|
-
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$
|
|
16910
|
-
var element = $jscomp$key$
|
|
17045
|
+
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()) {
|
|
17046
|
+
var element = $jscomp$key$435282654$21$element.value;
|
|
16911
17047
|
element = element.toUpperCase();
|
|
16912
17048
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
16913
17049
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -16925,8 +17061,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16925
17061
|
throw Error("Element: " + element + " is not a custom element");
|
|
16926
17062
|
}
|
|
16927
17063
|
if (allowedAttributes) {
|
|
16928
|
-
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$
|
|
16929
|
-
elementPolicy.set($jscomp$key$
|
|
17064
|
+
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()) {
|
|
17065
|
+
elementPolicy.set($jscomp$key$435282654$22$attribute.value.toLowerCase(), {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
16930
17066
|
}
|
|
16931
17067
|
allowedElementPolicies.set(element, elementPolicy);
|
|
16932
17068
|
} else {
|
|
@@ -16936,15 +17072,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16936
17072
|
return this;
|
|
16937
17073
|
};
|
|
16938
17074
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
|
|
16939
|
-
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$
|
|
16940
|
-
var attribute = $jscomp$key$
|
|
17075
|
+
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()) {
|
|
17076
|
+
var attribute = $jscomp$key$435282654$23$attribute.value;
|
|
16941
17077
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
16942
17078
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
16943
17079
|
}
|
|
16944
|
-
for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$
|
|
16945
|
-
for (var $jscomp$destructuring$var37 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17080
|
+
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()) {
|
|
17081
|
+
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$ =
|
|
16946
17082
|
$jscomp$iter$42.next()) {
|
|
16947
|
-
var $jscomp$destructuring$var39 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17083
|
+
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;
|
|
16948
17084
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
16949
17085
|
}
|
|
16950
17086
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -16953,8 +17089,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16953
17089
|
return this;
|
|
16954
17090
|
};
|
|
16955
17091
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
|
|
16956
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$
|
|
16957
|
-
var attribute = $jscomp$key$
|
|
17092
|
+
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()) {
|
|
17093
|
+
var attribute = $jscomp$key$435282654$26$attribute.value;
|
|
16958
17094
|
if (attribute.indexOf("data-") !== 0) {
|
|
16959
17095
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
16960
17096
|
}
|
|
@@ -17016,7 +17152,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17016
17152
|
return this;
|
|
17017
17153
|
};
|
|
17018
17154
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.build = function() {
|
|
17019
|
-
var $jscomp$this$
|
|
17155
|
+
var $jscomp$this$435282654$17 = this;
|
|
17020
17156
|
this.extendSanitizerTableForCss();
|
|
17021
17157
|
var propertyDiscarders = [];
|
|
17022
17158
|
this.animationsAllowed || propertyDiscarders.push(function(property) {
|
|
@@ -17026,9 +17162,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17026
17162
|
return /^transition(-|$)/.test(property);
|
|
17027
17163
|
});
|
|
17028
17164
|
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(this.sanitizerTable, module$exports$safevalues$internals$secrets.secretToken, function(cssText) {
|
|
17029
|
-
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$
|
|
17165
|
+
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);
|
|
17030
17166
|
}, function(cssText) {
|
|
17031
|
-
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$
|
|
17167
|
+
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);
|
|
17032
17168
|
}, this.resourceUrlPolicy);
|
|
17033
17169
|
};
|
|
17034
17170
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.extendSanitizerTableForCss = function() {
|
|
@@ -17278,12 +17414,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
17278
17414
|
}
|
|
17279
17415
|
try {
|
|
17280
17416
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
17281
|
-
} catch ($jscomp$unused$catch$
|
|
17417
|
+
} catch ($jscomp$unused$catch$696273141$0) {
|
|
17282
17418
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
17283
17419
|
}
|
|
17284
17420
|
try {
|
|
17285
17421
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
17286
|
-
} catch ($jscomp$unused$catch$
|
|
17422
|
+
} catch ($jscomp$unused$catch$696273141$1) {
|
|
17287
17423
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
17288
17424
|
}
|
|
17289
17425
|
return !1;
|
|
@@ -17366,7 +17502,6 @@ module$exports$safevalues$index.EMPTY_SCRIPT = module$exports$safevalues$interna
|
|
|
17366
17502
|
module$exports$safevalues$index.SafeScript = module$exports$safevalues$internals$script_impl.SafeScript;
|
|
17367
17503
|
module$exports$safevalues$index.isScript = module$contents$safevalues$internals$script_impl_isScript;
|
|
17368
17504
|
module$exports$safevalues$index.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
|
|
17369
|
-
module$exports$safevalues$index.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
17370
17505
|
module$exports$safevalues$index.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
17371
17506
|
module$exports$safevalues$index.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
17372
17507
|
module$exports$safevalues$index.SafeStyleSheet = module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet;
|
|
@@ -17443,9 +17578,9 @@ safevalues.EMPTY_SCRIPT = module$exports$safevalues$internals$script_impl.EMPTY_
|
|
|
17443
17578
|
safevalues.SafeScript = module$exports$safevalues$internals$script_impl.SafeScript;
|
|
17444
17579
|
safevalues.isScript = module$contents$safevalues$internals$script_impl_isScript;
|
|
17445
17580
|
safevalues.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
|
|
17446
|
-
safevalues.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
17447
17581
|
safevalues.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
17448
17582
|
safevalues.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
17583
|
+
safevalues.SafeStyle = module$exports$safevalues$index.SafeStyle;
|
|
17449
17584
|
safevalues.SafeStyleSheet = module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet;
|
|
17450
17585
|
safevalues.isStyleSheet = module$contents$safevalues$internals$style_sheet_impl_isStyleSheet;
|
|
17451
17586
|
safevalues.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
|
|
@@ -17455,230 +17590,6 @@ safevalues.SafeUrl = module$exports$safevalues$internals$url_impl.SafeUrl;
|
|
|
17455
17590
|
safevalues.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
|
|
17456
17591
|
safevalues.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
17457
17592
|
safevalues.reportOnlyHtmlPassthrough = module$contents$safevalues$reporting$reporting_reportOnlyHtmlPassthrough;
|
|
17458
|
-
goog.dom.safe = {};
|
|
17459
|
-
goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_ = {MATH:!0, SCRIPT:!0, STYLE:!0, SVG:!0};
|
|
17460
|
-
goog.dom.safe.setInnerHtml = function(elem, html) {
|
|
17461
|
-
if (module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && elem.tagName && goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[elem.tagName.toUpperCase()]) {
|
|
17462
|
-
throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of " + elem.tagName + ".");
|
|
17463
|
-
}
|
|
17464
|
-
elem.innerHTML = module$exports$safevalues$index.unwrapHtml(html);
|
|
17465
|
-
};
|
|
17466
|
-
goog.dom.safe.setInnerHtmlFromConstant = function(element, constHtml) {
|
|
17467
|
-
goog.dom.safe.setInnerHtml(element, module$contents$safevalues$restricted$reviewed_htmlSafeByReview(goog.string.Const.unwrap(constHtml), {justification:"Constant HTML to be immediatelly used."}));
|
|
17468
|
-
};
|
|
17469
|
-
goog.dom.safe.setFormElementAction = function(form, url) {
|
|
17470
|
-
module$contents$goog$asserts$dom_assertIsHtmlFormElement(form).action = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
|
|
17471
|
-
};
|
|
17472
|
-
goog.dom.safe.documentWrite = function(doc, html) {
|
|
17473
|
-
doc.write(module$exports$safevalues$index.unwrapHtml(html));
|
|
17474
|
-
};
|
|
17475
|
-
goog.dom.safe.setAnchorHref = function(anchor, url) {
|
|
17476
|
-
module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(anchor);
|
|
17477
|
-
anchor.href = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
|
|
17478
|
-
};
|
|
17479
|
-
goog.dom.safe.setIframeSrc = function(iframe, url) {
|
|
17480
|
-
module$contents$goog$asserts$dom_assertIsHtmlIFrameElement(iframe);
|
|
17481
|
-
iframe.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString();
|
|
17482
|
-
};
|
|
17483
|
-
goog.dom.safe.setLinkHrefAndRel = function(link, url, rel) {
|
|
17484
|
-
module$contents$goog$asserts$dom_assertIsHtmlLinkElement(link);
|
|
17485
|
-
link.rel = rel;
|
|
17486
|
-
if (goog.string.internal.caseInsensitiveContains(rel, "stylesheet")) {
|
|
17487
|
-
goog.asserts.assert(url instanceof module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl, 'URL must be TrustedResourceUrl because "rel" contains "stylesheet"');
|
|
17488
|
-
link.href = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString();
|
|
17489
|
-
var nonce = goog.dom.safe.getStyleNonce(link.ownerDocument && link.ownerDocument.defaultView);
|
|
17490
|
-
nonce && link.setAttribute("nonce", nonce);
|
|
17491
|
-
} else {
|
|
17492
|
-
link.href = url instanceof module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl ? module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString() : goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
|
|
17493
|
-
}
|
|
17494
|
-
};
|
|
17495
|
-
goog.dom.safe.setLocationHref = function(loc, url) {
|
|
17496
|
-
goog.dom.asserts.assertIsLocation(loc);
|
|
17497
|
-
loc.href = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
|
|
17498
|
-
};
|
|
17499
|
-
goog.dom.safe.assignLocation = function(loc, url) {
|
|
17500
|
-
goog.dom.asserts.assertIsLocation(loc);
|
|
17501
|
-
loc.assign(goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url));
|
|
17502
|
-
};
|
|
17503
|
-
goog.dom.safe.replaceLocation = function(loc, url) {
|
|
17504
|
-
loc.replace(goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url));
|
|
17505
|
-
};
|
|
17506
|
-
goog.dom.safe.openInWindow = function(url, opt_openerWin, opt_name, opt_specs) {
|
|
17507
|
-
var sanitizedUrl = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url), win = opt_openerWin || goog.global, name = opt_name instanceof goog.string.Const ? goog.string.Const.unwrap(opt_name) : opt_name || "";
|
|
17508
|
-
return opt_specs !== void 0 ? win.open(sanitizedUrl, name, opt_specs) : win.open(sanitizedUrl, name);
|
|
17509
|
-
};
|
|
17510
|
-
goog.dom.safe.parseFromString = function(parser, content, type) {
|
|
17511
|
-
return parser.parseFromString(module$exports$safevalues$index.unwrapHtml(content), type);
|
|
17512
|
-
};
|
|
17513
|
-
goog.dom.safe.createImageFromBlob = function(blob) {
|
|
17514
|
-
if (!/^image\/.*/g.test(blob.type)) {
|
|
17515
|
-
throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");
|
|
17516
|
-
}
|
|
17517
|
-
var objectUrl = goog.global.URL.createObjectURL(blob), image = new goog.global.Image(), revokeFn = function() {
|
|
17518
|
-
goog.global.URL.revokeObjectURL(objectUrl);
|
|
17519
|
-
};
|
|
17520
|
-
image.onload = revokeFn;
|
|
17521
|
-
image.onerror = revokeFn;
|
|
17522
|
-
image.src = objectUrl;
|
|
17523
|
-
return image;
|
|
17524
|
-
};
|
|
17525
|
-
goog.dom.safe.getScriptNonce = function(opt_window) {
|
|
17526
|
-
return goog.dom.safe.getNonce_("script[nonce]", opt_window);
|
|
17527
|
-
};
|
|
17528
|
-
goog.dom.safe.getStyleNonce = function(opt_window) {
|
|
17529
|
-
return goog.dom.safe.getNonce_('style[nonce],link[rel="stylesheet"][nonce]', opt_window);
|
|
17530
|
-
};
|
|
17531
|
-
goog.dom.safe.NONCE_PATTERN_ = /^[\w+/_-]+[=]{0,2}$/;
|
|
17532
|
-
goog.dom.safe.getNonce_ = function(selector, win) {
|
|
17533
|
-
var doc = (win || goog.global).document;
|
|
17534
|
-
if (!doc.querySelector) {
|
|
17535
|
-
return "";
|
|
17536
|
-
}
|
|
17537
|
-
var el = doc.querySelector(selector);
|
|
17538
|
-
if (el) {
|
|
17539
|
-
var nonce = el.nonce || el.getAttribute("nonce");
|
|
17540
|
-
if (nonce && goog.dom.safe.NONCE_PATTERN_.test(nonce)) {
|
|
17541
|
-
return nonce;
|
|
17542
|
-
}
|
|
17543
|
-
}
|
|
17544
|
-
return "";
|
|
17545
|
-
};
|
|
17546
|
-
goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_ = function(url) {
|
|
17547
|
-
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
17548
|
-
return goog.asserts.assert(sanitizedUrl !== void 0, "%s is a javascript: URL", url) ? sanitizedUrl : module$exports$safevalues$internals$url_impl.INNOCUOUS_URL.toString();
|
|
17549
|
-
};
|
|
17550
|
-
goog.math.Coordinate = function(opt_x, opt_y) {
|
|
17551
|
-
this.x = opt_x !== void 0 ? opt_x : 0;
|
|
17552
|
-
this.y = opt_y !== void 0 ? opt_y : 0;
|
|
17553
|
-
};
|
|
17554
|
-
goog.math.Coordinate.prototype.clone = function() {
|
|
17555
|
-
return new goog.math.Coordinate(this.x, this.y);
|
|
17556
|
-
};
|
|
17557
|
-
goog.DEBUG && (goog.math.Coordinate.prototype.toString = function() {
|
|
17558
|
-
return "(" + this.x + ", " + this.y + ")";
|
|
17559
|
-
});
|
|
17560
|
-
goog.math.Coordinate.prototype.equals = function(other) {
|
|
17561
|
-
return other instanceof goog.math.Coordinate && goog.math.Coordinate.equals(this, other);
|
|
17562
|
-
};
|
|
17563
|
-
goog.math.Coordinate.equals = function(a, b) {
|
|
17564
|
-
return a == b ? !0 : a && b ? a.x == b.x && a.y == b.y : !1;
|
|
17565
|
-
};
|
|
17566
|
-
goog.math.Coordinate.distance = function(a, b) {
|
|
17567
|
-
var dx = a.x - b.x, dy = a.y - b.y;
|
|
17568
|
-
return Math.sqrt(dx * dx + dy * dy);
|
|
17569
|
-
};
|
|
17570
|
-
goog.math.Coordinate.magnitude = function(a) {
|
|
17571
|
-
return Math.sqrt(a.x * a.x + a.y * a.y);
|
|
17572
|
-
};
|
|
17573
|
-
goog.math.Coordinate.azimuth = function(a) {
|
|
17574
|
-
return goog.math.angle(0, 0, a.x, a.y);
|
|
17575
|
-
};
|
|
17576
|
-
goog.math.Coordinate.squaredDistance = function(a, b) {
|
|
17577
|
-
var dx = a.x - b.x, dy = a.y - b.y;
|
|
17578
|
-
return dx * dx + dy * dy;
|
|
17579
|
-
};
|
|
17580
|
-
goog.math.Coordinate.difference = function(a, b) {
|
|
17581
|
-
return new goog.math.Coordinate(a.x - b.x, a.y - b.y);
|
|
17582
|
-
};
|
|
17583
|
-
goog.math.Coordinate.sum = function(a, b) {
|
|
17584
|
-
return new goog.math.Coordinate(a.x + b.x, a.y + b.y);
|
|
17585
|
-
};
|
|
17586
|
-
goog.math.Coordinate.prototype.ceil = function() {
|
|
17587
|
-
this.x = Math.ceil(this.x);
|
|
17588
|
-
this.y = Math.ceil(this.y);
|
|
17589
|
-
return this;
|
|
17590
|
-
};
|
|
17591
|
-
goog.math.Coordinate.prototype.floor = function() {
|
|
17592
|
-
this.x = Math.floor(this.x);
|
|
17593
|
-
this.y = Math.floor(this.y);
|
|
17594
|
-
return this;
|
|
17595
|
-
};
|
|
17596
|
-
goog.math.Coordinate.prototype.round = function() {
|
|
17597
|
-
this.x = Math.round(this.x);
|
|
17598
|
-
this.y = Math.round(this.y);
|
|
17599
|
-
return this;
|
|
17600
|
-
};
|
|
17601
|
-
goog.math.Coordinate.prototype.translate = function(tx, opt_ty) {
|
|
17602
|
-
tx instanceof goog.math.Coordinate ? (this.x += tx.x, this.y += tx.y) : (this.x += Number(tx), typeof opt_ty === "number" && (this.y += opt_ty));
|
|
17603
|
-
return this;
|
|
17604
|
-
};
|
|
17605
|
-
goog.math.Coordinate.prototype.scale = function(sx, opt_sy) {
|
|
17606
|
-
var sy;
|
|
17607
|
-
this.x *= sx;
|
|
17608
|
-
this.y *= typeof opt_sy === "number" ? opt_sy : sx;
|
|
17609
|
-
return this;
|
|
17610
|
-
};
|
|
17611
|
-
goog.math.Coordinate.prototype.rotateRadians = function(radians, opt_center) {
|
|
17612
|
-
var center = opt_center || new goog.math.Coordinate(0, 0), x = this.x, y = this.y, cos = Math.cos(radians), sin = Math.sin(radians);
|
|
17613
|
-
this.x = (x - center.x) * cos - (y - center.y) * sin + center.x;
|
|
17614
|
-
this.y = (x - center.x) * sin + (y - center.y) * cos + center.y;
|
|
17615
|
-
};
|
|
17616
|
-
goog.math.Coordinate.prototype.rotateDegrees = function(degrees, opt_center) {
|
|
17617
|
-
this.rotateRadians(goog.math.toRadians(degrees), opt_center);
|
|
17618
|
-
};
|
|
17619
|
-
goog.math.Size = function(width, height) {
|
|
17620
|
-
this.width = width;
|
|
17621
|
-
this.height = height;
|
|
17622
|
-
};
|
|
17623
|
-
goog.math.Size.equals = function(a, b) {
|
|
17624
|
-
return a == b ? !0 : a && b ? a.width == b.width && a.height == b.height : !1;
|
|
17625
|
-
};
|
|
17626
|
-
goog.math.Size.prototype.clone = function() {
|
|
17627
|
-
return new goog.math.Size(this.width, this.height);
|
|
17628
|
-
};
|
|
17629
|
-
goog.DEBUG && (goog.math.Size.prototype.toString = function() {
|
|
17630
|
-
return "(" + this.width + " x " + this.height + ")";
|
|
17631
|
-
});
|
|
17632
|
-
goog.math.Size.prototype.getLongest = function() {
|
|
17633
|
-
return Math.max(this.width, this.height);
|
|
17634
|
-
};
|
|
17635
|
-
goog.math.Size.prototype.getShortest = function() {
|
|
17636
|
-
return Math.min(this.width, this.height);
|
|
17637
|
-
};
|
|
17638
|
-
goog.math.Size.prototype.area = function() {
|
|
17639
|
-
return this.width * this.height;
|
|
17640
|
-
};
|
|
17641
|
-
goog.math.Size.prototype.perimeter = function() {
|
|
17642
|
-
return (this.width + this.height) * 2;
|
|
17643
|
-
};
|
|
17644
|
-
goog.math.Size.prototype.aspectRatio = function() {
|
|
17645
|
-
return this.width / this.height;
|
|
17646
|
-
};
|
|
17647
|
-
goog.math.Size.prototype.isEmpty = function() {
|
|
17648
|
-
return !this.area();
|
|
17649
|
-
};
|
|
17650
|
-
goog.math.Size.prototype.ceil = function() {
|
|
17651
|
-
this.width = Math.ceil(this.width);
|
|
17652
|
-
this.height = Math.ceil(this.height);
|
|
17653
|
-
return this;
|
|
17654
|
-
};
|
|
17655
|
-
goog.math.Size.prototype.fitsInside = function(target) {
|
|
17656
|
-
return this.width <= target.width && this.height <= target.height;
|
|
17657
|
-
};
|
|
17658
|
-
goog.math.Size.prototype.floor = function() {
|
|
17659
|
-
this.width = Math.floor(this.width);
|
|
17660
|
-
this.height = Math.floor(this.height);
|
|
17661
|
-
return this;
|
|
17662
|
-
};
|
|
17663
|
-
goog.math.Size.prototype.round = function() {
|
|
17664
|
-
this.width = Math.round(this.width);
|
|
17665
|
-
this.height = Math.round(this.height);
|
|
17666
|
-
return this;
|
|
17667
|
-
};
|
|
17668
|
-
goog.math.Size.prototype.scale = function(sx, opt_sy) {
|
|
17669
|
-
var sy;
|
|
17670
|
-
this.width *= sx;
|
|
17671
|
-
this.height *= typeof opt_sy === "number" ? opt_sy : sx;
|
|
17672
|
-
return this;
|
|
17673
|
-
};
|
|
17674
|
-
goog.math.Size.prototype.scaleToCover = function(target) {
|
|
17675
|
-
var s = this.aspectRatio() <= target.aspectRatio() ? target.width / this.width : target.height / this.height;
|
|
17676
|
-
return this.scale(s);
|
|
17677
|
-
};
|
|
17678
|
-
goog.math.Size.prototype.scaleToFit = function(target) {
|
|
17679
|
-
var s = this.aspectRatio() > target.aspectRatio() ? target.width / this.width : target.height / this.height;
|
|
17680
|
-
return this.scale(s);
|
|
17681
|
-
};
|
|
17682
17593
|
goog.dom.Appendable = {};
|
|
17683
17594
|
goog.dom.ASSUME_QUIRKS_MODE = !1;
|
|
17684
17595
|
goog.dom.ASSUME_STANDARDS_MODE = !1;
|
|
@@ -17889,7 +17800,7 @@ goog.dom.safeHtmlToNode = function(html) {
|
|
|
17889
17800
|
};
|
|
17890
17801
|
goog.dom.safeHtmlToNode_ = function(doc, html) {
|
|
17891
17802
|
var tempDiv = goog.dom.createElement_(doc, goog.dom.TagName.DIV);
|
|
17892
|
-
|
|
17803
|
+
module$exports$safevalues$dom$index.setElementInnerHtml(tempDiv, html);
|
|
17893
17804
|
return goog.dom.childrenToNode_(doc, tempDiv);
|
|
17894
17805
|
};
|
|
17895
17806
|
goog.dom.childrenToNode_ = function(doc, tempDiv) {
|
|
@@ -18773,7 +18684,7 @@ goog.net.jsloader.safeLoad = function(trustedUri, opt_options) {
|
|
|
18773
18684
|
var properties = options.attributes || {};
|
|
18774
18685
|
module$contents$goog$object_extend(properties, {type:"text/javascript", charset:"UTF-8"});
|
|
18775
18686
|
goog.dom.setProperties(script, properties);
|
|
18776
|
-
module$exports$safevalues$dom$
|
|
18687
|
+
module$exports$safevalues$dom$index.setScriptSrc(script, trustedUri);
|
|
18777
18688
|
goog.net.jsloader.getScriptParentElement_(doc).appendChild(script);
|
|
18778
18689
|
return deferred;
|
|
18779
18690
|
};
|
|
@@ -19443,7 +19354,7 @@ var $jscomp$templatelit$m1153655765$99 = $jscomp.createTemplateTagFirstArg(["htt
|
|
|
19443
19354
|
ee.apiclient = {};
|
|
19444
19355
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19445
19356
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19446
|
-
ee.apiclient.API_CLIENT_VERSION = "1.1.
|
|
19357
|
+
ee.apiclient.API_CLIENT_VERSION = "1.1.4";
|
|
19447
19358
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19448
19359
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19449
19360
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19741,8 +19652,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19741
19652
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19742
19653
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19743
19654
|
method = method || "POST";
|
|
19744
|
-
var headers = {"Content-Type":contentType}, version = "1.1.
|
|
19745
|
-
version === "1.1.
|
|
19655
|
+
var headers = {"Content-Type":contentType}, version = "1.1.4";
|
|
19656
|
+
version === "1.1.4" && (version = "latest");
|
|
19746
19657
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19747
19658
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
19748
19659
|
if (authToken != null) {
|
|
@@ -19814,19 +19725,14 @@ module$contents$ee$apiclient_apiclient.handleResponse_ = function(status, getRes
|
|
|
19814
19725
|
var response = JSON.parse(body);
|
|
19815
19726
|
return !(goog.isObject(response) && "error" in response && "message" in response.error) || detectPartialError && detectPartialError(response) ? {parsed:response} : response.error.message;
|
|
19816
19727
|
} catch (e) {
|
|
19817
|
-
return "Invalid JSON: " + body;
|
|
19728
|
+
return body === "" ? "" : "Invalid JSON: " + body;
|
|
19818
19729
|
}
|
|
19819
19730
|
}, statusError = function(status) {
|
|
19820
|
-
|
|
19821
|
-
return "Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";
|
|
19822
|
-
}
|
|
19823
|
-
if (status < 200 || status >= 300) {
|
|
19824
|
-
return "Server returned HTTP code: " + status + " for " + method + " " + url;
|
|
19825
|
-
}
|
|
19731
|
+
return status === 0 ? "Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings." : status < 200 || status >= 300 ? "Server returned HTTP code: " + status + " for " + method + " " + url : "";
|
|
19826
19732
|
}, errorMessage, data, typeHeader = getResponseHeader("Content-Type") || "application/json", contentType = typeHeader.replace(/;.*/, "");
|
|
19827
19733
|
if (contentType === "application/json" || contentType === "text/json") {
|
|
19828
19734
|
var response = parseJson(responseText);
|
|
19829
|
-
response.parsed ? data = response.parsed : errorMessage = response;
|
|
19735
|
+
response.parsed ? data = response.parsed : errorMessage = response || statusError(status) || "Response was too large to parse. Hint: Use limit() to fetch less elements of a collection.";
|
|
19830
19736
|
} else if (contentType === "multipart/mixed") {
|
|
19831
19737
|
data = {};
|
|
19832
19738
|
var errors = [];
|