@google/earthengine 0.1.415 → 0.1.416
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 +755 -111
- package/build/ee_api_js.js +604 -603
- package/build/ee_api_js_debug.js +733 -89
- package/build/ee_api_js_npm.js +755 -111
- package/build/main.js +755 -111
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/examples/UserInterface/OceanTimeseriesInvestigator.js +35 -19
package/build/ee_api_js_npm.js
CHANGED
|
@@ -1197,6 +1197,33 @@ $jscomp.polyfill("Set", function(NativeSet) {
|
|
|
1197
1197
|
};
|
|
1198
1198
|
return PolyfillSet;
|
|
1199
1199
|
}, "es6", "es3");
|
|
1200
|
+
$jscomp.polyfill("String.prototype.codePointAt", function(orig) {
|
|
1201
|
+
return orig ? orig : function(position) {
|
|
1202
|
+
var string = $jscomp.checkStringArgs(this, null, "codePointAt"), size = string.length;
|
|
1203
|
+
position = Number(position) || 0;
|
|
1204
|
+
if (position >= 0 && position < size) {
|
|
1205
|
+
position |= 0;
|
|
1206
|
+
var first = string.charCodeAt(position);
|
|
1207
|
+
if (first < 55296 || first > 56319 || position + 1 === size) {
|
|
1208
|
+
return first;
|
|
1209
|
+
}
|
|
1210
|
+
var second = string.charCodeAt(position + 1);
|
|
1211
|
+
return second < 56320 || second > 57343 ? first : (first - 55296) * 1024 + second + 9216;
|
|
1212
|
+
}
|
|
1213
|
+
};
|
|
1214
|
+
}, "es6", "es3");
|
|
1215
|
+
$jscomp.polyfill("String.fromCodePoint", function(orig) {
|
|
1216
|
+
return orig ? orig : function(var_args) {
|
|
1217
|
+
for (var result = "", i = 0; i < arguments.length; i++) {
|
|
1218
|
+
var code = Number(arguments[i]);
|
|
1219
|
+
if (code < 0 || code > 1114111 || code !== Math.floor(code)) {
|
|
1220
|
+
throw new RangeError("invalid_code_point " + code);
|
|
1221
|
+
}
|
|
1222
|
+
code <= 65535 ? result += String.fromCharCode(code) : (code -= 65536, result += String.fromCharCode(code >>> 10 & 1023 | 55296), result += String.fromCharCode(code & 1023 | 56320));
|
|
1223
|
+
}
|
|
1224
|
+
return result;
|
|
1225
|
+
};
|
|
1226
|
+
}, "es6", "es3");
|
|
1200
1227
|
$jscomp.polyfill("String.prototype.trimLeft", function(orig) {
|
|
1201
1228
|
function polyfill() {
|
|
1202
1229
|
return this.replace(/^[\s\xa0]+/, "");
|
|
@@ -3349,7 +3376,7 @@ var module$contents$goog$array_map = goog.NATIVE_ARRAY_PROTOTYPES && (module$con
|
|
|
3349
3376
|
goog.array.map = module$contents$goog$array_map;
|
|
3350
3377
|
goog.array.reduce = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.reduce) ? function(arr, f, val, opt_obj) {
|
|
3351
3378
|
goog.asserts.assert(arr.length != null);
|
|
3352
|
-
opt_obj && (f = goog.bind(f, opt_obj));
|
|
3379
|
+
opt_obj && (f = goog.TRUSTED_SITE ? f.bind(opt_obj) : goog.bind(f, opt_obj));
|
|
3353
3380
|
return Array.prototype.reduce.call(arr, f, val);
|
|
3354
3381
|
} : function(arr, f, val, opt_obj) {
|
|
3355
3382
|
var rval = val;
|
|
@@ -3361,7 +3388,7 @@ goog.array.reduce = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_
|
|
|
3361
3388
|
goog.array.reduceRight = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.reduceRight) ? function(arr, f, val, opt_obj) {
|
|
3362
3389
|
goog.asserts.assert(arr.length != null);
|
|
3363
3390
|
goog.asserts.assert(f != null);
|
|
3364
|
-
opt_obj && (f = goog.bind(f, opt_obj));
|
|
3391
|
+
opt_obj && (f = goog.TRUSTED_SITE ? f.bind(opt_obj) : goog.bind(f, opt_obj));
|
|
3365
3392
|
return Array.prototype.reduceRight.call(arr, f, val);
|
|
3366
3393
|
} : function(arr, f, val, opt_obj) {
|
|
3367
3394
|
var rval = val;
|
|
@@ -6784,7 +6811,7 @@ goog.Disposable.prototype.registerDisposable = function(disposable) {
|
|
|
6784
6811
|
this.addOnDisposeCallback(goog.partial(module$contents$goog$dispose_dispose, disposable));
|
|
6785
6812
|
};
|
|
6786
6813
|
goog.Disposable.prototype.addOnDisposeCallback = function(callback, opt_scope) {
|
|
6787
|
-
this.disposed_ ? opt_scope !== void 0 ? callback.call(opt_scope) : callback() : (this.onDisposeCallbacks_ || (this.onDisposeCallbacks_ = []),
|
|
6814
|
+
this.disposed_ ? opt_scope !== void 0 ? callback.call(opt_scope) : callback() : (this.onDisposeCallbacks_ || (this.onDisposeCallbacks_ = []), opt_scope && (callback = goog.TRUSTED_SITE ? callback.bind(opt_scope) : goog.bind(callback, opt_scope)), this.onDisposeCallbacks_.push(callback));
|
|
6788
6815
|
};
|
|
6789
6816
|
goog.Disposable.prototype.disposeInternal = function() {
|
|
6790
6817
|
if (this.onDisposeCallbacks_) {
|
|
@@ -6855,7 +6882,7 @@ goog.debug.entryPointRegistry.unmonitorAllIfPossible = function(monitor) {
|
|
|
6855
6882
|
var module$contents$goog$events$BrowserFeature_purify = function(fn) {
|
|
6856
6883
|
return {valueOf:fn}.valueOf();
|
|
6857
6884
|
};
|
|
6858
|
-
goog.events.BrowserFeature = {TOUCH_ENABLED:"ontouchstart" in goog.global || !!(goog.global.document && document.documentElement && "ontouchstart" in document.documentElement) ||
|
|
6885
|
+
goog.events.BrowserFeature = {TOUCH_ENABLED:"ontouchstart" in goog.global || !!(goog.global.document && document.documentElement && "ontouchstart" in document.documentElement) || !!(goog.FEATURESET_YEAR < 2018 && goog.global.navigator && (goog.global.navigator.maxTouchPoints || goog.global.navigator.msMaxTouchPoints)), POINTER_EVENTS:goog.FEATURESET_YEAR >= 2019 || "PointerEvent" in goog.global, MSPOINTER_EVENTS:!1, PASSIVE_EVENTS:goog.FEATURESET_YEAR > 2018 || module$contents$goog$events$BrowserFeature_purify(function() {
|
|
6859
6886
|
if (!goog.global.addEventListener || !Object.defineProperty) {
|
|
6860
6887
|
return !1;
|
|
6861
6888
|
}
|
|
@@ -7639,8 +7666,8 @@ goog.events.eventTypeHelpers = {};
|
|
|
7639
7666
|
goog.events.eventTypeHelpers.getVendorPrefixedName = function(eventName) {
|
|
7640
7667
|
return goog.userAgent.WEBKIT ? "webkit" + eventName : eventName.toLowerCase();
|
|
7641
7668
|
};
|
|
7642
|
-
goog.events.eventTypeHelpers.getPointerFallbackEventName = function(pointerEventName,
|
|
7643
|
-
return goog.events.BrowserFeature.POINTER_EVENTS ? pointerEventName :
|
|
7669
|
+
goog.events.eventTypeHelpers.getPointerFallbackEventName = function(pointerEventName, fallbackEventName) {
|
|
7670
|
+
return goog.events.BrowserFeature.POINTER_EVENTS ? pointerEventName : fallbackEventName;
|
|
7644
7671
|
};
|
|
7645
7672
|
goog.events.EventType = {CLICK:"click", RIGHTCLICK:"rightclick", DBLCLICK:"dblclick", AUXCLICK:"auxclick", MOUSEDOWN:"mousedown", MOUSEUP:"mouseup", MOUSEOVER:"mouseover", MOUSEOUT:"mouseout", MOUSEMOVE:"mousemove", MOUSEENTER:"mouseenter", MOUSELEAVE:"mouseleave", MOUSECANCEL:"mousecancel", SELECTIONCHANGE:"selectionchange", SELECTSTART:"selectstart", WHEEL:"wheel", KEYPRESS:"keypress", KEYDOWN:"keydown", KEYUP:"keyup", BLUR:"blur", FOCUS:"focus", DEACTIVATE:"deactivate", FOCUSIN:"focusin", FOCUSOUT:"focusout",
|
|
7646
7673
|
CHANGE:"change", RESET:"reset", SELECT:"select", SUBMIT:"submit", INPUT:"input", PROPERTYCHANGE:"propertychange", DRAGSTART:"dragstart", DRAG:"drag", DRAGENTER:"dragenter", DRAGOVER:"dragover", DRAGLEAVE:"dragleave", DROP:"drop", DRAGEND:"dragend", TOUCHSTART:"touchstart", TOUCHMOVE:"touchmove", TOUCHEND:"touchend", TOUCHCANCEL:"touchcancel", BEFOREUNLOAD:"beforeunload", CONSOLEMESSAGE:"consolemessage", CONTEXTMENU:"contextmenu", DEVICECHANGE:"devicechange", DEVICEMOTION:"devicemotion", DEVICEORIENTATION:"deviceorientation",
|
|
@@ -7670,15 +7697,12 @@ goog.inherits(goog.events.BrowserEvent, goog.events.Event);
|
|
|
7670
7697
|
goog.events.BrowserEvent.USE_LAYER_XY_AS_OFFSET_XY = !1;
|
|
7671
7698
|
goog.events.BrowserEvent.MouseButton = {LEFT:0, MIDDLE:1, RIGHT:2, BACK:3, FORWARD:4};
|
|
7672
7699
|
goog.events.BrowserEvent.PointerType = {MOUSE:"mouse", PEN:"pen", TOUCH:"touch"};
|
|
7673
|
-
goog.events.BrowserEvent.IEButtonMap = goog.debug.freeze([1, 4, 2]);
|
|
7674
|
-
goog.events.BrowserEvent.IE_BUTTON_MAP = goog.events.BrowserEvent.IEButtonMap;
|
|
7675
|
-
goog.events.BrowserEvent.IE_POINTER_TYPE_MAP = goog.debug.freeze({2:goog.events.BrowserEvent.PointerType.TOUCH, 3:goog.events.BrowserEvent.PointerType.PEN, 4:goog.events.BrowserEvent.PointerType.MOUSE});
|
|
7676
7700
|
goog.events.BrowserEvent.prototype.init = function(e, opt_currentTarget) {
|
|
7677
7701
|
var type = this.type = e.type, relevantTouch = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : null;
|
|
7678
7702
|
this.target = e.target || e.srcElement;
|
|
7679
7703
|
this.currentTarget = opt_currentTarget;
|
|
7680
7704
|
var relatedTarget = e.relatedTarget;
|
|
7681
|
-
relatedTarget
|
|
7705
|
+
relatedTarget || (type == goog.events.EventType.MOUSEOVER ? relatedTarget = e.fromElement : type == goog.events.EventType.MOUSEOUT && (relatedTarget = e.toElement));
|
|
7682
7706
|
this.relatedTarget = relatedTarget;
|
|
7683
7707
|
relevantTouch ? (this.clientX = relevantTouch.clientX !== void 0 ? relevantTouch.clientX : relevantTouch.pageX, this.clientY = relevantTouch.clientY !== void 0 ? relevantTouch.clientY : relevantTouch.pageY, this.screenX = relevantTouch.screenX || 0, this.screenY = relevantTouch.screenY || 0) : (goog.events.BrowserEvent.USE_LAYER_XY_AS_OFFSET_XY ? (this.offsetX = e.layerX !== void 0 ? e.layerX : e.offsetX, this.offsetY = e.layerY !== void 0 ? e.layerY : e.offsetY) : (this.offsetX = goog.userAgent.WEBKIT ||
|
|
7684
7708
|
e.offsetX !== void 0 ? e.offsetX : e.layerX, this.offsetY = goog.userAgent.WEBKIT || e.offsetY !== void 0 ? e.offsetY : e.layerY), this.clientX = e.clientX !== void 0 ? e.clientX : e.pageX, this.clientY = e.clientY !== void 0 ? e.clientY : e.pageY, this.screenX = e.screenX || 0, this.screenY = e.screenY || 0);
|
|
@@ -7717,7 +7741,7 @@ goog.events.BrowserEvent.prototype.getBrowserEvent = function() {
|
|
|
7717
7741
|
return this.event_;
|
|
7718
7742
|
};
|
|
7719
7743
|
goog.events.BrowserEvent.getPointerType_ = function(e) {
|
|
7720
|
-
return
|
|
7744
|
+
return e.pointerType;
|
|
7721
7745
|
};
|
|
7722
7746
|
goog.events.Listenable = function() {
|
|
7723
7747
|
};
|
|
@@ -15285,18 +15309,6 @@ goog.asserts.dom.assertIsHtmlObjectElement = function(value) {
|
|
|
15285
15309
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.OBJECT);
|
|
15286
15310
|
};
|
|
15287
15311
|
goog.asserts.dom.assertIsHtmlScriptElement = module$contents$goog$asserts$dom_assertIsHtmlScriptElement;
|
|
15288
|
-
goog.dom.BrowserFeature = {};
|
|
15289
|
-
goog.dom.BrowserFeature.ASSUME_NO_OFFSCREEN_CANVAS = !1;
|
|
15290
|
-
goog.dom.BrowserFeature.ASSUME_OFFSCREEN_CANVAS = goog.FEATURESET_YEAR >= 2024;
|
|
15291
|
-
goog.dom.BrowserFeature.detectOffscreenCanvas_ = function(contextName) {
|
|
15292
|
-
try {
|
|
15293
|
-
return !!(new self.OffscreenCanvas(0, 0)).getContext(contextName);
|
|
15294
|
-
} catch (ex) {
|
|
15295
|
-
}
|
|
15296
|
-
return !1;
|
|
15297
|
-
};
|
|
15298
|
-
goog.dom.BrowserFeature.OFFSCREEN_CANVAS_2D = !goog.dom.BrowserFeature.ASSUME_NO_OFFSCREEN_CANVAS && (goog.dom.BrowserFeature.ASSUME_OFFSCREEN_CANVAS || goog.dom.BrowserFeature.detectOffscreenCanvas_("2d"));
|
|
15299
|
-
goog.dom.BrowserFeature.CAN_USE_PARENT_ELEMENT_PROPERTY = !0;
|
|
15300
15312
|
goog.dom.asserts = {};
|
|
15301
15313
|
goog.dom.asserts.assertIsLocation = function(o) {
|
|
15302
15314
|
if (module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS) {
|
|
@@ -15716,13 +15728,6 @@ module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanit
|
|
|
15716
15728
|
})}]];
|
|
15717
15729
|
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES),
|
|
15718
15730
|
new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES));
|
|
15719
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.CSS_SANITIZER_TABLE = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$internals$pure_pure(function() {
|
|
15720
|
-
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS.concat(["STYLE"]);
|
|
15721
|
-
})), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES), new Set(module$contents$safevalues$internals$pure_pure(function() {
|
|
15722
|
-
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES.concat(["id", "name", "class"]);
|
|
15723
|
-
})), new Map(module$contents$safevalues$internals$pure_pure(function() {
|
|
15724
|
-
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES.concat([["style", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_STYLE}]]);
|
|
15725
|
-
})));
|
|
15726
15731
|
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.LENIENT_SANITIZER_TABLE = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS.concat(["BUTTON", "INPUT"])), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES),
|
|
15727
15732
|
new Set(module$contents$safevalues$internals$pure_pure(function() {
|
|
15728
15733
|
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES.concat(["class", "id", "name"]);
|
|
@@ -15739,11 +15744,14 @@ module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_saniti
|
|
|
15739
15744
|
var module$exports$safevalues$builders$html_sanitizer$html_sanitizer = {}, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_module = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/html_sanitizer.closure.js"};
|
|
15740
15745
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizer = function() {
|
|
15741
15746
|
};
|
|
15747
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.CssSanitizer = function() {
|
|
15748
|
+
};
|
|
15742
15749
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl = function(sanitizerTable, token, styleElementSanitizer, styleAttributeSanitizer, resourceUrlPolicy) {
|
|
15743
15750
|
this.sanitizerTable = sanitizerTable;
|
|
15744
15751
|
this.styleElementSanitizer = styleElementSanitizer;
|
|
15745
15752
|
this.styleAttributeSanitizer = styleAttributeSanitizer;
|
|
15746
15753
|
this.resourceUrlPolicy = resourceUrlPolicy;
|
|
15754
|
+
this.SHADOW_DOM_INTERNAL_CSS = ":host{display:block;clip-path:inset(0);overflow:hidden}";
|
|
15747
15755
|
this.changes = [];
|
|
15748
15756
|
module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
15749
15757
|
};
|
|
@@ -15761,11 +15769,21 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
15761
15769
|
};
|
|
15762
15770
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragment = function(html) {
|
|
15763
15771
|
var inertDocument = document.implementation.createHTMLDocument("");
|
|
15764
|
-
return this.sanitizeToFragmentInternal(html, inertDocument);
|
|
15772
|
+
return this.styleElementSanitizer && this.styleAttributeSanitizer ? this.sanitizeWithCssToFragment(html, inertDocument) : this.sanitizeToFragmentInternal(html, inertDocument);
|
|
15773
|
+
};
|
|
15774
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeWithCssToFragment = function(htmlWithCss, inertDocument) {
|
|
15775
|
+
var elem = document.createElement("safevalues-with-css"), shadow = elem.attachShadow({mode:"closed"}), sanitized = this.sanitizeToFragmentInternal(htmlWithCss, inertDocument), internalStyle = document.createElement("style");
|
|
15776
|
+
internalStyle.textContent = this.SHADOW_DOM_INTERNAL_CSS;
|
|
15777
|
+
internalStyle.id = "safevalues-internal-style";
|
|
15778
|
+
shadow.appendChild(internalStyle);
|
|
15779
|
+
shadow.appendChild(sanitized);
|
|
15780
|
+
var fragment = inertDocument.createDocumentFragment();
|
|
15781
|
+
fragment.appendChild(elem);
|
|
15782
|
+
return fragment;
|
|
15765
15783
|
};
|
|
15766
15784
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
15767
|
-
for (var $jscomp$this$m1085474118$
|
|
15768
|
-
return $jscomp$this$m1085474118$
|
|
15785
|
+
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) {
|
|
15786
|
+
return $jscomp$this$m1085474118$13.nodeFilter(n);
|
|
15769
15787
|
}), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; currentNode !== null;) {
|
|
15770
15788
|
var sanitizedNode = void 0;
|
|
15771
15789
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
@@ -15800,8 +15818,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
15800
15818
|
return this.createTextNode(textNode.data);
|
|
15801
15819
|
};
|
|
15802
15820
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
15803
|
-
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$32 = (0,$jscomp.makeIterator)(dirtyAttributes), $jscomp$key$m1085474118$
|
|
15804
|
-
var $jscomp$destructuring$var31 = $jscomp$key$m1085474118$
|
|
15821
|
+
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$32 = (0,$jscomp.makeIterator)(dirtyAttributes), $jscomp$key$m1085474118$34$ = $jscomp$iter$32.next(); !$jscomp$key$m1085474118$34$.done; $jscomp$key$m1085474118$34$ = $jscomp$iter$32.next()) {
|
|
15822
|
+
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);
|
|
15805
15823
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
15806
15824
|
switch(policy.policyAction) {
|
|
15807
15825
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -15833,9 +15851,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
15833
15851
|
break;
|
|
15834
15852
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:
|
|
15835
15853
|
if (this.resourceUrlPolicy) {
|
|
15836
|
-
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$31 = (0,$jscomp.makeIterator)(srcset.parts), $jscomp$key$m1085474118$
|
|
15854
|
+
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$31 = (0,$jscomp.makeIterator)(srcset.parts), $jscomp$key$m1085474118$33$part = $jscomp$iter$31.next(); !$jscomp$key$m1085474118$33$part.done; $jscomp$key$m1085474118$33$part =
|
|
15837
15855
|
$jscomp$iter$31.next()) {
|
|
15838
|
-
var part = $jscomp$key$m1085474118$
|
|
15856
|
+
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);
|
|
15839
15857
|
sanitizedUrl$jscomp$0 && sanitizedSrcset.parts.push({url:sanitizedUrl$jscomp$0.toString(), descriptor:part.descriptor});
|
|
15840
15858
|
}
|
|
15841
15859
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(sanitizedSrcset));
|
|
@@ -15879,8 +15897,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
15879
15897
|
if (!conditions) {
|
|
15880
15898
|
return !0;
|
|
15881
15899
|
}
|
|
15882
|
-
for (var $jscomp$iter$33 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$m1085474118$
|
|
15883
|
-
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$m1085474118$
|
|
15900
|
+
for (var $jscomp$iter$33 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$m1085474118$35$ = $jscomp$iter$33.next(); !$jscomp$key$m1085474118$35$.done; $jscomp$key$m1085474118$35$ = $jscomp$iter$33.next()) {
|
|
15901
|
+
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;
|
|
15884
15902
|
if (value && !expectedValues.has(value)) {
|
|
15885
15903
|
return !1;
|
|
15886
15904
|
}
|
|
@@ -15895,8 +15913,8 @@ function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_Srcse
|
|
|
15895
15913
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.Srcset = function() {
|
|
15896
15914
|
};
|
|
15897
15915
|
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(srcset) {
|
|
15898
|
-
for (var parts = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$m1085474118$
|
|
15899
|
-
var $jscomp$destructuring$var34 = (0,$jscomp.makeIterator)($jscomp$key$m1085474118$
|
|
15916
|
+
for (var parts = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$m1085474118$36$part = $jscomp$iter$34.next(); !$jscomp$key$m1085474118$36$part.done; $jscomp$key$m1085474118$36$part = $jscomp$iter$34.next()) {
|
|
15917
|
+
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;
|
|
15900
15918
|
parts.push({url:url__tsickle_destructured_3, descriptor:descriptor__tsickle_destructured_4});
|
|
15901
15919
|
}
|
|
15902
15920
|
return {parts:parts};
|
|
@@ -15947,14 +15965,600 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.superLenientlyS
|
|
|
15947
15965
|
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_checkExhaustive(value, msg) {
|
|
15948
15966
|
throw Error(msg === void 0 ? "unexpected value " + value + "!" : msg);
|
|
15949
15967
|
}
|
|
15950
|
-
;var module$exports$safevalues$builders$html_sanitizer$
|
|
15951
|
-
module$exports$safevalues$builders$html_sanitizer$
|
|
15968
|
+
;var module$exports$safevalues$builders$html_sanitizer$css$allowlists = {}, module$contents$safevalues$builders$html_sanitizer$css$allowlists_module = module$contents$safevalues$builders$html_sanitizer$css$allowlists_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/css/allowlists.closure.js"};
|
|
15969
|
+
module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST = new Set("accent-color align-content align-items align-self alignment-baseline all appearance aspect-ratio backdrop-filter backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-position-x background-position-y background-repeat background-size block-size border border-block border-block-color border-block-end border-block-end-color border-block-end-style border-block-end-width border-block-start border-block-start-color border-block-start-style border-block-start-width border-block-style border-block-width border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-end-end-radius border-end-start-radius border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-inline border-inline-color border-inline-end border-inline-end-color border-inline-end-style border-inline-end-width border-inline-start border-inline-start-color border-inline-start-style border-inline-start-width border-inline-style border-inline-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-start-end-radius border-start-start-radius border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-shadow box-sizing caption-side caret-color clear clip clip-path clip-rule color color-interpolation color-interpolation-filters color-scheme column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns contain contain-intrinsic-block-size contain-intrinsic-height contain-intrinsic-inline-size contain-intrinsic-size contain-intrinsic-width content content-visibility counter-increment counter-reset counter-set cx cy d display dominant-baseline empty-cells field-sizing fill fill-opacity fill-rule filter flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float flood-color flood-opacity font font-family font-feature-settings font-kerning font-optical-sizing font-palette font-size font-size-adjust font-stretch font-style font-synthesis font-synthesis-small-caps font-synthesis-style font-synthesis-weight font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-emoji font-variant-ligatures font-variant-numeric font-variant-position font-variation-settings font-weight forced-color-adjust gap grid grid-area grid-auto-columns grid-auto-flow grid-auto-rows grid-column grid-column-end grid-column-gap grid-column-start grid-gap grid-row grid-row-end grid-row-gap grid-row-start grid-template grid-template-areas grid-template-columns grid-template-rows height hyphenate-character hyphenate-limit-chars hyphens image-orientation image-rendering inline-size inset inset-area inset-block inset-block-end inset-block-start inset-inline inset-inline-end inset-inline-start isolation justify-content justify-items justify-self left letter-spacing lighting-color line-break line-clamp line-gap-override line-height list-style list-style-image list-style-position list-style-type margin margin-block margin-block-end margin-block-start margin-bottom margin-inline margin-inline-end margin-inline-start margin-left margin-right margin-top marker marker-end marker-mid marker-start mask mask-clip mask-composite mask-image mask-mode mask-origin mask-position mask-repeat mask-size mask-type max-block-size max-height max-inline-size max-width min-block-size min-height min-inline-size min-width mix-blend-mode object-fit object-position object-view-box opacity order orphans outline outline-color outline-offset outline-style outline-width overflow overflow-anchor overflow-block overflow-clip-margin overflow-inline overflow-wrap overflow-x overflow-y padding padding-block padding-block-end padding-block-start padding-bottom padding-inline padding-inline-end padding-inline-start padding-left padding-right padding-top paint-order perspective perspective-origin place-content place-items place-self position quotes r resize right rotate row-gap ruby-align ruby-position rx ry scale shape-image-threshold shape-margin shape-outside shape-rendering stop-color stop-opacity stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width tab-size table-layout text-align text-align-last text-anchor text-autospace text-box-edge text-box-trim text-combine-upright text-decoration text-decoration-color text-decoration-line text-decoration-skip-ink text-decoration-style text-decoration-thickness text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style text-indent text-orientation text-overflow text-rendering text-shadow text-size-adjust text-spacing text-spacing-trim text-transform text-underline-offset text-underline-position text-wrap top transform transform-box transform-origin transform-style translate unicode-bidi vector-effect vertical-align visibility white-space white-space-collapse widows width will-change word-break word-spacing word-wrap writing-mode x y z-index zoom animation animation-composition animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-range animation-range-end animation-range-start animation-timeline animation-timing-function offset offset-anchor offset-distance offset-path offset-position offset-rotate transition transition-behavior transition-delay transition-duration transition-property transition-timing-function".split(" "));
|
|
15970
|
+
module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST = new Set("alpha cubic-bezier linear-gradient matrix perspective radial-gradient rect repeating-linear-gradient repeating-radial-gradient rgb rgba rotate rotate3d rotatex rotatey rotatez scale scale3d scalex scaley scalez skew skewx skewy steps translate translate3d translatex translatey translatez url".split(" "));
|
|
15971
|
+
var module$exports$safevalues$builders$html_sanitizer$css$tokens = {}, module$contents$safevalues$builders$html_sanitizer$css$tokens_module = module$contents$safevalues$builders$html_sanitizer$css$tokens_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/css/tokens.closure.js"};
|
|
15972
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind = {AT_KEYWORD:0, CDC:1, CDO:2, CLOSE_CURLY:3, CLOSE_PAREN:4, CLOSE_SQUARE:5, COLON:6, COMMA:7, DELIM:8, DIMENSION:9, EOF:10, FUNCTION:11, HASH:12, IDENT:13, NUMBER:14, OPEN_CURLY:15, OPEN_PAREN:16, OPEN_SQUARE:17, PERCENTAGE:18, SEMICOLON:19, STRING:20, WHITESPACE:21};
|
|
15973
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.AT_KEYWORD] = "AT_KEYWORD";
|
|
15974
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CDC] = "CDC";
|
|
15975
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CDO] = "CDO";
|
|
15976
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_CURLY] = "CLOSE_CURLY";
|
|
15977
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_PAREN] = "CLOSE_PAREN";
|
|
15978
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_SQUARE] = "CLOSE_SQUARE";
|
|
15979
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COLON] = "COLON";
|
|
15980
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COMMA] = "COMMA";
|
|
15981
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM] = "DELIM";
|
|
15982
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DIMENSION] = "DIMENSION";
|
|
15983
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF] = "EOF";
|
|
15984
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION] = "FUNCTION";
|
|
15985
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.HASH] = "HASH";
|
|
15986
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.IDENT] = "IDENT";
|
|
15987
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER] = "NUMBER";
|
|
15988
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_CURLY] = "OPEN_CURLY";
|
|
15989
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_PAREN] = "OPEN_PAREN";
|
|
15990
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_SQUARE] = "OPEN_SQUARE";
|
|
15991
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.PERCENTAGE] = "PERCENTAGE";
|
|
15992
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.SEMICOLON] = "SEMICOLON";
|
|
15993
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING] = "STRING";
|
|
15994
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE] = "WHITESPACE";
|
|
15995
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.AtKeywordToken = function() {
|
|
15996
|
+
};
|
|
15997
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CdcToken = function() {
|
|
15998
|
+
};
|
|
15999
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CdoToken = function() {
|
|
16000
|
+
};
|
|
16001
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CloseCurlyToken = function() {
|
|
16002
|
+
};
|
|
16003
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CloseParenToken = function() {
|
|
16004
|
+
};
|
|
16005
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CloseSquareToken = function() {
|
|
16006
|
+
};
|
|
16007
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.ColonToken = function() {
|
|
16008
|
+
};
|
|
16009
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.CommaToken = function() {
|
|
16010
|
+
};
|
|
16011
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.DelimToken = function() {
|
|
16012
|
+
};
|
|
16013
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.DimensionToken = function() {
|
|
16014
|
+
};
|
|
16015
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.EofToken = function() {
|
|
16016
|
+
};
|
|
16017
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.FunctionToken = function() {
|
|
16018
|
+
};
|
|
16019
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.HashToken = function() {
|
|
16020
|
+
};
|
|
16021
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.IdentToken = function() {
|
|
16022
|
+
};
|
|
16023
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.NumberToken = function() {
|
|
16024
|
+
};
|
|
16025
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.OpenCurlyToken = function() {
|
|
16026
|
+
};
|
|
16027
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.OpenParenToken = function() {
|
|
16028
|
+
};
|
|
16029
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.OpenSquareToken = function() {
|
|
16030
|
+
};
|
|
16031
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.PercentageToken = function() {
|
|
16032
|
+
};
|
|
16033
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.SemicolonToken = function() {
|
|
16034
|
+
};
|
|
16035
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.StringToken = function() {
|
|
16036
|
+
};
|
|
16037
|
+
module$exports$safevalues$builders$html_sanitizer$css$tokens.WhitespaceToken = function() {
|
|
16038
|
+
};
|
|
16039
|
+
var module$exports$safevalues$builders$html_sanitizer$css$serializer = {}, module$contents$safevalues$builders$html_sanitizer$css$serializer_module = module$contents$safevalues$builders$html_sanitizer$css$serializer_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/css/serializer.closure.js"};
|
|
16040
|
+
function module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeCodePoint(c) {
|
|
16041
|
+
return "\\" + c.codePointAt(0).toString(16) + " ";
|
|
16042
|
+
}
|
|
16043
|
+
function module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeString(str) {
|
|
16044
|
+
return '"' + str.replace(/[^A-Za-z0-9_/. :,?=%;-]/g, function(c) {
|
|
16045
|
+
return module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeCodePoint(c);
|
|
16046
|
+
}) + '"';
|
|
16047
|
+
}
|
|
16048
|
+
function module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(ident) {
|
|
16049
|
+
return (/^[^A-Za-z_]/.test(ident) ? module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeCodePoint(ident[0]) : ident[0]) + ident.slice(1).replace(/[^A-Za-z0-9_-]/g, function(c) {
|
|
16050
|
+
return module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeCodePoint(c);
|
|
16051
|
+
});
|
|
16052
|
+
}
|
|
16053
|
+
module$exports$safevalues$builders$html_sanitizer$css$serializer.escapeIdent = module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent;
|
|
16054
|
+
function module$contents$safevalues$builders$html_sanitizer$css$serializer_serializeToken(token) {
|
|
16055
|
+
switch(token.tokenKind) {
|
|
16056
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.AT_KEYWORD:
|
|
16057
|
+
return "@" + module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(token.name);
|
|
16058
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CDC:
|
|
16059
|
+
return "--\x3e";
|
|
16060
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CDO:
|
|
16061
|
+
return "\x3c!--";
|
|
16062
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_CURLY:
|
|
16063
|
+
return "}";
|
|
16064
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_PAREN:
|
|
16065
|
+
return ")";
|
|
16066
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_SQUARE:
|
|
16067
|
+
return "]";
|
|
16068
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COLON:
|
|
16069
|
+
return ":";
|
|
16070
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COMMA:
|
|
16071
|
+
return ",";
|
|
16072
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM:
|
|
16073
|
+
return token.codePoint === "\\" ? "\\\n" : token.codePoint;
|
|
16074
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DIMENSION:
|
|
16075
|
+
return token.repr + module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(token.dimension);
|
|
16076
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF:
|
|
16077
|
+
return "";
|
|
16078
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION:
|
|
16079
|
+
return module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(token.lowercaseName) + "(";
|
|
16080
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.HASH:
|
|
16081
|
+
return "#" + module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(token.value);
|
|
16082
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.IDENT:
|
|
16083
|
+
return module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(token.ident);
|
|
16084
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER:
|
|
16085
|
+
return token.repr;
|
|
16086
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_CURLY:
|
|
16087
|
+
return "{";
|
|
16088
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_PAREN:
|
|
16089
|
+
return "(";
|
|
16090
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_SQUARE:
|
|
16091
|
+
return "[";
|
|
16092
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.PERCENTAGE:
|
|
16093
|
+
return token.repr + "%";
|
|
16094
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.SEMICOLON:
|
|
16095
|
+
return ";";
|
|
16096
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING:
|
|
16097
|
+
return module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeString(token.value);
|
|
16098
|
+
case module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE:
|
|
16099
|
+
return " ";
|
|
16100
|
+
default:
|
|
16101
|
+
module$contents$safevalues$builders$html_sanitizer$css$serializer_checkExhaustive(token);
|
|
16102
|
+
}
|
|
16103
|
+
}
|
|
16104
|
+
module$exports$safevalues$builders$html_sanitizer$css$serializer.serializeToken = module$contents$safevalues$builders$html_sanitizer$css$serializer_serializeToken;
|
|
16105
|
+
function module$contents$safevalues$builders$html_sanitizer$css$serializer_serializeTokens(tokens) {
|
|
16106
|
+
return tokens.map(module$contents$safevalues$builders$html_sanitizer$css$serializer_serializeToken).join("");
|
|
16107
|
+
}
|
|
16108
|
+
module$exports$safevalues$builders$html_sanitizer$css$serializer.serializeTokens = module$contents$safevalues$builders$html_sanitizer$css$serializer_serializeTokens;
|
|
16109
|
+
function module$contents$safevalues$builders$html_sanitizer$css$serializer_checkExhaustive(value, msg) {
|
|
16110
|
+
throw Error(msg === void 0 ? "unexpected value " + value + "!" : msg);
|
|
16111
|
+
}
|
|
16112
|
+
;var module$contents$safevalues$builders$html_sanitizer$css$tokenizer_module = module$contents$safevalues$builders$html_sanitizer$css$tokenizer_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/css/tokenizer.closure.js"}, module$contents$safevalues$builders$html_sanitizer$css$tokenizer_HEX_DIGIT_REGEX = /^[0-9a-fA-F]$/, module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer =
|
|
16113
|
+
function(css) {
|
|
16114
|
+
this.pos = 0;
|
|
16115
|
+
this.css = this.preprocess(css);
|
|
16116
|
+
};
|
|
16117
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.tokenize = function() {
|
|
16118
|
+
for (var tokens = [], lastToken = void 0;;) {
|
|
16119
|
+
var token = this.consumeToken();
|
|
16120
|
+
if (Array.isArray(token)) {
|
|
16121
|
+
tokens.push.apply(tokens, (0,$jscomp.arrayFromIterable)(token));
|
|
16122
|
+
} else {
|
|
16123
|
+
var $jscomp$optchain$tmpm282935782$0 = void 0;
|
|
16124
|
+
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) {
|
|
16125
|
+
tokens.push(token);
|
|
16126
|
+
if (token.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF) {
|
|
16127
|
+
return tokens;
|
|
16128
|
+
}
|
|
16129
|
+
lastToken = token;
|
|
16130
|
+
}
|
|
16131
|
+
}
|
|
16132
|
+
}
|
|
16133
|
+
};
|
|
16134
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextInputCodePoint = function() {
|
|
16135
|
+
return this.css[this.pos];
|
|
16136
|
+
};
|
|
16137
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputCodePoints = function() {
|
|
16138
|
+
return [this.css[this.pos], this.css[this.pos + 1]];
|
|
16139
|
+
};
|
|
16140
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextThreeInputCodePoints = function() {
|
|
16141
|
+
return [this.css[this.pos], this.css[this.pos + 1], this.css[this.pos + 2]];
|
|
16142
|
+
};
|
|
16143
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.currentInputCodePoint = function() {
|
|
16144
|
+
return this.css[this.pos - 1];
|
|
16145
|
+
};
|
|
16146
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextNInputCodePoints = function(n) {
|
|
16147
|
+
return this.css.slice(this.pos, this.pos + n);
|
|
16148
|
+
};
|
|
16149
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeTheNextInputCodePoint = function() {
|
|
16150
|
+
this.pos++;
|
|
16151
|
+
};
|
|
16152
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeNInputCodePoints = function(n) {
|
|
16153
|
+
this.pos += n;
|
|
16154
|
+
};
|
|
16155
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.reconsumeTheCurrentInputCodePoint = function() {
|
|
16156
|
+
this.pos--;
|
|
16157
|
+
};
|
|
16158
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.preprocess = function(css) {
|
|
16159
|
+
return css.replace(/[\x0d\x0c]|\x0d\x0a/g, "\n").replace(/\x00/g, "\ufffd");
|
|
16160
|
+
};
|
|
16161
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeToken = function() {
|
|
16162
|
+
if (this.consumeComments()) {
|
|
16163
|
+
return {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE};
|
|
16164
|
+
}
|
|
16165
|
+
var codePoint = this.nextInputCodePoint();
|
|
16166
|
+
this.consumeTheNextInputCodePoint();
|
|
16167
|
+
if (codePoint === void 0) {
|
|
16168
|
+
return {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF};
|
|
16169
|
+
}
|
|
16170
|
+
if (this.isWhitespace(codePoint)) {
|
|
16171
|
+
return this.consumeAsMuchWhitespaceAsPossible(), {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE};
|
|
16172
|
+
}
|
|
16173
|
+
if (codePoint === "'" || codePoint === '"') {
|
|
16174
|
+
return this.consumeString(codePoint);
|
|
16175
|
+
}
|
|
16176
|
+
if (codePoint === "#") {
|
|
16177
|
+
return this.isIdentCodePoint(this.nextInputCodePoint()) || this.twoCodePointsAreValidEscape.apply(this, (0,$jscomp.arrayFromIterable)(this.nextTwoInputCodePoints())) ? {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.HASH, value:this.consumeIdentSequence()} : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM, codePoint:"#"};
|
|
16178
|
+
}
|
|
16179
|
+
if (codePoint === "(") {
|
|
16180
|
+
return {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_PAREN};
|
|
16181
|
+
}
|
|
16182
|
+
if (codePoint === ")") {
|
|
16183
|
+
return {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_PAREN};
|
|
16184
|
+
}
|
|
16185
|
+
if (codePoint === "+") {
|
|
16186
|
+
return this.streamStartsWithANumber() ? (this.reconsumeTheCurrentInputCodePoint(), this.consumeNumericToken()) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM, codePoint:"+"};
|
|
16187
|
+
}
|
|
16188
|
+
if (codePoint === ",") {
|
|
16189
|
+
return {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COMMA};
|
|
16190
|
+
}
|
|
16191
|
+
if (codePoint === "-") {
|
|
16192
|
+
return this.streamStartsWithANumber() ? (this.reconsumeTheCurrentInputCodePoint(), this.consumeNumericToken()) : this.nextNInputCodePoints(2) === "->" ? (this.consumeNInputCodePoints(2), {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CDC}) : this.streamStartsWithAnIdentSequence() ? (this.reconsumeTheCurrentInputCodePoint(), this.consumeIdentLikeToken()) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM,
|
|
16193
|
+
codePoint:"-"};
|
|
16194
|
+
}
|
|
16195
|
+
if (codePoint === ".") {
|
|
16196
|
+
return this.streamStartsWithANumber() ? (this.reconsumeTheCurrentInputCodePoint(), this.consumeNumericToken()) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM, codePoint:"."};
|
|
16197
|
+
}
|
|
16198
|
+
if (codePoint === ":") {
|
|
16199
|
+
return {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COLON};
|
|
16200
|
+
}
|
|
16201
|
+
if (codePoint === ";") {
|
|
16202
|
+
return {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.SEMICOLON};
|
|
16203
|
+
}
|
|
16204
|
+
if (codePoint === "<") {
|
|
16205
|
+
return this.nextNInputCodePoints(3) === "!--" ? (this.consumeNInputCodePoints(3), {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CDO}) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM, codePoint:"<"};
|
|
16206
|
+
}
|
|
16207
|
+
if (codePoint === "@") {
|
|
16208
|
+
if (this.threeCodePointsWouldStartAnIdentSequence.apply(this, (0,$jscomp.arrayFromIterable)(this.nextThreeInputCodePoints()))) {
|
|
16209
|
+
var ident = this.consumeIdentSequence();
|
|
16210
|
+
return {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.AT_KEYWORD, name:ident};
|
|
16211
|
+
}
|
|
16212
|
+
return {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM, codePoint:"@"};
|
|
16213
|
+
}
|
|
16214
|
+
return codePoint === "\\" ? this.streamStartsWithValidEscape() ? (this.reconsumeTheCurrentInputCodePoint(), this.consumeIdentLikeToken()) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM, codePoint:"\\"} : codePoint === "[" ? {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_SQUARE} : codePoint === "]" ? {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_SQUARE} :
|
|
16215
|
+
codePoint === "{" ? {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_CURLY} : codePoint === "}" ? {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_CURLY} : this.isDigit(codePoint) ? (this.reconsumeTheCurrentInputCodePoint(), this.consumeNumericToken()) : this.isIdentStartCodePoint(codePoint) ? (this.reconsumeTheCurrentInputCodePoint(), this.consumeIdentLikeToken()) :
|
|
16216
|
+
{tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM, codePoint:codePoint};
|
|
16217
|
+
};
|
|
16218
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeComments = function() {
|
|
16219
|
+
for (var anyComments = !1; this.nextNInputCodePoints(2) === "/*";) {
|
|
16220
|
+
anyComments = !0;
|
|
16221
|
+
this.consumeNInputCodePoints(2);
|
|
16222
|
+
var endIndex = this.css.indexOf("*/", this.pos);
|
|
16223
|
+
if (endIndex === -1) {
|
|
16224
|
+
this.pos = this.css.length;
|
|
16225
|
+
break;
|
|
16226
|
+
}
|
|
16227
|
+
this.pos = endIndex + 2;
|
|
16228
|
+
}
|
|
16229
|
+
return anyComments;
|
|
16230
|
+
};
|
|
16231
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeString = function(quote) {
|
|
16232
|
+
for (var stringToken = {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING, value:""};;) {
|
|
16233
|
+
var codePoint = this.nextInputCodePoint();
|
|
16234
|
+
this.consumeTheNextInputCodePoint();
|
|
16235
|
+
if (codePoint === void 0 || codePoint === quote) {
|
|
16236
|
+
return stringToken;
|
|
16237
|
+
}
|
|
16238
|
+
if (this.isNewline(codePoint)) {
|
|
16239
|
+
return this.reconsumeTheCurrentInputCodePoint(), stringToken.value = "", stringToken;
|
|
16240
|
+
}
|
|
16241
|
+
if (codePoint === "\\") {
|
|
16242
|
+
if (this.nextInputCodePoint() !== void 0) {
|
|
16243
|
+
if (this.isNewline(this.nextInputCodePoint())) {
|
|
16244
|
+
this.consumeTheNextInputCodePoint();
|
|
16245
|
+
} else {
|
|
16246
|
+
var escapedCodePoint = this.consumeEscapedCodePoint();
|
|
16247
|
+
stringToken.value += escapedCodePoint;
|
|
16248
|
+
}
|
|
16249
|
+
}
|
|
16250
|
+
} else {
|
|
16251
|
+
stringToken.value += codePoint;
|
|
16252
|
+
}
|
|
16253
|
+
}
|
|
16254
|
+
};
|
|
16255
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeEscapedCodePoint = function() {
|
|
16256
|
+
var codePoint = this.nextInputCodePoint();
|
|
16257
|
+
this.consumeTheNextInputCodePoint();
|
|
16258
|
+
if (codePoint === void 0) {
|
|
16259
|
+
return "\ufffd";
|
|
16260
|
+
}
|
|
16261
|
+
if (this.isHexDigit(codePoint)) {
|
|
16262
|
+
for (var hexDigits = codePoint; this.isHexDigit(this.nextInputCodePoint()) && hexDigits.length < 6;) {
|
|
16263
|
+
hexDigits += this.nextInputCodePoint(), this.consumeTheNextInputCodePoint();
|
|
16264
|
+
}
|
|
16265
|
+
this.isWhitespace(this.nextInputCodePoint()) && this.consumeTheNextInputCodePoint();
|
|
16266
|
+
return String.fromCodePoint(parseInt(hexDigits, 16));
|
|
16267
|
+
}
|
|
16268
|
+
return codePoint;
|
|
16269
|
+
};
|
|
16270
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeAsMuchWhitespaceAsPossible = function() {
|
|
16271
|
+
for (; this.isWhitespace(this.nextInputCodePoint());) {
|
|
16272
|
+
this.consumeTheNextInputCodePoint();
|
|
16273
|
+
}
|
|
16274
|
+
};
|
|
16275
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeIdentSequence = function() {
|
|
16276
|
+
for (var result = "";;) {
|
|
16277
|
+
var codePoint = this.nextInputCodePoint();
|
|
16278
|
+
this.consumeTheNextInputCodePoint();
|
|
16279
|
+
var codePoint2 = this.nextInputCodePoint();
|
|
16280
|
+
if (this.isIdentCodePoint(codePoint)) {
|
|
16281
|
+
result += codePoint;
|
|
16282
|
+
} else if (this.twoCodePointsAreValidEscape(codePoint, codePoint2)) {
|
|
16283
|
+
result += this.consumeEscapedCodePoint();
|
|
16284
|
+
} else {
|
|
16285
|
+
return this.reconsumeTheCurrentInputCodePoint(), result;
|
|
16286
|
+
}
|
|
16287
|
+
}
|
|
16288
|
+
};
|
|
16289
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeIdentLikeToken = function() {
|
|
16290
|
+
var ident = this.consumeIdentSequence();
|
|
16291
|
+
if (/^url$/i.test(ident) && this.nextInputCodePoint() === "(") {
|
|
16292
|
+
for (this.consumeTheNextInputCodePoint(); this.nextTwoInputsPointsAreWhitespace();) {
|
|
16293
|
+
this.consumeTheNextInputCodePoint();
|
|
16294
|
+
}
|
|
16295
|
+
var nextTwo = this.nextTwoInputCodePoints();
|
|
16296
|
+
return this.isWhitespace(nextTwo[0]) && (nextTwo[1] === '"' || nextTwo[1] === "'") || nextTwo[0] === '"' || nextTwo[0] === "'" ? {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION, lowercaseName:"url"} : this.consumeUrlToken();
|
|
16297
|
+
}
|
|
16298
|
+
return this.nextInputCodePoint() === "(" ? (this.consumeTheNextInputCodePoint(), {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION, lowercaseName:ident.toLowerCase()}) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.IDENT, ident:ident};
|
|
16299
|
+
};
|
|
16300
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeUrlToken = function() {
|
|
16301
|
+
var url = "";
|
|
16302
|
+
for (this.consumeAsMuchWhitespaceAsPossible();;) {
|
|
16303
|
+
var codePoint = this.nextInputCodePoint();
|
|
16304
|
+
this.consumeTheNextInputCodePoint();
|
|
16305
|
+
if (codePoint === ")" || codePoint === void 0) {
|
|
16306
|
+
return this.createFunctionUrlToken(url);
|
|
16307
|
+
}
|
|
16308
|
+
if (this.isWhitespace(codePoint)) {
|
|
16309
|
+
this.consumeAsMuchWhitespaceAsPossible();
|
|
16310
|
+
if (this.nextInputCodePoint() === ")" || this.nextInputCodePoint() === void 0) {
|
|
16311
|
+
return this.consumeTheNextInputCodePoint(), this.createFunctionUrlToken(url);
|
|
16312
|
+
}
|
|
16313
|
+
this.consumeRemnantsOfBadUrl();
|
|
16314
|
+
return this.createFunctionUrlToken("");
|
|
16315
|
+
}
|
|
16316
|
+
if (codePoint === '"' || codePoint === "'" || codePoint === "(" || this.isNonPrintableCodePoint(codePoint)) {
|
|
16317
|
+
return this.consumeRemnantsOfBadUrl(), this.createFunctionUrlToken("");
|
|
16318
|
+
}
|
|
16319
|
+
if (codePoint === "\\") {
|
|
16320
|
+
if (this.streamStartsWithValidEscape()) {
|
|
16321
|
+
url += this.consumeEscapedCodePoint();
|
|
16322
|
+
} else {
|
|
16323
|
+
return this.consumeRemnantsOfBadUrl(), this.createFunctionUrlToken("");
|
|
16324
|
+
}
|
|
16325
|
+
} else {
|
|
16326
|
+
url += codePoint;
|
|
16327
|
+
}
|
|
16328
|
+
}
|
|
16329
|
+
};
|
|
16330
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.createFunctionUrlToken = function(url) {
|
|
16331
|
+
return [{tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION, lowercaseName:"url"}, {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING, value:url}, {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_PAREN}];
|
|
16332
|
+
};
|
|
16333
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeRemnantsOfBadUrl = function() {
|
|
16334
|
+
for (;;) {
|
|
16335
|
+
var codePoint = this.nextInputCodePoint();
|
|
16336
|
+
this.consumeTheNextInputCodePoint();
|
|
16337
|
+
if (codePoint === void 0 || codePoint === ")") {
|
|
16338
|
+
break;
|
|
16339
|
+
} else {
|
|
16340
|
+
this.streamStartsWithValidEscape() && this.consumeEscapedCodePoint();
|
|
16341
|
+
}
|
|
16342
|
+
}
|
|
16343
|
+
};
|
|
16344
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeNumber = function() {
|
|
16345
|
+
var repr = "", next = this.nextInputCodePoint();
|
|
16346
|
+
if (next === "+" || next === "-") {
|
|
16347
|
+
this.consumeTheNextInputCodePoint(), repr += next;
|
|
16348
|
+
}
|
|
16349
|
+
repr += this.consumeDigits();
|
|
16350
|
+
var next2 = this.css[this.pos + 1];
|
|
16351
|
+
this.nextInputCodePoint() === "." && this.isDigit(next2) && (this.consumeTheNextInputCodePoint(), repr += "." + this.consumeDigits());
|
|
16352
|
+
var next$jscomp$0 = this.nextInputCodePoint(), next2$jscomp$0 = this.css[this.pos + 1], next3 = this.css[this.pos + 2];
|
|
16353
|
+
if (next$jscomp$0 === "e" || next$jscomp$0 === "E") {
|
|
16354
|
+
next2$jscomp$0 !== "+" && next2$jscomp$0 !== "-" || !this.isDigit(next3) ? this.isDigit(next2$jscomp$0) && (this.consumeTheNextInputCodePoint(), repr += next$jscomp$0 + this.consumeDigits()) : (this.consumeNInputCodePoints(2), repr += next$jscomp$0 + next2$jscomp$0 + this.consumeDigits());
|
|
16355
|
+
}
|
|
16356
|
+
return repr;
|
|
16357
|
+
};
|
|
16358
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeDigits = function() {
|
|
16359
|
+
for (var repr = ""; this.isDigit(this.nextInputCodePoint());) {
|
|
16360
|
+
repr += this.nextInputCodePoint(), this.consumeTheNextInputCodePoint();
|
|
16361
|
+
}
|
|
16362
|
+
return repr;
|
|
16363
|
+
};
|
|
16364
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeNumericToken = function() {
|
|
16365
|
+
var repr = this.consumeNumber();
|
|
16366
|
+
return this.threeCodePointsWouldStartAnIdentSequence.apply(this, (0,$jscomp.arrayFromIterable)(this.nextThreeInputCodePoints())) ? {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DIMENSION, repr:repr, dimension:this.consumeIdentSequence()} : this.nextInputCodePoint() === "%" ? (this.consumeTheNextInputCodePoint(), {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.PERCENTAGE,
|
|
16367
|
+
repr:repr}) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER, repr:repr};
|
|
16368
|
+
};
|
|
16369
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputsPointsAreWhitespace = function() {
|
|
16370
|
+
var $jscomp$this$m282935782$26 = this;
|
|
16371
|
+
return this.nextTwoInputCodePoints().every(function(c) {
|
|
16372
|
+
return $jscomp$this$m282935782$26.isWhitespace(c);
|
|
16373
|
+
});
|
|
16374
|
+
};
|
|
16375
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.twoCodePointsAreValidEscape = function(codePoint1, codePoint2) {
|
|
16376
|
+
return codePoint1 === "\\" && codePoint2 !== "\n";
|
|
16377
|
+
};
|
|
16378
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.streamStartsWithValidEscape = function() {
|
|
16379
|
+
return this.twoCodePointsAreValidEscape(this.currentInputCodePoint(), this.nextInputCodePoint());
|
|
16380
|
+
};
|
|
16381
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.threeCodePointsWouldStartANumber = function(codePoint1, codePoint2, codePoint3) {
|
|
16382
|
+
return codePoint1 === "+" || codePoint1 === "-" ? this.isDigit(codePoint2) || codePoint2 === "." && this.isDigit(codePoint3) : codePoint1 === "." ? this.isDigit(codePoint2) : this.isDigit(codePoint1);
|
|
16383
|
+
};
|
|
16384
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.streamStartsWithANumber = function() {
|
|
16385
|
+
return this.threeCodePointsWouldStartANumber.apply(this, [this.currentInputCodePoint()].concat((0,$jscomp.arrayFromIterable)(this.nextTwoInputCodePoints())));
|
|
16386
|
+
};
|
|
16387
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.threeCodePointsWouldStartAnIdentSequence = function(codePoint1, codePoint2, codePoint3) {
|
|
16388
|
+
return codePoint1 === "-" ? this.isIdentStartCodePoint(codePoint2) || codePoint2 === "-" ? !0 : this.twoCodePointsAreValidEscape(codePoint2, codePoint3) ? !0 : !1 : this.isIdentStartCodePoint(codePoint1) ? !0 : codePoint1 === "\\" ? this.twoCodePointsAreValidEscape(codePoint1, codePoint2) : !1;
|
|
16389
|
+
};
|
|
16390
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.streamStartsWithAnIdentSequence = function() {
|
|
16391
|
+
return this.threeCodePointsWouldStartAnIdentSequence.apply(this, [this.currentInputCodePoint()].concat((0,$jscomp.arrayFromIterable)(this.nextTwoInputCodePoints())));
|
|
16392
|
+
};
|
|
16393
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.isDigit = function(codePoint) {
|
|
16394
|
+
return codePoint !== void 0 && codePoint >= "0" && codePoint <= "9";
|
|
16395
|
+
};
|
|
16396
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.isHexDigit = function(codePoint) {
|
|
16397
|
+
return codePoint !== void 0 && module$contents$safevalues$builders$html_sanitizer$css$tokenizer_HEX_DIGIT_REGEX.test(codePoint);
|
|
16398
|
+
};
|
|
16399
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.isNewline = function(codePoint) {
|
|
16400
|
+
return codePoint === "\n";
|
|
16401
|
+
};
|
|
16402
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.isWhitespace = function(codePoint) {
|
|
16403
|
+
return codePoint === " " || codePoint === "\t" || this.isNewline(codePoint);
|
|
16404
|
+
};
|
|
16405
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.isIdentCodePoint = function(codePoint) {
|
|
16406
|
+
return codePoint === void 0 ? !1 : /^([A-Za-z0-9_-]|[^\u0000-\u007f])$/.test(codePoint);
|
|
16407
|
+
};
|
|
16408
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.isIdentStartCodePoint = function(codePoint) {
|
|
16409
|
+
return codePoint === void 0 ? !1 : /^([A-Za-z_]|[^\u0000-\u007f])$/.test(codePoint);
|
|
16410
|
+
};
|
|
16411
|
+
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.isNonPrintableCodePoint = function(codePoint) {
|
|
16412
|
+
return codePoint === void 0 ? !1 : /[\x00-\x08\x0b\x0e-\x1f\x7f]/.test(codePoint);
|
|
16413
|
+
};
|
|
16414
|
+
function module$contents$safevalues$builders$html_sanitizer$css$tokenizer_tokenizeCss(css) {
|
|
16415
|
+
return (new module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer(css)).tokenize();
|
|
16416
|
+
}
|
|
16417
|
+
;var module$exports$safevalues$builders$html_sanitizer$css$sanitizer = {}, module$contents$safevalues$builders$html_sanitizer$css$sanitizer_module = module$contents$safevalues$builders$html_sanitizer$css$sanitizer_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/css/sanitizer.closure.js"}, module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer =
|
|
16418
|
+
function(propertyAllowlist, functionAllowlist, resourceUrlPolicy, allowKeyframes, propertyDiscarders) {
|
|
16419
|
+
this.propertyAllowlist = propertyAllowlist;
|
|
16420
|
+
this.functionAllowlist = functionAllowlist;
|
|
16421
|
+
this.resourceUrlPolicy = resourceUrlPolicy;
|
|
16422
|
+
this.allowKeyframes = allowKeyframes;
|
|
16423
|
+
this.propertyDiscarders = propertyDiscarders;
|
|
16424
|
+
this.inertDocument = document.implementation.createHTMLDocument();
|
|
16425
|
+
};
|
|
16426
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.getStyleSheet = function(cssText) {
|
|
16427
|
+
var style = this.inertDocument.createElement("style"), safeStyle = module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(cssText);
|
|
16428
|
+
(0,module$exports$safevalues$dom$elements$style.setTextContent)(style, safeStyle);
|
|
16429
|
+
this.inertDocument.head.appendChild(style);
|
|
16430
|
+
var sheet = style.sheet;
|
|
16431
|
+
style.remove();
|
|
16432
|
+
return sheet;
|
|
16433
|
+
};
|
|
16434
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.getStyleDeclaration = function(cssText) {
|
|
16435
|
+
var div = this.inertDocument.createElement("div");
|
|
16436
|
+
div.style.cssText = cssText;
|
|
16437
|
+
this.inertDocument.body.appendChild(div);
|
|
16438
|
+
var style = div.style;
|
|
16439
|
+
div.remove();
|
|
16440
|
+
return style;
|
|
16441
|
+
};
|
|
16442
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.hasShadowDomEscapingTokens = function(token, nextToken) {
|
|
16443
|
+
return token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COLON ? !1 : nextToken.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.IDENT && nextToken.ident.toLowerCase() === "host" || nextToken.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION && (nextToken.lowercaseName === "host" ||
|
|
16444
|
+
nextToken.lowercaseName === "host-context") ? !0 : !1;
|
|
16445
|
+
};
|
|
16446
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeSelector = function(selector) {
|
|
16447
|
+
for (var tokens = module$contents$safevalues$builders$html_sanitizer$css$tokenizer_tokenizeCss(selector), i = 0; i < tokens.length - 1; i++) {
|
|
16448
|
+
if (this.hasShadowDomEscapingTokens(tokens[i], tokens[i + 1])) {
|
|
16449
|
+
return null;
|
|
16450
|
+
}
|
|
16451
|
+
}
|
|
16452
|
+
return module$contents$safevalues$builders$html_sanitizer$css$serializer_serializeTokens(tokens);
|
|
16453
|
+
};
|
|
16454
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeValue = function(propertyName, value, calledFromStyleElement) {
|
|
16455
|
+
for (var tokens = module$contents$safevalues$builders$html_sanitizer$css$tokenizer_tokenizeCss(value), i = 0; i < tokens.length; i++) {
|
|
16456
|
+
var token = tokens[i];
|
|
16457
|
+
if (token.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION) {
|
|
16458
|
+
if (!this.functionAllowlist.has(token.lowercaseName)) {
|
|
16459
|
+
return null;
|
|
16460
|
+
}
|
|
16461
|
+
if (token.lowercaseName === "url") {
|
|
16462
|
+
var nextToken = tokens[i + 1], $jscomp$optchain$tmpm1577590584$0 = void 0;
|
|
16463
|
+
if ((($jscomp$optchain$tmpm1577590584$0 = nextToken) == null ? void 0 : $jscomp$optchain$tmpm1577590584$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING) {
|
|
16464
|
+
return null;
|
|
16465
|
+
}
|
|
16466
|
+
var parsedUrl = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(nextToken.value);
|
|
16467
|
+
this.resourceUrlPolicy && (parsedUrl = this.resourceUrlPolicy(parsedUrl, {type:calledFromStyleElement ? module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.STYLE_ELEMENT : module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.STYLE_ATTRIBUTE, propertyName:propertyName}));
|
|
16468
|
+
if (!parsedUrl) {
|
|
16469
|
+
return null;
|
|
16470
|
+
}
|
|
16471
|
+
tokens[i + 1] = {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING, value:parsedUrl.toString()};
|
|
16472
|
+
i++;
|
|
16473
|
+
}
|
|
16474
|
+
}
|
|
16475
|
+
}
|
|
16476
|
+
return module$contents$safevalues$builders$html_sanitizer$css$serializer_serializeTokens(tokens);
|
|
16477
|
+
};
|
|
16478
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeKeyframeRule = function(rule) {
|
|
16479
|
+
var sanitizedProperties = this.sanitizeStyleDeclaration(rule.style, !0);
|
|
16480
|
+
return rule.keyText + " { " + sanitizedProperties + " }";
|
|
16481
|
+
};
|
|
16482
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeKeyframesRule = function(keyframesRule) {
|
|
16483
|
+
if (!this.allowKeyframes) {
|
|
16484
|
+
return null;
|
|
16485
|
+
}
|
|
16486
|
+
for (var keyframeRules = [], $jscomp$iter$35 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$m1577590584$1$rule = $jscomp$iter$35.next(); !$jscomp$key$m1577590584$1$rule.done; $jscomp$key$m1577590584$1$rule = $jscomp$iter$35.next()) {
|
|
16487
|
+
var rule = $jscomp$key$m1577590584$1$rule.value;
|
|
16488
|
+
if (rule instanceof CSSKeyframeRule) {
|
|
16489
|
+
var sanitizedRule = this.sanitizeKeyframeRule(rule);
|
|
16490
|
+
sanitizedRule && keyframeRules.push(sanitizedRule);
|
|
16491
|
+
}
|
|
16492
|
+
}
|
|
16493
|
+
return "@keyframes " + module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(keyframesRule.name) + " { " + keyframeRules.join(" ") + " }";
|
|
16494
|
+
};
|
|
16495
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.isPropertyNameAllowed = function(name) {
|
|
16496
|
+
if (!this.propertyAllowlist.has(name)) {
|
|
16497
|
+
return !1;
|
|
16498
|
+
}
|
|
16499
|
+
for (var $jscomp$iter$36 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$m1577590584$2$discarder = $jscomp$iter$36.next(); !$jscomp$key$m1577590584$2$discarder.done; $jscomp$key$m1577590584$2$discarder = $jscomp$iter$36.next()) {
|
|
16500
|
+
var discarder = $jscomp$key$m1577590584$2$discarder.value;
|
|
16501
|
+
if (discarder(name)) {
|
|
16502
|
+
return !1;
|
|
16503
|
+
}
|
|
16504
|
+
}
|
|
16505
|
+
return !0;
|
|
16506
|
+
};
|
|
16507
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeProperty = function(name, value, isImportant, calledFromStyleElement) {
|
|
16508
|
+
if (!this.isPropertyNameAllowed(name)) {
|
|
16509
|
+
return null;
|
|
16510
|
+
}
|
|
16511
|
+
var sanitizedValue = this.sanitizeValue(name, value, calledFromStyleElement);
|
|
16512
|
+
return sanitizedValue ? module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(name) + ": " + sanitizedValue + (isImportant ? " !important" : "") : null;
|
|
16513
|
+
};
|
|
16514
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleDeclaration = function(style, calledFromStyleElement) {
|
|
16515
|
+
for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$37 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$m1577590584$3$name = $jscomp$iter$37.next(); !$jscomp$key$m1577590584$3$name.done; $jscomp$key$m1577590584$3$name = $jscomp$iter$37.next()) {
|
|
16516
|
+
var name = $jscomp$key$m1577590584$3$name.value, value = style.getPropertyValue(name), isImportant = style.getPropertyPriority(name) === "important", sanitizedProperty = this.sanitizeProperty(name, value, isImportant, calledFromStyleElement);
|
|
16517
|
+
sanitizedProperty && (sanitizedProperties += sanitizedProperty + ";");
|
|
16518
|
+
}
|
|
16519
|
+
return sanitizedProperties;
|
|
16520
|
+
};
|
|
16521
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleRule = function(rule) {
|
|
16522
|
+
var selector = this.sanitizeSelector(rule.selectorText);
|
|
16523
|
+
if (!selector) {
|
|
16524
|
+
return null;
|
|
16525
|
+
}
|
|
16526
|
+
var sanitizedProperties = this.sanitizeStyleDeclaration(rule.style, !0);
|
|
16527
|
+
return selector + " { " + sanitizedProperties + " }";
|
|
16528
|
+
};
|
|
16529
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleElement = function(cssText) {
|
|
16530
|
+
for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(rules), $jscomp$key$m1577590584$4$rule = $jscomp$iter$38.next(); !$jscomp$key$m1577590584$4$rule.done; $jscomp$key$m1577590584$4$rule = $jscomp$iter$38.next()) {
|
|
16531
|
+
var rule = $jscomp$key$m1577590584$4$rule.value;
|
|
16532
|
+
if (rule instanceof CSSStyleRule) {
|
|
16533
|
+
var sanitizedRule = this.sanitizeStyleRule(rule);
|
|
16534
|
+
sanitizedRule && output.push(sanitizedRule);
|
|
16535
|
+
} else if (rule instanceof CSSKeyframesRule) {
|
|
16536
|
+
var sanitizedRule$jscomp$0 = this.sanitizeKeyframesRule(rule);
|
|
16537
|
+
sanitizedRule$jscomp$0 && output.push(sanitizedRule$jscomp$0);
|
|
16538
|
+
}
|
|
16539
|
+
}
|
|
16540
|
+
return output.join("\n");
|
|
16541
|
+
};
|
|
16542
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleAttribute = function(cssText) {
|
|
16543
|
+
var styleDeclaration = this.getStyleDeclaration(cssText);
|
|
16544
|
+
return this.sanitizeStyleDeclaration(styleDeclaration, !1);
|
|
16545
|
+
};
|
|
16546
|
+
function module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement(cssText, propertyAllowlist, functionAllowlist, resourceUrlPolicy, allowKeyframes, propertyDiscarders) {
|
|
16547
|
+
return (new module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer(propertyAllowlist, functionAllowlist, resourceUrlPolicy, allowKeyframes, propertyDiscarders)).sanitizeStyleElement(cssText);
|
|
16548
|
+
}
|
|
16549
|
+
module$exports$safevalues$builders$html_sanitizer$css$sanitizer.sanitizeStyleElement = module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement;
|
|
16550
|
+
function module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute(cssText, propertyAllowlist, functionAllowlist, resourceUrlPolicy, propertyDiscarders) {
|
|
16551
|
+
return (new module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer(propertyAllowlist, functionAllowlist, resourceUrlPolicy, !1, propertyDiscarders)).sanitizeStyleAttribute(cssText);
|
|
16552
|
+
}
|
|
16553
|
+
module$exports$safevalues$builders$html_sanitizer$css$sanitizer.sanitizeStyleAttribute = module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute;
|
|
16554
|
+
var module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder = {}, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_builder_module = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_builder_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/html_sanitizer_builder.closure.js"};
|
|
16555
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder = function() {
|
|
15952
16556
|
this.calledBuild = !1;
|
|
15953
16557
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE;
|
|
15954
16558
|
};
|
|
15955
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.
|
|
15956
|
-
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$
|
|
15957
|
-
var element = $jscomp$key$435282654$
|
|
16559
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
|
|
16560
|
+
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()) {
|
|
16561
|
+
var element = $jscomp$key$435282654$21$element.value;
|
|
15958
16562
|
element = element.toUpperCase();
|
|
15959
16563
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
15960
16564
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -15965,15 +16569,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
15965
16569
|
this.sanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(allowedElements, allowedElementPolicies, this.sanitizerTable.allowedGlobalAttributes, this.sanitizerTable.globalAttributePolicies);
|
|
15966
16570
|
return this;
|
|
15967
16571
|
};
|
|
15968
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.
|
|
16572
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowCustomElement = function(element, allowedAttributes) {
|
|
15969
16573
|
var allowedElements = new Set(this.sanitizerTable.allowedElements), allowedElementPolicies = new Map(this.sanitizerTable.elementPolicies);
|
|
15970
16574
|
element = element.toUpperCase();
|
|
15971
16575
|
if (!module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_isCustomElement(element)) {
|
|
15972
16576
|
throw Error("Element: " + element + " is not a custom element");
|
|
15973
16577
|
}
|
|
15974
16578
|
if (allowedAttributes) {
|
|
15975
|
-
for (var elementPolicy = new Map(), $jscomp$iter$
|
|
15976
|
-
elementPolicy.set($jscomp$key$435282654$
|
|
16579
|
+
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()) {
|
|
16580
|
+
elementPolicy.set($jscomp$key$435282654$22$attribute.value.toLowerCase(), {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
15977
16581
|
}
|
|
15978
16582
|
allowedElementPolicies.set(element, elementPolicy);
|
|
15979
16583
|
} else {
|
|
@@ -15982,16 +16586,16 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
15982
16586
|
this.sanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(allowedElements, allowedElementPolicies, this.sanitizerTable.allowedGlobalAttributes, this.sanitizerTable.globalAttributePolicies);
|
|
15983
16587
|
return this;
|
|
15984
16588
|
};
|
|
15985
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.
|
|
15986
|
-
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$
|
|
15987
|
-
var attribute = $jscomp$key$435282654$
|
|
16589
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
|
|
16590
|
+
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()) {
|
|
16591
|
+
var attribute = $jscomp$key$435282654$23$attribute.value;
|
|
15988
16592
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
15989
16593
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
15990
16594
|
}
|
|
15991
|
-
for (var $jscomp$iter$
|
|
15992
|
-
for (var $jscomp$destructuring$var37 = (0,$jscomp.makeIterator)($jscomp$key$435282654$
|
|
15993
|
-
$jscomp$iter$
|
|
15994
|
-
var $jscomp$destructuring$var39 = (0,$jscomp.makeIterator)($jscomp$key$435282654$
|
|
16595
|
+
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()) {
|
|
16596
|
+
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$ =
|
|
16597
|
+
$jscomp$iter$42.next()) {
|
|
16598
|
+
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;
|
|
15995
16599
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
15996
16600
|
}
|
|
15997
16601
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -15999,9 +16603,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
15999
16603
|
this.sanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(this.sanitizerTable.allowedElements, elementPolicies, allowedGlobalAttributes, globalAttributePolicies);
|
|
16000
16604
|
return this;
|
|
16001
16605
|
};
|
|
16002
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.
|
|
16003
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$
|
|
16004
|
-
var attribute = $jscomp$key$435282654$
|
|
16606
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
|
|
16607
|
+
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()) {
|
|
16608
|
+
var attribute = $jscomp$key$435282654$26$attribute.value;
|
|
16005
16609
|
if (attribute.indexOf("data-") !== 0) {
|
|
16006
16610
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
16007
16611
|
}
|
|
@@ -16010,34 +16614,38 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
16010
16614
|
this.sanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, allowedGlobalAttributes, this.sanitizerTable.globalAttributePolicies);
|
|
16011
16615
|
return this;
|
|
16012
16616
|
};
|
|
16013
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.
|
|
16617
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowStyleAttributes = function() {
|
|
16014
16618
|
var globalAttributePolicies = new Map(this.sanitizerTable.globalAttributePolicies);
|
|
16015
16619
|
globalAttributePolicies.set("style", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_STYLE});
|
|
16016
16620
|
this.sanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, this.sanitizerTable.allowedGlobalAttributes, globalAttributePolicies);
|
|
16017
16621
|
return this;
|
|
16018
16622
|
};
|
|
16019
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.
|
|
16623
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowClassAttributes = function() {
|
|
16020
16624
|
var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes);
|
|
16021
16625
|
allowedGlobalAttributes.add("class");
|
|
16022
16626
|
this.sanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, allowedGlobalAttributes, this.sanitizerTable.globalAttributePolicies);
|
|
16023
16627
|
return this;
|
|
16024
16628
|
};
|
|
16025
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.
|
|
16629
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowIdAttributes = function() {
|
|
16026
16630
|
var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes);
|
|
16027
16631
|
allowedGlobalAttributes.add("id");
|
|
16028
16632
|
this.sanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, allowedGlobalAttributes, this.sanitizerTable.globalAttributePolicies);
|
|
16029
16633
|
return this;
|
|
16030
16634
|
};
|
|
16031
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.
|
|
16635
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowIdReferenceAttributes = function() {
|
|
16032
16636
|
var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes);
|
|
16033
16637
|
allowedGlobalAttributes.add("aria-activedescendant").add("aria-controls").add("aria-labelledby").add("aria-owns").add("for").add("list");
|
|
16034
16638
|
this.sanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, allowedGlobalAttributes, this.sanitizerTable.globalAttributePolicies);
|
|
16035
16639
|
return this;
|
|
16036
16640
|
};
|
|
16037
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.
|
|
16641
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.withResourceUrlPolicy = function(resourceUrlPolicy) {
|
|
16038
16642
|
this.resourceUrlPolicy = resourceUrlPolicy;
|
|
16039
16643
|
return this;
|
|
16040
16644
|
};
|
|
16645
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder = function() {
|
|
16646
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.apply(this, arguments);
|
|
16647
|
+
};
|
|
16648
|
+
$jscomp.inherits(module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder, module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder);
|
|
16041
16649
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.build = function() {
|
|
16042
16650
|
if (this.calledBuild) {
|
|
16043
16651
|
throw Error("this sanitizer has already called build");
|
|
@@ -16045,6 +16653,44 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
16045
16653
|
this.calledBuild = !0;
|
|
16046
16654
|
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(this.sanitizerTable, module$exports$safevalues$internals$secrets.secretToken, void 0, void 0, this.resourceUrlPolicy);
|
|
16047
16655
|
};
|
|
16656
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder = function() {
|
|
16657
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.apply(this, arguments);
|
|
16658
|
+
this.transitionsAllowed = this.animationsAllowed = !1;
|
|
16659
|
+
};
|
|
16660
|
+
$jscomp.inherits(module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder, module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder);
|
|
16661
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.allowAnimations = function() {
|
|
16662
|
+
this.animationsAllowed = !0;
|
|
16663
|
+
return this;
|
|
16664
|
+
};
|
|
16665
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.allowTransitions = function() {
|
|
16666
|
+
this.transitionsAllowed = !0;
|
|
16667
|
+
return this;
|
|
16668
|
+
};
|
|
16669
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.build = function() {
|
|
16670
|
+
var $jscomp$this$435282654$17 = this;
|
|
16671
|
+
this.extendSanitizerTableForCss();
|
|
16672
|
+
var propertyDiscarders = [];
|
|
16673
|
+
this.animationsAllowed || propertyDiscarders.push(function(property) {
|
|
16674
|
+
return /^(animation|offset)(-|$)/.test(property);
|
|
16675
|
+
});
|
|
16676
|
+
this.transitionsAllowed || propertyDiscarders.push(function(property) {
|
|
16677
|
+
return /^transition(-|$)/.test(property);
|
|
16678
|
+
});
|
|
16679
|
+
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(this.sanitizerTable, module$exports$safevalues$internals$secrets.secretToken, function(cssText) {
|
|
16680
|
+
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);
|
|
16681
|
+
}, function(cssText) {
|
|
16682
|
+
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);
|
|
16683
|
+
}, this.resourceUrlPolicy);
|
|
16684
|
+
};
|
|
16685
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.extendSanitizerTableForCss = function() {
|
|
16686
|
+
var allowedElements = new Set(this.sanitizerTable.allowedElements), allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), globalAttributePolicies = new Map(this.sanitizerTable.globalAttributePolicies);
|
|
16687
|
+
allowedElements.add("STYLE");
|
|
16688
|
+
globalAttributePolicies.set("style", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_STYLE});
|
|
16689
|
+
allowedGlobalAttributes.add("id");
|
|
16690
|
+
allowedGlobalAttributes.add("name");
|
|
16691
|
+
allowedGlobalAttributes.add("class");
|
|
16692
|
+
this.sanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(allowedElements, this.sanitizerTable.elementPolicies, allowedGlobalAttributes, globalAttributePolicies);
|
|
16693
|
+
};
|
|
16048
16694
|
var module$exports$safevalues$builders$resource_url_builders = {}, module$contents$safevalues$builders$resource_url_builders_module = module$contents$safevalues$builders$resource_url_builders_module || {id:"third_party/javascript/safevalues/builders/resource_url_builders.closure.js"}, module$contents$safevalues$builders$resource_url_builders_Primitive;
|
|
16049
16695
|
function module$contents$safevalues$builders$resource_url_builders_hasValidOrigin(base) {
|
|
16050
16696
|
if (!/^https:\/\//.test(base) && !/^\/\//.test(base)) {
|
|
@@ -16950,7 +17596,7 @@ goog.dom.flattenElement = function(element) {
|
|
|
16950
17596
|
}
|
|
16951
17597
|
};
|
|
16952
17598
|
goog.dom.getChildren = function(element) {
|
|
16953
|
-
return element.children != void 0 ? element.children : Array.prototype.filter.call(element.childNodes, function(node) {
|
|
17599
|
+
return goog.FEATURESET_YEAR > 2018 || element.children != void 0 ? element.children : Array.prototype.filter.call(element.childNodes, function(node) {
|
|
16954
17600
|
return node.nodeType == goog.dom.NodeType.ELEMENT;
|
|
16955
17601
|
});
|
|
16956
17602
|
};
|
|
@@ -16961,7 +17607,7 @@ goog.dom.getLastElementChild = function(node) {
|
|
|
16961
17607
|
return node.lastElementChild !== void 0 ? node.lastElementChild : goog.dom.getNextElementNode_(node.lastChild, !1);
|
|
16962
17608
|
};
|
|
16963
17609
|
goog.dom.getNextElementSibling = function(node) {
|
|
16964
|
-
return node.nextElementSibling !== void 0 ? node.nextElementSibling : goog.dom.getNextElementNode_(node.nextSibling, !0);
|
|
17610
|
+
return goog.FEATURESET_YEAR > 2018 || node.nextElementSibling !== void 0 ? node.nextElementSibling : goog.dom.getNextElementNode_(node.nextSibling, !0);
|
|
16965
17611
|
};
|
|
16966
17612
|
goog.dom.getPreviousElementSibling = function(node) {
|
|
16967
17613
|
return node.previousElementSibling !== void 0 ? node.previousElementSibling : goog.dom.getNextElementNode_(node.previousSibling, !1);
|
|
@@ -17006,18 +17652,13 @@ goog.dom.isWindow = function(obj) {
|
|
|
17006
17652
|
return goog.isObject(obj) && obj.window == obj;
|
|
17007
17653
|
};
|
|
17008
17654
|
goog.dom.getParentElement = function(element) {
|
|
17009
|
-
|
|
17010
|
-
if (goog.dom.BrowserFeature.CAN_USE_PARENT_ELEMENT_PROPERTY && (parent = element.parentElement)) {
|
|
17011
|
-
return parent;
|
|
17012
|
-
}
|
|
17013
|
-
parent = element.parentNode;
|
|
17014
|
-
return goog.dom.isElement(parent) ? parent : null;
|
|
17655
|
+
return element.parentElement || null;
|
|
17015
17656
|
};
|
|
17016
17657
|
goog.dom.contains = function(parent, descendant) {
|
|
17017
17658
|
if (!parent || !descendant) {
|
|
17018
17659
|
return !1;
|
|
17019
17660
|
}
|
|
17020
|
-
if (parent.contains && descendant.nodeType == goog.dom.NodeType.ELEMENT) {
|
|
17661
|
+
if (goog.FEATURESET_YEAR > 2018 || parent.contains && descendant.nodeType == goog.dom.NodeType.ELEMENT) {
|
|
17021
17662
|
return parent == descendant || parent.contains(descendant);
|
|
17022
17663
|
}
|
|
17023
17664
|
if (typeof parent.compareDocumentPosition != "undefined") {
|
|
@@ -17275,6 +17916,9 @@ goog.dom.getNodeAtOffset = function(parent, offset, opt_result) {
|
|
|
17275
17916
|
return cur;
|
|
17276
17917
|
};
|
|
17277
17918
|
goog.dom.isNodeList = function(val) {
|
|
17919
|
+
if (goog.FEATURESET_YEAR >= 2018) {
|
|
17920
|
+
return !!val && typeof val.length == "number" && typeof val.item == "function";
|
|
17921
|
+
}
|
|
17278
17922
|
if (val && typeof val.length == "number") {
|
|
17279
17923
|
if (goog.isObject(val)) {
|
|
17280
17924
|
return typeof val.item == "function" || typeof val.item == "string";
|
|
@@ -18817,7 +19461,7 @@ goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_heade
|
|
|
18817
19461
|
headers.set(key, opt_headers[key]);
|
|
18818
19462
|
}
|
|
18819
19463
|
} else if (typeof opt_headers.keys === "function" && typeof opt_headers.get === "function") {
|
|
18820
|
-
for (var $jscomp$iter$
|
|
19464
|
+
for (var $jscomp$iter$45 = (0,$jscomp.makeIterator)(opt_headers.keys()), $jscomp$key$m71669834$54$key = $jscomp$iter$45.next(); !$jscomp$key$m71669834$54$key.done; $jscomp$key$m71669834$54$key = $jscomp$iter$45.next()) {
|
|
18821
19465
|
var key$jscomp$0 = $jscomp$key$m71669834$54$key.value;
|
|
18822
19466
|
headers.set(key$jscomp$0, opt_headers.get(key$jscomp$0));
|
|
18823
19467
|
}
|
|
@@ -18829,7 +19473,7 @@ goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_heade
|
|
|
18829
19473
|
return goog.string.caseInsensitiveEquals(goog.net.XhrIo.CONTENT_TYPE_HEADER, header);
|
|
18830
19474
|
}), contentIsFormData = goog.global.FormData && content instanceof goog.global.FormData;
|
|
18831
19475
|
!module$contents$goog$array_contains(goog.net.XhrIo.METHODS_WITH_FORM_DATA, method) || contentTypeKey || contentIsFormData || headers.set(goog.net.XhrIo.CONTENT_TYPE_HEADER, goog.net.XhrIo.FORM_CONTENT_TYPE);
|
|
18832
|
-
for (var $jscomp$iter$
|
|
19476
|
+
for (var $jscomp$iter$46 = (0,$jscomp.makeIterator)(headers), $jscomp$key$m71669834$55$ = $jscomp$iter$46.next(); !$jscomp$key$m71669834$55$.done; $jscomp$key$m71669834$55$ = $jscomp$iter$46.next()) {
|
|
18833
19477
|
var $jscomp$destructuring$var41 = (0,$jscomp.makeIterator)($jscomp$key$m71669834$55$.value), key$jscomp$1 = $jscomp$destructuring$var41.next().value, value = $jscomp$destructuring$var41.next().value;
|
|
18834
19478
|
this.xhr_.setRequestHeader(key$jscomp$1, value);
|
|
18835
19479
|
}
|
|
@@ -19145,7 +19789,7 @@ var $jscomp$templatelit$m1153655765$99 = $jscomp.createTemplateTagFirstArg(["htt
|
|
|
19145
19789
|
ee.apiclient = {};
|
|
19146
19790
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19147
19791
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19148
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
19792
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.416";
|
|
19149
19793
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19150
19794
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19151
19795
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19314,7 +19958,7 @@ module$contents$ee$apiclient_BatchRequestService.prototype.send = function(param
|
|
|
19314
19958
|
module$contents$ee$apiclient_BatchRequestService.prototype.makeRequest = function(params) {
|
|
19315
19959
|
};
|
|
19316
19960
|
module$contents$ee$apiclient_apiclient.parseBatchReply = function(contentType, responseText, handle) {
|
|
19317
|
-
for (var boundary = contentType.split("; boundary=")[1], $jscomp$iter$
|
|
19961
|
+
for (var boundary = contentType.split("; boundary=")[1], $jscomp$iter$47 = (0,$jscomp.makeIterator)(responseText.split("--" + boundary)), $jscomp$key$m1153655765$100$part = $jscomp$iter$47.next(); !$jscomp$key$m1153655765$100$part.done; $jscomp$key$m1153655765$100$part = $jscomp$iter$47.next()) {
|
|
19318
19962
|
var groups = $jscomp$key$m1153655765$100$part.value.split("\r\n\r\n");
|
|
19319
19963
|
if (!(groups.length < 3)) {
|
|
19320
19964
|
var id = groups[0].match(/\r\nContent-ID: <response-([^>]*)>/)[1], status = Number(groups[1].match(/^HTTP\S*\s(\d+)\s/)[1]), text = groups.slice(2).join("\r\n\r\n");
|
|
@@ -19443,8 +20087,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19443
20087
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19444
20088
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19445
20089
|
method = method || "POST";
|
|
19446
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
19447
|
-
version === "0.1.
|
|
20090
|
+
var headers = {"Content-Type":contentType}, version = "0.1.416";
|
|
20091
|
+
version === "0.1.416" && (version = "latest");
|
|
19448
20092
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19449
20093
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
19450
20094
|
if (authToken != null) {
|
|
@@ -19577,7 +20221,7 @@ module$contents$ee$apiclient_apiclient.handleAuthResult_ = function(success, err
|
|
|
19577
20221
|
}
|
|
19578
20222
|
};
|
|
19579
20223
|
module$contents$ee$apiclient_apiclient.makeRequest_ = function(params) {
|
|
19580
|
-
for (var request = new goog.Uri.QueryData(), $jscomp$iter$
|
|
20224
|
+
for (var request = new goog.Uri.QueryData(), $jscomp$iter$48 = (0,$jscomp.makeIterator)(Object.entries(params)), $jscomp$key$m1153655765$101$ = $jscomp$iter$48.next(); !$jscomp$key$m1153655765$101$.done; $jscomp$key$m1153655765$101$ = $jscomp$iter$48.next()) {
|
|
19581
20225
|
var $jscomp$destructuring$var49 = (0,$jscomp.makeIterator)($jscomp$key$m1153655765$101$.value), name = $jscomp$destructuring$var49.next().value, item = $jscomp$destructuring$var49.next().value;
|
|
19582
20226
|
request.set(name, item);
|
|
19583
20227
|
}
|
|
@@ -19932,7 +20576,7 @@ ee.rpc_convert.algorithms = function(result) {
|
|
|
19932
20576
|
algorithm.deprecated && (internalAlgorithm.deprecated = algorithm.deprecationReason);
|
|
19933
20577
|
algorithm.sourceCodeUri && (internalAlgorithm.sourceCodeUri = algorithm.sourceCodeUri);
|
|
19934
20578
|
return internalAlgorithm;
|
|
19935
|
-
}, internalAlgorithms = {}, $jscomp$iter$
|
|
20579
|
+
}, internalAlgorithms = {}, $jscomp$iter$49 = (0,$jscomp.makeIterator)(result.algorithms || []), $jscomp$key$m29782521$48$algorithm = $jscomp$iter$49.next(); !$jscomp$key$m29782521$48$algorithm.done; $jscomp$key$m29782521$48$algorithm = $jscomp$iter$49.next()) {
|
|
19936
20580
|
var algorithm = $jscomp$key$m29782521$48$algorithm.value, name = algorithm.name.replace(/^algorithms\//, "");
|
|
19937
20581
|
internalAlgorithms[name] = convertAlgorithm(algorithm);
|
|
19938
20582
|
}
|
|
@@ -20082,9 +20726,9 @@ ee.rpc_convert.getListToListAssets = function(param) {
|
|
|
20082
20726
|
param.bbox && (assetsRequest.region = ee.rpc_convert.boundingBoxToGeoJson(param.bbox));
|
|
20083
20727
|
param.region && (assetsRequest.region = param.region);
|
|
20084
20728
|
param.bbox && param.region && console.warn("Multiple request parameters converted to region");
|
|
20085
|
-
for (var allKeys = "id num starttime endtime bbox region".split(" "), $jscomp$iter$
|
|
20729
|
+
for (var allKeys = "id num starttime endtime bbox region".split(" "), $jscomp$iter$50 = (0,$jscomp.makeIterator)(Object.keys(param).filter(function(k) {
|
|
20086
20730
|
return !allKeys.includes(k);
|
|
20087
|
-
})), $jscomp$key$m29782521$49$key = $jscomp$iter$
|
|
20731
|
+
})), $jscomp$key$m29782521$49$key = $jscomp$iter$50.next(); !$jscomp$key$m29782521$49$key.done; $jscomp$key$m29782521$49$key = $jscomp$iter$50.next()) {
|
|
20088
20732
|
console.warn("Unrecognized key " + $jscomp$key$m29782521$49$key.value + " ignored");
|
|
20089
20733
|
}
|
|
20090
20734
|
return ee.rpc_convert.processListImagesParams(assetsRequest);
|
|
@@ -20308,7 +20952,7 @@ ee.rpc_convert.parseFilterParamsFromListImages_ = function(params) {
|
|
|
20308
20952
|
})) {
|
|
20309
20953
|
throw Error('Filter parameter "properties" must be an array of strings');
|
|
20310
20954
|
}
|
|
20311
|
-
for (var $jscomp$iter$
|
|
20955
|
+
for (var $jscomp$iter$51 = (0,$jscomp.makeIterator)(params.properties), $jscomp$key$m29782521$50$propertyQuery = $jscomp$iter$51.next(); !$jscomp$key$m29782521$50$propertyQuery.done; $jscomp$key$m29782521$50$propertyQuery = $jscomp$iter$51.next()) {
|
|
20312
20956
|
queryStrings.push($jscomp$key$m29782521$50$propertyQuery.value.trim().replace(/^(properties\.)?/, "properties."));
|
|
20313
20957
|
}
|
|
20314
20958
|
delete params.properties;
|
|
@@ -20645,7 +21289,7 @@ ee.Serializer.encodeCloudApiPretty = function(obj) {
|
|
|
20645
21289
|
if (!goog.isObject(object)) {
|
|
20646
21290
|
return object;
|
|
20647
21291
|
}
|
|
20648
|
-
for (var ret = Array.isArray(object) ? [] : {}, isNode = object instanceof Object.getPrototypeOf(module$exports$eeapiclient$ee_api_client.ValueNode), $jscomp$iter$
|
|
21292
|
+
for (var ret = Array.isArray(object) ? [] : {}, isNode = object instanceof Object.getPrototypeOf(module$exports$eeapiclient$ee_api_client.ValueNode), $jscomp$iter$52 = (0,$jscomp.makeIterator)(Object.entries(isNode ? object.Serializable$values : object)), $jscomp$key$m759255156$28$ = $jscomp$iter$52.next(); !$jscomp$key$m759255156$28$.done; $jscomp$key$m759255156$28$ = $jscomp$iter$52.next()) {
|
|
20649
21293
|
var $jscomp$destructuring$var53 = (0,$jscomp.makeIterator)($jscomp$key$m759255156$28$.value), key = $jscomp$destructuring$var53.next().value, val = $jscomp$destructuring$var53.next().value;
|
|
20650
21294
|
isNode ? val !== null && (ret[key] = key === "functionDefinitionValue" && val.body != null ? {argumentNames:val.argumentNames, body:walkObject(values[val.body])} : key === "functionInvocationValue" && val.functionReference != null ? {arguments:module$contents$goog$object_map(val.arguments, walkObject), functionReference:walkObject(values[val.functionReference])} : key === "constantValue" ? val === module$exports$eeapiclient$domain_object.NULL_VALUE ?
|
|
20651
21295
|
null : val : walkObject(val)) : ret[key] = walkObject(val);
|
|
@@ -20769,7 +21413,7 @@ ExpressionOptimizer.prototype.optimizeValue = function(value, depth) {
|
|
|
20769
21413
|
return storeInSourceMap(value, optimized$jscomp$1);
|
|
20770
21414
|
}
|
|
20771
21415
|
if (value.dictionaryValue != null) {
|
|
20772
|
-
for (var values = {}, constantValues = {}, $jscomp$iter$
|
|
21416
|
+
for (var values = {}, constantValues = {}, $jscomp$iter$53 = (0,$jscomp.makeIterator)(Object.entries(value.dictionaryValue.values || {})), $jscomp$key$m759255156$29$ = $jscomp$iter$53.next(); !$jscomp$key$m759255156$29$.done; $jscomp$key$m759255156$29$ = $jscomp$iter$53.next()) {
|
|
20773
21417
|
var $jscomp$destructuring$var55 = (0,$jscomp.makeIterator)($jscomp$key$m759255156$29$.value), k = $jscomp$destructuring$var55.next().value, v = $jscomp$destructuring$var55.next().value;
|
|
20774
21418
|
values[k] = this.optimizeValue(v, depth + 3);
|
|
20775
21419
|
constantValues !== null && isConst(values[k]) ? constantValues[k] = serializeConst(values[k].constantValue) : constantValues = null;
|
|
@@ -20781,7 +21425,7 @@ ExpressionOptimizer.prototype.optimizeValue = function(value, depth) {
|
|
|
20781
21425
|
return storeInSourceMap(value, optimized$jscomp$2);
|
|
20782
21426
|
}
|
|
20783
21427
|
if (value.functionInvocationValue != null) {
|
|
20784
|
-
for (var inv = value.functionInvocationValue, args = {}, $jscomp$iter$
|
|
21428
|
+
for (var inv = value.functionInvocationValue, args = {}, $jscomp$iter$54 = (0,$jscomp.makeIterator)(Object.keys(inv.arguments || {})), $jscomp$key$m759255156$30$k = $jscomp$iter$54.next(); !$jscomp$key$m759255156$30$k.done; $jscomp$key$m759255156$30$k = $jscomp$iter$54.next()) {
|
|
20785
21429
|
var k$jscomp$0 = $jscomp$key$m759255156$30$k.value;
|
|
20786
21430
|
args[k$jscomp$0] = this.optimizeValue(inv.arguments[k$jscomp$0], depth + 3);
|
|
20787
21431
|
}
|
|
@@ -21679,7 +22323,7 @@ ee.data.createAsset = function(value, opt_path, opt_force, opt_properties, opt_c
|
|
|
21679
22323
|
value.gcsLocation && !value.cloudStorageLocation && (value.cloudStorageLocation = value.gcsLocation, delete value.gcsLocation);
|
|
21680
22324
|
value.cloudStorageLocation && (value.cloudStorageLocation = new module$exports$eeapiclient$ee_api_client.CloudStorageLocation(value.cloudStorageLocation));
|
|
21681
22325
|
opt_properties && !value.properties && (value.properties = Object.assign({}, opt_properties));
|
|
21682
|
-
for (var $jscomp$iter$
|
|
22326
|
+
for (var $jscomp$iter$55 = (0,$jscomp.makeIterator)(["title", "description"]), $jscomp$key$m1075644492$123$prop = $jscomp$iter$55.next(); !$jscomp$key$m1075644492$123$prop.done; $jscomp$key$m1075644492$123$prop = $jscomp$iter$55.next()) {
|
|
21683
22327
|
var prop = $jscomp$key$m1075644492$123$prop.value;
|
|
21684
22328
|
if (value[prop]) {
|
|
21685
22329
|
var $jscomp$compprop17 = {};
|
|
@@ -23952,7 +24596,7 @@ module$contents$ee$batch_Export.prefixImageFormatOptions_ = function(taskConfig,
|
|
|
23952
24596
|
})) {
|
|
23953
24597
|
throw Error("Parameter specified at least twice: once in config, and once in config format options.");
|
|
23954
24598
|
}
|
|
23955
|
-
for (var prefix = module$contents$ee$batch_FORMAT_PREFIX_MAP[imageFormat], validOptionKeys = module$contents$ee$batch_FORMAT_OPTIONS_MAP[imageFormat], prefixedOptions = {}, $jscomp$iter$
|
|
24599
|
+
for (var prefix = module$contents$ee$batch_FORMAT_PREFIX_MAP[imageFormat], validOptionKeys = module$contents$ee$batch_FORMAT_OPTIONS_MAP[imageFormat], prefixedOptions = {}, $jscomp$iter$56 = (0,$jscomp.makeIterator)(Object.entries(formatOptions)), $jscomp$key$1827622838$35$ = $jscomp$iter$56.next(); !$jscomp$key$1827622838$35$.done; $jscomp$key$1827622838$35$ = $jscomp$iter$56.next()) {
|
|
23956
24600
|
var $jscomp$destructuring$var60 = (0,$jscomp.makeIterator)($jscomp$key$1827622838$35$.value), key = $jscomp$destructuring$var60.next().value, value = $jscomp$destructuring$var60.next().value;
|
|
23957
24601
|
if (!module$contents$goog$array_contains(validOptionKeys, key)) {
|
|
23958
24602
|
var validKeysMsg = validOptionKeys.join(", ");
|
|
@@ -26973,29 +27617,29 @@ ee.data.Profiler.Format.prototype.toString = function() {
|
|
|
26973
27617
|
ee.data.Profiler.Format.TEXT = new ee.data.Profiler.Format("text");
|
|
26974
27618
|
ee.data.Profiler.Format.JSON = new ee.data.Profiler.Format("json");
|
|
26975
27619
|
(function() {
|
|
26976
|
-
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.video.toDrive ee.batch.Export.table.toDrive ee.batch.Export.image.toDrive ee.batch.Export.table.toCloudStorage ee.batch.Export.table.toAsset ee.batch.Export.classifier.toAsset ee.batch.Export.image.toAsset ee.batch.Export.map.toCloudStorage ee.
|
|
26977
|
-
orderedParamLists = [["name", "namedArgs"], ["name"], ["name", "var_args"], "
|
|
26978
|
-
"
|
|
27620
|
+
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toBigQuery ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.video.toDrive ee.batch.Export.table.toDrive ee.batch.Export.image.toDrive ee.batch.Export.table.toCloudStorage ee.batch.Export.table.toAsset ee.batch.Export.classifier.toAsset ee.batch.Export.image.toAsset ee.batch.Export.map.toCloudStorage ee.Collection.prototype.filter ee.Collection.prototype.filterDate ee.Collection.prototype.map ee.Collection.prototype.iterate ee.Collection.prototype.limit ee.Collection.prototype.sort ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterBounds ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.data.createAssetHome ee.data.createAsset ee.data.newTaskId ee.data.getInfo ee.data.computeValue ee.data.setDefaultWorkloadTag ee.data.cancelTask ee.data.resetWorkloadTag ee.data.getThumbId ee.data.getVideoThumbId ee.data.updateAsset ee.data.updateTask ee.data.getTaskStatus ee.data.getList ee.data.startIngestion ee.data.getFilmstripThumbId ee.data.createFolder ee.data.startProcessing ee.data.authenticateViaOauth ee.data.setAssetAcl ee.data.makeThumbUrl ee.data.getMapId ee.data.renameAsset ee.data.listAssets ee.data.getTaskList ee.data.setAssetProperties ee.data.copyAsset ee.data.authenticate ee.data.listBuckets ee.data.getTileUrl ee.data.getTableDownloadId ee.data.makeTableDownloadUrl ee.data.getTaskListWithLimit ee.data.startTableIngestion ee.data.getAssetRootQuota ee.data.listOperations ee.data.deleteAsset ee.data.getDownloadId ee.data.cancelOperation ee.data.authenticateViaPopup ee.data.listImages ee.data.getAssetAcl ee.data.getWorkloadTag ee.data.getFeatureViewTilesKey ee.data.listFeatures ee.data.makeDownloadUrl ee.data.getAsset ee.data.getAssetRoots ee.data.setWorkloadTag ee.data.getOperation ee.data.authenticateViaPrivateKey ee.Date ee.Deserializer.decodeCloudApi ee.Deserializer.fromCloudApiJSON ee.Deserializer.decode ee.Deserializer.fromJSON ee.Dictionary ee.Algorithms ee.InitState ee.apply ee.TILE_SIZE ee.initialize ee.call ee.reset ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature.prototype.getInfo ee.Feature.prototype.getMapId ee.Feature.prototype.getMap ee.Feature ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMap ee.FeatureCollection ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getMapId ee.FeatureCollection.prototype.select ee.Filter.gte ee.Filter ee.Filter.eq ee.Filter.date ee.Filter.metadata ee.Filter.bounds ee.Filter.and ee.Filter.prototype.not ee.Filter.gt ee.Filter.lt ee.Filter.neq ee.Filter.inList ee.Filter.or ee.Filter.lte ee.Function.prototype.call ee.Function.prototype.apply ee.Geometry.prototype.toGeoJSON ee.Geometry.LinearRing ee.Geometry.MultiPoint ee.Geometry.Rectangle ee.Geometry.BBox ee.Geometry.prototype.toGeoJSONString ee.Geometry.Polygon ee.Geometry.LineString ee.Geometry ee.Geometry.prototype.serialize ee.Geometry.Point ee.Geometry.MultiLineString ee.Geometry.MultiPolygon ee.Image.rgb ee.Image.prototype.clip ee.Image.prototype.getInfo ee.Image.prototype.getMapId ee.Image.prototype.getDownloadURL ee.Image.prototype.rename ee.Image.prototype.getMap ee.Image.prototype.getThumbId ee.Image.prototype.select ee.Image.prototype.getThumbURL ee.Image.cat ee.Image ee.Image.prototype.expression ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.first ee.ImageCollection ee.List ee.Number ee.Serializer.toReadableJSON ee.Serializer.encode ee.Serializer.toReadableCloudApiJSON ee.Serializer.toCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.toJSON ee.Serializer.encodeCloudApi ee.String ee.Terrain".split(" "),
|
|
27621
|
+
orderedParamLists = [["name", "namedArgs"], ["name"], ["name", "var_args"], "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "), "collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices opt_priority".split(" "),
|
|
27622
|
+
"image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "),
|
|
27623
|
+
"collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), "image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "),
|
|
26979
27624
|
"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), ["collection", "opt_description", "opt_assetId", "opt_maxVertices", "opt_priority"], ["classifier", "opt_description", "opt_assetId", "opt_priority"], "image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_priority".split(" "), "image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),
|
|
26980
|
-
"
|
|
26981
|
-
["
|
|
26982
|
-
["
|
|
26983
|
-
"
|
|
26984
|
-
[], ["
|
|
26985
|
-
|
|
26986
|
-
"
|
|
26987
|
-
|
|
26988
|
-
|
|
26989
|
-
[
|
|
26990
|
-
|
|
26991
|
-
|
|
26992
|
-
ee.
|
|
26993
|
-
ee.data.
|
|
26994
|
-
ee.
|
|
26995
|
-
ee.
|
|
26996
|
-
ee.
|
|
26997
|
-
ee.
|
|
26998
|
-
ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.linkCollection, ee.ImageCollection.prototype.first, ee.List, ee.Number, ee.Serializer.toJSON, ee.Serializer.toCloudApiJSON, ee.Serializer.encodeCloudApi, ee.Serializer.toReadableJSON, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.encode, ee.String, ee.Terrain].forEach(function(fn, i) {
|
|
27625
|
+
["filter"], ["start", "opt_end"], ["algorithm", "opt_dropNulls"], ["algorithm", "opt_first"], ["max", "opt_property", "opt_ascending"], ["property", "opt_ascending"], ["name", "operator", "value"], ["geometry"], ["callback"], ["func", "var_args"], ["opt_callback"], ["legacy"], ["requestedId", "opt_callback"], ["value", "opt_path", "opt_force", "opt_properties", "opt_callback"], ["opt_count", "opt_callback"], ["id", "opt_callback"], ["obj", "opt_callback"], ["tag"], ["taskId", "opt_callback"], ["opt_resetDefault"],
|
|
27626
|
+
["params", "opt_callback"], ["params", "opt_callback"], ["assetId", "asset", "updateFields", "opt_callback"], ["taskId", "action", "opt_callback"], ["taskId", "opt_callback"], ["params", "opt_callback"], ["taskId", "request", "opt_callback"], ["params", "opt_callback"], ["path", "opt_force", "opt_callback"], ["taskId", "params", "opt_callback"], "clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "), ["assetId", "aclUpdate", "opt_callback"], ["id"],
|
|
27627
|
+
["params", "opt_callback"], ["sourceId", "destinationId", "opt_callback"], ["parent", "opt_params", "opt_callback"], ["opt_callback"], ["assetId", "properties", "opt_callback"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["project", "opt_callback"], ["id", "x", "y", "z"], ["params", "opt_callback"], ["id"], ["opt_limit", "opt_callback"], ["taskId", "request", "opt_callback"], ["rootId", "opt_callback"],
|
|
27628
|
+
["opt_limit", "opt_callback"], ["assetId", "opt_callback"], ["params", "opt_callback"], ["operationName", "opt_callback"], ["opt_success", "opt_error"], ["parent", "opt_params", "opt_callback"], ["assetId", "opt_callback"], [], ["params", "opt_callback"], ["asset", "params", "opt_callback"], ["id"], ["id", "opt_callback"], ["opt_callback"], ["tag"], ["operationName", "opt_callback"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes", "opt_suppressDefaultScopes"], ["date", "opt_tz"],
|
|
27629
|
+
["json"], ["json"], ["json"], ["json"], ["opt_dict"], [], [], ["func", "namedArgs"], [], "opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "), ["func", "var_args"], [], ["var_args"], [], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["geometry", "opt_properties"], ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["opt_visParams", "opt_callback"], ["args", "opt_column"], ["opt_callback"], ["opt_visParams",
|
|
27630
|
+
"opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], ["name", "value"], ["opt_filter"], ["name", "value"], ["start", "opt_end"], ["name", "operator", "value"], ["geometry", "opt_errorMargin"], ["var_args"], [], ["name", "value"], ["name", "value"], ["name", "value"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["var_args"], ["name", "value"], ["var_args"], ["namedArgs"], [], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords",
|
|
27631
|
+
"opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["west", "south", "east", "north"], [], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["legacy"], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["r", "g", "b"], ["geometry"], ["opt_callback"],
|
|
27632
|
+
["opt_visParams", "opt_callback"], ["params", "opt_callback"], ["var_args"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], ["var_args"], ["params", "opt_callback"], ["var_args"], ["opt_args"], ["expression", "opt_map"], ["opt_callback"], ["selectors", "opt_names"], ["params", "opt_callback"], ["opt_visParams", "opt_callback"], ["imageCollection", "opt_linkedBands", "opt_linkedProperties", "opt_matchPropertyName"], ["params", "opt_callback"], ["opt_visParams", "opt_callback"], [],
|
|
27633
|
+
["args"], ["list"], ["number"], ["obj"], ["obj", "opt_isCompound"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj"], ["string"], []];
|
|
27634
|
+
[ee.ApiFunction._apply, ee.ApiFunction.lookup, ee.ApiFunction._call, module$contents$ee$batch_Export.videoMap.toCloudStorage, module$contents$ee$batch_Export.table.toBigQuery, module$contents$ee$batch_Export.image.toCloudStorage, module$contents$ee$batch_Export.video.toCloudStorage, module$contents$ee$batch_Export.table.toFeatureView, module$contents$ee$batch_Export.video.toDrive, module$contents$ee$batch_Export.table.toDrive, module$contents$ee$batch_Export.image.toDrive, module$contents$ee$batch_Export.table.toCloudStorage,
|
|
27635
|
+
module$contents$ee$batch_Export.table.toAsset, module$contents$ee$batch_Export.classifier.toAsset, module$contents$ee$batch_Export.image.toAsset, module$contents$ee$batch_Export.map.toCloudStorage, ee.Collection.prototype.filter, ee.Collection.prototype.filterDate, ee.Collection.prototype.map, ee.Collection.prototype.iterate, ee.Collection.prototype.limit, ee.Collection.prototype.sort, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.filterBounds, ee.ComputedObject.prototype.evaluate,
|
|
27636
|
+
ee.ComputedObject.prototype.aside, ee.ComputedObject.prototype.getInfo, ee.ComputedObject.prototype.serialize, ee.data.createAssetHome, ee.data.createAsset, ee.data.newTaskId, ee.data.getInfo, ee.data.computeValue, ee.data.setDefaultWorkloadTag, ee.data.cancelTask, ee.data.resetWorkloadTag, ee.data.getThumbId, ee.data.getVideoThumbId, ee.data.updateAsset, ee.data.updateTask, ee.data.getTaskStatus, ee.data.getList, ee.data.startIngestion, ee.data.getFilmstripThumbId, ee.data.createFolder, ee.data.startProcessing,
|
|
27637
|
+
ee.data.authenticateViaOauth, ee.data.setAssetAcl, ee.data.makeThumbUrl, ee.data.getMapId, ee.data.renameAsset, ee.data.listAssets, ee.data.getTaskList, ee.data.setAssetProperties, ee.data.copyAsset, ee.data.authenticate, ee.data.listBuckets, ee.data.getTileUrl, ee.data.getTableDownloadId, ee.data.makeTableDownloadUrl, ee.data.getTaskListWithLimit, ee.data.startTableIngestion, ee.data.getAssetRootQuota, ee.data.listOperations, ee.data.deleteAsset, ee.data.getDownloadId, ee.data.cancelOperation,
|
|
27638
|
+
ee.data.authenticateViaPopup, ee.data.listImages, ee.data.getAssetAcl, ee.data.getWorkloadTag, ee.data.getFeatureViewTilesKey, ee.data.listFeatures, ee.data.makeDownloadUrl, ee.data.getAsset, ee.data.getAssetRoots, ee.data.setWorkloadTag, ee.data.getOperation, ee.data.authenticateViaPrivateKey, ee.Date, ee.Deserializer.decodeCloudApi, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.decode, ee.Deserializer.fromJSON, ee.Dictionary, ee.Algorithms, ee.InitState, ee.apply, ee.TILE_SIZE, ee.initialize,
|
|
27639
|
+
ee.call, ee.reset, ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.Feature.prototype.getMap, ee.Feature, ee.FeatureCollection.prototype.getDownloadURL, ee.FeatureCollection.prototype.getMap, ee.FeatureCollection, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection.prototype.getMapId, ee.FeatureCollection.prototype.select, ee.Filter.gte, ee.Filter, ee.Filter.eq, ee.Filter.date, ee.Filter.metadata, ee.Filter.bounds, ee.Filter.and,
|
|
27640
|
+
ee.Filter.prototype.not, ee.Filter.gt, ee.Filter.lt, ee.Filter.neq, ee.Filter.inList, ee.Filter.or, ee.Filter.lte, ee.Function.prototype.call, ee.Function.prototype.apply, ee.Geometry.prototype.toGeoJSON, ee.Geometry.LinearRing, ee.Geometry.MultiPoint, ee.Geometry.Rectangle, ee.Geometry.BBox, ee.Geometry.prototype.toGeoJSONString, ee.Geometry.Polygon, ee.Geometry.LineString, ee.Geometry, ee.Geometry.prototype.serialize, ee.Geometry.Point, ee.Geometry.MultiLineString, ee.Geometry.MultiPolygon, ee.Image.rgb,
|
|
27641
|
+
ee.Image.prototype.clip, ee.Image.prototype.getInfo, ee.Image.prototype.getMapId, ee.Image.prototype.getDownloadURL, ee.Image.prototype.rename, ee.Image.prototype.getMap, ee.Image.prototype.getThumbId, ee.Image.prototype.select, ee.Image.prototype.getThumbURL, ee.Image.cat, ee.Image, ee.Image.prototype.expression, ee.ImageCollection.prototype.getInfo, ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.getVideoThumbURL, ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.linkCollection,
|
|
27642
|
+
ee.ImageCollection.prototype.getFilmstripThumbURL, ee.ImageCollection.prototype.getMapId, ee.ImageCollection.prototype.first, ee.ImageCollection, ee.List, ee.Number, ee.Serializer.toReadableJSON, ee.Serializer.encode, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.toCloudApiJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.toJSON, ee.Serializer.encodeCloudApi, ee.String, ee.Terrain].forEach(function(fn, i) {
|
|
26999
27643
|
fn && (exportedFnInfo[fn.toString()] = {name:orderedFnNames[i], paramNames:orderedParamLists[i]});
|
|
27000
27644
|
});
|
|
27001
27645
|
goog.global.EXPORTED_FN_INFO = exportedFnInfo;
|