(function(Wt,_t){typeof exports=="object"&&typeof module<"u"?module.exports=_t():typeof define=="function"&&define.amd?define(_t):(Wt=typeof globalThis<"u"?globalThis:Wt||self,Wt.WPAIStudioSettings=_t())})(this,function(){"use strict";var Px=Object.defineProperty;var Xx=(Wt,_t,Ft)=>_t in Wt?Px(Wt,_t,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Wt[_t]=Ft;var wt=(Wt,_t,Ft)=>Xx(Wt,typeof _t!="symbol"?_t+"":_t,Ft);function Wt(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(a,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>a[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var _t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ft(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bh={exports:{}},es={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var iS=Symbol.for("react.transitional.element"),lS=Symbol.for("react.fragment");function jh(e,t,n){var a=null;if(n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),"key"in t){n={};for(var i in t)i!=="key"&&(n[i]=t[i])}else n=t;return t=n.ref,{$$typeof:iS,type:e,key:a,ref:t!==void 0?t:null,props:n}}es.Fragment=lS,es.jsx=jh,es.jsxs=jh,Bh.exports=es;var B=Bh.exports,Hh={exports:{}},ne={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var gu=Symbol.for("react.transitional.element"),rS=Symbol.for("react.portal"),sS=Symbol.for("react.fragment"),oS=Symbol.for("react.strict_mode"),uS=Symbol.for("react.profiler"),cS=Symbol.for("react.consumer"),fS=Symbol.for("react.context"),dS=Symbol.for("react.forward_ref"),hS=Symbol.for("react.suspense"),mS=Symbol.for("react.memo"),Fh=Symbol.for("react.lazy"),pS=Symbol.for("react.activity"),qh=Symbol.iterator;function gS(e){return e===null||typeof e!="object"?null:(e=qh&&e[qh]||e["@@iterator"],typeof e=="function"?e:null)}var Vh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kh=Object.assign,Qh={};function vi(e,t,n){this.props=e,this.context=t,this.refs=Qh,this.updater=n||Vh}vi.prototype.isReactComponent={},vi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},vi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Gh(){}Gh.prototype=vi.prototype;function yu(e,t,n){this.props=e,this.context=t,this.refs=Qh,this.updater=n||Vh}var vu=yu.prototype=new Gh;vu.constructor=yu,kh(vu,vi.prototype),vu.isPureReactComponent=!0;var $h=Array.isArray;function bu(){}var xe={H:null,A:null,T:null,S:null},Kh=Object.prototype.hasOwnProperty;function Su(e,t,n){var a=n.ref;return{$$typeof:gu,type:e,key:t,ref:a!==void 0?a:null,props:n}}function yS(e,t){return Su(e.type,t,e.props)}function Eu(e){return typeof e=="object"&&e!==null&&e.$$typeof===gu}function vS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Yh=/\/+/g;function Cu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?vS(""+e.key):t.toString(36)}function bS(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(bu,bu):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function bi(e,t,n,a,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var r=!1;if(e===null)r=!0;else switch(l){case"bigint":case"string":case"number":r=!0;break;case"object":switch(e.$$typeof){case gu:case rS:r=!0;break;case Fh:return r=e._init,bi(r(e._payload),t,n,a,i)}}if(r)return i=i(e),r=a===""?"."+Cu(e,0):a,$h(i)?(n="",r!=null&&(n=r.replace(Yh,"$&/")+"/"),bi(i,t,n,"",function(c){return c})):i!=null&&(Eu(i)&&(i=yS(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(Yh,"$&/")+"/")+r)),t.push(i)),1;r=0;var s=a===""?".":a+":";if($h(e))for(var o=0;o<e.length;o++)a=e[o],l=s+Cu(a,o),r+=bi(a,t,n,l,i);else if(o=gS(e),typeof o=="function")for(e=o.call(e),o=0;!(a=e.next()).done;)a=a.value,l=s+Cu(a,o++),r+=bi(a,t,n,l,i);else if(l==="object"){if(typeof e.then=="function")return bi(bS(e),t,n,a,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return r}function ts(e,t,n){if(e==null)return e;var a=[],i=0;return bi(e,a,"","",function(l){return t.call(n,l,i++)}),a}function SS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ph=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ES={map:ts,forEach:function(e,t,n){ts(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ts(e,function(){t++}),t},toArray:function(e){return ts(e,function(t){return t})||[]},only:function(e){if(!Eu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Activity=pS,ne.Children=ES,ne.Component=vi,ne.Fragment=sS,ne.Profiler=uS,ne.PureComponent=yu,ne.StrictMode=oS,ne.Suspense=hS,ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xe,ne.__COMPILER_RUNTIME={__proto__:null,c:function(e){return xe.H.useMemoCache(e)}},ne.cache=function(e){return function(){return e.apply(null,arguments)}},ne.cacheSignal=function(){return null},ne.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=kh({},e.props),i=e.key;if(t!=null)for(l in t.key!==void 0&&(i=""+t.key),t)!Kh.call(t,l)||l==="key"||l==="__self"||l==="__source"||l==="ref"&&t.ref===void 0||(a[l]=t[l]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var r=Array(l),s=0;s<l;s++)r[s]=arguments[s+2];a.children=r}return Su(e.type,i,a)},ne.createContext=function(e){return e={$$typeof:fS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:cS,_context:e},e},ne.createElement=function(e,t,n){var a,i={},l=null;if(t!=null)for(a in t.key!==void 0&&(l=""+t.key),t)Kh.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(i[a]=t[a]);var r=arguments.length-2;if(r===1)i.children=n;else if(1<r){for(var s=Array(r),o=0;o<r;o++)s[o]=arguments[o+2];i.children=s}if(e&&e.defaultProps)for(a in r=e.defaultProps,r)i[a]===void 0&&(i[a]=r[a]);return Su(e,l,i)},ne.createRef=function(){return{current:null}},ne.forwardRef=function(e){return{$$typeof:dS,render:e}},ne.isValidElement=Eu,ne.lazy=function(e){return{$$typeof:Fh,_payload:{_status:-1,_result:e},_init:SS}},ne.memo=function(e,t){return{$$typeof:mS,type:e,compare:t===void 0?null:t}},ne.startTransition=function(e){var t=xe.T,n={};xe.T=n;try{var a=e(),i=xe.S;i!==null&&i(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(bu,Ph)}catch(l){Ph(l)}finally{t!==null&&n.types!==null&&(t.types=n.types),xe.T=t}},ne.unstable_useCacheRefresh=function(){return xe.H.useCacheRefresh()},ne.use=function(e){return xe.H.use(e)},ne.useActionState=function(e,t,n){return xe.H.useActionState(e,t,n)},ne.useCallback=function(e,t){return xe.H.useCallback(e,t)},ne.useContext=function(e){return xe.H.useContext(e)},ne.useDebugValue=function(){},ne.useDeferredValue=function(e,t){return xe.H.useDeferredValue(e,t)},ne.useEffect=function(e,t){return xe.H.useEffect(e,t)},ne.useEffectEvent=function(e){return xe.H.useEffectEvent(e)},ne.useId=function(){return xe.H.useId()},ne.useImperativeHandle=function(e,t,n){return xe.H.useImperativeHandle(e,t,n)},ne.useInsertionEffect=function(e,t){return xe.H.useInsertionEffect(e,t)},ne.useLayoutEffect=function(e,t){return xe.H.useLayoutEffect(e,t)},ne.useMemo=function(e,t){return xe.H.useMemo(e,t)},ne.useOptimistic=function(e,t){return xe.H.useOptimistic(e,t)},ne.useReducer=function(e,t,n){return xe.H.useReducer(e,t,n)},ne.useRef=function(e){return xe.H.useRef(e)},ne.useState=function(e){return xe.H.useState(e)},ne.useSyncExternalStore=function(e,t,n){return xe.H.useSyncExternalStore(e,t,n)},ne.useTransition=function(){return xe.H.useTransition()},ne.version="19.2.6",Hh.exports=ne;var S=Hh.exports;const ie=Ft(S),Xh=Wt({__proto__:null,default:ie},[S]);function I(...e){return e.filter(Boolean).join(" ")}const CS=["accept","accept-charset","accesskey","action","alt","async","autocomplete","autofocus","autoplay","charset","checked","cite","class","cols","colspan","content","contenteditable","controls","coords","data","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","headers","height","hidden","high","href","hreflang","http-equiv","id","ismap","kind","label","lang","list","loop","low","max","maxlength","media","method","min","multiple","muted","name","novalidate","onabort","onafterprint","onbeforeprint","onbeforeunload","onblur","oncanplay","oncanplaythrough","onchange","onclick","oncontextmenu","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onoffline","ononline","onpageshow","onpaste","onpause","onplay","onplaying","onprogress","onratechange","onreset","onresize","onscroll","onsearch","onseeked","onseeking","onselect","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","onunload","onvolumechange","onwaiting","onwheel","open","optimum","pattern","placeholder","poster","preload","readonly","rel","required","reversed","role","rows","rowspan","sandbox","scope","selected","shape","size","sizes","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","type","usemap","value","width","wrap"],wS=["children","dangerouslysetinnerhtml","oncopy","oncopycapture","oncut","oncutcapture","onpaste","onpastecapture","oncompositionend","oncompositionendcapture","oncompositionstart","oncompositionstartcapture","oncompositionupdate","oncompositionupdatecapture","onfocus","onfocuscapture","onblur","onblurcapture","onchange","onchangecapture","onbeforeinput","onbeforeinputcapture","oninput","oninputcapture","onreset","onresetcapture","onsubmit","onsubmitcapture","oninvalid","oninvalidcapture","onload","onloadcapture","onerror","onerrorcapture","onkeydown","onkeydowncapture","onkeypress","onkeypresscapture","onkeyup","onkeyupcapture","onabort","onabortcapture","oncanplay","oncanplaycapture","oncanplaythrough","oncanplaythroughcapture","ondurationchange","ondurationchangecapture","onemptied","onemptiedcapture","onencrypted","onencryptedcapture","onended","onendedcapture","onloadeddata","onloadeddatacapture","onloadedmetadata","onloadedmetadatacapture","onloadstart","onloadstartcapture","onpause","onpausecapture","onplay","onplaycapture","onplaying","onplayingcapture","onprogress","onprogresscapture","onratechange","onratechangecapture","onseeked","onseekedcapture","onseeking","onseekingcapture","onstalled","onstalledcapture","onsuspend","onsuspendcapture","ontimeupdate","ontimeupdatecapture","onvolumechange","onvolumechangecapture","onwaiting","onwaitingcapture","onclick","onclickcapture","oncontextmenu","oncontextmenucapture","ondoubleclick","ondoubleclickcapture","ondrag","ondragcapture","ondragend","ondragendcapture","ondragenter","ondragentercapture","ondragexit","ondragexitcapture","ondragleave","ondragleavecapture","ondragover","ondragovercapture","ondragstart","ondragstartcapture","ondrop","ondropcapture","onmousedown","onmousedowncapture","onmouseenter","onmouseleave","onmousemove","onmousemovecapture","onmouseout","onmouseoutcapture","onmouseover","onmouseovercapture","onmouseup","onmouseupcapture","onselect","onselectcapture","ontouchcancel","ontouchcancelcapture","ontouchend","ontouchendcapture","ontouchmove","ontouchmovecapture","ontouchstart","ontouchstartcapture","onpointerdown","onpointerdowncapture","onpointermove","onpointermovecapture","onpointerup","onpointerupcapture","onpointercancel","onpointercancelcapture","onpointerenter","onpointerentercapture","onpointerleave","onpointerleavecapture","onpointerover","onpointerovercapture","onpointerout","onpointeroutcapture","ongotpointercapture","ongotpointercapturecapture","onlostpointercapture","onlostpointercapturecapture","onscroll","onscrollcapture","onwheel","onwheelcapture","onanimationstart","onanimationstartcapture","onanimationend","onanimationendcapture","onanimationiteration","onanimationiterationcapture","ontransitionend","ontransitionendcapture"],_S=Array.from(new Set(CS.concat(wS))).reduce((e,t)=>({...e,[t]:!0}),{});function Ae(e){const t=Object.keys(e),n={};for(const a of t){const i=a.toLocaleLowerCase();(_S[i]||i.startsWith("data-")||i.startsWith("aria-"))&&(n[a]=e[a])}return n}const TS=/Edge?\/(79|[89]\d|\d{3,})\.\d+(\.\d+|)|Firefox\/(7[2-9]|[89]\d|\d{3,})\.\d+(\.\d+|)|Chrom(ium|e)\/([89]\d|\d{3,})\.\d+(\.\d+|)|(Maci|X1{2}).+ Version\/(13\.([1-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})\.\d+)([,.]\d+|)( \(\w+\)|)( Mobile\/\w+|) Safari\/|Chrome.+OPR\/(6[6-9]|[7-9]\d|\d{3,})\.\d+\.\d+|(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS|CPU iPad OS)[ +]+(12[._]([2-9]|\d{2,})|(1[3-9]|[2-9]\d|\d{3,})[._]\d+)([._]\d+|)|Android:?[ /-](12[1-9]|1[3-9]\d|[2-9]\d{2}|\d{4,})(\.\d+|)(\.\d+|)|Mobile Safari.+OPR\/(7[3-9]|[89]\d|\d{3,})\.\d+\.\d+|Android.+Firefox\/(12[2-9]|1[3-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Android.+Chrom(ium|e)\/(12[1-9]|1[3-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Android.+(UC? ?Browser|UCWEB|U3)[ /]?(15\.([5-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+)\.\d+|SamsungBrowser\/(1{2}\.([1-9]|\d{2,})|(1[2-9]|[2-9]\d|\d{3,})\.\d+)|Android.+MQ{2}Browser\/(13(\.([1-9]|\d{2,})|)|(1[4-9]|[2-9]\d|\d{3,})(\.\d+|))(\.\d+|)|baidubrowser[\s/](13(\.(1[89]|[2-9]\d|\d{3,})|)|(1[4-9]|[2-9]\d|\d{3,})(\.\d+|))(\.\d+|)|K[Aa][Ii]OS\/(2\.([5-9]|\d{2,})|([3-9]|\d{2,})\.\d+)(\.\d+|)/,Ih=800,Zh=1500,wu=window.navigator.userAgent.toLowerCase(),pe=e=>wu.indexOf(e)!==-1,Jh=pe("opera"),Wh=pe("fxios"),em=pe("firefox"),tm=pe("safari"),AS=!!!document.documentMode&&!!window.StyleMedia,nm=pe("crios"),_u=pe("chrome")||nm,OS=pe("chromium"),xS=pe("brave"),MS=(_u||Jh)&&!!window.CSS,am=()=>AS?"edge":nm?"crios":_u?"chrome":OS?"chromium":Jh?"opera":MS?"blink":Wh?"fxios":em?"firefox":tm?"safari":"",RS=()=>{const e=new RegExp(`${am()}/([0-9.]+)`),t=wu.match(e);if(tm&&!_u&&!em&&!Wh&&!xS){const n=new RegExp("version/([0-9.]+)"),a=wu.match(n);return parseInt(a[1].split(".").join("").padEnd(4,"0"))}return t.length>0?parseInt(t[1]):0},NS=()=>TS.test(navigator.userAgent),ns=()=>pe("windows"),im=()=>!ns()&&pe("iphone"),lm=()=>pe("ipod"),rm=()=>pe("ipad"),sm=()=>im()||lm()||rm(),om=()=>!ns()&&pe("android"),DS=()=>om()&&pe("mobile"),zS=()=>om()&&!pe("mobile"),um=()=>pe("blackberry")||pe("bb10")||pe("rim"),US=()=>um()&&!pe("tablet"),LS=()=>um()&&pe("tablet"),cm=()=>ns()&&pe("phone"),BS=()=>ns()&&pe("touch")&&!cm(),fm=()=>(pe("(mobile;")||pe("(tablet;"))&&pe("; rv:"),jS=()=>fm()&&pe("mobile"),HS=()=>fm()&&pe("tablet"),FS=()=>pe("meego"),qS=()=>window.innerWidth<=Ih,VS=()=>window.innerWidth>Ih&&window.innerWidth<=Zh,kS=()=>window.innerWidth>Zh,dm=()=>DS()||im()||lm()||cm()||US()||jS()||FS(),Tu=()=>qS()||dm(),hm=()=>rm()||zS()||LS()||BS()||HS(),mm=()=>VS()||hm(),QS=()=>kS()||!mm()&&!Tu(),GS=()=>!!["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","roku","pov_tv","hbbtv","ce-html"].find(t=>pe(t)),$S=()=>window.innerHeight/window.innerWidth>1,KS=()=>window.innerHeight/window.innerWidth<1,YS=()=>window.innerWidth,PS=()=>window.innerHeight;function Au(){return{isDesktop:QS(),isPhone:Tu(),isDevicePhone:dm(),isTablet:mm(),isDeviceTablet:hm(),isTelevision:GS(),isPortrait:$S(),isLandscape:KS(),browser:{name:am(),version:RS(),isSupported:NS()},height:PS(),width:YS()}}const XS=({onInit:e=n=>null,onResize:t=n=>null})=>{const[n,a]=S.useState(Au()),i=S.useRef(null),l=S.useCallback(()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{const r=Au();a(r),t(r)},300)},[t]);return S.useEffect(()=>(e(n),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)),[l,t,e,n]),n},pm={device:Au()},Tt=S.createContext(pm),Ou=()=>"https://spa-packages.siteground.com/styleguide-assets",xu={SVG:Ou()+"/svg",DATA:Ou()+"/data",FONTS:Ou()+"/fonts"},Xe={All:-1,TRACE:0,DEBUG:1,DEPRECATION:2,INFO:3,WARN:4,ERROR:5,SILENT:6},IS={config:{dataAssetsPath:xu.DATA,svgAssetsPath:xu.SVG,fontsAssetsPath:xu.FONTS},logLevel:Xe.All},gm=e=>{const{context:t={},onInit:n,onResize:a,children:i,...l}=e,r=XS({onInit:n,onResize:a}),s={...pm,...IS,device:r,...t};return S.createElement(Tt.Provider,{value:s},S.createElement("div",{...s.bootstrapProps,...Ae(l)},i))},ZS=({children:e,"data-e2e":t="sg-bootstrap","data-component":n="sg-bootstrap",...a})=>S.createElement(gm,{"data-e2e":t,"data-component":n,...a},e),JS=e=>{const{context:t,children:n,fontsInjectTarget:a,...i}=e,l=t.config.fontsAssetsPath;return S.useEffect(()=>{const r=document.createElement("style"),s=a||document.head,o=`

/* latin-ext */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("${l}/pxiEyp8kv8JHgFVrJJnecmNE.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("${l}/pxiEyp8kv8JHgFVrJJfecg.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("${l}/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("${l}/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("${l}/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("${l}/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("${l}/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("${l}/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("${l}/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2") format("woff2");
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("${l}/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("${l}/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304,
    U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("${l}/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("${l}/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
    `;return r.appendChild(document.createTextNode(o)),s.appendChild(r),()=>{s.removeChild(r)}},[l,a]),S.createElement(gm,{context:t,...i},n)};function ym(e,t){if(typeof t=="string")return{top:t,right:t,bottom:t,left:t};const[n,a,i,l]=t;switch(t.length){case 2:return{top:n,right:a,bottom:n,left:a};case 3:return{top:n,right:a,bottom:i,left:a};case 4:return{top:n,right:a,bottom:i,left:l};default:throw new Error(`The array with ${e} must contain max 4 settings [top, right, bottom, left]`)}}const Yn=e=>{if(!e)return null;const t=ym("padding",e);return I("sg-with-padding",t.top&&`sg-with-padding--padding-top-${t.top}`,t.right&&`sg-with-padding--padding-right-${t.right}`,t.bottom&&`sg-with-padding--padding-bottom-${t.bottom}`,t.left&&`sg-with-padding--padding-left-${t.left}`)},vm=e=>{const{border:t="default",overflow:n="visible",padding:a="medium",className:i,children:l,tabIndex:r,"data-e2e":s="container","data-component":o="container",ref:c,...u}=e,d=I("sg-container",`sg-container--overflow-${n}`,`sg-container--border-${t}`,Yn(a),i);return S.createElement("div",{ref:c,className:d,"data-e2e":s,"data-component":o,tabIndex:r,...Ae(u)},l)};vm.displayName="Container";var bm={exports:{}},za={},Mu={},Pn={},Sm;function Ru(){if(Sm)return Pn;Sm=1,Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.arrayIncludes=i,Pn.endsWith=t,Pn.isRealNaN=a,Pn.startsWith=e,Pn.stringIncludes=n;function e(l,r,s){return l.substr(s||0,r.length)===r}function t(l,r,s){var o=(s||l.length)-r.length,c=l.lastIndexOf(r,o);return c!==-1&&c===o}function n(l,r,s){return l.indexOf(r,s||0)!==-1}function a(l){return typeof l=="number"&&isNaN(l)}function i(l,r,s){var o=l.length;if(o===0)return!1;for(var c=s|0,u=a(r),d=c>=0?c:o+c;d<o;){var f=l[d++];if(f===r||u&&a(f))return!0}return!1}return Pn}var Em;function WS(){return Em||(Em=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.copyPosition=l,e.default=r,e.feedPosition=n,e.findTextEnd=c,e.isWhitespaceChar=b,e.jumpPosition=a,e.lex=s,e.lexComment=d,e.lexSkipTag=y,e.lexTag=f,e.lexTagAttributes=C,e.lexTagName=E,e.lexText=u,e.makeInitialPosition=i;var t=Ru();function n(h,m,v){for(var _=h.index,w=h.index=_+v,x=_;x<w;x++){var T=m.charAt(x);T===`
`?(h.line++,h.column=0):h.column++}}function a(h,m,v){var _=v-h.index;return n(h,m,_)}function i(){return{index:0,column:0,line:0}}function l(h){return{index:h.index,line:h.line,column:h.column}}function r(h,m){var v={str:h,options:m,position:i(),tokens:[]};return s(v),v.tokens}function s(h){for(var m=h.str,v=h.options.childlessTags,_=m.length;h.position.index<_;){var w=h.position.index;if(u(h),h.position.index===w){var x=(0,t.startsWith)(m,"!--",w+1);if(x)d(h);else{var T=f(h),A=T.toLowerCase();(0,t.arrayIncludes)(v,A)&&y(T,h)}}}}var o=/[A-Za-z0-9]/;function c(h,m){for(;;){var v=h.indexOf("<",m);if(v===-1)return v;var _=h.charAt(v+1);if(_==="/"||_==="!"||o.test(_))return v;m=v+1}}function u(h){var m="text",v=h.str,_=h.position,w=c(v,_.index);if(w!==_.index){w===-1&&(w=v.length);var x=l(_),T=v.slice(_.index,w);a(_,v,w);var A=l(_);h.tokens.push({type:m,content:T,position:{start:x,end:A}})}}function d(h){var m=h.str,v=h.position,_=l(v);n(v,m,4);var w=m.indexOf("-->",v.index),x=w+3;w===-1&&(w=x=m.length);var T=m.slice(v.index,w);a(v,m,x),h.tokens.push({type:"comment",content:T,position:{start:_,end:l(v)}})}function f(h){var m=h.str,v=h.position;{var _=m.charAt(v.index+1),w=_==="/",x=l(v);n(v,m,w?2:1),h.tokens.push({type:"tag-start",close:w,position:{start:x}})}var T=E(h);C(h);{var A=m.charAt(v.index),O=A==="/";n(v,m,O?2:1);var R=l(v);h.tokens.push({type:"tag-end",close:O,position:{end:R}})}return T}var p=/\s/;function b(h){return p.test(h)}function E(h){for(var m=h.str,v=h.position,_=m.length,w=v.index;w<_;){var x=m.charAt(w),T=!(b(x)||x==="/"||x===">");if(T)break;w++}for(var A=w+1;A<_;){var O=m.charAt(A),R=!(b(O)||O==="/"||O===">");if(!R)break;A++}a(v,m,A);var D=m.slice(w,A);return h.tokens.push({type:"tag",content:D}),D}function C(h){for(var m=h.str,v=h.position,_=h.tokens,w=v.index,x=null,T=w,A=[],O=m.length;w<O;){var R=m.charAt(w);if(x){var D=R===x;D&&(x=null),w++;continue}var z=R==="/"||R===">";if(z){w!==T&&A.push(m.slice(T,w));break}var H=b(R);if(H){w!==T&&A.push(m.slice(T,w)),T=w+1,w++;continue}var N=R==="'"||R==='"';if(N){x=R,w++;continue}w++}a(v,m,w);for(var L=A.length,F="attribute",q=0;q<L;q++){var G=A[q],Y=G.indexOf("=")===-1;if(Y){var W=A[q+1];if(W&&(0,t.startsWith)(W,"=")){if(W.length>1){var fe=G+W;_.push({type:F,content:fe}),q+=1;continue}var X=A[q+2];if(q+=1,X){var Q=G+"="+X;_.push({type:F,content:Q}),q+=1;continue}}}if((0,t.endsWith)(G,"=")){var $=A[q+1];if($&&!(0,t.stringIncludes)($,"=")){var M=G+$;_.push({type:F,content:M}),q+=1;continue}var U=G.slice(0,-1);_.push({type:F,content:U});continue}_.push({type:F,content:G})}}var g=[].push;function y(h,m){for(var v=m.str,_=m.position,w=m.tokens,x=h.toLowerCase(),T=v.length,A=_.index;A<T;){var O=v.indexOf("</",A);if(O===-1){u(m);break}var R=l(_);a(R,v,O);var D={str:v,position:R,tokens:[]},z=f(D);if(x!==z.toLowerCase()){A=D.position.index;continue}if(O!==_.index){var H=l(_);a(_,v,O),w.push({type:"text",content:v.slice(H.index,O),position:{start:H,end:l(_)}})}g.apply(w,D.tokens),a(_,v,D.position.index);break}}}(Mu)),Mu}var Nu={},Cm;function e2(){return Cm||(Cm=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,e.hasTerminalParent=a,e.parse=l,e.rewindStack=i;var t=Ru();function n(r,s){var o={tagName:null,children:[]},c={tokens:r,options:s,cursor:0,stack:[o]};return l(c),o.children}function a(r,s,o){var c=o[r];if(c)for(var u=s.length-1;u>=0;){var d=s[u].tagName;if(d===r)break;if((0,t.arrayIncludes)(c,d))return!0;u--}return!1}function i(r,s,o,c){r[s].position.end=c;for(var u=s+1,d=r.length;u<d;u++)r[u].position.end=o;r.splice(s)}function l(r){for(var s=r.tokens,o=r.options,c=r.stack,u=c[c.length-1].children,d=s.length,f=r.cursor;f<d;){var p=s[f];if(p.type!=="tag-start"){u.push(p),f++;continue}var b=s[++f];f++;var E=b.content.toLowerCase();if(p.close){for(var C=c.length,g=!1;--C>-1;)if(c[C].tagName===E){g=!0;break}for(;f<d;){var y=s[f];if(y.type!=="tag-end")break;f++}if(g){i(c,C,p.position.start,s[f-1].position.end);break}else continue}var h=(0,t.arrayIncludes)(o.closingTags,E),m=h;if(m){var v=o.closingTagAncestorBreakers;m=!a(E,c,v)}if(m)for(var _=c.length-1;_>0;){if(E===c[_].tagName){i(c,_,p.position.start,p.position.start);var w=_-1;u=c[w].children;break}_=_-1}for(var x=[],T=void 0;f<d&&(T=s[f],T.type!=="tag-end");)x.push(T.content),f++;f++;var A=[],O={start:p.position.start,end:T.position.end},R={type:"element",tagName:b.content,attributes:x,children:A,position:O};u.push(R);var D=!(T.close||(0,t.arrayIncludes)(o.voidTags,E));if(D){var z=c.push({tagName:E,children:A,position:O}),H={tokens:s,options:o,cursor:f,stack:c};l(H),f=H.cursor;var N=c.length===z;N&&(R.position.end=s[f-1].position.end)}}r.cursor=f}}(Nu)),Nu}var Ua={},wm;function t2(){if(wm)return Ua;wm=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.format=n,Ua.formatAttributes=a,Ua.splitHead=e,Ua.unquote=t;function e(i,l){var r=i.indexOf(l);return r===-1?[i]:[i.slice(0,r),i.slice(r+l.length)]}function t(i){var l=i.charAt(0),r=i.length-1,s=l==='"'||l==="'";return s&&l===i.charAt(r)?i.slice(1,r):i}function n(i,l){return i.map(function(r){var s=r.type,o=s==="element"?{type:s,tagName:r.tagName.toLowerCase(),attributes:a(r.attributes),children:n(r.children,l)}:{type:s,content:r.content};return l.includePositions&&(o.position=r.position),o})}function a(i){return i.map(function(l){var r=e(l.trim(),"="),s=r[0],o=typeof r[1]=="string"?t(r[1]):null;return{key:s,value:o}})}return Ua}var Du={},_m;function n2(){return _m||(_m=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.formatAttributes=n,e.toHTML=a;var t=Ru();function n(l,r){return l.reduce(function(s,o){var c=o.key,u=o.value;if(u===null)return"".concat(s," ").concat(c);var d;if(r){var f=u.indexOf('"')!==-1;d=f?"'":'"'}else{var p=u.indexOf("'")!==-1;d=p?'"':"'"}return"".concat(s," ").concat(c,"=").concat(d).concat(u).concat(d)},"")}function a(l,r){return l.map(function(s){if(s.type==="text")return s.content;if(s.type==="comment")return"<!--".concat(s.content,"-->");var o=s.tagName,c=s.attributes,u=s.children,d=(0,t.arrayIncludes)(r.voidTags,o.toLowerCase());return d?"<".concat(o).concat(n(c,r.preferDoubleQuoteAttributes),">"):"<".concat(o).concat(n(c,r.preferDoubleQuoteAttributes),">").concat(a(u,r),"</").concat(o,">")}).join("")}var i={toHTML:a};e.default=i}(Du)),Du}var en={},Tm;function a2(){if(Tm)return en;Tm=1,Object.defineProperty(en,"__esModule",{value:!0}),en.voidTags=en.closingTags=en.closingTagAncestorBreakers=en.childlessTags=void 0;var e=["style","script","template"];en.childlessTags=e;var t=["html","head","body","p","dt","dd","li","option","thead","th","tbody","tr","td","tfoot","colgroup"];en.closingTags=t;var n={li:["ul","ol","menu"],dt:["dl"],dd:["dl"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table"],td:["table"]};en.closingTagAncestorBreakers=n;var a=["!doctype","area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];return en.voidTags=a,en}var Am;function i2(){if(Am)return za;Am=1,Object.defineProperty(za,"__esModule",{value:!0}),za.parse=s,za.parseDefaults=void 0,za.stringify=o;var e=l(WS()),t=l(e2()),n=t2(),a=n2(),i=a2();function l(c){return c&&c.__esModule?c:{default:c}}var r={voidTags:i.voidTags,closingTags:i.closingTags,childlessTags:i.childlessTags,closingTagAncestorBreakers:i.closingTagAncestorBreakers,includePositions:!1,preferDoubleQuoteAttributes:!1};za.parseDefaults=r;function s(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r,d=(0,e.default)(c,u),f=(0,t.default)(d,u);return(0,n.format)(f,u)}function o(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r;return(0,a.toHTML)(c,u)}return za}(function(e,t){(function(a,i){e.exports=i(S,i2())})(typeof self<"u"?self:_t,function(n,a){return function(i){var l={};function r(s){if(l[s])return l[s].exports;var o=l[s]={i:s,l:!1,exports:{}};return i[s].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=i,r.c=l,r.d=function(s,o,c){r.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:c})},r.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return r.d(o,"a",o),o},r.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},r.p="",r(r.s=0)}([function(i,l,r){Object.defineProperty(l,"__esModule",{value:!0});var s=Object.assign||function(g){for(var y=1;y<arguments.length;y++){var h=arguments[y];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(g[m]=h[m])}return g},o=function(){function g(y,h){for(var m=0;m<h.length;m++){var v=h[m];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(y,v.key,v)}}return function(y,h,m){return h&&g(y.prototype,h),m&&g(y,m),y}}(),c=r(1),u=b(c),d=r(2),f=r(3),p=b(f);function b(g){return g&&g.__esModule?g:{default:g}}function E(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}var C=function(){function g(y){E(this,g),this.config=s({},g.defaultConfig,y),this.tagId=0,this.cache=[],this.generateDom=this.generateDom.bind(this),this.transform=this.transform.bind(this),this.getCache=this.getCache.bind(this),this.formatAttributes=this.formatAttributes.bind(this)}return o(g,[{key:"formatAttributes",value:function(h){var m=this,v={};return h.filter(function(_){var w=_.key;return m.config.ALLOWED_ATTRIBUTES.includes(w)}).forEach(function(_){var w=_.key,x=_.value;(0,p.default)(w),v[w]=x}),v}},{key:"generateDom",value:function(h){var m=h.type,v=m===void 0?"":m,_=h.children,w=_===void 0?[]:_,x=h.content,T=x===void 0?"":x,A=h.tagName,O=A===void 0?"":A,R=h.attributes,D=R===void 0?[]:R,z=this.config,H=z.ALLOWED_TAGS,N=z.KEY_NAME,L=w.length?w.map(this.generateDom):T;if(v==="element"&&H.includes(O)){(0,p.default)(O);var F=s({},this.formatAttributes(D),{key:""+N+this.tagId++});return L?u.default.createElement(O,F,L):u.default.createElement(O,F)}return L}},{key:"getCache",value:function(h){return this.cache.find(function(m){return m.str===h})}},{key:"transform",value:function(h){var m=this.getCache(h);if(m)return m.dom;var v=(0,d.parse)(h).map(this.generateDom);return this.cache.push({str:h,dom:v}),v}}]),g}();C.defaultConfig={ALLOWED_TAGS:["strong","a"],ALLOWED_ATTRIBUTES:["href"],KEY_NAME:"ssih-tag-"},l.default=C},function(i,l){i.exports=n},function(i,l){i.exports=a},function(i,l,r){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(c){c in o.attributes&&console.warn(o.attributes[c].replace("%s","attribute "+c)),c in o.tags&&console.warn(o.tags[c].replace("%s","tag <"+c+" />"))};var s="Be careful with the use of %s, it presents a potential XSS risk",o=l.messages={attributes:{ontransitionend:s,ontransitioncancel:s,onblur:s,ondrag:s,ondrop:s},tags:{script:s,style:s}}}])})})(bm);var l2=bm.exports;const r2=Ft(l2),s2=(e,t=[],n=[])=>e?new r2({ALLOWED_TAGS:["em","strong","b","br","span",...t],ALLOWED_ATTRIBUTES:["class","className",...n]}).transform(e):"",Om=e=>{if(!e)return null;const t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left||t.x,right:t.top||t.y,top:t.top,width:t.width}},xm=200,o2=xm,u2=(e,t)=>{const n=S.useRef(!1),a=S.useRef(null),i=S.useRef(!1),l=d=>{n.current=!0,i.current=!1,a.current&&(clearTimeout(a.current),a.current=null),a.current=setTimeout(()=>{i.current?t(d):e(d),a.current=null},xm)},r=d=>{i.current=!0,a.current&&(clearTimeout(a.current),a.current=null,t(d))},s=S.useRef(!1),o=S.useRef(null);return{handleTouchStart:l,handleTouchEnd:r,handleClickStart:d=>{n.current||d.button===2||(s.current=!1,o&&clearTimeout(o.current),o.current=setTimeout(()=>{s.current?t(d):e(d),o.current=null},o2))},handleClickEnd:d=>{n.current||d.button===2||(s.current=!0,o.current&&(clearTimeout(o.current),o.current=null,t(d)))}}},zu=(e,t)=>{if(!e)return null;const n=ym("border",e);return I("sg-with-border",t&&`sg-with-border--radius-${t}`,n.top&&`sg-with-border--border-top-${n.top}`,n.right&&`sg-with-border--border-right-${n.right}`,n.bottom&&`sg-with-border--border-bottom-${n.bottom}`,n.left&&`sg-with-border--border-left-${n.left}`)},cn=({ref:e,...t})=>{const{className:n,gutter:a,gap:i,grow:l,align:r,alignSelf:s,direction:o,expand:c,justify:u,wrap:d,shrink:f,children:p,padding:b,border:E,borderRadius:C,...g}=t,y=I("sg-flex",r&&`sg-flex--align-${r}`,s&&`sg-flex--align-self-${s}`,a&&`sg-flex--gutter-${a}`,i&&`sg-flex--gap-${i}`,o&&`sg-flex--direction-${o}`,c&&"sg-flex--expanded",u&&`sg-flex--justify-${u}`,d&&`sg-flex--flex-wrap-${d}`,f&&`sg-flex--shrink-${f}`,l&&`sg-flex--grow-${l}`,Yn(b),zu(E,C),n);return S.createElement("div",{className:y,ref:e,...Ae(g)},p)},Uu="navigation",Mm=()=>{window.dispatchEvent(new Event(Uu))},Xn=(e,t)=>{const n=t&&t.triggerNavigationEvent!==void 0?t.triggerNavigationEvent:!0;if(e){if(n&&Mm(),t!=null&&t.isDefaultPrevented){e.focus();return}try{e.focus({preventScroll:!0})}catch{console.warn("Invalid preventScroll option not supported"),e.focus()}}},c2=e=>{e.preventDefault(),e.stopPropagation(),Mm()},f2=["A","BUTTON","INPUT","TEXTAREA"],d2=e=>{const t=e.getAttribute("disabled"),n=e.getAttribute("data-disabled");return t===""||t==="true"||n===""||n==="true"},Lu=e=>{const t=f2.includes(e.nodeName),n=e.getAttribute("tabindex")!==null;return(t||n)&&!d2(e)},h2={event:null,includeChildren:!1,isDirectionForward:!0,onComponentFiltering:()=>!0,onSuccessCallback:()=>!0},Cn=e=>{const{event:t,includeChildren:n,startingElement:a=document.activeElement,isDirectionForward:i,onComponentFiltering:l,onSuccessCallback:r}={...h2,...e},s=i?1:-1,u=Array.from(document.body.querySelectorAll("*")).filter(p=>p===a?!0:p.getAttribute("data-component")&&Lu(p)&&l(p)).filter(p=>a===p||n?!0:a.contains(p)===!1),d=u.findIndex(p=>p===a),f=u[d+s];f&&(f.focus(),c2(t),r(f))},Rm=e=>{const t=getComputedStyle(e);return!(t.display==="none"||t.visibility==="hidden")},Nm={isDirectionForward:!0},In=(e,{isDirectionForward:t}=Nm)=>{let n=null;if(!e)return n;let a=t?e.firstChild:e.lastChild;for(;a;){if(a.nodeType===1&&Rm(a)){if(Lu(a))return a;if(n=In(a,{isDirectionForward:t}),n)return n}a=t?a.nextSibling:a.previousSibling}return n},Dm=(e,{isDirectionForward:t}=Nm)=>{let n=t?e==null?void 0:e.firstElementChild:e==null?void 0:e.lastElementChild;for(;n;){if(Rm(n)){if(n.dataset.autofocus==="true"&&Lu(n))return n;const a=Dm(n,{isDirectionForward:t});if(a)return a}n=t?n.nextElementSibling:n.previousElementSibling}return null},we={UP:"ArrowUp",DOWN:"ArrowDown",LEFT:"ArrowLeft",RIGHT:"ArrowRight",ENTER:"Enter",ESCAPE:"Escape",TAB:"Tab",SPACE:" "},as=e=>e.key===we.TAB&&!e.shiftKey,is=e=>e.key===we.TAB&&e.shiftKey,{useEffect:m2,useRef:p2}=Xh,zm=({event:e,domRef:t,isDirectionForward:n})=>{const a=In(t,{isDirectionForward:!0}),i=In(t,{isDirectionForward:!1}),[l,r]=n?[a,i]:[i,a];r===document.activeElement&&(e.preventDefault(),e.stopPropagation(),Xn(l))},g2=({event:e,domRef:t})=>{const n=In(t,{isDirectionForward:!0}),a=In(t,{isDirectionForward:!1});switch(e.key){case we.RIGHT:case we.DOWN:return e.target===a?(e.preventDefault(),Xn(n,{isDefaultPrevented:!0})):Cn({event:e});case we.LEFT:case we.UP:return e.target===n?(e.preventDefault(),Xn(a,{isDefaultPrevented:!0})):Cn({event:e,isDirectionForward:!1})}},y2=({event:e,domRef:t,handleOnKeyDown:n,hasTabHandling:a,hasArrowHandling:i})=>{if(as(e)&&a)return zm({event:e,domRef:t,isDirectionForward:!0});if(is(e)&&a)return zm({event:e,domRef:t,isDirectionForward:!1});if(i)return g2({event:e,domRef:t});n&&n(e)},Bu=e=>{const{autoFocus:t=!0,children:n,className:a,handleOnKeyDown:i,tabIndex:l,hasTabHandling:r=!0,hasArrowHandling:s=!1,...o}=e,c=p2(null);return m2(()=>{if(!t)return;const u=Dm(c.current);if(u)Xn(u,{triggerNavigationEvent:!1});else{const d=In(c.current);Xn(d,{triggerNavigationEvent:!1})}},[t]),S.createElement("div",{ref:c,className:a,tabIndex:l,onKeyDown:u=>y2({event:u,domRef:c.current,handleOnKeyDown:i,hasTabHandling:r,hasArrowHandling:s}),...Ae(o)},n)};Bu.displayName="FocusScope";const ls=[],v2={addElementToFocusQ:e=>{ls.push(e)},removeSelfFromFocusQ:e=>{var t;const n=ls.findIndex(l=>l===e),a=ls.splice(n,1),i=(t=e.dataset)==null?void 0:t.focusLevelId;i&&ls.find(l=>{var r;return((r=l.dataset)==null?void 0:r.focusLevelId)===i})||a[0].focus()}},b2=S.createContext(v2),{useEffect:S2}=Xh,ju=()=>{const{addElementToFocusQ:e,removeSelfFromFocusQ:t}=S.useContext(b2);return S2(()=>{const n=document.activeElement;return e(n),()=>{t(n)}},[e,t]),null};ju.displayName="HandleModalFocus";const E2=["flex-start","center","flex-end","space-between","space-around"],C2=()=>E2;function w2(){const e=S.useContext(Tt);if(!e)throw new Error("useLogger must be used within a ContextProvider");const{logLevel:t}=e,n=(a,i)=>(...l)=>{t<=a&&console[i]("StyleGuide Log: ",...l)};return{trace:n(Xe.TRACE,"trace"),debug:n(Xe.DEBUG,"debug"),info:n(Xe.INFO,"info"),warn:n(Xe.WARN,"warn"),error:n(Xe.ERROR,"error"),deprecation:n(Xe.DEPRECATION,"warn"),assert:n(Xe.DEBUG,"assert"),clear:n(Xe.SILENT,"clear"),count:n(Xe.DEBUG,"count"),countReset:n(Xe.DEBUG,"countReset"),dir:n(Xe.DEBUG,"dir"),dirxml:n(Xe.DEBUG,"dirxml"),group:n(Xe.DEBUG,"group"),groupCollapsed:n(Xe.DEBUG,"groupCollapsed"),groupEnd:n(Xe.DEBUG,"groupEnd"),log:n(Xe.INFO,"log"),profile:n(Xe.DEBUG,"profile")}}const La=({ref:e,...t})=>{const{border:n,borderRadius:a,children:i,className:l,align:r,alignSelf:s="stretch",justify:o,justifyItems:c,autoflow:u="row",xs:d,sm:f,m:p,lg:b,gap:E="medium",autoFit:C,padding:g,...y}=t,h=w2(),m=I("sg-grid",`sg-grid--gap-${E}`,s&&`sg-grid--align-self-${s}`,u&&`sg-grid--autoflow-${u}`,d&&`sg-grid--xs-${d}`,f&&`sg-grid--sm-${f}`,p&&`sg-grid--m-${p}`,b&&`sg-grid--lg-${b}`,C&&"sg-grid--auto-fit",r&&`sg-grid--align-${r}`,o&&`sg-grid--justify-${o}`,Yn(g),c&&`sg-grid--justify-items-${c}`,zu(n,a),!!window.MSInputMethodContext&&!!document.documentMode&&"sg-grid--ie11",l);return C2().includes(c)&&h.deprecation("@deprecated - property justifyItems will stop accepting Justify type from v4.0.0. Use JustifyItems type instead."),S.createElement("div",{ref:e,className:m,...Ae(y)},i)};function Ba(e){if(e==null||typeof e!="object")return e;if(e instanceof Date){const t=new Date;return t.setTime(e.getTime()),t}if(e instanceof Array){const t=[];for(let n=0;n<e.length;n+=1)t[n]=Ba(e[n]);return t}if(e instanceof Object){if(e.$$typeof)return e;const t={};for(const n of Object.keys(e))Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=Ba(e[n]));return t}}function _2(e,t){const n=localStorage.getItem(t),a=JSON.stringify(e),i=n?JSON.parse(n):{};if(n===null){localStorage.setItem(t,a);return}for(const l in e)i[l]<e[l]&&localStorage.removeItem(l);n!==a&&localStorage.setItem(t,a)}function rs(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,a,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(a=n;a--!==0;)if(!rs(e[a],t[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[a]))return!1;for(a=n;a--!==0;){const l=i[a];if(!rs(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}const T2=18,A2=12,ss="sg-keyboard",Um="material/",O2=()=>document.querySelector("body").classList.contains(ss);let Lm=0;const os=(e="sg")=>(Lm++,`${e}${Lm}`),us=({target:e,property:t,value:n})=>{try{e.style[t]=n}catch{e.setAttribute(t,n),e.setAttribute("style",`${e.getAttribute("style")};${t}:${n}`)}};var Bm={exports:{}},ut={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var x2=S;function jm(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Zn(){}var ct={d:{f:Zn,r:function(){throw Error(jm(522))},D:Zn,C:Zn,L:Zn,m:Zn,X:Zn,S:Zn,M:Zn},p:0,findDOMNode:null},M2=Symbol.for("react.portal");function R2(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:M2,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var El=x2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function cs(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ct,ut.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(jm(299));return R2(e,t,null,n)},ut.flushSync=function(e){var t=El.T,n=ct.p;try{if(El.T=null,ct.p=2,e)return e()}finally{El.T=t,ct.p=n,ct.d.f()}},ut.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,ct.d.C(e,t))},ut.prefetchDNS=function(e){typeof e=="string"&&ct.d.D(e)},ut.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,a=cs(n,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,l=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?ct.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:i,fetchPriority:l}):n==="script"&&ct.d.X(e,{crossOrigin:a,integrity:i,fetchPriority:l,nonce:typeof t.nonce=="string"?t.nonce:void 0})}},ut.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=cs(t.as,t.crossOrigin);ct.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&ct.d.M(e)},ut.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,a=cs(n,t.crossOrigin);ct.d.L(e,n,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}},ut.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=cs(t.as,t.crossOrigin);ct.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else ct.d.m(e)},ut.requestFormReset=function(e){ct.d.r(e)},ut.unstable_batchedUpdates=function(e,t){return e(t)},ut.useFormState=function(e,t,n){return El.H.useFormState(e,t,n)},ut.useFormStatus=function(){return El.H.useHostTransitionStatus()},ut.version="19.2.6";function Hm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hm)}catch(e){console.error(e)}}Hm(),Bm.exports=ut;var Fm=Bm.exports;const Cl=Ft(Fm),N2={theme:null,setTheme:()=>null,easyRead:null,setEasyRead:()=>null},qm=S.createContext(N2),Vm=({children:e,theme:t,easyRead:n,className:a})=>{const[i,l]=S.useState(t||"light"),[r,s]=S.useState(n),{config:o}=S.useContext(Tt),c=I("sg-theme",i&&`sg-theme-${i}`,r&&"sg-easy-read",a);return ie.useEffect(()=>{r&&new window.FontFace("OpenDyslexia Regular",`url(${o.fontsAssetsPath}/OpenDyslexic-Regular.otf)`).load().then(d=>{document.fonts.add(d)}).catch(d=>{console.error(d)})},[r,o.fontsAssetsPath]),ie.createElement(qm.Provider,{value:{theme:i,setTheme:l,easyRead:r,setEasyRead:s}},ie.createElement("div",{className:c,"data-component":"theme-provider"},e))},D2=()=>{const e=S.useContext(qm);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e},km=({element:e=document.body,"data-e2e":t="sg-portal-bootstrap","data-component":n="sg-portal-bootstrap",children:a})=>{const{theme:i,easyRead:l}=D2(),{bootstrapProps:r={}}=S.useContext(Tt);return Cl.createPortal(S.createElement(ZS,{"data-e2e":t,"data-component":n,context:{bootstrapProps:{className:r==null?void 0:r.className}}},i?S.createElement(Vm,{theme:i,easyRead:l},a):a),e)};var z2=Object.defineProperty,U2=(e,t,n)=>t in e?z2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qm=(e,t,n)=>(U2(e,typeof t!="symbol"?t+"":t,n),n);const Gm=10;class $m extends S.PureComponent{constructor(t){super(t),Qm(this,"node",null),this.node=S.createRef()}componentDidMount(){this.setPosition()}setPosition(){const{target:t}=this.props,n=Om(t),a=n.left+n.width/2,i=n.top+n.height/2,l=window.innerWidth/2,r=this.node.current.offsetWidth/2,s=window.innerHeight-i>n.height/2+this.node.current.offsetHeight+5;if(a<l){const o=n.left+n.width/2-r,c=o>0?o:0;us({target:this.node.current,property:"left",value:`${c}px`})}else{const o=n.left+n.width/2+r,c=window.innerWidth-o>0?window.innerWidth-o:0;us({target:this.node.current,property:"right",value:`${c}px`})}if(s){const o=n.height+n.top+window.pageYOffset+Gm;us({target:this.node.current,property:"top",value:`${o}px`})}else{const o=window.innerHeight-i+n.height/2+Gm;us({target:this.node.current,property:"bottom",value:`${o}px`})}}render(){const{className:t,children:n,tooltipSize:a,background:i,density:l,tooltipId:r,...s}=this.props,o=I("sg-tooltip",a&&`sg-tooltip--size-${a}`,i&&`sg-tooltip--background-${i}`,l&&`sg-tooltip--density-${l}`,t);return S.createElement(km,null,S.createElement("div",{ref:this.node,className:o,role:"tooltip","aria-hidden":"false",id:r,...s},n))}}Qm($m,"defaultProps",{"data-e2e":"tooltip",background:"black",density:"cozy"});var L2=Object.defineProperty,B2=(e,t,n)=>t in e?L2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Km=(e,t,n)=>(B2(e,typeof t!="symbol"?t+"":t,n),n);class wl{constructor(){Km(this,"level",null),Km(this,"messages",null),this.level="warn",this.messages=[]}log(...t){this.messages.find(a=>JSON.stringify(a)===JSON.stringify(t[0]))||(window.console&&console.warn.apply(console,t.map(a=>`%c${a}`).concat("color: red; font-size: small")),this.messages=this.messages.concat(t))}}var j2=Object.defineProperty,H2=(e,t,n)=>t in e?j2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wn=(e,t,n)=>(H2(e,typeof t!="symbol"?t+"":t,n),n);const F2=new wl,fs=(e,t={})=>{class n extends S.Component{constructor(){super(...arguments),wn(this,"state",{target:null,isTooltipVisible:!1}),wn(this,"timeoutId",null),wn(this,"handleFocus",i=>{this.props.onFocus&&this.props.onFocus(i),O2()&&this.handleMouseEnter(i)}),wn(this,"handleMouseEnter",i=>{clearTimeout(this.timeoutId);const l=i.currentTarget.nodeName==="svg"?i.currentTarget.parentElement:i.currentTarget;t.delay?this.timeoutId=setTimeout(()=>this.showTooltip(l),t.delay):this.showTooltip(l),this.props.onMouseEnter&&this.props.onMouseEnter(i)}),wn(this,"showTooltip",i=>{this.setState({target:i,isTooltipVisible:!0},()=>{this.isMobileSafari&&(document.removeEventListener("touchend",this.handleTouchEndOnMobileSafari),document.addEventListener("touchend",this.handleTouchEndOnMobileSafari))})}),wn(this,"hideTooltip",()=>{clearTimeout(this.timeoutId),this.setState({isTooltipVisible:!1}),this.isMobileSafari&&document.removeEventListener("touchend",this.handleTouchEndOnMobileSafari),this.props.onBlur&&this.props.onBlur()}),wn(this,"handleTouchEndOnMobileSafari",i=>{const{isTooltipVisible:l,target:r}=this.state;r===i.target||r.contains(i.target)||i.target.className&&i.target.className.indexOf("sg-tooltip")>=0||l&&(r!==document.activeElement&&r.focus(),r.blur())})}get isMobileSafari(){const{device:i}=this.context;return i.isDevicePhone&&i.browser.name==="safari"}componentWillUnmount(){this.isMobileSafari&&document.removeEventListener("touchend",this.handleTouchEndOnMobileSafari)}render(){const{tooltip:i=t.tooltip,tooltipSize:l,forwardRef:r,background:s,density:o,...c}=this.props,{target:u,isTooltipVisible:d}=this.state,{device:f}=this.context,p=t.preventTooltipOnMobile;let b=!!(d&&i);["density","background","tooltipSize"].filter(C=>!!this.props[C]).forEach(C=>{F2.log(`The "${C}" prop of withTooltip is deprecated and scheduled for removal in future versions.`)}),p&&(b=f.isDevicePhone||f.isDeviceTablet?!1:b);const E=os();return S.createElement(S.Fragment,null,S.createElement(e,{...c,ref:r,device:f,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.hideTooltip,onFocus:this.handleFocus,onBlur:this.hideTooltip,"aria-describedby":E}),b&&S.createElement($m,{target:u,tooltipId:E,tooltipSize:l,background:s,density:o},i))}}return wn(n,"contextType",Tt),wn(n,"defaultProps",{}),({ref:a,...i})=>S.createElement(n,{...i,forwardRef:a})};function ds(...e){return t=>e.reduceRight((n,a)=>a(n),t)}var q2=Object.defineProperty,V2=(e,t,n)=>t in e?q2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Si=(e,t,n)=>(V2(e,typeof t!="symbol"?t+"":t,n),n);const ht={exceptionIcons:{empty:" ",fallback:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><circle class="st0" cx="16" cy="16" r="5.75"/></svg>',e2e:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><circle class="st0" cx="16" cy="16" r="5.75"></circle></svg>',"material/arrow_drop_up":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m280-400 200-200 200 200H280Z"/></svg>',"material/arrow_drop_down":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M480-360 280-560h400L480-360Z"/></svg>',radio_button_checked:`
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
      <path d="M12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z" fill="var(--color-background-secondary)"></path>
      <path class="main-path" d="M12 17C13.3833 17 14.5625 16.5125 15.5375 15.5375C16.5125 14.5625 17 13.3833 17 12C17 10.6167 16.5125 9.4375 15.5375 8.4625C14.5625 7.4875 13.3833 7 12 7C10.6167 7 9.4375 7.4875 8.4625 8.4625C7.4875 9.4375 7 10.6167 7 12C7 13.3833 7.4875 14.5625 8.4625 15.5375C9.4375 16.5125 10.6167 17 12 17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z" fill="var(--color-primary-main)"></path>
    </svg>`,radio_button_unchecked:`
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
      <path d="M12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z" fill="var(--color-background-secondary)"></path>
      <path class="main-path" d="M12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z" fill="var(--color-typography-secondary)"></path>
    </svg>`,check_box_filled:`
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
      <path d="M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5Z" fill="var(--color-background-secondary)"></path>
      <path class="main-path" d="M10.6 16.2L17.65 9.15L16.25 7.75L10.6 13.4L7.75 10.55L6.35 11.95L10.6 16.2ZM5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5Z" fill="var(--color-primary-main)"></path>
    </svg>`,check_box_outline_blank:`
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
      <path d="M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5Z" fill="var(--color-background-secondary)"></path>
      <path class="main-path" d="M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5 19H19V5H5V19Z" fill="var(--color-typography-secondary)"></path>
    </svg>`,check_box_indeterminate_filled:`
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
      <path d="M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5Z" fill="var(--color-background-secondary)"></path>
      <path class="main-path" d="M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5 19H19V5H5V19Z" fill="var(--color-primary-main)"></path>
      <path class="main-path" d="M7 7H17V17H7V7Z" fill="var(--color-primary-main)"></path>
    </svg>`},syncCache:{},getIconCached:e=>ht.syncCache[e]?ht.syncCache[e]:"",getIcon:(e,t)=>ht.exceptionIcons[e]!==void 0?new Promise(n=>n(ht.exceptionIcons[e])):(ht[e]||(ht[e]=fetch(t).then(n=>n.ok?n.text():ht.exceptionIcons.fallback).then(n=>{const a=n.toLowerCase().includes("!doctype")?null:n;return ht.syncCache[e]=a,a}).catch(n=>(console.error(n),ht.exceptionIcons.fallback))),ht[e])},k2=ie.memo(({html:e})=>ie.createElement("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:e}}));class Hu extends ie.Component{constructor(t){super(t),Si(this,"state",{svg:""}),Si(this,"mounted",!1),Si(this,"getSVG",()=>{const{width:n,height:a,size:i}=this.props;let l=this.state.svg||"";return!n&&!a&&!i?this.state.svg:((a||i)&&(l=l.replace('xmlns="http://www.w3.org/2000/svg"',`xmlns="http://www.w3.org/2000/svg" height="${a||i}" `)),(n||i)&&(l=l.replace('xmlns="http://www.w3.org/2000/svg"',`xmlns="http://www.w3.org/2000/svg" width="${n||i}" `)),l)}),Si(this,"getIconPath",n=>{const{config:a}=this.context;return`${this.props.path||a.svgAssetsPath}/${n}.svg`}),this.state={svg:ht.getIconCached(t.name)||""}}componentDidMount(){this.mounted=!0,this.fetch(this.props.name),this.props.prefetch&&this.props.prefetch.forEach(t=>this.prefetch(t))}componentDidUpdate(t){this.props.name!==t.name&&this.fetch(this.props.name)}componentWillUnmount(){this.mounted=!1}prefetch(t){ht.getIcon(t,this.getIconPath(t))}fetch(t){ht.getIcon(t,this.getIconPath(t)).then(n=>{this.mounted&&this.setState({svg:n})})}render(){const{name:t="",multicolor:n,fill:a,className:i,tabIndex:l,forwardRef:r,color:s,role:o,"data-tooltip":c,"data-e2e":u,"data-component":d,"aria-label":f,...p}=this.props,{width:b,height:E,size:C,style:g,onClick:y,onKeyDown:h,...m}=this.props,_={...{width:`${b||C}px`,height:`${E||C}px`},...g},w=!n,x=w&&/presentational|product/.test(t),T=c&&0,A=I("sg-icon",y&&"sg-icon--interactive",a&&`sg-icon--fill-${a}`,w&&"sg-icon--use-css-colors",w&&s&&`sg-icon--color-${s}`,x&&"sg-icon--use-fill-colors",i);return ie.createElement("span",{className:A,...Ae(p),ref:r,"data-tooltip":c,style:_,onClick:y,tabIndex:l!==void 0?l:T,"data-e2e":u,"data-component":d,"data-icon":t,role:o,"aria-label":f,onKeyDown:O=>{switch(O.key){case we.SPACE:case we.ENTER:O.preventDefault(),O.stopPropagation(),O.target.click();break}h&&h(O)}},ie.createElement(k2,{html:this.getSVG()}))}}Si(Hu,"contextType",Tt),Si(Hu,"defaultProps",{fill:"lighter","data-e2e":"icon","data-component":"icon",role:"img"});const Ym=ds(fs)(({ref:e,...t})=>ie.createElement(Hu,{...t,forwardRef:e}));Ym.displayName="Icon";const qt=({ref:e,...t})=>ie.createElement(Ym,{ref:e,...t}),Q2=e=>{const{children:t,className:n,color:a="light",size:i="small",type:l="default",padding:r,tabIndex:s,"data-e2e":o="label","data-component":c="label",...u}=e,d=I("sg-label",`sg-label--type-${l}`,`sg-label--size-${i}`,a&&`sg-label--color-${a}`,Yn(r),n);return S.createElement("span",{className:d,"data-e2e":o,"data-component":c,tabIndex:s,...Ae(u)},S.createElement("span",{className:"sg-label__text"},t))},Pm=e=>{switch(e.key){case we.TAB:case we.UP:case we.RIGHT:case we.DOWN:case we.LEFT:document.body.classList.add(ss);break}},Xm=()=>document.body.classList.add(ss),Im=()=>document.body.classList.remove(ss),G2=({header:e,footer:t,aside:n,content:a,"data-e2e":i="layout","data-component":l="layout",...r})=>(ie.useEffect(()=>(window.addEventListener(Uu,Xm),window.addEventListener("keydown",Pm),window.addEventListener("click",Im),()=>{window.removeEventListener(Uu,Xm),window.removeEventListener("keydown",Pm),window.removeEventListener("click",Im)}),[]),ie.createElement("div",{className:"sg-layout__container",...Ae(r),"data-e2e":i,"data-component":l},e,ie.createElement("div",{className:I("sg-layout__grid",n&&"sg-layout__grid--aside")},n&&ie.createElement("aside",{className:"sg-layout__aside"},n),ie.createElement("main",{className:"sg-layout__main"},a)),t)),Fu=e=>{if(!e)return null;const{align:t,italic:n,transform:a,truncate:i,weight:l,wordBreak:r,lineClamp:s}=e;return I("sg-typography",i&&"sg-typography--truncate",n&&"sg-typography--italic",t&&`sg-typography--align-${t}`,a&&`sg-typography--transform-${a}`,l&&`sg-typography--weight-${l}`,r&&`sg-typography--break-${r}`,s&&`sg-typography--line-clamp sg-typography--line-clamp-${s}`)},Ei=e=>{const t=S.useRef(null),{decoration:n,disabled:a,className:i,onClick:l,onKeyDown:r,children:s,target:o,color:c,title:u,breadcrumb:d,tabIndex:f=0,"data-e2e":p="link","data-component":b="link",role:E="link",wordBreak:C="all",...g}=e,y=I("sg-link",n&&`sg-link--decoration-${n}`,a&&"sg-link--disabled",d&&"sg-link--breadcrumb",Fu({...g,wordBreak:C}),c&&`sg-link--color-${c}`,i);return S.createElement("a",{ref:t,className:y,"data-e2e":p,"data-component":b,tabIndex:f,role:E,...Ae(g),target:o,onClick:a?null:l,onKeyDown:h=>{a||(h.key===we.ENTER&&(h.preventDefault(),h.stopPropagation(),t.current&&t.current.click()),r&&r(h))},title:u},s)},Zm=S.forwardRef((e,t)=>{const{children:n,padding:a,className:i,translateOffset:l=0,tag:r="main",style:s,"data-e2e":o="page",...c}=e,u=I("sg-page-container",Yn(a),i),d={...s,"--sg-content-translate-offset":`${l}px`};return S.createElement(r,{className:u,style:d,"data-e2e":o,"data-component":"page",...Ae(c),ref:t},n)});Zm.displayName="Page";const _l=e=>{const{className:t,density:n="cozy",size:a="medium",children:i,"data-e2e":l="section",...r}=e,s=I("sg-section",n&&`sg-section--density-${n}`,`sg-section--size-${a}`,t);return S.createElement("div",{className:s,"data-e2e":l,"data-component":"section",...Ae(r)},S.createElement("div",{className:"sg-section__content"},i))};_l.displayName="Section";const $2=({className:e,size:t="expanded",tag:n="div","data-e2e":a="spacer",...i})=>{const l=I("sg-spacer",`sg-spacer--size-${t}`,e);return S.createElement(n,{className:l,"aria-hidden":"true","data-e2e":a,...Ae(i)})},ke=e=>{const{children:t,className:n,size:a="medium",tag:i="p",color:l="dark",padding:r,weight:s="regular","data-e2e":o="text",...c}=e,u=I("sg-text",`sg-text--size-${a}`,l&&`sg-text--color-${l}`,Yn(r),Fu({...c,weight:s}),n);return S.createElement(i,{className:u,"data-e2e":o,...Ae(c)},t)};ke.displayName="Text";const tn=e=>{const{children:t,className:n,level:a="1",type:i,color:l="dark",tag:r,weight:s="bold","data-e2e":o="title",...c}=e,u=I("sg-title",`sg-title--level-${a}`,i&&`sg-title--type-${i}`,l&&`sg-title--color-${l}`,Fu({...c,weight:s}),n);return S.createElement(r||`h${a}`,{className:u,"data-component":"title","data-e2e":o,role:"heading",...Ae(c)},typeof t=="string"?s2(t):t)};tn.displayName="Title";const K2=({ref:e,...t})=>{const{align:n="baseline",background:a="transparent",density:i="cozy",justify:l,className:r,direction:s="row","data-e2e":o="toolbar",...c}=t,u=I("sg-toolbar",`sg-toolbar--background-${a}`,`sg-toolbar--density-${i}`,n&&`sg-toolbar--align-${n}`,l&&`sg-toolbar--justify-${l}`,s&&`sg-toolbar--direction-${s}`,r);return S.createElement("div",{ref:e,className:u,"data-e2e":o,...Ae(c)},t.children)};var Y2=Object.defineProperty,P2=(e,t,n)=>t in e?Y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tl=(e,t,n)=>(P2(e,typeof t!="symbol"?t+"":t,n),n);const Jm={OPEN:"open",CLOSE:"close"};class Wm extends S.Component{constructor(){super(...arguments),Tl(this,"mouseDownTarget"),Tl(this,"state",{animation:""}),Tl(this,"mouseDownHandler",t=>{this.mouseDownTarget=t.target}),Tl(this,"clickHandler",t=>{t.stopPropagation(),t.currentTarget===t.target&&this.mouseDownTarget===t.currentTarget&&this.closeHandler()})}componentDidMount(){this.setState({animation:Jm.OPEN}),this.disablePageScroll()}componentDidUpdate(t){t.triggerClose!==this.props.triggerClose&&this.closeHandler()}componentWillUnmount(){this.enablePageScroll()}disablePageScroll(){const t=document.querySelector(".sg-page");t&&(t.setAttribute("aria-hidden","true"),sm()&&t.classList.add("from-dialog--prevent-scroll"))}enablePageScroll(){const t=document.querySelector(".sg-page");t&&(t.removeAttribute("aria-hidden"),sm()&&t.classList.remove("from-dialog--prevent-scroll"))}keypressHandler(t){t.keyCode===27&&(t.stopPropagation(),this.closeHandler())}closeHandler(){const{disableClose:t,onCloseHandler:n,triggerClose:a}=this.props;t&&!a||(n?this.setState({animation:Jm.CLOSE},()=>{setTimeout(()=>n(),300)}):console.warn("Dialog component must have onCloseHandler property to work correctly"))}render(){const{autoFocus:t,children:n,wrapperClassName:a,className:i,renderCustomHeader:l,padding:r,...s}=this.props,{animation:o}=this.state,c=I("sg-dialog-wrapper",a,o&&`sg-dialog-wrapper--animation-${o}`,Yn(r));return S.createElement(km,null,S.createElement("div",{className:c,onKeyDown:this.keypressHandler.bind(this),onMouseDown:this.mouseDownHandler,onClick:this.clickHandler,ref:this.props.forwardedRef,"data-component":"dialog-wrapper","data-e2e":"dialog-wrapper",tabIndex:0},S.createElement(ju,null),S.createElement(Bu,{className:i,autoFocus:t,...Ae(s),"data-e2e":this.props["data-e2e"]},l&&l(),n)))}}Tl(Wm,"defaultProps",{padding:"medium","data-e2e":"dialog-wrapper"});const X2=({ref:e,...t})=>S.createElement(Wm,{...t,forwardedRef:e});function qu(e){return e}function I2(e){const{offsetWidth:t,offsetHeight:n}=e;return t>=n?t:n}function Z2(e,t,n){const a=Om(t),i=e.clientX-a.left-n/2,l=e.clientY-a.top-n/2;return{x:i,y:l}}function J2(e){const{ref:t,children:n,className:a,disabled:i,onMouseDown:l=qu,onAnimationEnd:r=qu,onTransitionEnd:s=qu,tag:o="div",shape:c="default",...u}=e,d=t||S.createRef(),f=S.createRef(),p=E=>{if(!d.current||!f.current||i)return null;f.current.style.left="0px",f.current.style.top="0px",f.current.style.width="0px",f.current.style.height="0px";const C=I2(d.current),g=Z2(E,d.current,C);return f.current.style.left=`${g.x}px`,f.current.style.top=`${g.y}px`,f.current.style.width=`${C}px`,f.current.style.height=`${C}px`,f.current.classList.add("sg-ripple","sg-ripple__animation"),E},b=E=>(f.current.classList.remove("sg-ripple__animation"),E);return S.createElement(o,{className:I("sg-ripple-container",`sg-ripple-container--shape-${c}`,a),onAnimationEnd:ds(b,r),onMouseDown:ds(p,l),onTransitionEnd:ds(b,s),ref:d,...u},S.createElement(S.Fragment,null,n,S.createElement("span",{ref:f})))}const hs=J2;hs.displayName="Ripple";const W2=({event:e,disabled:t,onKeyDown:n})=>{switch(as(e)&&Cn({event:e}),is(e)&&Cn({event:e,isDirectionForward:!1}),e.key){case we.SPACE:case we.ENTER:return t?void 0:(e.preventDefault(),e.stopPropagation(),e.target.click());default:typeof n=="function"&&n(e);return}},Vu=fs(({ref:e,...t})=>{const{action:n,tag:a,children:i,color:l,type:r,disabled:s,className:o,onKeyDown:c,onClick:u,tabIndex:d,isActive:f,...p}=t,b=I("sg-button-base",l&&`sg-button-base--color-${l}`,r&&`sg-button-base--type-${r}`,f&&"sg-button-base--active",s&&"sg-button-base--disabled",o);return S.createElement(a,{type:n,ref:e,tag:a,className:b,tabIndex:d,role:"button",...Ae(p),onKeyDown:E=>W2({event:E,disabled:s,onKeyDown:c}),disabled:s,onClick:E=>{if(s){E.preventDefault();return}typeof u=="function"&&u(E)}},S.createElement(S.Fragment,null,S.createElement("div",{className:"sg-button-base__overlay"}),i,S.createElement(hs,{disabled:s})))},{preventTooltipOnMobile:!0});Vu.displayName="ButtonBase";const eE={"x-small":"18",small:"18",medium:"18",large:"24","x-large":"24"},ep={"x-small":"18",small:"20",medium:"20",large:"24","x-large":"24"},tp=e=>e&&!e.startsWith(Um),np=e=>tp(e)?`${Um}${e}`:e,tE=(e,t)=>e?eE[t]:ep[t],nE=new wl,ja=({ref:e,...t})=>{const{action:n="submit",size:a="medium",children:i,className:l,disabled:r,expand:s,tabIndex:o=0,tag:c="button",leadingIcon:u,trailingIcon:d,"data-e2e":f="button","data-component":p="button",onClick:b,type:E="contained",color:C="secondary",...g}=t,y=I("sg-button",`sg-button--${a}`,s&&"sg-button--expanded",l),h=ep[a];return C==="tertiary"&&E==="ghost"&&nE.log('Buttons of type "ghost" do not support "tertiary" color.'),S.createElement(Vu,{action:n,tag:c,className:y,ref:e,tabIndex:o,"data-e2e":f,"data-component":p,onClick:b,disabled:r,type:E,color:C,...g},u&&S.createElement(qt,{name:np(u),size:h}),i&&S.createElement("span",{className:"sg-button--content"},i),d&&S.createElement(qt,{name:np(d),size:h}))};ja.displayName="Button";const ap={vertical:"vertical"},aE={"x-small":"36",small:"48",medium:"64",large:"96","x-large":"144"},iE={"x-small":"6",small:"5",medium:"4",large:"3","x-large":"2"},ip=e=>{const{device:t,divided:n=!1,layout:a="horizontal",selected:i,text:l,title:r,padding:s="responsive",iconName:o,iconColor:c,iconMulticolor:u,size:d="medium",children:f,className:p,outline:b="border",tabIndex:E=0,label:C,"data-e2e":g="card","data-component":y="card",...h}=e,m=t.isPhone||a===ap.vertical,v=n&&!m,_=I("sg-card",Yn(s),b&&`sg-card--outline-${b}`,i&&"sg-card--selected",p),w=I("sg-card__content-wrapper",v&&"sg-card__content-wrapper--divided",m?"sg-card__content-wrapper--row":"sg-card__content-wrapper--column"),x=I("sg-card__icon-wrapper");return S.createElement("div",{className:_,role:"figure",tabIndex:E,...Ae(h),"data-e2e":g,"data-component":y},C&&S.createElement("div",{className:"sg-card__label"},C),S.createElement(La,{className:w,gap:m?"medium":"large"},S.createElement("div",{className:x},S.createElement(qt,{name:o,color:c,size:aE[d],multicolor:u})),v&&S.createElement("div",{className:"sg-card__divider"}),S.createElement(La,{className:I("sg-card__content",a===ap.vertical&&"sg-card__content--vertical")},S.createElement(La,null,r&&S.createElement(tn,{level:iE[d],weight:"bold"},r),l&&S.createElement(ke,{color:"dark"},l)),f&&S.createElement("div",{className:"sg-card__actions-wrapper"},f))))};ip.displayName="Card";const lp=e=>S.createElement(Tt.Consumer,null,({device:t})=>S.createElement(ip,{...e,device:t}));lp.displayName="Card";function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ge.apply(null,arguments)}function Ha(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function ku(e,t){return ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ku(e,t)}function Qu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ku(e,t)}function lE(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function rE(e,t){e.classList?e.classList.add(t):lE(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function rp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function sE(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=rp(e.className,t):e.setAttribute("class",rp(e.className&&e.className.baseVal||"",t))}const sp={disabled:!1},ms=ie.createContext(null);var op=function(t){return t.scrollTop},Al="unmounted",Fa="exited",qa="entering",Ci="entered",Gu="exiting",_n=function(e){Qu(t,e);function t(a,i){var l;l=e.call(this,a,i)||this;var r=i,s=r&&!r.isMounting?a.enter:a.appear,o;return l.appearStatus=null,a.in?s?(o=Fa,l.appearStatus=qa):o=Ci:a.unmountOnExit||a.mountOnEnter?o=Al:o=Fa,l.state={status:o},l.nextCallback=null,l}t.getDerivedStateFromProps=function(i,l){var r=i.in;return r&&l.status===Al?{status:Fa}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var l=null;if(i!==this.props){var r=this.state.status;this.props.in?r!==qa&&r!==Ci&&(l=qa):(r===qa||r===Ci)&&(l=Gu)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,l,r,s;return l=r=s=i,i!=null&&typeof i!="number"&&(l=i.exit,r=i.enter,s=i.appear!==void 0?i.appear:r),{exit:l,enter:r,appear:s}},n.updateStatus=function(i,l){if(i===void 0&&(i=!1),l!==null)if(this.cancelNextCallback(),l===qa){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Cl.findDOMNode(this);r&&op(r)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fa&&this.setState({status:Al})},n.performEnter=function(i){var l=this,r=this.props.enter,s=this.context?this.context.isMounting:i,o=this.props.nodeRef?[s]:[Cl.findDOMNode(this),s],c=o[0],u=o[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!i&&!r||sp.disabled){this.safeSetState({status:Ci},function(){l.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:qa},function(){l.props.onEntering(c,u),l.onTransitionEnd(f,function(){l.safeSetState({status:Ci},function(){l.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,l=this.props.exit,r=this.getTimeouts(),s=this.props.nodeRef?void 0:Cl.findDOMNode(this);if(!l||sp.disabled){this.safeSetState({status:Fa},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Gu},function(){i.props.onExiting(s),i.onTransitionEnd(r.exit,function(){i.safeSetState({status:Fa},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,l){l=this.setNextCallback(l),this.setState(i,l)},n.setNextCallback=function(i){var l=this,r=!0;return this.nextCallback=function(s){r&&(r=!1,l.nextCallback=null,i(s))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(i,l){this.setNextCallback(l);var r=this.props.nodeRef?this.props.nodeRef.current:Cl.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!r||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],c=o[0],u=o[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Al)return null;var l=this.props,r=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var s=Ha(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ie.createElement(ms.Provider,{value:null},typeof r=="function"?r(i,s):ie.cloneElement(ie.Children.only(r),s))},t}(ie.Component);_n.contextType=ms,_n.propTypes={};function wi(){}_n.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wi,onEntering:wi,onEntered:wi,onExit:wi,onExiting:wi,onExited:wi},_n.UNMOUNTED=Al,_n.EXITED=Fa,_n.ENTERING=qa,_n.ENTERED=Ci,_n.EXITING=Gu;var oE=function(t,n){return t&&n&&n.split(" ").forEach(function(a){return rE(t,a)})},$u=function(t,n){return t&&n&&n.split(" ").forEach(function(a){return sE(t,a)})},ps=function(e){Qu(t,e);function t(){for(var a,i=arguments.length,l=new Array(i),r=0;r<i;r++)l[r]=arguments[r];return a=e.call.apply(e,[this].concat(l))||this,a.appliedClasses={appear:{},enter:{},exit:{}},a.onEnter=function(s,o){var c=a.resolveArguments(s,o),u=c[0],d=c[1];a.removeClasses(u,"exit"),a.addClass(u,d?"appear":"enter","base"),a.props.onEnter&&a.props.onEnter(s,o)},a.onEntering=function(s,o){var c=a.resolveArguments(s,o),u=c[0],d=c[1],f=d?"appear":"enter";a.addClass(u,f,"active"),a.props.onEntering&&a.props.onEntering(s,o)},a.onEntered=function(s,o){var c=a.resolveArguments(s,o),u=c[0],d=c[1],f=d?"appear":"enter";a.removeClasses(u,f),a.addClass(u,f,"done"),a.props.onEntered&&a.props.onEntered(s,o)},a.onExit=function(s){var o=a.resolveArguments(s),c=o[0];a.removeClasses(c,"appear"),a.removeClasses(c,"enter"),a.addClass(c,"exit","base"),a.props.onExit&&a.props.onExit(s)},a.onExiting=function(s){var o=a.resolveArguments(s),c=o[0];a.addClass(c,"exit","active"),a.props.onExiting&&a.props.onExiting(s)},a.onExited=function(s){var o=a.resolveArguments(s),c=o[0];a.removeClasses(c,"exit"),a.addClass(c,"exit","done"),a.props.onExited&&a.props.onExited(s)},a.resolveArguments=function(s,o){return a.props.nodeRef?[a.props.nodeRef.current,s]:[s,o]},a.getClassNames=function(s){var o=a.props.classNames,c=typeof o=="string",u=c&&o?o+"-":"",d=c?""+u+s:o[s],f=c?d+"-active":o[s+"Active"],p=c?d+"-done":o[s+"Done"];return{baseClassName:d,activeClassName:f,doneClassName:p}},a}var n=t.prototype;return n.addClass=function(i,l,r){var s=this.getClassNames(l)[r+"ClassName"],o=this.getClassNames("enter"),c=o.doneClassName;l==="appear"&&r==="done"&&c&&(s+=" "+c),r==="active"&&i&&op(i),s&&(this.appliedClasses[l][r]=s,oE(i,s))},n.removeClasses=function(i,l){var r=this.appliedClasses[l],s=r.base,o=r.active,c=r.done;this.appliedClasses[l]={},s&&$u(i,s),o&&$u(i,o),c&&$u(i,c)},n.render=function(){var i=this.props;i.classNames;var l=Ha(i,["classNames"]);return ie.createElement(_n,ge({},l,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(ie.Component);ps.defaultProps={classNames:""},ps.propTypes={};function uE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ku(e,t){var n=function(l){return t&&S.isValidElement(l)?t(l):l},a=Object.create(null);return e&&S.Children.map(e,function(i){return i}).forEach(function(i){a[i.key]=n(i)}),a}function cE(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var a=Object.create(null),i=[];for(var l in e)l in t?i.length&&(a[l]=i,i=[]):i.push(l);var r,s={};for(var o in t){if(a[o])for(r=0;r<a[o].length;r++){var c=a[o][r];s[a[o][r]]=n(c)}s[o]=n(o)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}function Va(e,t,n){return n[t]!=null?n[t]:e.props[t]}function fE(e,t){return Ku(e.children,function(n){return S.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Va(n,"appear",e),enter:Va(n,"enter",e),exit:Va(n,"exit",e)})})}function dE(e,t,n){var a=Ku(e.children),i=cE(t,a);return Object.keys(i).forEach(function(l){var r=i[l];if(S.isValidElement(r)){var s=l in t,o=l in a,c=t[l],u=S.isValidElement(c)&&!c.props.in;o&&(!s||u)?i[l]=S.cloneElement(r,{onExited:n.bind(null,r),in:!0,exit:Va(r,"exit",e),enter:Va(r,"enter",e)}):!o&&s&&!u?i[l]=S.cloneElement(r,{in:!1}):o&&s&&S.isValidElement(c)&&(i[l]=S.cloneElement(r,{onExited:n.bind(null,r),in:c.props.in,exit:Va(r,"exit",e),enter:Va(r,"enter",e)}))}}),i}var hE=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},mE={component:"div",childFactory:function(t){return t}},gs=function(e){Qu(t,e);function t(a,i){var l;l=e.call(this,a,i)||this;var r=l.handleExited.bind(uE(l));return l.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},l}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,l){var r=l.children,s=l.handleExited,o=l.firstRender;return{children:o?fE(i,s):dE(i,r,s),firstRender:!1}},n.handleExited=function(i,l){var r=Ku(this.props.children);i.key in r||(i.props.onExited&&i.props.onExited(l),this.mounted&&this.setState(function(s){var o=ge({},s.children);return delete o[i.key],{children:o}}))},n.render=function(){var i=this.props,l=i.component,r=i.childFactory,s=Ha(i,["component","childFactory"]),o=this.state.contextValue,c=hE(this.state.children).map(r);return delete s.appear,delete s.enter,delete s.exit,l===null?ie.createElement(ms.Provider,{value:o},c):ie.createElement(ms.Provider,{value:o},ie.createElement(l,s,c))},t}(ie.Component);gs.propTypes={},gs.defaultProps=mE;var pE=Object.defineProperty,gE=(e,t,n)=>t in e?pE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yE=(e,t,n)=>(gE(e,t+"",n),n);class vE{constructor(){yE(this,"refs",new Map)}get(t){return this.refs.has(t)||this.refs.set(t,S.createRef()),this.refs.get(t)}}function bE(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function SE(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function EE(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(a=>typeof a=="function"?`function ${a.name||"unnamed"}()`:typeof a).join(", ");throw new TypeError(`${t}[${n}]`)}}var up=e=>Array.isArray(e)?e:[e];function CE(e){const t=Array.isArray(e[0])?e[0]:e;return EE(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function wE(e,t){const n=[],{length:a}=e;for(let i=0;i<a;i++)n.push(e[i].apply(null,t));return n}var _E=class{constructor(e){this.value=e}deref(){return this.value}},TE=typeof WeakRef<"u"?WeakRef:_E,AE=0,cp=1;function ys(){return{s:AE,v:void 0,o:null,p:null}}function vs(e,t={}){let n=ys();const{resultEqualityCheck:a}=t;let i,l=0;function r(){var d;let s=n;const{length:o}=arguments;for(let f=0,p=o;f<p;f++){const b=arguments[f];if(typeof b=="function"||typeof b=="object"&&b!==null){let E=s.o;E===null&&(s.o=E=new WeakMap);const C=E.get(b);C===void 0?(s=ys(),E.set(b,s)):s=C}else{let E=s.p;E===null&&(s.p=E=new Map);const C=E.get(b);C===void 0?(s=ys(),E.set(b,s)):s=C}}const c=s;let u;if(s.s===cp)u=s.v;else if(u=e.apply(null,arguments),l++,a){const f=((d=i==null?void 0:i.deref)==null?void 0:d.call(i))??i;f!=null&&a(f,u)&&(u=f,l!==0&&l--),i=typeof u=="object"&&u!==null||typeof u=="function"?new TE(u):u}return c.s=cp,c.v=u,u}return r.clearCache=()=>{n=ys(),r.resetResultsCount()},r.resultsCount=()=>l,r.resetResultsCount=()=>{l=0},r}function OE(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,a=(...i)=>{let l=0,r=0,s,o={},c=i.pop();typeof c=="object"&&(o=c,c=i.pop()),bE(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...o},{memoize:d,memoizeOptions:f=[],argsMemoize:p=vs,argsMemoizeOptions:b=[]}=u,E=up(f),C=up(b),g=CE(i),y=d(function(){return l++,c.apply(null,arguments)},...E),h=p(function(){r++;const v=wE(g,arguments);return s=y.apply(null,v),s},...C);return Object.assign(h,{resultFunc:c,memoizedResultFunc:y,dependencies:g,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>s,recomputations:()=>l,resetRecomputations:()=>{l=0},memoize:d,argsMemoize:p})};return Object.assign(a,{withTypes:()=>a}),a}var Yu=OE(vs),xE=Object.assign((e,t=Yu)=>{SE(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),a=n.map(l=>e[l]);return t(a,(...l)=>l.reduce((r,s,o)=>(r[n[o]]=s,r),{}))},{withTypes:()=>xE});function We(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ME=typeof Symbol=="function"&&Symbol.observable||"@@observable",fp=ME,Pu=()=>Math.random().toString(36).substring(7).split("").join("."),RE={INIT:`@@redux/INIT${Pu()}`,REPLACE:`@@redux/REPLACE${Pu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Pu()}`},bs=RE;function Jn(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function dp(e,t,n){if(typeof e!="function")throw new Error(We(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(We(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(We(1));return n(dp)(e,t)}let a=e,i=t,l=new Map,r=l,s=0,o=!1;function c(){r===l&&(r=new Map,l.forEach((C,g)=>{r.set(g,C)}))}function u(){if(o)throw new Error(We(3));return i}function d(C){if(typeof C!="function")throw new Error(We(4));if(o)throw new Error(We(5));let g=!0;c();const y=s++;return r.set(y,C),function(){if(g){if(o)throw new Error(We(6));g=!1,c(),r.delete(y),l=null}}}function f(C){if(!Jn(C))throw new Error(We(7));if(typeof C.type>"u")throw new Error(We(8));if(typeof C.type!="string")throw new Error(We(17));if(o)throw new Error(We(9));try{o=!0,i=a(i,C)}finally{o=!1}return(l=r).forEach(y=>{y()}),C}function p(C){if(typeof C!="function")throw new Error(We(10));a=C,f({type:bs.REPLACE})}function b(){const C=d;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(We(11));function y(){const m=g;m.next&&m.next(u())}return y(),{unsubscribe:C(y)}},[fp](){return this}}}return f({type:bs.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[fp]:b}}function NE(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:bs.INIT})>"u")throw new Error(We(12));if(typeof n(void 0,{type:bs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(We(13))})}function Xu(e){const t=Object.keys(e),n={};for(let l=0;l<t.length;l++){const r=t[l];typeof e[r]=="function"&&(n[r]=e[r])}const a=Object.keys(n);let i;try{NE(n)}catch(l){i=l}return function(r={},s){if(i)throw i;let o=!1;const c={};for(let u=0;u<a.length;u++){const d=a[u],f=n[d],p=r[d],b=f(p,s);if(typeof b>"u")throw s&&s.type,new Error(We(14));c[d]=b,o=o||b!==p}return o=o||a.length!==Object.keys(r).length,o?c:r}}function Ss(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...a)=>t(n(...a)))}function DE(...e){return t=>(n,a)=>{const i=t(n,a);let l=()=>{throw new Error(We(15))};const r={getState:i.getState,dispatch:(o,...c)=>l(o,...c)},s=e.map(o=>o(r));return l=Ss(...s)(i.dispatch),{...i,dispatch:l}}}function hp(e){return Jn(e)&&"type"in e&&typeof e.type=="string"}var Iu=Symbol.for("immer-nothing"),Ol=Symbol.for("immer-draftable"),mt=Symbol.for("immer-state");function et(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ka=Object.getPrototypeOf;function fn(e){return!!e&&!!e[mt]}function nn(e){var t;return e?mp(e)||Array.isArray(e)||!!e[Ol]||!!((t=e.constructor)!=null&&t[Ol])||Rl(e)||Nl(e):!1}var zE=Object.prototype.constructor.toString();function mp(e){if(!e||typeof e!="object")return!1;const t=ka(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===zE}function UE(e){return fn(e)||et(15,e),e[mt].base_}function xl(e,t){Qa(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,a)=>t(a,n,e))}function Qa(e){const t=e[mt];return t?t.type_:Array.isArray(e)?1:Rl(e)?2:Nl(e)?3:0}function Ml(e,t){return Qa(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Zu(e,t){return Qa(e)===2?e.get(t):e[t]}function pp(e,t,n){const a=Qa(e);a===2?e.set(t,n):a===3?e.add(n):e[t]=n}function LE(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Rl(e){return e instanceof Map}function Nl(e){return e instanceof Set}function Ga(e){return e.copy_||e.base_}function Ju(e,t){if(Rl(e))return new Map(e);if(Nl(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=mp(e);if(t===!0||t==="class_only"&&!n){const a=Object.getOwnPropertyDescriptors(e);delete a[mt];let i=Reflect.ownKeys(a);for(let l=0;l<i.length;l++){const r=i[l],s=a[r];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(a[r]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[r]})}return Object.create(ka(e),a)}else{const a=ka(e);if(a!==null&&n)return{...e};const i=Object.create(a);return Object.assign(i,e)}}function Wu(e,t=!1){return Es(e)||fn(e)||!nn(e)||(Qa(e)>1&&(e.set=e.add=e.clear=e.delete=BE),Object.freeze(e),t&&Object.entries(e).forEach(([n,a])=>Wu(a,!0))),e}function BE(){et(2)}function Es(e){return Object.isFrozen(e)}var ec={};function $a(e){const t=ec[e];return t||et(0,e),t}function jE(e,t){ec[e]||(ec[e]=t)}var Dl;function gp(){return Dl}function HE(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function yp(e,t){t&&($a("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function tc(e){nc(e),e.drafts_.forEach(FE),e.drafts_=null}function nc(e){e===Dl&&(Dl=e.parent_)}function vp(e){return Dl=HE(Dl,e)}function FE(e){const t=e[mt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function bp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[mt].modified_&&(tc(t),et(4)),nn(e)&&(e=Cs(t,e),t.parent_||ws(t,e)),t.patches_&&$a("Patches").generateReplacementPatches_(n[mt].base_,e,t.patches_,t.inversePatches_)):e=Cs(t,n,[]),tc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Iu?e:void 0}function Cs(e,t,n){if(Es(t))return t;const a=t[mt];if(!a)return xl(t,(i,l)=>Sp(e,a,t,i,l,n)),t;if(a.scope_!==e)return t;if(!a.modified_)return ws(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const i=a.copy_;let l=i,r=!1;a.type_===3&&(l=new Set(i),i.clear(),r=!0),xl(l,(s,o)=>Sp(e,a,i,s,o,n,r)),ws(e,i,!1),n&&e.patches_&&$a("Patches").generatePatches_(a,n,e.patches_,e.inversePatches_)}return a.copy_}function Sp(e,t,n,a,i,l,r){if(fn(i)){const s=l&&t&&t.type_!==3&&!Ml(t.assigned_,a)?l.concat(a):void 0,o=Cs(e,i,s);if(pp(n,a,o),fn(o))e.canAutoFreeze_=!1;else return}else r&&n.add(i);if(nn(i)&&!Es(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Cs(e,i),(!t||!t.scope_.parent_)&&typeof a!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,a)&&ws(e,i)}}function ws(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Wu(t,n)}function qE(e,t){const n=Array.isArray(e),a={type_:n?1:0,scope_:t?t.scope_:gp(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=a,l=ac;n&&(i=[a],l=zl);const{revoke:r,proxy:s}=Proxy.revocable(i,l);return a.draft_=s,a.revoke_=r,s}var ac={get(e,t){if(t===mt)return e;const n=Ga(e);if(!Ml(n,t))return VE(e,n,t);const a=n[t];return e.finalized_||!nn(a)?a:a===ic(e.base_,t)?(rc(e),e.copy_[t]=sc(a,e)):a},has(e,t){return t in Ga(e)},ownKeys(e){return Reflect.ownKeys(Ga(e))},set(e,t,n){const a=Ep(Ga(e),t);if(a!=null&&a.set)return a.set.call(e.draft_,n),!0;if(!e.modified_){const i=ic(Ga(e),t),l=i==null?void 0:i[mt];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(LE(n,i)&&(n!==void 0||Ml(e.base_,t)))return!0;rc(e),lc(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return ic(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,rc(e),lc(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ga(e),a=Reflect.getOwnPropertyDescriptor(n,t);return a&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:a.enumerable,value:n[t]}},defineProperty(){et(11)},getPrototypeOf(e){return ka(e.base_)},setPrototypeOf(){et(12)}},zl={};xl(ac,(e,t)=>{zl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),zl.deleteProperty=function(e,t){return zl.set.call(this,e,t,void 0)},zl.set=function(e,t,n){return ac.set.call(this,e[0],t,n,e[0])};function ic(e,t){const n=e[mt];return(n?Ga(n):e)[t]}function VE(e,t,n){var i;const a=Ep(t,n);return a?"value"in a?a.value:(i=a.get)==null?void 0:i.call(e.draft_):void 0}function Ep(e,t){if(!(t in e))return;let n=ka(e);for(;n;){const a=Object.getOwnPropertyDescriptor(n,t);if(a)return a;n=ka(n)}}function lc(e){e.modified_||(e.modified_=!0,e.parent_&&lc(e.parent_))}function rc(e){e.copy_||(e.copy_=Ju(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var kE=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,a)=>{if(typeof t=="function"&&typeof n!="function"){const l=n;n=t;const r=this;return function(o=l,...c){return r.produce(o,u=>n.call(this,u,...c))}}typeof n!="function"&&et(6),a!==void 0&&typeof a!="function"&&et(7);let i;if(nn(t)){const l=vp(this),r=sc(t,void 0);let s=!0;try{i=n(r),s=!1}finally{s?tc(l):nc(l)}return yp(l,a),bp(i,l)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Iu&&(i=void 0),this.autoFreeze_&&Wu(i,!0),a){const l=[],r=[];$a("Patches").generateReplacementPatches_(t,i,l,r),a(l,r)}return i}else et(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(r,...s)=>this.produceWithPatches(r,o=>t(o,...s));let a,i;return[this.produce(t,n,(r,s)=>{a=r,i=s}),a,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){nn(e)||et(8),fn(e)&&(e=QE(e));const t=vp(this),n=sc(e,void 0);return n[mt].isManual_=!0,nc(t),n}finishDraft(e,t){const n=e&&e[mt];(!n||!n.isManual_)&&et(9);const{scope_:a}=n;return yp(a,t),bp(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const a=$a("Patches").applyPatches_;return fn(e)?a(e,t):this.produce(e,i=>a(i,t))}};function sc(e,t){const n=Rl(e)?$a("MapSet").proxyMap_(e,t):Nl(e)?$a("MapSet").proxySet_(e,t):qE(e,t);return(t?t.scope_:gp()).drafts_.push(n),n}function QE(e){return fn(e)||et(10,e),Cp(e)}function Cp(e){if(!nn(e)||Es(e))return e;const t=e[mt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ju(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Ju(e,!0);return xl(n,(a,i)=>{pp(n,a,Cp(i))}),t&&(t.finalized_=!1),n}function GE(){const t="replace",n="add",a="remove";function i(f,p,b,E){switch(f.type_){case 0:case 2:return r(f,p,b,E);case 1:return l(f,p,b,E);case 3:return s(f,p,b,E)}}function l(f,p,b,E){let{base_:C,assigned_:g}=f,y=f.copy_;y.length<C.length&&([C,y]=[y,C],[b,E]=[E,b]);for(let h=0;h<C.length;h++)if(g[h]&&y[h]!==C[h]){const m=p.concat([h]);b.push({op:t,path:m,value:d(y[h])}),E.push({op:t,path:m,value:d(C[h])})}for(let h=C.length;h<y.length;h++){const m=p.concat([h]);b.push({op:n,path:m,value:d(y[h])})}for(let h=y.length-1;C.length<=h;--h){const m=p.concat([h]);E.push({op:a,path:m})}}function r(f,p,b,E){const{base_:C,copy_:g}=f;xl(f.assigned_,(y,h)=>{const m=Zu(C,y),v=Zu(g,y),_=h?Ml(C,y)?t:n:a;if(m===v&&_===t)return;const w=p.concat(y);b.push(_===a?{op:_,path:w}:{op:_,path:w,value:v}),E.push(_===n?{op:a,path:w}:_===a?{op:n,path:w,value:d(m)}:{op:t,path:w,value:d(m)})})}function s(f,p,b,E){let{base_:C,copy_:g}=f,y=0;C.forEach(h=>{if(!g.has(h)){const m=p.concat([y]);b.push({op:a,path:m,value:h}),E.unshift({op:n,path:m,value:h})}y++}),y=0,g.forEach(h=>{if(!C.has(h)){const m=p.concat([y]);b.push({op:n,path:m,value:h}),E.unshift({op:a,path:m,value:h})}y++})}function o(f,p,b,E){b.push({op:t,path:[],value:p===Iu?void 0:p}),E.push({op:t,path:[],value:f})}function c(f,p){return p.forEach(b=>{const{path:E,op:C}=b;let g=f;for(let v=0;v<E.length-1;v++){const _=Qa(g);let w=E[v];typeof w!="string"&&typeof w!="number"&&(w=""+w),(_===0||_===1)&&(w==="__proto__"||w==="constructor")&&et(19),typeof g=="function"&&w==="prototype"&&et(19),g=Zu(g,w),typeof g!="object"&&et(18,E.join("/"))}const y=Qa(g),h=u(b.value),m=E[E.length-1];switch(C){case t:switch(y){case 2:return g.set(m,h);case 3:et(16);default:return g[m]=h}case n:switch(y){case 1:return m==="-"?g.push(h):g.splice(m,0,h);case 2:return g.set(m,h);case 3:return g.add(h);default:return g[m]=h}case a:switch(y){case 1:return g.splice(m,1);case 2:return g.delete(m);case 3:return g.delete(b.value);default:return delete g[m]}default:et(17,C)}}),f}function u(f){if(!nn(f))return f;if(Array.isArray(f))return f.map(u);if(Rl(f))return new Map(Array.from(f.entries()).map(([b,E])=>[b,u(E)]));if(Nl(f))return new Set(Array.from(f).map(u));const p=Object.create(ka(f));for(const b in f)p[b]=u(f[b]);return Ml(f,Ol)&&(p[Ol]=f[Ol]),p}function d(f){return fn(f)?u(f):f}jE("Patches",{applyPatches_:c,generatePatches_:i,generateReplacementPatches_:o})}var At=new kE,Ul=At.produce,wp=At.produceWithPatches.bind(At);At.setAutoFreeze.bind(At),At.setUseStrictShallowCopy.bind(At);var _p=At.applyPatches.bind(At);At.createDraft.bind(At),At.finishDraft.bind(At);function Tp(e){return({dispatch:n,getState:a})=>i=>l=>typeof l=="function"?l(n,a,e):i(l)}var $E=Tp(),KE=Tp,YE=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ss:Ss.apply(null,arguments)},PE=e=>e&&typeof e.match=="function";function an(e,t){function n(...a){if(t){let i=t(...a);if(!i)throw new Error(ln(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:a[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=a=>hp(a)&&a.type===e,n}var Ap=class Wr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Wr.prototype)}static get[Symbol.species](){return Wr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Wr(...t[0].concat(this)):new Wr(...t.concat(this))}};function Op(e){return nn(e)?Ul(e,()=>{}):e}function _s(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function XE(e){return typeof e=="boolean"}var IE=()=>function(t){const{thunk:n=!0,immutableCheck:a=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let r=new Ap;return n&&(XE(n)?r.push($E):r.push(KE(n.extraArgument))),r},Ts="RTK_autoBatch",Ll=()=>e=>({payload:e,meta:{[Ts]:!0}}),xp=e=>t=>{setTimeout(t,e)},ZE=(e={type:"raf"})=>t=>(...n)=>{const a=t(...n);let i=!0,l=!1,r=!1;const s=new Set,o=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:xp(10):e.type==="callback"?e.queueNotification:xp(e.timeout),c=()=>{r=!1,l&&(l=!1,s.forEach(u=>u()))};return Object.assign({},a,{subscribe(u){const d=()=>i&&u(),f=a.subscribe(d);return s.add(u),()=>{f(),s.delete(u)}},dispatch(u){var d;try{return i=!((d=u==null?void 0:u.meta)!=null&&d[Ts]),l=!i,l&&(r||(r=!0,o(c))),a.dispatch(u)}finally{i=!0}}})},JE=e=>function(n){const{autoBatch:a=!0}=n??{};let i=new Ap(e);return a&&i.push(ZE(typeof a=="object"?a:void 0)),i};function WE(e){const t=IE(),{reducer:n=void 0,middleware:a,devTools:i=!0,preloadedState:l=void 0,enhancers:r=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(Jn(n))s=Xu(n);else throw new Error(ln(1));let o;typeof a=="function"?o=a(t):o=t();let c=Ss;i&&(c=YE({trace:!1,...typeof i=="object"&&i}));const u=DE(...o),d=JE(u);let f=typeof r=="function"?r(d):d();const p=c(...f);return dp(s,l,p)}function Mp(e){const t={},n=[];let a;const i={addCase(l,r){const s=typeof l=="string"?l:l.type;if(!s)throw new Error(ln(28));if(s in t)throw new Error(ln(29));return t[s]=r,i},addMatcher(l,r){return n.push({matcher:l,reducer:r}),i},addDefaultCase(l){return a=l,i}};return e(i),[t,n,a]}function eC(e){return typeof e=="function"}function tC(e,t){let[n,a,i]=Mp(t),l;if(eC(e))l=()=>Op(e());else{const s=Op(e);l=()=>s}function r(s=l(),o){let c=[n[o.type],...a.filter(({matcher:u})=>u(o)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,d)=>{if(d)if(fn(u)){const p=d(u,o);return p===void 0?u:p}else{if(nn(u))return Ul(u,f=>d(f,o));{const f=d(u,o);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},s)}return r.getInitialState=l,r}var Rp=(e,t)=>PE(e)?e.match(t):e(t);function Tn(...e){return t=>e.some(n=>Rp(n,t))}function Bl(...e){return t=>e.every(n=>Rp(n,t))}function As(e,t){if(!e||!e.meta)return!1;const n=typeof e.meta.requestId=="string",a=t.indexOf(e.meta.requestStatus)>-1;return n&&a}function jl(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function oc(...e){return e.length===0?t=>As(t,["pending"]):jl(e)?Tn(...e.map(t=>t.pending)):oc()(e[0])}function _i(...e){return e.length===0?t=>As(t,["rejected"]):jl(e)?Tn(...e.map(t=>t.rejected)):_i()(e[0])}function Os(...e){const t=n=>n&&n.meta&&n.meta.rejectedWithValue;return e.length===0?Bl(_i(...e),t):jl(e)?Bl(_i(...e),t):Os()(e[0])}function Wn(...e){return e.length===0?t=>As(t,["fulfilled"]):jl(e)?Tn(...e.map(t=>t.fulfilled)):Wn()(e[0])}function uc(...e){return e.length===0?t=>As(t,["pending","fulfilled","rejected"]):jl(e)?Tn(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):uc()(e[0])}var nC="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cc=(e=21)=>{let t="",n=e;for(;n--;)t+=nC[Math.random()*64|0];return t},aC=["name","message","stack","code"],fc=class{constructor(e,t){wt(this,"_type");this.payload=e,this.meta=t}},Np=class{constructor(e,t){wt(this,"_type");this.payload=e,this.meta=t}},iC=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of aC)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Dp="External signal was aborted",zp=(()=>{function e(t,n,a){const i=an(t+"/fulfilled",(o,c,u,d)=>({payload:o,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),l=an(t+"/pending",(o,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:o,requestStatus:"pending"}})),r=an(t+"/rejected",(o,c,u,d,f)=>({payload:d,error:(a&&a.serializeError||iC)(o||"Rejected"),meta:{...f||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:(o==null?void 0:o.name)==="AbortError",condition:(o==null?void 0:o.name)==="ConditionError"}}));function s(o,{signal:c}={}){return(u,d,f)=>{const p=a!=null&&a.idGenerator?a.idGenerator(o):cc(),b=new AbortController;let E,C;function g(h){C=h,b.abort()}c&&(c.aborted?g(Dp):c.addEventListener("abort",()=>g(Dp),{once:!0}));const y=async function(){var v,_;let h;try{let w=(v=a==null?void 0:a.condition)==null?void 0:v.call(a,o,{getState:d,extra:f});if(rC(w)&&(w=await w),w===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const x=new Promise((T,A)=>{E=()=>{A({name:"AbortError",message:C||"Aborted"})},b.signal.addEventListener("abort",E)});u(l(p,o,(_=a==null?void 0:a.getPendingMeta)==null?void 0:_.call(a,{requestId:p,arg:o},{getState:d,extra:f}))),h=await Promise.race([x,Promise.resolve(n(o,{dispatch:u,getState:d,extra:f,requestId:p,signal:b.signal,abort:g,rejectWithValue:(T,A)=>new fc(T,A),fulfillWithValue:(T,A)=>new Np(T,A)})).then(T=>{if(T instanceof fc)throw T;return T instanceof Np?i(T.payload,p,o,T.meta):i(T,p,o)})])}catch(w){h=w instanceof fc?r(null,p,o,w.payload,w.meta):r(w,p,o)}finally{E&&b.signal.removeEventListener("abort",E)}return a&&!a.dispatchConditionRejection&&r.match(h)&&h.meta.condition||u(h),h}();return Object.assign(y,{abort:g,requestId:p,arg:o,unwrap(){return y.then(lC)}})}}return Object.assign(s,{pending:l,rejected:r,fulfilled:i,settled:Tn(r,i),typePrefix:t})}return e.withTypes=()=>e,e})();function lC(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function rC(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var sC=Symbol.for("rtk-slice-createasyncthunk");function oC(e,t){return`${e}/${t}`}function uC({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[sC];return function(i){const{name:l,reducerPath:r=l}=i;if(!l)throw new Error(ln(11));const s=(typeof i.reducers=="function"?i.reducers(fC()):i.reducers)||{},o=Object.keys(s),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(m,v){const _=typeof m=="string"?m:m.type;if(!_)throw new Error(ln(12));if(_ in c.sliceCaseReducersByType)throw new Error(ln(13));return c.sliceCaseReducersByType[_]=v,u},addMatcher(m,v){return c.sliceMatchers.push({matcher:m,reducer:v}),u},exposeAction(m,v){return c.actionCreators[m]=v,u},exposeCaseReducer(m,v){return c.sliceCaseReducersByName[m]=v,u}};o.forEach(m=>{const v=s[m],_={reducerName:m,type:oC(l,m),createNotation:typeof i.reducers=="function"};hC(v)?pC(_,v,u,t):dC(_,v,u)});function d(){const[m={},v=[],_=void 0]=typeof i.extraReducers=="function"?Mp(i.extraReducers):[i.extraReducers],w={...m,...c.sliceCaseReducersByType};return tC(i.initialState,x=>{for(let T in w)x.addCase(T,w[T]);for(let T of c.sliceMatchers)x.addMatcher(T.matcher,T.reducer);for(let T of v)x.addMatcher(T.matcher,T.reducer);_&&x.addDefaultCase(_)})}const f=m=>m,p=new Map,b=new WeakMap;let E;function C(m,v){return E||(E=d()),E(m,v)}function g(){return E||(E=d()),E.getInitialState()}function y(m,v=!1){function _(x){let T=x[m];return typeof T>"u"&&v&&(T=_s(b,_,g)),T}function w(x=f){const T=_s(p,v,()=>new WeakMap);return _s(T,x,()=>{const A={};for(const[O,R]of Object.entries(i.selectors??{}))A[O]=cC(R,x,()=>_s(b,x,g),v);return A})}return{reducerPath:m,getSelectors:w,get selectors(){return w(_)},selectSlice:_}}const h={name:l,reducer:C,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:g,...y(r),injectInto(m,{reducerPath:v,..._}={}){const w=v??r;return m.inject({reducerPath:w,reducer:C},_),{...h,...y(w,!0)}}};return h}}function cC(e,t,n,a){function i(l,...r){let s=t(l);return typeof s>"u"&&a&&(s=n()),e(s,...r)}return i.unwrapped=e,i}var pt=uC();function fC(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function dC({type:e,reducerName:t,createNotation:n},a,i){let l,r;if("reducer"in a){if(n&&!mC(a))throw new Error(ln(17));l=a.reducer,r=a.prepare}else l=a;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,r?an(e,r):an(e))}function hC(e){return e._reducerDefinitionType==="asyncThunk"}function mC(e){return e._reducerDefinitionType==="reducerWithPrepare"}function pC({type:e,reducerName:t},n,a,i){if(!i)throw new Error(ln(18));const{payloadCreator:l,fulfilled:r,pending:s,rejected:o,settled:c,options:u}=n,d=i(e,l,u);a.exposeAction(t,d),r&&a.addCase(d.fulfilled,r),s&&a.addCase(d.pending,s),o&&a.addCase(d.rejected,o),c&&a.addMatcher(d.settled,c),a.exposeCaseReducer(t,{fulfilled:r||xs,pending:s||xs,rejected:o||xs,settled:c||xs})}function xs(){}function ln(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Up={exports:{}},Lp={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Hl=S;function gC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yC=typeof Object.is=="function"?Object.is:gC,vC=Hl.useSyncExternalStore,bC=Hl.useRef,SC=Hl.useEffect,EC=Hl.useMemo,CC=Hl.useDebugValue;Lp.useSyncExternalStoreWithSelector=function(e,t,n,a,i){var l=bC(null);if(l.current===null){var r={hasValue:!1,value:null};l.current=r}else r=l.current;l=EC(function(){function o(p){if(!c){if(c=!0,u=p,p=a(p),i!==void 0&&r.hasValue){var b=r.value;if(i(b,p))return d=b}return d=p}if(b=d,yC(u,p))return b;var E=a(p);return i!==void 0&&i(b,E)?(u=p,b):(u=p,d=E)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return o(t())},f===null?void 0:function(){return o(f())}]},[t,n,a,i]);var s=vC(e,l[0],l[1]);return SC(function(){r.hasValue=!0,r.value=s},[s]),CC(s),s},Up.exports=Lp;var wC=Up.exports;function Bp(e){e()}function _C(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Bp(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let a=e;for(;a;)n.push(a),a=a.next;return n},subscribe(n){let a=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!a||e===null||(a=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var jp={notify(){},get:()=>[]};function TC(e,t){let n,a=jp,i=0,l=!1;function r(E){u();const C=a.subscribe(E);let g=!1;return()=>{g||(g=!0,C(),d())}}function s(){a.notify()}function o(){b.onStateChange&&b.onStateChange()}function c(){return l}function u(){i++,n||(n=e.subscribe(o),a=_C())}function d(){i--,n&&i===0&&(n(),n=void 0,a.clear(),a=jp)}function f(){l||(l=!0,u())}function p(){l&&(l=!1,d())}const b={addNestedSub:r,notifyNestedSubs:s,handleChangeWrapper:o,isSubscribed:c,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>a};return b}var AC=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",OC=AC(),xC=()=>typeof navigator<"u"&&navigator.product==="ReactNative",MC=xC(),RC=()=>OC||MC?S.useLayoutEffect:S.useEffect,NC=RC();function Hp(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Fl(e,t){if(Hp(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Hp(e[n[i]],t[n[i]]))return!1;return!0}var dc=Symbol.for("react-redux-context"),hc=typeof globalThis<"u"?globalThis:{};function DC(){if(!S.createContext)return{};const e=hc[dc]??(hc[dc]=new Map);let t=e.get(S.createContext);return t||(t=S.createContext(null),e.set(S.createContext,t)),t}var ea=DC();function zC(e){const{children:t,context:n,serverState:a,store:i}=e,l=S.useMemo(()=>{const o=TC(i);return{store:i,subscription:o,getServerState:a?()=>a:void 0}},[i,a]),r=S.useMemo(()=>i.getState(),[i]);NC(()=>{const{subscription:o}=l;return o.onStateChange=o.notifyNestedSubs,o.trySubscribe(),r!==i.getState()&&o.notifyNestedSubs(),()=>{o.tryUnsubscribe(),o.onStateChange=void 0}},[l,r]);const s=n||ea;return S.createElement(s.Provider,{value:l},t)}var UC=zC;function mc(e=ea){return function(){return S.useContext(e)}}var Fp=mc();function qp(e=ea){const t=e===ea?Fp:mc(e),n=()=>{const{store:a}=t();return a};return Object.assign(n,{withTypes:()=>n}),n}var Vp=qp();function LC(e=ea){const t=e===ea?Vp:qp(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var BC=LC(),jC=(e,t)=>e===t;function HC(e=ea){const t=e===ea?Fp:mc(e),n=(a,i={})=>{const{equalityFn:l=jC}=typeof i=="function"?{equalityFn:i}:i,r=t(),{store:s,subscription:o,getServerState:c}=r;S.useRef(!0);const u=S.useCallback({[a.name](f){return a(f)}}[a.name],[a]),d=wC.useSyncExternalStoreWithSelector(o.addNestedSub,s.getState,c||s.getState,u,l);return S.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var kp=HC(),FC=Bp;const Ti=({ref:e,...t})=>{const{children:n,className:a,size:i="medium",icon:l,shape:r="circle",disabled:s,tag:o="div",type:c="ghost",color:u="primary","data-e2e":d="icon-button","data-component":f="icon-button",tabIndex:p=0,...b}=t,E=tp(l),C=I("sg-icon-button",r&&`sg-icon-button--shape-${r}`,i&&`sg-icon-button--${i}`,E&&"icon-button__legacy-icon",a);return S.createElement(Vu,{ref:e,className:C,disabled:s,tag:o,type:c,color:u,"data-e2e":d,"data-component":f,tabIndex:p,...b},l&&S.createElement(qt,{name:l,size:tE(E,i),className:"sg-icon-button__icon",tabIndex:null,"aria-hidden":!0}),n)};function qC(e,...t){return Object.entries(e).filter(([n])=>!t.includes(n)).reduce((n,[a,i])=>({...n,[a]:i}),{})}const VC=({children:e,tooltip:t,disabled:n,...a})=>S.createElement(ke,{className:"sg-form-label",color:n?"typography-disabled":"dark",align:"left",padding:e?["inherit","inherit","xx-small","inherit"]:"none",tag:"span","data-e2e":"form-label","data-component":"form-label",...a},e,t&&S.createElement(qt,{className:"sg-form-label-tooltip",name:"information",size:"12",color:"dark",tooltip:t,tabIndex:null})),kC=({validationMessageTemplate:e,validationMessage:t,state:n="hint",className:a,focused:i,showValidation:l,truncate:r=!0,"data-e2e":s="validation",...o})=>{const c=a?`${a} ${a}-${n}`:"",u=I("sg-validation",`sg-validation--${n}`,i&&"sg-validation--focused",l&&"sg-validation--error-visible",r&&"sg-validation--truncate",c);return!t&&!e?null:e?S.createElement("div",{className:u,...o,"data-e2e":s},e()):S.createElement("div",{className:u,...o,"data-e2e":s},S.createElement("span",null,t))};var QC=Object.defineProperty,GC=(e,t,n)=>t in e?QC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ka=(e,t,n)=>(GC(e,typeof t!="symbol"?t+"":t,n),n);const $C=new wl,KC=e=>e&&["error","warning"].includes(e),Qp=e=>{class t extends S.Component{constructor(){super(...arguments),Ka(this,"state",{debounce:null,props:{validationMessage:null,validationMessageTemplate:null}}),Ka(this,"debouncedTimerId",null),Ka(this,"setDebouncedState",()=>{const{state:a,_enableDebounce:i}=this.props;this.debouncedTimerId&&clearTimeout(this.debouncedTimerId);const l={props:{validationMessage:this.props.validationMessage,validationMessageTemplate:this.props.validationMessageTemplate}};if(i&&this.state.debounce&&a==="error"){this.debouncedTimerId=setTimeout(()=>this.setState(l),500);return}this.setState(l)}),Ka(this,"onBlurHandler",a=>{this.props.onBlur&&this.props.onBlur(a)}),Ka(this,"onFocusHandler",a=>{this.props.onFocus&&this.props.onFocus(a)}),Ka(this,"onKeyDownHandler",a=>{this.setState({debounce:!0}),this.props.onKeyDown&&this.props.onKeyDown(a)})}componentDidMount(){this.setDebouncedState()}componentDidUpdate(a){(this.props.value!==a.value||this.props.state!==a.state||this.props.validationMessage!==a.validationMessage)&&this.setDebouncedState()}render(){const{state:a,size:i,style:l,className:r,label:s,fieldClassName:o,tag:c,wrapperClassName:u,validationClassName:d,truncateValidationMessage:f,labelTooltip:p,forwardedRef:b,...E}=this.props,{validationMessage:C,validationMessageTemplate:g}=this.state.props,y=qC(E,"validationMessage","validationMessageTemplate"),h=I("sg-field-label",r),m=KC(a),v=!!(C||g),_=I("sg-field-wrapper",`sg-field-wrapper--${i}`,a&&`sg-field-wrapper--${a}`,E.readOnly&&"sg-field-wrapper--readonly",E.disabled&&"sg-field-wrapper--disabled",v&&"sg-field-wrapper--has-validation",this.props.isFocused&&"sg-field-wrapper--focused",u),w=I("sg-field",o);return a==="hint"&&$C.log('The "hint" state of withFormField is deprecated and scheduled for removal in future versions.'),S.createElement(c,{className:h,style:l,"data-disabled":E.disabled,"data-e2e":`${E["data-e2e"]}-label`,onFocus:this.onFocusHandler,onBlur:this.onBlurHandler},S.createElement(VC,{color:E.disabled?"typography-disabled":"dark",tooltip:p},s),S.createElement("span",{className:_},S.createElement(e,{...y,ref:b,size:i,state:a,className:w,onKeyDown:this.onKeyDownHandler,hasValidationMessage:v})),S.createElement(kC,{"aria-live":"polite",validationMessageTemplate:g,validationMessage:C,state:a,className:d,focused:this.props.isFocused,showValidation:m,truncate:f}))}}return Ka(t,"defaultProps",{_enableDebounce:!0,size:"medium",tag:"label","data-e2e":"form-field"}),({ref:n,...a})=>S.createElement(t,{...a,forwardedRef:n})};Qp.displayName="withFormField";const YC={small:18,medium:22,large:24},PC=({checked:e,checkedIcon:t,uncheckedIcon:n,size:a,disabled:i,renderCheckInputControl:l})=>l?l(e):ie.createElement("span",{className:"sg-check-input-base__icon-wrapper"},ie.createElement(qt,{name:e?t:n,multicolor:!0,className:I("sg-check-input-base__icon",i&&"sg-check-input-base__icon--disabled"),size:YC[a]}),ie.createElement("span",{className:"sg-check-input-base__focus-ring"},ie.createElement(hs,{disabled:i,shape:"circle"}))),XC=new wl,IC=e=>{const{checked:t,inputType:n,children:a,className:i,disabled:l,reverse:r,size:s="medium",style:o,tabIndex:c=0,checkedIcon:u,uncheckedIcon:d,wrapperRef:f,inputRef:p,role:b,onWrapperKeyDown:E,renderCheckInputControl:C,"data-e2e":g="check-input-base","data-component":y="check-input-base",inputDataE2E:h,"aria-label":m,"aria-describedby":v,"aria-labelledby":_,...w}=e;let x=s;s==="x-large"&&(XC.log('The "x-large" value of "size" prop in Checkbox/RadioButton/Switch is scheduled for removal in future versions. It currently falls back to "large".'),x="large");const T=S.useCallback(O=>{if(E){E(O);return}O.key===we.SPACE&&(O.preventDefault(),O.stopPropagation(),O.target.parentElement.querySelector('[data-html="input"]').click())},[E]),A=I("sg-check-input-base",i,l&&"sg-check-input-base--disabled",t&&"sg-check-input-base--checked",r&&"sg-check-input-base--reverse",`sg-check-input-base--${x}`);return S.createElement("label",{ref:f,className:A,style:o,"data-e2e":g,"data-component":y,onKeyDown:T,tabIndex:c,role:b,"aria-checked":t,"aria-label":m,"aria-describedby":v,"aria-labelledby":_},S.createElement("input",{className:"sg-check-input-base__input",checked:t,...Ae(w),"data-e2e":h,"data-html":"input",ref:p,type:n,disabled:l}),S.createElement(PC,{renderCheckInputControl:C,checked:t,checkedIcon:u,uncheckedIcon:d,size:x,disabled:l}),a&&S.createElement(ke,{className:"sg-check-input-base__content",tag:"span",size:x,color:l?"typography-disabled":"typography-primary"},a))},ZC=({icon:e,iconColor:t,iconSize:n,state:a})=>{const i=a==="presentational"?"72":"30",l=a==="presentational"?"48":"20";return S.createElement(Tt.Consumer,null,({device:r})=>S.createElement(qt,{name:e,color:t,size:n||(r.isDesktop?i:l),multicolor:!t}))},Gp=({ref:e,...t})=>{const[n,a]=S.useState(null),[i,l]=S.useState(null);S.useEffect(()=>{const z=os("sg-dialog-");a(z+"-title"),l(z+"-subtitle")},[]);const{autoFocus:r,align:s="center",children:o,className:c,density:u="medium",icon:d,iconColor:f,iconSize:p,footer:b,renderCustomHeader:E=()=>null,onCloseHandler:C,triggerClose:g,size:y="medium",state:h,title:m,subTitle:v,wrapperClassName:_,autoFocusTitle:w=!0,disableClose:x,"data-e2e":T="dialog","data-component":A="dialog",...O}=t,R=I("sg-dialog",`sg-dialog--align-${s}`,`sg-dialog--size-${y}`,u&&`sg-dialog--density-${u}`,h?`sg-dialog--state-${h}`:"sg-dialog--no-state",c),D=m||v;return S.createElement(X2,{className:R,wrapperClassName:_,disableClose:x,autoFocus:r,"data-e2e":T,"data-component":A,...Ae(O),ref:e,renderCustomHeader:E,onCloseHandler:C,triggerClose:g,padding:y==="viewport"?"none":void 0,role:"dialog","aria-modal":"true","aria-labelledby":n,"aria-describedby":i},S.createElement("div",{className:"sg-dialog__content-wrapper"},d&&S.createElement("div",{className:"sg-dialog__icon-wrapper"},S.createElement("div",{className:"sg-dialog__icon"},S.createElement(ZC,{icon:d,iconColor:f,iconSize:p,state:h}))),D&&S.createElement("div",{className:"sg-dialog__title-wrapper"},m&&S.createElement(tn,{id:n,level:"3",weight:"medium",className:"sg-dialog__title",align:s,tabIndex:w?0:null},m),v&&S.createElement(ke,{id:i,weight:"bold",color:"dark",align:s},v)),S.createElement("div",{className:"sg-dialog__content"},o)),b&&S.createElement(K2,{density:"comfortable",justify:"flex-end"},b))};Gp.displayName="Dialog";const JC=fs(e=>{const{addonType:t,addonClasses:n,device:a,numberOfCharactersToTrim:i,onMouseEnter:l,onMouseLeave:r,"data-e2e":s="addon",...o}=e,c=a&&a.isPhone?A2:T2,u=i||c,d=t.length>=u,f=I(d&&"sg-input-text-truncate");return S.createElement("div",{key:`${t}`,className:n,onMouseEnter:p=>{l&&d&&l(p)},onMouseLeave:p=>{r&&d&&r(p)},"data-e2e":s},d&&S.createElement("span",{...o}),S.createElement("span",{className:f},t))});var WC=Object.defineProperty,e3=(e,t,n)=>t in e?WC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ql=(e,t,n)=>(e3(e,typeof t!="symbol"?t+"":t,n),n);const pc="prefix",Ms="suffix",gc="password",t3="text";class $p extends S.Component{constructor(){super(...arguments),ql(this,"state",{isPasswordVisible:!1}),ql(this,"getAddonTemplate",t=>{const{forceAddonClass:n,disableTogglePassword:a,type:i}=this.props,{addon:l,addonTypeIsString:r,addonClasses:s}=this.getAddonProps(t,n),o=i===gc&&t===Ms&&!a;return!l&&!o?null:l&&r?S.createElement(JC,{key:t,addonType:l,addonClasses:s,tooltip:l}):this.renderDefaultAddon(t,l,s,o)}),ql(this,"togglePasswordVisibility",t=>{t.preventDefault(),this.setState({isPasswordVisible:!this.state.isPasswordVisible})}),ql(this,"handleKeyUp",t=>{const{onPressEnter:n,onKeyUp:a}=this.props;t.key===we.ENTER&&n&&n(),a&&a(t)})}componentDidUpdate(t,n,a){t.visiblePassword!==this.props.visiblePassword&&this.setState({isPasswordVisible:this.props.visiblePassword})}getAddonProps(t,n){const a=this.props[t],i=typeof a=="string",l=I("sg-input-addon",`sg-input-addon__size--${this.props.size}`,pc===t&&"sg-input-addon--prefix",Ms===t&&"sg-input-addon--suffix",this.props.hasValidationMessage&&"sg-input-addon--has-validation",this.props.disabled&&"sg-input-addon--disabled",n&&typeof a!="string"&&"sg-input-addon--component",Ms===t&&n&&typeof a!="string"&&"sg-input-addon--component-suffix",pc===t&&n&&typeof a!="string"&&"sg-input-addon--component-prefix");return{addon:a,addonTypeIsString:i,addonClasses:l}}renderDefaultAddon(t,n,a,i){return S.createElement("span",{key:t,className:a},i&&S.createElement(Ti,{icon:this.state.isPasswordVisible?"material/visibility":"material/visibility_off",size:"x-small",onClick:this.togglePasswordVisibility,"data-e2e":this.state.isPasswordVisible?"password-hide":"password-show",role:"switch","aria-label":"show password","aria-checked":this.state.isPasswordVisible}),n)}render(){const{onRefsReady:t,type:n,className:a,tabIndex:i,"data-e2e":l,"data-component":r,...s}=this.props,o=this.state.isPasswordVisible?t3:gc;return S.createElement(S.Fragment,null,this.getAddonTemplate(pc),S.createElement("input",{className:I("sg-input",a),"data-e2e":l,"data-component":r,tabIndex:i,...Ae(s),onKeyUp:this.handleKeyUp.bind(this),ref:c=>{t&&t(c)},type:n===gc?o:n}),this.getAddonTemplate(Ms))}}ql($p,"defaultProps",{disableTogglePassword:!1,forceAddonClass:!0,"data-e2e":"input","data-component":"input",tabIndex:0});const n3=Qp($p),a3=({iconSize:e})=>S.createElement("div",{className:"sg-loader__spinner","data-e2e":"loader-spinner"},S.createElement(qt,{name:"loader",color:"success",size:e,multicolor:!0})),Kp=({background:e="default",children:t,className:n,delay:a=1e3,density:i="medium",hideSpinner:l=!1,iconSize:r="50",position:s="fixed",spinnerPosition:o="sticky",border:c="none",borderRadius:u="inherit",tabIndex:d=0,autoFocus:f=!1,renderCustomIcon:p=a3,...b})=>{const[E,C]=S.useState(null);S.useEffect(()=>{if(a===0){C(!0);return}const m=setTimeout(()=>C(!0),a);return()=>clearTimeout(m)},[a]);const g=I("sg-loader",`sg-loader--density-${i}`,`sg-loader--position-${s}`,`sg-loader--background-${e}`,zu(c,u),n),y=I("sg-loader__content",`sg-loader__content--position-${o}`,!E&&"sg-loader__content--transparent"),h=I("sg-loader__message",`sg-loader__message--color-${e}`);return S.createElement(Bu,{autoFocus:f,"data-e2e":"loader","data-component":"loader"},S.createElement(ju,null),S.createElement("div",{className:g,"data-e2e":"loader-content",...Ae(b),"aria-busy":"true","aria-live":"polite",tabIndex:d},E&&S.createElement("div",{className:y},!l&&p({iconSize:r}),t&&S.createElement("div",{className:h,"data-e2e":"loader-message"},t))))},i3={success:"success",error:"error",warning:"warning",info:"information",hint:"information"},l3=e=>{const{className:t,device:n,message:a,title:i,type:l,onClose:r,children:s,style:o,enter:c,onEnter:u,onEntered:d,onEntering:f,exit:p,onExit:b,onExited:E,onExiting:C,"data-e2e":g="notification","data-component":y="notification",tabIndex:h=-1,...m}=e,v=S.useRef(null),_=I("sg-notification",l&&`sg-notification--${l}`,t);return S.createElement(ps,{classNames:"sg-notification--animation",...Ae(m),in:e.in,nodeRef:v,enter:c,onEnter:u,onEntered:d,onEntering:f,exit:p,onExit:b,onExited:E,onExiting:C,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:1,exit:500}},S.createElement("div",{ref:v,style:o,className:_,"data-e2e":g,"data-e2e-status":l,"data-component":y,tabIndex:h},S.createElement("div",{className:"sg-notification__icon"},S.createElement(qt,{name:i3[l],color:"white",size:n.isPhone?"15":"20"})),S.createElement("div",{className:"sg-notification__content","data-e2e":"notification-content"},S.createElement(La,{gap:"x-small"},S.createElement("div",null,S.createElement(tn,{level:"6",className:"sg-notification__title"},i),a&&S.createElement(ke,{size:"small",color:"dark"},a)),s)),S.createElement("div",{className:"sg-notification__close-icon","data-e2e":"notification-close-icon"},r&&S.createElement(Ti,{icon:"material/close",size:"small",onClick:r,tabIndex:-1}))))},Yp=e=>S.createElement(Tt.Consumer,null,({device:t})=>S.createElement(l3,{...e,device:t}));Yp.displayName="Notification";const r3=Yp,s3=({className:e,children:t,...n})=>{const a=I("sg-notifications",(!t||t.length===0)&&"sg-notifications-is-empty",e);return S.createElement(gs,{className:a,...Ae(n),role:"alert","data-e2e":"notifications","data-component":"notifications"},t)},o3=e=>{const{background:t="white",children:n,className:a,icon:i="presentational-paper-rocket-dotted",iconColor:l="primary",iconSize:r,iconClassName:s,message:o,title:c,border:u="default",borderRadius:d,handleKeyDown:f,tabIndex:p=0,titleProps:b={weight:"regular",level:"4"},multicolor:E=!1,"data-e2e":C="empty-data-placeholder","data-component":g="empty-data-placeholder",...y}=e,h=I("sg-placeholder",a),m=I("sg-placeholder-wrapper",u&&`sg-placeholder-border--${u}`,`sg-placeholder--background-${t}`,d&&`sg-placeholder-wrapper--border-radius-${d}`),v="120";return S.createElement("div",{className:m,"data-e2e":C,"data-component":g,tabIndex:p,onKeyDown:f,role:"figure",...Ae(y)},S.createElement(La,{gap:Tu()?"medium":"x-large",justify:"center",justifyItems:"center",align:"center",className:h,"data-e2e":C},S.createElement(qt,{name:i,color:l,width:r||v,height:r||v,className:s,multicolor:E}),S.createElement(La,{gap:"xx-small"},c&&S.createElement(tn,{...b,align:"center",weight:"bold"},c),o&&S.createElement(ke,{align:"center"},o)),n))},Vl=e=>{const{checked:t,className:n,disabled:a,label:i,size:l="medium","data-e2e":r="switch","data-component":s="switch",onChange:o,...c}=e,u=I("sg-switch",`sg-switch--${l}`,a&&"sg-switch--disabled",t&&"sg-switch--checked",n);return S.createElement(IC,{inputType:"checkbox",className:u,checked:t,size:l,renderCheckInputControl:()=>S.createElement("span",{className:"sg-switch__slider"},S.createElement("span",{className:"sg-switch__knob-touch-area"},S.createElement("span",{className:"sg-switch__knob-state-area"},S.createElement("span",{className:"sg-switch__knob"}),S.createElement(hs,{shape:"circle"})))),role:"switch","data-e2e":r,"data-component":s,inputDataE2E:"checkbox-input",onChange:o,...c},i)};Vl.displayName="Switch";const u3=fs(ke,{preventTooltipOnMobile:!0,delay:1e3}),Rs=e=>{const{children:t,colSpan:n,dataAttributes:a,cellHeight:i="medium",isInColumnSelection:l,isInRowSelection:r,isFirst:s,style:o,className:c,tabIndex:u=-1,"data-e2e":d="table-cell","data-component":f="table-cell","aria-describedby":p}=e,E={className:I("sg-table__cell",c,`sg-table__cell--height-${i}`,l&&"sg-table__cell--is-selected",r&&"sg-table__cell--is-in-row-selection"),colSpan:n,tabIndex:u,...a,style:o,"data-e2e":d,"data-component":f,"aria-describedby":p};return typeof t=="string"?S.createElement(Tt.Consumer,null,({device:C})=>S.createElement("td",{...E},s&&C.isPhone?S.createElement(tn,{truncate:!0,level:"4"},t):S.createElement(u3,{truncate:!0,tooltip:t},t))):S.createElement("td",{...E},t)},yc=({ref:e,...t})=>{const{className:n,children:a,loading:i,dragAndDrop:l,onClick:r=()=>null,onContextMenu:s=()=>null,onRefsReady:o=null,onRowPress:c=()=>null,onRowTap:u=()=>null,"data-e2e":d="table-row"}=t,{handleTouchStart:f,handleTouchEnd:p,handleClickStart:b,handleClickEnd:E}=u2(c,u);let C=1;Array.isArray(a)&&(C=a.reduce((h,m)=>h.concat(m),[]).filter(Boolean).length);const g=S.useCallback(h=>{e&&(e.current=h),o&&o(h)},[e,o]);let y={...l};return l||(y={...y,onMouseDown:b,onMouseUp:E,onTouchStart:f,onTouchEnd:p}),S.createElement("tr",{ref:g,className:I(n,"sg-table__row",i&&"table-row--loading"),onContextMenu:s,"data-e2e":d,...y},i?S.createElement(Rs,{className:"table-row__cell--loading",colSpan:C},S.createElement("div",{className:"table-row__loader-wrapper"},S.createElement(Kp,{density:"none",position:"absolute",iconSize:"40"}))):a)},Pp=e=>e.length!==0&&e.find(t=>!!t.footer),c3=({cell:e,device:t})=>t.isPhone?{width:e.smSize,maxWidth:e.smSize,...e.style}:t.isTablet?{width:e.mSize||e.smSize,maxWidth:e.mSize||e.smSize,...e.style}:t.isDesktop?{width:e.lgSize||e.mSize||e.smSize,maxWidth:e.lgSize||e.mSize||e.smSize,...e.style}:{...e.style},Xp=({tableId:e,index:t})=>`${e}-th-${t}`;var f3=Object.defineProperty,d3=(e,t,n)=>t in e?f3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vc=(e,t,n)=>(d3(e,typeof t!="symbol"?t+"":t,n),n);class Ip extends S.Component{constructor(t){super(t),vc(this,"id"),vc(this,"rowRefs",new vE),this.id=os()}getRowKey(t){const{rowKey:n}=this.props;return t[n]||JSON.stringify(t)}getTransitionGroupProps(t,n){const a={className:"sg-table__body",component:"tbody","data-e2e":"table-body"};return this.props.reordable&&t&&n?{...a,id:this.id,ref:i=>i&&t.innerRef(document.querySelector(`#${i.props.id}`)),style:{background:n.isDraggingOver?"#25b8d2":"transparent",width:"100%"}}:a}getCSSTransitionProps(t){return this.props.disableRowAnimation?null:{classNames:"sg-table__row--animation",timeout:500,nodeRef:t}}getTableRowProps({row:t,nodeRef:n,provided:a=null,snapshot:i=null}){const{onContextMenuHandler:l,onRowPress:r,onRowTap:s,reordable:o,rowSelectionHandler:c,shouldRowLoading:u}=this.props,d={onContextMenu:f=>l({selectedRow:t,event:f}),onRowTap:f=>{c(t,f),s(t,f)},onRowPress:f=>r(t,f),loading:u(t),"data-e2e":"table-row",ref:n};return o&&a&&i?{...d,dragAndDrop:{...a.draggableProps,...a.dragHandleProps},onRefsReady:a.innerRef,style:{userSelect:"none",...a.draggableProps.style}}:d}isRowExpanded(t){const{isExpandedRowInComponentProps:n,expandableTemplate:a}=this.props,i=!!a;return n(t)&&i}renderTableCell({column:t,index:n,rowIndex:a}){const{data:i,cellHeight:l,isSelectedRowInComponentState:r,selectedColumns:s,tableId:o}=this.props,c=i[a];if(!c)return null;const u=c[t.accessor],d=t.render?t.render(u,c):u,f=s.includes(n),p=r(c);return S.createElement(Rs,{key:`${a}-${n}`,cellHeight:l,isInColumnSelection:f,isInRowSelection:p,isFirst:n===0,style:t.style,className:t.className,"aria-describedby":Xp({tableId:o,index:n}),dataAttributes:{"data-label":typeof t.header=="string"?t.header:null,"data-cell-index":n,"data-row-index":a}},d)}renderTableRow({row:t,rowIndex:n,draggableProvided:a,draggableSnapshot:i}){const l=this.props.columns,r=this.getRowKey(t),s=this.rowRefs.get(r);return S.createElement(yc,{...this.getTableRowProps({row:t,nodeRef:s,provided:a,snapshot:i})},l.map((o,c)=>this.renderTableCell({column:o,index:c,rowIndex:n})))}render(){const{columns:t,data:n,expandableTemplate:a,disableRowAnimation:i}=this.props,l=i?"tbody":gs,r=i?S.Fragment:ps;return S.createElement(Tt.Consumer,null,({device:s})=>S.createElement(l,{...this.getTransitionGroupProps()},n.map((o,c)=>{const u=this.getRowKey(o),d=this.rowRefs.get(u);return S.createElement(r,{key:u,...this.getCSSTransitionProps(d)},S.createElement(S.Fragment,null,S.createElement(yc,{...this.getTableRowProps({row:o,nodeRef:d}),className:this.isRowExpanded(o)?"sg-table__row-expanded":null},t.slice(0,-1).map((f,p)=>this.renderTableCell({column:f,index:p,rowIndex:c})),s.isPhone&&this.isRowExpanded(o)&&S.createElement(Rs,{className:"sg-table__cell-expandable-wrapper",dataAttributes:{colSpan:t.length}},a(o,c)),t.slice(-1).map(f=>this.renderTableCell({column:f,index:t.length-1,rowIndex:c}))),!s.isPhone&&this.isRowExpanded(o)&&S.createElement(yc,null,S.createElement(Rs,{className:"sg-table__cell-expandable-wrapper",dataAttributes:{colSpan:t.length},style:{padding:0}},a(o,c)))))})))}}vc(Ip,"defaultProps",{"data-e2e":"table-body"});const h3=(e,t,n)=>Array(e).fill(null).map((i,l,r)=>S.createElement("td",{key:l,className:"sg-table__cell sg-table__cell--height-medium","data-e2e":t,"data-component":n},S.createElement("div",{className:"sg-table__cell--skeleton"}))),m3=e=>{const{columnLength:t,rowLength:n=5,tableHead:a,tabIndex:i=-1,"data-e2e":l="table-cell","data-component":r="table-cell"}=e,s=Array(n).fill(null);return S.createElement("table",{className:"sg-table",tabIndex:i},a,S.createElement("tbody",null,s.map((o,c)=>S.createElement("tr",{key:c,className:"sg-table__row"},h3(t,l,r)))))};var p3=Object.defineProperty,g3=(e,t,n)=>t in e?p3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ot=(e,t,n)=>(g3(e,typeof t!="symbol"?t+"":t,n),n);const y3=new wl,bc="data-row-index",Sc="data-cell-index";class kl extends S.Component{constructor(t){super(t),Ot(this,"state",{selectedRows:[]}),Ot(this,"tableWrapperRef"),Ot(this,"tableRef"),Ot(this,"tableId",null),Ot(this,"onTableClick",n=>{let a=n.target;if(a.tagName!=="td"&&(a=a.closest("td")),a===null)return;const l=Number(a.getAttribute(bc)),r=Number(a.getAttribute(Sc));this.props.onCellSelection({rowIndex:l,colIndex:r})}),Ot(this,"getColumnRender",(n,a,i)=>n[0].render?n[0].render(a,i):a),Ot(this,"handleCellNavigation",({event:n,cellAccumulator:a=0,rowAccumulator:i=0})=>{const l=a<0||i<0;Cn({event:n,isDirectionForward:!l,onComponentFiltering:r=>{const s=n.target,o=s.getAttribute(Sc),c=s.getAttribute(bc);if(o===null||c===null)return;const u=String(Number(c)+i),d=String(Number(o)+a);return r.getAttribute(bc)===u&&r.getAttribute(Sc)===d},onSuccessCallback:r=>{const s=this.tableRef.querySelectorAll('td[tabindex="0"]');s.length&&Array.from(s).forEach(o=>{o.setAttribute("tabindex","-1")}),r.setAttribute("tabindex",0)}})}),Ot(this,"handleOnKeyDown",n=>{const a=n.target.getAttribute("data-component"),i=a&&a.indexOf("table")>-1;as(n)&&i&&Cn({event:n,startingElement:this.tableRef}),is(n)&&i&&Cn({event:n,startingElement:this.tableRef,isDirectionForward:!1});const l=In(n.target);switch(n.key){case we.DOWN:n.target===this.tableWrapperRef&&Xn(l),this.handleCellNavigation({event:n,rowAccumulator:1});return;case we.UP:this.handleCellNavigation({event:n,rowAccumulator:-1});return;case we.RIGHT:this.handleCellNavigation({event:n,cellAccumulator:1});return;case we.LEFT:this.handleCellNavigation({event:n,cellAccumulator:-1});return;case we.ENTER:case we.SPACE:i&&(n.preventDefault(),n.stopPropagation()),Xn(l);return;default:return}}),Ot(this,"renderNoData",()=>{const{noDataProps:n,customNoDataComponent:a,translation:i}=this.props;return a||S.createElement(o3,{background:"white",border:"none",icon:"presentational-no-data-dotted",title:i.placeholderTitle,borderRadius:"medium",handleKeyDown:l=>{l.key!==we.ESCAPE&&l.stopPropagation()},...n})}),Ot(this,"renderDataTable",n=>{const{classesTable:a,propsToPropagate:i,showHeaderWithNoData:l,data:r}=n;return this.props.showSkeleton?S.createElement(m3,{tableHead:this.renderHead(),columnLength:Number(this.props.columns&&this.props.columns.length),rowLength:this.props.skeletonRowCount}):r.length===0&&!l?this.renderNoData():S.createElement(S.Fragment,null,S.createElement("table",{ref:s=>{this.tableRef=s},className:a,...Ae(i)},this.renderHead(),this.renderBody(),this.renderFooter()),r.length===0&&this.renderNoData())}),this.tableId=os("sg-table-")}componentDidMount(){const{selectedRows:t}=this.props;this.props.onCellSelection&&this.tableRef&&this.tableRef.addEventListener("click",this.onTableClick,!1),t&&this.setState({selectedRows:Array.from(new Set(t))})}componentDidUpdate(t){t.data.length!==this.props.data.length&&this.setState({selectedRows:[]}),rs(this.state.selectedRows,Array.from(new Set(this.props.selectedRows)))||this.setState({selectedRows:Array.from(new Set(this.props.selectedRows))}),this.tableRef&&t.onCellSelection&&!this.props.onCellSelection&&this.tableRef.removeEventListener("click",this.onTableClick,!1),this.tableRef&&!t.onCellSelection&&this.props.onCellSelection&&this.tableRef.addEventListener("click",this.onTableClick,!1)}componentWillUnmount(){this.tableRef&&this.tableRef.removeEventListener("click",this.onTableClick,!1)}onRowSelection(t){this.props.onRowSelection(t)}onContextMenuHandler({event:t,selectedRow:n}){if(!this.props.selectable)return;const a=this.state.selectedRows.find(i=>rs(i,n));if(this.state.selectedRows.length<=1||!a){this.setState({selectedRows:[n]},this.props.onRowContextMenu({event:t,selectedRows:[n]}));return}this.props.onRowContextMenu({event:t,selectedRows:this.state.selectedRows})}getColumnsToRender(t=!1){const{reordable:n,columns:a,expandableTemplate:i,onExpandToggle:l,translation:r}=this.props,s=!!i;if(s&&t)return Ba(a).concat({className:"sg-table__expand-toggle",render:(c,u)=>S.createElement(ja,{type:"ghost",color:"primary",onClick:()=>l(u)},this.isExpandedRowInComponentProps(u)?r.collapse:r.expand)});if(s){const o=Ba(a);return o[0].render=(c,u)=>S.createElement("div",null,S.createElement(qt,{size:"12",tabIndex:-1,color:"primary",className:"sg-icon-expandable",onClick:()=>l(u),name:this.isExpandedRowInComponentProps(u)?"material/remove":"material/add"}),this.getColumnRender(a,c,u)),o}if(n){const o=Ba(a);return o[0].render=(c,u)=>S.createElement("div",{className:"sg-table__cell-dnd-wrapper"},this.getColumnRender(a,c,u)),o}return a}getEventKeys(t){return t.nativeEvent?{ctrlKey:t.nativeEvent.ctrlKey,metaKey:t.nativeEvent.metaKey,shiftKey:t.nativeEvent.shiftKey}:{ctrlKey:t.srcEvent.ctrlKey,metaKey:t.srcEvent.metaKey,shiftKey:t.srcEvent.shiftKey}}isSelectedRowInComponentState(t){const{rowKey:n}=this.props;return n?!!this.state.selectedRows.find(a=>a[n]===t[n]):!!this.state.selectedRows.find(a=>this.areObjectsEqual(a,t))}isExpandedRowInComponentProps(t){const{expandedRows:n}=this.props;return!!n&&!!n.find(a=>this.areObjectsEqual(a,t))}areObjectsEqual(t,n){return JSON.stringify(t)===JSON.stringify(n)}toggleRowSelection(t){const n=this.isSelectedRowInComponentState(t)?[]:[t];this.setState({selectedRows:n},this.onRowSelection(n))}toggleRowsSelection(t,n){const{data:a}=this.props,{ctrlKey:i,metaKey:l,shiftKey:r}=this.getEventKeys(n),s=a.findIndex(c=>this.areObjectsEqual(c,t));let o=[];if(r){const c=a.findIndex(p=>this.areObjectsEqual(p,this.state.selectedRows[0])),u=this.state.selectedRows.length>0?c:s,d=Math.min(s,u),f=Math.max(s,u);for(let p=d;p<=f;p++)o.push(a[p])}(i||l)&&(o=o.concat(this.state.selectedRows),this.isSelectedRowInComponentState(t)?o=this.state.selectedRows.filter(c=>this.areObjectsEqual(c,t)):o.push(a[s])),this.setState({selectedRows:o},this.onRowSelection(o))}rowSelectionHandler(t,n){const{ctrlKey:a,metaKey:i,shiftKey:l}=this.getEventKeys(n);if(this.props.selectable){if(l||a||i){this.toggleRowsSelection(t,n);return}this.toggleRowSelection(t)}}isColumnSelected(t){return this.props.selectedColumns.includes(t)}renderHead(){const{headerBackground:t,cellHeight:n}=this.props,a=I("sg-table__head",`sg-table__head--background-${t}`),i=this.getColumnsToRender();return!i.length||!i.find(l=>l.header)?null:S.createElement("thead",{className:a,"data-e2e":"table-head"},S.createElement("tr",null,i.map((l,r)=>{const s=l.renderHead?l.renderHead:l.header,o=l.header!==void 0?l.header:l.accessor,c=this.isColumnSelected(r),u=I("sg-table__cell","sg-table__head-cell",`sg-table__cell--height-${n}`,c&&"sg-table__cell--is-selected"),d=c3({cell:l,device:this.context.device});return S.createElement("th",{id:Xp({tableId:this.tableId,index:r}),className:u,key:r,style:d,"data-cell-index":r,"data-row-index":-1,"data-component":"table-head",tabIndex:r===0?0:-1},typeof s=="function"?s(o):o)})))}renderFooter(){const{footerBackground:t,cellHeight:n}=this.props,a=this.props.columns,i=I("sg-table__footer",`sg-table__footer--background-${t}`);return Pp(a)?S.createElement("tfoot",{className:i,"data-e2e":"table-footer"},S.createElement("tr",null,a.map((l,r)=>{const s=this.isColumnSelected(r),o=I("sg-table__cell",`sg-table__cell--height-${n}`,s&&"sg-table__cell--is-selected");return y3.log('Using "cell.renderFooterCell" as function will be deprecated.'),S.createElement("td",{className:o,key:`table-footer-${r}`,style:{...l.style},"data-cell-index":r},l.footer?this.renderFooterCell(l):"")}))):null}renderFooterCell(t){return typeof t.footer=="function"?t.footer():t.footer}renderBody(){const{data:t,onReorder:n,onRowPress:a,onRowTap:i,reordable:l,rowKey:r,selectedColumns:s,shouldRowLoading:o,expandableTemplate:c,disableRowAnimation:u,cellHeight:d}=this.props;return S.createElement(Ip,{columns:this.getColumnsToRender(this.context.device.isPhone),data:t,cellHeight:d,disableRowAnimation:u,expandableTemplate:c,isSelectedRowInComponentState:f=>this.isSelectedRowInComponentState(f),isExpandedRowInComponentProps:f=>this.isExpandedRowInComponentProps(f),onContextMenuHandler:({event:f,selectedRow:p})=>this.onContextMenuHandler({event:f,selectedRow:p}),onReorder:n,onRowPress:a,onRowTap:i,reordable:l,rowKey:r,rowSelectionHandler:(f,p)=>this.rowSelectionHandler(f,p),shouldRowLoading:o,selectedColumns:s,tableRef:this.tableRef,tableId:this.tableId})}render(){const{className:t,columns:n,data:a,density:i,disableTableHead:l,mobileLayout:r,expandableTemplate:s,onLoadMore:o,reordable:c,showLoadMore:u,translation:d,"data-e2e":f,"data-component":p,...b}=this.props,{expandedRows:E,selectable:C,selectedRows:g,rowKey:y,onExpandToggle:h,onRowSelection:m,onRowContextMenu:v,onCellSelection:_,selectedColumns:w,onReorder:x,renderBeforeTableContent:T,renderAfterTableContent:A,headerBackground:O,footerBackground:R,onRowTap:D,onRowPress:z,shouldRowLoading:H,disableRowAnimation:N,border:L,showHeaderWithNoData:F=!1,...q}=b,G=!!s,Y=a.length===0,W=I("sg-table-wrapper",`sg-table-wrapper--border-${L}`,i&&`sg-table-wrapper--density-${i}`,r&&`sg-table-wrapper--mobile-${r}`,G&&"sg-table-wrapper--expandable",c&&"sg-table-wrapper--reordable",Y&&"sg-table-wrapper--no-data",l&&"sg-table-wrapper--disabled-header",t),fe=I("sg-table",!Pp(n)&&"sg-table--no-footer");return S.createElement("div",{ref:X=>{this.tableWrapperRef=X},className:W,"data-e2e":f,"data-component":p,onKeyDown:this.handleOnKeyDown},S.createElement("div",{className:"sg-table__before-content"},T()),this.renderDataTable({classesTable:fe,data:a,propsToPropagate:q,showHeaderWithNoData:F}),u&&S.createElement("div",{className:"sg-table-load-more","data-e2e":"table-load-more"},S.createElement(ja,{type:"ghost",color:"primary",onClick:X=>{const Q=In(this.tableRef,{isDirectionForward:!1});Xn(Q),o(X)},onKeyDown:X=>{X.stopPropagation(),as(X)&&Cn({event:X}),is(X)&&Cn({event:X,isDirectionForward:!1})}},d.loadMoreText)),S.createElement("div",{className:"sg-table__after-content"},A()))}}Ot(kl,"contextType",Tt),Ot(kl,"displayName","Table"),Ot(kl,"defaultProps",{columns:[],data:[],density:"medium",disableTableHead:!1,disableRowAnimation:!1,mobileLayout:"card-flat",selectable:!1,border:"default",headerBackground:"default",footerBackground:"default",selectedColumns:[],onExpandToggle:()=>null,onRowSelection:()=>null,onRowTap:()=>null,onRowPress:()=>null,onRowContextMenu:()=>null,renderBeforeTableContent:()=>null,renderAfterTableContent:()=>null,shouldRowLoading:()=>!1,reordable:!1,translation:{loadMoreText:"Load More",expand:"Expand",collapse:"Collapse",placeholderTitle:"Nothing here yet"},cellHeight:"medium","data-e2e":"table","data-component":"table"});var v3=Object.defineProperty,b3=(e,t,n)=>t in e?v3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zp=(e,t,n)=>(b3(e,typeof t!="symbol"?t+"":t,n),n);const Ec=class Lh extends S.Component{static createMobileColumnsOptions(t,n,a){if(!t)return t;const i=Ba(t);if(n)return i;const l={width:"100%",flexWrap:"nowrap"},r={flexShrink:0},s=i[0],o=i.pop(),c=s.render?s.render:d=>d,u=o.render?o.render:d=>d;return delete s.header,s.style={fontWeight:"bold",...s.style},s.render=(d,f)=>a?S.createElement(cn,{justify:"space-between",align:"center",style:l},S.createElement(tn,{level:"4",truncate:!0},c(d,f)),S.createElement("div",{style:r},u(f[o.accessor],f))):c(d,f),i}static createDesktopColumnsOptions(t,n,a){if(!t)return t;const i=Ba(t),l=i[i.length-1];return l.style={paddingLeft:a&&"0px",textAlign:"right",whiteSpace:"nowrap",...l.style},a&&(l.mSize=l.mSize||"100px"),i}render(){const{device:t}=this.context,{columns:n,data:a,disableMobileArrange:i,hasMenu:l,onMouseOver:r,...s}=this.props,o=Lh.createMobileColumnsOptions(n,i,t.isPhone),c=Lh.createDesktopColumnsOptions(n,a,l);return t.isDesktop||t.isTablet?S.createElement(kl,{data:a,columns:c,onMouseOver:r,...s}):S.createElement(kl,{data:a,columns:o,...s})}};Zp(Ec,"contextType",Tt),Zp(Ec,"defaultProps",{hasMenu:!0,"data-e2e":"action-table"});let S3=Ec;var E3=Object.defineProperty,C3=(e,t,n)=>t in e?E3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cc=(e,t,n)=>(C3(e,typeof t!="symbol"?t+"":t,n),n);class w3{constructor(){Cc(this,"subscribersOnOpen",{}),Cc(this,"subscribersOnClose",{}),Cc(this,"subscribersOnData",{})}subscribe(t,n,a="visibility"){switch(a){case"open":this.subscribersOnOpen[t]=this.subscribersOnOpen[t]?this.subscribersOnOpen[t].concat(n):[n];break;case"close":this.subscribersOnClose[t]=this.subscribersOnClose[t]?this.subscribersOnClose[t].concat(n):[n];break;case"visibility":this.subscribersOnOpen[t]=this.subscribersOnOpen[t]?this.subscribersOnOpen[t].concat(n):[n],this.subscribersOnClose[t]=this.subscribersOnClose[t]?this.subscribersOnClose[t].concat(n):[n];break;case"data":this.subscribersOnData[t]=this.subscribersOnData[t]?this.subscribersOnData[t].concat(n):[n];break}}emit(t,n,a=null){var i,l,r;switch(n){case"open":(i=this.subscribersOnOpen[t])==null||i.forEach(s=>s("open"));break;case"close":(l=this.subscribersOnClose[t])==null||l.forEach(s=>s("close"));break;case"data":(r=this.subscribersOnData[t])==null||r.forEach(s=>s(a));break;case"visibility":throw"Cannot open and close dialog at the same time"}}unsubscribe(t,n,a="visibility"){var i,l,r,s,o;switch(a){case"open":this.subscribersOnOpen[t]=(i=this.subscribersOnOpen[t])==null?void 0:i.filter(c=>c!==n);break;case"close":this.subscribersOnClose[t]=(l=this.subscribersOnClose[t])==null?void 0:l.filter(c=>c!==n);break;case"visibility":this.subscribersOnOpen[t]=(r=this.subscribersOnOpen[t])==null?void 0:r.filter(c=>c!==n),this.subscribersOnClose[t]=(s=this.subscribersOnClose[t])==null?void 0:s.filter(c=>c!==n);break;case"data":this.subscribersOnData[t]=(o=this.subscribersOnData[t])==null?void 0:o.filter(c=>c!==n);break}}open(t){this.emit(t,"open")}close(t){this.emit(t,"close")}hidrate(t,n=null){this.emit(t,"data",n)}}const Vt=new w3;var _3=Object.defineProperty,T3=(e,t,n)=>t in e?_3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jp=(e,t,n)=>(T3(e,typeof t!="symbol"?t+"":t,n),n);class A3 extends S.Component{constructor(){super(...arguments),Jp(this,"state",{open:!1,closing:!1}),Jp(this,"handleChange",t=>{t==="open"?this.setState({open:!0,closing:!1}):this.setState(n=>({open:!1,closing:n.open}))})}componentDidMount(){Vt.subscribe(this.props.id,this.handleChange)}componentWillUnmount(){Vt.unsubscribe(this.props.id,this.handleChange)}render(){const{id:t,onCloseHandler:n,...a}=this.props,{open:i,closing:l}=this.state;return!i&&!l?null:S.createElement(Gp,{...a,"data-e2e":`sg-dialog-${t}`,triggerClose:l,onCloseHandler:()=>{n&&n(),Vt.close(t)}})}}const wc={AutoClose:"autoClose",Prompt:"prompt"};var O3=Object.defineProperty,x3=(e,t,n)=>t in e?O3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_c=(e,t,n)=>(x3(e,typeof t!="symbol"?t+"":t,n),n);const M3=7e3;class R3 extends S.Component{constructor(){super(...arguments),_c(this,"timeout"),_c(this,"defaultTitles",{success:this.props.defaultSuccessTitle,error:this.props.defaultErrorTitle}),_c(this,"handleClose",()=>{const{removeNotification:t,notification:n}=this.props;switch(n.behaviour){case wc.AutoClose:return this.timeout===void 0?void 0:(clearTimeout(this.timeout),this.timeout=void 0,t(n.id));case wc.Prompt:return t(n.id)}})}componentDidMount(){this.props.notification.behaviour===wc.AutoClose&&(this.timeout=setTimeout(()=>{this.handleClose()},M3))}componentWillUnmount(){this.handleClose()}render(){const{notification:t,defaultErrorTitle:n,defaultSuccessTitle:a,removeNotification:i,...l}=this.props,r=t.title||this.defaultTitles[t.type];return S.createElement(r3,{type:t.type,title:r,message:t.message,onClose:this.handleClose,...l},t.renderChildren&&t.renderChildren(this.props))}}function N3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wp={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(n=!1));function i(o,c,u){this.fn=o,this.context=c,this.once=u||!1}function l(o,c,u,d,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var p=new i(u,d||o,f),b=n?n+c:c;return o._events[b]?o._events[b].fn?o._events[b]=[o._events[b],p]:o._events[b].push(p):(o._events[b]=p,o._eventsCount++),o}function r(o,c){--o._eventsCount===0?o._events=new a:delete o._events[c]}function s(){this._events=new a,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=n?n+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,p=d.length,b=new Array(p);f<p;f++)b[f]=d[f].fn;return b},s.prototype.listenerCount=function(c){var u=n?n+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,f,p,b){var E=n?n+c:c;if(!this._events[E])return!1;var C=this._events[E],g=arguments.length,y,h;if(C.fn){switch(C.once&&this.removeListener(c,C.fn,void 0,!0),g){case 1:return C.fn.call(C.context),!0;case 2:return C.fn.call(C.context,u),!0;case 3:return C.fn.call(C.context,u,d),!0;case 4:return C.fn.call(C.context,u,d,f),!0;case 5:return C.fn.call(C.context,u,d,f,p),!0;case 6:return C.fn.call(C.context,u,d,f,p,b),!0}for(h=1,y=new Array(g-1);h<g;h++)y[h-1]=arguments[h];C.fn.apply(C.context,y)}else{var m=C.length,v;for(h=0;h<m;h++)switch(C[h].once&&this.removeListener(c,C[h].fn,void 0,!0),g){case 1:C[h].fn.call(C[h].context);break;case 2:C[h].fn.call(C[h].context,u);break;case 3:C[h].fn.call(C[h].context,u,d);break;case 4:C[h].fn.call(C[h].context,u,d,f);break;default:if(!y)for(v=1,y=new Array(g-1);v<g;v++)y[v-1]=arguments[v];C[h].fn.apply(C[h].context,y)}}return!0},s.prototype.on=function(c,u,d){return l(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return l(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,f){var p=n?n+c:c;if(!this._events[p])return this;if(!u)return r(this,p),this;var b=this._events[p];if(b.fn)b.fn===u&&(!f||b.once)&&(!d||b.context===d)&&r(this,p);else{for(var E=0,C=[],g=b.length;E<g;E++)(b[E].fn!==u||f&&!b[E].once||d&&b[E].context!==d)&&C.push(b[E]);C.length?this._events[p]=C.length===1?C[0]:C:r(this,p)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&r(this,u)):(this._events=new a,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(Wp);var D3=Wp.exports,z3=N3(D3),U3=function(){var t=new z3;function n(r,s){t.emit(r,s)}function a(r,s){t.on(r,s)}function i(r,s){return new Promise(function(o){var c=function(d){return o({type:r,payload:d})};t.once(r,c),s&&t.once(r,s)})}function l(r,s){t.removeListener(r,s)}return{emit:n,on:a,once:i,removeListener:l}},Ns,L3=new Uint8Array(16);function B3(){if(!Ns&&(Ns=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ns))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ns(L3)}for(var tt=[],Tc=0;Tc<256;++Tc)tt.push((Tc+256).toString(16).slice(1));function j3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return tt[e[t+0]]+tt[e[t+1]]+tt[e[t+2]]+tt[e[t+3]]+"-"+tt[e[t+4]]+tt[e[t+5]]+"-"+tt[e[t+6]]+tt[e[t+7]]+"-"+tt[e[t+8]]+tt[e[t+9]]+"-"+tt[e[t+10]]+tt[e[t+11]]+tt[e[t+12]]+tt[e[t+13]]+tt[e[t+14]]+tt[e[t+15]]}var H3=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),eg={randomUUID:H3};function F3(e,t,n){if(eg.randomUUID&&!e)return eg.randomUUID();e=e||{};var a=e.random||(e.rng||B3)();return a[6]=a[6]&15|64,a[8]=a[8]&63|128,j3(a)}var Ai;(function(e){e.NotificationsChanged="NotificationsChanged"})(Ai||(Ai={}));class q3{constructor(){wt(this,"notifications",[]);wt(this,"eventEmitter",U3())}addNotification(t,n={}){const a=n.id||F3(),i={id:a,data:t};return this.notifications.unshift(i),this.eventEmitter.emit(Ai.NotificationsChanged,this.notifications),typeof n.closeAfterMs=="number"&&setTimeout(()=>{this.deleteNotification(a)},n.closeAfterMs),a}deleteNotification(t){const n=this.notifications.findIndex(a=>a.id===t);return n!==-1?(this.notifications.splice(n,1),this.eventEmitter.emit(Ai.NotificationsChanged,this.notifications),!0):!1}getAllNotifications(){return this.notifications}getNotificationsCount(){return this.notifications.length}onChanged(t){return this.eventEmitter.on(Ai.NotificationsChanged,t),()=>this.eventEmitter.removeListener(Ai.NotificationsChanged,t)}}function V3(e){const[t,n]=S.useState([]);return S.useEffect(()=>{const a=e.onChanged(i=>{n([...i])});return()=>{a()}},[e,n]),t}const ft=new q3,k3=()=>{const e=V3(ft);return B.jsx(s3,{children:e.map(t=>B.jsx(R3,{defaultSuccessTitle:"Success",defaultErrorTitle:"Failure",notification:{id:t.id,title:t.data.title,type:t.data.type,message:t.data.message,behaviour:"autoClose"},removeNotification:n=>ft.deleteNotification(String(n))},t.id))})},Ac=800,Oc=540,xc=540,tg=60,Q3=()=>{const t=window.innerWidth||document.documentElement.clientWidth||1024,n=window.innerHeight||document.documentElement.clientHeight||768,a=n-Ac-20>32?n-Ac-20:32;return{left:Math.max(0,t-xc-20),top:Math.max(0,a),width:xc,height:Ac}},G3=()=>({position:Q3(),minimizedPosition:null}),$3=()=>({width:xc}),K3=e=>{const t=window.innerWidth,n=window.innerHeight,a=Math.min(Math.max(e.width,Oc),t),i=Math.min(e.height,n),l=Math.min(Math.max(e.left,0),Math.max(0,t-a)),r=Math.min(Math.max(e.top,0),Math.max(0,n-i));return{left:l,top:r,width:a,height:i}},Y3=e=>({left:Math.min(Math.max(e.left,0),Math.max(0,window.innerWidth-tg)),top:Math.min(Math.max(e.top,0),Math.max(0,window.innerHeight-tg))}),P3=e=>{const t=Math.max(Oc,window.innerWidth/2);return Math.min(Math.max(e,Oc),t)},X3=e=>({...e,minimized:e.displayMode==="full"?!0:e.minimized,floating:e.floating?{position:K3(e.floating.position),minimizedPosition:e.floating.minimizedPosition?Y3(e.floating.minimizedPosition):null}:e.floating,docked:e.docked?{width:P3(e.docked.width)}:e.docked}),ng=pt({name:"app",initialState:{config:{home_url:"",admin_url:"",rest_base:"",assetsPath:"",localeSlug:"",locale:"",wp_nonce:"",plugin_version:"",wp_version:"",welcome_msg:"",is_staging:!1,is_siteground:!1,defaultDisplayMode:"popover",chatSource:"wp_admin_chatbox",quickActions:{categories:[],actionsTitle:"",actions:{}}},historyVisibility:!1},reducers:{saveConfig:(e,t)=>{e.config={...t.payload,is_siteground:!!t.payload.is_siteground,is_staging:!!t.payload.is_staging}},setHistoryVisibility:(e,t)=>{e.historyVisibility=t.payload}}}),{saveConfig:ag,setHistoryVisibility:aM}=ng.actions,I3=ng.reducer,Z3=(e,t)=>e==="context_length_exceeded"?"context_length_exceeded":t===402?"insufficient_balance":"generic",J3=["image_generation","image_editing"],ig=e=>!e||typeof e.name!="string"?!1:J3.includes(e.name),lg=e=>{const{response:t}=e;return t.error?!0:t.output.status==="error"||t.output.success===!1},rg=(e,t)=>{const n=e[e.length-1];(n==null?void 0:n.type)==="text"?n.content+=t:e.push({type:"text",content:t})},sg=(e,t)=>{e.segments||(e.segments=[]),!e.segments.some(n=>n.type==="tool"&&n.id===t.id)&&e.segments.push({type:"tool",id:t.id,name:t.name,args:t.args??{},status:"loading"})},og=pt({name:"messages",initialState:{threadId:null,messages:[],activeStreamingMessageId:null,phase:"initial",sessionStartTime:null,lastFailedRequest:null},reducers:{startNewConversation:(e,t)=>{e.threadId=null,e.messages=[{id:"initial-welcome-message",role:"assistant",content:t.payload.welcomeMsg,timestamp:Date.now(),isStreaming:!1,isComplete:!0,quickActions:t.payload.quickActions}],e.activeStreamingMessageId=null,e.phase="initial",e.lastFailedRequest=null},setThreadId:(e,t)=>{e.threadId=t.payload,e.phase="chat-active"},addUserMessage:(e,t)=>{const{id:n,content:a}=t.payload;e.messages.push({id:n,role:"user",content:a,timestamp:Date.now()}),e.phase="chat-active"},startAssistantMessage:(e,t)=>{const{id:n}=t.payload;e.messages.push({id:n,role:"assistant",content:"",segments:[],timestamp:Date.now(),isStreaming:!0,isComplete:!1}),e.activeStreamingMessageId=n},completeStreamingMessage:(e,t)=>{const{messageId:n}=t.payload,a=e.messages.find(i=>i.id===n&&i.role==="assistant");a&&(a.isStreaming=!1,a.isComplete=!0),e.activeStreamingMessageId===n&&(e.activeStreamingMessageId=null)},addActionRequestMessage:(e,t)=>{const{packet:n}=t.payload;e.messages.push({id:n.message_id,role:"action_request",actionRequired:n.action_required.user_action_required,toolCall:n.tool_call,timestamp:Date.now(),isResolved:!1})},resolveActionRequest:(e,t)=>{const{messageId:n}=t.payload,a=e.messages.find(i=>i.id===n&&i.role==="assistant");a!=null&&a.actionRequest&&(a.actionRequest.isResolved=!0)},processStreamingPacket:(e,t)=>{var i;const{messageId:n,packet:a}=t.payload;switch(a.type){case"text_delta":{const l=e.messages.find(r=>r.id===n&&r.role==="assistant");if(l&&l.isStreaming){const r=a.content;l.content+=r,l.segments||(l.segments=[]),rg(l.segments,r)}break}case"tool_call":{const l=a;if(!l.content)break;const r=e.messages.find(s=>s.id===n&&s.role==="assistant");r&&sg(r,l.content);break}case"tool_result":{const l=a;if(!l.content)break;const r=e.messages.find(s=>s.id===n&&s.role==="assistant");if(r){const s=l.content,o=lg(s),c=(i=r.segments)==null?void 0:i.find(u=>u.type==="tool"&&u.id===s.id);c&&(c.status=o?"error":"success"),!o&&ig(s)&&(r.segments||(r.segments=[]),r.segments.push({type:"image",content:s}))}break}case"user_action_request":{const l=a,r=e.messages.find(s=>s.id===n&&s.role==="assistant");r&&(r.actionRequest={actionRequired:l.action_required.user_action_required,toolCall:l.tool_call,isResolved:!1},l.tool_call&&sg(r,{id:l.tool_call.id,name:l.tool_call.name,args:l.tool_call.args}));break}}},loadMessages:(e,t)=>{const{threadId:n,messages:a}=t.payload;e.threadId=n,e.messages=a,e.activeStreamingMessageId=null,e.phase="chat-active"},setError:(e,t)=>{var a,i;e.phase="error";const n=Z3((a=t.payload)==null?void 0:a.errorCode,(i=t.payload)==null?void 0:i.statusCode);if(e.activeStreamingMessageId){const l=e.messages.find(r=>r.id===e.activeStreamingMessageId&&r.role==="assistant");l&&(l.isStreaming=!1,l.isComplete=!0,l.errorOccurred=!0,l.errorType=n),e.activeStreamingMessageId=null}},removeLastFailedMessage:e=>{if(e.messages.length>0){const t=e.messages[e.messages.length-1];if(t.role==="assistant"&&t.errorOccurred){e.messages.pop();const n=e.messages[e.messages.length-1];(n==null?void 0:n.role)==="user"&&e.messages.pop()}}},updateSessionTimestamp:e=>{e.sessionStartTime=Date.now()},clearSession:(e,t)=>{var n;e.threadId=null,e.messages=[],e.activeStreamingMessageId=null,e.phase="initial",e.sessionStartTime=null,e.lastFailedRequest=null,(n=t.payload)!=null&&n.welcomeMsg&&e.messages.push({id:"initial-welcome-message",role:"assistant",content:t.payload.welcomeMsg,timestamp:Date.now(),isStreaming:!1,isComplete:!0,quickActions:t.payload.quickActions})},setLastFailedRequest:(e,t)=>{e.lastFailedRequest=t.payload},clearLastFailedRequest:e=>{e.lastFailedRequest=null}},extraReducers:e=>{e.addCase(ag,(t,n)=>{t.messages.length===0&&n.payload.welcome_msg&&t.messages.push({id:"initial-welcome-message",role:"assistant",content:n.payload.welcome_msg,timestamp:Date.now(),isStreaming:!1,isComplete:!0,quickActions:n.payload.quickActions})})}}),{startNewConversation:W3,setThreadId:ew,addUserMessage:lM,startAssistantMessage:rM,completeStreamingMessage:sM,addActionRequestMessage:oM,resolveActionRequest:uM,processStreamingPacket:cM,loadMessages:fM,setError:dM,removeLastFailedMessage:hM,updateSessionTimestamp:tw,clearSession:nw,setLastFailedRequest:mM,clearLastFailedRequest:pM}=og.actions,aw=og.reducer,iw={displayMode:"popover",minimized:!0,activeThreadId:null,floating:G3(),docked:$3()},ug=pt({name:"chat",initialState:iw,reducers:{setDisplayMode:(e,t)=>{e.displayMode=t.payload},setMinimized:(e,t)=>{e.minimized=t.payload},setActiveThreadId:(e,t)=>{e.activeThreadId=t.payload},updateFloatingPosition:(e,t)=>{e.floating.position={...e.floating.position,...t.payload}},setMinimizedPosition:(e,t)=>{e.floating.minimizedPosition=t.payload},setDockedWidth:(e,t)=>{e.docked.width=t.payload}},extraReducers:e=>{e.addCase(nw,t=>{t.activeThreadId=null}),e.addCase(W3,t=>{t.activeThreadId=null}),e.addCase(ew,(t,n)=>{t.activeThreadId=n.payload})}}),{setDisplayMode:gM,setMinimized:yM,setActiveThreadId:vM,updateFloatingPosition:bM,setMinimizedPosition:SM,setDockedWidth:EM}=ug.actions,lw=ug.reducer,rw=pt({name:"settings",initialState:{status:!1,token:null,enablePowerAgent:!1,activityLog:null},reducers:{}}).reducer,cg=pt({name:"logout",initialState:null,reducers:{logoutAndClearTokens:e=>e}}),{logoutAndClearTokens:sw}=cg.actions,ow=cg.reducer,fg=pt({name:"files",initialState:{files:{attached:[]}},reducers:{uploadFilesStarted:(e,t)=>{e.files.attached=[...t.payload.files,...e.files.attached]},addAttachedFile:(e,t)=>{e.files.attached=[...e.files.attached,t.payload.file]},updateAttachedFileStatus:(e,t)=>{const n=e.files.attached.findIndex(a=>a.id===t.payload.id);n!==-1&&(e.files.attached[n].status=t.payload.status,t.payload.publicUrl&&(e.files.attached[n].publicUrl=t.payload.publicUrl),t.payload.error&&(e.files.attached[n].error=t.payload.error))},removeAttachedFile:(e,t)=>{e.files.attached=e.files.attached.filter(n=>n.id!==t.payload.id)},clearAttachedFiles:e=>{e.files.attached=[]},clearFailedUploads:e=>{e.files.attached=e.files.attached.filter(t=>t.status!=="error")},removeFileFromState:(e,t)=>{e.files.attached=e.files.attached.filter(n=>n.id!==t.payload.id)}}}),{uploadFilesStarted:TM,addAttachedFile:AM,updateAttachedFileStatus:OM,removeAttachedFile:xM,clearAttachedFiles:MM,clearFailedUploads:RM,removeFileFromState:NM}=fg.actions,uw=fg.reducer;var cw=class extends Error{constructor(t){super(t[0].message);wt(this,"issues");this.name="SchemaError",this.issues=t}},dg=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(dg||{});function hg(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}var mg=Jn;function pg(e,t){if(e===t||!(mg(e)&&mg(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),a=Object.keys(e);let i=n.length===a.length;const l=Array.isArray(t)?[]:{};for(const r of n)l[r]=pg(e[r],t[r]),i&&(i=e[r]===l[r]);return i?e:l}function Oi(e){let t=0;for(const n in e)t++;return t}var gg=e=>[].concat(...e);function fw(e){return new RegExp("(^|:)//").test(e)}function dw(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function Ds(e){return e!=null}function hw(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}var mw=e=>e.replace(/\/$/,""),pw=e=>e.replace(/^\//,"");function gw(e,t){if(!e)return t;if(!t)return e;if(fw(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=mw(e),t=pw(t),`${e}${n}${t}`}function yw(e,t,n){return e.has(t)?e.get(t):e.set(t,n).get(t)}var yg=(...e)=>fetch(...e),vw=e=>e.status>=200&&e.status<=299,bw=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function vg(e){if(!Jn(e))return e;const t={...e};for(const[n,a]of Object.entries(t))a===void 0&&delete t[n];return t}function bg({baseUrl:e,prepareHeaders:t=d=>d,fetchFn:n=yg,paramsSerializer:a,isJsonContentType:i=bw,jsonContentType:l="application/json",jsonReplacer:r,timeout:s,responseHandler:o,validateStatus:c,...u}={}){return typeof fetch>"u"&&n===yg&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,p,b)=>{const{getState:E,extra:C,endpoint:g,forced:y,type:h}=p;let m,{url:v,headers:_=new Headers(u.headers),params:w=void 0,responseHandler:x=o??"json",validateStatus:T=c??vw,timeout:A=s,...O}=typeof f=="string"?{url:f}:f,R,D=p.signal;A&&(R=new AbortController,p.signal.addEventListener("abort",R.abort),D=R.signal);let z={...u,signal:D,...O};_=new Headers(vg(_)),z.headers=await t(_,{getState:E,arg:f,extra:C,endpoint:g,forced:y,type:h,extraOptions:b})||_;const H=X=>typeof X=="object"&&(Jn(X)||Array.isArray(X)||typeof X.toJSON=="function");if(!z.headers.has("content-type")&&H(z.body)&&z.headers.set("content-type",l),H(z.body)&&i(z.headers)&&(z.body=JSON.stringify(z.body,r)),w){const X=~v.indexOf("?")?"&":"?",Q=a?a(w):new URLSearchParams(vg(w));v+=X+Q}v=gw(e,v);const N=new Request(v,z);m={request:new Request(v,z)};let F,q=!1,G=R&&setTimeout(()=>{q=!0,R.abort()},A);try{F=await n(N)}catch(X){return{error:{status:q?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(X)},meta:m}}finally{G&&clearTimeout(G),R==null||R.signal.removeEventListener("abort",R.abort)}const Y=F.clone();m.response=Y;let W,fe="";try{let X;if(await Promise.all([d(F,x).then(Q=>W=Q,Q=>X=Q),Y.text().then(Q=>fe=Q,()=>{})]),X)throw X}catch(X){return{error:{status:"PARSING_ERROR",originalStatus:F.status,data:fe,error:String(X)},meta:m}}return T(F,W)?{data:W,meta:m}:{error:{status:F.status,data:W},meta:m}};async function d(f,p){if(typeof p=="function")return p(f);if(p==="content-type"&&(p=i(f.headers)?"json":"text"),p==="json"){const b=await f.text();return b.length?JSON.parse(b):null}return f.text()}}var Sg=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Mc=an("__rtkq/focused"),Eg=an("__rtkq/unfocused"),Rc=an("__rtkq/online"),Cg=an("__rtkq/offline");function zs(e){return e.type==="query"}function Sw(e){return e.type==="mutation"}function Us(e){return e.type==="infinitequery"}function Ls(e){return zs(e)||Us(e)}function Nc(e,t,n,a,i,l){return Ew(e)?e(t,n,a,i).filter(Ds).map(Dc).map(l):Array.isArray(e)?e.map(Dc).map(l):[]}function Ew(e){return typeof e=="function"}function Dc(e){return typeof e=="string"?{type:e}:e}function Cw(e,t){return e.catch(t)}var Ql=Symbol("forceQueryFn"),zc=e=>typeof e[Ql]=="function";function ww({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:a,api:i,context:l}){const r=new Map,s=new Map,{unsubscribeQueryResult:o,removeMutationResult:c,updateSubscriptionOptions:u}=i.internalActions;return{buildInitiateQuery:C,buildInitiateInfiniteQuery:g,buildInitiateMutation:y,getRunningQueryThunk:d,getRunningMutationThunk:f,getRunningQueriesThunk:p,getRunningMutationsThunk:b};function d(h,m){return v=>{var x;const _=l.endpointDefinitions[h],w=e({queryArgs:m,endpointDefinition:_,endpointName:h});return(x=r.get(v))==null?void 0:x[w]}}function f(h,m){return v=>{var _;return(_=s.get(v))==null?void 0:_[m]}}function p(){return h=>Object.values(r.get(h)||{}).filter(Ds)}function b(){return h=>Object.values(s.get(h)||{}).filter(Ds)}function E(h,m){const v=(_,{subscribe:w=!0,forceRefetch:x,subscriptionOptions:T,[Ql]:A,...O}={})=>(R,D)=>{var $;const z=e({queryArgs:_,endpointDefinition:m,endpointName:h});let H;const N={...O,type:"query",subscribe:w,forceRefetch:x,subscriptionOptions:T,endpointName:h,originalArgs:_,queryCacheKey:z,[Ql]:A};if(zs(m))H=t(N);else{const{direction:M,initialPageParam:U}=O;H=n({...N,direction:M,initialPageParam:U})}const L=i.endpoints[h].select(_),F=R(H),q=L(D()),{requestId:G,abort:Y}=F,W=q.requestId!==G,fe=($=r.get(R))==null?void 0:$[z],X=()=>L(D()),Q=Object.assign(A?F.then(X):W&&!fe?Promise.resolve(q):Promise.all([fe,F]).then(X),{arg:_,requestId:G,subscriptionOptions:T,queryCacheKey:z,abort:Y,async unwrap(){const M=await Q;if(M.isError)throw M.error;return M.data},refetch:()=>R(v(_,{subscribe:!1,forceRefetch:!0})),unsubscribe(){w&&R(o({queryCacheKey:z,requestId:G}))},updateSubscriptionOptions(M){Q.subscriptionOptions=M,R(u({endpointName:h,requestId:G,queryCacheKey:z,options:M}))}});if(!fe&&!W&&!A){const M=yw(r,R,{});M[z]=Q,Q.then(()=>{delete M[z],Oi(M)||r.delete(R)})}return Q};return v}function C(h,m){return E(h,m)}function g(h,m){return E(h,m)}function y(h){return(m,{track:v=!0,fixedCacheKey:_}={})=>(w,x)=>{const T=a({type:"mutation",endpointName:h,originalArgs:m,track:v,fixedCacheKey:_}),A=w(T),{requestId:O,abort:R,unwrap:D}=A,z=Cw(A.unwrap().then(F=>({data:F})),F=>({error:F})),H=()=>{w(c({requestId:O,fixedCacheKey:_}))},N=Object.assign(z,{arg:A.arg,requestId:O,abort:R,unwrap:D,reset:H}),L=s.get(w)||{};return s.set(w,L),L[O]=N,N.then(()=>{delete L[O],Oi(L)||s.delete(w)}),_&&(L[_]=N,N.then(()=>{L[_]===N&&(delete L[_],Oi(L)||s.delete(w))})),N}}}var wg=class extends cw{constructor(e,t,n,a){super(e),this.value=t,this.schemaName=n,this._bqMeta=a}};async function Ya(e,t,n,a){const i=await e["~standard"].validate(t);if(i.issues)throw new wg(i.issues,t,n,a);return i.value}function _w(e){return e}var Gl=(e={})=>({...e,[Ts]:!0});function Tw({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:a,api:i,assertTagType:l,selectors:r,onSchemaFailure:s,catchSchemaFailure:o,skipSchemaValidation:c}){const u=(O,R,D,z)=>(H,N)=>{const L=n[O],F=a({queryArgs:R,endpointDefinition:L,endpointName:O});if(H(i.internalActions.queryResultPatched({queryCacheKey:F,patches:D})),!z)return;const q=i.endpoints[O].select(R)(N()),G=Nc(L.providesTags,q.data,void 0,R,{},l);H(i.internalActions.updateProvidedBy([{queryCacheKey:F,providedTags:G}]))};function d(O,R,D=0){const z=[R,...O];return D&&z.length>D?z.slice(0,-1):z}function f(O,R,D=0){const z=[...O,R];return D&&z.length>D?z.slice(1):z}const p=(O,R,D,z=!0)=>(H,N)=>{const F=i.endpoints[O].select(R)(N()),q={patches:[],inversePatches:[],undo:()=>H(i.util.patchQueryData(O,R,q.inversePatches,z))};if(F.status==="uninitialized")return q;let G;if("data"in F)if(nn(F.data)){const[Y,W,fe]=wp(F.data,D);q.patches.push(...W),q.inversePatches.push(...fe),G=Y}else G=D(F.data),q.patches.push({op:"replace",path:[],value:G}),q.inversePatches.push({op:"replace",path:[],value:F.data});return q.patches.length===0||H(i.util.patchQueryData(O,R,q.patches,z)),q},b=(O,R,D)=>z=>z(i.endpoints[O].initiate(R,{subscribe:!1,forceRefetch:!0,[Ql]:()=>({data:D})})),E=(O,R)=>O.query&&O[R]?O[R]:_w,C=async(O,{signal:R,abort:D,rejectWithValue:z,fulfillWithValue:H,dispatch:N,getState:L,extra:F})=>{var W,fe;const q=n[O.endpointName],{metaSchema:G,skipSchemaValidation:Y=c}=q;try{let X=E(q,"transformResponse");const Q={signal:R,abort:D,dispatch:N,getState:L,extra:F,endpoint:O.endpointName,type:O.type,forced:O.type==="query"?g(O,L()):void 0,queryCacheKey:O.type==="query"?O.queryCacheKey:void 0},$=O.type==="query"?O[Ql]:void 0;let M;const U=async(V,P,Z,oe)=>{if(P==null&&V.pages.length)return Promise.resolve({data:V});const te={queryArg:O.originalArgs,pageParam:P},ce=await k(te),me=oe?d:f;return{data:{pages:me(V.pages,ce.data,Z),pageParams:me(V.pageParams,P,Z)},meta:ce.meta}};async function k(V){let P;const{extraOptions:Z,argSchema:oe,rawResponseSchema:te,responseSchema:ce}=q;if(oe&&!Y&&(V=await Ya(oe,V,"argSchema",{})),$?P=$():q.query?P=await t(q.query(V),Q,Z):P=await q.queryFn(V,Q,Z,Ue=>t(Ue,Q,Z)),typeof process<"u",P.error)throw new Sg(P.error,P.meta);let{data:me}=P;te&&!Y&&(me=await Ya(te,P.data,"rawResponseSchema",P.meta));let Ve=await X(me,P.meta,V);return ce&&!Y&&(Ve=await Ya(ce,Ve,"responseSchema",P.meta)),{...P,data:Ve}}if(O.type==="query"&&"infiniteQueryOptions"in q){const{infiniteQueryOptions:V}=q,{maxPages:P=1/0}=V;let Z;const oe={pages:[],pageParams:[]},te=(W=r.selectQueryEntry(L(),O.queryCacheKey))==null?void 0:W.data,me=g(O,L())&&!O.direction||!te?oe:te;if("direction"in O&&O.direction&&me.pages.length){const Ve=O.direction==="backward",ot=(Ve?_g:Uc)(V,me,O.originalArgs);Z=await U(me,ot,P,Ve)}else{const{initialPageParam:Ve=V.initialPageParam}=O,Ue=(te==null?void 0:te.pageParams)??[],ot=Ue[0]??Ve,Le=Ue.length;Z=await U(me,ot,P),$&&(Z={data:Z.data.pages[0]});for(let Be=1;Be<Le;Be++){const Ra=Uc(V,Z.data,O.originalArgs);Z=await U(Z.data,Ra,P)}}M=Z}else M=await k(O.originalArgs);return G&&!Y&&M.meta&&(M.meta=await Ya(G,M.meta,"metaSchema",M.meta)),H(M.data,Gl({fulfilledTimeStamp:Date.now(),baseQueryMeta:M.meta}))}catch(X){let Q=X;if(Q instanceof Sg){let $=E(q,"transformErrorResponse");const{rawErrorResponseSchema:M,errorResponseSchema:U}=q;let{value:k,meta:V}=Q;try{M&&!Y&&(k=await Ya(M,k,"rawErrorResponseSchema",V)),G&&!Y&&(V=await Ya(G,V,"metaSchema",V));let P=await $(k,V,O.originalArgs);return U&&!Y&&(P=await Ya(U,P,"errorResponseSchema",V)),z(P,Gl({baseQueryMeta:V}))}catch(P){Q=P}}try{if(Q instanceof wg){const $={endpoint:O.endpointName,arg:O.originalArgs,type:O.type,queryCacheKey:O.type==="query"?O.queryCacheKey:void 0};(fe=q.onSchemaFailure)==null||fe.call(q,Q,$),s==null||s(Q,$);const{catchSchemaFailure:M=o}=q;if(M)return z(M(Q,$),Gl({baseQueryMeta:Q._bqMeta}))}}catch($){Q=$}throw console.error(Q),Q}};function g(O,R){const D=r.selectQueryEntry(R,O.queryCacheKey),z=r.selectConfig(R).refetchOnMountOrArgChange,H=D==null?void 0:D.fulfilledTimeStamp,N=O.forceRefetch??(O.subscribe&&z);return N?N===!0||(Number(new Date)-Number(H))/1e3>=N:!1}const y=()=>zp(`${e}/executeQuery`,C,{getPendingMeta({arg:R}){const D=n[R.endpointName];return Gl({startedTimeStamp:Date.now(),...Us(D)?{direction:R.direction}:{}})},condition(R,{getState:D}){var Y;const z=D(),H=r.selectQueryEntry(z,R.queryCacheKey),N=H==null?void 0:H.fulfilledTimeStamp,L=R.originalArgs,F=H==null?void 0:H.originalArgs,q=n[R.endpointName],G=R.direction;return zc(R)?!0:(H==null?void 0:H.status)==="pending"?!1:g(R,z)||zs(q)&&((Y=q==null?void 0:q.forceRefetch)!=null&&Y.call(q,{currentArg:L,previousArg:F,endpointState:H,state:z}))?!0:!(N&&!G)},dispatchConditionRejection:!0}),h=y(),m=y(),v=zp(`${e}/executeMutation`,C,{getPendingMeta(){return Gl({startedTimeStamp:Date.now()})}}),_=O=>"force"in O,w=O=>"ifOlderThan"in O,x=(O,R,D)=>(z,H)=>{const N=_(D)&&D.force,L=w(D)&&D.ifOlderThan,F=(G=!0)=>{const Y={forceRefetch:G,isPrefetch:!0};return i.endpoints[O].initiate(R,Y)},q=i.endpoints[O].select(R)(H());if(N)z(F());else if(L){const G=q==null?void 0:q.fulfilledTimeStamp;if(!G){z(F());return}(Number(new Date)-Number(new Date(G)))/1e3>=L&&z(F())}else z(F(!1))};function T(O){return R=>{var D,z;return((z=(D=R==null?void 0:R.meta)==null?void 0:D.arg)==null?void 0:z.endpointName)===O}}function A(O,R){return{matchPending:Bl(oc(O),T(R)),matchFulfilled:Bl(Wn(O),T(R)),matchRejected:Bl(_i(O),T(R))}}return{queryThunk:h,mutationThunk:v,infiniteQueryThunk:m,prefetch:x,updateQueryData:p,upsertQueryData:b,patchQueryData:u,buildMatchThunkActions:A}}function Uc(e,{pages:t,pageParams:n},a){const i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n,a)}function _g(e,{pages:t,pageParams:n},a){var i;return(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n,a)}function Tg(e,t,n,a){return Nc(n[e.meta.arg.endpointName][t],Wn(e)?e.payload:void 0,Os(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,a)}function Bs(e,t,n){const a=e[t];a&&n(a)}function $l(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Ag(e,t,n){const a=e[$l(t)];a&&n(a)}var js={};function Aw({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:a,context:{endpointDefinitions:i,apiUid:l,extractRehydrationInfo:r,hasRehydrationInfo:s},assertTagType:o,config:c}){const u=an(`${e}/resetApiState`);function d(T,A,O,R){var D;T[D=A.queryCacheKey]??(T[D]={status:"uninitialized",endpointName:A.endpointName}),Bs(T,A.queryCacheKey,z=>{z.status="pending",z.requestId=O&&z.requestId?z.requestId:R.requestId,A.originalArgs!==void 0&&(z.originalArgs=A.originalArgs),z.startedTimeStamp=R.startedTimeStamp;const H=i[R.arg.endpointName];Us(H)&&"direction"in A&&(z.direction=A.direction)})}function f(T,A,O,R){Bs(T,A.arg.queryCacheKey,D=>{if(D.requestId!==A.requestId&&!R)return;const{merge:z}=i[A.arg.endpointName];if(D.status="fulfilled",z)if(D.data!==void 0){const{fulfilledTimeStamp:H,arg:N,baseQueryMeta:L,requestId:F}=A;let q=Ul(D.data,G=>z(G,O,{arg:N.originalArgs,baseQueryMeta:L,fulfilledTimeStamp:H,requestId:F}));D.data=q}else D.data=O;else D.data=i[A.arg.endpointName].structuralSharing??!0?pg(fn(D.data)?UE(D.data):D.data,O):O;delete D.error,D.fulfilledTimeStamp=A.fulfilledTimeStamp})}const p=pt({name:`${e}/queries`,initialState:js,reducers:{removeQueryResult:{reducer(T,{payload:{queryCacheKey:A}}){delete T[A]},prepare:Ll()},cacheEntriesUpserted:{reducer(T,A){for(const O of A.payload){const{queryDescription:R,value:D}=O;d(T,R,!0,{arg:R,requestId:A.meta.requestId,startedTimeStamp:A.meta.timestamp}),f(T,{arg:R,requestId:A.meta.requestId,fulfilledTimeStamp:A.meta.timestamp,baseQueryMeta:{}},D,!0)}},prepare:T=>({payload:T.map(R=>{const{endpointName:D,arg:z,value:H}=R,N=i[D];return{queryDescription:{type:"query",endpointName:D,originalArgs:R.arg,queryCacheKey:a({queryArgs:z,endpointDefinition:N,endpointName:D})},value:H}}),meta:{[Ts]:!0,requestId:cc(),timestamp:Date.now()}})},queryResultPatched:{reducer(T,{payload:{queryCacheKey:A,patches:O}}){Bs(T,A,R=>{R.data=_p(R.data,O.concat())})},prepare:Ll()}},extraReducers(T){T.addCase(t.pending,(A,{meta:O,meta:{arg:R}})=>{const D=zc(R);d(A,R,D,O)}).addCase(t.fulfilled,(A,{meta:O,payload:R})=>{const D=zc(O.arg);f(A,O,R,D)}).addCase(t.rejected,(A,{meta:{condition:O,arg:R,requestId:D},error:z,payload:H})=>{Bs(A,R.queryCacheKey,N=>{if(!O){if(N.requestId!==D)return;N.status="rejected",N.error=H??z}})}).addMatcher(s,(A,O)=>{const{queries:R}=r(O);for(const[D,z]of Object.entries(R))((z==null?void 0:z.status)==="fulfilled"||(z==null?void 0:z.status)==="rejected")&&(A[D]=z)})}}),b=pt({name:`${e}/mutations`,initialState:js,reducers:{removeMutationResult:{reducer(T,{payload:A}){const O=$l(A);O in T&&delete T[O]},prepare:Ll()}},extraReducers(T){T.addCase(n.pending,(A,{meta:O,meta:{requestId:R,arg:D,startedTimeStamp:z}})=>{D.track&&(A[$l(O)]={requestId:R,status:"pending",endpointName:D.endpointName,startedTimeStamp:z})}).addCase(n.fulfilled,(A,{payload:O,meta:R})=>{R.arg.track&&Ag(A,R,D=>{D.requestId===R.requestId&&(D.status="fulfilled",D.data=O,D.fulfilledTimeStamp=R.fulfilledTimeStamp)})}).addCase(n.rejected,(A,{payload:O,error:R,meta:D})=>{D.arg.track&&Ag(A,D,z=>{z.requestId===D.requestId&&(z.status="rejected",z.error=O??R)})}).addMatcher(s,(A,O)=>{const{mutations:R}=r(O);for(const[D,z]of Object.entries(R))((z==null?void 0:z.status)==="fulfilled"||(z==null?void 0:z.status)==="rejected")&&D!==(z==null?void 0:z.requestId)&&(A[D]=z)})}}),E={tags:{},keys:{}},C=pt({name:`${e}/invalidation`,initialState:E,reducers:{updateProvidedBy:{reducer(T,A){var O,R,D;for(const{queryCacheKey:z,providedTags:H}of A.payload){g(T,z);for(const{type:N,id:L}of H){const F=(R=(O=T.tags)[N]??(O[N]={}))[D=L||"__internal_without_id"]??(R[D]=[]);F.includes(z)||F.push(z)}T.keys[z]=H}},prepare:Ll()}},extraReducers(T){T.addCase(p.actions.removeQueryResult,(A,{payload:{queryCacheKey:O}})=>{g(A,O)}).addMatcher(s,(A,O)=>{var D,z,H;const{provided:R}=r(O);for(const[N,L]of Object.entries(R))for(const[F,q]of Object.entries(L)){const G=(z=(D=A.tags)[N]??(D[N]={}))[H=F||"__internal_without_id"]??(z[H]=[]);for(const Y of q)G.includes(Y)||G.push(Y)}}).addMatcher(Tn(Wn(t),Os(t)),(A,O)=>{y(A,[O])}).addMatcher(p.actions.cacheEntriesUpserted.match,(A,O)=>{const R=O.payload.map(({queryDescription:D,value:z})=>({type:"UNKNOWN",payload:z,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:D}}));y(A,R)})}});function g(T,A){var R;const O=T.keys[A]??[];for(const D of O){const z=D.type,H=D.id??"__internal_without_id",N=(R=T.tags[z])==null?void 0:R[H];N&&(T.tags[z][H]=N.filter(L=>L!==A))}delete T.keys[A]}function y(T,A){const O=A.map(R=>{const D=Tg(R,"providesTags",i,o),{queryCacheKey:z}=R.meta.arg;return{queryCacheKey:z,providedTags:D}});C.caseReducers.updateProvidedBy(T,C.actions.updateProvidedBy(O))}const h=pt({name:`${e}/subscriptions`,initialState:js,reducers:{updateSubscriptionOptions(T,A){},unsubscribeQueryResult(T,A){},internal_getRTKQSubscriptions(){}}}),m=pt({name:`${e}/internalSubscriptions`,initialState:js,reducers:{subscriptionsUpdated:{reducer(T,A){return _p(T,A.payload)},prepare:Ll()}}}),v=pt({name:`${e}/config`,initialState:{online:hw(),focused:dw(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(T,{payload:A}){T.middlewareRegistered=T.middlewareRegistered==="conflict"||l!==A?"conflict":!0}},extraReducers:T=>{T.addCase(Rc,A=>{A.online=!0}).addCase(Cg,A=>{A.online=!1}).addCase(Mc,A=>{A.focused=!0}).addCase(Eg,A=>{A.focused=!1}).addMatcher(s,A=>({...A}))}}),_=Xu({queries:p.reducer,mutations:b.reducer,provided:C.reducer,subscriptions:m.reducer,config:v.reducer}),w=(T,A)=>_(u.match(A)?void 0:T,A),x={...v.actions,...p.actions,...h.actions,...m.actions,...b.actions,...C.actions,resetApiState:u};return{reducer:w,actions:x}}var rn=Symbol.for("RTKQ/skipToken"),Og={status:"uninitialized"},xg=Ul(Og,()=>{}),Mg=Ul(Og,()=>{});function Ow({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const a=h=>xg,i=h=>Mg;return{buildQuerySelector:f,buildInfiniteQuerySelector:p,buildMutationSelector:b,selectInvalidatedBy:E,selectCachedArgsForQuery:C,selectApiState:r,selectQueries:s,selectMutations:c,selectQueryEntry:o,selectConfig:u};function l(h){return{...h,...hg(h.status)}}function r(h){return h[t]}function s(h){var m;return(m=r(h))==null?void 0:m.queries}function o(h,m){var v;return(v=s(h))==null?void 0:v[m]}function c(h){var m;return(m=r(h))==null?void 0:m.mutations}function u(h){var m;return(m=r(h))==null?void 0:m.config}function d(h,m,v){return _=>{if(_===rn)return n(a,v);const w=e({queryArgs:_,endpointDefinition:m,endpointName:h});return n(T=>o(T,w)??xg,v)}}function f(h,m){return d(h,m,l)}function p(h,m){const{infiniteQueryOptions:v}=m;function _(w){const x={...w,...hg(w.status)},{isLoading:T,isError:A,direction:O}=x,R=O==="forward",D=O==="backward";return{...x,hasNextPage:g(v,x.data,x.originalArgs),hasPreviousPage:y(v,x.data,x.originalArgs),isFetchingNextPage:T&&R,isFetchingPreviousPage:T&&D,isFetchNextPageError:A&&R,isFetchPreviousPageError:A&&D}}return d(h,m,_)}function b(){return h=>{let m;return typeof h=="object"?m=$l(h)??rn:m=h,n(m===rn?i:w=>{var x,T;return((T=(x=r(w))==null?void 0:x.mutations)==null?void 0:T[m])??Mg},l)}}function E(h,m){const v=h[t],_=new Set;for(const w of m.filter(Ds).map(Dc)){const x=v.provided.tags[w.type];if(!x)continue;let T=(w.id!==void 0?x[w.id]:gg(Object.values(x)))??[];for(const A of T)_.add(A)}return gg(Array.from(_.values()).map(w=>{const x=v.queries[w];return x?[{queryCacheKey:w,endpointName:x.endpointName,originalArgs:x.originalArgs}]:[]}))}function C(h,m){return Object.values(s(h)).filter(v=>(v==null?void 0:v.endpointName)===m&&v.status!=="uninitialized").map(v=>v.originalArgs)}function g(h,m,v){return m?Uc(h,m,v)!=null:!1}function y(h,m,v){return!m||!h.getPreviousPageParam?!1:_g(h,m,v)!=null}}var xi=WeakMap?new WeakMap:void 0,Hs=({endpointName:e,queryArgs:t})=>{let n="";const a=xi==null?void 0:xi.get(t);if(typeof a=="string")n=a;else{const i=JSON.stringify(t,(l,r)=>(r=typeof r=="bigint"?{$bigint:r.toString()}:r,r=Jn(r)?Object.keys(r).sort().reduce((s,o)=>(s[o]=r[o],s),{}):r,r));Jn(t)&&(xi==null||xi.set(t,i)),n=i}return`${e}(${n})`};function Rg(...e){return function(n){const a=vs(c=>{var u;return(u=n.extractRehydrationInfo)==null?void 0:u.call(n,c,{reducerPath:n.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:a,serializeQueryArgs(c){let u=Hs;if("serializeQueryArgs"in c.endpointDefinition){const d=c.endpointDefinition.serializeQueryArgs;u=f=>{const p=d(f);return typeof p=="string"?p:Hs({...f,queryArgs:p})}}else n.serializeQueryArgs&&(u=n.serializeQueryArgs);return u(c)},tagTypes:[...n.tagTypes||[]]},l={endpointDefinitions:{},batch(c){c()},apiUid:cc(),extractRehydrationInfo:a,hasRehydrationInfo:vs(c=>a(c)!=null)},r={injectEndpoints:o,enhanceEndpoints({addTagTypes:c,endpoints:u}){if(c)for(const d of c)i.tagTypes.includes(d)||i.tagTypes.push(d);if(u)for(const[d,f]of Object.entries(u))typeof f=="function"?f(l.endpointDefinitions[d]):Object.assign(l.endpointDefinitions[d]||{},f);return r}},s=e.map(c=>c.init(r,i,l));function o(c){const u=c.endpoints({query:d=>({...d,type:"query"}),mutation:d=>({...d,type:"mutation"}),infiniteQuery:d=>({...d,type:"infinitequery"})});for(const[d,f]of Object.entries(u)){if(c.overrideExisting!==!0&&d in l.endpointDefinitions){if(c.overrideExisting==="throw")throw new Error(ln(39));continue}l.endpointDefinitions[d]=f;for(const p of s)p.injectEndpoint(d,f)}return r}return r.injectEndpoints({endpoints:n.endpoints})}}function An(e,...t){return Object.assign(e,...t)}var xw=({api:e,queryThunk:t,internalState:n})=>{const a=`${e.reducerPath}/subscriptions`;let i=null,l=null;const{updateSubscriptionOptions:r,unsubscribeQueryResult:s}=e.internalActions,o=(p,b)=>{var C,g,y;if(r.match(b)){const{queryCacheKey:h,requestId:m,options:v}=b.payload;return(C=p==null?void 0:p[h])!=null&&C[m]&&(p[h][m]=v),!0}if(s.match(b)){const{queryCacheKey:h,requestId:m}=b.payload;return p[h]&&delete p[h][m],!0}if(e.internalActions.removeQueryResult.match(b))return delete p[b.payload.queryCacheKey],!0;if(t.pending.match(b)){const{meta:{arg:h,requestId:m}}=b,v=p[g=h.queryCacheKey]??(p[g]={});return v[`${m}_running`]={},h.subscribe&&(v[m]=h.subscriptionOptions??v[m]??{}),!0}let E=!1;if(t.fulfilled.match(b)||t.rejected.match(b)){const h=p[b.meta.arg.queryCacheKey]||{},m=`${b.meta.requestId}_running`;E||(E=!!h[m]),delete h[m]}if(t.rejected.match(b)){const{meta:{condition:h,arg:m,requestId:v}}=b;if(h&&m.subscribe){const _=p[y=m.queryCacheKey]??(p[y]={});_[v]=m.subscriptionOptions??_[v]??{},E=!0}}return E},c=()=>n.currentSubscriptions,f={getSubscriptions:c,getSubscriptionCount:p=>{const E=c()[p]??{};return Oi(E)},isRequestSubscribed:(p,b)=>{var C;const E=c();return!!((C=E==null?void 0:E[p])!=null&&C[b])}};return(p,b)=>{if(i||(i=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(p))return i=n.currentSubscriptions={},l=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(p))return[!1,f];const E=o(n.currentSubscriptions,p);let C=!0;if(E){l||(l=setTimeout(()=>{const h=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,m]=wp(i,()=>h);b.next(e.internalActions.subscriptionsUpdated(m)),i=h,l=null},500));const g=typeof p.type=="string"&&!!p.type.startsWith(a),y=t.rejected.match(p)&&p.meta.condition&&!!p.meta.arg.subscribe;C=!g&&!y}return[C,!1]}};function Mw(e){for(const t in e)return!1;return!0}var Rw=2147483647/1e3-1,Nw=({reducerPath:e,api:t,queryThunk:n,context:a,internalState:i,selectors:{selectQueryEntry:l,selectConfig:r}})=>{const{removeQueryResult:s,unsubscribeQueryResult:o,cacheEntriesUpserted:c}=t.internalActions,u=Tn(o.match,n.fulfilled,n.rejected,c.match);function d(C){const g=i.currentSubscriptions[C];return!!g&&!Mw(g)}const f={},p=(C,g,y)=>{const h=g.getState(),m=r(h);if(u(C)){let v;if(c.match(C))v=C.payload.map(_=>_.queryDescription.queryCacheKey);else{const{queryCacheKey:_}=o.match(C)?C.payload:C.meta.arg;v=[_]}b(v,g,m)}if(t.util.resetApiState.match(C))for(const[v,_]of Object.entries(f))_&&clearTimeout(_),delete f[v];if(a.hasRehydrationInfo(C)){const{queries:v}=a.extractRehydrationInfo(C);b(Object.keys(v),g,m)}};function b(C,g,y){const h=g.getState();for(const m of C){const v=l(h,m);E(m,v==null?void 0:v.endpointName,g,y)}}function E(C,g,y,h){const m=a.endpointDefinitions[g],v=(m==null?void 0:m.keepUnusedDataFor)??h.keepUnusedDataFor;if(v===1/0)return;const _=Math.max(0,Math.min(v,Rw));if(!d(C)){const w=f[C];w&&clearTimeout(w),f[C]=setTimeout(()=>{d(C)||y.dispatch(s({queryCacheKey:C})),delete f[C]},_*1e3)}}return p},Ng=new Error("Promise never resolved before cacheEntryRemoved."),Dw=({api:e,reducerPath:t,context:n,queryThunk:a,mutationThunk:i,internalState:l,selectors:{selectQueryEntry:r,selectApiState:s}})=>{const o=uc(a),c=uc(i),u=Wn(a,i),d={};function f(g,y,h){const m=d[g];m!=null&&m.valueResolved&&(m.valueResolved({data:y,meta:h}),delete m.valueResolved)}function p(g){const y=d[g];y&&(delete d[g],y.cacheEntryRemoved())}const b=(g,y,h)=>{const m=E(g);function v(_,w,x,T){const A=r(h,w),O=r(y.getState(),w);!A&&O&&C(_,T,w,y,x)}if(a.pending.match(g))v(g.meta.arg.endpointName,m,g.meta.requestId,g.meta.arg.originalArgs);else if(e.internalActions.cacheEntriesUpserted.match(g))for(const{queryDescription:_,value:w}of g.payload){const{endpointName:x,originalArgs:T,queryCacheKey:A}=_;v(x,A,g.meta.requestId,T),f(A,w,{})}else if(i.pending.match(g))y.getState()[t].mutations[m]&&C(g.meta.arg.endpointName,g.meta.arg.originalArgs,m,y,g.meta.requestId);else if(u(g))f(m,g.payload,g.meta.baseQueryMeta);else if(e.internalActions.removeQueryResult.match(g)||e.internalActions.removeMutationResult.match(g))p(m);else if(e.util.resetApiState.match(g))for(const _ of Object.keys(d))p(_)};function E(g){return o(g)?g.meta.arg.queryCacheKey:c(g)?g.meta.arg.fixedCacheKey??g.meta.requestId:e.internalActions.removeQueryResult.match(g)?g.payload.queryCacheKey:e.internalActions.removeMutationResult.match(g)?$l(g.payload):""}function C(g,y,h,m,v){const _=n.endpointDefinitions[g],w=_==null?void 0:_.onCacheEntryAdded;if(!w)return;const x={},T=new Promise(H=>{x.cacheEntryRemoved=H}),A=Promise.race([new Promise(H=>{x.valueResolved=H}),T.then(()=>{throw Ng})]);A.catch(()=>{}),d[h]=x;const O=e.endpoints[g].select(Ls(_)?y:h),R=m.dispatch((H,N,L)=>L),D={...m,getCacheEntry:()=>O(m.getState()),requestId:v,extra:R,updateCachedData:Ls(_)?H=>m.dispatch(e.util.updateQueryData(g,y,H)):void 0,cacheDataLoaded:A,cacheEntryRemoved:T},z=w(y,D);Promise.resolve(z).catch(H=>{if(H!==Ng)throw H})}return b},zw=({api:e,context:{apiUid:t},reducerPath:n})=>(a,i)=>{e.util.resetApiState.match(a)&&i.dispatch(e.internalActions.middlewareRegistered(t))},Uw=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:a,queryThunk:i,api:l,assertTagType:r,refetchQuery:s,internalState:o})=>{const{removeQueryResult:c}=l.internalActions,u=Tn(Wn(a),Os(a)),d=Tn(Wn(a,i),_i(a,i));let f=[];const p=(C,g)=>{u(C)?E(Tg(C,"invalidatesTags",n,r),g):d(C)?E([],g):l.util.invalidateTags.match(C)&&E(Nc(C.payload,void 0,void 0,void 0,void 0,r),g)};function b(C){var h;const{queries:g,mutations:y}=C;for(const m of[g,y])for(const v in m)if(((h=m[v])==null?void 0:h.status)==="pending")return!0;return!1}function E(C,g){const y=g.getState(),h=y[e];if(f.push(...C),h.config.invalidationBehavior==="delayed"&&b(h))return;const m=f;if(f=[],m.length===0)return;const v=l.util.selectInvalidatedBy(y,m);t.batch(()=>{const _=Array.from(v.values());for(const{queryCacheKey:w}of _){const x=h.queries[w],T=o.currentSubscriptions[w]??{};x&&(Oi(T)===0?g.dispatch(c({queryCacheKey:w})):x.status!=="uninitialized"&&g.dispatch(s(x)))}})}return p},Lw=({reducerPath:e,queryThunk:t,api:n,refetchQuery:a,internalState:i})=>{const l={},r=(f,p)=>{(n.internalActions.updateSubscriptionOptions.match(f)||n.internalActions.unsubscribeQueryResult.match(f))&&o(f.payload,p),(t.pending.match(f)||t.rejected.match(f)&&f.meta.condition)&&o(f.meta.arg,p),(t.fulfilled.match(f)||t.rejected.match(f)&&!f.meta.condition)&&s(f.meta.arg,p),n.util.resetApiState.match(f)&&u()};function s({queryCacheKey:f},p){const b=p.getState()[e],E=b.queries[f],C=i.currentSubscriptions[f];if(!E||E.status==="uninitialized")return;const{lowestPollingInterval:g,skipPollingIfUnfocused:y}=d(C);if(!Number.isFinite(g))return;const h=l[f];h!=null&&h.timeout&&(clearTimeout(h.timeout),h.timeout=void 0);const m=Date.now()+g;l[f]={nextPollTimestamp:m,pollingInterval:g,timeout:setTimeout(()=>{(b.config.focused||!y)&&p.dispatch(a(E)),s({queryCacheKey:f},p)},g)}}function o({queryCacheKey:f},p){const E=p.getState()[e].queries[f],C=i.currentSubscriptions[f];if(!E||E.status==="uninitialized")return;const{lowestPollingInterval:g}=d(C);if(!Number.isFinite(g)){c(f);return}const y=l[f],h=Date.now()+g;(!y||h<y.nextPollTimestamp)&&s({queryCacheKey:f},p)}function c(f){const p=l[f];p!=null&&p.timeout&&clearTimeout(p.timeout),delete l[f]}function u(){for(const f of Object.keys(l))c(f)}function d(f={}){let p=!1,b=Number.POSITIVE_INFINITY;for(let E in f)f[E].pollingInterval&&(b=Math.min(f[E].pollingInterval,b),p=f[E].skipPollingIfUnfocused||p);return{lowestPollingInterval:b,skipPollingIfUnfocused:p}}return r},Bw=({api:e,context:t,queryThunk:n,mutationThunk:a})=>{const i=oc(n,a),l=_i(n,a),r=Wn(n,a),s={};return(c,u)=>{var d,f;if(i(c)){const{requestId:p,arg:{endpointName:b,originalArgs:E}}=c.meta,C=t.endpointDefinitions[b],g=C==null?void 0:C.onQueryStarted;if(g){const y={},h=new Promise((w,x)=>{y.resolve=w,y.reject=x});h.catch(()=>{}),s[p]=y;const m=e.endpoints[b].select(Ls(C)?E:p),v=u.dispatch((w,x,T)=>T),_={...u,getCacheEntry:()=>m(u.getState()),requestId:p,extra:v,updateCachedData:Ls(C)?w=>u.dispatch(e.util.updateQueryData(b,E,w)):void 0,queryFulfilled:h};g(E,_)}}else if(r(c)){const{requestId:p,baseQueryMeta:b}=c.meta;(d=s[p])==null||d.resolve({data:c.payload,meta:b}),delete s[p]}else if(l(c)){const{requestId:p,rejectedWithValue:b,baseQueryMeta:E}=c.meta;(f=s[p])==null||f.reject({error:c.payload??c.error,isUnhandledError:!b,meta:E}),delete s[p]}}},jw=({reducerPath:e,context:t,api:n,refetchQuery:a,internalState:i})=>{const{removeQueryResult:l}=n.internalActions,r=(o,c)=>{Mc.match(o)&&s(c,"refetchOnFocus"),Rc.match(o)&&s(c,"refetchOnReconnect")};function s(o,c){const u=o.getState()[e],d=u.queries,f=i.currentSubscriptions;t.batch(()=>{for(const p of Object.keys(f)){const b=d[p],E=f[p];if(!E||!b)continue;(Object.values(E).some(g=>g[c]===!0)||Object.values(E).every(g=>g[c]===void 0)&&u.config[c])&&(Oi(E)===0?o.dispatch(l({queryCacheKey:p})):b.status!=="uninitialized"&&o.dispatch(a(b)))}})}return r};function Hw(e){const{reducerPath:t,queryThunk:n,api:a,context:i}=e,{apiUid:l}=i,r={invalidateTags:an(`${t}/invalidateTags`)},s=d=>d.type.startsWith(`${t}/`),o=[zw,Nw,Uw,Lw,Dw,Bw];return{middleware:d=>{let f=!1;const b={...e,internalState:{currentSubscriptions:{}},refetchQuery:u,isThisApiSliceAction:s},E=o.map(y=>y(b)),C=xw(b),g=jw(b);return y=>h=>{if(!hp(h))return y(h);f||(f=!0,d.dispatch(a.internalActions.middlewareRegistered(l)));const m={...d,next:y},v=d.getState(),[_,w]=C(h,m,v);let x;if(_?x=y(h):x=w,d.getState()[t]&&(g(h,m,v),s(h)||i.hasRehydrationInfo(h)))for(const T of E)T(h,m,v);return x}},actions:r};function u(d){return e.api.endpoints[d.endpointName].initiate(d.originalArgs,{subscribe:!1,forceRefetch:!0})}}var Dg=Symbol(),zg=({createSelector:e=Yu}={})=>({name:Dg,init(t,{baseQuery:n,tagTypes:a,reducerPath:i,serializeQueryArgs:l,keepUnusedDataFor:r,refetchOnMountOrArgChange:s,refetchOnFocus:o,refetchOnReconnect:c,invalidationBehavior:u,onSchemaFailure:d,catchSchemaFailure:f,skipSchemaValidation:p},b){GE();const E=Q=>Q;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:Rc,onOffline:Cg,onFocus:Mc,onFocusLost:Eg},util:{}});const C=Ow({serializeQueryArgs:l,reducerPath:i,createSelector:e}),{selectInvalidatedBy:g,selectCachedArgsForQuery:y,buildQuerySelector:h,buildInfiniteQuerySelector:m,buildMutationSelector:v}=C;An(t.util,{selectInvalidatedBy:g,selectCachedArgsForQuery:y});const{queryThunk:_,infiniteQueryThunk:w,mutationThunk:x,patchQueryData:T,updateQueryData:A,upsertQueryData:O,prefetch:R,buildMatchThunkActions:D}=Tw({baseQuery:n,reducerPath:i,context:b,api:t,serializeQueryArgs:l,assertTagType:E,selectors:C,onSchemaFailure:d,catchSchemaFailure:f,skipSchemaValidation:p}),{reducer:z,actions:H}=Aw({context:b,queryThunk:_,mutationThunk:x,serializeQueryArgs:l,reducerPath:i,assertTagType:E,config:{refetchOnFocus:o,refetchOnReconnect:c,refetchOnMountOrArgChange:s,keepUnusedDataFor:r,reducerPath:i,invalidationBehavior:u}});An(t.util,{patchQueryData:T,updateQueryData:A,upsertQueryData:O,prefetch:R,resetApiState:H.resetApiState,upsertQueryEntries:H.cacheEntriesUpserted}),An(t.internalActions,H);const{middleware:N,actions:L}=Hw({reducerPath:i,context:b,queryThunk:_,mutationThunk:x,infiniteQueryThunk:w,api:t,assertTagType:E,selectors:C});An(t.util,L),An(t,{reducer:z,middleware:N});const{buildInitiateQuery:F,buildInitiateInfiniteQuery:q,buildInitiateMutation:G,getRunningMutationThunk:Y,getRunningMutationsThunk:W,getRunningQueriesThunk:fe,getRunningQueryThunk:X}=ww({queryThunk:_,mutationThunk:x,infiniteQueryThunk:w,api:t,serializeQueryArgs:l,context:b});return An(t.util,{getRunningMutationThunk:Y,getRunningMutationsThunk:W,getRunningQueryThunk:X,getRunningQueriesThunk:fe}),{name:Dg,injectEndpoint(Q,$){var k;const U=(k=t.endpoints)[Q]??(k[Q]={});zs($)&&An(U,{name:Q,select:h(Q,$),initiate:F(Q,$)},D(_,Q)),Sw($)&&An(U,{name:Q,select:v(),initiate:G(Q)},D(x,Q)),Us($)&&An(U,{name:Q,select:m(Q,$),initiate:q(Q,$)},D(_,Q))}}}});zg();function Fs(e){return e.replace(e[0],e[0].toUpperCase())}function Fw(e){return e.type==="query"}function qw(e){return e.type==="mutation"}function Ug(e){return e.type==="infinitequery"}function Kl(e,...t){return Object.assign(e,...t)}var Lc=Symbol();function Bc(e,t,n,a){const i=S.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:n,endpointName:a}):e}),[e,t,n,a]),l=S.useRef(i);return S.useEffect(()=>{l.current.serialized!==i.serialized&&(l.current=i)},[i]),l.current.serialized===i.serialized?l.current.queryArgs:e}function qs(e){const t=S.useRef(e);return S.useEffect(()=>{Fl(t.current,e)||(t.current=e)},[e]),Fl(t.current,e)?t.current:e}var Vw=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kw=Vw(),Qw=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Gw=Qw(),$w=()=>kw||Gw?S.useLayoutEffect:S.useEffect,Kw=$w(),Lg=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:dg.pending}:e;function jc(e,...t){const n={};return t.forEach(a=>{n[a]=e[a]}),n}var Hc=["data","status","isLoading","isSuccess","isError","error"];function Yw({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:a,useStore:i},unstable__sideEffectsInRender:l,createSelector:r},serializeQueryArgs:s,context:o}){const c=l?m=>m():S.useEffect;return{buildQueryHooks:g,buildInfiniteQueryHooks:y,buildMutationHook:h,usePrefetch:f};function u(m,v,_){if(v!=null&&v.endpointName&&m.isUninitialized){const{endpointName:R}=v,D=o.endpointDefinitions[R];_!==rn&&s({queryArgs:v.originalArgs,endpointDefinition:D,endpointName:R})===s({queryArgs:_,endpointDefinition:D,endpointName:R})&&(v=void 0)}let w=m.isSuccess?m.data:v==null?void 0:v.data;w===void 0&&(w=m.data);const x=w!==void 0,T=m.isLoading,A=(!v||v.isLoading||v.isUninitialized)&&!x&&T,O=m.isSuccess||x&&(T&&!(v!=null&&v.isError)||m.isUninitialized);return{...m,data:w,currentData:m.data,isFetching:T,isLoading:A,isSuccess:O}}function d(m,v,_){if(v!=null&&v.endpointName&&m.isUninitialized){const{endpointName:R}=v,D=o.endpointDefinitions[R];_!==rn&&s({queryArgs:v.originalArgs,endpointDefinition:D,endpointName:R})===s({queryArgs:_,endpointDefinition:D,endpointName:R})&&(v=void 0)}let w=m.isSuccess?m.data:v==null?void 0:v.data;w===void 0&&(w=m.data);const x=w!==void 0,T=m.isLoading,A=(!v||v.isLoading||v.isUninitialized)&&!x&&T,O=m.isSuccess||T&&x;return{...m,data:w,currentData:m.data,isFetching:T,isLoading:A,isSuccess:O}}function f(m,v){const _=n(),w=qs(v);return S.useCallback((x,T)=>_(e.util.prefetch(m,x,{...w,...T})),[m,_,w])}function p(m,v,{refetchOnReconnect:_,refetchOnFocus:w,refetchOnMountOrArgChange:x,skip:T=!1,pollingInterval:A=0,skipPollingIfUnfocused:O=!1,...R}={}){const{initiate:D}=e.endpoints[m],z=n(),H=S.useRef(void 0);if(!H.current){const Q=z(e.internalActions.internal_getRTKQSubscriptions());H.current=Q}const N=Bc(T?rn:v,Hs,o.endpointDefinitions[m],m),L=qs({refetchOnReconnect:_,refetchOnFocus:w,pollingInterval:A,skipPollingIfUnfocused:O}),F=R.initialPageParam,q=qs(F),G=S.useRef(void 0);let{queryCacheKey:Y,requestId:W}=G.current||{},fe=!1;Y&&W&&(fe=H.current.isRequestSubscribed(Y,W));const X=!fe&&G.current!==void 0;return c(()=>{X&&(G.current=void 0)},[X]),c(()=>{var M;const Q=G.current;if(N===rn){Q==null||Q.unsubscribe(),G.current=void 0;return}const $=(M=G.current)==null?void 0:M.subscriptionOptions;if(!Q||Q.arg!==N){Q==null||Q.unsubscribe();const U=z(D(N,{subscriptionOptions:L,forceRefetch:x,...Ug(o.endpointDefinitions[m])?{initialPageParam:q}:{}}));G.current=U}else L!==$&&Q.updateSubscriptionOptions(L)},[z,D,x,N,L,X,q,m]),[G,z,D,L]}function b(m,v){return(w,{skip:x=!1,selectFromResult:T}={})=>{const{select:A}=e.endpoints[m],O=Bc(x?rn:w,s,o.endpointDefinitions[m],m),R=S.useRef(void 0),D=S.useMemo(()=>r([A(O),(F,q)=>q,F=>O],v,{memoizeOptions:{resultEqualityCheck:Fl}}),[A,O]),z=S.useMemo(()=>T?r([D],T,{devModeChecks:{identityFunctionCheck:"never"}}):D,[D,T]),H=a(F=>z(F,R.current),Fl),N=i(),L=D(N.getState(),R.current);return Kw(()=>{R.current=L},[L]),H}}function E(m){S.useEffect(()=>()=>{var v,_;(_=(v=m.current)==null?void 0:v.unsubscribe)==null||_.call(v),m.current=void 0},[m])}function C(m){if(!m.current)throw new Error(ln(38));return m.current.refetch()}function g(m){const v=(x,T={})=>{const[A]=p(m,x,T);return E(A),S.useMemo(()=>({refetch:()=>C(A)}),[A])},_=({refetchOnReconnect:x,refetchOnFocus:T,pollingInterval:A=0,skipPollingIfUnfocused:O=!1}={})=>{const{initiate:R}=e.endpoints[m],D=n(),[z,H]=S.useState(Lc),N=S.useRef(void 0),L=qs({refetchOnReconnect:x,refetchOnFocus:T,pollingInterval:A,skipPollingIfUnfocused:O});c(()=>{var W,fe;const Y=(W=N.current)==null?void 0:W.subscriptionOptions;L!==Y&&((fe=N.current)==null||fe.updateSubscriptionOptions(L))},[L]);const F=S.useRef(L);c(()=>{F.current=L},[L]);const q=S.useCallback(function(Y,W=!1){let fe;return t(()=>{var X;(X=N.current)==null||X.unsubscribe(),N.current=fe=D(R(Y,{subscriptionOptions:F.current,forceRefetch:!W})),H(Y)}),fe},[D,R]),G=S.useCallback(()=>{var Y,W;(Y=N.current)!=null&&Y.queryCacheKey&&D(e.internalActions.removeQueryResult({queryCacheKey:(W=N.current)==null?void 0:W.queryCacheKey}))},[D]);return S.useEffect(()=>()=>{var Y;(Y=N==null?void 0:N.current)==null||Y.unsubscribe()},[]),S.useEffect(()=>{z!==Lc&&!N.current&&q(z,!0)},[z,q]),S.useMemo(()=>[q,z,{reset:G}],[q,z,G])},w=b(m,u);return{useQueryState:w,useQuerySubscription:v,useLazyQuerySubscription:_,useLazyQuery(x){const[T,A,{reset:O}]=_(x),R=w(A,{...x,skip:A===Lc}),D=S.useMemo(()=>({lastArg:A}),[A]);return S.useMemo(()=>[T,{...R,reset:O},D],[T,R,O,D])},useQuery(x,T){const A=v(x,T),O=w(x,{selectFromResult:x===rn||T!=null&&T.skip?void 0:Lg,...T}),R=jc(O,...Hc);return S.useDebugValue(R),S.useMemo(()=>({...O,...A}),[O,A])}}}function y(m){const v=(w,x={})=>{const[T,A,O,R]=p(m,w,x),D=S.useRef(R);c(()=>{D.current=R},[R]);const z=S.useCallback(function(L,F){let q;return t(()=>{var G;(G=T.current)==null||G.unsubscribe(),T.current=q=A(O(L,{subscriptionOptions:D.current,direction:F}))}),q},[T,A,O]);E(T);const H=Bc(x.skip?rn:w,Hs,o.endpointDefinitions[m],m),N=S.useCallback(()=>C(T),[T]);return S.useMemo(()=>({trigger:z,refetch:N,fetchNextPage:()=>z(H,"forward"),fetchPreviousPage:()=>z(H,"backward")}),[N,z,H])},_=b(m,d);return{useInfiniteQueryState:_,useInfiniteQuerySubscription:v,useInfiniteQuery(w,x){const{refetch:T,fetchNextPage:A,fetchPreviousPage:O}=v(w,x),R=_(w,{selectFromResult:w===rn||x!=null&&x.skip?void 0:Lg,...x}),D=jc(R,...Hc,"hasNextPage","hasPreviousPage");return S.useDebugValue(D),S.useMemo(()=>({...R,fetchNextPage:A,fetchPreviousPage:O,refetch:T}),[R,A,O,T])}}}function h(m){return({selectFromResult:v,fixedCacheKey:_}={})=>{const{select:w,initiate:x}=e.endpoints[m],T=n(),[A,O]=S.useState();S.useEffect(()=>()=>{A!=null&&A.arg.fixedCacheKey||A==null||A.reset()},[A]);const R=S.useCallback(function(Y){const W=T(x(Y,{fixedCacheKey:_}));return O(W),W},[T,x,_]),{requestId:D}=A||{},z=S.useMemo(()=>w({fixedCacheKey:_,requestId:A==null?void 0:A.requestId}),[_,A,w]),H=S.useMemo(()=>v?r([z],v):z,[v,z]),N=a(H,Fl),L=_==null?A==null?void 0:A.arg.originalArgs:void 0,F=S.useCallback(()=>{t(()=>{A&&O(void 0),_&&T(e.internalActions.removeMutationResult({requestId:D,fixedCacheKey:_}))})},[T,_,A,D]),q=jc(N,...Hc,"endpointName");S.useDebugValue(q);const G=S.useMemo(()=>({...N,originalArgs:L,reset:F}),[N,L,F]);return S.useMemo(()=>[R,G],[R,G])}}}var Pw=Symbol(),Xw=({batch:e=FC,hooks:t={useDispatch:BC,useSelector:kp,useStore:Vp},createSelector:n=Yu,unstable__sideEffectsInRender:a=!1,...i}={})=>({name:Pw,init(l,{serializeQueryArgs:r},s){const o=l,{buildQueryHooks:c,buildInfiniteQueryHooks:u,buildMutationHook:d,usePrefetch:f}=Yw({api:l,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:a,createSelector:n},serializeQueryArgs:r,context:s});return Kl(o,{usePrefetch:f}),Kl(s,{batch:e}),{injectEndpoint(p,b){if(Fw(b)){const{useQuery:E,useLazyQuery:C,useLazyQuerySubscription:g,useQueryState:y,useQuerySubscription:h}=c(p);Kl(o.endpoints[p],{useQuery:E,useLazyQuery:C,useLazyQuerySubscription:g,useQueryState:y,useQuerySubscription:h}),l[`use${Fs(p)}Query`]=E,l[`useLazy${Fs(p)}Query`]=C}if(qw(b)){const E=d(p);Kl(o.endpoints[p],{useMutation:E}),l[`use${Fs(p)}Mutation`]=E}else if(Ug(b)){const{useInfiniteQuery:E,useInfiniteQuerySubscription:C,useInfiniteQueryState:g}=u(p);Kl(o.endpoints[p],{useInfiniteQuery:E,useInfiniteQuerySubscription:C,useInfiniteQueryState:g}),l[`use${Fs(p)}InfiniteQuery`]=E}}}}}),Bg=Rg(zg(),Xw());const Iw=0,st={PowerAgentMode:"PowerAgentMode",ActivityLog:"ActivityLog",initAuth:"initAuth",ProviderConnected:"ProviderConnected",OnboardingShown:"OnboardingShown",GutenbergActions:"GutenbergActions",ChatBubble:"ChatBubble"},Zw=e=>bg(e),ta=Bg({reducerPath:"wp_api",keepUnusedDataFor:Iw,baseQuery:async(e,t,n)=>{const i=t.getState().app.config;return Zw({baseUrl:i.rest_base,timeout:1e4,prepareHeaders:async r=>(r.set("accept","application/json"),i.wp_nonce&&r.set("X-WP-Nonce",i.wp_nonce),r)})(e,t,n)},endpoints:e=>({getPowermode:e.query({query:()=>({url:"/sg-ai-studio/settings-page/powermode",method:"GET"}),providesTags:[st.PowerAgentMode]}),updatePowermode:e.mutation({query:t=>({url:"/sg-ai-studio/settings-page/powermode",method:"POST",body:t}),invalidatesTags:[st.PowerAgentMode]}),getGutenbergActions:e.query({query:()=>({url:"/sg-ai-studio/settings-page/gutenberg-actions",method:"GET"}),providesTags:[st.GutenbergActions]}),updateGutenbergActions:e.mutation({query:t=>({url:"/sg-ai-studio/settings-page/gutenberg-actions",method:"POST",body:t}),invalidatesTags:[st.GutenbergActions]}),getChatBubble:e.query({query:()=>({url:"/sg-ai-studio/settings-page/chat-bubble",method:"GET"}),providesTags:[st.ChatBubble]}),updateChatBubble:e.mutation({query:t=>({url:"/sg-ai-studio/settings-page/chat-bubble",method:"POST",body:t}),invalidatesTags:[st.ChatBubble]}),getProviderConnected:e.query({query:()=>({url:"/sg-ai-studio/settings-page/provider-connected",method:"GET"}),transformResponse:t=>({enabled:t.provider_connected}),providesTags:[st.ProviderConnected]}),updateProviderConnected:e.mutation({query:({enabled:t})=>({url:"/sg-ai-studio/settings-page/provider-connected",method:"POST",body:{connected:t}}),transformResponse:t=>({enabled:t.provider_connected}),invalidatesTags:[st.ProviderConnected]}),checkStatus:e.query({query:()=>({url:"/sg-ai-studio/settings-page/connected",method:"GET"}),providesTags:[st.initAuth]}),connect:e.mutation({query:t=>({url:"/sg-ai-studio/init-auth",method:"POST",body:t}),invalidatesTags:[st.initAuth]}),autoConnect:e.mutation({query:()=>({timeout:6e4,url:"/sg-ai-studio/settings-page/auto-connect",method:"POST"}),invalidatesTags:[st.initAuth]}),disconnect:e.mutation({query:()=>({timeout:6e4,url:"/sg-ai-studio/settings-page/disconnect",method:"POST"}),invalidatesTags:[st.initAuth,st.PowerAgentMode]}),activityLog:e.query({query:({page:t=1,per_page:n,activity:a,from:i,to:l}={})=>({url:"/sg-ai-studio/activity-log",method:"GET",params:{page:t,per_page:n,activity:a,from:i,to:l}})}),getUsage:e.query({query:({start:t,end:n,source:a}={})=>({url:"/sg-ai-studio/usage",method:"GET",params:{source:a,start:t,end:n}})}),getACL:e.query({query:()=>({url:"/sg-ai-studio/acl",method:"GET"})}),getOnboardingShown:e.query({query:()=>({url:"/sg-ai-studio/onboarding-shown",method:"GET"}),providesTags:[st.OnboardingShown]}),updateOnboardingShown:e.mutation({query:()=>({url:"/sg-ai-studio/onboarding-shown",method:"POST",body:{shown:!0}}),invalidatesTags:[st.OnboardingShown]})}),tagTypes:Object.values(st)}),{useGetPowermodeQuery:Jw,useUpdatePowermodeMutation:Ww,useGetGutenbergActionsQuery:e_,useUpdateGutenbergActionsMutation:t_,useGetChatBubbleQuery:n_,useUpdateChatBubbleMutation:a_,useGetProviderConnectedQuery:i_,useUpdateProviderConnectedMutation:l_,useActivityLogQuery:r_,useConnectMutation:s_,useAutoConnectMutation:o_,useCheckStatusQuery:u_,useDisconnectMutation:c_}=ta,f_=pt({name:"usage",initialState:{balance:null,budget:null,source:null},reducers:{},extraReducers:e=>{e.addMatcher(ta.endpoints.getUsage.matchFulfilled,(t,n)=>{t.balance=n.payload.balance,t.budget=n.payload.budget,t.source=n.payload.source})}}).reducer,d_=pt({name:"acl",initialState:{features:null,isLoading:!1,error:null},reducers:{},extraReducers:e=>{e.addMatcher(ta.endpoints.getACL.matchPending,t=>{t.isLoading=!0,t.error=null}).addMatcher(ta.endpoints.getACL.matchFulfilled,(t,n)=>{t.isLoading=!1,t.features=n.payload.features}).addMatcher(ta.endpoints.getACL.matchRejected,(t,n)=>{t.isLoading=!1,t.error=n.error.message})}}).reducer,h_=e=>{let t=2169136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24);return(t>>>0).toString(16).substring(0,8)},Fc=(e,t)=>`${h_(e.home_url)}_wp_ai_studio_${t}`,Mi=e=>({CHAT_STATE:Fc(e,"chat_state"),TOKEN:Fc(e,"token"),INVALIDATION:Fc(e,"invalidation")}),m_=["wp_ai_studio_chat_state","wp_ai_studio_token","wp_ai_studio_invalidation"],p_=()=>{try{m_.forEach(e=>{localStorage.getItem(e)!==null&&localStorage.removeItem(e)})}catch(e){console.error("Failed to cleanup legacy localStorage keys",{error:e})}},g_=["chat"],y_=(e,t)=>{try{const n={chat:e.chat},a=Mi(t),i=JSON.stringify(n);localStorage.setItem(a.CHAT_STATE,i)}catch{const a=Mi(t);localStorage.removeItem(a.CHAT_STATE)}},v_=e=>{try{const t=Mi(e),n=localStorage.getItem(t.CHAT_STATE);if(!n)return;const a=JSON.parse(n),i=a.chat;return i&&(a.chat=X3(i)),a}catch{const n=Mi(e);localStorage.removeItem(n.CHAT_STATE);return}},b_=e=>t=>n=>a=>{const i=t.getState(),l=n(a),r=t.getState();return g_.some(o=>i[o]!==r[o])&&y_(r,e),a.type&&typeof a.type=="string"&&a.type.includes("messages/addUserMessage")&&t.dispatch(tw()),l};class S_{constructor(t){wt(this,"tokenName");wt(this,"storageStrategy");wt(this,"isTokenExpired");wt(this,"refreshTokenFn");wt(this,"token",null);wt(this,"refreshPromise",null);if(this.tokenName=t.tokenName,this.storageStrategy=t.storageStrategy||"memory",this.isTokenExpired=t.isTokenExpired,this.refreshTokenFn=t.refreshToken,this.storageStrategy==="localStorage"){const n=localStorage.getItem(this.tokenName);n&&(this.token=n)}}syncTokenWithStorage(t){this.storageStrategy==="localStorage"&&localStorage.setItem(this.tokenName,t)}decodeToken(t){try{return JSON.parse(atob(t.split(".")[1]))}catch(n){return console.error("Failed to decode token",n),null}}setToken(t){const n=this.decodeToken(t);this.token=n?t:"",this.syncTokenWithStorage(this.token)}async getToken(){const t=typeof this.token=="string"&&this.decodeToken(this.token);return t&&!this.isTokenExpired(t)?Promise.resolve(this.token):this.refreshPromise?this.refreshPromise:(this.refreshPromise=this.refreshTokenFn().then(a=>(this.token=a,this.syncTokenWithStorage(a),this.refreshPromise=null,a)).catch(a=>{throw this.refreshPromise=null,a}),this.refreshPromise)}decode(){return this.token?this.decodeToken(this.token):null}}let Ri=null;const E_=e=>{if(Ri)return Ri;const t=Mi(e);return Ri=new S_({tokenName:t.TOKEN,storageStrategy:"localStorage",refreshToken(){return new Promise(n=>{const a=()=>{n(null)};Promise.resolve().then(()=>T_).then(({getStore:i})=>{const l=i(),r=l.getState().app.config.wp_nonce?{"content-type":"application/json","X-WP-Nonce":l.getState().app.config.wp_nonce}:{"content-type":"application/json"};fetch(`${l.getState().app.config.rest_base}/sg-ai-studio/generate-token`,{method:"POST",headers:r}).then(s=>{s.json().then(o=>s.status>=400?a():n(o.token)).catch(()=>a())}).catch(()=>a())})})},isTokenExpired:n=>Number(n.cts+n.vsec)*1e3<+new Date}),Ri},qc=()=>{if(!Ri)throw new Error("Token manager not initialized. Call initializeAiToken(config) first.");return Ri},C_=0,w_=3,Vs={Files:"Files",ChatMessages:"ChatMessages",ChatHistory:"ChatHistory"},Vc=Bg({reducerPath:"api",keepUnusedDataFor:C_,baseQuery:async(e,t,n)=>{var o;const l=((o=t.getState().app.config)==null?void 0:o.is_staging)?"https://api.staging.studio.siteground.ai":"https://api.studio.siteground.ai",r=bg({baseUrl:l,timeout:1e4,prepareHeaders:async c=>{const u=await qc().getToken();return c.set("accept","application/json"),c.set("Authorization",`Bearer ${u}`),c}});let s=await r(e,t,n);if(s.error&&s.error.status===401){let c=0;for(;c<w_&&(c++,qc().setToken(null),!(!await qc().getToken()||(s=await r(e,t,n),!s.error||s.error.status!==401))););s.error&&s.error.status===401&&t.dispatch(sw())}return s},endpoints:e=>({getPresignedUrl:e.mutation({query:t=>({url:"api/v1/files/wp-presigned-url",method:"POST",body:t})}),uploadToStorage:e.mutation({queryFn:async({presignedUrl:t,file:n},{signal:a})=>{try{if(!(await fetch(t,{method:"PUT",body:n,headers:{"Content-Type":n.type},signal:a})).ok)throw new Error("Failed to upload file to S3");return{data:void 0}}catch(i){return{error:{status:"FETCH_ERROR",error:i.message}}}},invalidatesTags:[Vs.Files]}),getChatHistory:e.query({query:()=>({url:"api/v1/history/wp-history",method:"GET"}),transformResponse:t=>t.data,providesTags:[Vs.ChatHistory]}),getChatMessageById:e.query({query:t=>({url:`/chat/v1/messages/${t}`,method:"GET"}),transformResponse:t=>{const n=[...t].sort((s,o)=>s.sequence_number-o.sequence_number),a=[];let i=null;const l=s=>(i??(i={id:s,role:"assistant",content:"",segments:[],timestamp:Date.now(),isStreaming:!1,isComplete:!0}),i),r=()=>{i&&(a.push(i),i=null)};for(const s of n){if(s.role==="user"){r(),a.push({id:s.id,content:s.content,timestamp:Date.now(),role:"user"});continue}if(s.role==="assistant"){const o=l(s.id);o.content+=s.content,rg(o.segments,s.content);continue}if(s.role==="tool_result"){try{const o=JSON.parse(s.content);o&&ig(o)&&!lg(o)&&l(s.id).segments.push({type:"image",content:o})}catch{}continue}}return r(),a},providesTags:[Vs.ChatMessages]})}),tagTypes:Object.values(Vs)}),__=Xu({app:I3,chat:lw,messages:aw,settings:rw,files:uw,logout:ow,usage:f_,acl:d_,[Vc.reducerPath]:Vc.reducer,[ta.reducerPath]:ta.reducer});let Ni=null;const jg=e=>{if(Ni)return Ni;const t=Mi(e);_2({[t.CHAT_STATE]:3},t.INVALIDATION);const n=v_(e);return Ni=WE({reducer:__,preloadedState:n,middleware:a=>a({serializableCheck:{ignoredActions:["persist/PERSIST","persist/REHYDRATE"]}}).concat(b_(e),Vc.middleware,ta.middleware),devTools:!1}),Ni},T_=Object.freeze(Object.defineProperty({__proto__:null,getStore:()=>{if(!Ni)throw new Error("Store not initialized. Call initializeStore(config) first.");return Ni},initializeStore:jg},Symbol.toStringTag,{value:"Module"}));var Hg={exports:{}},ks={},Fg={exports:{}},qg={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(N,L){var F=N.length;N.push(L);e:for(;0<F;){var q=F-1>>>1,G=N[q];if(0<i(G,L))N[q]=L,N[F]=G,F=q;else break e}}function n(N){return N.length===0?null:N[0]}function a(N){if(N.length===0)return null;var L=N[0],F=N.pop();if(F!==L){N[0]=F;e:for(var q=0,G=N.length,Y=G>>>1;q<Y;){var W=2*(q+1)-1,fe=N[W],X=W+1,Q=N[X];if(0>i(fe,F))X<G&&0>i(Q,fe)?(N[q]=Q,N[X]=F,q=X):(N[q]=fe,N[W]=F,q=W);else if(X<G&&0>i(Q,F))N[q]=Q,N[X]=F,q=X;else break e}}return L}function i(N,L){var F=N.sortIndex-L.sortIndex;return F!==0?F:N.id-L.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var r=Date,s=r.now();e.unstable_now=function(){return r.now()-s}}var o=[],c=[],u=1,d=null,f=3,p=!1,b=!1,E=!1,C=!1,g=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;function m(N){for(var L=n(c);L!==null;){if(L.callback===null)a(c);else if(L.startTime<=N)a(c),L.sortIndex=L.expirationTime,t(o,L);else break;L=n(c)}}function v(N){if(E=!1,m(N),!b)if(n(o)!==null)b=!0,_||(_=!0,R());else{var L=n(c);L!==null&&H(v,L.startTime-N)}}var _=!1,w=-1,x=5,T=-1;function A(){return C?!0:!(e.unstable_now()-T<x)}function O(){if(C=!1,_){var N=e.unstable_now();T=N;var L=!0;try{e:{b=!1,E&&(E=!1,y(w),w=-1),p=!0;var F=f;try{t:{for(m(N),d=n(o);d!==null&&!(d.expirationTime>N&&A());){var q=d.callback;if(typeof q=="function"){d.callback=null,f=d.priorityLevel;var G=q(d.expirationTime<=N);if(N=e.unstable_now(),typeof G=="function"){d.callback=G,m(N),L=!0;break t}d===n(o)&&a(o),m(N)}else a(o);d=n(o)}if(d!==null)L=!0;else{var Y=n(c);Y!==null&&H(v,Y.startTime-N),L=!1}}break e}finally{d=null,f=F,p=!1}L=void 0}}finally{L?R():_=!1}}}var R;if(typeof h=="function")R=function(){h(O)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,z=D.port2;D.port1.onmessage=O,R=function(){z.postMessage(null)}}else R=function(){g(O,0)};function H(N,L){w=g(function(){N(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(N){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var F=f;f=L;try{return N()}finally{f=F}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(N,L){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var F=f;f=N;try{return L()}finally{f=F}},e.unstable_scheduleCallback=function(N,L,F){var q=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?q+F:q):F=q,N){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=F+G,N={id:u++,callback:L,priorityLevel:N,startTime:F,expirationTime:G,sortIndex:-1},F>q?(N.sortIndex=F,t(c,N),n(o)===null&&N===n(c)&&(E?(y(w),w=-1):E=!0,H(v,F-q))):(N.sortIndex=G,t(o,N),b||p||(b=!0,_||(_=!0,R()))),N},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(N){var L=f;return function(){var F=f;f=L;try{return N.apply(this,arguments)}finally{f=F}}}})(qg),Fg.exports=qg;var A_=Fg.exports;/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ye=A_,Vg=S,O_=Fm;function j(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function kg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Yl(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Qg(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Gg(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function $g(e){if(Yl(e)!==e)throw Error(j(188))}function x_(e){var t=e.alternate;if(!t){if(t=Yl(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return $g(i),e;if(l===a)return $g(i),t;l=l.sibling}throw Error(j(188))}if(n.return!==a.return)n=i,a=l;else{for(var r=!1,s=i.child;s;){if(s===n){r=!0,n=i,a=l;break}if(s===a){r=!0,a=i,n=l;break}s=s.sibling}if(!r){for(s=l.child;s;){if(s===n){r=!0,n=l,a=i;break}if(s===a){r=!0,a=l,n=i;break}s=s.sibling}if(!r)throw Error(j(189))}}if(n.alternate!==a)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function Kg(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Kg(e),t!==null)return t;e=e.sibling}return null}var Me=Object.assign,M_=Symbol.for("react.element"),Qs=Symbol.for("react.transitional.element"),Pl=Symbol.for("react.portal"),Di=Symbol.for("react.fragment"),Yg=Symbol.for("react.strict_mode"),kc=Symbol.for("react.profiler"),Pg=Symbol.for("react.consumer"),On=Symbol.for("react.context"),Qc=Symbol.for("react.forward_ref"),Gc=Symbol.for("react.suspense"),$c=Symbol.for("react.suspense_list"),Kc=Symbol.for("react.memo"),na=Symbol.for("react.lazy"),Yc=Symbol.for("react.activity"),R_=Symbol.for("react.memo_cache_sentinel"),Xg=Symbol.iterator;function Xl(e){return e===null||typeof e!="object"?null:(e=Xg&&e[Xg]||e["@@iterator"],typeof e=="function"?e:null)}var N_=Symbol.for("react.client.reference");function Pc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===N_?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Di:return"Fragment";case kc:return"Profiler";case Yg:return"StrictMode";case Gc:return"Suspense";case $c:return"SuspenseList";case Yc:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Pl:return"Portal";case On:return e.displayName||"Context";case Pg:return(e._context.displayName||"Context")+".Consumer";case Qc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kc:return t=e.displayName||null,t!==null?t:Pc(e.type)||"Memo";case na:t=e._payload,e=e._init;try{return Pc(e(t))}catch{}}return null}var Il=Array.isArray,J=Vg.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de=O_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Pa={pending:!1,data:null,method:null,action:null},Xc=[],zi=-1;function dn(e){return{current:e}}function Ie(e){0>zi||(e.current=Xc[zi],Xc[zi]=null,zi--)}function Oe(e,t){zi++,Xc[zi]=e.current,e.current=t}var hn=dn(null),Zl=dn(null),aa=dn(null),Gs=dn(null);function $s(e,t){switch(Oe(aa,t),Oe(Zl,e),Oe(hn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?S0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=S0(t),e=E0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ie(hn),Oe(hn,e)}function Ui(){Ie(hn),Ie(Zl),Ie(aa)}function Ic(e){e.memoizedState!==null&&Oe(Gs,e);var t=hn.current,n=E0(t,e.type);t!==n&&(Oe(Zl,e),Oe(hn,n))}function Ks(e){Zl.current===e&&(Ie(hn),Ie(Zl)),Gs.current===e&&(Ie(Gs),qr._currentValue=Pa)}var Zc,Ig;function Xa(e){if(Zc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Zc=t&&t[1]||"",Ig=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Zc+e+Ig}var Jc=!1;function Wc(e,t){if(!e||Jc)return"";Jc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(p){var f=p}Reflect.construct(e,[],d)}else{try{d.call()}catch(p){f=p}e.call(d.prototype)}}else{try{throw Error()}catch(p){f=p}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(p){if(p&&f&&typeof p.stack=="string")return[p.stack,f.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=a.DetermineComponentFrameRoot(),r=l[0],s=l[1];if(r&&s){var o=r.split(`
`),c=s.split(`
`);for(i=a=0;a<o.length&&!o[a].includes("DetermineComponentFrameRoot");)a++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(a===o.length||i===c.length)for(a=o.length-1,i=c.length-1;1<=a&&0<=i&&o[a]!==c[i];)i--;for(;1<=a&&0<=i;a--,i--)if(o[a]!==c[i]){if(a!==1||i!==1)do if(a--,i--,0>i||o[a]!==c[i]){var u=`
`+o[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=i);break}}}finally{Jc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Xa(n):""}function D_(e,t){switch(e.tag){case 26:case 27:case 5:return Xa(e.type);case 16:return Xa("Lazy");case 13:return e.child!==t&&t!==null?Xa("Suspense Fallback"):Xa("Suspense");case 19:return Xa("SuspenseList");case 0:case 15:return Wc(e.type,!1);case 11:return Wc(e.type.render,!1);case 1:return Wc(e.type,!0);case 31:return Xa("Activity");default:return""}}function Zg(e){try{var t="",n=null;do t+=D_(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var ef=Object.prototype.hasOwnProperty,tf=Ye.unstable_scheduleCallback,nf=Ye.unstable_cancelCallback,z_=Ye.unstable_shouldYield,U_=Ye.unstable_requestPaint,xt=Ye.unstable_now,L_=Ye.unstable_getCurrentPriorityLevel,Jg=Ye.unstable_ImmediatePriority,Wg=Ye.unstable_UserBlockingPriority,Ys=Ye.unstable_NormalPriority,B_=Ye.unstable_LowPriority,ey=Ye.unstable_IdlePriority,j_=Ye.log,H_=Ye.unstable_setDisableYieldValue,Jl=null,Mt=null;function ia(e){if(typeof j_=="function"&&H_(e),Mt&&typeof Mt.setStrictMode=="function")try{Mt.setStrictMode(Jl,e)}catch{}}var Rt=Math.clz32?Math.clz32:V_,F_=Math.log,q_=Math.LN2;function V_(e){return e>>>=0,e===0?32:31-(F_(e)/q_|0)|0}var Ps=256,Xs=262144,Is=4194304;function Ia(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Zs(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var i=0,l=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var s=a&134217727;return s!==0?(a=s&~l,a!==0?i=Ia(a):(r&=s,r!==0?i=Ia(r):n||(n=s&~e,n!==0&&(i=Ia(n))))):(s=a&~l,s!==0?i=Ia(s):r!==0?i=Ia(r):n||(n=a&~e,n!==0&&(i=Ia(n)))),i===0?0:t!==0&&t!==i&&!(t&l)&&(l=i&-i,n=t&-t,l>=n||l===32&&(n&4194048)!==0)?t:i}function Wl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function k_(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ty(){var e=Is;return Is<<=1,!(Is&62914560)&&(Is=4194304),e}function af(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function er(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Q_(e,t,n,a,i,l){var r=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,o=e.expirationTimes,c=e.hiddenUpdates;for(n=r&~n;0<n;){var u=31-Rt(n),d=1<<u;s[u]=0,o[u]=-1;var f=c[u];if(f!==null)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}a!==0&&ny(e,a,0),l!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=l&~(r&~t))}function ny(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Rt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function ay(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Rt(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function iy(e,t){var n=t&-t;return n=n&42?1:lf(n),n&(e.suspendedLanes|t)?0:n}function lf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function rf(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ly(){var e=de.p;return e!==0?e:(e=window.event,e===void 0?32:G0(e.type))}function ry(e,t){var n=de.p;try{return de.p=e,t()}finally{de.p=n}}var la=Math.random().toString(36).slice(2),nt="__reactFiber$"+la,gt="__reactProps$"+la,Li="__reactContainer$"+la,sf="__reactEvents$"+la,G_="__reactListeners$"+la,$_="__reactHandles$"+la,sy="__reactResources$"+la,tr="__reactMarker$"+la;function of(e){delete e[nt],delete e[gt],delete e[sf],delete e[G_],delete e[$_]}function Bi(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Li]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=x0(e);e!==null;){if(n=e[nt])return n;e=x0(e)}return t}e=n,n=e.parentNode}return null}function ji(e){if(e=e[nt]||e[Li]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function nr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(j(33))}function Hi(e){var t=e[sy];return t||(t=e[sy]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ze(e){e[tr]=!0}var oy=new Set,uy={};function Za(e,t){Fi(e,t),Fi(e+"Capture",t)}function Fi(e,t){for(uy[e]=t,e=0;e<t.length;e++)oy.add(t[e])}var K_=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),cy={},fy={};function Y_(e){return ef.call(fy,e)?!0:ef.call(cy,e)?!1:K_.test(e)?fy[e]=!0:(cy[e]=!0,!1)}function Js(e,t,n){if(Y_(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Ws(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function xn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function P_(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,l=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(r){n=""+r,l.call(this,r)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(r){n=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function uf(e){if(!e._valueTracker){var t=dy(e)?"checked":"value";e._valueTracker=P_(e,t,""+e[t])}}function hy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=dy(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function eo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var X_=/[\n"\\]/g;function Qt(e){return e.replace(X_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function cf(e,t,n,a,i,l,r,s){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+kt(t)):e.value!==""+kt(t)&&(e.value=""+kt(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?ff(e,r,kt(t)):n!=null?ff(e,r,kt(n)):a!=null&&e.removeAttribute("value"),i==null&&l!=null&&(e.defaultChecked=!!l),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+kt(s):e.removeAttribute("name")}function my(e,t,n,a,i,l,r,s){if(l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.type=l),t!=null||n!=null){if(!(l!=="submit"&&l!=="reset"||t!=null)){uf(e);return}n=n!=null?""+kt(n):"",t=t!=null?""+kt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=s?e.checked:!!a,e.defaultChecked=!!a,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),uf(e)}function ff(e,t,n){t==="number"&&eo(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function qi(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+kt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function py(e,t,n){if(t!=null&&(t=""+kt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+kt(n):""}function gy(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(j(92));if(Il(a)){if(1<a.length)throw Error(j(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=kt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),uf(e)}function Vi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var I_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function yy(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||I_.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function vy(e,t,n){if(t!=null&&typeof t!="object")throw Error(j(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&yy(e,i,a)}else for(var l in t)t.hasOwnProperty(l)&&yy(e,l,t[l])}function df(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Z_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),J_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function to(e){return J_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Mn(){}var hf=null;function mf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ki=null,Qi=null;function by(e){var t=ji(e);if(t&&(e=t.stateNode)){var n=e[gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(cf(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Qt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[gt]||null;if(!i)throw Error(j(90));cf(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&hy(a)}break e;case"textarea":py(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&qi(e,!!n.multiple,t,!1)}}}var pf=!1;function Sy(e,t,n){if(pf)return e(t,n);pf=!0;try{var a=e(t);return a}finally{if(pf=!1,(ki!==null||Qi!==null)&&(Qo(),ki&&(t=ki,e=Qi,Qi=ki=null,by(t),e)))for(t=0;t<e.length;t++)by(e[t])}}function ar(e,t){var n=e.stateNode;if(n===null)return null;var a=n[gt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(j(231,t,typeof n));return n}var Rn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gf=!1;if(Rn)try{var ir={};Object.defineProperty(ir,"passive",{get:function(){gf=!0}}),window.addEventListener("test",ir,ir),window.removeEventListener("test",ir,ir)}catch{gf=!1}var ra=null,yf=null,no=null;function Ey(){if(no)return no;var e,t=yf,n=t.length,a,i="value"in ra?ra.value:ra.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var r=n-e;for(a=1;a<=r&&t[n-a]===i[l-a];a++);return no=i.slice(e,1<a?1-a:void 0)}function ao(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function io(){return!0}function Cy(){return!1}function yt(e){function t(n,a,i,l,r){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=l,this.target=r,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?io:Cy,this.isPropagationStopped=Cy,this}return Me(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=io)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=io)},persist:function(){},isPersistent:io}),t}var Ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lo=yt(Ja),lr=Me({},Ja,{view:0,detail:0}),W_=yt(lr),vf,bf,rr,ro=Me({},lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ef,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==rr&&(rr&&e.type==="mousemove"?(vf=e.screenX-rr.screenX,bf=e.screenY-rr.screenY):bf=vf=0,rr=e),vf)},movementY:function(e){return"movementY"in e?e.movementY:bf}}),wy=yt(ro),eT=Me({},ro,{dataTransfer:0}),tT=yt(eT),nT=Me({},lr,{relatedTarget:0}),Sf=yt(nT),aT=Me({},Ja,{animationName:0,elapsedTime:0,pseudoElement:0}),iT=yt(aT),lT=Me({},Ja,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rT=yt(lT),sT=Me({},Ja,{data:0}),_y=yt(sT),oT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uT={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},cT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cT[e])?!!t[e]:!1}function Ef(){return fT}var dT=Me({},lr,{key:function(e){if(e.key){var t=oT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ao(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?uT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ef,charCode:function(e){return e.type==="keypress"?ao(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ao(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hT=yt(dT),mT=Me({},ro,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ty=yt(mT),pT=Me({},lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ef}),gT=yt(pT),yT=Me({},Ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),vT=yt(yT),bT=Me({},ro,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ST=yt(bT),ET=Me({},Ja,{newState:0,oldState:0}),CT=yt(ET),wT=[9,13,27,32],Cf=Rn&&"CompositionEvent"in window,sr=null;Rn&&"documentMode"in document&&(sr=document.documentMode);var _T=Rn&&"TextEvent"in window&&!sr,Ay=Rn&&(!Cf||sr&&8<sr&&11>=sr),Oy=" ",xy=!1;function My(e,t){switch(e){case"keyup":return wT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ry(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gi=!1;function TT(e,t){switch(e){case"compositionend":return Ry(t);case"keypress":return t.which!==32?null:(xy=!0,Oy);case"textInput":return e=t.data,e===Oy&&xy?null:e;default:return null}}function AT(e,t){if(Gi)return e==="compositionend"||!Cf&&My(e,t)?(e=Ey(),no=yf=ra=null,Gi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ay&&t.locale!=="ko"?null:t.data;default:return null}}var OT={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ny(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!OT[e.type]:t==="textarea"}function Dy(e,t,n,a){ki?Qi?Qi.push(a):Qi=[a]:ki=a,t=Io(t,"onChange"),0<t.length&&(n=new lo("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var or=null,ur=null;function xT(e){m0(e,0)}function so(e){var t=nr(e);if(hy(t))return e}function zy(e,t){if(e==="change")return t}var Uy=!1;if(Rn){var wf;if(Rn){var _f="oninput"in document;if(!_f){var Ly=document.createElement("div");Ly.setAttribute("oninput","return;"),_f=typeof Ly.oninput=="function"}wf=_f}else wf=!1;Uy=wf&&(!document.documentMode||9<document.documentMode)}function By(){or&&(or.detachEvent("onpropertychange",jy),ur=or=null)}function jy(e){if(e.propertyName==="value"&&so(ur)){var t=[];Dy(t,ur,e,mf(e)),Sy(xT,t)}}function MT(e,t,n){e==="focusin"?(By(),or=t,ur=n,or.attachEvent("onpropertychange",jy)):e==="focusout"&&By()}function RT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return so(ur)}function NT(e,t){if(e==="click")return so(t)}function DT(e,t){if(e==="input"||e==="change")return so(t)}function zT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:zT;function cr(e,t){if(Nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!ef.call(t,i)||!Nt(e[i],t[i]))return!1}return!0}function Hy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fy(e,t){var n=Hy(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Hy(n)}}function qy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vy(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=eo(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=eo(e.document)}return t}function Tf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var UT=Rn&&"documentMode"in document&&11>=document.documentMode,$i=null,Af=null,fr=null,Of=!1;function ky(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Of||$i==null||$i!==eo(a)||(a=$i,"selectionStart"in a&&Tf(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),fr&&cr(fr,a)||(fr=a,a=Io(Af,"onSelect"),0<a.length&&(t=new lo("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=$i)))}function Wa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ki={animationend:Wa("Animation","AnimationEnd"),animationiteration:Wa("Animation","AnimationIteration"),animationstart:Wa("Animation","AnimationStart"),transitionrun:Wa("Transition","TransitionRun"),transitionstart:Wa("Transition","TransitionStart"),transitioncancel:Wa("Transition","TransitionCancel"),transitionend:Wa("Transition","TransitionEnd")},xf={},Qy={};Rn&&(Qy=document.createElement("div").style,"AnimationEvent"in window||(delete Ki.animationend.animation,delete Ki.animationiteration.animation,delete Ki.animationstart.animation),"TransitionEvent"in window||delete Ki.transitionend.transition);function ei(e){if(xf[e])return xf[e];if(!Ki[e])return e;var t=Ki[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qy)return xf[e]=t[n];return e}var Gy=ei("animationend"),$y=ei("animationiteration"),Ky=ei("animationstart"),LT=ei("transitionrun"),BT=ei("transitionstart"),jT=ei("transitioncancel"),Yy=ei("transitionend"),Py=new Map,Mf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Mf.push("scrollEnd");function sn(e,t){Py.set(e,t),Za(t,[e])}var oo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Gt=[],Yi=0,Rf=0;function uo(){for(var e=Yi,t=Rf=Yi=0;t<e;){var n=Gt[t];Gt[t++]=null;var a=Gt[t];Gt[t++]=null;var i=Gt[t];Gt[t++]=null;var l=Gt[t];if(Gt[t++]=null,a!==null&&i!==null){var r=a.pending;r===null?i.next=i:(i.next=r.next,r.next=i),a.pending=i}l!==0&&Xy(n,i,l)}}function co(e,t,n,a){Gt[Yi++]=e,Gt[Yi++]=t,Gt[Yi++]=n,Gt[Yi++]=a,Rf|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Nf(e,t,n,a){return co(e,t,n,a),fo(e)}function ti(e,t){return co(e,null,null,t),fo(e)}function Xy(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,l=e.return;l!==null;)l.childLanes|=n,a=l.alternate,a!==null&&(a.childLanes|=n),l.tag===22&&(e=l.stateNode,e===null||e._visibility&1||(i=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,i&&t!==null&&(i=31-Rt(n),e=l.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=n|536870912),l):null}function fo(e){if(50<zr)throw zr=0,qd=null,Error(j(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Pi={};function HT(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,n,a){return new HT(e,t,n,a)}function Df(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nn(e,t){var n=e.alternate;return n===null?(n=Dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Iy(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ho(e,t,n,a,i,l){var r=0;if(a=e,typeof e=="function")Df(e)&&(r=1);else if(typeof e=="string")r=QA(e,n,hn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Yc:return e=Dt(31,n,t,i),e.elementType=Yc,e.lanes=l,e;case Di:return ni(n.children,i,l,t);case Yg:r=8,i|=24;break;case kc:return e=Dt(12,n,t,i|2),e.elementType=kc,e.lanes=l,e;case Gc:return e=Dt(13,n,t,i),e.elementType=Gc,e.lanes=l,e;case $c:return e=Dt(19,n,t,i),e.elementType=$c,e.lanes=l,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case On:r=10;break e;case Pg:r=9;break e;case Qc:r=11;break e;case Kc:r=14;break e;case na:r=16,a=null;break e}r=29,n=Error(j(130,e===null?"null":typeof e,"")),a=null}return t=Dt(r,n,t,i),t.elementType=e,t.type=a,t.lanes=l,t}function ni(e,t,n,a){return e=Dt(7,e,a,t),e.lanes=n,e}function zf(e,t,n){return e=Dt(6,e,null,t),e.lanes=n,e}function Zy(e){var t=Dt(18,null,null,0);return t.stateNode=e,t}function Uf(e,t,n){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Jy=new WeakMap;function $t(e,t){if(typeof e=="object"&&e!==null){var n=Jy.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Zg(t)},Jy.set(e,t),t)}return{value:e,source:t,stack:Zg(t)}}var Xi=[],Ii=0,mo=null,dr=0,Kt=[],Yt=0,sa=null,mn=1,pn="";function Dn(e,t){Xi[Ii++]=dr,Xi[Ii++]=mo,mo=e,dr=t}function Wy(e,t,n){Kt[Yt++]=mn,Kt[Yt++]=pn,Kt[Yt++]=sa,sa=e;var a=mn;e=pn;var i=32-Rt(a)-1;a&=~(1<<i),n+=1;var l=32-Rt(t)+i;if(30<l){var r=i-i%5;l=(a&(1<<r)-1).toString(32),a>>=r,i-=r,mn=1<<32-Rt(t)+i|n<<i|a,pn=l+e}else mn=1<<l|n<<i|a,pn=e}function Lf(e){e.return!==null&&(Dn(e,1),Wy(e,1,0))}function Bf(e){for(;e===mo;)mo=Xi[--Ii],Xi[Ii]=null,dr=Xi[--Ii],Xi[Ii]=null;for(;e===sa;)sa=Kt[--Yt],Kt[Yt]=null,pn=Kt[--Yt],Kt[Yt]=null,mn=Kt[--Yt],Kt[Yt]=null}function ev(e,t){Kt[Yt++]=mn,Kt[Yt++]=pn,Kt[Yt++]=sa,mn=t.id,pn=t.overflow,sa=e}var at=null,Re=null,ue=!1,oa=null,Pt=!1,jf=Error(j(519));function ua(e){var t=Error(j(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hr($t(t,e)),jf}function tv(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[nt]=e,t[gt]=a,n){case"dialog":re("cancel",t),re("close",t);break;case"iframe":case"object":case"embed":re("load",t);break;case"video":case"audio":for(n=0;n<Lr.length;n++)re(Lr[n],t);break;case"source":re("error",t);break;case"img":case"image":case"link":re("error",t),re("load",t);break;case"details":re("toggle",t);break;case"input":re("invalid",t),my(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":re("invalid",t);break;case"textarea":re("invalid",t),gy(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||v0(t.textContent,n)?(a.popover!=null&&(re("beforetoggle",t),re("toggle",t)),a.onScroll!=null&&re("scroll",t),a.onScrollEnd!=null&&re("scrollend",t),a.onClick!=null&&(t.onclick=Mn),t=!0):t=!1,t||ua(e,!0)}function nv(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:Pt=!1;return;case 27:case 3:Pt=!0;return;default:at=at.return}}function Zi(e){if(e!==at)return!1;if(!ue)return nv(e),ue=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||th(e.type,e.memoizedProps)),n=!n),n&&Re&&ua(e),nv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));Re=O0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));Re=O0(e)}else t===27?(t=Re,wa(e.type)?(e=rh,rh=null,Re=e):Re=t):Re=at?It(e.stateNode.nextSibling):null;return!0}function ai(){Re=at=null,ue=!1}function Hf(){var e=oa;return e!==null&&(Et===null?Et=e:Et.push.apply(Et,e),oa=null),e}function hr(e){oa===null?oa=[e]:oa.push(e)}var Ff=dn(null),ii=null,zn=null;function ca(e,t,n){Oe(Ff,t._currentValue),t._currentValue=n}function Un(e){e._currentValue=Ff.current,Ie(Ff)}function qf(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Vf(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var l=i.dependencies;if(l!==null){var r=i.child;l=l.firstContext;e:for(;l!==null;){var s=l;l=i;for(var o=0;o<t.length;o++)if(s.context===t[o]){l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),qf(l.return,n,e),a||(r=null);break e}l=s.next}}else if(i.tag===18){if(r=i.return,r===null)throw Error(j(341));r.lanes|=n,l=r.alternate,l!==null&&(l.lanes|=n),qf(r,n,e),r=null}else r=i.child;if(r!==null)r.return=i;else for(r=i;r!==null;){if(r===e){r=null;break}if(i=r.sibling,i!==null){i.return=r.return,r=i;break}r=r.return}i=r}}function Ji(e,t,n,a){e=null;for(var i=t,l=!1;i!==null;){if(!l){if(i.flags&524288)l=!0;else if(i.flags&262144)break}if(i.tag===10){var r=i.alternate;if(r===null)throw Error(j(387));if(r=r.memoizedProps,r!==null){var s=i.type;Nt(i.pendingProps.value,r.value)||(e!==null?e.push(s):e=[s])}}else if(i===Gs.current){if(r=i.alternate,r===null)throw Error(j(387));r.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(qr):e=[qr])}i=i.return}e!==null&&Vf(t,e,n,a),t.flags|=262144}function po(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function li(e){ii=e,zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function it(e){return av(ii,e)}function go(e,t){return ii===null&&li(e),av(e,t)}function av(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},zn===null){if(e===null)throw Error(j(308));zn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else zn=zn.next=t;return n}var FT=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},qT=Ye.unstable_scheduleCallback,VT=Ye.unstable_NormalPriority,Qe={$$typeof:On,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function kf(){return{controller:new FT,data:new Map,refCount:0}}function mr(e){e.refCount--,e.refCount===0&&qT(VT,function(){e.controller.abort()})}var pr=null,Qf=0,Wi=0,el=null;function kT(e,t){if(pr===null){var n=pr=[];Qf=0,Wi=Kd(),el={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Qf++,t.then(iv,iv),t}function iv(){if(--Qf===0&&pr!==null){el!==null&&(el.status="fulfilled");var e=pr;pr=null,Wi=0,el=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function QT(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var lv=J.S;J.S=function(e,t){kb=xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&kT(e,t),lv!==null&&lv(e,t)};var ri=dn(null);function Gf(){var e=ri.current;return e!==null?e:_e.pooledCache}function yo(e,t){t===null?Oe(ri,ri.current):Oe(ri,t.pool)}function rv(){var e=Gf();return e===null?null:{parent:Qe._currentValue,pool:e}}var tl=Error(j(460)),$f=Error(j(474)),vo=Error(j(542)),bo={then:function(){}};function sv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ov(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Mn,Mn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,cv(e),e;default:if(typeof t.status=="string")t.then(Mn,Mn);else{if(e=_e,e!==null&&100<e.shellSuspendCounter)throw Error(j(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,cv(e),e}throw oi=t,tl}}function si(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(oi=n,tl):n}}var oi=null;function uv(){if(oi===null)throw Error(j(459));var e=oi;return oi=null,e}function cv(e){if(e===tl||e===vo)throw Error(j(483))}var nl=null,gr=0;function So(e){var t=gr;return gr+=1,nl===null&&(nl=[]),ov(nl,e,t)}function yr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Eo(e,t){throw t.$$typeof===M_?Error(j(525)):(e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function fv(e){function t(g,y){if(e){var h=g.deletions;h===null?(g.deletions=[y],g.flags|=16):h.push(y)}}function n(g,y){if(!e)return null;for(;y!==null;)t(g,y),y=y.sibling;return null}function a(g){for(var y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function i(g,y){return g=Nn(g,y),g.index=0,g.sibling=null,g}function l(g,y,h){return g.index=h,e?(h=g.alternate,h!==null?(h=h.index,h<y?(g.flags|=67108866,y):h):(g.flags|=67108866,y)):(g.flags|=1048576,y)}function r(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function s(g,y,h,m){return y===null||y.tag!==6?(y=zf(h,g.mode,m),y.return=g,y):(y=i(y,h),y.return=g,y)}function o(g,y,h,m){var v=h.type;return v===Di?u(g,y,h.props.children,m,h.key):y!==null&&(y.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===na&&si(v)===y.type)?(y=i(y,h.props),yr(y,h),y.return=g,y):(y=ho(h.type,h.key,h.props,null,g.mode,m),yr(y,h),y.return=g,y)}function c(g,y,h,m){return y===null||y.tag!==4||y.stateNode.containerInfo!==h.containerInfo||y.stateNode.implementation!==h.implementation?(y=Uf(h,g.mode,m),y.return=g,y):(y=i(y,h.children||[]),y.return=g,y)}function u(g,y,h,m,v){return y===null||y.tag!==7?(y=ni(h,g.mode,m,v),y.return=g,y):(y=i(y,h),y.return=g,y)}function d(g,y,h){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=zf(""+y,g.mode,h),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Qs:return h=ho(y.type,y.key,y.props,null,g.mode,h),yr(h,y),h.return=g,h;case Pl:return y=Uf(y,g.mode,h),y.return=g,y;case na:return y=si(y),d(g,y,h)}if(Il(y)||Xl(y))return y=ni(y,g.mode,h,null),y.return=g,y;if(typeof y.then=="function")return d(g,So(y),h);if(y.$$typeof===On)return d(g,go(g,y),h);Eo(g,y)}return null}function f(g,y,h,m){var v=y!==null?y.key:null;if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return v!==null?null:s(g,y,""+h,m);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Qs:return h.key===v?o(g,y,h,m):null;case Pl:return h.key===v?c(g,y,h,m):null;case na:return h=si(h),f(g,y,h,m)}if(Il(h)||Xl(h))return v!==null?null:u(g,y,h,m,null);if(typeof h.then=="function")return f(g,y,So(h),m);if(h.$$typeof===On)return f(g,y,go(g,h),m);Eo(g,h)}return null}function p(g,y,h,m,v){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return g=g.get(h)||null,s(y,g,""+m,v);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Qs:return g=g.get(m.key===null?h:m.key)||null,o(y,g,m,v);case Pl:return g=g.get(m.key===null?h:m.key)||null,c(y,g,m,v);case na:return m=si(m),p(g,y,h,m,v)}if(Il(m)||Xl(m))return g=g.get(h)||null,u(y,g,m,v,null);if(typeof m.then=="function")return p(g,y,h,So(m),v);if(m.$$typeof===On)return p(g,y,h,go(y,m),v);Eo(y,m)}return null}function b(g,y,h,m){for(var v=null,_=null,w=y,x=y=0,T=null;w!==null&&x<h.length;x++){w.index>x?(T=w,w=null):T=w.sibling;var A=f(g,w,h[x],m);if(A===null){w===null&&(w=T);break}e&&w&&A.alternate===null&&t(g,w),y=l(A,y,x),_===null?v=A:_.sibling=A,_=A,w=T}if(x===h.length)return n(g,w),ue&&Dn(g,x),v;if(w===null){for(;x<h.length;x++)w=d(g,h[x],m),w!==null&&(y=l(w,y,x),_===null?v=w:_.sibling=w,_=w);return ue&&Dn(g,x),v}for(w=a(w);x<h.length;x++)T=p(w,g,x,h[x],m),T!==null&&(e&&T.alternate!==null&&w.delete(T.key===null?x:T.key),y=l(T,y,x),_===null?v=T:_.sibling=T,_=T);return e&&w.forEach(function(O){return t(g,O)}),ue&&Dn(g,x),v}function E(g,y,h,m){if(h==null)throw Error(j(151));for(var v=null,_=null,w=y,x=y=0,T=null,A=h.next();w!==null&&!A.done;x++,A=h.next()){w.index>x?(T=w,w=null):T=w.sibling;var O=f(g,w,A.value,m);if(O===null){w===null&&(w=T);break}e&&w&&O.alternate===null&&t(g,w),y=l(O,y,x),_===null?v=O:_.sibling=O,_=O,w=T}if(A.done)return n(g,w),ue&&Dn(g,x),v;if(w===null){for(;!A.done;x++,A=h.next())A=d(g,A.value,m),A!==null&&(y=l(A,y,x),_===null?v=A:_.sibling=A,_=A);return ue&&Dn(g,x),v}for(w=a(w);!A.done;x++,A=h.next())A=p(w,g,x,A.value,m),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?x:A.key),y=l(A,y,x),_===null?v=A:_.sibling=A,_=A);return e&&w.forEach(function(R){return t(g,R)}),ue&&Dn(g,x),v}function C(g,y,h,m){if(typeof h=="object"&&h!==null&&h.type===Di&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Qs:e:{for(var v=h.key;y!==null;){if(y.key===v){if(v=h.type,v===Di){if(y.tag===7){n(g,y.sibling),m=i(y,h.props.children),m.return=g,g=m;break e}}else if(y.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===na&&si(v)===y.type){n(g,y.sibling),m=i(y,h.props),yr(m,h),m.return=g,g=m;break e}n(g,y);break}else t(g,y);y=y.sibling}h.type===Di?(m=ni(h.props.children,g.mode,m,h.key),m.return=g,g=m):(m=ho(h.type,h.key,h.props,null,g.mode,m),yr(m,h),m.return=g,g=m)}return r(g);case Pl:e:{for(v=h.key;y!==null;){if(y.key===v)if(y.tag===4&&y.stateNode.containerInfo===h.containerInfo&&y.stateNode.implementation===h.implementation){n(g,y.sibling),m=i(y,h.children||[]),m.return=g,g=m;break e}else{n(g,y);break}else t(g,y);y=y.sibling}m=Uf(h,g.mode,m),m.return=g,g=m}return r(g);case na:return h=si(h),C(g,y,h,m)}if(Il(h))return b(g,y,h,m);if(Xl(h)){if(v=Xl(h),typeof v!="function")throw Error(j(150));return h=v.call(h),E(g,y,h,m)}if(typeof h.then=="function")return C(g,y,So(h),m);if(h.$$typeof===On)return C(g,y,go(g,h),m);Eo(g,h)}return typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint"?(h=""+h,y!==null&&y.tag===6?(n(g,y.sibling),m=i(y,h),m.return=g,g=m):(n(g,y),m=zf(h,g.mode,m),m.return=g,g=m),r(g)):n(g,y)}return function(g,y,h,m){try{gr=0;var v=C(g,y,h,m);return nl=null,v}catch(w){if(w===tl||w===vo)throw w;var _=Dt(29,w,null,g.mode);return _.lanes=m,_.return=g,_}finally{}}}var ui=fv(!0),dv=fv(!1),fa=!1;function Kf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ha(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,he&2){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=fo(e),Xy(e,null,n),t}return co(e,a,t,n),fo(e)}function vr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ay(e,n)}}function Pf(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var r={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};l===null?i=l=r:l=l.next=r,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Xf=!1;function br(){if(Xf){var e=el;if(e!==null)throw e}}function Sr(e,t,n,a){Xf=!1;var i=e.updateQueue;fa=!1;var l=i.firstBaseUpdate,r=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var o=s,c=o.next;o.next=null,r===null?l=c:r.next=c,r=o;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==r&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=o))}if(l!==null){var d=i.baseState;r=0,u=c=o=null,s=l;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(se&f)===f:(a&f)===f){f!==0&&f===Wi&&(Xf=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var b=e,E=s;f=t;var C=n;switch(E.tag){case 1:if(b=E.payload,typeof b=="function"){d=b.call(C,d,f);break e}d=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=E.payload,f=typeof b=="function"?b.call(C,d,f):b,f==null)break e;d=Me({},d,f);break e;case 2:fa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,o=d):u=u.next=p,r|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);u===null&&(o=d),i.baseState=o,i.firstBaseUpdate=c,i.lastBaseUpdate=u,l===null&&(i.shared.lanes=0),va|=r,e.lanes=r,e.memoizedState=d}}function hv(e,t){if(typeof e!="function")throw Error(j(191,e));e.call(t)}function mv(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)hv(n[e],t)}var al=dn(null),Co=dn(0);function pv(e,t){e=Qn,Oe(Co,e),Oe(al,t),Qn=e|t.baseLanes}function If(){Oe(Co,Qn),Oe(al,al.current)}function Zf(){Qn=Co.current,Ie(al),Ie(Co)}var zt=dn(null),Xt=null;function ma(e){var t=e.alternate;Oe(Fe,Fe.current&1),Oe(zt,e),Xt===null&&(t===null||al.current!==null||t.memoizedState!==null)&&(Xt=e)}function Jf(e){Oe(Fe,Fe.current),Oe(zt,e),Xt===null&&(Xt=e)}function gv(e){e.tag===22?(Oe(Fe,Fe.current),Oe(zt,e),Xt===null&&(Xt=e)):pa()}function pa(){Oe(Fe,Fe.current),Oe(zt,zt.current)}function Ut(e){Ie(zt),Xt===e&&(Xt=null),Ie(Fe)}var Fe=dn(0);function wo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ih(n)||lh(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ln=0,ae=null,Se=null,Ge=null,_o=!1,il=!1,ci=!1,To=0,Er=0,ll=null,GT=0;function je(){throw Error(j(321))}function Wf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nt(e[n],t[n]))return!1;return!0}function ed(e,t,n,a,i,l){return Ln=l,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,J.H=e===null||e.memoizedState===null?Wv:pd,ci=!1,l=n(a,i),ci=!1,il&&(l=vv(t,n,a,i)),yv(e),l}function yv(e){J.H=_r;var t=Se!==null&&Se.next!==null;if(Ln=0,Ge=Se=ae=null,_o=!1,Er=0,ll=null,t)throw Error(j(300));e===null||$e||(e=e.dependencies,e!==null&&po(e)&&($e=!0))}function vv(e,t,n,a){ae=e;var i=0;do{if(il&&(ll=null),Er=0,il=!1,25<=i)throw Error(j(301));if(i+=1,Ge=Se=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}J.H=eb,l=t(n,a)}while(il);return l}function $T(){var e=J.H,t=e.useState()[0];return t=typeof t.then=="function"?Cr(t):t,e=e.useState()[0],(Se!==null?Se.memoizedState:null)!==e&&(ae.flags|=1024),t}function td(){var e=To!==0;return To=0,e}function nd(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ad(e){if(_o){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}_o=!1}Ln=0,Ge=Se=ae=null,il=!1,Er=To=0,ll=null}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?ae.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function qe(){if(Se===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=Se.next;var t=Ge===null?ae.memoizedState:Ge.next;if(t!==null)Ge=t,Se=e;else{if(e===null)throw ae.alternate===null?Error(j(467)):Error(j(310));Se=e,e={memoizedState:Se.memoizedState,baseState:Se.baseState,baseQueue:Se.baseQueue,queue:Se.queue,next:null},Ge===null?ae.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function Ao(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cr(e){var t=Er;return Er+=1,ll===null&&(ll=[]),e=ov(ll,e,t),t=ae,(Ge===null?t.memoizedState:Ge.next)===null&&(t=t.alternate,J.H=t===null||t.memoizedState===null?Wv:pd),e}function Oo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Cr(e);if(e.$$typeof===On)return it(e)}throw Error(j(438,String(e)))}function id(e){var t=null,n=ae.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ae.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ao(),ae.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=R_;return t.index++,n}function Bn(e,t){return typeof t=="function"?t(e):t}function xo(e){var t=qe();return ld(t,Se,e)}function ld(e,t,n){var a=e.queue;if(a===null)throw Error(j(311));a.lastRenderedReducer=n;var i=e.baseQueue,l=a.pending;if(l!==null){if(i!==null){var r=i.next;i.next=l.next,l.next=r}t.baseQueue=i=l,a.pending=null}if(l=e.baseState,i===null)e.memoizedState=l;else{t=i.next;var s=r=null,o=null,c=t,u=!1;do{var d=c.lane&-536870913;if(d!==c.lane?(se&d)===d:(Ln&d)===d){var f=c.revertLane;if(f===0)o!==null&&(o=o.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===Wi&&(u=!0);else if((Ln&f)===f){c=c.next,f===Wi&&(u=!0);continue}else d={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},o===null?(s=o=d,r=l):o=o.next=d,ae.lanes|=f,va|=f;d=c.action,ci&&n(l,d),l=c.hasEagerState?c.eagerState:n(l,d)}else f={lane:d,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},o===null?(s=o=f,r=l):o=o.next=f,ae.lanes|=d,va|=d;c=c.next}while(c!==null&&c!==t);if(o===null?r=l:o.next=s,!Nt(l,e.memoizedState)&&($e=!0,u&&(n=el,n!==null)))throw n;e.memoizedState=l,e.baseState=r,e.baseQueue=o,a.lastRenderedState=l}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function rd(e){var t=qe(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var r=i=i.next;do l=e(l,r.action),r=r.next;while(r!==i);Nt(l,t.memoizedState)||($e=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,a]}function bv(e,t,n){var a=ae,i=qe(),l=ue;if(l){if(n===void 0)throw Error(j(407));n=n()}else n=t();var r=!Nt((Se||i).memoizedState,n);if(r&&(i.memoizedState=n,$e=!0),i=i.queue,ud(Cv.bind(null,a,i,e),[e]),i.getSnapshot!==t||r||Ge!==null&&Ge.memoizedState.tag&1){if(a.flags|=2048,rl(9,{destroy:void 0},Ev.bind(null,a,i,n,t),null),_e===null)throw Error(j(349));l||Ln&127||Sv(a,t,n)}return n}function Sv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ae.updateQueue,t===null?(t=Ao(),ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ev(e,t,n,a){t.value=n,t.getSnapshot=a,wv(t)&&_v(e)}function Cv(e,t,n){return n(function(){wv(t)&&_v(e)})}function wv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nt(e,n)}catch{return!0}}function _v(e){var t=ti(e,2);t!==null&&Ct(t,e,2)}function sd(e){var t=dt();if(typeof e=="function"){var n=e;if(e=n(),ci){ia(!0);try{n()}finally{ia(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:e},t}function Tv(e,t,n,a){return e.baseState=n,ld(e,Se,typeof a=="function"?a:Bn)}function KT(e,t,n,a,i){if(No(e))throw Error(j(485));if(e=t.action,e!==null){var l={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){l.listeners.push(r)}};J.T!==null?n(!0):l.isTransition=!1,a(l),n=t.pending,n===null?(l.next=t.pending=l,Av(t,l)):(l.next=n.next,t.pending=n.next=l)}}function Av(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var l=J.T,r={};J.T=r;try{var s=n(i,a),o=J.S;o!==null&&o(r,s),Ov(e,t,s)}catch(c){od(e,t,c)}finally{l!==null&&r.types!==null&&(l.types=r.types),J.T=l}}else try{l=n(i,a),Ov(e,t,l)}catch(c){od(e,t,c)}}function Ov(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){xv(e,t,a)},function(a){return od(e,t,a)}):xv(e,t,n)}function xv(e,t,n){t.status="fulfilled",t.value=n,Mv(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Av(e,n)))}function od(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Mv(t),t=t.next;while(t!==a)}e.action=null}function Mv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Rv(e,t){return t}function Nv(e,t){if(ue){var n=_e.formState;if(n!==null){e:{var a=ae;if(ue){if(Re){t:{for(var i=Re,l=Pt;i.nodeType!==8;){if(!l){i=null;break t}if(i=It(i.nextSibling),i===null){i=null;break t}}l=i.data,i=l==="F!"||l==="F"?i:null}if(i){Re=It(i.nextSibling),a=i.data==="F!";break e}}ua(a)}a=!1}a&&(t=n[0])}}return n=dt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rv,lastRenderedState:t},n.queue=a,n=Iv.bind(null,ae,a),a.dispatch=n,a=sd(!1),l=md.bind(null,ae,!1,a.queue),a=dt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=KT.bind(null,ae,i,l,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function Dv(e){var t=qe();return zv(t,Se,e)}function zv(e,t,n){if(t=ld(e,t,Rv)[0],e=xo(Bn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Cr(t)}catch(r){throw r===tl?vo:r}else a=t;t=qe();var i=t.queue,l=i.dispatch;return n!==t.memoizedState&&(ae.flags|=2048,rl(9,{destroy:void 0},YT.bind(null,i,n),null)),[a,l,e]}function YT(e,t){e.action=t}function Uv(e){var t=qe(),n=Se;if(n!==null)return zv(t,n,e);qe(),t=t.memoizedState,n=qe();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function rl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ae.updateQueue,t===null&&(t=Ao(),ae.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Lv(){return qe().memoizedState}function Mo(e,t,n,a){var i=dt();ae.flags|=e,i.memoizedState=rl(1|t,{destroy:void 0},n,a===void 0?null:a)}function Ro(e,t,n,a){var i=qe();a=a===void 0?null:a;var l=i.memoizedState.inst;Se!==null&&a!==null&&Wf(a,Se.memoizedState.deps)?i.memoizedState=rl(t,l,n,a):(ae.flags|=e,i.memoizedState=rl(1|t,l,n,a))}function Bv(e,t){Mo(8390656,8,e,t)}function ud(e,t){Ro(2048,8,e,t)}function PT(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=Ao(),ae.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function jv(e){var t=qe().memoizedState;return PT({ref:t,nextImpl:e}),function(){if(he&2)throw Error(j(440));return t.impl.apply(void 0,arguments)}}function Hv(e,t){return Ro(4,2,e,t)}function Fv(e,t){return Ro(4,4,e,t)}function qv(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Vv(e,t,n){n=n!=null?n.concat([e]):null,Ro(4,4,qv.bind(null,t,e),n)}function cd(){}function kv(e,t){var n=qe();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Wf(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Qv(e,t){var n=qe();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Wf(t,a[1]))return a[0];if(a=e(),ci){ia(!0);try{e()}finally{ia(!1)}}return n.memoizedState=[a,t],a}function fd(e,t,n){return n===void 0||Ln&1073741824&&!(se&261930)?e.memoizedState=t:(e.memoizedState=n,e=Gb(),ae.lanes|=e,va|=e,n)}function Gv(e,t,n,a){return Nt(n,t)?n:al.current!==null?(e=fd(e,n,a),Nt(e,t)||($e=!0),e):!(Ln&42)||Ln&1073741824&&!(se&261930)?($e=!0,e.memoizedState=n):(e=Gb(),ae.lanes|=e,va|=e,t)}function $v(e,t,n,a,i){var l=de.p;de.p=l!==0&&8>l?l:8;var r=J.T,s={};J.T=s,md(e,!1,t,n);try{var o=i(),c=J.S;if(c!==null&&c(s,o),o!==null&&typeof o=="object"&&typeof o.then=="function"){var u=QT(o,a);wr(e,t,u,jt(e))}else wr(e,t,a,jt(e))}catch(d){wr(e,t,{then:function(){},status:"rejected",reason:d},jt())}finally{de.p=l,r!==null&&s.types!==null&&(r.types=s.types),J.T=r}}function XT(){}function dd(e,t,n,a){if(e.tag!==5)throw Error(j(476));var i=Kv(e).queue;$v(e,i,t,Pa,n===null?XT:function(){return Yv(e),n(a)})}function Kv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Pa,baseState:Pa,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:Pa},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Yv(e){var t=Kv(e);t.next===null&&(t=e.alternate.memoizedState),wr(e,t.next.queue,{},jt())}function hd(){return it(qr)}function Pv(){return qe().memoizedState}function Xv(){return qe().memoizedState}function IT(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jt();e=da(n);var a=ha(t,e,n);a!==null&&(Ct(a,t,n),vr(a,t,n)),t={cache:kf()},e.payload=t;return}t=t.return}}function ZT(e,t,n){var a=jt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},No(e)?Zv(t,n):(n=Nf(e,t,n,a),n!==null&&(Ct(n,e,a),Jv(n,t,a)))}function Iv(e,t,n){var a=jt();wr(e,t,n,a)}function wr(e,t,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(No(e))Zv(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var r=t.lastRenderedState,s=l(r,n);if(i.hasEagerState=!0,i.eagerState=s,Nt(s,r))return co(e,t,i,0),_e===null&&uo(),!1}catch{}finally{}if(n=Nf(e,t,i,a),n!==null)return Ct(n,e,a),Jv(n,t,a),!0}return!1}function md(e,t,n,a){if(a={lane:2,revertLane:Kd(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},No(e)){if(t)throw Error(j(479))}else t=Nf(e,n,a,2),t!==null&&Ct(t,e,2)}function No(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function Zv(e,t){il=_o=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jv(e,t,n){if(n&4194048){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ay(e,n)}}var _r={readContext:it,use:Oo,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useLayoutEffect:je,useInsertionEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useSyncExternalStore:je,useId:je,useHostTransitionStatus:je,useFormState:je,useActionState:je,useOptimistic:je,useMemoCache:je,useCacheRefresh:je};_r.useEffectEvent=je;var Wv={readContext:it,use:Oo,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:Bv,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Mo(4194308,4,qv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mo(4194308,4,e,t)},useInsertionEffect:function(e,t){Mo(4,2,e,t)},useMemo:function(e,t){var n=dt();t=t===void 0?null:t;var a=e();if(ci){ia(!0);try{e()}finally{ia(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=dt();if(n!==void 0){var i=n(t);if(ci){ia(!0);try{n(t)}finally{ia(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=ZT.bind(null,ae,e),[a.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=sd(e);var t=e.queue,n=Iv.bind(null,ae,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:cd,useDeferredValue:function(e,t){var n=dt();return fd(n,e,t)},useTransition:function(){var e=sd(!1);return e=$v.bind(null,ae,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ae,i=dt();if(ue){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),_e===null)throw Error(j(349));se&127||Sv(a,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Bv(Cv.bind(null,a,l,e),[e]),a.flags|=2048,rl(9,{destroy:void 0},Ev.bind(null,a,l,n,t),null),n},useId:function(){var e=dt(),t=_e.identifierPrefix;if(ue){var n=pn,a=mn;n=(a&~(1<<32-Rt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=To++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=GT++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:hd,useFormState:Nv,useActionState:Nv,useOptimistic:function(e){var t=dt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=md.bind(null,ae,!0,n),n.dispatch=t,[e,t]},useMemoCache:id,useCacheRefresh:function(){return dt().memoizedState=IT.bind(null,ae)},useEffectEvent:function(e){var t=dt(),n={impl:e};return t.memoizedState=n,function(){if(he&2)throw Error(j(440));return n.impl.apply(void 0,arguments)}}},pd={readContext:it,use:Oo,useCallback:kv,useContext:it,useEffect:ud,useImperativeHandle:Vv,useInsertionEffect:Hv,useLayoutEffect:Fv,useMemo:Qv,useReducer:xo,useRef:Lv,useState:function(){return xo(Bn)},useDebugValue:cd,useDeferredValue:function(e,t){var n=qe();return Gv(n,Se.memoizedState,e,t)},useTransition:function(){var e=xo(Bn)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Cr(e),t]},useSyncExternalStore:bv,useId:Pv,useHostTransitionStatus:hd,useFormState:Dv,useActionState:Dv,useOptimistic:function(e,t){var n=qe();return Tv(n,Se,e,t)},useMemoCache:id,useCacheRefresh:Xv};pd.useEffectEvent=jv;var eb={readContext:it,use:Oo,useCallback:kv,useContext:it,useEffect:ud,useImperativeHandle:Vv,useInsertionEffect:Hv,useLayoutEffect:Fv,useMemo:Qv,useReducer:rd,useRef:Lv,useState:function(){return rd(Bn)},useDebugValue:cd,useDeferredValue:function(e,t){var n=qe();return Se===null?fd(n,e,t):Gv(n,Se.memoizedState,e,t)},useTransition:function(){var e=rd(Bn)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Cr(e),t]},useSyncExternalStore:bv,useId:Pv,useHostTransitionStatus:hd,useFormState:Uv,useActionState:Uv,useOptimistic:function(e,t){var n=qe();return Se!==null?Tv(n,Se,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:id,useCacheRefresh:Xv};eb.useEffectEvent=jv;function gd(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:Me({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var yd={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=jt(),i=da(a);i.payload=t,n!=null&&(i.callback=n),t=ha(e,i,a),t!==null&&(Ct(t,e,a),vr(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=jt(),i=da(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ha(e,i,a),t!==null&&(Ct(t,e,a),vr(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=jt(),a=da(n);a.tag=2,t!=null&&(a.callback=t),t=ha(e,a,n),t!==null&&(Ct(t,e,n),vr(t,e,n))}};function tb(e,t,n,a,i,l,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,l,r):t.prototype&&t.prototype.isPureReactComponent?!cr(n,a)||!cr(i,l):!0}function nb(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&yd.enqueueReplaceState(t,t.state,null)}function fi(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=Me({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function ab(e){oo(e)}function ib(e){console.error(e)}function lb(e){oo(e)}function Do(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function rb(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function vd(e,t,n){return n=da(n),n.tag=3,n.payload={element:null},n.callback=function(){Do(e,t)},n}function sb(e){return e=da(e),e.tag=3,e}function ob(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var l=a.value;e.payload=function(){return i(l)},e.callback=function(){rb(t,n,a)}}var r=n.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){rb(t,n,a),typeof i!="function"&&(ba===null?ba=new Set([this]):ba.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function JT(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ji(t,n,i,!0),n=zt.current,n!==null){switch(n.tag){case 31:case 13:return Xt===null?Go():n.alternate===null&&He===0&&(He=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===bo?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Qd(e,a,i)),!1;case 22:return n.flags|=65536,a===bo?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Qd(e,a,i)),!1}throw Error(j(435,n.tag))}return Qd(e,a,i),Go(),!1}if(ue)return t=zt.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==jf&&(e=Error(j(422),{cause:a}),hr($t(e,n)))):(a!==jf&&(t=Error(j(423),{cause:a}),hr($t(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=$t(a,n),i=vd(e.stateNode,a,i),Pf(e,i),He!==4&&(He=2)),!1;var l=Error(j(520),{cause:a});if(l=$t(l,n),Dr===null?Dr=[l]:Dr.push(l),He!==4&&(He=2),t===null)return!0;a=$t(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=vd(n.stateNode,a,e),Pf(n,e),!1;case 1:if(t=n.type,l=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||l!==null&&typeof l.componentDidCatch=="function"&&(ba===null||!ba.has(l))))return n.flags|=65536,i&=-i,n.lanes|=i,i=sb(i),ob(i,e,n,a),Pf(n,i),!1}n=n.return}while(n!==null);return!1}var bd=Error(j(461)),$e=!1;function lt(e,t,n,a){t.child=e===null?dv(t,null,n,a):ui(t,e.child,n,a)}function ub(e,t,n,a,i){n=n.render;var l=t.ref;if("ref"in a){var r={};for(var s in a)s!=="ref"&&(r[s]=a[s])}else r=a;return li(t),a=ed(e,t,n,r,l,i),s=td(),e!==null&&!$e?(nd(e,t,i),jn(e,t,i)):(ue&&s&&Lf(t),t.flags|=1,lt(e,t,a,i),t.child)}function cb(e,t,n,a,i){if(e===null){var l=n.type;return typeof l=="function"&&!Df(l)&&l.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=l,fb(e,t,l,a,i)):(e=ho(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!Od(e,i)){var r=l.memoizedProps;if(n=n.compare,n=n!==null?n:cr,n(r,a)&&e.ref===t.ref)return jn(e,t,i)}return t.flags|=1,e=Nn(l,a),e.ref=t.ref,e.return=t,t.child=e}function fb(e,t,n,a,i){if(e!==null){var l=e.memoizedProps;if(cr(l,a)&&e.ref===t.ref)if($e=!1,t.pendingProps=a=l,Od(e,i))e.flags&131072&&($e=!0);else return t.lanes=e.lanes,jn(e,t,i)}return Sd(e,t,n,a,i)}function db(e,t,n,a){var i=a.children,l=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if(t.flags&128){if(l=l!==null?l.baseLanes|n:n,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~l}else a=0,t.child=null;return hb(e,t,l,n,a)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&yo(t,l!==null?l.cachePool:null),l!==null?pv(t,l):If(),gv(t);else return a=t.lanes=536870912,hb(e,t,l!==null?l.baseLanes|n:n,n,a)}else l!==null?(yo(t,l.cachePool),pv(t,l),pa(),t.memoizedState=null):(e!==null&&yo(t,null),If(),pa());return lt(e,t,i,n),t.child}function Tr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function hb(e,t,n,a,i){var l=Gf();return l=l===null?null:{parent:Qe._currentValue,pool:l},t.memoizedState={baseLanes:n,cachePool:l},e!==null&&yo(t,null),If(),gv(t),e!==null&&Ji(e,t,a,!0),t.childLanes=i,null}function zo(e,t){return t=Lo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function mb(e,t,n){return ui(t,e.child,null,n),e=zo(t,t.pendingProps),e.flags|=2,Ut(t),t.memoizedState=null,e}function WT(e,t,n){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ue){if(a.mode==="hidden")return e=zo(t,a),t.lanes=536870912,Tr(null,e);if(Jf(t),(e=Re)?(e=A0(e,Pt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sa!==null?{id:mn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},n=Zy(e),n.return=t,t.child=n,at=t,Re=null)):e=null,e===null)throw ua(t);return t.lanes=536870912,null}return zo(t,a)}var l=e.memoizedState;if(l!==null){var r=l.dehydrated;if(Jf(t),i)if(t.flags&256)t.flags&=-257,t=mb(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(j(558));else if($e||Ji(e,t,n,!1),i=(n&e.childLanes)!==0,$e||i){if(a=_e,a!==null&&(r=iy(a,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ti(e,r),Ct(a,e,r),bd;Go(),t=mb(e,t,n)}else e=l.treeContext,Re=It(r.nextSibling),at=t,ue=!0,oa=null,Pt=!1,e!==null&&ev(t,e),t=zo(t,a),t.flags|=4096;return t}return e=Nn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Uo(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(j(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Sd(e,t,n,a,i){return li(t),n=ed(e,t,n,a,void 0,i),a=td(),e!==null&&!$e?(nd(e,t,i),jn(e,t,i)):(ue&&a&&Lf(t),t.flags|=1,lt(e,t,n,i),t.child)}function pb(e,t,n,a,i,l){return li(t),t.updateQueue=null,n=vv(t,a,n,i),yv(e),a=td(),e!==null&&!$e?(nd(e,t,l),jn(e,t,l)):(ue&&a&&Lf(t),t.flags|=1,lt(e,t,n,l),t.child)}function gb(e,t,n,a,i){if(li(t),t.stateNode===null){var l=Pi,r=n.contextType;typeof r=="object"&&r!==null&&(l=it(r)),l=new n(a,l),t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=yd,t.stateNode=l,l._reactInternals=t,l=t.stateNode,l.props=a,l.state=t.memoizedState,l.refs={},Kf(t),r=n.contextType,l.context=typeof r=="object"&&r!==null?it(r):Pi,l.state=t.memoizedState,r=n.getDerivedStateFromProps,typeof r=="function"&&(gd(t,n,r,a),l.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(r=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),r!==l.state&&yd.enqueueReplaceState(l,l.state,null),Sr(t,a,l,i),br(),l.state=t.memoizedState),typeof l.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){l=t.stateNode;var s=t.memoizedProps,o=fi(n,s);l.props=o;var c=l.context,u=n.contextType;r=Pi,typeof u=="object"&&u!==null&&(r=it(u));var d=n.getDerivedStateFromProps;u=typeof d=="function"||typeof l.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,u||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s||c!==r)&&nb(t,l,a,r),fa=!1;var f=t.memoizedState;l.state=f,Sr(t,a,l,i),br(),c=t.memoizedState,s||f!==c||fa?(typeof d=="function"&&(gd(t,n,d,a),c=t.memoizedState),(o=fa||tb(t,n,o,a,f,c,r))?(u||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=c),l.props=a,l.state=c,l.context=r,a=o):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{l=t.stateNode,Yf(e,t),r=t.memoizedProps,u=fi(n,r),l.props=u,d=t.pendingProps,f=l.context,c=n.contextType,o=Pi,typeof c=="object"&&c!==null&&(o=it(c)),s=n.getDerivedStateFromProps,(c=typeof s=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(r!==d||f!==o)&&nb(t,l,a,o),fa=!1,f=t.memoizedState,l.state=f,Sr(t,a,l,i),br();var p=t.memoizedState;r!==d||f!==p||fa||e!==null&&e.dependencies!==null&&po(e.dependencies)?(typeof s=="function"&&(gd(t,n,s,a),p=t.memoizedState),(u=fa||tb(t,n,u,a,f,p,o)||e!==null&&e.dependencies!==null&&po(e.dependencies))?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(a,p,o),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(a,p,o)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||r===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=p),l.props=a,l.state=p,l.context=o,a=u):(typeof l.componentDidUpdate!="function"||r===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),a=!1)}return l=a,Uo(e,t),a=(t.flags&128)!==0,l||a?(l=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:l.render(),t.flags|=1,e!==null&&a?(t.child=ui(t,e.child,null,i),t.child=ui(t,null,n,i)):lt(e,t,n,i),t.memoizedState=l.state,e=t.child):e=jn(e,t,i),e}function yb(e,t,n,a){return ai(),t.flags|=256,lt(e,t,n,a),t.child}var Ed={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cd(e){return{baseLanes:e,cachePool:rv()}}function wd(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Bt),e}function vb(e,t,n){var a=t.pendingProps,i=!1,l=(t.flags&128)!==0,r;if((r=l)||(r=e!==null&&e.memoizedState===null?!1:(Fe.current&2)!==0),r&&(i=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(ue){if(i?ma(t):pa(),(e=Re)?(e=A0(e,Pt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sa!==null?{id:mn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},n=Zy(e),n.return=t,t.child=n,at=t,Re=null)):e=null,e===null)throw ua(t);return lh(e)?t.lanes=32:t.lanes=536870912,null}var s=a.children;return a=a.fallback,i?(pa(),i=t.mode,s=Lo({mode:"hidden",children:s},i),a=ni(a,i,n,null),s.return=t,a.return=t,s.sibling=a,t.child=s,a=t.child,a.memoizedState=Cd(n),a.childLanes=wd(e,r,n),t.memoizedState=Ed,Tr(null,a)):(ma(t),_d(t,s))}var o=e.memoizedState;if(o!==null&&(s=o.dehydrated,s!==null)){if(l)t.flags&256?(ma(t),t.flags&=-257,t=Td(e,t,n)):t.memoizedState!==null?(pa(),t.child=e.child,t.flags|=128,t=null):(pa(),s=a.fallback,i=t.mode,a=Lo({mode:"visible",children:a.children},i),s=ni(s,i,n,null),s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,ui(t,e.child,null,n),a=t.child,a.memoizedState=Cd(n),a.childLanes=wd(e,r,n),t.memoizedState=Ed,t=Tr(null,a));else if(ma(t),lh(s)){if(r=s.nextSibling&&s.nextSibling.dataset,r)var c=r.dgst;r=c,a=Error(j(419)),a.stack="",a.digest=r,hr({value:a,source:null,stack:null}),t=Td(e,t,n)}else if($e||Ji(e,t,n,!1),r=(n&e.childLanes)!==0,$e||r){if(r=_e,r!==null&&(a=iy(r,n),a!==0&&a!==o.retryLane))throw o.retryLane=a,ti(e,a),Ct(r,e,a),bd;ih(s)||Go(),t=Td(e,t,n)}else ih(s)?(t.flags|=192,t.child=e.child,t=null):(e=o.treeContext,Re=It(s.nextSibling),at=t,ue=!0,oa=null,Pt=!1,e!==null&&ev(t,e),t=_d(t,a.children),t.flags|=4096);return t}return i?(pa(),s=a.fallback,i=t.mode,o=e.child,c=o.sibling,a=Nn(o,{mode:"hidden",children:a.children}),a.subtreeFlags=o.subtreeFlags&65011712,c!==null?s=Nn(c,s):(s=ni(s,i,n,null),s.flags|=2),s.return=t,a.return=t,a.sibling=s,t.child=a,Tr(null,a),a=t.child,s=e.child.memoizedState,s===null?s=Cd(n):(i=s.cachePool,i!==null?(o=Qe._currentValue,i=i.parent!==o?{parent:o,pool:o}:i):i=rv(),s={baseLanes:s.baseLanes|n,cachePool:i}),a.memoizedState=s,a.childLanes=wd(e,r,n),t.memoizedState=Ed,Tr(e.child,a)):(ma(t),n=e.child,e=n.sibling,n=Nn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function _d(e,t){return t=Lo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Lo(e,t){return e=Dt(22,e,null,t),e.lanes=0,e}function Td(e,t,n){return ui(t,e.child,null,n),e=_d(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bb(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),qf(e.return,t,n)}function Ad(e,t,n,a,i,l){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:l}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=a,r.tail=n,r.tailMode=i,r.treeForkCount=l)}function Sb(e,t,n){var a=t.pendingProps,i=a.revealOrder,l=a.tail;a=a.children;var r=Fe.current,s=(r&2)!==0;if(s?(r=r&1|2,t.flags|=128):r&=1,Oe(Fe,r),lt(e,t,a,n),a=ue?dr:0,!s&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bb(e,n,t);else if(e.tag===19)bb(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&wo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ad(t,!1,i,n,l,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&wo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ad(t,!0,n,null,l,a);break;case"together":Ad(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function jn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),va|=t.lanes,!(n&t.childLanes))if(e!==null){if(Ji(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=Nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Od(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&po(e)))}function eA(e,t,n){switch(t.tag){case 3:$s(t,t.stateNode.containerInfo),ca(t,Qe,e.memoizedState.cache),ai();break;case 27:case 5:Ic(t);break;case 4:$s(t,t.stateNode.containerInfo);break;case 10:ca(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Jf(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ma(t),t.flags|=128,null):n&t.child.childLanes?vb(e,t,n):(ma(t),e=jn(e,t,n),e!==null?e.sibling:null);ma(t);break;case 19:var i=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Ji(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return Sb(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Oe(Fe,Fe.current),a)break;return null;case 22:return t.lanes=0,db(e,t,n,t.pendingProps);case 24:ca(t,Qe,e.memoizedState.cache)}return jn(e,t,n)}function Eb(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!Od(e,n)&&!(t.flags&128))return $e=!1,eA(e,t,n);$e=!!(e.flags&131072)}else $e=!1,ue&&t.flags&1048576&&Wy(t,dr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=si(t.elementType),t.type=e,typeof e=="function")Df(e)?(a=fi(e,a),t.tag=1,t=gb(null,t,e,a,n)):(t.tag=0,t=Sd(null,t,e,a,n));else{if(e!=null){var i=e.$$typeof;if(i===Qc){t.tag=11,t=ub(null,t,e,a,n);break e}else if(i===Kc){t.tag=14,t=cb(null,t,e,a,n);break e}}throw t=Pc(e)||e,Error(j(306,t,""))}}return t;case 0:return Sd(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=fi(a,t.pendingProps),gb(e,t,a,i,n);case 3:e:{if($s(t,t.stateNode.containerInfo),e===null)throw Error(j(387));a=t.pendingProps;var l=t.memoizedState;i=l.element,Yf(e,t),Sr(t,a,null,n);var r=t.memoizedState;if(a=r.cache,ca(t,Qe,a),a!==l.cache&&Vf(t,[Qe],n,!0),br(),a=r.element,l.isDehydrated)if(l={element:a,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){t=yb(e,t,a,n);break e}else if(a!==i){i=$t(Error(j(424)),t),hr(i),t=yb(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Re=It(e.firstChild),at=t,ue=!0,oa=null,Pt=!0,n=dv(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ai(),a===i){t=jn(e,t,n);break e}lt(e,t,a,n)}t=t.child}return t;case 26:return Uo(e,t),e===null?(n=D0(t.type,null,t.pendingProps,null))?t.memoizedState=n:ue||(n=t.type,e=t.pendingProps,a=Zo(aa.current).createElement(n),a[nt]=t,a[gt]=e,rt(a,n,e),Ze(a),t.stateNode=a):t.memoizedState=D0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ic(t),e===null&&ue&&(a=t.stateNode=M0(t.type,t.pendingProps,aa.current),at=t,Pt=!0,i=Re,wa(t.type)?(rh=i,Re=It(a.firstChild)):Re=i),lt(e,t,t.pendingProps.children,n),Uo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ue&&((i=a=Re)&&(a=RA(a,t.type,t.pendingProps,Pt),a!==null?(t.stateNode=a,at=t,Re=It(a.firstChild),Pt=!1,i=!0):i=!1),i||ua(t)),Ic(t),i=t.type,l=t.pendingProps,r=e!==null?e.memoizedProps:null,a=l.children,th(i,l)?a=null:r!==null&&th(i,r)&&(t.flags|=32),t.memoizedState!==null&&(i=ed(e,t,$T,null,null,n),qr._currentValue=i),Uo(e,t),lt(e,t,a,n),t.child;case 6:return e===null&&ue&&((e=n=Re)&&(n=NA(n,t.pendingProps,Pt),n!==null?(t.stateNode=n,at=t,Re=null,e=!0):e=!1),e||ua(t)),null;case 13:return vb(e,t,n);case 4:return $s(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ui(t,null,a,n):lt(e,t,a,n),t.child;case 11:return ub(e,t,t.type,t.pendingProps,n);case 7:return lt(e,t,t.pendingProps,n),t.child;case 8:return lt(e,t,t.pendingProps.children,n),t.child;case 12:return lt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,ca(t,t.type,a.value),lt(e,t,a.children,n),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,li(t),i=it(i),a=a(i),t.flags|=1,lt(e,t,a,n),t.child;case 14:return cb(e,t,t.type,t.pendingProps,n);case 15:return fb(e,t,t.type,t.pendingProps,n);case 19:return Sb(e,t,n);case 31:return WT(e,t,n);case 22:return db(e,t,n,t.pendingProps);case 24:return li(t),a=it(Qe),e===null?(i=Gf(),i===null&&(i=_e,l=kf(),i.pooledCache=l,l.refCount++,l!==null&&(i.pooledCacheLanes|=n),i=l),t.memoizedState={parent:a,cache:i},Kf(t),ca(t,Qe,i)):(e.lanes&n&&(Yf(e,t),Sr(t,null,null,n),br()),i=e.memoizedState,l=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),ca(t,Qe,a)):(a=l.cache,ca(t,Qe,a),a!==i.cache&&Vf(t,[Qe],n,!0))),lt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(j(156,t.tag))}function Hn(e){e.flags|=4}function xd(e,t,n,a,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Pb())e.flags|=8192;else throw oi=bo,$f}else e.flags&=-16777217}function Cb(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!j0(t))if(Pb())e.flags|=8192;else throw oi=bo,$f}function Bo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ty():536870912,e.lanes|=t,cl|=t)}function Ar(e,t){if(!ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ne(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function tA(e,t,n){var a=t.pendingProps;switch(Bf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(t),null;case 1:return Ne(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Un(Qe),Ui(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Zi(t)?Hn(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Hf())),Ne(t),null;case 26:var i=t.type,l=t.memoizedState;return e===null?(Hn(t),l!==null?(Ne(t),Cb(t,l)):(Ne(t),xd(t,i,null,a,n))):l?l!==e.memoizedState?(Hn(t),Ne(t),Cb(t,l)):(Ne(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Hn(t),Ne(t),xd(t,i,e,a,n)),null;case 27:if(Ks(t),n=aa.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Hn(t);else{if(!a){if(t.stateNode===null)throw Error(j(166));return Ne(t),null}e=hn.current,Zi(t)?tv(t):(e=M0(i,a,n),t.stateNode=e,Hn(t))}return Ne(t),null;case 5:if(Ks(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Hn(t);else{if(!a){if(t.stateNode===null)throw Error(j(166));return Ne(t),null}if(l=hn.current,Zi(t))tv(t);else{var r=Zo(aa.current);switch(l){case 1:l=r.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:l=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":l=r.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":l=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":l=r.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof a.is=="string"?r.createElement("select",{is:a.is}):r.createElement("select"),a.multiple?l.multiple=!0:a.size&&(l.size=a.size);break;default:l=typeof a.is=="string"?r.createElement(i,{is:a.is}):r.createElement(i)}}l[nt]=t,l[gt]=a;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)l.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=l;e:switch(rt(l,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Hn(t)}}return Ne(t),xd(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Hn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(j(166));if(e=aa.current,Zi(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=at,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[nt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||v0(e.nodeValue,n)),e||ua(t,!0)}else e=Zo(e).createTextNode(a),e[nt]=t,t.stateNode=e}return Ne(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Zi(t),n!==null){if(e===null){if(!a)throw Error(j(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(557));e[nt]=t}else ai(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ne(t),e=!1}else n=Hf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ut(t),t):(Ut(t),null);if(t.flags&128)throw Error(j(558))}return Ne(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Zi(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(j(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(j(317));i[nt]=t}else ai(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ne(t),i=!1}else i=Hf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Ut(t),t):(Ut(t),null)}return Ut(t),t.flags&128?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==i&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Bo(t,t.updateQueue),Ne(t),null);case 4:return Ui(),e===null&&Id(t.stateNode.containerInfo),Ne(t),null;case 10:return Un(t.type),Ne(t),null;case 19:if(Ie(Fe),a=t.memoizedState,a===null)return Ne(t),null;if(i=(t.flags&128)!==0,l=a.rendering,l===null)if(i)Ar(a,!1);else{if(He!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=wo(e),l!==null){for(t.flags|=128,Ar(a,!1),e=l.updateQueue,t.updateQueue=e,Bo(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Iy(n,e),n=n.sibling;return Oe(Fe,Fe.current&1|2),ue&&Dn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&xt()>Vo&&(t.flags|=128,i=!0,Ar(a,!1),t.lanes=4194304)}else{if(!i)if(e=wo(l),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Bo(t,e),Ar(a,!0),a.tail===null&&a.tailMode==="hidden"&&!l.alternate&&!ue)return Ne(t),null}else 2*xt()-a.renderingStartTime>Vo&&n!==536870912&&(t.flags|=128,i=!0,Ar(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(e=a.last,e!==null?e.sibling=l:t.child=l,a.last=l)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=xt(),e.sibling=null,n=Fe.current,Oe(Fe,i?n&1|2:n&1),ue&&Dn(t,a.treeForkCount),e):(Ne(t),null);case 22:case 23:return Ut(t),Zf(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?n&536870912&&!(t.flags&128)&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),n=t.updateQueue,n!==null&&Bo(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&Ie(ri),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Un(Qe),Ne(t),null;case 25:return null;case 30:return null}throw Error(j(156,t.tag))}function nA(e,t){switch(Bf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Un(Qe),Ui(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ks(t),null;case 31:if(t.memoizedState!==null){if(Ut(t),t.alternate===null)throw Error(j(340));ai()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ut(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));ai()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ie(Fe),null;case 4:return Ui(),null;case 10:return Un(t.type),null;case 22:case 23:return Ut(t),Zf(),e!==null&&Ie(ri),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Un(Qe),null;case 25:return null;default:return null}}function wb(e,t){switch(Bf(t),t.tag){case 3:Un(Qe),Ui();break;case 26:case 27:case 5:Ks(t);break;case 4:Ui();break;case 31:t.memoizedState!==null&&Ut(t);break;case 13:Ut(t);break;case 19:Ie(Fe);break;case 10:Un(t.type);break;case 22:case 23:Ut(t),Zf(),e!==null&&Ie(ri);break;case 24:Un(Qe)}}function Or(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var l=n.create,r=n.inst;a=l(),r.destroy=a}n=n.next}while(n!==i)}}catch(s){ve(t,t.return,s)}}function ga(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var l=i.next;a=l;do{if((a.tag&e)===e){var r=a.inst,s=r.destroy;if(s!==void 0){r.destroy=void 0,i=t;var o=n,c=s;try{c()}catch(u){ve(i,o,u)}}}a=a.next}while(a!==l)}}catch(u){ve(t,t.return,u)}}function _b(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{mv(t,n)}catch(a){ve(e,e.return,a)}}}function Tb(e,t,n){n.props=fi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){ve(e,t,a)}}function xr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(i){ve(e,t,i)}}function gn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){ve(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){ve(e,t,i)}else n.current=null}function Ab(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){ve(e,e.return,i)}}function Md(e,t,n){try{var a=e.stateNode;_A(a,e.type,n,t),a[gt]=t}catch(i){ve(e,e.return,i)}}function Ob(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wa(e.type)||e.tag===4}function Rd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ob(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&wa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Nd(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Mn));else if(a!==4&&(a===27&&wa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Nd(e,t,n),e=e.sibling;e!==null;)Nd(e,t,n),e=e.sibling}function jo(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&wa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(jo(e,t,n),e=e.sibling;e!==null;)jo(e,t,n),e=e.sibling}function xb(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);rt(t,a,n),t[nt]=e,t[gt]=n}catch(l){ve(e,e.return,l)}}var Fn=!1,Ke=!1,Dd=!1,Mb=typeof WeakSet=="function"?WeakSet:Set,Je=null;function aA(e,t){if(e=e.containerInfo,Wd=iu,e=Vy(e),Tf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var r=0,s=-1,o=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=r+i),d!==l||a!==0&&d.nodeType!==3||(o=r+a),d.nodeType===3&&(r+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=r),f===l&&++u===a&&(o=r),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||o===-1?null:{start:s,end:o}}else n=null}n=n||{start:0,end:0}}else n=null;for(eh={focusedElem:e,selectionRange:n},iu=!1,Je=t;Je!==null;)if(t=Je,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Je=e;else for(;Je!==null;){switch(t=Je,l=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&l!==null){e=void 0,n=t,i=l.memoizedProps,l=l.memoizedState,a=n.stateNode;try{var b=fi(n.type,i);e=a.getSnapshotBeforeUpdate(b,l),a.__reactInternalSnapshotBeforeUpdate=e}catch(E){ve(n,n.return,E)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ah(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ah(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(j(163))}if(e=t.sibling,e!==null){e.return=t.return,Je=e;break}Je=t.return}}function Rb(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Vn(e,n),a&4&&Or(5,n);break;case 1:if(Vn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(r){ve(n,n.return,r)}else{var i=fi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){ve(n,n.return,r)}}a&64&&_b(n),a&512&&xr(n,n.return);break;case 3:if(Vn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{mv(e,t)}catch(r){ve(n,n.return,r)}}break;case 27:t===null&&a&4&&xb(n);case 26:case 5:Vn(e,n),t===null&&a&4&&Ab(n),a&512&&xr(n,n.return);break;case 12:Vn(e,n);break;case 31:Vn(e,n),a&4&&zb(e,n);break;case 13:Vn(e,n),a&4&&Ub(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=dA.bind(null,n),DA(e,n))));break;case 22:if(a=n.memoizedState!==null||Fn,!a){t=t!==null&&t.memoizedState!==null||Ke,i=Fn;var l=Ke;Fn=a,(Ke=t)&&!l?kn(e,n,(n.subtreeFlags&8772)!==0):Vn(e,n),Fn=i,Ke=l}break;case 30:break;default:Vn(e,n)}}function Nb(e){var t=e.alternate;t!==null&&(e.alternate=null,Nb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&of(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ze=null,vt=!1;function qn(e,t,n){for(n=n.child;n!==null;)Db(e,t,n),n=n.sibling}function Db(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Jl,n)}catch{}switch(n.tag){case 26:Ke||gn(n,t),qn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ke||gn(n,t);var a=ze,i=vt;wa(n.type)&&(ze=n.stateNode,vt=!1),qn(e,t,n),jr(n.stateNode),ze=a,vt=i;break;case 5:Ke||gn(n,t);case 6:if(a=ze,i=vt,ze=null,qn(e,t,n),ze=a,vt=i,ze!==null)if(vt)try{(ze.nodeType===9?ze.body:ze.nodeName==="HTML"?ze.ownerDocument.body:ze).removeChild(n.stateNode)}catch(l){ve(n,t,l)}else try{ze.removeChild(n.stateNode)}catch(l){ve(n,t,l)}break;case 18:ze!==null&&(vt?(e=ze,_0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),vl(e)):_0(ze,n.stateNode));break;case 4:a=ze,i=vt,ze=n.stateNode.containerInfo,vt=!0,qn(e,t,n),ze=a,vt=i;break;case 0:case 11:case 14:case 15:ga(2,n,t),Ke||ga(4,n,t),qn(e,t,n);break;case 1:Ke||(gn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Tb(n,t,a)),qn(e,t,n);break;case 21:qn(e,t,n);break;case 22:Ke=(a=Ke)||n.memoizedState!==null,qn(e,t,n),Ke=a;break;default:qn(e,t,n)}}function zb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{vl(e)}catch(n){ve(t,t.return,n)}}}function Ub(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{vl(e)}catch(n){ve(t,t.return,n)}}function iA(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Mb),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Mb),t;default:throw Error(j(435,e.tag))}}function Ho(e,t){var n=iA(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var i=hA.bind(null,e,a);a.then(i,i)}})}function bt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],l=e,r=t,s=r;e:for(;s!==null;){switch(s.tag){case 27:if(wa(s.type)){ze=s.stateNode,vt=!1;break e}break;case 5:ze=s.stateNode,vt=!1;break e;case 3:case 4:ze=s.stateNode.containerInfo,vt=!0;break e}s=s.return}if(ze===null)throw Error(j(160));Db(l,r,i),ze=null,vt=!1,l=i.alternate,l!==null&&(l.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Lb(t,e),t=t.sibling}var on=null;function Lb(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bt(t,e),St(e),a&4&&(ga(3,e,e.return),Or(3,e),ga(5,e,e.return));break;case 1:bt(t,e),St(e),a&512&&(Ke||n===null||gn(n,n.return)),a&64&&Fn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=on;if(bt(t,e),St(e),a&512&&(Ke||n===null||gn(n,n.return)),a&4){var l=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":l=i.getElementsByTagName("title")[0],(!l||l[tr]||l[nt]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=i.createElement(a),i.head.insertBefore(l,i.querySelector("head > title"))),rt(l,a,n),l[nt]=e,Ze(l),a=l;break e;case"link":var r=L0("link","href",i).get(a+(n.href||""));if(r){for(var s=0;s<r.length;s++)if(l=r[s],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){r.splice(s,1);break t}}l=i.createElement(a),rt(l,a,n),i.head.appendChild(l);break;case"meta":if(r=L0("meta","content",i).get(a+(n.content||""))){for(s=0;s<r.length;s++)if(l=r[s],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){r.splice(s,1);break t}}l=i.createElement(a),rt(l,a,n),i.head.appendChild(l);break;default:throw Error(j(468,a))}l[nt]=e,Ze(l),a=l}e.stateNode=a}else B0(i,e.type,e.stateNode);else e.stateNode=U0(i,a,e.memoizedProps);else l!==a?(l===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):l.count--,a===null?B0(i,e.type,e.stateNode):U0(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Md(e,e.memoizedProps,n.memoizedProps)}break;case 27:bt(t,e),St(e),a&512&&(Ke||n===null||gn(n,n.return)),n!==null&&a&4&&Md(e,e.memoizedProps,n.memoizedProps);break;case 5:if(bt(t,e),St(e),a&512&&(Ke||n===null||gn(n,n.return)),e.flags&32){i=e.stateNode;try{Vi(i,"")}catch(b){ve(e,e.return,b)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,Md(e,i,n!==null?n.memoizedProps:i)),a&1024&&(Dd=!0);break;case 6:if(bt(t,e),St(e),a&4){if(e.stateNode===null)throw Error(j(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(b){ve(e,e.return,b)}}break;case 3:if(eu=null,i=on,on=Jo(t.containerInfo),bt(t,e),on=i,St(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{vl(t.containerInfo)}catch(b){ve(e,e.return,b)}Dd&&(Dd=!1,Bb(e));break;case 4:a=on,on=Jo(e.stateNode.containerInfo),bt(t,e),St(e),on=a;break;case 12:bt(t,e),St(e);break;case 31:bt(t,e),St(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ho(e,a)));break;case 13:bt(t,e),St(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(qo=xt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ho(e,a)));break;case 22:i=e.memoizedState!==null;var o=n!==null&&n.memoizedState!==null,c=Fn,u=Ke;if(Fn=c||i,Ke=u||o,bt(t,e),Ke=u,Fn=c,St(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||o||Fn||Ke||di(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){o=n=t;try{if(l=o.stateNode,i)r=l.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{s=o.stateNode;var d=o.memoizedProps.style,f=d!=null&&d.hasOwnProperty("display")?d.display:null;s.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(b){ve(o,o.return,b)}}}else if(t.tag===6){if(n===null){o=t;try{o.stateNode.nodeValue=i?"":o.memoizedProps}catch(b){ve(o,o.return,b)}}}else if(t.tag===18){if(n===null){o=t;try{var p=o.stateNode;i?T0(p,!0):T0(o.stateNode,!1)}catch(b){ve(o,o.return,b)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Ho(e,n))));break;case 19:bt(t,e),St(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ho(e,a)));break;case 30:break;case 21:break;default:bt(t,e),St(e)}}function St(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Ob(a)){n=a;break}a=a.return}if(n==null)throw Error(j(160));switch(n.tag){case 27:var i=n.stateNode,l=Rd(e);jo(e,l,i);break;case 5:var r=n.stateNode;n.flags&32&&(Vi(r,""),n.flags&=-33);var s=Rd(e);jo(e,s,r);break;case 3:case 4:var o=n.stateNode.containerInfo,c=Rd(e);Nd(e,c,o);break;default:throw Error(j(161))}}catch(u){ve(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bb(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Bb(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Vn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Rb(e,t.alternate,t),t=t.sibling}function di(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ga(4,t,t.return),di(t);break;case 1:gn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Tb(t,t.return,n),di(t);break;case 27:jr(t.stateNode);case 26:case 5:gn(t,t.return),di(t);break;case 22:t.memoizedState===null&&di(t);break;case 30:di(t);break;default:di(t)}e=e.sibling}}function kn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,l=t,r=l.flags;switch(l.tag){case 0:case 11:case 15:kn(i,l,n),Or(4,l);break;case 1:if(kn(i,l,n),a=l,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(c){ve(a,a.return,c)}if(a=l,i=a.updateQueue,i!==null){var s=a.stateNode;try{var o=i.shared.hiddenCallbacks;if(o!==null)for(i.shared.hiddenCallbacks=null,i=0;i<o.length;i++)hv(o[i],s)}catch(c){ve(a,a.return,c)}}n&&r&64&&_b(l),xr(l,l.return);break;case 27:xb(l);case 26:case 5:kn(i,l,n),n&&a===null&&r&4&&Ab(l),xr(l,l.return);break;case 12:kn(i,l,n);break;case 31:kn(i,l,n),n&&r&4&&zb(i,l);break;case 13:kn(i,l,n),n&&r&4&&Ub(i,l);break;case 22:l.memoizedState===null&&kn(i,l,n),xr(l,l.return);break;case 30:break;default:kn(i,l,n)}t=t.sibling}}function zd(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&mr(n))}function Ud(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&mr(e))}function un(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jb(e,t,n,a),t=t.sibling}function jb(e,t,n,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:un(e,t,n,a),i&2048&&Or(9,t);break;case 1:un(e,t,n,a);break;case 3:un(e,t,n,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&mr(e)));break;case 12:if(i&2048){un(e,t,n,a),e=t.stateNode;try{var l=t.memoizedProps,r=l.id,s=l.onPostCommit;typeof s=="function"&&s(r,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(o){ve(t,t.return,o)}}else un(e,t,n,a);break;case 31:un(e,t,n,a);break;case 13:un(e,t,n,a);break;case 23:break;case 22:l=t.stateNode,r=t.alternate,t.memoizedState!==null?l._visibility&2?un(e,t,n,a):Mr(e,t):l._visibility&2?un(e,t,n,a):(l._visibility|=2,sl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&zd(r,t);break;case 24:un(e,t,n,a),i&2048&&Ud(t.alternate,t);break;default:un(e,t,n,a)}}function sl(e,t,n,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var l=e,r=t,s=n,o=a,c=r.flags;switch(r.tag){case 0:case 11:case 15:sl(l,r,s,o,i),Or(8,r);break;case 23:break;case 22:var u=r.stateNode;r.memoizedState!==null?u._visibility&2?sl(l,r,s,o,i):Mr(l,r):(u._visibility|=2,sl(l,r,s,o,i)),i&&c&2048&&zd(r.alternate,r);break;case 24:sl(l,r,s,o,i),i&&c&2048&&Ud(r.alternate,r);break;default:sl(l,r,s,o,i)}t=t.sibling}}function Mr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:Mr(n,a),i&2048&&zd(a.alternate,a);break;case 24:Mr(n,a),i&2048&&Ud(a.alternate,a);break;default:Mr(n,a)}t=t.sibling}}var Rr=8192;function ol(e,t,n){if(e.subtreeFlags&Rr)for(e=e.child;e!==null;)Hb(e,t,n),e=e.sibling}function Hb(e,t,n){switch(e.tag){case 26:ol(e,t,n),e.flags&Rr&&e.memoizedState!==null&&GA(n,on,e.memoizedState,e.memoizedProps);break;case 5:ol(e,t,n);break;case 3:case 4:var a=on;on=Jo(e.stateNode.containerInfo),ol(e,t,n),on=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Rr,Rr=16777216,ol(e,t,n),Rr=a):ol(e,t,n));break;default:ol(e,t,n)}}function Fb(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nr(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Je=a,Vb(a,e)}Fb(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)qb(e),e=e.sibling}function qb(e){switch(e.tag){case 0:case 11:case 15:Nr(e),e.flags&2048&&ga(9,e,e.return);break;case 3:Nr(e);break;case 12:Nr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fo(e)):Nr(e);break;default:Nr(e)}}function Fo(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Je=a,Vb(a,e)}Fb(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ga(8,t,t.return),Fo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fo(t));break;default:Fo(t)}e=e.sibling}}function Vb(e,t){for(;Je!==null;){var n=Je;switch(n.tag){case 0:case 11:case 15:ga(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:mr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Je=a;else e:for(n=e;Je!==null;){a=Je;var i=a.sibling,l=a.return;if(Nb(a),a===n){Je=null;break e}if(i!==null){i.return=l,Je=i;break e}Je=l}}}var lA={getCacheForType:function(e){var t=it(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return it(Qe).controller.signal}},rA=typeof WeakMap=="function"?WeakMap:Map,he=0,_e=null,le=null,se=0,ye=0,Lt=null,ya=!1,ul=!1,Ld=!1,Qn=0,He=0,va=0,hi=0,Bd=0,Bt=0,cl=0,Dr=null,Et=null,jd=!1,qo=0,kb=0,Vo=1/0,ko=null,ba=null,Pe=0,Sa=null,fl=null,Gn=0,Hd=0,Fd=null,Qb=null,zr=0,qd=null;function jt(){return he&2&&se!==0?se&-se:J.T!==null?Kd():ly()}function Gb(){if(Bt===0)if(!(se&536870912)||ue){var e=Xs;Xs<<=1,!(Xs&3932160)&&(Xs=262144),Bt=e}else Bt=536870912;return e=zt.current,e!==null&&(e.flags|=32),Bt}function Ct(e,t,n){(e===_e&&(ye===2||ye===9)||e.cancelPendingCommit!==null)&&(dl(e,0),Ea(e,se,Bt,!1)),er(e,n),(!(he&2)||e!==_e)&&(e===_e&&(!(he&2)&&(hi|=n),He===4&&Ea(e,se,Bt,!1)),yn(e))}function $b(e,t,n){if(he&6)throw Error(j(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Wl(e,t),i=a?uA(e,t):kd(e,t,!0),l=a;do{if(i===0){ul&&!a&&Ea(e,t,0,!1);break}else{if(n=e.current.alternate,l&&!sA(n)){i=kd(e,t,!1),l=!1;continue}if(i===2){if(l=t,e.errorRecoveryDisabledLanes&l)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var s=e;i=Dr;var o=s.current.memoizedState.isDehydrated;if(o&&(dl(s,r).flags|=256),r=kd(s,r,!1),r!==2){if(Ld&&!o){s.errorRecoveryDisabledLanes|=l,hi|=l,i=4;break e}l=Et,Et=i,l!==null&&(Et===null?Et=l:Et.push.apply(Et,l))}i=r}if(l=!1,i!==2)continue}}if(i===1){dl(e,0),Ea(e,t,0,!0);break}e:{switch(a=e,l=i,l){case 0:case 1:throw Error(j(345));case 4:if((t&4194048)!==t)break;case 6:Ea(a,t,Bt,!ya);break e;case 2:Et=null;break;case 3:case 5:break;default:throw Error(j(329))}if((t&62914560)===t&&(i=qo+300-xt(),10<i)){if(Ea(a,t,Bt,!ya),Zs(a,0,!0)!==0)break e;Gn=t,a.timeoutHandle=C0(Kb.bind(null,a,n,Et,ko,jd,t,Bt,hi,cl,ya,l,"Throttled",-0,0),i);break e}Kb(a,n,Et,ko,jd,t,Bt,hi,cl,ya,l,null,-0,0)}}break}while(!0);yn(e)}function Kb(e,t,n,a,i,l,r,s,o,c,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mn},Hb(t,l,d);var b=(l&62914560)===l?qo-xt():(l&4194048)===l?kb-xt():0;if(b=$A(d,b),b!==null){Gn=l,e.cancelPendingCommit=b(e0.bind(null,e,t,l,n,a,i,r,s,o,u,d,null,f,p)),Ea(e,l,r,!c);return}}e0(e,t,l,n,a,i,r,s,o)}function sA(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],l=i.getSnapshot;i=i.value;try{if(!Nt(l(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ea(e,t,n,a){t&=~Bd,t&=~hi,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var l=31-Rt(i),r=1<<l;a[l]=-1,i&=~r}n!==0&&ny(e,n,t)}function Qo(){return he&6?!0:(Ur(0),!1)}function Vd(){if(le!==null){if(ye===0)var e=le.return;else e=le,zn=ii=null,ad(e),nl=null,gr=0,e=le;for(;e!==null;)wb(e.alternate,e),e=e.return;le=null}}function dl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,OA(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Gn=0,Vd(),_e=e,le=n=Nn(e.current,null),se=t,ye=0,Lt=null,ya=!1,ul=Wl(e,t),Ld=!1,cl=Bt=Bd=hi=va=He=0,Et=Dr=null,jd=!1,t&8&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-Rt(a),l=1<<i;t|=e[i],a&=~l}return Qn=t,uo(),n}function Yb(e,t){ae=null,J.H=_r,t===tl||t===vo?(t=uv(),ye=3):t===$f?(t=uv(),ye=4):ye=t===bd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Lt=t,le===null&&(He=1,Do(e,$t(t,e.current)))}function Pb(){var e=zt.current;return e===null?!0:(se&4194048)===se?Xt===null:(se&62914560)===se||se&536870912?e===Xt:!1}function Xb(){var e=J.H;return J.H=_r,e===null?_r:e}function Ib(){var e=J.A;return J.A=lA,e}function Go(){He=4,ya||(se&4194048)!==se&&zt.current!==null||(ul=!0),!(va&134217727)&&!(hi&134217727)||_e===null||Ea(_e,se,Bt,!1)}function kd(e,t,n){var a=he;he|=2;var i=Xb(),l=Ib();(_e!==e||se!==t)&&(ko=null,dl(e,t)),t=!1;var r=He;e:do try{if(ye!==0&&le!==null){var s=le,o=Lt;switch(ye){case 8:Vd(),r=6;break e;case 3:case 2:case 9:case 6:zt.current===null&&(t=!0);var c=ye;if(ye=0,Lt=null,hl(e,s,o,c),n&&ul){r=0;break e}break;default:c=ye,ye=0,Lt=null,hl(e,s,o,c)}}oA(),r=He;break}catch(u){Yb(e,u)}while(!0);return t&&e.shellSuspendCounter++,zn=ii=null,he=a,J.H=i,J.A=l,le===null&&(_e=null,se=0,uo()),r}function oA(){for(;le!==null;)Zb(le)}function uA(e,t){var n=he;he|=2;var a=Xb(),i=Ib();_e!==e||se!==t?(ko=null,Vo=xt()+500,dl(e,t)):ul=Wl(e,t);e:do try{if(ye!==0&&le!==null){t=le;var l=Lt;t:switch(ye){case 1:ye=0,Lt=null,hl(e,t,l,1);break;case 2:case 9:if(sv(l)){ye=0,Lt=null,Jb(t);break}t=function(){ye!==2&&ye!==9||_e!==e||(ye=7),yn(e)},l.then(t,t);break e;case 3:ye=7;break e;case 4:ye=5;break e;case 7:sv(l)?(ye=0,Lt=null,Jb(t)):(ye=0,Lt=null,hl(e,t,l,7));break;case 5:var r=null;switch(le.tag){case 26:r=le.memoizedState;case 5:case 27:var s=le;if(r?j0(r):s.stateNode.complete){ye=0,Lt=null;var o=s.sibling;if(o!==null)le=o;else{var c=s.return;c!==null?(le=c,$o(c)):le=null}break t}}ye=0,Lt=null,hl(e,t,l,5);break;case 6:ye=0,Lt=null,hl(e,t,l,6);break;case 8:Vd(),He=6;break e;default:throw Error(j(462))}}cA();break}catch(u){Yb(e,u)}while(!0);return zn=ii=null,J.H=a,J.A=i,he=n,le!==null?0:(_e=null,se=0,uo(),He)}function cA(){for(;le!==null&&!z_();)Zb(le)}function Zb(e){var t=Eb(e.alternate,e,Qn);e.memoizedProps=e.pendingProps,t===null?$o(e):le=t}function Jb(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=pb(n,t,t.pendingProps,t.type,void 0,se);break;case 11:t=pb(n,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:ad(t);default:wb(n,t),t=le=Iy(t,Qn),t=Eb(n,t,Qn)}e.memoizedProps=e.pendingProps,t===null?$o(e):le=t}function hl(e,t,n,a){zn=ii=null,ad(t),nl=null,gr=0;var i=t.return;try{if(JT(e,i,t,n,se)){He=1,Do(e,$t(n,e.current)),le=null;return}}catch(l){if(i!==null)throw le=i,l;He=1,Do(e,$t(n,e.current)),le=null;return}t.flags&32768?(ue||a===1?e=!0:ul||se&536870912?e=!1:(ya=e=!0,(a===2||a===9||a===3||a===6)&&(a=zt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Wb(t,e)):$o(t)}function $o(e){var t=e;do{if(t.flags&32768){Wb(t,ya);return}e=t.return;var n=tA(t.alternate,t,Qn);if(n!==null){le=n;return}if(t=t.sibling,t!==null){le=t;return}le=t=e}while(t!==null);He===0&&(He=5)}function Wb(e,t){do{var n=nA(e.alternate,e);if(n!==null){n.flags&=32767,le=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){le=e;return}le=e=n}while(e!==null);He=6,le=null}function e0(e,t,n,a,i,l,r,s,o){e.cancelPendingCommit=null;do Ko();while(Pe!==0);if(he&6)throw Error(j(327));if(t!==null){if(t===e.current)throw Error(j(177));if(l=t.lanes|t.childLanes,l|=Rf,Q_(e,n,l,r,s,o),e===_e&&(le=_e=null,se=0),fl=t,Sa=e,Gn=n,Hd=l,Fd=i,Qb=a,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,mA(Ys,function(){return l0(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,t.subtreeFlags&13878||a){a=J.T,J.T=null,i=de.p,de.p=2,r=he,he|=4;try{aA(e,t,n)}finally{he=r,de.p=i,J.T=a}}Pe=1,t0(),n0(),a0()}}function t0(){if(Pe===1){Pe=0;var e=Sa,t=fl,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=J.T,J.T=null;var a=de.p;de.p=2;var i=he;he|=4;try{Lb(t,e);var l=eh,r=Vy(e.containerInfo),s=l.focusedElem,o=l.selectionRange;if(r!==s&&s&&s.ownerDocument&&qy(s.ownerDocument.documentElement,s)){if(o!==null&&Tf(s)){var c=o.start,u=o.end;if(u===void 0&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),b=s.textContent.length,E=Math.min(o.start,b),C=o.end===void 0?E:Math.min(o.end,b);!p.extend&&E>C&&(r=C,C=E,E=r);var g=Fy(s,E),y=Fy(s,C);if(g&&y&&(p.rangeCount!==1||p.anchorNode!==g.node||p.anchorOffset!==g.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var h=d.createRange();h.setStart(g.node,g.offset),p.removeAllRanges(),E>C?(p.addRange(h),p.extend(y.node,y.offset)):(h.setEnd(y.node,y.offset),p.addRange(h))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<d.length;s++){var m=d[s];m.element.scrollLeft=m.left,m.element.scrollTop=m.top}}iu=!!Wd,eh=Wd=null}finally{he=i,de.p=a,J.T=n}}e.current=t,Pe=2}}function n0(){if(Pe===2){Pe=0;var e=Sa,t=fl,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=J.T,J.T=null;var a=de.p;de.p=2;var i=he;he|=4;try{Rb(e,t.alternate,t)}finally{he=i,de.p=a,J.T=n}}Pe=3}}function a0(){if(Pe===4||Pe===3){Pe=0,U_();var e=Sa,t=fl,n=Gn,a=Qb;t.subtreeFlags&10256||t.flags&10256?Pe=5:(Pe=0,fl=Sa=null,i0(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ba=null),rf(n),t=t.stateNode,Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(Jl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=J.T,i=de.p,de.p=2,J.T=null;try{for(var l=e.onRecoverableError,r=0;r<a.length;r++){var s=a[r];l(s.value,{componentStack:s.stack})}}finally{J.T=t,de.p=i}}Gn&3&&Ko(),yn(e),i=e.pendingLanes,n&261930&&i&42?e===qd?zr++:(zr=0,qd=e):zr=0,Ur(0)}}function i0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,mr(t)))}function Ko(){return t0(),n0(),a0(),l0()}function l0(){if(Pe!==5)return!1;var e=Sa,t=Hd;Hd=0;var n=rf(Gn),a=J.T,i=de.p;try{de.p=32>n?32:n,J.T=null,n=Fd,Fd=null;var l=Sa,r=Gn;if(Pe=0,fl=Sa=null,Gn=0,he&6)throw Error(j(331));var s=he;if(he|=4,qb(l.current),jb(l,l.current,r,n),he=s,Ur(0,!1),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(Jl,l)}catch{}return!0}finally{de.p=i,J.T=a,i0(e,t)}}function r0(e,t,n){t=$t(n,t),t=vd(e.stateNode,t,2),e=ha(e,t,2),e!==null&&(er(e,2),yn(e))}function ve(e,t,n){if(e.tag===3)r0(e,e,n);else for(;t!==null;){if(t.tag===3){r0(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ba===null||!ba.has(a))){e=$t(n,e),n=sb(2),a=ha(t,n,2),a!==null&&(ob(n,a,t,e),er(a,2),yn(a));break}}t=t.return}}function Qd(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new rA;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(Ld=!0,i.add(n),e=fA.bind(null,e,t,n),t.then(e,e))}function fA(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,_e===e&&(se&n)===n&&(He===4||He===3&&(se&62914560)===se&&300>xt()-qo?!(he&2)&&dl(e,0):Bd|=n,cl===se&&(cl=0)),yn(e)}function s0(e,t){t===0&&(t=ty()),e=ti(e,t),e!==null&&(er(e,t),yn(e))}function dA(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),s0(e,n)}function hA(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(j(314))}a!==null&&a.delete(t),s0(e,n)}function mA(e,t){return tf(e,t)}var Yo=null,ml=null,Gd=!1,Po=!1,$d=!1,Ca=0;function yn(e){e!==ml&&e.next===null&&(ml===null?Yo=ml=e:ml=ml.next=e),Po=!0,Gd||(Gd=!0,gA())}function Ur(e,t){if(!$d&&Po){$d=!0;do for(var n=!1,a=Yo;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var l=0;else{var r=a.suspendedLanes,s=a.pingedLanes;l=(1<<31-Rt(42|e)+1)-1,l&=i&~(r&~s),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(n=!0,f0(a,l))}else l=se,l=Zs(a,a===_e?l:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(l&3)||Wl(a,l)||(n=!0,f0(a,l));a=a.next}while(n);$d=!1}}function pA(){o0()}function o0(){Po=Gd=!1;var e=0;Ca!==0&&AA()&&(e=Ca);for(var t=xt(),n=null,a=Yo;a!==null;){var i=a.next,l=u0(a,t);l===0?(a.next=null,n===null?Yo=i:n.next=i,i===null&&(ml=n)):(n=a,(e!==0||l&3)&&(Po=!0)),a=i}Pe!==0&&Pe!==5||Ur(e),Ca!==0&&(Ca=0)}function u0(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes&-62914561;0<l;){var r=31-Rt(l),s=1<<r,o=i[r];o===-1?(!(s&n)||s&a)&&(i[r]=k_(s,t)):o<=t&&(e.expiredLanes|=s),l&=~s}if(t=_e,n=se,n=Zs(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ye===2||ye===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&nf(a),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Wl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&nf(a),rf(n)){case 2:case 8:n=Wg;break;case 32:n=Ys;break;case 268435456:n=ey;break;default:n=Ys}return a=c0.bind(null,e),n=tf(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&nf(a),e.callbackPriority=2,e.callbackNode=null,2}function c0(e,t){if(Pe!==0&&Pe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ko()&&e.callbackNode!==n)return null;var a=se;return a=Zs(e,e===_e?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:($b(e,a,t),u0(e,xt()),e.callbackNode!=null&&e.callbackNode===n?c0.bind(null,e):null)}function f0(e,t){if(Ko())return null;$b(e,t,!0)}function gA(){xA(function(){he&6?tf(Jg,pA):o0()})}function Kd(){if(Ca===0){var e=Wi;e===0&&(e=Ps,Ps<<=1,!(Ps&261888)&&(Ps=256)),Ca=e}return Ca}function d0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:to(""+e)}function h0(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function yA(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var l=d0((i[gt]||null).action),r=a.submitter;r&&(t=(t=r[gt]||null)?d0(t.formAction):r.getAttribute("formAction"),t!==null&&(l=t,r=null));var s=new lo("action","action",null,a,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ca!==0){var o=r?h0(i,r):new FormData(i);dd(n,{pending:!0,data:o,method:i.method,action:l},null,o)}}else typeof l=="function"&&(s.preventDefault(),o=r?h0(i,r):new FormData(i),dd(n,{pending:!0,data:o,method:i.method,action:l},l,o))},currentTarget:i}]})}}for(var Yd=0;Yd<Mf.length;Yd++){var Pd=Mf[Yd],vA=Pd.toLowerCase(),bA=Pd[0].toUpperCase()+Pd.slice(1);sn(vA,"on"+bA)}sn(Gy,"onAnimationEnd"),sn($y,"onAnimationIteration"),sn(Ky,"onAnimationStart"),sn("dblclick","onDoubleClick"),sn("focusin","onFocus"),sn("focusout","onBlur"),sn(LT,"onTransitionRun"),sn(BT,"onTransitionStart"),sn(jT,"onTransitionCancel"),sn(Yy,"onTransitionEnd"),Fi("onMouseEnter",["mouseout","mouseover"]),Fi("onMouseLeave",["mouseout","mouseover"]),Fi("onPointerEnter",["pointerout","pointerover"]),Fi("onPointerLeave",["pointerout","pointerover"]),Za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Za("onBeforeInput",["compositionend","keypress","textInput","paste"]),Za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),SA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Lr));function m0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var l=void 0;if(t)for(var r=a.length-1;0<=r;r--){var s=a[r],o=s.instance,c=s.currentTarget;if(s=s.listener,o!==l&&i.isPropagationStopped())break e;l=s,i.currentTarget=c;try{l(i)}catch(u){oo(u)}i.currentTarget=null,l=o}else for(r=0;r<a.length;r++){if(s=a[r],o=s.instance,c=s.currentTarget,s=s.listener,o!==l&&i.isPropagationStopped())break e;l=s,i.currentTarget=c;try{l(i)}catch(u){oo(u)}i.currentTarget=null,l=o}}}}function re(e,t){var n=t[sf];n===void 0&&(n=t[sf]=new Set);var a=e+"__bubble";n.has(a)||(p0(t,e,2,!1),n.add(a))}function Xd(e,t,n){var a=0;t&&(a|=4),p0(n,e,a,t)}var Xo="_reactListening"+Math.random().toString(36).slice(2);function Id(e){if(!e[Xo]){e[Xo]=!0,oy.forEach(function(n){n!=="selectionchange"&&(SA.has(n)||Xd(n,!1,e),Xd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xo]||(t[Xo]=!0,Xd("selectionchange",!1,t))}}function p0(e,t,n,a){switch(G0(t)){case 2:var i=PA;break;case 8:i=XA;break;default:i=fh}n=i.bind(null,t,n,e),i=void 0,!gf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Zd(e,t,n,a,i){var l=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var r=a.tag;if(r===3||r===4){var s=a.stateNode.containerInfo;if(s===i)break;if(r===4)for(r=a.return;r!==null;){var o=r.tag;if((o===3||o===4)&&r.stateNode.containerInfo===i)return;r=r.return}for(;s!==null;){if(r=Bi(s),r===null)return;if(o=r.tag,o===5||o===6||o===26||o===27){a=l=r;continue e}s=s.parentNode}}a=a.return}Sy(function(){var c=l,u=mf(n),d=[];e:{var f=Py.get(e);if(f!==void 0){var p=lo,b=e;switch(e){case"keypress":if(ao(n)===0)break e;case"keydown":case"keyup":p=hT;break;case"focusin":b="focus",p=Sf;break;case"focusout":b="blur",p=Sf;break;case"beforeblur":case"afterblur":p=Sf;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=wy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=tT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=gT;break;case Gy:case $y:case Ky:p=iT;break;case Yy:p=vT;break;case"scroll":case"scrollend":p=W_;break;case"wheel":p=ST;break;case"copy":case"cut":case"paste":p=rT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Ty;break;case"toggle":case"beforetoggle":p=CT}var E=(t&4)!==0,C=!E&&(e==="scroll"||e==="scrollend"),g=E?f!==null?f+"Capture":null:f;E=[];for(var y=c,h;y!==null;){var m=y;if(h=m.stateNode,m=m.tag,m!==5&&m!==26&&m!==27||h===null||g===null||(m=ar(y,g),m!=null&&E.push(Br(y,m,h))),C)break;y=y.return}0<E.length&&(f=new p(f,b,null,n,u),d.push({event:f,listeners:E}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==hf&&(b=n.relatedTarget||n.fromElement)&&(Bi(b)||b[Li]))break e;if((p||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,p?(b=n.relatedTarget||n.toElement,p=c,b=b?Bi(b):null,b!==null&&(C=Yl(b),E=b.tag,b!==C||E!==5&&E!==27&&E!==6)&&(b=null)):(p=null,b=c),p!==b)){if(E=wy,m="onMouseLeave",g="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(E=Ty,m="onPointerLeave",g="onPointerEnter",y="pointer"),C=p==null?f:nr(p),h=b==null?f:nr(b),f=new E(m,y+"leave",p,n,u),f.target=C,f.relatedTarget=h,m=null,Bi(u)===c&&(E=new E(g,y+"enter",b,n,u),E.target=h,E.relatedTarget=C,m=E),C=m,p&&b)t:{for(E=EA,g=p,y=b,h=0,m=g;m;m=E(m))h++;m=0;for(var v=y;v;v=E(v))m++;for(;0<h-m;)g=E(g),h--;for(;0<m-h;)y=E(y),m--;for(;h--;){if(g===y||y!==null&&g===y.alternate){E=g;break t}g=E(g),y=E(y)}E=null}else E=null;p!==null&&g0(d,f,p,E,!1),b!==null&&C!==null&&g0(d,C,b,E,!0)}}e:{if(f=c?nr(c):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var _=zy;else if(Ny(f))if(Uy)_=DT;else{_=RT;var w=MT}else p=f.nodeName,!p||p.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?c&&df(c.elementType)&&(_=zy):_=NT;if(_&&(_=_(e,c))){Dy(d,_,n,u);break e}w&&w(e,f,c),e==="focusout"&&c&&f.type==="number"&&c.memoizedProps.value!=null&&ff(f,"number",f.value)}switch(w=c?nr(c):window,e){case"focusin":(Ny(w)||w.contentEditable==="true")&&($i=w,Af=c,fr=null);break;case"focusout":fr=Af=$i=null;break;case"mousedown":Of=!0;break;case"contextmenu":case"mouseup":case"dragend":Of=!1,ky(d,n,u);break;case"selectionchange":if(UT)break;case"keydown":case"keyup":ky(d,n,u)}var x;if(Cf)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Gi?My(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Ay&&n.locale!=="ko"&&(Gi||T!=="onCompositionStart"?T==="onCompositionEnd"&&Gi&&(x=Ey()):(ra=u,yf="value"in ra?ra.value:ra.textContent,Gi=!0)),w=Io(c,T),0<w.length&&(T=new _y(T,e,null,n,u),d.push({event:T,listeners:w}),x?T.data=x:(x=Ry(n),x!==null&&(T.data=x)))),(x=_T?TT(e,n):AT(e,n))&&(T=Io(c,"onBeforeInput"),0<T.length&&(w=new _y("onBeforeInput","beforeinput",null,n,u),d.push({event:w,listeners:T}),w.data=x)),yA(d,e,c,n,u)}m0(d,t)})}function Br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Io(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,l=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||l===null||(i=ar(e,n),i!=null&&a.unshift(Br(e,i,l)),i=ar(e,t),i!=null&&a.push(Br(e,i,l))),e.tag===3)return a;e=e.return}return[]}function EA(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function g0(e,t,n,a,i){for(var l=t._reactName,r=[];n!==null&&n!==a;){var s=n,o=s.alternate,c=s.stateNode;if(s=s.tag,o!==null&&o===a)break;s!==5&&s!==26&&s!==27||c===null||(o=c,i?(c=ar(n,l),c!=null&&r.unshift(Br(n,c,o))):i||(c=ar(n,l),c!=null&&r.push(Br(n,c,o)))),n=n.return}r.length!==0&&e.push({event:t,listeners:r})}var CA=/\r\n?/g,wA=/\u0000|\uFFFD/g;function y0(e){return(typeof e=="string"?e:""+e).replace(CA,`
`).replace(wA,"")}function v0(e,t){return t=y0(t),y0(e)===t}function Ee(e,t,n,a,i,l){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Vi(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Vi(e,""+a);break;case"className":Ws(e,"class",a);break;case"tabIndex":Ws(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ws(e,n,a);break;case"style":vy(e,a,l);break;case"data":if(t!=="object"){Ws(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=to(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof l=="function"&&(n==="formAction"?(t!=="input"&&Ee(e,t,"name",i.name,i,null),Ee(e,t,"formEncType",i.formEncType,i,null),Ee(e,t,"formMethod",i.formMethod,i,null),Ee(e,t,"formTarget",i.formTarget,i,null)):(Ee(e,t,"encType",i.encType,i,null),Ee(e,t,"method",i.method,i,null),Ee(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=to(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Mn);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(j(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(j(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=to(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":re("beforetoggle",e),re("toggle",e),Js(e,"popover",a);break;case"xlinkActuate":xn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":xn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":xn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":xn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":xn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":xn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":xn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":xn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":xn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Js(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Z_.get(n)||n,Js(e,n,a))}}function Jd(e,t,n,a,i,l){switch(n){case"style":vy(e,a,l);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(j(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(j(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Vi(e,a):(typeof a=="number"||typeof a=="bigint")&&Vi(e,""+a);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!uy.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),l=e[gt]||null,l=l!=null?l[n]:null,typeof l=="function"&&e.removeEventListener(t,l,i),typeof a=="function")){typeof l!="function"&&l!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,i);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Js(e,n,a)}}}function rt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":re("error",e),re("load",e);var a=!1,i=!1,l;for(l in n)if(n.hasOwnProperty(l)){var r=n[l];if(r!=null)switch(l){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(j(137,t));default:Ee(e,t,l,r,n,null)}}i&&Ee(e,t,"srcSet",n.srcSet,n,null),a&&Ee(e,t,"src",n.src,n,null);return;case"input":re("invalid",e);var s=l=r=i=null,o=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var u=n[a];if(u!=null)switch(a){case"name":i=u;break;case"type":r=u;break;case"checked":o=u;break;case"defaultChecked":c=u;break;case"value":l=u;break;case"defaultValue":s=u;break;case"children":case"dangerouslySetInnerHTML":if(u!=null)throw Error(j(137,t));break;default:Ee(e,t,a,u,n,null)}}my(e,l,s,o,c,r,i,!1);return;case"select":re("invalid",e),a=r=l=null;for(i in n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case"value":l=s;break;case"defaultValue":r=s;break;case"multiple":a=s;default:Ee(e,t,i,s,n,null)}t=l,n=r,e.multiple=!!a,t!=null?qi(e,!!a,t,!1):n!=null&&qi(e,!!a,n,!0);return;case"textarea":re("invalid",e),l=i=a=null;for(r in n)if(n.hasOwnProperty(r)&&(s=n[r],s!=null))switch(r){case"value":a=s;break;case"defaultValue":i=s;break;case"children":l=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(j(91));break;default:Ee(e,t,r,s,n,null)}gy(e,a,i,l);return;case"option":for(o in n)if(n.hasOwnProperty(o)&&(a=n[o],a!=null))switch(o){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ee(e,t,o,a,n,null)}return;case"dialog":re("beforetoggle",e),re("toggle",e),re("cancel",e),re("close",e);break;case"iframe":case"object":re("load",e);break;case"video":case"audio":for(a=0;a<Lr.length;a++)re(Lr[a],e);break;case"image":re("error",e),re("load",e);break;case"details":re("toggle",e);break;case"embed":case"source":case"link":re("error",e),re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(a=n[c],a!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(j(137,t));default:Ee(e,t,c,a,n,null)}return;default:if(df(t)){for(u in n)n.hasOwnProperty(u)&&(a=n[u],a!==void 0&&Jd(e,t,u,a,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(a=n[s],a!=null&&Ee(e,t,s,a,n,null))}function _A(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,l=null,r=null,s=null,o=null,c=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":o=d;default:a.hasOwnProperty(p)||Ee(e,t,p,null,a,d)}}for(var f in a){var p=a[f];if(d=n[f],a.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case"type":l=p;break;case"name":i=p;break;case"checked":c=p;break;case"defaultChecked":u=p;break;case"value":r=p;break;case"defaultValue":s=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(j(137,t));break;default:p!==d&&Ee(e,t,f,p,a,d)}}cf(e,r,s,o,c,u,l,i);return;case"select":p=r=s=f=null;for(l in n)if(o=n[l],n.hasOwnProperty(l)&&o!=null)switch(l){case"value":break;case"multiple":p=o;default:a.hasOwnProperty(l)||Ee(e,t,l,null,a,o)}for(i in a)if(l=a[i],o=n[i],a.hasOwnProperty(i)&&(l!=null||o!=null))switch(i){case"value":f=l;break;case"defaultValue":s=l;break;case"multiple":r=l;default:l!==o&&Ee(e,t,i,l,a,o)}t=s,n=r,a=p,f!=null?qi(e,!!n,f,!1):!!a!=!!n&&(t!=null?qi(e,!!n,t,!0):qi(e,!!n,n?[]:"",!1));return;case"textarea":p=f=null;for(s in n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Ee(e,t,s,null,a,i)}for(r in a)if(i=a[r],l=n[r],a.hasOwnProperty(r)&&(i!=null||l!=null))switch(r){case"value":f=i;break;case"defaultValue":p=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(j(91));break;default:i!==l&&Ee(e,t,r,i,a,l)}py(e,f,p);return;case"option":for(var b in n)if(f=n[b],n.hasOwnProperty(b)&&f!=null&&!a.hasOwnProperty(b))switch(b){case"selected":e.selected=!1;break;default:Ee(e,t,b,null,a,f)}for(o in a)if(f=a[o],p=n[o],a.hasOwnProperty(o)&&f!==p&&(f!=null||p!=null))switch(o){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Ee(e,t,o,f,a,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var E in n)f=n[E],n.hasOwnProperty(E)&&f!=null&&!a.hasOwnProperty(E)&&Ee(e,t,E,null,a,f);for(c in a)if(f=a[c],p=n[c],a.hasOwnProperty(c)&&f!==p&&(f!=null||p!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(j(137,t));break;default:Ee(e,t,c,f,a,p)}return;default:if(df(t)){for(var C in n)f=n[C],n.hasOwnProperty(C)&&f!==void 0&&!a.hasOwnProperty(C)&&Jd(e,t,C,void 0,a,f);for(u in a)f=a[u],p=n[u],!a.hasOwnProperty(u)||f===p||f===void 0&&p===void 0||Jd(e,t,u,f,a,p);return}}for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!=null&&!a.hasOwnProperty(g)&&Ee(e,t,g,null,a,f);for(d in a)f=a[d],p=n[d],!a.hasOwnProperty(d)||f===p||f==null&&p==null||Ee(e,t,d,f,a,p)}function b0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function TA(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],l=i.transferSize,r=i.initiatorType,s=i.duration;if(l&&s&&b0(r)){for(r=0,s=i.responseEnd,a+=1;a<n.length;a++){var o=n[a],c=o.startTime;if(c>s)break;var u=o.transferSize,d=o.initiatorType;u&&b0(d)&&(o=o.responseEnd,r+=u*(o<s?1:(s-c)/(o-c)))}if(--a,t+=8*(l+r)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Wd=null,eh=null;function Zo(e){return e.nodeType===9?e:e.ownerDocument}function S0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function E0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function th(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var nh=null;function AA(){var e=window.event;return e&&e.type==="popstate"?e===nh?!1:(nh=e,!0):(nh=null,!1)}var C0=typeof setTimeout=="function"?setTimeout:void 0,OA=typeof clearTimeout=="function"?clearTimeout:void 0,w0=typeof Promise=="function"?Promise:void 0,xA=typeof queueMicrotask=="function"?queueMicrotask:typeof w0<"u"?function(e){return w0.resolve(null).then(e).catch(MA)}:C0;function MA(e){setTimeout(function(){throw e})}function wa(e){return e==="head"}function _0(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(i),vl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")jr(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,jr(n);for(var l=n.firstChild;l;){var r=l.nextSibling,s=l.nodeName;l[tr]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&l.rel.toLowerCase()==="stylesheet"||n.removeChild(l),l=r}}else n==="body"&&jr(e.ownerDocument.body);n=i}while(n);vl(t)}function T0(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function ah(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ah(n),of(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function RA(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[tr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(l!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var l=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=It(e.nextSibling),e===null)break}return null}function NA(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=It(e.nextSibling),e===null))return null;return e}function A0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=It(e.nextSibling),e===null))return null;return e}function ih(e){return e.data==="$?"||e.data==="$~"}function lh(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function DA(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function It(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var rh=null;function O0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return It(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function x0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function M0(e,t,n){switch(t=Zo(n),e){case"html":if(e=t.documentElement,!e)throw Error(j(452));return e;case"head":if(e=t.head,!e)throw Error(j(453));return e;case"body":if(e=t.body,!e)throw Error(j(454));return e;default:throw Error(j(451))}}function jr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);of(e)}var Zt=new Map,R0=new Set;function Jo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var $n=de.d;de.d={f:zA,r:UA,D:LA,C:BA,L:jA,m:HA,X:qA,S:FA,M:VA};function zA(){var e=$n.f(),t=Qo();return e||t}function UA(e){var t=ji(e);t!==null&&t.tag===5&&t.type==="form"?Yv(t):$n.r(e)}var pl=typeof document>"u"?null:document;function N0(e,t,n){var a=pl;if(a&&typeof t=="string"&&t){var i=Qt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),R0.has(i)||(R0.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),rt(t,"link",e),Ze(t),a.head.appendChild(t)))}}function LA(e){$n.D(e),N0("dns-prefetch",e,null)}function BA(e,t){$n.C(e,t),N0("preconnect",e,t)}function jA(e,t,n){$n.L(e,t,n);var a=pl;if(a&&e&&t){var i='link[rel="preload"][as="'+Qt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Qt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Qt(n.imageSizes)+'"]')):i+='[href="'+Qt(e)+'"]';var l=i;switch(t){case"style":l=gl(e);break;case"script":l=yl(e)}Zt.has(l)||(e=Me({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zt.set(l,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Hr(l))||t==="script"&&a.querySelector(Fr(l))||(t=a.createElement("link"),rt(t,"link",e),Ze(t),a.head.appendChild(t)))}}function HA(e,t){$n.m(e,t);var n=pl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Qt(a)+'"][href="'+Qt(e)+'"]',l=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=yl(e)}if(!Zt.has(l)&&(e=Me({rel:"modulepreload",href:e},t),Zt.set(l,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Fr(l)))return}a=n.createElement("link"),rt(a,"link",e),Ze(a),n.head.appendChild(a)}}}function FA(e,t,n){$n.S(e,t,n);var a=pl;if(a&&e){var i=Hi(a).hoistableStyles,l=gl(e);t=t||"default";var r=i.get(l);if(!r){var s={loading:0,preload:null};if(r=a.querySelector(Hr(l)))s.loading=5;else{e=Me({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zt.get(l))&&sh(e,n);var o=r=a.createElement("link");Ze(o),rt(o,"link",e),o._p=new Promise(function(c,u){o.onload=c,o.onerror=u}),o.addEventListener("load",function(){s.loading|=1}),o.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Wo(r,t,a)}r={type:"stylesheet",instance:r,count:1,state:s},i.set(l,r)}}}function qA(e,t){$n.X(e,t);var n=pl;if(n&&e){var a=Hi(n).hoistableScripts,i=yl(e),l=a.get(i);l||(l=n.querySelector(Fr(i)),l||(e=Me({src:e,async:!0},t),(t=Zt.get(i))&&oh(e,t),l=n.createElement("script"),Ze(l),rt(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},a.set(i,l))}}function VA(e,t){$n.M(e,t);var n=pl;if(n&&e){var a=Hi(n).hoistableScripts,i=yl(e),l=a.get(i);l||(l=n.querySelector(Fr(i)),l||(e=Me({src:e,async:!0,type:"module"},t),(t=Zt.get(i))&&oh(e,t),l=n.createElement("script"),Ze(l),rt(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},a.set(i,l))}}function D0(e,t,n,a){var i=(i=aa.current)?Jo(i):null;if(!i)throw Error(j(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=gl(n.href),n=Hi(i).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=gl(n.href);var l=Hi(i).hoistableStyles,r=l.get(e);if(r||(i=i.ownerDocument||i,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,r),(l=i.querySelector(Hr(e)))&&!l._p&&(r.instance=l,r.state.loading=5),Zt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Zt.set(e,n),l||kA(i,e,n,r.state))),t&&a===null)throw Error(j(528,""));return r}if(t&&a!==null)throw Error(j(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=yl(n),n=Hi(i).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(j(444,e))}}function gl(e){return'href="'+Qt(e)+'"'}function Hr(e){return'link[rel="stylesheet"]['+e+"]"}function z0(e){return Me({},e,{"data-precedence":e.precedence,precedence:null})}function kA(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),rt(t,"link",n),Ze(t),e.head.appendChild(t))}function yl(e){return'[src="'+Qt(e)+'"]'}function Fr(e){return"script[async]"+e}function U0(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Qt(n.href)+'"]');if(a)return t.instance=a,Ze(a),a;var i=Me({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ze(a),rt(a,"style",i),Wo(a,n.precedence,e),t.instance=a;case"stylesheet":i=gl(n.href);var l=e.querySelector(Hr(i));if(l)return t.state.loading|=4,t.instance=l,Ze(l),l;a=z0(n),(i=Zt.get(i))&&sh(a,i),l=(e.ownerDocument||e).createElement("link"),Ze(l);var r=l;return r._p=new Promise(function(s,o){r.onload=s,r.onerror=o}),rt(l,"link",a),t.state.loading|=4,Wo(l,n.precedence,e),t.instance=l;case"script":return l=yl(n.src),(i=e.querySelector(Fr(l)))?(t.instance=i,Ze(i),i):(a=n,(i=Zt.get(l))&&(a=Me({},n),oh(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Ze(i),rt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(j(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,Wo(a,n.precedence,e));return t.instance}function Wo(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,l=i,r=0;r<a.length;r++){var s=a[r];if(s.dataset.precedence===t)l=s;else if(l!==i)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function sh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function oh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var eu=null;function L0(e,t,n){if(eu===null){var a=new Map,i=eu=new Map;i.set(n,a)}else i=eu,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var l=n[i];if(!(l[tr]||l[nt]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var r=l.getAttribute(t)||"";r=e+r;var s=a.get(r);s?s.push(l):a.set(r,[l])}}return a}function B0(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function QA(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function j0(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function GA(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var i=gl(a.href),l=t.querySelector(Hr(i));if(l){t=l._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=l,Ze(l);return}l=t.ownerDocument||t,a=z0(a),(i=Zt.get(i))&&sh(a,i),l=l.createElement("link"),Ze(l);var r=l;r._p=new Promise(function(s,o){r.onload=s,r.onerror=o}),rt(l,"link",a),n.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=tu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var uh=0;function $A(e,t){return e.stylesheets&&e.count===0&&au(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&au(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4+t);0<e.imgBytes&&uh===0&&(uh=62500*TA());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&au(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>uh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function tu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)au(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var nu=null;function au(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,nu=new Map,t.forEach(KA,e),nu=null,tu.call(e))}function KA(e,t){if(!(t.state.loading&4)){var n=nu.get(e);if(n)var a=n.get(null);else{n=new Map,nu.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<i.length;l++){var r=i[l];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(n.set(r.dataset.precedence,r),a=r)}a&&n.set(null,a)}i=t.instance,r=i.getAttribute("data-precedence"),l=n.get(r)||a,l===a&&n.set(null,i),n.set(r,i),this.count++,a=tu.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),l?l.parentNode.insertBefore(i,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var qr={$$typeof:On,Provider:null,Consumer:null,_currentValue:Pa,_currentValue2:Pa,_threadCount:0};function YA(e,t,n,a,i,l,r,s,o){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=af(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=af(0),this.hiddenUpdates=af(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=l,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function H0(e,t,n,a,i,l,r,s,o,c,u,d){return e=new YA(e,t,n,r,o,c,u,d,s),t=1,l===!0&&(t|=24),l=Dt(3,null,null,t),e.current=l,l.stateNode=e,t=kf(),t.refCount++,e.pooledCache=t,t.refCount++,l.memoizedState={element:a,isDehydrated:n,cache:t},Kf(l),e}function F0(e){return e?(e=Pi,e):Pi}function q0(e,t,n,a,i,l){i=F0(i),a.context===null?a.context=i:a.pendingContext=i,a=da(t),a.payload={element:n},l=l===void 0?null:l,l!==null&&(a.callback=l),n=ha(e,a,t),n!==null&&(Ct(n,e,t),vr(n,e,t))}function V0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ch(e,t){V0(e,t),(e=e.alternate)&&V0(e,t)}function k0(e){if(e.tag===13||e.tag===31){var t=ti(e,67108864);t!==null&&Ct(t,e,67108864),ch(e,67108864)}}function Q0(e){if(e.tag===13||e.tag===31){var t=jt();t=lf(t);var n=ti(e,t);n!==null&&Ct(n,e,t),ch(e,t)}}var iu=!0;function PA(e,t,n,a){var i=J.T;J.T=null;var l=de.p;try{de.p=2,fh(e,t,n,a)}finally{de.p=l,J.T=i}}function XA(e,t,n,a){var i=J.T;J.T=null;var l=de.p;try{de.p=8,fh(e,t,n,a)}finally{de.p=l,J.T=i}}function fh(e,t,n,a){if(iu){var i=dh(a);if(i===null)Zd(e,t,a,lu,n),$0(e,a);else if(ZA(i,e,t,n,a))a.stopPropagation();else if($0(e,a),t&4&&-1<IA.indexOf(e)){for(;i!==null;){var l=ji(i);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var r=Ia(l.pendingLanes);if(r!==0){var s=l;for(s.pendingLanes|=2,s.entangledLanes|=2;r;){var o=1<<31-Rt(r);s.entanglements[1]|=o,r&=~o}yn(l),!(he&6)&&(Vo=xt()+500,Ur(0))}}break;case 31:case 13:s=ti(l,2),s!==null&&Ct(s,l,2),Qo(),ch(l,2)}if(l=dh(a),l===null&&Zd(e,t,a,lu,n),l===i)break;i=l}i!==null&&a.stopPropagation()}else Zd(e,t,a,null,n)}}function dh(e){return e=mf(e),hh(e)}var lu=null;function hh(e){if(lu=null,e=Bi(e),e!==null){var t=Yl(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Qg(t),e!==null)return e;e=null}else if(n===31){if(e=Gg(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return lu=e,null}function G0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(L_()){case Jg:return 2;case Wg:return 8;case Ys:case B_:return 32;case ey:return 268435456;default:return 32}default:return 32}}var mh=!1,_a=null,Ta=null,Aa=null,Vr=new Map,kr=new Map,Oa=[],IA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function $0(e,t){switch(e){case"focusin":case"focusout":_a=null;break;case"dragenter":case"dragleave":Ta=null;break;case"mouseover":case"mouseout":Aa=null;break;case"pointerover":case"pointerout":Vr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kr.delete(t.pointerId)}}function Qr(e,t,n,a,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:l,targetContainers:[i]},t!==null&&(t=ji(t),t!==null&&k0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ZA(e,t,n,a,i){switch(t){case"focusin":return _a=Qr(_a,e,t,n,a,i),!0;case"dragenter":return Ta=Qr(Ta,e,t,n,a,i),!0;case"mouseover":return Aa=Qr(Aa,e,t,n,a,i),!0;case"pointerover":var l=i.pointerId;return Vr.set(l,Qr(Vr.get(l)||null,e,t,n,a,i)),!0;case"gotpointercapture":return l=i.pointerId,kr.set(l,Qr(kr.get(l)||null,e,t,n,a,i)),!0}return!1}function K0(e){var t=Bi(e.target);if(t!==null){var n=Yl(t);if(n!==null){if(t=n.tag,t===13){if(t=Qg(n),t!==null){e.blockedOn=t,ry(e.priority,function(){Q0(n)});return}}else if(t===31){if(t=Gg(n),t!==null){e.blockedOn=t,ry(e.priority,function(){Q0(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ru(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dh(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);hf=a,n.target.dispatchEvent(a),hf=null}else return t=ji(n),t!==null&&k0(t),e.blockedOn=n,!1;t.shift()}return!0}function Y0(e,t,n){ru(e)&&n.delete(t)}function JA(){mh=!1,_a!==null&&ru(_a)&&(_a=null),Ta!==null&&ru(Ta)&&(Ta=null),Aa!==null&&ru(Aa)&&(Aa=null),Vr.forEach(Y0),kr.forEach(Y0)}function su(e,t){e.blockedOn===t&&(e.blockedOn=null,mh||(mh=!0,Ye.unstable_scheduleCallback(Ye.unstable_NormalPriority,JA)))}var ou=null;function P0(e){ou!==e&&(ou=e,Ye.unstable_scheduleCallback(Ye.unstable_NormalPriority,function(){ou===e&&(ou=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(hh(a||n)===null)continue;break}var l=ji(n);l!==null&&(e.splice(t,3),t-=3,dd(l,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function vl(e){function t(o){return su(o,e)}_a!==null&&su(_a,e),Ta!==null&&su(Ta,e),Aa!==null&&su(Aa,e),Vr.forEach(t),kr.forEach(t);for(var n=0;n<Oa.length;n++){var a=Oa[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Oa.length&&(n=Oa[0],n.blockedOn===null);)K0(n),n.blockedOn===null&&Oa.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],l=n[a+1],r=i[gt]||null;if(typeof l=="function")r||P0(n);else if(r){var s=null;if(l&&l.hasAttribute("formAction")){if(i=l,r=l[gt]||null)s=r.formAction;else if(hh(i)!==null)continue}else s=r.action;typeof s=="function"?n[a+1]=s:(n.splice(a,3),a-=3),P0(n)}}}function X0(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(r){return i=r})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function ph(e){this._internalRoot=e}uu.prototype.render=ph.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));var n=t.current,a=jt();q0(n,a,e,t,null,null)},uu.prototype.unmount=ph.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;q0(e.current,2,null,e,null,null),Qo(),t[Li]=null}};function uu(e){this._internalRoot=e}uu.prototype.unstable_scheduleHydration=function(e){if(e){var t=ly();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Oa.length&&t!==0&&t<Oa[n].priority;n++);Oa.splice(n,0,e),n===0&&K0(e)}};var I0=Vg.version;if(I0!=="19.2.6")throw Error(j(527,I0,"19.2.6"));de.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=x_(t),e=e!==null?Kg(e):null,e=e===null?null:e.stateNode,e};var WA={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:J,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cu.isDisabled&&cu.supportsFiber)try{Jl=cu.inject(WA),Mt=cu}catch{}}ks.createRoot=function(e,t){if(!kg(e))throw Error(j(299));var n=!1,a="",i=ab,l=ib,r=lb;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=H0(e,1,!1,null,null,n,a,null,i,l,r,X0),e[Li]=t.current,Id(e),new ph(t)},ks.hydrateRoot=function(e,t,n){if(!kg(e))throw Error(j(299));var a=!1,i="",l=ab,r=ib,s=lb,o=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(l=n.onUncaughtError),n.onCaughtError!==void 0&&(r=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(o=n.formState)),t=H0(e,1,!0,t,n??null,a,i,o,l,r,s,X0),t.context=F0(null),n=t.current,a=jt(),a=lf(a),i=da(a),i.callback=null,ha(n,i,a),n=a,t.current.lanes=n,er(t,n),yn(t),e[Li]=t.current,Id(e),new uu(t)},ks.version="19.2.6";function Z0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Z0)}catch(e){console.error(e)}}Z0(),Hg.exports=ks;var eO=Hg.exports;const tO=Ft(eO),nO=()=>{const e=document.createElement("style");e.textContent=`
    .sg-tooltip {
      position: absolute;
      max-width: 320px;
      padding: 7px;
      border: 1px solid rgba(255 255 255 / 0);;
      border-radius: 4px;
      background: rgba(0 0 0 / 0.95);
      color: #fff;
      font-size: 12px;
      font-style: normal;
      font-weight: 400;
      line-height: 18px;
      overflow-wrap: break-word;
      z-index: 99999999;
    }

    .sg-tooltip--background-white {
      background-color: var(--tooltip-background-light);
    }

    .sg-tooltip--density-none {
      padding: 0;
    }
  `,document.head.appendChild(e)},aO=(e,t,n)=>{const a=document.createElement("head");{const i=document.createElement("link");i.rel="stylesheet";const l=t.config.plugin_version,r=l?`?ver=${encodeURIComponent(l)}`:"";i.href=`${t.config.assetsPath}css/${n}${r}`,a.appendChild(i),e.prepend(a)}},iO=(e,t,n)=>{const a=document.getElementById(e.domElementId);if(!a)return console.error(`Element with ID "${e.domElementId}" not found`),null;nO();const i=a.attachShadow({mode:"open"});aO(i,e,n);const l=tO.createRoot(i);return l.render(t(i)),l};var lO=46,rO=/\\(\\)?/g,sO=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g"),oO=function(t){var n=[];return t.charCodeAt(0)===lO&&n.push(""),t.replace(sO,function(a,i,l,r){var s=a;return l?s=r.replace(rO,"$1"):i&&(s=i.trim()),n.push(s),""}),n},fu={},uO=/[.[\]]+/,J0=function(t){if(t==null||!t.length)return[];if(typeof t!="string")throw new Error("toPath() expects a string");return fu[t]==null&&(t.endsWith("[]")?fu[t]=t.split(uO).filter(Boolean):fu[t]=oO(t)),fu[t]},De=function(t,n){for(var a=J0(n),i=t,l=0;l<a.length;l++){var r=a[l];if(i==null||typeof i!="object"||Array.isArray(i)&&isNaN(Number(r)))return;i=i[r]}return i};function cO(e){var t=fO(e,"string");return typeof t=="symbol"?t:t+""}function fO(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gr=function(t,n,a,i,l){if(n>=a.length)return i;var r=a[n];if(isNaN(Number(r))){var s;if(t==null){var o,c=Gr(void 0,n+1,a,i,l);return c===void 0?void 0:(o={},o[r]=c,o)}if(Array.isArray(t))throw new Error("Cannot set a non-numeric property on an array");var u=Gr(t[r],n+1,a,i,l);if(u===void 0){var d=Object.keys(t).length;if(t[r]===void 0&&d===0)return;if(t[r]!==void 0&&d<=1)return!isNaN(Number(a[n-1]))&&!l?{}:void 0;t[r];var f=Ha(t,[r].map(cO));return f}return ge({},t,(s={},s[r]=u,s))}var p=Number(r);if(t==null){var b=Gr(void 0,n+1,a,i,l);if(b===void 0)return;var E=[];return E[p]=b,E}if(!Array.isArray(t))throw new Error("Cannot set a numeric property on an object");var C=t[p],g=Gr(C,n+1,a,i,l),y=[].concat(t);if(l&&g===void 0){if(y.splice(p,1),y.length===0)return}else y[p]=g;return y},Jt=function(t,n,a,i){if(i===void 0&&(i=!1),t==null)throw new Error("Cannot call setIn() with "+String(t)+" state");if(n==null)throw new Error("Cannot call setIn() with "+String(n)+" key");return Gr(t,0,J0(n),a,i)},W0="FINAL_FORM/form-error",$r="FINAL_FORM/array-error";function gh(e,t){var n=e.errors,a=e.initialValues,i=e.lastSubmittedValues,l=e.submitErrors,r=e.submitFailed,s=e.submitSucceeded,o=e.submitting,c=e.values,u=t.active,d=t.blur,f=t.change,p=t.data,b=t.focus,E=t.modified,C=t.modifiedSinceLastSubmit,g=t.name,y=t.touched,h=t.validating,m=t.visited,v=De(c,g),_=n?De(n,g):void 0;_&&_[$r]&&(_=_[$r]);var w=l&&De(l,g),x=a&&De(a,g),T=t.isEqual(x,v),A=!!(i&&!t.isEqual(De(i,g),v)),O=!_&&!w;return{active:u,blur:d,change:f,data:p,dirty:!T,dirtySinceLastSubmit:A,error:_,focus:b,initial:x,invalid:!O,length:Array.isArray(v)?v.length:void 0,modified:E,modifiedSinceLastSubmit:C,name:g,pristine:T,submitError:w,submitFailed:r,submitSucceeded:s,submitting:o,touched:y,valid:O,value:v,visited:m,validating:h}}var e1=["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","value","visited","validating"],vn=function(t,n){if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),i=Object.keys(n);if(a.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),r=0;r<a.length;r++){var s=a[r];if(!l(s)||t[s]!==n[s])return!1}return!0};function t1(e,t,n,a,i,l){var r=!1;return i.forEach(function(s){a[s]&&(e[s]=t[s],(!n||(~l.indexOf(s)?!vn(t[s],n[s]):t[s]!==n[s]))&&(r=!0))}),r}var dO=["data"],hO=function(t,n,a,i){var l={blur:t.blur,change:t.change,focus:t.focus,name:t.name},r=t1(l,t,n,a,e1,dO)||!n;return r||i?l:void 0},n1=["active","dirty","dirtyFields","dirtyFieldsSinceLastSubmit","dirtySinceLastSubmit","error","errors","hasSubmitErrors","hasValidationErrors","initialValues","invalid","modified","modifiedSinceLastSubmit","pristine","submitting","submitError","submitErrors","submitFailed","submitSucceeded","touched","valid","validating","values","visited"],mO=["touched","visited"];function a1(e,t,n,a){var i={},l=t1(i,e,t,n,n1,mO)||!t;return l||a?i:void 0}var i1=function(t){var n,a;return function(){for(var i=arguments.length,l=new Array(i),r=0;r<i;r++)l[r]=arguments[r];return(!n||l.length!==n.length||l.some(function(s,o){return!vn(n[o],s)}))&&(n=l,a=t.apply(void 0,l)),a}},yh=function(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"},pO="5.0.0-1",gO=function(t,n){return t===n},mi=function(t){return Object.keys(t).some(function(n){var a=t[n];return a&&typeof a=="object"&&!(a instanceof Error)?mi(a):typeof a<"u"})};function yO(e){var t=e.active,n=e.dirtySinceLastSubmit,a=e.modifiedSinceLastSubmit,i=e.error,l=e.errors,r=e.initialValues,s=e.pristine,o=e.submitting,c=e.submitFailed,u=e.submitSucceeded,d=e.submitError,f=e.submitErrors,p=e.valid,b=e.validating,E=e.values;return{active:t,dirty:!s,dirtySinceLastSubmit:n,modifiedSinceLastSubmit:a,error:i,errors:l,hasSubmitErrors:!!(d||f&&mi(f)),hasValidationErrors:!!(i||l&&mi(l)),invalid:!p,initialValues:r,pristine:s,submitting:o,submitFailed:c,submitSucceeded:u,submitError:d,submitErrors:f,valid:p,validating:b>0,values:E}}function l1(e,t,n,a,i,l){var r=i(n,a,t,l);return r?(e(r),!0):!1}function r1(e,t,n,a,i){var l=e.entries;Object.keys(l).forEach(function(r){var s=l[Number(r)];if(s){var o=s.subscription,c=s.subscriber,u=s.notified;l1(c,o,t,n,a,i||!u)&&(s.notified=!0)}})}function vO(e){if(!e)throw new Error("No config specified");var t=e.debug,n=e.destroyOnUnregister,a=e.keepDirtyOnReinitialize,i=e.initialValues,l=e.mutators,r=e.onSubmit,s=e.validate,o=e.validateOnBlur,c=e.callbackScheduler;if(!r)throw new Error("No onSubmit function specified");var u={subscribers:{index:0,entries:{}},fieldSubscribers:{},fields:{},formState:{asyncErrors:{},dirtySinceLastSubmit:!1,modifiedSinceLastSubmit:!1,errors:{},initialValues:i&&ge({},i),pristine:!0,submitting:!1,submitFailed:!1,submitSucceeded:!1,resetWhileSubmitting:!1,valid:!0,validating:0,values:i?ge({},i):{}},lastFormState:void 0},d=0,f=!1,p=!1,b=!1,E=0,C={},g=[],y=!1,h=function(M){return function(U){return delete C[M],U}},m=function(){if(!y&&g.length>0){y=!0;var M=c||function(U){return setTimeout(U,0)};M(function(){var U=[].concat(g);g.length=0,y=!1,U.forEach(function(k){return k()})})}},v=function(M,U){U?(g.push(M),m()):M()},_=function(M,U,k){var V=De(M.formState.values,U),P=k(V);M.formState.values=Jt(M.formState.values,U,P)||{}},w=function(M,U,k){if(M.fields[U]){var V,P;M.fields=ge({},M.fields,(V={},V[k]=ge({},M.fields[U],{name:k,blur:function(){return Q.blur(k)},change:function(te){return Q.change(k,te)},focus:function(){return Q.focus(k)},lastFieldState:void 0}),V)),delete M.fields[U],M.fieldSubscribers=ge({},M.fieldSubscribers,(P={},P[k]=M.fieldSubscribers[U],P)),delete M.fieldSubscribers[U];var Z=De(M.formState.values,U);M.formState.values=Jt(M.formState.values,U,void 0)||{},M.formState.values=Jt(M.formState.values,k,Z)||{},delete M.lastFormState}},x=function(M){return function(){if(l){for(var U={formState:u.formState,fields:u.fields,fieldSubscribers:u.fieldSubscribers,lastFormState:u.lastFormState},k=arguments.length,V=new Array(k),P=0;P<k;P++)V[P]=arguments[P];var Z=l[M](V,U,{changeValue:_,getIn:De,renameField:w,resetFieldState:Q.resetFieldState,setIn:Jt,shallowEqual:vn});return u.formState=U.formState,u.fields=U.fields,u.fieldSubscribers=U.fieldSubscribers,u.lastFormState=U.lastFormState,D(void 0,function(){z(void 0),Y()}),Z}}},T=l?Object.keys(l).reduce(function($,M){return $[M]=x(M),$},{}):{},A=function(M){var U=[];if(s){var k=s(ge({},u.formState.values));yh(k)?U.push(k.then(function(V){return M(V,!0)})):M(k,!1)}return U},O=function(M){return Object.keys(M.validators).reduce(function(U,k){var V=M.validators[Number(k)]();return V&&U.push(V),U},[])},R=function(M,U){var k=[],V=O(M);if(V.length){var P;V.forEach(function(Z){var oe=Z(De(u.formState.values,M.name),u.formState.values,Z.length===0||Z.length===3?gh(u.formState,u.fields[M.name]):void 0);if(oe&&yh(oe)){M.validating=!0;var te=oe.then(function(ce){u.fields[M.name]&&(u.fields[M.name].validating=!1,U(ce))});k.push(te)}else P||(P=oe)}),U(P)}return k},D=function(M,U){if(f){p=!0,U();return}var k=u.fields,V=u.formState,P=ge({},k),Z=Object.keys(P);if(!s&&!Z.some(function(Na){return O(P[Na]).length})){U();return}var oe=!1;if(M){var te=P[M];if(te){var ce=te.validateFields;ce&&(oe=!0,Z=ce.length?ce.concat(M):[M])}}var me={},Ve={},Ue={},ot=[].concat(A(function(Na,gi){gi?Ve=Na||{}:me=Na||{}}),Z.reduce(function(Na,gi){return Na.concat(R(k[gi],function(En){Ue[gi]=En}))},[])),Le=ot.length>0,Be=++E,Ra=Promise.all(ot).then(h(Be));Le&&(C[Be]=Ra);var tS=function(gi){var En=ge({},oe?V.errors:{},me,gi?Ve:V.asyncErrors),aS=function(yi){Z.forEach(function(Da){if(k[Da]){var Jr=De(me,Da),$x=De(En,Da),Kx=O(P[Da]).length,Yx=Ue[Da];yi(Da,Kx&&Yx||s&&Jr||(!Jr&&!oe?$x:void 0))}})};aS(function(Zr,yi){En=Jt(En,Zr,yi)||{}}),aS(function(Zr,yi){if(yi&&yi[$r]){var Da=De(En,Zr),Jr=[].concat(Da);Jr[$r]=yi[$r],En=Jt(En,Zr,Jr)}}),vn(V.errors,En)||(V.errors=En),gi&&(V.asyncErrors=Ve),V.error=me[W0]};if(Le&&(u.formState.validating++,U()),tS(!1),U(),Le){var nS=function(){u.formState.validating--,U(),u.formState.validating===0&&u.lastFormState.validating&&Y()};Ra.then(function(){E>Be||tS(!0)}).then(nS,nS)}},z=function(M){if(!d){var U=u.fields,k=u.fieldSubscribers,V=u.formState,P=ge({},U),Z=function(te){var ce=P[te],me=gh(V,ce),Ve=ce.lastFieldState;ce.lastFieldState=me;var Ue=k[te];Ue&&r1(Ue,me,Ve,hO,Ve===void 0)};M?Z(M):Object.keys(P).forEach(Z)}},H=function(){Object.keys(u.fields).forEach(function(M){u.fields[M].touched=!0})},N=function(){return!!(u.formState.error||mi(u.formState.errors))},L=function(){var M=u.fields,U=u.formState,k=u.lastFormState,V=ge({},M),P=Object.keys(V),Z=!1,oe=P.reduce(function(Le,Be){var Ra=!V[Be].isEqual(De(U.values,Be),De(U.initialValues||{},Be));return Ra&&(Z=!0,Le[Be]=!0),Le},{}),te=P.reduce(function(Le,Be){var Ra=U.lastSubmittedValues||{};return V[Be].isEqual(De(U.values,Be),De(Ra,Be))||(Le[Be]=!0),Le},{});U.pristine=!Z,U.dirtySinceLastSubmit=!!(U.lastSubmittedValues&&Object.values(te).some(function(Le){return Le})),U.modifiedSinceLastSubmit=!!(U.lastSubmittedValues&&Object.keys(V).some(function(Le){return V[Le].modifiedSinceLastSubmit})),U.valid=!U.error&&!U.submitError&&!mi(U.errors)&&!(U.submitErrors&&mi(U.submitErrors));var ce=yO(U),me=P.reduce(function(Le,Be){return Le.modified[Be]=V[Be].modified,Le.touched[Be]=V[Be].touched,Le.visited[Be]=V[Be].visited,Le},{modified:{},touched:{},visited:{}}),Ve=me.modified,Ue=me.touched,ot=me.visited;return ce.dirtyFields=k&&vn(k.dirtyFields,oe)?k.dirtyFields:oe,ce.dirtyFieldsSinceLastSubmit=k&&vn(k.dirtyFieldsSinceLastSubmit,te)?k.dirtyFieldsSinceLastSubmit:te,ce.modified=k&&vn(k.modified,Ve)?k.modified:Ve,ce.touched=k&&vn(k.touched,Ue)?k.touched:Ue,ce.visited=k&&vn(k.visited,ot)?k.visited:ot,k&&vn(k,ce)?k:ce},F=function(){return t&&!0&&t(L(),Object.keys(u.fields).reduce(function(M,U){return M[U]=u.fields[U],M},{}))},q=!1,G=!1,Y=function(){if(q)G=!0;else{if(q=!0,F(),!d&&!(f&&b)){var M=u.lastFormState,U=L();U!==M&&(u.lastFormState=U,r1(u.subscribers,U,M,a1))}q=!1,G&&(G=!1,Y())}},W=function(){return Object.keys(u.fields).some(function(M){return u.fields[M].beforeSubmit&&u.fields[M].beforeSubmit()===!1})},fe=function(){return Object.keys(u.fields).forEach(function(M){return u.fields[M].afterSubmit&&u.fields[M].afterSubmit()})},X=function(){return Object.keys(u.fields).forEach(function(M){return u.fields[M].modifiedSinceLastSubmit=!1})};D(void 0,function(){Y()});var Q={batch:function(M){d++,M(),d--,z(void 0),Y()},blur:function(M){var U=u.fields,k=u.formState,V=U[M];V&&(delete k.active,U[M]=ge({},V,{active:!1,touched:!0}),o?D(M,function(){z(void 0),Y()}):(z(void 0),Y()))},change:function(M,U){var k=u.fields,V=u.formState;if(De(V.values,M)!==U){_(u,M,function(){return U});var P=k[M];P&&(k[M]=ge({},P,{modified:!0,modifiedSinceLastSubmit:!!V.lastSubmittedValues})),o?(z(void 0),Y()):D(M,function(){z(void 0),Y()})}},get destroyOnUnregister(){return!!n},set destroyOnUnregister($){n=$},focus:function(M){var U=u.fields[M];U&&!U.active&&(u.formState.active=M,U.active=!0,U.visited=!0,z(void 0),Y())},mutators:T,getFieldState:function(M){var U=u.fields[M];return U&&U.lastFieldState},getRegisteredFields:function(){return Object.keys(u.fields)},getState:function(){return L()},initialize:function(M){var U=u.fields,k=u.formState,V=ge({},U),P=typeof M=="function"?M(k.values):M;a||(k.values=P);var Z=a?Object.keys(V).reduce(function(oe,te){var ce=V[te],me=ce.isEqual(De(k.values,te),De(k.initialValues||{},te));return me||(oe[te]=De(k.values,te)),oe},{}):{};k.initialValues=P,k.values=P,Object.keys(Z).forEach(function(oe){k.values=Jt(k.values,oe,Z[oe])||{}}),D(void 0,function(){z(void 0),Y()})},isValidationPaused:function(){return f},pauseValidation:function(M){M===void 0&&(M=!0),f=!0,b=M},registerField:function(M,U,k,V){k===void 0&&(k={}),u.fieldSubscribers[M]||(u.fieldSubscribers[M]={index:0,entries:{}});var P=u.fieldSubscribers[M].index++;u.fieldSubscribers[M].entries[P]={subscriber:i1(U),subscription:k,notified:!1};var Z=u.fields[M]||{active:!1,afterSubmit:V&&V.afterSubmit,beforeSubmit:V&&V.beforeSubmit,data:V&&V.data||{},isEqual:V&&V.isEqual||gO,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,name:M,touched:!1,valid:!0,validateFields:V&&V.validateFields,validators:{},validating:!1,visited:!1,blur:function(){return Q.blur(M)},change:function(ot){return Q.change(M,ot)},focus:function(){return Q.focus(M)}};Z.blur=Z.blur||function(){return Q.blur(M)},Z.change=Z.change||function(Ue){return Q.change(M,Ue)},Z.focus=Z.focus||function(){return Q.focus(M)},u.fields[M]=Z;var oe=!1,te=V&&V.silent,ce=V&&V.async,me=function(){var ot=function(){te&&u.fields[M]?z(M):(Y(),z(void 0))};v(ot,!!ce)};if(V){oe=!!(V.getValidator&&V.getValidator()),V.getValidator&&(u.fields[M].validators[P]=V.getValidator);var Ve=De(u.formState.values,M)===void 0;V.initialValue!==void 0&&(Ve||De(u.formState.values,M)===De(u.formState.initialValues,M))&&(u.formState.initialValues=Jt(u.formState.initialValues||{},M,V.initialValue),u.formState.values=Jt(u.formState.values,M,V.initialValue),D(void 0,me)),V.defaultValue!==void 0&&V.initialValue===void 0&&De(u.formState.initialValues,M)===void 0&&Ve&&(u.formState.values=Jt(u.formState.values,M,V.defaultValue))}return oe?D(void 0,me):me(),function(){var Ue=!1;u.fields[M]&&(Ue=!!(u.fields[M].validators[P]&&u.fields[M].validators[P]()),delete u.fields[M].validators[P]);var ot=!!u.fieldSubscribers[M];ot&&delete u.fieldSubscribers[M].entries[P];var Le=ot&&!Object.keys(u.fieldSubscribers[M].entries).length;Le&&(delete u.fieldSubscribers[M],delete u.fields[M],Ue&&(u.formState.errors=Jt(u.formState.errors,M,void 0)||{}),n&&(u.formState.values=Jt(u.formState.values,M,void 0,!0)||{})),te||(Ue?D(void 0,function(){Y(),z(void 0)}):Le&&Y())}},reset:function(M){M===void 0&&(M=u.formState.initialValues),u.formState.submitting&&(u.formState.resetWhileSubmitting=!0),u.formState.submitFailed=!1,u.formState.submitSucceeded=!1,delete u.formState.submitError,delete u.formState.submitErrors,delete u.formState.lastSubmittedValues,Q.initialize(M||{})},resetFieldState:function(M){u.fields[M]=ge({},u.fields[M],{active:!1,lastFieldState:void 0,modified:!1,touched:!1,valid:!0,validating:!1,visited:!1}),D(void 0,function(){z(void 0),Y()})},restart:function(M){M===void 0&&(M=u.formState.initialValues),Q.batch(function(){for(var U in u.fields)Q.resetFieldState(U),u.fields[U]=ge({},u.fields[U],{active:!1,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,touched:!1,valid:!0,validating:!1,visited:!1});Q.reset(M||{})})},resumeValidation:function(){f=!1,b=!1,p&&D(void 0,function(){z(void 0),Y()}),p=!1},setConfig:function(M,U){switch(M){case"debug":t=typeof U=="function"?U:void 0;break;case"destroyOnUnregister":n=U;break;case"initialValues":Q.initialize(U);break;case"keepDirtyOnReinitialize":a=U;break;case"mutators":l=U,U?(Object.keys(T).forEach(function(k){k in U||delete T[k]}),Object.keys(U).forEach(function(k){T[k]=x(k)})):Object.keys(T).forEach(function(k){delete T[k]});break;case"onSubmit":r=U;break;case"validate":s=U,D(void 0,function(){z(void 0),Y()});break;case"validateOnBlur":o=U;break;case"callbackScheduler":c=U;break;default:throw new Error("Unrecognised option "+M)}},setCallbackScheduler:function(M){c=M},submit:function(){var M=u.formState;if(M.submitting)return Promise.resolve(void 0);if(delete M.submitErrors,delete M.submitError,M.lastSubmittedValues=ge({},M.values),N())return H(),X(),u.formState.submitFailed=!0,Y(),z(void 0),Promise.resolve(void 0);var U=Object.keys(C);if(U.length)return Promise.all(U.map(function(te){return C[Number(te)]})).then(function(){return Q.submit()},function(te){console.error(te)});var k=W();if(k)return Promise.resolve(void 0);var V,P=!1,Z=function(ce){M.submitting=!1;var me=M.resetWhileSubmitting;return me&&(M.resetWhileSubmitting=!1),ce&&mi(ce)?(M.submitFailed=!0,M.submitSucceeded=!1,M.submitErrors=ce,M.submitError=ce[W0],H()):(me||(M.submitFailed=!1,M.submitSucceeded=!0),fe()),Y(),z(void 0),P=!0,V&&V(ce),ce};M.submitting=!0,M.submitFailed=!1,M.submitSucceeded=!1,M.lastSubmittedValues=ge({},M.values),X();var oe=r(M.values,Q,Z);if(!P){if(oe&&yh(oe))return Y(),z(void 0),oe.then(function(te){return Z(te),te},function(te){throw Z(void 0),te});if(r.length>=3)return Y(),z(void 0),new Promise(function(te){V=te});Z(oe)}return Promise.resolve(void 0)},subscribe:function(M,U){if(!M)throw new Error("No callback given.");if(!U)throw new Error("No subscription provided. What values do you want to listen to?");var k=i1(M),V=u.subscribers,P=V.index++;V.entries[P]={subscriber:k,subscription:U,notified:!1};var Z=L();return l1(k,U,Z,Z,a1,!0),function(){delete V.entries[P]}},subscribeFieldState:function(M,U,k){return Q.registerField(M,U,k)},getFieldSnapshot:function(M){var U=u.fields[M];if(U)return gh(u.formState,U)},subscribeFormState:function(M,U){return Q.subscribe(M,U)},getFormSnapshot:function(){return L()}};return Q}const bO=()=>{},SO=e=>!!(e&&typeof e.focus=="function"),EO=(e,t)=>e.find(n=>n.name&&De(t,n.name))||null,CO=()=>typeof document>"u"?[]:Array.prototype.slice.call(document.forms).reduce((e,t)=>e.concat(Array.prototype.slice.call(t).filter(SO)),[]),wO=(e=CO,t=EO)=>n=>{const a=o=>{if(!o)return;const c=t(e(),o);c&&c.focus()},i=n.submit;let l={};const r=n.subscribe(o=>{l=o},{errors:!0,submitErrors:!0}),s=()=>{const{errors:o,submitErrors:c}=l;Object.keys(o||{}).length?a(o):Object.keys(c||{}).length&&a(c)};return n.submit=()=>{const o=i.call(n);return o&&typeof o.then=="function"?o.then(s,bO):s(),o},()=>{r(),n.submit=i}},_O=e=>{const t={};return e!=null&&e.fieldName&&(e!=null&&e.message)&&(t[e.fieldName]=e.message),Object.keys(t).length>0?t:void 0},TO=e=>async t=>{try{const n=e(t);n.unwrap?await n.unwrap():await n}catch(n){return _O(n)}};var AO=["render","children","component"];function s1(e,t,n){var a=e.render,i=e.children,l=e.component,r=Ha(e,AO);if(l)return S.createElement(l,Object.assign(t,r,{children:i,render:a}));if(a){var s={};Object.defineProperties(s,Object.getOwnPropertyDescriptors(t));var o=Object.getOwnPropertyDescriptors(r);for(var c in o)c in s||Object.defineProperty(s,c,o[c]);return i!==void 0&&(s.children=i),a(s)}if(typeof i!="function")throw new Error("Must specify either a render prop, a render function as children, or a component prop to "+n);var u={};Object.defineProperties(u,Object.getOwnPropertyDescriptors(t));var d=Object.getOwnPropertyDescriptors(r);for(var f in d)f in u||Object.defineProperty(u,f,d[f]);return i(u)}function xa(e,t,n){n===void 0&&(n=function(l,r){return l===r});var a=ie.useRef(e);ie.useEffect(function(){n(e,a.current)||(t(),a.current=e)})}function OO(e){var t=ie.useRef(void 0);return t.current||(t.current=e()),t.current}var vh=function(t,n){if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),i=Object.keys(n);if(a.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),r=0;r<a.length;r++){var s=a[r];if(!l(s)||t[s]!==n[s])return!1}return!0},xO=function(t){return!!(t&&typeof t.stopPropagation=="function")},o1=S.createContext(void 0),u1=function(t,n,a){a.forEach(function(i){Object.defineProperty(t,i,{get:function(){return n[i]},enumerable:!0})})},MO=function(t,n){return u1(t,n,["active","dirty","dirtyFields","dirtySinceLastSubmit","dirtyFieldsSinceLastSubmit","error","errors","hasSubmitErrors","hasValidationErrors","initialValues","invalid","modified","modifiedSinceLastSubmit","pristine","submitError","submitErrors","submitFailed","submitSucceeded","submitting","touched","valid","validating","values","visited"])},RO=function(t,n){return u1(t,n,["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","validating","visited"])},NO="7.0.0",DO=["debug","decorators","destroyOnUnregister","form","initialValues","initialValuesEqual","keepDirtyOnReinitialize","mutators","onSubmit","subscription","validate","validateOnBlur"],zO={"final-form":pO,"react-final-form":NO},UO=n1.reduce(function(e,t){return e[t]=!0,e},{});function LO(e){var t=e.debug,n=e.decorators,a=n===void 0?[]:n,i=e.destroyOnUnregister,l=e.form,r=e.initialValues,s=e.initialValuesEqual,o=e.keepDirtyOnReinitialize,c=e.mutators,u=e.onSubmit,d=e.subscription,f=d===void 0?UO:d,p=e.validate,b=e.validateOnBlur,E=Ha(e,DO),C={debug:t,destroyOnUnregister:i,initialValues:r,keepDirtyOnReinitialize:o,mutators:c,onSubmit:u,validate:p,validateOnBlur:b},g=OO(function(){var x=l||vO(C);return x.pauseValidation(),x}),y=S.useState(function(){return g.getState()}),h=y[0],m=y[1],v=S.useRef(h);v.current=h,S.useEffect(function(){g.isValidationPaused()&&g.resumeValidation();var x=[g.subscribe(function(T){m(function(A){return vh(T,A)?A:T})},f)].concat(a?a.map(function(T){return T(g)}):[]);return function(){g.pauseValidation(),x.reverse().forEach(function(T){return T()})}},[]),xa(t,function(){g.setConfig("debug",t)}),xa(i,function(){g.destroyOnUnregister=!!i}),xa(o,function(){g.setConfig("keepDirtyOnReinitialize",o)}),xa(r,function(){g.setConfig("initialValues",r)},s||vh),xa(c,function(){g.setConfig("mutators",c)}),xa(u,function(){g.setConfig("onSubmit",u)}),xa(p,function(){g.setConfig("validate",p)}),xa(b,function(){g.setConfig("validateOnBlur",b)});var _=function(T){return T&&(typeof T.preventDefault=="function"&&T.preventDefault(),typeof T.stopPropagation=="function"&&T.stopPropagation()),g.submit()},w={form:ge({},g,{reset:function(T){xO(T)?g.reset():g.reset(T)}}),handleSubmit:_};return MO(w,h),S.createElement(o1.Provider,{value:g},s1(ge({},E,{__versions:zO}),w,"ReactFinalForm"))}function BO(e){var t=S.useContext(o1);if(!t)throw new Error(e+" must be used inside of a <Form> component");return t}var jO=!!(typeof window<"u"&&window.navigator&&window.navigator.product&&window.navigator.product==="ReactNative"),HO=function(t){var n=[];if(t)for(var a=0;a<t.length;a++){var i=t[a];i.selected&&n.push(i.value)}return n},FO=function(t,n,a,i){if(!i&&t.nativeEvent&&t.nativeEvent.text!==void 0||i&&t.nativeEvent)return t.nativeEvent.text;var l=t,r=l.target,s=r.type,o=r.value,c=r.checked;switch(s){case"checkbox":if(a!==void 0){if(c)return Array.isArray(n)?n.concat(a):[a];if(!Array.isArray(n))return n;var u=n.indexOf(a);return u<0?n:n.slice(0,u).concat(n.slice(u+1))}else return!!c;case"select-multiple":return HO(t.target.options);default:return o}};function qO(e){var t=ie.useRef(e);return ie.useEffect(function(){t.current=e}),t}function bh(e){var t=S.useRef(e);return S.useEffect(function(){t.current=e}),S.useCallback(function(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t.current.apply(null,a)},[])}var VO=e1.reduce(function(e,t){return e[t]=!0,e},{}),Sh=function(t,n){return t===void 0?"":t},kO=function(t,n){return t===""?void 0:t},QO=function(t,n){return t===n};function GO(e,t){t===void 0&&(t={});var n=t,a=n.afterSubmit,i=n.allowNull,l=n.component,r=n.data,s=n.defaultValue,o=n.format,c=o===void 0?Sh:o,u=n.formatOnBlur,d=n.initialValue,f=n.multiple,p=n.parse,b=p===void 0?kO:p,E=n.subscription,C=E===void 0?VO:E,g=n.type,y=n.validateFields,h=n.value,m=BO("useField"),v=qO(t),_=function(N,L){return m.registerField(e,N,C,{afterSubmit:a,beforeSubmit:function(){var q=v.current,G=q.beforeSubmit,Y=q.formatOnBlur,W=q.format,fe=W===void 0?Sh:W;if(Y){var X=m.getFieldState(e);if(X){var Q=X.value,$=fe(Q,e);$!==Q&&m.change(e,$)}}return G&&G()},data:r,defaultValue:s,getValidator:function(){return v.current.validate},initialValue:d,isEqual:function(q,G){return(v.current.isEqual||QO)(q,G)},silent:L,validateFields:y})},w=S.useState(function(){var H=m.getFieldState(e);if(H)return i&&H.initial===null&&H.value!==null?ge({},H,{value:null,initial:null}):H;var N=d;return l==="select"&&f&&d===void 0&&(N=[]),{active:!1,blur:function(){},change:function(){},data:r||{},dirty:!1,dirtySinceLastSubmit:!1,error:void 0,focus:function(){},initial:N,invalid:!1,length:void 0,modified:!1,modifiedSinceLastSubmit:!1,name:e,pristine:!0,submitError:void 0,submitFailed:!1,submitSucceeded:!1,submitting:!1,touched:!1,valid:!0,validating:!1,value:N,visited:!1}}),x=w[0],T=w[1];S.useEffect(function(){var H=_(function(N){T(function(L){return vh(N,L)?L:N})},!1);return H},[e,r,s,d]);var A={};RO(A,x);var O=function(){var N=x.value;return N===null&&!i&&(N=""),u?l==="input"&&(N=Sh(N)):i&&N===null||(N=c(N,e)),l==="select"&&f?Array.isArray(N)?N:[]:(g==="checkbox"||g==="radio")&&h!==void 0?h:N},R=function(){var N=x.value;if(g==="checkbox")return N=c(N,e),h===void 0?!!N:!!(Array.isArray(N)&&~N.indexOf(h));if(g==="radio")return c(N,e)===h},D={name:e,onBlur:bh(function(H){if(x.blur(),u){var N=m.getFieldState(x.name);N&&x.change(c(N.value,x.name))}}),onChange:bh(function(H){var N=H&&H.target?FO(H,x.value,h,jO):H;x.change(b(N,e))}),onFocus:bh(function(H){return x.focus()}),get value(){return O()},get checked(){return R()}};f&&(D.multiple=f),g!==void 0&&(D.type=g);var z={input:D,meta:A};return z}var $O=["afterSubmit","allowNull","beforeSubmit","children","component","data","defaultValue","format","formatOnBlur","initialValue","isEqual","multiple","name","parse","subscription","type","validate","validateFields","value"];function KO(e,t){var n=e.afterSubmit,a=e.allowNull,i=e.beforeSubmit,l=e.children,r=e.component,s=e.data,o=e.defaultValue,c=e.format,u=e.formatOnBlur,d=e.initialValue,f=e.isEqual,p=e.multiple,b=e.name,E=e.parse,C=e.subscription,g=e.type,y=e.validate,h=e.validateFields,m=e.value,v=Ha(e,$O),_=GO(b,{afterSubmit:n,allowNull:a,beforeSubmit:i,component:r,data:s,defaultValue:o,format:c,formatOnBlur:u,initialValue:d,isEqual:f,multiple:p,parse:E,subscription:C,type:g,validate:y,validateFields:h,value:m});if(typeof l=="function")return l(ge({},_,v));if(typeof r=="string"){var w=ge({},_.input);return r==="select"&&p&&!Array.isArray(w.value)&&(w.value=[]),S.createElement(r,ge({},w,{children:l,ref:t},v))}if(!b)throw new Error("prop name cannot be undefined in <Field> component");return s1(ge({children:l,component:r},v,_),{},"Field("+b+")")}var YO=S.forwardRef(KO);const PO=wO(),XO=({id:e,children:t,form:n,formRef:a,handleSubmit:i})=>{const[l,r]=S.useState(!1);a&&(a.current=n),S.useEffect(()=>{const o=()=>{const c=Object.keys(n.getState().values||{}).length;r(c===1)};return n.subscribe(o,{values:!0})},[n]);const s=o=>{l&&o.key===we.ENTER&&!o.shiftKey&&n.submit()};return B.jsx("form",{id:e,onSubmit:i,onKeyDown:s,children:t})},IO=({id:e,children:t,onSubmit:n,formRef:a,destroyOnUnregister:i=!0})=>B.jsx(LO,{destroyOnUnregister:i,onSubmit:n?TO(n):()=>{},decorators:[PO],children:({handleSubmit:l,form:r})=>B.jsx(XO,{id:e,form:r,formRef:a,handleSubmit:l,children:t})}),Eh=({condition:e,children:t})=>e?t:null,c1=S.createContext({parentLoaderVisible:!1}),ZO=()=>B.jsx(qt,{name:"animated/sg-logo",size:"120",multicolor:!0}),f1=({children:e,isLoadingAPIs:t=[],hideChildrenWhenLoading:n,position:a="absolute",borderRadius:i="default",...l})=>B.jsx(c1.Consumer,{children:({parentLoaderVisible:r})=>{const s=!!t.filter(Boolean).length,o=s||r,c=s&&!r,u=!(n&&c);return B.jsxs(c1.Provider,{value:{parentLoaderVisible:o},children:[B.jsx(Eh,{condition:u,children:e}),B.jsx(Eh,{condition:c,children:B.jsx(Kp,{position:a,borderRadius:i,renderCustomIcon:ZO,delay:50,...l})})]})}});var Ch={exports:{}},bl=typeof Reflect=="object"?Reflect:null,d1=bl&&typeof bl.apply=="function"?bl.apply:function(t,n,a){return Function.prototype.apply.call(t,n,a)},du;bl&&typeof bl.ownKeys=="function"?du=bl.ownKeys:Object.getOwnPropertySymbols?du=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:du=function(t){return Object.getOwnPropertyNames(t)};function JO(e){console&&console.warn&&console.warn(e)}var h1=Number.isNaN||function(t){return t!==t};function Ce(){Ce.init.call(this)}Ch.exports=Ce,Ch.exports.once=n5,Ce.EventEmitter=Ce,Ce.prototype._events=void 0,Ce.prototype._eventsCount=0,Ce.prototype._maxListeners=void 0;var m1=10;function hu(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ce,"defaultMaxListeners",{enumerable:!0,get:function(){return m1},set:function(e){if(typeof e!="number"||e<0||h1(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");m1=e}}),Ce.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ce.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||h1(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function p1(e){return e._maxListeners===void 0?Ce.defaultMaxListeners:e._maxListeners}Ce.prototype.getMaxListeners=function(){return p1(this)},Ce.prototype.emit=function(t){for(var n=[],a=1;a<arguments.length;a++)n.push(arguments[a]);var i=t==="error",l=this._events;if(l!==void 0)i=i&&l.error===void 0;else if(!i)return!1;if(i){var r;if(n.length>0&&(r=n[0]),r instanceof Error)throw r;var s=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw s.context=r,s}var o=l[t];if(o===void 0)return!1;if(typeof o=="function")d1(o,this,n);else for(var c=o.length,u=S1(o,c),a=0;a<c;++a)d1(u[a],this,n);return!0};function g1(e,t,n,a){var i,l,r;if(hu(n),l=e._events,l===void 0?(l=e._events=Object.create(null),e._eventsCount=0):(l.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),l=e._events),r=l[t]),r===void 0)r=l[t]=n,++e._eventsCount;else if(typeof r=="function"?r=l[t]=a?[n,r]:[r,n]:a?r.unshift(n):r.push(n),i=p1(e),i>0&&r.length>i&&!r.warned){r.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=r.length,JO(s)}return e}Ce.prototype.addListener=function(t,n){return g1(this,t,n,!1)},Ce.prototype.on=Ce.prototype.addListener,Ce.prototype.prependListener=function(t,n){return g1(this,t,n,!0)};function WO(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y1(e,t,n){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=WO.bind(a);return i.listener=n,a.wrapFn=i,i}Ce.prototype.once=function(t,n){return hu(n),this.on(t,y1(this,t,n)),this},Ce.prototype.prependOnceListener=function(t,n){return hu(n),this.prependListener(t,y1(this,t,n)),this},Ce.prototype.removeListener=function(t,n){var a,i,l,r,s;if(hu(n),i=this._events,i===void 0)return this;if(a=i[t],a===void 0)return this;if(a===n||a.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,a.listener||n));else if(typeof a!="function"){for(l=-1,r=a.length-1;r>=0;r--)if(a[r]===n||a[r].listener===n){s=a[r].listener,l=r;break}if(l<0)return this;l===0?a.shift():e5(a,l),a.length===1&&(i[t]=a[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||n)}return this},Ce.prototype.off=Ce.prototype.removeListener,Ce.prototype.removeAllListeners=function(t){var n,a,i;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[t]),this;if(arguments.length===0){var l=Object.keys(a),r;for(i=0;i<l.length;++i)r=l[i],r!=="removeListener"&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=a[t],typeof n=="function")this.removeListener(t,n);else if(n!==void 0)for(i=n.length-1;i>=0;i--)this.removeListener(t,n[i]);return this};function v1(e,t,n){var a=e._events;if(a===void 0)return[];var i=a[t];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?t5(i):S1(i,i.length)}Ce.prototype.listeners=function(t){return v1(this,t,!0)},Ce.prototype.rawListeners=function(t){return v1(this,t,!1)},Ce.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):b1.call(e,t)},Ce.prototype.listenerCount=b1;function b1(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Ce.prototype.eventNames=function(){return this._eventsCount>0?du(this._events):[]};function S1(e,t){for(var n=new Array(t),a=0;a<t;++a)n[a]=e[a];return n}function e5(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function t5(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function n5(e,t){return new Promise(function(n,a){function i(r){e.removeListener(t,l),a(r)}function l(){typeof e.removeListener=="function"&&e.removeListener("error",i),n([].slice.call(arguments))}E1(e,t,l,{once:!0}),t!=="error"&&a5(e,i,{once:!0})})}function a5(e,t,n){typeof e.on=="function"&&E1(e,"error",t,n)}function E1(e,t,n,a){if(typeof e.on=="function")a.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(l){a.once&&e.removeEventListener(t,i),n(l)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var C1=Ch.exports;function i5(e){return e.startsWith("{{/")?{type:"componentClose",value:e.replace(/\W/g,"")}:e.endsWith("/}}")?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.startsWith("{{")?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}function l5(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(i5)}function r5(e,t){const n=t[e];let a=0;for(let i=e+1;i<t.length;i++){const l=t[i];if(l.value===n.value){if(l.type==="componentOpen"){a++;continue}if(l.type==="componentClose"){if(a===0)return i;a--}}}throw new Error("Missing closing component token `"+n.value+"`")}function wh(e,t){let n=[],a,i;for(let l=0;l<e.length;l++){const r=e[l];if(r.type==="string"){n.push(r.value);continue}if(t[r.value]===void 0)throw new Error(`Invalid interpolation, missing component node: \`${r.value}\``);if(typeof t[r.value]!="object")throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${r.value}\``);if(r.type==="componentClose")throw new Error(`Missing opening component token: \`${r.value}\``);if(r.type==="componentOpen"){a=t[r.value],i=l;break}n.push(t[r.value])}if(a){const l=r5(i,e),r=e.slice(i+1,l),s=wh(r,t),o=S.cloneElement(a,{},s);if(n.push(o),l<e.length-1){const c=e.slice(l+1),u=wh(c,t);n=n.concat(u)}}return n=n.filter(Boolean),n.length===0?null:n.length===1?n[0]:S.createElement(S.Fragment,null,...n)}function s5(e){const{mixedString:t,components:n,throwErrors:a}=e;if(!n)return t;if(typeof n!="object"){if(a)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const i=l5(t);try{return wh(i,n)}catch(l){if(a)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${l.message}\``);return t}}var o5=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function u5(e,...t){var n=0;return Array.isArray(t[0])&&(t=t[0]),e.replace(o5,function(){var a,i,l,r,s;return a=arguments[3],i=arguments[5],l=arguments[7],r=arguments[9],r==="%"?"%":(l==="*"&&(l=t[n],n++),i===void 0?(a===void 0&&(a=n+1),n++,s=t[a-1]):t[0]&&typeof t[0]=="object"&&t[0].hasOwnProperty(i)&&(s=t[0][i]),r==="f"?s=parseFloat(s)||0:r==="d"&&(s=parseInt(s)||0),l!==void 0&&(r==="f"?s=s.toFixed(l):r==="s"&&(s=s.substr(0,l))),s??"")})}var _h={exports:{}},Th,w1;function c5(){if(w1)return Th;w1=1;var e=1e3,t=e*60,n=t*60,a=n*24,i=a*7,l=a*365.25;Th=function(u,d){d=d||{};var f=typeof u;if(f==="string"&&u.length>0)return r(u);if(f==="number"&&isFinite(u))return d.long?o(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function r(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var f=parseFloat(d[1]),p=(d[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return f*l;case"weeks":case"week":case"w":return f*i;case"days":case"day":case"d":return f*a;case"hours":case"hour":case"hrs":case"hr":case"h":return f*n;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function s(u){var d=Math.abs(u);return d>=a?Math.round(u/a)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function o(u){var d=Math.abs(u);return d>=a?c(u,d,a,"day"):d>=n?c(u,d,n,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,f,p){var b=d>=f*1.5;return Math.round(u/f)+" "+p+(b?"s":"")}return Th}function f5(e){n.debug=n,n.default=n,n.coerce=o,n.disable=r,n.enable=i,n.enabled=s,n.humanize=c5(),n.destroy=c,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let f=0;f<u.length;f++)d=(d<<5)-d+u.charCodeAt(f),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,f=null,p,b;function E(...C){if(!E.enabled)return;const g=E,y=Number(new Date),h=y-(d||y);g.diff=h,g.prev=d,g.curr=y,d=y,C[0]=n.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let m=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(_,w)=>{if(_==="%%")return"%";m++;const x=n.formatters[w];if(typeof x=="function"){const T=C[m];_=x.call(g,T),C.splice(m,1),m--}return _}),n.formatArgs.call(g,C),(g.log||n.log).apply(g,C)}return E.namespace=u,E.useColors=n.useColors(),E.color=n.selectColor(u),E.extend=a,E.destroy=n.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==n.namespaces&&(p=n.namespaces,b=n.enabled(u)),b),set:C=>{f=C}}),typeof n.init=="function"&&n.init(E),E}function a(u,d){const f=n(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function i(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];const d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const f of d)f[0]==="-"?n.skips.push(f.slice(1)):n.names.push(f)}function l(u,d){let f=0,p=0,b=-1,E=0;for(;f<u.length;)if(p<d.length&&(d[p]===u[f]||d[p]==="*"))d[p]==="*"?(b=p,E=f,p++):(f++,p++);else if(b!==-1)p=b+1,E++,f=E;else return!1;for(;p<d.length&&d[p]==="*";)p++;return p===d.length}function r(){const u=[...n.names,...n.skips.map(d=>"-"+d)].join(",");return n.enable(""),u}function s(u){for(const d of n.skips)if(l(u,d))return!1;for(const d of n.names)if(l(u,d))return!0;return!1}function o(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var d5=f5;(function(e,t){t.formatArgs=a,t.save=i,t.load=l,t.useColors=n,t.storage=r(),t.destroy=(()=>{let o=!1;return()=>{o||(o=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let o;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(o=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(o[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(o){if(o[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+o[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;o.splice(1,0,c,"color: inherit");let u=0,d=0;o[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(d=u))}),o.splice(d,0,c)}t.log=console.debug||console.log||(()=>{});function i(o){try{o?t.storage.setItem("debug",o):t.storage.removeItem("debug")}catch{}}function l(){let o;try{o=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!o&&typeof process<"u"&&"env"in process&&(o=process.env.DEBUG),o}function r(){try{return localStorage}catch{}}e.exports=d5(t);const{formatters:s}=e.exports;s.j=function(o){try{return JSON.stringify(o)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(_h,_h.exports);var h5=_h.exports;const m5=Ft(h5);var be={},_1=T1;function T1(e,t){if(!e)throw new Error(t||"Assertion failed")}T1.equal=function(t,n,a){if(t!=n)throw new Error(a||"Assertion failed: "+t+" != "+n)};var Ah={exports:{}};typeof Object.create=="function"?Ah.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Ah.exports=function(t,n){if(n){t.super_=n;var a=function(){};a.prototype=n.prototype,t.prototype=new a,t.prototype.constructor=t}};var A1=Ah.exports,p5=_1,g5=A1;be.inherits=g5;function y5(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function v5(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var a=0,i=0;i<e.length;i++){var l=e.charCodeAt(i);l<128?n[a++]=l:l<2048?(n[a++]=l>>6|192,n[a++]=l&63|128):y5(e,i)?(l=65536+((l&1023)<<10)+(e.charCodeAt(++i)&1023),n[a++]=l>>18|240,n[a++]=l>>12&63|128,n[a++]=l>>6&63|128,n[a++]=l&63|128):(n[a++]=l>>12|224,n[a++]=l>>6&63|128,n[a++]=l&63|128)}else for(i=0;i<e.length;i++)n[i]=e[i]|0;return n}be.toArray=v5;function b5(e){for(var t="",n=0;n<e.length;n++)t+=x1(e[n].toString(16));return t}be.toHex=b5;function O1(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}be.htonl=O1;function S5(e,t){for(var n="",a=0;a<e.length;a++){var i=e[a];t==="little"&&(i=O1(i)),n+=M1(i.toString(16))}return n}be.toHex32=S5;function x1(e){return e.length===1?"0"+e:e}be.zero2=x1;function M1(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}be.zero8=M1;function E5(e,t,n,a){var i=n-t;p5(i%4===0);for(var l=new Array(i/4),r=0,s=t;r<l.length;r++,s+=4){var o;a==="big"?o=e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:o=e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],l[r]=o>>>0}return l}be.join32=E5;function C5(e,t){for(var n=new Array(e.length*4),a=0,i=0;a<e.length;a++,i+=4){var l=e[a];t==="big"?(n[i]=l>>>24,n[i+1]=l>>>16&255,n[i+2]=l>>>8&255,n[i+3]=l&255):(n[i+3]=l>>>24,n[i+2]=l>>>16&255,n[i+1]=l>>>8&255,n[i]=l&255)}return n}be.split32=C5;function w5(e,t){return e>>>t|e<<32-t}be.rotr32=w5;function _5(e,t){return e<<t|e>>>32-t}be.rotl32=_5;function T5(e,t){return e+t>>>0}be.sum32=T5;function A5(e,t,n){return e+t+n>>>0}be.sum32_3=A5;function O5(e,t,n,a){return e+t+n+a>>>0}be.sum32_4=O5;function x5(e,t,n,a,i){return e+t+n+a+i>>>0}be.sum32_5=x5;function M5(e,t,n,a){var i=e[t],l=e[t+1],r=a+l>>>0,s=(r<a?1:0)+n+i;e[t]=s>>>0,e[t+1]=r}be.sum64=M5;function R5(e,t,n,a){var i=t+a>>>0,l=(i<t?1:0)+e+n;return l>>>0}be.sum64_hi=R5;function N5(e,t,n,a){var i=t+a;return i>>>0}be.sum64_lo=N5;function D5(e,t,n,a,i,l,r,s){var o=0,c=t;c=c+a>>>0,o+=c<t?1:0,c=c+l>>>0,o+=c<l?1:0,c=c+s>>>0,o+=c<s?1:0;var u=e+n+i+r+o;return u>>>0}be.sum64_4_hi=D5;function z5(e,t,n,a,i,l,r,s){var o=t+a+l+s;return o>>>0}be.sum64_4_lo=z5;function U5(e,t,n,a,i,l,r,s,o,c){var u=0,d=t;d=d+a>>>0,u+=d<t?1:0,d=d+l>>>0,u+=d<l?1:0,d=d+s>>>0,u+=d<s?1:0,d=d+c>>>0,u+=d<c?1:0;var f=e+n+i+r+o+u;return f>>>0}be.sum64_5_hi=U5;function L5(e,t,n,a,i,l,r,s,o,c){var u=t+a+l+s+c;return u>>>0}be.sum64_5_lo=L5;function B5(e,t,n){var a=t<<32-n|e>>>n;return a>>>0}be.rotr64_hi=B5;function j5(e,t,n){var a=e<<32-n|t>>>n;return a>>>0}be.rotr64_lo=j5;function H5(e,t,n){return e>>>n}be.shr64_hi=H5;function F5(e,t,n){var a=e<<32-n|t>>>n;return a>>>0}be.shr64_lo=F5;var R1={},N1=be,q5=_1;function mu(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}R1.BlockHash=mu,mu.prototype.update=function(t,n){if(t=N1.toArray(t,n),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var a=t.length%this._delta8;this.pending=t.slice(t.length-a,t.length),this.pending.length===0&&(this.pending=null),t=N1.join32(t,0,t.length-a,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},mu.prototype.digest=function(t){return this.update(this._pad()),q5(this.pending===null),this._digest(t)},mu.prototype._pad=function(){var t=this.pendingTotal,n=this._delta8,a=n-(t+this.padLength)%n,i=new Array(a+this.padLength);i[0]=128;for(var l=1;l<a;l++)i[l]=0;if(t<<=3,this.endian==="big"){for(var r=8;r<this.padLength;r++)i[l++]=0;i[l++]=0,i[l++]=0,i[l++]=0,i[l++]=0,i[l++]=t>>>24&255,i[l++]=t>>>16&255,i[l++]=t>>>8&255,i[l++]=t&255}else for(i[l++]=t&255,i[l++]=t>>>8&255,i[l++]=t>>>16&255,i[l++]=t>>>24&255,i[l++]=0,i[l++]=0,i[l++]=0,i[l++]=0,r=8;r<this.padLength;r++)i[l++]=0;return i};var Kn={},V5=be,bn=V5.rotr32;function k5(e,t,n,a){if(e===0)return D1(t,n,a);if(e===1||e===3)return U1(t,n,a);if(e===2)return z1(t,n,a)}Kn.ft_1=k5;function D1(e,t,n){return e&t^~e&n}Kn.ch32=D1;function z1(e,t,n){return e&t^e&n^t&n}Kn.maj32=z1;function U1(e,t,n){return e^t^n}Kn.p32=U1;function Q5(e){return bn(e,2)^bn(e,13)^bn(e,22)}Kn.s0_256=Q5;function G5(e){return bn(e,6)^bn(e,11)^bn(e,25)}Kn.s1_256=G5;function $5(e){return bn(e,7)^bn(e,18)^e>>>3}Kn.g0_256=$5;function K5(e){return bn(e,17)^bn(e,19)^e>>>10}Kn.g1_256=K5;var Sl=be,Y5=R1,P5=Kn,Oh=Sl.rotl32,Kr=Sl.sum32,X5=Sl.sum32_5,I5=P5.ft_1,L1=Y5.BlockHash,Z5=[1518500249,1859775393,2400959708,3395469782];function Sn(){if(!(this instanceof Sn))return new Sn;L1.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Sl.inherits(Sn,L1);var J5=Sn;Sn.blockSize=512,Sn.outSize=160,Sn.hmacStrength=80,Sn.padLength=64,Sn.prototype._update=function(t,n){for(var a=this.W,i=0;i<16;i++)a[i]=t[n+i];for(;i<a.length;i++)a[i]=Oh(a[i-3]^a[i-8]^a[i-14]^a[i-16],1);var l=this.h[0],r=this.h[1],s=this.h[2],o=this.h[3],c=this.h[4];for(i=0;i<a.length;i++){var u=~~(i/20),d=X5(Oh(l,5),I5(u,r,s,o),c,a[i],Z5[u]);c=o,o=s,s=Oh(r,30),r=l,l=d}this.h[0]=Kr(this.h[0],l),this.h[1]=Kr(this.h[1],r),this.h[2]=Kr(this.h[2],s),this.h[3]=Kr(this.h[3],o),this.h[4]=Kr(this.h[4],c)},Sn.prototype._digest=function(t){return t==="hex"?Sl.toHex32(this.h,"big"):Sl.split32(this.h,"big")};const W5=Ft(J5);var B1=C1,ex=A1,tx=Ht;function Ht(e){if(!(this instanceof Ht))return new Ht(e);typeof e=="number"&&(e={max:e}),e||(e={}),B1.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}ex(Ht,B1.EventEmitter),Object.defineProperty(Ht.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),Ht.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},Ht.prototype.remove=function(e){if(typeof e!="string"&&(e=""+e),!!this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},Ht.prototype._unlink=function(e,t,n){this.length--,this.length===0?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},Ht.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},Ht.prototype.set=function(e,t){typeof e!="string"&&(e=""+e);var n;if(this.cache.hasOwnProperty(e)){if(n=this.cache[e],n.value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},Ht.prototype._checkAge=function(e,t){return this.maxAge&&Date.now()-t.modified>this.maxAge?(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1):!0},Ht.prototype.get=function(e){if(typeof e!="string"&&(e=""+e),!!this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},Ht.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}};const nx=Ft(tx);var xh,j1,Yr,H1;xh={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},j1=["(","?"],Yr={")":["("],":":["?","?:"]},H1=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;function ax(e){for(var t=[],n=[],a,i,l,r;a=e.match(H1);){for(i=a[0],l=e.substr(0,a.index).trim(),l&&t.push(l);r=n.pop();){if(Yr[i]){if(Yr[i][0]===r){i=Yr[i][1]||i;break}}else if(j1.indexOf(r)>=0||xh[r]<xh[i]){n.push(r);break}t.push(r)}Yr[i]||n.push(i),e=e.substr(a.index+i.length)}return e=e.trim(),e&&t.push(e),t.concat(n.reverse())}var ix={"!":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,n){if(e)throw t;return n}};function lx(e,t){var n=[],a,i,l,r,s,o;for(a=0;a<e.length;a++){if(s=e[a],r=ix[s],r){for(i=r.length,l=Array(i);i--;)l[i]=n.pop();try{o=r.apply(null,l)}catch(c){return c}}else t.hasOwnProperty(s)?o=t[s]:o=+s;n.push(o)}return n[0]}function rx(e){var t=ax(e);return function(n){return lx(t,n)}}function sx(e){var t=rx(e);return function(n){return+t({n})}}var F1={contextDelimiter:"",onMissingKey:null};function ox(e){var t,n,a;for(t=e.split(";"),n=0;n<t.length;n++)if(a=t[n].trim(),a.indexOf("plural=")===0)return a.substr(7)}function Mh(e,t){var n;this.data=e,this.pluralForms={},this.options={};for(n in F1)this.options[n]=t!==void 0&&n in t?t[n]:F1[n]}Mh.prototype.getPluralForm=function(e,t){var n=this.pluralForms[e],a,i,l;return n||(a=this.data[e][""],l=a["Plural-Forms"]||a["plural-forms"]||a.plural_forms,typeof l!="function"&&(i=ox(a["Plural-Forms"]||a["plural-forms"]||a.plural_forms),l=sx(i)),n=this.pluralForms[e]=l),n(t)},Mh.prototype.dcnpgettext=function(e,t,n,a,i){var l,r,s;return i===void 0?l=0:l=this.getPluralForm(e,i),r=n,t&&(r=t+this.options.contextDelimiter+n),s=this.data[e][r],s&&s[l]?s[l]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),l===0?n:a)};const q1=new Map;function Rh({locale:e,fallbackLocale:t="en",options:n,retries:a=1}){const i=JSON.stringify([e,n]);try{return q1.get(i)??q1.set(i,new Intl.NumberFormat(e,n)).get(i)}catch(l){if(console.warn(`Intl.NumberFormat was called with a non-existent locale "${e}"; falling back to ${t}`),a)return Rh({locale:t,options:n,retries:a-1});throw l}}const V1="USD",ux={AED:{symbol:"د.إ.‏"},AFN:{symbol:"؋"},ALL:{symbol:"Lek"},AMD:{symbol:"֏"},ANG:{symbol:"ƒ"},AOA:{symbol:"Kz"},ARS:{symbol:"$"},AUD:{symbol:"A$"},AWG:{symbol:"ƒ"},AZN:{symbol:"₼"},BAM:{symbol:"КМ"},BBD:{symbol:"Bds$"},BDT:{symbol:"৳"},BGN:{symbol:"лв."},BHD:{symbol:"د.ب.‏"},BIF:{symbol:"FBu"},BMD:{symbol:"$"},BND:{symbol:"$"},BOB:{symbol:"Bs"},BRL:{symbol:"R$"},BSD:{symbol:"$"},BTC:{symbol:"Ƀ"},BTN:{symbol:"Nu."},BWP:{symbol:"P"},BYR:{symbol:"р."},BZD:{symbol:"BZ$"},CAD:{symbol:"C$"},CDF:{symbol:"FC"},CHF:{symbol:"CHF"},CLP:{symbol:"$"},CNY:{symbol:"¥"},COP:{symbol:"$"},CRC:{symbol:"₡"},CUC:{symbol:"CUC"},CUP:{symbol:"$MN"},CVE:{symbol:"$"},CZK:{symbol:"Kč"},DJF:{symbol:"Fdj"},DKK:{symbol:"kr."},DOP:{symbol:"RD$"},DZD:{symbol:"د.ج.‏"},EGP:{symbol:"ج.م.‏"},ERN:{symbol:"Nfk"},ETB:{symbol:"ETB"},EUR:{symbol:"€"},FJD:{symbol:"FJ$"},FKP:{symbol:"£"},GBP:{symbol:"£"},GEL:{symbol:"Lari"},GHS:{symbol:"₵"},GIP:{symbol:"£"},GMD:{symbol:"D"},GNF:{symbol:"FG"},GTQ:{symbol:"Q"},GYD:{symbol:"G$"},HKD:{symbol:"HK$"},HNL:{symbol:"L."},HRK:{symbol:"kn"},HTG:{symbol:"G"},HUF:{symbol:"Ft"},IDR:{symbol:"Rp"},ILS:{symbol:"₪"},INR:{symbol:"₹"},IQD:{symbol:"د.ع.‏"},IRR:{symbol:"﷼"},ISK:{symbol:"kr."},JMD:{symbol:"J$"},JOD:{symbol:"د.ا.‏"},JPY:{symbol:"¥"},KES:{symbol:"S"},KGS:{symbol:"сом"},KHR:{symbol:"៛"},KMF:{symbol:"CF"},KPW:{symbol:"₩"},KRW:{symbol:"₩"},KWD:{symbol:"د.ك.‏"},KYD:{symbol:"$"},KZT:{symbol:"₸"},LAK:{symbol:"₭"},LBP:{symbol:"ل.ل.‏"},LKR:{symbol:"₨"},LRD:{symbol:"L$"},LSL:{symbol:"M"},LYD:{symbol:"د.ل.‏"},MAD:{symbol:"د.م.‏"},MDL:{symbol:"lei"},MGA:{symbol:"Ar"},MKD:{symbol:"ден."},MMK:{symbol:"K"},MNT:{symbol:"₮"},MOP:{symbol:"MOP$"},MRO:{symbol:"UM"},MTL:{symbol:"₤"},MUR:{symbol:"₨"},MVR:{symbol:"MVR"},MWK:{symbol:"MK"},MXN:{symbol:"MX$"},MYR:{symbol:"RM"},MZN:{symbol:"MT"},NAD:{symbol:"N$"},NGN:{symbol:"₦"},NIO:{symbol:"C$"},NOK:{symbol:"kr"},NPR:{symbol:"₨"},NZD:{symbol:"NZ$"},OMR:{symbol:"﷼"},PAB:{symbol:"B/."},PEN:{symbol:"S/."},PGK:{symbol:"K"},PHP:{symbol:"₱"},PKR:{symbol:"₨"},PLN:{symbol:"zł"},PYG:{symbol:"₲"},QAR:{symbol:"﷼"},RON:{symbol:"lei"},RSD:{symbol:"Дин."},RUB:{symbol:"₽"},RWF:{symbol:"RWF"},SAR:{symbol:"﷼"},SBD:{symbol:"S$"},SCR:{symbol:"₨"},SDD:{symbol:"LSd"},SDG:{symbol:"£‏"},SEK:{symbol:"kr"},SGD:{symbol:"S$"},SHP:{symbol:"£"},SLL:{symbol:"Le"},SOS:{symbol:"S"},SRD:{symbol:"$"},STD:{symbol:"Db"},SVC:{symbol:"₡"},SYP:{symbol:"£"},SZL:{symbol:"E"},THB:{symbol:"฿"},TJS:{symbol:"TJS"},TMT:{symbol:"m"},TND:{symbol:"د.ت.‏"},TOP:{symbol:"T$"},TRY:{symbol:"TL"},TTD:{symbol:"TT$"},TVD:{symbol:"$T"},TWD:{symbol:"NT$"},TZS:{symbol:"TSh"},UAH:{symbol:"₴"},UGX:{symbol:"USh"},USD:{},UYU:{symbol:"$U"},UZS:{symbol:"сўм"},VEB:{symbol:"Bs."},VEF:{symbol:"Bs. F."},VND:{symbol:"₫"},VUV:{symbol:"VT"},WST:{symbol:"WS$"},XAF:{symbol:"F"},XCD:{symbol:"$"},XOF:{symbol:"F"},XPF:{symbol:"F"},YER:{symbol:"﷼"},ZAR:{symbol:"R"},ZMW:{symbol:"ZK"},WON:{symbol:"₩"}};function Nh(e,t){return e==="USD"&&t&&t!==""&&t!=="US"?{symbol:"US$"}:ux[e]}function k1(e,t){return Nh(e,t)?e:(console.warn(`getValidCurrency was called with a non-existent currency "${e}"; falling back to ${V1}`),V1)}function Dh({number:e,currency:t,browserSafeLocale:n,forceLatin:a=!0,stripZeros:i,signForPositive:l}){const r=`${n}${a?"-u-nu-latn":""}`,s={style:"currency",currency:t,...i&&Number.isInteger(e)&&{maximumFractionDigits:0,minimumFractionDigits:0},...l&&{signDisplay:"exceptZero"}};return Rh({locale:r,options:s})}function Q1(e,t,n){return Dh({number:0,currency:t,browserSafeLocale:e,forceLatin:n}).resolvedOptions().maximumFractionDigits}function G1(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}function $1(e,t,n){if(isNaN(e))return console.warn("formatCurrency was called with NaN"),0;if(n){Number.isInteger(e)||console.warn("formatCurrency was called with isSmallestUnit and a float which will be rounded",e);const a=10**t;return G1(Math.round(e)/a,t)}return G1(e,t)}const cx=({number:e,browserSafeLocale:t,currency:n,stripZeros:a,isSmallestUnit:i,signForPositive:l,geoLocation:r,forceLatin:s})=>{const o=k1(n,r),c=Nh(o,r),u=Q1(t,o,s);if(i&&typeof u>"u")throw new Error(`Could not determine currency precision for ${o} in ${t}`);const d=$1(e,u??0,i);return Dh({number:d,currency:o,browserSafeLocale:t,forceLatin:s,stripZeros:a,signForPositive:l}).formatToParts(d).reduce((b,E)=>{switch(E.type){case"currency":return c!=null&&c.symbol?b+c.symbol:b+E.value;default:return b+E.value}},"")},fx=({number:e,browserSafeLocale:t,currency:n,stripZeros:a,isSmallestUnit:i,signForPositive:l,geoLocation:r,forceLatin:s})=>{const o=k1(n,r),c=Nh(o,r),u=Q1(t,o,s),d=$1(e,u??0,i),p=Dh({number:d,currency:o,browserSafeLocale:t,forceLatin:s,stripZeros:a,signForPositive:l}).formatToParts(d);let b="",E="$",C="before",g=!1,y=!1,h="",m="";p.forEach(_=>{switch(_.type){case"currency":E=(c==null?void 0:c.symbol)??_.value,g&&(C="after");return;case"group":h+=_.value,g=!0;return;case"decimal":m+=_.value,g=!0,y=!0;return;case"integer":h+=_.value,g=!0;return;case"fraction":m+=_.value,g=!0,y=!0;return;case"minusSign":b="-";return;case"plusSign":b="+";return}});const v=!Number.isInteger(d)&&y;return{sign:b,symbol:E,symbolPosition:C,integer:h,fraction:m,hasNonZeroFraction:v}},K1=({number:e,browserSafeLocale:t,decimals:n=0,forceLatin:a=!0,numberFormatOptions:i={}})=>{var s;const l=`${t}${a?"-u-nu-latn":""}`,r={minimumFractionDigits:n,maximumFractionDigits:n,...i};try{return(s=Rh({locale:l,options:r}))==null?void 0:s.format(e)}catch{return String(e)}},dx=({numberFormatOptions:e={},...t})=>K1({...t,numberFormatOptions:{notation:"compact",maximumFractionDigits:1,...e}}),hx="https://public-api.wordpress.com/geo/",mx=m5("i18n-calypso"),Y1="messages",Pr=[function(e){return e}],pu={};function Ma(){Te.throwErrors&&typeof window<"u"&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function P1(e){return Array.prototype.slice.call(e)}function X1(e){const t=e[0];(typeof t!="string"||e.length>3||e.length>2&&typeof e[1]=="object"&&typeof e[2]=="object")&&Ma("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",P1(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),e.length===2&&typeof t=="string"&&typeof e[1]=="string"&&Ma("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",P1(e));let n={};for(let a=0;a<e.length;a++)typeof e[a]=="object"&&(n=e[a]);if(typeof t=="string"?n.original=t:typeof n.original=="object"&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),typeof e[1]=="string"&&(n.plural=e[1]),typeof n.original>"u")throw new Error("Translate called without a `string` value as first argument.");return n}function I1(e,t){return e.dcnpgettext(Y1,t.context,t.original,t.plural,t.count)}function Z1(e,t){for(let n=Pr.length-1;n>=0;n--){const a=Pr[n](Object.assign({},t)),i=a.context?a.context+""+a.original:a.original;if(e.state.locale[i])return I1(e.state.tannin,a)}return null}function Te(){if(!(this instanceof Te))return new Te;this.defaultLocaleSlug="en",this.geoLocation="",this.defaultPluralForms=e=>e===1?0:1,this.state={tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:nx({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new C1.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}Te.throwErrors=!1,Te.prototype.geolocateCurrencySymbol=async function(){var t;const e=await((t=globalThis.fetch)==null?void 0:t.call(globalThis,hx).then(n=>n.json()).catch(n=>{Ma("Fetching geolocation for format-currency failed.",n)}));this.geoLocation=typeof(e==null?void 0:e.country_short)=="string"?e.country_short:""},Te.prototype.on=function(...e){this.stateObserver.on(...e)},Te.prototype.off=function(...e){this.stateObserver.off(...e)},Te.prototype.emit=function(...e){this.stateObserver.emit(...e)},Te.prototype.numberFormat=function(e,{decimals:t=0,forceLatin:n=!0,numberFormatOptions:a={}}={}){const i=this.getBrowserSafeLocale();return typeof e>"u"||e===null?(Ma("numberFormat() requires a defined and non-null value as the first argument"),e):K1({number:e,browserSafeLocale:i,decimals:t,forceLatin:n,numberFormatOptions:a})},Te.prototype.numberFormatCompact=function(e,{decimals:t=0,forceLatin:n=!0,numberFormatOptions:a={}}={}){const i=this.getBrowserSafeLocale();return typeof e>"u"||e===null?(Ma("numberFormat() requires a defined and non-null value as the first argument"),e):dx({number:e,browserSafeLocale:i,decimals:t,forceLatin:n,numberFormatOptions:a})},Te.prototype.formatCurrency=function(e,t,{stripZeros:n=!1,isSmallestUnit:a=!1,signForPositive:i=!1,forceLatin:l=!0}={}){const r=this.getBrowserSafeLocale(),s=this.geoLocation;return typeof e>"u"||e===null?(Ma("numberFormatCurrency() requires a defined and non-null value as the first argument"),e):cx({number:e,currency:t,browserSafeLocale:r,stripZeros:n,isSmallestUnit:a,signForPositive:i,geoLocation:s,forceLatin:l})},Te.prototype.getCurrencyObject=function(e,t,{stripZeros:n=!1,isSmallestUnit:a=!1,signForPositive:i=!1,forceLatin:l=!0}={}){const r=this.getBrowserSafeLocale(),s=this.geoLocation;return typeof e>"u"||e===null?(Ma("getCurrencyObject() requires a defined and non-null value as the first argument"),e):fx({number:e,currency:t,browserSafeLocale:r,stripZeros:n,isSmallestUnit:a,signForPositive:i,geoLocation:s,forceLatin:l})},Te.prototype.getBrowserSafeLocale=function(){var e;return((e=this.getLocaleVariant())==null?void 0:e.split("_")[0])??this.getLocaleSlug()},Te.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},Te.prototype.setLocale=function(e){var t,n,a;if(e&&e[""]&&e[""]["key-hash"]){const i=e[""]["key-hash"],l=function(s,o){const c=o===!1?"":String(o);if(typeof pu[c+s]<"u")return pu[c+s];const u=W5().update(s).digest("hex");return o?pu[c+s]=u.substr(0,o):pu[c+s]=u},r=function(s){return function(o){return o.context?(o.original=l(o.context+""+o.original,s),delete o.context):o.original=l(o.original,s),o}};if(i.substr(0,4)==="sha1")if(i.length===4)Pr.push(r(!1));else{const s=i.substr(5).indexOf("-");if(s<0){const o=Number(i.substr(5));Pr.push(r(o))}else{const o=Number(i.substr(5,s)),c=Number(i.substr(6+s));for(let u=o;u<=c;u++)Pr.push(r(u))}}}if(!e||!e[""].localeSlug)this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};else if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=((t=this.state.locale["text directionltr"])==null?void 0:t[0])||((a=(n=this.state.locale[""])==null?void 0:n.momentjs_locale)==null?void 0:a.textDirection),this.state.tannin=new Mh({[Y1]:this.state.locale}),this.stateObserver.emit("change")},Te.prototype.getLocale=function(){return this.state.locale},Te.prototype.getLocaleSlug=function(){return this.state.localeSlug},Te.prototype.getLocaleVariant=function(){return this.state.localeVariant},Te.prototype.isRtl=function(){return this.state.textDirection==="rtl"},Te.prototype.addTranslations=function(e){for(const t in e)t!==""&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},Te.prototype.hasTranslation=function(){return!!Z1(this,X1(arguments))},Te.prototype.fixMe=function({text:e,newCopy:t,oldCopy:n}){return typeof e!="string"?(Ma("fixMe() requires an object with a proper text property (string)"),null):["en","en-gb"].includes(this.getLocaleSlug())||this.hasTranslation(e)?t:n},Te.prototype.translate=function(){const e=X1(arguments);let t=Z1(this,e);if(t||(t=I1(this.state.tannin,e)),e.args){const n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=u5(...n)}catch(a){if(!window||!window.console)return;const i=this.throwErrors?"error":"warn";typeof a!="string"?window.console[i](a):window.console[i]("i18n sprintf error:",n)}}return e.components&&(t=s5({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach(function(n){t=n(t,e)}),t},Te.prototype.reRenderTranslations=function(){mx("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},Te.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},Te.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};const ee=new Te;ee.numberFormat.bind(ee),ee.numberFormatCompact.bind(ee),ee.formatCurrency.bind(ee),ee.getCurrencyObject.bind(ee),ee.geolocateCurrencySymbol.bind(ee);const K=ee.translate.bind(ee);ee.configure.bind(ee),ee.setLocale.bind(ee),ee.getLocale.bind(ee),ee.getLocaleSlug.bind(ee),ee.getLocaleVariant.bind(ee),ee.getBrowserSafeLocale.bind(ee),ee.isRtl.bind(ee),ee.addTranslations.bind(ee),ee.reRenderTranslations.bind(ee),ee.registerComponentUpdateHook.bind(ee),ee.registerTranslateHook.bind(ee),ee.state,ee.stateObserver,ee.on.bind(ee),ee.off.bind(ee),ee.emit.bind(ee),ee.fixMe.bind(ee);const J1=({id:e,icon:t,state:n,onSubmit:a,isSuccessAPI:i,isLoadingAPIs:l,cancelLabel:r,submitLabel:s,intermediateButtons:o,isSubmitDisabled:c,isCancelDisabled:u,children:d,...f})=>{const p=r??K("cancel"),b=s??K("save");return ie.useEffect(()=>{i&&Vt.close(e)},[e,i]),B.jsx(A3,{id:e,icon:t,state:n,...f,footer:B.jsxs("div",{children:[B.jsx(ja,{onClick:()=>Vt.close(e),disabled:u,children:p}),o,B.jsx(ja,{color:"primary",onClick:a,disabled:c,children:b})]}),children:B.jsx(f1,{isLoadingAPIs:l,children:d})})},px=({children:e,formId:t,onSubmit:n,...a})=>{const i=S.useRef(null);return S.useEffect(()=>{const l=r=>{var c;if(!i.current)return;const s=Object.keys(((c=i.current)==null?void 0:c.getState().values)||{}).length<=1,o=document.querySelector(".sg-multiple-dropdown__opened-state");r.key===we.ENTER&&s&&!o&&(r.preventDefault(),i.current.submit())};return document.addEventListener("keydown",l),()=>{document.removeEventListener("keydown",l)}},[i]),S.useEffect(()=>{const l=()=>{i.current=null};return Vt.subscribe(a.id,l,"close"),()=>Vt.unsubscribe(a.id,l,"close")},[a.id]),B.jsx(J1,{onSubmit:()=>{var l;return(l=i.current)==null?void 0:l.submit()},...a,children:B.jsx(IO,{onSubmit:n,id:t,formRef:i,children:e})})},gx=e=>B.jsx(YO,{format:t=>typeof t=="string"?t==null?void 0:t.trim():t,formatOnBlur:!0,...e}),pi={ADD_TOKEN_DIALOG:"ADD_TOKEN_DIALOG",DISCONNECT_DIALOG:"DISCONNECT_DIALOG"},yx={ADD_TOKEN:"ADD_TOKEN"},W1=void 0,vx=e=>!e||typeof e=="string"&&e.trim()==="",bx=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0,Sx=e=>Array.isArray(e)&&e.length===0,Ex=(...e)=>(t,n,a)=>e.reduce((i,l)=>{if(typeof l=="function")return n&&a?i||l(t,n,a):n?i||l(t,n):i||l(t)},void 0),Cx=(e,t=!1)=>(n,a,i)=>t?W1:vx(n)||Sx(n)||bx(n)||!n&&i.modified?e:W1,wx=e=>{const{input:t,meta:n,...a}=e,i=n.touched||n.active,l=n.touched||!!t.value;let r,s;return n.error&&i&&l&&(r="error",s=K(n.error)),n.submitError&&!n.modifiedSinceLastSubmit&&(r="error",s=K(n.submitError)),B.jsx(n3,{size:"medium",state:r,validationMessage:s,"data-e2e":t.name,name:t.name,value:t.value,onChange:t.onChange,...t,...a})},_x="wp-ai-studio-events";class Tx{constructor(){wt(this,"channel",null);wt(this,"listeners",new Map)}ensureChannel(){if(!this.channel&&typeof BroadcastChannel<"u")try{this.channel=new BroadcastChannel(_x),this.channel.onmessage=this.handleMessage.bind(this)}catch(t){console.warn("Failed to create BroadcastChannel:",t)}}handleMessage(t){const n=this.listeners.get(t.data.event);n&&n.forEach(a=>a(t.data.payload))}broadcast(t,n){if(this.ensureChannel(),this.channel)try{const a={event:t,payload:n,timestamp:Date.now()};this.channel.postMessage(a)}catch(a){console.warn(`Failed to broadcast event "${t}":`,a)}}listen(t,n){return this.ensureChannel(),this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(n),()=>{const a=this.listeners.get(t);a&&(a.delete(n),a.size===0&&this.listeners.delete(t))}}}const Ax=new Tx,Xr=(e,t)=>{Ax.broadcast(e,t)},Ox=()=>{const[e,{isLoading:t}]=s_(),n=async a=>e(a).unwrap().then(i=>{i.success&&(ft.addNotification({type:"success",message:i.message}),Xr("connection_status_changed",{type:"connected"}),Vt.close(pi.ADD_TOKEN_DIALOG))}).catch(i=>{var l;if((i==null?void 0:i.status)===400&&((l=i==null?void 0:i.data)!=null&&l.message))throw{fieldName:"data",message:i.data.message};ft.addNotification({type:"error",message:K("Something went wrong. Please try again later.")}),Vt.close(pi.ADD_TOKEN_DIALOG)});return B.jsx(px,{id:pi.ADD_TOKEN_DIALOG,formId:yx.ADD_TOKEN,isLoadingAPIs:[t],onSubmit:n,submitLabel:K("Confirm"),state:"active",icon:"edit",size:"large",title:K("Add Token"),subTitle:B.jsx(ke,{children:K("Enable the connection to AI Studio by pasting your secret connection token.")}),children:B.jsx(gx,{name:"data",label:K("Secret Connection Token"),component:wx,validate:Ex(Cx(K("Token can not be empty.")))})})},xx=({description:e,title:t,iconName:n})=>B.jsx(_l,{children:B.jsxs(cn,{gap:"medium",direction:"column",children:[B.jsx(tn,{level:"1",align:"left",children:t}),B.jsx(lp,{iconName:n,iconColor:"primary",iconMulticolor:!0,text:e})]})}),Mx=({disconnect:e})=>{const t=async()=>{var n;Vt.close(pi.DISCONNECT_DIALOG);try{const a=await e(),i=(n=a.data)==null?void 0:n.success;i&&Xr("connection_status_changed",{type:"disconnected"}),ft.addNotification({type:i?"success":"error",message:K(i?a.data.message:"Something went wrong. Please try again later.")})}catch{ft.addNotification({type:"error",message:K("Something went wrong. Please try again later.")});return}};return B.jsx(J1,{id:pi.DISCONNECT_DIALOG,isLoadingAPIs:[!1],onSubmit:t,submitLabel:"Confirm",state:"warning",icon:"warning",size:"large",title:K("Disconnect from AI Studio"),subTitle:B.jsx(ke,{children:K("Are you sure you want to proceed?")})})},zh=kp,Rx=({timestamp:e})=>{const t=zh(i=>i.app.config),n=new Date(e*1e3),a={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"2-digit",hour12:!0};return B.jsx("div",{children:n.toLocaleString(t.localeSlug||"en",a)})},Ir=({name:e,label:t,labelColor:n="primary",description:a,extraDescription:i,actions:l})=>B.jsx(cn,{gap:"x-small",direction:"column",children:B.jsx(vm,{padding:"large",children:B.jsxs(cn,{gap:"responsive",align:"center",wrap:"nowrap",children:[B.jsxs(cn,{direction:"column",grow:"1",gap:"x-small",children:[B.jsxs(cn,{align:"center",children:[B.jsx(tn,{level:"4",weight:"bold",children:e}),B.jsx($2,{size:"x-small"}),t&&B.jsx(Q2,{color:n,children:t})]}),a&&B.jsx(ke,{children:a}),i&&i]}),B.jsx(cn,{gap:"xx-large",shrink:"none",children:B.jsx("div",{children:l})})]})})}),Nx=({isConnected:e,autoConnect:t})=>{const{is_siteground:n}=zh(a=>a.app.config);return B.jsx(Ir,{name:K("AI Agent Plugin Activation"),label:K(e?"Connected":"Not Connected"),labelColor:e?"success":"warning",extraDescription:e?K("Your plugin is active and connected to SiteGround AI Studio."):B.jsxs("div",{children:[B.jsxs(ke,{tag:"span",children:[K("To activate the plugin, you need to sign up for "),B.jsx(Ei,{href:"https://www.siteground.com/ai-studio",target:"_blank",children:K("SiteGround AI Studio service")}),K(" and connect the plugin via a unique token. Websites hosted on SiteGround platform will be connected automatically.")]})," ",B.jsx(Ei,{href:"https://www.siteground.com/kb/connect-ai-studio-with-wordpress/",target:"_blank",children:K("Learn More.")})]}),actions:e?B.jsx(ja,{leadingIcon:"link_off",onClick:()=>Vt.open(pi.DISCONNECT_DIALOG),children:K("Disconnect")}):B.jsx(ja,{color:"primary",leadingIcon:"link",onClick:()=>n?t():Vt.open(pi.ADD_TOKEN_DIALOG),children:K("Connect")})})},Dx=({itemsPerPage:e,page:t})=>t<=1?{fromItem:t,toItem:e}:{fromItem:(t-1)*e+1,toItem:t*e},zx=e=>{const{itemsPerPage:t,totalItems:n,page:a,totalPages:i,onChange:l}=e,{fromItem:r,toItem:s}=Dx({itemsPerPage:t,page:a}),o=a===1,c=a>=i,u=s<=n?s:n;return B.jsxs(La,{gap:"medium",align:"center",autoflow:"column",style:{visibility:n?"visible":"hidden",justifyContent:"flex-end"},children:[B.jsx(ke,{children:K("%(fromItem)d-%(toItem)d of %(totalItems)d",{args:{fromItem:r,toItem:u,totalItems:n}})}),B.jsxs("div",{children:[B.jsx("span",{children:B.jsx(Ti,{icon:"material/keyboard_double_arrow_left",size:"small",onClick:()=>l(1),disabled:o,tooltip:K("Go to first page")})}),B.jsx("span",{children:B.jsx(Ti,{icon:"material/keyboard_arrow_left",size:"small",onClick:()=>l(Math.max(a-1,1)),disabled:o,tooltip:K("Go to previous page")})}),B.jsx("span",{children:B.jsx(Ti,{icon:"material/keyboard_arrow_right",size:"small",onClick:()=>l(Math.min(a+1,i)),disabled:c,tooltip:K("Go to next page")})}),B.jsx("span",{children:B.jsx(Ti,{icon:"material/keyboard_double_arrow_right",size:"small",onClick:()=>l(i),disabled:c,tooltip:K("Go to last page")})})]})]})},Ux=({activityLog:e,columns:t,onPageChange:n})=>{const{entries:a,total:i,page:l,per_page:r,total_pages:s}=e||{};return B.jsx(_l,{children:B.jsxs(cn,{gap:"x-small",direction:"column",children:[B.jsx(tn,{level:"4",children:K("Activity Log")}),B.jsx(S3,{shadow:!0,data:a||[],columns:t,renderAfterTableContent:()=>B.jsx(Eh,{condition:i>r,children:B.jsx(zx,{page:l,itemsPerPage:r,totalPages:s,totalItems:i,onChange:n})})},`activity-log-page-${l}`)]})})},Lx=({enabled:e,isConnected:t,handlePowermodeToggle:n})=>B.jsx(Ir,{extraDescription:B.jsxs("div",{children:[B.jsx(ke,{tag:"span",children:K('To protect your website from accidental or harmful changes, the AI Agent for WordPress includes a built-in safety option called "Power Mode." Power Mode is disabled by default to ensure that high-impact actions cannot be executed accidentally. Actions that require you to enable Power Mode include deletions (users, posts, pages, files, etc.), bulk operations, global settings modifications, product, order, and price updates.')})," ",B.jsx(Ei,{href:"https://www.siteground.com/kb/power-mode-ai-agent-wordpress",target:"_blank",children:K("Learn More.")})]}),name:K("Power Mode"),label:K(e?"On":"Off"),labelColor:e?"success":"typography-quaternary",actions:B.jsx(Vl,{onChange:a=>n(a.target.checked),checked:e,disabled:!t})}),Bx=({enabled:e,isConnected:t,handleGutenbergActionsToggle:n})=>B.jsx(Ir,{extraDescription:B.jsx(ke,{tag:"span",children:K("When this option is on, you will see the AI Agent listed in the editing options of some of the standard blocks of the Gutenberg Block Editor. This allows you to easily use AI for creating and editing text and images in your posts. If the option is turned off, you will not see the AI editing option in the blocks, but you can still use the general AI Agent chat and the custom AI Content Generator block.")}),name:K("AI Editing in Gutenberg Blocks"),label:K(e?"On":"Off"),labelColor:e?"success":"typography-quaternary",actions:B.jsx(Vl,{onChange:a=>n(a.target.checked),checked:e,disabled:!t})}),eS=({name:e,description:t,enabled:n,isConnected:a,handleToggle:i})=>B.jsx(Ir,{extraDescription:B.jsx(ke,{tag:"span",children:t}),name:e,label:K(n?"On":"Off"),labelColor:n?"success":"typography-quaternary",actions:B.jsx(Vl,{onChange:l=>i(l.target.checked),checked:n,disabled:!a})}),jx=({enabled:e,isConnected:t,handleConnectorToggle:n})=>B.jsx(Ir,{name:K("SiteGround AI Connector"),extraDescription:B.jsxs("div",{children:[B.jsxs(ke,{tag:"span",children:[K("Use your SiteGround AI Studio tokens to run every AI functionality powered by the WordPress")," "]}),B.jsx(Ei,{href:"https://wordpress.org/plugins/ai/",target:"_blank",children:K("AI plugin")}),B.jsx(ke,{tag:"span",children:K(" or any other plugin using the Connectors framework. Enabling/disabling this Connector will not impact the work of your SiteGround AI Agent which will remain operational as long as its own plugin is installed and active.")})," ",B.jsx(Ei,{href:"https://www.siteground.com/tutorials/ai-agent-wordpress/enable-siteground-ai-provider/",target:"_blank",children:K("Learn More.")})]}),label:K(e?"On":"Off"),labelColor:e?"success":"typography-quaternary",actions:B.jsx(Vl,{onChange:a=>n(a.target.checked),checked:e,disabled:!t})}),Uh=({title:e,children:t})=>B.jsx(_l,{children:B.jsxs(cn,{gap:"small",direction:"column",children:[B.jsx(tn,{level:"4",children:e}),t]})}),Hx=({children:e})=>B.jsx(G2,{header:null,content:B.jsx(Zm,{children:B.jsx(_l,{density:"none",className:"wp-ai-studio-page-layout",children:e})})}),Fx=()=>{const{data:e,isLoading:t}=Jw(),[n,{isLoading:a}]=Ww(),i=t||a,l=async r=>{try{const s=await n({enabled:r});Xr("powermode_changed",{enabled:s.data.enabled}),ft.addNotification({type:"success",message:s.data.enabled?K("Power Mode is enabled"):K("Power Mode is disabled")})}catch{ft.addNotification({type:"error",message:K("Something went wrong. Please try again.")});return}};return{isPowerModeEnabled:e==null?void 0:e.enabled,isPowerModeLoading:i,handlePowerModeToggle:l}},qx=()=>{const{data:e,isLoading:t}=e_(),[n,{isLoading:a}]=t_(),i=t||a,l=async r=>{try{const s=await n({enabled:r});ft.addNotification({type:"success",message:s.data.enabled?K("AI Editing in Gutenberg Blocks is enabled"):K("AI Editing in Gutenberg Blocks is disabled")})}catch{ft.addNotification({type:"error",message:K("Something went wrong. Please try again.")});return}};return{isGutenbergActionsEnabled:e==null?void 0:e.enabled,isGutenbergActionsLoading:i,handleGutenbergActionsToggle:l}},Vx=()=>{const{data:e,isLoading:t}=n_(),[n,{isLoading:a}]=a_(),i=t||a,l=!(e!=null&&e.admin_hidden),r=!(e!=null&&e.fe_hidden);return{isAdminBubbleVisible:l,isFeBubbleVisible:r,isChatBubbleLoading:i,handleToggle:async(o,c)=>{const u=o==="wp_admin_chatbox";try{await n(u?{admin_hidden:!c}:{fe_hidden:!c}).unwrap(),Xr("chat_bubble_visibility_changed",{source:o,hidden:!c});const d=K(u?c?"Admin chat bubble is visible":"Admin chat bubble is hidden":c?"Front-end chat bubble is visible":"Front-end chat bubble is hidden");ft.addNotification({type:"success",message:d})}catch{ft.addNotification({type:"error",message:K("Something went wrong. Please try again.")})}}}},kx=()=>{const{data:e,isLoading:t}=i_(),[n,{isLoading:a}]=l_(),i=t||a,l=async r=>{try{const s=await n({enabled:r});ft.addNotification({type:"success",message:s.data.enabled?K("SiteGround AI Studio Connector is enabled"):K("SiteGround AI Studio Connector is disabled")})}catch{ft.addNotification({type:"error",message:K("Something went wrong. Please try again.")});return}};return{isConnectorEnabled:e==null?void 0:e.enabled,isConnectorLoading:i,handleConnectorToggle:l}},Qx=e=>{const t=e.match(/^(\d+)/);return t?parseInt(t[1],10):0},Gx=()=>{const e=zh(O=>O.app.config),[t,n]=S.useState(1),{isPowerModeEnabled:a,isPowerModeLoading:i,handlePowerModeToggle:l}=Fx(),{isGutenbergActionsEnabled:r,isGutenbergActionsLoading:s,handleGutenbergActionsToggle:o}=qx(),{isAdminBubbleVisible:c,isFeBubbleVisible:u,isChatBubbleLoading:d,handleToggle:f}=Vx(),{isConnectorEnabled:p,isConnectorLoading:b,handleConnectorToggle:E}=kx(),{data:C,isLoading:g}=r_({page:t,per_page:10}),{data:y,isLoading:h}=u_(),[m,{isLoading:v}]=c_(),[_,{isLoading:w}]=o_(),x=S.useCallback(async()=>{try{await _().unwrap(),Xr("connection_status_changed",{type:"connected"}),window.location.reload()}catch{ft.addNotification({type:"error",message:K("Something went wrong. Please try again later.")})}},[_]),T=[{header:K("Activity"),accessor:"activity",render:O=>B.jsx(ke,{weight:"bold",children:O}),mSize:"20%"},{header:K("Details"),accessor:"message",render:O=>B.jsx(ke,{children:O}),mSize:"50%"},{header:K("Date"),accessor:"date",mSize:"30%",render:O=>B.jsx(Rx,{timestamp:O})}],A=S.useMemo(()=>{if(!e.locale)return{"":{localeSlug:e.localeSlug||"en"}};const O=JSON.parse(e.locale);return O[""].localeSlug=e.localeSlug||"en",O},[e.locale,e.localeSlug]);return S.useEffect(()=>{ee.setLocale(A)},[A]),B.jsxs(Hx,{children:[B.jsx(f1,{isLoadingAPIs:[i,s,d,b,g,h,v,w],position:"fixed",children:B.jsxs(cn,{tabIndex:0,align:"center",direction:"column",children:[B.jsx(xx,{title:K("AI Agent by SiteGround"),description:B.jsxs(B.Fragment,{children:[K("This plugin enables an AI agent that will assist you managing your WordPress and WooCommerce sites via chat. By activating the plugin you also activate the SiteGround AI connector, which will power up AI features in the WordPress admin, enabled by the "),B.jsx(Ei,{href:"https://wordpress.org/plugins/ai/",target:"_blank",children:K("AI plugin")}),"."]}),iconName:"ai-tools/illustration-siteground-ai-logo"}),B.jsx(Uh,{title:K("Plugin Activation"),children:B.jsx(Nx,{isConnected:y==null?void 0:y.connected,autoConnect:x})}),Qx(e.wp_version)>=7&&B.jsx(Uh,{title:K("Connector Settings"),children:B.jsx(jx,{enabled:!!p,isConnected:!!(y!=null&&y.connected),handleConnectorToggle:E})}),B.jsxs(Uh,{title:K("AI Agent Settings"),children:[B.jsx(Lx,{enabled:a,isConnected:y==null?void 0:y.connected,handlePowermodeToggle:l}),B.jsx(Bx,{enabled:!!r,isConnected:!!(y!=null&&y.connected),handleGutenbergActionsToggle:o}),B.jsx(eS,{name:K("Chat Bubble in WordPress Admin"),description:K("Show the AI Agent chat bubble inside the WordPress admin area. Turn this off to hide the floating bubble."),enabled:!!c,isConnected:!!(y!=null&&y.connected),handleToggle:O=>f("wp_admin_chatbox",O)}),B.jsx(eS,{name:K("Chat Bubble on Your Website (Front-End)"),description:K("Show the AI Agent chat bubble on the logged-in front-end of your website. On by default for adminstrators only."),enabled:!!u,isConnected:!!(y!=null&&y.connected),handleToggle:O=>f("wp_frontend_chatbox",O)})]}),B.jsx(Ux,{activityLog:C,columns:T,onPageChange:n})]})}),B.jsx(Mx,{disconnect:m}),B.jsx(Ox,{})]})};return{init:e=>{const t=jg(e.config);E_(e.config),p_(),t.dispatch(ag(e.config));const n=e.config.assetsPath,a=n+"/images",i=n+"/fonts",l=n+"/data";iO(e,r=>B.jsx(UC,{store:t,children:B.jsx(JS,{fontsInjectTarget:r,context:{config:{svgAssetsPath:a,fontsAssetsPath:i,dataAssetsPath:l}},children:B.jsxs(Vm,{theme:"light",children:[B.jsx(Gx,{}),B.jsx(k3,{})]})})}),"settings.css")}}});
