@google/earthengine 1.1.2 → 1.1.3
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 +292 -489
- package/build/ee_api_js.js +42 -42
- package/build/ee_api_js_debug.js +269 -466
- package/build/ee_api_js_npm.js +292 -489
- package/build/main.js +292 -489
- 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;
|
|
@@ -3297,9 +3298,9 @@ function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr
|
|
|
3297
3298
|
}
|
|
3298
3299
|
}
|
|
3299
3300
|
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$
|
|
3301
|
+
var $jscomp$tmp$error$494508883$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.Intent[intent]);
|
|
3302
|
+
this.message = $jscomp$tmp$error$494508883$1.message;
|
|
3303
|
+
"stack" in $jscomp$tmp$error$494508883$1 && (this.stack = $jscomp$tmp$error$494508883$1.stack);
|
|
3303
3304
|
this.type = type;
|
|
3304
3305
|
this.intent = intent;
|
|
3305
3306
|
this.name = "TypeCannotBeUsedWithIntentError";
|
|
@@ -3406,7 +3407,7 @@ module$exports$safevalues$dom$globals$window.getStyleNonce = function(win) {
|
|
|
3406
3407
|
return module$contents$safevalues$dom$globals$window_getNonceFor("style", win);
|
|
3407
3408
|
};
|
|
3408
3409
|
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, win) {
|
|
3409
|
-
var $jscomp$optchain$
|
|
3410
|
+
var $jscomp$optchain$tmpm1987982378$0, $jscomp$optchain$tmpm1987982378$1, el = ($jscomp$optchain$tmpm1987982378$1 = ($jscomp$optchain$tmpm1987982378$0 = win.document).querySelector) == null ? void 0 : $jscomp$optchain$tmpm1987982378$1.call($jscomp$optchain$tmpm1987982378$0, elementName + "[nonce]");
|
|
3410
3411
|
return el ? el.nonce || el.getAttribute("nonce") || "" : "";
|
|
3411
3412
|
}
|
|
3412
3413
|
;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"};
|
|
@@ -4681,9 +4682,9 @@ function module$contents$safevalues$dom$globals$dom_parser_parseFromString(parse
|
|
|
4681
4682
|
module$exports$safevalues$dom$globals$dom_parser.parseFromString = module$contents$safevalues$dom$globals$dom_parser_parseFromString;
|
|
4682
4683
|
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
4684
|
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$
|
|
4685
|
+
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.");
|
|
4686
|
+
this.message = $jscomp$tmp$error$1153895636$25.message;
|
|
4687
|
+
"stack" in $jscomp$tmp$error$1153895636$25 && (this.stack = $jscomp$tmp$error$1153895636$25.stack);
|
|
4687
4688
|
this.url = url;
|
|
4688
4689
|
this.typeName = typeName;
|
|
4689
4690
|
this.contentType = contentType;
|
|
@@ -4695,48 +4696,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
|
|
|
4695
4696
|
return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
|
|
4696
4697
|
}
|
|
4697
4698
|
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$
|
|
4699
|
+
var response, $jscomp$optchain$tmp1153895636$0, $jscomp$optchain$tmp1153895636$1, $jscomp$optchain$tmp1153895636$2, mimeType;
|
|
4700
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$29) {
|
|
4701
|
+
if ($jscomp$generator$context$1153895636$29.nextAddress == 1) {
|
|
4702
|
+
return $jscomp$generator$context$1153895636$29.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
|
|
4703
|
+
}
|
|
4704
|
+
response = $jscomp$generator$context$1153895636$29.yieldResult;
|
|
4705
|
+
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();
|
|
4706
|
+
return $jscomp$generator$context$1153895636$29.return({html:function() {
|
|
4706
4707
|
var text;
|
|
4707
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4708
|
-
if ($jscomp$generator$context$
|
|
4708
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$26) {
|
|
4709
|
+
if ($jscomp$generator$context$1153895636$26.nextAddress == 1) {
|
|
4709
4710
|
if (mimeType !== "text/html") {
|
|
4710
4711
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
|
|
4711
4712
|
}
|
|
4712
|
-
return $jscomp$generator$context$
|
|
4713
|
+
return $jscomp$generator$context$1153895636$26.yield(response.text(), 2);
|
|
4713
4714
|
}
|
|
4714
|
-
text = $jscomp$generator$context$
|
|
4715
|
-
return $jscomp$generator$context$
|
|
4715
|
+
text = $jscomp$generator$context$1153895636$26.yieldResult;
|
|
4716
|
+
return $jscomp$generator$context$1153895636$26.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
|
|
4716
4717
|
});
|
|
4717
4718
|
}, script:function() {
|
|
4718
4719
|
var text;
|
|
4719
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4720
|
-
if ($jscomp$generator$context$
|
|
4720
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$27) {
|
|
4721
|
+
if ($jscomp$generator$context$1153895636$27.nextAddress == 1) {
|
|
4721
4722
|
if (mimeType !== "text/javascript" && mimeType !== "application/javascript") {
|
|
4722
4723
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
|
|
4723
4724
|
}
|
|
4724
|
-
return $jscomp$generator$context$
|
|
4725
|
+
return $jscomp$generator$context$1153895636$27.yield(response.text(), 2);
|
|
4725
4726
|
}
|
|
4726
|
-
text = $jscomp$generator$context$
|
|
4727
|
-
return $jscomp$generator$context$
|
|
4727
|
+
text = $jscomp$generator$context$1153895636$27.yieldResult;
|
|
4728
|
+
return $jscomp$generator$context$1153895636$27.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
|
|
4728
4729
|
});
|
|
4729
4730
|
}, styleSheet:function() {
|
|
4730
4731
|
var text;
|
|
4731
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4732
|
-
if ($jscomp$generator$context$
|
|
4732
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$28) {
|
|
4733
|
+
if ($jscomp$generator$context$1153895636$28.nextAddress == 1) {
|
|
4733
4734
|
if (mimeType !== "text/css") {
|
|
4734
4735
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
|
|
4735
4736
|
}
|
|
4736
|
-
return $jscomp$generator$context$
|
|
4737
|
+
return $jscomp$generator$context$1153895636$28.yield(response.text(), 2);
|
|
4737
4738
|
}
|
|
4738
|
-
text = $jscomp$generator$context$
|
|
4739
|
-
return $jscomp$generator$context$
|
|
4739
|
+
text = $jscomp$generator$context$1153895636$28.yieldResult;
|
|
4740
|
+
return $jscomp$generator$context$1153895636$28.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
|
|
4740
4741
|
});
|
|
4741
4742
|
}});
|
|
4742
4743
|
});
|
|
@@ -6158,8 +6159,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
6158
6159
|
}
|
|
6159
6160
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
6160
6161
|
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$
|
|
6162
|
+
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()) {
|
|
6163
|
+
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
6164
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
6164
6165
|
}
|
|
6165
6166
|
return urlQueryParams;
|
|
@@ -6170,8 +6171,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params)
|
|
|
6170
6171
|
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1, hasSafeContentType = !1;
|
|
6171
6172
|
if (params.headers) {
|
|
6172
6173
|
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$
|
|
6174
|
+
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()) {
|
|
6175
|
+
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
6176
|
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
6177
|
}
|
|
6177
6178
|
}
|
|
@@ -6211,9 +6212,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
|
|
|
6211
6212
|
return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
|
|
6212
6213
|
};
|
|
6213
6214
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
|
|
6214
|
-
var $jscomp$this$
|
|
6215
|
+
var $jscomp$this$m296226325$4 = this, responseCtor = requestParams.responseCtor || void 0;
|
|
6215
6216
|
return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
|
|
6216
|
-
return $jscomp$this$
|
|
6217
|
+
return $jscomp$this$m296226325$4.requestService.send(params, responseCtor);
|
|
6217
6218
|
}));
|
|
6218
6219
|
};
|
|
6219
6220
|
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 +6390,7 @@ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_o
|
|
|
6389
6390
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__disable = !1;
|
|
6390
6391
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__wiz_enable_native_promise__enable = !1;
|
|
6391
6392
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_readonly_repeated_fields__disable = !1;
|
|
6392
|
-
module$exports$closure$flags$flags$2etoggles.
|
|
6393
|
+
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_ignore_implicit_extension_deps__disable = !1;
|
|
6393
6394
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable = !1;
|
|
6394
6395
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable = !1;
|
|
6395
6396
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable = !1;
|
|
@@ -6406,7 +6407,7 @@ goog.flags.CLIENT_ONLY_WIZ_SYNC_REACTION_WITHIN_REACTION_THROWS_ERROR = module$e
|
|
|
6406
6407
|
!0);
|
|
6407
6408
|
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
6409
|
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.
|
|
6410
|
+
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
6411
|
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
6412
|
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
6413
|
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 +9210,6 @@ module$exports$eeapiclient$ee_api_client.TilesetDataTypeEnum = {DATA_TYPE_UNSPEC
|
|
|
9209
9210
|
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
9211
|
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
9212
|
}};
|
|
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
9213
|
module$exports$eeapiclient$ee_api_client.IVideoFileExportOptionsFileFormatEnum = function() {
|
|
9224
9214
|
};
|
|
9225
9215
|
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 +12284,6 @@ module$exports$eeapiclient$ee_api_client.ProjectConfig = function(parameters) {
|
|
|
12294
12284
|
this.Serializable$set("name", parameters.name == null ? null : parameters.name);
|
|
12295
12285
|
this.Serializable$set("registration", parameters.registration == null ? null : parameters.registration);
|
|
12296
12286
|
this.Serializable$set("registrationState", parameters.registrationState == null ? null : parameters.registrationState);
|
|
12297
|
-
this.Serializable$set("trialStatus", parameters.trialStatus == null ? null : parameters.trialStatus);
|
|
12298
12287
|
this.Serializable$set("vpcServiceControlsRestricted", parameters.vpcServiceControlsRestricted == null ? null : parameters.vpcServiceControlsRestricted);
|
|
12299
12288
|
};
|
|
12300
12289
|
$jscomp.inherits(module$exports$eeapiclient$ee_api_client.ProjectConfig, module$exports$eeapiclient$domain_object.Serializable);
|
|
@@ -12302,7 +12291,7 @@ module$exports$eeapiclient$ee_api_client.ProjectConfig.prototype.getConstructor
|
|
|
12302
12291
|
return module$exports$eeapiclient$ee_api_client.ProjectConfig;
|
|
12303
12292
|
};
|
|
12304
12293
|
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", "
|
|
12294
|
+
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
12295
|
};
|
|
12307
12296
|
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.ProjectConfig.prototype, {name:{configurable:!0, enumerable:!0, get:function() {
|
|
12308
12297
|
return this.Serializable$has("name") ? this.Serializable$get("name") : null;
|
|
@@ -12316,10 +12305,6 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
12316
12305
|
return this.Serializable$has("registrationState") ? this.Serializable$get("registrationState") : null;
|
|
12317
12306
|
}, set:function(value) {
|
|
12318
12307
|
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
12308
|
}}, vpcServiceControlsRestricted:{configurable:!0, enumerable:!0, get:function() {
|
|
12324
12309
|
return this.Serializable$has("vpcServiceControlsRestricted") ? this.Serializable$get("vpcServiceControlsRestricted") : null;
|
|
12325
12310
|
}, set:function(value) {
|
|
@@ -13478,55 +13463,6 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
13478
13463
|
}, set:function(value) {
|
|
13479
13464
|
this.Serializable$set("tilesPerFile", value);
|
|
13480
13465
|
}}});
|
|
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
13466
|
module$exports$eeapiclient$ee_api_client.UpdateAssetRequestParameters = function() {
|
|
13531
13467
|
};
|
|
13532
13468
|
module$exports$eeapiclient$ee_api_client.UpdateAssetRequest = function(parameters) {
|
|
@@ -14694,11 +14630,11 @@ module$contents$goog$async$FreeList_FreeList.prototype.occupants = function() {
|
|
|
14694
14630
|
return this.occupants_;
|
|
14695
14631
|
};
|
|
14696
14632
|
goog.async.FreeList = module$contents$goog$async$FreeList_FreeList;
|
|
14697
|
-
goog.async.nextTick = function(callback, opt_context
|
|
14633
|
+
goog.async.nextTick = function(callback, opt_context) {
|
|
14698
14634
|
var cb = callback;
|
|
14699
14635
|
opt_context && (cb = goog.bind(callback, opt_context));
|
|
14700
14636
|
cb = goog.async.nextTick.wrapCallback_(cb);
|
|
14701
|
-
goog.async.nextTick.USE_SET_TIMEOUT ? setTimeout(cb, 0) : typeof goog.global.setImmediate === "function" &&
|
|
14637
|
+
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
14638
|
};
|
|
14703
14639
|
goog.async.nextTick.USE_SET_TIMEOUT = !1;
|
|
14704
14640
|
goog.async.nextTick.useSetImmediate_ = function() {
|
|
@@ -14818,9 +14754,9 @@ goog.debug.asyncStackTag.getTestNameProvider = function() {
|
|
|
14818
14754
|
return module$contents$goog$debug$asyncStackTag_testNameProvider;
|
|
14819
14755
|
};
|
|
14820
14756
|
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) {
|
|
14757
|
+
callback = module$contents$goog$debug$asyncStackTag_wrap(callback, "goog.async.run");
|
|
14821
14758
|
module$contents$goog$async$run_schedule || module$contents$goog$async$run_initializeRunner();
|
|
14822
14759
|
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
14760
|
module$contents$goog$async$run_workQueue.add(callback, context);
|
|
14825
14761
|
}, module$contents$goog$async$run_initializeRunner = function() {
|
|
14826
14762
|
if (module$contents$goog$async$run_ASSUME_NATIVE_PROMISE || goog.global.Promise && goog.global.Promise.resolve) {
|
|
@@ -15549,14 +15485,6 @@ var module$contents$goog$asserts$dom_assertIsHtmlElement = function(value) {
|
|
|
15549
15485
|
}, module$contents$goog$asserts$dom_assertIsHtmlElementOfType = function(value, tagName) {
|
|
15550
15486
|
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
15487
|
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
15488
|
}, module$contents$goog$asserts$dom_debugStringForType = function(value) {
|
|
15561
15489
|
if (goog.isObject(value)) {
|
|
15562
15490
|
try {
|
|
@@ -15574,11 +15502,15 @@ goog.asserts.dom.assertIsElement = function(value) {
|
|
|
15574
15502
|
};
|
|
15575
15503
|
goog.asserts.dom.assertIsHtmlElement = module$contents$goog$asserts$dom_assertIsHtmlElement;
|
|
15576
15504
|
goog.asserts.dom.assertIsHtmlElementOfType = module$contents$goog$asserts$dom_assertIsHtmlElementOfType;
|
|
15577
|
-
goog.asserts.dom.assertIsHtmlAnchorElement =
|
|
15505
|
+
goog.asserts.dom.assertIsHtmlAnchorElement = function(value) {
|
|
15506
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.A);
|
|
15507
|
+
};
|
|
15578
15508
|
goog.asserts.dom.assertIsHtmlButtonElement = function(value) {
|
|
15579
15509
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.BUTTON);
|
|
15580
15510
|
};
|
|
15581
|
-
goog.asserts.dom.assertIsHtmlLinkElement =
|
|
15511
|
+
goog.asserts.dom.assertIsHtmlLinkElement = function(value) {
|
|
15512
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.LINK);
|
|
15513
|
+
};
|
|
15582
15514
|
goog.asserts.dom.assertIsHtmlImageElement = function(value) {
|
|
15583
15515
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.IMG);
|
|
15584
15516
|
};
|
|
@@ -15600,46 +15532,152 @@ goog.asserts.dom.assertIsHtmlCanvasElement = function(value) {
|
|
|
15600
15532
|
goog.asserts.dom.assertIsHtmlEmbedElement = function(value) {
|
|
15601
15533
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.EMBED);
|
|
15602
15534
|
};
|
|
15603
|
-
goog.asserts.dom.assertIsHtmlFormElement =
|
|
15535
|
+
goog.asserts.dom.assertIsHtmlFormElement = function(value) {
|
|
15536
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.FORM);
|
|
15537
|
+
};
|
|
15604
15538
|
goog.asserts.dom.assertIsHtmlFrameElement = function(value) {
|
|
15605
15539
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.FRAME);
|
|
15606
15540
|
};
|
|
15607
|
-
goog.asserts.dom.assertIsHtmlIFrameElement =
|
|
15541
|
+
goog.asserts.dom.assertIsHtmlIFrameElement = function(value) {
|
|
15542
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.IFRAME);
|
|
15543
|
+
};
|
|
15608
15544
|
goog.asserts.dom.assertIsHtmlObjectElement = function(value) {
|
|
15609
15545
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.OBJECT);
|
|
15610
15546
|
};
|
|
15611
15547
|
goog.asserts.dom.assertIsHtmlScriptElement = function(value) {
|
|
15612
15548
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.SCRIPT);
|
|
15613
15549
|
};
|
|
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;
|
|
15550
|
+
goog.math.Coordinate = function(opt_x, opt_y) {
|
|
15551
|
+
this.x = opt_x !== void 0 ? opt_x : 0;
|
|
15552
|
+
this.y = opt_y !== void 0 ? opt_y : 0;
|
|
15621
15553
|
};
|
|
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
|
-
}
|
|
15554
|
+
goog.math.Coordinate.prototype.clone = function() {
|
|
15555
|
+
return new goog.math.Coordinate(this.x, this.y);
|
|
15632
15556
|
};
|
|
15633
|
-
goog.
|
|
15634
|
-
|
|
15635
|
-
|
|
15636
|
-
|
|
15637
|
-
|
|
15638
|
-
|
|
15639
|
-
|
|
15640
|
-
|
|
15641
|
-
|
|
15642
|
-
|
|
15557
|
+
goog.DEBUG && (goog.math.Coordinate.prototype.toString = function() {
|
|
15558
|
+
return "(" + this.x + ", " + this.y + ")";
|
|
15559
|
+
});
|
|
15560
|
+
goog.math.Coordinate.prototype.equals = function(other) {
|
|
15561
|
+
return other instanceof goog.math.Coordinate && goog.math.Coordinate.equals(this, other);
|
|
15562
|
+
};
|
|
15563
|
+
goog.math.Coordinate.equals = function(a, b) {
|
|
15564
|
+
return a == b ? !0 : a && b ? a.x == b.x && a.y == b.y : !1;
|
|
15565
|
+
};
|
|
15566
|
+
goog.math.Coordinate.distance = function(a, b) {
|
|
15567
|
+
var dx = a.x - b.x, dy = a.y - b.y;
|
|
15568
|
+
return Math.sqrt(dx * dx + dy * dy);
|
|
15569
|
+
};
|
|
15570
|
+
goog.math.Coordinate.magnitude = function(a) {
|
|
15571
|
+
return Math.sqrt(a.x * a.x + a.y * a.y);
|
|
15572
|
+
};
|
|
15573
|
+
goog.math.Coordinate.azimuth = function(a) {
|
|
15574
|
+
return goog.math.angle(0, 0, a.x, a.y);
|
|
15575
|
+
};
|
|
15576
|
+
goog.math.Coordinate.squaredDistance = function(a, b) {
|
|
15577
|
+
var dx = a.x - b.x, dy = a.y - b.y;
|
|
15578
|
+
return dx * dx + dy * dy;
|
|
15579
|
+
};
|
|
15580
|
+
goog.math.Coordinate.difference = function(a, b) {
|
|
15581
|
+
return new goog.math.Coordinate(a.x - b.x, a.y - b.y);
|
|
15582
|
+
};
|
|
15583
|
+
goog.math.Coordinate.sum = function(a, b) {
|
|
15584
|
+
return new goog.math.Coordinate(a.x + b.x, a.y + b.y);
|
|
15585
|
+
};
|
|
15586
|
+
goog.math.Coordinate.prototype.ceil = function() {
|
|
15587
|
+
this.x = Math.ceil(this.x);
|
|
15588
|
+
this.y = Math.ceil(this.y);
|
|
15589
|
+
return this;
|
|
15590
|
+
};
|
|
15591
|
+
goog.math.Coordinate.prototype.floor = function() {
|
|
15592
|
+
this.x = Math.floor(this.x);
|
|
15593
|
+
this.y = Math.floor(this.y);
|
|
15594
|
+
return this;
|
|
15595
|
+
};
|
|
15596
|
+
goog.math.Coordinate.prototype.round = function() {
|
|
15597
|
+
this.x = Math.round(this.x);
|
|
15598
|
+
this.y = Math.round(this.y);
|
|
15599
|
+
return this;
|
|
15600
|
+
};
|
|
15601
|
+
goog.math.Coordinate.prototype.translate = function(tx, opt_ty) {
|
|
15602
|
+
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));
|
|
15603
|
+
return this;
|
|
15604
|
+
};
|
|
15605
|
+
goog.math.Coordinate.prototype.scale = function(sx, opt_sy) {
|
|
15606
|
+
var sy;
|
|
15607
|
+
this.x *= sx;
|
|
15608
|
+
this.y *= typeof opt_sy === "number" ? opt_sy : sx;
|
|
15609
|
+
return this;
|
|
15610
|
+
};
|
|
15611
|
+
goog.math.Coordinate.prototype.rotateRadians = function(radians, opt_center) {
|
|
15612
|
+
var center = opt_center || new goog.math.Coordinate(0, 0), x = this.x, y = this.y, cos = Math.cos(radians), sin = Math.sin(radians);
|
|
15613
|
+
this.x = (x - center.x) * cos - (y - center.y) * sin + center.x;
|
|
15614
|
+
this.y = (x - center.x) * sin + (y - center.y) * cos + center.y;
|
|
15615
|
+
};
|
|
15616
|
+
goog.math.Coordinate.prototype.rotateDegrees = function(degrees, opt_center) {
|
|
15617
|
+
this.rotateRadians(goog.math.toRadians(degrees), opt_center);
|
|
15618
|
+
};
|
|
15619
|
+
goog.math.Size = function(width, height) {
|
|
15620
|
+
this.width = width;
|
|
15621
|
+
this.height = height;
|
|
15622
|
+
};
|
|
15623
|
+
goog.math.Size.equals = function(a, b) {
|
|
15624
|
+
return a == b ? !0 : a && b ? a.width == b.width && a.height == b.height : !1;
|
|
15625
|
+
};
|
|
15626
|
+
goog.math.Size.prototype.clone = function() {
|
|
15627
|
+
return new goog.math.Size(this.width, this.height);
|
|
15628
|
+
};
|
|
15629
|
+
goog.DEBUG && (goog.math.Size.prototype.toString = function() {
|
|
15630
|
+
return "(" + this.width + " x " + this.height + ")";
|
|
15631
|
+
});
|
|
15632
|
+
goog.math.Size.prototype.getLongest = function() {
|
|
15633
|
+
return Math.max(this.width, this.height);
|
|
15634
|
+
};
|
|
15635
|
+
goog.math.Size.prototype.getShortest = function() {
|
|
15636
|
+
return Math.min(this.width, this.height);
|
|
15637
|
+
};
|
|
15638
|
+
goog.math.Size.prototype.area = function() {
|
|
15639
|
+
return this.width * this.height;
|
|
15640
|
+
};
|
|
15641
|
+
goog.math.Size.prototype.perimeter = function() {
|
|
15642
|
+
return (this.width + this.height) * 2;
|
|
15643
|
+
};
|
|
15644
|
+
goog.math.Size.prototype.aspectRatio = function() {
|
|
15645
|
+
return this.width / this.height;
|
|
15646
|
+
};
|
|
15647
|
+
goog.math.Size.prototype.isEmpty = function() {
|
|
15648
|
+
return !this.area();
|
|
15649
|
+
};
|
|
15650
|
+
goog.math.Size.prototype.ceil = function() {
|
|
15651
|
+
this.width = Math.ceil(this.width);
|
|
15652
|
+
this.height = Math.ceil(this.height);
|
|
15653
|
+
return this;
|
|
15654
|
+
};
|
|
15655
|
+
goog.math.Size.prototype.fitsInside = function(target) {
|
|
15656
|
+
return this.width <= target.width && this.height <= target.height;
|
|
15657
|
+
};
|
|
15658
|
+
goog.math.Size.prototype.floor = function() {
|
|
15659
|
+
this.width = Math.floor(this.width);
|
|
15660
|
+
this.height = Math.floor(this.height);
|
|
15661
|
+
return this;
|
|
15662
|
+
};
|
|
15663
|
+
goog.math.Size.prototype.round = function() {
|
|
15664
|
+
this.width = Math.round(this.width);
|
|
15665
|
+
this.height = Math.round(this.height);
|
|
15666
|
+
return this;
|
|
15667
|
+
};
|
|
15668
|
+
goog.math.Size.prototype.scale = function(sx, opt_sy) {
|
|
15669
|
+
var sy;
|
|
15670
|
+
this.width *= sx;
|
|
15671
|
+
this.height *= typeof opt_sy === "number" ? opt_sy : sx;
|
|
15672
|
+
return this;
|
|
15673
|
+
};
|
|
15674
|
+
goog.math.Size.prototype.scaleToCover = function(target) {
|
|
15675
|
+
var s = this.aspectRatio() <= target.aspectRatio() ? target.width / this.width : target.height / this.height;
|
|
15676
|
+
return this.scale(s);
|
|
15677
|
+
};
|
|
15678
|
+
goog.math.Size.prototype.scaleToFit = function(target) {
|
|
15679
|
+
var s = this.aspectRatio() > target.aspectRatio() ? target.width / this.width : target.height / this.height;
|
|
15680
|
+
return this.scale(s);
|
|
15643
15681
|
};
|
|
15644
15682
|
goog.string.Const = function(opt_token, opt_content) {
|
|
15645
15683
|
this.stringConstValueWithSecurityContract__googStringSecurityPrivate_ = opt_token === goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ && opt_content || "";
|
|
@@ -15661,12 +15699,6 @@ goog.string.Const.from = function(s) {
|
|
|
15661
15699
|
goog.string.Const.TYPE_MARKER_ = {};
|
|
15662
15700
|
goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ = {};
|
|
15663
15701
|
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
15702
|
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
15703
|
module$exports$safevalues$builders$sensitive_attributes.SECURITY_SENSITIVE_ATTRIBUTES = "src srcdoc codebase data href rel action formaction sandbox cite poster icon".split(" ");
|
|
15672
15704
|
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"};
|
|
@@ -15912,8 +15944,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
|
15912
15944
|
this.replacements = new Map();
|
|
15913
15945
|
};
|
|
15914
15946
|
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
15915
|
-
var $jscomp$this$
|
|
15916
|
-
return $jscomp$this$
|
|
15947
|
+
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) {
|
|
15948
|
+
return $jscomp$this$1018007701$5.replaceFormattingString(openedTags, match);
|
|
15917
15949
|
});
|
|
15918
15950
|
if (openedTags.length !== 0) {
|
|
15919
15951
|
if (goog.DEBUG) {
|
|
@@ -16131,8 +16163,8 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16131
16163
|
if (Array.isArray(token)) {
|
|
16132
16164
|
tokens.push.apply(tokens, (0,$jscomp.arrayFromIterable)(token));
|
|
16133
16165
|
} else {
|
|
16134
|
-
var $jscomp$optchain$
|
|
16135
|
-
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$
|
|
16166
|
+
var $jscomp$optchain$tmpm282935782$0 = void 0;
|
|
16167
|
+
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
16168
|
tokens.push(token);
|
|
16137
16169
|
if (token.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF) {
|
|
16138
16170
|
return tokens;
|
|
@@ -16378,9 +16410,9 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16378
16410
|
repr:repr}) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER, repr:repr};
|
|
16379
16411
|
};
|
|
16380
16412
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputsPointsAreWhitespace = function() {
|
|
16381
|
-
var $jscomp$this$
|
|
16413
|
+
var $jscomp$this$m282935782$26 = this;
|
|
16382
16414
|
return this.nextTwoInputCodePoints().every(function(c) {
|
|
16383
|
-
return $jscomp$this$
|
|
16415
|
+
return $jscomp$this$m282935782$26.isWhitespace(c);
|
|
16384
16416
|
});
|
|
16385
16417
|
};
|
|
16386
16418
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.twoCodePointsAreValidEscape = function(codePoint1, codePoint2) {
|
|
@@ -16487,8 +16519,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16487
16519
|
return null;
|
|
16488
16520
|
}
|
|
16489
16521
|
if (token.lowercaseName === "url") {
|
|
16490
|
-
var nextToken = tokens[i + 1], $jscomp$optchain$
|
|
16491
|
-
if ((($jscomp$optchain$
|
|
16522
|
+
var nextToken = tokens[i + 1], $jscomp$optchain$tmpm1577590584$0 = void 0;
|
|
16523
|
+
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
16524
|
return null;
|
|
16493
16525
|
}
|
|
16494
16526
|
var parsedUrl = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(nextToken.value);
|
|
@@ -16511,8 +16543,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16511
16543
|
if (!this.allowKeyframes) {
|
|
16512
16544
|
return null;
|
|
16513
16545
|
}
|
|
16514
|
-
for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$
|
|
16515
|
-
var rule = $jscomp$key$
|
|
16546
|
+
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()) {
|
|
16547
|
+
var rule = $jscomp$key$m1577590584$1$rule.value;
|
|
16516
16548
|
if (rule instanceof CSSKeyframeRule) {
|
|
16517
16549
|
var sanitizedRule = this.sanitizeKeyframeRule(rule);
|
|
16518
16550
|
sanitizedRule && keyframeRules.push(sanitizedRule);
|
|
@@ -16524,8 +16556,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16524
16556
|
if (!this.propertyAllowlist.has(name)) {
|
|
16525
16557
|
return !1;
|
|
16526
16558
|
}
|
|
16527
|
-
for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$
|
|
16528
|
-
var discarder = $jscomp$key$
|
|
16559
|
+
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()) {
|
|
16560
|
+
var discarder = $jscomp$key$m1577590584$2$discarder.value;
|
|
16529
16561
|
if (discarder(name)) {
|
|
16530
16562
|
return !1;
|
|
16531
16563
|
}
|
|
@@ -16540,8 +16572,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16540
16572
|
return sanitizedValue ? module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(name) + ": " + sanitizedValue + (isImportant ? " !important" : "") : null;
|
|
16541
16573
|
};
|
|
16542
16574
|
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$
|
|
16575
|
+
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()) {
|
|
16576
|
+
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
16577
|
sanitizedProperty && (sanitizedProperties += sanitizedProperty + ";");
|
|
16546
16578
|
}
|
|
16547
16579
|
return sanitizedProperties;
|
|
@@ -16555,8 +16587,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16555
16587
|
return selector + " { " + sanitizedProperties + " }";
|
|
16556
16588
|
};
|
|
16557
16589
|
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$
|
|
16590
|
+
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()) {
|
|
16591
|
+
var rule = $jscomp$key$m1577590584$4$rule.value;
|
|
16560
16592
|
if (rule instanceof CSSStyleRule) {
|
|
16561
16593
|
var sanitizedRule = this.sanitizeStyleRule(rule);
|
|
16562
16594
|
sanitizedRule && output.push(sanitizedRule);
|
|
@@ -16717,8 +16749,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16717
16749
|
return fragment;
|
|
16718
16750
|
};
|
|
16719
16751
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
16720
|
-
for (var $jscomp$this$
|
|
16721
|
-
return $jscomp$this$
|
|
16752
|
+
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) {
|
|
16753
|
+
return $jscomp$this$m1085474118$13.nodeFilter(n);
|
|
16722
16754
|
}), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; currentNode !== null;) {
|
|
16723
16755
|
var sanitizedNode = void 0;
|
|
16724
16756
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
@@ -16753,8 +16785,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16753
16785
|
return this.createTextNode(textNode.data);
|
|
16754
16786
|
};
|
|
16755
16787
|
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$
|
|
16788
|
+
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()) {
|
|
16789
|
+
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
16790
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
16759
16791
|
switch(policy.policyAction) {
|
|
16760
16792
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -16786,9 +16818,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16786
16818
|
break;
|
|
16787
16819
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:
|
|
16788
16820
|
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$
|
|
16821
|
+
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
16822
|
$jscomp$iter$35.next()) {
|
|
16791
|
-
var part = $jscomp$key$
|
|
16823
|
+
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
16824
|
sanitizedUrl$jscomp$0 && sanitizedSrcset.parts.push({url:sanitizedUrl$jscomp$0.toString(), descriptor:part.descriptor});
|
|
16793
16825
|
}
|
|
16794
16826
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(sanitizedSrcset));
|
|
@@ -16832,8 +16864,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16832
16864
|
if (!conditions) {
|
|
16833
16865
|
return !0;
|
|
16834
16866
|
}
|
|
16835
|
-
for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$
|
|
16836
|
-
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
16867
|
+
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()) {
|
|
16868
|
+
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
16869
|
if (value && !expectedValues.has(value)) {
|
|
16838
16870
|
return !1;
|
|
16839
16871
|
}
|
|
@@ -16848,8 +16880,8 @@ function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_Srcse
|
|
|
16848
16880
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.Srcset = function() {
|
|
16849
16881
|
};
|
|
16850
16882
|
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$
|
|
16883
|
+
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()) {
|
|
16884
|
+
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
16885
|
parts.push({url:url__tsickle_destructured_3, descriptor:descriptor__tsickle_destructured_4});
|
|
16854
16886
|
}
|
|
16855
16887
|
return {parts:parts};
|
|
@@ -16906,8 +16938,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16906
16938
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE;
|
|
16907
16939
|
};
|
|
16908
16940
|
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$
|
|
16941
|
+
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()) {
|
|
16942
|
+
var element = $jscomp$key$435282654$21$element.value;
|
|
16911
16943
|
element = element.toUpperCase();
|
|
16912
16944
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
16913
16945
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -16925,8 +16957,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16925
16957
|
throw Error("Element: " + element + " is not a custom element");
|
|
16926
16958
|
}
|
|
16927
16959
|
if (allowedAttributes) {
|
|
16928
|
-
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$
|
|
16929
|
-
elementPolicy.set($jscomp$key$
|
|
16960
|
+
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()) {
|
|
16961
|
+
elementPolicy.set($jscomp$key$435282654$22$attribute.value.toLowerCase(), {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
16930
16962
|
}
|
|
16931
16963
|
allowedElementPolicies.set(element, elementPolicy);
|
|
16932
16964
|
} else {
|
|
@@ -16936,15 +16968,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16936
16968
|
return this;
|
|
16937
16969
|
};
|
|
16938
16970
|
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$
|
|
16971
|
+
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()) {
|
|
16972
|
+
var attribute = $jscomp$key$435282654$23$attribute.value;
|
|
16941
16973
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
16942
16974
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
16943
16975
|
}
|
|
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$
|
|
16976
|
+
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()) {
|
|
16977
|
+
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
16978
|
$jscomp$iter$42.next()) {
|
|
16947
|
-
var $jscomp$destructuring$var39 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
16979
|
+
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
16980
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
16949
16981
|
}
|
|
16950
16982
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -16953,8 +16985,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16953
16985
|
return this;
|
|
16954
16986
|
};
|
|
16955
16987
|
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$
|
|
16988
|
+
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()) {
|
|
16989
|
+
var attribute = $jscomp$key$435282654$26$attribute.value;
|
|
16958
16990
|
if (attribute.indexOf("data-") !== 0) {
|
|
16959
16991
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
16960
16992
|
}
|
|
@@ -17016,7 +17048,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17016
17048
|
return this;
|
|
17017
17049
|
};
|
|
17018
17050
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.build = function() {
|
|
17019
|
-
var $jscomp$this$
|
|
17051
|
+
var $jscomp$this$435282654$17 = this;
|
|
17020
17052
|
this.extendSanitizerTableForCss();
|
|
17021
17053
|
var propertyDiscarders = [];
|
|
17022
17054
|
this.animationsAllowed || propertyDiscarders.push(function(property) {
|
|
@@ -17026,9 +17058,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17026
17058
|
return /^transition(-|$)/.test(property);
|
|
17027
17059
|
});
|
|
17028
17060
|
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$
|
|
17061
|
+
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
17062
|
}, 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$
|
|
17063
|
+
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
17064
|
}, this.resourceUrlPolicy);
|
|
17033
17065
|
};
|
|
17034
17066
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.extendSanitizerTableForCss = function() {
|
|
@@ -17278,12 +17310,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
17278
17310
|
}
|
|
17279
17311
|
try {
|
|
17280
17312
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
17281
|
-
} catch ($jscomp$unused$catch$
|
|
17313
|
+
} catch ($jscomp$unused$catch$696273141$0) {
|
|
17282
17314
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
17283
17315
|
}
|
|
17284
17316
|
try {
|
|
17285
17317
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
17286
|
-
} catch ($jscomp$unused$catch$
|
|
17318
|
+
} catch ($jscomp$unused$catch$696273141$1) {
|
|
17287
17319
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
17288
17320
|
}
|
|
17289
17321
|
return !1;
|
|
@@ -17455,230 +17487,6 @@ safevalues.SafeUrl = module$exports$safevalues$internals$url_impl.SafeUrl;
|
|
|
17455
17487
|
safevalues.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
|
|
17456
17488
|
safevalues.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
17457
17489
|
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
17490
|
goog.dom.Appendable = {};
|
|
17683
17491
|
goog.dom.ASSUME_QUIRKS_MODE = !1;
|
|
17684
17492
|
goog.dom.ASSUME_STANDARDS_MODE = !1;
|
|
@@ -17889,7 +17697,7 @@ goog.dom.safeHtmlToNode = function(html) {
|
|
|
17889
17697
|
};
|
|
17890
17698
|
goog.dom.safeHtmlToNode_ = function(doc, html) {
|
|
17891
17699
|
var tempDiv = goog.dom.createElement_(doc, goog.dom.TagName.DIV);
|
|
17892
|
-
|
|
17700
|
+
module$exports$safevalues$dom$elements$element.setInnerHtml(tempDiv, html);
|
|
17893
17701
|
return goog.dom.childrenToNode_(doc, tempDiv);
|
|
17894
17702
|
};
|
|
17895
17703
|
goog.dom.childrenToNode_ = function(doc, tempDiv) {
|
|
@@ -19443,7 +19251,7 @@ var $jscomp$templatelit$m1153655765$99 = $jscomp.createTemplateTagFirstArg(["htt
|
|
|
19443
19251
|
ee.apiclient = {};
|
|
19444
19252
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19445
19253
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19446
|
-
ee.apiclient.API_CLIENT_VERSION = "1.1.
|
|
19254
|
+
ee.apiclient.API_CLIENT_VERSION = "1.1.3";
|
|
19447
19255
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19448
19256
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19449
19257
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19741,8 +19549,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19741
19549
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19742
19550
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19743
19551
|
method = method || "POST";
|
|
19744
|
-
var headers = {"Content-Type":contentType}, version = "1.1.
|
|
19745
|
-
version === "1.1.
|
|
19552
|
+
var headers = {"Content-Type":contentType}, version = "1.1.3";
|
|
19553
|
+
version === "1.1.3" && (version = "latest");
|
|
19746
19554
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19747
19555
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
19748
19556
|
if (authToken != null) {
|
|
@@ -19814,19 +19622,14 @@ module$contents$ee$apiclient_apiclient.handleResponse_ = function(status, getRes
|
|
|
19814
19622
|
var response = JSON.parse(body);
|
|
19815
19623
|
return !(goog.isObject(response) && "error" in response && "message" in response.error) || detectPartialError && detectPartialError(response) ? {parsed:response} : response.error.message;
|
|
19816
19624
|
} catch (e) {
|
|
19817
|
-
return "Invalid JSON: " + body;
|
|
19625
|
+
return body === "" ? "" : "Invalid JSON: " + body;
|
|
19818
19626
|
}
|
|
19819
19627
|
}, 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
|
-
}
|
|
19628
|
+
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
19629
|
}, errorMessage, data, typeHeader = getResponseHeader("Content-Type") || "application/json", contentType = typeHeader.replace(/;.*/, "");
|
|
19827
19630
|
if (contentType === "application/json" || contentType === "text/json") {
|
|
19828
19631
|
var response = parseJson(responseText);
|
|
19829
|
-
response.parsed ? data = response.parsed : errorMessage = response;
|
|
19632
|
+
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
19633
|
} else if (contentType === "multipart/mixed") {
|
|
19831
19634
|
data = {};
|
|
19832
19635
|
var errors = [];
|