@wix/image
Advanced tools
Comparing version 1.327.0 to 1.328.0
@@ -196,4 +196,6 @@ "use strict"; | ||
class: classNames, | ||
"data-image-info": imageInfo, | ||
"data-motion-part": "BG_IMG", | ||
"data-image-info": imageInfo | ||
// TODO: get the correct id to place here | ||
, | ||
"data-motion-part": `BG_IMG ${containerId}`, | ||
"data-bg-effect-name": bgEffectName, | ||
@@ -236,3 +238,3 @@ "data-has-ssr-src": hasSsrSrc, | ||
fileName: _jsxFileName, | ||
lineNumber: 220, | ||
lineNumber: 221, | ||
columnNumber: 7 | ||
@@ -239,0 +241,0 @@ } |
@@ -143,3 +143,3 @@ import * as React from 'react'; | ||
: null; | ||
return (React.createElement("wow-image", { id: id, class: classNames, "data-image-info": imageInfo, "data-motion-part": "BG_IMG", "data-bg-effect-name": bgEffectName, "data-has-ssr-src": hasSsrSrc, "data-animate-blur": !isSEOBot && isLQIP && hasBlurTransition ? '' : undefined, style: maxWidth ? { '--wix-img-max-width': maxWidth } : {} }, | ||
return (React.createElement("wow-image", { id: id, class: classNames, "data-image-info": imageInfo, "data-motion-part": `BG_IMG ${containerId}`, "data-bg-effect-name": bgEffectName, "data-has-ssr-src": hasSsrSrc, "data-animate-blur": !isSEOBot && isLQIP && hasBlurTransition ? '' : undefined, style: maxWidth ? { '--wix-img-max-width': maxWidth } : {} }, | ||
React.createElement("img", { src: src, ref: imageRef, alt: alt || '', role: role, style: { ...placeholderStyle, ...imageStyles }, onLoad: onLoad, onError: onError, width: containerWidth ? containerWidth : undefined, height: containerHeight ? containerHeight : undefined, ...socialAttrs, srcSet: isInFirstFold | ||
@@ -146,0 +146,0 @@ ? srcset?.dpr |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React")):"function"==typeof define&&define.amd?define("image",["React"],e):"object"==typeof exports?exports.image=e(require("React")):t.image=e(t.React)}("undefined"!=typeof self?self:this,(t=>(()=>{var e={709:function(t,e,i){var n;!function(e){"use strict";var r=function(){},o=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return setTimeout(t,16)};function a(){var t=this;t.reads=[],t.writes=[],t.raf=o.bind(e),r("initialized",t)}function s(t){t.scheduled||(t.scheduled=!0,t.raf(c.bind(null,t)),r("flush scheduled"))}function c(t){r("flush");var e,i=t.writes,n=t.reads;try{r("flushing reads",n.length),t.runTasks(n),r("flushing writes",i.length),t.runTasks(i)}catch(t){e=t}if(t.scheduled=!1,(n.length||i.length)&&s(t),e){if(r("task errored",e.message),!t.catch)throw e;t.catch(e)}}function u(t,e){var i=t.indexOf(e);return!!~i&&!!t.splice(i,1)}a.prototype={constructor:a,runTasks:function(t){var e;for(r("run tasks");e=t.shift();)e()},measure:function(t,e){r("measure");var i=e?t.bind(e):t;return this.reads.push(i),s(this),i},mutate:function(t,e){r("mutate");var i=e?t.bind(e):t;return this.writes.push(i),s(this),i},clear:function(t){return r("clear",t),u(this.reads,t)||u(this.writes,t)},extend:function(t){if(r("extend",t),"object"!=typeof t)throw new Error("expected object");var e=Object.create(this);return function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}(e,t),e.fastdom=this,e.initialize&&e.initialize(),e},catch:null};var h=e.fastdom=e.fastdom||new a;void 0===(n=function(){return h}.call(h,i,h,t))||(t.exports=n)}("undefined"!=typeof window?window:void 0!==this?this:globalThis)},883:e=>{"use strict";e.exports=t},99:(t,e,i)=>{var n=i(602);t.exports=function(t,e,i){return(e=n(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports},448:t=>{function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(null,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},751:(t,e,i)=>{var n=i(284).default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},602:(t,e,i)=>{var n=i(284).default,r=i(751);t.exports=function(t){var e=r(t,"string");return"symbol"==n(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},284:t=>{function e(i){return t.exports=e="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.exports.__esModule=!0,t.exports.default=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}},i={};function n(t){var r=i[t];if(void 0!==r)return r.exports;var o=i[t]={exports:{}};return e[t].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Image:()=>ee,imageKit:()=>t,initCustomElement:()=>Ee});var t={};n.r(t),n.d(t,{STATIC_MEDIA_URL:()=>Qt,alignTypes:()=>m,fileType:()=>R,fittingTypes:()=>g,getData:()=>zt,getFileExtension:()=>z,getPlaceholder:()=>$t,getResponsiveImageProps:()=>Zt,htmlTag:()=>_,isWEBP:()=>k,populateGlobalFeatureSupport:()=>it,sdk:()=>Jt,upscaleMethods:()=>I});var e=n(448),i=n.n(e),o=n(883);const a="DpEFnE",s="v1",c=2,u=1920,h=1920,l=1e3,d=1e3,g={SCALE_TO_FILL:"fill",SCALE_TO_FIT:"fit",STRETCH:"stretch",ORIGINAL_SIZE:"original_size",TILE:"tile",TILE_HORIZONTAL:"tile_horizontal",TILE_VERTICAL:"tile_vertical",FIT_AND_TILE:"fit_and_tile",LEGACY_STRIP_TILE:"legacy_strip_tile",LEGACY_STRIP_TILE_HORIZONTAL:"legacy_strip_tile_horizontal",LEGACY_STRIP_TILE_VERTICAL:"legacy_strip_tile_vertical",LEGACY_STRIP_SCALE_TO_FILL:"legacy_strip_fill",LEGACY_STRIP_SCALE_TO_FIT:"legacy_strip_fit",LEGACY_STRIP_FIT_AND_TILE:"legacy_strip_fit_and_tile",LEGACY_STRIP_ORIGINAL_SIZE:"legacy_strip_original_size",LEGACY_ORIGINAL_SIZE:"actual_size",LEGACY_FIT_WIDTH:"fitWidth",LEGACY_FIT_HEIGHT:"fitHeight",LEGACY_FULL:"full",LEGACY_BG_FIT_AND_TILE:"legacy_tile",LEGACY_BG_FIT_AND_TILE_HORIZONTAL:"legacy_tile_horizontal",LEGACY_BG_FIT_AND_TILE_VERTICAL:"legacy_tile_vertical",LEGACY_BG_NORMAL:"legacy_normal"},f={FIT:"fit",FILL:"fill",FILL_FOCAL:"fill_focal",CROP:"crop",LEGACY_CROP:"legacy_crop",LEGACY_FILL:"legacy_fill"},m={CENTER:"center",TOP:"top",TOP_LEFT:"top_left",TOP_RIGHT:"top_right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom_left",BOTTOM_RIGHT:"bottom_right",LEFT:"left",RIGHT:"right"},p={[m.CENTER]:{x:.5,y:.5},[m.TOP_LEFT]:{x:0,y:0},[m.TOP_RIGHT]:{x:1,y:0},[m.TOP]:{x:.5,y:0},[m.BOTTOM_LEFT]:{x:0,y:1},[m.BOTTOM_RIGHT]:{x:1,y:1},[m.BOTTOM]:{x:.5,y:1},[m.RIGHT]:{x:1,y:.5},[m.LEFT]:{x:0,y:.5}},T={center:"c",top:"t",top_left:"tl",top_right:"tr",bottom:"b",bottom_left:"bl",bottom_right:"br",left:"l",right:"r"},_={BG:"bg",IMG:"img",SVG:"svg"},I={AUTO:"auto",CLASSIC:"classic",SUPER:"super"},E={classic:1,super:2},L={radius:"0.66",amount:"1.00",threshold:"0.01"},b={uri:"",css:{img:{},container:{}},attr:{img:{},container:{}},transformed:!1},A=25e6,w=[1.5,2,4],O={HIGH:{size:196e4,quality:90,maxUpscale:1},MEDIUM:{size:36e4,quality:85,maxUpscale:1},LOW:{size:16e4,quality:80,maxUpscale:1.2},TINY:{size:0,quality:80,maxUpscale:1.4}},v={HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",TINY:"TINY"},y={CONTRAST:"contrast",BRIGHTNESS:"brightness",SATURATION:"saturation",HUE:"hue",BLUR:"blur"},R={JPG:"jpg",JPEG:"jpeg",JPE:"jpe",PNG:"png",WEBP:"webp",WIX_ICO_MP:"wix_ico_mp",WIX_MP:"wix_mp",GIF:"gif",SVG:"svg",UNRECOGNIZED:"unrecognized"},M={AVIF:"AVIF",PAVIF:"PAVIF"};R.JPG,R.JPEG,R.JPE,R.PNG,R.GIF,R.WEBP;function S(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const o=n[n.length-1]||{},a=[t[0]];return i.forEach((function(e,i){const r=Number.isInteger(e)?n[e]:o[e];a.push(r,t[i+1])})),a.join("")}}function G(t){return t[t.length-1]}const C=[R.PNG,R.JPEG,R.JPG,R.JPE,R.WIX_ICO_MP,R.WIX_MP,R.WEBP],P=[R.JPEG,R.JPG,R.JPE];function x(t,e,i){return i&&e&&!(!(n=e.id)||!n.trim()||"none"===n.toLowerCase())&&Object.values(g).includes(t);var n}function F(t,e,i){return function(t,e,i){return void 0===i&&(i=!1),!(k(t)&&e&&!i)}(t,e,i)&&(function(t){return C.includes(z(t))}(t)||function(t,e){return void 0===e&&(e=!1),H(t)&&e}(t,i))&&!/(^https?)|(^data)|(^\/\/)/.test(t)}function N(t){return z(t)===R.PNG}function k(t){return z(t)===R.WEBP}function H(t){return z(t)===R.GIF}const B=["/","\\","?","<",">","|","\u201c",":",'"'].map(encodeURIComponent),Y=["\\.","\\*"],U="_";function $(t){return function(t){return P.includes(z(t))}(t)?R.JPG:N(t)?R.PNG:k(t)?R.WEBP:H(t)?R.GIF:R.UNRECOGNIZED}function z(t){return(/[.]([^.]+)$/.exec(t)&&/[.]([^.]+)$/.exec(t)[1]||"").toLowerCase()}function D(t,e,i,n,r){let o;return o=r===f.FILL?function(t,e,i,n){return Math.max(i/t,n/e)}(t,e,i,n):r===f.FIT?function(t,e,i,n){return Math.min(i/t,n/e)}(t,e,i,n):1,o}function j(t,e,i,n,r,o){t=t||n.width,e=e||n.height;const{scaleFactor:a,width:s,height:c}=function(t,e,i,n,r){let o,a=i,s=n;if(o=D(t,e,i,n,r),r===f.FIT&&(a=t*o,s=e*o),a&&s&&a*s>A){const i=Math.sqrt(A/(a*s));a*=i,s*=i,o=D(t,e,a,s,r)}return{scaleFactor:o,width:a,height:s}}(t,e,n.width*r,n.height*r,i);return function(t,e,i,n,r,o,a){const{optimizedScaleFactor:s,upscaleMethodValue:c,forceUSM:u}=function(t,e,i,n){if("auto"===n)return function(t,e){const i=Z(t,e);return{optimizedScaleFactor:O[i].maxUpscale,upscaleMethodValue:E.classic,forceUSM:!1}}(t,e);if("super"===n)return function(t){return{optimizedScaleFactor:G(w),upscaleMethodValue:E.super,forceUSM:!(w.includes(t)||t>G(w))}}(i);return function(t,e){const i=Z(t,e);return{optimizedScaleFactor:O[i].maxUpscale,upscaleMethodValue:E.classic,forceUSM:!1}}(t,e)}(t,e,o,r);let h=i,l=n;if(o<=s)return{width:h,height:l,scaleFactor:o,upscaleMethodValue:c,forceUSM:u,cssUpscaleNeeded:!1};switch(a){case f.FILL:h=i*(s/o),l=n*(s/o);break;case f.FIT:h=t*s,l=e*s}return{width:h,height:l,scaleFactor:s,upscaleMethodValue:c,forceUSM:u,cssUpscaleNeeded:!0}}(t,e,s,c,o,a,i)}function W(t,e,i,n){const r=V(i)||function(t){return void 0===t&&(t=m.CENTER),p[t]}(n);return{x:Math.max(0,Math.min(t.width-e.width,r.x*t.width-e.width/2)),y:Math.max(0,Math.min(t.height-e.height,r.y*t.height-e.height/2)),width:Math.min(t.width,e.width),height:Math.min(t.height,e.height)}}function q(t){return t.alignment&&T[t.alignment]||T[m.CENTER]}function V(t){let e;return!t||"number"!=typeof t.x||isNaN(t.x)||"number"!=typeof t.y||isNaN(t.y)||(e={x:J(Math.max(0,Math.min(100,t.x))/100,2),y:J(Math.max(0,Math.min(100,t.y))/100,2)}),e}function Z(t,e){const i=t*e;return i>O[v.HIGH].size?v.HIGH:i>O[v.MEDIUM].size?v.MEDIUM:i>O[v.LOW].size?v.LOW:v.TINY}function J(t,e){const i=Math.pow(10,e||0);return(t*i/i).toFixed(e)}function Q(t){return t&&t.upscaleMethod&&I[t.upscaleMethod.toUpperCase()]||I.AUTO}function X(t,e){return z(t)===R.GIF||z(t)===R.WEBP&&e}const K={isMobile:!1},tt=function(t){return K[t]},et=function(t,e){K[t]=e};function it(){if("undefined"!=typeof window&&"undefined"!=typeof navigator){const t=window.matchMedia&&window.matchMedia("(max-width: 767px)").matches,e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);et("isMobile",t&&e)}}function nt(t,e){const i={css:{container:{}}},{css:n}=i,{fittingType:r}=t;switch(r){case g.ORIGINAL_SIZE:case g.LEGACY_ORIGINAL_SIZE:case g.LEGACY_STRIP_ORIGINAL_SIZE:n.container.backgroundSize="auto",n.container.backgroundRepeat="no-repeat";break;case g.SCALE_TO_FIT:case g.LEGACY_STRIP_SCALE_TO_FIT:n.container.backgroundSize="contain",n.container.backgroundRepeat="no-repeat";break;case g.STRETCH:n.container.backgroundSize="100% 100%",n.container.backgroundRepeat="no-repeat";break;case g.SCALE_TO_FILL:case g.LEGACY_STRIP_SCALE_TO_FILL:n.container.backgroundSize="cover",n.container.backgroundRepeat="no-repeat";break;case g.TILE_HORIZONTAL:case g.LEGACY_STRIP_TILE_HORIZONTAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-x";break;case g.TILE_VERTICAL:case g.LEGACY_STRIP_TILE_VERTICAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-y";break;case g.TILE:case g.LEGACY_STRIP_TILE:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat";break;case g.LEGACY_STRIP_FIT_AND_TILE:n.container.backgroundSize="contain",n.container.backgroundRepeat="repeat";break;case g.FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat";break;case g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-x";break;case g.LEGACY_BG_FIT_AND_TILE_VERTICAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-y";break;case g.LEGACY_BG_NORMAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="no-repeat"}switch(e.alignment){case m.CENTER:n.container.backgroundPosition="center center";break;case m.LEFT:n.container.backgroundPosition="left center";break;case m.RIGHT:n.container.backgroundPosition="right center";break;case m.TOP:n.container.backgroundPosition="center top";break;case m.BOTTOM:n.container.backgroundPosition="center bottom";break;case m.TOP_RIGHT:n.container.backgroundPosition="right top";break;case m.TOP_LEFT:n.container.backgroundPosition="left top";break;case m.BOTTOM_RIGHT:n.container.backgroundPosition="right bottom";break;case m.BOTTOM_LEFT:n.container.backgroundPosition="left bottom"}return i}const rt={[m.CENTER]:"center",[m.TOP]:"top",[m.TOP_LEFT]:"top left",[m.TOP_RIGHT]:"top right",[m.BOTTOM]:"bottom",[m.BOTTOM_LEFT]:"bottom left",[m.BOTTOM_RIGHT]:"bottom right",[m.LEFT]:"left",[m.RIGHT]:"right"},ot={position:"absolute",top:"auto",right:"auto",bottom:"auto",left:"auto"};function at(t,e){const i={css:{container:{},img:{}}},{css:n}=i,{fittingType:r}=t,o=e.alignment;switch(n.container.position="relative",r){case g.ORIGINAL_SIZE:case g.LEGACY_ORIGINAL_SIZE:t.parts&&t.parts.length?(n.img.width=t.parts[0].width,n.img.height=t.parts[0].height):(n.img.width=t.src.width,n.img.height=t.src.height);break;case g.SCALE_TO_FIT:case g.LEGACY_FIT_WIDTH:case g.LEGACY_FIT_HEIGHT:case g.LEGACY_FULL:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="contain",n.img.objectPosition=rt[o]||"unset";break;case g.LEGACY_BG_NORMAL:n.img.width="100%",n.img.height="100%",n.img.objectFit="none",n.img.objectPosition=rt[o]||"unset";break;case g.STRETCH:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="fill";break;case g.SCALE_TO_FILL:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="cover"}if("number"==typeof n.img.width&&"number"==typeof n.img.height&&(n.img.width!==e.width||n.img.height!==e.height)){const t=Math.round((e.height-n.img.height)/2),i=Math.round((e.width-n.img.width)/2);Object.assign(n.img,ot,function(t,e,i){return{[m.TOP_LEFT]:{top:0,left:0},[m.TOP_RIGHT]:{top:0,right:0},[m.TOP]:{top:0,left:e},[m.BOTTOM_LEFT]:{bottom:0,left:0},[m.BOTTOM_RIGHT]:{bottom:0,right:0},[m.BOTTOM]:{bottom:0,left:e},[m.RIGHT]:{top:t,right:0},[m.LEFT]:{top:t,left:0},[m.CENTER]:{width:i.width,height:i.height,objectFit:"none"}}}(t,i,e)[o])}return i}function st(t,e){const i={css:{container:{}},attr:{container:{},img:{}}},{css:n,attr:r}=i,{fittingType:o}=t,a=e.alignment,{width:s,height:c}=t.src;let u;switch(n.container.position="relative",o){case g.ORIGINAL_SIZE:case g.LEGACY_ORIGINAL_SIZE:case g.TILE:t.parts&&t.parts.length?(r.img.width=t.parts[0].width,r.img.height=t.parts[0].height):(r.img.width=s,r.img.height=c),r.img.preserveAspectRatio="xMidYMid slice";break;case g.SCALE_TO_FIT:case g.LEGACY_FIT_WIDTH:case g.LEGACY_FIT_HEIGHT:case g.LEGACY_FULL:r.img.width="100%",r.img.height="100%",r.img.transform="",r.img.preserveAspectRatio="";break;case g.STRETCH:r.img.width=e.width,r.img.height=e.height,r.img.x=0,r.img.y=0,r.img.transform="",r.img.preserveAspectRatio="none";break;case g.SCALE_TO_FILL:F(t.src.id)?(r.img.width=e.width,r.img.height=e.height):(u=function(t,e,i,n,r){const o=D(t,e,i,n,r);return{width:Math.round(t*o),height:Math.round(e*o)}}(s,c,e.width,e.height,f.FILL),r.img.width=u.width,r.img.height=u.height),r.img.x=0,r.img.y=0,r.img.transform="",r.img.preserveAspectRatio="xMidYMid slice"}if("number"==typeof r.img.width&&"number"==typeof r.img.height&&(r.img.width!==e.width||r.img.height!==e.height)){let t,i,n=0,s=0;o===g.TILE?(t=e.width%r.img.width,i=e.height%r.img.height):(t=e.width-r.img.width,i=e.height-r.img.height);const c=Math.round(t/2),u=Math.round(i/2);switch(a){case m.TOP_LEFT:n=0,s=0;break;case m.TOP:n=c,s=0;break;case m.TOP_RIGHT:n=t,s=0;break;case m.LEFT:n=0,s=u;break;case m.CENTER:n=c,s=u;break;case m.RIGHT:n=t,s=u;break;case m.BOTTOM_LEFT:n=0,s=i;break;case m.BOTTOM:n=c,s=i;break;case m.BOTTOM_RIGHT:n=t,s=i}r.img.x=n,r.img.y=s}return r.container.width=e.width,r.container.height=e.height,r.container.viewBox=[0,0,e.width,e.height].join(" "),i}function ct(t,e,i){let n;switch(e.crop&&(n=function(t,e){const i=Math.max(0,Math.min(t.width,e.x+e.width)-Math.max(0,e.x)),n=Math.max(0,Math.min(t.height,e.y+e.height)-Math.max(0,e.y));return i&&n&&(t.width!==i||t.height!==n)?{x:Math.max(0,e.x),y:Math.max(0,e.y),width:i,height:n}:null}(e,e.crop),n&&(t.src.width=n.width,t.src.height=n.height,t.src.isCropped=!0,t.parts.push(ht(n)))),t.fittingType){case g.SCALE_TO_FIT:case g.LEGACY_FIT_WIDTH:case g.LEGACY_FIT_HEIGHT:case g.LEGACY_FULL:case g.FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case g.LEGACY_BG_FIT_AND_TILE_VERTICAL:case g.LEGACY_BG_NORMAL:t.parts.push(ut(t,i));break;case g.SCALE_TO_FILL:t.parts.push(function(t,e){const i=j(t.src.width,t.src.height,f.FILL,e,t.devicePixelRatio,t.upscaleMethod),n=V(t.focalPoint);return{transformType:n?f.FILL_FOCAL:f.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:q(e),focalPointX:n&&n.x,focalPointY:n&&n.y,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}(t,i));break;case g.STRETCH:t.parts.push(function(t,e){const i=D(t.src.width,t.src.height,e.width,e.height,f.FILL),n={...e};return n.width=t.src.width*i,n.height=t.src.height*i,ut(t,n)}(t,i));break;case g.TILE_HORIZONTAL:case g.TILE_VERTICAL:case g.TILE:case g.LEGACY_ORIGINAL_SIZE:case g.ORIGINAL_SIZE:n=W(t.src,i,t.focalPoint,i.alignment),t.src.isCropped?(Object.assign(t.parts[0],n),t.src.width=n.width,t.src.height=n.height):t.parts.push(ht(n));break;case g.LEGACY_STRIP_TILE_HORIZONTAL:case g.LEGACY_STRIP_TILE_VERTICAL:case g.LEGACY_STRIP_TILE:case g.LEGACY_STRIP_ORIGINAL_SIZE:t.parts.push(function(t){return{transformType:f.LEGACY_CROP,width:Math.round(t.width),height:Math.round(t.height),alignment:q(t),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case g.LEGACY_STRIP_SCALE_TO_FIT:case g.LEGACY_STRIP_FIT_AND_TILE:t.parts.push(function(t){return{transformType:f.FIT,width:Math.round(t.width),height:Math.round(t.height),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case g.LEGACY_STRIP_SCALE_TO_FILL:t.parts.push(function(t){return{transformType:f.LEGACY_FILL,width:Math.round(t.width),height:Math.round(t.height),alignment:q(t),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i))}}function ut(t,e){const i=j(t.src.width,t.src.height,f.FIT,e,t.devicePixelRatio,t.upscaleMethod);return{transformType:!t.src.width||!t.src.height?f.FIT:f.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:T.center,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}function ht(t){return{transformType:f.CROP,x:Math.round(t.x),y:Math.round(t.y),width:Math.round(t.width),height:Math.round(t.height),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}function lt(t,e){var i;e=e||{},t.quality=function(t,e){const i=t.fileType===R.PNG,n=t.fileType===R.JPG,r=t.fileType===R.WEBP,o=n||i||r;if(o){const n=G(t.parts),r=(a=n.width,s=n.height,O[Z(a,s)].quality);let o=e.quality&&e.quality>=5&&e.quality<=90?e.quality:r;return o=i?o+5:o,o}var a,s;return 0}(t,e),t.progressive=function(t){return!1!==t.progressive}(e),t.watermark=function(t){return t.watermark}(e),t.autoEncode=e.autoEncode??!0,t.encoding=null==(i=e)?void 0:i.encoding,t.unsharpMask=function(t,e){var i,n,r;if(function(t){const e="number"==typeof(t=t||{}).radius&&!isNaN(t.radius)&&t.radius>=.1&&t.radius<=500,i="number"==typeof t.amount&&!isNaN(t.amount)&&t.amount>=0&&t.amount<=10,n="number"==typeof t.threshold&&!isNaN(t.threshold)&&t.threshold>=0&&t.threshold<=255;return e&&i&&n}(e.unsharpMask))return{radius:J(null==(i=e.unsharpMask)?void 0:i.radius,2),amount:J(null==(n=e.unsharpMask)?void 0:n.amount,2),threshold:J(null==(r=e.unsharpMask)?void 0:r.threshold,2)};if(("number"!=typeof(o=(o=e.unsharpMask)||{}).radius||isNaN(o.radius)||0!==o.radius||"number"!=typeof o.amount||isNaN(o.amount)||0!==o.amount||"number"!=typeof o.threshold||isNaN(o.threshold)||0!==o.threshold)&&function(t){const e=G(t.parts);return!(e.scaleFactor>=1)||e.forceUSM||e.transformType===f.FIT}(t))return L;var o;return}(t,e),t.filters=function(t){const e=t.filters||{},i={};dt(e[y.CONTRAST],-100,100)&&(i[y.CONTRAST]=e[y.CONTRAST]);dt(e[y.BRIGHTNESS],-100,100)&&(i[y.BRIGHTNESS]=e[y.BRIGHTNESS]);dt(e[y.SATURATION],-100,100)&&(i[y.SATURATION]=e[y.SATURATION]);dt(e[y.HUE],-180,180)&&(i[y.HUE]=e[y.HUE]);dt(e[y.BLUR],0,100)&&(i[y.BLUR]=e[y.BLUR]);return i}(e)}function dt(t,e,i){return"number"==typeof t&&!isNaN(t)&&0!==t&&t>=e&&t<=i}function gt(t,e,i,n){const r=function(t){return(null==t?void 0:t.isSEOBot)??!1}(n),o=$(e.id),a=function(t,e){const i=/\.([^.]*)$/,n=new RegExp(`(${B.concat(Y).join("|")})`,"g");if(e&&e.length){let t=e;const r=e.match(i);return r&&C.includes(r[1])&&(t=e.replace(i,"")),encodeURIComponent(t).replace(n,U)}const r=t.match(/\/(.*?)$/);return(r?r[1]:t).replace(i,"")}(e.id,e.name),s=r?1:function(t){return Math.min(t.pixelAspectRatio||1,c)}(i),u=z(e.id),h=u,l=F(e.id,null==n?void 0:n.hasAnimation,null==n?void 0:n.allowAnimatedTransform),d={fileName:a,fileExtension:u,fileType:o,fittingType:t,preferredExtension:h,src:{id:e.id,width:e.width,height:e.height,isCropped:!1,isAnimated:X(e.id,null==n?void 0:n.hasAnimation)},focalPoint:{x:e.focalPoint&&e.focalPoint.x,y:e.focalPoint&&e.focalPoint.y},parts:[],devicePixelRatio:s,quality:0,upscaleMethod:Q(n),progressive:!0,watermark:"",unsharpMask:{},filters:{},transformed:l};return l&&(ct(d,e,i),lt(d,n)),d}function ft(t,e,i){const n={...i},r=tt("isMobile");switch(t){case g.LEGACY_BG_FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case g.LEGACY_BG_FIT_AND_TILE_VERTICAL:case g.LEGACY_BG_NORMAL:const t=r?l:u,i=r?d:h;n.width=Math.min(t,e.width),n.height=Math.min(i,Math.round(n.width/(e.width/e.height))),n.pixelAspectRatio=1}return n}const mt=S`fit/w_${"width"},h_${"height"}`,pt=S`fill/w_${"width"},h_${"height"},al_${"alignment"}`,Tt=S`fill/w_${"width"},h_${"height"},fp_${"focalPointX"}_${"focalPointY"}`,_t=S`crop/x_${"x"},y_${"y"},w_${"width"},h_${"height"}`,It=S`crop/w_${"width"},h_${"height"},al_${"alignment"}`,Et=S`fill/w_${"width"},h_${"height"},al_${"alignment"}`,Lt=S`,lg_${"upscaleMethodValue"}`,bt=S`,q_${"quality"}`,At=S`,quality_auto`,wt=S`,usm_${"radius"}_${"amount"}_${"threshold"}`,Ot=S`,bl`,vt=S`,wm_${"watermark"}`,yt={[y.CONTRAST]:S`,con_${"contrast"}`,[y.BRIGHTNESS]:S`,br_${"brightness"}`,[y.SATURATION]:S`,sat_${"saturation"}`,[y.HUE]:S`,hue_${"hue"}`,[y.BLUR]:S`,blur_${"blur"}`},Rt=S`,enc_auto`,Mt=S`,enc_avif`,St=S`,enc_pavif`,Gt=S`,pstr`;function Ct(t,e,i,n,r){var o,a;if(void 0===n&&(n={}),F(e.id,null==(o=n)?void 0:o.hasAnimation,null==(a=n)?void 0:a.allowAnimatedTransform)){if(k(e.id)){const{alignment:o,...a}=i;e.focalPoint={x:void 0,y:void 0},null==e||delete e.crop,r=gt(t,e,a,n)}else r=r||gt(t,e,i,n);return function(t){var e;const i=[];t.parts.forEach((t=>{switch(t.transformType){case f.CROP:i.push(_t(t));break;case f.LEGACY_CROP:i.push(It(t));break;case f.LEGACY_FILL:let e=Et(t);t.upscale&&(e+=Lt(t)),i.push(e);break;case f.FIT:let n=mt(t);t.upscale&&(n+=Lt(t)),i.push(n);break;case f.FILL:let r=pt(t);t.upscale&&(r+=Lt(t)),i.push(r);break;case f.FILL_FOCAL:let o=Tt(t);t.upscale&&(o+=Lt(t)),i.push(o)}}));let n=i.join("/");return t.quality&&(n+=bt(t)),t.unsharpMask&&(n+=wt(t.unsharpMask)),t.progressive||(n+=Ot(t)),t.watermark&&(n+=vt(t)),t.filters&&(n+=Object.keys(t.filters).map((e=>yt[e](t.filters))).join("")),t.fileType!==R.GIF&&(t.encoding===M.AVIF?(n+=Mt(t),n+=At(t)):t.encoding===M.PAVIF?(n+=St(t),n+=At(t)):t.autoEncode&&(n+=Rt(t))),null!=(e=t.src)&&e.isAnimated&&t.transformed&&(n+=Gt(t)),`${t.src.id}/${s}/${n}/${t.fileName}.${t.preferredExtension}`}(r)}return e.id}const Pt={[m.CENTER]:"50% 50%",[m.TOP_LEFT]:"0% 0%",[m.TOP_RIGHT]:"100% 0%",[m.TOP]:"50% 0%",[m.BOTTOM_LEFT]:"0% 100%",[m.BOTTOM_RIGHT]:"100% 100%",[m.BOTTOM]:"50% 100%",[m.RIGHT]:"100% 50%",[m.LEFT]:"0% 50%"},xt=Object.entries(Pt).reduce(((t,e)=>{let[i,n]=e;return t[n]=i,t}),{}),Ft=[g.TILE,g.TILE_HORIZONTAL,g.TILE_VERTICAL,g.LEGACY_BG_FIT_AND_TILE,g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL,g.LEGACY_BG_FIT_AND_TILE_VERTICAL],Nt=[g.LEGACY_ORIGINAL_SIZE,g.ORIGINAL_SIZE,g.LEGACY_BG_NORMAL];function kt(t,e,i){let{width:n,height:r}=i;return t===g.TILE&&e.width>n&&e.height>r}function Ht(t,e){let{width:i,height:n}=e;if(!i||!n){const e=i||Math.min(980,t.width),r=e/t.width;return{width:e,height:n||t.height*r}}return{width:i,height:n}}function Bt(t,e,i,n){void 0===n&&(n="center");const r={img:{},container:{}};if(t===g.SCALE_TO_FILL){const t=e.focalPoint&&function(t){const e=`${t.x}% ${t.y}%`;return xt[e]||""}(e.focalPoint),o=t||n;e.focalPoint&&!t?r.img={objectPosition:Yt(e,i,e.focalPoint)}:r.img={objectPosition:Pt[o]}}else[g.LEGACY_ORIGINAL_SIZE,g.ORIGINAL_SIZE].includes(t)?r.img={objectFit:"none",top:"auto",left:"auto",right:"auto",bottom:"auto"}:Ft.includes(t)&&(r.container={backgroundSize:`${e.width}px ${e.height}px`});return r}function Yt(t,e,i){const{width:n,height:r}=t,{width:o,height:a}=e,{x:s,y:c}=i;if(!o||!a)return`${s}% ${c}%`;const u=Math.max(o/n,a/r),h=n*u,l=r*u,d=Math.max(0,Math.min(h-o,h*(s/100)-o/2)),g=Math.max(0,Math.min(l-a,l*(c/100)-a/2));return`${d&&Math.floor(d/(h-o)*100)}% ${g&&Math.floor(g/(l-a)*100)}%`}const Ut={width:"100%",height:"100%"};function $t(t,e,i,n){void 0===n&&(n={});const{autoEncode:r=!0,isSEOBot:o,shouldLoadHQImage:a,hasAnimation:s,allowAnimatedTransform:c,encoding:u}=n;if(!x(t,e,i))return b;const h=void 0===c||c,l=F(e.id,s,h);if(!l||a)return zt(t,e,i,{...n,autoEncode:r,useSrcset:l});const d={...i,...Ht(e,i)},{alignment:f,htmlTag:m}=d,p=kt(t,e,d),T=function(t,e,i,n){let{width:r,height:o}=i;if(void 0===n&&(n=!1),n)return{width:r,height:o};const a=!Nt.includes(t),s=kt(t,e,{width:r,height:o}),c=!s&&Ft.includes(t),u=c?e.width:r,h=c?e.height:o,l=a?function(t,e){return t>900?e?.05:.15:t>500?e?.1:.18:t>200?.25:1}(u,N(e.id)):1;return{width:s?1920:u*l,height:h*l}}(t,e,d,o),_=function(t,e,i){return i?0:Ft.includes(e)?1:t>200?2:3}(d.width,t,o),I=function(t,e){const i=Ft.includes(t)&&!e;return t===g.SCALE_TO_FILL||i?g.SCALE_TO_FIT:t}(t,p),E=Bt(t,e,i,f),{uri:L}=zt(I,e,{...T,alignment:f,htmlTag:m},{autoEncode:r,filters:_?{blur:_}:{},hasAnimation:s,allowAnimatedTransform:h,encoding:u}),{attr:A={},css:w}=zt(t,e,{...d,alignment:f,htmlTag:m},{});return w.img=w.img||{},w.container=w.container||{},Object.assign(w.img,E.img,Ut),Object.assign(w.container,E.container),{uri:L,css:w,attr:A,transformed:!0}}function zt(t,e,i,n){let r={};if(x(t,e,i)){const o=ft(t,e,i),a=gt(t,e,o,n);r.uri=Ct(t,e,o,n,a),null!=n&&n.useSrcset&&(r.srcset=function(t,e,i,n,r){const o=i.pixelAspectRatio||1;return{dpr:[`${1===o?r.uri:Ct(t,e,{...i,pixelAspectRatio:1},n)} 1x`,`${2===o?r.uri:Ct(t,e,{...i,pixelAspectRatio:2},n)} 2x`]}}(t,e,o,n,r)),Object.assign(r,function(t,e){let i;return i=e.htmlTag===_.BG?nt:e.htmlTag===_.SVG?st:at,i(t,e)}(a,o),{transformed:a.transformed})}else r=b;return r}function Dt(t,e,i,n){if(x(t,e,i)){const r=ft(t,e,i);return{uri:Ct(t,e,r,n||{},gt(t,e,r,n))}}return{uri:""}}const jt="https://static.wixstatic.com/media/",Wt=/^media\//i,qt="undefined"!=typeof window?window.devicePixelRatio:1,Vt=(t,e)=>{const i=e&&e.baseHostURL;return i?`${i}${t}`:(t=>Wt.test(t)?`https://static.wixstatic.com/${t}`:`${jt}${t}`)(t)};it();const Zt=(t,e,i)=>{var n;const{displayMode:r,uri:o,width:a,height:s,name:c,crop:u,focalPoint:h,alignType:l,quality:d,upscaleMethod:g,hasAnimation:f,allowAnimatedTransform:m,encoding:p}=t,{srcset:T,css:_}=zt(r,{id:o,width:a,height:s,name:c,crop:u,focalPoint:h},{width:e,height:i,alignment:l},{focalPoint:h,name:c,quality:null==d?void 0:d.quality,upscaleMethod:g,hasAnimation:f,allowAnimatedTransform:m,useSrcset:!0,encoding:p}),I=null==T||null==(n=T.dpr)?void 0:n.map((t=>/^[a-z]+:/.test(t)?t:`${Qt}${t}`));return{fallbackSrc:null==I?void 0:I[0],srcset:null==I?void 0:I.join(", "),css:_}};it();const Jt={getScaleToFitImageURL:function(t,e,i,n,r,o){const a=Dt(g.SCALE_TO_FIT,{id:t,width:e,height:i,name:o&&o.name},{width:n,height:r,htmlTag:_.IMG,alignment:m.CENTER,pixelAspectRatio:(null==o?void 0:o.devicePixelRatio)??qt},o);return Vt(a.uri,o)},getScaleToFillImageURL:function(t,e,i,n,r,o){const a=Dt(g.SCALE_TO_FILL,{id:t,width:e,height:i,name:o&&o.name,focalPoint:{x:o&&o.focalPoint&&o.focalPoint.x,y:o&&o.focalPoint&&o.focalPoint.y}},{width:n,height:r,htmlTag:_.IMG,alignment:m.CENTER,pixelAspectRatio:(null==o?void 0:o.devicePixelRatio)??qt},o);return Vt(a.uri,o)},getCropImageURL:function(t,e,i,n,r,o,a,s,c,u){const h=Dt(g.SCALE_TO_FILL,{id:t,width:e,height:i,name:u&&u.name,crop:{x:n,y:r,width:o,height:a}},{width:s,height:c,htmlTag:_.IMG,alignment:m.CENTER,pixelAspectRatio:(null==u?void 0:u.devicePixelRatio)??qt},u);return Vt(h.uri,u)}},Qt=jt,{STATIC_MEDIA_URL:Xt}=t,Kt=t=>{let{fittingType:e,src:i,target:n,options:r}=t;const o=$t(e,i,n,{...r,autoEncode:!0});return null!=o&&o.uri&&!/^[a-z]+:/.test(o.uri)&&(o.uri=`${Xt}${o.uri}`),o},te=/^[a-z]+:/,ee=t=>{var e,n;const{id:r,containerId:s,uri:c,alt:u,name:h="",role:l,width:d,height:g,displayMode:f,devicePixelRatio:m,quality:p,alignType:T,bgEffectName:_="",focalPoint:I,upscaleMethod:E,className:L="",crop:b,imageStyles:A={},targetWidth:w,targetHeight:O,targetScale:v,onLoad:y=()=>{},onError:R=()=>{},shouldUseLQIP:M,containerWidth:S,containerHeight:G,getPlaceholder:C,isInFirstFold:P,placeholderTransition:x,socialAttrs:F,isSEOBot:N,skipMeasure:k,hasAnimation:H,encoding:B}=t,Y=o.useRef(null);let U="";const $="blur"===x,z=o.useRef(null);if(!z.current)if(C||M||P||N){const t={upscaleMethod:E,...p||{},shouldLoadHQImage:P,isSEOBot:N,hasAnimation:H,encoding:B};z.current=(C||Kt)({fittingType:f,src:{id:c,width:d,height:g,crop:b,name:h,focalPoint:I},target:{width:S,height:G,alignment:T,htmlTag:"img"},options:t}),U=!z.current.transformed||P||N?"":"true"}else z.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const D=!N&&(C||M)&&!P&&z.current.transformed,j=o.useMemo((()=>JSON.stringify({containerId:s,...s&&{containerId:s},...T&&{alignType:T},...k&&{skipMeasure:!0},displayMode:f,...S&&{targetWidth:S},...G&&{targetHeight:G},...w&&{targetWidth:w},...O&&{targetHeight:O},...v&&{targetScale:v},isLQIP:D,isSEOBot:N,lqipTransition:x,encoding:B,imageData:{width:d,height:g,uri:c,name:h,displayMode:f,hasAnimation:H,...p&&{quality:p},...m&&{devicePixelRatio:m},...I&&{focalPoint:I},...b&&{crop:b},...E&&{upscaleMethod:E}}})),[s,T,k,f,S,G,w,O,v,D,N,x,B,d,g,c,h,H,p,m,I,b,E]),W=z.current,q=null==W?void 0:W.uri,V=null==W?void 0:W.srcset,Z=null==(e=W.css)?void 0:e.img,J=`${a} ${L}`;o.useEffect((()=>{const t=Y.current;y&&null!=t&&t.currentSrc&&null!=t&&t.complete&&y({target:t})}),[]);const Q=!W||null!=W&&W.transformed?w?`${w}px`:null:`max(${d}px, 100%)`;return o.createElement("wow-image",{id:r,class:J,"data-image-info":j,"data-motion-part":"BG_IMG","data-bg-effect-name":_,"data-has-ssr-src":U,"data-animate-blur":!N&&D&&$?"":void 0,style:Q?{"--wix-img-max-width":Q}:{}},o.createElement("img",i()({src:q,ref:Y,alt:u||"",role:l,style:{...Z,...A},onLoad:y,onError:R,width:S||void 0,height:G||void 0},F,{srcSet:P?null==V||null==(n=V.dpr)?void 0:n.map((t=>te.test(t)?t:`${Xt}${t}`)).join(", "):void 0,fetchpriority:P?"high":void 0,loading:!1===P?"lazy":void 0,suppressHydrationWarning:!0})))};var ie=n(99),ne=n.n(ie);const re={columnCount:1,columns:1,fontWeight:1,lineHeight:1,opacity:1,zIndex:1,zoom:1},oe=(t,e)=>(Array.isArray(e)?e:[e]).reduce(((e,i)=>{const n=t[i];return void 0!==n?Object.assign(e,{[i]:n}):e}),{}),ae=(t,e)=>t&&e&&Object.keys(e).forEach((i=>{const n=i,r=e[n];void 0!==r?t.style[n]=((t,e)=>"number"!=typeof e||re[t]?e.toString():`${e}px`)(n,r):t.style.removeProperty(n)})),se=(t,e,i)=>{if(!t.targetWidth||!t.targetHeight||!t.imageData.uri)return{uri:"",css:{},transformed:!1};const{imageData:n}=t,r=t.displayMode||g.SCALE_TO_FILL,o=Object.assign(oe(n,["upscaleMethod"]),oe(t,["filters","encoding"]),t.quality||n.quality,{hasAnimation:(null==t?void 0:t.hasAnimation)||(null==n?void 0:n.hasAnimation)}),a=t.imageData.devicePixelRatio||e.devicePixelRatio,s=ue(a),c=zt(r,Object.assign(oe(n,["width","height","crop","name","focalPoint"]),{id:n.uri}),{width:t.targetWidth,height:t.targetHeight,htmlTag:i||"img",pixelAspectRatio:s,alignment:t.alignType||m.CENTER},o);return c.uri=ce(c.uri,e.staticMediaUrl,e.mediaRootUrl),c},ce=(t,e,i)=>{if(/(^https?)|(^data)|(^blob)|(^\/\/)/.test(t))return t;let n=`${e}/`;var r;t&&(/^micons\//.test(t)?n=i:"ico"===(null==(r=/[^.]+$/.exec(t))?void 0:r[0])&&(n=n.replace("media","ficons")));return n+t},ue=t=>{const e=window.location.search.split("&").map((t=>t.split("="))).find((t=>{var e;return null==(e=t[0])?void 0:e.toLowerCase().includes("devicepixelratio")}));return(null!=e&&e[1]?Number(e[1]):null)||t||1},he=t=>t.getAttribute("src"),le=80;const de={measure:function(t,e,i,n,r){let{containerElm:o,bgEffect:a="none",sourceSets:s}=n;const c=i.image,u=i[t],h=(null==r.getScreenHeightOverride?void 0:r.getScreenHeightOverride())||document.documentElement.clientHeight||window.innerHeight||0,l=null==o?void 0:o.dataset.mediaHeightOverrideType,d=a&&"none"!==a||s&&s.some((t=>t.scrollEffect)),g=o&&d?o:u,f=window.getComputedStyle(u).getPropertyValue("--bg-scrub-effect"),{width:m,height:p}=(null==r.getMediaDimensionsByEffect?void 0:r.getMediaDimensionsByEffect(f||a,g.offsetWidth,g.offsetHeight,h))||{width:u.offsetWidth,height:u.offsetHeight};if(s&&(e.sourceSetsTargetHeights=function(t,e,i,n,r){const o={};return t.forEach((t=>{let{mediaQuery:a,scrollEffect:s}=t;o[a]=r.getMediaDimensionsByEffect(s,e,i,n).height})),o}(s,g.offsetWidth,g.offsetHeight,h,r)),!c)return;const T=he(c);f&&(e.top=.5*(u.offsetHeight-p),e.left=.5*(u.offsetWidth-m)),e.width=m,e.height=function(t,e){return"fixed"===e||"viewport"===e?document.documentElement.clientHeight+le:t}(p,l),e.screenHeight=h,e.imgSrc=T,e.boundingRect=u.getBoundingClientRect(),e.mediaHeightOverrideType=l,e.srcset=c.srcset},patch:function(t,e,i,n,r,o,a,s,c){var u;if(!Object.keys(e).length)return;const{imageData:h}=n,l=i[t],d=i.image;s&&(h.devicePixelRatio=1);const g=n.targetScale||1,f={...n,...!n.skipMeasure&&{targetWidth:(e.width||0)*g,targetHeight:(e.height||0)*g},displayMode:h.displayMode},m=se(f,r,"img"),p=(null==m||null==(u=m.css)?void 0:u.img)||{},T=function(t,e,i,n,r){const o=function(t,e){return void 0===e&&(e=1),1!==e?{...t,width:"100%",height:"100%"}:t}(e,n);if(r&&(delete o.height,o.width="100%"),!t)return o;const a={...o};return"fill"===i?(a.position="absolute",a.top="0"):"fit"===i&&(a.height="100%"),"fixed"===t&&(a["will-change"]="transform"),a.objectPosition&&(a.objectPosition=e.objectPosition.replace(/(center|bottom)$/,"top")),a}(e.mediaHeightOverrideType,p,h.displayMode,g,a);ae(d,T),(e.top||e.left)&&ae(l,{top:`${e.top}px`,left:`${e.left}px`});const _=(null==m?void 0:m.uri)||"",I=(null==h?void 0:h.hasAnimation)||(null==n?void 0:n.hasAnimation),E=function(t,e,i){const{sourceSets:n}=e;if(!n||!n.length)return;const r={};return n.forEach((n=>{let{mediaQuery:o,crop:a,focalPoint:s}=n;const c={...e,targetHeight:(t.sourceSetsTargetHeights||{})[o]||0,imageData:{...e.imageData,crop:a,focalPoint:s}},u=se(c,i,"img");r[o]=u.uri||""})),r}(e,f,r);if(c&&(d.dataset.ssrSrcDone="true"),n.isLQIP&&n.lqipTransition&&!("transitioned"in l.dataset)&&(l.dataset.transitioned="",d.complete?d.onload=function(){d.dataset.loadDone=""}:d.onload=function(){d.complete?d.dataset.loadDone="":d.onload=function(){d.dataset.loadDone=""}}),o){((t,e)=>z(t)===R.GIF||z(t)===R.WEBP&&e)(h.uri,I)?(d.setAttribute("fetchpriority","low"),d.setAttribute("loading","lazy"),d.setAttribute("decoding","async")):d.setAttribute("fetchpriority","high"),d.currentSrc!==_&&d.setAttribute("src",_);e.srcset&&!e.srcset.split(", ").some((t=>t.split(" ")[0]===_))&&d.setAttribute("srcset",_),i.picture&&f.sourceSets&&Array.from(i.picture.querySelectorAll("source")).forEach((t=>{const e=t.media||"",i=null==E?void 0:E[e];t.srcset!==i&&t.setAttribute("srcset",i||"")}))}}},ge={parallax:"ImageParallax",fixed:"ImageReveal"};const fe=function(t,e,i){return class extends i.HTMLElement{constructor(){super(),ne()(this,"childListObserver",void 0),ne()(this,"timeoutId",void 0),this.childListObserver=null,this.timeoutId=null}attributeChangedCallback(t,e){e&&this.reLayout()}connectedCallback(){e.disableImagesLazyLoading?this.reLayout():this.observeIntersect()}disconnectedCallback(){this.unobserveResize(),this.unobserveIntersect(),this.unobserveChildren()}static get observedAttributes(){return["data-image-info"]}reLayout(){const n={},r={},o=this.getAttribute("id"),a=JSON.parse(this.dataset.imageInfo||""),s="true"===this.dataset.isResponsive,{bgEffectName:c}=this.dataset,{scrollEffect:u}=a.imageData,{sourceSets:h}=a,l=c||u&&ge[u];h&&h.length&&h.forEach((t=>{t.scrollEffect&&(t.scrollEffect=ge[t.scrollEffect])})),n[o]=this,a.containerId&&(n[a.containerId]=i.document.getElementById(`${a.containerId}`));const d=a.containerId?n[a.containerId]:void 0;if(n.image=this.querySelector("img"),n.picture=this.querySelector("picture"),!n.image){const t=this;return void this.observeChildren(t)}this.unobserveChildren(),this.observeChildren(this),t.mutationService.measure((()=>{de.measure(o,r,n,{containerElm:d,bgEffect:l,sourceSets:h},t)}));const g=(i,c)=>{t.mutationService.mutate((()=>{de.patch(o,r,n,a,e,i,s,l,c)}))},f=n.image,m=this.dataset.hasSsrSrc&&!f.dataset.ssrSrcDone;!he(f)||m?g(!0,!0):this.debounceImageLoad(g)}debounceImageLoad(t){clearTimeout(this.timeoutId),this.timeoutId=i.setTimeout((()=>{t(!0)}),250),t(!1)}observeResize(){var e;null==(e=t.resizeService)||e.observe(this)}unobserveResize(){var e;null==(e=t.resizeService)||e.unobserve(this)}observeIntersect(){var e;null==(e=t.intersectionService)||e.observe(this)}unobserveIntersect(){var e;null==(e=t.intersectionService)||e.unobserve(this)}observeChildren(t){this.childListObserver||(this.childListObserver=new i.MutationObserver((()=>{this.reLayout()}))),this.childListObserver.observe(t,{childList:!0})}unobserveChildren(){this.childListObserver&&(this.childListObserver.disconnect(),this.childListObserver=null)}}};var me=n(709),pe=n.n(me);const Te=()=>/iemobile/i.test(navigator.userAgent)?Math.round(window.screen.availWidth/(window.screen.width||window.document.documentElement.clientWidth)):window.devicePixelRatio,_e="https://static.wixstatic.com/media",Ie="https://static.wixstatic.com";function Ee(t,e,i){if(void 0===t&&(t={}),void 0===e&&(e=null),void 0===i&&(i={}),"undefined"==typeof window)return;const n={staticMediaUrl:_e,mediaRootUrl:Ie,experiments:{},devicePixelRatio:Te(),...i},r=function(t,e){const i="wow-image";if(void 0===(t=t||window).customElements.get(i)){let n,r;return t.ResizeObserver&&(n=new t.ResizeObserver((t=>t.map((t=>t.target.reLayout()))))),t.IntersectionObserver&&(r=new IntersectionObserver((t=>t.map((t=>{if(t.isIntersecting){const e=t.target;e.unobserveIntersect(),e.observeResize()}return t}))),{rootMargin:"150% 100%"})),function(o){const a=fe({resizeService:n,intersectionService:r,mutationService:pe(),...e},o,t);t.customElements.define(i,a)}}}(e,t);r&&r(n)}})(),r})())); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React")):"function"==typeof define&&define.amd?define("image",["React"],e):"object"==typeof exports?exports.image=e(require("React")):t.image=e(t.React)}("undefined"!=typeof self?self:this,(t=>(()=>{var e={709:function(t,e,i){var n;!function(e){"use strict";var r=function(){},o=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return setTimeout(t,16)};function a(){var t=this;t.reads=[],t.writes=[],t.raf=o.bind(e),r("initialized",t)}function s(t){t.scheduled||(t.scheduled=!0,t.raf(c.bind(null,t)),r("flush scheduled"))}function c(t){r("flush");var e,i=t.writes,n=t.reads;try{r("flushing reads",n.length),t.runTasks(n),r("flushing writes",i.length),t.runTasks(i)}catch(t){e=t}if(t.scheduled=!1,(n.length||i.length)&&s(t),e){if(r("task errored",e.message),!t.catch)throw e;t.catch(e)}}function u(t,e){var i=t.indexOf(e);return!!~i&&!!t.splice(i,1)}a.prototype={constructor:a,runTasks:function(t){var e;for(r("run tasks");e=t.shift();)e()},measure:function(t,e){r("measure");var i=e?t.bind(e):t;return this.reads.push(i),s(this),i},mutate:function(t,e){r("mutate");var i=e?t.bind(e):t;return this.writes.push(i),s(this),i},clear:function(t){return r("clear",t),u(this.reads,t)||u(this.writes,t)},extend:function(t){if(r("extend",t),"object"!=typeof t)throw new Error("expected object");var e=Object.create(this);return function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}(e,t),e.fastdom=this,e.initialize&&e.initialize(),e},catch:null};var h=e.fastdom=e.fastdom||new a;void 0===(n=function(){return h}.call(h,i,h,t))||(t.exports=n)}("undefined"!=typeof window?window:void 0!==this?this:globalThis)},883:e=>{"use strict";e.exports=t},99:(t,e,i)=>{var n=i(602);t.exports=function(t,e,i){return(e=n(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports},448:t=>{function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(null,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},751:(t,e,i)=>{var n=i(284).default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},602:(t,e,i)=>{var n=i(284).default,r=i(751);t.exports=function(t){var e=r(t,"string");return"symbol"==n(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},284:t=>{function e(i){return t.exports=e="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.exports.__esModule=!0,t.exports.default=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}},i={};function n(t){var r=i[t];if(void 0!==r)return r.exports;var o=i[t]={exports:{}};return e[t].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Image:()=>ee,imageKit:()=>t,initCustomElement:()=>Ee});var t={};n.r(t),n.d(t,{STATIC_MEDIA_URL:()=>Qt,alignTypes:()=>m,fileType:()=>R,fittingTypes:()=>g,getData:()=>zt,getFileExtension:()=>z,getPlaceholder:()=>$t,getResponsiveImageProps:()=>Zt,htmlTag:()=>_,isWEBP:()=>k,populateGlobalFeatureSupport:()=>it,sdk:()=>Jt,upscaleMethods:()=>I});var e=n(448),i=n.n(e),o=n(883);const a="DpEFnE",s="v1",c=2,u=1920,h=1920,l=1e3,d=1e3,g={SCALE_TO_FILL:"fill",SCALE_TO_FIT:"fit",STRETCH:"stretch",ORIGINAL_SIZE:"original_size",TILE:"tile",TILE_HORIZONTAL:"tile_horizontal",TILE_VERTICAL:"tile_vertical",FIT_AND_TILE:"fit_and_tile",LEGACY_STRIP_TILE:"legacy_strip_tile",LEGACY_STRIP_TILE_HORIZONTAL:"legacy_strip_tile_horizontal",LEGACY_STRIP_TILE_VERTICAL:"legacy_strip_tile_vertical",LEGACY_STRIP_SCALE_TO_FILL:"legacy_strip_fill",LEGACY_STRIP_SCALE_TO_FIT:"legacy_strip_fit",LEGACY_STRIP_FIT_AND_TILE:"legacy_strip_fit_and_tile",LEGACY_STRIP_ORIGINAL_SIZE:"legacy_strip_original_size",LEGACY_ORIGINAL_SIZE:"actual_size",LEGACY_FIT_WIDTH:"fitWidth",LEGACY_FIT_HEIGHT:"fitHeight",LEGACY_FULL:"full",LEGACY_BG_FIT_AND_TILE:"legacy_tile",LEGACY_BG_FIT_AND_TILE_HORIZONTAL:"legacy_tile_horizontal",LEGACY_BG_FIT_AND_TILE_VERTICAL:"legacy_tile_vertical",LEGACY_BG_NORMAL:"legacy_normal"},f={FIT:"fit",FILL:"fill",FILL_FOCAL:"fill_focal",CROP:"crop",LEGACY_CROP:"legacy_crop",LEGACY_FILL:"legacy_fill"},m={CENTER:"center",TOP:"top",TOP_LEFT:"top_left",TOP_RIGHT:"top_right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom_left",BOTTOM_RIGHT:"bottom_right",LEFT:"left",RIGHT:"right"},p={[m.CENTER]:{x:.5,y:.5},[m.TOP_LEFT]:{x:0,y:0},[m.TOP_RIGHT]:{x:1,y:0},[m.TOP]:{x:.5,y:0},[m.BOTTOM_LEFT]:{x:0,y:1},[m.BOTTOM_RIGHT]:{x:1,y:1},[m.BOTTOM]:{x:.5,y:1},[m.RIGHT]:{x:1,y:.5},[m.LEFT]:{x:0,y:.5}},T={center:"c",top:"t",top_left:"tl",top_right:"tr",bottom:"b",bottom_left:"bl",bottom_right:"br",left:"l",right:"r"},_={BG:"bg",IMG:"img",SVG:"svg"},I={AUTO:"auto",CLASSIC:"classic",SUPER:"super"},E={classic:1,super:2},L={radius:"0.66",amount:"1.00",threshold:"0.01"},b={uri:"",css:{img:{},container:{}},attr:{img:{},container:{}},transformed:!1},A=25e6,w=[1.5,2,4],O={HIGH:{size:196e4,quality:90,maxUpscale:1},MEDIUM:{size:36e4,quality:85,maxUpscale:1},LOW:{size:16e4,quality:80,maxUpscale:1.2},TINY:{size:0,quality:80,maxUpscale:1.4}},v={HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",TINY:"TINY"},y={CONTRAST:"contrast",BRIGHTNESS:"brightness",SATURATION:"saturation",HUE:"hue",BLUR:"blur"},R={JPG:"jpg",JPEG:"jpeg",JPE:"jpe",PNG:"png",WEBP:"webp",WIX_ICO_MP:"wix_ico_mp",WIX_MP:"wix_mp",GIF:"gif",SVG:"svg",UNRECOGNIZED:"unrecognized"},M={AVIF:"AVIF",PAVIF:"PAVIF"};R.JPG,R.JPEG,R.JPE,R.PNG,R.GIF,R.WEBP;function S(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const o=n[n.length-1]||{},a=[t[0]];return i.forEach((function(e,i){const r=Number.isInteger(e)?n[e]:o[e];a.push(r,t[i+1])})),a.join("")}}function G(t){return t[t.length-1]}const C=[R.PNG,R.JPEG,R.JPG,R.JPE,R.WIX_ICO_MP,R.WIX_MP,R.WEBP],P=[R.JPEG,R.JPG,R.JPE];function x(t,e,i){return i&&e&&!(!(n=e.id)||!n.trim()||"none"===n.toLowerCase())&&Object.values(g).includes(t);var n}function F(t,e,i){return function(t,e,i){return void 0===i&&(i=!1),!(k(t)&&e&&!i)}(t,e,i)&&(function(t){return C.includes(z(t))}(t)||function(t,e){return void 0===e&&(e=!1),H(t)&&e}(t,i))&&!/(^https?)|(^data)|(^\/\/)/.test(t)}function N(t){return z(t)===R.PNG}function k(t){return z(t)===R.WEBP}function H(t){return z(t)===R.GIF}const B=["/","\\","?","<",">","|","\u201c",":",'"'].map(encodeURIComponent),Y=["\\.","\\*"],U="_";function $(t){return function(t){return P.includes(z(t))}(t)?R.JPG:N(t)?R.PNG:k(t)?R.WEBP:H(t)?R.GIF:R.UNRECOGNIZED}function z(t){return(/[.]([^.]+)$/.exec(t)&&/[.]([^.]+)$/.exec(t)[1]||"").toLowerCase()}function D(t,e,i,n,r){let o;return o=r===f.FILL?function(t,e,i,n){return Math.max(i/t,n/e)}(t,e,i,n):r===f.FIT?function(t,e,i,n){return Math.min(i/t,n/e)}(t,e,i,n):1,o}function j(t,e,i,n,r,o){t=t||n.width,e=e||n.height;const{scaleFactor:a,width:s,height:c}=function(t,e,i,n,r){let o,a=i,s=n;if(o=D(t,e,i,n,r),r===f.FIT&&(a=t*o,s=e*o),a&&s&&a*s>A){const i=Math.sqrt(A/(a*s));a*=i,s*=i,o=D(t,e,a,s,r)}return{scaleFactor:o,width:a,height:s}}(t,e,n.width*r,n.height*r,i);return function(t,e,i,n,r,o,a){const{optimizedScaleFactor:s,upscaleMethodValue:c,forceUSM:u}=function(t,e,i,n){if("auto"===n)return function(t,e){const i=Z(t,e);return{optimizedScaleFactor:O[i].maxUpscale,upscaleMethodValue:E.classic,forceUSM:!1}}(t,e);if("super"===n)return function(t){return{optimizedScaleFactor:G(w),upscaleMethodValue:E.super,forceUSM:!(w.includes(t)||t>G(w))}}(i);return function(t,e){const i=Z(t,e);return{optimizedScaleFactor:O[i].maxUpscale,upscaleMethodValue:E.classic,forceUSM:!1}}(t,e)}(t,e,o,r);let h=i,l=n;if(o<=s)return{width:h,height:l,scaleFactor:o,upscaleMethodValue:c,forceUSM:u,cssUpscaleNeeded:!1};switch(a){case f.FILL:h=i*(s/o),l=n*(s/o);break;case f.FIT:h=t*s,l=e*s}return{width:h,height:l,scaleFactor:s,upscaleMethodValue:c,forceUSM:u,cssUpscaleNeeded:!0}}(t,e,s,c,o,a,i)}function W(t,e,i,n){const r=V(i)||function(t){return void 0===t&&(t=m.CENTER),p[t]}(n);return{x:Math.max(0,Math.min(t.width-e.width,r.x*t.width-e.width/2)),y:Math.max(0,Math.min(t.height-e.height,r.y*t.height-e.height/2)),width:Math.min(t.width,e.width),height:Math.min(t.height,e.height)}}function q(t){return t.alignment&&T[t.alignment]||T[m.CENTER]}function V(t){let e;return!t||"number"!=typeof t.x||isNaN(t.x)||"number"!=typeof t.y||isNaN(t.y)||(e={x:J(Math.max(0,Math.min(100,t.x))/100,2),y:J(Math.max(0,Math.min(100,t.y))/100,2)}),e}function Z(t,e){const i=t*e;return i>O[v.HIGH].size?v.HIGH:i>O[v.MEDIUM].size?v.MEDIUM:i>O[v.LOW].size?v.LOW:v.TINY}function J(t,e){const i=Math.pow(10,e||0);return(t*i/i).toFixed(e)}function Q(t){return t&&t.upscaleMethod&&I[t.upscaleMethod.toUpperCase()]||I.AUTO}function X(t,e){return z(t)===R.GIF||z(t)===R.WEBP&&e}const K={isMobile:!1},tt=function(t){return K[t]},et=function(t,e){K[t]=e};function it(){if("undefined"!=typeof window&&"undefined"!=typeof navigator){const t=window.matchMedia&&window.matchMedia("(max-width: 767px)").matches,e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);et("isMobile",t&&e)}}function nt(t,e){const i={css:{container:{}}},{css:n}=i,{fittingType:r}=t;switch(r){case g.ORIGINAL_SIZE:case g.LEGACY_ORIGINAL_SIZE:case g.LEGACY_STRIP_ORIGINAL_SIZE:n.container.backgroundSize="auto",n.container.backgroundRepeat="no-repeat";break;case g.SCALE_TO_FIT:case g.LEGACY_STRIP_SCALE_TO_FIT:n.container.backgroundSize="contain",n.container.backgroundRepeat="no-repeat";break;case g.STRETCH:n.container.backgroundSize="100% 100%",n.container.backgroundRepeat="no-repeat";break;case g.SCALE_TO_FILL:case g.LEGACY_STRIP_SCALE_TO_FILL:n.container.backgroundSize="cover",n.container.backgroundRepeat="no-repeat";break;case g.TILE_HORIZONTAL:case g.LEGACY_STRIP_TILE_HORIZONTAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-x";break;case g.TILE_VERTICAL:case g.LEGACY_STRIP_TILE_VERTICAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-y";break;case g.TILE:case g.LEGACY_STRIP_TILE:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat";break;case g.LEGACY_STRIP_FIT_AND_TILE:n.container.backgroundSize="contain",n.container.backgroundRepeat="repeat";break;case g.FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat";break;case g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-x";break;case g.LEGACY_BG_FIT_AND_TILE_VERTICAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="repeat-y";break;case g.LEGACY_BG_NORMAL:n.container.backgroundSize="auto",n.container.backgroundRepeat="no-repeat"}switch(e.alignment){case m.CENTER:n.container.backgroundPosition="center center";break;case m.LEFT:n.container.backgroundPosition="left center";break;case m.RIGHT:n.container.backgroundPosition="right center";break;case m.TOP:n.container.backgroundPosition="center top";break;case m.BOTTOM:n.container.backgroundPosition="center bottom";break;case m.TOP_RIGHT:n.container.backgroundPosition="right top";break;case m.TOP_LEFT:n.container.backgroundPosition="left top";break;case m.BOTTOM_RIGHT:n.container.backgroundPosition="right bottom";break;case m.BOTTOM_LEFT:n.container.backgroundPosition="left bottom"}return i}const rt={[m.CENTER]:"center",[m.TOP]:"top",[m.TOP_LEFT]:"top left",[m.TOP_RIGHT]:"top right",[m.BOTTOM]:"bottom",[m.BOTTOM_LEFT]:"bottom left",[m.BOTTOM_RIGHT]:"bottom right",[m.LEFT]:"left",[m.RIGHT]:"right"},ot={position:"absolute",top:"auto",right:"auto",bottom:"auto",left:"auto"};function at(t,e){const i={css:{container:{},img:{}}},{css:n}=i,{fittingType:r}=t,o=e.alignment;switch(n.container.position="relative",r){case g.ORIGINAL_SIZE:case g.LEGACY_ORIGINAL_SIZE:t.parts&&t.parts.length?(n.img.width=t.parts[0].width,n.img.height=t.parts[0].height):(n.img.width=t.src.width,n.img.height=t.src.height);break;case g.SCALE_TO_FIT:case g.LEGACY_FIT_WIDTH:case g.LEGACY_FIT_HEIGHT:case g.LEGACY_FULL:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="contain",n.img.objectPosition=rt[o]||"unset";break;case g.LEGACY_BG_NORMAL:n.img.width="100%",n.img.height="100%",n.img.objectFit="none",n.img.objectPosition=rt[o]||"unset";break;case g.STRETCH:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="fill";break;case g.SCALE_TO_FILL:n.img.width=e.width,n.img.height=e.height,n.img.objectFit="cover"}if("number"==typeof n.img.width&&"number"==typeof n.img.height&&(n.img.width!==e.width||n.img.height!==e.height)){const t=Math.round((e.height-n.img.height)/2),i=Math.round((e.width-n.img.width)/2);Object.assign(n.img,ot,function(t,e,i){return{[m.TOP_LEFT]:{top:0,left:0},[m.TOP_RIGHT]:{top:0,right:0},[m.TOP]:{top:0,left:e},[m.BOTTOM_LEFT]:{bottom:0,left:0},[m.BOTTOM_RIGHT]:{bottom:0,right:0},[m.BOTTOM]:{bottom:0,left:e},[m.RIGHT]:{top:t,right:0},[m.LEFT]:{top:t,left:0},[m.CENTER]:{width:i.width,height:i.height,objectFit:"none"}}}(t,i,e)[o])}return i}function st(t,e){const i={css:{container:{}},attr:{container:{},img:{}}},{css:n,attr:r}=i,{fittingType:o}=t,a=e.alignment,{width:s,height:c}=t.src;let u;switch(n.container.position="relative",o){case g.ORIGINAL_SIZE:case g.LEGACY_ORIGINAL_SIZE:case g.TILE:t.parts&&t.parts.length?(r.img.width=t.parts[0].width,r.img.height=t.parts[0].height):(r.img.width=s,r.img.height=c),r.img.preserveAspectRatio="xMidYMid slice";break;case g.SCALE_TO_FIT:case g.LEGACY_FIT_WIDTH:case g.LEGACY_FIT_HEIGHT:case g.LEGACY_FULL:r.img.width="100%",r.img.height="100%",r.img.transform="",r.img.preserveAspectRatio="";break;case g.STRETCH:r.img.width=e.width,r.img.height=e.height,r.img.x=0,r.img.y=0,r.img.transform="",r.img.preserveAspectRatio="none";break;case g.SCALE_TO_FILL:F(t.src.id)?(r.img.width=e.width,r.img.height=e.height):(u=function(t,e,i,n,r){const o=D(t,e,i,n,r);return{width:Math.round(t*o),height:Math.round(e*o)}}(s,c,e.width,e.height,f.FILL),r.img.width=u.width,r.img.height=u.height),r.img.x=0,r.img.y=0,r.img.transform="",r.img.preserveAspectRatio="xMidYMid slice"}if("number"==typeof r.img.width&&"number"==typeof r.img.height&&(r.img.width!==e.width||r.img.height!==e.height)){let t,i,n=0,s=0;o===g.TILE?(t=e.width%r.img.width,i=e.height%r.img.height):(t=e.width-r.img.width,i=e.height-r.img.height);const c=Math.round(t/2),u=Math.round(i/2);switch(a){case m.TOP_LEFT:n=0,s=0;break;case m.TOP:n=c,s=0;break;case m.TOP_RIGHT:n=t,s=0;break;case m.LEFT:n=0,s=u;break;case m.CENTER:n=c,s=u;break;case m.RIGHT:n=t,s=u;break;case m.BOTTOM_LEFT:n=0,s=i;break;case m.BOTTOM:n=c,s=i;break;case m.BOTTOM_RIGHT:n=t,s=i}r.img.x=n,r.img.y=s}return r.container.width=e.width,r.container.height=e.height,r.container.viewBox=[0,0,e.width,e.height].join(" "),i}function ct(t,e,i){let n;switch(e.crop&&(n=function(t,e){const i=Math.max(0,Math.min(t.width,e.x+e.width)-Math.max(0,e.x)),n=Math.max(0,Math.min(t.height,e.y+e.height)-Math.max(0,e.y));return i&&n&&(t.width!==i||t.height!==n)?{x:Math.max(0,e.x),y:Math.max(0,e.y),width:i,height:n}:null}(e,e.crop),n&&(t.src.width=n.width,t.src.height=n.height,t.src.isCropped=!0,t.parts.push(ht(n)))),t.fittingType){case g.SCALE_TO_FIT:case g.LEGACY_FIT_WIDTH:case g.LEGACY_FIT_HEIGHT:case g.LEGACY_FULL:case g.FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case g.LEGACY_BG_FIT_AND_TILE_VERTICAL:case g.LEGACY_BG_NORMAL:t.parts.push(ut(t,i));break;case g.SCALE_TO_FILL:t.parts.push(function(t,e){const i=j(t.src.width,t.src.height,f.FILL,e,t.devicePixelRatio,t.upscaleMethod),n=V(t.focalPoint);return{transformType:n?f.FILL_FOCAL:f.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:q(e),focalPointX:n&&n.x,focalPointY:n&&n.y,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}(t,i));break;case g.STRETCH:t.parts.push(function(t,e){const i=D(t.src.width,t.src.height,e.width,e.height,f.FILL),n={...e};return n.width=t.src.width*i,n.height=t.src.height*i,ut(t,n)}(t,i));break;case g.TILE_HORIZONTAL:case g.TILE_VERTICAL:case g.TILE:case g.LEGACY_ORIGINAL_SIZE:case g.ORIGINAL_SIZE:n=W(t.src,i,t.focalPoint,i.alignment),t.src.isCropped?(Object.assign(t.parts[0],n),t.src.width=n.width,t.src.height=n.height):t.parts.push(ht(n));break;case g.LEGACY_STRIP_TILE_HORIZONTAL:case g.LEGACY_STRIP_TILE_VERTICAL:case g.LEGACY_STRIP_TILE:case g.LEGACY_STRIP_ORIGINAL_SIZE:t.parts.push(function(t){return{transformType:f.LEGACY_CROP,width:Math.round(t.width),height:Math.round(t.height),alignment:q(t),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case g.LEGACY_STRIP_SCALE_TO_FIT:case g.LEGACY_STRIP_FIT_AND_TILE:t.parts.push(function(t){return{transformType:f.FIT,width:Math.round(t.width),height:Math.round(t.height),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case g.LEGACY_STRIP_SCALE_TO_FILL:t.parts.push(function(t){return{transformType:f.LEGACY_FILL,width:Math.round(t.width),height:Math.round(t.height),alignment:q(t),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i))}}function ut(t,e){const i=j(t.src.width,t.src.height,f.FIT,e,t.devicePixelRatio,t.upscaleMethod);return{transformType:!t.src.width||!t.src.height?f.FIT:f.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:T.center,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}function ht(t){return{transformType:f.CROP,x:Math.round(t.x),y:Math.round(t.y),width:Math.round(t.width),height:Math.round(t.height),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}function lt(t,e){var i;e=e||{},t.quality=function(t,e){const i=t.fileType===R.PNG,n=t.fileType===R.JPG,r=t.fileType===R.WEBP,o=n||i||r;if(o){const n=G(t.parts),r=(a=n.width,s=n.height,O[Z(a,s)].quality);let o=e.quality&&e.quality>=5&&e.quality<=90?e.quality:r;return o=i?o+5:o,o}var a,s;return 0}(t,e),t.progressive=function(t){return!1!==t.progressive}(e),t.watermark=function(t){return t.watermark}(e),t.autoEncode=e.autoEncode??!0,t.encoding=null==(i=e)?void 0:i.encoding,t.unsharpMask=function(t,e){var i,n,r;if(function(t){const e="number"==typeof(t=t||{}).radius&&!isNaN(t.radius)&&t.radius>=.1&&t.radius<=500,i="number"==typeof t.amount&&!isNaN(t.amount)&&t.amount>=0&&t.amount<=10,n="number"==typeof t.threshold&&!isNaN(t.threshold)&&t.threshold>=0&&t.threshold<=255;return e&&i&&n}(e.unsharpMask))return{radius:J(null==(i=e.unsharpMask)?void 0:i.radius,2),amount:J(null==(n=e.unsharpMask)?void 0:n.amount,2),threshold:J(null==(r=e.unsharpMask)?void 0:r.threshold,2)};if(("number"!=typeof(o=(o=e.unsharpMask)||{}).radius||isNaN(o.radius)||0!==o.radius||"number"!=typeof o.amount||isNaN(o.amount)||0!==o.amount||"number"!=typeof o.threshold||isNaN(o.threshold)||0!==o.threshold)&&function(t){const e=G(t.parts);return!(e.scaleFactor>=1)||e.forceUSM||e.transformType===f.FIT}(t))return L;var o;return}(t,e),t.filters=function(t){const e=t.filters||{},i={};dt(e[y.CONTRAST],-100,100)&&(i[y.CONTRAST]=e[y.CONTRAST]);dt(e[y.BRIGHTNESS],-100,100)&&(i[y.BRIGHTNESS]=e[y.BRIGHTNESS]);dt(e[y.SATURATION],-100,100)&&(i[y.SATURATION]=e[y.SATURATION]);dt(e[y.HUE],-180,180)&&(i[y.HUE]=e[y.HUE]);dt(e[y.BLUR],0,100)&&(i[y.BLUR]=e[y.BLUR]);return i}(e)}function dt(t,e,i){return"number"==typeof t&&!isNaN(t)&&0!==t&&t>=e&&t<=i}function gt(t,e,i,n){const r=function(t){return(null==t?void 0:t.isSEOBot)??!1}(n),o=$(e.id),a=function(t,e){const i=/\.([^.]*)$/,n=new RegExp(`(${B.concat(Y).join("|")})`,"g");if(e&&e.length){let t=e;const r=e.match(i);return r&&C.includes(r[1])&&(t=e.replace(i,"")),encodeURIComponent(t).replace(n,U)}const r=t.match(/\/(.*?)$/);return(r?r[1]:t).replace(i,"")}(e.id,e.name),s=r?1:function(t){return Math.min(t.pixelAspectRatio||1,c)}(i),u=z(e.id),h=u,l=F(e.id,null==n?void 0:n.hasAnimation,null==n?void 0:n.allowAnimatedTransform),d={fileName:a,fileExtension:u,fileType:o,fittingType:t,preferredExtension:h,src:{id:e.id,width:e.width,height:e.height,isCropped:!1,isAnimated:X(e.id,null==n?void 0:n.hasAnimation)},focalPoint:{x:e.focalPoint&&e.focalPoint.x,y:e.focalPoint&&e.focalPoint.y},parts:[],devicePixelRatio:s,quality:0,upscaleMethod:Q(n),progressive:!0,watermark:"",unsharpMask:{},filters:{},transformed:l};return l&&(ct(d,e,i),lt(d,n)),d}function ft(t,e,i){const n={...i},r=tt("isMobile");switch(t){case g.LEGACY_BG_FIT_AND_TILE:case g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case g.LEGACY_BG_FIT_AND_TILE_VERTICAL:case g.LEGACY_BG_NORMAL:const t=r?l:u,i=r?d:h;n.width=Math.min(t,e.width),n.height=Math.min(i,Math.round(n.width/(e.width/e.height))),n.pixelAspectRatio=1}return n}const mt=S`fit/w_${"width"},h_${"height"}`,pt=S`fill/w_${"width"},h_${"height"},al_${"alignment"}`,Tt=S`fill/w_${"width"},h_${"height"},fp_${"focalPointX"}_${"focalPointY"}`,_t=S`crop/x_${"x"},y_${"y"},w_${"width"},h_${"height"}`,It=S`crop/w_${"width"},h_${"height"},al_${"alignment"}`,Et=S`fill/w_${"width"},h_${"height"},al_${"alignment"}`,Lt=S`,lg_${"upscaleMethodValue"}`,bt=S`,q_${"quality"}`,At=S`,quality_auto`,wt=S`,usm_${"radius"}_${"amount"}_${"threshold"}`,Ot=S`,bl`,vt=S`,wm_${"watermark"}`,yt={[y.CONTRAST]:S`,con_${"contrast"}`,[y.BRIGHTNESS]:S`,br_${"brightness"}`,[y.SATURATION]:S`,sat_${"saturation"}`,[y.HUE]:S`,hue_${"hue"}`,[y.BLUR]:S`,blur_${"blur"}`},Rt=S`,enc_auto`,Mt=S`,enc_avif`,St=S`,enc_pavif`,Gt=S`,pstr`;function Ct(t,e,i,n,r){var o,a;if(void 0===n&&(n={}),F(e.id,null==(o=n)?void 0:o.hasAnimation,null==(a=n)?void 0:a.allowAnimatedTransform)){if(k(e.id)){const{alignment:o,...a}=i;e.focalPoint={x:void 0,y:void 0},null==e||delete e.crop,r=gt(t,e,a,n)}else r=r||gt(t,e,i,n);return function(t){var e;const i=[];t.parts.forEach((t=>{switch(t.transformType){case f.CROP:i.push(_t(t));break;case f.LEGACY_CROP:i.push(It(t));break;case f.LEGACY_FILL:let e=Et(t);t.upscale&&(e+=Lt(t)),i.push(e);break;case f.FIT:let n=mt(t);t.upscale&&(n+=Lt(t)),i.push(n);break;case f.FILL:let r=pt(t);t.upscale&&(r+=Lt(t)),i.push(r);break;case f.FILL_FOCAL:let o=Tt(t);t.upscale&&(o+=Lt(t)),i.push(o)}}));let n=i.join("/");return t.quality&&(n+=bt(t)),t.unsharpMask&&(n+=wt(t.unsharpMask)),t.progressive||(n+=Ot(t)),t.watermark&&(n+=vt(t)),t.filters&&(n+=Object.keys(t.filters).map((e=>yt[e](t.filters))).join("")),t.fileType!==R.GIF&&(t.encoding===M.AVIF?(n+=Mt(t),n+=At(t)):t.encoding===M.PAVIF?(n+=St(t),n+=At(t)):t.autoEncode&&(n+=Rt(t))),null!=(e=t.src)&&e.isAnimated&&t.transformed&&(n+=Gt(t)),`${t.src.id}/${s}/${n}/${t.fileName}.${t.preferredExtension}`}(r)}return e.id}const Pt={[m.CENTER]:"50% 50%",[m.TOP_LEFT]:"0% 0%",[m.TOP_RIGHT]:"100% 0%",[m.TOP]:"50% 0%",[m.BOTTOM_LEFT]:"0% 100%",[m.BOTTOM_RIGHT]:"100% 100%",[m.BOTTOM]:"50% 100%",[m.RIGHT]:"100% 50%",[m.LEFT]:"0% 50%"},xt=Object.entries(Pt).reduce(((t,e)=>{let[i,n]=e;return t[n]=i,t}),{}),Ft=[g.TILE,g.TILE_HORIZONTAL,g.TILE_VERTICAL,g.LEGACY_BG_FIT_AND_TILE,g.LEGACY_BG_FIT_AND_TILE_HORIZONTAL,g.LEGACY_BG_FIT_AND_TILE_VERTICAL],Nt=[g.LEGACY_ORIGINAL_SIZE,g.ORIGINAL_SIZE,g.LEGACY_BG_NORMAL];function kt(t,e,i){let{width:n,height:r}=i;return t===g.TILE&&e.width>n&&e.height>r}function Ht(t,e){let{width:i,height:n}=e;if(!i||!n){const e=i||Math.min(980,t.width),r=e/t.width;return{width:e,height:n||t.height*r}}return{width:i,height:n}}function Bt(t,e,i,n){void 0===n&&(n="center");const r={img:{},container:{}};if(t===g.SCALE_TO_FILL){const t=e.focalPoint&&function(t){const e=`${t.x}% ${t.y}%`;return xt[e]||""}(e.focalPoint),o=t||n;e.focalPoint&&!t?r.img={objectPosition:Yt(e,i,e.focalPoint)}:r.img={objectPosition:Pt[o]}}else[g.LEGACY_ORIGINAL_SIZE,g.ORIGINAL_SIZE].includes(t)?r.img={objectFit:"none",top:"auto",left:"auto",right:"auto",bottom:"auto"}:Ft.includes(t)&&(r.container={backgroundSize:`${e.width}px ${e.height}px`});return r}function Yt(t,e,i){const{width:n,height:r}=t,{width:o,height:a}=e,{x:s,y:c}=i;if(!o||!a)return`${s}% ${c}%`;const u=Math.max(o/n,a/r),h=n*u,l=r*u,d=Math.max(0,Math.min(h-o,h*(s/100)-o/2)),g=Math.max(0,Math.min(l-a,l*(c/100)-a/2));return`${d&&Math.floor(d/(h-o)*100)}% ${g&&Math.floor(g/(l-a)*100)}%`}const Ut={width:"100%",height:"100%"};function $t(t,e,i,n){void 0===n&&(n={});const{autoEncode:r=!0,isSEOBot:o,shouldLoadHQImage:a,hasAnimation:s,allowAnimatedTransform:c,encoding:u}=n;if(!x(t,e,i))return b;const h=void 0===c||c,l=F(e.id,s,h);if(!l||a)return zt(t,e,i,{...n,autoEncode:r,useSrcset:l});const d={...i,...Ht(e,i)},{alignment:f,htmlTag:m}=d,p=kt(t,e,d),T=function(t,e,i,n){let{width:r,height:o}=i;if(void 0===n&&(n=!1),n)return{width:r,height:o};const a=!Nt.includes(t),s=kt(t,e,{width:r,height:o}),c=!s&&Ft.includes(t),u=c?e.width:r,h=c?e.height:o,l=a?function(t,e){return t>900?e?.05:.15:t>500?e?.1:.18:t>200?.25:1}(u,N(e.id)):1;return{width:s?1920:u*l,height:h*l}}(t,e,d,o),_=function(t,e,i){return i?0:Ft.includes(e)?1:t>200?2:3}(d.width,t,o),I=function(t,e){const i=Ft.includes(t)&&!e;return t===g.SCALE_TO_FILL||i?g.SCALE_TO_FIT:t}(t,p),E=Bt(t,e,i,f),{uri:L}=zt(I,e,{...T,alignment:f,htmlTag:m},{autoEncode:r,filters:_?{blur:_}:{},hasAnimation:s,allowAnimatedTransform:h,encoding:u}),{attr:A={},css:w}=zt(t,e,{...d,alignment:f,htmlTag:m},{});return w.img=w.img||{},w.container=w.container||{},Object.assign(w.img,E.img,Ut),Object.assign(w.container,E.container),{uri:L,css:w,attr:A,transformed:!0}}function zt(t,e,i,n){let r={};if(x(t,e,i)){const o=ft(t,e,i),a=gt(t,e,o,n);r.uri=Ct(t,e,o,n,a),null!=n&&n.useSrcset&&(r.srcset=function(t,e,i,n,r){const o=i.pixelAspectRatio||1;return{dpr:[`${1===o?r.uri:Ct(t,e,{...i,pixelAspectRatio:1},n)} 1x`,`${2===o?r.uri:Ct(t,e,{...i,pixelAspectRatio:2},n)} 2x`]}}(t,e,o,n,r)),Object.assign(r,function(t,e){let i;return i=e.htmlTag===_.BG?nt:e.htmlTag===_.SVG?st:at,i(t,e)}(a,o),{transformed:a.transformed})}else r=b;return r}function Dt(t,e,i,n){if(x(t,e,i)){const r=ft(t,e,i);return{uri:Ct(t,e,r,n||{},gt(t,e,r,n))}}return{uri:""}}const jt="https://static.wixstatic.com/media/",Wt=/^media\//i,qt="undefined"!=typeof window?window.devicePixelRatio:1,Vt=(t,e)=>{const i=e&&e.baseHostURL;return i?`${i}${t}`:(t=>Wt.test(t)?`https://static.wixstatic.com/${t}`:`${jt}${t}`)(t)};it();const Zt=(t,e,i)=>{var n;const{displayMode:r,uri:o,width:a,height:s,name:c,crop:u,focalPoint:h,alignType:l,quality:d,upscaleMethod:g,hasAnimation:f,allowAnimatedTransform:m,encoding:p}=t,{srcset:T,css:_}=zt(r,{id:o,width:a,height:s,name:c,crop:u,focalPoint:h},{width:e,height:i,alignment:l},{focalPoint:h,name:c,quality:null==d?void 0:d.quality,upscaleMethod:g,hasAnimation:f,allowAnimatedTransform:m,useSrcset:!0,encoding:p}),I=null==T||null==(n=T.dpr)?void 0:n.map((t=>/^[a-z]+:/.test(t)?t:`${Qt}${t}`));return{fallbackSrc:null==I?void 0:I[0],srcset:null==I?void 0:I.join(", "),css:_}};it();const Jt={getScaleToFitImageURL:function(t,e,i,n,r,o){const a=Dt(g.SCALE_TO_FIT,{id:t,width:e,height:i,name:o&&o.name},{width:n,height:r,htmlTag:_.IMG,alignment:m.CENTER,pixelAspectRatio:(null==o?void 0:o.devicePixelRatio)??qt},o);return Vt(a.uri,o)},getScaleToFillImageURL:function(t,e,i,n,r,o){const a=Dt(g.SCALE_TO_FILL,{id:t,width:e,height:i,name:o&&o.name,focalPoint:{x:o&&o.focalPoint&&o.focalPoint.x,y:o&&o.focalPoint&&o.focalPoint.y}},{width:n,height:r,htmlTag:_.IMG,alignment:m.CENTER,pixelAspectRatio:(null==o?void 0:o.devicePixelRatio)??qt},o);return Vt(a.uri,o)},getCropImageURL:function(t,e,i,n,r,o,a,s,c,u){const h=Dt(g.SCALE_TO_FILL,{id:t,width:e,height:i,name:u&&u.name,crop:{x:n,y:r,width:o,height:a}},{width:s,height:c,htmlTag:_.IMG,alignment:m.CENTER,pixelAspectRatio:(null==u?void 0:u.devicePixelRatio)??qt},u);return Vt(h.uri,u)}},Qt=jt,{STATIC_MEDIA_URL:Xt}=t,Kt=t=>{let{fittingType:e,src:i,target:n,options:r}=t;const o=$t(e,i,n,{...r,autoEncode:!0});return null!=o&&o.uri&&!/^[a-z]+:/.test(o.uri)&&(o.uri=`${Xt}${o.uri}`),o},te=/^[a-z]+:/,ee=t=>{var e,n;const{id:r,containerId:s,uri:c,alt:u,name:h="",role:l,width:d,height:g,displayMode:f,devicePixelRatio:m,quality:p,alignType:T,bgEffectName:_="",focalPoint:I,upscaleMethod:E,className:L="",crop:b,imageStyles:A={},targetWidth:w,targetHeight:O,targetScale:v,onLoad:y=()=>{},onError:R=()=>{},shouldUseLQIP:M,containerWidth:S,containerHeight:G,getPlaceholder:C,isInFirstFold:P,placeholderTransition:x,socialAttrs:F,isSEOBot:N,skipMeasure:k,hasAnimation:H,encoding:B}=t,Y=o.useRef(null);let U="";const $="blur"===x,z=o.useRef(null);if(!z.current)if(C||M||P||N){const t={upscaleMethod:E,...p||{},shouldLoadHQImage:P,isSEOBot:N,hasAnimation:H,encoding:B};z.current=(C||Kt)({fittingType:f,src:{id:c,width:d,height:g,crop:b,name:h,focalPoint:I},target:{width:S,height:G,alignment:T,htmlTag:"img"},options:t}),U=!z.current.transformed||P||N?"":"true"}else z.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const D=!N&&(C||M)&&!P&&z.current.transformed,j=o.useMemo((()=>JSON.stringify({containerId:s,...s&&{containerId:s},...T&&{alignType:T},...k&&{skipMeasure:!0},displayMode:f,...S&&{targetWidth:S},...G&&{targetHeight:G},...w&&{targetWidth:w},...O&&{targetHeight:O},...v&&{targetScale:v},isLQIP:D,isSEOBot:N,lqipTransition:x,encoding:B,imageData:{width:d,height:g,uri:c,name:h,displayMode:f,hasAnimation:H,...p&&{quality:p},...m&&{devicePixelRatio:m},...I&&{focalPoint:I},...b&&{crop:b},...E&&{upscaleMethod:E}}})),[s,T,k,f,S,G,w,O,v,D,N,x,B,d,g,c,h,H,p,m,I,b,E]),W=z.current,q=null==W?void 0:W.uri,V=null==W?void 0:W.srcset,Z=null==(e=W.css)?void 0:e.img,J=`${a} ${L}`;o.useEffect((()=>{const t=Y.current;y&&null!=t&&t.currentSrc&&null!=t&&t.complete&&y({target:t})}),[]);const Q=!W||null!=W&&W.transformed?w?`${w}px`:null:`max(${d}px, 100%)`;return o.createElement("wow-image",{id:r,class:J,"data-image-info":j,"data-motion-part":`BG_IMG ${s}`,"data-bg-effect-name":_,"data-has-ssr-src":U,"data-animate-blur":!N&&D&&$?"":void 0,style:Q?{"--wix-img-max-width":Q}:{}},o.createElement("img",i()({src:q,ref:Y,alt:u||"",role:l,style:{...Z,...A},onLoad:y,onError:R,width:S||void 0,height:G||void 0},F,{srcSet:P?null==V||null==(n=V.dpr)?void 0:n.map((t=>te.test(t)?t:`${Xt}${t}`)).join(", "):void 0,fetchpriority:P?"high":void 0,loading:!1===P?"lazy":void 0,suppressHydrationWarning:!0})))};var ie=n(99),ne=n.n(ie);const re={columnCount:1,columns:1,fontWeight:1,lineHeight:1,opacity:1,zIndex:1,zoom:1},oe=(t,e)=>(Array.isArray(e)?e:[e]).reduce(((e,i)=>{const n=t[i];return void 0!==n?Object.assign(e,{[i]:n}):e}),{}),ae=(t,e)=>t&&e&&Object.keys(e).forEach((i=>{const n=i,r=e[n];void 0!==r?t.style[n]=((t,e)=>"number"!=typeof e||re[t]?e.toString():`${e}px`)(n,r):t.style.removeProperty(n)})),se=(t,e,i)=>{if(!t.targetWidth||!t.targetHeight||!t.imageData.uri)return{uri:"",css:{},transformed:!1};const{imageData:n}=t,r=t.displayMode||g.SCALE_TO_FILL,o=Object.assign(oe(n,["upscaleMethod"]),oe(t,["filters","encoding"]),t.quality||n.quality,{hasAnimation:(null==t?void 0:t.hasAnimation)||(null==n?void 0:n.hasAnimation)}),a=t.imageData.devicePixelRatio||e.devicePixelRatio,s=ue(a),c=zt(r,Object.assign(oe(n,["width","height","crop","name","focalPoint"]),{id:n.uri}),{width:t.targetWidth,height:t.targetHeight,htmlTag:i||"img",pixelAspectRatio:s,alignment:t.alignType||m.CENTER},o);return c.uri=ce(c.uri,e.staticMediaUrl,e.mediaRootUrl),c},ce=(t,e,i)=>{if(/(^https?)|(^data)|(^blob)|(^\/\/)/.test(t))return t;let n=`${e}/`;var r;t&&(/^micons\//.test(t)?n=i:"ico"===(null==(r=/[^.]+$/.exec(t))?void 0:r[0])&&(n=n.replace("media","ficons")));return n+t},ue=t=>{const e=window.location.search.split("&").map((t=>t.split("="))).find((t=>{var e;return null==(e=t[0])?void 0:e.toLowerCase().includes("devicepixelratio")}));return(null!=e&&e[1]?Number(e[1]):null)||t||1},he=t=>t.getAttribute("src"),le=80;const de={measure:function(t,e,i,n,r){let{containerElm:o,bgEffect:a="none",sourceSets:s}=n;const c=i.image,u=i[t],h=(null==r.getScreenHeightOverride?void 0:r.getScreenHeightOverride())||document.documentElement.clientHeight||window.innerHeight||0,l=null==o?void 0:o.dataset.mediaHeightOverrideType,d=a&&"none"!==a||s&&s.some((t=>t.scrollEffect)),g=o&&d?o:u,f=window.getComputedStyle(u).getPropertyValue("--bg-scrub-effect"),{width:m,height:p}=(null==r.getMediaDimensionsByEffect?void 0:r.getMediaDimensionsByEffect(f||a,g.offsetWidth,g.offsetHeight,h))||{width:u.offsetWidth,height:u.offsetHeight};if(s&&(e.sourceSetsTargetHeights=function(t,e,i,n,r){const o={};return t.forEach((t=>{let{mediaQuery:a,scrollEffect:s}=t;o[a]=r.getMediaDimensionsByEffect(s,e,i,n).height})),o}(s,g.offsetWidth,g.offsetHeight,h,r)),!c)return;const T=he(c);f&&(e.top=.5*(u.offsetHeight-p),e.left=.5*(u.offsetWidth-m)),e.width=m,e.height=function(t,e){return"fixed"===e||"viewport"===e?document.documentElement.clientHeight+le:t}(p,l),e.screenHeight=h,e.imgSrc=T,e.boundingRect=u.getBoundingClientRect(),e.mediaHeightOverrideType=l,e.srcset=c.srcset},patch:function(t,e,i,n,r,o,a,s,c){var u;if(!Object.keys(e).length)return;const{imageData:h}=n,l=i[t],d=i.image;s&&(h.devicePixelRatio=1);const g=n.targetScale||1,f={...n,...!n.skipMeasure&&{targetWidth:(e.width||0)*g,targetHeight:(e.height||0)*g},displayMode:h.displayMode},m=se(f,r,"img"),p=(null==m||null==(u=m.css)?void 0:u.img)||{},T=function(t,e,i,n,r){const o=function(t,e){return void 0===e&&(e=1),1!==e?{...t,width:"100%",height:"100%"}:t}(e,n);if(r&&(delete o.height,o.width="100%"),!t)return o;const a={...o};return"fill"===i?(a.position="absolute",a.top="0"):"fit"===i&&(a.height="100%"),"fixed"===t&&(a["will-change"]="transform"),a.objectPosition&&(a.objectPosition=e.objectPosition.replace(/(center|bottom)$/,"top")),a}(e.mediaHeightOverrideType,p,h.displayMode,g,a);ae(d,T),(e.top||e.left)&&ae(l,{top:`${e.top}px`,left:`${e.left}px`});const _=(null==m?void 0:m.uri)||"",I=(null==h?void 0:h.hasAnimation)||(null==n?void 0:n.hasAnimation),E=function(t,e,i){const{sourceSets:n}=e;if(!n||!n.length)return;const r={};return n.forEach((n=>{let{mediaQuery:o,crop:a,focalPoint:s}=n;const c={...e,targetHeight:(t.sourceSetsTargetHeights||{})[o]||0,imageData:{...e.imageData,crop:a,focalPoint:s}},u=se(c,i,"img");r[o]=u.uri||""})),r}(e,f,r);if(c&&(d.dataset.ssrSrcDone="true"),n.isLQIP&&n.lqipTransition&&!("transitioned"in l.dataset)&&(l.dataset.transitioned="",d.complete?d.onload=function(){d.dataset.loadDone=""}:d.onload=function(){d.complete?d.dataset.loadDone="":d.onload=function(){d.dataset.loadDone=""}}),o){((t,e)=>z(t)===R.GIF||z(t)===R.WEBP&&e)(h.uri,I)?(d.setAttribute("fetchpriority","low"),d.setAttribute("loading","lazy"),d.setAttribute("decoding","async")):d.setAttribute("fetchpriority","high"),d.currentSrc!==_&&d.setAttribute("src",_);e.srcset&&!e.srcset.split(", ").some((t=>t.split(" ")[0]===_))&&d.setAttribute("srcset",_),i.picture&&f.sourceSets&&Array.from(i.picture.querySelectorAll("source")).forEach((t=>{const e=t.media||"",i=null==E?void 0:E[e];t.srcset!==i&&t.setAttribute("srcset",i||"")}))}}},ge={parallax:"ImageParallax",fixed:"ImageReveal"};const fe=function(t,e,i){return class extends i.HTMLElement{constructor(){super(),ne()(this,"childListObserver",void 0),ne()(this,"timeoutId",void 0),this.childListObserver=null,this.timeoutId=null}attributeChangedCallback(t,e){e&&this.reLayout()}connectedCallback(){e.disableImagesLazyLoading?this.reLayout():this.observeIntersect()}disconnectedCallback(){this.unobserveResize(),this.unobserveIntersect(),this.unobserveChildren()}static get observedAttributes(){return["data-image-info"]}reLayout(){const n={},r={},o=this.getAttribute("id"),a=JSON.parse(this.dataset.imageInfo||""),s="true"===this.dataset.isResponsive,{bgEffectName:c}=this.dataset,{scrollEffect:u}=a.imageData,{sourceSets:h}=a,l=c||u&&ge[u];h&&h.length&&h.forEach((t=>{t.scrollEffect&&(t.scrollEffect=ge[t.scrollEffect])})),n[o]=this,a.containerId&&(n[a.containerId]=i.document.getElementById(`${a.containerId}`));const d=a.containerId?n[a.containerId]:void 0;if(n.image=this.querySelector("img"),n.picture=this.querySelector("picture"),!n.image){const t=this;return void this.observeChildren(t)}this.unobserveChildren(),this.observeChildren(this),t.mutationService.measure((()=>{de.measure(o,r,n,{containerElm:d,bgEffect:l,sourceSets:h},t)}));const g=(i,c)=>{t.mutationService.mutate((()=>{de.patch(o,r,n,a,e,i,s,l,c)}))},f=n.image,m=this.dataset.hasSsrSrc&&!f.dataset.ssrSrcDone;!he(f)||m?g(!0,!0):this.debounceImageLoad(g)}debounceImageLoad(t){clearTimeout(this.timeoutId),this.timeoutId=i.setTimeout((()=>{t(!0)}),250),t(!1)}observeResize(){var e;null==(e=t.resizeService)||e.observe(this)}unobserveResize(){var e;null==(e=t.resizeService)||e.unobserve(this)}observeIntersect(){var e;null==(e=t.intersectionService)||e.observe(this)}unobserveIntersect(){var e;null==(e=t.intersectionService)||e.unobserve(this)}observeChildren(t){this.childListObserver||(this.childListObserver=new i.MutationObserver((()=>{this.reLayout()}))),this.childListObserver.observe(t,{childList:!0})}unobserveChildren(){this.childListObserver&&(this.childListObserver.disconnect(),this.childListObserver=null)}}};var me=n(709),pe=n.n(me);const Te=()=>/iemobile/i.test(navigator.userAgent)?Math.round(window.screen.availWidth/(window.screen.width||window.document.documentElement.clientWidth)):window.devicePixelRatio,_e="https://static.wixstatic.com/media",Ie="https://static.wixstatic.com";function Ee(t,e,i){if(void 0===t&&(t={}),void 0===e&&(e=null),void 0===i&&(i={}),"undefined"==typeof window)return;const n={staticMediaUrl:_e,mediaRootUrl:Ie,experiments:{},devicePixelRatio:Te(),...i},r=function(t,e){const i="wow-image";if(void 0===(t=t||window).customElements.get(i)){let n,r;return t.ResizeObserver&&(n=new t.ResizeObserver((t=>t.map((t=>t.target.reLayout()))))),t.IntersectionObserver&&(r=new IntersectionObserver((t=>t.map((t=>{if(t.isIntersecting){const e=t.target;e.unobserveIntersect(),e.observeResize()}return t}))),{rootMargin:"150% 100%"})),function(o){const a=fe({resizeService:n,intersectionService:r,mutationService:pe(),...e},o,t);t.customElements.define(i,a)}}}(e,t);r&&r(n)}})(),r})())); | ||
//# sourceMappingURL=image.umd.min.js.map |
@@ -1,1 +0,1 @@ | ||
{"generatedAt":1732108614857,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"3.2.0"},"typescriptOptions":{"check":false,"reactDocgen":false},"language":"typescript","storybookPackages":{"@wix/yoshi-storybook-dependencies":{"version":"6.106.0"}},"framework":{},"addons":{"@storybook/addon-controls":{"version":"6.5.16"},"@storybook/addon-docs":{"version":"6.5.16"}}} | ||
{"generatedAt":1732529413749,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"3.2.0"},"typescriptOptions":{"check":false,"reactDocgen":false},"language":"typescript","storybookPackages":{"@wix/yoshi-storybook-dependencies":{"version":"6.106.0"}},"framework":{},"addons":{"@storybook/addon-controls":{"version":"6.5.16"},"@storybook/addon-docs":{"version":"6.5.16"}}} |
{ | ||
"image.css": "https://static.parastorage.com/services/image/bd5813788baf6fa19d33180fe939ef8d48a65ee1fee464cadf4c1cac/image.css", | ||
"image.js": "https://static.parastorage.com/services/image/bd5813788baf6fa19d33180fe939ef8d48a65ee1fee464cadf4c1cac/image.umd.js" | ||
"image.css": "https://static.parastorage.com/services/image/57df1785cda39c6bba2d071cd1a9daecba63a6137a561c5a4cd42d96/image.css", | ||
"image.js": "https://static.parastorage.com/services/image/57df1785cda39c6bba2d071cd1a9daecba63a6137a561c5a4cd42d96/image.umd.js" | ||
} |
{ | ||
"image.css": "https://static.parastorage.com/services/image/bd5813788baf6fa19d33180fe939ef8d48a65ee1fee464cadf4c1cac/image.min.css", | ||
"image.js": "https://static.parastorage.com/services/image/bd5813788baf6fa19d33180fe939ef8d48a65ee1fee464cadf4c1cac/image.umd.min.js" | ||
"image.css": "https://static.parastorage.com/services/image/57df1785cda39c6bba2d071cd1a9daecba63a6137a561c5a4cd42d96/image.min.css", | ||
"image.js": "https://static.parastorage.com/services/image/57df1785cda39c6bba2d071cd1a9daecba63a6137a561c5a4cd42d96/image.umd.min.js" | ||
} |
{ | ||
"name": "@wix/image", | ||
"description": "Wix base image component", | ||
"version": "1.327.0", | ||
"version": "1.328.0", | ||
"license": "MIT", | ||
@@ -98,3 +98,3 @@ "author": { | ||
}, | ||
"falconPackageHash": "94830d212e05cdf9680e552df95280a08221132abcc8a8f60036398b" | ||
"falconPackageHash": "ec7e8c09699698245310574936013083429ac9615fb2799eb917f710" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14638173
103268
3