@google/earthengine 0.1.373 → 0.1.375
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/.tmp/BUILD +8 -0
- package/.tmp/METADATA +4 -4
- package/.tmp/VERSION_BUILD +2 -2
- package/build/browser.js +49 -44
- package/build/ee_api_js.js +170 -170
- package/build/ee_api_js_debug.js +49 -44
- package/build/ee_api_js_npm.js +49 -44
- package/build/main.js +49 -44
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/examples/CloudMasking/Sentinel2ClearComposite.js +57 -0
- package/src/imagecollection.js +9 -2
- package/src/terrain.js +0 -0
package/build/ee_api_js_debug.js
CHANGED
|
@@ -6063,7 +6063,7 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
6063
6063
|
};
|
|
6064
6064
|
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;
|
|
6065
6065
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
6066
|
-
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 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$
|
|
6066
|
+
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 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$m192531680$0 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$0 = {mapMetadata:$jscomp$loop$m192531680$0.mapMetadata},
|
|
6067
6067
|
$jscomp$key$key = $jscomp$iter$19.next()) {
|
|
6068
6068
|
var key = $jscomp$key$key.value, value = valueGetter(key, source);
|
|
6069
6069
|
if (null != value) {
|
|
@@ -6076,11 +6076,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6076
6076
|
} else if (objects.hasOwnProperty(key)) {
|
|
6077
6077
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
6078
6078
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
6079
|
-
$jscomp$loop$
|
|
6079
|
+
$jscomp$loop$m192531680$0.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$0.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$0) {
|
|
6080
6080
|
return function(v) {
|
|
6081
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
6081
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6082
6082
|
};
|
|
6083
|
-
}($jscomp$loop$
|
|
6083
|
+
}($jscomp$loop$m192531680$0)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6084
6084
|
} else if (Array.isArray(value)) {
|
|
6085
6085
|
if (metadata.emptyArrayIsUnset && 0 === value.length) {
|
|
6086
6086
|
continue;
|
|
@@ -6126,39 +6126,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
6126
6126
|
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))) {
|
|
6127
6127
|
return !1;
|
|
6128
6128
|
}
|
|
6129
|
-
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$
|
|
6129
|
+
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$m192531680$1 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$1 = {value2$jscomp$7:$jscomp$loop$m192531680$1.value2$jscomp$7, mapMetadata$jscomp$2:$jscomp$loop$m192531680$1.mapMetadata$jscomp$2}, $jscomp$key$key = $jscomp$iter$21.next()) {
|
|
6130
6130
|
var key = $jscomp$key$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
|
|
6131
6131
|
if (has1 !== has2) {
|
|
6132
6132
|
return !1;
|
|
6133
6133
|
}
|
|
6134
6134
|
if (has1) {
|
|
6135
6135
|
var value1 = serializable1.Serializable$get(key);
|
|
6136
|
-
$jscomp$loop$
|
|
6136
|
+
$jscomp$loop$m192531680$1.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
6137
6137
|
if (arrays1.hasOwnProperty(key)) {
|
|
6138
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6138
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !0)) {
|
|
6139
6139
|
return !1;
|
|
6140
6140
|
}
|
|
6141
6141
|
} else if (objects1.hasOwnProperty(key)) {
|
|
6142
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6142
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !0)) {
|
|
6143
6143
|
return !1;
|
|
6144
6144
|
}
|
|
6145
6145
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
6146
|
-
if ($jscomp$loop$
|
|
6147
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
6146
|
+
if ($jscomp$loop$m192531680$1.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2.isPropertyArray) {
|
|
6147
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$1.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$1) {
|
|
6148
6148
|
return function(v1, i) {
|
|
6149
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
6149
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$1.value2$jscomp$7[i], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2);
|
|
6150
6150
|
};
|
|
6151
|
-
}($jscomp$loop$
|
|
6151
|
+
}($jscomp$loop$m192531680$1))) {
|
|
6152
6152
|
return !1;
|
|
6153
6153
|
}
|
|
6154
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
6154
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, $jscomp$loop$m192531680$1.mapMetadata$jscomp$2)) {
|
|
6155
6155
|
return !1;
|
|
6156
6156
|
}
|
|
6157
6157
|
} else if (Array.isArray(value1)) {
|
|
6158
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6158
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !1)) {
|
|
6159
6159
|
return !1;
|
|
6160
6160
|
}
|
|
6161
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6161
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !1)) {
|
|
6162
6162
|
return !1;
|
|
6163
6163
|
}
|
|
6164
6164
|
}
|
|
@@ -6876,7 +6876,6 @@ goog.html.SafeUrl.fromTrustedResourceUrl = function(trustedResourceUrl) {
|
|
|
6876
6876
|
return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(trustedResourceUrl));
|
|
6877
6877
|
};
|
|
6878
6878
|
goog.html.SAFE_URL_PATTERN_ = /^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;
|
|
6879
|
-
goog.html.SafeUrl.SAFE_URL_PATTERN = goog.html.SAFE_URL_PATTERN_;
|
|
6880
6879
|
goog.html.SafeUrl.trySanitize = function(url) {
|
|
6881
6880
|
if (url instanceof goog.html.SafeUrl) {
|
|
6882
6881
|
return url;
|
|
@@ -17408,7 +17407,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
|
|
|
17408
17407
|
ee.apiclient = {};
|
|
17409
17408
|
var module$contents$ee$apiclient_apiclient = {};
|
|
17410
17409
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
17411
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
17410
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.375";
|
|
17412
17411
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
17413
17412
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
17414
17413
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -17699,8 +17698,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
17699
17698
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
17700
17699
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
17701
17700
|
method = method || "POST";
|
|
17702
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
17703
|
-
"0.1.
|
|
17701
|
+
var headers = {"Content-Type":contentType}, version = "0.1.375";
|
|
17702
|
+
"0.1.375" === version && (version = "latest");
|
|
17704
17703
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
17705
17704
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
17706
17705
|
if (null != authToken) {
|
|
@@ -21800,9 +21799,9 @@ ee.ImageCollection.prototype.select = function(selectors, opt_names) {
|
|
|
21800
21799
|
};
|
|
21801
21800
|
goog.exportProperty(ee.ImageCollection.prototype, "select", ee.ImageCollection.prototype.select);
|
|
21802
21801
|
ee.ImageCollection.prototype.linkCollection = function(imageCollection, opt_linkedBands, opt_linkedProperties, opt_matchPropertyName) {
|
|
21803
|
-
var
|
|
21802
|
+
var args = ee.arguments.extractFromFunction(ee.ImageCollection.prototype.linkCollection, arguments);
|
|
21804
21803
|
return this.map(function(obj) {
|
|
21805
|
-
return ee.ApiFunction._call
|
|
21804
|
+
return ee.ApiFunction._call("Image.linkCollection", obj, args.imageCollection, args.linkedBands, args.linkedProperties, args.matchPropertyName);
|
|
21806
21805
|
});
|
|
21807
21806
|
};
|
|
21808
21807
|
goog.exportProperty(ee.ImageCollection.prototype, "linkCollection", ee.ImageCollection.prototype.linkCollection);
|
|
@@ -24335,8 +24334,8 @@ function module$contents$safevalues$internals$attribute_impl_unwrapAttributePref
|
|
|
24335
24334
|
throw Error(message);
|
|
24336
24335
|
}
|
|
24337
24336
|
module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
24338
|
-
var $jscomp$templatelit$
|
|
24339
|
-
["\\0"]), $jscomp$templatelit$
|
|
24337
|
+
var $jscomp$templatelit$1274514361$0 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$1 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$1274514361$2 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$3 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$1274514361$4 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$5 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
24338
|
+
["\\0"]), $jscomp$templatelit$1274514361$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$7 = $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"};
|
|
24340
24339
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
24341
24340
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
24342
24341
|
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 ##############################");
|
|
@@ -24350,14 +24349,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
24350
24349
|
return -1 === fn.toString().indexOf("`");
|
|
24351
24350
|
}
|
|
24352
24351
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24353
|
-
return tag($jscomp$templatelit$
|
|
24352
|
+
return tag($jscomp$templatelit$1274514361$0);
|
|
24354
24353
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24355
|
-
return tag($jscomp$templatelit$
|
|
24354
|
+
return tag($jscomp$templatelit$1274514361$1);
|
|
24356
24355
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24357
|
-
return tag($jscomp$templatelit$
|
|
24356
|
+
return tag($jscomp$templatelit$1274514361$2);
|
|
24358
24357
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24359
|
-
return tag($jscomp$templatelit$
|
|
24360
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
24358
|
+
return tag($jscomp$templatelit$1274514361$3);
|
|
24359
|
+
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$4) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$5) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$6) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$7);
|
|
24361
24360
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
24362
24361
|
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)) ?
|
|
24363
24362
|
!0 : !1;
|
|
@@ -24682,7 +24681,7 @@ function module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sani
|
|
|
24682
24681
|
}
|
|
24683
24682
|
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.isCustomElement = module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_isCustomElement;
|
|
24684
24683
|
var module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table = {}, module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_module = module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/sanitizer_table/default_sanitizer_table.closure.js"},
|
|
24685
|
-
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS = "ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER".split(" "),
|
|
24684
|
+
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS = "ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER ACRONYM BASEFONT BIG DIR HGROUP STRIKE TT".split(" "),
|
|
24686
24685
|
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES = [["A", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}]])], ["AREA", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}]])],
|
|
24687
24686
|
["LINK", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL, conditions:new Map([["rel", new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])], ["SOURCE", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])],
|
|
24688
24687
|
["IMG", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])], ["VIDEO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])], ["AUDIO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])]],
|
|
@@ -24820,7 +24819,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
24820
24819
|
return !0;
|
|
24821
24820
|
}
|
|
24822
24821
|
for (var $jscomp$iter$44 = $jscomp.makeIterator(conditions), $jscomp$key$ = $jscomp$iter$44.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$44.next()) {
|
|
24823
|
-
var $jscomp$destructuring$var54 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var54.next().value, expectedValues = $jscomp$destructuring$var54.next().value, $jscomp$optchain$
|
|
24822
|
+
var $jscomp$destructuring$var54 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var54.next().value, expectedValues = $jscomp$destructuring$var54.next().value, $jscomp$optchain$tmpm1803429925$0 = void 0, value = null == ($jscomp$optchain$tmpm1803429925$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1803429925$0.value;
|
|
24824
24823
|
if (value && !expectedValues.has(value)) {
|
|
24825
24824
|
return !1;
|
|
24826
24825
|
}
|
|
@@ -25091,23 +25090,26 @@ function module$contents$safevalues$builders$script_builders_safeScriptWithArgs(
|
|
|
25091
25090
|
module$exports$safevalues$builders$script_builders.safeScriptWithArgs = module$contents$safevalues$builders$script_builders_safeScriptWithArgs;
|
|
25092
25091
|
var module$exports$safevalues$builders$style_builders = {}, module$contents$safevalues$builders$style_builders_module = module$contents$safevalues$builders$style_builders_module || {id:"third_party/javascript/safevalues/builders/style_builders.closure.js"};
|
|
25093
25092
|
function module$contents$safevalues$builders$style_builders_safeStyle(templateObj) {
|
|
25094
|
-
|
|
25095
|
-
|
|
25093
|
+
var rest = $jscomp.getRestArguments.apply(1, arguments);
|
|
25094
|
+
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, rest.length);
|
|
25095
|
+
for (var stringifiedStyle = templateObj[0], i = 0; i < templateObj.length - 1; i++) {
|
|
25096
|
+
stringifiedStyle += String(rest[i]) + templateObj[i + 1];
|
|
25097
|
+
}
|
|
25098
|
+
if (/[<>]/.test(stringifiedStyle)) {
|
|
25099
|
+
throw Error("Forbidden characters in style string: " + stringifiedStyle);
|
|
25100
|
+
}
|
|
25096
25101
|
if (goog.DEBUG) {
|
|
25097
|
-
if (0 ===
|
|
25098
|
-
return module$contents$safevalues$internals$style_impl_createStyleInternal(
|
|
25099
|
-
}
|
|
25100
|
-
if (/[<>]/.test(style)) {
|
|
25101
|
-
throw Error("Forbidden characters in style string: " + style);
|
|
25102
|
+
if (0 === stringifiedStyle.length) {
|
|
25103
|
+
return module$contents$safevalues$internals$style_impl_createStyleInternal(stringifiedStyle);
|
|
25102
25104
|
}
|
|
25103
|
-
if (!/;$/.test(
|
|
25104
|
-
throw Error('Style string does not end with ";": ' +
|
|
25105
|
+
if (!/;$/.test(stringifiedStyle)) {
|
|
25106
|
+
throw Error('Style string does not end with ";": ' + stringifiedStyle);
|
|
25105
25107
|
}
|
|
25106
|
-
if (!/:/.test(
|
|
25107
|
-
throw Error('Style string should contain one or more ":": ' +
|
|
25108
|
+
if (!/:/.test(stringifiedStyle)) {
|
|
25109
|
+
throw Error('Style string should contain one or more ":": ' + stringifiedStyle);
|
|
25108
25110
|
}
|
|
25109
25111
|
}
|
|
25110
|
-
return module$contents$safevalues$internals$style_impl_createStyleInternal(
|
|
25112
|
+
return module$contents$safevalues$internals$style_impl_createStyleInternal(stringifiedStyle);
|
|
25111
25113
|
}
|
|
25112
25114
|
module$exports$safevalues$builders$style_builders.safeStyle = module$contents$safevalues$builders$style_builders_safeStyle;
|
|
25113
25115
|
function module$contents$safevalues$builders$style_builders_concatStyles(styles) {
|
|
@@ -25210,6 +25212,9 @@ var module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES = [module$e
|
|
|
25210
25212
|
module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.FTP, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.RELATIVE];
|
|
25211
25213
|
function module$contents$safevalues$builders$url_builders_trySanitizeUrl(url, allowedSchemes) {
|
|
25212
25214
|
allowedSchemes = void 0 === allowedSchemes ? module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES : allowedSchemes;
|
|
25215
|
+
if (module$contents$safevalues$internals$url_impl_isUrl(url)) {
|
|
25216
|
+
return url;
|
|
25217
|
+
}
|
|
25213
25218
|
for (var i = 0; i < allowedSchemes.length; ++i) {
|
|
25214
25219
|
var scheme = allowedSchemes[i];
|
|
25215
25220
|
if (module$contents$safevalues$builders$url_builders_isValidScheme(scheme) && scheme.isValid(url)) {
|
|
@@ -25312,12 +25317,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
25312
25317
|
}
|
|
25313
25318
|
try {
|
|
25314
25319
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
25315
|
-
} catch ($jscomp$unused$catch$
|
|
25320
|
+
} catch ($jscomp$unused$catch$442189172$0) {
|
|
25316
25321
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
25317
25322
|
}
|
|
25318
25323
|
try {
|
|
25319
25324
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
25320
|
-
} catch ($jscomp$unused$catch$
|
|
25325
|
+
} catch ($jscomp$unused$catch$442189172$1) {
|
|
25321
25326
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
25322
25327
|
}
|
|
25323
25328
|
return !1;
|
package/build/ee_api_js_npm.js
CHANGED
|
@@ -6063,7 +6063,7 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
6063
6063
|
};
|
|
6064
6064
|
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;
|
|
6065
6065
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
6066
|
-
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 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$
|
|
6066
|
+
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 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$m192531680$0 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$0 = {mapMetadata:$jscomp$loop$m192531680$0.mapMetadata},
|
|
6067
6067
|
$jscomp$key$key = $jscomp$iter$19.next()) {
|
|
6068
6068
|
var key = $jscomp$key$key.value, value = valueGetter(key, source);
|
|
6069
6069
|
if (null != value) {
|
|
@@ -6076,11 +6076,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6076
6076
|
} else if (objects.hasOwnProperty(key)) {
|
|
6077
6077
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
6078
6078
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
6079
|
-
$jscomp$loop$
|
|
6079
|
+
$jscomp$loop$m192531680$0.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$0.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$0) {
|
|
6080
6080
|
return function(v) {
|
|
6081
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
6081
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6082
6082
|
};
|
|
6083
|
-
}($jscomp$loop$
|
|
6083
|
+
}($jscomp$loop$m192531680$0)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6084
6084
|
} else if (Array.isArray(value)) {
|
|
6085
6085
|
if (metadata.emptyArrayIsUnset && 0 === value.length) {
|
|
6086
6086
|
continue;
|
|
@@ -6126,39 +6126,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
6126
6126
|
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))) {
|
|
6127
6127
|
return !1;
|
|
6128
6128
|
}
|
|
6129
|
-
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$
|
|
6129
|
+
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$m192531680$1 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$1 = {value2$jscomp$7:$jscomp$loop$m192531680$1.value2$jscomp$7, mapMetadata$jscomp$2:$jscomp$loop$m192531680$1.mapMetadata$jscomp$2}, $jscomp$key$key = $jscomp$iter$21.next()) {
|
|
6130
6130
|
var key = $jscomp$key$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
|
|
6131
6131
|
if (has1 !== has2) {
|
|
6132
6132
|
return !1;
|
|
6133
6133
|
}
|
|
6134
6134
|
if (has1) {
|
|
6135
6135
|
var value1 = serializable1.Serializable$get(key);
|
|
6136
|
-
$jscomp$loop$
|
|
6136
|
+
$jscomp$loop$m192531680$1.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
6137
6137
|
if (arrays1.hasOwnProperty(key)) {
|
|
6138
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6138
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !0)) {
|
|
6139
6139
|
return !1;
|
|
6140
6140
|
}
|
|
6141
6141
|
} else if (objects1.hasOwnProperty(key)) {
|
|
6142
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6142
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !0)) {
|
|
6143
6143
|
return !1;
|
|
6144
6144
|
}
|
|
6145
6145
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
6146
|
-
if ($jscomp$loop$
|
|
6147
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
6146
|
+
if ($jscomp$loop$m192531680$1.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2.isPropertyArray) {
|
|
6147
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$1.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$1) {
|
|
6148
6148
|
return function(v1, i) {
|
|
6149
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
6149
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$1.value2$jscomp$7[i], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2);
|
|
6150
6150
|
};
|
|
6151
|
-
}($jscomp$loop$
|
|
6151
|
+
}($jscomp$loop$m192531680$1))) {
|
|
6152
6152
|
return !1;
|
|
6153
6153
|
}
|
|
6154
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
6154
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, $jscomp$loop$m192531680$1.mapMetadata$jscomp$2)) {
|
|
6155
6155
|
return !1;
|
|
6156
6156
|
}
|
|
6157
6157
|
} else if (Array.isArray(value1)) {
|
|
6158
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6158
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !1)) {
|
|
6159
6159
|
return !1;
|
|
6160
6160
|
}
|
|
6161
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6161
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !1)) {
|
|
6162
6162
|
return !1;
|
|
6163
6163
|
}
|
|
6164
6164
|
}
|
|
@@ -6876,7 +6876,6 @@ goog.html.SafeUrl.fromTrustedResourceUrl = function(trustedResourceUrl) {
|
|
|
6876
6876
|
return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(trustedResourceUrl));
|
|
6877
6877
|
};
|
|
6878
6878
|
goog.html.SAFE_URL_PATTERN_ = /^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;
|
|
6879
|
-
goog.html.SafeUrl.SAFE_URL_PATTERN = goog.html.SAFE_URL_PATTERN_;
|
|
6880
6879
|
goog.html.SafeUrl.trySanitize = function(url) {
|
|
6881
6880
|
if (url instanceof goog.html.SafeUrl) {
|
|
6882
6881
|
return url;
|
|
@@ -17408,7 +17407,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
|
|
|
17408
17407
|
ee.apiclient = {};
|
|
17409
17408
|
var module$contents$ee$apiclient_apiclient = {};
|
|
17410
17409
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
17411
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
17410
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.375";
|
|
17412
17411
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
17413
17412
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
17414
17413
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -17699,8 +17698,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
17699
17698
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
17700
17699
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
17701
17700
|
method = method || "POST";
|
|
17702
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
17703
|
-
"0.1.
|
|
17701
|
+
var headers = {"Content-Type":contentType}, version = "0.1.375";
|
|
17702
|
+
"0.1.375" === version && (version = "latest");
|
|
17704
17703
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
17705
17704
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
17706
17705
|
if (null != authToken) {
|
|
@@ -21800,9 +21799,9 @@ ee.ImageCollection.prototype.select = function(selectors, opt_names) {
|
|
|
21800
21799
|
};
|
|
21801
21800
|
goog.exportProperty(ee.ImageCollection.prototype, "select", ee.ImageCollection.prototype.select);
|
|
21802
21801
|
ee.ImageCollection.prototype.linkCollection = function(imageCollection, opt_linkedBands, opt_linkedProperties, opt_matchPropertyName) {
|
|
21803
|
-
var
|
|
21802
|
+
var args = ee.arguments.extractFromFunction(ee.ImageCollection.prototype.linkCollection, arguments);
|
|
21804
21803
|
return this.map(function(obj) {
|
|
21805
|
-
return ee.ApiFunction._call
|
|
21804
|
+
return ee.ApiFunction._call("Image.linkCollection", obj, args.imageCollection, args.linkedBands, args.linkedProperties, args.matchPropertyName);
|
|
21806
21805
|
});
|
|
21807
21806
|
};
|
|
21808
21807
|
goog.exportProperty(ee.ImageCollection.prototype, "linkCollection", ee.ImageCollection.prototype.linkCollection);
|
|
@@ -24335,8 +24334,8 @@ function module$contents$safevalues$internals$attribute_impl_unwrapAttributePref
|
|
|
24335
24334
|
throw Error(message);
|
|
24336
24335
|
}
|
|
24337
24336
|
module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
24338
|
-
var $jscomp$templatelit$
|
|
24339
|
-
["\\0"]), $jscomp$templatelit$
|
|
24337
|
+
var $jscomp$templatelit$1274514361$0 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$1 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$1274514361$2 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$3 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$1274514361$4 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$5 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
24338
|
+
["\\0"]), $jscomp$templatelit$1274514361$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$7 = $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"};
|
|
24340
24339
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
24341
24340
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
24342
24341
|
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 ##############################");
|
|
@@ -24350,14 +24349,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
24350
24349
|
return -1 === fn.toString().indexOf("`");
|
|
24351
24350
|
}
|
|
24352
24351
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24353
|
-
return tag($jscomp$templatelit$
|
|
24352
|
+
return tag($jscomp$templatelit$1274514361$0);
|
|
24354
24353
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24355
|
-
return tag($jscomp$templatelit$
|
|
24354
|
+
return tag($jscomp$templatelit$1274514361$1);
|
|
24356
24355
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24357
|
-
return tag($jscomp$templatelit$
|
|
24356
|
+
return tag($jscomp$templatelit$1274514361$2);
|
|
24358
24357
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24359
|
-
return tag($jscomp$templatelit$
|
|
24360
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
24358
|
+
return tag($jscomp$templatelit$1274514361$3);
|
|
24359
|
+
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$4) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$5) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$6) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$7);
|
|
24361
24360
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
24362
24361
|
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)) ?
|
|
24363
24362
|
!0 : !1;
|
|
@@ -24682,7 +24681,7 @@ function module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sani
|
|
|
24682
24681
|
}
|
|
24683
24682
|
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.isCustomElement = module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_isCustomElement;
|
|
24684
24683
|
var module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table = {}, module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_module = module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/sanitizer_table/default_sanitizer_table.closure.js"},
|
|
24685
|
-
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS = "ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER".split(" "),
|
|
24684
|
+
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS = "ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER ACRONYM BASEFONT BIG DIR HGROUP STRIKE TT".split(" "),
|
|
24686
24685
|
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES = [["A", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}]])], ["AREA", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}]])],
|
|
24687
24686
|
["LINK", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL, conditions:new Map([["rel", new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])], ["SOURCE", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])],
|
|
24688
24687
|
["IMG", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])], ["VIDEO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])], ["AUDIO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])]],
|
|
@@ -24820,7 +24819,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
24820
24819
|
return !0;
|
|
24821
24820
|
}
|
|
24822
24821
|
for (var $jscomp$iter$44 = $jscomp.makeIterator(conditions), $jscomp$key$ = $jscomp$iter$44.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$44.next()) {
|
|
24823
|
-
var $jscomp$destructuring$var54 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var54.next().value, expectedValues = $jscomp$destructuring$var54.next().value, $jscomp$optchain$
|
|
24822
|
+
var $jscomp$destructuring$var54 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var54.next().value, expectedValues = $jscomp$destructuring$var54.next().value, $jscomp$optchain$tmpm1803429925$0 = void 0, value = null == ($jscomp$optchain$tmpm1803429925$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1803429925$0.value;
|
|
24824
24823
|
if (value && !expectedValues.has(value)) {
|
|
24825
24824
|
return !1;
|
|
24826
24825
|
}
|
|
@@ -25091,23 +25090,26 @@ function module$contents$safevalues$builders$script_builders_safeScriptWithArgs(
|
|
|
25091
25090
|
module$exports$safevalues$builders$script_builders.safeScriptWithArgs = module$contents$safevalues$builders$script_builders_safeScriptWithArgs;
|
|
25092
25091
|
var module$exports$safevalues$builders$style_builders = {}, module$contents$safevalues$builders$style_builders_module = module$contents$safevalues$builders$style_builders_module || {id:"third_party/javascript/safevalues/builders/style_builders.closure.js"};
|
|
25093
25092
|
function module$contents$safevalues$builders$style_builders_safeStyle(templateObj) {
|
|
25094
|
-
|
|
25095
|
-
|
|
25093
|
+
var rest = $jscomp.getRestArguments.apply(1, arguments);
|
|
25094
|
+
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, rest.length);
|
|
25095
|
+
for (var stringifiedStyle = templateObj[0], i = 0; i < templateObj.length - 1; i++) {
|
|
25096
|
+
stringifiedStyle += String(rest[i]) + templateObj[i + 1];
|
|
25097
|
+
}
|
|
25098
|
+
if (/[<>]/.test(stringifiedStyle)) {
|
|
25099
|
+
throw Error("Forbidden characters in style string: " + stringifiedStyle);
|
|
25100
|
+
}
|
|
25096
25101
|
if (goog.DEBUG) {
|
|
25097
|
-
if (0 ===
|
|
25098
|
-
return module$contents$safevalues$internals$style_impl_createStyleInternal(
|
|
25099
|
-
}
|
|
25100
|
-
if (/[<>]/.test(style)) {
|
|
25101
|
-
throw Error("Forbidden characters in style string: " + style);
|
|
25102
|
+
if (0 === stringifiedStyle.length) {
|
|
25103
|
+
return module$contents$safevalues$internals$style_impl_createStyleInternal(stringifiedStyle);
|
|
25102
25104
|
}
|
|
25103
|
-
if (!/;$/.test(
|
|
25104
|
-
throw Error('Style string does not end with ";": ' +
|
|
25105
|
+
if (!/;$/.test(stringifiedStyle)) {
|
|
25106
|
+
throw Error('Style string does not end with ";": ' + stringifiedStyle);
|
|
25105
25107
|
}
|
|
25106
|
-
if (!/:/.test(
|
|
25107
|
-
throw Error('Style string should contain one or more ":": ' +
|
|
25108
|
+
if (!/:/.test(stringifiedStyle)) {
|
|
25109
|
+
throw Error('Style string should contain one or more ":": ' + stringifiedStyle);
|
|
25108
25110
|
}
|
|
25109
25111
|
}
|
|
25110
|
-
return module$contents$safevalues$internals$style_impl_createStyleInternal(
|
|
25112
|
+
return module$contents$safevalues$internals$style_impl_createStyleInternal(stringifiedStyle);
|
|
25111
25113
|
}
|
|
25112
25114
|
module$exports$safevalues$builders$style_builders.safeStyle = module$contents$safevalues$builders$style_builders_safeStyle;
|
|
25113
25115
|
function module$contents$safevalues$builders$style_builders_concatStyles(styles) {
|
|
@@ -25210,6 +25212,9 @@ var module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES = [module$e
|
|
|
25210
25212
|
module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.FTP, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.RELATIVE];
|
|
25211
25213
|
function module$contents$safevalues$builders$url_builders_trySanitizeUrl(url, allowedSchemes) {
|
|
25212
25214
|
allowedSchemes = void 0 === allowedSchemes ? module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES : allowedSchemes;
|
|
25215
|
+
if (module$contents$safevalues$internals$url_impl_isUrl(url)) {
|
|
25216
|
+
return url;
|
|
25217
|
+
}
|
|
25213
25218
|
for (var i = 0; i < allowedSchemes.length; ++i) {
|
|
25214
25219
|
var scheme = allowedSchemes[i];
|
|
25215
25220
|
if (module$contents$safevalues$builders$url_builders_isValidScheme(scheme) && scheme.isValid(url)) {
|
|
@@ -25312,12 +25317,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
25312
25317
|
}
|
|
25313
25318
|
try {
|
|
25314
25319
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
25315
|
-
} catch ($jscomp$unused$catch$
|
|
25320
|
+
} catch ($jscomp$unused$catch$442189172$0) {
|
|
25316
25321
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
25317
25322
|
}
|
|
25318
25323
|
try {
|
|
25319
25324
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
25320
|
-
} catch ($jscomp$unused$catch$
|
|
25325
|
+
} catch ($jscomp$unused$catch$442189172$1) {
|
|
25321
25326
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
25322
25327
|
}
|
|
25323
25328
|
return !1;
|