1(self.webpackChunkmercury=self.webpackChunkmercury||[]).push([[9231],{9231:(t,n,e)=>{"use strict";e.r(n);n=e(4776);e.n(n)()({container:document.querySelector(".js-search-results"),columns:1,trueOrder:!0,mobileFirst:!0,margin:{x:20,y:20},breakAt:{768:{columns:2},1024:{columns:3}}})},4776:function(t){t.exports=function(){"use strict";function n(t,n){var e=void 0;return function(){e&&clearTimeout(e),e=setTimeout(t,n)}}function r(t,n){for(var e=t.length,r=e,o=[];e--;)o.push(n(t[r-e-1]));return o}function o(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(window.Promise)return I(t,n,e);t.recalculate(!0,!0)}function i(t){for(var n=t.options,e=t.responsiveOptions,r=t.keys,o=t.docWidth,i=void 0,s=0;s<r.length;s++){var a=parseInt(r[s],10);o>=a&&(i=n.breakAt[a],C(i,e))}return e}function s(t){for(var n=t.options,e=t.responsiveOptions,r=t.keys,o=t.docWidth,i=void 0,s=r.length-1;s>=0;s--){var a=parseInt(r[s],10);o<=a&&(i=n.breakAt[a],C(i,e))}return e}function e(t){var n=t.useContainerForBreakpoints?t.container.clientWidth:window.innerWidth,e={columns:t.columns};O(t.margin)?e.margin={x:t.margin.x,y:t.margin.y}:e.margin={x:t.margin,y:t.margin};var r=Object.keys(t.breakAt);return t.mobileFirst?i({options:t,responsiveOptions:e,keys:r,docWidth:n}):s({options:t,responsiveOptions:e,keys:r,docWidth:n})}function c(t){return e(t).columns}function u(t){return e(t).margin}function l(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=c(t),r=u(t).x,o=100/e;if(!n)return o;if(1===e)return"100%";var i="px";if("string"==typeof r){var s=parseFloat(r);i=r.replace(s,""),r=s}return r=(e-1)*r/e,"%"===i?o-r+"%":"calc("+o+"% - "+r+i+")"}function a(t,n){var e=c(t.options),r=0,o=void 0,i=void 0;if(1===++n)return 0;i=u(t.options).x;var s="px";if("string"==typeof i){var a=parseFloat(i,10);s=i.replace(a,""),i=a}return o=(i-(e-1)*i/e)*(n-1),r+=l(t.options,!1)*(n-1),"%"===s?r+o+"%":"calc("+r+"% + "+o+s+")"}function p(t){var n=0,e=t.container,r=t.rows;v(r,function(t){n=t>n?t:n}),e.style.height=n+"px"}function h(r,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],e=c(r.options),i=u(r.options).y;V(r,e,n),v(t,function(t){var e=0,n=parseInt(t.offsetHeight,10);isNaN(n)||(r.rows.forEach(function(t,n){t<r.rows[e]&&(e=n)}),t.style.position="absolute",t.style.top=r.rows[e]+"px",t.style.left=""+r.cols[e],r.rows[e]+=isNaN(n)?0:n+i,o&&(t.dataset.macyComplete=1))}),o&&(r.tmpRows=null),p(r)}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=c(e.options),i=u(e.options).y;V(e,o,n),v(t,function(t){e.lastcol===o&&(e.lastcol=0);var n=M(t,"height");n=parseInt(t.offsetHeight,10),isNaN(n)||(t.style.position="absolute",t.style.top=e.rows[e.lastcol]+"px",t.style.left=""+e.cols[e.lastcol],e.rows[e.lastcol]+=isNaN(n)?0:n+i,e.lastcol+=1,r&&(t.dataset.macyComplete=1))}),r&&(e.tmpRows=null),p(e)}var m=function t(n,e){if(!(this instanceof t))return new t(n,e);if(n&&n.nodeName)return n;if(n=n.replace(/^\s*/,"").replace(/\s*$/,""),e)return this.byCss(n,e);for(var r in this.selectors)if(e=r.split("/"),new RegExp(e[1],e[2]).test(n))return this.selectors[r](n);return this.byCss(n)},v=(m.prototype.byCss=function(t,n){return(n||document).querySelectorAll(t)},(m.prototype.selectors={})[/^\.[\w\-]+$/]=function(t){return document.getElementsByClassName(t.substring(1))},m.prototype.selectors[/^\w+$/]=function(t){return document.getElementsByTagName(t)},m.prototype.selectors[/^\#[\w\-]+$/]=function(t){return document.getElementById(t.substring(1))},function(t,n){for(var e=t.length,r=e;e--;)n(t[r-e-1])}),d=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.running=!1,this.events=[],this.add(t)},g=(d.prototype.run=function(){if(!this.running&&this.events.length>0){var t=this.events.shift();this.running=!0,t(),this.running=!1,this.run()}},d.prototype.add=function(){var n=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!!t&&(Array.isArray(t)?v(t,function(t){return n.add(t)}):(this.events.push(t),void this.run()))},d.prototype.clear=function(){this.events=[]},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.instance=t,this.data=n,this}),y=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.events={},this.instance=t},E=(y.prototype.on=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!t||!n)&&(Array.isArray(this.events[t])||(this.events[t]=[]),this.events[t].push(n))},y.prototype.emit=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!Array.isArray(this.events[t]))return!1;var e=new g(this.instance,n);v(this.events[t],function(t){return t(e)})},function(t){return!("naturalHeight"in t&&t.naturalHeight+t.naturalWi
vendor: 5,238 bytes, line 1
1dth===0)||t.width+t.height!==0}),w=function(n,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(t,n){if(e.complete)return E(e)?t(e):n(e);e.addEventListener("load",function(){return E(e)?t(e):n(e)}),e.addEventListener("error",function(){return n(e)})}).then(function(t){r&&n.emit(n.constants.EVENT_IMAGE_LOAD,{img:t})}).catch(function(t){return n.emit(n.constants.EVENT_IMAGE_ERROR,{img:t})})},A=function(n,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r(t,function(t){return w(n,t,e)})},I=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Promise.all(A(t,n,e)).then(function(){t.emit(t.constants.EVENT_IMAGE_COMPLETE)})},N=function(t){return n(function(){t.emit(t.constants.EVENT_RESIZE),t.queue.add(function(){return t.recalculate(!0,!0)})},100)},T=function(t){if(t.container=m(t.options.container),t.container instanceof m||!t.container)return!!t.options.debug&&console.error("Error: Container not found");t.container.length&&(t.container=t.container[0]),t.options.container=t.container,t.container.style.position="relative"},b=function(t){t.queue=new d,t.events=new y(t),t.rows=[],t.resizer=N(t)},L=function(t){var n=m("img",t.container);window.addEventListener("resize",t.resizer),t.on(t.constants.EVENT_IMAGE_LOAD,function(){return t.recalculate(!1,!1)}),t.on(t.constants.EVENT_IMAGE_COMPLETE,function(){return t.recalculate(!0,!0)}),t.options.useOwnImageLoader||o(t,n,!t.options.waitForImages),t.emit(t.constants.EVENT_INITIALIZED)},_=function(t){T(t),b(t),L(t)},O=function(t){return t===Object(t)&&"[object Array]"!==Object.prototype.toString.call(t)},C=function(t,n){O(t)||(n.columns=t),O(t)&&t.columns&&(n.columns=t.columns),O(t)&&t.margin&&!O(t.margin)&&(n.margin={x:t.margin,y:t.margin}),O(t)&&t.margin&&O(t.margin)&&t.margin.x&&(n.margin.x=t.margin.x),O(t)&&t.margin&&O(t.margin)&&t.margin.y&&(n.margin.y=t.margin.y)},M=function(t,n){return window.getComputedStyle(t,null).getPropertyValue(n)},V=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t.lastcol||(t.lastcol=0),t.rows.length<1&&(e=!0),e){t.rows=[],t.cols=[],t.lastcol=0;for(var r=n-1;r>=0;r--)t.rows[r]=0,t.cols[r]=a(t,r)}else if(t.tmpRows){t.rows=[];for(var r=n-1;r>=0;r--)t.rows[r]=t.tmpRows[r]}else{t.tmpRows=[];for(var r=n-1;r>=0;r--)t.tmpRows[r]=t.rows[r]}},R=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=n?t.container.children:m(':scope > *:not([data-macy-complete="1"])',t.container);r=Array.from(r).filter(function(t){return null!==t.offsetParent});var o=l(t.options);return v(r,function(t){n&&(t.dataset.macyComplete=0),t.style.width=o}),t.options.trueOrder?(f(t,r,n,e),t.emit(t.constants.EVENT_RECALCULATED)):(h(t,r,n,e),t.emit(t.constants.EVENT_RECALCULATED))},k=function(){return!!window.Promise},x=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},q=(Array.from||(Array.from=function(t){for(var n=0,e=[];n<t.length;)e.push(t[n++]);return e}),{columns:4,margin:2,trueOrder:!1,waitForImages:!1,useImageLoader:!0,breakAt:{},useOwnImageLoader:!1,onInit:!1,cancelLegacy:!1,useContainerForBreakpoints:!1});try{document.createElement("a").querySelector(":scope *")}catch(t){!function(){function t(r){return function(t){if(t&&o.test(t)){var n=this.getAttribute("id");n||(this.id="q"+Math.floor(9e6*Math.random())+1e6),arguments[0]=t.replace(o,"#"+this.id);var e=r.apply(this,arguments);return null===n?this.removeAttribute("id"):n||(this.id=n),e}return r.apply(this,arguments)}}var o=/:scope\b/gi,n=t(Element.prototype.querySelector);Element.prototype.querySelector=function(t){return n.apply(this,arguments)};var e=t(Element.prototype.querySelectorAll);Element.prototype.querySelectorAll=function(t){return e.apply(this,arguments)}}()}var D=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q;if(!(this instanceof t))return new t(n);this.options={},x(this.options,q,n),this.options.cancelLegacy&&!k()||_(this)};return D.init=function(t){return console.warn("Depreciated: Macy.init will be removed in v3.0.0 opt to use Macy directly like so Macy({ /*options here*/ }) "),new D(t)},D.prototype.recalculateOnImageLoad=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return o(this,m("img",this.container),!t)},D.prototype.runOnImageLoad=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=m("img",this.container);return this.on(this.constants.EVENT_IMAGE_COMPLETE,t),n&&this.on(this.constants.EVENT_IMAGE_LOAD,t),o(this,e,n)},D.prototype.recalculate=function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&this.queue.clear(),this.queue.add(function(){return R(t,n,e)})},D.prototype.remove=function(){window.removeEventListener("resize",this.resizer),v(this.container.children,function(t){t.removeAttribute("data-macy-complete"),t.removeAttribute("style")}),this.container.removeAttribute("style")},D.prototype.reInit=function(){this.recalculate(!0,!0),this.emit
1(this.constants.EVENT_INITIALIZED),window.addEventListener("resize",this.resizer),this.container.style.position="relative"},D.prototype.on=function(t,n){this.events.on(t,n)},D.prototype.emit=function(t,n){this.events.emit(t,n)},D.prototype.constants=D.constants={EVENT_INITIALIZED:"macy.initialized",EVENT_RECALCULATED:"macy.recalculated",EVENT_IMAGE_LOAD:"macy.image.load",EVENT_IMAGE_ERROR:"macy.image.error",EVENT_IMAGE_COMPLETE:"macy.images.complete",EVENT_RESIZE:"macy.resize"},D}()}}]);
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.