@google/earthengine 1.7.10 → 1.7.12
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 +407 -375
- package/build/ee_api_js.js +361 -360
- package/build/ee_api_js_debug.js +384 -353
- package/build/ee_api_js_npm.js +407 -375
- package/build/main.js +407 -375
- 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,29 @@ $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.getNextAddress = function() {
|
|
258
|
+
return this.nextAddress;
|
|
259
|
+
};
|
|
260
|
+
$jscomp.generator.Context.prototype.getNextAddress = $jscomp.generator.Context.prototype.getNextAddress;
|
|
261
|
+
$jscomp.generator.Context.prototype.getYieldResult = function() {
|
|
262
|
+
return this.yieldResult;
|
|
263
|
+
};
|
|
264
|
+
$jscomp.generator.Context.prototype.getYieldResult = $jscomp.generator.Context.prototype.getYieldResult;
|
|
257
265
|
$jscomp.generator.Context.prototype.return = function(value) {
|
|
258
266
|
this.abruptCompletion_ = {return:value};
|
|
259
267
|
this.nextAddress = this.finallyAddress_;
|
|
260
268
|
};
|
|
269
|
+
$jscomp.generator.Context.prototype["return"] = $jscomp.generator.Context.prototype.return;
|
|
261
270
|
$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks = function(nextAddress) {
|
|
262
271
|
this.abruptCompletion_ = {jumpTo:nextAddress};
|
|
263
272
|
this.nextAddress = this.finallyAddress_;
|
|
264
273
|
};
|
|
274
|
+
$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks = $jscomp.generator.Context.prototype.jumpThroughFinallyBlocks;
|
|
265
275
|
$jscomp.generator.Context.prototype.yield = function(value, resumeAddress) {
|
|
266
276
|
this.nextAddress = resumeAddress;
|
|
267
277
|
return {value:value};
|
|
268
278
|
};
|
|
279
|
+
$jscomp.generator.Context.prototype.yield = $jscomp.generator.Context.prototype.yield;
|
|
269
280
|
$jscomp.generator.Context.prototype.yieldAll = function(iterable, resumeAddress) {
|
|
270
281
|
var iterator = $jscomp.makeIterator(iterable), result = iterator.next();
|
|
271
282
|
$jscomp.generator.ensureIteratorResultIsObject_(result);
|
|
@@ -275,35 +286,43 @@ $jscomp.generator.Context.prototype.yieldAll = function(iterable, resumeAddress)
|
|
|
275
286
|
return this.yieldAllIterator_ = iterator, this.yield(result.value, resumeAddress);
|
|
276
287
|
}
|
|
277
288
|
};
|
|
289
|
+
$jscomp.generator.Context.prototype.yieldAll = $jscomp.generator.Context.prototype.yieldAll;
|
|
278
290
|
$jscomp.generator.Context.prototype.jumpTo = function(nextAddress) {
|
|
279
291
|
this.nextAddress = nextAddress;
|
|
280
292
|
};
|
|
293
|
+
$jscomp.generator.Context.prototype.jumpTo = $jscomp.generator.Context.prototype.jumpTo;
|
|
281
294
|
$jscomp.generator.Context.prototype.jumpToEnd = function() {
|
|
282
295
|
this.nextAddress = 0;
|
|
283
296
|
};
|
|
297
|
+
$jscomp.generator.Context.prototype.jumpToEnd = $jscomp.generator.Context.prototype.jumpToEnd;
|
|
284
298
|
$jscomp.generator.Context.prototype.setCatchFinallyBlocks = function(catchAddress, finallyAddress) {
|
|
285
299
|
this.catchAddress_ = catchAddress;
|
|
286
300
|
finallyAddress != void 0 && (this.finallyAddress_ = finallyAddress);
|
|
287
301
|
};
|
|
302
|
+
$jscomp.generator.Context.prototype.setCatchFinallyBlocks = $jscomp.generator.Context.prototype.setCatchFinallyBlocks;
|
|
288
303
|
$jscomp.generator.Context.prototype.setFinallyBlock = function(finallyAddress) {
|
|
289
304
|
this.catchAddress_ = 0;
|
|
290
305
|
this.finallyAddress_ = finallyAddress || 0;
|
|
291
306
|
};
|
|
307
|
+
$jscomp.generator.Context.prototype.setFinallyBlock = $jscomp.generator.Context.prototype.setFinallyBlock;
|
|
292
308
|
$jscomp.generator.Context.prototype.leaveTryBlock = function(nextAddress, catchAddress) {
|
|
293
309
|
this.nextAddress = nextAddress;
|
|
294
310
|
this.catchAddress_ = catchAddress || 0;
|
|
295
311
|
};
|
|
312
|
+
$jscomp.generator.Context.prototype.leaveTryBlock = $jscomp.generator.Context.prototype.leaveTryBlock;
|
|
296
313
|
$jscomp.generator.Context.prototype.enterCatchBlock = function(nextCatchBlockAddress) {
|
|
297
314
|
this.catchAddress_ = nextCatchBlockAddress || 0;
|
|
298
315
|
var exception = this.abruptCompletion_.exception;
|
|
299
316
|
this.abruptCompletion_ = null;
|
|
300
317
|
return exception;
|
|
301
318
|
};
|
|
319
|
+
$jscomp.generator.Context.prototype.enterCatchBlock = $jscomp.generator.Context.prototype.enterCatchBlock;
|
|
302
320
|
$jscomp.generator.Context.prototype.enterFinallyBlock = function(nextCatchAddress, nextFinallyAddress, finallyDepth) {
|
|
303
321
|
finallyDepth ? this.finallyContexts_[finallyDepth] = this.abruptCompletion_ : this.finallyContexts_ = [this.abruptCompletion_];
|
|
304
322
|
this.catchAddress_ = nextCatchAddress || 0;
|
|
305
323
|
this.finallyAddress_ = nextFinallyAddress || 0;
|
|
306
324
|
};
|
|
325
|
+
$jscomp.generator.Context.prototype.enterFinallyBlock = $jscomp.generator.Context.prototype.enterFinallyBlock;
|
|
307
326
|
$jscomp.generator.Context.prototype.leaveFinallyBlock = function(nextAddress, finallyDepth) {
|
|
308
327
|
var preservedContext = this.finallyContexts_.splice(finallyDepth || 0)[0], abruptCompletion = this.abruptCompletion_ = this.abruptCompletion_ || preservedContext;
|
|
309
328
|
if (abruptCompletion) {
|
|
@@ -315,9 +334,11 @@ $jscomp.generator.Context.prototype.leaveFinallyBlock = function(nextAddress, fi
|
|
|
315
334
|
this.nextAddress = nextAddress;
|
|
316
335
|
}
|
|
317
336
|
};
|
|
337
|
+
$jscomp.generator.Context.prototype.leaveFinallyBlock = $jscomp.generator.Context.prototype.leaveFinallyBlock;
|
|
318
338
|
$jscomp.generator.Context.prototype.forIn = function(object) {
|
|
319
339
|
return new $jscomp.generator.Context.PropertyIterator(object);
|
|
320
340
|
};
|
|
341
|
+
$jscomp.generator.Context.prototype.forIn = $jscomp.generator.Context.prototype.forIn;
|
|
321
342
|
$jscomp.generator.Context.PropertyIterator = function(object) {
|
|
322
343
|
this.object_ = object;
|
|
323
344
|
this.properties_ = [];
|
|
@@ -335,6 +356,7 @@ $jscomp.generator.Context.PropertyIterator.prototype.getNext = function() {
|
|
|
335
356
|
}
|
|
336
357
|
return null;
|
|
337
358
|
};
|
|
359
|
+
$jscomp.generator.Context.PropertyIterator.prototype.getNext = $jscomp.generator.Context.PropertyIterator.prototype.getNext;
|
|
338
360
|
$jscomp.generator.Engine_ = function(program) {
|
|
339
361
|
this.context_ = new $jscomp.generator.Context();
|
|
340
362
|
this.program_ = program;
|
|
@@ -2243,9 +2265,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
2243
2265
|
};
|
|
2244
2266
|
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
2267
|
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$
|
|
2268
|
+
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 =
|
|
2269
|
+
{mapMetadata:void 0}, $jscomp$key$m1892927425$40$key = $jscomp$iter$19.next()) {
|
|
2270
|
+
var key = $jscomp$key$m1892927425$40$key.value, value = valueGetter(key, source);
|
|
2249
2271
|
if (value != null) {
|
|
2250
2272
|
var copy = void 0;
|
|
2251
2273
|
if (arrays.hasOwnProperty(key)) {
|
|
@@ -2256,11 +2278,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2256
2278
|
} else if (objects.hasOwnProperty(key)) {
|
|
2257
2279
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
2258
2280
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
2259
|
-
$jscomp$loop$
|
|
2281
|
+
$jscomp$loop$m1892927425$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m1892927425$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m1892927425$44) {
|
|
2260
2282
|
return function(v) {
|
|
2261
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
2283
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2262
2284
|
};
|
|
2263
|
-
}($jscomp$loop$
|
|
2285
|
+
}($jscomp$loop$m1892927425$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2264
2286
|
} else if (Array.isArray(value)) {
|
|
2265
2287
|
if (metadata.emptyArrayIsUnset && value.length === 0) {
|
|
2266
2288
|
continue;
|
|
@@ -2275,8 +2297,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2275
2297
|
return target;
|
|
2276
2298
|
}
|
|
2277
2299
|
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$
|
|
2300
|
+
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()) {
|
|
2301
|
+
var mapKey = $jscomp$key$m1892927425$41$mapKey.value, mapValue = value[mapKey];
|
|
2280
2302
|
mapValue != null && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
|
|
2281
2303
|
}
|
|
2282
2304
|
return objMap;
|
|
@@ -2306,39 +2328,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
2306
2328
|
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
2329
|
return !1;
|
|
2308
2330
|
}
|
|
2309
|
-
for (var $jscomp$iter$21 = (0,$jscomp.makeIterator)(keys1), $jscomp$key$
|
|
2310
|
-
var key = $jscomp$key$
|
|
2331
|
+
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()) {
|
|
2332
|
+
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
2333
|
if (has1 !== has2) {
|
|
2312
2334
|
return !1;
|
|
2313
2335
|
}
|
|
2314
2336
|
if (has1) {
|
|
2315
2337
|
var value1 = serializable1.Serializable$get(key);
|
|
2316
|
-
$jscomp$loop$
|
|
2338
|
+
$jscomp$loop$m1892927425$45.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
2317
2339
|
if (arrays1.hasOwnProperty(key)) {
|
|
2318
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2340
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !0)) {
|
|
2319
2341
|
return !1;
|
|
2320
2342
|
}
|
|
2321
2343
|
} else if (objects1.hasOwnProperty(key)) {
|
|
2322
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2344
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !0)) {
|
|
2323
2345
|
return !1;
|
|
2324
2346
|
}
|
|
2325
2347
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
2326
|
-
if ($jscomp$loop$
|
|
2327
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
2348
|
+
if ($jscomp$loop$m1892927425$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2.isPropertyArray) {
|
|
2349
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m1892927425$45) {
|
|
2328
2350
|
return function(v1, i) {
|
|
2329
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
2351
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m1892927425$45.value2$jscomp$7[i], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2);
|
|
2330
2352
|
};
|
|
2331
|
-
}($jscomp$loop$
|
|
2353
|
+
}($jscomp$loop$m1892927425$45))) {
|
|
2332
2354
|
return !1;
|
|
2333
2355
|
}
|
|
2334
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
2356
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2)) {
|
|
2335
2357
|
return !1;
|
|
2336
2358
|
}
|
|
2337
2359
|
} else if (Array.isArray(value1)) {
|
|
2338
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2360
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !1)) {
|
|
2339
2361
|
return !1;
|
|
2340
2362
|
}
|
|
2341
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2363
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !1)) {
|
|
2342
2364
|
return !1;
|
|
2343
2365
|
}
|
|
2344
2366
|
}
|
|
@@ -2360,8 +2382,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
|
|
|
2360
2382
|
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
|
|
2361
2383
|
return !1;
|
|
2362
2384
|
}
|
|
2363
|
-
for (var $jscomp$iter$22 = (0,$jscomp.makeIterator)(Object.keys(value1)), $jscomp$key$
|
|
2364
|
-
var mapKey = $jscomp$key$
|
|
2385
|
+
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()) {
|
|
2386
|
+
var mapKey = $jscomp$key$m1892927425$43$mapKey.value;
|
|
2365
2387
|
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
|
|
2366
2388
|
return !1;
|
|
2367
2389
|
}
|
|
@@ -2442,15 +2464,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
|
|
|
2442
2464
|
this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
|
|
2443
2465
|
};
|
|
2444
2466
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
|
|
2445
|
-
var $jscomp$this$
|
|
2467
|
+
var $jscomp$this$m133342051$6 = this, payload = "--" + this._boundary + "\r\n";
|
|
2446
2468
|
payload += this._metadataPayload;
|
|
2447
2469
|
return Promise.all(this.files.map(function(f) {
|
|
2448
|
-
return $jscomp$this$
|
|
2470
|
+
return $jscomp$this$m133342051$6.encodeFile(f);
|
|
2449
2471
|
})).then(function(filePayloads) {
|
|
2450
|
-
for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$
|
|
2451
|
-
payload += $jscomp$key$
|
|
2472
|
+
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()) {
|
|
2473
|
+
payload += $jscomp$key$m133342051$9$filePayload.value;
|
|
2452
2474
|
}
|
|
2453
|
-
return payload += "\r\n--" + $jscomp$this$
|
|
2475
|
+
return payload += "\r\n--" + $jscomp$this$m133342051$6._boundary + "--";
|
|
2454
2476
|
});
|
|
2455
2477
|
};
|
|
2456
2478
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
|
|
@@ -2962,8 +2984,8 @@ function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUr
|
|
|
2962
2984
|
throw Error(message);
|
|
2963
2985
|
}
|
|
2964
2986
|
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
2965
|
-
var $jscomp$templatelit$
|
|
2966
|
-
["\\0"]), $jscomp$templatelit$
|
|
2987
|
+
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"],
|
|
2988
|
+
["\\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
2989
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
2968
2990
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
2969
2991
|
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 +2999,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
2977
2999
|
return fn.toString().indexOf("`") === -1;
|
|
2978
3000
|
}
|
|
2979
3001
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2980
|
-
return tag($jscomp$templatelit$
|
|
3002
|
+
return tag($jscomp$templatelit$m425881384$5);
|
|
2981
3003
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2982
|
-
return tag($jscomp$templatelit$
|
|
3004
|
+
return tag($jscomp$templatelit$m425881384$6);
|
|
2983
3005
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2984
|
-
return tag($jscomp$templatelit$
|
|
3006
|
+
return tag($jscomp$templatelit$m425881384$7);
|
|
2985
3007
|
}) || 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$
|
|
3008
|
+
return tag($jscomp$templatelit$m425881384$8);
|
|
3009
|
+
}), 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
3010
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
2989
3011
|
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
3012
|
!0 : !1;
|
|
@@ -3310,9 +3332,9 @@ function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr
|
|
|
3310
3332
|
}
|
|
3311
3333
|
}
|
|
3312
3334
|
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$
|
|
3335
|
+
var $jscomp$tmp$error$494508883$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.IframeIntent[intent]);
|
|
3336
|
+
this.message = $jscomp$tmp$error$494508883$1.message;
|
|
3337
|
+
"stack" in $jscomp$tmp$error$494508883$1 && (this.stack = $jscomp$tmp$error$494508883$1.stack);
|
|
3316
3338
|
this.type = type;
|
|
3317
3339
|
this.intent = intent;
|
|
3318
3340
|
this.name = "TypeCannotBeUsedWithIframeIntentError";
|
|
@@ -3408,7 +3430,7 @@ function module$contents$safevalues$dom$globals$window_getStyleNonce(doc) {
|
|
|
3408
3430
|
module$exports$safevalues$dom$globals$window.getStyleNonce = module$contents$safevalues$dom$globals$window_getStyleNonce;
|
|
3409
3431
|
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, doc) {
|
|
3410
3432
|
doc = doc === void 0 ? document : doc;
|
|
3411
|
-
var $jscomp$optchain$
|
|
3433
|
+
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
3434
|
return el == null ? "" : el.nonce || el.getAttribute("nonce") || "";
|
|
3413
3435
|
}
|
|
3414
3436
|
;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 +4863,9 @@ function module$contents$safevalues$dom$globals$dom_parser_domParserParseFromStr
|
|
|
4841
4863
|
module$exports$safevalues$dom$globals$dom_parser.domParserParseFromString = module$contents$safevalues$dom$globals$dom_parser_domParserParseFromString;
|
|
4842
4864
|
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
4865
|
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$
|
|
4866
|
+
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.");
|
|
4867
|
+
this.message = $jscomp$tmp$error$1153895636$25.message;
|
|
4868
|
+
"stack" in $jscomp$tmp$error$1153895636$25 && (this.stack = $jscomp$tmp$error$1153895636$25.stack);
|
|
4847
4869
|
this.url = url;
|
|
4848
4870
|
this.typeName = typeName;
|
|
4849
4871
|
this.contentType = contentType;
|
|
@@ -4855,48 +4877,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
|
|
|
4855
4877
|
return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
|
|
4856
4878
|
}
|
|
4857
4879
|
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$
|
|
4880
|
+
var response, $jscomp$optchain$tmp1153895636$0, $jscomp$optchain$tmp1153895636$1, $jscomp$optchain$tmp1153895636$2, mimeType;
|
|
4881
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$29) {
|
|
4882
|
+
if ($jscomp$generator$context$1153895636$29.nextAddress == 1) {
|
|
4883
|
+
return $jscomp$generator$context$1153895636$29.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
|
|
4884
|
+
}
|
|
4885
|
+
response = $jscomp$generator$context$1153895636$29.yieldResult;
|
|
4886
|
+
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();
|
|
4887
|
+
return $jscomp$generator$context$1153895636$29.return({html:function() {
|
|
4866
4888
|
var text;
|
|
4867
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4868
|
-
if ($jscomp$generator$context$
|
|
4889
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$26) {
|
|
4890
|
+
if ($jscomp$generator$context$1153895636$26.nextAddress == 1) {
|
|
4869
4891
|
if (mimeType !== "text/html") {
|
|
4870
4892
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
|
|
4871
4893
|
}
|
|
4872
|
-
return $jscomp$generator$context$
|
|
4894
|
+
return $jscomp$generator$context$1153895636$26.yield(response.text(), 2);
|
|
4873
4895
|
}
|
|
4874
|
-
text = $jscomp$generator$context$
|
|
4875
|
-
return $jscomp$generator$context$
|
|
4896
|
+
text = $jscomp$generator$context$1153895636$26.yieldResult;
|
|
4897
|
+
return $jscomp$generator$context$1153895636$26.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
|
|
4876
4898
|
});
|
|
4877
4899
|
}, script:function() {
|
|
4878
4900
|
var text;
|
|
4879
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4880
|
-
if ($jscomp$generator$context$
|
|
4901
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$27) {
|
|
4902
|
+
if ($jscomp$generator$context$1153895636$27.nextAddress == 1) {
|
|
4881
4903
|
if (mimeType !== "text/javascript" && mimeType !== "application/javascript") {
|
|
4882
4904
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
|
|
4883
4905
|
}
|
|
4884
|
-
return $jscomp$generator$context$
|
|
4906
|
+
return $jscomp$generator$context$1153895636$27.yield(response.text(), 2);
|
|
4885
4907
|
}
|
|
4886
|
-
text = $jscomp$generator$context$
|
|
4887
|
-
return $jscomp$generator$context$
|
|
4908
|
+
text = $jscomp$generator$context$1153895636$27.yieldResult;
|
|
4909
|
+
return $jscomp$generator$context$1153895636$27.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
|
|
4888
4910
|
});
|
|
4889
4911
|
}, styleSheet:function() {
|
|
4890
4912
|
var text;
|
|
4891
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4892
|
-
if ($jscomp$generator$context$
|
|
4913
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$1153895636$28) {
|
|
4914
|
+
if ($jscomp$generator$context$1153895636$28.nextAddress == 1) {
|
|
4893
4915
|
if (mimeType !== "text/css") {
|
|
4894
4916
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
|
|
4895
4917
|
}
|
|
4896
|
-
return $jscomp$generator$context$
|
|
4918
|
+
return $jscomp$generator$context$1153895636$28.yield(response.text(), 2);
|
|
4897
4919
|
}
|
|
4898
|
-
text = $jscomp$generator$context$
|
|
4899
|
-
return $jscomp$generator$context$
|
|
4920
|
+
text = $jscomp$generator$context$1153895636$28.yieldResult;
|
|
4921
|
+
return $jscomp$generator$context$1153895636$28.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
|
|
4900
4922
|
});
|
|
4901
4923
|
}});
|
|
4902
4924
|
});
|
|
@@ -5852,38 +5874,38 @@ goog.uri.utils.setUrlPackageSupportLoggingHandler = function(handler) {
|
|
|
5852
5874
|
module$contents$goog$uri$utils_urlPackageSupportLoggingHandler = handler;
|
|
5853
5875
|
};
|
|
5854
5876
|
goog.uri.utils.split = module$contents$goog$uri$utils_split;
|
|
5855
|
-
goog
|
|
5877
|
+
function module$contents$goog$Uri_Uri(opt_uri, opt_ignoreCase) {
|
|
5856
5878
|
this.domain_ = this.userInfo_ = this.scheme_ = "";
|
|
5857
5879
|
this.port_ = null;
|
|
5858
5880
|
this.fragment_ = this.path_ = "";
|
|
5859
5881
|
this.ignoreCase_ = this.isReadOnly_ = !1;
|
|
5860
5882
|
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.
|
|
5883
|
+
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_ =
|
|
5884
|
+
!!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] ||
|
|
5885
|
+
"", !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_));
|
|
5886
|
+
}
|
|
5887
|
+
module$contents$goog$Uri_Uri.RANDOM_PARAM = module$contents$goog$uri$utils_StandardQueryParam.RANDOM;
|
|
5888
|
+
module$contents$goog$Uri_Uri.prototype.toString = function() {
|
|
5867
5889
|
var out = [], scheme = this.getScheme();
|
|
5868
|
-
scheme && out.push(goog.
|
|
5890
|
+
scheme && out.push(module$contents$goog$Uri_Uri.encodeSpecialChars_(scheme, module$contents$goog$Uri_Uri.reDisallowedInSchemeOrUserInfo_, !0), ":");
|
|
5869
5891
|
var domain = this.getDomain();
|
|
5870
5892
|
if (domain || scheme == "file") {
|
|
5871
5893
|
out.push("//");
|
|
5872
5894
|
var userInfo = this.getUserInfo();
|
|
5873
|
-
userInfo && out.push(goog.
|
|
5874
|
-
out.push(goog.
|
|
5895
|
+
userInfo && out.push(module$contents$goog$Uri_Uri.encodeSpecialChars_(userInfo, module$contents$goog$Uri_Uri.reDisallowedInSchemeOrUserInfo_, !0), "@");
|
|
5896
|
+
out.push(module$contents$goog$Uri_Uri.removeDoubleEncoding_(goog.string.urlEncode(domain)));
|
|
5875
5897
|
var port = this.getPort();
|
|
5876
5898
|
port != null && out.push(":", String(port));
|
|
5877
5899
|
}
|
|
5878
5900
|
var path = this.getPath();
|
|
5879
|
-
path && (this.hasDomain() && path.charAt(0) != "/" && out.push("/"), out.push(goog.
|
|
5901
|
+
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
5902
|
var query = this.getEncodedQuery();
|
|
5881
5903
|
query && out.push("?", query);
|
|
5882
5904
|
var fragment = this.getFragment();
|
|
5883
|
-
fragment && out.push("#", goog.
|
|
5905
|
+
fragment && out.push("#", module$contents$goog$Uri_Uri.encodeSpecialChars_(fragment, module$contents$goog$Uri_Uri.reDisallowedInFragment_));
|
|
5884
5906
|
return out.join("");
|
|
5885
5907
|
};
|
|
5886
|
-
goog.
|
|
5908
|
+
module$contents$goog$Uri_Uri.prototype.resolve = function(relativeUri) {
|
|
5887
5909
|
var absoluteUri = this.clone(), overridden = relativeUri.hasScheme();
|
|
5888
5910
|
overridden ? absoluteUri.setScheme(relativeUri.getScheme()) : overridden = relativeUri.hasUserInfo();
|
|
5889
5911
|
overridden ? absoluteUri.setUserInfo(relativeUri.getUserInfo()) : overridden = relativeUri.hasDomain();
|
|
@@ -5901,7 +5923,7 @@ goog.Uri.prototype.resolve = function(relativeUri) {
|
|
|
5901
5923
|
lastSlashIndex != -1 && (path = absoluteUri.getPath().slice(0, lastSlashIndex + 1) + path);
|
|
5902
5924
|
}
|
|
5903
5925
|
}
|
|
5904
|
-
path = goog.
|
|
5926
|
+
path = module$contents$goog$Uri_Uri.removeDotSegments(path);
|
|
5905
5927
|
}
|
|
5906
5928
|
}
|
|
5907
5929
|
overridden ? absoluteUri.setPath(path) : overridden = relativeUri.hasQuery();
|
|
@@ -5909,48 +5931,48 @@ goog.Uri.prototype.resolve = function(relativeUri) {
|
|
|
5909
5931
|
overridden && absoluteUri.setFragment(relativeUri.getFragment());
|
|
5910
5932
|
return absoluteUri;
|
|
5911
5933
|
};
|
|
5912
|
-
goog.
|
|
5913
|
-
return new goog
|
|
5934
|
+
module$contents$goog$Uri_Uri.prototype.clone = function() {
|
|
5935
|
+
return new module$contents$goog$Uri_Uri(this);
|
|
5914
5936
|
};
|
|
5915
|
-
goog.
|
|
5937
|
+
module$contents$goog$Uri_Uri.prototype.getScheme = function() {
|
|
5916
5938
|
return this.scheme_;
|
|
5917
5939
|
};
|
|
5918
|
-
goog.
|
|
5940
|
+
module$contents$goog$Uri_Uri.prototype.setScheme = function(newScheme, opt_decode) {
|
|
5919
5941
|
this.enforceReadOnly();
|
|
5920
|
-
if (this.scheme_ = opt_decode ? goog.
|
|
5942
|
+
if (this.scheme_ = opt_decode ? module$contents$goog$Uri_Uri.decodeOrEmpty_(newScheme, !0) : newScheme) {
|
|
5921
5943
|
this.scheme_ = this.scheme_.replace(/:$/, "");
|
|
5922
5944
|
}
|
|
5923
5945
|
return this;
|
|
5924
5946
|
};
|
|
5925
|
-
goog.
|
|
5947
|
+
module$contents$goog$Uri_Uri.prototype.hasScheme = function() {
|
|
5926
5948
|
return !!this.scheme_;
|
|
5927
5949
|
};
|
|
5928
|
-
goog.
|
|
5950
|
+
module$contents$goog$Uri_Uri.prototype.getUserInfo = function() {
|
|
5929
5951
|
return this.userInfo_;
|
|
5930
5952
|
};
|
|
5931
|
-
goog.
|
|
5953
|
+
module$contents$goog$Uri_Uri.prototype.setUserInfo = function(newUserInfo, opt_decode) {
|
|
5932
5954
|
this.enforceReadOnly();
|
|
5933
|
-
this.userInfo_ = opt_decode ? goog.
|
|
5955
|
+
this.userInfo_ = opt_decode ? module$contents$goog$Uri_Uri.decodeOrEmpty_(newUserInfo) : newUserInfo;
|
|
5934
5956
|
return this;
|
|
5935
5957
|
};
|
|
5936
|
-
goog.
|
|
5958
|
+
module$contents$goog$Uri_Uri.prototype.hasUserInfo = function() {
|
|
5937
5959
|
return !!this.userInfo_;
|
|
5938
5960
|
};
|
|
5939
|
-
goog.
|
|
5961
|
+
module$contents$goog$Uri_Uri.prototype.getDomain = function() {
|
|
5940
5962
|
return this.domain_;
|
|
5941
5963
|
};
|
|
5942
|
-
goog.
|
|
5964
|
+
module$contents$goog$Uri_Uri.prototype.setDomain = function(newDomain, opt_decode) {
|
|
5943
5965
|
this.enforceReadOnly();
|
|
5944
|
-
this.domain_ = opt_decode ? goog.
|
|
5966
|
+
this.domain_ = opt_decode ? module$contents$goog$Uri_Uri.decodeOrEmpty_(newDomain, !0) : newDomain;
|
|
5945
5967
|
return this;
|
|
5946
5968
|
};
|
|
5947
|
-
goog.
|
|
5969
|
+
module$contents$goog$Uri_Uri.prototype.hasDomain = function() {
|
|
5948
5970
|
return !!this.domain_;
|
|
5949
5971
|
};
|
|
5950
|
-
goog.
|
|
5972
|
+
module$contents$goog$Uri_Uri.prototype.getPort = function() {
|
|
5951
5973
|
return this.port_;
|
|
5952
5974
|
};
|
|
5953
|
-
goog.
|
|
5975
|
+
module$contents$goog$Uri_Uri.prototype.setPort = function(newPort) {
|
|
5954
5976
|
this.enforceReadOnly();
|
|
5955
5977
|
if (newPort) {
|
|
5956
5978
|
newPort = Number(newPort);
|
|
@@ -5963,109 +5985,109 @@ goog.Uri.prototype.setPort = function(newPort) {
|
|
|
5963
5985
|
}
|
|
5964
5986
|
return this;
|
|
5965
5987
|
};
|
|
5966
|
-
goog.
|
|
5988
|
+
module$contents$goog$Uri_Uri.prototype.hasPort = function() {
|
|
5967
5989
|
return this.port_ != null;
|
|
5968
5990
|
};
|
|
5969
|
-
goog.
|
|
5991
|
+
module$contents$goog$Uri_Uri.prototype.getPath = function() {
|
|
5970
5992
|
return this.path_;
|
|
5971
5993
|
};
|
|
5972
|
-
goog.
|
|
5994
|
+
module$contents$goog$Uri_Uri.prototype.setPath = function(newPath, opt_decode) {
|
|
5973
5995
|
this.enforceReadOnly();
|
|
5974
|
-
this.path_ = opt_decode ? goog.
|
|
5996
|
+
this.path_ = opt_decode ? module$contents$goog$Uri_Uri.decodeOrEmpty_(newPath, !0) : newPath;
|
|
5975
5997
|
return this;
|
|
5976
5998
|
};
|
|
5977
|
-
goog.
|
|
5999
|
+
module$contents$goog$Uri_Uri.prototype.hasPath = function() {
|
|
5978
6000
|
return !!this.path_;
|
|
5979
6001
|
};
|
|
5980
|
-
goog.
|
|
6002
|
+
module$contents$goog$Uri_Uri.prototype.hasQuery = function() {
|
|
5981
6003
|
return this.queryData_.toString() !== "";
|
|
5982
6004
|
};
|
|
5983
|
-
goog.
|
|
6005
|
+
module$contents$goog$Uri_Uri.prototype.setQueryData = function(queryData, opt_decode) {
|
|
5984
6006
|
this.enforceReadOnly();
|
|
5985
|
-
queryData instanceof goog.
|
|
6007
|
+
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
6008
|
return this;
|
|
5987
6009
|
};
|
|
5988
|
-
goog.
|
|
6010
|
+
module$contents$goog$Uri_Uri.prototype.setQuery = function(newQuery, opt_decode) {
|
|
5989
6011
|
return this.setQueryData(newQuery, opt_decode);
|
|
5990
6012
|
};
|
|
5991
|
-
goog.
|
|
6013
|
+
module$contents$goog$Uri_Uri.prototype.getEncodedQuery = function() {
|
|
5992
6014
|
return this.queryData_.toString();
|
|
5993
6015
|
};
|
|
5994
|
-
goog.
|
|
6016
|
+
module$contents$goog$Uri_Uri.prototype.getDecodedQuery = function() {
|
|
5995
6017
|
return this.queryData_.toDecodedString();
|
|
5996
6018
|
};
|
|
5997
|
-
goog.
|
|
6019
|
+
module$contents$goog$Uri_Uri.prototype.getQueryData = function() {
|
|
5998
6020
|
return this.queryData_;
|
|
5999
6021
|
};
|
|
6000
|
-
goog.
|
|
6022
|
+
module$contents$goog$Uri_Uri.prototype.getQuery = function() {
|
|
6001
6023
|
return this.getEncodedQuery();
|
|
6002
6024
|
};
|
|
6003
|
-
goog.
|
|
6025
|
+
module$contents$goog$Uri_Uri.prototype.setParameterValue = function(key, value) {
|
|
6004
6026
|
this.enforceReadOnly();
|
|
6005
6027
|
this.queryData_.set(key, value);
|
|
6006
6028
|
return this;
|
|
6007
6029
|
};
|
|
6008
|
-
goog.
|
|
6030
|
+
module$contents$goog$Uri_Uri.prototype.setParameterValues = function(key, values) {
|
|
6009
6031
|
this.enforceReadOnly();
|
|
6010
6032
|
Array.isArray(values) || (values = [String(values)]);
|
|
6011
6033
|
this.queryData_.setValues(key, values);
|
|
6012
6034
|
return this;
|
|
6013
6035
|
};
|
|
6014
|
-
goog.
|
|
6036
|
+
module$contents$goog$Uri_Uri.prototype.getParameterValues = function(name) {
|
|
6015
6037
|
return this.queryData_.getValues(name);
|
|
6016
6038
|
};
|
|
6017
|
-
goog.
|
|
6039
|
+
module$contents$goog$Uri_Uri.prototype.getParameterValue = function(paramName) {
|
|
6018
6040
|
return this.queryData_.get(paramName);
|
|
6019
6041
|
};
|
|
6020
|
-
goog.
|
|
6042
|
+
module$contents$goog$Uri_Uri.prototype.getFragment = function() {
|
|
6021
6043
|
return this.fragment_;
|
|
6022
6044
|
};
|
|
6023
|
-
goog.
|
|
6045
|
+
module$contents$goog$Uri_Uri.prototype.setFragment = function(newFragment, opt_decode) {
|
|
6024
6046
|
this.enforceReadOnly();
|
|
6025
|
-
this.fragment_ = opt_decode ? goog.
|
|
6047
|
+
this.fragment_ = opt_decode ? module$contents$goog$Uri_Uri.decodeOrEmpty_(newFragment) : newFragment;
|
|
6026
6048
|
return this;
|
|
6027
6049
|
};
|
|
6028
|
-
goog.
|
|
6050
|
+
module$contents$goog$Uri_Uri.prototype.hasFragment = function() {
|
|
6029
6051
|
return !!this.fragment_;
|
|
6030
6052
|
};
|
|
6031
|
-
goog.
|
|
6053
|
+
module$contents$goog$Uri_Uri.prototype.hasSameDomainAs = function(uri2) {
|
|
6032
6054
|
return (!this.hasDomain() && !uri2.hasDomain() || this.getDomain() == uri2.getDomain()) && (!this.hasPort() && !uri2.hasPort() || this.getPort() == uri2.getPort());
|
|
6033
6055
|
};
|
|
6034
|
-
goog.
|
|
6056
|
+
module$contents$goog$Uri_Uri.prototype.makeUnique = function() {
|
|
6035
6057
|
this.enforceReadOnly();
|
|
6036
|
-
this.setParameterValue(goog.
|
|
6058
|
+
this.setParameterValue(module$contents$goog$Uri_Uri.RANDOM_PARAM, goog.string.getRandomString());
|
|
6037
6059
|
return this;
|
|
6038
6060
|
};
|
|
6039
|
-
goog.
|
|
6061
|
+
module$contents$goog$Uri_Uri.prototype.removeParameter = function(key) {
|
|
6040
6062
|
this.enforceReadOnly();
|
|
6041
6063
|
this.queryData_.remove(key);
|
|
6042
6064
|
return this;
|
|
6043
6065
|
};
|
|
6044
|
-
goog.
|
|
6066
|
+
module$contents$goog$Uri_Uri.prototype.setReadOnly = function(isReadOnly) {
|
|
6045
6067
|
this.isReadOnly_ = isReadOnly;
|
|
6046
6068
|
return this;
|
|
6047
6069
|
};
|
|
6048
|
-
goog.
|
|
6070
|
+
module$contents$goog$Uri_Uri.prototype.isReadOnly = function() {
|
|
6049
6071
|
return this.isReadOnly_;
|
|
6050
6072
|
};
|
|
6051
|
-
goog.
|
|
6073
|
+
module$contents$goog$Uri_Uri.prototype.enforceReadOnly = function() {
|
|
6052
6074
|
if (this.isReadOnly_) {
|
|
6053
6075
|
throw Error("Tried to modify a read-only Uri");
|
|
6054
6076
|
}
|
|
6055
6077
|
};
|
|
6056
|
-
goog.
|
|
6078
|
+
module$contents$goog$Uri_Uri.prototype.setIgnoreCase = function(ignoreCase) {
|
|
6057
6079
|
this.ignoreCase_ = ignoreCase;
|
|
6058
6080
|
this.queryData_ && this.queryData_.setIgnoreCase(ignoreCase);
|
|
6059
6081
|
return this;
|
|
6060
6082
|
};
|
|
6061
|
-
goog.
|
|
6083
|
+
module$contents$goog$Uri_Uri.prototype.getIgnoreCase = function() {
|
|
6062
6084
|
return this.ignoreCase_;
|
|
6063
6085
|
};
|
|
6064
|
-
goog.
|
|
6065
|
-
return uri instanceof goog
|
|
6086
|
+
module$contents$goog$Uri_Uri.parse = function(uri, opt_ignoreCase) {
|
|
6087
|
+
return uri instanceof module$contents$goog$Uri_Uri ? uri.clone() : new module$contents$goog$Uri_Uri(uri, opt_ignoreCase);
|
|
6066
6088
|
};
|
|
6067
|
-
goog.
|
|
6068
|
-
var uri = new goog
|
|
6089
|
+
module$contents$goog$Uri_Uri.create = function(opt_scheme, opt_userInfo, opt_domain, opt_port, opt_path, opt_query, opt_fragment, opt_ignoreCase) {
|
|
6090
|
+
var uri = new module$contents$goog$Uri_Uri(null, opt_ignoreCase);
|
|
6069
6091
|
opt_scheme && uri.setScheme(opt_scheme);
|
|
6070
6092
|
opt_userInfo && uri.setUserInfo(opt_userInfo);
|
|
6071
6093
|
opt_domain && uri.setDomain(opt_domain);
|
|
@@ -6075,12 +6097,12 @@ goog.Uri.create = function(opt_scheme, opt_userInfo, opt_domain, opt_port, opt_p
|
|
|
6075
6097
|
opt_fragment && uri.setFragment(opt_fragment);
|
|
6076
6098
|
return uri;
|
|
6077
6099
|
};
|
|
6078
|
-
goog.
|
|
6079
|
-
base instanceof goog
|
|
6080
|
-
rel instanceof goog
|
|
6100
|
+
module$contents$goog$Uri_Uri.resolve = function(base, rel) {
|
|
6101
|
+
base instanceof module$contents$goog$Uri_Uri || (base = module$contents$goog$Uri_Uri.parse(base));
|
|
6102
|
+
rel instanceof module$contents$goog$Uri_Uri || (rel = module$contents$goog$Uri_Uri.parse(rel));
|
|
6081
6103
|
return base.resolve(rel);
|
|
6082
6104
|
};
|
|
6083
|
-
goog.
|
|
6105
|
+
module$contents$goog$Uri_Uri.removeDotSegments = function(path) {
|
|
6084
6106
|
if (path == ".." || path == ".") {
|
|
6085
6107
|
return "";
|
|
6086
6108
|
}
|
|
@@ -6093,39 +6115,39 @@ goog.Uri.removeDotSegments = function(path) {
|
|
|
6093
6115
|
}
|
|
6094
6116
|
return path;
|
|
6095
6117
|
};
|
|
6096
|
-
goog.
|
|
6118
|
+
module$contents$goog$Uri_Uri.decodeOrEmpty_ = function(val, opt_preserveReserved) {
|
|
6097
6119
|
return val ? opt_preserveReserved ? decodeURI(val.replace(/%25/g, "%2525")) : decodeURIComponent(val) : "";
|
|
6098
6120
|
};
|
|
6099
|
-
goog.
|
|
6121
|
+
module$contents$goog$Uri_Uri.encodeSpecialChars_ = function(unescapedPart, extra, opt_removeDoubleEncoding) {
|
|
6100
6122
|
if (typeof unescapedPart === "string") {
|
|
6101
|
-
var encoded = encodeURI(unescapedPart).replace(extra, goog.
|
|
6102
|
-
opt_removeDoubleEncoding && (encoded = goog.
|
|
6123
|
+
var encoded = encodeURI(unescapedPart).replace(extra, module$contents$goog$Uri_Uri.encodeChar_);
|
|
6124
|
+
opt_removeDoubleEncoding && (encoded = module$contents$goog$Uri_Uri.removeDoubleEncoding_(encoded));
|
|
6103
6125
|
return encoded;
|
|
6104
6126
|
}
|
|
6105
6127
|
return null;
|
|
6106
6128
|
};
|
|
6107
|
-
goog.
|
|
6129
|
+
module$contents$goog$Uri_Uri.encodeChar_ = function(ch) {
|
|
6108
6130
|
var n = ch.charCodeAt(0);
|
|
6109
6131
|
return "%" + (n >> 4 & 15).toString(16) + (n & 15).toString(16);
|
|
6110
6132
|
};
|
|
6111
|
-
goog.
|
|
6133
|
+
module$contents$goog$Uri_Uri.removeDoubleEncoding_ = function(doubleEncodedString) {
|
|
6112
6134
|
return doubleEncodedString.replace(/%25([0-9a-fA-F]{2})/g, "%$1");
|
|
6113
6135
|
};
|
|
6114
|
-
goog.
|
|
6115
|
-
goog.
|
|
6116
|
-
goog.
|
|
6117
|
-
goog.
|
|
6118
|
-
goog.
|
|
6119
|
-
goog.
|
|
6136
|
+
module$contents$goog$Uri_Uri.reDisallowedInSchemeOrUserInfo_ = /[#\/\?@]/g;
|
|
6137
|
+
module$contents$goog$Uri_Uri.reDisallowedInRelativePath_ = /[#\?:]/g;
|
|
6138
|
+
module$contents$goog$Uri_Uri.reDisallowedInAbsolutePath_ = /[#\?]/g;
|
|
6139
|
+
module$contents$goog$Uri_Uri.reDisallowedInQuery_ = /[#\?@]/g;
|
|
6140
|
+
module$contents$goog$Uri_Uri.reDisallowedInFragment_ = /#/g;
|
|
6141
|
+
module$contents$goog$Uri_Uri.haveSameDomain = function(uri1String, uri2String) {
|
|
6120
6142
|
var pieces1 = module$contents$goog$uri$utils_split(uri1String), pieces2 = module$contents$goog$uri$utils_split(uri2String);
|
|
6121
6143
|
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
6144
|
};
|
|
6123
|
-
goog.
|
|
6145
|
+
module$contents$goog$Uri_Uri.QueryData = function(opt_query, opt_ignoreCase) {
|
|
6124
6146
|
this.count_ = this.keyMap_ = null;
|
|
6125
6147
|
this.encodedQuery_ = opt_query || null;
|
|
6126
6148
|
this.ignoreCase_ = !!opt_ignoreCase;
|
|
6127
6149
|
};
|
|
6128
|
-
goog.
|
|
6150
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.ensureKeyMapInitialized_ = function() {
|
|
6129
6151
|
if (!this.keyMap_ && (this.keyMap_ = new Map(), this.count_ = 0, this.encodedQuery_)) {
|
|
6130
6152
|
var self = this;
|
|
6131
6153
|
module$contents$goog$uri$utils_parseQueryData(this.encodedQuery_, function(name, value) {
|
|
@@ -6133,31 +6155,31 @@ goog.Uri.QueryData.prototype.ensureKeyMapInitialized_ = function() {
|
|
|
6133
6155
|
});
|
|
6134
6156
|
}
|
|
6135
6157
|
};
|
|
6136
|
-
goog.
|
|
6158
|
+
module$contents$goog$Uri_Uri.QueryData.createFromMap = function(map, opt_ignoreCase) {
|
|
6137
6159
|
var keys = goog.structs.getKeys(map);
|
|
6138
6160
|
if (typeof keys == "undefined") {
|
|
6139
6161
|
throw Error("Keys are undefined");
|
|
6140
6162
|
}
|
|
6141
|
-
for (var queryData = new goog.
|
|
6163
|
+
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
6164
|
var key = keys[i], value = values[i];
|
|
6143
6165
|
Array.isArray(value) ? queryData.setValues(key, value) : queryData.add(key, value);
|
|
6144
6166
|
}
|
|
6145
6167
|
return queryData;
|
|
6146
6168
|
};
|
|
6147
|
-
goog.
|
|
6169
|
+
module$contents$goog$Uri_Uri.QueryData.createFromKeysValues = function(keys, values, opt_ignoreCase) {
|
|
6148
6170
|
if (keys.length != values.length) {
|
|
6149
6171
|
throw Error("Mismatched lengths for keys/values");
|
|
6150
6172
|
}
|
|
6151
|
-
for (var queryData = new goog.
|
|
6173
|
+
for (var queryData = new module$contents$goog$Uri_Uri.QueryData(null, opt_ignoreCase), i = 0; i < keys.length; i++) {
|
|
6152
6174
|
queryData.add(keys[i], values[i]);
|
|
6153
6175
|
}
|
|
6154
6176
|
return queryData;
|
|
6155
6177
|
};
|
|
6156
|
-
goog.
|
|
6178
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.getCount = function() {
|
|
6157
6179
|
this.ensureKeyMapInitialized_();
|
|
6158
6180
|
return this.count_;
|
|
6159
6181
|
};
|
|
6160
|
-
goog.
|
|
6182
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.add = function(key, value) {
|
|
6161
6183
|
this.ensureKeyMapInitialized_();
|
|
6162
6184
|
this.invalidateCache_();
|
|
6163
6185
|
key = this.getKeyName_(key);
|
|
@@ -6167,30 +6189,30 @@ goog.Uri.QueryData.prototype.add = function(key, value) {
|
|
|
6167
6189
|
this.count_ = goog.asserts.assertNumber(this.count_) + 1;
|
|
6168
6190
|
return this;
|
|
6169
6191
|
};
|
|
6170
|
-
goog.
|
|
6192
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.remove = function(key) {
|
|
6171
6193
|
this.ensureKeyMapInitialized_();
|
|
6172
6194
|
key = this.getKeyName_(key);
|
|
6173
6195
|
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
6196
|
};
|
|
6175
|
-
goog.
|
|
6197
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.clear = function() {
|
|
6176
6198
|
this.invalidateCache_();
|
|
6177
6199
|
this.keyMap_ = null;
|
|
6178
6200
|
this.count_ = 0;
|
|
6179
6201
|
};
|
|
6180
|
-
goog.
|
|
6202
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.isEmpty = function() {
|
|
6181
6203
|
this.ensureKeyMapInitialized_();
|
|
6182
6204
|
return this.count_ == 0;
|
|
6183
6205
|
};
|
|
6184
|
-
goog.
|
|
6206
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.containsKey = function(key) {
|
|
6185
6207
|
this.ensureKeyMapInitialized_();
|
|
6186
6208
|
key = this.getKeyName_(key);
|
|
6187
6209
|
return this.keyMap_.has(key);
|
|
6188
6210
|
};
|
|
6189
|
-
goog.
|
|
6211
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.containsValue = function(value) {
|
|
6190
6212
|
var vals = this.getValues();
|
|
6191
6213
|
return module$contents$goog$array_contains(vals, value);
|
|
6192
6214
|
};
|
|
6193
|
-
goog.
|
|
6215
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.forEach = function(f, opt_scope) {
|
|
6194
6216
|
this.ensureKeyMapInitialized_();
|
|
6195
6217
|
this.keyMap_.forEach(function(values, key) {
|
|
6196
6218
|
values.forEach(function(value) {
|
|
@@ -6198,7 +6220,7 @@ goog.Uri.QueryData.prototype.forEach = function(f, opt_scope) {
|
|
|
6198
6220
|
}, this);
|
|
6199
6221
|
}, this);
|
|
6200
6222
|
};
|
|
6201
|
-
goog.
|
|
6223
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.getKeys = function() {
|
|
6202
6224
|
this.ensureKeyMapInitialized_();
|
|
6203
6225
|
for (var vals = Array.from(this.keyMap_.values()), keys = Array.from(this.keyMap_.keys()), rv = [], i = 0; i < keys.length; i++) {
|
|
6204
6226
|
for (var val = vals[i], j = 0; j < val.length; j++) {
|
|
@@ -6207,7 +6229,7 @@ goog.Uri.QueryData.prototype.getKeys = function() {
|
|
|
6207
6229
|
}
|
|
6208
6230
|
return rv;
|
|
6209
6231
|
};
|
|
6210
|
-
goog.
|
|
6232
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.getValues = function(opt_key) {
|
|
6211
6233
|
this.ensureKeyMapInitialized_();
|
|
6212
6234
|
var rv = [];
|
|
6213
6235
|
if (typeof opt_key === "string") {
|
|
@@ -6219,7 +6241,7 @@ goog.Uri.QueryData.prototype.getValues = function(opt_key) {
|
|
|
6219
6241
|
}
|
|
6220
6242
|
return rv;
|
|
6221
6243
|
};
|
|
6222
|
-
goog.
|
|
6244
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.set = function(key, value) {
|
|
6223
6245
|
this.ensureKeyMapInitialized_();
|
|
6224
6246
|
this.invalidateCache_();
|
|
6225
6247
|
key = this.getKeyName_(key);
|
|
@@ -6228,18 +6250,18 @@ goog.Uri.QueryData.prototype.set = function(key, value) {
|
|
|
6228
6250
|
this.count_ = goog.asserts.assertNumber(this.count_) + 1;
|
|
6229
6251
|
return this;
|
|
6230
6252
|
};
|
|
6231
|
-
goog.
|
|
6253
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.get = function(key, opt_default) {
|
|
6232
6254
|
if (!key) {
|
|
6233
6255
|
return opt_default;
|
|
6234
6256
|
}
|
|
6235
6257
|
var values = this.getValues(key);
|
|
6236
6258
|
return values.length > 0 ? String(values[0]) : opt_default;
|
|
6237
6259
|
};
|
|
6238
|
-
goog.
|
|
6260
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.setValues = function(key, values) {
|
|
6239
6261
|
this.remove(key);
|
|
6240
6262
|
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
6263
|
};
|
|
6242
|
-
goog.
|
|
6264
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.toString = function() {
|
|
6243
6265
|
if (this.encodedQuery_) {
|
|
6244
6266
|
return this.encodedQuery_;
|
|
6245
6267
|
}
|
|
@@ -6255,44 +6277,45 @@ goog.Uri.QueryData.prototype.toString = function() {
|
|
|
6255
6277
|
}
|
|
6256
6278
|
return this.encodedQuery_ = sb.join("&");
|
|
6257
6279
|
};
|
|
6258
|
-
goog.
|
|
6259
|
-
return goog.
|
|
6280
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.toDecodedString = function() {
|
|
6281
|
+
return module$contents$goog$Uri_Uri.decodeOrEmpty_(this.toString());
|
|
6260
6282
|
};
|
|
6261
|
-
goog.
|
|
6283
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.invalidateCache_ = function() {
|
|
6262
6284
|
this.encodedQuery_ = null;
|
|
6263
6285
|
};
|
|
6264
|
-
goog.
|
|
6286
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.filterKeys = function(keys) {
|
|
6265
6287
|
this.ensureKeyMapInitialized_();
|
|
6266
6288
|
this.keyMap_.forEach(function(value, key) {
|
|
6267
6289
|
module$contents$goog$array_contains(keys, key) || this.remove(key);
|
|
6268
6290
|
}, this);
|
|
6269
6291
|
return this;
|
|
6270
6292
|
};
|
|
6271
|
-
goog.
|
|
6272
|
-
var rv = new goog.
|
|
6293
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.clone = function() {
|
|
6294
|
+
var rv = new module$contents$goog$Uri_Uri.QueryData();
|
|
6273
6295
|
rv.encodedQuery_ = this.encodedQuery_;
|
|
6274
6296
|
this.keyMap_ && (rv.keyMap_ = new Map(this.keyMap_), rv.count_ = this.count_);
|
|
6275
6297
|
return rv;
|
|
6276
6298
|
};
|
|
6277
|
-
goog.
|
|
6299
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.getKeyName_ = function(arg) {
|
|
6278
6300
|
var keyName = String(arg);
|
|
6279
6301
|
this.ignoreCase_ && (keyName = keyName.toLowerCase());
|
|
6280
6302
|
return keyName;
|
|
6281
6303
|
};
|
|
6282
|
-
goog.
|
|
6304
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.setIgnoreCase = function(ignoreCase) {
|
|
6283
6305
|
ignoreCase && !this.ignoreCase_ && (this.ensureKeyMapInitialized_(), this.invalidateCache_(), this.keyMap_.forEach(function(value, key) {
|
|
6284
6306
|
var lowerCase = key.toLowerCase();
|
|
6285
6307
|
key != lowerCase && (this.remove(key), this.setValues(lowerCase, value));
|
|
6286
6308
|
}, this));
|
|
6287
6309
|
this.ignoreCase_ = ignoreCase;
|
|
6288
6310
|
};
|
|
6289
|
-
goog.
|
|
6311
|
+
module$contents$goog$Uri_Uri.QueryData.prototype.extend = function(var_args) {
|
|
6290
6312
|
for (var i = 0; i < arguments.length; i++) {
|
|
6291
6313
|
goog.structs.forEach(arguments[i], function(value, key) {
|
|
6292
6314
|
this.add(key, value);
|
|
6293
6315
|
}, this);
|
|
6294
6316
|
}
|
|
6295
6317
|
};
|
|
6318
|
+
goog.Uri = module$contents$goog$Uri_Uri;
|
|
6296
6319
|
var module$exports$goog$net$rpc$HttpCors = {HTTP_HEADERS_PARAM_NAME:"$httpHeaders", HTTP_METHOD_PARAM_NAME:"$httpMethod", generateHttpHeadersOverwriteParam:function(headers) {
|
|
6297
6320
|
var result = "";
|
|
6298
6321
|
module$contents$goog$object_forEach(headers, function(value, key) {
|
|
@@ -6333,8 +6356,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
6333
6356
|
}
|
|
6334
6357
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
6335
6358
|
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$
|
|
6359
|
+
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()) {
|
|
6360
|
+
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
6361
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
6339
6362
|
}
|
|
6340
6363
|
return urlQueryParams;
|
|
@@ -6346,8 +6369,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params,
|
|
|
6346
6369
|
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1, hasSafeContentType = !1;
|
|
6347
6370
|
if (params.headers) {
|
|
6348
6371
|
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$
|
|
6372
|
+
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()) {
|
|
6373
|
+
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
6374
|
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
6375
|
}
|
|
6353
6376
|
}
|
|
@@ -6382,8 +6405,8 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$addHoo
|
|
|
6382
6405
|
}, function(error) {
|
|
6383
6406
|
throw error;
|
|
6384
6407
|
}).finally(function() {
|
|
6385
|
-
var $jscomp$optchain$
|
|
6386
|
-
($jscomp$optchain$
|
|
6408
|
+
var $jscomp$optchain$tmpm296226325$1;
|
|
6409
|
+
($jscomp$optchain$tmpm296226325$1 = hook.onFinalize) == null || $jscomp$optchain$tmpm296226325$1.call(hook);
|
|
6387
6410
|
});
|
|
6388
6411
|
};
|
|
6389
6412
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$request = function(requestParams) {
|
|
@@ -6391,9 +6414,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
|
|
|
6391
6414
|
return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
|
|
6392
6415
|
};
|
|
6393
6416
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
|
|
6394
|
-
var $jscomp$this$
|
|
6417
|
+
var $jscomp$this$m296226325$6 = this, responseCtor = requestParams.responseCtor || void 0;
|
|
6395
6418
|
return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
|
|
6396
|
-
return $jscomp$this$
|
|
6419
|
+
return $jscomp$this$m296226325$6.requestService.send(params, responseCtor);
|
|
6397
6420
|
}));
|
|
6398
6421
|
};
|
|
6399
6422
|
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"};
|
|
@@ -7352,7 +7375,7 @@ TRANSITIONEND:module$contents$goog$events$eventTypeHelpers_getVendorPrefixedName
|
|
|
7352
7375
|
MSGESTURETAP:"MSGestureTap", MSGOTPOINTERCAPTURE:"MSGotPointerCapture", MSINERTIASTART:"MSInertiaStart", MSLOSTPOINTERCAPTURE:"MSLostPointerCapture", MSPOINTERCANCEL:"MSPointerCancel", MSPOINTERDOWN:"MSPointerDown", MSPOINTERENTER:"MSPointerEnter", MSPOINTERHOVER:"MSPointerHover", MSPOINTERLEAVE:"MSPointerLeave", MSPOINTERMOVE:"MSPointerMove", MSPOINTEROUT:"MSPointerOut", MSPOINTEROVER:"MSPointerOver", MSPOINTERUP:"MSPointerUp", TEXT:"text", TEXTINPUT:"textInput", COMPOSITIONSTART:"compositionstart",
|
|
7353
7376
|
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", SIZECHANGED:"sizechanged", UNRESPONSIVE:"unresponsive", VISIBILITYCHANGE:"visibilitychange", STORAGE:"storage", BEFOREPRINT:"beforeprint",
|
|
7354
7377
|
AFTERPRINT:"afterprint", BEFOREINSTALLPROMPT:"beforeinstallprompt", APPINSTALLED:"appinstalled", CANCEL:"cancel", FINISH:"finish", REMOVE:"remove"};
|
|
7355
|
-
goog
|
|
7378
|
+
function module$contents$goog$events$BrowserEvent_BrowserEvent(opt_e, opt_currentTarget) {
|
|
7356
7379
|
goog.events.Event.call(this, opt_e ? opt_e.type : "");
|
|
7357
7380
|
this.relatedTarget = this.currentTarget = this.target = null;
|
|
7358
7381
|
this.button = this.screenY = this.screenX = this.clientY = this.clientX = this.offsetY = this.offsetX = 0;
|
|
@@ -7366,20 +7389,20 @@ goog.events.BrowserEvent = function(opt_e, opt_currentTarget) {
|
|
|
7366
7389
|
this.timeStamp = 0;
|
|
7367
7390
|
this.event_ = null;
|
|
7368
7391
|
opt_e && this.init(opt_e, opt_currentTarget);
|
|
7369
|
-
}
|
|
7370
|
-
goog.inherits(goog
|
|
7371
|
-
goog
|
|
7372
|
-
goog
|
|
7373
|
-
goog
|
|
7374
|
-
goog
|
|
7392
|
+
}
|
|
7393
|
+
goog.inherits(module$contents$goog$events$BrowserEvent_BrowserEvent, goog.events.Event);
|
|
7394
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.USE_LAYER_XY_AS_OFFSET_XY = !1;
|
|
7395
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.MouseButton = {LEFT:0, MIDDLE:1, RIGHT:2, BACK:3, FORWARD:4};
|
|
7396
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.PointerType = {MOUSE:"mouse", PEN:"pen", TOUCH:"touch"};
|
|
7397
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.prototype.init = function(e, opt_currentTarget) {
|
|
7375
7398
|
var type = this.type = e.type, relevantTouch = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : null;
|
|
7376
7399
|
this.target = e.target || e.srcElement;
|
|
7377
7400
|
this.currentTarget = opt_currentTarget;
|
|
7378
7401
|
var relatedTarget = e.relatedTarget;
|
|
7379
7402
|
relatedTarget || (type == goog.events.EventType.MOUSEOVER ? relatedTarget = e.fromElement : type == goog.events.EventType.MOUSEOUT && (relatedTarget = e.toElement));
|
|
7380
7403
|
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);
|
|
7404
|
+
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) :
|
|
7405
|
+
(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
7406
|
this.button = e.button;
|
|
7384
7407
|
this.keyCode = e.keyCode || 0;
|
|
7385
7408
|
this.key = e.key || "";
|
|
@@ -7390,33 +7413,34 @@ goog.events.BrowserEvent.prototype.init = function(e, opt_currentTarget) {
|
|
|
7390
7413
|
this.metaKey = e.metaKey;
|
|
7391
7414
|
this.platformModifierKey = goog.userAgent.MAC ? e.metaKey : e.ctrlKey;
|
|
7392
7415
|
this.pointerId = e.pointerId || 0;
|
|
7393
|
-
this.pointerType = goog
|
|
7416
|
+
this.pointerType = module$contents$goog$events$BrowserEvent_BrowserEvent.getPointerType_(e);
|
|
7394
7417
|
this.state = e.state;
|
|
7395
7418
|
this.timeStamp = e.timeStamp;
|
|
7396
7419
|
this.event_ = e;
|
|
7397
|
-
e.defaultPrevented && goog
|
|
7420
|
+
e.defaultPrevented && module$contents$goog$events$BrowserEvent_BrowserEvent.superClass_.preventDefault.call(this);
|
|
7398
7421
|
};
|
|
7399
|
-
goog
|
|
7422
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.prototype.isButton = function(button) {
|
|
7400
7423
|
return this.event_.button == button;
|
|
7401
7424
|
};
|
|
7402
|
-
goog
|
|
7403
|
-
return this.isButton(goog
|
|
7425
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.prototype.isMouseActionButton = function() {
|
|
7426
|
+
return this.isButton(module$contents$goog$events$BrowserEvent_BrowserEvent.MouseButton.LEFT) && !(goog.userAgent.MAC && this.ctrlKey);
|
|
7404
7427
|
};
|
|
7405
|
-
goog
|
|
7406
|
-
goog
|
|
7428
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.prototype.stopPropagation = function() {
|
|
7429
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.superClass_.stopPropagation.call(this);
|
|
7407
7430
|
this.event_.stopPropagation ? this.event_.stopPropagation() : this.event_.cancelBubble = !0;
|
|
7408
7431
|
};
|
|
7409
|
-
goog
|
|
7410
|
-
goog
|
|
7432
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.prototype.preventDefault = function() {
|
|
7433
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.superClass_.preventDefault.call(this);
|
|
7411
7434
|
var be = this.event_;
|
|
7412
7435
|
be.preventDefault ? be.preventDefault() : be.returnValue = !1;
|
|
7413
7436
|
};
|
|
7414
|
-
goog
|
|
7437
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.prototype.getBrowserEvent = function() {
|
|
7415
7438
|
return this.event_;
|
|
7416
7439
|
};
|
|
7417
|
-
goog
|
|
7440
|
+
module$contents$goog$events$BrowserEvent_BrowserEvent.getPointerType_ = function(e) {
|
|
7418
7441
|
return e.pointerType;
|
|
7419
7442
|
};
|
|
7443
|
+
goog.events.BrowserEvent = module$contents$goog$events$BrowserEvent_BrowserEvent;
|
|
7420
7444
|
goog.events.Listenable = function() {
|
|
7421
7445
|
};
|
|
7422
7446
|
goog.events.Listenable.IMPLEMENTED_BY_PROP = "closure_listenable_" + (Math.random() * 1E6 | 0);
|
|
@@ -7766,7 +7790,7 @@ goog.events.protectBrowserEventEntryPoint = function(errorHandler) {
|
|
|
7766
7790
|
goog.events.handleBrowserEvent_ = errorHandler.protectEntryPoint(goog.events.handleBrowserEvent_);
|
|
7767
7791
|
};
|
|
7768
7792
|
goog.events.handleBrowserEvent_ = function(listener, opt_evt) {
|
|
7769
|
-
return listener.removed ? !0 : goog.events.fireListener(listener, new goog
|
|
7793
|
+
return listener.removed ? !0 : goog.events.fireListener(listener, new module$contents$goog$events$BrowserEvent_BrowserEvent(opt_evt, this));
|
|
7770
7794
|
};
|
|
7771
7795
|
goog.events.markIeEvent_ = function(e) {
|
|
7772
7796
|
var useReturnValue = !1;
|
|
@@ -15498,51 +15522,51 @@ goog.Promise.Resolver_ = function(promise, resolve, reject) {
|
|
|
15498
15522
|
this.resolve = resolve;
|
|
15499
15523
|
this.reject = reject;
|
|
15500
15524
|
};
|
|
15501
|
-
goog
|
|
15525
|
+
function module$contents$goog$Timer_Timer(opt_interval, opt_timerObject) {
|
|
15502
15526
|
goog.events.EventTarget.call(this);
|
|
15503
15527
|
this.interval_ = opt_interval || 1;
|
|
15504
|
-
this.timerObject_ = opt_timerObject || goog.
|
|
15528
|
+
this.timerObject_ = opt_timerObject || module$contents$goog$Timer_Timer.defaultTimerObject;
|
|
15505
15529
|
this.boundTick_ = goog.bind(this.tick_, this);
|
|
15506
15530
|
this.last_ = goog.now();
|
|
15507
|
-
}
|
|
15508
|
-
goog.inherits(goog
|
|
15509
|
-
goog.
|
|
15510
|
-
goog.
|
|
15511
|
-
goog.
|
|
15512
|
-
goog.
|
|
15513
|
-
goog.
|
|
15514
|
-
goog.
|
|
15515
|
-
goog.
|
|
15531
|
+
}
|
|
15532
|
+
goog.inherits(module$contents$goog$Timer_Timer, goog.events.EventTarget);
|
|
15533
|
+
module$contents$goog$Timer_Timer.MAX_TIMEOUT_ = 2147483647;
|
|
15534
|
+
module$contents$goog$Timer_Timer.INVALID_TIMEOUT_ID_ = -1;
|
|
15535
|
+
module$contents$goog$Timer_Timer.prototype.enabled = !1;
|
|
15536
|
+
module$contents$goog$Timer_Timer.defaultTimerObject = goog.global;
|
|
15537
|
+
module$contents$goog$Timer_Timer.intervalScale = .8;
|
|
15538
|
+
module$contents$goog$Timer_Timer.prototype.timer_ = null;
|
|
15539
|
+
module$contents$goog$Timer_Timer.prototype.getInterval = function() {
|
|
15516
15540
|
return this.interval_;
|
|
15517
15541
|
};
|
|
15518
|
-
goog.
|
|
15542
|
+
module$contents$goog$Timer_Timer.prototype.setInterval = function(interval) {
|
|
15519
15543
|
this.interval_ = interval;
|
|
15520
15544
|
this.timer_ && this.enabled ? (this.stop(), this.start()) : this.timer_ && this.stop();
|
|
15521
15545
|
};
|
|
15522
|
-
goog.
|
|
15546
|
+
module$contents$goog$Timer_Timer.prototype.tick_ = function() {
|
|
15523
15547
|
if (this.enabled) {
|
|
15524
15548
|
var elapsed = goog.now() - this.last_;
|
|
15525
|
-
elapsed > 0 && elapsed < this.interval_ * goog.
|
|
15549
|
+
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
15550
|
}
|
|
15527
15551
|
};
|
|
15528
|
-
goog.
|
|
15529
|
-
this.dispatchEvent(goog.
|
|
15552
|
+
module$contents$goog$Timer_Timer.prototype.dispatchTick = function() {
|
|
15553
|
+
this.dispatchEvent(module$contents$goog$Timer_Timer.TICK);
|
|
15530
15554
|
};
|
|
15531
|
-
goog.
|
|
15555
|
+
module$contents$goog$Timer_Timer.prototype.start = function() {
|
|
15532
15556
|
this.enabled = !0;
|
|
15533
15557
|
this.timer_ || (this.timer_ = this.timerObject_.setTimeout(this.boundTick_, this.interval_), this.last_ = goog.now());
|
|
15534
15558
|
};
|
|
15535
|
-
goog.
|
|
15559
|
+
module$contents$goog$Timer_Timer.prototype.stop = function() {
|
|
15536
15560
|
this.enabled = !1;
|
|
15537
15561
|
this.timer_ && (this.timerObject_.clearTimeout(this.timer_), this.timer_ = null);
|
|
15538
15562
|
};
|
|
15539
|
-
goog.
|
|
15540
|
-
goog.
|
|
15563
|
+
module$contents$goog$Timer_Timer.prototype.disposeInternal = function() {
|
|
15564
|
+
module$contents$goog$Timer_Timer.superClass_.disposeInternal.call(this);
|
|
15541
15565
|
this.stop();
|
|
15542
15566
|
delete this.timerObject_;
|
|
15543
15567
|
};
|
|
15544
|
-
goog.
|
|
15545
|
-
goog.
|
|
15568
|
+
module$contents$goog$Timer_Timer.TICK = "tick";
|
|
15569
|
+
module$contents$goog$Timer_Timer.callOnce = function(listener, opt_delay, opt_handler) {
|
|
15546
15570
|
if (typeof listener === "function") {
|
|
15547
15571
|
opt_handler && (listener = goog.bind(listener, opt_handler));
|
|
15548
15572
|
} else if (listener && typeof listener.handleEvent == "function") {
|
|
@@ -15550,23 +15574,24 @@ goog.Timer.callOnce = function(listener, opt_delay, opt_handler) {
|
|
|
15550
15574
|
} else {
|
|
15551
15575
|
throw Error("Invalid listener argument");
|
|
15552
15576
|
}
|
|
15553
|
-
return Number(opt_delay) > goog.
|
|
15577
|
+
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
15578
|
};
|
|
15555
|
-
goog.
|
|
15556
|
-
goog.
|
|
15579
|
+
module$contents$goog$Timer_Timer.clear = function(timerId) {
|
|
15580
|
+
module$contents$goog$Timer_Timer.defaultTimerObject.clearTimeout(timerId);
|
|
15557
15581
|
};
|
|
15558
|
-
goog.
|
|
15582
|
+
module$contents$goog$Timer_Timer.promise = function(delay, opt_result) {
|
|
15559
15583
|
var timerKey = null;
|
|
15560
15584
|
return (new goog.Promise(function(resolve, reject) {
|
|
15561
|
-
timerKey = goog.
|
|
15585
|
+
timerKey = module$contents$goog$Timer_Timer.callOnce(function() {
|
|
15562
15586
|
resolve(opt_result);
|
|
15563
15587
|
}, delay);
|
|
15564
|
-
timerKey == goog.
|
|
15588
|
+
timerKey == module$contents$goog$Timer_Timer.INVALID_TIMEOUT_ID_ && reject(Error("Failed to schedule timer."));
|
|
15565
15589
|
})).thenCatch(function(error) {
|
|
15566
|
-
goog.
|
|
15590
|
+
module$contents$goog$Timer_Timer.clear(timerKey);
|
|
15567
15591
|
throw error;
|
|
15568
15592
|
});
|
|
15569
15593
|
};
|
|
15594
|
+
goog.Timer = module$contents$goog$Timer_Timer;
|
|
15570
15595
|
var module$contents$goog$async$Throttle_Throttle = function(listener, interval, handler) {
|
|
15571
15596
|
goog.Disposable.call(this);
|
|
15572
15597
|
this.listener_ = handler != null ? listener.bind(handler) : listener;
|
|
@@ -15582,7 +15607,7 @@ module$contents$goog$async$Throttle_Throttle.prototype.fire = function(var_args)
|
|
|
15582
15607
|
this.timer_ || this.pauseCount_ ? this.shouldFire_ = !0 : this.doAction_();
|
|
15583
15608
|
};
|
|
15584
15609
|
module$contents$goog$async$Throttle_Throttle.prototype.stop = function() {
|
|
15585
|
-
this.timer_ && (goog.
|
|
15610
|
+
this.timer_ && (module$contents$goog$Timer_Timer.clear(this.timer_), this.timer_ = null, this.shouldFire_ = !1, this.args_ = null);
|
|
15586
15611
|
};
|
|
15587
15612
|
module$contents$goog$async$Throttle_Throttle.prototype.pause = function() {
|
|
15588
15613
|
this.pauseCount_++;
|
|
@@ -15601,7 +15626,7 @@ module$contents$goog$async$Throttle_Throttle.prototype.onTimer_ = function() {
|
|
|
15601
15626
|
};
|
|
15602
15627
|
module$contents$goog$async$Throttle_Throttle.prototype.doAction_ = function() {
|
|
15603
15628
|
var $jscomp$this$m92829211$8 = this;
|
|
15604
|
-
this.timer_ = goog.
|
|
15629
|
+
this.timer_ = module$contents$goog$Timer_Timer.callOnce(function() {
|
|
15605
15630
|
return $jscomp$this$m92829211$8.onTimer_();
|
|
15606
15631
|
}, this.interval_);
|
|
15607
15632
|
var args = this.args_;
|
|
@@ -16324,8 +16349,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
|
16324
16349
|
this.replacements = new Map();
|
|
16325
16350
|
};
|
|
16326
16351
|
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
16327
|
-
var $jscomp$this$
|
|
16328
|
-
return $jscomp$this$
|
|
16352
|
+
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) {
|
|
16353
|
+
return $jscomp$this$1018007701$5.replaceFormattingString(openedTags, match);
|
|
16329
16354
|
});
|
|
16330
16355
|
if (openedTags.length !== 0) {
|
|
16331
16356
|
if (goog.DEBUG) {
|
|
@@ -16543,8 +16568,8 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16543
16568
|
if (Array.isArray(token)) {
|
|
16544
16569
|
tokens.push.apply(tokens, (0,$jscomp.arrayFromIterable)(token));
|
|
16545
16570
|
} else {
|
|
16546
|
-
var $jscomp$optchain$
|
|
16547
|
-
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$
|
|
16571
|
+
var $jscomp$optchain$tmpm282935782$0 = void 0;
|
|
16572
|
+
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
16573
|
tokens.push(token);
|
|
16549
16574
|
if (token.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF) {
|
|
16550
16575
|
return tokens;
|
|
@@ -16790,9 +16815,9 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16790
16815
|
repr:repr}) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER, repr:repr};
|
|
16791
16816
|
};
|
|
16792
16817
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputsPointsAreWhitespace = function() {
|
|
16793
|
-
var $jscomp$this$
|
|
16818
|
+
var $jscomp$this$m282935782$26 = this;
|
|
16794
16819
|
return this.nextTwoInputCodePoints().every(function(c) {
|
|
16795
|
-
return $jscomp$this$
|
|
16820
|
+
return $jscomp$this$m282935782$26.isWhitespace(c);
|
|
16796
16821
|
});
|
|
16797
16822
|
};
|
|
16798
16823
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.twoCodePointsAreValidEscape = function(codePoint1, codePoint2) {
|
|
@@ -16899,8 +16924,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16899
16924
|
return null;
|
|
16900
16925
|
}
|
|
16901
16926
|
if (token.lowercaseName === "url") {
|
|
16902
|
-
var nextToken = tokens[i + 1], $jscomp$optchain$
|
|
16903
|
-
if ((($jscomp$optchain$
|
|
16927
|
+
var nextToken = tokens[i + 1], $jscomp$optchain$tmpm1577590584$0 = void 0;
|
|
16928
|
+
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
16929
|
return null;
|
|
16905
16930
|
}
|
|
16906
16931
|
var parsedUrl = module$contents$safevalues$builders$html_sanitizer$url_policy_parseUrl(nextToken.value);
|
|
@@ -16923,8 +16948,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16923
16948
|
if (!this.allowKeyframes) {
|
|
16924
16949
|
return null;
|
|
16925
16950
|
}
|
|
16926
|
-
for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$
|
|
16927
|
-
var rule = $jscomp$key$
|
|
16951
|
+
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()) {
|
|
16952
|
+
var rule = $jscomp$key$m1577590584$1$rule.value;
|
|
16928
16953
|
if (rule instanceof CSSKeyframeRule) {
|
|
16929
16954
|
var sanitizedRule = this.sanitizeKeyframeRule(rule);
|
|
16930
16955
|
sanitizedRule && keyframeRules.push(sanitizedRule);
|
|
@@ -16936,8 +16961,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16936
16961
|
if (!this.propertyAllowlist.has(name)) {
|
|
16937
16962
|
return !1;
|
|
16938
16963
|
}
|
|
16939
|
-
for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$
|
|
16940
|
-
var discarder = $jscomp$key$
|
|
16964
|
+
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()) {
|
|
16965
|
+
var discarder = $jscomp$key$m1577590584$2$discarder.value;
|
|
16941
16966
|
if (discarder(name)) {
|
|
16942
16967
|
return !1;
|
|
16943
16968
|
}
|
|
@@ -16952,8 +16977,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16952
16977
|
return sanitizedValue ? module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(name) + ": " + sanitizedValue + (isImportant ? " !important" : "") : null;
|
|
16953
16978
|
};
|
|
16954
16979
|
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$
|
|
16980
|
+
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()) {
|
|
16981
|
+
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
16982
|
sanitizedProperty && (sanitizedProperties += sanitizedProperty + ";");
|
|
16958
16983
|
}
|
|
16959
16984
|
return sanitizedProperties;
|
|
@@ -16967,8 +16992,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16967
16992
|
return selector + " { " + sanitizedProperties + " }";
|
|
16968
16993
|
};
|
|
16969
16994
|
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$
|
|
16995
|
+
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()) {
|
|
16996
|
+
var rule = $jscomp$key$m1577590584$4$rule.value;
|
|
16972
16997
|
if (rule instanceof CSSStyleRule) {
|
|
16973
16998
|
var sanitizedRule = this.sanitizeStyleRule(rule);
|
|
16974
16999
|
sanitizedRule && output.push(sanitizedRule);
|
|
@@ -17132,8 +17157,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
17132
17157
|
return fragment;
|
|
17133
17158
|
};
|
|
17134
17159
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
17135
|
-
for (var $jscomp$this$
|
|
17136
|
-
return $jscomp$this$
|
|
17160
|
+
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) {
|
|
17161
|
+
return $jscomp$this$m1085474118$13.nodeFilter(n);
|
|
17137
17162
|
}), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; currentNode !== null;) {
|
|
17138
17163
|
var sanitizedNode = void 0;
|
|
17139
17164
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
@@ -17168,8 +17193,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
17168
17193
|
return this.createTextNode(textNode.data);
|
|
17169
17194
|
};
|
|
17170
17195
|
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$
|
|
17196
|
+
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()) {
|
|
17197
|
+
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
17198
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
17174
17199
|
switch(policy.policyAction) {
|
|
17175
17200
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -17201,9 +17226,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
17201
17226
|
break;
|
|
17202
17227
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:
|
|
17203
17228
|
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$
|
|
17229
|
+
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
17230
|
$jscomp$iter$35.next()) {
|
|
17206
|
-
var part = $jscomp$key$
|
|
17231
|
+
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
17232
|
sanitizedUrl$jscomp$0 && sanitizedSrcset.parts.push({url:sanitizedUrl$jscomp$0.toString(), descriptor:part.descriptor});
|
|
17208
17233
|
}
|
|
17209
17234
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(sanitizedSrcset));
|
|
@@ -17261,8 +17286,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
17261
17286
|
if (!conditions) {
|
|
17262
17287
|
return !0;
|
|
17263
17288
|
}
|
|
17264
|
-
for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$
|
|
17265
|
-
var $jscomp$destructuring$var32 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17289
|
+
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()) {
|
|
17290
|
+
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
17291
|
if (value && !expectedValues.has(value)) {
|
|
17267
17292
|
return !1;
|
|
17268
17293
|
}
|
|
@@ -17277,8 +17302,8 @@ function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_Srcse
|
|
|
17277
17302
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.Srcset = function() {
|
|
17278
17303
|
};
|
|
17279
17304
|
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$
|
|
17305
|
+
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()) {
|
|
17306
|
+
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
17307
|
parts.push({url:url__tsickle_destructured_3, descriptor:descriptor__tsickle_destructured_4});
|
|
17283
17308
|
}
|
|
17284
17309
|
return {parts:parts};
|
|
@@ -17335,8 +17360,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17335
17360
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE;
|
|
17336
17361
|
};
|
|
17337
17362
|
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$
|
|
17363
|
+
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()) {
|
|
17364
|
+
var element = $jscomp$key$435282654$23$element.value;
|
|
17340
17365
|
element = element.toUpperCase();
|
|
17341
17366
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
17342
17367
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -17354,8 +17379,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17354
17379
|
throw Error("Element: " + element + " is not a custom element");
|
|
17355
17380
|
}
|
|
17356
17381
|
if (allowedAttributes) {
|
|
17357
|
-
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$
|
|
17358
|
-
elementPolicy.set($jscomp$key$
|
|
17382
|
+
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()) {
|
|
17383
|
+
elementPolicy.set($jscomp$key$435282654$24$attribute.value.toLowerCase(), {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
17359
17384
|
}
|
|
17360
17385
|
allowedElementPolicies.set(element, elementPolicy);
|
|
17361
17386
|
} else {
|
|
@@ -17365,15 +17390,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17365
17390
|
return this;
|
|
17366
17391
|
};
|
|
17367
17392
|
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$
|
|
17393
|
+
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()) {
|
|
17394
|
+
var attribute = $jscomp$key$435282654$25$attribute.value;
|
|
17370
17395
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
17371
17396
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
17372
17397
|
}
|
|
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$
|
|
17398
|
+
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()) {
|
|
17399
|
+
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
17400
|
$jscomp$iter$42.next()) {
|
|
17376
|
-
var $jscomp$destructuring$var38 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17401
|
+
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
17402
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
17378
17403
|
}
|
|
17379
17404
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -17388,8 +17413,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17388
17413
|
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
17414
|
return this;
|
|
17390
17415
|
}
|
|
17391
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$
|
|
17392
|
-
var attribute = $jscomp$key$
|
|
17416
|
+
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()) {
|
|
17417
|
+
var attribute = $jscomp$key$435282654$28$attribute.value;
|
|
17393
17418
|
if (attribute.indexOf("data-") !== 0) {
|
|
17394
17419
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
17395
17420
|
}
|
|
@@ -17459,7 +17484,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17459
17484
|
return this;
|
|
17460
17485
|
};
|
|
17461
17486
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.build = function() {
|
|
17462
|
-
var $jscomp$this$
|
|
17487
|
+
var $jscomp$this$435282654$19 = this;
|
|
17463
17488
|
this.extendSanitizerTableForCss();
|
|
17464
17489
|
var propertyDiscarders = [];
|
|
17465
17490
|
this.animationsAllowed || propertyDiscarders.push(function(property) {
|
|
@@ -17469,9 +17494,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17469
17494
|
return /^transition(-|$)/.test(property);
|
|
17470
17495
|
});
|
|
17471
17496
|
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$
|
|
17497
|
+
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
17498
|
}, 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$
|
|
17499
|
+
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
17500
|
}, this.resourceUrlPolicy, this.navigationUrlPolicy, this.openShadow);
|
|
17476
17501
|
};
|
|
17477
17502
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.extendSanitizerTableForCss = function() {
|
|
@@ -17691,12 +17716,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
17691
17716
|
}
|
|
17692
17717
|
try {
|
|
17693
17718
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
17694
|
-
} catch ($jscomp$unused$catch$
|
|
17719
|
+
} catch ($jscomp$unused$catch$696273141$0) {
|
|
17695
17720
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
17696
17721
|
}
|
|
17697
17722
|
try {
|
|
17698
17723
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
17699
|
-
} catch ($jscomp$unused$catch$
|
|
17724
|
+
} catch ($jscomp$unused$catch$696273141$1) {
|
|
17700
17725
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
17701
17726
|
}
|
|
17702
17727
|
return !1;
|
|
@@ -19161,23 +19186,23 @@ var module$contents$goog$net$ErrorCode_ErrorCode = {NO_ERROR:0, ACCESS_DENIED:1,
|
|
|
19161
19186
|
}};
|
|
19162
19187
|
goog.net.ErrorCode = module$contents$goog$net$ErrorCode_ErrorCode;
|
|
19163
19188
|
goog.net.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"};
|
|
19164
|
-
goog
|
|
19165
|
-
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,
|
|
19166
|
-
HTTP_VERSION_NOT_SUPPORTED:505, INSUFFICIENT_STORAGE:507, NETWORK_AUTHENTICATION_REQUIRED:511, QUIRK_IE_NO_CONTENT:1223
|
|
19167
|
-
goog.net.HttpStatus.isSuccess = function(status) {
|
|
19189
|
+
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,
|
|
19190
|
+
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,
|
|
19191
|
+
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
19192
|
switch(status) {
|
|
19169
|
-
case goog
|
|
19170
|
-
case goog
|
|
19171
|
-
case goog
|
|
19172
|
-
case goog
|
|
19173
|
-
case goog
|
|
19174
|
-
case goog
|
|
19175
|
-
case goog
|
|
19193
|
+
case module$contents$goog$net$HttpStatus_HttpStatus.OK:
|
|
19194
|
+
case module$contents$goog$net$HttpStatus_HttpStatus.CREATED:
|
|
19195
|
+
case module$contents$goog$net$HttpStatus_HttpStatus.ACCEPTED:
|
|
19196
|
+
case module$contents$goog$net$HttpStatus_HttpStatus.NO_CONTENT:
|
|
19197
|
+
case module$contents$goog$net$HttpStatus_HttpStatus.PARTIAL_CONTENT:
|
|
19198
|
+
case module$contents$goog$net$HttpStatus_HttpStatus.NOT_MODIFIED:
|
|
19199
|
+
case module$contents$goog$net$HttpStatus_HttpStatus.QUIRK_IE_NO_CONTENT:
|
|
19176
19200
|
return !0;
|
|
19177
19201
|
default:
|
|
19178
19202
|
return !1;
|
|
19179
19203
|
}
|
|
19180
|
-
};
|
|
19204
|
+
}};
|
|
19205
|
+
goog.net.HttpStatus = module$contents$goog$net$HttpStatus_HttpStatus;
|
|
19181
19206
|
function module$contents$goog$net$XhrLike_XhrLike() {
|
|
19182
19207
|
}
|
|
19183
19208
|
module$contents$goog$net$XhrLike_XhrLike.prototype.open = function(method, url, opt_async, opt_user, opt_password) {
|
|
@@ -19450,7 +19475,7 @@ goog.net.XhrIo.prototype.isComplete = function() {
|
|
|
19450
19475
|
};
|
|
19451
19476
|
goog.net.XhrIo.prototype.isSuccess = function() {
|
|
19452
19477
|
var status = this.getStatus();
|
|
19453
|
-
return goog
|
|
19478
|
+
return module$contents$goog$net$HttpStatus_HttpStatus.isSuccess(status) || status === 0 && !this.isLastUriEffectiveSchemeHttp_();
|
|
19454
19479
|
};
|
|
19455
19480
|
goog.net.XhrIo.prototype.isLastUriEffectiveSchemeHttp_ = function() {
|
|
19456
19481
|
var scheme = module$contents$goog$uri$utils_getEffectiveScheme(String(this.lastUri_));
|
|
@@ -19577,7 +19602,7 @@ var $jscomp$templatelit$m1153655765$101 = $jscomp.createTemplateTagFirstArg(["ht
|
|
|
19577
19602
|
ee.apiclient = {};
|
|
19578
19603
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19579
19604
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19580
|
-
ee.apiclient.API_CLIENT_VERSION = "1.7.
|
|
19605
|
+
ee.apiclient.API_CLIENT_VERSION = "1.7.12";
|
|
19581
19606
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19582
19607
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19583
19608
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19882,8 +19907,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19882
19907
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19883
19908
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19884
19909
|
method = method || "POST";
|
|
19885
|
-
var headers = {"Content-Type":contentType}, version = "1.7.
|
|
19886
|
-
version === "1.7.
|
|
19910
|
+
var headers = {"Content-Type":contentType}, version = "1.7.12";
|
|
19911
|
+
version === "1.7.12" && (version = "latest");
|
|
19887
19912
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19888
19913
|
module$contents$ee$apiclient_apiclient.userAgent_ && (headers["User-Agent"] = module$contents$ee$apiclient_apiclient.userAgent_);
|
|
19889
19914
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
@@ -19896,7 +19921,7 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19896
19921
|
});
|
|
19897
19922
|
}), null;
|
|
19898
19923
|
}
|
|
19899
|
-
params = params ? params.clone() : new goog.
|
|
19924
|
+
params = params ? params.clone() : new module$contents$goog$Uri_Uri.QueryData();
|
|
19900
19925
|
module$contents$ee$apiclient_apiclient.cloudApiKey_ != null && params.add("key", module$contents$ee$apiclient_apiclient.cloudApiKey_);
|
|
19901
19926
|
profileHookAtCallTime && (headers[module$contents$ee$apiclient_apiclient.PROFILE_REQUEST_HEADER] = "1");
|
|
19902
19927
|
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 +20037,7 @@ module$contents$ee$apiclient_apiclient.handleAuthResult_ = function(success, err
|
|
|
20012
20037
|
}
|
|
20013
20038
|
};
|
|
20014
20039
|
module$contents$ee$apiclient_apiclient.makeRequest_ = function(params) {
|
|
20015
|
-
for (var request = new goog.
|
|
20040
|
+
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
20041
|
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
20042
|
request.set(name, item);
|
|
20018
20043
|
}
|
|
@@ -22658,7 +22683,7 @@ ee.ApiFunction.lookup = function(name) {
|
|
|
22658
22683
|
goog.exportSymbol("ee.ApiFunction.lookup", ee.ApiFunction.lookup);
|
|
22659
22684
|
ee.ApiFunction.lookupInternal = function(name) {
|
|
22660
22685
|
ee.ApiFunction.initialize();
|
|
22661
|
-
return ee.ApiFunction.api_[name]
|
|
22686
|
+
return ee.ApiFunction.api_.hasOwnProperty(name) ? ee.ApiFunction.api_[name] : null;
|
|
22662
22687
|
};
|
|
22663
22688
|
ee.ApiFunction.initialize = function(opt_successCallback, opt_failureCallback) {
|
|
22664
22689
|
if (ee.ApiFunction.api_) {
|
|
@@ -22682,23 +22707,28 @@ ee.ApiFunction.reset = function() {
|
|
|
22682
22707
|
};
|
|
22683
22708
|
ee.ApiFunction.importApi = function(target, prefix, typeName, opt_prepend) {
|
|
22684
22709
|
ee.ApiFunction.initialize();
|
|
22685
|
-
var prepend = opt_prepend || "";
|
|
22686
|
-
|
|
22687
|
-
|
|
22688
|
-
|
|
22689
|
-
var
|
|
22690
|
-
|
|
22691
|
-
|
|
22692
|
-
|
|
22693
|
-
|
|
22694
|
-
|
|
22710
|
+
var prepend = opt_prepend || "", api = ee.ApiFunction.api_, $jscomp$loop$2006059326$0 = {}, name;
|
|
22711
|
+
for (name in api) {
|
|
22712
|
+
if ($jscomp$loop$2006059326$0 = {apiFunc:void 0, isInstance$jscomp$2:void 0}, Object.prototype.hasOwnProperty.call(api, name)) {
|
|
22713
|
+
$jscomp$loop$2006059326$0.apiFunc = api[name];
|
|
22714
|
+
var parts = name.split(".");
|
|
22715
|
+
if (parts.length === 2 && parts[0] === prefix) {
|
|
22716
|
+
var fname = prepend + parts[1], signature = $jscomp$loop$2006059326$0.apiFunc.getSignature();
|
|
22717
|
+
ee.ApiFunction.boundSignatures_[name] = !0;
|
|
22718
|
+
$jscomp$loop$2006059326$0.isInstance$jscomp$2 = !1;
|
|
22719
|
+
if (signature.args.length) {
|
|
22720
|
+
var firstArgType = signature.args[0].type;
|
|
22721
|
+
$jscomp$loop$2006059326$0.isInstance$jscomp$2 = firstArgType != "Object" && ee.Types.isSubtype(firstArgType, typeName);
|
|
22722
|
+
}
|
|
22723
|
+
var destination = $jscomp$loop$2006059326$0.isInstance$jscomp$2 ? target.prototype : target;
|
|
22724
|
+
fname in destination && !destination[fname].signature || (destination[fname] = function($jscomp$loop$2006059326$0) {
|
|
22725
|
+
return function(var_args) {
|
|
22726
|
+
return $jscomp$loop$2006059326$0.apiFunc.callOrApply($jscomp$loop$2006059326$0.isInstance$jscomp$2 ? this : void 0, Array.prototype.slice.call(arguments, 0));
|
|
22727
|
+
};
|
|
22728
|
+
}($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
22729
|
}
|
|
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
22730
|
}
|
|
22701
|
-
}
|
|
22731
|
+
}
|
|
22702
22732
|
};
|
|
22703
22733
|
ee.ApiFunction.clearApi = function(target) {
|
|
22704
22734
|
var clear = function(target) {
|
|
@@ -25287,7 +25317,7 @@ module$contents$goog$fs$ProgressEvent_GoogProgressEvent.prototype.getTotal = fun
|
|
|
25287
25317
|
return this.event_.total;
|
|
25288
25318
|
};
|
|
25289
25319
|
goog.fs.ProgressEvent = module$contents$goog$fs$ProgressEvent_GoogProgressEvent;
|
|
25290
|
-
goog
|
|
25320
|
+
function module$contents$goog$fs$FileReader_GoogFileReader() {
|
|
25291
25321
|
goog.events.EventTarget.call(this);
|
|
25292
25322
|
this.reader_ = new FileReader();
|
|
25293
25323
|
this.reader_.onloadstart = goog.bind(this.dispatchProgressEvent_, this);
|
|
@@ -25296,74 +25326,75 @@ goog.fs.FileReader = function() {
|
|
|
25296
25326
|
this.reader_.onabort = goog.bind(this.dispatchProgressEvent_, this);
|
|
25297
25327
|
this.reader_.onerror = goog.bind(this.dispatchProgressEvent_, this);
|
|
25298
25328
|
this.reader_.onloadend = goog.bind(this.dispatchProgressEvent_, this);
|
|
25299
|
-
}
|
|
25300
|
-
goog.inherits(goog
|
|
25301
|
-
goog
|
|
25302
|
-
goog
|
|
25303
|
-
goog
|
|
25329
|
+
}
|
|
25330
|
+
goog.inherits(module$contents$goog$fs$FileReader_GoogFileReader, goog.events.EventTarget);
|
|
25331
|
+
module$contents$goog$fs$FileReader_GoogFileReader.ReadyState = {INIT:0, LOADING:1, DONE:2};
|
|
25332
|
+
module$contents$goog$fs$FileReader_GoogFileReader.EventType = {LOAD_START:"loadstart", PROGRESS:"progress", LOAD:"load", ABORT:"abort", ERROR:"error", LOAD_END:"loadend"};
|
|
25333
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.abort = function() {
|
|
25304
25334
|
try {
|
|
25305
25335
|
this.reader_.abort();
|
|
25306
25336
|
} catch (e) {
|
|
25307
25337
|
throw new module$contents$goog$fs$Error_FsError(e, "aborting read");
|
|
25308
25338
|
}
|
|
25309
25339
|
};
|
|
25310
|
-
goog
|
|
25340
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.getReadyState = function() {
|
|
25311
25341
|
return this.reader_.readyState;
|
|
25312
25342
|
};
|
|
25313
|
-
goog
|
|
25343
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.getResult = function() {
|
|
25314
25344
|
return this.reader_.result;
|
|
25315
25345
|
};
|
|
25316
|
-
goog
|
|
25346
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.getError = function() {
|
|
25317
25347
|
return this.reader_.error && new module$contents$goog$fs$Error_FsError(this.reader_.error, "reading file");
|
|
25318
25348
|
};
|
|
25319
|
-
goog
|
|
25349
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.dispatchProgressEvent_ = function(event) {
|
|
25320
25350
|
this.dispatchEvent(new module$contents$goog$fs$ProgressEvent_GoogProgressEvent(event, this));
|
|
25321
25351
|
};
|
|
25322
|
-
goog
|
|
25323
|
-
goog
|
|
25352
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.disposeInternal = function() {
|
|
25353
|
+
module$contents$goog$fs$FileReader_GoogFileReader.superClass_.disposeInternal.call(this);
|
|
25324
25354
|
delete this.reader_;
|
|
25325
25355
|
};
|
|
25326
|
-
goog
|
|
25356
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.readAsBinaryString = function(blob) {
|
|
25327
25357
|
this.reader_.readAsBinaryString(blob);
|
|
25328
25358
|
};
|
|
25329
|
-
goog
|
|
25330
|
-
var reader = new goog
|
|
25359
|
+
module$contents$goog$fs$FileReader_GoogFileReader.readAsBinaryString = function(blob) {
|
|
25360
|
+
var reader = new module$contents$goog$fs$FileReader_GoogFileReader(), d = module$contents$goog$fs$FileReader_GoogFileReader.createDeferred_(reader);
|
|
25331
25361
|
reader.readAsBinaryString(blob);
|
|
25332
25362
|
return d;
|
|
25333
25363
|
};
|
|
25334
|
-
goog
|
|
25364
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.readAsArrayBuffer = function(blob) {
|
|
25335
25365
|
this.reader_.readAsArrayBuffer(blob);
|
|
25336
25366
|
};
|
|
25337
|
-
goog
|
|
25338
|
-
var reader = new goog
|
|
25367
|
+
module$contents$goog$fs$FileReader_GoogFileReader.readAsArrayBuffer = function(blob) {
|
|
25368
|
+
var reader = new module$contents$goog$fs$FileReader_GoogFileReader(), d = module$contents$goog$fs$FileReader_GoogFileReader.createDeferred_(reader);
|
|
25339
25369
|
reader.readAsArrayBuffer(blob);
|
|
25340
25370
|
return d;
|
|
25341
25371
|
};
|
|
25342
|
-
goog
|
|
25372
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.readAsText = function(blob, opt_encoding) {
|
|
25343
25373
|
this.reader_.readAsText(blob, opt_encoding);
|
|
25344
25374
|
};
|
|
25345
|
-
goog
|
|
25346
|
-
var reader = new goog
|
|
25375
|
+
module$contents$goog$fs$FileReader_GoogFileReader.readAsText = function(blob, opt_encoding) {
|
|
25376
|
+
var reader = new module$contents$goog$fs$FileReader_GoogFileReader(), d = module$contents$goog$fs$FileReader_GoogFileReader.createDeferred_(reader);
|
|
25347
25377
|
reader.readAsText(blob, opt_encoding);
|
|
25348
25378
|
return d;
|
|
25349
25379
|
};
|
|
25350
|
-
goog
|
|
25380
|
+
module$contents$goog$fs$FileReader_GoogFileReader.prototype.readAsDataUrl = function(blob) {
|
|
25351
25381
|
this.reader_.readAsDataURL(blob);
|
|
25352
25382
|
};
|
|
25353
|
-
goog
|
|
25354
|
-
var reader = new goog
|
|
25383
|
+
module$contents$goog$fs$FileReader_GoogFileReader.readAsDataUrl = function(blob) {
|
|
25384
|
+
var reader = new module$contents$goog$fs$FileReader_GoogFileReader(), d = module$contents$goog$fs$FileReader_GoogFileReader.createDeferred_(reader);
|
|
25355
25385
|
reader.readAsDataUrl(blob);
|
|
25356
25386
|
return d;
|
|
25357
25387
|
};
|
|
25358
|
-
goog
|
|
25388
|
+
module$contents$goog$fs$FileReader_GoogFileReader.createDeferred_ = function(reader) {
|
|
25359
25389
|
var deferred = new goog.async.Deferred();
|
|
25360
|
-
reader.listen(goog
|
|
25390
|
+
reader.listen(module$contents$goog$fs$FileReader_GoogFileReader.EventType.LOAD_END, goog.partial(function(d, r, e) {
|
|
25361
25391
|
var result = r.getResult(), error = r.getError();
|
|
25362
25392
|
result == null || error ? d.errback(error) : d.callback(result);
|
|
25363
25393
|
r.dispose();
|
|
25364
25394
|
}, deferred, reader));
|
|
25365
25395
|
return deferred;
|
|
25366
25396
|
};
|
|
25397
|
+
goog.fs.FileReader = module$contents$goog$fs$FileReader_GoogFileReader;
|
|
25367
25398
|
goog.dom.vendor = {};
|
|
25368
25399
|
function module$contents$goog$dom$vendor_getVendorJsPrefix() {
|
|
25369
25400
|
return goog.userAgent.WEBKIT ? "Webkit" : goog.userAgent.GECKO ? "Moz" : null;
|
|
@@ -26296,9 +26327,9 @@ ee.layers.AbstractTile.prototype.startLoad = function() {
|
|
|
26296
26327
|
this.xhrIo_ = new goog.net.XhrIo();
|
|
26297
26328
|
this.xhrIo_.setResponseType(goog.net.XhrIo.ResponseType.BLOB);
|
|
26298
26329
|
this.xhrIo_.listen(goog.net.EventType.COMPLETE, function(event) {
|
|
26299
|
-
var blob = $jscomp$this$800656669$27.xhrIo_.getResponse(), status = $jscomp$this$800656669$27.xhrIo_.getStatus()
|
|
26300
|
-
status ==
|
|
26301
|
-
if (
|
|
26330
|
+
var blob = $jscomp$this$800656669$27.xhrIo_.getResponse(), status = $jscomp$this$800656669$27.xhrIo_.getStatus();
|
|
26331
|
+
status == module$contents$goog$net$HttpStatus_HttpStatus.TOO_MANY_REQUESTS && $jscomp$this$800656669$27.setStatus(ee.layers.AbstractTile.Status.THROTTLED);
|
|
26332
|
+
if (module$contents$goog$net$HttpStatus_HttpStatus.isSuccess(status)) {
|
|
26302
26333
|
var sourceResponseHeaders = {};
|
|
26303
26334
|
module$contents$goog$object_forEach($jscomp$this$800656669$27.xhrIo_.getResponseHeaders(), function(value, name) {
|
|
26304
26335
|
sourceResponseHeaders[name.toLowerCase()] = value;
|
|
@@ -26307,8 +26338,8 @@ ee.layers.AbstractTile.prototype.startLoad = function() {
|
|
|
26307
26338
|
$jscomp$this$800656669$27.sourceData = blob;
|
|
26308
26339
|
$jscomp$this$800656669$27.finishLoad();
|
|
26309
26340
|
} else if (blob) {
|
|
26310
|
-
var reader = new goog
|
|
26311
|
-
reader.listen(goog
|
|
26341
|
+
var reader = new module$contents$goog$fs$FileReader_GoogFileReader();
|
|
26342
|
+
reader.listen(module$contents$goog$fs$FileReader_GoogFileReader.EventType.LOAD_END, function() {
|
|
26312
26343
|
$jscomp$this$800656669$27.retryLoad(reader.getResult());
|
|
26313
26344
|
}, void 0);
|
|
26314
26345
|
reader.readAsText(blob);
|
|
@@ -26400,25 +26431,22 @@ ee_root.third_party.earthengine_api.javascript.layers.binaryoverlay.BinaryTile =
|
|
|
26400
26431
|
};
|
|
26401
26432
|
$jscomp.inherits(ee_root.third_party.earthengine_api.javascript.layers.binaryoverlay.BinaryTile, ee.layers.AbstractTile);
|
|
26402
26433
|
ee_root.third_party.earthengine_api.javascript.layers.binaryoverlay.BinaryTile.prototype.finishLoad = function() {
|
|
26403
|
-
var reader = new goog
|
|
26404
|
-
reader.listen(goog
|
|
26434
|
+
var reader = new module$contents$goog$fs$FileReader_GoogFileReader();
|
|
26435
|
+
reader.listen(module$contents$goog$fs$FileReader_GoogFileReader.EventType.LOAD_END, function() {
|
|
26405
26436
|
this.buffer_ = reader.getResult();
|
|
26406
26437
|
ee.layers.AbstractTile.prototype.finishLoad.call(this);
|
|
26407
26438
|
}, void 0, this);
|
|
26408
26439
|
reader.readAsArrayBuffer(this.sourceData);
|
|
26409
26440
|
};
|
|
26410
|
-
|
|
26441
|
+
var module$contents$goog$net$ImageLoader_ImageLoader = function(opt_parent) {
|
|
26411
26442
|
goog.events.EventTarget.call(this);
|
|
26412
26443
|
this.imageIdToRequestMap_ = {};
|
|
26413
26444
|
this.imageIdToImageMap_ = {};
|
|
26414
26445
|
this.handler_ = new module$contents$goog$events$EventHandler_EventHandler(this);
|
|
26415
26446
|
this.parent_ = opt_parent;
|
|
26416
26447
|
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];
|
|
26448
|
+
};
|
|
26449
|
+
$jscomp.inherits(module$contents$goog$net$ImageLoader_ImageLoader, goog.events.EventTarget);
|
|
26422
26450
|
module$contents$goog$net$ImageLoader_ImageLoader.prototype.addImage = function(id, image, opt_corsRequestType) {
|
|
26423
26451
|
var src = typeof image === "string" ? image : image.src;
|
|
26424
26452
|
src && (this.completionFired_ = !1, this.imageIdToRequestMap_[id] = {src:src, corsRequestType:opt_corsRequestType !== void 0 ? opt_corsRequestType : null});
|
|
@@ -26468,8 +26496,11 @@ module$contents$goog$net$ImageLoader_ImageLoader.prototype.disposeInternal = fun
|
|
|
26468
26496
|
delete this.imageIdToRequestMap_;
|
|
26469
26497
|
delete this.imageIdToImageMap_;
|
|
26470
26498
|
module$contents$goog$dispose_dispose(this.handler_);
|
|
26471
|
-
|
|
26499
|
+
goog.events.EventTarget.prototype.disposeInternal.call(this);
|
|
26472
26500
|
};
|
|
26501
|
+
module$contents$goog$net$ImageLoader_ImageLoader.CorsRequestType = {ANONYMOUS:"anonymous", USE_CREDENTIALS:"use-credentials"};
|
|
26502
|
+
var module$contents$goog$net$ImageLoader_ImageRequest;
|
|
26503
|
+
module$contents$goog$net$ImageLoader_ImageLoader.IMAGE_LOAD_EVENTS_ = [goog.events.EventType.LOAD, goog.net.EventType.ABORT, goog.net.EventType.ERROR];
|
|
26473
26504
|
goog.net.ImageLoader = module$contents$goog$net$ImageLoader_ImageLoader;
|
|
26474
26505
|
ee_root.third_party.earthengine_api.javascript.layers.imageoverlay = {};
|
|
26475
26506
|
ee_root.third_party.earthengine_api.javascript.layers.imageoverlay.ImageOverlay = function(tileSource, opt_options) {
|
|
@@ -27148,7 +27179,7 @@ ee.MapTileManager.Request_.prototype.start_ = function() {
|
|
|
27148
27179
|
var actuallyLoadImage = goog.bind(function(imageUrl) {
|
|
27149
27180
|
this.getAborted() || (this.imageLoader_.addImage(this.id_, imageUrl), this.addImageEventListener(), this.imageLoader_.start());
|
|
27150
27181
|
}, this), sourceUrl = this.getUrl();
|
|
27151
|
-
if (goog.
|
|
27182
|
+
if (module$contents$goog$Uri_Uri.parse(sourceUrl).getQueryData().containsKey("profiling")) {
|
|
27152
27183
|
var xhrIo = new goog.net.XhrIo();
|
|
27153
27184
|
xhrIo.setResponseType(goog.net.XhrIo.ResponseType.BLOB);
|
|
27154
27185
|
xhrIo.listen(goog.net.EventType.COMPLETE, goog.bind(function(event) {
|
|
@@ -27299,13 +27330,13 @@ module$contents$goog$async$Delay_Delay.prototype.disposeInternal = function() {
|
|
|
27299
27330
|
};
|
|
27300
27331
|
module$contents$goog$async$Delay_Delay.prototype.start = function(opt_interval) {
|
|
27301
27332
|
this.stop();
|
|
27302
|
-
this.id_ = goog.
|
|
27333
|
+
this.id_ = module$contents$goog$Timer_Timer.callOnce(this.callback_, opt_interval !== void 0 ? opt_interval : this.interval_);
|
|
27303
27334
|
};
|
|
27304
27335
|
module$contents$goog$async$Delay_Delay.prototype.startIfNotActive = function(opt_interval) {
|
|
27305
27336
|
this.isActive() || this.start(opt_interval);
|
|
27306
27337
|
};
|
|
27307
27338
|
module$contents$goog$async$Delay_Delay.prototype.stop = function() {
|
|
27308
|
-
this.isActive() && goog.
|
|
27339
|
+
this.isActive() && module$contents$goog$Timer_Timer.clear(this.id_);
|
|
27309
27340
|
this.id_ = 0;
|
|
27310
27341
|
};
|
|
27311
27342
|
module$contents$goog$async$Delay_Delay.prototype.fire = function() {
|
|
@@ -27389,7 +27420,7 @@ ee.data.Profiler.prototype.refresh_ = function(retryAttempt) {
|
|
|
27389
27420
|
var marker = {};
|
|
27390
27421
|
this.lastRefreshToken_ = marker;
|
|
27391
27422
|
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.
|
|
27423
|
+
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
27424
|
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
27425
|
}, ids = module$contents$goog$object_getKeys(this.profileIds_);
|
|
27395
27426
|
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));
|