websiteComponents.loader.define("website.components.imageFluid.visitor",["website.components.imageFluid.shared.constants"],e=>(()=>{var t,r,n={67565(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,function(e){e.ARCHED_WINDOW="arched-window",e.AWARD="award",e.BOTTOM_LEFT_CURVE="bottom-left-curve",e.CIRCLE="circle",e.DESCENDING_RAMP="descending-ramp",e.DESCENDING_STAIRS="descending-stairs",e.DIAMOND="diamond",e.EGG="egg",e.EIGHT_SIDED_SHIELD="eight-sided-shield",e.FLOWER="flower",e.FOUR_PETAL_FLOWER="four-petal-flower",e.FOUR_POINT_STAR="four-point-star",e.GEAR="gear",e.HORIZONTAL_OVAL="horizontal-oval",e.HORIZONTAL_RIGHT_LEANING_OVAL="horizontal-right-leaning-oval",e.HORIZONTAL_STACKED_CIRCLES="horizontal-stacked-circles",e.HOURGLASS="hourglass",e.KEYSTONE="keystone",e.NARROW_HORIZONTAL_STACKED_PILLS="narrow-horizontal-stacked-pills",e.NARROW_POW="narrow-pow",e.OCTAGON="octagon",e.OPEN_BOOK="open-book",e.POINTED_WINDOW="pointed-window",e.RABBET="rabbet",e.ROUNDED_PENTAGON="rounded-pentagon",e.STEPPED_CROSS="stepped-cross",e.TV="tv",e.VERTICAL_OVAL="vertical-oval",e.VERTICAL_PARALLELOGRAM="vertical-parallelogram",e.VERTICAL_RIGHT_LEANING_OVAL="vertical-right-leaning-oval",e.VERTICAL_STACKED_CIRCLES="vertical-stacked-circles",e.WIDE_EIGHT_SIDED_SHIELD="wide-eight-sided-shield",e.WIDE_HORIZONTAL_STACKED_PILLS="wide-horizontal-stacked-pills",e.WIDE_OPEN_BOOK="wide-open-book",e.WIDE_VERTICAL_STACKED_PILLS="wide-vertical-stacked-pills"}(r||(r={})),t.default=r,e.exports=t.default},83277(e,t,r){"use strict";var n=r(28632);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.container,r=void 0===t?null:t,n=e.predicate,a=void 0===n?null:n,c=e.root,l=void 0===c?document.body:c,u=e.setFocusOnContain,d=void 0===u||u,f=e.restoreFocusOnRevert,p=void 0===f||f;if(!r&&!a||r&&a)throw new Error("One (and only one) of container and predicate must be set");r&&(a=function(e){return r.contains(e)});var h=document.activeElement,b=[],v=!1;return setTimeout(function(){if(!v){var e,t=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(l.querySelectorAll(i.default));try{for(t.s();!(e=t.n()).done;){var r=e.value;a(r)||(b.push({element:r,originalTabIndex:r.tabIndex}),r.tabIndex=-1)}}catch(e){t.e(e)}finally{t.f()}var n=function(e,t){return e instanceof HTMLElement?e:"string"==typeof e?document.body.querySelector(e):e?(0,o.default)(document.body.querySelectorAll(i.default)).find(function(e){return t(e)}):null}(d,a);n&&"function"==typeof n.focus&&n.focus()}},0),function(){v=!0;for(var e=0,t=b;ee.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);ro});var n=r(26896);function o(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},54653(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(94066);function o(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},26896(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(94066),o=r(54653);function i(e){var t=(0,o.A)(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}},94066(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:()=>n})}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e].call(r.exports,r,r.exports,i),r.exports}i.m=n,i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce((t,r)=>(i.f[r](e,t),t),[])),i.u=e=>(({1029:"image-effect-refracted-circles",3881:"image-effect-liquid",7881:"image-effect-film-grain",7943:"image-effect-refracted-lines",9124:"image-effect-parallax"}[e]||e)+".js"),i.miniCssF=e=>{},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},r="website-component-definitions:",i.l=(e,n,o,s)=>{if(t[e])t[e].push(n);else{var a,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(p);var o=t[e];if(delete t[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(e=>e(n)),r)return r(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),c&&document.head.appendChild(a)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e={8039:0};i.f.j=(t,r)=>{var n=i.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var s=i.p+i.u(t),a=new Error;i.l(s,r=>{if(i.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+s+")",a.name="ChunkLoadError",a.type=o,a.request=s,n[1](a)}},"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[s,a,c]=r,l=0;if(s.some(t=>0!==e[t])){for(n in a)i.o(a,n)&&(i.m[n]=a[n]);c&&c(i)}for(t&&t(r);l{"use strict";i.r(s),i.d(s,{Visitor:()=>ae,default:()=>le});var e=i(78677);let t=!1,r=!1,n=!1,o=!1;"undefined"!=typeof window&&"CSS"in window&&"function"==typeof CSS.supports&&(t="Animation"in window,"ViewTimeline"in window&&CSS.supports("animation-range","entry 0% exit 100%"),n="registerProperty"in CSS,CSS.supports("animation-timing-function","linear(0, 0.25 75%, 1)"));const a=t&&n,c=()=>window.__sqsAnimationRuntime;function l(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function u(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const d="[object String]",f="[object Number]",p="[object Boolean]",h="[object Arguments]",b="[object Object]";function v(e){return null==e||"object"!=typeof e&&"function"!=typeof e}function m(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function g(e,t,r,n=new Map,o=void 0){const i=o?.(e,t,r,n);if(void 0!==i)return i;if(v(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){const t=new Array(e.length);n.set(e,t);for(let i=0;i{const s=t?.(r,n,o,i);if(void 0!==s)return s;if("object"==typeof e){if(u(e)===b&&"function"!=typeof e.constructor){const t={};return i.set(e,t),y(t,e,o,i),t}switch(Object.prototype.toString.call(e)){case f:case d:case p:{const t=new e.constructor(e?.valueOf());return y(t,e),t}case h:{const t={};return y(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}(e)}function E(e){return"__proto__"===e}function O(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===u(e)}function S(e){return"object"==typeof e&&null!==e}function w(e){return S(e)&&function(e){return null!=e&&"function"!=typeof e&&function(e){return Number.isSafeInteger(e)&&e>=0}(e.length)}(e)}function _(e){if("object"!=typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){const t=e[Symbol.toStringTag];return null!=t&&(!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`)}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function I(e){return m(e)}function T(e,t,r,n){if(v(e)&&(e=Object(e)),null==t||"object"!=typeof t)return e;if(n.has(t))return function(e){if(v(e))return e;if(Array.isArray(e)||m(e)||e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e);if(null==t)return Object.assign(Object.create(t),e);const r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){const t=new r(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new r(e.errors,e.message,{cause:e.cause}):new r(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}if("undefined"!=typeof File&&e instanceof File)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if("object"==typeof e){const r=Object.create(t);return Object.assign(r,e)}return e}(n.get(t));if(n.set(t,e),Array.isArray(t)){t=t.slice();for(let e=0;e(e.maxWidth?parseInt(e.maxWidth):1/0)-(t.maxWidth?parseInt(t.maxWidth):1/0)),r=document.documentElement.clientWidth;return t.find(e=>{if((null!=e&&e.maxWidth?parseInt(e.maxWidth):Number.MAX_SAFE_INTEGER)>r)return e})??e[0]??null}function D(e,t){if(!t||null==e||!e.breakpointOverrides)return e;const r=e.breakpointOverrides[t.id];return r?function(e,...t){return function(e,...t){const r=t.slice(0,-1),n=t[t.length-1];let o=e;for(let e=0;e1&&void 0!==arguments[1]&&arguments[1];if((0,e.A)(this,"componentId",""),(0,e.A)(this,"processedValue",null),(0,e.A)(this,"previousBreakpoint",null),(0,e.A)(this,"resizeListener",null),(0,e.A)(this,"handlePrefersReducedMotionChange",e=>{e?(this.destroyAnimations(),this.detachResizeListener()):(this.parseBlockData(),this.attachResizeListener(),this.createAnimations())}),this.root=t,this.root=t,!a)return void this.removePrerender();this.componentId=(null===(r=this.root.closest("[data-block-id]"))||void 0===r?void 0:r.dataset.blockId)??"";const l=null===(n=this.root.parentElement)||void 0===n?void 0:n.classList.contains("pseudo-engine__block");s||l||(this.prefersReducedMotionUnsub=null===(o=c())||void 0===o||null===(i=o.registerReducedMotionChangeHandler)||void 0===i?void 0:i.call(o,this.handlePrefersReducedMotionChange),window.matchMedia("(prefers-reduced-motion: reduce)").matches||this.attachResizeListener())}processBreakpointOverrideValue(){var e,t;this.overridesData||this.parseBlockData();const r=null===(e=this.overridesData)||void 0===e?void 0:e.websitesBreakpoints;if(null===(t=this.overridesData)||void 0===t||!t.isOverridesEnabled||!r)return;const n=L(r);this.processedValue=D(this.blockData,n)}removePrerender(){var e;null===(e=this.root.querySelector("style[data-block-animations-prerender]"))||void 0===e||e.remove()}parseBlockData(){const e=this.root.querySelector("script[data-block-animations]");if(!e)return this.blockData={animations:[],transforms:{},componentId:this.componentId},void(this.overridesData={isOverridesEnabled:!1,websitesBreakpoints:void 0});const t=JSON.parse(String(e.textContent)),{isOverridesEnabled:r,websitesBreakpoints:n,...o}=t;this.overridesData={isOverridesEnabled:r,websitesBreakpoints:n},this.blockData=o,this.processBreakpointOverrideValue()}attachResizeListener(){var e,t;if(this.resizeListener)return;this.blockData||this.parseBlockData();const r=null===(e=this.overridesData)||void 0===e?void 0:e.websitesBreakpoints;var n;null!==(t=this.overridesData)&&void 0!==t&&t.isOverridesEnabled&&r&&(null!==(n=this.previousBreakpoint)&&void 0!==n&&n.id||(this.previousBreakpoint=L(r)),this.resizeListener=()=>{var e;const t=L(r);if((null===(e=this.previousBreakpoint)||void 0===e?void 0:e.id)!==(null==t?void 0:t.id)){if(this.previousBreakpoint=t,this.processBreakpointOverrideValue(),!this.root.isConnected)return;this.destroyAnimationTriggers(),this.createAnimations()}},window.addEventListener("resize",this.resizeListener))}detachResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null,this.previousBreakpoint=null)}createAnimations(){var e,t;a&&this.blockData&&(this.processBreakpointOverrideValue(),this.processedValue?null===(e=c())||void 0===e||e.createAnimationTriggers(this.processedValue):null===(t=c())||void 0===t||t.createAnimationTriggers(this.blockData))}destroyAnimationTriggers(){const e=c();this.processedValue?null==e||e.destroyAnimationTriggers(this.processedValue):null==e||e.destroyAnimationTriggers(this.blockData)}destroyAnimations(){var e;null===(e=this.prefersReducedMotionUnsub)||void 0===e||e.call(this),this.blockData&&this.destroyAnimationTriggers()}updateBlockData(e,t){e&&(this.blockData||this.parseBlockData(),this.blockData={...this.blockData||{},...e},this.overridesData.websitesBreakpoints=t,this.overridesData.isOverridesEnabled=!!t,this.processBreakpointOverrideValue())}getBlockData(){var e;return this.blockData||this.parseBlockData(),null!==(e=this.overridesData)&&void 0!==e&&e.isOverridesEnabled&&(this.processBreakpointOverrideValue(),this.processedValue)?this.processedValue:this.blockData}}var j=i(67565),C=i.n(j);const N=100,P=150,x=67,B={[C().CIRCLE]:N,[C().DIAMOND]:N,[C().BOTTOM_LEFT_CURVE]:N,[C().RABBET]:N,[C().FOUR_PETAL_FLOWER]:N,[C().FOUR_POINT_STAR]:N,[C().DESCENDING_RAMP]:N,[C().DESCENDING_STAIRS]:N,[C().OCTAGON]:N,[C().STEPPED_CROSS]:N,[C().TV]:N,[C().OPEN_BOOK]:N,[C().FLOWER]:N,[C().EIGHT_SIDED_SHIELD]:N,[C().ROUNDED_PENTAGON]:N,[C().GEAR]:N,[C().VERTICAL_OVAL]:P,[C().HOURGLASS]:P,[C().KEYSTONE]:P,[C().VERTICAL_PARALLELOGRAM]:P,[C().VERTICAL_RIGHT_LEANING_OVAL]:P,[C().ARCHED_WINDOW]:P,[C().VERTICAL_STACKED_CIRCLES]:P,[C().POINTED_WINDOW]:P,[C().AWARD]:P,[C().NARROW_HORIZONTAL_STACKED_PILLS]:P,[C().EGG]:P,[C().NARROW_POW]:P,[C().HORIZONTAL_STACKED_CIRCLES]:x,[C().WIDE_VERTICAL_STACKED_PILLS]:x,[C().WIDE_HORIZONTAL_STACKED_PILLS]:x,[C().HORIZONTAL_OVAL]:x,[C().HORIZONTAL_RIGHT_LEANING_OVAL]:x,[C().WIDE_EIGHT_SIDED_SHIELD]:x,[C().WIDE_OPEN_BOOK]:x};var M=i(9385);function V(e,t,r){W(e,t),t.set(e,r)}function W(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function G(e,t){return e.get(z(e,t))}function H(e,t,r){return e.set(z(e,t),r),r}function z(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var F=new WeakMap,q=new WeakMap,U=new WeakMap,K=new WeakMap,Z=new WeakMap,$=new WeakSet,J=new WeakMap,Y=new WeakMap;class X{constructor(t){var r;W(this,r=$),r.add(this),V(this,F,void 0),V(this,q,void 0),V(this,U,null),V(this,K,[]),V(this,Z,e=>{const t=e.matches;G(F,this).classList.toggle("fill-width",!t),G(F,this).classList.toggle("fill-height",t)}),V(this,J,e=>{"Escape"===e.key&&this.close()}),V(this,Y,e=>{"Enter"!==e.key&&" "!==e.key||(this.close(),e.preventDefault())}),(0,e.A)(this,"close",()=>{if(!G(U,this))return;G(K,this).forEach(e=>e()),H(K,this,[]);const e=G(U,this);H(U,this,null),e.inert=!0,e.querySelector(".js-cdk-image-lightbox-wrapper").animate([{opacity:1},{opacity:0}],200).finished.finally(()=>e.remove()),document.body.style.removeProperty("overflow")});const n=t.querySelector(".js-lightbox-trigger img"),o=t.querySelector("template.js-cdk-image-lightbox-template");if(!n||!o)throw new Error("Could not find image or lightbox template within component root");H(F,this,n.cloneNode(!0)),G(F,this).style.cssText="",H(q,this,o)}open(){var e;if(G(U,this))return;const t=parseInt(G(F,this).getAttribute("width")),r=parseInt(G(F,this).getAttribute("height")),n=window.matchMedia(`(min-aspect-ratio: ${t}/${r})`);G(Z,this).call(this,n),n.addEventListener("change",G(Z,this)),G(K,this).push(()=>n.removeEventListener("change",G(Z,this))),H(U,this,z($,this,ee).call(this)),z($,this,Q).call(this,G(U,this)),document.body.appendChild(G(U,this)),document.body.style.overflow="hidden";const o=G(U,this).querySelector(".js-cdk-image-lightbox-wrapper");o.animate([{opacity:0},{opacity:1}],200),null===(e=o.querySelector(".js-cdk-image-lightbox-close-button"))||void 0===e||e.focus()}}function Q(e){e.querySelector(".js-cdk-image-lightbox-close-button").addEventListener("keypress",G(Y,this)),e.addEventListener("click",e=>{var t,r;null!==(t=e.target)&&void 0!==t&&null!==(r=t.closest)&&void 0!==r&&r.call(t,".cdk-image-lightbox-padder img")||this.close()}),e.addEventListener("keypress",G(Y,this)),document.addEventListener("keydown",G(J,this));const t=(0,M.hy)({container:e});G(K,this).push(()=>{document.removeEventListener("keydown",G(J,this)),t()})}function ee(){const e=G(q,this).content.cloneNode(!0);return e.querySelector(".js-cdk-image-lightbox-content").prepend(G(F,this)),e.firstElementChild}var te=i(70614);function re(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ne(e,t){return e.get(oe(e,t))}function oe(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var ie=new WeakMap,se=new WeakSet;class ae{constructor(t){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;re(this,n=se),n.add(this),(0,e.A)(this,"resizeObserver",null),function(e,t,r){re(e,t),t.set(e,r)}(this,ie,e=>{var t;this.root.ownerDocument.body.classList.contains("sqs-edit-mode-active")||e.target&&e.target.closest(".js-lightbox-trigger")&&this.root.querySelector("img")&&(t=this.root,new X(t)).open()}),(0,e.A)(this,"_latestImageEffectPromise",null),this.root=t,this.root=t,this.animationVisitor=new k(t,r),this.render(),this.attachResizeObserver()}render(){if(!this.root||!this.root.isConnected)throw new Error("Tried to render without a connected root node");this.updateImageSizing(),this.imageEffect||this.renderNewImageEffect().catch(console.error),oe(se,this,ce).call(this)}async renderNewImageEffect(){const e=(async e=>{const t=e.querySelector("img"),r=(e=>e.querySelector(".imageEffectContainer"))(e);if(!r||!t)return;const n=JSON.parse(r.dataset.effect||"null");if(!n)return;const o=n.type;if(!o||"none"===o)return;const s=await(async e=>{switch(e){case"liquid":return await Promise.all([i.e(8018),i.e(748),i.e(3881)]).then(i.bind(i,27766));case"filmGrain":return await Promise.all([i.e(8018),i.e(748),i.e(7881)]).then(i.bind(i,9225));case"parallax":return await Promise.all([i.e(8018),i.e(748),i.e(9124)]).then(i.bind(i,50069));case"refractedCircles":return await Promise.all([i.e(8018),i.e(748),i.e(9882),i.e(1029)]).then(i.bind(i,69289));case"refractedLines":return await Promise.all([i.e(8018),i.e(748),i.e(7943)]).then(i.bind(i,33438))}})(o);if(!s)return;const{default:a}=s;return new a({imageNode:t,containerNode:r,effectProps:{...n}})})(this.root);this._latestImageEffectPromise=e;const t=await e;var r;this._latestImageEffectPromise===e&&(null===(r=this.imageEffect)||void 0===r||r.destroy(),this.imageEffect=t,this._latestImageEffectPromise=null)}attachResizeObserver(){this.detachResizeObserver(),this.resizeObserver=new ResizeObserver(()=>{this.updateImageSizing()}),this.resizeObserver.observe(this.root)}detachResizeObserver(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.resizeObserver=null}updateImageSizing(){var e;const t=this.root.querySelector("img");if(!t)return;const r=(n=this.getTemplateRoot())?{isImageStretched:"true"===n.dataset.isImageStretched,isShapeMaskApplied:"true"===n.dataset.isMaskApplied,mediaFocalPointAttribute:n.dataset.mediaFocalPoint}:{};var n,o,i;if(null===(e=this.getTemplateRoot())||void 0===e||e.style.setProperty(te.CSS_VARIABLES.IMAGE_OBJECT_FIT,r.isImageStretched||r.isShapeMaskApplied?"cover":"contain"),r.isImageStretched)return null===(o=this.getTemplateRoot())||void 0===o||o.style.setProperty(te.CSS_VARIABLES.IMAGE_HEIGHT,"100%"),void(null===(i=this.getTemplateRoot())||void 0===i||i.style.setProperty(te.CSS_VARIABLES.IMAGE_WIDTH,"100%"));const s=(null===(a=this.root.querySelector(".js-image-container"))||void 0===a?void 0:a.getAttribute("data-shape-mask"))||null;var a;const c=r.isShapeMaskApplied?function(e){if(!e)return null;const t=B[e];return t?100/t:null}(s):function(e){const t=e.getAttribute("width"),r=e.getAttribute("height");if(!t||!r)return null;const n=parseFloat(t),o=parseFloat(r);return Number.isNaN(n)||Number.isNaN(o)?null:n/o}(t);if(!c)return;const l=this.root.clientWidth,u=this.root.clientHeight;var d,f,p,h;l/u>c?(null===(d=this.getTemplateRoot())||void 0===d||d.style.setProperty(te.CSS_VARIABLES.IMAGE_HEIGHT,"100%"),null===(f=this.getTemplateRoot())||void 0===f||f.style.setProperty(te.CSS_VARIABLES.IMAGE_WIDTH,u*c+"px")):(null===(p=this.getTemplateRoot())||void 0===p||p.style.setProperty(te.CSS_VARIABLES.IMAGE_WIDTH,"100%"),null===(h=this.getTemplateRoot())||void 0===h||h.style.setProperty(te.CSS_VARIABLES.IMAGE_HEIGHT,l/c+"px"))}getTemplateRoot(){return this.root.querySelector(".fluid-image-component-root")}}function ce(){this.root.removeEventListener("click",ne(ie,this)),this.root.addEventListener("click",ne(ie,this))}const le=function(e){return new ae(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}})(),s})());