1"use strict";(self.webpackChunkmercury=self.webpackChunkmercury||[]).push([[5133,9186],{889:(t,e)=>{function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}e.Z=void 0;var n=function(){function c(){var t,e,n=this,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},a=this,o=c;if(!(a instanceof o))throw new TypeError("Cannot call a class as a function");for(t in this.active=!1,this.timeout=null,this.eventListeners=[],this.settings={className:"modal"},this.settings)this.settings.hasOwnProperty(t)&&i.hasOwnProperty(t)&&(this.settings[t]=i[t]);for(e in this.template={container:document.createElement("div"),wrapper:document.createElement("div"),content:document.createElement("div")},this.template)this.template[e].className="container"==e?this.settings.className:"".concat(this.settings.className,"__").concat(e);this.template.wrapper.appendChild(this.template.content),this.template.container.appendChild(this.template.wrapper),this.template.container.style.display="none",window.addEventListener("keydown",function(t){n.active&&27==t.keyCode&&n.close()});for(var r in this.template)!function(e){n.template[e].addEventListener("click",function(t){t.preventDefault(),n.active&&t.target===n.template[e]&&n.close()})}(r)}var t,e,n;return t=c,(e=[{key:"append",value:function(t){var e=this;(t=Array.isArray(t)?t:[t]).forEach(function(t){"string"==typeof t?e.template.content.innerHTML+=t:"object"==i(t)&&t.nodeType?e.template.content.appendChild(t):console.warn("This is not valid html or an html element!",t)}),this.callback("append")}},{key:"empty",value:function(){this.template.content.innerHTML="",this.callback("empty")}},{key:"open",value:function(){var t=this;0==this.active&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){document.body.appendChild(t.template.container),t.template.container.style.display="block",t.timeout=setTimeout(function(){t.active=!0,t.template.container.classList.add("".concat(t.settings.className,"--active")),t.callback("open")},100)},100))}},{key:"close",value:function(){var t=this;this.active&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.template.container.classList.remove("".concat(t.settings.className,"--active")),t.timeout=setTimeout(function(){t.active=!1,t.template.container.style.display="none",document.body.removeChild(t.template.container),t.callback("close")},300)},100))}},{key:"on",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];""!=t&&this[t]&&"on"!=t&&"callback"!=t&&e&&"function"==typeof e&&this.eventListeners.push({event:t,callback:e})}},{key:"callback",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";this.eventListeners.filter(function(t){return t.event==e}).forEach(function(t){return t.callback()})}}])&&a(t.prototype,e),n&&a(t,n),c}();e.Z=n},9186:(t,e,n)=>{function i(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.r(e);function o(){clearTimeout(null),setTimeout(function(){i(document.querySelectorAll(".editor__file-preview-link")).forEac
1h(function(t){var e;c.includes(t)||((e=new Image).src=t.href,c.push(t),t.addEventListener("click",function(t){t.preventDefault(),r.empty(),r.append(e),768<window.innerWidth&&r.open()}))})},1e3)}var r=new(n(889).Z)({className:"marmalade-modal"}),c=[];o(),window.addEventListener("page-updated",o)}}]);
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.