PageSourceSearch

https://metroscopia.org/wp-content/themes/metroscopia/assets/dist/js/libs/modal.js?ver=0.0.464

js metroscopia.org collected 2026-09-24 20:07:21 UTC 6,770 bytes, 1 lines download raw bytes

1var aria=aria||{};aria.Utils=aria.Utils||{},(aria=aria||{}).KeyCode={BACKSPACE:8,TAB:9,RETURN:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},aria.Utils=aria.Utils||{},aria.Utils.matches=function(i,e){return Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=i.parentNode.querySelectorAll(e),a=t.length;0<=--a&&t.item(a)!==this;);return-1<a}),i.matches(e)},aria.Utils.remove=function(e){return e.remove&&"function"==typeof e.remove?e.remove():!(!e.parentNode||!e.parentNode.removeChild||"function"!=typeof e.parentNode.removeChild)&&e.parentNode.removeChild(e)},aria.Utils.isFocusable=function(e){if(0<e.tabIndex||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!=e.rel;case"INPUT":return"hidden"!=e.type&&"file"!=e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},aria.Utils.getAncestorBySelector=function(e,t){if(!aria.Utils.matches(e,t+" "+e.tagName))return null;for(var a=e,i=null;null===i;)aria.Utils.matches(a.parentNode,t)?i=a.parentNode:a=a.parentNode;return i},aria.Utils.hasClass=function(e,t){return new RegExp("(\\s|^)"+t+"(\\s|$)").test(e.className)},aria.Utils.addClass=function(e,t){aria.Utils.hasClass(e,t)||(e.className+=" "+t)},aria.Utils.removeClass=function(e,t){var a=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(a," ").trim()},aria.Utils.bindMethods=function(t){Array.prototype.slice.call(arguments,1).forEach(function(e){t[e]=t[e].bind(t)})},aria.Utils.IgnoreUtilFocusChanges=!1,aria.Utils.dialogOpenClass="has-dialog",aria.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var a=e.childNodes[t];if(aria.Utils.attemptFocus(a)||aria.Utils.focusFirstDescendant(a))return!0}return!1},aria.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;0<=t;t--){var a=e.childNodes[t];if(aria.Utils.attemptFocus(a)||aria.Utils.focusLastDescendant(a))return!0}return!1},aria.Utils.attemptFocus=function(e){if(!aria.Utils.isFocusable(e))return!1;aria.Utils.IgnoreUtilFocusChanges=!0;try{window.dcUtils.focusWithoutVisible(e)}catch(e){}return aria.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},aria.OpenDialogList=aria.OpenDialogList||new Array(0),aria.getCurrentDialog=function(){if(aria.OpenDialogList&&aria.OpenDialogList.length)return aria.OpenDialogList[aria.OpenDialogList.length-1]},aria.closeCurrentDialog=function(){var e=aria.getCurrentDialog();return!!e&&(e.close(),!0)},aria.handleEscape=function(e){(e.which||e.keyCode)===aria.KeyCode.ESC&&aria.closeCurrentDialog()&&e.stopPropagation()},document.addEventListener("keyup",aria.handleEscape),aria.Dialog=function(e,t,a,i=!1){if(this.dialogNode=document.getElementById(e),null===this.dialogNode)throw new Error('No element found with id="'+e+'".');var o=["dialog","alertdialog"];if(!(this.dialogNode.getAttribute("role")||"").trim().split(/\s+/g).some(function(t){return o.some(function(e){return t===e})}))throw new Error("Dialog() requires a DOM element with ARIA role of dialog or alertdialog.");var r="dialog__backdrop";if(this.dialogNode.parentNode.classList.contains(r)?this.backdropNode=this.dialogNode.parentNode:(this.backdropNode=document.createElement("div"),this.backdropNode.className=r,this.dialogNode.parentNode.insertBefore(this.backdropNode,this.dialogNode),this.backdropNode.appendChild(this.dialogNode)),document.body.classList.add(aria.Utils.dialogOpenClass),"string"==typeof t)this.focusAfterClosed=document.getElementById(t);else{if("object"!=typeof t)throw new Error("the focusAfterClosed parameter is required for the aria.Dialog constructor.");this.focusAfterClosed=t}this.focusFirst="string"==typeof a?document.getElementById(a):"object"==typeof a?a:null;r=document.createElement("div"),this.preNode=this.dialogNode.parentNode.insertBefore(r,this.dialogNode),this.preNode.tabIndex=0,r=document.createElement("div");this.postNode=this.dialogNode.parentNode.insertBefore(r,this.dialogNode.nextSibling),(this.postNode.tabIndex=0)<aria.OpenDialogList.length&&aria.getCurrentDialog().removeListeners(),this.addListeners(),aria.OpenDialogList.push(this),this.dialogNode.classList.add("__active"),this.dialogNode.querySelectorAll("video[data-src]").forEach(function(e){var t,a=e.getAttribute("data-src"),i=e.getAttribute("data-type");a&&!e.querySelector("source")&&((t=document.createElement("source")).src=a,t.type=i,e.a
1ppendChild(t),e.load())}),this.focusFirst?window.dcUtils.focusWithoutVisible(this.focusFirst):aria.Utils.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,i&&i()},aria.Dialog.prototype.clearDialog=function(){Array.prototype.map.call(this.dialogNode.querySelectorAll("input"),function(e){e.value=""})},aria.Dialog.prototype.close=function(){this.dialogNode.classList.add("__bye"),setTimeout(()=>{aria.OpenDialogList.pop(),this.removeListeners(),aria.Utils.remove(this.preNode),aria.Utils.remove(this.postNode),window.dcUtils.focusWithoutVisible(this.focusAfterClosed),0<aria.OpenDialogList.length&&aria.getCurrentDialog().addListeners(),document.body.classList.remove(aria.Utils.dialogOpenClass),this.dialogNode.classList.remove("__bye","__active"),this.dialogNode.dispatchEvent(new Event("close"))},500)},aria.Dialog.prototype.replace=function(e,t,a){aria.getCurrentDialog();aria.OpenDialogList.pop(),this.removeListeners(),aria.Utils.remove(this.preNode),aria.Utils.remove(this.postNode),this.dialogNode.className="hidden",this.backdropNode.classList.remove("active");var i=t||this.focusAfterClosed;new aria.Dialog(e,i,a)},aria.Dialog.prototype.addListeners=function(){document.addEventListener("focus",this.trapFocus,!0)},aria.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",this.trapFocus,!0)},aria.Dialog.prototype.trapFocus=function(e){var t;aria.Utils.IgnoreUtilFocusChanges||((t=aria.getCurrentDialog()).dialogNode.contains(e.target)?t.lastFocus=e.target:(aria.Utils.focusFirstDescendant(t.dialogNode),t.lastFocus==document.activeElement&&aria.Utils.focusLastDescendant(t.dialogNode),t.lastFocus=document.activeElement))},window.openDialog=function(e,t,a,i){new aria.Dialog(e,t,a,i)},window.closeDialog=function(e){var t=aria.getCurrentDialog(),t=(t.dialogNode.contains(e)&&t.close(),t.dialogNode.querySelector("iframe"));t&&t.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")},window.replaceDialog=function(e,t,a){var i=aria.getCurrentDialog();i.dialogNode.contains(document.activeElement)&&i.replace(e,t,a)};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.