From 237ec2a63df376bda5fc3b2acc11c7129ed20a78 Mon Sep 17 00:00:00 2001 From: sb1-designsystem <37370366+sb1-designsystem@users.noreply.github.com> Date: Thu, 1 Aug 2024 09:50:16 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20SpareBan?= =?UTF-8?q?k1/designsystem@a043384b5a84ae5be060f7dfed445e1ba6ba7b72=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dialog-polyfill.esm.377e4aa1.js | 2 - dialog-polyfill.esm.377e4aa1.js.map | 1 - index.0a3973c1.js | 156 ++++++++++++++++++ ...x.f8720f36.js.map => index.0a3973c1.js.map | 2 +- index.f8720f36.js | 156 ------------------ index.html | 2 +- index.runtime.c74f406a.js | 2 - index.runtime.c74f406a.js.map | 1 - 8 files changed, 158 insertions(+), 164 deletions(-) delete mode 100644 dialog-polyfill.esm.377e4aa1.js delete mode 100644 dialog-polyfill.esm.377e4aa1.js.map create mode 100644 index.0a3973c1.js rename index.f8720f36.js.map => index.0a3973c1.js.map (68%) delete mode 100644 index.f8720f36.js delete mode 100644 index.runtime.c74f406a.js delete mode 100644 index.runtime.c74f406a.js.map diff --git a/dialog-polyfill.esm.377e4aa1.js b/dialog-polyfill.esm.377e4aa1.js deleted file mode 100644 index 0f0a5a170c..0000000000 --- a/dialog-polyfill.esm.377e4aa1.js +++ /dev/null @@ -1,2 +0,0 @@ -(0,globalThis.parcelRequire4270.register)("iTnlJ",function(e,t){Object.defineProperty(e.exports,"default",{get:()=>b,set:void 0,enumerable:!0,configurable:!0});var o=window.CustomEvent;function i(e,t){var o="on"+t.type.toLowerCase();return"function"==typeof e[o]&&e[o](t),e.dispatchEvent(t)}function n(e){for(;e;){if("dialog"===e.localName)return e;e=e.parentElement?e.parentElement:e.parentNode?e.parentNode.host:null}return null}function a(e){for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;e&&e.blur&&e!==document.body&&e.blur()}function r(e){return!!(e&&e.hasAttribute("method"))&&"dialog"===e.getAttribute("method").toLowerCase()}function l(e){return e.isConnected||document.body.contains(e)}function s(e){if(e.submitter)return e.submitter;var t=e.target;if(!(t instanceof HTMLFormElement))return null;var o=c.formSubmitter;if(!o){var i=e.target;o=("getRootNode"in i&&i.getRootNode()||document).activeElement}return o&&o.form===t?o:null}function d(e){if(!e.defaultPrevented){var t=e.target,o=c.imagemapUseValue,i=s(e);null===o&&i&&(o=i.value);var a=n(t);a&&"dialog"===(i&&i.getAttribute("formmethod")||t.getAttribute("method"))&&(e.preventDefault(),null!=o?a.close(o):a.close())}}function u(e){if(this.dialog_=e,this.replacedStyleTop_=!1,this.openAsModal_=!1,e.hasAttribute("role")||e.setAttribute("role","dialog"),e.show=this.show.bind(this),e.showModal=this.showModal.bind(this),e.close=this.close.bind(this),e.addEventListener("submit",d,!1),"returnValue"in e||(e.returnValue=""),"MutationObserver"in window)new MutationObserver(this.maybeHideModal.bind(this)).observe(e,{attributes:!0,attributeFilter:["open"]});else{var t,o=!1,i=(function(){o?this.downgradeModal():this.maybeHideModal(),o=!1}).bind(this),n=function(n){if(n.target===e){var a="DOMNodeRemoved";o|=n.type.substr(0,a.length)===a,window.clearTimeout(t),t=window.setTimeout(i,0)}};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach(function(t){e.addEventListener(t,n)})}Object.defineProperty(e,"open",{set:this.setOpen.bind(this),get:e.hasAttribute.bind(e,"open")}),this.backdrop_=document.createElement("div"),this.backdrop_.className="backdrop",this.backdrop_.addEventListener("mouseup",this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener("mousedown",this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener("click",this.backdropMouseEvent_.bind(this))}o&&"object"!=typeof o||((o=function(e,t){t=t||{};var o=document.createEvent("CustomEvent");return o.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail||null),o}).prototype=window.Event.prototype),u.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute("open")&&l(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex="",this.replacedStyleTop_&&(this.dialog_.style.top="",this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),c.dm.removeDialog(this))},setOpen:function(e){e?this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open",""):(this.dialog_.removeAttribute("open"),this.maybeHideModal())},backdropMouseEvent_:function(e){if(this.dialog_.hasAttribute("tabindex"))this.dialog_.focus();else{var t=document.createElement("div");this.dialog_.insertBefore(t,this.dialog_.firstChild),t.tabIndex=-1,t.focus(),this.dialog_.removeChild(t)}var o=document.createEvent("MouseEvents");o.initMouseEvent(e.type,e.bubbles,e.cancelable,window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),this.dialog_.dispatchEvent(o),e.stopPropagation()},focus_:function(){var e=this.dialog_.querySelector("[autofocus]:not([disabled])");!e&&this.dialog_.tabIndex>=0&&(e=this.dialog_),e||(e=function e(t){var o=["button","input","keygen","select","textarea"].map(function(e){return e+":not([disabled])"});o.push('[tabindex]:not([disabled]):not([tabindex=""])');var i=t.querySelector(o.join(", "));if(!i&&"attachShadow"in Element.prototype)for(var n=t.querySelectorAll("*"),a=0;a, the polyfill may not work correctly",e),"dialog"!==e.localName)throw Error("Failed to register dialog: The element is not a dialog.");new u(e)},c.registerDialog=function(e){e.showModal||c.forceRegisterDialog(e)},c.DialogManager=function(){this.pendingDialogStack=[];var e=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",(function(t){this.forwardTab_=void 0,t.stopPropagation(),e([])}).bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver(function(t){var o=[];t.forEach(function(e){for(var t,i=0;t=e.removedNodes[i];++i)t instanceof Element&&("dialog"===t.localName&&o.push(t),o=o.concat(t.querySelectorAll("dialog")))}),o.length&&e(o)}))},c.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},c.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},c.DialogManager.prototype.updateStacking=function(){for(var e,t=this.zIndexHigh_,o=0;e=this.pendingDialogStack[o];++o)e.updateZIndex(--t,--t),0===o&&(this.overlay.style.zIndex=--t);var i=this.pendingDialogStack[0];i?(i.dialog.parentNode||document.body).appendChild(this.overlay):this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},c.DialogManager.prototype.containedByTopDialog_=function(e){for(;e=n(e);){for(var t,o=0;t=this.pendingDialogStack[o];++o)if(t.dialog===e)return 0===o;e=e.parentElement}return!1},c.DialogManager.prototype.handleFocus_=function(e){var t=e.composedPath?e.composedPath()[0]:e.target;if(!this.containedByTopDialog_(t)&&document.activeElement!==document.documentElement&&(e.preventDefault(),e.stopPropagation(),a(t),void 0!==this.forwardTab_)){var o=this.pendingDialogStack[0];return o.dialog.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?o.focus_():t!==document.documentElement&&document.documentElement.focus()),!1}},c.DialogManager.prototype.handleKey_=function(e){if(this.forwardTab_=void 0,27===e.keyCode){e.preventDefault(),e.stopPropagation();var t=new o("cancel",{bubbles:!1,cancelable:!0}),n=this.pendingDialogStack[0];n&&i(n.dialog,t)&&n.dialog.close()}else 9===e.keyCode&&(this.forwardTab_=!e.shiftKey)},c.DialogManager.prototype.checkDOM_=function(e){this.pendingDialogStack.slice().forEach(function(t){-1!==e.indexOf(t.dialog)?t.downgradeModal():t.maybeHideModal()})},c.DialogManager.prototype.pushDialog=function(e){var t=(this.zIndexHigh_-this.zIndexLow_)/2-1;return!(this.pendingDialogStack.length>=t)&&(1===this.pendingDialogStack.unshift(e)&&this.blockDocument(),this.updateStacking(),!0)},c.DialogManager.prototype.removeDialog=function(e){var t=this.pendingDialogStack.indexOf(e);-1!==t&&(this.pendingDialogStack.splice(t,1),0===this.pendingDialogStack.length&&this.unblockDocument(),this.updateStacking())},c.dm=new c.DialogManager,c.formSubmitter=null,c.imagemapUseValue=null,void 0===window.HTMLDialogElement){var h=document.createElement("form");if(h.setAttribute("method","dialog"),"dialog"!==h.method){var g=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(g){var p=g.get;g.get=function(){return r(this)?"dialog":p.call(this)};var m=g.set;g.set=function(e){return"string"==typeof e&&"dialog"===e.toLowerCase()?this.setAttribute("method",e):m.call(this,e)},Object.defineProperty(HTMLFormElement.prototype,"method",g)}}document.addEventListener("click",function(e){if(c.formSubmitter=null,c.imagemapUseValue=null,!e.defaultPrevented){var t=e.target;if("composedPath"in e&&(t=e.composedPath().shift()||t),t&&r(t.form)){if(!("submit"===t.type&&["button","input"].indexOf(t.localName)>-1)){if(!("input"===t.localName&&"image"===t.type))return;c.imagemapUseValue=e.offsetX+","+e.offsetY}n(t)&&(c.formSubmitter=t)}}},!1),document.addEventListener("submit",function(e){var t=e.target;if(!n(t)){var o=s(e);"dialog"===(o&&o.getAttribute("formmethod")||t.getAttribute("method"))&&e.preventDefault()}});var f=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){if(!r(this))return f.call(this);var e=n(this);e&&e.close()}}var b=c}); -//# sourceMappingURL=dialog-polyfill.esm.377e4aa1.js.map diff --git a/dialog-polyfill.esm.377e4aa1.js.map b/dialog-polyfill.esm.377e4aa1.js.map deleted file mode 100644 index 1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modules/dialog-polyfill/dist/dialog-polyfill.esm.js"],"sourcesContent":["\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\n var $parcel$global = globalThis;\n var parcelRequire = $parcel$global[\"parcelRequire4270\"];\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"iTnlJ\", function(module, exports) {\n\n$parcel$export(module.exports, \"default\", () => $dc0f79ca3b6ad5d8$export$2e2bcd8739ae039);\n// nb. This is for IE10 and lower _only_.\nvar $dc0f79ca3b6ad5d8$var$supportCustomEvent = window.CustomEvent;\nif (!$dc0f79ca3b6ad5d8$var$supportCustomEvent || typeof $dc0f79ca3b6ad5d8$var$supportCustomEvent === \"object\") {\n $dc0f79ca3b6ad5d8$var$supportCustomEvent = function CustomEvent(event, x) {\n x = x || {};\n var ev = document.createEvent(\"CustomEvent\");\n ev.initCustomEvent(event, !!x.bubbles, !!x.cancelable, x.detail || null);\n return ev;\n };\n $dc0f79ca3b6ad5d8$var$supportCustomEvent.prototype = window.Event.prototype;\n}\n/**\n * Dispatches the passed event to both an \"on\" handler as well as via the\n * normal dispatch operation. Does not bubble.\n *\n * @param {!EventTarget} target\n * @param {!Event} event\n * @return {boolean}\n */ function $dc0f79ca3b6ad5d8$var$safeDispatchEvent(target, event) {\n var check = \"on\" + event.type.toLowerCase();\n if (typeof target[check] === \"function\") target[check](event);\n return target.dispatchEvent(event);\n}\n/**\n * @param {Element} el to check for stacking context\n * @return {boolean} whether this el or its parents creates a stacking context\n */ function $dc0f79ca3b6ad5d8$var$createsStackingContext(el) {\n while(el && el !== document.body){\n var s = window.getComputedStyle(el);\n var invalid = function(k, ok) {\n return !(s[k] === undefined || s[k] === ok);\n };\n if (s.opacity < 1 || invalid(\"zIndex\", \"auto\") || invalid(\"transform\", \"none\") || invalid(\"mixBlendMode\", \"normal\") || invalid(\"filter\", \"none\") || invalid(\"perspective\", \"none\") || s[\"isolation\"] === \"isolate\" || s.position === \"fixed\" || s.webkitOverflowScrolling === \"touch\") return true;\n el = el.parentElement;\n }\n return false;\n}\n/**\n * Finds the nearest from the passed element.\n *\n * @param {Element} el to search from\n * @return {HTMLDialogElement} dialog found\n */ function $dc0f79ca3b6ad5d8$var$findNearestDialog(el) {\n while(el){\n if (el.localName === \"dialog\") return /** @type {HTMLDialogElement} */ el;\n if (el.parentElement) el = el.parentElement;\n else if (el.parentNode) el = el.parentNode.host;\n else el = null;\n }\n return null;\n}\n/**\n * Blur the specified element, as long as it's not the HTML body element.\n * This works around an IE9/10 bug - blurring the body causes Windows to\n * blur the whole application.\n *\n * @param {Element} el to blur\n */ function $dc0f79ca3b6ad5d8$var$safeBlur(el) {\n // Find the actual focused element when the active element is inside a shadow root\n while(el && el.shadowRoot && el.shadowRoot.activeElement)el = el.shadowRoot.activeElement;\n if (el && el.blur && el !== document.body) el.blur();\n}\n/**\n * @param {!NodeList} nodeList to search\n * @param {Node} node to find\n * @return {boolean} whether node is inside nodeList\n */ function $dc0f79ca3b6ad5d8$var$inNodeList(nodeList, node) {\n for(var i = 0; i < nodeList.length; ++i){\n if (nodeList[i] === node) return true;\n }\n return false;\n}\n/**\n * @param {HTMLFormElement} el to check\n * @return {boolean} whether this form has method=\"dialog\"\n */ function $dc0f79ca3b6ad5d8$var$isFormMethodDialog(el) {\n if (!el || !el.hasAttribute(\"method\")) return false;\n return el.getAttribute(\"method\").toLowerCase() === \"dialog\";\n}\n/**\n * @param {!DocumentFragment|!Element} hostElement\n * @return {?Element}\n */ function $dc0f79ca3b6ad5d8$var$findFocusableElementWithin(hostElement) {\n // Note that this is 'any focusable area'. This list is probably not exhaustive, but the\n // alternative involves stepping through and trying to focus everything.\n var opts = [\n \"button\",\n \"input\",\n \"keygen\",\n \"select\",\n \"textarea\"\n ];\n var query = opts.map(function(el) {\n return el + \":not([disabled])\";\n });\n // TODO(samthor): tabindex values that are not numeric are not focusable.\n query.push('[tabindex]:not([disabled]):not([tabindex=\"\"])'); // tabindex != \"\", not disabled\n var target = hostElement.querySelector(query.join(\", \"));\n if (!target && \"attachShadow\" in Element.prototype) {\n // If we haven't found a focusable target, see if the host element contains an element\n // which has a shadowRoot.\n // Recursively search for the first focusable item in shadow roots.\n var elems = hostElement.querySelectorAll(\"*\");\n for(var i = 0; i < elems.length; i++)if (elems[i].tagName && elems[i].shadowRoot) {\n target = $dc0f79ca3b6ad5d8$var$findFocusableElementWithin(elems[i].shadowRoot);\n if (target) break;\n }\n }\n return target;\n}\n/**\n * Determines if an element is attached to the DOM.\n * @param {Element} element to check\n * @return {boolean} whether the element is in DOM\n */ function $dc0f79ca3b6ad5d8$var$isConnected(element) {\n return element.isConnected || document.body.contains(element);\n}\n/**\n * @param {!Event} event\n * @return {?Element}\n */ function $dc0f79ca3b6ad5d8$var$findFormSubmitter(event) {\n if (event.submitter) return event.submitter;\n var form = event.target;\n if (!(form instanceof HTMLFormElement)) return null;\n var submitter = $dc0f79ca3b6ad5d8$var$dialogPolyfill.formSubmitter;\n if (!submitter) {\n var target = event.target;\n var root = \"getRootNode\" in target && target.getRootNode() || document;\n submitter = root.activeElement;\n }\n if (!submitter || submitter.form !== form) return null;\n return submitter;\n}\n/**\n * @param {!Event} event\n */ function $dc0f79ca3b6ad5d8$var$maybeHandleSubmit(event) {\n if (event.defaultPrevented) return;\n var form = /** @type {!HTMLFormElement} */ event.target;\n // We'd have a value if we clicked on an imagemap.\n var value = $dc0f79ca3b6ad5d8$var$dialogPolyfill.imagemapUseValue;\n var submitter = $dc0f79ca3b6ad5d8$var$findFormSubmitter(event);\n if (value === null && submitter) value = submitter.value;\n // There should always be a dialog as this handler is added specifically on them, but check just\n // in case.\n var dialog = $dc0f79ca3b6ad5d8$var$findNearestDialog(form);\n if (!dialog) return;\n // Prefer formmethod on the button.\n var formmethod = submitter && submitter.getAttribute(\"formmethod\") || form.getAttribute(\"method\");\n if (formmethod !== \"dialog\") return;\n event.preventDefault();\n if (value != null) // nb. we explicitly check against null/undefined\n dialog.close(value);\n else dialog.close();\n}\n/**\n * @param {!HTMLDialogElement} dialog to upgrade\n * @constructor\n */ function $dc0f79ca3b6ad5d8$var$dialogPolyfillInfo(dialog) {\n this.dialog_ = dialog;\n this.replacedStyleTop_ = false;\n this.openAsModal_ = false;\n // Set a11y role. Browsers that support dialog implicitly know this already.\n if (!dialog.hasAttribute(\"role\")) dialog.setAttribute(\"role\", \"dialog\");\n dialog.show = this.show.bind(this);\n dialog.showModal = this.showModal.bind(this);\n dialog.close = this.close.bind(this);\n dialog.addEventListener(\"submit\", $dc0f79ca3b6ad5d8$var$maybeHandleSubmit, false);\n if (!(\"returnValue\" in dialog)) dialog.returnValue = \"\";\n if (\"MutationObserver\" in window) {\n var mo = new MutationObserver(this.maybeHideModal.bind(this));\n mo.observe(dialog, {\n attributes: true,\n attributeFilter: [\n \"open\"\n ]\n });\n } else {\n // IE10 and below support. Note that DOMNodeRemoved etc fire _before_ removal. They also\n // seem to fire even if the element was removed as part of a parent removal. Use the removed\n // events to force downgrade (useful if removed/immediately added).\n var removed = false;\n var cb = (function() {\n removed ? this.downgradeModal() : this.maybeHideModal();\n removed = false;\n }).bind(this);\n var timeout;\n var delayModel = function(ev) {\n if (ev.target !== dialog) return;\n // not for a child element\n var cand = \"DOMNodeRemoved\";\n removed |= ev.type.substr(0, cand.length) === cand;\n window.clearTimeout(timeout);\n timeout = window.setTimeout(cb, 0);\n };\n [\n \"DOMAttrModified\",\n \"DOMNodeRemoved\",\n \"DOMNodeRemovedFromDocument\"\n ].forEach(function(name) {\n dialog.addEventListener(name, delayModel);\n });\n }\n // Note that the DOM is observed inside DialogManager while any dialog\n // is being displayed as a modal, to catch modal removal from the DOM.\n Object.defineProperty(dialog, \"open\", {\n set: this.setOpen.bind(this),\n get: dialog.hasAttribute.bind(dialog, \"open\")\n });\n this.backdrop_ = document.createElement(\"div\");\n this.backdrop_.className = \"backdrop\";\n this.backdrop_.addEventListener(\"mouseup\", this.backdropMouseEvent_.bind(this));\n this.backdrop_.addEventListener(\"mousedown\", this.backdropMouseEvent_.bind(this));\n this.backdrop_.addEventListener(\"click\", this.backdropMouseEvent_.bind(this));\n}\n$dc0f79ca3b6ad5d8$var$dialogPolyfillInfo.prototype = /** @type {HTMLDialogElement.prototype} */ {\n get dialog () {\n return this.dialog_;\n },\n /**\n * Maybe remove this dialog from the modal top layer. This is called when\n * a modal dialog may no longer be tenable, e.g., when the dialog is no\n * longer open or is no longer part of the DOM.\n */ maybeHideModal: function() {\n if (this.dialog_.hasAttribute(\"open\") && $dc0f79ca3b6ad5d8$var$isConnected(this.dialog_)) return;\n this.downgradeModal();\n },\n /**\n * Remove this dialog from the modal top layer, leaving it as a non-modal.\n */ downgradeModal: function() {\n if (!this.openAsModal_) return;\n this.openAsModal_ = false;\n this.dialog_.style.zIndex = \"\";\n // This won't match the native exactly because if the user set top on a centered\n // polyfill dialog, that top gets thrown away when the dialog is closed. Not sure it's\n // possible to polyfill this perfectly.\n if (this.replacedStyleTop_) {\n this.dialog_.style.top = \"\";\n this.replacedStyleTop_ = false;\n }\n // Clear the backdrop and remove from the manager.\n this.backdrop_.parentNode && this.backdrop_.parentNode.removeChild(this.backdrop_);\n $dc0f79ca3b6ad5d8$var$dialogPolyfill.dm.removeDialog(this);\n },\n /**\n * @param {boolean} value whether to open or close this dialog\n */ setOpen: function(value) {\n if (value) this.dialog_.hasAttribute(\"open\") || this.dialog_.setAttribute(\"open\", \"\");\n else {\n this.dialog_.removeAttribute(\"open\");\n this.maybeHideModal(); // nb. redundant with MutationObserver\n }\n },\n /**\n * Handles mouse events ('mouseup', 'mousedown', 'click') on the fake .backdrop element, redirecting them as if\n * they were on the dialog itself.\n *\n * @param {!Event} e to redirect\n */ backdropMouseEvent_: function(e) {\n if (!this.dialog_.hasAttribute(\"tabindex\")) {\n // Clicking on the backdrop should move the implicit cursor, even if dialog cannot be\n // focused. Create a fake thing to focus on. If the backdrop was _before_ the dialog, this\n // would not be needed - clicks would move the implicit cursor there.\n var fake = document.createElement(\"div\");\n this.dialog_.insertBefore(fake, this.dialog_.firstChild);\n fake.tabIndex = -1;\n fake.focus();\n this.dialog_.removeChild(fake);\n } else this.dialog_.focus();\n var redirectedEvent = document.createEvent(\"MouseEvents\");\n redirectedEvent.initMouseEvent(e.type, e.bubbles, e.cancelable, window, e.detail, e.screenX, e.screenY, e.clientX, e.clientY, e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, e.button, e.relatedTarget);\n this.dialog_.dispatchEvent(redirectedEvent);\n e.stopPropagation();\n },\n /**\n * Focuses on the first focusable element within the dialog. This will always blur the current\n * focus, even if nothing within the dialog is found.\n */ focus_: function() {\n // Find element with `autofocus` attribute, or fall back to the first form/tabindex control.\n var target = this.dialog_.querySelector(\"[autofocus]:not([disabled])\");\n if (!target && this.dialog_.tabIndex >= 0) target = this.dialog_;\n if (!target) target = $dc0f79ca3b6ad5d8$var$findFocusableElementWithin(this.dialog_);\n $dc0f79ca3b6ad5d8$var$safeBlur(document.activeElement);\n target && target.focus();\n },\n /**\n * Sets the zIndex for the backdrop and dialog.\n *\n * @param {number} dialogZ\n * @param {number} backdropZ\n */ updateZIndex: function(dialogZ, backdropZ) {\n if (dialogZ < backdropZ) throw new Error(\"dialogZ should never be < backdropZ\");\n this.dialog_.style.zIndex = dialogZ;\n this.backdrop_.style.zIndex = backdropZ;\n },\n /**\n * Shows the dialog. If the dialog is already open, this does nothing.\n */ show: function() {\n if (!this.dialog_.open) {\n this.setOpen(true);\n this.focus_();\n }\n },\n /**\n * Show this dialog modally.\n */ showModal: function() {\n if (this.dialog_.hasAttribute(\"open\")) throw new Error(\"Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.\");\n if (!$dc0f79ca3b6ad5d8$var$isConnected(this.dialog_)) throw new Error(\"Failed to execute 'showModal' on dialog: The element is not in a Document.\");\n if (!$dc0f79ca3b6ad5d8$var$dialogPolyfill.dm.pushDialog(this)) throw new Error(\"Failed to execute 'showModal' on dialog: There are too many open modal dialogs.\");\n if ($dc0f79ca3b6ad5d8$var$createsStackingContext(this.dialog_.parentElement)) console.warn(\"A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context\");\n this.setOpen(true);\n this.openAsModal_ = true;\n // Optionally center vertically, relative to the current viewport.\n if ($dc0f79ca3b6ad5d8$var$dialogPolyfill.needsCentering(this.dialog_)) {\n $dc0f79ca3b6ad5d8$var$dialogPolyfill.reposition(this.dialog_);\n this.replacedStyleTop_ = true;\n } else this.replacedStyleTop_ = false;\n // Insert backdrop.\n this.dialog_.parentNode.insertBefore(this.backdrop_, this.dialog_.nextSibling);\n // Focus on whatever inside the dialog.\n this.focus_();\n },\n /**\n * Closes this HTMLDialogElement. This is optional vs clearing the open\n * attribute, however this fires a 'close' event.\n *\n * @param {string=} opt_returnValue to use as the returnValue\n */ close: function(opt_returnValue) {\n if (!this.dialog_.hasAttribute(\"open\")) throw new Error(\"Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.\");\n this.setOpen(false);\n // Leave returnValue untouched in case it was set directly on the element\n if (opt_returnValue !== undefined) this.dialog_.returnValue = opt_returnValue;\n // Triggering \"close\" event for any attached listeners on the .\n var closeEvent = new $dc0f79ca3b6ad5d8$var$supportCustomEvent(\"close\", {\n bubbles: false,\n cancelable: false\n });\n $dc0f79ca3b6ad5d8$var$safeDispatchEvent(this.dialog_, closeEvent);\n }\n};\nvar $dc0f79ca3b6ad5d8$var$dialogPolyfill = {};\n$dc0f79ca3b6ad5d8$var$dialogPolyfill.reposition = function(element) {\n var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;\n var topValue = scrollTop + (window.innerHeight - element.offsetHeight) / 2;\n element.style.top = Math.max(scrollTop, topValue) + \"px\";\n};\n$dc0f79ca3b6ad5d8$var$dialogPolyfill.isInlinePositionSetByStylesheet = function(element) {\n for(var i = 0; i < document.styleSheets.length; ++i){\n var styleSheet = document.styleSheets[i];\n var cssRules = null;\n // Some browsers throw on cssRules.\n try {\n cssRules = styleSheet.cssRules;\n } catch (e) {}\n if (!cssRules) continue;\n for(var j = 0; j < cssRules.length; ++j){\n var rule = cssRules[j];\n var selectedNodes = null;\n // Ignore errors on invalid selector texts.\n try {\n selectedNodes = document.querySelectorAll(rule.selectorText);\n } catch (e) {}\n if (!selectedNodes || !$dc0f79ca3b6ad5d8$var$inNodeList(selectedNodes, element)) continue;\n var cssTop = rule.style.getPropertyValue(\"top\");\n var cssBottom = rule.style.getPropertyValue(\"bottom\");\n if (cssTop && cssTop !== \"auto\" || cssBottom && cssBottom !== \"auto\") return true;\n }\n }\n return false;\n};\n$dc0f79ca3b6ad5d8$var$dialogPolyfill.needsCentering = function(dialog) {\n var computedStyle = window.getComputedStyle(dialog);\n if (computedStyle.position !== \"absolute\") return false;\n // We must determine whether the top/bottom specified value is non-auto. In\n // WebKit/Blink, checking computedStyle.top == 'auto' is sufficient, but\n // Firefox returns the used value. So we do this crazy thing instead: check\n // the inline style and then go through CSS rules.\n if (dialog.style.top !== \"auto\" && dialog.style.top !== \"\" || dialog.style.bottom !== \"auto\" && dialog.style.bottom !== \"\") return false;\n return !$dc0f79ca3b6ad5d8$var$dialogPolyfill.isInlinePositionSetByStylesheet(dialog);\n};\n/**\n * @param {!Element} element to force upgrade\n */ $dc0f79ca3b6ad5d8$var$dialogPolyfill.forceRegisterDialog = function(element) {\n if (window.HTMLDialogElement || element.showModal) console.warn(\"This browser already supports , the polyfill may not work correctly\", element);\n if (element.localName !== \"dialog\") throw new Error(\"Failed to register dialog: The element is not a dialog.\");\n new $dc0f79ca3b6ad5d8$var$dialogPolyfillInfo(/** @type {!HTMLDialogElement} */ element);\n};\n/**\n * @param {!Element} element to upgrade, if necessary\n */ $dc0f79ca3b6ad5d8$var$dialogPolyfill.registerDialog = function(element) {\n if (!element.showModal) $dc0f79ca3b6ad5d8$var$dialogPolyfill.forceRegisterDialog(element);\n};\n/**\n * @constructor\n */ $dc0f79ca3b6ad5d8$var$dialogPolyfill.DialogManager = function() {\n /** @type {!Array} */ this.pendingDialogStack = [];\n var checkDOM = this.checkDOM_.bind(this);\n // The overlay is used to simulate how a modal dialog blocks the document.\n // The blocking dialog is positioned on top of the overlay, and the rest of\n // the dialogs on the pending dialog stack are positioned below it. In the\n // actual implementation, the modal dialog stacking is controlled by the\n // top layer, where z-index has no effect.\n this.overlay = document.createElement(\"div\");\n this.overlay.className = \"_dialog_overlay\";\n this.overlay.addEventListener(\"click\", (function(e) {\n this.forwardTab_ = undefined;\n e.stopPropagation();\n checkDOM([]); // sanity-check DOM\n }).bind(this));\n this.handleKey_ = this.handleKey_.bind(this);\n this.handleFocus_ = this.handleFocus_.bind(this);\n this.zIndexLow_ = 100000;\n this.zIndexHigh_ = 100150;\n this.forwardTab_ = undefined;\n if (\"MutationObserver\" in window) this.mo_ = new MutationObserver(function(records) {\n var removed = [];\n records.forEach(function(rec) {\n for(var i = 0, c; c = rec.removedNodes[i]; ++i){\n if (!(c instanceof Element)) continue;\n else if (c.localName === \"dialog\") removed.push(c);\n removed = removed.concat(c.querySelectorAll(\"dialog\"));\n }\n });\n removed.length && checkDOM(removed);\n });\n};\n/**\n * Called on the first modal dialog being shown. Adds the overlay and related\n * handlers.\n */ $dc0f79ca3b6ad5d8$var$dialogPolyfill.DialogManager.prototype.blockDocument = function() {\n document.documentElement.addEventListener(\"focus\", this.handleFocus_, true);\n document.addEventListener(\"keydown\", this.handleKey_);\n this.mo_ && this.mo_.observe(document, {\n childList: true,\n subtree: true\n });\n};\n/**\n * Called on the first modal dialog being removed, i.e., when no more modal\n * dialogs are visible.\n */ $dc0f79ca3b6ad5d8$var$dialogPolyfill.DialogManager.prototype.unblockDocument = function() {\n document.documentElement.removeEventListener(\"focus\", this.handleFocus_, true);\n document.removeEventListener(\"keydown\", this.handleKey_);\n this.mo_ && this.mo_.disconnect();\n};\n/**\n * Updates the stacking of all known dialogs.\n */ $dc0f79ca3b6ad5d8$var$dialogPolyfill.DialogManager.prototype.updateStacking = function() {\n var zIndex = this.zIndexHigh_;\n for(var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i){\n dpi.updateZIndex(--zIndex, --zIndex);\n if (i === 0) this.overlay.style.zIndex = --zIndex;\n }\n // Make the overlay a sibling of the dialog itself.\n var last = this.pendingDialogStack[0];\n if (last) {\n var p = last.dialog.parentNode || document.body;\n p.appendChild(this.overlay);\n } else if (this.overlay.parentNode) this.overlay.parentNode.removeChild(this.overlay);\n};\n/**\n * @param {Element} candidate to check if contained or is the top-most modal dialog\n * @return {boolean} whether candidate is contained in top dialog\n */ $dc0f79ca3b6ad5d8$var$dialogPolyfill.DialogManager.prototype.containedByTopDialog_ = function(candidate) {\n while(candidate = $dc0f79ca3b6ad5d8$var$findNearestDialog(candidate)){\n for(var i = 0, dpi; dpi = this.pendingDialogStack[i]; ++i){\n if (dpi.dialog === candidate) return i === 0; // only valid if top-most\n }\n candidate = candidate.parentElement;\n }\n return false;\n};\n$dc0f79ca3b6ad5d8$var$dialogPolyfill.DialogManager.prototype.handleFocus_ = function(event) {\n var target = event.composedPath ? event.composedPath()[0] : event.target;\n if (this.containedByTopDialog_(target)) return;\n if (document.activeElement === document.documentElement) return;\n event.preventDefault();\n event.stopPropagation();\n $dc0f79ca3b6ad5d8$var$safeBlur(/** @type {Element} */ target);\n if (this.forwardTab_ === undefined) return;\n // move focus only from a tab key\n var dpi = this.pendingDialogStack[0];\n var dialog = dpi.dialog;\n var position = dialog.compareDocumentPosition(target);\n if (position & Node.DOCUMENT_POSITION_PRECEDING) {\n if (this.forwardTab_) // forward\n dpi.focus_();\n else if (target !== document.documentElement) // backwards if we're not already focused on \n document.documentElement.focus();\n }\n return false;\n};\n$dc0f79ca3b6ad5d8$var$dialogPolyfill.DialogManager.prototype.handleKey_ = function(event) {\n this.forwardTab_ = undefined;\n if (event.keyCode === 27) {\n event.preventDefault();\n event.stopPropagation();\n var cancelEvent = new $dc0f79ca3b6ad5d8$var$supportCustomEvent(\"cancel\", {\n bubbles: false,\n cancelable: true\n });\n var dpi = this.pendingDialogStack[0];\n if (dpi && $dc0f79ca3b6ad5d8$var$safeDispatchEvent(dpi.dialog, cancelEvent)) dpi.dialog.close();\n } else if (event.keyCode === 9) this.forwardTab_ = !event.shiftKey;\n};\n/**\n * Finds and downgrades any known modal dialogs that are no longer displayed. Dialogs that are\n * removed and immediately readded don't stay modal, they become normal.\n *\n * @param {!Array} removed that have definitely been removed\n */ $dc0f79ca3b6ad5d8$var$dialogPolyfill.DialogManager.prototype.checkDOM_ = function(removed) {\n // This operates on a clone because it may cause it to change. Each change also calls\n // updateStacking, which only actually needs to happen once. But who removes many modal dialogs\n // at a time?!\n var clone = this.pendingDialogStack.slice();\n clone.forEach(function(dpi) {\n if (removed.indexOf(dpi.dialog) !== -1) dpi.downgradeModal();\n else dpi.maybeHideModal();\n });\n};\n/**\n * @param {!dialogPolyfillInfo} dpi\n * @return {boolean} whether the dialog was allowed\n */ $dc0f79ca3b6ad5d8$var$dialogPolyfill.DialogManager.prototype.pushDialog = function(dpi) {\n var allowed = (this.zIndexHigh_ - this.zIndexLow_) / 2 - 1;\n if (this.pendingDialogStack.length >= allowed) return false;\n if (this.pendingDialogStack.unshift(dpi) === 1) this.blockDocument();\n this.updateStacking();\n return true;\n};\n/**\n * @param {!dialogPolyfillInfo} dpi\n */ $dc0f79ca3b6ad5d8$var$dialogPolyfill.DialogManager.prototype.removeDialog = function(dpi) {\n var index = this.pendingDialogStack.indexOf(dpi);\n if (index === -1) return;\n this.pendingDialogStack.splice(index, 1);\n if (this.pendingDialogStack.length === 0) this.unblockDocument();\n this.updateStacking();\n};\n$dc0f79ca3b6ad5d8$var$dialogPolyfill.dm = new $dc0f79ca3b6ad5d8$var$dialogPolyfill.DialogManager();\n$dc0f79ca3b6ad5d8$var$dialogPolyfill.formSubmitter = null;\n$dc0f79ca3b6ad5d8$var$dialogPolyfill.imagemapUseValue = null;\n/**\n * Installs global handlers, such as click listers and native method overrides. These are needed\n * even if a no dialog is registered, as they deal with
.\n */ if (window.HTMLDialogElement === undefined) {\n /**\n * If HTMLFormElement translates method=\"DIALOG\" into 'get', then replace the descriptor with\n * one that returns the correct value.\n */ var $dc0f79ca3b6ad5d8$var$testForm = document.createElement(\"form\");\n $dc0f79ca3b6ad5d8$var$testForm.setAttribute(\"method\", \"dialog\");\n if ($dc0f79ca3b6ad5d8$var$testForm.method !== \"dialog\") {\n var $dc0f79ca3b6ad5d8$var$methodDescriptor = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, \"method\");\n if ($dc0f79ca3b6ad5d8$var$methodDescriptor) {\n // nb. Some older iOS and older PhantomJS fail to return the descriptor. Don't do anything\n // and don't bother to update the element.\n var $dc0f79ca3b6ad5d8$var$realGet = $dc0f79ca3b6ad5d8$var$methodDescriptor.get;\n $dc0f79ca3b6ad5d8$var$methodDescriptor.get = function() {\n if ($dc0f79ca3b6ad5d8$var$isFormMethodDialog(this)) return \"dialog\";\n return $dc0f79ca3b6ad5d8$var$realGet.call(this);\n };\n var $dc0f79ca3b6ad5d8$var$realSet = $dc0f79ca3b6ad5d8$var$methodDescriptor.set;\n /** @this {HTMLElement} */ $dc0f79ca3b6ad5d8$var$methodDescriptor.set = function(v) {\n if (typeof v === \"string\" && v.toLowerCase() === \"dialog\") return this.setAttribute(\"method\", v);\n return $dc0f79ca3b6ad5d8$var$realSet.call(this, v);\n };\n Object.defineProperty(HTMLFormElement.prototype, \"method\", $dc0f79ca3b6ad5d8$var$methodDescriptor);\n }\n }\n /**\n * Global 'click' handler, to capture the or