@google/earthengine 0.1.417 → 0.1.418

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.
@@ -16,7 +16,7 @@ $jscomp.SIMPLE_FROUND_POLYFILL = !1;
16
16
  $jscomp.ISOLATE_POLYFILLS = !1;
17
17
  $jscomp.FORCE_POLYFILL_PROMISE = !1;
18
18
  $jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION = !1;
19
- $jscomp.INSTRUMENT_ASYNC_CONTEXT = !1;
19
+ $jscomp.INSTRUMENT_ASYNC_CONTEXT = !0;
20
20
  $jscomp.defineProperty = $jscomp.ASSUME_ES5 || typeof Object.defineProperties == "function" ? Object.defineProperty : function(target, property, descriptor) {
21
21
  if (target == Array.prototype || target == Object.prototype) {
22
22
  return target;
@@ -1062,6 +1062,13 @@ $jscomp.polyfill("Set", function(NativeSet) {
1062
1062
  };
1063
1063
  return PolyfillSet;
1064
1064
  }, "es6", "es3");
1065
+ $jscomp.polyfill("Array.prototype.entries", function(orig) {
1066
+ return orig ? orig : function() {
1067
+ return $jscomp.iteratorFromArray(this, function(i, v) {
1068
+ return [i, v];
1069
+ });
1070
+ };
1071
+ }, "es6", "es3");
1065
1072
  $jscomp.checkStringArgs = function(thisArg, arg, func) {
1066
1073
  if (thisArg == null) {
1067
1074
  throw new TypeError("The 'this' value for String.prototype." + func + " must not be null or undefined");
@@ -1071,36 +1078,29 @@ $jscomp.checkStringArgs = function(thisArg, arg, func) {
1071
1078
  }
1072
1079
  return thisArg + "";
1073
1080
  };
1074
- $jscomp.polyfill("String.prototype.endsWith", function(orig) {
1081
+ $jscomp.polyfill("String.prototype.startsWith", function(orig) {
1075
1082
  return orig ? orig : function(searchString, opt_position) {
1076
- var string = $jscomp.checkStringArgs(this, searchString, "endsWith");
1083
+ var string = $jscomp.checkStringArgs(this, searchString, "startsWith");
1077
1084
  searchString += "";
1078
- opt_position === void 0 && (opt_position = string.length);
1079
- for (var i = Math.max(0, Math.min(opt_position | 0, string.length)), j = searchString.length; j > 0 && i > 0;) {
1080
- if (string[--i] != searchString[--j]) {
1085
+ for (var strLen = string.length, searchLen = searchString.length, i = Math.max(0, Math.min(opt_position | 0, string.length)), j = 0; j < searchLen && i < strLen;) {
1086
+ if (string[i++] != searchString[j++]) {
1081
1087
  return !1;
1082
1088
  }
1083
1089
  }
1084
- return j <= 0;
1085
- };
1086
- }, "es6", "es3");
1087
- $jscomp.polyfill("Array.prototype.entries", function(orig) {
1088
- return orig ? orig : function() {
1089
- return $jscomp.iteratorFromArray(this, function(i, v) {
1090
- return [i, v];
1091
- });
1090
+ return j >= searchLen;
1092
1091
  };
1093
1092
  }, "es6", "es3");
1094
- $jscomp.polyfill("String.prototype.startsWith", function(orig) {
1093
+ $jscomp.polyfill("String.prototype.endsWith", function(orig) {
1095
1094
  return orig ? orig : function(searchString, opt_position) {
1096
- var string = $jscomp.checkStringArgs(this, searchString, "startsWith");
1095
+ var string = $jscomp.checkStringArgs(this, searchString, "endsWith");
1097
1096
  searchString += "";
1098
- for (var strLen = string.length, searchLen = searchString.length, i = Math.max(0, Math.min(opt_position | 0, string.length)), j = 0; j < searchLen && i < strLen;) {
1099
- if (string[i++] != searchString[j++]) {
1097
+ opt_position === void 0 && (opt_position = string.length);
1098
+ for (var i = Math.max(0, Math.min(opt_position | 0, string.length)), j = searchString.length; j > 0 && i > 0;) {
1099
+ if (string[--i] != searchString[--j]) {
1100
1100
  return !1;
1101
1101
  }
1102
1102
  }
1103
- return j >= searchLen;
1103
+ return j <= 0;
1104
1104
  };
1105
1105
  }, "es6", "es3");
1106
1106
  $jscomp.polyfill("Number.isFinite", function(orig) {
@@ -1249,8 +1249,8 @@ $jscomp.polyfill("String.prototype.padStart", function(orig) {
1249
1249
  return $jscomp.stringPadding(opt_padString, targetLength - string.length) + string;
1250
1250
  };
1251
1251
  }, "es8", "es3");
1252
- var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_direct_reactions__disable:!1, GoogFlags__client_only_wiz_flush_queue_fix__disable:!1, GoogFlags__client_only_wiz_ordered_reaction_execution__disable:!1, GoogFlags__jspb_enable_low_index_extension_writes__disable:!1, GoogFlags__jspb_ignore_implicit_extension_deps__enable:!1, GoogFlags__jspb_readonly_repeated_fields__disable:!1, GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__disable:!1,
1253
- GoogFlags__override_disable_toggles:!1, GoogFlags__testonly_debug_flag__enable:!1, GoogFlags__testonly_disabled_flag__enable:!1, GoogFlags__testonly_stable_flag__disable:!1, GoogFlags__testonly_staging_flag__disable:!1, GoogFlags__use_toggles:!1, GoogFlags__use_user_agent_client_hints__enable:!1, GoogFlags__wiz_enable_native_promise__enable:!1};
1252
+ var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_direct_reactions__disable:!1, GoogFlags__client_only_wiz_flush_queue_fix__disable:!1, GoogFlags__client_only_wiz_ordered_reaction_execution__disable:!1, GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__enable:!1, GoogFlags__jspb_enable_low_index_extension_writes__disable:!1, GoogFlags__jspb_ignore_implicit_extension_deps__enable:!1, GoogFlags__jspb_readonly_repeated_fields__disable:!1,
1253
+ GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__disable:!1, GoogFlags__override_disable_toggles:!1, GoogFlags__testonly_debug_flag__enable:!1, GoogFlags__testonly_disabled_flag__enable:!1, GoogFlags__testonly_stable_flag__disable:!1, GoogFlags__testonly_staging_flag__disable:!1, GoogFlags__use_toggles:!1, GoogFlags__use_user_agent_client_hints__enable:!1, GoogFlags__wiz_enable_native_promise__enable:!1};
1254
1254
  /*
1255
1255
 
1256
1256
  Copyright The Closure Library Authors.
@@ -2777,6 +2777,7 @@ goog.string.internal.compareElements_ = function(left, right) {
2777
2777
  };
2778
2778
  /*
2779
2779
 
2780
+ Copyright Google LLC
2780
2781
  SPDX-License-Identifier: Apache-2.0
2781
2782
  */
2782
2783
  var module$contents$safevalues$environment$dev_module = module$contents$safevalues$environment$dev_module || {id:"third_party/javascript/safevalues/environment/dev.closure.js"};
@@ -2914,64 +2915,66 @@ goog.string.Const.from = function(s) {
2914
2915
  goog.string.Const.TYPE_MARKER_ = {};
2915
2916
  goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ = {};
2916
2917
  goog.string.Const.EMPTY = goog.string.Const.from("");
2917
- goog.html.TrustedResourceUrl = function(value, token) {
2918
- if (goog.DEBUG && token !== goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_) {
2918
+ var module$contents$goog$html$TrustedResourceUrl_CONSTRUCTOR_TOKEN_PRIVATE_ = {}, module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl = function(value, token) {
2919
+ if (goog.DEBUG && token !== module$contents$goog$html$TrustedResourceUrl_CONSTRUCTOR_TOKEN_PRIVATE_) {
2919
2920
  throw Error("TrustedResourceUrl is not meant to be built directly");
2920
2921
  }
2921
2922
  this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_ = value;
2922
2923
  };
2923
- goog.html.TrustedResourceUrl.prototype.toString = function() {
2924
+ module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.prototype.toString = function() {
2924
2925
  return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_ + "";
2925
2926
  };
2926
- goog.html.TrustedResourceUrl.prototype.cloneWithParams = function(searchParams, opt_hashParams) {
2927
- var url = goog.html.TrustedResourceUrl.unwrap(this), parts = goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(url), urlHash = parts[3] || "";
2928
- return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(parts[1] + goog.html.TrustedResourceUrl.stringifyParams_("?", parts[2] || "", searchParams) + goog.html.TrustedResourceUrl.stringifyParams_("#", urlHash, opt_hashParams));
2927
+ module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.prototype.cloneWithParams = function(searchParams, opt_hashParams) {
2928
+ return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.cloneWithParams(this, searchParams, opt_hashParams);
2929
2929
  };
2930
- goog.html.TrustedResourceUrl.unwrap = function(trustedResourceUrl) {
2931
- return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(trustedResourceUrl).toString();
2930
+ module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.cloneWithParams = function(url, searchParams, opt_hashParams) {
2931
+ var urlString = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(url), parts = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.URL_PARAM_PARSER_.exec(urlString), urlHash = parts[3] || "";
2932
+ return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(parts[1] + module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.stringifyParams_("?", parts[2] || "", searchParams) + module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.stringifyParams_("#", urlHash, opt_hashParams));
2932
2933
  };
2933
- goog.html.TrustedResourceUrl.unwrapTrustedScriptURL = function(trustedResourceUrl) {
2934
- if (trustedResourceUrl instanceof goog.html.TrustedResourceUrl && trustedResourceUrl.constructor === goog.html.TrustedResourceUrl) {
2934
+ module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap = function(trustedResourceUrl) {
2935
+ return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrapTrustedScriptURL(trustedResourceUrl).toString();
2936
+ };
2937
+ module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrapTrustedScriptURL = function(trustedResourceUrl) {
2938
+ if (trustedResourceUrl instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl && trustedResourceUrl.constructor === module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl) {
2935
2939
  return trustedResourceUrl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_;
2936
2940
  }
2937
2941
  goog.asserts.fail("expected object of type TrustedResourceUrl, got '%s' of type %s", trustedResourceUrl, goog.typeOf(trustedResourceUrl));
2938
2942
  return "type_error:TrustedResourceUrl";
2939
2943
  };
2940
- goog.html.TrustedResourceUrl.format = function(format, args) {
2944
+ module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.format = function(format, args) {
2941
2945
  var formatStr = goog.string.Const.unwrap(format);
2942
- if (!goog.html.TrustedResourceUrl.BASE_URL_.test(formatStr)) {
2946
+ if (!module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.BASE_URL_.test(formatStr)) {
2943
2947
  throw Error("Invalid TrustedResourceUrl format: " + formatStr);
2944
2948
  }
2945
- var result = formatStr.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_, function(match, id) {
2949
+ var result = formatStr.replace(module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.FORMAT_MARKER_, function(match, id) {
2946
2950
  if (!Object.prototype.hasOwnProperty.call(args, id)) {
2947
2951
  throw Error('Found marker, "' + id + '", in format string, "' + formatStr + '", but no valid label mapping found in args: ' + JSON.stringify(args));
2948
2952
  }
2949
2953
  var arg = args[id];
2950
2954
  return arg instanceof goog.string.Const ? goog.string.Const.unwrap(arg) : encodeURIComponent(String(arg));
2951
2955
  });
2952
- return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(result);
2956
+ return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(result);
2953
2957
  };
2954
- goog.html.TrustedResourceUrl.FORMAT_MARKER_ = /%{(\w+)}/g;
2955
- goog.html.TrustedResourceUrl.BASE_URL_ = RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)", "i");
2956
- goog.html.TrustedResourceUrl.URL_PARAM_PARSER_ = /^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/;
2957
- goog.html.TrustedResourceUrl.formatWithParams = function(format, args, searchParams, opt_hashParams) {
2958
- return goog.html.TrustedResourceUrl.format(format, args).cloneWithParams(searchParams, opt_hashParams);
2958
+ module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.FORMAT_MARKER_ = /%{(\w+)}/g;
2959
+ module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.BASE_URL_ = RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)", "i");
2960
+ module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.URL_PARAM_PARSER_ = /^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/;
2961
+ module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.formatWithParams = function(format, args, searchParams, opt_hashParams) {
2962
+ return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.format(format, args).cloneWithParams(searchParams, opt_hashParams);
2959
2963
  };
2960
- goog.html.TrustedResourceUrl.fromConstant = function(url) {
2961
- return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(url));
2964
+ module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.fromConstant = function(url) {
2965
+ return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(url));
2962
2966
  };
2963
- goog.html.TrustedResourceUrl.fromConstants = function(parts) {
2967
+ module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.fromConstants = function(parts) {
2964
2968
  for (var unwrapped = "", i = 0; i < parts.length; i++) {
2965
2969
  unwrapped += goog.string.Const.unwrap(parts[i]);
2966
2970
  }
2967
- return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(unwrapped);
2971
+ return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(unwrapped);
2968
2972
  };
2969
- goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_ = {};
2970
- goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse = function(url) {
2973
+ module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse = function(url) {
2971
2974
  var noinlineUrl = url, policy = goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse(), value = policy ? policy.createScriptURL(noinlineUrl) : noinlineUrl;
2972
- return new goog.html.TrustedResourceUrl(value, goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_);
2975
+ return new module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl(value, module$contents$goog$html$TrustedResourceUrl_CONSTRUCTOR_TOKEN_PRIVATE_);
2973
2976
  };
2974
- goog.html.TrustedResourceUrl.stringifyParams_ = function(prefix, currentString, params) {
2977
+ module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.stringifyParams_ = function(prefix, currentString, params) {
2975
2978
  if (params == null) {
2976
2979
  return currentString;
2977
2980
  }
@@ -2988,18 +2991,21 @@ goog.html.TrustedResourceUrl.stringifyParams_ = function(prefix, currentString,
2988
2991
  }
2989
2992
  return currentString;
2990
2993
  };
2994
+ goog.html.TrustedResourceUrl = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl;
2995
+ var module$exports$goog$html$trustedresourceurl_internals_for_safevalues = {};
2996
+ module$exports$goog$html$trustedresourceurl_internals_for_safevalues.createTrustedResourceUrl = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse;
2991
2997
  var module$exports$safevalues$internals$resource_url_impl = {}, module$contents$safevalues$internals$resource_url_impl_module = module$contents$safevalues$internals$resource_url_impl_module || {id:"third_party/javascript/safevalues/internals/resource_url_impl.closure.js"};
2992
- module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl = goog.html.TrustedResourceUrl;
2998
+ module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl;
2993
2999
  function module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(url) {
2994
- return (0,goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse)(url);
3000
+ return (0,module$exports$goog$html$trustedresourceurl_internals_for_safevalues.createTrustedResourceUrl)(url);
2995
3001
  }
2996
3002
  module$exports$safevalues$internals$resource_url_impl.createResourceUrlInternal = module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal;
2997
3003
  function module$contents$safevalues$internals$resource_url_impl_isResourceUrl(value) {
2998
- return value instanceof goog.html.TrustedResourceUrl;
3004
+ return value instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl;
2999
3005
  }
3000
3006
  module$exports$safevalues$internals$resource_url_impl.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
3001
3007
  function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(value) {
3002
- return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(value);
3008
+ return module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrapTrustedScriptURL(value);
3003
3009
  }
3004
3010
  module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
3005
3011
  var $jscomp$templatelit$1274514361$5 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$1274514361$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$8 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$1274514361$9 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$10 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
@@ -3294,1344 +3300,847 @@ function module$contents$safevalues$internals$attribute_impl_unwrapAttributePref
3294
3300
  throw Error(message);
3295
3301
  }
3296
3302
  module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
3297
- goog.array = {};
3298
- goog.NATIVE_ARRAY_PROTOTYPES = goog.TRUSTED_SITE;
3299
- var module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS = goog.FEATURESET_YEAR > 2012;
3300
- goog.array.ASSUME_NATIVE_FUNCTIONS = module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS;
3301
- function module$contents$goog$array_peek(array) {
3302
- return array[array.length - 1];
3303
+ var module$exports$safevalues$internals$html_impl = {}, module$contents$safevalues$internals$html_impl_module = module$contents$safevalues$internals$html_impl_module || {id:"third_party/javascript/safevalues/internals/html_impl.closure.js"}, module$contents$safevalues$internals$html_impl_trustedTypes = goog.global.trustedTypes;
3304
+ module$exports$safevalues$internals$html_impl.SafeHtml = function(token, value) {
3305
+ goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
3306
+ this.privateDoNotAccessOrElseWrappedHtml = value;
3307
+ };
3308
+ module$exports$safevalues$internals$html_impl.SafeHtml.prototype.toString = function() {
3309
+ return this.privateDoNotAccessOrElseWrappedHtml + "";
3310
+ };
3311
+ var module$contents$safevalues$internals$html_impl_HtmlImpl = module$exports$safevalues$internals$html_impl.SafeHtml;
3312
+ function module$contents$safevalues$internals$html_impl_constructHtml(value) {
3313
+ return new module$exports$safevalues$internals$html_impl.SafeHtml(module$exports$safevalues$internals$secrets.secretToken, value);
3303
3314
  }
3304
- goog.array.peek = module$contents$goog$array_peek;
3305
- goog.array.last = module$contents$goog$array_peek;
3306
- var module$contents$goog$array_indexOf = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.indexOf) ? function(arr, obj, opt_fromIndex) {
3307
- goog.asserts.assert(arr.length != null);
3308
- return Array.prototype.indexOf.call(arr, obj, opt_fromIndex);
3309
- } : function(arr, obj, opt_fromIndex) {
3310
- var fromIndex = opt_fromIndex == null ? 0 : opt_fromIndex < 0 ? Math.max(0, arr.length + opt_fromIndex) : opt_fromIndex;
3311
- if (typeof arr === "string") {
3312
- return typeof obj !== "string" || obj.length != 1 ? -1 : arr.indexOf(obj, fromIndex);
3313
- }
3314
- for (var i = fromIndex; i < arr.length; i++) {
3315
- if (i in arr && arr[i] === obj) {
3316
- return i;
3317
- }
3318
- }
3319
- return -1;
3315
+ module$exports$safevalues$internals$html_impl.createHtmlInternal = function(value) {
3316
+ var noinlineValue = value, policy = (0,goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse)();
3317
+ return module$contents$safevalues$internals$html_impl_constructHtml(policy ? policy.createHTML(noinlineValue) : noinlineValue);
3320
3318
  };
3321
- goog.array.indexOf = module$contents$goog$array_indexOf;
3322
- var module$contents$goog$array_lastIndexOf = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.lastIndexOf) ? function(arr, obj, opt_fromIndex) {
3323
- goog.asserts.assert(arr.length != null);
3324
- return Array.prototype.lastIndexOf.call(arr, obj, opt_fromIndex == null ? arr.length - 1 : opt_fromIndex);
3325
- } : function(arr, obj, opt_fromIndex) {
3326
- var fromIndex = opt_fromIndex == null ? arr.length - 1 : opt_fromIndex;
3327
- fromIndex < 0 && (fromIndex = Math.max(0, arr.length + fromIndex));
3328
- if (typeof arr === "string") {
3329
- return typeof obj !== "string" || obj.length != 1 ? -1 : arr.lastIndexOf(obj, fromIndex);
3330
- }
3331
- for (var i = fromIndex; i >= 0; i--) {
3332
- if (i in arr && arr[i] === obj) {
3333
- return i;
3334
- }
3319
+ module$exports$safevalues$internals$html_impl.EMPTY_HTML = module$contents$safevalues$internals$pure_pure(function() {
3320
+ return module$contents$safevalues$internals$html_impl_constructHtml(module$contents$safevalues$internals$html_impl_trustedTypes ? module$contents$safevalues$internals$html_impl_trustedTypes.emptyHTML : "");
3321
+ });
3322
+ function module$contents$safevalues$internals$html_impl_isHtml(value) {
3323
+ return value instanceof module$exports$safevalues$internals$html_impl.SafeHtml;
3324
+ }
3325
+ module$exports$safevalues$internals$html_impl.isHtml = module$contents$safevalues$internals$html_impl_isHtml;
3326
+ module$exports$safevalues$internals$html_impl.unwrapHtml = function(value) {
3327
+ if (module$contents$safevalues$internals$html_impl_isHtml(value)) {
3328
+ return value.privateDoNotAccessOrElseWrappedHtml;
3335
3329
  }
3336
- return -1;
3330
+ var message = "";
3331
+ goog.DEBUG && (message = "Unexpected type when unwrapping SafeHtml");
3332
+ throw Error(message);
3337
3333
  };
3338
- goog.array.lastIndexOf = module$contents$goog$array_lastIndexOf;
3339
- var module$contents$goog$array_forEach = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.forEach) ? function(arr, f, opt_obj) {
3340
- goog.asserts.assert(arr.length != null);
3341
- Array.prototype.forEach.call(arr, f, opt_obj);
3342
- } : function(arr, f, opt_obj) {
3343
- for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
3344
- i in arr2 && f.call(opt_obj, arr2[i], i, arr);
3345
- }
3334
+ var module$exports$safevalues$internals$style_impl = {}, module$contents$safevalues$internals$style_impl_module = module$contents$safevalues$internals$style_impl_module || {id:"third_party/javascript/safevalues/internals/style_impl.closure.js"};
3335
+ module$exports$safevalues$internals$style_impl.SafeStyle = function(token, value) {
3336
+ goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
3337
+ this.privateDoNotAccessOrElseWrappedStyle = value;
3346
3338
  };
3347
- goog.array.forEach = module$contents$goog$array_forEach;
3348
- function module$contents$goog$array_forEachRight(arr, f, opt_obj) {
3349
- for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = l - 1; i >= 0; --i) {
3350
- i in arr2 && f.call(opt_obj, arr2[i], i, arr);
3351
- }
3339
+ module$exports$safevalues$internals$style_impl.SafeStyle.prototype.toString = function() {
3340
+ return this.privateDoNotAccessOrElseWrappedStyle;
3341
+ };
3342
+ var module$contents$safevalues$internals$style_impl_StyleImpl = module$exports$safevalues$internals$style_impl.SafeStyle;
3343
+ function module$contents$safevalues$internals$style_impl_createStyleInternal(value) {
3344
+ return new module$exports$safevalues$internals$style_impl.SafeStyle(module$exports$safevalues$internals$secrets.secretToken, value);
3352
3345
  }
3353
- goog.array.forEachRight = module$contents$goog$array_forEachRight;
3354
- var module$contents$goog$array_filter = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.filter) ? function(arr, f, opt_obj) {
3355
- goog.asserts.assert(arr.length != null);
3356
- return Array.prototype.filter.call(arr, f, opt_obj);
3357
- } : function(arr, f, opt_obj) {
3358
- for (var l = arr.length, res = [], resLength = 0, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
3359
- if (i in arr2) {
3360
- var val = arr2[i];
3361
- f.call(opt_obj, val, i, arr) && (res[resLength++] = val);
3362
- }
3346
+ module$exports$safevalues$internals$style_impl.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
3347
+ function module$contents$safevalues$internals$style_impl_isStyle(value) {
3348
+ return value instanceof module$exports$safevalues$internals$style_impl.SafeStyle;
3349
+ }
3350
+ module$exports$safevalues$internals$style_impl.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
3351
+ function module$contents$safevalues$internals$style_impl_unwrapStyle(value) {
3352
+ if (module$contents$safevalues$internals$style_impl_isStyle(value)) {
3353
+ return value.privateDoNotAccessOrElseWrappedStyle;
3363
3354
  }
3364
- return res;
3355
+ var message = "";
3356
+ goog.DEBUG && (message = "Unexpected type when unwrapping SafeStyle, got '" + value + "' of type '" + typeof value + "'");
3357
+ throw Error(message);
3358
+ }
3359
+ module$exports$safevalues$internals$style_impl.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
3360
+ var module$exports$safevalues$dom$elements$element = {}, module$contents$safevalues$dom$elements$element_module = module$contents$safevalues$dom$elements$element_module || {id:"third_party/javascript/safevalues/dom/elements/element.closure.js"};
3361
+ module$exports$safevalues$dom$elements$element.setInnerHtml = function(elOrRoot, v) {
3362
+ module$contents$safevalues$dom$elements$element_isElement(elOrRoot) && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(elOrRoot);
3363
+ elOrRoot.innerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
3365
3364
  };
3366
- goog.array.filter = module$contents$goog$array_filter;
3367
- var module$contents$goog$array_map = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.map) ? function(arr, f, opt_obj) {
3368
- goog.asserts.assert(arr.length != null);
3369
- return Array.prototype.map.call(arr, f, opt_obj);
3370
- } : function(arr, f, opt_obj) {
3371
- for (var l = arr.length, res = Array(l), arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
3372
- i in arr2 && (res[i] = f.call(opt_obj, arr2[i], i, arr));
3373
- }
3374
- return res;
3365
+ module$exports$safevalues$dom$elements$element.setOuterHtml = function(e, v) {
3366
+ var parent = e.parentElement;
3367
+ parent !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(parent);
3368
+ e.outerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
3375
3369
  };
3376
- goog.array.map = module$contents$goog$array_map;
3377
- goog.array.reduce = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.reduce) ? function(arr, f, val, opt_obj) {
3378
- goog.asserts.assert(arr.length != null);
3379
- opt_obj && (f = goog.TRUSTED_SITE ? f.bind(opt_obj) : goog.bind(f, opt_obj));
3380
- return Array.prototype.reduce.call(arr, f, val);
3381
- } : function(arr, f, val, opt_obj) {
3382
- var rval = val;
3383
- module$contents$goog$array_forEach(arr, function(val, index) {
3384
- rval = f.call(opt_obj, rval, val, index, arr);
3385
- });
3386
- return rval;
3370
+ module$exports$safevalues$dom$elements$element.setCssText = function(e, v) {
3371
+ e.style.cssText = module$contents$safevalues$internals$style_impl_unwrapStyle(v);
3387
3372
  };
3388
- goog.array.reduceRight = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.reduceRight) ? function(arr, f, val, opt_obj) {
3389
- goog.asserts.assert(arr.length != null);
3390
- goog.asserts.assert(f != null);
3391
- opt_obj && (f = goog.TRUSTED_SITE ? f.bind(opt_obj) : goog.bind(f, opt_obj));
3392
- return Array.prototype.reduceRight.call(arr, f, val);
3393
- } : function(arr, f, val, opt_obj) {
3394
- var rval = val;
3395
- module$contents$goog$array_forEachRight(arr, function(val, index) {
3396
- rval = f.call(opt_obj, rval, val, index, arr);
3397
- });
3398
- return rval;
3373
+ module$exports$safevalues$dom$elements$element.insertAdjacentHtml = function(element, position, v) {
3374
+ var tagContext = position === "beforebegin" || position === "afterend" ? element.parentElement : element;
3375
+ tagContext !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(tagContext);
3376
+ element.insertAdjacentHTML(position, (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v));
3399
3377
  };
3400
- var module$contents$goog$array_some = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.some) ? function(arr, f, opt_obj) {
3401
- goog.asserts.assert(arr.length != null);
3402
- return Array.prototype.some.call(arr, f, opt_obj);
3403
- } : function(arr, f, opt_obj) {
3404
- for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
3405
- if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) {
3406
- return !0;
3407
- }
3408
- }
3409
- return !1;
3378
+ module$exports$safevalues$dom$elements$element.buildPrefixedAttributeSetter = function(prefix) {
3379
+ var prefixes = [prefix].concat((0,$jscomp.arrayFromIterable)($jscomp.getRestArguments.apply(1, arguments)));
3380
+ return function(e, attr, value) {
3381
+ module$contents$safevalues$dom$elements$element_setPrefixedAttribute(prefixes, e, attr, value);
3382
+ };
3410
3383
  };
3411
- goog.array.some = module$contents$goog$array_some;
3412
- var module$contents$goog$array_every = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.every) ? function(arr, f, opt_obj) {
3413
- goog.asserts.assert(arr.length != null);
3414
- return Array.prototype.every.call(arr, f, opt_obj);
3415
- } : function(arr, f, opt_obj) {
3416
- for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
3417
- if (i in arr2 && !f.call(opt_obj, arr2[i], i, arr)) {
3418
- return !1;
3419
- }
3384
+ function module$contents$safevalues$dom$elements$element_setPrefixedAttribute(attrPrefixes, e, attr, value) {
3385
+ if (attrPrefixes.length === 0) {
3386
+ var message = "";
3387
+ goog.DEBUG && (message = "No prefixes are provided");
3388
+ throw Error(message);
3420
3389
  }
3421
- return !0;
3422
- };
3423
- goog.array.every = module$contents$goog$array_every;
3424
- function module$contents$goog$array_count(arr, f, opt_obj) {
3425
- var count = 0;
3426
- module$contents$goog$array_forEach(arr, function(element, index, arr) {
3427
- f.call(opt_obj, element, index, arr) && ++count;
3428
- }, opt_obj);
3429
- return count;
3430
- }
3431
- goog.array.count = module$contents$goog$array_count;
3432
- function module$contents$goog$array_find(arr, f, opt_obj) {
3433
- var i = module$contents$goog$array_findIndex(arr, f, opt_obj);
3434
- return i < 0 ? null : typeof arr === "string" ? arr.charAt(i) : arr[i];
3435
- }
3436
- goog.array.find = module$contents$goog$array_find;
3437
- function module$contents$goog$array_findIndex(arr, f, opt_obj) {
3438
- for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
3439
- if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) {
3440
- return i;
3441
- }
3390
+ var prefixes = attrPrefixes.map(function(s) {
3391
+ return module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix(s);
3392
+ }), attrLower = attr.toLowerCase();
3393
+ if (prefixes.every(function(p) {
3394
+ return attrLower.indexOf(p) !== 0;
3395
+ })) {
3396
+ throw Error('Attribute "' + attr + '" does not match any of the allowed prefixes.');
3442
3397
  }
3443
- return -1;
3398
+ e.setAttribute(attr, value);
3444
3399
  }
3445
- goog.array.findIndex = module$contents$goog$array_findIndex;
3446
- goog.array.findRight = function(arr, f, opt_obj) {
3447
- var i = module$contents$goog$array_findIndexRight(arr, f, opt_obj);
3448
- return i < 0 ? null : typeof arr === "string" ? arr.charAt(i) : arr[i];
3449
- };
3450
- function module$contents$goog$array_findIndexRight(arr, f, opt_obj) {
3451
- for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = l - 1; i >= 0; i--) {
3452
- if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) {
3453
- return i;
3454
- }
3400
+ module$exports$safevalues$dom$elements$element.setPrefixedAttribute = module$contents$safevalues$dom$elements$element_setPrefixedAttribute;
3401
+ function module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(element) {
3402
+ var message = "", tagName = element.tagName;
3403
+ if (tagName === "SCRIPT" || tagName === "STYLE") {
3404
+ throw goog.DEBUG && (message = tagName === "SCRIPT" ? "Use safeScriptEl.setTextContent with a SafeScript." : "Use safeStyleEl.setTextContent with a SafeStyleSheet."), Error(message);
3455
3405
  }
3456
- return -1;
3457
3406
  }
3458
- goog.array.findIndexRight = module$contents$goog$array_findIndexRight;
3459
- function module$contents$goog$array_contains(arr, obj) {
3460
- return module$contents$goog$array_indexOf(arr, obj) >= 0;
3407
+ function module$contents$safevalues$dom$elements$element_isElement(elOrRoot) {
3408
+ return elOrRoot.nodeType === 1;
3461
3409
  }
3462
- goog.array.contains = module$contents$goog$array_contains;
3463
- function module$contents$goog$array_isEmpty(arr) {
3464
- return arr.length == 0;
3465
- }
3466
- goog.array.isEmpty = module$contents$goog$array_isEmpty;
3467
- function module$contents$goog$array_clear(arr) {
3468
- if (!Array.isArray(arr)) {
3469
- for (var i = arr.length - 1; i >= 0; i--) {
3470
- delete arr[i];
3471
- }
3472
- }
3473
- arr.length = 0;
3474
- }
3475
- goog.array.clear = module$contents$goog$array_clear;
3476
- goog.array.insert = function(arr, obj) {
3477
- module$contents$goog$array_contains(arr, obj) || arr.push(obj);
3478
- };
3479
- function module$contents$goog$array_insertAt(arr, obj, opt_i) {
3480
- module$contents$goog$array_splice(arr, opt_i, 0, obj);
3481
- }
3482
- goog.array.insertAt = module$contents$goog$array_insertAt;
3483
- goog.array.insertArrayAt = function(arr, elementsToAdd, opt_i) {
3484
- goog.partial(module$contents$goog$array_splice, arr, opt_i, 0).apply(null, elementsToAdd);
3485
- };
3486
- goog.array.insertBefore = function(arr, obj, opt_obj2) {
3487
- var i;
3488
- arguments.length == 2 || (i = module$contents$goog$array_indexOf(arr, opt_obj2)) < 0 ? arr.push(obj) : module$contents$goog$array_insertAt(arr, obj, i);
3489
- };
3490
- function module$contents$goog$array_remove(arr, obj) {
3491
- var i = module$contents$goog$array_indexOf(arr, obj), rv;
3492
- (rv = i >= 0) && module$contents$goog$array_removeAt(arr, i);
3493
- return rv;
3494
- }
3495
- goog.array.remove = module$contents$goog$array_remove;
3496
- function module$contents$goog$array_removeLast(arr, obj) {
3497
- var i = module$contents$goog$array_lastIndexOf(arr, obj);
3498
- return i >= 0 ? (module$contents$goog$array_removeAt(arr, i), !0) : !1;
3499
- }
3500
- goog.array.removeLast = module$contents$goog$array_removeLast;
3501
- function module$contents$goog$array_removeAt(arr, i) {
3502
- goog.asserts.assert(arr.length != null);
3503
- return Array.prototype.splice.call(arr, i, 1).length == 1;
3504
- }
3505
- goog.array.removeAt = module$contents$goog$array_removeAt;
3506
- goog.array.removeIf = function(arr, f, opt_obj) {
3507
- var i = module$contents$goog$array_findIndex(arr, f, opt_obj);
3508
- return i >= 0 ? (module$contents$goog$array_removeAt(arr, i), !0) : !1;
3509
- };
3510
- goog.array.removeAllIf = function(arr, f, opt_obj) {
3511
- var removedCount = 0;
3512
- module$contents$goog$array_forEachRight(arr, function(val, index) {
3513
- f.call(opt_obj, val, index, arr) && module$contents$goog$array_removeAt(arr, index) && removedCount++;
3514
- });
3515
- return removedCount;
3516
- };
3517
- function module$contents$goog$array_concat(var_args) {
3518
- return Array.prototype.concat.apply([], arguments);
3519
- }
3520
- goog.array.concat = module$contents$goog$array_concat;
3521
- goog.array.join = function(var_args) {
3522
- return Array.prototype.concat.apply([], arguments);
3523
- };
3524
- function module$contents$goog$array_toArray(object) {
3525
- var length = object.length;
3526
- if (length > 0) {
3527
- for (var rv = Array(length), i = 0; i < length; i++) {
3528
- rv[i] = object[i];
3529
- }
3530
- return rv;
3531
- }
3532
- return [];
3533
- }
3534
- goog.array.toArray = module$contents$goog$array_toArray;
3535
- goog.array.clone = module$contents$goog$array_toArray;
3536
- function module$contents$goog$array_extend(arr1, var_args) {
3537
- for (var i = 1; i < arguments.length; i++) {
3538
- var arr2 = arguments[i];
3539
- if (goog.isArrayLike(arr2)) {
3540
- var len1 = arr1.length || 0, len2 = arr2.length || 0;
3541
- arr1.length = len1 + len2;
3542
- for (var j = 0; j < len2; j++) {
3543
- arr1[len1 + j] = arr2[j];
3544
- }
3545
- } else {
3546
- arr1.push(arr2);
3547
- }
3548
- }
3549
- }
3550
- goog.array.extend = module$contents$goog$array_extend;
3551
- function module$contents$goog$array_splice(arr, index, howMany, var_args) {
3552
- goog.asserts.assert(arr.length != null);
3553
- return Array.prototype.splice.apply(arr, module$contents$goog$array_slice(arguments, 1));
3554
- }
3555
- goog.array.splice = module$contents$goog$array_splice;
3556
- function module$contents$goog$array_slice(arr, start, opt_end) {
3557
- goog.asserts.assert(arr.length != null);
3558
- return arguments.length <= 2 ? Array.prototype.slice.call(arr, start) : Array.prototype.slice.call(arr, start, opt_end);
3559
- }
3560
- goog.array.slice = module$contents$goog$array_slice;
3561
- function module$contents$goog$array_removeDuplicates(arr, opt_rv, opt_keyFn) {
3562
- var returnArray = opt_rv || arr;
3563
- if (goog.FEATURESET_YEAR >= 2018) {
3564
- for (var defaultKeyFn = function(item) {
3565
- return item;
3566
- }, keyFn = opt_keyFn || defaultKeyFn, cursorInsert = 0, cursorRead = 0, seen = new Set(); cursorRead < arr.length;) {
3567
- var current = arr[cursorRead++], key = keyFn(current);
3568
- seen.has(key) || (seen.add(key), returnArray[cursorInsert++] = current);
3569
- }
3570
- returnArray.length = cursorInsert;
3571
- } else {
3572
- for (var defaultKeyFn$jscomp$0 = function(item) {
3573
- return goog.isObject(item) ? "o" + goog.getUid(item) : (typeof item).charAt(0) + item;
3574
- }, keyFn$jscomp$0 = opt_keyFn || defaultKeyFn$jscomp$0, cursorInsert$jscomp$0 = 0, cursorRead$jscomp$0 = 0, seen$jscomp$0 = {}; cursorRead$jscomp$0 < arr.length;) {
3575
- var current$jscomp$0 = arr[cursorRead$jscomp$0++], key$jscomp$0 = keyFn$jscomp$0(current$jscomp$0);
3576
- Object.prototype.hasOwnProperty.call(seen$jscomp$0, key$jscomp$0) || (seen$jscomp$0[key$jscomp$0] = !0, returnArray[cursorInsert$jscomp$0++] = current$jscomp$0);
3577
- }
3578
- returnArray.length = cursorInsert$jscomp$0;
3579
- }
3580
- }
3581
- goog.array.removeDuplicates = module$contents$goog$array_removeDuplicates;
3582
- function module$contents$goog$array_binarySearch(arr, target, opt_compareFn) {
3583
- return module$contents$goog$array_binarySearch_(arr, opt_compareFn || module$contents$goog$array_defaultCompare, !1, target);
3584
- }
3585
- goog.array.binarySearch = module$contents$goog$array_binarySearch;
3586
- goog.array.binarySelect = function(arr, evaluator, opt_obj) {
3587
- return module$contents$goog$array_binarySearch_(arr, evaluator, !0, void 0, opt_obj);
3588
- };
3589
- function module$contents$goog$array_binarySearch_(arr, compareFn, isEvaluator, opt_target, opt_selfObj) {
3590
- for (var left = 0, right = arr.length, found; left < right;) {
3591
- var middle = left + (right - left >>> 1), compareResult = void 0;
3592
- compareResult = isEvaluator ? compareFn.call(opt_selfObj, arr[middle], middle, arr) : compareFn(opt_target, arr[middle]);
3593
- compareResult > 0 ? left = middle + 1 : (right = middle, found = !compareResult);
3594
- }
3595
- return found ? left : -left - 1;
3596
- }
3597
- function module$contents$goog$array_sort(arr, opt_compareFn) {
3598
- arr.sort(opt_compareFn || module$contents$goog$array_defaultCompare);
3599
- }
3600
- goog.array.sort = module$contents$goog$array_sort;
3601
- goog.array.stableSort = function(arr, opt_compareFn) {
3602
- for (var compArr = Array(arr.length), i = 0; i < arr.length; i++) {
3603
- compArr[i] = {index:i, value:arr[i]};
3604
- }
3605
- var valueCompareFn = opt_compareFn || module$contents$goog$array_defaultCompare;
3606
- module$contents$goog$array_sort(compArr, function(obj1, obj2) {
3607
- return valueCompareFn(obj1.value, obj2.value) || obj1.index - obj2.index;
3608
- });
3609
- for (var i$jscomp$0 = 0; i$jscomp$0 < arr.length; i$jscomp$0++) {
3610
- arr[i$jscomp$0] = compArr[i$jscomp$0].value;
3611
- }
3612
- };
3613
- function module$contents$goog$array_sortByKey(arr, keyFn, opt_compareFn) {
3614
- var keyCompareFn = opt_compareFn || module$contents$goog$array_defaultCompare;
3615
- module$contents$goog$array_sort(arr, function(a, b) {
3616
- return keyCompareFn(keyFn(a), keyFn(b));
3617
- });
3618
- }
3619
- goog.array.sortByKey = module$contents$goog$array_sortByKey;
3620
- goog.array.sortObjectsByKey = function(arr, key, opt_compareFn) {
3621
- module$contents$goog$array_sortByKey(arr, function(obj) {
3622
- return obj[key];
3623
- }, opt_compareFn);
3624
- };
3625
- function module$contents$goog$array_isSorted(arr, opt_compareFn, opt_strict) {
3626
- for (var compare = opt_compareFn || module$contents$goog$array_defaultCompare, i = 1; i < arr.length; i++) {
3627
- var compareResult = compare(arr[i - 1], arr[i]);
3628
- if (compareResult > 0 || compareResult == 0 && opt_strict) {
3629
- return !1;
3630
- }
3631
- }
3632
- return !0;
3633
- }
3634
- goog.array.isSorted = module$contents$goog$array_isSorted;
3635
- function module$contents$goog$array_equals(arr1, arr2, opt_equalsFn) {
3636
- if (!goog.isArrayLike(arr1) || !goog.isArrayLike(arr2) || arr1.length != arr2.length) {
3637
- return !1;
3638
- }
3639
- for (var l = arr1.length, equalsFn = opt_equalsFn || module$contents$goog$array_defaultCompareEquality, i = 0; i < l; i++) {
3640
- if (!equalsFn(arr1[i], arr2[i])) {
3641
- return !1;
3642
- }
3643
- }
3644
- return !0;
3645
- }
3646
- goog.array.equals = module$contents$goog$array_equals;
3647
- goog.array.compare3 = function(arr1, arr2, opt_compareFn) {
3648
- for (var compare = opt_compareFn || module$contents$goog$array_defaultCompare, l = Math.min(arr1.length, arr2.length), i = 0; i < l; i++) {
3649
- var result = compare(arr1[i], arr2[i]);
3650
- if (result != 0) {
3651
- return result;
3652
- }
3653
- }
3654
- return module$contents$goog$array_defaultCompare(arr1.length, arr2.length);
3655
- };
3656
- function module$contents$goog$array_defaultCompare(a, b) {
3657
- return a > b ? 1 : a < b ? -1 : 0;
3658
- }
3659
- goog.array.defaultCompare = module$contents$goog$array_defaultCompare;
3660
- goog.array.inverseDefaultCompare = function(a, b) {
3661
- return -module$contents$goog$array_defaultCompare(a, b);
3662
- };
3663
- function module$contents$goog$array_defaultCompareEquality(a, b) {
3664
- return a === b;
3665
- }
3666
- goog.array.defaultCompareEquality = module$contents$goog$array_defaultCompareEquality;
3667
- goog.array.binaryInsert = function(array, value, opt_compareFn) {
3668
- var index = module$contents$goog$array_binarySearch(array, value, opt_compareFn);
3669
- return index < 0 ? (module$contents$goog$array_insertAt(array, value, -(index + 1)), !0) : !1;
3670
- };
3671
- goog.array.binaryRemove = function(array, value, opt_compareFn) {
3672
- var index = module$contents$goog$array_binarySearch(array, value, opt_compareFn);
3673
- return index >= 0 ? module$contents$goog$array_removeAt(array, index) : !1;
3674
- };
3675
- goog.array.bucket = function(array, sorter, opt_obj) {
3676
- for (var buckets = {}, i = 0; i < array.length; i++) {
3677
- var value = array[i], key = sorter.call(opt_obj, value, i, array);
3678
- key !== void 0 && (buckets[key] || (buckets[key] = [])).push(value);
3679
- }
3680
- return buckets;
3681
- };
3682
- goog.array.bucketToMap = function(array, sorter) {
3683
- for (var buckets = new Map(), i = 0; i < array.length; i++) {
3684
- var value = array[i], key = sorter(value, i, array);
3685
- if (key !== void 0) {
3686
- var bucket = buckets.get(key);
3687
- bucket || (bucket = [], buckets.set(key, bucket));
3688
- bucket.push(value);
3689
- }
3690
- }
3691
- return buckets;
3692
- };
3693
- goog.array.toObject = function(arr, keyFunc, opt_obj) {
3694
- var ret = {};
3695
- module$contents$goog$array_forEach(arr, function(element, index) {
3696
- ret[keyFunc.call(opt_obj, element, index, arr)] = element;
3697
- });
3698
- return ret;
3410
+ ;var module$exports$safevalues$dom$elements$embed = {}, module$contents$safevalues$dom$elements$embed_module = module$contents$safevalues$dom$elements$embed_module || {id:"third_party/javascript/safevalues/dom/elements/embed.closure.js"};
3411
+ module$exports$safevalues$dom$elements$embed.setSrc = function(embedEl, url) {
3412
+ embedEl.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url);
3699
3413
  };
3700
- goog.array.toMap = function(arr, keyFunc) {
3701
- for (var map = new Map(), i = 0; i < arr.length; i++) {
3702
- var element = arr[i];
3703
- map.set(keyFunc(element, i, arr), element);
3704
- }
3705
- return map;
3414
+ var module$exports$safevalues$dom$elements$form = {}, module$contents$safevalues$dom$elements$form_module = module$contents$safevalues$dom$elements$form_module || {id:"third_party/javascript/safevalues/dom/elements/form.closure.js"};
3415
+ module$exports$safevalues$dom$elements$form.setAction = function(form, url) {
3416
+ var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
3417
+ sanitizedUrl !== void 0 && (form.action = sanitizedUrl);
3706
3418
  };
3707
- function module$contents$goog$array_range(startOrEnd, opt_end, opt_step) {
3708
- var array = [], start = 0, end = startOrEnd, step = opt_step || 1;
3709
- opt_end !== void 0 && (start = startOrEnd, end = opt_end);
3710
- if (step * (end - start) < 0) {
3711
- return [];
3712
- }
3713
- if (step > 0) {
3714
- for (var i = start; i < end; i += step) {
3715
- array.push(i);
3716
- }
3717
- } else {
3718
- for (var i$jscomp$0 = start; i$jscomp$0 > end; i$jscomp$0 += step) {
3719
- array.push(i$jscomp$0);
3720
- }
3721
- }
3722
- return array;
3723
- }
3724
- goog.array.range = module$contents$goog$array_range;
3725
- function module$contents$goog$array_repeat(value, n) {
3726
- for (var array = [], i = 0; i < n; i++) {
3727
- array[i] = value;
3728
- }
3729
- return array;
3419
+ var module$exports$check = {}, module$contents$check_module = module$contents$check_module || {id:"javascript/typescript/contrib/check.closure.js"};
3420
+ function module$contents$check_checkExhaustive(value, msg) {
3421
+ return module$contents$check_checkExhaustiveAllowing(value, msg);
3730
3422
  }
3731
- goog.array.repeat = module$contents$goog$array_repeat;
3732
- function module$contents$goog$array_flatten(var_args) {
3733
- for (var result = [], i = 0; i < arguments.length; i++) {
3734
- var element = arguments[i];
3735
- if (Array.isArray(element)) {
3736
- for (var c = 0; c < element.length; c += 8192) {
3737
- for (var chunk = module$contents$goog$array_slice(element, c, c + 8192), recurseResult = module$contents$goog$array_flatten.apply(null, chunk), r = 0; r < recurseResult.length; r++) {
3738
- result.push(recurseResult[r]);
3739
- }
3740
- }
3741
- } else {
3742
- result.push(element);
3743
- }
3744
- }
3745
- return result;
3423
+ module$exports$check.checkExhaustive = module$contents$check_checkExhaustive;
3424
+ function module$contents$check_checkExhaustiveAllowing(value, msg) {
3425
+ throw Error(msg === void 0 ? "unexpected value " + value + "!" : msg);
3746
3426
  }
3747
- goog.array.flatten = module$contents$goog$array_flatten;
3748
- goog.array.rotate = function(array, n) {
3749
- goog.asserts.assert(array.length != null);
3750
- array.length && (n %= array.length, n > 0 ? Array.prototype.unshift.apply(array, array.splice(-n, n)) : n < 0 && Array.prototype.push.apply(array, array.splice(0, -n)));
3751
- return array;
3752
- };
3753
- goog.array.moveItem = function(arr, fromIndex, toIndex) {
3754
- goog.asserts.assert(fromIndex >= 0 && fromIndex < arr.length);
3755
- goog.asserts.assert(toIndex >= 0 && toIndex < arr.length);
3756
- var removedItems = Array.prototype.splice.call(arr, fromIndex, 1);
3757
- Array.prototype.splice.call(arr, toIndex, 0, removedItems[0]);
3758
- };
3759
- goog.array.zip = function(var_args) {
3760
- if (!arguments.length) {
3761
- return [];
3762
- }
3763
- for (var result = [], minLen = arguments[0].length, i = 1; i < arguments.length; i++) {
3764
- arguments[i].length < minLen && (minLen = arguments[i].length);
3765
- }
3766
- for (var i$jscomp$0 = 0; i$jscomp$0 < minLen; i$jscomp$0++) {
3767
- for (var value = [], j = 0; j < arguments.length; j++) {
3768
- value.push(arguments[j][i$jscomp$0]);
3769
- }
3770
- result.push(value);
3771
- }
3772
- return result;
3773
- };
3774
- goog.array.shuffle = function(arr, opt_randFn) {
3775
- for (var randFn = opt_randFn || Math.random, i = arr.length - 1; i > 0; i--) {
3776
- var j = Math.floor(randFn() * (i + 1)), tmp = arr[i];
3777
- arr[i] = arr[j];
3778
- arr[j] = tmp;
3779
- }
3780
- };
3781
- goog.array.copyByIndex = function(arr, index_arr) {
3782
- var result = [];
3783
- module$contents$goog$array_forEach(index_arr, function(index) {
3784
- result.push(arr[index]);
3785
- });
3786
- return result;
3787
- };
3788
- goog.array.concatMap = function(arr, f, opt_obj) {
3789
- return module$contents$goog$array_concat.apply([], module$contents$goog$array_map(arr, f, opt_obj));
3790
- };
3791
- goog.dom.HtmlElement = function() {
3792
- };
3793
- goog.dom.TagName = function() {
3794
- };
3795
- goog.dom.TagName.cast = function(name, type) {
3796
- return name;
3797
- };
3798
- goog.dom.TagName.prototype.toString = function() {
3799
- };
3800
- goog.dom.TagName.A = "A";
3801
- goog.dom.TagName.ABBR = "ABBR";
3802
- goog.dom.TagName.ACRONYM = "ACRONYM";
3803
- goog.dom.TagName.ADDRESS = "ADDRESS";
3804
- goog.dom.TagName.APPLET = "APPLET";
3805
- goog.dom.TagName.AREA = "AREA";
3806
- goog.dom.TagName.ARTICLE = "ARTICLE";
3807
- goog.dom.TagName.ASIDE = "ASIDE";
3808
- goog.dom.TagName.AUDIO = "AUDIO";
3809
- goog.dom.TagName.B = "B";
3810
- goog.dom.TagName.BASE = "BASE";
3811
- goog.dom.TagName.BASEFONT = "BASEFONT";
3812
- goog.dom.TagName.BDI = "BDI";
3813
- goog.dom.TagName.BDO = "BDO";
3814
- goog.dom.TagName.BIG = "BIG";
3815
- goog.dom.TagName.BLOCKQUOTE = "BLOCKQUOTE";
3816
- goog.dom.TagName.BODY = "BODY";
3817
- goog.dom.TagName.BR = "BR";
3818
- goog.dom.TagName.BUTTON = "BUTTON";
3819
- goog.dom.TagName.CANVAS = "CANVAS";
3820
- goog.dom.TagName.CAPTION = "CAPTION";
3821
- goog.dom.TagName.CENTER = "CENTER";
3822
- goog.dom.TagName.CITE = "CITE";
3823
- goog.dom.TagName.CODE = "CODE";
3824
- goog.dom.TagName.COL = "COL";
3825
- goog.dom.TagName.COLGROUP = "COLGROUP";
3826
- goog.dom.TagName.COMMAND = "COMMAND";
3827
- goog.dom.TagName.DATA = "DATA";
3828
- goog.dom.TagName.DATALIST = "DATALIST";
3829
- goog.dom.TagName.DD = "DD";
3830
- goog.dom.TagName.DEL = "DEL";
3831
- goog.dom.TagName.DETAILS = "DETAILS";
3832
- goog.dom.TagName.DFN = "DFN";
3833
- goog.dom.TagName.DIALOG = "DIALOG";
3834
- goog.dom.TagName.DIR = "DIR";
3835
- goog.dom.TagName.DIV = "DIV";
3836
- goog.dom.TagName.DL = "DL";
3837
- goog.dom.TagName.DT = "DT";
3838
- goog.dom.TagName.EM = "EM";
3839
- goog.dom.TagName.EMBED = "EMBED";
3840
- goog.dom.TagName.FIELDSET = "FIELDSET";
3841
- goog.dom.TagName.FIGCAPTION = "FIGCAPTION";
3842
- goog.dom.TagName.FIGURE = "FIGURE";
3843
- goog.dom.TagName.FONT = "FONT";
3844
- goog.dom.TagName.FOOTER = "FOOTER";
3845
- goog.dom.TagName.FORM = "FORM";
3846
- goog.dom.TagName.FRAME = "FRAME";
3847
- goog.dom.TagName.FRAMESET = "FRAMESET";
3848
- goog.dom.TagName.H1 = "H1";
3849
- goog.dom.TagName.H2 = "H2";
3850
- goog.dom.TagName.H3 = "H3";
3851
- goog.dom.TagName.H4 = "H4";
3852
- goog.dom.TagName.H5 = "H5";
3853
- goog.dom.TagName.H6 = "H6";
3854
- goog.dom.TagName.HEAD = "HEAD";
3855
- goog.dom.TagName.HEADER = "HEADER";
3856
- goog.dom.TagName.HGROUP = "HGROUP";
3857
- goog.dom.TagName.HR = "HR";
3858
- goog.dom.TagName.HTML = "HTML";
3859
- goog.dom.TagName.I = "I";
3860
- goog.dom.TagName.IFRAME = "IFRAME";
3861
- goog.dom.TagName.IMG = "IMG";
3862
- goog.dom.TagName.INPUT = "INPUT";
3863
- goog.dom.TagName.INS = "INS";
3864
- goog.dom.TagName.ISINDEX = "ISINDEX";
3865
- goog.dom.TagName.KBD = "KBD";
3866
- goog.dom.TagName.KEYGEN = "KEYGEN";
3867
- goog.dom.TagName.LABEL = "LABEL";
3868
- goog.dom.TagName.LEGEND = "LEGEND";
3869
- goog.dom.TagName.LI = "LI";
3870
- goog.dom.TagName.LINK = "LINK";
3871
- goog.dom.TagName.MAIN = "MAIN";
3872
- goog.dom.TagName.MAP = "MAP";
3873
- goog.dom.TagName.MARK = "MARK";
3874
- goog.dom.TagName.MATH = "MATH";
3875
- goog.dom.TagName.MENU = "MENU";
3876
- goog.dom.TagName.MENUITEM = "MENUITEM";
3877
- goog.dom.TagName.META = "META";
3878
- goog.dom.TagName.METER = "METER";
3879
- goog.dom.TagName.NAV = "NAV";
3880
- goog.dom.TagName.NOFRAMES = "NOFRAMES";
3881
- goog.dom.TagName.NOSCRIPT = "NOSCRIPT";
3882
- goog.dom.TagName.OBJECT = "OBJECT";
3883
- goog.dom.TagName.OL = "OL";
3884
- goog.dom.TagName.OPTGROUP = "OPTGROUP";
3885
- goog.dom.TagName.OPTION = "OPTION";
3886
- goog.dom.TagName.OUTPUT = "OUTPUT";
3887
- goog.dom.TagName.P = "P";
3888
- goog.dom.TagName.PARAM = "PARAM";
3889
- goog.dom.TagName.PICTURE = "PICTURE";
3890
- goog.dom.TagName.PRE = "PRE";
3891
- goog.dom.TagName.PROGRESS = "PROGRESS";
3892
- goog.dom.TagName.Q = "Q";
3893
- goog.dom.TagName.RP = "RP";
3894
- goog.dom.TagName.RT = "RT";
3895
- goog.dom.TagName.RTC = "RTC";
3896
- goog.dom.TagName.RUBY = "RUBY";
3897
- goog.dom.TagName.S = "S";
3898
- goog.dom.TagName.SAMP = "SAMP";
3899
- goog.dom.TagName.SCRIPT = "SCRIPT";
3900
- goog.dom.TagName.SECTION = "SECTION";
3901
- goog.dom.TagName.SELECT = "SELECT";
3902
- goog.dom.TagName.SMALL = "SMALL";
3903
- goog.dom.TagName.SOURCE = "SOURCE";
3904
- goog.dom.TagName.SPAN = "SPAN";
3905
- goog.dom.TagName.STRIKE = "STRIKE";
3906
- goog.dom.TagName.STRONG = "STRONG";
3907
- goog.dom.TagName.STYLE = "STYLE";
3908
- goog.dom.TagName.SUB = "SUB";
3909
- goog.dom.TagName.SUMMARY = "SUMMARY";
3910
- goog.dom.TagName.SUP = "SUP";
3911
- goog.dom.TagName.SVG = "SVG";
3912
- goog.dom.TagName.TABLE = "TABLE";
3913
- goog.dom.TagName.TBODY = "TBODY";
3914
- goog.dom.TagName.TD = "TD";
3915
- goog.dom.TagName.TEMPLATE = "TEMPLATE";
3916
- goog.dom.TagName.TEXTAREA = "TEXTAREA";
3917
- goog.dom.TagName.TFOOT = "TFOOT";
3918
- goog.dom.TagName.TH = "TH";
3919
- goog.dom.TagName.THEAD = "THEAD";
3920
- goog.dom.TagName.TIME = "TIME";
3921
- goog.dom.TagName.TITLE = "TITLE";
3922
- goog.dom.TagName.TR = "TR";
3923
- goog.dom.TagName.TRACK = "TRACK";
3924
- goog.dom.TagName.TT = "TT";
3925
- goog.dom.TagName.U = "U";
3926
- goog.dom.TagName.UL = "UL";
3927
- goog.dom.TagName.VAR = "VAR";
3928
- goog.dom.TagName.VIDEO = "VIDEO";
3929
- goog.dom.TagName.WBR = "WBR";
3930
- goog.dom.tags = {};
3931
- goog.dom.tags.VOID_TAGS_ = {area:!0, base:!0, br:!0, col:!0, command:!0, embed:!0, hr:!0, img:!0, input:!0, keygen:!0, link:!0, meta:!0, param:!0, source:!0, track:!0, wbr:!0};
3932
- goog.dom.tags.isVoidTag = function(tagName) {
3933
- return goog.dom.tags.VOID_TAGS_[tagName] === !0;
3934
- };
3935
- var module$exports$safevalues$internals$style_impl = {}, module$contents$safevalues$internals$style_impl_module = module$contents$safevalues$internals$style_impl_module || {id:"third_party/javascript/safevalues/internals/style_impl.closure.js"};
3936
- module$exports$safevalues$internals$style_impl.SafeStyle = function(token, value) {
3937
- goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
3938
- this.privateDoNotAccessOrElseWrappedStyle = value;
3427
+ module$exports$check.checkExhaustiveAllowing = module$contents$check_checkExhaustiveAllowing;
3428
+ module$exports$check.assumeExhaustive = function(value) {
3939
3429
  };
3940
- module$exports$safevalues$internals$style_impl.SafeStyle.prototype.toString = function() {
3941
- return this.privateDoNotAccessOrElseWrappedStyle;
3430
+ module$exports$check.assumeExhaustiveAllowing = function(value) {
3942
3431
  };
3943
- var module$contents$safevalues$internals$style_impl_StyleImpl = module$exports$safevalues$internals$style_impl.SafeStyle;
3944
- function module$contents$safevalues$internals$style_impl_createStyleInternal(value) {
3945
- return new module$exports$safevalues$internals$style_impl.SafeStyle(module$exports$safevalues$internals$secrets.secretToken, value);
3432
+ var module$exports$safevalues$dom$elements$iframe = {}, module$contents$safevalues$dom$elements$iframe_module = module$contents$safevalues$dom$elements$iframe_module || {id:"third_party/javascript/safevalues/dom/elements/iframe.closure.js"};
3433
+ function module$contents$safevalues$dom$elements$iframe_setSrc(iframe, v) {
3434
+ iframe.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v).toString();
3946
3435
  }
3947
- module$exports$safevalues$internals$style_impl.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
3948
- function module$contents$safevalues$internals$style_impl_isStyle(value) {
3949
- return value instanceof module$exports$safevalues$internals$style_impl.SafeStyle;
3436
+ module$exports$safevalues$dom$elements$iframe.setSrc = module$contents$safevalues$dom$elements$iframe_setSrc;
3437
+ function module$contents$safevalues$dom$elements$iframe_setSrcdoc(iframe, v) {
3438
+ iframe.srcdoc = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
3950
3439
  }
3951
- module$exports$safevalues$internals$style_impl.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
3952
- function module$contents$safevalues$internals$style_impl_unwrapStyle(value) {
3953
- if (module$contents$safevalues$internals$style_impl_isStyle(value)) {
3954
- return value.privateDoNotAccessOrElseWrappedStyle;
3440
+ module$exports$safevalues$dom$elements$iframe.setSrcdoc = module$contents$safevalues$dom$elements$iframe_setSrcdoc;
3441
+ module$exports$safevalues$dom$elements$iframe.Intent = {FORMATTED_HTML_CONTENT:0, EMBEDDED_INTERNAL_CONTENT:1, EMBEDDED_TRUSTED_EXTERNAL_CONTENT:2};
3442
+ module$exports$safevalues$dom$elements$iframe.Intent[module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT] = "FORMATTED_HTML_CONTENT";
3443
+ module$exports$safevalues$dom$elements$iframe.Intent[module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT] = "EMBEDDED_INTERNAL_CONTENT";
3444
+ module$exports$safevalues$dom$elements$iframe.Intent[module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT] = "EMBEDDED_TRUSTED_EXTERNAL_CONTENT";
3445
+ var module$contents$safevalues$dom$elements$iframe_SandboxDirective = {ALLOW_SAME_ORIGIN:"allow-same-origin", ALLOW_SCRIPTS:"allow-scripts", ALLOW_FORMS:"allow-forms", ALLOW_POPUPS:"allow-popups", ALLOW_POPUPS_TO_ESCAPE_SANDBOX:"allow-popups-to-escape-sandbox", ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION:"allow-storage-access-by-user-activation"};
3446
+ function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr, directives) {
3447
+ ifr.setAttribute("sandbox", "");
3448
+ for (var i = 0; i < directives.length; i++) {
3449
+ ifr.sandbox.supports && !ifr.sandbox.supports(directives[i]) || ifr.sandbox.add(directives[i]);
3955
3450
  }
3956
- var message = "";
3957
- goog.DEBUG && (message = "Unexpected type when unwrapping SafeStyle, got '" + value + "' of type '" + typeof value + "'");
3958
- throw Error(message);
3959
3451
  }
3960
- module$exports$safevalues$internals$style_impl.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
3961
- var module$exports$safevalues$for_closure$index = {}, module$contents$safevalues$for_closure$index_module = module$contents$safevalues$for_closure$index_module || {id:"third_party/javascript/safevalues/for_closure/index.closure.js"};
3962
- module$exports$safevalues$for_closure$index.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
3963
- module$exports$safevalues$for_closure$index.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
3964
- module$exports$safevalues$for_closure$index.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
3965
- module$exports$safevalues$for_closure$index.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
3966
- module$exports$safevalues$for_closure$index.SafeUrl = module$exports$safevalues$internals$url_impl.SafeUrl;
3967
- module$exports$safevalues$for_closure$index.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
3968
- var module$exports$safevalues$for_closure = {};
3969
- module$exports$safevalues$for_closure.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
3970
- module$exports$safevalues$for_closure.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
3971
- module$exports$safevalues$for_closure.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
3972
- module$exports$safevalues$for_closure.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
3973
- module$exports$safevalues$for_closure.SafeUrl = module$exports$safevalues$internals$url_impl.SafeUrl;
3974
- module$exports$safevalues$for_closure.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
3975
- module$exports$safevalues$internals$style_impl.SafeStyle.fromConstant = function(style) {
3976
- var styleString = goog.string.Const.unwrap(style);
3977
- if (styleString.length === 0) {
3978
- return module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY;
3979
- }
3980
- (0,goog.asserts.assert)((0,goog.string.internal.endsWith)(styleString, ";"), "Last character of style string is not ';': " + styleString);
3981
- (0,goog.asserts.assert)((0,goog.string.internal.contains)(styleString, ":"), "Style string must contain at least one ':', to specify a \"name: value\" pair: " + styleString);
3982
- return module$contents$safevalues$internals$style_impl_createStyleInternal(styleString);
3983
- };
3984
- module$exports$safevalues$internals$style_impl.SafeStyle.unwrap = function(safeStyle) {
3985
- return module$contents$safevalues$internals$style_impl_unwrapStyle(safeStyle);
3452
+ module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError = function(type, intent) {
3453
+ var $jscomp$tmp$error$240424914$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.Intent[intent]);
3454
+ this.message = $jscomp$tmp$error$240424914$1.message;
3455
+ "stack" in $jscomp$tmp$error$240424914$1 && (this.stack = $jscomp$tmp$error$240424914$1.stack);
3456
+ this.type = type;
3457
+ this.intent = intent;
3458
+ this.name = "TypeCannotBeUsedWithIntentError";
3986
3459
  };
3987
- module$exports$safevalues$internals$style_impl.SafeStyle.create = function(map) {
3988
- var style = "", name;
3989
- for (name in map) {
3990
- if (Object.prototype.hasOwnProperty.call(map, name)) {
3991
- if (!/^[-_a-zA-Z0-9]+$/.test(name)) {
3992
- throw Error("Name allows only [-_a-zA-Z0-9], got: " + name);
3460
+ $jscomp.inherits(module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError, Error);
3461
+ module$exports$safevalues$dom$elements$iframe.setSrcWithIntent = function(element, intent, src) {
3462
+ element.removeAttribute("srcdoc");
3463
+ switch(intent) {
3464
+ case module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT:
3465
+ if (src instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl) {
3466
+ throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("TrustedResourceUrl", module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT);
3993
3467
  }
3994
- var value = map[name];
3995
- value != null && (value = Array.isArray(value) ? value.map(module$contents$goog$html$SafeStyle_sanitizePropertyValue).join(" ") : module$contents$goog$html$SafeStyle_sanitizePropertyValue(value), style += name + ":" + value + ";");
3996
- }
3468
+ module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, []);
3469
+ var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(src);
3470
+ sanitizedUrl !== void 0 && (element.src = sanitizedUrl);
3471
+ break;
3472
+ case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT:
3473
+ if (!(src instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl)) {
3474
+ throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError(typeof src, module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT);
3475
+ }
3476
+ module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SAME_ORIGIN, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,
3477
+ module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);
3478
+ module$contents$safevalues$dom$elements$iframe_setSrc(element, src);
3479
+ break;
3480
+ case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT:
3481
+ if (src instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl) {
3482
+ throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("TrustedResourceUrl", module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT);
3483
+ }
3484
+ module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SAME_ORIGIN, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,
3485
+ module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);
3486
+ var sanitizedUrl$jscomp$0 = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(src);
3487
+ sanitizedUrl$jscomp$0 !== void 0 && (element.src = sanitizedUrl$jscomp$0);
3488
+ break;
3489
+ default:
3490
+ module$contents$check_checkExhaustive(intent);
3997
3491
  }
3998
- return style ? module$contents$safevalues$internals$style_impl_createStyleInternal(style) : module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY;
3999
- };
4000
- module$exports$safevalues$internals$style_impl.SafeStyle.concat = function(var_args) {
4001
- var style = "", addArgument = function(argument) {
4002
- Array.isArray(argument) ? argument.forEach(addArgument) : style += module$exports$safevalues$internals$style_impl.SafeStyle.unwrap(argument);
4003
- };
4004
- Array.prototype.forEach.call(arguments, addArgument);
4005
- return style ? module$contents$safevalues$internals$style_impl_createStyleInternal(style) : module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY;
4006
3492
  };
4007
- module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY = module$contents$safevalues$internals$style_impl_createStyleInternal("");
4008
- module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING = "zClosurez";
4009
- function module$contents$goog$html$SafeStyle_sanitizePropertyValue(value) {
4010
- if (value instanceof module$exports$safevalues$internals$url_impl.SafeUrl) {
4011
- return 'url("' + value.toString().replace(/</g, "%3c").replace(/[\\"]/g, "\\$&") + '")';
4012
- }
4013
- var result = value instanceof goog.string.Const ? goog.string.Const.unwrap(value) : module$contents$goog$html$SafeStyle_sanitizePropertyValueString(String(value));
4014
- if (/[{;}]/.test(result)) {
4015
- throw new module$contents$goog$asserts_AssertionError("Value does not allow [{;}], got: %s.", [result]);
4016
- }
4017
- return result;
4018
- }
4019
- function module$contents$goog$html$SafeStyle_sanitizePropertyValueString(value) {
4020
- var valueWithoutFunctions = value.replace(module$contents$goog$html$SafeStyle_FUNCTIONS_RE, "$1").replace(module$contents$goog$html$SafeStyle_FUNCTIONS_RE, "$1").replace(module$contents$goog$html$SafeStyle_URL_RE, "url");
4021
- if (module$contents$goog$html$SafeStyle_VALUE_RE.test(valueWithoutFunctions)) {
4022
- if (module$contents$goog$html$SafeStyle_COMMENT_RE.test(value)) {
4023
- return (0,goog.asserts.fail)("String value disallows comments, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
4024
- }
4025
- if (!module$contents$goog$html$SafeStyle_hasBalancedQuotes(value)) {
4026
- return (0,goog.asserts.fail)("String value requires balanced quotes, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
4027
- }
4028
- if (!module$contents$goog$html$SafeStyle_hasBalancedSquareBrackets(value)) {
4029
- return (0,goog.asserts.fail)("String value requires balanced square brackets and one identifier per pair of brackets, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
4030
- }
4031
- } else {
4032
- return (0,goog.asserts.fail)("String value allows only [-+,.\"'%_!#/ a-zA-Z0-9\\[\\]] and simple functions, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
4033
- }
4034
- return module$contents$goog$html$SafeStyle_sanitizeUrl(value);
4035
- }
4036
- function module$contents$goog$html$SafeStyle_hasBalancedQuotes(value) {
4037
- for (var outsideSingle = !0, outsideDouble = !0, i = 0; i < value.length; i++) {
4038
- var c = value.charAt(i);
4039
- c == "'" && outsideDouble ? outsideSingle = !outsideSingle : c == '"' && outsideSingle && (outsideDouble = !outsideDouble);
4040
- }
4041
- return outsideSingle && outsideDouble;
4042
- }
4043
- function module$contents$goog$html$SafeStyle_hasBalancedSquareBrackets(value) {
4044
- for (var outside = !0, tokenRe = /^[-_a-zA-Z0-9]$/, i = 0; i < value.length; i++) {
4045
- var c = value.charAt(i);
4046
- if (c == "]") {
4047
- if (outside) {
4048
- return !1;
3493
+ module$exports$safevalues$dom$elements$iframe.setSrcdocWithIntent = function(element, intent, srcdoc) {
3494
+ element.removeAttribute("src");
3495
+ switch(intent) {
3496
+ case module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT:
3497
+ if (srcdoc instanceof module$exports$safevalues$internals$html_impl.SafeHtml) {
3498
+ throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("SafeHtml", module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT);
4049
3499
  }
4050
- outside = !0;
4051
- } else if (c == "[") {
4052
- if (!outside) {
4053
- return !1;
3500
+ element.csp = "default-src 'none'";
3501
+ module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, []);
3502
+ module$contents$safevalues$dom$elements$iframe_setSrcdoc(element, (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(srcdoc));
3503
+ break;
3504
+ case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT:
3505
+ if (!(srcdoc instanceof module$exports$safevalues$internals$html_impl.SafeHtml)) {
3506
+ throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("string", module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT);
4054
3507
  }
4055
- outside = !1;
4056
- } else if (!outside && !tokenRe.test(c)) {
4057
- return !1;
4058
- }
4059
- }
4060
- return outside;
4061
- }
4062
- var module$contents$goog$html$SafeStyle_VALUE_RE = RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"), module$contents$goog$html$SafeStyle_URL_RE = RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))", "g"), module$contents$goog$html$SafeStyle_FUNCTIONS_RE = RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|steps|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)", "g"), module$contents$goog$html$SafeStyle_COMMENT_RE =
4063
- /\/\*/;
4064
- function module$contents$goog$html$SafeStyle_sanitizeUrl(value) {
4065
- return value.replace(module$contents$goog$html$SafeStyle_URL_RE, function(match, before, url, after) {
4066
- var quote = "";
4067
- url = url.replace(/^(['"])(.*)\1$/, function(match, start, inside) {
4068
- quote = start;
4069
- return inside;
4070
- });
4071
- var sanitized = module$contents$safevalues$builders$url_builders_sanitizeUrl(url).toString();
4072
- return before + quote + sanitized + quote + after;
4073
- });
4074
- }
4075
- goog.html.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
4076
- var module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE = {}, module$contents$goog$html$SafeStyleSheet_SafeStyleSheet = function(value, token) {
4077
- if (goog.DEBUG && token !== module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE) {
4078
- throw Error("SafeStyleSheet is not meant to be built directly");
3508
+ module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SAME_ORIGIN, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,
3509
+ module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);
3510
+ module$contents$safevalues$dom$elements$iframe_setSrcdoc(element, srcdoc);
3511
+ break;
3512
+ case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT:
3513
+ if (srcdoc instanceof module$exports$safevalues$internals$html_impl.SafeHtml) {
3514
+ throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("SafeHtml", module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT);
3515
+ }
3516
+ module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX,
3517
+ module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);
3518
+ module$contents$safevalues$dom$elements$iframe_setSrcdoc(element, (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(srcdoc));
3519
+ break;
3520
+ default:
3521
+ module$contents$check_checkExhaustive(intent);
4079
3522
  }
4080
- this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_ = value;
4081
3523
  };
4082
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.prototype.toString = function() {
4083
- return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_.toString();
4084
- };
4085
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createRule = function(selector, style) {
4086
- if ((0,goog.string.internal.contains)(selector, "<")) {
4087
- throw Error("Selector does not allow '<', got: " + selector);
4088
- }
4089
- var selectorToCheck = selector.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g, "");
4090
- if (!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=\\^$|]+$/.test(selectorToCheck)) {
4091
- throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=\\^$|] and strings, got: " + selector);
4092
- }
4093
- if (!module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_(selectorToCheck)) {
4094
- throw Error("() and [] in selector must be balanced, got: " + selector);
4095
- }
4096
- style instanceof module$exports$safevalues$internals$style_impl.SafeStyle || (style = module$exports$safevalues$internals$style_impl.SafeStyle.create(style));
4097
- var styleSheet = selector + "{" + module$exports$safevalues$internals$style_impl.SafeStyle.unwrap(style).replace(/</g, "\\3C ") + "}";
4098
- return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(styleSheet);
3524
+ var module$exports$safevalues$dom$elements$input = {}, module$contents$safevalues$dom$elements$input_module = module$contents$safevalues$dom$elements$input_module || {id:"third_party/javascript/safevalues/dom/elements/input.closure.js"};
3525
+ module$exports$safevalues$dom$elements$input.setFormaction = function(input, url) {
3526
+ var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
3527
+ sanitizedUrl !== void 0 && (input.formAction = sanitizedUrl);
4099
3528
  };
4100
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_ = function(s) {
4101
- for (var brackets = {"(":")", "[":"]"}, expectedBrackets = [], i = 0; i < s.length; i++) {
4102
- var ch = s[i];
4103
- if (brackets[ch]) {
4104
- expectedBrackets.push(brackets[ch]);
4105
- } else if (module$contents$goog$object_contains(brackets, ch) && expectedBrackets.pop() != ch) {
4106
- return !1;
3529
+ var module$exports$safevalues$dom$elements$link = {}, module$contents$safevalues$dom$elements$link_module = module$contents$safevalues$dom$elements$link_module || {id:"third_party/javascript/safevalues/dom/elements/link.closure.js"}, module$contents$safevalues$dom$elements$link_SAFE_URL_REL_VALUES = "alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");
3530
+ module$exports$safevalues$dom$elements$link.setHrefAndRel = function(link, url, rel) {
3531
+ if (module$contents$safevalues$internals$resource_url_impl_isResourceUrl(url)) {
3532
+ module$contents$safevalues$dom$elements$link_setHrefAndRelWithTrustedResourceUrl(link, url, rel);
3533
+ } else {
3534
+ if (module$contents$safevalues$dom$elements$link_SAFE_URL_REL_VALUES.indexOf(rel) === -1) {
3535
+ throw Error('TrustedResourceUrl href attribute required with rel="' + rel + '"');
4107
3536
  }
3537
+ var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
3538
+ sanitizedUrl !== void 0 && (link.href = sanitizedUrl, link.rel = rel);
4108
3539
  }
4109
- return expectedBrackets.length == 0;
4110
- };
4111
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.concat = function(var_args) {
4112
- var result = "", addArgument = function(argument) {
4113
- Array.isArray(argument) ? argument.forEach(addArgument) : result += module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(argument);
4114
- };
4115
- Array.prototype.forEach.call(arguments, addArgument);
4116
- return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(result);
4117
3540
  };
4118
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.fromConstant = function(styleSheet) {
4119
- var styleSheetString = goog.string.Const.unwrap(styleSheet);
4120
- if (styleSheetString.length === 0) {
4121
- return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.EMPTY;
4122
- }
4123
- (0,goog.asserts.assert)(!(0,goog.string.internal.contains)(styleSheetString, "<"), "Forbidden '<' character in style sheet string: " + styleSheetString);
4124
- return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(styleSheetString);
3541
+ function module$contents$safevalues$dom$elements$link_setHrefAndRelWithTrustedResourceUrl(link, url, rel) {
3542
+ link.href = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString();
3543
+ link.rel = rel;
3544
+ }
3545
+ module$exports$safevalues$dom$elements$link.setHrefAndRelWithTrustedResourceUrl = module$contents$safevalues$dom$elements$link_setHrefAndRelWithTrustedResourceUrl;
3546
+ var module$exports$safevalues$dom$elements$object = {}, module$contents$safevalues$dom$elements$object_module = module$contents$safevalues$dom$elements$object_module || {id:"third_party/javascript/safevalues/dom/elements/object.closure.js"};
3547
+ module$exports$safevalues$dom$elements$object.setData = function(obj, v) {
3548
+ obj.data = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v);
4125
3549
  };
4126
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap = function(safeStyleSheet) {
4127
- if (safeStyleSheet instanceof module$contents$goog$html$SafeStyleSheet_SafeStyleSheet && safeStyleSheet.constructor === module$contents$goog$html$SafeStyleSheet_SafeStyleSheet) {
4128
- return safeStyleSheet.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_;
4129
- }
4130
- (0,goog.asserts.fail)("expected object of type SafeStyleSheet, got '" + safeStyleSheet + "' of type " + goog.typeOf(safeStyleSheet));
4131
- return "type_error:SafeStyleSheet";
3550
+ var module$exports$safevalues$dom$globals$window = {}, module$contents$safevalues$dom$globals$window_module = module$contents$safevalues$dom$globals$window_module || {id:"third_party/javascript/safevalues/dom/globals/window.closure.js"};
3551
+ module$exports$safevalues$dom$globals$window.open = function(win, url, target, features) {
3552
+ var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
3553
+ return sanitizedUrl !== void 0 ? win.open(sanitizedUrl, target, features) : null;
4132
3554
  };
4133
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse = function(styleSheet) {
4134
- return new module$contents$goog$html$SafeStyleSheet_SafeStyleSheet(styleSheet, module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE);
3555
+ module$exports$safevalues$dom$globals$window.getScriptNonce = function(win) {
3556
+ return module$contents$safevalues$dom$globals$window_getNonceFor("script", win);
4135
3557
  };
4136
- module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.EMPTY = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse("");
4137
- goog.html.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
4138
- var module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE = {}, module$contents$goog$html$SafeHtml_SafeHtml = function(value, token) {
4139
- if (goog.DEBUG && token !== module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE) {
4140
- throw Error("SafeHtml is not meant to be built directly");
4141
- }
4142
- this.privateDoNotAccessOrElseSafeHtmlWrappedValue_ = value;
3558
+ module$exports$safevalues$dom$globals$window.getStyleNonce = function(win) {
3559
+ return module$contents$safevalues$dom$globals$window_getNonceFor("style", win);
4143
3560
  };
4144
- module$contents$goog$html$SafeHtml_SafeHtml.prototype.toString = function() {
4145
- return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString();
3561
+ function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, win) {
3562
+ var $jscomp$optchain$tmp220578679$0, $jscomp$optchain$tmp220578679$1, el = ($jscomp$optchain$tmp220578679$1 = ($jscomp$optchain$tmp220578679$0 = win.document).querySelector) == null ? void 0 : $jscomp$optchain$tmp220578679$1.call($jscomp$optchain$tmp220578679$0, elementName + "[nonce]");
3563
+ return el ? el.nonce || el.getAttribute("nonce") || "" : "";
3564
+ }
3565
+ ;var module$exports$safevalues$internals$script_impl = {}, module$contents$safevalues$internals$script_impl_module = module$contents$safevalues$internals$script_impl_module || {id:"third_party/javascript/safevalues/internals/script_impl.closure.js"}, module$contents$safevalues$internals$script_impl_trustedTypes = goog.global.trustedTypes;
3566
+ module$exports$safevalues$internals$script_impl.SafeScript = function(token, value) {
3567
+ goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
3568
+ this.privateDoNotAccessOrElseWrappedScript = value;
4146
3569
  };
4147
- module$contents$goog$html$SafeHtml_SafeHtml.unwrap = function(safeHtml) {
4148
- return module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(safeHtml).toString();
3570
+ module$exports$safevalues$internals$script_impl.SafeScript.prototype.toString = function() {
3571
+ return this.privateDoNotAccessOrElseWrappedScript + "";
4149
3572
  };
4150
- module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML = function(safeHtml) {
4151
- if (safeHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml && safeHtml.constructor === module$contents$goog$html$SafeHtml_SafeHtml) {
4152
- return safeHtml.privateDoNotAccessOrElseSafeHtmlWrappedValue_;
3573
+ var module$contents$safevalues$internals$script_impl_ScriptImpl = module$exports$safevalues$internals$script_impl.SafeScript;
3574
+ function module$contents$safevalues$internals$script_impl_constructScript(value) {
3575
+ return new module$exports$safevalues$internals$script_impl.SafeScript(module$exports$safevalues$internals$secrets.secretToken, value);
3576
+ }
3577
+ function module$contents$safevalues$internals$script_impl_createScriptInternal(value) {
3578
+ var noinlineValue = value, policy = (0,goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse)();
3579
+ return module$contents$safevalues$internals$script_impl_constructScript(policy ? policy.createScript(noinlineValue) : noinlineValue);
3580
+ }
3581
+ module$exports$safevalues$internals$script_impl.createScriptInternal = module$contents$safevalues$internals$script_impl_createScriptInternal;
3582
+ module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT = module$contents$safevalues$internals$pure_pure(function() {
3583
+ return module$contents$safevalues$internals$script_impl_constructScript(module$contents$safevalues$internals$script_impl_trustedTypes ? module$contents$safevalues$internals$script_impl_trustedTypes.emptyScript : "");
3584
+ });
3585
+ function module$contents$safevalues$internals$script_impl_isScript(value) {
3586
+ return value instanceof module$exports$safevalues$internals$script_impl.SafeScript;
3587
+ }
3588
+ module$exports$safevalues$internals$script_impl.isScript = module$contents$safevalues$internals$script_impl_isScript;
3589
+ function module$contents$safevalues$internals$script_impl_unwrapScript(value) {
3590
+ if (module$contents$safevalues$internals$script_impl_isScript(value)) {
3591
+ return value.privateDoNotAccessOrElseWrappedScript;
4153
3592
  }
4154
- goog.asserts.fail("expected object of type SafeHtml, got '" + safeHtml + "' of type " + goog.typeOf(safeHtml));
4155
- return "type_error:SafeHtml";
4156
- };
4157
- module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape = function(textOrHtml) {
4158
- return textOrHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml ? textOrHtml : module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(String(textOrHtml)));
3593
+ var message = "";
3594
+ goog.DEBUG && (message = "Unexpected type when unwrapping SafeScript");
3595
+ throw Error(message);
3596
+ }
3597
+ module$exports$safevalues$internals$script_impl.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
3598
+ var module$exports$safevalues$dom$elements$script = {}, module$contents$safevalues$dom$elements$script_module = module$contents$safevalues$dom$elements$script_module || {id:"third_party/javascript/safevalues/dom/elements/script.closure.js"};
3599
+ function module$contents$safevalues$dom$elements$script_setNonceForScriptElement(script) {
3600
+ var nonce = (0,module$exports$safevalues$dom$globals$window.getScriptNonce)(script.ownerDocument && script.ownerDocument.defaultView || window);
3601
+ nonce && script.setAttribute("nonce", nonce);
3602
+ }
3603
+ module$exports$safevalues$dom$elements$script.setTextContent = function(script, v, options) {
3604
+ script.textContent = module$contents$safevalues$internals$script_impl_unwrapScript(v);
3605
+ (options == null ? 0 : options.omitNonce) || module$contents$safevalues$dom$elements$script_setNonceForScriptElement(script);
4159
3606
  };
4160
- module$contents$goog$html$SafeHtml_SafeHtml.htmlEscapePreservingNewlines = function(textOrHtml) {
4161
- if (textOrHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml) {
4162
- return textOrHtml;
4163
- }
4164
- var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(textOrHtml);
4165
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html)));
3607
+ module$exports$safevalues$dom$elements$script.setSrc = function(script, v, options) {
3608
+ script.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v);
3609
+ (options == null ? 0 : options.omitNonce) || module$contents$safevalues$dom$elements$script_setNonceForScriptElement(script);
4166
3610
  };
4167
- module$contents$goog$html$SafeHtml_SafeHtml.htmlEscapePreservingNewlinesAndSpaces = function(textOrHtml) {
4168
- if (textOrHtml instanceof module$contents$goog$html$SafeHtml_SafeHtml) {
4169
- return textOrHtml;
4170
- }
4171
- var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(textOrHtml);
4172
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html)));
3611
+ var module$exports$safevalues$internals$style_sheet_impl = {}, module$contents$safevalues$internals$style_sheet_impl_module = module$contents$safevalues$internals$style_sheet_impl_module || {id:"third_party/javascript/safevalues/internals/style_sheet_impl.closure.js"};
3612
+ module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet = function(token, value) {
3613
+ goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
3614
+ this.privateDoNotAccessOrElseWrappedStyleSheet = value;
4173
3615
  };
4174
- module$contents$goog$html$SafeHtml_SafeHtml.create = function(tagName, attributes, content) {
4175
- module$contents$goog$html$SafeHtml_SafeHtml.verifyTagName(String(tagName));
4176
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(tagName), attributes, content);
3616
+ module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.prototype.toString = function() {
3617
+ return this.privateDoNotAccessOrElseWrappedStyleSheet;
4177
3618
  };
4178
- module$contents$goog$html$SafeHtml_SafeHtml.verifyTagName = function(tagName) {
4179
- if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(tagName)) {
4180
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? "Invalid tag name <" + tagName + ">." : "");
4181
- }
4182
- if (tagName.toUpperCase() in module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES) {
4183
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? "Tag name <" + tagName + "> is not allowed for SafeHtml." : "");
3619
+ var module$contents$safevalues$internals$style_sheet_impl_StyleSheetImpl = module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet;
3620
+ function module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(value) {
3621
+ return new module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet(module$exports$safevalues$internals$secrets.secretToken, value);
3622
+ }
3623
+ module$exports$safevalues$internals$style_sheet_impl.createStyleSheetInternal = module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal;
3624
+ function module$contents$safevalues$internals$style_sheet_impl_isStyleSheet(value) {
3625
+ return value instanceof module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet;
3626
+ }
3627
+ module$exports$safevalues$internals$style_sheet_impl.isStyleSheet = module$contents$safevalues$internals$style_sheet_impl_isStyleSheet;
3628
+ function module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(value) {
3629
+ if (module$contents$safevalues$internals$style_sheet_impl_isStyleSheet(value)) {
3630
+ return value.privateDoNotAccessOrElseWrappedStyleSheet;
4184
3631
  }
3632
+ var message = "";
3633
+ goog.DEBUG && (message = "Unexpected type when unwrapping SafeStyleSheet, got '" + value + "' of type '" + typeof value + "'");
3634
+ throw Error(message);
3635
+ }
3636
+ module$exports$safevalues$internals$style_sheet_impl.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
3637
+ var module$exports$safevalues$dom$elements$style = {}, module$contents$safevalues$dom$elements$style_module = module$contents$safevalues$dom$elements$style_module || {id:"third_party/javascript/safevalues/dom/elements/style.closure.js"};
3638
+ module$exports$safevalues$dom$elements$style.setTextContent = function(elem, safeStyleSheet) {
3639
+ elem.textContent = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(safeStyleSheet);
4185
3640
  };
4186
- module$contents$goog$html$SafeHtml_SafeHtml.createIframe = function(src, srcdoc, attributes, content) {
4187
- src && goog.html.TrustedResourceUrl.unwrap(src);
4188
- var fixedAttributes = {};
4189
- fixedAttributes.src = src || null;
4190
- fixedAttributes.srcdoc = srcdoc && module$contents$goog$html$SafeHtml_SafeHtml.unwrap(srcdoc);
4191
- var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes(fixedAttributes, {sandbox:""}, attributes);
4192
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
4193
- };
4194
- module$contents$goog$html$SafeHtml_SafeHtml.createSandboxIframe = function(src, srcdoc, attributes, content) {
4195
- if (!module$contents$goog$html$SafeHtml_SafeHtml.canUseSandboxIframe()) {
4196
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? "The browser does not support sandboxed iframes." : "");
3641
+ var module$exports$safevalues$dom$elements$svg = {}, module$contents$safevalues$dom$elements$svg_module = module$contents$safevalues$dom$elements$svg_module || {id:"third_party/javascript/safevalues/dom/elements/svg.closure.js"}, module$contents$safevalues$dom$elements$svg_UNSAFE_SVG_ATTRIBUTES = ["href", "xlink:href"];
3642
+ module$exports$safevalues$dom$elements$svg.setAttribute = function(svg, attr, value) {
3643
+ var attrLower = attr.toLowerCase();
3644
+ if (module$contents$safevalues$dom$elements$svg_UNSAFE_SVG_ATTRIBUTES.indexOf(attrLower) !== -1 || attrLower.indexOf("on") === 0) {
3645
+ var msg = "";
3646
+ goog.DEBUG && (msg = "Setting the '" + attrLower + "' attribute on SVG can cause XSS.");
3647
+ throw Error(msg);
4197
3648
  }
4198
- var fixedAttributes = {};
4199
- fixedAttributes.src = src ? module$contents$safevalues$internals$url_impl_unwrapUrl(module$contents$safevalues$builders$url_builders_sanitizeUrl(src)) : null;
4200
- fixedAttributes.srcdoc = srcdoc || null;
4201
- fixedAttributes.sandbox = "";
4202
- var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes(fixedAttributes, {}, attributes);
4203
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
4204
- };
4205
- module$contents$goog$html$SafeHtml_SafeHtml.canUseSandboxIframe = function() {
4206
- return goog.global.HTMLIFrameElement && "sandbox" in goog.global.HTMLIFrameElement.prototype;
4207
- };
4208
- module$contents$goog$html$SafeHtml_SafeHtml.createScriptSrc = function(src, attributes) {
4209
- goog.html.TrustedResourceUrl.unwrap(src);
4210
- var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes({src:src}, {}, attributes);
4211
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script", combinedAttrs);
3649
+ svg.setAttribute(attr, value);
4212
3650
  };
4213
- module$contents$goog$html$SafeHtml_SafeHtml.createStyle = function(styleSheet, attributes) {
4214
- var combinedAttrs = module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes({type:"text/css"}, {}, attributes), content = "";
4215
- styleSheet = module$contents$goog$array_concat(styleSheet);
4216
- for (var i = 0; i < styleSheet.length; i++) {
4217
- content += module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(styleSheet[i]);
3651
+ goog.array = {};
3652
+ goog.NATIVE_ARRAY_PROTOTYPES = goog.TRUSTED_SITE;
3653
+ var module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS = goog.FEATURESET_YEAR > 2012;
3654
+ goog.array.ASSUME_NATIVE_FUNCTIONS = module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS;
3655
+ function module$contents$goog$array_peek(array) {
3656
+ return array[array.length - 1];
3657
+ }
3658
+ goog.array.peek = module$contents$goog$array_peek;
3659
+ goog.array.last = module$contents$goog$array_peek;
3660
+ var module$contents$goog$array_indexOf = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.indexOf) ? function(arr, obj, opt_fromIndex) {
3661
+ goog.asserts.assert(arr.length != null);
3662
+ return Array.prototype.indexOf.call(arr, obj, opt_fromIndex);
3663
+ } : function(arr, obj, opt_fromIndex) {
3664
+ var fromIndex = opt_fromIndex == null ? 0 : opt_fromIndex < 0 ? Math.max(0, arr.length + opt_fromIndex) : opt_fromIndex;
3665
+ if (typeof arr === "string") {
3666
+ return typeof obj !== "string" || obj.length != 1 ? -1 : arr.indexOf(obj, fromIndex);
4218
3667
  }
4219
- var htmlContent = module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(content);
4220
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style", combinedAttrs, htmlContent);
4221
- };
4222
- module$contents$goog$html$SafeHtml_SafeHtml.createMetaRefresh = function(url, secs) {
4223
- var unwrappedUrl = module$contents$safevalues$internals$url_impl_unwrapUrl(module$contents$safevalues$builders$url_builders_sanitizeUrl(url));
4224
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta", {"http-equiv":"refresh", content:(secs || 0) + "; url=" + unwrappedUrl});
4225
- };
4226
- module$contents$goog$html$SafeHtml_SafeHtml.join = function(separator, parts) {
4227
- var separatorHtml = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(separator), content = [], addArgument = function(argument) {
4228
- if (Array.isArray(argument)) {
4229
- argument.forEach(addArgument);
4230
- } else {
4231
- var html = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape(argument);
4232
- content.push(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html));
3668
+ for (var i = fromIndex; i < arr.length; i++) {
3669
+ if (i in arr && arr[i] === obj) {
3670
+ return i;
4233
3671
  }
4234
- };
4235
- parts.forEach(addArgument);
4236
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(content.join(module$contents$goog$html$SafeHtml_SafeHtml.unwrap(separatorHtml)));
4237
- };
4238
- module$contents$goog$html$SafeHtml_SafeHtml.concat = function(var_args) {
4239
- return module$contents$goog$html$SafeHtml_SafeHtml.join(module$contents$goog$html$SafeHtml_SafeHtml.EMPTY, Array.prototype.slice.call(arguments));
4240
- };
4241
- module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse = function(html) {
4242
- var noinlineHtml = html, policy = goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse(), trustedHtml = policy ? policy.createHTML(noinlineHtml) : noinlineHtml;
4243
- return new module$contents$goog$html$SafeHtml_SafeHtml(trustedHtml, module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE);
4244
- };
4245
- module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse = function(tagName, attributes, content) {
4246
- var result = "<" + tagName + module$contents$goog$html$SafeHtml_SafeHtml.stringifyAttributes(tagName, attributes);
4247
- content == null ? content = [] : Array.isArray(content) || (content = [content]);
4248
- if (goog.dom.tags.isVoidTag(tagName.toLowerCase())) {
4249
- goog.asserts.assert(!content.length, "Void tag <" + tagName + "> does not allow content."), result += ">";
4250
- } else {
4251
- var html = module$contents$goog$html$SafeHtml_SafeHtml.concat(content);
4252
- result += ">" + module$contents$goog$html$SafeHtml_SafeHtml.unwrap(html) + "</" + tagName + ">";
4253
3672
  }
4254
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(result);
3673
+ return -1;
4255
3674
  };
4256
- module$contents$goog$html$SafeHtml_SafeHtml.stringifyAttributes = function(tagName, attributes) {
4257
- var result = "";
4258
- if (attributes) {
4259
- for (var name in attributes) {
4260
- if (Object.prototype.hasOwnProperty.call(attributes, name)) {
4261
- if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(name)) {
4262
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Invalid attribute name "' + name + '".' : "");
4263
- }
4264
- var value = attributes[name];
4265
- value != null && (result += " " + module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value));
4266
- }
3675
+ goog.array.indexOf = module$contents$goog$array_indexOf;
3676
+ var module$contents$goog$array_lastIndexOf = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.lastIndexOf) ? function(arr, obj, opt_fromIndex) {
3677
+ goog.asserts.assert(arr.length != null);
3678
+ return Array.prototype.lastIndexOf.call(arr, obj, opt_fromIndex == null ? arr.length - 1 : opt_fromIndex);
3679
+ } : function(arr, obj, opt_fromIndex) {
3680
+ var fromIndex = opt_fromIndex == null ? arr.length - 1 : opt_fromIndex;
3681
+ fromIndex < 0 && (fromIndex = Math.max(0, arr.length + fromIndex));
3682
+ if (typeof arr === "string") {
3683
+ return typeof obj !== "string" || obj.length != 1 ? -1 : arr.lastIndexOf(obj, fromIndex);
3684
+ }
3685
+ for (var i = fromIndex; i >= 0; i--) {
3686
+ if (i in arr && arr[i] === obj) {
3687
+ return i;
4267
3688
  }
4268
3689
  }
4269
- return result;
3690
+ return -1;
4270
3691
  };
4271
- module$contents$goog$html$SafeHtml_SafeHtml.combineAttributes = function(fixedAttributes, defaultAttributes, attributes) {
4272
- var combinedAttributes = {}, name;
4273
- for (name in fixedAttributes) {
4274
- Object.prototype.hasOwnProperty.call(fixedAttributes, name) && (goog.asserts.assert(name.toLowerCase() == name, "Must be lower case"), combinedAttributes[name] = fixedAttributes[name]);
3692
+ goog.array.lastIndexOf = module$contents$goog$array_lastIndexOf;
3693
+ var module$contents$goog$array_forEach = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.forEach) ? function(arr, f, opt_obj) {
3694
+ goog.asserts.assert(arr.length != null);
3695
+ Array.prototype.forEach.call(arr, f, opt_obj);
3696
+ } : function(arr, f, opt_obj) {
3697
+ for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
3698
+ i in arr2 && f.call(opt_obj, arr2[i], i, arr);
4275
3699
  }
4276
- for (var name$jscomp$0 in defaultAttributes) {
4277
- Object.prototype.hasOwnProperty.call(defaultAttributes, name$jscomp$0) && (goog.asserts.assert(name$jscomp$0.toLowerCase() == name$jscomp$0, "Must be lower case"), combinedAttributes[name$jscomp$0] = defaultAttributes[name$jscomp$0]);
3700
+ };
3701
+ goog.array.forEach = module$contents$goog$array_forEach;
3702
+ function module$contents$goog$array_forEachRight(arr, f, opt_obj) {
3703
+ for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = l - 1; i >= 0; --i) {
3704
+ i in arr2 && f.call(opt_obj, arr2[i], i, arr);
4278
3705
  }
4279
- if (attributes) {
4280
- for (var name$jscomp$1 in attributes) {
4281
- if (Object.prototype.hasOwnProperty.call(attributes, name$jscomp$1)) {
4282
- var nameLower = name$jscomp$1.toLowerCase();
4283
- if (nameLower in fixedAttributes) {
4284
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Cannot override "' + nameLower + '" attribute, got "' + name$jscomp$1 + '" with value "' + attributes[name$jscomp$1] + '"' : "");
4285
- }
4286
- nameLower in defaultAttributes && delete combinedAttributes[nameLower];
4287
- combinedAttributes[name$jscomp$1] = attributes[name$jscomp$1];
4288
- }
3706
+ }
3707
+ goog.array.forEachRight = module$contents$goog$array_forEachRight;
3708
+ var module$contents$goog$array_filter = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.filter) ? function(arr, f, opt_obj) {
3709
+ goog.asserts.assert(arr.length != null);
3710
+ return Array.prototype.filter.call(arr, f, opt_obj);
3711
+ } : function(arr, f, opt_obj) {
3712
+ for (var l = arr.length, res = [], resLength = 0, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
3713
+ if (i in arr2) {
3714
+ var val = arr2[i];
3715
+ f.call(opt_obj, val, i, arr) && (res[resLength++] = val);
4289
3716
  }
4290
3717
  }
4291
- return combinedAttributes;
3718
+ return res;
4292
3719
  };
4293
- module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES = goog.DEBUG;
4294
- module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE = !0;
4295
- module$contents$goog$html$SafeHtml_SafeHtml.from = module$contents$goog$html$SafeHtml_SafeHtml.htmlEscape;
4296
- var module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG = /^[a-zA-Z0-9-]+$/, module$contents$goog$html$SafeHtml_URL_ATTRIBUTES = {action:!0, cite:!0, data:!0, formaction:!0, href:!0, manifest:!0, poster:!0, src:!0}, module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES = module$contents$goog$object_createSet(goog.dom.TagName.APPLET, goog.dom.TagName.BASE, goog.dom.TagName.EMBED, goog.dom.TagName.IFRAME, goog.dom.TagName.LINK, goog.dom.TagName.MATH, goog.dom.TagName.META, goog.dom.TagName.OBJECT,
4297
- goog.dom.TagName.SCRIPT, goog.dom.TagName.STYLE, goog.dom.TagName.SVG, goog.dom.TagName.TEMPLATE);
4298
- function module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value) {
4299
- if (value instanceof goog.string.Const) {
4300
- value = goog.string.Const.unwrap(value);
4301
- } else if (name.toLowerCase() == "style") {
4302
- if (module$contents$goog$html$SafeHtml_SafeHtml.SUPPORT_STYLE_ATTRIBUTE) {
4303
- value = module$contents$goog$html$SafeHtml_getStyleValue(value);
4304
- } else {
4305
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "style" not supported.' : "");
4306
- }
4307
- } else {
4308
- if (/^on/i.test(name)) {
4309
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" requires goog.string.Const value, "' + value + '" given.' : "");
3720
+ goog.array.filter = module$contents$goog$array_filter;
3721
+ var module$contents$goog$array_map = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.map) ? function(arr, f, opt_obj) {
3722
+ goog.asserts.assert(arr.length != null);
3723
+ return Array.prototype.map.call(arr, f, opt_obj);
3724
+ } : function(arr, f, opt_obj) {
3725
+ for (var l = arr.length, res = Array(l), arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
3726
+ i in arr2 && (res[i] = f.call(opt_obj, arr2[i], i, arr));
3727
+ }
3728
+ return res;
3729
+ };
3730
+ goog.array.map = module$contents$goog$array_map;
3731
+ goog.array.reduce = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.reduce) ? function(arr, f, val, opt_obj) {
3732
+ goog.asserts.assert(arr.length != null);
3733
+ opt_obj && (f = goog.TRUSTED_SITE ? f.bind(opt_obj) : goog.bind(f, opt_obj));
3734
+ return Array.prototype.reduce.call(arr, f, val);
3735
+ } : function(arr, f, val, opt_obj) {
3736
+ var rval = val;
3737
+ module$contents$goog$array_forEach(arr, function(val, index) {
3738
+ rval = f.call(opt_obj, rval, val, index, arr);
3739
+ });
3740
+ return rval;
3741
+ };
3742
+ goog.array.reduceRight = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.reduceRight) ? function(arr, f, val, opt_obj) {
3743
+ goog.asserts.assert(arr.length != null);
3744
+ goog.asserts.assert(f != null);
3745
+ opt_obj && (f = goog.TRUSTED_SITE ? f.bind(opt_obj) : goog.bind(f, opt_obj));
3746
+ return Array.prototype.reduceRight.call(arr, f, val);
3747
+ } : function(arr, f, val, opt_obj) {
3748
+ var rval = val;
3749
+ module$contents$goog$array_forEachRight(arr, function(val, index) {
3750
+ rval = f.call(opt_obj, rval, val, index, arr);
3751
+ });
3752
+ return rval;
3753
+ };
3754
+ var module$contents$goog$array_some = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.some) ? function(arr, f, opt_obj) {
3755
+ goog.asserts.assert(arr.length != null);
3756
+ return Array.prototype.some.call(arr, f, opt_obj);
3757
+ } : function(arr, f, opt_obj) {
3758
+ for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
3759
+ if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) {
3760
+ return !0;
4310
3761
  }
4311
- if (name.toLowerCase() in module$contents$goog$html$SafeHtml_URL_ATTRIBUTES) {
4312
- if (value instanceof goog.html.TrustedResourceUrl) {
4313
- value = goog.html.TrustedResourceUrl.unwrap(value);
4314
- } else if (value instanceof module$exports$safevalues$internals$url_impl.SafeUrl) {
4315
- value = module$contents$safevalues$internals$url_impl_unwrapUrl(value);
4316
- } else if (typeof value === "string") {
4317
- value = module$contents$safevalues$builders$url_builders_sanitizeUrl(value).toString();
4318
- } else {
4319
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" on tag "' + tagName + '" requires safevalues.SafeUrl, goog.string.Const, or string, value "' + value + '" given.' : "");
4320
- }
3762
+ }
3763
+ return !1;
3764
+ };
3765
+ goog.array.some = module$contents$goog$array_some;
3766
+ var module$contents$goog$array_every = goog.NATIVE_ARRAY_PROTOTYPES && (module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS || Array.prototype.every) ? function(arr, f, opt_obj) {
3767
+ goog.asserts.assert(arr.length != null);
3768
+ return Array.prototype.every.call(arr, f, opt_obj);
3769
+ } : function(arr, f, opt_obj) {
3770
+ for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
3771
+ if (i in arr2 && !f.call(opt_obj, arr2[i], i, arr)) {
3772
+ return !1;
4321
3773
  }
4322
3774
  }
4323
- goog.asserts.assert(value instanceof module$exports$safevalues$internals$url_impl.SafeUrl || value instanceof goog.html.TrustedResourceUrl || value instanceof module$exports$safevalues$internals$style_impl.SafeStyle || value instanceof module$contents$goog$html$SafeHtml_SafeHtml || typeof value === "string" || typeof value === "number", "String or number value expected, got " + typeof value + " with value: " + value);
4324
- return name + '="' + goog.string.internal.htmlEscape(String(value)) + '"';
3775
+ return !0;
3776
+ };
3777
+ goog.array.every = module$contents$goog$array_every;
3778
+ function module$contents$goog$array_count(arr, f, opt_obj) {
3779
+ var count = 0;
3780
+ module$contents$goog$array_forEach(arr, function(element, index, arr) {
3781
+ f.call(opt_obj, element, index, arr) && ++count;
3782
+ }, opt_obj);
3783
+ return count;
4325
3784
  }
4326
- function module$contents$goog$html$SafeHtml_getStyleValue(value) {
4327
- if (!goog.isObject(value)) {
4328
- throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'The "style" attribute requires goog.html.SafeStyle or map of style properties, ' + typeof value + " given: " + value : "");
3785
+ goog.array.count = module$contents$goog$array_count;
3786
+ function module$contents$goog$array_find(arr, f, opt_obj) {
3787
+ var i = module$contents$goog$array_findIndex(arr, f, opt_obj);
3788
+ return i < 0 ? null : typeof arr === "string" ? arr.charAt(i) : arr[i];
3789
+ }
3790
+ goog.array.find = module$contents$goog$array_find;
3791
+ function module$contents$goog$array_findIndex(arr, f, opt_obj) {
3792
+ for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = 0; i < l; i++) {
3793
+ if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) {
3794
+ return i;
3795
+ }
4329
3796
  }
4330
- value instanceof module$exports$safevalues$internals$style_impl.SafeStyle || (value = module$exports$safevalues$internals$style_impl.SafeStyle.create(value));
4331
- return module$exports$safevalues$internals$style_impl.SafeStyle.unwrap(value);
3797
+ return -1;
4332
3798
  }
4333
- module$contents$goog$html$SafeHtml_SafeHtml.DOCTYPE_HTML = function() {
4334
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>");
4335
- }();
4336
- module$contents$goog$html$SafeHtml_SafeHtml.EMPTY = new module$contents$goog$html$SafeHtml_SafeHtml(goog.global.trustedTypes && goog.global.trustedTypes.emptyHTML || "", module$contents$goog$html$SafeHtml_CONSTRUCTOR_TOKEN_PRIVATE);
4337
- module$contents$goog$html$SafeHtml_SafeHtml.BR = function() {
4338
- return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>");
4339
- }();
4340
- goog.html.SafeHtml = module$contents$goog$html$SafeHtml_SafeHtml;
4341
- var module$exports$goog$html$safehtml_internals_for_safevalues = {};
4342
- module$exports$goog$html$safehtml_internals_for_safevalues.createSafeHtml = module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse;
4343
- var module$exports$safevalues$internals$html_impl = {}, module$contents$safevalues$internals$html_impl_module = module$contents$safevalues$internals$html_impl_module || {id:"third_party/javascript/safevalues/internals/html_impl.closure.js"};
4344
- module$exports$safevalues$internals$html_impl.SafeHtml = module$contents$goog$html$SafeHtml_SafeHtml;
4345
- module$exports$safevalues$internals$html_impl.createHtmlInternal = function(html) {
4346
- return (0,module$exports$goog$html$safehtml_internals_for_safevalues.createSafeHtml)(html);
4347
- };
4348
- module$exports$safevalues$internals$html_impl.EMPTY_HTML = module$contents$goog$html$SafeHtml_SafeHtml.EMPTY;
4349
- module$exports$safevalues$internals$html_impl.isHtml = function(value) {
4350
- return value instanceof module$contents$goog$html$SafeHtml_SafeHtml;
4351
- };
4352
- module$exports$safevalues$internals$html_impl.unwrapHtml = function(value) {
4353
- return module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(value);
4354
- };
4355
- var module$exports$safevalues$dom$elements$element = {}, module$contents$safevalues$dom$elements$element_module = module$contents$safevalues$dom$elements$element_module || {id:"third_party/javascript/safevalues/dom/elements/element.closure.js"};
4356
- module$exports$safevalues$dom$elements$element.setInnerHtml = function(elOrRoot, v) {
4357
- module$contents$safevalues$dom$elements$element_isElement(elOrRoot) && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(elOrRoot);
4358
- elOrRoot.innerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
4359
- };
4360
- module$exports$safevalues$dom$elements$element.setOuterHtml = function(e, v) {
4361
- var parent = e.parentElement;
4362
- parent !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(parent);
4363
- e.outerHTML = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
4364
- };
4365
- module$exports$safevalues$dom$elements$element.setCssText = function(e, v) {
4366
- e.style.cssText = module$contents$safevalues$internals$style_impl_unwrapStyle(v);
4367
- };
4368
- module$exports$safevalues$dom$elements$element.insertAdjacentHtml = function(element, position, v) {
4369
- var tagContext = position === "beforebegin" || position === "afterend" ? element.parentElement : element;
4370
- tagContext !== null && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(tagContext);
4371
- element.insertAdjacentHTML(position, (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v));
4372
- };
4373
- module$exports$safevalues$dom$elements$element.buildPrefixedAttributeSetter = function(prefix) {
4374
- var prefixes = [prefix].concat((0,$jscomp.arrayFromIterable)($jscomp.getRestArguments.apply(1, arguments)));
4375
- return function(e, attr, value) {
4376
- module$contents$safevalues$dom$elements$element_setPrefixedAttribute(prefixes, e, attr, value);
4377
- };
3799
+ goog.array.findIndex = module$contents$goog$array_findIndex;
3800
+ goog.array.findRight = function(arr, f, opt_obj) {
3801
+ var i = module$contents$goog$array_findIndexRight(arr, f, opt_obj);
3802
+ return i < 0 ? null : typeof arr === "string" ? arr.charAt(i) : arr[i];
4378
3803
  };
4379
- function module$contents$safevalues$dom$elements$element_setPrefixedAttribute(attrPrefixes, e, attr, value) {
4380
- if (attrPrefixes.length === 0) {
4381
- var message = "";
4382
- goog.DEBUG && (message = "No prefixes are provided");
4383
- throw Error(message);
4384
- }
4385
- var prefixes = attrPrefixes.map(function(s) {
4386
- return module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix(s);
4387
- }), attrLower = attr.toLowerCase();
4388
- if (prefixes.every(function(p) {
4389
- return attrLower.indexOf(p) !== 0;
4390
- })) {
4391
- throw Error('Attribute "' + attr + '" does not match any of the allowed prefixes.');
3804
+ function module$contents$goog$array_findIndexRight(arr, f, opt_obj) {
3805
+ for (var l = arr.length, arr2 = typeof arr === "string" ? arr.split("") : arr, i = l - 1; i >= 0; i--) {
3806
+ if (i in arr2 && f.call(opt_obj, arr2[i], i, arr)) {
3807
+ return i;
3808
+ }
4392
3809
  }
4393
- e.setAttribute(attr, value);
3810
+ return -1;
4394
3811
  }
4395
- module$exports$safevalues$dom$elements$element.setPrefixedAttribute = module$contents$safevalues$dom$elements$element_setPrefixedAttribute;
4396
- function module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(element) {
4397
- var message = "", tagName = element.tagName;
4398
- if (tagName === "SCRIPT" || tagName === "STYLE") {
4399
- throw goog.DEBUG && (message = tagName === "SCRIPT" ? "Use safeScriptEl.setTextContent with a SafeScript." : "Use safeStyleEl.setTextContent with a SafeStyleSheet."), Error(message);
3812
+ goog.array.findIndexRight = module$contents$goog$array_findIndexRight;
3813
+ function module$contents$goog$array_contains(arr, obj) {
3814
+ return module$contents$goog$array_indexOf(arr, obj) >= 0;
3815
+ }
3816
+ goog.array.contains = module$contents$goog$array_contains;
3817
+ function module$contents$goog$array_isEmpty(arr) {
3818
+ return arr.length == 0;
3819
+ }
3820
+ goog.array.isEmpty = module$contents$goog$array_isEmpty;
3821
+ function module$contents$goog$array_clear(arr) {
3822
+ if (!Array.isArray(arr)) {
3823
+ for (var i = arr.length - 1; i >= 0; i--) {
3824
+ delete arr[i];
3825
+ }
4400
3826
  }
3827
+ arr.length = 0;
4401
3828
  }
4402
- function module$contents$safevalues$dom$elements$element_isElement(elOrRoot) {
4403
- return elOrRoot.nodeType === 1;
3829
+ goog.array.clear = module$contents$goog$array_clear;
3830
+ goog.array.insert = function(arr, obj) {
3831
+ module$contents$goog$array_contains(arr, obj) || arr.push(obj);
3832
+ };
3833
+ function module$contents$goog$array_insertAt(arr, obj, opt_i) {
3834
+ module$contents$goog$array_splice(arr, opt_i, 0, obj);
4404
3835
  }
4405
- ;var module$exports$safevalues$dom$elements$embed = {}, module$contents$safevalues$dom$elements$embed_module = module$contents$safevalues$dom$elements$embed_module || {id:"third_party/javascript/safevalues/dom/elements/embed.closure.js"};
4406
- module$exports$safevalues$dom$elements$embed.setSrc = function(embedEl, url) {
4407
- embedEl.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url);
3836
+ goog.array.insertAt = module$contents$goog$array_insertAt;
3837
+ goog.array.insertArrayAt = function(arr, elementsToAdd, opt_i) {
3838
+ goog.partial(module$contents$goog$array_splice, arr, opt_i, 0).apply(null, elementsToAdd);
4408
3839
  };
4409
- var module$exports$safevalues$dom$elements$form = {}, module$contents$safevalues$dom$elements$form_module = module$contents$safevalues$dom$elements$form_module || {id:"third_party/javascript/safevalues/dom/elements/form.closure.js"};
4410
- module$exports$safevalues$dom$elements$form.setAction = function(form, url) {
4411
- var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
4412
- sanitizedUrl !== void 0 && (form.action = sanitizedUrl);
3840
+ goog.array.insertBefore = function(arr, obj, opt_obj2) {
3841
+ var i;
3842
+ arguments.length == 2 || (i = module$contents$goog$array_indexOf(arr, opt_obj2)) < 0 ? arr.push(obj) : module$contents$goog$array_insertAt(arr, obj, i);
4413
3843
  };
4414
- var module$exports$check = {}, module$contents$check_module = module$contents$check_module || {id:"javascript/typescript/contrib/check.closure.js"};
4415
- function module$contents$check_checkExhaustive(value, msg) {
4416
- return module$contents$check_checkExhaustiveAllowing(value, msg);
3844
+ function module$contents$goog$array_remove(arr, obj) {
3845
+ var i = module$contents$goog$array_indexOf(arr, obj), rv;
3846
+ (rv = i >= 0) && module$contents$goog$array_removeAt(arr, i);
3847
+ return rv;
4417
3848
  }
4418
- module$exports$check.checkExhaustive = module$contents$check_checkExhaustive;
4419
- function module$contents$check_checkExhaustiveAllowing(value, msg) {
4420
- throw Error(msg === void 0 ? "unexpected value " + value + "!" : msg);
3849
+ goog.array.remove = module$contents$goog$array_remove;
3850
+ function module$contents$goog$array_removeLast(arr, obj) {
3851
+ var i = module$contents$goog$array_lastIndexOf(arr, obj);
3852
+ return i >= 0 ? (module$contents$goog$array_removeAt(arr, i), !0) : !1;
4421
3853
  }
4422
- module$exports$check.checkExhaustiveAllowing = module$contents$check_checkExhaustiveAllowing;
4423
- module$exports$check.assumeExhaustive = function(value) {
3854
+ goog.array.removeLast = module$contents$goog$array_removeLast;
3855
+ function module$contents$goog$array_removeAt(arr, i) {
3856
+ goog.asserts.assert(arr.length != null);
3857
+ return Array.prototype.splice.call(arr, i, 1).length == 1;
3858
+ }
3859
+ goog.array.removeAt = module$contents$goog$array_removeAt;
3860
+ goog.array.removeIf = function(arr, f, opt_obj) {
3861
+ var i = module$contents$goog$array_findIndex(arr, f, opt_obj);
3862
+ return i >= 0 ? (module$contents$goog$array_removeAt(arr, i), !0) : !1;
4424
3863
  };
4425
- module$exports$check.assumeExhaustiveAllowing = function(value) {
3864
+ goog.array.removeAllIf = function(arr, f, opt_obj) {
3865
+ var removedCount = 0;
3866
+ module$contents$goog$array_forEachRight(arr, function(val, index) {
3867
+ f.call(opt_obj, val, index, arr) && module$contents$goog$array_removeAt(arr, index) && removedCount++;
3868
+ });
3869
+ return removedCount;
4426
3870
  };
4427
- var module$exports$safevalues$dom$elements$iframe = {}, module$contents$safevalues$dom$elements$iframe_module = module$contents$safevalues$dom$elements$iframe_module || {id:"third_party/javascript/safevalues/dom/elements/iframe.closure.js"};
4428
- function module$contents$safevalues$dom$elements$iframe_setSrc(iframe, v) {
4429
- iframe.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v).toString();
4430
- }
4431
- module$exports$safevalues$dom$elements$iframe.setSrc = module$contents$safevalues$dom$elements$iframe_setSrc;
4432
- function module$contents$safevalues$dom$elements$iframe_setSrcdoc(iframe, v) {
4433
- iframe.srcdoc = (0,module$exports$safevalues$internals$html_impl.unwrapHtml)(v);
3871
+ function module$contents$goog$array_concat(var_args) {
3872
+ return Array.prototype.concat.apply([], arguments);
4434
3873
  }
4435
- module$exports$safevalues$dom$elements$iframe.setSrcdoc = module$contents$safevalues$dom$elements$iframe_setSrcdoc;
4436
- module$exports$safevalues$dom$elements$iframe.Intent = {FORMATTED_HTML_CONTENT:0, EMBEDDED_INTERNAL_CONTENT:1, EMBEDDED_TRUSTED_EXTERNAL_CONTENT:2};
4437
- module$exports$safevalues$dom$elements$iframe.Intent[module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT] = "FORMATTED_HTML_CONTENT";
4438
- module$exports$safevalues$dom$elements$iframe.Intent[module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT] = "EMBEDDED_INTERNAL_CONTENT";
4439
- module$exports$safevalues$dom$elements$iframe.Intent[module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT] = "EMBEDDED_TRUSTED_EXTERNAL_CONTENT";
4440
- var module$contents$safevalues$dom$elements$iframe_SandboxDirective = {ALLOW_SAME_ORIGIN:"allow-same-origin", ALLOW_SCRIPTS:"allow-scripts", ALLOW_FORMS:"allow-forms", ALLOW_POPUPS:"allow-popups", ALLOW_POPUPS_TO_ESCAPE_SANDBOX:"allow-popups-to-escape-sandbox", ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION:"allow-storage-access-by-user-activation"};
4441
- function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr, directives) {
4442
- ifr.setAttribute("sandbox", "");
4443
- for (var i = 0; i < directives.length; i++) {
4444
- ifr.sandbox.supports && !ifr.sandbox.supports(directives[i]) || ifr.sandbox.add(directives[i]);
3874
+ goog.array.concat = module$contents$goog$array_concat;
3875
+ goog.array.join = function(var_args) {
3876
+ return Array.prototype.concat.apply([], arguments);
3877
+ };
3878
+ function module$contents$goog$array_toArray(object) {
3879
+ var length = object.length;
3880
+ if (length > 0) {
3881
+ for (var rv = Array(length), i = 0; i < length; i++) {
3882
+ rv[i] = object[i];
3883
+ }
3884
+ return rv;
4445
3885
  }
3886
+ return [];
4446
3887
  }
4447
- module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError = function(type, intent) {
4448
- var $jscomp$tmp$error$240424914$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.Intent[intent]);
4449
- this.message = $jscomp$tmp$error$240424914$1.message;
4450
- "stack" in $jscomp$tmp$error$240424914$1 && (this.stack = $jscomp$tmp$error$240424914$1.stack);
4451
- this.type = type;
4452
- this.intent = intent;
4453
- this.name = "TypeCannotBeUsedWithIntentError";
4454
- };
4455
- $jscomp.inherits(module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError, Error);
4456
- module$exports$safevalues$dom$elements$iframe.setSrcWithIntent = function(element, intent, src) {
4457
- element.removeAttribute("srcdoc");
4458
- switch(intent) {
4459
- case module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT:
4460
- if (src instanceof goog.html.TrustedResourceUrl) {
4461
- throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("TrustedResourceUrl", module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT);
4462
- }
4463
- module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, []);
4464
- var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(src);
4465
- sanitizedUrl !== void 0 && (element.src = sanitizedUrl);
4466
- break;
4467
- case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT:
4468
- if (!(src instanceof goog.html.TrustedResourceUrl)) {
4469
- throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError(typeof src, module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT);
4470
- }
4471
- module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SAME_ORIGIN, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,
4472
- module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);
4473
- module$contents$safevalues$dom$elements$iframe_setSrc(element, src);
4474
- break;
4475
- case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT:
4476
- if (src instanceof goog.html.TrustedResourceUrl) {
4477
- throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("TrustedResourceUrl", module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT);
3888
+ goog.array.toArray = module$contents$goog$array_toArray;
3889
+ goog.array.clone = module$contents$goog$array_toArray;
3890
+ function module$contents$goog$array_extend(arr1, var_args) {
3891
+ for (var i = 1; i < arguments.length; i++) {
3892
+ var arr2 = arguments[i];
3893
+ if (goog.isArrayLike(arr2)) {
3894
+ var len1 = arr1.length || 0, len2 = arr2.length || 0;
3895
+ arr1.length = len1 + len2;
3896
+ for (var j = 0; j < len2; j++) {
3897
+ arr1[len1 + j] = arr2[j];
4478
3898
  }
4479
- module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SAME_ORIGIN, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,
4480
- module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);
4481
- var sanitizedUrl$jscomp$0 = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(src);
4482
- sanitizedUrl$jscomp$0 !== void 0 && (element.src = sanitizedUrl$jscomp$0);
4483
- break;
4484
- default:
4485
- module$contents$check_checkExhaustive(intent);
3899
+ } else {
3900
+ arr1.push(arr2);
3901
+ }
3902
+ }
3903
+ }
3904
+ goog.array.extend = module$contents$goog$array_extend;
3905
+ function module$contents$goog$array_splice(arr, index, howMany, var_args) {
3906
+ goog.asserts.assert(arr.length != null);
3907
+ return Array.prototype.splice.apply(arr, module$contents$goog$array_slice(arguments, 1));
3908
+ }
3909
+ goog.array.splice = module$contents$goog$array_splice;
3910
+ function module$contents$goog$array_slice(arr, start, opt_end) {
3911
+ goog.asserts.assert(arr.length != null);
3912
+ return arguments.length <= 2 ? Array.prototype.slice.call(arr, start) : Array.prototype.slice.call(arr, start, opt_end);
3913
+ }
3914
+ goog.array.slice = module$contents$goog$array_slice;
3915
+ function module$contents$goog$array_removeDuplicates(arr, opt_rv, opt_keyFn) {
3916
+ var returnArray = opt_rv || arr;
3917
+ if (goog.FEATURESET_YEAR >= 2018) {
3918
+ for (var defaultKeyFn = function(item) {
3919
+ return item;
3920
+ }, keyFn = opt_keyFn || defaultKeyFn, cursorInsert = 0, cursorRead = 0, seen = new Set(); cursorRead < arr.length;) {
3921
+ var current = arr[cursorRead++], key = keyFn(current);
3922
+ seen.has(key) || (seen.add(key), returnArray[cursorInsert++] = current);
3923
+ }
3924
+ returnArray.length = cursorInsert;
3925
+ } else {
3926
+ for (var defaultKeyFn$jscomp$0 = function(item) {
3927
+ return goog.isObject(item) ? "o" + goog.getUid(item) : (typeof item).charAt(0) + item;
3928
+ }, keyFn$jscomp$0 = opt_keyFn || defaultKeyFn$jscomp$0, cursorInsert$jscomp$0 = 0, cursorRead$jscomp$0 = 0, seen$jscomp$0 = {}; cursorRead$jscomp$0 < arr.length;) {
3929
+ var current$jscomp$0 = arr[cursorRead$jscomp$0++], key$jscomp$0 = keyFn$jscomp$0(current$jscomp$0);
3930
+ Object.prototype.hasOwnProperty.call(seen$jscomp$0, key$jscomp$0) || (seen$jscomp$0[key$jscomp$0] = !0, returnArray[cursorInsert$jscomp$0++] = current$jscomp$0);
3931
+ }
3932
+ returnArray.length = cursorInsert$jscomp$0;
4486
3933
  }
3934
+ }
3935
+ goog.array.removeDuplicates = module$contents$goog$array_removeDuplicates;
3936
+ function module$contents$goog$array_binarySearch(arr, target, opt_compareFn) {
3937
+ return module$contents$goog$array_binarySearch_(arr, opt_compareFn || module$contents$goog$array_defaultCompare, !1, target);
3938
+ }
3939
+ goog.array.binarySearch = module$contents$goog$array_binarySearch;
3940
+ goog.array.binarySelect = function(arr, evaluator, opt_obj) {
3941
+ return module$contents$goog$array_binarySearch_(arr, evaluator, !0, void 0, opt_obj);
4487
3942
  };
4488
- module$exports$safevalues$dom$elements$iframe.setSrcdocWithIntent = function(element, intent, srcdoc) {
4489
- element.removeAttribute("src");
4490
- switch(intent) {
4491
- case module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT:
4492
- if (srcdoc instanceof module$exports$safevalues$internals$html_impl.SafeHtml) {
4493
- throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("SafeHtml", module$exports$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT);
4494
- }
4495
- element.csp = "default-src 'none'";
4496
- module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, []);
4497
- module$contents$safevalues$dom$elements$iframe_setSrcdoc(element, (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(srcdoc));
4498
- break;
4499
- case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT:
4500
- if (!(srcdoc instanceof module$exports$safevalues$internals$html_impl.SafeHtml)) {
4501
- throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("string", module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT);
4502
- }
4503
- module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SAME_ORIGIN, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,
4504
- module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);
4505
- module$contents$safevalues$dom$elements$iframe_setSrcdoc(element, srcdoc);
4506
- break;
4507
- case module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT:
4508
- if (srcdoc instanceof module$exports$safevalues$internals$html_impl.SafeHtml) {
4509
- throw new module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("SafeHtml", module$exports$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT);
4510
- }
4511
- module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(element, [module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS, module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX,
4512
- module$contents$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);
4513
- module$contents$safevalues$dom$elements$iframe_setSrcdoc(element, (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(srcdoc));
4514
- break;
4515
- default:
4516
- module$contents$check_checkExhaustive(intent);
3943
+ function module$contents$goog$array_binarySearch_(arr, compareFn, isEvaluator, opt_target, opt_selfObj) {
3944
+ for (var left = 0, right = arr.length, found; left < right;) {
3945
+ var middle = left + (right - left >>> 1), compareResult = void 0;
3946
+ compareResult = isEvaluator ? compareFn.call(opt_selfObj, arr[middle], middle, arr) : compareFn(opt_target, arr[middle]);
3947
+ compareResult > 0 ? left = middle + 1 : (right = middle, found = !compareResult);
3948
+ }
3949
+ return found ? left : -left - 1;
3950
+ }
3951
+ function module$contents$goog$array_sort(arr, opt_compareFn) {
3952
+ arr.sort(opt_compareFn || module$contents$goog$array_defaultCompare);
3953
+ }
3954
+ goog.array.sort = module$contents$goog$array_sort;
3955
+ goog.array.stableSort = function(arr, opt_compareFn) {
3956
+ for (var compArr = Array(arr.length), i = 0; i < arr.length; i++) {
3957
+ compArr[i] = {index:i, value:arr[i]};
3958
+ }
3959
+ var valueCompareFn = opt_compareFn || module$contents$goog$array_defaultCompare;
3960
+ module$contents$goog$array_sort(compArr, function(obj1, obj2) {
3961
+ return valueCompareFn(obj1.value, obj2.value) || obj1.index - obj2.index;
3962
+ });
3963
+ for (var i$jscomp$0 = 0; i$jscomp$0 < arr.length; i$jscomp$0++) {
3964
+ arr[i$jscomp$0] = compArr[i$jscomp$0].value;
4517
3965
  }
4518
3966
  };
4519
- var module$exports$safevalues$dom$elements$input = {}, module$contents$safevalues$dom$elements$input_module = module$contents$safevalues$dom$elements$input_module || {id:"third_party/javascript/safevalues/dom/elements/input.closure.js"};
4520
- module$exports$safevalues$dom$elements$input.setFormaction = function(input, url) {
4521
- var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
4522
- sanitizedUrl !== void 0 && (input.formAction = sanitizedUrl);
3967
+ function module$contents$goog$array_sortByKey(arr, keyFn, opt_compareFn) {
3968
+ var keyCompareFn = opt_compareFn || module$contents$goog$array_defaultCompare;
3969
+ module$contents$goog$array_sort(arr, function(a, b) {
3970
+ return keyCompareFn(keyFn(a), keyFn(b));
3971
+ });
3972
+ }
3973
+ goog.array.sortByKey = module$contents$goog$array_sortByKey;
3974
+ goog.array.sortObjectsByKey = function(arr, key, opt_compareFn) {
3975
+ module$contents$goog$array_sortByKey(arr, function(obj) {
3976
+ return obj[key];
3977
+ }, opt_compareFn);
4523
3978
  };
4524
- var module$exports$safevalues$dom$elements$link = {}, module$contents$safevalues$dom$elements$link_module = module$contents$safevalues$dom$elements$link_module || {id:"third_party/javascript/safevalues/dom/elements/link.closure.js"}, module$contents$safevalues$dom$elements$link_SAFE_URL_REL_VALUES = "alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");
4525
- module$exports$safevalues$dom$elements$link.setHrefAndRel = function(link, url, rel) {
4526
- if (module$contents$safevalues$internals$resource_url_impl_isResourceUrl(url)) {
4527
- module$contents$safevalues$dom$elements$link_setHrefAndRelWithTrustedResourceUrl(link, url, rel);
4528
- } else {
4529
- if (module$contents$safevalues$dom$elements$link_SAFE_URL_REL_VALUES.indexOf(rel) === -1) {
4530
- throw Error('TrustedResourceUrl href attribute required with rel="' + rel + '"');
3979
+ function module$contents$goog$array_isSorted(arr, opt_compareFn, opt_strict) {
3980
+ for (var compare = opt_compareFn || module$contents$goog$array_defaultCompare, i = 1; i < arr.length; i++) {
3981
+ var compareResult = compare(arr[i - 1], arr[i]);
3982
+ if (compareResult > 0 || compareResult == 0 && opt_strict) {
3983
+ return !1;
3984
+ }
3985
+ }
3986
+ return !0;
3987
+ }
3988
+ goog.array.isSorted = module$contents$goog$array_isSorted;
3989
+ function module$contents$goog$array_equals(arr1, arr2, opt_equalsFn) {
3990
+ if (!goog.isArrayLike(arr1) || !goog.isArrayLike(arr2) || arr1.length != arr2.length) {
3991
+ return !1;
3992
+ }
3993
+ for (var l = arr1.length, equalsFn = opt_equalsFn || module$contents$goog$array_defaultCompareEquality, i = 0; i < l; i++) {
3994
+ if (!equalsFn(arr1[i], arr2[i])) {
3995
+ return !1;
3996
+ }
3997
+ }
3998
+ return !0;
3999
+ }
4000
+ goog.array.equals = module$contents$goog$array_equals;
4001
+ goog.array.compare3 = function(arr1, arr2, opt_compareFn) {
4002
+ for (var compare = opt_compareFn || module$contents$goog$array_defaultCompare, l = Math.min(arr1.length, arr2.length), i = 0; i < l; i++) {
4003
+ var result = compare(arr1[i], arr2[i]);
4004
+ if (result != 0) {
4005
+ return result;
4531
4006
  }
4532
- var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
4533
- sanitizedUrl !== void 0 && (link.href = sanitizedUrl, link.rel = rel);
4534
4007
  }
4008
+ return module$contents$goog$array_defaultCompare(arr1.length, arr2.length);
4535
4009
  };
4536
- function module$contents$safevalues$dom$elements$link_setHrefAndRelWithTrustedResourceUrl(link, url, rel) {
4537
- link.href = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString();
4538
- link.rel = rel;
4010
+ function module$contents$goog$array_defaultCompare(a, b) {
4011
+ return a > b ? 1 : a < b ? -1 : 0;
4539
4012
  }
4540
- module$exports$safevalues$dom$elements$link.setHrefAndRelWithTrustedResourceUrl = module$contents$safevalues$dom$elements$link_setHrefAndRelWithTrustedResourceUrl;
4541
- var module$exports$safevalues$dom$elements$object = {}, module$contents$safevalues$dom$elements$object_module = module$contents$safevalues$dom$elements$object_module || {id:"third_party/javascript/safevalues/dom/elements/object.closure.js"};
4542
- module$exports$safevalues$dom$elements$object.setData = function(obj, v) {
4543
- obj.data = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v);
4013
+ goog.array.defaultCompare = module$contents$goog$array_defaultCompare;
4014
+ goog.array.inverseDefaultCompare = function(a, b) {
4015
+ return -module$contents$goog$array_defaultCompare(a, b);
4544
4016
  };
4545
- var module$exports$safevalues$dom$globals$window = {}, module$contents$safevalues$dom$globals$window_module = module$contents$safevalues$dom$globals$window_module || {id:"third_party/javascript/safevalues/dom/globals/window.closure.js"};
4546
- module$exports$safevalues$dom$globals$window.open = function(win, url, target, features) {
4547
- var sanitizedUrl = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize(url);
4548
- return sanitizedUrl !== void 0 ? win.open(sanitizedUrl, target, features) : null;
4017
+ function module$contents$goog$array_defaultCompareEquality(a, b) {
4018
+ return a === b;
4019
+ }
4020
+ goog.array.defaultCompareEquality = module$contents$goog$array_defaultCompareEquality;
4021
+ goog.array.binaryInsert = function(array, value, opt_compareFn) {
4022
+ var index = module$contents$goog$array_binarySearch(array, value, opt_compareFn);
4023
+ return index < 0 ? (module$contents$goog$array_insertAt(array, value, -(index + 1)), !0) : !1;
4549
4024
  };
4550
- module$exports$safevalues$dom$globals$window.getScriptNonce = function(win) {
4551
- return module$contents$safevalues$dom$globals$window_getNonceFor("script", win);
4025
+ goog.array.binaryRemove = function(array, value, opt_compareFn) {
4026
+ var index = module$contents$goog$array_binarySearch(array, value, opt_compareFn);
4027
+ return index >= 0 ? module$contents$goog$array_removeAt(array, index) : !1;
4552
4028
  };
4553
- module$exports$safevalues$dom$globals$window.getStyleNonce = function(win) {
4554
- return module$contents$safevalues$dom$globals$window_getNonceFor("style", win);
4029
+ goog.array.bucket = function(array, sorter, opt_obj) {
4030
+ for (var buckets = {}, i = 0; i < array.length; i++) {
4031
+ var value = array[i], key = sorter.call(opt_obj, value, i, array);
4032
+ key !== void 0 && (buckets[key] || (buckets[key] = [])).push(value);
4033
+ }
4034
+ return buckets;
4555
4035
  };
4556
- function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, win) {
4557
- var $jscomp$optchain$tmp220578679$0, $jscomp$optchain$tmp220578679$1, el = ($jscomp$optchain$tmp220578679$1 = ($jscomp$optchain$tmp220578679$0 = win.document).querySelector) == null ? void 0 : $jscomp$optchain$tmp220578679$1.call($jscomp$optchain$tmp220578679$0, elementName + "[nonce]");
4558
- return el ? el.nonce || el.getAttribute("nonce") || "" : "";
4559
- }
4560
- ;var module$exports$safevalues$internals$script_impl = {}, module$contents$safevalues$internals$script_impl_module = module$contents$safevalues$internals$script_impl_module || {id:"third_party/javascript/safevalues/internals/script_impl.closure.js"}, module$contents$safevalues$internals$script_impl_trustedTypes = goog.global.trustedTypes;
4561
- module$exports$safevalues$internals$script_impl.SafeScript = function(token, value) {
4562
- goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
4563
- this.privateDoNotAccessOrElseWrappedScript = value;
4036
+ goog.array.bucketToMap = function(array, sorter) {
4037
+ for (var buckets = new Map(), i = 0; i < array.length; i++) {
4038
+ var value = array[i], key = sorter(value, i, array);
4039
+ if (key !== void 0) {
4040
+ var bucket = buckets.get(key);
4041
+ bucket || (bucket = [], buckets.set(key, bucket));
4042
+ bucket.push(value);
4043
+ }
4044
+ }
4045
+ return buckets;
4564
4046
  };
4565
- module$exports$safevalues$internals$script_impl.SafeScript.prototype.toString = function() {
4566
- return this.privateDoNotAccessOrElseWrappedScript.toString();
4047
+ goog.array.toObject = function(arr, keyFunc, opt_obj) {
4048
+ var ret = {};
4049
+ module$contents$goog$array_forEach(arr, function(element, index) {
4050
+ ret[keyFunc.call(opt_obj, element, index, arr)] = element;
4051
+ });
4052
+ return ret;
4567
4053
  };
4568
- var module$contents$safevalues$internals$script_impl_ScriptImpl = module$exports$safevalues$internals$script_impl.SafeScript;
4569
- function module$contents$safevalues$internals$script_impl_constructScript(value) {
4570
- return new module$exports$safevalues$internals$script_impl.SafeScript(module$exports$safevalues$internals$secrets.secretToken, value);
4571
- }
4572
- function module$contents$safevalues$internals$script_impl_createScriptInternal(value) {
4573
- var noinlineValue = value, policy = (0,goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse)();
4574
- return module$contents$safevalues$internals$script_impl_constructScript(policy ? policy.createScript(noinlineValue) : noinlineValue);
4575
- }
4576
- module$exports$safevalues$internals$script_impl.createScriptInternal = module$contents$safevalues$internals$script_impl_createScriptInternal;
4577
- module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT = module$contents$safevalues$internals$pure_pure(function() {
4578
- return module$contents$safevalues$internals$script_impl_constructScript(module$contents$safevalues$internals$script_impl_trustedTypes ? module$contents$safevalues$internals$script_impl_trustedTypes.emptyScript : "");
4579
- });
4580
- function module$contents$safevalues$internals$script_impl_isScript(value) {
4581
- return value instanceof module$exports$safevalues$internals$script_impl.SafeScript;
4054
+ goog.array.toMap = function(arr, keyFunc) {
4055
+ for (var map = new Map(), i = 0; i < arr.length; i++) {
4056
+ var element = arr[i];
4057
+ map.set(keyFunc(element, i, arr), element);
4058
+ }
4059
+ return map;
4060
+ };
4061
+ function module$contents$goog$array_range(startOrEnd, opt_end, opt_step) {
4062
+ var array = [], start = 0, end = startOrEnd, step = opt_step || 1;
4063
+ opt_end !== void 0 && (start = startOrEnd, end = opt_end);
4064
+ if (step * (end - start) < 0) {
4065
+ return [];
4066
+ }
4067
+ if (step > 0) {
4068
+ for (var i = start; i < end; i += step) {
4069
+ array.push(i);
4070
+ }
4071
+ } else {
4072
+ for (var i$jscomp$0 = start; i$jscomp$0 > end; i$jscomp$0 += step) {
4073
+ array.push(i$jscomp$0);
4074
+ }
4075
+ }
4076
+ return array;
4582
4077
  }
4583
- module$exports$safevalues$internals$script_impl.isScript = module$contents$safevalues$internals$script_impl_isScript;
4584
- function module$contents$safevalues$internals$script_impl_unwrapScript(value) {
4585
- if (module$contents$safevalues$internals$script_impl_isScript(value)) {
4586
- return value.privateDoNotAccessOrElseWrappedScript;
4078
+ goog.array.range = module$contents$goog$array_range;
4079
+ function module$contents$goog$array_repeat(value, n) {
4080
+ for (var array = [], i = 0; i < n; i++) {
4081
+ array[i] = value;
4587
4082
  }
4588
- var message = "";
4589
- goog.DEBUG && (message = "Unexpected type when unwrapping SafeScript");
4590
- throw Error(message);
4083
+ return array;
4591
4084
  }
4592
- module$exports$safevalues$internals$script_impl.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
4593
- var module$exports$safevalues$dom$elements$script = {}, module$contents$safevalues$dom$elements$script_module = module$contents$safevalues$dom$elements$script_module || {id:"third_party/javascript/safevalues/dom/elements/script.closure.js"};
4594
- function module$contents$safevalues$dom$elements$script_setNonceForScriptElement(script) {
4595
- var nonce = (0,module$exports$safevalues$dom$globals$window.getScriptNonce)(script.ownerDocument && script.ownerDocument.defaultView || window);
4596
- nonce && script.setAttribute("nonce", nonce);
4085
+ goog.array.repeat = module$contents$goog$array_repeat;
4086
+ function module$contents$goog$array_flatten(var_args) {
4087
+ for (var result = [], i = 0; i < arguments.length; i++) {
4088
+ var element = arguments[i];
4089
+ if (Array.isArray(element)) {
4090
+ for (var c = 0; c < element.length; c += 8192) {
4091
+ for (var chunk = module$contents$goog$array_slice(element, c, c + 8192), recurseResult = module$contents$goog$array_flatten.apply(null, chunk), r = 0; r < recurseResult.length; r++) {
4092
+ result.push(recurseResult[r]);
4093
+ }
4094
+ }
4095
+ } else {
4096
+ result.push(element);
4097
+ }
4098
+ }
4099
+ return result;
4597
4100
  }
4598
- module$exports$safevalues$dom$elements$script.setTextContent = function(script, v, options) {
4599
- script.textContent = module$contents$safevalues$internals$script_impl_unwrapScript(v);
4600
- (options == null ? 0 : options.omitNonce) || module$contents$safevalues$dom$elements$script_setNonceForScriptElement(script);
4101
+ goog.array.flatten = module$contents$goog$array_flatten;
4102
+ goog.array.rotate = function(array, n) {
4103
+ goog.asserts.assert(array.length != null);
4104
+ array.length && (n %= array.length, n > 0 ? Array.prototype.unshift.apply(array, array.splice(-n, n)) : n < 0 && Array.prototype.push.apply(array, array.splice(0, -n)));
4105
+ return array;
4601
4106
  };
4602
- module$exports$safevalues$dom$elements$script.setSrc = function(script, v, options) {
4603
- script.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(v);
4604
- (options == null ? 0 : options.omitNonce) || module$contents$safevalues$dom$elements$script_setNonceForScriptElement(script);
4107
+ goog.array.moveItem = function(arr, fromIndex, toIndex) {
4108
+ goog.asserts.assert(fromIndex >= 0 && fromIndex < arr.length);
4109
+ goog.asserts.assert(toIndex >= 0 && toIndex < arr.length);
4110
+ var removedItems = Array.prototype.splice.call(arr, fromIndex, 1);
4111
+ Array.prototype.splice.call(arr, toIndex, 0, removedItems[0]);
4605
4112
  };
4606
- var module$exports$goog$html$safestylesheet_internals_for_safevalues = {};
4607
- module$exports$goog$html$safestylesheet_internals_for_safevalues.createSafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse;
4608
- var module$exports$safevalues$internals$style_sheet_impl = {}, module$contents$safevalues$internals$style_sheet_impl_module = module$contents$safevalues$internals$style_sheet_impl_module || {id:"third_party/javascript/safevalues/internals/style_sheet_impl.closure.js"};
4609
- module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
4610
- function module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheet) {
4611
- return (0,module$exports$goog$html$safestylesheet_internals_for_safevalues.createSafeStyleSheet)(styleSheet);
4612
- }
4613
- module$exports$safevalues$internals$style_sheet_impl.createStyleSheetInternal = module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal;
4614
- function module$contents$safevalues$internals$style_sheet_impl_isStyleSheet(value) {
4615
- return value instanceof module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
4616
- }
4617
- module$exports$safevalues$internals$style_sheet_impl.isStyleSheet = module$contents$safevalues$internals$style_sheet_impl_isStyleSheet;
4618
- function module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(value) {
4619
- return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(value);
4620
- }
4621
- module$exports$safevalues$internals$style_sheet_impl.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
4622
- var module$exports$safevalues$dom$elements$style = {}, module$contents$safevalues$dom$elements$style_module = module$contents$safevalues$dom$elements$style_module || {id:"third_party/javascript/safevalues/dom/elements/style.closure.js"};
4623
- module$exports$safevalues$dom$elements$style.setTextContent = function(elem, safeStyleSheet) {
4624
- elem.textContent = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(safeStyleSheet);
4113
+ goog.array.zip = function(var_args) {
4114
+ if (!arguments.length) {
4115
+ return [];
4116
+ }
4117
+ for (var result = [], minLen = arguments[0].length, i = 1; i < arguments.length; i++) {
4118
+ arguments[i].length < minLen && (minLen = arguments[i].length);
4119
+ }
4120
+ for (var i$jscomp$0 = 0; i$jscomp$0 < minLen; i$jscomp$0++) {
4121
+ for (var value = [], j = 0; j < arguments.length; j++) {
4122
+ value.push(arguments[j][i$jscomp$0]);
4123
+ }
4124
+ result.push(value);
4125
+ }
4126
+ return result;
4625
4127
  };
4626
- var module$exports$safevalues$dom$elements$svg = {}, module$contents$safevalues$dom$elements$svg_module = module$contents$safevalues$dom$elements$svg_module || {id:"third_party/javascript/safevalues/dom/elements/svg.closure.js"}, module$contents$safevalues$dom$elements$svg_UNSAFE_SVG_ATTRIBUTES = ["href", "xlink:href"];
4627
- module$exports$safevalues$dom$elements$svg.setAttribute = function(svg, attr, value) {
4628
- var attrLower = attr.toLowerCase();
4629
- if (module$contents$safevalues$dom$elements$svg_UNSAFE_SVG_ATTRIBUTES.indexOf(attrLower) !== -1 || attrLower.indexOf("on") === 0) {
4630
- var msg = "";
4631
- goog.DEBUG && (msg = "Setting the '" + attrLower + "' attribute on SVG can cause XSS.");
4632
- throw Error(msg);
4128
+ goog.array.shuffle = function(arr, opt_randFn) {
4129
+ for (var randFn = opt_randFn || Math.random, i = arr.length - 1; i > 0; i--) {
4130
+ var j = Math.floor(randFn() * (i + 1)), tmp = arr[i];
4131
+ arr[i] = arr[j];
4132
+ arr[j] = tmp;
4633
4133
  }
4634
- svg.setAttribute(attr, value);
4134
+ };
4135
+ goog.array.copyByIndex = function(arr, index_arr) {
4136
+ var result = [];
4137
+ module$contents$goog$array_forEach(index_arr, function(index) {
4138
+ result.push(arr[index]);
4139
+ });
4140
+ return result;
4141
+ };
4142
+ goog.array.concatMap = function(arr, f, opt_obj) {
4143
+ return module$contents$goog$array_concat.apply([], module$contents$goog$array_map(arr, f, opt_obj));
4635
4144
  };
4636
4145
  goog.debug.errorcontext = {};
4637
4146
  goog.debug.errorcontext.addErrorContext = function(err, contextKey, contextValue) {
@@ -6922,6 +6431,7 @@ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_stop_using_r
6922
6431
  module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_direct_reactions__disable = !1;
6923
6432
  module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_flush_queue_fix__disable = !1;
6924
6433
  module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_ordered_reaction_execution__disable = !1;
6434
+ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__enable = !1;
6925
6435
  module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_enable_low_index_extension_writes__disable = !1;
6926
6436
  module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__wiz_enable_native_promise__enable = !1;
6927
6437
  module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_readonly_repeated_fields__disable = !1;
@@ -6939,6 +6449,7 @@ goog.flags.CLIENT_ONLY_WIZ_DIRECT_REACTIONS = module$exports$closure$flags$flags
6939
6449
  goog.flags.CLIENT_ONLY_WIZ_FLUSH_QUEUE_FIX = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.FLAGS_STAGING_DEFAULT && (module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_flush_queue_fix__disable) : goog.readFlagInternalDoNotUseOrElse(644029907, module$contents$goog$flags_STAGING);
6940
6450
  goog.flags.CLIENT_ONLY_WIZ_ORDERED_REACTION_EXECUTION = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.FLAGS_STAGING_DEFAULT && (module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_ordered_reaction_execution__disable) : goog.readFlagInternalDoNotUseOrElse(1822726157,
6941
6451
  module$contents$goog$flags_STAGING);
6452
+ goog.flags.CLIENT_ONLY_WIZ_SYNC_REACTION_WITHIN_REACTION_THROWS_ERROR = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__enable : goog.readFlagInternalDoNotUseOrElse(661449076, !1);
6942
6453
  goog.flags.JSPB_ENABLE_LOW_INDEX_EXTENSION_WRITES = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.FLAGS_STAGING_DEFAULT && (module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_enable_low_index_extension_writes__disable) : goog.readFlagInternalDoNotUseOrElse(645172343,
6943
6454
  module$contents$goog$flags_STAGING);
6944
6455
  goog.flags.WIZ_ENABLE_NATIVE_PROMISE = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__wiz_enable_native_promise__enable : goog.readFlagInternalDoNotUseOrElse(651175828, goog.DEBUG);
@@ -7668,7 +7179,6 @@ goog.userAgent.isVersionOrHigher = function(version) {
7668
7179
  goog.userAgent.isDocumentModeOrHigher = function(documentMode) {
7669
7180
  return Number(goog.userAgent.DOCUMENT_MODE) >= documentMode;
7670
7181
  };
7671
- goog.userAgent.isDocumentMode = goog.userAgent.isDocumentModeOrHigher;
7672
7182
  goog.userAgent.DOCUMENT_MODE = function() {
7673
7183
  if (goog.global.document && goog.userAgent.IE) {
7674
7184
  var documentMode = goog.userAgent.getDocumentMode_();
@@ -15021,355 +14531,861 @@ module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClient$XgafvEnum = {1:
15021
14531
  }};
15022
14532
  module$exports$eeapiclient$ee_api_client.IProjectsTablesApiClientAltEnum = function() {
15023
14533
  };
15024
- module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientAltEnum = {JSON:"json", MEDIA:"media", PROTO:"proto", values:function() {
15025
- return [module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientAltEnum.JSON, module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientAltEnum.MEDIA, module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientAltEnum.PROTO];
15026
- }};
15027
- module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientImpl = function(gapiVersion, gapiRequestService, apiClientHookFactory) {
15028
- this.gapiVersion = gapiVersion;
15029
- this.$apiClient = new module$exports$eeapiclient$promise_api_client.PromiseApiClient(gapiRequestService, apiClientHookFactory === void 0 ? null : apiClientHookFactory);
14534
+ module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientAltEnum = {JSON:"json", MEDIA:"media", PROTO:"proto", values:function() {
14535
+ return [module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientAltEnum.JSON, module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientAltEnum.MEDIA, module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientAltEnum.PROTO];
14536
+ }};
14537
+ module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientImpl = function(gapiVersion, gapiRequestService, apiClientHookFactory) {
14538
+ this.gapiVersion = gapiVersion;
14539
+ this.$apiClient = new module$exports$eeapiclient$promise_api_client.PromiseApiClient(gapiRequestService, apiClientHookFactory === void 0 ? null : apiClientHookFactory);
14540
+ };
14541
+ module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientImpl.prototype.create = function(parent, $requestBody, namedParameters, passthroughNamedParameters) {
14542
+ namedParameters = namedParameters === void 0 ? {} : namedParameters;
14543
+ passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
14544
+ this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$"));
14545
+ return this.$apiClient.$request({body:$requestBody, httpMethod:"POST", methodId:"earthengine.projects.tables.create", path:"/" + this.gapiVersion + "/" + parent + "/tables", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.Table});
14546
+ };
14547
+ module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientImpl.prototype.getFeatures = function(name, namedParameters, passthroughNamedParameters) {
14548
+ namedParameters = namedParameters === void 0 ? {} : namedParameters;
14549
+ passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
14550
+ this.$apiClient.$validateParameter(name, RegExp("^projects/[^/]+/tables/[^/]+$"));
14551
+ return this.$apiClient.$request({body:null, httpMethod:"GET", methodId:"earthengine.projects.tables.getFeatures", path:"/" + this.gapiVersion + "/" + name + ":getFeatures", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.HttpBody});
14552
+ };
14553
+ module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClient = function() {
14554
+ };
14555
+ module$exports$eeapiclient$ee_api_client.IProjectsThumbnailsApiClient$XgafvEnum = function() {
14556
+ };
14557
+ module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClient$XgafvEnum = {1:"1", 2:"2", values:function() {
14558
+ return [module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClient$XgafvEnum[1], module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClient$XgafvEnum[2]];
14559
+ }};
14560
+ module$exports$eeapiclient$ee_api_client.IProjectsThumbnailsApiClientAltEnum = function() {
14561
+ };
14562
+ module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientAltEnum = {JSON:"json", MEDIA:"media", PROTO:"proto", values:function() {
14563
+ return [module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientAltEnum.JSON, module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientAltEnum.MEDIA, module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientAltEnum.PROTO];
14564
+ }};
14565
+ module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientImpl = function(gapiVersion, gapiRequestService, apiClientHookFactory) {
14566
+ this.gapiVersion = gapiVersion;
14567
+ this.$apiClient = new module$exports$eeapiclient$promise_api_client.PromiseApiClient(gapiRequestService, apiClientHookFactory === void 0 ? null : apiClientHookFactory);
14568
+ };
14569
+ module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientImpl.prototype.create = function(parent, $requestBody, namedParameters, passthroughNamedParameters) {
14570
+ namedParameters = namedParameters === void 0 ? {} : namedParameters;
14571
+ passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
14572
+ this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$"));
14573
+ return this.$apiClient.$request({body:$requestBody, httpMethod:"POST", methodId:"earthengine.projects.thumbnails.create", path:"/" + this.gapiVersion + "/" + parent + "/thumbnails", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.Thumbnail});
14574
+ };
14575
+ module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientImpl.prototype.getPixels = function(name, namedParameters, passthroughNamedParameters) {
14576
+ namedParameters = namedParameters === void 0 ? {} : namedParameters;
14577
+ passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
14578
+ this.$apiClient.$validateParameter(name, RegExp("^projects/[^/]+/thumbnails/[^/]+$"));
14579
+ return this.$apiClient.$request({body:null, httpMethod:"GET", methodId:"earthengine.projects.thumbnails.getPixels", path:"/" + this.gapiVersion + "/" + name + ":getPixels", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.HttpBody});
14580
+ };
14581
+ module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClient = function() {
14582
+ };
14583
+ module$exports$eeapiclient$ee_api_client.IProjectsValueApiClient$XgafvEnum = function() {
14584
+ };
14585
+ module$exports$eeapiclient$ee_api_client.ProjectsValueApiClient$XgafvEnum = {1:"1", 2:"2", values:function() {
14586
+ return [module$exports$eeapiclient$ee_api_client.ProjectsValueApiClient$XgafvEnum[1], module$exports$eeapiclient$ee_api_client.ProjectsValueApiClient$XgafvEnum[2]];
14587
+ }};
14588
+ module$exports$eeapiclient$ee_api_client.IProjectsValueApiClientAltEnum = function() {
14589
+ };
14590
+ module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientAltEnum = {JSON:"json", MEDIA:"media", PROTO:"proto", values:function() {
14591
+ return [module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientAltEnum.JSON, module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientAltEnum.MEDIA, module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientAltEnum.PROTO];
14592
+ }};
14593
+ module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientImpl = function(gapiVersion, gapiRequestService, apiClientHookFactory) {
14594
+ this.gapiVersion = gapiVersion;
14595
+ this.$apiClient = new module$exports$eeapiclient$promise_api_client.PromiseApiClient(gapiRequestService, apiClientHookFactory === void 0 ? null : apiClientHookFactory);
14596
+ };
14597
+ module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientImpl.prototype.compute = function(project, $requestBody, namedParameters, passthroughNamedParameters) {
14598
+ namedParameters = namedParameters === void 0 ? {} : namedParameters;
14599
+ passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
14600
+ this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$"));
14601
+ return this.$apiClient.$request({body:$requestBody, httpMethod:"POST", methodId:"earthengine.projects.value.compute", path:"/" + this.gapiVersion + "/" + project + "/value:compute", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.ComputeValueResponse});
14602
+ };
14603
+ module$exports$eeapiclient$ee_api_client.ProjectsValueApiClient = function() {
14604
+ };
14605
+ module$exports$eeapiclient$ee_api_client.IProjectsVideoApiClient$XgafvEnum = function() {
14606
+ };
14607
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClient$XgafvEnum = {1:"1", 2:"2", values:function() {
14608
+ return [module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClient$XgafvEnum[1], module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClient$XgafvEnum[2]];
14609
+ }};
14610
+ module$exports$eeapiclient$ee_api_client.IProjectsVideoApiClientAltEnum = function() {
14611
+ };
14612
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientAltEnum = {JSON:"json", MEDIA:"media", PROTO:"proto", values:function() {
14613
+ return [module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientAltEnum.JSON, module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientAltEnum.MEDIA, module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientAltEnum.PROTO];
14614
+ }};
14615
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientImpl = function(gapiVersion, gapiRequestService, apiClientHookFactory) {
14616
+ this.gapiVersion = gapiVersion;
14617
+ this.$apiClient = new module$exports$eeapiclient$promise_api_client.PromiseApiClient(gapiRequestService, apiClientHookFactory === void 0 ? null : apiClientHookFactory);
14618
+ };
14619
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientImpl.prototype.export = function(project, $requestBody, namedParameters, passthroughNamedParameters) {
14620
+ namedParameters = namedParameters === void 0 ? {} : namedParameters;
14621
+ passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
14622
+ this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$"));
14623
+ return this.$apiClient.$request({body:$requestBody, httpMethod:"POST", methodId:"earthengine.projects.video.export", path:"/" + this.gapiVersion + "/" + project + "/video:export", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.Operation});
14624
+ };
14625
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClient = function() {
14626
+ };
14627
+ module$exports$eeapiclient$ee_api_client.IProjectsVideoMapApiClient$XgafvEnum = function() {
14628
+ };
14629
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClient$XgafvEnum = {1:"1", 2:"2", values:function() {
14630
+ return [module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClient$XgafvEnum[1], module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClient$XgafvEnum[2]];
14631
+ }};
14632
+ module$exports$eeapiclient$ee_api_client.IProjectsVideoMapApiClientAltEnum = function() {
14633
+ };
14634
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientAltEnum = {JSON:"json", MEDIA:"media", PROTO:"proto", values:function() {
14635
+ return [module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientAltEnum.JSON, module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientAltEnum.MEDIA, module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientAltEnum.PROTO];
14636
+ }};
14637
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientImpl = function(gapiVersion, gapiRequestService, apiClientHookFactory) {
14638
+ this.gapiVersion = gapiVersion;
14639
+ this.$apiClient = new module$exports$eeapiclient$promise_api_client.PromiseApiClient(gapiRequestService, apiClientHookFactory === void 0 ? null : apiClientHookFactory);
14640
+ };
14641
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientImpl.prototype.export = function(project, $requestBody, namedParameters, passthroughNamedParameters) {
14642
+ namedParameters = namedParameters === void 0 ? {} : namedParameters;
14643
+ passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
14644
+ this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$"));
14645
+ return this.$apiClient.$request({body:$requestBody, httpMethod:"POST", methodId:"earthengine.projects.videoMap.export", path:"/" + this.gapiVersion + "/" + project + "/videoMap:export", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.Operation});
14646
+ };
14647
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClient = function() {
14648
+ };
14649
+ module$exports$eeapiclient$ee_api_client.IProjectsVideoThumbnailsApiClient$XgafvEnum = function() {
14650
+ };
14651
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClient$XgafvEnum = {1:"1", 2:"2", values:function() {
14652
+ return [module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClient$XgafvEnum[1], module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClient$XgafvEnum[2]];
14653
+ }};
14654
+ module$exports$eeapiclient$ee_api_client.IProjectsVideoThumbnailsApiClientAltEnum = function() {
14655
+ };
14656
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientAltEnum = {JSON:"json", MEDIA:"media", PROTO:"proto", values:function() {
14657
+ return [module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientAltEnum.JSON, module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientAltEnum.MEDIA, module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientAltEnum.PROTO];
14658
+ }};
14659
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientImpl = function(gapiVersion, gapiRequestService, apiClientHookFactory) {
14660
+ this.gapiVersion = gapiVersion;
14661
+ this.$apiClient = new module$exports$eeapiclient$promise_api_client.PromiseApiClient(gapiRequestService, apiClientHookFactory === void 0 ? null : apiClientHookFactory);
14662
+ };
14663
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientImpl.prototype.create = function(parent, $requestBody, namedParameters, passthroughNamedParameters) {
14664
+ namedParameters = namedParameters === void 0 ? {} : namedParameters;
14665
+ passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
14666
+ this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$"));
14667
+ return this.$apiClient.$request({body:$requestBody, httpMethod:"POST", methodId:"earthengine.projects.videoThumbnails.create", path:"/" + this.gapiVersion + "/" + parent + "/videoThumbnails", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.VideoThumbnail});
14668
+ };
14669
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientImpl.prototype.getPixels = function(name, namedParameters, passthroughNamedParameters) {
14670
+ namedParameters = namedParameters === void 0 ? {} : namedParameters;
14671
+ passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
14672
+ this.$apiClient.$validateParameter(name, RegExp("^projects/[^/]+/videoThumbnails/[^/]+$"));
14673
+ return this.$apiClient.$request({body:null, httpMethod:"GET", methodId:"earthengine.projects.videoThumbnails.getPixels", path:"/" + this.gapiVersion + "/" + name + ":getPixels", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.HttpBody});
14674
+ };
14675
+ module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClient = function() {
14676
+ };
14677
+ module$exports$eeapiclient$ee_api_client.IV1ApiClient$XgafvEnum = function() {
14678
+ };
14679
+ module$exports$eeapiclient$ee_api_client.V1ApiClient$XgafvEnum = {1:"1", 2:"2", values:function() {
14680
+ return [module$exports$eeapiclient$ee_api_client.V1ApiClient$XgafvEnum[1], module$exports$eeapiclient$ee_api_client.V1ApiClient$XgafvEnum[2]];
14681
+ }};
14682
+ module$exports$eeapiclient$ee_api_client.IV1ApiClientAltEnum = function() {
14683
+ };
14684
+ module$exports$eeapiclient$ee_api_client.V1ApiClientAltEnum = {JSON:"json", MEDIA:"media", PROTO:"proto", values:function() {
14685
+ return [module$exports$eeapiclient$ee_api_client.V1ApiClientAltEnum.JSON, module$exports$eeapiclient$ee_api_client.V1ApiClientAltEnum.MEDIA, module$exports$eeapiclient$ee_api_client.V1ApiClientAltEnum.PROTO];
14686
+ }};
14687
+ module$exports$eeapiclient$ee_api_client.V1ApiClientImpl = function(gapiVersion, gapiRequestService, apiClientHookFactory) {
14688
+ this.gapiVersion = gapiVersion;
14689
+ this.$apiClient = new module$exports$eeapiclient$promise_api_client.PromiseApiClient(gapiRequestService, apiClientHookFactory === void 0 ? null : apiClientHookFactory);
14690
+ };
14691
+ module$exports$eeapiclient$ee_api_client.V1ApiClientImpl.prototype.getCapabilities = function(namedParameters, passthroughNamedParameters) {
14692
+ namedParameters = namedParameters === void 0 ? {} : namedParameters;
14693
+ passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
14694
+ return this.$apiClient.$request({body:null, httpMethod:"GET", methodId:"earthengine.getCapabilities", path:"/" + this.gapiVersion + "/capabilities", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.Capabilities});
14695
+ };
14696
+ module$exports$eeapiclient$ee_api_client.V1ApiClient = function() {
14697
+ };
14698
+ ee.api = module$exports$eeapiclient$ee_api_client;
14699
+ var module$exports$ee$apiVersion = {V1ALPHA:"v1alpha", V1:"v1"};
14700
+ module$exports$ee$apiVersion.VERSION = module$exports$ee$apiVersion.V1;
14701
+ goog.async = {};
14702
+ var module$contents$goog$async$FreeList_FreeList = function(create, reset, limit) {
14703
+ this.limit_ = limit;
14704
+ this.create_ = create;
14705
+ this.reset_ = reset;
14706
+ this.occupants_ = 0;
14707
+ this.head_ = null;
14708
+ };
14709
+ module$contents$goog$async$FreeList_FreeList.prototype.get = function() {
14710
+ if (this.occupants_ > 0) {
14711
+ this.occupants_--;
14712
+ var item = this.head_;
14713
+ this.head_ = item.next;
14714
+ item.next = null;
14715
+ } else {
14716
+ item = this.create_();
14717
+ }
14718
+ return item;
14719
+ };
14720
+ module$contents$goog$async$FreeList_FreeList.prototype.put = function(item) {
14721
+ this.reset_(item);
14722
+ this.occupants_ < this.limit_ && (this.occupants_++, item.next = this.head_, this.head_ = item);
14723
+ };
14724
+ module$contents$goog$async$FreeList_FreeList.prototype.occupants = function() {
14725
+ return this.occupants_;
14726
+ };
14727
+ goog.async.FreeList = module$contents$goog$async$FreeList_FreeList;
14728
+ goog.dom.HtmlElement = function() {
14729
+ };
14730
+ goog.dom.TagName = function() {
14731
+ };
14732
+ goog.dom.TagName.cast = function(name, type) {
14733
+ return name;
15030
14734
  };
15031
- module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientImpl.prototype.create = function(parent, $requestBody, namedParameters, passthroughNamedParameters) {
15032
- namedParameters = namedParameters === void 0 ? {} : namedParameters;
15033
- passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
15034
- this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$"));
15035
- return this.$apiClient.$request({body:$requestBody, httpMethod:"POST", methodId:"earthengine.projects.tables.create", path:"/" + this.gapiVersion + "/" + parent + "/tables", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.Table});
14735
+ goog.dom.TagName.prototype.toString = function() {
15036
14736
  };
15037
- module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClientImpl.prototype.getFeatures = function(name, namedParameters, passthroughNamedParameters) {
15038
- namedParameters = namedParameters === void 0 ? {} : namedParameters;
15039
- passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
15040
- this.$apiClient.$validateParameter(name, RegExp("^projects/[^/]+/tables/[^/]+$"));
15041
- return this.$apiClient.$request({body:null, httpMethod:"GET", methodId:"earthengine.projects.tables.getFeatures", path:"/" + this.gapiVersion + "/" + name + ":getFeatures", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.HttpBody});
14737
+ goog.dom.TagName.A = "A";
14738
+ goog.dom.TagName.ABBR = "ABBR";
14739
+ goog.dom.TagName.ACRONYM = "ACRONYM";
14740
+ goog.dom.TagName.ADDRESS = "ADDRESS";
14741
+ goog.dom.TagName.APPLET = "APPLET";
14742
+ goog.dom.TagName.AREA = "AREA";
14743
+ goog.dom.TagName.ARTICLE = "ARTICLE";
14744
+ goog.dom.TagName.ASIDE = "ASIDE";
14745
+ goog.dom.TagName.AUDIO = "AUDIO";
14746
+ goog.dom.TagName.B = "B";
14747
+ goog.dom.TagName.BASE = "BASE";
14748
+ goog.dom.TagName.BASEFONT = "BASEFONT";
14749
+ goog.dom.TagName.BDI = "BDI";
14750
+ goog.dom.TagName.BDO = "BDO";
14751
+ goog.dom.TagName.BIG = "BIG";
14752
+ goog.dom.TagName.BLOCKQUOTE = "BLOCKQUOTE";
14753
+ goog.dom.TagName.BODY = "BODY";
14754
+ goog.dom.TagName.BR = "BR";
14755
+ goog.dom.TagName.BUTTON = "BUTTON";
14756
+ goog.dom.TagName.CANVAS = "CANVAS";
14757
+ goog.dom.TagName.CAPTION = "CAPTION";
14758
+ goog.dom.TagName.CENTER = "CENTER";
14759
+ goog.dom.TagName.CITE = "CITE";
14760
+ goog.dom.TagName.CODE = "CODE";
14761
+ goog.dom.TagName.COL = "COL";
14762
+ goog.dom.TagName.COLGROUP = "COLGROUP";
14763
+ goog.dom.TagName.COMMAND = "COMMAND";
14764
+ goog.dom.TagName.DATA = "DATA";
14765
+ goog.dom.TagName.DATALIST = "DATALIST";
14766
+ goog.dom.TagName.DD = "DD";
14767
+ goog.dom.TagName.DEL = "DEL";
14768
+ goog.dom.TagName.DETAILS = "DETAILS";
14769
+ goog.dom.TagName.DFN = "DFN";
14770
+ goog.dom.TagName.DIALOG = "DIALOG";
14771
+ goog.dom.TagName.DIR = "DIR";
14772
+ goog.dom.TagName.DIV = "DIV";
14773
+ goog.dom.TagName.DL = "DL";
14774
+ goog.dom.TagName.DT = "DT";
14775
+ goog.dom.TagName.EM = "EM";
14776
+ goog.dom.TagName.EMBED = "EMBED";
14777
+ goog.dom.TagName.FIELDSET = "FIELDSET";
14778
+ goog.dom.TagName.FIGCAPTION = "FIGCAPTION";
14779
+ goog.dom.TagName.FIGURE = "FIGURE";
14780
+ goog.dom.TagName.FONT = "FONT";
14781
+ goog.dom.TagName.FOOTER = "FOOTER";
14782
+ goog.dom.TagName.FORM = "FORM";
14783
+ goog.dom.TagName.FRAME = "FRAME";
14784
+ goog.dom.TagName.FRAMESET = "FRAMESET";
14785
+ goog.dom.TagName.H1 = "H1";
14786
+ goog.dom.TagName.H2 = "H2";
14787
+ goog.dom.TagName.H3 = "H3";
14788
+ goog.dom.TagName.H4 = "H4";
14789
+ goog.dom.TagName.H5 = "H5";
14790
+ goog.dom.TagName.H6 = "H6";
14791
+ goog.dom.TagName.HEAD = "HEAD";
14792
+ goog.dom.TagName.HEADER = "HEADER";
14793
+ goog.dom.TagName.HGROUP = "HGROUP";
14794
+ goog.dom.TagName.HR = "HR";
14795
+ goog.dom.TagName.HTML = "HTML";
14796
+ goog.dom.TagName.I = "I";
14797
+ goog.dom.TagName.IFRAME = "IFRAME";
14798
+ goog.dom.TagName.IMG = "IMG";
14799
+ goog.dom.TagName.INPUT = "INPUT";
14800
+ goog.dom.TagName.INS = "INS";
14801
+ goog.dom.TagName.ISINDEX = "ISINDEX";
14802
+ goog.dom.TagName.KBD = "KBD";
14803
+ goog.dom.TagName.KEYGEN = "KEYGEN";
14804
+ goog.dom.TagName.LABEL = "LABEL";
14805
+ goog.dom.TagName.LEGEND = "LEGEND";
14806
+ goog.dom.TagName.LI = "LI";
14807
+ goog.dom.TagName.LINK = "LINK";
14808
+ goog.dom.TagName.MAIN = "MAIN";
14809
+ goog.dom.TagName.MAP = "MAP";
14810
+ goog.dom.TagName.MARK = "MARK";
14811
+ goog.dom.TagName.MATH = "MATH";
14812
+ goog.dom.TagName.MENU = "MENU";
14813
+ goog.dom.TagName.MENUITEM = "MENUITEM";
14814
+ goog.dom.TagName.META = "META";
14815
+ goog.dom.TagName.METER = "METER";
14816
+ goog.dom.TagName.NAV = "NAV";
14817
+ goog.dom.TagName.NOFRAMES = "NOFRAMES";
14818
+ goog.dom.TagName.NOSCRIPT = "NOSCRIPT";
14819
+ goog.dom.TagName.OBJECT = "OBJECT";
14820
+ goog.dom.TagName.OL = "OL";
14821
+ goog.dom.TagName.OPTGROUP = "OPTGROUP";
14822
+ goog.dom.TagName.OPTION = "OPTION";
14823
+ goog.dom.TagName.OUTPUT = "OUTPUT";
14824
+ goog.dom.TagName.P = "P";
14825
+ goog.dom.TagName.PARAM = "PARAM";
14826
+ goog.dom.TagName.PICTURE = "PICTURE";
14827
+ goog.dom.TagName.PRE = "PRE";
14828
+ goog.dom.TagName.PROGRESS = "PROGRESS";
14829
+ goog.dom.TagName.Q = "Q";
14830
+ goog.dom.TagName.RP = "RP";
14831
+ goog.dom.TagName.RT = "RT";
14832
+ goog.dom.TagName.RTC = "RTC";
14833
+ goog.dom.TagName.RUBY = "RUBY";
14834
+ goog.dom.TagName.S = "S";
14835
+ goog.dom.TagName.SAMP = "SAMP";
14836
+ goog.dom.TagName.SCRIPT = "SCRIPT";
14837
+ goog.dom.TagName.SECTION = "SECTION";
14838
+ goog.dom.TagName.SELECT = "SELECT";
14839
+ goog.dom.TagName.SMALL = "SMALL";
14840
+ goog.dom.TagName.SOURCE = "SOURCE";
14841
+ goog.dom.TagName.SPAN = "SPAN";
14842
+ goog.dom.TagName.STRIKE = "STRIKE";
14843
+ goog.dom.TagName.STRONG = "STRONG";
14844
+ goog.dom.TagName.STYLE = "STYLE";
14845
+ goog.dom.TagName.SUB = "SUB";
14846
+ goog.dom.TagName.SUMMARY = "SUMMARY";
14847
+ goog.dom.TagName.SUP = "SUP";
14848
+ goog.dom.TagName.SVG = "SVG";
14849
+ goog.dom.TagName.TABLE = "TABLE";
14850
+ goog.dom.TagName.TBODY = "TBODY";
14851
+ goog.dom.TagName.TD = "TD";
14852
+ goog.dom.TagName.TEMPLATE = "TEMPLATE";
14853
+ goog.dom.TagName.TEXTAREA = "TEXTAREA";
14854
+ goog.dom.TagName.TFOOT = "TFOOT";
14855
+ goog.dom.TagName.TH = "TH";
14856
+ goog.dom.TagName.THEAD = "THEAD";
14857
+ goog.dom.TagName.TIME = "TIME";
14858
+ goog.dom.TagName.TITLE = "TITLE";
14859
+ goog.dom.TagName.TR = "TR";
14860
+ goog.dom.TagName.TRACK = "TRACK";
14861
+ goog.dom.TagName.TT = "TT";
14862
+ goog.dom.TagName.U = "U";
14863
+ goog.dom.TagName.UL = "UL";
14864
+ goog.dom.TagName.VAR = "VAR";
14865
+ goog.dom.TagName.VIDEO = "VIDEO";
14866
+ goog.dom.TagName.WBR = "WBR";
14867
+ goog.dom.element = {};
14868
+ var module$contents$goog$dom$element_isElement = function(value) {
14869
+ return goog.isObject(value) && value.nodeType === goog.dom.NodeType.ELEMENT;
14870
+ }, module$contents$goog$dom$element_isHtmlElement = function(value) {
14871
+ return goog.isObject(value) && module$contents$goog$dom$element_isElement(value) && (!value.namespaceURI || value.namespaceURI === "http://www.w3.org/1999/xhtml");
14872
+ }, module$contents$goog$dom$element_isHtmlElementOfType = function(value, tagName) {
14873
+ return goog.isObject(value) && module$contents$goog$dom$element_isHtmlElement(value) && value.tagName.toUpperCase() === tagName.toString();
15042
14874
  };
15043
- module$exports$eeapiclient$ee_api_client.ProjectsTablesApiClient = function() {
14875
+ goog.dom.element.isElement = module$contents$goog$dom$element_isElement;
14876
+ goog.dom.element.isHtmlElement = module$contents$goog$dom$element_isHtmlElement;
14877
+ goog.dom.element.isHtmlElementOfType = module$contents$goog$dom$element_isHtmlElementOfType;
14878
+ goog.dom.element.isHtmlAnchorElement = function(value) {
14879
+ return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.A);
15044
14880
  };
15045
- module$exports$eeapiclient$ee_api_client.IProjectsThumbnailsApiClient$XgafvEnum = function() {
14881
+ goog.dom.element.isHtmlButtonElement = function(value) {
14882
+ return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.BUTTON);
15046
14883
  };
15047
- module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClient$XgafvEnum = {1:"1", 2:"2", values:function() {
15048
- return [module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClient$XgafvEnum[1], module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClient$XgafvEnum[2]];
15049
- }};
15050
- module$exports$eeapiclient$ee_api_client.IProjectsThumbnailsApiClientAltEnum = function() {
14884
+ goog.dom.element.isHtmlLinkElement = function(value) {
14885
+ return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.LINK);
15051
14886
  };
15052
- module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientAltEnum = {JSON:"json", MEDIA:"media", PROTO:"proto", values:function() {
15053
- return [module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientAltEnum.JSON, module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientAltEnum.MEDIA, module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientAltEnum.PROTO];
15054
- }};
15055
- module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientImpl = function(gapiVersion, gapiRequestService, apiClientHookFactory) {
15056
- this.gapiVersion = gapiVersion;
15057
- this.$apiClient = new module$exports$eeapiclient$promise_api_client.PromiseApiClient(gapiRequestService, apiClientHookFactory === void 0 ? null : apiClientHookFactory);
14887
+ goog.dom.element.isHtmlImageElement = function(value) {
14888
+ return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.IMG);
15058
14889
  };
15059
- module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientImpl.prototype.create = function(parent, $requestBody, namedParameters, passthroughNamedParameters) {
15060
- namedParameters = namedParameters === void 0 ? {} : namedParameters;
15061
- passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
15062
- this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$"));
15063
- return this.$apiClient.$request({body:$requestBody, httpMethod:"POST", methodId:"earthengine.projects.thumbnails.create", path:"/" + this.gapiVersion + "/" + parent + "/thumbnails", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.Thumbnail});
14890
+ goog.dom.element.isHtmlAudioElement = function(value) {
14891
+ return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.AUDIO);
15064
14892
  };
15065
- module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClientImpl.prototype.getPixels = function(name, namedParameters, passthroughNamedParameters) {
15066
- namedParameters = namedParameters === void 0 ? {} : namedParameters;
15067
- passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
15068
- this.$apiClient.$validateParameter(name, RegExp("^projects/[^/]+/thumbnails/[^/]+$"));
15069
- return this.$apiClient.$request({body:null, httpMethod:"GET", methodId:"earthengine.projects.thumbnails.getPixels", path:"/" + this.gapiVersion + "/" + name + ":getPixels", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.HttpBody});
14893
+ goog.dom.element.isHtmlVideoElement = function(value) {
14894
+ return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.VIDEO);
15070
14895
  };
15071
- module$exports$eeapiclient$ee_api_client.ProjectsThumbnailsApiClient = function() {
14896
+ goog.dom.element.isHtmlInputElement = function(value) {
14897
+ return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.INPUT);
15072
14898
  };
15073
- module$exports$eeapiclient$ee_api_client.IProjectsValueApiClient$XgafvEnum = function() {
14899
+ goog.dom.element.isHtmlTextAreaElement = function(value) {
14900
+ return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.TEXTAREA);
15074
14901
  };
15075
- module$exports$eeapiclient$ee_api_client.ProjectsValueApiClient$XgafvEnum = {1:"1", 2:"2", values:function() {
15076
- return [module$exports$eeapiclient$ee_api_client.ProjectsValueApiClient$XgafvEnum[1], module$exports$eeapiclient$ee_api_client.ProjectsValueApiClient$XgafvEnum[2]];
15077
- }};
15078
- module$exports$eeapiclient$ee_api_client.IProjectsValueApiClientAltEnum = function() {
14902
+ goog.dom.element.isHtmlCanvasElement = function(value) {
14903
+ return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.CANVAS);
15079
14904
  };
15080
- module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientAltEnum = {JSON:"json", MEDIA:"media", PROTO:"proto", values:function() {
15081
- return [module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientAltEnum.JSON, module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientAltEnum.MEDIA, module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientAltEnum.PROTO];
15082
- }};
15083
- module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientImpl = function(gapiVersion, gapiRequestService, apiClientHookFactory) {
15084
- this.gapiVersion = gapiVersion;
15085
- this.$apiClient = new module$exports$eeapiclient$promise_api_client.PromiseApiClient(gapiRequestService, apiClientHookFactory === void 0 ? null : apiClientHookFactory);
14905
+ goog.dom.element.isHtmlEmbedElement = function(value) {
14906
+ return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.EMBED);
15086
14907
  };
15087
- module$exports$eeapiclient$ee_api_client.ProjectsValueApiClientImpl.prototype.compute = function(project, $requestBody, namedParameters, passthroughNamedParameters) {
15088
- namedParameters = namedParameters === void 0 ? {} : namedParameters;
15089
- passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
15090
- this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$"));
15091
- return this.$apiClient.$request({body:$requestBody, httpMethod:"POST", methodId:"earthengine.projects.value.compute", path:"/" + this.gapiVersion + "/" + project + "/value:compute", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.ComputeValueResponse});
14908
+ goog.dom.element.isHtmlFormElement = function(value) {
14909
+ return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.FORM);
15092
14910
  };
15093
- module$exports$eeapiclient$ee_api_client.ProjectsValueApiClient = function() {
14911
+ goog.dom.element.isHtmlFrameElement = function(value) {
14912
+ return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.FRAME);
15094
14913
  };
15095
- module$exports$eeapiclient$ee_api_client.IProjectsVideoApiClient$XgafvEnum = function() {
14914
+ goog.dom.element.isHtmlIFrameElement = function(value) {
14915
+ return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.IFRAME);
15096
14916
  };
15097
- module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClient$XgafvEnum = {1:"1", 2:"2", values:function() {
15098
- return [module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClient$XgafvEnum[1], module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClient$XgafvEnum[2]];
15099
- }};
15100
- module$exports$eeapiclient$ee_api_client.IProjectsVideoApiClientAltEnum = function() {
14917
+ goog.dom.element.isHtmlObjectElement = function(value) {
14918
+ return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.OBJECT);
15101
14919
  };
15102
- module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientAltEnum = {JSON:"json", MEDIA:"media", PROTO:"proto", values:function() {
15103
- return [module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientAltEnum.JSON, module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientAltEnum.MEDIA, module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientAltEnum.PROTO];
15104
- }};
15105
- module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientImpl = function(gapiVersion, gapiRequestService, apiClientHookFactory) {
15106
- this.gapiVersion = gapiVersion;
15107
- this.$apiClient = new module$exports$eeapiclient$promise_api_client.PromiseApiClient(gapiRequestService, apiClientHookFactory === void 0 ? null : apiClientHookFactory);
14920
+ goog.dom.element.isHtmlScriptElement = function(value) {
14921
+ return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.SCRIPT);
14922
+ };
14923
+ goog.asserts.dom = {};
14924
+ var module$contents$goog$asserts$dom_assertIsHtmlElement = function(value) {
14925
+ module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && !module$contents$goog$dom$element_isHtmlElement(value) && goog.asserts.fail("Argument is not an HTML Element; got: " + module$contents$goog$asserts$dom_debugStringForType(value));
14926
+ return value;
14927
+ }, module$contents$goog$asserts$dom_assertIsHtmlElementOfType = function(value, tagName) {
14928
+ module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && !module$contents$goog$dom$element_isHtmlElementOfType(value, tagName) && goog.asserts.fail("Argument is not an HTML Element with tag name " + (tagName.toString() + "; got: " + module$contents$goog$asserts$dom_debugStringForType(value)));
14929
+ return value;
14930
+ }, module$contents$goog$asserts$dom_assertIsHtmlAnchorElement = function(value) {
14931
+ return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.A);
14932
+ }, module$contents$goog$asserts$dom_assertIsHtmlLinkElement = function(value) {
14933
+ return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.LINK);
14934
+ }, module$contents$goog$asserts$dom_assertIsHtmlFormElement = function(value) {
14935
+ return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.FORM);
14936
+ }, module$contents$goog$asserts$dom_assertIsHtmlIFrameElement = function(value) {
14937
+ return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.IFRAME);
14938
+ }, module$contents$goog$asserts$dom_assertIsHtmlScriptElement = function(value) {
14939
+ return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.SCRIPT);
14940
+ }, module$contents$goog$asserts$dom_debugStringForType = function(value) {
14941
+ if (goog.isObject(value)) {
14942
+ try {
14943
+ return value.constructor.displayName || value.constructor.name || Object.prototype.toString.call(value);
14944
+ } catch (e) {
14945
+ return "<object could not be stringified>";
14946
+ }
14947
+ } else {
14948
+ return value === void 0 ? "undefined" : value === null ? "null" : typeof value;
14949
+ }
15108
14950
  };
15109
- module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClientImpl.prototype.export = function(project, $requestBody, namedParameters, passthroughNamedParameters) {
15110
- namedParameters = namedParameters === void 0 ? {} : namedParameters;
15111
- passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
15112
- this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$"));
15113
- return this.$apiClient.$request({body:$requestBody, httpMethod:"POST", methodId:"earthengine.projects.video.export", path:"/" + this.gapiVersion + "/" + project + "/video:export", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.Operation});
14951
+ goog.asserts.dom.assertIsElement = function(value) {
14952
+ module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && !module$contents$goog$dom$element_isElement(value) && goog.asserts.fail("Argument is not an Element; got: " + module$contents$goog$asserts$dom_debugStringForType(value));
14953
+ return value;
15114
14954
  };
15115
- module$exports$eeapiclient$ee_api_client.ProjectsVideoApiClient = function() {
14955
+ goog.asserts.dom.assertIsHtmlElement = module$contents$goog$asserts$dom_assertIsHtmlElement;
14956
+ goog.asserts.dom.assertIsHtmlElementOfType = module$contents$goog$asserts$dom_assertIsHtmlElementOfType;
14957
+ goog.asserts.dom.assertIsHtmlAnchorElement = module$contents$goog$asserts$dom_assertIsHtmlAnchorElement;
14958
+ goog.asserts.dom.assertIsHtmlButtonElement = function(value) {
14959
+ return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.BUTTON);
15116
14960
  };
15117
- module$exports$eeapiclient$ee_api_client.IProjectsVideoMapApiClient$XgafvEnum = function() {
14961
+ goog.asserts.dom.assertIsHtmlLinkElement = module$contents$goog$asserts$dom_assertIsHtmlLinkElement;
14962
+ goog.asserts.dom.assertIsHtmlImageElement = function(value) {
14963
+ return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.IMG);
15118
14964
  };
15119
- module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClient$XgafvEnum = {1:"1", 2:"2", values:function() {
15120
- return [module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClient$XgafvEnum[1], module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClient$XgafvEnum[2]];
15121
- }};
15122
- module$exports$eeapiclient$ee_api_client.IProjectsVideoMapApiClientAltEnum = function() {
14965
+ goog.asserts.dom.assertIsHtmlAudioElement = function(value) {
14966
+ return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.AUDIO);
15123
14967
  };
15124
- module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientAltEnum = {JSON:"json", MEDIA:"media", PROTO:"proto", values:function() {
15125
- return [module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientAltEnum.JSON, module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientAltEnum.MEDIA, module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientAltEnum.PROTO];
15126
- }};
15127
- module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientImpl = function(gapiVersion, gapiRequestService, apiClientHookFactory) {
15128
- this.gapiVersion = gapiVersion;
15129
- this.$apiClient = new module$exports$eeapiclient$promise_api_client.PromiseApiClient(gapiRequestService, apiClientHookFactory === void 0 ? null : apiClientHookFactory);
14968
+ goog.asserts.dom.assertIsHtmlVideoElement = function(value) {
14969
+ return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.VIDEO);
15130
14970
  };
15131
- module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClientImpl.prototype.export = function(project, $requestBody, namedParameters, passthroughNamedParameters) {
15132
- namedParameters = namedParameters === void 0 ? {} : namedParameters;
15133
- passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
15134
- this.$apiClient.$validateParameter(project, RegExp("^projects/[^/]+$"));
15135
- return this.$apiClient.$request({body:$requestBody, httpMethod:"POST", methodId:"earthengine.projects.videoMap.export", path:"/" + this.gapiVersion + "/" + project + "/videoMap:export", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.Operation});
14971
+ goog.asserts.dom.assertIsHtmlInputElement = function(value) {
14972
+ return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.INPUT);
15136
14973
  };
15137
- module$exports$eeapiclient$ee_api_client.ProjectsVideoMapApiClient = function() {
14974
+ goog.asserts.dom.assertIsHtmlTextAreaElement = function(value) {
14975
+ return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.TEXTAREA);
15138
14976
  };
15139
- module$exports$eeapiclient$ee_api_client.IProjectsVideoThumbnailsApiClient$XgafvEnum = function() {
14977
+ goog.asserts.dom.assertIsHtmlCanvasElement = function(value) {
14978
+ return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.CANVAS);
15140
14979
  };
15141
- module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClient$XgafvEnum = {1:"1", 2:"2", values:function() {
15142
- return [module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClient$XgafvEnum[1], module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClient$XgafvEnum[2]];
15143
- }};
15144
- module$exports$eeapiclient$ee_api_client.IProjectsVideoThumbnailsApiClientAltEnum = function() {
14980
+ goog.asserts.dom.assertIsHtmlEmbedElement = function(value) {
14981
+ return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.EMBED);
15145
14982
  };
15146
- module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientAltEnum = {JSON:"json", MEDIA:"media", PROTO:"proto", values:function() {
15147
- return [module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientAltEnum.JSON, module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientAltEnum.MEDIA, module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientAltEnum.PROTO];
15148
- }};
15149
- module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientImpl = function(gapiVersion, gapiRequestService, apiClientHookFactory) {
15150
- this.gapiVersion = gapiVersion;
15151
- this.$apiClient = new module$exports$eeapiclient$promise_api_client.PromiseApiClient(gapiRequestService, apiClientHookFactory === void 0 ? null : apiClientHookFactory);
14983
+ goog.asserts.dom.assertIsHtmlFormElement = module$contents$goog$asserts$dom_assertIsHtmlFormElement;
14984
+ goog.asserts.dom.assertIsHtmlFrameElement = function(value) {
14985
+ return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.FRAME);
15152
14986
  };
15153
- module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientImpl.prototype.create = function(parent, $requestBody, namedParameters, passthroughNamedParameters) {
15154
- namedParameters = namedParameters === void 0 ? {} : namedParameters;
15155
- passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
15156
- this.$apiClient.$validateParameter(parent, RegExp("^projects/[^/]+$"));
15157
- return this.$apiClient.$request({body:$requestBody, httpMethod:"POST", methodId:"earthengine.projects.videoThumbnails.create", path:"/" + this.gapiVersion + "/" + parent + "/videoThumbnails", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.VideoThumbnail});
14987
+ goog.asserts.dom.assertIsHtmlIFrameElement = module$contents$goog$asserts$dom_assertIsHtmlIFrameElement;
14988
+ goog.asserts.dom.assertIsHtmlObjectElement = function(value) {
14989
+ return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.OBJECT);
15158
14990
  };
15159
- module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClientImpl.prototype.getPixels = function(name, namedParameters, passthroughNamedParameters) {
15160
- namedParameters = namedParameters === void 0 ? {} : namedParameters;
15161
- passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
15162
- this.$apiClient.$validateParameter(name, RegExp("^projects/[^/]+/videoThumbnails/[^/]+$"));
15163
- return this.$apiClient.$request({body:null, httpMethod:"GET", methodId:"earthengine.projects.videoThumbnails.getPixels", path:"/" + this.gapiVersion + "/" + name + ":getPixels", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.HttpBody});
14991
+ goog.asserts.dom.assertIsHtmlScriptElement = module$contents$goog$asserts$dom_assertIsHtmlScriptElement;
14992
+ goog.dom.asserts = {};
14993
+ goog.dom.asserts.assertIsLocation = function(o) {
14994
+ if (module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS) {
14995
+ var win = goog.dom.asserts.getWindow_(o);
14996
+ win && (!o || !(o instanceof win.Location) && o instanceof win.Element) && goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s", goog.dom.asserts.debugStringForType_(o));
14997
+ }
14998
+ return o;
15164
14999
  };
15165
- module$exports$eeapiclient$ee_api_client.ProjectsVideoThumbnailsApiClient = function() {
15000
+ goog.dom.asserts.debugStringForType_ = function(value) {
15001
+ if (goog.isObject(value)) {
15002
+ try {
15003
+ return value.constructor.displayName || value.constructor.name || Object.prototype.toString.call(value);
15004
+ } catch (e) {
15005
+ return "<object could not be stringified>";
15006
+ }
15007
+ } else {
15008
+ return value === void 0 ? "undefined" : value === null ? "null" : typeof value;
15009
+ }
15166
15010
  };
15167
- module$exports$eeapiclient$ee_api_client.IV1ApiClient$XgafvEnum = function() {
15011
+ goog.dom.asserts.getWindow_ = function(o) {
15012
+ try {
15013
+ var doc = o && o.ownerDocument, win = doc && (doc.defaultView || doc.parentWindow);
15014
+ win = win || goog.global;
15015
+ if (win.Element && win.Location) {
15016
+ return win;
15017
+ }
15018
+ } catch (ex) {
15019
+ }
15020
+ return null;
15168
15021
  };
15169
- module$exports$eeapiclient$ee_api_client.V1ApiClient$XgafvEnum = {1:"1", 2:"2", values:function() {
15170
- return [module$exports$eeapiclient$ee_api_client.V1ApiClient$XgafvEnum[1], module$exports$eeapiclient$ee_api_client.V1ApiClient$XgafvEnum[2]];
15171
- }};
15172
- module$exports$eeapiclient$ee_api_client.IV1ApiClientAltEnum = function() {
15022
+ goog.dom.tags = {};
15023
+ goog.dom.tags.VOID_TAGS_ = {area:!0, base:!0, br:!0, col:!0, command:!0, embed:!0, hr:!0, img:!0, input:!0, keygen:!0, link:!0, meta:!0, param:!0, source:!0, track:!0, wbr:!0};
15024
+ goog.dom.tags.isVoidTag = function(tagName) {
15025
+ return goog.dom.tags.VOID_TAGS_[tagName] === !0;
15173
15026
  };
15174
- module$exports$eeapiclient$ee_api_client.V1ApiClientAltEnum = {JSON:"json", MEDIA:"media", PROTO:"proto", values:function() {
15175
- return [module$exports$eeapiclient$ee_api_client.V1ApiClientAltEnum.JSON, module$exports$eeapiclient$ee_api_client.V1ApiClientAltEnum.MEDIA, module$exports$eeapiclient$ee_api_client.V1ApiClientAltEnum.PROTO];
15176
- }};
15177
- module$exports$eeapiclient$ee_api_client.V1ApiClientImpl = function(gapiVersion, gapiRequestService, apiClientHookFactory) {
15178
- this.gapiVersion = gapiVersion;
15179
- this.$apiClient = new module$exports$eeapiclient$promise_api_client.PromiseApiClient(gapiRequestService, apiClientHookFactory === void 0 ? null : apiClientHookFactory);
15027
+ var module$exports$safevalues$for_closure$index = {}, module$contents$safevalues$for_closure$index_module = module$contents$safevalues$for_closure$index_module || {id:"third_party/javascript/safevalues/for_closure/index.closure.js"};
15028
+ module$exports$safevalues$for_closure$index.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
15029
+ module$exports$safevalues$for_closure$index.EMPTY_HTML = module$exports$safevalues$internals$html_impl.EMPTY_HTML;
15030
+ module$exports$safevalues$for_closure$index.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
15031
+ module$exports$safevalues$for_closure$index.createHtmlInternal = module$exports$safevalues$internals$html_impl.createHtmlInternal;
15032
+ module$exports$safevalues$for_closure$index.unwrapHtml = module$exports$safevalues$internals$html_impl.unwrapHtml;
15033
+ module$exports$safevalues$for_closure$index.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
15034
+ module$exports$safevalues$for_closure$index.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
15035
+ module$exports$safevalues$for_closure$index.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
15036
+ module$exports$safevalues$for_closure$index.SafeStyleSheet = module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet;
15037
+ module$exports$safevalues$for_closure$index.createStyleSheetInternal = module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal;
15038
+ module$exports$safevalues$for_closure$index.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
15039
+ module$exports$safevalues$for_closure$index.SafeUrl = module$exports$safevalues$internals$url_impl.SafeUrl;
15040
+ module$exports$safevalues$for_closure$index.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
15041
+ var module$exports$safevalues$for_closure = {};
15042
+ module$exports$safevalues$for_closure.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
15043
+ module$exports$safevalues$for_closure.EMPTY_HTML = module$exports$safevalues$for_closure$index.EMPTY_HTML;
15044
+ module$exports$safevalues$for_closure.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
15045
+ module$exports$safevalues$for_closure.createHtmlInternal = module$exports$safevalues$for_closure$index.createHtmlInternal;
15046
+ module$exports$safevalues$for_closure.unwrapHtml = module$exports$safevalues$for_closure$index.unwrapHtml;
15047
+ module$exports$safevalues$for_closure.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
15048
+ module$exports$safevalues$for_closure.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
15049
+ module$exports$safevalues$for_closure.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
15050
+ module$exports$safevalues$for_closure.SafeStyleSheet = module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet;
15051
+ module$exports$safevalues$for_closure.createStyleSheetInternal = module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal;
15052
+ module$exports$safevalues$for_closure.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
15053
+ module$exports$safevalues$for_closure.SafeUrl = module$exports$safevalues$internals$url_impl.SafeUrl;
15054
+ module$exports$safevalues$for_closure.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
15055
+ module$exports$safevalues$internals$style_impl.SafeStyle.fromConstant = function(style) {
15056
+ var styleString = goog.string.Const.unwrap(style);
15057
+ if (styleString.length === 0) {
15058
+ return module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY;
15059
+ }
15060
+ (0,goog.asserts.assert)((0,goog.string.internal.endsWith)(styleString, ";"), "Last character of style string is not ';': " + styleString);
15061
+ (0,goog.asserts.assert)((0,goog.string.internal.contains)(styleString, ":"), "Style string must contain at least one ':', to specify a \"name: value\" pair: " + styleString);
15062
+ return module$contents$safevalues$internals$style_impl_createStyleInternal(styleString);
15180
15063
  };
15181
- module$exports$eeapiclient$ee_api_client.V1ApiClientImpl.prototype.getCapabilities = function(namedParameters, passthroughNamedParameters) {
15182
- namedParameters = namedParameters === void 0 ? {} : namedParameters;
15183
- passthroughNamedParameters = passthroughNamedParameters === void 0 ? {} : passthroughNamedParameters;
15184
- return this.$apiClient.$request({body:null, httpMethod:"GET", methodId:"earthengine.getCapabilities", path:"/" + this.gapiVersion + "/capabilities", queryParams:module$contents$eeapiclient$request_params_buildQueryParams(namedParameters, module$contents$eeapiclient$ee_api_client_PARAM_MAP_0, passthroughNamedParameters), responseCtor:module$exports$eeapiclient$ee_api_client.Capabilities});
15064
+ module$exports$safevalues$internals$style_impl.SafeStyle.unwrap = function(safeStyle) {
15065
+ return module$contents$safevalues$internals$style_impl_unwrapStyle(safeStyle);
15185
15066
  };
15186
- module$exports$eeapiclient$ee_api_client.V1ApiClient = function() {
15067
+ module$exports$safevalues$internals$style_impl.SafeStyle.create = function(map) {
15068
+ var style = "", name;
15069
+ for (name in map) {
15070
+ if (Object.prototype.hasOwnProperty.call(map, name)) {
15071
+ if (!/^[-_a-zA-Z0-9]+$/.test(name)) {
15072
+ throw Error("Name allows only [-_a-zA-Z0-9], got: " + name);
15073
+ }
15074
+ var value = map[name];
15075
+ value != null && (value = Array.isArray(value) ? value.map(module$contents$goog$html$SafeStyle_sanitizePropertyValue).join(" ") : module$contents$goog$html$SafeStyle_sanitizePropertyValue(value), style += name + ":" + value + ";");
15076
+ }
15077
+ }
15078
+ return style ? module$contents$safevalues$internals$style_impl_createStyleInternal(style) : module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY;
15187
15079
  };
15188
- ee.api = module$exports$eeapiclient$ee_api_client;
15189
- var module$exports$ee$apiVersion = {V1ALPHA:"v1alpha", V1:"v1"};
15190
- module$exports$ee$apiVersion.VERSION = module$exports$ee$apiVersion.V1;
15191
- goog.async = {};
15192
- var module$contents$goog$async$FreeList_FreeList = function(create, reset, limit) {
15193
- this.limit_ = limit;
15194
- this.create_ = create;
15195
- this.reset_ = reset;
15196
- this.occupants_ = 0;
15197
- this.head_ = null;
15080
+ module$exports$safevalues$internals$style_impl.SafeStyle.concat = function(var_args) {
15081
+ var style = "", addArgument = function(argument) {
15082
+ Array.isArray(argument) ? argument.forEach(addArgument) : style += module$exports$safevalues$internals$style_impl.SafeStyle.unwrap(argument);
15083
+ };
15084
+ Array.prototype.forEach.call(arguments, addArgument);
15085
+ return style ? module$contents$safevalues$internals$style_impl_createStyleInternal(style) : module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY;
15198
15086
  };
15199
- module$contents$goog$async$FreeList_FreeList.prototype.get = function() {
15200
- if (this.occupants_ > 0) {
15201
- this.occupants_--;
15202
- var item = this.head_;
15203
- this.head_ = item.next;
15204
- item.next = null;
15087
+ module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY = module$contents$safevalues$internals$style_impl_createStyleInternal("");
15088
+ module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING = "zClosurez";
15089
+ function module$contents$goog$html$SafeStyle_sanitizePropertyValue(value) {
15090
+ if (value instanceof module$exports$safevalues$internals$url_impl.SafeUrl) {
15091
+ return 'url("' + value.toString().replace(/</g, "%3c").replace(/[\\"]/g, "\\$&") + '")';
15092
+ }
15093
+ var result = value instanceof goog.string.Const ? goog.string.Const.unwrap(value) : module$contents$goog$html$SafeStyle_sanitizePropertyValueString(String(value));
15094
+ if (/[{;}]/.test(result)) {
15095
+ throw new module$contents$goog$asserts_AssertionError("Value does not allow [{;}], got: %s.", [result]);
15096
+ }
15097
+ return result;
15098
+ }
15099
+ function module$contents$goog$html$SafeStyle_sanitizePropertyValueString(value) {
15100
+ var valueWithoutFunctions = value.replace(module$contents$goog$html$SafeStyle_FUNCTIONS_RE, "$1").replace(module$contents$goog$html$SafeStyle_FUNCTIONS_RE, "$1").replace(module$contents$goog$html$SafeStyle_URL_RE, "url");
15101
+ if (module$contents$goog$html$SafeStyle_VALUE_RE.test(valueWithoutFunctions)) {
15102
+ if (module$contents$goog$html$SafeStyle_COMMENT_RE.test(value)) {
15103
+ return (0,goog.asserts.fail)("String value disallows comments, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
15104
+ }
15105
+ if (!module$contents$goog$html$SafeStyle_hasBalancedQuotes(value)) {
15106
+ return (0,goog.asserts.fail)("String value requires balanced quotes, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
15107
+ }
15108
+ if (!module$contents$goog$html$SafeStyle_hasBalancedSquareBrackets(value)) {
15109
+ return (0,goog.asserts.fail)("String value requires balanced square brackets and one identifier per pair of brackets, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
15110
+ }
15205
15111
  } else {
15206
- item = this.create_();
15112
+ return (0,goog.asserts.fail)("String value allows only [-+,.\"'%_!#/ a-zA-Z0-9\\[\\]] and simple functions, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
15113
+ }
15114
+ return module$contents$goog$html$SafeStyle_sanitizeUrl(value);
15115
+ }
15116
+ function module$contents$goog$html$SafeStyle_hasBalancedQuotes(value) {
15117
+ for (var outsideSingle = !0, outsideDouble = !0, i = 0; i < value.length; i++) {
15118
+ var c = value.charAt(i);
15119
+ c == "'" && outsideDouble ? outsideSingle = !outsideSingle : c == '"' && outsideSingle && (outsideDouble = !outsideDouble);
15120
+ }
15121
+ return outsideSingle && outsideDouble;
15122
+ }
15123
+ function module$contents$goog$html$SafeStyle_hasBalancedSquareBrackets(value) {
15124
+ for (var outside = !0, tokenRe = /^[-_a-zA-Z0-9]$/, i = 0; i < value.length; i++) {
15125
+ var c = value.charAt(i);
15126
+ if (c == "]") {
15127
+ if (outside) {
15128
+ return !1;
15129
+ }
15130
+ outside = !0;
15131
+ } else if (c == "[") {
15132
+ if (!outside) {
15133
+ return !1;
15134
+ }
15135
+ outside = !1;
15136
+ } else if (!outside && !tokenRe.test(c)) {
15137
+ return !1;
15138
+ }
15139
+ }
15140
+ return outside;
15141
+ }
15142
+ var module$contents$goog$html$SafeStyle_VALUE_RE = RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"), module$contents$goog$html$SafeStyle_URL_RE = RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))", "g"), module$contents$goog$html$SafeStyle_FUNCTIONS_RE = RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|steps|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)", "g"), module$contents$goog$html$SafeStyle_COMMENT_RE =
15143
+ /\/\*/;
15144
+ function module$contents$goog$html$SafeStyle_sanitizeUrl(value) {
15145
+ return value.replace(module$contents$goog$html$SafeStyle_URL_RE, function(match, before, url, after) {
15146
+ var quote = "";
15147
+ url = url.replace(/^(['"])(.*)\1$/, function(match, start, inside) {
15148
+ quote = start;
15149
+ return inside;
15150
+ });
15151
+ var sanitized = module$contents$safevalues$builders$url_builders_sanitizeUrl(url).toString();
15152
+ return before + quote + sanitized + quote + after;
15153
+ });
15154
+ }
15155
+ goog.html.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
15156
+ module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.createRule = function(selector, style) {
15157
+ if ((0,goog.string.internal.contains)(selector, "<")) {
15158
+ throw Error("Selector does not allow '<', got: " + selector);
15207
15159
  }
15208
- return item;
15160
+ var selectorToCheck = selector.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g, "");
15161
+ if (!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=\\^$|]+$/.test(selectorToCheck)) {
15162
+ throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=\\^$|] and strings, got: " + selector);
15163
+ }
15164
+ if (!module$contents$goog$html$SafeStyleSheet_hasBalancedBrackets(selectorToCheck)) {
15165
+ throw Error("() and [] in selector must be balanced, got: " + selector);
15166
+ }
15167
+ style instanceof module$exports$safevalues$internals$style_impl.SafeStyle || (style = module$exports$safevalues$internals$style_impl.SafeStyle.create(style));
15168
+ var styleSheet = selector + "{" + module$exports$safevalues$internals$style_impl.SafeStyle.unwrap(style).replace(/</g, "\\3C ") + "}";
15169
+ return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheet);
15209
15170
  };
15210
- module$contents$goog$async$FreeList_FreeList.prototype.put = function(item) {
15211
- this.reset_(item);
15212
- this.occupants_ < this.limit_ && (this.occupants_++, item.next = this.head_, this.head_ = item);
15171
+ module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.concat = function(var_args) {
15172
+ var result = "", addArgument = function(argument) {
15173
+ Array.isArray(argument) ? argument.forEach(addArgument) : result += module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.unwrap(argument);
15174
+ };
15175
+ Array.prototype.forEach.call(arguments, addArgument);
15176
+ return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(result);
15213
15177
  };
15214
- module$contents$goog$async$FreeList_FreeList.prototype.occupants = function() {
15215
- return this.occupants_;
15178
+ module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.fromConstant = function(styleSheet) {
15179
+ var styleSheetString = goog.string.Const.unwrap(styleSheet);
15180
+ if (styleSheetString.length === 0) {
15181
+ return module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.EMPTY;
15182
+ }
15183
+ (0,goog.asserts.assert)(!(0,goog.string.internal.contains)(styleSheetString, "<"), "Forbidden '<' character in style sheet string: " + styleSheetString);
15184
+ return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheetString);
15216
15185
  };
15217
- goog.async.FreeList = module$contents$goog$async$FreeList_FreeList;
15218
- goog.dom.element = {};
15219
- var module$contents$goog$dom$element_isElement = function(value) {
15220
- return goog.isObject(value) && value.nodeType === goog.dom.NodeType.ELEMENT;
15221
- }, module$contents$goog$dom$element_isHtmlElement = function(value) {
15222
- return goog.isObject(value) && module$contents$goog$dom$element_isElement(value) && (!value.namespaceURI || value.namespaceURI === "http://www.w3.org/1999/xhtml");
15223
- }, module$contents$goog$dom$element_isHtmlElementOfType = function(value, tagName) {
15224
- return goog.isObject(value) && module$contents$goog$dom$element_isHtmlElement(value) && value.tagName.toUpperCase() === tagName.toString();
15186
+ module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.unwrap = function(safeStyleSheet) {
15187
+ return module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(safeStyleSheet);
15225
15188
  };
15226
- goog.dom.element.isElement = module$contents$goog$dom$element_isElement;
15227
- goog.dom.element.isHtmlElement = module$contents$goog$dom$element_isHtmlElement;
15228
- goog.dom.element.isHtmlElementOfType = module$contents$goog$dom$element_isHtmlElementOfType;
15229
- goog.dom.element.isHtmlAnchorElement = function(value) {
15230
- return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.A);
15189
+ module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.EMPTY = module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal("");
15190
+ function module$contents$goog$html$SafeStyleSheet_hasBalancedBrackets(s) {
15191
+ for (var brackets = {"(":")", "[":"]"}, expectedBrackets = [], i = 0; i < s.length; i++) {
15192
+ var ch = s[i];
15193
+ if (brackets[ch]) {
15194
+ expectedBrackets.push(brackets[ch]);
15195
+ } else if (module$contents$goog$object_contains(brackets, ch) && expectedBrackets.pop() != ch) {
15196
+ return !1;
15197
+ }
15198
+ }
15199
+ return expectedBrackets.length == 0;
15200
+ }
15201
+ goog.html.SafeStyleSheet = module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet;
15202
+ module$exports$safevalues$internals$html_impl.SafeHtml.unwrap = function(safeHtml) {
15203
+ return (0,module$exports$safevalues$for_closure$index.unwrapHtml)(safeHtml).toString();
15231
15204
  };
15232
- goog.dom.element.isHtmlButtonElement = function(value) {
15233
- return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.BUTTON);
15205
+ module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML = function(safeHtml) {
15206
+ return (0,module$exports$safevalues$for_closure$index.unwrapHtml)(safeHtml);
15234
15207
  };
15235
- goog.dom.element.isHtmlLinkElement = function(value) {
15236
- return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.LINK);
15208
+ module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape = function(textOrHtml) {
15209
+ return textOrHtml instanceof module$exports$safevalues$internals$html_impl.SafeHtml ? textOrHtml : (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(goog.string.internal.htmlEscape(String(textOrHtml)));
15237
15210
  };
15238
- goog.dom.element.isHtmlImageElement = function(value) {
15239
- return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.IMG);
15211
+ module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscapePreservingNewlines = function(textOrHtml) {
15212
+ if (textOrHtml instanceof module$exports$safevalues$internals$html_impl.SafeHtml) {
15213
+ return textOrHtml;
15214
+ }
15215
+ var html = module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape(textOrHtml);
15216
+ return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(goog.string.internal.newLineToBr(module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(html)));
15240
15217
  };
15241
- goog.dom.element.isHtmlAudioElement = function(value) {
15242
- return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.AUDIO);
15218
+ module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscapePreservingNewlinesAndSpaces = function(textOrHtml) {
15219
+ if (textOrHtml instanceof module$exports$safevalues$internals$html_impl.SafeHtml) {
15220
+ return textOrHtml;
15221
+ }
15222
+ var html = module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape(textOrHtml);
15223
+ return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(goog.string.internal.whitespaceEscape(module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(html)));
15243
15224
  };
15244
- goog.dom.element.isHtmlVideoElement = function(value) {
15245
- return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.VIDEO);
15225
+ module$exports$safevalues$internals$html_impl.SafeHtml.create = function(tagName, attributes, content) {
15226
+ module$exports$safevalues$internals$html_impl.SafeHtml.verifyTagName(String(tagName));
15227
+ return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(tagName), attributes, content);
15246
15228
  };
15247
- goog.dom.element.isHtmlInputElement = function(value) {
15248
- return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.INPUT);
15229
+ module$exports$safevalues$internals$html_impl.SafeHtml.verifyTagName = function(tagName) {
15230
+ if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(tagName)) {
15231
+ throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? "Invalid tag name <" + tagName + ">." : "");
15232
+ }
15233
+ if (tagName.toUpperCase() in module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES) {
15234
+ throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? "Tag name <" + tagName + "> is not allowed for SafeHtml." : "");
15235
+ }
15249
15236
  };
15250
- goog.dom.element.isHtmlTextAreaElement = function(value) {
15251
- return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.TEXTAREA);
15237
+ module$exports$safevalues$internals$html_impl.SafeHtml.createIframe = function(src, srcdoc, attributes, content) {
15238
+ src && module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(src);
15239
+ var fixedAttributes = {};
15240
+ fixedAttributes.src = src || null;
15241
+ fixedAttributes.srcdoc = srcdoc && module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(srcdoc);
15242
+ var combinedAttrs = module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes(fixedAttributes, {sandbox:""}, attributes);
15243
+ return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
15252
15244
  };
15253
- goog.dom.element.isHtmlCanvasElement = function(value) {
15254
- return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.CANVAS);
15245
+ module$exports$safevalues$internals$html_impl.SafeHtml.createSandboxIframe = function(src, srcdoc, attributes, content) {
15246
+ if (!module$exports$safevalues$internals$html_impl.SafeHtml.canUseSandboxIframe()) {
15247
+ throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? "The browser does not support sandboxed iframes." : "");
15248
+ }
15249
+ var fixedAttributes = {};
15250
+ fixedAttributes.src = src ? module$contents$safevalues$internals$url_impl_unwrapUrl(module$contents$safevalues$builders$url_builders_sanitizeUrl(src)) : null;
15251
+ fixedAttributes.srcdoc = srcdoc || null;
15252
+ fixedAttributes.sandbox = "";
15253
+ var combinedAttrs = module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes(fixedAttributes, {}, attributes);
15254
+ return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
15255
15255
  };
15256
- goog.dom.element.isHtmlEmbedElement = function(value) {
15257
- return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.EMBED);
15256
+ module$exports$safevalues$internals$html_impl.SafeHtml.canUseSandboxIframe = function() {
15257
+ return goog.global.HTMLIFrameElement && "sandbox" in goog.global.HTMLIFrameElement.prototype;
15258
15258
  };
15259
- goog.dom.element.isHtmlFormElement = function(value) {
15260
- return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.FORM);
15259
+ module$exports$safevalues$internals$html_impl.SafeHtml.createScriptSrc = function(src, attributes) {
15260
+ module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(src);
15261
+ var combinedAttrs = module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes({src:src}, {}, attributes);
15262
+ return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script", combinedAttrs);
15261
15263
  };
15262
- goog.dom.element.isHtmlFrameElement = function(value) {
15263
- return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.FRAME);
15264
+ module$exports$safevalues$internals$html_impl.SafeHtml.createStyle = function(styleSheet, attributes) {
15265
+ var combinedAttrs = module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes({type:"text/css"}, {}, attributes), content = "";
15266
+ styleSheet = module$contents$goog$array_concat(styleSheet);
15267
+ for (var i = 0; i < styleSheet.length; i++) {
15268
+ content += module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.unwrap(styleSheet[i]);
15269
+ }
15270
+ var htmlContent = (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(content);
15271
+ return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style", combinedAttrs, htmlContent);
15264
15272
  };
15265
- goog.dom.element.isHtmlIFrameElement = function(value) {
15266
- return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.IFRAME);
15273
+ module$exports$safevalues$internals$html_impl.SafeHtml.createMetaRefresh = function(url, secs) {
15274
+ var unwrappedUrl = module$contents$safevalues$internals$url_impl_unwrapUrl(module$contents$safevalues$builders$url_builders_sanitizeUrl(url));
15275
+ return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta", {"http-equiv":"refresh", content:(secs || 0) + "; url=" + unwrappedUrl});
15267
15276
  };
15268
- goog.dom.element.isHtmlObjectElement = function(value) {
15269
- return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.OBJECT);
15277
+ module$exports$safevalues$internals$html_impl.SafeHtml.join = function(separator, parts) {
15278
+ var separatorHtml = module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape(separator), content = [], addArgument = function(argument) {
15279
+ if (Array.isArray(argument)) {
15280
+ argument.forEach(addArgument);
15281
+ } else {
15282
+ var html = module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape(argument);
15283
+ content.push(module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(html));
15284
+ }
15285
+ };
15286
+ parts.forEach(addArgument);
15287
+ return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(content.join(module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(separatorHtml)));
15270
15288
  };
15271
- goog.dom.element.isHtmlScriptElement = function(value) {
15272
- return module$contents$goog$dom$element_isHtmlElementOfType(value, goog.dom.TagName.SCRIPT);
15289
+ module$exports$safevalues$internals$html_impl.SafeHtml.concat = function(var_args) {
15290
+ return module$exports$safevalues$internals$html_impl.SafeHtml.join(module$exports$safevalues$internals$html_impl.SafeHtml.EMPTY, Array.prototype.slice.call(arguments));
15273
15291
  };
15274
- goog.asserts.dom = {};
15275
- var module$contents$goog$asserts$dom_assertIsHtmlElement = function(value) {
15276
- module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && !module$contents$goog$dom$element_isHtmlElement(value) && goog.asserts.fail("Argument is not an HTML Element; got: " + module$contents$goog$asserts$dom_debugStringForType(value));
15277
- return value;
15278
- }, module$contents$goog$asserts$dom_assertIsHtmlElementOfType = function(value, tagName) {
15279
- module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && !module$contents$goog$dom$element_isHtmlElementOfType(value, tagName) && goog.asserts.fail("Argument is not an HTML Element with tag name " + (tagName.toString() + "; got: " + module$contents$goog$asserts$dom_debugStringForType(value)));
15280
- return value;
15281
- }, module$contents$goog$asserts$dom_assertIsHtmlAnchorElement = function(value) {
15282
- return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.A);
15283
- }, module$contents$goog$asserts$dom_assertIsHtmlLinkElement = function(value) {
15284
- return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.LINK);
15285
- }, module$contents$goog$asserts$dom_assertIsHtmlFormElement = function(value) {
15286
- return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.FORM);
15287
- }, module$contents$goog$asserts$dom_assertIsHtmlIFrameElement = function(value) {
15288
- return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.IFRAME);
15289
- }, module$contents$goog$asserts$dom_assertIsHtmlScriptElement = function(value) {
15290
- return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.SCRIPT);
15291
- }, module$contents$goog$asserts$dom_debugStringForType = function(value) {
15292
- if (goog.isObject(value)) {
15293
- try {
15294
- return value.constructor.displayName || value.constructor.name || Object.prototype.toString.call(value);
15295
- } catch (e) {
15296
- return "<object could not be stringified>";
15297
- }
15292
+ module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse = function(tagName, attributes, content) {
15293
+ var result = "<" + tagName + module$exports$safevalues$internals$html_impl.SafeHtml.stringifyAttributes(tagName, attributes);
15294
+ content == null ? content = [] : Array.isArray(content) || (content = [content]);
15295
+ if (goog.dom.tags.isVoidTag(tagName.toLowerCase())) {
15296
+ goog.asserts.assert(!content.length, "Void tag <" + tagName + "> does not allow content."), result += ">";
15298
15297
  } else {
15299
- return value === void 0 ? "undefined" : value === null ? "null" : typeof value;
15298
+ var html = module$exports$safevalues$internals$html_impl.SafeHtml.concat(content);
15299
+ result += ">" + module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(html) + "</" + tagName + ">";
15300
15300
  }
15301
+ return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(result);
15301
15302
  };
15302
- goog.asserts.dom.assertIsElement = function(value) {
15303
- module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && !module$contents$goog$dom$element_isElement(value) && goog.asserts.fail("Argument is not an Element; got: " + module$contents$goog$asserts$dom_debugStringForType(value));
15304
- return value;
15305
- };
15306
- goog.asserts.dom.assertIsHtmlElement = module$contents$goog$asserts$dom_assertIsHtmlElement;
15307
- goog.asserts.dom.assertIsHtmlElementOfType = module$contents$goog$asserts$dom_assertIsHtmlElementOfType;
15308
- goog.asserts.dom.assertIsHtmlAnchorElement = module$contents$goog$asserts$dom_assertIsHtmlAnchorElement;
15309
- goog.asserts.dom.assertIsHtmlButtonElement = function(value) {
15310
- return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.BUTTON);
15311
- };
15312
- goog.asserts.dom.assertIsHtmlLinkElement = module$contents$goog$asserts$dom_assertIsHtmlLinkElement;
15313
- goog.asserts.dom.assertIsHtmlImageElement = function(value) {
15314
- return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.IMG);
15315
- };
15316
- goog.asserts.dom.assertIsHtmlAudioElement = function(value) {
15317
- return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.AUDIO);
15318
- };
15319
- goog.asserts.dom.assertIsHtmlVideoElement = function(value) {
15320
- return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.VIDEO);
15321
- };
15322
- goog.asserts.dom.assertIsHtmlInputElement = function(value) {
15323
- return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.INPUT);
15324
- };
15325
- goog.asserts.dom.assertIsHtmlTextAreaElement = function(value) {
15326
- return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.TEXTAREA);
15327
- };
15328
- goog.asserts.dom.assertIsHtmlCanvasElement = function(value) {
15329
- return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.CANVAS);
15330
- };
15331
- goog.asserts.dom.assertIsHtmlEmbedElement = function(value) {
15332
- return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.EMBED);
15333
- };
15334
- goog.asserts.dom.assertIsHtmlFormElement = module$contents$goog$asserts$dom_assertIsHtmlFormElement;
15335
- goog.asserts.dom.assertIsHtmlFrameElement = function(value) {
15336
- return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.FRAME);
15337
- };
15338
- goog.asserts.dom.assertIsHtmlIFrameElement = module$contents$goog$asserts$dom_assertIsHtmlIFrameElement;
15339
- goog.asserts.dom.assertIsHtmlObjectElement = function(value) {
15340
- return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.OBJECT);
15341
- };
15342
- goog.asserts.dom.assertIsHtmlScriptElement = module$contents$goog$asserts$dom_assertIsHtmlScriptElement;
15343
- goog.dom.asserts = {};
15344
- goog.dom.asserts.assertIsLocation = function(o) {
15345
- if (module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS) {
15346
- var win = goog.dom.asserts.getWindow_(o);
15347
- win && (!o || !(o instanceof win.Location) && o instanceof win.Element) && goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s", goog.dom.asserts.debugStringForType_(o));
15303
+ module$exports$safevalues$internals$html_impl.SafeHtml.stringifyAttributes = function(tagName, attributes) {
15304
+ var result = "";
15305
+ if (attributes) {
15306
+ for (var name in attributes) {
15307
+ if (Object.prototype.hasOwnProperty.call(attributes, name)) {
15308
+ if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(name)) {
15309
+ throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Invalid attribute name "' + name + '".' : "");
15310
+ }
15311
+ var value = attributes[name];
15312
+ value != null && (result += " " + module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value));
15313
+ }
15314
+ }
15348
15315
  }
15349
- return o;
15316
+ return result;
15350
15317
  };
15351
- goog.dom.asserts.debugStringForType_ = function(value) {
15352
- if (goog.isObject(value)) {
15353
- try {
15354
- return value.constructor.displayName || value.constructor.name || Object.prototype.toString.call(value);
15355
- } catch (e) {
15356
- return "<object could not be stringified>";
15318
+ module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes = function(fixedAttributes, defaultAttributes, attributes) {
15319
+ var combinedAttributes = {}, name;
15320
+ for (name in fixedAttributes) {
15321
+ Object.prototype.hasOwnProperty.call(fixedAttributes, name) && (goog.asserts.assert(name.toLowerCase() == name, "Must be lower case"), combinedAttributes[name] = fixedAttributes[name]);
15322
+ }
15323
+ for (var name$jscomp$0 in defaultAttributes) {
15324
+ Object.prototype.hasOwnProperty.call(defaultAttributes, name$jscomp$0) && (goog.asserts.assert(name$jscomp$0.toLowerCase() == name$jscomp$0, "Must be lower case"), combinedAttributes[name$jscomp$0] = defaultAttributes[name$jscomp$0]);
15325
+ }
15326
+ if (attributes) {
15327
+ for (var name$jscomp$1 in attributes) {
15328
+ if (Object.prototype.hasOwnProperty.call(attributes, name$jscomp$1)) {
15329
+ var nameLower = name$jscomp$1.toLowerCase();
15330
+ if (nameLower in fixedAttributes) {
15331
+ throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Cannot override "' + nameLower + '" attribute, got "' + name$jscomp$1 + '" with value "' + attributes[name$jscomp$1] + '"' : "");
15332
+ }
15333
+ nameLower in defaultAttributes && delete combinedAttributes[nameLower];
15334
+ combinedAttributes[name$jscomp$1] = attributes[name$jscomp$1];
15335
+ }
15357
15336
  }
15358
- } else {
15359
- return value === void 0 ? "undefined" : value === null ? "null" : typeof value;
15360
15337
  }
15338
+ return combinedAttributes;
15361
15339
  };
15362
- goog.dom.asserts.getWindow_ = function(o) {
15363
- try {
15364
- var doc = o && o.ownerDocument, win = doc && (doc.defaultView || doc.parentWindow);
15365
- win = win || goog.global;
15366
- if (win.Element && win.Location) {
15367
- return win;
15340
+ module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES = goog.DEBUG;
15341
+ module$exports$safevalues$internals$html_impl.SafeHtml.SUPPORT_STYLE_ATTRIBUTE = !0;
15342
+ module$exports$safevalues$internals$html_impl.SafeHtml.from = module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape;
15343
+ var module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG = /^[a-zA-Z0-9-]+$/, module$contents$goog$html$SafeHtml_URL_ATTRIBUTES = {action:!0, cite:!0, data:!0, formaction:!0, href:!0, manifest:!0, poster:!0, src:!0}, module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES = module$contents$goog$object_createSet(goog.dom.TagName.APPLET, goog.dom.TagName.BASE, goog.dom.TagName.EMBED, goog.dom.TagName.IFRAME, goog.dom.TagName.LINK, goog.dom.TagName.MATH, goog.dom.TagName.META, goog.dom.TagName.OBJECT,
15344
+ goog.dom.TagName.SCRIPT, goog.dom.TagName.STYLE, goog.dom.TagName.SVG, goog.dom.TagName.TEMPLATE);
15345
+ function module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value) {
15346
+ if (value instanceof goog.string.Const) {
15347
+ value = goog.string.Const.unwrap(value);
15348
+ } else if (name.toLowerCase() == "style") {
15349
+ if (module$exports$safevalues$internals$html_impl.SafeHtml.SUPPORT_STYLE_ATTRIBUTE) {
15350
+ value = module$contents$goog$html$SafeHtml_getStyleValue(value);
15351
+ } else {
15352
+ throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "style" not supported.' : "");
15353
+ }
15354
+ } else {
15355
+ if (/^on/i.test(name)) {
15356
+ throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" requires goog.string.Const value, "' + value + '" given.' : "");
15357
+ }
15358
+ if (name.toLowerCase() in module$contents$goog$html$SafeHtml_URL_ATTRIBUTES) {
15359
+ if (value instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl) {
15360
+ value = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(value);
15361
+ } else if (value instanceof module$exports$safevalues$internals$url_impl.SafeUrl) {
15362
+ value = module$contents$safevalues$internals$url_impl_unwrapUrl(value);
15363
+ } else if (typeof value === "string") {
15364
+ value = module$contents$safevalues$builders$url_builders_sanitizeUrl(value).toString();
15365
+ } else {
15366
+ throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" on tag "' + tagName + '" requires safevalues.SafeUrl, goog.string.Const, or string, value "' + value + '" given.' : "");
15367
+ }
15368
15368
  }
15369
- } catch (ex) {
15370
15369
  }
15371
- return null;
15372
- };
15370
+ goog.asserts.assert(value instanceof module$exports$safevalues$internals$url_impl.SafeUrl || value instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl || value instanceof module$exports$safevalues$internals$style_impl.SafeStyle || value instanceof module$exports$safevalues$internals$html_impl.SafeHtml || typeof value === "string" || typeof value === "number", "String or number value expected, got " +
15371
+ typeof value + " with value: " + value);
15372
+ return name + '="' + goog.string.internal.htmlEscape(String(value)) + '"';
15373
+ }
15374
+ function module$contents$goog$html$SafeHtml_getStyleValue(value) {
15375
+ if (!goog.isObject(value)) {
15376
+ throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'The "style" attribute requires goog.html.SafeStyle or map of style properties, ' + typeof value + " given: " + value : "");
15377
+ }
15378
+ value instanceof module$exports$safevalues$internals$style_impl.SafeStyle || (value = module$exports$safevalues$internals$style_impl.SafeStyle.create(value));
15379
+ return module$exports$safevalues$internals$style_impl.SafeStyle.unwrap(value);
15380
+ }
15381
+ module$exports$safevalues$internals$html_impl.SafeHtml.DOCTYPE_HTML = function() {
15382
+ return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)("<!DOCTYPE html>");
15383
+ }();
15384
+ module$exports$safevalues$internals$html_impl.SafeHtml.EMPTY = module$exports$safevalues$for_closure$index.EMPTY_HTML;
15385
+ module$exports$safevalues$internals$html_impl.SafeHtml.BR = function() {
15386
+ return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)("<br>");
15387
+ }();
15388
+ goog.html.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
15373
15389
  var module$exports$safevalues$for_friends$index = {}, module$contents$safevalues$for_friends$index_module = module$contents$safevalues$for_friends$index_module || {id:"third_party/javascript/safevalues/for_friends/index.closure.js"};
15374
15390
  module$exports$safevalues$for_friends$index.IS_NOT_JAVASCRIPT_URL_PATTERN = module$exports$safevalues$builders$url_builders.IS_NOT_JAVASCRIPT_URL_PATTERN;
15375
15391
  module$exports$safevalues$for_friends$index.unwrapUrlOrSanitize = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize;
@@ -16263,6 +16279,9 @@ function module$contents$safevalues$builders$html_sanitizer$css$sanitizer_saniti
16263
16279
  return (new module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer(propertyAllowlist, functionAllowlist, resourceUrlPolicy, !1, propertyDiscarders)).sanitizeStyleAttribute(cssText);
16264
16280
  }
16265
16281
  module$exports$safevalues$builders$html_sanitizer$css$sanitizer.sanitizeStyleAttribute = module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute;
16282
+ var module$exports$safevalues$builders$html_sanitizer$css$css_isolation = {}, module$contents$safevalues$builders$html_sanitizer$css$css_isolation_module = module$contents$safevalues$builders$html_sanitizer$css$css_isolation_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/css/css_isolation.closure.js"};
16283
+ module$exports$safevalues$builders$html_sanitizer$css$css_isolation.CSS_ISOLATION_PROPERTIES = "display:inline-block;clip-path:inset(0);overflow:hidden;vertical-align:top;text-decoration:inherit";
16284
+ module$exports$safevalues$builders$html_sanitizer$css$css_isolation.CSS_ISOLATION_STYLESHEET = ":host{" + module$exports$safevalues$builders$html_sanitizer$css$css_isolation.CSS_ISOLATION_PROPERTIES + "}";
16266
16285
  var module$contents$safevalues$builders$html_sanitizer$inert_fragment_module = module$contents$safevalues$builders$html_sanitizer$inert_fragment_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/inert_fragment.closure.js"};
16267
16286
  function module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(dirtyHtml, inertDocument) {
16268
16287
  if (goog.DEBUG && inertDocument.defaultView) {
@@ -16368,7 +16387,6 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
16368
16387
  this.styleElementSanitizer = styleElementSanitizer;
16369
16388
  this.styleAttributeSanitizer = styleAttributeSanitizer;
16370
16389
  this.resourceUrlPolicy = resourceUrlPolicy;
16371
- this.SHADOW_DOM_INTERNAL_CSS = ":host{display:block;clip-path:inset(0);overflow:hidden}";
16372
16390
  this.changes = [];
16373
16391
  module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
16374
16392
  };
@@ -16390,7 +16408,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
16390
16408
  };
16391
16409
  module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeWithCssToFragment = function(htmlWithCss, inertDocument) {
16392
16410
  var elem = document.createElement("safevalues-with-css"), shadow = elem.attachShadow({mode:"closed"}), sanitized = this.sanitizeToFragmentInternal(htmlWithCss, inertDocument), internalStyle = document.createElement("style");
16393
- internalStyle.textContent = this.SHADOW_DOM_INTERNAL_CSS;
16411
+ internalStyle.textContent = module$exports$safevalues$builders$html_sanitizer$css$css_isolation.CSS_ISOLATION_STYLESHEET;
16394
16412
  internalStyle.id = "safevalues-internal-style";
16395
16413
  shadow.appendChild(internalStyle);
16396
16414
  shadow.appendChild(sanitized);
@@ -17019,7 +17037,7 @@ module$exports$safevalues$index.EMPTY_HTML = module$exports$safevalues$internals
17019
17037
  module$exports$safevalues$index.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
17020
17038
  module$exports$safevalues$index.isHtml = module$exports$safevalues$internals$html_impl.isHtml;
17021
17039
  module$exports$safevalues$index.unwrapHtml = module$exports$safevalues$internals$html_impl.unwrapHtml;
17022
- module$exports$safevalues$index.TrustedResourceUrl = goog.html.TrustedResourceUrl;
17040
+ module$exports$safevalues$index.TrustedResourceUrl = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl;
17023
17041
  module$exports$safevalues$index.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
17024
17042
  module$exports$safevalues$index.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
17025
17043
  module$exports$safevalues$index.EMPTY_SCRIPT = module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT;
@@ -17029,7 +17047,7 @@ module$exports$safevalues$index.unwrapScript = module$contents$safevalues$intern
17029
17047
  module$exports$safevalues$index.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
17030
17048
  module$exports$safevalues$index.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
17031
17049
  module$exports$safevalues$index.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
17032
- module$exports$safevalues$index.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
17050
+ module$exports$safevalues$index.SafeStyleSheet = module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet;
17033
17051
  module$exports$safevalues$index.isStyleSheet = module$contents$safevalues$internals$style_sheet_impl_isStyleSheet;
17034
17052
  module$exports$safevalues$index.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
17035
17053
  module$exports$safevalues$index.ABOUT_BLANK = module$exports$safevalues$internals$url_impl.ABOUT_BLANK;
@@ -17041,7 +17059,7 @@ module$exports$safevalues$index.reportOnlyHtmlPassthrough = module$contents$safe
17041
17059
  goog.dom.safe = {};
17042
17060
  goog.dom.safe.InsertAdjacentHtmlPosition = {AFTERBEGIN:"afterbegin", AFTEREND:"afterend", BEFOREBEGIN:"beforebegin", BEFOREEND:"beforeend"};
17043
17061
  goog.dom.safe.insertAdjacentHtml = function(node, position, html) {
17044
- node.insertAdjacentHTML(position, module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html));
17062
+ node.insertAdjacentHTML(position, module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(html));
17045
17063
  };
17046
17064
  goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_ = {MATH:!0, SCRIPT:!0, STYLE:!0, SVG:!0, TEMPLATE:!0};
17047
17065
  goog.dom.safe.isInnerHtmlCleanupRecursive_ = goog.functions.cacheReturnValue(function() {
@@ -17055,7 +17073,7 @@ goog.dom.safe.isInnerHtmlCleanupRecursive_ = goog.functions.cacheReturnValue(fun
17055
17073
  return !1;
17056
17074
  }
17057
17075
  var innerChild = div.firstChild.firstChild;
17058
- div.innerHTML = module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(module$contents$goog$html$SafeHtml_SafeHtml.EMPTY);
17076
+ div.innerHTML = module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(module$exports$safevalues$internals$html_impl.SafeHtml.EMPTY);
17059
17077
  return !innerChild.parentElement;
17060
17078
  });
17061
17079
  goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse = function(elem, html) {
@@ -17064,7 +17082,7 @@ goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse = function(elem, html) {
17064
17082
  elem.removeChild(elem.lastChild);
17065
17083
  }
17066
17084
  }
17067
- elem.innerHTML = module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html);
17085
+ elem.innerHTML = module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(html);
17068
17086
  };
17069
17087
  goog.dom.safe.setInnerHtml = function(elem, html) {
17070
17088
  if (module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && elem.tagName && goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[elem.tagName.toUpperCase()]) {
@@ -17076,13 +17094,13 @@ goog.dom.safe.setInnerHtmlFromConstant = function(element, constHtml) {
17076
17094
  goog.dom.safe.setInnerHtml(element, module$contents$safevalues$restricted$reviewed_htmlSafeByReview(goog.string.Const.unwrap(constHtml), {justification:"Constant HTML to be immediatelly used."}));
17077
17095
  };
17078
17096
  goog.dom.safe.setOuterHtml = function(elem, html) {
17079
- elem.outerHTML = module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html);
17097
+ elem.outerHTML = module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(html);
17080
17098
  };
17081
17099
  goog.dom.safe.setFormElementAction = function(form, url) {
17082
17100
  module$contents$goog$asserts$dom_assertIsHtmlFormElement(form).action = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
17083
17101
  };
17084
17102
  goog.dom.safe.documentWrite = function(doc, html) {
17085
- doc.write(module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html));
17103
+ doc.write(module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(html));
17086
17104
  };
17087
17105
  goog.dom.safe.setAnchorHref = function(anchor, url) {
17088
17106
  module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(anchor);
@@ -17090,24 +17108,24 @@ goog.dom.safe.setAnchorHref = function(anchor, url) {
17090
17108
  };
17091
17109
  goog.dom.safe.setIframeSrc = function(iframe, url) {
17092
17110
  module$contents$goog$asserts$dom_assertIsHtmlIFrameElement(iframe);
17093
- iframe.src = goog.html.TrustedResourceUrl.unwrap(url);
17111
+ iframe.src = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(url);
17094
17112
  };
17095
17113
  goog.dom.safe.setLinkHrefAndRel = function(link, url, rel) {
17096
17114
  module$contents$goog$asserts$dom_assertIsHtmlLinkElement(link);
17097
17115
  link.rel = rel;
17098
17116
  if (goog.string.internal.caseInsensitiveContains(rel, "stylesheet")) {
17099
- goog.asserts.assert(url instanceof goog.html.TrustedResourceUrl, 'URL must be TrustedResourceUrl because "rel" contains "stylesheet"');
17100
- link.href = goog.html.TrustedResourceUrl.unwrap(url);
17117
+ goog.asserts.assert(url instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl, 'URL must be TrustedResourceUrl because "rel" contains "stylesheet"');
17118
+ link.href = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(url);
17101
17119
  var nonce = goog.dom.safe.getStyleNonce(link.ownerDocument && link.ownerDocument.defaultView);
17102
17120
  nonce && link.setAttribute("nonce", nonce);
17103
17121
  } else {
17104
- link.href = url instanceof goog.html.TrustedResourceUrl ? goog.html.TrustedResourceUrl.unwrap(url) : goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
17122
+ link.href = url instanceof module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl ? module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(url) : goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
17105
17123
  }
17106
17124
  };
17107
17125
  goog.dom.safe.setScriptSrc = function(script, url) {
17108
17126
  module$contents$goog$asserts$dom_assertIsHtmlScriptElement(script);
17109
17127
  goog.dom.safe.setNonceForScriptElement_(script);
17110
- script.src = goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(url);
17128
+ script.src = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrapTrustedScriptURL(url);
17111
17129
  };
17112
17130
  goog.dom.safe.setNonceForScriptElement_ = function(script) {
17113
17131
  var nonce = goog.dom.safe.getScriptNonce(script.ownerDocument && script.ownerDocument.defaultView);
@@ -17132,7 +17150,7 @@ goog.dom.safe.parseFromStringHtml = function(parser, html) {
17132
17150
  return goog.dom.safe.parseFromString(parser, html, "text/html");
17133
17151
  };
17134
17152
  goog.dom.safe.parseFromString = function(parser, content, type) {
17135
- return parser.parseFromString(module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(content), type);
17153
+ return parser.parseFromString(module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML(content), type);
17136
17154
  };
17137
17155
  goog.dom.safe.createImageFromBlob = function(blob) {
17138
17156
  if (!/^image\/.*/g.test(blob.type)) {
@@ -17458,7 +17476,7 @@ goog.dom.getWindow = function(opt_doc) {
17458
17476
  return opt_doc ? goog.dom.getWindow_(opt_doc) : window;
17459
17477
  };
17460
17478
  goog.dom.getWindow_ = function(doc) {
17461
- return doc.parentWindow || doc.defaultView;
17479
+ return doc.defaultView;
17462
17480
  };
17463
17481
  goog.dom.createDom = function(tagName, opt_attributes, var_args) {
17464
17482
  return goog.dom.createDom_(document, arguments);
@@ -19052,7 +19070,7 @@ goog.net.jsloader.safeLoadMany = function(trustedUris, opt_options) {
19052
19070
  return goog.net.jsloader.scriptLoadingDeferred_;
19053
19071
  };
19054
19072
  goog.net.jsloader.safeLoad = function(trustedUri, opt_options) {
19055
- var options = opt_options || {}, doc = options.document || document, uri = goog.html.TrustedResourceUrl.unwrap(trustedUri), script = (new goog.dom.DomHelper(doc)).createElement(goog.dom.TagName.SCRIPT), request = {script_:script, timeout_:void 0}, deferred = new goog.async.Deferred(goog.net.jsloader.cancel_, request), timeout = null, timeoutDuration = options.timeout != null ? options.timeout : goog.net.jsloader.DEFAULT_TIMEOUT;
19073
+ var options = opt_options || {}, doc = options.document || document, uri = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(trustedUri), script = (new goog.dom.DomHelper(doc)).createElement(goog.dom.TagName.SCRIPT), request = {script_:script, timeout_:void 0}, deferred = new goog.async.Deferred(goog.net.jsloader.cancel_, request), timeout = null, timeoutDuration = options.timeout != null ? options.timeout : goog.net.jsloader.DEFAULT_TIMEOUT;
19056
19074
  timeoutDuration > 0 && (timeout = window.setTimeout(function() {
19057
19075
  goog.net.jsloader.cleanup_(script, !0);
19058
19076
  deferred.errback(new goog.net.jsloader.Error(goog.net.jsloader.ErrorCode.TIMEOUT, "Timeout reached for loading script " + uri));
@@ -19073,7 +19091,7 @@ goog.net.jsloader.safeLoad = function(trustedUri, opt_options) {
19073
19091
  };
19074
19092
  goog.net.jsloader.safeLoadAndVerify = function(trustedUri, verificationObjName, options) {
19075
19093
  goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_] || (goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_] = {});
19076
- var verifyObjs = goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_], uri = goog.html.TrustedResourceUrl.unwrap(trustedUri);
19094
+ var verifyObjs = goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_], uri = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl.unwrap(trustedUri);
19077
19095
  if (verifyObjs[verificationObjName] !== void 0) {
19078
19096
  return goog.async.Deferred.fail(new goog.net.jsloader.Error(goog.net.jsloader.ErrorCode.VERIFY_OBJECT_ALREADY_EXISTS, "Verification object " + verificationObjName + " already defined."));
19079
19097
  }
@@ -19787,10 +19805,10 @@ safevalues.Scheme = module$exports$safevalues$index.Scheme;
19787
19805
  safevalues.SafeAttributePrefix = module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix;
19788
19806
  safevalues.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
19789
19807
  safevalues.EMPTY_HTML = module$exports$safevalues$index.EMPTY_HTML;
19790
- safevalues.SafeHtml = module$exports$safevalues$index.SafeHtml;
19808
+ safevalues.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
19791
19809
  safevalues.isHtml = module$exports$safevalues$index.isHtml;
19792
19810
  safevalues.unwrapHtml = module$exports$safevalues$index.unwrapHtml;
19793
- safevalues.TrustedResourceUrl = goog.html.TrustedResourceUrl;
19811
+ safevalues.TrustedResourceUrl = module$contents$goog$html$TrustedResourceUrl_TrustedResourceUrl;
19794
19812
  safevalues.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
19795
19813
  safevalues.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
19796
19814
  safevalues.EMPTY_SCRIPT = module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT;
@@ -19800,7 +19818,7 @@ safevalues.unwrapScript = module$contents$safevalues$internals$script_impl_unwra
19800
19818
  safevalues.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
19801
19819
  safevalues.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
19802
19820
  safevalues.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
19803
- safevalues.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
19821
+ safevalues.SafeStyleSheet = module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet;
19804
19822
  safevalues.isStyleSheet = module$contents$safevalues$internals$style_sheet_impl_isStyleSheet;
19805
19823
  safevalues.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
19806
19824
  safevalues.ABOUT_BLANK = module$exports$safevalues$internals$url_impl.ABOUT_BLANK;
@@ -19813,7 +19831,7 @@ var $jscomp$templatelit$m1153655765$99 = $jscomp.createTemplateTagFirstArg(["htt
19813
19831
  ee.apiclient = {};
19814
19832
  var module$contents$ee$apiclient_apiclient = {};
19815
19833
  ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
19816
- ee.apiclient.API_CLIENT_VERSION = "0.1.417";
19834
+ ee.apiclient.API_CLIENT_VERSION = "0.1.418";
19817
19835
  ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
19818
19836
  ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
19819
19837
  ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
@@ -20111,8 +20129,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
20111
20129
  var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
20112
20130
  body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
20113
20131
  method = method || "POST";
20114
- var headers = {"Content-Type":contentType}, version = "0.1.417";
20115
- version === "0.1.417" && (version = "latest");
20132
+ var headers = {"Content-Type":contentType}, version = "0.1.418";
20133
+ version === "0.1.418" && (version = "latest");
20116
20134
  headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
20117
20135
  var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
20118
20136
  if (authToken != null) {
@@ -26183,7 +26201,7 @@ goog.style.uninstallStyles = function(styleSheet) {
26183
26201
  goog.dom.removeNode(styleSheet.ownerNode || styleSheet.owningElement || styleSheet);
26184
26202
  };
26185
26203
  goog.style.setSafeStyleSheet = function(element, safeStyleSheet) {
26186
- var stylesString = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(safeStyleSheet);
26204
+ var stylesString = module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.unwrap(safeStyleSheet);
26187
26205
  goog.global.trustedTypes ? goog.dom.setTextContent(element, stylesString) : element.innerHTML = stylesString;
26188
26206
  };
26189
26207
  goog.style.setPreWrap = function(el) {