tfcconnection-zola/.shadow-cljs/builds/app/dev/goog-js/goog.asserts.dom.js

1 line
26 KiB
JavaScript

["^ ","~:resource-id",["~:shadow.build.classpath/resource","goog/asserts/dom.js"],"~:js","goog.loadModule(function(exports) {\n \"use strict\";\n goog.module(\"goog.asserts.dom\");\n goog.module.declareLegacyNamespace();\n const TagName = goog.require(\"goog.dom.TagName\");\n const asserts = goog.require(\"goog.asserts\");\n const element = goog.require(\"goog.dom.element\");\n const assertIsElement = value => {\n if (asserts.ENABLE_ASSERTS && !element.isElement(value)) {\n asserts.fail(`Argument is not an Element; got: ${debugStringForType(value)}`);\n }\n return value;\n };\n const assertIsHtmlElement = value => {\n if (asserts.ENABLE_ASSERTS && !element.isHtmlElement(value)) {\n asserts.fail(`Argument is not an HTML Element; got: ${debugStringForType(value)}`);\n }\n return value;\n };\n const assertIsHtmlElementOfType = (value, tagName) => {\n if (asserts.ENABLE_ASSERTS && !element.isHtmlElementOfType(value, tagName)) {\n asserts.fail(`Argument is not an HTML Element with tag name ` + `${tagName.toString()}; got: ${debugStringForType(value)}`);\n }\n return value;\n };\n const assertIsHtmlAnchorElement = value => {\n return assertIsHtmlElementOfType(value, TagName.A);\n };\n const assertIsHtmlButtonElement = value => {\n return assertIsHtmlElementOfType(value, TagName.BUTTON);\n };\n const assertIsHtmlLinkElement = value => {\n return assertIsHtmlElementOfType(value, TagName.LINK);\n };\n const assertIsHtmlImageElement = value => {\n return assertIsHtmlElementOfType(value, TagName.IMG);\n };\n const assertIsHtmlAudioElement = value => {\n return assertIsHtmlElementOfType(value, TagName.AUDIO);\n };\n const assertIsHtmlVideoElement = value => {\n return assertIsHtmlElementOfType(value, TagName.VIDEO);\n };\n const assertIsHtmlInputElement = value => {\n return assertIsHtmlElementOfType(value, TagName.INPUT);\n };\n const assertIsHtmlTextAreaElement = value => {\n return assertIsHtmlElementOfType(value, TagName.TEXTAREA);\n };\n const assertIsHtmlCanvasElement = value => {\n return assertIsHtmlElementOfType(value, TagName.CANVAS);\n };\n const assertIsHtmlEmbedElement = value => {\n return assertIsHtmlElementOfType(value, TagName.EMBED);\n };\n const assertIsHtmlFormElement = value => {\n return assertIsHtmlElementOfType(value, TagName.FORM);\n };\n const assertIsHtmlFrameElement = value => {\n return assertIsHtmlElementOfType(value, TagName.FRAME);\n };\n const assertIsHtmlIFrameElement = value => {\n return assertIsHtmlElementOfType(value, TagName.IFRAME);\n };\n const assertIsHtmlObjectElement = value => {\n return assertIsHtmlElementOfType(value, TagName.OBJECT);\n };\n const assertIsHtmlScriptElement = value => {\n return assertIsHtmlElementOfType(value, TagName.SCRIPT);\n };\n const debugStringForType = value => {\n if (goog.isObject(value)) {\n try {\n return value.constructor.displayName || value.constructor.name || Object.prototype.toString.call(value);\n } catch (e) {\n return \"\\x3cobject could not be stringified\\x3e\";\n }\n } else {\n return value === undefined ? \"undefined\" : value === null ? \"null\" : typeof value;\n }\n };\n exports = {assertIsElement, assertIsHtmlElement, assertIsHtmlElementOfType, assertIsHtmlAnchorElement, assertIsHtmlButtonElement, assertIsHtmlLinkElement, assertIsHtmlImageElement, assertIsHtmlAudioElement, assertIsHtmlVideoElement, assertIsHtmlInputElement, assertIsHtmlTextAreaElement, assertIsHtmlCanvasElement, assertIsHtmlEmbedElement, assertIsHtmlFormElement, assertIsHtmlFrameElement, assertIsHtmlIFrameElement, assertIsHtmlObjectElement, assertIsHtmlScriptElement,};\n return exports;\n});\n","~:source","/**\n * @license\n * Copyright The Closure Library Authors.\n * SPDX-License-Identifier: Apache-2.0\n */\n\ngoog.module('goog.asserts.dom');\ngoog.module.declareLegacyNamespace();\n\nconst TagName = goog.require('goog.dom.TagName');\nconst asserts = goog.require('goog.asserts');\nconst element = goog.require('goog.dom.element');\n\n/**\n * Checks if the value is a DOM Element if goog.asserts.ENABLE_ASSERTS is true.\n * @param {*} value The value to check.\n * @return {!Element} The value, likely to be a DOM Element when asserts are\n * enabled.\n * @throws {!asserts.AssertionError} When the value is not an Element.\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsElement = (value) => {\n if (asserts.ENABLE_ASSERTS && !element.isElement(value)) {\n asserts.fail(\n `Argument is not an Element; got: ${debugStringForType(value)}`);\n }\n return /** @type {!Element} */ (value);\n};\n\n/**\n * Checks if the value is a DOM HTMLElement if goog.asserts.ENABLE_ASSERTS is\n * true.\n * @param {*} value The value to check.\n * @return {!HTMLElement} The value, likely to be a DOM HTMLElement when asserts\n * are enabled.\n * @throws {!asserts.AssertionError} When the value is not an HTMLElement.\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlElement = (value) => {\n if (asserts.ENABLE_ASSERTS && !element.isHtmlElement(value)) {\n asserts.fail(\n `Argument is not an HTML Element; got: ${debugStringForType(value)}`);\n }\n return /** @type {!HTMLElement} */ (value);\n};\n\n/**\n * Checks if the value is a DOM HTMLElement of the specified tag name / subclass\n * if goog.asserts.ENABLE_ASSERTS is true.\n * @param {*} value The value to check.\n * @param {!TagName<T>} tagName The element tagName to verify the value against.\n * @return {T} The value, likely to be a DOM HTMLElement when asserts are\n * enabled. The exact return type will match the parameterized type\n * of the tagName as specified in goog.dom.TagName.\n * @throws {!asserts.AssertionError} When the value is not an HTMLElement with\n * the appropriate tagName.\n * @template T\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlElementOfType = (value, tagName) => {\n if (asserts.ENABLE_ASSERTS && !element.isHtmlElementOfType(value, tagName)) {\n asserts.fail(\n `Argument is not an HTML Element with tag name ` +\n `${tagName.toString()}; got: ${debugStringForType(value)}`);\n }\n return /** @type {T} */ (value);\n};\n\n/**\n * Checks if the value is an HTMLAnchorElement if goog.asserts.ENABLE_ASSERTS is\n * true.\n * @param {*} value\n * @return {!HTMLAnchorElement}\n * @throws {!asserts.AssertionError}\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlAnchorElement = (value) => {\n return assertIsHtmlElementOfType(value, TagName.A);\n};\n\n/**\n * Checks if the value is an HTMLButtonElement if goog.asserts.ENABLE_ASSERTS is\n * true.\n * @param {*} value\n * @return {!HTMLButtonElement}\n * @throws {!asserts.AssertionError}\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlButtonElement = (value) => {\n return assertIsHtmlElementOfType(value, TagName.BUTTON);\n};\n\n/**\n * Checks if the value is an HTMLLinkElement if goog.asserts.ENABLE_ASSERTS is\n * true.\n * @param {*} value\n * @return {!HTMLLinkElement}\n * @throws {!asserts.AssertionError}\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlLinkElement = (value) => {\n return assertIsHtmlElementOfType(value, TagName.LINK);\n};\n\n/**\n * Checks if the value is an HTMLImageElement if goog.asserts.ENABLE_ASSERTS is\n * true.\n * @param {*} value\n * @return {!HTMLImageElement}\n * @throws {!asserts.AssertionError}\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlImageElement = (value) => {\n return assertIsHtmlElementOfType(value, TagName.IMG);\n};\n\n/**\n * Checks if the value is an HTMLAudioElement if goog.asserts.ENABLE_ASSERTS is\n * true.\n * @param {*} value\n * @return {!HTMLAudioElement}\n * @throws {!asserts.AssertionError}\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlAudioElement = (value) => {\n return assertIsHtmlElementOfType(value, TagName.AUDIO);\n};\n\n/**\n * Checks if the value is an HTMLVideoElement if goog.asserts.ENABLE_ASSERTS is\n * true.\n * @param {*} value\n * @return {!HTMLVideoElement}\n * @throws {!asserts.AssertionError}\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlVideoElement = (value) => {\n return assertIsHtmlElementOfType(value, TagName.VIDEO);\n};\n\n/**\n * Checks if the value is an HTMLInputElement if goog.asserts.ENABLE_ASSERTS is\n * true.\n * @param {*} value\n * @return {!HTMLInputElement}\n * @throws {!asserts.AssertionError}\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlInputElement = (value) => {\n return assertIsHtmlElementOfType(value, TagName.INPUT);\n};\n\n/**\n * Checks if the value is an HTMLTextAreaElement if goog.asserts.ENABLE_ASSERTS\n * is true.\n * @param {*} value\n * @return {!HTMLTextAreaElement}\n * @throws {!asserts.AssertionError}\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlTextAreaElement = (value) => {\n return assertIsHtmlElementOfType(value, TagName.TEXTAREA);\n};\n\n/**\n * Checks if the value is an HTMLCanvasElement if goog.asserts.ENABLE_ASSERTS is\n * true.\n * @param {*} value\n * @return {!HTMLCanvasElement}\n * @throws {!asserts.AssertionError}\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlCanvasElement = (value) => {\n return assertIsHtmlElementOfType(value, TagName.CANVAS);\n};\n\n/**\n * Checks if the value is an HTMLEmbedElement if goog.asserts.ENABLE_ASSERTS is\n * true.\n * @param {*} value\n * @return {!HTMLEmbedElement}\n * @throws {!asserts.AssertionError}\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlEmbedElement = (value) => {\n return assertIsHtmlElementOfType(value, TagName.EMBED);\n};\n\n/**\n * Checks if the value is an HTMLFormElement if goog.asserts.ENABLE_ASSERTS is\n * true.\n * @param {*} value\n * @return {!HTMLFormElement}\n * @throws {!asserts.AssertionError}\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlFormElement = (value) => {\n return assertIsHtmlElementOfType(value, TagName.FORM);\n};\n\n/**\n * Checks if the value is an HTMLFrameElement if goog.asserts.ENABLE_ASSERTS is\n * true.\n * @param {*} value\n * @return {!HTMLFrameElement}\n * @throws {!asserts.AssertionError}\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlFrameElement = (value) => {\n return assertIsHtmlElementOfType(value, TagName.FRAME);\n};\n\n/**\n * Checks if the value is an HTMLIFrameElement if goog.asserts.ENABLE_ASSERTS is\n * true.\n * @param {*} value\n * @return {!HTMLIFrameElement}\n * @throws {!asserts.AssertionError}\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlIFrameElement = (value) => {\n return assertIsHtmlElementOfType(value, TagName.IFRAME);\n};\n\n/**\n * Checks if the value is an HTMLObjectElement if goog.asserts.ENABLE_ASSERTS is\n * true.\n * @param {*} value\n * @return {!HTMLObjectElement}\n * @throws {!asserts.AssertionError}\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlObjectElement = (value) => {\n return assertIsHtmlElementOfType(value, TagName.OBJECT);\n};\n\n/**\n * Checks if the value is an HTMLScriptElement if goog.asserts.ENABLE_ASSERTS is\n * true.\n * @param {*} value\n * @return {!HTMLScriptElement}\n * @throws {!asserts.AssertionError}\n * @closurePrimitive {asserts.matchesReturn}\n */\nconst assertIsHtmlScriptElement = (value) => {\n return assertIsHtmlElementOfType(value, TagName.SCRIPT);\n};\n\n/**\n * Returns a string representation of a value's type.\n * @param {*} value An object, or primitive.\n * @return {string} The best display name for the value.\n */\nconst debugStringForType = (value) => {\n if (goog.isObject(value)) {\n try {\n return /** @type {string|undefined} */ (value.constructor.displayName) ||\n value.constructor.name ||\n Object.prototype.toString.call(value);\n } catch (e) {\n return '<object could not be stringified>';\n }\n } else {\n return value === undefined ? 'undefined' :\n value === null ? 'null' : typeof value;\n }\n};\n\nexports = {\n assertIsElement,\n assertIsHtmlElement,\n assertIsHtmlElementOfType,\n assertIsHtmlAnchorElement,\n assertIsHtmlButtonElement,\n assertIsHtmlLinkElement,\n assertIsHtmlImageElement,\n assertIsHtmlAudioElement,\n assertIsHtmlVideoElement,\n assertIsHtmlInputElement,\n assertIsHtmlTextAreaElement,\n assertIsHtmlCanvasElement,\n assertIsHtmlEmbedElement,\n assertIsHtmlFormElement,\n assertIsHtmlFrameElement,\n assertIsHtmlIFrameElement,\n assertIsHtmlObjectElement,\n assertIsHtmlScriptElement,\n};\n","~:compiled-at",1684858197856,"~:source-map-json","{\n\"version\":3,\n\"file\":\"goog.asserts.dom.js\",\n\"lineCount\":85,\n\"mappings\":\"AAAA,IAAA,CAAA,UAAA,CAAA,QAAA,CAAA,OAAA,CAAA;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AZQ,EAaRE,wBAbQ,EAcRE,uBAdQ,EAeRE,wBAfQ,EAgBRE,yBAhBQ,EAiBRE,yBAjBQ,EAkBRE,yBAlBQ,EAAV;AA5QA,SAAA,OAAA;AAAA,CAAA,CAAA;;\",\n\"sources\":[\"goog/asserts/dom.js\"],\n\"sourcesContent\":[\"/**\\n * @license\\n * Copyright The Closure Library Authors.\\n * SPDX-License-Identifier: Apache-2.0\\n */\\n\\ngoog.module('goog.asserts.dom');\\ngoog.module.declareLegacyNamespace();\\n\\nconst TagName = goog.require('goog.dom.TagName');\\nconst asserts = goog.require('goog.asserts');\\nconst element = goog.require('goog.dom.element');\\n\\n/**\\n * Checks if the value is a DOM Element if goog.asserts.ENABLE_ASSERTS is true.\\n * @param {*} value The value to check.\\n * @return {!Element} The value, likely to be a DOM Element when asserts are\\n * enabled.\\n * @throws {!asserts.AssertionError} When the value is not an Element.\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsElement = (value) => {\\n if (asserts.ENABLE_ASSERTS && !element.isElement(value)) {\\n asserts.fail(\\n `Argument is not an Element; got: ${debugStringForType(value)}`);\\n }\\n return /** @type {!Element} */ (value);\\n};\\n\\n/**\\n * Checks if the value is a DOM HTMLElement if goog.asserts.ENABLE_ASSERTS is\\n * true.\\n * @param {*} value The value to check.\\n * @return {!HTMLElement} The value, likely to be a DOM HTMLElement when asserts\\n * are enabled.\\n * @throws {!asserts.AssertionError} When the value is not an HTMLElement.\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlElement = (value) => {\\n if (asserts.ENABLE_ASSERTS && !element.isHtmlElement(value)) {\\n asserts.fail(\\n `Argument is not an HTML Element; got: ${debugStringForType(value)}`);\\n }\\n return /** @type {!HTMLElement} */ (value);\\n};\\n\\n/**\\n * Checks if the value is a DOM HTMLElement of the specified tag name / subclass\\n * if goog.asserts.ENABLE_ASSERTS is true.\\n * @param {*} value The value to check.\\n * @param {!TagName<T>} tagName The element tagName to verify the value against.\\n * @return {T} The value, likely to be a DOM HTMLElement when asserts are\\n * enabled. The exact return type will match the parameterized type\\n * of the tagName as specified in goog.dom.TagName.\\n * @throws {!asserts.AssertionError} When the value is not an HTMLElement with\\n * the appropriate tagName.\\n * @template T\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlElementOfType = (value, tagName) => {\\n if (asserts.ENABLE_ASSERTS && !element.isHtmlElementOfType(value, tagName)) {\\n asserts.fail(\\n `Argument is not an HTML Element with tag name ` +\\n `${tagName.toString()}; got: ${debugStringForType(value)}`);\\n }\\n return /** @type {T} */ (value);\\n};\\n\\n/**\\n * Checks if the value is an HTMLAnchorElement if goog.asserts.ENABLE_ASSERTS is\\n * true.\\n * @param {*} value\\n * @return {!HTMLAnchorElement}\\n * @throws {!asserts.AssertionError}\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlAnchorElement = (value) => {\\n return assertIsHtmlElementOfType(value, TagName.A);\\n};\\n\\n/**\\n * Checks if the value is an HTMLButtonElement if goog.asserts.ENABLE_ASSERTS is\\n * true.\\n * @param {*} value\\n * @return {!HTMLButtonElement}\\n * @throws {!asserts.AssertionError}\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlButtonElement = (value) => {\\n return assertIsHtmlElementOfType(value, TagName.BUTTON);\\n};\\n\\n/**\\n * Checks if the value is an HTMLLinkElement if goog.asserts.ENABLE_ASSERTS is\\n * true.\\n * @param {*} value\\n * @return {!HTMLLinkElement}\\n * @throws {!asserts.AssertionError}\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlLinkElement = (value) => {\\n return assertIsHtmlElementOfType(value, TagName.LINK);\\n};\\n\\n/**\\n * Checks if the value is an HTMLImageElement if goog.asserts.ENABLE_ASSERTS is\\n * true.\\n * @param {*} value\\n * @return {!HTMLImageElement}\\n * @throws {!asserts.AssertionError}\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlImageElement = (value) => {\\n return assertIsHtmlElementOfType(value, TagName.IMG);\\n};\\n\\n/**\\n * Checks if the value is an HTMLAudioElement if goog.asserts.ENABLE_ASSERTS is\\n * true.\\n * @param {*} value\\n * @return {!HTMLAudioElement}\\n * @throws {!asserts.AssertionError}\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlAudioElement = (value) => {\\n return assertIsHtmlElementOfType(value, TagName.AUDIO);\\n};\\n\\n/**\\n * Checks if the value is an HTMLVideoElement if goog.asserts.ENABLE_ASSERTS is\\n * true.\\n * @param {*} value\\n * @return {!HTMLVideoElement}\\n * @throws {!asserts.AssertionError}\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlVideoElement = (value) => {\\n return assertIsHtmlElementOfType(value, TagName.VIDEO);\\n};\\n\\n/**\\n * Checks if the value is an HTMLInputElement if goog.asserts.ENABLE_ASSERTS is\\n * true.\\n * @param {*} value\\n * @return {!HTMLInputElement}\\n * @throws {!asserts.AssertionError}\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlInputElement = (value) => {\\n return assertIsHtmlElementOfType(value, TagName.INPUT);\\n};\\n\\n/**\\n * Checks if the value is an HTMLTextAreaElement if goog.asserts.ENABLE_ASSERTS\\n * is true.\\n * @param {*} value\\n * @return {!HTMLTextAreaElement}\\n * @throws {!asserts.AssertionError}\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlTextAreaElement = (value) => {\\n return assertIsHtmlElementOfType(value, TagName.TEXTAREA);\\n};\\n\\n/**\\n * Checks if the value is an HTMLCanvasElement if goog.asserts.ENABLE_ASSERTS is\\n * true.\\n * @param {*} value\\n * @return {!HTMLCanvasElement}\\n * @throws {!asserts.AssertionError}\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlCanvasElement = (value) => {\\n return assertIsHtmlElementOfType(value, TagName.CANVAS);\\n};\\n\\n/**\\n * Checks if the value is an HTMLEmbedElement if goog.asserts.ENABLE_ASSERTS is\\n * true.\\n * @param {*} value\\n * @return {!HTMLEmbedElement}\\n * @throws {!asserts.AssertionError}\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlEmbedElement = (value) => {\\n return assertIsHtmlElementOfType(value, TagName.EMBED);\\n};\\n\\n/**\\n * Checks if the value is an HTMLFormElement if goog.asserts.ENABLE_ASSERTS is\\n * true.\\n * @param {*} value\\n * @return {!HTMLFormElement}\\n * @throws {!asserts.AssertionError}\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlFormElement = (value) => {\\n return assertIsHtmlElementOfType(value, TagName.FORM);\\n};\\n\\n/**\\n * Checks if the value is an HTMLFrameElement if goog.asserts.ENABLE_ASSERTS is\\n * true.\\n * @param {*} value\\n * @return {!HTMLFrameElement}\\n * @throws {!asserts.AssertionError}\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlFrameElement = (value) => {\\n return assertIsHtmlElementOfType(value, TagName.FRAME);\\n};\\n\\n/**\\n * Checks if the value is an HTMLIFrameElement if goog.asserts.ENABLE_ASSERTS is\\n * true.\\n * @param {*} value\\n * @return {!HTMLIFrameElement}\\n * @throws {!asserts.AssertionError}\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlIFrameElement = (value) => {\\n return assertIsHtmlElementOfType(value, TagName.IFRAME);\\n};\\n\\n/**\\n * Checks if the value is an HTMLObjectElement if goog.asserts.ENABLE_ASSERTS is\\n * true.\\n * @param {*} value\\n * @return {!HTMLObjectElement}\\n * @throws {!asserts.AssertionError}\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlObjectElement = (value) => {\\n return assertIsHtmlElementOfType(value, TagName.OBJECT);\\n};\\n\\n/**\\n * Checks if the value is an HTMLScriptElement if goog.asserts.ENABLE_ASSERTS is\\n * true.\\n * @param {*} value\\n * @return {!HTMLScriptElement}\\n * @throws {!asserts.AssertionError}\\n * @closurePrimitive {asserts.matchesReturn}\\n */\\nconst assertIsHtmlScriptElement = (value) => {\\n return assertIsHtmlElementOfType(value, TagName.SCRIPT);\\n};\\n\\n/**\\n * Returns a string representation of a value's type.\\n * @param {*} value An object, or primitive.\\n * @return {string} The best display name for the value.\\n */\\nconst debugStringForType = (value) => {\\n if (goog.isObject(value)) {\\n try {\\n return /** @type {string|undefined} */ (value.constructor.displayName) ||\\n value.constructor.name ||\\n Object.prototype.toString.call(value);\\n } catch (e) {\\n return '<object could not be stringified>';\\n }\\n } else {\\n return value === undefined ? 'undefined' :\\n value === null ? 'null' : typeof value;\\n }\\n};\\n\\nexports = {\\n assertIsElement,\\n assertIsHtmlElement,\\n assertIsHtmlElementOfType,\\n assertIsHtmlAnchorElement,\\n assertIsHtmlButtonElement,\\n assertIsHtmlLinkElement,\\n assertIsHtmlImageElement,\\n assertIsHtmlAudioElement,\\n assertIsHtmlVideoElement,\\n assertIsHtmlInputElement,\\n assertIsHtmlTextAreaElement,\\n assertIsHtmlCanvasElement,\\n assertIsHtmlEmbedElement,\\n assertIsHtmlFormElement,\\n assertIsHtmlFrameElement,\\n assertIsHtmlIFrameElement,\\n assertIsHtmlObjectElement,\\n assertIsHtmlScriptElement,\\n};\\n\"],\n\"names\":[\"goog\",\"module\",\"declareLegacyNamespace\",\"TagName\",\"require\",\"asserts\",\"element\",\"assertIsElement\",\"value\",\"ENABLE_ASSERTS\",\"isElement\",\"fail\",\"debugStringForType\",\"assertIsHtmlElement\",\"isHtmlElement\",\"assertIsHtmlElementOfType\",\"tagName\",\"isHtmlElementOfType\",\"toString\",\"assertIsHtmlAnchorElement\",\"A\",\"assertIsHtmlButtonElement\",\"BUTTON\",\"assertIsHtmlLinkElement\",\"LINK\",\"assertIsHtmlImageElement\",\"IMG\",\"assertIsHtmlAudioElement\",\"AUDIO\",\"assertIsHtmlVideoElement\",\"VIDEO\",\"assertIsHtmlInputElement\",\"INPUT\",\"assertIsHtmlTextAreaElement\",\"TEXTAREA\",\"assertIsHtmlCanvasElement\",\"CANVAS\",\"assertIsHtmlEmbedElement\",\"EMBED\",\"assertIsHtmlFormElement\",\"FORM\",\"assertIsHtmlFrameElement\",\"FRAME\",\"assertIsHtmlIFrameElement\",\"IFRAME\",\"assertIsHtmlObjectElement\",\"OBJECT\",\"assertIsHtmlScriptElement\",\"SCRIPT\",\"isObject\",\"constructor\",\"displayName\",\"name\",\"Object\",\"prototype\",\"call\",\"e\",\"undefined\",\"exports\"]\n}\n"]