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B,CAAC,sBAAuB,SAAU,CAAI,EACrD,IAAM,EAAS,EAAK,MAAM,CAGzB,GAAU,EAAO,QAAQ,CAAI,GAAU,EAAO,SAAS,CAzD5D,GAAQ,IAAI,CAAC,IA4DT,IACF,GAGF,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,gBAAgB,CAAC,gBAAiB,SAAU,CAAE,EACjE,OAAO,IAAI,GAAW,EACxB,EACF","sources":["","src/js/gcping.js","node_modules/@material/dialog/component.js","node_modules/@material/dialog/component.ts","node_modules/tslib/tslib.es6.js","node_modules/@material/base/component.js","node_modules/@material/base/component.ts","node_modules/@material/base/foundation.js","node_modules/@material/base/foundation.ts","node_modules/@material/dom/focus-trap.js","node_modules/@material/dom/focus-trap.ts","node_modules/@material/dom/ponyfill.js","node_modules/@material/dom/ponyfill.ts","node_modules/@material/ripple/component.js","node_modules/@material/ripple/component.ts","node_modules/@material/dom/events.js","node_modules/@material/dom/events.ts","node_modules/@material/ripple/foundation.js","node_modules/@material/ripple/foundation.ts","node_modules/@material/ripple/constants.js","node_modules/@material/ripple/constants.ts","node_modules/@material/ripple/util.js","node_modules/@material/ripple/util.ts","node_modules/@material/dialog/foundation.js","node_modules/@material/dialog/foundation.ts","node_modules/@material/animation/animationframe.js","node_modules/@material/animation/animationframe.ts","node_modules/@material/dialog/constants.js","node_modules/@material/dialog/constants.ts","node_modules/@material/dialog/util.js","node_modules/@material/dialog/util.ts","node_modules/@material/data-table/component.js","node_modules/@material/data-table/component.ts","node_modules/@material/checkbox/component.js","node_modules/@material/checkbox/component.ts","node_modules/@material/animation/util.js","node_modules/@material/animation/util.ts","node_modules/@material/checkbox/constants.js","node_modules/@material/checkbox/constants.ts","node_modules/@material/checkbox/foundation.js","node_modules/@material/checkbox/foundation.ts","node_modules/@material/linear-progress/component.js","node_modules/@material/linear-progress/component.ts","node_modules/@material/linear-progress/foundation.js","node_modules/@material/linear-progress/foundation.ts","node_modules/@material/linear-progress/constants.js","node_modules/@material/linear-progress/constants.ts","node_modules/@material/data-table/constants.js","node_modules/@material/data-table/constants.ts","node_modules/@material/data-table/foundation.js","node_modules/@material/data-table/foundation.ts","node_modules/@material/tooltip/component.js","node_modules/@material/tooltip/component.ts","node_modules/@material/tooltip/constants.js","node_modules/@material/tooltip/constants.ts","node_modules/@material/tooltip/foundation.js","node_modules/@material/tooltip/foundation.ts","node_modules/@material/dom/keyboard.js","node_modules/@material/dom/keyboard.ts"],"sourcesContent":["/**\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ // TODO: Show regions on a map, with lines overlayed according to ping times.\n// TODO: Add an option to contribute times and JS geolocation info to a public BigQuery dataset.\n/**\n * @license\n * Copyright 2017 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ /******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */ var $5c96a02c592fcff1$var$extendStatics = function(d, b) {\n $5c96a02c592fcff1$var$extendStatics = Object.setPrototypeOf || ({\n __proto__: []\n }) instanceof Array && function(d, b) {\n d.__proto__ = b;\n } || function(d, b) {\n for(var p in b)if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return $5c96a02c592fcff1$var$extendStatics(d, b);\n};\nfunction $5c96a02c592fcff1$export$a8ba968b8961cb8a(d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n $5c96a02c592fcff1$var$extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\nvar $5c96a02c592fcff1$export$18ce0697a983be9b = function() {\n $5c96a02c592fcff1$export$18ce0697a983be9b = Object.assign || function __assign(t) {\n for(var s, i = 1, n = arguments.length; i < n; i++){\n s = arguments[i];\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return $5c96a02c592fcff1$export$18ce0697a983be9b.apply(this, arguments);\n};\nfunction $5c96a02c592fcff1$export$3c9a16f847548506(s, e) {\n var t = {};\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") {\n for(var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nfunction $5c96a02c592fcff1$export$29e00dfd3077644b(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\nfunction $5c96a02c592fcff1$export$d5ad3fd78186038f(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n}\nfunction $5c96a02c592fcff1$export$3a84e1ae4e97e9b0(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n return f;\n }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for(var i = decorators.length - 1; i >= 0; i--){\n var context = {};\n for(var p in contextIn)context[p] = p === \"access\" ? {} : contextIn[p];\n for(var p in contextIn.access)context.access[p] = contextIn.access[p];\n context.addInitializer = function(f) {\n if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === \"accessor\" ? {\n get: descriptor.get,\n set: descriptor.set\n } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n}\nfunction $5c96a02c592fcff1$export$d831c04e792af3d(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for(var i = 0; i < initializers.length; i++)value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n return useValue ? value : void 0;\n}\nfunction $5c96a02c592fcff1$export$6a2a36740a146cb8(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n}\nfunction $5c96a02c592fcff1$export$d1a06452d3489bc7(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", {\n configurable: true,\n value: prefix ? \"\".concat(prefix, \" \", name) : name\n });\n}\nfunction $5c96a02c592fcff1$export$f1db080c865becb9(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\nfunction $5c96a02c592fcff1$export$1050f835b63b671e(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nfunction $5c96a02c592fcff1$export$67ebef60e6f28a6(thisArg, body) {\n var _ = {\n label: 0,\n sent: function() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([\n n,\n v\n ]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while(g && (g = 0, op[0] && (_ = 0)), _)try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [\n op[0] & 2,\n t.value\n ];\n switch(op[0]){\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [\n 0\n ];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [\n 6,\n e\n ];\n y = 0;\n } finally{\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nvar $5c96a02c592fcff1$export$45d3717a4c69092e = Object.create ? function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {\n enumerable: true,\n get: function() {\n return m[k];\n }\n };\n Object.defineProperty(o, k2, desc);\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n};\nfunction $5c96a02c592fcff1$export$f33643c0debef087(m, o) {\n for(var p in m)if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) $5c96a02c592fcff1$export$45d3717a4c69092e(o, m, p);\n}\nfunction $5c96a02c592fcff1$export$19a8beecd37a4c45(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\nfunction $5c96a02c592fcff1$export$8d051b38c9118094(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while((n === void 0 || n-- > 0) && !(r = i.next()).done)ar.push(r.value);\n } catch (error) {\n e = {\n error: error\n };\n } finally{\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally{\n if (e) throw e.error;\n }\n }\n return ar;\n}\nfunction $5c96a02c592fcff1$export$afc72e2116322959() {\n for(var ar = [], i = 0; i < arguments.length; i++)ar = ar.concat($5c96a02c592fcff1$export$8d051b38c9118094(arguments[i]));\n return ar;\n}\nfunction $5c96a02c592fcff1$export$6388937ca91ccae8() {\n for(var s = 0, i = 0, il = arguments.length; i < il; i++)s += arguments[i].length;\n for(var r = Array(s), k = 0, i = 0; i < il; i++)for(var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)r[k] = a[j];\n return r;\n}\nfunction $5c96a02c592fcff1$export$1216008129fb82ed(to, from, pack) {\n if (pack || arguments.length === 2) {\n for(var i = 0, l = from.length, ar; i < l; i++)if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\nfunction $5c96a02c592fcff1$export$10c90e4f7922046c(v) {\n return this instanceof $5c96a02c592fcff1$export$10c90e4f7922046c ? (this.v = v, this) : new $5c96a02c592fcff1$export$10c90e4f7922046c(v);\n}\nfunction $5c96a02c592fcff1$export$e427f37a30a4de9b(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function() {\n return this;\n }, i;\n function awaitReturn(f) {\n return function(v) {\n return Promise.resolve(v).then(f, reject);\n };\n }\n function verb(n, f) {\n if (g[n]) {\n i[n] = function(v) {\n return new Promise(function(a, b) {\n q.push([\n n,\n v,\n a,\n b\n ]) > 1 || resume(n, v);\n });\n };\n if (f) i[n] = f(i[n]);\n }\n }\n function resume(n, v) {\n try {\n step(g[n](v));\n } catch (e) {\n settle(q[0][3], e);\n }\n }\n function step(r) {\n r.value instanceof $5c96a02c592fcff1$export$10c90e4f7922046c ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);\n }\n function fulfill(value) {\n resume(\"next\", value);\n }\n function reject(value) {\n resume(\"throw\", value);\n }\n function settle(f, v) {\n if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);\n }\n}\nfunction $5c96a02c592fcff1$export$bbd80228419bb833(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function(e) {\n throw e;\n }), verb(\"return\"), i[Symbol.iterator] = function() {\n return this;\n }, i;\n function verb(n, f) {\n i[n] = o[n] ? function(v) {\n return (p = !p) ? {\n value: $5c96a02c592fcff1$export$10c90e4f7922046c(o[n](v)),\n done: false\n } : f ? f(v) : v;\n } : f;\n }\n}\nfunction $5c96a02c592fcff1$export$e3b29a3d6162315f(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof $5c96a02c592fcff1$export$19a8beecd37a4c45 === \"function\" ? $5c96a02c592fcff1$export$19a8beecd37a4c45(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function() {\n return this;\n }, i);\n function verb(n) {\n i[n] = o[n] && function(v) {\n return new Promise(function(resolve, reject) {\n v = o[n](v), settle(resolve, reject, v.done, v.value);\n });\n };\n }\n function settle(resolve, reject, d, v) {\n Promise.resolve(v).then(function(v) {\n resolve({\n value: v,\n done: d\n });\n }, reject);\n }\n}\nfunction $5c96a02c592fcff1$export$4fb47efe1390b86f(cooked, raw) {\n if (Object.defineProperty) Object.defineProperty(cooked, \"raw\", {\n value: raw\n });\n else cooked.raw = raw;\n return cooked;\n}\nvar $5c96a02c592fcff1$var$__setModuleDefault = Object.create ? function(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n};\nvar $5c96a02c592fcff1$var$ownKeys = function(o) {\n $5c96a02c592fcff1$var$ownKeys = Object.getOwnPropertyNames || function(o) {\n var ar = [];\n for(var k in o)if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return $5c96a02c592fcff1$var$ownKeys(o);\n};\nfunction $5c96a02c592fcff1$export$c21735bcef00d192(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k = $5c96a02c592fcff1$var$ownKeys(mod), i = 0; i < k.length; i++)if (k[i] !== \"default\") $5c96a02c592fcff1$export$45d3717a4c69092e(result, mod, k[i]);\n }\n $5c96a02c592fcff1$var$__setModuleDefault(result, mod);\n return result;\n}\nfunction $5c96a02c592fcff1$export$da59b14a69baef04(mod) {\n return mod && mod.__esModule ? mod : {\n default: mod\n };\n}\nfunction $5c96a02c592fcff1$export$d5dcaf168c640c35(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\nfunction $5c96a02c592fcff1$export$d40a35129aaff81f(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n}\nfunction $5c96a02c592fcff1$export$81fdc39f203e4e04(state, receiver) {\n if (receiver === null || typeof receiver !== \"object\" && typeof receiver !== \"function\") throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\nfunction $5c96a02c592fcff1$export$88ac25d8e944e405(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() {\n try {\n inner.call(this);\n } catch (e) {\n return Promise.reject(e);\n }\n };\n env.stack.push({\n value: value,\n dispose: dispose,\n async: async\n });\n } else if (async) env.stack.push({\n async: true\n });\n return value;\n}\nvar $5c96a02c592fcff1$var$_SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function(error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\nfunction $5c96a02c592fcff1$export$8f076105dc360e92(env) {\n function fail(e) {\n env.error = env.hasError ? new $5c96a02c592fcff1$var$_SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while(r = env.stack.pop())try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) {\n fail(e);\n return next();\n });\n } else s |= 1;\n } catch (e) {\n fail(e);\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\nfunction $5c96a02c592fcff1$export$889dfb5d17574b0b(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : d + ext + \".\" + cm.toLowerCase() + \"js\";\n });\n return path;\n}\nvar $5c96a02c592fcff1$export$2e2bcd8739ae039 = {\n __extends: $5c96a02c592fcff1$export$a8ba968b8961cb8a,\n __assign: $5c96a02c592fcff1$export$18ce0697a983be9b,\n __rest: $5c96a02c592fcff1$export$3c9a16f847548506,\n __decorate: $5c96a02c592fcff1$export$29e00dfd3077644b,\n __param: $5c96a02c592fcff1$export$d5ad3fd78186038f,\n __esDecorate: $5c96a02c592fcff1$export$3a84e1ae4e97e9b0,\n __runInitializers: $5c96a02c592fcff1$export$d831c04e792af3d,\n __propKey: $5c96a02c592fcff1$export$6a2a36740a146cb8,\n __setFunctionName: $5c96a02c592fcff1$export$d1a06452d3489bc7,\n __metadata: $5c96a02c592fcff1$export$f1db080c865becb9,\n __awaiter: $5c96a02c592fcff1$export$1050f835b63b671e,\n __generator: $5c96a02c592fcff1$export$67ebef60e6f28a6,\n __createBinding: $5c96a02c592fcff1$export$45d3717a4c69092e,\n __exportStar: $5c96a02c592fcff1$export$f33643c0debef087,\n __values: $5c96a02c592fcff1$export$19a8beecd37a4c45,\n __read: $5c96a02c592fcff1$export$8d051b38c9118094,\n __spread: $5c96a02c592fcff1$export$afc72e2116322959,\n __spreadArrays: $5c96a02c592fcff1$export$6388937ca91ccae8,\n __spreadArray: $5c96a02c592fcff1$export$1216008129fb82ed,\n __await: $5c96a02c592fcff1$export$10c90e4f7922046c,\n __asyncGenerator: $5c96a02c592fcff1$export$e427f37a30a4de9b,\n __asyncDelegator: $5c96a02c592fcff1$export$bbd80228419bb833,\n __asyncValues: $5c96a02c592fcff1$export$e3b29a3d6162315f,\n __makeTemplateObject: $5c96a02c592fcff1$export$4fb47efe1390b86f,\n __importStar: $5c96a02c592fcff1$export$c21735bcef00d192,\n __importDefault: $5c96a02c592fcff1$export$da59b14a69baef04,\n __classPrivateFieldGet: $5c96a02c592fcff1$export$d5dcaf168c640c35,\n __classPrivateFieldSet: $5c96a02c592fcff1$export$d40a35129aaff81f,\n __classPrivateFieldIn: $5c96a02c592fcff1$export$81fdc39f203e4e04,\n __addDisposableResource: $5c96a02c592fcff1$export$88ac25d8e944e405,\n __disposeResources: $5c96a02c592fcff1$export$8f076105dc360e92,\n __rewriteRelativeImportExtension: $5c96a02c592fcff1$export$889dfb5d17574b0b\n};\n\n\n/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ \n/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ var $d29cc2d0f1026d01$export$a81b11d69c993162 = /** @class */ function() {\n function MDCFoundation(adapter) {\n if (adapter === void 0) adapter = {};\n this.adapter = adapter;\n }\n Object.defineProperty(MDCFoundation, \"cssClasses\", {\n get: function() {\n // Classes extending MDCFoundation should implement this method to return an object which exports every\n // CSS class the foundation class needs as a property. e.g. {ACTIVE: 'mdc-component--active'}\n return {};\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCFoundation, \"strings\", {\n get: function() {\n // Classes extending MDCFoundation should implement this method to return an object which exports all\n // semantic strings as constants. e.g. {ARIA_ROLE: 'tablist'}\n return {};\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCFoundation, \"numbers\", {\n get: function() {\n // Classes extending MDCFoundation should implement this method to return an object which exports all\n // of its semantic numbers as constants. e.g. {ANIMATION_DELAY_MS: 350}\n return {};\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCFoundation, \"defaultAdapter\", {\n get: function() {\n // Classes extending MDCFoundation may choose to implement this getter in order to provide a convenient\n // way of viewing the necessary methods of an adapter. In the future, this could also be used for adapter\n // validation.\n return {};\n },\n enumerable: false,\n configurable: true\n });\n MDCFoundation.prototype.init = function() {\n // Subclasses should override this method to perform initialization routines (registering events, etc.)\n };\n MDCFoundation.prototype.destroy = function() {\n // Subclasses should override this method to perform de-initialization routines (de-registering events, etc.)\n };\n return MDCFoundation;\n}();\nvar // tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\n$d29cc2d0f1026d01$export$2e2bcd8739ae039 = $d29cc2d0f1026d01$export$a81b11d69c993162;\n\n\nvar $0a13a1859770d71d$export$c3670872e5a4af8e = /** @class */ function() {\n function MDCComponent(root, foundation) {\n var args = [];\n for(var _i = 2; _i < arguments.length; _i++)args[_i - 2] = arguments[_i];\n this.root = root;\n this.initialize.apply(this, (0, $5c96a02c592fcff1$export$1216008129fb82ed)([], (0, $5c96a02c592fcff1$export$8d051b38c9118094)(args)));\n // Note that we initialize foundation here and not within the constructor's\n // default param so that this.root is defined and can be used within the\n // foundation class.\n this.foundation = foundation === undefined ? this.getDefaultFoundation() : foundation;\n this.foundation.init();\n this.initialSyncWithDOM();\n }\n MDCComponent.attachTo = function(root) {\n // Subclasses which extend MDCBase should provide an attachTo() method that takes a root element and\n // returns an instantiated component with its root set to that element. Also note that in the cases of\n // subclasses, an explicit foundation class will not have to be passed in; it will simply be initialized\n // from getDefaultFoundation().\n return new MDCComponent(root, new (0, $d29cc2d0f1026d01$export$a81b11d69c993162)({}));\n };\n /* istanbul ignore next: method param only exists for typing purposes; it does not need to be unit tested */ MDCComponent.prototype.initialize = function() {\n var _args = [];\n for(var _i = 0; _i < arguments.length; _i++)_args[_i] = arguments[_i];\n // Subclasses can override this to do any additional setup work that would be considered part of a\n // \"constructor\". Essentially, it is a hook into the parent constructor before the foundation is\n // initialized. Any additional arguments besides root and foundation will be passed in here.\n };\n MDCComponent.prototype.getDefaultFoundation = function() {\n // Subclasses must override this method to return a properly configured foundation class for the\n // component.\n throw new Error(\"Subclasses must override getDefaultFoundation to return a properly configured foundation class\");\n };\n MDCComponent.prototype.initialSyncWithDOM = function() {\n // Subclasses should override this method if they need to perform work to synchronize with a host DOM\n // object. An example of this would be a form control wrapper that needs to synchronize its internal state\n // to some property or attribute of the host DOM. Please note: this is *not* the place to perform DOM\n // reads/writes that would cause layout / paint, as this is called synchronously from within the constructor.\n };\n MDCComponent.prototype.destroy = function() {\n // Subclasses may implement this method to release any resources / deregister any listeners they have\n // attached. An example of this might be deregistering a resize event from the window object.\n this.foundation.destroy();\n };\n MDCComponent.prototype.listen = function(evtType, handler, options) {\n this.root.addEventListener(evtType, handler, options);\n };\n MDCComponent.prototype.unlisten = function(evtType, handler, options) {\n this.root.removeEventListener(evtType, handler, options);\n };\n /**\n * Fires a cross-browser-compatible custom event from the component root of the given type, with the given data.\n */ MDCComponent.prototype.emit = function(evtType, evtData, shouldBubble) {\n if (shouldBubble === void 0) shouldBubble = false;\n var evt;\n if (typeof CustomEvent === 'function') evt = new CustomEvent(evtType, {\n bubbles: shouldBubble,\n detail: evtData\n });\n else {\n evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(evtType, shouldBubble, false, evtData);\n }\n this.root.dispatchEvent(evt);\n };\n return MDCComponent;\n}();\nvar // tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\n$0a13a1859770d71d$export$2e2bcd8739ae039 = $0a13a1859770d71d$export$c3670872e5a4af8e;\n\n\n/**\n * @license\n * Copyright 2020 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ var $eb9bb54a78ee410b$var$FOCUS_SENTINEL_CLASS = 'mdc-dom-focus-sentinel';\n/**\n * Utility to trap focus in a given root element, e.g. for modal components such\n * as dialogs. The root should have at least one focusable child element,\n * for setting initial focus when trapping focus.\n * Also tracks the previously focused element, and restores focus to that\n * element when releasing focus.\n */ var $eb9bb54a78ee410b$export$34eba2437817a67b = /** @class */ function() {\n function FocusTrap(root, options) {\n if (options === void 0) options = {};\n this.root = root;\n this.options = options;\n // Previously focused element before trapping focus.\n this.elFocusedBeforeTrapFocus = null;\n }\n /**\n * Traps focus in `root`. Also focuses on either `initialFocusEl` if set;\n * otherwises sets initial focus to the first focusable child element.\n */ FocusTrap.prototype.trapFocus = function() {\n var focusableEls = this.getFocusableElements(this.root);\n if (focusableEls.length === 0) throw new Error('FocusTrap: Element must have at least one focusable child.');\n this.elFocusedBeforeTrapFocus = document.activeElement instanceof HTMLElement ? document.activeElement : null;\n this.wrapTabFocus(this.root);\n if (!this.options.skipInitialFocus) this.focusInitialElement(focusableEls, this.options.initialFocusEl);\n };\n /**\n * Releases focus from `root`. Also restores focus to the previously focused\n * element.\n */ FocusTrap.prototype.releaseFocus = function() {\n [].slice.call(this.root.querySelectorAll(\".\" + $eb9bb54a78ee410b$var$FOCUS_SENTINEL_CLASS)).forEach(function(sentinelEl) {\n sentinelEl.parentElement.removeChild(sentinelEl);\n });\n if (!this.options.skipRestoreFocus && this.elFocusedBeforeTrapFocus) this.elFocusedBeforeTrapFocus.focus();\n };\n /**\n * Wraps tab focus within `el` by adding two hidden sentinel divs which are\n * used to mark the beginning and the end of the tabbable region. When\n * focused, these sentinel elements redirect focus to the first/last\n * children elements of the tabbable region, ensuring that focus is trapped\n * within that region.\n */ FocusTrap.prototype.wrapTabFocus = function(el) {\n var _this = this;\n var sentinelStart = this.createSentinel();\n var sentinelEnd = this.createSentinel();\n sentinelStart.addEventListener('focus', function() {\n var focusableEls = _this.getFocusableElements(el);\n if (focusableEls.length > 0) focusableEls[focusableEls.length - 1].focus();\n });\n sentinelEnd.addEventListener('focus', function() {\n var focusableEls = _this.getFocusableElements(el);\n if (focusableEls.length > 0) focusableEls[0].focus();\n });\n el.insertBefore(sentinelStart, el.children[0]);\n el.appendChild(sentinelEnd);\n };\n /**\n * Focuses on `initialFocusEl` if defined and a child of the root element.\n * Otherwise, focuses on the first focusable child element of the root.\n */ FocusTrap.prototype.focusInitialElement = function(focusableEls, initialFocusEl) {\n var focusIndex = 0;\n if (initialFocusEl) focusIndex = Math.max(focusableEls.indexOf(initialFocusEl), 0);\n focusableEls[focusIndex].focus();\n };\n FocusTrap.prototype.getFocusableElements = function(root) {\n var focusableEls = [].slice.call(root.querySelectorAll('[autofocus], [tabindex], a, input, textarea, select, button'));\n return focusableEls.filter(function(el) {\n var isDisabledOrHidden = el.getAttribute('aria-disabled') === 'true' || el.getAttribute('disabled') != null || el.getAttribute('hidden') != null || el.getAttribute('aria-hidden') === 'true';\n var isTabbableAndVisible = el.tabIndex >= 0 && el.getBoundingClientRect().width > 0 && !el.classList.contains($eb9bb54a78ee410b$var$FOCUS_SENTINEL_CLASS) && !isDisabledOrHidden;\n var isProgrammaticallyHidden = false;\n if (isTabbableAndVisible) {\n var style = getComputedStyle(el);\n isProgrammaticallyHidden = style.display === 'none' || style.visibility === 'hidden';\n }\n return isTabbableAndVisible && !isProgrammaticallyHidden;\n });\n };\n FocusTrap.prototype.createSentinel = function() {\n var sentinel = document.createElement('div');\n sentinel.setAttribute('tabindex', '0');\n // Don't announce in screen readers.\n sentinel.setAttribute('aria-hidden', 'true');\n sentinel.classList.add($eb9bb54a78ee410b$var$FOCUS_SENTINEL_CLASS);\n return sentinel;\n };\n return FocusTrap;\n}();\n\n\n/**\n * @license\n * Copyright 2018 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ /**\n * @fileoverview A \"ponyfill\" is a polyfill that doesn't modify the global prototype chain.\n * This makes ponyfills safer than traditional polyfills, especially for libraries like MDC.\n */ function $f4789bcfa326043f$export$ff7f7c97cdce86e(element, selector) {\n if (element.closest) return element.closest(selector);\n var el = element;\n while(el){\n if ($f4789bcfa326043f$export$de994efd351b291c(el, selector)) return el;\n el = el.parentElement;\n }\n return null;\n}\nfunction $f4789bcfa326043f$export$de994efd351b291c(element, selector) {\n var nativeMatches = element.matches || element.webkitMatchesSelector || element.msMatchesSelector;\n return nativeMatches.call(element, selector);\n}\nfunction $f4789bcfa326043f$export$30f5493effae393e(element) {\n // Check the offsetParent. If the element inherits display: none from any\n // parent, the offsetParent property will be null (see\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent).\n // This check ensures we only clone the node when necessary.\n var htmlEl = element;\n if (htmlEl.offsetParent !== null) return htmlEl.scrollWidth;\n var clone = htmlEl.cloneNode(true);\n clone.style.setProperty('position', 'absolute');\n clone.style.setProperty('transform', 'translate(-9999px, -9999px)');\n document.documentElement.appendChild(clone);\n var scrollWidth = clone.scrollWidth;\n document.documentElement.removeChild(clone);\n return scrollWidth;\n}\n\n\n/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ \n\n/**\n * @license\n * Copyright 2019 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ /**\n * Determine whether the current browser supports passive event listeners, and\n * if so, use them.\n */ function $9d9aa0d3469cd217$export$82e1592afef3b60f(globalObj) {\n if (globalObj === void 0) globalObj = window;\n return $9d9aa0d3469cd217$var$supportsPassiveOption(globalObj) ? {\n passive: true\n } : false;\n}\nfunction $9d9aa0d3469cd217$var$supportsPassiveOption(globalObj) {\n if (globalObj === void 0) globalObj = window;\n // See\n // https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener\n var passiveSupported = false;\n try {\n var options = {\n // This function will be called when the browser\n // attempts to access the passive property.\n get passive () {\n passiveSupported = true;\n return false;\n }\n };\n var handler = function() {};\n globalObj.document.addEventListener('test', handler, options);\n globalObj.document.removeEventListener('test', handler, options);\n } catch (err) {\n passiveSupported = false;\n }\n return passiveSupported;\n}\n\n\n\n/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ \n\n/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ var $fd0eb02544dd3322$export$c1c0562ec8379000 = {\n // Ripple is a special case where the \"root\" component is really a \"mixin\" of sorts,\n // given that it's an 'upgrade' to an existing component. That being said it is the root\n // CSS class that all other CSS classes derive from.\n BG_FOCUSED: 'mdc-ripple-upgraded--background-focused',\n FG_ACTIVATION: 'mdc-ripple-upgraded--foreground-activation',\n FG_DEACTIVATION: 'mdc-ripple-upgraded--foreground-deactivation',\n ROOT: 'mdc-ripple-upgraded',\n UNBOUNDED: 'mdc-ripple-upgraded--unbounded'\n};\nvar $fd0eb02544dd3322$export$21c51bc433c16634 = {\n VAR_FG_SCALE: '--mdc-ripple-fg-scale',\n VAR_FG_SIZE: '--mdc-ripple-fg-size',\n VAR_FG_TRANSLATE_END: '--mdc-ripple-fg-translate-end',\n VAR_FG_TRANSLATE_START: '--mdc-ripple-fg-translate-start',\n VAR_LEFT: '--mdc-ripple-left',\n VAR_TOP: '--mdc-ripple-top'\n};\nvar $fd0eb02544dd3322$export$1f6c9cc012ebacae = {\n DEACTIVATION_TIMEOUT_MS: 225,\n FG_DEACTIVATION_MS: 150,\n INITIAL_ORIGIN_SCALE: 0.6,\n PADDING: 10,\n TAP_DELAY_MS: 300\n};\n\n\n/**\n * Stores result from supportsCssVariables to avoid redundant processing to\n * detect CSS custom variable support.\n */ var $df4bc532ae9a9f80$var$supportsCssVariables_;\nfunction $df4bc532ae9a9f80$export$599ecc0c8c1caa3e(windowObj, forceRefresh) {\n if (forceRefresh === void 0) forceRefresh = false;\n var CSS = windowObj.CSS;\n var supportsCssVars = $df4bc532ae9a9f80$var$supportsCssVariables_;\n if (typeof $df4bc532ae9a9f80$var$supportsCssVariables_ === 'boolean' && !forceRefresh) return $df4bc532ae9a9f80$var$supportsCssVariables_;\n var supportsFunctionPresent = CSS && typeof CSS.supports === 'function';\n if (!supportsFunctionPresent) return false;\n var explicitlySupportsCssVars = CSS.supports('--css-vars', 'yes');\n // See: https://bugs.webkit.org/show_bug.cgi?id=154669\n // See: README section on Safari\n var weAreFeatureDetectingSafari10plus = CSS.supports('(--css-vars: yes)') && CSS.supports('color', '#00000000');\n supportsCssVars = explicitlySupportsCssVars || weAreFeatureDetectingSafari10plus;\n if (!forceRefresh) $df4bc532ae9a9f80$var$supportsCssVariables_ = supportsCssVars;\n return supportsCssVars;\n}\nfunction $df4bc532ae9a9f80$export$82f3563636a128ae(evt, pageOffset, clientRect) {\n if (!evt) return {\n x: 0,\n y: 0\n };\n var x = pageOffset.x, y = pageOffset.y;\n var documentX = x + clientRect.left;\n var documentY = y + clientRect.top;\n var normalizedX;\n var normalizedY;\n // Determine touch point relative to the ripple container.\n if (evt.type === 'touchstart') {\n var touchEvent = evt;\n normalizedX = touchEvent.changedTouches[0].pageX - documentX;\n normalizedY = touchEvent.changedTouches[0].pageY - documentY;\n } else {\n var mouseEvent = evt;\n normalizedX = mouseEvent.pageX - documentX;\n normalizedY = mouseEvent.pageY - documentY;\n }\n return {\n x: normalizedX,\n y: normalizedY\n };\n}\n\n\n// Activation events registered on the root element of each instance for activation\nvar $bf1cd0cda6c64034$var$ACTIVATION_EVENT_TYPES = [\n 'touchstart',\n 'pointerdown',\n 'mousedown',\n 'keydown'\n];\n// Deactivation events registered on documentElement when a pointer-related down event occurs\nvar $bf1cd0cda6c64034$var$POINTER_DEACTIVATION_EVENT_TYPES = [\n 'touchend',\n 'pointerup',\n 'mouseup',\n 'contextmenu'\n];\n// simultaneous nested activations\nvar $bf1cd0cda6c64034$var$activatedTargets = [];\nvar $bf1cd0cda6c64034$export$fb5f028029d92ef5 = /** @class */ function(_super) {\n (0, $5c96a02c592fcff1$export$a8ba968b8961cb8a)(MDCRippleFoundation, _super);\n function MDCRippleFoundation(adapter) {\n var _this = _super.call(this, (0, $5c96a02c592fcff1$export$18ce0697a983be9b)((0, $5c96a02c592fcff1$export$18ce0697a983be9b)({}, MDCRippleFoundation.defaultAdapter), adapter)) || this;\n _this.activationAnimationHasEnded = false;\n _this.activationTimer = 0;\n _this.fgDeactivationRemovalTimer = 0;\n _this.fgScale = '0';\n _this.frame = {\n width: 0,\n height: 0\n };\n _this.initialSize = 0;\n _this.layoutFrame = 0;\n _this.maxRadius = 0;\n _this.unboundedCoords = {\n left: 0,\n top: 0\n };\n _this.activationState = _this.defaultActivationState();\n _this.activationTimerCallback = function() {\n _this.activationAnimationHasEnded = true;\n _this.runDeactivationUXLogicIfReady();\n };\n _this.activateHandler = function(e) {\n _this.activateImpl(e);\n };\n _this.deactivateHandler = function() {\n _this.deactivateImpl();\n };\n _this.focusHandler = function() {\n _this.handleFocus();\n };\n _this.blurHandler = function() {\n _this.handleBlur();\n };\n _this.resizeHandler = function() {\n _this.layout();\n };\n return _this;\n }\n Object.defineProperty(MDCRippleFoundation, \"cssClasses\", {\n get: function() {\n return 0, $fd0eb02544dd3322$export$c1c0562ec8379000;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCRippleFoundation, \"strings\", {\n get: function() {\n return 0, $fd0eb02544dd3322$export$21c51bc433c16634;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCRippleFoundation, \"numbers\", {\n get: function() {\n return 0, $fd0eb02544dd3322$export$1f6c9cc012ebacae;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCRippleFoundation, \"defaultAdapter\", {\n get: function() {\n return {\n addClass: function() {\n return undefined;\n },\n browserSupportsCssVars: function() {\n return true;\n },\n computeBoundingRect: function() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n width: 0,\n height: 0\n };\n },\n containsEventTarget: function() {\n return true;\n },\n deregisterDocumentInteractionHandler: function() {\n return undefined;\n },\n deregisterInteractionHandler: function() {\n return undefined;\n },\n deregisterResizeHandler: function() {\n return undefined;\n },\n getWindowPageOffset: function() {\n return {\n x: 0,\n y: 0\n };\n },\n isSurfaceActive: function() {\n return true;\n },\n isSurfaceDisabled: function() {\n return true;\n },\n isUnbounded: function() {\n return true;\n },\n registerDocumentInteractionHandler: function() {\n return undefined;\n },\n registerInteractionHandler: function() {\n return undefined;\n },\n registerResizeHandler: function() {\n return undefined;\n },\n removeClass: function() {\n return undefined;\n },\n updateCssVariable: function() {\n return undefined;\n }\n };\n },\n enumerable: false,\n configurable: true\n });\n MDCRippleFoundation.prototype.init = function() {\n var _this = this;\n var supportsPressRipple = this.supportsPressRipple();\n this.registerRootHandlers(supportsPressRipple);\n if (supportsPressRipple) {\n var _a = MDCRippleFoundation.cssClasses, ROOT_1 = _a.ROOT, UNBOUNDED_1 = _a.UNBOUNDED;\n requestAnimationFrame(function() {\n _this.adapter.addClass(ROOT_1);\n if (_this.adapter.isUnbounded()) {\n _this.adapter.addClass(UNBOUNDED_1);\n // Unbounded ripples need layout logic applied immediately to set coordinates for both shade and ripple\n _this.layoutInternal();\n }\n });\n }\n };\n MDCRippleFoundation.prototype.destroy = function() {\n var _this = this;\n if (this.supportsPressRipple()) {\n if (this.activationTimer) {\n clearTimeout(this.activationTimer);\n this.activationTimer = 0;\n this.adapter.removeClass(MDCRippleFoundation.cssClasses.FG_ACTIVATION);\n }\n if (this.fgDeactivationRemovalTimer) {\n clearTimeout(this.fgDeactivationRemovalTimer);\n this.fgDeactivationRemovalTimer = 0;\n this.adapter.removeClass(MDCRippleFoundation.cssClasses.FG_DEACTIVATION);\n }\n var _a = MDCRippleFoundation.cssClasses, ROOT_2 = _a.ROOT, UNBOUNDED_2 = _a.UNBOUNDED;\n requestAnimationFrame(function() {\n _this.adapter.removeClass(ROOT_2);\n _this.adapter.removeClass(UNBOUNDED_2);\n _this.removeCssVars();\n });\n }\n this.deregisterRootHandlers();\n this.deregisterDeactivationHandlers();\n };\n /**\n * @param evt Optional event containing position information.\n */ MDCRippleFoundation.prototype.activate = function(evt) {\n this.activateImpl(evt);\n };\n MDCRippleFoundation.prototype.deactivate = function() {\n this.deactivateImpl();\n };\n MDCRippleFoundation.prototype.layout = function() {\n var _this = this;\n if (this.layoutFrame) cancelAnimationFrame(this.layoutFrame);\n this.layoutFrame = requestAnimationFrame(function() {\n _this.layoutInternal();\n _this.layoutFrame = 0;\n });\n };\n MDCRippleFoundation.prototype.setUnbounded = function(unbounded) {\n var UNBOUNDED = MDCRippleFoundation.cssClasses.UNBOUNDED;\n if (unbounded) this.adapter.addClass(UNBOUNDED);\n else this.adapter.removeClass(UNBOUNDED);\n };\n MDCRippleFoundation.prototype.handleFocus = function() {\n var _this = this;\n requestAnimationFrame(function() {\n return _this.adapter.addClass(MDCRippleFoundation.cssClasses.BG_FOCUSED);\n });\n };\n MDCRippleFoundation.prototype.handleBlur = function() {\n var _this = this;\n requestAnimationFrame(function() {\n return _this.adapter.removeClass(MDCRippleFoundation.cssClasses.BG_FOCUSED);\n });\n };\n /**\n * We compute this property so that we are not querying information about the client\n * until the point in time where the foundation requests it. This prevents scenarios where\n * client-side feature-detection may happen too early, such as when components are rendered on the server\n * and then initialized at mount time on the client.\n */ MDCRippleFoundation.prototype.supportsPressRipple = function() {\n return this.adapter.browserSupportsCssVars();\n };\n MDCRippleFoundation.prototype.defaultActivationState = function() {\n return {\n activationEvent: undefined,\n hasDeactivationUXRun: false,\n isActivated: false,\n isProgrammatic: false,\n wasActivatedByPointer: false,\n wasElementMadeActive: false\n };\n };\n /**\n * supportsPressRipple Passed from init to save a redundant function call\n */ MDCRippleFoundation.prototype.registerRootHandlers = function(supportsPressRipple) {\n var e_1, _a;\n if (supportsPressRipple) {\n try {\n for(var ACTIVATION_EVENT_TYPES_1 = (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)($bf1cd0cda6c64034$var$ACTIVATION_EVENT_TYPES), ACTIVATION_EVENT_TYPES_1_1 = ACTIVATION_EVENT_TYPES_1.next(); !ACTIVATION_EVENT_TYPES_1_1.done; ACTIVATION_EVENT_TYPES_1_1 = ACTIVATION_EVENT_TYPES_1.next()){\n var evtType = ACTIVATION_EVENT_TYPES_1_1.value;\n this.adapter.registerInteractionHandler(evtType, this.activateHandler);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally{\n try {\n if (ACTIVATION_EVENT_TYPES_1_1 && !ACTIVATION_EVENT_TYPES_1_1.done && (_a = ACTIVATION_EVENT_TYPES_1.return)) _a.call(ACTIVATION_EVENT_TYPES_1);\n } finally{\n if (e_1) throw e_1.error;\n }\n }\n if (this.adapter.isUnbounded()) this.adapter.registerResizeHandler(this.resizeHandler);\n }\n this.adapter.registerInteractionHandler('focus', this.focusHandler);\n this.adapter.registerInteractionHandler('blur', this.blurHandler);\n };\n MDCRippleFoundation.prototype.registerDeactivationHandlers = function(evt) {\n var e_2, _a;\n if (evt.type === 'keydown') this.adapter.registerInteractionHandler('keyup', this.deactivateHandler);\n else try {\n for(var POINTER_DEACTIVATION_EVENT_TYPES_1 = (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)($bf1cd0cda6c64034$var$POINTER_DEACTIVATION_EVENT_TYPES), POINTER_DEACTIVATION_EVENT_TYPES_1_1 = POINTER_DEACTIVATION_EVENT_TYPES_1.next(); !POINTER_DEACTIVATION_EVENT_TYPES_1_1.done; POINTER_DEACTIVATION_EVENT_TYPES_1_1 = POINTER_DEACTIVATION_EVENT_TYPES_1.next()){\n var evtType = POINTER_DEACTIVATION_EVENT_TYPES_1_1.value;\n this.adapter.registerDocumentInteractionHandler(evtType, this.deactivateHandler);\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally{\n try {\n if (POINTER_DEACTIVATION_EVENT_TYPES_1_1 && !POINTER_DEACTIVATION_EVENT_TYPES_1_1.done && (_a = POINTER_DEACTIVATION_EVENT_TYPES_1.return)) _a.call(POINTER_DEACTIVATION_EVENT_TYPES_1);\n } finally{\n if (e_2) throw e_2.error;\n }\n }\n };\n MDCRippleFoundation.prototype.deregisterRootHandlers = function() {\n var e_3, _a;\n try {\n for(var ACTIVATION_EVENT_TYPES_2 = (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)($bf1cd0cda6c64034$var$ACTIVATION_EVENT_TYPES), ACTIVATION_EVENT_TYPES_2_1 = ACTIVATION_EVENT_TYPES_2.next(); !ACTIVATION_EVENT_TYPES_2_1.done; ACTIVATION_EVENT_TYPES_2_1 = ACTIVATION_EVENT_TYPES_2.next()){\n var evtType = ACTIVATION_EVENT_TYPES_2_1.value;\n this.adapter.deregisterInteractionHandler(evtType, this.activateHandler);\n }\n } catch (e_3_1) {\n e_3 = {\n error: e_3_1\n };\n } finally{\n try {\n if (ACTIVATION_EVENT_TYPES_2_1 && !ACTIVATION_EVENT_TYPES_2_1.done && (_a = ACTIVATION_EVENT_TYPES_2.return)) _a.call(ACTIVATION_EVENT_TYPES_2);\n } finally{\n if (e_3) throw e_3.error;\n }\n }\n this.adapter.deregisterInteractionHandler('focus', this.focusHandler);\n this.adapter.deregisterInteractionHandler('blur', this.blurHandler);\n if (this.adapter.isUnbounded()) this.adapter.deregisterResizeHandler(this.resizeHandler);\n };\n MDCRippleFoundation.prototype.deregisterDeactivationHandlers = function() {\n var e_4, _a;\n this.adapter.deregisterInteractionHandler('keyup', this.deactivateHandler);\n try {\n for(var POINTER_DEACTIVATION_EVENT_TYPES_2 = (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)($bf1cd0cda6c64034$var$POINTER_DEACTIVATION_EVENT_TYPES), POINTER_DEACTIVATION_EVENT_TYPES_2_1 = POINTER_DEACTIVATION_EVENT_TYPES_2.next(); !POINTER_DEACTIVATION_EVENT_TYPES_2_1.done; POINTER_DEACTIVATION_EVENT_TYPES_2_1 = POINTER_DEACTIVATION_EVENT_TYPES_2.next()){\n var evtType = POINTER_DEACTIVATION_EVENT_TYPES_2_1.value;\n this.adapter.deregisterDocumentInteractionHandler(evtType, this.deactivateHandler);\n }\n } catch (e_4_1) {\n e_4 = {\n error: e_4_1\n };\n } finally{\n try {\n if (POINTER_DEACTIVATION_EVENT_TYPES_2_1 && !POINTER_DEACTIVATION_EVENT_TYPES_2_1.done && (_a = POINTER_DEACTIVATION_EVENT_TYPES_2.return)) _a.call(POINTER_DEACTIVATION_EVENT_TYPES_2);\n } finally{\n if (e_4) throw e_4.error;\n }\n }\n };\n MDCRippleFoundation.prototype.removeCssVars = function() {\n var _this = this;\n var rippleStrings = MDCRippleFoundation.strings;\n var keys = Object.keys(rippleStrings);\n keys.forEach(function(key) {\n if (key.indexOf('VAR_') === 0) _this.adapter.updateCssVariable(rippleStrings[key], null);\n });\n };\n MDCRippleFoundation.prototype.activateImpl = function(evt) {\n var _this = this;\n if (this.adapter.isSurfaceDisabled()) return;\n var activationState = this.activationState;\n if (activationState.isActivated) return;\n // Avoid reacting to follow-on events fired by touch device after an already-processed user interaction\n var previousActivationEvent = this.previousActivationEvent;\n var isSameInteraction = previousActivationEvent && evt !== undefined && previousActivationEvent.type !== evt.type;\n if (isSameInteraction) return;\n activationState.isActivated = true;\n activationState.isProgrammatic = evt === undefined;\n activationState.activationEvent = evt;\n activationState.wasActivatedByPointer = activationState.isProgrammatic ? false : evt !== undefined && (evt.type === 'mousedown' || evt.type === 'touchstart' || evt.type === 'pointerdown');\n var hasActivatedChild = evt !== undefined && $bf1cd0cda6c64034$var$activatedTargets.length > 0 && $bf1cd0cda6c64034$var$activatedTargets.some(function(target) {\n return _this.adapter.containsEventTarget(target);\n });\n if (hasActivatedChild) {\n // Immediately reset activation state, while preserving logic that prevents touch follow-on events\n this.resetActivationState();\n return;\n }\n if (evt !== undefined) {\n $bf1cd0cda6c64034$var$activatedTargets.push(evt.target);\n this.registerDeactivationHandlers(evt);\n }\n activationState.wasElementMadeActive = this.checkElementMadeActive(evt);\n if (activationState.wasElementMadeActive) this.animateActivation();\n requestAnimationFrame(function() {\n // Reset array on next frame after the current event has had a chance to bubble to prevent ancestor ripples\n $bf1cd0cda6c64034$var$activatedTargets = [];\n if (!activationState.wasElementMadeActive && evt !== undefined && (evt.key === ' ' || evt.keyCode === 32)) {\n // If space was pressed, try again within an rAF call to detect :active, because different UAs report\n // active states inconsistently when they're called within event handling code:\n // - https://bugs.chromium.org/p/chromium/issues/detail?id=635971\n // - https://bugzilla.mozilla.org/show_bug.cgi?id=1293741\n // We try first outside rAF to support Edge, which does not exhibit this problem, but will crash if a CSS\n // variable is set within a rAF callback for a submit button interaction (#2241).\n activationState.wasElementMadeActive = _this.checkElementMadeActive(evt);\n if (activationState.wasElementMadeActive) _this.animateActivation();\n }\n if (!activationState.wasElementMadeActive) // Reset activation state immediately if element was not made active.\n _this.activationState = _this.defaultActivationState();\n });\n };\n MDCRippleFoundation.prototype.checkElementMadeActive = function(evt) {\n return evt !== undefined && evt.type === 'keydown' ? this.adapter.isSurfaceActive() : true;\n };\n MDCRippleFoundation.prototype.animateActivation = function() {\n var _this = this;\n var _a = MDCRippleFoundation.strings, VAR_FG_TRANSLATE_START = _a.VAR_FG_TRANSLATE_START, VAR_FG_TRANSLATE_END = _a.VAR_FG_TRANSLATE_END;\n var _b = MDCRippleFoundation.cssClasses, FG_DEACTIVATION = _b.FG_DEACTIVATION, FG_ACTIVATION = _b.FG_ACTIVATION;\n var DEACTIVATION_TIMEOUT_MS = MDCRippleFoundation.numbers.DEACTIVATION_TIMEOUT_MS;\n this.layoutInternal();\n var translateStart = '';\n var translateEnd = '';\n if (!this.adapter.isUnbounded()) {\n var _c = this.getFgTranslationCoordinates(), startPoint = _c.startPoint, endPoint = _c.endPoint;\n translateStart = startPoint.x + \"px, \" + startPoint.y + \"px\";\n translateEnd = endPoint.x + \"px, \" + endPoint.y + \"px\";\n }\n this.adapter.updateCssVariable(VAR_FG_TRANSLATE_START, translateStart);\n this.adapter.updateCssVariable(VAR_FG_TRANSLATE_END, translateEnd);\n // Cancel any ongoing activation/deactivation animations\n clearTimeout(this.activationTimer);\n clearTimeout(this.fgDeactivationRemovalTimer);\n this.rmBoundedActivationClasses();\n this.adapter.removeClass(FG_DEACTIVATION);\n // Force layout in order to re-trigger the animation.\n this.adapter.computeBoundingRect();\n this.adapter.addClass(FG_ACTIVATION);\n this.activationTimer = setTimeout(function() {\n _this.activationTimerCallback();\n }, DEACTIVATION_TIMEOUT_MS);\n };\n MDCRippleFoundation.prototype.getFgTranslationCoordinates = function() {\n var _a = this.activationState, activationEvent = _a.activationEvent, wasActivatedByPointer = _a.wasActivatedByPointer;\n var startPoint;\n if (wasActivatedByPointer) startPoint = (0, $df4bc532ae9a9f80$export$82f3563636a128ae)(activationEvent, this.adapter.getWindowPageOffset(), this.adapter.computeBoundingRect());\n else startPoint = {\n x: this.frame.width / 2,\n y: this.frame.height / 2\n };\n // Center the element around the start point.\n startPoint = {\n x: startPoint.x - this.initialSize / 2,\n y: startPoint.y - this.initialSize / 2\n };\n var endPoint = {\n x: this.frame.width / 2 - this.initialSize / 2,\n y: this.frame.height / 2 - this.initialSize / 2\n };\n return {\n startPoint: startPoint,\n endPoint: endPoint\n };\n };\n MDCRippleFoundation.prototype.runDeactivationUXLogicIfReady = function() {\n var _this = this;\n // This method is called both when a pointing device is released, and when the activation animation ends.\n // The deactivation animation should only run after both of those occur.\n var FG_DEACTIVATION = MDCRippleFoundation.cssClasses.FG_DEACTIVATION;\n var _a = this.activationState, hasDeactivationUXRun = _a.hasDeactivationUXRun, isActivated = _a.isActivated;\n var activationHasEnded = hasDeactivationUXRun || !isActivated;\n if (activationHasEnded && this.activationAnimationHasEnded) {\n this.rmBoundedActivationClasses();\n this.adapter.addClass(FG_DEACTIVATION);\n this.fgDeactivationRemovalTimer = setTimeout(function() {\n _this.adapter.removeClass(FG_DEACTIVATION);\n }, (0, $fd0eb02544dd3322$export$1f6c9cc012ebacae).FG_DEACTIVATION_MS);\n }\n };\n MDCRippleFoundation.prototype.rmBoundedActivationClasses = function() {\n var FG_ACTIVATION = MDCRippleFoundation.cssClasses.FG_ACTIVATION;\n this.adapter.removeClass(FG_ACTIVATION);\n this.activationAnimationHasEnded = false;\n this.adapter.computeBoundingRect();\n };\n MDCRippleFoundation.prototype.resetActivationState = function() {\n var _this = this;\n this.previousActivationEvent = this.activationState.activationEvent;\n this.activationState = this.defaultActivationState();\n // Touch devices may fire additional events for the same interaction within a short time.\n // Store the previous event until it's safe to assume that subsequent events are for new interactions.\n setTimeout(function() {\n return _this.previousActivationEvent = undefined;\n }, MDCRippleFoundation.numbers.TAP_DELAY_MS);\n };\n MDCRippleFoundation.prototype.deactivateImpl = function() {\n var _this = this;\n var activationState = this.activationState;\n // This can happen in scenarios such as when you have a keyup event that blurs the element.\n if (!activationState.isActivated) return;\n var state = (0, $5c96a02c592fcff1$export$18ce0697a983be9b)({}, activationState);\n if (activationState.isProgrammatic) {\n requestAnimationFrame(function() {\n _this.animateDeactivation(state);\n });\n this.resetActivationState();\n } else {\n this.deregisterDeactivationHandlers();\n requestAnimationFrame(function() {\n _this.activationState.hasDeactivationUXRun = true;\n _this.animateDeactivation(state);\n _this.resetActivationState();\n });\n }\n };\n MDCRippleFoundation.prototype.animateDeactivation = function(_a) {\n var wasActivatedByPointer = _a.wasActivatedByPointer, wasElementMadeActive = _a.wasElementMadeActive;\n if (wasActivatedByPointer || wasElementMadeActive) this.runDeactivationUXLogicIfReady();\n };\n MDCRippleFoundation.prototype.layoutInternal = function() {\n var _this = this;\n this.frame = this.adapter.computeBoundingRect();\n var maxDim = Math.max(this.frame.height, this.frame.width);\n // Surface diameter is treated differently for unbounded vs. bounded ripples.\n // Unbounded ripple diameter is calculated smaller since the surface is expected to already be padded appropriately\n // to extend the hitbox, and the ripple is expected to meet the edges of the padded hitbox (which is typically\n // square). Bounded ripples, on the other hand, are fully expected to expand beyond the surface's longest diameter\n // (calculated based on the diagonal plus a constant padding), and are clipped at the surface's border via\n // `overflow: hidden`.\n var getBoundedRadius = function() {\n var hypotenuse = Math.sqrt(Math.pow(_this.frame.width, 2) + Math.pow(_this.frame.height, 2));\n return hypotenuse + MDCRippleFoundation.numbers.PADDING;\n };\n this.maxRadius = this.adapter.isUnbounded() ? maxDim : getBoundedRadius();\n // Ripple is sized as a fraction of the largest dimension of the surface, then scales up using a CSS scale transform\n var initialSize = Math.floor(maxDim * MDCRippleFoundation.numbers.INITIAL_ORIGIN_SCALE);\n // Unbounded ripple size should always be even number to equally center align.\n if (this.adapter.isUnbounded() && initialSize % 2 !== 0) this.initialSize = initialSize - 1;\n else this.initialSize = initialSize;\n this.fgScale = \"\" + this.maxRadius / this.initialSize;\n this.updateLayoutCssVars();\n };\n MDCRippleFoundation.prototype.updateLayoutCssVars = function() {\n var _a = MDCRippleFoundation.strings, VAR_FG_SIZE = _a.VAR_FG_SIZE, VAR_LEFT = _a.VAR_LEFT, VAR_TOP = _a.VAR_TOP, VAR_FG_SCALE = _a.VAR_FG_SCALE;\n this.adapter.updateCssVariable(VAR_FG_SIZE, this.initialSize + \"px\");\n this.adapter.updateCssVariable(VAR_FG_SCALE, this.fgScale);\n if (this.adapter.isUnbounded()) {\n this.unboundedCoords = {\n left: Math.round(this.frame.width / 2 - this.initialSize / 2),\n top: Math.round(this.frame.height / 2 - this.initialSize / 2)\n };\n this.adapter.updateCssVariable(VAR_LEFT, this.unboundedCoords.left + \"px\");\n this.adapter.updateCssVariable(VAR_TOP, this.unboundedCoords.top + \"px\");\n }\n };\n return MDCRippleFoundation;\n}((0, $d29cc2d0f1026d01$export$a81b11d69c993162));\nvar // tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\n$bf1cd0cda6c64034$export$2e2bcd8739ae039 = $bf1cd0cda6c64034$export$fb5f028029d92ef5;\n\n\n\nvar $20e9578b2a8426ec$export$583ca2e118aa9669 = /** @class */ function(_super) {\n (0, $5c96a02c592fcff1$export$a8ba968b8961cb8a)(MDCRipple, _super);\n function MDCRipple() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.disabled = false;\n return _this;\n }\n MDCRipple.attachTo = function(root, opts) {\n if (opts === void 0) opts = {\n isUnbounded: undefined\n };\n var ripple = new MDCRipple(root);\n // Only override unbounded behavior if option is explicitly specified\n if (opts.isUnbounded !== undefined) ripple.unbounded = opts.isUnbounded;\n return ripple;\n };\n MDCRipple.createAdapter = function(instance) {\n return {\n addClass: function(className) {\n return instance.root.classList.add(className);\n },\n browserSupportsCssVars: function() {\n return $df4bc532ae9a9f80$export$599ecc0c8c1caa3e(window);\n },\n computeBoundingRect: function() {\n return instance.root.getBoundingClientRect();\n },\n containsEventTarget: function(target) {\n return instance.root.contains(target);\n },\n deregisterDocumentInteractionHandler: function(evtType, handler) {\n return document.documentElement.removeEventListener(evtType, handler, (0, $9d9aa0d3469cd217$export$82e1592afef3b60f)());\n },\n deregisterInteractionHandler: function(evtType, handler) {\n return instance.root.removeEventListener(evtType, handler, (0, $9d9aa0d3469cd217$export$82e1592afef3b60f)());\n },\n deregisterResizeHandler: function(handler) {\n return window.removeEventListener('resize', handler);\n },\n getWindowPageOffset: function() {\n return {\n x: window.pageXOffset,\n y: window.pageYOffset\n };\n },\n isSurfaceActive: function() {\n return (0, $f4789bcfa326043f$export$de994efd351b291c)(instance.root, ':active');\n },\n isSurfaceDisabled: function() {\n return Boolean(instance.disabled);\n },\n isUnbounded: function() {\n return Boolean(instance.unbounded);\n },\n registerDocumentInteractionHandler: function(evtType, handler) {\n return document.documentElement.addEventListener(evtType, handler, (0, $9d9aa0d3469cd217$export$82e1592afef3b60f)());\n },\n registerInteractionHandler: function(evtType, handler) {\n return instance.root.addEventListener(evtType, handler, (0, $9d9aa0d3469cd217$export$82e1592afef3b60f)());\n },\n registerResizeHandler: function(handler) {\n return window.addEventListener('resize', handler);\n },\n removeClass: function(className) {\n return instance.root.classList.remove(className);\n },\n updateCssVariable: function(varName, value) {\n return instance.root.style.setProperty(varName, value);\n }\n };\n };\n Object.defineProperty(MDCRipple.prototype, \"unbounded\", {\n get: function() {\n return Boolean(this.isUnbounded);\n },\n set: function(unbounded) {\n this.isUnbounded = Boolean(unbounded);\n this.setUnbounded();\n },\n enumerable: false,\n configurable: true\n });\n MDCRipple.prototype.activate = function() {\n this.foundation.activate();\n };\n MDCRipple.prototype.deactivate = function() {\n this.foundation.deactivate();\n };\n MDCRipple.prototype.layout = function() {\n this.foundation.layout();\n };\n MDCRipple.prototype.getDefaultFoundation = function() {\n return new (0, $bf1cd0cda6c64034$export$fb5f028029d92ef5)(MDCRipple.createAdapter(this));\n };\n MDCRipple.prototype.initialSyncWithDOM = function() {\n var root = this.root;\n this.isUnbounded = 'mdcRippleIsUnbounded' in root.dataset;\n };\n /**\n * Closure Compiler throws an access control error when directly accessing a\n * protected or private property inside a getter/setter, like unbounded above.\n * By accessing the protected property inside a method, we solve that problem.\n * That's why this function exists.\n */ MDCRipple.prototype.setUnbounded = function() {\n this.foundation.setUnbounded(Boolean(this.isUnbounded));\n };\n return MDCRipple;\n}((0, $0a13a1859770d71d$export$c3670872e5a4af8e));\n\n\n/**\n * @license\n * Copyright 2017 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ \n/**\n * @license\n * Copyright 2020 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ /**\n * AnimationFrame provides a user-friendly abstraction around requesting\n * and canceling animation frames.\n */ var $22ecda001003cf6d$export$1f3d5b43727c648a = /** @class */ function() {\n function AnimationFrame() {\n this.rafIDs = new Map();\n }\n /**\n * Requests an animation frame. Cancels any existing frame with the same key.\n * @param {string} key The key for this callback.\n * @param {FrameRequestCallback} callback The callback to be executed.\n */ AnimationFrame.prototype.request = function(key, callback) {\n var _this = this;\n this.cancel(key);\n var frameID = requestAnimationFrame(function(frame) {\n _this.rafIDs.delete(key);\n // Callback must come *after* the key is deleted so that nested calls to\n // request with the same key are not deleted.\n callback(frame);\n });\n this.rafIDs.set(key, frameID);\n };\n /**\n * Cancels a queued callback with the given key.\n * @param {string} key The key for this callback.\n */ AnimationFrame.prototype.cancel = function(key) {\n var rafID = this.rafIDs.get(key);\n if (rafID) {\n cancelAnimationFrame(rafID);\n this.rafIDs.delete(key);\n }\n };\n /**\n * Cancels all queued callback.\n */ AnimationFrame.prototype.cancelAll = function() {\n var _this = this;\n // Need to use forEach because it's the only iteration method supported\n // by IE11. Suppress the underscore because we don't need it.\n // tslint:disable-next-line:enforce-name-casing\n this.rafIDs.forEach(function(_, key) {\n _this.cancel(key);\n });\n };\n /**\n * Returns the queue of unexecuted callback keys.\n */ AnimationFrame.prototype.getQueue = function() {\n var queue = [];\n // Need to use forEach because it's the only iteration method supported\n // by IE11. Suppress the underscore because we don't need it.\n // tslint:disable-next-line:enforce-name-casing\n this.rafIDs.forEach(function(_, key) {\n queue.push(key);\n });\n return queue;\n };\n return AnimationFrame;\n}();\n\n\n\n/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ var $e00bef1e7bfd6d3e$export$c1c0562ec8379000 = {\n CLOSING: 'mdc-dialog--closing',\n OPEN: 'mdc-dialog--open',\n OPENING: 'mdc-dialog--opening',\n SCROLLABLE: 'mdc-dialog--scrollable',\n SCROLL_LOCK: 'mdc-dialog-scroll-lock',\n STACKED: 'mdc-dialog--stacked',\n FULLSCREEN: 'mdc-dialog--fullscreen',\n // Class for showing a scroll divider on full-screen dialog header element.\n // Should only be displayed on scrollable content, when the dialog content is\n // scrolled \"underneath\" the header.\n SCROLL_DIVIDER_HEADER: 'mdc-dialog-scroll-divider-header',\n // Class for showing a scroll divider on a full-screen dialog footer element.\n // Should only be displayed on scrolalble content, when the dialog content is\n // obscured \"underneath\" the footer.\n SCROLL_DIVIDER_FOOTER: 'mdc-dialog-scroll-divider-footer',\n // The \"surface scrim\" is a scrim covering only the surface of a dialog. This\n // is used in situations where a confirmation dialog is shown over an already\n // opened full-screen dialog. On larger screen-sizes, the full-screen dialog\n // is sized as a modal and so in these situations we display a \"surface scrim\"\n // to prevent a \"double scrim\" (where the scrim from the secondary\n // confirmation dialog would overlap with the scrim from the full-screen\n // dialog).\n SURFACE_SCRIM_SHOWN: 'mdc-dialog__surface-scrim--shown',\n // \"Showing\" animating class for the surface-scrim.\n SURFACE_SCRIM_SHOWING: 'mdc-dialog__surface-scrim--showing',\n // \"Hiding\" animating class for the surface-scrim.\n SURFACE_SCRIM_HIDING: 'mdc-dialog__surface-scrim--hiding',\n // Class to hide a dialog's scrim (used in conjunction with a surface-scrim).\n // Note that we only hide the original scrim rather than removing it entirely\n // to prevent interactions with the content behind this scrim, and to capture\n // scrim clicks.\n SCRIM_HIDDEN: 'mdc-dialog__scrim--hidden'\n};\nvar $e00bef1e7bfd6d3e$export$21c51bc433c16634 = {\n ACTION_ATTRIBUTE: 'data-mdc-dialog-action',\n BUTTON_DEFAULT_ATTRIBUTE: 'data-mdc-dialog-button-default',\n BUTTON_SELECTOR: '.mdc-dialog__button',\n CLOSED_EVENT: 'MDCDialog:closed',\n CLOSE_ACTION: 'close',\n CLOSING_EVENT: 'MDCDialog:closing',\n CONTAINER_SELECTOR: '.mdc-dialog__container',\n CONTENT_SELECTOR: '.mdc-dialog__content',\n DESTROY_ACTION: 'destroy',\n INITIAL_FOCUS_ATTRIBUTE: 'data-mdc-dialog-initial-focus',\n OPENED_EVENT: 'MDCDialog:opened',\n OPENING_EVENT: 'MDCDialog:opening',\n SCRIM_SELECTOR: '.mdc-dialog__scrim',\n SUPPRESS_DEFAULT_PRESS_SELECTOR: [\n 'textarea',\n '.mdc-menu .mdc-list-item',\n '.mdc-menu .mdc-deprecated-list-item'\n ].join(', '),\n SURFACE_SELECTOR: '.mdc-dialog__surface'\n};\nvar $e00bef1e7bfd6d3e$export$1f6c9cc012ebacae = {\n DIALOG_ANIMATION_CLOSE_TIME_MS: 75,\n DIALOG_ANIMATION_OPEN_TIME_MS: 150\n};\n\n\nvar $4b6d9c4c22d1910a$var$AnimationKeys;\n(function(AnimationKeys) {\n AnimationKeys[\"POLL_SCROLL_POS\"] = \"poll_scroll_position\";\n AnimationKeys[\"POLL_LAYOUT_CHANGE\"] = \"poll_layout_change\";\n})($4b6d9c4c22d1910a$var$AnimationKeys || ($4b6d9c4c22d1910a$var$AnimationKeys = {}));\nvar $4b6d9c4c22d1910a$export$dac9922df5f517f1 = /** @class */ function(_super) {\n (0, $5c96a02c592fcff1$export$a8ba968b8961cb8a)(MDCDialogFoundation, _super);\n function MDCDialogFoundation(adapter) {\n var _this = _super.call(this, (0, $5c96a02c592fcff1$export$18ce0697a983be9b)((0, $5c96a02c592fcff1$export$18ce0697a983be9b)({}, MDCDialogFoundation.defaultAdapter), adapter)) || this;\n _this.dialogOpen = false;\n _this.isFullscreen = false;\n _this.animationFrame = 0;\n _this.animationTimer = 0;\n _this.escapeKeyAction = (0, $e00bef1e7bfd6d3e$export$21c51bc433c16634).CLOSE_ACTION;\n _this.scrimClickAction = (0, $e00bef1e7bfd6d3e$export$21c51bc433c16634).CLOSE_ACTION;\n _this.autoStackButtons = true;\n _this.areButtonsStacked = false;\n _this.suppressDefaultPressSelector = (0, $e00bef1e7bfd6d3e$export$21c51bc433c16634).SUPPRESS_DEFAULT_PRESS_SELECTOR;\n _this.animFrame = new (0, $22ecda001003cf6d$export$1f3d5b43727c648a)();\n _this.contentScrollHandler = function() {\n _this.handleScrollEvent();\n };\n _this.windowResizeHandler = function() {\n _this.layout();\n };\n _this.windowOrientationChangeHandler = function() {\n _this.layout();\n };\n return _this;\n }\n Object.defineProperty(MDCDialogFoundation, \"cssClasses\", {\n get: function() {\n return 0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCDialogFoundation, \"strings\", {\n get: function() {\n return 0, $e00bef1e7bfd6d3e$export$21c51bc433c16634;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCDialogFoundation, \"numbers\", {\n get: function() {\n return 0, $e00bef1e7bfd6d3e$export$1f6c9cc012ebacae;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCDialogFoundation, \"defaultAdapter\", {\n get: function() {\n return {\n addBodyClass: function() {\n return undefined;\n },\n addClass: function() {\n return undefined;\n },\n areButtonsStacked: function() {\n return false;\n },\n clickDefaultButton: function() {\n return undefined;\n },\n eventTargetMatches: function() {\n return false;\n },\n getActionFromEvent: function() {\n return '';\n },\n getInitialFocusEl: function() {\n return null;\n },\n hasClass: function() {\n return false;\n },\n isContentScrollable: function() {\n return false;\n },\n notifyClosed: function() {\n return undefined;\n },\n notifyClosing: function() {\n return undefined;\n },\n notifyOpened: function() {\n return undefined;\n },\n notifyOpening: function() {\n return undefined;\n },\n releaseFocus: function() {\n return undefined;\n },\n removeBodyClass: function() {\n return undefined;\n },\n removeClass: function() {\n return undefined;\n },\n reverseButtons: function() {\n return undefined;\n },\n trapFocus: function() {\n return undefined;\n },\n registerContentEventHandler: function() {\n return undefined;\n },\n deregisterContentEventHandler: function() {\n return undefined;\n },\n isScrollableContentAtTop: function() {\n return false;\n },\n isScrollableContentAtBottom: function() {\n return false;\n },\n registerWindowEventHandler: function() {\n return undefined;\n },\n deregisterWindowEventHandler: function() {\n return undefined;\n }\n };\n },\n enumerable: false,\n configurable: true\n });\n MDCDialogFoundation.prototype.init = function() {\n if (this.adapter.hasClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).STACKED)) this.setAutoStackButtons(false);\n this.isFullscreen = this.adapter.hasClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).FULLSCREEN);\n };\n MDCDialogFoundation.prototype.destroy = function() {\n if (this.animationTimer) {\n clearTimeout(this.animationTimer);\n this.handleAnimationTimerEnd();\n }\n if (this.isFullscreen) this.adapter.deregisterContentEventHandler('scroll', this.contentScrollHandler);\n this.animFrame.cancelAll();\n this.adapter.deregisterWindowEventHandler('resize', this.windowResizeHandler);\n this.adapter.deregisterWindowEventHandler('orientationchange', this.windowOrientationChangeHandler);\n };\n MDCDialogFoundation.prototype.open = function(dialogOptions) {\n var _this = this;\n this.dialogOpen = true;\n this.adapter.notifyOpening();\n this.adapter.addClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).OPENING);\n if (this.isFullscreen) // A scroll event listener is registered even if the dialog is not\n // scrollable on open, since the window resize event, or orientation\n // change may make the dialog scrollable after it is opened.\n this.adapter.registerContentEventHandler('scroll', this.contentScrollHandler);\n if (dialogOptions && dialogOptions.isAboveFullscreenDialog) this.adapter.addClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SCRIM_HIDDEN);\n this.adapter.registerWindowEventHandler('resize', this.windowResizeHandler);\n this.adapter.registerWindowEventHandler('orientationchange', this.windowOrientationChangeHandler);\n // Wait a frame once display is no longer \"none\", to establish basis for\n // animation\n this.runNextAnimationFrame(function() {\n _this.adapter.addClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).OPEN);\n _this.adapter.addBodyClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SCROLL_LOCK);\n _this.layout();\n _this.animationTimer = setTimeout(function() {\n _this.handleAnimationTimerEnd();\n _this.adapter.trapFocus(_this.adapter.getInitialFocusEl());\n _this.adapter.notifyOpened();\n }, (0, $e00bef1e7bfd6d3e$export$1f6c9cc012ebacae).DIALOG_ANIMATION_OPEN_TIME_MS);\n });\n };\n MDCDialogFoundation.prototype.close = function(action) {\n var _this = this;\n if (action === void 0) action = '';\n if (!this.dialogOpen) // Avoid redundant close calls (and events), e.g. from keydown on elements\n // that inherently emit click\n return;\n this.dialogOpen = false;\n this.adapter.notifyClosing(action);\n this.adapter.addClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).CLOSING);\n this.adapter.removeClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).OPEN);\n this.adapter.removeBodyClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SCROLL_LOCK);\n if (this.isFullscreen) this.adapter.deregisterContentEventHandler('scroll', this.contentScrollHandler);\n this.adapter.deregisterWindowEventHandler('resize', this.windowResizeHandler);\n this.adapter.deregisterWindowEventHandler('orientationchange', this.windowOrientationChangeHandler);\n cancelAnimationFrame(this.animationFrame);\n this.animationFrame = 0;\n clearTimeout(this.animationTimer);\n this.animationTimer = setTimeout(function() {\n _this.adapter.releaseFocus();\n _this.handleAnimationTimerEnd();\n _this.adapter.notifyClosed(action);\n }, (0, $e00bef1e7bfd6d3e$export$1f6c9cc012ebacae).DIALOG_ANIMATION_CLOSE_TIME_MS);\n };\n /**\n * Used only in instances of showing a secondary dialog over a full-screen\n * dialog. Shows the \"surface scrim\" displayed over the full-screen dialog.\n */ MDCDialogFoundation.prototype.showSurfaceScrim = function() {\n var _this = this;\n this.adapter.addClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SURFACE_SCRIM_SHOWING);\n this.runNextAnimationFrame(function() {\n _this.adapter.addClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SURFACE_SCRIM_SHOWN);\n });\n };\n /**\n * Used only in instances of showing a secondary dialog over a full-screen\n * dialog. Hides the \"surface scrim\" displayed over the full-screen dialog.\n */ MDCDialogFoundation.prototype.hideSurfaceScrim = function() {\n this.adapter.removeClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SURFACE_SCRIM_SHOWN);\n this.adapter.addClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SURFACE_SCRIM_HIDING);\n };\n /**\n * Handles `transitionend` event triggered when surface scrim animation is\n * finished.\n */ MDCDialogFoundation.prototype.handleSurfaceScrimTransitionEnd = function() {\n this.adapter.removeClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SURFACE_SCRIM_HIDING);\n this.adapter.removeClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SURFACE_SCRIM_SHOWING);\n };\n MDCDialogFoundation.prototype.isOpen = function() {\n return this.dialogOpen;\n };\n MDCDialogFoundation.prototype.getEscapeKeyAction = function() {\n return this.escapeKeyAction;\n };\n MDCDialogFoundation.prototype.setEscapeKeyAction = function(action) {\n this.escapeKeyAction = action;\n };\n MDCDialogFoundation.prototype.getScrimClickAction = function() {\n return this.scrimClickAction;\n };\n MDCDialogFoundation.prototype.setScrimClickAction = function(action) {\n this.scrimClickAction = action;\n };\n MDCDialogFoundation.prototype.getAutoStackButtons = function() {\n return this.autoStackButtons;\n };\n MDCDialogFoundation.prototype.setAutoStackButtons = function(autoStack) {\n this.autoStackButtons = autoStack;\n };\n MDCDialogFoundation.prototype.getSuppressDefaultPressSelector = function() {\n return this.suppressDefaultPressSelector;\n };\n MDCDialogFoundation.prototype.setSuppressDefaultPressSelector = function(selector) {\n this.suppressDefaultPressSelector = selector;\n };\n MDCDialogFoundation.prototype.layout = function() {\n var _this = this;\n this.animFrame.request($4b6d9c4c22d1910a$var$AnimationKeys.POLL_LAYOUT_CHANGE, function() {\n _this.layoutInternal();\n });\n };\n /** Handles click on the dialog root element. */ MDCDialogFoundation.prototype.handleClick = function(evt) {\n var isScrim = this.adapter.eventTargetMatches(evt.target, (0, $e00bef1e7bfd6d3e$export$21c51bc433c16634).SCRIM_SELECTOR);\n // Check for scrim click first since it doesn't require querying ancestors.\n if (isScrim && this.scrimClickAction !== '') this.close(this.scrimClickAction);\n else {\n var action = this.adapter.getActionFromEvent(evt);\n if (action) this.close(action);\n }\n };\n /** Handles keydown on the dialog root element. */ MDCDialogFoundation.prototype.handleKeydown = function(evt) {\n var isEnter = evt.key === 'Enter' || evt.keyCode === 13;\n if (!isEnter) return;\n var action = this.adapter.getActionFromEvent(evt);\n if (action) // Action button callback is handled in `handleClick`,\n // since space/enter keydowns on buttons trigger click events.\n return;\n // `composedPath` is used here, when available, to account for use cases\n // where a target meant to suppress the default press behaviour\n // may exist in a shadow root.\n // For example, a textarea inside a web component:\n // \n // \n // #shadow-root (open)\n // \n // #shadow-root (open)\n // \n // \n // \n // \n var target = evt.composedPath ? evt.composedPath()[0] : evt.target;\n var isDefault = this.suppressDefaultPressSelector ? !this.adapter.eventTargetMatches(target, this.suppressDefaultPressSelector) : true;\n if (isEnter && isDefault) this.adapter.clickDefaultButton();\n };\n /** Handles keydown on the document. */ MDCDialogFoundation.prototype.handleDocumentKeydown = function(evt) {\n var isEscape = evt.key === 'Escape' || evt.keyCode === 27;\n if (isEscape && this.escapeKeyAction !== '') this.close(this.escapeKeyAction);\n };\n /**\n * Handles scroll event on the dialog's content element -- showing a scroll\n * divider on the header or footer based on the scroll position. This handler\n * should only be registered on full-screen dialogs with scrollable content.\n */ MDCDialogFoundation.prototype.handleScrollEvent = function() {\n var _this = this;\n // Since scroll events can fire at a high rate, we throttle these events by\n // using requestAnimationFrame.\n this.animFrame.request($4b6d9c4c22d1910a$var$AnimationKeys.POLL_SCROLL_POS, function() {\n _this.toggleScrollDividerHeader();\n _this.toggleScrollDividerFooter();\n });\n };\n MDCDialogFoundation.prototype.layoutInternal = function() {\n if (this.autoStackButtons) this.detectStackedButtons();\n this.toggleScrollableClasses();\n };\n MDCDialogFoundation.prototype.handleAnimationTimerEnd = function() {\n this.animationTimer = 0;\n this.adapter.removeClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).OPENING);\n this.adapter.removeClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).CLOSING);\n };\n /**\n * Runs the given logic on the next animation frame, using setTimeout to\n * factor in Firefox reflow behavior.\n */ MDCDialogFoundation.prototype.runNextAnimationFrame = function(callback) {\n var _this = this;\n cancelAnimationFrame(this.animationFrame);\n this.animationFrame = requestAnimationFrame(function() {\n _this.animationFrame = 0;\n clearTimeout(_this.animationTimer);\n _this.animationTimer = setTimeout(callback, 0);\n });\n };\n MDCDialogFoundation.prototype.detectStackedButtons = function() {\n // Remove the class first to let us measure the buttons' natural positions.\n this.adapter.removeClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).STACKED);\n var areButtonsStacked = this.adapter.areButtonsStacked();\n if (areButtonsStacked) this.adapter.addClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).STACKED);\n if (areButtonsStacked !== this.areButtonsStacked) {\n this.adapter.reverseButtons();\n this.areButtonsStacked = areButtonsStacked;\n }\n };\n MDCDialogFoundation.prototype.toggleScrollableClasses = function() {\n // Remove the class first to let us measure the natural height of the\n // content.\n this.adapter.removeClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SCROLLABLE);\n if (this.adapter.isContentScrollable()) {\n this.adapter.addClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SCROLLABLE);\n if (this.isFullscreen) {\n // If dialog is full-screen and scrollable, check if a scroll divider\n // should be shown.\n this.toggleScrollDividerHeader();\n this.toggleScrollDividerFooter();\n }\n }\n };\n MDCDialogFoundation.prototype.toggleScrollDividerHeader = function() {\n if (!this.adapter.isScrollableContentAtTop()) this.adapter.addClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SCROLL_DIVIDER_HEADER);\n else if (this.adapter.hasClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SCROLL_DIVIDER_HEADER)) this.adapter.removeClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SCROLL_DIVIDER_HEADER);\n };\n MDCDialogFoundation.prototype.toggleScrollDividerFooter = function() {\n if (!this.adapter.isScrollableContentAtBottom()) this.adapter.addClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SCROLL_DIVIDER_FOOTER);\n else if (this.adapter.hasClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SCROLL_DIVIDER_FOOTER)) this.adapter.removeClass((0, $e00bef1e7bfd6d3e$export$c1c0562ec8379000).SCROLL_DIVIDER_FOOTER);\n };\n return MDCDialogFoundation;\n}((0, $d29cc2d0f1026d01$export$a81b11d69c993162));\nvar // tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\n$4b6d9c4c22d1910a$export$2e2bcd8739ae039 = $4b6d9c4c22d1910a$export$dac9922df5f517f1;\n\n\n/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ function $660d158ad6463612$export$48de15952f6ad658(surfaceEl, focusTrapFactory, initialFocusEl) {\n return focusTrapFactory(surfaceEl, {\n initialFocusEl: initialFocusEl\n });\n}\nfunction $660d158ad6463612$export$2bb74740c4e19def(el) {\n return el ? el.scrollHeight > el.offsetHeight : false;\n}\nfunction $660d158ad6463612$export$d4b9b9a59340cfb1(el) {\n return el ? el.scrollTop === 0 : false;\n}\nfunction $660d158ad6463612$export$d6bf3795025aa911(el) {\n return el ? Math.ceil(el.scrollHeight - el.scrollTop) === el.clientHeight : false;\n}\nfunction $660d158ad6463612$export$f6479bf5b3eac5ae(els) {\n var tops = new Set();\n [].forEach.call(els, function(el) {\n return tops.add(el.offsetTop);\n });\n return tops.size > 1;\n}\n\n\nvar $38d6c657ee62cba7$var$strings = (0, $4b6d9c4c22d1910a$export$dac9922df5f517f1).strings;\nvar $38d6c657ee62cba7$export$6808244b173e4b98 = /** @class */ function(_super) {\n (0, $5c96a02c592fcff1$export$a8ba968b8961cb8a)(MDCDialog, _super);\n function MDCDialog() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(MDCDialog.prototype, \"isOpen\", {\n get: function() {\n return this.foundation.isOpen();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCDialog.prototype, \"escapeKeyAction\", {\n get: function() {\n return this.foundation.getEscapeKeyAction();\n },\n set: function(action) {\n this.foundation.setEscapeKeyAction(action);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCDialog.prototype, \"scrimClickAction\", {\n get: function() {\n return this.foundation.getScrimClickAction();\n },\n set: function(action) {\n this.foundation.setScrimClickAction(action);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCDialog.prototype, \"autoStackButtons\", {\n get: function() {\n return this.foundation.getAutoStackButtons();\n },\n set: function(autoStack) {\n this.foundation.setAutoStackButtons(autoStack);\n },\n enumerable: false,\n configurable: true\n });\n MDCDialog.attachTo = function(root) {\n return new MDCDialog(root);\n };\n MDCDialog.prototype.initialize = function(focusTrapFactory) {\n var e_1, _a;\n if (focusTrapFactory === void 0) focusTrapFactory = function(el, focusOptions) {\n return new (0, $eb9bb54a78ee410b$export$34eba2437817a67b)(el, focusOptions);\n };\n var container = this.root.querySelector($38d6c657ee62cba7$var$strings.CONTAINER_SELECTOR);\n if (!container) throw new Error(\"Dialog component requires a \" + $38d6c657ee62cba7$var$strings.CONTAINER_SELECTOR + \" container element\");\n this.container = container;\n this.content = this.root.querySelector($38d6c657ee62cba7$var$strings.CONTENT_SELECTOR);\n this.buttons = [].slice.call(this.root.querySelectorAll($38d6c657ee62cba7$var$strings.BUTTON_SELECTOR));\n this.defaultButton = this.root.querySelector(\"[\" + $38d6c657ee62cba7$var$strings.BUTTON_DEFAULT_ATTRIBUTE + \"]\");\n this.focusTrapFactory = focusTrapFactory;\n this.buttonRipples = [];\n try {\n for(var _b = (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)(this.buttons), _c = _b.next(); !_c.done; _c = _b.next()){\n var buttonEl = _c.value;\n this.buttonRipples.push(new (0, $20e9578b2a8426ec$export$583ca2e118aa9669)(buttonEl));\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally{\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally{\n if (e_1) throw e_1.error;\n }\n }\n };\n MDCDialog.prototype.initialSyncWithDOM = function() {\n var _this = this;\n this.focusTrap = $660d158ad6463612$export$48de15952f6ad658(this.container, this.focusTrapFactory, this.getInitialFocusEl() || undefined);\n this.handleClick = this.foundation.handleClick.bind(this.foundation);\n this.handleKeydown = this.foundation.handleKeydown.bind(this.foundation);\n this.handleDocumentKeydown = this.foundation.handleDocumentKeydown.bind(this.foundation);\n // this.handleLayout = this.layout.bind(this);\n this.handleOpening = function() {\n document.addEventListener('keydown', _this.handleDocumentKeydown);\n };\n this.handleClosing = function() {\n document.removeEventListener('keydown', _this.handleDocumentKeydown);\n };\n this.listen('click', this.handleClick);\n this.listen('keydown', this.handleKeydown);\n this.listen($38d6c657ee62cba7$var$strings.OPENING_EVENT, this.handleOpening);\n this.listen($38d6c657ee62cba7$var$strings.CLOSING_EVENT, this.handleClosing);\n };\n MDCDialog.prototype.destroy = function() {\n this.unlisten('click', this.handleClick);\n this.unlisten('keydown', this.handleKeydown);\n this.unlisten($38d6c657ee62cba7$var$strings.OPENING_EVENT, this.handleOpening);\n this.unlisten($38d6c657ee62cba7$var$strings.CLOSING_EVENT, this.handleClosing);\n this.handleClosing();\n this.buttonRipples.forEach(function(ripple) {\n ripple.destroy();\n });\n _super.prototype.destroy.call(this);\n };\n MDCDialog.prototype.layout = function() {\n this.foundation.layout();\n };\n MDCDialog.prototype.open = function() {\n this.foundation.open();\n };\n MDCDialog.prototype.close = function(action) {\n if (action === void 0) action = '';\n this.foundation.close(action);\n };\n MDCDialog.prototype.getDefaultFoundation = function() {\n var _this = this;\n // DO NOT INLINE this variable. For backward compatibility, foundations take a Partial.\n // To ensure we don't accidentally omit any methods, we need a separate, strongly typed adapter variable.\n var adapter = {\n addBodyClass: function(className) {\n return document.body.classList.add(className);\n },\n addClass: function(className) {\n return _this.root.classList.add(className);\n },\n areButtonsStacked: function() {\n return $660d158ad6463612$export$f6479bf5b3eac5ae(_this.buttons);\n },\n clickDefaultButton: function() {\n if (_this.defaultButton && !_this.defaultButton.disabled) _this.defaultButton.click();\n },\n eventTargetMatches: function(target, selector) {\n return target ? (0, $f4789bcfa326043f$export$de994efd351b291c)(target, selector) : false;\n },\n getActionFromEvent: function(evt) {\n if (!evt.target) return '';\n var element = (0, $f4789bcfa326043f$export$ff7f7c97cdce86e)(evt.target, \"[\" + $38d6c657ee62cba7$var$strings.ACTION_ATTRIBUTE + \"]\");\n return element && element.getAttribute($38d6c657ee62cba7$var$strings.ACTION_ATTRIBUTE);\n },\n getInitialFocusEl: function() {\n return _this.getInitialFocusEl();\n },\n hasClass: function(className) {\n return _this.root.classList.contains(className);\n },\n isContentScrollable: function() {\n return $660d158ad6463612$export$2bb74740c4e19def(_this.content);\n },\n notifyClosed: function(action) {\n return _this.emit($38d6c657ee62cba7$var$strings.CLOSED_EVENT, action ? {\n action: action\n } : {});\n },\n notifyClosing: function(action) {\n return _this.emit($38d6c657ee62cba7$var$strings.CLOSING_EVENT, action ? {\n action: action\n } : {});\n },\n notifyOpened: function() {\n return _this.emit($38d6c657ee62cba7$var$strings.OPENED_EVENT, {});\n },\n notifyOpening: function() {\n return _this.emit($38d6c657ee62cba7$var$strings.OPENING_EVENT, {});\n },\n releaseFocus: function() {\n _this.focusTrap.releaseFocus();\n },\n removeBodyClass: function(className) {\n return document.body.classList.remove(className);\n },\n removeClass: function(className) {\n return _this.root.classList.remove(className);\n },\n reverseButtons: function() {\n _this.buttons.reverse();\n _this.buttons.forEach(function(button) {\n button.parentElement.appendChild(button);\n });\n },\n trapFocus: function() {\n _this.focusTrap.trapFocus();\n },\n registerContentEventHandler: function(evt, handler) {\n if (_this.content instanceof HTMLElement) _this.content.addEventListener(evt, handler);\n },\n deregisterContentEventHandler: function(evt, handler) {\n if (_this.content instanceof HTMLElement) _this.content.removeEventListener(evt, handler);\n },\n isScrollableContentAtTop: function() {\n return $660d158ad6463612$export$d4b9b9a59340cfb1(_this.content);\n },\n isScrollableContentAtBottom: function() {\n return $660d158ad6463612$export$d6bf3795025aa911(_this.content);\n },\n registerWindowEventHandler: function(evt, handler) {\n window.addEventListener(evt, handler);\n },\n deregisterWindowEventHandler: function(evt, handler) {\n window.removeEventListener(evt, handler);\n }\n };\n return new (0, $4b6d9c4c22d1910a$export$dac9922df5f517f1)(adapter);\n };\n MDCDialog.prototype.getInitialFocusEl = function() {\n return this.root.querySelector(\"[\" + $38d6c657ee62cba7$var$strings.INITIAL_FOCUS_ATTRIBUTE + \"]\");\n };\n return MDCDialog;\n}((0, $0a13a1859770d71d$export$c3670872e5a4af8e));\n\n\n/**\n * @license\n * Copyright 2019 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ \n\n/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ \n/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ var $d3b9476725b396f0$var$cssPropertyNameMap = {\n animation: {\n prefixed: '-webkit-animation',\n standard: 'animation'\n },\n transform: {\n prefixed: '-webkit-transform',\n standard: 'transform'\n },\n transition: {\n prefixed: '-webkit-transition',\n standard: 'transition'\n }\n};\nvar $d3b9476725b396f0$var$jsEventTypeMap = {\n animationend: {\n cssProperty: 'animation',\n prefixed: 'webkitAnimationEnd',\n standard: 'animationend'\n },\n animationiteration: {\n cssProperty: 'animation',\n prefixed: 'webkitAnimationIteration',\n standard: 'animationiteration'\n },\n animationstart: {\n cssProperty: 'animation',\n prefixed: 'webkitAnimationStart',\n standard: 'animationstart'\n },\n transitionend: {\n cssProperty: 'transition',\n prefixed: 'webkitTransitionEnd',\n standard: 'transitionend'\n }\n};\nfunction $d3b9476725b396f0$var$isWindow(windowObj) {\n return Boolean(windowObj.document) && typeof windowObj.document.createElement === 'function';\n}\nfunction $d3b9476725b396f0$export$3e3382687f32c044(windowObj, cssProperty) {\n if ($d3b9476725b396f0$var$isWindow(windowObj) && cssProperty in $d3b9476725b396f0$var$cssPropertyNameMap) {\n var el = windowObj.document.createElement('div');\n var _a = $d3b9476725b396f0$var$cssPropertyNameMap[cssProperty], standard = _a.standard, prefixed = _a.prefixed;\n var isStandard = standard in el.style;\n return isStandard ? standard : prefixed;\n }\n return cssProperty;\n}\nfunction $d3b9476725b396f0$export$48f0db0729a5631b(windowObj, eventType) {\n if ($d3b9476725b396f0$var$isWindow(windowObj) && eventType in $d3b9476725b396f0$var$jsEventTypeMap) {\n var el = windowObj.document.createElement('div');\n var _a = $d3b9476725b396f0$var$jsEventTypeMap[eventType], standard = _a.standard, prefixed = _a.prefixed, cssProperty = _a.cssProperty;\n var isStandard = cssProperty in el.style;\n return isStandard ? standard : prefixed;\n }\n return eventType;\n}\n\n\n\n\n\n\n\n/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ var $ee22ceda0c2e12e9$export$c1c0562ec8379000 = {\n ANIM_CHECKED_INDETERMINATE: 'mdc-checkbox--anim-checked-indeterminate',\n ANIM_CHECKED_UNCHECKED: 'mdc-checkbox--anim-checked-unchecked',\n ANIM_INDETERMINATE_CHECKED: 'mdc-checkbox--anim-indeterminate-checked',\n ANIM_INDETERMINATE_UNCHECKED: 'mdc-checkbox--anim-indeterminate-unchecked',\n ANIM_UNCHECKED_CHECKED: 'mdc-checkbox--anim-unchecked-checked',\n ANIM_UNCHECKED_INDETERMINATE: 'mdc-checkbox--anim-unchecked-indeterminate',\n BACKGROUND: 'mdc-checkbox__background',\n CHECKED: 'mdc-checkbox--checked',\n CHECKMARK: 'mdc-checkbox__checkmark',\n CHECKMARK_PATH: 'mdc-checkbox__checkmark-path',\n DISABLED: 'mdc-checkbox--disabled',\n INDETERMINATE: 'mdc-checkbox--indeterminate',\n MIXEDMARK: 'mdc-checkbox__mixedmark',\n NATIVE_CONTROL: 'mdc-checkbox__native-control',\n ROOT: 'mdc-checkbox',\n SELECTED: 'mdc-checkbox--selected',\n UPGRADED: 'mdc-checkbox--upgraded'\n};\nvar $ee22ceda0c2e12e9$export$21c51bc433c16634 = {\n ARIA_CHECKED_ATTR: 'aria-checked',\n ARIA_CHECKED_INDETERMINATE_VALUE: 'mixed',\n DATA_INDETERMINATE_ATTR: 'data-indeterminate',\n NATIVE_CONTROL_SELECTOR: '.mdc-checkbox__native-control',\n TRANSITION_STATE_CHECKED: 'checked',\n TRANSITION_STATE_INDETERMINATE: 'indeterminate',\n TRANSITION_STATE_INIT: 'init',\n TRANSITION_STATE_UNCHECKED: 'unchecked'\n};\nvar $ee22ceda0c2e12e9$export$1f6c9cc012ebacae = {\n ANIM_END_LATCH_MS: 250\n};\n\n\n/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ \n\n\nvar $0fb8799c7cf86124$export$7b204549dbb0ec4d = /** @class */ function(_super) {\n (0, $5c96a02c592fcff1$export$a8ba968b8961cb8a)(MDCCheckboxFoundation, _super);\n function MDCCheckboxFoundation(adapter) {\n var _this = _super.call(this, (0, $5c96a02c592fcff1$export$18ce0697a983be9b)((0, $5c96a02c592fcff1$export$18ce0697a983be9b)({}, MDCCheckboxFoundation.defaultAdapter), adapter)) || this;\n _this.currentCheckState = (0, $ee22ceda0c2e12e9$export$21c51bc433c16634).TRANSITION_STATE_INIT;\n _this.currentAnimationClass = '';\n _this.animEndLatchTimer = 0;\n _this.enableAnimationEndHandler = false;\n return _this;\n }\n Object.defineProperty(MDCCheckboxFoundation, \"cssClasses\", {\n get: function() {\n return 0, $ee22ceda0c2e12e9$export$c1c0562ec8379000;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCCheckboxFoundation, \"strings\", {\n get: function() {\n return 0, $ee22ceda0c2e12e9$export$21c51bc433c16634;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCCheckboxFoundation, \"numbers\", {\n get: function() {\n return 0, $ee22ceda0c2e12e9$export$1f6c9cc012ebacae;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCCheckboxFoundation, \"defaultAdapter\", {\n get: function() {\n return {\n addClass: function() {\n return undefined;\n },\n forceLayout: function() {\n return undefined;\n },\n hasNativeControl: function() {\n return false;\n },\n isAttachedToDOM: function() {\n return false;\n },\n isChecked: function() {\n return false;\n },\n isIndeterminate: function() {\n return false;\n },\n removeClass: function() {\n return undefined;\n },\n removeNativeControlAttr: function() {\n return undefined;\n },\n setNativeControlAttr: function() {\n return undefined;\n },\n setNativeControlDisabled: function() {\n return undefined;\n }\n };\n },\n enumerable: false,\n configurable: true\n });\n MDCCheckboxFoundation.prototype.init = function() {\n this.currentCheckState = this.determineCheckState();\n this.updateAriaChecked();\n this.adapter.addClass((0, $ee22ceda0c2e12e9$export$c1c0562ec8379000).UPGRADED);\n };\n MDCCheckboxFoundation.prototype.destroy = function() {\n clearTimeout(this.animEndLatchTimer);\n };\n MDCCheckboxFoundation.prototype.setDisabled = function(disabled) {\n this.adapter.setNativeControlDisabled(disabled);\n if (disabled) this.adapter.addClass((0, $ee22ceda0c2e12e9$export$c1c0562ec8379000).DISABLED);\n else this.adapter.removeClass((0, $ee22ceda0c2e12e9$export$c1c0562ec8379000).DISABLED);\n };\n /**\n * Handles the animationend event for the checkbox\n */ MDCCheckboxFoundation.prototype.handleAnimationEnd = function() {\n var _this = this;\n if (!this.enableAnimationEndHandler) return;\n clearTimeout(this.animEndLatchTimer);\n this.animEndLatchTimer = setTimeout(function() {\n _this.adapter.removeClass(_this.currentAnimationClass);\n _this.enableAnimationEndHandler = false;\n }, (0, $ee22ceda0c2e12e9$export$1f6c9cc012ebacae).ANIM_END_LATCH_MS);\n };\n /**\n * Handles the change event for the checkbox\n */ MDCCheckboxFoundation.prototype.handleChange = function() {\n this.transitionCheckState();\n };\n MDCCheckboxFoundation.prototype.transitionCheckState = function() {\n if (!this.adapter.hasNativeControl()) return;\n var oldState = this.currentCheckState;\n var newState = this.determineCheckState();\n if (oldState === newState) return;\n this.updateAriaChecked();\n var TRANSITION_STATE_UNCHECKED = (0, $ee22ceda0c2e12e9$export$21c51bc433c16634).TRANSITION_STATE_UNCHECKED;\n var SELECTED = (0, $ee22ceda0c2e12e9$export$c1c0562ec8379000).SELECTED;\n if (newState === TRANSITION_STATE_UNCHECKED) this.adapter.removeClass(SELECTED);\n else this.adapter.addClass(SELECTED);\n // Check to ensure that there isn't a previously existing animation class, in case for example\n // the user interacted with the checkbox before the animation was finished.\n if (this.currentAnimationClass.length > 0) {\n clearTimeout(this.animEndLatchTimer);\n this.adapter.forceLayout();\n this.adapter.removeClass(this.currentAnimationClass);\n }\n this.currentAnimationClass = this.getTransitionAnimationClass(oldState, newState);\n this.currentCheckState = newState;\n // Check for parentNode so that animations are only run when the element is attached\n // to the DOM.\n if (this.adapter.isAttachedToDOM() && this.currentAnimationClass.length > 0) {\n this.adapter.addClass(this.currentAnimationClass);\n this.enableAnimationEndHandler = true;\n }\n };\n MDCCheckboxFoundation.prototype.determineCheckState = function() {\n var TRANSITION_STATE_INDETERMINATE = (0, $ee22ceda0c2e12e9$export$21c51bc433c16634).TRANSITION_STATE_INDETERMINATE, TRANSITION_STATE_CHECKED = (0, $ee22ceda0c2e12e9$export$21c51bc433c16634).TRANSITION_STATE_CHECKED, TRANSITION_STATE_UNCHECKED = (0, $ee22ceda0c2e12e9$export$21c51bc433c16634).TRANSITION_STATE_UNCHECKED;\n if (this.adapter.isIndeterminate()) return TRANSITION_STATE_INDETERMINATE;\n return this.adapter.isChecked() ? TRANSITION_STATE_CHECKED : TRANSITION_STATE_UNCHECKED;\n };\n MDCCheckboxFoundation.prototype.getTransitionAnimationClass = function(oldState, newState) {\n var TRANSITION_STATE_INIT = (0, $ee22ceda0c2e12e9$export$21c51bc433c16634).TRANSITION_STATE_INIT, TRANSITION_STATE_CHECKED = (0, $ee22ceda0c2e12e9$export$21c51bc433c16634).TRANSITION_STATE_CHECKED, TRANSITION_STATE_UNCHECKED = (0, $ee22ceda0c2e12e9$export$21c51bc433c16634).TRANSITION_STATE_UNCHECKED;\n var _a = MDCCheckboxFoundation.cssClasses, ANIM_UNCHECKED_CHECKED = _a.ANIM_UNCHECKED_CHECKED, ANIM_UNCHECKED_INDETERMINATE = _a.ANIM_UNCHECKED_INDETERMINATE, ANIM_CHECKED_UNCHECKED = _a.ANIM_CHECKED_UNCHECKED, ANIM_CHECKED_INDETERMINATE = _a.ANIM_CHECKED_INDETERMINATE, ANIM_INDETERMINATE_CHECKED = _a.ANIM_INDETERMINATE_CHECKED, ANIM_INDETERMINATE_UNCHECKED = _a.ANIM_INDETERMINATE_UNCHECKED;\n switch(oldState){\n case TRANSITION_STATE_INIT:\n if (newState === TRANSITION_STATE_UNCHECKED) return '';\n return newState === TRANSITION_STATE_CHECKED ? ANIM_INDETERMINATE_CHECKED : ANIM_INDETERMINATE_UNCHECKED;\n case TRANSITION_STATE_UNCHECKED:\n return newState === TRANSITION_STATE_CHECKED ? ANIM_UNCHECKED_CHECKED : ANIM_UNCHECKED_INDETERMINATE;\n case TRANSITION_STATE_CHECKED:\n return newState === TRANSITION_STATE_UNCHECKED ? ANIM_CHECKED_UNCHECKED : ANIM_CHECKED_INDETERMINATE;\n default:\n return newState === TRANSITION_STATE_CHECKED ? ANIM_INDETERMINATE_CHECKED : ANIM_INDETERMINATE_UNCHECKED;\n }\n };\n MDCCheckboxFoundation.prototype.updateAriaChecked = function() {\n // Ensure aria-checked is set to mixed if checkbox is in indeterminate state.\n if (this.adapter.isIndeterminate()) this.adapter.setNativeControlAttr((0, $ee22ceda0c2e12e9$export$21c51bc433c16634).ARIA_CHECKED_ATTR, (0, $ee22ceda0c2e12e9$export$21c51bc433c16634).ARIA_CHECKED_INDETERMINATE_VALUE);\n else // The on/off state does not need to keep track of aria-checked, since\n // the screenreader uses the checked property on the checkbox element.\n this.adapter.removeNativeControlAttr((0, $ee22ceda0c2e12e9$export$21c51bc433c16634).ARIA_CHECKED_ATTR);\n };\n return MDCCheckboxFoundation;\n}((0, $d29cc2d0f1026d01$export$a81b11d69c993162));\nvar // tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\n$0fb8799c7cf86124$export$2e2bcd8739ae039 = $0fb8799c7cf86124$export$7b204549dbb0ec4d;\n\n\nvar $7c08072f0d8b00a7$var$CB_PROTO_PROPS = [\n 'checked',\n 'indeterminate'\n];\nvar $7c08072f0d8b00a7$export$7154650bc9a9224f = /** @class */ function(_super) {\n (0, $5c96a02c592fcff1$export$a8ba968b8961cb8a)(MDCCheckbox, _super);\n function MDCCheckbox() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.rippleSurface = _this.createRipple();\n return _this;\n }\n MDCCheckbox.attachTo = function(root) {\n return new MDCCheckbox(root);\n };\n Object.defineProperty(MDCCheckbox.prototype, \"ripple\", {\n get: function() {\n return this.rippleSurface;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCCheckbox.prototype, \"checked\", {\n get: function() {\n return this.getNativeControl().checked;\n },\n set: function(checked) {\n this.getNativeControl().checked = checked;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCCheckbox.prototype, \"indeterminate\", {\n get: function() {\n return this.getNativeControl().indeterminate;\n },\n set: function(indeterminate) {\n this.getNativeControl().indeterminate = indeterminate;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCCheckbox.prototype, \"disabled\", {\n get: function() {\n return this.getNativeControl().disabled;\n },\n set: function(disabled) {\n this.foundation.setDisabled(disabled);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCCheckbox.prototype, \"value\", {\n get: function() {\n return this.getNativeControl().value;\n },\n set: function(value) {\n this.getNativeControl().value = value;\n },\n enumerable: false,\n configurable: true\n });\n MDCCheckbox.prototype.initialize = function() {\n var DATA_INDETERMINATE_ATTR = (0, $ee22ceda0c2e12e9$export$21c51bc433c16634).DATA_INDETERMINATE_ATTR;\n this.getNativeControl().indeterminate = this.getNativeControl().getAttribute(DATA_INDETERMINATE_ATTR) === 'true';\n this.getNativeControl().removeAttribute(DATA_INDETERMINATE_ATTR);\n };\n MDCCheckbox.prototype.initialSyncWithDOM = function() {\n var _this = this;\n this.handleChange = function() {\n _this.foundation.handleChange();\n };\n this.handleAnimationEnd = function() {\n _this.foundation.handleAnimationEnd();\n };\n this.getNativeControl().addEventListener('change', this.handleChange);\n this.listen((0, $d3b9476725b396f0$export$48f0db0729a5631b)(window, 'animationend'), this.handleAnimationEnd);\n this.installPropertyChangeHooks();\n };\n MDCCheckbox.prototype.destroy = function() {\n this.rippleSurface.destroy();\n this.getNativeControl().removeEventListener('change', this.handleChange);\n this.unlisten((0, $d3b9476725b396f0$export$48f0db0729a5631b)(window, 'animationend'), this.handleAnimationEnd);\n this.uninstallPropertyChangeHooks();\n _super.prototype.destroy.call(this);\n };\n MDCCheckbox.prototype.getDefaultFoundation = function() {\n var _this = this;\n // DO NOT INLINE this variable. For backward compatibility, foundations take a Partial.\n // To ensure we don't accidentally omit any methods, we need a separate, strongly typed adapter variable.\n var adapter = {\n addClass: function(className) {\n return _this.root.classList.add(className);\n },\n forceLayout: function() {\n return _this.root.offsetWidth;\n },\n hasNativeControl: function() {\n return !!_this.getNativeControl();\n },\n isAttachedToDOM: function() {\n return Boolean(_this.root.parentNode);\n },\n isChecked: function() {\n return _this.checked;\n },\n isIndeterminate: function() {\n return _this.indeterminate;\n },\n removeClass: function(className) {\n _this.root.classList.remove(className);\n },\n removeNativeControlAttr: function(attr) {\n _this.getNativeControl().removeAttribute(attr);\n },\n setNativeControlAttr: function(attr, value) {\n _this.getNativeControl().setAttribute(attr, value);\n },\n setNativeControlDisabled: function(disabled) {\n _this.getNativeControl().disabled = disabled;\n }\n };\n return new (0, $0fb8799c7cf86124$export$7b204549dbb0ec4d)(adapter);\n };\n MDCCheckbox.prototype.createRipple = function() {\n var _this = this;\n // DO NOT INLINE this variable. For backward compatibility, foundations take a Partial.\n // To ensure we don't accidentally omit any methods, we need a separate, strongly typed adapter variable.\n var adapter = (0, $5c96a02c592fcff1$export$18ce0697a983be9b)((0, $5c96a02c592fcff1$export$18ce0697a983be9b)({}, (0, $20e9578b2a8426ec$export$583ca2e118aa9669).createAdapter(this)), {\n deregisterInteractionHandler: function(evtType, handler) {\n _this.getNativeControl().removeEventListener(evtType, handler, (0, $9d9aa0d3469cd217$export$82e1592afef3b60f)());\n },\n isSurfaceActive: function() {\n return (0, $f4789bcfa326043f$export$de994efd351b291c)(_this.getNativeControl(), ':active');\n },\n isUnbounded: function() {\n return true;\n },\n registerInteractionHandler: function(evtType, handler) {\n _this.getNativeControl().addEventListener(evtType, handler, (0, $9d9aa0d3469cd217$export$82e1592afef3b60f)());\n }\n });\n return new (0, $20e9578b2a8426ec$export$583ca2e118aa9669)(this.root, new (0, $bf1cd0cda6c64034$export$fb5f028029d92ef5)(adapter));\n };\n MDCCheckbox.prototype.installPropertyChangeHooks = function() {\n var e_1, _a;\n var _this = this;\n var nativeCb = this.getNativeControl();\n var cbProto = Object.getPrototypeOf(nativeCb);\n var _loop_1 = function(controlState) {\n var desc = Object.getOwnPropertyDescriptor(cbProto, controlState);\n // We have to check for this descriptor, since some browsers (Safari) don't support its return.\n // See: https://bugs.webkit.org/show_bug.cgi?id=49739\n if (!$7c08072f0d8b00a7$var$validDescriptor(desc)) return {\n value: void 0\n };\n // Type cast is needed for compatibility with Closure Compiler.\n var nativeGetter = desc.get;\n var nativeCbDesc = {\n configurable: desc.configurable,\n enumerable: desc.enumerable,\n get: nativeGetter,\n set: function(state) {\n desc.set.call(nativeCb, state);\n _this.foundation.handleChange();\n }\n };\n Object.defineProperty(nativeCb, controlState, nativeCbDesc);\n };\n try {\n for(var CB_PROTO_PROPS_1 = (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)($7c08072f0d8b00a7$var$CB_PROTO_PROPS), CB_PROTO_PROPS_1_1 = CB_PROTO_PROPS_1.next(); !CB_PROTO_PROPS_1_1.done; CB_PROTO_PROPS_1_1 = CB_PROTO_PROPS_1.next()){\n var controlState = CB_PROTO_PROPS_1_1.value;\n var state_1 = _loop_1(controlState);\n if (typeof state_1 === \"object\") return state_1.value;\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally{\n try {\n if (CB_PROTO_PROPS_1_1 && !CB_PROTO_PROPS_1_1.done && (_a = CB_PROTO_PROPS_1.return)) _a.call(CB_PROTO_PROPS_1);\n } finally{\n if (e_1) throw e_1.error;\n }\n }\n };\n MDCCheckbox.prototype.uninstallPropertyChangeHooks = function() {\n var e_2, _a;\n var nativeCb = this.getNativeControl();\n var cbProto = Object.getPrototypeOf(nativeCb);\n try {\n for(var CB_PROTO_PROPS_2 = (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)($7c08072f0d8b00a7$var$CB_PROTO_PROPS), CB_PROTO_PROPS_2_1 = CB_PROTO_PROPS_2.next(); !CB_PROTO_PROPS_2_1.done; CB_PROTO_PROPS_2_1 = CB_PROTO_PROPS_2.next()){\n var controlState = CB_PROTO_PROPS_2_1.value;\n var desc = Object.getOwnPropertyDescriptor(cbProto, controlState);\n if (!$7c08072f0d8b00a7$var$validDescriptor(desc)) return;\n Object.defineProperty(nativeCb, controlState, desc);\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally{\n try {\n if (CB_PROTO_PROPS_2_1 && !CB_PROTO_PROPS_2_1.done && (_a = CB_PROTO_PROPS_2.return)) _a.call(CB_PROTO_PROPS_2);\n } finally{\n if (e_2) throw e_2.error;\n }\n }\n };\n MDCCheckbox.prototype.getNativeControl = function() {\n var NATIVE_CONTROL_SELECTOR = (0, $ee22ceda0c2e12e9$export$21c51bc433c16634).NATIVE_CONTROL_SELECTOR;\n var el = this.root.querySelector(NATIVE_CONTROL_SELECTOR);\n if (!el) throw new Error(\"Checkbox component requires a \" + NATIVE_CONTROL_SELECTOR + \" element\");\n return el;\n };\n return MDCCheckbox;\n}((0, $0a13a1859770d71d$export$c3670872e5a4af8e));\nfunction $7c08072f0d8b00a7$var$validDescriptor(inputPropDesc) {\n return !!inputPropDesc && typeof inputPropDesc.set === 'function';\n}\n\n\n\n/**\n * @license\n * Copyright 2017 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ \n\n/**\n * @license\n * Copyright 2017 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ \n\n\n/**\n * @license\n * Copyright 2017 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ var $2316b8123b84dab0$export$c1c0562ec8379000 = {\n CLOSED_CLASS: 'mdc-linear-progress--closed',\n CLOSED_ANIMATION_OFF_CLASS: 'mdc-linear-progress--closed-animation-off',\n INDETERMINATE_CLASS: 'mdc-linear-progress--indeterminate',\n REVERSED_CLASS: 'mdc-linear-progress--reversed',\n ANIMATION_READY_CLASS: 'mdc-linear-progress--animation-ready'\n};\nvar $2316b8123b84dab0$export$21c51bc433c16634 = {\n ARIA_HIDDEN: 'aria-hidden',\n ARIA_VALUEMAX: 'aria-valuemax',\n ARIA_VALUEMIN: 'aria-valuemin',\n ARIA_VALUENOW: 'aria-valuenow',\n BUFFER_BAR_SELECTOR: '.mdc-linear-progress__buffer-bar',\n FLEX_BASIS: 'flex-basis',\n PRIMARY_BAR_SELECTOR: '.mdc-linear-progress__primary-bar'\n};\nvar $2316b8123b84dab0$export$a144c1aac8c5b708 = {\n PRIMARY_HALF: .8367142,\n PRIMARY_FULL: 2.00611057,\n SECONDARY_QUARTER: .37651913,\n SECONDARY_HALF: .84386165,\n SECONDARY_FULL: 1.60277782\n};\n\n\nvar $c07111c6c9f68222$export$83c781df9f8b3d70 = /** @class */ function(_super) {\n (0, $5c96a02c592fcff1$export$a8ba968b8961cb8a)(MDCLinearProgressFoundation, _super);\n function MDCLinearProgressFoundation(adapter) {\n var _this = _super.call(this, (0, $5c96a02c592fcff1$export$18ce0697a983be9b)((0, $5c96a02c592fcff1$export$18ce0697a983be9b)({}, MDCLinearProgressFoundation.defaultAdapter), adapter)) || this;\n _this.observer = null;\n return _this;\n }\n Object.defineProperty(MDCLinearProgressFoundation, \"cssClasses\", {\n get: function() {\n return 0, $2316b8123b84dab0$export$c1c0562ec8379000;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCLinearProgressFoundation, \"strings\", {\n get: function() {\n return 0, $2316b8123b84dab0$export$21c51bc433c16634;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCLinearProgressFoundation, \"defaultAdapter\", {\n get: function() {\n return {\n addClass: function() {\n return undefined;\n },\n attachResizeObserver: function() {\n return null;\n },\n forceLayout: function() {\n return undefined;\n },\n getWidth: function() {\n return 0;\n },\n hasClass: function() {\n return false;\n },\n setBufferBarStyle: function() {\n return null;\n },\n setPrimaryBarStyle: function() {\n return null;\n },\n setStyle: function() {\n return undefined;\n },\n removeAttribute: function() {\n return undefined;\n },\n removeClass: function() {\n return undefined;\n },\n setAttribute: function() {\n return undefined;\n }\n };\n },\n enumerable: false,\n configurable: true\n });\n MDCLinearProgressFoundation.prototype.init = function() {\n var _this = this;\n this.determinate = !this.adapter.hasClass((0, $2316b8123b84dab0$export$c1c0562ec8379000).INDETERMINATE_CLASS);\n this.adapter.addClass((0, $2316b8123b84dab0$export$c1c0562ec8379000).ANIMATION_READY_CLASS);\n this.progress = 0;\n this.buffer = 1;\n this.observer = this.adapter.attachResizeObserver(function(entries) {\n var e_1, _a;\n if (_this.determinate) return;\n try {\n for(var entries_1 = (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)(entries), entries_1_1 = entries_1.next(); !entries_1_1.done; entries_1_1 = entries_1.next()){\n var entry = entries_1_1.value;\n if (entry.contentRect) _this.calculateAndSetDimensions(entry.contentRect.width);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally{\n try {\n if (entries_1_1 && !entries_1_1.done && (_a = entries_1.return)) _a.call(entries_1);\n } finally{\n if (e_1) throw e_1.error;\n }\n }\n });\n if (!this.determinate && this.observer) this.calculateAndSetDimensions(this.adapter.getWidth());\n };\n MDCLinearProgressFoundation.prototype.setDeterminate = function(isDeterminate) {\n this.determinate = isDeterminate;\n if (this.determinate) {\n this.adapter.removeClass((0, $2316b8123b84dab0$export$c1c0562ec8379000).INDETERMINATE_CLASS);\n this.adapter.setAttribute((0, $2316b8123b84dab0$export$21c51bc433c16634).ARIA_VALUENOW, this.progress.toString());\n this.adapter.setAttribute((0, $2316b8123b84dab0$export$21c51bc433c16634).ARIA_VALUEMAX, '1');\n this.adapter.setAttribute((0, $2316b8123b84dab0$export$21c51bc433c16634).ARIA_VALUEMIN, '0');\n this.setPrimaryBarProgress(this.progress);\n this.setBufferBarProgress(this.buffer);\n return;\n }\n if (this.observer) this.calculateAndSetDimensions(this.adapter.getWidth());\n this.adapter.addClass((0, $2316b8123b84dab0$export$c1c0562ec8379000).INDETERMINATE_CLASS);\n this.adapter.removeAttribute((0, $2316b8123b84dab0$export$21c51bc433c16634).ARIA_VALUENOW);\n this.adapter.removeAttribute((0, $2316b8123b84dab0$export$21c51bc433c16634).ARIA_VALUEMAX);\n this.adapter.removeAttribute((0, $2316b8123b84dab0$export$21c51bc433c16634).ARIA_VALUEMIN);\n this.setPrimaryBarProgress(1);\n this.setBufferBarProgress(1);\n };\n MDCLinearProgressFoundation.prototype.isDeterminate = function() {\n return this.determinate;\n };\n MDCLinearProgressFoundation.prototype.setProgress = function(value) {\n this.progress = value;\n if (this.determinate) {\n this.setPrimaryBarProgress(value);\n this.adapter.setAttribute((0, $2316b8123b84dab0$export$21c51bc433c16634).ARIA_VALUENOW, value.toString());\n }\n };\n MDCLinearProgressFoundation.prototype.getProgress = function() {\n return this.progress;\n };\n MDCLinearProgressFoundation.prototype.setBuffer = function(value) {\n this.buffer = value;\n if (this.determinate) this.setBufferBarProgress(value);\n };\n MDCLinearProgressFoundation.prototype.getBuffer = function() {\n return this.buffer;\n };\n MDCLinearProgressFoundation.prototype.open = function() {\n this.adapter.removeClass((0, $2316b8123b84dab0$export$c1c0562ec8379000).CLOSED_CLASS);\n this.adapter.removeClass((0, $2316b8123b84dab0$export$c1c0562ec8379000).CLOSED_ANIMATION_OFF_CLASS);\n this.adapter.removeAttribute((0, $2316b8123b84dab0$export$21c51bc433c16634).ARIA_HIDDEN);\n };\n MDCLinearProgressFoundation.prototype.close = function() {\n this.adapter.addClass((0, $2316b8123b84dab0$export$c1c0562ec8379000).CLOSED_CLASS);\n this.adapter.setAttribute((0, $2316b8123b84dab0$export$21c51bc433c16634).ARIA_HIDDEN, 'true');\n };\n MDCLinearProgressFoundation.prototype.isClosed = function() {\n return this.adapter.hasClass((0, $2316b8123b84dab0$export$c1c0562ec8379000).CLOSED_CLASS);\n };\n /**\n * Handles the transitionend event emitted after `close()` is called and the\n * opacity fades out. This is so that animations are removed only after the\n * progress indicator is completely hidden.\n */ MDCLinearProgressFoundation.prototype.handleTransitionEnd = function() {\n if (this.adapter.hasClass((0, $2316b8123b84dab0$export$c1c0562ec8379000).CLOSED_CLASS)) this.adapter.addClass((0, $2316b8123b84dab0$export$c1c0562ec8379000).CLOSED_ANIMATION_OFF_CLASS);\n };\n MDCLinearProgressFoundation.prototype.destroy = function() {\n _super.prototype.destroy.call(this);\n if (this.observer) this.observer.disconnect();\n };\n MDCLinearProgressFoundation.prototype.restartAnimation = function() {\n this.adapter.removeClass((0, $2316b8123b84dab0$export$c1c0562ec8379000).ANIMATION_READY_CLASS);\n this.adapter.forceLayout();\n this.adapter.addClass((0, $2316b8123b84dab0$export$c1c0562ec8379000).ANIMATION_READY_CLASS);\n };\n MDCLinearProgressFoundation.prototype.setPrimaryBarProgress = function(progressValue) {\n var value = \"scaleX(\" + progressValue + \")\";\n // Accessing `window` without a `typeof` check will throw on Node\n // environments.\n var transformProp = typeof window !== 'undefined' ? (0, $d3b9476725b396f0$export$3e3382687f32c044)(window, 'transform') : 'transform';\n this.adapter.setPrimaryBarStyle(transformProp, value);\n };\n MDCLinearProgressFoundation.prototype.setBufferBarProgress = function(progressValue) {\n var value = progressValue * 100 + \"%\";\n this.adapter.setBufferBarStyle((0, $2316b8123b84dab0$export$21c51bc433c16634).FLEX_BASIS, value);\n };\n MDCLinearProgressFoundation.prototype.calculateAndSetDimensions = function(width) {\n var primaryHalf = width * (0, $2316b8123b84dab0$export$a144c1aac8c5b708).PRIMARY_HALF;\n var primaryFull = width * (0, $2316b8123b84dab0$export$a144c1aac8c5b708).PRIMARY_FULL;\n var secondaryQuarter = width * (0, $2316b8123b84dab0$export$a144c1aac8c5b708).SECONDARY_QUARTER;\n var secondaryHalf = width * (0, $2316b8123b84dab0$export$a144c1aac8c5b708).SECONDARY_HALF;\n var secondaryFull = width * (0, $2316b8123b84dab0$export$a144c1aac8c5b708).SECONDARY_FULL;\n this.adapter.setStyle('--mdc-linear-progress-primary-half', primaryHalf + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-primary-half-neg', -primaryHalf + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-primary-full', primaryFull + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-primary-full-neg', -primaryFull + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-secondary-quarter', secondaryQuarter + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-secondary-quarter-neg', -secondaryQuarter + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-secondary-half', secondaryHalf + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-secondary-half-neg', -secondaryHalf + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-secondary-full', secondaryFull + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-secondary-full-neg', -secondaryFull + \"px\");\n // need to restart animation for custom props to apply to keyframes\n this.restartAnimation();\n };\n return MDCLinearProgressFoundation;\n}((0, $d29cc2d0f1026d01$export$a81b11d69c993162));\nvar // tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\n$c07111c6c9f68222$export$2e2bcd8739ae039 = $c07111c6c9f68222$export$83c781df9f8b3d70;\n\n\nvar $882247d19ca1c993$export$8ef9bec6c14049d = /** @class */ function(_super) {\n (0, $5c96a02c592fcff1$export$a8ba968b8961cb8a)(MDCLinearProgress, _super);\n function MDCLinearProgress() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n MDCLinearProgress.attachTo = function(root) {\n return new MDCLinearProgress(root);\n };\n Object.defineProperty(MDCLinearProgress.prototype, \"determinate\", {\n set: function(value) {\n this.foundation.setDeterminate(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCLinearProgress.prototype, \"progress\", {\n set: function(value) {\n this.foundation.setProgress(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCLinearProgress.prototype, \"buffer\", {\n set: function(value) {\n this.foundation.setBuffer(value);\n },\n enumerable: false,\n configurable: true\n });\n MDCLinearProgress.prototype.open = function() {\n this.foundation.open();\n };\n MDCLinearProgress.prototype.close = function() {\n this.foundation.close();\n };\n MDCLinearProgress.prototype.initialSyncWithDOM = function() {\n var _this = this;\n this.root.addEventListener('transitionend', function() {\n _this.foundation.handleTransitionEnd();\n });\n };\n MDCLinearProgress.prototype.getDefaultFoundation = function() {\n var _this = this;\n // DO NOT INLINE this variable. For backward compatibility, foundations take\n // a Partial. To ensure we don't accidentally omit any\n // methods, we need a separate, strongly typed adapter variable.\n var adapter = {\n addClass: function(className) {\n _this.root.classList.add(className);\n },\n forceLayout: function() {\n _this.root.getBoundingClientRect();\n },\n setBufferBarStyle: function(styleProperty, value) {\n var bufferBar = _this.root.querySelector((0, $c07111c6c9f68222$export$83c781df9f8b3d70).strings.BUFFER_BAR_SELECTOR);\n if (bufferBar) bufferBar.style.setProperty(styleProperty, value);\n },\n setPrimaryBarStyle: function(styleProperty, value) {\n var primaryBar = _this.root.querySelector((0, $c07111c6c9f68222$export$83c781df9f8b3d70).strings.PRIMARY_BAR_SELECTOR);\n if (primaryBar) primaryBar.style.setProperty(styleProperty, value);\n },\n hasClass: function(className) {\n return _this.root.classList.contains(className);\n },\n removeAttribute: function(attributeName) {\n _this.root.removeAttribute(attributeName);\n },\n removeClass: function(className) {\n _this.root.classList.remove(className);\n },\n setAttribute: function(attributeName, value) {\n _this.root.setAttribute(attributeName, value);\n },\n setStyle: function(name, value) {\n _this.root.style.setProperty(name, value);\n },\n attachResizeObserver: function(callback) {\n var RO = window.ResizeObserver;\n if (RO) {\n var ro = new RO(callback);\n ro.observe(_this.root);\n return ro;\n }\n return null;\n },\n getWidth: function() {\n return _this.root.offsetWidth;\n }\n };\n return new (0, $c07111c6c9f68222$export$83c781df9f8b3d70)(adapter);\n };\n return MDCLinearProgress;\n}((0, $0a13a1859770d71d$export$c3670872e5a4af8e));\n\n\n/**\n * @license\n * Copyright 2019 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ /**\n * CSS class names used in component.\n */ var $f6cfddedd77988a6$export$c1c0562ec8379000 = {\n CELL: 'mdc-data-table__cell',\n CELL_NUMERIC: 'mdc-data-table__cell--numeric',\n CONTENT: 'mdc-data-table__content',\n HEADER_CELL: 'mdc-data-table__header-cell',\n HEADER_CELL_LABEL: 'mdc-data-table__header-cell-label',\n HEADER_CELL_SORTED: 'mdc-data-table__header-cell--sorted',\n HEADER_CELL_SORTED_DESCENDING: 'mdc-data-table__header-cell--sorted-descending',\n HEADER_CELL_WITH_SORT: 'mdc-data-table__header-cell--with-sort',\n HEADER_CELL_WRAPPER: 'mdc-data-table__header-cell-wrapper',\n HEADER_ROW: 'mdc-data-table__header-row',\n HEADER_ROW_CHECKBOX: 'mdc-data-table__header-row-checkbox',\n IN_PROGRESS: 'mdc-data-table--in-progress',\n LINEAR_PROGRESS: 'mdc-data-table__linear-progress',\n PAGINATION_ROWS_PER_PAGE_LABEL: 'mdc-data-table__pagination-rows-per-page-label',\n PAGINATION_ROWS_PER_PAGE_SELECT: 'mdc-data-table__pagination-rows-per-page-select',\n PROGRESS_INDICATOR: 'mdc-data-table__progress-indicator',\n ROOT: 'mdc-data-table',\n ROW: 'mdc-data-table__row',\n ROW_CHECKBOX: 'mdc-data-table__row-checkbox',\n ROW_SELECTED: 'mdc-data-table__row--selected',\n SORT_ICON_BUTTON: 'mdc-data-table__sort-icon-button',\n SORT_STATUS_LABEL: 'mdc-data-table__sort-status-label',\n TABLE_CONTAINER: 'mdc-data-table__table-container'\n};\nvar $f6cfddedd77988a6$export$16bd37df0047a29c = {\n ARIA_SELECTED: 'aria-selected',\n ARIA_SORT: 'aria-sort'\n};\nvar $f6cfddedd77988a6$export$15d6ddc168d35719 = {\n COLUMN_ID: 'data-column-id',\n ROW_ID: 'data-row-id'\n};\nvar $f6cfddedd77988a6$export$e1252723db1c541 = {\n CONTENT: \".\" + $f6cfddedd77988a6$export$c1c0562ec8379000.CONTENT,\n HEADER_CELL: \".\" + $f6cfddedd77988a6$export$c1c0562ec8379000.HEADER_CELL,\n HEADER_CELL_WITH_SORT: \".\" + $f6cfddedd77988a6$export$c1c0562ec8379000.HEADER_CELL_WITH_SORT,\n HEADER_ROW: \".\" + $f6cfddedd77988a6$export$c1c0562ec8379000.HEADER_ROW,\n HEADER_ROW_CHECKBOX: \".\" + $f6cfddedd77988a6$export$c1c0562ec8379000.HEADER_ROW_CHECKBOX,\n PROGRESS_INDICATOR: \".\" + $f6cfddedd77988a6$export$c1c0562ec8379000.PROGRESS_INDICATOR,\n ROW: \".\" + $f6cfddedd77988a6$export$c1c0562ec8379000.ROW,\n ROW_CHECKBOX: \".\" + $f6cfddedd77988a6$export$c1c0562ec8379000.ROW_CHECKBOX,\n ROW_SELECTED: \".\" + $f6cfddedd77988a6$export$c1c0562ec8379000.ROW_SELECTED,\n SORT_ICON_BUTTON: \".\" + $f6cfddedd77988a6$export$c1c0562ec8379000.SORT_ICON_BUTTON,\n SORT_STATUS_LABEL: \".\" + $f6cfddedd77988a6$export$c1c0562ec8379000.SORT_STATUS_LABEL\n};\nvar $f6cfddedd77988a6$export$defe85febe8b728c = {\n SORTED_IN_DESCENDING: 'Sorted in descending order',\n SORTED_IN_ASCENDING: 'Sorted in ascending order'\n};\nvar $f6cfddedd77988a6$export$21c51bc433c16634 = {\n ARIA_SELECTED: $f6cfddedd77988a6$export$16bd37df0047a29c.ARIA_SELECTED,\n ARIA_SORT: $f6cfddedd77988a6$export$16bd37df0047a29c.ARIA_SORT,\n DATA_ROW_ID_ATTR: $f6cfddedd77988a6$export$15d6ddc168d35719.ROW_ID,\n HEADER_ROW_CHECKBOX_SELECTOR: $f6cfddedd77988a6$export$e1252723db1c541.HEADER_ROW_CHECKBOX,\n ROW_CHECKBOX_SELECTOR: $f6cfddedd77988a6$export$e1252723db1c541.ROW_CHECKBOX,\n ROW_SELECTED_SELECTOR: $f6cfddedd77988a6$export$e1252723db1c541.ROW_SELECTED,\n ROW_SELECTOR: $f6cfddedd77988a6$export$e1252723db1c541.ROW\n};\nvar $f6cfddedd77988a6$export$aff26e357adc6917;\n(function(SortValue) {\n // Items are sorted in ascending order by this column.\n SortValue[\"ASCENDING\"] = \"ascending\";\n // Items are sorted in descending order by this column.\n SortValue[\"DESCENDING\"] = \"descending\";\n // There is no defined sort applied to the column.\n SortValue[\"NONE\"] = \"none\";\n // A sort algorithm other than ascending or descending has been applied.\n SortValue[\"OTHER\"] = \"other\";\n})($f6cfddedd77988a6$export$aff26e357adc6917 || ($f6cfddedd77988a6$export$aff26e357adc6917 = {}));\nvar $f6cfddedd77988a6$export$4bf9923669ad6c63 = {\n ROW_CLICK: 'MDCDataTable:rowClick',\n ROW_SELECTION_CHANGED: 'MDCDataTable:rowSelectionChanged',\n SELECTED_ALL: 'MDCDataTable:selectedAll',\n SORTED: 'MDCDataTable:sorted',\n UNSELECTED_ALL: 'MDCDataTable:unselectedAll'\n};\n\n\n/**\n * @license\n * Copyright 2019 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ \n\n\n/**\n * The Foundation of data table component containing pure business logic, any\n * logic requiring DOM manipulation are delegated to adapter methods.\n */ var $14b9dedc87673f83$export$9d41abb262ebacf8 = /** @class */ function(_super) {\n (0, $5c96a02c592fcff1$export$a8ba968b8961cb8a)(MDCDataTableFoundation, _super);\n function MDCDataTableFoundation(adapter) {\n return _super.call(this, (0, $5c96a02c592fcff1$export$18ce0697a983be9b)((0, $5c96a02c592fcff1$export$18ce0697a983be9b)({}, MDCDataTableFoundation.defaultAdapter), adapter)) || this;\n }\n Object.defineProperty(MDCDataTableFoundation, \"defaultAdapter\", {\n get: function() {\n return {\n addClass: function() {\n return undefined;\n },\n addClassAtRowIndex: function() {\n return undefined;\n },\n getAttributeByHeaderCellIndex: function() {\n return '';\n },\n getHeaderCellCount: function() {\n return 0;\n },\n getHeaderCellElements: function() {\n return [];\n },\n getRowCount: function() {\n return 0;\n },\n getRowElements: function() {\n return [];\n },\n getRowIdAtIndex: function() {\n return '';\n },\n getRowIndexByChildElement: function() {\n return 0;\n },\n getSelectedRowCount: function() {\n return 0;\n },\n getTableContainerHeight: function() {\n return 0;\n },\n getTableHeaderHeight: function() {\n return 0;\n },\n isCheckboxAtRowIndexChecked: function() {\n return false;\n },\n isHeaderRowCheckboxChecked: function() {\n return false;\n },\n isRowsSelectable: function() {\n return false;\n },\n notifyRowSelectionChanged: function() {\n return undefined;\n },\n notifySelectedAll: function() {\n return undefined;\n },\n notifySortAction: function() {\n return undefined;\n },\n notifyUnselectedAll: function() {\n return undefined;\n },\n notifyRowClick: function() {\n return undefined;\n },\n registerHeaderRowCheckbox: function() {\n return undefined;\n },\n registerRowCheckboxes: function() {\n return undefined;\n },\n removeClass: function() {\n return undefined;\n },\n removeClassAtRowIndex: function() {\n return undefined;\n },\n removeClassNameByHeaderCellIndex: function() {\n return undefined;\n },\n setAttributeAtRowIndex: function() {\n return undefined;\n },\n setAttributeByHeaderCellIndex: function() {\n return undefined;\n },\n setClassNameByHeaderCellIndex: function() {\n return undefined;\n },\n setHeaderRowCheckboxChecked: function() {\n return undefined;\n },\n setHeaderRowCheckboxIndeterminate: function() {\n return undefined;\n },\n setProgressIndicatorStyles: function() {\n return undefined;\n },\n setRowCheckboxCheckedAtIndex: function() {\n return undefined;\n },\n setSortStatusLabelByHeaderCellIndex: function() {\n return undefined;\n }\n };\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Re-initializes header row checkbox and row checkboxes when selectable rows\n * are added or removed from table. Use this if registering checkbox is\n * synchronous.\n */ MDCDataTableFoundation.prototype.layout = function() {\n if (this.adapter.isRowsSelectable()) {\n this.adapter.registerHeaderRowCheckbox();\n this.adapter.registerRowCheckboxes();\n this.setHeaderRowCheckboxState();\n }\n };\n /**\n * Re-initializes header row checkbox and row checkboxes when selectable rows\n * are added or removed from table. Use this if registering checkbox is\n * asynchronous.\n */ MDCDataTableFoundation.prototype.layoutAsync = function() {\n return (0, $5c96a02c592fcff1$export$1050f835b63b671e)(this, void 0, void 0, function() {\n return (0, $5c96a02c592fcff1$export$67ebef60e6f28a6)(this, function(_a) {\n switch(_a.label){\n case 0:\n if (!this.adapter.isRowsSelectable()) return [\n 3 /*break*/ ,\n 3\n ];\n return [\n 4 /*yield*/ ,\n this.adapter.registerHeaderRowCheckbox()\n ];\n case 1:\n _a.sent();\n return [\n 4 /*yield*/ ,\n this.adapter.registerRowCheckboxes()\n ];\n case 2:\n _a.sent();\n this.setHeaderRowCheckboxState();\n _a.label = 3;\n case 3:\n return [\n 2 /*return*/ \n ];\n }\n });\n });\n };\n /**\n * @return Returns array of row elements.\n */ MDCDataTableFoundation.prototype.getRows = function() {\n return this.adapter.getRowElements();\n };\n /**\n * @return Array of header cell elements.\n */ MDCDataTableFoundation.prototype.getHeaderCells = function() {\n return this.adapter.getHeaderCellElements();\n };\n /**\n * Sets selected row ids. Overwrites previously selected rows.\n * @param rowIds Array of row ids that needs to be selected.\n */ MDCDataTableFoundation.prototype.setSelectedRowIds = function(rowIds) {\n for(var rowIndex = 0; rowIndex < this.adapter.getRowCount(); rowIndex++){\n var rowId = this.adapter.getRowIdAtIndex(rowIndex);\n var isSelected = false;\n if (rowId && rowIds.indexOf(rowId) >= 0) isSelected = true;\n this.adapter.setRowCheckboxCheckedAtIndex(rowIndex, isSelected);\n this.selectRowAtIndex(rowIndex, isSelected);\n }\n this.setHeaderRowCheckboxState();\n };\n /**\n * @return Returns array of all row ids.\n */ MDCDataTableFoundation.prototype.getRowIds = function() {\n var rowIds = [];\n for(var rowIndex = 0; rowIndex < this.adapter.getRowCount(); rowIndex++)rowIds.push(this.adapter.getRowIdAtIndex(rowIndex));\n return rowIds;\n };\n /**\n * @return Returns array of selected row ids.\n */ MDCDataTableFoundation.prototype.getSelectedRowIds = function() {\n var selectedRowIds = [];\n for(var rowIndex = 0; rowIndex < this.adapter.getRowCount(); rowIndex++)if (this.adapter.isCheckboxAtRowIndexChecked(rowIndex)) selectedRowIds.push(this.adapter.getRowIdAtIndex(rowIndex));\n return selectedRowIds;\n };\n /**\n * Handles header row checkbox change event.\n */ MDCDataTableFoundation.prototype.handleHeaderRowCheckboxChange = function() {\n var isHeaderChecked = this.adapter.isHeaderRowCheckboxChecked();\n for(var rowIndex = 0; rowIndex < this.adapter.getRowCount(); rowIndex++){\n this.adapter.setRowCheckboxCheckedAtIndex(rowIndex, isHeaderChecked);\n this.selectRowAtIndex(rowIndex, isHeaderChecked);\n }\n if (isHeaderChecked) this.adapter.notifySelectedAll();\n else this.adapter.notifyUnselectedAll();\n };\n /**\n * Handles change event originated from row checkboxes.\n */ MDCDataTableFoundation.prototype.handleRowCheckboxChange = function(event) {\n var rowIndex = this.adapter.getRowIndexByChildElement(event.target);\n if (rowIndex === -1) return;\n var selected = this.adapter.isCheckboxAtRowIndexChecked(rowIndex);\n this.selectRowAtIndex(rowIndex, selected);\n this.setHeaderRowCheckboxState();\n var rowId = this.adapter.getRowIdAtIndex(rowIndex);\n this.adapter.notifyRowSelectionChanged({\n rowId: rowId,\n rowIndex: rowIndex,\n selected: selected\n });\n };\n /**\n * Handles sort action on sortable header cell.\n */ MDCDataTableFoundation.prototype.handleSortAction = function(eventData) {\n var columnId = eventData.columnId, columnIndex = eventData.columnIndex, headerCell = eventData.headerCell;\n // Reset sort attributes / classes on other header cells.\n for(var index = 0; index < this.adapter.getHeaderCellCount(); index++){\n if (index === columnIndex) continue;\n this.adapter.removeClassNameByHeaderCellIndex(index, (0, $f6cfddedd77988a6$export$c1c0562ec8379000).HEADER_CELL_SORTED);\n this.adapter.removeClassNameByHeaderCellIndex(index, (0, $f6cfddedd77988a6$export$c1c0562ec8379000).HEADER_CELL_SORTED_DESCENDING);\n this.adapter.setAttributeByHeaderCellIndex(index, (0, $f6cfddedd77988a6$export$21c51bc433c16634).ARIA_SORT, (0, $f6cfddedd77988a6$export$aff26e357adc6917).NONE);\n this.adapter.setSortStatusLabelByHeaderCellIndex(index, (0, $f6cfddedd77988a6$export$aff26e357adc6917).NONE);\n }\n // Set appropriate sort attributes / classes on target header cell.\n this.adapter.setClassNameByHeaderCellIndex(columnIndex, (0, $f6cfddedd77988a6$export$c1c0562ec8379000).HEADER_CELL_SORTED);\n var currentSortValue = this.adapter.getAttributeByHeaderCellIndex(columnIndex, (0, $f6cfddedd77988a6$export$21c51bc433c16634).ARIA_SORT);\n var sortValue = (0, $f6cfddedd77988a6$export$aff26e357adc6917).NONE;\n // Set to descending if sorted on ascending order.\n if (currentSortValue === (0, $f6cfddedd77988a6$export$aff26e357adc6917).ASCENDING) {\n this.adapter.setClassNameByHeaderCellIndex(columnIndex, (0, $f6cfddedd77988a6$export$c1c0562ec8379000).HEADER_CELL_SORTED_DESCENDING);\n this.adapter.setAttributeByHeaderCellIndex(columnIndex, (0, $f6cfddedd77988a6$export$21c51bc433c16634).ARIA_SORT, (0, $f6cfddedd77988a6$export$aff26e357adc6917).DESCENDING);\n sortValue = (0, $f6cfddedd77988a6$export$aff26e357adc6917).DESCENDING;\n // Set to ascending if sorted on descending order.\n } else if (currentSortValue === (0, $f6cfddedd77988a6$export$aff26e357adc6917).DESCENDING) {\n this.adapter.removeClassNameByHeaderCellIndex(columnIndex, (0, $f6cfddedd77988a6$export$c1c0562ec8379000).HEADER_CELL_SORTED_DESCENDING);\n this.adapter.setAttributeByHeaderCellIndex(columnIndex, (0, $f6cfddedd77988a6$export$21c51bc433c16634).ARIA_SORT, (0, $f6cfddedd77988a6$export$aff26e357adc6917).ASCENDING);\n sortValue = (0, $f6cfddedd77988a6$export$aff26e357adc6917).ASCENDING;\n } else {\n // Set to ascending by default when not sorted.\n this.adapter.setAttributeByHeaderCellIndex(columnIndex, (0, $f6cfddedd77988a6$export$21c51bc433c16634).ARIA_SORT, (0, $f6cfddedd77988a6$export$aff26e357adc6917).ASCENDING);\n sortValue = (0, $f6cfddedd77988a6$export$aff26e357adc6917).ASCENDING;\n }\n this.adapter.setSortStatusLabelByHeaderCellIndex(columnIndex, sortValue);\n this.adapter.notifySortAction({\n columnId: columnId,\n columnIndex: columnIndex,\n headerCell: headerCell,\n sortValue: sortValue\n });\n };\n /**\n * Handles data table row click event.\n */ MDCDataTableFoundation.prototype.handleRowClick = function(_a) {\n var rowId = _a.rowId, row = _a.row;\n this.adapter.notifyRowClick({\n rowId: rowId,\n row: row\n });\n };\n /**\n * Shows progress indicator blocking only the table body content when in\n * loading state.\n */ MDCDataTableFoundation.prototype.showProgress = function() {\n var tableHeaderHeight = this.adapter.getTableHeaderHeight();\n // Calculate the height of table content (Not scroll content) excluding\n // header row height.\n var height = this.adapter.getTableContainerHeight() - tableHeaderHeight;\n var top = tableHeaderHeight;\n this.adapter.setProgressIndicatorStyles({\n height: height + \"px\",\n top: top + \"px\"\n });\n this.adapter.addClass((0, $f6cfddedd77988a6$export$c1c0562ec8379000).IN_PROGRESS);\n };\n /**\n * Hides progress indicator when data table is finished loading.\n */ MDCDataTableFoundation.prototype.hideProgress = function() {\n this.adapter.removeClass((0, $f6cfddedd77988a6$export$c1c0562ec8379000).IN_PROGRESS);\n };\n /**\n * Updates header row checkbox state based on number of rows selected.\n */ MDCDataTableFoundation.prototype.setHeaderRowCheckboxState = function() {\n if (this.adapter.getSelectedRowCount() === 0) {\n this.adapter.setHeaderRowCheckboxChecked(false);\n this.adapter.setHeaderRowCheckboxIndeterminate(false);\n } else if (this.adapter.getSelectedRowCount() === this.adapter.getRowCount()) {\n this.adapter.setHeaderRowCheckboxChecked(true);\n this.adapter.setHeaderRowCheckboxIndeterminate(false);\n } else {\n this.adapter.setHeaderRowCheckboxIndeterminate(true);\n this.adapter.setHeaderRowCheckboxChecked(false);\n }\n };\n /**\n * Sets the attributes of row element based on selection state.\n */ MDCDataTableFoundation.prototype.selectRowAtIndex = function(rowIndex, selected) {\n if (selected) {\n this.adapter.addClassAtRowIndex(rowIndex, (0, $f6cfddedd77988a6$export$c1c0562ec8379000).ROW_SELECTED);\n this.adapter.setAttributeAtRowIndex(rowIndex, (0, $f6cfddedd77988a6$export$21c51bc433c16634).ARIA_SELECTED, 'true');\n } else {\n this.adapter.removeClassAtRowIndex(rowIndex, (0, $f6cfddedd77988a6$export$c1c0562ec8379000).ROW_SELECTED);\n this.adapter.setAttributeAtRowIndex(rowIndex, (0, $f6cfddedd77988a6$export$21c51bc433c16634).ARIA_SELECTED, 'false');\n }\n };\n return MDCDataTableFoundation;\n}((0, $d29cc2d0f1026d01$export$a81b11d69c993162));\n\n\n/**\n * Implementation of `MDCDataTableFoundation`\n */ var $369a0c7b5a754e20$export$240748bfd28d4d90 = /** @class */ function(_super) {\n (0, $5c96a02c592fcff1$export$a8ba968b8961cb8a)(MDCDataTable, _super);\n function MDCDataTable() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n MDCDataTable.attachTo = function(root) {\n return new MDCDataTable(root);\n };\n MDCDataTable.prototype.initialize = function(checkboxFactory) {\n if (checkboxFactory === void 0) checkboxFactory = function(el) {\n return new (0, $7c08072f0d8b00a7$export$7154650bc9a9224f)(el);\n };\n this.checkboxFactory = checkboxFactory;\n };\n MDCDataTable.prototype.initialSyncWithDOM = function() {\n var _this = this;\n this.headerRow = this.root.querySelector(\".\" + (0, $f6cfddedd77988a6$export$c1c0562ec8379000).HEADER_ROW);\n this.handleHeaderRowCheckboxChange = function() {\n _this.foundation.handleHeaderRowCheckboxChange();\n };\n this.headerRow.addEventListener('change', this.handleHeaderRowCheckboxChange);\n this.headerRowClickListener = function(event) {\n _this.handleHeaderRowClick(event);\n };\n this.headerRow.addEventListener('click', this.headerRowClickListener);\n this.content = this.root.querySelector(\".\" + (0, $f6cfddedd77988a6$export$c1c0562ec8379000).CONTENT);\n this.handleContentClick = function(event) {\n var dataRowEl = (0, $f4789bcfa326043f$export$ff7f7c97cdce86e)(event.target, (0, $f6cfddedd77988a6$export$e1252723db1c541).ROW);\n if (!dataRowEl) return;\n _this.foundation.handleRowClick({\n rowId: _this.getRowIdByRowElement(dataRowEl),\n row: dataRowEl\n });\n };\n this.content.addEventListener('click', this.handleContentClick);\n this.handleRowCheckboxChange = function(event) {\n _this.foundation.handleRowCheckboxChange(event);\n };\n this.content.addEventListener('change', this.handleRowCheckboxChange);\n this.layout();\n };\n /**\n * Re-initializes header row checkbox and row checkboxes when selectable rows\n * are added or removed from table.\n */ MDCDataTable.prototype.layout = function() {\n this.foundation.layout();\n };\n /**\n * @return Returns array of header row cell elements.\n */ MDCDataTable.prototype.getHeaderCells = function() {\n return [].slice.call(this.root.querySelectorAll((0, $f6cfddedd77988a6$export$e1252723db1c541).HEADER_CELL));\n };\n /**\n * @return Returns array of row elements.\n */ MDCDataTable.prototype.getRows = function() {\n return this.foundation.getRows();\n };\n /**\n * @return Returns array of selected row ids.\n */ MDCDataTable.prototype.getSelectedRowIds = function() {\n return this.foundation.getSelectedRowIds();\n };\n /**\n * Sets selected row ids. Overwrites previously selected rows.\n * @param rowIds Array of row ids that needs to be selected.\n */ MDCDataTable.prototype.setSelectedRowIds = function(rowIds) {\n this.foundation.setSelectedRowIds(rowIds);\n };\n /**\n * Shows progress indicator when data table is in loading state.\n */ MDCDataTable.prototype.showProgress = function() {\n this.getLinearProgress().open();\n this.foundation.showProgress();\n };\n /**\n * Hides progress indicator after data table is finished loading.\n */ MDCDataTable.prototype.hideProgress = function() {\n this.foundation.hideProgress();\n this.getLinearProgress().close();\n };\n MDCDataTable.prototype.destroy = function() {\n var e_1, _a;\n if (this.handleHeaderRowCheckboxChange) this.headerRow.removeEventListener('change', this.handleHeaderRowCheckboxChange);\n if (this.headerRowClickListener) this.headerRow.removeEventListener('click', this.headerRowClickListener);\n if (this.handleRowCheckboxChange) this.content.removeEventListener('change', this.handleRowCheckboxChange);\n if (this.headerRowCheckbox) this.headerRowCheckbox.destroy();\n if (this.rowCheckboxList) try {\n for(var _b = (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)(this.rowCheckboxList), _c = _b.next(); !_c.done; _c = _b.next()){\n var checkbox = _c.value;\n checkbox.destroy();\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally{\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally{\n if (e_1) throw e_1.error;\n }\n }\n if (this.handleContentClick) this.content.removeEventListener('click', this.handleContentClick);\n };\n MDCDataTable.prototype.getDefaultFoundation = function() {\n var _this = this;\n // DO NOT INLINE this variable. For backward compatibility, foundations take\n // a Partial. To ensure we don't accidentally omit any\n // methods, we need a separate, strongly typed adapter variable.\n // tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface.\n var adapter = {\n addClass: function(className) {\n _this.root.classList.add(className);\n },\n removeClass: function(className) {\n _this.root.classList.remove(className);\n },\n getHeaderCellElements: function() {\n return _this.getHeaderCells();\n },\n getHeaderCellCount: function() {\n return _this.getHeaderCells().length;\n },\n getAttributeByHeaderCellIndex: function(index, attribute) {\n return _this.getHeaderCells()[index].getAttribute(attribute);\n },\n setAttributeByHeaderCellIndex: function(index, attribute, value) {\n _this.getHeaderCells()[index].setAttribute(attribute, value);\n },\n setClassNameByHeaderCellIndex: function(index, className) {\n _this.getHeaderCells()[index].classList.add(className);\n },\n removeClassNameByHeaderCellIndex: function(index, className) {\n _this.getHeaderCells()[index].classList.remove(className);\n },\n notifySortAction: function(data) {\n _this.emit((0, $f6cfddedd77988a6$export$4bf9923669ad6c63).SORTED, data, /** shouldBubble */ true);\n },\n getTableContainerHeight: function() {\n var tableContainer = _this.root.querySelector(\".\" + (0, $f6cfddedd77988a6$export$c1c0562ec8379000).TABLE_CONTAINER);\n if (!tableContainer) throw new Error('MDCDataTable: Table container element not found.');\n return tableContainer.getBoundingClientRect().height;\n },\n getTableHeaderHeight: function() {\n var tableHeader = _this.root.querySelector((0, $f6cfddedd77988a6$export$e1252723db1c541).HEADER_ROW);\n if (!tableHeader) throw new Error('MDCDataTable: Table header element not found.');\n return tableHeader.getBoundingClientRect().height;\n },\n setProgressIndicatorStyles: function(styles) {\n var progressIndicator = _this.root.querySelector((0, $f6cfddedd77988a6$export$e1252723db1c541).PROGRESS_INDICATOR);\n if (!progressIndicator) throw new Error('MDCDataTable: Progress indicator element not found.');\n progressIndicator.style.setProperty('height', styles.height);\n progressIndicator.style.setProperty('top', styles.top);\n },\n addClassAtRowIndex: function(rowIndex, className) {\n _this.getRows()[rowIndex].classList.add(className);\n },\n getRowCount: function() {\n return _this.getRows().length;\n },\n getRowElements: function() {\n return [].slice.call(_this.root.querySelectorAll((0, $f6cfddedd77988a6$export$e1252723db1c541).ROW));\n },\n getRowIdAtIndex: function(rowIndex) {\n return _this.getRows()[rowIndex].getAttribute((0, $f6cfddedd77988a6$export$15d6ddc168d35719).ROW_ID);\n },\n getRowIndexByChildElement: function(el) {\n return _this.getRows().indexOf((0, $f4789bcfa326043f$export$ff7f7c97cdce86e)(el, (0, $f6cfddedd77988a6$export$e1252723db1c541).ROW));\n },\n getSelectedRowCount: function() {\n return _this.root.querySelectorAll((0, $f6cfddedd77988a6$export$e1252723db1c541).ROW_SELECTED).length;\n },\n isCheckboxAtRowIndexChecked: function(rowIndex) {\n return _this.rowCheckboxList[rowIndex].checked;\n },\n isHeaderRowCheckboxChecked: function() {\n return _this.headerRowCheckbox.checked;\n },\n isRowsSelectable: function() {\n return !!_this.root.querySelector((0, $f6cfddedd77988a6$export$e1252723db1c541).ROW_CHECKBOX) || !!_this.root.querySelector((0, $f6cfddedd77988a6$export$e1252723db1c541).HEADER_ROW_CHECKBOX);\n },\n notifyRowSelectionChanged: function(data) {\n _this.emit((0, $f6cfddedd77988a6$export$4bf9923669ad6c63).ROW_SELECTION_CHANGED, {\n row: _this.getRowByIndex(data.rowIndex),\n rowId: _this.getRowIdByIndex(data.rowIndex),\n rowIndex: data.rowIndex,\n selected: data.selected\n }, /** shouldBubble */ true);\n },\n notifySelectedAll: function() {\n _this.emit((0, $f6cfddedd77988a6$export$4bf9923669ad6c63).SELECTED_ALL, {}, /** shouldBubble */ true);\n },\n notifyUnselectedAll: function() {\n _this.emit((0, $f6cfddedd77988a6$export$4bf9923669ad6c63).UNSELECTED_ALL, {}, /** shouldBubble */ true);\n },\n notifyRowClick: function(data) {\n _this.emit((0, $f6cfddedd77988a6$export$4bf9923669ad6c63).ROW_CLICK, data, /** shouldBubble */ true);\n },\n registerHeaderRowCheckbox: function() {\n if (_this.headerRowCheckbox) _this.headerRowCheckbox.destroy();\n var checkboxEl = _this.root.querySelector((0, $f6cfddedd77988a6$export$e1252723db1c541).HEADER_ROW_CHECKBOX);\n _this.headerRowCheckbox = _this.checkboxFactory(checkboxEl);\n },\n registerRowCheckboxes: function() {\n if (_this.rowCheckboxList) _this.rowCheckboxList.forEach(function(checkbox) {\n checkbox.destroy();\n });\n _this.rowCheckboxList = [];\n _this.getRows().forEach(function(rowEl) {\n var checkbox = _this.checkboxFactory(rowEl.querySelector((0, $f6cfddedd77988a6$export$e1252723db1c541).ROW_CHECKBOX));\n _this.rowCheckboxList.push(checkbox);\n });\n },\n removeClassAtRowIndex: function(rowIndex, className) {\n _this.getRows()[rowIndex].classList.remove(className);\n },\n setAttributeAtRowIndex: function(rowIndex, attr, value) {\n _this.getRows()[rowIndex].setAttribute(attr, value);\n },\n setHeaderRowCheckboxChecked: function(checked) {\n _this.headerRowCheckbox.checked = checked;\n },\n setHeaderRowCheckboxIndeterminate: function(indeterminate) {\n _this.headerRowCheckbox.indeterminate = indeterminate;\n },\n setRowCheckboxCheckedAtIndex: function(rowIndex, checked) {\n _this.rowCheckboxList[rowIndex].checked = checked;\n },\n setSortStatusLabelByHeaderCellIndex: function(columnIndex, sortValue) {\n var headerCell = _this.getHeaderCells()[columnIndex];\n var sortStatusLabel = headerCell.querySelector((0, $f6cfddedd77988a6$export$e1252723db1c541).SORT_STATUS_LABEL);\n if (!sortStatusLabel) return;\n sortStatusLabel.textContent = _this.getSortStatusMessageBySortValue(sortValue);\n }\n };\n return new (0, $14b9dedc87673f83$export$9d41abb262ebacf8)(adapter);\n };\n MDCDataTable.prototype.getRowByIndex = function(index) {\n return this.getRows()[index];\n };\n MDCDataTable.prototype.getRowIdByIndex = function(index) {\n return this.getRowByIndex(index).getAttribute((0, $f6cfddedd77988a6$export$15d6ddc168d35719).ROW_ID);\n };\n MDCDataTable.prototype.handleHeaderRowClick = function(event) {\n var headerCell = (0, $f4789bcfa326043f$export$ff7f7c97cdce86e)(event.target, (0, $f6cfddedd77988a6$export$e1252723db1c541).HEADER_CELL_WITH_SORT);\n if (!headerCell) return;\n var columnId = headerCell.getAttribute((0, $f6cfddedd77988a6$export$15d6ddc168d35719).COLUMN_ID);\n var columnIndex = this.getHeaderCells().indexOf(headerCell);\n if (columnIndex === -1) return;\n this.foundation.handleSortAction({\n columnId: columnId,\n columnIndex: columnIndex,\n headerCell: headerCell\n });\n };\n MDCDataTable.prototype.getSortStatusMessageBySortValue = function(sortValue) {\n switch(sortValue){\n case (0, $f6cfddedd77988a6$export$aff26e357adc6917).ASCENDING:\n return (0, $f6cfddedd77988a6$export$defe85febe8b728c).SORTED_IN_ASCENDING;\n case (0, $f6cfddedd77988a6$export$aff26e357adc6917).DESCENDING:\n return (0, $f6cfddedd77988a6$export$defe85febe8b728c).SORTED_IN_DESCENDING;\n default:\n return '';\n }\n };\n MDCDataTable.prototype.getLinearProgressElement = function() {\n var el = this.root.querySelector(\".\" + (0, $f6cfddedd77988a6$export$c1c0562ec8379000).LINEAR_PROGRESS);\n if (!el) throw new Error('MDCDataTable: linear progress element is not found.');\n return el;\n };\n MDCDataTable.prototype.getLinearProgress = function() {\n if (!this.linearProgress) {\n var el = this.getLinearProgressElement();\n this.linearProgress = new (0, $882247d19ca1c993$export$8ef9bec6c14049d)(el);\n }\n return this.linearProgress;\n };\n MDCDataTable.prototype.getRowIdByRowElement = function(rowElement) {\n return rowElement.getAttribute((0, $f6cfddedd77988a6$export$15d6ddc168d35719).ROW_ID);\n };\n return MDCDataTable;\n}((0, $0a13a1859770d71d$export$c3670872e5a4af8e));\n\n\n/**\n * @license\n * Copyright 2020 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ \n\n/**\n * @license\n * Copyright 2020 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ var $5e84edd0d370f6cc$export$19467ce65cc4f055;\n(function(CssClasses) {\n CssClasses[\"RICH\"] = \"mdc-tooltip--rich\";\n CssClasses[\"SHOWN\"] = \"mdc-tooltip--shown\";\n CssClasses[\"SHOWING\"] = \"mdc-tooltip--showing\";\n CssClasses[\"SHOWING_TRANSITION\"] = \"mdc-tooltip--showing-transition\";\n CssClasses[\"HIDE\"] = \"mdc-tooltip--hide\";\n CssClasses[\"HIDE_TRANSITION\"] = \"mdc-tooltip--hide-transition\";\n CssClasses[\"MULTILINE_TOOLTIP\"] = \"mdc-tooltip--multiline\";\n CssClasses[\"SURFACE\"] = \"mdc-tooltip__surface\";\n CssClasses[\"SURFACE_ANIMATION\"] = \"mdc-tooltip__surface-animation\";\n CssClasses[\"TOOLTIP_CARET_TOP\"] = \"mdc-tooltip__caret-surface-top\";\n CssClasses[\"TOOLTIP_CARET_BOTTOM\"] = \"mdc-tooltip__caret-surface-bottom\";\n})($5e84edd0d370f6cc$export$19467ce65cc4f055 || ($5e84edd0d370f6cc$export$19467ce65cc4f055 = {}));\nvar $5e84edd0d370f6cc$export$1f6c9cc012ebacae = {\n BOUNDED_ANCHOR_GAP: 4,\n UNBOUNDED_ANCHOR_GAP: 8,\n MIN_VIEWPORT_TOOLTIP_THRESHOLD: 8,\n HIDE_DELAY_MS: 600,\n SHOW_DELAY_MS: 500,\n // LINT.IfChange(tooltip-dimensions)\n MIN_HEIGHT: 24,\n MAX_WIDTH: 200,\n // LINT.ThenChange(_tooltip.scss:tooltip-dimensions)\n CARET_INDENTATION: 24,\n // LINT.IfChange(tooltip-anim-scale)\n ANIMATION_SCALE: 0.8\n};\nvar $5e84edd0d370f6cc$export$16bd37df0047a29c = {\n ARIA_EXPANDED: 'aria-expanded',\n ARIA_HASPOPUP: 'aria-haspopup',\n PERSISTENT: 'data-mdc-tooltip-persistent',\n SCROLLABLE_ANCESTOR: 'tooltip-scrollable-ancestor',\n HAS_CARET: 'data-mdc-tooltip-has-caret'\n};\nvar $5e84edd0d370f6cc$export$4bf9923669ad6c63 = {\n HIDDEN: 'MDCTooltip:hidden'\n};\n/** Enum for possible tooltip positioning relative to its anchor element. */ var $5e84edd0d370f6cc$export$641c5df4f167fdf5;\n(function(XPosition) {\n XPosition[XPosition[\"DETECTED\"] = 0] = \"DETECTED\";\n XPosition[XPosition[\"START\"] = 1] = \"START\";\n // Note: CENTER is not valid for rich tooltips.\n XPosition[XPosition[\"CENTER\"] = 2] = \"CENTER\";\n XPosition[XPosition[\"END\"] = 3] = \"END\";\n})($5e84edd0d370f6cc$export$641c5df4f167fdf5 || ($5e84edd0d370f6cc$export$641c5df4f167fdf5 = {}));\nvar $5e84edd0d370f6cc$export$191747e67c9789ed;\n(function(YPosition) {\n YPosition[YPosition[\"DETECTED\"] = 0] = \"DETECTED\";\n YPosition[YPosition[\"ABOVE\"] = 1] = \"ABOVE\";\n YPosition[YPosition[\"BELOW\"] = 2] = \"BELOW\";\n})($5e84edd0d370f6cc$export$191747e67c9789ed || ($5e84edd0d370f6cc$export$191747e67c9789ed = {}));\n/**\n * Enum for possible anchor boundary types. This determines the gap between the\n * bottom of the anchor and the tooltip element.\n * Bounded anchors have an identifiable boundary (e.g. buttons).\n * Unbounded anchors don't have a visually declared boundary (e.g. plain text).\n */ var $5e84edd0d370f6cc$export$e4ad4a7a8f9088fc;\n(function(AnchorBoundaryType) {\n AnchorBoundaryType[AnchorBoundaryType[\"BOUNDED\"] = 0] = \"BOUNDED\";\n AnchorBoundaryType[AnchorBoundaryType[\"UNBOUNDED\"] = 1] = \"UNBOUNDED\";\n})($5e84edd0d370f6cc$export$e4ad4a7a8f9088fc || ($5e84edd0d370f6cc$export$e4ad4a7a8f9088fc = {}));\nvar $5e84edd0d370f6cc$export$21c51bc433c16634 = {\n LEFT: 'left',\n RIGHT: 'right',\n CENTER: 'center',\n TOP: 'top',\n BOTTOM: 'bottom'\n};\n/**\n * Enum for possible positions of a tooltip with caret (this specifies the\n * positioning of the tooltip relative to the anchor -- the position of the\n * caret will follow that of the tooltip). This can NOT be combined with the\n * above X/YPosition options. Naming for the enums follows: (vertical\n * placement)_(horizontal placement).\n */ var $5e84edd0d370f6cc$export$c932156b3d020a8f;\n(function(PositionWithCaret) {\n PositionWithCaret[PositionWithCaret[\"DETECTED\"] = 0] = \"DETECTED\";\n PositionWithCaret[PositionWithCaret[\"ABOVE_START\"] = 1] = \"ABOVE_START\";\n PositionWithCaret[PositionWithCaret[\"ABOVE_CENTER\"] = 2] = \"ABOVE_CENTER\";\n PositionWithCaret[PositionWithCaret[\"ABOVE_END\"] = 3] = \"ABOVE_END\";\n PositionWithCaret[PositionWithCaret[\"TOP_SIDE_START\"] = 4] = \"TOP_SIDE_START\";\n PositionWithCaret[PositionWithCaret[\"CENTER_SIDE_START\"] = 5] = \"CENTER_SIDE_START\";\n PositionWithCaret[PositionWithCaret[\"BOTTOM_SIDE_START\"] = 6] = \"BOTTOM_SIDE_START\";\n PositionWithCaret[PositionWithCaret[\"TOP_SIDE_END\"] = 7] = \"TOP_SIDE_END\";\n PositionWithCaret[PositionWithCaret[\"CENTER_SIDE_END\"] = 8] = \"CENTER_SIDE_END\";\n PositionWithCaret[PositionWithCaret[\"BOTTOM_SIDE_END\"] = 9] = \"BOTTOM_SIDE_END\";\n PositionWithCaret[PositionWithCaret[\"BELOW_START\"] = 10] = \"BELOW_START\";\n PositionWithCaret[PositionWithCaret[\"BELOW_CENTER\"] = 11] = \"BELOW_CENTER\";\n PositionWithCaret[PositionWithCaret[\"BELOW_END\"] = 12] = \"BELOW_END\";\n})($5e84edd0d370f6cc$export$c932156b3d020a8f || ($5e84edd0d370f6cc$export$c932156b3d020a8f = {}));\nvar $5e84edd0d370f6cc$export$f574c92ec84323d9;\n(function(YPositionWithCaret) {\n YPositionWithCaret[YPositionWithCaret[\"ABOVE\"] = 1] = \"ABOVE\";\n YPositionWithCaret[YPositionWithCaret[\"BELOW\"] = 2] = \"BELOW\";\n YPositionWithCaret[YPositionWithCaret[\"SIDE_TOP\"] = 3] = \"SIDE_TOP\";\n YPositionWithCaret[YPositionWithCaret[\"SIDE_CENTER\"] = 4] = \"SIDE_CENTER\";\n YPositionWithCaret[YPositionWithCaret[\"SIDE_BOTTOM\"] = 5] = \"SIDE_BOTTOM\";\n})($5e84edd0d370f6cc$export$f574c92ec84323d9 || ($5e84edd0d370f6cc$export$f574c92ec84323d9 = {}));\nvar $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0;\n(function(XPositionWithCaret) {\n XPositionWithCaret[XPositionWithCaret[\"START\"] = 1] = \"START\";\n XPositionWithCaret[XPositionWithCaret[\"CENTER\"] = 2] = \"CENTER\";\n XPositionWithCaret[XPositionWithCaret[\"END\"] = 3] = \"END\";\n XPositionWithCaret[XPositionWithCaret[\"SIDE_START\"] = 4] = \"SIDE_START\";\n XPositionWithCaret[XPositionWithCaret[\"SIDE_END\"] = 5] = \"SIDE_END\";\n})($5e84edd0d370f6cc$export$2ccb7d1982d6ddb0 || ($5e84edd0d370f6cc$export$2ccb7d1982d6ddb0 = {}));\n\n\n/**\n * @license\n * Copyright 2020 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ \n\n\n\n/**\n * @license\n * Copyright 2020 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */ /**\n * KEY provides normalized string values for keys.\n */ var $52e7243426ddff9a$export$7167c830cefcb6b5 = {\n UNKNOWN: 'Unknown',\n BACKSPACE: 'Backspace',\n ENTER: 'Enter',\n SPACEBAR: 'Spacebar',\n PAGE_UP: 'PageUp',\n PAGE_DOWN: 'PageDown',\n END: 'End',\n HOME: 'Home',\n ARROW_LEFT: 'ArrowLeft',\n ARROW_UP: 'ArrowUp',\n ARROW_RIGHT: 'ArrowRight',\n ARROW_DOWN: 'ArrowDown',\n DELETE: 'Delete',\n ESCAPE: 'Escape',\n TAB: 'Tab'\n};\nvar $52e7243426ddff9a$var$normalizedKeys = new Set();\n// IE11 has no support for new Map with iterable so we need to initialize this\n// by hand.\n$52e7243426ddff9a$var$normalizedKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.BACKSPACE);\n$52e7243426ddff9a$var$normalizedKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.ENTER);\n$52e7243426ddff9a$var$normalizedKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.SPACEBAR);\n$52e7243426ddff9a$var$normalizedKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.PAGE_UP);\n$52e7243426ddff9a$var$normalizedKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.PAGE_DOWN);\n$52e7243426ddff9a$var$normalizedKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.END);\n$52e7243426ddff9a$var$normalizedKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.HOME);\n$52e7243426ddff9a$var$normalizedKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.ARROW_LEFT);\n$52e7243426ddff9a$var$normalizedKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.ARROW_UP);\n$52e7243426ddff9a$var$normalizedKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.ARROW_RIGHT);\n$52e7243426ddff9a$var$normalizedKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.ARROW_DOWN);\n$52e7243426ddff9a$var$normalizedKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.DELETE);\n$52e7243426ddff9a$var$normalizedKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.ESCAPE);\n$52e7243426ddff9a$var$normalizedKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.TAB);\nvar $52e7243426ddff9a$var$KEY_CODE = {\n BACKSPACE: 8,\n ENTER: 13,\n SPACEBAR: 32,\n PAGE_UP: 33,\n PAGE_DOWN: 34,\n END: 35,\n HOME: 36,\n ARROW_LEFT: 37,\n ARROW_UP: 38,\n ARROW_RIGHT: 39,\n ARROW_DOWN: 40,\n DELETE: 46,\n ESCAPE: 27,\n TAB: 9\n};\nvar $52e7243426ddff9a$var$mappedKeyCodes = new Map();\n// IE11 has no support for new Map with iterable so we need to initialize this\n// by hand.\n$52e7243426ddff9a$var$mappedKeyCodes.set($52e7243426ddff9a$var$KEY_CODE.BACKSPACE, $52e7243426ddff9a$export$7167c830cefcb6b5.BACKSPACE);\n$52e7243426ddff9a$var$mappedKeyCodes.set($52e7243426ddff9a$var$KEY_CODE.ENTER, $52e7243426ddff9a$export$7167c830cefcb6b5.ENTER);\n$52e7243426ddff9a$var$mappedKeyCodes.set($52e7243426ddff9a$var$KEY_CODE.SPACEBAR, $52e7243426ddff9a$export$7167c830cefcb6b5.SPACEBAR);\n$52e7243426ddff9a$var$mappedKeyCodes.set($52e7243426ddff9a$var$KEY_CODE.PAGE_UP, $52e7243426ddff9a$export$7167c830cefcb6b5.PAGE_UP);\n$52e7243426ddff9a$var$mappedKeyCodes.set($52e7243426ddff9a$var$KEY_CODE.PAGE_DOWN, $52e7243426ddff9a$export$7167c830cefcb6b5.PAGE_DOWN);\n$52e7243426ddff9a$var$mappedKeyCodes.set($52e7243426ddff9a$var$KEY_CODE.END, $52e7243426ddff9a$export$7167c830cefcb6b5.END);\n$52e7243426ddff9a$var$mappedKeyCodes.set($52e7243426ddff9a$var$KEY_CODE.HOME, $52e7243426ddff9a$export$7167c830cefcb6b5.HOME);\n$52e7243426ddff9a$var$mappedKeyCodes.set($52e7243426ddff9a$var$KEY_CODE.ARROW_LEFT, $52e7243426ddff9a$export$7167c830cefcb6b5.ARROW_LEFT);\n$52e7243426ddff9a$var$mappedKeyCodes.set($52e7243426ddff9a$var$KEY_CODE.ARROW_UP, $52e7243426ddff9a$export$7167c830cefcb6b5.ARROW_UP);\n$52e7243426ddff9a$var$mappedKeyCodes.set($52e7243426ddff9a$var$KEY_CODE.ARROW_RIGHT, $52e7243426ddff9a$export$7167c830cefcb6b5.ARROW_RIGHT);\n$52e7243426ddff9a$var$mappedKeyCodes.set($52e7243426ddff9a$var$KEY_CODE.ARROW_DOWN, $52e7243426ddff9a$export$7167c830cefcb6b5.ARROW_DOWN);\n$52e7243426ddff9a$var$mappedKeyCodes.set($52e7243426ddff9a$var$KEY_CODE.DELETE, $52e7243426ddff9a$export$7167c830cefcb6b5.DELETE);\n$52e7243426ddff9a$var$mappedKeyCodes.set($52e7243426ddff9a$var$KEY_CODE.ESCAPE, $52e7243426ddff9a$export$7167c830cefcb6b5.ESCAPE);\n$52e7243426ddff9a$var$mappedKeyCodes.set($52e7243426ddff9a$var$KEY_CODE.TAB, $52e7243426ddff9a$export$7167c830cefcb6b5.TAB);\nvar $52e7243426ddff9a$var$navigationKeys = new Set();\n// IE11 has no support for new Set with iterable so we need to initialize this\n// by hand.\n$52e7243426ddff9a$var$navigationKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.PAGE_UP);\n$52e7243426ddff9a$var$navigationKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.PAGE_DOWN);\n$52e7243426ddff9a$var$navigationKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.END);\n$52e7243426ddff9a$var$navigationKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.HOME);\n$52e7243426ddff9a$var$navigationKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.ARROW_LEFT);\n$52e7243426ddff9a$var$navigationKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.ARROW_UP);\n$52e7243426ddff9a$var$navigationKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.ARROW_RIGHT);\n$52e7243426ddff9a$var$navigationKeys.add($52e7243426ddff9a$export$7167c830cefcb6b5.ARROW_DOWN);\nfunction $52e7243426ddff9a$export$e0c709538cb8ae18(evt) {\n var key = evt.key;\n // If the event already has a normalized key, return it\n if ($52e7243426ddff9a$var$normalizedKeys.has(key)) return key;\n // tslint:disable-next-line:deprecation\n var mappedKey = $52e7243426ddff9a$var$mappedKeyCodes.get(evt.keyCode);\n if (mappedKey) return mappedKey;\n return $52e7243426ddff9a$export$7167c830cefcb6b5.UNKNOWN;\n}\nfunction $52e7243426ddff9a$export$15e092e359be91e2(evt) {\n return $52e7243426ddff9a$var$navigationKeys.has($52e7243426ddff9a$export$e0c709538cb8ae18(evt));\n}\n\n\n\nvar $778570533f5b6055$var$RICH = (0, $5e84edd0d370f6cc$export$19467ce65cc4f055).RICH, $778570533f5b6055$var$SHOWN = (0, $5e84edd0d370f6cc$export$19467ce65cc4f055).SHOWN, $778570533f5b6055$var$SHOWING = (0, $5e84edd0d370f6cc$export$19467ce65cc4f055).SHOWING, $778570533f5b6055$var$SHOWING_TRANSITION = (0, $5e84edd0d370f6cc$export$19467ce65cc4f055).SHOWING_TRANSITION, $778570533f5b6055$var$HIDE = (0, $5e84edd0d370f6cc$export$19467ce65cc4f055).HIDE, $778570533f5b6055$var$HIDE_TRANSITION = (0, $5e84edd0d370f6cc$export$19467ce65cc4f055).HIDE_TRANSITION, $778570533f5b6055$var$MULTILINE_TOOLTIP = (0, $5e84edd0d370f6cc$export$19467ce65cc4f055).MULTILINE_TOOLTIP;\nvar $778570533f5b6055$var$AnimationKeys;\n(function(AnimationKeys) {\n AnimationKeys[\"POLL_ANCHOR\"] = \"poll_anchor\";\n})($778570533f5b6055$var$AnimationKeys || ($778570533f5b6055$var$AnimationKeys = {}));\n// Accessing `window` without a `typeof` check will throw on Node environments.\nvar $778570533f5b6055$var$HAS_WINDOW = typeof window !== 'undefined';\nvar $778570533f5b6055$export$ad52ca8d63569c37 = /** @class */ function(_super) {\n (0, $5c96a02c592fcff1$export$a8ba968b8961cb8a)(MDCTooltipFoundation, _super);\n function MDCTooltipFoundation(adapter) {\n var _this = _super.call(this, (0, $5c96a02c592fcff1$export$18ce0697a983be9b)((0, $5c96a02c592fcff1$export$18ce0697a983be9b)({}, MDCTooltipFoundation.defaultAdapter), adapter)) || this;\n _this.tooltipShown = false;\n _this.anchorGap = (0, $5e84edd0d370f6cc$export$1f6c9cc012ebacae).BOUNDED_ANCHOR_GAP;\n _this.xTooltipPos = (0, $5e84edd0d370f6cc$export$641c5df4f167fdf5).DETECTED;\n _this.yTooltipPos = (0, $5e84edd0d370f6cc$export$191747e67c9789ed).DETECTED;\n _this.tooltipPositionWithCaret = (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).DETECTED;\n // Minimum threshold distance needed between the tooltip and the viewport.\n _this.minViewportTooltipThreshold = (0, $5e84edd0d370f6cc$export$1f6c9cc012ebacae).MIN_VIEWPORT_TOOLTIP_THRESHOLD;\n _this.hideDelayMs = (0, $5e84edd0d370f6cc$export$1f6c9cc012ebacae).HIDE_DELAY_MS;\n _this.showDelayMs = (0, $5e84edd0d370f6cc$export$1f6c9cc012ebacae).SHOW_DELAY_MS;\n _this.anchorRect = null;\n _this.parentRect = null;\n _this.frameId = null;\n _this.hideTimeout = null;\n _this.showTimeout = null;\n _this.addAncestorScrollEventListeners = new Array();\n _this.removeAncestorScrollEventListeners = new Array();\n _this.animFrame = new (0, $22ecda001003cf6d$export$1f3d5b43727c648a)();\n _this.anchorBlurHandler = function(evt) {\n _this.handleAnchorBlur(evt);\n };\n _this.documentClickHandler = function(evt) {\n _this.handleDocumentClick(evt);\n };\n _this.documentKeydownHandler = function(evt) {\n _this.handleKeydown(evt);\n };\n _this.tooltipMouseEnterHandler = function() {\n _this.handleTooltipMouseEnter();\n };\n _this.tooltipMouseLeaveHandler = function() {\n _this.handleTooltipMouseLeave();\n };\n _this.richTooltipFocusOutHandler = function(evt) {\n _this.handleRichTooltipFocusOut(evt);\n };\n _this.windowScrollHandler = function() {\n _this.handleWindowScrollEvent();\n };\n _this.windowResizeHandler = function() {\n _this.handleWindowChangeEvent();\n };\n return _this;\n }\n Object.defineProperty(MDCTooltipFoundation, \"defaultAdapter\", {\n get: function() {\n return {\n getAttribute: function() {\n return null;\n },\n setAttribute: function() {\n return undefined;\n },\n removeAttribute: function() {\n return undefined;\n },\n addClass: function() {\n return undefined;\n },\n hasClass: function() {\n return false;\n },\n removeClass: function() {\n return undefined;\n },\n getComputedStyleProperty: function() {\n return '';\n },\n setStyleProperty: function() {\n return undefined;\n },\n setSurfaceAnimationStyleProperty: function() {\n return undefined;\n },\n getViewportWidth: function() {\n return 0;\n },\n getViewportHeight: function() {\n return 0;\n },\n getTooltipSize: function() {\n return {\n width: 0,\n height: 0\n };\n },\n getAnchorBoundingRect: function() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n width: 0,\n height: 0\n };\n },\n getParentBoundingRect: function() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n width: 0,\n height: 0\n };\n },\n getAnchorAttribute: function() {\n return null;\n },\n setAnchorAttribute: function() {\n return null;\n },\n isRTL: function() {\n return false;\n },\n anchorContainsElement: function() {\n return false;\n },\n tooltipContainsElement: function() {\n return false;\n },\n focusAnchorElement: function() {\n return undefined;\n },\n registerEventHandler: function() {\n return undefined;\n },\n deregisterEventHandler: function() {\n return undefined;\n },\n registerAnchorEventHandler: function() {\n return undefined;\n },\n deregisterAnchorEventHandler: function() {\n return undefined;\n },\n registerDocumentEventHandler: function() {\n return undefined;\n },\n deregisterDocumentEventHandler: function() {\n return undefined;\n },\n registerWindowEventHandler: function() {\n return undefined;\n },\n deregisterWindowEventHandler: function() {\n return undefined;\n },\n notifyHidden: function() {\n return undefined;\n },\n getTooltipCaretBoundingRect: function() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n width: 0,\n height: 0\n };\n },\n setTooltipCaretStyle: function() {\n return undefined;\n },\n clearTooltipCaretStyles: function() {\n return undefined;\n },\n getActiveElement: function() {\n return null;\n }\n };\n },\n enumerable: false,\n configurable: true\n });\n MDCTooltipFoundation.prototype.init = function() {\n this.richTooltip = this.adapter.hasClass($778570533f5b6055$var$RICH);\n this.persistentTooltip = this.adapter.getAttribute((0, $5e84edd0d370f6cc$export$16bd37df0047a29c).PERSISTENT) === 'true';\n this.interactiveTooltip = !!this.adapter.getAnchorAttribute((0, $5e84edd0d370f6cc$export$16bd37df0047a29c).ARIA_EXPANDED) && this.adapter.getAnchorAttribute((0, $5e84edd0d370f6cc$export$16bd37df0047a29c).ARIA_HASPOPUP) === 'dialog';\n this.hasCaret = this.richTooltip && this.adapter.getAttribute((0, $5e84edd0d370f6cc$export$16bd37df0047a29c).HAS_CARET) === 'true';\n };\n MDCTooltipFoundation.prototype.isShown = function() {\n return this.tooltipShown;\n };\n MDCTooltipFoundation.prototype.isRich = function() {\n return this.richTooltip;\n };\n MDCTooltipFoundation.prototype.isPersistent = function() {\n return this.persistentTooltip;\n };\n MDCTooltipFoundation.prototype.handleAnchorMouseEnter = function() {\n var _this = this;\n if (this.tooltipShown) // Covers the instance where a user hovers over the anchor to reveal the\n // tooltip, and then quickly navigates away and then back to the anchor.\n // The tooltip should stay visible without animating out and then back in\n // again.\n this.show();\n else {\n // clearHideTimeout here since handleAnchorMouseLeave sets a hideTimeout\n // and that can execute before the showTimeout executes, resulting in hide\n // being called and the showTimeout set below to be cleared.\n this.clearHideTimeout();\n this.showTimeout = setTimeout(function() {\n _this.show();\n }, this.showDelayMs);\n }\n };\n MDCTooltipFoundation.prototype.handleAnchorTouchstart = function() {\n var _this = this;\n this.showTimeout = setTimeout(function() {\n _this.show();\n }, this.showDelayMs);\n // Prevent a context menu from appearing if user is long-pressing on a\n // tooltip anchor.\n this.adapter.registerWindowEventHandler('contextmenu', this.preventContextMenuOnLongTouch);\n };\n MDCTooltipFoundation.prototype.preventContextMenuOnLongTouch = function(evt) {\n evt.preventDefault();\n };\n MDCTooltipFoundation.prototype.handleAnchorTouchend = function() {\n this.clearShowTimeout();\n // Only remove the 'contextmenu' listener if the tooltip is not shown. When\n // the tooltip *is* shown, listener is removed in the close method.\n if (!this.isShown()) this.adapter.deregisterWindowEventHandler('contextmenu', this.preventContextMenuOnLongTouch);\n };\n MDCTooltipFoundation.prototype.handleAnchorFocus = function(evt) {\n var _this = this;\n // TODO(b/157075286): Need to add some way to distinguish keyboard\n // navigation focus events from other focus events, and only show the\n // tooltip on the former of these events.\n var relatedTarget = evt.relatedTarget;\n var tooltipContainsRelatedTarget = relatedTarget instanceof HTMLElement && this.adapter.tooltipContainsElement(relatedTarget);\n // Do not show tooltip if the previous focus was on a tooltip element. This\n // occurs when a rich tooltip is closed and focus is restored to the anchor\n // or when user tab-navigates back into the anchor from the rich tooltip.\n if (tooltipContainsRelatedTarget) return;\n this.showTimeout = setTimeout(function() {\n _this.show();\n }, this.showDelayMs);\n };\n MDCTooltipFoundation.prototype.handleAnchorMouseLeave = function() {\n var _this = this;\n this.clearShowTimeout();\n this.hideTimeout = setTimeout(function() {\n _this.hide();\n }, this.hideDelayMs);\n };\n MDCTooltipFoundation.prototype.handleAnchorClick = function() {\n if (this.tooltipShown) this.hide();\n else this.show();\n };\n MDCTooltipFoundation.prototype.handleDocumentClick = function(evt) {\n var anchorOrTooltipContainsTargetElement = evt.target instanceof HTMLElement && (this.adapter.anchorContainsElement(evt.target) || this.adapter.tooltipContainsElement(evt.target));\n // For persistent rich tooltips, we will not hide if:\n // - The click target is within the anchor element. Otherwise, both\n // the anchor element's click handler and this handler will handle the\n // click (due to event propagation), resulting in a shown tooltip\n // being immediately hidden if the tooltip was initially hidden.\n // - The click target is within the tooltip element, since clicks\n // on the tooltip do not close the tooltip.\n if (this.richTooltip && this.persistentTooltip && anchorOrTooltipContainsTargetElement) return;\n // Hide the tooltip immediately on click.\n this.hide();\n };\n MDCTooltipFoundation.prototype.handleKeydown = function(evt) {\n // Hide the tooltip immediately on ESC key.\n var key = (0, $52e7243426ddff9a$export$e0c709538cb8ae18)(evt);\n if (key === (0, $52e7243426ddff9a$export$7167c830cefcb6b5).ESCAPE) {\n var activeElement = this.adapter.getActiveElement();\n var tooltipContainsActiveElement = activeElement instanceof HTMLElement && this.adapter.tooltipContainsElement(activeElement);\n if (tooltipContainsActiveElement) this.adapter.focusAnchorElement();\n this.hide();\n }\n };\n MDCTooltipFoundation.prototype.handleAnchorBlur = function(evt) {\n if (this.richTooltip) {\n var tooltipContainsRelatedTargetElement = evt.relatedTarget instanceof HTMLElement && this.adapter.tooltipContainsElement(evt.relatedTarget);\n // If focus changed to the tooltip element, don't hide the tooltip.\n if (tooltipContainsRelatedTargetElement) return;\n if (evt.relatedTarget === null && this.interactiveTooltip) // If evt.relatedTarget is null, it is because focus is moving to an\n // element that is not focusable. This should only occur in instances\n // of a screen reader in browse mode/linear navigation mode. If the\n // tooltip is interactive (and so the entire content is not read by\n // the screen reader upon the tooltip being opened), we want to allow\n // users to read the content of the tooltip (and not just the focusable\n // elements).\n return;\n }\n // Hide tooltip immediately on focus change.\n this.hide();\n };\n MDCTooltipFoundation.prototype.handleTooltipMouseEnter = function() {\n this.show();\n };\n MDCTooltipFoundation.prototype.handleTooltipMouseLeave = function() {\n var _this = this;\n this.clearShowTimeout();\n this.hideTimeout = setTimeout(function() {\n _this.hide();\n }, this.hideDelayMs);\n };\n MDCTooltipFoundation.prototype.handleRichTooltipFocusOut = function(evt) {\n var anchorOrTooltipContainsRelatedTargetElement = evt.relatedTarget instanceof HTMLElement && (this.adapter.anchorContainsElement(evt.relatedTarget) || this.adapter.tooltipContainsElement(evt.relatedTarget));\n // If the focus is still within the anchor or the tooltip, do not hide the\n // tooltip.\n if (anchorOrTooltipContainsRelatedTargetElement) return;\n if (evt.relatedTarget === null && this.interactiveTooltip) // If evt.relatedTarget is null, it is because focus is moving to an\n // element that is not focusable. This should only occur in instances\n // of a screen reader in browse mode/linear navigation mode. If the\n // tooltip is interactive (and so the entire content is not read by\n // the screen reader upon the tooltip being opened), we want to allow\n // users to read the content of the tooltip (and not just the focusable\n // elements).\n return;\n this.hide();\n };\n MDCTooltipFoundation.prototype.handleWindowScrollEvent = function() {\n if (this.persistentTooltip) {\n // Persistent tooltips remain visible on user scroll, call appropriate\n // handler to ensure the tooltip remains pinned to the anchor on page\n // scroll.\n this.handleWindowChangeEvent();\n return;\n }\n this.hide();\n };\n /**\n * On window resize or scroll, check the anchor position and size and\n * repostion tooltip if necessary.\n */ MDCTooltipFoundation.prototype.handleWindowChangeEvent = function() {\n var _this = this;\n // Since scroll and resize events can fire at a high rate, we throttle\n // the potential re-positioning of tooltip component using\n // requestAnimationFrame.\n this.animFrame.request($778570533f5b6055$var$AnimationKeys.POLL_ANCHOR, function() {\n _this.repositionTooltipOnAnchorMove();\n });\n };\n MDCTooltipFoundation.prototype.show = function() {\n var e_1, _a;\n var _this = this;\n this.clearHideTimeout();\n this.clearShowTimeout();\n if (this.tooltipShown) return;\n this.tooltipShown = true;\n this.adapter.removeAttribute('aria-hidden');\n if (this.richTooltip) {\n if (this.interactiveTooltip) this.adapter.setAnchorAttribute('aria-expanded', 'true');\n this.adapter.registerEventHandler('focusout', this.richTooltipFocusOutHandler);\n }\n if (!this.persistentTooltip) {\n this.adapter.registerEventHandler('mouseenter', this.tooltipMouseEnterHandler);\n this.adapter.registerEventHandler('mouseleave', this.tooltipMouseLeaveHandler);\n }\n this.adapter.removeClass($778570533f5b6055$var$HIDE);\n this.adapter.addClass($778570533f5b6055$var$SHOWING);\n if (this.isTooltipMultiline() && !this.richTooltip) this.adapter.addClass($778570533f5b6055$var$MULTILINE_TOOLTIP);\n this.anchorRect = this.adapter.getAnchorBoundingRect();\n this.parentRect = this.adapter.getParentBoundingRect();\n this.richTooltip ? this.positionRichTooltip() : this.positionPlainTooltip();\n this.adapter.registerAnchorEventHandler('blur', this.anchorBlurHandler);\n this.adapter.registerDocumentEventHandler('click', this.documentClickHandler);\n this.adapter.registerDocumentEventHandler('keydown', this.documentKeydownHandler);\n this.adapter.registerWindowEventHandler('scroll', this.windowScrollHandler);\n this.adapter.registerWindowEventHandler('resize', this.windowResizeHandler);\n try {\n // Register any additional scroll handlers\n for(var _b = (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)(this.addAncestorScrollEventListeners), _c = _b.next(); !_c.done; _c = _b.next()){\n var fn = _c.value;\n fn();\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally{\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally{\n if (e_1) throw e_1.error;\n }\n }\n this.frameId = requestAnimationFrame(function() {\n _this.clearAllAnimationClasses();\n _this.adapter.addClass($778570533f5b6055$var$SHOWN);\n _this.adapter.addClass($778570533f5b6055$var$SHOWING_TRANSITION);\n });\n };\n MDCTooltipFoundation.prototype.hide = function() {\n var e_2, _a;\n this.clearHideTimeout();\n this.clearShowTimeout();\n if (!this.tooltipShown) return;\n if (this.frameId) cancelAnimationFrame(this.frameId);\n this.tooltipShown = false;\n this.adapter.setAttribute('aria-hidden', 'true');\n this.adapter.deregisterEventHandler('focusout', this.richTooltipFocusOutHandler);\n if (this.richTooltip) {\n if (this.interactiveTooltip) this.adapter.setAnchorAttribute('aria-expanded', 'false');\n }\n if (!this.persistentTooltip) {\n this.adapter.deregisterEventHandler('mouseenter', this.tooltipMouseEnterHandler);\n this.adapter.deregisterEventHandler('mouseleave', this.tooltipMouseLeaveHandler);\n }\n this.clearAllAnimationClasses();\n this.adapter.addClass($778570533f5b6055$var$HIDE);\n this.adapter.addClass($778570533f5b6055$var$HIDE_TRANSITION);\n this.adapter.removeClass($778570533f5b6055$var$SHOWN);\n this.adapter.deregisterAnchorEventHandler('blur', this.anchorBlurHandler);\n this.adapter.deregisterDocumentEventHandler('click', this.documentClickHandler);\n this.adapter.deregisterDocumentEventHandler('keydown', this.documentKeydownHandler);\n this.adapter.deregisterWindowEventHandler('scroll', this.windowScrollHandler);\n this.adapter.deregisterWindowEventHandler('resize', this.windowResizeHandler);\n this.adapter.deregisterWindowEventHandler('contextmenu', this.preventContextMenuOnLongTouch);\n try {\n // Deregister any additional scroll handlers\n for(var _b = (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)(this.removeAncestorScrollEventListeners), _c = _b.next(); !_c.done; _c = _b.next()){\n var fn = _c.value;\n fn();\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally{\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally{\n if (e_2) throw e_2.error;\n }\n }\n };\n MDCTooltipFoundation.prototype.handleTransitionEnd = function() {\n var isHidingTooltip = this.adapter.hasClass($778570533f5b6055$var$HIDE);\n this.adapter.removeClass($778570533f5b6055$var$SHOWING);\n this.adapter.removeClass($778570533f5b6055$var$SHOWING_TRANSITION);\n this.adapter.removeClass($778570533f5b6055$var$HIDE);\n this.adapter.removeClass($778570533f5b6055$var$HIDE_TRANSITION);\n // If handleTransitionEnd is called after hiding the tooltip, the tooltip\n // will have the HIDE class (before calling the adapter removeClass method).\n // If tooltip is now hidden, send a notification that the animation has\n // completed and the tooltip is no longer visible.\n // We don't send a notification of the animation completing if a showTimeout\n // value is set -- this happens when a user triggers a tooltip to be shown\n // while that tooltip is fading. Once this hide transition is completed,\n // that same tooltip will be re-shown.\n if (isHidingTooltip && this.showTimeout === null) this.adapter.notifyHidden();\n };\n MDCTooltipFoundation.prototype.clearAllAnimationClasses = function() {\n this.adapter.removeClass($778570533f5b6055$var$SHOWING_TRANSITION);\n this.adapter.removeClass($778570533f5b6055$var$HIDE_TRANSITION);\n };\n MDCTooltipFoundation.prototype.setTooltipPosition = function(position) {\n var xPos = position.xPos, yPos = position.yPos, withCaretPos = position.withCaretPos;\n if (this.hasCaret && withCaretPos) {\n this.tooltipPositionWithCaret = withCaretPos;\n return;\n }\n if (xPos) this.xTooltipPos = xPos;\n if (yPos) this.yTooltipPos = yPos;\n };\n MDCTooltipFoundation.prototype.setAnchorBoundaryType = function(type) {\n if (type === (0, $5e84edd0d370f6cc$export$e4ad4a7a8f9088fc).UNBOUNDED) this.anchorGap = (0, $5e84edd0d370f6cc$export$1f6c9cc012ebacae).UNBOUNDED_ANCHOR_GAP;\n else this.anchorGap = (0, $5e84edd0d370f6cc$export$1f6c9cc012ebacae).BOUNDED_ANCHOR_GAP;\n };\n MDCTooltipFoundation.prototype.setShowDelay = function(delayMs) {\n this.showDelayMs = delayMs;\n };\n MDCTooltipFoundation.prototype.setHideDelay = function(delayMs) {\n this.hideDelayMs = delayMs;\n };\n MDCTooltipFoundation.prototype.isTooltipMultiline = function() {\n var tooltipSize = this.adapter.getTooltipSize();\n return tooltipSize.height > (0, $5e84edd0d370f6cc$export$1f6c9cc012ebacae).MIN_HEIGHT && tooltipSize.width >= (0, $5e84edd0d370f6cc$export$1f6c9cc012ebacae).MAX_WIDTH;\n };\n MDCTooltipFoundation.prototype.positionPlainTooltip = function() {\n // A plain tooltip has `fixed` positioning and is placed as an immediate\n // child of the document body. Its positioning is calculated with respect to\n // the viewport.\n var _a = this.calculateTooltipStyles(this.anchorRect), top = _a.top, yTransformOrigin = _a.yTransformOrigin, left = _a.left, xTransformOrigin = _a.xTransformOrigin;\n var transformProperty = $778570533f5b6055$var$HAS_WINDOW ? (0, $d3b9476725b396f0$export$3e3382687f32c044)(window, 'transform') : 'transform';\n this.adapter.setSurfaceAnimationStyleProperty(transformProperty + \"-origin\", xTransformOrigin + \" \" + yTransformOrigin);\n this.adapter.setStyleProperty('top', top + \"px\");\n this.adapter.setStyleProperty('left', left + \"px\");\n };\n MDCTooltipFoundation.prototype.positionRichTooltip = function() {\n // TODO(b/177686782): Remove width setting when max-content is used to style\n // the rich tooltip.\n var _a, _b, _c, _d;\n // getComputedStyleProperty is used instead of getTooltipSize since\n // getTooltipSize returns the offSetWidth, which includes the border and\n // padding. What we need is the width of the tooltip without border and\n // padding.\n var width = this.adapter.getComputedStyleProperty('width');\n // When rich tooltips are positioned within their parent containers, the\n // tooltip width might be shrunk if it collides with the edge of the parent\n // container. We set the width of the tooltip to prevent this.\n this.adapter.setStyleProperty('width', width);\n var _e = this.hasCaret ? this.calculateTooltipWithCaretStyles(this.anchorRect) : this.calculateTooltipStyles(this.anchorRect), top = _e.top, yTransformOrigin = _e.yTransformOrigin, left = _e.left, xTransformOrigin = _e.xTransformOrigin;\n var transformProperty = $778570533f5b6055$var$HAS_WINDOW ? (0, $d3b9476725b396f0$export$3e3382687f32c044)(window, 'transform') : 'transform';\n this.adapter.setSurfaceAnimationStyleProperty(transformProperty + \"-origin\", xTransformOrigin + \" \" + yTransformOrigin);\n // A rich tooltip has `absolute` positioning and is placed as a sibling to\n // the anchor element. Its positioning is calculated with respect to the\n // parent element, and so the values need to be adjusted against the parent\n // element.\n var leftAdjustment = left - ((_b = (_a = this.parentRect) === null || _a === void 0 ? void 0 : _a.left) !== null && _b !== void 0 ? _b : 0);\n var topAdjustment = top - ((_d = (_c = this.parentRect) === null || _c === void 0 ? void 0 : _c.top) !== null && _d !== void 0 ? _d : 0);\n this.adapter.setStyleProperty('top', topAdjustment + \"px\");\n this.adapter.setStyleProperty('left', leftAdjustment + \"px\");\n };\n /**\n * Calculates the position of the tooltip. A tooltip will be placed beneath\n * the anchor element and aligned either with the 'start'/'end' edge of the\n * anchor element or the 'center'.\n *\n * Tooltip alignment is selected such that the tooltip maintains a threshold\n * distance away from the viewport (defaulting to 'center' alignment). If the\n * placement of the anchor prevents this threshold distance from being\n * maintained, the tooltip is positioned so that it does not collide with the\n * viewport.\n *\n * Users can specify an alignment, however, if this alignment results in the\n * tooltip colliding with the viewport, this specification is overwritten.\n */ MDCTooltipFoundation.prototype.calculateTooltipStyles = function(anchorRect) {\n if (!anchorRect) return {\n top: 0,\n left: 0\n };\n var tooltipSize = this.adapter.getTooltipSize();\n var top = this.calculateYTooltipDistance(anchorRect, tooltipSize.height);\n var left = this.calculateXTooltipDistance(anchorRect, tooltipSize.width);\n return {\n top: top.distance,\n yTransformOrigin: top.yTransformOrigin,\n left: left.distance,\n xTransformOrigin: left.xTransformOrigin\n };\n };\n /**\n * Calculates the `left` distance for the tooltip.\n * Returns the distance value and a string indicating the x-axis transform-\n * origin that should be used when animating the tooltip.\n */ MDCTooltipFoundation.prototype.calculateXTooltipDistance = function(anchorRect, tooltipWidth) {\n var isLTR = !this.adapter.isRTL();\n var startPos, endPos, centerPos;\n var startTransformOrigin, endTransformOrigin;\n if (this.richTooltip) {\n startPos = isLTR ? anchorRect.left - tooltipWidth : anchorRect.right;\n endPos = isLTR ? anchorRect.right : anchorRect.left - tooltipWidth;\n startTransformOrigin = isLTR ? (0, $5e84edd0d370f6cc$export$21c51bc433c16634).RIGHT : (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT;\n endTransformOrigin = isLTR ? (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT : (0, $5e84edd0d370f6cc$export$21c51bc433c16634).RIGHT;\n } else {\n startPos = isLTR ? anchorRect.left : anchorRect.right - tooltipWidth;\n endPos = isLTR ? anchorRect.right - tooltipWidth : anchorRect.left;\n centerPos = anchorRect.left + (anchorRect.width - tooltipWidth) / 2;\n startTransformOrigin = isLTR ? (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT : (0, $5e84edd0d370f6cc$export$21c51bc433c16634).RIGHT;\n endTransformOrigin = isLTR ? (0, $5e84edd0d370f6cc$export$21c51bc433c16634).RIGHT : (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT;\n }\n var positionOptions = this.richTooltip ? this.determineValidPositionOptions(startPos, endPos) : // For plain tooltips, centerPos is defined\n this.determineValidPositionOptions(centerPos, startPos, endPos);\n if (this.xTooltipPos === (0, $5e84edd0d370f6cc$export$641c5df4f167fdf5).START && positionOptions.has(startPos)) return {\n distance: startPos,\n xTransformOrigin: startTransformOrigin\n };\n if (this.xTooltipPos === (0, $5e84edd0d370f6cc$export$641c5df4f167fdf5).END && positionOptions.has(endPos)) return {\n distance: endPos,\n xTransformOrigin: endTransformOrigin\n };\n if (this.xTooltipPos === (0, $5e84edd0d370f6cc$export$641c5df4f167fdf5).CENTER && positionOptions.has(centerPos)) // This code path is only executed if calculating the distance for plain\n // tooltips. In this instance, centerPos will always be defined, so we can\n // safely assert that the returned value is non-null/undefined.\n return {\n distance: centerPos,\n xTransformOrigin: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).CENTER\n };\n // If no user position is supplied, rich tooltips default to end pos, then\n // start position. Plain tooltips default to center, start, then end.\n var possiblePositions = this.richTooltip ? [\n {\n distance: endPos,\n xTransformOrigin: endTransformOrigin\n },\n {\n distance: startPos,\n xTransformOrigin: startTransformOrigin\n }\n ] : [\n {\n distance: centerPos,\n xTransformOrigin: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).CENTER\n },\n {\n distance: startPos,\n xTransformOrigin: startTransformOrigin\n },\n {\n distance: endPos,\n xTransformOrigin: endTransformOrigin\n }\n ];\n var validPosition = possiblePositions.find(function(_a) {\n var distance = _a.distance;\n return positionOptions.has(distance);\n });\n if (validPosition) return validPosition;\n // Indicates that all potential positions would result in the tooltip\n // colliding with the viewport. This would only occur when the anchor\n // element itself collides with the viewport, or the viewport is very\n // narrow. In this case, we allow the tooltip to be mis-aligned from the\n // anchor element.\n if (anchorRect.left < 0) return {\n distance: this.minViewportTooltipThreshold,\n xTransformOrigin: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT\n };\n else {\n var viewportWidth = this.adapter.getViewportWidth();\n var distance = viewportWidth - (tooltipWidth + this.minViewportTooltipThreshold);\n return {\n distance: distance,\n xTransformOrigin: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).RIGHT\n };\n }\n };\n /**\n * Given the values for the horizontal alignments of the tooltip, calculates\n * which of these options would result in the tooltip maintaining the required\n * threshold distance vs which would result in the tooltip staying within the\n * viewport.\n *\n * A Set of values is returned holding the distances that would honor the\n * above requirements. Following the logic for determining the tooltip\n * position, if all alignments violate the threshold, then the returned Set\n * contains values that keep the tooltip within the viewport.\n */ MDCTooltipFoundation.prototype.determineValidPositionOptions = function() {\n var e_3, _a;\n var positions = [];\n for(var _i = 0; _i < arguments.length; _i++)positions[_i] = arguments[_i];\n var posWithinThreshold = new Set();\n var posWithinViewport = new Set();\n try {\n for(var positions_1 = (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()){\n var position = positions_1_1.value;\n if (this.positionHonorsViewportThreshold(position)) posWithinThreshold.add(position);\n else if (this.positionDoesntCollideWithViewport(position)) posWithinViewport.add(position);\n }\n } catch (e_3_1) {\n e_3 = {\n error: e_3_1\n };\n } finally{\n try {\n if (positions_1_1 && !positions_1_1.done && (_a = positions_1.return)) _a.call(positions_1);\n } finally{\n if (e_3) throw e_3.error;\n }\n }\n return posWithinThreshold.size ? posWithinThreshold : posWithinViewport;\n };\n MDCTooltipFoundation.prototype.positionHonorsViewportThreshold = function(leftPos) {\n var viewportWidth = this.adapter.getViewportWidth();\n var tooltipWidth = this.adapter.getTooltipSize().width;\n return leftPos + tooltipWidth <= viewportWidth - this.minViewportTooltipThreshold && leftPos >= this.minViewportTooltipThreshold;\n };\n MDCTooltipFoundation.prototype.positionDoesntCollideWithViewport = function(leftPos) {\n var viewportWidth = this.adapter.getViewportWidth();\n var tooltipWidth = this.adapter.getTooltipSize().width;\n return leftPos + tooltipWidth <= viewportWidth && leftPos >= 0;\n };\n /**\n * Calculates the `top` distance for the tooltip.\n * Returns the distance value and a string indicating the y-axis transform-\n * origin that should be used when animating the tooltip.\n */ MDCTooltipFoundation.prototype.calculateYTooltipDistance = function(anchorRect, tooltipHeight) {\n var belowYPos = anchorRect.bottom + this.anchorGap;\n var aboveYPos = anchorRect.top - (this.anchorGap + tooltipHeight);\n var yPositionOptions = this.determineValidYPositionOptions(aboveYPos, belowYPos);\n if (this.yTooltipPos === (0, $5e84edd0d370f6cc$export$191747e67c9789ed).ABOVE && yPositionOptions.has(aboveYPos)) return {\n distance: aboveYPos,\n yTransformOrigin: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).BOTTOM\n };\n else if (this.yTooltipPos === (0, $5e84edd0d370f6cc$export$191747e67c9789ed).BELOW && yPositionOptions.has(belowYPos)) return {\n distance: belowYPos,\n yTransformOrigin: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).TOP\n };\n if (yPositionOptions.has(belowYPos)) return {\n distance: belowYPos,\n yTransformOrigin: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).TOP\n };\n if (yPositionOptions.has(aboveYPos)) return {\n distance: aboveYPos,\n yTransformOrigin: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).BOTTOM\n };\n // Indicates that all potential positions would result in the tooltip\n // colliding with the viewport. This would only occur when the viewport is\n // very short.\n return {\n distance: belowYPos,\n yTransformOrigin: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).TOP\n };\n };\n /**\n * Given the values for above/below alignment of the tooltip, calculates\n * which of these options would result in the tooltip maintaining the required\n * threshold distance vs which would result in the tooltip staying within the\n * viewport.\n *\n * A Set of values is returned holding the distances that would honor the\n * above requirements. Following the logic for determining the tooltip\n * position, if all possible alignments violate the threshold, then the\n * returned Set contains values that keep the tooltip within the viewport.\n */ MDCTooltipFoundation.prototype.determineValidYPositionOptions = function(aboveAnchorPos, belowAnchorPos) {\n var posWithinThreshold = new Set();\n var posWithinViewport = new Set();\n if (this.yPositionHonorsViewportThreshold(aboveAnchorPos)) posWithinThreshold.add(aboveAnchorPos);\n else if (this.yPositionDoesntCollideWithViewport(aboveAnchorPos)) posWithinViewport.add(aboveAnchorPos);\n if (this.yPositionHonorsViewportThreshold(belowAnchorPos)) posWithinThreshold.add(belowAnchorPos);\n else if (this.yPositionDoesntCollideWithViewport(belowAnchorPos)) posWithinViewport.add(belowAnchorPos);\n return posWithinThreshold.size ? posWithinThreshold : posWithinViewport;\n };\n MDCTooltipFoundation.prototype.yPositionHonorsViewportThreshold = function(yPos) {\n var viewportHeight = this.adapter.getViewportHeight();\n var tooltipHeight = this.adapter.getTooltipSize().height;\n return yPos + tooltipHeight + this.minViewportTooltipThreshold <= viewportHeight && yPos >= this.minViewportTooltipThreshold;\n };\n MDCTooltipFoundation.prototype.yPositionDoesntCollideWithViewport = function(yPos) {\n var viewportHeight = this.adapter.getViewportHeight();\n var tooltipHeight = this.adapter.getTooltipSize().height;\n return yPos + tooltipHeight <= viewportHeight && yPos >= 0;\n };\n MDCTooltipFoundation.prototype.calculateTooltipWithCaretStyles = function(anchorRect) {\n // Prior to grabbing the caret bounding rect, we clear all styles set on the\n // caret. This will ensure the width/height is consistent (since we rotate\n // the caret 90deg in some positions which would result in the height and\n // width bounding rect measurements flipping).\n this.adapter.clearTooltipCaretStyles();\n var caretSize = this.adapter.getTooltipCaretBoundingRect();\n if (!anchorRect || !caretSize) return {\n position: (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).DETECTED,\n top: 0,\n left: 0\n };\n // The caret for the rich tooltip is created by rotating/skewing/scaling\n // square div into a diamond shape and then hiding half of it so it looks\n // like a triangle. We use the boundingClientRect to calculate the\n // width/height of the element after the transforms (to the caret) have been\n // applied. Since the full tooltip is scaled by 0.8 for the entrance\n // animation, we divide by this value to retrieve the actual caret\n // dimensions.\n var caretWidth = caretSize.width / (0, $5e84edd0d370f6cc$export$1f6c9cc012ebacae).ANIMATION_SCALE;\n // Since we hide half of caret, we divide the returned DOMRect height\n // by 2.\n var caretHeight = caretSize.height / (0, $5e84edd0d370f6cc$export$1f6c9cc012ebacae).ANIMATION_SCALE / 2;\n var tooltipSize = this.adapter.getTooltipSize();\n var yOptions = this.calculateYWithCaretDistanceOptions(anchorRect, tooltipSize.height, {\n caretWidth: caretWidth,\n caretHeight: caretHeight\n });\n var xOptions = this.calculateXWithCaretDistanceOptions(anchorRect, tooltipSize.width, {\n caretWidth: caretWidth,\n caretHeight: caretHeight\n });\n var positionOptions = this.validateTooltipWithCaretDistances(yOptions, xOptions);\n if (positionOptions.size < 1) positionOptions = this.generateBackupPositionOption(anchorRect, tooltipSize, {\n caretWidth: caretWidth,\n caretHeight: caretHeight\n });\n var _a = this.determineTooltipWithCaretDistance(positionOptions), position = _a.position, xDistance = _a.xDistance, yDistance = _a.yDistance;\n // After determining the position of the tooltip relative to the anchor,\n // place the caret in the corresponding position and retrieve the necessary\n // x/y transform origins needed to properly animate the tooltip entrance.\n var _b = this.setCaretPositionStyles(position, {\n caretWidth: caretWidth,\n caretHeight: caretHeight\n }), yTransformOrigin = _b.yTransformOrigin, xTransformOrigin = _b.xTransformOrigin;\n return {\n yTransformOrigin: yTransformOrigin,\n xTransformOrigin: xTransformOrigin,\n top: yDistance,\n left: xDistance\n };\n };\n MDCTooltipFoundation.prototype.calculateXWithCaretDistanceOptions = function(anchorRect, tooltipWidth, caretSize) {\n var caretWidth = caretSize.caretWidth, caretHeight = caretSize.caretHeight;\n var isLTR = !this.adapter.isRTL();\n var anchorMidpoint = anchorRect.left + anchorRect.width / 2;\n var sideLeftAligned = anchorRect.left - (tooltipWidth + this.anchorGap + caretHeight);\n var sideRightAligned = anchorRect.right + this.anchorGap + caretHeight;\n var sideStartPos = isLTR ? sideLeftAligned : sideRightAligned;\n var sideEndPos = isLTR ? sideRightAligned : sideLeftAligned;\n var verticalLeftAligned = anchorMidpoint - ((0, $5e84edd0d370f6cc$export$1f6c9cc012ebacae).CARET_INDENTATION + caretWidth / 2);\n var verticalRightAligned = anchorMidpoint - (tooltipWidth - (0, $5e84edd0d370f6cc$export$1f6c9cc012ebacae).CARET_INDENTATION - caretWidth / 2);\n var verticalStartPos = isLTR ? verticalLeftAligned : verticalRightAligned;\n var verticalEndPos = isLTR ? verticalRightAligned : verticalLeftAligned;\n var verticalCenterPos = anchorMidpoint - tooltipWidth / 2;\n var possiblePositionsMap = new Map([\n [\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).START,\n verticalStartPos\n ],\n [\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).CENTER,\n verticalCenterPos\n ],\n [\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).END,\n verticalEndPos\n ],\n [\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).SIDE_END,\n sideEndPos\n ],\n [\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).SIDE_START,\n sideStartPos\n ]\n ]);\n return possiblePositionsMap;\n };\n MDCTooltipFoundation.prototype.calculateYWithCaretDistanceOptions = function(anchorRect, tooltipHeight, caretSize) {\n var caretWidth = caretSize.caretWidth, caretHeight = caretSize.caretHeight;\n var anchorMidpoint = anchorRect.top + anchorRect.height / 2;\n var belowYPos = anchorRect.bottom + this.anchorGap + caretHeight;\n var aboveYPos = anchorRect.top - (this.anchorGap + tooltipHeight + caretHeight);\n var sideTopYPos = anchorMidpoint - ((0, $5e84edd0d370f6cc$export$1f6c9cc012ebacae).CARET_INDENTATION + caretWidth / 2);\n var sideCenterYPos = anchorMidpoint - tooltipHeight / 2;\n var sideBottomYPos = anchorMidpoint - (tooltipHeight - (0, $5e84edd0d370f6cc$export$1f6c9cc012ebacae).CARET_INDENTATION - caretWidth / 2);\n var possiblePositionsMap = new Map([\n [\n (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).ABOVE,\n aboveYPos\n ],\n [\n (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).BELOW,\n belowYPos\n ],\n [\n (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).SIDE_TOP,\n sideTopYPos\n ],\n [\n (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).SIDE_CENTER,\n sideCenterYPos\n ],\n [\n (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).SIDE_BOTTOM,\n sideBottomYPos\n ]\n ]);\n return possiblePositionsMap;\n };\n MDCTooltipFoundation.prototype.repositionTooltipOnAnchorMove = function() {\n var newAnchorRect = this.adapter.getAnchorBoundingRect();\n if (!newAnchorRect || !this.anchorRect) return;\n if (newAnchorRect.top !== this.anchorRect.top || newAnchorRect.left !== this.anchorRect.left || newAnchorRect.height !== this.anchorRect.height || newAnchorRect.width !== this.anchorRect.width) {\n this.anchorRect = newAnchorRect;\n this.parentRect = this.adapter.getParentBoundingRect();\n this.richTooltip ? this.positionRichTooltip() : this.positionPlainTooltip();\n }\n };\n /**\n * Given a list of x/y position options for a rich tooltip with caret, checks\n * if valid x/y combinations of these position options are either within the\n * viewport threshold, or simply within the viewport. Returns a map with the\n * valid x/y position combinations that all either honor the viewport\n * threshold or are simply inside within the viewport.\n */ MDCTooltipFoundation.prototype.validateTooltipWithCaretDistances = function(yOptions, xOptions) {\n var e_4, _a, e_5, _b, e_6, _c;\n var posWithinThreshold = new Map();\n var posWithinViewport = new Map();\n // If a tooltip has a caret, not all combinations of YPositionWithCarets and\n // XPositionWithCarets are possible. Because of this we only check the\n // validity of a given XPositionWithCaret if a potential corresponding\n // YPositionWithCaret is valid.\n var validMappings = new Map([\n [\n (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).ABOVE,\n [\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).START,\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).CENTER,\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).END\n ]\n ],\n [\n (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).BELOW,\n [\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).START,\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).CENTER,\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).END\n ]\n ],\n [\n (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).SIDE_TOP,\n [\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).SIDE_START,\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).SIDE_END\n ]\n ],\n [\n (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).SIDE_CENTER,\n [\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).SIDE_START,\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).SIDE_END\n ]\n ],\n [\n (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).SIDE_BOTTOM,\n [\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).SIDE_START,\n (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).SIDE_END\n ]\n ]\n ]);\n try {\n // TODO(b/227383292): Handle instances where one direction can fit in\n // in the viewport (whether honoring the threshold or not), and the\n // other direction does not.\n for(var _d = (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)(validMappings.keys()), _e = _d.next(); !_e.done; _e = _d.next()){\n var y = _e.value;\n var yDistance = yOptions.get(y);\n if (this.yPositionHonorsViewportThreshold(yDistance)) try {\n for(var _f = (e_5 = void 0, (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)(validMappings.get(y))), _g = _f.next(); !_g.done; _g = _f.next()){\n var x = _g.value;\n var xDistance = xOptions.get(x);\n if (this.positionHonorsViewportThreshold(xDistance)) {\n var caretPositionName = this.caretPositionOptionsMapping(x, y);\n posWithinThreshold.set(caretPositionName, {\n xDistance: xDistance,\n yDistance: yDistance\n });\n }\n }\n } catch (e_5_1) {\n e_5 = {\n error: e_5_1\n };\n } finally{\n try {\n if (_g && !_g.done && (_b = _f.return)) _b.call(_f);\n } finally{\n if (e_5) throw e_5.error;\n }\n }\n if (this.yPositionDoesntCollideWithViewport(yDistance)) try {\n for(var _h = (e_6 = void 0, (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)(validMappings.get(y))), _j = _h.next(); !_j.done; _j = _h.next()){\n var x = _j.value;\n var xDistance = xOptions.get(x);\n if (this.positionDoesntCollideWithViewport(xDistance)) {\n var caretPositionName = this.caretPositionOptionsMapping(x, y);\n posWithinViewport.set(caretPositionName, {\n xDistance: xDistance,\n yDistance: yDistance\n });\n }\n }\n } catch (e_6_1) {\n e_6 = {\n error: e_6_1\n };\n } finally{\n try {\n if (_j && !_j.done && (_c = _h.return)) _c.call(_h);\n } finally{\n if (e_6) throw e_6.error;\n }\n }\n }\n } catch (e_4_1) {\n e_4 = {\n error: e_4_1\n };\n } finally{\n try {\n if (_e && !_e.done && (_a = _d.return)) _a.call(_d);\n } finally{\n if (e_4) throw e_4.error;\n }\n }\n return posWithinThreshold.size ? posWithinThreshold : posWithinViewport;\n };\n /**\n * Method for generating a horizontal and vertical position for the tooltip if\n * all other calculated values are considered invalid. This would only happen\n * in situations of very small viewports/large tooltips.\n */ MDCTooltipFoundation.prototype.generateBackupPositionOption = function(anchorRect, tooltipSize, caretSize) {\n var isLTR = !this.adapter.isRTL();\n var xDistance;\n var xPos;\n if (anchorRect.left < 0) {\n xDistance = this.minViewportTooltipThreshold + caretSize.caretHeight;\n xPos = isLTR ? (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).END : (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).START;\n } else {\n var viewportWidth = this.adapter.getViewportWidth();\n xDistance = viewportWidth - (tooltipSize.width + this.minViewportTooltipThreshold + caretSize.caretHeight);\n xPos = isLTR ? (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).START : (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).END;\n }\n var yDistance;\n var yPos;\n if (anchorRect.top < 0) {\n yDistance = this.minViewportTooltipThreshold + caretSize.caretHeight;\n yPos = (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).BELOW;\n } else {\n var viewportHeight = this.adapter.getViewportHeight();\n yDistance = viewportHeight - (tooltipSize.height + this.minViewportTooltipThreshold + caretSize.caretHeight);\n yPos = (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).ABOVE;\n }\n var caretPositionName = this.caretPositionOptionsMapping(xPos, yPos);\n return new Map([\n [\n caretPositionName,\n {\n xDistance: xDistance,\n yDistance: yDistance\n }\n ]\n ]);\n };\n /**\n * Given a list of valid position options for a rich tooltip with caret,\n * returns the option that should be used.\n */ MDCTooltipFoundation.prototype.determineTooltipWithCaretDistance = function(options) {\n if (options.has(this.tooltipPositionWithCaret)) {\n var tooltipPos = options.get(this.tooltipPositionWithCaret);\n return {\n position: this.tooltipPositionWithCaret,\n xDistance: tooltipPos.xDistance,\n yDistance: tooltipPos.yDistance\n };\n }\n var orderPref = [\n (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).ABOVE_START,\n (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).ABOVE_CENTER,\n (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).ABOVE_END,\n (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).TOP_SIDE_START,\n (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).CENTER_SIDE_START,\n (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).BOTTOM_SIDE_START,\n (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).TOP_SIDE_END,\n (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).CENTER_SIDE_END,\n (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).BOTTOM_SIDE_END,\n (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).BELOW_START,\n (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).BELOW_CENTER,\n (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).BELOW_END\n ];\n // Before calling this method we check whether or not the \"options\" param\n // is empty and invoke a different method. We, therefore, can be certain\n // that \"validPosition\" will always be defined.\n var validPosition = orderPref.find(function(pos) {\n return options.has(pos);\n });\n var pos = options.get(validPosition);\n return {\n position: validPosition,\n xDistance: pos.xDistance,\n yDistance: pos.yDistance\n };\n };\n /**\n * Returns the corresponding PositionWithCaret enum for the proivded\n * XPositionWithCaret and YPositionWithCaret enums. This mapping exists so our\n * public API accepts only PositionWithCaret enums (as all combinations of\n * XPositionWithCaret and YPositionWithCaret are not valid), but internally we\n * can calculate the X and Y positions of a rich tooltip with caret\n * separately.\n */ MDCTooltipFoundation.prototype.caretPositionOptionsMapping = function(xPos, yPos) {\n switch(yPos){\n case (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).ABOVE:\n if (xPos === (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).START) return (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).ABOVE_START;\n else if (xPos === (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).CENTER) return (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).ABOVE_CENTER;\n else if (xPos === (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).END) return (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).ABOVE_END;\n break;\n case (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).BELOW:\n if (xPos === (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).START) return (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).BELOW_START;\n else if (xPos === (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).CENTER) return (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).BELOW_CENTER;\n else if (xPos === (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).END) return (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).BELOW_END;\n break;\n case (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).SIDE_TOP:\n if (xPos === (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).SIDE_START) return (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).TOP_SIDE_START;\n else if (xPos === (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).SIDE_END) return (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).TOP_SIDE_END;\n break;\n case (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).SIDE_CENTER:\n if (xPos === (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).SIDE_START) return (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).CENTER_SIDE_START;\n else if (xPos === (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).SIDE_END) return (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).CENTER_SIDE_END;\n break;\n case (0, $5e84edd0d370f6cc$export$f574c92ec84323d9).SIDE_BOTTOM:\n if (xPos === (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).SIDE_START) return (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).BOTTOM_SIDE_START;\n else if (xPos === (0, $5e84edd0d370f6cc$export$2ccb7d1982d6ddb0).SIDE_END) return (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).BOTTOM_SIDE_END;\n break;\n default:\n break;\n }\n throw new Error(\"MDCTooltipFoundation: Invalid caret position of \" + xPos + \", \" + yPos);\n };\n /**\n * Given a PositionWithCaret, applies the correct styles to the caret element\n * so that it is positioned properly on the rich tooltip.\n * Returns the x and y positions of the caret, to be used as the\n * transform-origin on the tooltip itself for entrance animations.\n */ MDCTooltipFoundation.prototype.setCaretPositionStyles = function(position, caretSize) {\n var e_7, _a;\n var values = this.calculateCaretPositionOnTooltip(position, caretSize);\n if (!values) return {\n yTransformOrigin: 0,\n xTransformOrigin: 0\n };\n // Prior to setting the caret position styles, clear any previous styles\n // set. This is necessary as all position options do not use the same\n // properties (e.g. using 'left' or 'right') and so old style properties\n // might not get overridden, causing misplaced carets.\n this.adapter.clearTooltipCaretStyles();\n this.adapter.setTooltipCaretStyle(values.yAlignment, values.yAxisPx);\n this.adapter.setTooltipCaretStyle(values.xAlignment, values.xAxisPx);\n // Value of scaleX is cos(skew), Math.cos() expects radians though, so we\n // must first convert the skew value (which is in degrees) to radians.\n var skewRadians = values.skew * (Math.PI / 180);\n var scaleX = Math.cos(skewRadians);\n this.adapter.setTooltipCaretStyle('transform', \"rotate(\" + values.rotation + \"deg) skewY(\" + values.skew + \"deg) scaleX(\" + scaleX + \")\");\n this.adapter.setTooltipCaretStyle('transform-origin', values.xAlignment + \" \" + values.yAlignment);\n try {\n for(var _b = (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)(values.caretCorners), _c = _b.next(); !_c.done; _c = _b.next()){\n var corner = _c.value;\n this.adapter.setTooltipCaretStyle(corner, '0');\n }\n } catch (e_7_1) {\n e_7 = {\n error: e_7_1\n };\n } finally{\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally{\n if (e_7) throw e_7.error;\n }\n }\n return {\n yTransformOrigin: values.yTransformOrigin,\n xTransformOrigin: values.xTransformOrigin\n };\n };\n /**\n * Given a PositionWithCaret, determines the correct styles to position the\n * caret properly on the rich tooltip.\n */ MDCTooltipFoundation.prototype.calculateCaretPositionOnTooltip = function(tooltipPos, caretSize) {\n var isLTR = !this.adapter.isRTL();\n var tooltipWidth = this.adapter.getComputedStyleProperty('width');\n var tooltipHeight = this.adapter.getComputedStyleProperty('height');\n if (!tooltipWidth || !tooltipHeight || !caretSize) return;\n var midpointWidth = \"calc((\" + tooltipWidth + \" - \" + caretSize.caretWidth + \"px) / 2)\";\n var midpointHeight = \"calc((\" + tooltipHeight + \" - \" + caretSize.caretWidth + \"px) / 2)\";\n var flushWithEdge = '0';\n var indentedFromEdge = (0, $5e84edd0d370f6cc$export$1f6c9cc012ebacae).CARET_INDENTATION + \"px\";\n var indentedFromWidth = \"calc(\" + tooltipWidth + \" - \" + indentedFromEdge + \")\";\n var indentedFromHeight = \"calc(\" + tooltipHeight + \" - \" + indentedFromEdge + \")\";\n var verticalRotation = 35;\n var horizontalRotation = Math.abs(90 - verticalRotation);\n var bottomRightTopLeftBorderRadius = [\n 'border-bottom-right-radius',\n 'border-top-left-radius'\n ];\n var bottomLeftTopRightBorderRadius = [\n 'border-bottom-left-radius',\n 'border-top-right-radius'\n ];\n var skewDeg = 20;\n switch(tooltipPos){\n case (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).BELOW_CENTER:\n return {\n yAlignment: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).TOP,\n xAlignment: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT,\n yAxisPx: flushWithEdge,\n xAxisPx: midpointWidth,\n rotation: -1 * verticalRotation,\n skew: -1 * skewDeg,\n xTransformOrigin: midpointWidth,\n yTransformOrigin: flushWithEdge,\n caretCorners: bottomRightTopLeftBorderRadius\n };\n case (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).BELOW_END:\n return {\n yAlignment: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).TOP,\n xAlignment: isLTR ? (0, $5e84edd0d370f6cc$export$21c51bc433c16634).RIGHT : (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT,\n yAxisPx: flushWithEdge,\n xAxisPx: indentedFromEdge,\n rotation: isLTR ? verticalRotation : -1 * verticalRotation,\n skew: isLTR ? skewDeg : -1 * skewDeg,\n xTransformOrigin: isLTR ? indentedFromWidth : indentedFromEdge,\n yTransformOrigin: flushWithEdge,\n caretCorners: isLTR ? bottomLeftTopRightBorderRadius : bottomRightTopLeftBorderRadius\n };\n case (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).BELOW_START:\n return {\n yAlignment: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).TOP,\n xAlignment: isLTR ? (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT : (0, $5e84edd0d370f6cc$export$21c51bc433c16634).RIGHT,\n yAxisPx: flushWithEdge,\n xAxisPx: indentedFromEdge,\n rotation: isLTR ? -1 * verticalRotation : verticalRotation,\n skew: isLTR ? -1 * skewDeg : skewDeg,\n xTransformOrigin: isLTR ? indentedFromEdge : indentedFromWidth,\n yTransformOrigin: flushWithEdge,\n caretCorners: isLTR ? bottomRightTopLeftBorderRadius : bottomLeftTopRightBorderRadius\n };\n case (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).TOP_SIDE_END:\n return {\n yAlignment: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).TOP,\n xAlignment: isLTR ? (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT : (0, $5e84edd0d370f6cc$export$21c51bc433c16634).RIGHT,\n yAxisPx: indentedFromEdge,\n xAxisPx: flushWithEdge,\n rotation: isLTR ? horizontalRotation : -1 * horizontalRotation,\n skew: isLTR ? -1 * skewDeg : skewDeg,\n xTransformOrigin: isLTR ? flushWithEdge : tooltipWidth,\n yTransformOrigin: indentedFromEdge,\n caretCorners: isLTR ? bottomRightTopLeftBorderRadius : bottomLeftTopRightBorderRadius\n };\n case (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).CENTER_SIDE_END:\n return {\n yAlignment: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).TOP,\n xAlignment: isLTR ? (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT : (0, $5e84edd0d370f6cc$export$21c51bc433c16634).RIGHT,\n yAxisPx: midpointHeight,\n xAxisPx: flushWithEdge,\n rotation: isLTR ? horizontalRotation : -1 * horizontalRotation,\n skew: isLTR ? -1 * skewDeg : skewDeg,\n xTransformOrigin: isLTR ? flushWithEdge : tooltipWidth,\n yTransformOrigin: midpointHeight,\n caretCorners: isLTR ? bottomRightTopLeftBorderRadius : bottomLeftTopRightBorderRadius\n };\n case (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).BOTTOM_SIDE_END:\n return {\n yAlignment: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).BOTTOM,\n xAlignment: isLTR ? (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT : (0, $5e84edd0d370f6cc$export$21c51bc433c16634).RIGHT,\n yAxisPx: indentedFromEdge,\n xAxisPx: flushWithEdge,\n rotation: isLTR ? -1 * horizontalRotation : horizontalRotation,\n skew: isLTR ? skewDeg : -1 * skewDeg,\n xTransformOrigin: isLTR ? flushWithEdge : tooltipWidth,\n yTransformOrigin: indentedFromHeight,\n caretCorners: isLTR ? bottomLeftTopRightBorderRadius : bottomRightTopLeftBorderRadius\n };\n case (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).TOP_SIDE_START:\n return {\n yAlignment: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).TOP,\n xAlignment: isLTR ? (0, $5e84edd0d370f6cc$export$21c51bc433c16634).RIGHT : (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT,\n yAxisPx: indentedFromEdge,\n xAxisPx: flushWithEdge,\n rotation: isLTR ? -1 * horizontalRotation : horizontalRotation,\n skew: isLTR ? skewDeg : -1 * skewDeg,\n xTransformOrigin: isLTR ? tooltipWidth : flushWithEdge,\n yTransformOrigin: indentedFromEdge,\n caretCorners: isLTR ? bottomLeftTopRightBorderRadius : bottomRightTopLeftBorderRadius\n };\n case (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).CENTER_SIDE_START:\n return {\n yAlignment: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).TOP,\n xAlignment: isLTR ? (0, $5e84edd0d370f6cc$export$21c51bc433c16634).RIGHT : (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT,\n yAxisPx: midpointHeight,\n xAxisPx: flushWithEdge,\n rotation: isLTR ? -1 * horizontalRotation : horizontalRotation,\n skew: isLTR ? skewDeg : -1 * skewDeg,\n xTransformOrigin: isLTR ? tooltipWidth : flushWithEdge,\n yTransformOrigin: midpointHeight,\n caretCorners: isLTR ? bottomLeftTopRightBorderRadius : bottomRightTopLeftBorderRadius\n };\n case (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).BOTTOM_SIDE_START:\n return {\n yAlignment: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).BOTTOM,\n xAlignment: isLTR ? (0, $5e84edd0d370f6cc$export$21c51bc433c16634).RIGHT : (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT,\n yAxisPx: indentedFromEdge,\n xAxisPx: flushWithEdge,\n rotation: isLTR ? horizontalRotation : -1 * horizontalRotation,\n skew: isLTR ? -1 * skewDeg : skewDeg,\n xTransformOrigin: isLTR ? tooltipWidth : flushWithEdge,\n yTransformOrigin: indentedFromHeight,\n caretCorners: isLTR ? bottomRightTopLeftBorderRadius : bottomLeftTopRightBorderRadius\n };\n case (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).ABOVE_CENTER:\n return {\n yAlignment: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).BOTTOM,\n xAlignment: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT,\n yAxisPx: flushWithEdge,\n xAxisPx: midpointWidth,\n rotation: verticalRotation,\n skew: skewDeg,\n xTransformOrigin: midpointWidth,\n yTransformOrigin: tooltipHeight,\n caretCorners: bottomLeftTopRightBorderRadius\n };\n case (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).ABOVE_END:\n return {\n yAlignment: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).BOTTOM,\n xAlignment: isLTR ? (0, $5e84edd0d370f6cc$export$21c51bc433c16634).RIGHT : (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT,\n yAxisPx: flushWithEdge,\n xAxisPx: indentedFromEdge,\n rotation: isLTR ? -1 * verticalRotation : verticalRotation,\n skew: isLTR ? -1 * skewDeg : skewDeg,\n xTransformOrigin: isLTR ? indentedFromWidth : indentedFromEdge,\n yTransformOrigin: tooltipHeight,\n caretCorners: isLTR ? bottomRightTopLeftBorderRadius : bottomLeftTopRightBorderRadius\n };\n default:\n case (0, $5e84edd0d370f6cc$export$c932156b3d020a8f).ABOVE_START:\n return {\n yAlignment: (0, $5e84edd0d370f6cc$export$21c51bc433c16634).BOTTOM,\n xAlignment: isLTR ? (0, $5e84edd0d370f6cc$export$21c51bc433c16634).LEFT : (0, $5e84edd0d370f6cc$export$21c51bc433c16634).RIGHT,\n yAxisPx: flushWithEdge,\n xAxisPx: indentedFromEdge,\n rotation: isLTR ? verticalRotation : -1 * verticalRotation,\n skew: isLTR ? skewDeg : -1 * skewDeg,\n xTransformOrigin: isLTR ? indentedFromEdge : indentedFromWidth,\n yTransformOrigin: tooltipHeight,\n caretCorners: isLTR ? bottomLeftTopRightBorderRadius : bottomRightTopLeftBorderRadius\n };\n }\n };\n MDCTooltipFoundation.prototype.clearShowTimeout = function() {\n if (this.showTimeout) {\n clearTimeout(this.showTimeout);\n this.showTimeout = null;\n }\n };\n MDCTooltipFoundation.prototype.clearHideTimeout = function() {\n if (this.hideTimeout) {\n clearTimeout(this.hideTimeout);\n this.hideTimeout = null;\n }\n };\n /**\n * Method that allows user to specify additional elements that should have a\n * scroll event listener attached to it. This should be used in instances\n * where the anchor element is placed inside a scrollable container, and will\n * ensure that the tooltip will stay attached to the anchor on scroll.\n */ MDCTooltipFoundation.prototype.attachScrollHandler = function(addEventListenerFn) {\n var _this = this;\n this.addAncestorScrollEventListeners.push(function() {\n addEventListenerFn('scroll', _this.windowScrollHandler);\n });\n };\n /**\n * Must be used in conjunction with #attachScrollHandler. Removes the scroll\n * event handler from elements on the page.\n */ MDCTooltipFoundation.prototype.removeScrollHandler = function(removeEventHandlerFn) {\n var _this = this;\n this.removeAncestorScrollEventListeners.push(function() {\n removeEventHandlerFn('scroll', _this.windowScrollHandler);\n });\n };\n MDCTooltipFoundation.prototype.destroy = function() {\n var e_8, _a;\n if (this.frameId) {\n cancelAnimationFrame(this.frameId);\n this.frameId = null;\n }\n this.clearHideTimeout();\n this.clearShowTimeout();\n this.adapter.removeClass($778570533f5b6055$var$SHOWN);\n this.adapter.removeClass($778570533f5b6055$var$SHOWING_TRANSITION);\n this.adapter.removeClass($778570533f5b6055$var$SHOWING);\n this.adapter.removeClass($778570533f5b6055$var$HIDE);\n this.adapter.removeClass($778570533f5b6055$var$HIDE_TRANSITION);\n if (this.richTooltip) this.adapter.deregisterEventHandler('focusout', this.richTooltipFocusOutHandler);\n if (!this.persistentTooltip) {\n this.adapter.deregisterEventHandler('mouseenter', this.tooltipMouseEnterHandler);\n this.adapter.deregisterEventHandler('mouseleave', this.tooltipMouseLeaveHandler);\n }\n this.adapter.deregisterAnchorEventHandler('blur', this.anchorBlurHandler);\n this.adapter.deregisterDocumentEventHandler('click', this.documentClickHandler);\n this.adapter.deregisterDocumentEventHandler('keydown', this.documentKeydownHandler);\n this.adapter.deregisterWindowEventHandler('scroll', this.windowScrollHandler);\n this.adapter.deregisterWindowEventHandler('resize', this.windowResizeHandler);\n try {\n for(var _b = (0, $5c96a02c592fcff1$export$19a8beecd37a4c45)(this.removeAncestorScrollEventListeners), _c = _b.next(); !_c.done; _c = _b.next()){\n var fn = _c.value;\n fn();\n }\n } catch (e_8_1) {\n e_8 = {\n error: e_8_1\n };\n } finally{\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally{\n if (e_8) throw e_8.error;\n }\n }\n this.animFrame.cancelAll();\n };\n return MDCTooltipFoundation;\n}((0, $d29cc2d0f1026d01$export$a81b11d69c993162));\nvar // tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\n$778570533f5b6055$export$2e2bcd8739ae039 = $778570533f5b6055$export$ad52ca8d63569c37;\n\n\nvar $6208747c4409e6c0$export$31963e96a9940462 = /** @class */ function(_super) {\n (0, $5c96a02c592fcff1$export$a8ba968b8961cb8a)(MDCTooltip, _super);\n function MDCTooltip() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n MDCTooltip.attachTo = function(root) {\n return new MDCTooltip(root);\n };\n MDCTooltip.prototype.initialize = function() {\n var tooltipId = this.root.getAttribute('id');\n if (!tooltipId) throw new Error('MDCTooltip: Tooltip component must have an id.');\n var anchorElem = document.querySelector(\"[data-tooltip-id=\\\"\" + tooltipId + \"\\\"]\") || document.querySelector(\"[aria-describedby=\\\"\" + tooltipId + \"\\\"]\");\n if (!anchorElem) throw new Error('MDCTooltip: Tooltip component requires an anchor element annotated with [aria-describedby] or [data-tooltip-id].');\n this.anchorElem = anchorElem;\n };\n MDCTooltip.prototype.initialSyncWithDOM = function() {\n var _this = this;\n this.isTooltipRich = this.foundation.isRich();\n this.isTooltipPersistent = this.foundation.isPersistent();\n this.handleMouseEnter = function() {\n _this.foundation.handleAnchorMouseEnter();\n };\n this.handleFocus = function(evt) {\n _this.foundation.handleAnchorFocus(evt);\n };\n this.handleMouseLeave = function() {\n _this.foundation.handleAnchorMouseLeave();\n };\n this.handleTransitionEnd = function() {\n _this.foundation.handleTransitionEnd();\n };\n this.handleClick = function() {\n _this.foundation.handleAnchorClick();\n };\n this.handleTouchstart = function() {\n _this.foundation.handleAnchorTouchstart();\n };\n this.handleTouchend = function() {\n _this.foundation.handleAnchorTouchend();\n };\n if (this.isTooltipRich && this.isTooltipPersistent) this.anchorElem.addEventListener('click', this.handleClick);\n else {\n this.anchorElem.addEventListener('mouseenter', this.handleMouseEnter);\n // TODO(b/157075286): Listening for a 'focus' event is too broad.\n this.anchorElem.addEventListener('focus', this.handleFocus);\n this.anchorElem.addEventListener('mouseleave', this.handleMouseLeave);\n this.anchorElem.addEventListener('touchstart', this.handleTouchstart);\n this.anchorElem.addEventListener('touchend', this.handleTouchend);\n }\n this.listen('transitionend', this.handleTransitionEnd);\n };\n MDCTooltip.prototype.destroy = function() {\n if (this.anchorElem) {\n if (this.isTooltipRich && this.isTooltipPersistent) this.anchorElem.removeEventListener('click', this.handleClick);\n else {\n this.anchorElem.removeEventListener('mouseenter', this.handleMouseEnter);\n this.anchorElem.removeEventListener('focus', this.handleFocus);\n this.anchorElem.removeEventListener('mouseleave', this.handleMouseLeave);\n this.anchorElem.removeEventListener('touchstart', this.handleTouchstart);\n this.anchorElem.removeEventListener('touchend', this.handleTouchend);\n }\n }\n this.unlisten('transitionend', this.handleTransitionEnd);\n _super.prototype.destroy.call(this);\n };\n MDCTooltip.prototype.setTooltipPosition = function(position) {\n this.foundation.setTooltipPosition(position);\n };\n MDCTooltip.prototype.setAnchorBoundaryType = function(type) {\n this.foundation.setAnchorBoundaryType(type);\n };\n MDCTooltip.prototype.setShowDelay = function(delayMs) {\n this.foundation.setShowDelay(delayMs);\n };\n MDCTooltip.prototype.setHideDelay = function(delayMs) {\n this.foundation.setHideDelay(delayMs);\n };\n MDCTooltip.prototype.hide = function() {\n this.foundation.hide();\n };\n MDCTooltip.prototype.isShown = function() {\n return this.foundation.isShown();\n };\n /**\n * Method that allows user to specify additional elements that should have a\n * scroll event listener attached to it. This should be used in instances\n * where the anchor element is placed inside a scrollable container (that is\n * not the body element), and will ensure that the tooltip will stay attached\n * to the anchor on scroll.\n */ MDCTooltip.prototype.attachScrollHandler = function(addEventListenerFn) {\n this.foundation.attachScrollHandler(addEventListenerFn);\n };\n /**\n * Must be used in conjunction with #attachScrollHandler. Removes the scroll\n * event handler from elements on the page.\n */ MDCTooltip.prototype.removeScrollHandler = function(removeEventHandlerFn) {\n this.foundation.removeScrollHandler(removeEventHandlerFn);\n };\n MDCTooltip.prototype.getDefaultFoundation = function() {\n var _this = this;\n var adapter = {\n getAttribute: function(attr) {\n return _this.root.getAttribute(attr);\n },\n setAttribute: function(attr, value) {\n _this.root.setAttribute(attr, value);\n },\n removeAttribute: function(attr) {\n _this.root.removeAttribute(attr);\n },\n addClass: function(className) {\n _this.root.classList.add(className);\n },\n hasClass: function(className) {\n return _this.root.classList.contains(className);\n },\n removeClass: function(className) {\n _this.root.classList.remove(className);\n },\n getComputedStyleProperty: function(propertyName) {\n return window.getComputedStyle(_this.root).getPropertyValue(propertyName);\n },\n setStyleProperty: function(propertyName, value) {\n _this.root.style.setProperty(propertyName, value);\n },\n setSurfaceAnimationStyleProperty: function(propertyName, value) {\n var surface = _this.root.querySelector(\".\" + (0, $5e84edd0d370f6cc$export$19467ce65cc4f055).SURFACE_ANIMATION);\n surface === null || surface === void 0 || surface.style.setProperty(propertyName, value);\n },\n getViewportWidth: function() {\n return window.innerWidth;\n },\n getViewportHeight: function() {\n return window.innerHeight;\n },\n getTooltipSize: function() {\n return {\n width: _this.root.offsetWidth,\n height: _this.root.offsetHeight\n };\n },\n getAnchorBoundingRect: function() {\n return _this.anchorElem ? _this.anchorElem.getBoundingClientRect() : null;\n },\n getParentBoundingRect: function() {\n var _a, _b;\n return (_b = (_a = _this.root.parentElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) !== null && _b !== void 0 ? _b : null;\n },\n getAnchorAttribute: function(attr) {\n return _this.anchorElem ? _this.anchorElem.getAttribute(attr) : null;\n },\n setAnchorAttribute: function(attr, value) {\n var _a;\n (_a = _this.anchorElem) === null || _a === void 0 || _a.setAttribute(attr, value);\n },\n isRTL: function() {\n return getComputedStyle(_this.root).direction === 'rtl';\n },\n anchorContainsElement: function(element) {\n var _a;\n return !!((_a = _this.anchorElem) === null || _a === void 0 ? void 0 : _a.contains(element));\n },\n tooltipContainsElement: function(element) {\n return _this.root.contains(element);\n },\n focusAnchorElement: function() {\n var _a;\n (_a = _this.anchorElem) === null || _a === void 0 || _a.focus();\n },\n registerEventHandler: function(evt, handler) {\n if (_this.root instanceof HTMLElement) _this.root.addEventListener(evt, handler);\n },\n deregisterEventHandler: function(evt, handler) {\n if (_this.root instanceof HTMLElement) _this.root.removeEventListener(evt, handler);\n },\n registerAnchorEventHandler: function(evt, handler) {\n var _a;\n (_a = _this.anchorElem) === null || _a === void 0 || _a.addEventListener(evt, handler);\n },\n deregisterAnchorEventHandler: function(evt, handler) {\n var _a;\n (_a = _this.anchorElem) === null || _a === void 0 || _a.removeEventListener(evt, handler);\n },\n registerDocumentEventHandler: function(evt, handler) {\n document.body.addEventListener(evt, handler);\n },\n deregisterDocumentEventHandler: function(evt, handler) {\n document.body.removeEventListener(evt, handler);\n },\n registerWindowEventHandler: function(evt, handler) {\n window.addEventListener(evt, handler);\n },\n deregisterWindowEventHandler: function(evt, handler) {\n window.removeEventListener(evt, handler);\n },\n notifyHidden: function() {\n _this.emit((0, $5e84edd0d370f6cc$export$4bf9923669ad6c63).HIDDEN, {});\n },\n getTooltipCaretBoundingRect: function() {\n var caret = _this.root.querySelector(\".\" + (0, $5e84edd0d370f6cc$export$19467ce65cc4f055).TOOLTIP_CARET_TOP);\n if (!caret) return null;\n return caret.getBoundingClientRect();\n },\n setTooltipCaretStyle: function(propertyName, value) {\n var topCaret = _this.root.querySelector(\".\" + (0, $5e84edd0d370f6cc$export$19467ce65cc4f055).TOOLTIP_CARET_TOP);\n var bottomCaret = _this.root.querySelector(\".\" + (0, $5e84edd0d370f6cc$export$19467ce65cc4f055).TOOLTIP_CARET_BOTTOM);\n if (!topCaret || !bottomCaret) return;\n topCaret.style.setProperty(propertyName, value);\n bottomCaret.style.setProperty(propertyName, value);\n },\n clearTooltipCaretStyles: function() {\n var topCaret = _this.root.querySelector(\".\" + (0, $5e84edd0d370f6cc$export$19467ce65cc4f055).TOOLTIP_CARET_TOP);\n var bottomCaret = _this.root.querySelector(\".\" + (0, $5e84edd0d370f6cc$export$19467ce65cc4f055).TOOLTIP_CARET_BOTTOM);\n if (!topCaret || !bottomCaret) return;\n topCaret.removeAttribute('style');\n bottomCaret.removeAttribute('style');\n },\n getActiveElement: function() {\n return document.activeElement;\n }\n };\n //tslint:enable:object-literal-sort-keys\n return new (0, $778570533f5b6055$export$ad52ca8d63569c37)(adapter);\n };\n return MDCTooltip;\n}((0, $0a13a1859770d71d$export$c3670872e5a4af8e));\n\n\nconst $60e07ebc83e245dc$var$GLOBAL_REGION_KEY = \"global\";\nconst $60e07ebc83e245dc$var$PING_TEST_RUNNING_STATUS = \"running\";\nconst $60e07ebc83e245dc$var$PING_TEST_STOPPED_STATUS = \"stopped\";\nconst $60e07ebc83e245dc$var$INITIAL_ITERATIONS = 10;\nconst $60e07ebc83e245dc$var$btnCtrl = document.getElementById(\"stopstart\");\n/**\n * The `regions` obj is of the following format:\n * {\n * \"us-east1\": {\n * \"key\": \"\",\n * \"label\": \"\",\n * \"pingUrl\": \"\",\n * \"latencies\": [],\n * \"median\": \"\"\n * }\n * }\n */ const $60e07ebc83e245dc$var$regions = {};\nconst $60e07ebc83e245dc$var$results = []; // this will always be sorted according to sortKey and sortDir\nlet $60e07ebc83e245dc$var$pingTestStatus = $60e07ebc83e245dc$var$PING_TEST_RUNNING_STATUS;\nlet $60e07ebc83e245dc$var$fastestRegionVisible = false;\nlet $60e07ebc83e245dc$var$fastestRegion = null;\nlet $60e07ebc83e245dc$var$globalRegionProxy = \"\";\nlet $60e07ebc83e245dc$var$sortKey = \"median\"; // column to sort the data with\nlet $60e07ebc83e245dc$var$sortDir = \"ascending\"; // sorting direction(ascending/descending)\n/**\n * Fetches the endpoints for different Cloud Run regions.\n * We will later send a request to these endpoints and measure the latency.\n */ function $60e07ebc83e245dc$var$getEndpoints() {\n fetch(\"/api/endpoints\").then(function(resp) {\n return resp.json();\n }).then(function(endpoints) {\n for (const zone of Object.values(endpoints)){\n const gcpZone = {\n key: zone.Region,\n label: zone.RegionName,\n pingUrl: zone.URL + \"/api/ping\",\n latencies: [],\n median: \"\"\n };\n $60e07ebc83e245dc$var$regions[gcpZone.key] = gcpZone;\n }\n // once we're done fetching all endpoints, let's start pinging\n $60e07ebc83e245dc$var$pingAllRegions($60e07ebc83e245dc$var$INITIAL_ITERATIONS);\n });\n}\n/**\n * Ping all regions to fetch their latency\n *\n * @param {number} iter\n */ async function $60e07ebc83e245dc$var$pingAllRegions(iter) {\n const regionsArr = Object.values($60e07ebc83e245dc$var$regions);\n for(let i = 0; i < iter; i++){\n for (const region of regionsArr){\n // Takes care of the stopped button\n if ($60e07ebc83e245dc$var$pingTestStatus === $60e07ebc83e245dc$var$PING_TEST_STOPPED_STATUS) break;\n const latency = await $60e07ebc83e245dc$var$pingSingleRegion(region.key);\n // add the latency to the array of latencies\n // from where we can compute the median and populate the table\n $60e07ebc83e245dc$var$regions[region.key][\"latencies\"].push(latency);\n $60e07ebc83e245dc$var$regions[region.key][\"median\"] = $60e07ebc83e245dc$var$getMedian($60e07ebc83e245dc$var$regions[region.key][\"latencies\"]);\n // update fastest region\n if ($60e07ebc83e245dc$var$fastestRegion === null || $60e07ebc83e245dc$var$regions[region.key][\"median\"] < $60e07ebc83e245dc$var$regions[$60e07ebc83e245dc$var$fastestRegion][\"median\"]) $60e07ebc83e245dc$var$fastestRegion = region.key;\n $60e07ebc83e245dc$var$addResult(region.key);\n $60e07ebc83e245dc$var$updateList();\n }\n // start displaying the fastest region after at least 1 iteration is over.\n // subsequent calls to this won't change anything\n $60e07ebc83e245dc$var$displayFastest(true);\n }\n // when all the region latencies have been fetched, let's update our status flag\n $60e07ebc83e245dc$var$updatePingTestState($60e07ebc83e245dc$var$PING_TEST_STOPPED_STATUS);\n}\n/**\n * Computes the ping time for a single GCP region\n * @param {string} regionKey The key of the GCP region, ex: us-east1\n * @return {Promise} Promise\n */ function $60e07ebc83e245dc$var$pingSingleRegion(regionKey) {\n return new Promise((resolve)=>{\n const gcpZone = $60e07ebc83e245dc$var$regions[regionKey];\n const start = new Date().getTime();\n fetch(gcpZone.pingUrl, {\n cache: \"no-cache\"\n }).then(async (resp)=>{\n const latency = new Date().getTime() - start;\n // if we just pinged the global region, the response should contain\n // the region that the Global Load Balancer uses to route the traffic.\n if (regionKey === $60e07ebc83e245dc$var$GLOBAL_REGION_KEY) resp.text().then((val)=>{\n $60e07ebc83e245dc$var$globalRegionProxy = val.trim();\n });\n resolve(latency);\n });\n });\n}\n/**\n * Function to update the current status of pinging\n * @param {string} status\n */ function $60e07ebc83e245dc$var$updatePingTestState(status) {\n $60e07ebc83e245dc$var$pingTestStatus = status;\n if (status === $60e07ebc83e245dc$var$PING_TEST_RUNNING_STATUS) $60e07ebc83e245dc$var$btnCtrl.classList.add(\"running\");\n else if (status === $60e07ebc83e245dc$var$PING_TEST_STOPPED_STATUS) $60e07ebc83e245dc$var$btnCtrl.classList.remove(\"running\");\n}\n/**\n * Updates the list view with the result set of regions and their latencies.\n */ function $60e07ebc83e245dc$var$updateList() {\n let html = \"\";\n let cls = \"\";\n let regionKey = \"\";\n for(let i = 0; i < $60e07ebc83e245dc$var$results.length; i++){\n cls = $60e07ebc83e245dc$var$results[i] === $60e07ebc83e245dc$var$fastestRegion && $60e07ebc83e245dc$var$fastestRegionVisible ? \"fastest-region\" : \"\";\n regionKey = $60e07ebc83e245dc$var$getDisplayedRegionKey($60e07ebc83e245dc$var$results[i]);\n html += '' + $60e07ebc83e245dc$var$regions[$60e07ebc83e245dc$var$results[i]][\"label\"] + '
' + regionKey + \"
\" + '' + regionKey + \"\" + '
' + $60e07ebc83e245dc$var$regions[$60e07ebc83e245dc$var$results[i]][\"median\"] + \" ms
\";\n }\n document.getElementsByTagName(\"tbody\")[0].innerHTML = html;\n}\n/**\n * Helper function to return median from a given array\n * @param {*} arr Array of latencies\n * @return {*}\n */ function $60e07ebc83e245dc$var$getMedian(arr) {\n if (arr.length == 0) return 0;\n const copy = arr.slice(0);\n copy.sort();\n return copy[Math.floor(copy.length / 2)];\n}\n/**\n * Helper that adds the regionKey to it's proper position keeping the results array sorted\n * This means we don't always have to sort the whole results array\n * TODO: Try and use an ordered map here to simply this\n * @param {string} regionKey\n */ function $60e07ebc83e245dc$var$addResult(regionKey) {\n if (!$60e07ebc83e245dc$var$results.length) {\n $60e07ebc83e245dc$var$results.push(regionKey);\n return;\n }\n // remove any current values with the same regionKey\n for(let i = 0; i < $60e07ebc83e245dc$var$results.length; i++)if ($60e07ebc83e245dc$var$results[i] === regionKey) {\n $60e07ebc83e245dc$var$results.splice(i, 1);\n break;\n }\n // TODO: Probably use Binary search here to merge the following 2 blocks\n // if new region is at 0th position\n if ($60e07ebc83e245dc$var$compareTwoRegions(regionKey, $60e07ebc83e245dc$var$results[0]) < 0) {\n $60e07ebc83e245dc$var$results.unshift(regionKey);\n return;\n } else if ($60e07ebc83e245dc$var$compareTwoRegions(regionKey, $60e07ebc83e245dc$var$results[$60e07ebc83e245dc$var$results.length - 1]) > 0) {\n $60e07ebc83e245dc$var$results.push(regionKey);\n return;\n }\n // add the region to it's proper position\n for(let i = 0; i < $60e07ebc83e245dc$var$results.length - 1; i++)// if the region to be added is b/w i and i+1 elements\n if ($60e07ebc83e245dc$var$compareTwoRegions(regionKey, $60e07ebc83e245dc$var$results[i]) >= 0 && $60e07ebc83e245dc$var$compareTwoRegions(regionKey, $60e07ebc83e245dc$var$results[i + 1]) < 0) {\n $60e07ebc83e245dc$var$results.splice(i + 1, 0, regionKey);\n return;\n }\n}\n/**\n * Sets the visiblity for the fastest region indicator on the list(the green cell)\n * @param {bool} isVisible Indicator to toggle visibility for the fastest region indicator\n */ function $60e07ebc83e245dc$var$displayFastest(isVisible) {\n $60e07ebc83e245dc$var$fastestRegionVisible = true;\n $60e07ebc83e245dc$var$updateList();\n}\n/**\n * Helper function to deduce the region to be displayed in the list\n * @param {string} regionKey\n * @return {string}\n */ function $60e07ebc83e245dc$var$getDisplayedRegionKey(regionKey) {\n // if the region is not global, return it as it is.\n if (regionKey !== $60e07ebc83e245dc$var$GLOBAL_REGION_KEY) return regionKey;\n // if the region is global and we have received the region that is used by the Gloabl Load Balancer\n // we display that\n if ($60e07ebc83e245dc$var$globalRegionProxy.length > 0) return \"\\u2192\" + $60e07ebc83e245dc$var$globalRegionProxy + \"\";\n // if the region is global and we don't have the routing region, we show \"gloabl\"\n return \"global\";\n}\n/**\n * Sort the table data based on a column(defined in sortKey) and direction(sortDir)\n */ function $60e07ebc83e245dc$var$sortResults() {\n $60e07ebc83e245dc$var$results.sort($60e07ebc83e245dc$var$compareTwoRegions);\n}\n/**\n * Function to compare order of 2 regions based on the current sort options\n * @param {string} a Region key for first region to be compared\n * @param {string} b Region key for second region to be compared\n * @return {int}\n */ function $60e07ebc83e245dc$var$compareTwoRegions(a, b) {\n const multiplier = $60e07ebc83e245dc$var$sortDir === \"ascending\" ? 1 : -1;\n a = $60e07ebc83e245dc$var$regions[a][$60e07ebc83e245dc$var$sortKey];\n b = $60e07ebc83e245dc$var$regions[b][$60e07ebc83e245dc$var$sortKey];\n if (a == b) return 0;\n return multiplier * (a > b ? 1 : -1);\n}\n/**\n * Event listener for the button to start/stop the pinging\n */ $60e07ebc83e245dc$var$btnCtrl.addEventListener(\"click\", function() {\n const newStatus = $60e07ebc83e245dc$var$pingTestStatus === $60e07ebc83e245dc$var$PING_TEST_STOPPED_STATUS ? $60e07ebc83e245dc$var$PING_TEST_RUNNING_STATUS : $60e07ebc83e245dc$var$PING_TEST_STOPPED_STATUS;\n $60e07ebc83e245dc$var$updatePingTestState(newStatus);\n if (newStatus === $60e07ebc83e245dc$var$PING_TEST_RUNNING_STATUS) $60e07ebc83e245dc$var$pingAllRegions(1);\n});\n// start the process by fetching the endpoints\n$60e07ebc83e245dc$var$getEndpoints();\nwindow.onload = function() {\n // How it works btn\n const dialog = new (0, $38d6c657ee62cba7$export$6808244b173e4b98)(document.querySelector(\".mdc-dialog\"));\n document.querySelector(\".how-it-works-link\").addEventListener(\"click\", function(e) {\n e.preventDefault();\n dialog.open();\n });\n // init data-table\n new (0, $369a0c7b5a754e20$export$240748bfd28d4d90)(document.querySelector(\".mdc-data-table\"));\n document.querySelector(\".mdc-data-table\").addEventListener(\"MDCDataTable:sorted\", function(data) {\n const detail = data.detail;\n // update the sorting options according to the requested values\n $60e07ebc83e245dc$var$sortKey = detail.columnId, $60e07ebc83e245dc$var$sortDir = detail.sortValue;\n $60e07ebc83e245dc$var$sortResults();\n $60e07ebc83e245dc$var$updateList();\n });\n // init tooltips\n [].map.call(document.querySelectorAll(\".mdc-tooltip\"), function(el) {\n return new (0, $6208747c4409e6c0$export$31963e96a9940462)(el);\n });\n};\n\n\n//# sourceMappingURL=index.947669d6.js.map\n","/**\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// TODO: Show regions on a map, with lines overlayed according to ping times.\n// TODO: Add an option to contribute times and JS geolocation info to a public BigQuery dataset.\n\nimport { MDCDialog } from \"@material/dialog\";\nimport { MDCDataTable } from \"@material/data-table\";\nimport { MDCTooltip } from \"@material/tooltip\";\n\nconst GLOBAL_REGION_KEY = \"global\";\nconst PING_TEST_RUNNING_STATUS = \"running\";\nconst PING_TEST_STOPPED_STATUS = \"stopped\";\nconst INITIAL_ITERATIONS = 10;\nconst btnCtrl = document.getElementById(\"stopstart\");\n\n/**\n * The `regions` obj is of the following format:\n * {\n * \"us-east1\": {\n * \"key\": \"\",\n * \"label\": \"\",\n * \"pingUrl\": \"\",\n * \"latencies\": [],\n * \"median\": \"\"\n * }\n * }\n */\nconst regions = {};\nconst results = []; // this will always be sorted according to sortKey and sortDir\nlet pingTestStatus = PING_TEST_RUNNING_STATUS;\nlet fastestRegionVisible = false;\nlet fastestRegion = null;\nlet globalRegionProxy = \"\";\nlet sortKey = \"median\"; // column to sort the data with\nlet sortDir = \"ascending\"; // sorting direction(ascending/descending)\n\n/**\n * Fetches the endpoints for different Cloud Run regions.\n * We will later send a request to these endpoints and measure the latency.\n */\nfunction getEndpoints() {\n fetch(\"/api/endpoints\")\n .then(function (resp) {\n return resp.json();\n })\n .then(function (endpoints) {\n for (const zone of Object.values(endpoints)) {\n const gcpZone = {\n key: zone.Region,\n label: zone.RegionName,\n pingUrl: zone.URL + \"/api/ping\",\n latencies: [],\n median: \"\",\n };\n\n regions[gcpZone.key] = gcpZone;\n }\n\n // once we're done fetching all endpoints, let's start pinging\n pingAllRegions(INITIAL_ITERATIONS);\n });\n}\n\n/**\n * Ping all regions to fetch their latency\n *\n * @param {number} iter\n */\nasync function pingAllRegions(iter) {\n const regionsArr = Object.values(regions);\n\n for (let i = 0; i < iter; i++) {\n for (const region of regionsArr) {\n // Takes care of the stopped button\n if (pingTestStatus === PING_TEST_STOPPED_STATUS) {\n break;\n }\n\n const latency = await pingSingleRegion(region.key);\n\n // add the latency to the array of latencies\n // from where we can compute the median and populate the table\n regions[region.key][\"latencies\"].push(latency);\n regions[region.key][\"median\"] = getMedian(\n regions[region.key][\"latencies\"],\n );\n\n // update fastest region\n if (\n fastestRegion === null ||\n regions[region.key][\"median\"] < regions[fastestRegion][\"median\"]\n ) {\n fastestRegion = region.key;\n }\n\n addResult(region.key);\n updateList();\n }\n\n // start displaying the fastest region after at least 1 iteration is over.\n // subsequent calls to this won't change anything\n displayFastest(true);\n }\n\n // when all the region latencies have been fetched, let's update our status flag\n updatePingTestState(PING_TEST_STOPPED_STATUS);\n}\n\n/**\n * Computes the ping time for a single GCP region\n * @param {string} regionKey The key of the GCP region, ex: us-east1\n * @return {Promise} Promise\n */\nfunction pingSingleRegion(regionKey) {\n return new Promise((resolve) => {\n const gcpZone = regions[regionKey];\n const start = new Date().getTime();\n\n fetch(gcpZone.pingUrl, {\n cache: \"no-cache\",\n }).then(async (resp) => {\n const latency = new Date().getTime() - start;\n\n // if we just pinged the global region, the response should contain\n // the region that the Global Load Balancer uses to route the traffic.\n if (regionKey === GLOBAL_REGION_KEY) {\n resp.text().then((val) => {\n globalRegionProxy = val.trim();\n });\n }\n\n resolve(latency);\n });\n });\n}\n\n/**\n * Function to update the current status of pinging\n * @param {string} status\n */\nfunction updatePingTestState(status) {\n pingTestStatus = status;\n if (status === PING_TEST_RUNNING_STATUS) {\n btnCtrl.classList.add(\"running\");\n } else if (status === PING_TEST_STOPPED_STATUS) {\n btnCtrl.classList.remove(\"running\");\n }\n}\n\n/**\n * Updates the list view with the result set of regions and their latencies.\n */\nfunction updateList() {\n let html = \"\";\n let cls = \"\";\n let regionKey = \"\";\n\n for (let i = 0; i < results.length; i++) {\n cls =\n results[i] === fastestRegion && fastestRegionVisible\n ? \"fastest-region\"\n : \"\";\n regionKey = getDisplayedRegionKey(results[i]);\n html +=\n '' +\n regions[results[i]][\"label\"] +\n '
' +\n regionKey +\n \"
\" +\n '' +\n regionKey +\n \"\" +\n '
' +\n regions[results[i]][\"median\"] +\n \" ms
\";\n }\n\n document.getElementsByTagName(\"tbody\")[0].innerHTML = html;\n}\n\n/**\n * Helper function to return median from a given array\n * @param {*} arr Array of latencies\n * @return {*}\n */\nfunction getMedian(arr) {\n if (arr.length == 0) {\n return 0;\n }\n const copy = arr.slice(0);\n copy.sort();\n return copy[Math.floor(copy.length / 2)];\n}\n\n/**\n * Helper that adds the regionKey to it's proper position keeping the results array sorted\n * This means we don't always have to sort the whole results array\n * TODO: Try and use an ordered map here to simply this\n * @param {string} regionKey\n */\nfunction addResult(regionKey) {\n if (!results.length) {\n results.push(regionKey);\n return;\n }\n\n // remove any current values with the same regionKey\n for (let i = 0; i < results.length; i++) {\n if (results[i] === regionKey) {\n results.splice(i, 1);\n break;\n }\n }\n\n // TODO: Probably use Binary search here to merge the following 2 blocks\n // if new region is at 0th position\n if (compareTwoRegions(regionKey, results[0]) < 0) {\n results.unshift(regionKey);\n return;\n }\n // if new region is at last position\n else if (compareTwoRegions(regionKey, results[results.length - 1]) > 0) {\n results.push(regionKey);\n return;\n }\n\n // add the region to it's proper position\n for (let i = 0; i < results.length - 1; i++) {\n // if the region to be added is b/w i and i+1 elements\n if (\n compareTwoRegions(regionKey, results[i]) >= 0 &&\n compareTwoRegions(regionKey, results[i + 1]) < 0\n ) {\n results.splice(i + 1, 0, regionKey);\n return;\n }\n }\n}\n\n/**\n * Sets the visiblity for the fastest region indicator on the list(the green cell)\n * @param {bool} isVisible Indicator to toggle visibility for the fastest region indicator\n */\nfunction displayFastest(isVisible) {\n fastestRegionVisible = true;\n updateList();\n}\n\n/**\n * Helper function to deduce the region to be displayed in the list\n * @param {string} regionKey\n * @return {string}\n */\nfunction getDisplayedRegionKey(regionKey) {\n // if the region is not global, return it as it is.\n if (regionKey !== GLOBAL_REGION_KEY) return regionKey;\n\n // if the region is global and we have received the region that is used by the Gloabl Load Balancer\n // we display that\n if (globalRegionProxy.length > 0)\n return \"→\" + globalRegionProxy + \"\";\n\n // if the region is global and we don't have the routing region, we show \"gloabl\"\n return \"global\";\n}\n\n/**\n * Sort the table data based on a column(defined in sortKey) and direction(sortDir)\n */\nfunction sortResults() {\n results.sort(compareTwoRegions);\n}\n\n/**\n * Function to compare order of 2 regions based on the current sort options\n * @param {string} a Region key for first region to be compared\n * @param {string} b Region key for second region to be compared\n * @return {int}\n */\nfunction compareTwoRegions(a, b) {\n const multiplier = sortDir === \"ascending\" ? 1 : -1;\n\n a = regions[a][sortKey];\n b = regions[b][sortKey];\n\n if (a == b) {\n return 0;\n }\n\n return multiplier * (a > b ? 1 : -1);\n}\n\n/**\n * Event listener for the button to start/stop the pinging\n */\nbtnCtrl.addEventListener(\"click\", function () {\n const newStatus =\n pingTestStatus === PING_TEST_STOPPED_STATUS\n ? PING_TEST_RUNNING_STATUS\n : PING_TEST_STOPPED_STATUS;\n updatePingTestState(newStatus);\n\n if (newStatus === PING_TEST_RUNNING_STATUS) pingAllRegions(1);\n});\n\n// start the process by fetching the endpoints\ngetEndpoints();\n\nwindow.onload = function () {\n // How it works btn\n const dialog = new MDCDialog(document.querySelector(\".mdc-dialog\"));\n document\n .querySelector(\".how-it-works-link\")\n .addEventListener(\"click\", function (e) {\n e.preventDefault();\n dialog.open();\n });\n\n // init data-table\n new MDCDataTable(document.querySelector(\".mdc-data-table\"));\n\n document\n .querySelector(\".mdc-data-table\")\n .addEventListener(\"MDCDataTable:sorted\", function (data) {\n const detail = data.detail;\n\n // update the sorting options according to the requested values\n (sortKey = detail.columnId), (sortDir = detail.sortValue);\n\n sortResults();\n updateList();\n });\n\n // init tooltips\n [].map.call(document.querySelectorAll(\".mdc-tooltip\"), function (el) {\n return new MDCTooltip(el);\n });\n};\n","/**\n * @license\n * Copyright 2017 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport { __extends, __values } from \"tslib\";\nimport { MDCComponent } from '@material/base/component';\nimport { FocusTrap } from '@material/dom/focus-trap';\nimport { closest, matches } from '@material/dom/ponyfill';\nimport { MDCRipple } from '@material/ripple/component';\nimport { MDCDialogFoundation } from './foundation';\nimport * as util from './util';\nvar strings = MDCDialogFoundation.strings;\nvar MDCDialog = /** @class */ (function (_super) {\n __extends(MDCDialog, _super);\n function MDCDialog() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n Object.defineProperty(MDCDialog.prototype, \"isOpen\", {\n get: function () {\n return this.foundation.isOpen();\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCDialog.prototype, \"escapeKeyAction\", {\n get: function () {\n return this.foundation.getEscapeKeyAction();\n },\n set: function (action) {\n this.foundation.setEscapeKeyAction(action);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCDialog.prototype, \"scrimClickAction\", {\n get: function () {\n return this.foundation.getScrimClickAction();\n },\n set: function (action) {\n this.foundation.setScrimClickAction(action);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCDialog.prototype, \"autoStackButtons\", {\n get: function () {\n return this.foundation.getAutoStackButtons();\n },\n set: function (autoStack) {\n this.foundation.setAutoStackButtons(autoStack);\n },\n enumerable: false,\n configurable: true\n });\n MDCDialog.attachTo = function (root) {\n return new MDCDialog(root);\n };\n MDCDialog.prototype.initialize = function (focusTrapFactory) {\n var e_1, _a;\n if (focusTrapFactory === void 0) { focusTrapFactory = function (el, focusOptions) {\n return new FocusTrap(el, focusOptions);\n }; }\n var container = this.root.querySelector(strings.CONTAINER_SELECTOR);\n if (!container) {\n throw new Error(\"Dialog component requires a \" + strings.CONTAINER_SELECTOR + \" container element\");\n }\n this.container = container;\n this.content =\n this.root.querySelector(strings.CONTENT_SELECTOR);\n this.buttons = [].slice.call(this.root.querySelectorAll(strings.BUTTON_SELECTOR));\n this.defaultButton = this.root.querySelector(\"[\" + strings.BUTTON_DEFAULT_ATTRIBUTE + \"]\");\n this.focusTrapFactory = focusTrapFactory;\n this.buttonRipples = [];\n try {\n for (var _b = __values(this.buttons), _c = _b.next(); !_c.done; _c = _b.next()) {\n var buttonEl = _c.value;\n this.buttonRipples.push(new MDCRipple(buttonEl));\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n };\n MDCDialog.prototype.initialSyncWithDOM = function () {\n var _this = this;\n this.focusTrap = util.createFocusTrapInstance(this.container, this.focusTrapFactory, this.getInitialFocusEl() || undefined);\n this.handleClick = this.foundation.handleClick.bind(this.foundation);\n this.handleKeydown = this.foundation.handleKeydown.bind(this.foundation);\n this.handleDocumentKeydown =\n this.foundation.handleDocumentKeydown.bind(this.foundation);\n // this.handleLayout = this.layout.bind(this);\n this.handleOpening = function () {\n document.addEventListener('keydown', _this.handleDocumentKeydown);\n };\n this.handleClosing = function () {\n document.removeEventListener('keydown', _this.handleDocumentKeydown);\n };\n this.listen('click', this.handleClick);\n this.listen('keydown', this.handleKeydown);\n this.listen(strings.OPENING_EVENT, this.handleOpening);\n this.listen(strings.CLOSING_EVENT, this.handleClosing);\n };\n MDCDialog.prototype.destroy = function () {\n this.unlisten('click', this.handleClick);\n this.unlisten('keydown', this.handleKeydown);\n this.unlisten(strings.OPENING_EVENT, this.handleOpening);\n this.unlisten(strings.CLOSING_EVENT, this.handleClosing);\n this.handleClosing();\n this.buttonRipples.forEach(function (ripple) {\n ripple.destroy();\n });\n _super.prototype.destroy.call(this);\n };\n MDCDialog.prototype.layout = function () {\n this.foundation.layout();\n };\n MDCDialog.prototype.open = function () {\n this.foundation.open();\n };\n MDCDialog.prototype.close = function (action) {\n if (action === void 0) { action = ''; }\n this.foundation.close(action);\n };\n MDCDialog.prototype.getDefaultFoundation = function () {\n var _this = this;\n // DO NOT INLINE this variable. For backward compatibility, foundations take a Partial.\n // To ensure we don't accidentally omit any methods, we need a separate, strongly typed adapter variable.\n var adapter = {\n addBodyClass: function (className) { return document.body.classList.add(className); },\n addClass: function (className) { return _this.root.classList.add(className); },\n areButtonsStacked: function () { return util.areTopsMisaligned(_this.buttons); },\n clickDefaultButton: function () {\n if (_this.defaultButton && !_this.defaultButton.disabled) {\n _this.defaultButton.click();\n }\n },\n eventTargetMatches: function (target, selector) {\n return target ? matches(target, selector) : false;\n },\n getActionFromEvent: function (evt) {\n if (!evt.target) {\n return '';\n }\n var element = closest(evt.target, \"[\" + strings.ACTION_ATTRIBUTE + \"]\");\n return element && element.getAttribute(strings.ACTION_ATTRIBUTE);\n },\n getInitialFocusEl: function () { return _this.getInitialFocusEl(); },\n hasClass: function (className) { return _this.root.classList.contains(className); },\n isContentScrollable: function () { return util.isScrollable(_this.content); },\n notifyClosed: function (action) { return _this.emit(strings.CLOSED_EVENT, action ? { action: action } : {}); },\n notifyClosing: function (action) { return _this.emit(strings.CLOSING_EVENT, action ? { action: action } : {}); },\n notifyOpened: function () { return _this.emit(strings.OPENED_EVENT, {}); },\n notifyOpening: function () { return _this.emit(strings.OPENING_EVENT, {}); },\n releaseFocus: function () {\n _this.focusTrap.releaseFocus();\n },\n removeBodyClass: function (className) { return document.body.classList.remove(className); },\n removeClass: function (className) { return _this.root.classList.remove(className); },\n reverseButtons: function () {\n _this.buttons.reverse();\n _this.buttons.forEach(function (button) {\n button.parentElement.appendChild(button);\n });\n },\n trapFocus: function () {\n _this.focusTrap.trapFocus();\n },\n registerContentEventHandler: function (evt, handler) {\n if (_this.content instanceof HTMLElement) {\n _this.content.addEventListener(evt, handler);\n }\n },\n deregisterContentEventHandler: function (evt, handler) {\n if (_this.content instanceof HTMLElement) {\n _this.content.removeEventListener(evt, handler);\n }\n },\n isScrollableContentAtTop: function () {\n return util.isScrollAtTop(_this.content);\n },\n isScrollableContentAtBottom: function () {\n return util.isScrollAtBottom(_this.content);\n },\n registerWindowEventHandler: function (evt, handler) {\n window.addEventListener(evt, handler);\n },\n deregisterWindowEventHandler: function (evt, handler) {\n window.removeEventListener(evt, handler);\n },\n };\n return new MDCDialogFoundation(adapter);\n };\n MDCDialog.prototype.getInitialFocusEl = function () {\n return this.root.querySelector(\"[\" + strings.INITIAL_FOCUS_ATTRIBUTE + \"]\");\n };\n return MDCDialog;\n}(MDCComponent));\nexport { MDCDialog };\n//# sourceMappingURL=component.js.map",null,"/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport { __read, __spreadArray } from \"tslib\";\nimport { MDCFoundation } from './foundation';\nvar MDCComponent = /** @class */ (function () {\n function MDCComponent(root, foundation) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n this.root = root;\n this.initialize.apply(this, __spreadArray([], __read(args)));\n // Note that we initialize foundation here and not within the constructor's\n // default param so that this.root is defined and can be used within the\n // foundation class.\n this.foundation =\n foundation === undefined ? this.getDefaultFoundation() : foundation;\n this.foundation.init();\n this.initialSyncWithDOM();\n }\n MDCComponent.attachTo = function (root) {\n // Subclasses which extend MDCBase should provide an attachTo() method that takes a root element and\n // returns an instantiated component with its root set to that element. Also note that in the cases of\n // subclasses, an explicit foundation class will not have to be passed in; it will simply be initialized\n // from getDefaultFoundation().\n return new MDCComponent(root, new MDCFoundation({}));\n };\n /* istanbul ignore next: method param only exists for typing purposes; it does not need to be unit tested */\n MDCComponent.prototype.initialize = function () {\n var _args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n _args[_i] = arguments[_i];\n }\n // Subclasses can override this to do any additional setup work that would be considered part of a\n // \"constructor\". Essentially, it is a hook into the parent constructor before the foundation is\n // initialized. Any additional arguments besides root and foundation will be passed in here.\n };\n MDCComponent.prototype.getDefaultFoundation = function () {\n // Subclasses must override this method to return a properly configured foundation class for the\n // component.\n throw new Error('Subclasses must override getDefaultFoundation to return a properly configured ' +\n 'foundation class');\n };\n MDCComponent.prototype.initialSyncWithDOM = function () {\n // Subclasses should override this method if they need to perform work to synchronize with a host DOM\n // object. An example of this would be a form control wrapper that needs to synchronize its internal state\n // to some property or attribute of the host DOM. Please note: this is *not* the place to perform DOM\n // reads/writes that would cause layout / paint, as this is called synchronously from within the constructor.\n };\n MDCComponent.prototype.destroy = function () {\n // Subclasses may implement this method to release any resources / deregister any listeners they have\n // attached. An example of this might be deregistering a resize event from the window object.\n this.foundation.destroy();\n };\n MDCComponent.prototype.listen = function (evtType, handler, options) {\n this.root.addEventListener(evtType, handler, options);\n };\n MDCComponent.prototype.unlisten = function (evtType, handler, options) {\n this.root.removeEventListener(evtType, handler, options);\n };\n /**\n * Fires a cross-browser-compatible custom event from the component root of the given type, with the given data.\n */\n MDCComponent.prototype.emit = function (evtType, evtData, shouldBubble) {\n if (shouldBubble === void 0) { shouldBubble = false; }\n var evt;\n if (typeof CustomEvent === 'function') {\n evt = new CustomEvent(evtType, {\n bubbles: shouldBubble,\n detail: evtData,\n });\n }\n else {\n evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(evtType, shouldBubble, false, evtData);\n }\n this.root.dispatchEvent(evt);\n };\n return MDCComponent;\n}());\nexport { MDCComponent };\n// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\nexport default MDCComponent;\n//# sourceMappingURL=component.js.map",null,"/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nvar MDCFoundation = /** @class */ (function () {\n function MDCFoundation(adapter) {\n if (adapter === void 0) { adapter = {}; }\n this.adapter = adapter;\n }\n Object.defineProperty(MDCFoundation, \"cssClasses\", {\n get: function () {\n // Classes extending MDCFoundation should implement this method to return an object which exports every\n // CSS class the foundation class needs as a property. e.g. {ACTIVE: 'mdc-component--active'}\n return {};\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCFoundation, \"strings\", {\n get: function () {\n // Classes extending MDCFoundation should implement this method to return an object which exports all\n // semantic strings as constants. e.g. {ARIA_ROLE: 'tablist'}\n return {};\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCFoundation, \"numbers\", {\n get: function () {\n // Classes extending MDCFoundation should implement this method to return an object which exports all\n // of its semantic numbers as constants. e.g. {ANIMATION_DELAY_MS: 350}\n return {};\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCFoundation, \"defaultAdapter\", {\n get: function () {\n // Classes extending MDCFoundation may choose to implement this getter in order to provide a convenient\n // way of viewing the necessary methods of an adapter. In the future, this could also be used for adapter\n // validation.\n return {};\n },\n enumerable: false,\n configurable: true\n });\n MDCFoundation.prototype.init = function () {\n // Subclasses should override this method to perform initialization routines (registering events, etc.)\n };\n MDCFoundation.prototype.destroy = function () {\n // Subclasses should override this method to perform de-initialization routines (de-registering events, etc.)\n };\n return MDCFoundation;\n}());\nexport { MDCFoundation };\n// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\nexport default MDCFoundation;\n//# sourceMappingURL=foundation.js.map",null,"/**\n * @license\n * Copyright 2020 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nvar FOCUS_SENTINEL_CLASS = 'mdc-dom-focus-sentinel';\n/**\n * Utility to trap focus in a given root element, e.g. for modal components such\n * as dialogs. The root should have at least one focusable child element,\n * for setting initial focus when trapping focus.\n * Also tracks the previously focused element, and restores focus to that\n * element when releasing focus.\n */\nvar FocusTrap = /** @class */ (function () {\n function FocusTrap(root, options) {\n if (options === void 0) { options = {}; }\n this.root = root;\n this.options = options;\n // Previously focused element before trapping focus.\n this.elFocusedBeforeTrapFocus = null;\n }\n /**\n * Traps focus in `root`. Also focuses on either `initialFocusEl` if set;\n * otherwises sets initial focus to the first focusable child element.\n */\n FocusTrap.prototype.trapFocus = function () {\n var focusableEls = this.getFocusableElements(this.root);\n if (focusableEls.length === 0) {\n throw new Error('FocusTrap: Element must have at least one focusable child.');\n }\n this.elFocusedBeforeTrapFocus =\n document.activeElement instanceof HTMLElement ? document.activeElement :\n null;\n this.wrapTabFocus(this.root);\n if (!this.options.skipInitialFocus) {\n this.focusInitialElement(focusableEls, this.options.initialFocusEl);\n }\n };\n /**\n * Releases focus from `root`. Also restores focus to the previously focused\n * element.\n */\n FocusTrap.prototype.releaseFocus = function () {\n [].slice.call(this.root.querySelectorAll(\".\" + FOCUS_SENTINEL_CLASS))\n .forEach(function (sentinelEl) {\n sentinelEl.parentElement.removeChild(sentinelEl);\n });\n if (!this.options.skipRestoreFocus && this.elFocusedBeforeTrapFocus) {\n this.elFocusedBeforeTrapFocus.focus();\n }\n };\n /**\n * Wraps tab focus within `el` by adding two hidden sentinel divs which are\n * used to mark the beginning and the end of the tabbable region. When\n * focused, these sentinel elements redirect focus to the first/last\n * children elements of the tabbable region, ensuring that focus is trapped\n * within that region.\n */\n FocusTrap.prototype.wrapTabFocus = function (el) {\n var _this = this;\n var sentinelStart = this.createSentinel();\n var sentinelEnd = this.createSentinel();\n sentinelStart.addEventListener('focus', function () {\n var focusableEls = _this.getFocusableElements(el);\n if (focusableEls.length > 0) {\n focusableEls[focusableEls.length - 1].focus();\n }\n });\n sentinelEnd.addEventListener('focus', function () {\n var focusableEls = _this.getFocusableElements(el);\n if (focusableEls.length > 0) {\n focusableEls[0].focus();\n }\n });\n el.insertBefore(sentinelStart, el.children[0]);\n el.appendChild(sentinelEnd);\n };\n /**\n * Focuses on `initialFocusEl` if defined and a child of the root element.\n * Otherwise, focuses on the first focusable child element of the root.\n */\n FocusTrap.prototype.focusInitialElement = function (focusableEls, initialFocusEl) {\n var focusIndex = 0;\n if (initialFocusEl) {\n focusIndex = Math.max(focusableEls.indexOf(initialFocusEl), 0);\n }\n focusableEls[focusIndex].focus();\n };\n FocusTrap.prototype.getFocusableElements = function (root) {\n var focusableEls = [].slice.call(root.querySelectorAll('[autofocus], [tabindex], a, input, textarea, select, button'));\n return focusableEls.filter(function (el) {\n var isDisabledOrHidden = el.getAttribute('aria-disabled') === 'true' ||\n el.getAttribute('disabled') != null ||\n el.getAttribute('hidden') != null ||\n el.getAttribute('aria-hidden') === 'true';\n var isTabbableAndVisible = el.tabIndex >= 0 &&\n el.getBoundingClientRect().width > 0 &&\n !el.classList.contains(FOCUS_SENTINEL_CLASS) && !isDisabledOrHidden;\n var isProgrammaticallyHidden = false;\n if (isTabbableAndVisible) {\n var style = getComputedStyle(el);\n isProgrammaticallyHidden =\n style.display === 'none' || style.visibility === 'hidden';\n }\n return isTabbableAndVisible && !isProgrammaticallyHidden;\n });\n };\n FocusTrap.prototype.createSentinel = function () {\n var sentinel = document.createElement('div');\n sentinel.setAttribute('tabindex', '0');\n // Don't announce in screen readers.\n sentinel.setAttribute('aria-hidden', 'true');\n sentinel.classList.add(FOCUS_SENTINEL_CLASS);\n return sentinel;\n };\n return FocusTrap;\n}());\nexport { FocusTrap };\n//# sourceMappingURL=focus-trap.js.map",null,"/**\n * @license\n * Copyright 2018 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n/**\n * @fileoverview A \"ponyfill\" is a polyfill that doesn't modify the global prototype chain.\n * This makes ponyfills safer than traditional polyfills, especially for libraries like MDC.\n */\nexport function closest(element, selector) {\n if (element.closest) {\n return element.closest(selector);\n }\n var el = element;\n while (el) {\n if (matches(el, selector)) {\n return el;\n }\n el = el.parentElement;\n }\n return null;\n}\nexport function matches(element, selector) {\n var nativeMatches = element.matches\n || element.webkitMatchesSelector\n || element.msMatchesSelector;\n return nativeMatches.call(element, selector);\n}\n/**\n * Used to compute the estimated scroll width of elements. When an element is\n * hidden due to display: none; being applied to a parent element, the width is\n * returned as 0. However, the element will have a true width once no longer\n * inside a display: none context. This method computes an estimated width when\n * the element is hidden or returns the true width when the element is visble.\n * @param {Element} element the element whose width to estimate\n */\nexport function estimateScrollWidth(element) {\n // Check the offsetParent. If the element inherits display: none from any\n // parent, the offsetParent property will be null (see\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent).\n // This check ensures we only clone the node when necessary.\n var htmlEl = element;\n if (htmlEl.offsetParent !== null) {\n return htmlEl.scrollWidth;\n }\n var clone = htmlEl.cloneNode(true);\n clone.style.setProperty('position', 'absolute');\n clone.style.setProperty('transform', 'translate(-9999px, -9999px)');\n document.documentElement.appendChild(clone);\n var scrollWidth = clone.scrollWidth;\n document.documentElement.removeChild(clone);\n return scrollWidth;\n}\n//# sourceMappingURL=ponyfill.js.map",null,"/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport { __extends } from \"tslib\";\nimport { MDCComponent } from '@material/base/component';\nimport { applyPassive } from '@material/dom/events';\nimport { matches } from '@material/dom/ponyfill';\nimport { MDCRippleFoundation } from './foundation';\nimport * as util from './util';\nvar MDCRipple = /** @class */ (function (_super) {\n __extends(MDCRipple, _super);\n function MDCRipple() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.disabled = false;\n return _this;\n }\n MDCRipple.attachTo = function (root, opts) {\n if (opts === void 0) { opts = {\n isUnbounded: undefined\n }; }\n var ripple = new MDCRipple(root);\n // Only override unbounded behavior if option is explicitly specified\n if (opts.isUnbounded !== undefined) {\n ripple.unbounded = opts.isUnbounded;\n }\n return ripple;\n };\n MDCRipple.createAdapter = function (instance) {\n return {\n addClass: function (className) { return instance.root.classList.add(className); },\n browserSupportsCssVars: function () { return util.supportsCssVariables(window); },\n computeBoundingRect: function () { return instance.root.getBoundingClientRect(); },\n containsEventTarget: function (target) { return instance.root.contains(target); },\n deregisterDocumentInteractionHandler: function (evtType, handler) {\n return document.documentElement.removeEventListener(evtType, handler, applyPassive());\n },\n deregisterInteractionHandler: function (evtType, handler) {\n return instance.root\n .removeEventListener(evtType, handler, applyPassive());\n },\n deregisterResizeHandler: function (handler) {\n return window.removeEventListener('resize', handler);\n },\n getWindowPageOffset: function () {\n return ({ x: window.pageXOffset, y: window.pageYOffset });\n },\n isSurfaceActive: function () { return matches(instance.root, ':active'); },\n isSurfaceDisabled: function () { return Boolean(instance.disabled); },\n isUnbounded: function () { return Boolean(instance.unbounded); },\n registerDocumentInteractionHandler: function (evtType, handler) {\n return document.documentElement.addEventListener(evtType, handler, applyPassive());\n },\n registerInteractionHandler: function (evtType, handler) {\n return instance.root\n .addEventListener(evtType, handler, applyPassive());\n },\n registerResizeHandler: function (handler) {\n return window.addEventListener('resize', handler);\n },\n removeClass: function (className) { return instance.root.classList.remove(className); },\n updateCssVariable: function (varName, value) {\n return instance.root.style.setProperty(varName, value);\n },\n };\n };\n Object.defineProperty(MDCRipple.prototype, \"unbounded\", {\n get: function () {\n return Boolean(this.isUnbounded);\n },\n set: function (unbounded) {\n this.isUnbounded = Boolean(unbounded);\n this.setUnbounded();\n },\n enumerable: false,\n configurable: true\n });\n MDCRipple.prototype.activate = function () {\n this.foundation.activate();\n };\n MDCRipple.prototype.deactivate = function () {\n this.foundation.deactivate();\n };\n MDCRipple.prototype.layout = function () {\n this.foundation.layout();\n };\n MDCRipple.prototype.getDefaultFoundation = function () {\n return new MDCRippleFoundation(MDCRipple.createAdapter(this));\n };\n MDCRipple.prototype.initialSyncWithDOM = function () {\n var root = this.root;\n this.isUnbounded = 'mdcRippleIsUnbounded' in root.dataset;\n };\n /**\n * Closure Compiler throws an access control error when directly accessing a\n * protected or private property inside a getter/setter, like unbounded above.\n * By accessing the protected property inside a method, we solve that problem.\n * That's why this function exists.\n */\n MDCRipple.prototype.setUnbounded = function () {\n this.foundation.setUnbounded(Boolean(this.isUnbounded));\n };\n return MDCRipple;\n}(MDCComponent));\nexport { MDCRipple };\n//# sourceMappingURL=component.js.map",null,"/**\n * @license\n * Copyright 2019 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n/**\n * Determine whether the current browser supports passive event listeners, and\n * if so, use them.\n */\nexport function applyPassive(globalObj) {\n if (globalObj === void 0) { globalObj = window; }\n return supportsPassiveOption(globalObj) ?\n { passive: true } :\n false;\n}\nfunction supportsPassiveOption(globalObj) {\n if (globalObj === void 0) { globalObj = window; }\n // See\n // https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener\n var passiveSupported = false;\n try {\n var options = {\n // This function will be called when the browser\n // attempts to access the passive property.\n get passive() {\n passiveSupported = true;\n return false;\n }\n };\n var handler = function () { };\n globalObj.document.addEventListener('test', handler, options);\n globalObj.document.removeEventListener('test', handler, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n return passiveSupported;\n}\n//# sourceMappingURL=events.js.map",null,"/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport { __assign, __extends, __values } from \"tslib\";\nimport { MDCFoundation } from '@material/base/foundation';\nimport { cssClasses, numbers, strings } from './constants';\nimport { getNormalizedEventCoords } from './util';\n// Activation events registered on the root element of each instance for activation\nvar ACTIVATION_EVENT_TYPES = [\n 'touchstart', 'pointerdown', 'mousedown', 'keydown',\n];\n// Deactivation events registered on documentElement when a pointer-related down event occurs\nvar POINTER_DEACTIVATION_EVENT_TYPES = [\n 'touchend', 'pointerup', 'mouseup', 'contextmenu',\n];\n// simultaneous nested activations\nvar activatedTargets = [];\nvar MDCRippleFoundation = /** @class */ (function (_super) {\n __extends(MDCRippleFoundation, _super);\n function MDCRippleFoundation(adapter) {\n var _this = _super.call(this, __assign(__assign({}, MDCRippleFoundation.defaultAdapter), adapter)) || this;\n _this.activationAnimationHasEnded = false;\n _this.activationTimer = 0;\n _this.fgDeactivationRemovalTimer = 0;\n _this.fgScale = '0';\n _this.frame = { width: 0, height: 0 };\n _this.initialSize = 0;\n _this.layoutFrame = 0;\n _this.maxRadius = 0;\n _this.unboundedCoords = { left: 0, top: 0 };\n _this.activationState = _this.defaultActivationState();\n _this.activationTimerCallback = function () {\n _this.activationAnimationHasEnded = true;\n _this.runDeactivationUXLogicIfReady();\n };\n _this.activateHandler = function (e) {\n _this.activateImpl(e);\n };\n _this.deactivateHandler = function () {\n _this.deactivateImpl();\n };\n _this.focusHandler = function () {\n _this.handleFocus();\n };\n _this.blurHandler = function () {\n _this.handleBlur();\n };\n _this.resizeHandler = function () {\n _this.layout();\n };\n return _this;\n }\n Object.defineProperty(MDCRippleFoundation, \"cssClasses\", {\n get: function () {\n return cssClasses;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCRippleFoundation, \"strings\", {\n get: function () {\n return strings;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCRippleFoundation, \"numbers\", {\n get: function () {\n return numbers;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCRippleFoundation, \"defaultAdapter\", {\n get: function () {\n return {\n addClass: function () { return undefined; },\n browserSupportsCssVars: function () { return true; },\n computeBoundingRect: function () {\n return ({ top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 });\n },\n containsEventTarget: function () { return true; },\n deregisterDocumentInteractionHandler: function () { return undefined; },\n deregisterInteractionHandler: function () { return undefined; },\n deregisterResizeHandler: function () { return undefined; },\n getWindowPageOffset: function () { return ({ x: 0, y: 0 }); },\n isSurfaceActive: function () { return true; },\n isSurfaceDisabled: function () { return true; },\n isUnbounded: function () { return true; },\n registerDocumentInteractionHandler: function () { return undefined; },\n registerInteractionHandler: function () { return undefined; },\n registerResizeHandler: function () { return undefined; },\n removeClass: function () { return undefined; },\n updateCssVariable: function () { return undefined; },\n };\n },\n enumerable: false,\n configurable: true\n });\n MDCRippleFoundation.prototype.init = function () {\n var _this = this;\n var supportsPressRipple = this.supportsPressRipple();\n this.registerRootHandlers(supportsPressRipple);\n if (supportsPressRipple) {\n var _a = MDCRippleFoundation.cssClasses, ROOT_1 = _a.ROOT, UNBOUNDED_1 = _a.UNBOUNDED;\n requestAnimationFrame(function () {\n _this.adapter.addClass(ROOT_1);\n if (_this.adapter.isUnbounded()) {\n _this.adapter.addClass(UNBOUNDED_1);\n // Unbounded ripples need layout logic applied immediately to set coordinates for both shade and ripple\n _this.layoutInternal();\n }\n });\n }\n };\n MDCRippleFoundation.prototype.destroy = function () {\n var _this = this;\n if (this.supportsPressRipple()) {\n if (this.activationTimer) {\n clearTimeout(this.activationTimer);\n this.activationTimer = 0;\n this.adapter.removeClass(MDCRippleFoundation.cssClasses.FG_ACTIVATION);\n }\n if (this.fgDeactivationRemovalTimer) {\n clearTimeout(this.fgDeactivationRemovalTimer);\n this.fgDeactivationRemovalTimer = 0;\n this.adapter.removeClass(MDCRippleFoundation.cssClasses.FG_DEACTIVATION);\n }\n var _a = MDCRippleFoundation.cssClasses, ROOT_2 = _a.ROOT, UNBOUNDED_2 = _a.UNBOUNDED;\n requestAnimationFrame(function () {\n _this.adapter.removeClass(ROOT_2);\n _this.adapter.removeClass(UNBOUNDED_2);\n _this.removeCssVars();\n });\n }\n this.deregisterRootHandlers();\n this.deregisterDeactivationHandlers();\n };\n /**\n * @param evt Optional event containing position information.\n */\n MDCRippleFoundation.prototype.activate = function (evt) {\n this.activateImpl(evt);\n };\n MDCRippleFoundation.prototype.deactivate = function () {\n this.deactivateImpl();\n };\n MDCRippleFoundation.prototype.layout = function () {\n var _this = this;\n if (this.layoutFrame) {\n cancelAnimationFrame(this.layoutFrame);\n }\n this.layoutFrame = requestAnimationFrame(function () {\n _this.layoutInternal();\n _this.layoutFrame = 0;\n });\n };\n MDCRippleFoundation.prototype.setUnbounded = function (unbounded) {\n var UNBOUNDED = MDCRippleFoundation.cssClasses.UNBOUNDED;\n if (unbounded) {\n this.adapter.addClass(UNBOUNDED);\n }\n else {\n this.adapter.removeClass(UNBOUNDED);\n }\n };\n MDCRippleFoundation.prototype.handleFocus = function () {\n var _this = this;\n requestAnimationFrame(function () { return _this.adapter.addClass(MDCRippleFoundation.cssClasses.BG_FOCUSED); });\n };\n MDCRippleFoundation.prototype.handleBlur = function () {\n var _this = this;\n requestAnimationFrame(function () { return _this.adapter.removeClass(MDCRippleFoundation.cssClasses.BG_FOCUSED); });\n };\n /**\n * We compute this property so that we are not querying information about the client\n * until the point in time where the foundation requests it. This prevents scenarios where\n * client-side feature-detection may happen too early, such as when components are rendered on the server\n * and then initialized at mount time on the client.\n */\n MDCRippleFoundation.prototype.supportsPressRipple = function () {\n return this.adapter.browserSupportsCssVars();\n };\n MDCRippleFoundation.prototype.defaultActivationState = function () {\n return {\n activationEvent: undefined,\n hasDeactivationUXRun: false,\n isActivated: false,\n isProgrammatic: false,\n wasActivatedByPointer: false,\n wasElementMadeActive: false,\n };\n };\n /**\n * supportsPressRipple Passed from init to save a redundant function call\n */\n MDCRippleFoundation.prototype.registerRootHandlers = function (supportsPressRipple) {\n var e_1, _a;\n if (supportsPressRipple) {\n try {\n for (var ACTIVATION_EVENT_TYPES_1 = __values(ACTIVATION_EVENT_TYPES), ACTIVATION_EVENT_TYPES_1_1 = ACTIVATION_EVENT_TYPES_1.next(); !ACTIVATION_EVENT_TYPES_1_1.done; ACTIVATION_EVENT_TYPES_1_1 = ACTIVATION_EVENT_TYPES_1.next()) {\n var evtType = ACTIVATION_EVENT_TYPES_1_1.value;\n this.adapter.registerInteractionHandler(evtType, this.activateHandler);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (ACTIVATION_EVENT_TYPES_1_1 && !ACTIVATION_EVENT_TYPES_1_1.done && (_a = ACTIVATION_EVENT_TYPES_1.return)) _a.call(ACTIVATION_EVENT_TYPES_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n if (this.adapter.isUnbounded()) {\n this.adapter.registerResizeHandler(this.resizeHandler);\n }\n }\n this.adapter.registerInteractionHandler('focus', this.focusHandler);\n this.adapter.registerInteractionHandler('blur', this.blurHandler);\n };\n MDCRippleFoundation.prototype.registerDeactivationHandlers = function (evt) {\n var e_2, _a;\n if (evt.type === 'keydown') {\n this.adapter.registerInteractionHandler('keyup', this.deactivateHandler);\n }\n else {\n try {\n for (var POINTER_DEACTIVATION_EVENT_TYPES_1 = __values(POINTER_DEACTIVATION_EVENT_TYPES), POINTER_DEACTIVATION_EVENT_TYPES_1_1 = POINTER_DEACTIVATION_EVENT_TYPES_1.next(); !POINTER_DEACTIVATION_EVENT_TYPES_1_1.done; POINTER_DEACTIVATION_EVENT_TYPES_1_1 = POINTER_DEACTIVATION_EVENT_TYPES_1.next()) {\n var evtType = POINTER_DEACTIVATION_EVENT_TYPES_1_1.value;\n this.adapter.registerDocumentInteractionHandler(evtType, this.deactivateHandler);\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (POINTER_DEACTIVATION_EVENT_TYPES_1_1 && !POINTER_DEACTIVATION_EVENT_TYPES_1_1.done && (_a = POINTER_DEACTIVATION_EVENT_TYPES_1.return)) _a.call(POINTER_DEACTIVATION_EVENT_TYPES_1);\n }\n finally { if (e_2) throw e_2.error; }\n }\n }\n };\n MDCRippleFoundation.prototype.deregisterRootHandlers = function () {\n var e_3, _a;\n try {\n for (var ACTIVATION_EVENT_TYPES_2 = __values(ACTIVATION_EVENT_TYPES), ACTIVATION_EVENT_TYPES_2_1 = ACTIVATION_EVENT_TYPES_2.next(); !ACTIVATION_EVENT_TYPES_2_1.done; ACTIVATION_EVENT_TYPES_2_1 = ACTIVATION_EVENT_TYPES_2.next()) {\n var evtType = ACTIVATION_EVENT_TYPES_2_1.value;\n this.adapter.deregisterInteractionHandler(evtType, this.activateHandler);\n }\n }\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\n finally {\n try {\n if (ACTIVATION_EVENT_TYPES_2_1 && !ACTIVATION_EVENT_TYPES_2_1.done && (_a = ACTIVATION_EVENT_TYPES_2.return)) _a.call(ACTIVATION_EVENT_TYPES_2);\n }\n finally { if (e_3) throw e_3.error; }\n }\n this.adapter.deregisterInteractionHandler('focus', this.focusHandler);\n this.adapter.deregisterInteractionHandler('blur', this.blurHandler);\n if (this.adapter.isUnbounded()) {\n this.adapter.deregisterResizeHandler(this.resizeHandler);\n }\n };\n MDCRippleFoundation.prototype.deregisterDeactivationHandlers = function () {\n var e_4, _a;\n this.adapter.deregisterInteractionHandler('keyup', this.deactivateHandler);\n try {\n for (var POINTER_DEACTIVATION_EVENT_TYPES_2 = __values(POINTER_DEACTIVATION_EVENT_TYPES), POINTER_DEACTIVATION_EVENT_TYPES_2_1 = POINTER_DEACTIVATION_EVENT_TYPES_2.next(); !POINTER_DEACTIVATION_EVENT_TYPES_2_1.done; POINTER_DEACTIVATION_EVENT_TYPES_2_1 = POINTER_DEACTIVATION_EVENT_TYPES_2.next()) {\n var evtType = POINTER_DEACTIVATION_EVENT_TYPES_2_1.value;\n this.adapter.deregisterDocumentInteractionHandler(evtType, this.deactivateHandler);\n }\n }\n catch (e_4_1) { e_4 = { error: e_4_1 }; }\n finally {\n try {\n if (POINTER_DEACTIVATION_EVENT_TYPES_2_1 && !POINTER_DEACTIVATION_EVENT_TYPES_2_1.done && (_a = POINTER_DEACTIVATION_EVENT_TYPES_2.return)) _a.call(POINTER_DEACTIVATION_EVENT_TYPES_2);\n }\n finally { if (e_4) throw e_4.error; }\n }\n };\n MDCRippleFoundation.prototype.removeCssVars = function () {\n var _this = this;\n var rippleStrings = MDCRippleFoundation.strings;\n var keys = Object.keys(rippleStrings);\n keys.forEach(function (key) {\n if (key.indexOf('VAR_') === 0) {\n _this.adapter.updateCssVariable(rippleStrings[key], null);\n }\n });\n };\n MDCRippleFoundation.prototype.activateImpl = function (evt) {\n var _this = this;\n if (this.adapter.isSurfaceDisabled()) {\n return;\n }\n var activationState = this.activationState;\n if (activationState.isActivated) {\n return;\n }\n // Avoid reacting to follow-on events fired by touch device after an already-processed user interaction\n var previousActivationEvent = this.previousActivationEvent;\n var isSameInteraction = previousActivationEvent && evt !== undefined && previousActivationEvent.type !== evt.type;\n if (isSameInteraction) {\n return;\n }\n activationState.isActivated = true;\n activationState.isProgrammatic = evt === undefined;\n activationState.activationEvent = evt;\n activationState.wasActivatedByPointer = activationState.isProgrammatic ? false : evt !== undefined && (evt.type === 'mousedown' || evt.type === 'touchstart' || evt.type === 'pointerdown');\n var hasActivatedChild = evt !== undefined &&\n activatedTargets.length > 0 &&\n activatedTargets.some(function (target) { return _this.adapter.containsEventTarget(target); });\n if (hasActivatedChild) {\n // Immediately reset activation state, while preserving logic that prevents touch follow-on events\n this.resetActivationState();\n return;\n }\n if (evt !== undefined) {\n activatedTargets.push(evt.target);\n this.registerDeactivationHandlers(evt);\n }\n activationState.wasElementMadeActive = this.checkElementMadeActive(evt);\n if (activationState.wasElementMadeActive) {\n this.animateActivation();\n }\n requestAnimationFrame(function () {\n // Reset array on next frame after the current event has had a chance to bubble to prevent ancestor ripples\n activatedTargets = [];\n if (!activationState.wasElementMadeActive\n && evt !== undefined\n && (evt.key === ' ' || evt.keyCode === 32)) {\n // If space was pressed, try again within an rAF call to detect :active, because different UAs report\n // active states inconsistently when they're called within event handling code:\n // - https://bugs.chromium.org/p/chromium/issues/detail?id=635971\n // - https://bugzilla.mozilla.org/show_bug.cgi?id=1293741\n // We try first outside rAF to support Edge, which does not exhibit this problem, but will crash if a CSS\n // variable is set within a rAF callback for a submit button interaction (#2241).\n activationState.wasElementMadeActive = _this.checkElementMadeActive(evt);\n if (activationState.wasElementMadeActive) {\n _this.animateActivation();\n }\n }\n if (!activationState.wasElementMadeActive) {\n // Reset activation state immediately if element was not made active.\n _this.activationState = _this.defaultActivationState();\n }\n });\n };\n MDCRippleFoundation.prototype.checkElementMadeActive = function (evt) {\n return (evt !== undefined && evt.type === 'keydown') ?\n this.adapter.isSurfaceActive() :\n true;\n };\n MDCRippleFoundation.prototype.animateActivation = function () {\n var _this = this;\n var _a = MDCRippleFoundation.strings, VAR_FG_TRANSLATE_START = _a.VAR_FG_TRANSLATE_START, VAR_FG_TRANSLATE_END = _a.VAR_FG_TRANSLATE_END;\n var _b = MDCRippleFoundation.cssClasses, FG_DEACTIVATION = _b.FG_DEACTIVATION, FG_ACTIVATION = _b.FG_ACTIVATION;\n var DEACTIVATION_TIMEOUT_MS = MDCRippleFoundation.numbers.DEACTIVATION_TIMEOUT_MS;\n this.layoutInternal();\n var translateStart = '';\n var translateEnd = '';\n if (!this.adapter.isUnbounded()) {\n var _c = this.getFgTranslationCoordinates(), startPoint = _c.startPoint, endPoint = _c.endPoint;\n translateStart = startPoint.x + \"px, \" + startPoint.y + \"px\";\n translateEnd = endPoint.x + \"px, \" + endPoint.y + \"px\";\n }\n this.adapter.updateCssVariable(VAR_FG_TRANSLATE_START, translateStart);\n this.adapter.updateCssVariable(VAR_FG_TRANSLATE_END, translateEnd);\n // Cancel any ongoing activation/deactivation animations\n clearTimeout(this.activationTimer);\n clearTimeout(this.fgDeactivationRemovalTimer);\n this.rmBoundedActivationClasses();\n this.adapter.removeClass(FG_DEACTIVATION);\n // Force layout in order to re-trigger the animation.\n this.adapter.computeBoundingRect();\n this.adapter.addClass(FG_ACTIVATION);\n this.activationTimer = setTimeout(function () {\n _this.activationTimerCallback();\n }, DEACTIVATION_TIMEOUT_MS);\n };\n MDCRippleFoundation.prototype.getFgTranslationCoordinates = function () {\n var _a = this.activationState, activationEvent = _a.activationEvent, wasActivatedByPointer = _a.wasActivatedByPointer;\n var startPoint;\n if (wasActivatedByPointer) {\n startPoint = getNormalizedEventCoords(activationEvent, this.adapter.getWindowPageOffset(), this.adapter.computeBoundingRect());\n }\n else {\n startPoint = {\n x: this.frame.width / 2,\n y: this.frame.height / 2,\n };\n }\n // Center the element around the start point.\n startPoint = {\n x: startPoint.x - (this.initialSize / 2),\n y: startPoint.y - (this.initialSize / 2),\n };\n var endPoint = {\n x: (this.frame.width / 2) - (this.initialSize / 2),\n y: (this.frame.height / 2) - (this.initialSize / 2),\n };\n return { startPoint: startPoint, endPoint: endPoint };\n };\n MDCRippleFoundation.prototype.runDeactivationUXLogicIfReady = function () {\n var _this = this;\n // This method is called both when a pointing device is released, and when the activation animation ends.\n // The deactivation animation should only run after both of those occur.\n var FG_DEACTIVATION = MDCRippleFoundation.cssClasses.FG_DEACTIVATION;\n var _a = this.activationState, hasDeactivationUXRun = _a.hasDeactivationUXRun, isActivated = _a.isActivated;\n var activationHasEnded = hasDeactivationUXRun || !isActivated;\n if (activationHasEnded && this.activationAnimationHasEnded) {\n this.rmBoundedActivationClasses();\n this.adapter.addClass(FG_DEACTIVATION);\n this.fgDeactivationRemovalTimer = setTimeout(function () {\n _this.adapter.removeClass(FG_DEACTIVATION);\n }, numbers.FG_DEACTIVATION_MS);\n }\n };\n MDCRippleFoundation.prototype.rmBoundedActivationClasses = function () {\n var FG_ACTIVATION = MDCRippleFoundation.cssClasses.FG_ACTIVATION;\n this.adapter.removeClass(FG_ACTIVATION);\n this.activationAnimationHasEnded = false;\n this.adapter.computeBoundingRect();\n };\n MDCRippleFoundation.prototype.resetActivationState = function () {\n var _this = this;\n this.previousActivationEvent = this.activationState.activationEvent;\n this.activationState = this.defaultActivationState();\n // Touch devices may fire additional events for the same interaction within a short time.\n // Store the previous event until it's safe to assume that subsequent events are for new interactions.\n setTimeout(function () { return _this.previousActivationEvent = undefined; }, MDCRippleFoundation.numbers.TAP_DELAY_MS);\n };\n MDCRippleFoundation.prototype.deactivateImpl = function () {\n var _this = this;\n var activationState = this.activationState;\n // This can happen in scenarios such as when you have a keyup event that blurs the element.\n if (!activationState.isActivated) {\n return;\n }\n var state = __assign({}, activationState);\n if (activationState.isProgrammatic) {\n requestAnimationFrame(function () {\n _this.animateDeactivation(state);\n });\n this.resetActivationState();\n }\n else {\n this.deregisterDeactivationHandlers();\n requestAnimationFrame(function () {\n _this.activationState.hasDeactivationUXRun = true;\n _this.animateDeactivation(state);\n _this.resetActivationState();\n });\n }\n };\n MDCRippleFoundation.prototype.animateDeactivation = function (_a) {\n var wasActivatedByPointer = _a.wasActivatedByPointer, wasElementMadeActive = _a.wasElementMadeActive;\n if (wasActivatedByPointer || wasElementMadeActive) {\n this.runDeactivationUXLogicIfReady();\n }\n };\n MDCRippleFoundation.prototype.layoutInternal = function () {\n var _this = this;\n this.frame = this.adapter.computeBoundingRect();\n var maxDim = Math.max(this.frame.height, this.frame.width);\n // Surface diameter is treated differently for unbounded vs. bounded ripples.\n // Unbounded ripple diameter is calculated smaller since the surface is expected to already be padded appropriately\n // to extend the hitbox, and the ripple is expected to meet the edges of the padded hitbox (which is typically\n // square). Bounded ripples, on the other hand, are fully expected to expand beyond the surface's longest diameter\n // (calculated based on the diagonal plus a constant padding), and are clipped at the surface's border via\n // `overflow: hidden`.\n var getBoundedRadius = function () {\n var hypotenuse = Math.sqrt(Math.pow(_this.frame.width, 2) + Math.pow(_this.frame.height, 2));\n return hypotenuse + MDCRippleFoundation.numbers.PADDING;\n };\n this.maxRadius = this.adapter.isUnbounded() ? maxDim : getBoundedRadius();\n // Ripple is sized as a fraction of the largest dimension of the surface, then scales up using a CSS scale transform\n var initialSize = Math.floor(maxDim * MDCRippleFoundation.numbers.INITIAL_ORIGIN_SCALE);\n // Unbounded ripple size should always be even number to equally center align.\n if (this.adapter.isUnbounded() && initialSize % 2 !== 0) {\n this.initialSize = initialSize - 1;\n }\n else {\n this.initialSize = initialSize;\n }\n this.fgScale = \"\" + this.maxRadius / this.initialSize;\n this.updateLayoutCssVars();\n };\n MDCRippleFoundation.prototype.updateLayoutCssVars = function () {\n var _a = MDCRippleFoundation.strings, VAR_FG_SIZE = _a.VAR_FG_SIZE, VAR_LEFT = _a.VAR_LEFT, VAR_TOP = _a.VAR_TOP, VAR_FG_SCALE = _a.VAR_FG_SCALE;\n this.adapter.updateCssVariable(VAR_FG_SIZE, this.initialSize + \"px\");\n this.adapter.updateCssVariable(VAR_FG_SCALE, this.fgScale);\n if (this.adapter.isUnbounded()) {\n this.unboundedCoords = {\n left: Math.round((this.frame.width / 2) - (this.initialSize / 2)),\n top: Math.round((this.frame.height / 2) - (this.initialSize / 2)),\n };\n this.adapter.updateCssVariable(VAR_LEFT, this.unboundedCoords.left + \"px\");\n this.adapter.updateCssVariable(VAR_TOP, this.unboundedCoords.top + \"px\");\n }\n };\n return MDCRippleFoundation;\n}(MDCFoundation));\nexport { MDCRippleFoundation };\n// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\nexport default MDCRippleFoundation;\n//# sourceMappingURL=foundation.js.map",null,"/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nexport var cssClasses = {\n // Ripple is a special case where the \"root\" component is really a \"mixin\" of sorts,\n // given that it's an 'upgrade' to an existing component. That being said it is the root\n // CSS class that all other CSS classes derive from.\n BG_FOCUSED: 'mdc-ripple-upgraded--background-focused',\n FG_ACTIVATION: 'mdc-ripple-upgraded--foreground-activation',\n FG_DEACTIVATION: 'mdc-ripple-upgraded--foreground-deactivation',\n ROOT: 'mdc-ripple-upgraded',\n UNBOUNDED: 'mdc-ripple-upgraded--unbounded',\n};\nexport var strings = {\n VAR_FG_SCALE: '--mdc-ripple-fg-scale',\n VAR_FG_SIZE: '--mdc-ripple-fg-size',\n VAR_FG_TRANSLATE_END: '--mdc-ripple-fg-translate-end',\n VAR_FG_TRANSLATE_START: '--mdc-ripple-fg-translate-start',\n VAR_LEFT: '--mdc-ripple-left',\n VAR_TOP: '--mdc-ripple-top',\n};\nexport var numbers = {\n DEACTIVATION_TIMEOUT_MS: 225,\n FG_DEACTIVATION_MS: 150,\n INITIAL_ORIGIN_SCALE: 0.6,\n PADDING: 10,\n TAP_DELAY_MS: 300, // Delay between touch and simulated mouse events on touch devices\n};\n//# sourceMappingURL=constants.js.map",null,"/**\n * Stores result from supportsCssVariables to avoid redundant processing to\n * detect CSS custom variable support.\n */\nvar supportsCssVariables_;\nexport function supportsCssVariables(windowObj, forceRefresh) {\n if (forceRefresh === void 0) { forceRefresh = false; }\n var CSS = windowObj.CSS;\n var supportsCssVars = supportsCssVariables_;\n if (typeof supportsCssVariables_ === 'boolean' && !forceRefresh) {\n return supportsCssVariables_;\n }\n var supportsFunctionPresent = CSS && typeof CSS.supports === 'function';\n if (!supportsFunctionPresent) {\n return false;\n }\n var explicitlySupportsCssVars = CSS.supports('--css-vars', 'yes');\n // See: https://bugs.webkit.org/show_bug.cgi?id=154669\n // See: README section on Safari\n var weAreFeatureDetectingSafari10plus = (CSS.supports('(--css-vars: yes)') &&\n CSS.supports('color', '#00000000'));\n supportsCssVars =\n explicitlySupportsCssVars || weAreFeatureDetectingSafari10plus;\n if (!forceRefresh) {\n supportsCssVariables_ = supportsCssVars;\n }\n return supportsCssVars;\n}\nexport function getNormalizedEventCoords(evt, pageOffset, clientRect) {\n if (!evt) {\n return { x: 0, y: 0 };\n }\n var x = pageOffset.x, y = pageOffset.y;\n var documentX = x + clientRect.left;\n var documentY = y + clientRect.top;\n var normalizedX;\n var normalizedY;\n // Determine touch point relative to the ripple container.\n if (evt.type === 'touchstart') {\n var touchEvent = evt;\n normalizedX = touchEvent.changedTouches[0].pageX - documentX;\n normalizedY = touchEvent.changedTouches[0].pageY - documentY;\n }\n else {\n var mouseEvent = evt;\n normalizedX = mouseEvent.pageX - documentX;\n normalizedY = mouseEvent.pageY - documentY;\n }\n return { x: normalizedX, y: normalizedY };\n}\n//# sourceMappingURL=util.js.map",null,"/**\n * @license\n * Copyright 2017 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport { __assign, __extends } from \"tslib\";\nimport { AnimationFrame } from '@material/animation/animationframe';\nimport { MDCFoundation } from '@material/base/foundation';\nimport { cssClasses, numbers, strings } from './constants';\nvar AnimationKeys;\n(function (AnimationKeys) {\n AnimationKeys[\"POLL_SCROLL_POS\"] = \"poll_scroll_position\";\n AnimationKeys[\"POLL_LAYOUT_CHANGE\"] = \"poll_layout_change\";\n})(AnimationKeys || (AnimationKeys = {}));\nvar MDCDialogFoundation = /** @class */ (function (_super) {\n __extends(MDCDialogFoundation, _super);\n function MDCDialogFoundation(adapter) {\n var _this = _super.call(this, __assign(__assign({}, MDCDialogFoundation.defaultAdapter), adapter)) || this;\n _this.dialogOpen = false;\n _this.isFullscreen = false;\n _this.animationFrame = 0;\n _this.animationTimer = 0;\n _this.escapeKeyAction = strings.CLOSE_ACTION;\n _this.scrimClickAction = strings.CLOSE_ACTION;\n _this.autoStackButtons = true;\n _this.areButtonsStacked = false;\n _this.suppressDefaultPressSelector = strings.SUPPRESS_DEFAULT_PRESS_SELECTOR;\n _this.animFrame = new AnimationFrame();\n _this.contentScrollHandler = function () {\n _this.handleScrollEvent();\n };\n _this.windowResizeHandler = function () {\n _this.layout();\n };\n _this.windowOrientationChangeHandler = function () {\n _this.layout();\n };\n return _this;\n }\n Object.defineProperty(MDCDialogFoundation, \"cssClasses\", {\n get: function () {\n return cssClasses;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCDialogFoundation, \"strings\", {\n get: function () {\n return strings;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCDialogFoundation, \"numbers\", {\n get: function () {\n return numbers;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCDialogFoundation, \"defaultAdapter\", {\n get: function () {\n return {\n addBodyClass: function () { return undefined; },\n addClass: function () { return undefined; },\n areButtonsStacked: function () { return false; },\n clickDefaultButton: function () { return undefined; },\n eventTargetMatches: function () { return false; },\n getActionFromEvent: function () { return ''; },\n getInitialFocusEl: function () { return null; },\n hasClass: function () { return false; },\n isContentScrollable: function () { return false; },\n notifyClosed: function () { return undefined; },\n notifyClosing: function () { return undefined; },\n notifyOpened: function () { return undefined; },\n notifyOpening: function () { return undefined; },\n releaseFocus: function () { return undefined; },\n removeBodyClass: function () { return undefined; },\n removeClass: function () { return undefined; },\n reverseButtons: function () { return undefined; },\n trapFocus: function () { return undefined; },\n registerContentEventHandler: function () { return undefined; },\n deregisterContentEventHandler: function () { return undefined; },\n isScrollableContentAtTop: function () { return false; },\n isScrollableContentAtBottom: function () { return false; },\n registerWindowEventHandler: function () { return undefined; },\n deregisterWindowEventHandler: function () { return undefined; },\n };\n },\n enumerable: false,\n configurable: true\n });\n MDCDialogFoundation.prototype.init = function () {\n if (this.adapter.hasClass(cssClasses.STACKED)) {\n this.setAutoStackButtons(false);\n }\n this.isFullscreen = this.adapter.hasClass(cssClasses.FULLSCREEN);\n };\n MDCDialogFoundation.prototype.destroy = function () {\n if (this.animationTimer) {\n clearTimeout(this.animationTimer);\n this.handleAnimationTimerEnd();\n }\n if (this.isFullscreen) {\n this.adapter.deregisterContentEventHandler('scroll', this.contentScrollHandler);\n }\n this.animFrame.cancelAll();\n this.adapter.deregisterWindowEventHandler('resize', this.windowResizeHandler);\n this.adapter.deregisterWindowEventHandler('orientationchange', this.windowOrientationChangeHandler);\n };\n MDCDialogFoundation.prototype.open = function (dialogOptions) {\n var _this = this;\n this.dialogOpen = true;\n this.adapter.notifyOpening();\n this.adapter.addClass(cssClasses.OPENING);\n if (this.isFullscreen) {\n // A scroll event listener is registered even if the dialog is not\n // scrollable on open, since the window resize event, or orientation\n // change may make the dialog scrollable after it is opened.\n this.adapter.registerContentEventHandler('scroll', this.contentScrollHandler);\n }\n if (dialogOptions && dialogOptions.isAboveFullscreenDialog) {\n this.adapter.addClass(cssClasses.SCRIM_HIDDEN);\n }\n this.adapter.registerWindowEventHandler('resize', this.windowResizeHandler);\n this.adapter.registerWindowEventHandler('orientationchange', this.windowOrientationChangeHandler);\n // Wait a frame once display is no longer \"none\", to establish basis for\n // animation\n this.runNextAnimationFrame(function () {\n _this.adapter.addClass(cssClasses.OPEN);\n _this.adapter.addBodyClass(cssClasses.SCROLL_LOCK);\n _this.layout();\n _this.animationTimer = setTimeout(function () {\n _this.handleAnimationTimerEnd();\n _this.adapter.trapFocus(_this.adapter.getInitialFocusEl());\n _this.adapter.notifyOpened();\n }, numbers.DIALOG_ANIMATION_OPEN_TIME_MS);\n });\n };\n MDCDialogFoundation.prototype.close = function (action) {\n var _this = this;\n if (action === void 0) { action = ''; }\n if (!this.dialogOpen) {\n // Avoid redundant close calls (and events), e.g. from keydown on elements\n // that inherently emit click\n return;\n }\n this.dialogOpen = false;\n this.adapter.notifyClosing(action);\n this.adapter.addClass(cssClasses.CLOSING);\n this.adapter.removeClass(cssClasses.OPEN);\n this.adapter.removeBodyClass(cssClasses.SCROLL_LOCK);\n if (this.isFullscreen) {\n this.adapter.deregisterContentEventHandler('scroll', this.contentScrollHandler);\n }\n this.adapter.deregisterWindowEventHandler('resize', this.windowResizeHandler);\n this.adapter.deregisterWindowEventHandler('orientationchange', this.windowOrientationChangeHandler);\n cancelAnimationFrame(this.animationFrame);\n this.animationFrame = 0;\n clearTimeout(this.animationTimer);\n this.animationTimer = setTimeout(function () {\n _this.adapter.releaseFocus();\n _this.handleAnimationTimerEnd();\n _this.adapter.notifyClosed(action);\n }, numbers.DIALOG_ANIMATION_CLOSE_TIME_MS);\n };\n /**\n * Used only in instances of showing a secondary dialog over a full-screen\n * dialog. Shows the \"surface scrim\" displayed over the full-screen dialog.\n */\n MDCDialogFoundation.prototype.showSurfaceScrim = function () {\n var _this = this;\n this.adapter.addClass(cssClasses.SURFACE_SCRIM_SHOWING);\n this.runNextAnimationFrame(function () {\n _this.adapter.addClass(cssClasses.SURFACE_SCRIM_SHOWN);\n });\n };\n /**\n * Used only in instances of showing a secondary dialog over a full-screen\n * dialog. Hides the \"surface scrim\" displayed over the full-screen dialog.\n */\n MDCDialogFoundation.prototype.hideSurfaceScrim = function () {\n this.adapter.removeClass(cssClasses.SURFACE_SCRIM_SHOWN);\n this.adapter.addClass(cssClasses.SURFACE_SCRIM_HIDING);\n };\n /**\n * Handles `transitionend` event triggered when surface scrim animation is\n * finished.\n */\n MDCDialogFoundation.prototype.handleSurfaceScrimTransitionEnd = function () {\n this.adapter.removeClass(cssClasses.SURFACE_SCRIM_HIDING);\n this.adapter.removeClass(cssClasses.SURFACE_SCRIM_SHOWING);\n };\n MDCDialogFoundation.prototype.isOpen = function () {\n return this.dialogOpen;\n };\n MDCDialogFoundation.prototype.getEscapeKeyAction = function () {\n return this.escapeKeyAction;\n };\n MDCDialogFoundation.prototype.setEscapeKeyAction = function (action) {\n this.escapeKeyAction = action;\n };\n MDCDialogFoundation.prototype.getScrimClickAction = function () {\n return this.scrimClickAction;\n };\n MDCDialogFoundation.prototype.setScrimClickAction = function (action) {\n this.scrimClickAction = action;\n };\n MDCDialogFoundation.prototype.getAutoStackButtons = function () {\n return this.autoStackButtons;\n };\n MDCDialogFoundation.prototype.setAutoStackButtons = function (autoStack) {\n this.autoStackButtons = autoStack;\n };\n MDCDialogFoundation.prototype.getSuppressDefaultPressSelector = function () {\n return this.suppressDefaultPressSelector;\n };\n MDCDialogFoundation.prototype.setSuppressDefaultPressSelector = function (selector) {\n this.suppressDefaultPressSelector = selector;\n };\n MDCDialogFoundation.prototype.layout = function () {\n var _this = this;\n this.animFrame.request(AnimationKeys.POLL_LAYOUT_CHANGE, function () {\n _this.layoutInternal();\n });\n };\n /** Handles click on the dialog root element. */\n MDCDialogFoundation.prototype.handleClick = function (evt) {\n var isScrim = this.adapter.eventTargetMatches(evt.target, strings.SCRIM_SELECTOR);\n // Check for scrim click first since it doesn't require querying ancestors.\n if (isScrim && this.scrimClickAction !== '') {\n this.close(this.scrimClickAction);\n }\n else {\n var action = this.adapter.getActionFromEvent(evt);\n if (action) {\n this.close(action);\n }\n }\n };\n /** Handles keydown on the dialog root element. */\n MDCDialogFoundation.prototype.handleKeydown = function (evt) {\n var isEnter = evt.key === 'Enter' || evt.keyCode === 13;\n if (!isEnter) {\n return;\n }\n var action = this.adapter.getActionFromEvent(evt);\n if (action) {\n // Action button callback is handled in `handleClick`,\n // since space/enter keydowns on buttons trigger click events.\n return;\n }\n // `composedPath` is used here, when available, to account for use cases\n // where a target meant to suppress the default press behaviour\n // may exist in a shadow root.\n // For example, a textarea inside a web component:\n // \n // \n // #shadow-root (open)\n // \n // #shadow-root (open)\n // \n // \n // \n // \n var target = evt.composedPath ? evt.composedPath()[0] : evt.target;\n var isDefault = this.suppressDefaultPressSelector ?\n !this.adapter.eventTargetMatches(target, this.suppressDefaultPressSelector) :\n true;\n if (isEnter && isDefault) {\n this.adapter.clickDefaultButton();\n }\n };\n /** Handles keydown on the document. */\n MDCDialogFoundation.prototype.handleDocumentKeydown = function (evt) {\n var isEscape = evt.key === 'Escape' || evt.keyCode === 27;\n if (isEscape && this.escapeKeyAction !== '') {\n this.close(this.escapeKeyAction);\n }\n };\n /**\n * Handles scroll event on the dialog's content element -- showing a scroll\n * divider on the header or footer based on the scroll position. This handler\n * should only be registered on full-screen dialogs with scrollable content.\n */\n MDCDialogFoundation.prototype.handleScrollEvent = function () {\n var _this = this;\n // Since scroll events can fire at a high rate, we throttle these events by\n // using requestAnimationFrame.\n this.animFrame.request(AnimationKeys.POLL_SCROLL_POS, function () {\n _this.toggleScrollDividerHeader();\n _this.toggleScrollDividerFooter();\n });\n };\n MDCDialogFoundation.prototype.layoutInternal = function () {\n if (this.autoStackButtons) {\n this.detectStackedButtons();\n }\n this.toggleScrollableClasses();\n };\n MDCDialogFoundation.prototype.handleAnimationTimerEnd = function () {\n this.animationTimer = 0;\n this.adapter.removeClass(cssClasses.OPENING);\n this.adapter.removeClass(cssClasses.CLOSING);\n };\n /**\n * Runs the given logic on the next animation frame, using setTimeout to\n * factor in Firefox reflow behavior.\n */\n MDCDialogFoundation.prototype.runNextAnimationFrame = function (callback) {\n var _this = this;\n cancelAnimationFrame(this.animationFrame);\n this.animationFrame = requestAnimationFrame(function () {\n _this.animationFrame = 0;\n clearTimeout(_this.animationTimer);\n _this.animationTimer = setTimeout(callback, 0);\n });\n };\n MDCDialogFoundation.prototype.detectStackedButtons = function () {\n // Remove the class first to let us measure the buttons' natural positions.\n this.adapter.removeClass(cssClasses.STACKED);\n var areButtonsStacked = this.adapter.areButtonsStacked();\n if (areButtonsStacked) {\n this.adapter.addClass(cssClasses.STACKED);\n }\n if (areButtonsStacked !== this.areButtonsStacked) {\n this.adapter.reverseButtons();\n this.areButtonsStacked = areButtonsStacked;\n }\n };\n MDCDialogFoundation.prototype.toggleScrollableClasses = function () {\n // Remove the class first to let us measure the natural height of the\n // content.\n this.adapter.removeClass(cssClasses.SCROLLABLE);\n if (this.adapter.isContentScrollable()) {\n this.adapter.addClass(cssClasses.SCROLLABLE);\n if (this.isFullscreen) {\n // If dialog is full-screen and scrollable, check if a scroll divider\n // should be shown.\n this.toggleScrollDividerHeader();\n this.toggleScrollDividerFooter();\n }\n }\n };\n MDCDialogFoundation.prototype.toggleScrollDividerHeader = function () {\n if (!this.adapter.isScrollableContentAtTop()) {\n this.adapter.addClass(cssClasses.SCROLL_DIVIDER_HEADER);\n }\n else if (this.adapter.hasClass(cssClasses.SCROLL_DIVIDER_HEADER)) {\n this.adapter.removeClass(cssClasses.SCROLL_DIVIDER_HEADER);\n }\n };\n MDCDialogFoundation.prototype.toggleScrollDividerFooter = function () {\n if (!this.adapter.isScrollableContentAtBottom()) {\n this.adapter.addClass(cssClasses.SCROLL_DIVIDER_FOOTER);\n }\n else if (this.adapter.hasClass(cssClasses.SCROLL_DIVIDER_FOOTER)) {\n this.adapter.removeClass(cssClasses.SCROLL_DIVIDER_FOOTER);\n }\n };\n return MDCDialogFoundation;\n}(MDCFoundation));\nexport { MDCDialogFoundation };\n// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\nexport default MDCDialogFoundation;\n//# sourceMappingURL=foundation.js.map",null,"/**\n * @license\n * Copyright 2020 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n/**\n * AnimationFrame provides a user-friendly abstraction around requesting\n * and canceling animation frames.\n */\nvar AnimationFrame = /** @class */ (function () {\n function AnimationFrame() {\n this.rafIDs = new Map();\n }\n /**\n * Requests an animation frame. Cancels any existing frame with the same key.\n * @param {string} key The key for this callback.\n * @param {FrameRequestCallback} callback The callback to be executed.\n */\n AnimationFrame.prototype.request = function (key, callback) {\n var _this = this;\n this.cancel(key);\n var frameID = requestAnimationFrame(function (frame) {\n _this.rafIDs.delete(key);\n // Callback must come *after* the key is deleted so that nested calls to\n // request with the same key are not deleted.\n callback(frame);\n });\n this.rafIDs.set(key, frameID);\n };\n /**\n * Cancels a queued callback with the given key.\n * @param {string} key The key for this callback.\n */\n AnimationFrame.prototype.cancel = function (key) {\n var rafID = this.rafIDs.get(key);\n if (rafID) {\n cancelAnimationFrame(rafID);\n this.rafIDs.delete(key);\n }\n };\n /**\n * Cancels all queued callback.\n */\n AnimationFrame.prototype.cancelAll = function () {\n var _this = this;\n // Need to use forEach because it's the only iteration method supported\n // by IE11. Suppress the underscore because we don't need it.\n // tslint:disable-next-line:enforce-name-casing\n this.rafIDs.forEach(function (_, key) {\n _this.cancel(key);\n });\n };\n /**\n * Returns the queue of unexecuted callback keys.\n */\n AnimationFrame.prototype.getQueue = function () {\n var queue = [];\n // Need to use forEach because it's the only iteration method supported\n // by IE11. Suppress the underscore because we don't need it.\n // tslint:disable-next-line:enforce-name-casing\n this.rafIDs.forEach(function (_, key) {\n queue.push(key);\n });\n return queue;\n };\n return AnimationFrame;\n}());\nexport { AnimationFrame };\n//# sourceMappingURL=animationframe.js.map",null,"/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nexport var cssClasses = {\n CLOSING: 'mdc-dialog--closing',\n OPEN: 'mdc-dialog--open',\n OPENING: 'mdc-dialog--opening',\n SCROLLABLE: 'mdc-dialog--scrollable',\n SCROLL_LOCK: 'mdc-dialog-scroll-lock',\n STACKED: 'mdc-dialog--stacked',\n FULLSCREEN: 'mdc-dialog--fullscreen',\n // Class for showing a scroll divider on full-screen dialog header element.\n // Should only be displayed on scrollable content, when the dialog content is\n // scrolled \"underneath\" the header.\n SCROLL_DIVIDER_HEADER: 'mdc-dialog-scroll-divider-header',\n // Class for showing a scroll divider on a full-screen dialog footer element.\n // Should only be displayed on scrolalble content, when the dialog content is\n // obscured \"underneath\" the footer.\n SCROLL_DIVIDER_FOOTER: 'mdc-dialog-scroll-divider-footer',\n // The \"surface scrim\" is a scrim covering only the surface of a dialog. This\n // is used in situations where a confirmation dialog is shown over an already\n // opened full-screen dialog. On larger screen-sizes, the full-screen dialog\n // is sized as a modal and so in these situations we display a \"surface scrim\"\n // to prevent a \"double scrim\" (where the scrim from the secondary\n // confirmation dialog would overlap with the scrim from the full-screen\n // dialog).\n SURFACE_SCRIM_SHOWN: 'mdc-dialog__surface-scrim--shown',\n // \"Showing\" animating class for the surface-scrim.\n SURFACE_SCRIM_SHOWING: 'mdc-dialog__surface-scrim--showing',\n // \"Hiding\" animating class for the surface-scrim.\n SURFACE_SCRIM_HIDING: 'mdc-dialog__surface-scrim--hiding',\n // Class to hide a dialog's scrim (used in conjunction with a surface-scrim).\n // Note that we only hide the original scrim rather than removing it entirely\n // to prevent interactions with the content behind this scrim, and to capture\n // scrim clicks.\n SCRIM_HIDDEN: 'mdc-dialog__scrim--hidden',\n};\nexport var strings = {\n ACTION_ATTRIBUTE: 'data-mdc-dialog-action',\n BUTTON_DEFAULT_ATTRIBUTE: 'data-mdc-dialog-button-default',\n BUTTON_SELECTOR: '.mdc-dialog__button',\n CLOSED_EVENT: 'MDCDialog:closed',\n CLOSE_ACTION: 'close',\n CLOSING_EVENT: 'MDCDialog:closing',\n CONTAINER_SELECTOR: '.mdc-dialog__container',\n CONTENT_SELECTOR: '.mdc-dialog__content',\n DESTROY_ACTION: 'destroy',\n INITIAL_FOCUS_ATTRIBUTE: 'data-mdc-dialog-initial-focus',\n OPENED_EVENT: 'MDCDialog:opened',\n OPENING_EVENT: 'MDCDialog:opening',\n SCRIM_SELECTOR: '.mdc-dialog__scrim',\n SUPPRESS_DEFAULT_PRESS_SELECTOR: [\n 'textarea',\n '.mdc-menu .mdc-list-item',\n '.mdc-menu .mdc-deprecated-list-item',\n ].join(', '),\n SURFACE_SELECTOR: '.mdc-dialog__surface',\n};\nexport var numbers = {\n DIALOG_ANIMATION_CLOSE_TIME_MS: 75,\n DIALOG_ANIMATION_OPEN_TIME_MS: 150,\n};\n//# sourceMappingURL=constants.js.map",null,"/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nexport function createFocusTrapInstance(surfaceEl, focusTrapFactory, initialFocusEl) {\n return focusTrapFactory(surfaceEl, { initialFocusEl: initialFocusEl });\n}\nexport function isScrollable(el) {\n return el ? el.scrollHeight > el.offsetHeight : false;\n}\n/**\n * For scrollable content, returns true if the content has not been scrolled\n * (that is, the scroll content is as the \"top\"). This is used in full-screen\n * dialogs, where the scroll divider is expected only to appear once the\n * content has been scrolled \"underneath\" the header bar.\n */\nexport function isScrollAtTop(el) {\n return el ? el.scrollTop === 0 : false;\n}\n/**\n * For scrollable content, returns true if the content has been scrolled all the\n * way to the bottom. This is used in full-screen dialogs, where the footer\n * scroll divider is expected only to appear when the content is \"cut-off\" by\n * the footer bar.\n */\nexport function isScrollAtBottom(el) {\n return el ? Math.ceil(el.scrollHeight - el.scrollTop) === el.clientHeight :\n false;\n}\nexport function areTopsMisaligned(els) {\n var tops = new Set();\n [].forEach.call(els, function (el) { return tops.add(el.offsetTop); });\n return tops.size > 1;\n}\n//# sourceMappingURL=util.js.map",null,"/**\n * @license\n * Copyright 2019 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport { __extends, __values } from \"tslib\";\nimport { MDCComponent } from '@material/base/component';\nimport { MDCCheckbox } from '@material/checkbox/component';\nimport { closest } from '@material/dom/ponyfill';\nimport { MDCLinearProgress } from '@material/linear-progress/component';\nimport { cssClasses, dataAttributes, events, messages, selectors, SortValue } from './constants';\nimport { MDCDataTableFoundation } from './foundation';\n/**\n * Implementation of `MDCDataTableFoundation`\n */\nvar MDCDataTable = /** @class */ (function (_super) {\n __extends(MDCDataTable, _super);\n function MDCDataTable() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n MDCDataTable.attachTo = function (root) {\n return new MDCDataTable(root);\n };\n MDCDataTable.prototype.initialize = function (checkboxFactory) {\n if (checkboxFactory === void 0) { checkboxFactory = function (el) { return new MDCCheckbox(el); }; }\n this.checkboxFactory = checkboxFactory;\n };\n MDCDataTable.prototype.initialSyncWithDOM = function () {\n var _this = this;\n this.headerRow =\n this.root.querySelector(\".\" + cssClasses.HEADER_ROW);\n this.handleHeaderRowCheckboxChange = function () {\n _this.foundation.handleHeaderRowCheckboxChange();\n };\n this.headerRow.addEventListener('change', this.handleHeaderRowCheckboxChange);\n this.headerRowClickListener = function (event) {\n _this.handleHeaderRowClick(event);\n };\n this.headerRow.addEventListener('click', this.headerRowClickListener);\n this.content =\n this.root.querySelector(\".\" + cssClasses.CONTENT);\n this.handleContentClick = function (event) {\n var dataRowEl = closest(event.target, selectors.ROW);\n if (!dataRowEl)\n return;\n _this.foundation.handleRowClick({\n rowId: _this.getRowIdByRowElement(dataRowEl),\n row: dataRowEl,\n });\n };\n this.content.addEventListener('click', this.handleContentClick);\n this.handleRowCheckboxChange = function (event) {\n _this.foundation.handleRowCheckboxChange(event);\n };\n this.content.addEventListener('change', this.handleRowCheckboxChange);\n this.layout();\n };\n /**\n * Re-initializes header row checkbox and row checkboxes when selectable rows\n * are added or removed from table.\n */\n MDCDataTable.prototype.layout = function () {\n this.foundation.layout();\n };\n /**\n * @return Returns array of header row cell elements.\n */\n MDCDataTable.prototype.getHeaderCells = function () {\n return [].slice.call(this.root.querySelectorAll(selectors.HEADER_CELL));\n };\n /**\n * @return Returns array of row elements.\n */\n MDCDataTable.prototype.getRows = function () {\n return this.foundation.getRows();\n };\n /**\n * @return Returns array of selected row ids.\n */\n MDCDataTable.prototype.getSelectedRowIds = function () {\n return this.foundation.getSelectedRowIds();\n };\n /**\n * Sets selected row ids. Overwrites previously selected rows.\n * @param rowIds Array of row ids that needs to be selected.\n */\n MDCDataTable.prototype.setSelectedRowIds = function (rowIds) {\n this.foundation.setSelectedRowIds(rowIds);\n };\n /**\n * Shows progress indicator when data table is in loading state.\n */\n MDCDataTable.prototype.showProgress = function () {\n this.getLinearProgress().open();\n this.foundation.showProgress();\n };\n /**\n * Hides progress indicator after data table is finished loading.\n */\n MDCDataTable.prototype.hideProgress = function () {\n this.foundation.hideProgress();\n this.getLinearProgress().close();\n };\n MDCDataTable.prototype.destroy = function () {\n var e_1, _a;\n if (this.handleHeaderRowCheckboxChange) {\n this.headerRow.removeEventListener('change', this.handleHeaderRowCheckboxChange);\n }\n if (this.headerRowClickListener) {\n this.headerRow.removeEventListener('click', this.headerRowClickListener);\n }\n if (this.handleRowCheckboxChange) {\n this.content.removeEventListener('change', this.handleRowCheckboxChange);\n }\n if (this.headerRowCheckbox) {\n this.headerRowCheckbox.destroy();\n }\n if (this.rowCheckboxList) {\n try {\n for (var _b = __values(this.rowCheckboxList), _c = _b.next(); !_c.done; _c = _b.next()) {\n var checkbox = _c.value;\n checkbox.destroy();\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n if (this.handleContentClick) {\n this.content.removeEventListener('click', this.handleContentClick);\n }\n };\n MDCDataTable.prototype.getDefaultFoundation = function () {\n var _this = this;\n // DO NOT INLINE this variable. For backward compatibility, foundations take\n // a Partial. To ensure we don't accidentally omit any\n // methods, we need a separate, strongly typed adapter variable.\n // tslint:disable:object-literal-sort-keys Methods should be in the same order as the adapter interface.\n var adapter = {\n addClass: function (className) {\n _this.root.classList.add(className);\n },\n removeClass: function (className) {\n _this.root.classList.remove(className);\n },\n getHeaderCellElements: function () { return _this.getHeaderCells(); },\n getHeaderCellCount: function () { return _this.getHeaderCells().length; },\n getAttributeByHeaderCellIndex: function (index, attribute) {\n return _this.getHeaderCells()[index].getAttribute(attribute);\n },\n setAttributeByHeaderCellIndex: function (index, attribute, value) {\n _this.getHeaderCells()[index].setAttribute(attribute, value);\n },\n setClassNameByHeaderCellIndex: function (index, className) {\n _this.getHeaderCells()[index].classList.add(className);\n },\n removeClassNameByHeaderCellIndex: function (index, className) {\n _this.getHeaderCells()[index].classList.remove(className);\n },\n notifySortAction: function (data) {\n _this.emit(events.SORTED, data, /** shouldBubble */ true);\n },\n getTableContainerHeight: function () {\n var tableContainer = _this.root.querySelector(\".\" + cssClasses.TABLE_CONTAINER);\n if (!tableContainer) {\n throw new Error('MDCDataTable: Table container element not found.');\n }\n return tableContainer.getBoundingClientRect().height;\n },\n getTableHeaderHeight: function () {\n var tableHeader = _this.root.querySelector(selectors.HEADER_ROW);\n if (!tableHeader) {\n throw new Error('MDCDataTable: Table header element not found.');\n }\n return tableHeader.getBoundingClientRect().height;\n },\n setProgressIndicatorStyles: function (styles) {\n var progressIndicator = _this.root.querySelector(selectors.PROGRESS_INDICATOR);\n if (!progressIndicator) {\n throw new Error('MDCDataTable: Progress indicator element not found.');\n }\n progressIndicator.style.setProperty('height', styles.height);\n progressIndicator.style.setProperty('top', styles.top);\n },\n addClassAtRowIndex: function (rowIndex, className) {\n _this.getRows()[rowIndex].classList.add(className);\n },\n getRowCount: function () { return _this.getRows().length; },\n getRowElements: function () { return [].slice.call(_this.root.querySelectorAll(selectors.ROW)); },\n getRowIdAtIndex: function (rowIndex) {\n return _this.getRows()[rowIndex].getAttribute(dataAttributes.ROW_ID);\n },\n getRowIndexByChildElement: function (el) {\n return _this.getRows().indexOf(closest(el, selectors.ROW));\n },\n getSelectedRowCount: function () {\n return _this.root.querySelectorAll(selectors.ROW_SELECTED).length;\n },\n isCheckboxAtRowIndexChecked: function (rowIndex) {\n return _this.rowCheckboxList[rowIndex].checked;\n },\n isHeaderRowCheckboxChecked: function () { return _this.headerRowCheckbox.checked; },\n isRowsSelectable: function () {\n return !!_this.root.querySelector(selectors.ROW_CHECKBOX) ||\n !!_this.root.querySelector(selectors.HEADER_ROW_CHECKBOX);\n },\n notifyRowSelectionChanged: function (data) {\n _this.emit(events.ROW_SELECTION_CHANGED, {\n row: _this.getRowByIndex(data.rowIndex),\n rowId: _this.getRowIdByIndex(data.rowIndex),\n rowIndex: data.rowIndex,\n selected: data.selected,\n }, \n /** shouldBubble */ true);\n },\n notifySelectedAll: function () {\n _this.emit(events.SELECTED_ALL, {}, /** shouldBubble */ true);\n },\n notifyUnselectedAll: function () {\n _this.emit(events.UNSELECTED_ALL, {}, /** shouldBubble */ true);\n },\n notifyRowClick: function (data) {\n _this.emit(events.ROW_CLICK, data, /** shouldBubble */ true);\n },\n registerHeaderRowCheckbox: function () {\n if (_this.headerRowCheckbox) {\n _this.headerRowCheckbox.destroy();\n }\n var checkboxEl = _this.root.querySelector(selectors.HEADER_ROW_CHECKBOX);\n _this.headerRowCheckbox = _this.checkboxFactory(checkboxEl);\n },\n registerRowCheckboxes: function () {\n if (_this.rowCheckboxList) {\n _this.rowCheckboxList.forEach(function (checkbox) {\n checkbox.destroy();\n });\n }\n _this.rowCheckboxList = [];\n _this.getRows().forEach(function (rowEl) {\n var checkbox = _this.checkboxFactory(rowEl.querySelector(selectors.ROW_CHECKBOX));\n _this.rowCheckboxList.push(checkbox);\n });\n },\n removeClassAtRowIndex: function (rowIndex, className) {\n _this.getRows()[rowIndex].classList.remove(className);\n },\n setAttributeAtRowIndex: function (rowIndex, attr, value) {\n _this.getRows()[rowIndex].setAttribute(attr, value);\n },\n setHeaderRowCheckboxChecked: function (checked) {\n _this.headerRowCheckbox.checked = checked;\n },\n setHeaderRowCheckboxIndeterminate: function (indeterminate) {\n _this.headerRowCheckbox.indeterminate = indeterminate;\n },\n setRowCheckboxCheckedAtIndex: function (rowIndex, checked) {\n _this.rowCheckboxList[rowIndex].checked = checked;\n },\n setSortStatusLabelByHeaderCellIndex: function (columnIndex, sortValue) {\n var headerCell = _this.getHeaderCells()[columnIndex];\n var sortStatusLabel = headerCell.querySelector(selectors.SORT_STATUS_LABEL);\n if (!sortStatusLabel)\n return;\n sortStatusLabel.textContent =\n _this.getSortStatusMessageBySortValue(sortValue);\n },\n };\n return new MDCDataTableFoundation(adapter);\n };\n MDCDataTable.prototype.getRowByIndex = function (index) {\n return this.getRows()[index];\n };\n MDCDataTable.prototype.getRowIdByIndex = function (index) {\n return this.getRowByIndex(index).getAttribute(dataAttributes.ROW_ID);\n };\n MDCDataTable.prototype.handleHeaderRowClick = function (event) {\n var headerCell = closest(event.target, selectors.HEADER_CELL_WITH_SORT);\n if (!headerCell) {\n return;\n }\n var columnId = headerCell.getAttribute(dataAttributes.COLUMN_ID);\n var columnIndex = this.getHeaderCells().indexOf(headerCell);\n if (columnIndex === -1) {\n return;\n }\n this.foundation.handleSortAction({ columnId: columnId, columnIndex: columnIndex, headerCell: headerCell });\n };\n MDCDataTable.prototype.getSortStatusMessageBySortValue = function (sortValue) {\n switch (sortValue) {\n case SortValue.ASCENDING:\n return messages.SORTED_IN_ASCENDING;\n case SortValue.DESCENDING:\n return messages.SORTED_IN_DESCENDING;\n default:\n return '';\n }\n };\n MDCDataTable.prototype.getLinearProgressElement = function () {\n var el = this.root.querySelector(\".\" + cssClasses.LINEAR_PROGRESS);\n if (!el) {\n throw new Error('MDCDataTable: linear progress element is not found.');\n }\n return el;\n };\n MDCDataTable.prototype.getLinearProgress = function () {\n if (!this.linearProgress) {\n var el = this.getLinearProgressElement();\n this.linearProgress = new MDCLinearProgress(el);\n }\n return this.linearProgress;\n };\n MDCDataTable.prototype.getRowIdByRowElement = function (rowElement) {\n return rowElement.getAttribute(dataAttributes.ROW_ID);\n };\n return MDCDataTable;\n}(MDCComponent));\nexport { MDCDataTable };\n//# sourceMappingURL=component.js.map",null,"/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport { __assign, __extends, __values } from \"tslib\";\nimport { getCorrectEventName } from '@material/animation/util';\nimport { MDCComponent } from '@material/base/component';\nimport { applyPassive } from '@material/dom/events';\nimport { matches } from '@material/dom/ponyfill';\nimport { MDCRipple } from '@material/ripple/component';\nimport { MDCRippleFoundation } from '@material/ripple/foundation';\nimport { strings } from './constants';\nimport { MDCCheckboxFoundation } from './foundation';\nvar CB_PROTO_PROPS = ['checked', 'indeterminate'];\nvar MDCCheckbox = /** @class */ (function (_super) {\n __extends(MDCCheckbox, _super);\n function MDCCheckbox() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.rippleSurface = _this.createRipple();\n return _this;\n }\n MDCCheckbox.attachTo = function (root) {\n return new MDCCheckbox(root);\n };\n Object.defineProperty(MDCCheckbox.prototype, \"ripple\", {\n get: function () {\n return this.rippleSurface;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCCheckbox.prototype, \"checked\", {\n get: function () {\n return this.getNativeControl().checked;\n },\n set: function (checked) {\n this.getNativeControl().checked = checked;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCCheckbox.prototype, \"indeterminate\", {\n get: function () {\n return this.getNativeControl().indeterminate;\n },\n set: function (indeterminate) {\n this.getNativeControl().indeterminate = indeterminate;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCCheckbox.prototype, \"disabled\", {\n get: function () {\n return this.getNativeControl().disabled;\n },\n set: function (disabled) {\n this.foundation.setDisabled(disabled);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCCheckbox.prototype, \"value\", {\n get: function () {\n return this.getNativeControl().value;\n },\n set: function (value) {\n this.getNativeControl().value = value;\n },\n enumerable: false,\n configurable: true\n });\n MDCCheckbox.prototype.initialize = function () {\n var DATA_INDETERMINATE_ATTR = strings.DATA_INDETERMINATE_ATTR;\n this.getNativeControl().indeterminate =\n this.getNativeControl().getAttribute(DATA_INDETERMINATE_ATTR) ===\n 'true';\n this.getNativeControl().removeAttribute(DATA_INDETERMINATE_ATTR);\n };\n MDCCheckbox.prototype.initialSyncWithDOM = function () {\n var _this = this;\n this.handleChange = function () {\n _this.foundation.handleChange();\n };\n this.handleAnimationEnd = function () {\n _this.foundation.handleAnimationEnd();\n };\n this.getNativeControl().addEventListener('change', this.handleChange);\n this.listen(getCorrectEventName(window, 'animationend'), this.handleAnimationEnd);\n this.installPropertyChangeHooks();\n };\n MDCCheckbox.prototype.destroy = function () {\n this.rippleSurface.destroy();\n this.getNativeControl().removeEventListener('change', this.handleChange);\n this.unlisten(getCorrectEventName(window, 'animationend'), this.handleAnimationEnd);\n this.uninstallPropertyChangeHooks();\n _super.prototype.destroy.call(this);\n };\n MDCCheckbox.prototype.getDefaultFoundation = function () {\n var _this = this;\n // DO NOT INLINE this variable. For backward compatibility, foundations take a Partial.\n // To ensure we don't accidentally omit any methods, we need a separate, strongly typed adapter variable.\n var adapter = {\n addClass: function (className) { return _this.root.classList.add(className); },\n forceLayout: function () { return _this.root.offsetWidth; },\n hasNativeControl: function () { return !!_this.getNativeControl(); },\n isAttachedToDOM: function () { return Boolean(_this.root.parentNode); },\n isChecked: function () { return _this.checked; },\n isIndeterminate: function () { return _this.indeterminate; },\n removeClass: function (className) {\n _this.root.classList.remove(className);\n },\n removeNativeControlAttr: function (attr) {\n _this.getNativeControl().removeAttribute(attr);\n },\n setNativeControlAttr: function (attr, value) {\n _this.getNativeControl().setAttribute(attr, value);\n },\n setNativeControlDisabled: function (disabled) {\n _this.getNativeControl().disabled = disabled;\n },\n };\n return new MDCCheckboxFoundation(adapter);\n };\n MDCCheckbox.prototype.createRipple = function () {\n var _this = this;\n // DO NOT INLINE this variable. For backward compatibility, foundations take a Partial.\n // To ensure we don't accidentally omit any methods, we need a separate, strongly typed adapter variable.\n var adapter = __assign(__assign({}, MDCRipple.createAdapter(this)), { deregisterInteractionHandler: function (evtType, handler) {\n _this.getNativeControl().removeEventListener(evtType, handler, applyPassive());\n }, isSurfaceActive: function () { return matches(_this.getNativeControl(), ':active'); }, isUnbounded: function () { return true; }, registerInteractionHandler: function (evtType, handler) {\n _this.getNativeControl().addEventListener(evtType, handler, applyPassive());\n } });\n return new MDCRipple(this.root, new MDCRippleFoundation(adapter));\n };\n MDCCheckbox.prototype.installPropertyChangeHooks = function () {\n var e_1, _a;\n var _this = this;\n var nativeCb = this.getNativeControl();\n var cbProto = Object.getPrototypeOf(nativeCb);\n var _loop_1 = function (controlState) {\n var desc = Object.getOwnPropertyDescriptor(cbProto, controlState);\n // We have to check for this descriptor, since some browsers (Safari) don't support its return.\n // See: https://bugs.webkit.org/show_bug.cgi?id=49739\n if (!validDescriptor(desc)) {\n return { value: void 0 };\n }\n // Type cast is needed for compatibility with Closure Compiler.\n var nativeGetter = desc.get;\n var nativeCbDesc = {\n configurable: desc.configurable,\n enumerable: desc.enumerable,\n get: nativeGetter,\n set: function (state) {\n desc.set.call(nativeCb, state);\n _this.foundation.handleChange();\n },\n };\n Object.defineProperty(nativeCb, controlState, nativeCbDesc);\n };\n try {\n for (var CB_PROTO_PROPS_1 = __values(CB_PROTO_PROPS), CB_PROTO_PROPS_1_1 = CB_PROTO_PROPS_1.next(); !CB_PROTO_PROPS_1_1.done; CB_PROTO_PROPS_1_1 = CB_PROTO_PROPS_1.next()) {\n var controlState = CB_PROTO_PROPS_1_1.value;\n var state_1 = _loop_1(controlState);\n if (typeof state_1 === \"object\")\n return state_1.value;\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (CB_PROTO_PROPS_1_1 && !CB_PROTO_PROPS_1_1.done && (_a = CB_PROTO_PROPS_1.return)) _a.call(CB_PROTO_PROPS_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n };\n MDCCheckbox.prototype.uninstallPropertyChangeHooks = function () {\n var e_2, _a;\n var nativeCb = this.getNativeControl();\n var cbProto = Object.getPrototypeOf(nativeCb);\n try {\n for (var CB_PROTO_PROPS_2 = __values(CB_PROTO_PROPS), CB_PROTO_PROPS_2_1 = CB_PROTO_PROPS_2.next(); !CB_PROTO_PROPS_2_1.done; CB_PROTO_PROPS_2_1 = CB_PROTO_PROPS_2.next()) {\n var controlState = CB_PROTO_PROPS_2_1.value;\n var desc = Object.getOwnPropertyDescriptor(cbProto, controlState);\n if (!validDescriptor(desc)) {\n return;\n }\n Object.defineProperty(nativeCb, controlState, desc);\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (CB_PROTO_PROPS_2_1 && !CB_PROTO_PROPS_2_1.done && (_a = CB_PROTO_PROPS_2.return)) _a.call(CB_PROTO_PROPS_2);\n }\n finally { if (e_2) throw e_2.error; }\n }\n };\n MDCCheckbox.prototype.getNativeControl = function () {\n var NATIVE_CONTROL_SELECTOR = strings.NATIVE_CONTROL_SELECTOR;\n var el = this.root.querySelector(NATIVE_CONTROL_SELECTOR);\n if (!el) {\n throw new Error(\"Checkbox component requires a \" + NATIVE_CONTROL_SELECTOR + \" element\");\n }\n return el;\n };\n return MDCCheckbox;\n}(MDCComponent));\nexport { MDCCheckbox };\nfunction validDescriptor(inputPropDesc) {\n return !!inputPropDesc && typeof inputPropDesc.set === 'function';\n}\n//# sourceMappingURL=component.js.map",null,"/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nvar cssPropertyNameMap = {\n animation: {\n prefixed: '-webkit-animation',\n standard: 'animation',\n },\n transform: {\n prefixed: '-webkit-transform',\n standard: 'transform',\n },\n transition: {\n prefixed: '-webkit-transition',\n standard: 'transition',\n },\n};\nvar jsEventTypeMap = {\n animationend: {\n cssProperty: 'animation',\n prefixed: 'webkitAnimationEnd',\n standard: 'animationend',\n },\n animationiteration: {\n cssProperty: 'animation',\n prefixed: 'webkitAnimationIteration',\n standard: 'animationiteration',\n },\n animationstart: {\n cssProperty: 'animation',\n prefixed: 'webkitAnimationStart',\n standard: 'animationstart',\n },\n transitionend: {\n cssProperty: 'transition',\n prefixed: 'webkitTransitionEnd',\n standard: 'transitionend',\n },\n};\nfunction isWindow(windowObj) {\n return Boolean(windowObj.document) && typeof windowObj.document.createElement === 'function';\n}\nexport function getCorrectPropertyName(windowObj, cssProperty) {\n if (isWindow(windowObj) && cssProperty in cssPropertyNameMap) {\n var el = windowObj.document.createElement('div');\n var _a = cssPropertyNameMap[cssProperty], standard = _a.standard, prefixed = _a.prefixed;\n var isStandard = standard in el.style;\n return isStandard ? standard : prefixed;\n }\n return cssProperty;\n}\nexport function getCorrectEventName(windowObj, eventType) {\n if (isWindow(windowObj) && eventType in jsEventTypeMap) {\n var el = windowObj.document.createElement('div');\n var _a = jsEventTypeMap[eventType], standard = _a.standard, prefixed = _a.prefixed, cssProperty = _a.cssProperty;\n var isStandard = cssProperty in el.style;\n return isStandard ? standard : prefixed;\n }\n return eventType;\n}\n//# sourceMappingURL=util.js.map",null,"/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nexport var cssClasses = {\n ANIM_CHECKED_INDETERMINATE: 'mdc-checkbox--anim-checked-indeterminate',\n ANIM_CHECKED_UNCHECKED: 'mdc-checkbox--anim-checked-unchecked',\n ANIM_INDETERMINATE_CHECKED: 'mdc-checkbox--anim-indeterminate-checked',\n ANIM_INDETERMINATE_UNCHECKED: 'mdc-checkbox--anim-indeterminate-unchecked',\n ANIM_UNCHECKED_CHECKED: 'mdc-checkbox--anim-unchecked-checked',\n ANIM_UNCHECKED_INDETERMINATE: 'mdc-checkbox--anim-unchecked-indeterminate',\n BACKGROUND: 'mdc-checkbox__background',\n CHECKED: 'mdc-checkbox--checked',\n CHECKMARK: 'mdc-checkbox__checkmark',\n CHECKMARK_PATH: 'mdc-checkbox__checkmark-path',\n DISABLED: 'mdc-checkbox--disabled',\n INDETERMINATE: 'mdc-checkbox--indeterminate',\n MIXEDMARK: 'mdc-checkbox__mixedmark',\n NATIVE_CONTROL: 'mdc-checkbox__native-control',\n ROOT: 'mdc-checkbox',\n SELECTED: 'mdc-checkbox--selected',\n UPGRADED: 'mdc-checkbox--upgraded',\n};\nexport var strings = {\n ARIA_CHECKED_ATTR: 'aria-checked',\n ARIA_CHECKED_INDETERMINATE_VALUE: 'mixed',\n DATA_INDETERMINATE_ATTR: 'data-indeterminate',\n NATIVE_CONTROL_SELECTOR: '.mdc-checkbox__native-control',\n TRANSITION_STATE_CHECKED: 'checked',\n TRANSITION_STATE_INDETERMINATE: 'indeterminate',\n TRANSITION_STATE_INIT: 'init',\n TRANSITION_STATE_UNCHECKED: 'unchecked',\n};\nexport var numbers = {\n ANIM_END_LATCH_MS: 250,\n};\n//# sourceMappingURL=constants.js.map",null,"/**\n * @license\n * Copyright 2016 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport { __assign, __extends } from \"tslib\";\nimport { MDCFoundation } from '@material/base/foundation';\nimport { cssClasses, numbers, strings } from './constants';\nvar MDCCheckboxFoundation = /** @class */ (function (_super) {\n __extends(MDCCheckboxFoundation, _super);\n function MDCCheckboxFoundation(adapter) {\n var _this = _super.call(this, __assign(__assign({}, MDCCheckboxFoundation.defaultAdapter), adapter)) || this;\n _this.currentCheckState = strings.TRANSITION_STATE_INIT;\n _this.currentAnimationClass = '';\n _this.animEndLatchTimer = 0;\n _this.enableAnimationEndHandler = false;\n return _this;\n }\n Object.defineProperty(MDCCheckboxFoundation, \"cssClasses\", {\n get: function () {\n return cssClasses;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCCheckboxFoundation, \"strings\", {\n get: function () {\n return strings;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCCheckboxFoundation, \"numbers\", {\n get: function () {\n return numbers;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCCheckboxFoundation, \"defaultAdapter\", {\n get: function () {\n return {\n addClass: function () { return undefined; },\n forceLayout: function () { return undefined; },\n hasNativeControl: function () { return false; },\n isAttachedToDOM: function () { return false; },\n isChecked: function () { return false; },\n isIndeterminate: function () { return false; },\n removeClass: function () { return undefined; },\n removeNativeControlAttr: function () { return undefined; },\n setNativeControlAttr: function () { return undefined; },\n setNativeControlDisabled: function () { return undefined; },\n };\n },\n enumerable: false,\n configurable: true\n });\n MDCCheckboxFoundation.prototype.init = function () {\n this.currentCheckState = this.determineCheckState();\n this.updateAriaChecked();\n this.adapter.addClass(cssClasses.UPGRADED);\n };\n MDCCheckboxFoundation.prototype.destroy = function () {\n clearTimeout(this.animEndLatchTimer);\n };\n MDCCheckboxFoundation.prototype.setDisabled = function (disabled) {\n this.adapter.setNativeControlDisabled(disabled);\n if (disabled) {\n this.adapter.addClass(cssClasses.DISABLED);\n }\n else {\n this.adapter.removeClass(cssClasses.DISABLED);\n }\n };\n /**\n * Handles the animationend event for the checkbox\n */\n MDCCheckboxFoundation.prototype.handleAnimationEnd = function () {\n var _this = this;\n if (!this.enableAnimationEndHandler) {\n return;\n }\n clearTimeout(this.animEndLatchTimer);\n this.animEndLatchTimer = setTimeout(function () {\n _this.adapter.removeClass(_this.currentAnimationClass);\n _this.enableAnimationEndHandler = false;\n }, numbers.ANIM_END_LATCH_MS);\n };\n /**\n * Handles the change event for the checkbox\n */\n MDCCheckboxFoundation.prototype.handleChange = function () {\n this.transitionCheckState();\n };\n MDCCheckboxFoundation.prototype.transitionCheckState = function () {\n if (!this.adapter.hasNativeControl()) {\n return;\n }\n var oldState = this.currentCheckState;\n var newState = this.determineCheckState();\n if (oldState === newState) {\n return;\n }\n this.updateAriaChecked();\n var TRANSITION_STATE_UNCHECKED = strings.TRANSITION_STATE_UNCHECKED;\n var SELECTED = cssClasses.SELECTED;\n if (newState === TRANSITION_STATE_UNCHECKED) {\n this.adapter.removeClass(SELECTED);\n }\n else {\n this.adapter.addClass(SELECTED);\n }\n // Check to ensure that there isn't a previously existing animation class, in case for example\n // the user interacted with the checkbox before the animation was finished.\n if (this.currentAnimationClass.length > 0) {\n clearTimeout(this.animEndLatchTimer);\n this.adapter.forceLayout();\n this.adapter.removeClass(this.currentAnimationClass);\n }\n this.currentAnimationClass =\n this.getTransitionAnimationClass(oldState, newState);\n this.currentCheckState = newState;\n // Check for parentNode so that animations are only run when the element is attached\n // to the DOM.\n if (this.adapter.isAttachedToDOM() &&\n this.currentAnimationClass.length > 0) {\n this.adapter.addClass(this.currentAnimationClass);\n this.enableAnimationEndHandler = true;\n }\n };\n MDCCheckboxFoundation.prototype.determineCheckState = function () {\n var TRANSITION_STATE_INDETERMINATE = strings.TRANSITION_STATE_INDETERMINATE, TRANSITION_STATE_CHECKED = strings.TRANSITION_STATE_CHECKED, TRANSITION_STATE_UNCHECKED = strings.TRANSITION_STATE_UNCHECKED;\n if (this.adapter.isIndeterminate()) {\n return TRANSITION_STATE_INDETERMINATE;\n }\n return this.adapter.isChecked() ? TRANSITION_STATE_CHECKED :\n TRANSITION_STATE_UNCHECKED;\n };\n MDCCheckboxFoundation.prototype.getTransitionAnimationClass = function (oldState, newState) {\n var TRANSITION_STATE_INIT = strings.TRANSITION_STATE_INIT, TRANSITION_STATE_CHECKED = strings.TRANSITION_STATE_CHECKED, TRANSITION_STATE_UNCHECKED = strings.TRANSITION_STATE_UNCHECKED;\n var _a = MDCCheckboxFoundation.cssClasses, ANIM_UNCHECKED_CHECKED = _a.ANIM_UNCHECKED_CHECKED, ANIM_UNCHECKED_INDETERMINATE = _a.ANIM_UNCHECKED_INDETERMINATE, ANIM_CHECKED_UNCHECKED = _a.ANIM_CHECKED_UNCHECKED, ANIM_CHECKED_INDETERMINATE = _a.ANIM_CHECKED_INDETERMINATE, ANIM_INDETERMINATE_CHECKED = _a.ANIM_INDETERMINATE_CHECKED, ANIM_INDETERMINATE_UNCHECKED = _a.ANIM_INDETERMINATE_UNCHECKED;\n switch (oldState) {\n case TRANSITION_STATE_INIT:\n if (newState === TRANSITION_STATE_UNCHECKED) {\n return '';\n }\n return newState === TRANSITION_STATE_CHECKED ? ANIM_INDETERMINATE_CHECKED : ANIM_INDETERMINATE_UNCHECKED;\n case TRANSITION_STATE_UNCHECKED:\n return newState === TRANSITION_STATE_CHECKED ? ANIM_UNCHECKED_CHECKED : ANIM_UNCHECKED_INDETERMINATE;\n case TRANSITION_STATE_CHECKED:\n return newState === TRANSITION_STATE_UNCHECKED ? ANIM_CHECKED_UNCHECKED : ANIM_CHECKED_INDETERMINATE;\n default: // TRANSITION_STATE_INDETERMINATE\n return newState === TRANSITION_STATE_CHECKED ? ANIM_INDETERMINATE_CHECKED : ANIM_INDETERMINATE_UNCHECKED;\n }\n };\n MDCCheckboxFoundation.prototype.updateAriaChecked = function () {\n // Ensure aria-checked is set to mixed if checkbox is in indeterminate state.\n if (this.adapter.isIndeterminate()) {\n this.adapter.setNativeControlAttr(strings.ARIA_CHECKED_ATTR, strings.ARIA_CHECKED_INDETERMINATE_VALUE);\n }\n else {\n // The on/off state does not need to keep track of aria-checked, since\n // the screenreader uses the checked property on the checkbox element.\n this.adapter.removeNativeControlAttr(strings.ARIA_CHECKED_ATTR);\n }\n };\n return MDCCheckboxFoundation;\n}(MDCFoundation));\nexport { MDCCheckboxFoundation };\n// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\nexport default MDCCheckboxFoundation;\n//# sourceMappingURL=foundation.js.map",null,"/**\n * @license\n * Copyright 2017 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport { __extends } from \"tslib\";\nimport { MDCComponent } from '@material/base/component';\nimport { MDCLinearProgressFoundation } from './foundation';\nvar MDCLinearProgress = /** @class */ (function (_super) {\n __extends(MDCLinearProgress, _super);\n function MDCLinearProgress() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n MDCLinearProgress.attachTo = function (root) {\n return new MDCLinearProgress(root);\n };\n Object.defineProperty(MDCLinearProgress.prototype, \"determinate\", {\n set: function (value) {\n this.foundation.setDeterminate(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCLinearProgress.prototype, \"progress\", {\n set: function (value) {\n this.foundation.setProgress(value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCLinearProgress.prototype, \"buffer\", {\n set: function (value) {\n this.foundation.setBuffer(value);\n },\n enumerable: false,\n configurable: true\n });\n MDCLinearProgress.prototype.open = function () {\n this.foundation.open();\n };\n MDCLinearProgress.prototype.close = function () {\n this.foundation.close();\n };\n MDCLinearProgress.prototype.initialSyncWithDOM = function () {\n var _this = this;\n this.root.addEventListener('transitionend', function () {\n _this.foundation.handleTransitionEnd();\n });\n };\n MDCLinearProgress.prototype.getDefaultFoundation = function () {\n var _this = this;\n // DO NOT INLINE this variable. For backward compatibility, foundations take\n // a Partial. To ensure we don't accidentally omit any\n // methods, we need a separate, strongly typed adapter variable.\n var adapter = {\n addClass: function (className) {\n _this.root.classList.add(className);\n },\n forceLayout: function () {\n _this.root.getBoundingClientRect();\n },\n setBufferBarStyle: function (styleProperty, value) {\n var bufferBar = _this.root.querySelector(MDCLinearProgressFoundation.strings.BUFFER_BAR_SELECTOR);\n if (bufferBar) {\n bufferBar.style.setProperty(styleProperty, value);\n }\n },\n setPrimaryBarStyle: function (styleProperty, value) {\n var primaryBar = _this.root.querySelector(MDCLinearProgressFoundation.strings.PRIMARY_BAR_SELECTOR);\n if (primaryBar) {\n primaryBar.style.setProperty(styleProperty, value);\n }\n },\n hasClass: function (className) { return _this.root.classList.contains(className); },\n removeAttribute: function (attributeName) {\n _this.root.removeAttribute(attributeName);\n },\n removeClass: function (className) {\n _this.root.classList.remove(className);\n },\n setAttribute: function (attributeName, value) {\n _this.root.setAttribute(attributeName, value);\n },\n setStyle: function (name, value) {\n _this.root.style.setProperty(name, value);\n },\n attachResizeObserver: function (callback) {\n var RO = window.ResizeObserver;\n if (RO) {\n var ro = new RO(callback);\n ro.observe(_this.root);\n return ro;\n }\n return null;\n },\n getWidth: function () { return _this.root.offsetWidth; },\n };\n return new MDCLinearProgressFoundation(adapter);\n };\n return MDCLinearProgress;\n}(MDCComponent));\nexport { MDCLinearProgress };\n//# sourceMappingURL=component.js.map",null,"/**\n * @license\n * Copyright 2017 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport { __assign, __extends, __values } from \"tslib\";\nimport { getCorrectPropertyName } from '@material/animation/util';\nimport { MDCFoundation } from '@material/base/foundation';\nimport { animationDimensionPercentages as percents, cssClasses, strings } from './constants';\nvar MDCLinearProgressFoundation = /** @class */ (function (_super) {\n __extends(MDCLinearProgressFoundation, _super);\n function MDCLinearProgressFoundation(adapter) {\n var _this = _super.call(this, __assign(__assign({}, MDCLinearProgressFoundation.defaultAdapter), adapter)) || this;\n _this.observer = null;\n return _this;\n }\n Object.defineProperty(MDCLinearProgressFoundation, \"cssClasses\", {\n get: function () {\n return cssClasses;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCLinearProgressFoundation, \"strings\", {\n get: function () {\n return strings;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MDCLinearProgressFoundation, \"defaultAdapter\", {\n get: function () {\n return {\n addClass: function () { return undefined; },\n attachResizeObserver: function () { return null; },\n forceLayout: function () { return undefined; },\n getWidth: function () { return 0; },\n hasClass: function () { return false; },\n setBufferBarStyle: function () { return null; },\n setPrimaryBarStyle: function () { return null; },\n setStyle: function () { return undefined; },\n removeAttribute: function () { return undefined; },\n removeClass: function () { return undefined; },\n setAttribute: function () { return undefined; },\n };\n },\n enumerable: false,\n configurable: true\n });\n MDCLinearProgressFoundation.prototype.init = function () {\n var _this = this;\n this.determinate = !this.adapter.hasClass(cssClasses.INDETERMINATE_CLASS);\n this.adapter.addClass(cssClasses.ANIMATION_READY_CLASS);\n this.progress = 0;\n this.buffer = 1;\n this.observer = this.adapter.attachResizeObserver(function (entries) {\n var e_1, _a;\n if (_this.determinate) {\n return;\n }\n try {\n for (var entries_1 = __values(entries), entries_1_1 = entries_1.next(); !entries_1_1.done; entries_1_1 = entries_1.next()) {\n var entry = entries_1_1.value;\n if (entry.contentRect) {\n _this.calculateAndSetDimensions(entry.contentRect.width);\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (entries_1_1 && !entries_1_1.done && (_a = entries_1.return)) _a.call(entries_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n });\n if (!this.determinate && this.observer) {\n this.calculateAndSetDimensions(this.adapter.getWidth());\n }\n };\n MDCLinearProgressFoundation.prototype.setDeterminate = function (isDeterminate) {\n this.determinate = isDeterminate;\n if (this.determinate) {\n this.adapter.removeClass(cssClasses.INDETERMINATE_CLASS);\n this.adapter.setAttribute(strings.ARIA_VALUENOW, this.progress.toString());\n this.adapter.setAttribute(strings.ARIA_VALUEMAX, '1');\n this.adapter.setAttribute(strings.ARIA_VALUEMIN, '0');\n this.setPrimaryBarProgress(this.progress);\n this.setBufferBarProgress(this.buffer);\n return;\n }\n if (this.observer) {\n this.calculateAndSetDimensions(this.adapter.getWidth());\n }\n this.adapter.addClass(cssClasses.INDETERMINATE_CLASS);\n this.adapter.removeAttribute(strings.ARIA_VALUENOW);\n this.adapter.removeAttribute(strings.ARIA_VALUEMAX);\n this.adapter.removeAttribute(strings.ARIA_VALUEMIN);\n this.setPrimaryBarProgress(1);\n this.setBufferBarProgress(1);\n };\n MDCLinearProgressFoundation.prototype.isDeterminate = function () {\n return this.determinate;\n };\n MDCLinearProgressFoundation.prototype.setProgress = function (value) {\n this.progress = value;\n if (this.determinate) {\n this.setPrimaryBarProgress(value);\n this.adapter.setAttribute(strings.ARIA_VALUENOW, value.toString());\n }\n };\n MDCLinearProgressFoundation.prototype.getProgress = function () {\n return this.progress;\n };\n MDCLinearProgressFoundation.prototype.setBuffer = function (value) {\n this.buffer = value;\n if (this.determinate) {\n this.setBufferBarProgress(value);\n }\n };\n MDCLinearProgressFoundation.prototype.getBuffer = function () {\n return this.buffer;\n };\n MDCLinearProgressFoundation.prototype.open = function () {\n this.adapter.removeClass(cssClasses.CLOSED_CLASS);\n this.adapter.removeClass(cssClasses.CLOSED_ANIMATION_OFF_CLASS);\n this.adapter.removeAttribute(strings.ARIA_HIDDEN);\n };\n MDCLinearProgressFoundation.prototype.close = function () {\n this.adapter.addClass(cssClasses.CLOSED_CLASS);\n this.adapter.setAttribute(strings.ARIA_HIDDEN, 'true');\n };\n MDCLinearProgressFoundation.prototype.isClosed = function () {\n return this.adapter.hasClass(cssClasses.CLOSED_CLASS);\n };\n /**\n * Handles the transitionend event emitted after `close()` is called and the\n * opacity fades out. This is so that animations are removed only after the\n * progress indicator is completely hidden.\n */\n MDCLinearProgressFoundation.prototype.handleTransitionEnd = function () {\n if (this.adapter.hasClass(cssClasses.CLOSED_CLASS)) {\n this.adapter.addClass(cssClasses.CLOSED_ANIMATION_OFF_CLASS);\n }\n };\n MDCLinearProgressFoundation.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n if (this.observer) {\n this.observer.disconnect();\n }\n };\n MDCLinearProgressFoundation.prototype.restartAnimation = function () {\n this.adapter.removeClass(cssClasses.ANIMATION_READY_CLASS);\n this.adapter.forceLayout();\n this.adapter.addClass(cssClasses.ANIMATION_READY_CLASS);\n };\n MDCLinearProgressFoundation.prototype.setPrimaryBarProgress = function (progressValue) {\n var value = \"scaleX(\" + progressValue + \")\";\n // Accessing `window` without a `typeof` check will throw on Node\n // environments.\n var transformProp = typeof window !== 'undefined' ?\n getCorrectPropertyName(window, 'transform') :\n 'transform';\n this.adapter.setPrimaryBarStyle(transformProp, value);\n };\n MDCLinearProgressFoundation.prototype.setBufferBarProgress = function (progressValue) {\n var value = progressValue * 100 + \"%\";\n this.adapter.setBufferBarStyle(strings.FLEX_BASIS, value);\n };\n MDCLinearProgressFoundation.prototype.calculateAndSetDimensions = function (width) {\n var primaryHalf = width * percents.PRIMARY_HALF;\n var primaryFull = width * percents.PRIMARY_FULL;\n var secondaryQuarter = width * percents.SECONDARY_QUARTER;\n var secondaryHalf = width * percents.SECONDARY_HALF;\n var secondaryFull = width * percents.SECONDARY_FULL;\n this.adapter.setStyle('--mdc-linear-progress-primary-half', primaryHalf + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-primary-half-neg', -primaryHalf + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-primary-full', primaryFull + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-primary-full-neg', -primaryFull + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-secondary-quarter', secondaryQuarter + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-secondary-quarter-neg', -secondaryQuarter + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-secondary-half', secondaryHalf + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-secondary-half-neg', -secondaryHalf + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-secondary-full', secondaryFull + \"px\");\n this.adapter.setStyle('--mdc-linear-progress-secondary-full-neg', -secondaryFull + \"px\");\n // need to restart animation for custom props to apply to keyframes\n this.restartAnimation();\n };\n return MDCLinearProgressFoundation;\n}(MDCFoundation));\nexport { MDCLinearProgressFoundation };\n// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\nexport default MDCLinearProgressFoundation;\n//# sourceMappingURL=foundation.js.map",null,"/**\n * @license\n * Copyright 2017 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nexport var cssClasses = {\n CLOSED_CLASS: 'mdc-linear-progress--closed',\n CLOSED_ANIMATION_OFF_CLASS: 'mdc-linear-progress--closed-animation-off',\n INDETERMINATE_CLASS: 'mdc-linear-progress--indeterminate',\n REVERSED_CLASS: 'mdc-linear-progress--reversed',\n ANIMATION_READY_CLASS: 'mdc-linear-progress--animation-ready',\n};\nexport var strings = {\n ARIA_HIDDEN: 'aria-hidden',\n ARIA_VALUEMAX: 'aria-valuemax',\n ARIA_VALUEMIN: 'aria-valuemin',\n ARIA_VALUENOW: 'aria-valuenow',\n BUFFER_BAR_SELECTOR: '.mdc-linear-progress__buffer-bar',\n FLEX_BASIS: 'flex-basis',\n PRIMARY_BAR_SELECTOR: '.mdc-linear-progress__primary-bar',\n};\n// these are percentages pulled from keyframes.scss\nexport var animationDimensionPercentages = {\n PRIMARY_HALF: .8367142,\n PRIMARY_FULL: 2.00611057,\n SECONDARY_QUARTER: .37651913,\n SECONDARY_HALF: .84386165,\n SECONDARY_FULL: 1.60277782,\n};\n//# sourceMappingURL=constants.js.map",null,"/**\n * @license\n * Copyright 2019 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n/**\n * CSS class names used in component.\n */\nexport var cssClasses = {\n CELL: 'mdc-data-table__cell',\n CELL_NUMERIC: 'mdc-data-table__cell--numeric',\n CONTENT: 'mdc-data-table__content',\n HEADER_CELL: 'mdc-data-table__header-cell',\n HEADER_CELL_LABEL: 'mdc-data-table__header-cell-label',\n HEADER_CELL_SORTED: 'mdc-data-table__header-cell--sorted',\n HEADER_CELL_SORTED_DESCENDING: 'mdc-data-table__header-cell--sorted-descending',\n HEADER_CELL_WITH_SORT: 'mdc-data-table__header-cell--with-sort',\n HEADER_CELL_WRAPPER: 'mdc-data-table__header-cell-wrapper',\n HEADER_ROW: 'mdc-data-table__header-row',\n HEADER_ROW_CHECKBOX: 'mdc-data-table__header-row-checkbox',\n IN_PROGRESS: 'mdc-data-table--in-progress',\n LINEAR_PROGRESS: 'mdc-data-table__linear-progress',\n PAGINATION_ROWS_PER_PAGE_LABEL: 'mdc-data-table__pagination-rows-per-page-label',\n PAGINATION_ROWS_PER_PAGE_SELECT: 'mdc-data-table__pagination-rows-per-page-select',\n PROGRESS_INDICATOR: 'mdc-data-table__progress-indicator',\n ROOT: 'mdc-data-table',\n ROW: 'mdc-data-table__row',\n ROW_CHECKBOX: 'mdc-data-table__row-checkbox',\n ROW_SELECTED: 'mdc-data-table__row--selected',\n SORT_ICON_BUTTON: 'mdc-data-table__sort-icon-button',\n SORT_STATUS_LABEL: 'mdc-data-table__sort-status-label',\n TABLE_CONTAINER: 'mdc-data-table__table-container',\n};\n/**\n * DOM attributes used in component.\n */\nexport var attributes = {\n ARIA_SELECTED: 'aria-selected',\n ARIA_SORT: 'aria-sort',\n};\n/**\n * List of data attributes used in component.\n */\nexport var dataAttributes = {\n COLUMN_ID: 'data-column-id',\n ROW_ID: 'data-row-id',\n};\n/**\n * CSS selectors used in component.\n */\nexport var selectors = {\n CONTENT: \".\" + cssClasses.CONTENT,\n HEADER_CELL: \".\" + cssClasses.HEADER_CELL,\n HEADER_CELL_WITH_SORT: \".\" + cssClasses.HEADER_CELL_WITH_SORT,\n HEADER_ROW: \".\" + cssClasses.HEADER_ROW,\n HEADER_ROW_CHECKBOX: \".\" + cssClasses.HEADER_ROW_CHECKBOX,\n PROGRESS_INDICATOR: \".\" + cssClasses.PROGRESS_INDICATOR,\n ROW: \".\" + cssClasses.ROW,\n ROW_CHECKBOX: \".\" + cssClasses.ROW_CHECKBOX,\n ROW_SELECTED: \".\" + cssClasses.ROW_SELECTED,\n SORT_ICON_BUTTON: \".\" + cssClasses.SORT_ICON_BUTTON,\n SORT_STATUS_LABEL: \".\" + cssClasses.SORT_STATUS_LABEL,\n};\n/**\n * Messages used in component.\n */\nexport var messages = {\n SORTED_IN_DESCENDING: 'Sorted in descending order',\n SORTED_IN_ASCENDING: 'Sorted in ascending order',\n};\n/**\n * Attributes and selectors used in component.\n * @deprecated Use `attributes`, `dataAttributes` and `selectors` instead.\n */\nexport var strings = {\n ARIA_SELECTED: attributes.ARIA_SELECTED,\n ARIA_SORT: attributes.ARIA_SORT,\n DATA_ROW_ID_ATTR: dataAttributes.ROW_ID,\n HEADER_ROW_CHECKBOX_SELECTOR: selectors.HEADER_ROW_CHECKBOX,\n ROW_CHECKBOX_SELECTOR: selectors.ROW_CHECKBOX,\n ROW_SELECTED_SELECTOR: selectors.ROW_SELECTED,\n ROW_SELECTOR: selectors.ROW,\n};\n/**\n * Sort values defined by ARIA.\n * See https://www.w3.org/WAI/PF/aria/states_and_properties#aria-sort\n */\nexport var SortValue;\n(function (SortValue) {\n // Items are sorted in ascending order by this column.\n SortValue[\"ASCENDING\"] = \"ascending\";\n // Items are sorted in descending order by this column.\n SortValue[\"DESCENDING\"] = \"descending\";\n // There is no defined sort applied to the column.\n SortValue[\"NONE\"] = \"none\";\n // A sort algorithm other than ascending or descending has been applied.\n SortValue[\"OTHER\"] = \"other\";\n})(SortValue || (SortValue = {}));\n/**\n * Event names used in component.\n */\nexport var events = {\n ROW_CLICK: 'MDCDataTable:rowClick',\n ROW_SELECTION_CHANGED: 'MDCDataTable:rowSelectionChanged',\n SELECTED_ALL: 'MDCDataTable:selectedAll',\n SORTED: 'MDCDataTable:sorted',\n UNSELECTED_ALL: 'MDCDataTable:unselectedAll',\n};\n//# sourceMappingURL=constants.js.map",null,"/**\n * @license\n * Copyright 2019 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport { __assign, __awaiter, __extends, __generator } from \"tslib\";\nimport { MDCFoundation } from '@material/base/foundation';\nimport { cssClasses, SortValue, strings } from './constants';\n/**\n * The Foundation of data table component containing pure business logic, any\n * logic requiring DOM manipulation are delegated to adapter methods.\n */\nvar MDCDataTableFoundation = /** @class */ (function (_super) {\n __extends(MDCDataTableFoundation, _super);\n function MDCDataTableFoundation(adapter) {\n return _super.call(this, __assign(__assign({}, MDCDataTableFoundation.defaultAdapter), adapter)) || this;\n }\n Object.defineProperty(MDCDataTableFoundation, \"defaultAdapter\", {\n get: function () {\n return {\n addClass: function () { return undefined; },\n addClassAtRowIndex: function () { return undefined; },\n getAttributeByHeaderCellIndex: function () { return ''; },\n getHeaderCellCount: function () { return 0; },\n getHeaderCellElements: function () { return []; },\n getRowCount: function () { return 0; },\n getRowElements: function () { return []; },\n getRowIdAtIndex: function () { return ''; },\n getRowIndexByChildElement: function () { return 0; },\n getSelectedRowCount: function () { return 0; },\n getTableContainerHeight: function () { return 0; },\n getTableHeaderHeight: function () { return 0; },\n isCheckboxAtRowIndexChecked: function () { return false; },\n isHeaderRowCheckboxChecked: function () { return false; },\n isRowsSelectable: function () { return false; },\n notifyRowSelectionChanged: function () { return undefined; },\n notifySelectedAll: function () { return undefined; },\n notifySortAction: function () { return undefined; },\n notifyUnselectedAll: function () { return undefined; },\n notifyRowClick: function () { return undefined; },\n registerHeaderRowCheckbox: function () { return undefined; },\n registerRowCheckboxes: function () { return undefined; },\n removeClass: function () { return undefined; },\n removeClassAtRowIndex: function () { return undefined; },\n removeClassNameByHeaderCellIndex: function () { return undefined; },\n setAttributeAtRowIndex: function () { return undefined; },\n setAttributeByHeaderCellIndex: function () { return undefined; },\n setClassNameByHeaderCellIndex: function () { return undefined; },\n setHeaderRowCheckboxChecked: function () { return undefined; },\n setHeaderRowCheckboxIndeterminate: function () { return undefined; },\n setProgressIndicatorStyles: function () { return undefined; },\n setRowCheckboxCheckedAtIndex: function () { return undefined; },\n setSortStatusLabelByHeaderCellIndex: function () { return undefined; },\n };\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Re-initializes header row checkbox and row checkboxes when selectable rows\n * are added or removed from table. Use this if registering checkbox is\n * synchronous.\n */\n MDCDataTableFoundation.prototype.layout = function () {\n if (this.adapter.isRowsSelectable()) {\n this.adapter.registerHeaderRowCheckbox();\n this.adapter.registerRowCheckboxes();\n this.setHeaderRowCheckboxState();\n }\n };\n /**\n * Re-initializes header row checkbox and row checkboxes when selectable rows\n * are added or removed from table. Use this if registering checkbox is\n * asynchronous.\n */\n MDCDataTableFoundation.prototype.layoutAsync = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!this.adapter.isRowsSelectable()) return [3 /*break*/, 3];\n return [4 /*yield*/, this.adapter.registerHeaderRowCheckbox()];\n case 1:\n _a.sent();\n return [4 /*yield*/, this.adapter.registerRowCheckboxes()];\n case 2:\n _a.sent();\n this.setHeaderRowCheckboxState();\n _a.label = 3;\n case 3: return [2 /*return*/];\n }\n });\n });\n };\n /**\n * @return Returns array of row elements.\n */\n MDCDataTableFoundation.prototype.getRows = function () {\n return this.adapter.getRowElements();\n };\n /**\n * @return Array of header cell elements.\n */\n MDCDataTableFoundation.prototype.getHeaderCells = function () {\n return this.adapter.getHeaderCellElements();\n };\n /**\n * Sets selected row ids. Overwrites previously selected rows.\n * @param rowIds Array of row ids that needs to be selected.\n */\n MDCDataTableFoundation.prototype.setSelectedRowIds = function (rowIds) {\n for (var rowIndex = 0; rowIndex < this.adapter.getRowCount(); rowIndex++) {\n var rowId = this.adapter.getRowIdAtIndex(rowIndex);\n var isSelected = false;\n if (rowId && rowIds.indexOf(rowId) >= 0) {\n isSelected = true;\n }\n this.adapter.setRowCheckboxCheckedAtIndex(rowIndex, isSelected);\n this.selectRowAtIndex(rowIndex, isSelected);\n }\n this.setHeaderRowCheckboxState();\n };\n /**\n * @return Returns array of all row ids.\n */\n MDCDataTableFoundation.prototype.getRowIds = function () {\n var rowIds = [];\n for (var rowIndex = 0; rowIndex < this.adapter.getRowCount(); rowIndex++) {\n rowIds.push(this.adapter.getRowIdAtIndex(rowIndex));\n }\n return rowIds;\n };\n /**\n * @return Returns array of selected row ids.\n */\n MDCDataTableFoundation.prototype.getSelectedRowIds = function () {\n var selectedRowIds = [];\n for (var rowIndex = 0; rowIndex < this.adapter.getRowCount(); rowIndex++) {\n if (this.adapter.isCheckboxAtRowIndexChecked(rowIndex)) {\n selectedRowIds.push(this.adapter.getRowIdAtIndex(rowIndex));\n }\n }\n return selectedRowIds;\n };\n /**\n * Handles header row checkbox change event.\n */\n MDCDataTableFoundation.prototype.handleHeaderRowCheckboxChange = function () {\n var isHeaderChecked = this.adapter.isHeaderRowCheckboxChecked();\n for (var rowIndex = 0; rowIndex < this.adapter.getRowCount(); rowIndex++) {\n this.adapter.setRowCheckboxCheckedAtIndex(rowIndex, isHeaderChecked);\n this.selectRowAtIndex(rowIndex, isHeaderChecked);\n }\n if (isHeaderChecked) {\n this.adapter.notifySelectedAll();\n }\n else {\n this.adapter.notifyUnselectedAll();\n }\n };\n /**\n * Handles change event originated from row checkboxes.\n */\n MDCDataTableFoundation.prototype.handleRowCheckboxChange = function (event) {\n var rowIndex = this.adapter.getRowIndexByChildElement(event.target);\n if (rowIndex === -1) {\n return;\n }\n var selected = this.adapter.isCheckboxAtRowIndexChecked(rowIndex);\n this.selectRowAtIndex(rowIndex, selected);\n this.setHeaderRowCheckboxState();\n var rowId = this.adapter.getRowIdAtIndex(rowIndex);\n this.adapter.notifyRowSelectionChanged({ rowId: rowId, rowIndex: rowIndex, selected: selected });\n };\n /**\n * Handles sort action on sortable header cell.\n */\n MDCDataTableFoundation.prototype.handleSortAction = function (eventData) {\n var columnId = eventData.columnId, columnIndex = eventData.columnIndex, headerCell = eventData.headerCell;\n // Reset sort attributes / classes on other header cells.\n for (var index = 0; index < this.adapter.getHeaderCellCount(); index++) {\n if (index === columnIndex) {\n continue;\n }\n this.adapter.removeClassNameByHeaderCellIndex(index, cssClasses.HEADER_CELL_SORTED);\n this.adapter.removeClassNameByHeaderCellIndex(index, cssClasses.HEADER_CELL_SORTED_DESCENDING);\n this.adapter.setAttributeByHeaderCellIndex(index, strings.ARIA_SORT, SortValue.NONE);\n this.adapter.setSortStatusLabelByHeaderCellIndex(index, SortValue.NONE);\n }\n // Set appropriate sort attributes / classes on target header cell.\n this.adapter.setClassNameByHeaderCellIndex(columnIndex, cssClasses.HEADER_CELL_SORTED);\n var currentSortValue = this.adapter.getAttributeByHeaderCellIndex(columnIndex, strings.ARIA_SORT);\n var sortValue = SortValue.NONE;\n // Set to descending if sorted on ascending order.\n if (currentSortValue === SortValue.ASCENDING) {\n this.adapter.setClassNameByHeaderCellIndex(columnIndex, cssClasses.HEADER_CELL_SORTED_DESCENDING);\n this.adapter.setAttributeByHeaderCellIndex(columnIndex, strings.ARIA_SORT, SortValue.DESCENDING);\n sortValue = SortValue.DESCENDING;\n // Set to ascending if sorted on descending order.\n }\n else if (currentSortValue === SortValue.DESCENDING) {\n this.adapter.removeClassNameByHeaderCellIndex(columnIndex, cssClasses.HEADER_CELL_SORTED_DESCENDING);\n this.adapter.setAttributeByHeaderCellIndex(columnIndex, strings.ARIA_SORT, SortValue.ASCENDING);\n sortValue = SortValue.ASCENDING;\n }\n else {\n // Set to ascending by default when not sorted.\n this.adapter.setAttributeByHeaderCellIndex(columnIndex, strings.ARIA_SORT, SortValue.ASCENDING);\n sortValue = SortValue.ASCENDING;\n }\n this.adapter.setSortStatusLabelByHeaderCellIndex(columnIndex, sortValue);\n this.adapter.notifySortAction({\n columnId: columnId,\n columnIndex: columnIndex,\n headerCell: headerCell,\n sortValue: sortValue,\n });\n };\n /**\n * Handles data table row click event.\n */\n MDCDataTableFoundation.prototype.handleRowClick = function (_a) {\n var rowId = _a.rowId, row = _a.row;\n this.adapter.notifyRowClick({\n rowId: rowId,\n row: row,\n });\n };\n /**\n * Shows progress indicator blocking only the table body content when in\n * loading state.\n */\n MDCDataTableFoundation.prototype.showProgress = function () {\n var tableHeaderHeight = this.adapter.getTableHeaderHeight();\n // Calculate the height of table content (Not scroll content) excluding\n // header row height.\n var height = this.adapter.getTableContainerHeight() - tableHeaderHeight;\n var top = tableHeaderHeight;\n this.adapter.setProgressIndicatorStyles({\n height: height + \"px\",\n top: top + \"px\",\n });\n this.adapter.addClass(cssClasses.IN_PROGRESS);\n };\n /**\n * Hides progress indicator when data table is finished loading.\n */\n MDCDataTableFoundation.prototype.hideProgress = function () {\n this.adapter.removeClass(cssClasses.IN_PROGRESS);\n };\n /**\n * Updates header row checkbox state based on number of rows selected.\n */\n MDCDataTableFoundation.prototype.setHeaderRowCheckboxState = function () {\n if (this.adapter.getSelectedRowCount() === 0) {\n this.adapter.setHeaderRowCheckboxChecked(false);\n this.adapter.setHeaderRowCheckboxIndeterminate(false);\n }\n else if (this.adapter.getSelectedRowCount() === this.adapter.getRowCount()) {\n this.adapter.setHeaderRowCheckboxChecked(true);\n this.adapter.setHeaderRowCheckboxIndeterminate(false);\n }\n else {\n this.adapter.setHeaderRowCheckboxIndeterminate(true);\n this.adapter.setHeaderRowCheckboxChecked(false);\n }\n };\n /**\n * Sets the attributes of row element based on selection state.\n */\n MDCDataTableFoundation.prototype.selectRowAtIndex = function (rowIndex, selected) {\n if (selected) {\n this.adapter.addClassAtRowIndex(rowIndex, cssClasses.ROW_SELECTED);\n this.adapter.setAttributeAtRowIndex(rowIndex, strings.ARIA_SELECTED, 'true');\n }\n else {\n this.adapter.removeClassAtRowIndex(rowIndex, cssClasses.ROW_SELECTED);\n this.adapter.setAttributeAtRowIndex(rowIndex, strings.ARIA_SELECTED, 'false');\n }\n };\n return MDCDataTableFoundation;\n}(MDCFoundation));\nexport { MDCDataTableFoundation };\n//# sourceMappingURL=foundation.js.map",null,"/**\n * @license\n * Copyright 2020 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport { __extends } from \"tslib\";\nimport { MDCComponent } from '@material/base/component';\nimport { CssClasses, events } from './constants';\nimport { MDCTooltipFoundation } from './foundation';\nvar MDCTooltip = /** @class */ (function (_super) {\n __extends(MDCTooltip, _super);\n function MDCTooltip() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n MDCTooltip.attachTo = function (root) {\n return new MDCTooltip(root);\n };\n MDCTooltip.prototype.initialize = function () {\n var tooltipId = this.root.getAttribute('id');\n if (!tooltipId) {\n throw new Error('MDCTooltip: Tooltip component must have an id.');\n }\n var anchorElem = document.querySelector(\"[data-tooltip-id=\\\"\" + tooltipId + \"\\\"]\") ||\n document.querySelector(\"[aria-describedby=\\\"\" + tooltipId + \"\\\"]\");\n if (!anchorElem) {\n throw new Error('MDCTooltip: Tooltip component requires an anchor element annotated with [aria-describedby] or [data-tooltip-id].');\n }\n this.anchorElem = anchorElem;\n };\n MDCTooltip.prototype.initialSyncWithDOM = function () {\n var _this = this;\n this.isTooltipRich = this.foundation.isRich();\n this.isTooltipPersistent = this.foundation.isPersistent();\n this.handleMouseEnter = function () {\n _this.foundation.handleAnchorMouseEnter();\n };\n this.handleFocus = function (evt) {\n _this.foundation.handleAnchorFocus(evt);\n };\n this.handleMouseLeave = function () {\n _this.foundation.handleAnchorMouseLeave();\n };\n this.handleTransitionEnd = function () {\n _this.foundation.handleTransitionEnd();\n };\n this.handleClick = function () {\n _this.foundation.handleAnchorClick();\n };\n this.handleTouchstart = function () {\n _this.foundation.handleAnchorTouchstart();\n };\n this.handleTouchend = function () {\n _this.foundation.handleAnchorTouchend();\n };\n if (this.isTooltipRich && this.isTooltipPersistent) {\n this.anchorElem.addEventListener('click', this.handleClick);\n }\n else {\n this.anchorElem.addEventListener('mouseenter', this.handleMouseEnter);\n // TODO(b/157075286): Listening for a 'focus' event is too broad.\n this.anchorElem.addEventListener('focus', this.handleFocus);\n this.anchorElem.addEventListener('mouseleave', this.handleMouseLeave);\n this.anchorElem.addEventListener('touchstart', this.handleTouchstart);\n this.anchorElem.addEventListener('touchend', this.handleTouchend);\n }\n this.listen('transitionend', this.handleTransitionEnd);\n };\n MDCTooltip.prototype.destroy = function () {\n if (this.anchorElem) {\n if (this.isTooltipRich && this.isTooltipPersistent) {\n this.anchorElem.removeEventListener('click', this.handleClick);\n }\n else {\n this.anchorElem.removeEventListener('mouseenter', this.handleMouseEnter);\n this.anchorElem.removeEventListener('focus', this.handleFocus);\n this.anchorElem.removeEventListener('mouseleave', this.handleMouseLeave);\n this.anchorElem.removeEventListener('touchstart', this.handleTouchstart);\n this.anchorElem.removeEventListener('touchend', this.handleTouchend);\n }\n }\n this.unlisten('transitionend', this.handleTransitionEnd);\n _super.prototype.destroy.call(this);\n };\n MDCTooltip.prototype.setTooltipPosition = function (position) {\n this.foundation.setTooltipPosition(position);\n };\n MDCTooltip.prototype.setAnchorBoundaryType = function (type) {\n this.foundation.setAnchorBoundaryType(type);\n };\n MDCTooltip.prototype.setShowDelay = function (delayMs) {\n this.foundation.setShowDelay(delayMs);\n };\n MDCTooltip.prototype.setHideDelay = function (delayMs) {\n this.foundation.setHideDelay(delayMs);\n };\n MDCTooltip.prototype.hide = function () {\n this.foundation.hide();\n };\n MDCTooltip.prototype.isShown = function () {\n return this.foundation.isShown();\n };\n /**\n * Method that allows user to specify additional elements that should have a\n * scroll event listener attached to it. This should be used in instances\n * where the anchor element is placed inside a scrollable container (that is\n * not the body element), and will ensure that the tooltip will stay attached\n * to the anchor on scroll.\n */\n MDCTooltip.prototype.attachScrollHandler = function (addEventListenerFn) {\n this.foundation.attachScrollHandler(addEventListenerFn);\n };\n /**\n * Must be used in conjunction with #attachScrollHandler. Removes the scroll\n * event handler from elements on the page.\n */\n MDCTooltip.prototype.removeScrollHandler = function (removeEventHandlerFn) {\n this.foundation.removeScrollHandler(removeEventHandlerFn);\n };\n MDCTooltip.prototype.getDefaultFoundation = function () {\n var _this = this;\n var adapter = {\n getAttribute: function (attr) { return _this.root.getAttribute(attr); },\n setAttribute: function (attr, value) {\n _this.root.setAttribute(attr, value);\n },\n removeAttribute: function (attr) {\n _this.root.removeAttribute(attr);\n },\n addClass: function (className) {\n _this.root.classList.add(className);\n },\n hasClass: function (className) { return _this.root.classList.contains(className); },\n removeClass: function (className) {\n _this.root.classList.remove(className);\n },\n getComputedStyleProperty: function (propertyName) {\n return window.getComputedStyle(_this.root).getPropertyValue(propertyName);\n },\n setStyleProperty: function (propertyName, value) {\n _this.root.style.setProperty(propertyName, value);\n },\n setSurfaceAnimationStyleProperty: function (propertyName, value) {\n var surface = _this.root.querySelector(\".\" + CssClasses.SURFACE_ANIMATION);\n surface === null || surface === void 0 ? void 0 : surface.style.setProperty(propertyName, value);\n },\n getViewportWidth: function () { return window.innerWidth; },\n getViewportHeight: function () { return window.innerHeight; },\n getTooltipSize: function () {\n return {\n width: _this.root.offsetWidth,\n height: _this.root.offsetHeight\n };\n },\n getAnchorBoundingRect: function () {\n return _this.anchorElem ? _this.anchorElem.getBoundingClientRect() : null;\n },\n getParentBoundingRect: function () {\n var _a, _b;\n return (_b = (_a = _this.root.parentElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) !== null && _b !== void 0 ? _b : null;\n },\n getAnchorAttribute: function (attr) {\n return _this.anchorElem ? _this.anchorElem.getAttribute(attr) : null;\n },\n setAnchorAttribute: function (attr, value) {\n var _a;\n (_a = _this.anchorElem) === null || _a === void 0 ? void 0 : _a.setAttribute(attr, value);\n },\n isRTL: function () { return getComputedStyle(_this.root).direction === 'rtl'; },\n anchorContainsElement: function (element) {\n var _a;\n return !!((_a = _this.anchorElem) === null || _a === void 0 ? void 0 : _a.contains(element));\n },\n tooltipContainsElement: function (element) {\n return _this.root.contains(element);\n },\n focusAnchorElement: function () {\n var _a;\n (_a = _this.anchorElem) === null || _a === void 0 ? void 0 : _a.focus();\n },\n registerEventHandler: function (evt, handler) {\n if (_this.root instanceof HTMLElement) {\n _this.root.addEventListener(evt, handler);\n }\n },\n deregisterEventHandler: function (evt, handler) {\n if (_this.root instanceof HTMLElement) {\n _this.root.removeEventListener(evt, handler);\n }\n },\n registerAnchorEventHandler: function (evt, handler) {\n var _a;\n (_a = _this.anchorElem) === null || _a === void 0 ? void 0 : _a.addEventListener(evt, handler);\n },\n deregisterAnchorEventHandler: function (evt, handler) {\n var _a;\n (_a = _this.anchorElem) === null || _a === void 0 ? void 0 : _a.removeEventListener(evt, handler);\n },\n registerDocumentEventHandler: function (evt, handler) {\n document.body.addEventListener(evt, handler);\n },\n deregisterDocumentEventHandler: function (evt, handler) {\n document.body.removeEventListener(evt, handler);\n },\n registerWindowEventHandler: function (evt, handler) {\n window.addEventListener(evt, handler);\n },\n deregisterWindowEventHandler: function (evt, handler) {\n window.removeEventListener(evt, handler);\n },\n notifyHidden: function () {\n _this.emit(events.HIDDEN, {});\n },\n getTooltipCaretBoundingRect: function () {\n var caret = _this.root.querySelector(\".\" + CssClasses.TOOLTIP_CARET_TOP);\n if (!caret) {\n return null;\n }\n return caret.getBoundingClientRect();\n },\n setTooltipCaretStyle: function (propertyName, value) {\n var topCaret = _this.root.querySelector(\".\" + CssClasses.TOOLTIP_CARET_TOP);\n var bottomCaret = _this.root.querySelector(\".\" + CssClasses.TOOLTIP_CARET_BOTTOM);\n if (!topCaret || !bottomCaret) {\n return;\n }\n topCaret.style.setProperty(propertyName, value);\n bottomCaret.style.setProperty(propertyName, value);\n },\n clearTooltipCaretStyles: function () {\n var topCaret = _this.root.querySelector(\".\" + CssClasses.TOOLTIP_CARET_TOP);\n var bottomCaret = _this.root.querySelector(\".\" + CssClasses.TOOLTIP_CARET_BOTTOM);\n if (!topCaret || !bottomCaret) {\n return;\n }\n topCaret.removeAttribute('style');\n bottomCaret.removeAttribute('style');\n },\n getActiveElement: function () {\n return document.activeElement;\n },\n };\n //tslint:enable:object-literal-sort-keys\n return new MDCTooltipFoundation(adapter);\n };\n return MDCTooltip;\n}(MDCComponent));\nexport { MDCTooltip };\n//# sourceMappingURL=component.js.map",null,"/**\n * @license\n * Copyright 2020 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nvar CssClasses;\n(function (CssClasses) {\n CssClasses[\"RICH\"] = \"mdc-tooltip--rich\";\n CssClasses[\"SHOWN\"] = \"mdc-tooltip--shown\";\n CssClasses[\"SHOWING\"] = \"mdc-tooltip--showing\";\n CssClasses[\"SHOWING_TRANSITION\"] = \"mdc-tooltip--showing-transition\";\n CssClasses[\"HIDE\"] = \"mdc-tooltip--hide\";\n CssClasses[\"HIDE_TRANSITION\"] = \"mdc-tooltip--hide-transition\";\n CssClasses[\"MULTILINE_TOOLTIP\"] = \"mdc-tooltip--multiline\";\n CssClasses[\"SURFACE\"] = \"mdc-tooltip__surface\";\n CssClasses[\"SURFACE_ANIMATION\"] = \"mdc-tooltip__surface-animation\";\n CssClasses[\"TOOLTIP_CARET_TOP\"] = \"mdc-tooltip__caret-surface-top\";\n CssClasses[\"TOOLTIP_CARET_BOTTOM\"] = \"mdc-tooltip__caret-surface-bottom\";\n})(CssClasses || (CssClasses = {}));\nvar numbers = {\n BOUNDED_ANCHOR_GAP: 4,\n UNBOUNDED_ANCHOR_GAP: 8,\n MIN_VIEWPORT_TOOLTIP_THRESHOLD: 8,\n HIDE_DELAY_MS: 600,\n SHOW_DELAY_MS: 500,\n // LINT.IfChange(tooltip-dimensions)\n MIN_HEIGHT: 24,\n MAX_WIDTH: 200,\n // LINT.ThenChange(_tooltip.scss:tooltip-dimensions)\n CARET_INDENTATION: 24,\n // LINT.IfChange(tooltip-anim-scale)\n ANIMATION_SCALE: 0.8,\n // LINT.ThenChange(_tooltip.scss:tooltip-anim-scale)\n};\nvar attributes = {\n ARIA_EXPANDED: 'aria-expanded',\n ARIA_HASPOPUP: 'aria-haspopup',\n PERSISTENT: 'data-mdc-tooltip-persistent',\n SCROLLABLE_ANCESTOR: 'tooltip-scrollable-ancestor',\n HAS_CARET: 'data-mdc-tooltip-has-caret',\n};\nvar events = {\n HIDDEN: 'MDCTooltip:hidden',\n};\n/** Enum for possible tooltip positioning relative to its anchor element. */\nvar XPosition;\n(function (XPosition) {\n XPosition[XPosition[\"DETECTED\"] = 0] = \"DETECTED\";\n XPosition[XPosition[\"START\"] = 1] = \"START\";\n // Note: CENTER is not valid for rich tooltips.\n XPosition[XPosition[\"CENTER\"] = 2] = \"CENTER\";\n XPosition[XPosition[\"END\"] = 3] = \"END\";\n})(XPosition || (XPosition = {}));\nvar YPosition;\n(function (YPosition) {\n YPosition[YPosition[\"DETECTED\"] = 0] = \"DETECTED\";\n YPosition[YPosition[\"ABOVE\"] = 1] = \"ABOVE\";\n YPosition[YPosition[\"BELOW\"] = 2] = \"BELOW\";\n})(YPosition || (YPosition = {}));\n/**\n * Enum for possible anchor boundary types. This determines the gap between the\n * bottom of the anchor and the tooltip element.\n * Bounded anchors have an identifiable boundary (e.g. buttons).\n * Unbounded anchors don't have a visually declared boundary (e.g. plain text).\n */\nvar AnchorBoundaryType;\n(function (AnchorBoundaryType) {\n AnchorBoundaryType[AnchorBoundaryType[\"BOUNDED\"] = 0] = \"BOUNDED\";\n AnchorBoundaryType[AnchorBoundaryType[\"UNBOUNDED\"] = 1] = \"UNBOUNDED\";\n})(AnchorBoundaryType || (AnchorBoundaryType = {}));\nvar strings = {\n LEFT: 'left',\n RIGHT: 'right',\n CENTER: 'center',\n TOP: 'top',\n BOTTOM: 'bottom'\n};\n/**\n * Enum for possible positions of a tooltip with caret (this specifies the\n * positioning of the tooltip relative to the anchor -- the position of the\n * caret will follow that of the tooltip). This can NOT be combined with the\n * above X/YPosition options. Naming for the enums follows: (vertical\n * placement)_(horizontal placement).\n */\nvar PositionWithCaret;\n(function (PositionWithCaret) {\n PositionWithCaret[PositionWithCaret[\"DETECTED\"] = 0] = \"DETECTED\";\n PositionWithCaret[PositionWithCaret[\"ABOVE_START\"] = 1] = \"ABOVE_START\";\n PositionWithCaret[PositionWithCaret[\"ABOVE_CENTER\"] = 2] = \"ABOVE_CENTER\";\n PositionWithCaret[PositionWithCaret[\"ABOVE_END\"] = 3] = \"ABOVE_END\";\n PositionWithCaret[PositionWithCaret[\"TOP_SIDE_START\"] = 4] = \"TOP_SIDE_START\";\n PositionWithCaret[PositionWithCaret[\"CENTER_SIDE_START\"] = 5] = \"CENTER_SIDE_START\";\n PositionWithCaret[PositionWithCaret[\"BOTTOM_SIDE_START\"] = 6] = \"BOTTOM_SIDE_START\";\n PositionWithCaret[PositionWithCaret[\"TOP_SIDE_END\"] = 7] = \"TOP_SIDE_END\";\n PositionWithCaret[PositionWithCaret[\"CENTER_SIDE_END\"] = 8] = \"CENTER_SIDE_END\";\n PositionWithCaret[PositionWithCaret[\"BOTTOM_SIDE_END\"] = 9] = \"BOTTOM_SIDE_END\";\n PositionWithCaret[PositionWithCaret[\"BELOW_START\"] = 10] = \"BELOW_START\";\n PositionWithCaret[PositionWithCaret[\"BELOW_CENTER\"] = 11] = \"BELOW_CENTER\";\n PositionWithCaret[PositionWithCaret[\"BELOW_END\"] = 12] = \"BELOW_END\";\n})(PositionWithCaret || (PositionWithCaret = {}));\nvar YPositionWithCaret;\n(function (YPositionWithCaret) {\n YPositionWithCaret[YPositionWithCaret[\"ABOVE\"] = 1] = \"ABOVE\";\n YPositionWithCaret[YPositionWithCaret[\"BELOW\"] = 2] = \"BELOW\";\n YPositionWithCaret[YPositionWithCaret[\"SIDE_TOP\"] = 3] = \"SIDE_TOP\";\n YPositionWithCaret[YPositionWithCaret[\"SIDE_CENTER\"] = 4] = \"SIDE_CENTER\";\n YPositionWithCaret[YPositionWithCaret[\"SIDE_BOTTOM\"] = 5] = \"SIDE_BOTTOM\";\n})(YPositionWithCaret || (YPositionWithCaret = {}));\nvar XPositionWithCaret;\n(function (XPositionWithCaret) {\n XPositionWithCaret[XPositionWithCaret[\"START\"] = 1] = \"START\";\n XPositionWithCaret[XPositionWithCaret[\"CENTER\"] = 2] = \"CENTER\";\n XPositionWithCaret[XPositionWithCaret[\"END\"] = 3] = \"END\";\n XPositionWithCaret[XPositionWithCaret[\"SIDE_START\"] = 4] = \"SIDE_START\";\n XPositionWithCaret[XPositionWithCaret[\"SIDE_END\"] = 5] = \"SIDE_END\";\n})(XPositionWithCaret || (XPositionWithCaret = {}));\nexport { CssClasses, numbers, attributes, events, XPosition, AnchorBoundaryType, YPosition, strings, PositionWithCaret, YPositionWithCaret, XPositionWithCaret };\n//# sourceMappingURL=constants.js.map",null,"/**\n * @license\n * Copyright 2020 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport { __assign, __extends, __values } from \"tslib\";\nimport { AnimationFrame } from '@material/animation/animationframe';\nimport { getCorrectPropertyName } from '@material/animation/util';\nimport { MDCFoundation } from '@material/base/foundation';\nimport { KEY, normalizeKey } from '@material/dom/keyboard';\nimport { AnchorBoundaryType, attributes, CssClasses, numbers, PositionWithCaret, strings, XPosition, XPositionWithCaret, YPosition, YPositionWithCaret } from './constants';\nvar RICH = CssClasses.RICH, SHOWN = CssClasses.SHOWN, SHOWING = CssClasses.SHOWING, SHOWING_TRANSITION = CssClasses.SHOWING_TRANSITION, HIDE = CssClasses.HIDE, HIDE_TRANSITION = CssClasses.HIDE_TRANSITION, MULTILINE_TOOLTIP = CssClasses.MULTILINE_TOOLTIP;\nvar AnimationKeys;\n(function (AnimationKeys) {\n AnimationKeys[\"POLL_ANCHOR\"] = \"poll_anchor\";\n})(AnimationKeys || (AnimationKeys = {}));\n// Accessing `window` without a `typeof` check will throw on Node environments.\nvar HAS_WINDOW = typeof window !== 'undefined';\nvar MDCTooltipFoundation = /** @class */ (function (_super) {\n __extends(MDCTooltipFoundation, _super);\n function MDCTooltipFoundation(adapter) {\n var _this = _super.call(this, __assign(__assign({}, MDCTooltipFoundation.defaultAdapter), adapter)) || this;\n _this.tooltipShown = false;\n _this.anchorGap = numbers.BOUNDED_ANCHOR_GAP;\n _this.xTooltipPos = XPosition.DETECTED;\n _this.yTooltipPos = YPosition.DETECTED;\n _this.tooltipPositionWithCaret = PositionWithCaret.DETECTED;\n // Minimum threshold distance needed between the tooltip and the viewport.\n _this.minViewportTooltipThreshold = numbers.MIN_VIEWPORT_TOOLTIP_THRESHOLD;\n _this.hideDelayMs = numbers.HIDE_DELAY_MS;\n _this.showDelayMs = numbers.SHOW_DELAY_MS;\n _this.anchorRect = null;\n _this.parentRect = null;\n _this.frameId = null;\n _this.hideTimeout = null;\n _this.showTimeout = null;\n _this.addAncestorScrollEventListeners = new Array();\n _this.removeAncestorScrollEventListeners = new Array();\n _this.animFrame = new AnimationFrame();\n _this.anchorBlurHandler = function (evt) {\n _this.handleAnchorBlur(evt);\n };\n _this.documentClickHandler = function (evt) {\n _this.handleDocumentClick(evt);\n };\n _this.documentKeydownHandler = function (evt) {\n _this.handleKeydown(evt);\n };\n _this.tooltipMouseEnterHandler = function () {\n _this.handleTooltipMouseEnter();\n };\n _this.tooltipMouseLeaveHandler = function () {\n _this.handleTooltipMouseLeave();\n };\n _this.richTooltipFocusOutHandler = function (evt) {\n _this.handleRichTooltipFocusOut(evt);\n };\n _this.windowScrollHandler = function () {\n _this.handleWindowScrollEvent();\n };\n _this.windowResizeHandler = function () {\n _this.handleWindowChangeEvent();\n };\n return _this;\n }\n Object.defineProperty(MDCTooltipFoundation, \"defaultAdapter\", {\n get: function () {\n return {\n getAttribute: function () { return null; },\n setAttribute: function () { return undefined; },\n removeAttribute: function () { return undefined; },\n addClass: function () { return undefined; },\n hasClass: function () { return false; },\n removeClass: function () { return undefined; },\n getComputedStyleProperty: function () { return ''; },\n setStyleProperty: function () { return undefined; },\n setSurfaceAnimationStyleProperty: function () { return undefined; },\n getViewportWidth: function () { return 0; },\n getViewportHeight: function () { return 0; },\n getTooltipSize: function () { return ({ width: 0, height: 0 }); },\n getAnchorBoundingRect: function () {\n return ({ top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 });\n },\n getParentBoundingRect: function () {\n return ({ top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 });\n },\n getAnchorAttribute: function () { return null; },\n setAnchorAttribute: function () { return null; },\n isRTL: function () { return false; },\n anchorContainsElement: function () { return false; },\n tooltipContainsElement: function () { return false; },\n focusAnchorElement: function () { return undefined; },\n registerEventHandler: function () { return undefined; },\n deregisterEventHandler: function () { return undefined; },\n registerAnchorEventHandler: function () { return undefined; },\n deregisterAnchorEventHandler: function () { return undefined; },\n registerDocumentEventHandler: function () { return undefined; },\n deregisterDocumentEventHandler: function () { return undefined; },\n registerWindowEventHandler: function () { return undefined; },\n deregisterWindowEventHandler: function () { return undefined; },\n notifyHidden: function () { return undefined; },\n getTooltipCaretBoundingRect: function () {\n return ({ top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 });\n },\n setTooltipCaretStyle: function () { return undefined; },\n clearTooltipCaretStyles: function () { return undefined; },\n getActiveElement: function () { return null; },\n };\n },\n enumerable: false,\n configurable: true\n });\n MDCTooltipFoundation.prototype.init = function () {\n this.richTooltip = this.adapter.hasClass(RICH);\n this.persistentTooltip =\n this.adapter.getAttribute(attributes.PERSISTENT) === 'true';\n this.interactiveTooltip =\n !!this.adapter.getAnchorAttribute(attributes.ARIA_EXPANDED) &&\n this.adapter.getAnchorAttribute(attributes.ARIA_HASPOPUP) === 'dialog';\n this.hasCaret = this.richTooltip &&\n this.adapter.getAttribute(attributes.HAS_CARET) === 'true';\n };\n MDCTooltipFoundation.prototype.isShown = function () {\n return this.tooltipShown;\n };\n MDCTooltipFoundation.prototype.isRich = function () {\n return this.richTooltip;\n };\n MDCTooltipFoundation.prototype.isPersistent = function () {\n return this.persistentTooltip;\n };\n MDCTooltipFoundation.prototype.handleAnchorMouseEnter = function () {\n var _this = this;\n if (this.tooltipShown) {\n // Covers the instance where a user hovers over the anchor to reveal the\n // tooltip, and then quickly navigates away and then back to the anchor.\n // The tooltip should stay visible without animating out and then back in\n // again.\n this.show();\n }\n else {\n // clearHideTimeout here since handleAnchorMouseLeave sets a hideTimeout\n // and that can execute before the showTimeout executes, resulting in hide\n // being called and the showTimeout set below to be cleared.\n this.clearHideTimeout();\n this.showTimeout = setTimeout(function () {\n _this.show();\n }, this.showDelayMs);\n }\n };\n MDCTooltipFoundation.prototype.handleAnchorTouchstart = function () {\n var _this = this;\n this.showTimeout = setTimeout(function () {\n _this.show();\n }, this.showDelayMs);\n // Prevent a context menu from appearing if user is long-pressing on a\n // tooltip anchor.\n this.adapter.registerWindowEventHandler('contextmenu', this.preventContextMenuOnLongTouch);\n };\n MDCTooltipFoundation.prototype.preventContextMenuOnLongTouch = function (evt) {\n evt.preventDefault();\n };\n MDCTooltipFoundation.prototype.handleAnchorTouchend = function () {\n this.clearShowTimeout();\n // Only remove the 'contextmenu' listener if the tooltip is not shown. When\n // the tooltip *is* shown, listener is removed in the close method.\n if (!this.isShown()) {\n this.adapter.deregisterWindowEventHandler('contextmenu', this.preventContextMenuOnLongTouch);\n }\n };\n MDCTooltipFoundation.prototype.handleAnchorFocus = function (evt) {\n var _this = this;\n // TODO(b/157075286): Need to add some way to distinguish keyboard\n // navigation focus events from other focus events, and only show the\n // tooltip on the former of these events.\n var relatedTarget = evt.relatedTarget;\n var tooltipContainsRelatedTarget = relatedTarget instanceof HTMLElement &&\n this.adapter.tooltipContainsElement(relatedTarget);\n // Do not show tooltip if the previous focus was on a tooltip element. This\n // occurs when a rich tooltip is closed and focus is restored to the anchor\n // or when user tab-navigates back into the anchor from the rich tooltip.\n if (tooltipContainsRelatedTarget) {\n return;\n }\n this.showTimeout = setTimeout(function () {\n _this.show();\n }, this.showDelayMs);\n };\n MDCTooltipFoundation.prototype.handleAnchorMouseLeave = function () {\n var _this = this;\n this.clearShowTimeout();\n this.hideTimeout = setTimeout(function () {\n _this.hide();\n }, this.hideDelayMs);\n };\n MDCTooltipFoundation.prototype.handleAnchorClick = function () {\n if (this.tooltipShown) {\n this.hide();\n }\n else {\n this.show();\n }\n };\n MDCTooltipFoundation.prototype.handleDocumentClick = function (evt) {\n var anchorOrTooltipContainsTargetElement = evt.target instanceof HTMLElement &&\n (this.adapter.anchorContainsElement(evt.target) ||\n this.adapter.tooltipContainsElement(evt.target));\n // For persistent rich tooltips, we will not hide if:\n // - The click target is within the anchor element. Otherwise, both\n // the anchor element's click handler and this handler will handle the\n // click (due to event propagation), resulting in a shown tooltip\n // being immediately hidden if the tooltip was initially hidden.\n // - The click target is within the tooltip element, since clicks\n // on the tooltip do not close the tooltip.\n if (this.richTooltip && this.persistentTooltip &&\n anchorOrTooltipContainsTargetElement) {\n return;\n }\n // Hide the tooltip immediately on click.\n this.hide();\n };\n MDCTooltipFoundation.prototype.handleKeydown = function (evt) {\n // Hide the tooltip immediately on ESC key.\n var key = normalizeKey(evt);\n if (key === KEY.ESCAPE) {\n var activeElement = this.adapter.getActiveElement();\n var tooltipContainsActiveElement = activeElement instanceof HTMLElement &&\n this.adapter.tooltipContainsElement(activeElement);\n if (tooltipContainsActiveElement) {\n this.adapter.focusAnchorElement();\n }\n this.hide();\n }\n };\n MDCTooltipFoundation.prototype.handleAnchorBlur = function (evt) {\n if (this.richTooltip) {\n var tooltipContainsRelatedTargetElement = evt.relatedTarget instanceof HTMLElement &&\n this.adapter.tooltipContainsElement(evt.relatedTarget);\n // If focus changed to the tooltip element, don't hide the tooltip.\n if (tooltipContainsRelatedTargetElement) {\n return;\n }\n if (evt.relatedTarget === null && this.interactiveTooltip) {\n // If evt.relatedTarget is null, it is because focus is moving to an\n // element that is not focusable. This should only occur in instances\n // of a screen reader in browse mode/linear navigation mode. If the\n // tooltip is interactive (and so the entire content is not read by\n // the screen reader upon the tooltip being opened), we want to allow\n // users to read the content of the tooltip (and not just the focusable\n // elements).\n return;\n }\n }\n // Hide tooltip immediately on focus change.\n this.hide();\n };\n MDCTooltipFoundation.prototype.handleTooltipMouseEnter = function () {\n this.show();\n };\n MDCTooltipFoundation.prototype.handleTooltipMouseLeave = function () {\n var _this = this;\n this.clearShowTimeout();\n this.hideTimeout = setTimeout(function () {\n _this.hide();\n }, this.hideDelayMs);\n };\n MDCTooltipFoundation.prototype.handleRichTooltipFocusOut = function (evt) {\n var anchorOrTooltipContainsRelatedTargetElement = evt.relatedTarget instanceof HTMLElement &&\n (this.adapter.anchorContainsElement(evt.relatedTarget) ||\n this.adapter.tooltipContainsElement(evt.relatedTarget));\n // If the focus is still within the anchor or the tooltip, do not hide the\n // tooltip.\n if (anchorOrTooltipContainsRelatedTargetElement) {\n return;\n }\n if (evt.relatedTarget === null && this.interactiveTooltip) {\n // If evt.relatedTarget is null, it is because focus is moving to an\n // element that is not focusable. This should only occur in instances\n // of a screen reader in browse mode/linear navigation mode. If the\n // tooltip is interactive (and so the entire content is not read by\n // the screen reader upon the tooltip being opened), we want to allow\n // users to read the content of the tooltip (and not just the focusable\n // elements).\n return;\n }\n this.hide();\n };\n MDCTooltipFoundation.prototype.handleWindowScrollEvent = function () {\n if (this.persistentTooltip) {\n // Persistent tooltips remain visible on user scroll, call appropriate\n // handler to ensure the tooltip remains pinned to the anchor on page\n // scroll.\n this.handleWindowChangeEvent();\n return;\n }\n this.hide();\n };\n /**\n * On window resize or scroll, check the anchor position and size and\n * repostion tooltip if necessary.\n */\n MDCTooltipFoundation.prototype.handleWindowChangeEvent = function () {\n var _this = this;\n // Since scroll and resize events can fire at a high rate, we throttle\n // the potential re-positioning of tooltip component using\n // requestAnimationFrame.\n this.animFrame.request(AnimationKeys.POLL_ANCHOR, function () {\n _this.repositionTooltipOnAnchorMove();\n });\n };\n MDCTooltipFoundation.prototype.show = function () {\n var e_1, _a;\n var _this = this;\n this.clearHideTimeout();\n this.clearShowTimeout();\n if (this.tooltipShown) {\n return;\n }\n this.tooltipShown = true;\n this.adapter.removeAttribute('aria-hidden');\n if (this.richTooltip) {\n if (this.interactiveTooltip) {\n this.adapter.setAnchorAttribute('aria-expanded', 'true');\n }\n this.adapter.registerEventHandler('focusout', this.richTooltipFocusOutHandler);\n }\n if (!this.persistentTooltip) {\n this.adapter.registerEventHandler('mouseenter', this.tooltipMouseEnterHandler);\n this.adapter.registerEventHandler('mouseleave', this.tooltipMouseLeaveHandler);\n }\n this.adapter.removeClass(HIDE);\n this.adapter.addClass(SHOWING);\n if (this.isTooltipMultiline() && !this.richTooltip) {\n this.adapter.addClass(MULTILINE_TOOLTIP);\n }\n this.anchorRect = this.adapter.getAnchorBoundingRect();\n this.parentRect = this.adapter.getParentBoundingRect();\n this.richTooltip ? this.positionRichTooltip() : this.positionPlainTooltip();\n this.adapter.registerAnchorEventHandler('blur', this.anchorBlurHandler);\n this.adapter.registerDocumentEventHandler('click', this.documentClickHandler);\n this.adapter.registerDocumentEventHandler('keydown', this.documentKeydownHandler);\n this.adapter.registerWindowEventHandler('scroll', this.windowScrollHandler);\n this.adapter.registerWindowEventHandler('resize', this.windowResizeHandler);\n try {\n // Register any additional scroll handlers\n for (var _b = __values(this.addAncestorScrollEventListeners), _c = _b.next(); !_c.done; _c = _b.next()) {\n var fn = _c.value;\n fn();\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n this.frameId = requestAnimationFrame(function () {\n _this.clearAllAnimationClasses();\n _this.adapter.addClass(SHOWN);\n _this.adapter.addClass(SHOWING_TRANSITION);\n });\n };\n MDCTooltipFoundation.prototype.hide = function () {\n var e_2, _a;\n this.clearHideTimeout();\n this.clearShowTimeout();\n if (!this.tooltipShown) {\n return;\n }\n if (this.frameId) {\n cancelAnimationFrame(this.frameId);\n }\n this.tooltipShown = false;\n this.adapter.setAttribute('aria-hidden', 'true');\n this.adapter.deregisterEventHandler('focusout', this.richTooltipFocusOutHandler);\n if (this.richTooltip) {\n if (this.interactiveTooltip) {\n this.adapter.setAnchorAttribute('aria-expanded', 'false');\n }\n }\n if (!this.persistentTooltip) {\n this.adapter.deregisterEventHandler('mouseenter', this.tooltipMouseEnterHandler);\n this.adapter.deregisterEventHandler('mouseleave', this.tooltipMouseLeaveHandler);\n }\n this.clearAllAnimationClasses();\n this.adapter.addClass(HIDE);\n this.adapter.addClass(HIDE_TRANSITION);\n this.adapter.removeClass(SHOWN);\n this.adapter.deregisterAnchorEventHandler('blur', this.anchorBlurHandler);\n this.adapter.deregisterDocumentEventHandler('click', this.documentClickHandler);\n this.adapter.deregisterDocumentEventHandler('keydown', this.documentKeydownHandler);\n this.adapter.deregisterWindowEventHandler('scroll', this.windowScrollHandler);\n this.adapter.deregisterWindowEventHandler('resize', this.windowResizeHandler);\n this.adapter.deregisterWindowEventHandler('contextmenu', this.preventContextMenuOnLongTouch);\n try {\n // Deregister any additional scroll handlers\n for (var _b = __values(this.removeAncestorScrollEventListeners), _c = _b.next(); !_c.done; _c = _b.next()) {\n var fn = _c.value;\n fn();\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_2) throw e_2.error; }\n }\n };\n MDCTooltipFoundation.prototype.handleTransitionEnd = function () {\n var isHidingTooltip = this.adapter.hasClass(HIDE);\n this.adapter.removeClass(SHOWING);\n this.adapter.removeClass(SHOWING_TRANSITION);\n this.adapter.removeClass(HIDE);\n this.adapter.removeClass(HIDE_TRANSITION);\n // If handleTransitionEnd is called after hiding the tooltip, the tooltip\n // will have the HIDE class (before calling the adapter removeClass method).\n // If tooltip is now hidden, send a notification that the animation has\n // completed and the tooltip is no longer visible.\n // We don't send a notification of the animation completing if a showTimeout\n // value is set -- this happens when a user triggers a tooltip to be shown\n // while that tooltip is fading. Once this hide transition is completed,\n // that same tooltip will be re-shown.\n if (isHidingTooltip && this.showTimeout === null) {\n this.adapter.notifyHidden();\n }\n };\n MDCTooltipFoundation.prototype.clearAllAnimationClasses = function () {\n this.adapter.removeClass(SHOWING_TRANSITION);\n this.adapter.removeClass(HIDE_TRANSITION);\n };\n MDCTooltipFoundation.prototype.setTooltipPosition = function (position) {\n var xPos = position.xPos, yPos = position.yPos, withCaretPos = position.withCaretPos;\n if (this.hasCaret && withCaretPos) {\n this.tooltipPositionWithCaret = withCaretPos;\n return;\n }\n if (xPos) {\n this.xTooltipPos = xPos;\n }\n if (yPos) {\n this.yTooltipPos = yPos;\n }\n };\n MDCTooltipFoundation.prototype.setAnchorBoundaryType = function (type) {\n if (type === AnchorBoundaryType.UNBOUNDED) {\n this.anchorGap = numbers.UNBOUNDED_ANCHOR_GAP;\n }\n else {\n this.anchorGap = numbers.BOUNDED_ANCHOR_GAP;\n }\n };\n MDCTooltipFoundation.prototype.setShowDelay = function (delayMs) {\n this.showDelayMs = delayMs;\n };\n MDCTooltipFoundation.prototype.setHideDelay = function (delayMs) {\n this.hideDelayMs = delayMs;\n };\n MDCTooltipFoundation.prototype.isTooltipMultiline = function () {\n var tooltipSize = this.adapter.getTooltipSize();\n return tooltipSize.height > numbers.MIN_HEIGHT &&\n tooltipSize.width >= numbers.MAX_WIDTH;\n };\n MDCTooltipFoundation.prototype.positionPlainTooltip = function () {\n // A plain tooltip has `fixed` positioning and is placed as an immediate\n // child of the document body. Its positioning is calculated with respect to\n // the viewport.\n var _a = this.calculateTooltipStyles(this.anchorRect), top = _a.top, yTransformOrigin = _a.yTransformOrigin, left = _a.left, xTransformOrigin = _a.xTransformOrigin;\n var transformProperty = HAS_WINDOW ? getCorrectPropertyName(window, 'transform') : 'transform';\n this.adapter.setSurfaceAnimationStyleProperty(transformProperty + \"-origin\", xTransformOrigin + \" \" + yTransformOrigin);\n this.adapter.setStyleProperty('top', top + \"px\");\n this.adapter.setStyleProperty('left', left + \"px\");\n };\n MDCTooltipFoundation.prototype.positionRichTooltip = function () {\n // TODO(b/177686782): Remove width setting when max-content is used to style\n // the rich tooltip.\n var _a, _b, _c, _d;\n // getComputedStyleProperty is used instead of getTooltipSize since\n // getTooltipSize returns the offSetWidth, which includes the border and\n // padding. What we need is the width of the tooltip without border and\n // padding.\n var width = this.adapter.getComputedStyleProperty('width');\n // When rich tooltips are positioned within their parent containers, the\n // tooltip width might be shrunk if it collides with the edge of the parent\n // container. We set the width of the tooltip to prevent this.\n this.adapter.setStyleProperty('width', width);\n var _e = this.hasCaret ?\n this.calculateTooltipWithCaretStyles(this.anchorRect) :\n this.calculateTooltipStyles(this.anchorRect), top = _e.top, yTransformOrigin = _e.yTransformOrigin, left = _e.left, xTransformOrigin = _e.xTransformOrigin;\n var transformProperty = HAS_WINDOW ? getCorrectPropertyName(window, 'transform') : 'transform';\n this.adapter.setSurfaceAnimationStyleProperty(transformProperty + \"-origin\", xTransformOrigin + \" \" + yTransformOrigin);\n // A rich tooltip has `absolute` positioning and is placed as a sibling to\n // the anchor element. Its positioning is calculated with respect to the\n // parent element, and so the values need to be adjusted against the parent\n // element.\n var leftAdjustment = left - ((_b = (_a = this.parentRect) === null || _a === void 0 ? void 0 : _a.left) !== null && _b !== void 0 ? _b : 0);\n var topAdjustment = top - ((_d = (_c = this.parentRect) === null || _c === void 0 ? void 0 : _c.top) !== null && _d !== void 0 ? _d : 0);\n this.adapter.setStyleProperty('top', topAdjustment + \"px\");\n this.adapter.setStyleProperty('left', leftAdjustment + \"px\");\n };\n /**\n * Calculates the position of the tooltip. A tooltip will be placed beneath\n * the anchor element and aligned either with the 'start'/'end' edge of the\n * anchor element or the 'center'.\n *\n * Tooltip alignment is selected such that the tooltip maintains a threshold\n * distance away from the viewport (defaulting to 'center' alignment). If the\n * placement of the anchor prevents this threshold distance from being\n * maintained, the tooltip is positioned so that it does not collide with the\n * viewport.\n *\n * Users can specify an alignment, however, if this alignment results in the\n * tooltip colliding with the viewport, this specification is overwritten.\n */\n MDCTooltipFoundation.prototype.calculateTooltipStyles = function (anchorRect) {\n if (!anchorRect) {\n return { top: 0, left: 0 };\n }\n var tooltipSize = this.adapter.getTooltipSize();\n var top = this.calculateYTooltipDistance(anchorRect, tooltipSize.height);\n var left = this.calculateXTooltipDistance(anchorRect, tooltipSize.width);\n return {\n top: top.distance,\n yTransformOrigin: top.yTransformOrigin,\n left: left.distance,\n xTransformOrigin: left.xTransformOrigin\n };\n };\n /**\n * Calculates the `left` distance for the tooltip.\n * Returns the distance value and a string indicating the x-axis transform-\n * origin that should be used when animating the tooltip.\n */\n MDCTooltipFoundation.prototype.calculateXTooltipDistance = function (anchorRect, tooltipWidth) {\n var isLTR = !this.adapter.isRTL();\n var startPos, endPos, centerPos;\n var startTransformOrigin, endTransformOrigin;\n if (this.richTooltip) {\n startPos = isLTR ? anchorRect.left - tooltipWidth : anchorRect.right;\n endPos = isLTR ? anchorRect.right : anchorRect.left - tooltipWidth;\n startTransformOrigin = isLTR ? strings.RIGHT : strings.LEFT;\n endTransformOrigin = isLTR ? strings.LEFT : strings.RIGHT;\n }\n else {\n startPos = isLTR ? anchorRect.left : anchorRect.right - tooltipWidth;\n endPos = isLTR ? anchorRect.right - tooltipWidth : anchorRect.left;\n centerPos = anchorRect.left + (anchorRect.width - tooltipWidth) / 2;\n startTransformOrigin = isLTR ? strings.LEFT : strings.RIGHT;\n endTransformOrigin = isLTR ? strings.RIGHT : strings.LEFT;\n }\n var positionOptions = this.richTooltip ?\n this.determineValidPositionOptions(startPos, endPos) :\n // For plain tooltips, centerPos is defined\n this.determineValidPositionOptions(centerPos, startPos, endPos);\n if (this.xTooltipPos === XPosition.START && positionOptions.has(startPos)) {\n return { distance: startPos, xTransformOrigin: startTransformOrigin };\n }\n if (this.xTooltipPos === XPosition.END && positionOptions.has(endPos)) {\n return { distance: endPos, xTransformOrigin: endTransformOrigin };\n }\n if (this.xTooltipPos === XPosition.CENTER &&\n positionOptions.has(centerPos)) {\n // This code path is only executed if calculating the distance for plain\n // tooltips. In this instance, centerPos will always be defined, so we can\n // safely assert that the returned value is non-null/undefined.\n return { distance: centerPos, xTransformOrigin: strings.CENTER };\n }\n // If no user position is supplied, rich tooltips default to end pos, then\n // start position. Plain tooltips default to center, start, then end.\n var possiblePositions = this.richTooltip ?\n [\n { distance: endPos, xTransformOrigin: endTransformOrigin },\n { distance: startPos, xTransformOrigin: startTransformOrigin }\n ] :\n [\n { distance: centerPos, xTransformOrigin: strings.CENTER },\n { distance: startPos, xTransformOrigin: startTransformOrigin },\n { distance: endPos, xTransformOrigin: endTransformOrigin }\n ];\n var validPosition = possiblePositions.find(function (_a) {\n var distance = _a.distance;\n return positionOptions.has(distance);\n });\n if (validPosition) {\n return validPosition;\n }\n // Indicates that all potential positions would result in the tooltip\n // colliding with the viewport. This would only occur when the anchor\n // element itself collides with the viewport, or the viewport is very\n // narrow. In this case, we allow the tooltip to be mis-aligned from the\n // anchor element.\n if (anchorRect.left < 0) {\n return {\n distance: this.minViewportTooltipThreshold,\n xTransformOrigin: strings.LEFT\n };\n }\n else {\n var viewportWidth = this.adapter.getViewportWidth();\n var distance = viewportWidth - (tooltipWidth + this.minViewportTooltipThreshold);\n return { distance: distance, xTransformOrigin: strings.RIGHT };\n }\n };\n /**\n * Given the values for the horizontal alignments of the tooltip, calculates\n * which of these options would result in the tooltip maintaining the required\n * threshold distance vs which would result in the tooltip staying within the\n * viewport.\n *\n * A Set of values is returned holding the distances that would honor the\n * above requirements. Following the logic for determining the tooltip\n * position, if all alignments violate the threshold, then the returned Set\n * contains values that keep the tooltip within the viewport.\n */\n MDCTooltipFoundation.prototype.determineValidPositionOptions = function () {\n var e_3, _a;\n var positions = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n positions[_i] = arguments[_i];\n }\n var posWithinThreshold = new Set();\n var posWithinViewport = new Set();\n try {\n for (var positions_1 = __values(positions), positions_1_1 = positions_1.next(); !positions_1_1.done; positions_1_1 = positions_1.next()) {\n var position = positions_1_1.value;\n if (this.positionHonorsViewportThreshold(position)) {\n posWithinThreshold.add(position);\n }\n else if (this.positionDoesntCollideWithViewport(position)) {\n posWithinViewport.add(position);\n }\n }\n }\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\n finally {\n try {\n if (positions_1_1 && !positions_1_1.done && (_a = positions_1.return)) _a.call(positions_1);\n }\n finally { if (e_3) throw e_3.error; }\n }\n return posWithinThreshold.size ? posWithinThreshold : posWithinViewport;\n };\n MDCTooltipFoundation.prototype.positionHonorsViewportThreshold = function (leftPos) {\n var viewportWidth = this.adapter.getViewportWidth();\n var tooltipWidth = this.adapter.getTooltipSize().width;\n return leftPos + tooltipWidth <=\n viewportWidth - this.minViewportTooltipThreshold &&\n leftPos >= this.minViewportTooltipThreshold;\n };\n MDCTooltipFoundation.prototype.positionDoesntCollideWithViewport = function (leftPos) {\n var viewportWidth = this.adapter.getViewportWidth();\n var tooltipWidth = this.adapter.getTooltipSize().width;\n return leftPos + tooltipWidth <= viewportWidth && leftPos >= 0;\n };\n /**\n * Calculates the `top` distance for the tooltip.\n * Returns the distance value and a string indicating the y-axis transform-\n * origin that should be used when animating the tooltip.\n */\n MDCTooltipFoundation.prototype.calculateYTooltipDistance = function (anchorRect, tooltipHeight) {\n var belowYPos = anchorRect.bottom + this.anchorGap;\n var aboveYPos = anchorRect.top - (this.anchorGap + tooltipHeight);\n var yPositionOptions = this.determineValidYPositionOptions(aboveYPos, belowYPos);\n if (this.yTooltipPos === YPosition.ABOVE &&\n yPositionOptions.has(aboveYPos)) {\n return { distance: aboveYPos, yTransformOrigin: strings.BOTTOM };\n }\n else if (this.yTooltipPos === YPosition.BELOW &&\n yPositionOptions.has(belowYPos)) {\n return { distance: belowYPos, yTransformOrigin: strings.TOP };\n }\n if (yPositionOptions.has(belowYPos)) {\n return { distance: belowYPos, yTransformOrigin: strings.TOP };\n }\n if (yPositionOptions.has(aboveYPos)) {\n return { distance: aboveYPos, yTransformOrigin: strings.BOTTOM };\n }\n // Indicates that all potential positions would result in the tooltip\n // colliding with the viewport. This would only occur when the viewport is\n // very short.\n return { distance: belowYPos, yTransformOrigin: strings.TOP };\n };\n /**\n * Given the values for above/below alignment of the tooltip, calculates\n * which of these options would result in the tooltip maintaining the required\n * threshold distance vs which would result in the tooltip staying within the\n * viewport.\n *\n * A Set of values is returned holding the distances that would honor the\n * above requirements. Following the logic for determining the tooltip\n * position, if all possible alignments violate the threshold, then the\n * returned Set contains values that keep the tooltip within the viewport.\n */\n MDCTooltipFoundation.prototype.determineValidYPositionOptions = function (aboveAnchorPos, belowAnchorPos) {\n var posWithinThreshold = new Set();\n var posWithinViewport = new Set();\n if (this.yPositionHonorsViewportThreshold(aboveAnchorPos)) {\n posWithinThreshold.add(aboveAnchorPos);\n }\n else if (this.yPositionDoesntCollideWithViewport(aboveAnchorPos)) {\n posWithinViewport.add(aboveAnchorPos);\n }\n if (this.yPositionHonorsViewportThreshold(belowAnchorPos)) {\n posWithinThreshold.add(belowAnchorPos);\n }\n else if (this.yPositionDoesntCollideWithViewport(belowAnchorPos)) {\n posWithinViewport.add(belowAnchorPos);\n }\n return posWithinThreshold.size ? posWithinThreshold : posWithinViewport;\n };\n MDCTooltipFoundation.prototype.yPositionHonorsViewportThreshold = function (yPos) {\n var viewportHeight = this.adapter.getViewportHeight();\n var tooltipHeight = this.adapter.getTooltipSize().height;\n return yPos + tooltipHeight + this.minViewportTooltipThreshold <=\n viewportHeight &&\n yPos >= this.minViewportTooltipThreshold;\n };\n MDCTooltipFoundation.prototype.yPositionDoesntCollideWithViewport = function (yPos) {\n var viewportHeight = this.adapter.getViewportHeight();\n var tooltipHeight = this.adapter.getTooltipSize().height;\n return yPos + tooltipHeight <= viewportHeight && yPos >= 0;\n };\n MDCTooltipFoundation.prototype.calculateTooltipWithCaretStyles = function (anchorRect) {\n // Prior to grabbing the caret bounding rect, we clear all styles set on the\n // caret. This will ensure the width/height is consistent (since we rotate\n // the caret 90deg in some positions which would result in the height and\n // width bounding rect measurements flipping).\n this.adapter.clearTooltipCaretStyles();\n var caretSize = this.adapter.getTooltipCaretBoundingRect();\n if (!anchorRect || !caretSize) {\n return { position: PositionWithCaret.DETECTED, top: 0, left: 0 };\n }\n // The caret for the rich tooltip is created by rotating/skewing/scaling\n // square div into a diamond shape and then hiding half of it so it looks\n // like a triangle. We use the boundingClientRect to calculate the\n // width/height of the element after the transforms (to the caret) have been\n // applied. Since the full tooltip is scaled by 0.8 for the entrance\n // animation, we divide by this value to retrieve the actual caret\n // dimensions.\n var caretWidth = caretSize.width / numbers.ANIMATION_SCALE;\n // Since we hide half of caret, we divide the returned DOMRect height\n // by 2.\n var caretHeight = (caretSize.height / numbers.ANIMATION_SCALE) / 2;\n var tooltipSize = this.adapter.getTooltipSize();\n var yOptions = this.calculateYWithCaretDistanceOptions(anchorRect, tooltipSize.height, { caretWidth: caretWidth, caretHeight: caretHeight });\n var xOptions = this.calculateXWithCaretDistanceOptions(anchorRect, tooltipSize.width, { caretWidth: caretWidth, caretHeight: caretHeight });\n var positionOptions = this.validateTooltipWithCaretDistances(yOptions, xOptions);\n if (positionOptions.size < 1) {\n positionOptions = this.generateBackupPositionOption(anchorRect, tooltipSize, { caretWidth: caretWidth, caretHeight: caretHeight });\n }\n var _a = this.determineTooltipWithCaretDistance(positionOptions), position = _a.position, xDistance = _a.xDistance, yDistance = _a.yDistance;\n // After determining the position of the tooltip relative to the anchor,\n // place the caret in the corresponding position and retrieve the necessary\n // x/y transform origins needed to properly animate the tooltip entrance.\n var _b = this.setCaretPositionStyles(position, { caretWidth: caretWidth, caretHeight: caretHeight }), yTransformOrigin = _b.yTransformOrigin, xTransformOrigin = _b.xTransformOrigin;\n return {\n yTransformOrigin: yTransformOrigin,\n xTransformOrigin: xTransformOrigin,\n top: yDistance,\n left: xDistance\n };\n };\n MDCTooltipFoundation.prototype.calculateXWithCaretDistanceOptions = function (anchorRect, tooltipWidth, caretSize) {\n var caretWidth = caretSize.caretWidth, caretHeight = caretSize.caretHeight;\n var isLTR = !this.adapter.isRTL();\n var anchorMidpoint = anchorRect.left + anchorRect.width / 2;\n var sideLeftAligned = anchorRect.left - (tooltipWidth + this.anchorGap + caretHeight);\n var sideRightAligned = anchorRect.right + this.anchorGap + caretHeight;\n var sideStartPos = isLTR ? sideLeftAligned : sideRightAligned;\n var sideEndPos = isLTR ? sideRightAligned : sideLeftAligned;\n var verticalLeftAligned = anchorMidpoint - (numbers.CARET_INDENTATION + caretWidth / 2);\n var verticalRightAligned = anchorMidpoint -\n (tooltipWidth - numbers.CARET_INDENTATION - caretWidth / 2);\n var verticalStartPos = isLTR ? verticalLeftAligned : verticalRightAligned;\n var verticalEndPos = isLTR ? verticalRightAligned : verticalLeftAligned;\n var verticalCenterPos = anchorMidpoint - tooltipWidth / 2;\n var possiblePositionsMap = new Map([\n [XPositionWithCaret.START, verticalStartPos],\n [XPositionWithCaret.CENTER, verticalCenterPos],\n [XPositionWithCaret.END, verticalEndPos],\n [XPositionWithCaret.SIDE_END, sideEndPos],\n [XPositionWithCaret.SIDE_START, sideStartPos],\n ]);\n return possiblePositionsMap;\n };\n MDCTooltipFoundation.prototype.calculateYWithCaretDistanceOptions = function (anchorRect, tooltipHeight, caretSize) {\n var caretWidth = caretSize.caretWidth, caretHeight = caretSize.caretHeight;\n var anchorMidpoint = anchorRect.top + anchorRect.height / 2;\n var belowYPos = anchorRect.bottom + this.anchorGap + caretHeight;\n var aboveYPos = anchorRect.top - (this.anchorGap + tooltipHeight + caretHeight);\n var sideTopYPos = anchorMidpoint - (numbers.CARET_INDENTATION + caretWidth / 2);\n var sideCenterYPos = anchorMidpoint - (tooltipHeight / 2);\n var sideBottomYPos = anchorMidpoint -\n (tooltipHeight - numbers.CARET_INDENTATION - caretWidth / 2);\n var possiblePositionsMap = new Map([\n [YPositionWithCaret.ABOVE, aboveYPos],\n [YPositionWithCaret.BELOW, belowYPos],\n [YPositionWithCaret.SIDE_TOP, sideTopYPos],\n [YPositionWithCaret.SIDE_CENTER, sideCenterYPos],\n [YPositionWithCaret.SIDE_BOTTOM, sideBottomYPos],\n ]);\n return possiblePositionsMap;\n };\n MDCTooltipFoundation.prototype.repositionTooltipOnAnchorMove = function () {\n var newAnchorRect = this.adapter.getAnchorBoundingRect();\n if (!newAnchorRect || !this.anchorRect)\n return;\n if (newAnchorRect.top !== this.anchorRect.top ||\n newAnchorRect.left !== this.anchorRect.left ||\n newAnchorRect.height !== this.anchorRect.height ||\n newAnchorRect.width !== this.anchorRect.width) {\n this.anchorRect = newAnchorRect;\n this.parentRect = this.adapter.getParentBoundingRect();\n this.richTooltip ? this.positionRichTooltip() :\n this.positionPlainTooltip();\n }\n };\n /**\n * Given a list of x/y position options for a rich tooltip with caret, checks\n * if valid x/y combinations of these position options are either within the\n * viewport threshold, or simply within the viewport. Returns a map with the\n * valid x/y position combinations that all either honor the viewport\n * threshold or are simply inside within the viewport.\n */\n MDCTooltipFoundation.prototype.validateTooltipWithCaretDistances = function (yOptions, xOptions) {\n var e_4, _a, e_5, _b, e_6, _c;\n var posWithinThreshold = new Map();\n var posWithinViewport = new Map();\n // If a tooltip has a caret, not all combinations of YPositionWithCarets and\n // XPositionWithCarets are possible. Because of this we only check the\n // validity of a given XPositionWithCaret if a potential corresponding\n // YPositionWithCaret is valid.\n var validMappings = new Map([\n [\n YPositionWithCaret.ABOVE,\n [\n XPositionWithCaret.START, XPositionWithCaret.CENTER,\n XPositionWithCaret.END\n ]\n ],\n [\n YPositionWithCaret.BELOW,\n [\n XPositionWithCaret.START, XPositionWithCaret.CENTER,\n XPositionWithCaret.END\n ]\n ],\n [\n YPositionWithCaret.SIDE_TOP,\n [XPositionWithCaret.SIDE_START, XPositionWithCaret.SIDE_END]\n ],\n [\n YPositionWithCaret.SIDE_CENTER,\n [XPositionWithCaret.SIDE_START, XPositionWithCaret.SIDE_END]\n ],\n [\n YPositionWithCaret.SIDE_BOTTOM,\n [XPositionWithCaret.SIDE_START, XPositionWithCaret.SIDE_END]\n ],\n ]);\n try {\n // TODO(b/227383292): Handle instances where one direction can fit in\n // in the viewport (whether honoring the threshold or not), and the\n // other direction does not.\n for (var _d = __values(validMappings.keys()), _e = _d.next(); !_e.done; _e = _d.next()) {\n var y = _e.value;\n var yDistance = yOptions.get(y);\n if (this.yPositionHonorsViewportThreshold(yDistance)) {\n try {\n for (var _f = (e_5 = void 0, __values(validMappings.get(y))), _g = _f.next(); !_g.done; _g = _f.next()) {\n var x = _g.value;\n var xDistance = xOptions.get(x);\n if (this.positionHonorsViewportThreshold(xDistance)) {\n var caretPositionName = this.caretPositionOptionsMapping(x, y);\n posWithinThreshold.set(caretPositionName, { xDistance: xDistance, yDistance: yDistance });\n }\n }\n }\n catch (e_5_1) { e_5 = { error: e_5_1 }; }\n finally {\n try {\n if (_g && !_g.done && (_b = _f.return)) _b.call(_f);\n }\n finally { if (e_5) throw e_5.error; }\n }\n }\n if (this.yPositionDoesntCollideWithViewport(yDistance)) {\n try {\n for (var _h = (e_6 = void 0, __values(validMappings.get(y))), _j = _h.next(); !_j.done; _j = _h.next()) {\n var x = _j.value;\n var xDistance = xOptions.get(x);\n if (this.positionDoesntCollideWithViewport(xDistance)) {\n var caretPositionName = this.caretPositionOptionsMapping(x, y);\n posWithinViewport.set(caretPositionName, { xDistance: xDistance, yDistance: yDistance });\n }\n }\n }\n catch (e_6_1) { e_6 = { error: e_6_1 }; }\n finally {\n try {\n if (_j && !_j.done && (_c = _h.return)) _c.call(_h);\n }\n finally { if (e_6) throw e_6.error; }\n }\n }\n }\n }\n catch (e_4_1) { e_4 = { error: e_4_1 }; }\n finally {\n try {\n if (_e && !_e.done && (_a = _d.return)) _a.call(_d);\n }\n finally { if (e_4) throw e_4.error; }\n }\n return posWithinThreshold.size ? posWithinThreshold : posWithinViewport;\n };\n /**\n * Method for generating a horizontal and vertical position for the tooltip if\n * all other calculated values are considered invalid. This would only happen\n * in situations of very small viewports/large tooltips.\n */\n MDCTooltipFoundation.prototype.generateBackupPositionOption = function (anchorRect, tooltipSize, caretSize) {\n var isLTR = !this.adapter.isRTL();\n var xDistance;\n var xPos;\n if (anchorRect.left < 0) {\n xDistance = this.minViewportTooltipThreshold + caretSize.caretHeight;\n xPos = isLTR ? XPositionWithCaret.END : XPositionWithCaret.START;\n }\n else {\n var viewportWidth = this.adapter.getViewportWidth();\n xDistance = viewportWidth -\n (tooltipSize.width + this.minViewportTooltipThreshold +\n caretSize.caretHeight);\n xPos = isLTR ? XPositionWithCaret.START : XPositionWithCaret.END;\n }\n var yDistance;\n var yPos;\n if (anchorRect.top < 0) {\n yDistance = this.minViewportTooltipThreshold + caretSize.caretHeight;\n yPos = YPositionWithCaret.BELOW;\n }\n else {\n var viewportHeight = this.adapter.getViewportHeight();\n yDistance = viewportHeight -\n (tooltipSize.height + this.minViewportTooltipThreshold +\n caretSize.caretHeight);\n yPos = YPositionWithCaret.ABOVE;\n }\n var caretPositionName = this.caretPositionOptionsMapping(xPos, yPos);\n return new Map([[caretPositionName, { xDistance: xDistance, yDistance: yDistance }]]);\n };\n /**\n * Given a list of valid position options for a rich tooltip with caret,\n * returns the option that should be used.\n */\n MDCTooltipFoundation.prototype.determineTooltipWithCaretDistance = function (options) {\n if (options.has(this.tooltipPositionWithCaret)) {\n var tooltipPos = options.get(this.tooltipPositionWithCaret);\n return {\n position: this.tooltipPositionWithCaret,\n xDistance: tooltipPos.xDistance,\n yDistance: tooltipPos.yDistance,\n };\n }\n var orderPref = [\n PositionWithCaret.ABOVE_START, PositionWithCaret.ABOVE_CENTER,\n PositionWithCaret.ABOVE_END, PositionWithCaret.TOP_SIDE_START,\n PositionWithCaret.CENTER_SIDE_START, PositionWithCaret.BOTTOM_SIDE_START,\n PositionWithCaret.TOP_SIDE_END, PositionWithCaret.CENTER_SIDE_END,\n PositionWithCaret.BOTTOM_SIDE_END, PositionWithCaret.BELOW_START,\n PositionWithCaret.BELOW_CENTER, PositionWithCaret.BELOW_END\n ];\n // Before calling this method we check whether or not the \"options\" param\n // is empty and invoke a different method. We, therefore, can be certain\n // that \"validPosition\" will always be defined.\n var validPosition = orderPref.find(function (pos) { return options.has(pos); });\n var pos = options.get(validPosition);\n return {\n position: validPosition,\n xDistance: pos.xDistance,\n yDistance: pos.yDistance,\n };\n };\n /**\n * Returns the corresponding PositionWithCaret enum for the proivded\n * XPositionWithCaret and YPositionWithCaret enums. This mapping exists so our\n * public API accepts only PositionWithCaret enums (as all combinations of\n * XPositionWithCaret and YPositionWithCaret are not valid), but internally we\n * can calculate the X and Y positions of a rich tooltip with caret\n * separately.\n */\n MDCTooltipFoundation.prototype.caretPositionOptionsMapping = function (xPos, yPos) {\n switch (yPos) {\n case YPositionWithCaret.ABOVE:\n if (xPos === XPositionWithCaret.START) {\n return PositionWithCaret.ABOVE_START;\n }\n else if (xPos === XPositionWithCaret.CENTER) {\n return PositionWithCaret.ABOVE_CENTER;\n }\n else if (xPos === XPositionWithCaret.END) {\n return PositionWithCaret.ABOVE_END;\n }\n break;\n case YPositionWithCaret.BELOW:\n if (xPos === XPositionWithCaret.START) {\n return PositionWithCaret.BELOW_START;\n }\n else if (xPos === XPositionWithCaret.CENTER) {\n return PositionWithCaret.BELOW_CENTER;\n }\n else if (xPos === XPositionWithCaret.END) {\n return PositionWithCaret.BELOW_END;\n }\n break;\n case YPositionWithCaret.SIDE_TOP:\n if (xPos === XPositionWithCaret.SIDE_START) {\n return PositionWithCaret.TOP_SIDE_START;\n }\n else if (xPos === XPositionWithCaret.SIDE_END) {\n return PositionWithCaret.TOP_SIDE_END;\n }\n break;\n case YPositionWithCaret.SIDE_CENTER:\n if (xPos === XPositionWithCaret.SIDE_START) {\n return PositionWithCaret.CENTER_SIDE_START;\n }\n else if (xPos === XPositionWithCaret.SIDE_END) {\n return PositionWithCaret.CENTER_SIDE_END;\n }\n break;\n case YPositionWithCaret.SIDE_BOTTOM:\n if (xPos === XPositionWithCaret.SIDE_START) {\n return PositionWithCaret.BOTTOM_SIDE_START;\n }\n else if (xPos === XPositionWithCaret.SIDE_END) {\n return PositionWithCaret.BOTTOM_SIDE_END;\n }\n break;\n default:\n break;\n }\n throw new Error(\"MDCTooltipFoundation: Invalid caret position of \" + xPos + \", \" + yPos);\n };\n /**\n * Given a PositionWithCaret, applies the correct styles to the caret element\n * so that it is positioned properly on the rich tooltip.\n * Returns the x and y positions of the caret, to be used as the\n * transform-origin on the tooltip itself for entrance animations.\n */\n MDCTooltipFoundation.prototype.setCaretPositionStyles = function (position, caretSize) {\n var e_7, _a;\n var values = this.calculateCaretPositionOnTooltip(position, caretSize);\n if (!values) {\n return { yTransformOrigin: 0, xTransformOrigin: 0 };\n }\n // Prior to setting the caret position styles, clear any previous styles\n // set. This is necessary as all position options do not use the same\n // properties (e.g. using 'left' or 'right') and so old style properties\n // might not get overridden, causing misplaced carets.\n this.adapter.clearTooltipCaretStyles();\n this.adapter.setTooltipCaretStyle(values.yAlignment, values.yAxisPx);\n this.adapter.setTooltipCaretStyle(values.xAlignment, values.xAxisPx);\n // Value of scaleX is cos(skew), Math.cos() expects radians though, so we\n // must first convert the skew value (which is in degrees) to radians.\n var skewRadians = values.skew * (Math.PI / 180);\n var scaleX = Math.cos(skewRadians);\n this.adapter.setTooltipCaretStyle('transform', \"rotate(\" + values.rotation + \"deg) skewY(\" + values.skew + \"deg) scaleX(\" + scaleX + \")\");\n this.adapter.setTooltipCaretStyle('transform-origin', values.xAlignment + \" \" + values.yAlignment);\n try {\n for (var _b = __values(values.caretCorners), _c = _b.next(); !_c.done; _c = _b.next()) {\n var corner = _c.value;\n this.adapter.setTooltipCaretStyle(corner, '0');\n }\n }\n catch (e_7_1) { e_7 = { error: e_7_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_7) throw e_7.error; }\n }\n return {\n yTransformOrigin: values.yTransformOrigin,\n xTransformOrigin: values.xTransformOrigin\n };\n };\n /**\n * Given a PositionWithCaret, determines the correct styles to position the\n * caret properly on the rich tooltip.\n */\n MDCTooltipFoundation.prototype.calculateCaretPositionOnTooltip = function (tooltipPos, caretSize) {\n var isLTR = !this.adapter.isRTL();\n var tooltipWidth = this.adapter.getComputedStyleProperty('width');\n var tooltipHeight = this.adapter.getComputedStyleProperty('height');\n if (!tooltipWidth || !tooltipHeight || !caretSize) {\n return;\n }\n var midpointWidth = \"calc((\" + tooltipWidth + \" - \" + caretSize.caretWidth + \"px) / 2)\";\n var midpointHeight = \"calc((\" + tooltipHeight + \" - \" + caretSize.caretWidth + \"px) / 2)\";\n var flushWithEdge = '0';\n var indentedFromEdge = numbers.CARET_INDENTATION + \"px\";\n var indentedFromWidth = \"calc(\" + tooltipWidth + \" - \" + indentedFromEdge + \")\";\n var indentedFromHeight = \"calc(\" + tooltipHeight + \" - \" + indentedFromEdge + \")\";\n var verticalRotation = 35;\n var horizontalRotation = Math.abs(90 - verticalRotation);\n var bottomRightTopLeftBorderRadius = ['border-bottom-right-radius', 'border-top-left-radius'];\n var bottomLeftTopRightBorderRadius = ['border-bottom-left-radius', 'border-top-right-radius'];\n var skewDeg = 20;\n switch (tooltipPos) {\n case PositionWithCaret.BELOW_CENTER:\n return {\n yAlignment: strings.TOP,\n xAlignment: strings.LEFT,\n yAxisPx: flushWithEdge,\n xAxisPx: midpointWidth,\n rotation: -1 * verticalRotation,\n skew: -1 * skewDeg,\n xTransformOrigin: midpointWidth,\n yTransformOrigin: flushWithEdge,\n caretCorners: bottomRightTopLeftBorderRadius,\n };\n case PositionWithCaret.BELOW_END:\n return {\n yAlignment: strings.TOP,\n xAlignment: isLTR ? strings.RIGHT : strings.LEFT,\n yAxisPx: flushWithEdge,\n xAxisPx: indentedFromEdge,\n rotation: isLTR ? verticalRotation : -1 * verticalRotation,\n skew: isLTR ? skewDeg : -1 * skewDeg,\n xTransformOrigin: isLTR ? indentedFromWidth : indentedFromEdge,\n yTransformOrigin: flushWithEdge,\n caretCorners: isLTR ? bottomLeftTopRightBorderRadius :\n bottomRightTopLeftBorderRadius,\n };\n case PositionWithCaret.BELOW_START:\n return {\n yAlignment: strings.TOP,\n xAlignment: isLTR ? strings.LEFT : strings.RIGHT,\n yAxisPx: flushWithEdge,\n xAxisPx: indentedFromEdge,\n rotation: isLTR ? -1 * verticalRotation : verticalRotation,\n skew: isLTR ? -1 * skewDeg : skewDeg,\n xTransformOrigin: isLTR ? indentedFromEdge : indentedFromWidth,\n yTransformOrigin: flushWithEdge,\n caretCorners: isLTR ? bottomRightTopLeftBorderRadius :\n bottomLeftTopRightBorderRadius,\n };\n case PositionWithCaret.TOP_SIDE_END:\n return {\n yAlignment: strings.TOP,\n xAlignment: isLTR ? strings.LEFT : strings.RIGHT,\n yAxisPx: indentedFromEdge,\n xAxisPx: flushWithEdge,\n rotation: isLTR ? horizontalRotation : -1 * horizontalRotation,\n skew: isLTR ? -1 * skewDeg : skewDeg,\n xTransformOrigin: isLTR ? flushWithEdge : tooltipWidth,\n yTransformOrigin: indentedFromEdge,\n caretCorners: isLTR ? bottomRightTopLeftBorderRadius :\n bottomLeftTopRightBorderRadius,\n };\n case PositionWithCaret.CENTER_SIDE_END:\n return {\n yAlignment: strings.TOP,\n xAlignment: isLTR ? strings.LEFT : strings.RIGHT,\n yAxisPx: midpointHeight,\n xAxisPx: flushWithEdge,\n rotation: isLTR ? horizontalRotation : -1 * horizontalRotation,\n skew: isLTR ? -1 * skewDeg : skewDeg,\n xTransformOrigin: isLTR ? flushWithEdge : tooltipWidth,\n yTransformOrigin: midpointHeight,\n caretCorners: isLTR ? bottomRightTopLeftBorderRadius :\n bottomLeftTopRightBorderRadius,\n };\n case PositionWithCaret.BOTTOM_SIDE_END:\n return {\n yAlignment: strings.BOTTOM,\n xAlignment: isLTR ? strings.LEFT : strings.RIGHT,\n yAxisPx: indentedFromEdge,\n xAxisPx: flushWithEdge,\n rotation: isLTR ? -1 * horizontalRotation : horizontalRotation,\n skew: isLTR ? skewDeg : -1 * skewDeg,\n xTransformOrigin: isLTR ? flushWithEdge : tooltipWidth,\n yTransformOrigin: indentedFromHeight,\n caretCorners: isLTR ? bottomLeftTopRightBorderRadius :\n bottomRightTopLeftBorderRadius,\n };\n case PositionWithCaret.TOP_SIDE_START:\n return {\n yAlignment: strings.TOP,\n xAlignment: isLTR ? strings.RIGHT : strings.LEFT,\n yAxisPx: indentedFromEdge,\n xAxisPx: flushWithEdge,\n rotation: isLTR ? -1 * horizontalRotation : horizontalRotation,\n skew: isLTR ? skewDeg : -1 * skewDeg,\n xTransformOrigin: isLTR ? tooltipWidth : flushWithEdge,\n yTransformOrigin: indentedFromEdge,\n caretCorners: isLTR ? bottomLeftTopRightBorderRadius :\n bottomRightTopLeftBorderRadius,\n };\n case PositionWithCaret.CENTER_SIDE_START:\n return {\n yAlignment: strings.TOP,\n xAlignment: isLTR ? strings.RIGHT : strings.LEFT,\n yAxisPx: midpointHeight,\n xAxisPx: flushWithEdge,\n rotation: isLTR ? -1 * horizontalRotation : horizontalRotation,\n skew: isLTR ? skewDeg : -1 * skewDeg,\n xTransformOrigin: isLTR ? tooltipWidth : flushWithEdge,\n yTransformOrigin: midpointHeight,\n caretCorners: isLTR ? bottomLeftTopRightBorderRadius :\n bottomRightTopLeftBorderRadius,\n };\n case PositionWithCaret.BOTTOM_SIDE_START:\n return {\n yAlignment: strings.BOTTOM,\n xAlignment: isLTR ? strings.RIGHT : strings.LEFT,\n yAxisPx: indentedFromEdge,\n xAxisPx: flushWithEdge,\n rotation: isLTR ? horizontalRotation : -1 * horizontalRotation,\n skew: isLTR ? -1 * skewDeg : skewDeg,\n xTransformOrigin: isLTR ? tooltipWidth : flushWithEdge,\n yTransformOrigin: indentedFromHeight,\n caretCorners: isLTR ? bottomRightTopLeftBorderRadius :\n bottomLeftTopRightBorderRadius,\n };\n case PositionWithCaret.ABOVE_CENTER:\n return {\n yAlignment: strings.BOTTOM,\n xAlignment: strings.LEFT,\n yAxisPx: flushWithEdge,\n xAxisPx: midpointWidth,\n rotation: verticalRotation,\n skew: skewDeg,\n xTransformOrigin: midpointWidth,\n yTransformOrigin: tooltipHeight,\n caretCorners: bottomLeftTopRightBorderRadius,\n };\n case PositionWithCaret.ABOVE_END:\n return {\n yAlignment: strings.BOTTOM,\n xAlignment: isLTR ? strings.RIGHT : strings.LEFT,\n yAxisPx: flushWithEdge,\n xAxisPx: indentedFromEdge,\n rotation: isLTR ? -1 * verticalRotation : verticalRotation,\n skew: isLTR ? -1 * skewDeg : skewDeg,\n xTransformOrigin: isLTR ? indentedFromWidth : indentedFromEdge,\n yTransformOrigin: tooltipHeight,\n caretCorners: isLTR ? bottomRightTopLeftBorderRadius :\n bottomLeftTopRightBorderRadius,\n };\n default:\n case PositionWithCaret.ABOVE_START:\n return {\n yAlignment: strings.BOTTOM,\n xAlignment: isLTR ? strings.LEFT : strings.RIGHT,\n yAxisPx: flushWithEdge,\n xAxisPx: indentedFromEdge,\n rotation: isLTR ? verticalRotation : -1 * verticalRotation,\n skew: isLTR ? skewDeg : -1 * skewDeg,\n xTransformOrigin: isLTR ? indentedFromEdge : indentedFromWidth,\n yTransformOrigin: tooltipHeight,\n caretCorners: isLTR ? bottomLeftTopRightBorderRadius :\n bottomRightTopLeftBorderRadius,\n };\n }\n };\n MDCTooltipFoundation.prototype.clearShowTimeout = function () {\n if (this.showTimeout) {\n clearTimeout(this.showTimeout);\n this.showTimeout = null;\n }\n };\n MDCTooltipFoundation.prototype.clearHideTimeout = function () {\n if (this.hideTimeout) {\n clearTimeout(this.hideTimeout);\n this.hideTimeout = null;\n }\n };\n /**\n * Method that allows user to specify additional elements that should have a\n * scroll event listener attached to it. This should be used in instances\n * where the anchor element is placed inside a scrollable container, and will\n * ensure that the tooltip will stay attached to the anchor on scroll.\n */\n MDCTooltipFoundation.prototype.attachScrollHandler = function (addEventListenerFn) {\n var _this = this;\n this.addAncestorScrollEventListeners.push(function () {\n addEventListenerFn('scroll', _this.windowScrollHandler);\n });\n };\n /**\n * Must be used in conjunction with #attachScrollHandler. Removes the scroll\n * event handler from elements on the page.\n */\n MDCTooltipFoundation.prototype.removeScrollHandler = function (removeEventHandlerFn) {\n var _this = this;\n this.removeAncestorScrollEventListeners.push(function () {\n removeEventHandlerFn('scroll', _this.windowScrollHandler);\n });\n };\n MDCTooltipFoundation.prototype.destroy = function () {\n var e_8, _a;\n if (this.frameId) {\n cancelAnimationFrame(this.frameId);\n this.frameId = null;\n }\n this.clearHideTimeout();\n this.clearShowTimeout();\n this.adapter.removeClass(SHOWN);\n this.adapter.removeClass(SHOWING_TRANSITION);\n this.adapter.removeClass(SHOWING);\n this.adapter.removeClass(HIDE);\n this.adapter.removeClass(HIDE_TRANSITION);\n if (this.richTooltip) {\n this.adapter.deregisterEventHandler('focusout', this.richTooltipFocusOutHandler);\n }\n if (!this.persistentTooltip) {\n this.adapter.deregisterEventHandler('mouseenter', this.tooltipMouseEnterHandler);\n this.adapter.deregisterEventHandler('mouseleave', this.tooltipMouseLeaveHandler);\n }\n this.adapter.deregisterAnchorEventHandler('blur', this.anchorBlurHandler);\n this.adapter.deregisterDocumentEventHandler('click', this.documentClickHandler);\n this.adapter.deregisterDocumentEventHandler('keydown', this.documentKeydownHandler);\n this.adapter.deregisterWindowEventHandler('scroll', this.windowScrollHandler);\n this.adapter.deregisterWindowEventHandler('resize', this.windowResizeHandler);\n try {\n for (var _b = __values(this.removeAncestorScrollEventListeners), _c = _b.next(); !_c.done; _c = _b.next()) {\n var fn = _c.value;\n fn();\n }\n }\n catch (e_8_1) { e_8 = { error: e_8_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_8) throw e_8.error; }\n }\n this.animFrame.cancelAll();\n };\n return MDCTooltipFoundation;\n}(MDCFoundation));\nexport { MDCTooltipFoundation };\n// tslint:disable-next-line:no-default-export Needed for backward compatibility with MDC Web v0.44.0 and earlier.\nexport default MDCTooltipFoundation;\n//# sourceMappingURL=foundation.js.map",null,"/**\n * @license\n * Copyright 2020 Google Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n/**\n * KEY provides normalized string values for keys.\n */\nexport var KEY = {\n UNKNOWN: 'Unknown',\n BACKSPACE: 'Backspace',\n ENTER: 'Enter',\n SPACEBAR: 'Spacebar',\n PAGE_UP: 'PageUp',\n PAGE_DOWN: 'PageDown',\n END: 'End',\n HOME: 'Home',\n ARROW_LEFT: 'ArrowLeft',\n ARROW_UP: 'ArrowUp',\n ARROW_RIGHT: 'ArrowRight',\n ARROW_DOWN: 'ArrowDown',\n DELETE: 'Delete',\n ESCAPE: 'Escape',\n TAB: 'Tab',\n};\nvar normalizedKeys = new Set();\n// IE11 has no support for new Map with iterable so we need to initialize this\n// by hand.\nnormalizedKeys.add(KEY.BACKSPACE);\nnormalizedKeys.add(KEY.ENTER);\nnormalizedKeys.add(KEY.SPACEBAR);\nnormalizedKeys.add(KEY.PAGE_UP);\nnormalizedKeys.add(KEY.PAGE_DOWN);\nnormalizedKeys.add(KEY.END);\nnormalizedKeys.add(KEY.HOME);\nnormalizedKeys.add(KEY.ARROW_LEFT);\nnormalizedKeys.add(KEY.ARROW_UP);\nnormalizedKeys.add(KEY.ARROW_RIGHT);\nnormalizedKeys.add(KEY.ARROW_DOWN);\nnormalizedKeys.add(KEY.DELETE);\nnormalizedKeys.add(KEY.ESCAPE);\nnormalizedKeys.add(KEY.TAB);\nvar KEY_CODE = {\n BACKSPACE: 8,\n ENTER: 13,\n SPACEBAR: 32,\n PAGE_UP: 33,\n PAGE_DOWN: 34,\n END: 35,\n HOME: 36,\n ARROW_LEFT: 37,\n ARROW_UP: 38,\n ARROW_RIGHT: 39,\n ARROW_DOWN: 40,\n DELETE: 46,\n ESCAPE: 27,\n TAB: 9,\n};\nvar mappedKeyCodes = new Map();\n// IE11 has no support for new Map with iterable so we need to initialize this\n// by hand.\nmappedKeyCodes.set(KEY_CODE.BACKSPACE, KEY.BACKSPACE);\nmappedKeyCodes.set(KEY_CODE.ENTER, KEY.ENTER);\nmappedKeyCodes.set(KEY_CODE.SPACEBAR, KEY.SPACEBAR);\nmappedKeyCodes.set(KEY_CODE.PAGE_UP, KEY.PAGE_UP);\nmappedKeyCodes.set(KEY_CODE.PAGE_DOWN, KEY.PAGE_DOWN);\nmappedKeyCodes.set(KEY_CODE.END, KEY.END);\nmappedKeyCodes.set(KEY_CODE.HOME, KEY.HOME);\nmappedKeyCodes.set(KEY_CODE.ARROW_LEFT, KEY.ARROW_LEFT);\nmappedKeyCodes.set(KEY_CODE.ARROW_UP, KEY.ARROW_UP);\nmappedKeyCodes.set(KEY_CODE.ARROW_RIGHT, KEY.ARROW_RIGHT);\nmappedKeyCodes.set(KEY_CODE.ARROW_DOWN, KEY.ARROW_DOWN);\nmappedKeyCodes.set(KEY_CODE.DELETE, KEY.DELETE);\nmappedKeyCodes.set(KEY_CODE.ESCAPE, KEY.ESCAPE);\nmappedKeyCodes.set(KEY_CODE.TAB, KEY.TAB);\nvar navigationKeys = new Set();\n// IE11 has no support for new Set with iterable so we need to initialize this\n// by hand.\nnavigationKeys.add(KEY.PAGE_UP);\nnavigationKeys.add(KEY.PAGE_DOWN);\nnavigationKeys.add(KEY.END);\nnavigationKeys.add(KEY.HOME);\nnavigationKeys.add(KEY.ARROW_LEFT);\nnavigationKeys.add(KEY.ARROW_UP);\nnavigationKeys.add(KEY.ARROW_RIGHT);\nnavigationKeys.add(KEY.ARROW_DOWN);\n/**\n * normalizeKey returns the normalized string for a navigational action.\n */\nexport function normalizeKey(evt) {\n var key = evt.key;\n // If the event already has a normalized key, return it\n if (normalizedKeys.has(key)) {\n return key;\n }\n // tslint:disable-next-line:deprecation\n var mappedKey = mappedKeyCodes.get(evt.keyCode);\n if (mappedKey) {\n return mappedKey;\n }\n return KEY.UNKNOWN;\n}\n/**\n * isNavigationEvent returns whether the event is a navigation event\n */\nexport function isNavigationEvent(evt) {\n return navigationKeys.has(normalizeKey(evt));\n}\n//# sourceMappingURL=keyboard.js.map",null],"names":["AnimationKeys","SortValue","CssClasses","XPosition","YPosition","AnchorBoundaryType","PositionWithCaret","YPositionWithCaret","XPositionWithCaret","$df4bc532ae9a9f80$var$supportsCssVariables_","$4b6d9c4c22d1910a$var$AnimationKeys","$f6cfddedd77988a6$export$aff26e357adc6917","$5e84edd0d370f6cc$export$19467ce65cc4f055","$5e84edd0d370f6cc$export$641c5df4f167fdf5","$5e84edd0d370f6cc$export$191747e67c9789ed","$5e84edd0d370f6cc$export$e4ad4a7a8f9088fc","$5e84edd0d370f6cc$export$c932156b3d020a8f","$5e84edd0d370f6cc$export$f574c92ec84323d9","$5e84edd0d370f6cc$export$2ccb7d1982d6ddb0","$778570533f5b6055$var$AnimationKeys","$5c96a02c592fcff1$var$extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","$5c96a02c592fcff1$export$a8ba968b8961cb8a","TypeError","String","__","constructor","create","$5c96a02c592fcff1$export$18ce0697a983be9b","assign","t","s","i","n","arguments","length","apply","$5c96a02c592fcff1$export$19a8beecd37a4c45","o","Symbol","iterator","m","next","value","done","SuppressedError","$d29cc2d0f1026d01$export$a81b11d69c993162","MDCFoundation","adapter","defineProperty","get","enumerable","configurable","init","destroy","$0a13a1859770d71d$export$c3670872e5a4af8e","MDCComponent","root","foundation","args","_i","initialize","to","from","pack","ar","l","slice","concat","r","e","push","error","undefined","getDefaultFoundation","initialSyncWithDOM","attachTo","_args","Error","listen","evtType","handler","options","addEventListener","unlisten","removeEventListener","emit","evtData","shouldBubble","evt","CustomEvent","bubbles","detail","document","createEvent","initCustomEvent","dispatchEvent","$eb9bb54a78ee410b$var$FOCUS_SENTINEL_CLASS","$eb9bb54a78ee410b$export$34eba2437817a67b","FocusTrap","elFocusedBeforeTrapFocus","trapFocus","focusableEls","getFocusableElements","activeElement","HTMLElement","wrapTabFocus","skipInitialFocus","focusInitialElement","initialFocusEl","releaseFocus","querySelectorAll","forEach","sentinelEl","parentElement","removeChild","skipRestoreFocus","focus","el","_this","sentinelStart","createSentinel","sentinelEnd","insertBefore","children","appendChild","focusIndex","Math","max","indexOf","filter","isDisabledOrHidden","getAttribute","isTabbableAndVisible","tabIndex","getBoundingClientRect","width","classList","contains","isProgrammaticallyHidden","style","getComputedStyle","display","visibility","sentinel","createElement","setAttribute","add","$f4789bcfa326043f$export$ff7f7c97cdce86e","element","selector","closest","$f4789bcfa326043f$export$de994efd351b291c","nativeMatches","matches","webkitMatchesSelector","msMatchesSelector","$9d9aa0d3469cd217$export$82e1592afef3b60f","globalObj","window","$9d9aa0d3469cd217$var$supportsPassiveOption","passiveSupported","passive","err","$fd0eb02544dd3322$export$c1c0562ec8379000","BG_FOCUSED","FG_ACTIVATION","FG_DEACTIVATION","ROOT","UNBOUNDED","$fd0eb02544dd3322$export$21c51bc433c16634","VAR_FG_SCALE","VAR_FG_SIZE","VAR_FG_TRANSLATE_END","VAR_FG_TRANSLATE_START","VAR_LEFT","VAR_TOP","$fd0eb02544dd3322$export$1f6c9cc012ebacae","DEACTIVATION_TIMEOUT_MS","FG_DEACTIVATION_MS","INITIAL_ORIGIN_SCALE","PADDING","TAP_DELAY_MS","$bf1cd0cda6c64034$var$ACTIVATION_EVENT_TYPES","$bf1cd0cda6c64034$var$POINTER_DEACTIVATION_EVENT_TYPES","$bf1cd0cda6c64034$var$activatedTargets","$bf1cd0cda6c64034$export$fb5f028029d92ef5","_super","MDCRippleFoundation","defaultAdapter","activationAnimationHasEnded","activationTimer","fgDeactivationRemovalTimer","fgScale","frame","height","initialSize","layoutFrame","maxRadius","unboundedCoords","left","top","activationState","defaultActivationState","activationTimerCallback","runDeactivationUXLogicIfReady","activateHandler","activateImpl","deactivateHandler","deactivateImpl","focusHandler","handleFocus","blurHandler","handleBlur","resizeHandler","layout","addClass","browserSupportsCssVars","computeBoundingRect","right","bottom","containsEventTarget","deregisterDocumentInteractionHandler","deregisterInteractionHandler","deregisterResizeHandler","getWindowPageOffset","x","y","isSurfaceActive","isSurfaceDisabled","isUnbounded","registerDocumentInteractionHandler","registerInteractionHandler","registerResizeHandler","removeClass","updateCssVariable","supportsPressRipple","registerRootHandlers","_a","cssClasses","ROOT_1","UNBOUNDED_1","requestAnimationFrame","layoutInternal","clearTimeout","ROOT_2","UNBOUNDED_2","removeCssVars","deregisterRootHandlers","deregisterDeactivationHandlers","activate","deactivate","cancelAnimationFrame","setUnbounded","unbounded","activationEvent","hasDeactivationUXRun","isActivated","isProgrammatic","wasActivatedByPointer","wasElementMadeActive","e_1","ACTIVATION_EVENT_TYPES_1","ACTIVATION_EVENT_TYPES_1_1","e_1_1","return","registerDeactivationHandlers","e_2","type","POINTER_DEACTIVATION_EVENT_TYPES_1","POINTER_DEACTIVATION_EVENT_TYPES_1_1","e_2_1","e_3","ACTIVATION_EVENT_TYPES_2","ACTIVATION_EVENT_TYPES_2_1","e_3_1","e_4","POINTER_DEACTIVATION_EVENT_TYPES_2","POINTER_DEACTIVATION_EVENT_TYPES_2_1","e_4_1","rippleStrings","strings","keys","key","previousActivationEvent","some","target","resetActivationState","checkElementMadeActive","animateActivation","keyCode","_b","numbers","translateStart","translateEnd","_c","getFgTranslationCoordinates","startPoint","endPoint","rmBoundedActivationClasses","setTimeout","pageOffset","clientRect","normalizedX","normalizedY","documentX","documentY","touchEvent","changedTouches","pageX","pageY","mouseEvent","state","animateDeactivation","maxDim","hypotenuse","sqrt","pow","floor","updateLayoutCssVars","round","$20e9578b2a8426ec$export$583ca2e118aa9669","MDCRipple","disabled","opts","ripple","createAdapter","instance","className","$df4bc532ae9a9f80$export$599ecc0c8c1caa3e","windowObj","forceRefresh","CSS","supportsCssVars","supports","explicitlySupportsCssVars","weAreFeatureDetectingSafari10plus","documentElement","pageXOffset","pageYOffset","Boolean","remove","varName","setProperty","set","dataset","$22ecda001003cf6d$export$1f3d5b43727c648a","AnimationFrame","rafIDs","Map","request","callback","cancel","frameID","delete","rafID","cancelAll","_","getQueue","queue","$e00bef1e7bfd6d3e$export$c1c0562ec8379000","CLOSING","OPEN","OPENING","SCROLLABLE","SCROLL_LOCK","STACKED","FULLSCREEN","SCROLL_DIVIDER_HEADER","SCROLL_DIVIDER_FOOTER","SURFACE_SCRIM_SHOWN","SURFACE_SCRIM_SHOWING","SURFACE_SCRIM_HIDING","SCRIM_HIDDEN","$e00bef1e7bfd6d3e$export$21c51bc433c16634","ACTION_ATTRIBUTE","BUTTON_DEFAULT_ATTRIBUTE","BUTTON_SELECTOR","CLOSED_EVENT","CLOSE_ACTION","CLOSING_EVENT","CONTAINER_SELECTOR","CONTENT_SELECTOR","DESTROY_ACTION","INITIAL_FOCUS_ATTRIBUTE","OPENED_EVENT","OPENING_EVENT","SCRIM_SELECTOR","SUPPRESS_DEFAULT_PRESS_SELECTOR","SURFACE_SELECTOR","$e00bef1e7bfd6d3e$export$1f6c9cc012ebacae","DIALOG_ANIMATION_CLOSE_TIME_MS","DIALOG_ANIMATION_OPEN_TIME_MS","$4b6d9c4c22d1910a$export$dac9922df5f517f1","MDCDialogFoundation","dialogOpen","isFullscreen","animationFrame","animationTimer","escapeKeyAction","scrimClickAction","autoStackButtons","areButtonsStacked","suppressDefaultPressSelector","animFrame","contentScrollHandler","handleScrollEvent","windowResizeHandler","windowOrientationChangeHandler","addBodyClass","clickDefaultButton","eventTargetMatches","getActionFromEvent","getInitialFocusEl","hasClass","isContentScrollable","notifyClosed","notifyClosing","notifyOpened","notifyOpening","removeBodyClass","reverseButtons","registerContentEventHandler","deregisterContentEventHandler","isScrollableContentAtTop","isScrollableContentAtBottom","registerWindowEventHandler","deregisterWindowEventHandler","setAutoStackButtons","handleAnimationTimerEnd","open","dialogOptions","isAboveFullscreenDialog","runNextAnimationFrame","close","action","showSurfaceScrim","hideSurfaceScrim","handleSurfaceScrimTransitionEnd","isOpen","getEscapeKeyAction","setEscapeKeyAction","getScrimClickAction","setScrimClickAction","getAutoStackButtons","autoStack","getSuppressDefaultPressSelector","setSuppressDefaultPressSelector","POLL_LAYOUT_CHANGE","handleClick","isScrim","handleKeydown","isEnter","composedPath","isDefault","handleDocumentKeydown","POLL_SCROLL_POS","toggleScrollDividerHeader","toggleScrollDividerFooter","detectStackedButtons","toggleScrollableClasses","$38d6c657ee62cba7$var$strings","$38d6c657ee62cba7$export$6808244b173e4b98","MDCDialog","focusTrapFactory","focusOptions","container","querySelector","content","buttons","defaultButton","buttonRipples","buttonEl","surfaceEl","focusTrap","bind","handleOpening","handleClosing","body","els","tops","Set","offsetTop","size","click","scrollHeight","offsetHeight","reverse","button","scrollTop","ceil","clientHeight","$d3b9476725b396f0$var$cssPropertyNameMap","animation","prefixed","standard","transform","transition","$d3b9476725b396f0$var$jsEventTypeMap","animationend","cssProperty","animationiteration","animationstart","transitionend","$d3b9476725b396f0$var$isWindow","$d3b9476725b396f0$export$3e3382687f32c044","isStandard","$d3b9476725b396f0$export$48f0db0729a5631b","eventType","$ee22ceda0c2e12e9$export$c1c0562ec8379000","ANIM_CHECKED_INDETERMINATE","ANIM_CHECKED_UNCHECKED","ANIM_INDETERMINATE_CHECKED","ANIM_INDETERMINATE_UNCHECKED","ANIM_UNCHECKED_CHECKED","ANIM_UNCHECKED_INDETERMINATE","BACKGROUND","CHECKED","CHECKMARK","CHECKMARK_PATH","DISABLED","INDETERMINATE","MIXEDMARK","NATIVE_CONTROL","SELECTED","UPGRADED","$ee22ceda0c2e12e9$export$21c51bc433c16634","ARIA_CHECKED_ATTR","ARIA_CHECKED_INDETERMINATE_VALUE","DATA_INDETERMINATE_ATTR","NATIVE_CONTROL_SELECTOR","TRANSITION_STATE_CHECKED","TRANSITION_STATE_INDETERMINATE","TRANSITION_STATE_INIT","TRANSITION_STATE_UNCHECKED","$ee22ceda0c2e12e9$export$1f6c9cc012ebacae","ANIM_END_LATCH_MS","$0fb8799c7cf86124$export$7b204549dbb0ec4d","MDCCheckboxFoundation","currentCheckState","currentAnimationClass","animEndLatchTimer","enableAnimationEndHandler","forceLayout","hasNativeControl","isAttachedToDOM","isChecked","isIndeterminate","removeNativeControlAttr","setNativeControlAttr","setNativeControlDisabled","determineCheckState","updateAriaChecked","setDisabled","handleAnimationEnd","handleChange","transitionCheckState","oldState","newState","getTransitionAnimationClass","$7c08072f0d8b00a7$var$CB_PROTO_PROPS","$7c08072f0d8b00a7$export$7154650bc9a9224f","MDCCheckbox","rippleSurface","createRipple","getNativeControl","checked","indeterminate","removeAttribute","installPropertyChangeHooks","uninstallPropertyChangeHooks","offsetWidth","parentNode","attr","nativeCb","cbProto","getPrototypeOf","CB_PROTO_PROPS_1","CB_PROTO_PROPS_1_1","controlState","state_1","_loop_1","desc","getOwnPropertyDescriptor","$7c08072f0d8b00a7$var$validDescriptor","nativeGetter","nativeCbDesc","CB_PROTO_PROPS_2","CB_PROTO_PROPS_2_1","inputPropDesc","$2316b8123b84dab0$export$c1c0562ec8379000","CLOSED_CLASS","CLOSED_ANIMATION_OFF_CLASS","INDETERMINATE_CLASS","REVERSED_CLASS","ANIMATION_READY_CLASS","$2316b8123b84dab0$export$21c51bc433c16634","ARIA_HIDDEN","ARIA_VALUEMAX","ARIA_VALUEMIN","ARIA_VALUENOW","BUFFER_BAR_SELECTOR","FLEX_BASIS","PRIMARY_BAR_SELECTOR","$c07111c6c9f68222$export$83c781df9f8b3d70","MDCLinearProgressFoundation","observer","attachResizeObserver","getWidth","setBufferBarStyle","setPrimaryBarStyle","setStyle","determinate","progress","buffer","entries","entries_1","entries_1_1","entry","contentRect","calculateAndSetDimensions","setDeterminate","isDeterminate","toString","setPrimaryBarProgress","setBufferBarProgress","setProgress","getProgress","setBuffer","getBuffer","isClosed","handleTransitionEnd","disconnect","restartAnimation","progressValue","transformProp","primaryHalf","primaryFull","secondaryQuarter","secondaryHalf","secondaryFull","$882247d19ca1c993$export$8ef9bec6c14049d","MDCLinearProgress","styleProperty","bufferBar","primaryBar","attributeName","name","RO","ResizeObserver","ro","observe","$f6cfddedd77988a6$export$c1c0562ec8379000","CONTENT","HEADER_CELL","HEADER_CELL_SORTED","HEADER_CELL_SORTED_DESCENDING","HEADER_CELL_WITH_SORT","HEADER_ROW","HEADER_ROW_CHECKBOX","IN_PROGRESS","LINEAR_PROGRESS","PROGRESS_INDICATOR","ROW","ROW_CHECKBOX","ROW_SELECTED","SORT_ICON_BUTTON","SORT_STATUS_LABEL","TABLE_CONTAINER","$f6cfddedd77988a6$export$15d6ddc168d35719","COLUMN_ID","ROW_ID","$f6cfddedd77988a6$export$e1252723db1c541","$f6cfddedd77988a6$export$defe85febe8b728c","SORTED_IN_DESCENDING","SORTED_IN_ASCENDING","$f6cfddedd77988a6$export$21c51bc433c16634","ARIA_SELECTED","ARIA_SORT","DATA_ROW_ID_ATTR","HEADER_ROW_CHECKBOX_SELECTOR","ROW_CHECKBOX_SELECTOR","ROW_SELECTED_SELECTOR","ROW_SELECTOR","$14b9dedc87673f83$export$9d41abb262ebacf8","MDCDataTableFoundation","addClassAtRowIndex","getAttributeByHeaderCellIndex","getHeaderCellCount","getHeaderCellElements","getRowCount","getRowElements","getRowIdAtIndex","getRowIndexByChildElement","getSelectedRowCount","getTableContainerHeight","getTableHeaderHeight","isCheckboxAtRowIndexChecked","isHeaderRowCheckboxChecked","isRowsSelectable","notifyRowSelectionChanged","notifySelectedAll","notifySortAction","notifyUnselectedAll","notifyRowClick","registerHeaderRowCheckbox","registerRowCheckboxes","removeClassAtRowIndex","removeClassNameByHeaderCellIndex","setAttributeAtRowIndex","setAttributeByHeaderCellIndex","setClassNameByHeaderCellIndex","setHeaderRowCheckboxChecked","setHeaderRowCheckboxIndeterminate","setProgressIndicatorStyles","setRowCheckboxCheckedAtIndex","setSortStatusLabelByHeaderCellIndex","setHeaderRowCheckboxState","layoutAsync","thisArg","_arguments","P","generator","f","label","sent","trys","ops","g","Iterator","verb","v","step","op","pop","Promise","resolve","reject","fulfilled","rejected","result","adopt","then","getRows","getHeaderCells","setSelectedRowIds","rowIds","rowIndex","rowId","isSelected","selectRowAtIndex","getRowIds","getSelectedRowIds","selectedRowIds","handleHeaderRowCheckboxChange","isHeaderChecked","handleRowCheckboxChange","event","selected","handleSortAction","eventData","columnId","columnIndex","headerCell","index","NONE","currentSortValue","sortValue","ASCENDING","DESCENDING","handleRowClick","row","showProgress","tableHeaderHeight","hideProgress","$369a0c7b5a754e20$export$240748bfd28d4d90","MDCDataTable","checkboxFactory","headerRow","headerRowClickListener","handleHeaderRowClick","handleContentClick","dataRowEl","getRowIdByRowElement","getLinearProgress","headerRowCheckbox","rowCheckboxList","checkbox","attribute","data","tableContainer","tableHeader","styles","progressIndicator","getRowByIndex","getRowIdByIndex","checkboxEl","rowEl","sortStatusLabel","textContent","getSortStatusMessageBySortValue","getLinearProgressElement","linearProgress","rowElement","$5e84edd0d370f6cc$export$1f6c9cc012ebacae","BOUNDED_ANCHOR_GAP","UNBOUNDED_ANCHOR_GAP","MIN_VIEWPORT_TOOLTIP_THRESHOLD","HIDE_DELAY_MS","SHOW_DELAY_MS","MIN_HEIGHT","MAX_WIDTH","CARET_INDENTATION","ANIMATION_SCALE","$5e84edd0d370f6cc$export$16bd37df0047a29c","ARIA_EXPANDED","ARIA_HASPOPUP","PERSISTENT","HAS_CARET","$5e84edd0d370f6cc$export$21c51bc433c16634","LEFT","RIGHT","CENTER","TOP","BOTTOM","$52e7243426ddff9a$export$7167c830cefcb6b5","UNKNOWN","BACKSPACE","ENTER","SPACEBAR","PAGE_UP","PAGE_DOWN","END","HOME","ARROW_LEFT","ARROW_UP","ARROW_RIGHT","ARROW_DOWN","DELETE","ESCAPE","TAB","$52e7243426ddff9a$var$normalizedKeys","$52e7243426ddff9a$var$mappedKeyCodes","$52e7243426ddff9a$var$navigationKeys","$778570533f5b6055$var$RICH","RICH","$778570533f5b6055$var$SHOWN","SHOWN","$778570533f5b6055$var$SHOWING","SHOWING","$778570533f5b6055$var$SHOWING_TRANSITION","SHOWING_TRANSITION","$778570533f5b6055$var$HIDE","HIDE","$778570533f5b6055$var$HIDE_TRANSITION","HIDE_TRANSITION","$778570533f5b6055$var$MULTILINE_TOOLTIP","MULTILINE_TOOLTIP","$778570533f5b6055$var$HAS_WINDOW","$778570533f5b6055$export$ad52ca8d63569c37","MDCTooltipFoundation","tooltipShown","anchorGap","xTooltipPos","DETECTED","yTooltipPos","tooltipPositionWithCaret","minViewportTooltipThreshold","hideDelayMs","showDelayMs","anchorRect","parentRect","frameId","hideTimeout","showTimeout","addAncestorScrollEventListeners","removeAncestorScrollEventListeners","anchorBlurHandler","handleAnchorBlur","documentClickHandler","handleDocumentClick","documentKeydownHandler","tooltipMouseEnterHandler","handleTooltipMouseEnter","tooltipMouseLeaveHandler","handleTooltipMouseLeave","richTooltipFocusOutHandler","handleRichTooltipFocusOut","windowScrollHandler","handleWindowScrollEvent","handleWindowChangeEvent","getComputedStyleProperty","setStyleProperty","setSurfaceAnimationStyleProperty","getViewportWidth","getViewportHeight","getTooltipSize","getAnchorBoundingRect","getParentBoundingRect","getAnchorAttribute","setAnchorAttribute","isRTL","anchorContainsElement","tooltipContainsElement","focusAnchorElement","registerEventHandler","deregisterEventHandler","registerAnchorEventHandler","deregisterAnchorEventHandler","registerDocumentEventHandler","deregisterDocumentEventHandler","notifyHidden","getTooltipCaretBoundingRect","setTooltipCaretStyle","clearTooltipCaretStyles","getActiveElement","richTooltip","persistentTooltip","interactiveTooltip","hasCaret","isShown","isRich","isPersistent","handleAnchorMouseEnter","show","clearHideTimeout","handleAnchorTouchstart","preventContextMenuOnLongTouch","preventDefault","handleAnchorTouchend","clearShowTimeout","handleAnchorFocus","relatedTarget","handleAnchorMouseLeave","hide","handleAnchorClick","anchorOrTooltipContainsTargetElement","has","mappedKey","POLL_ANCHOR","repositionTooltipOnAnchorMove","isTooltipMultiline","positionRichTooltip","positionPlainTooltip","fn","clearAllAnimationClasses","isHidingTooltip","setTooltipPosition","position","xPos","yPos","withCaretPos","setAnchorBoundaryType","setShowDelay","delayMs","setHideDelay","tooltipSize","calculateTooltipStyles","yTransformOrigin","xTransformOrigin","transformProperty","_d","_e","calculateTooltipWithCaretStyles","leftAdjustment","topAdjustment","calculateYTooltipDistance","calculateXTooltipDistance","distance","tooltipWidth","startPos","endPos","centerPos","startTransformOrigin","endTransformOrigin","isLTR","positionOptions","determineValidPositionOptions","START","validPosition","possiblePositions","find","viewportWidth","positions","posWithinThreshold","posWithinViewport","positions_1","positions_1_1","positionHonorsViewportThreshold","positionDoesntCollideWithViewport","leftPos","tooltipHeight","belowYPos","aboveYPos","yPositionOptions","determineValidYPositionOptions","ABOVE","BELOW","aboveAnchorPos","belowAnchorPos","yPositionHonorsViewportThreshold","yPositionDoesntCollideWithViewport","viewportHeight","caretSize","caretWidth","caretHeight","yOptions","calculateYWithCaretDistanceOptions","xOptions","calculateXWithCaretDistanceOptions","validateTooltipWithCaretDistances","generateBackupPositionOption","determineTooltipWithCaretDistance","xDistance","yDistance","setCaretPositionStyles","anchorMidpoint","sideLeftAligned","sideRightAligned","sideStartPos","sideEndPos","verticalLeftAligned","verticalRightAligned","verticalStartPos","verticalEndPos","SIDE_END","SIDE_START","sideTopYPos","sideBottomYPos","SIDE_TOP","SIDE_CENTER","SIDE_BOTTOM","newAnchorRect","e_5","e_6","validMappings","_f","_g","caretPositionName","caretPositionOptionsMapping","e_5_1","_h","_j","e_6_1","tooltipPos","orderPref","ABOVE_START","ABOVE_CENTER","ABOVE_END","TOP_SIDE_START","CENTER_SIDE_START","BOTTOM_SIDE_START","TOP_SIDE_END","CENTER_SIDE_END","BOTTOM_SIDE_END","BELOW_START","BELOW_CENTER","BELOW_END","pos","e_7","values","calculateCaretPositionOnTooltip","yAlignment","yAxisPx","xAlignment","xAxisPx","scaleX","cos","skew","PI","rotation","caretCorners","corner","e_7_1","midpointWidth","midpointHeight","indentedFromEdge","indentedFromWidth","indentedFromHeight","horizontalRotation","abs","bottomRightTopLeftBorderRadius","bottomLeftTopRightBorderRadius","attachScrollHandler","addEventListenerFn","removeScrollHandler","removeEventHandlerFn","e_8","e_8_1","$6208747c4409e6c0$export$31963e96a9940462","MDCTooltip","tooltipId","anchorElem","isTooltipRich","isTooltipPersistent","handleMouseEnter","handleMouseLeave","handleTouchstart","handleTouchend","propertyName","getPropertyValue","surface","SURFACE_ANIMATION","innerWidth","innerHeight","direction","caret","TOOLTIP_CARET_TOP","topCaret","bottomCaret","TOOLTIP_CARET_BOTTOM","$60e07ebc83e245dc$var$GLOBAL_REGION_KEY","$60e07ebc83e245dc$var$PING_TEST_RUNNING_STATUS","$60e07ebc83e245dc$var$PING_TEST_STOPPED_STATUS","$60e07ebc83e245dc$var$btnCtrl","getElementById","$60e07ebc83e245dc$var$regions","$60e07ebc83e245dc$var$results","$60e07ebc83e245dc$var$pingTestStatus","$60e07ebc83e245dc$var$fastestRegionVisible","$60e07ebc83e245dc$var$fastestRegion","$60e07ebc83e245dc$var$globalRegionProxy","$60e07ebc83e245dc$var$sortKey","$60e07ebc83e245dc$var$sortDir","$60e07ebc83e245dc$var$pingAllRegions","iter","regionsArr","isVisible","region","latency","$60e07ebc83e245dc$var$pingSingleRegion","regionKey","gcpZone","start","Date","getTime","fetch","pingUrl","cache","resp","text","val","trim","$60e07ebc83e245dc$var$getMedian","arr","copy","sort","$60e07ebc83e245dc$var$addResult","splice","$60e07ebc83e245dc$var$compareTwoRegions","unshift","$60e07ebc83e245dc$var$updateList","$60e07ebc83e245dc$var$updatePingTestState","status","html","cls","getElementsByTagName","innerHTML","a","multiplier","newStatus","json","endpoints","zone","Region","RegionName","URL","latencies","median","onload","dialog","map"],"version":3,"file":"index.947669d6.js.map"}