"use strict";(self.webpackJsonp__wix_thunderbolt_app=self.webpackJsonp__wix_thunderbolt_app||[]).push([[8875],{58223:function(e,t,i){i.d(t,{Rr:function(){return O},Aq:function(){return c},p7:function(){return v},jh:function(){return _},EH:function(){return $},KU:function(){return l},_o:function(){return a},vk:function(){return h},NL:function(){return y},yO:function(){return g}});var n=i(17709),r=i.n(n);const s=(e,t,i)=>{let n=1,r=0;for(let s=0;st)return!1;if(r+=o,r>t&&(n++,r=o,n>i))return!1}return!0},o=(e,t,i)=>{let n=-1/0;const r=e.map((e=>(e.height+t>n&&(n=e.height+t),e.height+t)));let o=n,a=n*e.length,l=n;for(;o{this.mutationObserver?.observe(this,{childList:!0,subtree:!0}),this.containerWidthObserver?.observe(this),Array.from(this.children).forEach((e=>{this.handleItemAdded(e)}))},this.detachHeightCalcObservers=()=>{this.mutationObserver?.disconnect(),this.containerWidthObserver?.disconnect(),this.childResizeObserver?.disconnect()},this.recalcHeight=()=>{this.isActive&&r().measure((()=>{if(!this.isActive||this.isDuringCalc)return;this.isDuringCalc=!0;const e=getComputedStyle(this),t=o(this.itemsHeights,this.getRowGap(e),this.getColumnCount(e));this.isDuringCalc=!1,r().mutate((()=>{this.setContainerHeight(t),this.style.setProperty("visibility",null)}))}))},this.cleanUp=()=>{this.detachHeightCalcObservers(),this.removeContainerHeight(),this.isActiveObserver?.disconnect()},this.handleItemAdded=e=>{e instanceof window.HTMLElement&&this.childResizeObserver?.observe(e)},this.handleItemRemoved=e=>{e instanceof window.HTMLElement&&this.childResizeObserver?.unobserve(e)},this.createObservers=()=>{this.containerWidthObserver=new ResizeObserver((e=>{const t=e[0];if(t.contentRect.width!==this.containerWidth){if(0===this.containerWidth)return void(this.containerWidth=t.contentRect.width);this.containerWidth=t.contentRect.width,this.recalcHeight()}})),this.mutationObserver=new MutationObserver((e=>{e.forEach((e=>{Array.from(e.removedNodes).forEach(this.handleItemRemoved),Array.from(e.addedNodes).forEach(this.handleItemAdded)})),this.recalcHeight()})),this.childResizeObserver=new ResizeObserver((()=>{this.recalcHeight()})),this.isActiveObserver=new ResizeObserver((()=>{this.setIsActive()}))}}setContainerHeight(e){this.style.setProperty("--flex-columns-height",`${e}px`)}removeContainerHeight(){this.style.removeProperty("--flex-columns-height")}getColumnCount(e){const t=e.getPropertyValue("--flex-column-count");return parseInt(t,10)}getRowGap(e){const t=e.getPropertyValue("row-gap");return parseInt(t||"0",10)}activate(){this.isActive=!0,this.attachObservers(),this.recalcHeight()}deactivate(){this.isActive=!1,this.detachHeightCalcObservers(),this.removeContainerHeight()}calcActive(){return"multi-column-layout"===getComputedStyle(this).getPropertyValue("--container-layout-type")}get itemsHeights(){return Array.from(this.children).map((e=>{const t=getComputedStyle(e);let i=parseFloat(t.height||"0");return i+=parseFloat(t.marginTop||"0"),i+=parseFloat(t.marginBottom||"0"),{height:i}}))}setIsActive(){const e=this.calcActive();this.isActive!==e&&(e?this.activate():this.deactivate())}connectedCallback(){this.cleanUp(),this.createObservers(),this.setIsActive(),window.document.body&&this.isActiveObserver?.observe(window.document.body)}disconnectedCallback(){this.cleanUp()}}return e}const l="multi-column-layouter",c=()=>{const e={observedElementToRelayoutTarget:new Map,getLayoutTargets(t){const i=new Set;return t.forEach((t=>i.add(e.observedElementToRelayoutTarget.get(t)))),i},observe:i=>{e.observedElementToRelayoutTarget.set(i,i),t.observe(i)},unobserve:i=>{e.observedElementToRelayoutTarget.delete(i),t.unobserve(i)},observeChild:(i,n)=>{e.observedElementToRelayoutTarget.set(i,n),t.observe(i)},unobserveChild:i=>{e.observedElementToRelayoutTarget.delete(i),t.unobserve(i)}},t=new window.ResizeObserver((t=>{e.getLayoutTargets(t.map((e=>e.target))).forEach((e=>e.reLayout()))}));return e},h=(e,t=window)=>{let i=!1;return(...n)=>{i||(i=!0,t.requestAnimationFrame((()=>{i=!1,e(...n)})))}};function d(...e){let t=e[0];for(let i=1;i({measure:function(e,t,i,{containerId:n,bgEffectName:r},s){const o=i[e],a=i[n],{width:l,height:c}=s.getMediaDimensionsByEffect(r,a.offsetWidth,a.offsetHeight,(0,u.c$)(s.getScreenHeightOverride?.()));t.width=l,t.height=c,t.currentSrc=o.style.backgroundImage,t.bgEffectName=o.dataset.bgEffectName},patch:function(t,i,n,r,s){const o=n[t];r.targetWidth=i.width,r.targetHeight=i.height;const a=(0,u.WD)(r,s,"bg");!function(e="",t){return!e.includes(t)||!!e!=!!t}(i.currentSrc,a.uri)?(0,u.eC)(o,a.css.container):function(t,i){const n={backgroundImage:`url("${i.uri}")`,...i.css.container},r=new e.Image;r.onload=u.eC.bind(null,t,n),r.src=i.uri}(o,a)}});const b=(e,t,i)=>{void 0===e.customElements.get(t)&&e.customElements.define(t,i)};function g(e,t=window){class i extends t.HTMLElement{constructor(){super()}reLayout(){}connectedCallback(){this.observeResize(),this.reLayout()}disconnectedCallback(){this.unobserveResize(),this.unobserveChildren()}observeResize(){e.resizeService.observe(this)}unobserveResize(){e.resizeService.unobserve(this)}observeChildren(e){this.childListObserver||(this.childListObserver=new t.MutationObserver((()=>this.reLayout()))),this.childListObserver.observe(e,{childList:!0})}observeChildAttributes(e,i=[]){this.childrenAttributesObservers||(this.childrenAttributesObservers=[]);const n=new t.MutationObserver((()=>this.reLayout()));n.observe(e,{attributeFilter:i}),this.childrenAttributesObservers.push(n)}observeChildResize(t){this.childrenResizeObservers||(this.childrenResizeObservers=[]),e.resizeService.observeChild(t,this),this.childrenResizeObservers.push(t)}unobserveChildrenResize(){this.childrenResizeObservers&&(this.childrenResizeObservers.forEach((t=>{e.resizeService.unobserveChild(t)})),this.childrenResizeObservers=null)}unobserveChildren(){if(this.childListObserver&&(this.childListObserver.disconnect(),this.childListObserver=null),this.childrenAttributesObservers){for(let e of this.childrenAttributesObservers)e.disconnect(),e=null;this.childrenAttributesObservers=null}this.unobserveChildrenResize()}}return i}const f=e=>{if(e.customElementNamespace||(e.customElementNamespace={}),void 0===e.customElementNamespace.WixElement){const t=g({resizeService:c()},e);return e.customElementNamespace.WixElement=t,t}return e.customElementNamespace.WixElement},p="wix-bg-image",v=(e=globalThis.window,t={},i={experiments:{}})=>{if(e&&void 0===e.customElements.get(p)){const n=function(e,t,i,n=window){const r=m(n);return class extends e{constructor(){super()}reLayout(){if((0,u.xX)(t))return;const e={},s={},o=this.getAttribute("id"),a=JSON.parse(this.dataset.tiledImageInfo),{bgEffectName:l}=this.dataset,{containerId:c}=a,h=n.document.getElementById(c);e[o]=this,e[c]=h,a.displayMode=a.imageData.displayMode,t.mutationService.measure((()=>{r.measure(o,s,e,{containerId:c,bgEffectName:l},t)})),t.mutationService.mutate((()=>{r.patch(o,s,e,a,i,t)}))}attributeChangedCallback(e,t){t&&this.reLayout()}disconnectedCallback(){super.disconnectedCallback()}static get observedAttributes(){return["data-tiled-image-info"]}}}(f(e),t,i,e);b(e,p,n)}};function y(e,t,i=window){const n={width:void 0,height:void 0,left:void 0};return class extends e{constructor(){super()}reLayout(){const{containerId:e,pageId:r,useCssVars:s,bgEffectName:o}=this.dataset,a=this.closest(`#${e}`)||i.document.getElementById(`${e}`),l=this.closest(`#${r}`)||i.document.getElementById(`${r}`),c={};t.mutationService.measure((()=>{const e="fixed"===i.getComputedStyle(this).position,n=(0,u.c$)(t.getScreenHeightOverride?.()),r=a.getBoundingClientRect(),h=t.getMediaDimensionsByEffect(o,r.width,r.height,n),{hasParallax:d}=h,m=l&&(i.getComputedStyle(l).transition||"").includes("transform"),{width:b,height:g}=h,f=`${b}px`,p=`${g}px`;let v=(r.width-b)/2+"px";if(e){const e=i.document.documentElement.clientLeft;v=m?a.offsetLeft-e+"px":r.left-e+"px"}const y=e||d?0:(r.height-g)/2+"px",w=s?{"--containerW":f,"--containerH":p,"--containerL":v,"--screenH_val":`${n}`}:{width:f,height:p,left:v,top:y};Object.assign(c,w)})),t.mutationService.mutate((()=>{s?((0,u.eC)(this,n),(0,u.g7)(this,c)):(0,u.eC)(this,c)}))}connectedCallback(){super.connectedCallback(),t.windowResizeService.observe(this)}disconnectedCallback(){super.disconnectedCallback(),t.windowResizeService.unobserve(this)}attributeChangedCallback(e,t){t&&this.reLayout()}static get observedAttributes(){return["data-is-full-height","data-container-size"]}}}var w=i(42658);const C="__more__",I="moreContainer",E=(e=window)=>{const t=(e,t,i,n,r,s,o,a)=>{if(e-=r*(o?n.length:n.length-1),e-=a.left+a.right,t&&(n=n.map((()=>s))),n.some((e=>0===e)))return null;let l=0;const c=n.reduce(((e,t)=>e+t),0);if(c>e)return null;if(t){if(i){const t=Math.floor(e/n.length),i=n.map((()=>t));if(l=t*n.length,l{n<=t-1&&i[n]++}))}return i}return n}if(i){const t=Math.floor((e-c)/n.length);l=0;const i=n.map((e=>(l+=e+t,e+t)));if(l{n<=t-1&&i[n]++}))}return i}return n},i=e=>Math.round(e),n=e=>{const t=parseFloat(e);return isFinite(t)?t:0},r=t=>t.getBoundingClientRect().top>e.innerHeight/2,s=(e,t,i,n,r)=>{const{width:s,height:o,alignButtons:a,hoverListPosition:l,menuItemContainerExtraPixels:c}=t,h=t.absoluteLeft,d=((e,t,i,n,r,s,o,a,l,c)=>{let h="0px",d="auto";const u=s.left,m=s.width;if("left"===t?h="left"===r?0:`${u+e.left}px`:"right"===t?(d="right"===r?0:n-u-m-e.right+"px",h="auto"):"left"===r?h=`${u+(m+e.left-i)/2}px`:"right"===r?(h="auto",d=(m+e.right-(i+e.width))/2+"px"):h=`${e.left+u+(m-(i+e.width))/2}px`,"auto"!==h){const e=o+parseInt(h,10);e+c>l?(h="auto",d=0):h=e<0?0:h}"auto"!==d&&(d=a-parseInt(d,10)>l?0:d);return{moreContainerLeft:h,moreContainerRight:d}})(c,a,n,s,l,i,h,h+s,t.bodyClientWidth,r);return{left:d.moreContainerLeft,right:d.moreContainerRight,top:t.needToOpenMenuUp?"auto":`${o}px`,bottom:t.needToOpenMenuUp?`${o}px`:"auto"}},o=e=>!isNaN(parseFloat(e))&&isFinite(e);return{measure:(s,o)=>{const a={},l={};l[s]=o;let c=1;const h=o.getRootNode().querySelector("#site-root");h&&(c=h.getBoundingClientRect().width/h.offsetWidth);const d=(e=>{const t=+(0,w.bQ)(e,"numItems");return t<=0||t>Number.MAX_SAFE_INTEGER?[]:new Array(t).fill(0).map(((e,t)=>String(t)))})(l[s]),u=(e=>["moreContainer","itemsContainer","dropWrapper"].concat(e,[C]))(d);u.forEach((e=>{const t=`${s}${e}`;l[t]=o.getRootNode().getElementById(`${t}`)})),a.children=((e,t,n,r)=>{const s={};return n.forEach((n=>{const o=`${e}${n}`,a=t[o];a&&(s[o]={width:a.offsetWidth,boundingClientRectWidth:i(a.getBoundingClientRect().width/r),height:a.offsetHeight})})),s})(s,l,u,c);const m=l[s],b=l[`${s}itemsContainer`],g=b.childNodes,f=l[`${s}moreContainer`],p=f.childNodes,v=(0,w.bQ)(m,"stretchButtonsToMenuWidth"),y=(0,w.bQ)(m,"sameWidthButtons"),I=m.getBoundingClientRect();a.absoluteLeft=I.left,a.bodyClientWidth=e.document.body.clientWidth,a.alignButtons=(0,w.bQ)(m,"dropalign"),a.hoverListPosition=(0,w.bQ)(m,"drophposition"),a.menuBorderY=parseInt((0,w.bQ)(m,"menuborderY"),10),a.ribbonExtra=parseInt((0,w.bQ)(m,"ribbonExtra"),10),a.ribbonEls=parseInt((0,w.bQ)(m,"ribbonEls"),10),a.labelPad=parseInt((0,w.bQ)(m,"labelPad"),10),a.menuButtonBorder=parseInt((0,w.bQ)(m,"menubtnBorder"),10),a.menuItemContainerMargins=(t=>{const i=t.lastChild,n=e.getComputedStyle(i);return(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0)})(b),a.menuItemContainerExtraPixels=((t,i)=>{const r=e.getComputedStyle(t);let s=n(r.borderTopWidth)+n(r.paddingTop),o=n(r.borderBottomWidth)+n(r.paddingBottom),a=n(r.borderLeftWidth)+n(r.paddingLeft),l=n(r.borderRightWidth)+n(r.paddingRight);return i&&(s+=n(r.marginTop),o+=n(r.marginBottom),a+=n(r.marginLeft),l+=n(r.marginRight)),{top:s,bottom:o,left:a,right:l,height:s+o,width:a+l}})(b,!0),a.needToOpenMenuUp=r(m),a.menuItemMarginForAllChildren=!v||"false"!==b.getAttribute("data-marginAllChildren"),a.moreSubItem=[],a.labelWidths={},a.linkIds={},a.parentId={},a.menuItems={},a.labels={},p.forEach(((t,i)=>{a.parentId[t.id]=(0,w.bQ)(t,"parentId");const n=(0,w.bQ)(t,"dataId");a.menuItems[n]={dataId:n,parentId:(0,w.bQ)(t,"parentId"),moreDOMid:t.id,moreIndex:i},l[t.id]=t;const r=t.querySelector("p");l[r.id]=r,a.labels[r.id]={width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,lineHeight:parseInt(e.getComputedStyle(r).fontSize,10)},a.moreSubItem.push(t.id)})),g.forEach(((e,t)=>{const n=(0,w.bQ)(e,"dataId");a.menuItems[n]=a.menuItems[n]||{},a.menuItems[n].menuIndex=t,a.menuItems[n].menuDOMid=e.id,a.children[e.id].left=e.offsetLeft;const r=e.querySelector("p");l[r.id]=r,a.labelWidths[r.id]=((e,t)=>i(e.getBoundingClientRect().width/t))(r,c);const s=e.querySelector("p");l[s.id]=s,a.linkIds[e.id]=s.id}));const E=m.offsetHeight;a.height=E,a.width=m.offsetWidth,a.lineHeight=((e,t)=>e-t.menuBorderY-t.labelPad-t.ribbonEls-t.menuButtonBorder-t.ribbonExtra+"px")(E,a);const x=((e,i,n,r,s)=>{const o=i.width;i.hasOriginalGapData={},i.originalGapBetweenTextAndBtn={};const a=s.map((t=>{const n=r[e+t];let s;const o=(0,w.bQ)(n,"originalGapBetweenTextAndBtn");return void 0===o?(i.hasOriginalGapData[t]=!1,s=i.children[e+t].boundingClientRectWidth-i.labelWidths[`${e+t}label`],i.originalGapBetweenTextAndBtn[e+t]=s):(i.hasOriginalGapData[t]=!0,s=parseFloat(o)),i.children[e+t].width>0?Math.floor(i.labelWidths[`${e+t}label`]+s):0})),l=a.pop(),c=n.sameWidthButtons,h=n.stretchButtonsToMenuWidth;let d=!1;const u=i.menuItemContainerMargins,m=i.menuItemMarginForAllChildren,b=i.menuItemContainerExtraPixels,g=(e=>e.reduce(((e,t)=>e>t?e:t),-1/0))(a);let f=t(o,c,h,a,u,g,m,b);if(!f){for(let e=1;e<=a.length;e++)if(f=t(o,c,h,a.slice(0,-1*e).concat(l),u,g,m,b),f){d=!0;break}f||(d=!0,f=[l])}if(d){const e=f[f.length-1];for(f=f.slice(0,-1);f.length{const n=i[e];(0,u.eC)(n,{overflowX:"visible"});const{menuItemIds:r,needToOpenMenuUp:a}=t,l=r.concat(C);var c,h;c=n,h=a,(0,w.XO)(c,{dropmode:h?"dropUp":"dropDown"});let d=0;if(t.hoverState===C){const e=t.realWidths.indexOf(0),n=t.menuItems[(m=t.menuItems,b=t=>t.menuIndex===e,Object.keys(m).find((e=>b(m[e],e))))],s=n.moreIndex,o=s===r.length-1;n.moreDOMid&&(0,u.Wp)(i[n.moreDOMid],{"data-listposition":o?"dropLonely":"top"}),Object.values(t.menuItems).filter((e=>!!e.moreDOMid)).forEach((e=>{if(e.moreIndex{const r=`${e+I+n}label`;d=Math.max(t.labels[r].width,d)}));var m,b;((e,t,i,n)=>{const{hoverState:r}=t;if("-1"!==r){const{menuItemIds:a}=t,l=a.indexOf(r);if(o(t.hoverState)||r===C){if(!t.realWidths)return;const r=Math.max(n,t.children[-1!==l?e+l:e+C].width),a=Math.max(n,t.children[`${e}dropWrapper`].width),c=((e,t)=>e+15+t.menuBorderY+t.labelPad+t.menuButtonBorder)(0!==t.moreSubItem.length?t.labels[`${t.moreSubItem[0]}label`].lineHeight:0,t);t.moreSubItem.forEach((e=>{(0,u.eC)(i[e],{minWidth:`${r}px`}),(0,u.eC)(i[`${e}label`],{minWidth:"0px",lineHeight:`${c}px`})}));const h=o(t.hoverState)?t.hoverState:"__more__",d={width:t.children[e+h].width,left:t.children[e+h].left},m=s(0,t,d,r,a);(0,u.eC)(i[`${e}${I}`],{left:m.left,right:m.right}),(0,u.eC)(i[`${e}dropWrapper`],{left:m.left,right:m.right,top:m.top,bottom:m.bottom})}}})(e,t,i,d),t.originalGapBetweenTextAndBtn&&l.forEach((n=>{t.hasOriginalGapData[n]||(0,w.XO)(i[`${e}${n}`],{originalGapBetweenTextAndBtn:t.originalGapBetweenTextAndBtn[`${e}${n}`]})})),((e,t,i,n)=>{const{realWidths:r,height:s,menuItemContainerExtraPixels:o}=i;let a=0,l=null,c=null;const h=i.lineHeight,d=s-o.height;for(let s=0;s0,b=e+n[s];c=i.linkIds[b],m?(a++,l=b,(0,u.eC)(t[b],{width:`${o}px`,height:`${d}px`,position:"relative","box-sizing":"border-box",overflow:"visible",visibility:"inherit"}),(0,u.eC)(t[`${b}label`],{"line-height":h}),(0,u.Wp)(t[b],{"aria-hidden":!1})):((0,u.eC)(t[b],{height:"0px",overflow:"hidden",position:"absolute",visibility:"hidden"}),(0,u.Wp)(t[b],{"aria-hidden":!0}),(0,u.Wp)(t[c],{tabIndex:-1}))}1===a&&((0,w.XO)(t[`${e}moreContainer`],{listposition:"lonely"}),(0,w.XO)(t[l],{listposition:"lonely"}))})(e,i,t,l)}}};const x="wix-dropdown-menu",O=(e=globalThis.window)=>{if(e&&void 0===e.customElements.get(x)){const t=c(),i=function(e,t,i=window){const n=E(i);return class extends e{constructor(){super(...arguments),this._visible=!1,this._mutationIds={read:null,write:null},this._itemsContainer=null,this._dropContainer=null,this._labelItems=[]}static get observedAttributes(){return["data-hovered-item"]}attributeChangedCallback(){this._isVisible()&&this.reLayout()}connectedCallback(){this._id=this.getAttribute("id"),this._hideElement(),this._waitForDomLoad().then((()=>{super.observeResize(),this._observeChildrenResize(),this.reLayout()}))}disconnectedCallback(){t.mutationService.clear(this._mutationIds.read),t.mutationService.clear(this._mutationIds.write),super.disconnectedCallback()}_waitForDomLoad(){let e;const t=new Promise((t=>{e=t}));return this._isDomReady()?e():(this._waitForDomReadyObserver=new i.MutationObserver((()=>this._onRootMutate(e))),this._waitForDomReadyObserver.observe(this,{childList:!0,subtree:!0})),t}_isDomReady(){return this._itemsContainer=this.getRootNode().getElementById(`${this._id}itemsContainer`),this._dropContainer=this.getRootNode().getElementById(`${this._id}dropWrapper`),this._itemsContainer&&this._dropContainer}_onRootMutate(e){this._isDomReady()&&(this._waitForDomReadyObserver.disconnect(),e())}_observeChildrenResize(){const e=Array.from(this._itemsContainer.childNodes);this._labelItems=e.map((e=>this.getRootNode().getElementById(`${e.getAttribute("id")}label`))),this._labelItems.forEach((e=>super.observeChildResize(e)))}_setVisibility(e){this._visible=e,this.style.visibility=e?"inherit":"hidden"}_isVisible(){return this._visible}_hideElement(){this._setVisibility(!1)}_showElement(){this._setVisibility(!0)}reLayout(){let e,i;t.mutationService.clear(this._mutationIds.read),t.mutationService.clear(this._mutationIds.write),this._mutationIds.read=t.mutationService.measure((()=>{const t=n.measure(this._id,this);e=t.measures,i=t.domNodes})),this._mutationIds.write=t.mutationService.mutate((()=>{n.patch(this._id,e,i),this._showElement()}))}}}(f(e),{resizeService:t,mutationService:r()},e);e.customElements.define(x,i)}};const S="wix-iframe",_=(e=globalThis.window)=>{if(e&&void 0===e.customElements.get(S)){const t=function(e){return class extends e{constructor(){super()}reLayout(){const e=this.querySelector("iframe");if(e){const t=e.dataset.src;t&&e.src!==t&&(e.src=t,e.dataset.src="",this.dataset.src="")}}attributeChangedCallback(e,t,i){i&&this.reLayout()}static get observedAttributes(){return["data-src"]}}}(f(e));b(e,S,t)}};var R=i(22538),W={measure(e,t,{hasBgScrollEffect:i,videoWidth:n,videoHeight:r,fittingType:s,alignType:o="center",qualities:a,staticVideoUrl:l,videoId:c,videoFormat:h,focalPoint:u}){const m=i?t.offsetWidth:e.parentElement.offsetWidth,b=e.parentElement.offsetHeight,g=parseInt(n,10),f=parseInt(r,10),p=function(e,t,i,n){return{wScale:e/i,hScale:t/n}}(m,b,g,f),v=function(e,t,i,n){let r;r=e===R.fittingTypes.SCALE_TO_FIT?Math.min(t.wScale,t.hScale):Math.max(t.wScale,t.hScale);return{width:Math.round(i*r),height:Math.round(n*r)}}(s,p,g,f),y=function(e,{width:t,height:i}){const n=((e,t)=>{const i=e.reduce(((e,i)=>(e[t(i)]=i,e)),{});return Object.values(i)})(e,(e=>e.size)),r=n.find((e=>e.size>t*i));return r||e[e.length-1]}(a,v),C=function(e,t,i,n){if("mp4"===n)return e.url?d(t,e.url):d(t,i,e.quality,n,"file.mp4");return""}(y,l,c,h),I=function(e,t){const i=e.networkState===e.NETWORK_NO_SOURCE,n=!e.currentSrc.endsWith(t);return t&&(n||i)}(e,C),E=w.ds[s]||"cover",x=u?function(e,t,i){const{width:n,height:r}=e,{width:s,height:o}=t,{x:a,y:l}=i;if(!s||!o)return`${a}% ${l}%`;const c=Math.max(s/n,o/r),h=n*c,d=r*c,u=Math.max(0,Math.min(h-s,h*(a/100)-s/2)),m=Math.max(0,Math.min(d-o,d*(l/100)-o/2)),b=u&&Math.floor(u/(h-s)*100),g=m&&Math.floor(m/(d-o)*100);return`${b}% ${g}%`}(v,{width:m,height:b},u):"",O=o.replace("_"," ");return{videoSourceUrl:C,needsSrcUpdate:I,videoStyle:{height:"100%",width:"100%",objectFit:E,objectPosition:x||O}}},mutate(e,t,i,n,r,s,o,a,l,c,h){t?(0,u.eC)(t,n):(!function(e,t,i,n,r,s){s&&t.paused&&(i.style.opacity="1",t.style.opacity="0");const o=t.paused||""===t.currentSrc,a=e||s;if(a&&o)if(t.ontimeupdate=null,t.onseeked=null,t.onplay=null,!s&&r){const e=t.muted;t.muted=!0,t.ontimeupdate=()=>{t.currentTime>0&&(t.ontimeupdate=null,t.onseeked=()=>{t.onseeked=null,t.muted=e,A(t,i,n)},t.currentTime=0)}}else t.onplay=()=>{s||(t.onplay=null),A(t,i,n)}}(o,i,e,a,r,h),r?i.setAttribute("autoplay",""):i.removeAttribute("autoplay"),(0,u.eC)(i,n)),function(e,t,i){e&&(t.src=i,t.load())}(o,i,s),i.playbackRate=c}};function A(e,t,i){"fade"===i&&(t.style.transition="opacity 1.6s ease-out"),t.style.opacity="0",e.style.opacity="1"}const M="wix-video",$=(e=globalThis.window,t={},i={experiments:{}})=>{if(e&&void 0===e.customElements.get(M)){const n=function(e,t,i){return class extends e{constructor(){super()}reLayout(){const{isVideoDataExists:e,videoWidth:n,videoHeight:r,qualities:s,videoId:o,videoFormat:a,alignType:l,fittingType:c,focalPoint:h,hasBgScrollEffect:d,autoPlay:u,animatePoster:m,containerId:b,isEditorMode:g,playbackRate:f,hasAlpha:p}=JSON.parse(this.dataset.videoInfo);if(!e)return;const v=!i.prefersReducedMotion&&u,y=this.querySelector(`video[id^="${b}"]`),w=this.querySelector(`.bgVideoposter[id^="${b}"]`);if(this.unobserveChildren(),!y||!w)return void this.observeChildren(this);const C=this.getRootNode().getElementById(`${b}`),I=C.querySelector(`.webglcanvas[id^="${b}"]`);!p&&"true"!==C.dataset.hasAlpha||I?t.mutationService.measure((()=>{const e=W.measure(y,C,{hasBgScrollEffect:d,videoWidth:n,videoHeight:r,fittingType:c,alignType:l,qualities:s,staticVideoUrl:i.staticVideoUrl,videoId:o,videoFormat:a,focalPoint:h}),{videoSourceUrl:u,needsSrcUpdate:b,videoStyle:p}=e;t.mutationService.mutate((()=>{W.mutate(w,I,y,p,v,u,b,m,a,f,g)}))})):requestAnimationFrame((()=>this.reLayout()))}attributeChangedCallback(e,t){t&&this.reLayout()}static get observedAttributes(){return["data-video-info"]}}}(f(e),t,i);b(e,M,n)}}},42658:function(e,t,i){i.d(t,{Wp:function(){return r},XO:function(){return l},bQ:function(){return a},c$:function(){return c},ds:function(){return h},eC:function(){return s},g7:function(){return o}});const n={columnCount:1,columns:1,fontWeight:1,lineHeight:1,opacity:1,zIndex:1,zoom:1},r=(e,t)=>e&&t&&Object.keys(t).forEach((i=>e.setAttribute(i,t[i]))),s=(e,t)=>e&&t&&Object.keys(t).forEach((i=>{const r=t[i];void 0!==r?e.style[i]=((e,t)=>"number"!=typeof t||n[e]?t:`${t}px`)(i,r):e.style.removeProperty(i)})),o=(e,t)=>e&&t&&Object.keys(t).forEach((i=>{e.style.setProperty(i,t[i])})),a=(e,t,i=!0)=>{return e&&i?(n=e.dataset[t])?"true"===n||"false"!==n&&("null"===n?null:""+ +n===n?+n:n):n:e.dataset[t];var n},l=(e,t)=>e&&t&&Object.assign(e.dataset,t),c=e=>e||document.documentElement.clientHeight||window.innerHeight||0,h={fit:"contain",fill:"cover"}},46209:function(e,t,i){i.d(t,{WD:function(){return r},xX:function(){return a}});var n=i(22538);const r=(e,t,i)=>{const{targetWidth:r,targetHeight:a,imageData:l,filters:c,displayMode:h=n.fittingTypes.SCALE_TO_FILL}=e;if(!r||!a||!l.uri)return{uri:"",css:{}};const{width:d,height:u,crop:m,name:b,focalPoint:g,upscaleMethod:f,quality:p,devicePixelRatio:v=t.devicePixelRatio}=l,y={filters:c,upscaleMethod:f,...p,hasAnimation:e?.hasAnimation||l?.hasAnimation},w=o(v),C={id:l.uri,width:d,height:u,...m&&{crop:m},...g&&{focalPoint:g},...b&&{name:b}},I={width:r,height:a,htmlTag:i||"img",pixelAspectRatio:w,alignment:e.alignType||n.alignTypes.CENTER},E=(0,n.getData)(h,C,I,y);return E.uri=s(E.uri,t.staticMediaUrl,t.mediaRootUrl),E},s=(e,t,i)=>{if(/(^https?)|(^data)|(^blob)|(^\/\/)/.test(e))return e;let n=`${t}/`;return e&&(/^micons\//.test(e)?n=i:"ico"===/[^.]+$/.exec(e)[0]&&(n=n.replace("media","ficons"))),n+e},o=e=>{const t=window.location.search.split("&").map((e=>e.split("="))).find((e=>e[0].toLowerCase().includes("devicepixelratio")));return(t?Number(t[1]):null)||e||1};function a(e){return e.isExperimentOpen("specs.thunderbolt.tb_stop_client_images")||e.isExperimentOpen("specs.thunderbolt.final_force_webp")||e.isExperimentOpen("specs.thunderbolt.final_force_no_webp")}}}]); //# sourceMappingURL=https://static.parastorage.com/services/wix-thunderbolt/dist/8875.d06b9c87.bundle.min.js.map