@google/earthengine 1.7.10 → 1.7.13
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 +482 -428
- package/build/ee_api_js.js +361 -360
- package/build/ee_api_js_debug.js +460 -406
- package/build/ee_api_js_npm.js +482 -428
- package/build/main.js +482 -428
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/apifunction.js +56 -42
package/build/ee_api_js_debug.js
CHANGED
|
@@ -254,18 +254,33 @@ $jscomp.generator.Context.prototype.throw_ = function(e) {
|
|
|
254
254
|
this.abruptCompletion_ = {exception:e, isException:!0};
|
|
255
255
|
this.jumpToErrorHandler_();
|
|
256
256
|
};
|
|
257
|
+
$jscomp.generator.Context.prototype.getNextAddressJsc = function() {
|
|
258
|
+
return this.nextAddress;
|
|
259
|
+
};
|
|
260
|
+
$jscomp.generator.Context.prototype.getNextAddressJsc = function() {
|
|
261
|
+
return this.nextAddress;
|
|
262
|
+
};
|
|
263
|
+
$jscomp.generator.Context.prototype.getYieldResultJsc = function() {
|
|
264
|
+
return this.yieldResult;
|
|
265
|
+
};
|
|
266
|
+
$jscomp.generator.Context.prototype.getYieldResultJsc = function() {
|
|
267
|
+
return this.yieldResult;
|
|
268
|
+
};
|
|
257
269
|
$jscomp.generator.Context.prototype.return = function(value) {
|
|
258
270
|
this.abruptCompletion_ = {return:value};
|
|
259
271
|
this.nextAddress = this.finallyAddress_;
|
|
260
272
|
};
|
|
273
|
+
$jscomp.generator.Context.prototype["return"] = $jscomp.generator.Context.prototype.return;
|
|
261
274
|
$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks = function(nextAddress) {
|
|
262
275
|
this.abruptCompletion_ = {jumpTo:nextAddress};
|
|
263
276
|
this.nextAddress = this.finallyAddress_;
|
|
264
277
|
};
|
|
278
|
+
$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks = $jscomp.generator.Context.prototype.jumpThroughFinallyBlocks;
|
|
265
279
|
$jscomp.generator.Context.prototype.yield = function(value, resumeAddress) {
|
|
266
280
|
this.nextAddress = resumeAddress;
|
|
267
281
|
return {value:value};
|
|
268
282
|
};
|
|
283
|
+
$jscomp.generator.Context.prototype.yield = $jscomp.generator.Context.prototype.yield;
|
|
269
284
|
$jscomp.generator.Context.prototype.yieldAll = function(iterable, resumeAddress) {
|
|
270
285
|
var iterator = $jscomp.makeIterator(iterable), result = iterator.next();
|
|
271
286
|
$jscomp.generator.ensureIteratorResultIsObject_(result);
|
|
@@ -275,35 +290,43 @@ $jscomp.generator.Context.prototype.yieldAll = function(iterable, resumeAddress)
|
|
|
275
290
|
return this.yieldAllIterator_ = iterator, this.yield(result.value, resumeAddress);
|
|
276
291
|
}
|
|
277
292
|
};
|
|
293
|
+
$jscomp.generator.Context.prototype.yieldAll = $jscomp.generator.Context.prototype.yieldAll;
|
|
278
294
|
$jscomp.generator.Context.prototype.jumpTo = function(nextAddress) {
|
|
279
295
|
this.nextAddress = nextAddress;
|
|
280
296
|
};
|
|
297
|
+
$jscomp.generator.Context.prototype.jumpTo = $jscomp.generator.Context.prototype.jumpTo;
|
|
281
298
|
$jscomp.generator.Context.prototype.jumpToEnd = function() {
|
|
282
299
|
this.nextAddress = 0;
|
|
283
300
|
};
|
|
301
|
+
$jscomp.generator.Context.prototype.jumpToEnd = $jscomp.generator.Context.prototype.jumpToEnd;
|
|
284
302
|
$jscomp.generator.Context.prototype.setCatchFinallyBlocks = function(catchAddress, finallyAddress) {
|
|
285
303
|
this.catchAddress_ = catchAddress;
|
|
286
304
|
finallyAddress != void 0 && (this.finallyAddress_ = finallyAddress);
|
|
287
305
|
};
|
|
306
|
+
$jscomp.generator.Context.prototype.setCatchFinallyBlocks = $jscomp.generator.Context.prototype.setCatchFinallyBlocks;
|
|
288
307
|
$jscomp.generator.Context.prototype.setFinallyBlock = function(finallyAddress) {
|
|
289
308
|
this.catchAddress_ = 0;
|
|
290
309
|
this.finallyAddress_ = finallyAddress || 0;
|
|
291
310
|
};
|
|
311
|
+
$jscomp.generator.Context.prototype.setFinallyBlock = $jscomp.generator.Context.prototype.setFinallyBlock;
|
|
292
312
|
$jscomp.generator.Context.prototype.leaveTryBlock = function(nextAddress, catchAddress) {
|
|
293
313
|
this.nextAddress = nextAddress;
|
|
294
314
|
this.catchAddress_ = catchAddress || 0;
|
|
295
315
|
};
|
|
316
|
+
$jscomp.generator.Context.prototype.leaveTryBlock = $jscomp.generator.Context.prototype.leaveTryBlock;
|
|
296
317
|
$jscomp.generator.Context.prototype.enterCatchBlock = function(nextCatchBlockAddress) {
|
|
297
318
|
this.catchAddress_ = nextCatchBlockAddress || 0;
|
|
298
319
|
var exception = this.abruptCompletion_.exception;
|
|
299
320
|
this.abruptCompletion_ = null;
|
|
300
321
|
return exception;
|
|
301
322
|
};
|
|
323
|
+
$jscomp.generator.Context.prototype.enterCatchBlock = $jscomp.generator.Context.prototype.enterCatchBlock;
|
|
302
324
|
$jscomp.generator.Context.prototype.enterFinallyBlock = function(nextCatchAddress, nextFinallyAddress, finallyDepth) {
|
|
303
325
|
finallyDepth ? this.finallyContexts_[finallyDepth] = this.abruptCompletion_ : this.finallyContexts_ = [this.abruptCompletion_];
|
|
304
326
|
this.catchAddress_ = nextCatchAddress || 0;
|
|
305
327
|
this.finallyAddress_ = nextFinallyAddress || 0;
|
|
306
328
|
};
|
|
329
|
+
$jscomp.generator.Context.prototype.enterFinallyBlock = $jscomp.generator.Context.prototype.enterFinallyBlock;
|
|
307
330
|
$jscomp.generator.Context.prototype.leaveFinallyBlock = function(nextAddress, finallyDepth) {
|
|
308
331
|
var preservedContext = this.finallyContexts_.splice(finallyDepth || 0)[0], abruptCompletion = this.abruptCompletion_ = this.abruptCompletion_ || preservedContext;
|
|
309
332
|
if (abruptCompletion) {
|
|
@@ -315,9 +338,11 @@ $jscomp.generator.Context.prototype.leaveFinallyBlock = function(nextAddress, fi
|
|
|
315
338
|
this.nextAddress = nextAddress;
|
|
316
339
|
}
|
|
317
340
|
};
|
|
341
|
+
$jscomp.generator.Context.prototype.leaveFinallyBlock = $jscomp.generator.Context.prototype.leaveFinallyBlock;
|
|
318
342
|
$jscomp.generator.Context.prototype.forIn = function(object) {
|
|
319
343
|
return new $jscomp.generator.Context.PropertyIterator(object);
|
|
320
344
|
};
|
|
345
|
+
$jscomp.generator.Context.prototype.forIn = $jscomp.generator.Context.prototype.forIn;
|
|
321
346
|
$jscomp.generator.Context.PropertyIterator = function(object) {
|
|
322
347
|
this.object_ = object;
|
|
323
348
|
this.properties_ = [];
|
|
@@ -335,6 +360,7 @@ $jscomp.generator.Context.PropertyIterator.prototype.getNext = function() {
|
|
|
335
360
|
}
|
|
336
361
|
return null;
|
|
337
362
|
};
|
|
363
|
+
$jscomp.generator.Context.PropertyIterator.prototype.getNext = $jscomp.generator.Context.PropertyIterator.prototype.getNext;
|
|
338
364
|
$jscomp.generator.Engine_ = function(program) {
|
|
339
365
|
this.context_ = new $jscomp.generator.Context();
|
|
340
366
|
this.program_ = program;
|
|
@@ -1016,6 +1042,19 @@ $jscomp.polyfill("Map", function(NativeMap) {
|
|
|
1016
1042
|
};
|
|
1017
1043
|
return PolyfillMap;
|
|
1018
1044
|
}, "es6", "es3");
|
|
1045
|
+
$jscomp.polyfill("Map.groupBy", function(orig) {
|
|
1046
|
+
return orig ? orig : function(items, callbackFn) {
|
|
1047
|
+
if (typeof callbackFn !== "function") {
|
|
1048
|
+
throw new TypeError("callbackFn must be a function");
|
|
1049
|
+
}
|
|
1050
|
+
for (var result = new Map(), index = 0, iter = $jscomp.makeIterator(items), entry = iter.next(); !entry.done; entry = iter.next()) {
|
|
1051
|
+
var item = entry.value, key = callbackFn(item, index++), group = result.get(key);
|
|
1052
|
+
group || (group = [], result.set(key, group));
|
|
1053
|
+
group.push(item);
|
|
1054
|
+
}
|
|
1055
|
+
return result;
|
|
1056
|
+
};
|
|
1057
|
+
}, "es_next", "es3");
|
|
1019
1058
|
$jscomp.polyfill("Set", function(NativeSet) {
|
|
1020
1059
|
function isConformant() {
|
|
1021
1060
|
if ($jscomp.ASSUME_NO_NATIVE_SET || !NativeSet || typeof NativeSet != "function" || !NativeSet.prototype.entries || typeof Object.seal != "function") {
|
|
@@ -1344,9 +1383,9 @@ $jscomp.polyfill("String.prototype.padStart", function(orig) {
|
|
|
1344
1383
|
return $jscomp.stringPadding(opt_padString, targetLength - string.length) + string;
|
|
1345
1384
|
};
|
|
1346
1385
|
}, "es8", "es3");
|
|
1347
|
-
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_context_per_component__enable:!1, GoogFlags__client_only_wiz_lazy_tsx__disable:!1, GoogFlags__client_only_wiz_queue_effect_and_on_init_initial_runs__disable:!1, GoogFlags__fixed_noopener_behavior__enable:!1, GoogFlags__jspb_deserialize_binary_int64s_as_gbigint__disable:!1, GoogFlags__jspb_disallow_message_tojson__enable:!1, GoogFlags__jspb_serialize_with_dynamic_pivot_selector__enable:!1,
|
|
1348
|
-
GoogFlags__jspb_throw_in_array_constructor_if_array_is_already_constructed__disable:!1, GoogFlags__jspb_use_constant_default_pivot__enable:!1, GoogFlags__jspb_write_back_bigint__disable:!1, GoogFlags__optimize_get_ei_from_ved__enable:!1, GoogFlags__override_disable_toggles:!1, GoogFlags__testonly_debug_flag__enable:!1, GoogFlags__testonly_disabled_flag__enable:!1, GoogFlags__testonly_stable_flag__disable:!1, GoogFlags__testonly_staging_flag__disable:!1, GoogFlags__use_toggles:!1,
|
|
1349
|
-
GoogFlags__wiz_enable_native_promise__enable:!1};
|
|
1386
|
+
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__batch_fc_data_fetches_in_microtask__enable:!1, GoogFlags__client_only_wiz_context_per_component__enable:!1, GoogFlags__client_only_wiz_lazy_tsx__disable:!1, GoogFlags__client_only_wiz_queue_effect_and_on_init_initial_runs__disable:!1, GoogFlags__fixed_noopener_behavior__enable:!1, GoogFlags__jspb_deserialize_binary_int64s_as_gbigint__disable:!1, GoogFlags__jspb_disallow_message_tojson__enable:!1, GoogFlags__jspb_serialize_with_dynamic_pivot_selector__enable:!1,
|
|
1387
|
+
GoogFlags__jspb_throw_in_array_constructor_if_array_is_already_constructed__disable:!1, GoogFlags__jspb_use_constant_default_pivot__enable:!1, GoogFlags__jspb_write_back_bigint__disable:!1, GoogFlags__optimize_get_ei_from_ved__enable:!1, GoogFlags__override_disable_toggles:!1, GoogFlags__testonly_debug_flag__enable:!1, GoogFlags__testonly_disabled_flag__enable:!1, GoogFlags__testonly_stable_flag__disable:!1, GoogFlags__testonly_staging_flag__disable:!1, GoogFlags__use_toggles:!1, GoogFlags__use_unobfuscated_rpc_method_names__enable:!1,
|
|
1388
|
+
GoogFlags__use_user_agent_client_hints__enable:!1, GoogFlags__wiz_enable_native_promise__enable:!1};
|
|
1350
1389
|
/*
|
|
1351
1390
|
|
|
1352
1391
|
Copyright The Closure Library Authors.
|
|
@@ -2243,9 +2282,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
2243
2282
|
};
|
|
2244
2283
|
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;
|
|
2245
2284
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
2246
|
-
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = (0,$jscomp.makeIterator)(metadata.keys || []), $jscomp$key$
|
|
2247
|
-
{mapMetadata:void 0}, $jscomp$key$
|
|
2248
|
-
var key = $jscomp$key$
|
|
2285
|
+
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = (0,$jscomp.makeIterator)(metadata.keys || []), $jscomp$key$m1892927425$40$key = $jscomp$iter$19.next(), $jscomp$loop$m1892927425$44 = {}; !$jscomp$key$m1892927425$40$key.done; $jscomp$loop$m1892927425$44 =
|
|
2286
|
+
{mapMetadata:void 0}, $jscomp$key$m1892927425$40$key = $jscomp$iter$19.next()) {
|
|
2287
|
+
var key = $jscomp$key$m1892927425$40$key.value, value = valueGetter(key, source);
|
|
2249
2288
|
if (value != null) {
|
|
2250
2289
|
var copy = void 0;
|
|
2251
2290
|
if (arrays.hasOwnProperty(key)) {
|
|
@@ -2256,11 +2295,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2256
2295
|
} else if (objects.hasOwnProperty(key)) {
|
|
2257
2296
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
2258
2297
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
2259
|
-
$jscomp$loop$
|
|
2298
|
+
$jscomp$loop$m1892927425$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m1892927425$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m1892927425$44) {
|
|
2260
2299
|
return function(v) {
|
|
2261
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
2300
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2262
2301
|
};
|
|
2263
|
-
}($jscomp$loop$
|
|
2302
|
+
}($jscomp$loop$m1892927425$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2264
2303
|
} else if (Array.isArray(value)) {
|
|
2265
2304
|
if (metadata.emptyArrayIsUnset && value.length === 0) {
|
|
2266
2305
|
continue;
|
|
@@ -2275,8 +2314,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2275
2314
|
return target;
|
|
2276
2315
|
}
|
|
2277
2316
|
function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
|
|
2278
|
-
for (var objMap = {}, $jscomp$iter$20 = (0,$jscomp.makeIterator)(Object.keys(value)), $jscomp$key$
|
|
2279
|
-
var mapKey = $jscomp$key$
|
|
2317
|
+
for (var objMap = {}, $jscomp$iter$20 = (0,$jscomp.makeIterator)(Object.keys(value)), $jscomp$key$m1892927425$41$mapKey = $jscomp$iter$20.next(); !$jscomp$key$m1892927425$41$mapKey.done; $jscomp$key$m1892927425$41$mapKey = $jscomp$iter$20.next()) {
|
|
2318
|
+
var mapKey = $jscomp$key$m1892927425$41$mapKey.value, mapValue = value[mapKey];
|
|
2280
2319
|
mapValue != null && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
|
|
2281
2320
|
}
|
|
2282
2321
|
return objMap;
|
|
@@ -2306,39 +2345,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
2306
2345
|
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))) {
|
|
2307
2346
|
return !1;
|
|
2308
2347
|
}
|
|
2309
|
-
for (var $jscomp$iter$21 = (0,$jscomp.makeIterator)(keys1), $jscomp$key$
|
|
2310
|
-
var key = $jscomp$key$
|
|
2348
|
+
for (var $jscomp$iter$21 = (0,$jscomp.makeIterator)(keys1), $jscomp$key$m1892927425$42$key = $jscomp$iter$21.next(), $jscomp$loop$m1892927425$45 = {}; !$jscomp$key$m1892927425$42$key.done; $jscomp$loop$m1892927425$45 = {value2$jscomp$7:void 0, mapMetadata$jscomp$2:void 0}, $jscomp$key$m1892927425$42$key = $jscomp$iter$21.next()) {
|
|
2349
|
+
var key = $jscomp$key$m1892927425$42$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
|
|
2311
2350
|
if (has1 !== has2) {
|
|
2312
2351
|
return !1;
|
|
2313
2352
|
}
|
|
2314
2353
|
if (has1) {
|
|
2315
2354
|
var value1 = serializable1.Serializable$get(key);
|
|
2316
|
-
$jscomp$loop$
|
|
2355
|
+
$jscomp$loop$m1892927425$45.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
2317
2356
|
if (arrays1.hasOwnProperty(key)) {
|
|
2318
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2357
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !0)) {
|
|
2319
2358
|
return !1;
|
|
2320
2359
|
}
|
|
2321
2360
|
} else if (objects1.hasOwnProperty(key)) {
|
|
2322
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2361
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !0)) {
|
|
2323
2362
|
return !1;
|
|
2324
2363
|
}
|
|
2325
2364
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
2326
|
-
if ($jscomp$loop$
|
|
2327
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
2365
|
+
if ($jscomp$loop$m1892927425$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2.isPropertyArray) {
|
|
2366
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m1892927425$45) {
|
|
2328
2367
|
return function(v1, i) {
|
|
2329
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
2368
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m1892927425$45.value2$jscomp$7[i], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2);
|
|
2330
2369
|
};
|
|
2331
|
-
}($jscomp$loop$
|
|
2370
|
+
}($jscomp$loop$m1892927425$45))) {
|
|
2332
2371
|
return !1;
|
|
2333
2372
|
}
|
|
2334
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
2373
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2)) {
|
|
2335
2374
|
return !1;
|
|
2336
2375
|
}
|
|
2337
2376
|
} else if (Array.isArray(value1)) {
|
|
2338
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2377
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !1)) {
|
|
2339
2378
|
return !1;
|
|
2340
2379
|
}
|
|
2341
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2380
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !1)) {
|
|
2342
2381
|
return !1;
|
|
2343
2382
|
}
|
|
2344
2383
|
}
|
|
@@ -2360,8 +2399,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
|
|
|
2360
2399
|
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
|
|
2361
2400
|
return !1;
|
|
2362
2401
|
}
|
|
2363
|
-
for (var $jscomp$iter$22 = (0,$jscomp.makeIterator)(Object.keys(value1)), $jscomp$key$
|
|
2364
|
-
var mapKey = $jscomp$key$
|
|
2402
|
+
for (var $jscomp$iter$22 = (0,$jscomp.makeIterator)(Object.keys(value1)), $jscomp$key$m1892927425$43$mapKey = $jscomp$iter$22.next(); !$jscomp$key$m1892927425$43$mapKey.done; $jscomp$key$m1892927425$43$mapKey = $jscomp$iter$22.next()) {
|
|
2403
|
+
var mapKey = $jscomp$key$m1892927425$43$mapKey.value;
|
|
2365
2404
|
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
|
|
2366
2405
|
return !1;
|
|
2367
2406
|
}
|
|
@@ -2442,15 +2481,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
|
|
|
2442
2481
|
this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
|
|
2443
2482
|
};
|
|
2444
2483
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
|
|
2445
|
-
var $jscomp$this$
|
|
2484
|
+
var $jscomp$this$m133342051$6 = this, payload = "--" + this._boundary + "\r\n";
|
|
2446
2485
|
payload += this._metadataPayload;
|
|
2447
2486
|
return Promise.all(this.files.map(function(f) {
|
|
2448
|
-
return $jscomp$this$
|
|
2487
|
+
return $jscomp$this$m133342051$6.encodeFile(f);
|
|
2449
2488
|
})).then(function(filePayloads) {
|
|
2450
|
-
for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$
|
|
2451
|
-
payload += $jscomp$key$
|
|
2489
|
+
for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$m133342051$9$filePayload = $jscomp$iter$23.next(); !$jscomp$key$m133342051$9$filePayload.done; $jscomp$key$m133342051$9$filePayload = $jscomp$iter$23.next()) {
|
|
2490
|
+
payload += $jscomp$key$m133342051$9$filePayload.value;
|
|
2452
2491
|
}
|
|
2453
|
-
return payload += "\r\n--" + $jscomp$this$
|
|
2492
|
+
return payload += "\r\n--" + $jscomp$this$m133342051$6._boundary + "--";
|
|
2454
2493
|
});
|
|
2455
2494
|
};
|
|
2456
2495
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
|
|
@@ -2962,8 +3001,8 @@ function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUr
|
|
|
2962
3001
|
throw Error(message);
|
|
2963
3002
|
}
|
|
2964
3003
|
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
2965
|
-
var $jscomp$templatelit$
|
|
2966
|
-
["\\0"]), $jscomp$templatelit$
|
|
3004
|
+
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"],
|
|
3005
|
+
["\\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"};
|
|
2967
3006
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
2968
3007
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
2969
3008
|
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 ##############################");
|
|
@@ -2977,14 +3016,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
2977
3016
|
return fn.toString().indexOf("`") === -1;
|
|
2978
3017
|
}
|
|
2979
3018
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2980
|
-
return tag($jscomp$templatelit$
|
|
3019
|
+
return tag($jscomp$templatelit$m425881384$5);
|
|
2981
3020
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2982
|
-
return tag($jscomp$templatelit$
|
|
3021
|
+
return tag($jscomp$templatelit$m425881384$6);
|
|
2983
3022
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2984
|
-
return tag($jscomp$templatelit$
|
|
3023
|
+
return tag($jscomp$templatelit$m425881384$7);
|
|
2985
3024
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2986
|
-
return tag($jscomp$templatelit$
|
|
2987
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
3025
|
+
return tag($jscomp$templatelit$m425881384$8);
|
|
3026
|
+
}), 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);
|
|
2988
3027
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
2989
3028
|
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)) ?
|
|
2990
3029
|
!0 : !1;
|
|
@@ -3310,9 +3349,9 @@ function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr
|
|
|
3310
3349
|
}
|
|
3311
3350
|
}
|
|
3312
3351
|
module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIframeIntentError = function(type, intent) {
|
|
3313
|
-
var $jscomp$tmp$error$
|
|
3314
|
-
this.message = $jscomp$tmp$error$
|
|
3315
|
-
"stack" in $jscomp$tmp$error$
|
|
3352
|
+
var $jscomp$tmp$error$494508883$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.IframeIntent[intent]);
|
|
3353
|
+
this.message = $jscomp$tmp$error$494508883$1.message;
|
|
3354
|
+
"stack" in $jscomp$tmp$error$494508883$1 && (this.stack = $jscomp$tmp$error$494508883$1.stack);
|
|
3316
3355
|
this.type = type;
|
|
3317
3356
|
this.intent = intent;
|
|
3318
3357
|
this.name = "TypeCannotBeUsedWithIframeIntentError";
|
|
@@ -3408,7 +3447,7 @@ function module$contents$safevalues$dom$globals$window_getStyleNonce(doc) {
|
|
|
3408
3447
|
module$exports$safevalues$dom$globals$window.getStyleNonce = module$contents$safevalues$dom$globals$window_getStyleNonce;
|
|
3409
3448
|
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, doc) {
|
|
3410
3449
|
doc = doc === void 0 ? document : doc;
|
|
3411
|
-
var $jscomp$optchain$
|
|
3450
|
+
var $jscomp$optchain$tmpm1987982378$0, $jscomp$optchain$tmpm1987982378$1, el = ($jscomp$optchain$tmpm1987982378$1 = ($jscomp$optchain$tmpm1987982378$0 = doc).querySelector) == null ? void 0 : $jscomp$optchain$tmpm1987982378$1.call($jscomp$optchain$tmpm1987982378$0, elementName + "[nonce]");
|
|
3412
3451
|
return el == null ? "" : el.nonce || el.getAttribute("nonce") || "";
|
|
3413
3452
|
}
|
|
3414
3453
|
;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"};
|
|
@@ -4841,9 +4880,9 @@ function module$contents$safevalues$dom$globals$dom_parser_domParserParseFromStr
|
|
|
4841
4880
|
module$exports$safevalues$dom$globals$dom_parser.domParserParseFromString = module$contents$safevalues$dom$globals$dom_parser_domParserParseFromString;
|
|
4842
4881
|
var module$exports$safevalues$dom$globals$fetch = {}, module$contents$safevalues$dom$globals$fetch_module = module$contents$safevalues$dom$globals$fetch_module || {id:"third_party/javascript/safevalues/dom/globals/fetch.closure.js"};
|
|
4843
4882
|
module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError = function(url, typeName, contentType) {
|
|
4844
|
-
var $jscomp$tmp$error$
|
|
4845
|
-
this.message = $jscomp$tmp$error$
|
|
4846
|
-
"stack" in $jscomp$tmp$error$
|
|
4883
|
+
var $jscomp$tmp$error$1153895636$25 = Error.call(this, url + " was requested as a " + typeName + ', but the response Content-Type, "' + contentType + " is not appropriate for this type of content.");
|
|
4884
|
+
this.message = $jscomp$tmp$error$1153895636$25.message;
|
|
4885
|
+
"stack" in $jscomp$tmp$error$1153895636$25 && (this.stack = $jscomp$tmp$error$1153895636$25.stack);
|
|
4847
4886
|
this.url = url;
|
|
4848
4887
|
this.typeName = typeName;
|
|
4849
4888
|
this.contentType = contentType;
|
|
@@ -4855,48 +4894,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
|
|
|
4855
4894
|
return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
|
|
4856
4895
|
}
|
|
4857
4896
|
function module$contents$safevalues$dom$globals$fetch_fetchResourceUrl(u, init) {
|
|
4858
|
-
var response, $jscomp$optchain$
|
|
4859
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4860
|
-
if ($jscomp$generator$context$
|
|
4861
|
-
return $jscomp$generator$context$
|
|
4862
|
-
}
|
|
4863
|
-
response = $jscomp$generator$context$
|
|
4864
|
-
mimeType = ($jscomp$optchain$
|
|
4865
|
-
return $jscomp$generator$context$
|
|
4897
|
+
var response, $jscomp$optchain$tmp1153895636$0, $jscomp$optchain$tmp1153895636$1, $jscomp$optchain$tmp1153895636$2, mimeType;
|
|
4898
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$29) {
|
|
4899
|
+
if ($jscomp$generator$context$1153895636$29.getNextAddressJsc() == 1) {
|
|
4900
|
+
return $jscomp$generator$context$1153895636$29.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
|
|
4901
|
+
}
|
|
4902
|
+
response = $jscomp$generator$context$1153895636$29.getYieldResultJsc();
|
|
4903
|
+
mimeType = ($jscomp$optchain$tmp1153895636$0 = response.headers.get("Content-Type")) == null ? void 0 : ($jscomp$optchain$tmp1153895636$1 = $jscomp$optchain$tmp1153895636$0.split(";", 2)) == null ? void 0 : ($jscomp$optchain$tmp1153895636$2 = $jscomp$optchain$tmp1153895636$1[0]) == null ? void 0 : $jscomp$optchain$tmp1153895636$2.toLowerCase();
|
|
4904
|
+
return $jscomp$generator$context$1153895636$29.return({html:function() {
|
|
4866
4905
|
var text;
|
|
4867
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4868
|
-
if ($jscomp$generator$context$
|
|
4906
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$26) {
|
|
4907
|
+
if ($jscomp$generator$context$1153895636$26.getNextAddressJsc() == 1) {
|
|
4869
4908
|
if (mimeType !== "text/html") {
|
|
4870
4909
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
|
|
4871
4910
|
}
|
|
4872
|
-
return $jscomp$generator$context$
|
|
4911
|
+
return $jscomp$generator$context$1153895636$26.yield(response.text(), 2);
|
|
4873
4912
|
}
|
|
4874
|
-
text = $jscomp$generator$context$
|
|
4875
|
-
return $jscomp$generator$context$
|
|
4913
|
+
text = $jscomp$generator$context$1153895636$26.getYieldResultJsc();
|
|
4914
|
+
return $jscomp$generator$context$1153895636$26.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
|
|
4876
4915
|
});
|
|
4877
4916
|
}, script:function() {
|
|
4878
4917
|
var text;
|
|
4879
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4880
|
-
if ($jscomp$generator$context$
|
|
4918
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$27) {
|
|
4919
|
+
if ($jscomp$generator$context$1153895636$27.getNextAddressJsc() == 1) {
|
|
4881
4920
|
if (mimeType !== "text/javascript" && mimeType !== "application/javascript") {
|
|
4882
4921
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
|
|
4883
4922
|
}
|
|
4884
|
-
return $jscomp$generator$context$
|
|
4923
|
+
return $jscomp$generator$context$1153895636$27.yield(response.text(), 2);
|
|
4885
4924
|
}
|
|
4886
|
-
text = $jscomp$generator$context$
|
|
4887
|
-
return $jscomp$generator$context$
|
|
4925
|
+
text = $jscomp$generator$context$1153895636$27.getYieldResultJsc();
|
|
4926
|
+
return $jscomp$generator$context$1153895636$27.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
|
|
4888
4927
|
});
|
|
4889
4928
|
}, styleSheet:function() {
|
|
4890
4929
|
var text;
|
|
4891
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4892
|
-
if ($jscomp$generator$context$
|
|
4930
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$28) {
|
|
4931
|
+
if ($jscomp$generator$context$1153895636$28.getNextAddressJsc() == 1) {
|
|
4893
4932
|
if (mimeType !== "text/css") {
|
|
4894
4933
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
|
|
4895
4934
|
}
|
|
4896
|
-
return $jscomp$generator$context$
|
|
4935
|
+
return $jscomp$generator$context$1153895636$28.yield(response.text(), 2);
|
|
4897
4936
|
}
|
|
4898
|
-
text = $jscomp$generator$context$
|
|
4899
|
-
return $jscomp$generator$context$
|
|
4937
|
+
text = $jscomp$generator$context$1153895636$28.getYieldResultJsc();
|
|
4938
|
+
return $jscomp$generator$context$1153895636$28.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
|
|
4900
4939
|
});
|
|
4901
4940
|
}});
|
|
4902
4941
|
});
|
|
@@ -5852,38 +5891,38 @@ goog.uri.utils.setUrlPackageSupportLoggingHandler = function(handler) {
|
|
|
5852
5891
|
module$contents$goog$uri$utils_urlPackageSupportLoggingHandler = handler;
|
|
5853
5892
|
};
|
|
5854
5893
|
goog.uri.utils.split = module$contents$goog$uri$utils_split;
|
|
5855
|
-
goog
|
|
5894
|
+
function module$contents$goog$Uri_Uri(opt_uri, opt_ignoreCase) {
|
|
5856
5895
|
this.domain_ = this.userInfo_ = this.scheme_ = "";
|
|
5857
5896
|
this.port_ = null;
|
|
5858
5897
|
this.fragment_ = this.path_ = "";
|
|
5859
5898
|
this.ignoreCase_ = this.isReadOnly_ = !1;
|
|
5860
5899
|
var m;
|
|
5861
|
-
opt_uri instanceof goog
|
|
5862
|
-
this.setScheme(m[module$contents$goog$uri$utils_ComponentIndex.SCHEME] || "", !0), this.setUserInfo(m[module$contents$goog$uri$utils_ComponentIndex.USER_INFO] || "", !0), this.setDomain(m[module$contents$goog$uri$utils_ComponentIndex.DOMAIN] || "", !0), this.setPort(m[module$contents$goog$uri$utils_ComponentIndex.PORT]), this.setPath(m[module$contents$goog$uri$utils_ComponentIndex.PATH] || "", !0), this.setQueryData(m[module$contents$goog$uri$utils_ComponentIndex.QUERY_DATA] ||
|
|
5863
|
-
"", !0)) : (this.ignoreCase_ = !!opt_ignoreCase, this.queryData_ = new goog.
|
|
5864
|
-
}
|
|
5865
|
-
goog.
|
|
5866
|
-
goog.
|
|
5900
|
+
opt_uri instanceof module$contents$goog$Uri_Uri ? (this.ignoreCase_ = opt_ignoreCase !== void 0 ? opt_ignoreCase : opt_uri.getIgnoreCase(), this.setScheme(opt_uri.getScheme()), this.setUserInfo(opt_uri.getUserInfo()), this.setDomain(opt_uri.getDomain()), this.setPort(opt_uri.getPort()), this.setPath(opt_uri.getPath()), this.setQueryData(opt_uri.getQueryData().clone()), this.setFragment(opt_uri.getFragment())) : opt_uri && (m = module$contents$goog$uri$utils_split(String(opt_uri))) ? (this.ignoreCase_ =
|
|
5901
|
+
!!opt_ignoreCase, this.setScheme(m[module$contents$goog$uri$utils_ComponentIndex.SCHEME] || "", !0), this.setUserInfo(m[module$contents$goog$uri$utils_ComponentIndex.USER_INFO] || "", !0), this.setDomain(m[module$contents$goog$uri$utils_ComponentIndex.DOMAIN] || "", !0), this.setPort(m[module$contents$goog$uri$utils_ComponentIndex.PORT]), this.setPath(m[module$contents$goog$uri$utils_ComponentIndex.PATH] || "", !0), this.setQueryData(m[module$contents$goog$uri$utils_ComponentIndex.QUERY_DATA] ||
|
|
5902
|
+
"", !0), this.setFragment(m[module$contents$goog$uri$utils_ComponentIndex.FRAGMENT] || "", !0)) : (this.ignoreCase_ = !!opt_ignoreCase, this.queryData_ = new module$contents$goog$Uri_Uri.QueryData(null, this.ignoreCase_));
|
|
5903
|
+
}
|
|
5904
|
+
module$contents$goog$Uri_Uri.RANDOM_PARAM = module$contents$goog$uri$utils_StandardQueryParam.RANDOM;
|
|
5905
|
+
module$contents$goog$Uri_Uri.prototype.toString = function() {
|
|
5867
5906
|
var out = [], scheme = this.getScheme();
|
|
5868
|
-
scheme && out.push(goog.
|
|
5907
|
+
scheme && out.push(module$contents$goog$Uri_Uri.encodeSpecialChars_(scheme, module$contents$goog$Uri_Uri.reDisallowedInSchemeOrUserInfo_, !0), ":");
|
|
5869
5908
|
var domain = this.getDomain();
|
|
5870
5909
|
if (domain || scheme == "file") {
|
|
5871
5910
|
out.push("//");
|
|
5872
5911
|
var userInfo = this.getUserInfo();
|
|
5873
|
-
userInfo && out.push(goog.
|
|
5874
|
-
out.push(goog.
|
|
5912
|
+
userInfo && out.push(module$contents$goog$Uri_Uri.encodeSpecialChars_(userInfo, module$contents$goog$Uri_Uri.reDisallowedInSchemeOrUserInfo_, !0), "@");
|
|
5913
|
+
out.push(module$contents$goog$Uri_Uri.removeDoubleEncoding_(goog.string.urlEncode(domain)));
|
|
5875
5914
|
var port = this.getPort();
|
|
5876
5915
|
port != null && out.push(":", String(port));
|
|
5877
5916
|
}
|
|
5878
5917
|
var path = this.getPath();
|
|
5879
|
-
path && (this.hasDomain() && path.charAt(0) != "/" && out.push("/"), out.push(goog.
|
|
5918
|
+
path && (this.hasDomain() && path.charAt(0) != "/" && out.push("/"), out.push(module$contents$goog$Uri_Uri.encodeSpecialChars_(path, path.charAt(0) == "/" ? module$contents$goog$Uri_Uri.reDisallowedInAbsolutePath_ : module$contents$goog$Uri_Uri.reDisallowedInRelativePath_, !0)));
|
|
5880
5919
|
var query = this.getEncodedQuery();
|
|
5881
5920
|
query && out.push("?", query);
|
|
5882
5921
|
var fragment = this.getFragment();
|
|
5883
|
-
fragment && out.push("#", goog.
|
|
5922
|
+
fragment && out.push("#", module$contents$goog$Uri_Uri.encodeSpecialChars_(fragment, module$contents$goog$Uri_Uri.reDisallowedInFragment_));
|
|
5884
5923
|
return out.join("");
|
|
5885
5924
|
};
|
|
5886
|
-
goog.
|
|
5925
|
+
module$contents$goog$Uri_Uri.prototype.resolve = function(relativeUri) {
|
|
5887
5926
|
var absoluteUri = this.clone(), overridden = relativeUri.hasScheme();
|
|
5888
5927
|
overridden ? absoluteUri.setScheme(relativeUri.getScheme()) : overridden = relativeUri.hasUserInfo();
|
|
5889
5928
|
overridden ? absoluteUri.setUserInfo(relativeUri.getUserInfo()) : overridden = relativeUri.hasDomain();
|
|
@@ -5901,7 +5940,7 @@ goog.Uri.prototype.resolve = function(relativeUri) {
|
|
|
5901
5940
|
lastSlashIndex != -1 && (path = absoluteUri.getPath().slice(0, lastSlashIndex + 1) + path);
|
|
5902
5941
|
}
|
|
5903
5942
|
}
|
|
5904
|
-
path = goog.
|
|
5943
|
+
path = module$contents$goog$Uri_Uri.removeDotSegments(path);
|
|
5905
5944
|
}
|
|
5906
5945
|
}
|
|
5907
5946
|
overridden ? absoluteUri.setPath(path) : overridden = relativeUri.hasQuery();
|
|
@@ -5909,48 +5948,48 @@ goog.Uri.prototype.resolve = function(relativeUri) {
|
|
|
5909
5948
|
overridden && absoluteUri.setFragment(relativeUri.getFragment());
|
|
5910
5949
|
return absoluteUri;
|
|
5911
5950
|
};
|
|
5912
|
-
goog.
|
|
5913
|
-
return new goog
|
|
5951
|
+
module$contents$goog$Uri_Uri.prototype.clone = function() {
|
|
5952
|
+
return new module$contents$goog$Uri_Uri(this);
|
|
5914
5953
|
};
|
|
5915
|
-
goog.
|
|
5954
|
+
module$contents$goog$Uri_Uri.prototype.getScheme = function() {
|
|
5916
5955
|
return this.scheme_;
|
|
5917
5956
|
};
|
|
5918
|
-
goog.
|
|
5957
|
+
module$contents$goog$Uri_Uri.prototype.setScheme = function(newScheme, opt_decode) {
|
|
5919
5958
|
this.enforceReadOnly();
|
|
5920
|
-
if (this.scheme_ = opt_decode ? goog.
|
|
5959
|
+
if (this.scheme_ = opt_decode ? module$contents$goog$Uri_Uri.decodeOrEmpty_(newScheme, !0) : newScheme) {
|
|
5921
5960
|
this.scheme_ = this.scheme_.replace(/:$/, "");
|
|
5922
5961
|
}
|
|
5923
5962
|
return this;
|
|
5924
5963
|
};
|
|
5925
|
-
goog.
|
|
5964
|
+
module$contents$goog$Uri_Uri.prototype.hasScheme = function() {
|
|
5926
5965
|
return !!this.scheme_;
|
|
5927
5966
|
};
|
|
5928
|
-
goog.
|
|
5967
|
+
module$contents$goog$Uri_Uri.prototype.getUserInfo = function() {
|
|
5929
5968
|
return this.userInfo_;
|
|
5930
5969
|
};
|
|
5931
|
-
goog.
|
|
5970
|
+
module$contents$goog$Uri_Uri.prototype.setUserInfo = function(newUserInfo, opt_decode) {
|
|
5932
5971
|
this.enforceReadOnly();
|
|
5933
|
-
this.userInfo_ = opt_decode ? goog.
|
|
5972
|
+
this.userInfo_ = opt_decode ? module$contents$goog$Uri_Uri.decodeOrEmpty_(newUserInfo) : newUserInfo;
|
|
5934
5973
|
return this;
|
|
5935
5974
|
};
|
|
5936
|
-
goog.
|
|
5975
|
+
module$contents$goog$Uri_Uri.prototype.hasUserInfo = function() {
|
|
5937
5976
|
return !!this.userInfo_;
|
|
5938
5977
|
};
|
|
5939
|
-
goog.
|
|
5978
|
+
module$contents$goog$Uri_Uri.prototype.getDomain = function() {
|
|
5940
5979
|
return this.domain_;
|
|
5941
5980
|
};
|
|
5942
|
-
goog.
|
|
5981
|
+
module$contents$goog$Uri_Uri.prototype.setDomain = function(newDomain, opt_decode) {
|
|
5943
5982
|
this.enforceReadOnly();
|
|
5944
|
-
this.domain_ = opt_decode ? goog.
|
|
5983
|
+
this.domain_ = opt_decode ? module$contents$goog$Uri_Uri.decodeOrEmpty_(newDomain, !0) : newDomain;
|
|
5945
5984
|
return this;
|
|
5946
5985
|
};
|
|
5947
|
-
goog.
|
|
5986
|
+
module$contents$goog$Uri_Uri.prototype.hasDomain = function() {
|
|
5948
5987
|
return !!this.domain_;
|
|
5949
5988
|
};
|
|
5950
|
-
goog.
|
|
5989
|
+
module$contents$goog$Uri_Uri.prototype.getPort = function() {
|
|
5951
5990
|
return this.port_;
|
|
5952
5991
|
};
|
|
5953
|
-
goog.
|
|
5992
|
+
module$contents$goog$Uri_Uri.prototype.setPort = function(newPort) {
|
|
5954
5993
|
this.enforceReadOnly();
|
|
5955
5994
|
if (newPort) {
|
|
5956
5995
|
newPort = Number(newPort);
|
|
@@ -5963,109 +6002,109 @@ goog.Uri.prototype.setPort = function(newPort) {
|
|
|
5963
6002
|
}
|
|
5964
6003
|
return this;
|
|
5965
6004
|
};
|
|
5966
|
-
goog.
|
|
6005
|
+
module$contents$goog$Uri_Uri.prototype.hasPort = function() {
|
|
5967
6006
|
return this.port_ != null;
|
|
5968
6007
|
};
|
|
5969
|
-
goog.
|
|
6008
|
+
module$contents$goog$Uri_Uri.prototype.getPath = function() {
|
|
5970
6009
|
return this.path_;
|
|
5971
6010
|
};
|
|
5972
|
-
goog.
|
|
6011
|
+
module$contents$goog$Uri_Uri.prototype.setPath = function(newPath, opt_decode) {
|
|
5973
6012
|
this.enforceReadOnly();
|
|
5974
|
-
this.path_ = opt_decode ? goog.
|
|
6013
|
+
this.path_ = opt_decode ? module$contents$goog$Uri_Uri.decodeOrEmpty_(newPath, !0) : newPath;
|
|
5975
6014
|
return this;
|
|
5976
6015
|
};
|
|
5977
|
-
goog.
|
|
6016
|
+
module$contents$goog$Uri_Uri.prototype.hasPath = function() {
|
|
5978
6017
|
return !!this.path_;
|
|
5979
6018
|
};
|
|
5980
|
-
goog.
|
|
6019
|
+
module$contents$goog$Uri_Uri.prototype.hasQuery = function() {
|
|
5981
6020
|
return this.queryData_.toString() !== "";
|
|
5982
6021
|
};
|
|
5983
|
-
goog.
|
|
6022
|
+
module$contents$goog$Uri_Uri.prototype.setQueryData = function(queryData, opt_decode) {
|
|
5984
6023
|
this.enforceReadOnly();
|
|
5985
|
-
queryData instanceof goog.
|
|
6024
|
+
queryData instanceof module$contents$goog$Uri_Uri.QueryData ? (this.queryData_ = queryData, this.queryData_.setIgnoreCase(this.ignoreCase_)) : (opt_decode || (queryData = module$contents$goog$Uri_Uri.encodeSpecialChars_(queryData, module$contents$goog$Uri_Uri.reDisallowedInQuery_)), this.queryData_ = new module$contents$goog$Uri_Uri.QueryData(queryData, this.ignoreCase_));
|
|
5986
6025
|
return this;
|
|
5987
6026
|
};
|
|
5988
|
-
goog.
|
|
6027
|
+
module$contents$goog$Uri_Uri.prototype.setQuery = function(newQuery, opt_decode) {
|
|
5989
6028
|
return this.setQueryData(newQuery, opt_decode);
|
|
5990
6029
|
};
|
|
5991
|
-
goog.
|
|
6030
|
+
module$contents$goog$Uri_Uri.prototype.getEncodedQuery = function() {
|
|
5992
6031
|
return this.queryData_.toString();
|
|
5993
6032
|
};
|
|
5994
|
-
goog.
|
|
6033
|
+
module$contents$goog$Uri_Uri.prototype.getDecodedQuery = function() {
|
|
5995
6034
|
return this.queryData_.toDecodedString();
|
|
5996
6035
|
};
|
|
5997
|
-
goog.
|
|
6036
|
+
module$contents$goog$Uri_Uri.prototype.getQueryData = function() {
|
|
5998
6037
|
return this.queryData_;
|
|
5999
6038
|
};
|
|
6000
|
-
goog.
|
|
6039
|
+
module$contents$goog$Uri_Uri.prototype.getQuery = function() {
|
|
6001
6040
|
return this.getEncodedQuery();
|
|
6002
6041
|
};
|
|
6003
|
-
goog.
|
|
6042
|
+
module$contents$goog$Uri_Uri.prototype.setParameterValue = function(key, value) {
|
|
6004
6043
|
this.enforceReadOnly();
|
|
6005
6044
|
this.queryData_.set(key, value);
|
|
6006
6045
|
return this;
|
|
6007
6046
|
};
|
|
6008
|
-
goog.
|
|
6047
|
+
module$contents$goog$Uri_Uri.prototype.setParameterValues = function(key, values) {
|
|
6009
6048
|
this.enforceReadOnly();
|
|
6010
6049
|
Array.isArray(values) || (values = [String(values)]);
|
|
6011
6050
|
this.queryData_.setValues(key, values);
|
|
6012
6051
|
return this;
|
|
6013
6052
|
};
|
|
6014
|
-
goog.
|
|
6053
|
+
module$contents$goog$Uri_Uri.prototype.getParameterValues = function(name) {
|
|
6015
6054
|
return this.queryData_.getValues(name);
|
|
6016
6055
|
};
|
|
6017
|
-
goog.
|
|
6056
|
+
module$contents$goog$Uri_Uri.prototype.getParameterValue = function(paramName) {
|
|
6018
6057
|
return this.queryData_.get(paramName);
|
|
6019
6058
|
};
|
|
6020
|
-
goog.
|
|
6059
|
+
module$contents$goog$Uri_Uri.prototype.getFragment = function() {
|
|
6021
6060
|
return this.fragment_;
|
|
6022
6061
|
};
|
|
6023
|
-
goog.
|
|
6062
|
+
module$contents$goog$Uri_Uri.prototype.setFragment = function(newFragment, opt_decode) {
|
|
6024
6063
|
this.enforceReadOnly();
|
|
6025
|
-
this.fragment_ = opt_decode ? goog.
|
|
6064
|
+
this.fragment_ = opt_decode ? module$contents$goog$Uri_Uri.decodeOrEmpty_(newFragment) : newFragment;
|
|
6026
6065
|
return this;
|
|
6027
6066
|
};
|
|
6028
|
-
goog.
|
|
6067
|
+
module$contents$goog$Uri_Uri.prototype.hasFragment = function() {
|
|
6029
6068
|
return !!this.fragment_;
|
|
6030
6069
|
};
|
|
6031
|
-
goog.
|
|
6070
|
+
module$contents$goog$Uri_Uri.prototype.hasSameDomainAs = function(uri2) {
|
|
6032
6071
|
return (!this.hasDomain() && !uri2.hasDomain() || this.getDomain() == uri2.getDomain()) && (!this.hasPort() && !uri2.hasPort() || this.getPort() == uri2.getPort());
|
|
6033
6072
|
};
|
|
6034
|
-
goog.
|
|
6073
|
+
module$contents$goog$Uri_Uri.prototype.makeUnique = function() {
|
|
6035
6074
|
this.enforceReadOnly();
|
|
6036
|
-
this.setParameterValue(goog.
|
|
6075
|
+
this.setParameterValue(module$contents$goog$Uri_Uri.RANDOM_PARAM, goog.string.getRandomString());
|
|
6037
6076
|
return this;
|
|
6038
6077
|
};
|
|
6039
|
-
goog.
|
|
6078
|
+
module$contents$goog$Uri_Uri.prototype.removeParameter = function(key) {
|
|
6040
6079
|
this.enforceReadOnly();
|
|
6041
6080
|
this.queryData_.remove(key);
|
|
6042
6081
|
return this;
|
|
6043
6082
|
};
|
|
6044
|
-
goog.
|
|
6083
|
+
module$contents$goog$Uri_Uri.prototype.setReadOnly = function(isReadOnly) {
|
|
6045
6084
|
this.isReadOnly_ = isReadOnly;
|
|
6046
6085
|
return this;
|
|
6047
6086
|
};
|
|
6048
|
-
goog.
|
|
6087
|
+
module$contents$goog$Uri_Uri.prototype.isReadOnly = function() {
|
|
6049
6088
|
return this.isReadOnly_;
|
|
6050
6089
|
};
|
|
6051
|
-
goog.
|
|
6090
|
+
module$contents$goog$Uri_Uri.prototype.enforceReadOnly = function() {
|
|
6052
6091
|
if (this.isReadOnly_) {
|
|
6053
6092
|
throw Error("Tried to modify a read-only Uri");
|
|
6054
6093
|
}
|
|
6055
6094
|
};
|
|
6056
|
-
goog.
|
|
6095
|
+
module$contents$goog$Uri_Uri.prototype.setIgnoreCase = function(ignoreCase) {
|
|
6057
6096
|
this.ignoreCase_ = ignoreCase;
|
|
6058
6097
|
this.queryData_ && this.queryData_.setIgnoreCase(ignoreCase);
|
|
6059
6098
|
return this;
|
|
6060
6099
|
};
|
|
6061
|
-
goog.
|
|
6100
|
+
module$contents$goog$Uri_Uri.prototype.getIgnoreCase = function() {
|
|
6062
6101
|
return this.ignoreCase_;
|
|
6063
6102
|
};
|
|
6064
|
-
goog.
|
|
6065
|
-
return uri instanceof goog
|
|
6103
|
+
module$contents$goog$Uri_Uri.parse = function(uri, opt_ignoreCase) {
|
|
6104
|
+
return uri instanceof module$contents$goog$Uri_Uri ? uri.clone() : new module$contents$goog$Uri_Uri(uri, opt_ignoreCase);
|
|
6066
6105
|
};
|
|
6067
|
-
goog.
|
|
6068
|
-
var uri = new goog
|
|
6106
|
+
module$contents$goog$Uri_Uri.create = function(opt_scheme, opt_userInfo, opt_domain, opt_port, opt_path, opt_query, opt_fragment, opt_ignoreCase) {
|
|
6107
|
+
var uri = new module$contents$goog$Uri_Uri(null, opt_ignoreCase);
|
|
6069
6108
|
opt_scheme && uri.setScheme(opt_scheme);
|
|
6070
6109
|
opt_userInfo && uri.setUserInfo(opt_userInfo);
|
|
6071
6110
|
opt_domain && uri.setDomain(opt_domain);
|
|
@@ -6075,12 +6114,12 @@ goog.Uri.create = function(opt_scheme, opt_userInfo, opt_domain, opt_port, opt_p
|
|
|
6075
6114
|
opt_fragment && uri.setFragment(opt_fragment);
|
|
6076
6115
|
return uri;
|
|
6077
6116
|
};
|
|
6078
|
-
goog.
|
|
6079
|
-
base instanceof goog
|
|
6080
|
-
rel instanceof goog
|
|
6117
|
+
module$contents$goog$Uri_Uri.resolve = function(base, rel) {
|
|
6118
|
+
base instanceof module$contents$goog$Uri_Uri || (base = module$contents$goog$Uri_Uri.parse(base));
|
|
6119
|
+
rel instanceof module$contents$goog$Uri_Uri || (rel = module$contents$goog$Uri_Uri.parse(rel));
|
|
6081
6120
|
return base.resolve(rel);
|
|
6082
6121
|
};
|
|
6083
|
-
goog.
|
|
6122
|
+
module$contents$goog$Uri_Uri.removeDotSegments = function(path) {
|
|
6084
6123
|
if (path == ".." || path == ".") {
|
|
6085
6124
|
return "";
|
|
6086
6125
|
}
|
|
@@ -6093,39 +6132,39 @@ goog.Uri.removeDotSegments = function(path) {
|
|
|
6093
6132
|
}
|
|
6094
6133
|
return path;
|
|
6095
6134
|
};
|
|
6096
|
-
goog.
|
|
6135
|
+
module$contents$goog$Uri_Uri.decodeOrEmpty_ = function(val, opt_preserveReserved) {
|
|
6097
6136
|
return val ? opt_preserveReserved ? decodeURI(val.replace(/%25/g, "%2525")) : decodeURIComponent(val) : "";
|
|
6098
6137
|
};
|
|
6099
|
-
goog.
|
|
6138
|
+
module$contents$goog$Uri_Uri.encodeSpecialChars_ = function(unescapedPart, extra, opt_removeDoubleEncoding) {
|
|
6100
6139
|
if (typeof unescapedPart === "string") {
|
|
6101
|
-
var encoded = encodeURI(unescapedPart).replace(extra, goog.
|
|
6102
|
-
opt_removeDoubleEncoding && (encoded = goog.
|
|
6140
|
+
var encoded = encodeURI(unescapedPart).replace(extra, module$contents$goog$Uri_Uri.encodeChar_);
|
|
6141
|
+
opt_removeDoubleEncoding && (encoded = module$contents$goog$Uri_Uri.removeDoubleEncoding_(encoded));
|
|
6103
6142
|
return encoded;
|
|
6104
6143
|
}
|
|
6105
6144
|
return null;
|
|
6106
6145
|
};
|
|
6107
|
-
goog.
|
|
6146
|
+
module$contents$goog$Uri_Uri.encodeChar_ = function(ch) {
|
|
6108
6147
|
var n = ch.charCodeAt(0);
|
|
6109
6148
|
return "%" + (n >> 4 & 15).toString(16) + (n & 15).toString(16);
|
|
6110
6149
|
};
|
|
6111
|
-
goog.
|
|
6150
|
+
module$contents$goog$Uri_Uri.removeDoubleEncoding_ = function(doubleEncodedString) {
|
|
6112
6151
|
return doubleEncodedString.replace(/%25([0-9a-fA-F]{2})/g, "%$1");
|
|
6113
6152
|
};
|
|
6114
|
-
goog.
|
|
6115
|
-
goog.
|
|
6116
|
-
goog.
|
|
6117
|
-
goog.
|
|
6118
|
-
goog.
|
|
6119
|
-
goog.
|
|
6153
|
+
module$contents$goog$Uri_Uri.reDisallowedInSchemeOrUserInfo_ = /[#\/\?@]/g;
|
|
6154
|
+
module$contents$goog$Uri_Uri.reDisallowedInRelativePath_ = /[#\?:]/g;
|
|
6155
|
+
module$contents$goog$Uri_Uri.reDisallowedInAbsolutePath_ = /[#\?]/g;
|
|
6156
|
+
module$contents$goog$Uri_Uri.reDisallowedInQuery_ = /[#\?@]/g;
|
|
6157
|
+
module$contents$goog$Uri_Uri.reDisallowedInFragment_ = /#/g;
|
|
6158
|
+
module$contents$goog$Uri_Uri.haveSameDomain = function(uri1String, uri2String) {
|
|
6120
6159
|
var pieces1 = module$contents$goog$uri$utils_split(uri1String), pieces2 = module$contents$goog$uri$utils_split(uri2String);
|
|
6121
6160
|
return pieces1[module$contents$goog$uri$utils_ComponentIndex.DOMAIN] == pieces2[module$contents$goog$uri$utils_ComponentIndex.DOMAIN] && pieces1[module$contents$goog$uri$utils_ComponentIndex.PORT] == pieces2[module$contents$goog$uri$utils_ComponentIndex.PORT];
|
|
6122
6161
|
};
|
|
6123
|
-
goog.
|
|
6162
|
+
module$contents$goog$Uri_Uri.QueryData = function(opt_query, opt_ignoreCase) {
|
|
6124
6163
|
this.count_ = this.keyMap_ = null;
|
|
6125
6164
|
this.encodedQuery_ = opt_query || null;
|
|
6126
6165
|
this.ignoreCase_ = !!opt_ignoreCase;
|
|
6127
6166
|
};
|
|
6128
|
-
goog.
|
|
6167
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.ensureKeyMapInitialized_ = function() {
|
|
6129
6168
|
if (!this.keyMap_ && (this.keyMap_ = new Map(), this.count_ = 0, this.encodedQuery_)) {
|
|
6130
6169
|
var self = this;
|
|
6131
6170
|
module$contents$goog$uri$utils_parseQueryData(this.encodedQuery_, function(name, value) {
|
|
@@ -6133,31 +6172,31 @@ goog.Uri.QueryData.prototype.ensureKeyMapInitialized_ = function() {
|
|
|
6133
6172
|
});
|
|
6134
6173
|
}
|
|
6135
6174
|
};
|
|
6136
|
-
goog.
|
|
6175
|
+
module$contents$goog$Uri_Uri.QueryData.createFromMap = function(map, opt_ignoreCase) {
|
|
6137
6176
|
var keys = goog.structs.getKeys(map);
|
|
6138
6177
|
if (typeof keys == "undefined") {
|
|
6139
6178
|
throw Error("Keys are undefined");
|
|
6140
6179
|
}
|
|
6141
|
-
for (var queryData = new goog.
|
|
6180
|
+
for (var queryData = new module$contents$goog$Uri_Uri.QueryData(null, opt_ignoreCase), values = goog.structs.getValues(map), i = 0; i < keys.length; i++) {
|
|
6142
6181
|
var key = keys[i], value = values[i];
|
|
6143
6182
|
Array.isArray(value) ? queryData.setValues(key, value) : queryData.add(key, value);
|
|
6144
6183
|
}
|
|
6145
6184
|
return queryData;
|
|
6146
6185
|
};
|
|
6147
|
-
goog.
|
|
6186
|
+
module$contents$goog$Uri_Uri.QueryData.createFromKeysValues = function(keys, values, opt_ignoreCase) {
|
|
6148
6187
|
if (keys.length != values.length) {
|
|
6149
6188
|
throw Error("Mismatched lengths for keys/values");
|
|
6150
6189
|
}
|
|
6151
|
-
for (var queryData = new goog.
|
|
6190
|
+
for (var queryData = new module$contents$goog$Uri_Uri.QueryData(null, opt_ignoreCase), i = 0; i < keys.length; i++) {
|
|
6152
6191
|
queryData.add(keys[i], values[i]);
|
|
6153
6192
|
}
|
|
6154
6193
|
return queryData;
|
|
6155
6194
|
};
|
|
6156
|
-
goog.
|
|
6195
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.getCount = function() {
|
|
6157
6196
|
this.ensureKeyMapInitialized_();
|
|
6158
6197
|
return this.count_;
|
|
6159
6198
|
};
|
|
6160
|
-
goog.
|
|
6199
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.add = function(key, value) {
|
|
6161
6200
|
this.ensureKeyMapInitialized_();
|
|
6162
6201
|
this.invalidateCache_();
|
|
6163
6202
|
key = this.getKeyName_(key);
|
|
@@ -6167,30 +6206,30 @@ goog.Uri.QueryData.prototype.add = function(key, value) {
|
|
|
6167
6206
|
this.count_ = goog.asserts.assertNumber(this.count_) + 1;
|
|
6168
6207
|
return this;
|
|
6169
6208
|
};
|
|
6170
|
-
goog.
|
|
6209
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.remove = function(key) {
|
|
6171
6210
|
this.ensureKeyMapInitialized_();
|
|
6172
6211
|
key = this.getKeyName_(key);
|
|
6173
6212
|
return this.keyMap_.has(key) ? (this.invalidateCache_(), this.count_ = goog.asserts.assertNumber(this.count_) - this.keyMap_.get(key).length, this.keyMap_.delete(key)) : !1;
|
|
6174
6213
|
};
|
|
6175
|
-
goog.
|
|
6214
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.clear = function() {
|
|
6176
6215
|
this.invalidateCache_();
|
|
6177
6216
|
this.keyMap_ = null;
|
|
6178
6217
|
this.count_ = 0;
|
|
6179
6218
|
};
|
|
6180
|
-
goog.
|
|
6219
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.isEmpty = function() {
|
|
6181
6220
|
this.ensureKeyMapInitialized_();
|
|
6182
6221
|
return this.count_ == 0;
|
|
6183
6222
|
};
|
|
6184
|
-
goog.
|
|
6223
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.containsKey = function(key) {
|
|
6185
6224
|
this.ensureKeyMapInitialized_();
|
|
6186
6225
|
key = this.getKeyName_(key);
|
|
6187
6226
|
return this.keyMap_.has(key);
|
|
6188
6227
|
};
|
|
6189
|
-
goog.
|
|
6228
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.containsValue = function(value) {
|
|
6190
6229
|
var vals = this.getValues();
|
|
6191
6230
|
return module$contents$goog$array_contains(vals, value);
|
|
6192
6231
|
};
|
|
6193
|
-
goog.
|
|
6232
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.forEach = function(f, opt_scope) {
|
|
6194
6233
|
this.ensureKeyMapInitialized_();
|
|
6195
6234
|
this.keyMap_.forEach(function(values, key) {
|
|
6196
6235
|
values.forEach(function(value) {
|
|
@@ -6198,7 +6237,7 @@ goog.Uri.QueryData.prototype.forEach = function(f, opt_scope) {
|
|
|
6198
6237
|
}, this);
|
|
6199
6238
|
}, this);
|
|
6200
6239
|
};
|
|
6201
|
-
goog.
|
|
6240
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.getKeys = function() {
|
|
6202
6241
|
this.ensureKeyMapInitialized_();
|
|
6203
6242
|
for (var vals = Array.from(this.keyMap_.values()), keys = Array.from(this.keyMap_.keys()), rv = [], i = 0; i < keys.length; i++) {
|
|
6204
6243
|
for (var val = vals[i], j = 0; j < val.length; j++) {
|
|
@@ -6207,7 +6246,7 @@ goog.Uri.QueryData.prototype.getKeys = function() {
|
|
|
6207
6246
|
}
|
|
6208
6247
|
return rv;
|
|
6209
6248
|
};
|
|
6210
|
-
goog.
|
|
6249
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.getValues = function(opt_key) {
|
|
6211
6250
|
this.ensureKeyMapInitialized_();
|
|
6212
6251
|
var rv = [];
|
|
6213
6252
|
if (typeof opt_key === "string") {
|
|
@@ -6219,7 +6258,7 @@ goog.Uri.QueryData.prototype.getValues = function(opt_key) {
|
|
|
6219
6258
|
}
|
|
6220
6259
|
return rv;
|
|
6221
6260
|
};
|
|
6222
|
-
goog.
|
|
6261
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.set = function(key, value) {
|
|
6223
6262
|
this.ensureKeyMapInitialized_();
|
|
6224
6263
|
this.invalidateCache_();
|
|
6225
6264
|
key = this.getKeyName_(key);
|
|
@@ -6228,18 +6267,18 @@ goog.Uri.QueryData.prototype.set = function(key, value) {
|
|
|
6228
6267
|
this.count_ = goog.asserts.assertNumber(this.count_) + 1;
|
|
6229
6268
|
return this;
|
|
6230
6269
|
};
|
|
6231
|
-
goog.
|
|
6270
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.get = function(key, opt_default) {
|
|
6232
6271
|
if (!key) {
|
|
6233
6272
|
return opt_default;
|
|
6234
6273
|
}
|
|
6235
6274
|
var values = this.getValues(key);
|
|
6236
6275
|
return values.length > 0 ? String(values[0]) : opt_default;
|
|
6237
6276
|
};
|
|
6238
|
-
goog.
|
|
6277
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.setValues = function(key, values) {
|
|
6239
6278
|
this.remove(key);
|
|
6240
6279
|
values.length > 0 && (this.invalidateCache_(), this.keyMap_.set(this.getKeyName_(key), module$contents$goog$array_toArray(values)), this.count_ = goog.asserts.assertNumber(this.count_) + values.length);
|
|
6241
6280
|
};
|
|
6242
|
-
goog.
|
|
6281
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.toString = function() {
|
|
6243
6282
|
if (this.encodedQuery_) {
|
|
6244
6283
|
return this.encodedQuery_;
|
|
6245
6284
|
}
|
|
@@ -6255,44 +6294,45 @@ goog.Uri.QueryData.prototype.toString = function() {
|
|
|
6255
6294
|
}
|
|
6256
6295
|
return this.encodedQuery_ = sb.join("&");
|
|
6257
6296
|
};
|
|
6258
|
-
goog.
|
|
6259
|
-
return goog.
|
|
6297
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.toDecodedString = function() {
|
|
6298
|
+
return module$contents$goog$Uri_Uri.decodeOrEmpty_(this.toString());
|
|
6260
6299
|
};
|
|
6261
|
-
goog.
|
|
6300
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.invalidateCache_ = function() {
|
|
6262
6301
|
this.encodedQuery_ = null;
|
|
6263
6302
|
};
|
|
6264
|
-
goog.
|
|
6303
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.filterKeys = function(keys) {
|
|
6265
6304
|
this.ensureKeyMapInitialized_();
|
|
6266
6305
|
this.keyMap_.forEach(function(value, key) {
|
|
6267
6306
|
module$contents$goog$array_contains(keys, key) || this.remove(key);
|
|
6268
6307
|
}, this);
|
|
6269
6308
|
return this;
|
|
6270
6309
|
};
|
|
6271
|
-
goog.
|
|
6272
|
-
var rv = new goog.
|
|
6310
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.clone = function() {
|
|
6311
|
+
var rv = new module$contents$goog$Uri_Uri.QueryData();
|
|
6273
6312
|
rv.encodedQuery_ = this.encodedQuery_;
|
|
6274
6313
|
this.keyMap_ && (rv.keyMap_ = new Map(this.keyMap_), rv.count_ = this.count_);
|
|
6275
6314
|
return rv;
|
|
6276
6315
|
};
|
|
6277
|
-
goog.
|
|
6316
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.getKeyName_ = function(arg) {
|
|
6278
6317
|
var keyName = String(arg);
|
|
6279
6318
|
this.ignoreCase_ && (keyName = keyName.toLowerCase());
|
|
6280
6319
|
return keyName;
|
|
6281
6320
|
};
|
|
6282
|
-
goog.
|
|
6321
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.setIgnoreCase = function(ignoreCase) {
|
|
6283
6322
|
ignoreCase && !this.ignoreCase_ && (this.ensureKeyMapInitialized_(), this.invalidateCache_(), this.keyMap_.forEach(function(value, key) {
|
|
6284
6323
|
var lowerCase = key.toLowerCase();
|
|
6285
6324
|
key != lowerCase && (this.remove(key), this.setValues(lowerCase, value));
|
|
6286
6325
|
}, this));
|
|
6287
6326
|
this.ignoreCase_ = ignoreCase;
|
|
6288
6327
|
};
|
|
6289
|
-
goog.
|
|
6328
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.extend = function(var_args) {
|
|
6290
6329
|
for (var i = 0; i < arguments.length; i++) {
|
|
6291
6330
|
goog.structs.forEach(arguments[i], function(value, key) {
|
|
6292
6331
|
this.add(key, value);
|
|
6293
6332
|
}, this);
|
|
6294
6333
|
}
|
|
6295
6334
|
};
|
|
6335
|
+
goog.Uri = module$contents$goog$Uri_Uri;
|
|
6296
6336
|
var module$exports$goog$net$rpc$HttpCors = {HTTP_HEADERS_PARAM_NAME:"$httpHeaders", HTTP_METHOD_PARAM_NAME:"$httpMethod", generateHttpHeadersOverwriteParam:function(headers) {
|
|
6297
6337
|
var result = "";
|
|
6298
6338
|
module$contents$goog$object_forEach(headers, function(value, key) {
|
|
@@ -6333,8 +6373,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
6333
6373
|
}
|
|
6334
6374
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
6335
6375
|
function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
|
|
6336
|
-
for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$
|
|
6337
|
-
var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6376
|
+
for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$m125199259$0$ = $jscomp$iter$29.next(); !$jscomp$key$m125199259$0$.done; $jscomp$key$m125199259$0$ = $jscomp$iter$29.next()) {
|
|
6377
|
+
var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$m125199259$0$.value), jsName__tsickle_destructured_1 = $jscomp$destructuring$var3.next().value, urlQueryParamName__tsickle_destructured_2 = $jscomp$destructuring$var3.next().value, jsName = jsName__tsickle_destructured_1, urlQueryParamName = urlQueryParamName__tsickle_destructured_2;
|
|
6338
6378
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
6339
6379
|
}
|
|
6340
6380
|
return urlQueryParams;
|
|
@@ -6346,8 +6386,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params,
|
|
|
6346
6386
|
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1, hasSafeContentType = !1;
|
|
6347
6387
|
if (params.headers) {
|
|
6348
6388
|
hasContentType = params.headers["Content-Type"] != null;
|
|
6349
|
-
for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$
|
|
6350
|
-
var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6389
|
+
for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$m125199259$1$ = $jscomp$iter$30.next(); !$jscomp$key$m125199259$1$.done; $jscomp$key$m125199259$1$ = $jscomp$iter$30.next()) {
|
|
6390
|
+
var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$m125199259$1$.value), key__tsickle_destructured_3 = $jscomp$destructuring$var5.next().value, value__tsickle_destructured_4 = $jscomp$destructuring$var5.next().value, key = key__tsickle_destructured_3, value = value__tsickle_destructured_4;
|
|
6351
6391
|
module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes(key) ? safeHeaders[key] = value : key === "Content-Type" && module$contents$eeapiclient$request_params_simpleCorsAllowedContentTypes.includes(value) ? (safeHeaders[key] = value, hasSafeContentType = !0) : (unsafeHeaders[key] = value, hasUnsafeHeaders = !0);
|
|
6352
6392
|
}
|
|
6353
6393
|
}
|
|
@@ -6382,8 +6422,8 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$addHoo
|
|
|
6382
6422
|
}, function(error) {
|
|
6383
6423
|
throw error;
|
|
6384
6424
|
}).finally(function() {
|
|
6385
|
-
var $jscomp$optchain$
|
|
6386
|
-
($jscomp$optchain$
|
|
6425
|
+
var $jscomp$optchain$tmpm296226325$1;
|
|
6426
|
+
($jscomp$optchain$tmpm296226325$1 = hook.onFinalize) == null || $jscomp$optchain$tmpm296226325$1.call(hook);
|
|
6387
6427
|
});
|
|
6388
6428
|
};
|
|
6389
6429
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$request = function(requestParams) {
|
|
@@ -6391,9 +6431,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
|
|
|
6391
6431
|
return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
|
|
6392
6432
|
};
|
|
6393
6433
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
|
|
6394
|
-
var $jscomp$this$
|
|
6434
|
+
var $jscomp$this$m296226325$6 = this, responseCtor = requestParams.responseCtor || void 0;
|
|
6395
6435
|
return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
|
|
6396
|
-
return $jscomp$this$
|
|
6436
|
+
return $jscomp$this$m296226325$6.requestService.send(params, responseCtor);
|
|
6397
6437
|
}));
|
|
6398
6438
|
};
|
|
6399
6439
|
var module$exports$eeapiclient$promise_request_service = {}, module$contents$eeapiclient$promise_request_service_module = module$contents$eeapiclient$promise_request_service_module || {id:"javascript/typescript/contrib/apiclient/request_service/promise_request_service.closure.js"};
|
|
@@ -6578,6 +6618,8 @@ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_throw_in_arr
|
|
|
6578
6618
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_deserialize_binary_int64s_as_gbigint__disable = !1;
|
|
6579
6619
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_write_back_bigint__disable = !1;
|
|
6580
6620
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__optimize_get_ei_from_ved__enable = !1;
|
|
6621
|
+
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__batch_fc_data_fetches_in_microtask__enable = !1;
|
|
6622
|
+
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_unobfuscated_rpc_method_names__enable = !1;
|
|
6581
6623
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable = !1;
|
|
6582
6624
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable = !1;
|
|
6583
6625
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable = !1;
|
|
@@ -6600,6 +6642,8 @@ goog.flags.JSPB_THROW_IN_ARRAY_CONSTRUCTOR_IF_ARRAY_IS_ALREADY_CONSTRUCTED = mod
|
|
|
6600
6642
|
goog.flags.JSPB_DESERIALIZE_BINARY_INT64S_AS_GBIGINT = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_deserialize_binary_int64s_as_gbigint__disable : goog.readFlagInternalDoNotUseOrElse(824648567, !0);
|
|
6601
6643
|
goog.flags.JSPB_WRITE_BACK_BIGINT = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.FLAGS_STAGING_DEFAULT && (module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_write_back_bigint__disable) : goog.readFlagInternalDoNotUseOrElse(824656860, module$contents$goog$flags_STAGING);
|
|
6602
6644
|
goog.flags.OPTIMIZE_GET_EI_FROM_VED = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__optimize_get_ei_from_ved__enable : goog.readFlagInternalDoNotUseOrElse(333098724, !1);
|
|
6645
|
+
goog.flags.BATCH_FC_DATA_FETCHES_IN_MICROTASK = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__batch_fc_data_fetches_in_microtask__enable : goog.readFlagInternalDoNotUseOrElse(861377723, goog.DEBUG);
|
|
6646
|
+
goog.flags.USE_UNOBFUSCATED_RPC_METHOD_NAMES = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_unobfuscated_rpc_method_names__enable : goog.readFlagInternalDoNotUseOrElse(861377724, goog.DEBUG);
|
|
6603
6647
|
goog.flags.TESTONLY_DISABLED_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable : goog.readFlagInternalDoNotUseOrElse(2147483644, !1);
|
|
6604
6648
|
goog.flags.TESTONLY_DEBUG_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable : goog.readFlagInternalDoNotUseOrElse(2147483645, goog.DEBUG);
|
|
6605
6649
|
goog.flags.TESTONLY_STAGING_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.FLAGS_STAGING_DEFAULT && (module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable) : goog.readFlagInternalDoNotUseOrElse(2147483646, module$contents$goog$flags_STAGING);
|
|
@@ -6700,7 +6744,7 @@ module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue
|
|
|
6700
6744
|
module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue.prototype.load = function() {
|
|
6701
6745
|
var $jscomp$async$this$m2110036436$9 = this, userAgentData;
|
|
6702
6746
|
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m2110036436$35) {
|
|
6703
|
-
if ($jscomp$generator$context$m2110036436$35.
|
|
6747
|
+
if ($jscomp$generator$context$m2110036436$35.getNextAddressJsc() == 1) {
|
|
6704
6748
|
userAgentData = module$contents$goog$labs$userAgent$util_getUserAgentData();
|
|
6705
6749
|
if (!userAgentData) {
|
|
6706
6750
|
return $jscomp$generator$context$m2110036436$35.return(void 0);
|
|
@@ -6708,11 +6752,11 @@ module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue
|
|
|
6708
6752
|
$jscomp$async$this$m2110036436$9.promise_ || ($jscomp$async$this$m2110036436$9.pending_ = !0, $jscomp$async$this$m2110036436$9.promise_ = function() {
|
|
6709
6753
|
var dataValues;
|
|
6710
6754
|
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m2110036436$34) {
|
|
6711
|
-
if ($jscomp$generator$context$m2110036436$34.
|
|
6755
|
+
if ($jscomp$generator$context$m2110036436$34.getNextAddressJsc() == 1) {
|
|
6712
6756
|
return $jscomp$generator$context$m2110036436$34.setFinallyBlock(2), $jscomp$generator$context$m2110036436$34.yield(userAgentData.getHighEntropyValues([$jscomp$async$this$m2110036436$9.key_]), 4);
|
|
6713
6757
|
}
|
|
6714
|
-
if ($jscomp$generator$context$m2110036436$34.
|
|
6715
|
-
return dataValues = $jscomp$generator$context$m2110036436$34.
|
|
6758
|
+
if ($jscomp$generator$context$m2110036436$34.getNextAddressJsc() != 2) {
|
|
6759
|
+
return dataValues = $jscomp$generator$context$m2110036436$34.getYieldResultJsc(), $jscomp$async$this$m2110036436$9.value_ = dataValues[$jscomp$async$this$m2110036436$9.key_], $jscomp$generator$context$m2110036436$34.return($jscomp$async$this$m2110036436$9.value_);
|
|
6716
6760
|
}
|
|
6717
6761
|
$jscomp$generator$context$m2110036436$34.enterFinallyBlock();
|
|
6718
6762
|
$jscomp$async$this$m2110036436$9.pending_ = !1;
|
|
@@ -6721,7 +6765,7 @@ module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue
|
|
|
6721
6765
|
}());
|
|
6722
6766
|
return $jscomp$generator$context$m2110036436$35.yield($jscomp$async$this$m2110036436$9.promise_, 2);
|
|
6723
6767
|
}
|
|
6724
|
-
return $jscomp$generator$context$m2110036436$35.return($jscomp$generator$context$m2110036436$35.
|
|
6768
|
+
return $jscomp$generator$context$m2110036436$35.return($jscomp$generator$context$m2110036436$35.getYieldResultJsc());
|
|
6725
6769
|
});
|
|
6726
6770
|
};
|
|
6727
6771
|
module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue.prototype.resetForTesting = function() {
|
|
@@ -6971,10 +7015,10 @@ module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion.prototype.ge
|
|
|
6971
7015
|
module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion.prototype.load = function() {
|
|
6972
7016
|
var $jscomp$async$this$1683157560$59 = this, loadedVersionList, matchingBrand;
|
|
6973
7017
|
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1683157560$106) {
|
|
6974
|
-
if ($jscomp$generator$context$1683157560$106.
|
|
7018
|
+
if ($jscomp$generator$context$1683157560$106.getNextAddressJsc() == 1) {
|
|
6975
7019
|
return $jscomp$async$this$1683157560$59.useUach_ ? $jscomp$generator$context$1683157560$106.yield(module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.load(), 5) : $jscomp$generator$context$1683157560$106.yield(0, 3);
|
|
6976
7020
|
}
|
|
6977
|
-
if ($jscomp$generator$context$1683157560$106.
|
|
7021
|
+
if ($jscomp$generator$context$1683157560$106.getNextAddressJsc() != 3 && (loadedVersionList = $jscomp$generator$context$1683157560$106.getYieldResultJsc(), loadedVersionList !== void 0)) {
|
|
6978
7022
|
return matchingBrand = loadedVersionList.find(function($jscomp$destructuring$var11) {
|
|
6979
7023
|
return $jscomp$async$this$1683157560$59.brand_ === $jscomp$destructuring$var11.brand;
|
|
6980
7024
|
}), (0,goog.asserts.assertExists)(matchingBrand), $jscomp$generator$context$1683157560$106.return(new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version(matchingBrand.version));
|
|
@@ -6986,7 +7030,7 @@ module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion.prototype.lo
|
|
|
6986
7030
|
var module$contents$goog$labs$userAgent$browser_preUachHasLoaded = !1;
|
|
6987
7031
|
goog.labs.userAgent.browser.loadFullVersions = function() {
|
|
6988
7032
|
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1683157560$107) {
|
|
6989
|
-
if ($jscomp$generator$context$1683157560$107.
|
|
7033
|
+
if ($jscomp$generator$context$1683157560$107.getNextAddressJsc() == 1) {
|
|
6990
7034
|
return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand(!0) ? $jscomp$generator$context$1683157560$107.yield(module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.load(), 2) : $jscomp$generator$context$1683157560$107.jumpTo(2);
|
|
6991
7035
|
}
|
|
6992
7036
|
module$contents$goog$labs$userAgent$browser_preUachHasLoaded = !0;
|
|
@@ -7171,14 +7215,14 @@ module$contents$goog$labs$userAgent$platform_PlatformVersion.prototype.getIfLoad
|
|
|
7171
7215
|
module$contents$goog$labs$userAgent$platform_PlatformVersion.prototype.load = function() {
|
|
7172
7216
|
var $jscomp$async$this$m1628565157$33 = this, JSCompiler_temp_const;
|
|
7173
7217
|
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m1628565157$37) {
|
|
7174
|
-
if ($jscomp$generator$context$m1628565157$37.
|
|
7218
|
+
if ($jscomp$generator$context$m1628565157$37.getNextAddressJsc() == 1) {
|
|
7175
7219
|
if (!module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform(!0)) {
|
|
7176
7220
|
return $jscomp$async$this$m1628565157$33.preUachHasLoaded_ = !0, $jscomp$generator$context$m1628565157$37.return(new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version(module$contents$goog$labs$userAgent$platform_getVersion()));
|
|
7177
7221
|
}
|
|
7178
7222
|
JSCompiler_temp_const = module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version;
|
|
7179
7223
|
return $jscomp$generator$context$m1628565157$37.yield(module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion.load(), 3);
|
|
7180
7224
|
}
|
|
7181
|
-
return $jscomp$generator$context$m1628565157$37.return(new JSCompiler_temp_const($jscomp$generator$context$m1628565157$37.
|
|
7225
|
+
return $jscomp$generator$context$m1628565157$37.return(new JSCompiler_temp_const($jscomp$generator$context$m1628565157$37.getYieldResultJsc()));
|
|
7182
7226
|
});
|
|
7183
7227
|
};
|
|
7184
7228
|
module$contents$goog$labs$userAgent$platform_PlatformVersion.prototype.resetForTesting = function() {
|
|
@@ -7343,16 +7387,17 @@ goog.events.eventTypeHelpers.getPointerFallbackEventName = function(pointerEvent
|
|
|
7343
7387
|
return goog.events.BrowserFeature.POINTER_EVENTS ? pointerEventName : fallbackEventName;
|
|
7344
7388
|
};
|
|
7345
7389
|
goog.events.eventTypeHelpers.getVendorPrefixedName = module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName;
|
|
7346
|
-
goog
|
|
7347
|
-
CHANGE:"change", RESET:"reset", SELECT:"select", SUBMIT:"submit", INPUT:"input", PROPERTYCHANGE:"propertychange", DRAGSTART:"dragstart", DRAG:"drag", DRAGENTER:"dragenter", DRAGOVER:"dragover", DRAGLEAVE:"dragleave", DROP:"drop", DRAGEND:"dragend", TOUCHSTART:"touchstart", TOUCHMOVE:"touchmove", TOUCHEND:"touchend", TOUCHCANCEL:"touchcancel", BEFOREUNLOAD:"beforeunload", CONSOLEMESSAGE:"consolemessage", CONTEXTMENU:"contextmenu", DEVICECHANGE:"devicechange",
|
|
7348
|
-
DOMCONTENTLOADED:"DOMContentLoaded", ERROR:"error", HELP:"help", LOAD:"load", LOSECAPTURE:"losecapture", ORIENTATIONCHANGE:"orientationchange", READYSTATECHANGE:"readystatechange", RESIZE:"resize", SCROLL:"scroll", UNLOAD:"unload", CANPLAY:"canplay", CANPLAYTHROUGH:"canplaythrough", DURATIONCHANGE:"durationchange", EMPTIED:"emptied", ENDED:"ended", LOADEDDATA:"loadeddata", LOADEDMETADATA:"loadedmetadata", PAUSE:"pause", PLAY:"play",
|
|
7349
|
-
SEEKED:"seeked", SEEKING:"seeking", STALLED:"stalled", SUSPEND:"suspend", TIMEUPDATE:"timeupdate", VOLUMECHANGE:"volumechange", WAITING:"waiting", SOURCEOPEN:"sourceopen", SOURCEENDED:"sourceended", SOURCECLOSED:"sourceclosed", ABORT:"abort", UPDATE:"update", UPDATESTART:"updatestart", UPDATEEND:"updateend", HASHCHANGE:"hashchange", PAGEHIDE:"pagehide", PAGESHOW:"pageshow", POPSTATE:"popstate", COPY:"copy", PASTE:"paste", CUT:"cut",
|
|
7350
|
-
ONLINE:"online", OFFLINE:"offline", MESSAGE:"message", CONNECT:"connect", INSTALL:"install", ACTIVATE:"activate", FETCH:"fetch", FOREIGNFETCH:"foreignfetch", MESSAGEERROR:"messageerror", STATECHANGE:"statechange", UPDATEFOUND:"updatefound", CONTROLLERCHANGE:"controllerchange", ANIMATIONSTART:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName("AnimationStart"), ANIMATIONEND:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName("AnimationEnd"),
|
|
7351
|
-
TRANSITIONEND:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName("TransitionEnd"), POINTERDOWN:"pointerdown", POINTERUP:"pointerup", POINTERCANCEL:"pointercancel", POINTERMOVE:"pointermove", POINTEROVER:"pointerover", POINTEROUT:"pointerout", POINTERENTER:"pointerenter", POINTERLEAVE:"pointerleave", GOTPOINTERCAPTURE:"gotpointercapture", LOSTPOINTERCAPTURE:"lostpointercapture",
|
|
7352
|
-
MSGESTURETAP:"MSGestureTap", MSGOTPOINTERCAPTURE:"MSGotPointerCapture", MSINERTIASTART:"MSInertiaStart", MSLOSTPOINTERCAPTURE:"MSLostPointerCapture", MSPOINTERCANCEL:"MSPointerCancel", MSPOINTERDOWN:"MSPointerDown", MSPOINTERENTER:"MSPointerEnter", MSPOINTERHOVER:"MSPointerHover", MSPOINTERLEAVE:"MSPointerLeave", MSPOINTERMOVE:"MSPointerMove", MSPOINTEROUT:"MSPointerOut",
|
|
7353
|
-
COMPOSITIONUPDATE:"compositionupdate", COMPOSITIONEND:"compositionend", BEFOREINPUT:"beforeinput", FULLSCREENCHANGE:"fullscreenchange", WEBKITBEGINFULLSCREEN:"webkitbeginfullscreen", WEBKITENDFULLSCREEN:"webkitendfullscreen", EXIT:"exit", LOADABORT:"loadabort", LOADCOMMIT:"loadcommit", LOADREDIRECT:"loadredirect", LOADSTART:"loadstart", LOADSTOP:"loadstop", RESPONSIVE:"responsive",
|
|
7354
|
-
AFTERPRINT:"afterprint", BEFOREINSTALLPROMPT:"beforeinstallprompt", APPINSTALLED:"appinstalled", CANCEL:"cancel", FINISH:"finish", REMOVE:"remove"};
|
|
7355
|
-
goog.events.
|
|
7390
|
+
var module$contents$goog$events$EventType_EventType = {CLICK:"click", RIGHTCLICK:"rightclick", DBLCLICK:"dblclick", AUXCLICK:"auxclick", MOUSEDOWN:"mousedown", MOUSEUP:"mouseup", MOUSEOVER:"mouseover", MOUSEOUT:"mouseout", MOUSEMOVE:"mousemove", MOUSEENTER:"mouseenter", MOUSELEAVE:"mouseleave", MOUSECANCEL:"mousecancel", SELECTIONCHANGE:"selectionchange", SELECTSTART:"selectstart", WHEEL:"wheel", KEYPRESS:"keypress", KEYDOWN:"keydown", KEYUP:"keyup", BLUR:"blur", FOCUS:"focus", DEACTIVATE:"deactivate",
|
|
7391
|
+
FOCUSIN:"focusin", FOCUSOUT:"focusout", CHANGE:"change", RESET:"reset", SELECT:"select", SUBMIT:"submit", INPUT:"input", PROPERTYCHANGE:"propertychange", DRAGSTART:"dragstart", DRAG:"drag", DRAGENTER:"dragenter", DRAGOVER:"dragover", DRAGLEAVE:"dragleave", DROP:"drop", DRAGEND:"dragend", TOUCHSTART:"touchstart", TOUCHMOVE:"touchmove", TOUCHEND:"touchend", TOUCHCANCEL:"touchcancel", BEFOREUNLOAD:"beforeunload", CONSOLEMESSAGE:"consolemessage", CONTEXTMENU:"contextmenu", DEVICECHANGE:"devicechange",
|
|
7392
|
+
DEVICEMOTION:"devicemotion", DEVICEORIENTATION:"deviceorientation", DOMCONTENTLOADED:"DOMContentLoaded", ERROR:"error", HELP:"help", LOAD:"load", LOSECAPTURE:"losecapture", ORIENTATIONCHANGE:"orientationchange", READYSTATECHANGE:"readystatechange", RESIZE:"resize", SCROLL:"scroll", UNLOAD:"unload", CANPLAY:"canplay", CANPLAYTHROUGH:"canplaythrough", DURATIONCHANGE:"durationchange", EMPTIED:"emptied", ENDED:"ended", LOADEDDATA:"loadeddata", LOADEDMETADATA:"loadedmetadata", PAUSE:"pause", PLAY:"play",
|
|
7393
|
+
PLAYING:"playing", PROGRESS:"progress", RATECHANGE:"ratechange", SEEKED:"seeked", SEEKING:"seeking", STALLED:"stalled", SUSPEND:"suspend", TIMEUPDATE:"timeupdate", VOLUMECHANGE:"volumechange", WAITING:"waiting", SOURCEOPEN:"sourceopen", SOURCEENDED:"sourceended", SOURCECLOSED:"sourceclosed", ABORT:"abort", UPDATE:"update", UPDATESTART:"updatestart", UPDATEEND:"updateend", HASHCHANGE:"hashchange", PAGEHIDE:"pagehide", PAGESHOW:"pageshow", POPSTATE:"popstate", COPY:"copy", PASTE:"paste", CUT:"cut",
|
|
7394
|
+
BEFORECOPY:"beforecopy", BEFORECUT:"beforecut", BEFOREPASTE:"beforepaste", ONLINE:"online", OFFLINE:"offline", MESSAGE:"message", CONNECT:"connect", INSTALL:"install", ACTIVATE:"activate", FETCH:"fetch", FOREIGNFETCH:"foreignfetch", MESSAGEERROR:"messageerror", STATECHANGE:"statechange", UPDATEFOUND:"updatefound", CONTROLLERCHANGE:"controllerchange", ANIMATIONSTART:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName("AnimationStart"), ANIMATIONEND:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName("AnimationEnd"),
|
|
7395
|
+
ANIMATIONITERATION:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName("AnimationIteration"), TRANSITIONEND:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName("TransitionEnd"), POINTERDOWN:"pointerdown", POINTERUP:"pointerup", POINTERCANCEL:"pointercancel", POINTERMOVE:"pointermove", POINTEROVER:"pointerover", POINTEROUT:"pointerout", POINTERENTER:"pointerenter", POINTERLEAVE:"pointerleave", GOTPOINTERCAPTURE:"gotpointercapture", LOSTPOINTERCAPTURE:"lostpointercapture",
|
|
7396
|
+
MSGESTURECHANGE:"MSGestureChange", MSGESTUREEND:"MSGestureEnd", MSGESTUREHOLD:"MSGestureHold", MSGESTURESTART:"MSGestureStart", MSGESTURETAP:"MSGestureTap", MSGOTPOINTERCAPTURE:"MSGotPointerCapture", MSINERTIASTART:"MSInertiaStart", MSLOSTPOINTERCAPTURE:"MSLostPointerCapture", MSPOINTERCANCEL:"MSPointerCancel", MSPOINTERDOWN:"MSPointerDown", MSPOINTERENTER:"MSPointerEnter", MSPOINTERHOVER:"MSPointerHover", MSPOINTERLEAVE:"MSPointerLeave", MSPOINTERMOVE:"MSPointerMove", MSPOINTEROUT:"MSPointerOut",
|
|
7397
|
+
MSPOINTEROVER:"MSPointerOver", MSPOINTERUP:"MSPointerUp", TEXT:"text", TEXTINPUT:"textInput", COMPOSITIONSTART:"compositionstart", COMPOSITIONUPDATE:"compositionupdate", COMPOSITIONEND:"compositionend", BEFOREINPUT:"beforeinput", FULLSCREENCHANGE:"fullscreenchange", WEBKITBEGINFULLSCREEN:"webkitbeginfullscreen", WEBKITENDFULLSCREEN:"webkitendfullscreen", EXIT:"exit", LOADABORT:"loadabort", LOADCOMMIT:"loadcommit", LOADREDIRECT:"loadredirect", LOADSTART:"loadstart", LOADSTOP:"loadstop", RESPONSIVE:"responsive",
|
|
7398
|
+
SIZECHANGED:"sizechanged", UNRESPONSIVE:"unresponsive", VISIBILITYCHANGE:"visibilitychange", STORAGE:"storage", BEFOREPRINT:"beforeprint", AFTERPRINT:"afterprint", BEFOREINSTALLPROMPT:"beforeinstallprompt", APPINSTALLED:"appinstalled", CANCEL:"cancel", FINISH:"finish", REMOVE:"remove"};
|
|
7399
|
+
goog.events.EventType = module$contents$goog$events$EventType_EventType;
|
|
7400
|
+
function module$contents$goog$events$BrowserEvent_BrowserEvent(opt_e, opt_currentTarget) {
|
|
7356
7401
|
goog.events.Event.call(this, opt_e ? opt_e.type : "");
|
|
7357
7402
|
this.relatedTarget = this.currentTarget = this.target = null;
|
|
7358
7403
|
this.button = this.screenY = this.screenX = this.clientY = this.clientX = this.offsetY = this.offsetX = 0;
|
|
@@ -7366,20 +7411,20 @@ goog.events.BrowserEvent = function(opt_e, opt_currentTarget) {
|
|
|
7366
7411
|
this.timeStamp = 0;
|
|
7367
7412
|
this.event_ = null;
|
|
7368
7413
|
opt_e && this.init(opt_e, opt_currentTarget);
|
|
7369
|
-
}
|
|
7370
|
-
goog.inherits(goog
|
|
7371
|
-
goog
|
|
7372
|
-
goog
|
|
7373
|
-
goog
|
|
7374
|
-
goog
|
|
7414
|
+
}
|
|
7415
|
+
goog.inherits(module$contents$goog$events$BrowserEvent_BrowserEvent, goog.events.Event);
|
|
7416
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.USE_LAYER_XY_AS_OFFSET_XY = !1;
|
|
7417
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.MouseButton = {LEFT:0, MIDDLE:1, RIGHT:2, BACK:3, FORWARD:4};
|
|
7418
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.PointerType = {MOUSE:"mouse", PEN:"pen", TOUCH:"touch"};
|
|
7419
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.prototype.init = function(e, opt_currentTarget) {
|
|
7375
7420
|
var type = this.type = e.type, relevantTouch = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : null;
|
|
7376
7421
|
this.target = e.target || e.srcElement;
|
|
7377
7422
|
this.currentTarget = opt_currentTarget;
|
|
7378
7423
|
var relatedTarget = e.relatedTarget;
|
|
7379
|
-
relatedTarget || (type == goog
|
|
7424
|
+
relatedTarget || (type == module$contents$goog$events$EventType_EventType.MOUSEOVER ? relatedTarget = e.fromElement : type == module$contents$goog$events$EventType_EventType.MOUSEOUT && (relatedTarget = e.toElement));
|
|
7380
7425
|
this.relatedTarget = relatedTarget;
|
|
7381
|
-
relevantTouch ? (this.clientX = relevantTouch.clientX !== void 0 ? relevantTouch.clientX : relevantTouch.pageX, this.clientY = relevantTouch.clientY !== void 0 ? relevantTouch.clientY : relevantTouch.pageY, this.screenX = relevantTouch.screenX || 0, this.screenY = relevantTouch.screenY || 0) : (goog
|
|
7382
|
-
e.offsetX !== void 0 ? e.offsetX : e.layerX, this.offsetY = goog.userAgent.WEBKIT || e.offsetY !== void 0 ? e.offsetY : e.layerY), this.clientX = e.clientX !== void 0 ? e.clientX : e.pageX, this.clientY = e.clientY !== void 0 ? e.clientY : e.pageY, this.screenX = e.screenX || 0, this.screenY = e.screenY || 0);
|
|
7426
|
+
relevantTouch ? (this.clientX = relevantTouch.clientX !== void 0 ? relevantTouch.clientX : relevantTouch.pageX, this.clientY = relevantTouch.clientY !== void 0 ? relevantTouch.clientY : relevantTouch.pageY, this.screenX = relevantTouch.screenX || 0, this.screenY = relevantTouch.screenY || 0) : (module$contents$goog$events$BrowserEvent_BrowserEvent.USE_LAYER_XY_AS_OFFSET_XY ? (this.offsetX = e.layerX !== void 0 ? e.layerX : e.offsetX, this.offsetY = e.layerY !== void 0 ? e.layerY : e.offsetY) :
|
|
7427
|
+
(this.offsetX = goog.userAgent.WEBKIT || e.offsetX !== void 0 ? e.offsetX : e.layerX, this.offsetY = goog.userAgent.WEBKIT || e.offsetY !== void 0 ? e.offsetY : e.layerY), this.clientX = e.clientX !== void 0 ? e.clientX : e.pageX, this.clientY = e.clientY !== void 0 ? e.clientY : e.pageY, this.screenX = e.screenX || 0, this.screenY = e.screenY || 0);
|
|
7383
7428
|
this.button = e.button;
|
|
7384
7429
|
this.keyCode = e.keyCode || 0;
|
|
7385
7430
|
this.key = e.key || "";
|
|
@@ -7390,33 +7435,34 @@ goog.events.BrowserEvent.prototype.init = function(e, opt_currentTarget) {
|
|
|
7390
7435
|
this.metaKey = e.metaKey;
|
|
7391
7436
|
this.platformModifierKey = goog.userAgent.MAC ? e.metaKey : e.ctrlKey;
|
|
7392
7437
|
this.pointerId = e.pointerId || 0;
|
|
7393
|
-
this.pointerType = goog
|
|
7438
|
+
this.pointerType = module$contents$goog$events$BrowserEvent_BrowserEvent.getPointerType_(e);
|
|
7394
7439
|
this.state = e.state;
|
|
7395
7440
|
this.timeStamp = e.timeStamp;
|
|
7396
7441
|
this.event_ = e;
|
|
7397
|
-
e.defaultPrevented && goog
|
|
7442
|
+
e.defaultPrevented && module$contents$goog$events$BrowserEvent_BrowserEvent.superClass_.preventDefault.call(this);
|
|
7398
7443
|
};
|
|
7399
|
-
goog
|
|
7444
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.prototype.isButton = function(button) {
|
|
7400
7445
|
return this.event_.button == button;
|
|
7401
7446
|
};
|
|
7402
|
-
goog
|
|
7403
|
-
return this.isButton(goog
|
|
7447
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.prototype.isMouseActionButton = function() {
|
|
7448
|
+
return this.isButton(module$contents$goog$events$BrowserEvent_BrowserEvent.MouseButton.LEFT) && !(goog.userAgent.MAC && this.ctrlKey);
|
|
7404
7449
|
};
|
|
7405
|
-
goog
|
|
7406
|
-
goog
|
|
7450
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.prototype.stopPropagation = function() {
|
|
7451
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.superClass_.stopPropagation.call(this);
|
|
7407
7452
|
this.event_.stopPropagation ? this.event_.stopPropagation() : this.event_.cancelBubble = !0;
|
|
7408
7453
|
};
|
|
7409
|
-
goog
|
|
7410
|
-
goog
|
|
7454
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.prototype.preventDefault = function() {
|
|
7455
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.superClass_.preventDefault.call(this);
|
|
7411
7456
|
var be = this.event_;
|
|
7412
7457
|
be.preventDefault ? be.preventDefault() : be.returnValue = !1;
|
|
7413
7458
|
};
|
|
7414
|
-
goog
|
|
7459
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.prototype.getBrowserEvent = function() {
|
|
7415
7460
|
return this.event_;
|
|
7416
7461
|
};
|
|
7417
|
-
goog
|
|
7462
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.getPointerType_ = function(e) {
|
|
7418
7463
|
return e.pointerType;
|
|
7419
7464
|
};
|
|
7465
|
+
goog.events.BrowserEvent = module$contents$goog$events$BrowserEvent_BrowserEvent;
|
|
7420
7466
|
goog.events.Listenable = function() {
|
|
7421
7467
|
};
|
|
7422
7468
|
goog.events.Listenable.IMPLEMENTED_BY_PROP = "closure_listenable_" + (Math.random() * 1E6 | 0);
|
|
@@ -7766,7 +7812,7 @@ goog.events.protectBrowserEventEntryPoint = function(errorHandler) {
|
|
|
7766
7812
|
goog.events.handleBrowserEvent_ = errorHandler.protectEntryPoint(goog.events.handleBrowserEvent_);
|
|
7767
7813
|
};
|
|
7768
7814
|
goog.events.handleBrowserEvent_ = function(listener, opt_evt) {
|
|
7769
|
-
return listener.removed ? !0 : goog.events.fireListener(listener, new goog
|
|
7815
|
+
return listener.removed ? !0 : goog.events.fireListener(listener, new module$contents$goog$events$BrowserEvent_BrowserEvent(opt_evt, this));
|
|
7770
7816
|
};
|
|
7771
7817
|
goog.events.markIeEvent_ = function(e) {
|
|
7772
7818
|
var useReturnValue = !1;
|
|
@@ -15498,51 +15544,51 @@ goog.Promise.Resolver_ = function(promise, resolve, reject) {
|
|
|
15498
15544
|
this.resolve = resolve;
|
|
15499
15545
|
this.reject = reject;
|
|
15500
15546
|
};
|
|
15501
|
-
goog
|
|
15547
|
+
function module$contents$goog$Timer_Timer(opt_interval, opt_timerObject) {
|
|
15502
15548
|
goog.events.EventTarget.call(this);
|
|
15503
15549
|
this.interval_ = opt_interval || 1;
|
|
15504
|
-
this.timerObject_ = opt_timerObject || goog.
|
|
15550
|
+
this.timerObject_ = opt_timerObject || module$contents$goog$Timer_Timer.defaultTimerObject;
|
|
15505
15551
|
this.boundTick_ = goog.bind(this.tick_, this);
|
|
15506
15552
|
this.last_ = goog.now();
|
|
15507
|
-
}
|
|
15508
|
-
goog.inherits(goog
|
|
15509
|
-
goog.
|
|
15510
|
-
goog.
|
|
15511
|
-
goog.
|
|
15512
|
-
goog.
|
|
15513
|
-
goog.
|
|
15514
|
-
goog.
|
|
15515
|
-
goog.
|
|
15553
|
+
}
|
|
15554
|
+
goog.inherits(module$contents$goog$Timer_Timer, goog.events.EventTarget);
|
|
15555
|
+
module$contents$goog$Timer_Timer.MAX_TIMEOUT_ = 2147483647;
|
|
15556
|
+
module$contents$goog$Timer_Timer.INVALID_TIMEOUT_ID_ = -1;
|
|
15557
|
+
module$contents$goog$Timer_Timer.prototype.enabled = !1;
|
|
15558
|
+
module$contents$goog$Timer_Timer.defaultTimerObject = goog.global;
|
|
15559
|
+
module$contents$goog$Timer_Timer.intervalScale = .8;
|
|
15560
|
+
module$contents$goog$Timer_Timer.prototype.timer_ = null;
|
|
15561
|
+
module$contents$goog$Timer_Timer.prototype.getInterval = function() {
|
|
15516
15562
|
return this.interval_;
|
|
15517
15563
|
};
|
|
15518
|
-
goog.
|
|
15564
|
+
module$contents$goog$Timer_Timer.prototype.setInterval = function(interval) {
|
|
15519
15565
|
this.interval_ = interval;
|
|
15520
15566
|
this.timer_ && this.enabled ? (this.stop(), this.start()) : this.timer_ && this.stop();
|
|
15521
15567
|
};
|
|
15522
|
-
goog.
|
|
15568
|
+
module$contents$goog$Timer_Timer.prototype.tick_ = function() {
|
|
15523
15569
|
if (this.enabled) {
|
|
15524
15570
|
var elapsed = goog.now() - this.last_;
|
|
15525
|
-
elapsed > 0 && elapsed < this.interval_ * goog.
|
|
15571
|
+
elapsed > 0 && elapsed < this.interval_ * module$contents$goog$Timer_Timer.intervalScale ? this.timer_ = this.timerObject_.setTimeout(this.boundTick_, this.interval_ - elapsed) : (this.timer_ && (this.timerObject_.clearTimeout(this.timer_), this.timer_ = null), this.dispatchTick(), this.enabled && (this.stop(), this.start()));
|
|
15526
15572
|
}
|
|
15527
15573
|
};
|
|
15528
|
-
goog.
|
|
15529
|
-
this.dispatchEvent(goog.
|
|
15574
|
+
module$contents$goog$Timer_Timer.prototype.dispatchTick = function() {
|
|
15575
|
+
this.dispatchEvent(module$contents$goog$Timer_Timer.TICK);
|
|
15530
15576
|
};
|
|
15531
|
-
goog.
|
|
15577
|
+
module$contents$goog$Timer_Timer.prototype.start = function() {
|
|
15532
15578
|
this.enabled = !0;
|
|
15533
15579
|
this.timer_ || (this.timer_ = this.timerObject_.setTimeout(this.boundTick_, this.interval_), this.last_ = goog.now());
|
|
15534
15580
|
};
|
|
15535
|
-
goog.
|
|
15581
|
+
module$contents$goog$Timer_Timer.prototype.stop = function() {
|
|
15536
15582
|
this.enabled = !1;
|
|
15537
15583
|
this.timer_ && (this.timerObject_.clearTimeout(this.timer_), this.timer_ = null);
|
|
15538
15584
|
};
|
|
15539
|
-
goog.
|
|
15540
|
-
goog.
|
|
15585
|
+
module$contents$goog$Timer_Timer.prototype.disposeInternal = function() {
|
|
15586
|
+
module$contents$goog$Timer_Timer.superClass_.disposeInternal.call(this);
|
|
15541
15587
|
this.stop();
|
|
15542
15588
|
delete this.timerObject_;
|
|
15543
15589
|
};
|
|
15544
|
-
goog.
|
|
15545
|
-
goog.
|
|
15590
|
+
module$contents$goog$Timer_Timer.TICK = "tick";
|
|
15591
|
+
module$contents$goog$Timer_Timer.callOnce = function(listener, opt_delay, opt_handler) {
|
|
15546
15592
|
if (typeof listener === "function") {
|
|
15547
15593
|
opt_handler && (listener = goog.bind(listener, opt_handler));
|
|
15548
15594
|
} else if (listener && typeof listener.handleEvent == "function") {
|
|
@@ -15550,23 +15596,24 @@ goog.Timer.callOnce = function(listener, opt_delay, opt_handler) {
|
|
|
15550
15596
|
} else {
|
|
15551
15597
|
throw Error("Invalid listener argument");
|
|
15552
15598
|
}
|
|
15553
|
-
return Number(opt_delay) > goog.
|
|
15599
|
+
return Number(opt_delay) > module$contents$goog$Timer_Timer.MAX_TIMEOUT_ ? module$contents$goog$Timer_Timer.INVALID_TIMEOUT_ID_ : module$contents$goog$Timer_Timer.defaultTimerObject.setTimeout(listener, opt_delay || 0);
|
|
15554
15600
|
};
|
|
15555
|
-
goog.
|
|
15556
|
-
goog.
|
|
15601
|
+
module$contents$goog$Timer_Timer.clear = function(timerId) {
|
|
15602
|
+
module$contents$goog$Timer_Timer.defaultTimerObject.clearTimeout(timerId);
|
|
15557
15603
|
};
|
|
15558
|
-
goog.
|
|
15604
|
+
module$contents$goog$Timer_Timer.promise = function(delay, opt_result) {
|
|
15559
15605
|
var timerKey = null;
|
|
15560
15606
|
return (new goog.Promise(function(resolve, reject) {
|
|
15561
|
-
timerKey = goog.
|
|
15607
|
+
timerKey = module$contents$goog$Timer_Timer.callOnce(function() {
|
|
15562
15608
|
resolve(opt_result);
|
|
15563
15609
|
}, delay);
|
|
15564
|
-
timerKey == goog.
|
|
15610
|
+
timerKey == module$contents$goog$Timer_Timer.INVALID_TIMEOUT_ID_ && reject(Error("Failed to schedule timer."));
|
|
15565
15611
|
})).thenCatch(function(error) {
|
|
15566
|
-
goog.
|
|
15612
|
+
module$contents$goog$Timer_Timer.clear(timerKey);
|
|
15567
15613
|
throw error;
|
|
15568
15614
|
});
|
|
15569
15615
|
};
|
|
15616
|
+
goog.Timer = module$contents$goog$Timer_Timer;
|
|
15570
15617
|
var module$contents$goog$async$Throttle_Throttle = function(listener, interval, handler) {
|
|
15571
15618
|
goog.Disposable.call(this);
|
|
15572
15619
|
this.listener_ = handler != null ? listener.bind(handler) : listener;
|
|
@@ -15582,7 +15629,7 @@ module$contents$goog$async$Throttle_Throttle.prototype.fire = function(var_args)
|
|
|
15582
15629
|
this.timer_ || this.pauseCount_ ? this.shouldFire_ = !0 : this.doAction_();
|
|
15583
15630
|
};
|
|
15584
15631
|
module$contents$goog$async$Throttle_Throttle.prototype.stop = function() {
|
|
15585
|
-
this.timer_ && (goog.
|
|
15632
|
+
this.timer_ && (module$contents$goog$Timer_Timer.clear(this.timer_), this.timer_ = null, this.shouldFire_ = !1, this.args_ = null);
|
|
15586
15633
|
};
|
|
15587
15634
|
module$contents$goog$async$Throttle_Throttle.prototype.pause = function() {
|
|
15588
15635
|
this.pauseCount_++;
|
|
@@ -15601,7 +15648,7 @@ module$contents$goog$async$Throttle_Throttle.prototype.onTimer_ = function() {
|
|
|
15601
15648
|
};
|
|
15602
15649
|
module$contents$goog$async$Throttle_Throttle.prototype.doAction_ = function() {
|
|
15603
15650
|
var $jscomp$this$m92829211$8 = this;
|
|
15604
|
-
this.timer_ = goog.
|
|
15651
|
+
this.timer_ = module$contents$goog$Timer_Timer.callOnce(function() {
|
|
15605
15652
|
return $jscomp$this$m92829211$8.onTimer_();
|
|
15606
15653
|
}, this.interval_);
|
|
15607
15654
|
var args = this.args_;
|
|
@@ -16324,8 +16371,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
|
16324
16371
|
this.replacements = new Map();
|
|
16325
16372
|
};
|
|
16326
16373
|
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
16327
|
-
var $jscomp$this$
|
|
16328
|
-
return $jscomp$this$
|
|
16374
|
+
var $jscomp$this$1018007701$5 = this, openedTags = [], marker = (0,module$exports$safevalues$builders$html_builders.htmlEscape)("_safevalues_format_marker_:").toString(), html = (0,module$exports$safevalues$builders$html_builders.htmlEscape)(format).toString().replace(new RegExp("\\{" + marker + "[\\w&#;]+\\}", "g"), function(match) {
|
|
16375
|
+
return $jscomp$this$1018007701$5.replaceFormattingString(openedTags, match);
|
|
16329
16376
|
});
|
|
16330
16377
|
if (openedTags.length !== 0) {
|
|
16331
16378
|
if (goog.DEBUG) {
|
|
@@ -16543,8 +16590,8 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16543
16590
|
if (Array.isArray(token)) {
|
|
16544
16591
|
tokens.push.apply(tokens, (0,$jscomp.arrayFromIterable)(token));
|
|
16545
16592
|
} else {
|
|
16546
|
-
var $jscomp$optchain$
|
|
16547
|
-
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$
|
|
16593
|
+
var $jscomp$optchain$tmpm282935782$0 = void 0;
|
|
16594
|
+
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$tmpm282935782$0 = lastToken) == null ? void 0 : $jscomp$optchain$tmpm282935782$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE) {
|
|
16548
16595
|
tokens.push(token);
|
|
16549
16596
|
if (token.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF) {
|
|
16550
16597
|
return tokens;
|
|
@@ -16790,9 +16837,9 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16790
16837
|
repr:repr}) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER, repr:repr};
|
|
16791
16838
|
};
|
|
16792
16839
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputsPointsAreWhitespace = function() {
|
|
16793
|
-
var $jscomp$this$
|
|
16840
|
+
var $jscomp$this$m282935782$26 = this;
|
|
16794
16841
|
return this.nextTwoInputCodePoints().every(function(c) {
|
|
16795
|
-
return $jscomp$this$
|
|
16842
|
+
return $jscomp$this$m282935782$26.isWhitespace(c);
|
|
16796
16843
|
});
|
|
16797
16844
|
};
|
|
16798
16845
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.twoCodePointsAreValidEscape = function(codePoint1, codePoint2) {
|
|
@@ -16899,8 +16946,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16899
16946
|
return null;
|
|
16900
16947
|
}
|
|
16901
16948
|
if (token.lowercaseName === "url") {
|
|
16902
|
-
var nextToken = tokens[i + 1], $jscomp$optchain$
|
|
16903
|
-
if ((($jscomp$optchain$
|
|
16949
|
+
var nextToken = tokens[i + 1], $jscomp$optchain$tmpm1577590584$0 = void 0;
|
|
16950
|
+
if ((($jscomp$optchain$tmpm1577590584$0 = nextToken) == null ? void 0 : $jscomp$optchain$tmpm1577590584$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING) {
|
|
16904
16951
|
return null;
|
|
16905
16952
|
}
|
|
16906
16953
|
var parsedUrl = module$contents$safevalues$builders$html_sanitizer$url_policy_parseUrl(nextToken.value);
|
|
@@ -16923,8 +16970,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16923
16970
|
if (!this.allowKeyframes) {
|
|
16924
16971
|
return null;
|
|
16925
16972
|
}
|
|
16926
|
-
for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$
|
|
16927
|
-
var rule = $jscomp$key$
|
|
16973
|
+
for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$m1577590584$1$rule = $jscomp$iter$31.next(); !$jscomp$key$m1577590584$1$rule.done; $jscomp$key$m1577590584$1$rule = $jscomp$iter$31.next()) {
|
|
16974
|
+
var rule = $jscomp$key$m1577590584$1$rule.value;
|
|
16928
16975
|
if (rule instanceof CSSKeyframeRule) {
|
|
16929
16976
|
var sanitizedRule = this.sanitizeKeyframeRule(rule);
|
|
16930
16977
|
sanitizedRule && keyframeRules.push(sanitizedRule);
|
|
@@ -16936,8 +16983,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16936
16983
|
if (!this.propertyAllowlist.has(name)) {
|
|
16937
16984
|
return !1;
|
|
16938
16985
|
}
|
|
16939
|
-
for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$
|
|
16940
|
-
var discarder = $jscomp$key$
|
|
16986
|
+
for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$m1577590584$2$discarder = $jscomp$iter$32.next(); !$jscomp$key$m1577590584$2$discarder.done; $jscomp$key$m1577590584$2$discarder = $jscomp$iter$32.next()) {
|
|
16987
|
+
var discarder = $jscomp$key$m1577590584$2$discarder.value;
|
|
16941
16988
|
if (discarder(name)) {
|
|
16942
16989
|
return !1;
|
|
16943
16990
|
}
|
|
@@ -16952,8 +16999,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16952
16999
|
return sanitizedValue ? module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(name) + ": " + sanitizedValue + (isImportant ? " !important" : "") : null;
|
|
16953
17000
|
};
|
|
16954
17001
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleDeclaration = function(style, calledFromStyleElement) {
|
|
16955
|
-
for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$33 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$
|
|
16956
|
-
var name = $jscomp$key$
|
|
17002
|
+
for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$33 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$m1577590584$3$name = $jscomp$iter$33.next(); !$jscomp$key$m1577590584$3$name.done; $jscomp$key$m1577590584$3$name = $jscomp$iter$33.next()) {
|
|
17003
|
+
var name = $jscomp$key$m1577590584$3$name.value, value = style.getPropertyValue(name), isImportant = style.getPropertyPriority(name) === "important", sanitizedProperty = this.sanitizeProperty(name, value, isImportant, calledFromStyleElement);
|
|
16957
17004
|
sanitizedProperty && (sanitizedProperties += sanitizedProperty + ";");
|
|
16958
17005
|
}
|
|
16959
17006
|
return sanitizedProperties;
|
|
@@ -16967,8 +17014,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16967
17014
|
return selector + " { " + sanitizedProperties + " }";
|
|
16968
17015
|
};
|
|
16969
17016
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleElement = function(cssText) {
|
|
16970
|
-
for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(rules), $jscomp$key$
|
|
16971
|
-
var rule = $jscomp$key$
|
|
17017
|
+
for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(rules), $jscomp$key$m1577590584$4$rule = $jscomp$iter$34.next(); !$jscomp$key$m1577590584$4$rule.done; $jscomp$key$m1577590584$4$rule = $jscomp$iter$34.next()) {
|
|
17018
|
+
var rule = $jscomp$key$m1577590584$4$rule.value;
|
|
16972
17019
|
if (rule instanceof CSSStyleRule) {
|
|
16973
17020
|
var sanitizedRule = this.sanitizeStyleRule(rule);
|
|
16974
17021
|
sanitizedRule && output.push(sanitizedRule);
|
|
@@ -17132,8 +17179,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
17132
17179
|
return fragment;
|
|
17133
17180
|
};
|
|
17134
17181
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
17135
|
-
for (var $jscomp$this$
|
|
17136
|
-
return $jscomp$this$
|
|
17182
|
+
for (var $jscomp$this$m1085474118$13 = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
|
|
17183
|
+
return $jscomp$this$m1085474118$13.nodeFilter(n);
|
|
17137
17184
|
}), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; currentNode !== null;) {
|
|
17138
17185
|
var sanitizedNode = void 0;
|
|
17139
17186
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
@@ -17168,8 +17215,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
17168
17215
|
return this.createTextNode(textNode.data);
|
|
17169
17216
|
};
|
|
17170
17217
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
17171
|
-
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$36 = (0,$jscomp.makeIterator)(dirtyAttributes), $jscomp$key$
|
|
17172
|
-
var $jscomp$destructuring$var30 = $jscomp$key$
|
|
17218
|
+
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$36 = (0,$jscomp.makeIterator)(dirtyAttributes), $jscomp$key$m1085474118$34$ = $jscomp$iter$36.next(); !$jscomp$key$m1085474118$34$.done; $jscomp$key$m1085474118$34$ = $jscomp$iter$36.next()) {
|
|
17219
|
+
var $jscomp$destructuring$var30 = $jscomp$key$m1085474118$34$.value, name = $jscomp$destructuring$var30.name, value = $jscomp$destructuring$var30.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
|
|
17173
17220
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
17174
17221
|
switch(policy.policyAction) {
|
|
17175
17222
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -17201,9 +17248,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
17201
17248
|
break;
|
|
17202
17249
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:
|
|
17203
17250
|
if (this.resourceUrlPolicy) {
|
|
17204
|
-
for (var hints$jscomp$0 = {type:module$exports$safevalues$builders$html_sanitizer$url_policy.UrlPolicyHintsType.HTML_ATTRIBUTE, attributeName:name, elementName:elementName}, srcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(value), sanitizedSrcset = {parts:[]}, $jscomp$iter$35 = (0,$jscomp.makeIterator)(srcset.parts), $jscomp$key$
|
|
17251
|
+
for (var hints$jscomp$0 = {type:module$exports$safevalues$builders$html_sanitizer$url_policy.UrlPolicyHintsType.HTML_ATTRIBUTE, attributeName:name, elementName:elementName}, srcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(value), sanitizedSrcset = {parts:[]}, $jscomp$iter$35 = (0,$jscomp.makeIterator)(srcset.parts), $jscomp$key$m1085474118$33$part = $jscomp$iter$35.next(); !$jscomp$key$m1085474118$33$part.done; $jscomp$key$m1085474118$33$part =
|
|
17205
17252
|
$jscomp$iter$35.next()) {
|
|
17206
|
-
var part = $jscomp$key$
|
|
17253
|
+
var part = $jscomp$key$m1085474118$33$part.value, url$jscomp$0 = module$contents$safevalues$builders$html_sanitizer$url_policy_parseUrl(part.url), sanitizedUrl$jscomp$0 = this.resourceUrlPolicy(url$jscomp$0, hints$jscomp$0);
|
|
17207
17254
|
sanitizedUrl$jscomp$0 && sanitizedSrcset.parts.push({url:sanitizedUrl$jscomp$0.toString(), descriptor:part.descriptor});
|
|
17208
17255
|
}
|
|
17209
17256
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(sanitizedSrcset));
|
|
@@ -17261,8 +17308,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
17261
17308
|
if (!conditions) {
|
|
17262
17309
|
return !0;
|
|
17263
17310
|
}
|
|
17264
|
-
for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$
|
|
17265
|
-
var $jscomp$destructuring$var32 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17311
|
+
for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$m1085474118$35$ = $jscomp$iter$37.next(); !$jscomp$key$m1085474118$35$.done; $jscomp$key$m1085474118$35$ = $jscomp$iter$37.next()) {
|
|
17312
|
+
var $jscomp$destructuring$var32 = (0,$jscomp.makeIterator)($jscomp$key$m1085474118$35$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var32.next().value, expectedValues = $jscomp$destructuring$var32.next().value, $jscomp$optchain$tmpm1085474118$0 = void 0, value = ($jscomp$optchain$tmpm1085474118$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) == null ? void 0 : $jscomp$optchain$tmpm1085474118$0.value;
|
|
17266
17313
|
if (value && !expectedValues.has(value)) {
|
|
17267
17314
|
return !1;
|
|
17268
17315
|
}
|
|
@@ -17277,8 +17324,8 @@ function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_Srcse
|
|
|
17277
17324
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.Srcset = function() {
|
|
17278
17325
|
};
|
|
17279
17326
|
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(srcset) {
|
|
17280
|
-
for (var parts = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$
|
|
17281
|
-
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17327
|
+
for (var parts = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$m1085474118$36$part = $jscomp$iter$38.next(); !$jscomp$key$m1085474118$36$part.done; $jscomp$key$m1085474118$36$part = $jscomp$iter$38.next()) {
|
|
17328
|
+
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$m1085474118$36$part.value.trim().split(/\s+/, 2)), url__tsickle_destructured_3 = $jscomp$destructuring$var33.next().value, descriptor__tsickle_destructured_4 = $jscomp$destructuring$var33.next().value;
|
|
17282
17329
|
parts.push({url:url__tsickle_destructured_3, descriptor:descriptor__tsickle_destructured_4});
|
|
17283
17330
|
}
|
|
17284
17331
|
return {parts:parts};
|
|
@@ -17335,8 +17382,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17335
17382
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE;
|
|
17336
17383
|
};
|
|
17337
17384
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
|
|
17338
|
-
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$
|
|
17339
|
-
var element = $jscomp$key$
|
|
17385
|
+
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$435282654$23$element = $jscomp$iter$39.next(); !$jscomp$key$435282654$23$element.done; $jscomp$key$435282654$23$element = $jscomp$iter$39.next()) {
|
|
17386
|
+
var element = $jscomp$key$435282654$23$element.value;
|
|
17340
17387
|
element = element.toUpperCase();
|
|
17341
17388
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
17342
17389
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -17354,8 +17401,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17354
17401
|
throw Error("Element: " + element + " is not a custom element");
|
|
17355
17402
|
}
|
|
17356
17403
|
if (allowedAttributes) {
|
|
17357
|
-
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$
|
|
17358
|
-
elementPolicy.set($jscomp$key$
|
|
17404
|
+
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$435282654$24$attribute = $jscomp$iter$40.next(); !$jscomp$key$435282654$24$attribute.done; $jscomp$key$435282654$24$attribute = $jscomp$iter$40.next()) {
|
|
17405
|
+
elementPolicy.set($jscomp$key$435282654$24$attribute.value.toLowerCase(), {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
17359
17406
|
}
|
|
17360
17407
|
allowedElementPolicies.set(element, elementPolicy);
|
|
17361
17408
|
} else {
|
|
@@ -17365,15 +17412,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17365
17412
|
return this;
|
|
17366
17413
|
};
|
|
17367
17414
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
|
|
17368
|
-
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$
|
|
17369
|
-
var attribute = $jscomp$key$
|
|
17415
|
+
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$435282654$25$attribute = $jscomp$iter$41.next(); !$jscomp$key$435282654$25$attribute.done; $jscomp$key$435282654$25$attribute = $jscomp$iter$41.next()) {
|
|
17416
|
+
var attribute = $jscomp$key$435282654$25$attribute.value;
|
|
17370
17417
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
17371
17418
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
17372
17419
|
}
|
|
17373
|
-
for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$
|
|
17374
|
-
for (var $jscomp$destructuring$var36 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17420
|
+
for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$435282654$27$ = $jscomp$iter$43.next(); !$jscomp$key$435282654$27$.done; $jscomp$key$435282654$27$ = $jscomp$iter$43.next()) {
|
|
17421
|
+
for (var $jscomp$destructuring$var36 = (0,$jscomp.makeIterator)($jscomp$key$435282654$27$.value), elementName__tsickle_destructured_1 = $jscomp$destructuring$var36.next().value, originalElementPolicy__tsickle_destructured_2 = $jscomp$destructuring$var36.next().value, elementName = elementName__tsickle_destructured_1, newElementPolicy = new Map(), $jscomp$iter$42 = (0,$jscomp.makeIterator)(originalElementPolicy__tsickle_destructured_2.entries()), $jscomp$key$435282654$26$ = $jscomp$iter$42.next(); !$jscomp$key$435282654$26$.done; $jscomp$key$435282654$26$ =
|
|
17375
17422
|
$jscomp$iter$42.next()) {
|
|
17376
|
-
var $jscomp$destructuring$var38 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17423
|
+
var $jscomp$destructuring$var38 = (0,$jscomp.makeIterator)($jscomp$key$435282654$26$.value), attribute__tsickle_destructured_3 = $jscomp$destructuring$var38.next().value, attributePolicy__tsickle_destructured_4 = $jscomp$destructuring$var38.next().value, attribute$jscomp$0 = attribute__tsickle_destructured_3, attributePolicy = attributePolicy__tsickle_destructured_4;
|
|
17377
17424
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
17378
17425
|
}
|
|
17379
17426
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -17388,8 +17435,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17388
17435
|
this.sanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, this.sanitizerTable.allowedGlobalAttributes, this.sanitizerTable.globalAttributePolicies, globallyAllowedAttributePrefixes);
|
|
17389
17436
|
return this;
|
|
17390
17437
|
}
|
|
17391
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$
|
|
17392
|
-
var attribute = $jscomp$key$
|
|
17438
|
+
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$435282654$28$attribute = $jscomp$iter$44.next(); !$jscomp$key$435282654$28$attribute.done; $jscomp$key$435282654$28$attribute = $jscomp$iter$44.next()) {
|
|
17439
|
+
var attribute = $jscomp$key$435282654$28$attribute.value;
|
|
17393
17440
|
if (attribute.indexOf("data-") !== 0) {
|
|
17394
17441
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
17395
17442
|
}
|
|
@@ -17459,7 +17506,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17459
17506
|
return this;
|
|
17460
17507
|
};
|
|
17461
17508
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.build = function() {
|
|
17462
|
-
var $jscomp$this$
|
|
17509
|
+
var $jscomp$this$435282654$19 = this;
|
|
17463
17510
|
this.extendSanitizerTableForCss();
|
|
17464
17511
|
var propertyDiscarders = [];
|
|
17465
17512
|
this.animationsAllowed || propertyDiscarders.push(function(property) {
|
|
@@ -17469,9 +17516,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17469
17516
|
return /^transition(-|$)/.test(property);
|
|
17470
17517
|
});
|
|
17471
17518
|
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(this.sanitizerTable, module$exports$safevalues$internals$secrets.secretToken, function(cssText) {
|
|
17472
|
-
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$
|
|
17519
|
+
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$435282654$19.resourceUrlPolicy, $jscomp$this$435282654$19.animationsAllowed, propertyDiscarders);
|
|
17473
17520
|
}, function(cssText) {
|
|
17474
|
-
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$
|
|
17521
|
+
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$435282654$19.resourceUrlPolicy, propertyDiscarders);
|
|
17475
17522
|
}, this.resourceUrlPolicy, this.navigationUrlPolicy, this.openShadow);
|
|
17476
17523
|
};
|
|
17477
17524
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.extendSanitizerTableForCss = function() {
|
|
@@ -17691,12 +17738,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
17691
17738
|
}
|
|
17692
17739
|
try {
|
|
17693
17740
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
17694
|
-
} catch ($jscomp$unused$catch$
|
|
17741
|
+
} catch ($jscomp$unused$catch$696273141$0) {
|
|
17695
17742
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
17696
17743
|
}
|
|
17697
17744
|
try {
|
|
17698
17745
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
17699
|
-
} catch ($jscomp$unused$catch$
|
|
17746
|
+
} catch ($jscomp$unused$catch$696273141$1) {
|
|
17700
17747
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
17701
17748
|
}
|
|
17702
17749
|
return !1;
|
|
@@ -19160,24 +19207,25 @@ var module$contents$goog$net$ErrorCode_ErrorCode = {NO_ERROR:0, ACCESS_DENIED:1,
|
|
|
19160
19207
|
}
|
|
19161
19208
|
}};
|
|
19162
19209
|
goog.net.ErrorCode = module$contents$goog$net$ErrorCode_ErrorCode;
|
|
19163
|
-
goog
|
|
19164
|
-
goog.net.
|
|
19165
|
-
|
|
19166
|
-
|
|
19167
|
-
|
|
19210
|
+
var module$contents$goog$net$EventType_EventType = {COMPLETE:"complete", SUCCESS:"success", ERROR:"error", ABORT:"abort", READY:"ready", READY_STATE_CHANGE:"readystatechange", TIMEOUT:"timeout", INCREMENTAL_DATA:"incrementaldata", PROGRESS:"progress", DOWNLOAD_PROGRESS:"downloadprogress", UPLOAD_PROGRESS:"uploadprogress"};
|
|
19211
|
+
goog.net.EventType = module$contents$goog$net$EventType_EventType;
|
|
19212
|
+
var module$contents$goog$net$HttpStatus_HttpStatus = {CONTINUE:100, SWITCHING_PROTOCOLS:101, OK:200, CREATED:201, ACCEPTED:202, NON_AUTHORITATIVE_INFORMATION:203, NO_CONTENT:204, RESET_CONTENT:205, PARTIAL_CONTENT:206, MULTI_STATUS:207, MULTIPLE_CHOICES:300, MOVED_PERMANENTLY:301, FOUND:302, SEE_OTHER:303, NOT_MODIFIED:304, USE_PROXY:305, TEMPORARY_REDIRECT:307, PERMANENT_REDIRECT:308, BAD_REQUEST:400, UNAUTHORIZED:401, PAYMENT_REQUIRED:402, FORBIDDEN:403, NOT_FOUND:404, METHOD_NOT_ALLOWED:405, NOT_ACCEPTABLE:406,
|
|
19213
|
+
PROXY_AUTHENTICATION_REQUIRED:407, REQUEST_TIMEOUT:408, CONFLICT:409, GONE:410, LENGTH_REQUIRED:411, PRECONDITION_FAILED:412, REQUEST_ENTITY_TOO_LARGE:413, REQUEST_URI_TOO_LONG:414, UNSUPPORTED_MEDIA_TYPE:415, REQUEST_RANGE_NOT_SATISFIABLE:416, EXPECTATION_FAILED:417, UNPROCESSABLE_ENTITY:422, LOCKED:423, FAILED_DEPENDENCY:424, PRECONDITION_REQUIRED:428, TOO_MANY_REQUESTS:429, REQUEST_HEADER_FIELDS_TOO_LARGE:431, CLIENT_CLOSED_REQUEST:499, INTERNAL_SERVER_ERROR:500, NOT_IMPLEMENTED:501, BAD_GATEWAY:502,
|
|
19214
|
+
SERVICE_UNAVAILABLE:503, GATEWAY_TIMEOUT:504, HTTP_VERSION_NOT_SUPPORTED:505, INSUFFICIENT_STORAGE:507, NETWORK_AUTHENTICATION_REQUIRED:511, QUIRK_IE_NO_CONTENT:1223, isSuccess:function(status) {
|
|
19168
19215
|
switch(status) {
|
|
19169
|
-
case goog
|
|
19170
|
-
case goog
|
|
19171
|
-
case goog
|
|
19172
|
-
case goog
|
|
19173
|
-
case goog
|
|
19174
|
-
case goog
|
|
19175
|
-
case goog
|
|
19216
|
+
case module$contents$goog$net$HttpStatus_HttpStatus.OK:
|
|
19217
|
+
case module$contents$goog$net$HttpStatus_HttpStatus.CREATED:
|
|
19218
|
+
case module$contents$goog$net$HttpStatus_HttpStatus.ACCEPTED:
|
|
19219
|
+
case module$contents$goog$net$HttpStatus_HttpStatus.NO_CONTENT:
|
|
19220
|
+
case module$contents$goog$net$HttpStatus_HttpStatus.PARTIAL_CONTENT:
|
|
19221
|
+
case module$contents$goog$net$HttpStatus_HttpStatus.NOT_MODIFIED:
|
|
19222
|
+
case module$contents$goog$net$HttpStatus_HttpStatus.QUIRK_IE_NO_CONTENT:
|
|
19176
19223
|
return !0;
|
|
19177
19224
|
default:
|
|
19178
19225
|
return !1;
|
|
19179
19226
|
}
|
|
19180
|
-
};
|
|
19227
|
+
}};
|
|
19228
|
+
goog.net.HttpStatus = module$contents$goog$net$HttpStatus_HttpStatus;
|
|
19181
19229
|
function module$contents$goog$net$XhrLike_XhrLike() {
|
|
19182
19230
|
}
|
|
19183
19231
|
module$contents$goog$net$XhrLike_XhrLike.prototype.open = function(method, url, opt_async, opt_user, opt_password) {
|
|
@@ -19241,8 +19289,8 @@ goog.net.XhrIo.sendInstances_ = [];
|
|
|
19241
19289
|
goog.net.XhrIo.send = function(url, opt_callback, opt_method, opt_content, opt_headers, opt_timeoutInterval, opt_withCredentials) {
|
|
19242
19290
|
var x = new goog.net.XhrIo();
|
|
19243
19291
|
goog.net.XhrIo.sendInstances_.push(x);
|
|
19244
|
-
opt_callback && x.listen(goog
|
|
19245
|
-
x.listenOnce(goog
|
|
19292
|
+
opt_callback && x.listen(module$contents$goog$net$EventType_EventType.COMPLETE, opt_callback);
|
|
19293
|
+
x.listenOnce(module$contents$goog$net$EventType_EventType.READY, x.cleanupSend_);
|
|
19246
19294
|
opt_timeoutInterval && x.setTimeoutInterval(opt_timeoutInterval);
|
|
19247
19295
|
opt_withCredentials && x.setWithCredentials(opt_withCredentials);
|
|
19248
19296
|
x.send(url, opt_method, opt_content, opt_headers);
|
|
@@ -19369,7 +19417,7 @@ goog.net.XhrIo.prototype.createXhr = function() {
|
|
|
19369
19417
|
return this.xmlHttpFactory_ ? this.xmlHttpFactory_.createInstance() : goog.net.XmlHttp();
|
|
19370
19418
|
};
|
|
19371
19419
|
goog.net.XhrIo.prototype.timeout_ = function() {
|
|
19372
|
-
typeof goog != "undefined" && this.xhr_ && (this.lastError_ = "Timed out after " + this.timeoutInterval_ + "ms, aborting", this.lastErrorCode_ = module$contents$goog$net$ErrorCode_ErrorCode.TIMEOUT, goog.log.fine(this.logger_, this.formatMsg_(this.lastError_)), this.dispatchEvent(goog
|
|
19420
|
+
typeof goog != "undefined" && this.xhr_ && (this.lastError_ = "Timed out after " + this.timeoutInterval_ + "ms, aborting", this.lastErrorCode_ = module$contents$goog$net$ErrorCode_ErrorCode.TIMEOUT, goog.log.fine(this.logger_, this.formatMsg_(this.lastError_)), this.dispatchEvent(module$contents$goog$net$EventType_EventType.TIMEOUT), this.abort(module$contents$goog$net$ErrorCode_ErrorCode.TIMEOUT));
|
|
19373
19421
|
};
|
|
19374
19422
|
goog.net.XhrIo.prototype.error_ = function(errorCode, err) {
|
|
19375
19423
|
this.active_ = !1;
|
|
@@ -19380,10 +19428,10 @@ goog.net.XhrIo.prototype.error_ = function(errorCode, err) {
|
|
|
19380
19428
|
this.cleanUpXhr_();
|
|
19381
19429
|
};
|
|
19382
19430
|
goog.net.XhrIo.prototype.dispatchErrors_ = function() {
|
|
19383
|
-
this.errorDispatched_ || (this.errorDispatched_ = !0, this.dispatchEvent(goog
|
|
19431
|
+
this.errorDispatched_ || (this.errorDispatched_ = !0, this.dispatchEvent(module$contents$goog$net$EventType_EventType.COMPLETE), this.dispatchEvent(module$contents$goog$net$EventType_EventType.ERROR));
|
|
19384
19432
|
};
|
|
19385
19433
|
goog.net.XhrIo.prototype.abort = function(opt_failureCode) {
|
|
19386
|
-
this.xhr_ && this.active_ && (goog.log.fine(this.logger_, this.formatMsg_("Aborting")), this.active_ = !1, this.inAbort_ = !0, this.xhr_.abort(), this.inAbort_ = !1, this.lastErrorCode_ = opt_failureCode || module$contents$goog$net$ErrorCode_ErrorCode.ABORT, this.dispatchEvent(goog
|
|
19434
|
+
this.xhr_ && this.active_ && (goog.log.fine(this.logger_, this.formatMsg_("Aborting")), this.active_ = !1, this.inAbort_ = !0, this.xhr_.abort(), this.inAbort_ = !1, this.lastErrorCode_ = opt_failureCode || module$contents$goog$net$ErrorCode_ErrorCode.ABORT, this.dispatchEvent(module$contents$goog$net$EventType_EventType.COMPLETE), this.dispatchEvent(module$contents$goog$net$EventType_EventType.ABORT), this.cleanUpXhr_());
|
|
19387
19435
|
};
|
|
19388
19436
|
goog.net.XhrIo.prototype.disposeInternal = function() {
|
|
19389
19437
|
this.xhr_ && (this.active_ && (this.active_ = !1, this.inAbort_ = !0, this.xhr_.abort(), this.inAbort_ = !1), this.cleanUpXhr_(!0));
|
|
@@ -19406,11 +19454,11 @@ goog.net.XhrIo.prototype.onReadyStateChangeHelper_ = function() {
|
|
|
19406
19454
|
if (this.inSend_ && this.getReadyState() == goog.net.XmlHttp.ReadyState.COMPLETE) {
|
|
19407
19455
|
setTimeout(this.onReadyStateChange_.bind(this), 0);
|
|
19408
19456
|
} else {
|
|
19409
|
-
if (this.dispatchEvent(goog
|
|
19457
|
+
if (this.dispatchEvent(module$contents$goog$net$EventType_EventType.READY_STATE_CHANGE), this.isComplete()) {
|
|
19410
19458
|
goog.log.fine(this.logger_, this.formatMsg_("Request complete"));
|
|
19411
19459
|
this.active_ = !1;
|
|
19412
19460
|
try {
|
|
19413
|
-
this.isSuccess() ? (this.dispatchEvent(goog
|
|
19461
|
+
this.isSuccess() ? (this.dispatchEvent(module$contents$goog$net$EventType_EventType.COMPLETE), this.dispatchEvent(module$contents$goog$net$EventType_EventType.SUCCESS)) : (this.lastErrorCode_ = module$contents$goog$net$ErrorCode_ErrorCode.HTTP_ERROR, this.lastError_ = this.getStatusText() + " [" + this.getStatus() + "]", this.dispatchErrors_());
|
|
19414
19462
|
} finally {
|
|
19415
19463
|
this.cleanUpXhr_();
|
|
19416
19464
|
}
|
|
@@ -19419,9 +19467,9 @@ goog.net.XhrIo.prototype.onReadyStateChangeHelper_ = function() {
|
|
|
19419
19467
|
}
|
|
19420
19468
|
};
|
|
19421
19469
|
goog.net.XhrIo.prototype.onProgressHandler_ = function(e, opt_isDownload) {
|
|
19422
|
-
goog.asserts.assert(e.type === goog
|
|
19423
|
-
this.dispatchEvent(goog.net.XhrIo.buildProgressEvent_(e, goog
|
|
19424
|
-
this.dispatchEvent(goog.net.XhrIo.buildProgressEvent_(e, opt_isDownload ? goog
|
|
19470
|
+
goog.asserts.assert(e.type === module$contents$goog$net$EventType_EventType.PROGRESS, "goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");
|
|
19471
|
+
this.dispatchEvent(goog.net.XhrIo.buildProgressEvent_(e, module$contents$goog$net$EventType_EventType.PROGRESS));
|
|
19472
|
+
this.dispatchEvent(goog.net.XhrIo.buildProgressEvent_(e, opt_isDownload ? module$contents$goog$net$EventType_EventType.DOWNLOAD_PROGRESS : module$contents$goog$net$EventType_EventType.UPLOAD_PROGRESS));
|
|
19425
19473
|
};
|
|
19426
19474
|
goog.net.XhrIo.buildProgressEvent_ = function(e, eventType) {
|
|
19427
19475
|
return {type:eventType, lengthComputable:e.lengthComputable, loaded:e.loaded, total:e.total};
|
|
@@ -19431,7 +19479,7 @@ goog.net.XhrIo.prototype.cleanUpXhr_ = function(opt_fromDispose) {
|
|
|
19431
19479
|
this.cleanUpTimeoutTimer_();
|
|
19432
19480
|
var xhr = this.xhr_;
|
|
19433
19481
|
this.xhr_ = null;
|
|
19434
|
-
opt_fromDispose || this.dispatchEvent(goog
|
|
19482
|
+
opt_fromDispose || this.dispatchEvent(module$contents$goog$net$EventType_EventType.READY);
|
|
19435
19483
|
try {
|
|
19436
19484
|
xhr.onreadystatechange = null;
|
|
19437
19485
|
} catch (e) {
|
|
@@ -19450,7 +19498,7 @@ goog.net.XhrIo.prototype.isComplete = function() {
|
|
|
19450
19498
|
};
|
|
19451
19499
|
goog.net.XhrIo.prototype.isSuccess = function() {
|
|
19452
19500
|
var status = this.getStatus();
|
|
19453
|
-
return goog
|
|
19501
|
+
return module$contents$goog$net$HttpStatus_HttpStatus.isSuccess(status) || status === 0 && !this.isLastUriEffectiveSchemeHttp_();
|
|
19454
19502
|
};
|
|
19455
19503
|
goog.net.XhrIo.prototype.isLastUriEffectiveSchemeHttp_ = function() {
|
|
19456
19504
|
var scheme = module$contents$goog$uri$utils_getEffectiveScheme(String(this.lastUri_));
|
|
@@ -19577,7 +19625,7 @@ var $jscomp$templatelit$m1153655765$101 = $jscomp.createTemplateTagFirstArg(["ht
|
|
|
19577
19625
|
ee.apiclient = {};
|
|
19578
19626
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19579
19627
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19580
|
-
ee.apiclient.API_CLIENT_VERSION = "1.7.
|
|
19628
|
+
ee.apiclient.API_CLIENT_VERSION = "1.7.13";
|
|
19581
19629
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19582
19630
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19583
19631
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19882,8 +19930,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19882
19930
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19883
19931
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19884
19932
|
method = method || "POST";
|
|
19885
|
-
var headers = {"Content-Type":contentType}, version = "1.7.
|
|
19886
|
-
version === "1.7.
|
|
19933
|
+
var headers = {"Content-Type":contentType}, version = "1.7.13";
|
|
19934
|
+
version === "1.7.13" && (version = "latest");
|
|
19887
19935
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19888
19936
|
module$contents$ee$apiclient_apiclient.userAgent_ && (headers["User-Agent"] = module$contents$ee$apiclient_apiclient.userAgent_);
|
|
19889
19937
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
@@ -19896,7 +19944,7 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19896
19944
|
});
|
|
19897
19945
|
}), null;
|
|
19898
19946
|
}
|
|
19899
|
-
params = params ? params.clone() : new goog.
|
|
19947
|
+
params = params ? params.clone() : new module$contents$goog$Uri_Uri.QueryData();
|
|
19900
19948
|
module$contents$ee$apiclient_apiclient.cloudApiKey_ != null && params.add("key", module$contents$ee$apiclient_apiclient.cloudApiKey_);
|
|
19901
19949
|
profileHookAtCallTime && (headers[module$contents$ee$apiclient_apiclient.PROFILE_REQUEST_HEADER] = "1");
|
|
19902
19950
|
module$contents$ee$apiclient_apiclient.getProject() && module$contents$ee$apiclient_apiclient.getProject() !== module$contents$ee$apiclient_apiclient.DEFAULT_PROJECT_ && (headers[module$contents$ee$apiclient_apiclient.USER_PROJECT_OVERRIDE_HEADER_] = module$contents$ee$apiclient_apiclient.getProject());
|
|
@@ -20012,7 +20060,7 @@ module$contents$ee$apiclient_apiclient.handleAuthResult_ = function(success, err
|
|
|
20012
20060
|
}
|
|
20013
20061
|
};
|
|
20014
20062
|
module$contents$ee$apiclient_apiclient.makeRequest_ = function(params) {
|
|
20015
|
-
for (var request = new goog.
|
|
20063
|
+
for (var request = new module$contents$goog$Uri_Uri.QueryData(), $jscomp$iter$48 = (0,$jscomp.makeIterator)(Object.entries(params)), $jscomp$key$m1153655765$103$ = $jscomp$iter$48.next(); !$jscomp$key$m1153655765$103$.done; $jscomp$key$m1153655765$103$ = $jscomp$iter$48.next()) {
|
|
20016
20064
|
var $jscomp$destructuring$var48 = (0,$jscomp.makeIterator)($jscomp$key$m1153655765$103$.value), name = $jscomp$destructuring$var48.next().value, item = $jscomp$destructuring$var48.next().value;
|
|
20017
20065
|
request.set(name, item);
|
|
20018
20066
|
}
|
|
@@ -22658,7 +22706,7 @@ ee.ApiFunction.lookup = function(name) {
|
|
|
22658
22706
|
goog.exportSymbol("ee.ApiFunction.lookup", ee.ApiFunction.lookup);
|
|
22659
22707
|
ee.ApiFunction.lookupInternal = function(name) {
|
|
22660
22708
|
ee.ApiFunction.initialize();
|
|
22661
|
-
return ee.ApiFunction.api_[name]
|
|
22709
|
+
return ee.ApiFunction.api_.hasOwnProperty(name) ? ee.ApiFunction.api_[name] : null;
|
|
22662
22710
|
};
|
|
22663
22711
|
ee.ApiFunction.initialize = function(opt_successCallback, opt_failureCallback) {
|
|
22664
22712
|
if (ee.ApiFunction.api_) {
|
|
@@ -22682,23 +22730,28 @@ ee.ApiFunction.reset = function() {
|
|
|
22682
22730
|
};
|
|
22683
22731
|
ee.ApiFunction.importApi = function(target, prefix, typeName, opt_prepend) {
|
|
22684
22732
|
ee.ApiFunction.initialize();
|
|
22685
|
-
var prepend = opt_prepend || "";
|
|
22686
|
-
|
|
22687
|
-
|
|
22688
|
-
|
|
22689
|
-
var
|
|
22690
|
-
|
|
22691
|
-
|
|
22692
|
-
|
|
22693
|
-
|
|
22694
|
-
|
|
22733
|
+
var prepend = opt_prepend || "", api = ee.ApiFunction.api_, $jscomp$loop$2006059326$0 = {}, name;
|
|
22734
|
+
for (name in api) {
|
|
22735
|
+
if ($jscomp$loop$2006059326$0 = {apiFunc:void 0, isInstance$jscomp$2:void 0}, Object.prototype.hasOwnProperty.call(api, name)) {
|
|
22736
|
+
$jscomp$loop$2006059326$0.apiFunc = api[name];
|
|
22737
|
+
var parts = name.split(".");
|
|
22738
|
+
if (parts.length === 2 && parts[0] === prefix) {
|
|
22739
|
+
var fname = prepend + parts[1], signature = $jscomp$loop$2006059326$0.apiFunc.getSignature();
|
|
22740
|
+
ee.ApiFunction.boundSignatures_[name] = !0;
|
|
22741
|
+
$jscomp$loop$2006059326$0.isInstance$jscomp$2 = !1;
|
|
22742
|
+
if (signature.args.length) {
|
|
22743
|
+
var firstArgType = signature.args[0].type;
|
|
22744
|
+
$jscomp$loop$2006059326$0.isInstance$jscomp$2 = firstArgType != "Object" && ee.Types.isSubtype(firstArgType, typeName);
|
|
22745
|
+
}
|
|
22746
|
+
var destination = $jscomp$loop$2006059326$0.isInstance$jscomp$2 ? target.prototype : target;
|
|
22747
|
+
fname in destination && !destination[fname].signature || (destination[fname] = function($jscomp$loop$2006059326$0) {
|
|
22748
|
+
return function(var_args) {
|
|
22749
|
+
return $jscomp$loop$2006059326$0.apiFunc.callOrApply($jscomp$loop$2006059326$0.isInstance$jscomp$2 ? this : void 0, Array.prototype.slice.call(arguments, 0));
|
|
22750
|
+
};
|
|
22751
|
+
}($jscomp$loop$2006059326$0), destination[fname].toString = goog.bind($jscomp$loop$2006059326$0.apiFunc.toString, $jscomp$loop$2006059326$0.apiFunc, fname, $jscomp$loop$2006059326$0.isInstance$jscomp$2), destination[fname].signature = signature);
|
|
22695
22752
|
}
|
|
22696
|
-
var destination = isInstance ? target.prototype : target;
|
|
22697
|
-
fname in destination && !destination[fname].signature || (destination[fname] = function(var_args) {
|
|
22698
|
-
return apiFunc.callOrApply(isInstance ? this : void 0, Array.prototype.slice.call(arguments, 0));
|
|
22699
|
-
}, destination[fname].toString = goog.bind(apiFunc.toString, apiFunc, fname, isInstance), destination[fname].signature = signature);
|
|
22700
22753
|
}
|
|
22701
|
-
}
|
|
22754
|
+
}
|
|
22702
22755
|
};
|
|
22703
22756
|
ee.ApiFunction.clearApi = function(target) {
|
|
22704
22757
|
var clear = function(target) {
|
|
@@ -25287,7 +25340,7 @@ module$contents$goog$fs$ProgressEvent_GoogProgressEvent.prototype.getTotal = fun
|
|
|
25287
25340
|
return this.event_.total;
|
|
25288
25341
|
};
|
|
25289
25342
|
goog.fs.ProgressEvent = module$contents$goog$fs$ProgressEvent_GoogProgressEvent;
|
|
25290
|
-
goog
|
|
25343
|
+
function module$contents$goog$fs$FileReader_GoogFileReader() {
|
|
25291
25344
|
goog.events.EventTarget.call(this);
|
|
25292
25345
|
this.reader_ = new FileReader();
|
|
25293
25346
|
this.reader_.onloadstart = goog.bind(this.dispatchProgressEvent_, this);
|
|
@@ -25296,74 +25349,75 @@ goog.fs.FileReader = function() {
|
|
|
25296
25349
|
this.reader_.onabort = goog.bind(this.dispatchProgressEvent_, this);
|
|
25297
25350
|
this.reader_.onerror = goog.bind(this.dispatchProgressEvent_, this);
|
|
25298
25351
|
this.reader_.onloadend = goog.bind(this.dispatchProgressEvent_, this);
|
|
25299
|
-
}
|
|
25300
|
-
goog.inherits(goog
|
|
25301
|
-
goog
|
|
25302
|
-
goog
|
|
25303
|
-
goog
|
|
25352
|
+
}
|
|
25353
|
+
goog.inherits(module$contents$goog$fs$FileReader_GoogFileReader, goog.events.EventTarget);
|
|
25354
|
+
module$contents$goog$fs$FileReader_GoogFileReader.ReadyState = {INIT:0, LOADING:1, DONE:2};
|
|
25355
|
+
module$contents$goog$fs$FileReader_GoogFileReader.EventType = {LOAD_START:"loadstart", PROGRESS:"progress", LOAD:"load", ABORT:"abort", ERROR:"error", LOAD_END:"loadend"};
|
|
25356
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.abort = function() {
|
|
25304
25357
|
try {
|
|
25305
25358
|
this.reader_.abort();
|
|
25306
25359
|
} catch (e) {
|
|
25307
25360
|
throw new module$contents$goog$fs$Error_FsError(e, "aborting read");
|
|
25308
25361
|
}
|
|
25309
25362
|
};
|
|
25310
|
-
goog
|
|
25363
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.getReadyState = function() {
|
|
25311
25364
|
return this.reader_.readyState;
|
|
25312
25365
|
};
|
|
25313
|
-
goog
|
|
25366
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.getResult = function() {
|
|
25314
25367
|
return this.reader_.result;
|
|
25315
25368
|
};
|
|
25316
|
-
goog
|
|
25369
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.getError = function() {
|
|
25317
25370
|
return this.reader_.error && new module$contents$goog$fs$Error_FsError(this.reader_.error, "reading file");
|
|
25318
25371
|
};
|
|
25319
|
-
goog
|
|
25372
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.dispatchProgressEvent_ = function(event) {
|
|
25320
25373
|
this.dispatchEvent(new module$contents$goog$fs$ProgressEvent_GoogProgressEvent(event, this));
|
|
25321
25374
|
};
|
|
25322
|
-
goog
|
|
25323
|
-
goog
|
|
25375
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.disposeInternal = function() {
|
|
25376
|
+
module$contents$goog$fs$FileReader_GoogFileReader.superClass_.disposeInternal.call(this);
|
|
25324
25377
|
delete this.reader_;
|
|
25325
25378
|
};
|
|
25326
|
-
goog
|
|
25379
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.readAsBinaryString = function(blob) {
|
|
25327
25380
|
this.reader_.readAsBinaryString(blob);
|
|
25328
25381
|
};
|
|
25329
|
-
goog
|
|
25330
|
-
var reader = new goog
|
|
25382
|
+
module$contents$goog$fs$FileReader_GoogFileReader.readAsBinaryString = function(blob) {
|
|
25383
|
+
var reader = new module$contents$goog$fs$FileReader_GoogFileReader(), d = module$contents$goog$fs$FileReader_GoogFileReader.createDeferred_(reader);
|
|
25331
25384
|
reader.readAsBinaryString(blob);
|
|
25332
25385
|
return d;
|
|
25333
25386
|
};
|
|
25334
|
-
goog
|
|
25387
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.readAsArrayBuffer = function(blob) {
|
|
25335
25388
|
this.reader_.readAsArrayBuffer(blob);
|
|
25336
25389
|
};
|
|
25337
|
-
goog
|
|
25338
|
-
var reader = new goog
|
|
25390
|
+
module$contents$goog$fs$FileReader_GoogFileReader.readAsArrayBuffer = function(blob) {
|
|
25391
|
+
var reader = new module$contents$goog$fs$FileReader_GoogFileReader(), d = module$contents$goog$fs$FileReader_GoogFileReader.createDeferred_(reader);
|
|
25339
25392
|
reader.readAsArrayBuffer(blob);
|
|
25340
25393
|
return d;
|
|
25341
25394
|
};
|
|
25342
|
-
goog
|
|
25395
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.readAsText = function(blob, opt_encoding) {
|
|
25343
25396
|
this.reader_.readAsText(blob, opt_encoding);
|
|
25344
25397
|
};
|
|
25345
|
-
goog
|
|
25346
|
-
var reader = new goog
|
|
25398
|
+
module$contents$goog$fs$FileReader_GoogFileReader.readAsText = function(blob, opt_encoding) {
|
|
25399
|
+
var reader = new module$contents$goog$fs$FileReader_GoogFileReader(), d = module$contents$goog$fs$FileReader_GoogFileReader.createDeferred_(reader);
|
|
25347
25400
|
reader.readAsText(blob, opt_encoding);
|
|
25348
25401
|
return d;
|
|
25349
25402
|
};
|
|
25350
|
-
goog
|
|
25403
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.readAsDataUrl = function(blob) {
|
|
25351
25404
|
this.reader_.readAsDataURL(blob);
|
|
25352
25405
|
};
|
|
25353
|
-
goog
|
|
25354
|
-
var reader = new goog
|
|
25406
|
+
module$contents$goog$fs$FileReader_GoogFileReader.readAsDataUrl = function(blob) {
|
|
25407
|
+
var reader = new module$contents$goog$fs$FileReader_GoogFileReader(), d = module$contents$goog$fs$FileReader_GoogFileReader.createDeferred_(reader);
|
|
25355
25408
|
reader.readAsDataUrl(blob);
|
|
25356
25409
|
return d;
|
|
25357
25410
|
};
|
|
25358
|
-
goog
|
|
25411
|
+
module$contents$goog$fs$FileReader_GoogFileReader.createDeferred_ = function(reader) {
|
|
25359
25412
|
var deferred = new goog.async.Deferred();
|
|
25360
|
-
reader.listen(goog
|
|
25413
|
+
reader.listen(module$contents$goog$fs$FileReader_GoogFileReader.EventType.LOAD_END, goog.partial(function(d, r, e) {
|
|
25361
25414
|
var result = r.getResult(), error = r.getError();
|
|
25362
25415
|
result == null || error ? d.errback(error) : d.callback(result);
|
|
25363
25416
|
r.dispose();
|
|
25364
25417
|
}, deferred, reader));
|
|
25365
25418
|
return deferred;
|
|
25366
25419
|
};
|
|
25420
|
+
goog.fs.FileReader = module$contents$goog$fs$FileReader_GoogFileReader;
|
|
25367
25421
|
goog.dom.vendor = {};
|
|
25368
25422
|
function module$contents$goog$dom$vendor_getVendorJsPrefix() {
|
|
25369
25423
|
return goog.userAgent.WEBKIT ? "Webkit" : goog.userAgent.GECKO ? "Moz" : null;
|
|
@@ -26295,10 +26349,10 @@ ee.layers.AbstractTile.prototype.startLoad = function() {
|
|
|
26295
26349
|
this.loadingStartTs_ = (new Date()).getTime();
|
|
26296
26350
|
this.xhrIo_ = new goog.net.XhrIo();
|
|
26297
26351
|
this.xhrIo_.setResponseType(goog.net.XhrIo.ResponseType.BLOB);
|
|
26298
|
-
this.xhrIo_.listen(goog
|
|
26299
|
-
var blob = $jscomp$this$800656669$27.xhrIo_.getResponse(), status = $jscomp$this$800656669$27.xhrIo_.getStatus()
|
|
26300
|
-
status ==
|
|
26301
|
-
if (
|
|
26352
|
+
this.xhrIo_.listen(module$contents$goog$net$EventType_EventType.COMPLETE, function(event) {
|
|
26353
|
+
var blob = $jscomp$this$800656669$27.xhrIo_.getResponse(), status = $jscomp$this$800656669$27.xhrIo_.getStatus();
|
|
26354
|
+
status == module$contents$goog$net$HttpStatus_HttpStatus.TOO_MANY_REQUESTS && $jscomp$this$800656669$27.setStatus(ee.layers.AbstractTile.Status.THROTTLED);
|
|
26355
|
+
if (module$contents$goog$net$HttpStatus_HttpStatus.isSuccess(status)) {
|
|
26302
26356
|
var sourceResponseHeaders = {};
|
|
26303
26357
|
module$contents$goog$object_forEach($jscomp$this$800656669$27.xhrIo_.getResponseHeaders(), function(value, name) {
|
|
26304
26358
|
sourceResponseHeaders[name.toLowerCase()] = value;
|
|
@@ -26307,8 +26361,8 @@ ee.layers.AbstractTile.prototype.startLoad = function() {
|
|
|
26307
26361
|
$jscomp$this$800656669$27.sourceData = blob;
|
|
26308
26362
|
$jscomp$this$800656669$27.finishLoad();
|
|
26309
26363
|
} else if (blob) {
|
|
26310
|
-
var reader = new goog
|
|
26311
|
-
reader.listen(goog
|
|
26364
|
+
var reader = new module$contents$goog$fs$FileReader_GoogFileReader();
|
|
26365
|
+
reader.listen(module$contents$goog$fs$FileReader_GoogFileReader.EventType.LOAD_END, function() {
|
|
26312
26366
|
$jscomp$this$800656669$27.retryLoad(reader.getResult());
|
|
26313
26367
|
}, void 0);
|
|
26314
26368
|
reader.readAsText(blob);
|
|
@@ -26316,7 +26370,7 @@ ee.layers.AbstractTile.prototype.startLoad = function() {
|
|
|
26316
26370
|
$jscomp$this$800656669$27.retryLoad("Failed to load tile.");
|
|
26317
26371
|
}
|
|
26318
26372
|
}, !1);
|
|
26319
|
-
this.xhrIo_.listenOnce(goog
|
|
26373
|
+
this.xhrIo_.listenOnce(module$contents$goog$net$EventType_EventType.READY, goog.partial(module$contents$goog$dispose_dispose, this.xhrIo_));
|
|
26320
26374
|
this.sourceUrl && this.sourceUrl.endsWith("&profiling=1") && (this.sourceUrl = this.sourceUrl.replace("&profiling=1", ""), this.xhrIo_.headers.set(module$contents$ee$apiclient_apiclient.PROFILE_REQUEST_HEADER, "1"));
|
|
26321
26375
|
this.xhrIo_.send(this.sourceUrl, "GET");
|
|
26322
26376
|
};
|
|
@@ -26400,25 +26454,22 @@ ee_root.third_party.earthengine_api.javascript.layers.binaryoverlay.BinaryTile =
|
|
|
26400
26454
|
};
|
|
26401
26455
|
$jscomp.inherits(ee_root.third_party.earthengine_api.javascript.layers.binaryoverlay.BinaryTile, ee.layers.AbstractTile);
|
|
26402
26456
|
ee_root.third_party.earthengine_api.javascript.layers.binaryoverlay.BinaryTile.prototype.finishLoad = function() {
|
|
26403
|
-
var reader = new goog
|
|
26404
|
-
reader.listen(goog
|
|
26457
|
+
var reader = new module$contents$goog$fs$FileReader_GoogFileReader();
|
|
26458
|
+
reader.listen(module$contents$goog$fs$FileReader_GoogFileReader.EventType.LOAD_END, function() {
|
|
26405
26459
|
this.buffer_ = reader.getResult();
|
|
26406
26460
|
ee.layers.AbstractTile.prototype.finishLoad.call(this);
|
|
26407
26461
|
}, void 0, this);
|
|
26408
26462
|
reader.readAsArrayBuffer(this.sourceData);
|
|
26409
26463
|
};
|
|
26410
|
-
|
|
26464
|
+
var module$contents$goog$net$ImageLoader_ImageLoader = function(opt_parent) {
|
|
26411
26465
|
goog.events.EventTarget.call(this);
|
|
26412
26466
|
this.imageIdToRequestMap_ = {};
|
|
26413
26467
|
this.imageIdToImageMap_ = {};
|
|
26414
26468
|
this.handler_ = new module$contents$goog$events$EventHandler_EventHandler(this);
|
|
26415
26469
|
this.parent_ = opt_parent;
|
|
26416
26470
|
this.completionFired_ = !1;
|
|
26417
|
-
}
|
|
26418
|
-
|
|
26419
|
-
module$contents$goog$net$ImageLoader_ImageLoader.CorsRequestType = {ANONYMOUS:"anonymous", USE_CREDENTIALS:"use-credentials"};
|
|
26420
|
-
var module$contents$goog$net$ImageLoader_ImageRequest;
|
|
26421
|
-
module$contents$goog$net$ImageLoader_ImageLoader.IMAGE_LOAD_EVENTS_ = [goog.events.EventType.LOAD, goog.net.EventType.ABORT, goog.net.EventType.ERROR];
|
|
26471
|
+
};
|
|
26472
|
+
$jscomp.inherits(module$contents$goog$net$ImageLoader_ImageLoader, goog.events.EventTarget);
|
|
26422
26473
|
module$contents$goog$net$ImageLoader_ImageLoader.prototype.addImage = function(id, image, opt_corsRequestType) {
|
|
26423
26474
|
var src = typeof image === "string" ? image : image.src;
|
|
26424
26475
|
src && (this.completionFired_ = !1, this.imageIdToRequestMap_[id] = {src:src, corsRequestType:opt_corsRequestType !== void 0 ? opt_corsRequestType : null});
|
|
@@ -26448,28 +26499,31 @@ module$contents$goog$net$ImageLoader_ImageLoader.prototype.loadImage_ = function
|
|
|
26448
26499
|
module$contents$goog$net$ImageLoader_ImageLoader.prototype.onNetworkEvent_ = function(evt) {
|
|
26449
26500
|
var image = evt.currentTarget;
|
|
26450
26501
|
if (image) {
|
|
26451
|
-
if (evt.type == goog
|
|
26452
|
-
if (image.readyState == goog
|
|
26453
|
-
evt.type = goog
|
|
26502
|
+
if (evt.type == module$contents$goog$net$EventType_EventType.READY_STATE_CHANGE) {
|
|
26503
|
+
if (image.readyState == module$contents$goog$net$EventType_EventType.COMPLETE) {
|
|
26504
|
+
evt.type = module$contents$goog$events$EventType_EventType.LOAD;
|
|
26454
26505
|
} else {
|
|
26455
26506
|
return;
|
|
26456
26507
|
}
|
|
26457
26508
|
}
|
|
26458
|
-
typeof image.naturalWidth == "undefined" && (evt.type == goog
|
|
26509
|
+
typeof image.naturalWidth == "undefined" && (evt.type == module$contents$goog$events$EventType_EventType.LOAD ? (image.naturalWidth = image.width, image.naturalHeight = image.height) : (image.naturalWidth = 0, image.naturalHeight = 0));
|
|
26459
26510
|
this.removeImage(image.id);
|
|
26460
26511
|
this.dispatchEvent({type:evt.type, target:image});
|
|
26461
26512
|
this.isDisposed() || this.maybeFireCompletionEvent_();
|
|
26462
26513
|
}
|
|
26463
26514
|
};
|
|
26464
26515
|
module$contents$goog$net$ImageLoader_ImageLoader.prototype.maybeFireCompletionEvent_ = function() {
|
|
26465
|
-
module$contents$goog$object_isEmpty(this.imageIdToImageMap_) && module$contents$goog$object_isEmpty(this.imageIdToRequestMap_) && !this.completionFired_ && (this.completionFired_ = !0, this.dispatchEvent(goog
|
|
26516
|
+
module$contents$goog$object_isEmpty(this.imageIdToImageMap_) && module$contents$goog$object_isEmpty(this.imageIdToRequestMap_) && !this.completionFired_ && (this.completionFired_ = !0, this.dispatchEvent(module$contents$goog$net$EventType_EventType.COMPLETE));
|
|
26466
26517
|
};
|
|
26467
26518
|
module$contents$goog$net$ImageLoader_ImageLoader.prototype.disposeInternal = function() {
|
|
26468
26519
|
delete this.imageIdToRequestMap_;
|
|
26469
26520
|
delete this.imageIdToImageMap_;
|
|
26470
26521
|
module$contents$goog$dispose_dispose(this.handler_);
|
|
26471
|
-
|
|
26522
|
+
goog.events.EventTarget.prototype.disposeInternal.call(this);
|
|
26472
26523
|
};
|
|
26524
|
+
module$contents$goog$net$ImageLoader_ImageLoader.CorsRequestType = {ANONYMOUS:"anonymous", USE_CREDENTIALS:"use-credentials"};
|
|
26525
|
+
var module$contents$goog$net$ImageLoader_ImageRequest;
|
|
26526
|
+
module$contents$goog$net$ImageLoader_ImageLoader.IMAGE_LOAD_EVENTS_ = [module$contents$goog$events$EventType_EventType.LOAD, module$contents$goog$net$EventType_EventType.ABORT, module$contents$goog$net$EventType_EventType.ERROR];
|
|
26473
26527
|
goog.net.ImageLoader = module$contents$goog$net$ImageLoader_ImageLoader;
|
|
26474
26528
|
ee_root.third_party.earthengine_api.javascript.layers.imageoverlay = {};
|
|
26475
26529
|
ee_root.third_party.earthengine_api.javascript.layers.imageoverlay.ImageOverlay = function(tileSource, opt_options) {
|
|
@@ -26498,7 +26552,7 @@ ee_root.third_party.earthengine_api.javascript.layers.imageoverlay.ImageTile.pro
|
|
|
26498
26552
|
this.imageLoader_ = new module$contents$goog$net$ImageLoader_ImageLoader();
|
|
26499
26553
|
this.imageLoader_.addImage(this.div.id + "-image", imageUrl);
|
|
26500
26554
|
this.imageLoaderListenerKey_ = goog.events.listenOnce(this.imageLoader_, ee_root.third_party.earthengine_api.javascript.layers.imageoverlay.ImageTile.IMAGE_LOADER_EVENTS_, function(event) {
|
|
26501
|
-
event.type == goog
|
|
26555
|
+
event.type == module$contents$goog$events$EventType_EventType.LOAD ? (this.imageEl = event.target, ee.layers.AbstractTile.prototype.finishLoad.call(this)) : this.retryLoad();
|
|
26502
26556
|
}, void 0, this);
|
|
26503
26557
|
this.imageLoader_.start();
|
|
26504
26558
|
};
|
|
@@ -26513,7 +26567,7 @@ ee_root.third_party.earthengine_api.javascript.layers.imageoverlay.ImageTile.pro
|
|
|
26513
26567
|
ee_root.third_party.earthengine_api.javascript.layers.imageoverlay.ImageTile.defaultRenderer_ = function(tile) {
|
|
26514
26568
|
tile.div.appendChild(tile.imageEl);
|
|
26515
26569
|
};
|
|
26516
|
-
ee_root.third_party.earthengine_api.javascript.layers.imageoverlay.ImageTile.IMAGE_LOADER_EVENTS_ = [goog
|
|
26570
|
+
ee_root.third_party.earthengine_api.javascript.layers.imageoverlay.ImageTile.IMAGE_LOADER_EVENTS_ = [module$contents$goog$events$EventType_EventType.LOAD, module$contents$goog$net$EventType_EventType.ABORT, module$contents$goog$net$EventType_EventType.ERROR];
|
|
26517
26571
|
goog.string.path = {};
|
|
26518
26572
|
function module$contents$goog$string$path_baseName(path) {
|
|
26519
26573
|
var i = path.lastIndexOf("/") + 1;
|
|
@@ -27100,7 +27154,7 @@ ee.MapTileManager.Request_.prototype.hasReachedMaxRetries = function() {
|
|
|
27100
27154
|
return this.attemptCount_ > this.maxRetries_;
|
|
27101
27155
|
};
|
|
27102
27156
|
ee.MapTileManager.Request_.prototype.setAborted = function(aborted) {
|
|
27103
|
-
aborted && !this.aborted_ && (this.aborted_ = aborted, this.event_ = new goog.events.Event(goog
|
|
27157
|
+
aborted && !this.aborted_ && (this.aborted_ = aborted, this.event_ = new goog.events.Event(module$contents$goog$net$EventType_EventType.ABORT));
|
|
27104
27158
|
};
|
|
27105
27159
|
ee.MapTileManager.Request_.prototype.getAborted = function() {
|
|
27106
27160
|
return this.aborted_;
|
|
@@ -27110,12 +27164,12 @@ ee.MapTileManager.Request_.prototype.handleImageEvent_ = function(e) {
|
|
|
27110
27164
|
this.markCompleted_();
|
|
27111
27165
|
} else {
|
|
27112
27166
|
switch(e.type) {
|
|
27113
|
-
case goog
|
|
27167
|
+
case module$contents$goog$events$EventType_EventType.LOAD:
|
|
27114
27168
|
this.handleSuccess_(e);
|
|
27115
27169
|
this.markCompleted_();
|
|
27116
27170
|
break;
|
|
27117
|
-
case goog
|
|
27118
|
-
case goog
|
|
27171
|
+
case module$contents$goog$net$EventType_EventType.ERROR:
|
|
27172
|
+
case module$contents$goog$net$EventType_EventType.ABORT:
|
|
27119
27173
|
this.handleError_(e);
|
|
27120
27174
|
}
|
|
27121
27175
|
}
|
|
@@ -27148,10 +27202,10 @@ ee.MapTileManager.Request_.prototype.start_ = function() {
|
|
|
27148
27202
|
var actuallyLoadImage = goog.bind(function(imageUrl) {
|
|
27149
27203
|
this.getAborted() || (this.imageLoader_.addImage(this.id_, imageUrl), this.addImageEventListener(), this.imageLoader_.start());
|
|
27150
27204
|
}, this), sourceUrl = this.getUrl();
|
|
27151
|
-
if (goog.
|
|
27205
|
+
if (module$contents$goog$Uri_Uri.parse(sourceUrl).getQueryData().containsKey("profiling")) {
|
|
27152
27206
|
var xhrIo = new goog.net.XhrIo();
|
|
27153
27207
|
xhrIo.setResponseType(goog.net.XhrIo.ResponseType.BLOB);
|
|
27154
|
-
xhrIo.listen(goog
|
|
27208
|
+
xhrIo.listen(module$contents$goog$net$EventType_EventType.COMPLETE, goog.bind(function(event) {
|
|
27155
27209
|
this.profileId_ = xhrIo.getResponseHeader(module$contents$ee$apiclient_apiclient.PROFILE_HEADER) || null;
|
|
27156
27210
|
if (xhrIo.getStatus() >= 200 && xhrIo.getStatus() < 300) {
|
|
27157
27211
|
try {
|
|
@@ -27162,7 +27216,7 @@ ee.MapTileManager.Request_.prototype.start_ = function() {
|
|
|
27162
27216
|
}
|
|
27163
27217
|
actuallyLoadImage(ok ? objectUrl : sourceUrl);
|
|
27164
27218
|
}, this));
|
|
27165
|
-
xhrIo.listenOnce(goog
|
|
27219
|
+
xhrIo.listenOnce(module$contents$goog$net$EventType_EventType.READY, goog.bind(xhrIo.dispose, xhrIo));
|
|
27166
27220
|
xhrIo.send(sourceUrl, "GET");
|
|
27167
27221
|
} else {
|
|
27168
27222
|
actuallyLoadImage(sourceUrl);
|
|
@@ -27175,7 +27229,7 @@ ee.MapTileManager.Request_.prototype.imageLoader_ = null;
|
|
|
27175
27229
|
ee.MapTileManager.Request_.prototype.token_ = null;
|
|
27176
27230
|
ee.MapTileManager.Request_.prototype.event_ = null;
|
|
27177
27231
|
ee.MapTileManager.Request_.prototype.profileId_ = null;
|
|
27178
|
-
ee.MapTileManager.Request_.IMAGE_LOADER_EVENT_TYPES_ = [goog
|
|
27232
|
+
ee.MapTileManager.Request_.IMAGE_LOADER_EVENT_TYPES_ = [module$contents$goog$events$EventType_EventType.LOAD, module$contents$goog$net$EventType_EventType.ABORT, module$contents$goog$net$EventType_EventType.ERROR];
|
|
27179
27233
|
ee.MapTileManager.Token_ = function() {
|
|
27180
27234
|
goog.Disposable.call(this);
|
|
27181
27235
|
this.active_ = !1;
|
|
@@ -27262,11 +27316,11 @@ ee.MapLayerOverlay.prototype.setOpacity = function(opacity) {
|
|
|
27262
27316
|
});
|
|
27263
27317
|
};
|
|
27264
27318
|
ee.MapLayerOverlay.prototype.handleImageCompleted_ = function(div, tileId, e, profileId) {
|
|
27265
|
-
if (e.type == goog
|
|
27319
|
+
if (e.type == module$contents$goog$net$EventType_EventType.ERROR) {
|
|
27266
27320
|
module$contents$goog$array_remove(this.tilesLoading, tileId), this.tilesFailed.add(tileId), this.dispatchEvent(e);
|
|
27267
27321
|
} else {
|
|
27268
27322
|
module$contents$goog$array_remove(this.tilesLoading, tileId);
|
|
27269
|
-
if (e.target && e.type == goog
|
|
27323
|
+
if (e.target && e.type == module$contents$goog$events$EventType_EventType.LOAD) {
|
|
27270
27324
|
var tile = e.target;
|
|
27271
27325
|
this.tiles_.add(tile);
|
|
27272
27326
|
this.opacity_ != 1 && goog.style.setOpacity(tile, this.opacity_);
|
|
@@ -27299,13 +27353,13 @@ module$contents$goog$async$Delay_Delay.prototype.disposeInternal = function() {
|
|
|
27299
27353
|
};
|
|
27300
27354
|
module$contents$goog$async$Delay_Delay.prototype.start = function(opt_interval) {
|
|
27301
27355
|
this.stop();
|
|
27302
|
-
this.id_ = goog.
|
|
27356
|
+
this.id_ = module$contents$goog$Timer_Timer.callOnce(this.callback_, opt_interval !== void 0 ? opt_interval : this.interval_);
|
|
27303
27357
|
};
|
|
27304
27358
|
module$contents$goog$async$Delay_Delay.prototype.startIfNotActive = function(opt_interval) {
|
|
27305
27359
|
this.isActive() || this.start(opt_interval);
|
|
27306
27360
|
};
|
|
27307
27361
|
module$contents$goog$async$Delay_Delay.prototype.stop = function() {
|
|
27308
|
-
this.isActive() && goog.
|
|
27362
|
+
this.isActive() && module$contents$goog$Timer_Timer.clear(this.id_);
|
|
27309
27363
|
this.id_ = 0;
|
|
27310
27364
|
};
|
|
27311
27365
|
module$contents$goog$async$Delay_Delay.prototype.fire = function() {
|
|
@@ -27389,7 +27443,7 @@ ee.data.Profiler.prototype.refresh_ = function(retryAttempt) {
|
|
|
27389
27443
|
var marker = {};
|
|
27390
27444
|
this.lastRefreshToken_ = marker;
|
|
27391
27445
|
var handleResponse = function(result, error) {
|
|
27392
|
-
marker == $jscomp$this$722023317$13.lastRefreshToken_ && (error && typeof retryAttempt === "number" && retryAttempt < $jscomp$this$722023317$13.MAX_RETRY_COUNT_ ? goog.
|
|
27446
|
+
marker == $jscomp$this$722023317$13.lastRefreshToken_ && (error && typeof retryAttempt === "number" && retryAttempt < $jscomp$this$722023317$13.MAX_RETRY_COUNT_ ? module$contents$goog$Timer_Timer.callOnce(goog.bind($jscomp$this$722023317$13.refresh_, $jscomp$this$722023317$13, retryAttempt + 1), 2 * ee.data.Profiler.DELAY_BEFORE_REFRESH_) : ($jscomp$this$722023317$13.profileError_ = error || null, $jscomp$this$722023317$13.profileData_ = error ? ee.data.Profiler.getEmptyProfile_($jscomp$this$722023317$13.format_) :
|
|
27393
27447
|
result, $jscomp$this$722023317$13.lastRefreshToken_ = null, $jscomp$this$722023317$13.dispatchEvent(ee.data.Profiler.EventType.STATE_CHANGED), $jscomp$this$722023317$13.dispatchEvent(ee.data.Profiler.EventType.DATA_CHANGED)));
|
|
27394
27448
|
}, ids = module$contents$goog$object_getKeys(this.profileIds_);
|
|
27395
27449
|
ids.length === 0 ? handleResponse(ee.data.Profiler.getEmptyProfile_(this.format_), void 0) : (ee.ApiFunction._apply(this.showInternal_ ? "Profile.getProfilesInternal" : "Profile.getProfiles", {ids:ids, format:this.format_.toString()}).getInfo(handleResponse), this.dispatchEvent(ee.data.Profiler.EventType.STATE_CHANGED));
|