@google/earthengine 0.1.394 → 0.1.396
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 +903 -890
- package/build/ee_api_js.js +146 -145
- package/build/ee_api_js_debug.js +880 -867
- package/build/ee_api_js_npm.js +903 -890
- package/build/main.js +903 -890
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/data.js +40 -7
- package/src/examples/Demos/Landsat8HarmonicModeling.js +3 -1
package/build/ee_api_js_debug.js
CHANGED
|
@@ -1378,7 +1378,6 @@ goog.LOAD_MODULE_USING_EVAL = !0;
|
|
|
1378
1378
|
goog.SEAL_MODULE_EXPORTS = goog.DEBUG;
|
|
1379
1379
|
goog.loadedModules_ = {};
|
|
1380
1380
|
goog.DEPENDENCIES_ENABLED = !1;
|
|
1381
|
-
goog.TRANSPILE = "detect";
|
|
1382
1381
|
goog.ASSUME_ES_MODULES_TRANSPILED = !1;
|
|
1383
1382
|
goog.TRUSTED_TYPES_POLICY_NAME = "goog";
|
|
1384
1383
|
goog.hasBadLetScoping = null;
|
|
@@ -6059,9 +6058,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
6059
6058
|
};
|
|
6060
6059
|
var module$contents$eeapiclient$domain_object_CopyValueGetter, module$contents$eeapiclient$domain_object_CopyValueSetter, module$contents$eeapiclient$domain_object_CopyConstructor, module$contents$eeapiclient$domain_object_CopyInstanciator;
|
|
6061
6060
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
6062
|
-
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$
|
|
6063
|
-
{mapMetadata:void 0}, $jscomp$key$
|
|
6064
|
-
var key = $jscomp$key$
|
|
6061
|
+
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$m192531680$40$key = $jscomp$iter$19.next(), $jscomp$loop$m192531680$44 = {}; !$jscomp$key$m192531680$40$key.done; $jscomp$loop$m192531680$44 =
|
|
6062
|
+
{mapMetadata:void 0}, $jscomp$key$m192531680$40$key = $jscomp$iter$19.next()) {
|
|
6063
|
+
var key = $jscomp$key$m192531680$40$key.value, value = valueGetter(key, source);
|
|
6065
6064
|
if (null != value) {
|
|
6066
6065
|
var copy = void 0;
|
|
6067
6066
|
if (arrays.hasOwnProperty(key)) {
|
|
@@ -6072,11 +6071,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6072
6071
|
} else if (objects.hasOwnProperty(key)) {
|
|
6073
6072
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
6074
6073
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
6075
|
-
$jscomp$loop$
|
|
6074
|
+
$jscomp$loop$m192531680$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$44) {
|
|
6076
6075
|
return function(v) {
|
|
6077
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
6076
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6078
6077
|
};
|
|
6079
|
-
}($jscomp$loop$
|
|
6078
|
+
}($jscomp$loop$m192531680$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6080
6079
|
} else if (Array.isArray(value)) {
|
|
6081
6080
|
if (metadata.emptyArrayIsUnset && 0 === value.length) {
|
|
6082
6081
|
continue;
|
|
@@ -6091,8 +6090,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6091
6090
|
return target;
|
|
6092
6091
|
}
|
|
6093
6092
|
function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
|
|
6094
|
-
for (var objMap = {}, $jscomp$iter$20 = $jscomp.makeIterator(Object.keys(value)), $jscomp$key$
|
|
6095
|
-
var mapKey = $jscomp$key$
|
|
6093
|
+
for (var objMap = {}, $jscomp$iter$20 = $jscomp.makeIterator(Object.keys(value)), $jscomp$key$m192531680$41$mapKey = $jscomp$iter$20.next(); !$jscomp$key$m192531680$41$mapKey.done; $jscomp$key$m192531680$41$mapKey = $jscomp$iter$20.next()) {
|
|
6094
|
+
var mapKey = $jscomp$key$m192531680$41$mapKey.value, mapValue = value[mapKey];
|
|
6096
6095
|
null != mapValue && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
|
|
6097
6096
|
}
|
|
6098
6097
|
return objMap;
|
|
@@ -6122,39 +6121,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
6122
6121
|
if (!(module$contents$eeapiclient$domain_object_sameKeys(keys1, metadata2.keys || []) && module$contents$eeapiclient$domain_object_sameKeys(arrays1, arrays2) && module$contents$eeapiclient$domain_object_sameKeys(objects1, objects2) && module$contents$eeapiclient$domain_object_sameKeys(objectMaps1, objectMaps2))) {
|
|
6123
6122
|
return !1;
|
|
6124
6123
|
}
|
|
6125
|
-
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$
|
|
6126
|
-
var key = $jscomp$key$
|
|
6124
|
+
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$m192531680$42$key = $jscomp$iter$21.next(), $jscomp$loop$m192531680$45 = {}; !$jscomp$key$m192531680$42$key.done; $jscomp$loop$m192531680$45 = {value2$jscomp$7:void 0, mapMetadata$jscomp$2:void 0}, $jscomp$key$m192531680$42$key = $jscomp$iter$21.next()) {
|
|
6125
|
+
var key = $jscomp$key$m192531680$42$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
|
|
6127
6126
|
if (has1 !== has2) {
|
|
6128
6127
|
return !1;
|
|
6129
6128
|
}
|
|
6130
6129
|
if (has1) {
|
|
6131
6130
|
var value1 = serializable1.Serializable$get(key);
|
|
6132
|
-
$jscomp$loop$
|
|
6131
|
+
$jscomp$loop$m192531680$45.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
6133
6132
|
if (arrays1.hasOwnProperty(key)) {
|
|
6134
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6133
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !0)) {
|
|
6135
6134
|
return !1;
|
|
6136
6135
|
}
|
|
6137
6136
|
} else if (objects1.hasOwnProperty(key)) {
|
|
6138
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6137
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !0)) {
|
|
6139
6138
|
return !1;
|
|
6140
6139
|
}
|
|
6141
6140
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
6142
|
-
if ($jscomp$loop$
|
|
6143
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
6141
|
+
if ($jscomp$loop$m192531680$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2.isPropertyArray) {
|
|
6142
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$45) {
|
|
6144
6143
|
return function(v1, i) {
|
|
6145
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
6144
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$45.value2$jscomp$7[i], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2);
|
|
6146
6145
|
};
|
|
6147
|
-
}($jscomp$loop$
|
|
6146
|
+
}($jscomp$loop$m192531680$45))) {
|
|
6148
6147
|
return !1;
|
|
6149
6148
|
}
|
|
6150
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
6149
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, $jscomp$loop$m192531680$45.mapMetadata$jscomp$2)) {
|
|
6151
6150
|
return !1;
|
|
6152
6151
|
}
|
|
6153
6152
|
} else if (Array.isArray(value1)) {
|
|
6154
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6153
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !1)) {
|
|
6155
6154
|
return !1;
|
|
6156
6155
|
}
|
|
6157
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6156
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !1)) {
|
|
6158
6157
|
return !1;
|
|
6159
6158
|
}
|
|
6160
6159
|
}
|
|
@@ -6176,8 +6175,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
|
|
|
6176
6175
|
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
|
|
6177
6176
|
return !1;
|
|
6178
6177
|
}
|
|
6179
|
-
for (var $jscomp$iter$22 = $jscomp.makeIterator(Object.keys(value1)), $jscomp$key$
|
|
6180
|
-
var mapKey = $jscomp$key$
|
|
6178
|
+
for (var $jscomp$iter$22 = $jscomp.makeIterator(Object.keys(value1)), $jscomp$key$m192531680$43$mapKey = $jscomp$iter$22.next(); !$jscomp$key$m192531680$43$mapKey.done; $jscomp$key$m192531680$43$mapKey = $jscomp$iter$22.next()) {
|
|
6179
|
+
var mapKey = $jscomp$key$m192531680$43$mapKey.value;
|
|
6181
6180
|
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
|
|
6182
6181
|
return !1;
|
|
6183
6182
|
}
|
|
@@ -6244,178 +6243,7 @@ var module$contents$safevalues$internals$pure_module = module$contents$safevalue
|
|
|
6244
6243
|
function module$contents$safevalues$internals$pure_pure(valueOf) {
|
|
6245
6244
|
return {valueOf:valueOf}.valueOf();
|
|
6246
6245
|
}
|
|
6247
|
-
;goog.
|
|
6248
|
-
};
|
|
6249
|
-
goog.dom.TagName = function() {
|
|
6250
|
-
};
|
|
6251
|
-
goog.dom.TagName.cast = function(name, type) {
|
|
6252
|
-
return name;
|
|
6253
|
-
};
|
|
6254
|
-
goog.dom.TagName.prototype.toString = function() {
|
|
6255
|
-
};
|
|
6256
|
-
goog.dom.TagName.A = "A";
|
|
6257
|
-
goog.dom.TagName.ABBR = "ABBR";
|
|
6258
|
-
goog.dom.TagName.ACRONYM = "ACRONYM";
|
|
6259
|
-
goog.dom.TagName.ADDRESS = "ADDRESS";
|
|
6260
|
-
goog.dom.TagName.APPLET = "APPLET";
|
|
6261
|
-
goog.dom.TagName.AREA = "AREA";
|
|
6262
|
-
goog.dom.TagName.ARTICLE = "ARTICLE";
|
|
6263
|
-
goog.dom.TagName.ASIDE = "ASIDE";
|
|
6264
|
-
goog.dom.TagName.AUDIO = "AUDIO";
|
|
6265
|
-
goog.dom.TagName.B = "B";
|
|
6266
|
-
goog.dom.TagName.BASE = "BASE";
|
|
6267
|
-
goog.dom.TagName.BASEFONT = "BASEFONT";
|
|
6268
|
-
goog.dom.TagName.BDI = "BDI";
|
|
6269
|
-
goog.dom.TagName.BDO = "BDO";
|
|
6270
|
-
goog.dom.TagName.BIG = "BIG";
|
|
6271
|
-
goog.dom.TagName.BLOCKQUOTE = "BLOCKQUOTE";
|
|
6272
|
-
goog.dom.TagName.BODY = "BODY";
|
|
6273
|
-
goog.dom.TagName.BR = "BR";
|
|
6274
|
-
goog.dom.TagName.BUTTON = "BUTTON";
|
|
6275
|
-
goog.dom.TagName.CANVAS = "CANVAS";
|
|
6276
|
-
goog.dom.TagName.CAPTION = "CAPTION";
|
|
6277
|
-
goog.dom.TagName.CENTER = "CENTER";
|
|
6278
|
-
goog.dom.TagName.CITE = "CITE";
|
|
6279
|
-
goog.dom.TagName.CODE = "CODE";
|
|
6280
|
-
goog.dom.TagName.COL = "COL";
|
|
6281
|
-
goog.dom.TagName.COLGROUP = "COLGROUP";
|
|
6282
|
-
goog.dom.TagName.COMMAND = "COMMAND";
|
|
6283
|
-
goog.dom.TagName.DATA = "DATA";
|
|
6284
|
-
goog.dom.TagName.DATALIST = "DATALIST";
|
|
6285
|
-
goog.dom.TagName.DD = "DD";
|
|
6286
|
-
goog.dom.TagName.DEL = "DEL";
|
|
6287
|
-
goog.dom.TagName.DETAILS = "DETAILS";
|
|
6288
|
-
goog.dom.TagName.DFN = "DFN";
|
|
6289
|
-
goog.dom.TagName.DIALOG = "DIALOG";
|
|
6290
|
-
goog.dom.TagName.DIR = "DIR";
|
|
6291
|
-
goog.dom.TagName.DIV = "DIV";
|
|
6292
|
-
goog.dom.TagName.DL = "DL";
|
|
6293
|
-
goog.dom.TagName.DT = "DT";
|
|
6294
|
-
goog.dom.TagName.EM = "EM";
|
|
6295
|
-
goog.dom.TagName.EMBED = "EMBED";
|
|
6296
|
-
goog.dom.TagName.FIELDSET = "FIELDSET";
|
|
6297
|
-
goog.dom.TagName.FIGCAPTION = "FIGCAPTION";
|
|
6298
|
-
goog.dom.TagName.FIGURE = "FIGURE";
|
|
6299
|
-
goog.dom.TagName.FONT = "FONT";
|
|
6300
|
-
goog.dom.TagName.FOOTER = "FOOTER";
|
|
6301
|
-
goog.dom.TagName.FORM = "FORM";
|
|
6302
|
-
goog.dom.TagName.FRAME = "FRAME";
|
|
6303
|
-
goog.dom.TagName.FRAMESET = "FRAMESET";
|
|
6304
|
-
goog.dom.TagName.H1 = "H1";
|
|
6305
|
-
goog.dom.TagName.H2 = "H2";
|
|
6306
|
-
goog.dom.TagName.H3 = "H3";
|
|
6307
|
-
goog.dom.TagName.H4 = "H4";
|
|
6308
|
-
goog.dom.TagName.H5 = "H5";
|
|
6309
|
-
goog.dom.TagName.H6 = "H6";
|
|
6310
|
-
goog.dom.TagName.HEAD = "HEAD";
|
|
6311
|
-
goog.dom.TagName.HEADER = "HEADER";
|
|
6312
|
-
goog.dom.TagName.HGROUP = "HGROUP";
|
|
6313
|
-
goog.dom.TagName.HR = "HR";
|
|
6314
|
-
goog.dom.TagName.HTML = "HTML";
|
|
6315
|
-
goog.dom.TagName.I = "I";
|
|
6316
|
-
goog.dom.TagName.IFRAME = "IFRAME";
|
|
6317
|
-
goog.dom.TagName.IMG = "IMG";
|
|
6318
|
-
goog.dom.TagName.INPUT = "INPUT";
|
|
6319
|
-
goog.dom.TagName.INS = "INS";
|
|
6320
|
-
goog.dom.TagName.ISINDEX = "ISINDEX";
|
|
6321
|
-
goog.dom.TagName.KBD = "KBD";
|
|
6322
|
-
goog.dom.TagName.KEYGEN = "KEYGEN";
|
|
6323
|
-
goog.dom.TagName.LABEL = "LABEL";
|
|
6324
|
-
goog.dom.TagName.LEGEND = "LEGEND";
|
|
6325
|
-
goog.dom.TagName.LI = "LI";
|
|
6326
|
-
goog.dom.TagName.LINK = "LINK";
|
|
6327
|
-
goog.dom.TagName.MAIN = "MAIN";
|
|
6328
|
-
goog.dom.TagName.MAP = "MAP";
|
|
6329
|
-
goog.dom.TagName.MARK = "MARK";
|
|
6330
|
-
goog.dom.TagName.MATH = "MATH";
|
|
6331
|
-
goog.dom.TagName.MENU = "MENU";
|
|
6332
|
-
goog.dom.TagName.MENUITEM = "MENUITEM";
|
|
6333
|
-
goog.dom.TagName.META = "META";
|
|
6334
|
-
goog.dom.TagName.METER = "METER";
|
|
6335
|
-
goog.dom.TagName.NAV = "NAV";
|
|
6336
|
-
goog.dom.TagName.NOFRAMES = "NOFRAMES";
|
|
6337
|
-
goog.dom.TagName.NOSCRIPT = "NOSCRIPT";
|
|
6338
|
-
goog.dom.TagName.OBJECT = "OBJECT";
|
|
6339
|
-
goog.dom.TagName.OL = "OL";
|
|
6340
|
-
goog.dom.TagName.OPTGROUP = "OPTGROUP";
|
|
6341
|
-
goog.dom.TagName.OPTION = "OPTION";
|
|
6342
|
-
goog.dom.TagName.OUTPUT = "OUTPUT";
|
|
6343
|
-
goog.dom.TagName.P = "P";
|
|
6344
|
-
goog.dom.TagName.PARAM = "PARAM";
|
|
6345
|
-
goog.dom.TagName.PICTURE = "PICTURE";
|
|
6346
|
-
goog.dom.TagName.PRE = "PRE";
|
|
6347
|
-
goog.dom.TagName.PROGRESS = "PROGRESS";
|
|
6348
|
-
goog.dom.TagName.Q = "Q";
|
|
6349
|
-
goog.dom.TagName.RP = "RP";
|
|
6350
|
-
goog.dom.TagName.RT = "RT";
|
|
6351
|
-
goog.dom.TagName.RTC = "RTC";
|
|
6352
|
-
goog.dom.TagName.RUBY = "RUBY";
|
|
6353
|
-
goog.dom.TagName.S = "S";
|
|
6354
|
-
goog.dom.TagName.SAMP = "SAMP";
|
|
6355
|
-
goog.dom.TagName.SCRIPT = "SCRIPT";
|
|
6356
|
-
goog.dom.TagName.SECTION = "SECTION";
|
|
6357
|
-
goog.dom.TagName.SELECT = "SELECT";
|
|
6358
|
-
goog.dom.TagName.SMALL = "SMALL";
|
|
6359
|
-
goog.dom.TagName.SOURCE = "SOURCE";
|
|
6360
|
-
goog.dom.TagName.SPAN = "SPAN";
|
|
6361
|
-
goog.dom.TagName.STRIKE = "STRIKE";
|
|
6362
|
-
goog.dom.TagName.STRONG = "STRONG";
|
|
6363
|
-
goog.dom.TagName.STYLE = "STYLE";
|
|
6364
|
-
goog.dom.TagName.SUB = "SUB";
|
|
6365
|
-
goog.dom.TagName.SUMMARY = "SUMMARY";
|
|
6366
|
-
goog.dom.TagName.SUP = "SUP";
|
|
6367
|
-
goog.dom.TagName.SVG = "SVG";
|
|
6368
|
-
goog.dom.TagName.TABLE = "TABLE";
|
|
6369
|
-
goog.dom.TagName.TBODY = "TBODY";
|
|
6370
|
-
goog.dom.TagName.TD = "TD";
|
|
6371
|
-
goog.dom.TagName.TEMPLATE = "TEMPLATE";
|
|
6372
|
-
goog.dom.TagName.TEXTAREA = "TEXTAREA";
|
|
6373
|
-
goog.dom.TagName.TFOOT = "TFOOT";
|
|
6374
|
-
goog.dom.TagName.TH = "TH";
|
|
6375
|
-
goog.dom.TagName.THEAD = "THEAD";
|
|
6376
|
-
goog.dom.TagName.TIME = "TIME";
|
|
6377
|
-
goog.dom.TagName.TITLE = "TITLE";
|
|
6378
|
-
goog.dom.TagName.TR = "TR";
|
|
6379
|
-
goog.dom.TagName.TRACK = "TRACK";
|
|
6380
|
-
goog.dom.TagName.TT = "TT";
|
|
6381
|
-
goog.dom.TagName.U = "U";
|
|
6382
|
-
goog.dom.TagName.UL = "UL";
|
|
6383
|
-
goog.dom.TagName.VAR = "VAR";
|
|
6384
|
-
goog.dom.TagName.VIDEO = "VIDEO";
|
|
6385
|
-
goog.dom.TagName.WBR = "WBR";
|
|
6386
|
-
goog.dom.tags = {};
|
|
6387
|
-
goog.dom.tags.VOID_TAGS_ = {area:!0, base:!0, br:!0, col:!0, command:!0, embed:!0, hr:!0, img:!0, input:!0, keygen:!0, link:!0, meta:!0, param:!0, source:!0, track:!0, wbr:!0};
|
|
6388
|
-
goog.dom.tags.isVoidTag = function(tagName) {
|
|
6389
|
-
return !0 === goog.dom.tags.VOID_TAGS_[tagName];
|
|
6390
|
-
};
|
|
6391
|
-
goog.fs = {};
|
|
6392
|
-
goog.fs.url = {};
|
|
6393
|
-
goog.fs.url.createObjectUrl = function(obj) {
|
|
6394
|
-
return goog.fs.url.getUrlObject_().createObjectURL(obj);
|
|
6395
|
-
};
|
|
6396
|
-
goog.fs.url.revokeObjectUrl = function(url) {
|
|
6397
|
-
goog.fs.url.getUrlObject_().revokeObjectURL(url);
|
|
6398
|
-
};
|
|
6399
|
-
goog.fs.url.UrlObject_ = function() {
|
|
6400
|
-
};
|
|
6401
|
-
goog.fs.url.UrlObject_.prototype.createObjectURL = function(arg) {
|
|
6402
|
-
};
|
|
6403
|
-
goog.fs.url.UrlObject_.prototype.revokeObjectURL = function(s) {
|
|
6404
|
-
};
|
|
6405
|
-
goog.fs.url.getUrlObject_ = function() {
|
|
6406
|
-
var urlObject = goog.fs.url.findUrlObject_();
|
|
6407
|
-
if (null != urlObject) {
|
|
6408
|
-
return urlObject;
|
|
6409
|
-
}
|
|
6410
|
-
throw Error("This browser doesn't seem to support blob URLs");
|
|
6411
|
-
};
|
|
6412
|
-
goog.fs.url.findUrlObject_ = function() {
|
|
6413
|
-
return void 0 !== goog.global.URL && void 0 !== goog.global.URL.createObjectURL ? goog.global.URL : void 0 !== goog.global.createObjectURL ? goog.global : null;
|
|
6414
|
-
};
|
|
6415
|
-
goog.fs.url.browserSupportsObjectUrls = function() {
|
|
6416
|
-
return null != goog.fs.url.findUrlObject_();
|
|
6417
|
-
};
|
|
6418
|
-
goog.html = {};
|
|
6246
|
+
;goog.html = {};
|
|
6419
6247
|
goog.html.trustedtypes = {};
|
|
6420
6248
|
goog.html.trustedtypes.POLICY_NAME = goog.TRUSTED_TYPES_POLICY_NAME ? goog.TRUSTED_TYPES_POLICY_NAME + "#html" : "";
|
|
6421
6249
|
goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse = function() {
|
|
@@ -6519,6 +6347,74 @@ goog.html.TrustedResourceUrl.stringifyParams_ = function(prefix, currentString,
|
|
|
6519
6347
|
}
|
|
6520
6348
|
return currentString;
|
|
6521
6349
|
};
|
|
6350
|
+
var module$exports$safevalues$internals$resource_url_impl = {}, module$contents$safevalues$internals$resource_url_impl_module = module$contents$safevalues$internals$resource_url_impl_module || {id:"third_party/javascript/safevalues/internals/resource_url_impl.closure.js"};
|
|
6351
|
+
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl = goog.html.TrustedResourceUrl;
|
|
6352
|
+
function module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(url) {
|
|
6353
|
+
return (0,goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse)(url);
|
|
6354
|
+
}
|
|
6355
|
+
module$exports$safevalues$internals$resource_url_impl.createResourceUrlInternal = module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal;
|
|
6356
|
+
function module$contents$safevalues$internals$resource_url_impl_isResourceUrl(value) {
|
|
6357
|
+
return value instanceof goog.html.TrustedResourceUrl;
|
|
6358
|
+
}
|
|
6359
|
+
module$exports$safevalues$internals$resource_url_impl.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
|
|
6360
|
+
function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(value) {
|
|
6361
|
+
return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(value);
|
|
6362
|
+
}
|
|
6363
|
+
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
6364
|
+
var $jscomp$templatelit$1274514361$5 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$1274514361$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$8 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$1274514361$9 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$10 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
6365
|
+
["\\0"]), $jscomp$templatelit$1274514361$11 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$12 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), module$contents$safevalues$internals$string_literal_module = module$contents$safevalues$internals$string_literal_module || {id:"third_party/javascript/safevalues/internals/string_literal.closure.js"};
|
|
6366
|
+
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
6367
|
+
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
6368
|
+
throw new TypeError("\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################");
|
|
6369
|
+
}
|
|
6370
|
+
}
|
|
6371
|
+
function module$contents$safevalues$internals$string_literal_checkFrozen(templateObj) {
|
|
6372
|
+
return Object.isFrozen(templateObj) && Object.isFrozen(templateObj.raw);
|
|
6373
|
+
}
|
|
6374
|
+
var module$contents$safevalues$internals$string_literal_TagFn;
|
|
6375
|
+
function module$contents$safevalues$internals$string_literal_checkTranspiled(fn) {
|
|
6376
|
+
return -1 === fn.toString().indexOf("`");
|
|
6377
|
+
}
|
|
6378
|
+
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
6379
|
+
return tag($jscomp$templatelit$1274514361$5);
|
|
6380
|
+
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
6381
|
+
return tag($jscomp$templatelit$1274514361$6);
|
|
6382
|
+
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
6383
|
+
return tag($jscomp$templatelit$1274514361$7);
|
|
6384
|
+
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
6385
|
+
return tag($jscomp$templatelit$1274514361$8);
|
|
6386
|
+
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$9) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$10) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$11) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$12);
|
|
6387
|
+
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
6388
|
+
return Array.isArray(templateObj) && Array.isArray(templateObj.raw) && templateObj.length === templateObj.raw.length && (module$contents$safevalues$internals$string_literal_isTranspiled || templateObj !== templateObj.raw) && (module$contents$safevalues$internals$string_literal_isTranspiled && !module$contents$safevalues$internals$string_literal_frozenTSA || module$contents$safevalues$internals$string_literal_checkFrozen(templateObj)) ?
|
|
6389
|
+
!0 : !1;
|
|
6390
|
+
}
|
|
6391
|
+
;goog.fs = {};
|
|
6392
|
+
goog.fs.url = {};
|
|
6393
|
+
goog.fs.url.createObjectUrl = function(obj) {
|
|
6394
|
+
return goog.fs.url.getUrlObject_().createObjectURL(obj);
|
|
6395
|
+
};
|
|
6396
|
+
goog.fs.url.revokeObjectUrl = function(url) {
|
|
6397
|
+
goog.fs.url.getUrlObject_().revokeObjectURL(url);
|
|
6398
|
+
};
|
|
6399
|
+
goog.fs.url.UrlObject_ = function() {
|
|
6400
|
+
};
|
|
6401
|
+
goog.fs.url.UrlObject_.prototype.createObjectURL = function(arg) {
|
|
6402
|
+
};
|
|
6403
|
+
goog.fs.url.UrlObject_.prototype.revokeObjectURL = function(s) {
|
|
6404
|
+
};
|
|
6405
|
+
goog.fs.url.getUrlObject_ = function() {
|
|
6406
|
+
var urlObject = goog.fs.url.findUrlObject_();
|
|
6407
|
+
if (null != urlObject) {
|
|
6408
|
+
return urlObject;
|
|
6409
|
+
}
|
|
6410
|
+
throw Error("This browser doesn't seem to support blob URLs");
|
|
6411
|
+
};
|
|
6412
|
+
goog.fs.url.findUrlObject_ = function() {
|
|
6413
|
+
return void 0 !== goog.global.URL && void 0 !== goog.global.URL.createObjectURL ? goog.global.URL : void 0 !== goog.global.createObjectURL ? goog.global : null;
|
|
6414
|
+
};
|
|
6415
|
+
goog.fs.url.browserSupportsObjectUrls = function() {
|
|
6416
|
+
return null != goog.fs.url.findUrlObject_();
|
|
6417
|
+
};
|
|
6522
6418
|
goog.html.SafeUrl = function(value, token) {
|
|
6523
6419
|
if (goog.DEBUG && token !== goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_) {
|
|
6524
6420
|
throw Error("SafeUrl is not meant to be built directly");
|
|
@@ -6635,687 +6531,786 @@ goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse = function(url)
|
|
|
6635
6531
|
};
|
|
6636
6532
|
goog.html.SafeUrl.INNOCUOUS_URL = goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.SafeUrl.INNOCUOUS_STRING);
|
|
6637
6533
|
goog.html.SafeUrl.ABOUT_BLANK = goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank");
|
|
6638
|
-
var module$
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
module$
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
return
|
|
6652
|
-
}
|
|
6653
|
-
module$
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
(
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
}
|
|
6673
|
-
var value = map[name];
|
|
6674
|
-
null != value && (value = Array.isArray(value) ? value.map(module$contents$goog$html$SafeStyle_sanitizePropertyValue).join(" ") : module$contents$goog$html$SafeStyle_sanitizePropertyValue(value), style += name + ":" + value + ";");
|
|
6675
|
-
}
|
|
6676
|
-
}
|
|
6677
|
-
return style ? module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(style) : module$contents$goog$html$SafeStyle_SafeStyle.EMPTY;
|
|
6534
|
+
var module$exports$safevalues$internals$url_impl = {}, module$contents$safevalues$internals$url_impl_module = module$contents$safevalues$internals$url_impl_module || {id:"third_party/javascript/safevalues/internals/url_impl.closure.js"};
|
|
6535
|
+
module$exports$safevalues$internals$url_impl.SafeUrl = goog.html.SafeUrl;
|
|
6536
|
+
function module$contents$safevalues$internals$url_impl_createUrlInternal(url) {
|
|
6537
|
+
return (0,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse)(url);
|
|
6538
|
+
}
|
|
6539
|
+
module$exports$safevalues$internals$url_impl.createUrlInternal = module$contents$safevalues$internals$url_impl_createUrlInternal;
|
|
6540
|
+
module$exports$safevalues$internals$url_impl.ABOUT_BLANK = module$contents$safevalues$internals$url_impl_createUrlInternal("about:blank");
|
|
6541
|
+
module$exports$safevalues$internals$url_impl.INNOCUOUS_URL = module$contents$safevalues$internals$url_impl_createUrlInternal("about:invalid#zClosurez");
|
|
6542
|
+
function module$contents$safevalues$internals$url_impl_isUrl(value) {
|
|
6543
|
+
return value instanceof goog.html.SafeUrl;
|
|
6544
|
+
}
|
|
6545
|
+
module$exports$safevalues$internals$url_impl.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
|
|
6546
|
+
function module$contents$safevalues$internals$url_impl_unwrapUrl(value) {
|
|
6547
|
+
return goog.html.SafeUrl.unwrap(value);
|
|
6548
|
+
}
|
|
6549
|
+
module$exports$safevalues$internals$url_impl.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
6550
|
+
var module$exports$safevalues$builders$url_builders = {}, module$contents$safevalues$builders$url_builders_module = module$contents$safevalues$builders$url_builders_module || {id:"third_party/javascript/safevalues/builders/url_builders.closure.js"};
|
|
6551
|
+
function module$contents$safevalues$builders$url_builders_isSafeMimeType(mimeType) {
|
|
6552
|
+
var match = mimeType.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i);
|
|
6553
|
+
return 2 === (null == match ? void 0 : match.length) && (module$contents$safevalues$builders$url_builders_isSafeImageMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeVideoMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeAudioMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeFontMimeType(match[1]));
|
|
6554
|
+
}
|
|
6555
|
+
function module$contents$safevalues$builders$url_builders_isSafeImageMimeType(mimeType) {
|
|
6556
|
+
return /^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(mimeType);
|
|
6557
|
+
}
|
|
6558
|
+
function module$contents$safevalues$builders$url_builders_isSafeVideoMimeType(mimeType) {
|
|
6559
|
+
return /^video\/(?:mpeg|mp4|ogg|webm|x-matroska|quicktime|x-ms-wmv)$/i.test(mimeType);
|
|
6560
|
+
}
|
|
6561
|
+
function module$contents$safevalues$builders$url_builders_isSafeAudioMimeType(mimeType) {
|
|
6562
|
+
return /^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(mimeType);
|
|
6563
|
+
}
|
|
6564
|
+
function module$contents$safevalues$builders$url_builders_isSafeFontMimeType(mimeType) {
|
|
6565
|
+
return /^font\/\w+/i.test(mimeType);
|
|
6566
|
+
}
|
|
6567
|
+
module$exports$safevalues$builders$url_builders.Scheme = function() {
|
|
6678
6568
|
};
|
|
6679
|
-
module$contents$
|
|
6680
|
-
|
|
6681
|
-
Array.isArray(argument) ? argument.forEach(addArgument) : style += module$contents$goog$html$SafeStyle_SafeStyle.unwrap(argument);
|
|
6682
|
-
};
|
|
6683
|
-
Array.prototype.forEach.call(arguments, addArgument);
|
|
6684
|
-
return style ? module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(style) : module$contents$goog$html$SafeStyle_SafeStyle.EMPTY;
|
|
6569
|
+
var module$contents$safevalues$builders$url_builders_SchemeImpl = function(isValid) {
|
|
6570
|
+
this.isValid = isValid;
|
|
6685
6571
|
};
|
|
6686
|
-
|
|
6687
|
-
module$contents$
|
|
6688
|
-
function module$contents$goog$html$SafeStyle_sanitizePropertyValue(value) {
|
|
6689
|
-
if (value instanceof goog.html.SafeUrl) {
|
|
6690
|
-
return 'url("' + goog.html.SafeUrl.unwrap(value).replace(/</g, "%3c").replace(/[\\"]/g, "\\$&") + '")';
|
|
6691
|
-
}
|
|
6692
|
-
var result = value instanceof goog.string.Const ? goog.string.Const.unwrap(value) : module$contents$goog$html$SafeStyle_sanitizePropertyValueString(String(value));
|
|
6693
|
-
if (/[{;}]/.test(result)) {
|
|
6694
|
-
throw new module$contents$goog$asserts_AssertionError("Value does not allow [{;}], got: %s.", [result]);
|
|
6695
|
-
}
|
|
6696
|
-
return result;
|
|
6572
|
+
function module$contents$safevalues$builders$url_builders_isValidScheme(scheme) {
|
|
6573
|
+
return scheme instanceof module$contents$safevalues$builders$url_builders_SchemeImpl;
|
|
6697
6574
|
}
|
|
6698
|
-
function module$contents$
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6575
|
+
function module$contents$safevalues$builders$url_builders_simpleScheme(scheme) {
|
|
6576
|
+
return new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
|
|
6577
|
+
return url.substr(0, scheme.length + 1).toLowerCase() === scheme + ":";
|
|
6578
|
+
});
|
|
6579
|
+
}
|
|
6580
|
+
module$exports$safevalues$builders$url_builders.SanitizableUrlScheme = {TEL:module$contents$safevalues$builders$url_builders_simpleScheme("tel"), CALLTO:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
|
|
6581
|
+
return /^callto:\+?\d*$/i.test(url);
|
|
6582
|
+
}), SSH:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
|
|
6583
|
+
return 0 === url.indexOf("ssh://");
|
|
6584
|
+
}), RTSP:module$contents$safevalues$builders$url_builders_simpleScheme("rtsp"), DATA:module$contents$safevalues$builders$url_builders_simpleScheme("data"), HTTP:module$contents$safevalues$builders$url_builders_simpleScheme("http"), HTTPS:module$contents$safevalues$builders$url_builders_simpleScheme("https"), EXTENSION:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
|
|
6585
|
+
return 0 === url.indexOf("chrome-extension://") || 0 === url.indexOf("moz-extension://") || 0 === url.indexOf("ms-browser-extension://");
|
|
6586
|
+
}), FTP:module$contents$safevalues$builders$url_builders_simpleScheme("ftp"), RELATIVE:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
|
|
6587
|
+
return /^[^:]*([/?#]|$)/.test(url);
|
|
6588
|
+
}), MAILTO:module$contents$safevalues$builders$url_builders_simpleScheme("mailto"), INTENT:module$contents$safevalues$builders$url_builders_simpleScheme("intent"), MARKET:module$contents$safevalues$builders$url_builders_simpleScheme("market"), ITMS:module$contents$safevalues$builders$url_builders_simpleScheme("itms"), ITMS_APPSS:module$contents$safevalues$builders$url_builders_simpleScheme("itms-appss"),
|
|
6589
|
+
ITMS_SERVICES:module$contents$safevalues$builders$url_builders_simpleScheme("itms-services"), FACEBOOK_MESSENGER:module$contents$safevalues$builders$url_builders_simpleScheme("fb-messenger"), WHATSAPP:module$contents$safevalues$builders$url_builders_simpleScheme("whatsapp"), SIP:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
|
|
6590
|
+
return 0 === url.indexOf("sip:") || 0 === url.indexOf("sips:");
|
|
6591
|
+
}), SMS:module$contents$safevalues$builders$url_builders_simpleScheme("sms"), VND_YOUTUBE:module$contents$safevalues$builders$url_builders_simpleScheme("vnd.youtube")};
|
|
6592
|
+
var module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES = [module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.DATA, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.HTTP, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.HTTPS, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.MAILTO,
|
|
6593
|
+
module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.FTP, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.RELATIVE];
|
|
6594
|
+
function module$contents$safevalues$builders$url_builders_trySanitizeUrl(url, allowedSchemes) {
|
|
6595
|
+
allowedSchemes = void 0 === allowedSchemes ? module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES : allowedSchemes;
|
|
6596
|
+
if (module$contents$safevalues$internals$url_impl_isUrl(url)) {
|
|
6597
|
+
return url;
|
|
6598
|
+
}
|
|
6599
|
+
for (var i = 0; i < allowedSchemes.length; ++i) {
|
|
6600
|
+
var scheme = allowedSchemes[i];
|
|
6601
|
+
if (module$contents$safevalues$builders$url_builders_isValidScheme(scheme) && scheme.isValid(url)) {
|
|
6602
|
+
return module$contents$safevalues$internals$url_impl_createUrlInternal(url);
|
|
6709
6603
|
}
|
|
6710
|
-
} else {
|
|
6711
|
-
return (0,goog.asserts.fail)("String value allows only [-+,.\"'%_!#/ a-zA-Z0-9\\[\\]] and simple functions, got: " + value), module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING;
|
|
6712
6604
|
}
|
|
6713
|
-
return module$contents$goog$html$SafeStyle_sanitizeUrl(value);
|
|
6714
6605
|
}
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6606
|
+
module$exports$safevalues$builders$url_builders.trySanitizeUrl = module$contents$safevalues$builders$url_builders_trySanitizeUrl;
|
|
6607
|
+
function module$contents$safevalues$builders$url_builders_sanitizeUrl(url, allowedSchemes) {
|
|
6608
|
+
allowedSchemes = void 0 === allowedSchemes ? module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES : allowedSchemes;
|
|
6609
|
+
var sanitizedUrl = module$contents$safevalues$builders$url_builders_trySanitizeUrl(url, allowedSchemes);
|
|
6610
|
+
void 0 === sanitizedUrl && module$contents$safevalues$builders$url_builders_triggerCallbacks(url.toString());
|
|
6611
|
+
return sanitizedUrl || module$exports$safevalues$internals$url_impl.INNOCUOUS_URL;
|
|
6612
|
+
}
|
|
6613
|
+
module$exports$safevalues$builders$url_builders.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
|
|
6614
|
+
function module$contents$safevalues$builders$url_builders_objectUrlFromSafeSource(source) {
|
|
6615
|
+
if ("undefined" !== typeof MediaSource && source instanceof MediaSource) {
|
|
6616
|
+
return module$contents$safevalues$internals$url_impl_createUrlInternal(URL.createObjectURL(source));
|
|
6719
6617
|
}
|
|
6720
|
-
|
|
6618
|
+
if (!module$contents$safevalues$builders$url_builders_isSafeMimeType(source.type)) {
|
|
6619
|
+
var message = "";
|
|
6620
|
+
goog.DEBUG && (message = "unsafe blob MIME type: " + source.type);
|
|
6621
|
+
throw Error(message);
|
|
6622
|
+
}
|
|
6623
|
+
return module$contents$safevalues$internals$url_impl_createUrlInternal(URL.createObjectURL(source));
|
|
6721
6624
|
}
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
if (outside) {
|
|
6727
|
-
return !1;
|
|
6728
|
-
}
|
|
6729
|
-
outside = !0;
|
|
6730
|
-
} else if ("[" == c) {
|
|
6731
|
-
if (!outside) {
|
|
6732
|
-
return !1;
|
|
6733
|
-
}
|
|
6734
|
-
outside = !1;
|
|
6735
|
-
} else if (!outside && !tokenRe.test(c)) {
|
|
6736
|
-
return !1;
|
|
6737
|
-
}
|
|
6625
|
+
module$exports$safevalues$builders$url_builders.objectUrlFromSafeSource = module$contents$safevalues$builders$url_builders_objectUrlFromSafeSource;
|
|
6626
|
+
function module$contents$safevalues$builders$url_builders_fromMediaSource(media) {
|
|
6627
|
+
if ("undefined" !== typeof MediaSource && media instanceof MediaSource) {
|
|
6628
|
+
return module$contents$safevalues$internals$url_impl_createUrlInternal(URL.createObjectURL(media));
|
|
6738
6629
|
}
|
|
6739
|
-
|
|
6630
|
+
var message = "";
|
|
6631
|
+
goog.DEBUG && (message = "fromMediaSource only accepts MediaSource instances, but was called with " + media + ".");
|
|
6632
|
+
throw Error(message);
|
|
6740
6633
|
}
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
return value.replace(module$contents$goog$html$SafeStyle_URL_RE, function(match, before, url, after) {
|
|
6745
|
-
var quote = "";
|
|
6746
|
-
url = url.replace(/^(['"])(.*)\1$/, function(match, start, inside) {
|
|
6747
|
-
quote = start;
|
|
6748
|
-
return inside;
|
|
6749
|
-
});
|
|
6750
|
-
var sanitized = goog.html.SafeUrl.sanitize(url).toString();
|
|
6751
|
-
return before + quote + sanitized + quote + after;
|
|
6752
|
-
});
|
|
6634
|
+
module$exports$safevalues$builders$url_builders.fromMediaSource = module$contents$safevalues$builders$url_builders_fromMediaSource;
|
|
6635
|
+
function module$contents$safevalues$builders$url_builders_fromTrustedResourceUrl(url) {
|
|
6636
|
+
return module$contents$safevalues$internals$url_impl_createUrlInternal(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString());
|
|
6753
6637
|
}
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_ = value;
|
|
6760
|
-
};
|
|
6761
|
-
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.prototype.toString = function() {
|
|
6762
|
-
return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_.toString();
|
|
6763
|
-
};
|
|
6764
|
-
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createRule = function(selector, style) {
|
|
6765
|
-
if ((0,goog.string.internal.contains)(selector, "<")) {
|
|
6766
|
-
throw Error("Selector does not allow '<', got: " + selector);
|
|
6638
|
+
module$exports$safevalues$builders$url_builders.fromTrustedResourceUrl = module$contents$safevalues$builders$url_builders_fromTrustedResourceUrl;
|
|
6639
|
+
function module$contents$safevalues$builders$url_builders_isSafeUrlPrefix(prefix, isWholeUrl) {
|
|
6640
|
+
var markerIdx = prefix.search(/[:/?#]/);
|
|
6641
|
+
if (0 > markerIdx) {
|
|
6642
|
+
return isWholeUrl;
|
|
6767
6643
|
}
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=\\^$|] and strings, got: " + selector);
|
|
6644
|
+
if (":" !== prefix.charAt(markerIdx)) {
|
|
6645
|
+
return !0;
|
|
6771
6646
|
}
|
|
6772
|
-
|
|
6773
|
-
|
|
6647
|
+
var scheme = prefix.substring(0, markerIdx).toLowerCase();
|
|
6648
|
+
return /^[a-z][a-z\d+.-]*$/.test(scheme) && "javascript" !== scheme;
|
|
6649
|
+
}
|
|
6650
|
+
function module$contents$safevalues$builders$url_builders_safeUrl(templateObj) {
|
|
6651
|
+
var rest = $jscomp.getRestArguments.apply(1, arguments);
|
|
6652
|
+
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, rest.length);
|
|
6653
|
+
var prefix = templateObj[0];
|
|
6654
|
+
if (goog.DEBUG && !module$contents$safevalues$builders$url_builders_isSafeUrlPrefix(prefix, 0 === rest.length)) {
|
|
6655
|
+
throw Error("Trying to interpolate with unsupported prefix: " + prefix);
|
|
6774
6656
|
}
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(styleSheet);
|
|
6778
|
-
};
|
|
6779
|
-
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_ = function(s) {
|
|
6780
|
-
for (var brackets = {"(":")", "[":"]"}, expectedBrackets = [], i = 0; i < s.length; i++) {
|
|
6781
|
-
var ch = s[i];
|
|
6782
|
-
if (brackets[ch]) {
|
|
6783
|
-
expectedBrackets.push(brackets[ch]);
|
|
6784
|
-
} else if (module$contents$goog$object_contains(brackets, ch) && expectedBrackets.pop() != ch) {
|
|
6785
|
-
return !1;
|
|
6786
|
-
}
|
|
6657
|
+
for (var urlParts = [prefix], i = 0; i < rest.length; i++) {
|
|
6658
|
+
urlParts.push(String(rest[i])), urlParts.push(templateObj[i + 1]);
|
|
6787
6659
|
}
|
|
6788
|
-
return
|
|
6789
|
-
}
|
|
6790
|
-
module$
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.EMPTY;
|
|
6660
|
+
return module$contents$safevalues$internals$url_impl_createUrlInternal(urlParts.join(""));
|
|
6661
|
+
}
|
|
6662
|
+
module$exports$safevalues$builders$url_builders.safeUrl = module$contents$safevalues$builders$url_builders_safeUrl;
|
|
6663
|
+
var module$contents$safevalues$builders$url_builders_ASSUME_IMPLEMENTS_URL_API = 2020 <= goog.FEATURESET_YEAR, module$contents$safevalues$builders$url_builders_supportsURLAPI = module$contents$safevalues$internals$pure_pure(function() {
|
|
6664
|
+
return module$contents$safevalues$builders$url_builders_ASSUME_IMPLEMENTS_URL_API ? !0 : "function" === typeof URL;
|
|
6665
|
+
});
|
|
6666
|
+
function module$contents$safevalues$builders$url_builders_legacyExtractScheme(url) {
|
|
6667
|
+
var aTag = document.createElement("a");
|
|
6668
|
+
try {
|
|
6669
|
+
aTag.href = url;
|
|
6670
|
+
} catch (e) {
|
|
6671
|
+
return;
|
|
6801
6672
|
}
|
|
6802
|
-
|
|
6803
|
-
return
|
|
6804
|
-
}
|
|
6805
|
-
module$contents$
|
|
6806
|
-
|
|
6807
|
-
|
|
6673
|
+
var protocol = aTag.protocol;
|
|
6674
|
+
return ":" === protocol || "" === protocol ? "https:" : protocol;
|
|
6675
|
+
}
|
|
6676
|
+
var module$contents$safevalues$builders$url_builders_JavaScriptUrlSanitizationCallback;
|
|
6677
|
+
function module$contents$safevalues$builders$url_builders_extractScheme(url) {
|
|
6678
|
+
if (!module$contents$safevalues$builders$url_builders_supportsURLAPI) {
|
|
6679
|
+
return module$contents$safevalues$builders$url_builders_legacyExtractScheme(url);
|
|
6808
6680
|
}
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
}
|
|
6812
|
-
|
|
6813
|
-
return new module$contents$goog$html$SafeStyleSheet_SafeStyleSheet(styleSheet, module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE);
|
|
6814
|
-
};
|
|
6815
|
-
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.EMPTY = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse("");
|
|
6816
|
-
goog.html.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
6817
|
-
var module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE = {}, module$contents$goog$html$SafeHtml_SafeHtml = function(value, token) {
|
|
6818
|
-
if (goog.DEBUG && token !== module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE) {
|
|
6819
|
-
throw Error("SafeHtml is not meant to be built directly");
|
|
6820
|
-
}
|
|
6821
|
-
this.privateDoNotAccessOrElseSafeHtmlWrappedValue_ = value;
|
|
6822
|
-
};
|
|
6823
|
-
module$contents$goog$html$SafeHtml_SafeHtml.prototype.toString = function() {
|
|
6824
|
-
return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString();
|
|
6825
|
-
};
|
|
6826
|
-
module$contents$goog$html$SafeHtml_SafeHtml.unwrap = function(safeHtml) {
|
|
6827
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(safeHtml).toString();
|
|
6828
|
-
};
|
|
6829
|
-
module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML = function(safeHtml) {
|
|
6830
|
-
if (safeHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml && safeHtml.constructor === module$contents$goog$html$SafeHtml_SafeHtml) {
|
|
6831
|
-
return safeHtml.privateDoNotAccessOrElseSafeHtmlWrappedValue_;
|
|
6681
|
+
try {
|
|
6682
|
+
var parsedUrl = new URL(url);
|
|
6683
|
+
} catch (e) {
|
|
6684
|
+
return "https:";
|
|
6832
6685
|
}
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
module$contents$
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
module$
|
|
6840
|
-
|
|
6841
|
-
|
|
6686
|
+
return parsedUrl.protocol;
|
|
6687
|
+
}
|
|
6688
|
+
module$exports$safevalues$builders$url_builders.extractScheme = module$contents$safevalues$builders$url_builders_extractScheme;
|
|
6689
|
+
var module$contents$safevalues$builders$url_builders_ALLOWED_SCHEMES = ["data:", "http:", "https:", "mailto:", "ftp:"];
|
|
6690
|
+
module$exports$safevalues$builders$url_builders.IS_NOT_JAVASCRIPT_URL_PATTERN = /^\s*(?!javascript:)(?:[a-z0-9+.-]+:|[^:\/?#]*(?:[\/?#]|$))/i;
|
|
6691
|
+
function module$contents$safevalues$builders$url_builders_hasJavascriptUrlScheme(url) {
|
|
6692
|
+
return !module$exports$safevalues$builders$url_builders.IS_NOT_JAVASCRIPT_URL_PATTERN.test(url);
|
|
6693
|
+
}
|
|
6694
|
+
function module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl(url) {
|
|
6695
|
+
if (module$contents$safevalues$builders$url_builders_hasJavascriptUrlScheme(url)) {
|
|
6696
|
+
module$contents$safevalues$builders$url_builders_triggerCallbacks(url);
|
|
6697
|
+
} else {
|
|
6698
|
+
return url;
|
|
6842
6699
|
}
|
|
6843
|
-
|
|
6844
|
-
|
|
6700
|
+
}
|
|
6701
|
+
module$exports$safevalues$builders$url_builders.sanitizeJavaScriptUrl = module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl;
|
|
6702
|
+
function module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url) {
|
|
6703
|
+
return url instanceof goog.html.SafeUrl ? module$contents$safevalues$internals$url_impl_unwrapUrl(url) : module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl(url);
|
|
6704
|
+
}
|
|
6705
|
+
module$exports$safevalues$builders$url_builders.unwrapUrlOrSanitize = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize;
|
|
6706
|
+
function module$contents$safevalues$builders$url_builders_restrictivelySanitizeUrl(url) {
|
|
6707
|
+
var parsedScheme = module$contents$safevalues$builders$url_builders_extractScheme(url);
|
|
6708
|
+
return void 0 !== parsedScheme && -1 !== module$contents$safevalues$builders$url_builders_ALLOWED_SCHEMES.indexOf(parsedScheme.toLowerCase()) ? url : "about:invalid#zClosurez";
|
|
6709
|
+
}
|
|
6710
|
+
module$exports$safevalues$builders$url_builders.restrictivelySanitizeUrl = module$contents$safevalues$builders$url_builders_restrictivelySanitizeUrl;
|
|
6711
|
+
var module$contents$safevalues$builders$url_builders_sanitizationCallbacks = [], module$contents$safevalues$builders$url_builders_triggerCallbacks = function(url) {
|
|
6845
6712
|
};
|
|
6846
|
-
module$contents$
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6713
|
+
goog.DEBUG && module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback(function(url) {
|
|
6714
|
+
console.warn("A URL with content '" + url + "' was sanitized away.");
|
|
6715
|
+
});
|
|
6716
|
+
function module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback(callback) {
|
|
6717
|
+
-1 === module$contents$safevalues$builders$url_builders_sanitizationCallbacks.indexOf(callback) && module$contents$safevalues$builders$url_builders_sanitizationCallbacks.push(callback);
|
|
6718
|
+
module$contents$safevalues$builders$url_builders_triggerCallbacks = function(url) {
|
|
6719
|
+
module$contents$safevalues$builders$url_builders_sanitizationCallbacks.forEach(function(callback) {
|
|
6720
|
+
callback(url);
|
|
6721
|
+
});
|
|
6722
|
+
};
|
|
6723
|
+
}
|
|
6724
|
+
module$exports$safevalues$builders$url_builders.addJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback;
|
|
6725
|
+
function module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback(callback) {
|
|
6726
|
+
var callbackIndex = module$contents$safevalues$builders$url_builders_sanitizationCallbacks.indexOf(callback);
|
|
6727
|
+
-1 !== callbackIndex && module$contents$safevalues$builders$url_builders_sanitizationCallbacks.splice(callbackIndex, 1);
|
|
6728
|
+
}
|
|
6729
|
+
module$exports$safevalues$builders$url_builders.removeJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback;
|
|
6730
|
+
var module$exports$safevalues$dom$elements$anchor = {}, module$contents$safevalues$dom$elements$anchor_module = module$contents$safevalues$dom$elements$anchor_module || {id:"third_party/javascript/safevalues/dom/elements/anchor.closure.js"};
|
|
6731
|
+
module$exports$safevalues$dom$elements$anchor.setHref = function(anchor, url) {
|
|
6732
|
+
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
6733
|
+
void 0 !== sanitizedUrl && (anchor.href = sanitizedUrl);
|
|
6852
6734
|
};
|
|
6853
|
-
module$
|
|
6854
|
-
|
|
6855
|
-
|
|
6735
|
+
var module$exports$safevalues$dom$elements$area = {}, module$contents$safevalues$dom$elements$area_module = module$contents$safevalues$dom$elements$area_module || {id:"third_party/javascript/safevalues/dom/elements/area.closure.js"};
|
|
6736
|
+
module$exports$safevalues$dom$elements$area.setHref = function(area, url) {
|
|
6737
|
+
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
6738
|
+
void 0 !== sanitizedUrl && (area.href = sanitizedUrl);
|
|
6856
6739
|
};
|
|
6857
|
-
module$contents$
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
}
|
|
6861
|
-
if (tagName.toUpperCase() in module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES) {
|
|
6862
|
-
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? "Tag name <" + tagName + "> is not allowed for SafeHtml." : "");
|
|
6863
|
-
}
|
|
6740
|
+
var module$exports$safevalues$dom$elements$base = {}, module$contents$safevalues$dom$elements$base_module = module$contents$safevalues$dom$elements$base_module || {id:"third_party/javascript/safevalues/dom/elements/base.closure.js"};
|
|
6741
|
+
module$exports$safevalues$dom$elements$base.setHref = function(baseEl, url) {
|
|
6742
|
+
baseEl.href = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url);
|
|
6864
6743
|
};
|
|
6865
|
-
module$
|
|
6866
|
-
|
|
6867
|
-
var
|
|
6868
|
-
|
|
6869
|
-
fixedAttributes.srcdoc = srcdoc && module$contents$goog$html$SafeHtml_SafeHtml.unwrap(srcdoc);
|
|
6870
|
-
var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes(fixedAttributes, {sandbox:""}, attributes);
|
|
6871
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
|
|
6744
|
+
var module$exports$safevalues$dom$elements$button = {}, module$contents$safevalues$dom$elements$button_module = module$contents$safevalues$dom$elements$button_module || {id:"third_party/javascript/safevalues/dom/elements/button.closure.js"};
|
|
6745
|
+
module$exports$safevalues$dom$elements$button.setFormaction = function(button, url) {
|
|
6746
|
+
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
6747
|
+
void 0 !== sanitizedUrl && (button.formAction = sanitizedUrl);
|
|
6872
6748
|
};
|
|
6873
|
-
module$
|
|
6874
|
-
|
|
6875
|
-
|
|
6749
|
+
var module$exports$safevalues$internals$secrets = {}, module$contents$safevalues$internals$secrets_module = module$contents$safevalues$internals$secrets_module || {id:"third_party/javascript/safevalues/internals/secrets.closure.js"};
|
|
6750
|
+
module$exports$safevalues$internals$secrets.secretToken = {};
|
|
6751
|
+
function module$contents$safevalues$internals$secrets_ensureTokenIsValid(token) {
|
|
6752
|
+
if (goog.DEBUG && token !== module$exports$safevalues$internals$secrets.secretToken) {
|
|
6753
|
+
throw Error("Bad secret");
|
|
6876
6754
|
}
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes(fixedAttributes, {}, attributes);
|
|
6882
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
|
|
6755
|
+
}
|
|
6756
|
+
module$exports$safevalues$internals$secrets.ensureTokenIsValid = module$contents$safevalues$internals$secrets_ensureTokenIsValid;
|
|
6757
|
+
var module$exports$safevalues$internals$attribute_impl = {}, module$contents$safevalues$internals$attribute_impl_module = module$contents$safevalues$internals$attribute_impl_module || {id:"third_party/javascript/safevalues/internals/attribute_impl.closure.js"};
|
|
6758
|
+
module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix = function() {
|
|
6883
6759
|
};
|
|
6884
|
-
module$contents$
|
|
6885
|
-
|
|
6760
|
+
var module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl = function(attrPrefix, token) {
|
|
6761
|
+
module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
6762
|
+
this.privateDoNotAccessOrElseWrappedAttrPrefix = attrPrefix;
|
|
6886
6763
|
};
|
|
6887
|
-
module$contents$
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script", combinedAttrs);
|
|
6764
|
+
$jscomp.inherits(module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl, module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix);
|
|
6765
|
+
module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl.prototype.toString = function() {
|
|
6766
|
+
return this.privateDoNotAccessOrElseWrappedAttrPrefix;
|
|
6891
6767
|
};
|
|
6892
|
-
module$contents$
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6768
|
+
function module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal(attrPrefix) {
|
|
6769
|
+
return new module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl(attrPrefix, module$exports$safevalues$internals$secrets.secretToken);
|
|
6770
|
+
}
|
|
6771
|
+
module$exports$safevalues$internals$attribute_impl.createAttributePrefixInternal = module$contents$safevalues$internals$attribute_impl_createAttributePrefixInternal;
|
|
6772
|
+
function module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix(value) {
|
|
6773
|
+
if (value instanceof module$contents$safevalues$internals$attribute_impl_AttributePrefixImpl) {
|
|
6774
|
+
return value.privateDoNotAccessOrElseWrappedAttrPrefix;
|
|
6897
6775
|
}
|
|
6898
|
-
var
|
|
6899
|
-
|
|
6776
|
+
var message = "";
|
|
6777
|
+
goog.DEBUG && (message = "Unexpected type when unwrapping SafeAttributePrefix");
|
|
6778
|
+
throw Error(message);
|
|
6779
|
+
}
|
|
6780
|
+
module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
6781
|
+
goog.dom.HtmlElement = function() {
|
|
6900
6782
|
};
|
|
6901
|
-
|
|
6902
|
-
var unwrappedUrl = goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(url));
|
|
6903
|
-
(module$contents$goog$labs$userAgent$browser_matchIE() || module$contents$goog$labs$userAgent$browser_matchEdgeHtml()) && goog.string.internal.contains(unwrappedUrl, ";") && (unwrappedUrl = "'" + unwrappedUrl.replace(/'/g, "%27") + "'");
|
|
6904
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta", {"http-equiv":"refresh", content:(secs || 0) + "; url=" + unwrappedUrl});
|
|
6783
|
+
goog.dom.TagName = function() {
|
|
6905
6784
|
};
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
if (Array.isArray(argument)) {
|
|
6909
|
-
argument.forEach(addArgument);
|
|
6910
|
-
} else {
|
|
6911
|
-
var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(argument);
|
|
6912
|
-
content.push(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html));
|
|
6913
|
-
}
|
|
6914
|
-
};
|
|
6915
|
-
parts.forEach(addArgument);
|
|
6916
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(content.join(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(separatorHtml)));
|
|
6785
|
+
goog.dom.TagName.cast = function(name, type) {
|
|
6786
|
+
return name;
|
|
6917
6787
|
};
|
|
6918
|
-
|
|
6919
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.join(module$contents$goog$html$SafeHtml_SafeHtml.EMPTY, Array.prototype.slice.call(arguments));
|
|
6788
|
+
goog.dom.TagName.prototype.toString = function() {
|
|
6920
6789
|
};
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6790
|
+
goog.dom.TagName.A = "A";
|
|
6791
|
+
goog.dom.TagName.ABBR = "ABBR";
|
|
6792
|
+
goog.dom.TagName.ACRONYM = "ACRONYM";
|
|
6793
|
+
goog.dom.TagName.ADDRESS = "ADDRESS";
|
|
6794
|
+
goog.dom.TagName.APPLET = "APPLET";
|
|
6795
|
+
goog.dom.TagName.AREA = "AREA";
|
|
6796
|
+
goog.dom.TagName.ARTICLE = "ARTICLE";
|
|
6797
|
+
goog.dom.TagName.ASIDE = "ASIDE";
|
|
6798
|
+
goog.dom.TagName.AUDIO = "AUDIO";
|
|
6799
|
+
goog.dom.TagName.B = "B";
|
|
6800
|
+
goog.dom.TagName.BASE = "BASE";
|
|
6801
|
+
goog.dom.TagName.BASEFONT = "BASEFONT";
|
|
6802
|
+
goog.dom.TagName.BDI = "BDI";
|
|
6803
|
+
goog.dom.TagName.BDO = "BDO";
|
|
6804
|
+
goog.dom.TagName.BIG = "BIG";
|
|
6805
|
+
goog.dom.TagName.BLOCKQUOTE = "BLOCKQUOTE";
|
|
6806
|
+
goog.dom.TagName.BODY = "BODY";
|
|
6807
|
+
goog.dom.TagName.BR = "BR";
|
|
6808
|
+
goog.dom.TagName.BUTTON = "BUTTON";
|
|
6809
|
+
goog.dom.TagName.CANVAS = "CANVAS";
|
|
6810
|
+
goog.dom.TagName.CAPTION = "CAPTION";
|
|
6811
|
+
goog.dom.TagName.CENTER = "CENTER";
|
|
6812
|
+
goog.dom.TagName.CITE = "CITE";
|
|
6813
|
+
goog.dom.TagName.CODE = "CODE";
|
|
6814
|
+
goog.dom.TagName.COL = "COL";
|
|
6815
|
+
goog.dom.TagName.COLGROUP = "COLGROUP";
|
|
6816
|
+
goog.dom.TagName.COMMAND = "COMMAND";
|
|
6817
|
+
goog.dom.TagName.DATA = "DATA";
|
|
6818
|
+
goog.dom.TagName.DATALIST = "DATALIST";
|
|
6819
|
+
goog.dom.TagName.DD = "DD";
|
|
6820
|
+
goog.dom.TagName.DEL = "DEL";
|
|
6821
|
+
goog.dom.TagName.DETAILS = "DETAILS";
|
|
6822
|
+
goog.dom.TagName.DFN = "DFN";
|
|
6823
|
+
goog.dom.TagName.DIALOG = "DIALOG";
|
|
6824
|
+
goog.dom.TagName.DIR = "DIR";
|
|
6825
|
+
goog.dom.TagName.DIV = "DIV";
|
|
6826
|
+
goog.dom.TagName.DL = "DL";
|
|
6827
|
+
goog.dom.TagName.DT = "DT";
|
|
6828
|
+
goog.dom.TagName.EM = "EM";
|
|
6829
|
+
goog.dom.TagName.EMBED = "EMBED";
|
|
6830
|
+
goog.dom.TagName.FIELDSET = "FIELDSET";
|
|
6831
|
+
goog.dom.TagName.FIGCAPTION = "FIGCAPTION";
|
|
6832
|
+
goog.dom.TagName.FIGURE = "FIGURE";
|
|
6833
|
+
goog.dom.TagName.FONT = "FONT";
|
|
6834
|
+
goog.dom.TagName.FOOTER = "FOOTER";
|
|
6835
|
+
goog.dom.TagName.FORM = "FORM";
|
|
6836
|
+
goog.dom.TagName.FRAME = "FRAME";
|
|
6837
|
+
goog.dom.TagName.FRAMESET = "FRAMESET";
|
|
6838
|
+
goog.dom.TagName.H1 = "H1";
|
|
6839
|
+
goog.dom.TagName.H2 = "H2";
|
|
6840
|
+
goog.dom.TagName.H3 = "H3";
|
|
6841
|
+
goog.dom.TagName.H4 = "H4";
|
|
6842
|
+
goog.dom.TagName.H5 = "H5";
|
|
6843
|
+
goog.dom.TagName.H6 = "H6";
|
|
6844
|
+
goog.dom.TagName.HEAD = "HEAD";
|
|
6845
|
+
goog.dom.TagName.HEADER = "HEADER";
|
|
6846
|
+
goog.dom.TagName.HGROUP = "HGROUP";
|
|
6847
|
+
goog.dom.TagName.HR = "HR";
|
|
6848
|
+
goog.dom.TagName.HTML = "HTML";
|
|
6849
|
+
goog.dom.TagName.I = "I";
|
|
6850
|
+
goog.dom.TagName.IFRAME = "IFRAME";
|
|
6851
|
+
goog.dom.TagName.IMG = "IMG";
|
|
6852
|
+
goog.dom.TagName.INPUT = "INPUT";
|
|
6853
|
+
goog.dom.TagName.INS = "INS";
|
|
6854
|
+
goog.dom.TagName.ISINDEX = "ISINDEX";
|
|
6855
|
+
goog.dom.TagName.KBD = "KBD";
|
|
6856
|
+
goog.dom.TagName.KEYGEN = "KEYGEN";
|
|
6857
|
+
goog.dom.TagName.LABEL = "LABEL";
|
|
6858
|
+
goog.dom.TagName.LEGEND = "LEGEND";
|
|
6859
|
+
goog.dom.TagName.LI = "LI";
|
|
6860
|
+
goog.dom.TagName.LINK = "LINK";
|
|
6861
|
+
goog.dom.TagName.MAIN = "MAIN";
|
|
6862
|
+
goog.dom.TagName.MAP = "MAP";
|
|
6863
|
+
goog.dom.TagName.MARK = "MARK";
|
|
6864
|
+
goog.dom.TagName.MATH = "MATH";
|
|
6865
|
+
goog.dom.TagName.MENU = "MENU";
|
|
6866
|
+
goog.dom.TagName.MENUITEM = "MENUITEM";
|
|
6867
|
+
goog.dom.TagName.META = "META";
|
|
6868
|
+
goog.dom.TagName.METER = "METER";
|
|
6869
|
+
goog.dom.TagName.NAV = "NAV";
|
|
6870
|
+
goog.dom.TagName.NOFRAMES = "NOFRAMES";
|
|
6871
|
+
goog.dom.TagName.NOSCRIPT = "NOSCRIPT";
|
|
6872
|
+
goog.dom.TagName.OBJECT = "OBJECT";
|
|
6873
|
+
goog.dom.TagName.OL = "OL";
|
|
6874
|
+
goog.dom.TagName.OPTGROUP = "OPTGROUP";
|
|
6875
|
+
goog.dom.TagName.OPTION = "OPTION";
|
|
6876
|
+
goog.dom.TagName.OUTPUT = "OUTPUT";
|
|
6877
|
+
goog.dom.TagName.P = "P";
|
|
6878
|
+
goog.dom.TagName.PARAM = "PARAM";
|
|
6879
|
+
goog.dom.TagName.PICTURE = "PICTURE";
|
|
6880
|
+
goog.dom.TagName.PRE = "PRE";
|
|
6881
|
+
goog.dom.TagName.PROGRESS = "PROGRESS";
|
|
6882
|
+
goog.dom.TagName.Q = "Q";
|
|
6883
|
+
goog.dom.TagName.RP = "RP";
|
|
6884
|
+
goog.dom.TagName.RT = "RT";
|
|
6885
|
+
goog.dom.TagName.RTC = "RTC";
|
|
6886
|
+
goog.dom.TagName.RUBY = "RUBY";
|
|
6887
|
+
goog.dom.TagName.S = "S";
|
|
6888
|
+
goog.dom.TagName.SAMP = "SAMP";
|
|
6889
|
+
goog.dom.TagName.SCRIPT = "SCRIPT";
|
|
6890
|
+
goog.dom.TagName.SECTION = "SECTION";
|
|
6891
|
+
goog.dom.TagName.SELECT = "SELECT";
|
|
6892
|
+
goog.dom.TagName.SMALL = "SMALL";
|
|
6893
|
+
goog.dom.TagName.SOURCE = "SOURCE";
|
|
6894
|
+
goog.dom.TagName.SPAN = "SPAN";
|
|
6895
|
+
goog.dom.TagName.STRIKE = "STRIKE";
|
|
6896
|
+
goog.dom.TagName.STRONG = "STRONG";
|
|
6897
|
+
goog.dom.TagName.STYLE = "STYLE";
|
|
6898
|
+
goog.dom.TagName.SUB = "SUB";
|
|
6899
|
+
goog.dom.TagName.SUMMARY = "SUMMARY";
|
|
6900
|
+
goog.dom.TagName.SUP = "SUP";
|
|
6901
|
+
goog.dom.TagName.SVG = "SVG";
|
|
6902
|
+
goog.dom.TagName.TABLE = "TABLE";
|
|
6903
|
+
goog.dom.TagName.TBODY = "TBODY";
|
|
6904
|
+
goog.dom.TagName.TD = "TD";
|
|
6905
|
+
goog.dom.TagName.TEMPLATE = "TEMPLATE";
|
|
6906
|
+
goog.dom.TagName.TEXTAREA = "TEXTAREA";
|
|
6907
|
+
goog.dom.TagName.TFOOT = "TFOOT";
|
|
6908
|
+
goog.dom.TagName.TH = "TH";
|
|
6909
|
+
goog.dom.TagName.THEAD = "THEAD";
|
|
6910
|
+
goog.dom.TagName.TIME = "TIME";
|
|
6911
|
+
goog.dom.TagName.TITLE = "TITLE";
|
|
6912
|
+
goog.dom.TagName.TR = "TR";
|
|
6913
|
+
goog.dom.TagName.TRACK = "TRACK";
|
|
6914
|
+
goog.dom.TagName.TT = "TT";
|
|
6915
|
+
goog.dom.TagName.U = "U";
|
|
6916
|
+
goog.dom.TagName.UL = "UL";
|
|
6917
|
+
goog.dom.TagName.VAR = "VAR";
|
|
6918
|
+
goog.dom.TagName.VIDEO = "VIDEO";
|
|
6919
|
+
goog.dom.TagName.WBR = "WBR";
|
|
6920
|
+
goog.dom.tags = {};
|
|
6921
|
+
goog.dom.tags.VOID_TAGS_ = {area:!0, base:!0, br:!0, col:!0, command:!0, embed:!0, hr:!0, img:!0, input:!0, keygen:!0, link:!0, meta:!0, param:!0, source:!0, track:!0, wbr:!0};
|
|
6922
|
+
goog.dom.tags.isVoidTag = function(tagName) {
|
|
6923
|
+
return !0 === goog.dom.tags.VOID_TAGS_[tagName];
|
|
6924
6924
|
};
|
|
6925
|
-
module$contents$goog$html$
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
if (goog.dom.tags.isVoidTag(tagName.toLowerCase())) {
|
|
6929
|
-
goog.asserts.assert(!content.length, "Void tag <" + tagName + "> does not allow content."), result += ">";
|
|
6930
|
-
} else {
|
|
6931
|
-
var html = module$contents$goog$html$SafeHtml_SafeHtml.concat(content);
|
|
6932
|
-
result += ">" + module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html) + "</" + tagName + ">";
|
|
6925
|
+
var module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE = {}, module$contents$goog$html$SafeStyle_SafeStyle = function(value, token) {
|
|
6926
|
+
if (goog.DEBUG && token !== module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE) {
|
|
6927
|
+
throw Error("SafeStyle is not meant to be built directly");
|
|
6933
6928
|
}
|
|
6934
|
-
|
|
6929
|
+
this.privateDoNotAccessOrElseSafeStyleWrappedValue_ = value;
|
|
6935
6930
|
};
|
|
6936
|
-
module$contents$goog$html$
|
|
6937
|
-
var
|
|
6938
|
-
if (
|
|
6939
|
-
|
|
6940
|
-
if (Object.prototype.hasOwnProperty.call(attributes, name)) {
|
|
6941
|
-
if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(name)) {
|
|
6942
|
-
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Invalid attribute name "' + name + '".' : "");
|
|
6943
|
-
}
|
|
6944
|
-
var value = attributes[name];
|
|
6945
|
-
null != value && (result += " " + module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value));
|
|
6946
|
-
}
|
|
6947
|
-
}
|
|
6931
|
+
module$contents$goog$html$SafeStyle_SafeStyle.fromConstant = function(style) {
|
|
6932
|
+
var styleString = goog.string.Const.unwrap(style);
|
|
6933
|
+
if (0 === styleString.length) {
|
|
6934
|
+
return module$contents$goog$html$SafeStyle_SafeStyle.EMPTY;
|
|
6948
6935
|
}
|
|
6949
|
-
|
|
6936
|
+
(0,goog.asserts.assert)((0,goog.string.internal.endsWith)(styleString, ";"), "Last character of style string is not ';': " + styleString);
|
|
6937
|
+
(0,goog.asserts.assert)((0,goog.string.internal.contains)(styleString, ":"), "Style string must contain at least one ':', to specify a \"name: value\" pair: " + styleString);
|
|
6938
|
+
return module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(styleString);
|
|
6950
6939
|
};
|
|
6951
|
-
module$contents$goog$html$
|
|
6952
|
-
|
|
6953
|
-
for (name in fixedAttributes) {
|
|
6954
|
-
Object.prototype.hasOwnProperty.call(fixedAttributes, name) && (goog.asserts.assert(name.toLowerCase() == name, "Must be lower case"), combinedAttributes[name] = fixedAttributes[name]);
|
|
6955
|
-
}
|
|
6956
|
-
for (var name$jscomp$0 in defaultAttributes) {
|
|
6957
|
-
Object.prototype.hasOwnProperty.call(defaultAttributes, name$jscomp$0) && (goog.asserts.assert(name$jscomp$0.toLowerCase() == name$jscomp$0, "Must be lower case"), combinedAttributes[name$jscomp$0] = defaultAttributes[name$jscomp$0]);
|
|
6958
|
-
}
|
|
6959
|
-
if (attributes) {
|
|
6960
|
-
for (var name$jscomp$1 in attributes) {
|
|
6961
|
-
if (Object.prototype.hasOwnProperty.call(attributes, name$jscomp$1)) {
|
|
6962
|
-
var nameLower = name$jscomp$1.toLowerCase();
|
|
6963
|
-
if (nameLower in fixedAttributes) {
|
|
6964
|
-
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Cannot override "' + nameLower + '" attribute, got "' + name$jscomp$1 + '" with value "' + attributes[name$jscomp$1] + '"' : "");
|
|
6965
|
-
}
|
|
6966
|
-
nameLower in defaultAttributes && delete combinedAttributes[nameLower];
|
|
6967
|
-
combinedAttributes[name$jscomp$1] = attributes[name$jscomp$1];
|
|
6968
|
-
}
|
|
6969
|
-
}
|
|
6970
|
-
}
|
|
6971
|
-
return combinedAttributes;
|
|
6940
|
+
module$contents$goog$html$SafeStyle_SafeStyle.prototype.toString = function() {
|
|
6941
|
+
return this.privateDoNotAccessOrElseSafeStyleWrappedValue_.toString();
|
|
6972
6942
|
};
|
|
6973
|
-
module$contents$goog$html$
|
|
6974
|
-
module$contents$goog$html$
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
if (value instanceof goog.string.Const) {
|
|
6980
|
-
value = goog.string.Const.unwrap(value);
|
|
6981
|
-
} else if ("style" == name.toLowerCase()) {
|
|
6982
|
-
if (module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE) {
|
|
6983
|
-
value = module$contents$goog$html$SafeHtml_getStyleValue(value);
|
|
6984
|
-
} else {
|
|
6985
|
-
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "style" not supported.' : "");
|
|
6986
|
-
}
|
|
6987
|
-
} else {
|
|
6988
|
-
if (/^on/i.test(name)) {
|
|
6989
|
-
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" requires goog.string.Const value, "' + value + '" given.' : "");
|
|
6990
|
-
}
|
|
6991
|
-
if (name.toLowerCase() in module$contents$goog$html$SafeHtml_URL_ATTRIBUTES) {
|
|
6992
|
-
if (value instanceof goog.html.TrustedResourceUrl) {
|
|
6993
|
-
value = goog.html.TrustedResourceUrl.unwrap(value);
|
|
6994
|
-
} else if (value instanceof goog.html.SafeUrl) {
|
|
6995
|
-
value = goog.html.SafeUrl.unwrap(value);
|
|
6996
|
-
} else if ("string" === typeof value) {
|
|
6997
|
-
value = goog.html.SafeUrl.sanitize(value).toString();
|
|
6998
|
-
} else {
|
|
6999
|
-
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" on tag "' + tagName + '" requires goog.html.SafeUrl, goog.string.Const, or string, value "' + value + '" given.' : "");
|
|
7000
|
-
}
|
|
7001
|
-
}
|
|
7002
|
-
}
|
|
7003
|
-
goog.asserts.assert(value instanceof goog.html.SafeUrl || value instanceof goog.html.TrustedResourceUrl || value instanceof module$contents$goog$html$SafeStyle_SafeStyle || value instanceof module$contents$goog$html$SafeHtml_SafeHtml || "string" === typeof value || "number" === typeof value, "String or number value expected, got " + typeof value + " with value: " + value);
|
|
7004
|
-
return name + '="' + goog.string.internal.htmlEscape(String(value)) + '"';
|
|
7005
|
-
}
|
|
7006
|
-
function module$contents$goog$html$SafeHtml_getStyleValue(value) {
|
|
7007
|
-
if (!goog.isObject(value)) {
|
|
7008
|
-
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'The "style" attribute requires goog.html.SafeStyle or map of style properties, ' + typeof value + " given: " + value : "");
|
|
7009
|
-
}
|
|
7010
|
-
value instanceof module$contents$goog$html$SafeStyle_SafeStyle || (value = module$contents$goog$html$SafeStyle_SafeStyle.create(value));
|
|
7011
|
-
return module$contents$goog$html$SafeStyle_SafeStyle.unwrap(value);
|
|
7012
|
-
}
|
|
7013
|
-
module$contents$goog$html$SafeHtml_SafeHtml.DOCTYPE_HTML = function() {
|
|
7014
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>");
|
|
7015
|
-
}();
|
|
7016
|
-
module$contents$goog$html$SafeHtml_SafeHtml.EMPTY = new module$contents$goog$html$SafeHtml_SafeHtml(goog.global.trustedTypes && goog.global.trustedTypes.emptyHTML || "", module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE);
|
|
7017
|
-
module$contents$goog$html$SafeHtml_SafeHtml.BR = function() {
|
|
7018
|
-
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>");
|
|
7019
|
-
}();
|
|
7020
|
-
goog.html.SafeHtml = module$contents$goog$html$SafeHtml_SafeHtml;
|
|
7021
|
-
var module$exports$goog$html$internals = {};
|
|
7022
|
-
module$exports$goog$html$internals.createSafeHtml = module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse;
|
|
7023
|
-
module$exports$goog$html$internals.createSafeStyle = module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse;
|
|
7024
|
-
module$exports$goog$html$internals.createSafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse;
|
|
7025
|
-
module$exports$goog$html$internals.createSafeUrl = goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse;
|
|
7026
|
-
module$exports$goog$html$internals.createTrustedResourceUrl = goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse;
|
|
7027
|
-
var module$exports$safevalues$internals$resource_url_impl = {}, module$contents$safevalues$internals$resource_url_impl_module = module$contents$safevalues$internals$resource_url_impl_module || {id:"third_party/javascript/safevalues/internals/resource_url_impl.closure.js"};
|
|
7028
|
-
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl = goog.html.TrustedResourceUrl;
|
|
7029
|
-
function module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(url) {
|
|
7030
|
-
return (0,goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse)(url);
|
|
7031
|
-
}
|
|
7032
|
-
module$exports$safevalues$internals$resource_url_impl.createResourceUrlInternal = module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal;
|
|
7033
|
-
function module$contents$safevalues$internals$resource_url_impl_isResourceUrl(value) {
|
|
7034
|
-
return value instanceof goog.html.TrustedResourceUrl;
|
|
7035
|
-
}
|
|
7036
|
-
module$exports$safevalues$internals$resource_url_impl.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
|
|
7037
|
-
function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(value) {
|
|
7038
|
-
return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(value);
|
|
7039
|
-
}
|
|
7040
|
-
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
7041
|
-
var $jscomp$templatelit$m425881384$5 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$m425881384$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$8 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$m425881384$9 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$10 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
7042
|
-
["\\0"]), $jscomp$templatelit$m425881384$11 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$12 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), module$contents$safevalues$internals$string_literal_module = module$contents$safevalues$internals$string_literal_module || {id:"third_party/javascript/safevalues/internals/string_literal.closure.js"};
|
|
7043
|
-
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
7044
|
-
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
7045
|
-
throw new TypeError("\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################");
|
|
7046
|
-
}
|
|
7047
|
-
}
|
|
7048
|
-
function module$contents$safevalues$internals$string_literal_checkFrozen(templateObj) {
|
|
7049
|
-
return Object.isFrozen(templateObj) && Object.isFrozen(templateObj.raw);
|
|
7050
|
-
}
|
|
7051
|
-
var module$contents$safevalues$internals$string_literal_TagFn;
|
|
7052
|
-
function module$contents$safevalues$internals$string_literal_checkTranspiled(fn) {
|
|
7053
|
-
return -1 === fn.toString().indexOf("`");
|
|
7054
|
-
}
|
|
7055
|
-
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
7056
|
-
return tag($jscomp$templatelit$m425881384$5);
|
|
7057
|
-
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
7058
|
-
return tag($jscomp$templatelit$m425881384$6);
|
|
7059
|
-
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
7060
|
-
return tag($jscomp$templatelit$m425881384$7);
|
|
7061
|
-
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
7062
|
-
return tag($jscomp$templatelit$m425881384$8);
|
|
7063
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$9) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$10) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$11) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$12);
|
|
7064
|
-
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
7065
|
-
return Array.isArray(templateObj) && Array.isArray(templateObj.raw) && templateObj.length === templateObj.raw.length && (module$contents$safevalues$internals$string_literal_isTranspiled || templateObj !== templateObj.raw) && (module$contents$safevalues$internals$string_literal_isTranspiled && !module$contents$safevalues$internals$string_literal_frozenTSA || module$contents$safevalues$internals$string_literal_checkFrozen(templateObj)) ?
|
|
7066
|
-
!0 : !1;
|
|
7067
|
-
}
|
|
7068
|
-
;var module$exports$safevalues$internals$url_impl = {}, module$contents$safevalues$internals$url_impl_module = module$contents$safevalues$internals$url_impl_module || {id:"third_party/javascript/safevalues/internals/url_impl.closure.js"};
|
|
7069
|
-
module$exports$safevalues$internals$url_impl.SafeUrl = goog.html.SafeUrl;
|
|
7070
|
-
function module$contents$safevalues$internals$url_impl_createUrlInternal(url) {
|
|
7071
|
-
return (0,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse)(url);
|
|
7072
|
-
}
|
|
7073
|
-
module$exports$safevalues$internals$url_impl.createUrlInternal = module$contents$safevalues$internals$url_impl_createUrlInternal;
|
|
7074
|
-
module$exports$safevalues$internals$url_impl.ABOUT_BLANK = module$contents$safevalues$internals$url_impl_createUrlInternal("about:blank");
|
|
7075
|
-
module$exports$safevalues$internals$url_impl.INNOCUOUS_URL = module$contents$safevalues$internals$url_impl_createUrlInternal("about:invalid#zClosurez");
|
|
7076
|
-
function module$contents$safevalues$internals$url_impl_isUrl(value) {
|
|
7077
|
-
return value instanceof goog.html.SafeUrl;
|
|
7078
|
-
}
|
|
7079
|
-
module$exports$safevalues$internals$url_impl.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
|
|
7080
|
-
function module$contents$safevalues$internals$url_impl_unwrapUrl(value) {
|
|
7081
|
-
return goog.html.SafeUrl.unwrap(value);
|
|
7082
|
-
}
|
|
7083
|
-
module$exports$safevalues$internals$url_impl.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
7084
|
-
var module$exports$safevalues$builders$url_builders = {}, module$contents$safevalues$builders$url_builders_module = module$contents$safevalues$builders$url_builders_module || {id:"third_party/javascript/safevalues/builders/url_builders.closure.js"};
|
|
7085
|
-
function module$contents$safevalues$builders$url_builders_isSafeMimeType(mimeType) {
|
|
7086
|
-
var match = mimeType.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i);
|
|
7087
|
-
return 2 === (null == match ? void 0 : match.length) && (module$contents$safevalues$builders$url_builders_isSafeImageMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeVideoMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeAudioMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeFontMimeType(match[1]));
|
|
7088
|
-
}
|
|
7089
|
-
function module$contents$safevalues$builders$url_builders_isSafeImageMimeType(mimeType) {
|
|
7090
|
-
return /^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(mimeType);
|
|
7091
|
-
}
|
|
7092
|
-
function module$contents$safevalues$builders$url_builders_isSafeVideoMimeType(mimeType) {
|
|
7093
|
-
return /^video\/(?:mpeg|mp4|ogg|webm|x-matroska|quicktime|x-ms-wmv)$/i.test(mimeType);
|
|
7094
|
-
}
|
|
7095
|
-
function module$contents$safevalues$builders$url_builders_isSafeAudioMimeType(mimeType) {
|
|
7096
|
-
return /^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(mimeType);
|
|
7097
|
-
}
|
|
7098
|
-
function module$contents$safevalues$builders$url_builders_isSafeFontMimeType(mimeType) {
|
|
7099
|
-
return /^font\/\w+/i.test(mimeType);
|
|
7100
|
-
}
|
|
7101
|
-
module$exports$safevalues$builders$url_builders.Scheme = function() {
|
|
6943
|
+
module$contents$goog$html$SafeStyle_SafeStyle.unwrap = function(safeStyle) {
|
|
6944
|
+
if (safeStyle instanceof module$contents$goog$html$SafeStyle_SafeStyle && safeStyle.constructor === module$contents$goog$html$SafeStyle_SafeStyle) {
|
|
6945
|
+
return safeStyle.privateDoNotAccessOrElseSafeStyleWrappedValue_;
|
|
6946
|
+
}
|
|
6947
|
+
(0,goog.asserts.fail)("expected object of type SafeStyle, got '" + safeStyle + "' of type " + goog.typeOf(safeStyle));
|
|
6948
|
+
return "type_error:SafeStyle";
|
|
7102
6949
|
};
|
|
7103
|
-
|
|
7104
|
-
|
|
6950
|
+
module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse = function(style) {
|
|
6951
|
+
return new module$contents$goog$html$SafeStyle_SafeStyle(style, module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE);
|
|
7105
6952
|
};
|
|
7106
|
-
|
|
7107
|
-
|
|
6953
|
+
module$contents$goog$html$SafeStyle_SafeStyle.create = function(map) {
|
|
6954
|
+
var style = "", name;
|
|
6955
|
+
for (name in map) {
|
|
6956
|
+
if (Object.prototype.hasOwnProperty.call(map, name)) {
|
|
6957
|
+
if (!/^[-_a-zA-Z0-9]+$/.test(name)) {
|
|
6958
|
+
throw Error("Name allows only [-_a-zA-Z0-9], got: " + name);
|
|
6959
|
+
}
|
|
6960
|
+
var value = map[name];
|
|
6961
|
+
null != value && (value = Array.isArray(value) ? value.map(module$contents$goog$html$SafeStyle_sanitizePropertyValue).join(" ") : module$contents$goog$html$SafeStyle_sanitizePropertyValue(value), style += name + ":" + value + ";");
|
|
6962
|
+
}
|
|
6963
|
+
}
|
|
6964
|
+
return style ? module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(style) : module$contents$goog$html$SafeStyle_SafeStyle.EMPTY;
|
|
6965
|
+
};
|
|
6966
|
+
module$contents$goog$html$SafeStyle_SafeStyle.concat = function(var_args) {
|
|
6967
|
+
var style = "", addArgument = function(argument) {
|
|
6968
|
+
Array.isArray(argument) ? argument.forEach(addArgument) : style += module$contents$goog$html$SafeStyle_SafeStyle.unwrap(argument);
|
|
6969
|
+
};
|
|
6970
|
+
Array.prototype.forEach.call(arguments, addArgument);
|
|
6971
|
+
return style ? module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(style) : module$contents$goog$html$SafeStyle_SafeStyle.EMPTY;
|
|
6972
|
+
};
|
|
6973
|
+
module$contents$goog$html$SafeStyle_SafeStyle.EMPTY = module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse("");
|
|
6974
|
+
module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING = "zClosurez";
|
|
6975
|
+
function module$contents$goog$html$SafeStyle_sanitizePropertyValue(value) {
|
|
6976
|
+
if (value instanceof goog.html.SafeUrl) {
|
|
6977
|
+
return 'url("' + goog.html.SafeUrl.unwrap(value).replace(/</g, "%3c").replace(/[\\"]/g, "\\$&") + '")';
|
|
6978
|
+
}
|
|
6979
|
+
var result = value instanceof goog.string.Const ? goog.string.Const.unwrap(value) : module$contents$goog$html$SafeStyle_sanitizePropertyValueString(String(value));
|
|
6980
|
+
if (/[{;}]/.test(result)) {
|
|
6981
|
+
throw new module$contents$goog$asserts_AssertionError("Value does not allow [{;}], got: %s.", [result]);
|
|
6982
|
+
}
|
|
6983
|
+
return result;
|
|
7108
6984
|
}
|
|
7109
|
-
function module$contents$
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
6985
|
+
function module$contents$goog$html$SafeStyle_sanitizePropertyValueString(value) {
|
|
6986
|
+
var valueWithoutFunctions = value.replace(module$contents$goog$html$SafeStyle_FUNCTIONS_RE, "$1").replace(module$contents$goog$html$SafeStyle_FUNCTIONS_RE, "$1").replace(module$contents$goog$html$SafeStyle_URL_RE, "url");
|
|
6987
|
+
if (module$contents$goog$html$SafeStyle_VALUE_RE.test(valueWithoutFunctions)) {
|
|
6988
|
+
if (module$contents$goog$html$SafeStyle_COMMENT_RE.test(value)) {
|
|
6989
|
+
return (0,goog.asserts.fail)("String value disallows comments, got: " + value), module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING;
|
|
6990
|
+
}
|
|
6991
|
+
if (!module$contents$goog$html$SafeStyle_hasBalancedQuotes(value)) {
|
|
6992
|
+
return (0,goog.asserts.fail)("String value requires balanced quotes, got: " + value), module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING;
|
|
6993
|
+
}
|
|
6994
|
+
if (!module$contents$goog$html$SafeStyle_hasBalancedSquareBrackets(value)) {
|
|
6995
|
+
return (0,goog.asserts.fail)("String value requires balanced square brackets and one identifier per pair of brackets, got: " + value), module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING;
|
|
6996
|
+
}
|
|
6997
|
+
} else {
|
|
6998
|
+
return (0,goog.asserts.fail)("String value allows only [-+,.\"'%_!#/ a-zA-Z0-9\\[\\]] and simple functions, got: " + value), module$contents$goog$html$SafeStyle_SafeStyle.INNOCUOUS_STRING;
|
|
6999
|
+
}
|
|
7000
|
+
return module$contents$goog$html$SafeStyle_sanitizeUrl(value);
|
|
7113
7001
|
}
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
}), RTSP:module$contents$safevalues$builders$url_builders_simpleScheme("rtsp"), DATA:module$contents$safevalues$builders$url_builders_simpleScheme("data"), HTTP:module$contents$safevalues$builders$url_builders_simpleScheme("http"), HTTPS:module$contents$safevalues$builders$url_builders_simpleScheme("https"), EXTENSION:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
|
|
7119
|
-
return 0 === url.indexOf("chrome-extension://") || 0 === url.indexOf("moz-extension://") || 0 === url.indexOf("ms-browser-extension://");
|
|
7120
|
-
}), FTP:module$contents$safevalues$builders$url_builders_simpleScheme("ftp"), RELATIVE:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
|
|
7121
|
-
return /^[^:]*([/?#]|$)/.test(url);
|
|
7122
|
-
}), MAILTO:module$contents$safevalues$builders$url_builders_simpleScheme("mailto"), INTENT:module$contents$safevalues$builders$url_builders_simpleScheme("intent"), MARKET:module$contents$safevalues$builders$url_builders_simpleScheme("market"), ITMS:module$contents$safevalues$builders$url_builders_simpleScheme("itms"), ITMS_APPSS:module$contents$safevalues$builders$url_builders_simpleScheme("itms-appss"),
|
|
7123
|
-
ITMS_SERVICES:module$contents$safevalues$builders$url_builders_simpleScheme("itms-services"), FACEBOOK_MESSENGER:module$contents$safevalues$builders$url_builders_simpleScheme("fb-messenger"), WHATSAPP:module$contents$safevalues$builders$url_builders_simpleScheme("whatsapp"), SIP:new module$contents$safevalues$builders$url_builders_SchemeImpl(function(url) {
|
|
7124
|
-
return 0 === url.indexOf("sip:") || 0 === url.indexOf("sips:");
|
|
7125
|
-
}), SMS:module$contents$safevalues$builders$url_builders_simpleScheme("sms"), VND_YOUTUBE:module$contents$safevalues$builders$url_builders_simpleScheme("vnd.youtube")};
|
|
7126
|
-
var module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES = [module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.DATA, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.HTTP, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.HTTPS, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.MAILTO,
|
|
7127
|
-
module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.FTP, module$exports$safevalues$builders$url_builders.SanitizableUrlScheme.RELATIVE];
|
|
7128
|
-
function module$contents$safevalues$builders$url_builders_trySanitizeUrl(url, allowedSchemes) {
|
|
7129
|
-
allowedSchemes = void 0 === allowedSchemes ? module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES : allowedSchemes;
|
|
7130
|
-
if (module$contents$safevalues$internals$url_impl_isUrl(url)) {
|
|
7131
|
-
return url;
|
|
7002
|
+
function module$contents$goog$html$SafeStyle_hasBalancedQuotes(value) {
|
|
7003
|
+
for (var outsideSingle = !0, outsideDouble = !0, i = 0; i < value.length; i++) {
|
|
7004
|
+
var c = value.charAt(i);
|
|
7005
|
+
"'" == c && outsideDouble ? outsideSingle = !outsideSingle : '"' == c && outsideSingle && (outsideDouble = !outsideDouble);
|
|
7132
7006
|
}
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7007
|
+
return outsideSingle && outsideDouble;
|
|
7008
|
+
}
|
|
7009
|
+
function module$contents$goog$html$SafeStyle_hasBalancedSquareBrackets(value) {
|
|
7010
|
+
for (var outside = !0, tokenRe = /^[-_a-zA-Z0-9]$/, i = 0; i < value.length; i++) {
|
|
7011
|
+
var c = value.charAt(i);
|
|
7012
|
+
if ("]" == c) {
|
|
7013
|
+
if (outside) {
|
|
7014
|
+
return !1;
|
|
7015
|
+
}
|
|
7016
|
+
outside = !0;
|
|
7017
|
+
} else if ("[" == c) {
|
|
7018
|
+
if (!outside) {
|
|
7019
|
+
return !1;
|
|
7020
|
+
}
|
|
7021
|
+
outside = !1;
|
|
7022
|
+
} else if (!outside && !tokenRe.test(c)) {
|
|
7023
|
+
return !1;
|
|
7137
7024
|
}
|
|
7138
7025
|
}
|
|
7026
|
+
return outside;
|
|
7139
7027
|
}
|
|
7140
|
-
module$
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7028
|
+
var module$contents$goog$html$SafeStyle_VALUE_RE = RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"), module$contents$goog$html$SafeStyle_URL_RE = RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))", "g"), module$contents$goog$html$SafeStyle_FUNCTIONS_RE = RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|steps|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)", "g"), module$contents$goog$html$SafeStyle_COMMENT_RE =
|
|
7029
|
+
/\/\*/;
|
|
7030
|
+
function module$contents$goog$html$SafeStyle_sanitizeUrl(value) {
|
|
7031
|
+
return value.replace(module$contents$goog$html$SafeStyle_URL_RE, function(match, before, url, after) {
|
|
7032
|
+
var quote = "";
|
|
7033
|
+
url = url.replace(/^(['"])(.*)\1$/, function(match, start, inside) {
|
|
7034
|
+
quote = start;
|
|
7035
|
+
return inside;
|
|
7036
|
+
});
|
|
7037
|
+
var sanitized = goog.html.SafeUrl.sanitize(url).toString();
|
|
7038
|
+
return before + quote + sanitized + quote + after;
|
|
7039
|
+
});
|
|
7146
7040
|
}
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
if (
|
|
7150
|
-
|
|
7041
|
+
goog.html.SafeStyle = module$contents$goog$html$SafeStyle_SafeStyle;
|
|
7042
|
+
var module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE = {}, module$contents$goog$html$SafeStyleSheet_SafeStyleSheet = function(value, token) {
|
|
7043
|
+
if (goog.DEBUG && token !== module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE) {
|
|
7044
|
+
throw Error("SafeStyleSheet is not meant to be built directly");
|
|
7151
7045
|
}
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7046
|
+
this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_ = value;
|
|
7047
|
+
};
|
|
7048
|
+
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.prototype.toString = function() {
|
|
7049
|
+
return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_.toString();
|
|
7050
|
+
};
|
|
7051
|
+
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createRule = function(selector, style) {
|
|
7052
|
+
if ((0,goog.string.internal.contains)(selector, "<")) {
|
|
7053
|
+
throw Error("Selector does not allow '<', got: " + selector);
|
|
7156
7054
|
}
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
function module$contents$safevalues$builders$url_builders_fromMediaSource(media) {
|
|
7161
|
-
if ("undefined" !== typeof MediaSource && media instanceof MediaSource) {
|
|
7162
|
-
return module$contents$safevalues$internals$url_impl_createUrlInternal(URL.createObjectURL(media));
|
|
7055
|
+
var selectorToCheck = selector.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g, "");
|
|
7056
|
+
if (!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=\\^$|]+$/.test(selectorToCheck)) {
|
|
7057
|
+
throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=\\^$|] and strings, got: " + selector);
|
|
7163
7058
|
}
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
throw Error(message);
|
|
7167
|
-
}
|
|
7168
|
-
module$exports$safevalues$builders$url_builders.fromMediaSource = module$contents$safevalues$builders$url_builders_fromMediaSource;
|
|
7169
|
-
function module$contents$safevalues$builders$url_builders_fromTrustedResourceUrl(url) {
|
|
7170
|
-
return module$contents$safevalues$internals$url_impl_createUrlInternal(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString());
|
|
7171
|
-
}
|
|
7172
|
-
module$exports$safevalues$builders$url_builders.fromTrustedResourceUrl = module$contents$safevalues$builders$url_builders_fromTrustedResourceUrl;
|
|
7173
|
-
function module$contents$safevalues$builders$url_builders_isSafeUrlPrefix(prefix, isWholeUrl) {
|
|
7174
|
-
var markerIdx = prefix.search(/[:/?#]/);
|
|
7175
|
-
if (0 > markerIdx) {
|
|
7176
|
-
return isWholeUrl;
|
|
7059
|
+
if (!module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_(selectorToCheck)) {
|
|
7060
|
+
throw Error("() and [] in selector must be balanced, got: " + selector);
|
|
7177
7061
|
}
|
|
7178
|
-
|
|
7179
|
-
|
|
7062
|
+
style instanceof module$contents$goog$html$SafeStyle_SafeStyle || (style = module$contents$goog$html$SafeStyle_SafeStyle.create(style));
|
|
7063
|
+
var styleSheet = selector + "{" + module$contents$goog$html$SafeStyle_SafeStyle.unwrap(style).replace(/</g, "\\3C ") + "}";
|
|
7064
|
+
return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(styleSheet);
|
|
7065
|
+
};
|
|
7066
|
+
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_ = function(s) {
|
|
7067
|
+
for (var brackets = {"(":")", "[":"]"}, expectedBrackets = [], i = 0; i < s.length; i++) {
|
|
7068
|
+
var ch = s[i];
|
|
7069
|
+
if (brackets[ch]) {
|
|
7070
|
+
expectedBrackets.push(brackets[ch]);
|
|
7071
|
+
} else if (module$contents$goog$object_contains(brackets, ch) && expectedBrackets.pop() != ch) {
|
|
7072
|
+
return !1;
|
|
7073
|
+
}
|
|
7180
7074
|
}
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
function
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7075
|
+
return 0 == expectedBrackets.length;
|
|
7076
|
+
};
|
|
7077
|
+
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.concat = function(var_args) {
|
|
7078
|
+
var result = "", addArgument = function(argument) {
|
|
7079
|
+
Array.isArray(argument) ? argument.forEach(addArgument) : result += module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(argument);
|
|
7080
|
+
};
|
|
7081
|
+
Array.prototype.forEach.call(arguments, addArgument);
|
|
7082
|
+
return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(result);
|
|
7083
|
+
};
|
|
7084
|
+
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.fromConstant = function(styleSheet) {
|
|
7085
|
+
var styleSheetString = goog.string.Const.unwrap(styleSheet);
|
|
7086
|
+
if (0 === styleSheetString.length) {
|
|
7087
|
+
return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.EMPTY;
|
|
7190
7088
|
}
|
|
7191
|
-
|
|
7192
|
-
|
|
7089
|
+
(0,goog.asserts.assert)(!(0,goog.string.internal.contains)(styleSheetString, "<"), "Forbidden '<' character in style sheet string: " + styleSheetString);
|
|
7090
|
+
return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(styleSheetString);
|
|
7091
|
+
};
|
|
7092
|
+
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap = function(safeStyleSheet) {
|
|
7093
|
+
if (safeStyleSheet instanceof module$contents$goog$html$SafeStyleSheet_SafeStyleSheet && safeStyleSheet.constructor === module$contents$goog$html$SafeStyleSheet_SafeStyleSheet) {
|
|
7094
|
+
return safeStyleSheet.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_;
|
|
7193
7095
|
}
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
return module$contents$
|
|
7199
|
-
}
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7096
|
+
(0,goog.asserts.fail)("expected object of type SafeStyleSheet, got '" + safeStyleSheet + "' of type " + goog.typeOf(safeStyleSheet));
|
|
7097
|
+
return "type_error:SafeStyleSheet";
|
|
7098
|
+
};
|
|
7099
|
+
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse = function(styleSheet) {
|
|
7100
|
+
return new module$contents$goog$html$SafeStyleSheet_SafeStyleSheet(styleSheet, module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE);
|
|
7101
|
+
};
|
|
7102
|
+
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.EMPTY = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse("");
|
|
7103
|
+
goog.html.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
7104
|
+
var module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE = {}, module$contents$goog$html$SafeHtml_SafeHtml = function(value, token) {
|
|
7105
|
+
if (goog.DEBUG && token !== module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE) {
|
|
7106
|
+
throw Error("SafeHtml is not meant to be built directly");
|
|
7107
|
+
}
|
|
7108
|
+
this.privateDoNotAccessOrElseSafeHtmlWrappedValue_ = value;
|
|
7109
|
+
};
|
|
7110
|
+
module$contents$goog$html$SafeHtml_SafeHtml.prototype.toString = function() {
|
|
7111
|
+
return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString();
|
|
7112
|
+
};
|
|
7113
|
+
module$contents$goog$html$SafeHtml_SafeHtml.unwrap = function(safeHtml) {
|
|
7114
|
+
return module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(safeHtml).toString();
|
|
7115
|
+
};
|
|
7116
|
+
module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML = function(safeHtml) {
|
|
7117
|
+
if (safeHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml && safeHtml.constructor === module$contents$goog$html$SafeHtml_SafeHtml) {
|
|
7118
|
+
return safeHtml.privateDoNotAccessOrElseSafeHtmlWrappedValue_;
|
|
7119
|
+
}
|
|
7120
|
+
goog.asserts.fail("expected object of type SafeHtml, got '" + safeHtml + "' of type " + goog.typeOf(safeHtml));
|
|
7121
|
+
return "type_error:SafeHtml";
|
|
7122
|
+
};
|
|
7123
|
+
module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape = function(textOrHtml) {
|
|
7124
|
+
return textOrHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml ? textOrHtml : module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(String(textOrHtml)));
|
|
7125
|
+
};
|
|
7126
|
+
module$contents$goog$html$SafeHtml_SafeHtml.htmlEscapePreservingNewlines = function(textOrHtml) {
|
|
7127
|
+
if (textOrHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml) {
|
|
7128
|
+
return textOrHtml;
|
|
7129
|
+
}
|
|
7130
|
+
var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(textOrHtml);
|
|
7131
|
+
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html)));
|
|
7132
|
+
};
|
|
7133
|
+
module$contents$goog$html$SafeHtml_SafeHtml.htmlEscapePreservingNewlinesAndSpaces = function(textOrHtml) {
|
|
7134
|
+
if (textOrHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml) {
|
|
7135
|
+
return textOrHtml;
|
|
7206
7136
|
}
|
|
7207
|
-
var
|
|
7208
|
-
return
|
|
7209
|
-
}
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7137
|
+
var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(textOrHtml);
|
|
7138
|
+
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html)));
|
|
7139
|
+
};
|
|
7140
|
+
module$contents$goog$html$SafeHtml_SafeHtml.create = function(tagName, attributes, content) {
|
|
7141
|
+
module$contents$goog$html$SafeHtml_SafeHtml.verifyTagName(String(tagName));
|
|
7142
|
+
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(tagName), attributes, content);
|
|
7143
|
+
};
|
|
7144
|
+
module$contents$goog$html$SafeHtml_SafeHtml.verifyTagName = function(tagName) {
|
|
7145
|
+
if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(tagName)) {
|
|
7146
|
+
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? "Invalid tag name <" + tagName + ">." : "");
|
|
7214
7147
|
}
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
} catch (e) {
|
|
7218
|
-
return "https:";
|
|
7148
|
+
if (tagName.toUpperCase() in module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES) {
|
|
7149
|
+
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? "Tag name <" + tagName + "> is not allowed for SafeHtml." : "");
|
|
7219
7150
|
}
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
var
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
return url;
|
|
7151
|
+
};
|
|
7152
|
+
module$contents$goog$html$SafeHtml_SafeHtml.createIframe = function(src, srcdoc, attributes, content) {
|
|
7153
|
+
src && goog.html.TrustedResourceUrl.unwrap(src);
|
|
7154
|
+
var fixedAttributes = {};
|
|
7155
|
+
fixedAttributes.src = src || null;
|
|
7156
|
+
fixedAttributes.srcdoc = srcdoc && module$contents$goog$html$SafeHtml_SafeHtml.unwrap(srcdoc);
|
|
7157
|
+
var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes(fixedAttributes, {sandbox:""}, attributes);
|
|
7158
|
+
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
|
|
7159
|
+
};
|
|
7160
|
+
module$contents$goog$html$SafeHtml_SafeHtml.createSandboxIframe = function(src, srcdoc, attributes, content) {
|
|
7161
|
+
if (!module$contents$goog$html$SafeHtml_SafeHtml.canUseSandboxIframe()) {
|
|
7162
|
+
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? "The browser does not support sandboxed iframes." : "");
|
|
7233
7163
|
}
|
|
7234
|
-
}
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
}
|
|
7239
|
-
module$
|
|
7240
|
-
function module$contents$safevalues$builders$url_builders_restrictivelySanitizeUrl(url) {
|
|
7241
|
-
var parsedScheme = module$contents$safevalues$builders$url_builders_extractScheme(url);
|
|
7242
|
-
return void 0 !== parsedScheme && -1 !== module$contents$safevalues$builders$url_builders_ALLOWED_SCHEMES.indexOf(parsedScheme.toLowerCase()) ? url : "about:invalid#zClosurez";
|
|
7243
|
-
}
|
|
7244
|
-
module$exports$safevalues$builders$url_builders.restrictivelySanitizeUrl = module$contents$safevalues$builders$url_builders_restrictivelySanitizeUrl;
|
|
7245
|
-
var module$contents$safevalues$builders$url_builders_sanitizationCallbacks = [], module$contents$safevalues$builders$url_builders_triggerCallbacks = function(url) {
|
|
7164
|
+
var fixedAttributes = {};
|
|
7165
|
+
fixedAttributes.src = src ? goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(src)) : null;
|
|
7166
|
+
fixedAttributes.srcdoc = srcdoc || null;
|
|
7167
|
+
fixedAttributes.sandbox = "";
|
|
7168
|
+
var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes(fixedAttributes, {}, attributes);
|
|
7169
|
+
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
|
|
7246
7170
|
};
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
});
|
|
7250
|
-
function module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback(callback) {
|
|
7251
|
-
-1 === module$contents$safevalues$builders$url_builders_sanitizationCallbacks.indexOf(callback) && module$contents$safevalues$builders$url_builders_sanitizationCallbacks.push(callback);
|
|
7252
|
-
module$contents$safevalues$builders$url_builders_triggerCallbacks = function(url) {
|
|
7253
|
-
module$contents$safevalues$builders$url_builders_sanitizationCallbacks.forEach(function(callback) {
|
|
7254
|
-
callback(url);
|
|
7255
|
-
});
|
|
7256
|
-
};
|
|
7257
|
-
}
|
|
7258
|
-
module$exports$safevalues$builders$url_builders.addJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback;
|
|
7259
|
-
function module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback(callback) {
|
|
7260
|
-
var callbackIndex = module$contents$safevalues$builders$url_builders_sanitizationCallbacks.indexOf(callback);
|
|
7261
|
-
-1 !== callbackIndex && module$contents$safevalues$builders$url_builders_sanitizationCallbacks.splice(callbackIndex, 1);
|
|
7262
|
-
}
|
|
7263
|
-
module$exports$safevalues$builders$url_builders.removeJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback;
|
|
7264
|
-
var module$exports$safevalues$dom$elements$anchor = {}, module$contents$safevalues$dom$elements$anchor_module = module$contents$safevalues$dom$elements$anchor_module || {id:"third_party/javascript/safevalues/dom/elements/anchor.closure.js"};
|
|
7265
|
-
module$exports$safevalues$dom$elements$anchor.setHref = function(anchor, url) {
|
|
7266
|
-
var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
|
|
7267
|
-
void 0 !== sanitizedUrl && (anchor.href = sanitizedUrl);
|
|
7171
|
+
module$contents$goog$html$SafeHtml_SafeHtml.canUseSandboxIframe = function() {
|
|
7172
|
+
return goog.global.HTMLIFrameElement && "sandbox" in goog.global.HTMLIFrameElement.prototype;
|
|
7268
7173
|
};
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
var
|
|
7272
|
-
|
|
7174
|
+
module$contents$goog$html$SafeHtml_SafeHtml.createScriptSrc = function(src, attributes) {
|
|
7175
|
+
goog.html.TrustedResourceUrl.unwrap(src);
|
|
7176
|
+
var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes({src:src}, {}, attributes);
|
|
7177
|
+
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script", combinedAttrs);
|
|
7273
7178
|
};
|
|
7274
|
-
|
|
7275
|
-
module$
|
|
7276
|
-
|
|
7179
|
+
module$contents$goog$html$SafeHtml_SafeHtml.createStyle = function(styleSheet, attributes) {
|
|
7180
|
+
var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes({type:"text/css"}, {}, attributes), content = "";
|
|
7181
|
+
styleSheet = module$contents$goog$array_concat(styleSheet);
|
|
7182
|
+
for (var i = 0; i < styleSheet.length; i++) {
|
|
7183
|
+
content += module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(styleSheet[i]);
|
|
7184
|
+
}
|
|
7185
|
+
var htmlContent = module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(content);
|
|
7186
|
+
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style", combinedAttrs, htmlContent);
|
|
7277
7187
|
};
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7188
|
+
module$contents$goog$html$SafeHtml_SafeHtml.createMetaRefresh = function(url, secs) {
|
|
7189
|
+
var unwrappedUrl = goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(url));
|
|
7190
|
+
(module$contents$goog$labs$userAgent$browser_matchIE() || module$contents$goog$labs$userAgent$browser_matchEdgeHtml()) && goog.string.internal.contains(unwrappedUrl, ";") && (unwrappedUrl = "'" + unwrappedUrl.replace(/'/g, "%27") + "'");
|
|
7191
|
+
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta", {"http-equiv":"refresh", content:(secs || 0) + "; url=" + unwrappedUrl});
|
|
7282
7192
|
};
|
|
7283
|
-
|
|
7284
|
-
module$
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7193
|
+
module$contents$goog$html$SafeHtml_SafeHtml.join = function(separator, parts) {
|
|
7194
|
+
var separatorHtml = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(separator), content = [], addArgument = function(argument) {
|
|
7195
|
+
if (Array.isArray(argument)) {
|
|
7196
|
+
argument.forEach(addArgument);
|
|
7197
|
+
} else {
|
|
7198
|
+
var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(argument);
|
|
7199
|
+
content.push(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html));
|
|
7200
|
+
}
|
|
7201
|
+
};
|
|
7202
|
+
parts.forEach(addArgument);
|
|
7203
|
+
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(content.join(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(separatorHtml)));
|
|
7204
|
+
};
|
|
7205
|
+
module$contents$goog$html$SafeHtml_SafeHtml.concat = function(var_args) {
|
|
7206
|
+
return module$contents$goog$html$SafeHtml_SafeHtml.join(module$contents$goog$html$SafeHtml_SafeHtml.EMPTY, Array.prototype.slice.call(arguments));
|
|
7207
|
+
};
|
|
7208
|
+
module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse = function(html) {
|
|
7209
|
+
var noinlineHtml = html, policy = goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse(), trustedHtml = policy ? policy.createHTML(noinlineHtml) : noinlineHtml;
|
|
7210
|
+
return new module$contents$goog$html$SafeHtml_SafeHtml(trustedHtml, module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE);
|
|
7211
|
+
};
|
|
7212
|
+
module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse = function(tagName, attributes, content) {
|
|
7213
|
+
var result = "<" + tagName + module$contents$goog$html$SafeHtml_SafeHtml.stringifyAttributes(tagName, attributes);
|
|
7214
|
+
null == content ? content = [] : Array.isArray(content) || (content = [content]);
|
|
7215
|
+
if (goog.dom.tags.isVoidTag(tagName.toLowerCase())) {
|
|
7216
|
+
goog.asserts.assert(!content.length, "Void tag <" + tagName + "> does not allow content."), result += ">";
|
|
7217
|
+
} else {
|
|
7218
|
+
var html = module$contents$goog$html$SafeHtml_SafeHtml.concat(content);
|
|
7219
|
+
result += ">" + module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html) + "</" + tagName + ">";
|
|
7288
7220
|
}
|
|
7289
|
-
|
|
7290
|
-
module$exports$safevalues$internals$secrets.ensureTokenIsValid = module$contents$safevalues$internals$secrets_ensureTokenIsValid;
|
|
7291
|
-
var module$exports$safevalues$internals$attribute_impl = {}, module$contents$safevalues$internals$attribute_impl_module = module$contents$safevalues$internals$attribute_impl_module || {id:"third_party/javascript/safevalues/internals/attribute_impl.closure.js"};
|
|
7292
|
-
module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix = function() {
|
|
7221
|
+
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(result);
|
|
7293
7222
|
};
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7223
|
+
module$contents$goog$html$SafeHtml_SafeHtml.stringifyAttributes = function(tagName, attributes) {
|
|
7224
|
+
var result = "";
|
|
7225
|
+
if (attributes) {
|
|
7226
|
+
for (var name in attributes) {
|
|
7227
|
+
if (Object.prototype.hasOwnProperty.call(attributes, name)) {
|
|
7228
|
+
if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(name)) {
|
|
7229
|
+
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Invalid attribute name "' + name + '".' : "");
|
|
7230
|
+
}
|
|
7231
|
+
var value = attributes[name];
|
|
7232
|
+
null != value && (result += " " + module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value));
|
|
7233
|
+
}
|
|
7234
|
+
}
|
|
7235
|
+
}
|
|
7236
|
+
return result;
|
|
7297
7237
|
};
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7238
|
+
module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes = function(fixedAttributes, defaultAttributes, attributes) {
|
|
7239
|
+
var combinedAttributes = {}, name;
|
|
7240
|
+
for (name in fixedAttributes) {
|
|
7241
|
+
Object.prototype.hasOwnProperty.call(fixedAttributes, name) && (goog.asserts.assert(name.toLowerCase() == name, "Must be lower case"), combinedAttributes[name] = fixedAttributes[name]);
|
|
7242
|
+
}
|
|
7243
|
+
for (var name$jscomp$0 in defaultAttributes) {
|
|
7244
|
+
Object.prototype.hasOwnProperty.call(defaultAttributes, name$jscomp$0) && (goog.asserts.assert(name$jscomp$0.toLowerCase() == name$jscomp$0, "Must be lower case"), combinedAttributes[name$jscomp$0] = defaultAttributes[name$jscomp$0]);
|
|
7245
|
+
}
|
|
7246
|
+
if (attributes) {
|
|
7247
|
+
for (var name$jscomp$1 in attributes) {
|
|
7248
|
+
if (Object.prototype.hasOwnProperty.call(attributes, name$jscomp$1)) {
|
|
7249
|
+
var nameLower = name$jscomp$1.toLowerCase();
|
|
7250
|
+
if (nameLower in fixedAttributes) {
|
|
7251
|
+
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Cannot override "' + nameLower + '" attribute, got "' + name$jscomp$1 + '" with value "' + attributes[name$jscomp$1] + '"' : "");
|
|
7252
|
+
}
|
|
7253
|
+
nameLower in defaultAttributes && delete combinedAttributes[nameLower];
|
|
7254
|
+
combinedAttributes[name$jscomp$1] = attributes[name$jscomp$1];
|
|
7255
|
+
}
|
|
7256
|
+
}
|
|
7257
|
+
}
|
|
7258
|
+
return combinedAttributes;
|
|
7301
7259
|
};
|
|
7302
|
-
|
|
7303
|
-
|
|
7260
|
+
module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES = goog.DEBUG;
|
|
7261
|
+
module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE = !0;
|
|
7262
|
+
module$contents$goog$html$SafeHtml_SafeHtml.from = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape;
|
|
7263
|
+
var module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG = /^[a-zA-Z0-9-]+$/, module$contents$goog$html$SafeHtml_URL_ATTRIBUTES = {action:!0, cite:!0, data:!0, formaction:!0, href:!0, manifest:!0, poster:!0, src:!0}, module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES = module$contents$goog$object_createSet(goog.dom.TagName.APPLET, goog.dom.TagName.BASE, goog.dom.TagName.EMBED, goog.dom.TagName.IFRAME, goog.dom.TagName.LINK, goog.dom.TagName.MATH, goog.dom.TagName.META, goog.dom.TagName.OBJECT,
|
|
7264
|
+
goog.dom.TagName.SCRIPT, goog.dom.TagName.STYLE, goog.dom.TagName.SVG, goog.dom.TagName.TEMPLATE);
|
|
7265
|
+
function module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value) {
|
|
7266
|
+
if (value instanceof goog.string.Const) {
|
|
7267
|
+
value = goog.string.Const.unwrap(value);
|
|
7268
|
+
} else if ("style" == name.toLowerCase()) {
|
|
7269
|
+
if (module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE) {
|
|
7270
|
+
value = module$contents$goog$html$SafeHtml_getStyleValue(value);
|
|
7271
|
+
} else {
|
|
7272
|
+
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "style" not supported.' : "");
|
|
7273
|
+
}
|
|
7274
|
+
} else {
|
|
7275
|
+
if (/^on/i.test(name)) {
|
|
7276
|
+
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" requires goog.string.Const value, "' + value + '" given.' : "");
|
|
7277
|
+
}
|
|
7278
|
+
if (name.toLowerCase() in module$contents$goog$html$SafeHtml_URL_ATTRIBUTES) {
|
|
7279
|
+
if (value instanceof goog.html.TrustedResourceUrl) {
|
|
7280
|
+
value = goog.html.TrustedResourceUrl.unwrap(value);
|
|
7281
|
+
} else if (value instanceof goog.html.SafeUrl) {
|
|
7282
|
+
value = goog.html.SafeUrl.unwrap(value);
|
|
7283
|
+
} else if ("string" === typeof value) {
|
|
7284
|
+
value = goog.html.SafeUrl.sanitize(value).toString();
|
|
7285
|
+
} else {
|
|
7286
|
+
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" on tag "' + tagName + '" requires goog.html.SafeUrl, goog.string.Const, or string, value "' + value + '" given.' : "");
|
|
7287
|
+
}
|
|
7288
|
+
}
|
|
7289
|
+
}
|
|
7290
|
+
goog.asserts.assert(value instanceof goog.html.SafeUrl || value instanceof goog.html.TrustedResourceUrl || value instanceof module$contents$goog$html$SafeStyle_SafeStyle || value instanceof module$contents$goog$html$SafeHtml_SafeHtml || "string" === typeof value || "number" === typeof value, "String or number value expected, got " + typeof value + " with value: " + value);
|
|
7291
|
+
return name + '="' + goog.string.internal.htmlEscape(String(value)) + '"';
|
|
7304
7292
|
}
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
return value.privateDoNotAccessOrElseWrappedAttrPrefix;
|
|
7293
|
+
function module$contents$goog$html$SafeHtml_getStyleValue(value) {
|
|
7294
|
+
if (!goog.isObject(value)) {
|
|
7295
|
+
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'The "style" attribute requires goog.html.SafeStyle or map of style properties, ' + typeof value + " given: " + value : "");
|
|
7309
7296
|
}
|
|
7310
|
-
|
|
7311
|
-
goog.
|
|
7312
|
-
throw Error(message);
|
|
7297
|
+
value instanceof module$contents$goog$html$SafeStyle_SafeStyle || (value = module$contents$goog$html$SafeStyle_SafeStyle.create(value));
|
|
7298
|
+
return module$contents$goog$html$SafeStyle_SafeStyle.unwrap(value);
|
|
7313
7299
|
}
|
|
7314
|
-
module$
|
|
7300
|
+
module$contents$goog$html$SafeHtml_SafeHtml.DOCTYPE_HTML = function() {
|
|
7301
|
+
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>");
|
|
7302
|
+
}();
|
|
7303
|
+
module$contents$goog$html$SafeHtml_SafeHtml.EMPTY = new module$contents$goog$html$SafeHtml_SafeHtml(goog.global.trustedTypes && goog.global.trustedTypes.emptyHTML || "", module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE);
|
|
7304
|
+
module$contents$goog$html$SafeHtml_SafeHtml.BR = function() {
|
|
7305
|
+
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>");
|
|
7306
|
+
}();
|
|
7307
|
+
goog.html.SafeHtml = module$contents$goog$html$SafeHtml_SafeHtml;
|
|
7308
|
+
var module$exports$goog$html$safehtml_internals_for_safevalues = {};
|
|
7309
|
+
module$exports$goog$html$safehtml_internals_for_safevalues.createSafeHtml = module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse;
|
|
7315
7310
|
var module$exports$safevalues$internals$html_impl = {}, module$contents$safevalues$internals$html_impl_module = module$contents$safevalues$internals$html_impl_module || {id:"third_party/javascript/safevalues/internals/html_impl.closure.js"};
|
|
7316
7311
|
module$exports$safevalues$internals$html_impl.SafeHtml = module$contents$goog$html$SafeHtml_SafeHtml;
|
|
7317
7312
|
module$exports$safevalues$internals$html_impl.createHtmlInternal = function(html) {
|
|
7318
|
-
return (0,module$exports$goog$html$
|
|
7313
|
+
return (0,module$exports$goog$html$safehtml_internals_for_safevalues.createSafeHtml)(html);
|
|
7319
7314
|
};
|
|
7320
7315
|
module$exports$safevalues$internals$html_impl.EMPTY_HTML = module$contents$goog$html$SafeHtml_SafeHtml.EMPTY;
|
|
7321
7316
|
module$exports$safevalues$internals$html_impl.isHtml = function(value) {
|
|
@@ -7324,10 +7319,12 @@ module$exports$safevalues$internals$html_impl.isHtml = function(value) {
|
|
|
7324
7319
|
module$exports$safevalues$internals$html_impl.unwrapHtml = function(value) {
|
|
7325
7320
|
return module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(value);
|
|
7326
7321
|
};
|
|
7322
|
+
var module$exports$goog$html$safestyle_internals_for_safevalues = {};
|
|
7323
|
+
module$exports$goog$html$safestyle_internals_for_safevalues.createSafeStyle = module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse;
|
|
7327
7324
|
var module$exports$safevalues$internals$style_impl = {}, module$contents$safevalues$internals$style_impl_module = module$contents$safevalues$internals$style_impl_module || {id:"third_party/javascript/safevalues/internals/style_impl.closure.js"};
|
|
7328
7325
|
module$exports$safevalues$internals$style_impl.SafeStyle = module$contents$goog$html$SafeStyle_SafeStyle;
|
|
7329
7326
|
function module$contents$safevalues$internals$style_impl_createStyleInternal(style) {
|
|
7330
|
-
return (0,module$exports$goog$html$
|
|
7327
|
+
return (0,module$exports$goog$html$safestyle_internals_for_safevalues.createSafeStyle)(style);
|
|
7331
7328
|
}
|
|
7332
7329
|
module$exports$safevalues$internals$style_impl.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
|
|
7333
7330
|
function module$contents$safevalues$internals$style_impl_isStyle(value) {
|
|
@@ -7562,7 +7559,7 @@ module$exports$safevalues$dom$globals$window.getStyleNonce = function(win) {
|
|
|
7562
7559
|
return module$contents$safevalues$dom$globals$window_getNonceFor("style", win);
|
|
7563
7560
|
};
|
|
7564
7561
|
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, win) {
|
|
7565
|
-
var $jscomp$optchain$
|
|
7562
|
+
var $jscomp$optchain$tmp220578679$0, $jscomp$optchain$tmp220578679$1, el = null == ($jscomp$optchain$tmp220578679$1 = ($jscomp$optchain$tmp220578679$0 = win.document).querySelector) ? void 0 : $jscomp$optchain$tmp220578679$1.call($jscomp$optchain$tmp220578679$0, elementName + "[nonce]");
|
|
7566
7563
|
return el ? el.nonce || el.getAttribute("nonce") || "" : "";
|
|
7567
7564
|
}
|
|
7568
7565
|
;var module$exports$safevalues$internals$script_impl = {}, module$contents$safevalues$internals$script_impl_module = module$contents$safevalues$internals$script_impl_module || {id:"third_party/javascript/safevalues/internals/script_impl.closure.js"}, module$contents$safevalues$internals$script_impl_trustedTypes = goog.global.trustedTypes;
|
|
@@ -7612,10 +7609,12 @@ module$exports$safevalues$dom$elements$script.setSrc = function(script, v, optio
|
|
|
7612
7609
|
script.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v);
|
|
7613
7610
|
(null == options ? 0 : options.omitNonce) || module$contents$safevalues$dom$elements$script_setNonceForScriptElement(script);
|
|
7614
7611
|
};
|
|
7612
|
+
var module$exports$goog$html$safestylesheet_internals_for_safevalues = {};
|
|
7613
|
+
module$exports$goog$html$safestylesheet_internals_for_safevalues.createSafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse;
|
|
7615
7614
|
var module$exports$safevalues$internals$style_sheet_impl = {}, module$contents$safevalues$internals$style_sheet_impl_module = module$contents$safevalues$internals$style_sheet_impl_module || {id:"third_party/javascript/safevalues/internals/style_sheet_impl.closure.js"};
|
|
7616
7615
|
module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
7617
7616
|
function module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheet) {
|
|
7618
|
-
return (0,module$exports$goog$html$
|
|
7617
|
+
return (0,module$exports$goog$html$safestylesheet_internals_for_safevalues.createSafeStyleSheet)(styleSheet);
|
|
7619
7618
|
}
|
|
7620
7619
|
module$exports$safevalues$internals$style_sheet_impl.createStyleSheetInternal = module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal;
|
|
7621
7620
|
function module$contents$safevalues$internals$style_sheet_impl_isStyleSheet(value) {
|
|
@@ -7963,48 +7962,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
|
|
|
7963
7962
|
return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
|
|
7964
7963
|
}
|
|
7965
7964
|
function module$contents$safevalues$dom$globals$fetch_fetchResourceUrl(u, init) {
|
|
7966
|
-
var response, $jscomp$optchain$
|
|
7967
|
-
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$
|
|
7968
|
-
if (1 == $jscomp$generator$context$
|
|
7969
|
-
return $jscomp$generator$context$
|
|
7970
|
-
}
|
|
7971
|
-
response = $jscomp$generator$context$
|
|
7972
|
-
mimeType = null == ($jscomp$optchain$
|
|
7973
|
-
return $jscomp$generator$context$
|
|
7965
|
+
var response, $jscomp$optchain$tmpm991617773$0, $jscomp$optchain$tmpm991617773$1, $jscomp$optchain$tmpm991617773$2, mimeType;
|
|
7966
|
+
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$m991617773$6) {
|
|
7967
|
+
if (1 == $jscomp$generator$context$m991617773$6.nextAddress) {
|
|
7968
|
+
return $jscomp$generator$context$m991617773$6.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
|
|
7969
|
+
}
|
|
7970
|
+
response = $jscomp$generator$context$m991617773$6.yieldResult;
|
|
7971
|
+
mimeType = null == ($jscomp$optchain$tmpm991617773$0 = response.headers.get("Content-Type")) ? void 0 : null == ($jscomp$optchain$tmpm991617773$1 = $jscomp$optchain$tmpm991617773$0.split(";", 2)) ? void 0 : null == ($jscomp$optchain$tmpm991617773$2 = $jscomp$optchain$tmpm991617773$1[0]) ? void 0 : $jscomp$optchain$tmpm991617773$2.toLowerCase();
|
|
7972
|
+
return $jscomp$generator$context$m991617773$6.return({html:function() {
|
|
7974
7973
|
var text;
|
|
7975
|
-
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$
|
|
7976
|
-
if (1 == $jscomp$generator$context$
|
|
7974
|
+
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$m991617773$3) {
|
|
7975
|
+
if (1 == $jscomp$generator$context$m991617773$3.nextAddress) {
|
|
7977
7976
|
if ("text/html" !== mimeType) {
|
|
7978
7977
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
|
|
7979
7978
|
}
|
|
7980
|
-
return $jscomp$generator$context$
|
|
7979
|
+
return $jscomp$generator$context$m991617773$3.yield(response.text(), 2);
|
|
7981
7980
|
}
|
|
7982
|
-
text = $jscomp$generator$context$
|
|
7983
|
-
return $jscomp$generator$context$
|
|
7981
|
+
text = $jscomp$generator$context$m991617773$3.yieldResult;
|
|
7982
|
+
return $jscomp$generator$context$m991617773$3.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
|
|
7984
7983
|
});
|
|
7985
7984
|
}, script:function() {
|
|
7986
7985
|
var text;
|
|
7987
|
-
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$
|
|
7988
|
-
if (1 == $jscomp$generator$context$
|
|
7986
|
+
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$m991617773$4) {
|
|
7987
|
+
if (1 == $jscomp$generator$context$m991617773$4.nextAddress) {
|
|
7989
7988
|
if ("text/javascript" !== mimeType && "application/javascript" !== mimeType) {
|
|
7990
7989
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
|
|
7991
7990
|
}
|
|
7992
|
-
return $jscomp$generator$context$
|
|
7991
|
+
return $jscomp$generator$context$m991617773$4.yield(response.text(), 2);
|
|
7993
7992
|
}
|
|
7994
|
-
text = $jscomp$generator$context$
|
|
7995
|
-
return $jscomp$generator$context$
|
|
7993
|
+
text = $jscomp$generator$context$m991617773$4.yieldResult;
|
|
7994
|
+
return $jscomp$generator$context$m991617773$4.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
|
|
7996
7995
|
});
|
|
7997
7996
|
}, styleSheet:function() {
|
|
7998
7997
|
var text;
|
|
7999
|
-
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$
|
|
8000
|
-
if (1 == $jscomp$generator$context$
|
|
7998
|
+
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$m991617773$5) {
|
|
7999
|
+
if (1 == $jscomp$generator$context$m991617773$5.nextAddress) {
|
|
8001
8000
|
if ("text/css" !== mimeType) {
|
|
8002
8001
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
|
|
8003
8002
|
}
|
|
8004
|
-
return $jscomp$generator$context$
|
|
8003
|
+
return $jscomp$generator$context$m991617773$5.yield(response.text(), 2);
|
|
8005
8004
|
}
|
|
8006
|
-
text = $jscomp$generator$context$
|
|
8007
|
-
return $jscomp$generator$context$
|
|
8005
|
+
text = $jscomp$generator$context$m991617773$5.yieldResult;
|
|
8006
|
+
return $jscomp$generator$context$m991617773$5.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
|
|
8008
8007
|
});
|
|
8009
8008
|
}});
|
|
8010
8009
|
});
|
|
@@ -9296,8 +9295,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
9296
9295
|
}
|
|
9297
9296
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
9298
9297
|
function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
|
|
9299
|
-
for (var urlQueryParams = passthroughParams = void 0 === passthroughParams ? {} : passthroughParams, $jscomp$iter$28 = $jscomp.makeIterator(Object.entries(mapping)), $jscomp$key$
|
|
9300
|
-
var $jscomp$destructuring$var27 = $jscomp.makeIterator($jscomp$key$
|
|
9298
|
+
for (var urlQueryParams = passthroughParams = void 0 === passthroughParams ? {} : passthroughParams, $jscomp$iter$28 = $jscomp.makeIterator(Object.entries(mapping)), $jscomp$key$1047461284$0$ = $jscomp$iter$28.next(); !$jscomp$key$1047461284$0$.done; $jscomp$key$1047461284$0$ = $jscomp$iter$28.next()) {
|
|
9299
|
+
var $jscomp$destructuring$var27 = $jscomp.makeIterator($jscomp$key$1047461284$0$.value), jsName__tsickle_destructured_1 = $jscomp$destructuring$var27.next().value, urlQueryParamName__tsickle_destructured_2 = $jscomp$destructuring$var27.next().value, jsName = jsName__tsickle_destructured_1, urlQueryParamName = urlQueryParamName__tsickle_destructured_2;
|
|
9301
9300
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
9302
9301
|
}
|
|
9303
9302
|
return urlQueryParams;
|
|
@@ -9308,8 +9307,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params)
|
|
|
9308
9307
|
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1;
|
|
9309
9308
|
if (params.headers) {
|
|
9310
9309
|
hasContentType = null != params.headers["Content-Type"];
|
|
9311
|
-
for (var $jscomp$iter$29 = $jscomp.makeIterator(Object.entries(params.headers)), $jscomp$key$
|
|
9312
|
-
var $jscomp$destructuring$var29 = $jscomp.makeIterator($jscomp$key$
|
|
9310
|
+
for (var $jscomp$iter$29 = $jscomp.makeIterator(Object.entries(params.headers)), $jscomp$key$1047461284$1$ = $jscomp$iter$29.next(); !$jscomp$key$1047461284$1$.done; $jscomp$key$1047461284$1$ = $jscomp$iter$29.next()) {
|
|
9311
|
+
var $jscomp$destructuring$var29 = $jscomp.makeIterator($jscomp$key$1047461284$1$.value), key__tsickle_destructured_3 = $jscomp$destructuring$var29.next().value, value__tsickle_destructured_4 = $jscomp$destructuring$var29.next().value, key = key__tsickle_destructured_3, value = value__tsickle_destructured_4;
|
|
9313
9312
|
module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes(key) ? safeHeaders[key] = value : (unsafeHeaders[key] = value, hasUnsafeHeaders = !0);
|
|
9314
9313
|
}
|
|
9315
9314
|
}
|
|
@@ -9354,15 +9353,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
|
|
|
9354
9353
|
this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
|
|
9355
9354
|
};
|
|
9356
9355
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
|
|
9357
|
-
var $jscomp$this$
|
|
9356
|
+
var $jscomp$this$m667091202$6 = this, payload = "--" + this._boundary + "\r\n";
|
|
9358
9357
|
payload += this._metadataPayload;
|
|
9359
9358
|
return Promise.all(this.files.map(function(f) {
|
|
9360
|
-
return $jscomp$this$
|
|
9359
|
+
return $jscomp$this$m667091202$6.encodeFile(f);
|
|
9361
9360
|
})).then(function(filePayloads) {
|
|
9362
|
-
for (var $jscomp$iter$30 = $jscomp.makeIterator(filePayloads), $jscomp$key$
|
|
9363
|
-
payload += $jscomp$key$
|
|
9361
|
+
for (var $jscomp$iter$30 = $jscomp.makeIterator(filePayloads), $jscomp$key$m667091202$9$filePayload = $jscomp$iter$30.next(); !$jscomp$key$m667091202$9$filePayload.done; $jscomp$key$m667091202$9$filePayload = $jscomp$iter$30.next()) {
|
|
9362
|
+
payload += $jscomp$key$m667091202$9$filePayload.value;
|
|
9364
9363
|
}
|
|
9365
|
-
return payload += "\r\n--" + $jscomp$this$
|
|
9364
|
+
return payload += "\r\n--" + $jscomp$this$m667091202$6._boundary + "--";
|
|
9366
9365
|
});
|
|
9367
9366
|
};
|
|
9368
9367
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
|
|
@@ -9450,9 +9449,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
|
|
|
9450
9449
|
return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
|
|
9451
9450
|
};
|
|
9452
9451
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
|
|
9453
|
-
var $jscomp$this$
|
|
9452
|
+
var $jscomp$this$1237977804$4 = this, responseCtor = requestParams.responseCtor || void 0;
|
|
9454
9453
|
return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
|
|
9455
|
-
return $jscomp$this$
|
|
9454
|
+
return $jscomp$this$1237977804$4.requestService.send(params, responseCtor);
|
|
9456
9455
|
}));
|
|
9457
9456
|
};
|
|
9458
9457
|
var module$exports$eeapiclient$ee_api_client = {}, module$contents$eeapiclient$ee_api_client_module = module$contents$eeapiclient$ee_api_client_module || {id:"geo/gestalt/client/javascript/v1/ee_api_client.closure.js"};
|
|
@@ -15565,8 +15564,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
|
15565
15564
|
this.replacements = new Map();
|
|
15566
15565
|
};
|
|
15567
15566
|
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
15568
|
-
var $jscomp$this$
|
|
15569
|
-
return $jscomp$this$
|
|
15567
|
+
var $jscomp$this$380122516$5 = this, openedTags = [], marker = (0,module$exports$safevalues$builders$html_builders.htmlEscape)("_safevalues_format_marker_:").toString(), html = (0,module$exports$safevalues$builders$html_builders.htmlEscape)(format).toString().replace(new RegExp("\\{" + marker + "[\\w&#;]+\\}", "g"), function(match) {
|
|
15568
|
+
return $jscomp$this$380122516$5.replaceFormattingString(openedTags, match);
|
|
15570
15569
|
});
|
|
15571
15570
|
if (0 !== openedTags.length) {
|
|
15572
15571
|
if (goog.DEBUG) {
|
|
@@ -15708,7 +15707,7 @@ module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanit
|
|
|
15708
15707
|
})}]];
|
|
15709
15708
|
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.defaultSanitizerTable = 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),
|
|
15710
15709
|
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));
|
|
15711
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.lenientSanitizerTable = 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"])), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES),
|
|
15710
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.lenientSanitizerTable = 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),
|
|
15712
15711
|
new Set(module$contents$safevalues$internals$pure_pure(function() {
|
|
15713
15712
|
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES.concat(["class", "id", "name"]);
|
|
15714
15713
|
})), new Map(module$contents$safevalues$internals$pure_pure(function() {
|
|
@@ -15746,8 +15745,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
15746
15745
|
return this.sanitizeToFragmentInternal(html, inertDocument);
|
|
15747
15746
|
};
|
|
15748
15747
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
15749
|
-
for (var $jscomp$this$
|
|
15750
|
-
return $jscomp$this$
|
|
15748
|
+
for (var $jscomp$this$m1803429925$10 = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
|
|
15749
|
+
return $jscomp$this$m1803429925$10.nodeFilter(n);
|
|
15751
15750
|
}, !1), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; null !== currentNode;) {
|
|
15752
15751
|
var sanitizedNode = void 0;
|
|
15753
15752
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
@@ -15774,8 +15773,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
15774
15773
|
return document.createTextNode(textNode.data);
|
|
15775
15774
|
};
|
|
15776
15775
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
15777
|
-
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$31 = $jscomp.makeIterator(dirtyAttributes), $jscomp$key$
|
|
15778
|
-
var $jscomp$destructuring$var31 = $jscomp$key$
|
|
15776
|
+
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$31 = $jscomp.makeIterator(dirtyAttributes), $jscomp$key$m1803429925$25$ = $jscomp$iter$31.next(); !$jscomp$key$m1803429925$25$.done; $jscomp$key$m1803429925$25$ = $jscomp$iter$31.next()) {
|
|
15777
|
+
var $jscomp$destructuring$var31 = $jscomp$key$m1803429925$25$.value, name = $jscomp$destructuring$var31.name, value = $jscomp$destructuring$var31.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
|
|
15779
15778
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
15780
15779
|
switch(policy.policyAction) {
|
|
15781
15780
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -15828,8 +15827,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
15828
15827
|
if (!conditions) {
|
|
15829
15828
|
return !0;
|
|
15830
15829
|
}
|
|
15831
|
-
for (var $jscomp$iter$32 = $jscomp.makeIterator(conditions), $jscomp$key$
|
|
15832
|
-
var $jscomp$destructuring$var33 = $jscomp.makeIterator($jscomp$key$
|
|
15830
|
+
for (var $jscomp$iter$32 = $jscomp.makeIterator(conditions), $jscomp$key$m1803429925$26$ = $jscomp$iter$32.next(); !$jscomp$key$m1803429925$26$.done; $jscomp$key$m1803429925$26$ = $jscomp$iter$32.next()) {
|
|
15831
|
+
var $jscomp$destructuring$var33 = $jscomp.makeIterator($jscomp$key$m1803429925$26$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var33.next().value, expectedValues = $jscomp$destructuring$var33.next().value, $jscomp$optchain$tmpm1803429925$0 = void 0, value = null == ($jscomp$optchain$tmpm1803429925$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1803429925$0.value;
|
|
15833
15832
|
if (value && !expectedValues.has(value)) {
|
|
15834
15833
|
return !1;
|
|
15835
15834
|
}
|
|
@@ -15883,8 +15882,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
15883
15882
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.defaultSanitizerTable;
|
|
15884
15883
|
};
|
|
15885
15884
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
|
|
15886
|
-
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$33 = $jscomp.makeIterator(elementSet), $jscomp$key$
|
|
15887
|
-
var element = $jscomp$key$
|
|
15885
|
+
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$33 = $jscomp.makeIterator(elementSet), $jscomp$key$m1412690177$0$element = $jscomp$iter$33.next(); !$jscomp$key$m1412690177$0$element.done; $jscomp$key$m1412690177$0$element = $jscomp$iter$33.next()) {
|
|
15886
|
+
var element = $jscomp$key$m1412690177$0$element.value;
|
|
15888
15887
|
element = element.toUpperCase();
|
|
15889
15888
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
15890
15889
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -15902,8 +15901,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
15902
15901
|
throw Error("Element: " + element + " is not a custom element");
|
|
15903
15902
|
}
|
|
15904
15903
|
if (allowedAttributes) {
|
|
15905
|
-
for (var elementPolicy = new Map(), $jscomp$iter$34 = $jscomp.makeIterator(allowedAttributes), $jscomp$key$
|
|
15906
|
-
elementPolicy.set($jscomp$key$
|
|
15904
|
+
for (var elementPolicy = new Map(), $jscomp$iter$34 = $jscomp.makeIterator(allowedAttributes), $jscomp$key$m1412690177$1$attribute = $jscomp$iter$34.next(); !$jscomp$key$m1412690177$1$attribute.done; $jscomp$key$m1412690177$1$attribute = $jscomp$iter$34.next()) {
|
|
15905
|
+
elementPolicy.set($jscomp$key$m1412690177$1$attribute.value, {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
15907
15906
|
}
|
|
15908
15907
|
allowedElementPolicies.set(element, elementPolicy);
|
|
15909
15908
|
} else {
|
|
@@ -15913,15 +15912,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
15913
15912
|
return this;
|
|
15914
15913
|
};
|
|
15915
15914
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
|
|
15916
|
-
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$35 = $jscomp.makeIterator(attributeSet), $jscomp$key$
|
|
15917
|
-
var attribute = $jscomp$key$
|
|
15915
|
+
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$35 = $jscomp.makeIterator(attributeSet), $jscomp$key$m1412690177$2$attribute = $jscomp$iter$35.next(); !$jscomp$key$m1412690177$2$attribute.done; $jscomp$key$m1412690177$2$attribute = $jscomp$iter$35.next()) {
|
|
15916
|
+
var attribute = $jscomp$key$m1412690177$2$attribute.value;
|
|
15918
15917
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
15919
15918
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
15920
15919
|
}
|
|
15921
|
-
for (var $jscomp$iter$37 = $jscomp.makeIterator(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$
|
|
15922
|
-
for (var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$
|
|
15920
|
+
for (var $jscomp$iter$37 = $jscomp.makeIterator(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$m1412690177$4$ = $jscomp$iter$37.next(); !$jscomp$key$m1412690177$4$.done; $jscomp$key$m1412690177$4$ = $jscomp$iter$37.next()) {
|
|
15921
|
+
for (var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$m1412690177$4$.value), elementName__tsickle_destructured_1 = $jscomp$destructuring$var35.next().value, originalElementPolicy__tsickle_destructured_2 = $jscomp$destructuring$var35.next().value, elementName = elementName__tsickle_destructured_1, newElementPolicy = new Map(), $jscomp$iter$36 = $jscomp.makeIterator(originalElementPolicy__tsickle_destructured_2.entries()), $jscomp$key$m1412690177$3$ = $jscomp$iter$36.next(); !$jscomp$key$m1412690177$3$.done; $jscomp$key$m1412690177$3$ =
|
|
15923
15922
|
$jscomp$iter$36.next()) {
|
|
15924
|
-
var $jscomp$destructuring$var37 = $jscomp.makeIterator($jscomp$key$
|
|
15923
|
+
var $jscomp$destructuring$var37 = $jscomp.makeIterator($jscomp$key$m1412690177$3$.value), attribute__tsickle_destructured_3 = $jscomp$destructuring$var37.next().value, attributePolicy__tsickle_destructured_4 = $jscomp$destructuring$var37.next().value, attribute$jscomp$0 = attribute__tsickle_destructured_3, attributePolicy = attributePolicy__tsickle_destructured_4;
|
|
15925
15924
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
15926
15925
|
}
|
|
15927
15926
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -15930,8 +15929,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
15930
15929
|
return this;
|
|
15931
15930
|
};
|
|
15932
15931
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
|
|
15933
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$38 = $jscomp.makeIterator(attributes), $jscomp$key$
|
|
15934
|
-
var attribute = $jscomp$key$
|
|
15932
|
+
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$38 = $jscomp.makeIterator(attributes), $jscomp$key$m1412690177$5$attribute = $jscomp$iter$38.next(); !$jscomp$key$m1412690177$5$attribute.done; $jscomp$key$m1412690177$5$attribute = $jscomp$iter$38.next()) {
|
|
15933
|
+
var attribute = $jscomp$key$m1412690177$5$attribute.value;
|
|
15935
15934
|
if (0 !== attribute.indexOf("data-")) {
|
|
15936
15935
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
15937
15936
|
}
|
|
@@ -16182,12 +16181,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
16182
16181
|
}
|
|
16183
16182
|
try {
|
|
16184
16183
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
16185
|
-
} catch ($jscomp$unused$catch$
|
|
16184
|
+
} catch ($jscomp$unused$catch$442189172$0) {
|
|
16186
16185
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
16187
16186
|
}
|
|
16188
16187
|
try {
|
|
16189
16188
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
16190
|
-
} catch ($jscomp$unused$catch$
|
|
16189
|
+
} catch ($jscomp$unused$catch$442189172$1) {
|
|
16191
16190
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
16192
16191
|
}
|
|
16193
16192
|
return !1;
|
|
@@ -19089,7 +19088,7 @@ var $jscomp$templatelit$294235699$96 = $jscomp.createTemplateTagFirstArg(["https
|
|
|
19089
19088
|
ee.apiclient = {};
|
|
19090
19089
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19091
19090
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19092
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
19091
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.396";
|
|
19093
19092
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19094
19093
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19095
19094
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19379,8 +19378,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19379
19378
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19380
19379
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19381
19380
|
method = method || "POST";
|
|
19382
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
19383
|
-
"0.1.
|
|
19381
|
+
var headers = {"Content-Type":contentType}, version = "0.1.396";
|
|
19382
|
+
"0.1.396" === version && (version = "latest");
|
|
19384
19383
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19385
19384
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
19386
19385
|
if (null != authToken) {
|
|
@@ -21534,12 +21533,26 @@ goog.exportSymbol("ee.data.getInfo", ee.data.getInfo);
|
|
|
21534
21533
|
ee.data.makeListAssetsCall_ = function(parent, opt_params, opt_callback, opt_postProcessing) {
|
|
21535
21534
|
opt_params = void 0 === opt_params ? {} : opt_params;
|
|
21536
21535
|
opt_postProcessing = void 0 === opt_postProcessing ? goog.functions.identity : opt_postProcessing;
|
|
21537
|
-
var
|
|
21536
|
+
var params = Object.assign({}, opt_params), call = new module$contents$ee$apiclient_Call(opt_callback), isProjectAssetRoot = ee.rpc_convert.CLOUD_ASSET_ROOT_RE.test(parent), methodRoot = isProjectAssetRoot ? call.projects() : call.assets();
|
|
21538
21537
|
parent = isProjectAssetRoot ? ee.rpc_convert.projectParentFromPath(parent) : ee.rpc_convert.assetIdToAssetName(parent);
|
|
21539
|
-
|
|
21538
|
+
var getNextPageIfNeeded = function(response) {
|
|
21539
|
+
if (null != params.pageSize || !response.nextPageToken) {
|
|
21540
|
+
return response;
|
|
21541
|
+
}
|
|
21542
|
+
var previousAssets = response.assets || [];
|
|
21543
|
+
params.pageToken = response.nextPageToken;
|
|
21544
|
+
var nextResponse = methodRoot.listAssets(parent, params).then(function(response) {
|
|
21545
|
+
response.assets = previousAssets.concat(response.assets);
|
|
21546
|
+
return response;
|
|
21547
|
+
}).then(getNextPageIfNeeded);
|
|
21548
|
+
return opt_callback ? nextResponse : call.handle(nextResponse);
|
|
21549
|
+
};
|
|
21550
|
+
return call.handle(methodRoot.listAssets(parent, params).then(getNextPageIfNeeded).then(opt_postProcessing));
|
|
21540
21551
|
};
|
|
21541
21552
|
ee.data.getList = function(params, opt_callback) {
|
|
21542
|
-
|
|
21553
|
+
var convertedParams = ee.rpc_convert.getListToListAssets(params);
|
|
21554
|
+
convertedParams.pageSize || (convertedParams.pageSize = 1E3);
|
|
21555
|
+
return ee.data.makeListAssetsCall_(params.id, convertedParams, opt_callback, function(r) {
|
|
21543
21556
|
return null == r ? null : ee.rpc_convert.listAssetsToGetList(r);
|
|
21544
21557
|
});
|
|
21545
21558
|
};
|