@elementor/elementor-one-assets 0.4.22 → 0.4.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -98,7 +98,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
98
98
  animation: ${0} 1.4s linear infinite;
99
99
  `),Nu))),$u=Si("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Lu=Si("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${tn(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>_({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&Dt(Ru||(Ru=Iu`
100
100
  animation: ${0} 1.4s ease-in-out infinite;
101
- `),Pu))),Du=n.forwardRef((function(t,r){const n=Ri({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:p="indeterminate"}=n,d=v(n,Cu),f=_({},n,{color:i,disableShrink:a,size:s,thickness:c,value:u,variant:p}),h=(e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e;return re({root:["root",r,`color${tn(n)}`],svg:["svg"],circle:["circle",`circle${tn(r)}`,o&&"circleDisableShrink"]},Ou,t)})(f),m={},g={},y={};if("determinate"===p){const e=2*Math.PI*((44-c)/2);m.strokeDasharray=e.toFixed(3),y["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return e(Au,_({className:te(h.root,o),style:_({width:s,height:s},g,l),ownerState:f,ref:r,role:"progressbar"},y,d,{children:e($u,{className:h.svg,ownerState:f,viewBox:"22 22 44 44",children:e(Lu,{className:h.circle,style:m,ownerState:f,cx:44,cy:44,r:(44-c)/2,fill:"none",strokeWidth:c})})}))}));"production"!==process.env.NODE_ENV&&(Du.propTypes={classes:J.object,className:J.string,color:J.oneOfType([J.oneOf(["inherit","primary","secondary","error","info","success","warning"]),J.string]),disableShrink:Li(J.bool,(e=>e.disableShrink&&e.variant&&"indeterminate"!==e.variant?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null)),size:J.oneOfType([J.number,J.string]),style:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),thickness:J.number,value:J.number,variant:J.oneOf(["determinate","indeterminate"])});const ju={color:"inherit",size:"1em"},Fu=o.forwardRef(((e,t)=>o.createElement(Du,{...ju,...e,ref:t})));Fu.defaultProps=ju;var zu=Fu;const Bu="rgba(0, 0, 0, 0.04)",Vu="rgba(0, 0, 0, 0.08)",Uu=Dl(ku)((({theme:e,ownerState:t})=>{const{color:r,unstableToColor:n,unstableGradientAngle:o}=t,i=r&&"inherit"!==r?r:"primary",a=!!e.palette[i]?.__unstableTonalMain,s=({variant:e})=>"unstableTonal"===e&&a,l=({variant:e})=>!!e&&!["contained","outlined","text"].includes(e);return{variants:[{props:()=>t.loading&&"center"===t.loadingPosition,style:{"&.MuiButtonBase-root":{"&, &:hover, &:focus, &:active":{color:"transparent"}},"& .MuiButton-loadingWrapper":{display:"contents","& .MuiButton-loadingIndicator":{display:"flex",position:"absolute",left:"50%",transform:"translateX(-50%)",color:e.palette.action.disabled}}}},{props:e=>s(e)&&"inherit"!==e.color&&!e.disabled,style:{background:e.palette[i]?.__unstableTonalMain,color:e.palette[i].main,"&:hover":{backgroundColor:e.palette[i]?.__unstableTonalDark}}},{props:e=>e.disabled&&l(e),style:{background:e.palette.action.disabledBackground,color:e.palette.action.disabled}},{props:e=>s(e)&&"inherit"===e.color,style:{background:Bu,color:"inherit","&:hover":{backgroundColor:Vu}}},{props:e=>"unstableTonal"===e.variant&&!a,style:{background:"#ff0000",color:"#ff0000"}},{props:e=>"small"===e.size&&l(e),style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:e=>"large"===e.size&&l(e),style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:e=>(({variant:e})=>"unstableGradient"===e&&a)(e)&&!e.disabled,style:Xu(e,o,r,n)},{props:e=>"unstableGradient"===e.variant&&!a,style:{background:"#ff0000",color:"#ff0000"}}]}})),qu=(e="primary",t="text",r)=>{if(e)return"inherit"===e?"inherit":"contained"===t?`${e}.contrastText`:"unstableTonal"===t?`${e}.main`:r.palette.primary.__unstableAccessibleMain&&gc.includes(e)?`${e}.${wl}`:`${e}.main`},Wu={loading:!1,loadingIndicator:o.createElement(zu,{color:"inherit",size:16}),loadingPosition:"center"},Hu=o.forwardRef(((e,t)=>{const r={...Wu,...e},n=o.useContext(yu),i=as(),{sx:a={},unstableToColor:s,unstableGradientAngle:l,...c}=function(e){const{loading:t,loadingPosition:r,loadingIndicator:n,...i}=e;if(!t)return i;switch(r){case"start":i.startIcon=n;break;case"end":i.endIcon=n;break;case"center":i.children=o.createElement(Gu,{loadingIndicator:n},e.children)}return{...i,disabled:!0}}(r),u={...c,loading:r.loading,loadingPosition:r.loadingPosition,loadingIndicator:r.loadingIndicator,unstableToColor:s,unstableGradientAngle:l};let p={};const d=c.href?xl:"&:hover,&:focus,&:active",f=c.color||n?.color,h=c.variant||n?.variant;return p={[d]:{color:qu(f,h,i)}},o.createElement(Uu,{...c,color:f,variant:h,sx:{...p,...a},ref:t,ownerState:u})}));var Ku=Hu;function Gu({loadingIndicator:e,children:t}){return o.createElement(o.Fragment,null,o.createElement("div",{className:"MuiButton-loadingWrapper"},o.createElement("div",{className:"MuiButton-loadingIndicator"},e)),t)}function Xu(e,t,r,n){if(!r)return;const o=r,i=function(e,t){if(void 0!==t)return t;const{__unstableGradientAngle:r}=e.palette.action;return void 0!==r?r:125}(e,t);let{main:a,__unstableTonalMain:s,__unstableTonalDark:l}=e.palette[o]||{};"inherit"===r&&(a="inherit",s=Bu,l=Vu);const c=[s],u=[l];if(n){const t=n,{__unstableTonalMain:r,__unstableTonalDark:o}=e.palette[t];c.push(r),u.push(o)}return{color:a,backgroundImage:`linear-gradient( ${i}deg, ${c.join(", ")} )`,"&:hover":{backgroundImage:`linear-gradient( ${i}deg, ${u.join(",")} )`}}}Hu.defaultProps=Wu;const Yu={};function Qu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];tp(t[0])&&Yu[t[0]]||(tp(t[0])&&(Yu[t[0]]=new Date),function(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];tp(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}(...t))}const Zu=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout((()=>{e.off("initialized",r)}),0),t()};e.on("initialized",r)}},Ju=(e,t,r)=>{e.loadNamespaces(t,Zu(e,r))},ep=(e,t,r,n)=>{tp(r)&&(r=[r]),r.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,Zu(e,n))},tp=e=>"string"==typeof e,rp=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,np={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},op=e=>np[e];let ip,ap={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(rp,op)};const sp={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ap={...ap,...e}}(e.options.react),(e=>{ip=e})(e)}},lp=u();class cp{addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}constructor(){this.getUsedNamespaces=()=>Object.keys(this.usedNamespaces),this.usedNamespaces={}}}const up=(e,t,r,n)=>e.getFixedT(t,r,n),pp=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:r}=t,{i18n:n,defaultNS:o}=a(lp)||{},i=r||n||ip;if(i&&!i.reportNamespaces&&(i.reportNamespaces=new cp),!i){Qu("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return tp(t)?t:"object"==typeof(r=t)&&null!==r&&tp(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var r},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}i.options.react&&void 0!==i.options.react.wait&&Qu("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...ap,...i.options.react,...t},{useSuspense:l,keyPrefix:c}=s;let u=e||o||i.options&&i.options.defaultNS;u=tp(u)?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const m=(i.isInitialized||i.initializedStoreOnce)&&u.every((e=>function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;const a=(e,r)=>{const n=t.services.backendConnector.state[`${e}|${r}`];return-1===n||2===n};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(n,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(n,e)||o&&!a(i,e)))}(e,t,r):(Qu("i18n.languages were undefined or empty",t.languages),!0)}(e,i,s))),g=((e,t,r,n)=>p(up(e,t,r,n),[e,t,r,n]))(i,t.lng||null,"fallback"===s.nsMode?u:u[0],c),y=()=>g,b=()=>up(i,t.lng||null,"fallback"===s.nsMode?u:u[0],c),[v,_]=d(y);let x=u.join();t.lng&&(x=`${t.lng}${x}`);const w=(e=>{const t=f();return h((()=>{t.current=e}),[e,void 0]),t.current})(x),S=f(!0);h((()=>{const{bindI18n:e,bindI18nStore:r}=s;S.current=!0,m||l||(t.lng?ep(i,t.lng,u,(()=>{S.current&&_(b)})):Ju(i,u,(()=>{S.current&&_(b)}))),m&&w&&w!==x&&S.current&&_(b);const n=()=>{S.current&&_(b)};return e&&i&&i.on(e,n),r&&i&&i.store.on(r,n),()=>{S.current=!1,e&&i&&e.split(" ").forEach((e=>i.off(e,n))),r&&i&&r.split(" ").forEach((e=>i.store.off(e,n)))}}),[i,x]),h((()=>{S.current&&m&&_(y)}),[i,c,m]);const k=[v,i,m];if(k.t=v,k.i18n=i,k.ready=m,m)return k;if(!m&&!l)return k;throw new Promise((e=>{t.lng?ep(i,t.lng,u,(()=>e())):Ju(i,u,(()=>e()))}))};function dp(e){if("undefined"==typeof window)return e;const t=n.useRef(null);return n.useLayoutEffect((()=>{t.current=e})),n.useCallback(((...e)=>{var r;null===(r=t.current)||void 0===r||r.call(t,...e)}),[])}const fp={},hp={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function mp({isOpen:e,anchorEl:t,anchorPosition:r,close:n,popupId:o,onMouseLeave:i,disableAutoFocus:a,_openEventType:s}){return{id:o,anchorEl:t,anchorPosition:r,anchorReference:"contextmenu"===s?"anchorPosition":"anchorEl",open:e,onClose:n,onMouseLeave:i,...a&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function gp(e,t){const{anchorEl:r,_childPopupState:n}=t;return yp(r,e)||yp(function(e,{popupId:t}){if(!t)return null;const r="function"==typeof e.getRootNode?e.getRootNode():document;return"function"==typeof r.getElementById?r.getElementById(t):null}(e,t),e)||null!=n&&gp(e,n)}function yp(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}let bp=0;var vp,_p=({popupId:e,...t})=>function({parentPopupState:e,popupId:t,variant:r,disableAutoFocus:n}){const o=f(!0);h((()=>(o.current=!0,()=>{o.current=!1})),[]);const[i,a]=d(hp),s=p((e=>{o.current&&a(e)}),[]),l=p((e=>s((t=>({...t,setAnchorElUsed:!0,anchorEl:e??void 0})))),[]),c=dp((e=>(i.isOpen?g(e):u(e),i))),u=dp((t=>{const n=t instanceof Element?void 0:t,o=t instanceof Element?t:(null==t?void 0:t.currentTarget)instanceof Element?t.currentTarget:void 0;if("touchstart"===(null==n?void 0:n.type))return void s((e=>({...e,_deferNextOpen:!0})));const i=null==n?void 0:n.clientX,a=null==n?void 0:n.clientY,l="number"==typeof i&&"number"==typeof a?{left:i,top:a}:void 0,c=i=>{if(t||i.setAnchorElUsed||"dialog"===r||fp.missingEventOrAnchorEl||(fp.missingEventOrAnchorEl=!0,console.error("[material-ui-popup-state] WARNING","eventOrAnchorEl should be defined if setAnchorEl is not used")),e){if(!e.isOpen)return i;setTimeout((()=>e._setChildPopupState(x)))}const a={...i,isOpen:!0,anchorPosition:l,hovered:"mouseover"===(null==n?void 0:n.type)||i.hovered,focused:"focus"===(null==n?void 0:n.type)||i.focused,_openEventType:null==n?void 0:n.type};return null!=n&&n.currentTarget?i.setAnchorElUsed||(a.anchorEl=null==n?void 0:n.currentTarget):o&&(a.anchorEl=o),a};s((e=>e._deferNextOpen?(setTimeout((()=>s(c)),0),{...e,_deferNextOpen:!1}):c(e)))})),m=t=>{const{_childPopupState:r}=t;return setTimeout((()=>{null==r||r.close(),null==e||e._setChildPopupState(null)})),{...t,isOpen:!1,hovered:!1,focused:!1}},g=dp((e=>{const t=e instanceof Element?void 0:e;"touchstart"!==(null==t?void 0:t.type)?s((e=>e._deferNextClose?(setTimeout((()=>s(m)),0),{...e,_deferNextClose:!1}):m(e))):s((e=>({...e,_deferNextClose:!0})))})),y=p(((e,t)=>{e?u(t):g(t)}),[]),b=dp((e=>{const{relatedTarget:t}=e;s((e=>!e.hovered||t instanceof Element&&gp(t,x)?e:e.focused?{...e,hovered:!1}:m(e)))})),v=dp((e=>{if(!e)return;const{relatedTarget:t}=e;s((e=>!e.focused||t instanceof Element&&gp(t,x)?e:e.hovered?{...e,focused:!1}:m(e)))})),_=p((e=>s((t=>({...t,_childPopupState:e})))),[]),x={...i,setAnchorEl:l,popupId:t,variant:r,open:u,close:g,toggle:c,setOpen:y,onBlur:v,onMouseLeave:b,disableAutoFocus:n??Boolean(i.hovered||i.focused),_setChildPopupState:_};return x}({...t,popupId:f(e||"eui-popup-"+bp++).current}),xp={exports:{}},wp={};function Sp(){if(vp)return wp;vp=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case n:case i:case o:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case f:case d:case a:return e;default:return h}}case r:return h}}}return e=Symbol.for("react.module.reference"),wp.ContextConsumer=s,wp.ContextProvider=a,wp.Element=t,wp.ForwardRef=c,wp.Fragment=n,wp.Lazy=f,wp.Memo=d,wp.Portal=r,wp.Profiler=i,wp.StrictMode=o,wp.Suspense=u,wp.SuspenseList=p,wp.isAsyncMode=function(){return!1},wp.isConcurrentMode=function(){return!1},wp.isContextConsumer=function(e){return m(e)===s},wp.isContextProvider=function(e){return m(e)===a},wp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},wp.isForwardRef=function(e){return m(e)===c},wp.isFragment=function(e){return m(e)===n},wp.isLazy=function(e){return m(e)===f},wp.isMemo=function(e){return m(e)===d},wp.isPortal=function(e){return m(e)===r},wp.isProfiler=function(e){return m(e)===i},wp.isStrictMode=function(e){return m(e)===o},wp.isSuspense=function(e){return m(e)===u},wp.isSuspenseList=function(e){return m(e)===p},wp.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===u||t===p||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},wp.typeOf=m,wp}var kp,Op,Cp={};function Ep(){return kp||(kp=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case n:case i:case o:case u:case p:return m;default:var g=m&&m.$$typeof;switch(g){case l:case s:case c:case f:case d:case a:return g;default:return h}}case r:return h}}}e=Symbol.for("react.module.reference");var g=s,y=a,b=t,v=c,_=n,x=f,w=d,S=r,k=i,O=o,C=u,E=p,T=!1,M=!1;Cp.ContextConsumer=g,Cp.ContextProvider=y,Cp.Element=b,Cp.ForwardRef=v,Cp.Fragment=_,Cp.Lazy=x,Cp.Memo=w,Cp.Portal=S,Cp.Profiler=k,Cp.StrictMode=O,Cp.Suspense=C,Cp.SuspenseList=E,Cp.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Cp.isConcurrentMode=function(e){return M||(M=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Cp.isContextConsumer=function(e){return m(e)===s},Cp.isContextProvider=function(e){return m(e)===a},Cp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Cp.isForwardRef=function(e){return m(e)===c},Cp.isFragment=function(e){return m(e)===n},Cp.isLazy=function(e){return m(e)===f},Cp.isMemo=function(e){return m(e)===d},Cp.isPortal=function(e){return m(e)===r},Cp.isProfiler=function(e){return m(e)===i},Cp.isStrictMode=function(e){return m(e)===o},Cp.isSuspense=function(e){return m(e)===u},Cp.isSuspenseList=function(e){return m(e)===p},Cp.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===u||t===p||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Cp.typeOf=m}()),Cp}function Tp(){return Op||(Op=1,"production"===process.env.NODE_ENV?xp.exports=Sp():xp.exports=Ep()),xp.exports}var Mp=Tp();function Rp(e){return"string"==typeof e}function Ip(e,t,r){return void 0===e||Rp(e)?t:_({},t,{ownerState:_({},t.ownerState,r)})}const Np={disableDefaultClasses:!1},Pp=n.createContext(Np);function Ap(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function $p(e,t,r){return"function"==typeof e?e(t,r):e}function Lp(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}function Dp(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=te(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=_({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=_({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Ap(_({},o,n)),s=Lp(n),l=Lp(o),c=t(a),u=te(null==c?void 0:c.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),p=_({},null==c?void 0:c.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),d=_({},c,r,l,s);return u.length>0&&(d.className=u),Object.keys(p).length>0&&(d.style=p),{props:d,internalRef:c.ref}}"production"!==process.env.NODE_ENV&&(Pp.displayName="ClassNameConfiguratorContext");const jp=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Fp(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=v(e,jp),s=i?{}:$p(n,o),{props:l,internalRef:c}=Dp(_({},a,{externalSlotProps:s}));return Ip(r,_({},l,{ref:Ca(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const zp=n.createContext({});function Bp(e){return jo("MuiList",e)}"production"!==process.env.NODE_ENV&&(zp.displayName="ListContext"),zi("MuiList",["root","padding","dense","subheader"]);const Vp=["children","className","component","dense","disablePadding","subheader"],Up=Si("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>_({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),qp=n.forwardRef((function(r,o){const i=Ri({props:r,name:"MuiList"}),{children:a,className:s,component:l="ul",dense:c=!1,disablePadding:u=!1,subheader:p}=i,d=v(i,Vp),f=n.useMemo((()=>({dense:c})),[c]),h=_({},i,{component:l,dense:c,disablePadding:u}),m=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return re({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Bp,t)})(h);return e(zp.Provider,{value:f,children:t(Up,_({as:l,className:te(m.root,s),ref:o,ownerState:h},d,{children:[p,a]}))})}));"production"!==process.env.NODE_ENV&&(qp.propTypes={children:J.node,classes:J.object,className:J.string,component:J.elementType,dense:J.bool,disablePadding:J.bool,subheader:J.node,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object])});const Wp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Hp(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Kp(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Gp(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Xp(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Gp(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Yp=n.forwardRef((function(t,r){const{actions:o,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:p,variant:d="selectedMenu"}=t,f=v(t,Wp),h=n.useRef(null),m=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Qi((()=>{i&&h.current.focus()}),[i]),n.useImperativeHandle(o,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&r){const r=`${Fa(ba(e))}px`;h.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,h.current.style.width=`calc(100% + ${r})`}return h.current}})),[]);const g=Ca(h,r);let y=-1;n.Children.forEach(s,((e,t)=>{n.isValidElement(e)?("production"!==process.env.NODE_ENV&&Mp.isFragment(e)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===y)&&(y=t),y===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(y+=1,y>=s.length&&(y=-1))):y===t&&(y+=1,y>=s.length&&(y=-1))}));const b=n.Children.map(s,((e,t)=>{if(t===y){const t={};return a&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),n.cloneElement(e,t)}return e}));return e(qp,_({role:"menu",ref:g,className:l,onKeyDown:e=>{const t=h.current,r=e.key,n=ba(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Xp(t,n,u,c,Hp);else if("ArrowUp"===r)e.preventDefault(),Xp(t,n,u,c,Kp);else if("Home"===r)e.preventDefault(),Xp(t,null,u,c,Hp);else if("End"===r)e.preventDefault(),Xp(t,null,u,c,Kp);else if(1===r.length){const o=m.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&Gp(n,o);o.previousKeyMatched&&(s||Xp(t,n,!1,c,Hp,o))?e.preventDefault():o.previousKeyMatched=!1}p&&p(e)},tabIndex:i?0:-1},f,{children:b}))}));function Qp(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}"production"!==process.env.NODE_ENV&&(Yp.propTypes={autoFocus:J.bool,autoFocusItem:J.bool,children:J.node,className:J.string,disabledItemsFocusable:J.bool,disableListWrap:J.bool,onKeyDown:J.func,variant:J.oneOf(["menu","selectedMenu"])});const Zp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Jp(e){return`scale(${e}, ${e**2})`}const ed={entering:{opacity:1,transform:Jp(1)},entered:{opacity:1,transform:"none"}},td="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rd=n.forwardRef((function(t,r){const{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:p,onExit:d,onExited:f,onExiting:h,style:m,timeout:g="auto",TransitionComponent:y=qs}=t,b=v(t,Zp),x=Ra(),w=n.useRef(),S=as(),k=n.useRef(null),O=Ca(k,a.ref,r),C=e=>t=>{if(e){const r=k.current;void 0===t?e(r):e(r,t)}},E=C(p),T=C(((e,t)=>{const{duration:r,delay:n,easing:o}=Qp({style:m,timeout:g,easing:s},{mode:"enter"});let i;"auto"===g?(i=S.transitions.getAutoHeightDuration(e.clientHeight),w.current=i):i=r,e.style.transition=[S.transitions.create("opacity",{duration:i,delay:n}),S.transitions.create("transform",{duration:td?i:.666*i,delay:n,easing:o})].join(","),c&&c(e,t)})),M=C(u),R=C(h),I=C((e=>{const{duration:t,delay:r,easing:n}=Qp({style:m,timeout:g,easing:s},{mode:"exit"});let o;"auto"===g?(o=S.transitions.getAutoHeightDuration(e.clientHeight),w.current=o):o=t,e.style.transition=[S.transitions.create("opacity",{duration:o,delay:r}),S.transitions.create("transform",{duration:td?o:.666*o,delay:td?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Jp(.75),d&&d(e)})),N=C(f);return e(y,_({appear:i,in:l,nodeRef:k,onEnter:T,onEntered:M,onEntering:E,onExit:I,onExited:N,onExiting:R,addEndListener:e=>{"auto"===g&&x.start(w.current||0,e),o&&o(k.current,e)},timeout:"auto"===g?null:g},b,{children:(e,t)=>n.cloneElement(a,_({style:_({opacity:0,transform:Jp(.75),visibility:"exited"!==e||l?void 0:"hidden"},ed[e],m,a.props.style),ref:O},t))}))}));function nd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function od(e){return parseInt(va(e).getComputedStyle(e).paddingRight,10)||0}function id(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&nd(e,o)}))}function ad(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}"production"!==process.env.NODE_ENV&&(rd.propTypes={addEndListener:J.func,appear:J.bool,children:ca.isRequired,easing:J.oneOfType([J.shape({enter:J.string,exit:J.string}),J.string]),in:J.bool,onEnter:J.func,onEntered:J.func,onEntering:J.func,onExit:J.func,onExited:J.func,onExiting:J.func,style:J.object,timeout:J.oneOfType([J.oneOf(["auto"]),J.number,J.shape({appear:J.number,enter:J.number,exit:J.number})])}),rd.muiSupportAuto=!0;const sd=new class{add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&nd(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);id(t,e.mount,e.modalRef,n,!0);const o=ad(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=ad(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=function(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=ba(e);return t.body===e?va(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Fa(ba(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${od(n)+e}px`;const t=ba(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${od(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=ba(n).body;else{const t=n.parentElement,r=va(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=ad(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&nd(e.modalRef,t),id(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&nd(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}};const ld=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cd(e){const t=[],r=[];return Array.from(e.querySelectorAll(ld)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function ud(){return!0}function pd(r){const{children:o,disableAutoFocus:i=!1,disableEnforceFocus:a=!1,disableRestoreFocus:s=!1,getTabbable:l=cd,isEnabled:c=ud,open:u}=r,p=n.useRef(!1),d=n.useRef(null),f=n.useRef(null),h=n.useRef(null),m=n.useRef(null),g=n.useRef(!1),y=n.useRef(null),b=Ca(o.ref,y),v=n.useRef(null);n.useEffect((()=>{u&&y.current&&(g.current=!i)}),[i,u]),n.useEffect((()=>{if(!u||!y.current)return;const e=ba(y.current);return y.current.contains(e.activeElement)||(y.current.hasAttribute("tabIndex")||("production"!==process.env.NODE_ENV&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join("\n")),y.current.setAttribute("tabIndex","-1")),g.current&&y.current.focus()),()=>{s||(h.current&&h.current.focus&&(p.current=!0,h.current.focus()),h.current=null)}}),[u]),n.useEffect((()=>{if(!u||!y.current)return;const e=ba(y.current),t=t=>{v.current=t,!a&&c()&&"Tab"===t.key&&e.activeElement===y.current&&t.shiftKey&&(p.current=!0,f.current&&f.current.focus())},r=()=>{const t=y.current;if(null===t)return;if(!e.hasFocus()||!c()||p.current)return void(p.current=!1);if(t.contains(e.activeElement))return;if(a&&e.activeElement!==d.current&&e.activeElement!==f.current)return;if(e.activeElement!==m.current)m.current=null;else if(null!==m.current)return;if(!g.current)return;let r=[];if(e.activeElement!==d.current&&e.activeElement!==f.current||(r=l(y.current)),r.length>0){var n,o;const e=Boolean((null==(n=v.current)?void 0:n.shiftKey)&&"Tab"===(null==(o=v.current)?void 0:o.key)),t=r[0],i=r[r.length-1];"string"!=typeof t&&"string"!=typeof i&&(e?i.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[i,a,s,c,u,l]);const _=e=>{null===h.current&&(h.current=e.relatedTarget),g.current=!0};return t(n.Fragment,{children:[e("div",{tabIndex:u?0:-1,onFocus:_,ref:d,"data-testid":"sentinelStart"}),n.cloneElement(o,{ref:b,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),g.current=!0,m.current=e.target;const t=o.props.onFocus;t&&t(e)}}),e("div",{tabIndex:u?0:-1,onFocus:_,ref:f,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(pd.propTypes={children:ca,disableAutoFocus:J.bool,disableEnforceFocus:J.bool,disableRestoreFocus:J.bool,getTabbable:J.func,isEnabled:J.func,open:J.bool.isRequired}),"production"!==process.env.NODE_ENV&&(pd.propTypes=da(pd.propTypes));const dd=n.forwardRef((function(t,r){const{children:o,container:i,disablePortal:a=!1}=t,[s,l]=n.useState(null),c=Ca(n.isValidElement(o)?o.ref:null,r);if(Qi((()=>{a||l(function(e){return"function"==typeof e?e():e}(i)||document.body)}),[i,a]),Qi((()=>{if(s&&!a)return _a(r,s),()=>{_a(r,null)}}),[r,s,a]),a){if(n.isValidElement(o)){const e={ref:c};return n.cloneElement(o,e)}return e(n.Fragment,{children:o})}return e(n.Fragment,{children:s?y.createPortal(o,s):s})}));"production"!==process.env.NODE_ENV&&(dd.propTypes={children:J.node,container:J.oneOfType([fa,J.func]),disablePortal:J.bool}),"production"!==process.env.NODE_ENV&&(dd.propTypes=da(dd.propTypes));const fd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],hd={entering:{opacity:1},entered:{opacity:1}},md=n.forwardRef((function(t,r){const o=as(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:u,onEnter:p,onEntered:d,onEntering:f,onExit:h,onExited:m,onExiting:g,style:y,timeout:b=i,TransitionComponent:x=qs}=t,w=v(t,fd),S=n.useRef(null),k=Ca(S,l.ref,r),O=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},C=O(f),E=O(((e,t)=>{const r=Qp({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=o.transitions.create("opacity",r),e.style.transition=o.transitions.create("opacity",r),p&&p(e,t)})),T=O(d),M=O(g),R=O((e=>{const t=Qp({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=o.transitions.create("opacity",t),e.style.transition=o.transitions.create("opacity",t),h&&h(e)})),I=O(m);return e(x,_({appear:s,in:u,nodeRef:S,onEnter:E,onEntered:T,onEntering:C,onExit:R,onExited:I,onExiting:M,addEndListener:e=>{a&&a(S.current,e)},timeout:b},w,{children:(e,t)=>n.cloneElement(l,_({style:_({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},hd[e],y,l.props.style),ref:k},t))}))}));function gd(e){return jo("MuiBackdrop",e)}"production"!==process.env.NODE_ENV&&(md.propTypes={addEndListener:J.func,appear:J.bool,children:ca.isRequired,easing:J.oneOfType([J.shape({enter:J.string,exit:J.string}),J.string]),in:J.bool,onEnter:J.func,onEntered:J.func,onEntering:J.func,onExit:J.func,onExited:J.func,onExiting:J.func,style:J.object,timeout:J.oneOfType([J.number,J.shape({appear:J.number,enter:J.number,exit:J.number})])}),zi("MuiBackdrop",["root","invisible"]);const yd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bd=Si("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>_({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),vd=n.forwardRef((function(t,r){var n,o,i;const a=Ri({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:p={},invisible:d=!1,open:f,slotProps:h={},slots:m={},TransitionComponent:g=md,transitionDuration:y}=a,b=v(a,yd),x=_({},a,{component:c,invisible:d}),w=(e=>{const{classes:t,invisible:r}=e;return re({root:["root",r&&"invisible"]},gd,t)})(x),S=null!=(n=h.root)?n:p.root;return e(g,_({in:f,timeout:y},b,{children:e(bd,_({"aria-hidden":!0},S,{as:null!=(o=null!=(i=m.root)?i:u.Root)?o:c,className:te(w.root,l,null==S?void 0:S.className),ownerState:_({},x,null==S?void 0:S.ownerState),classes:w,ref:r,children:s}))}))}));function _d(e){return jo("MuiModal",e)}"production"!==process.env.NODE_ENV&&(vd.propTypes={children:J.node,classes:J.object,className:J.string,component:J.elementType,components:J.shape({Root:J.elementType}),componentsProps:J.shape({root:J.object}),invisible:J.bool,open:J.bool.isRequired,slotProps:J.shape({root:J.object}),slots:J.shape({root:J.elementType}),sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),TransitionComponent:J.elementType,transitionDuration:J.oneOfType([J.number,J.shape({appear:J.number,enter:J.number,exit:J.number})])}),zi("MuiModal",["root","hidden","backdrop"]);const xd=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],wd=Si("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>_({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Sd=Si(vd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),kd=n.forwardRef((function(r,o){var i,a,s,l,c,u;const p=Ri({name:"MuiModal",props:r}),{BackdropComponent:d=Sd,BackdropProps:f,className:h,closeAfterTransition:m=!1,children:g,container:y,component:b,components:x={},componentsProps:w={},disableAutoFocus:S=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:O=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:T=!1,hideBackdrop:M=!1,keepMounted:R=!1,onBackdropClick:I,open:N,slotProps:P,slots:A}=p,$=v(p,xd),L=_({},p,{closeAfterTransition:m,disableAutoFocus:S,disableEnforceFocus:k,disableEscapeKeyDown:O,disablePortal:C,disableRestoreFocus:E,disableScrollLock:T,hideBackdrop:M,keepMounted:R}),{getRootProps:D,getBackdropProps:j,getTransitionProps:F,portalRef:z,isTopModal:B,exited:V,hasTransition:U}=function(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=sd,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:u,open:p,rootRef:d}=e,f=n.useRef({}),h=n.useRef(null),m=n.useRef(null),g=Ca(m,d),[y,b]=n.useState(!p),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const w=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),S=()=>{i.mount(w(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},k=Oa((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ba(h.current).body;i.add(w(),e),m.current&&S()})),O=n.useCallback((()=>i.isTopModal(w())),[i]),C=Oa((e=>{h.current=e,e&&(p&&O()?S():m.current&&nd(m.current,x))})),E=n.useCallback((()=>{i.remove(w(),x)}),[x,i]);n.useEffect((()=>()=>{E()}),[E]),n.useEffect((()=>{p?k():v&&a||E()}),[p,E,v,a,k]);const T=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&O()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Ap(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=_({},r,t);return _({role:"presentation"},n,{onKeyDown:T(n),ref:g})},getBackdropProps:(e={})=>_({"aria-hidden":!0},e,{onClick:M(e),open:p}),getTransitionProps:()=>({onEnter:ma((()=>{b(!1),s&&s()}),null==c?void 0:c.props.onEnter),onExited:ma((()=>{b(!0),l&&l(),a&&E()}),null==c?void 0:c.props.onExited)}),rootRef:g,portalRef:C,isTopModal:O,exited:y,hasTransition:v}}(_({},L,{rootRef:o})),q=_({},L,{exited:V}),W=(e=>{const{open:t,exited:r,classes:n}=e;return re({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},_d,n)})(q),H={};if(void 0===g.props.tabIndex&&(H.tabIndex="-1"),U){const{onEnter:e,onExited:t}=F();H.onEnter=e,H.onExited=t}const K=null!=(i=null!=(a=null==A?void 0:A.root)?a:x.Root)?i:wd,G=null!=(s=null!=(l=null==A?void 0:A.backdrop)?l:x.Backdrop)?s:d,X=null!=(c=null==P?void 0:P.root)?c:w.root,Y=null!=(u=null==P?void 0:P.backdrop)?u:w.backdrop,Q=Fp({elementType:K,externalSlotProps:X,externalForwardedProps:$,getSlotProps:D,additionalProps:{ref:o,as:b},ownerState:q,className:te(h,null==X?void 0:X.className,null==W?void 0:W.root,!q.open&&q.exited&&(null==W?void 0:W.hidden))}),Z=Fp({elementType:G,externalSlotProps:Y,additionalProps:f,getSlotProps:e=>j(_({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:te(null==Y?void 0:Y.className,null==f?void 0:f.className,null==W?void 0:W.backdrop),ownerState:q});return R||N||U&&!V?e(dd,{ref:z,container:y,disablePortal:C,children:t(K,_({},Q,{children:[!M&&d?e(G,_({},Z)):null,e(pd,{disableEnforceFocus:k,disableAutoFocus:S,disableRestoreFocus:E,isEnabled:B,open:N,children:n.cloneElement(g,H)})]}))}):null}));function Od(e){return jo("MuiPopover",e)}"production"!==process.env.NODE_ENV&&(kd.propTypes={BackdropComponent:J.elementType,BackdropProps:J.object,children:ca.isRequired,classes:J.object,className:J.string,closeAfterTransition:J.bool,component:J.elementType,components:J.shape({Backdrop:J.elementType,Root:J.elementType}),componentsProps:J.shape({backdrop:J.oneOfType([J.func,J.object]),root:J.oneOfType([J.func,J.object])}),container:J.oneOfType([fa,J.func]),disableAutoFocus:J.bool,disableEnforceFocus:J.bool,disableEscapeKeyDown:J.bool,disablePortal:J.bool,disableRestoreFocus:J.bool,disableScrollLock:J.bool,hideBackdrop:J.bool,keepMounted:J.bool,onBackdropClick:J.func,onClose:J.func,onTransitionEnter:J.func,onTransitionExited:J.func,open:J.bool.isRequired,slotProps:J.shape({backdrop:J.oneOfType([J.func,J.object]),root:J.oneOfType([J.func,J.object])}),slots:J.shape({backdrop:J.elementType,root:J.elementType}),sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object])}),zi("MuiPopover",["root","paper"]);const Cd=["onEntering"],Ed=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Td=["slotProps"];function Md(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Rd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Id(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Nd(e){return"function"==typeof e?e():e}const Pd=Si(kd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ad=Si(us,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),$d=n.forwardRef((function(t,r){var o,i,a;const s=Ri({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:d="anchorEl",children:f,className:h,container:m,elevation:g=8,marginThreshold:y=16,open:b,PaperProps:x={},slots:w,slotProps:S,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:O=rd,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:T=!1}=s,M=v(s.TransitionProps,Cd),R=v(s,Ed),I=null!=(o=null==S?void 0:S.paper)?o:x,N=n.useRef(),P=Ca(N,I.ref),A=_({},s,{anchorOrigin:u,anchorReference:d,elevation:g,marginThreshold:y,externalPaperSlotProps:I,transformOrigin:k,TransitionComponent:O,transitionDuration:C,TransitionProps:M}),$=(e=>{const{classes:t}=e;return re({root:["root"],paper:["paper"]},Od,t)})(A),L=n.useCallback((()=>{if("anchorPosition"===d)return"production"!==process.env.NODE_ENV&&(p||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),p;const e=Nd(c),t=e&&1===e.nodeType?e:ba(N.current).body,r=t.getBoundingClientRect();if("production"!==process.env.NODE_ENV){const e=t.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}return{top:r.top+Md(r,u.vertical),left:r.left+Rd(r,u.horizontal)}}),[c,u.horizontal,u.vertical,p,d]),D=n.useCallback((e=>({vertical:Md(e,k.vertical),horizontal:Rd(e,k.horizontal)})),[k.horizontal,k.vertical]),j=n.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=D(t);if("none"===d)return{top:null,left:null,transformOrigin:Id(r)};const n=L();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,l=va(Nd(c)),u=l.innerHeight-y,p=l.innerWidth-y;if(null!==y&&o<y){const e=o-y;o-=e,r.vertical+=e}else if(null!==y&&a>u){const e=a-u;o-=e,r.vertical+=e}if("production"!==process.env.NODE_ENV&&t.height>u&&t.height&&u&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${t.height-u}px).`,"Please consider adding a `max-height` to improve the user-experience."].join("\n")),null!==y&&i<y){const e=i-y;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Id(r)}}),[c,d,L,D,y]),[F,z]=n.useState(b),B=n.useCallback((()=>{const e=N.current;if(!e)return;const t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,z(!0)}),[j]);n.useEffect((()=>(T&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B))),[c,T,B]),n.useEffect((()=>{b&&B()})),n.useImperativeHandle(l,(()=>b?{updatePosition:()=>{B()}}:null),[b,B]),n.useEffect((()=>{if(!b)return;const e=ga((()=>{B()})),t=va(c);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[c,b,B]);let V=C;"auto"!==C||O.muiSupportAuto||(V=void 0);const U=m||(c?ba(Nd(c)).body:void 0),q=null!=(i=null==w?void 0:w.root)?i:Pd,W=null!=(a=null==w?void 0:w.paper)?a:Ad,H=Fp({elementType:W,externalSlotProps:_({},I,{style:F?I.style:_({},I.style,{opacity:0})}),additionalProps:{elevation:g,ref:P},ownerState:A,className:te($.paper,null==I?void 0:I.className)}),K=Fp({elementType:q,externalSlotProps:(null==S?void 0:S.root)||{},externalForwardedProps:R,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:U,open:b},ownerState:A,className:te($.root,h)}),{slotProps:G}=K,X=v(K,Td);return e(q,_({},X,!Rp(q)&&{slotProps:G,disableScrollLock:T},{children:e(O,_({appear:!0,in:b,onEntering:(e,t)=>{E&&E(e,t),B()},onExited:()=>{z(!1)},timeout:V},M,{children:e(W,_({},H,{children:f}))}))}))}));function Ld(e){return jo("MuiMenu",e)}"production"!==process.env.NODE_ENV&&($d.propTypes={action:ha,anchorEl:Li(J.oneOfType([fa,J.func]),(e=>{if(e.open&&(!e.anchorReference||"anchorEl"===e.anchorReference)){const t=Nd(e.anchorEl);if(!t||1!==t.nodeType)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join("\n"));{const e=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}}return null})),anchorOrigin:J.shape({horizontal:J.oneOfType([J.oneOf(["center","left","right"]),J.number]).isRequired,vertical:J.oneOfType([J.oneOf(["bottom","center","top"]),J.number]).isRequired}),anchorPosition:J.shape({left:J.number.isRequired,top:J.number.isRequired}),anchorReference:J.oneOf(["anchorEl","anchorPosition","none"]),children:J.node,classes:J.object,className:J.string,container:J.oneOfType([fa,J.func]),disableScrollLock:J.bool,elevation:$i,marginThreshold:J.number,onClose:J.func,open:J.bool.isRequired,PaperProps:J.shape({component:ua}),slotProps:J.shape({paper:J.oneOfType([J.func,J.object]),root:J.oneOfType([J.func,J.object])}),slots:J.shape({paper:J.elementType,root:J.elementType}),sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),transformOrigin:J.shape({horizontal:J.oneOfType([J.oneOf(["center","left","right"]),J.number]).isRequired,vertical:J.oneOfType([J.oneOf(["bottom","center","top"]),J.number]).isRequired}),TransitionComponent:J.elementType,transitionDuration:J.oneOfType([J.oneOf(["auto"]),J.number,J.shape({appear:J.number,enter:J.number,exit:J.number})]),TransitionProps:J.object}),zi("MuiMenu",["root","paper","list"]);const Dd=["onEntering"],jd=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Fd={vertical:"top",horizontal:"right"},zd={vertical:"top",horizontal:"left"},Bd=Si($d,{shouldForwardProp:e=>wi(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vd=Si(Ad,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ud=Si(Yp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),qd=n.forwardRef((function(t,r){var o,i;const a=Ri({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:l,className:c,disableAutoFocusItem:u=!1,MenuListProps:p={},onClose:d,open:f,PaperProps:h={},PopoverClasses:m,transitionDuration:g="auto",TransitionProps:{onEntering:y}={},variant:b="selectedMenu",slots:x={},slotProps:w={}}=a,S=v(a.TransitionProps,Dd),k=v(a,jd),O=Ga(),C=_({},a,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:p,onEntering:y,PaperProps:h,transitionDuration:g,TransitionProps:S,variant:b}),E=(e=>{const{classes:t}=e;return re({root:["root"],paper:["paper"],list:["list"]},Ld,t)})(C),T=s&&!u&&f,M=n.useRef(null);let R=-1;n.Children.map(l,((e,t)=>{n.isValidElement(e)&&("production"!==process.env.NODE_ENV&&Mp.isFragment(e)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===R)&&(R=t))}));const I=null!=(o=x.paper)?o:Vd,N=null!=(i=w.paper)?i:h,P=Fp({elementType:x.root,externalSlotProps:w.root,ownerState:C,className:[E.root,c]}),A=Fp({elementType:I,externalSlotProps:N,ownerState:C,className:E.paper});return e(Bd,_({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?Fd:zd,slots:{paper:I,root:x.root},slotProps:{root:P,paper:A},open:f,ref:r,transitionDuration:g,TransitionProps:_({onEntering:(e,t)=>{M.current&&M.current.adjustStyleForScrollbar(e,{direction:O?"rtl":"ltr"}),y&&y(e,t)}},S),ownerState:C},k,{classes:m,children:e(Ud,_({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:M,autoFocus:s&&(-1===R||u),autoFocusItem:T,variant:b},p,{className:te(E.list,p.className),children:l}))}))}));"production"!==process.env.NODE_ENV&&(qd.propTypes={anchorEl:J.oneOfType([fa,J.func]),autoFocus:J.bool,children:J.node,classes:J.object,className:J.string,disableAutoFocusItem:J.bool,MenuListProps:J.object,onClose:J.func,open:J.bool.isRequired,PaperProps:J.object,PopoverClasses:J.object,slotProps:J.shape({paper:J.oneOfType([J.func,J.object]),root:J.oneOfType([J.func,J.object])}),slots:J.shape({paper:J.elementType,root:J.elementType}),sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),transitionDuration:J.oneOfType([J.oneOf(["auto"]),J.number,J.shape({appear:J.number,enter:J.number,exit:J.number})]),TransitionProps:J.object,variant:J.oneOf(["menu","selectedMenu"])});var Wd=o.forwardRef(((e,t)=>{const{direction:r}=as(),n={...e};return"rtl"===r&&(n.anchorOrigin?.horizontal&&(n.anchorOrigin={...n.anchorOrigin,horizontal:"left"===n.anchorOrigin.horizontal?"right":"left"}),n.transformOrigin?.horizontal&&(n.transformOrigin={...n.transformOrigin,horizontal:"left"===n.transformOrigin.horizontal?"right":"left"})),o.createElement($d,{...n,ref:t})}));const Hd={elevation:6},Kd=o.forwardRef(((e,t)=>o.createElement(qd,{as:Wd,...Hd,...e,ref:t})));Kd.defaultProps=Hd;var Gd=Kd;function Xd(e){return jo("MuiListItemIcon",e)}const Yd=zi("MuiListItemIcon",["root","alignItemsFlexStart"]),Qd=["className"],Zd=Si("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>_({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Jd=n.forwardRef((function(t,r){const o=Ri({props:t,name:"MuiListItemIcon"}),{className:i}=o,a=v(o,Qd),s=_({},o,{alignItems:n.useContext(zp).alignItems}),l=(e=>{const{alignItems:t,classes:r}=e;return re({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Xd,r)})(s);return e(Zd,_({className:te(l.root,i),ownerState:s,ref:r},a))}));function ef(e){return jo("MuiListItemText",e)}"production"!==process.env.NODE_ENV&&(Jd.propTypes={children:J.node,classes:J.object,className:J.string,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object])});const tf=zi("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),rf=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],nf=Si("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${tf.primary}`]:t.primary},{[`& .${tf.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((({ownerState:e})=>_({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),of=n.forwardRef((function(r,o){const i=Ri({props:r,name:"MuiListItemText"}),{children:a,className:s,disableTypography:l=!1,inset:c=!1,primary:u,primaryTypographyProps:p,secondary:d,secondaryTypographyProps:f}=i,h=v(i,rf),{dense:m}=n.useContext(zp);let g=null!=u?u:a,y=d;const b=_({},i,{disableTypography:l,inset:c,primary:!!g,secondary:!!y,dense:m}),x=(e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:i}=e;return re({root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},ef,t)})(b);return null==g||g.type===Is||l||(g=e(Is,_({variant:m?"body2":"body1",className:x.primary,component:null!=p&&p.variant?void 0:"span",display:"block"},p,{children:g}))),null==y||y.type===Is||l||(y=e(Is,_({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:y}))),t(nf,_({className:te(x.root,s),ownerState:b,ref:o},h,{children:[g,y]}))}));function af(e){return jo("MuiMenuItem",e)}"production"!==process.env.NODE_ENV&&(of.propTypes={children:J.node,classes:J.object,className:J.string,disableTypography:J.bool,inset:J.bool,primary:J.node,primaryTypographyProps:J.object,secondary:J.node,secondaryTypographyProps:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object])});const sf=zi("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),lf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],cf=Si(ml,{shouldForwardProp:e=>wi(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>_({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${lu.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${lu.inset}`]:{marginLeft:52},[`& .${tf.root}`]:{marginTop:0,marginBottom:0},[`& .${tf.inset}`]:{paddingLeft:36},[`& .${Yd.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&_({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Yd.root} svg`]:{fontSize:"1.25rem"}})))),uf=n.forwardRef((function(t,r){const o=Ri({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:p="menuitem",tabIndex:d,className:f}=o,h=v(o,lf),m=n.useContext(zp),g=n.useMemo((()=>({dense:s||m.dense||!1,disableGutters:c})),[m.dense,s,c]),y=n.useRef(null);Qi((()=>{i&&(y.current?y.current.focus():"production"!==process.env.NODE_ENV&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))}),[i]);const b=_({},o,{dense:g.dense,divider:l,disableGutters:c}),x=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return _({},a,re({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},af,a))})(o),w=Ca(y,r);let S;return o.disabled||(S=void 0!==d?d:-1),e(zp.Provider,{value:g,children:e(cf,_({ref:w,role:p,tabIndex:S,component:a,focusVisibleClassName:te(x.focusVisible,u),className:te(x.root,f)},h,{ownerState:b,classes:x}))})}));"production"!==process.env.NODE_ENV&&(uf.propTypes={autoFocus:J.bool,children:J.node,classes:J.object,className:J.string,component:J.elementType,dense:J.bool,disabled:J.bool,disableGutters:J.bool,divider:J.bool,focusVisibleClassName:J.string,role:J.string,selected:J.bool,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),tabIndex:J.number});var pf=o.forwardRef(((e,t)=>o.createElement(uf,{...e,ref:t}))),df=o.forwardRef(((e,t)=>o.createElement(Jd,{...e,ref:t}))),ff=o.forwardRef(((e,t)=>o.createElement(of,{...e,ref:t}))),hf=n.forwardRef(((e,t)=>n.createElement(ou,{viewBox:"0 0 24 24",...e,ref:t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 4C14 3.58579 14.3358 3.25 14.75 3.25H19.75C20.1642 3.25 20.5 3.58579 20.5 4V9C20.5 9.41421 20.1642 9.75 19.75 9.75C19.3358 9.75 19 9.41421 19 9V5.81066L10.2803 14.5303C9.98744 14.8232 9.51256 14.8232 9.21967 14.5303C8.92678 14.2374 8.92678 13.7626 9.21967 13.4697L17.9393 4.75H14.75C14.3358 4.75 14 4.41421 14 4ZM3.80546 7.05546C4.32118 6.53973 5.02065 6.25 5.75 6.25H10.75C11.1642 6.25 11.5 6.58579 11.5 7C11.5 7.41421 11.1642 7.75 10.75 7.75H5.75C5.41848 7.75 5.10054 7.8817 4.86612 8.11612C4.6317 8.35054 4.5 8.66848 4.5 9V18C4.5 18.3315 4.6317 18.6495 4.86612 18.8839C5.10054 19.1183 5.41848 19.25 5.75 19.25H14.75C15.0815 19.25 15.3995 19.1183 15.6339 18.8839C15.8683 18.6495 16 18.3315 16 18V13C16 12.5858 16.3358 12.25 16.75 12.25C17.1642 12.25 17.5 12.5858 17.5 13V18C17.5 18.7293 17.2103 19.4288 16.6945 19.9445C16.1788 20.4603 15.4793 20.75 14.75 20.75H5.75C5.02065 20.75 4.32118 20.4603 3.80546 19.9445C3.28973 19.4288 3 18.7293 3 18V9C3 8.27065 3.28973 7.57118 3.80546 7.05546Z"}))));const mf={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class gf{init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||mf,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new gf(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new gf(this.logger,e)}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}}var yf=new gf;class bf{on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach((e=>{let[t,n]=e;for(let e=0;e<n;e++)t(...r)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((t=>{let[n,o]=t;for(let t=0;t<o;t++)n.apply(n,[e,...r])}))}constructor(){this.observers={}}}const vf=()=>{let e,t;const r=new Promise(((r,n)=>{e=r,t=n}));return r.resolve=e,r.reject=t,r},_f=e=>null==e?"":""+e,xf=/###/g,wf=e=>e&&e.indexOf("###")>-1?e.replace(xf,"."):e,Sf=e=>!e||"string"==typeof e,kf=(e,t,r)=>{const n="string"!=typeof t?t:t.split(".");let o=0;for(;o<n.length-1;){if(Sf(e))return{};const t=wf(n[o]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return Sf(e)?{}:{obj:e,k:wf(n[o])}},Of=(e,t,r)=>{const{obj:n,k:o}=kf(e,t,Object);if(void 0!==n||1===t.length)return void(n[o]=r);let i=t[t.length-1],a=t.slice(0,t.length-1),s=kf(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=kf(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=r},Cf=(e,t)=>{const{obj:r,k:n}=kf(e,t);if(r)return r[n]},Ef=(e,t,r)=>{for(const n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"==typeof e[n]||e[n]instanceof String||"string"==typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):Ef(e[n],t[n],r):e[n]=t[n]);return e},Tf=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Mf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Rf=e=>"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>Mf[e])):e,If=[" ",",","?","!",";"],Nf=new class{getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}}(20),Pf=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let e=0;e<n.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let a=e;a<n.length;++a)if(a!==e&&(i+=r),i+=n[a],t=o[i],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<n.length-1)continue;e+=a-e+1;break}o=t}return o},Af=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class $f extends bf{addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],r&&(Array.isArray(r)?a.push(...r):"string"==typeof r&&o?a.push(...r.split(o)):a.push(r)));const s=Cf(this.data,a);return!s&&!t&&!r&&e.indexOf(".")>-1&&(e=a[0],t=a[1],r=a.slice(2).join(".")),s||!i||"string"!=typeof r?s:Pf(this.data&&this.data[e]&&this.data[e][t],r,o)}addResource(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),Of(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}addResources(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const n in r)("string"==typeof r[n]||Array.isArray(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=r,r=t,t=a[1]),this.addNamespaces(t);let s=Cf(this.data,a)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?Ef(s,r,o):s={...s,...r},Of(this.data,a,s),i.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}}var Lf={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,r,n,o))})),t}};const Df={};class jf extends bf{changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,r)=>{t=t||"",r=r||"";const n=If.filter((e=>t.indexOf(e)<0&&r.indexOf(e)<0));if(0===n.length)return!0;const o=Nf.getRegExp(`(${n.map((e=>"?"===e?"\\?":e)).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(r);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,r,n));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};const i=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${s}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${i}`}return n?{res:i,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:i}const u=this.resolve(e,t);let p=u&&u.res;const d=u&&u.usedKey||i,f=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(p),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&p&&"string"!=typeof p&&"boolean"!=typeof p&&"number"!=typeof p&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof m||!Array.isArray(p))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,p,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return n?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(o){const e=Array.isArray(p),r=e?[]:{},n=e?f:d;for(const e in p)if(Object.prototype.hasOwnProperty.call(p,e)){const i=`${n}${o}${e}`;r[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),r[e]===i&&(r[e]=p[e])}p=r}}else if(g&&"string"==typeof m&&Array.isArray(p))p=p.join(m),p&&(p=this.extendTranslation(p,e,t,r));else{let n=!1,a=!1;const c=void 0!==t.count&&"string"!=typeof t.count,d=jf.hasDefaultValue(t),f=c?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",m=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),g=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${f}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(p)&&d&&(n=!0,p=g),this.isValidLookup(p)||(a=!0,p=i);const y=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:p,b=d&&g!==p&&this.options.updateMissing;if(a||n||b){if(this.logger.log(b?"updateKey":"missingKey",l,s,i,b?g:p),o){const e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t<r.length;t++)e.push(r[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const n=(e,r,n)=>{const o=d&&n!==p?n:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,r,o,b,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,r,o,b,t),this.emit("missingKey",e,s,r,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{const r=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&r.indexOf(`${this.options.pluralSeparator}zero`)<0&&r.push(`${this.options.pluralSeparator}zero`),r.forEach((r=>{n([e],i+r,t[`defaultValue${r}`]||g)}))})):n(e,i,g))}p=this.extendTranslation(p,e,t,u,r),a&&p===i&&this.options.appendNamespaceToMissingKey&&(p=`${s}:${i}`),(a||n)&&this.options.parseMissingKeyHandler&&(p="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${i}`:i,n?p:void 0):this.options.parseMissingKeyHandler(p))}return n?(u.res=p,u.usedParams=this.getUsedParamsDetails(t),u):p}extendTranslation(e,t,r,n,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const a="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language||n.usedLng,r),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return o&&o[0]===n[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${t[0]}`),null):i.translate(...n,t)}),r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,s="string"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=Lf.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let t,r,n,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),l=s.key;r=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==a.count&&"string"!=typeof a.count,p=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,f=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(i=e,!Df[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(Df[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((r=>{if(this.isValidLookup(t))return;o=r;const i=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,l,r,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(r,a.count,a));const t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.push(l+e),a.ordinal&&0===e.indexOf(n)&&i.push(l+e.replace(n,this.options.pluralSeparator)),p&&i.push(l+t)),d){const r=`${l}${this.options.contextSeparator}${a.context}`;i.push(r),u&&(i.push(r+e),a.ordinal&&0===e.indexOf(n)&&i.push(r+e.replace(n,this.options.pluralSeparator)),p&&i.push(r+t))}}let s;for(;s=i.pop();)this.isValidLookup(t)||(n=s,t=this.getResource(r,e,s,a))})))}))})),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&"string"!=typeof e.replace;let n=r?e.replace:e;if(r&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!r){n={...n};for(const e of t)delete n[e]}return n}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r,n;super(),r=e,n=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((e=>{r[e]&&(n[e]=r[e])})),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=yf.create("translator")}}const Ff=e=>e.charAt(0).toUpperCase()+e.slice(1);class zf{getScriptPartFromCode(e){if(!(e=Af(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=Af(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map((e=>e.toLowerCase())):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Ff(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Ff(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=Ff(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const r=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(r)||(t=r)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find((e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((e=>{n.indexOf(e)<0&&o(this.formatLanguageCode(e))})),n}constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yf.create("languageUtils")}}let Bf=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Vf={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const Uf=["v1","v2","v3"],qf=["v4"],Wf={zero:0,one:1,two:2,few:3,many:4,other:5};class Hf{addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=Af("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:n});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const i=new Intl.PluralRules(r,{type:n});return this.pluralRulesCache[o]=i,i}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(((e,t)=>Wf[e]-Wf[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):r.numbers.map((r=>this.getSuffix(e,r,t))):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.getRule(e,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let n=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));const o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Uf.includes(this.options.compatibilityJSON)}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=yf.create("pluralResolver"),this.options.compatibilityJSON&&!qf.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return Bf.forEach((t=>{t.lngs.forEach((r=>{e[r]={numbers:t.nr,plurals:Vf[t.fc]}}))})),e})(),this.pluralRulesCache={}}}const Kf=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=((e,t,r)=>{const n=Cf(e,r);return void 0!==n?n:Cf(t,r)})(e,t,r);return!i&&o&&"string"==typeof r&&(i=Pf(e,r,n),void 0===i&&(i=Pf(t,r,n))),i},Gf=e=>e.replace(/\$/g,"$$$$");class Xf{init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:o,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:p,nestingPrefixEscaped:d,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:Rf,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=o?Tf(o):i||"{{",this.suffix=a?Tf(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=p?Tf(p):d||Tf("$t("),this.nestingSuffix=f?Tf(f):h||Tf(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let o,i,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const o=Kf(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,r,{...n,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(Kf(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,r,{...n,...t,interpolationkey:i})};this.resetRegExp();const c=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,u=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Gf(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Gf(this.escape(e)):Gf(e)}].forEach((t=>{for(a=0;o=t.regex.exec(e);){const r=o[1].trim();if(i=l(r),void 0===i)if("function"==typeof c){const t=c(e,o,n);i="string"==typeof t?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else{if(u){i=o[0];continue}this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=_f(i));const s=t.safeValue(i);if(e=e.replace(o[0],s),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(e,t)=>{const r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;const n=e.split(new RegExp(`${r}[ ]*{`));let i=`{${n[1]}`;e=n[0],i=this.interpolate(i,o);const a=i.match(/'/g),s=i.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];o={...i},o=o.replace&&"string"!=typeof o.replace?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let l=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){const e=r[1].split(this.formatSeparator).map((e=>e.trim()));r[1]=e.shift(),s=e,l=!0}if(n=t(a.call(this,r[1].trim(),o),o),n&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=_f(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),l&&(n=s.reduce(((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:r[1].trim()})),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=yf.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}}const Yf=e=>{const t={};return(r,n,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=n+JSON.stringify(i);let s=t[a];return s||(s=e(Af(n),o),t[a]=s),s(r)}};class Qf{init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Yf(t)}format(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find((e=>e.indexOf(")")>-1))){const e=o.findIndex((e=>e.indexOf(")")>-1));o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}return o.reduce(((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);"currency"===t&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach((e=>{if(e){const[t,...n]=e.split(":"),o=n.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();r[i]||(r[i]=o),"false"===o&&(r[i]=!1),"true"===o&&(r[i]=!0),isNaN(o)||(r[i]=parseInt(o,10))}}))}return{formatName:t,formatOptions:r}})(t);if(this.formats[o]){let t=e;try{const a=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},s=a.locale||a.lng||n.locale||n.lng||r;t=this.formats[o](e,s,{...i,...n,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e}),e)}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=yf.create("formatter"),this.options=e,this.formats={number:Yf(((e,t)=>{const r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)})),currency:Yf(((e,t)=>{const r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)})),datetime:Yf(((e,t)=>{const r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)})),relativetime:Yf(((e,t)=>{const r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")})),list:Yf(((e,t)=>{const r=new Intl.ListFormat(e,{...t});return e=>r.format(e)}))},this.init(e)}}class Zf extends bf{queueLoad(e,t,r,n){const o={},i={},a={},s={};return e.forEach((e=>{let n=!0;t.forEach((t=>{const a=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,n=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))})),n||(a[e]=!0)})),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,r){const n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),!t&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const a={};this.queue.forEach((r=>{((e,t,r)=>{const{obj:n,k:o}=kf(e,t,Object);n[o]=n[o]||[],n[o].push(r)})(r.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((e=>{a[e]||(a[e]={});const t=r.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:o,callback:i});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&n<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,r,n+1,2*o,i)}),o):i(a,s)},s=this.backend[r].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const r=s(e,t);r&&"function"==typeof r.then?r.then((e=>a(null,e))).catch(a):a(null,r)}catch(e){a(e)}}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const o=this.queueLoad(e,t,r,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=e.split("|"),n=r[0],o=r[1];this.read(n,o,"read",void 0,void 0,((r,i)=>{r&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,r),!r&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,i),this.loaded(e,r,i)}))}saveMissing(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=r&&""!==r){if(this.backend&&this.backend.create){const s={...i,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,r,n,s):l(e,t,r,n),o&&"function"==typeof o.then?o.then((e=>a(null,e))).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,r,n,a,s)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=yf.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}}const Jf=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const r=e[3]||e[2];Object.keys(r).forEach((e=>{t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),eh=e=>("string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),th=()=>{};class rh extends bf{init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=Jf();this.options={...n,...this.options,...eh(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?yf.init(o(this.modules.logger),this.options):yf.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=Qf);const r=new zf(this.options);this.store=new $f(this.options.resources,this.options);const i=this.services;i.logger=yf,i.resourceStore=this.store,i.languageUtils=r,i.pluralResolver=new Hf(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new Xf(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Zf(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit(t,...n)})),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new jf(this.services,this.options),this.translator.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit(t,...n)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,r||(r=th),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const i=vf(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:th;const r="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],n=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};r?n(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>n(e))),this.options.preload&&this.options.preload.forEach((e=>n(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,r){const n=vf();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=th),this.services.backendConnector.reload(e,t,(e=>{n.resolve(),r(e)})),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Lf.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;const n=vf();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((function(){return r.t(...arguments)})),t&&t(e,(function(){return r.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const r="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||o(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,(e=>{i(e,r)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),n}getFixedT(e,t,r){var n=this;const o=function(e,t){let i;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];i=n.options.overloadTranslationOptionHandler([e,t].concat(s))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||r||o.keyPrefix);const c=n.options.keySeparator||".";let u;return u=i.keyPrefix&&Array.isArray(e)?e.map((e=>`${i.keyPrefix}${c}${e}`)):i.keyPrefix?`${i.keyPrefix}${c}${e}`:e,n.t(u,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const i=(e,t)=>{const r=this.services.backendConnector.state[`${e}|${t}`];return-1===r||0===r||2===r};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(r,e)||n&&!i(o,e)))}loadNamespaces(e,t){const r=vf();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=vf();"string"==typeof e&&(e=[e]);const n=this.options.preload||[],o=e.filter((e=>n.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return o.length?(this.options.preload=n.concat(o),this.loadResources((e=>{r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new zf(Jf());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new rh(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:th;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},o=new rh(n);return void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e)),["store","services","language"].forEach((e=>{o[e]=this[e]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new $f(this.store.data,n),o.services.resourceStore=o.store),o.translator=new jf(o.services,n),o.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];o.emit(e,...r)})),o.init(n,t),o.translator.options=n,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var r;if(super(),this.options=eh(e),this.services={},this.logger=yf,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((e=>{"function"==typeof r[e]&&(r[e]=r[e].bind(r))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}}const nh=rh.createInstance();nh.createInstance=rh.createInstance;const oh=nh.createInstance();var ih;oh.use((ih=(e,t)=>import(`./locales/${e}/${t}.json`),{type:"backend",init:function(e,t,r){},read:function(e,t,r){if(ih.length<3)try{var n=ih(e,t);n&&"function"==typeof n.then?n.then((function(e){return r(null,e&&e.default||e)})).catch(r):r(null,n)}catch(e){r(e)}else ih(e,t)}})).use(sp).init({lng:"en",fallbackLng:"en",ns:"common",defaultNS:"common",interpolation:{escapeValue:!1},react:{useSuspense:!0}});var ah=class{subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}},sh="undefined"==typeof window||"Deno"in globalThis;function lh(){}function ch(e){return"number"==typeof e&&e>=0&&e!==1/0}function uh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ph(e,t){return"function"==typeof e?e(t):e}function dh(e,t){return"function"==typeof e?e(t):e}function fh(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a)if(n){if(t.queryHash!==mh(a,t.options))return!1}else if(!yh(t.queryKey,a))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function hh(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(gh(t.options.mutationKey)!==gh(i))return!1}else if(!yh(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function mh(e,t){return(t?.queryKeyHashFn||gh)(e)}function gh(e){return JSON.stringify(e,((e,t)=>xh(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t))}function yh(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((r=>!yh(e[r],t[r])))}function bh(e,t){if(e===t)return e;const r=_h(e)&&_h(t);if(r||xh(e)&&xh(t)){const n=r?e:Object.keys(e),o=n.length,i=r?t:Object.keys(t),a=i.length,s=r?[]:{};let l=0;for(let o=0;o<a;o++){const a=r?o:i[o];(!r&&n.includes(a)||r)&&void 0===e[a]&&void 0===t[a]?(s[a]=void 0,l++):(s[a]=bh(e[a],t[a]),s[a]===e[a]&&void 0!==e[a]&&l++)}return o===a&&l===o?e:s}return t}function vh(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function _h(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function xh(e){if(!wh(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!wh(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function wh(e){return"[object Object]"===Object.prototype.toString.call(e)}function Sh(e,t,r){if("function"==typeof r.structuralSharing)return r.structuralSharing(e,t);if(!1!==r.structuralSharing){if("production"!==process.env.NODE_ENV)try{JSON.stringify(e),JSON.stringify(t)}catch(e){console.error(`StructuralSharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${e}`)}return bh(e,t)}return t}function kh(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Oh(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Ch=Symbol();function Eh(e,t){return"production"!==process.env.NODE_ENV&&e.queryFn===Ch&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Ch?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function Th(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Mh,Rh,Ih,Nh=0;function Ph(e){return"__private_"+Nh+++"_"+e}var Ah=new(Mh=Ph("_focused"),Rh=Ph("_cleanup"),Ih=Ph("_setup"),class extends ah{onSubscribe(){Th(this,Rh)[Rh]||this.setEventListener(Th(this,Ih)[Ih])}onUnsubscribe(){this.hasListeners()||(null==Th(this,Rh)[Rh]||Th(this,Rh)[Rh].call(this),Th(this,Rh)[Rh]=void 0)}setEventListener(e){Th(this,Ih)[Ih]=e,null==Th(this,Rh)[Rh]||Th(this,Rh)[Rh].call(this),Th(this,Rh)[Rh]=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){Th(this,Mh)[Mh]!==e&&(Th(this,Mh)[Mh]=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){return"boolean"==typeof Th(this,Mh)[Mh]?Th(this,Mh)[Mh]:"hidden"!==globalThis.document?.visibilityState}constructor(){super(),Object.defineProperty(this,Mh,{writable:!0,value:void 0}),Object.defineProperty(this,Rh,{writable:!0,value:void 0}),Object.defineProperty(this,Ih,{writable:!0,value:void 0}),Th(this,Ih)[Ih]=e=>{if(!sh&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}});function $h(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Lh,Dh,jh,Fh=0;function zh(e){return"__private_"+Fh+++"_"+e}var Bh=new(Lh=zh("_online"),Dh=zh("_cleanup"),jh=zh("_setup"),class extends ah{onSubscribe(){$h(this,Dh)[Dh]||this.setEventListener($h(this,jh)[jh])}onUnsubscribe(){this.hasListeners()||(null==$h(this,Dh)[Dh]||$h(this,Dh)[Dh].call(this),$h(this,Dh)[Dh]=void 0)}setEventListener(e){$h(this,jh)[jh]=e,null==$h(this,Dh)[Dh]||$h(this,Dh)[Dh].call(this),$h(this,Dh)[Dh]=e(this.setOnline.bind(this))}setOnline(e){$h(this,Lh)[Lh]!==e&&($h(this,Lh)[Lh]=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return $h(this,Lh)[Lh]}constructor(){super(),Object.defineProperty(this,Lh,{writable:!0,value:void 0}),Object.defineProperty(this,Dh,{writable:!0,value:void 0}),Object.defineProperty(this,jh,{writable:!0,value:void 0}),$h(this,Lh)[Lh]=!0,$h(this,jh)[jh]=e=>{if(!sh&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}});function Vh(e){return Math.min(1e3*2**e,3e4)}function Uh(e){return"online"!==(e??"online")||Bh.isOnline()}var qh=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Wh(e){return e instanceof qh}function Hh(e){let t,r,n,o=!1,i=0,a=!1;const s=new Promise(((e,t)=>{r=e,n=t})),l=()=>Ah.isFocused()&&("always"===e.networkMode||Bh.isOnline())&&e.canRun(),c=()=>Uh(e.networkMode)&&e.canRun(),u=n=>{a||(a=!0,e.onSuccess?.(n),t?.(),r(n))},p=r=>{a||(a=!0,e.onError?.(r),t?.(),n(r))},d=()=>new Promise((r=>{t=e=>{(a||l())&&r(e)},e.onPause?.()})).then((()=>{t=void 0,a||e.onContinue?.()})),f=()=>{if(a)return;let t;const r=0===i?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch((t=>{if(a)return;const r=e.retry??(sh?0:3),n=e.retryDelay??Vh,s="function"==typeof n?n(i,t):n,c=!0===r||"number"==typeof r&&i<r||"function"==typeof r&&r(i,t);var u;!o&&c?(i++,e.onFail?.(i,t),(u=s,new Promise((e=>{setTimeout(e,u)}))).then((()=>l()?void 0:d())).then((()=>{o?p(t):f()}))):p(t)}))};return{promise:s,cancel:t=>{a||(p(new qh(t)),e.abort?.())},continue:()=>(t?.(),s),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1},canStart:c,start:()=>(c()?f():d().then(f),s)}}var Kh=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=e=>setTimeout(e,0);const i=n=>{t?e.push(n):o((()=>{r(n)}))};return{batch:i=>{let a;t++;try{a=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o((()=>{n((()=>{t.forEach((e=>{r(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}();function Gh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Xh,Yh=0;function Qh(e){return"__private_"+Yh+++"_"+e}var Zh=(Xh=Qh("_gcTimeout"),class{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ch(this.gcTime)&&(Gh(this,Xh)[Xh]=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(sh?1/0:3e5))}clearGcTimeout(){Gh(this,Xh)[Xh]&&(clearTimeout(Gh(this,Xh)[Xh]),Gh(this,Xh)[Xh]=void 0)}constructor(){Object.defineProperty(this,Xh,{writable:!0,value:void 0})}});function Jh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var em,tm,rm,nm,om,im,am,sm=0;function lm(e){return"__private_"+sm+++"_"+e}var cm=(em=lm("_initialState"),tm=lm("_revertState"),rm=lm("_cache"),nm=lm("_retryer"),om=lm("_defaultOptions"),im=lm("_abortSignalConsumed"),am=lm("_dispatch"),class extends Zh{get meta(){return this.options.meta}get promise(){return Jh(this,nm)[nm]?.promise}setOptions(e){this.options={...Jh(this,om)[om],...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||Jh(this,rm)[rm].remove(this)}setData(e,t){const r=Sh(this.state.data,e,this.options);return Jh(this,am)[am]({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){Jh(this,am)[am]({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=Jh(this,nm)[nm]?.promise;return Jh(this,nm)[nm]?.cancel(e),t?t.then(lh).catch(lh):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Jh(this,em)[em])}isActive(){return this.observers.some((e=>!1!==dh(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!uh(this.state.dataUpdatedAt,e)}onFocus(){const e=this.observers.find((e=>e.shouldFetchOnWindowFocus()));e?.refetch({cancelRefetch:!1}),Jh(this,nm)[nm]?.continue()}onOnline(){const e=this.observers.find((e=>e.shouldFetchOnReconnect()));e?.refetch({cancelRefetch:!1}),Jh(this,nm)[nm]?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),Jh(this,rm)[rm].notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(Jh(this,nm)[nm]&&(Jh(this,im)[im]?Jh(this,nm)[nm].cancel({revert:!0}):Jh(this,nm)[nm].cancelRetry()),this.scheduleGc()),Jh(this,rm)[rm].notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Jh(this,am)[am]({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(Jh(this,nm)[nm])return Jh(this,nm)[nm].continueRetry(),Jh(this,nm)[nm].promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(Jh(this,im)[im]=!0,r.signal)})},o={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=Eh(this.options,t),r={queryKey:this.queryKey,meta:this.meta};return n(r),Jh(this,im)[im]=!1,this.options.persister?this.options.persister(e,r,this):e(r)}};n(o),this.options.behavior?.onFetch(o,this),Jh(this,tm)[tm]=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===o.fetchOptions?.meta||Jh(this,am)[am]({type:"fetch",meta:o.fetchOptions?.meta});const i=e=>{Wh(e)&&e.silent||Jh(this,am)[am]({type:"error",error:e}),Wh(e)||(Jh(this,rm)[rm].config.onError?.(e,this),Jh(this,rm)[rm].config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Jh(this,nm)[nm]=Hh({initialPromise:t?.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{if(void 0===e)return"production"!==process.env.NODE_ENV&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),void i(new Error(`${this.queryHash} data is undefined`));try{this.setData(e)}catch(e){return void i(e)}Jh(this,rm)[rm].config.onSuccess?.(e,this),Jh(this,rm)[rm].config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:i,onFail:(e,t)=>{Jh(this,am)[am]({type:"failed",failureCount:e,error:t})},onPause:()=>{Jh(this,am)[am]({type:"pause"})},onContinue:()=>{Jh(this,am)[am]({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}),Jh(this,nm)[nm].start()}constructor(e){super(),Object.defineProperty(this,am,{value:pm}),Object.defineProperty(this,em,{writable:!0,value:void 0}),Object.defineProperty(this,tm,{writable:!0,value:void 0}),Object.defineProperty(this,rm,{writable:!0,value:void 0}),Object.defineProperty(this,nm,{writable:!0,value:void 0}),Object.defineProperty(this,om,{writable:!0,value:void 0}),Object.defineProperty(this,im,{writable:!0,value:void 0}),Jh(this,im)[im]=!1,Jh(this,om)[om]=e.defaultOptions,this.setOptions(e.options),this.observers=[],Jh(this,rm)[rm]=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,Jh(this,em)[em]=function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??Jh(this,em)[em],this.scheduleGc()}});function um(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Uh(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function pm(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...um(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return Wh(r)&&r.revert&&Jh(this,tm)[tm]?{...Jh(this,tm)[tm],fetchStatus:"idle"}:{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Kh.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),Jh(this,rm)[rm].notify({query:this,type:"updated",action:e})}))}function dm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var fm,hm=0;function mm(e){return"__private_"+hm+++"_"+e}var gm=(fm=mm("_queries"),class extends ah{build(e,t,r){const n=t.queryKey,o=t.queryHash??mh(n,t);let i=this.get(o);return i||(i=new cm({cache:this,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){dm(this,fm)[fm].has(e.queryHash)||(dm(this,fm)[fm].set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=dm(this,fm)[fm].get(e.queryHash);t&&(e.destroy(),t===e&&dm(this,fm)[fm].delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Kh.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return dm(this,fm)[fm].get(e)}getAll(){return[...dm(this,fm)[fm].values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>fh(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>fh(e,t))):t}notify(e){Kh.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Kh.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Kh.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}constructor(e={}){super(),Object.defineProperty(this,fm,{writable:!0,value:void 0}),this.config=e,dm(this,fm)[fm]=new Map}});function ym(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var bm,vm,_m,xm,wm=0;function Sm(e){return"__private_"+wm+++"_"+e}var km=(bm=Sm("_observers"),vm=Sm("_mutationCache"),_m=Sm("_retryer"),xm=Sm("_dispatch"),class extends Zh{setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){ym(this,bm)[bm].includes(e)||(ym(this,bm)[bm].push(e),this.clearGcTimeout(),ym(this,vm)[vm].notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){ym(this,bm)[bm]=ym(this,bm)[bm].filter((t=>t!==e)),this.scheduleGc(),ym(this,vm)[vm].notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){ym(this,bm)[bm].length||("pending"===this.state.status?this.scheduleGc():ym(this,vm)[vm].remove(this))}continue(){return ym(this,_m)[_m]?.continue()??this.execute(this.state.variables)}async execute(e){ym(this,_m)[_m]=Hh({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{ym(this,xm)[xm]({type:"failed",failureCount:e,error:t})},onPause:()=>{ym(this,xm)[xm]({type:"pause"})},onContinue:()=>{ym(this,xm)[xm]({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ym(this,vm)[vm].canRun(this)});const t="pending"===this.state.status,r=!ym(this,_m)[_m].canStart();try{if(!t){ym(this,xm)[xm]({type:"pending",variables:e,isPaused:r}),await(ym(this,vm)[vm].config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&ym(this,xm)[xm]({type:"pending",context:t,variables:e,isPaused:r})}const n=await ym(this,_m)[_m].start();return await(ym(this,vm)[vm].config.onSuccess?.(n,e,this.state.context,this)),await(this.options.onSuccess?.(n,e,this.state.context)),await(ym(this,vm)[vm].config.onSettled?.(n,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(n,null,e,this.state.context)),ym(this,xm)[xm]({type:"success",data:n}),n}catch(t){try{throw await(ym(this,vm)[vm].config.onError?.(t,e,this.state.context,this)),await(this.options.onError?.(t,e,this.state.context)),await(ym(this,vm)[vm].config.onSettled?.(void 0,t,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,t,e,this.state.context)),t}finally{ym(this,xm)[xm]({type:"error",error:t})}}finally{ym(this,vm)[vm].runNext(this)}}constructor(e){super(),Object.defineProperty(this,xm,{value:Om}),Object.defineProperty(this,bm,{writable:!0,value:void 0}),Object.defineProperty(this,vm,{writable:!0,value:void 0}),Object.defineProperty(this,_m,{writable:!0,value:void 0}),this.mutationId=e.mutationId,ym(this,vm)[vm]=e.mutationCache,ym(this,bm)[bm]=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}});function Om(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Kh.batch((()=>{ym(this,bm)[bm].forEach((t=>{t.onMutationUpdate(e)})),ym(this,vm)[vm].notify({mutation:this,type:"updated",action:e})}))}function Cm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Em,Tm,Mm=0;function Rm(e){return"__private_"+Mm+++"_"+e}var Im=(Em=Rm("_mutations"),Tm=Rm("_mutationId"),class extends ah{build(e,t,r){const n=new km({mutationCache:this,mutationId:++Cm(this,Tm)[Tm],options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){const t=Nm(e),r=Cm(this,Em)[Em].get(t)??[];r.push(e),Cm(this,Em)[Em].set(t,r),this.notify({type:"added",mutation:e})}remove(e){const t=Nm(e);if(Cm(this,Em)[Em].has(t)){const r=Cm(this,Em)[Em].get(t)?.filter((t=>t!==e));r&&(0===r.length?Cm(this,Em)[Em].delete(t):Cm(this,Em)[Em].set(t,r))}this.notify({type:"removed",mutation:e})}canRun(e){const t=Cm(this,Em)[Em].get(Nm(e))?.find((e=>"pending"===e.state.status));return!t||t===e}runNext(e){const t=Cm(this,Em)[Em].get(Nm(e))?.find((t=>t!==e&&t.state.isPaused));return t?.continue()??Promise.resolve()}clear(){Kh.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...Cm(this,Em)[Em].values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>hh(t,e)))}findAll(e={}){return this.getAll().filter((t=>hh(e,t)))}notify(e){Kh.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Kh.batch((()=>Promise.all(e.map((e=>e.continue().catch(lh))))))}constructor(e={}){super(),Object.defineProperty(this,Em,{writable:!0,value:void 0}),Object.defineProperty(this,Tm,{writable:!0,value:void 0}),this.config=e,Cm(this,Em)[Em]=new Map,Cm(this,Tm)[Tm]=Date.now()}});function Nm(e){return e.options.scope?.id??String(e.mutationId)}function Pm(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Am(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function $m(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Lm,Dm,jm,Fm,zm,Bm,Vm,Um,qm=0;function Wm(e){return"__private_"+qm+++"_"+e}var Hm=(Lm=Wm("_queryCache"),Dm=Wm("_mutationCache"),jm=Wm("_defaultOptions"),Fm=Wm("_queryDefaults"),zm=Wm("_mutationDefaults"),Bm=Wm("_mountCount"),Vm=Wm("_unsubscribeFocus"),Um=Wm("_unsubscribeOnline"),class{mount(){$m(this,Bm)[Bm]++,1===$m(this,Bm)[Bm]&&($m(this,Vm)[Vm]=Ah.subscribe((async e=>{e&&(await this.resumePausedMutations(),$m(this,Lm)[Lm].onFocus())})),$m(this,Um)[Um]=Bh.subscribe((async e=>{e&&(await this.resumePausedMutations(),$m(this,Lm)[Lm].onOnline())})))}unmount(){$m(this,Bm)[Bm]--,0===$m(this,Bm)[Bm]&&(null==$m(this,Vm)[Vm]||$m(this,Vm)[Vm].call(this),$m(this,Vm)[Vm]=void 0,null==$m(this,Um)[Um]||$m(this,Um)[Um].call(this),$m(this,Um)[Um]=void 0)}isFetching(e){return $m(this,Lm)[Lm].findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return $m(this,Dm)[Dm].findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return $m(this,Lm)[Lm].get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=$m(this,Lm)[Lm].build(this,r);return e.revalidateIfStale&&n.isStaleByTime(ph(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return $m(this,Lm)[Lm].findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=$m(this,Lm)[Lm].get(n.queryHash),i=o?.state.data,a=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==a)return $m(this,Lm)[Lm].build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return Kh.batch((()=>$m(this,Lm)[Lm].findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,r)]))))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return $m(this,Lm)[Lm].get(t.queryHash)?.state}removeQueries(e){const t=$m(this,Lm)[Lm];Kh.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const r=$m(this,Lm)[Lm],n={type:"active",...e};return Kh.batch((()=>(r.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(n,t))))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=Kh.batch((()=>$m(this,Lm)[Lm].findAll(e).map((e=>e.cancel(r)))));return Promise.all(n).then(lh).catch(lh)}invalidateQueries(e={},t={}){return Kh.batch((()=>{if($m(this,Lm)[Lm].findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)}))}refetchQueries(e={},t){const r={...t,cancelRefetch:t?.cancelRefetch??!0},n=Kh.batch((()=>$m(this,Lm)[Lm].findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(lh)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(n).then(lh)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=$m(this,Lm)[Lm].build(this,t);return r.isStaleByTime(ph(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(lh).catch(lh)}fetchInfiniteQuery(e){return e.behavior=(t=e.pages,{onFetch:(e,r)=>{const n=async()=>{const r=e.options,n=e.fetchOptions?.meta?.fetchMore?.direction,o=e.state.data?.pages||[],i=e.state.data?.pageParams||[],a={pages:[],pageParams:[]};let s=!1;const l=Eh(e.options,e.fetchOptions),c=async(t,r,n)=>{if(s)return Promise.reject();if(null==r&&t.pages.length)return Promise.resolve(t);const o={queryKey:e.queryKey,pageParam:r,direction:n?"backward":"forward",meta:e.options.meta};var i;i=o,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(e.signal.aborted?s=!0:e.signal.addEventListener("abort",(()=>{s=!0})),e.signal)});const a=await l(o),{maxPages:c}=e.options,u=n?Oh:kh;return{pages:u(t.pages,a,c),pageParams:u(t.pageParams,r,c)}};let u;if(n&&o.length){const e="backward"===n,t={pages:o,pageParams:i},a=(e?Am:Pm)(r,t);u=await c(t,a,e)}else{u=await c(a,i[0]??r.initialPageParam);const e=t??o.length;for(let t=1;t<e;t++){const e=Pm(r,u);if(null==e)break;u=await c(u,e)}}return u};e.options.persister?e.fetchFn=()=>e.options.persister?.(n,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r):e.fetchFn=n}}),this.fetchQuery(e);var t}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(lh).catch(lh)}resumePausedMutations(){return Bh.isOnline()?$m(this,Dm)[Dm].resumePausedMutations():Promise.resolve()}getQueryCache(){return $m(this,Lm)[Lm]}getMutationCache(){return $m(this,Dm)[Dm]}getDefaultOptions(){return $m(this,jm)[jm]}setDefaultOptions(e){$m(this,jm)[jm]=e}setQueryDefaults(e,t){$m(this,Fm)[Fm].set(gh(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...$m(this,Fm)[Fm].values()];let r={};return t.forEach((t=>{yh(e,t.queryKey)&&(r={...r,...t.defaultOptions})})),r}setMutationDefaults(e,t){$m(this,zm)[zm].set(gh(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...$m(this,zm)[zm].values()];let r={};return t.forEach((t=>{yh(e,t.mutationKey)&&(r={...r,...t.defaultOptions})})),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...$m(this,jm)[jm].queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mh(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===Ch&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...$m(this,jm)[jm].mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){$m(this,Lm)[Lm].clear(),$m(this,Dm)[Dm].clear()}constructor(e={}){Object.defineProperty(this,Lm,{writable:!0,value:void 0}),Object.defineProperty(this,Dm,{writable:!0,value:void 0}),Object.defineProperty(this,jm,{writable:!0,value:void 0}),Object.defineProperty(this,Fm,{writable:!0,value:void 0}),Object.defineProperty(this,zm,{writable:!0,value:void 0}),Object.defineProperty(this,Bm,{writable:!0,value:void 0}),Object.defineProperty(this,Vm,{writable:!0,value:void 0}),Object.defineProperty(this,Um,{writable:!0,value:void 0}),$m(this,Lm)[Lm]=e.queryCache||new gm,$m(this,Dm)[Dm]=e.mutationCache||new Im,$m(this,jm)[jm]=e.defaultOptions||{},$m(this,Fm)[Fm]=new Map,$m(this,zm)[zm]=new Map,$m(this,Bm)[Bm]=0}});function Km(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Gm,Xm,Ym,Qm,Zm,Jm,eg,tg,rg,ng,og,ig,ag,sg,lg,cg,ug,pg,dg,fg,hg,mg,gg,yg=0;function bg(e){return"__private_"+yg+++"_"+e}var vg=(Gm=bg("_client"),Xm=bg("_currentQuery"),Ym=bg("_currentQueryInitialState"),Qm=bg("_currentResult"),Zm=bg("_currentResultState"),Jm=bg("_currentResultOptions"),eg=bg("_selectError"),tg=bg("_selectFn"),rg=bg("_selectResult"),ng=bg("_lastQueryWithDefinedData"),og=bg("_staleTimeoutId"),ig=bg("_refetchIntervalId"),ag=bg("_currentRefetchInterval"),sg=bg("_trackedProps"),lg=bg("_executeFetch"),cg=bg("_updateStaleTimeout"),ug=bg("_computeRefetchInterval"),pg=bg("_updateRefetchInterval"),dg=bg("_updateTimers"),fg=bg("_clearStaleTimeout"),hg=bg("_clearRefetchInterval"),mg=bg("_updateQuery"),gg=bg("_notify"),class extends ah{bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(Km(this,Xm)[Xm].addObserver(this),_g(Km(this,Xm)[Xm],this.options)?Km(this,lg)[lg]():this.updateResult(),Km(this,dg)[dg]())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return xg(Km(this,Xm)[Xm],this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return xg(Km(this,Xm)[Xm],this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Km(this,fg)[fg](),Km(this,hg)[hg](),Km(this,Xm)[Xm].removeObserver(this)}setOptions(e,t){const r=this.options,n=Km(this,Xm)[Xm];if(this.options=Km(this,Gm)[Gm].defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof dh(this.options.enabled,Km(this,Xm)[Xm]))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Km(this,mg)[mg](),Km(this,Xm)[Xm].setOptions(this.options),r._defaulted&&!vh(this.options,r)&&Km(this,Gm)[Gm].getQueryCache().notify({type:"observerOptionsUpdated",query:Km(this,Xm)[Xm],observer:this});const o=this.hasListeners();o&&wg(Km(this,Xm)[Xm],n,this.options,r)&&Km(this,lg)[lg](),this.updateResult(t),!o||Km(this,Xm)[Xm]===n&&dh(this.options.enabled,Km(this,Xm)[Xm])===dh(r.enabled,Km(this,Xm)[Xm])&&ph(this.options.staleTime,Km(this,Xm)[Xm])===ph(r.staleTime,Km(this,Xm)[Xm])||Km(this,cg)[cg]();const i=Km(this,ug)[ug]();!o||Km(this,Xm)[Xm]===n&&dh(this.options.enabled,Km(this,Xm)[Xm])===dh(r.enabled,Km(this,Xm)[Xm])&&i===Km(this,ag)[ag]||Km(this,pg)[pg](i)}getOptimisticResult(e){const t=Km(this,Gm)[Gm].getQueryCache().build(Km(this,Gm)[Gm],e),r=this.createResult(t,e);return n=r,!vh(this.getCurrentResult(),n)&&(Km(this,Qm)[Qm]=r,Km(this,Jm)[Jm]=this.options,Km(this,Zm)[Zm]=Km(this,Xm)[Xm].state),r;var n}getCurrentResult(){return Km(this,Qm)[Qm]}trackResult(e,t){const r={};return Object.keys(e).forEach((n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),t?.(n),e[n])})})),r}trackProp(e){Km(this,sg)[sg].add(e)}getCurrentQuery(){return Km(this,Xm)[Xm]}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=Km(this,Gm)[Gm].defaultQueryOptions(e),r=Km(this,Gm)[Gm].getQueryCache().build(Km(this,Gm)[Gm],t);return r.isFetchingOptimistic=!0,r.fetch().then((()=>this.createResult(r,t)))}fetch(e){return Km(this,lg)[lg]({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),Km(this,Qm)[Qm])))}createResult(e,t){const r=Km(this,Xm)[Xm],n=this.options,o=Km(this,Qm)[Qm],i=Km(this,Zm)[Zm],a=Km(this,Jm)[Jm],s=e!==r?e.state:Km(this,Ym)[Ym],{state:l}=e;let c,u={...l},p=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&_g(e,t),a=o&&wg(e,r,t,n);(i||a)&&(u={...u,...um(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:d,errorUpdatedAt:f,status:h}=u;if(t.select&&void 0!==u.data)if(o&&u.data===i?.data&&t.select===Km(this,tg)[tg])c=Km(this,rg)[rg];else try{Km(this,tg)[tg]=t.select,c=t.select(u.data),c=Sh(o?.data,c,t),Km(this,rg)[rg]=c,Km(this,eg)[eg]=null}catch(e){Km(this,eg)[eg]=e}else c=u.data;if(void 0!==t.placeholderData&&void 0===c&&"pending"===h){let e;if(o?.isPlaceholderData&&t.placeholderData===a?.placeholderData)e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(Km(this,ng)[ng]?.state.data,Km(this,ng)[ng]):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),Km(this,eg)[eg]=null}catch(e){Km(this,eg)[eg]=e}void 0!==e&&(h="success",c=Sh(o?.data,e,t),p=!0)}Km(this,eg)[eg]&&(d=Km(this,eg)[eg],c=Km(this,rg)[rg],f=Date.now(),h="error");const m="fetching"===u.fetchStatus,g="pending"===h,y="error"===h,b=g&&m,v=void 0!==c;return{status:h,fetchStatus:u.fetchStatus,isPending:g,isSuccess:"success"===h,isError:y,isInitialLoading:b,isLoading:b,data:c,dataUpdatedAt:u.dataUpdatedAt,error:d,errorUpdatedAt:f,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:m,isRefetching:m&&!g,isLoadingError:y&&!v,isPaused:"paused"===u.fetchStatus,isPlaceholderData:p,isRefetchError:y&&v,isStale:Sg(e,t),refetch:this.refetch}}updateResult(e){const t=Km(this,Qm)[Qm],r=this.createResult(Km(this,Xm)[Xm],this.options);if(Km(this,Zm)[Zm]=Km(this,Xm)[Xm].state,Km(this,Jm)[Jm]=this.options,void 0!==Km(this,Zm)[Zm].data&&(Km(this,ng)[ng]=Km(this,Xm)[Xm]),vh(r,t))return;Km(this,Qm)[Qm]=r;const n={};!1!==e?.listeners&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!Km(this,sg)[sg].size)return!0;const n=new Set(r??Km(this,sg)[sg]);return this.options.throwOnError&&n.add("error"),Object.keys(Km(this,Qm)[Qm]).some((e=>{const r=e;return Km(this,Qm)[Qm][r]!==t[r]&&n.has(r)}))})()&&(n.listeners=!0),Km(this,gg)[gg]({...n,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Km(this,dg)[dg]()}constructor(e,t){super(),Object.defineProperty(this,lg,{value:kg}),Object.defineProperty(this,cg,{value:Og}),Object.defineProperty(this,ug,{value:Cg}),Object.defineProperty(this,pg,{value:Eg}),Object.defineProperty(this,dg,{value:Tg}),Object.defineProperty(this,fg,{value:Mg}),Object.defineProperty(this,hg,{value:Rg}),Object.defineProperty(this,mg,{value:Ig}),Object.defineProperty(this,gg,{value:Ng}),Object.defineProperty(this,Gm,{writable:!0,value:void 0}),Object.defineProperty(this,Xm,{writable:!0,value:void 0}),Object.defineProperty(this,Ym,{writable:!0,value:void 0}),Object.defineProperty(this,Qm,{writable:!0,value:void 0}),Object.defineProperty(this,Zm,{writable:!0,value:void 0}),Object.defineProperty(this,Jm,{writable:!0,value:void 0}),Object.defineProperty(this,eg,{writable:!0,value:void 0}),Object.defineProperty(this,tg,{writable:!0,value:void 0}),Object.defineProperty(this,rg,{writable:!0,value:void 0}),Object.defineProperty(this,ng,{writable:!0,value:void 0}),Object.defineProperty(this,og,{writable:!0,value:void 0}),Object.defineProperty(this,ig,{writable:!0,value:void 0}),Object.defineProperty(this,ag,{writable:!0,value:void 0}),Object.defineProperty(this,sg,{writable:!0,value:void 0}),Km(this,Xm)[Xm]=void 0,Km(this,Ym)[Ym]=void 0,Km(this,Qm)[Qm]=void 0,Km(this,sg)[sg]=new Set,this.options=t,Km(this,Gm)[Gm]=e,Km(this,eg)[eg]=null,this.bindMethods(),this.setOptions(t)}});function _g(e,t){return function(e,t){return!1!==dh(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&xg(e,t,t.refetchOnMount)}function xg(e,t,r){if(!1!==dh(t.enabled,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Sg(e,t)}return!1}function wg(e,t,r,n){return(e!==t||!1===dh(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Sg(e,r)}function Sg(e,t){return!1!==dh(t.enabled,e)&&e.isStaleByTime(ph(t.staleTime,e))}function kg(e){Km(this,mg)[mg]();let t=Km(this,Xm)[Xm].fetch(this.options,e);return e?.throwOnError||(t=t.catch(lh)),t}function Og(){Km(this,fg)[fg]();const e=ph(this.options.staleTime,Km(this,Xm)[Xm]);if(sh||Km(this,Qm)[Qm].isStale||!ch(e))return;const t=uh(Km(this,Qm)[Qm].dataUpdatedAt,e)+1;Km(this,og)[og]=setTimeout((()=>{Km(this,Qm)[Qm].isStale||this.updateResult()}),t)}function Cg(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(Km(this,Xm)[Xm]):this.options.refetchInterval)??!1}function Eg(e){Km(this,hg)[hg](),Km(this,ag)[ag]=e,!sh&&!1!==dh(this.options.enabled,Km(this,Xm)[Xm])&&ch(Km(this,ag)[ag])&&0!==Km(this,ag)[ag]&&(Km(this,ig)[ig]=setInterval((()=>{(this.options.refetchIntervalInBackground||Ah.isFocused())&&Km(this,lg)[lg]()}),Km(this,ag)[ag]))}function Tg(){Km(this,cg)[cg](),Km(this,pg)[pg](Km(this,ug)[ug]())}function Mg(){Km(this,og)[og]&&(clearTimeout(Km(this,og)[og]),Km(this,og)[og]=void 0)}function Rg(){Km(this,ig)[ig]&&(clearInterval(Km(this,ig)[ig]),Km(this,ig)[ig]=void 0)}function Ig(){const e=Km(this,Gm)[Gm].getQueryCache().build(Km(this,Gm)[Gm],this.options);if(e===Km(this,Xm)[Xm])return;const t=Km(this,Xm)[Xm];Km(this,Xm)[Xm]=e,Km(this,Ym)[Ym]=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}function Ng(e){Kh.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(Km(this,Qm)[Qm])})),Km(this,Gm)[Gm].getQueryCache().notify({query:Km(this,Xm)[Xm],type:"observerResultsUpdated"})}))}function Pg(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ag,$g,Lg,Dg,jg,Fg,zg=0;function Bg(e){return"__private_"+zg+++"_"+e}var Vg=(Ag=Bg("_client"),$g=Bg("_currentResult"),Lg=Bg("_currentMutation"),Dg=Bg("_mutateOptions"),jg=Bg("_updateResult"),Fg=Bg("_notify"),class extends ah{bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=Pg(this,Ag)[Ag].defaultMutationOptions(e),vh(this.options,t)||Pg(this,Ag)[Ag].getMutationCache().notify({type:"observerOptionsUpdated",mutation:Pg(this,Lg)[Lg],observer:this}),t?.mutationKey&&this.options.mutationKey&&gh(t.mutationKey)!==gh(this.options.mutationKey)?this.reset():"pending"===Pg(this,Lg)[Lg]?.state.status&&Pg(this,Lg)[Lg].setOptions(this.options)}onUnsubscribe(){this.hasListeners()||Pg(this,Lg)[Lg]?.removeObserver(this)}onMutationUpdate(e){Pg(this,jg)[jg](),Pg(this,Fg)[Fg](e)}getCurrentResult(){return Pg(this,$g)[$g]}reset(){Pg(this,Lg)[Lg]?.removeObserver(this),Pg(this,Lg)[Lg]=void 0,Pg(this,jg)[jg](),Pg(this,Fg)[Fg]()}mutate(e,t){return Pg(this,Dg)[Dg]=t,Pg(this,Lg)[Lg]?.removeObserver(this),Pg(this,Lg)[Lg]=Pg(this,Ag)[Ag].getMutationCache().build(Pg(this,Ag)[Ag],this.options),Pg(this,Lg)[Lg].addObserver(this),Pg(this,Lg)[Lg].execute(e)}constructor(e,t){super(),Object.defineProperty(this,jg,{value:Ug}),Object.defineProperty(this,Fg,{value:qg}),Object.defineProperty(this,Ag,{writable:!0,value:void 0}),Object.defineProperty(this,$g,{writable:!0,value:void 0}),Object.defineProperty(this,Lg,{writable:!0,value:void 0}),Object.defineProperty(this,Dg,{writable:!0,value:void 0}),Pg(this,$g)[$g]=void 0,Pg(this,Ag)[Ag]=e,this.setOptions(t),this.bindMethods(),Pg(this,jg)[jg]()}});function Ug(){const e=Pg(this,Lg)[Lg]?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};Pg(this,$g)[$g]={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}function qg(e){Kh.batch((()=>{if(Pg(this,Dg)[Dg]&&this.hasListeners()){const t=Pg(this,$g)[$g].variables,r=Pg(this,$g)[$g].context;"success"===e?.type?(Pg(this,Dg)[Dg].onSuccess?.(e.data,t,r),Pg(this,Dg)[Dg].onSettled?.(e.data,null,t,r)):"error"===e?.type&&(Pg(this,Dg)[Dg].onError?.(e.error,t,r),Pg(this,Dg)[Dg].onSettled?.(void 0,e.error,t,r))}this.listeners.forEach((e=>{e(Pg(this,$g)[$g])}))}))}var Wg=n.createContext(void 0),Hg=e=>{const t=n.useContext(Wg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Kg=({client:t,children:r})=>(n.useEffect((()=>(t.mount(),()=>{t.unmount()})),[t]),e(Wg.Provider,{value:t,children:r})),Gg=n.createContext(!1),Xg=n.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Yg(e,t){return"function"==typeof e?e(...t):!!e}function Qg(){}function Zg(e,t){return function(e,t){if("production"!==process.env.NODE_ENV&&("object"!=typeof e||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Hg(),o=n.useContext(Gg),i=n.useContext(Xg),a=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=o?"isRestoring":"optimistic",(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(a),((e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))})(a,i),(e=>{n.useEffect((()=>{e.clearReset()}),[e])})(i);const[s]=n.useState((()=>new t(r,a))),l=s.getOptimisticResult(a);if(n.useSyncExternalStore(n.useCallback((e=>{const t=o?()=>{}:s.subscribe(Kh.batchCalls(e));return s.updateResult(),t}),[s,o]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),n.useEffect((()=>{s.setOptions(a,{listeners:!1})}),[a,s]),((e,t)=>e?.suspense&&t.isPending)(a,l))throw((e,t,r)=>t.fetchOptimistic(e).catch((()=>{r.clearReset()})))(a,s,i);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&Yg(r,[e.error,n]))({result:l,errorResetBoundary:i,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw l.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(a,l),a.notifyOnChangeProps?l:s.trackResult(l)}(e,vg)}function Jg(e,t){const r=Hg(),[o]=n.useState((()=>new Vg(r,e)));n.useEffect((()=>{o.setOptions(e)}),[o,e]);const i=n.useSyncExternalStore(n.useCallback((e=>o.subscribe(Kh.batchCalls(e))),[o]),(()=>o.getCurrentResult()),(()=>o.getCurrentResult())),a=n.useCallback(((e,t)=>{o.mutate(e,t).catch(Qg)}),[o]);if(i.error&&Yg(o.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}const ey={local:{SUPPORT_FORM_URL:"https://my.stg.elementor.red/support-form/",FEEDBACK_API:"https://my.stg.elementor.red/feedback/api/v1",WHATS_NEW_API:"https://my.stg.elementor.red/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.stg.elementor.red"},development:{SUPPORT_FORM_URL:"https://my.dev.elementor.red/support-form/",FEEDBACK_API:"https://my.dev.elementor.red/feedback/api/v1",WHATS_NEW_API:"https://my.dev.elementor.red/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.dev.elementor.red"},staging:{SUPPORT_FORM_URL:"https://my.stg.elementor.red/support-form/",FEEDBACK_API:"https://my.stg.elementor.red/feedback/api/v1",WHATS_NEW_API:"https://my.stg.elementor.red/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.stg.elementor.red"},production:{SUPPORT_FORM_URL:"https://my.elementor.com/support-form/",FEEDBACK_API:"https://my.elementor.com/feedback/api/v1",WHATS_NEW_API:"https://my.elementor.com/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.elementor.com"}};var ty,ry,ny,oy;ty={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},ry=["(","?"],ny={")":["("],":":["?","?:"]},oy=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var iy={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,r){if(e)throw t;return r}};var ay={contextDelimiter:"",onMissingKey:null};function sy(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},ay)this.options[r]=void 0!==t&&r in t?t[r]:ay[r]}sy.prototype.getPluralForm=function(e,t){var r,n,o,i,a=this.pluralForms[e];return a||("function"!=typeof(o=(r=this.data[e][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(n=function(e){var t,r,n;for(t=e.split(";"),r=0;r<t.length;r++)if(0===(n=t[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=function(e){var t=function(e){for(var t,r,n,o,i=[],a=[];t=e.match(oy);){for(r=t[0],(n=e.substr(0,t.index).trim())&&i.push(n);o=a.pop();){if(ny[r]){if(ny[r][0]===o){r=ny[r][1]||r;break}}else if(ry.indexOf(o)>=0||ty[o]<ty[r]){a.push(o);break}i.push(o)}ny[r]||a.push(r),e=e.substr(t.index+r.length)}return(e=e.trim())&&i.push(e),i.concat(a.reverse())}(e);return function(e){return function(e,t){var r,n,o,i,a,s,l=[];for(r=0;r<e.length;r++){if(a=e[r],i=iy[a]){for(n=i.length,o=Array(n);n--;)o[n]=l.pop();try{s=i.apply(null,o)}catch(e){return e}}else s=t.hasOwnProperty(a)?t[a]:+a;l.push(s)}return l[0]}(t,e)}}(n),o=function(e){return+i({n:e})}),a=this.pluralForms[e]=o),a(t)},sy.prototype.dcnpgettext=function(e,t,r,n,o){var i,a,s;return i=void 0===o?0:this.getPluralForm(e,o),a=r,t&&(a=t+this.options.contextDelimiter+r),(s=this.data[e][a])&&s[i]?s[i]:(this.options.onMissingKey&&this.options.onMissingKey(r,e),0===i?r:n)};var ly={plural_forms:e=>1===e?0:1},cy=/^i18n\.(n?gettext|has_translation)(_|$)/,uy=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},py=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},dy=function(e,t){return function(r,n,o,i=10){const a=e[t];if(!py(r))return;if(!uy(n))return;if("function"!=typeof o)return void console.error("The hook callback must be a function.");if("number"!=typeof i)return void console.error("If specified, the hook priority must be a number.");const s={callback:o,priority:i,namespace:n};if(a[r]){const e=a[r].handlers;let t;for(t=e.length;t>0&&!(i>=e[t-1].priority);t--);t===e.length?e[t]=s:e.splice(t,0,s),a.__current.forEach((e=>{e.name===r&&e.currentIndex>=t&&e.currentIndex++}))}else a[r]={handlers:[s],runs:0};"hookAdded"!==r&&e.doAction("hookAdded",r,n,o,i)}},fy=function(e,t,r=!1){return function(n,o){const i=e[t];if(!py(n))return;if(!r&&!uy(o))return;if(!i[n])return 0;let a=0;if(r)a=i[n].handlers.length,i[n]={runs:i[n].runs,handlers:[]};else{const e=i[n].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===o&&(e.splice(t,1),a++,i.__current.forEach((e=>{e.name===n&&e.currentIndex>=t&&e.currentIndex--})))}return"hookRemoved"!==n&&e.doAction("hookRemoved",n,o),a}},hy=function(e,t){return function(r,n){const o=e[t];return void 0!==n?r in o&&o[r].handlers.some((e=>e.namespace===n)):r in o}},my=function(e,t,r,n){return function(o,...i){const a=e[t];a[o]||(a[o]={handlers:[],runs:0}),a[o].runs++;const s=a[o].handlers;if("production"!==process.env.NODE_ENV&&"hookAdded"!==o&&a.all&&s.push(...a.all.handlers),!s||!s.length)return r?i[0]:void 0;const l={name:o,currentIndex:0};return(n?async function(){try{a.__current.add(l);let e=r?i[0]:void 0;for(;l.currentIndex<s.length;){const t=s[l.currentIndex];e=await t.callback.apply(null,i),r&&(i[0]=e),l.currentIndex++}return r?e:void 0}finally{a.__current.delete(l)}}:function(){try{a.__current.add(l);let e=r?i[0]:void 0;for(;l.currentIndex<s.length;)e=s[l.currentIndex].callback.apply(null,i),r&&(i[0]=e),l.currentIndex++;return r?e:void 0}finally{a.__current.delete(l)}})()}},gy=function(e,t){return function(){const r=e[t],n=Array.from(r.__current);return n.at(-1)?.name??null}},yy=function(e,t){return function(r){const n=e[t];return void 0===r?n.__current.size>0:Array.from(n.__current).some((e=>e.name===r))}},by=function(e,t){return function(r){const n=e[t];if(py(r))return n[r]&&n[r].runs?n[r].runs:0}},vy=((e,t,r)=>{const n=new sy({}),o=new Set,i=()=>{o.forEach((e=>e()))},a=(e,t="default")=>{n.data[t]={...n.data[t],...e},n.data[t][""]={...ly,...n.data[t]?.[""]},delete n.pluralForms[t]},s=(e,t)=>{a(e,t),i()},l=(e="default",t,r,o,i)=>(n.data[e]||a(void 0,e),n.dcnpgettext(e,t,r,o,i)),c=e=>e||"default",u=(e,t,n)=>{let o=l(n,t,e);return r?(o=r.applyFilters("i18n.gettext_with_context",o,e,t,n),r.applyFilters("i18n.gettext_with_context_"+c(n),o,e,t,n)):o};if(r){const e=e=>{cy.test(e)&&i()};r.addAction("hookAdded","core/i18n",e),r.addAction("hookRemoved","core/i18n",e)}return{getLocaleData:(e="default")=>n.data[e],setLocaleData:s,addLocaleData:(e,t="default")=>{n.data[t]={...n.data[t],...e,"":{...ly,...n.data[t]?.[""],...e?.[""]}},delete n.pluralForms[t],i()},resetLocaleData:(e,t)=>{n.data={},n.pluralForms={},s(e,t)},subscribe:e=>(o.add(e),()=>o.delete(e)),__:(e,t)=>{let n=l(t,void 0,e);return r?(n=r.applyFilters("i18n.gettext",n,e,t),r.applyFilters("i18n.gettext_"+c(t),n,e,t)):n},_x:u,_n:(e,t,n,o)=>{let i=l(o,void 0,e,t,n);return r?(i=r.applyFilters("i18n.ngettext",i,e,t,n,o),r.applyFilters("i18n.ngettext_"+c(o),i,e,t,n,o)):i},_nx:(e,t,n,o,i)=>{let a=l(i,o,e,t,n);return r?(a=r.applyFilters("i18n.ngettext_with_context",a,e,t,n,o,i),r.applyFilters("i18n.ngettext_with_context_"+c(i),a,e,t,n,o,i)):a},isRTL:()=>"rtl"===u("ltr","text direction"),hasTranslation:(e,t,o)=>{const i=t?t+""+e:e;let a=!!n.data?.[o??"default"]?.[i];return r&&(a=r.applyFilters("i18n.has_translation",a,e,t,o),a=r.applyFilters("i18n.has_translation_"+c(o),a,e,t,o)),a}}})(0,0,new class{constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=dy(this,"actions"),this.addFilter=dy(this,"filters"),this.removeAction=fy(this,"actions"),this.removeFilter=fy(this,"filters"),this.hasAction=hy(this,"actions"),this.hasFilter=hy(this,"filters"),this.removeAllActions=fy(this,"actions",!0),this.removeAllFilters=fy(this,"filters",!0),this.doAction=my(this,"actions",!1,!1),this.doActionAsync=my(this,"actions",!1,!0),this.applyFilters=my(this,"filters",!0,!1),this.applyFiltersAsync=my(this,"filters",!0,!0),this.currentAction=gy(this,"actions"),this.currentFilter=gy(this,"filters"),this.doingAction=yy(this,"actions"),this.doingFilter=yy(this,"filters"),this.didAction=by(this,"actions"),this.didFilter=by(this,"filters")}});vy.getLocaleData.bind(vy),vy.setLocaleData.bind(vy),vy.resetLocaleData.bind(vy),vy.subscribe.bind(vy);var _y=vy.__.bind(vy);vy._x.bind(vy),vy._n.bind(vy),vy._nx.bind(vy),vy.isRTL.bind(vy),vy.hasTranslation.bind(vy);var xy=(e,t)=>{let r,n,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),o=n?r+"/"+n:r),delete e.namespace,delete e.endpoint,t({...e,path:o})};function wy(e){let t="";const r=Object.entries(e);let n;for(;n=r.shift();){let[e,o]=n;if(Array.isArray(o)||o&&o.constructor===Object){const t=Object.entries(o).reverse();for(const[n,o]of t)r.unshift([`${e}[${n}]`,o])}else void 0!==o&&(null===o&&(o=""),t+="&"+[e,String(o)].map(encodeURIComponent).join("="))}return t.substr(1)}function Sy(e){try{return decodeURIComponent(e)}catch(t){return e}}function ky(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[r,n=""]=t.split("=").filter(Boolean).map(Sy);return r&&function(e,t,r){const n=t.length,o=n-1;for(let i=0;i<n;i++){let n=t[i];!n&&Array.isArray(e)&&(n=e.length.toString()),n=["__proto__","constructor","prototype"].includes(n)?n.toUpperCase():n;const a=!isNaN(Number(t[i+1]));e[n]=i===o?r:e[n]||(a?[]:{}),Array.isArray(e[n])&&!a&&(e[n]={...e[n]}),e=e[n]}}(e,r.replace(/\]/g,"").split("["),n),e}),Object.create(null))}function Oy(e="",t){if(!t||!Object.keys(t).length)return e;const r=function(e){const t=/^\S+?(#[^\s\?]*)/.exec(e);if(t)return t[1]}(e)||"";let n=e.replace(r,"");const o=e.indexOf("?");return-1!==o&&(t=Object.assign(ky(e),t),n=n.substr(0,o)),n+"?"+wy(t)+r}function Cy(e,t){return ky(e)[t]}function Ey(e,t){return void 0!==Cy(e,t)}function Ty(e,...t){const r=e.replace(/^[^#]*/,""),n=(e=e.replace(/#.*/,"")).indexOf("?");if(-1===n)return e+r;const o=ky(e),i=e.substr(0,n);t.forEach((e=>delete o[e]));const a=wy(o);return(a?i+"?"+a:i)+r}function My(e){const t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map((e=>e.split("="))).map((e=>e.map(decodeURIComponent))).sort(((e,t)=>e[0].localeCompare(t[0]))).map((e=>e.map(encodeURIComponent))).map((e=>e.join("="))).join("&"):n}function Ry(e,t){if(t)return Promise.resolve(e.body);try{return Promise.resolve(new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}catch{return Object.entries(e.headers).forEach((([t,r])=>{"link"===t.toLowerCase()&&(e.headers[t]=r.replace(/<([^>]+)>/,((e,t)=>`<${encodeURI(t)}>`)))})),Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}}var Iy=({path:e,url:t,...r},n)=>({...r,url:t&&Oy(t,n),path:e&&Oy(e,n)}),Ny=e=>e.json?e.json():Promise.reject(e),Py=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t},Ay=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r})(e))return t(e);const r=await Hy({...Iy(e,{per_page:100}),parse:!1}),n=await Ny(r);if(!Array.isArray(n))return n;let o=Py(r);if(!o)return n;let i=[].concat(n);for(;o;){const t=await Hy({...e,path:void 0,url:o,parse:!1}),r=await Ny(t);i=i.concat(r),o=Py(t)}return i},$y=new Set(["PATCH","PUT","DELETE"]),Ly="GET";async function Dy(e){try{return await e.json()}catch{throw{code:"invalid_json",message:_y("The response is not a valid JSON response.")}}}async function jy(e,t=!0){return t?204===e.status?null:await Dy(e):e}async function Fy(e,t=!0){if(!t)throw e;throw await Dy(e)}var zy={Accept:"application/json, */*;q=0.1"},By={credentials:"include"},Vy=[(e,t)=>("string"!=typeof e.url||Ey(e.url,"_locale")||(e.url=Oy(e.url,{_locale:"user"})),"string"!=typeof e.path||Ey(e.path,"_locale")||(e.path=Oy(e.path,{_locale:"user"})),t(e)),xy,(e,t)=>{const{method:r=Ly}=e;return $y.has(r.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":r,"Content-Type":"application/json"},method:"POST"}),t(e)},Ay],Uy=e=>{const{url:t,path:r,data:n,parse:o=!0,...i}=e;let{body:a,headers:s}=e;return s={...zy,...s},n&&(a=JSON.stringify(n),s["Content-Type"]="application/json"),globalThis.fetch(t||r||window.location.href,{...By,...i,body:a,headers:s}).then((e=>e.ok?jy(e,o):Fy(e,o)),(e=>{if(e&&"AbortError"===e.name)throw e;if(!globalThis.navigator.onLine)throw{code:"offline_error",message:_y("Unable to connect. Please check your Internet connection.")};throw{code:"fetch_error",message:_y("Could not get a valid response from the server.")}}))},qy=e=>{const t=Vy.reduceRight(((e,t)=>r=>t(r,e)),Uy);return t(e).catch((t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):globalThis.fetch(qy.nonceEndpoint).then((e=>e.ok?e.text():Promise.reject(t))).then((t=>(qy.nonceMiddleware.nonce=t,qy(e))))))};qy.use=function(e){Vy.unshift(e)},qy.setFetchHandler=function(e){Uy=e},qy.createNonceMiddleware=function(e){const t=(e,r)=>{const{headers:n={}}=e;for(const o in n)if("x-wp-nonce"===o.toLowerCase()&&n[o]===t.nonce)return r(e);return r({...e,headers:{...n,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},qy.createPreloadingMiddleware=function(e){const t=Object.fromEntries(Object.entries(e).map((([e,t])=>[My(e),t])));return(e,r)=>{const{parse:n=!0}=e;let o=e.path;if(!o&&e.url){const{rest_route:t,...r}=ky(e.url);"string"==typeof t&&(o=Oy(t,r))}if("string"!=typeof o)return r(e);const i=e.method||"GET",a=My(o);if("GET"===i&&t[a]){const e=t[a];return delete t[a],Ry(e,!!n)}if("OPTIONS"===i&&t[i]&&t[i][a]){const e=t[i][a];return delete t[i][a],Ry(e,!!n)}return r(e)}},qy.createRootURLMiddleware=e=>(t,r)=>xy(t,(t=>{let n,o=t.url,i=t.path;return"string"==typeof i&&(n=e,-1!==e.indexOf("?")&&(i=i.replace("?","&")),i=i.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(i=i.replace("?","&")),o=n+i),r({...t,url:o})})),qy.fetchAllMiddleware=Ay,qy.mediaUploadMiddleware=(e,t)=>{if(!function(e){const t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);let r=0;const n=e=>(r++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>r<5?n(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject()))));return t({...e,parse:!1}).catch((t=>{if(!(t instanceof globalThis.Response))return Promise.reject(t);const r=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&r?n(r).catch((()=>!1!==e.parse?Promise.reject({code:"post_process",message:_y("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):Fy(t,e.parse)})).then((t=>jy(t,e.parse)))},qy.createThemePreviewMiddleware=e=>(t,r)=>{if("string"==typeof t.url){const r=Cy(t.url,"wp_theme_preview");void 0===r?t.url=Oy(t.url,{wp_theme_preview:e}):""===r&&(t.url=Ty(t.url,"wp_theme_preview"))}if("string"==typeof t.path){const r=Cy(t.path,"wp_theme_preview");void 0===r?t.path=Oy(t.path,{wp_theme_preview:e}):""===r&&(t.path=Ty(t.path,"wp_theme_preview"))}return r(t)};var Wy,Hy=qy;class Ky extends Error{constructor(e){super(e),this.name="APIError"}}!function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE",e.HEAD="HEAD"}(Wy||(Wy={}));const Gy="/wp/v2";class Xy{static async request({path:e,data:t,method:r="POST"}){try{const n=(window?.elementorOneSettingsData?.wpRestUrl||"/wp-json/").replace(/\/$/,""),o=window?.elementorOneSettingsData?.wpRestNonce||"";let i=`${n}${e}`;"GET"!==r||e.startsWith(Gy)||(i=Oy(i,{sb_time:(new Date).getTime()}));const a=await Hy({url:i,method:r,data:t,headers:{"X-WP-Nonce":o}});if(e.startsWith(Gy))return a;if(void 0===a?.success)return a;if(!a.success)throw new Ky(a.data?.message||"Unknown error");return a.data}catch(e){throw e instanceof Ky?e:new Ky(e?.message||"Unknown error")}}}const Yy="/elementor-one/v1";class Qy extends Xy{static async initConnect(e="new"){const t={wp_rest:window?.elementorOneSettingsData?.wpRestNonce};return"update"===e&&(t.update_redirect_uri=!0),Xy.request({method:Wy.POST,path:`${Yy}/connect/authorize`,data:t})}static async disconnect(){return Xy.request({method:Wy.POST,path:`${Yy}/connect/disconnect`,data:{wp_rest:window?.elementorOneSettingsData?.wpRestNonce}})}static async getPluginSettings(){return Xy.request({method:Wy.GET,path:`${Yy}/settings`})}static async getNotifications(e,t){return Xy.request({method:Wy.GET,path:`${Yy}/top-bar/notifications?app_name=${e}&app_version=${t}`})}static async sendFeedback(e){return Xy.request({method:Wy.POST,path:`${Yy}/top-bar/feedback`,data:e})}}var Zy;function Jy(e){const t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function eb(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function tb(e){try{const r=e.rules||e.cssRules;return r?((t=Array.from(r,rb).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function rb(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=tb(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Zy||(Zy={}));class nb{getId(e){var t;if(!e)return-1;const r=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=r?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ob({element:e,maskInputOptions:t,tagName:r,type:n,value:o,maskInputFn:i}){let a=o||"";const s=n&&ib(n);return(t[r.toLowerCase()]||s&&t[s])&&(a=i?i(a,e):"*".repeat(a.length)),a}function ib(e){return e.toLowerCase()}const ab="__rrweb_original__";function sb(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ib(t):null}function lb(e,t){var r;let n;try{n=new URL(e,window.location.href)}catch(e){return null}const o=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!==(r=null==o?void 0:o[1])&&void 0!==r?r:null}let cb=1;const ub=new RegExp("[^a-z0-9-_:]"),pb=-2;function db(){return cb++}let fb,hb;const mb=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,gb=/^(?:[a-z+]+:)?\/\//i,yb=/^www\..*/i,bb=/^(data:)([^,]*),(.*)/i;function vb(e,t){return(e||"").replace(mb,((e,r,n,o,i,a)=>{const s=n||i||a,l=r||o||"";if(!s)return e;if(gb.test(s)||yb.test(s))return`url(${l}${s}${l})`;if(bb.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s}${l})`;const c=t.split("/"),u=s.split("/");c.pop();for(const e of u)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`}))}const _b=/^[^ \t\n\r\u000c]+/,xb=/^[, \t\n\r\u000c]+/;function wb(e,t){if(!t||""===t.trim())return t;const r=e.createElement("a");return r.href=t,r.href}function Sb(){const e=document.createElement("a");return e.href="",e.href}function kb(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?wb(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;const o=e.exec(t.substring(r));return o?(n=o[0],r+=n.length,n):""}const o=[];for(;n(xb),!(r>=t.length);){let i=n(_b);if(","===i.slice(-1))i=wb(e,i.substring(0,i.length-1)),o.push(i);else{let n="";i=wb(e,i);let a=!1;for(;;){const e=t.charAt(r);if(""===e){o.push((i+n).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){r+=1,o.push((i+n).trim());break}"("===e&&(a=!0)}n+=e,r+=1}}}return o.join(", ")}(e,n):"style"===r?vb(n,Sb()):"object"===t&&"data"===r?wb(e,n):n:wb(e,n):n}function Ob(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function Cb(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&Cb(e.parentNode,t,r);for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}return!!r&&Cb(e.parentNode,t,r)}function Eb(e,t,r,n){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("string"==typeof t){if(n){if(o.closest(`.${t}`))return!0}else if(o.classList.contains(t))return!0}else if(Cb(o,t,n))return!0;if(r)if(n){if(o.closest(r))return!0}else if(o.matches(r))return!0}catch(e){}return!1}function Tb(e){return null==e?"":e.toLowerCase()}function Mb(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:i,maskTextClass:a,maskTextSelector:s,skipChild:l=!1,inlineStylesheet:c=!0,maskInputOptions:u={},maskTextFn:p,maskInputFn:d,slimDOMOptions:f,dataURLOptions:h={},inlineImages:m=!1,recordCanvas:g=!1,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:v=5e3,onStylesheetLoad:_,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:S=!1}=t;let{needsMask:k}=t,{preserveWhiteSpace:O=!0}=t;!k&&e.childNodes&&(k=Eb(e,a,s,void 0===k));const C=function(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:a,inlineStylesheet:s,maskInputOptions:l={},maskTextFn:c,maskInputFn:u,dataURLOptions:p={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m=!1}=t,g=function(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Zy.Document,childNodes:[],compatMode:e.compatMode}:{type:Zy.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Zy.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return function(e,t){const{doc:r,blockClass:n,blockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskInputFn:s,dataURLOptions:l={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:p,newlyAddedElement:d=!1,rootId:f}=t,h=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,n,o),m=function(e){if(e instanceof HTMLFormElement)return"form";const t=ib(e.tagName);return ub.test(t)?"div":t}(e);let g={};const y=e.attributes.length;for(let t=0;t<y;t++){const n=e.attributes[t];Ob(m,n.name)||(g[n.name]=kb(r,m,ib(n.name),n.value))}if("link"===m&&i){const t=Array.from(r.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=tb(t)),n&&(delete g.rel,delete g.href,g._cssText=vb(n,t.href))}if("style"===m&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=tb(e.sheet);t&&(g._cssText=vb(t,Sb()))}if("input"===m||"textarea"===m||"select"===m){const t=e.value,r=e.checked;"radio"!==g.type&&"checkbox"!==g.type&&"submit"!==g.type&&"button"!==g.type&&t?g.value=ob({element:e,type:sb(e),tagName:m,value:t,maskInputOptions:a,maskInputFn:s}):r&&(g.checked=r)}if("option"===m&&(e.selected&&!a.select?g.selected=!0:delete g.selected),"canvas"===m&&u)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){const o=t.getImageData,i=ab in o?o[ab]:o;if(new Uint32Array(i.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(g.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),r=document.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(l.type,l.quality)&&(g.rr_dataURL=t)}if("img"===m&&c){fb||(fb=r.createElement("canvas"),hb=fb.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const o=()=>{t.removeEventListener("load",o);try{fb.width=t.naturalWidth,fb.height=t.naturalHeight,hb.drawImage(t,0,0),g.rr_dataURL=fb.toDataURL(l.type,l.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?g.crossOrigin=n:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if("audio"===m||"video"===m){const t=g;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}if(d||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),h){const{width:t,height:r}=e.getBoundingClientRect();g={class:g.class,rr_width:`${t}px`,rr_height:`${r}px`}}let b;"iframe"!==m||p(g.src)||(e.contentDocument||(g.rr_src=g.src),delete g.src);try{customElements.get(m)&&(b=!0)}catch(e){}return{type:Zy.Element,tagName:m,attributes:g,childNodes:[],isSVG:(v=e,Boolean("svg"===v.tagName||v.ownerSVGElement)||void 0),needBlock:h,rootId:f,isCustom:b};var v}(e,{doc:r,blockClass:o,blockSelector:i,inlineStylesheet:s,maskInputOptions:l,maskInputFn:u,dataURLOptions:p,inlineImages:d,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m,rootId:g});case e.TEXT_NODE:return function(e,t){var r;const{needsMask:n,maskTextFn:o,rootId:i}=t,a=e.parentNode&&e.parentNode.tagName;let s=e.textContent;const l="STYLE"===a||void 0,c="SCRIPT"===a||void 0;if(l&&s){try{e.nextSibling||e.previousSibling||(null===(r=e.parentNode.sheet)||void 0===r?void 0:r.cssRules)&&(s=tb(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}s=vb(s,Sb())}return c&&(s="SCRIPT_PLACEHOLDER"),!l&&!c&&s&&n&&(s=o?o(s,e.parentElement):s.replace(/[\S]/g,"*")),{type:Zy.Text,textContent:s||"",isStyle:l,rootId:i}}(e,{needsMask:a,maskTextFn:c,rootId:g});case e.CDATA_SECTION_NODE:return{type:Zy.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:Zy.Comment,textContent:e.textContent||"",rootId:g};default:return!1}}(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:k,inlineStylesheet:c,maskInputOptions:u,maskTextFn:p,maskInputFn:d,dataURLOptions:h,inlineImages:m,recordCanvas:g,keepIframeSrcFn:w,newlyAddedElement:S});if(!C)return console.warn(e,"not serialized"),null;let E;E=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===Zy.Comment)return!0;if(e.type===Zy.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===lb(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Tb(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Tb(e.attributes.name)||"icon"===Tb(e.attributes.rel)||"apple-touch-icon"===Tb(e.attributes.rel)||"shortcut icon"===Tb(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Tb(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Tb(e.attributes.property).match(/^(og|twitter|fb):/)||Tb(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Tb(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Tb(e.attributes.name)||"googlebot"===Tb(e.attributes.name)||"bingbot"===Tb(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Tb(e.attributes.name)||"generator"===Tb(e.attributes.name)||"framework"===Tb(e.attributes.name)||"publisher"===Tb(e.attributes.name)||"progid"===Tb(e.attributes.name)||Tb(e.attributes.property).match(/^article:/)||Tb(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Tb(e.attributes.name)||"yandex-verification"===Tb(e.attributes.name)||"csrf-token"===Tb(e.attributes.name)||"p:domain_verify"===Tb(e.attributes.name)||"verify-v1"===Tb(e.attributes.name)||"verification"===Tb(e.attributes.name)||"shopify-checkout-api-token"===Tb(e.attributes.name)))return!0}}return!1}(C,f)&&(O||C.type!==Zy.Text||C.isStyle||C.textContent.replace(/^\s+|\s+$/gm,"").length)?db():pb;const T=Object.assign(C,{id:E});if(n.add(e,T),E===pb)return null;y&&y(e);let M=!l;if(T.type===Zy.Element){M=M&&!T.needBlock,delete T.needBlock;const t=e.shadowRoot;t&&eb(t)&&(T.isShadowHost=!0)}if((T.type===Zy.Document||T.type===Zy.Element)&&M){f.headWhitespace&&T.type===Zy.Element&&"head"===T.tagName&&(O=!1);const t={doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:k,maskTextClass:a,maskTextSelector:s,skipChild:l,inlineStylesheet:c,maskInputOptions:u,maskTextFn:p,maskInputFn:d,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:g,preserveWhiteSpace:O,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:_,stylesheetLoadTimeout:x,keepIframeSrcFn:w};if(T.type===Zy.Element&&"textarea"===T.tagName&&void 0!==T.attributes.value);else for(const r of Array.from(e.childNodes)){const e=Mb(r,t);e&&T.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const r of Array.from(e.shadowRoot.childNodes)){const n=Mb(r,t);n&&(eb(e.shadowRoot)&&(n.isShadow=!0),T.childNodes.push(n))}}return e.parentNode&&Jy(e.parentNode)&&eb(e.parentNode)&&(T.isShadow=!0),T.type===Zy.Element&&"iframe"===T.tagName&&function(e,t,r){const n=e.contentWindow;if(!n)return;let o,i=!1;try{o=n.document.readyState}catch(e){return}if("complete"!==o){const n=setTimeout((()=>{i||(t(),i=!0)}),r);return void e.addEventListener("load",(()=>{clearTimeout(n),i=!0,t()}))}const a="about:blank";if(n.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&b){const r=Mb(t,{doc:t,mirror:n,blockClass:o,blockSelector:i,needsMask:k,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:p,maskInputFn:d,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:g,preserveWhiteSpace:O,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:_,stylesheetLoadTimeout:x,keepIframeSrcFn:w});r&&b(e,r)}}),v),T.type===Zy.Element&&"link"===T.tagName&&"string"==typeof T.attributes.rel&&("stylesheet"===T.attributes.rel||"preload"===T.attributes.rel&&"string"==typeof T.attributes.href&&"css"===lb(T.attributes.href))&&function(e,t,r){let n,o=!1;try{n=e.sheet}catch(e){return}if(n)return;const i=setTimeout((()=>{o||(t(),o=!0)}),r);e.addEventListener("load",(()=>{clearTimeout(i),o=!0,t()}))}(e,(()=>{if(_){const t=Mb(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:k,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:p,maskInputFn:d,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:g,preserveWhiteSpace:O,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:_,stylesheetLoadTimeout:x,keepIframeSrcFn:w});t&&_(e,t)}}),x),T}function Rb(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const Ib="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Nb={map:{},getId:()=>(console.error(Ib),-1),getNode:()=>(console.error(Ib),null),removeNodeFromMap(){console.error(Ib)},has:()=>(console.error(Ib),!1),reset(){console.error(Ib)}};function Pb(e,t,r={}){let n=null,o=0;return function(...i){const a=Date.now();o||!1!==r.leading||(o=a);const s=t-(a-o),l=this;s<=0||s>t?(n&&(clearTimeout(n),n=null),o=a,e.apply(l,i)):n||!1===r.trailing||(n=setTimeout((()=>{o=!1===r.leading?0:Date.now(),n=null,e.apply(l,i)}),s))}}function Ab(e,t,r,n,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set(e){setTimeout((()=>{r.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>Ab(e,t,i||{},!0)}function $b(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,()=>{e[t]=n}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Nb=new Proxy(Nb,{get:(e,t,r)=>("map"===t&&console.error(Ib),Reflect.get(e,t,r))}));let Lb=Date.now;function Db(e){var t,r,n,o,i,a;const s=e.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==s?void 0:s.documentElement.scrollLeft)||(null===(r=null===(t=null==s?void 0:s.body)||void 0===t?void 0:t.parentElement)||void 0===r?void 0:r.scrollLeft)||(null===(n=null==s?void 0:s.body)||void 0===n?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==s?void 0:s.documentElement.scrollTop)||(null===(i=null===(o=null==s?void 0:s.body)||void 0===o?void 0:o.parentElement)||void 0===i?void 0:i.scrollTop)||(null===(a=null==s?void 0:s.body)||void 0===a?void 0:a.scrollTop)||0}}function jb(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Fb(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function zb(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Bb(e,t,r,n){if(!e)return!1;const o=zb(e);if(!o)return!1;try{if("string"==typeof t){if(o.classList.contains(t))return!0;if(n&&null!==o.closest("."+t))return!0}else if(Cb(o,t,n))return!0}catch(e){}if(r){if(o.matches(r))return!0;if(n&&null!==o.closest(r))return!0}return!1}function Vb(e,t){return t.getId(e)===pb}function Ub(e,t){if(Jy(e))return!1;const r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Ub(e.parentNode,t))}function qb(e){return Boolean(e.changedTouches)}function Wb(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Hb(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Kb(e){return Boolean(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(Lb=()=>(new Date).getTime());class Gb{getId(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}}function Xb(e){var t,r;let n=null;return(null===(r=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e))||void 0===r?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(n=e.getRootNode().host),n}function Yb(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){const t=e.ownerDocument;if(!t)return!1;const r=function(e){let t,r=e;for(;t=Xb(r);)r=t;return r}(e);return t.contains(r)}(e))}var Qb=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Qb||{}),Zb=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Zb||{}),Jb=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Jb||{}),ev=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ev||{}),tv=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(tv||{});function rv(e){return"__ln"in e}class nv{get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&rv(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&rv(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}constructor(){this.length=0,this.head=null,this.tail=null}}const ov=(e,t)=>`${e}@${t}`;class iv{init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new nv,n=e=>{let t=e,r=pb;for(;r===pb;)t=t&&t.nextSibling,r=t&&this.mirror.getId(t);return r},o=o=>{if(!o.parentNode||!Yb(o)||"TEXTAREA"===o.parentNode.tagName)return;const i=Jy(o.parentNode)?this.mirror.getId(Xb(o)):this.mirror.getId(o.parentNode),a=n(o);if(-1===i||-1===a)return r.addNode(o);const s=Mb(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Wb(e,this.mirror)&&this.iframeManager.addIframe(e),Hb(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Kb(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:i,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)sv(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)cv(this.droppedSet,e)||sv(this.removes,e,this.mirror)?cv(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let i=null;for(;r.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),r=n(i.value);-1!==t&&-1!==r&&(e=i)}if(!e){let t=r.tail;for(;t;){const r=t;if(t=t.previous,r){const t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{const t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}i=e.previous,r.removeNode(e.value),o(e.value)}const a={texts:this.texts.map((e=>{const t=e.node;return t.parentNode&&"TEXTAREA"===t.parentNode.tagName&&this.genTextAreaValueMutation(t.parentNode),{id:this.mirror.getId(t),value:e.value}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.genTextAreaValueMutation=e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(e.childNodes,(e=>e.textContent||"")).join("")},this.processMutation=e=>{if(!Vb(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;Bb(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:Eb(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,zb(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){const e=sb(t);n=ob({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:n,maskInputFn:this.maskInputFn})}if(Bb(e.target,this.blockClass,this.blockSelector,!1)||n===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(t.contentDocument)return;r="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Ob(t.tagName,r)&&(o.attributes[r]=kb(this.doc,ib(t.tagName),ib(r),n),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const r=this.unattachedDoc.createElement("span");e.oldValue&&r.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const n=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);n!==r.style.getPropertyValue(e)||i!==r.style.getPropertyPriority(e)?o.styleDiff[e]=""===i?n:[n,i]:o._unchangedStyles[e]=[n,i]}for(const e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(Bb(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const r=this.mirror.getId(t),n=Jy(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Bb(e.target,this.blockClass,this.blockSelector,!1)||Vb(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(av(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||Ub(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[ov(r,n)]?av(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!(!Jy(e.target)||!eb(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Vb(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[ov(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Bb(e,this.blockClass,this.blockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Kb(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}}function av(e,t){e.delete(t),t.childNodes.forEach((t=>av(e,t)))}function sv(e,t,r){return 0!==e.length&&lv(e,t,r)}function lv(e,t,r){const{parentNode:n}=t;if(!n)return!1;const o=r.getId(n);return!!e.some((e=>e.id===o))||lv(e,n,r)}function cv(e,t){return 0!==e.size&&uv(e,t)}function uv(e,t){const{parentNode:r}=t;return!!r&&(!!e.has(r)||uv(e,r))}let pv;function dv(e){pv=e}function fv(){pv=void 0}const hv=e=>pv?(...t)=>{try{return e(...t)}catch(e){if(pv&&!0===pv(e))return;throw e}}:e,mv=[];function gv(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function yv(e,t){var r,n;const o=new iv;mv.push(o),o.init(e);let i=window.MutationObserver||window.__rrMutationObserver;const a=null===(n=null===(r=null===window||void 0===window?void 0:window.Zone)||void 0===r?void 0:r.__symbol__)||void 0===n?void 0:n.call(r,"MutationObserver");a&&window[a]&&(i=window[a]);const s=new i(hv(o.processMutations.bind(o)));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function bv({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,sampling:i}){const a=hv(Pb(hv((i=>{const a=gv(i);if(!a||Bb(a,n,o,!0))return;const s=r.getId(a);if(a===t&&t.defaultView){const r=Db(t.defaultView);e({id:s,x:r.left,y:r.top})}else e({id:s,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100));return Rb("scroll",a,t)}const vv=["INPUT","TEXTAREA","SELECT"],_v=new WeakMap;function xv(e){return function(e,t){if(Ov("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Ov("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Ov("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Ov("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){const r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function wv(e,t,r){let n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function Sv({mirror:e,stylesheetManager:t},r){var n,o,i;let a=null;a="#document"===r.nodeName?e.getId(r):e.getId(r.host);const s="#document"===r.nodeName?null===(n=r.defaultView)||void 0===n?void 0:n.Document:null===(i=null===(o=r.ownerDocument)||void 0===o?void 0:o.defaultView)||void 0===i?void 0:i.ShadowRoot,l=(null==s?void 0:s.prototype)?Object.getOwnPropertyDescriptor(null==s?void 0:s.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&s&&l?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null===(e=l.get)||void 0===e?void 0:e.call(this)},set(e){var r;const n=null===(r=l.set)||void 0===r?void 0:r.call(this,e);if(null!==a&&-1!==a)try{t.adoptStyleSheets(e,a)}catch(e){}return n}}),hv((()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))):()=>{}}function kv(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};let n;!function(e,t){const{mutationCb:r,mousemoveCb:n,mouseInteractionCb:o,scrollCb:i,viewportResizeCb:a,inputCb:s,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:p,fontCb:d,selectionCb:f,customElementCb:h}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),n(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),o(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),i(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),a(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),s(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),c(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),p(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),d(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),f(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),h(...e)}}(e,t),e.recordDOM&&(n=yv(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let a,s=[];const l=Pb(hv((t=>{const r=Date.now()-a;e(s.map((e=>(e.timeOffset-=r,e))),t),s=[],a=null})),i),c=hv(Pb(hv((e=>{const t=gv(e),{clientX:r,clientY:o}=qb(e)?e.changedTouches[0]:e;a||(a=Lb()),s.push({x:r,y:o,id:n.getId(t),timeOffset:Lb()-a}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?Zb.Drag:e instanceof MouseEvent?Zb.MouseMove:Zb.TouchMove)})),o,{trailing:!1})),u=[Rb("mousemove",c,r),Rb("touchmove",c,r),Rb("drag",c,r)];return hv((()=>{u.forEach((e=>e()))}))}(e),i=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,s=[];let l=null;return Object.keys(Jb).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((i=>{let a=ib(i);const c=(t=>i=>{const a=gv(i);if(Bb(a,n,o,!0))return;let s=null,c=t;if("pointerType"in i){switch(i.pointerType){case"mouse":s=ev.Mouse;break;case"touch":s=ev.Touch;break;case"pen":s=ev.Pen}s===ev.Touch&&(Jb[t]===Jb.MouseDown?c="TouchStart":Jb[t]===Jb.MouseUp&&(c="TouchEnd"))}else qb(i)&&(s=ev.Touch);null!==s?(l=s,(c.startsWith("Touch")&&s===ev.Touch||c.startsWith("Mouse")&&s===ev.Mouse)&&(s=null)):Jb[t]===Jb.Click&&(s=l,l=null);const u=qb(i)?i.changedTouches[0]:i;if(!u)return;const p=r.getId(a),{clientX:d,clientY:f}=u;hv(e)(Object.assign({type:Jb[c],id:p,x:d,y:f},null!==s&&{pointerType:s}))})(i);if(window.PointerEvent)switch(Jb[i]){case Jb.MouseDown:case Jb.MouseUp:a=a.replace("mouse","pointer");break;case Jb.TouchStart:case Jb.TouchEnd:return}s.push(Rb(a,c,t))})),hv((()=>{s.forEach((e=>e()))}))}(e),a=bv(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;const o=hv(Pb(hv((()=>{const t=jb(),o=Fb();r===t&&n===o||(e({width:Number(o),height:Number(t)}),r=t,n=o)})),200));return Rb("resize",o,t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:s,maskInputFn:l,sampling:c,userTriggeredOnInput:u}){function p(e){let r=gv(e);const c=e.isTrusted,p=r&&r.tagName;if(r&&"OPTION"===p&&(r=r.parentElement),!r||!p||vv.indexOf(p)<0||Bb(r,n,o,!0))return;if(r.classList.contains(i)||a&&r.matches(a))return;let f=r.value,h=!1;const m=sb(r)||"";"radio"===m||"checkbox"===m?h=r.checked:(s[p.toLowerCase()]||s[m])&&(f=ob({element:r,maskInputOptions:s,tagName:p,type:m,value:f,maskInputFn:l})),d(r,u?{text:f,isChecked:h,userTriggered:c}:{text:f,isChecked:h});const g=r.name;"radio"===m&&g&&h&&t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach((e=>{if(e!==r){const t=e.value;d(e,u?{text:t,isChecked:!h,userTriggered:!1}:{text:t,isChecked:!h})}}))}function d(t,n){const o=_v.get(t);if(!o||o.text!==n.text||o.isChecked!==n.isChecked){_v.set(t,n);const o=r.getId(t);hv(e)(Object.assign(Object.assign({},n),{id:o}))}}const f=("last"===c.input?["change"]:["input","change"]).map((e=>Rb(e,hv(p),t))),h=t.defaultView;if(!h)return()=>{f.forEach((e=>e()))};const m=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),g=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return m&&m.set&&f.push(...g.map((e=>Ab(e[0],e[1],{set(){hv(p)({target:this,isTrusted:!1})}},!1,h)))),hv((()=>{f.forEach((e=>e()))}))}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:n,sampling:o,doc:i}){const a=hv((i=>Pb(hv((o=>{const a=gv(o);if(!a||Bb(a,t,r,!0))return;const{currentTime:s,volume:l,muted:c,playbackRate:u,loop:p}=a;e({type:i,id:n.getId(a),currentTime:s,volume:l,muted:c,playbackRate:u,loop:p})})),o.media||500))),s=[Rb("play",a(0),i),Rb("pause",a(1),i),Rb("seeked",a(2),i),Rb("volumechange",a(3),i),Rb("ratechange",a(4),i)];return hv((()=>{s.forEach((e=>e()))}))}(e);let u=()=>{},p=()=>{},d=()=>{},f=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:hv(((n,o,i)=>{const[a,s]=i,{id:l,styleId:c}=wv(o,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:s}]}),n.apply(o,i)}))});const i=n.CSSStyleSheet.prototype.deleteRule;let a,s;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:hv(((n,o,i)=>{const[a]=i,{id:s,styleId:l}=wv(o,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:a}]}),n.apply(o,i)}))}),n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:hv(((n,o,i)=>{const[a]=i,{id:s,styleId:l}=wv(o,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:a}),n.apply(o,i)}))})),n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:hv(((n,o,i)=>{const[a]=i,{id:s,styleId:l}=wv(o,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:a}),n.apply(o,i)}))}));const l={};Cv("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(Cv("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),Cv("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),Cv("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));const c={};return Object.entries(l).forEach((([n,o])=>{c[n]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(c[n].insertRule,{apply:hv(((n,o,i)=>{const[a,s]=i,{id:l,styleId:c}=wv(o.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:[...xv(o),s||0]}]}),n.apply(o,i)}))}),o.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:hv(((n,o,i)=>{const[a]=i,{id:s,styleId:l}=wv(o.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...xv(o),a]}]}),n.apply(o,i)}))})})),hv((()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=i,a&&(n.CSSStyleSheet.prototype.replace=a),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach((([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule}))}))}(e,{win:r}),p=Sv(e,e.doc),d=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:hv(((o,a,s)=>{var l;const[c,u,p]=s;if(r.has(c))return i.apply(a,[c,u,p]);const{id:d,styleId:f}=wv(null===(l=a.parentRule)||void 0===l?void 0:l.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||f&&-1!==f)&&e({id:d,styleId:f,set:{property:c,value:u,priority:p},index:xv(a.parentRule)}),o.apply(a,s)}))});const a=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:hv(((o,i,s)=>{var l;const[c]=s;if(r.has(c))return a.apply(i,[c]);const{id:u,styleId:p}=wv(null===(l=i.parentRule)||void 0===l?void 0:l.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||p&&-1!==p)&&e({id:u,styleId:p,remove:{property:c},index:xv(i.parentRule)}),o.apply(i,s)}))}),hv((()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=a}))}(e,{win:r}),e.collectFonts&&(f=function({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],o=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){const n=new i(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};const a=$b(t.fonts,"add",(function(t){return function(r){return setTimeout(hv((()=>{const t=o.get(r);t&&(e(t),o.delete(r))})),0),t.apply(this,[r])}}));return n.push((()=>{r.FontFace=i})),n.push(a),hv((()=>{n.forEach((e=>e()))}))}(e)));const h=function(e){const{doc:t,mirror:r,blockClass:n,blockSelector:o,selectionCb:i}=e;let a=!0;const s=hv((()=>{const e=t.getSelection();if(!e||a&&(null==e?void 0:e.isCollapsed))return;a=e.isCollapsed||!1;const s=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:l,endContainer:c,endOffset:u}=i;Bb(a,n,o,!0)||Bb(c,n,o,!0)||s.push({start:r.getId(a),startOffset:l,end:r.getId(c),endOffset:u})}i({ranges:s})}));return s(),Rb("selectionchange",s)}(e),m=function({doc:e,customElementCb:t}){const r=e.defaultView;return r&&r.customElements?$b(r.customElements,"define",(function(e){return function(r,n,o){try{t({define:{name:r}})}catch(e){console.warn(`Custom element callback failed for ${r}`)}return e.apply(this,[r,n,o])}})):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,r,t.options));return hv((()=>{mv.forEach((e=>e.reset())),null==n||n.disconnect(),o(),i(),a(),s(),l(),c(),u(),p(),d(),f(),h(),m(),g.forEach((e=>e()))}))}function Ov(e){return void 0!==window[e]}function Cv(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Ev{getId(e,t,r,n){const o=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e);let a=o.get(t);return a||(a=this.generateIdFn(),o.set(t,a),i.set(a,t)),a}getIds(e,t){const r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,r,n)))}getRemoteId(e,t,r){const n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return n.get(t)||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,r)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}}class Tv{addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(r=this.loadListener)||void 0===r||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case Qb.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:Qb.IncrementalSnapshot,data:{source:Zb.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Qb.Meta:case Qb.Load:case Qb.DomContentLoaded:return!1;case Qb.Plugin:return t;case Qb.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Qb.IncrementalSnapshot:switch(t.data.source){case Zb.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Zb.Drag:case Zb.TouchMove:case Zb.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Zb.ViewportResize:return!1;case Zb.MediaInteraction:case Zb.MouseInteraction:case Zb.Scroll:case Zb.CanvasMutation:case Zb.Input:return this.replaceIds(t.data,e,["id"]),t;case Zb.StyleSheetRule:case Zb.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Zb.Font:return t;case Zb.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Zb.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null===(r=t.data.styles)||void 0===r||r.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,r,n){for(const o of n)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(r,t[o]):t[o]=e.getId(r,t[o]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===Zy.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ev(db),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ev(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}}class Mv{init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!eb(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=yv(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((()=>r.disconnect())),this.restoreHandlers.push(bv(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Sv({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push($b(e.prototype,"attachShadow",(function(e){return function(n){const o=e.call(this,n);return this.shadowRoot&&Yb(this)&&r.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}}for(var Rv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Iv="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Nv=0;Nv<64;Nv++)Iv[Rv.charCodeAt(Nv)]=Nv;const Pv=new Map,Av=(e,t,r)=>{if(!e||!Dv(e,t)&&"object"!=typeof e)return;const n=function(e,t){let r=Pv.get(e);return r||(r=new Map,Pv.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name);let o=n.indexOf(e);return-1===o&&(o=n.length,n.push(e)),o};function $v(e,t,r){if(e instanceof Array)return e.map((e=>$v(e,t,r)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const t=e.constructor.name,r=function(e){var t,r=new Uint8Array(e),n=r.length,o="";for(t=0;t<n;t+=3)o+=Rv[r[t]>>2],o+=Rv[(3&r[t])<<4|r[t+1]>>4],o+=Rv[(15&r[t+1])<<2|r[t+2]>>6],o+=Rv[63&r[t+2]];return n%3==2?o=o.substring(0,o.length-1)+"=":n%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e);return{rr_type:t,base64:r}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[$v(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:r}=e;return{rr_type:t,src:r}}return e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[$v(e.data,t,r),e.width,e.height]}:Dv(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:Av(e,t,r)}:e}const Lv=(e,t,r)=>e.map((e=>$v(e,t,r))),Dv=(e,t)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(r.find((r=>e instanceof t[r])))};function jv(e,t,r,n){const o=[];try{const i=$b(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(o,...i){if(!Bb(this,t,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(o);if("__context"in this||(this.__context=e),n&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){const e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...i])}}));o.push(i)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach((e=>e()))}}function Fv(e,t,r,n,o,i,a){const s=[],l=Object.getOwnPropertyNames(e);for(const i of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))try{if("function"!=typeof e[i])continue;const l=$b(e,i,(function(e){return function(...s){const l=e.apply(this,s);if(Av(l,a,this),"tagName"in this.canvas&&!Bb(this.canvas,n,o,!0)){const e=Lv(s,a,this),n={type:t,property:i,args:e};r(this.canvas,n)}return l}}));s.push(l)}catch(n){const o=Ab(e,i,{set(e){r(this.canvas,{type:t,property:i,args:[e],setter:!0})}});s.push(o)}return s}var zv,Bv,Vv=(zv=function(){!function(){function e(e,t,r,n){return new(r||(r=Promise))((function(t,o){function i(e){try{s(n.next(e))}catch(e){o(e)}}function a(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,a)}s((n=n.apply(e,[])).next())}))}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n=0;n<64;n++)r[t.charCodeAt(n)]=n;var o=function(e){var r,n=new Uint8Array(e),o=n.length,i="";for(r=0;r<o;r+=3)i+=t[n[r]>>2],i+=t[(3&n[r])<<4|n[r+1]>>4],i+=t[(15&n[r+1])<<2|n[r+2]>>6],i+=t[63&n[r+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i};const i=new Map,a=new Map,s=self;s.onmessage=function(t){return e(this,0,void 0,(function*(){if(!("OffscreenCanvas"in globalThis))return s.postMessage({id:t.data.id});{const{id:r,bitmap:n,width:l,height:c,dataURLOptions:u}=t.data,p=function(t,r,n){return e(this,0,void 0,(function*(){const e=`${t}-${r}`;if("OffscreenCanvas"in globalThis){if(a.has(e))return a.get(e);const i=new OffscreenCanvas(t,r);i.getContext("2d");const s=yield i.convertToBlob(n),l=yield s.arrayBuffer(),c=o(l);return a.set(e,c),c}return""}))}(l,c,u),d=new OffscreenCanvas(l,c);d.getContext("2d").drawImage(n,0,0),n.close();const f=yield d.convertToBlob(u),h=f.type,m=yield f.arrayBuffer(),g=o(m);if(!i.has(r)&&(yield p)===g)return i.set(r,g),s.postMessage({id:r});if(i.get(r)===g)return s.postMessage({id:r});s.postMessage({id:r,type:h,base64:g,width:l,height:c}),i.set(r,g)}}))}}()},function(e){return Bv=Bv||function(e){var t=function(e){var t=e.toString().split("\n");t.pop(),t.shift();for(var r=t[0].search(/\S/),n=/(['"])__worker_loader_strict__(['"])/g,o=0,i=t.length;o<i;++o)t[o]=t[o].substring(r).replace(n,"$1use strict$2")+"\n";return t}(e),r=new Blob(t,{type:"application/javascript"});return URL.createObjectURL(r)}(zv),new Worker(Bv,e)});class Uv{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,r,n,o){const i=jv(t,r,n,!0),a=new Map,s=new Vv;s.onmessage=e=>{const{id:t}=e.data;if(a.set(t,!1),!("base64"in e.data))return;const{base64:r,type:n,width:o,height:i}=e.data;this.mutationCb({id:t,type:tv["2D"],commands:[{property:"clearRect",args:[0,0,o,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:n}]},0,0]}]})};const l=1e3/e;let c,u=0;const p=e=>{u&&e-u<l||(u=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach((t=>{Bb(t,r,n,!0)||e.push(t)})),e})().forEach((e=>{return t=this,n=function*(){var t;const r=this.mirror.getId(e);if(a.get(r))return;if(0===e.width||0===e.height)return;if(a.set(r,!0),["webgl","webgl2"].includes(e.__context)){const r=e.getContext(e.__context);!1===(null===(t=null==r?void 0:r.getContextAttributes())||void 0===t?void 0:t.preserveDrawingBuffer)&&r.clear(r.COLOR_BUFFER_BIT)}const n=yield createImageBitmap(e);s.postMessage({id:r,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n])},new((r=void 0)||(r=Promise))((function(e,o){function i(e){try{s(n.next(e))}catch(e){o(e)}}function a(e){try{s(n.throw(e))}catch(e){o(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,a)}s((n=n.apply(t,[])).next())}));var t,r,n}))),c=requestAnimationFrame(p)};c=requestAnimationFrame(p),this.resetObservers=()=>{i(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=jv(e,t,r,!1),o=function(e,t,r,n){const o=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;const i=$b(t.CanvasRenderingContext2D.prototype,a,(function(o){return function(...i){return Bb(this.canvas,r,n,!0)||setTimeout((()=>{const r=Lv(i,t,this);e(this.canvas,{type:tv["2D"],property:a,args:r})}),0),o.apply(this,i)}}));o.push(i)}catch(r){const n=Ab(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:tv["2D"],property:a,args:[t],setter:!0})}});o.push(n)}return()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r),i=function(e,t,r,n){const o=[];return o.push(...Fv(t.WebGLRenderingContext.prototype,tv.WebGL,e,r,n,0,t)),void 0!==t.WebGL2RenderingContext&&o.push(...Fv(t.WebGL2RenderingContext.prototype,tv.WebGL2,e,r,n,0,t)),()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,this.mirror);this.resetObservers=()=>{n(),o(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;const n=r.map((e=>{const t=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["type"]);return t})),{type:o}=r[0];this.mutationCb({id:t,type:o,commands:n}),this.pendingCanvasMutations.delete(e)}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{sampling:t="all",win:r,blockClass:n,blockSelector:o,recordCanvas:i,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(r,n,o),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,n,o,{dataURLOptions:a})}}class qv{attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:rb(e),index:t})))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Gb,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}}class Wv{periodicallyClear(){requestAnimationFrame((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}}function Hv(e){return Object.assign(Object.assign({},e),{timestamp:Lb()})}let Kv,Gv,Xv,Yv=!1;const Qv=new nb;function Zv(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:s=null,maskTextClass:l="rr-mask",maskTextSelector:c=null,inlineStylesheet:u=!0,maskAllInputs:p,maskInputOptions:d,slimDOMOptions:f,maskInputFn:h,maskTextFn:m,hooks:g,packFn:y,sampling:b={},dataURLOptions:v={},mousemoveWait:_,recordDOM:x=!0,recordCanvas:w=!1,recordCrossOriginIframes:S=!1,recordAfter:k=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:O=!1,collectFonts:C=!1,inlineImages:E=!1,plugins:T,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:R=new Set([]),errorHandler:I}=e;dv(I);const N=!S||window.parent===window;let P=!1;if(!N)try{window.parent.document&&(P=!1)}catch(e){P=!0}if(N&&!t)throw new Error("emit function is required");void 0!==_&&void 0===b.mousemove&&(b.mousemove=_),Qv.reset();const A=!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==d?d:{password:!0},$=!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===f,headMetaDescKeywords:"all"===f}:f||{};let L;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let D=0;const j=e=>{for(const t of T||[])t.eventProcessor&&(e=t.eventProcessor(e));return y&&!P&&(e=y(e)),e};Kv=(e,o)=>{var i;if(!(null===(i=mv[0])||void 0===i?void 0:i.isFrozen())||e.type===Qb.FullSnapshot||e.type===Qb.IncrementalSnapshot&&e.data.source===Zb.Mutation||mv.forEach((e=>e.unfreeze())),N)null==t||t(j(e),o);else if(P){const t={type:"rrweb",event:j(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===Qb.FullSnapshot)L=e,D=0;else if(e.type===Qb.IncrementalSnapshot){if(e.data.source===Zb.Mutation&&e.data.isAttachIframe)return;D++;const t=n&&D>=n,o=r&&e.timestamp-L.timestamp>r;(t||o)&&Gv(!0)}};const F=e=>{Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.Mutation},e)}))},z=e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.Scroll},e)})),B=e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.CanvasMutation},e)})),V=new qv({mutationCb:F,adoptedStyleSheetCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.AdoptedStyleSheet},e)}))}),U=new Tv({mirror:Qv,mutationCb:F,stylesheetManager:V,recordCrossOriginIframes:S,wrappedEmit:Kv});for(const e of T||[])e.getMirror&&e.getMirror({nodeMirror:Qv,crossOriginIframeMirror:U.crossOriginIframeMirror,crossOriginIframeStyleMirror:U.crossOriginIframeStyleMirror});const q=new Wv;Xv=new Uv({recordCanvas:w,mutationCb:B,win:window,blockClass:o,blockSelector:i,mirror:Qv,sampling:b.canvas,dataURLOptions:v});const W=new Mv({mutationCb:F,scrollCb:z,bypassOptions:{blockClass:o,blockSelector:i,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:A,dataURLOptions:v,maskTextFn:m,maskInputFn:h,recordCanvas:w,inlineImages:E,sampling:b,slimDOMOptions:$,iframeManager:U,stylesheetManager:V,canvasManager:Xv,keepIframeSrcFn:M,processedNodeManager:q},mirror:Qv});Gv=(e=!1)=>{if(!x)return;Kv(Hv({type:Qb.Meta,data:{href:window.location.href,width:Fb(),height:jb()}}),e),V.reset(),W.init(),mv.forEach((e=>e.lock()));const t=function(e,t){const{mirror:r=new nb,blockClass:n="rr-block",blockSelector:o=null,maskTextClass:i="rr-mask",maskTextSelector:a=null,inlineStylesheet:s=!0,inlineImages:l=!1,recordCanvas:c=!1,maskAllInputs:u=!1,maskTextFn:p,maskInputFn:d,slimDOM:f=!1,dataURLOptions:h,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:_,keepIframeSrcFn:x=()=>!1}=t||{};return Mb(e,{doc:e,mirror:r,blockClass:n,blockSelector:o,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:s,maskInputOptions:!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===u?{password:!0}:u,maskTextFn:p,maskInputFn:d,slimDOMOptions:!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===f,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===f?{}:f,dataURLOptions:h,inlineImages:l,recordCanvas:c,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:_,keepIframeSrcFn:x,newlyAddedElement:!1})}(document,{mirror:Qv,blockClass:o,blockSelector:i,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:A,maskTextFn:m,slimDOM:$,dataURLOptions:v,recordCanvas:w,inlineImages:E,onSerialize:e=>{Wb(e,Qv)&&U.addIframe(e),Hb(e,Qv)&&V.trackLinkElement(e),Kb(e)&&W.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{U.attachIframe(e,t),W.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{V.attachLinkElement(e,t)},keepIframeSrcFn:M});if(!t)return console.warn("Failed to snapshot the document");Kv(Hv({type:Qb.FullSnapshot,data:{node:t,initialOffset:Db(window)}}),e),mv.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&V.adoptStyleSheets(document.adoptedStyleSheets,Qv.getId(document))};try{const e=[],t=e=>{var t;return hv(kv)({mutationCb:F,mousemoveCb:(e,t)=>Kv(Hv({type:Qb.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.MouseInteraction},e)})),scrollCb:z,viewportResizeCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.ViewportResize},e)})),inputCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.Input},e)})),mediaInteractionCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.MediaInteraction},e)})),styleSheetRuleCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.StyleSheetRule},e)})),styleDeclarationCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.StyleDeclaration},e)})),canvasMutationCb:B,fontCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.Font},e)})),selectionCb:e=>{Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.Selection},e)}))},customElementCb:e=>{Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.CustomElement},e)}))},blockClass:o,ignoreClass:a,ignoreSelector:s,maskTextClass:l,maskTextSelector:c,maskInputOptions:A,inlineStylesheet:u,sampling:b,recordDOM:x,recordCanvas:w,inlineImages:E,userTriggeredOnInput:O,collectFonts:C,doc:e,maskInputFn:h,maskTextFn:m,keepIframeSrcFn:M,blockSelector:i,slimDOMOptions:$,dataURLOptions:v,mirror:Qv,iframeManager:U,stylesheetManager:V,shadowDomManager:W,processedNodeManager:q,canvasManager:Xv,ignoreCSSAttributes:R,plugins:(null===(t=null==T?void 0:T.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>Kv(Hv({type:Qb.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},g)};U.addLoadListener((r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}}));const r=()=>{Gv(),e.push(t(document)),Yv=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(Rb("DOMContentLoaded",(()=>{Kv(Hv({type:Qb.DomContentLoaded,data:{}})),"DOMContentLoaded"===k&&r()}))),e.push(Rb("load",(()=>{Kv(Hv({type:Qb.Load,data:{}})),"load"===k&&r()}),window))),()=>{e.forEach((e=>e())),q.destroy(),Yv=!1,fv()}}catch(e){console.warn(e)}}Zv.addCustomEvent=(e,t)=>{if(!Yv)throw new Error("please add custom event after start recording");Kv(Hv({type:Qb.Custom,data:{tag:e,payload:t}}))},Zv.freezePage=()=>{mv.forEach((e=>e.freeze()))},Zv.takeFullSnapshot=e=>{if(!Yv)throw new Error("please take full snapshot after start recording");Gv(e)},Zv.mirror=Qv;var Jv,e_=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(e_||{}),t_=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(t_||{}),r_={DEBUG:!1,LIB_VERSION:"2.55.1"};if("undefined"==typeof window){var n_={hostname:""};Jv={navigator:{userAgent:"",onLine:!0},document:{location:n_,referrer:""},screen:{width:0,height:0},location:n_}}else Jv=window;var o_,i_=864e5,a_=Array.prototype,s_=Function.prototype,l_=Object.prototype,c_=a_.slice,u_=l_.toString,p_=l_.hasOwnProperty,d_=Jv.console,f_=Jv.navigator,h_=Jv.document,m_=Jv.opera,g_=Jv.screen,y_=f_.userAgent,b_=s_.bind,v_=a_.forEach,__=a_.indexOf,x_=a_.map,w_=Array.isArray,S_={},k_={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},O_={log:function(){if(r_.DEBUG&&!k_.isUndefined(d_)&&d_)try{d_.log.apply(d_,arguments)}catch(e){k_.each(arguments,(function(e){d_.log(e)}))}},warn:function(){if(r_.DEBUG&&!k_.isUndefined(d_)&&d_){var e=["Mixpanel warning:"].concat(k_.toArray(arguments));try{d_.warn.apply(d_,e)}catch(t){k_.each(e,(function(e){d_.warn(e)}))}}},error:function(){if(r_.DEBUG&&!k_.isUndefined(d_)&&d_){var e=["Mixpanel error:"].concat(k_.toArray(arguments));try{d_.error.apply(d_,e)}catch(t){k_.each(e,(function(e){d_.error(e)}))}}},critical:function(){if(!k_.isUndefined(d_)&&d_){var e=["Mixpanel error:"].concat(k_.toArray(arguments));try{d_.error.apply(d_,e)}catch(t){k_.each(e,(function(e){d_.error(e)}))}}}},C_=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(O_,arguments)}},E_=function(e){return{log:C_(O_.log,e),error:C_(O_.error,e),critical:C_(O_.critical,e)}};k_.bind=function(e,t){var r,n;if(b_&&e.bind===b_)return b_.apply(e,c_.call(arguments,1));if(!k_.isFunction(e))throw new TypeError;return r=c_.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(c_.call(arguments)));var o={};o.prototype=e.prototype;var i=new o;o.prototype=null;var a=e.apply(i,r.concat(c_.call(arguments)));return Object(a)===a?a:i},n},k_.each=function(e,t,r){if(null!=e)if(v_&&e.forEach===v_)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,o=e.length;n<o;n++)if(n in e&&t.call(r,e[n],n,e)===S_)return}else for(var i in e)if(p_.call(e,i)&&t.call(r,e[i],i,e)===S_)return},k_.extend=function(e){return k_.each(c_.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])})),e},k_.isArray=w_||function(e){return"[object Array]"===u_.call(e)},k_.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},k_.isArguments=function(e){return!(!e||!p_.call(e,"callee"))},k_.toArray=function(e){return e?e.toArray?e.toArray():k_.isArray(e)||k_.isArguments(e)?c_.call(e):k_.values(e):[]},k_.map=function(e,t,r){if(x_&&e.map===x_)return e.map(t,r);var n=[];return k_.each(e,(function(e){n.push(t.call(r,e))})),n},k_.keys=function(e){var t=[];return null===e||k_.each(e,(function(e,r){t[t.length]=r})),t},k_.values=function(e){var t=[];return null===e||k_.each(e,(function(e){t[t.length]=e})),t},k_.include=function(e,t){var r=!1;return null===e?r:__&&e.indexOf===__?-1!=e.indexOf(t):(k_.each(e,(function(e){if(r||(r=e===t))return S_})),r)},k_.includes=function(e,t){return-1!==e.indexOf(t)},k_.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},k_.isObject=function(e){return e===Object(e)&&!k_.isArray(e)},k_.isEmptyObject=function(e){if(k_.isObject(e)){for(var t in e)if(p_.call(e,t))return!1;return!0}return!1},k_.isUndefined=function(e){return void 0===e},k_.isString=function(e){return"[object String]"==u_.call(e)},k_.isDate=function(e){return"[object Date]"==u_.call(e)},k_.isNumber=function(e){return"[object Number]"==u_.call(e)},k_.isElement=function(e){return!(!e||1!==e.nodeType)},k_.encodeDates=function(e){return k_.each(e,(function(t,r){k_.isDate(t)?e[r]=k_.formatDate(t):k_.isObject(t)&&(e[r]=k_.encodeDates(t))})),e},k_.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},k_.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},k_.strip_empty_properties=function(e){var t={};return k_.each(e,(function(e,r){k_.isString(e)&&e.length>0&&(t[r]=e)})),t},k_.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):k_.isArray(e)?(r=[],k_.each(e,(function(e){r.push(k_.truncate(e,t))}))):k_.isObject(e)?(r={},k_.each(e,(function(e,n){r[n]=k_.truncate(e,t)}))):r=e,r},k_.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},r=function(e,n){var o="",i=0,a="",s="",l=0,c=o,u=[],p=n[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(o+=" ",u=[],"[object Array]"===u_.apply(p)){for(l=p.length,i=0;i<l;i+=1)u[i]=r(i,p)||"null";return s=0===u.length?"[]":o?"[\n"+o+u.join(",\n"+o)+"\n"+c+"]":"["+u.join(",")+"]",o=c,s}for(a in p)p_.call(p,a)&&(s=r(a,p))&&u.push(t(a)+(o?": ":":")+s);return s=0===u.length?"{}":o?"{"+u.join(",")+c+"}":"{"+u.join(",")+"}",o=c,s}};return r("",{"":e})},k_.JSONDecode=function(){var e,t,r,n,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},i=function(t){var n=new SyntaxError(t);throw n.at=e,n.text=r,n},a=function(n){return n&&n!==t&&i("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},s=function(){var e,r="";for("-"===t&&(r="-",a("-"));t>="0"&&t<="9";)r+=t,a();if("."===t)for(r+=".";a()&&t>="0"&&t<="9";)r+=t;if("e"===t||"E"===t)for(r+=t,a(),"-"!==t&&"+"!==t||(r+=t,a());t>="0"&&t<="9";)r+=t,a();if(e=+r,isFinite(e))return e;i("Bad number")},l=function(){var e,r,n,s="";if('"'===t)for(;a();){if('"'===t)return a(),s;if("\\"===t)if(a(),"u"===t){for(n=0,r=0;r<4&&(e=parseInt(a(),16),isFinite(e));r+=1)n=16*n+e;s+=String.fromCharCode(n)}else{if("string"!=typeof o[t])break;s+=o[t]}else s+=t}i("Bad string")},c=function(){for(;t&&t<=" ";)a()};return n=function(){switch(c(),t){case"{":return function(){var e,r={};if("{"===t){if(a("{"),c(),"}"===t)return a("}"),r;for(;t;){if(e=l(),c(),a(":"),Object.hasOwnProperty.call(r,e)&&i('Duplicate key "'+e+'"'),r[e]=n(),c(),"}"===t)return a("}"),r;a(","),c()}}i("Bad object")}();case"[":return function(){var e=[];if("["===t){if(a("["),c(),"]"===t)return a("]"),e;for(;t;){if(e.push(n()),c(),"]"===t)return a("]"),e;a(","),c()}}i("Bad array")}();case'"':return l();case"-":return s();default:return t>="0"&&t<="9"?s():function(){switch(t){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}i('Unexpected "'+t+'"')}()}},function(o){var a;return r=o,e=0,t=" ",a=n(),c(),t&&i("Syntax error"),a}}(),k_.base64Encode=function(e){var t,r,n,o,i,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,c="",u=[];if(!e)return e;e=k_.utf8Encode(e);do{t=(i=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,r=i>>12&63,n=i>>6&63,o=63&i,u[l++]=a.charAt(t)+a.charAt(r)+a.charAt(n)+a.charAt(o)}while(s<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},k_.utf8Encode=function(e){var t,r,n,o,i="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,o=0;o<n;o++){var a=e.charCodeAt(o),s=null;a<128?r++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(r>t&&(i+=e.substring(t,r)),i+=s,t=r=o+1)}return r>t&&(i+=e.substring(t,e.length)),i},k_.UUID=(o_=function(){var e,t=1*new Date;if(Jv.performance&&Jv.performance.now)e=Jv.performance.now();else for(e=0;t==1*new Date;)e++;return t.toString(16)+Math.floor(e).toString(16)},function(){var e=(g_.height*g_.width).toString(16);return o_()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,r=y_,n=[],o=0;function i(e,t){var r,o=0;for(r=0;r<t.length;r++)o|=n[r]<<8*r;return e^o}for(e=0;e<r.length;e++)t=r.charCodeAt(e),n.unshift(255&t),n.length>=4&&(o=i(o,n),n=[]);return n.length>0&&(o=i(o,n)),o.toString(16)}()+"-"+e+"-"+o_()});var T_=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];k_.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<T_.length;t++)if(-1!==e.indexOf(T_[t]))return!0;return!1},k_.HTTPBuildQuery=function(e,t){var r,n,o=[];return k_.isUndefined(t)&&(t="&"),k_.each(e,(function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),o[o.length]=n+"="+r})),o.join(t)},k_.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){O_.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},k_.cookie={get:function(e){for(var t=e+"=",r=h_.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},parse:function(e){var t;try{t=k_.JSONDecode(k_.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,o,i,a){var s="",l="",c="";if(a)s="; domain="+a;else if(n){var u=D_(h_.location.hostname);s=u?"; domain=."+u:""}if(r){var p=new Date;p.setTime(p.getTime()+1e3*r),l="; expires="+p.toGMTString()}i&&(o=!0,c="; SameSite=None"),o&&(c+="; secure"),h_.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+s+c},set:function(e,t,r,n,o,i,a){var s="",l="",c="";if(a)s="; domain="+a;else if(n){var u=D_(h_.location.hostname);s=u?"; domain=."+u:""}if(r){var p=new Date;p.setTime(p.getTime()+24*r*60*60*1e3),l="; expires="+p.toGMTString()}i&&(o=!0,c="; SameSite=None"),o&&(c+="; secure");var d=e+"="+encodeURIComponent(t)+l+"; path=/"+s+c;return h_.cookie=d,d},remove:function(e,t,r){k_.cookie.set(e,"",-1,t,!1,!1,r)}};var M_=null,R_=function(e,t){if(null!==M_&&!t)return M_;var r=!0;try{e=e||window.localStorage;var n="__mplss_"+A_(8);e.setItem(n,"xyz"),"xyz"!==e.getItem(n)&&(r=!1),e.removeItem(n)}catch(e){r=!1}return M_=r,r};k_.localStorage={is_supported:function(e){var t=R_(null,e);return t||O_.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){O_.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(e){k_.localStorage.error(e)}return null},parse:function(e){try{return k_.JSONDecode(k_.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(e){k_.localStorage.error(e)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(e){k_.localStorage.error(e)}}},k_.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,o,i){if(t)if(t.addEventListener&&!o)t.addEventListener(r,n,!!i);else{var a="on"+r,s=t[a];t[a]=function(t,r,n){return function(o){if(o=o||e(window.event)){var i,a,s=!0;return k_.isFunction(n)&&(i=n(o)),a=r.call(t,o),!1!==i&&!1!==a||(s=!1),s}}}(t,n,s)}else O_.error("No valid element provided to register_event")}}();var I_=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');k_.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!h_.getElementsByTagName)return[];var n,o,i,a,s,l,c,u,p,d,f=t.split(" "),h=[h_];for(l=0;l<f.length;l++)if((n=f[l].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){i=(o=n.split("#"))[0];var m=o[1],g=h_.getElementById(m);if(!g||i&&g.nodeName.toLowerCase()!=i)return[];h=[g]}else if(n.indexOf(".")>-1){i=(o=n.split("."))[0];var y=o[1];for(i||(i="*"),a=[],s=0,c=0;c<h.length;c++)for(p="*"==i?e(h[c]):h[c].getElementsByTagName(i),u=0;u<p.length;u++)a[s++]=p[u];for(h=[],d=0,c=0;c<a.length;c++)a[c].className&&k_.isString(a[c].className)&&r(a[c],y)&&(h[d++]=a[c])}else{var b=n.match(I_);if(b){i=b[1];var v,_=b[2],x=b[3],w=b[4];for(i||(i="*"),a=[],s=0,c=0;c<h.length;c++)for(p="*"==i?e(h[c]):h[c].getElementsByTagName(i),u=0;u<p.length;u++)a[s++]=p[u];switch(h=[],d=0,x){case"=":v=function(e){return e.getAttribute(_)==w};break;case"~":v=function(e){return e.getAttribute(_).match(new RegExp("\\b"+w+"\\b"))};break;case"|":v=function(e){return e.getAttribute(_).match(new RegExp("^"+w+"-?"))};break;case"^":v=function(e){return 0===e.getAttribute(_).indexOf(w)};break;case"$":v=function(e){return e.getAttribute(_).lastIndexOf(w)==e.getAttribute(_).length-w.length};break;case"*":v=function(e){return e.getAttribute(_).indexOf(w)>-1};break;default:v=function(e){return e.getAttribute(_)}}for(h=[],d=0,c=0;c<a.length;c++)v(a[c])&&(h[d++]=a[c])}else{for(i=n,a=[],s=0,c=0;c<h.length;c++)for(p=h[c].getElementsByTagName(i),u=0;u<p.length;u++)a[s++]=p[u];h=a}}return h}return function(e){return k_.isElement(e)?[e]:k_.isObject(e)&&!k_.isUndefined(e.length)?e:n.call(this,e)}}();var N_=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],P_=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];k_.info={campaignParams:function(e){var t="",r={};return k_.each(N_,(function(n){(t=k_.getQueryParam(h_.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)})),r},clickParams:function(){var e="",t={};return k_.each(P_,(function(r){(e=k_.getQueryParam(h_.URL,r)).length&&(t[r]=e)})),t},marketingParams:function(){return k_.extend(k_.info.campaignParams(),k_.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=k_.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var o=k_.getQueryParam(e,r);o.length&&(n.mp_keyword=o)}return n},browser:function(e,t,r){return t=t||"",r||k_.includes(e," OPR/")?k_.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":k_.includes(e,"IEMobile")||k_.includes(e,"WPDesktop")?"Internet Explorer Mobile":k_.includes(e,"SamsungBrowser/")?"Samsung Internet":k_.includes(e,"Edge")||k_.includes(e,"Edg/")?"Microsoft Edge":k_.includes(e,"FBIOS")?"Facebook Mobile":k_.includes(e,"Chrome")?"Chrome":k_.includes(e,"CriOS")?"Chrome iOS":k_.includes(e,"UCWEB")||k_.includes(e,"UCBrowser")?"UC Browser":k_.includes(e,"FxiOS")?"Firefox iOS":k_.includes(t,"Apple")?k_.includes(e,"Mobile")?"Mobile Safari":"Safari":k_.includes(e,"Android")?"Android Mobile":k_.includes(e,"Konqueror")?"Konqueror":k_.includes(e,"Firefox")?"Firefox":k_.includes(e,"MSIE")||k_.includes(e,"Trident/")?"Internet Explorer":k_.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[k_.info.browser(e,t,r)];if(void 0===n)return null;var o=e.match(n);return o?parseFloat(o[o.length-2]):null},os:function(){var e=y_;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return Jv.location.href},properties:function(e){return"object"!=typeof e&&(e={}),k_.extend(k_.strip_empty_properties({$os:k_.info.os(),$browser:k_.info.browser(y_,f_.vendor,m_),$referrer:h_.referrer,$referring_domain:k_.info.referringDomain(h_.referrer),$device:k_.info.device(y_)}),{$current_url:k_.info.currentUrl(),$browser_version:k_.info.browserVersion(y_,f_.vendor,m_),$screen_height:g_.height,$screen_width:g_.width,mp_lib:"web",$lib_version:r_.LIB_VERSION,$insert_id:A_(),time:k_.timestamp()/1e3},k_.strip_empty_properties(e))},people_properties:function(){return k_.extend(k_.strip_empty_properties({$os:k_.info.os(),$browser:k_.info.browser(y_,f_.vendor,m_)}),{$browser_version:k_.info.browserVersion(y_,f_.vendor,m_)})},mpPageViewProperties:function(){return k_.strip_empty_properties({current_page_title:h_.title,current_domain:Jv.location.hostname,current_url_path:Jv.location.pathname,current_url_protocol:Jv.location.protocol,current_url_search:Jv.location.search})}};var A_=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},$_=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,L_=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,D_=function(e){var t=L_,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=$_);var o=e.match(t);return o?o[0]:""},j_=null,F_=null;"undefined"!=typeof JSON&&(j_=JSON.stringify,F_=JSON.parse),j_=j_||k_.JSONEncode,F_=F_||k_.JSONDecode,k_.toArray=k_.toArray,k_.isObject=k_.isObject,k_.JSONEncode=k_.JSONEncode,k_.JSONDecode=k_.JSONDecode,k_.isBlockedUA=k_.isBlockedUA,k_.isEmptyObject=k_.isEmptyObject,k_.info=k_.info,k_.info.device=k_.info.device,k_.info.browser=k_.info.browser,k_.info.browserVersion=k_.info.browserVersion,k_.info.properties=k_.info.properties;var z_="__mp_opt_in_out_";function B_(e,t){Z_(!0,e,t)}function V_(e,t){Z_(!1,e,t)}function U_(e,t){return"1"===Q_(e,t)}function q_(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Jv,r=t.navigator||{},n=!1;return k_.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],(function(e){k_.includes([!0,1,"1","yes"],e)&&(n=!0)})),n}(t))return O_.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===Q_(e,t);return r&&O_.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function W_(e){return J_(e,(function(e){return this.get_config(e)}))}function H_(e){return J_(e,(function(e){return this._get_config(e)}))}function K_(e){return J_(e,(function(e){return this._get_config(e)}))}function G_(e,t){X_(t=t||{}).remove(Y_(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function X_(e){return"localStorage"===(e=e||{}).persistenceType?k_.localStorage:k_.cookie}function Y_(e,t){return((t=t||{}).persistencePrefix||z_)+e}function Q_(e,t){return X_(t).get(Y_(e,t))}function Z_(e,t,r){k_.isString(t)&&t.length?(X_(r=r||{}).set(Y_(t,r),e?1:0,k_.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):O_.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function J_(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),o=t.call(this,"ignore_dnt"),i=t.call(this,"opt_out_tracking_persistence_type"),a=t.call(this,"opt_out_tracking_cookie_prefix"),s=t.call(this,"window");n&&(r=q_(n,{ignoreDnt:o,persistenceType:i,persistencePrefix:a,window:s}))}catch(e){O_.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var l=arguments[arguments.length-1];"function"==typeof l&&l(0)}}var ex=E_("lock"),tx=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};tx.prototype.withLock=function(e,t,r){r||"function"==typeof t||(r=t,t=null);var n=r||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),i=this.storageKey,a=this.pollIntervalMS,s=this.timeoutMS,l=this.storage,c=i+":X",u=i+":Y",p=i+":Z",d=function(e){t&&t(e)},f=function(e){if((new Date).getTime()-o>s)return ex.error("Timeout waiting for mutex on "+i+"; clearing lock. ["+n+"]"),l.removeItem(p),l.removeItem(u),void g();setTimeout((function(){try{e()}catch(e){d(e)}}),a*(Math.random()+.1))},h=function(e,t){e()?t():f((function(){h(e,t)}))},m=function(){var e=l.getItem(u);if(e&&e!==n)return!1;if(l.setItem(u,n),l.getItem(u)===n)return!0;if(!R_(l,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},g=function(){l.setItem(c,n),h(m,(function(){l.getItem(c)!==n?f((function(){l.getItem(u)===n?h((function(){return!l.getItem(p)}),y):g()})):y()}))},y=function(){l.setItem(p,"1");try{e()}finally{l.removeItem(p),l.getItem(u)===n&&l.removeItem(u),l.getItem(c)===n&&l.removeItem(c)}};try{if(!R_(l,!0))throw new Error("localStorage support check failed");g()}catch(e){d(e)}};var rx=E_("batch"),nx=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||k_.bind(rx.error,rx),this.lock=new tx(e,{storage:this.storage}),this.usePersistence=t.usePersistence,this.pid=t.pid||null,this.memQueue=[]};nx.prototype.enqueue=function(e,t,r){var n={id:A_(),flushAfter:(new Date).getTime()+2*t,payload:e};this.usePersistence?this.lock.withLock(k_.bind((function(){var t;try{var o=this.readFromStorage();o.push(n),(t=this.saveToStorage(o))&&this.memQueue.push(n)}catch(r){this.reportError("Error enqueueing item",e),t=!1}r&&r(t)}),this),k_.bind((function(e){this.reportError("Error acquiring storage lock",e),r&&r(!1)}),this),this.pid):(this.memQueue.push(n),r&&r(!0))},nx.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(this.usePersistence&&t.length<e){var r=this.readFromStorage();if(r.length){var n={};k_.each(t,(function(e){n[e.id]=!0}));for(var o=0;o<r.length;o++){var i=r[o];if((new Date).getTime()>i.flushAfter&&!n[i.id]&&(i.orphaned=!0,t.push(i),t.length>=e))break}}}return t};var ox=function(e,t){var r=[];return k_.each(e,(function(e){e.id&&!t[e.id]&&r.push(e)})),r};nx.prototype.removeItemsByID=function(e,t){var r={};if(k_.each(e,(function(e){r[e]=!0})),this.memQueue=ox(this.memQueue,r),this.usePersistence){var n=k_.bind((function(){var t;try{var n=this.readFromStorage();if(n=ox(n,r),t=this.saveToStorage(n)){n=this.readFromStorage();for(var o=0;o<n.length;o++){var i=n[o];if(i.id&&r[i.id])return this.reportError("Item not removed from storage"),!1}}}catch(r){this.reportError("Error removing items",e),t=!1}return t}),this);this.lock.withLock((function(){var e=n();t&&t(e)}),k_.bind((function(e){var r=!1;if(this.reportError("Error acquiring storage lock",e),!R_(this.storage,!0)&&!(r=n()))try{this.storage.removeItem(this.storageKey)}catch(e){this.reportError("Error clearing queue",e)}t&&t(r)}),this),this.pid)}else t&&t(!0)};var ix=function(e,t){var r=[];return k_.each(e,(function(e){var n=e.id;if(n in t){var o=t[n];null!==o&&(e.payload=o,r.push(e))}else r.push(e)})),r};nx.prototype.updatePayloads=function(e,t){this.memQueue=ix(this.memQueue,e),this.usePersistence?this.lock.withLock(k_.bind((function(){var r;try{var n=this.readFromStorage();n=ix(n,e),r=this.saveToStorage(n)}catch(t){this.reportError("Error updating items",e),r=!1}t&&t(r)}),this),k_.bind((function(e){this.reportError("Error acquiring storage lock",e),t&&t(!1)}),this),this.pid):t&&t(!0)},nx.prototype.readFromStorage=function(){var e;try{(e=this.storage.getItem(this.storageKey))&&(e=F_(e),k_.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]},nx.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,j_(e)),!0}catch(e){return this.reportError("Error saving queue",e),!1}},nx.prototype.clear=function(){this.memQueue=[],this.usePersistence&&this.storage.removeItem(this.storageKey)};var ax=E_("batch"),sx=function(e,t){this.errorReporter=t.errorReporter,this.queue=new nx(e,{errorReporter:k_.bind(this.reportError,this),storage:t.storage,usePersistence:t.usePersistence}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1};sx.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)},sx.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},sx.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},sx.prototype.clear=function(){this.queue.clear()},sx.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},sx.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},sx.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(k_.bind((function(){this.stopped||this.flush()}),this),this.flushInterval))},sx.prototype.flush=function(e){try{if(this.requestInProgress)return void ax.log("Flush: Request already in progress");e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),n=this.batchSize,o=this.queue.fillBatch(n),i=o.length===n,a=[],s={};if(k_.each(o,(function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=k_.extend({},t.properties,{mp_sent_by_lib_version:r_.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&a.push(t)}s[e.id]=t}),this),a.length<1)return void this.resetFlush();this.requestInProgress=!0;var l=k_.bind((function(a){this.requestInProgress=!1;try{var l=!1;if(e.unloading)this.queue.updatePayloads(s);else if(k_.isObject(a)&&"timeout"===a.error&&(new Date).getTime()-r>=t)this.reportError("Network timeout; retrying"),this.flush();else if(k_.isObject(a)&&(a.httpStatusCode>=500||429===a.httpStatusCode||a.httpStatusCode<=0&&(p=Jv.navigator.onLine,!k_.isUndefined(p)&&!p)||"timeout"===a.error)){var c=2*this.flushInterval;a.retryAfter&&(c=1e3*parseInt(a.retryAfter,10)||c),c=Math.min(6e5,c),this.reportError("Error; retry in "+c+" ms"),this.scheduleFlush(c)}else if(k_.isObject(a)&&413===a.httpStatusCode)if(o.length>1){var u=Math.max(1,Math.floor(n/2));this.batchSize=Math.min(this.batchSize,u,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),l=!0;else l=!0;l&&(this.queue.removeItemsByID(k_.map(o,(function(e){return e.id})),k_.bind((function(e){e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!i?this.resetFlush():this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())}),this)),k_.each(o,k_.bind((function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})}),this)))}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var p}),this),c={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(c.transport="sendBeacon"),ax.log("MIXPANEL REQUEST:",a),this.sendRequest(a,c,l)}catch(e){this.reportError("Error flushing request queue",e),this.resetFlush()}},sx.prototype.reportError=function(e,t){if(ax.error.apply(ax.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){ax.error(t)}};var lx=E_("recorder"),cx=Jv.CompressionStream,ux={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},px=new Set([t_.MouseMove,t_.MouseInteraction,t_.Scroll,t_.ViewportResize,t_.Input,t_.TouchMove,t_.MediaInteraction,t_.Drag,t_.Selection]),dx=function(e){this._mixpanel=e,this._stopRecording=null,this.recEvents=[],this.seqNo=0,this.replayId=null,this.replayStartTime=null,this.sendBatchId=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=i_,this.recordMinMs=0,this._initBatcher()};dx.prototype._initBatcher=function(){this.batcher=new sx("__mprec",{libConfig:ux,sendRequestFunc:k_.bind(this.flushEventsWithOptOut,this),errorReporter:k_.bind(this.reportError,this),flushOnlyOnInterval:!0,usePersistence:!1})},dx.prototype.get_config=function(e){return this._mixpanel.get_config(e)},dx.prototype.startRecording=function(e){if(null===this._stopRecording){this.recordMaxMs=this.get_config("record_max_ms"),this.recordMaxMs>i_&&(this.recordMaxMs=i_,lx.critical("record_max_ms cannot be greater than "+i_+"ms. Capping value.")),this.recordMinMs=this.get_config("record_min_ms"),this.recordMinMs>8e3&&(this.recordMinMs=8e3,lx.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.recEvents=[],this.seqNo=0,this.replayStartTime=(new Date).getTime(),this.replayId=k_.UUID(),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=k_.bind((function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(k_.bind((function(){lx.log("Idle timeout reached, restarting recording."),this.resetRecording()}),this),this.get_config("record_idle_timeout_ms"))}),this),r=this.get_config("record_block_selector");""!==r&&null!==r||(r=void 0),this._stopRecording=Zv({emit:k_.bind((function(e){this.batcher.enqueue(e),function(e){return e.type===e_.IncrementalSnapshot&&px.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t())}),this),blockClass:this.get_config("record_block_class"),blockSelector:r,collectFonts:this.get_config("record_collect_fonts"),inlineImages:this.get_config("record_inline_images"),maskAllInputs:!0,maskTextClass:this.get_config("record_mask_text_class"),maskTextSelector:this.get_config("record_mask_text_selector")}),t(),this.maxTimeoutId=setTimeout(k_.bind(this.resetRecording,this),this.recordMaxMs)}else lx.log("Recording already in progress, skipping startRecording.")},dx.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)},dx.prototype.stopRecording=function(){null!==this._stopRecording&&(this._stopRecording(),this._stopRecording=null),this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),this.replayId=null,clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)},dx.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,k_.bind(this._onOptOut,this))},dx.prototype._onOptOut=function(e){0===e&&(this.recEvents=[],this.stopRecording())},dx.prototype._sendRequest=function(e,t,r,n){var o=k_.bind((function(t,r){200===t.status&&this.replayId===e&&this.seqNo++,n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}),this);Jv.fetch(this.get_config("api_host")+"/"+this.get_config("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.get_config("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then((function(e){e.json().then((function(t){o(e,t)})).catch((function(e){n({error:e})}))})).catch((function(e){n({error:e,httpStatusCode:0})}))},dx.prototype._flushEvents=W_((function(e,t,r){const n=e.length;if(n>0){var o=this.replayId,i=e[0].timestamp;0!==this.seqNo&&this.replayStartTime||(0!==this.seqNo&&this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=i);var a=e[n-1].timestamp-this.replayStartTime,s={distinct_id:String(this._mixpanel.get_distinct_id()),seq:this.seqNo,batch_start_time:i/1e3,replay_id:o,replay_length_ms:a,replay_start_time:this.replayStartTime/1e3},l=k_.JSONEncode(e),c=this._mixpanel.get_property("$device_id");c&&(s.$device_id=c);var u=this._mixpanel.get_property("$user_id");if(u&&(s.$user_id=u),cx){var p=new Blob([l],{type:"application/json"}).stream().pipeThrough(new cx("gzip"));new Response(p).blob().then(k_.bind((function(e){s.format="gzip",this._sendRequest(o,s,e,r)}),this))}else s.format="body",this._sendRequest(o,s,l,r)}})),dx.prototype.reportError=function(e,t){lx.error.apply(lx.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){lx.error(t)}},Jv.__mp_recorder=dx;var fx=function(){};fx.prototype.create_properties=function(){},fx.prototype.event_handler=function(){},fx.prototype.after_track_handler=function(){},fx.prototype.init=function(e){return this.mp=e,this},fx.prototype.track=function(e,t,r,n){var o=this,i=k_.dom_query(e);if(0!==i.length)return k_.each(i,(function(e){k_.register_event(e,this.override_event,(function(e){var i={},a=o.create_properties(r,this),s=o.mp.get_config("track_links_timeout");o.event_handler(e,this,i),window.setTimeout(o.track_callback(n,a,i,!0),s),o.mp.track(t,a,o.track_callback(n,a,i))}))}),this),!0;O_.error("The DOM query ("+e+") returned 0 elements")},fx.prototype.track_callback=function(e,t,r,n){n=n||!1;var o=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||o.after_track_handler(t,r,n))}},fx.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):k_.extend({},e)};var hx=function(){this.override_event="click"};k_.inherit(hx,fx),hx.prototype.create_properties=function(e,t){var r=hx.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},hx.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},hx.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var mx=function(){this.override_event="submit"};k_.inherit(mx,fx),mx.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},mx.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var gx="$set",yx="$set_once",bx="$unset",vx="$add",_x="$append",xx="$union",wx="$remove",Sx={set_action:function(e,t){var r={},n={};return k_.isObject(e)?k_.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[gx]=n,r},unset_action:function(e){var t={},r=[];return k_.isArray(e)||(e=[e]),k_.each(e,(function(e){this._is_reserved_property(e)||r.push(e)}),this),t[bx]=r,t},set_once_action:function(e,t){var r={},n={};return k_.isObject(e)?k_.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[yx]=n,r},union_action:function(e,t){var r={},n={};return k_.isObject(e)?k_.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=k_.isArray(e)?e:[e])}),this):n[e]=k_.isArray(t)?t:[t],r[xx]=n,r},append_action:function(e,t){var r={},n={};return k_.isObject(e)?k_.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[_x]=n,r},remove_action:function(e,t){var r={},n={};return k_.isObject(e)?k_.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[wx]=n,r},delete_action:function(){return{$delete:""}}},kx=function(){};k_.extend(kx.prototype,Sx),kx.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},kx.prototype.set=K_((function(e,t,r){var n=this.set_action(e,t);return k_.isObject(e)&&(r=t),this._send_request(n,r)})),kx.prototype.set_once=K_((function(e,t,r){var n=this.set_once_action(e,t);return k_.isObject(e)&&(r=t),this._send_request(n,r)})),kx.prototype.unset=K_((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),kx.prototype.union=K_((function(e,t,r){k_.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),kx.prototype.delete=K_((function(e){var t=this.delete_action();return this._send_request(t,e)})),kx.prototype.remove=K_((function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)})),kx.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=k_.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},kx.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},kx.prototype._get_config=function(e){return this._mixpanel.get_config(e)},kx.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},kx.prototype.remove=kx.prototype.remove,kx.prototype.set=kx.prototype.set,kx.prototype.set_once=kx.prototype.set_once,kx.prototype.union=kx.prototype.union,kx.prototype.unset=kx.prototype.unset,kx.prototype.toString=kx.prototype.toString;var Ox=function(){};k_.extend(Ox.prototype,Sx),Ox.prototype._init=function(e){this._mixpanel=e},Ox.prototype.set=H_((function(e,t,r){var n=this.set_action(e,t);return k_.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[gx]=k_.extend({},k_.info.people_properties(),n[gx]),this._send_request(n,r)})),Ox.prototype.set_once=H_((function(e,t,r){var n=this.set_once_action(e,t);return k_.isObject(e)&&(r=t),this._send_request(n,r)})),Ox.prototype.unset=H_((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),Ox.prototype.increment=H_((function(e,t,r){var n={},o={};return k_.isObject(e)?(k_.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void O_.error("Invalid increment value passed to mixpanel.people.increment - must be a number");o[t]=e}}),this),r=t):(k_.isUndefined(t)&&(t=1),o[e]=t),n[vx]=o,this._send_request(n,r)})),Ox.prototype.append=H_((function(e,t,r){k_.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)})),Ox.prototype.remove=H_((function(e,t,r){k_.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)})),Ox.prototype.union=H_((function(e,t,r){k_.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),Ox.prototype.track_charge=H_((function(e,t,r){if(k_.isNumber(e)||(e=parseFloat(e),!isNaN(e)))return this.append("$transactions",k_.extend({$amount:e},t),r);O_.error("Invalid value passed to mixpanel.people.track_charge - must be a number")})),Ox.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Ox.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}O_.error("mixpanel.people.delete_user() requires you to call identify() first")},Ox.prototype.toString=function(){return this._mixpanel.toString()+".people"},Ox.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),o=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),o&&(e.$had_persisted_distinct_id=o);var i=k_.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:i,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),k_.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),k_.truncate(i,255))},Ox.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Ox.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Ox.prototype._enqueue=function(e){gx in e?this._mixpanel.persistence._add_to_people_queue(gx,e):yx in e?this._mixpanel.persistence._add_to_people_queue(yx,e):bx in e?this._mixpanel.persistence._add_to_people_queue(bx,e):vx in e?this._mixpanel.persistence._add_to_people_queue(vx,e):_x in e?this._mixpanel.persistence._add_to_people_queue(_x,e):wx in e?this._mixpanel.persistence._add_to_people_queue(wx,e):xx in e?this._mixpanel.persistence._add_to_people_queue(xx,e):O_.error("Invalid call to _enqueue():",e)},Ox.prototype._flush_one_queue=function(e,t,r,n){var o=this,i=k_.extend({},this._mixpanel.persistence.load_queue(e)),a=i;k_.isUndefined(i)||!k_.isObject(i)||k_.isEmptyObject(i)||(o._mixpanel.persistence._pop_from_people_queue(e,i),o._mixpanel.persistence.save(),n&&(a=n(i)),t.call(o,a,(function(t,n){0===t&&o._mixpanel.persistence._add_to_people_queue(e,i),k_.isUndefined(r)||r(t,n)})))},Ox.prototype._flush=function(e,t,r,n,o,i,a){var s=this;this._flush_one_queue(gx,this.set,e),this._flush_one_queue(yx,this.set_once,n),this._flush_one_queue(bx,this.unset,i,(function(e){return k_.keys(e)})),this._flush_one_queue(vx,this.increment,t),this._flush_one_queue(xx,this.union,o);var l=this._mixpanel.persistence.load_queue(_x);if(!k_.isUndefined(l)&&k_.isArray(l)&&l.length)for(var c,u=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue(_x,c),k_.isUndefined(r)||r(e,t)},p=l.length-1;p>=0;p--)l=this._mixpanel.persistence.load_queue(_x),c=l.pop(),s._mixpanel.persistence.save(),k_.isEmptyObject(c)||s.append(c,u);var d=this._mixpanel.persistence.load_queue(wx);if(!k_.isUndefined(d)&&k_.isArray(d)&&d.length)for(var f,h=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue(wx,f),k_.isUndefined(a)||a(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel.persistence.load_queue(wx),f=d.pop(),s._mixpanel.persistence.save(),k_.isEmptyObject(f)||s.remove(f,h)},Ox.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Ox.prototype.set=Ox.prototype.set,Ox.prototype.set_once=Ox.prototype.set_once,Ox.prototype.unset=Ox.prototype.unset,Ox.prototype.increment=Ox.prototype.increment,Ox.prototype.append=Ox.prototype.append,Ox.prototype.remove=Ox.prototype.remove,Ox.prototype.union=Ox.prototype.union,Ox.prototype.track_charge=Ox.prototype.track_charge,Ox.prototype.clear_charges=Ox.prototype.clear_charges,Ox.prototype.delete_user=Ox.prototype.delete_user,Ox.prototype.toString=Ox.prototype.toString;var Cx,Ex="__mps",Tx="__mpso",Mx="__mpus",Rx="__mpa",Ix="__mpap",Nx="__mpr",Px="__mpu",Ax="$people_distinct_id",$x="__alias",Lx="__timers",Dx=[Ex,Tx,Mx,Rx,Ix,Nx,Px,Ax,$x,Lx],jx=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(O_.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&k_.localStorage.is_supported()?this.storage=k_.localStorage:this.storage=k_.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};jx.prototype.properties=function(){var e={};return this.load(),k_.each(this.props,(function(t,r){k_.include(Dx,r)||(e[r]=t)})),e},jx.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=k_.extend({},e))}},jx.prototype.upgrade=function(){var e,t;this.storage===k_.localStorage?(e=k_.cookie.parse(this.name),k_.cookie.remove(this.name),k_.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===k_.cookie&&(t=k_.localStorage.parse(this.name),k_.localStorage.remove(this.name),t&&this.register_once(t))},jx.prototype.save=function(){this.disabled||this.storage.set(this.name,k_.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},jx.prototype.load_prop=function(e){return this.load(),this.props[e]},jx.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},jx.prototype.clear=function(){this.remove(),this.props={}},jx.prototype.register_once=function(e,t,r){return!!k_.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),k_.each(e,(function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)}),this),this.save(),!0)},jx.prototype.register=function(e,t){return!!k_.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),k_.extend(this.props,e),this.save(),!0)},jx.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},jx.prototype.update_search_keyword=function(e){this.register(k_.info.searchInfo(e))},jx.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:k_.info.referringDomain(e)||"$direct"},"")},jx.prototype.get_referrer_info=function(){return k_.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},jx.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},jx.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},jx.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},jx.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},jx.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},jx.prototype.get_cross_subdomain=function(){return this.cross_subdomain},jx.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},jx.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],o=this._get_or_create_queue(gx),i=this._get_or_create_queue(yx),a=this._get_or_create_queue(bx),s=this._get_or_create_queue(vx),l=this._get_or_create_queue(xx),c=this._get_or_create_queue(wx,[]),u=this._get_or_create_queue(_x,[]);r===Ex?(k_.extend(o,n),this._pop_from_people_queue(vx,n),this._pop_from_people_queue(xx,n),this._pop_from_people_queue(bx,n)):r===Tx?(k_.each(n,(function(e,t){t in i||(i[t]=e)})),this._pop_from_people_queue(bx,n)):r===Mx?k_.each(n,(function(e){k_.each([o,i,s,l],(function(t){e in t&&delete t[e]})),k_.each(u,(function(t){e in t&&delete t[e]})),a[e]=!0})):r===Rx?(k_.each(n,(function(e,t){t in o?o[t]+=e:(t in s||(s[t]=0),s[t]+=e)}),this),this._pop_from_people_queue(bx,n)):r===Px?(k_.each(n,(function(e,t){k_.isArray(e)&&(t in l||(l[t]=[]),l[t]=l[t].concat(e))})),this._pop_from_people_queue(bx,n)):r===Nx?(c.push(n),this._pop_from_people_queue(_x,n)):r===Ix&&(u.push(n),this._pop_from_people_queue(bx,n)),O_.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),O_.log(t),this.save()},jx.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];k_.isUndefined(r)||k_.each(t,(function(t,n){e===_x||e===wx?k_.each(r,(function(e){e[n]===t&&delete e[n]})):delete r[n]}),this)},jx.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},jx.prototype._get_queue_key=function(e){return e===gx?Ex:e===yx?Tx:e===bx?Mx:e===vx?Rx:e===_x?Ix:e===wx?Nx:e===xx?Px:void O_.error("Invalid queue:",e)},jx.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=k_.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},jx.prototype.set_event_timer=function(e,t){var r=this.load_prop(Lx)||{};r[e]=t,this.props[Lx]=r,this.save()},jx.prototype.remove_event_timer=function(e){var t=(this.load_prop(Lx)||{})[e];return k_.isUndefined(t)||(delete this.props[Lx][e],this.save()),t};var Fx,zx=function(e,t){throw new Error(e+" not available in this build.")},Bx=function(e){return e},Vx=function(){},Ux="mixpanel",qx="base64",Wx="$device:",Hx=Jv.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Kx=!Hx&&-1===y_.indexOf("MSIE")&&-1===y_.indexOf("Mozilla"),Gx=null;f_.sendBeacon&&(Gx=function(){return f_.sendBeacon.apply(f_,arguments)});var Xx={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},Yx={api_host:"https://api-js.mixpanel.com",api_routes:Xx,api_method:"POST",api_transport:"XHR",api_payload_format:qx,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Vx,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Vx,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_collect_fonts:!1,record_idle_timeout_ms:18e5,record_inline_images:!1,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:i_,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Qx=!1,Zx=function(){},Jx=function(e,t,r){var n,o=r===Ux?Fx:Fx[r];if(o&&0===Cx)n=o;else{if(o&&!k_.isArray(o))return void O_.error("You have already initialized "+r);n=new Zx}if(n._cached_groups={},n._init(e,t,r),n.people=new Ox,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var i=k_.info.campaignParams(null),a={},s=!1;k_.each(i,(function(e,t){a["initial_"+t]=e,e&&(s=!0)})),s&&n.people.set_once(a)}return r_.DEBUG=r_.DEBUG||n.get_config("debug"),!k_.isUndefined(o)&&k_.isArray(o)&&(n._execute_array.call(n.people,o.people),n._execute_array(o)),n};Zx.prototype.init=function(e,t,r){if(k_.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==Ux){var n=Jx(e,t,r);return Fx[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},Zx.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||Yx.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.set_config(k_.extend({},Yx,n,t,{name:r,token:e,callback_fn:(r===Ux?r:Ux+"."+r)+"._jsc"})),this._jsc=Vx,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(k_.localStorage.is_supported(!0)&&Hx){if(this.init_batchers(),Gx&&Jv.addEventListener){var o=k_.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);Jv.addEventListener("pagehide",(function(e){e.persisted&&o()})),Jv.addEventListener("visibilitychange",(function(){"hidden"===h_.visibilityState&&o()}))}}else this._batch_requests=!1,O_.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),k_.each(this.get_batcher_configs(),(function(e){O_.log("Clearing batch queue "+e.queue_key),k_.localStorage.remove(e.queue_key)}));this.persistence=this.cookie=new jx(this.config),this.unpersisted_superprops={},this._gdpr_init();var i=k_.UUID();this.get_distinct_id()||this.register_once({distinct_id:Wx+i,$device_id:i},"");var a=this.get_config("track_pageview");a&&this._init_url_change_tracking(a),this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent")&&this.start_session_recording()},Zx.prototype.start_session_recording=W_((function(){if(Jv.MutationObserver){var e=k_.bind((function(){this._recorder=this._recorder||new Jv.__mp_recorder(this),this._recorder.startRecording()}),this);k_.isUndefined(Jv.__mp_recorder)?zx(this.get_config("recorder_src"),e):e()}else O_.critical("Browser does not support MutationObserver; skipping session recording")})),Zx.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():O_.critical("Session recorder module not loaded")},Zx.prototype.get_session_recording_properties=function(){var e={};if(this._recorder){var t=this._recorder.replayId;t&&(e.$mp_replay_id=t)}return e},Zx.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=k_.info.campaignParams(null);k_.each(e,function(e,t){this.unregister(t)}.bind(this))}},Zx.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(h_.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(k_.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(h_.referrer)},Zx.prototype._dom_loaded=function(){k_.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||k_.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},Zx.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Qx)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},Zx.prototype._init_url_change_tracking=function(e){var t="";if(this.track_pageview()&&(t=k_.info.currentUrl()),k_.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){Jv.addEventListener("popstate",(function(){Jv.dispatchEvent(new Event("mp_locationchange"))})),Jv.addEventListener("hashchange",(function(){Jv.dispatchEvent(new Event("mp_locationchange"))}));var r=Jv.history.pushState;"function"==typeof r&&(Jv.history.pushState=function(e,t,n){r.call(Jv.history,e,t,n),Jv.dispatchEvent(new Event("mp_locationchange"))});var n=Jv.history.replaceState;"function"==typeof n&&(Jv.history.replaceState=function(e,t,r){n.call(Jv.history,e,t,r),Jv.dispatchEvent(new Event("mp_locationchange"))}),Jv.addEventListener("mp_locationchange",function(){var r=k_.info.currentUrl(),n=!1;"full-url"===e?n=r!==t:"url-with-path-and-query-string"===e?n=r.split("#")[0]!==t.split("#")[0]:"url-with-path"===e&&(n=r.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),n&&this.track_pageview()&&(t=r)}.bind(this))}},Zx.prototype._prepare_callback=function(e,t){if(k_.isUndefined(e))return null;if(Hx)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(o){delete r[n],e(o,t)},o},Zx.prototype._send_request=function(e,t,r,n){var o=!0;if(Kx)return this.__request_queue.push(arguments),o;var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},a=null;n||!k_.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=k_.extend(i,r||{}),Hx||(r.method="GET");var s="POST"===r.method,l=Gx&&s&&"sendbeacon"===r.transport.toLowerCase(),c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),Hx||(n?t.callback=n:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),s&&(a="data="+encodeURIComponent(t.data),delete t.data),e+="?"+k_.HTTPBuildQuery(t);var u=this;if("img"in t){var p=h_.createElement("img");p.src=e,h_.body.appendChild(p)}else if(l){try{o=Gx(e,a)}catch(e){u.report_error(e),o=!1}try{n&&n(o?1:0)}catch(e){u.report_error(e)}}else if(Hx)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(s&&(f["Content-Type"]="application/x-www-form-urlencoded"),k_.each(f,(function(e,t){d.setRequestHeader(t,e)})),r.timeout_ms&&void 0!==d.timeout){d.timeout=r.timeout_ms;var h=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(n)if(c){var t;try{t=k_.JSONDecode(d.responseText)}catch(e){if(u.report_error(e),!r.ignore_json_errors)return;t=d.responseText}n(t)}else n(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-h>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,u.report_error(e),n)if(c){var o=d.responseHeaders||{};n({status:0,httpStatusCode:d.status,error:e,retryAfter:o["Retry-After"]})}else n(0)},d.send(a)}catch(e){u.report_error(e),o=!1}else{var m=h_.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=h_.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return o},Zx.prototype._execute_array=function(e){var t,r=[],n=[],o=[];k_.each(e,(function(e){e&&(t=e[0],k_.isArray(t)?o.push(e):"function"==typeof e?e.call(this):k_.isArray(e)&&"alias"===t?r.push(e):k_.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?o.push(e):n.push(e))}),this);var i=function(e,t){k_.each(e,(function(e){if(k_.isArray(e[0])){var r=t;k_.each(e,(function(e){r=r[e[0]].apply(r,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};i(r,this),i(n,this),i(o,this)},Zx.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Zx.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},Zx.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=k_.bind((function(e){return new sx(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:k_.bind((function(t,r,n){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),r,this._prepare_callback(n,t))}),this),beforeSendHook:k_.bind((function(t){return this._run_hook("before_send_"+e.type,t)}),this),stopAllBatchingFunc:k_.bind(this.stop_batch_senders,this),usePersistence:!0})}),this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},Zx.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,k_.each(this.request_batchers,(function(e){e.start()})))},Zx.prototype.stop_batch_senders=function(){this._batch_requests=!1,k_.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},Zx.prototype.push=function(e){this._execute_array([e])},Zx.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Zx.prototype._encode_data_for_request=function(e){var t=k_.JSONEncode(e);return this.get_config("api_payload_format")===qx&&(t=k_.base64Encode(t)),{data:t}},Zx.prototype._track_or_batch=function(e,t){var r=k_.truncate(e.data,255),n=e.endpoint,o=e.batcher,i=e.should_send_immediately,a=e.send_request_options||{};t=t||Vx;var s=!0,l=k_.bind((function(){return a.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(O_.log("MIXPANEL REQUEST:"),O_.log(r),this._send_request(n,this._encode_data_for_request(r),a,this._prepare_callback(t,r))):null}),this);return this._batch_requests&&!i?o.enqueue(r,(function(e){e?t(1,r):l()})):s=l(),s&&r},Zx.prototype.track=W_((function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var i=r.send_immediately;if("function"!=typeof n&&(n=Vx),k_.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=k_.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!k_.isUndefined(a)){var s=(new Date).getTime()-a;t.$duration=parseFloat((s/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?k_.info.marketingParams():{};t=k_.extend({},k_.info.properties({mp_loader:this.get_config("mp_loader")}),l,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var c=this.get_config("property_blacklist");k_.isArray(c)?k_.each(c,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+c);var u={event:e,properties:t};return this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:i,send_request_options:r},n)}n(0)}})),Zx.prototype.set_group=W_((function(e,t,r){k_.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)})),Zx.prototype.add_group=W_((function(e,t,r){var n=this.get_property(e),o={};return void 0===n?(o[e]=[t],this.register(o)):-1===n.indexOf(t)&&(n.push(t),o[e]=n,this.register(o)),this.people.union(e,t,r)})),Zx.prototype.remove_group=W_((function(e,t,r){var n=this.get_property(e);if(void 0!==n){var o=n.indexOf(t);o>-1&&(n.splice(o,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)})),Zx.prototype.track_with_groups=W_((function(e,t,r,n){var o=k_.extend({},t||{});return k_.each(r,(function(e,t){null!=e&&(o[t]=e)})),this.track(e,o,n)})),Zx.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},Zx.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Zx.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new kx)._init(this,e,t),this._cached_groups[r]=n),n},Zx.prototype.track_pageview=W_((function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=k_.extend(k_.info.mpPageViewProperties(),k_.info.campaignParams(),k_.info.clickParams()),o=k_.extend({},n,e);return this.track(r,o)})),Zx.prototype.track_links=function(){return this._track_dom.call(this,hx,arguments)},Zx.prototype.track_forms=function(){return this._track_dom.call(this,mx,arguments)},Zx.prototype.time_event=function(e){k_.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var ew={persistent:!0},tw=function(e){var t;return t=k_.isObject(e)?e:k_.isUndefined(e)?{}:{days:e},k_.extend({},ew,t)};Zx.prototype.register=function(e,t){var r=tw(t);r.persistent?this.persistence.register(e,r.days):k_.extend(this.unpersisted_superprops,e)},Zx.prototype.register_once=function(e,t,r){var n=tw(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),k_.each(e,(function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)}),this))},Zx.prototype.unregister=function(e,t){(t=tw(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},Zx.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},Zx.prototype.identify=function(e,t,r,n,o,i,a,s){var l=this.get_distinct_id();if(e&&l!==e){if("string"==typeof e&&0===e.indexOf(Wx))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==l&&e!==this.get_property($x)&&(this.unregister($x),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,o,i,a,s),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})},Zx.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=k_.UUID();this.register_once({distinct_id:Wx+e,$device_id:e},"")},Zx.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},Zx.prototype.alias=function(e,t){if(e===this.get_property(Ax))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return k_.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single($x,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){r.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},Zx.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},Zx.prototype.set_config=function(e){k_.isObject(e)&&(k_.extend(this.config,e),e.batch_size&&k_.each(this.request_batchers,(function(e){e.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),r_.DEBUG=r_.DEBUG||this.get_config("debug"))},Zx.prototype.get_config=function(e){return this.config[e]},Zx.prototype._run_hook=function(e){var t=(this.config.hooks[e]||Bx).apply(this,c_.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},Zx.prototype.get_property=function(e){return this.persistence.load_prop([e])},Zx.prototype.toString=function(){var e=this.get_config("name");return e!==Ux&&(e=Ux+"."+e),e},Zx.prototype._event_is_disabled=function(e){return k_.isBlockedUA(y_)||this._flags.disable_all_events||k_.include(this.__disabled_events,e)},Zx.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&k_.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!k_.cookie.get("mp_optout")||(k_.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},Zx.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()},Zx.prototype._gdpr_call_func=function(e,t){return t=k_.extend({track:k_.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),k_.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},Zx.prototype.opt_in_tracking=function(e){e=k_.extend({enable_persistence:!0},e),this._gdpr_call_func(B_,e),this._gdpr_update_persistence(e)},Zx.prototype.opt_out_tracking=function(e){(e=k_.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(V_,e),this._gdpr_update_persistence(e)},Zx.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(U_,e)},Zx.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(q_,e)},Zx.prototype.clear_opt_in_out_tracking=function(e){e=k_.extend({enable_persistence:!0},e),this._gdpr_call_func(G_,e),this._gdpr_update_persistence(e)},Zx.prototype.report_error=function(e,t){O_.error.apply(O_.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){O_.error(t)}},Zx.prototype.init=Zx.prototype.init,Zx.prototype.reset=Zx.prototype.reset,Zx.prototype.disable=Zx.prototype.disable,Zx.prototype.time_event=Zx.prototype.time_event,Zx.prototype.track=Zx.prototype.track,Zx.prototype.track_links=Zx.prototype.track_links,Zx.prototype.track_forms=Zx.prototype.track_forms,Zx.prototype.track_pageview=Zx.prototype.track_pageview,Zx.prototype.register=Zx.prototype.register,Zx.prototype.register_once=Zx.prototype.register_once,Zx.prototype.unregister=Zx.prototype.unregister,Zx.prototype.identify=Zx.prototype.identify,Zx.prototype.alias=Zx.prototype.alias,Zx.prototype.name_tag=Zx.prototype.name_tag,Zx.prototype.set_config=Zx.prototype.set_config,Zx.prototype.get_config=Zx.prototype.get_config,Zx.prototype.get_property=Zx.prototype.get_property,Zx.prototype.get_distinct_id=Zx.prototype.get_distinct_id,Zx.prototype.toString=Zx.prototype.toString,Zx.prototype.opt_out_tracking=Zx.prototype.opt_out_tracking,Zx.prototype.opt_in_tracking=Zx.prototype.opt_in_tracking,Zx.prototype.has_opted_out_tracking=Zx.prototype.has_opted_out_tracking,Zx.prototype.has_opted_in_tracking=Zx.prototype.has_opted_in_tracking,Zx.prototype.clear_opt_in_out_tracking=Zx.prototype.clear_opt_in_out_tracking,Zx.prototype.get_group=Zx.prototype.get_group,Zx.prototype.set_group=Zx.prototype.set_group,Zx.prototype.add_group=Zx.prototype.add_group,Zx.prototype.remove_group=Zx.prototype.remove_group,Zx.prototype.track_with_groups=Zx.prototype.track_with_groups,Zx.prototype.start_batch_senders=Zx.prototype.start_batch_senders,Zx.prototype.stop_batch_senders=Zx.prototype.stop_batch_senders,Zx.prototype.start_session_recording=Zx.prototype.start_session_recording,Zx.prototype.stop_session_recording=Zx.prototype.stop_session_recording,Zx.prototype.get_session_recording_properties=Zx.prototype.get_session_recording_properties,Zx.prototype.DEFAULT_API_ROUTES=Xx,jx.prototype.properties=jx.prototype.properties,jx.prototype.update_search_keyword=jx.prototype.update_search_keyword,jx.prototype.update_referrer_info=jx.prototype.update_referrer_info,jx.prototype.get_cross_subdomain=jx.prototype.get_cross_subdomain,jx.prototype.clear=jx.prototype.clear;var rw={},nw=(zx=function(e,t){t()},Cx=0,(Fx=new Zx).init=function(e,t,r){if(r)return Fx[r]||(Fx[r]=rw[r]=Jx(e,t,r),Fx[r]._loaded()),Fx[r];var n=Fx;rw[Ux]?n=rw[Ux]:e&&((n=Jx(e,t,Ux))._loaded(),rw[Ux]=n),Fx=n,1===Cx&&(Jv[Ux]=Fx),k_.each(rw,(function(e,t){t!==Ux&&(Fx[t]=e)})),Fx._=k_},Fx.init(),function(){function e(){e.done||(e.done=!0,Qx=!0,Kx=!1,k_.each(rw,(function(e){e._dom_loaded()})))}if(h_.addEventListener)"complete"===h_.readyState?e():h_.addEventListener("DOMContentLoaded",e,!1);else if(h_.attachEvent){h_.attachEvent("onreadystatechange",e);var t=!1;try{t=null===Jv.frameElement}catch(e){}h_.documentElement.doScroll&&t&&function t(){try{h_.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}k_.register_event(Jv,"load",e,!0)}(),Fx);const ow="elementor-one-assets";let iw=null;function aw(){return iw}const sw={initialize(e,t){if(!iw)try{nw.init(e,{debug:"production"!==t,track_pageview:!1,persistence:"localStorage"},ow),iw=nw[ow],iw.opt_in_tracking()}catch(e){console.warn("[elementor-one-assets] Failed to initialize tracking:",e)}},registerOnce(e){const t=aw();t?.register_once(e)},track(e,t){const r=aw();console.log(r),r?.track(e,t),console.log("sent")},isInitialized:()=>null!==iw},lw="plugin-settings",cw=e=>{const{enabled:t=!0}=e||{};return Zg({queryKey:[lw],queryFn:()=>Qy.getPluginSettings(),enabled:t})},uw=async e=>{try{const t=await fetch(e);if(!t.ok)throw new Error(`HTTP ${t.status} ${t.statusText} when fetching image from: ${e}`);const r=await t.blob();return new Promise(((e,t)=>{const n=new FileReader;n.onload=()=>e(n.result),n.onerror=()=>t(new Error("Base64 conversion failed")),n.readAsDataURL(r)}))}catch(t){return console.warn(`Failed to convert image ${e}:`,t),e}},pw=new Hm({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnMount:!1,retryOnMount:!1,retry:!1}}}),dw=u(null),fw=({env:t,language:r="en",isRTL:n=!1,children:o})=>{const i=m((()=>(e=>ey[e])(t)),[t]),a=m((()=>({config:i,isRTL:n})),[i,n]);return h((()=>{oh.changeLanguage(r)}),[r]),h((()=>{}),[i]),h((()=>{sw.initialize("150605b3b9f979922f2ac5a52e2dcfe9",t)}),[t]),e(Kg,{client:pw,children:e(dw.Provider,{value:a,children:o})})},hw=()=>{const e=a(dw);if(!e)throw new Error("Wrap your component in <ElementorOneAssetsProvider> to access the env config");return e.config};var mw=ta;const gw=()=>{const e=as();return mw(e.breakpoints.down("sm"))};function yw(e){return jo("MuiSkeleton",e)}zi("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const bw=["animation","className","component","height","style","variant","width"];let vw,_w,xw,ww,Sw=e=>e;const kw=jt(vw||(vw=Sw`
101
+ `),Pu))),Du=n.forwardRef((function(t,r){const n=Ri({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:p="indeterminate"}=n,d=v(n,Cu),f=_({},n,{color:i,disableShrink:a,size:s,thickness:c,value:u,variant:p}),h=(e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e;return re({root:["root",r,`color${tn(n)}`],svg:["svg"],circle:["circle",`circle${tn(r)}`,o&&"circleDisableShrink"]},Ou,t)})(f),m={},g={},y={};if("determinate"===p){const e=2*Math.PI*((44-c)/2);m.strokeDasharray=e.toFixed(3),y["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return e(Au,_({className:te(h.root,o),style:_({width:s,height:s},g,l),ownerState:f,ref:r,role:"progressbar"},y,d,{children:e($u,{className:h.svg,ownerState:f,viewBox:"22 22 44 44",children:e(Lu,{className:h.circle,style:m,ownerState:f,cx:44,cy:44,r:(44-c)/2,fill:"none",strokeWidth:c})})}))}));"production"!==process.env.NODE_ENV&&(Du.propTypes={classes:J.object,className:J.string,color:J.oneOfType([J.oneOf(["inherit","primary","secondary","error","info","success","warning"]),J.string]),disableShrink:Li(J.bool,(e=>e.disableShrink&&e.variant&&"indeterminate"!==e.variant?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null)),size:J.oneOfType([J.number,J.string]),style:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),thickness:J.number,value:J.number,variant:J.oneOf(["determinate","indeterminate"])});const ju={color:"inherit",size:"1em"},Fu=o.forwardRef(((e,t)=>o.createElement(Du,{...ju,...e,ref:t})));Fu.defaultProps=ju;var zu=Fu;const Bu="rgba(0, 0, 0, 0.04)",Vu="rgba(0, 0, 0, 0.08)",Uu=Dl(ku)((({theme:e,ownerState:t})=>{const{color:r,unstableToColor:n,unstableGradientAngle:o}=t,i=r&&"inherit"!==r?r:"primary",a=!!e.palette[i]?.__unstableTonalMain,s=({variant:e})=>"unstableTonal"===e&&a,l=({variant:e})=>!!e&&!["contained","outlined","text"].includes(e);return{variants:[{props:()=>t.loading&&"center"===t.loadingPosition,style:{"&.MuiButtonBase-root":{"&, &:hover, &:focus, &:active":{color:"transparent"}},"& .MuiButton-loadingWrapper":{display:"contents","& .MuiButton-loadingIndicator":{display:"flex",position:"absolute",left:"50%",transform:"translateX(-50%)",color:e.palette.action.disabled}}}},{props:e=>s(e)&&"inherit"!==e.color&&!e.disabled,style:{background:e.palette[i]?.__unstableTonalMain,color:e.palette[i].main,"&:hover":{backgroundColor:e.palette[i]?.__unstableTonalDark}}},{props:e=>e.disabled&&l(e),style:{background:e.palette.action.disabledBackground,color:e.palette.action.disabled}},{props:e=>s(e)&&"inherit"===e.color,style:{background:Bu,color:"inherit","&:hover":{backgroundColor:Vu}}},{props:e=>"unstableTonal"===e.variant&&!a,style:{background:"#ff0000",color:"#ff0000"}},{props:e=>"small"===e.size&&l(e),style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:e=>"large"===e.size&&l(e),style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:e=>(({variant:e})=>"unstableGradient"===e&&a)(e)&&!e.disabled,style:Xu(e,o,r,n)},{props:e=>"unstableGradient"===e.variant&&!a,style:{background:"#ff0000",color:"#ff0000"}}]}})),qu=(e="primary",t="text",r)=>{if(e)return"inherit"===e?"inherit":"contained"===t?`${e}.contrastText`:"unstableTonal"===t?`${e}.main`:r.palette.primary.__unstableAccessibleMain&&gc.includes(e)?`${e}.${wl}`:`${e}.main`},Wu={loading:!1,loadingIndicator:o.createElement(zu,{color:"inherit",size:16}),loadingPosition:"center"},Hu=o.forwardRef(((e,t)=>{const r={...Wu,...e},n=o.useContext(yu),i=as(),{sx:a={},unstableToColor:s,unstableGradientAngle:l,...c}=function(e){const{loading:t,loadingPosition:r,loadingIndicator:n,...i}=e;if(!t)return i;switch(r){case"start":i.startIcon=n;break;case"end":i.endIcon=n;break;case"center":i.children=o.createElement(Gu,{loadingIndicator:n},e.children)}return{...i,disabled:!0}}(r),u={...c,loading:r.loading,loadingPosition:r.loadingPosition,loadingIndicator:r.loadingIndicator,unstableToColor:s,unstableGradientAngle:l};let p={};const d=c.href?xl:"&:hover,&:focus,&:active",f=c.color||n?.color,h=c.variant||n?.variant;return p={[d]:{color:qu(f,h,i)}},o.createElement(Uu,{...c,color:f,variant:h,sx:{...p,...a},ref:t,ownerState:u})}));var Ku=Hu;function Gu({loadingIndicator:e,children:t}){return o.createElement(o.Fragment,null,o.createElement("div",{className:"MuiButton-loadingWrapper"},o.createElement("div",{className:"MuiButton-loadingIndicator"},e)),t)}function Xu(e,t,r,n){if(!r)return;const o=r,i=function(e,t){if(void 0!==t)return t;const{__unstableGradientAngle:r}=e.palette.action;return void 0!==r?r:125}(e,t);let{main:a,__unstableTonalMain:s,__unstableTonalDark:l}=e.palette[o]||{};"inherit"===r&&(a="inherit",s=Bu,l=Vu);const c=[s],u=[l];if(n){const t=n,{__unstableTonalMain:r,__unstableTonalDark:o}=e.palette[t];c.push(r),u.push(o)}return{color:a,backgroundImage:`linear-gradient( ${i}deg, ${c.join(", ")} )`,"&:hover":{backgroundImage:`linear-gradient( ${i}deg, ${u.join(",")} )`}}}Hu.defaultProps=Wu;const Yu={};function Qu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];tp(t[0])&&Yu[t[0]]||(tp(t[0])&&(Yu[t[0]]=new Date),function(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];tp(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}(...t))}const Zu=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout((()=>{e.off("initialized",r)}),0),t()};e.on("initialized",r)}},Ju=(e,t,r)=>{e.loadNamespaces(t,Zu(e,r))},ep=(e,t,r,n)=>{tp(r)&&(r=[r]),r.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,Zu(e,n))},tp=e=>"string"==typeof e,rp=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,np={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},op=e=>np[e];let ip,ap={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(rp,op)};const sp={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ap={...ap,...e}}(e.options.react),(e=>{ip=e})(e)}},lp=u();class cp{addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}constructor(){this.getUsedNamespaces=()=>Object.keys(this.usedNamespaces),this.usedNamespaces={}}}const up=(e,t,r,n)=>e.getFixedT(t,r,n),pp=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:r}=t,{i18n:n,defaultNS:o}=a(lp)||{},i=r||n||ip;if(i&&!i.reportNamespaces&&(i.reportNamespaces=new cp),!i){Qu("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return tp(t)?t:"object"==typeof(r=t)&&null!==r&&tp(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var r},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}i.options.react&&void 0!==i.options.react.wait&&Qu("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...ap,...i.options.react,...t},{useSuspense:l,keyPrefix:c}=s;let u=e||o||i.options&&i.options.defaultNS;u=tp(u)?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const m=(i.isInitialized||i.initializedStoreOnce)&&u.every((e=>function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;const a=(e,r)=>{const n=t.services.backendConnector.state[`${e}|${r}`];return-1===n||2===n};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(n,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(n,e)||o&&!a(i,e)))}(e,t,r):(Qu("i18n.languages were undefined or empty",t.languages),!0)}(e,i,s))),g=((e,t,r,n)=>p(up(e,t,r,n),[e,t,r,n]))(i,t.lng||null,"fallback"===s.nsMode?u:u[0],c),y=()=>g,b=()=>up(i,t.lng||null,"fallback"===s.nsMode?u:u[0],c),[v,_]=d(y);let x=u.join();t.lng&&(x=`${t.lng}${x}`);const w=(e=>{const t=f();return h((()=>{t.current=e}),[e,void 0]),t.current})(x),S=f(!0);h((()=>{const{bindI18n:e,bindI18nStore:r}=s;S.current=!0,m||l||(t.lng?ep(i,t.lng,u,(()=>{S.current&&_(b)})):Ju(i,u,(()=>{S.current&&_(b)}))),m&&w&&w!==x&&S.current&&_(b);const n=()=>{S.current&&_(b)};return e&&i&&i.on(e,n),r&&i&&i.store.on(r,n),()=>{S.current=!1,e&&i&&e.split(" ").forEach((e=>i.off(e,n))),r&&i&&r.split(" ").forEach((e=>i.store.off(e,n)))}}),[i,x]),h((()=>{S.current&&m&&_(y)}),[i,c,m]);const k=[v,i,m];if(k.t=v,k.i18n=i,k.ready=m,m)return k;if(!m&&!l)return k;throw new Promise((e=>{t.lng?ep(i,t.lng,u,(()=>e())):Ju(i,u,(()=>e()))}))};function dp(e){if("undefined"==typeof window)return e;const t=n.useRef(null);return n.useLayoutEffect((()=>{t.current=e})),n.useCallback(((...e)=>{var r;null===(r=t.current)||void 0===r||r.call(t,...e)}),[])}const fp={},hp={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function mp({isOpen:e,anchorEl:t,anchorPosition:r,close:n,popupId:o,onMouseLeave:i,disableAutoFocus:a,_openEventType:s}){return{id:o,anchorEl:t,anchorPosition:r,anchorReference:"contextmenu"===s?"anchorPosition":"anchorEl",open:e,onClose:n,onMouseLeave:i,...a&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function gp(e,t){const{anchorEl:r,_childPopupState:n}=t;return yp(r,e)||yp(function(e,{popupId:t}){if(!t)return null;const r="function"==typeof e.getRootNode?e.getRootNode():document;return"function"==typeof r.getElementById?r.getElementById(t):null}(e,t),e)||null!=n&&gp(e,n)}function yp(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}let bp=0;var vp,_p=({popupId:e,...t})=>function({parentPopupState:e,popupId:t,variant:r,disableAutoFocus:n}){const o=f(!0);h((()=>(o.current=!0,()=>{o.current=!1})),[]);const[i,a]=d(hp),s=p((e=>{o.current&&a(e)}),[]),l=p((e=>s((t=>({...t,setAnchorElUsed:!0,anchorEl:e??void 0})))),[]),c=dp((e=>(i.isOpen?g(e):u(e),i))),u=dp((t=>{const n=t instanceof Element?void 0:t,o=t instanceof Element?t:(null==t?void 0:t.currentTarget)instanceof Element?t.currentTarget:void 0;if("touchstart"===(null==n?void 0:n.type))return void s((e=>({...e,_deferNextOpen:!0})));const i=null==n?void 0:n.clientX,a=null==n?void 0:n.clientY,l="number"==typeof i&&"number"==typeof a?{left:i,top:a}:void 0,c=i=>{if(t||i.setAnchorElUsed||"dialog"===r||fp.missingEventOrAnchorEl||(fp.missingEventOrAnchorEl=!0,console.error("[material-ui-popup-state] WARNING","eventOrAnchorEl should be defined if setAnchorEl is not used")),e){if(!e.isOpen)return i;setTimeout((()=>e._setChildPopupState(x)))}const a={...i,isOpen:!0,anchorPosition:l,hovered:"mouseover"===(null==n?void 0:n.type)||i.hovered,focused:"focus"===(null==n?void 0:n.type)||i.focused,_openEventType:null==n?void 0:n.type};return null!=n&&n.currentTarget?i.setAnchorElUsed||(a.anchorEl=null==n?void 0:n.currentTarget):o&&(a.anchorEl=o),a};s((e=>e._deferNextOpen?(setTimeout((()=>s(c)),0),{...e,_deferNextOpen:!1}):c(e)))})),m=t=>{const{_childPopupState:r}=t;return setTimeout((()=>{null==r||r.close(),null==e||e._setChildPopupState(null)})),{...t,isOpen:!1,hovered:!1,focused:!1}},g=dp((e=>{const t=e instanceof Element?void 0:e;"touchstart"!==(null==t?void 0:t.type)?s((e=>e._deferNextClose?(setTimeout((()=>s(m)),0),{...e,_deferNextClose:!1}):m(e))):s((e=>({...e,_deferNextClose:!0})))})),y=p(((e,t)=>{e?u(t):g(t)}),[]),b=dp((e=>{const{relatedTarget:t}=e;s((e=>!e.hovered||t instanceof Element&&gp(t,x)?e:e.focused?{...e,hovered:!1}:m(e)))})),v=dp((e=>{if(!e)return;const{relatedTarget:t}=e;s((e=>!e.focused||t instanceof Element&&gp(t,x)?e:e.hovered?{...e,focused:!1}:m(e)))})),_=p((e=>s((t=>({...t,_childPopupState:e})))),[]),x={...i,setAnchorEl:l,popupId:t,variant:r,open:u,close:g,toggle:c,setOpen:y,onBlur:v,onMouseLeave:b,disableAutoFocus:n??Boolean(i.hovered||i.focused),_setChildPopupState:_};return x}({...t,popupId:f(e||"eui-popup-"+bp++).current}),xp={exports:{}},wp={};function Sp(){if(vp)return wp;vp=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case n:case i:case o:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case f:case d:case a:return e;default:return h}}case r:return h}}}return e=Symbol.for("react.module.reference"),wp.ContextConsumer=s,wp.ContextProvider=a,wp.Element=t,wp.ForwardRef=c,wp.Fragment=n,wp.Lazy=f,wp.Memo=d,wp.Portal=r,wp.Profiler=i,wp.StrictMode=o,wp.Suspense=u,wp.SuspenseList=p,wp.isAsyncMode=function(){return!1},wp.isConcurrentMode=function(){return!1},wp.isContextConsumer=function(e){return m(e)===s},wp.isContextProvider=function(e){return m(e)===a},wp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},wp.isForwardRef=function(e){return m(e)===c},wp.isFragment=function(e){return m(e)===n},wp.isLazy=function(e){return m(e)===f},wp.isMemo=function(e){return m(e)===d},wp.isPortal=function(e){return m(e)===r},wp.isProfiler=function(e){return m(e)===i},wp.isStrictMode=function(e){return m(e)===o},wp.isSuspense=function(e){return m(e)===u},wp.isSuspenseList=function(e){return m(e)===p},wp.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===u||t===p||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},wp.typeOf=m,wp}var kp,Op,Cp={};function Ep(){return kp||(kp=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case n:case i:case o:case u:case p:return m;default:var g=m&&m.$$typeof;switch(g){case l:case s:case c:case f:case d:case a:return g;default:return h}}case r:return h}}}e=Symbol.for("react.module.reference");var g=s,y=a,b=t,v=c,_=n,x=f,w=d,S=r,k=i,O=o,C=u,E=p,T=!1,M=!1;Cp.ContextConsumer=g,Cp.ContextProvider=y,Cp.Element=b,Cp.ForwardRef=v,Cp.Fragment=_,Cp.Lazy=x,Cp.Memo=w,Cp.Portal=S,Cp.Profiler=k,Cp.StrictMode=O,Cp.Suspense=C,Cp.SuspenseList=E,Cp.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Cp.isConcurrentMode=function(e){return M||(M=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Cp.isContextConsumer=function(e){return m(e)===s},Cp.isContextProvider=function(e){return m(e)===a},Cp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Cp.isForwardRef=function(e){return m(e)===c},Cp.isFragment=function(e){return m(e)===n},Cp.isLazy=function(e){return m(e)===f},Cp.isMemo=function(e){return m(e)===d},Cp.isPortal=function(e){return m(e)===r},Cp.isProfiler=function(e){return m(e)===i},Cp.isStrictMode=function(e){return m(e)===o},Cp.isSuspense=function(e){return m(e)===u},Cp.isSuspenseList=function(e){return m(e)===p},Cp.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===u||t===p||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Cp.typeOf=m}()),Cp}function Tp(){return Op||(Op=1,"production"===process.env.NODE_ENV?xp.exports=Sp():xp.exports=Ep()),xp.exports}var Mp=Tp();function Rp(e){return"string"==typeof e}function Ip(e,t,r){return void 0===e||Rp(e)?t:_({},t,{ownerState:_({},t.ownerState,r)})}const Np={disableDefaultClasses:!1},Pp=n.createContext(Np);function Ap(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function $p(e,t,r){return"function"==typeof e?e(t,r):e}function Lp(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}function Dp(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=te(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=_({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=_({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Ap(_({},o,n)),s=Lp(n),l=Lp(o),c=t(a),u=te(null==c?void 0:c.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),p=_({},null==c?void 0:c.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),d=_({},c,r,l,s);return u.length>0&&(d.className=u),Object.keys(p).length>0&&(d.style=p),{props:d,internalRef:c.ref}}"production"!==process.env.NODE_ENV&&(Pp.displayName="ClassNameConfiguratorContext");const jp=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Fp(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=v(e,jp),s=i?{}:$p(n,o),{props:l,internalRef:c}=Dp(_({},a,{externalSlotProps:s}));return Ip(r,_({},l,{ref:Ca(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const zp=n.createContext({});function Bp(e){return jo("MuiList",e)}"production"!==process.env.NODE_ENV&&(zp.displayName="ListContext"),zi("MuiList",["root","padding","dense","subheader"]);const Vp=["children","className","component","dense","disablePadding","subheader"],Up=Si("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>_({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),qp=n.forwardRef((function(r,o){const i=Ri({props:r,name:"MuiList"}),{children:a,className:s,component:l="ul",dense:c=!1,disablePadding:u=!1,subheader:p}=i,d=v(i,Vp),f=n.useMemo((()=>({dense:c})),[c]),h=_({},i,{component:l,dense:c,disablePadding:u}),m=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return re({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Bp,t)})(h);return e(zp.Provider,{value:f,children:t(Up,_({as:l,className:te(m.root,s),ref:o,ownerState:h},d,{children:[p,a]}))})}));"production"!==process.env.NODE_ENV&&(qp.propTypes={children:J.node,classes:J.object,className:J.string,component:J.elementType,dense:J.bool,disablePadding:J.bool,subheader:J.node,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object])});const Wp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Hp(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Kp(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Gp(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Xp(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Gp(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Yp=n.forwardRef((function(t,r){const{actions:o,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:p,variant:d="selectedMenu"}=t,f=v(t,Wp),h=n.useRef(null),m=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Qi((()=>{i&&h.current.focus()}),[i]),n.useImperativeHandle(o,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&r){const r=`${Fa(ba(e))}px`;h.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,h.current.style.width=`calc(100% + ${r})`}return h.current}})),[]);const g=Ca(h,r);let y=-1;n.Children.forEach(s,((e,t)=>{n.isValidElement(e)?("production"!==process.env.NODE_ENV&&Mp.isFragment(e)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===y)&&(y=t),y===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(y+=1,y>=s.length&&(y=-1))):y===t&&(y+=1,y>=s.length&&(y=-1))}));const b=n.Children.map(s,((e,t)=>{if(t===y){const t={};return a&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),n.cloneElement(e,t)}return e}));return e(qp,_({role:"menu",ref:g,className:l,onKeyDown:e=>{const t=h.current,r=e.key,n=ba(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Xp(t,n,u,c,Hp);else if("ArrowUp"===r)e.preventDefault(),Xp(t,n,u,c,Kp);else if("Home"===r)e.preventDefault(),Xp(t,null,u,c,Hp);else if("End"===r)e.preventDefault(),Xp(t,null,u,c,Kp);else if(1===r.length){const o=m.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&Gp(n,o);o.previousKeyMatched&&(s||Xp(t,n,!1,c,Hp,o))?e.preventDefault():o.previousKeyMatched=!1}p&&p(e)},tabIndex:i?0:-1},f,{children:b}))}));function Qp(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}"production"!==process.env.NODE_ENV&&(Yp.propTypes={autoFocus:J.bool,autoFocusItem:J.bool,children:J.node,className:J.string,disabledItemsFocusable:J.bool,disableListWrap:J.bool,onKeyDown:J.func,variant:J.oneOf(["menu","selectedMenu"])});const Zp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Jp(e){return`scale(${e}, ${e**2})`}const ed={entering:{opacity:1,transform:Jp(1)},entered:{opacity:1,transform:"none"}},td="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rd=n.forwardRef((function(t,r){const{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:p,onExit:d,onExited:f,onExiting:h,style:m,timeout:g="auto",TransitionComponent:y=qs}=t,b=v(t,Zp),x=Ra(),w=n.useRef(),S=as(),k=n.useRef(null),O=Ca(k,a.ref,r),C=e=>t=>{if(e){const r=k.current;void 0===t?e(r):e(r,t)}},E=C(p),T=C(((e,t)=>{const{duration:r,delay:n,easing:o}=Qp({style:m,timeout:g,easing:s},{mode:"enter"});let i;"auto"===g?(i=S.transitions.getAutoHeightDuration(e.clientHeight),w.current=i):i=r,e.style.transition=[S.transitions.create("opacity",{duration:i,delay:n}),S.transitions.create("transform",{duration:td?i:.666*i,delay:n,easing:o})].join(","),c&&c(e,t)})),M=C(u),R=C(h),I=C((e=>{const{duration:t,delay:r,easing:n}=Qp({style:m,timeout:g,easing:s},{mode:"exit"});let o;"auto"===g?(o=S.transitions.getAutoHeightDuration(e.clientHeight),w.current=o):o=t,e.style.transition=[S.transitions.create("opacity",{duration:o,delay:r}),S.transitions.create("transform",{duration:td?o:.666*o,delay:td?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Jp(.75),d&&d(e)})),N=C(f);return e(y,_({appear:i,in:l,nodeRef:k,onEnter:T,onEntered:M,onEntering:E,onExit:I,onExited:N,onExiting:R,addEndListener:e=>{"auto"===g&&x.start(w.current||0,e),o&&o(k.current,e)},timeout:"auto"===g?null:g},b,{children:(e,t)=>n.cloneElement(a,_({style:_({opacity:0,transform:Jp(.75),visibility:"exited"!==e||l?void 0:"hidden"},ed[e],m,a.props.style),ref:O},t))}))}));function nd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function od(e){return parseInt(va(e).getComputedStyle(e).paddingRight,10)||0}function id(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&nd(e,o)}))}function ad(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}"production"!==process.env.NODE_ENV&&(rd.propTypes={addEndListener:J.func,appear:J.bool,children:ca.isRequired,easing:J.oneOfType([J.shape({enter:J.string,exit:J.string}),J.string]),in:J.bool,onEnter:J.func,onEntered:J.func,onEntering:J.func,onExit:J.func,onExited:J.func,onExiting:J.func,style:J.object,timeout:J.oneOfType([J.oneOf(["auto"]),J.number,J.shape({appear:J.number,enter:J.number,exit:J.number})])}),rd.muiSupportAuto=!0;const sd=new class{add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&nd(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);id(t,e.mount,e.modalRef,n,!0);const o=ad(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=ad(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=function(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=ba(e);return t.body===e?va(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Fa(ba(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${od(n)+e}px`;const t=ba(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${od(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=ba(n).body;else{const t=n.parentElement,r=va(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=ad(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&nd(e.modalRef,t),id(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&nd(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}};const ld=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cd(e){const t=[],r=[];return Array.from(e.querySelectorAll(ld)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function ud(){return!0}function pd(r){const{children:o,disableAutoFocus:i=!1,disableEnforceFocus:a=!1,disableRestoreFocus:s=!1,getTabbable:l=cd,isEnabled:c=ud,open:u}=r,p=n.useRef(!1),d=n.useRef(null),f=n.useRef(null),h=n.useRef(null),m=n.useRef(null),g=n.useRef(!1),y=n.useRef(null),b=Ca(o.ref,y),v=n.useRef(null);n.useEffect((()=>{u&&y.current&&(g.current=!i)}),[i,u]),n.useEffect((()=>{if(!u||!y.current)return;const e=ba(y.current);return y.current.contains(e.activeElement)||(y.current.hasAttribute("tabIndex")||("production"!==process.env.NODE_ENV&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join("\n")),y.current.setAttribute("tabIndex","-1")),g.current&&y.current.focus()),()=>{s||(h.current&&h.current.focus&&(p.current=!0,h.current.focus()),h.current=null)}}),[u]),n.useEffect((()=>{if(!u||!y.current)return;const e=ba(y.current),t=t=>{v.current=t,!a&&c()&&"Tab"===t.key&&e.activeElement===y.current&&t.shiftKey&&(p.current=!0,f.current&&f.current.focus())},r=()=>{const t=y.current;if(null===t)return;if(!e.hasFocus()||!c()||p.current)return void(p.current=!1);if(t.contains(e.activeElement))return;if(a&&e.activeElement!==d.current&&e.activeElement!==f.current)return;if(e.activeElement!==m.current)m.current=null;else if(null!==m.current)return;if(!g.current)return;let r=[];if(e.activeElement!==d.current&&e.activeElement!==f.current||(r=l(y.current)),r.length>0){var n,o;const e=Boolean((null==(n=v.current)?void 0:n.shiftKey)&&"Tab"===(null==(o=v.current)?void 0:o.key)),t=r[0],i=r[r.length-1];"string"!=typeof t&&"string"!=typeof i&&(e?i.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[i,a,s,c,u,l]);const _=e=>{null===h.current&&(h.current=e.relatedTarget),g.current=!0};return t(n.Fragment,{children:[e("div",{tabIndex:u?0:-1,onFocus:_,ref:d,"data-testid":"sentinelStart"}),n.cloneElement(o,{ref:b,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),g.current=!0,m.current=e.target;const t=o.props.onFocus;t&&t(e)}}),e("div",{tabIndex:u?0:-1,onFocus:_,ref:f,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(pd.propTypes={children:ca,disableAutoFocus:J.bool,disableEnforceFocus:J.bool,disableRestoreFocus:J.bool,getTabbable:J.func,isEnabled:J.func,open:J.bool.isRequired}),"production"!==process.env.NODE_ENV&&(pd.propTypes=da(pd.propTypes));const dd=n.forwardRef((function(t,r){const{children:o,container:i,disablePortal:a=!1}=t,[s,l]=n.useState(null),c=Ca(n.isValidElement(o)?o.ref:null,r);if(Qi((()=>{a||l(function(e){return"function"==typeof e?e():e}(i)||document.body)}),[i,a]),Qi((()=>{if(s&&!a)return _a(r,s),()=>{_a(r,null)}}),[r,s,a]),a){if(n.isValidElement(o)){const e={ref:c};return n.cloneElement(o,e)}return e(n.Fragment,{children:o})}return e(n.Fragment,{children:s?y.createPortal(o,s):s})}));"production"!==process.env.NODE_ENV&&(dd.propTypes={children:J.node,container:J.oneOfType([fa,J.func]),disablePortal:J.bool}),"production"!==process.env.NODE_ENV&&(dd.propTypes=da(dd.propTypes));const fd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],hd={entering:{opacity:1},entered:{opacity:1}},md=n.forwardRef((function(t,r){const o=as(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:u,onEnter:p,onEntered:d,onEntering:f,onExit:h,onExited:m,onExiting:g,style:y,timeout:b=i,TransitionComponent:x=qs}=t,w=v(t,fd),S=n.useRef(null),k=Ca(S,l.ref,r),O=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},C=O(f),E=O(((e,t)=>{const r=Qp({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=o.transitions.create("opacity",r),e.style.transition=o.transitions.create("opacity",r),p&&p(e,t)})),T=O(d),M=O(g),R=O((e=>{const t=Qp({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=o.transitions.create("opacity",t),e.style.transition=o.transitions.create("opacity",t),h&&h(e)})),I=O(m);return e(x,_({appear:s,in:u,nodeRef:S,onEnter:E,onEntered:T,onEntering:C,onExit:R,onExited:I,onExiting:M,addEndListener:e=>{a&&a(S.current,e)},timeout:b},w,{children:(e,t)=>n.cloneElement(l,_({style:_({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},hd[e],y,l.props.style),ref:k},t))}))}));function gd(e){return jo("MuiBackdrop",e)}"production"!==process.env.NODE_ENV&&(md.propTypes={addEndListener:J.func,appear:J.bool,children:ca.isRequired,easing:J.oneOfType([J.shape({enter:J.string,exit:J.string}),J.string]),in:J.bool,onEnter:J.func,onEntered:J.func,onEntering:J.func,onExit:J.func,onExited:J.func,onExiting:J.func,style:J.object,timeout:J.oneOfType([J.number,J.shape({appear:J.number,enter:J.number,exit:J.number})])}),zi("MuiBackdrop",["root","invisible"]);const yd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bd=Si("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>_({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),vd=n.forwardRef((function(t,r){var n,o,i;const a=Ri({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:p={},invisible:d=!1,open:f,slotProps:h={},slots:m={},TransitionComponent:g=md,transitionDuration:y}=a,b=v(a,yd),x=_({},a,{component:c,invisible:d}),w=(e=>{const{classes:t,invisible:r}=e;return re({root:["root",r&&"invisible"]},gd,t)})(x),S=null!=(n=h.root)?n:p.root;return e(g,_({in:f,timeout:y},b,{children:e(bd,_({"aria-hidden":!0},S,{as:null!=(o=null!=(i=m.root)?i:u.Root)?o:c,className:te(w.root,l,null==S?void 0:S.className),ownerState:_({},x,null==S?void 0:S.ownerState),classes:w,ref:r,children:s}))}))}));function _d(e){return jo("MuiModal",e)}"production"!==process.env.NODE_ENV&&(vd.propTypes={children:J.node,classes:J.object,className:J.string,component:J.elementType,components:J.shape({Root:J.elementType}),componentsProps:J.shape({root:J.object}),invisible:J.bool,open:J.bool.isRequired,slotProps:J.shape({root:J.object}),slots:J.shape({root:J.elementType}),sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),TransitionComponent:J.elementType,transitionDuration:J.oneOfType([J.number,J.shape({appear:J.number,enter:J.number,exit:J.number})])}),zi("MuiModal",["root","hidden","backdrop"]);const xd=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],wd=Si("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>_({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Sd=Si(vd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),kd=n.forwardRef((function(r,o){var i,a,s,l,c,u;const p=Ri({name:"MuiModal",props:r}),{BackdropComponent:d=Sd,BackdropProps:f,className:h,closeAfterTransition:m=!1,children:g,container:y,component:b,components:x={},componentsProps:w={},disableAutoFocus:S=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:O=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:T=!1,hideBackdrop:M=!1,keepMounted:R=!1,onBackdropClick:I,open:N,slotProps:P,slots:A}=p,$=v(p,xd),L=_({},p,{closeAfterTransition:m,disableAutoFocus:S,disableEnforceFocus:k,disableEscapeKeyDown:O,disablePortal:C,disableRestoreFocus:E,disableScrollLock:T,hideBackdrop:M,keepMounted:R}),{getRootProps:D,getBackdropProps:j,getTransitionProps:F,portalRef:z,isTopModal:B,exited:V,hasTransition:U}=function(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=sd,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:u,open:p,rootRef:d}=e,f=n.useRef({}),h=n.useRef(null),m=n.useRef(null),g=Ca(m,d),[y,b]=n.useState(!p),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const w=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),S=()=>{i.mount(w(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},k=Oa((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ba(h.current).body;i.add(w(),e),m.current&&S()})),O=n.useCallback((()=>i.isTopModal(w())),[i]),C=Oa((e=>{h.current=e,e&&(p&&O()?S():m.current&&nd(m.current,x))})),E=n.useCallback((()=>{i.remove(w(),x)}),[x,i]);n.useEffect((()=>()=>{E()}),[E]),n.useEffect((()=>{p?k():v&&a||E()}),[p,E,v,a,k]);const T=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&O()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Ap(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=_({},r,t);return _({role:"presentation"},n,{onKeyDown:T(n),ref:g})},getBackdropProps:(e={})=>_({"aria-hidden":!0},e,{onClick:M(e),open:p}),getTransitionProps:()=>({onEnter:ma((()=>{b(!1),s&&s()}),null==c?void 0:c.props.onEnter),onExited:ma((()=>{b(!0),l&&l(),a&&E()}),null==c?void 0:c.props.onExited)}),rootRef:g,portalRef:C,isTopModal:O,exited:y,hasTransition:v}}(_({},L,{rootRef:o})),q=_({},L,{exited:V}),W=(e=>{const{open:t,exited:r,classes:n}=e;return re({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},_d,n)})(q),H={};if(void 0===g.props.tabIndex&&(H.tabIndex="-1"),U){const{onEnter:e,onExited:t}=F();H.onEnter=e,H.onExited=t}const K=null!=(i=null!=(a=null==A?void 0:A.root)?a:x.Root)?i:wd,G=null!=(s=null!=(l=null==A?void 0:A.backdrop)?l:x.Backdrop)?s:d,X=null!=(c=null==P?void 0:P.root)?c:w.root,Y=null!=(u=null==P?void 0:P.backdrop)?u:w.backdrop,Q=Fp({elementType:K,externalSlotProps:X,externalForwardedProps:$,getSlotProps:D,additionalProps:{ref:o,as:b},ownerState:q,className:te(h,null==X?void 0:X.className,null==W?void 0:W.root,!q.open&&q.exited&&(null==W?void 0:W.hidden))}),Z=Fp({elementType:G,externalSlotProps:Y,additionalProps:f,getSlotProps:e=>j(_({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:te(null==Y?void 0:Y.className,null==f?void 0:f.className,null==W?void 0:W.backdrop),ownerState:q});return R||N||U&&!V?e(dd,{ref:z,container:y,disablePortal:C,children:t(K,_({},Q,{children:[!M&&d?e(G,_({},Z)):null,e(pd,{disableEnforceFocus:k,disableAutoFocus:S,disableRestoreFocus:E,isEnabled:B,open:N,children:n.cloneElement(g,H)})]}))}):null}));function Od(e){return jo("MuiPopover",e)}"production"!==process.env.NODE_ENV&&(kd.propTypes={BackdropComponent:J.elementType,BackdropProps:J.object,children:ca.isRequired,classes:J.object,className:J.string,closeAfterTransition:J.bool,component:J.elementType,components:J.shape({Backdrop:J.elementType,Root:J.elementType}),componentsProps:J.shape({backdrop:J.oneOfType([J.func,J.object]),root:J.oneOfType([J.func,J.object])}),container:J.oneOfType([fa,J.func]),disableAutoFocus:J.bool,disableEnforceFocus:J.bool,disableEscapeKeyDown:J.bool,disablePortal:J.bool,disableRestoreFocus:J.bool,disableScrollLock:J.bool,hideBackdrop:J.bool,keepMounted:J.bool,onBackdropClick:J.func,onClose:J.func,onTransitionEnter:J.func,onTransitionExited:J.func,open:J.bool.isRequired,slotProps:J.shape({backdrop:J.oneOfType([J.func,J.object]),root:J.oneOfType([J.func,J.object])}),slots:J.shape({backdrop:J.elementType,root:J.elementType}),sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object])}),zi("MuiPopover",["root","paper"]);const Cd=["onEntering"],Ed=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Td=["slotProps"];function Md(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Rd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Id(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Nd(e){return"function"==typeof e?e():e}const Pd=Si(kd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ad=Si(us,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),$d=n.forwardRef((function(t,r){var o,i,a;const s=Ri({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:d="anchorEl",children:f,className:h,container:m,elevation:g=8,marginThreshold:y=16,open:b,PaperProps:x={},slots:w,slotProps:S,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:O=rd,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:T=!1}=s,M=v(s.TransitionProps,Cd),R=v(s,Ed),I=null!=(o=null==S?void 0:S.paper)?o:x,N=n.useRef(),P=Ca(N,I.ref),A=_({},s,{anchorOrigin:u,anchorReference:d,elevation:g,marginThreshold:y,externalPaperSlotProps:I,transformOrigin:k,TransitionComponent:O,transitionDuration:C,TransitionProps:M}),$=(e=>{const{classes:t}=e;return re({root:["root"],paper:["paper"]},Od,t)})(A),L=n.useCallback((()=>{if("anchorPosition"===d)return"production"!==process.env.NODE_ENV&&(p||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),p;const e=Nd(c),t=e&&1===e.nodeType?e:ba(N.current).body,r=t.getBoundingClientRect();if("production"!==process.env.NODE_ENV){const e=t.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}return{top:r.top+Md(r,u.vertical),left:r.left+Rd(r,u.horizontal)}}),[c,u.horizontal,u.vertical,p,d]),D=n.useCallback((e=>({vertical:Md(e,k.vertical),horizontal:Rd(e,k.horizontal)})),[k.horizontal,k.vertical]),j=n.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=D(t);if("none"===d)return{top:null,left:null,transformOrigin:Id(r)};const n=L();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,l=va(Nd(c)),u=l.innerHeight-y,p=l.innerWidth-y;if(null!==y&&o<y){const e=o-y;o-=e,r.vertical+=e}else if(null!==y&&a>u){const e=a-u;o-=e,r.vertical+=e}if("production"!==process.env.NODE_ENV&&t.height>u&&t.height&&u&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${t.height-u}px).`,"Please consider adding a `max-height` to improve the user-experience."].join("\n")),null!==y&&i<y){const e=i-y;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Id(r)}}),[c,d,L,D,y]),[F,z]=n.useState(b),B=n.useCallback((()=>{const e=N.current;if(!e)return;const t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,z(!0)}),[j]);n.useEffect((()=>(T&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B))),[c,T,B]),n.useEffect((()=>{b&&B()})),n.useImperativeHandle(l,(()=>b?{updatePosition:()=>{B()}}:null),[b,B]),n.useEffect((()=>{if(!b)return;const e=ga((()=>{B()})),t=va(c);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[c,b,B]);let V=C;"auto"!==C||O.muiSupportAuto||(V=void 0);const U=m||(c?ba(Nd(c)).body:void 0),q=null!=(i=null==w?void 0:w.root)?i:Pd,W=null!=(a=null==w?void 0:w.paper)?a:Ad,H=Fp({elementType:W,externalSlotProps:_({},I,{style:F?I.style:_({},I.style,{opacity:0})}),additionalProps:{elevation:g,ref:P},ownerState:A,className:te($.paper,null==I?void 0:I.className)}),K=Fp({elementType:q,externalSlotProps:(null==S?void 0:S.root)||{},externalForwardedProps:R,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:U,open:b},ownerState:A,className:te($.root,h)}),{slotProps:G}=K,X=v(K,Td);return e(q,_({},X,!Rp(q)&&{slotProps:G,disableScrollLock:T},{children:e(O,_({appear:!0,in:b,onEntering:(e,t)=>{E&&E(e,t),B()},onExited:()=>{z(!1)},timeout:V},M,{children:e(W,_({},H,{children:f}))}))}))}));function Ld(e){return jo("MuiMenu",e)}"production"!==process.env.NODE_ENV&&($d.propTypes={action:ha,anchorEl:Li(J.oneOfType([fa,J.func]),(e=>{if(e.open&&(!e.anchorReference||"anchorEl"===e.anchorReference)){const t=Nd(e.anchorEl);if(!t||1!==t.nodeType)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join("\n"));{const e=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}}return null})),anchorOrigin:J.shape({horizontal:J.oneOfType([J.oneOf(["center","left","right"]),J.number]).isRequired,vertical:J.oneOfType([J.oneOf(["bottom","center","top"]),J.number]).isRequired}),anchorPosition:J.shape({left:J.number.isRequired,top:J.number.isRequired}),anchorReference:J.oneOf(["anchorEl","anchorPosition","none"]),children:J.node,classes:J.object,className:J.string,container:J.oneOfType([fa,J.func]),disableScrollLock:J.bool,elevation:$i,marginThreshold:J.number,onClose:J.func,open:J.bool.isRequired,PaperProps:J.shape({component:ua}),slotProps:J.shape({paper:J.oneOfType([J.func,J.object]),root:J.oneOfType([J.func,J.object])}),slots:J.shape({paper:J.elementType,root:J.elementType}),sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),transformOrigin:J.shape({horizontal:J.oneOfType([J.oneOf(["center","left","right"]),J.number]).isRequired,vertical:J.oneOfType([J.oneOf(["bottom","center","top"]),J.number]).isRequired}),TransitionComponent:J.elementType,transitionDuration:J.oneOfType([J.oneOf(["auto"]),J.number,J.shape({appear:J.number,enter:J.number,exit:J.number})]),TransitionProps:J.object}),zi("MuiMenu",["root","paper","list"]);const Dd=["onEntering"],jd=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Fd={vertical:"top",horizontal:"right"},zd={vertical:"top",horizontal:"left"},Bd=Si($d,{shouldForwardProp:e=>wi(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vd=Si(Ad,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ud=Si(Yp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),qd=n.forwardRef((function(t,r){var o,i;const a=Ri({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:l,className:c,disableAutoFocusItem:u=!1,MenuListProps:p={},onClose:d,open:f,PaperProps:h={},PopoverClasses:m,transitionDuration:g="auto",TransitionProps:{onEntering:y}={},variant:b="selectedMenu",slots:x={},slotProps:w={}}=a,S=v(a.TransitionProps,Dd),k=v(a,jd),O=Ga(),C=_({},a,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:p,onEntering:y,PaperProps:h,transitionDuration:g,TransitionProps:S,variant:b}),E=(e=>{const{classes:t}=e;return re({root:["root"],paper:["paper"],list:["list"]},Ld,t)})(C),T=s&&!u&&f,M=n.useRef(null);let R=-1;n.Children.map(l,((e,t)=>{n.isValidElement(e)&&("production"!==process.env.NODE_ENV&&Mp.isFragment(e)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===R)&&(R=t))}));const I=null!=(o=x.paper)?o:Vd,N=null!=(i=w.paper)?i:h,P=Fp({elementType:x.root,externalSlotProps:w.root,ownerState:C,className:[E.root,c]}),A=Fp({elementType:I,externalSlotProps:N,ownerState:C,className:E.paper});return e(Bd,_({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?Fd:zd,slots:{paper:I,root:x.root},slotProps:{root:P,paper:A},open:f,ref:r,transitionDuration:g,TransitionProps:_({onEntering:(e,t)=>{M.current&&M.current.adjustStyleForScrollbar(e,{direction:O?"rtl":"ltr"}),y&&y(e,t)}},S),ownerState:C},k,{classes:m,children:e(Ud,_({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:M,autoFocus:s&&(-1===R||u),autoFocusItem:T,variant:b},p,{className:te(E.list,p.className),children:l}))}))}));"production"!==process.env.NODE_ENV&&(qd.propTypes={anchorEl:J.oneOfType([fa,J.func]),autoFocus:J.bool,children:J.node,classes:J.object,className:J.string,disableAutoFocusItem:J.bool,MenuListProps:J.object,onClose:J.func,open:J.bool.isRequired,PaperProps:J.object,PopoverClasses:J.object,slotProps:J.shape({paper:J.oneOfType([J.func,J.object]),root:J.oneOfType([J.func,J.object])}),slots:J.shape({paper:J.elementType,root:J.elementType}),sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),transitionDuration:J.oneOfType([J.oneOf(["auto"]),J.number,J.shape({appear:J.number,enter:J.number,exit:J.number})]),TransitionProps:J.object,variant:J.oneOf(["menu","selectedMenu"])});var Wd=o.forwardRef(((e,t)=>{const{direction:r}=as(),n={...e};return"rtl"===r&&(n.anchorOrigin?.horizontal&&(n.anchorOrigin={...n.anchorOrigin,horizontal:"left"===n.anchorOrigin.horizontal?"right":"left"}),n.transformOrigin?.horizontal&&(n.transformOrigin={...n.transformOrigin,horizontal:"left"===n.transformOrigin.horizontal?"right":"left"})),o.createElement($d,{...n,ref:t})}));const Hd={elevation:6},Kd=o.forwardRef(((e,t)=>o.createElement(qd,{as:Wd,...Hd,...e,ref:t})));Kd.defaultProps=Hd;var Gd=Kd;function Xd(e){return jo("MuiListItemIcon",e)}const Yd=zi("MuiListItemIcon",["root","alignItemsFlexStart"]),Qd=["className"],Zd=Si("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>_({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Jd=n.forwardRef((function(t,r){const o=Ri({props:t,name:"MuiListItemIcon"}),{className:i}=o,a=v(o,Qd),s=_({},o,{alignItems:n.useContext(zp).alignItems}),l=(e=>{const{alignItems:t,classes:r}=e;return re({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Xd,r)})(s);return e(Zd,_({className:te(l.root,i),ownerState:s,ref:r},a))}));function ef(e){return jo("MuiListItemText",e)}"production"!==process.env.NODE_ENV&&(Jd.propTypes={children:J.node,classes:J.object,className:J.string,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object])});const tf=zi("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),rf=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],nf=Si("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${tf.primary}`]:t.primary},{[`& .${tf.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((({ownerState:e})=>_({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),of=n.forwardRef((function(r,o){const i=Ri({props:r,name:"MuiListItemText"}),{children:a,className:s,disableTypography:l=!1,inset:c=!1,primary:u,primaryTypographyProps:p,secondary:d,secondaryTypographyProps:f}=i,h=v(i,rf),{dense:m}=n.useContext(zp);let g=null!=u?u:a,y=d;const b=_({},i,{disableTypography:l,inset:c,primary:!!g,secondary:!!y,dense:m}),x=(e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:i}=e;return re({root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},ef,t)})(b);return null==g||g.type===Is||l||(g=e(Is,_({variant:m?"body2":"body1",className:x.primary,component:null!=p&&p.variant?void 0:"span",display:"block"},p,{children:g}))),null==y||y.type===Is||l||(y=e(Is,_({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:y}))),t(nf,_({className:te(x.root,s),ownerState:b,ref:o},h,{children:[g,y]}))}));function af(e){return jo("MuiMenuItem",e)}"production"!==process.env.NODE_ENV&&(of.propTypes={children:J.node,classes:J.object,className:J.string,disableTypography:J.bool,inset:J.bool,primary:J.node,primaryTypographyProps:J.object,secondary:J.node,secondaryTypographyProps:J.object,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object])});const sf=zi("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),lf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],cf=Si(ml,{shouldForwardProp:e=>wi(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>_({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${lu.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${lu.inset}`]:{marginLeft:52},[`& .${tf.root}`]:{marginTop:0,marginBottom:0},[`& .${tf.inset}`]:{paddingLeft:36},[`& .${Yd.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&_({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Yd.root} svg`]:{fontSize:"1.25rem"}})))),uf=n.forwardRef((function(t,r){const o=Ri({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:p="menuitem",tabIndex:d,className:f}=o,h=v(o,lf),m=n.useContext(zp),g=n.useMemo((()=>({dense:s||m.dense||!1,disableGutters:c})),[m.dense,s,c]),y=n.useRef(null);Qi((()=>{i&&(y.current?y.current.focus():"production"!==process.env.NODE_ENV&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))}),[i]);const b=_({},o,{dense:g.dense,divider:l,disableGutters:c}),x=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return _({},a,re({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},af,a))})(o),w=Ca(y,r);let S;return o.disabled||(S=void 0!==d?d:-1),e(zp.Provider,{value:g,children:e(cf,_({ref:w,role:p,tabIndex:S,component:a,focusVisibleClassName:te(x.focusVisible,u),className:te(x.root,f)},h,{ownerState:b,classes:x}))})}));"production"!==process.env.NODE_ENV&&(uf.propTypes={autoFocus:J.bool,children:J.node,classes:J.object,className:J.string,component:J.elementType,dense:J.bool,disabled:J.bool,disableGutters:J.bool,divider:J.bool,focusVisibleClassName:J.string,role:J.string,selected:J.bool,sx:J.oneOfType([J.arrayOf(J.oneOfType([J.func,J.object,J.bool])),J.func,J.object]),tabIndex:J.number});var pf=o.forwardRef(((e,t)=>o.createElement(uf,{...e,ref:t}))),df=o.forwardRef(((e,t)=>o.createElement(Jd,{...e,ref:t}))),ff=o.forwardRef(((e,t)=>o.createElement(of,{...e,ref:t}))),hf=n.forwardRef(((e,t)=>n.createElement(ou,{viewBox:"0 0 24 24",...e,ref:t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 4C14 3.58579 14.3358 3.25 14.75 3.25H19.75C20.1642 3.25 20.5 3.58579 20.5 4V9C20.5 9.41421 20.1642 9.75 19.75 9.75C19.3358 9.75 19 9.41421 19 9V5.81066L10.2803 14.5303C9.98744 14.8232 9.51256 14.8232 9.21967 14.5303C8.92678 14.2374 8.92678 13.7626 9.21967 13.4697L17.9393 4.75H14.75C14.3358 4.75 14 4.41421 14 4ZM3.80546 7.05546C4.32118 6.53973 5.02065 6.25 5.75 6.25H10.75C11.1642 6.25 11.5 6.58579 11.5 7C11.5 7.41421 11.1642 7.75 10.75 7.75H5.75C5.41848 7.75 5.10054 7.8817 4.86612 8.11612C4.6317 8.35054 4.5 8.66848 4.5 9V18C4.5 18.3315 4.6317 18.6495 4.86612 18.8839C5.10054 19.1183 5.41848 19.25 5.75 19.25H14.75C15.0815 19.25 15.3995 19.1183 15.6339 18.8839C15.8683 18.6495 16 18.3315 16 18V13C16 12.5858 16.3358 12.25 16.75 12.25C17.1642 12.25 17.5 12.5858 17.5 13V18C17.5 18.7293 17.2103 19.4288 16.6945 19.9445C16.1788 20.4603 15.4793 20.75 14.75 20.75H5.75C5.02065 20.75 4.32118 20.4603 3.80546 19.9445C3.28973 19.4288 3 18.7293 3 18V9C3 8.27065 3.28973 7.57118 3.80546 7.05546Z"}))));const mf={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class gf{init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||mf,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new gf(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new gf(this.logger,e)}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}}var yf=new gf;class bf{on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&Array.from(this.observers[e].entries()).forEach((e=>{let[t,n]=e;for(let e=0;e<n;e++)t(...r)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((t=>{let[n,o]=t;for(let t=0;t<o;t++)n.apply(n,[e,...r])}))}constructor(){this.observers={}}}const vf=()=>{let e,t;const r=new Promise(((r,n)=>{e=r,t=n}));return r.resolve=e,r.reject=t,r},_f=e=>null==e?"":""+e,xf=/###/g,wf=e=>e&&e.indexOf("###")>-1?e.replace(xf,"."):e,Sf=e=>!e||"string"==typeof e,kf=(e,t,r)=>{const n="string"!=typeof t?t:t.split(".");let o=0;for(;o<n.length-1;){if(Sf(e))return{};const t=wf(n[o]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return Sf(e)?{}:{obj:e,k:wf(n[o])}},Of=(e,t,r)=>{const{obj:n,k:o}=kf(e,t,Object);if(void 0!==n||1===t.length)return void(n[o]=r);let i=t[t.length-1],a=t.slice(0,t.length-1),s=kf(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=kf(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=r},Cf=(e,t)=>{const{obj:r,k:n}=kf(e,t);if(r)return r[n]},Ef=(e,t,r)=>{for(const n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"==typeof e[n]||e[n]instanceof String||"string"==typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):Ef(e[n],t[n],r):e[n]=t[n]);return e},Tf=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Mf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Rf=e=>"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>Mf[e])):e,If=[" ",",","?","!",";"],Nf=new class{getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}}(20),Pf=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let e=0;e<n.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let a=e;a<n.length;++a)if(a!==e&&(i+=r),i+=n[a],t=o[i],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<n.length-1)continue;e+=a-e+1;break}o=t}return o},Af=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class $f extends bf{addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],r&&(Array.isArray(r)?a.push(...r):"string"==typeof r&&o?a.push(...r.split(o)):a.push(r)));const s=Cf(this.data,a);return!s&&!t&&!r&&e.indexOf(".")>-1&&(e=a[0],t=a[1],r=a.slice(2).join(".")),s||!i||"string"!=typeof r?s:Pf(this.data&&this.data[e]&&this.data[e][t],r,o)}addResource(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),Of(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}addResources(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const n in r)("string"==typeof r[n]||Array.isArray(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=r,r=t,t=a[1]),this.addNamespaces(t);let s=Cf(this.data,a)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?Ef(s,r,o):s={...s,...r},Of(this.data,a,s),i.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}}var Lf={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,r,n,o))})),t}};const Df={};class jf extends bf{changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,r)=>{t=t||"",r=r||"";const n=If.filter((e=>t.indexOf(e)<0&&r.indexOf(e)<0));if(0===n.length)return!0;const o=Nf.getRegExp(`(${n.map((e=>"?"===e?"\\?":e)).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(r);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,r,n));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};const i=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${s}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${i}`}return n?{res:i,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:i}const u=this.resolve(e,t);let p=u&&u.res;const d=u&&u.usedKey||i,f=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(p),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&p&&"string"!=typeof p&&"boolean"!=typeof p&&"number"!=typeof p&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof m||!Array.isArray(p))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,p,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return n?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(o){const e=Array.isArray(p),r=e?[]:{},n=e?f:d;for(const e in p)if(Object.prototype.hasOwnProperty.call(p,e)){const i=`${n}${o}${e}`;r[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),r[e]===i&&(r[e]=p[e])}p=r}}else if(g&&"string"==typeof m&&Array.isArray(p))p=p.join(m),p&&(p=this.extendTranslation(p,e,t,r));else{let n=!1,a=!1;const c=void 0!==t.count&&"string"!=typeof t.count,d=jf.hasDefaultValue(t),f=c?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",m=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),g=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${f}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(p)&&d&&(n=!0,p=g),this.isValidLookup(p)||(a=!0,p=i);const y=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:p,b=d&&g!==p&&this.options.updateMissing;if(a||n||b){if(this.logger.log(b?"updateKey":"missingKey",l,s,i,b?g:p),o){const e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t<r.length;t++)e.push(r[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const n=(e,r,n)=>{const o=d&&n!==p?n:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,r,o,b,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,r,o,b,t),this.emit("missingKey",e,s,r,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{const r=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&r.indexOf(`${this.options.pluralSeparator}zero`)<0&&r.push(`${this.options.pluralSeparator}zero`),r.forEach((r=>{n([e],i+r,t[`defaultValue${r}`]||g)}))})):n(e,i,g))}p=this.extendTranslation(p,e,t,u,r),a&&p===i&&this.options.appendNamespaceToMissingKey&&(p=`${s}:${i}`),(a||n)&&this.options.parseMissingKeyHandler&&(p="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${i}`:i,n?p:void 0):this.options.parseMissingKeyHandler(p))}return n?(u.res=p,u.usedParams=this.getUsedParamsDetails(t),u):p}extendTranslation(e,t,r,n,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const a="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language||n.usedLng,r),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return o&&o[0]===n[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${t[0]}`),null):i.translate(...n,t)}),r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,s="string"==typeof a?[a]:a;return null!=e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=Lf.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let t,r,n,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),l=s.key;r=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==a.count&&"string"!=typeof a.count,p=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,f=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(i=e,!Df[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(Df[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((r=>{if(this.isValidLookup(t))return;o=r;const i=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,l,r,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(r,a.count,a));const t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.push(l+e),a.ordinal&&0===e.indexOf(n)&&i.push(l+e.replace(n,this.options.pluralSeparator)),p&&i.push(l+t)),d){const r=`${l}${this.options.contextSeparator}${a.context}`;i.push(r),u&&(i.push(r+e),a.ordinal&&0===e.indexOf(n)&&i.push(r+e.replace(n,this.options.pluralSeparator)),p&&i.push(r+t))}}let s;for(;s=i.pop();)this.isValidLookup(t)||(n=s,t=this.getResource(r,e,s,a))})))}))})),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&"string"!=typeof e.replace;let n=r?e.replace:e;if(r&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!r){n={...n};for(const e of t)delete n[e]}return n}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r,n;super(),r=e,n=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((e=>{r[e]&&(n[e]=r[e])})),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=yf.create("translator")}}const Ff=e=>e.charAt(0).toUpperCase()+e.slice(1);class zf{getScriptPartFromCode(e){if(!(e=Af(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=Af(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map((e=>e.toLowerCase())):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Ff(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Ff(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=Ff(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const r=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(r)||(t=r)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find((e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((e=>{n.indexOf(e)<0&&o(this.formatLanguageCode(e))})),n}constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yf.create("languageUtils")}}let Bf=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Vf={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const Uf=["v1","v2","v3"],qf=["v4"],Wf={zero:0,one:1,two:2,few:3,many:4,other:5};class Hf{addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=Af("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:n});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const i=new Intl.PluralRules(r,{type:n});return this.pluralRulesCache[o]=i,i}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(((e,t)=>Wf[e]-Wf[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):r.numbers.map((r=>this.getSuffix(e,r,t))):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.getRule(e,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let n=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));const o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Uf.includes(this.options.compatibilityJSON)}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=yf.create("pluralResolver"),this.options.compatibilityJSON&&!qf.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return Bf.forEach((t=>{t.lngs.forEach((r=>{e[r]={numbers:t.nr,plurals:Vf[t.fc]}}))})),e})(),this.pluralRulesCache={}}}const Kf=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=((e,t,r)=>{const n=Cf(e,r);return void 0!==n?n:Cf(t,r)})(e,t,r);return!i&&o&&"string"==typeof r&&(i=Pf(e,r,n),void 0===i&&(i=Pf(t,r,n))),i},Gf=e=>e.replace(/\$/g,"$$$$");class Xf{init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:o,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:p,nestingPrefixEscaped:d,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:Rf,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=o?Tf(o):i||"{{",this.suffix=a?Tf(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=p?Tf(p):d||Tf("$t("),this.nestingSuffix=f?Tf(f):h||Tf(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let o,i,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const o=Kf(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,r,{...n,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(Kf(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,r,{...n,...t,interpolationkey:i})};this.resetRegExp();const c=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,u=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Gf(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Gf(this.escape(e)):Gf(e)}].forEach((t=>{for(a=0;o=t.regex.exec(e);){const r=o[1].trim();if(i=l(r),void 0===i)if("function"==typeof c){const t=c(e,o,n);i="string"==typeof t?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else{if(u){i=o[0];continue}this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=_f(i));const s=t.safeValue(i);if(e=e.replace(o[0],s),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(e,t)=>{const r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;const n=e.split(new RegExp(`${r}[ ]*{`));let i=`{${n[1]}`;e=n[0],i=this.interpolate(i,o);const a=i.match(/'/g),s=i.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];o={...i},o=o.replace&&"string"!=typeof o.replace?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let l=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){const e=r[1].split(this.formatSeparator).map((e=>e.trim()));r[1]=e.shift(),s=e,l=!0}if(n=t(a.call(this,r[1].trim(),o),o),n&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=_f(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),l&&(n=s.reduce(((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:r[1].trim()})),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=yf.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}}const Yf=e=>{const t={};return(r,n,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=n+JSON.stringify(i);let s=t[a];return s||(s=e(Af(n),o),t[a]=s),s(r)}};class Qf{init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Yf(t)}format(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find((e=>e.indexOf(")")>-1))){const e=o.findIndex((e=>e.indexOf(")")>-1));o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}return o.reduce(((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);"currency"===t&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach((e=>{if(e){const[t,...n]=e.split(":"),o=n.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();r[i]||(r[i]=o),"false"===o&&(r[i]=!1),"true"===o&&(r[i]=!0),isNaN(o)||(r[i]=parseInt(o,10))}}))}return{formatName:t,formatOptions:r}})(t);if(this.formats[o]){let t=e;try{const a=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},s=a.locale||a.lng||n.locale||n.lng||r;t=this.formats[o](e,s,{...i,...n,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e}),e)}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=yf.create("formatter"),this.options=e,this.formats={number:Yf(((e,t)=>{const r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)})),currency:Yf(((e,t)=>{const r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)})),datetime:Yf(((e,t)=>{const r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)})),relativetime:Yf(((e,t)=>{const r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")})),list:Yf(((e,t)=>{const r=new Intl.ListFormat(e,{...t});return e=>r.format(e)}))},this.init(e)}}class Zf extends bf{queueLoad(e,t,r,n){const o={},i={},a={},s={};return e.forEach((e=>{let n=!0;t.forEach((t=>{const a=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,n=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))})),n||(a[e]=!0)})),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,r){const n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),!t&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const a={};this.queue.forEach((r=>{((e,t,r)=>{const{obj:n,k:o}=kf(e,t,Object);n[o]=n[o]||[],n[o].push(r)})(r.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((e=>{a[e]||(a[e]={});const t=r.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:o,callback:i});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&n<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,r,n+1,2*o,i)}),o):i(a,s)},s=this.backend[r].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const r=s(e,t);r&&"function"==typeof r.then?r.then((e=>a(null,e))).catch(a):a(null,r)}catch(e){a(e)}}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const o=this.queueLoad(e,t,r,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=e.split("|"),n=r[0],o=r[1];this.read(n,o,"read",void 0,void 0,((r,i)=>{r&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,r),!r&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,i),this.loaded(e,r,i)}))}saveMissing(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=r&&""!==r){if(this.backend&&this.backend.create){const s={...i,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,r,n,s):l(e,t,r,n),o&&"function"==typeof o.then?o.then((e=>a(null,e))).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,r,n,a,s)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=yf.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}}const Jf=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const r=e[3]||e[2];Object.keys(r).forEach((e=>{t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),eh=e=>("string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),th=()=>{};class rh extends bf{init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=Jf();this.options={...n,...this.options,...eh(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?yf.init(o(this.modules.logger),this.options):yf.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=Qf);const r=new zf(this.options);this.store=new $f(this.options.resources,this.options);const i=this.services;i.logger=yf,i.resourceStore=this.store,i.languageUtils=r,i.pluralResolver=new Hf(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new Xf(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Zf(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit(t,...n)})),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new jf(this.services,this.options),this.translator.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit(t,...n)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,r||(r=th),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const i=vf(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:th;const r="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],n=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};r?n(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>n(e))),this.options.preload&&this.options.preload.forEach((e=>n(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,r){const n=vf();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=th),this.services.backendConnector.reload(e,t,(e=>{n.resolve(),r(e)})),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Lf.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;const n=vf();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((function(){return r.t(...arguments)})),t&&t(e,(function(){return r.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const r="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||o(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,(e=>{i(e,r)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),n}getFixedT(e,t,r){var n=this;const o=function(e,t){let i;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];i=n.options.overloadTranslationOptionHandler([e,t].concat(s))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||r||o.keyPrefix);const c=n.options.keySeparator||".";let u;return u=i.keyPrefix&&Array.isArray(e)?e.map((e=>`${i.keyPrefix}${c}${e}`)):i.keyPrefix?`${i.keyPrefix}${c}${e}`:e,n.t(u,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const i=(e,t)=>{const r=this.services.backendConnector.state[`${e}|${t}`];return-1===r||0===r||2===r};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(r,e)||n&&!i(o,e)))}loadNamespaces(e,t){const r=vf();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=vf();"string"==typeof e&&(e=[e]);const n=this.options.preload||[],o=e.filter((e=>n.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return o.length?(this.options.preload=n.concat(o),this.loadResources((e=>{r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new zf(Jf());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new rh(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:th;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},o=new rh(n);return void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e)),["store","services","language"].forEach((e=>{o[e]=this[e]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new $f(this.store.data,n),o.services.resourceStore=o.store),o.translator=new jf(o.services,n),o.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];o.emit(e,...r)})),o.init(n,t),o.translator.options=n,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var r;if(super(),this.options=eh(e),this.services={},this.logger=yf,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((e=>{"function"==typeof r[e]&&(r[e]=r[e].bind(r))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}}const nh=rh.createInstance();nh.createInstance=rh.createInstance;const oh=nh.createInstance();var ih;oh.use((ih=(e,t)=>import(`./locales/${e}/${t}.json`),{type:"backend",init:function(e,t,r){},read:function(e,t,r){if(ih.length<3)try{var n=ih(e,t);n&&"function"==typeof n.then?n.then((function(e){return r(null,e&&e.default||e)})).catch(r):r(null,n)}catch(e){r(e)}else ih(e,t)}})).use(sp).init({lng:"en",fallbackLng:"en",ns:"common",defaultNS:"common",interpolation:{escapeValue:!1},react:{useSuspense:!0}});var ah=class{subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}},sh="undefined"==typeof window||"Deno"in globalThis;function lh(){}function ch(e){return"number"==typeof e&&e>=0&&e!==1/0}function uh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ph(e,t){return"function"==typeof e?e(t):e}function dh(e,t){return"function"==typeof e?e(t):e}function fh(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a)if(n){if(t.queryHash!==mh(a,t.options))return!1}else if(!yh(t.queryKey,a))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function hh(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(gh(t.options.mutationKey)!==gh(i))return!1}else if(!yh(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function mh(e,t){return(t?.queryKeyHashFn||gh)(e)}function gh(e){return JSON.stringify(e,((e,t)=>xh(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t))}function yh(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((r=>!yh(e[r],t[r])))}function bh(e,t){if(e===t)return e;const r=_h(e)&&_h(t);if(r||xh(e)&&xh(t)){const n=r?e:Object.keys(e),o=n.length,i=r?t:Object.keys(t),a=i.length,s=r?[]:{};let l=0;for(let o=0;o<a;o++){const a=r?o:i[o];(!r&&n.includes(a)||r)&&void 0===e[a]&&void 0===t[a]?(s[a]=void 0,l++):(s[a]=bh(e[a],t[a]),s[a]===e[a]&&void 0!==e[a]&&l++)}return o===a&&l===o?e:s}return t}function vh(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function _h(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function xh(e){if(!wh(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!wh(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function wh(e){return"[object Object]"===Object.prototype.toString.call(e)}function Sh(e,t,r){if("function"==typeof r.structuralSharing)return r.structuralSharing(e,t);if(!1!==r.structuralSharing){if("production"!==process.env.NODE_ENV)try{JSON.stringify(e),JSON.stringify(t)}catch(e){console.error(`StructuralSharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${e}`)}return bh(e,t)}return t}function kh(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Oh(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Ch=Symbol();function Eh(e,t){return"production"!==process.env.NODE_ENV&&e.queryFn===Ch&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Ch?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function Th(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Mh,Rh,Ih,Nh=0;function Ph(e){return"__private_"+Nh+++"_"+e}var Ah=new(Mh=Ph("_focused"),Rh=Ph("_cleanup"),Ih=Ph("_setup"),class extends ah{onSubscribe(){Th(this,Rh)[Rh]||this.setEventListener(Th(this,Ih)[Ih])}onUnsubscribe(){this.hasListeners()||(null==Th(this,Rh)[Rh]||Th(this,Rh)[Rh].call(this),Th(this,Rh)[Rh]=void 0)}setEventListener(e){Th(this,Ih)[Ih]=e,null==Th(this,Rh)[Rh]||Th(this,Rh)[Rh].call(this),Th(this,Rh)[Rh]=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){Th(this,Mh)[Mh]!==e&&(Th(this,Mh)[Mh]=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){return"boolean"==typeof Th(this,Mh)[Mh]?Th(this,Mh)[Mh]:"hidden"!==globalThis.document?.visibilityState}constructor(){super(),Object.defineProperty(this,Mh,{writable:!0,value:void 0}),Object.defineProperty(this,Rh,{writable:!0,value:void 0}),Object.defineProperty(this,Ih,{writable:!0,value:void 0}),Th(this,Ih)[Ih]=e=>{if(!sh&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}});function $h(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Lh,Dh,jh,Fh=0;function zh(e){return"__private_"+Fh+++"_"+e}var Bh=new(Lh=zh("_online"),Dh=zh("_cleanup"),jh=zh("_setup"),class extends ah{onSubscribe(){$h(this,Dh)[Dh]||this.setEventListener($h(this,jh)[jh])}onUnsubscribe(){this.hasListeners()||(null==$h(this,Dh)[Dh]||$h(this,Dh)[Dh].call(this),$h(this,Dh)[Dh]=void 0)}setEventListener(e){$h(this,jh)[jh]=e,null==$h(this,Dh)[Dh]||$h(this,Dh)[Dh].call(this),$h(this,Dh)[Dh]=e(this.setOnline.bind(this))}setOnline(e){$h(this,Lh)[Lh]!==e&&($h(this,Lh)[Lh]=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return $h(this,Lh)[Lh]}constructor(){super(),Object.defineProperty(this,Lh,{writable:!0,value:void 0}),Object.defineProperty(this,Dh,{writable:!0,value:void 0}),Object.defineProperty(this,jh,{writable:!0,value:void 0}),$h(this,Lh)[Lh]=!0,$h(this,jh)[jh]=e=>{if(!sh&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}});function Vh(e){return Math.min(1e3*2**e,3e4)}function Uh(e){return"online"!==(e??"online")||Bh.isOnline()}var qh=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Wh(e){return e instanceof qh}function Hh(e){let t,r,n,o=!1,i=0,a=!1;const s=new Promise(((e,t)=>{r=e,n=t})),l=()=>Ah.isFocused()&&("always"===e.networkMode||Bh.isOnline())&&e.canRun(),c=()=>Uh(e.networkMode)&&e.canRun(),u=n=>{a||(a=!0,e.onSuccess?.(n),t?.(),r(n))},p=r=>{a||(a=!0,e.onError?.(r),t?.(),n(r))},d=()=>new Promise((r=>{t=e=>{(a||l())&&r(e)},e.onPause?.()})).then((()=>{t=void 0,a||e.onContinue?.()})),f=()=>{if(a)return;let t;const r=0===i?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch((t=>{if(a)return;const r=e.retry??(sh?0:3),n=e.retryDelay??Vh,s="function"==typeof n?n(i,t):n,c=!0===r||"number"==typeof r&&i<r||"function"==typeof r&&r(i,t);var u;!o&&c?(i++,e.onFail?.(i,t),(u=s,new Promise((e=>{setTimeout(e,u)}))).then((()=>l()?void 0:d())).then((()=>{o?p(t):f()}))):p(t)}))};return{promise:s,cancel:t=>{a||(p(new qh(t)),e.abort?.())},continue:()=>(t?.(),s),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1},canStart:c,start:()=>(c()?f():d().then(f),s)}}var Kh=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},o=e=>setTimeout(e,0);const i=n=>{t?e.push(n):o((()=>{r(n)}))};return{batch:i=>{let a;t++;try{a=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o((()=>{n((()=>{t.forEach((e=>{r(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{o=e}}}();function Gh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Xh,Yh=0;function Qh(e){return"__private_"+Yh+++"_"+e}var Zh=(Xh=Qh("_gcTimeout"),class{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ch(this.gcTime)&&(Gh(this,Xh)[Xh]=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(sh?1/0:3e5))}clearGcTimeout(){Gh(this,Xh)[Xh]&&(clearTimeout(Gh(this,Xh)[Xh]),Gh(this,Xh)[Xh]=void 0)}constructor(){Object.defineProperty(this,Xh,{writable:!0,value:void 0})}});function Jh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var em,tm,rm,nm,om,im,am,sm=0;function lm(e){return"__private_"+sm+++"_"+e}var cm=(em=lm("_initialState"),tm=lm("_revertState"),rm=lm("_cache"),nm=lm("_retryer"),om=lm("_defaultOptions"),im=lm("_abortSignalConsumed"),am=lm("_dispatch"),class extends Zh{get meta(){return this.options.meta}get promise(){return Jh(this,nm)[nm]?.promise}setOptions(e){this.options={...Jh(this,om)[om],...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||Jh(this,rm)[rm].remove(this)}setData(e,t){const r=Sh(this.state.data,e,this.options);return Jh(this,am)[am]({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){Jh(this,am)[am]({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=Jh(this,nm)[nm]?.promise;return Jh(this,nm)[nm]?.cancel(e),t?t.then(lh).catch(lh):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Jh(this,em)[em])}isActive(){return this.observers.some((e=>!1!==dh(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!uh(this.state.dataUpdatedAt,e)}onFocus(){const e=this.observers.find((e=>e.shouldFetchOnWindowFocus()));e?.refetch({cancelRefetch:!1}),Jh(this,nm)[nm]?.continue()}onOnline(){const e=this.observers.find((e=>e.shouldFetchOnReconnect()));e?.refetch({cancelRefetch:!1}),Jh(this,nm)[nm]?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),Jh(this,rm)[rm].notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(Jh(this,nm)[nm]&&(Jh(this,im)[im]?Jh(this,nm)[nm].cancel({revert:!0}):Jh(this,nm)[nm].cancelRetry()),this.scheduleGc()),Jh(this,rm)[rm].notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Jh(this,am)[am]({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(Jh(this,nm)[nm])return Jh(this,nm)[nm].continueRetry(),Jh(this,nm)[nm].promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}"production"!==process.env.NODE_ENV&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(Jh(this,im)[im]=!0,r.signal)})},o={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=Eh(this.options,t),r={queryKey:this.queryKey,meta:this.meta};return n(r),Jh(this,im)[im]=!1,this.options.persister?this.options.persister(e,r,this):e(r)}};n(o),this.options.behavior?.onFetch(o,this),Jh(this,tm)[tm]=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===o.fetchOptions?.meta||Jh(this,am)[am]({type:"fetch",meta:o.fetchOptions?.meta});const i=e=>{Wh(e)&&e.silent||Jh(this,am)[am]({type:"error",error:e}),Wh(e)||(Jh(this,rm)[rm].config.onError?.(e,this),Jh(this,rm)[rm].config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Jh(this,nm)[nm]=Hh({initialPromise:t?.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{if(void 0===e)return"production"!==process.env.NODE_ENV&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),void i(new Error(`${this.queryHash} data is undefined`));try{this.setData(e)}catch(e){return void i(e)}Jh(this,rm)[rm].config.onSuccess?.(e,this),Jh(this,rm)[rm].config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:i,onFail:(e,t)=>{Jh(this,am)[am]({type:"failed",failureCount:e,error:t})},onPause:()=>{Jh(this,am)[am]({type:"pause"})},onContinue:()=>{Jh(this,am)[am]({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}),Jh(this,nm)[nm].start()}constructor(e){super(),Object.defineProperty(this,am,{value:pm}),Object.defineProperty(this,em,{writable:!0,value:void 0}),Object.defineProperty(this,tm,{writable:!0,value:void 0}),Object.defineProperty(this,rm,{writable:!0,value:void 0}),Object.defineProperty(this,nm,{writable:!0,value:void 0}),Object.defineProperty(this,om,{writable:!0,value:void 0}),Object.defineProperty(this,im,{writable:!0,value:void 0}),Jh(this,im)[im]=!1,Jh(this,om)[om]=e.defaultOptions,this.setOptions(e.options),this.observers=[],Jh(this,rm)[rm]=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,Jh(this,em)[em]=function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??Jh(this,em)[em],this.scheduleGc()}});function um(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Uh(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function pm(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...um(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return Wh(r)&&r.revert&&Jh(this,tm)[tm]?{...Jh(this,tm)[tm],fetchStatus:"idle"}:{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Kh.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),Jh(this,rm)[rm].notify({query:this,type:"updated",action:e})}))}function dm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var fm,hm=0;function mm(e){return"__private_"+hm+++"_"+e}var gm=(fm=mm("_queries"),class extends ah{build(e,t,r){const n=t.queryKey,o=t.queryHash??mh(n,t);let i=this.get(o);return i||(i=new cm({cache:this,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){dm(this,fm)[fm].has(e.queryHash)||(dm(this,fm)[fm].set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=dm(this,fm)[fm].get(e.queryHash);t&&(e.destroy(),t===e&&dm(this,fm)[fm].delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Kh.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return dm(this,fm)[fm].get(e)}getAll(){return[...dm(this,fm)[fm].values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>fh(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>fh(e,t))):t}notify(e){Kh.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Kh.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Kh.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}constructor(e={}){super(),Object.defineProperty(this,fm,{writable:!0,value:void 0}),this.config=e,dm(this,fm)[fm]=new Map}});function ym(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var bm,vm,_m,xm,wm=0;function Sm(e){return"__private_"+wm+++"_"+e}var km=(bm=Sm("_observers"),vm=Sm("_mutationCache"),_m=Sm("_retryer"),xm=Sm("_dispatch"),class extends Zh{setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){ym(this,bm)[bm].includes(e)||(ym(this,bm)[bm].push(e),this.clearGcTimeout(),ym(this,vm)[vm].notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){ym(this,bm)[bm]=ym(this,bm)[bm].filter((t=>t!==e)),this.scheduleGc(),ym(this,vm)[vm].notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){ym(this,bm)[bm].length||("pending"===this.state.status?this.scheduleGc():ym(this,vm)[vm].remove(this))}continue(){return ym(this,_m)[_m]?.continue()??this.execute(this.state.variables)}async execute(e){ym(this,_m)[_m]=Hh({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{ym(this,xm)[xm]({type:"failed",failureCount:e,error:t})},onPause:()=>{ym(this,xm)[xm]({type:"pause"})},onContinue:()=>{ym(this,xm)[xm]({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ym(this,vm)[vm].canRun(this)});const t="pending"===this.state.status,r=!ym(this,_m)[_m].canStart();try{if(!t){ym(this,xm)[xm]({type:"pending",variables:e,isPaused:r}),await(ym(this,vm)[vm].config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&ym(this,xm)[xm]({type:"pending",context:t,variables:e,isPaused:r})}const n=await ym(this,_m)[_m].start();return await(ym(this,vm)[vm].config.onSuccess?.(n,e,this.state.context,this)),await(this.options.onSuccess?.(n,e,this.state.context)),await(ym(this,vm)[vm].config.onSettled?.(n,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(n,null,e,this.state.context)),ym(this,xm)[xm]({type:"success",data:n}),n}catch(t){try{throw await(ym(this,vm)[vm].config.onError?.(t,e,this.state.context,this)),await(this.options.onError?.(t,e,this.state.context)),await(ym(this,vm)[vm].config.onSettled?.(void 0,t,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,t,e,this.state.context)),t}finally{ym(this,xm)[xm]({type:"error",error:t})}}finally{ym(this,vm)[vm].runNext(this)}}constructor(e){super(),Object.defineProperty(this,xm,{value:Om}),Object.defineProperty(this,bm,{writable:!0,value:void 0}),Object.defineProperty(this,vm,{writable:!0,value:void 0}),Object.defineProperty(this,_m,{writable:!0,value:void 0}),this.mutationId=e.mutationId,ym(this,vm)[vm]=e.mutationCache,ym(this,bm)[bm]=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}});function Om(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Kh.batch((()=>{ym(this,bm)[bm].forEach((t=>{t.onMutationUpdate(e)})),ym(this,vm)[vm].notify({mutation:this,type:"updated",action:e})}))}function Cm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Em,Tm,Mm=0;function Rm(e){return"__private_"+Mm+++"_"+e}var Im=(Em=Rm("_mutations"),Tm=Rm("_mutationId"),class extends ah{build(e,t,r){const n=new km({mutationCache:this,mutationId:++Cm(this,Tm)[Tm],options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){const t=Nm(e),r=Cm(this,Em)[Em].get(t)??[];r.push(e),Cm(this,Em)[Em].set(t,r),this.notify({type:"added",mutation:e})}remove(e){const t=Nm(e);if(Cm(this,Em)[Em].has(t)){const r=Cm(this,Em)[Em].get(t)?.filter((t=>t!==e));r&&(0===r.length?Cm(this,Em)[Em].delete(t):Cm(this,Em)[Em].set(t,r))}this.notify({type:"removed",mutation:e})}canRun(e){const t=Cm(this,Em)[Em].get(Nm(e))?.find((e=>"pending"===e.state.status));return!t||t===e}runNext(e){const t=Cm(this,Em)[Em].get(Nm(e))?.find((t=>t!==e&&t.state.isPaused));return t?.continue()??Promise.resolve()}clear(){Kh.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...Cm(this,Em)[Em].values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>hh(t,e)))}findAll(e={}){return this.getAll().filter((t=>hh(e,t)))}notify(e){Kh.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Kh.batch((()=>Promise.all(e.map((e=>e.continue().catch(lh))))))}constructor(e={}){super(),Object.defineProperty(this,Em,{writable:!0,value:void 0}),Object.defineProperty(this,Tm,{writable:!0,value:void 0}),this.config=e,Cm(this,Em)[Em]=new Map,Cm(this,Tm)[Tm]=Date.now()}});function Nm(e){return e.options.scope?.id??String(e.mutationId)}function Pm(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Am(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function $m(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Lm,Dm,jm,Fm,zm,Bm,Vm,Um,qm=0;function Wm(e){return"__private_"+qm+++"_"+e}var Hm=(Lm=Wm("_queryCache"),Dm=Wm("_mutationCache"),jm=Wm("_defaultOptions"),Fm=Wm("_queryDefaults"),zm=Wm("_mutationDefaults"),Bm=Wm("_mountCount"),Vm=Wm("_unsubscribeFocus"),Um=Wm("_unsubscribeOnline"),class{mount(){$m(this,Bm)[Bm]++,1===$m(this,Bm)[Bm]&&($m(this,Vm)[Vm]=Ah.subscribe((async e=>{e&&(await this.resumePausedMutations(),$m(this,Lm)[Lm].onFocus())})),$m(this,Um)[Um]=Bh.subscribe((async e=>{e&&(await this.resumePausedMutations(),$m(this,Lm)[Lm].onOnline())})))}unmount(){$m(this,Bm)[Bm]--,0===$m(this,Bm)[Bm]&&(null==$m(this,Vm)[Vm]||$m(this,Vm)[Vm].call(this),$m(this,Vm)[Vm]=void 0,null==$m(this,Um)[Um]||$m(this,Um)[Um].call(this),$m(this,Um)[Um]=void 0)}isFetching(e){return $m(this,Lm)[Lm].findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return $m(this,Dm)[Dm].findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return $m(this,Lm)[Lm].get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=$m(this,Lm)[Lm].build(this,r);return e.revalidateIfStale&&n.isStaleByTime(ph(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return $m(this,Lm)[Lm].findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),o=$m(this,Lm)[Lm].get(n.queryHash),i=o?.state.data,a=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==a)return $m(this,Lm)[Lm].build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return Kh.batch((()=>$m(this,Lm)[Lm].findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,r)]))))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return $m(this,Lm)[Lm].get(t.queryHash)?.state}removeQueries(e){const t=$m(this,Lm)[Lm];Kh.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const r=$m(this,Lm)[Lm],n={type:"active",...e};return Kh.batch((()=>(r.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(n,t))))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=Kh.batch((()=>$m(this,Lm)[Lm].findAll(e).map((e=>e.cancel(r)))));return Promise.all(n).then(lh).catch(lh)}invalidateQueries(e={},t={}){return Kh.batch((()=>{if($m(this,Lm)[Lm].findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)}))}refetchQueries(e={},t){const r={...t,cancelRefetch:t?.cancelRefetch??!0},n=Kh.batch((()=>$m(this,Lm)[Lm].findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(lh)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(n).then(lh)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=$m(this,Lm)[Lm].build(this,t);return r.isStaleByTime(ph(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(lh).catch(lh)}fetchInfiniteQuery(e){return e.behavior=(t=e.pages,{onFetch:(e,r)=>{const n=async()=>{const r=e.options,n=e.fetchOptions?.meta?.fetchMore?.direction,o=e.state.data?.pages||[],i=e.state.data?.pageParams||[],a={pages:[],pageParams:[]};let s=!1;const l=Eh(e.options,e.fetchOptions),c=async(t,r,n)=>{if(s)return Promise.reject();if(null==r&&t.pages.length)return Promise.resolve(t);const o={queryKey:e.queryKey,pageParam:r,direction:n?"backward":"forward",meta:e.options.meta};var i;i=o,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(e.signal.aborted?s=!0:e.signal.addEventListener("abort",(()=>{s=!0})),e.signal)});const a=await l(o),{maxPages:c}=e.options,u=n?Oh:kh;return{pages:u(t.pages,a,c),pageParams:u(t.pageParams,r,c)}};let u;if(n&&o.length){const e="backward"===n,t={pages:o,pageParams:i},a=(e?Am:Pm)(r,t);u=await c(t,a,e)}else{u=await c(a,i[0]??r.initialPageParam);const e=t??o.length;for(let t=1;t<e;t++){const e=Pm(r,u);if(null==e)break;u=await c(u,e)}}return u};e.options.persister?e.fetchFn=()=>e.options.persister?.(n,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r):e.fetchFn=n}}),this.fetchQuery(e);var t}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(lh).catch(lh)}resumePausedMutations(){return Bh.isOnline()?$m(this,Dm)[Dm].resumePausedMutations():Promise.resolve()}getQueryCache(){return $m(this,Lm)[Lm]}getMutationCache(){return $m(this,Dm)[Dm]}getDefaultOptions(){return $m(this,jm)[jm]}setDefaultOptions(e){$m(this,jm)[jm]=e}setQueryDefaults(e,t){$m(this,Fm)[Fm].set(gh(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...$m(this,Fm)[Fm].values()];let r={};return t.forEach((t=>{yh(e,t.queryKey)&&(r={...r,...t.defaultOptions})})),r}setMutationDefaults(e,t){$m(this,zm)[zm].set(gh(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...$m(this,zm)[zm].values()];let r={};return t.forEach((t=>{yh(e,t.mutationKey)&&(r={...r,...t.defaultOptions})})),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...$m(this,jm)[jm].queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mh(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===Ch&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...$m(this,jm)[jm].mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){$m(this,Lm)[Lm].clear(),$m(this,Dm)[Dm].clear()}constructor(e={}){Object.defineProperty(this,Lm,{writable:!0,value:void 0}),Object.defineProperty(this,Dm,{writable:!0,value:void 0}),Object.defineProperty(this,jm,{writable:!0,value:void 0}),Object.defineProperty(this,Fm,{writable:!0,value:void 0}),Object.defineProperty(this,zm,{writable:!0,value:void 0}),Object.defineProperty(this,Bm,{writable:!0,value:void 0}),Object.defineProperty(this,Vm,{writable:!0,value:void 0}),Object.defineProperty(this,Um,{writable:!0,value:void 0}),$m(this,Lm)[Lm]=e.queryCache||new gm,$m(this,Dm)[Dm]=e.mutationCache||new Im,$m(this,jm)[jm]=e.defaultOptions||{},$m(this,Fm)[Fm]=new Map,$m(this,zm)[zm]=new Map,$m(this,Bm)[Bm]=0}});function Km(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Gm,Xm,Ym,Qm,Zm,Jm,eg,tg,rg,ng,og,ig,ag,sg,lg,cg,ug,pg,dg,fg,hg,mg,gg,yg=0;function bg(e){return"__private_"+yg+++"_"+e}var vg=(Gm=bg("_client"),Xm=bg("_currentQuery"),Ym=bg("_currentQueryInitialState"),Qm=bg("_currentResult"),Zm=bg("_currentResultState"),Jm=bg("_currentResultOptions"),eg=bg("_selectError"),tg=bg("_selectFn"),rg=bg("_selectResult"),ng=bg("_lastQueryWithDefinedData"),og=bg("_staleTimeoutId"),ig=bg("_refetchIntervalId"),ag=bg("_currentRefetchInterval"),sg=bg("_trackedProps"),lg=bg("_executeFetch"),cg=bg("_updateStaleTimeout"),ug=bg("_computeRefetchInterval"),pg=bg("_updateRefetchInterval"),dg=bg("_updateTimers"),fg=bg("_clearStaleTimeout"),hg=bg("_clearRefetchInterval"),mg=bg("_updateQuery"),gg=bg("_notify"),class extends ah{bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(Km(this,Xm)[Xm].addObserver(this),_g(Km(this,Xm)[Xm],this.options)?Km(this,lg)[lg]():this.updateResult(),Km(this,dg)[dg]())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return xg(Km(this,Xm)[Xm],this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return xg(Km(this,Xm)[Xm],this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Km(this,fg)[fg](),Km(this,hg)[hg](),Km(this,Xm)[Xm].removeObserver(this)}setOptions(e,t){const r=this.options,n=Km(this,Xm)[Xm];if(this.options=Km(this,Gm)[Gm].defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof dh(this.options.enabled,Km(this,Xm)[Xm]))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Km(this,mg)[mg](),Km(this,Xm)[Xm].setOptions(this.options),r._defaulted&&!vh(this.options,r)&&Km(this,Gm)[Gm].getQueryCache().notify({type:"observerOptionsUpdated",query:Km(this,Xm)[Xm],observer:this});const o=this.hasListeners();o&&wg(Km(this,Xm)[Xm],n,this.options,r)&&Km(this,lg)[lg](),this.updateResult(t),!o||Km(this,Xm)[Xm]===n&&dh(this.options.enabled,Km(this,Xm)[Xm])===dh(r.enabled,Km(this,Xm)[Xm])&&ph(this.options.staleTime,Km(this,Xm)[Xm])===ph(r.staleTime,Km(this,Xm)[Xm])||Km(this,cg)[cg]();const i=Km(this,ug)[ug]();!o||Km(this,Xm)[Xm]===n&&dh(this.options.enabled,Km(this,Xm)[Xm])===dh(r.enabled,Km(this,Xm)[Xm])&&i===Km(this,ag)[ag]||Km(this,pg)[pg](i)}getOptimisticResult(e){const t=Km(this,Gm)[Gm].getQueryCache().build(Km(this,Gm)[Gm],e),r=this.createResult(t,e);return n=r,!vh(this.getCurrentResult(),n)&&(Km(this,Qm)[Qm]=r,Km(this,Jm)[Jm]=this.options,Km(this,Zm)[Zm]=Km(this,Xm)[Xm].state),r;var n}getCurrentResult(){return Km(this,Qm)[Qm]}trackResult(e,t){const r={};return Object.keys(e).forEach((n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),t?.(n),e[n])})})),r}trackProp(e){Km(this,sg)[sg].add(e)}getCurrentQuery(){return Km(this,Xm)[Xm]}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=Km(this,Gm)[Gm].defaultQueryOptions(e),r=Km(this,Gm)[Gm].getQueryCache().build(Km(this,Gm)[Gm],t);return r.isFetchingOptimistic=!0,r.fetch().then((()=>this.createResult(r,t)))}fetch(e){return Km(this,lg)[lg]({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),Km(this,Qm)[Qm])))}createResult(e,t){const r=Km(this,Xm)[Xm],n=this.options,o=Km(this,Qm)[Qm],i=Km(this,Zm)[Zm],a=Km(this,Jm)[Jm],s=e!==r?e.state:Km(this,Ym)[Ym],{state:l}=e;let c,u={...l},p=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&_g(e,t),a=o&&wg(e,r,t,n);(i||a)&&(u={...u,...um(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:d,errorUpdatedAt:f,status:h}=u;if(t.select&&void 0!==u.data)if(o&&u.data===i?.data&&t.select===Km(this,tg)[tg])c=Km(this,rg)[rg];else try{Km(this,tg)[tg]=t.select,c=t.select(u.data),c=Sh(o?.data,c,t),Km(this,rg)[rg]=c,Km(this,eg)[eg]=null}catch(e){Km(this,eg)[eg]=e}else c=u.data;if(void 0!==t.placeholderData&&void 0===c&&"pending"===h){let e;if(o?.isPlaceholderData&&t.placeholderData===a?.placeholderData)e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(Km(this,ng)[ng]?.state.data,Km(this,ng)[ng]):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),Km(this,eg)[eg]=null}catch(e){Km(this,eg)[eg]=e}void 0!==e&&(h="success",c=Sh(o?.data,e,t),p=!0)}Km(this,eg)[eg]&&(d=Km(this,eg)[eg],c=Km(this,rg)[rg],f=Date.now(),h="error");const m="fetching"===u.fetchStatus,g="pending"===h,y="error"===h,b=g&&m,v=void 0!==c;return{status:h,fetchStatus:u.fetchStatus,isPending:g,isSuccess:"success"===h,isError:y,isInitialLoading:b,isLoading:b,data:c,dataUpdatedAt:u.dataUpdatedAt,error:d,errorUpdatedAt:f,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:m,isRefetching:m&&!g,isLoadingError:y&&!v,isPaused:"paused"===u.fetchStatus,isPlaceholderData:p,isRefetchError:y&&v,isStale:Sg(e,t),refetch:this.refetch}}updateResult(e){const t=Km(this,Qm)[Qm],r=this.createResult(Km(this,Xm)[Xm],this.options);if(Km(this,Zm)[Zm]=Km(this,Xm)[Xm].state,Km(this,Jm)[Jm]=this.options,void 0!==Km(this,Zm)[Zm].data&&(Km(this,ng)[ng]=Km(this,Xm)[Xm]),vh(r,t))return;Km(this,Qm)[Qm]=r;const n={};!1!==e?.listeners&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!Km(this,sg)[sg].size)return!0;const n=new Set(r??Km(this,sg)[sg]);return this.options.throwOnError&&n.add("error"),Object.keys(Km(this,Qm)[Qm]).some((e=>{const r=e;return Km(this,Qm)[Qm][r]!==t[r]&&n.has(r)}))})()&&(n.listeners=!0),Km(this,gg)[gg]({...n,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Km(this,dg)[dg]()}constructor(e,t){super(),Object.defineProperty(this,lg,{value:kg}),Object.defineProperty(this,cg,{value:Og}),Object.defineProperty(this,ug,{value:Cg}),Object.defineProperty(this,pg,{value:Eg}),Object.defineProperty(this,dg,{value:Tg}),Object.defineProperty(this,fg,{value:Mg}),Object.defineProperty(this,hg,{value:Rg}),Object.defineProperty(this,mg,{value:Ig}),Object.defineProperty(this,gg,{value:Ng}),Object.defineProperty(this,Gm,{writable:!0,value:void 0}),Object.defineProperty(this,Xm,{writable:!0,value:void 0}),Object.defineProperty(this,Ym,{writable:!0,value:void 0}),Object.defineProperty(this,Qm,{writable:!0,value:void 0}),Object.defineProperty(this,Zm,{writable:!0,value:void 0}),Object.defineProperty(this,Jm,{writable:!0,value:void 0}),Object.defineProperty(this,eg,{writable:!0,value:void 0}),Object.defineProperty(this,tg,{writable:!0,value:void 0}),Object.defineProperty(this,rg,{writable:!0,value:void 0}),Object.defineProperty(this,ng,{writable:!0,value:void 0}),Object.defineProperty(this,og,{writable:!0,value:void 0}),Object.defineProperty(this,ig,{writable:!0,value:void 0}),Object.defineProperty(this,ag,{writable:!0,value:void 0}),Object.defineProperty(this,sg,{writable:!0,value:void 0}),Km(this,Xm)[Xm]=void 0,Km(this,Ym)[Ym]=void 0,Km(this,Qm)[Qm]=void 0,Km(this,sg)[sg]=new Set,this.options=t,Km(this,Gm)[Gm]=e,Km(this,eg)[eg]=null,this.bindMethods(),this.setOptions(t)}});function _g(e,t){return function(e,t){return!1!==dh(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&xg(e,t,t.refetchOnMount)}function xg(e,t,r){if(!1!==dh(t.enabled,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Sg(e,t)}return!1}function wg(e,t,r,n){return(e!==t||!1===dh(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Sg(e,r)}function Sg(e,t){return!1!==dh(t.enabled,e)&&e.isStaleByTime(ph(t.staleTime,e))}function kg(e){Km(this,mg)[mg]();let t=Km(this,Xm)[Xm].fetch(this.options,e);return e?.throwOnError||(t=t.catch(lh)),t}function Og(){Km(this,fg)[fg]();const e=ph(this.options.staleTime,Km(this,Xm)[Xm]);if(sh||Km(this,Qm)[Qm].isStale||!ch(e))return;const t=uh(Km(this,Qm)[Qm].dataUpdatedAt,e)+1;Km(this,og)[og]=setTimeout((()=>{Km(this,Qm)[Qm].isStale||this.updateResult()}),t)}function Cg(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(Km(this,Xm)[Xm]):this.options.refetchInterval)??!1}function Eg(e){Km(this,hg)[hg](),Km(this,ag)[ag]=e,!sh&&!1!==dh(this.options.enabled,Km(this,Xm)[Xm])&&ch(Km(this,ag)[ag])&&0!==Km(this,ag)[ag]&&(Km(this,ig)[ig]=setInterval((()=>{(this.options.refetchIntervalInBackground||Ah.isFocused())&&Km(this,lg)[lg]()}),Km(this,ag)[ag]))}function Tg(){Km(this,cg)[cg](),Km(this,pg)[pg](Km(this,ug)[ug]())}function Mg(){Km(this,og)[og]&&(clearTimeout(Km(this,og)[og]),Km(this,og)[og]=void 0)}function Rg(){Km(this,ig)[ig]&&(clearInterval(Km(this,ig)[ig]),Km(this,ig)[ig]=void 0)}function Ig(){const e=Km(this,Gm)[Gm].getQueryCache().build(Km(this,Gm)[Gm],this.options);if(e===Km(this,Xm)[Xm])return;const t=Km(this,Xm)[Xm];Km(this,Xm)[Xm]=e,Km(this,Ym)[Ym]=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}function Ng(e){Kh.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(Km(this,Qm)[Qm])})),Km(this,Gm)[Gm].getQueryCache().notify({query:Km(this,Xm)[Xm],type:"observerResultsUpdated"})}))}function Pg(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ag,$g,Lg,Dg,jg,Fg,zg=0;function Bg(e){return"__private_"+zg+++"_"+e}var Vg=(Ag=Bg("_client"),$g=Bg("_currentResult"),Lg=Bg("_currentMutation"),Dg=Bg("_mutateOptions"),jg=Bg("_updateResult"),Fg=Bg("_notify"),class extends ah{bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=Pg(this,Ag)[Ag].defaultMutationOptions(e),vh(this.options,t)||Pg(this,Ag)[Ag].getMutationCache().notify({type:"observerOptionsUpdated",mutation:Pg(this,Lg)[Lg],observer:this}),t?.mutationKey&&this.options.mutationKey&&gh(t.mutationKey)!==gh(this.options.mutationKey)?this.reset():"pending"===Pg(this,Lg)[Lg]?.state.status&&Pg(this,Lg)[Lg].setOptions(this.options)}onUnsubscribe(){this.hasListeners()||Pg(this,Lg)[Lg]?.removeObserver(this)}onMutationUpdate(e){Pg(this,jg)[jg](),Pg(this,Fg)[Fg](e)}getCurrentResult(){return Pg(this,$g)[$g]}reset(){Pg(this,Lg)[Lg]?.removeObserver(this),Pg(this,Lg)[Lg]=void 0,Pg(this,jg)[jg](),Pg(this,Fg)[Fg]()}mutate(e,t){return Pg(this,Dg)[Dg]=t,Pg(this,Lg)[Lg]?.removeObserver(this),Pg(this,Lg)[Lg]=Pg(this,Ag)[Ag].getMutationCache().build(Pg(this,Ag)[Ag],this.options),Pg(this,Lg)[Lg].addObserver(this),Pg(this,Lg)[Lg].execute(e)}constructor(e,t){super(),Object.defineProperty(this,jg,{value:Ug}),Object.defineProperty(this,Fg,{value:qg}),Object.defineProperty(this,Ag,{writable:!0,value:void 0}),Object.defineProperty(this,$g,{writable:!0,value:void 0}),Object.defineProperty(this,Lg,{writable:!0,value:void 0}),Object.defineProperty(this,Dg,{writable:!0,value:void 0}),Pg(this,$g)[$g]=void 0,Pg(this,Ag)[Ag]=e,this.setOptions(t),this.bindMethods(),Pg(this,jg)[jg]()}});function Ug(){const e=Pg(this,Lg)[Lg]?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};Pg(this,$g)[$g]={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}function qg(e){Kh.batch((()=>{if(Pg(this,Dg)[Dg]&&this.hasListeners()){const t=Pg(this,$g)[$g].variables,r=Pg(this,$g)[$g].context;"success"===e?.type?(Pg(this,Dg)[Dg].onSuccess?.(e.data,t,r),Pg(this,Dg)[Dg].onSettled?.(e.data,null,t,r)):"error"===e?.type&&(Pg(this,Dg)[Dg].onError?.(e.error,t,r),Pg(this,Dg)[Dg].onSettled?.(void 0,e.error,t,r))}this.listeners.forEach((e=>{e(Pg(this,$g)[$g])}))}))}var Wg=n.createContext(void 0),Hg=e=>{const t=n.useContext(Wg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Kg=({client:t,children:r})=>(n.useEffect((()=>(t.mount(),()=>{t.unmount()})),[t]),e(Wg.Provider,{value:t,children:r})),Gg=n.createContext(!1),Xg=n.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function Yg(e,t){return"function"==typeof e?e(...t):!!e}function Qg(){}function Zg(e,t){return function(e,t){if("production"!==process.env.NODE_ENV&&("object"!=typeof e||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Hg(),o=n.useContext(Gg),i=n.useContext(Xg),a=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=o?"isRestoring":"optimistic",(e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(a),((e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))})(a,i),(e=>{n.useEffect((()=>{e.clearReset()}),[e])})(i);const[s]=n.useState((()=>new t(r,a))),l=s.getOptimisticResult(a);if(n.useSyncExternalStore(n.useCallback((e=>{const t=o?()=>{}:s.subscribe(Kh.batchCalls(e));return s.updateResult(),t}),[s,o]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),n.useEffect((()=>{s.setOptions(a,{listeners:!1})}),[a,s]),((e,t)=>e?.suspense&&t.isPending)(a,l))throw((e,t,r)=>t.fetchOptimistic(e).catch((()=>{r.clearReset()})))(a,s,i);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&Yg(r,[e.error,n]))({result:l,errorResetBoundary:i,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw l.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(a,l),a.notifyOnChangeProps?l:s.trackResult(l)}(e,vg)}function Jg(e,t){const r=Hg(),[o]=n.useState((()=>new Vg(r,e)));n.useEffect((()=>{o.setOptions(e)}),[o,e]);const i=n.useSyncExternalStore(n.useCallback((e=>o.subscribe(Kh.batchCalls(e))),[o]),(()=>o.getCurrentResult()),(()=>o.getCurrentResult())),a=n.useCallback(((e,t)=>{o.mutate(e,t).catch(Qg)}),[o]);if(i.error&&Yg(o.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}const ey={local:{SUPPORT_FORM_URL:"https://my.stg.elementor.red/support-form/",FEEDBACK_API:"https://my.stg.elementor.red/feedback/api/v1",WHATS_NEW_API:"https://my.stg.elementor.red/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.stg.elementor.red"},development:{SUPPORT_FORM_URL:"https://my.dev.elementor.red/support-form/",FEEDBACK_API:"https://my.dev.elementor.red/feedback/api/v1",WHATS_NEW_API:"https://my.dev.elementor.red/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.dev.elementor.red"},staging:{SUPPORT_FORM_URL:"https://my.stg.elementor.red/support-form/",FEEDBACK_API:"https://my.stg.elementor.red/feedback/api/v1",WHATS_NEW_API:"https://my.stg.elementor.red/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.stg.elementor.red"},production:{SUPPORT_FORM_URL:"https://my.elementor.com/support-form/",FEEDBACK_API:"https://my.elementor.com/feedback/api/v1",WHATS_NEW_API:"https://my.elementor.com/whats-new/api/v1",MY_ELEMENTOR_URL:"https://my.elementor.com"}};var ty,ry,ny,oy;ty={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},ry=["(","?"],ny={")":["("],":":["?","?:"]},oy=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var iy={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,r){if(e)throw t;return r}};var ay={contextDelimiter:"",onMissingKey:null};function sy(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},ay)this.options[r]=void 0!==t&&r in t?t[r]:ay[r]}sy.prototype.getPluralForm=function(e,t){var r,n,o,i,a=this.pluralForms[e];return a||("function"!=typeof(o=(r=this.data[e][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(n=function(e){var t,r,n;for(t=e.split(";"),r=0;r<t.length;r++)if(0===(n=t[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=function(e){var t=function(e){for(var t,r,n,o,i=[],a=[];t=e.match(oy);){for(r=t[0],(n=e.substr(0,t.index).trim())&&i.push(n);o=a.pop();){if(ny[r]){if(ny[r][0]===o){r=ny[r][1]||r;break}}else if(ry.indexOf(o)>=0||ty[o]<ty[r]){a.push(o);break}i.push(o)}ny[r]||a.push(r),e=e.substr(t.index+r.length)}return(e=e.trim())&&i.push(e),i.concat(a.reverse())}(e);return function(e){return function(e,t){var r,n,o,i,a,s,l=[];for(r=0;r<e.length;r++){if(a=e[r],i=iy[a]){for(n=i.length,o=Array(n);n--;)o[n]=l.pop();try{s=i.apply(null,o)}catch(e){return e}}else s=t.hasOwnProperty(a)?t[a]:+a;l.push(s)}return l[0]}(t,e)}}(n),o=function(e){return+i({n:e})}),a=this.pluralForms[e]=o),a(t)},sy.prototype.dcnpgettext=function(e,t,r,n,o){var i,a,s;return i=void 0===o?0:this.getPluralForm(e,o),a=r,t&&(a=t+this.options.contextDelimiter+r),(s=this.data[e][a])&&s[i]?s[i]:(this.options.onMissingKey&&this.options.onMissingKey(r,e),0===i?r:n)};var ly={plural_forms:e=>1===e?0:1},cy=/^i18n\.(n?gettext|has_translation)(_|$)/,uy=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},py=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},dy=function(e,t){return function(r,n,o,i=10){const a=e[t];if(!py(r))return;if(!uy(n))return;if("function"!=typeof o)return void console.error("The hook callback must be a function.");if("number"!=typeof i)return void console.error("If specified, the hook priority must be a number.");const s={callback:o,priority:i,namespace:n};if(a[r]){const e=a[r].handlers;let t;for(t=e.length;t>0&&!(i>=e[t-1].priority);t--);t===e.length?e[t]=s:e.splice(t,0,s),a.__current.forEach((e=>{e.name===r&&e.currentIndex>=t&&e.currentIndex++}))}else a[r]={handlers:[s],runs:0};"hookAdded"!==r&&e.doAction("hookAdded",r,n,o,i)}},fy=function(e,t,r=!1){return function(n,o){const i=e[t];if(!py(n))return;if(!r&&!uy(o))return;if(!i[n])return 0;let a=0;if(r)a=i[n].handlers.length,i[n]={runs:i[n].runs,handlers:[]};else{const e=i[n].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===o&&(e.splice(t,1),a++,i.__current.forEach((e=>{e.name===n&&e.currentIndex>=t&&e.currentIndex--})))}return"hookRemoved"!==n&&e.doAction("hookRemoved",n,o),a}},hy=function(e,t){return function(r,n){const o=e[t];return void 0!==n?r in o&&o[r].handlers.some((e=>e.namespace===n)):r in o}},my=function(e,t,r,n){return function(o,...i){const a=e[t];a[o]||(a[o]={handlers:[],runs:0}),a[o].runs++;const s=a[o].handlers;if("production"!==process.env.NODE_ENV&&"hookAdded"!==o&&a.all&&s.push(...a.all.handlers),!s||!s.length)return r?i[0]:void 0;const l={name:o,currentIndex:0};return(n?async function(){try{a.__current.add(l);let e=r?i[0]:void 0;for(;l.currentIndex<s.length;){const t=s[l.currentIndex];e=await t.callback.apply(null,i),r&&(i[0]=e),l.currentIndex++}return r?e:void 0}finally{a.__current.delete(l)}}:function(){try{a.__current.add(l);let e=r?i[0]:void 0;for(;l.currentIndex<s.length;)e=s[l.currentIndex].callback.apply(null,i),r&&(i[0]=e),l.currentIndex++;return r?e:void 0}finally{a.__current.delete(l)}})()}},gy=function(e,t){return function(){const r=e[t],n=Array.from(r.__current);return n.at(-1)?.name??null}},yy=function(e,t){return function(r){const n=e[t];return void 0===r?n.__current.size>0:Array.from(n.__current).some((e=>e.name===r))}},by=function(e,t){return function(r){const n=e[t];if(py(r))return n[r]&&n[r].runs?n[r].runs:0}},vy=((e,t,r)=>{const n=new sy({}),o=new Set,i=()=>{o.forEach((e=>e()))},a=(e,t="default")=>{n.data[t]={...n.data[t],...e},n.data[t][""]={...ly,...n.data[t]?.[""]},delete n.pluralForms[t]},s=(e,t)=>{a(e,t),i()},l=(e="default",t,r,o,i)=>(n.data[e]||a(void 0,e),n.dcnpgettext(e,t,r,o,i)),c=e=>e||"default",u=(e,t,n)=>{let o=l(n,t,e);return r?(o=r.applyFilters("i18n.gettext_with_context",o,e,t,n),r.applyFilters("i18n.gettext_with_context_"+c(n),o,e,t,n)):o};if(r){const e=e=>{cy.test(e)&&i()};r.addAction("hookAdded","core/i18n",e),r.addAction("hookRemoved","core/i18n",e)}return{getLocaleData:(e="default")=>n.data[e],setLocaleData:s,addLocaleData:(e,t="default")=>{n.data[t]={...n.data[t],...e,"":{...ly,...n.data[t]?.[""],...e?.[""]}},delete n.pluralForms[t],i()},resetLocaleData:(e,t)=>{n.data={},n.pluralForms={},s(e,t)},subscribe:e=>(o.add(e),()=>o.delete(e)),__:(e,t)=>{let n=l(t,void 0,e);return r?(n=r.applyFilters("i18n.gettext",n,e,t),r.applyFilters("i18n.gettext_"+c(t),n,e,t)):n},_x:u,_n:(e,t,n,o)=>{let i=l(o,void 0,e,t,n);return r?(i=r.applyFilters("i18n.ngettext",i,e,t,n,o),r.applyFilters("i18n.ngettext_"+c(o),i,e,t,n,o)):i},_nx:(e,t,n,o,i)=>{let a=l(i,o,e,t,n);return r?(a=r.applyFilters("i18n.ngettext_with_context",a,e,t,n,o,i),r.applyFilters("i18n.ngettext_with_context_"+c(i),a,e,t,n,o,i)):a},isRTL:()=>"rtl"===u("ltr","text direction"),hasTranslation:(e,t,o)=>{const i=t?t+""+e:e;let a=!!n.data?.[o??"default"]?.[i];return r&&(a=r.applyFilters("i18n.has_translation",a,e,t,o),a=r.applyFilters("i18n.has_translation_"+c(o),a,e,t,o)),a}}})(0,0,new class{constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=dy(this,"actions"),this.addFilter=dy(this,"filters"),this.removeAction=fy(this,"actions"),this.removeFilter=fy(this,"filters"),this.hasAction=hy(this,"actions"),this.hasFilter=hy(this,"filters"),this.removeAllActions=fy(this,"actions",!0),this.removeAllFilters=fy(this,"filters",!0),this.doAction=my(this,"actions",!1,!1),this.doActionAsync=my(this,"actions",!1,!0),this.applyFilters=my(this,"filters",!0,!1),this.applyFiltersAsync=my(this,"filters",!0,!0),this.currentAction=gy(this,"actions"),this.currentFilter=gy(this,"filters"),this.doingAction=yy(this,"actions"),this.doingFilter=yy(this,"filters"),this.didAction=by(this,"actions"),this.didFilter=by(this,"filters")}});vy.getLocaleData.bind(vy),vy.setLocaleData.bind(vy),vy.resetLocaleData.bind(vy),vy.subscribe.bind(vy);var _y=vy.__.bind(vy);vy._x.bind(vy),vy._n.bind(vy),vy._nx.bind(vy),vy.isRTL.bind(vy),vy.hasTranslation.bind(vy);var xy=(e,t)=>{let r,n,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),n=e.endpoint.replace(/^\//,""),o=n?r+"/"+n:r),delete e.namespace,delete e.endpoint,t({...e,path:o})};function wy(e){let t="";const r=Object.entries(e);let n;for(;n=r.shift();){let[e,o]=n;if(Array.isArray(o)||o&&o.constructor===Object){const t=Object.entries(o).reverse();for(const[n,o]of t)r.unshift([`${e}[${n}]`,o])}else void 0!==o&&(null===o&&(o=""),t+="&"+[e,String(o)].map(encodeURIComponent).join("="))}return t.substr(1)}function Sy(e){try{return decodeURIComponent(e)}catch(t){return e}}function ky(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[r,n=""]=t.split("=").filter(Boolean).map(Sy);return r&&function(e,t,r){const n=t.length,o=n-1;for(let i=0;i<n;i++){let n=t[i];!n&&Array.isArray(e)&&(n=e.length.toString()),n=["__proto__","constructor","prototype"].includes(n)?n.toUpperCase():n;const a=!isNaN(Number(t[i+1]));e[n]=i===o?r:e[n]||(a?[]:{}),Array.isArray(e[n])&&!a&&(e[n]={...e[n]}),e=e[n]}}(e,r.replace(/\]/g,"").split("["),n),e}),Object.create(null))}function Oy(e="",t){if(!t||!Object.keys(t).length)return e;const r=function(e){const t=/^\S+?(#[^\s\?]*)/.exec(e);if(t)return t[1]}(e)||"";let n=e.replace(r,"");const o=e.indexOf("?");return-1!==o&&(t=Object.assign(ky(e),t),n=n.substr(0,o)),n+"?"+wy(t)+r}function Cy(e,t){return ky(e)[t]}function Ey(e,t){return void 0!==Cy(e,t)}function Ty(e,...t){const r=e.replace(/^[^#]*/,""),n=(e=e.replace(/#.*/,"")).indexOf("?");if(-1===n)return e+r;const o=ky(e),i=e.substr(0,n);t.forEach((e=>delete o[e]));const a=wy(o);return(a?i+"?"+a:i)+r}function My(e){const t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map((e=>e.split("="))).map((e=>e.map(decodeURIComponent))).sort(((e,t)=>e[0].localeCompare(t[0]))).map((e=>e.map(encodeURIComponent))).map((e=>e.join("="))).join("&"):n}function Ry(e,t){if(t)return Promise.resolve(e.body);try{return Promise.resolve(new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}catch{return Object.entries(e.headers).forEach((([t,r])=>{"link"===t.toLowerCase()&&(e.headers[t]=r.replace(/<([^>]+)>/,((e,t)=>`<${encodeURI(t)}>`)))})),Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}}var Iy=({path:e,url:t,...r},n)=>({...r,url:t&&Oy(t,n),path:e&&Oy(e,n)}),Ny=e=>e.json?e.json():Promise.reject(e),Py=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t},Ay=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r})(e))return t(e);const r=await Hy({...Iy(e,{per_page:100}),parse:!1}),n=await Ny(r);if(!Array.isArray(n))return n;let o=Py(r);if(!o)return n;let i=[].concat(n);for(;o;){const t=await Hy({...e,path:void 0,url:o,parse:!1}),r=await Ny(t);i=i.concat(r),o=Py(t)}return i},$y=new Set(["PATCH","PUT","DELETE"]),Ly="GET";async function Dy(e){try{return await e.json()}catch{throw{code:"invalid_json",message:_y("The response is not a valid JSON response.")}}}async function jy(e,t=!0){return t?204===e.status?null:await Dy(e):e}async function Fy(e,t=!0){if(!t)throw e;throw await Dy(e)}var zy={Accept:"application/json, */*;q=0.1"},By={credentials:"include"},Vy=[(e,t)=>("string"!=typeof e.url||Ey(e.url,"_locale")||(e.url=Oy(e.url,{_locale:"user"})),"string"!=typeof e.path||Ey(e.path,"_locale")||(e.path=Oy(e.path,{_locale:"user"})),t(e)),xy,(e,t)=>{const{method:r=Ly}=e;return $y.has(r.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":r,"Content-Type":"application/json"},method:"POST"}),t(e)},Ay],Uy=e=>{const{url:t,path:r,data:n,parse:o=!0,...i}=e;let{body:a,headers:s}=e;return s={...zy,...s},n&&(a=JSON.stringify(n),s["Content-Type"]="application/json"),globalThis.fetch(t||r||window.location.href,{...By,...i,body:a,headers:s}).then((e=>e.ok?jy(e,o):Fy(e,o)),(e=>{if(e&&"AbortError"===e.name)throw e;if(!globalThis.navigator.onLine)throw{code:"offline_error",message:_y("Unable to connect. Please check your Internet connection.")};throw{code:"fetch_error",message:_y("Could not get a valid response from the server.")}}))},qy=e=>{const t=Vy.reduceRight(((e,t)=>r=>t(r,e)),Uy);return t(e).catch((t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):globalThis.fetch(qy.nonceEndpoint).then((e=>e.ok?e.text():Promise.reject(t))).then((t=>(qy.nonceMiddleware.nonce=t,qy(e))))))};qy.use=function(e){Vy.unshift(e)},qy.setFetchHandler=function(e){Uy=e},qy.createNonceMiddleware=function(e){const t=(e,r)=>{const{headers:n={}}=e;for(const o in n)if("x-wp-nonce"===o.toLowerCase()&&n[o]===t.nonce)return r(e);return r({...e,headers:{...n,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},qy.createPreloadingMiddleware=function(e){const t=Object.fromEntries(Object.entries(e).map((([e,t])=>[My(e),t])));return(e,r)=>{const{parse:n=!0}=e;let o=e.path;if(!o&&e.url){const{rest_route:t,...r}=ky(e.url);"string"==typeof t&&(o=Oy(t,r))}if("string"!=typeof o)return r(e);const i=e.method||"GET",a=My(o);if("GET"===i&&t[a]){const e=t[a];return delete t[a],Ry(e,!!n)}if("OPTIONS"===i&&t[i]&&t[i][a]){const e=t[i][a];return delete t[i][a],Ry(e,!!n)}return r(e)}},qy.createRootURLMiddleware=e=>(t,r)=>xy(t,(t=>{let n,o=t.url,i=t.path;return"string"==typeof i&&(n=e,-1!==e.indexOf("?")&&(i=i.replace("?","&")),i=i.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(i=i.replace("?","&")),o=n+i),r({...t,url:o})})),qy.fetchAllMiddleware=Ay,qy.mediaUploadMiddleware=(e,t)=>{if(!function(e){const t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);let r=0;const n=e=>(r++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>r<5?n(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject()))));return t({...e,parse:!1}).catch((t=>{if(!(t instanceof globalThis.Response))return Promise.reject(t);const r=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&r?n(r).catch((()=>!1!==e.parse?Promise.reject({code:"post_process",message:_y("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):Fy(t,e.parse)})).then((t=>jy(t,e.parse)))},qy.createThemePreviewMiddleware=e=>(t,r)=>{if("string"==typeof t.url){const r=Cy(t.url,"wp_theme_preview");void 0===r?t.url=Oy(t.url,{wp_theme_preview:e}):""===r&&(t.url=Ty(t.url,"wp_theme_preview"))}if("string"==typeof t.path){const r=Cy(t.path,"wp_theme_preview");void 0===r?t.path=Oy(t.path,{wp_theme_preview:e}):""===r&&(t.path=Ty(t.path,"wp_theme_preview"))}return r(t)};var Wy,Hy=qy;class Ky extends Error{constructor(e){super(e),this.name="APIError"}}!function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE",e.HEAD="HEAD"}(Wy||(Wy={}));const Gy="/wp/v2";class Xy{static async request({path:e,data:t,method:r="POST"}){try{const n=(window?.elementorOneSettingsData?.wpRestUrl||"/wp-json/").replace(/\/$/,""),o=window?.elementorOneSettingsData?.wpRestNonce||"";let i=`${n}${e}`;"GET"!==r||e.startsWith(Gy)||(i=Oy(i,{sb_time:(new Date).getTime()}));const a=await Hy({url:i,method:r,data:t,headers:{"X-WP-Nonce":o}});if(e.startsWith(Gy))return a;if(void 0===a?.success)return a;if(!a.success)throw new Ky(a.data?.message||"Unknown error");return a.data}catch(e){throw e instanceof Ky?e:new Ky(e?.message||"Unknown error")}}}const Yy="/elementor-one/v1";class Qy extends Xy{static async initConnect(e="new"){const t={wp_rest:window?.elementorOneSettingsData?.wpRestNonce};return"update"===e&&(t.update_redirect_uri=!0),Xy.request({method:Wy.POST,path:`${Yy}/connect/authorize`,data:t})}static async disconnect(){return Xy.request({method:Wy.POST,path:`${Yy}/connect/disconnect`,data:{wp_rest:window?.elementorOneSettingsData?.wpRestNonce}})}static async getPluginSettings(){return Xy.request({method:Wy.GET,path:`${Yy}/settings`})}static async getNotifications(e,t){return Xy.request({method:Wy.GET,path:`${Yy}/top-bar/notifications?app_name=${e}&app_version=${t}`})}static async sendFeedback(e){return Xy.request({method:Wy.POST,path:`${Yy}/top-bar/feedback`,data:e})}}var Zy;function Jy(e){const t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function eb(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function tb(e){try{const r=e.rules||e.cssRules;return r?((t=Array.from(r,rb).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function rb(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=tb(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Zy||(Zy={}));class nb{getId(e){var t;if(!e)return-1;const r=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=r?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ob({element:e,maskInputOptions:t,tagName:r,type:n,value:o,maskInputFn:i}){let a=o||"";const s=n&&ib(n);return(t[r.toLowerCase()]||s&&t[s])&&(a=i?i(a,e):"*".repeat(a.length)),a}function ib(e){return e.toLowerCase()}const ab="__rrweb_original__";function sb(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ib(t):null}function lb(e,t){var r;let n;try{n=new URL(e,window.location.href)}catch(e){return null}const o=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!==(r=null==o?void 0:o[1])&&void 0!==r?r:null}let cb=1;const ub=new RegExp("[^a-z0-9-_:]"),pb=-2;function db(){return cb++}let fb,hb;const mb=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,gb=/^(?:[a-z+]+:)?\/\//i,yb=/^www\..*/i,bb=/^(data:)([^,]*),(.*)/i;function vb(e,t){return(e||"").replace(mb,((e,r,n,o,i,a)=>{const s=n||i||a,l=r||o||"";if(!s)return e;if(gb.test(s)||yb.test(s))return`url(${l}${s}${l})`;if(bb.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s}${l})`;const c=t.split("/"),u=s.split("/");c.pop();for(const e of u)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`}))}const _b=/^[^ \t\n\r\u000c]+/,xb=/^[, \t\n\r\u000c]+/;function wb(e,t){if(!t||""===t.trim())return t;const r=e.createElement("a");return r.href=t,r.href}function Sb(){const e=document.createElement("a");return e.href="",e.href}function kb(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?wb(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;const o=e.exec(t.substring(r));return o?(n=o[0],r+=n.length,n):""}const o=[];for(;n(xb),!(r>=t.length);){let i=n(_b);if(","===i.slice(-1))i=wb(e,i.substring(0,i.length-1)),o.push(i);else{let n="";i=wb(e,i);let a=!1;for(;;){const e=t.charAt(r);if(""===e){o.push((i+n).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){r+=1,o.push((i+n).trim());break}"("===e&&(a=!0)}n+=e,r+=1}}}return o.join(", ")}(e,n):"style"===r?vb(n,Sb()):"object"===t&&"data"===r?wb(e,n):n:wb(e,n):n}function Ob(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function Cb(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&Cb(e.parentNode,t,r);for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}return!!r&&Cb(e.parentNode,t,r)}function Eb(e,t,r,n){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("string"==typeof t){if(n){if(o.closest(`.${t}`))return!0}else if(o.classList.contains(t))return!0}else if(Cb(o,t,n))return!0;if(r)if(n){if(o.closest(r))return!0}else if(o.matches(r))return!0}catch(e){}return!1}function Tb(e){return null==e?"":e.toLowerCase()}function Mb(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:i,maskTextClass:a,maskTextSelector:s,skipChild:l=!1,inlineStylesheet:c=!0,maskInputOptions:u={},maskTextFn:p,maskInputFn:d,slimDOMOptions:f,dataURLOptions:h={},inlineImages:m=!1,recordCanvas:g=!1,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:v=5e3,onStylesheetLoad:_,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:S=!1}=t;let{needsMask:k}=t,{preserveWhiteSpace:O=!0}=t;!k&&e.childNodes&&(k=Eb(e,a,s,void 0===k));const C=function(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:a,inlineStylesheet:s,maskInputOptions:l={},maskTextFn:c,maskInputFn:u,dataURLOptions:p={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m=!1}=t,g=function(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Zy.Document,childNodes:[],compatMode:e.compatMode}:{type:Zy.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Zy.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return function(e,t){const{doc:r,blockClass:n,blockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskInputFn:s,dataURLOptions:l={},inlineImages:c,recordCanvas:u,keepIframeSrcFn:p,newlyAddedElement:d=!1,rootId:f}=t,h=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,n,o),m=function(e){if(e instanceof HTMLFormElement)return"form";const t=ib(e.tagName);return ub.test(t)?"div":t}(e);let g={};const y=e.attributes.length;for(let t=0;t<y;t++){const n=e.attributes[t];Ob(m,n.name)||(g[n.name]=kb(r,m,ib(n.name),n.value))}if("link"===m&&i){const t=Array.from(r.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=tb(t)),n&&(delete g.rel,delete g.href,g._cssText=vb(n,t.href))}if("style"===m&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=tb(e.sheet);t&&(g._cssText=vb(t,Sb()))}if("input"===m||"textarea"===m||"select"===m){const t=e.value,r=e.checked;"radio"!==g.type&&"checkbox"!==g.type&&"submit"!==g.type&&"button"!==g.type&&t?g.value=ob({element:e,type:sb(e),tagName:m,value:t,maskInputOptions:a,maskInputFn:s}):r&&(g.checked=r)}if("option"===m&&(e.selected&&!a.select?g.selected=!0:delete g.selected),"canvas"===m&&u)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){const o=t.getImageData,i=ab in o?o[ab]:o;if(new Uint32Array(i.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(g.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),r=document.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(l.type,l.quality)&&(g.rr_dataURL=t)}if("img"===m&&c){fb||(fb=r.createElement("canvas"),hb=fb.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const o=()=>{t.removeEventListener("load",o);try{fb.width=t.naturalWidth,fb.height=t.naturalHeight,hb.drawImage(t,0,0),g.rr_dataURL=fb.toDataURL(l.type,l.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?g.crossOrigin=n:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if("audio"===m||"video"===m){const t=g;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}if(d||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),h){const{width:t,height:r}=e.getBoundingClientRect();g={class:g.class,rr_width:`${t}px`,rr_height:`${r}px`}}let b;"iframe"!==m||p(g.src)||(e.contentDocument||(g.rr_src=g.src),delete g.src);try{customElements.get(m)&&(b=!0)}catch(e){}return{type:Zy.Element,tagName:m,attributes:g,childNodes:[],isSVG:(v=e,Boolean("svg"===v.tagName||v.ownerSVGElement)||void 0),needBlock:h,rootId:f,isCustom:b};var v}(e,{doc:r,blockClass:o,blockSelector:i,inlineStylesheet:s,maskInputOptions:l,maskInputFn:u,dataURLOptions:p,inlineImages:d,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m,rootId:g});case e.TEXT_NODE:return function(e,t){var r;const{needsMask:n,maskTextFn:o,rootId:i}=t,a=e.parentNode&&e.parentNode.tagName;let s=e.textContent;const l="STYLE"===a||void 0,c="SCRIPT"===a||void 0;if(l&&s){try{e.nextSibling||e.previousSibling||(null===(r=e.parentNode.sheet)||void 0===r?void 0:r.cssRules)&&(s=tb(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}s=vb(s,Sb())}return c&&(s="SCRIPT_PLACEHOLDER"),!l&&!c&&s&&n&&(s=o?o(s,e.parentElement):s.replace(/[\S]/g,"*")),{type:Zy.Text,textContent:s||"",isStyle:l,rootId:i}}(e,{needsMask:a,maskTextFn:c,rootId:g});case e.CDATA_SECTION_NODE:return{type:Zy.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:Zy.Comment,textContent:e.textContent||"",rootId:g};default:return!1}}(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:k,inlineStylesheet:c,maskInputOptions:u,maskTextFn:p,maskInputFn:d,dataURLOptions:h,inlineImages:m,recordCanvas:g,keepIframeSrcFn:w,newlyAddedElement:S});if(!C)return console.warn(e,"not serialized"),null;let E;E=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===Zy.Comment)return!0;if(e.type===Zy.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===lb(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Tb(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Tb(e.attributes.name)||"icon"===Tb(e.attributes.rel)||"apple-touch-icon"===Tb(e.attributes.rel)||"shortcut icon"===Tb(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Tb(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Tb(e.attributes.property).match(/^(og|twitter|fb):/)||Tb(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Tb(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Tb(e.attributes.name)||"googlebot"===Tb(e.attributes.name)||"bingbot"===Tb(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Tb(e.attributes.name)||"generator"===Tb(e.attributes.name)||"framework"===Tb(e.attributes.name)||"publisher"===Tb(e.attributes.name)||"progid"===Tb(e.attributes.name)||Tb(e.attributes.property).match(/^article:/)||Tb(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Tb(e.attributes.name)||"yandex-verification"===Tb(e.attributes.name)||"csrf-token"===Tb(e.attributes.name)||"p:domain_verify"===Tb(e.attributes.name)||"verify-v1"===Tb(e.attributes.name)||"verification"===Tb(e.attributes.name)||"shopify-checkout-api-token"===Tb(e.attributes.name)))return!0}}return!1}(C,f)&&(O||C.type!==Zy.Text||C.isStyle||C.textContent.replace(/^\s+|\s+$/gm,"").length)?db():pb;const T=Object.assign(C,{id:E});if(n.add(e,T),E===pb)return null;y&&y(e);let M=!l;if(T.type===Zy.Element){M=M&&!T.needBlock,delete T.needBlock;const t=e.shadowRoot;t&&eb(t)&&(T.isShadowHost=!0)}if((T.type===Zy.Document||T.type===Zy.Element)&&M){f.headWhitespace&&T.type===Zy.Element&&"head"===T.tagName&&(O=!1);const t={doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:k,maskTextClass:a,maskTextSelector:s,skipChild:l,inlineStylesheet:c,maskInputOptions:u,maskTextFn:p,maskInputFn:d,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:g,preserveWhiteSpace:O,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:_,stylesheetLoadTimeout:x,keepIframeSrcFn:w};if(T.type===Zy.Element&&"textarea"===T.tagName&&void 0!==T.attributes.value);else for(const r of Array.from(e.childNodes)){const e=Mb(r,t);e&&T.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const r of Array.from(e.shadowRoot.childNodes)){const n=Mb(r,t);n&&(eb(e.shadowRoot)&&(n.isShadow=!0),T.childNodes.push(n))}}return e.parentNode&&Jy(e.parentNode)&&eb(e.parentNode)&&(T.isShadow=!0),T.type===Zy.Element&&"iframe"===T.tagName&&function(e,t,r){const n=e.contentWindow;if(!n)return;let o,i=!1;try{o=n.document.readyState}catch(e){return}if("complete"!==o){const n=setTimeout((()=>{i||(t(),i=!0)}),r);return void e.addEventListener("load",(()=>{clearTimeout(n),i=!0,t()}))}const a="about:blank";if(n.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&b){const r=Mb(t,{doc:t,mirror:n,blockClass:o,blockSelector:i,needsMask:k,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:p,maskInputFn:d,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:g,preserveWhiteSpace:O,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:_,stylesheetLoadTimeout:x,keepIframeSrcFn:w});r&&b(e,r)}}),v),T.type===Zy.Element&&"link"===T.tagName&&"string"==typeof T.attributes.rel&&("stylesheet"===T.attributes.rel||"preload"===T.attributes.rel&&"string"==typeof T.attributes.href&&"css"===lb(T.attributes.href))&&function(e,t,r){let n,o=!1;try{n=e.sheet}catch(e){return}if(n)return;const i=setTimeout((()=>{o||(t(),o=!0)}),r);e.addEventListener("load",(()=>{clearTimeout(i),o=!0,t()}))}(e,(()=>{if(_){const t=Mb(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,needsMask:k,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:c,maskInputOptions:u,maskTextFn:p,maskInputFn:d,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:g,preserveWhiteSpace:O,onSerialize:y,onIframeLoad:b,iframeLoadTimeout:v,onStylesheetLoad:_,stylesheetLoadTimeout:x,keepIframeSrcFn:w});t&&_(e,t)}}),x),T}function Rb(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const Ib="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Nb={map:{},getId:()=>(console.error(Ib),-1),getNode:()=>(console.error(Ib),null),removeNodeFromMap(){console.error(Ib)},has:()=>(console.error(Ib),!1),reset(){console.error(Ib)}};function Pb(e,t,r={}){let n=null,o=0;return function(...i){const a=Date.now();o||!1!==r.leading||(o=a);const s=t-(a-o),l=this;s<=0||s>t?(n&&(clearTimeout(n),n=null),o=a,e.apply(l,i)):n||!1===r.trailing||(n=setTimeout((()=>{o=!1===r.leading?0:Date.now(),n=null,e.apply(l,i)}),s))}}function Ab(e,t,r,n,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set(e){setTimeout((()=>{r.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>Ab(e,t,i||{},!0)}function $b(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,()=>{e[t]=n}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Nb=new Proxy(Nb,{get:(e,t,r)=>("map"===t&&console.error(Ib),Reflect.get(e,t,r))}));let Lb=Date.now;function Db(e){var t,r,n,o,i,a;const s=e.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==s?void 0:s.documentElement.scrollLeft)||(null===(r=null===(t=null==s?void 0:s.body)||void 0===t?void 0:t.parentElement)||void 0===r?void 0:r.scrollLeft)||(null===(n=null==s?void 0:s.body)||void 0===n?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==s?void 0:s.documentElement.scrollTop)||(null===(i=null===(o=null==s?void 0:s.body)||void 0===o?void 0:o.parentElement)||void 0===i?void 0:i.scrollTop)||(null===(a=null==s?void 0:s.body)||void 0===a?void 0:a.scrollTop)||0}}function jb(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Fb(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function zb(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Bb(e,t,r,n){if(!e)return!1;const o=zb(e);if(!o)return!1;try{if("string"==typeof t){if(o.classList.contains(t))return!0;if(n&&null!==o.closest("."+t))return!0}else if(Cb(o,t,n))return!0}catch(e){}if(r){if(o.matches(r))return!0;if(n&&null!==o.closest(r))return!0}return!1}function Vb(e,t){return t.getId(e)===pb}function Ub(e,t){if(Jy(e))return!1;const r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Ub(e.parentNode,t))}function qb(e){return Boolean(e.changedTouches)}function Wb(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Hb(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Kb(e){return Boolean(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(Lb=()=>(new Date).getTime());class Gb{getId(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}}function Xb(e){var t,r;let n=null;return(null===(r=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e))||void 0===r?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(n=e.getRootNode().host),n}function Yb(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){const t=e.ownerDocument;if(!t)return!1;const r=function(e){let t,r=e;for(;t=Xb(r);)r=t;return r}(e);return t.contains(r)}(e))}var Qb=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Qb||{}),Zb=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Zb||{}),Jb=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Jb||{}),ev=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ev||{}),tv=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(tv||{});function rv(e){return"__ln"in e}class nv{get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&rv(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&rv(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}constructor(){this.length=0,this.head=null,this.tail=null}}const ov=(e,t)=>`${e}@${t}`;class iv{init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new nv,n=e=>{let t=e,r=pb;for(;r===pb;)t=t&&t.nextSibling,r=t&&this.mirror.getId(t);return r},o=o=>{if(!o.parentNode||!Yb(o)||"TEXTAREA"===o.parentNode.tagName)return;const i=Jy(o.parentNode)?this.mirror.getId(Xb(o)):this.mirror.getId(o.parentNode),a=n(o);if(-1===i||-1===a)return r.addNode(o);const s=Mb(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Wb(e,this.mirror)&&this.iframeManager.addIframe(e),Hb(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Kb(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:i,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)sv(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)cv(this.droppedSet,e)||sv(this.removes,e,this.mirror)?cv(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let i=null;for(;r.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),r=n(i.value);-1!==t&&-1!==r&&(e=i)}if(!e){let t=r.tail;for(;t;){const r=t;if(t=t.previous,r){const t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{const t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}i=e.previous,r.removeNode(e.value),o(e.value)}const a={texts:this.texts.map((e=>{const t=e.node;return t.parentNode&&"TEXTAREA"===t.parentNode.tagName&&this.genTextAreaValueMutation(t.parentNode),{id:this.mirror.getId(t),value:e.value}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.genTextAreaValueMutation=e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(e.childNodes,(e=>e.textContent||"")).join("")},this.processMutation=e=>{if(!Vb(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;Bb(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:Eb(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,zb(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){const e=sb(t);n=ob({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:n,maskInputFn:this.maskInputFn})}if(Bb(e.target,this.blockClass,this.blockSelector,!1)||n===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(t.contentDocument)return;r="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Ob(t.tagName,r)&&(o.attributes[r]=kb(this.doc,ib(t.tagName),ib(r),n),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const r=this.unattachedDoc.createElement("span");e.oldValue&&r.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const n=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);n!==r.style.getPropertyValue(e)||i!==r.style.getPropertyPriority(e)?o.styleDiff[e]=""===i?n:[n,i]:o._unchangedStyles[e]=[n,i]}for(const e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(Bb(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const r=this.mirror.getId(t),n=Jy(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Bb(e.target,this.blockClass,this.blockSelector,!1)||Vb(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(av(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||Ub(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[ov(r,n)]?av(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!(!Jy(e.target)||!eb(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Vb(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[ov(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Bb(e,this.blockClass,this.blockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Kb(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}}function av(e,t){e.delete(t),t.childNodes.forEach((t=>av(e,t)))}function sv(e,t,r){return 0!==e.length&&lv(e,t,r)}function lv(e,t,r){const{parentNode:n}=t;if(!n)return!1;const o=r.getId(n);return!!e.some((e=>e.id===o))||lv(e,n,r)}function cv(e,t){return 0!==e.size&&uv(e,t)}function uv(e,t){const{parentNode:r}=t;return!!r&&(!!e.has(r)||uv(e,r))}let pv;function dv(e){pv=e}function fv(){pv=void 0}const hv=e=>pv?(...t)=>{try{return e(...t)}catch(e){if(pv&&!0===pv(e))return;throw e}}:e,mv=[];function gv(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function yv(e,t){var r,n;const o=new iv;mv.push(o),o.init(e);let i=window.MutationObserver||window.__rrMutationObserver;const a=null===(n=null===(r=null===window||void 0===window?void 0:window.Zone)||void 0===r?void 0:r.__symbol__)||void 0===n?void 0:n.call(r,"MutationObserver");a&&window[a]&&(i=window[a]);const s=new i(hv(o.processMutations.bind(o)));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function bv({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,sampling:i}){const a=hv(Pb(hv((i=>{const a=gv(i);if(!a||Bb(a,n,o,!0))return;const s=r.getId(a);if(a===t&&t.defaultView){const r=Db(t.defaultView);e({id:s,x:r.left,y:r.top})}else e({id:s,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100));return Rb("scroll",a,t)}const vv=["INPUT","TEXTAREA","SELECT"],_v=new WeakMap;function xv(e){return function(e,t){if(Ov("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Ov("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Ov("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Ov("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){const r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function wv(e,t,r){let n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function Sv({mirror:e,stylesheetManager:t},r){var n,o,i;let a=null;a="#document"===r.nodeName?e.getId(r):e.getId(r.host);const s="#document"===r.nodeName?null===(n=r.defaultView)||void 0===n?void 0:n.Document:null===(i=null===(o=r.ownerDocument)||void 0===o?void 0:o.defaultView)||void 0===i?void 0:i.ShadowRoot,l=(null==s?void 0:s.prototype)?Object.getOwnPropertyDescriptor(null==s?void 0:s.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&s&&l?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null===(e=l.get)||void 0===e?void 0:e.call(this)},set(e){var r;const n=null===(r=l.set)||void 0===r?void 0:r.call(this,e);if(null!==a&&-1!==a)try{t.adoptStyleSheets(e,a)}catch(e){}return n}}),hv((()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))):()=>{}}function kv(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};let n;!function(e,t){const{mutationCb:r,mousemoveCb:n,mouseInteractionCb:o,scrollCb:i,viewportResizeCb:a,inputCb:s,mediaInteractionCb:l,styleSheetRuleCb:c,styleDeclarationCb:u,canvasMutationCb:p,fontCb:d,selectionCb:f,customElementCb:h}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),n(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),o(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),i(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),a(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),s(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),c(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),p(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),d(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),f(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),h(...e)}}(e,t),e.recordDOM&&(n=yv(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let a,s=[];const l=Pb(hv((t=>{const r=Date.now()-a;e(s.map((e=>(e.timeOffset-=r,e))),t),s=[],a=null})),i),c=hv(Pb(hv((e=>{const t=gv(e),{clientX:r,clientY:o}=qb(e)?e.changedTouches[0]:e;a||(a=Lb()),s.push({x:r,y:o,id:n.getId(t),timeOffset:Lb()-a}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?Zb.Drag:e instanceof MouseEvent?Zb.MouseMove:Zb.TouchMove)})),o,{trailing:!1})),u=[Rb("mousemove",c,r),Rb("touchmove",c,r),Rb("drag",c,r)];return hv((()=>{u.forEach((e=>e()))}))}(e),i=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,s=[];let l=null;return Object.keys(Jb).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((i=>{let a=ib(i);const c=(t=>i=>{const a=gv(i);if(Bb(a,n,o,!0))return;let s=null,c=t;if("pointerType"in i){switch(i.pointerType){case"mouse":s=ev.Mouse;break;case"touch":s=ev.Touch;break;case"pen":s=ev.Pen}s===ev.Touch&&(Jb[t]===Jb.MouseDown?c="TouchStart":Jb[t]===Jb.MouseUp&&(c="TouchEnd"))}else qb(i)&&(s=ev.Touch);null!==s?(l=s,(c.startsWith("Touch")&&s===ev.Touch||c.startsWith("Mouse")&&s===ev.Mouse)&&(s=null)):Jb[t]===Jb.Click&&(s=l,l=null);const u=qb(i)?i.changedTouches[0]:i;if(!u)return;const p=r.getId(a),{clientX:d,clientY:f}=u;hv(e)(Object.assign({type:Jb[c],id:p,x:d,y:f},null!==s&&{pointerType:s}))})(i);if(window.PointerEvent)switch(Jb[i]){case Jb.MouseDown:case Jb.MouseUp:a=a.replace("mouse","pointer");break;case Jb.TouchStart:case Jb.TouchEnd:return}s.push(Rb(a,c,t))})),hv((()=>{s.forEach((e=>e()))}))}(e),a=bv(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;const o=hv(Pb(hv((()=>{const t=jb(),o=Fb();r===t&&n===o||(e({width:Number(o),height:Number(t)}),r=t,n=o)})),200));return Rb("resize",o,t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:s,maskInputFn:l,sampling:c,userTriggeredOnInput:u}){function p(e){let r=gv(e);const c=e.isTrusted,p=r&&r.tagName;if(r&&"OPTION"===p&&(r=r.parentElement),!r||!p||vv.indexOf(p)<0||Bb(r,n,o,!0))return;if(r.classList.contains(i)||a&&r.matches(a))return;let f=r.value,h=!1;const m=sb(r)||"";"radio"===m||"checkbox"===m?h=r.checked:(s[p.toLowerCase()]||s[m])&&(f=ob({element:r,maskInputOptions:s,tagName:p,type:m,value:f,maskInputFn:l})),d(r,u?{text:f,isChecked:h,userTriggered:c}:{text:f,isChecked:h});const g=r.name;"radio"===m&&g&&h&&t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach((e=>{if(e!==r){const t=e.value;d(e,u?{text:t,isChecked:!h,userTriggered:!1}:{text:t,isChecked:!h})}}))}function d(t,n){const o=_v.get(t);if(!o||o.text!==n.text||o.isChecked!==n.isChecked){_v.set(t,n);const o=r.getId(t);hv(e)(Object.assign(Object.assign({},n),{id:o}))}}const f=("last"===c.input?["change"]:["input","change"]).map((e=>Rb(e,hv(p),t))),h=t.defaultView;if(!h)return()=>{f.forEach((e=>e()))};const m=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),g=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return m&&m.set&&f.push(...g.map((e=>Ab(e[0],e[1],{set(){hv(p)({target:this,isTrusted:!1})}},!1,h)))),hv((()=>{f.forEach((e=>e()))}))}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:n,sampling:o,doc:i}){const a=hv((i=>Pb(hv((o=>{const a=gv(o);if(!a||Bb(a,t,r,!0))return;const{currentTime:s,volume:l,muted:c,playbackRate:u,loop:p}=a;e({type:i,id:n.getId(a),currentTime:s,volume:l,muted:c,playbackRate:u,loop:p})})),o.media||500))),s=[Rb("play",a(0),i),Rb("pause",a(1),i),Rb("seeked",a(2),i),Rb("volumechange",a(3),i),Rb("ratechange",a(4),i)];return hv((()=>{s.forEach((e=>e()))}))}(e);let u=()=>{},p=()=>{},d=()=>{},f=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:hv(((n,o,i)=>{const[a,s]=i,{id:l,styleId:c}=wv(o,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:s}]}),n.apply(o,i)}))});const i=n.CSSStyleSheet.prototype.deleteRule;let a,s;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:hv(((n,o,i)=>{const[a]=i,{id:s,styleId:l}=wv(o,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:a}]}),n.apply(o,i)}))}),n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:hv(((n,o,i)=>{const[a]=i,{id:s,styleId:l}=wv(o,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:a}),n.apply(o,i)}))})),n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:hv(((n,o,i)=>{const[a]=i,{id:s,styleId:l}=wv(o,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:a}),n.apply(o,i)}))}));const l={};Cv("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(Cv("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),Cv("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),Cv("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));const c={};return Object.entries(l).forEach((([n,o])=>{c[n]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(c[n].insertRule,{apply:hv(((n,o,i)=>{const[a,s]=i,{id:l,styleId:c}=wv(o.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:[...xv(o),s||0]}]}),n.apply(o,i)}))}),o.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:hv(((n,o,i)=>{const[a]=i,{id:s,styleId:l}=wv(o.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...xv(o),a]}]}),n.apply(o,i)}))})})),hv((()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=i,a&&(n.CSSStyleSheet.prototype.replace=a),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach((([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule}))}))}(e,{win:r}),p=Sv(e,e.doc),d=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:hv(((o,a,s)=>{var l;const[c,u,p]=s;if(r.has(c))return i.apply(a,[c,u,p]);const{id:d,styleId:f}=wv(null===(l=a.parentRule)||void 0===l?void 0:l.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||f&&-1!==f)&&e({id:d,styleId:f,set:{property:c,value:u,priority:p},index:xv(a.parentRule)}),o.apply(a,s)}))});const a=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:hv(((o,i,s)=>{var l;const[c]=s;if(r.has(c))return a.apply(i,[c]);const{id:u,styleId:p}=wv(null===(l=i.parentRule)||void 0===l?void 0:l.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||p&&-1!==p)&&e({id:u,styleId:p,remove:{property:c},index:xv(i.parentRule)}),o.apply(i,s)}))}),hv((()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=a}))}(e,{win:r}),e.collectFonts&&(f=function({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],o=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){const n=new i(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};const a=$b(t.fonts,"add",(function(t){return function(r){return setTimeout(hv((()=>{const t=o.get(r);t&&(e(t),o.delete(r))})),0),t.apply(this,[r])}}));return n.push((()=>{r.FontFace=i})),n.push(a),hv((()=>{n.forEach((e=>e()))}))}(e)));const h=function(e){const{doc:t,mirror:r,blockClass:n,blockSelector:o,selectionCb:i}=e;let a=!0;const s=hv((()=>{const e=t.getSelection();if(!e||a&&(null==e?void 0:e.isCollapsed))return;a=e.isCollapsed||!1;const s=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:l,endContainer:c,endOffset:u}=i;Bb(a,n,o,!0)||Bb(c,n,o,!0)||s.push({start:r.getId(a),startOffset:l,end:r.getId(c),endOffset:u})}i({ranges:s})}));return s(),Rb("selectionchange",s)}(e),m=function({doc:e,customElementCb:t}){const r=e.defaultView;return r&&r.customElements?$b(r.customElements,"define",(function(e){return function(r,n,o){try{t({define:{name:r}})}catch(e){console.warn(`Custom element callback failed for ${r}`)}return e.apply(this,[r,n,o])}})):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,r,t.options));return hv((()=>{mv.forEach((e=>e.reset())),null==n||n.disconnect(),o(),i(),a(),s(),l(),c(),u(),p(),d(),f(),h(),m(),g.forEach((e=>e()))}))}function Ov(e){return void 0!==window[e]}function Cv(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Ev{getId(e,t,r,n){const o=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e);let a=o.get(t);return a||(a=this.generateIdFn(),o.set(t,a),i.set(a,t)),a}getIds(e,t){const r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,r,n)))}getRemoteId(e,t,r){const n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return n.get(t)||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,r)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}}class Tv{addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(r=this.loadListener)||void 0===r||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case Qb.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:Qb.IncrementalSnapshot,data:{source:Zb.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Qb.Meta:case Qb.Load:case Qb.DomContentLoaded:return!1;case Qb.Plugin:return t;case Qb.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Qb.IncrementalSnapshot:switch(t.data.source){case Zb.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Zb.Drag:case Zb.TouchMove:case Zb.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Zb.ViewportResize:return!1;case Zb.MediaInteraction:case Zb.MouseInteraction:case Zb.Scroll:case Zb.CanvasMutation:case Zb.Input:return this.replaceIds(t.data,e,["id"]),t;case Zb.StyleSheetRule:case Zb.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Zb.Font:return t;case Zb.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Zb.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null===(r=t.data.styles)||void 0===r||r.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,r,n){for(const o of n)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(r,t[o]):t[o]=e.getId(r,t[o]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===Zy.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ev(db),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ev(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}}class Mv{init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!eb(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=yv(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((()=>r.disconnect())),this.restoreHandlers.push(bv(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Sv({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push($b(e.prototype,"attachShadow",(function(e){return function(n){const o=e.call(this,n);return this.shadowRoot&&Yb(this)&&r.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}}for(var Rv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Iv="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Nv=0;Nv<64;Nv++)Iv[Rv.charCodeAt(Nv)]=Nv;const Pv=new Map,Av=(e,t,r)=>{if(!e||!Dv(e,t)&&"object"!=typeof e)return;const n=function(e,t){let r=Pv.get(e);return r||(r=new Map,Pv.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name);let o=n.indexOf(e);return-1===o&&(o=n.length,n.push(e)),o};function $v(e,t,r){if(e instanceof Array)return e.map((e=>$v(e,t,r)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const t=e.constructor.name,r=function(e){var t,r=new Uint8Array(e),n=r.length,o="";for(t=0;t<n;t+=3)o+=Rv[r[t]>>2],o+=Rv[(3&r[t])<<4|r[t+1]>>4],o+=Rv[(15&r[t+1])<<2|r[t+2]>>6],o+=Rv[63&r[t+2]];return n%3==2?o=o.substring(0,o.length-1)+"=":n%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e);return{rr_type:t,base64:r}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[$v(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:r}=e;return{rr_type:t,src:r}}return e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[$v(e.data,t,r),e.width,e.height]}:Dv(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:Av(e,t,r)}:e}const Lv=(e,t,r)=>e.map((e=>$v(e,t,r))),Dv=(e,t)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(r.find((r=>e instanceof t[r])))};function jv(e,t,r,n){const o=[];try{const i=$b(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(o,...i){if(!Bb(this,t,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(o);if("__context"in this||(this.__context=e),n&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){const e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...i])}}));o.push(i)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach((e=>e()))}}function Fv(e,t,r,n,o,i,a){const s=[],l=Object.getOwnPropertyNames(e);for(const i of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))try{if("function"!=typeof e[i])continue;const l=$b(e,i,(function(e){return function(...s){const l=e.apply(this,s);if(Av(l,a,this),"tagName"in this.canvas&&!Bb(this.canvas,n,o,!0)){const e=Lv(s,a,this),n={type:t,property:i,args:e};r(this.canvas,n)}return l}}));s.push(l)}catch(n){const o=Ab(e,i,{set(e){r(this.canvas,{type:t,property:i,args:[e],setter:!0})}});s.push(o)}return s}var zv,Bv,Vv=(zv=function(){!function(){function e(e,t,r,n){return new(r||(r=Promise))((function(t,o){function i(e){try{s(n.next(e))}catch(e){o(e)}}function a(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,a)}s((n=n.apply(e,[])).next())}))}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n=0;n<64;n++)r[t.charCodeAt(n)]=n;var o=function(e){var r,n=new Uint8Array(e),o=n.length,i="";for(r=0;r<o;r+=3)i+=t[n[r]>>2],i+=t[(3&n[r])<<4|n[r+1]>>4],i+=t[(15&n[r+1])<<2|n[r+2]>>6],i+=t[63&n[r+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i};const i=new Map,a=new Map,s=self;s.onmessage=function(t){return e(this,0,void 0,(function*(){if(!("OffscreenCanvas"in globalThis))return s.postMessage({id:t.data.id});{const{id:r,bitmap:n,width:l,height:c,dataURLOptions:u}=t.data,p=function(t,r,n){return e(this,0,void 0,(function*(){const e=`${t}-${r}`;if("OffscreenCanvas"in globalThis){if(a.has(e))return a.get(e);const i=new OffscreenCanvas(t,r);i.getContext("2d");const s=yield i.convertToBlob(n),l=yield s.arrayBuffer(),c=o(l);return a.set(e,c),c}return""}))}(l,c,u),d=new OffscreenCanvas(l,c);d.getContext("2d").drawImage(n,0,0),n.close();const f=yield d.convertToBlob(u),h=f.type,m=yield f.arrayBuffer(),g=o(m);if(!i.has(r)&&(yield p)===g)return i.set(r,g),s.postMessage({id:r});if(i.get(r)===g)return s.postMessage({id:r});s.postMessage({id:r,type:h,base64:g,width:l,height:c}),i.set(r,g)}}))}}()},function(e){return Bv=Bv||function(e){var t=function(e){var t=e.toString().split("\n");t.pop(),t.shift();for(var r=t[0].search(/\S/),n=/(['"])__worker_loader_strict__(['"])/g,o=0,i=t.length;o<i;++o)t[o]=t[o].substring(r).replace(n,"$1use strict$2")+"\n";return t}(e),r=new Blob(t,{type:"application/javascript"});return URL.createObjectURL(r)}(zv),new Worker(Bv,e)});class Uv{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,r,n,o){const i=jv(t,r,n,!0),a=new Map,s=new Vv;s.onmessage=e=>{const{id:t}=e.data;if(a.set(t,!1),!("base64"in e.data))return;const{base64:r,type:n,width:o,height:i}=e.data;this.mutationCb({id:t,type:tv["2D"],commands:[{property:"clearRect",args:[0,0,o,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:n}]},0,0]}]})};const l=1e3/e;let c,u=0;const p=e=>{u&&e-u<l||(u=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach((t=>{Bb(t,r,n,!0)||e.push(t)})),e})().forEach((e=>{return t=this,n=function*(){var t;const r=this.mirror.getId(e);if(a.get(r))return;if(0===e.width||0===e.height)return;if(a.set(r,!0),["webgl","webgl2"].includes(e.__context)){const r=e.getContext(e.__context);!1===(null===(t=null==r?void 0:r.getContextAttributes())||void 0===t?void 0:t.preserveDrawingBuffer)&&r.clear(r.COLOR_BUFFER_BIT)}const n=yield createImageBitmap(e);s.postMessage({id:r,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n])},new((r=void 0)||(r=Promise))((function(e,o){function i(e){try{s(n.next(e))}catch(e){o(e)}}function a(e){try{s(n.throw(e))}catch(e){o(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,a)}s((n=n.apply(t,[])).next())}));var t,r,n}))),c=requestAnimationFrame(p)};c=requestAnimationFrame(p),this.resetObservers=()=>{i(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=jv(e,t,r,!1),o=function(e,t,r,n){const o=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;const i=$b(t.CanvasRenderingContext2D.prototype,a,(function(o){return function(...i){return Bb(this.canvas,r,n,!0)||setTimeout((()=>{const r=Lv(i,t,this);e(this.canvas,{type:tv["2D"],property:a,args:r})}),0),o.apply(this,i)}}));o.push(i)}catch(r){const n=Ab(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:tv["2D"],property:a,args:[t],setter:!0})}});o.push(n)}return()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r),i=function(e,t,r,n){const o=[];return o.push(...Fv(t.WebGLRenderingContext.prototype,tv.WebGL,e,r,n,0,t)),void 0!==t.WebGL2RenderingContext&&o.push(...Fv(t.WebGL2RenderingContext.prototype,tv.WebGL2,e,r,n,0,t)),()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,this.mirror);this.resetObservers=()=>{n(),o(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;const n=r.map((e=>{const t=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["type"]);return t})),{type:o}=r[0];this.mutationCb({id:t,type:o,commands:n}),this.pendingCanvasMutations.delete(e)}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{sampling:t="all",win:r,blockClass:n,blockSelector:o,recordCanvas:i,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(r,n,o),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,n,o,{dataURLOptions:a})}}class qv{attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:rb(e),index:t})))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Gb,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}}class Wv{periodicallyClear(){requestAnimationFrame((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}}function Hv(e){return Object.assign(Object.assign({},e),{timestamp:Lb()})}let Kv,Gv,Xv,Yv=!1;const Qv=new nb;function Zv(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:s=null,maskTextClass:l="rr-mask",maskTextSelector:c=null,inlineStylesheet:u=!0,maskAllInputs:p,maskInputOptions:d,slimDOMOptions:f,maskInputFn:h,maskTextFn:m,hooks:g,packFn:y,sampling:b={},dataURLOptions:v={},mousemoveWait:_,recordDOM:x=!0,recordCanvas:w=!1,recordCrossOriginIframes:S=!1,recordAfter:k=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:O=!1,collectFonts:C=!1,inlineImages:E=!1,plugins:T,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:R=new Set([]),errorHandler:I}=e;dv(I);const N=!S||window.parent===window;let P=!1;if(!N)try{window.parent.document&&(P=!1)}catch(e){P=!0}if(N&&!t)throw new Error("emit function is required");void 0!==_&&void 0===b.mousemove&&(b.mousemove=_),Qv.reset();const A=!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==d?d:{password:!0},$=!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===f,headMetaDescKeywords:"all"===f}:f||{};let L;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let D=0;const j=e=>{for(const t of T||[])t.eventProcessor&&(e=t.eventProcessor(e));return y&&!P&&(e=y(e)),e};Kv=(e,o)=>{var i;if(!(null===(i=mv[0])||void 0===i?void 0:i.isFrozen())||e.type===Qb.FullSnapshot||e.type===Qb.IncrementalSnapshot&&e.data.source===Zb.Mutation||mv.forEach((e=>e.unfreeze())),N)null==t||t(j(e),o);else if(P){const t={type:"rrweb",event:j(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===Qb.FullSnapshot)L=e,D=0;else if(e.type===Qb.IncrementalSnapshot){if(e.data.source===Zb.Mutation&&e.data.isAttachIframe)return;D++;const t=n&&D>=n,o=r&&e.timestamp-L.timestamp>r;(t||o)&&Gv(!0)}};const F=e=>{Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.Mutation},e)}))},z=e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.Scroll},e)})),B=e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.CanvasMutation},e)})),V=new qv({mutationCb:F,adoptedStyleSheetCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.AdoptedStyleSheet},e)}))}),U=new Tv({mirror:Qv,mutationCb:F,stylesheetManager:V,recordCrossOriginIframes:S,wrappedEmit:Kv});for(const e of T||[])e.getMirror&&e.getMirror({nodeMirror:Qv,crossOriginIframeMirror:U.crossOriginIframeMirror,crossOriginIframeStyleMirror:U.crossOriginIframeStyleMirror});const q=new Wv;Xv=new Uv({recordCanvas:w,mutationCb:B,win:window,blockClass:o,blockSelector:i,mirror:Qv,sampling:b.canvas,dataURLOptions:v});const W=new Mv({mutationCb:F,scrollCb:z,bypassOptions:{blockClass:o,blockSelector:i,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskInputOptions:A,dataURLOptions:v,maskTextFn:m,maskInputFn:h,recordCanvas:w,inlineImages:E,sampling:b,slimDOMOptions:$,iframeManager:U,stylesheetManager:V,canvasManager:Xv,keepIframeSrcFn:M,processedNodeManager:q},mirror:Qv});Gv=(e=!1)=>{if(!x)return;Kv(Hv({type:Qb.Meta,data:{href:window.location.href,width:Fb(),height:jb()}}),e),V.reset(),W.init(),mv.forEach((e=>e.lock()));const t=function(e,t){const{mirror:r=new nb,blockClass:n="rr-block",blockSelector:o=null,maskTextClass:i="rr-mask",maskTextSelector:a=null,inlineStylesheet:s=!0,inlineImages:l=!1,recordCanvas:c=!1,maskAllInputs:u=!1,maskTextFn:p,maskInputFn:d,slimDOM:f=!1,dataURLOptions:h,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:_,keepIframeSrcFn:x=()=>!1}=t||{};return Mb(e,{doc:e,mirror:r,blockClass:n,blockSelector:o,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:s,maskInputOptions:!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===u?{password:!0}:u,maskTextFn:p,maskInputFn:d,slimDOMOptions:!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===f,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===f?{}:f,dataURLOptions:h,inlineImages:l,recordCanvas:c,preserveWhiteSpace:m,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:v,stylesheetLoadTimeout:_,keepIframeSrcFn:x,newlyAddedElement:!1})}(document,{mirror:Qv,blockClass:o,blockSelector:i,maskTextClass:l,maskTextSelector:c,inlineStylesheet:u,maskAllInputs:A,maskTextFn:m,slimDOM:$,dataURLOptions:v,recordCanvas:w,inlineImages:E,onSerialize:e=>{Wb(e,Qv)&&U.addIframe(e),Hb(e,Qv)&&V.trackLinkElement(e),Kb(e)&&W.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{U.attachIframe(e,t),W.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{V.attachLinkElement(e,t)},keepIframeSrcFn:M});if(!t)return console.warn("Failed to snapshot the document");Kv(Hv({type:Qb.FullSnapshot,data:{node:t,initialOffset:Db(window)}}),e),mv.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&V.adoptStyleSheets(document.adoptedStyleSheets,Qv.getId(document))};try{const e=[],t=e=>{var t;return hv(kv)({mutationCb:F,mousemoveCb:(e,t)=>Kv(Hv({type:Qb.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.MouseInteraction},e)})),scrollCb:z,viewportResizeCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.ViewportResize},e)})),inputCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.Input},e)})),mediaInteractionCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.MediaInteraction},e)})),styleSheetRuleCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.StyleSheetRule},e)})),styleDeclarationCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.StyleDeclaration},e)})),canvasMutationCb:B,fontCb:e=>Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.Font},e)})),selectionCb:e=>{Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.Selection},e)}))},customElementCb:e=>{Kv(Hv({type:Qb.IncrementalSnapshot,data:Object.assign({source:Zb.CustomElement},e)}))},blockClass:o,ignoreClass:a,ignoreSelector:s,maskTextClass:l,maskTextSelector:c,maskInputOptions:A,inlineStylesheet:u,sampling:b,recordDOM:x,recordCanvas:w,inlineImages:E,userTriggeredOnInput:O,collectFonts:C,doc:e,maskInputFn:h,maskTextFn:m,keepIframeSrcFn:M,blockSelector:i,slimDOMOptions:$,dataURLOptions:v,mirror:Qv,iframeManager:U,stylesheetManager:V,shadowDomManager:W,processedNodeManager:q,canvasManager:Xv,ignoreCSSAttributes:R,plugins:(null===(t=null==T?void 0:T.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>Kv(Hv({type:Qb.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},g)};U.addLoadListener((r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}}));const r=()=>{Gv(),e.push(t(document)),Yv=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(Rb("DOMContentLoaded",(()=>{Kv(Hv({type:Qb.DomContentLoaded,data:{}})),"DOMContentLoaded"===k&&r()}))),e.push(Rb("load",(()=>{Kv(Hv({type:Qb.Load,data:{}})),"load"===k&&r()}),window))),()=>{e.forEach((e=>e())),q.destroy(),Yv=!1,fv()}}catch(e){console.warn(e)}}Zv.addCustomEvent=(e,t)=>{if(!Yv)throw new Error("please add custom event after start recording");Kv(Hv({type:Qb.Custom,data:{tag:e,payload:t}}))},Zv.freezePage=()=>{mv.forEach((e=>e.freeze()))},Zv.takeFullSnapshot=e=>{if(!Yv)throw new Error("please take full snapshot after start recording");Gv(e)},Zv.mirror=Qv;var Jv,e_=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(e_||{}),t_=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(t_||{}),r_={DEBUG:!1,LIB_VERSION:"2.55.1"};if("undefined"==typeof window){var n_={hostname:""};Jv={navigator:{userAgent:"",onLine:!0},document:{location:n_,referrer:""},screen:{width:0,height:0},location:n_}}else Jv=window;var o_,i_=864e5,a_=Array.prototype,s_=Function.prototype,l_=Object.prototype,c_=a_.slice,u_=l_.toString,p_=l_.hasOwnProperty,d_=Jv.console,f_=Jv.navigator,h_=Jv.document,m_=Jv.opera,g_=Jv.screen,y_=f_.userAgent,b_=s_.bind,v_=a_.forEach,__=a_.indexOf,x_=a_.map,w_=Array.isArray,S_={},k_={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},O_={log:function(){if(r_.DEBUG&&!k_.isUndefined(d_)&&d_)try{d_.log.apply(d_,arguments)}catch(e){k_.each(arguments,(function(e){d_.log(e)}))}},warn:function(){if(r_.DEBUG&&!k_.isUndefined(d_)&&d_){var e=["Mixpanel warning:"].concat(k_.toArray(arguments));try{d_.warn.apply(d_,e)}catch(t){k_.each(e,(function(e){d_.warn(e)}))}}},error:function(){if(r_.DEBUG&&!k_.isUndefined(d_)&&d_){var e=["Mixpanel error:"].concat(k_.toArray(arguments));try{d_.error.apply(d_,e)}catch(t){k_.each(e,(function(e){d_.error(e)}))}}},critical:function(){if(!k_.isUndefined(d_)&&d_){var e=["Mixpanel error:"].concat(k_.toArray(arguments));try{d_.error.apply(d_,e)}catch(t){k_.each(e,(function(e){d_.error(e)}))}}}},C_=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(O_,arguments)}},E_=function(e){return{log:C_(O_.log,e),error:C_(O_.error,e),critical:C_(O_.critical,e)}};k_.bind=function(e,t){var r,n;if(b_&&e.bind===b_)return b_.apply(e,c_.call(arguments,1));if(!k_.isFunction(e))throw new TypeError;return r=c_.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(c_.call(arguments)));var o={};o.prototype=e.prototype;var i=new o;o.prototype=null;var a=e.apply(i,r.concat(c_.call(arguments)));return Object(a)===a?a:i},n},k_.each=function(e,t,r){if(null!=e)if(v_&&e.forEach===v_)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,o=e.length;n<o;n++)if(n in e&&t.call(r,e[n],n,e)===S_)return}else for(var i in e)if(p_.call(e,i)&&t.call(r,e[i],i,e)===S_)return},k_.extend=function(e){return k_.each(c_.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])})),e},k_.isArray=w_||function(e){return"[object Array]"===u_.call(e)},k_.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},k_.isArguments=function(e){return!(!e||!p_.call(e,"callee"))},k_.toArray=function(e){return e?e.toArray?e.toArray():k_.isArray(e)||k_.isArguments(e)?c_.call(e):k_.values(e):[]},k_.map=function(e,t,r){if(x_&&e.map===x_)return e.map(t,r);var n=[];return k_.each(e,(function(e){n.push(t.call(r,e))})),n},k_.keys=function(e){var t=[];return null===e||k_.each(e,(function(e,r){t[t.length]=r})),t},k_.values=function(e){var t=[];return null===e||k_.each(e,(function(e){t[t.length]=e})),t},k_.include=function(e,t){var r=!1;return null===e?r:__&&e.indexOf===__?-1!=e.indexOf(t):(k_.each(e,(function(e){if(r||(r=e===t))return S_})),r)},k_.includes=function(e,t){return-1!==e.indexOf(t)},k_.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},k_.isObject=function(e){return e===Object(e)&&!k_.isArray(e)},k_.isEmptyObject=function(e){if(k_.isObject(e)){for(var t in e)if(p_.call(e,t))return!1;return!0}return!1},k_.isUndefined=function(e){return void 0===e},k_.isString=function(e){return"[object String]"==u_.call(e)},k_.isDate=function(e){return"[object Date]"==u_.call(e)},k_.isNumber=function(e){return"[object Number]"==u_.call(e)},k_.isElement=function(e){return!(!e||1!==e.nodeType)},k_.encodeDates=function(e){return k_.each(e,(function(t,r){k_.isDate(t)?e[r]=k_.formatDate(t):k_.isObject(t)&&(e[r]=k_.encodeDates(t))})),e},k_.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},k_.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},k_.strip_empty_properties=function(e){var t={};return k_.each(e,(function(e,r){k_.isString(e)&&e.length>0&&(t[r]=e)})),t},k_.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):k_.isArray(e)?(r=[],k_.each(e,(function(e){r.push(k_.truncate(e,t))}))):k_.isObject(e)?(r={},k_.each(e,(function(e,n){r[n]=k_.truncate(e,t)}))):r=e,r},k_.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},r=function(e,n){var o="",i=0,a="",s="",l=0,c=o,u=[],p=n[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(o+=" ",u=[],"[object Array]"===u_.apply(p)){for(l=p.length,i=0;i<l;i+=1)u[i]=r(i,p)||"null";return s=0===u.length?"[]":o?"[\n"+o+u.join(",\n"+o)+"\n"+c+"]":"["+u.join(",")+"]",o=c,s}for(a in p)p_.call(p,a)&&(s=r(a,p))&&u.push(t(a)+(o?": ":":")+s);return s=0===u.length?"{}":o?"{"+u.join(",")+c+"}":"{"+u.join(",")+"}",o=c,s}};return r("",{"":e})},k_.JSONDecode=function(){var e,t,r,n,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},i=function(t){var n=new SyntaxError(t);throw n.at=e,n.text=r,n},a=function(n){return n&&n!==t&&i("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},s=function(){var e,r="";for("-"===t&&(r="-",a("-"));t>="0"&&t<="9";)r+=t,a();if("."===t)for(r+=".";a()&&t>="0"&&t<="9";)r+=t;if("e"===t||"E"===t)for(r+=t,a(),"-"!==t&&"+"!==t||(r+=t,a());t>="0"&&t<="9";)r+=t,a();if(e=+r,isFinite(e))return e;i("Bad number")},l=function(){var e,r,n,s="";if('"'===t)for(;a();){if('"'===t)return a(),s;if("\\"===t)if(a(),"u"===t){for(n=0,r=0;r<4&&(e=parseInt(a(),16),isFinite(e));r+=1)n=16*n+e;s+=String.fromCharCode(n)}else{if("string"!=typeof o[t])break;s+=o[t]}else s+=t}i("Bad string")},c=function(){for(;t&&t<=" ";)a()};return n=function(){switch(c(),t){case"{":return function(){var e,r={};if("{"===t){if(a("{"),c(),"}"===t)return a("}"),r;for(;t;){if(e=l(),c(),a(":"),Object.hasOwnProperty.call(r,e)&&i('Duplicate key "'+e+'"'),r[e]=n(),c(),"}"===t)return a("}"),r;a(","),c()}}i("Bad object")}();case"[":return function(){var e=[];if("["===t){if(a("["),c(),"]"===t)return a("]"),e;for(;t;){if(e.push(n()),c(),"]"===t)return a("]"),e;a(","),c()}}i("Bad array")}();case'"':return l();case"-":return s();default:return t>="0"&&t<="9"?s():function(){switch(t){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}i('Unexpected "'+t+'"')}()}},function(o){var a;return r=o,e=0,t=" ",a=n(),c(),t&&i("Syntax error"),a}}(),k_.base64Encode=function(e){var t,r,n,o,i,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,c="",u=[];if(!e)return e;e=k_.utf8Encode(e);do{t=(i=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,r=i>>12&63,n=i>>6&63,o=63&i,u[l++]=a.charAt(t)+a.charAt(r)+a.charAt(n)+a.charAt(o)}while(s<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},k_.utf8Encode=function(e){var t,r,n,o,i="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,o=0;o<n;o++){var a=e.charCodeAt(o),s=null;a<128?r++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(r>t&&(i+=e.substring(t,r)),i+=s,t=r=o+1)}return r>t&&(i+=e.substring(t,e.length)),i},k_.UUID=(o_=function(){var e,t=1*new Date;if(Jv.performance&&Jv.performance.now)e=Jv.performance.now();else for(e=0;t==1*new Date;)e++;return t.toString(16)+Math.floor(e).toString(16)},function(){var e=(g_.height*g_.width).toString(16);return o_()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,r=y_,n=[],o=0;function i(e,t){var r,o=0;for(r=0;r<t.length;r++)o|=n[r]<<8*r;return e^o}for(e=0;e<r.length;e++)t=r.charCodeAt(e),n.unshift(255&t),n.length>=4&&(o=i(o,n),n=[]);return n.length>0&&(o=i(o,n)),o.toString(16)}()+"-"+e+"-"+o_()});var T_=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];k_.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<T_.length;t++)if(-1!==e.indexOf(T_[t]))return!0;return!1},k_.HTTPBuildQuery=function(e,t){var r,n,o=[];return k_.isUndefined(t)&&(t="&"),k_.each(e,(function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),o[o.length]=n+"="+r})),o.join(t)},k_.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){O_.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},k_.cookie={get:function(e){for(var t=e+"=",r=h_.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},parse:function(e){var t;try{t=k_.JSONDecode(k_.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,o,i,a){var s="",l="",c="";if(a)s="; domain="+a;else if(n){var u=D_(h_.location.hostname);s=u?"; domain=."+u:""}if(r){var p=new Date;p.setTime(p.getTime()+1e3*r),l="; expires="+p.toGMTString()}i&&(o=!0,c="; SameSite=None"),o&&(c+="; secure"),h_.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+s+c},set:function(e,t,r,n,o,i,a){var s="",l="",c="";if(a)s="; domain="+a;else if(n){var u=D_(h_.location.hostname);s=u?"; domain=."+u:""}if(r){var p=new Date;p.setTime(p.getTime()+24*r*60*60*1e3),l="; expires="+p.toGMTString()}i&&(o=!0,c="; SameSite=None"),o&&(c+="; secure");var d=e+"="+encodeURIComponent(t)+l+"; path=/"+s+c;return h_.cookie=d,d},remove:function(e,t,r){k_.cookie.set(e,"",-1,t,!1,!1,r)}};var M_=null,R_=function(e,t){if(null!==M_&&!t)return M_;var r=!0;try{e=e||window.localStorage;var n="__mplss_"+A_(8);e.setItem(n,"xyz"),"xyz"!==e.getItem(n)&&(r=!1),e.removeItem(n)}catch(e){r=!1}return M_=r,r};k_.localStorage={is_supported:function(e){var t=R_(null,e);return t||O_.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){O_.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(e){k_.localStorage.error(e)}return null},parse:function(e){try{return k_.JSONDecode(k_.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(e){k_.localStorage.error(e)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(e){k_.localStorage.error(e)}}},k_.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,o,i){if(t)if(t.addEventListener&&!o)t.addEventListener(r,n,!!i);else{var a="on"+r,s=t[a];t[a]=function(t,r,n){return function(o){if(o=o||e(window.event)){var i,a,s=!0;return k_.isFunction(n)&&(i=n(o)),a=r.call(t,o),!1!==i&&!1!==a||(s=!1),s}}}(t,n,s)}else O_.error("No valid element provided to register_event")}}();var I_=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');k_.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!h_.getElementsByTagName)return[];var n,o,i,a,s,l,c,u,p,d,f=t.split(" "),h=[h_];for(l=0;l<f.length;l++)if((n=f[l].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){i=(o=n.split("#"))[0];var m=o[1],g=h_.getElementById(m);if(!g||i&&g.nodeName.toLowerCase()!=i)return[];h=[g]}else if(n.indexOf(".")>-1){i=(o=n.split("."))[0];var y=o[1];for(i||(i="*"),a=[],s=0,c=0;c<h.length;c++)for(p="*"==i?e(h[c]):h[c].getElementsByTagName(i),u=0;u<p.length;u++)a[s++]=p[u];for(h=[],d=0,c=0;c<a.length;c++)a[c].className&&k_.isString(a[c].className)&&r(a[c],y)&&(h[d++]=a[c])}else{var b=n.match(I_);if(b){i=b[1];var v,_=b[2],x=b[3],w=b[4];for(i||(i="*"),a=[],s=0,c=0;c<h.length;c++)for(p="*"==i?e(h[c]):h[c].getElementsByTagName(i),u=0;u<p.length;u++)a[s++]=p[u];switch(h=[],d=0,x){case"=":v=function(e){return e.getAttribute(_)==w};break;case"~":v=function(e){return e.getAttribute(_).match(new RegExp("\\b"+w+"\\b"))};break;case"|":v=function(e){return e.getAttribute(_).match(new RegExp("^"+w+"-?"))};break;case"^":v=function(e){return 0===e.getAttribute(_).indexOf(w)};break;case"$":v=function(e){return e.getAttribute(_).lastIndexOf(w)==e.getAttribute(_).length-w.length};break;case"*":v=function(e){return e.getAttribute(_).indexOf(w)>-1};break;default:v=function(e){return e.getAttribute(_)}}for(h=[],d=0,c=0;c<a.length;c++)v(a[c])&&(h[d++]=a[c])}else{for(i=n,a=[],s=0,c=0;c<h.length;c++)for(p=h[c].getElementsByTagName(i),u=0;u<p.length;u++)a[s++]=p[u];h=a}}return h}return function(e){return k_.isElement(e)?[e]:k_.isObject(e)&&!k_.isUndefined(e.length)?e:n.call(this,e)}}();var N_=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],P_=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];k_.info={campaignParams:function(e){var t="",r={};return k_.each(N_,(function(n){(t=k_.getQueryParam(h_.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)})),r},clickParams:function(){var e="",t={};return k_.each(P_,(function(r){(e=k_.getQueryParam(h_.URL,r)).length&&(t[r]=e)})),t},marketingParams:function(){return k_.extend(k_.info.campaignParams(),k_.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=k_.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var o=k_.getQueryParam(e,r);o.length&&(n.mp_keyword=o)}return n},browser:function(e,t,r){return t=t||"",r||k_.includes(e," OPR/")?k_.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":k_.includes(e,"IEMobile")||k_.includes(e,"WPDesktop")?"Internet Explorer Mobile":k_.includes(e,"SamsungBrowser/")?"Samsung Internet":k_.includes(e,"Edge")||k_.includes(e,"Edg/")?"Microsoft Edge":k_.includes(e,"FBIOS")?"Facebook Mobile":k_.includes(e,"Chrome")?"Chrome":k_.includes(e,"CriOS")?"Chrome iOS":k_.includes(e,"UCWEB")||k_.includes(e,"UCBrowser")?"UC Browser":k_.includes(e,"FxiOS")?"Firefox iOS":k_.includes(t,"Apple")?k_.includes(e,"Mobile")?"Mobile Safari":"Safari":k_.includes(e,"Android")?"Android Mobile":k_.includes(e,"Konqueror")?"Konqueror":k_.includes(e,"Firefox")?"Firefox":k_.includes(e,"MSIE")||k_.includes(e,"Trident/")?"Internet Explorer":k_.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[k_.info.browser(e,t,r)];if(void 0===n)return null;var o=e.match(n);return o?parseFloat(o[o.length-2]):null},os:function(){var e=y_;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return Jv.location.href},properties:function(e){return"object"!=typeof e&&(e={}),k_.extend(k_.strip_empty_properties({$os:k_.info.os(),$browser:k_.info.browser(y_,f_.vendor,m_),$referrer:h_.referrer,$referring_domain:k_.info.referringDomain(h_.referrer),$device:k_.info.device(y_)}),{$current_url:k_.info.currentUrl(),$browser_version:k_.info.browserVersion(y_,f_.vendor,m_),$screen_height:g_.height,$screen_width:g_.width,mp_lib:"web",$lib_version:r_.LIB_VERSION,$insert_id:A_(),time:k_.timestamp()/1e3},k_.strip_empty_properties(e))},people_properties:function(){return k_.extend(k_.strip_empty_properties({$os:k_.info.os(),$browser:k_.info.browser(y_,f_.vendor,m_)}),{$browser_version:k_.info.browserVersion(y_,f_.vendor,m_)})},mpPageViewProperties:function(){return k_.strip_empty_properties({current_page_title:h_.title,current_domain:Jv.location.hostname,current_url_path:Jv.location.pathname,current_url_protocol:Jv.location.protocol,current_url_search:Jv.location.search})}};var A_=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},$_=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,L_=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,D_=function(e){var t=L_,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=$_);var o=e.match(t);return o?o[0]:""},j_=null,F_=null;"undefined"!=typeof JSON&&(j_=JSON.stringify,F_=JSON.parse),j_=j_||k_.JSONEncode,F_=F_||k_.JSONDecode,k_.toArray=k_.toArray,k_.isObject=k_.isObject,k_.JSONEncode=k_.JSONEncode,k_.JSONDecode=k_.JSONDecode,k_.isBlockedUA=k_.isBlockedUA,k_.isEmptyObject=k_.isEmptyObject,k_.info=k_.info,k_.info.device=k_.info.device,k_.info.browser=k_.info.browser,k_.info.browserVersion=k_.info.browserVersion,k_.info.properties=k_.info.properties;var z_="__mp_opt_in_out_";function B_(e,t){Z_(!0,e,t)}function V_(e,t){Z_(!1,e,t)}function U_(e,t){return"1"===Q_(e,t)}function q_(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Jv,r=t.navigator||{},n=!1;return k_.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],(function(e){k_.includes([!0,1,"1","yes"],e)&&(n=!0)})),n}(t))return O_.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===Q_(e,t);return r&&O_.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function W_(e){return J_(e,(function(e){return this.get_config(e)}))}function H_(e){return J_(e,(function(e){return this._get_config(e)}))}function K_(e){return J_(e,(function(e){return this._get_config(e)}))}function G_(e,t){X_(t=t||{}).remove(Y_(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function X_(e){return"localStorage"===(e=e||{}).persistenceType?k_.localStorage:k_.cookie}function Y_(e,t){return((t=t||{}).persistencePrefix||z_)+e}function Q_(e,t){return X_(t).get(Y_(e,t))}function Z_(e,t,r){k_.isString(t)&&t.length?(X_(r=r||{}).set(Y_(t,r),e?1:0,k_.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):O_.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function J_(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),o=t.call(this,"ignore_dnt"),i=t.call(this,"opt_out_tracking_persistence_type"),a=t.call(this,"opt_out_tracking_cookie_prefix"),s=t.call(this,"window");n&&(r=q_(n,{ignoreDnt:o,persistenceType:i,persistencePrefix:a,window:s}))}catch(e){O_.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var l=arguments[arguments.length-1];"function"==typeof l&&l(0)}}var ex=E_("lock"),tx=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};tx.prototype.withLock=function(e,t,r){r||"function"==typeof t||(r=t,t=null);var n=r||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),i=this.storageKey,a=this.pollIntervalMS,s=this.timeoutMS,l=this.storage,c=i+":X",u=i+":Y",p=i+":Z",d=function(e){t&&t(e)},f=function(e){if((new Date).getTime()-o>s)return ex.error("Timeout waiting for mutex on "+i+"; clearing lock. ["+n+"]"),l.removeItem(p),l.removeItem(u),void g();setTimeout((function(){try{e()}catch(e){d(e)}}),a*(Math.random()+.1))},h=function(e,t){e()?t():f((function(){h(e,t)}))},m=function(){var e=l.getItem(u);if(e&&e!==n)return!1;if(l.setItem(u,n),l.getItem(u)===n)return!0;if(!R_(l,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},g=function(){l.setItem(c,n),h(m,(function(){l.getItem(c)!==n?f((function(){l.getItem(u)===n?h((function(){return!l.getItem(p)}),y):g()})):y()}))},y=function(){l.setItem(p,"1");try{e()}finally{l.removeItem(p),l.getItem(u)===n&&l.removeItem(u),l.getItem(c)===n&&l.removeItem(c)}};try{if(!R_(l,!0))throw new Error("localStorage support check failed");g()}catch(e){d(e)}};var rx=E_("batch"),nx=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||k_.bind(rx.error,rx),this.lock=new tx(e,{storage:this.storage}),this.usePersistence=t.usePersistence,this.pid=t.pid||null,this.memQueue=[]};nx.prototype.enqueue=function(e,t,r){var n={id:A_(),flushAfter:(new Date).getTime()+2*t,payload:e};this.usePersistence?this.lock.withLock(k_.bind((function(){var t;try{var o=this.readFromStorage();o.push(n),(t=this.saveToStorage(o))&&this.memQueue.push(n)}catch(r){this.reportError("Error enqueueing item",e),t=!1}r&&r(t)}),this),k_.bind((function(e){this.reportError("Error acquiring storage lock",e),r&&r(!1)}),this),this.pid):(this.memQueue.push(n),r&&r(!0))},nx.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(this.usePersistence&&t.length<e){var r=this.readFromStorage();if(r.length){var n={};k_.each(t,(function(e){n[e.id]=!0}));for(var o=0;o<r.length;o++){var i=r[o];if((new Date).getTime()>i.flushAfter&&!n[i.id]&&(i.orphaned=!0,t.push(i),t.length>=e))break}}}return t};var ox=function(e,t){var r=[];return k_.each(e,(function(e){e.id&&!t[e.id]&&r.push(e)})),r};nx.prototype.removeItemsByID=function(e,t){var r={};if(k_.each(e,(function(e){r[e]=!0})),this.memQueue=ox(this.memQueue,r),this.usePersistence){var n=k_.bind((function(){var t;try{var n=this.readFromStorage();if(n=ox(n,r),t=this.saveToStorage(n)){n=this.readFromStorage();for(var o=0;o<n.length;o++){var i=n[o];if(i.id&&r[i.id])return this.reportError("Item not removed from storage"),!1}}}catch(r){this.reportError("Error removing items",e),t=!1}return t}),this);this.lock.withLock((function(){var e=n();t&&t(e)}),k_.bind((function(e){var r=!1;if(this.reportError("Error acquiring storage lock",e),!R_(this.storage,!0)&&!(r=n()))try{this.storage.removeItem(this.storageKey)}catch(e){this.reportError("Error clearing queue",e)}t&&t(r)}),this),this.pid)}else t&&t(!0)};var ix=function(e,t){var r=[];return k_.each(e,(function(e){var n=e.id;if(n in t){var o=t[n];null!==o&&(e.payload=o,r.push(e))}else r.push(e)})),r};nx.prototype.updatePayloads=function(e,t){this.memQueue=ix(this.memQueue,e),this.usePersistence?this.lock.withLock(k_.bind((function(){var r;try{var n=this.readFromStorage();n=ix(n,e),r=this.saveToStorage(n)}catch(t){this.reportError("Error updating items",e),r=!1}t&&t(r)}),this),k_.bind((function(e){this.reportError("Error acquiring storage lock",e),t&&t(!1)}),this),this.pid):t&&t(!0)},nx.prototype.readFromStorage=function(){var e;try{(e=this.storage.getItem(this.storageKey))&&(e=F_(e),k_.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]},nx.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,j_(e)),!0}catch(e){return this.reportError("Error saving queue",e),!1}},nx.prototype.clear=function(){this.memQueue=[],this.usePersistence&&this.storage.removeItem(this.storageKey)};var ax=E_("batch"),sx=function(e,t){this.errorReporter=t.errorReporter,this.queue=new nx(e,{errorReporter:k_.bind(this.reportError,this),storage:t.storage,usePersistence:t.usePersistence}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1};sx.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)},sx.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},sx.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},sx.prototype.clear=function(){this.queue.clear()},sx.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},sx.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},sx.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(k_.bind((function(){this.stopped||this.flush()}),this),this.flushInterval))},sx.prototype.flush=function(e){try{if(this.requestInProgress)return void ax.log("Flush: Request already in progress");e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),n=this.batchSize,o=this.queue.fillBatch(n),i=o.length===n,a=[],s={};if(k_.each(o,(function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=k_.extend({},t.properties,{mp_sent_by_lib_version:r_.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&a.push(t)}s[e.id]=t}),this),a.length<1)return void this.resetFlush();this.requestInProgress=!0;var l=k_.bind((function(a){this.requestInProgress=!1;try{var l=!1;if(e.unloading)this.queue.updatePayloads(s);else if(k_.isObject(a)&&"timeout"===a.error&&(new Date).getTime()-r>=t)this.reportError("Network timeout; retrying"),this.flush();else if(k_.isObject(a)&&(a.httpStatusCode>=500||429===a.httpStatusCode||a.httpStatusCode<=0&&(p=Jv.navigator.onLine,!k_.isUndefined(p)&&!p)||"timeout"===a.error)){var c=2*this.flushInterval;a.retryAfter&&(c=1e3*parseInt(a.retryAfter,10)||c),c=Math.min(6e5,c),this.reportError("Error; retry in "+c+" ms"),this.scheduleFlush(c)}else if(k_.isObject(a)&&413===a.httpStatusCode)if(o.length>1){var u=Math.max(1,Math.floor(n/2));this.batchSize=Math.min(this.batchSize,u,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),l=!0;else l=!0;l&&(this.queue.removeItemsByID(k_.map(o,(function(e){return e.id})),k_.bind((function(e){e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!i?this.resetFlush():this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())}),this)),k_.each(o,k_.bind((function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})}),this)))}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var p}),this),c={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(c.transport="sendBeacon"),ax.log("MIXPANEL REQUEST:",a),this.sendRequest(a,c,l)}catch(e){this.reportError("Error flushing request queue",e),this.resetFlush()}},sx.prototype.reportError=function(e,t){if(ax.error.apply(ax.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){ax.error(t)}};var lx=E_("recorder"),cx=Jv.CompressionStream,ux={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},px=new Set([t_.MouseMove,t_.MouseInteraction,t_.Scroll,t_.ViewportResize,t_.Input,t_.TouchMove,t_.MediaInteraction,t_.Drag,t_.Selection]),dx=function(e){this._mixpanel=e,this._stopRecording=null,this.recEvents=[],this.seqNo=0,this.replayId=null,this.replayStartTime=null,this.sendBatchId=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=i_,this.recordMinMs=0,this._initBatcher()};dx.prototype._initBatcher=function(){this.batcher=new sx("__mprec",{libConfig:ux,sendRequestFunc:k_.bind(this.flushEventsWithOptOut,this),errorReporter:k_.bind(this.reportError,this),flushOnlyOnInterval:!0,usePersistence:!1})},dx.prototype.get_config=function(e){return this._mixpanel.get_config(e)},dx.prototype.startRecording=function(e){if(null===this._stopRecording){this.recordMaxMs=this.get_config("record_max_ms"),this.recordMaxMs>i_&&(this.recordMaxMs=i_,lx.critical("record_max_ms cannot be greater than "+i_+"ms. Capping value.")),this.recordMinMs=this.get_config("record_min_ms"),this.recordMinMs>8e3&&(this.recordMinMs=8e3,lx.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.recEvents=[],this.seqNo=0,this.replayStartTime=(new Date).getTime(),this.replayId=k_.UUID(),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=k_.bind((function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(k_.bind((function(){lx.log("Idle timeout reached, restarting recording."),this.resetRecording()}),this),this.get_config("record_idle_timeout_ms"))}),this),r=this.get_config("record_block_selector");""!==r&&null!==r||(r=void 0),this._stopRecording=Zv({emit:k_.bind((function(e){this.batcher.enqueue(e),function(e){return e.type===e_.IncrementalSnapshot&&px.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t())}),this),blockClass:this.get_config("record_block_class"),blockSelector:r,collectFonts:this.get_config("record_collect_fonts"),inlineImages:this.get_config("record_inline_images"),maskAllInputs:!0,maskTextClass:this.get_config("record_mask_text_class"),maskTextSelector:this.get_config("record_mask_text_selector")}),t(),this.maxTimeoutId=setTimeout(k_.bind(this.resetRecording,this),this.recordMaxMs)}else lx.log("Recording already in progress, skipping startRecording.")},dx.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)},dx.prototype.stopRecording=function(){null!==this._stopRecording&&(this._stopRecording(),this._stopRecording=null),this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),this.replayId=null,clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)},dx.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,k_.bind(this._onOptOut,this))},dx.prototype._onOptOut=function(e){0===e&&(this.recEvents=[],this.stopRecording())},dx.prototype._sendRequest=function(e,t,r,n){var o=k_.bind((function(t,r){200===t.status&&this.replayId===e&&this.seqNo++,n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}),this);Jv.fetch(this.get_config("api_host")+"/"+this.get_config("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.get_config("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then((function(e){e.json().then((function(t){o(e,t)})).catch((function(e){n({error:e})}))})).catch((function(e){n({error:e,httpStatusCode:0})}))},dx.prototype._flushEvents=W_((function(e,t,r){const n=e.length;if(n>0){var o=this.replayId,i=e[0].timestamp;0!==this.seqNo&&this.replayStartTime||(0!==this.seqNo&&this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=i);var a=e[n-1].timestamp-this.replayStartTime,s={distinct_id:String(this._mixpanel.get_distinct_id()),seq:this.seqNo,batch_start_time:i/1e3,replay_id:o,replay_length_ms:a,replay_start_time:this.replayStartTime/1e3},l=k_.JSONEncode(e),c=this._mixpanel.get_property("$device_id");c&&(s.$device_id=c);var u=this._mixpanel.get_property("$user_id");if(u&&(s.$user_id=u),cx){var p=new Blob([l],{type:"application/json"}).stream().pipeThrough(new cx("gzip"));new Response(p).blob().then(k_.bind((function(e){s.format="gzip",this._sendRequest(o,s,e,r)}),this))}else s.format="body",this._sendRequest(o,s,l,r)}})),dx.prototype.reportError=function(e,t){lx.error.apply(lx.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){lx.error(t)}},Jv.__mp_recorder=dx;var fx=function(){};fx.prototype.create_properties=function(){},fx.prototype.event_handler=function(){},fx.prototype.after_track_handler=function(){},fx.prototype.init=function(e){return this.mp=e,this},fx.prototype.track=function(e,t,r,n){var o=this,i=k_.dom_query(e);if(0!==i.length)return k_.each(i,(function(e){k_.register_event(e,this.override_event,(function(e){var i={},a=o.create_properties(r,this),s=o.mp.get_config("track_links_timeout");o.event_handler(e,this,i),window.setTimeout(o.track_callback(n,a,i,!0),s),o.mp.track(t,a,o.track_callback(n,a,i))}))}),this),!0;O_.error("The DOM query ("+e+") returned 0 elements")},fx.prototype.track_callback=function(e,t,r,n){n=n||!1;var o=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||o.after_track_handler(t,r,n))}},fx.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):k_.extend({},e)};var hx=function(){this.override_event="click"};k_.inherit(hx,fx),hx.prototype.create_properties=function(e,t){var r=hx.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},hx.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},hx.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var mx=function(){this.override_event="submit"};k_.inherit(mx,fx),mx.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},mx.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var gx="$set",yx="$set_once",bx="$unset",vx="$add",_x="$append",xx="$union",wx="$remove",Sx={set_action:function(e,t){var r={},n={};return k_.isObject(e)?k_.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[gx]=n,r},unset_action:function(e){var t={},r=[];return k_.isArray(e)||(e=[e]),k_.each(e,(function(e){this._is_reserved_property(e)||r.push(e)}),this),t[bx]=r,t},set_once_action:function(e,t){var r={},n={};return k_.isObject(e)?k_.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[yx]=n,r},union_action:function(e,t){var r={},n={};return k_.isObject(e)?k_.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=k_.isArray(e)?e:[e])}),this):n[e]=k_.isArray(t)?t:[t],r[xx]=n,r},append_action:function(e,t){var r={},n={};return k_.isObject(e)?k_.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[_x]=n,r},remove_action:function(e,t){var r={},n={};return k_.isObject(e)?k_.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[wx]=n,r},delete_action:function(){return{$delete:""}}},kx=function(){};k_.extend(kx.prototype,Sx),kx.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},kx.prototype.set=K_((function(e,t,r){var n=this.set_action(e,t);return k_.isObject(e)&&(r=t),this._send_request(n,r)})),kx.prototype.set_once=K_((function(e,t,r){var n=this.set_once_action(e,t);return k_.isObject(e)&&(r=t),this._send_request(n,r)})),kx.prototype.unset=K_((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),kx.prototype.union=K_((function(e,t,r){k_.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),kx.prototype.delete=K_((function(e){var t=this.delete_action();return this._send_request(t,e)})),kx.prototype.remove=K_((function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)})),kx.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=k_.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},kx.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},kx.prototype._get_config=function(e){return this._mixpanel.get_config(e)},kx.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},kx.prototype.remove=kx.prototype.remove,kx.prototype.set=kx.prototype.set,kx.prototype.set_once=kx.prototype.set_once,kx.prototype.union=kx.prototype.union,kx.prototype.unset=kx.prototype.unset,kx.prototype.toString=kx.prototype.toString;var Ox=function(){};k_.extend(Ox.prototype,Sx),Ox.prototype._init=function(e){this._mixpanel=e},Ox.prototype.set=H_((function(e,t,r){var n=this.set_action(e,t);return k_.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[gx]=k_.extend({},k_.info.people_properties(),n[gx]),this._send_request(n,r)})),Ox.prototype.set_once=H_((function(e,t,r){var n=this.set_once_action(e,t);return k_.isObject(e)&&(r=t),this._send_request(n,r)})),Ox.prototype.unset=H_((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),Ox.prototype.increment=H_((function(e,t,r){var n={},o={};return k_.isObject(e)?(k_.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void O_.error("Invalid increment value passed to mixpanel.people.increment - must be a number");o[t]=e}}),this),r=t):(k_.isUndefined(t)&&(t=1),o[e]=t),n[vx]=o,this._send_request(n,r)})),Ox.prototype.append=H_((function(e,t,r){k_.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)})),Ox.prototype.remove=H_((function(e,t,r){k_.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)})),Ox.prototype.union=H_((function(e,t,r){k_.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),Ox.prototype.track_charge=H_((function(e,t,r){if(k_.isNumber(e)||(e=parseFloat(e),!isNaN(e)))return this.append("$transactions",k_.extend({$amount:e},t),r);O_.error("Invalid value passed to mixpanel.people.track_charge - must be a number")})),Ox.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Ox.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}O_.error("mixpanel.people.delete_user() requires you to call identify() first")},Ox.prototype.toString=function(){return this._mixpanel.toString()+".people"},Ox.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),o=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),o&&(e.$had_persisted_distinct_id=o);var i=k_.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:i,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),k_.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),k_.truncate(i,255))},Ox.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Ox.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Ox.prototype._enqueue=function(e){gx in e?this._mixpanel.persistence._add_to_people_queue(gx,e):yx in e?this._mixpanel.persistence._add_to_people_queue(yx,e):bx in e?this._mixpanel.persistence._add_to_people_queue(bx,e):vx in e?this._mixpanel.persistence._add_to_people_queue(vx,e):_x in e?this._mixpanel.persistence._add_to_people_queue(_x,e):wx in e?this._mixpanel.persistence._add_to_people_queue(wx,e):xx in e?this._mixpanel.persistence._add_to_people_queue(xx,e):O_.error("Invalid call to _enqueue():",e)},Ox.prototype._flush_one_queue=function(e,t,r,n){var o=this,i=k_.extend({},this._mixpanel.persistence.load_queue(e)),a=i;k_.isUndefined(i)||!k_.isObject(i)||k_.isEmptyObject(i)||(o._mixpanel.persistence._pop_from_people_queue(e,i),o._mixpanel.persistence.save(),n&&(a=n(i)),t.call(o,a,(function(t,n){0===t&&o._mixpanel.persistence._add_to_people_queue(e,i),k_.isUndefined(r)||r(t,n)})))},Ox.prototype._flush=function(e,t,r,n,o,i,a){var s=this;this._flush_one_queue(gx,this.set,e),this._flush_one_queue(yx,this.set_once,n),this._flush_one_queue(bx,this.unset,i,(function(e){return k_.keys(e)})),this._flush_one_queue(vx,this.increment,t),this._flush_one_queue(xx,this.union,o);var l=this._mixpanel.persistence.load_queue(_x);if(!k_.isUndefined(l)&&k_.isArray(l)&&l.length)for(var c,u=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue(_x,c),k_.isUndefined(r)||r(e,t)},p=l.length-1;p>=0;p--)l=this._mixpanel.persistence.load_queue(_x),c=l.pop(),s._mixpanel.persistence.save(),k_.isEmptyObject(c)||s.append(c,u);var d=this._mixpanel.persistence.load_queue(wx);if(!k_.isUndefined(d)&&k_.isArray(d)&&d.length)for(var f,h=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue(wx,f),k_.isUndefined(a)||a(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel.persistence.load_queue(wx),f=d.pop(),s._mixpanel.persistence.save(),k_.isEmptyObject(f)||s.remove(f,h)},Ox.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Ox.prototype.set=Ox.prototype.set,Ox.prototype.set_once=Ox.prototype.set_once,Ox.prototype.unset=Ox.prototype.unset,Ox.prototype.increment=Ox.prototype.increment,Ox.prototype.append=Ox.prototype.append,Ox.prototype.remove=Ox.prototype.remove,Ox.prototype.union=Ox.prototype.union,Ox.prototype.track_charge=Ox.prototype.track_charge,Ox.prototype.clear_charges=Ox.prototype.clear_charges,Ox.prototype.delete_user=Ox.prototype.delete_user,Ox.prototype.toString=Ox.prototype.toString;var Cx,Ex="__mps",Tx="__mpso",Mx="__mpus",Rx="__mpa",Ix="__mpap",Nx="__mpr",Px="__mpu",Ax="$people_distinct_id",$x="__alias",Lx="__timers",Dx=[Ex,Tx,Mx,Rx,Ix,Nx,Px,Ax,$x,Lx],jx=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(O_.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&k_.localStorage.is_supported()?this.storage=k_.localStorage:this.storage=k_.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};jx.prototype.properties=function(){var e={};return this.load(),k_.each(this.props,(function(t,r){k_.include(Dx,r)||(e[r]=t)})),e},jx.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=k_.extend({},e))}},jx.prototype.upgrade=function(){var e,t;this.storage===k_.localStorage?(e=k_.cookie.parse(this.name),k_.cookie.remove(this.name),k_.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===k_.cookie&&(t=k_.localStorage.parse(this.name),k_.localStorage.remove(this.name),t&&this.register_once(t))},jx.prototype.save=function(){this.disabled||this.storage.set(this.name,k_.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},jx.prototype.load_prop=function(e){return this.load(),this.props[e]},jx.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},jx.prototype.clear=function(){this.remove(),this.props={}},jx.prototype.register_once=function(e,t,r){return!!k_.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),k_.each(e,(function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)}),this),this.save(),!0)},jx.prototype.register=function(e,t){return!!k_.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),k_.extend(this.props,e),this.save(),!0)},jx.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},jx.prototype.update_search_keyword=function(e){this.register(k_.info.searchInfo(e))},jx.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:k_.info.referringDomain(e)||"$direct"},"")},jx.prototype.get_referrer_info=function(){return k_.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},jx.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},jx.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},jx.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},jx.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},jx.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},jx.prototype.get_cross_subdomain=function(){return this.cross_subdomain},jx.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},jx.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],o=this._get_or_create_queue(gx),i=this._get_or_create_queue(yx),a=this._get_or_create_queue(bx),s=this._get_or_create_queue(vx),l=this._get_or_create_queue(xx),c=this._get_or_create_queue(wx,[]),u=this._get_or_create_queue(_x,[]);r===Ex?(k_.extend(o,n),this._pop_from_people_queue(vx,n),this._pop_from_people_queue(xx,n),this._pop_from_people_queue(bx,n)):r===Tx?(k_.each(n,(function(e,t){t in i||(i[t]=e)})),this._pop_from_people_queue(bx,n)):r===Mx?k_.each(n,(function(e){k_.each([o,i,s,l],(function(t){e in t&&delete t[e]})),k_.each(u,(function(t){e in t&&delete t[e]})),a[e]=!0})):r===Rx?(k_.each(n,(function(e,t){t in o?o[t]+=e:(t in s||(s[t]=0),s[t]+=e)}),this),this._pop_from_people_queue(bx,n)):r===Px?(k_.each(n,(function(e,t){k_.isArray(e)&&(t in l||(l[t]=[]),l[t]=l[t].concat(e))})),this._pop_from_people_queue(bx,n)):r===Nx?(c.push(n),this._pop_from_people_queue(_x,n)):r===Ix&&(u.push(n),this._pop_from_people_queue(bx,n)),O_.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),O_.log(t),this.save()},jx.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];k_.isUndefined(r)||k_.each(t,(function(t,n){e===_x||e===wx?k_.each(r,(function(e){e[n]===t&&delete e[n]})):delete r[n]}),this)},jx.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},jx.prototype._get_queue_key=function(e){return e===gx?Ex:e===yx?Tx:e===bx?Mx:e===vx?Rx:e===_x?Ix:e===wx?Nx:e===xx?Px:void O_.error("Invalid queue:",e)},jx.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=k_.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},jx.prototype.set_event_timer=function(e,t){var r=this.load_prop(Lx)||{};r[e]=t,this.props[Lx]=r,this.save()},jx.prototype.remove_event_timer=function(e){var t=(this.load_prop(Lx)||{})[e];return k_.isUndefined(t)||(delete this.props[Lx][e],this.save()),t};var Fx,zx=function(e,t){throw new Error(e+" not available in this build.")},Bx=function(e){return e},Vx=function(){},Ux="mixpanel",qx="base64",Wx="$device:",Hx=Jv.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Kx=!Hx&&-1===y_.indexOf("MSIE")&&-1===y_.indexOf("Mozilla"),Gx=null;f_.sendBeacon&&(Gx=function(){return f_.sendBeacon.apply(f_,arguments)});var Xx={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},Yx={api_host:"https://api-js.mixpanel.com",api_routes:Xx,api_method:"POST",api_transport:"XHR",api_payload_format:qx,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Vx,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Vx,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_collect_fonts:!1,record_idle_timeout_ms:18e5,record_inline_images:!1,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:i_,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Qx=!1,Zx=function(){},Jx=function(e,t,r){var n,o=r===Ux?Fx:Fx[r];if(o&&0===Cx)n=o;else{if(o&&!k_.isArray(o))return void O_.error("You have already initialized "+r);n=new Zx}if(n._cached_groups={},n._init(e,t,r),n.people=new Ox,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var i=k_.info.campaignParams(null),a={},s=!1;k_.each(i,(function(e,t){a["initial_"+t]=e,e&&(s=!0)})),s&&n.people.set_once(a)}return r_.DEBUG=r_.DEBUG||n.get_config("debug"),!k_.isUndefined(o)&&k_.isArray(o)&&(n._execute_array.call(n.people,o.people),n._execute_array(o)),n};Zx.prototype.init=function(e,t,r){if(k_.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==Ux){var n=Jx(e,t,r);return Fx[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},Zx.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||Yx.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.set_config(k_.extend({},Yx,n,t,{name:r,token:e,callback_fn:(r===Ux?r:Ux+"."+r)+"._jsc"})),this._jsc=Vx,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(k_.localStorage.is_supported(!0)&&Hx){if(this.init_batchers(),Gx&&Jv.addEventListener){var o=k_.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);Jv.addEventListener("pagehide",(function(e){e.persisted&&o()})),Jv.addEventListener("visibilitychange",(function(){"hidden"===h_.visibilityState&&o()}))}}else this._batch_requests=!1,O_.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),k_.each(this.get_batcher_configs(),(function(e){O_.log("Clearing batch queue "+e.queue_key),k_.localStorage.remove(e.queue_key)}));this.persistence=this.cookie=new jx(this.config),this.unpersisted_superprops={},this._gdpr_init();var i=k_.UUID();this.get_distinct_id()||this.register_once({distinct_id:Wx+i,$device_id:i},"");var a=this.get_config("track_pageview");a&&this._init_url_change_tracking(a),this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent")&&this.start_session_recording()},Zx.prototype.start_session_recording=W_((function(){if(Jv.MutationObserver){var e=k_.bind((function(){this._recorder=this._recorder||new Jv.__mp_recorder(this),this._recorder.startRecording()}),this);k_.isUndefined(Jv.__mp_recorder)?zx(this.get_config("recorder_src"),e):e()}else O_.critical("Browser does not support MutationObserver; skipping session recording")})),Zx.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():O_.critical("Session recorder module not loaded")},Zx.prototype.get_session_recording_properties=function(){var e={};if(this._recorder){var t=this._recorder.replayId;t&&(e.$mp_replay_id=t)}return e},Zx.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=k_.info.campaignParams(null);k_.each(e,function(e,t){this.unregister(t)}.bind(this))}},Zx.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(h_.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(k_.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(h_.referrer)},Zx.prototype._dom_loaded=function(){k_.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||k_.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},Zx.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Qx)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},Zx.prototype._init_url_change_tracking=function(e){var t="";if(this.track_pageview()&&(t=k_.info.currentUrl()),k_.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){Jv.addEventListener("popstate",(function(){Jv.dispatchEvent(new Event("mp_locationchange"))})),Jv.addEventListener("hashchange",(function(){Jv.dispatchEvent(new Event("mp_locationchange"))}));var r=Jv.history.pushState;"function"==typeof r&&(Jv.history.pushState=function(e,t,n){r.call(Jv.history,e,t,n),Jv.dispatchEvent(new Event("mp_locationchange"))});var n=Jv.history.replaceState;"function"==typeof n&&(Jv.history.replaceState=function(e,t,r){n.call(Jv.history,e,t,r),Jv.dispatchEvent(new Event("mp_locationchange"))}),Jv.addEventListener("mp_locationchange",function(){var r=k_.info.currentUrl(),n=!1;"full-url"===e?n=r!==t:"url-with-path-and-query-string"===e?n=r.split("#")[0]!==t.split("#")[0]:"url-with-path"===e&&(n=r.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),n&&this.track_pageview()&&(t=r)}.bind(this))}},Zx.prototype._prepare_callback=function(e,t){if(k_.isUndefined(e))return null;if(Hx)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(o){delete r[n],e(o,t)},o},Zx.prototype._send_request=function(e,t,r,n){var o=!0;if(Kx)return this.__request_queue.push(arguments),o;var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},a=null;n||!k_.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=k_.extend(i,r||{}),Hx||(r.method="GET");var s="POST"===r.method,l=Gx&&s&&"sendbeacon"===r.transport.toLowerCase(),c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),Hx||(n?t.callback=n:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),s&&(a="data="+encodeURIComponent(t.data),delete t.data),e+="?"+k_.HTTPBuildQuery(t);var u=this;if("img"in t){var p=h_.createElement("img");p.src=e,h_.body.appendChild(p)}else if(l){try{o=Gx(e,a)}catch(e){u.report_error(e),o=!1}try{n&&n(o?1:0)}catch(e){u.report_error(e)}}else if(Hx)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(s&&(f["Content-Type"]="application/x-www-form-urlencoded"),k_.each(f,(function(e,t){d.setRequestHeader(t,e)})),r.timeout_ms&&void 0!==d.timeout){d.timeout=r.timeout_ms;var h=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(n)if(c){var t;try{t=k_.JSONDecode(d.responseText)}catch(e){if(u.report_error(e),!r.ignore_json_errors)return;t=d.responseText}n(t)}else n(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-h>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,u.report_error(e),n)if(c){var o=d.responseHeaders||{};n({status:0,httpStatusCode:d.status,error:e,retryAfter:o["Retry-After"]})}else n(0)},d.send(a)}catch(e){u.report_error(e),o=!1}else{var m=h_.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=h_.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return o},Zx.prototype._execute_array=function(e){var t,r=[],n=[],o=[];k_.each(e,(function(e){e&&(t=e[0],k_.isArray(t)?o.push(e):"function"==typeof e?e.call(this):k_.isArray(e)&&"alias"===t?r.push(e):k_.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?o.push(e):n.push(e))}),this);var i=function(e,t){k_.each(e,(function(e){if(k_.isArray(e[0])){var r=t;k_.each(e,(function(e){r=r[e[0]].apply(r,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};i(r,this),i(n,this),i(o,this)},Zx.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Zx.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},Zx.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=k_.bind((function(e){return new sx(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:k_.bind((function(t,r,n){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),r,this._prepare_callback(n,t))}),this),beforeSendHook:k_.bind((function(t){return this._run_hook("before_send_"+e.type,t)}),this),stopAllBatchingFunc:k_.bind(this.stop_batch_senders,this),usePersistence:!0})}),this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},Zx.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,k_.each(this.request_batchers,(function(e){e.start()})))},Zx.prototype.stop_batch_senders=function(){this._batch_requests=!1,k_.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},Zx.prototype.push=function(e){this._execute_array([e])},Zx.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Zx.prototype._encode_data_for_request=function(e){var t=k_.JSONEncode(e);return this.get_config("api_payload_format")===qx&&(t=k_.base64Encode(t)),{data:t}},Zx.prototype._track_or_batch=function(e,t){var r=k_.truncate(e.data,255),n=e.endpoint,o=e.batcher,i=e.should_send_immediately,a=e.send_request_options||{};t=t||Vx;var s=!0,l=k_.bind((function(){return a.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(O_.log("MIXPANEL REQUEST:"),O_.log(r),this._send_request(n,this._encode_data_for_request(r),a,this._prepare_callback(t,r))):null}),this);return this._batch_requests&&!i?o.enqueue(r,(function(e){e?t(1,r):l()})):s=l(),s&&r},Zx.prototype.track=W_((function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var i=r.send_immediately;if("function"!=typeof n&&(n=Vx),k_.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=k_.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!k_.isUndefined(a)){var s=(new Date).getTime()-a;t.$duration=parseFloat((s/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?k_.info.marketingParams():{};t=k_.extend({},k_.info.properties({mp_loader:this.get_config("mp_loader")}),l,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var c=this.get_config("property_blacklist");k_.isArray(c)?k_.each(c,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+c);var u={event:e,properties:t};return this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:i,send_request_options:r},n)}n(0)}})),Zx.prototype.set_group=W_((function(e,t,r){k_.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)})),Zx.prototype.add_group=W_((function(e,t,r){var n=this.get_property(e),o={};return void 0===n?(o[e]=[t],this.register(o)):-1===n.indexOf(t)&&(n.push(t),o[e]=n,this.register(o)),this.people.union(e,t,r)})),Zx.prototype.remove_group=W_((function(e,t,r){var n=this.get_property(e);if(void 0!==n){var o=n.indexOf(t);o>-1&&(n.splice(o,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)})),Zx.prototype.track_with_groups=W_((function(e,t,r,n){var o=k_.extend({},t||{});return k_.each(r,(function(e,t){null!=e&&(o[t]=e)})),this.track(e,o,n)})),Zx.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},Zx.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Zx.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new kx)._init(this,e,t),this._cached_groups[r]=n),n},Zx.prototype.track_pageview=W_((function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=k_.extend(k_.info.mpPageViewProperties(),k_.info.campaignParams(),k_.info.clickParams()),o=k_.extend({},n,e);return this.track(r,o)})),Zx.prototype.track_links=function(){return this._track_dom.call(this,hx,arguments)},Zx.prototype.track_forms=function(){return this._track_dom.call(this,mx,arguments)},Zx.prototype.time_event=function(e){k_.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var ew={persistent:!0},tw=function(e){var t;return t=k_.isObject(e)?e:k_.isUndefined(e)?{}:{days:e},k_.extend({},ew,t)};Zx.prototype.register=function(e,t){var r=tw(t);r.persistent?this.persistence.register(e,r.days):k_.extend(this.unpersisted_superprops,e)},Zx.prototype.register_once=function(e,t,r){var n=tw(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),k_.each(e,(function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)}),this))},Zx.prototype.unregister=function(e,t){(t=tw(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},Zx.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},Zx.prototype.identify=function(e,t,r,n,o,i,a,s){var l=this.get_distinct_id();if(e&&l!==e){if("string"==typeof e&&0===e.indexOf(Wx))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==l&&e!==this.get_property($x)&&(this.unregister($x),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,o,i,a,s),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})},Zx.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=k_.UUID();this.register_once({distinct_id:Wx+e,$device_id:e},"")},Zx.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},Zx.prototype.alias=function(e,t){if(e===this.get_property(Ax))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return k_.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single($x,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){r.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},Zx.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},Zx.prototype.set_config=function(e){k_.isObject(e)&&(k_.extend(this.config,e),e.batch_size&&k_.each(this.request_batchers,(function(e){e.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),r_.DEBUG=r_.DEBUG||this.get_config("debug"))},Zx.prototype.get_config=function(e){return this.config[e]},Zx.prototype._run_hook=function(e){var t=(this.config.hooks[e]||Bx).apply(this,c_.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},Zx.prototype.get_property=function(e){return this.persistence.load_prop([e])},Zx.prototype.toString=function(){var e=this.get_config("name");return e!==Ux&&(e=Ux+"."+e),e},Zx.prototype._event_is_disabled=function(e){return k_.isBlockedUA(y_)||this._flags.disable_all_events||k_.include(this.__disabled_events,e)},Zx.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&k_.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!k_.cookie.get("mp_optout")||(k_.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},Zx.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()},Zx.prototype._gdpr_call_func=function(e,t){return t=k_.extend({track:k_.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),k_.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},Zx.prototype.opt_in_tracking=function(e){e=k_.extend({enable_persistence:!0},e),this._gdpr_call_func(B_,e),this._gdpr_update_persistence(e)},Zx.prototype.opt_out_tracking=function(e){(e=k_.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(V_,e),this._gdpr_update_persistence(e)},Zx.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(U_,e)},Zx.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(q_,e)},Zx.prototype.clear_opt_in_out_tracking=function(e){e=k_.extend({enable_persistence:!0},e),this._gdpr_call_func(G_,e),this._gdpr_update_persistence(e)},Zx.prototype.report_error=function(e,t){O_.error.apply(O_.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){O_.error(t)}},Zx.prototype.init=Zx.prototype.init,Zx.prototype.reset=Zx.prototype.reset,Zx.prototype.disable=Zx.prototype.disable,Zx.prototype.time_event=Zx.prototype.time_event,Zx.prototype.track=Zx.prototype.track,Zx.prototype.track_links=Zx.prototype.track_links,Zx.prototype.track_forms=Zx.prototype.track_forms,Zx.prototype.track_pageview=Zx.prototype.track_pageview,Zx.prototype.register=Zx.prototype.register,Zx.prototype.register_once=Zx.prototype.register_once,Zx.prototype.unregister=Zx.prototype.unregister,Zx.prototype.identify=Zx.prototype.identify,Zx.prototype.alias=Zx.prototype.alias,Zx.prototype.name_tag=Zx.prototype.name_tag,Zx.prototype.set_config=Zx.prototype.set_config,Zx.prototype.get_config=Zx.prototype.get_config,Zx.prototype.get_property=Zx.prototype.get_property,Zx.prototype.get_distinct_id=Zx.prototype.get_distinct_id,Zx.prototype.toString=Zx.prototype.toString,Zx.prototype.opt_out_tracking=Zx.prototype.opt_out_tracking,Zx.prototype.opt_in_tracking=Zx.prototype.opt_in_tracking,Zx.prototype.has_opted_out_tracking=Zx.prototype.has_opted_out_tracking,Zx.prototype.has_opted_in_tracking=Zx.prototype.has_opted_in_tracking,Zx.prototype.clear_opt_in_out_tracking=Zx.prototype.clear_opt_in_out_tracking,Zx.prototype.get_group=Zx.prototype.get_group,Zx.prototype.set_group=Zx.prototype.set_group,Zx.prototype.add_group=Zx.prototype.add_group,Zx.prototype.remove_group=Zx.prototype.remove_group,Zx.prototype.track_with_groups=Zx.prototype.track_with_groups,Zx.prototype.start_batch_senders=Zx.prototype.start_batch_senders,Zx.prototype.stop_batch_senders=Zx.prototype.stop_batch_senders,Zx.prototype.start_session_recording=Zx.prototype.start_session_recording,Zx.prototype.stop_session_recording=Zx.prototype.stop_session_recording,Zx.prototype.get_session_recording_properties=Zx.prototype.get_session_recording_properties,Zx.prototype.DEFAULT_API_ROUTES=Xx,jx.prototype.properties=jx.prototype.properties,jx.prototype.update_search_keyword=jx.prototype.update_search_keyword,jx.prototype.update_referrer_info=jx.prototype.update_referrer_info,jx.prototype.get_cross_subdomain=jx.prototype.get_cross_subdomain,jx.prototype.clear=jx.prototype.clear;var rw={},nw=(zx=function(e,t){t()},Cx=0,(Fx=new Zx).init=function(e,t,r){if(r)return Fx[r]||(Fx[r]=rw[r]=Jx(e,t,r),Fx[r]._loaded()),Fx[r];var n=Fx;rw[Ux]?n=rw[Ux]:e&&((n=Jx(e,t,Ux))._loaded(),rw[Ux]=n),Fx=n,1===Cx&&(Jv[Ux]=Fx),k_.each(rw,(function(e,t){t!==Ux&&(Fx[t]=e)})),Fx._=k_},Fx.init(),function(){function e(){e.done||(e.done=!0,Qx=!0,Kx=!1,k_.each(rw,(function(e){e._dom_loaded()})))}if(h_.addEventListener)"complete"===h_.readyState?e():h_.addEventListener("DOMContentLoaded",e,!1);else if(h_.attachEvent){h_.attachEvent("onreadystatechange",e);var t=!1;try{t=null===Jv.frameElement}catch(e){}h_.documentElement.doScroll&&t&&function t(){try{h_.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}k_.register_event(Jv,"load",e,!0)}(),Fx);const ow="elementor-one-assets";let iw=null;function aw(){return iw}const sw={initialize(e,t){if(!iw)try{nw.init(e,{debug:"production"!==t,track_pageview:!1,persistence:"localStorage"},ow),iw=nw[ow],iw.opt_in_tracking()}catch(e){console.warn("[elementor-one-assets] Failed to initialize tracking:",e)}},registerOnce(e){const t=aw();t?.register_once(e)},track(e,t){const r=aw();console.log(r),r?.track(e,t),console.log("sent")},isInitialized:()=>null!==iw},lw="plugin-settings",cw=e=>{const{enabled:t=!0}=e||{};return Zg({queryKey:[lw],queryFn:()=>Qy.getPluginSettings(),enabled:t})},uw=async e=>{try{const t=await fetch(e);if(!t.ok)throw new Error(`HTTP ${t.status} ${t.statusText} when fetching image from: ${e}`);const r=await t.blob();return new Promise(((e,t)=>{const n=new FileReader;n.onload=()=>e(n.result),n.onerror=()=>t(new Error("Base64 conversion failed")),n.readAsDataURL(r)}))}catch(t){return console.warn(`Failed to convert image ${e}:`,t),e}},pw=new Hm({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnMount:!1,retryOnMount:!1,retry:!1}}}),dw=u(null),fw=({env:t,language:r="en",isRTL:n=!1,children:o})=>{const i=m((()=>(e=>ey[e])(t)),[t]),a=m((()=>({config:i,isRTL:n})),[i,n]);return h((()=>{oh.changeLanguage(r)}),[r]),h((()=>{}),[i]),h((()=>{window.elementorOneSettingsData?.shareUsageData&&sw.initialize("150605b3b9f979922f2ac5a52e2dcfe9",t)}),[t]),e(Kg,{client:pw,children:e(dw.Provider,{value:a,children:o})})},hw=()=>{const e=a(dw);if(!e)throw new Error("Wrap your component in <ElementorOneAssetsProvider> to access the env config");return e.config};var mw=ta;const gw=()=>{const e=as();return mw(e.breakpoints.down("sm"))};function yw(e){return jo("MuiSkeleton",e)}zi("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const bw=["animation","className","component","height","style","variant","width"];let vw,_w,xw,ww,Sw=e=>e;const kw=jt(vw||(vw=Sw`
102
102
  0% {
103
103
  opacity: 1;
104
104
  }
@@ -161,5 +161,5 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import*as n from
161
161
  outline: 0;
162
162
  padding: ${({$isWrapped:e,$noPadding:t,theme:r})=>t?"0":e?`${r.spacing(1)} ${r.spacing(.5)}`:`${r.spacing(2)} ${r.spacing(1.5)}`};
163
163
  }
164
- `,NI=({isWrapped:t,noPadding:r,...n})=>e(II,{...n,$isWrapped:t,$noPadding:r}),PI=({open:r,onClose:n,colorScheme:i="light"})=>{const{t:a}=pp("send-feedback",{i18n:oh}),{SUPPORT_FORM_URL:s}=hw(),{control:l,handleSubmit:c,reset:u,formState:{isValid:p}}=function(e={}){const t=o.useRef(void 0),r=o.useRef(void 0),[n,i]=o.useState({isDirty:!1,isValidating:!1,isLoading:dO(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:dO(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!dO(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:r,...o}=VO(e);t.current={...o,formState:n}}const a=t.current.control;return a._options=e,tO((()=>{const e=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i((e=>({...e,isReady:!0}))),a._formState.isReady=!0,e}),[a]),o.useEffect((()=>a._disableForm(e.disabled)),[a,e.disabled]),o.useEffect((()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)}),[a,e.mode,e.reValidateMode]),o.useEffect((()=>{e.errors&&(a._setErrors(e.errors),a._focusError())}),[a,e.errors]),o.useEffect((()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})}),[a,e.shouldUnregister]),o.useEffect((()=>{if(a._proxyFormState.isDirty){const e=a._getDirty();e!==n.isDirty&&a._subjects.state.next({isDirty:e})}}),[a,n.isDirty]),o.useEffect((()=>{e.values&&!iO(e.values,r.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),r.current=e.values,i((e=>({...e})))):a._resetDefaultValues()}),[a,e.values]),o.useEffect((()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()})),t.current.formState=eO(n,a),t.current}({defaultValues:{product:"",subject:"",title:"",description:""},mode:"onChange"}),{mutateAsync:f,isPending:h}=Jg({mutationFn:e=>Qy.sendFeedback(e)}),[g,y]=d(null),b=m((()=>[{label:a("dialog.products.general"),value:"GENERAL"},{label:a("dialog.products.editor"),value:"EDITOR"},{label:a("dialog.products.imageOptimization"),value:"IO"},{label:a("dialog.products.accessibility"),value:"ALLY"},{label:a("dialog.products.emailDeliverability"),value:"SM"}]),[a]),v=m((()=>[{label:a("dialog.subjects.leaveFeedback"),value:"leaveFeedback"},{label:a("dialog.subjects.reportBug"),value:"reportBug"},{label:a("dialog.subjects.requestFeature"),value:"requestFeature"},{label:a("dialog.subjects.shareThoughts"),value:"shareThoughts"}]),[a]),_=()=>{u(),n()};return t(Qc,{colorScheme:i,children:[t(ZO,{onClose:_,open:r,maxWidth:"sm",fullWidth:!0,"data-test":"send-feedback-dialog",children:[e(UC,{logo:!1,onClose:_,children:e(gC,{color:"text.primary",variant:"subtitle1",children:a("dialog.title")})}),t(ck,{component:"form",onSubmit:c((e=>{f(e,{onSuccess:()=>{_(),y({type:"success",message:a("tooltipSuccess")})},onError:()=>{y({type:"error",message:a("tooltipError")})}})})),children:[e(iC,{sx:{px:3},dividers:!0,children:t(_s,{gap:2,children:[e(aO,{name:"product",control:l,render:({field:{onChange:t,value:r}})=>e(SM,{multiple:!1,options:b,value:b.find((e=>e.value===r))||null,onChange:(e,r)=>t(r?.value||""),renderInput:t=>e(NI,{"data-test":"product-send-feedback-input",...t,isWrapped:!0,placeholder:a("dialog.fieldProductPlaceholder"),color:"secondary"})})}),e(aO,{name:"subject",control:l,render:({field:{onChange:t,value:r}})=>e(SM,{multiple:!1,options:v,value:v.find((e=>e.label===r))||null,onChange:(e,r)=>t(r?.label||""),renderInput:t=>e(NI,{"data-test":"subject-send-feedback-input",...t,isWrapped:!0,placeholder:a("dialog.fieldSubjectPlaceholder"),color:"secondary"})})}),e(aO,{name:"title",control:l,rules:{required:!0,maxLength:{value:90,message:a("dialog.titleLengthError")}},render:({field:t,fieldState:r})=>e(OC,{fullWidth:!0,children:e(NI,{...t,fullWidth:!0,placeholder:a("dialog.fieldTitlePlaceholder"),"data-test":"title-send-feedback-input",error:Boolean(r.error),helperText:r.error?.message,required:!0,sx:{"& .MuiInputBase-root":{minHeight:56}},color:"secondary"})})}),e(aO,{name:"description",control:l,rules:{required:!0,maxLength:{value:1024,message:a("dialog.descriptionLengthError")}},render:({field:t,fieldState:r})=>e(OC,{fullWidth:!0,children:e(NI,{...t,multiline:!0,rows:5,fullWidth:!0,noPadding:!0,placeholder:a("dialog.fieldDescriptionPlaceholder"),"data-test":"description-send-feedback-input",error:Boolean(r.error),helperText:r.error?.message,required:!0,color:"secondary"})})}),e(QM,{severity:"info",action:e(sR,{href:s,target:"_blank",color:"info",children:a("dialog.alert.button")}),children:a("dialog.alert.title")}),t(_s,{direction:"row",gap:1,children:[e(As,{sx:{ml:.5},variant:"body2",color:"text.primary",children:"• "}),e(As,{variant:"body2",color:"text.primary",children:a("dialog.note")})]})]})}),t(uC,{sx:{px:3,py:2,gap:1},children:[e(Ku,{variant:"text",color:"secondary",onClick:_,"data-test":"cancel-send-feedback-modal",children:a("dialog.cancel")}),e(Ku,{type:"submit",variant:"contained",loading:h,"data-test":"submit-feedback-button",disabled:!p||h,children:a("dialog.submit")})]})]})]}),e(vR,{open:Boolean(g),autoHideDuration:5e3,onClose:()=>y(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e(QM,{onClose:()=>y(null),severity:g?.type,variant:"filled",children:g?.message})})]})},AI="action_type",$I="app_context",LI=t=>e(ou,{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",...t,children:e("path",{d:"M12.1207 0C5.42401 0 0 5.37 0 12C0 18.63 5.42401 24 12.1207 24C18.8174 24 24.2414 18.63 24.2414 12C24.2414 5.37 18.8174 0 12.1207 0ZM8.48448 18H6.06034V6H8.48448V18ZM18.181 18H10.9086V15.6H18.181V18ZM18.181 13.2H10.9086V10.8H18.181V13.2ZM18.181 8.4H10.9086V6H18.181V8.4Z",fill:"white"})});var DI,jI={exports:{}};function FI(){return DI||(DI=1,function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",p="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+r+"|"+u+")"+p+"*)?",f="((?:-?"+d+")|(?:inherit|auto))",h="((?:-?"+d+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+p+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+u+")*?",y="(?![a-zA-Z])",b="(?!("+p+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",v="(?!"+g+s+"\\))",_="(?="+g+s+"\\))",x="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,S=/`TMPLTR`/g,k=/`TMPRTL`/g,O=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),C=new RegExp("("+c+b+"[^;}]+;?)","gi"),E=new RegExp("("+c+"[^\\}]*?})","gi"),T=new RegExp("("+a+")ltr","gi"),M=new RegExp("("+a+")rtl","gi"),R=new RegExp(l+"(left)"+y+v+b,"gi"),I=new RegExp(l+"(right)"+y+v+b,"gi"),N=new RegExp(l+"(left)"+_,"gi"),P=new RegExp(l+"(right)"+_,"gi"),A=/(:dir\( *)ltr( *\))/g,$=/(:dir\( *)rtl( *\))/g,L=new RegExp(l+"(ltr)"+_,"gi"),D=new RegExp(l+"(rtl)"+_,"gi"),j=new RegExp(l+"([ns]?)e-resize","gi"),F=new RegExp(l+"([ns]?)w-resize","gi"),z=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+x,"gi"),B=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+x,"gi"),V=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),U=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),q=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+x,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),X=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function Q(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function J(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?Z(n)+" / "+Z(o):Z(n))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,o){return t+r+ee(n)+o}function ne(e,t,r,n,o){return t+r+n+ee(o)}return{transform:function(r,o){var i=new n(C,"`NOFLIP_SINGLE`"),a=new n(E,"`NOFLIP_CLASS`"),s=new n(O,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(A,"$1`TMPLTR`$2").replace($,"$1`TMPRTL`$2").replace(L,"$1"+e).replace(D,"$1ltr").replace(w,"rtl").replace(S,"ltr").replace(k,"rtl")),o.transformEdgeInUrl&&(r=r.replace(N,"$1"+e).replace(P,"$1left").replace(w,"right")),r=r.replace(T,"$1"+e).replace(M,"$1ltr").replace(w,"rtl").replace(R,"$1"+e).replace(I,"$1left").replace(w,"right").replace(j,"$1$2"+e).replace(F,"$1$2e-resize").replace(w,"w-resize").replace(q,J).replace(W,te).replace(H,ne).replace(K,ne).replace(G,te).replace(X,re).replace(Y,re).replace(z,"$1$2$3$8$5$6$7$4$9").replace(B,"$1$2$3$8$5$6$7$4$9").replace(V,Q).replace(U,Q),i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(jI,jI.exports)),jI.exports}const zI=x(FI());var BI="-ms-",VI="-moz-",UI="-webkit-",qI="comm",WI="rule",HI="decl",KI="@import",GI="@keyframes",XI=Math.abs,YI=String.fromCharCode,QI=Object.assign;function ZI(e){return e.trim()}function JI(e,t){return(e=t.exec(e))?e[0]:e}function eN(e,t,r){return e.replace(t,r)}function tN(e,t){return e.indexOf(t)}function rN(e,t){return 0|e.charCodeAt(t)}function nN(e,t,r){return e.slice(t,r)}function oN(e){return e.length}function iN(e){return e.length}function aN(e,t){return t.push(e),e}var sN=1,lN=1,cN=0,uN=0,pN=0,dN="";function fN(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:sN,column:lN,length:a,return:""}}function hN(e,t){return QI(fN("",null,null,"",null,null,0),e,{length:-e.length},t)}function mN(){return pN=uN>0?rN(dN,--uN):0,lN--,10===pN&&(lN=1,sN--),pN}function gN(){return pN=uN<cN?rN(dN,uN++):0,lN++,10===pN&&(lN=1,sN++),pN}function yN(){return rN(dN,uN)}function bN(){return uN}function vN(e,t){return nN(dN,e,t)}function _N(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xN(e){return ZI(vN(uN-1,kN(91===e?e+2:40===e?e+1:e)))}function wN(e){for(;(pN=yN())&&pN<33;)gN();return _N(e)>2||_N(pN)>3?"":" "}function SN(e,t){for(;--t&&gN()&&!(pN<48||pN>102||pN>57&&pN<65||pN>70&&pN<97););return vN(e,bN()+(t<6&&32==yN()&&32==gN()))}function kN(e){for(;gN();)switch(pN){case e:return uN;case 34:case 39:34!==e&&39!==e&&kN(pN);break;case 40:41===e&&kN(e);break;case 92:gN()}return uN}function ON(e,t){for(;gN()&&e+pN!==57&&(e+pN!==84||47!==yN()););return"/*"+vN(t,uN-1)+"*"+YI(47===e?e:gN())}function CN(e){for(;!_N(yN());)gN();return vN(e,uN)}function EN(e){return function(e){return dN="",e}(TN("",null,null,null,[""],e=function(e){return sN=lN=1,cN=oN(dN=e),uN=0,[]}(e),0,[0],e))}function TN(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,p=a,d=0,f=0,h=0,m=1,g=1,y=1,b=0,v="",_=o,x=i,w=n,S=v;g;)switch(h=b,b=gN()){case 40:if(108!=h&&58==rN(S,p-1)){-1!=tN(S+=eN(xN(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=xN(b);break;case 9:case 10:case 13:case 32:S+=wN(h);break;case 92:S+=SN(bN()-1,7);continue;case 47:switch(yN()){case 42:case 47:aN(RN(ON(gN(),bN()),t,r),l);break;default:S+="/"}break;case 123*m:s[c++]=oN(S)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:f>0&&oN(S)-p&&aN(f>32?IN(S+";",n,r,p-1):IN(eN(S," ","")+";",n,r,p-2),l);break;case 59:S+=";";default:if(aN(w=MN(S,t,r,c,u,o,s,v,_=[],x=[],p),i),123===b)if(0===u)TN(S,t,w,w,_,i,p,s,x);else switch(99===d&&110===rN(S,3)?100:d){case 100:case 109:case 115:TN(e,w,w,n&&aN(MN(e,w,w,0,0,o,s,v,o,_=[],p),x),o,x,p,s,n?_:x);break;default:TN(S,w,w,w,[""],x,0,s,x)}}c=u=f=0,m=y=1,v=S="",p=a;break;case 58:p=1+oN(S),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==mN())continue;switch(S+=YI(b),b*m){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(oN(S)-1)*y,y=1;break;case 64:45===yN()&&(S+=xN(gN())),d=yN(),u=p=oN(v=S+=CN(bN())),b++;break;case 45:45===h&&2==oN(S)&&(m=0)}}return i}function MN(e,t,r,n,o,i,a,s,l,c,u){for(var p=o-1,d=0===o?i:[""],f=iN(d),h=0,m=0,g=0;h<n;++h)for(var y=0,b=nN(e,p+1,p=XI(m=a[h])),v=e;y<f;++y)(v=ZI(m>0?d[y]+" "+b:eN(b,/&\f/g,d[y])))&&(l[g++]=v);return fN(e,t,r,0===o?WI:s,l,c,u)}function RN(e,t,r){return fN(e,t,r,qI,YI(pN),nN(e,2,-2),0)}function IN(e,t,r,n){return fN(e,t,r,HI,nN(e,0,n),nN(e,n+1,-1),n)}function NN(e,t,r){switch(function(e,t){return 45^rN(e,0)?(((t<<2^rN(e,0))<<2^rN(e,1))<<2^rN(e,2))<<2^rN(e,3):0}(e,t)){case 5103:return UI+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return UI+e+e;case 4789:return VI+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return UI+e+VI+e+BI+e+e;case 5936:switch(rN(e,t+11)){case 114:return UI+e+BI+eN(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return UI+e+BI+eN(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return UI+e+BI+eN(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return UI+e+BI+e+e;case 6165:return UI+e+BI+"flex-"+e+e;case 5187:return UI+e+eN(e,/(\w+).+(:[^]+)/,UI+"box-$1$2"+BI+"flex-$1$2")+e;case 5443:return UI+e+BI+"flex-item-"+eN(e,/flex-|-self/g,"")+(JI(e,/flex-|baseline/)?"":BI+"grid-row-"+eN(e,/flex-|-self/g,""))+e;case 4675:return UI+e+BI+"flex-line-pack"+eN(e,/align-content|flex-|-self/g,"")+e;case 5548:return UI+e+BI+eN(e,"shrink","negative")+e;case 5292:return UI+e+BI+eN(e,"basis","preferred-size")+e;case 6060:return UI+"box-"+eN(e,"-grow","")+UI+e+BI+eN(e,"grow","positive")+e;case 4554:return UI+eN(e,/([^-])(transform)/g,"$1"+UI+"$2")+e;case 6187:return eN(eN(eN(e,/(zoom-|grab)/,UI+"$1"),/(image-set)/,UI+"$1"),e,"")+e;case 5495:case 3959:return eN(e,/(image-set\([^]*)/,UI+"$1$`$1");case 4968:return eN(eN(e,/(.+:)(flex-)?(.*)/,UI+"box-pack:$3"+BI+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+UI+e+e;case 4200:if(!JI(e,/flex-|baseline/))return BI+"grid-column-align"+nN(e,t)+e;break;case 2592:case 3360:return BI+eN(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,JI(e.props,/grid-\w+-end/)}))?~tN(e+(r=r[t].value),"span")?e:BI+eN(e,"-start","")+e+BI+"grid-row-span:"+(~tN(r,"span")?JI(r,/\d+/):+JI(r,/\d+/)-+JI(e,/\d+/))+";":BI+eN(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return JI(e.props,/grid-\w+-start/)}))?e:BI+eN(eN(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return eN(e,/(.+)-inline(.+)/,UI+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(oN(e)-1-t>6)switch(rN(e,t+1)){case 109:if(45!==rN(e,t+4))break;case 102:return eN(e,/(.+:)(.+)-([^]+)/,"$1"+UI+"$2-$3$1"+VI+(108==rN(e,t+3)?"$3":"$2-$3"))+e;case 115:return~tN(e,"stretch")?NN(eN(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return eN(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return BI+r+":"+n+s+(o?BI+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===rN(e,t+6))return eN(e,":",":"+UI)+e;break;case 6444:switch(rN(e,45===rN(e,14)?18:11)){case 120:return eN(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+UI+(45===rN(e,14)?"inline-":"")+"box$3$1"+UI+"$2$3$1"+BI+"$2box$3")+e;case 100:return eN(e,":",":"+BI)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return eN(e,"scroll-","scroll-snap-")+e}return e}function PN(e,t){for(var r="",n=iN(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function AN(e,t,r){switch(e.type){case KI:case HI:case qI:return e.return=e.return||e.value;case WI:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===qI&&(e.children=e.value)}))}var n=PN(Array.prototype.concat(e.children),AN);return oN(n)?e.return=e.value+"{"+n+"}":""}function $N(e,t,r,n){if(e.type===GI||"@supports"===e.type||e.type===WI&&(!e.parent||"@media"===e.parent.type||e.parent.type===WI)){var o=zI.transform(AN(e));e.children=o?EN(o)[0].children:[],e.return=""}}Object.defineProperty($N,"name",{value:"stylisRTLPlugin"});const LN=mt({key:Tl,stylisPlugins:[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case HI:return void(e.return=NN(e.value,e.length,r));case GI:return PN([hN(e,{value:eN(e.value,"@","@"+UI)})],n);case WI:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(JI(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return PN([hN(e,{props:[eN(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return PN([hN(e,{props:[eN(t,/:(plac\w+)/,":"+UI+"input-$1")]}),hN(e,{props:[eN(t,/:(plac\w+)/,":-moz-$1")]}),hN(e,{props:[eN(t,/:(plac\w+)/,BI+"input-$1")]})],n)}return""}))}},$N]}),DN=mt({key:"eui"});var jN=({rtl:e,children:t})=>o.createElement(Pt,{value:e?LN:DN},t);const FN=({appSettings:n,colorScheme:o="dark",title:i,multiDelpoymentSlot:s,isWithinWpAdmin:l=!0,containerSx:c={},onDisconnect:u})=>{const{t:p}=pp("common",{i18n:oh}),m=(e=>{switch(e){case"image-optimizer":return"https://elementor.com/help/plugins-by-elementor/image-optimizer/";case"ally":return"https://elementor.com/help/plugins-by-elementor/web-accessibility/";case"elementor-pro":case"elementor":return"https://elementor.com/help/elementor-editor/";case"site-mailer":return"https://elementor.com/help/plugins-by-elementor/site-mailer/";case"angie":return"https://elementor.com/help/elementor-ai/";default:return"https://elementor.com/help/ "}})(n.slug),[g,y]=d(!1),b=gw(),v=(()=>{const e=a(dw);if(!e)throw new Error("Wrap your component in <ElementorOneAssetsProvider> to access RTL orientation");return e.isRTL})(),_=f(!1),x=window.elementorOneSettingsData?.canUserManageOptions??!1,{data:w}=cw({enabled:x});h((()=>{if(!_.current){const{appType:e,productName:t}=(e=>{switch(e){case"elementor":case"elementor-pro":return{appType:"Editor"};case"elementor-home":default:return{appType:"Infra"};case"ally":return{appType:"Apps",productName:"app_access"};case"image-optimization":return{appType:"Apps",productName:"app_io"};case"site-mailer":return{appType:"Apps",productName:"app_mailer"};case"angie":return{appType:"Apps",productName:"app_ai"}}})(n.slug),r={appType:e};t&&(r.productName=t),sw.registerOnce(r),_.current=!0}}),[n.slug]);const S=e=>{window?.elementorOneSettingsData?.shareUsageData&&sw.track("top_bar_clicked",{[AI]:e,[$I]:n.slug})};return e(jN,{rtl:v,children:t(Qc,{colorScheme:o,children:[e(bs,{sx:{top:0,...c,position:"sticky",zIndex:1100},children:e(Os,{sx:{pl:"30px !important",backgroundColor:"background.paper"},variant:"dense",children:t(_s,{direction:"row",justifyContent:"space-between",width:"100%",children:[t(_s,{direction:"row",alignItems:"center",gap:1,flexWrap:"nowrap",children:[e(LI,{}),!b&&e(As,{variant:"button",fontSize:"20px",fontWeight:400,whiteSpace:"nowrap",children:i||p("header.title")})]}),t(_s,{direction:"row",alignItems:"center",gap:1,children:[w?.isConnected&&e(Jc,{size:"small",onClick:()=>{S("feedback"),y(!0)},children:e(iu,{})}),e(kk,{appSettings:n,containerSx:{"& .MuiDrawer-paper":{width:320,padding:3,...l?{top:32,height:"calc(100vh - 32px)","@media (max-width: 784px)":{top:46,height:"calc(100vh - 46px)"}}:{}}}}),m&&e(Jc,{size:"small",href:m,target:"_blank",onClick:()=>S("help"),children:e(au,{fontSize:"small"})}),s,x&&t(r,{children:[e(fu,{orientation:"vertical",flexItem:!0,sx:{my:1,mx:1}}),e(qw,{onDisconnect:u,onClick:()=>S("account"),onConnectClick:()=>S("connect")})]})]})]})})}),e(PI,{open:g,onClose:()=>y(!1)})]})})};export{dw as ElementorOneAssetsContext,fw as ElementorOneAssetsProvider,FN as ElementorOneHeader,PI as SendFeedbackDialog,kk as WhatsNew};
164
+ `,NI=({isWrapped:t,noPadding:r,...n})=>e(II,{...n,$isWrapped:t,$noPadding:r});var PI;!function(e){e.EN="en",e.DE="de",e.ES="es",e.IT="it",e.NL="nl",e.PT="pt-PT",e.PT_BR="pt-BR",e.FR="fr",e.HE="he-IL"}(PI||(PI={}));const AI=({open:r,onClose:n,colorScheme:i="light"})=>{const{t:a}=pp("send-feedback",{i18n:oh}),{SUPPORT_FORM_URL:s}=hw(),{control:l,handleSubmit:c,reset:u,formState:{isValid:p}}=function(e={}){const t=o.useRef(void 0),r=o.useRef(void 0),[n,i]=o.useState({isDirty:!1,isValidating:!1,isLoading:dO(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:dO(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!dO(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:r,...o}=VO(e);t.current={...o,formState:n}}const a=t.current.control;return a._options=e,tO((()=>{const e=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i((e=>({...e,isReady:!0}))),a._formState.isReady=!0,e}),[a]),o.useEffect((()=>a._disableForm(e.disabled)),[a,e.disabled]),o.useEffect((()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)}),[a,e.mode,e.reValidateMode]),o.useEffect((()=>{e.errors&&(a._setErrors(e.errors),a._focusError())}),[a,e.errors]),o.useEffect((()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})}),[a,e.shouldUnregister]),o.useEffect((()=>{if(a._proxyFormState.isDirty){const e=a._getDirty();e!==n.isDirty&&a._subjects.state.next({isDirty:e})}}),[a,n.isDirty]),o.useEffect((()=>{e.values&&!iO(e.values,r.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),r.current=e.values,i((e=>({...e})))):a._resetDefaultValues()}),[a,e.values]),o.useEffect((()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()})),t.current.formState=eO(n,a),t.current}({defaultValues:{product:"",subject:"",title:"",description:""},mode:"onChange"}),{mutateAsync:f,isPending:h}=Jg({mutationFn:e=>Qy.sendFeedback(e)}),[g,y]=d(null),b=m((()=>[{label:a("dialog.products.general"),value:"GENERAL"},{label:a("dialog.products.editor"),value:"EDITOR"},{label:a("dialog.products.imageOptimization"),value:"IO"},{label:a("dialog.products.accessibility"),value:"ALLY"},{label:a("dialog.products.emailDeliverability"),value:"SM"}]),[a]),v=m((()=>[{label:a("dialog.subjects.leaveFeedback"),value:a("dialog.subjects.leaveFeedback",{lng:PI.EN})},{label:a("dialog.subjects.reportBug"),value:a("dialog.subjects.reportBug",{lng:PI.EN})},{label:a("dialog.subjects.requestFeature"),value:a("dialog.subjects.requestFeature",{lng:PI.EN})},{label:a("dialog.subjects.shareThoughts"),value:a("dialog.subjects.shareThoughts",{lng:PI.EN})}]),[a]),_=()=>{u(),n()};return t(Qc,{colorScheme:i,children:[t(ZO,{onClose:_,open:r,maxWidth:"sm",fullWidth:!0,"data-test":"send-feedback-dialog",children:[e(UC,{logo:!1,onClose:_,children:e(gC,{color:"text.primary",variant:"subtitle1",children:a("dialog.title")})}),t(ck,{component:"form",onSubmit:c((e=>{f(e,{onSuccess:()=>{_(),y({type:"success",message:a("tooltipSuccess")})},onError:()=>{y({type:"error",message:a("tooltipError")})}})})),children:[e(iC,{sx:{px:3},dividers:!0,children:t(_s,{gap:2,children:[e(aO,{name:"product",control:l,render:({field:{onChange:t,value:r}})=>e(SM,{multiple:!1,options:b,value:b.find((e=>e.value===r))||null,onChange:(e,r)=>t(r?.value||""),renderInput:t=>e(NI,{"data-test":"product-send-feedback-input",...t,isWrapped:!0,placeholder:a("dialog.fieldProductPlaceholder"),color:"secondary"})})}),e(aO,{name:"subject",control:l,render:({field:{onChange:t,value:r}})=>e(SM,{multiple:!1,options:v,value:v.find((e=>e.value===r))||null,onChange:(e,r)=>t(r?.value||""),renderInput:t=>e(NI,{"data-test":"subject-send-feedback-input",...t,isWrapped:!0,placeholder:a("dialog.fieldSubjectPlaceholder"),color:"secondary"})})}),e(aO,{name:"title",control:l,rules:{required:!0,maxLength:{value:90,message:a("dialog.titleLengthError")}},render:({field:t,fieldState:r})=>e(OC,{fullWidth:!0,children:e(NI,{...t,fullWidth:!0,placeholder:a("dialog.fieldTitlePlaceholder"),"data-test":"title-send-feedback-input",error:Boolean(r.error),helperText:r.error?.message,required:!0,sx:{"& .MuiInputBase-root":{minHeight:56}},color:"secondary"})})}),e(aO,{name:"description",control:l,rules:{required:!0,maxLength:{value:1024,message:a("dialog.descriptionLengthError")}},render:({field:t,fieldState:r})=>e(OC,{fullWidth:!0,children:e(NI,{...t,multiline:!0,rows:5,fullWidth:!0,noPadding:!0,placeholder:a("dialog.fieldDescriptionPlaceholder"),"data-test":"description-send-feedback-input",error:Boolean(r.error),helperText:r.error?.message,required:!0,color:"secondary"})})}),e(QM,{severity:"info",action:e(sR,{href:s,target:"_blank",color:"info",children:a("dialog.alert.button")}),children:a("dialog.alert.title")}),t(_s,{direction:"row",gap:1,children:[e(As,{sx:{ml:.5},variant:"body2",color:"text.primary",children:"• "}),e(As,{variant:"body2",color:"text.primary",children:a("dialog.note")})]})]})}),t(uC,{sx:{px:3,py:2,gap:1},children:[e(Ku,{variant:"text",color:"secondary",onClick:_,"data-test":"cancel-send-feedback-modal",children:a("dialog.cancel")}),e(Ku,{type:"submit",variant:"contained",loading:h,"data-test":"submit-feedback-button",disabled:!p||h,children:a("dialog.submit")})]})]})]}),e(vR,{open:Boolean(g),autoHideDuration:5e3,onClose:()=>y(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e(QM,{onClose:()=>y(null),severity:g?.type,variant:"filled",children:g?.message})})]})},$I="action_type",LI="app_context",DI=t=>e(ou,{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",...t,children:e("path",{d:"M12.1207 0C5.42401 0 0 5.37 0 12C0 18.63 5.42401 24 12.1207 24C18.8174 24 24.2414 18.63 24.2414 12C24.2414 5.37 18.8174 0 12.1207 0ZM8.48448 18H6.06034V6H8.48448V18ZM18.181 18H10.9086V15.6H18.181V18ZM18.181 13.2H10.9086V10.8H18.181V13.2ZM18.181 8.4H10.9086V6H18.181V8.4Z",fill:"white"})});var jI,FI={exports:{}};function zI(){return jI||(jI=1,function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",p="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+r+"|"+u+")"+p+"*)?",f="((?:-?"+d+")|(?:inherit|auto))",h="((?:-?"+d+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+p+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+u+")*?",y="(?![a-zA-Z])",b="(?!("+p+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",v="(?!"+g+s+"\\))",_="(?="+g+s+"\\))",x="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,S=/`TMPLTR`/g,k=/`TMPRTL`/g,O=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),C=new RegExp("("+c+b+"[^;}]+;?)","gi"),E=new RegExp("("+c+"[^\\}]*?})","gi"),T=new RegExp("("+a+")ltr","gi"),M=new RegExp("("+a+")rtl","gi"),R=new RegExp(l+"(left)"+y+v+b,"gi"),I=new RegExp(l+"(right)"+y+v+b,"gi"),N=new RegExp(l+"(left)"+_,"gi"),P=new RegExp(l+"(right)"+_,"gi"),A=/(:dir\( *)ltr( *\))/g,$=/(:dir\( *)rtl( *\))/g,L=new RegExp(l+"(ltr)"+_,"gi"),D=new RegExp(l+"(rtl)"+_,"gi"),j=new RegExp(l+"([ns]?)e-resize","gi"),F=new RegExp(l+"([ns]?)w-resize","gi"),z=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+x,"gi"),B=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+x,"gi"),V=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),U=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),q=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+x,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),X=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function Q(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function J(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?Z(n)+" / "+Z(o):Z(n))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,o){return t+r+ee(n)+o}function ne(e,t,r,n,o){return t+r+n+ee(o)}return{transform:function(r,o){var i=new n(C,"`NOFLIP_SINGLE`"),a=new n(E,"`NOFLIP_CLASS`"),s=new n(O,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(A,"$1`TMPLTR`$2").replace($,"$1`TMPRTL`$2").replace(L,"$1"+e).replace(D,"$1ltr").replace(w,"rtl").replace(S,"ltr").replace(k,"rtl")),o.transformEdgeInUrl&&(r=r.replace(N,"$1"+e).replace(P,"$1left").replace(w,"right")),r=r.replace(T,"$1"+e).replace(M,"$1ltr").replace(w,"rtl").replace(R,"$1"+e).replace(I,"$1left").replace(w,"right").replace(j,"$1$2"+e).replace(F,"$1$2e-resize").replace(w,"w-resize").replace(q,J).replace(W,te).replace(H,ne).replace(K,ne).replace(G,te).replace(X,re).replace(Y,re).replace(z,"$1$2$3$8$5$6$7$4$9").replace(B,"$1$2$3$8$5$6$7$4$9").replace(V,Q).replace(U,Q),i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(FI,FI.exports)),FI.exports}const BI=x(zI());var VI="-ms-",UI="-moz-",qI="-webkit-",WI="comm",HI="rule",KI="decl",GI="@import",XI="@keyframes",YI=Math.abs,QI=String.fromCharCode,ZI=Object.assign;function JI(e){return e.trim()}function eN(e,t){return(e=t.exec(e))?e[0]:e}function tN(e,t,r){return e.replace(t,r)}function rN(e,t){return e.indexOf(t)}function nN(e,t){return 0|e.charCodeAt(t)}function oN(e,t,r){return e.slice(t,r)}function iN(e){return e.length}function aN(e){return e.length}function sN(e,t){return t.push(e),e}var lN=1,cN=1,uN=0,pN=0,dN=0,fN="";function hN(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:lN,column:cN,length:a,return:""}}function mN(e,t){return ZI(hN("",null,null,"",null,null,0),e,{length:-e.length},t)}function gN(){return dN=pN>0?nN(fN,--pN):0,cN--,10===dN&&(cN=1,lN--),dN}function yN(){return dN=pN<uN?nN(fN,pN++):0,cN++,10===dN&&(cN=1,lN++),dN}function bN(){return nN(fN,pN)}function vN(){return pN}function _N(e,t){return oN(fN,e,t)}function xN(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wN(e){return JI(_N(pN-1,ON(91===e?e+2:40===e?e+1:e)))}function SN(e){for(;(dN=bN())&&dN<33;)yN();return xN(e)>2||xN(dN)>3?"":" "}function kN(e,t){for(;--t&&yN()&&!(dN<48||dN>102||dN>57&&dN<65||dN>70&&dN<97););return _N(e,vN()+(t<6&&32==bN()&&32==yN()))}function ON(e){for(;yN();)switch(dN){case e:return pN;case 34:case 39:34!==e&&39!==e&&ON(dN);break;case 40:41===e&&ON(e);break;case 92:yN()}return pN}function CN(e,t){for(;yN()&&e+dN!==57&&(e+dN!==84||47!==bN()););return"/*"+_N(t,pN-1)+"*"+QI(47===e?e:yN())}function EN(e){for(;!xN(bN());)yN();return _N(e,pN)}function TN(e){return function(e){return fN="",e}(MN("",null,null,null,[""],e=function(e){return lN=cN=1,uN=iN(fN=e),pN=0,[]}(e),0,[0],e))}function MN(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,p=a,d=0,f=0,h=0,m=1,g=1,y=1,b=0,v="",_=o,x=i,w=n,S=v;g;)switch(h=b,b=yN()){case 40:if(108!=h&&58==nN(S,p-1)){-1!=rN(S+=tN(wN(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=wN(b);break;case 9:case 10:case 13:case 32:S+=SN(h);break;case 92:S+=kN(vN()-1,7);continue;case 47:switch(bN()){case 42:case 47:sN(IN(CN(yN(),vN()),t,r),l);break;default:S+="/"}break;case 123*m:s[c++]=iN(S)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:f>0&&iN(S)-p&&sN(f>32?NN(S+";",n,r,p-1):NN(tN(S," ","")+";",n,r,p-2),l);break;case 59:S+=";";default:if(sN(w=RN(S,t,r,c,u,o,s,v,_=[],x=[],p),i),123===b)if(0===u)MN(S,t,w,w,_,i,p,s,x);else switch(99===d&&110===nN(S,3)?100:d){case 100:case 109:case 115:MN(e,w,w,n&&sN(RN(e,w,w,0,0,o,s,v,o,_=[],p),x),o,x,p,s,n?_:x);break;default:MN(S,w,w,w,[""],x,0,s,x)}}c=u=f=0,m=y=1,v=S="",p=a;break;case 58:p=1+iN(S),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==gN())continue;switch(S+=QI(b),b*m){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(iN(S)-1)*y,y=1;break;case 64:45===bN()&&(S+=wN(yN())),d=bN(),u=p=iN(v=S+=EN(vN())),b++;break;case 45:45===h&&2==iN(S)&&(m=0)}}return i}function RN(e,t,r,n,o,i,a,s,l,c,u){for(var p=o-1,d=0===o?i:[""],f=aN(d),h=0,m=0,g=0;h<n;++h)for(var y=0,b=oN(e,p+1,p=YI(m=a[h])),v=e;y<f;++y)(v=JI(m>0?d[y]+" "+b:tN(b,/&\f/g,d[y])))&&(l[g++]=v);return hN(e,t,r,0===o?HI:s,l,c,u)}function IN(e,t,r){return hN(e,t,r,WI,QI(dN),oN(e,2,-2),0)}function NN(e,t,r,n){return hN(e,t,r,KI,oN(e,0,n),oN(e,n+1,-1),n)}function PN(e,t,r){switch(function(e,t){return 45^nN(e,0)?(((t<<2^nN(e,0))<<2^nN(e,1))<<2^nN(e,2))<<2^nN(e,3):0}(e,t)){case 5103:return qI+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return qI+e+e;case 4789:return UI+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qI+e+UI+e+VI+e+e;case 5936:switch(nN(e,t+11)){case 114:return qI+e+VI+tN(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qI+e+VI+tN(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qI+e+VI+tN(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return qI+e+VI+e+e;case 6165:return qI+e+VI+"flex-"+e+e;case 5187:return qI+e+tN(e,/(\w+).+(:[^]+)/,qI+"box-$1$2"+VI+"flex-$1$2")+e;case 5443:return qI+e+VI+"flex-item-"+tN(e,/flex-|-self/g,"")+(eN(e,/flex-|baseline/)?"":VI+"grid-row-"+tN(e,/flex-|-self/g,""))+e;case 4675:return qI+e+VI+"flex-line-pack"+tN(e,/align-content|flex-|-self/g,"")+e;case 5548:return qI+e+VI+tN(e,"shrink","negative")+e;case 5292:return qI+e+VI+tN(e,"basis","preferred-size")+e;case 6060:return qI+"box-"+tN(e,"-grow","")+qI+e+VI+tN(e,"grow","positive")+e;case 4554:return qI+tN(e,/([^-])(transform)/g,"$1"+qI+"$2")+e;case 6187:return tN(tN(tN(e,/(zoom-|grab)/,qI+"$1"),/(image-set)/,qI+"$1"),e,"")+e;case 5495:case 3959:return tN(e,/(image-set\([^]*)/,qI+"$1$`$1");case 4968:return tN(tN(e,/(.+:)(flex-)?(.*)/,qI+"box-pack:$3"+VI+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qI+e+e;case 4200:if(!eN(e,/flex-|baseline/))return VI+"grid-column-align"+oN(e,t)+e;break;case 2592:case 3360:return VI+tN(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,eN(e.props,/grid-\w+-end/)}))?~rN(e+(r=r[t].value),"span")?e:VI+tN(e,"-start","")+e+VI+"grid-row-span:"+(~rN(r,"span")?eN(r,/\d+/):+eN(r,/\d+/)-+eN(e,/\d+/))+";":VI+tN(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return eN(e.props,/grid-\w+-start/)}))?e:VI+tN(tN(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return tN(e,/(.+)-inline(.+)/,qI+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(iN(e)-1-t>6)switch(nN(e,t+1)){case 109:if(45!==nN(e,t+4))break;case 102:return tN(e,/(.+:)(.+)-([^]+)/,"$1"+qI+"$2-$3$1"+UI+(108==nN(e,t+3)?"$3":"$2-$3"))+e;case 115:return~rN(e,"stretch")?PN(tN(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return tN(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return VI+r+":"+n+s+(o?VI+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===nN(e,t+6))return tN(e,":",":"+qI)+e;break;case 6444:switch(nN(e,45===nN(e,14)?18:11)){case 120:return tN(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+qI+(45===nN(e,14)?"inline-":"")+"box$3$1"+qI+"$2$3$1"+VI+"$2box$3")+e;case 100:return tN(e,":",":"+VI)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return tN(e,"scroll-","scroll-snap-")+e}return e}function AN(e,t){for(var r="",n=aN(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function $N(e,t,r){switch(e.type){case GI:case KI:case WI:return e.return=e.return||e.value;case HI:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===WI&&(e.children=e.value)}))}var n=AN(Array.prototype.concat(e.children),$N);return iN(n)?e.return=e.value+"{"+n+"}":""}function LN(e,t,r,n){if(e.type===XI||"@supports"===e.type||e.type===HI&&(!e.parent||"@media"===e.parent.type||e.parent.type===HI)){var o=BI.transform($N(e));e.children=o?TN(o)[0].children:[],e.return=""}}Object.defineProperty(LN,"name",{value:"stylisRTLPlugin"});const DN=mt({key:Tl,stylisPlugins:[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case KI:return void(e.return=PN(e.value,e.length,r));case XI:return AN([mN(e,{value:tN(e.value,"@","@"+qI)})],n);case HI:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(eN(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return AN([mN(e,{props:[tN(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return AN([mN(e,{props:[tN(t,/:(plac\w+)/,":"+qI+"input-$1")]}),mN(e,{props:[tN(t,/:(plac\w+)/,":-moz-$1")]}),mN(e,{props:[tN(t,/:(plac\w+)/,VI+"input-$1")]})],n)}return""}))}},LN]}),jN=mt({key:"eui"});var FN=({rtl:e,children:t})=>o.createElement(Pt,{value:e?DN:jN},t);const zN=({appSettings:n,colorScheme:o="dark",title:i,multiDelpoymentSlot:s,isWithinWpAdmin:l=!0,containerSx:c={},onDisconnect:u})=>{const{t:p}=pp("common",{i18n:oh}),m=(e=>{switch(e){case"image-optimizer":return"https://elementor.com/help/plugins-by-elementor/image-optimizer/";case"ally":return"https://elementor.com/help/plugins-by-elementor/web-accessibility/";case"elementor-pro":case"elementor":return"https://elementor.com/help/elementor-editor/";case"site-mailer":return"https://elementor.com/help/plugins-by-elementor/site-mailer/";case"angie":return"https://elementor.com/help/elementor-ai/";default:return"https://elementor.com/help/ "}})(n.slug),[g,y]=d(!1),b=gw(),v=(()=>{const e=a(dw);if(!e)throw new Error("Wrap your component in <ElementorOneAssetsProvider> to access RTL orientation");return e.isRTL})(),_=f(!1),x=window.elementorOneSettingsData?.canUserManageOptions??!1,w=window.elementorOneSettingsData?.shareUsageData??!1,{data:S}=cw({enabled:x});h((()=>{if(w&&!_.current){const{appType:e,productName:t}=(e=>{switch(e){case"elementor":case"elementor-pro":return{appType:"Editor"};case"elementor-home":default:return{appType:"Infra"};case"ally":return{appType:"Apps",productName:"app_access"};case"image-optimization":return{appType:"Apps",productName:"app_io"};case"site-mailer":return{appType:"Apps",productName:"app_mailer"};case"angie":return{appType:"Apps",productName:"app_ai"}}})(n.slug),r={appType:e};t&&(r.productName=t),sw.registerOnce(r),_.current=!0}}),[n.slug,w]);const k=e=>{w&&sw.track("top_bar_clicked",{[$I]:e,[LI]:n.slug})};return e(FN,{rtl:v,children:t(Qc,{colorScheme:o,children:[e(bs,{sx:{top:0,...c,position:"sticky",zIndex:1100},children:e(Os,{sx:{pl:"30px !important",backgroundColor:"background.paper"},variant:"dense",children:t(_s,{direction:"row",justifyContent:"space-between",width:"100%",children:[t(_s,{direction:"row",alignItems:"center",gap:1,flexWrap:"nowrap",children:[e(DI,{}),!b&&e(As,{variant:"button",fontSize:"20px",fontWeight:400,whiteSpace:"nowrap",children:i||p("header.title")})]}),t(_s,{direction:"row",alignItems:"center",gap:1,children:[S?.isConnected&&e(Jc,{size:"small",onClick:()=>{k("feedback"),y(!0)},children:e(iu,{})}),e(kk,{appSettings:n,containerSx:{"& .MuiDrawer-paper":{width:320,padding:3,...l?{top:32,height:"calc(100vh - 32px)","@media (max-width: 784px)":{top:46,height:"calc(100vh - 46px)"}}:{}}}}),m&&e(Jc,{size:"small",href:m,target:"_blank",onClick:()=>k("help"),children:e(au,{fontSize:"small"})}),s,x&&t(r,{children:[e(fu,{orientation:"vertical",flexItem:!0,sx:{my:1,mx:1}}),e(qw,{onDisconnect:u,onClick:()=>k("account"),onConnectClick:()=>k("connect")})]})]})]})})}),e(AI,{open:g,onClose:()=>y(!1)})]})})};export{dw as ElementorOneAssetsContext,fw as ElementorOneAssetsProvider,zN as ElementorOneHeader,AI as SendFeedbackDialog,kk as WhatsNew};
165
165
  //# sourceMappingURL=index.esm.js.map