/** * External dependencies */ import { round, isUndefined } from 'lodash' import classnames from 'classnames' /** * Internal dependencies */ import humanNumber from '@helpers/humanNumber' const ItemStat = ( { total = 0, difference = 0, revert = false } ) => { total = isUndefined( total ) ? 0 : total difference = isUndefined( difference ) ? 0 : difference revert = isUndefined( revert ) ? false : revert const isNegative = Math.abs( difference ) !== difference const diffClass = classnames( 'rank-math-item-difference', { up: ( ! revert && ! isNegative && difference > 0 ) || ( revert && isNegative ), down: ( ! revert && isNegative ) || ( revert && ! isNegative && difference > 0 ), } ) return (
u){const e=s-u;a-=e,o.vertical+=e}if(null!==P&&i
d){const e=l-d;i-=e,o.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(i)}px`,transformOrigin:getTransformOriginValue(o)}}),[h,b,H,K,P]),[Y,J]=n.useState(T),Q=n.useCallback((()=>{const e=U.current;if(!e)return;const t=X(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,J(!0)}),[X]);n.useEffect((()=>(j&&window.addEventListener("scroll",Q),()=>window.removeEventListener("scroll",Q))),[h,j,Q]);n.useEffect((()=>{T&&Q()})),n.useImperativeHandle(m,(()=>T?{updatePosition:()=>{Q()}}:null),[T,Q]),n.useEffect((()=>{if(!T)return;const e=Ne((()=>{Q()})),t=Le(h);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[h,T,Q]);let ee=I;"auto"!==I||B.muiSupportAuto||(ee=void 0);const te=w||(h?Be(resolveAnchorEl(h)).body:void 0),re=null!=(a=null==E?void 0:E.root)?a:rt,oe=null!=(u=null==E?void 0:E.paper)?u:ot,ne=(0,Ae.y)({elementType:oe,externalSlotProps:(0,i.Z)({},D,{style:Y?D.style:(0,i.Z)({},D.style,{opacity:0})}),additionalProps:{elevation:k,ref:W},ownerState:V,className:(0,l.Z)(G.paper,null==D?void 0:D.className)}),ae=(0,Ae.y)({elementType:re,externalSlotProps:(null==$?void 0:$.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:te,open:T},ownerState:V,className:(0,l.Z)(G.root,S)}),{slotProps:ie}=ae,se=(0,s.Z)(ae,tt);return(0,x.jsx)(re,(0,i.Z)({},se,!(0,Z.X)(re)&&{slotProps:ie,disableScrollLock:j},{children:(0,x.jsx)(B,(0,i.Z)({appear:!0,in:T,onEntering:(e,t)=>{F&&F(e,t),Q()},onExited:()=>{J(!1)},timeout:ee},N,{children:(0,x.jsx)(oe,(0,i.Z)({},ne,{children:C}))}))}))}));function getMenuUtilityClass(e){return(0,j.ZP)("MuiMenu",e)}(0,F.Z)("MuiMenu",["root","paper","list"]);const at=["onEntering"],it=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],st={vertical:"top",horizontal:"right"},lt={vertical:"top",horizontal:"left"},ct=(0,d.ZP)(nt,{shouldForwardProp:e=>(0,d.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ut=(0,d.ZP)(ot,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),dt=(0,d.ZP)(je,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),pt=n.forwardRef((function Menu(e,t){var o,a;const u=(0,p.Z)({props:e,name:"MuiMenu"}),{autoFocus:d=!0,children:m,className:h,disableAutoFocusItem:g=!1,MenuListProps:y={},onClose:b,open:C,PaperProps:S={},PopoverClasses:w,transitionDuration:Z="auto",TransitionProps:{onEntering:k}={},variant:P="selectedMenu",slots:M={},slotProps:T={}}=u,R=(0,s.Z)(u.TransitionProps,at),E=(0,s.Z)(u,it),$=(0,We.Z)(),O="rtl"===$.direction,B=(0,i.Z)({},u,{autoFocus:d,disableAutoFocusItem:g,MenuListProps:y,onEntering:k,PaperProps:S,transitionDuration:Z,TransitionProps:R,variant:P}),I=(e=>{const{classes:t}=e;return(0,c.Z)({root:["root"],paper:["paper"],list:["list"]},getMenuUtilityClass,t)})(B),F=d&&!g&&C,j=n.useRef(null);let N=-1;n.Children.map(m,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===P&&e.props.selected||-1===N)&&(N=t))}));const L=null!=(o=M.paper)?o:ut,D=null!=(a=T.paper)?a:S,U=(0,Ae.y)({elementType:M.root,externalSlotProps:T.root,ownerState:B,className:[I.root,h]}),W=(0,Ae.y)({elementType:L,externalSlotProps:D,ownerState:B,className:I.paper});return(0,x.jsx)(ct,(0,i.Z)({onClose:b,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?st:lt,slots:{paper:L,root:M.root},slotProps:{root:U,paper:W},open:C,ref:t,transitionDuration:Z,TransitionProps:(0,i.Z)({onEntering:(e,t)=>{j.current&&j.current.adjustStyleForScrollbar(e,$),k&&k(e,t)}},R),ownerState:B},E,{classes:w,children:(0,x.jsx)(dt,(0,i.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),b&&b(e,"tabKeyDown"))},actions:j,autoFocus:d&&(-1===N||g),autoFocusItem:F,variant:P},y,{className:(0,l.Z)(I.list,y.className),children:m}))}))}));function getNativeSelectUtilityClasses(e){return(0,j.ZP)("MuiNativeSelect",e)}const ft=(0,F.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),mt=["className","disabled","error","IconComponent","inputRef","variant"],nativeSelectSelectStyles=({ownerState:e,theme:t})=>(0,i.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,i.Z)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${ft.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ht=(0,d.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:d.FO,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],o.error&&t.error,{[`&.${ft.multiple}`]:t.multiple}]}})(nativeSelectSelectStyles),nativeSelectIconStyles=({ownerState:e,theme:t})=>(0,i.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ft.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),gt=(0,d.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${(0,P.Z)(o.variant)}`],o.open&&t.iconOpen]}})(nativeSelectIconStyles),yt=n.forwardRef((function NativeSelectInput(e,t){const{className:o,disabled:a,error:u,IconComponent:d,inputRef:p,variant:m="standard"}=e,h=(0,s.Z)(e,mt),g=(0,i.Z)({},e,{disabled:a,variant:m,error:u}),y=(e=>{const{classes:t,variant:o,disabled:n,multiple:a,open:i,error:s}=e,l={select:["select",o,n&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${(0,P.Z)(o)}`,i&&"iconOpen",n&&"disabled"]};return(0,c.Z)(l,getNativeSelectUtilityClasses,t)})(g);return(0,x.jsxs)(n.Fragment,{children:[(0,x.jsx)(ht,(0,i.Z)({ownerState:g,className:(0,l.Z)(y.select,o),disabled:a,ref:p||t},h)),e.multiple?null:(0,x.jsx)(gt,{as:d,ownerState:g,className:y.icon})]})}));const vt=function useControlled({controlled:e,default:t,name:o,state:a="value"}){const{current:i}=n.useRef(void 0!==e),[s,l]=n.useState(t);return[i?e:s,n.useCallback((e=>{i||l(e)}),[])]};function getSelectUtilityClasses(e){return(0,j.ZP)("MuiSelect",e)}const bt=(0,F.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var xt;const Ct=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],St=(0,d.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${bt.select}`]:t.select},{[`&.${bt.select}`]:t[o.variant]},{[`&.${bt.error}`]:t.error},{[`&.${bt.multiple}`]:t.multiple}]}})(nativeSelectSelectStyles,{[`&.${bt.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),wt=(0,d.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${(0,P.Z)(o.variant)}`],o.open&&t.iconOpen]}})(nativeSelectIconStyles),Zt=(0,d.ZP)("input",{shouldForwardProp:e=>(0,d.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function areEqualValues(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function SelectInput_isEmpty(e){return null==e||"string"==typeof e&&!e.trim()}const kt=n.forwardRef((function SelectInput(e,t){var o;const{"aria-describedby":a,"aria-label":d,autoFocus:p,autoWidth:m,children:g,className:y,defaultOpen:b,defaultValue:C,disabled:S,displayEmpty:w,error:Z=!1,IconComponent:k,inputRef:T,labelId:R,MenuProps:E={},multiple:$,name:O,onBlur:B,onChange:I,onClose:F,onFocus:j,onOpen:N,open:L,readOnly:D,renderValue:U,SelectDisplayProps:W={},tabIndex:V,value:G,variant:H="standard"}=e,K=(0,s.Z)(e,Ct),[X,Y]=vt({controlled:G,default:C,name:"Select"}),[J,Q]=vt({controlled:L,default:b,name:"Select"}),ee=n.useRef(null),te=n.useRef(null),[re,oe]=n.useState(null),{current:ne}=n.useRef(null!=L),[ae,ie]=n.useState(),se=(0,M.Z)(t,T),le=n.useCallback((e=>{te.current=e,e&&oe(e)}),[]),ce=null==re?void 0:re.parentNode;n.useImperativeHandle(se,(()=>({focus:()=>{te.current.focus()},node:ee.current,value:X})),[X]),n.useEffect((()=>{b&&J&&re&&!ne&&(ie(m?null:ce.clientWidth),te.current.focus())}),[re,m]),n.useEffect((()=>{p&&te.current.focus()}),[p]),n.useEffect((()=>{if(!R)return;const e=Be(te.current).getElementById(R);if(e){const handler=()=>{getSelection().isCollapsed&&te.current.focus()};return e.addEventListener("click",handler),()=>{e.removeEventListener("click",handler)}}}),[R]);const update=(e,t)=>{e?N&&N(t):F&&F(t),ne||(ie(m?null:ce.clientWidth),Q(e))},ue=n.Children.toArray(g),handleItemClick=e=>t=>{let o;if(t.currentTarget.hasAttribute("tabindex")){if($){o=Array.isArray(X)?X.slice():[];const t=X.indexOf(e.props.value);-1===t?o.push(e.props.value):o.splice(t,1)}else o=e.props.value;if(e.props.onClick&&e.props.onClick(t),X!==o&&(Y(o),I)){const n=t.nativeEvent||t,a=new n.constructor(n.type,n);Object.defineProperty(a,"target",{writable:!0,value:{value:o,name:O}}),I(a,e)}$||update(!1,t)}},de=null!==re&&J;let pe,fe;delete K["aria-invalid"];const me=[];let he=!1,ge=!1;(isFilled({value:X})||w)&&(U?pe=U(X):he=!0);const ye=ue.map((e=>{if(!n.isValidElement(e))return null;let t;if($){if(!Array.isArray(X))throw new Error((0,h.Z)(2));t=X.some((t=>areEqualValues(t,e.props.value))),t&&he&&me.push(e.props.children)}else t=areEqualValues(X,e.props.value),t&&he&&(fe=e.props.children);return t&&(ge=!0),n.cloneElement(e,{"aria-selected":t?"true":"false",onClick:handleItemClick(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));he&&(pe=$?0===me.length?null:me.reduce(((e,t,o)=>(e.push(t),o{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},54841:(e,t,o)=>{"use strict";var n=o(73203);t.Fq=alpha,t._j=darken,t.mi=function getContrastRatio(e,t){const o=getLuminance(e),n=getLuminance(t);return(Math.max(o,n)+.05)/(Math.min(o,n)+.05)},t.ve=hslToRgb,t.$n=lighten,t.zp=function private_safeAlpha(e,t,o){try{return alpha(e,t)}catch(t){return e}},t.LR=void 0,t.q8=function private_safeDarken(e,t,o){try{return darken(e,t)}catch(t){return e}},t.fk=function private_safeEmphasize(e,t,o){try{return private_safeEmphasize(e,t)}catch(t){return e}},t.ux=function private_safeLighten(e,t,o){try{return lighten(e,t)}catch(t){return e}};var a=n(o(43092)),i=n(o(2891));function clampWrapper(e,t=0,o=1){return(0,i.default)(e,t,o)}function hexToRgb(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let o=e.match(t);return o&&1===o[0].length&&(o=o.map((e=>e+e))),o?`rgb${4===o.length?"a":""}(${o.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function decomposeColor(e){if(e.type)return e;if("#"===e.charAt(0))return decomposeColor(hexToRgb(e));const t=e.indexOf("("),o=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(o))throw new Error((0,a.default)(9,e));let n,i=e.substring(t+1,e.length-1);if("color"===o){if(i=i.split(" "),n=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,a.default)(10,n))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:o,values:i,colorSpace:n}}const colorChannel=e=>{const t=decomposeColor(e);return t.values.slice(0,3).map(((e,o)=>-1!==t.type.indexOf("hsl")&&0!==o?`${e}%`:e)).join(" ")};function recomposeColor(e){const{type:t,colorSpace:o}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${o} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function hslToRgb(e){e=decomposeColor(e);const{values:t}=e,o=t[0],n=t[1]/100,a=t[2]/100,i=n*Math.min(a,1-a),f=(e,t=(e+o/30)%12)=>a-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*f(0)),Math.round(255*f(8)),Math.round(255*f(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),recomposeColor({type:s,values:l})}function getLuminance(e){let t="hsl"===(e=decomposeColor(e)).type||"hsla"===e.type?decomposeColor(hslToRgb(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function alpha(e,t){return e=decomposeColor(e),t=clampWrapper(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,recomposeColor(e)}function darken(e,t){if(e=decomposeColor(e),t=clampWrapper(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let o=0;o<3;o+=1)e.values[o]*=1-t;return recomposeColor(e)}function lighten(e,t){if(e=decomposeColor(e),t=clampWrapper(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let o=0;o<3;o+=1)e.values[o]+=(255-e.values[o])*t;else if(-1!==e.type.indexOf("color"))for(let o=0;o<3;o+=1)e.values[o]+=(1-e.values[o])*t;return recomposeColor(e)}t.LR=(e,t)=>{try{return colorChannel(e)}catch(t){return e}}},8639:(e,t,o)=>{"use strict";var n=o(73203);t.ZP=function createStyled(e={}){const{themeId:t,defaultTheme:o=h,rootShouldForwardProp:n=shouldForwardProp,slotShouldForwardProp:c=shouldForwardProp}=e,systemSx=e=>(0,u.default)((0,a.default)({},e,{theme:resolveTheme((0,a.default)({},e,{defaultTheme:o,themeId:t}))}));return systemSx.__mui_systemSx=!0,(e,u={})=>{(0,s.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:p,skipVariantsResolver:h,skipSx:g,overridesResolver:y=defaultOverridesResolver(lowercaseFirstLetter(p))}=u,b=(0,i.default)(u,m),x=void 0!==h?h:p&&"Root"!==p&&"root"!==p||!1,C=g||!1;let S=shouldForwardProp;"Root"===p||"root"===p?S=n:p?S=c:function isStringTag(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(S=void 0);const w=(0,s.default)(e,(0,a.default)({shouldForwardProp:S,label:undefined},b)),transformStyleArg=e=>"function"==typeof e&&e.__emotion_real!==e||(0,l.isPlainObject)(e)?n=>processStyleArg(e,(0,a.default)({},n,{theme:resolveTheme({theme:n.theme,defaultTheme:o,themeId:t})})):e,muiStyledResolver=(n,...i)=>{let s=transformStyleArg(n);const l=i?i.map(transformStyleArg):[];d&&y&&l.push((e=>{const n=resolveTheme((0,a.default)({},e,{defaultTheme:o,themeId:t}));if(!n.components||!n.components[d]||!n.components[d].styleOverrides)return null;const i=n.components[d].styleOverrides,s={};return Object.entries(i).forEach((([t,o])=>{s[t]=processStyleArg(o,(0,a.default)({},e,{theme:n}))})),y(e,s)})),d&&!x&&l.push((e=>{var n;const i=resolveTheme((0,a.default)({},e,{defaultTheme:o,themeId:t}));return processStyleArg({variants:null==i||null==(n=i.components)||null==(n=n[d])?void 0:n.variants},(0,a.default)({},e,{theme:i}))})),C||l.push(systemSx);const c=l.length-i.length;if(Array.isArray(n)&&c>0){const e=new Array(c).fill("");s=[...n,...e],s.raw=[...n.raw,...e]}const u=w(s,...l);return e.muiName&&(u.muiName=e.muiName),u};return w.withConfig&&(muiStyledResolver.withConfig=w.withConfig),muiStyledResolver}},t.x9=shouldForwardProp;var a=n(o(73119)),i=n(o(22412)),s=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=_getRequireWildcardCache(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,o&&o.set(e,n),n}(o(98928)),l=o(23821),c=(n(o(1503)),n(o(64652)),n(o(16592))),u=n(o(33781));const d=["ownerState"],p=["variants"],m=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(_getRequireWildcardCache=function(e){return e?o:t})(e)}function shouldForwardProp(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const h=(0,c.default)(),lowercaseFirstLetter=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function resolveTheme({defaultTheme:e,theme:t,themeId:o}){return function isEmpty(e){return 0===Object.keys(e).length}(t)?e:t[o]||t}function defaultOverridesResolver(e){return e?(t,o)=>o[e]:null}function processStyleArg(e,t){let{ownerState:o}=t,n=(0,i.default)(t,d);const s="function"==typeof e?e((0,a.default)({ownerState:o},n)):e;if(Array.isArray(s))return s.flatMap((e=>processStyleArg(e,(0,a.default)({ownerState:o},n))));if(s&&"object"==typeof s&&Array.isArray(s.variants)){const{variants:e=[]}=s;let t=(0,i.default)(s,p);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,a.default)({ownerState:o},n,o)):Object.keys(e.props).forEach((t=>{(null==o?void 0:o[t])!==e.props[t]&&n[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,a.default)({ownerState:o},n,o)):e.style))})),t}return s}},72142:(e,t,o)=>{"use strict";o.d(t,{L7:()=>removeUnusedBreakpoints,P$:()=>resolveBreakpointValues,VO:()=>a,W8:()=>createEmptyBreakpointObject,dt:()=>mergeBreakpointsInOrder,k9:()=>handleBreakpoints});var n=o(96509);const a={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${a[e]}px)`};function handleBreakpoints(e,t,o){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||i;return t.reduce(((n,a,i)=>(n[e.up(e.keys[i])]=o(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||i;return Object.keys(t).reduce(((n,i)=>{if(-1!==Object.keys(e.values||a).indexOf(i)){n[e.up(i)]=o(t[i],i)}else{const e=i;n[e]=t[e]}return n}),{})}return o(t)}function createEmptyBreakpointObject(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,o)=>(t[e.up(o)]={},t)),{}))||{}}function removeUnusedBreakpoints(e,t){return e.reduce(((e,t)=>{const o=e[t];return(!o||0===Object.keys(o).length)&&delete e[t],e}),t)}function mergeBreakpointsInOrder(e,...t){const o=createEmptyBreakpointObject(e),a=[o,...t].reduce(((e,t)=>(0,n.Z)(e,t)),{});return removeUnusedBreakpoints(Object.keys(o),a)}function resolveBreakpointValues({values:e,breakpoints:t,base:o}){const n=o||function computeBreakpointsBase(e,t){if("object"!=typeof e)return{};const o={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n2||token(c)>3?"":" "}function escaping(e,t){for(;--t&&next()&&!(c<48||c>102||c>57&&c<65||c>70&&c<97););return slice(e,caret()+(t<6&&32==peek()&&32==next()))}function delimiter(e){for(;next();)switch(c){case e:return l;case 34:case 39:34!==e&&39!==e&&delimiter(c);break;case 40:41===e&&delimiter(e);break;case 92:next()}return l}function commenter(e,t){for(;next()&&e+c!==57&&(e+c!==84||47!==peek()););return"/*"+slice(t,l-1)+"*"+(0,n.Dp)(47===e?e:next())}function identifier(e){for(;!token(peek());)next();return slice(e,l)}},45445:(e,t,o)=>{"use strict";o.d(t,{$e:()=>combine,Cw:()=>indexof,Dp:()=>a,EQ:()=>match,Ei:()=>sizeof,R3:()=>append,Wn:()=>n,f0:()=>i,fy:()=>trim,gx:()=>replace,tb:()=>substr,to:()=>strlen,uO:()=>charat,vp:()=>hash});var n=Math.abs,a=String.fromCharCode,i=Object.assign;function hash(e,t){return 45^charat(e,0)?(((t<<2^charat(e,0))<<2^charat(e,1))<<2^charat(e,2))<<2^charat(e,3):0}function trim(e){return e.trim()}function match(e,t){return(e=t.exec(e))?e[0]:e}function replace(e,t,o){return e.replace(t,o)}function indexof(e,t){return e.indexOf(t)}function charat(e,t){return 0|e.charCodeAt(t)}function substr(e,t,o){return e.slice(t,o)}function strlen(e){return e.length}function sizeof(e){return e.length}function append(e,t){return t.push(e),e}function combine(e,t){return e.map(t).join("")}},71635:(e,t,o)=>{"use strict";function r(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;tn});const n=function clsx(){for(var e,t,o=0,n="",a=arguments.length;o{"use strict";function r(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;tn});const n=function clsx(){for(var e,t,o=0,n="",a=arguments.length;o{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=__webpack_require__(23615),t=__webpack_require__(73203),o=t(__webpack_require__(87363)),n=__webpack_require__(36626),a=__webpack_require__(30322),i=t(__webpack_require__(66535)),s=t(__webpack_require__(51007)),l=function App(e){return o.default.createElement(n.DirectionProvider,{rtl:e.isRTL},o.default.createElement(n.LocalizationProvider,null,o.default.createElement(a.ThemeProvider,{colorScheme:"light"},o.default.createElement(s.default,{homeScreenData:e.homeScreenData,adminUrl:e.adminUrl}))))},c=elementorCommon.config.isRTL,u=elementorAppConfig.admin_url,d=document.querySelector("#e-home-screen");l.propTypes={isRTL:e.bool,adminUrl:e.string,homeScreenData:e.object},i.default.render(o.default.createElement(l,{isRTL:c,homeScreenData:elementorHomeScreenData,adminUrl:u}),d)})()})();