@konstructio/ui
Version:
A set of reusable and customizable React components built for konstruct.io
850 lines • 1.94 MB
JavaScript
import { i as __require, t as __commonJSMin } from "./chunk-cI0lbGMq.js";
var require_libphonenumber = /* @__PURE__ */ __commonJSMin(((exports, module) => {
(function(t) {
if (typeof exports == "object" && typeof module < "u") module.exports = t();
else if (typeof define == "function" && define.amd) define([], t);
else {
var o;
typeof window < "u" ? o = window : typeof global < "u" ? o = global : typeof self < "u" ? o = self : o = this, o.libphonenumber = t();
}
})(function() {
var define, module$1, exports$1;
return (/* @__PURE__ */ (function() {
function t(o, r, n) {
function i(l, p) {
if (!r[l]) {
if (!o[l]) {
var m = typeof __require == "function" && __require;
if (!p && m) return m(l, !0);
if (s) return s(l, !0);
var _ = /* @__PURE__ */ new Error("Cannot find module '" + l + "'");
throw _.code = "MODULE_NOT_FOUND", _;
}
var h = r[l] = { exports: {} };
o[l][0].call(h.exports, function($) {
var N = o[l][1][$];
return i(N || $);
}, h, h.exports, t, o, r, n);
}
return r[l].exports;
}
for (var s = typeof __require == "function" && __require, u = 0; u < n.length; u++) i(n[u]);
return i;
}
return t;
})())({ 1: [function(require, module$2, exports$2) {
(function(global) {
(function() {
var $jscomp = $jscomp || {};
$jscomp.scope = {}, $jscomp.createTemplateTagFirstArg = function(t) {
return t.raw = t;
}, $jscomp.createTemplateTagFirstArgWithRaw = function(t, o) {
return t.raw = o, t;
}, $jscomp.arrayIteratorImpl = function(t) {
var o = 0;
return function() {
return o < t.length ? {
done: !1,
value: t[o++]
} : { done: !0 };
};
}, $jscomp.arrayIterator = function(t) {
return { next: $jscomp.arrayIteratorImpl(t) };
}, $jscomp.makeIterator = function(t) {
var o = typeof Symbol < "u" && Symbol.iterator && t[Symbol.iterator];
return o ? o.call(t) : $jscomp.arrayIterator(t);
}, $jscomp.arrayFromIterator = function(t) {
for (var o, r = []; !(o = t.next()).done; ) r.push(o.value);
return r;
}, $jscomp.arrayFromIterable = function(t) {
return t instanceof Array ? t : $jscomp.arrayFromIterator($jscomp.makeIterator(t));
}, $jscomp.checkStringArgs = function(t, o, r) {
if (t == null) throw new TypeError("The 'this' value for String.prototype." + r + " must not be null or undefined");
if (o instanceof RegExp) throw new TypeError("First argument to String.prototype." + r + " must not be a regular expression");
return t + "";
}, $jscomp.ASSUME_ES5 = !1, $jscomp.ASSUME_NO_NATIVE_MAP = !1, $jscomp.ASSUME_NO_NATIVE_SET = !1, $jscomp.SIMPLE_FROUND_POLYFILL = !1, $jscomp.ISOLATE_POLYFILLS = !1, $jscomp.FORCE_POLYFILL_PROMISE = !1, $jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION = !1, $jscomp.defineProperty = $jscomp.ASSUME_ES5 || typeof Object.defineProperties == "function" ? Object.defineProperty : function(t, o, r) {
return t == Array.prototype || t == Object.prototype || (t[o] = r.value), t;
}, $jscomp.getGlobal = function(t) {
t = [
typeof globalThis == "object" && globalThis,
t,
typeof window == "object" && window,
typeof self == "object" && self,
typeof global == "object" && global
];
for (var o = 0; o < t.length; ++o) {
var r = t[o];
if (r && r.Math == Math) return r;
}
throw Error("Cannot find global object");
}, $jscomp.global = $jscomp.getGlobal(this), $jscomp.IS_SYMBOL_NATIVE = typeof Symbol == "function" && typeof /* @__PURE__ */ Symbol("x") == "symbol", $jscomp.TRUST_ES6_POLYFILLS = !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE, $jscomp.polyfills = {}, $jscomp.propertyToPolyfillSymbol = {}, $jscomp.POLYFILL_PREFIX = "$jscp$";
var $jscomp$lookupPolyfilledValue = function(t, o) {
var r = $jscomp.propertyToPolyfillSymbol[o];
return r == null ? t[o] : (r = t[r], r !== void 0 ? r : t[o]);
};
$jscomp.polyfill = function(t, o, r, n) {
o && ($jscomp.ISOLATE_POLYFILLS ? $jscomp.polyfillIsolated(t, o, r, n) : $jscomp.polyfillUnisolated(t, o, r, n));
}, $jscomp.polyfillUnisolated = function(t, o, r, n) {
for (r = $jscomp.global, t = t.split("."), n = 0; n < t.length - 1; n++) {
var i = t[n];
if (!(i in r)) return;
r = r[i];
}
t = t[t.length - 1], n = r[t], o = o(n), o != n && o != null && $jscomp.defineProperty(r, t, {
configurable: !0,
writable: !0,
value: o
});
}, $jscomp.polyfillIsolated = function(t, o, r, n) {
var i = t.split(".");
t = i.length === 1, n = i[0], n = !t && n in $jscomp.polyfills ? $jscomp.polyfills : $jscomp.global;
for (var s = 0; s < i.length - 1; s++) {
var u = i[s];
if (!(u in n)) return;
n = n[u];
}
i = i[i.length - 1], r = $jscomp.IS_SYMBOL_NATIVE && r === "es6" ? n[i] : null, o = o(r), o != null && (t ? $jscomp.defineProperty($jscomp.polyfills, i, {
configurable: !0,
writable: !0,
value: o
}) : o !== r && ($jscomp.propertyToPolyfillSymbol[i] = $jscomp.IS_SYMBOL_NATIVE ? $jscomp.global.Symbol(i) : $jscomp.POLYFILL_PREFIX + i, i = $jscomp.propertyToPolyfillSymbol[i], $jscomp.defineProperty(n, i, {
configurable: !0,
writable: !0,
value: o
})));
}, $jscomp.polyfill("String.prototype.endsWith", function(t) {
return t || function(o, r) {
var n = $jscomp.checkStringArgs(this, o, "endsWith");
o += "", r === void 0 && (r = n.length), r = Math.max(0, Math.min(r | 0, n.length));
for (var i = o.length; 0 < i && 0 < r; ) if (n[--r] != o[--i]) return !1;
return 0 >= i;
};
}, "es6", "es3"), $jscomp.findInternal = function(t, o, r) {
t instanceof String && (t = String(t));
for (var n = t.length, i = 0; i < n; i++) {
var s = t[i];
if (o.call(r, s, i, t)) return {
i,
v: s
};
}
return {
i: -1,
v: void 0
};
}, $jscomp.polyfill("Array.prototype.find", function(t) {
return t || function(o, r) {
return $jscomp.findInternal(this, o, r).v;
};
}, "es6", "es3"), $jscomp.polyfill("String.prototype.startsWith", function(t) {
return t || function(o, r) {
var n = $jscomp.checkStringArgs(this, o, "startsWith");
o += "";
var i = n.length, s = o.length;
r = Math.max(0, Math.min(r | 0, n.length));
for (var u = 0; u < s && r < i; ) if (n[r++] != o[u++]) return !1;
return u >= s;
};
}, "es6", "es3"), $jscomp.polyfill("String.prototype.repeat", function(t) {
return t || function(o) {
var r = $jscomp.checkStringArgs(this, null, "repeat");
if (0 > o || 1342177279 < o) throw new RangeError("Invalid count value");
o |= 0;
for (var n = ""; o; ) o & 1 && (n += r), (o >>>= 1) && (r += r);
return n;
};
}, "es6", "es3"), $jscomp.initSymbol = function() {
}, $jscomp.polyfill("Symbol", function(t) {
if (t) return t;
var o = function(i, s) {
this.$jscomp$symbol$id_ = i, $jscomp.defineProperty(this, "description", {
configurable: !0,
writable: !0,
value: s
});
};
o.prototype.toString = function() {
return this.$jscomp$symbol$id_;
};
var r = 0, n = function(i) {
if (this instanceof n) throw new TypeError("Symbol is not a constructor");
return new o("jscomp_symbol_" + (i || "") + "_" + r++, i);
};
return n;
}, "es6", "es3"), $jscomp.polyfill("Symbol.iterator", function(t) {
if (t) return t;
t = /* @__PURE__ */ Symbol("Symbol.iterator");
for (var o = "Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "), r = 0; r < o.length; r++) {
var n = $jscomp.global[o[r]];
typeof n == "function" && typeof n.prototype[t] != "function" && $jscomp.defineProperty(n.prototype, t, {
configurable: !0,
writable: !0,
value: function() {
return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this));
}
});
}
return t;
}, "es6", "es3"), $jscomp.iteratorPrototype = function(t) {
return t = { next: t }, t[Symbol.iterator] = function() {
return this;
}, t;
}, $jscomp.iteratorFromArray = function(t, o) {
t instanceof String && (t += "");
var r = 0, n = !1, i = { next: function() {
if (!n && r < t.length) {
var s = r++;
return {
value: o(s, t[s]),
done: !1
};
}
return n = !0, {
done: !0,
value: void 0
};
} };
return i[Symbol.iterator] = function() {
return i;
}, i;
}, $jscomp.polyfill("Array.prototype.keys", function(t) {
return t || function() {
return $jscomp.iteratorFromArray(this, function(o) {
return o;
});
};
}, "es6", "es3"), $jscomp.polyfill("Object.is", function(t) {
return t || function(o, r) {
return o === r ? o !== 0 || 1 / o === 1 / r : o !== o && r !== r;
};
}, "es6", "es3"), $jscomp.polyfill("Array.prototype.includes", function(t) {
return t || function(o, r) {
var n = this;
n instanceof String && (n = String(n));
var i = n.length;
for (r = r || 0, 0 > r && (r = Math.max(r + i, 0)); r < i; r++) {
var s = n[r];
if (s === o || Object.is(s, o)) return !0;
}
return !1;
};
}, "es7", "es3"), $jscomp.polyfill("String.prototype.includes", function(t) {
return t || function(o, r) {
return $jscomp.checkStringArgs(this, o, "includes").indexOf(o, r || 0) !== -1;
};
}, "es6", "es3");
var COMPILED = !0, goog = goog || {};
goog.global = this || self, goog.exportPath_ = function(t, o, r, n) {
t = t.split("."), n = n || goog.global, t[0] in n || typeof n.execScript > "u" || n.execScript("var " + t[0]);
for (var i; t.length && (i = t.shift()); ) if (t.length || o === void 0) n = n[i] && n[i] !== Object.prototype[i] ? n[i] : n[i] = {};
else if (!r && goog.isObject(o) && goog.isObject(n[i])) for (var s in o) o.hasOwnProperty(s) && (n[i][s] = o[s]);
else n[i] = o;
}, goog.define = function(t, o) {
if (!COMPILED) {
var r = goog.global.CLOSURE_UNCOMPILED_DEFINES, n = goog.global.CLOSURE_DEFINES;
r && r.nodeType === void 0 && Object.prototype.hasOwnProperty.call(r, t) ? o = r[t] : n && n.nodeType === void 0 && Object.prototype.hasOwnProperty.call(n, t) && (o = n[t]);
}
return o;
}, goog.FEATURESET_YEAR = 2012, goog.DEBUG = !0, goog.LOCALE = "en", goog.TRUSTED_SITE = !0, goog.DISALLOW_TEST_ONLY_CODE = COMPILED && !goog.DEBUG, goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING = !1, goog.provide = function(t) {
if (goog.isInModuleLoader_()) throw Error("goog.provide cannot be used within a module.");
if (!COMPILED && goog.isProvided_(t)) throw Error('Namespace "' + t + '" already declared.');
goog.constructNamespace_(t);
}, goog.constructNamespace_ = function(t, o, r) {
if (!COMPILED) {
delete goog.implicitNamespaces_[t];
for (var n = t; (n = n.substring(0, n.lastIndexOf("."))) && !goog.getObjectByName(n); ) goog.implicitNamespaces_[n] = !0;
}
goog.exportPath_(t, o, r);
}, goog.getScriptNonce = function(t) {
return t && t != goog.global ? goog.getScriptNonce_(t.document) : (goog.cspNonce_ === null && (goog.cspNonce_ = goog.getScriptNonce_(goog.global.document)), goog.cspNonce_);
}, goog.NONCE_PATTERN_ = /^[\w+/_-]+[=]{0,2}$/, goog.cspNonce_ = null, goog.getScriptNonce_ = function(t) {
return (t = t.querySelector && t.querySelector("script[nonce]")) && (t = t.nonce || t.getAttribute("nonce")) && goog.NONCE_PATTERN_.test(t) ? t : "";
}, goog.VALID_MODULE_RE_ = /^[a-zA-Z_$][a-zA-Z0-9._$]*$/, goog.module = function(t) {
if (typeof t != "string" || !t || t.search(goog.VALID_MODULE_RE_) == -1) throw Error("Invalid module identifier");
if (!goog.isInGoogModuleLoader_()) throw Error("Module " + t + " has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");
if (goog.moduleLoaderState_.moduleName) throw Error("goog.module may only be called once per module.");
if (goog.moduleLoaderState_.moduleName = t, !COMPILED) {
if (goog.isProvided_(t)) throw Error('Namespace "' + t + '" already declared.');
delete goog.implicitNamespaces_[t];
}
}, goog.module.get = function(t) {
return goog.module.getInternal_(t);
}, goog.module.getInternal_ = function(t) {
if (!COMPILED) {
if (t in goog.loadedModules_) return goog.loadedModules_[t].exports;
if (!goog.implicitNamespaces_[t]) return t = goog.getObjectByName(t), t ?? null;
}
return null;
}, goog.ModuleType = {
ES6: "es6",
GOOG: "goog"
}, goog.moduleLoaderState_ = null, goog.isInModuleLoader_ = function() {
return goog.isInGoogModuleLoader_() || goog.isInEs6ModuleLoader_();
}, goog.isInGoogModuleLoader_ = function() {
return !!goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.GOOG;
}, goog.isInEs6ModuleLoader_ = function() {
if (goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.ES6) return !0;
var t = goog.global.$jscomp;
return t ? typeof t.getCurrentModulePath != "function" ? !1 : !!t.getCurrentModulePath() : !1;
}, goog.module.declareLegacyNamespace = function() {
if (!COMPILED && !goog.isInGoogModuleLoader_()) throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");
if (!COMPILED && !goog.moduleLoaderState_.moduleName) throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");
goog.moduleLoaderState_.declareLegacyNamespace = !0;
}, goog.declareModuleId = function(t) {
if (!COMPILED) {
if (!goog.isInEs6ModuleLoader_()) throw Error("goog.declareModuleId may only be called from within an ES6 module");
if (goog.moduleLoaderState_ && goog.moduleLoaderState_.moduleName) throw Error("goog.declareModuleId may only be called once per module.");
if (t in goog.loadedModules_) throw Error('Module with namespace "' + t + '" already exists.');
}
if (goog.moduleLoaderState_) goog.moduleLoaderState_.moduleName = t;
else {
var o = goog.global.$jscomp;
if (!o || typeof o.getCurrentModulePath != "function") throw Error('Module with namespace "' + t + '" has been loaded incorrectly.');
o = o.require(o.getCurrentModulePath()), goog.loadedModules_[t] = {
exports: o,
type: goog.ModuleType.ES6,
moduleId: t
};
}
}, goog.setTestOnly = function(t) {
if (goog.DISALLOW_TEST_ONLY_CODE) throw t = t || "", Error("Importing test-only code into non-debug environment" + (t ? ": " + t : "."));
}, goog.forwardDeclare = function(t) {
}, COMPILED || (goog.isProvided_ = function(t) {
return t in goog.loadedModules_ || !goog.implicitNamespaces_[t] && goog.getObjectByName(t) != null;
}, goog.implicitNamespaces_ = { "goog.module": !0 }), goog.getObjectByName = function(t, o) {
t = t.split("."), o = o || goog.global;
for (var r = 0; r < t.length; r++) if (o = o[t[r]], o == null) return null;
return o;
}, goog.addDependency = function(t, o, r, n) {
!COMPILED && goog.DEPENDENCIES_ENABLED && goog.debugLoader_.addDependency(t, o, r, n);
}, goog.ENABLE_DEBUG_LOADER = !0, goog.logToConsole_ = function(t) {
goog.global.console && goog.global.console.error(t);
}, goog.require = function(t) {
if (!COMPILED) {
if (goog.ENABLE_DEBUG_LOADER && goog.debugLoader_.requested(t), goog.isProvided_(t)) {
if (goog.isInModuleLoader_()) return goog.module.getInternal_(t);
} else if (goog.ENABLE_DEBUG_LOADER) {
var o = goog.moduleLoaderState_;
goog.moduleLoaderState_ = null;
try {
goog.debugLoader_.load_(t);
} finally {
goog.moduleLoaderState_ = o;
}
}
return null;
}
}, goog.requireType = function(t) {
return {};
}, goog.basePath = "", goog.nullFunction = function() {
}, goog.abstractMethod = function() {
throw Error("unimplemented abstract method");
}, goog.addSingletonGetter = function(t) {
t.instance_ = void 0, t.getInstance = function() {
return t.instance_ ? t.instance_ : (goog.DEBUG && (goog.instantiatedSingletons_[goog.instantiatedSingletons_.length] = t), t.instance_ = new t());
};
}, goog.instantiatedSingletons_ = [], goog.LOAD_MODULE_USING_EVAL = !0, goog.SEAL_MODULE_EXPORTS = goog.DEBUG, goog.loadedModules_ = {}, goog.DEPENDENCIES_ENABLED = !COMPILED && goog.ENABLE_DEBUG_LOADER, goog.TRANSPILE = "detect", goog.ASSUME_ES_MODULES_TRANSPILED = !1, goog.TRANSPILE_TO_LANGUAGE = "", goog.TRANSPILER = "transpile.js", goog.hasBadLetScoping = null, goog.useSafari10Workaround = function() {
if (goog.hasBadLetScoping == null) {
try {
var a = !eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";');
} catch (t) {
a = !1;
}
goog.hasBadLetScoping = a;
}
return goog.hasBadLetScoping;
}, goog.workaroundSafari10EvalBug = function(t) {
return "(function(){" + t + `
;})();
`;
}, goog.loadModule = function(t) {
var o = goog.moduleLoaderState_;
try {
goog.moduleLoaderState_ = {
moduleName: "",
declareLegacyNamespace: !1,
type: goog.ModuleType.GOOG
};
var r = {}, n = r;
if (typeof t == "function") n = t.call(void 0, n);
else if (typeof t == "string") goog.useSafari10Workaround() && (t = goog.workaroundSafari10EvalBug(t)), n = goog.loadModuleFromSource_.call(void 0, n, t);
else throw Error("Invalid module definition");
var i = goog.moduleLoaderState_.moduleName;
if (typeof i == "string" && i) goog.moduleLoaderState_.declareLegacyNamespace ? goog.constructNamespace_(i, n, r !== n) : goog.SEAL_MODULE_EXPORTS && Object.seal && typeof n == "object" && n != null && Object.seal(n), goog.loadedModules_[i] = {
exports: n,
type: goog.ModuleType.GOOG,
moduleId: goog.moduleLoaderState_.moduleName
};
else throw Error('Invalid module name "' + i + '"');
} finally {
goog.moduleLoaderState_ = o;
}
}, goog.loadModuleFromSource_ = function(a, b) {
return eval(b), a;
}, goog.normalizePath_ = function(t) {
t = t.split("/");
for (var o = 0; o < t.length; ) t[o] == "." ? t.splice(o, 1) : o && t[o] == ".." && t[o - 1] && t[o - 1] != ".." ? t.splice(--o, 2) : o++;
return t.join("/");
}, goog.loadFileSync_ = function(t) {
if (goog.global.CLOSURE_LOAD_FILE_SYNC) return goog.global.CLOSURE_LOAD_FILE_SYNC(t);
try {
var o = new goog.global.XMLHttpRequest();
return o.open("get", t, !1), o.send(), o.status == 0 || o.status == 200 ? o.responseText : null;
} catch {
return null;
}
}, goog.transpile_ = function(t, o, r) {
var n = goog.global.$jscomp;
n || (goog.global.$jscomp = n = {});
var i = n.transpile;
if (!i) {
var s = goog.basePath + goog.TRANSPILER, u = goog.loadFileSync_(s);
if (u) {
if ((function() {
(0, eval)(u + `
//# sourceURL=` + s);
}).call(goog.global), goog.global.$gwtExport && goog.global.$gwtExport.$jscomp && !goog.global.$gwtExport.$jscomp.transpile) throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: ' + JSON.stringify(goog.global.$gwtExport));
goog.global.$jscomp.transpile = goog.global.$gwtExport.$jscomp.transpile, n = goog.global.$jscomp, i = n.transpile;
}
}
return i || (i = n.transpile = function(l, p) {
return goog.logToConsole_(p + " requires transpilation but no transpiler was found."), l;
}), i(t, o, r);
}, goog.typeOf = function(t) {
var o = typeof t;
return o != "object" ? o : t ? Array.isArray(t) ? "array" : o : "null";
}, goog.isArrayLike = function(t) {
var o = goog.typeOf(t);
return o == "array" || o == "object" && typeof t.length == "number";
}, goog.isDateLike = function(t) {
return goog.isObject(t) && typeof t.getFullYear == "function";
}, goog.isObject = function(t) {
var o = typeof t;
return o == "object" && t != null || o == "function";
}, goog.getUid = function(t) {
return Object.prototype.hasOwnProperty.call(t, goog.UID_PROPERTY_) && t[goog.UID_PROPERTY_] || (t[goog.UID_PROPERTY_] = ++goog.uidCounter_);
}, goog.hasUid = function(t) {
return !!t[goog.UID_PROPERTY_];
}, goog.removeUid = function(t) {
t !== null && "removeAttribute" in t && t.removeAttribute(goog.UID_PROPERTY_);
try {
delete t[goog.UID_PROPERTY_];
} catch {
}
}, goog.UID_PROPERTY_ = "closure_uid_" + (1e9 * Math.random() >>> 0), goog.uidCounter_ = 0, goog.cloneObject = function(t) {
var o = goog.typeOf(t);
if (o == "object" || o == "array") {
if (typeof t.clone == "function") return t.clone();
o = o == "array" ? [] : {};
for (var r in t) o[r] = goog.cloneObject(t[r]);
return o;
}
return t;
}, goog.bindNative_ = function(t, o, r) {
return t.call.apply(t.bind, arguments);
}, goog.bindJs_ = function(t, o, r) {
if (!t) throw Error();
if (2 < arguments.length) {
var n = Array.prototype.slice.call(arguments, 2);
return function() {
var i = Array.prototype.slice.call(arguments);
return Array.prototype.unshift.apply(i, n), t.apply(o, i);
};
}
return function() {
return t.apply(o, arguments);
};
}, goog.bind = function(t, o, r) {
return Function.prototype.bind && Function.prototype.bind.toString().indexOf("native code") != -1 ? goog.bind = goog.bindNative_ : goog.bind = goog.bindJs_, goog.bind.apply(null, arguments);
}, goog.partial = function(t, o) {
var r = Array.prototype.slice.call(arguments, 1);
return function() {
var n = r.slice();
return n.push.apply(n, arguments), t.apply(this, n);
};
}, goog.mixin = function(t, o) {
for (var r in o) t[r] = o[r];
}, goog.now = function() {
return Date.now();
}, goog.globalEval = function(t) {
(0, eval)(t);
}, goog.getCssName = function(t, o) {
if (String(t).charAt(0) == ".") throw Error('className passed in goog.getCssName must not start with ".". You passed: ' + t);
var r = function(i) {
return goog.cssNameMapping_[i] || i;
}, n = function(i) {
i = i.split("-");
for (var s = [], u = 0; u < i.length; u++) s.push(r(i[u]));
return s.join("-");
};
return n = goog.cssNameMapping_ ? goog.cssNameMappingStyle_ == "BY_WHOLE" ? r : n : function(i) {
return i;
}, t = o ? t + "-" + n(o) : n(t), goog.global.CLOSURE_CSS_NAME_MAP_FN ? goog.global.CLOSURE_CSS_NAME_MAP_FN(t) : t;
}, goog.setCssNameMapping = function(t, o) {
goog.cssNameMapping_ = t, goog.cssNameMappingStyle_ = o;
}, !COMPILED && goog.global.CLOSURE_CSS_NAME_MAPPING && (goog.cssNameMapping_ = goog.global.CLOSURE_CSS_NAME_MAPPING), goog.getMsg = function(t, o, r) {
return r && r.html && (t = t.replace(/</g, "<")), r && r.unescapeHtmlEntities && (t = t.replace(/</g, "<").replace(/>/g, ">").replace(/'/g, "'").replace(/"/g, '"').replace(/&/g, "&")), o && (t = t.replace(/\{\$([^}]+)}/g, function(n, i) {
return o != null && i in o ? o[i] : n;
})), t;
}, goog.getMsgWithFallback = function(t, o) {
return t;
}, goog.exportSymbol = function(t, o, r) {
goog.exportPath_(t, o, !0, r);
}, goog.exportProperty = function(t, o, r) {
t[o] = r;
}, goog.inherits = function(t, o) {
function r() {
}
r.prototype = o.prototype, t.superClass_ = o.prototype, t.prototype = new r(), t.prototype.constructor = t, t.base = function(n, i, s) {
for (var u = Array(arguments.length - 2), l = 2; l < arguments.length; l++) u[l - 2] = arguments[l];
return o.prototype[i].apply(n, u);
};
}, goog.scope = function(t) {
if (goog.isInModuleLoader_()) throw Error("goog.scope is not supported within a module.");
t.call(goog.global);
}, COMPILED || (goog.global.COMPILED = COMPILED), goog.defineClass = function(t, o) {
var r = o.constructor, n = o.statics;
return r && r != Object.prototype.constructor || (r = function() {
throw Error("cannot instantiate an interface (no constructor defined).");
}), r = goog.defineClass.createSealingConstructor_(r, t), t && goog.inherits(r, t), delete o.constructor, delete o.statics, goog.defineClass.applyProperties_(r.prototype, o), n != null && (n instanceof Function ? n(r) : goog.defineClass.applyProperties_(r, n)), r;
}, goog.defineClass.SEAL_CLASS_INSTANCES = goog.DEBUG, goog.defineClass.createSealingConstructor_ = function(t, o) {
return goog.defineClass.SEAL_CLASS_INSTANCES ? function() {
var r = t.apply(this, arguments) || this;
return r[goog.UID_PROPERTY_] = r[goog.UID_PROPERTY_], r;
} : t;
}, goog.defineClass.OBJECT_PROTOTYPE_FIELDS_ = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "), goog.defineClass.applyProperties_ = function(t, o) {
for (var r in o) Object.prototype.hasOwnProperty.call(o, r) && (t[r] = o[r]);
for (var n = 0; n < goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length; n++) r = goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[n], Object.prototype.hasOwnProperty.call(o, r) && (t[r] = o[r]);
}, !COMPILED && goog.DEPENDENCIES_ENABLED && (goog.inHtmlDocument_ = function() {
var t = goog.global.document;
return t != null && "write" in t;
}, goog.isDocumentLoading_ = function() {
var t = goog.global.document;
return t.attachEvent ? t.readyState != "complete" : t.readyState == "loading";
}, goog.findBasePath_ = function() {
if (goog.global.CLOSURE_BASE_PATH != null && typeof goog.global.CLOSURE_BASE_PATH == "string") goog.basePath = goog.global.CLOSURE_BASE_PATH;
else if (goog.inHtmlDocument_()) {
var t = goog.global.document, o = t.currentScript;
for (t = o ? [o] : t.getElementsByTagName("SCRIPT"), o = t.length - 1; 0 <= o; --o) {
var r = t[o].src, n = r.lastIndexOf("?");
if (n = n == -1 ? r.length : n, r.substr(n - 7, 7) == "base.js") {
goog.basePath = r.substr(0, n - 7);
break;
}
}
}
}, goog.findBasePath_(), goog.Transpiler = function() {
this.requiresTranspilation_ = null, this.transpilationTarget_ = goog.TRANSPILE_TO_LANGUAGE;
}, goog.Transpiler.prototype.createRequiresTranspilation_ = function() {
function a(t, o) {
e ? d[t] = !0 : o() ? (c = t, d[t] = !1) : e = d[t] = !0;
}
function b(g) {
try {
return !!eval(g);
} catch (t) {
return !1;
}
}
var c = "es3", d = { es3: !1 }, e = !1, f = goog.global.navigator && goog.global.navigator.userAgent ? goog.global.navigator.userAgent : "";
return a("es5", function() {
return b("[1,].length==1");
}), a("es6", function() {
return f.match(/Edge\/(\d+)(\.\d)*/i) ? !1 : b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()');
}), a("es7", function() {
return b("2 ** 2 == 4");
}), a("es8", function() {
return b("async () => 1, true");
}), a("es9", function() {
return b("({...rest} = {}), true");
}), a("es_next", function() {
return !1;
}), {
target: c,
map: d
};
}, goog.Transpiler.prototype.needsTranspile = function(t, o) {
if (goog.TRANSPILE == "always") return !0;
if (goog.TRANSPILE == "never") return !1;
if (!this.requiresTranspilation_) {
var r = this.createRequiresTranspilation_();
this.requiresTranspilation_ = r.map, this.transpilationTarget_ = this.transpilationTarget_ || r.target;
}
if (t in this.requiresTranspilation_) return this.requiresTranspilation_[t] ? !0 : !(!goog.inHtmlDocument_() || o != "es6" || "noModule" in goog.global.document.createElement("script"));
throw Error("Unknown language mode: " + t);
}, goog.Transpiler.prototype.transpile = function(t, o) {
return goog.transpile_(t, o, this.transpilationTarget_);
}, goog.transpiler_ = new goog.Transpiler(), goog.protectScriptTag_ = function(t) {
return t.replace(/<\/(SCRIPT)/gi, "\\x3c/$1");
}, goog.DebugLoader_ = function() {
this.dependencies_ = {}, this.idToPath_ = {}, this.written_ = {}, this.loadingDeps_ = [], this.depsToLoad_ = [], this.paused_ = !1, this.factory_ = new goog.DependencyFactory(goog.transpiler_), this.deferredCallbacks_ = {}, this.deferredQueue_ = [];
}, goog.DebugLoader_.prototype.bootstrap = function(t, o) {
function r() {
n && (goog.global.setTimeout(n, 0), n = null);
}
var n = o;
if (t.length) {
o = [];
for (var i = 0; i < t.length; i++) {
var s = this.getPathFromDeps_(t[i]);
if (!s) throw Error("Unregonized namespace: " + t[i]);
o.push(this.dependencies_[s]);
}
s = goog.require;
var u = 0;
for (i = 0; i < t.length; i++) s(t[i]), o[i].onLoad(function() {
++u == t.length && r();
});
} else r();
}, goog.DebugLoader_.prototype.loadClosureDeps = function() {
this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath + "deps.js"), "deps.js", [], [], {}, !1)), this.loadDeps_();
}, goog.DebugLoader_.prototype.requested = function(t, o) {
(t = this.getPathFromDeps_(t)) && (o || this.areDepsLoaded_(this.dependencies_[t].requires)) && (o = this.deferredCallbacks_[t]) && (delete this.deferredCallbacks_[t], o());
}, goog.DebugLoader_.prototype.setDependencyFactory = function(t) {
this.factory_ = t;
}, goog.DebugLoader_.prototype.load_ = function(t) {
if (this.getPathFromDeps_(t)) {
var o = this, r = [], n = function(i) {
var s = o.getPathFromDeps_(i);
if (!s) throw Error("Bad dependency path or symbol: " + i);
if (!o.written_[s]) {
for (o.written_[s] = !0, i = o.dependencies_[s], s = 0; s < i.requires.length; s++) goog.isProvided_(i.requires[s]) || n(i.requires[s]);
r.push(i);
}
};
n(t), t = !!this.depsToLoad_.length, this.depsToLoad_ = this.depsToLoad_.concat(r), this.paused_ || t || this.loadDeps_();
} else throw t = "goog.require could not find: " + t, goog.logToConsole_(t), Error(t);
}, goog.DebugLoader_.prototype.loadDeps_ = function() {
for (var t = this, o = this.paused_; this.depsToLoad_.length && !o; ) (function() {
var r = !1, n = t.depsToLoad_.shift(), i = !1;
t.loading_(n);
var s = {
pause: function() {
if (r) throw Error("Cannot call pause after the call to load.");
o = !0;
},
resume: function() {
r ? t.resume_() : o = !1;
},
loaded: function() {
if (i) throw Error("Double call to loaded.");
i = !0, t.loaded_(n);
},
pending: function() {
for (var u = [], l = 0; l < t.loadingDeps_.length; l++) u.push(t.loadingDeps_[l]);
return u;
},
setModuleState: function(u) {
goog.moduleLoaderState_ = {
type: u,
moduleName: "",
declareLegacyNamespace: !1
};
},
registerEs6ModuleExports: function(u, l, p) {
p && (goog.loadedModules_[p] = {
exports: l,
type: goog.ModuleType.ES6,
moduleId: p || ""
});
},
registerGoogModuleExports: function(u, l) {
goog.loadedModules_[u] = {
exports: l,
type: goog.ModuleType.GOOG,
moduleId: u
};
},
clearModuleState: function() {
goog.moduleLoaderState_ = null;
},
defer: function(u) {
if (r) throw Error("Cannot register with defer after the call to load.");
t.defer_(n, u);
},
areDepsLoaded: function() {
return t.areDepsLoaded_(n.requires);
}
};
try {
n.load(s);
} finally {
r = !0;
}
})();
o && this.pause_();
}, goog.DebugLoader_.prototype.pause_ = function() {
this.paused_ = !0;
}, goog.DebugLoader_.prototype.resume_ = function() {
this.paused_ && (this.paused_ = !1, this.loadDeps_());
}, goog.DebugLoader_.prototype.loading_ = function(t) {
this.loadingDeps_.push(t);
}, goog.DebugLoader_.prototype.loaded_ = function(t) {
for (var o = 0; o < this.loadingDeps_.length; o++) if (this.loadingDeps_[o] == t) {
this.loadingDeps_.splice(o, 1);
break;
}
for (o = 0; o < this.deferredQueue_.length; o++) if (this.deferredQueue_[o] == t.path) {
this.deferredQueue_.splice(o, 1);
break;
}
if (this.loadingDeps_.length == this.deferredQueue_.length && !this.depsToLoad_.length) for (; this.deferredQueue_.length; ) this.requested(this.deferredQueue_.shift(), !0);
t.loaded();
}, goog.DebugLoader_.prototype.areDepsLoaded_ = function(t) {
for (var o = 0; o < t.length; o++) {
var r = this.getPathFromDeps_(t[o]);
if (!r || !(r in this.deferredCallbacks_ || goog.isProvided_(t[o]))) return !1;
}
return !0;
}, goog.DebugLoader_.prototype.getPathFromDeps_ = function(t) {
return t in this.idToPath_ ? this.idToPath_[t] : t in this.dependencies_ ? t : null;
}, goog.DebugLoader_.prototype.defer_ = function(t, o) {
this.deferredCallbacks_[t.path] = o, this.deferredQueue_.push(t.path);
}, goog.LoadController = function() {
}, goog.LoadController.prototype.pause = function() {
}, goog.LoadController.prototype.resume = function() {
}, goog.LoadController.prototype.loaded = function() {
}, goog.LoadController.prototype.pending = function() {
}, goog.LoadController.prototype.registerEs6ModuleExports = function(t, o, r) {
}, goog.LoadController.prototype.setModuleState = function(t) {
}, goog.LoadController.prototype.clearModuleState = function() {
}, goog.LoadController.prototype.defer = function(t) {
}, goog.LoadController.prototype.areDepsLoaded = function() {
}, goog.Dependency = function(t, o, r, n, i) {
this.path = t, this.relativePath = o, this.provides = r, this.requires = n, this.loadFlags = i, this.loaded_ = !1, this.loadCallbacks_ = [];
}, goog.Dependency.prototype.getPathName = function() {
var t = this.path, o = t.indexOf("://");
return 0 <= o && (t = t.substring(o + 3), o = t.indexOf("/"), 0 <= o && (t = t.substring(o + 1))), t;
}, goog.Dependency.prototype.onLoad = function(t) {
this.loaded_ ? t() : this.loadCallbacks_.push(t);
}, goog.Dependency.prototype.loaded = function() {
this.loaded_ = !0;
var t = this.loadCallbacks_;
this.loadCallbacks_ = [];
for (var o = 0; o < t.length; o++) t[o]();
}, goog.Dependency.defer_ = !1, goog.Dependency.callbackMap_ = {}, goog.Dependency.registerCallback_ = function(t) {
var o = Math.random().toString(32);
return goog.Dependency.callbackMap_[o] = t, o;
}, goog.Dependency.unregisterCallback_ = function(t) {
delete goog.Dependency.callbackMap_[t];
}, goog.Dependency.callback_ = function(t, o) {
if (t in goog.Dependency.callbackMap_) {
for (var r = goog.Dependency.callbackMap_[t], n = [], i = 1; i < arguments.length; i++) n.push(arguments[i]);
r.apply(void 0, n);
} else throw Error("Callback key " + t + " does not exist (was base.js loaded more than once?).");
}, goog.Dependency.prototype.load = function(t) {
if (goog.global.CLOSURE_IMPORT_SCRIPT) goog.global.CLOSURE_IMPORT_SCRIPT(this.path) ? t.loaded() : t.pause();
else if (goog.inHtmlDocument_()) {
var o = goog.global.document;
if (o.readyState == "complete" && !goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING) {
if (/\bdeps.js$/.test(this.path)) {
t.loaded();
return;
}
throw Error('Cannot write "' + this.path + '" after document load');
}
var r = goog.getScriptNonce();
if (!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING && goog.isDocumentLoading_()) {
var n = function(l) {
l.readyState && l.readyState != "complete" ? l.onload = n : (goog.Dependency.unregisterCallback_(i), t.loaded());
}, i = goog.Dependency.registerCallback_(n);
r = r ? ' nonce="' + r + '"' : "";
var s = '<script src="' + this.path + '"' + r + (goog.Dependency.defer_ ? " defer" : "") + ' id="script-' + i + '"><\/script>';
s += "<script" + r + ">", s = goog.Dependency.defer_ ? s + ("document.getElementById('script-" + i + `').onload = function() {
goog.Dependency.callback_('` + i + `', this);
};
`) : s + ("goog.Dependency.callback_('" + i + "', document.getElementById('script-" + i + "'));"), s += "<\/script>", o.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(s) : s);
} else {
var u = o.createElement("script");
u.defer = goog.Dependency.defer_, u.async = !1, r && (u.nonce = r), goog.DebugLoader_.IS_OLD_IE_ ? (t.pause(), u.onreadystatechange = function() {
(u.readyState == "loaded" || u.readyState == "complete") && (t.loaded(), t.resume());
}) : u.onload = function() {
u.onload = null, t.loaded();
}, u.src = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path) : this.path, o.head.appendChild(u);
}
} else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."), this.relativePath == "deps.js" ? (goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."), t.loaded()) : t.pause();
}, goog.Es6ModuleDependency = function(t, o, r, n, i) {
goog.Dependency.call(this, t, o, r, n, i);
}, goog.inherits(goog.Es6ModuleDependency, goog.Dependency), goog.Es6ModuleDependency.prototype.load = function(t) {
function o(m, _) {
var h = "", $ = goog.getScriptNonce();
$ && (h = ' nonce="' + $ + '"'), m = _ ? '<script type="module" crossorigin' + h + ">" + _ + "<\/script>" : '<script type="module" crossorigin src="' + m + '"' + h + "><\/script>", n.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(m) : m);
}
function r(m, _) {
var h = n.createElement("script");
h.defer = !0, h.async = !1, h.type = "module", h.setAttribute("crossorigin", !0);
var $ = goog.getScriptNonce();
$ && (h.nonce = $), _ ? h.text = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScript(_) : _ : h.src = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScriptURL(m) : m, n.head.appendChild(h);
}
if (goog.global.CLOSURE_IMPORT_SCRIPT) goog.global.CLOSURE_IMPORT_SCRIPT(this.path) ? t.loaded() : t.pause();
else if (goog.inHtmlDocument_()) {
var n = goog.global.document, i = this;
if (goog.isDocumentLoading_()) {
var s = o;
goog.Dependency.defer_ = !0;
} else s = r;
var u = goog.Dependency.registerCallback_(function() {
goog.Dependency.unregisterCallback_(u), t.setModuleState(goog.ModuleType.ES6);
});
s(void 0, 'goog.Dependency.callback_("' + u + '")'), s(this.path, void 0);
var l = goog.Dependency.registerCallback_(function(m) {
goog.Dependency.unregisterCallback_(l), t.registerEs6ModuleExports(i.path, m, goog.moduleLoaderState_.moduleName);
});
s(void 0, 'import * as m from "' + this.path + '"; goog.Dependency.callback_("' + l + '", m)');
var p = goog.Dependency.registerCallback_(function() {
goog.Dependency.unregisterCallback_(p), t.clearModuleState(), t.loaded();
});
s(void 0, 'goog.Dependency.callback_("' + p + '")');
} else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."), t.pause();
}, goog.TransformedDependency = function(t, o, r, n, i) {
goog.Dependency.call(this, t, o, r, n, i), this.contents_ = null, this.lazyFetch_ = !goog.inHtmlDocument_() || !("noModule" in goog.global.document.createElement("script"));
}, goog.inherits(goog.TransformedDependency, goog.Dependency), goog.TransformedDependency.prototype.load = function(t) {
function o() {
i.contents_ = goog.loadFileSync_(i.path), i.contents_ && (i.contents_ = i.transform(i.contents_), i.contents_ && (i.contents_ += `
//# sourceURL=` + i.path));
}
function r() {
if (i.lazyFetch_ && o(), i.contents_) {
s && t.setModuleState(goog.ModuleType.ES6);
try {
var _ = i.contents_;
if (i.contents_ = null, goog.globalEval(_), s) var h = goog.moduleLoaderState_.moduleName;
} finally {
s && t.clearModuleState();
}
s && goog.global.$jscomp.require.ensure([i.getPathName()], function() {
t.registerEs6ModuleExports(i.path, goog.global.$jscomp.require(i.getPathName()), h);
}), t.loaded();
}
}
function n() {
var _ = goog.global.document, h = goog.Dependency.registerCallback_(function() {
goog.Dependency.unregisterCallback_(h), r();
}), $ = goog.getScriptNonce();
$ = "<script" + ($ ? ' nonce="' + $ + '"' : "") + ">" + goog.protectScriptTag_('goog.Dependency.callback_("' + h + '");') + "<\/script>", _.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML($) : $);
}
var i = this;
if (goog.global.CLOSURE_IMPORT_SCRIPT) o(), this.contents_ && goog.global.CLOSURE_IMPORT_SCRIPT("", this.contents_) ? (this.contents_ = null, t.loaded()) : t.pause();
else {
var s = this.loadFlags.module == goog.ModuleType.ES6;
this.lazyFetch_ || o();
var u = 1 < t.pending().length, l = u && goog.DebugLoader_.IS_OLD_IE_;
if (u = goog.Dependency.defer_ && (u || goog.isDocumentLoading_()), l || u) t.defer(function() {
r();
});
else {
var p = goog.global.document;
if (l = goog.inHtmlDocument_() && "ActiveXObject" in goog.global, s && goog.inHtmlDocument_() && goog.isDocumentLoading_() && !l) {
goog.Dependency.defer_ = !0, t.pause();
var m = p.onreadystatechange;
p.onreadystatechange = function() {
p.readyState == "interactive" && (p.onreadystatechange = m, r(), t.resume()), typeof m == "function" && m.apply(void 0, arguments);
};
} else !goog.DebugLoader_.IS_OLD_IE_ && goog.inHtmlDocument_() && goog.isDocumentLoading_() ? n() : r();
}
}
}, goog.TransformedDependency.prototype.transform = function(t) {
}, goog.TranspiledDependency = function(t, o, r, n, i, s) {
goog.TransformedDependency.call(this, t, o, r, n, i), this.transpiler = s;
}, goog.inherits(goog.TranspiledDependency, goog.TransformedDependency), goog.TranspiledDependency.prototype.transform = function(t) {
return this.transpiler.transpile(