From 7a067bdd1a7201b725b7bd42eb716c5415bac9fd Mon Sep 17 00:00:00 2001 From: Editor Deployment Bot Date: Tue, 17 Dec 2024 08:48:52 +0000 Subject: [PATCH] Build Tue Dec 17 08:48:52 UTC 2024 --- .../{index-C-zdwB77.js => index-BoS11blO.js} | 124 +++++++++--------- index.html | 6 +- 2 files changed, 65 insertions(+), 65 deletions(-) rename assets/{index-C-zdwB77.js => index-BoS11blO.js} (61%) diff --git a/assets/index-C-zdwB77.js b/assets/index-BoS11blO.js similarity index 61% rename from assets/index-C-zdwB77.js rename to assets/index-BoS11blO.js index 0c6062183..a2463660e 100644 --- a/assets/index-C-zdwB77.js +++ b/assets/index-BoS11blO.js @@ -1,4 +1,4 @@ -var uq=Object.defineProperty;var dR=e=>{throw TypeError(e)};var cq=(e,t,n)=>t in e?uq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var nc=(e,t,n)=>cq(e,typeof t!="symbol"?t+"":t,n),pR=(e,t,n)=>t.has(e)||dR("Cannot "+n);var Jn=(e,t,n)=>(pR(e,t,"read from private field"),n?n.call(e):t.get(e)),Bm=(e,t,n)=>t.has(e)?dR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ea=(e,t,n,r)=>(pR(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function fq(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var EN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var kN={exports:{}},t0={},TN={exports:{}},Pt={};/** +var sq=Object.defineProperty;var pR=e=>{throw TypeError(e)};var lq=(e,t,n)=>t in e?sq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var nc=(e,t,n)=>lq(e,typeof t!="symbol"?t+"":t,n),hR=(e,t,n)=>t.has(e)||pR("Cannot "+n);var Jn=(e,t,n)=>(hR(e,t,"read from private field"),n?n.call(e):t.get(e)),Bm=(e,t,n)=>t.has(e)?pR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ea=(e,t,n,r)=>(hR(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function uq(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var kN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var TN={exports:{}},e0={},RN={exports:{}},Pt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var uq=Object.defineProperty;var dR=e=>{throw TypeError(e)};var cq=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var dh=Symbol.for("react.element"),dq=Symbol.for("react.portal"),pq=Symbol.for("react.fragment"),hq=Symbol.for("react.strict_mode"),mq=Symbol.for("react.profiler"),gq=Symbol.for("react.provider"),vq=Symbol.for("react.context"),yq=Symbol.for("react.forward_ref"),bq=Symbol.for("react.suspense"),wq=Symbol.for("react.memo"),Sq=Symbol.for("react.lazy"),hR=Symbol.iterator;function xq(e){return e===null||typeof e!="object"?null:(e=hR&&e[hR]||e["@@iterator"],typeof e=="function"?e:null)}var RN={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},IN=Object.assign,MN={};function Lf(e,t,n){this.props=e,this.context=t,this.refs=MN,this.updater=n||RN}Lf.prototype.isReactComponent={};Lf.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): 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")};Lf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function LN(){}LN.prototype=Lf.prototype;function OO(e,t,n){this.props=e,this.context=t,this.refs=MN,this.updater=n||RN}var CO=OO.prototype=new LN;CO.constructor=OO;IN(CO,Lf.prototype);CO.isPureReactComponent=!0;var mR=Array.isArray,AN=Object.prototype.hasOwnProperty,PO={current:null},NN={key:!0,ref:!0,__self:!0,__source:!0};function DN(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)AN.call(t,r)&&!NN.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1{throw TypeError(e)};var cq=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Eq=A,kq=Symbol.for("react.element"),Tq=Symbol.for("react.fragment"),Rq=Object.prototype.hasOwnProperty,Iq=Eq.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Mq={key:!0,ref:!0,__self:!0,__source:!0};function FN(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Rq.call(t,r)&&!Mq.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:kq,type:e,key:i,ref:a,props:o,_owner:Iq.current}}t0.Fragment=Tq;t0.jsx=FN;t0.jsxs=FN;kN.exports=t0;var ue=kN.exports,Lq=!1;function Aq(e){if(e.sheet)return e.sheet;for(var t=0;t0?fr(Af,--ao):0,af--,Vn===10&&(af=1,r0--),Vn}function Po(){return Vn=ao2||Mp(Vn)>3?"":" "}function Kq(e,t){for(;--t&&Po()&&!(Vn<48||Vn>102||Vn>57&&Vn<65||Vn>70&&Vn<97););return ph(e,zg()+(t<6&&pa()==32&&Po()==32))}function ux(e){for(;Po();)switch(Vn){case e:return ao;case 34:case 39:e!==34&&e!==39&&ux(Vn);break;case 40:e===41&&ux(e);break;case 92:Po();break}return ao}function Gq(e,t){for(;Po()&&e+Vn!==57;)if(e+Vn===84&&pa()===47)break;return"/*"+ph(t,ao-1)+"*"+n0(e===47?e:Po())}function Yq(e){for(;!Mp(pa());)Po();return ph(e,ao)}function Zq(e){return UN(jg("",null,null,null,[""],e=jN(e),0,[0],e))}function jg(e,t,n,r,o,i,a,s,l){for(var u=0,f=0,h=a,p=0,m=0,g=0,y=1,w=1,b=1,O=0,C="",k=o,S=i,T=r,P=C;w;)switch(g=O,O=Po()){case 40:if(g!=108&&fr(P,h-1)==58){lx(P+=Dt(Bg(O),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:P+=Bg(O);break;case 9:case 10:case 13:case 32:P+=qq(g);break;case 92:P+=Kq(zg()-1,7);continue;case 47:switch(pa()){case 42:case 47:Um(Xq(Gq(Po(),zg()),t,n),l);break;default:P+="/"}break;case 123*y:s[u++]=sa(P)*b;case 125*y:case 59:case 0:switch(O){case 0:case 125:w=0;case 59+f:b==-1&&(P=Dt(P,/\f/g,"")),m>0&&sa(P)-h&&Um(m>32?yR(P+";",r,n,h-1):yR(Dt(P," ","")+";",r,n,h-2),l);break;case 59:P+=";";default:if(Um(T=vR(P,t,n,u,f,o,s,C,k=[],S=[],h),i),O===123)if(f===0)jg(P,t,T,T,k,i,h,s,S);else switch(p===99&&fr(P,3)===110?100:p){case 100:case 108:case 109:case 115:jg(e,T,T,r&&Um(vR(e,T,T,0,0,o,s,C,o,k=[],h),S),o,S,h,s,r?k:S);break;default:jg(P,T,T,T,[""],S,0,s,S)}}u=f=m=0,y=b=1,C=P="",h=a;break;case 58:h=1+sa(P),m=g;default:if(y<1){if(O==123)--y;else if(O==125&&y++==0&&Hq()==125)continue}switch(P+=n0(O),O*y){case 38:b=f>0?1:(P+="\f",-1);break;case 44:s[u++]=(sa(P)-1)*b,b=1;break;case 64:pa()===45&&(P+=Bg(Po())),p=pa(),f=h=sa(C=P+=Yq(zg())),O++;break;case 45:g===45&&sa(P)==2&&(y=0)}}return i}function vR(e,t,n,r,o,i,a,s,l,u,f){for(var h=o-1,p=o===0?i:[""],m=RO(p),g=0,y=0,w=0;g0?p[b]+" "+O:Dt(O,/&\f/g,p[b])))&&(l[w++]=C);return o0(e,t,n,o===0?kO:s,l,u,f)}function Xq(e,t,n){return o0(e,t,n,WN,n0(Uq()),Ip(e,2,-2),0)}function yR(e,t,n,r){return o0(e,t,n,TO,Ip(e,0,r),Ip(e,r+1,-1),r)}function Uc(e,t){for(var n="",r=RO(e),o=0;o6)switch(fr(e,t+1)){case 109:if(fr(e,t+4)!==45)break;case 102:return Dt(e,/(.+:)(.+)-([^]+)/,"$1"+Nt+"$2-$3$1"+Ev+(fr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~lx(e,"stretch")?qN(Dt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(fr(e,t+1)!==115)break;case 6444:switch(fr(e,sa(e)-3-(~lx(e,"!important")&&10))){case 107:return Dt(e,":",":"+Nt)+e;case 101:return Dt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Nt+(fr(e,14)===45?"inline-":"")+"box$3$1"+Nt+"$2$3$1"+wr+"$2box$3")+e}break;case 5936:switch(fr(e,t+11)){case 114:return Nt+e+wr+Dt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Nt+e+wr+Dt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Nt+e+wr+Dt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Nt+e+wr+e+e}return e}var aK=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case TO:t.return=qN(t.value,t.length);break;case VN:return Uc([gd(t,{value:Dt(t.value,"@","@"+Nt)})],o);case kO:if(t.length)return jq(t.props,function(i){switch(Bq(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Uc([gd(t,{props:[Dt(i,/:(read-\w+)/,":"+Ev+"$1")]})],o);case"::placeholder":return Uc([gd(t,{props:[Dt(i,/:(plac\w+)/,":"+Nt+"input-$1")]}),gd(t,{props:[Dt(i,/:(plac\w+)/,":"+Ev+"$1")]}),gd(t,{props:[Dt(i,/:(plac\w+)/,wr+"input-$1")]})],o)}return""})}},sK=[aK],KN=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||sK,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),b=1;b0?fr(Af,--ao):0,af--,Vn===10&&(af=1,n0--),Vn}function Po(){return Vn=ao2||Mp(Vn)>3?"":" "}function Hq(e,t){for(;--t&&Po()&&!(Vn<48||Vn>102||Vn>57&&Vn<65||Vn>70&&Vn<97););return ph(e,zg()+(t<6&&pa()==32&&Po()==32))}function lx(e){for(;Po();)switch(Vn){case e:return ao;case 34:case 39:e!==34&&e!==39&&lx(Vn);break;case 40:e===41&&lx(e);break;case 92:Po();break}return ao}function qq(e,t){for(;Po()&&e+Vn!==57;)if(e+Vn===84&&pa()===47)break;return"/*"+ph(t,ao-1)+"*"+t0(e===47?e:Po())}function Kq(e){for(;!Mp(pa());)Po();return ph(e,ao)}function Gq(e){return HN(jg("",null,null,null,[""],e=UN(e),0,[0],e))}function jg(e,t,n,r,o,i,a,s,l){for(var u=0,f=0,h=a,p=0,m=0,g=0,y=1,w=1,b=1,O=0,C="",k=o,S=i,T=r,P=C;w;)switch(g=O,O=Po()){case 40:if(g!=108&&fr(P,h-1)==58){sx(P+=Dt(Bg(O),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:P+=Bg(O);break;case 9:case 10:case 13:case 32:P+=Uq(g);break;case 92:P+=Hq(zg()-1,7);continue;case 47:switch(pa()){case 42:case 47:Um(Yq(qq(Po(),zg()),t,n),l);break;default:P+="/"}break;case 123*y:s[u++]=sa(P)*b;case 125*y:case 59:case 0:switch(O){case 0:case 125:w=0;case 59+f:b==-1&&(P=Dt(P,/\f/g,"")),m>0&&sa(P)-h&&Um(m>32?bR(P+";",r,n,h-1):bR(Dt(P," ","")+";",r,n,h-2),l);break;case 59:P+=";";default:if(Um(T=yR(P,t,n,u,f,o,s,C,k=[],S=[],h),i),O===123)if(f===0)jg(P,t,T,T,k,i,h,s,S);else switch(p===99&&fr(P,3)===110?100:p){case 100:case 108:case 109:case 115:jg(e,T,T,r&&Um(yR(e,T,T,0,0,o,s,C,o,k=[],h),S),o,S,h,s,r?k:S);break;default:jg(P,T,T,T,[""],S,0,s,S)}}u=f=m=0,y=b=1,C=P="",h=a;break;case 58:h=1+sa(P),m=g;default:if(y<1){if(O==123)--y;else if(O==125&&y++==0&&jq()==125)continue}switch(P+=t0(O),O*y){case 38:b=f>0?1:(P+="\f",-1);break;case 44:s[u++]=(sa(P)-1)*b,b=1;break;case 64:pa()===45&&(P+=Bg(Po())),p=pa(),f=h=sa(C=P+=Kq(zg())),O++;break;case 45:g===45&&sa(P)==2&&(y=0)}}return i}function yR(e,t,n,r,o,i,a,s,l,u,f){for(var h=o-1,p=o===0?i:[""],m=RO(p),g=0,y=0,w=0;g0?p[b]+" "+O:Dt(O,/&\f/g,p[b])))&&(l[w++]=C);return r0(e,t,n,o===0?kO:s,l,u,f)}function Yq(e,t,n){return r0(e,t,n,VN,t0(Bq()),Ip(e,2,-2),0)}function bR(e,t,n,r){return r0(e,t,n,TO,Ip(e,0,r),Ip(e,r+1,-1),r)}function Uc(e,t){for(var n="",r=RO(e),o=0;o6)switch(fr(e,t+1)){case 109:if(fr(e,t+4)!==45)break;case 102:return Dt(e,/(.+:)(.+)-([^]+)/,"$1"+Nt+"$2-$3$1"+Ev+(fr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sx(e,"stretch")?KN(Dt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(fr(e,t+1)!==115)break;case 6444:switch(fr(e,sa(e)-3-(~sx(e,"!important")&&10))){case 107:return Dt(e,":",":"+Nt)+e;case 101:return Dt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Nt+(fr(e,14)===45?"inline-":"")+"box$3$1"+Nt+"$2$3$1"+wr+"$2box$3")+e}break;case 5936:switch(fr(e,t+11)){case 114:return Nt+e+wr+Dt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Nt+e+wr+Dt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Nt+e+wr+Dt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Nt+e+wr+e+e}return e}var oK=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case TO:t.return=KN(t.value,t.length);break;case zN:return Uc([gd(t,{value:Dt(t.value,"@","@"+Nt)})],o);case kO:if(t.length)return zq(t.props,function(i){switch(Vq(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Uc([gd(t,{props:[Dt(i,/:(read-\w+)/,":"+Ev+"$1")]})],o);case"::placeholder":return Uc([gd(t,{props:[Dt(i,/:(plac\w+)/,":"+Nt+"input-$1")]}),gd(t,{props:[Dt(i,/:(plac\w+)/,":"+Ev+"$1")]}),gd(t,{props:[Dt(i,/:(plac\w+)/,wr+"input-$1")]})],o)}return""})}},iK=[oK],GN=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||iK,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),b=1;b=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var EK={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},kK=!1,TK=/[A-Z]|^ms/g,RK=/_EMO_([^_]+?)_([^]*?)_EMO_/g,QN=function(t){return t.charCodeAt(1)===45},OR=function(t){return t!=null&&typeof t!="boolean"},p1=HN(function(e){return QN(e)?e:e.replace(TK,"-$&").toLowerCase()}),CR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(RK,function(r,o,i){return la={name:o,styles:i,next:la},o})}return EK[t]!==1&&!QN(t)&&typeof n=="number"&&n!==0?n+"px":n},IK="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Lp(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return la={name:o.name,styles:o.styles,next:la},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)la={name:a.name,styles:a.styles,next:la},a=a.next;var s=i.styles+";";return s}return MK(e,t,n)}case"function":{if(e!==void 0){var l=la,u=n(e);return la=l,Lp(e,t,u)}break}}var f=n;if(t==null)return f;var h=t[f];return h!==void 0?h:f}function MK(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var CK={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},PK=!1,EK=/[A-Z]|^ms/g,kK=/_EMO_([^_]+?)_([^]*?)_EMO_/g,JN=function(t){return t.charCodeAt(1)===45},CR=function(t){return t!=null&&typeof t!="boolean"},d1=qN(function(e){return JN(e)?e:e.replace(EK,"-$&").toLowerCase()}),PR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(kK,function(r,o,i){return la={name:o,styles:i,next:la},o})}return CK[t]!==1&&!JN(t)&&typeof n=="number"&&n!==0?n+"px":n},TK="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Lp(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return la={name:o.name,styles:o.styles,next:la},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)la={name:a.name,styles:a.styles,next:la},a=a.next;var s=i.styles+";";return s}return RK(e,t,n)}case"function":{if(e!==void 0){var l=la,u=n(e);return la=l,Lp(e,t,u)}break}}var f=n;if(t==null)return f;var h=t[f];return h!==void 0?h:f}function RK(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{throw TypeError(e)};var cq=(e,t,n)=>t in * * 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(W,V){var j=W.length;W.push(V);e:for(;0>>1,U=W[K];if(0>>1;Ko(Q,j))ieo(re,Q)?(W[K]=re,W[ie]=j,K=ie):(W[K]=Q,W[X]=j,K=X);else if(ieo(re,j))W[K]=re,W[ie]=j,K=ie;else break e}}return V}function o(W,V){var j=W.sortIndex-V.sortIndex;return j!==0?j:W.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],f=1,h=null,p=3,m=!1,g=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(W){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=W)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function k(W){if(y=!1,C(W),!g)if(n(l)!==null)g=!0,$(S);else{var V=n(u);V!==null&&F(k,V.startTime-W)}}function S(W,V){g=!1,y&&(y=!1,b(v),v=-1),m=!0;var j=p;try{for(C(V),h=n(l);h!==null&&(!(h.expirationTime>V)||W&&!R());){var K=h.callback;if(typeof K=="function"){h.callback=null,p=h.priorityLevel;var U=K(h.expirationTime<=V);V=e.unstable_now(),typeof U=="function"?h.callback=U:h===n(l)&&r(l),C(V)}else r(l);h=n(l)}if(h!==null)var Y=!0;else{var X=n(u);X!==null&&F(k,X.startTime-V),Y=!1}return Y}finally{h=null,p=j,m=!1}}var T=!1,P=null,v=-1,E=5,_=-1;function R(){return!(e.unstable_now()-_W||125K?(W.sortIndex=j,t(u,W),n(l)===null&&W===n(u)&&(y?(b(v),v=-1):y=!0,F(k,j-K))):(W.sortIndex=U,t(l,W),g||m||(g=!0,$(S))),W},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(W){var V=p;return function(){var j=p;p=V;try{return W.apply(this,arguments)}finally{p=j}}}})(rD);nD.exports=rD;var BK=nD.exports;/** + */(function(e){function t(W,V){var j=W.length;W.push(V);e:for(;0>>1,U=W[K];if(0>>1;Ko(Q,j))ieo(re,Q)?(W[K]=re,W[ie]=j,K=ie):(W[K]=Q,W[X]=j,K=X);else if(ieo(re,j))W[K]=re,W[ie]=j,K=ie;else break e}}return V}function o(W,V){var j=W.sortIndex-V.sortIndex;return j!==0?j:W.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],f=1,h=null,p=3,m=!1,g=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(W){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=W)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function k(W){if(y=!1,C(W),!g)if(n(l)!==null)g=!0,$(S);else{var V=n(u);V!==null&&F(k,V.startTime-W)}}function S(W,V){g=!1,y&&(y=!1,b(v),v=-1),m=!0;var j=p;try{for(C(V),h=n(l);h!==null&&(!(h.expirationTime>V)||W&&!R());){var K=h.callback;if(typeof K=="function"){h.callback=null,p=h.priorityLevel;var U=K(h.expirationTime<=V);V=e.unstable_now(),typeof U=="function"?h.callback=U:h===n(l)&&r(l),C(V)}else r(l);h=n(l)}if(h!==null)var Y=!0;else{var X=n(u);X!==null&&F(k,X.startTime-V),Y=!1}return Y}finally{h=null,p=j,m=!1}}var T=!1,P=null,v=-1,E=5,_=-1;function R(){return!(e.unstable_now()-_W||125K?(W.sortIndex=j,t(u,W),n(l)===null&&W===n(u)&&(y?(b(v),v=-1):y=!0,F(k,j-K))):(W.sortIndex=U,t(l,W),g||m||(g=!0,$(S))),W},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(W){var V=p;return function(){var j=p;p=V;try{return W.apply(this,arguments)}finally{p=j}}}})(oD);rD.exports=oD;var VK=rD.exports;/** * @license React * react-dom.production.min.js * @@ -37,24 +37,24 @@ var uq=Object.defineProperty;var dR=e=>{throw TypeError(e)};var cq=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var jK=A,Io=BK;function Ce(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),px=Object.prototype.hasOwnProperty,UK=/^[: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]*$/,kR={},TR={};function HK(e){return px.call(TR,e)?!0:px.call(kR,e)?!1:UK.test(e)?TR[e]=!0:(kR[e]=!0,!1)}function qK(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function KK(e,t,n,r){if(t===null||typeof t>"u"||qK(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ur(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var pr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pr[e]=new Ur(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pr[t]=new Ur(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pr[e]=new Ur(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pr[e]=new Ur(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pr[e]=new Ur(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pr[e]=new Ur(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pr[e]=new Ur(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pr[e]=new Ur(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pr[e]=new Ur(e,5,!1,e.toLowerCase(),null,!1,!1)});var zO=/[\-:]([a-z])/g;function BO(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(zO,BO);pr[t]=new Ur(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zO,BO);pr[t]=new Ur(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zO,BO);pr[t]=new Ur(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pr[e]=new Ur(e,1,!1,e.toLowerCase(),null,!1,!1)});pr.xlinkHref=new Ur("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pr[e]=new Ur(e,1,!1,e.toLowerCase(),null,!0,!0)});function jO(e,t,n,r){var o=pr.hasOwnProperty(t)?pr[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dx=Object.prototype.hasOwnProperty,BK=/^[: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]*$/,TR={},RR={};function jK(e){return dx.call(RR,e)?!0:dx.call(TR,e)?!1:BK.test(e)?RR[e]=!0:(TR[e]=!0,!1)}function UK(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function HK(e,t,n,r){if(t===null||typeof t>"u"||UK(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ur(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var pr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pr[e]=new Ur(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pr[t]=new Ur(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pr[e]=new Ur(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pr[e]=new Ur(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pr[e]=new Ur(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pr[e]=new Ur(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pr[e]=new Ur(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pr[e]=new Ur(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pr[e]=new Ur(e,5,!1,e.toLowerCase(),null,!1,!1)});var zO=/[\-:]([a-z])/g;function BO(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(zO,BO);pr[t]=new Ur(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zO,BO);pr[t]=new Ur(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zO,BO);pr[t]=new Ur(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pr[e]=new Ur(e,1,!1,e.toLowerCase(),null,!1,!1)});pr.xlinkHref=new Ur("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pr[e]=new Ur(e,1,!1,e.toLowerCase(),null,!0,!0)});function jO(e,t,n,r){var o=pr.hasOwnProperty(t)?pr[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{m1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ud(e):""}function GK(e){switch(e.tag){case 5:return Ud(e.type);case 16:return Ud("Lazy");case 13:return Ud("Suspense");case 19:return Ud("SuspenseList");case 0:case 2:case 15:return e=g1(e.type,!1),e;case 11:return e=g1(e.type.render,!1),e;case 1:return e=g1(e.type,!0),e;default:return""}}function vx(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Oc:return"Fragment";case _c:return"Portal";case hx:return"Profiler";case UO:return"StrictMode";case mx:return"Suspense";case gx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case aD:return(e.displayName||"Context")+".Consumer";case iD:return(e._context.displayName||"Context")+".Provider";case HO:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qO:return t=e.displayName||null,t!==null?t:vx(e.type)||"Memo";case Ns:t=e._payload,e=e._init;try{return vx(e(t))}catch{}}return null}function YK(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vx(t);case 8:return t===UO?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function al(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lD(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ZK(e){var t=lD(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qm(e){e._valueTracker||(e._valueTracker=ZK(e))}function uD(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lD(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kv(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}}function yx(e,t){var n=t.checked;return Sn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function IR(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=al(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cD(e,t){t=t.checked,t!=null&&jO(e,"checked",t,!1)}function bx(e,t){cD(e,t);var n=al(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?wx(e,t.type,n):t.hasOwnProperty("defaultValue")&&wx(e,t.type,al(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function MR(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function wx(e,t,n){(t!=="number"||kv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hd=Array.isArray;function Hc(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Km.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Np(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ap={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},XK=["Webkit","ms","Moz","O"];Object.keys(ap).forEach(function(e){XK.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ap[t]=ap[e]})});function hD(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ap.hasOwnProperty(e)&&ap[e]?(""+t).trim():t+"px"}function mD(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=hD(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var QK=Sn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _x(e,t){if(t){if(QK[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ce(62))}}function Ox(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Cx=null;function KO(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Px=null,qc=null,Kc=null;function NR(e){if(e=bh(e)){if(typeof Px!="function")throw Error(Ce(280));var t=e.stateNode;t&&(t=S0(t),Px(e.stateNode,e.type,t))}}function gD(e){qc?Kc?Kc.push(e):Kc=[e]:qc=e}function vD(){if(qc){var e=qc,t=Kc;if(Kc=qc=null,NR(e),t)for(e=0;e>>=0,e===0?32:31-(uG(e)/cG|0)|0}var Gm=64,Ym=4194304;function qd(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=qd(s):(i&=a,i!==0&&(r=qd(i)))}else a=n&~o,a!==0?r=qd(a):i!==0&&(r=qd(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vh(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ji(t),e[t]=n}function hG(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=lp),UR=" ",HR=!1;function $D(e,t){switch(e){case"keyup":return BG.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function FD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cc=!1;function UG(e,t){switch(e){case"compositionend":return FD(t);case"keypress":return t.which!==32?null:(HR=!0,UR);case"textInput":return e=t.data,e===UR&&HR?null:e;default:return null}}function HG(e,t){if(Cc)return e==="compositionend"||!tC&&$D(e,t)?(e=ND(),Hg=QO=Us=null,Cc=!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)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=YR(n)}}function BD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?BD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jD(){for(var e=window,t=kv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kv(e.document)}return t}function nC(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")}function eY(e){var t=jD(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&BD(n.ownerDocument.documentElement,n)){if(r!==null&&nC(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ZR(n,i);var a=ZR(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Pc=null,Mx=null,cp=null,Lx=!1;function XR(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lx||Pc==null||Pc!==kv(r)||(r=Pc,"selectionStart"in r&&nC(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),cp&&zp(cp,r)||(cp=r,r=Nv(Mx,"onSelect"),0Tc||(e.current=Wx[Tc],Wx[Tc]=null,Tc--)}function en(e,t){Tc++,Wx[Tc]=e.current,e.current=t}var sl={},Er=ml(sl),to=ml(!1),du=sl;function lf(e,t){var n=e.type.contextTypes;if(!n)return sl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function no(e){return e=e.childContextTypes,e!=null}function $v(){sn(to),sn(Er)}function o2(e,t,n){if(Er.current!==sl)throw Error(Ce(168));en(Er,t),en(to,n)}function QD(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Ce(108,YK(e)||"Unknown",o));return Sn({},n,r)}function Fv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sl,du=Er.current,en(Er,e),en(to,to.current),!0}function i2(e,t,n){var r=e.stateNode;if(!r)throw Error(Ce(169));n?(e=QD(e,t,du),r.__reactInternalMemoizedMergedChildContext=e,sn(to),sn(Er),en(Er,e)):sn(to),en(to,n)}var Va=null,x0=!1,R1=!1;function JD(e){Va===null?Va=[e]:Va.push(e)}function dY(e){x0=!0,JD(e)}function gl(){if(!R1&&Va!==null){R1=!0;var e=0,t=Bt;try{var n=Va;for(Bt=1;e>=a,o-=a,Ba=1<<32-ji(t)+o|n<v?(E=P,P=null):E=P.sibling;var _=p(b,P,C[v],k);if(_===null){P===null&&(P=E);break}e&&P&&_.alternate===null&&t(b,P),O=i(_,O,v),T===null?S=_:T.sibling=_,T=_,P=E}if(v===C.length)return n(b,P),pn&&Ul(b,v),S;if(P===null){for(;vv?(E=P,P=null):E=P.sibling;var R=p(b,P,_.value,k);if(R===null){P===null&&(P=E);break}e&&P&&R.alternate===null&&t(b,P),O=i(R,O,v),T===null?S=R:T.sibling=R,T=R,P=E}if(_.done)return n(b,P),pn&&Ul(b,v),S;if(P===null){for(;!_.done;v++,_=C.next())_=h(b,_.value,k),_!==null&&(O=i(_,O,v),T===null?S=_:T.sibling=_,T=_);return pn&&Ul(b,v),S}for(P=r(b,P);!_.done;v++,_=C.next())_=m(P,b,v,_.value,k),_!==null&&(e&&_.alternate!==null&&P.delete(_.key===null?v:_.key),O=i(_,O,v),T===null?S=_:T.sibling=_,T=_);return e&&P.forEach(function(M){return t(b,M)}),pn&&Ul(b,v),S}function w(b,O,C,k){if(typeof C=="object"&&C!==null&&C.type===Oc&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Hm:e:{for(var S=C.key,T=O;T!==null;){if(T.key===S){if(S=C.type,S===Oc){if(T.tag===7){n(b,T.sibling),O=o(T,C.props.children),O.return=b,b=O;break e}}else if(T.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ns&&l2(S)===T.type){n(b,T.sibling),O=o(T,C.props),O.ref=xd(b,T,C),O.return=b,b=O;break e}n(b,T);break}else t(b,T);T=T.sibling}C.type===Oc?(O=iu(C.props.children,b.mode,k,C.key),O.return=b,b=O):(k=Jg(C.type,C.key,C.props,null,b.mode,k),k.ref=xd(b,O,C),k.return=b,b=k)}return a(b);case _c:e:{for(T=C.key;O!==null;){if(O.key===T)if(O.tag===4&&O.stateNode.containerInfo===C.containerInfo&&O.stateNode.implementation===C.implementation){n(b,O.sibling),O=o(O,C.children||[]),O.return=b,b=O;break e}else{n(b,O);break}else t(b,O);O=O.sibling}O=F1(C,b.mode,k),O.return=b,b=O}return a(b);case Ns:return T=C._init,w(b,O,T(C._payload),k)}if(Hd(C))return g(b,O,C,k);if(vd(C))return y(b,O,C,k);ng(b,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,O!==null&&O.tag===6?(n(b,O.sibling),O=o(O,C),O.return=b,b=O):(n(b,O),O=$1(C,b.mode,k),O.return=b,b=O),a(b)):n(b,O)}return w}var cf=r$(!0),o$=r$(!1),zv=ml(null),Bv=null,Mc=null,aC=null;function sC(){aC=Mc=Bv=null}function lC(e){var t=zv.current;sn(zv),e._currentValue=t}function Bx(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Yc(e,t){Bv=e,aC=Mc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(eo=!0),e.firstContext=null)}function fi(e){var t=e._currentValue;if(aC!==e)if(e={context:e,memoizedValue:t,next:null},Mc===null){if(Bv===null)throw Error(Ce(308));Mc=e,Bv.dependencies={lanes:0,firstContext:e}}else Mc=Mc.next=e;return t}var Ql=null;function uC(e){Ql===null?Ql=[e]:Ql.push(e)}function i$(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uC(t)):(n.next=o.next,o.next=n),t.interleaved=n,Qa(e,r)}function Qa(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ds=!1;function cC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function a$(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ha(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Js(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,It&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Qa(e,n)}return o=r.interleaved,o===null?(t.next=t,uC(r)):(t.next=o.next,o.next=t),r.interleaved=t,Qa(e,n)}function Kg(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,YO(e,n)}}function u2(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jv(e,t,n,r){var o=e.updateQueue;Ds=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?i=u:a.next=u,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(i!==null){var h=o.baseState;a=0,f=u=l=null,s=i;do{var p=s.lane,m=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(p=t,m=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){h=g.call(m,h,p);break e}h=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(m,h,p):g,p==null)break e;h=Sn({},h,p);break e;case 2:Ds=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else m={eventTime:m,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=m,l=h):f=f.next=m,a|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(f===null&&(l=h),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);mu|=a,e.lanes=a,e.memoizedState=h}}function c2(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=M1.transition;M1.transition={};try{e(!1),t()}finally{Bt=n,M1.transition=r}}function _$(){return di().memoizedState}function gY(e,t,n){var r=tl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},O$(e))C$(t,n);else if(n=i$(e,t,n,r),n!==null){var o=Vr();Ui(n,e,r,o),P$(n,t,r)}}function vY(e,t,n){var r=tl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(O$(e))C$(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Hi(s,a)){var l=t.interleaved;l===null?(o.next=o,uC(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=i$(e,t,o,r),n!==null&&(o=Vr(),Ui(n,e,r,o),P$(n,t,r))}}function O$(e){var t=e.alternate;return e===yn||t!==null&&t===yn}function C$(e,t){fp=Hv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function P$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,YO(e,n)}}var qv={readContext:fi,useCallback:gr,useContext:gr,useEffect:gr,useImperativeHandle:gr,useInsertionEffect:gr,useLayoutEffect:gr,useMemo:gr,useReducer:gr,useRef:gr,useState:gr,useDebugValue:gr,useDeferredValue:gr,useTransition:gr,useMutableSource:gr,useSyncExternalStore:gr,useId:gr,unstable_isNewReconciler:!1},yY={readContext:fi,useCallback:function(e,t){return ra().memoizedState=[e,t===void 0?null:t],e},useContext:fi,useEffect:d2,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yg(4194308,4,y$.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yg(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yg(4,2,e,t)},useMemo:function(e,t){var n=ra();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ra();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=gY.bind(null,yn,e),[r.memoizedState,e]},useRef:function(e){var t=ra();return e={current:e},t.memoizedState=e},useState:f2,useDebugValue:yC,useDeferredValue:function(e){return ra().memoizedState=e},useTransition:function(){var e=f2(!1),t=e[0];return e=mY.bind(null,e[1]),ra().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=yn,o=ra();if(pn){if(n===void 0)throw Error(Ce(407));n=n()}else{if(n=t(),nr===null)throw Error(Ce(349));hu&30||c$(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,d2(d$.bind(null,r,i,e),[e]),r.flags|=2048,Yp(9,f$.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ra(),t=nr.identifierPrefix;if(pn){var n=ja,r=Ba;n=(r&~(1<<32-ji(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Kp++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{h1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ud(e):""}function qK(e){switch(e.tag){case 5:return Ud(e.type);case 16:return Ud("Lazy");case 13:return Ud("Suspense");case 19:return Ud("SuspenseList");case 0:case 2:case 15:return e=m1(e.type,!1),e;case 11:return e=m1(e.type.render,!1),e;case 1:return e=m1(e.type,!0),e;default:return""}}function gx(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Oc:return"Fragment";case _c:return"Portal";case px:return"Profiler";case UO:return"StrictMode";case hx:return"Suspense";case mx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case sD:return(e.displayName||"Context")+".Consumer";case aD:return(e._context.displayName||"Context")+".Provider";case HO:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qO:return t=e.displayName||null,t!==null?t:gx(e.type)||"Memo";case Ns:t=e._payload,e=e._init;try{return gx(e(t))}catch{}}return null}function KK(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gx(t);case 8:return t===UO?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function al(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uD(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function GK(e){var t=uD(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qm(e){e._valueTracker||(e._valueTracker=GK(e))}function cD(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uD(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kv(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}}function vx(e,t){var n=t.checked;return Sn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function MR(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=al(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function fD(e,t){t=t.checked,t!=null&&jO(e,"checked",t,!1)}function yx(e,t){fD(e,t);var n=al(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bx(e,t.type,n):t.hasOwnProperty("defaultValue")&&bx(e,t.type,al(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function LR(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function bx(e,t,n){(t!=="number"||kv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hd=Array.isArray;function Hc(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Km.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Np(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ap={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},YK=["Webkit","ms","Moz","O"];Object.keys(ap).forEach(function(e){YK.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ap[t]=ap[e]})});function mD(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ap.hasOwnProperty(e)&&ap[e]?(""+t).trim():t+"px"}function gD(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=mD(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ZK=Sn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xx(e,t){if(t){if(ZK[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ce(62))}}function _x(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Ox=null;function KO(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cx=null,qc=null,Kc=null;function DR(e){if(e=bh(e)){if(typeof Cx!="function")throw Error(Ce(280));var t=e.stateNode;t&&(t=w0(t),Cx(e.stateNode,e.type,t))}}function vD(e){qc?Kc?Kc.push(e):Kc=[e]:qc=e}function yD(){if(qc){var e=qc,t=Kc;if(Kc=qc=null,DR(e),t)for(e=0;e>>=0,e===0?32:31-(sG(e)/lG|0)|0}var Gm=64,Ym=4194304;function qd(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=qd(s):(i&=a,i!==0&&(r=qd(i)))}else a=n&~o,a!==0?r=qd(a):i!==0&&(r=qd(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vh(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ji(t),e[t]=n}function dG(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=lp),HR=" ",qR=!1;function FD(e,t){switch(e){case"keyup":return VG.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function WD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cc=!1;function BG(e,t){switch(e){case"compositionend":return WD(t);case"keypress":return t.which!==32?null:(qR=!0,HR);case"textInput":return e=t.data,e===HR&&qR?null:e;default:return null}}function jG(e,t){if(Cc)return e==="compositionend"||!tC&&FD(e,t)?(e=DD(),Hg=QO=Us=null,Cc=!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)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ZR(n)}}function jD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function UD(){for(var e=window,t=kv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kv(e.document)}return t}function nC(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")}function QG(e){var t=UD(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jD(n.ownerDocument.documentElement,n)){if(r!==null&&nC(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=XR(n,i);var a=XR(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Pc=null,Ix=null,cp=null,Mx=!1;function QR(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mx||Pc==null||Pc!==kv(r)||(r=Pc,"selectionStart"in r&&nC(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),cp&&zp(cp,r)||(cp=r,r=Nv(Ix,"onSelect"),0Tc||(e.current=Fx[Tc],Fx[Tc]=null,Tc--)}function en(e,t){Tc++,Fx[Tc]=e.current,e.current=t}var sl={},Er=ml(sl),to=ml(!1),fu=sl;function lf(e,t){var n=e.type.contextTypes;if(!n)return sl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function no(e){return e=e.childContextTypes,e!=null}function $v(){sn(to),sn(Er)}function iI(e,t,n){if(Er.current!==sl)throw Error(Ce(168));en(Er,t),en(to,n)}function JD(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Ce(108,KK(e)||"Unknown",o));return Sn({},n,r)}function Fv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sl,fu=Er.current,en(Er,e),en(to,to.current),!0}function aI(e,t,n){var r=e.stateNode;if(!r)throw Error(Ce(169));n?(e=JD(e,t,fu),r.__reactInternalMemoizedMergedChildContext=e,sn(to),sn(Er),en(Er,e)):sn(to),en(to,n)}var Va=null,S0=!1,T1=!1;function e$(e){Va===null?Va=[e]:Va.push(e)}function cY(e){S0=!0,e$(e)}function gl(){if(!T1&&Va!==null){T1=!0;var e=0,t=Bt;try{var n=Va;for(Bt=1;e>=a,o-=a,Ba=1<<32-ji(t)+o|n<v?(E=P,P=null):E=P.sibling;var _=p(b,P,C[v],k);if(_===null){P===null&&(P=E);break}e&&P&&_.alternate===null&&t(b,P),O=i(_,O,v),T===null?S=_:T.sibling=_,T=_,P=E}if(v===C.length)return n(b,P),pn&&jl(b,v),S;if(P===null){for(;vv?(E=P,P=null):E=P.sibling;var R=p(b,P,_.value,k);if(R===null){P===null&&(P=E);break}e&&P&&R.alternate===null&&t(b,P),O=i(R,O,v),T===null?S=R:T.sibling=R,T=R,P=E}if(_.done)return n(b,P),pn&&jl(b,v),S;if(P===null){for(;!_.done;v++,_=C.next())_=h(b,_.value,k),_!==null&&(O=i(_,O,v),T===null?S=_:T.sibling=_,T=_);return pn&&jl(b,v),S}for(P=r(b,P);!_.done;v++,_=C.next())_=m(P,b,v,_.value,k),_!==null&&(e&&_.alternate!==null&&P.delete(_.key===null?v:_.key),O=i(_,O,v),T===null?S=_:T.sibling=_,T=_);return e&&P.forEach(function(M){return t(b,M)}),pn&&jl(b,v),S}function w(b,O,C,k){if(typeof C=="object"&&C!==null&&C.type===Oc&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Hm:e:{for(var S=C.key,T=O;T!==null;){if(T.key===S){if(S=C.type,S===Oc){if(T.tag===7){n(b,T.sibling),O=o(T,C.props.children),O.return=b,b=O;break e}}else if(T.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ns&&uI(S)===T.type){n(b,T.sibling),O=o(T,C.props),O.ref=xd(b,T,C),O.return=b,b=O;break e}n(b,T);break}else t(b,T);T=T.sibling}C.type===Oc?(O=ou(C.props.children,b.mode,k,C.key),O.return=b,b=O):(k=Jg(C.type,C.key,C.props,null,b.mode,k),k.ref=xd(b,O,C),k.return=b,b=k)}return a(b);case _c:e:{for(T=C.key;O!==null;){if(O.key===T)if(O.tag===4&&O.stateNode.containerInfo===C.containerInfo&&O.stateNode.implementation===C.implementation){n(b,O.sibling),O=o(O,C.children||[]),O.return=b,b=O;break e}else{n(b,O);break}else t(b,O);O=O.sibling}O=$1(C,b.mode,k),O.return=b,b=O}return a(b);case Ns:return T=C._init,w(b,O,T(C._payload),k)}if(Hd(C))return g(b,O,C,k);if(vd(C))return y(b,O,C,k);ng(b,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,O!==null&&O.tag===6?(n(b,O.sibling),O=o(O,C),O.return=b,b=O):(n(b,O),O=D1(C,b.mode,k),O.return=b,b=O),a(b)):n(b,O)}return w}var cf=o$(!0),i$=o$(!1),zv=ml(null),Bv=null,Mc=null,aC=null;function sC(){aC=Mc=Bv=null}function lC(e){var t=zv.current;sn(zv),e._currentValue=t}function zx(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Yc(e,t){Bv=e,aC=Mc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(eo=!0),e.firstContext=null)}function fi(e){var t=e._currentValue;if(aC!==e)if(e={context:e,memoizedValue:t,next:null},Mc===null){if(Bv===null)throw Error(Ce(308));Mc=e,Bv.dependencies={lanes:0,firstContext:e}}else Mc=Mc.next=e;return t}var Xl=null;function uC(e){Xl===null?Xl=[e]:Xl.push(e)}function a$(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uC(t)):(n.next=o.next,o.next=n),t.interleaved=n,Qa(e,r)}function Qa(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ds=!1;function cC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function s$(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ha(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Js(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,It&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Qa(e,n)}return o=r.interleaved,o===null?(t.next=t,uC(r)):(t.next=o.next,o.next=t),r.interleaved=t,Qa(e,n)}function Kg(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,YO(e,n)}}function cI(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jv(e,t,n,r){var o=e.updateQueue;Ds=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?i=u:a.next=u,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(i!==null){var h=o.baseState;a=0,f=u=l=null,s=i;do{var p=s.lane,m=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(p=t,m=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){h=g.call(m,h,p);break e}h=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(m,h,p):g,p==null)break e;h=Sn({},h,p);break e;case 2:Ds=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else m={eventTime:m,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=m,l=h):f=f.next=m,a|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(f===null&&(l=h),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);hu|=a,e.lanes=a,e.memoizedState=h}}function fI(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=I1.transition;I1.transition={};try{e(!1),t()}finally{Bt=n,I1.transition=r}}function O$(){return di().memoizedState}function hY(e,t,n){var r=tl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},C$(e))P$(t,n);else if(n=a$(e,t,n,r),n!==null){var o=Vr();Ui(n,e,r,o),E$(n,t,r)}}function mY(e,t,n){var r=tl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(C$(e))P$(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Hi(s,a)){var l=t.interleaved;l===null?(o.next=o,uC(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=a$(e,t,o,r),n!==null&&(o=Vr(),Ui(n,e,r,o),E$(n,t,r))}}function C$(e){var t=e.alternate;return e===yn||t!==null&&t===yn}function P$(e,t){fp=Hv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function E$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,YO(e,n)}}var qv={readContext:fi,useCallback:gr,useContext:gr,useEffect:gr,useImperativeHandle:gr,useInsertionEffect:gr,useLayoutEffect:gr,useMemo:gr,useReducer:gr,useRef:gr,useState:gr,useDebugValue:gr,useDeferredValue:gr,useTransition:gr,useMutableSource:gr,useSyncExternalStore:gr,useId:gr,unstable_isNewReconciler:!1},gY={readContext:fi,useCallback:function(e,t){return ra().memoizedState=[e,t===void 0?null:t],e},useContext:fi,useEffect:pI,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yg(4194308,4,b$.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yg(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yg(4,2,e,t)},useMemo:function(e,t){var n=ra();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ra();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hY.bind(null,yn,e),[r.memoizedState,e]},useRef:function(e){var t=ra();return e={current:e},t.memoizedState=e},useState:dI,useDebugValue:yC,useDeferredValue:function(e){return ra().memoizedState=e},useTransition:function(){var e=dI(!1),t=e[0];return e=pY.bind(null,e[1]),ra().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=yn,o=ra();if(pn){if(n===void 0)throw Error(Ce(407));n=n()}else{if(n=t(),nr===null)throw Error(Ce(349));pu&30||f$(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,pI(p$.bind(null,r,i,e),[e]),r.flags|=2048,Yp(9,d$.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ra(),t=nr.identifierPrefix;if(pn){var n=ja,r=Ba;n=(r&~(1<<32-ji(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Kp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[ca]=t,e[Up]=r,D$(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ox(n,r),n){case"dialog":an("cancel",e),an("close",e),o=r;break;case"iframe":case"object":case"embed":an("load",e),o=r;break;case"video":case"audio":for(o=0;opf&&(t.flags|=128,r=!0,_d(i,!1),t.lanes=4194304)}else{if(!r)if(e=Uv(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_d(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!pn)return vr(t),null}else 2*Nn()-i.renderingStartTime>pf&&n!==1073741824&&(t.flags|=128,r=!0,_d(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Nn(),t.sibling=null,n=vn.current,en(vn,r?n&1|2:n&1),t):(vr(t),null);case 22:case 23:return OC(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?wo&1073741824&&(vr(t),t.subtreeFlags&6&&(t.flags|=8192)):vr(t),null;case 24:return null;case 25:return null}throw Error(Ce(156,t.tag))}function PY(e,t){switch(oC(t),t.tag){case 1:return no(t.type)&&$v(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ff(),sn(to),sn(Er),pC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return dC(t),null;case 13:if(sn(vn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ce(340));uf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return sn(vn),null;case 4:return ff(),null;case 10:return lC(t.type._context),null;case 22:case 23:return OC(),null;case 24:return null;default:return null}}var og=!1,Cr=!1,EY=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function Lc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Tn(e,t,r)}else n.current=null}function Xx(e,t,n){try{n()}catch(r){Tn(e,t,r)}}var _2=!1;function kY(e,t){if(Ax=Lv,e=jD(),nC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,f=0,h=e,p=null;t:for(;;){for(var m;h!==n||o!==0&&h.nodeType!==3||(s=a+o),h!==i||r!==0&&h.nodeType!==3||(l=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(m=h.firstChild)!==null;)p=h,h=m;for(;;){if(h===e)break t;if(p===n&&++u===o&&(s=a),p===i&&++f===r&&(l=a),(m=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Nx={focusedElem:e,selectionRange:n},Lv=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){t=Ve;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,w=g.memoizedState,b=t.stateNode,O=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:Li(t.type,y),w);b.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ce(163))}}catch(k){Tn(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}return g=_2,_2=!1,g}function dp(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Xx(t,n,i)}o=o.next}while(o!==r)}}function C0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Qx(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function W$(e){var t=e.alternate;t!==null&&(e.alternate=null,W$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ca],delete t[Up],delete t[Fx],delete t[cY],delete t[fY])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function V$(e){return e.tag===5||e.tag===3||e.tag===4}function O2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||V$(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.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 Jx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Dv));else if(r!==4&&(e=e.child,e!==null))for(Jx(e,t,n),e=e.sibling;e!==null;)Jx(e,t,n),e=e.sibling}function e_(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(e_(e,t,n),e=e.sibling;e!==null;)e_(e,t,n),e=e.sibling}var cr=null,Ai=!1;function Es(e,t,n){for(n=n.child;n!==null;)z$(e,t,n),n=n.sibling}function z$(e,t,n){if(ha&&typeof ha.onCommitFiberUnmount=="function")try{ha.onCommitFiberUnmount(v0,n)}catch{}switch(n.tag){case 5:Cr||Lc(n,t);case 6:var r=cr,o=Ai;cr=null,Es(e,t,n),cr=r,Ai=o,cr!==null&&(Ai?(e=cr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):cr.removeChild(n.stateNode));break;case 18:cr!==null&&(Ai?(e=cr,n=n.stateNode,e.nodeType===8?T1(e.parentNode,n):e.nodeType===1&&T1(e,n),Wp(e)):T1(cr,n.stateNode));break;case 4:r=cr,o=Ai,cr=n.stateNode.containerInfo,Ai=!0,Es(e,t,n),cr=r,Ai=o;break;case 0:case 11:case 14:case 15:if(!Cr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Xx(n,t,a),o=o.next}while(o!==r)}Es(e,t,n);break;case 1:if(!Cr&&(Lc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Tn(n,t,s)}Es(e,t,n);break;case 21:Es(e,t,n);break;case 22:n.mode&1?(Cr=(r=Cr)||n.memoizedState!==null,Es(e,t,n),Cr=r):Es(e,t,n);break;default:Es(e,t,n)}}function C2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new EY),t.forEach(function(r){var o=$Y.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ti(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Nn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*RY(r/1960))-r,10e?16:e,Hs===null)var r=!1;else{if(e=Hs,Hs=null,Yv=0,It&6)throw Error(Ce(331));var o=It;for(It|=4,Ve=e.current;Ve!==null;){var i=Ve,a=i.child;if(Ve.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lNn()-xC?ou(e,0):SC|=n),ro(e,t)}function Y$(e,t){t===0&&(e.mode&1?(t=Ym,Ym<<=1,!(Ym&130023424)&&(Ym=4194304)):t=1);var n=Vr();e=Qa(e,t),e!==null&&(vh(e,t,n),ro(e,n))}function DY(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Y$(e,n)}function $Y(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ce(314))}r!==null&&r.delete(t),Y$(e,n)}var Z$;Z$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||to.current)eo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return eo=!1,OY(e,t,n);eo=!!(e.flags&131072)}else eo=!1,pn&&t.flags&1048576&&e$(t,Vv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zg(e,t),e=t.pendingProps;var o=lf(t,Er.current);Yc(t,n),o=mC(null,t,r,e,o,n);var i=gC();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,no(r)?(i=!0,Fv(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,cC(t),o.updater=O0,t.stateNode=o,o._reactInternals=t,Ux(t,r,e,n),t=Kx(null,t,r,!0,i,n)):(t.tag=0,pn&&i&&rC(t),$r(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zg(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=WY(r),e=Li(r,e),o){case 0:t=qx(null,t,r,e,n);break e;case 1:t=w2(null,t,r,e,n);break e;case 11:t=y2(null,t,r,e,n);break e;case 14:t=b2(null,t,r,Li(r.type,e),n);break e}throw Error(Ce(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Li(r,o),qx(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Li(r,o),w2(e,t,r,o,n);case 3:e:{if(L$(t),e===null)throw Error(Ce(387));r=t.pendingProps,i=t.memoizedState,o=i.element,a$(e,t),jv(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=df(Error(Ce(423)),t),t=S2(e,t,r,n,o);break e}else if(r!==o){o=df(Error(Ce(424)),t),t=S2(e,t,r,n,o);break e}else for(_o=Qs(t.stateNode.containerInfo.firstChild),Eo=t,pn=!0,Ni=null,n=o$(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(uf(),r===o){t=Ja(e,t,n);break e}$r(e,t,r,n)}t=t.child}return t;case 5:return s$(t),e===null&&zx(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Dx(r,o)?a=null:i!==null&&Dx(r,i)&&(t.flags|=32),M$(e,t),$r(e,t,a,n),t.child;case 6:return e===null&&zx(t),null;case 13:return A$(e,t,n);case 4:return fC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cf(t,null,r,n):$r(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Li(r,o),y2(e,t,r,o,n);case 7:return $r(e,t,t.pendingProps,n),t.child;case 8:return $r(e,t,t.pendingProps.children,n),t.child;case 12:return $r(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,en(zv,r._currentValue),r._currentValue=a,i!==null)if(Hi(i.value,a)){if(i.children===o.children&&!to.current){t=Ja(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Ha(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Bx(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Ce(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Bx(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}$r(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Yc(t,n),o=fi(o),r=r(o),t.flags|=1,$r(e,t,r,n),t.child;case 14:return r=t.type,o=Li(r,t.pendingProps),o=Li(r.type,o),b2(e,t,r,o,n);case 15:return R$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Li(r,o),Zg(e,t),t.tag=1,no(r)?(e=!0,Fv(t)):e=!1,Yc(t,n),E$(t,r,o),Ux(t,r,o,n),Kx(null,t,r,!0,e,n);case 19:return N$(e,t,n);case 22:return I$(e,t,n)}throw Error(Ce(156,t.tag))};function X$(e,t){return OD(e,t)}function FY(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ni(e,t,n,r){return new FY(e,t,n,r)}function PC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function WY(e){if(typeof e=="function")return PC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===HO)return 11;if(e===qO)return 14}return 2}function nl(e,t){var n=e.alternate;return n===null?(n=ni(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&14680064,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}function Jg(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")PC(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Oc:return iu(n.children,o,i,t);case UO:a=8,o|=8;break;case hx:return e=ni(12,n,t,o|2),e.elementType=hx,e.lanes=i,e;case mx:return e=ni(13,n,t,o),e.elementType=mx,e.lanes=i,e;case gx:return e=ni(19,n,t,o),e.elementType=gx,e.lanes=i,e;case sD:return E0(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case iD:a=10;break e;case aD:a=9;break e;case HO:a=11;break e;case qO:a=14;break e;case Ns:a=16,r=null;break e}throw Error(Ce(130,e==null?e:typeof e,""))}return t=ni(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function iu(e,t,n,r){return e=ni(7,e,r,t),e.lanes=n,e}function E0(e,t,n,r){return e=ni(22,e,r,t),e.elementType=sD,e.lanes=n,e.stateNode={isHidden:!1},e}function $1(e,t,n){return e=ni(6,e,null,t),e.lanes=n,e}function F1(e,t,n){return t=ni(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function VY(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=y1(0),this.expirationTimes=y1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=y1(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function EC(e,t,n,r,o,i,a,s,l){return e=new VY(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ni(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},cC(i),e}function zY(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tF)}catch(e){console.error(e)}}tF(),tD.exports=$o;var Iu=tD.exports;const Gd=os(Iu);var L2=Iu;dx.createRoot=L2.createRoot,dx.hydrateRoot=L2.hydrateRoot;var Ye=function(t,n){var r=arguments;if(n==null||!gh.call(n,"css"))return A.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=VO,i[1]=WO(t,n);for(var a=2;aA.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-mail",...e},A.createElement("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),A.createElement("polyline",{points:"11 16 18 16"}),A.createElement("polyline",{points:"6 16 8 16"}),A.createElement("polyline",{points:"6 12 13 12"}),A.createElement("polyline",{points:"16 12 18 12"}));function ur(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 PZ=typeof Symbol=="function"&&Symbol.observable||"@@observable",N2=PZ,W1=()=>Math.random().toString(36).substring(7).split("").join("."),EZ={INIT:`@@redux/INIT${W1()}`,REPLACE:`@@redux/REPLACE${W1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${W1()}`},Jv=EZ;function NC(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 uF(e,t,n){if(typeof e!="function")throw new Error(ur(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ur(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ur(1));return n(uF)(e,t)}let r=e,o=t,i=new Map,a=i,s=0,l=!1;function u(){a===i&&(a=new Map,i.forEach((w,b)=>{a.set(b,w)}))}function f(){if(l)throw new Error(ur(3));return o}function h(w){if(typeof w!="function")throw new Error(ur(4));if(l)throw new Error(ur(5));let b=!0;u();const O=s++;return a.set(O,w),function(){if(b){if(l)throw new Error(ur(6));b=!1,u(),a.delete(O),i=null}}}function p(w){if(!NC(w))throw new Error(ur(7));if(typeof w.type>"u")throw new Error(ur(8));if(typeof w.type!="string")throw new Error(ur(17));if(l)throw new Error(ur(9));try{l=!0,o=r(o,w)}finally{l=!1}return(i=a).forEach(O=>{O()}),w}function m(w){if(typeof w!="function")throw new Error(ur(10));r=w,p({type:Jv.REPLACE})}function g(){const w=h;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(ur(11));function O(){const k=b;k.next&&k.next(f())}return O(),{unsubscribe:w(O)}},[N2](){return this}}}return p({type:Jv.INIT}),{dispatch:p,subscribe:h,getState:f,replaceReducer:m,[N2]:g}}function kZ(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Jv.INIT})>"u")throw new Error(ur(12));if(typeof n(void 0,{type:Jv.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ur(13))})}function TZ(e){const t=Object.keys(e),n={};for(let i=0;i"u")throw s&&s.type,new Error(ur(14));u[h]=g,l=l||g!==m}return l=l||r.length!==Object.keys(a).length,l?u:a}}function ey(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function RZ(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(ur(15))};const a={getState:o.getState,dispatch:(l,...u)=>i(l,...u)},s=e.map(l=>l(a));return i=ey(...s)(o.dispatch),{...o,dispatch:i}}}function IZ(e){return NC(e)&&"type"in e&&typeof e.type=="string"}var cF=Symbol.for("immer-nothing"),D2=Symbol.for("immer-draftable"),Mo=Symbol.for("immer-state");function $i(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var hf=Object.getPrototypeOf;function vu(e){return!!e&&!!e[Mo]}function es(e){var t;return e?fF(e)||Array.isArray(e)||!!e[D2]||!!((t=e.constructor)!=null&&t[D2])||L0(e)||A0(e):!1}var MZ=Object.prototype.constructor.toString();function fF(e){if(!e||typeof e!="object")return!1;const t=hf(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)===MZ}function Qp(e,t){M0(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function M0(e){const t=e[Mo];return t?t.type_:Array.isArray(e)?1:L0(e)?2:A0(e)?3:0}function a_(e,t){return M0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function dF(e,t,n){const r=M0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function LZ(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function L0(e){return e instanceof Map}function A0(e){return e instanceof Set}function ql(e){return e.copy_||e.base_}function s_(e,t){if(L0(e))return new Map(e);if(A0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&fF(e))return hf(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Mo];let r=Reflect.ownKeys(n);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=AZ),Object.freeze(e),t&&Qp(e,(n,r)=>DC(r,!0))),e}function AZ(){$i(2)}function N0(e){return Object.isFrozen(e)}var NZ={};function yu(e){const t=NZ[e];return t||$i(0,e),t}var Jp;function pF(){return Jp}function DZ(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function $2(e,t){t&&(yu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function l_(e){u_(e),e.drafts_.forEach($Z),e.drafts_=null}function u_(e){e===Jp&&(Jp=e.parent_)}function F2(e){return Jp=DZ(Jp,e)}function $Z(e){const t=e[Mo];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function W2(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Mo].modified_&&(l_(t),$i(4)),es(e)&&(e=ty(t,e),t.parent_||ny(t,e)),t.patches_&&yu("Patches").generateReplacementPatches_(n[Mo].base_,e,t.patches_,t.inversePatches_)):e=ty(t,n,[]),l_(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==cF?e:void 0}function ty(e,t,n){if(N0(t))return t;const r=t[Mo];if(!r)return Qp(t,(o,i)=>V2(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ny(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),Qp(i,(s,l)=>V2(e,r,o,s,l,n,a)),ny(e,o,!1),n&&e.patches_&&yu("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function V2(e,t,n,r,o,i,a){if(vu(o)){const s=i&&t&&t.type_!==3&&!a_(t.assigned_,r)?i.concat(r):void 0,l=ty(e,o,s);if(dF(n,r,l),vu(l))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(es(o)&&!N0(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ty(e,o),(!t||!t.scope_.parent_)&&ny(e,o)}}function ny(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&DC(t,n)}function FZ(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:pF(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=$C;n&&(o=[r],i=eh);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var $C={get(e,t){if(t===Mo)return e;const n=ql(e);if(!a_(n,t))return WZ(e,n,t);const r=n[t];return e.finalized_||!es(r)?r:r===V1(e.base_,t)?(z1(e),e.copy_[t]=f_(r,e)):r},has(e,t){return t in ql(e)},ownKeys(e){return Reflect.ownKeys(ql(e))},set(e,t,n){const r=hF(ql(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=V1(ql(e),t),i=o==null?void 0:o[Mo];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(LZ(n,o)&&(n!==void 0||a_(e.base_,t)))return!0;z1(e),c_(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 V1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,z1(e),c_(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ql(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){$i(11)},getPrototypeOf(e){return hf(e.base_)},setPrototypeOf(){$i(12)}},eh={};Qp($C,(e,t)=>{eh[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});eh.deleteProperty=function(e,t){return eh.set.call(this,e,t,void 0)};eh.set=function(e,t,n){return $C.set.call(this,e[0],t,n,e[0])};function V1(e,t){const n=e[Mo];return(n?ql(n):e)[t]}function WZ(e,t,n){var o;const r=hF(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function hF(e,t){if(!(t in e))return;let n=hf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=hf(n)}}function c_(e){e.modified_||(e.modified_=!0,e.parent_&&c_(e.parent_))}function z1(e){e.copy_||(e.copy_=s_(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var VZ=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(l=i,...u){return a.produce(l,f=>n.call(this,f,...u))}}typeof n!="function"&&$i(6),r!==void 0&&typeof r!="function"&&$i(7);let o;if(es(t)){const i=F2(this),a=f_(t,void 0);let s=!0;try{o=n(a),s=!1}finally{s?l_(i):u_(i)}return $2(i,r),W2(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===cF&&(o=void 0),this.autoFreeze_&&DC(o,!0),r){const i=[],a=[];yu("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else $i(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,o;return[this.produce(t,n,(a,s)=>{r=a,o=s}),r,o]},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){es(e)||$i(8),vu(e)&&(e=zZ(e));const t=F2(this),n=f_(e,void 0);return n[Mo].isManual_=!0,u_(t),n}finishDraft(e,t){const n=e&&e[Mo];(!n||!n.isManual_)&&$i(9);const{scope_:r}=n;return $2(r,t),W2(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=yu("Patches").applyPatches_;return vu(e)?r(e,t):this.produce(e,o=>r(o,t))}};function f_(e,t){const n=L0(e)?yu("MapSet").proxyMap_(e,t):A0(e)?yu("MapSet").proxySet_(e,t):FZ(e,t);return(t?t.scope_:pF()).drafts_.push(n),n}function zZ(e){return vu(e)||$i(10,e),mF(e)}function mF(e){if(!es(e)||N0(e))return e;const t=e[Mo];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=s_(e,t.scope_.immer_.useStrictShallowCopy_)}else n=s_(e,!0);return Qp(n,(r,o)=>{dF(n,r,mF(o))}),t&&(t.finalized_=!1),n}var Lo=new VZ,gF=Lo.produce;Lo.produceWithPatches.bind(Lo);Lo.setAutoFreeze.bind(Lo);Lo.setUseStrictShallowCopy.bind(Lo);Lo.applyPatches.bind(Lo);Lo.createDraft.bind(Lo);Lo.finishDraft.bind(Lo);function BZ(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function jZ(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function UZ(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var z2=e=>Array.isArray(e)?e:[e];function HZ(e){const t=Array.isArray(e[0])?e[0]:e;return UZ(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function qZ(e,t){const n=[],{length:r}=e;for(let o=0;o{n=sg(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function ZZ(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,a=0,s,l={},u=o.pop();typeof u=="object"&&(l=u,u=o.pop()),BZ(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const f={...n,...l},{memoize:h,memoizeOptions:p=[],argsMemoize:m=vF,argsMemoizeOptions:g=[],devModeChecks:y={}}=f,w=z2(p),b=z2(g),O=HZ(o),C=h(function(){return i++,u.apply(null,arguments)},...w),k=m(function(){a++;const T=qZ(O,arguments);return s=C.apply(null,T),s},...b);return Object.assign(k,{resultFunc:u,memoizedResultFunc:C,dependencies:O,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:h,argsMemoize:m})};return Object.assign(r,{withTypes:()=>r}),r}var yF=ZZ(vF),XZ=Object.assign((e,t=yF)=>{jZ(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),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>XZ});function bF(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var QZ=bF(),JZ=bF,eX=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ey:ey.apply(null,arguments)},tX=e=>e&&typeof e.match=="function";function mp(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(qa(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>IZ(r)&&r.type===e,n}var wF=class Yd extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Yd.prototype)}static get[Symbol.species](){return Yd}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Yd(...t[0].concat(this)):new Yd(...t.concat(this))}};function j2(e){return es(e)?gF(e,()=>{}):e}function U2(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function nX(e){return typeof e=="boolean"}var rX=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new wF;return n&&(nX(n)?a.push(QZ):a.push(JZ(n.extraArgument))),a},oX="RTK_autoBatch",H2=e=>t=>{setTimeout(t,e)},iX=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:H2(10):e.type==="callback"?e.queueNotification:H2(e.timeout),u=()=>{a=!1,i&&(i=!1,s.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const h=()=>o&&f(),p=r.subscribe(h);return s.add(f),()=>{p(),s.delete(f)}},dispatch(f){var h;try{return o=!((h=f==null?void 0:f.meta)!=null&&h[oX]),i=!o,i&&(a||(a=!0,l(u))),r.dispatch(f)}finally{o=!0}}})},aX=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new wF(e);return r&&o.push(iX(typeof r=="object"?r:void 0)),o};function sX(e){const t=rX(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(NC(n))s=TZ(n);else throw new Error(qa(1));let l;typeof r=="function"?l=r(t):l=t();let u=ey;o&&(u=eX({trace:!1,...typeof o=="object"&&o}));const f=RZ(...l),h=aX(f);let p=typeof a=="function"?a(h):h();const m=u(...p);return uF(s,i,m)}function SF(e){const t={},n=[];let r;const o={addCase(i,a){const s=typeof i=="string"?i:i.type;if(!s)throw new Error(qa(28));if(s in t)throw new Error(qa(29));return t[s]=a,o},addMatcher(i,a){return n.push({matcher:i,reducer:a}),o},addDefaultCase(i){return r=i,o}};return e(o),[t,n,r]}function lX(e){return typeof e=="function"}function uX(e,t){let[n,r,o]=SF(t),i;if(lX(e))i=()=>j2(e());else{const s=j2(e);i=()=>s}function a(s=i(),l){let u=[n[l.type],...r.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return u.filter(f=>!!f).length===0&&(u=[o]),u.reduce((f,h)=>{if(h)if(vu(f)){const m=h(f,l);return m===void 0?f:m}else{if(es(f))return gF(f,p=>h(p,l));{const p=h(f,l);if(p===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return f},s)}return a.getInitialState=i,a}var cX=(e,t)=>tX(e)?e.match(t):e(t);function fX(...e){return t=>e.some(n=>cX(n,t))}var dX="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ll=(e=21)=>{let t="",n=e;for(;n--;)t+=dX[Math.random()*64|0];return t},pX=["name","message","stack","code"],B1=class{constructor(e,t){nc(this,"_type");this.payload=e,this.meta=t}},q2=class{constructor(e,t){nc(this,"_type");this.payload=e,this.meta=t}},hX=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of pX)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},mX=(()=>{function e(t,n,r){const o=mp(t+"/fulfilled",(l,u,f,h)=>({payload:l,meta:{...h||{},arg:f,requestId:u,requestStatus:"fulfilled"}})),i=mp(t+"/pending",(l,u,f)=>({payload:void 0,meta:{...f||{},arg:u,requestId:l,requestStatus:"pending"}})),a=mp(t+"/rejected",(l,u,f,h,p)=>({payload:h,error:(r&&r.serializeError||hX)(l||"Rejected"),meta:{...p||{},arg:f,requestId:u,rejectedWithValue:!!h,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function s(l){return(u,f,h)=>{const p=r!=null&&r.idGenerator?r.idGenerator(l):ll(),m=new AbortController;let g,y;function w(O){y=O,m.abort()}const b=async function(){var k,S;let O;try{let T=(k=r==null?void 0:r.condition)==null?void 0:k.call(r,l,{getState:f,extra:h});if(vX(T)&&(T=await T),T===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const P=new Promise((v,E)=>{g=()=>{E({name:"AbortError",message:y||"Aborted"})},m.signal.addEventListener("abort",g)});u(i(p,l,(S=r==null?void 0:r.getPendingMeta)==null?void 0:S.call(r,{requestId:p,arg:l},{getState:f,extra:h}))),O=await Promise.race([P,Promise.resolve(n(l,{dispatch:u,getState:f,extra:h,requestId:p,signal:m.signal,abort:w,rejectWithValue:(v,E)=>new B1(v,E),fulfillWithValue:(v,E)=>new q2(v,E)})).then(v=>{if(v instanceof B1)throw v;return v instanceof q2?o(v.payload,p,l,v.meta):o(v,p,l)})])}catch(T){O=T instanceof B1?a(null,p,l,T.payload,T.meta):a(T,p,l)}finally{g&&m.signal.removeEventListener("abort",g)}return r&&!r.dispatchConditionRejection&&a.match(O)&&O.meta.condition||u(O),O}();return Object.assign(b,{abort:w,requestId:p,arg:l,unwrap(){return b.then(gX)}})}}return Object.assign(s,{pending:i,rejected:a,fulfilled:o,settled:fX(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function gX(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function vX(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var yX=Symbol.for("rtk-slice-createasyncthunk");function bX(e,t){return`${e}/${t}`}function wX({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[yX];return function(o){const{name:i,reducerPath:a=i}=o;if(!i)throw new Error(qa(11));typeof process<"u";const s=(typeof o.reducers=="function"?o.reducers(xX()):o.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(C,k){const S=typeof C=="string"?C:C.type;if(!S)throw new Error(qa(12));if(S in u.sliceCaseReducersByType)throw new Error(qa(13));return u.sliceCaseReducersByType[S]=k,f},addMatcher(C,k){return u.sliceMatchers.push({matcher:C,reducer:k}),f},exposeAction(C,k){return u.actionCreators[C]=k,f},exposeCaseReducer(C,k){return u.sliceCaseReducersByName[C]=k,f}};l.forEach(C=>{const k=s[C],S={reducerName:C,type:bX(i,C),createNotation:typeof o.reducers=="function"};OX(k)?PX(S,k,f,t):_X(S,k,f)});function h(){const[C={},k=[],S=void 0]=typeof o.extraReducers=="function"?SF(o.extraReducers):[o.extraReducers],T={...C,...u.sliceCaseReducersByType};return uX(o.initialState,P=>{for(let v in T)P.addCase(v,T[v]);for(let v of u.sliceMatchers)P.addMatcher(v.matcher,v.reducer);for(let v of k)P.addMatcher(v.matcher,v.reducer);S&&P.addDefaultCase(S)})}const p=C=>C,m=new Map;let g;function y(C,k){return g||(g=h()),g(C,k)}function w(){return g||(g=h()),g.getInitialState()}function b(C,k=!1){function S(P){let v=P[C];return typeof v>"u"&&k&&(v=w()),v}function T(P=p){const v=U2(m,k,()=>new WeakMap);return U2(v,P,()=>{const E={};for(const[_,R]of Object.entries(o.selectors??{}))E[_]=SX(R,P,w,k);return E})}return{reducerPath:C,getSelectors:T,get selectors(){return T(S)},selectSlice:S}}const O={name:i,reducer:y,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:w,...b(a),injectInto(C,{reducerPath:k,...S}={}){const T=k??a;return C.inject({reducerPath:T,reducer:y},S),{...O,...b(T,!0)}}};return O}}function SX(e,t,n,r){function o(i,...a){let s=t(i);return typeof s>"u"&&r&&(s=n()),e(s,...a)}return o.unwrapped=e,o}var yl=wX();function xX(){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 _X({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!CX(r))throw new Error(qa(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?mp(e,a):mp(e))}function OX(e){return e._reducerDefinitionType==="asyncThunk"}function CX(e){return e._reducerDefinitionType==="reducerWithPrepare"}function PX({type:e,reducerName:t},n,r,o){if(!o)throw new Error(qa(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:u,options:f}=n,h=o(e,i,f);r.exposeAction(t,h),a&&r.addCase(h.fulfilled,a),s&&r.addCase(h.pending,s),l&&r.addCase(h.rejected,l),u&&r.addMatcher(h.settled,u),r.exposeCaseReducer(t,{fulfilled:a||lg,pending:s||lg,rejected:l||lg,settled:u||lg})}function lg(){}function qa(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 $t=(e=>(e.cutting="mainMenu.cutting-button",e.metadata="mainMenu.metadata-button",e.trackSelection="mainMenu.select-tracks-button",e.subtitles="mainMenu.subtitles-button",e.thumbnail="mainMenu.thumbnail-button",e.finish="mainMenu.finish-button",e.keyboardControls="mainMenu.keyboard-controls-button",e))($t||{});const EX={value:$t.cutting},FC=yl({name:"mainMenuState",initialState:EX,reducers:{setState:(e,t)=>{e.value=t.payload}},selectors:{selectMainMenuState:e=>e.value}}),{setState:kX}=FC.actions,{selectMainMenuState:xF}=FC.selectors,TX=FC.reducer,RX={value:"Start processing",pageNumber:0},WC=yl({name:"finishState",initialState:RX,reducers:{setState:(e,t)=>{e.value=t.payload},setPageNumber:(e,t)=>{e.pageNumber=t.payload}},selectors:{selectFinishState:e=>e.value,selectPageNumber:e=>e.pageNumber}}),{setState:IX,setPageNumber:VC}=WC.actions,{selectFinishState:MX,selectPageNumber:LX}=WC.selectors,AX=WC.reducer;var ry={exports:{}};/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function A1(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ux(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var bY=typeof WeakMap=="function"?WeakMap:Map;function T$(e,t,n){n=Ha(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gv||(Gv=!0,e_=r),Ux(e,t)},n}function R$(e,t,n){n=Ha(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ux(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ux(e,t),typeof r!="function"&&(el===null?el=new Set([this]):el.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function gI(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new bY;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=LY.bind(null,e,t,n),t.then(e,e))}function vI(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function yI(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ha(-1,1),t.tag=2,Js(n,t,1))),n.lanes|=1),e)}var wY=is.ReactCurrentOwner,eo=!1;function $r(e,t,n,r){t.child=e===null?i$(t,null,n,r):cf(t,e.child,n,r)}function bI(e,t,n,r,o){n=n.render;var i=t.ref;return Yc(t,o),r=mC(e,t,n,r,i,o),n=gC(),e!==null&&!eo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ja(e,t,o)):(pn&&n&&rC(t),t.flags|=1,$r(e,t,r,o),t.child)}function wI(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!PC(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,I$(e,t,i,r,o)):(e=Jg(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:zp,n(a,r)&&e.ref===t.ref)return Ja(e,t,o)}return t.flags|=1,e=nl(i,r),e.ref=t.ref,e.return=t,t.child=e}function I$(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(zp(i,r)&&e.ref===t.ref)if(eo=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(eo=!0);else return t.lanes=e.lanes,Ja(e,t,o)}return Hx(e,t,n,r,o)}function M$(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},en(Ac,wo),wo|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,en(Ac,wo),wo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,en(Ac,wo),wo|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,en(Ac,wo),wo|=r;return $r(e,t,o,n),t.child}function L$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hx(e,t,n,r,o){var i=no(n)?fu:Er.current;return i=lf(t,i),Yc(t,o),n=mC(e,t,n,r,i,o),r=gC(),e!==null&&!eo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ja(e,t,o)):(pn&&r&&rC(t),t.flags|=1,$r(e,t,n,o),t.child)}function SI(e,t,n,r,o){if(no(n)){var i=!0;Fv(t)}else i=!1;if(Yc(t,o),t.stateNode===null)Zg(e,t),k$(t,n,r),jx(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=fi(u):(u=no(n)?fu:Er.current,u=lf(t,u));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&mI(t,a,r,u),Ds=!1;var p=t.memoizedState;a.state=p,jv(t,r,a,o),l=t.memoizedState,s!==r||p!==l||to.current||Ds?(typeof f=="function"&&(Bx(t,n,f,r),l=t.memoizedState),(s=Ds||hI(t,n,s,r,p,l,u))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,s$(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Li(t.type,s),a.props=u,h=t.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=fi(l):(l=no(n)?fu:Er.current,l=lf(t,l));var m=n.getDerivedStateFromProps;(f=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==h||p!==l)&&mI(t,a,r,l),Ds=!1,p=t.memoizedState,a.state=p,jv(t,r,a,o);var g=t.memoizedState;s!==h||p!==g||to.current||Ds?(typeof m=="function"&&(Bx(t,n,m,r),g=t.memoizedState),(u=Ds||hI(t,n,u,r,p,g,l)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,g,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,g,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),a.props=r,a.state=g,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return qx(e,t,n,r,i,o)}function qx(e,t,n,r,o,i){L$(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&aI(t,n,!1),Ja(e,t,i);r=t.stateNode,wY.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=cf(t,e.child,null,i),t.child=cf(t,null,s,i)):$r(e,t,s,i),t.memoizedState=r.state,o&&aI(t,n,!0),t.child}function A$(e){var t=e.stateNode;t.pendingContext?iI(e,t.pendingContext,t.pendingContext!==t.context):t.context&&iI(e,t.context,!1),fC(e,t.containerInfo)}function xI(e,t,n,r,o){return uf(),iC(o),t.flags|=256,$r(e,t,n,r),t.child}var Kx={dehydrated:null,treeContext:null,retryLane:0};function Gx(e){return{baseLanes:e,cachePool:null,transitions:null}}function N$(e,t,n){var r=t.pendingProps,o=vn.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),en(vn,o&1),e===null)return Vx(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=P0(a,r,0,null),e=ou(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Gx(n),t.memoizedState=Kx,e):bC(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return SY(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=nl(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=nl(s,i):(i=ou(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Gx(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Kx,r}return i=e.child,e=i.sibling,r=nl(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function bC(e,t){return t=P0({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function rg(e,t,n,r){return r!==null&&iC(r),cf(t,e.child,null,n),e=bC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function SY(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=A1(Error(Ce(422))),rg(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=P0({mode:"visible",children:r.children},o,0,null),i=ou(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&cf(t,e.child,null,a),t.child.memoizedState=Gx(a),t.memoizedState=Kx,i);if(!(t.mode&1))return rg(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(Ce(419)),r=A1(i,r,void 0),rg(e,t,a,r)}if(s=(a&e.childLanes)!==0,eo||s){if(r=nr,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Qa(e,o),Ui(r,e,o,-1))}return CC(),r=A1(Error(Ce(421))),rg(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=AY.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,_o=Qs(o.nextSibling),Eo=t,pn=!0,Ni=null,e!==null&&(Jo[ei++]=Ba,Jo[ei++]=ja,Jo[ei++]=du,Ba=e.id,ja=e.overflow,du=t),t=bC(t,r.children),t.flags|=4096,t)}function _I(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),zx(e.return,t,n)}function N1(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function D$(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if($r(e,t,r.children,n),r=vn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_I(e,n,t);else if(e.tag===19)_I(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}r&=1}if(en(vn,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Uv(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),N1(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Uv(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}N1(t,!0,n,null,i);break;case"together":N1(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ja(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),hu|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ce(153));if(t.child!==null){for(e=t.child,n=nl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=nl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xY(e,t,n){switch(t.tag){case 3:A$(t),uf();break;case 5:l$(t);break;case 1:no(t.type)&&Fv(t);break;case 4:fC(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;en(zv,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(en(vn,vn.current&1),t.flags|=128,null):n&t.child.childLanes?N$(e,t,n):(en(vn,vn.current&1),e=Ja(e,t,n),e!==null?e.sibling:null);en(vn,vn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return D$(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),en(vn,vn.current),r)break;return null;case 22:case 23:return t.lanes=0,M$(e,t,n)}return Ja(e,t,n)}var $$,Yx,F$,W$;$$=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Yx=function(){};F$=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ql(ma.current);var i=null;switch(n){case"input":o=vx(e,o),r=vx(e,r),i=[];break;case"select":o=Sn({},o,{value:void 0}),r=Sn({},r,{value:void 0}),i=[];break;case"textarea":o=wx(e,o),r=wx(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Dv)}xx(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ap.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ap.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&an("scroll",e),i||s===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};W$=function(e,t,n,r){n!==r&&(t.flags|=4)};function _d(e,t){if(!pn)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 r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function vr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _Y(e,t,n){var r=t.pendingProps;switch(oC(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vr(t),null;case 1:return no(t.type)&&$v(),vr(t),null;case 3:return r=t.stateNode,ff(),sn(to),sn(Er),pC(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(tg(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ni!==null&&(r_(Ni),Ni=null))),Yx(e,t),vr(t),null;case 5:dC(t);var o=Ql(qp.current);if(n=t.type,e!==null&&t.stateNode!=null)F$(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Ce(166));return vr(t),null}if(e=Ql(ma.current),tg(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ca]=t,r[Up]=i,e=(t.mode&1)!==0,n){case"dialog":an("cancel",r),an("close",r);break;case"iframe":case"object":case"embed":an("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[ca]=t,e[Up]=r,$$(e,t,!1,!1),t.stateNode=e;e:{switch(a=_x(n,r),n){case"dialog":an("cancel",e),an("close",e),o=r;break;case"iframe":case"object":case"embed":an("load",e),o=r;break;case"video":case"audio":for(o=0;opf&&(t.flags|=128,r=!0,_d(i,!1),t.lanes=4194304)}else{if(!r)if(e=Uv(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_d(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!pn)return vr(t),null}else 2*Nn()-i.renderingStartTime>pf&&n!==1073741824&&(t.flags|=128,r=!0,_d(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Nn(),t.sibling=null,n=vn.current,en(vn,r?n&1|2:n&1),t):(vr(t),null);case 22:case 23:return OC(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?wo&1073741824&&(vr(t),t.subtreeFlags&6&&(t.flags|=8192)):vr(t),null;case 24:return null;case 25:return null}throw Error(Ce(156,t.tag))}function OY(e,t){switch(oC(t),t.tag){case 1:return no(t.type)&&$v(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ff(),sn(to),sn(Er),pC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return dC(t),null;case 13:if(sn(vn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ce(340));uf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return sn(vn),null;case 4:return ff(),null;case 10:return lC(t.type._context),null;case 22:case 23:return OC(),null;case 24:return null;default:return null}}var og=!1,Cr=!1,CY=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function Lc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Tn(e,t,r)}else n.current=null}function Zx(e,t,n){try{n()}catch(r){Tn(e,t,r)}}var OI=!1;function PY(e,t){if(Lx=Lv,e=UD(),nC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,f=0,h=e,p=null;t:for(;;){for(var m;h!==n||o!==0&&h.nodeType!==3||(s=a+o),h!==i||r!==0&&h.nodeType!==3||(l=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(m=h.firstChild)!==null;)p=h,h=m;for(;;){if(h===e)break t;if(p===n&&++u===o&&(s=a),p===i&&++f===r&&(l=a),(m=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ax={focusedElem:e,selectionRange:n},Lv=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){t=Ve;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,w=g.memoizedState,b=t.stateNode,O=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:Li(t.type,y),w);b.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ce(163))}}catch(k){Tn(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}return g=OI,OI=!1,g}function dp(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Zx(t,n,i)}o=o.next}while(o!==r)}}function O0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xx(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function V$(e){var t=e.alternate;t!==null&&(e.alternate=null,V$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ca],delete t[Up],delete t[$x],delete t[lY],delete t[uY])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function z$(e){return e.tag===5||e.tag===3||e.tag===4}function CI(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||z$(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.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 Qx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Dv));else if(r!==4&&(e=e.child,e!==null))for(Qx(e,t,n),e=e.sibling;e!==null;)Qx(e,t,n),e=e.sibling}function Jx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Jx(e,t,n),e=e.sibling;e!==null;)Jx(e,t,n),e=e.sibling}var cr=null,Ai=!1;function Es(e,t,n){for(n=n.child;n!==null;)B$(e,t,n),n=n.sibling}function B$(e,t,n){if(ha&&typeof ha.onCommitFiberUnmount=="function")try{ha.onCommitFiberUnmount(g0,n)}catch{}switch(n.tag){case 5:Cr||Lc(n,t);case 6:var r=cr,o=Ai;cr=null,Es(e,t,n),cr=r,Ai=o,cr!==null&&(Ai?(e=cr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):cr.removeChild(n.stateNode));break;case 18:cr!==null&&(Ai?(e=cr,n=n.stateNode,e.nodeType===8?k1(e.parentNode,n):e.nodeType===1&&k1(e,n),Wp(e)):k1(cr,n.stateNode));break;case 4:r=cr,o=Ai,cr=n.stateNode.containerInfo,Ai=!0,Es(e,t,n),cr=r,Ai=o;break;case 0:case 11:case 14:case 15:if(!Cr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Zx(n,t,a),o=o.next}while(o!==r)}Es(e,t,n);break;case 1:if(!Cr&&(Lc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Tn(n,t,s)}Es(e,t,n);break;case 21:Es(e,t,n);break;case 22:n.mode&1?(Cr=(r=Cr)||n.memoizedState!==null,Es(e,t,n),Cr=r):Es(e,t,n);break;default:Es(e,t,n)}}function PI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new CY),t.forEach(function(r){var o=NY.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ti(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Nn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kY(r/1960))-r,10e?16:e,Hs===null)var r=!1;else{if(e=Hs,Hs=null,Yv=0,It&6)throw Error(Ce(331));var o=It;for(It|=4,Ve=e.current;Ve!==null;){var i=Ve,a=i.child;if(Ve.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lNn()-xC?ru(e,0):SC|=n),ro(e,t)}function Z$(e,t){t===0&&(e.mode&1?(t=Ym,Ym<<=1,!(Ym&130023424)&&(Ym=4194304)):t=1);var n=Vr();e=Qa(e,t),e!==null&&(vh(e,t,n),ro(e,n))}function AY(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Z$(e,n)}function NY(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ce(314))}r!==null&&r.delete(t),Z$(e,n)}var X$;X$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||to.current)eo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return eo=!1,xY(e,t,n);eo=!!(e.flags&131072)}else eo=!1,pn&&t.flags&1048576&&t$(t,Vv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zg(e,t),e=t.pendingProps;var o=lf(t,Er.current);Yc(t,n),o=mC(null,t,r,e,o,n);var i=gC();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,no(r)?(i=!0,Fv(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,cC(t),o.updater=_0,t.stateNode=o,o._reactInternals=t,jx(t,r,e,n),t=qx(null,t,r,!0,i,n)):(t.tag=0,pn&&i&&rC(t),$r(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zg(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=$Y(r),e=Li(r,e),o){case 0:t=Hx(null,t,r,e,n);break e;case 1:t=SI(null,t,r,e,n);break e;case 11:t=bI(null,t,r,e,n);break e;case 14:t=wI(null,t,r,Li(r.type,e),n);break e}throw Error(Ce(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Li(r,o),Hx(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Li(r,o),SI(e,t,r,o,n);case 3:e:{if(A$(t),e===null)throw Error(Ce(387));r=t.pendingProps,i=t.memoizedState,o=i.element,s$(e,t),jv(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=df(Error(Ce(423)),t),t=xI(e,t,r,n,o);break e}else if(r!==o){o=df(Error(Ce(424)),t),t=xI(e,t,r,n,o);break e}else for(_o=Qs(t.stateNode.containerInfo.firstChild),Eo=t,pn=!0,Ni=null,n=i$(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(uf(),r===o){t=Ja(e,t,n);break e}$r(e,t,r,n)}t=t.child}return t;case 5:return l$(t),e===null&&Vx(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Nx(r,o)?a=null:i!==null&&Nx(r,i)&&(t.flags|=32),L$(e,t),$r(e,t,a,n),t.child;case 6:return e===null&&Vx(t),null;case 13:return N$(e,t,n);case 4:return fC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cf(t,null,r,n):$r(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Li(r,o),bI(e,t,r,o,n);case 7:return $r(e,t,t.pendingProps,n),t.child;case 8:return $r(e,t,t.pendingProps.children,n),t.child;case 12:return $r(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,en(zv,r._currentValue),r._currentValue=a,i!==null)if(Hi(i.value,a)){if(i.children===o.children&&!to.current){t=Ja(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Ha(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),zx(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Ce(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),zx(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}$r(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Yc(t,n),o=fi(o),r=r(o),t.flags|=1,$r(e,t,r,n),t.child;case 14:return r=t.type,o=Li(r,t.pendingProps),o=Li(r.type,o),wI(e,t,r,o,n);case 15:return I$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Li(r,o),Zg(e,t),t.tag=1,no(r)?(e=!0,Fv(t)):e=!1,Yc(t,n),k$(t,r,o),jx(t,r,o,n),qx(null,t,r,!0,e,n);case 19:return D$(e,t,n);case 22:return M$(e,t,n)}throw Error(Ce(156,t.tag))};function Q$(e,t){return CD(e,t)}function DY(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ni(e,t,n,r){return new DY(e,t,n,r)}function PC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $Y(e){if(typeof e=="function")return PC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===HO)return 11;if(e===qO)return 14}return 2}function nl(e,t){var n=e.alternate;return n===null?(n=ni(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&14680064,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}function Jg(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")PC(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Oc:return ou(n.children,o,i,t);case UO:a=8,o|=8;break;case px:return e=ni(12,n,t,o|2),e.elementType=px,e.lanes=i,e;case hx:return e=ni(13,n,t,o),e.elementType=hx,e.lanes=i,e;case mx:return e=ni(19,n,t,o),e.elementType=mx,e.lanes=i,e;case lD:return P0(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case aD:a=10;break e;case sD:a=9;break e;case HO:a=11;break e;case qO:a=14;break e;case Ns:a=16,r=null;break e}throw Error(Ce(130,e==null?e:typeof e,""))}return t=ni(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ou(e,t,n,r){return e=ni(7,e,r,t),e.lanes=n,e}function P0(e,t,n,r){return e=ni(22,e,r,t),e.elementType=lD,e.lanes=n,e.stateNode={isHidden:!1},e}function D1(e,t,n){return e=ni(6,e,null,t),e.lanes=n,e}function $1(e,t,n){return t=ni(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function FY(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=v1(0),this.expirationTimes=v1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=v1(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function EC(e,t,n,r,o,i,a,s,l){return e=new FY(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ni(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},cC(i),e}function WY(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nF)}catch(e){console.error(e)}}nF(),nD.exports=$o;var Ru=nD.exports;const Gd=os(Ru);var AI=Ru;fx.createRoot=AI.createRoot,fx.hydrateRoot=AI.hydrateRoot;var Ye=function(t,n){var r=arguments;if(n==null||!gh.call(n,"css"))return A.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=VO,i[1]=WO(t,n);for(var a=2;aA.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-mail",...e},A.createElement("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),A.createElement("polyline",{points:"11 16 18 16"}),A.createElement("polyline",{points:"6 16 8 16"}),A.createElement("polyline",{points:"6 12 13 12"}),A.createElement("polyline",{points:"16 12 18 12"}));function ur(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 CZ=typeof Symbol=="function"&&Symbol.observable||"@@observable",DI=CZ,F1=()=>Math.random().toString(36).substring(7).split("").join("."),PZ={INIT:`@@redux/INIT${F1()}`,REPLACE:`@@redux/REPLACE${F1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${F1()}`},Qv=PZ;function NC(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 lF(e,t,n){if(typeof e!="function")throw new Error(ur(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ur(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ur(1));return n(lF)(e,t)}let r=e,o=t,i=new Map,a=i,s=0,l=!1;function u(){a===i&&(a=new Map,i.forEach((w,b)=>{a.set(b,w)}))}function f(){if(l)throw new Error(ur(3));return o}function h(w){if(typeof w!="function")throw new Error(ur(4));if(l)throw new Error(ur(5));let b=!0;u();const O=s++;return a.set(O,w),function(){if(b){if(l)throw new Error(ur(6));b=!1,u(),a.delete(O),i=null}}}function p(w){if(!NC(w))throw new Error(ur(7));if(typeof w.type>"u")throw new Error(ur(8));if(typeof w.type!="string")throw new Error(ur(17));if(l)throw new Error(ur(9));try{l=!0,o=r(o,w)}finally{l=!1}return(i=a).forEach(O=>{O()}),w}function m(w){if(typeof w!="function")throw new Error(ur(10));r=w,p({type:Qv.REPLACE})}function g(){const w=h;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(ur(11));function O(){const k=b;k.next&&k.next(f())}return O(),{unsubscribe:w(O)}},[DI](){return this}}}return p({type:Qv.INIT}),{dispatch:p,subscribe:h,getState:f,replaceReducer:m,[DI]:g}}function EZ(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Qv.INIT})>"u")throw new Error(ur(12));if(typeof n(void 0,{type:Qv.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ur(13))})}function kZ(e){const t=Object.keys(e),n={};for(let i=0;i"u")throw s&&s.type,new Error(ur(14));u[h]=g,l=l||g!==m}return l=l||r.length!==Object.keys(a).length,l?u:a}}function Jv(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function TZ(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(ur(15))};const a={getState:o.getState,dispatch:(l,...u)=>i(l,...u)},s=e.map(l=>l(a));return i=Jv(...s)(o.dispatch),{...o,dispatch:i}}}function RZ(e){return NC(e)&&"type"in e&&typeof e.type=="string"}var uF=Symbol.for("immer-nothing"),$I=Symbol.for("immer-draftable"),Mo=Symbol.for("immer-state");function $i(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var hf=Object.getPrototypeOf;function gu(e){return!!e&&!!e[Mo]}function es(e){var t;return e?cF(e)||Array.isArray(e)||!!e[$I]||!!((t=e.constructor)!=null&&t[$I])||M0(e)||L0(e):!1}var IZ=Object.prototype.constructor.toString();function cF(e){if(!e||typeof e!="object")return!1;const t=hf(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)===IZ}function Qp(e,t){I0(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function I0(e){const t=e[Mo];return t?t.type_:Array.isArray(e)?1:M0(e)?2:L0(e)?3:0}function a_(e,t){return I0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function fF(e,t,n){const r=I0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function MZ(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function M0(e){return e instanceof Map}function L0(e){return e instanceof Set}function Hl(e){return e.copy_||e.base_}function s_(e,t){if(M0(e))return new Map(e);if(L0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&cF(e))return hf(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Mo];let r=Reflect.ownKeys(n);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=LZ),Object.freeze(e),t&&Qp(e,(n,r)=>DC(r,!0))),e}function LZ(){$i(2)}function A0(e){return Object.isFrozen(e)}var AZ={};function vu(e){const t=AZ[e];return t||$i(0,e),t}var Jp;function dF(){return Jp}function NZ(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function FI(e,t){t&&(vu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function l_(e){u_(e),e.drafts_.forEach(DZ),e.drafts_=null}function u_(e){e===Jp&&(Jp=e.parent_)}function WI(e){return Jp=NZ(Jp,e)}function DZ(e){const t=e[Mo];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function VI(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Mo].modified_&&(l_(t),$i(4)),es(e)&&(e=ey(t,e),t.parent_||ty(t,e)),t.patches_&&vu("Patches").generateReplacementPatches_(n[Mo].base_,e,t.patches_,t.inversePatches_)):e=ey(t,n,[]),l_(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==uF?e:void 0}function ey(e,t,n){if(A0(t))return t;const r=t[Mo];if(!r)return Qp(t,(o,i)=>zI(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ty(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),Qp(i,(s,l)=>zI(e,r,o,s,l,n,a)),ty(e,o,!1),n&&e.patches_&&vu("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function zI(e,t,n,r,o,i,a){if(gu(o)){const s=i&&t&&t.type_!==3&&!a_(t.assigned_,r)?i.concat(r):void 0,l=ey(e,o,s);if(fF(n,r,l),gu(l))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(es(o)&&!A0(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ey(e,o),(!t||!t.scope_.parent_)&&ty(e,o)}}function ty(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&DC(t,n)}function $Z(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:dF(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=$C;n&&(o=[r],i=eh);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var $C={get(e,t){if(t===Mo)return e;const n=Hl(e);if(!a_(n,t))return FZ(e,n,t);const r=n[t];return e.finalized_||!es(r)?r:r===W1(e.base_,t)?(V1(e),e.copy_[t]=f_(r,e)):r},has(e,t){return t in Hl(e)},ownKeys(e){return Reflect.ownKeys(Hl(e))},set(e,t,n){const r=pF(Hl(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=W1(Hl(e),t),i=o==null?void 0:o[Mo];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(MZ(n,o)&&(n!==void 0||a_(e.base_,t)))return!0;V1(e),c_(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 W1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,V1(e),c_(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Hl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){$i(11)},getPrototypeOf(e){return hf(e.base_)},setPrototypeOf(){$i(12)}},eh={};Qp($C,(e,t)=>{eh[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});eh.deleteProperty=function(e,t){return eh.set.call(this,e,t,void 0)};eh.set=function(e,t,n){return $C.set.call(this,e[0],t,n,e[0])};function W1(e,t){const n=e[Mo];return(n?Hl(n):e)[t]}function FZ(e,t,n){var o;const r=pF(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function pF(e,t){if(!(t in e))return;let n=hf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=hf(n)}}function c_(e){e.modified_||(e.modified_=!0,e.parent_&&c_(e.parent_))}function V1(e){e.copy_||(e.copy_=s_(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var WZ=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(l=i,...u){return a.produce(l,f=>n.call(this,f,...u))}}typeof n!="function"&&$i(6),r!==void 0&&typeof r!="function"&&$i(7);let o;if(es(t)){const i=WI(this),a=f_(t,void 0);let s=!0;try{o=n(a),s=!1}finally{s?l_(i):u_(i)}return FI(i,r),VI(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===uF&&(o=void 0),this.autoFreeze_&&DC(o,!0),r){const i=[],a=[];vu("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else $i(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,o;return[this.produce(t,n,(a,s)=>{r=a,o=s}),r,o]},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){es(e)||$i(8),gu(e)&&(e=VZ(e));const t=WI(this),n=f_(e,void 0);return n[Mo].isManual_=!0,u_(t),n}finishDraft(e,t){const n=e&&e[Mo];(!n||!n.isManual_)&&$i(9);const{scope_:r}=n;return FI(r,t),VI(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=vu("Patches").applyPatches_;return gu(e)?r(e,t):this.produce(e,o=>r(o,t))}};function f_(e,t){const n=M0(e)?vu("MapSet").proxyMap_(e,t):L0(e)?vu("MapSet").proxySet_(e,t):$Z(e,t);return(t?t.scope_:dF()).drafts_.push(n),n}function VZ(e){return gu(e)||$i(10,e),hF(e)}function hF(e){if(!es(e)||A0(e))return e;const t=e[Mo];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=s_(e,t.scope_.immer_.useStrictShallowCopy_)}else n=s_(e,!0);return Qp(n,(r,o)=>{fF(n,r,hF(o))}),t&&(t.finalized_=!1),n}var Lo=new WZ,mF=Lo.produce;Lo.produceWithPatches.bind(Lo);Lo.setAutoFreeze.bind(Lo);Lo.setUseStrictShallowCopy.bind(Lo);Lo.applyPatches.bind(Lo);Lo.createDraft.bind(Lo);Lo.finishDraft.bind(Lo);function zZ(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function BZ(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function jZ(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var BI=e=>Array.isArray(e)?e:[e];function UZ(e){const t=Array.isArray(e[0])?e[0]:e;return jZ(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function HZ(e,t){const n=[],{length:r}=e;for(let o=0;o{n=sg(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function YZ(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,a=0,s,l={},u=o.pop();typeof u=="object"&&(l=u,u=o.pop()),zZ(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const f={...n,...l},{memoize:h,memoizeOptions:p=[],argsMemoize:m=gF,argsMemoizeOptions:g=[],devModeChecks:y={}}=f,w=BI(p),b=BI(g),O=UZ(o),C=h(function(){return i++,u.apply(null,arguments)},...w),k=m(function(){a++;const T=HZ(O,arguments);return s=C.apply(null,T),s},...b);return Object.assign(k,{resultFunc:u,memoizedResultFunc:C,dependencies:O,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:h,argsMemoize:m})};return Object.assign(r,{withTypes:()=>r}),r}var vF=YZ(gF),ZZ=Object.assign((e,t=vF)=>{BZ(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),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>ZZ});function yF(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var XZ=yF(),QZ=yF,JZ=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Jv:Jv.apply(null,arguments)},eX=e=>e&&typeof e.match=="function";function mp(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(qa(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>RZ(r)&&r.type===e,n}var bF=class Yd extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Yd.prototype)}static get[Symbol.species](){return Yd}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Yd(...t[0].concat(this)):new Yd(...t.concat(this))}};function UI(e){return es(e)?mF(e,()=>{}):e}function HI(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function tX(e){return typeof e=="boolean"}var nX=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new bF;return n&&(tX(n)?a.push(XZ):a.push(QZ(n.extraArgument))),a},rX="RTK_autoBatch",qI=e=>t=>{setTimeout(t,e)},oX=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:qI(10):e.type==="callback"?e.queueNotification:qI(e.timeout),u=()=>{a=!1,i&&(i=!1,s.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const h=()=>o&&f(),p=r.subscribe(h);return s.add(f),()=>{p(),s.delete(f)}},dispatch(f){var h;try{return o=!((h=f==null?void 0:f.meta)!=null&&h[rX]),i=!o,i&&(a||(a=!0,l(u))),r.dispatch(f)}finally{o=!0}}})},iX=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new bF(e);return r&&o.push(oX(typeof r=="object"?r:void 0)),o};function aX(e){const t=nX(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(NC(n))s=kZ(n);else throw new Error(qa(1));let l;typeof r=="function"?l=r(t):l=t();let u=Jv;o&&(u=JZ({trace:!1,...typeof o=="object"&&o}));const f=TZ(...l),h=iX(f);let p=typeof a=="function"?a(h):h();const m=u(...p);return lF(s,i,m)}function wF(e){const t={},n=[];let r;const o={addCase(i,a){const s=typeof i=="string"?i:i.type;if(!s)throw new Error(qa(28));if(s in t)throw new Error(qa(29));return t[s]=a,o},addMatcher(i,a){return n.push({matcher:i,reducer:a}),o},addDefaultCase(i){return r=i,o}};return e(o),[t,n,r]}function sX(e){return typeof e=="function"}function lX(e,t){let[n,r,o]=wF(t),i;if(sX(e))i=()=>UI(e());else{const s=UI(e);i=()=>s}function a(s=i(),l){let u=[n[l.type],...r.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return u.filter(f=>!!f).length===0&&(u=[o]),u.reduce((f,h)=>{if(h)if(gu(f)){const m=h(f,l);return m===void 0?f:m}else{if(es(f))return mF(f,p=>h(p,l));{const p=h(f,l);if(p===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return f},s)}return a.getInitialState=i,a}var uX=(e,t)=>eX(e)?e.match(t):e(t);function cX(...e){return t=>e.some(n=>uX(n,t))}var fX="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ll=(e=21)=>{let t="",n=e;for(;n--;)t+=fX[Math.random()*64|0];return t},dX=["name","message","stack","code"],z1=class{constructor(e,t){nc(this,"_type");this.payload=e,this.meta=t}},KI=class{constructor(e,t){nc(this,"_type");this.payload=e,this.meta=t}},pX=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of dX)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},hX=(()=>{function e(t,n,r){const o=mp(t+"/fulfilled",(l,u,f,h)=>({payload:l,meta:{...h||{},arg:f,requestId:u,requestStatus:"fulfilled"}})),i=mp(t+"/pending",(l,u,f)=>({payload:void 0,meta:{...f||{},arg:u,requestId:l,requestStatus:"pending"}})),a=mp(t+"/rejected",(l,u,f,h,p)=>({payload:h,error:(r&&r.serializeError||pX)(l||"Rejected"),meta:{...p||{},arg:f,requestId:u,rejectedWithValue:!!h,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function s(l){return(u,f,h)=>{const p=r!=null&&r.idGenerator?r.idGenerator(l):ll(),m=new AbortController;let g,y;function w(O){y=O,m.abort()}const b=async function(){var k,S;let O;try{let T=(k=r==null?void 0:r.condition)==null?void 0:k.call(r,l,{getState:f,extra:h});if(gX(T)&&(T=await T),T===!1||m.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const P=new Promise((v,E)=>{g=()=>{E({name:"AbortError",message:y||"Aborted"})},m.signal.addEventListener("abort",g)});u(i(p,l,(S=r==null?void 0:r.getPendingMeta)==null?void 0:S.call(r,{requestId:p,arg:l},{getState:f,extra:h}))),O=await Promise.race([P,Promise.resolve(n(l,{dispatch:u,getState:f,extra:h,requestId:p,signal:m.signal,abort:w,rejectWithValue:(v,E)=>new z1(v,E),fulfillWithValue:(v,E)=>new KI(v,E)})).then(v=>{if(v instanceof z1)throw v;return v instanceof KI?o(v.payload,p,l,v.meta):o(v,p,l)})])}catch(T){O=T instanceof z1?a(null,p,l,T.payload,T.meta):a(T,p,l)}finally{g&&m.signal.removeEventListener("abort",g)}return r&&!r.dispatchConditionRejection&&a.match(O)&&O.meta.condition||u(O),O}();return Object.assign(b,{abort:w,requestId:p,arg:l,unwrap(){return b.then(mX)}})}}return Object.assign(s,{pending:i,rejected:a,fulfilled:o,settled:cX(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function mX(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function gX(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var vX=Symbol.for("rtk-slice-createasyncthunk");function yX(e,t){return`${e}/${t}`}function bX({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[vX];return function(o){const{name:i,reducerPath:a=i}=o;if(!i)throw new Error(qa(11));typeof process<"u";const s=(typeof o.reducers=="function"?o.reducers(SX()):o.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(C,k){const S=typeof C=="string"?C:C.type;if(!S)throw new Error(qa(12));if(S in u.sliceCaseReducersByType)throw new Error(qa(13));return u.sliceCaseReducersByType[S]=k,f},addMatcher(C,k){return u.sliceMatchers.push({matcher:C,reducer:k}),f},exposeAction(C,k){return u.actionCreators[C]=k,f},exposeCaseReducer(C,k){return u.sliceCaseReducersByName[C]=k,f}};l.forEach(C=>{const k=s[C],S={reducerName:C,type:yX(i,C),createNotation:typeof o.reducers=="function"};_X(k)?CX(S,k,f,t):xX(S,k,f)});function h(){const[C={},k=[],S=void 0]=typeof o.extraReducers=="function"?wF(o.extraReducers):[o.extraReducers],T={...C,...u.sliceCaseReducersByType};return lX(o.initialState,P=>{for(let v in T)P.addCase(v,T[v]);for(let v of u.sliceMatchers)P.addMatcher(v.matcher,v.reducer);for(let v of k)P.addMatcher(v.matcher,v.reducer);S&&P.addDefaultCase(S)})}const p=C=>C,m=new Map;let g;function y(C,k){return g||(g=h()),g(C,k)}function w(){return g||(g=h()),g.getInitialState()}function b(C,k=!1){function S(P){let v=P[C];return typeof v>"u"&&k&&(v=w()),v}function T(P=p){const v=HI(m,k,()=>new WeakMap);return HI(v,P,()=>{const E={};for(const[_,R]of Object.entries(o.selectors??{}))E[_]=wX(R,P,w,k);return E})}return{reducerPath:C,getSelectors:T,get selectors(){return T(S)},selectSlice:S}}const O={name:i,reducer:y,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:w,...b(a),injectInto(C,{reducerPath:k,...S}={}){const T=k??a;return C.inject({reducerPath:T,reducer:y},S),{...O,...b(T,!0)}}};return O}}function wX(e,t,n,r){function o(i,...a){let s=t(i);return typeof s>"u"&&r&&(s=n()),e(s,...a)}return o.unwrapped=e,o}var vl=bX();function SX(){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 xX({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!OX(r))throw new Error(qa(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?mp(e,a):mp(e))}function _X(e){return e._reducerDefinitionType==="asyncThunk"}function OX(e){return e._reducerDefinitionType==="reducerWithPrepare"}function CX({type:e,reducerName:t},n,r,o){if(!o)throw new Error(qa(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:u,options:f}=n,h=o(e,i,f);r.exposeAction(t,h),a&&r.addCase(h.fulfilled,a),s&&r.addCase(h.pending,s),l&&r.addCase(h.rejected,l),u&&r.addMatcher(h.settled,u),r.exposeCaseReducer(t,{fulfilled:a||lg,pending:s||lg,rejected:l||lg,settled:u||lg})}function lg(){}function qa(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 $t=(e=>(e.cutting="mainMenu.cutting-button",e.metadata="mainMenu.metadata-button",e.trackSelection="mainMenu.select-tracks-button",e.subtitles="mainMenu.subtitles-button",e.thumbnail="mainMenu.thumbnail-button",e.finish="mainMenu.finish-button",e.keyboardControls="mainMenu.keyboard-controls-button",e))($t||{});const PX={value:$t.cutting},FC=vl({name:"mainMenuState",initialState:PX,reducers:{setState:(e,t)=>{e.value=t.payload}},selectors:{selectMainMenuState:e=>e.value}}),{setState:EX}=FC.actions,{selectMainMenuState:SF}=FC.selectors,kX=FC.reducer,TX={value:"Start processing",pageNumber:0},WC=vl({name:"finishState",initialState:TX,reducers:{setState:(e,t)=>{e.value=t.payload},setPageNumber:(e,t)=>{e.pageNumber=t.payload}},selectors:{selectFinishState:e=>e.value,selectPageNumber:e=>e.pageNumber}}),{setState:RX,setPageNumber:VC}=WC.actions,{selectFinishState:IX,selectPageNumber:MX}=WC.selectors,LX=WC.reducer;var ny={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ry.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",h=1,p=2,m=4,g=1,y=2,w=1,b=2,O=4,C=8,k=16,S=32,T=64,P=128,v=256,E=512,_=30,R="...",M=800,L=16,I=1,D=2,$=3,F=1/0,W=9007199254740991,V=17976931348623157e292,j=NaN,K=4294967295,U=K-1,Y=K>>>1,X=[["ary",P],["bind",w],["bindKey",b],["curry",C],["curryRight",k],["flip",E],["partial",S],["partialRight",T],["rearg",v]],Q="[object Arguments]",ie="[object Array]",re="[object AsyncFunction]",ee="[object Boolean]",ae="[object Date]",he="[object DOMException]",ve="[object Error]",ce="[object Function]",_e="[object GeneratorFunction]",Se="[object Map]",le="[object Number]",ye="[object Null]",$e="[object Object]",Ae="[object Promise]",St="[object Proxy]",Ie="[object RegExp]",De="[object Set]",lt="[object String]",Ne="[object Symbol]",ke="[object Undefined]",Me="[object WeakMap]",Xe="[object WeakSet]",Fe="[object ArrayBuffer]",fe="[object DataView]",oe="[object Float32Array]",Ee="[object Float64Array]",Ke="[object Int8Array]",tt="[object Int16Array]",xe="[object Int32Array]",dt="[object Uint8Array]",_t="[object Uint8ClampedArray]",ut="[object Uint16Array]",mn="[object Uint32Array]",xi=/\b__p \+= '';/g,Wu=/\b(__p \+=) '' \+/g,Vu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pl=/&(?:amp|lt|gt|quot|#39);/g,Pa=/[&<>"']/g,ds=RegExp(Pl.source),El=RegExp(Pa.source),ps=/<%-([\s\S]+?)%>/g,Qf=/<%([\s\S]+?)%>/g,hs=/<%=([\s\S]+?)%>/g,kl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ea=/^\w*$/,Jf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_i=/[\\^$.*+?()[\]{}|]/g,Tl=RegExp(_i.source),or=/^\s+/,ka=/\s/,ed=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Oi=/\{\n\/\* \[wrapped with (.+)\] \*/,Rl=/,? & /,ms=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,gs=/[()=,{}\[\]\/\s]/,zu=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,xn=/\w*$/,Il=/^[-+]0x[0-9a-f]+$/i,vs=/^0b[01]+$/i,co=/^\[object .+?Constructor\]$/,xt=/^0o[0-7]+$/i,Rr=/^(?:0|[1-9]\d*)$/,ej=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,em=/($^)/,tj=/['\n\r\u2028\u2029\\]/g,tm="\\ud800-\\udfff",nj="\\u0300-\\u036f",rj="\\ufe20-\\ufe2f",oj="\\u20d0-\\u20ff",zE=nj+rj+oj,BE="\\u2700-\\u27bf",jE="a-z\\xdf-\\xf6\\xf8-\\xff",ij="\\xac\\xb1\\xd7\\xf7",aj="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sj="\\u2000-\\u206f",lj=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",UE="A-Z\\xc0-\\xd6\\xd8-\\xde",HE="\\ufe0e\\ufe0f",qE=ij+aj+sj+lj,nw="['’]",uj="["+tm+"]",KE="["+qE+"]",nm="["+zE+"]",GE="\\d+",cj="["+BE+"]",YE="["+jE+"]",ZE="[^"+tm+qE+GE+BE+jE+UE+"]",rw="\\ud83c[\\udffb-\\udfff]",fj="(?:"+nm+"|"+rw+")",XE="[^"+tm+"]",ow="(?:\\ud83c[\\udde6-\\uddff]){2}",iw="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+UE+"]",QE="\\u200d",JE="(?:"+YE+"|"+ZE+")",dj="(?:"+Bu+"|"+ZE+")",ek="(?:"+nw+"(?:d|ll|m|re|s|t|ve))?",tk="(?:"+nw+"(?:D|LL|M|RE|S|T|VE))?",nk=fj+"?",rk="["+HE+"]?",pj="(?:"+QE+"(?:"+[XE,ow,iw].join("|")+")"+rk+nk+")*",hj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ok=rk+nk+pj,gj="(?:"+[cj,ow,iw].join("|")+")"+ok,vj="(?:"+[XE+nm+"?",nm,ow,iw,uj].join("|")+")",yj=RegExp(nw,"g"),bj=RegExp(nm,"g"),aw=RegExp(rw+"(?="+rw+")|"+vj+ok,"g"),wj=RegExp([Bu+"?"+YE+"+"+ek+"(?="+[KE,Bu,"$"].join("|")+")",dj+"+"+tk+"(?="+[KE,Bu+JE,"$"].join("|")+")",Bu+"?"+JE+"+"+ek,Bu+"+"+tk,mj,hj,GE,gj].join("|"),"g"),Sj=RegExp("["+QE+tm+zE+HE+"]"),xj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_j=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Oj=-1,on={};on[oe]=on[Ee]=on[Ke]=on[tt]=on[xe]=on[dt]=on[_t]=on[ut]=on[mn]=!0,on[Q]=on[ie]=on[Fe]=on[ee]=on[fe]=on[ae]=on[ve]=on[ce]=on[Se]=on[le]=on[$e]=on[Ie]=on[De]=on[lt]=on[Me]=!1;var Qt={};Qt[Q]=Qt[ie]=Qt[Fe]=Qt[fe]=Qt[ee]=Qt[ae]=Qt[oe]=Qt[Ee]=Qt[Ke]=Qt[tt]=Qt[xe]=Qt[Se]=Qt[le]=Qt[$e]=Qt[Ie]=Qt[De]=Qt[lt]=Qt[Ne]=Qt[dt]=Qt[_t]=Qt[ut]=Qt[mn]=!0,Qt[ve]=Qt[ce]=Qt[Me]=!1;var Cj={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Pj={"&":"&","<":"<",">":">",'"':""","'":"'"},Ej={"&":"&","<":"<",">":">",""":'"',"'":"'"},kj={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tj=parseFloat,Rj=parseInt,ik=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,Ij=typeof self=="object"&&self&&self.Object===Object&&self,ir=ik||Ij||Function("return this")(),sw=t&&!t.nodeType&&t,Ml=sw&&!0&&e&&!e.nodeType&&e,ak=Ml&&Ml.exports===sw,lw=ak&&ik.process,Vo=function(){try{var te=Ml&&Ml.require&&Ml.require("util").types;return te||lw&&lw.binding&&lw.binding("util")}catch{}}(),sk=Vo&&Vo.isArrayBuffer,lk=Vo&&Vo.isDate,uk=Vo&&Vo.isMap,ck=Vo&&Vo.isRegExp,fk=Vo&&Vo.isSet,dk=Vo&&Vo.isTypedArray;function fo(te,de,se){switch(se.length){case 0:return te.call(de);case 1:return te.call(de,se[0]);case 2:return te.call(de,se[0],se[1]);case 3:return te.call(de,se[0],se[1],se[2])}return te.apply(de,se)}function Mj(te,de,se,We){for(var pt=-1,Lt=te==null?0:te.length;++pt-1}function uw(te,de,se){for(var We=-1,pt=te==null?0:te.length;++We-1;);return se}function wk(te,de){for(var se=te.length;se--&&ju(de,te[se],0)>-1;);return se}function zj(te,de){for(var se=te.length,We=0;se--;)te[se]===de&&++We;return We}var Bj=pw(Cj),jj=pw(Pj);function Uj(te){return"\\"+kj[te]}function Hj(te,de){return te==null?n:te[de]}function Uu(te){return Sj.test(te)}function qj(te){return xj.test(te)}function Kj(te){for(var de,se=[];!(de=te.next()).done;)se.push(de.value);return se}function vw(te){var de=-1,se=Array(te.size);return te.forEach(function(We,pt){se[++de]=[pt,We]}),se}function Sk(te,de){return function(se){return te(de(se))}}function ws(te,de){for(var se=-1,We=te.length,pt=0,Lt=[];++se-1}function A6(c,d){var x=this.__data__,N=wm(x,c);return N<0?(++this.size,x.push([c,d])):x[N][1]=d,this}Ta.prototype.clear=R6,Ta.prototype.delete=I6,Ta.prototype.get=M6,Ta.prototype.has=L6,Ta.prototype.set=A6;function Ra(c){var d=-1,x=c==null?0:c.length;for(this.clear();++d=d?c:d)),c}function Uo(c,d,x,N,B,G){var Z,J=d&h,ne=d&p,me=d&m;if(x&&(Z=B?x(c,N,B,G):x(c)),Z!==n)return Z;if(!gn(c))return c;var ge=mt(c);if(ge){if(Z=FU(c),!J)return qr(c,Z)}else{var we=mr(c),Te=we==ce||we==_e;if(Ps(c))return rT(c,J);if(we==$e||we==Q||Te&&!B){if(Z=ne||Te?{}:xT(c),!J)return ne?EU(c,Z6(Z,c)):PU(c,Lk(Z,c))}else{if(!Qt[we])return B?c:{};Z=WU(c,we,J)}}G||(G=new Pi);var He=G.get(c);if(He)return He;G.set(c,Z),XT(c)?c.forEach(function(rt){Z.add(Uo(rt,d,x,rt,c,G))}):YT(c)&&c.forEach(function(rt,Ot){Z.set(Ot,Uo(rt,d,x,Ot,c,G))});var nt=me?ne?jw:Bw:ne?Gr:Qn,yt=ge?n:nt(c);return zo(yt||c,function(rt,Ot){yt&&(Ot=rt,rt=c[Ot]),sd(Z,Ot,Uo(rt,d,x,Ot,c,G))}),Z}function X6(c){var d=Qn(c);return function(x){return Ak(x,c,d)}}function Ak(c,d,x){var N=x.length;if(c==null)return!N;for(c=Gt(c);N--;){var B=x[N],G=d[B],Z=c[B];if(Z===n&&!(B in c)||!G(Z))return!1}return!0}function Nk(c,d,x){if(typeof c!="function")throw new Bo(a);return hd(function(){c.apply(n,x)},d)}function ld(c,d,x,N){var B=-1,G=rm,Z=!0,J=c.length,ne=[],me=d.length;if(!J)return ne;x&&(d=un(d,po(x))),N?(G=uw,Z=!1):d.length>=o&&(G=td,Z=!1,d=new Nl(d));e:for(;++BB?0:B+x),N=N===n||N>B?B:gt(N),N<0&&(N+=B),N=x>N?0:JT(N);x0&&x(J)?d>1?ar(J,d-1,x,N,B):bs(B,J):N||(B[B.length]=J)}return B}var Ow=uT(),Fk=uT(!0);function Xi(c,d){return c&&Ow(c,d,Qn)}function Cw(c,d){return c&&Fk(c,d,Qn)}function xm(c,d){return ys(d,function(x){return Na(c[x])})}function $l(c,d){d=Os(d,c);for(var x=0,N=d.length;c!=null&&xd}function eU(c,d){return c!=null&&zt.call(c,d)}function tU(c,d){return c!=null&&d in Gt(c)}function nU(c,d,x){return c>=hr(d,x)&&c=120&&ge.length>=120)?new Nl(Z&&ge):n}ge=c[0];var we=-1,Te=J[0];e:for(;++we-1;)J!==c&&pm.call(J,ne,1),pm.call(c,ne,1);return c}function Yk(c,d){for(var x=c?d.length:0,N=x-1;x--;){var B=d[x];if(x==N||B!==G){var G=B;Aa(B)?pm.call(c,B,1):Nw(c,B)}}return c}function Mw(c,d){return c+gm(Tk()*(d-c+1))}function mU(c,d,x,N){for(var B=-1,G=Hn(mm((d-c)/(x||1)),0),Z=se(G);G--;)Z[N?G:++B]=c,c+=x;return Z}function Lw(c,d){var x="";if(!c||d<1||d>W)return x;do d%2&&(x+=c),d=gm(d/2),d&&(c+=c);while(d);return x}function bt(c,d){return Zw(CT(c,d,Yr),c+"")}function gU(c){return Mk(tc(c))}function vU(c,d){var x=tc(c);return Lm(x,Dl(d,0,x.length))}function fd(c,d,x,N){if(!gn(c))return c;d=Os(d,c);for(var B=-1,G=d.length,Z=G-1,J=c;J!=null&&++BB?0:B+d),x=x>B?B:x,x<0&&(x+=B),B=d>x?0:x-d>>>0,d>>>=0;for(var G=se(B);++N>>1,Z=c[G];Z!==null&&!mo(Z)&&(x?Z<=d:Z=o){var me=d?null:IU(c);if(me)return im(me);Z=!1,B=td,ne=new Nl}else ne=d?[]:J;e:for(;++N=N?c:Ho(c,d,x)}var nT=l6||function(c){return ir.clearTimeout(c)};function rT(c,d){if(d)return c.slice();var x=c.length,N=Ok?Ok(x):new c.constructor(x);return c.copy(N),N}function Ww(c){var d=new c.constructor(c.byteLength);return new fm(d).set(new fm(c)),d}function xU(c,d){var x=d?Ww(c.buffer):c.buffer;return new c.constructor(x,c.byteOffset,c.byteLength)}function _U(c){var d=new c.constructor(c.source,xn.exec(c));return d.lastIndex=c.lastIndex,d}function OU(c){return ad?Gt(ad.call(c)):{}}function oT(c,d){var x=d?Ww(c.buffer):c.buffer;return new c.constructor(x,c.byteOffset,c.length)}function iT(c,d){if(c!==d){var x=c!==n,N=c===null,B=c===c,G=mo(c),Z=d!==n,J=d===null,ne=d===d,me=mo(d);if(!J&&!me&&!G&&c>d||G&&Z&&ne&&!J&&!me||N&&Z&&ne||!x&&ne||!B)return 1;if(!N&&!G&&!me&&c=J)return ne;var me=x[N];return ne*(me=="desc"?-1:1)}}return c.index-d.index}function aT(c,d,x,N){for(var B=-1,G=c.length,Z=x.length,J=-1,ne=d.length,me=Hn(G-Z,0),ge=se(ne+me),we=!N;++J1?x[B-1]:n,Z=B>2?x[2]:n;for(G=c.length>3&&typeof G=="function"?(B--,G):n,Z&&Mr(x[0],x[1],Z)&&(G=B<3?n:G,B=1),d=Gt(d);++N-1?B[G?d[Z]:Z]:n}}function dT(c){return La(function(d){var x=d.length,N=x,B=jo.prototype.thru;for(c&&d.reverse();N--;){var G=d[N];if(typeof G!="function")throw new Bo(a);if(B&&!Z&&Im(G)=="wrapper")var Z=new jo([],!0)}for(N=Z?N:x;++N1&&kt.reverse(),ge&&neJ))return!1;var me=G.get(c),ge=G.get(d);if(me&&ge)return me==d&&ge==c;var we=-1,Te=!0,He=x&y?new Nl:n;for(G.set(c,d),G.set(d,c);++we1?"& ":"")+d[N],d=d.join(x>2?", ":" "),c.replace(ed,`{ + */ny.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",h=1,p=2,m=4,g=1,y=2,w=1,b=2,O=4,C=8,k=16,S=32,T=64,P=128,v=256,E=512,_=30,R="...",M=800,L=16,I=1,D=2,$=3,F=1/0,W=9007199254740991,V=17976931348623157e292,j=NaN,K=4294967295,U=K-1,Y=K>>>1,X=[["ary",P],["bind",w],["bindKey",b],["curry",C],["curryRight",k],["flip",E],["partial",S],["partialRight",T],["rearg",v]],Q="[object Arguments]",ie="[object Array]",re="[object AsyncFunction]",ee="[object Boolean]",ae="[object Date]",he="[object DOMException]",ve="[object Error]",ce="[object Function]",_e="[object GeneratorFunction]",Se="[object Map]",le="[object Number]",ye="[object Null]",$e="[object Object]",Ae="[object Promise]",St="[object Proxy]",Ie="[object RegExp]",De="[object Set]",lt="[object String]",Ne="[object Symbol]",ke="[object Undefined]",Me="[object WeakMap]",Xe="[object WeakSet]",Fe="[object ArrayBuffer]",fe="[object DataView]",oe="[object Float32Array]",Ee="[object Float64Array]",Ke="[object Int8Array]",tt="[object Int16Array]",xe="[object Int32Array]",dt="[object Uint8Array]",_t="[object Uint8ClampedArray]",ut="[object Uint16Array]",mn="[object Uint32Array]",xi=/\b__p \+= '';/g,Wu=/\b(__p \+=) '' \+/g,Vu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Cl=/&(?:amp|lt|gt|quot|#39);/g,Pa=/[&<>"']/g,ds=RegExp(Cl.source),Pl=RegExp(Pa.source),ps=/<%-([\s\S]+?)%>/g,Qf=/<%([\s\S]+?)%>/g,hs=/<%=([\s\S]+?)%>/g,El=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ea=/^\w*$/,Jf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_i=/[\\^$.*+?()[\]{}|]/g,kl=RegExp(_i.source),or=/^\s+/,ka=/\s/,ed=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Oi=/\{\n\/\* \[wrapped with (.+)\] \*/,Tl=/,? & /,ms=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,gs=/[()=,{}\[\]\/\s]/,zu=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,xn=/\w*$/,Rl=/^[-+]0x[0-9a-f]+$/i,vs=/^0b[01]+$/i,co=/^\[object .+?Constructor\]$/,xt=/^0o[0-7]+$/i,Rr=/^(?:0|[1-9]\d*)$/,QB=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,em=/($^)/,JB=/['\n\r\u2028\u2029\\]/g,tm="\\ud800-\\udfff",ej="\\u0300-\\u036f",tj="\\ufe20-\\ufe2f",nj="\\u20d0-\\u20ff",BE=ej+tj+nj,jE="\\u2700-\\u27bf",UE="a-z\\xdf-\\xf6\\xf8-\\xff",rj="\\xac\\xb1\\xd7\\xf7",oj="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ij="\\u2000-\\u206f",aj=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",HE="A-Z\\xc0-\\xd6\\xd8-\\xde",qE="\\ufe0e\\ufe0f",KE=rj+oj+ij+aj,tw="['’]",sj="["+tm+"]",GE="["+KE+"]",nm="["+BE+"]",YE="\\d+",lj="["+jE+"]",ZE="["+UE+"]",XE="[^"+tm+KE+YE+jE+UE+HE+"]",nw="\\ud83c[\\udffb-\\udfff]",uj="(?:"+nm+"|"+nw+")",QE="[^"+tm+"]",rw="(?:\\ud83c[\\udde6-\\uddff]){2}",ow="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+HE+"]",JE="\\u200d",ek="(?:"+ZE+"|"+XE+")",cj="(?:"+Bu+"|"+XE+")",tk="(?:"+tw+"(?:d|ll|m|re|s|t|ve))?",nk="(?:"+tw+"(?:D|LL|M|RE|S|T|VE))?",rk=uj+"?",ok="["+qE+"]?",fj="(?:"+JE+"(?:"+[QE,rw,ow].join("|")+")"+ok+rk+")*",dj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ik=ok+rk+fj,hj="(?:"+[lj,rw,ow].join("|")+")"+ik,mj="(?:"+[QE+nm+"?",nm,rw,ow,sj].join("|")+")",gj=RegExp(tw,"g"),vj=RegExp(nm,"g"),iw=RegExp(nw+"(?="+nw+")|"+mj+ik,"g"),yj=RegExp([Bu+"?"+ZE+"+"+tk+"(?="+[GE,Bu,"$"].join("|")+")",cj+"+"+nk+"(?="+[GE,Bu+ek,"$"].join("|")+")",Bu+"?"+ek+"+"+tk,Bu+"+"+nk,pj,dj,YE,hj].join("|"),"g"),bj=RegExp("["+JE+tm+BE+qE+"]"),wj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Sj=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xj=-1,on={};on[oe]=on[Ee]=on[Ke]=on[tt]=on[xe]=on[dt]=on[_t]=on[ut]=on[mn]=!0,on[Q]=on[ie]=on[Fe]=on[ee]=on[fe]=on[ae]=on[ve]=on[ce]=on[Se]=on[le]=on[$e]=on[Ie]=on[De]=on[lt]=on[Me]=!1;var Qt={};Qt[Q]=Qt[ie]=Qt[Fe]=Qt[fe]=Qt[ee]=Qt[ae]=Qt[oe]=Qt[Ee]=Qt[Ke]=Qt[tt]=Qt[xe]=Qt[Se]=Qt[le]=Qt[$e]=Qt[Ie]=Qt[De]=Qt[lt]=Qt[Ne]=Qt[dt]=Qt[_t]=Qt[ut]=Qt[mn]=!0,Qt[ve]=Qt[ce]=Qt[Me]=!1;var _j={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Oj={"&":"&","<":"<",">":">",'"':""","'":"'"},Cj={"&":"&","<":"<",">":">",""":'"',"'":"'"},Pj={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ej=parseFloat,kj=parseInt,ak=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,Tj=typeof self=="object"&&self&&self.Object===Object&&self,ir=ak||Tj||Function("return this")(),aw=t&&!t.nodeType&&t,Il=aw&&!0&&e&&!e.nodeType&&e,sk=Il&&Il.exports===aw,sw=sk&&ak.process,Vo=function(){try{var te=Il&&Il.require&&Il.require("util").types;return te||sw&&sw.binding&&sw.binding("util")}catch{}}(),lk=Vo&&Vo.isArrayBuffer,uk=Vo&&Vo.isDate,ck=Vo&&Vo.isMap,fk=Vo&&Vo.isRegExp,dk=Vo&&Vo.isSet,pk=Vo&&Vo.isTypedArray;function fo(te,de,se){switch(se.length){case 0:return te.call(de);case 1:return te.call(de,se[0]);case 2:return te.call(de,se[0],se[1]);case 3:return te.call(de,se[0],se[1],se[2])}return te.apply(de,se)}function Rj(te,de,se,We){for(var pt=-1,Lt=te==null?0:te.length;++pt-1}function lw(te,de,se){for(var We=-1,pt=te==null?0:te.length;++We-1;);return se}function Sk(te,de){for(var se=te.length;se--&&ju(de,te[se],0)>-1;);return se}function Wj(te,de){for(var se=te.length,We=0;se--;)te[se]===de&&++We;return We}var Vj=dw(_j),zj=dw(Oj);function Bj(te){return"\\"+Pj[te]}function jj(te,de){return te==null?n:te[de]}function Uu(te){return bj.test(te)}function Uj(te){return wj.test(te)}function Hj(te){for(var de,se=[];!(de=te.next()).done;)se.push(de.value);return se}function gw(te){var de=-1,se=Array(te.size);return te.forEach(function(We,pt){se[++de]=[pt,We]}),se}function xk(te,de){return function(se){return te(de(se))}}function ws(te,de){for(var se=-1,We=te.length,pt=0,Lt=[];++se-1}function M6(c,d){var x=this.__data__,N=wm(x,c);return N<0?(++this.size,x.push([c,d])):x[N][1]=d,this}Ta.prototype.clear=k6,Ta.prototype.delete=T6,Ta.prototype.get=R6,Ta.prototype.has=I6,Ta.prototype.set=M6;function Ra(c){var d=-1,x=c==null?0:c.length;for(this.clear();++d=d?c:d)),c}function Uo(c,d,x,N,B,G){var Z,J=d&h,ne=d&p,me=d&m;if(x&&(Z=B?x(c,N,B,G):x(c)),Z!==n)return Z;if(!gn(c))return c;var ge=ht(c);if(ge){if(Z=DU(c),!J)return qr(c,Z)}else{var we=mr(c),Te=we==ce||we==_e;if(Ps(c))return oT(c,J);if(we==$e||we==Q||Te&&!B){if(Z=ne||Te?{}:_T(c),!J)return ne?CU(c,G6(Z,c)):OU(c,Ak(Z,c))}else{if(!Qt[we])return B?c:{};Z=$U(c,we,J)}}G||(G=new Pi);var He=G.get(c);if(He)return He;G.set(c,Z),QT(c)?c.forEach(function(rt){Z.add(Uo(rt,d,x,rt,c,G))}):ZT(c)&&c.forEach(function(rt,Ot){Z.set(Ot,Uo(rt,d,x,Ot,c,G))});var nt=me?ne?Bw:zw:ne?Gr:Qn,yt=ge?n:nt(c);return zo(yt||c,function(rt,Ot){yt&&(Ot=rt,rt=c[Ot]),sd(Z,Ot,Uo(rt,d,x,Ot,c,G))}),Z}function Y6(c){var d=Qn(c);return function(x){return Nk(x,c,d)}}function Nk(c,d,x){var N=x.length;if(c==null)return!N;for(c=Gt(c);N--;){var B=x[N],G=d[B],Z=c[B];if(Z===n&&!(B in c)||!G(Z))return!1}return!0}function Dk(c,d,x){if(typeof c!="function")throw new Bo(a);return hd(function(){c.apply(n,x)},d)}function ld(c,d,x,N){var B=-1,G=rm,Z=!0,J=c.length,ne=[],me=d.length;if(!J)return ne;x&&(d=un(d,po(x))),N?(G=lw,Z=!1):d.length>=o&&(G=td,Z=!1,d=new Al(d));e:for(;++BB?0:B+x),N=N===n||N>B?B:gt(N),N<0&&(N+=B),N=x>N?0:eR(N);x0&&x(J)?d>1?ar(J,d-1,x,N,B):bs(B,J):N||(B[B.length]=J)}return B}var _w=cT(),Wk=cT(!0);function Xi(c,d){return c&&_w(c,d,Qn)}function Ow(c,d){return c&&Wk(c,d,Qn)}function xm(c,d){return ys(d,function(x){return Na(c[x])})}function Dl(c,d){d=Os(d,c);for(var x=0,N=d.length;c!=null&&xd}function Q6(c,d){return c!=null&&zt.call(c,d)}function J6(c,d){return c!=null&&d in Gt(c)}function eU(c,d,x){return c>=hr(d,x)&&c=120&&ge.length>=120)?new Al(Z&&ge):n}ge=c[0];var we=-1,Te=J[0];e:for(;++we-1;)J!==c&&pm.call(J,ne,1),pm.call(c,ne,1);return c}function Zk(c,d){for(var x=c?d.length:0,N=x-1;x--;){var B=d[x];if(x==N||B!==G){var G=B;Aa(B)?pm.call(c,B,1):Aw(c,B)}}return c}function Iw(c,d){return c+gm(Rk()*(d-c+1))}function pU(c,d,x,N){for(var B=-1,G=Hn(mm((d-c)/(x||1)),0),Z=se(G);G--;)Z[N?G:++B]=c,c+=x;return Z}function Mw(c,d){var x="";if(!c||d<1||d>W)return x;do d%2&&(x+=c),d=gm(d/2),d&&(c+=c);while(d);return x}function bt(c,d){return Yw(PT(c,d,Yr),c+"")}function hU(c){return Lk(tc(c))}function mU(c,d){var x=tc(c);return Lm(x,Nl(d,0,x.length))}function fd(c,d,x,N){if(!gn(c))return c;d=Os(d,c);for(var B=-1,G=d.length,Z=G-1,J=c;J!=null&&++BB?0:B+d),x=x>B?B:x,x<0&&(x+=B),B=d>x?0:x-d>>>0,d>>>=0;for(var G=se(B);++N>>1,Z=c[G];Z!==null&&!mo(Z)&&(x?Z<=d:Z=o){var me=d?null:TU(c);if(me)return im(me);Z=!1,B=td,ne=new Al}else ne=d?[]:J;e:for(;++N=N?c:Ho(c,d,x)}var rT=a6||function(c){return ir.clearTimeout(c)};function oT(c,d){if(d)return c.slice();var x=c.length,N=Ck?Ck(x):new c.constructor(x);return c.copy(N),N}function Fw(c){var d=new c.constructor(c.byteLength);return new fm(d).set(new fm(c)),d}function wU(c,d){var x=d?Fw(c.buffer):c.buffer;return new c.constructor(x,c.byteOffset,c.byteLength)}function SU(c){var d=new c.constructor(c.source,xn.exec(c));return d.lastIndex=c.lastIndex,d}function xU(c){return ad?Gt(ad.call(c)):{}}function iT(c,d){var x=d?Fw(c.buffer):c.buffer;return new c.constructor(x,c.byteOffset,c.length)}function aT(c,d){if(c!==d){var x=c!==n,N=c===null,B=c===c,G=mo(c),Z=d!==n,J=d===null,ne=d===d,me=mo(d);if(!J&&!me&&!G&&c>d||G&&Z&&ne&&!J&&!me||N&&Z&&ne||!x&&ne||!B)return 1;if(!N&&!G&&!me&&c=J)return ne;var me=x[N];return ne*(me=="desc"?-1:1)}}return c.index-d.index}function sT(c,d,x,N){for(var B=-1,G=c.length,Z=x.length,J=-1,ne=d.length,me=Hn(G-Z,0),ge=se(ne+me),we=!N;++J1?x[B-1]:n,Z=B>2?x[2]:n;for(G=c.length>3&&typeof G=="function"?(B--,G):n,Z&&Mr(x[0],x[1],Z)&&(G=B<3?n:G,B=1),d=Gt(d);++N-1?B[G?d[Z]:Z]:n}}function pT(c){return La(function(d){var x=d.length,N=x,B=jo.prototype.thru;for(c&&d.reverse();N--;){var G=d[N];if(typeof G!="function")throw new Bo(a);if(B&&!Z&&Im(G)=="wrapper")var Z=new jo([],!0)}for(N=Z?N:x;++N1&&kt.reverse(),ge&&neJ))return!1;var me=G.get(c),ge=G.get(d);if(me&&ge)return me==d&&ge==c;var we=-1,Te=!0,He=x&y?new Al:n;for(G.set(c,d),G.set(d,c);++we1?"& ":"")+d[N],d=d.join(x>2?", ":" "),c.replace(ed,`{ /* [wrapped with `+d+`] */ -`)}function zU(c){return mt(c)||Vl(c)||!!(Ek&&c&&c[Ek])}function Aa(c,d){var x=typeof c;return d=d??W,!!d&&(x=="number"||x!="symbol"&&Rr.test(c))&&c>-1&&c%1==0&&c0){if(++d>=M)return arguments[0]}else d=0;return c.apply(n,arguments)}}function Lm(c,d){var x=-1,N=c.length,B=N-1;for(d=d===n?N:d;++x1?c[d-1]:n;return x=typeof x=="function"?(c.pop(),x):n,$T(c,x)});function FT(c){var d=H(c);return d.__chain__=!0,d}function QH(c,d){return d(c),c}function Am(c,d){return d(c)}var JH=La(function(c){var d=c.length,x=d?c[0]:0,N=this.__wrapped__,B=function(G){return _w(G,c)};return d>1||this.__actions__.length||!(N instanceof Et)||!Aa(x)?this.thru(B):(N=N.slice(x,+x+(d?1:0)),N.__actions__.push({func:Am,args:[B],thisArg:n}),new jo(N,this.__chain__).thru(function(G){return d&&!G.length&&G.push(n),G}))});function e8(){return FT(this)}function t8(){return new jo(this.value(),this.__chain__)}function n8(){this.__values__===n&&(this.__values__=QT(this.value()));var c=this.__index__>=this.__values__.length,d=c?n:this.__values__[this.__index__++];return{done:c,value:d}}function r8(){return this}function o8(c){for(var d,x=this;x instanceof bm;){var N=IT(x);N.__index__=0,N.__values__=n,d?B.__wrapped__=N:d=N;var B=N;x=x.__wrapped__}return B.__wrapped__=c,d}function i8(){var c=this.__wrapped__;if(c instanceof Et){var d=c;return this.__actions__.length&&(d=new Et(this)),d=d.reverse(),d.__actions__.push({func:Am,args:[Xw],thisArg:n}),new jo(d,this.__chain__)}return this.thru(Xw)}function a8(){return eT(this.__wrapped__,this.__actions__)}var s8=Pm(function(c,d,x){zt.call(c,x)?++c[x]:Ia(c,x,1)});function l8(c,d,x){var N=mt(c)?pk:Q6;return x&&Mr(c,d,x)&&(d=n),N(c,et(d,3))}function u8(c,d){var x=mt(c)?ys:$k;return x(c,et(d,3))}var c8=fT(MT),f8=fT(LT);function d8(c,d){return ar(Nm(c,d),1)}function p8(c,d){return ar(Nm(c,d),F)}function h8(c,d,x){return x=x===n?1:gt(x),ar(Nm(c,d),x)}function WT(c,d){var x=mt(c)?zo:xs;return x(c,et(d,3))}function VT(c,d){var x=mt(c)?Lj:Dk;return x(c,et(d,3))}var m8=Pm(function(c,d,x){zt.call(c,x)?c[x].push(d):Ia(c,x,[d])});function g8(c,d,x,N){c=Kr(c)?c:tc(c),x=x&&!N?gt(x):0;var B=c.length;return x<0&&(x=Hn(B+x,0)),Vm(c)?x<=B&&c.indexOf(d,x)>-1:!!B&&ju(c,d,x)>-1}var v8=bt(function(c,d,x){var N=-1,B=typeof d=="function",G=Kr(c)?se(c.length):[];return xs(c,function(Z){G[++N]=B?fo(d,Z,x):ud(Z,d,x)}),G}),y8=Pm(function(c,d,x){Ia(c,x,d)});function Nm(c,d){var x=mt(c)?un:jk;return x(c,et(d,3))}function b8(c,d,x,N){return c==null?[]:(mt(d)||(d=d==null?[]:[d]),x=N?n:x,mt(x)||(x=x==null?[]:[x]),Kk(c,d,x))}var w8=Pm(function(c,d,x){c[x?0:1].push(d)},function(){return[[],[]]});function S8(c,d,x){var N=mt(c)?cw:vk,B=arguments.length<3;return N(c,et(d,4),x,B,xs)}function x8(c,d,x){var N=mt(c)?Aj:vk,B=arguments.length<3;return N(c,et(d,4),x,B,Dk)}function _8(c,d){var x=mt(c)?ys:$k;return x(c,Fm(et(d,3)))}function O8(c){var d=mt(c)?Mk:gU;return d(c)}function C8(c,d,x){(x?Mr(c,d,x):d===n)?d=1:d=gt(d);var N=mt(c)?K6:vU;return N(c,d)}function P8(c){var d=mt(c)?G6:bU;return d(c)}function E8(c){if(c==null)return 0;if(Kr(c))return Vm(c)?Hu(c):c.length;var d=mr(c);return d==Se||d==De?c.size:Tw(c).length}function k8(c,d,x){var N=mt(c)?fw:wU;return x&&Mr(c,d,x)&&(d=n),N(c,et(d,3))}var T8=bt(function(c,d){if(c==null)return[];var x=d.length;return x>1&&Mr(c,d[0],d[1])?d=[]:x>2&&Mr(d[0],d[1],d[2])&&(d=[d[0]]),Kk(c,ar(d,1),[])}),Dm=u6||function(){return ir.Date.now()};function R8(c,d){if(typeof d!="function")throw new Bo(a);return c=gt(c),function(){if(--c<1)return d.apply(this,arguments)}}function zT(c,d,x){return d=x?n:d,d=c&&d==null?c.length:d,Ma(c,P,n,n,n,n,d)}function BT(c,d){var x;if(typeof d!="function")throw new Bo(a);return c=gt(c),function(){return--c>0&&(x=d.apply(this,arguments)),c<=1&&(d=n),x}}var Jw=bt(function(c,d,x){var N=w;if(x.length){var B=ws(x,Ju(Jw));N|=S}return Ma(c,N,d,x,B)}),jT=bt(function(c,d,x){var N=w|b;if(x.length){var B=ws(x,Ju(jT));N|=S}return Ma(d,N,c,x,B)});function UT(c,d,x){d=x?n:d;var N=Ma(c,C,n,n,n,n,n,d);return N.placeholder=UT.placeholder,N}function HT(c,d,x){d=x?n:d;var N=Ma(c,k,n,n,n,n,n,d);return N.placeholder=HT.placeholder,N}function qT(c,d,x){var N,B,G,Z,J,ne,me=0,ge=!1,we=!1,Te=!0;if(typeof c!="function")throw new Bo(a);d=Ko(d)||0,gn(x)&&(ge=!!x.leading,we="maxWait"in x,G=we?Hn(Ko(x.maxWait)||0,d):G,Te="trailing"in x?!!x.trailing:Te);function He(An){var ki=N,$a=B;return N=B=n,me=An,Z=c.apply($a,ki),Z}function nt(An){return me=An,J=hd(Ot,d),ge?He(An):Z}function yt(An){var ki=An-ne,$a=An-me,fR=d-ki;return we?hr(fR,G-$a):fR}function rt(An){var ki=An-ne,$a=An-me;return ne===n||ki>=d||ki<0||we&&$a>=G}function Ot(){var An=Dm();if(rt(An))return kt(An);J=hd(Ot,yt(An))}function kt(An){return J=n,Te&&N?He(An):(N=B=n,Z)}function go(){J!==n&&nT(J),me=0,N=ne=B=J=n}function Lr(){return J===n?Z:kt(Dm())}function vo(){var An=Dm(),ki=rt(An);if(N=arguments,B=this,ne=An,ki){if(J===n)return nt(ne);if(we)return nT(J),J=hd(Ot,d),He(ne)}return J===n&&(J=hd(Ot,d)),Z}return vo.cancel=go,vo.flush=Lr,vo}var I8=bt(function(c,d){return Nk(c,1,d)}),M8=bt(function(c,d,x){return Nk(c,Ko(d)||0,x)});function L8(c){return Ma(c,E)}function $m(c,d){if(typeof c!="function"||d!=null&&typeof d!="function")throw new Bo(a);var x=function(){var N=arguments,B=d?d.apply(this,N):N[0],G=x.cache;if(G.has(B))return G.get(B);var Z=c.apply(this,N);return x.cache=G.set(B,Z)||G,Z};return x.cache=new($m.Cache||Ra),x}$m.Cache=Ra;function Fm(c){if(typeof c!="function")throw new Bo(a);return function(){var d=arguments;switch(d.length){case 0:return!c.call(this);case 1:return!c.call(this,d[0]);case 2:return!c.call(this,d[0],d[1]);case 3:return!c.call(this,d[0],d[1],d[2])}return!c.apply(this,d)}}function A8(c){return BT(2,c)}var N8=SU(function(c,d){d=d.length==1&&mt(d[0])?un(d[0],po(et())):un(ar(d,1),po(et()));var x=d.length;return bt(function(N){for(var B=-1,G=hr(N.length,x);++B=d}),Vl=Vk(function(){return arguments}())?Vk:function(c){return _n(c)&&zt.call(c,"callee")&&!Pk.call(c,"callee")},mt=se.isArray,Z8=sk?po(sk):oU;function Kr(c){return c!=null&&Wm(c.length)&&!Na(c)}function Ln(c){return _n(c)&&Kr(c)}function X8(c){return c===!0||c===!1||_n(c)&&Ir(c)==ee}var Ps=f6||f1,Q8=lk?po(lk):iU;function J8(c){return _n(c)&&c.nodeType===1&&!md(c)}function e9(c){if(c==null)return!0;if(Kr(c)&&(mt(c)||typeof c=="string"||typeof c.splice=="function"||Ps(c)||ec(c)||Vl(c)))return!c.length;var d=mr(c);if(d==Se||d==De)return!c.size;if(pd(c))return!Tw(c).length;for(var x in c)if(zt.call(c,x))return!1;return!0}function t9(c,d){return cd(c,d)}function n9(c,d,x){x=typeof x=="function"?x:n;var N=x?x(c,d):n;return N===n?cd(c,d,n,x):!!N}function t1(c){if(!_n(c))return!1;var d=Ir(c);return d==ve||d==he||typeof c.message=="string"&&typeof c.name=="string"&&!md(c)}function r9(c){return typeof c=="number"&&kk(c)}function Na(c){if(!gn(c))return!1;var d=Ir(c);return d==ce||d==_e||d==re||d==St}function GT(c){return typeof c=="number"&&c==gt(c)}function Wm(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=W}function gn(c){var d=typeof c;return c!=null&&(d=="object"||d=="function")}function _n(c){return c!=null&&typeof c=="object"}var YT=uk?po(uk):sU;function o9(c,d){return c===d||kw(c,d,Hw(d))}function i9(c,d,x){return x=typeof x=="function"?x:n,kw(c,d,Hw(d),x)}function a9(c){return ZT(c)&&c!=+c}function s9(c){if(UU(c))throw new pt(i);return zk(c)}function l9(c){return c===null}function u9(c){return c==null}function ZT(c){return typeof c=="number"||_n(c)&&Ir(c)==le}function md(c){if(!_n(c)||Ir(c)!=$e)return!1;var d=dm(c);if(d===null)return!0;var x=zt.call(d,"constructor")&&d.constructor;return typeof x=="function"&&x instanceof x&&lm.call(x)==i6}var n1=ck?po(ck):lU;function c9(c){return GT(c)&&c>=-W&&c<=W}var XT=fk?po(fk):uU;function Vm(c){return typeof c=="string"||!mt(c)&&_n(c)&&Ir(c)==lt}function mo(c){return typeof c=="symbol"||_n(c)&&Ir(c)==Ne}var ec=dk?po(dk):cU;function f9(c){return c===n}function d9(c){return _n(c)&&mr(c)==Me}function p9(c){return _n(c)&&Ir(c)==Xe}var h9=Rm(Rw),m9=Rm(function(c,d){return c<=d});function QT(c){if(!c)return[];if(Kr(c))return Vm(c)?Ci(c):qr(c);if(nd&&c[nd])return Kj(c[nd]());var d=mr(c),x=d==Se?vw:d==De?im:tc;return x(c)}function Da(c){if(!c)return c===0?c:0;if(c=Ko(c),c===F||c===-F){var d=c<0?-1:1;return d*V}return c===c?c:0}function gt(c){var d=Da(c),x=d%1;return d===d?x?d-x:d:0}function JT(c){return c?Dl(gt(c),0,K):0}function Ko(c){if(typeof c=="number")return c;if(mo(c))return j;if(gn(c)){var d=typeof c.valueOf=="function"?c.valueOf():c;c=gn(d)?d+"":d}if(typeof c!="string")return c===0?c:+c;c=yk(c);var x=vs.test(c);return x||xt.test(c)?Rj(c.slice(2),x?2:8):Il.test(c)?j:+c}function eR(c){return Qi(c,Gr(c))}function g9(c){return c?Dl(gt(c),-W,W):c===0?c:0}function Ft(c){return c==null?"":ho(c)}var v9=Xu(function(c,d){if(pd(d)||Kr(d)){Qi(d,Qn(d),c);return}for(var x in d)zt.call(d,x)&&sd(c,x,d[x])}),tR=Xu(function(c,d){Qi(d,Gr(d),c)}),zm=Xu(function(c,d,x,N){Qi(d,Gr(d),c,N)}),y9=Xu(function(c,d,x,N){Qi(d,Qn(d),c,N)}),b9=La(_w);function w9(c,d){var x=Zu(c);return d==null?x:Lk(x,d)}var S9=bt(function(c,d){c=Gt(c);var x=-1,N=d.length,B=N>2?d[2]:n;for(B&&Mr(d[0],d[1],B)&&(N=1);++x1),G}),Qi(c,jw(c),x),N&&(x=Uo(x,h|p|m,MU));for(var B=d.length;B--;)Nw(x,d[B]);return x});function W9(c,d){return rR(c,Fm(et(d)))}var V9=La(function(c,d){return c==null?{}:pU(c,d)});function rR(c,d){if(c==null)return{};var x=un(jw(c),function(N){return[N]});return d=et(d),Gk(c,x,function(N,B){return d(N,B[0])})}function z9(c,d,x){d=Os(d,c);var N=-1,B=d.length;for(B||(B=1,c=n);++Nd){var N=c;c=d,d=N}if(x||c%1||d%1){var B=Tk();return hr(c+B*(d-c+Tj("1e-"+((B+"").length-1))),d)}return Mw(c,d)}var Q9=Qu(function(c,d,x){return d=d.toLowerCase(),c+(x?aR(d):d)});function aR(c){return i1(Ft(c).toLowerCase())}function sR(c){return c=Ft(c),c&&c.replace(ej,Bj).replace(bj,"")}function J9(c,d,x){c=Ft(c),d=ho(d);var N=c.length;x=x===n?N:Dl(gt(x),0,N);var B=x;return x-=d.length,x>=0&&c.slice(x,B)==d}function e7(c){return c=Ft(c),c&&El.test(c)?c.replace(Pa,jj):c}function t7(c){return c=Ft(c),c&&Tl.test(c)?c.replace(_i,"\\$&"):c}var n7=Qu(function(c,d,x){return c+(x?"-":"")+d.toLowerCase()}),r7=Qu(function(c,d,x){return c+(x?" ":"")+d.toLowerCase()}),o7=cT("toLowerCase");function i7(c,d,x){c=Ft(c),d=gt(d);var N=d?Hu(c):0;if(!d||N>=d)return c;var B=(d-N)/2;return Tm(gm(B),x)+c+Tm(mm(B),x)}function a7(c,d,x){c=Ft(c),d=gt(d);var N=d?Hu(c):0;return d&&N>>0,x?(c=Ft(c),c&&(typeof d=="string"||d!=null&&!n1(d))&&(d=ho(d),!d&&Uu(c))?Cs(Ci(c),0,x):c.split(d,x)):[]}var p7=Qu(function(c,d,x){return c+(x?" ":"")+i1(d)});function h7(c,d,x){return c=Ft(c),x=x==null?0:Dl(gt(x),0,c.length),d=ho(d),c.slice(x,x+d.length)==d}function m7(c,d,x){var N=H.templateSettings;x&&Mr(c,d,x)&&(d=n),c=Ft(c),d=zm({},d,N,vT);var B=zm({},d.imports,N.imports,vT),G=Qn(B),Z=gw(B,G),J,ne,me=0,ge=d.interpolate||em,we="__p += '",Te=yw((d.escape||em).source+"|"+ge.source+"|"+(ge===hs?rn:em).source+"|"+(d.evaluate||em).source+"|$","g"),He="//# sourceURL="+(zt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Oj+"]")+` -`;c.replace(Te,function(rt,Ot,kt,go,Lr,vo){return kt||(kt=go),we+=c.slice(me,vo).replace(tj,Uj),Ot&&(J=!0,we+=`' + +`)}function WU(c){return ht(c)||Wl(c)||!!(kk&&c&&c[kk])}function Aa(c,d){var x=typeof c;return d=d??W,!!d&&(x=="number"||x!="symbol"&&Rr.test(c))&&c>-1&&c%1==0&&c0){if(++d>=M)return arguments[0]}else d=0;return c.apply(n,arguments)}}function Lm(c,d){var x=-1,N=c.length,B=N-1;for(d=d===n?N:d;++x1?c[d-1]:n;return x=typeof x=="function"?(c.pop(),x):n,FT(c,x)});function WT(c){var d=H(c);return d.__chain__=!0,d}function ZH(c,d){return d(c),c}function Am(c,d){return d(c)}var XH=La(function(c){var d=c.length,x=d?c[0]:0,N=this.__wrapped__,B=function(G){return xw(G,c)};return d>1||this.__actions__.length||!(N instanceof Et)||!Aa(x)?this.thru(B):(N=N.slice(x,+x+(d?1:0)),N.__actions__.push({func:Am,args:[B],thisArg:n}),new jo(N,this.__chain__).thru(function(G){return d&&!G.length&&G.push(n),G}))});function QH(){return WT(this)}function JH(){return new jo(this.value(),this.__chain__)}function e8(){this.__values__===n&&(this.__values__=JT(this.value()));var c=this.__index__>=this.__values__.length,d=c?n:this.__values__[this.__index__++];return{done:c,value:d}}function t8(){return this}function n8(c){for(var d,x=this;x instanceof bm;){var N=MT(x);N.__index__=0,N.__values__=n,d?B.__wrapped__=N:d=N;var B=N;x=x.__wrapped__}return B.__wrapped__=c,d}function r8(){var c=this.__wrapped__;if(c instanceof Et){var d=c;return this.__actions__.length&&(d=new Et(this)),d=d.reverse(),d.__actions__.push({func:Am,args:[Zw],thisArg:n}),new jo(d,this.__chain__)}return this.thru(Zw)}function o8(){return tT(this.__wrapped__,this.__actions__)}var i8=Pm(function(c,d,x){zt.call(c,x)?++c[x]:Ia(c,x,1)});function a8(c,d,x){var N=ht(c)?hk:Z6;return x&&Mr(c,d,x)&&(d=n),N(c,et(d,3))}function s8(c,d){var x=ht(c)?ys:Fk;return x(c,et(d,3))}var l8=dT(LT),u8=dT(AT);function c8(c,d){return ar(Nm(c,d),1)}function f8(c,d){return ar(Nm(c,d),F)}function d8(c,d,x){return x=x===n?1:gt(x),ar(Nm(c,d),x)}function VT(c,d){var x=ht(c)?zo:xs;return x(c,et(d,3))}function zT(c,d){var x=ht(c)?Ij:$k;return x(c,et(d,3))}var p8=Pm(function(c,d,x){zt.call(c,x)?c[x].push(d):Ia(c,x,[d])});function h8(c,d,x,N){c=Kr(c)?c:tc(c),x=x&&!N?gt(x):0;var B=c.length;return x<0&&(x=Hn(B+x,0)),Vm(c)?x<=B&&c.indexOf(d,x)>-1:!!B&&ju(c,d,x)>-1}var m8=bt(function(c,d,x){var N=-1,B=typeof d=="function",G=Kr(c)?se(c.length):[];return xs(c,function(Z){G[++N]=B?fo(d,Z,x):ud(Z,d,x)}),G}),g8=Pm(function(c,d,x){Ia(c,x,d)});function Nm(c,d){var x=ht(c)?un:Uk;return x(c,et(d,3))}function v8(c,d,x,N){return c==null?[]:(ht(d)||(d=d==null?[]:[d]),x=N?n:x,ht(x)||(x=x==null?[]:[x]),Gk(c,d,x))}var y8=Pm(function(c,d,x){c[x?0:1].push(d)},function(){return[[],[]]});function b8(c,d,x){var N=ht(c)?uw:yk,B=arguments.length<3;return N(c,et(d,4),x,B,xs)}function w8(c,d,x){var N=ht(c)?Mj:yk,B=arguments.length<3;return N(c,et(d,4),x,B,$k)}function S8(c,d){var x=ht(c)?ys:Fk;return x(c,Fm(et(d,3)))}function x8(c){var d=ht(c)?Lk:hU;return d(c)}function _8(c,d,x){(x?Mr(c,d,x):d===n)?d=1:d=gt(d);var N=ht(c)?H6:mU;return N(c,d)}function O8(c){var d=ht(c)?q6:vU;return d(c)}function C8(c){if(c==null)return 0;if(Kr(c))return Vm(c)?Hu(c):c.length;var d=mr(c);return d==Se||d==De?c.size:kw(c).length}function P8(c,d,x){var N=ht(c)?cw:yU;return x&&Mr(c,d,x)&&(d=n),N(c,et(d,3))}var E8=bt(function(c,d){if(c==null)return[];var x=d.length;return x>1&&Mr(c,d[0],d[1])?d=[]:x>2&&Mr(d[0],d[1],d[2])&&(d=[d[0]]),Gk(c,ar(d,1),[])}),Dm=s6||function(){return ir.Date.now()};function k8(c,d){if(typeof d!="function")throw new Bo(a);return c=gt(c),function(){if(--c<1)return d.apply(this,arguments)}}function BT(c,d,x){return d=x?n:d,d=c&&d==null?c.length:d,Ma(c,P,n,n,n,n,d)}function jT(c,d){var x;if(typeof d!="function")throw new Bo(a);return c=gt(c),function(){return--c>0&&(x=d.apply(this,arguments)),c<=1&&(d=n),x}}var Qw=bt(function(c,d,x){var N=w;if(x.length){var B=ws(x,Ju(Qw));N|=S}return Ma(c,N,d,x,B)}),UT=bt(function(c,d,x){var N=w|b;if(x.length){var B=ws(x,Ju(UT));N|=S}return Ma(d,N,c,x,B)});function HT(c,d,x){d=x?n:d;var N=Ma(c,C,n,n,n,n,n,d);return N.placeholder=HT.placeholder,N}function qT(c,d,x){d=x?n:d;var N=Ma(c,k,n,n,n,n,n,d);return N.placeholder=qT.placeholder,N}function KT(c,d,x){var N,B,G,Z,J,ne,me=0,ge=!1,we=!1,Te=!0;if(typeof c!="function")throw new Bo(a);d=Ko(d)||0,gn(x)&&(ge=!!x.leading,we="maxWait"in x,G=we?Hn(Ko(x.maxWait)||0,d):G,Te="trailing"in x?!!x.trailing:Te);function He(An){var ki=N,$a=B;return N=B=n,me=An,Z=c.apply($a,ki),Z}function nt(An){return me=An,J=hd(Ot,d),ge?He(An):Z}function yt(An){var ki=An-ne,$a=An-me,dR=d-ki;return we?hr(dR,G-$a):dR}function rt(An){var ki=An-ne,$a=An-me;return ne===n||ki>=d||ki<0||we&&$a>=G}function Ot(){var An=Dm();if(rt(An))return kt(An);J=hd(Ot,yt(An))}function kt(An){return J=n,Te&&N?He(An):(N=B=n,Z)}function go(){J!==n&&rT(J),me=0,N=ne=B=J=n}function Lr(){return J===n?Z:kt(Dm())}function vo(){var An=Dm(),ki=rt(An);if(N=arguments,B=this,ne=An,ki){if(J===n)return nt(ne);if(we)return rT(J),J=hd(Ot,d),He(ne)}return J===n&&(J=hd(Ot,d)),Z}return vo.cancel=go,vo.flush=Lr,vo}var T8=bt(function(c,d){return Dk(c,1,d)}),R8=bt(function(c,d,x){return Dk(c,Ko(d)||0,x)});function I8(c){return Ma(c,E)}function $m(c,d){if(typeof c!="function"||d!=null&&typeof d!="function")throw new Bo(a);var x=function(){var N=arguments,B=d?d.apply(this,N):N[0],G=x.cache;if(G.has(B))return G.get(B);var Z=c.apply(this,N);return x.cache=G.set(B,Z)||G,Z};return x.cache=new($m.Cache||Ra),x}$m.Cache=Ra;function Fm(c){if(typeof c!="function")throw new Bo(a);return function(){var d=arguments;switch(d.length){case 0:return!c.call(this);case 1:return!c.call(this,d[0]);case 2:return!c.call(this,d[0],d[1]);case 3:return!c.call(this,d[0],d[1],d[2])}return!c.apply(this,d)}}function M8(c){return jT(2,c)}var L8=bU(function(c,d){d=d.length==1&&ht(d[0])?un(d[0],po(et())):un(ar(d,1),po(et()));var x=d.length;return bt(function(N){for(var B=-1,G=hr(N.length,x);++B=d}),Wl=zk(function(){return arguments}())?zk:function(c){return _n(c)&&zt.call(c,"callee")&&!Ek.call(c,"callee")},ht=se.isArray,G8=lk?po(lk):nU;function Kr(c){return c!=null&&Wm(c.length)&&!Na(c)}function Ln(c){return _n(c)&&Kr(c)}function Y8(c){return c===!0||c===!1||_n(c)&&Ir(c)==ee}var Ps=u6||c1,Z8=uk?po(uk):rU;function X8(c){return _n(c)&&c.nodeType===1&&!md(c)}function Q8(c){if(c==null)return!0;if(Kr(c)&&(ht(c)||typeof c=="string"||typeof c.splice=="function"||Ps(c)||ec(c)||Wl(c)))return!c.length;var d=mr(c);if(d==Se||d==De)return!c.size;if(pd(c))return!kw(c).length;for(var x in c)if(zt.call(c,x))return!1;return!0}function J8(c,d){return cd(c,d)}function e9(c,d,x){x=typeof x=="function"?x:n;var N=x?x(c,d):n;return N===n?cd(c,d,n,x):!!N}function e1(c){if(!_n(c))return!1;var d=Ir(c);return d==ve||d==he||typeof c.message=="string"&&typeof c.name=="string"&&!md(c)}function t9(c){return typeof c=="number"&&Tk(c)}function Na(c){if(!gn(c))return!1;var d=Ir(c);return d==ce||d==_e||d==re||d==St}function YT(c){return typeof c=="number"&&c==gt(c)}function Wm(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=W}function gn(c){var d=typeof c;return c!=null&&(d=="object"||d=="function")}function _n(c){return c!=null&&typeof c=="object"}var ZT=ck?po(ck):iU;function n9(c,d){return c===d||Ew(c,d,Uw(d))}function r9(c,d,x){return x=typeof x=="function"?x:n,Ew(c,d,Uw(d),x)}function o9(c){return XT(c)&&c!=+c}function i9(c){if(BU(c))throw new pt(i);return Bk(c)}function a9(c){return c===null}function s9(c){return c==null}function XT(c){return typeof c=="number"||_n(c)&&Ir(c)==le}function md(c){if(!_n(c)||Ir(c)!=$e)return!1;var d=dm(c);if(d===null)return!0;var x=zt.call(d,"constructor")&&d.constructor;return typeof x=="function"&&x instanceof x&&lm.call(x)==r6}var t1=fk?po(fk):aU;function l9(c){return YT(c)&&c>=-W&&c<=W}var QT=dk?po(dk):sU;function Vm(c){return typeof c=="string"||!ht(c)&&_n(c)&&Ir(c)==lt}function mo(c){return typeof c=="symbol"||_n(c)&&Ir(c)==Ne}var ec=pk?po(pk):lU;function u9(c){return c===n}function c9(c){return _n(c)&&mr(c)==Me}function f9(c){return _n(c)&&Ir(c)==Xe}var d9=Rm(Tw),p9=Rm(function(c,d){return c<=d});function JT(c){if(!c)return[];if(Kr(c))return Vm(c)?Ci(c):qr(c);if(nd&&c[nd])return Hj(c[nd]());var d=mr(c),x=d==Se?gw:d==De?im:tc;return x(c)}function Da(c){if(!c)return c===0?c:0;if(c=Ko(c),c===F||c===-F){var d=c<0?-1:1;return d*V}return c===c?c:0}function gt(c){var d=Da(c),x=d%1;return d===d?x?d-x:d:0}function eR(c){return c?Nl(gt(c),0,K):0}function Ko(c){if(typeof c=="number")return c;if(mo(c))return j;if(gn(c)){var d=typeof c.valueOf=="function"?c.valueOf():c;c=gn(d)?d+"":d}if(typeof c!="string")return c===0?c:+c;c=bk(c);var x=vs.test(c);return x||xt.test(c)?kj(c.slice(2),x?2:8):Rl.test(c)?j:+c}function tR(c){return Qi(c,Gr(c))}function h9(c){return c?Nl(gt(c),-W,W):c===0?c:0}function Ft(c){return c==null?"":ho(c)}var m9=Xu(function(c,d){if(pd(d)||Kr(d)){Qi(d,Qn(d),c);return}for(var x in d)zt.call(d,x)&&sd(c,x,d[x])}),nR=Xu(function(c,d){Qi(d,Gr(d),c)}),zm=Xu(function(c,d,x,N){Qi(d,Gr(d),c,N)}),g9=Xu(function(c,d,x,N){Qi(d,Qn(d),c,N)}),v9=La(xw);function y9(c,d){var x=Zu(c);return d==null?x:Ak(x,d)}var b9=bt(function(c,d){c=Gt(c);var x=-1,N=d.length,B=N>2?d[2]:n;for(B&&Mr(d[0],d[1],B)&&(N=1);++x1),G}),Qi(c,Bw(c),x),N&&(x=Uo(x,h|p|m,RU));for(var B=d.length;B--;)Aw(x,d[B]);return x});function $9(c,d){return oR(c,Fm(et(d)))}var F9=La(function(c,d){return c==null?{}:fU(c,d)});function oR(c,d){if(c==null)return{};var x=un(Bw(c),function(N){return[N]});return d=et(d),Yk(c,x,function(N,B){return d(N,B[0])})}function W9(c,d,x){d=Os(d,c);var N=-1,B=d.length;for(B||(B=1,c=n);++Nd){var N=c;c=d,d=N}if(x||c%1||d%1){var B=Rk();return hr(c+B*(d-c+Ej("1e-"+((B+"").length-1))),d)}return Iw(c,d)}var Z9=Qu(function(c,d,x){return d=d.toLowerCase(),c+(x?sR(d):d)});function sR(c){return o1(Ft(c).toLowerCase())}function lR(c){return c=Ft(c),c&&c.replace(QB,Vj).replace(vj,"")}function X9(c,d,x){c=Ft(c),d=ho(d);var N=c.length;x=x===n?N:Nl(gt(x),0,N);var B=x;return x-=d.length,x>=0&&c.slice(x,B)==d}function Q9(c){return c=Ft(c),c&&Pl.test(c)?c.replace(Pa,zj):c}function J9(c){return c=Ft(c),c&&kl.test(c)?c.replace(_i,"\\$&"):c}var e7=Qu(function(c,d,x){return c+(x?"-":"")+d.toLowerCase()}),t7=Qu(function(c,d,x){return c+(x?" ":"")+d.toLowerCase()}),n7=fT("toLowerCase");function r7(c,d,x){c=Ft(c),d=gt(d);var N=d?Hu(c):0;if(!d||N>=d)return c;var B=(d-N)/2;return Tm(gm(B),x)+c+Tm(mm(B),x)}function o7(c,d,x){c=Ft(c),d=gt(d);var N=d?Hu(c):0;return d&&N>>0,x?(c=Ft(c),c&&(typeof d=="string"||d!=null&&!t1(d))&&(d=ho(d),!d&&Uu(c))?Cs(Ci(c),0,x):c.split(d,x)):[]}var f7=Qu(function(c,d,x){return c+(x?" ":"")+o1(d)});function d7(c,d,x){return c=Ft(c),x=x==null?0:Nl(gt(x),0,c.length),d=ho(d),c.slice(x,x+d.length)==d}function p7(c,d,x){var N=H.templateSettings;x&&Mr(c,d,x)&&(d=n),c=Ft(c),d=zm({},d,N,yT);var B=zm({},d.imports,N.imports,yT),G=Qn(B),Z=mw(B,G),J,ne,me=0,ge=d.interpolate||em,we="__p += '",Te=vw((d.escape||em).source+"|"+ge.source+"|"+(ge===hs?rn:em).source+"|"+(d.evaluate||em).source+"|$","g"),He="//# sourceURL="+(zt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xj+"]")+` +`;c.replace(Te,function(rt,Ot,kt,go,Lr,vo){return kt||(kt=go),we+=c.slice(me,vo).replace(JB,Bj),Ot&&(J=!0,we+=`' + __e(`+Ot+`) + '`),Lr&&(ne=!0,we+=`'; `+Lr+`; @@ -70,7 +70,7 @@ __p += '`),kt&&(we+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+we+`return __p -}`;var yt=uR(function(){return Lt(G,He+"return "+we).apply(n,Z)});if(yt.source=we,t1(yt))throw yt;return yt}function g7(c){return Ft(c).toLowerCase()}function v7(c){return Ft(c).toUpperCase()}function y7(c,d,x){if(c=Ft(c),c&&(x||d===n))return yk(c);if(!c||!(d=ho(d)))return c;var N=Ci(c),B=Ci(d),G=bk(N,B),Z=wk(N,B)+1;return Cs(N,G,Z).join("")}function b7(c,d,x){if(c=Ft(c),c&&(x||d===n))return c.slice(0,xk(c)+1);if(!c||!(d=ho(d)))return c;var N=Ci(c),B=wk(N,Ci(d))+1;return Cs(N,0,B).join("")}function w7(c,d,x){if(c=Ft(c),c&&(x||d===n))return c.replace(or,"");if(!c||!(d=ho(d)))return c;var N=Ci(c),B=bk(N,Ci(d));return Cs(N,B).join("")}function S7(c,d){var x=_,N=R;if(gn(d)){var B="separator"in d?d.separator:B;x="length"in d?gt(d.length):x,N="omission"in d?ho(d.omission):N}c=Ft(c);var G=c.length;if(Uu(c)){var Z=Ci(c);G=Z.length}if(x>=G)return c;var J=x-Hu(N);if(J<1)return N;var ne=Z?Cs(Z,0,J).join(""):c.slice(0,J);if(B===n)return ne+N;if(Z&&(J+=ne.length-J),n1(B)){if(c.slice(J).search(B)){var me,ge=ne;for(B.global||(B=yw(B.source,Ft(xn.exec(B))+"g")),B.lastIndex=0;me=B.exec(ge);)var we=me.index;ne=ne.slice(0,we===n?J:we)}}else if(c.indexOf(ho(B),J)!=J){var Te=ne.lastIndexOf(B);Te>-1&&(ne=ne.slice(0,Te))}return ne+N}function x7(c){return c=Ft(c),c&&ds.test(c)?c.replace(Pl,Xj):c}var _7=Qu(function(c,d,x){return c+(x?" ":"")+d.toUpperCase()}),i1=cT("toUpperCase");function lR(c,d,x){return c=Ft(c),d=x?n:d,d===n?qj(c)?e6(c):$j(c):c.match(d)||[]}var uR=bt(function(c,d){try{return fo(c,n,d)}catch(x){return t1(x)?x:new pt(x)}}),O7=La(function(c,d){return zo(d,function(x){x=Ji(x),Ia(c,x,Jw(c[x],c))}),c});function C7(c){var d=c==null?0:c.length,x=et();return c=d?un(c,function(N){if(typeof N[1]!="function")throw new Bo(a);return[x(N[0]),N[1]]}):[],bt(function(N){for(var B=-1;++BW)return[];var x=K,N=hr(c,K);d=et(d),c-=K;for(var B=mw(N,d);++x0||d<0)?new Et(x):(c<0?x=x.takeRight(-c):c&&(x=x.drop(c)),d!==n&&(d=gt(d),x=d<0?x.dropRight(-d):x.take(d-c)),x)},Et.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},Et.prototype.toArray=function(){return this.take(K)},Xi(Et.prototype,function(c,d){var x=/^(?:filter|find|map|reject)|While$/.test(d),N=/^(?:head|last)$/.test(d),B=H[N?"take"+(d=="last"?"Right":""):d],G=N||/^find/.test(d);B&&(H.prototype[d]=function(){var Z=this.__wrapped__,J=N?[1]:arguments,ne=Z instanceof Et,me=J[0],ge=ne||mt(Z),we=function(Ot){var kt=B.apply(H,bs([Ot],J));return N&&Te?kt[0]:kt};ge&&x&&typeof me=="function"&&me.length!=1&&(ne=ge=!1);var Te=this.__chain__,He=!!this.__actions__.length,nt=G&&!Te,yt=ne&&!He;if(!G&&ge){Z=yt?Z:new Et(this);var rt=c.apply(Z,J);return rt.__actions__.push({func:Am,args:[we],thisArg:n}),new jo(rt,Te)}return nt&&yt?c.apply(this,J):(rt=this.thru(we),nt?N?rt.value()[0]:rt.value():rt)})}),zo(["pop","push","shift","sort","splice","unshift"],function(c){var d=am[c],x=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",N=/^(?:pop|shift)$/.test(c);H.prototype[c]=function(){var B=arguments;if(N&&!this.__chain__){var G=this.value();return d.apply(mt(G)?G:[],B)}return this[x](function(Z){return d.apply(mt(Z)?Z:[],B)})}}),Xi(Et.prototype,function(c,d){var x=H[d];if(x){var N=x.name+"";zt.call(Yu,N)||(Yu[N]=[]),Yu[N].push({name:d,func:x})}}),Yu[Em(n,b).name]=[{name:"wrapper",func:n}],Et.prototype.clone=x6,Et.prototype.reverse=_6,Et.prototype.value=O6,H.prototype.at=JH,H.prototype.chain=e8,H.prototype.commit=t8,H.prototype.next=n8,H.prototype.plant=o8,H.prototype.reverse=i8,H.prototype.toJSON=H.prototype.valueOf=H.prototype.value=a8,H.prototype.first=H.prototype.head,nd&&(H.prototype[nd]=r8),H},qu=t6();Ml?((Ml.exports=qu)._=qu,sw._=qu):ir._=qu}).call(EN)})(ry,ry.exports);var au=ry.exports;/*! +}`;var yt=cR(function(){return Lt(G,He+"return "+we).apply(n,Z)});if(yt.source=we,e1(yt))throw yt;return yt}function h7(c){return Ft(c).toLowerCase()}function m7(c){return Ft(c).toUpperCase()}function g7(c,d,x){if(c=Ft(c),c&&(x||d===n))return bk(c);if(!c||!(d=ho(d)))return c;var N=Ci(c),B=Ci(d),G=wk(N,B),Z=Sk(N,B)+1;return Cs(N,G,Z).join("")}function v7(c,d,x){if(c=Ft(c),c&&(x||d===n))return c.slice(0,_k(c)+1);if(!c||!(d=ho(d)))return c;var N=Ci(c),B=Sk(N,Ci(d))+1;return Cs(N,0,B).join("")}function y7(c,d,x){if(c=Ft(c),c&&(x||d===n))return c.replace(or,"");if(!c||!(d=ho(d)))return c;var N=Ci(c),B=wk(N,Ci(d));return Cs(N,B).join("")}function b7(c,d){var x=_,N=R;if(gn(d)){var B="separator"in d?d.separator:B;x="length"in d?gt(d.length):x,N="omission"in d?ho(d.omission):N}c=Ft(c);var G=c.length;if(Uu(c)){var Z=Ci(c);G=Z.length}if(x>=G)return c;var J=x-Hu(N);if(J<1)return N;var ne=Z?Cs(Z,0,J).join(""):c.slice(0,J);if(B===n)return ne+N;if(Z&&(J+=ne.length-J),t1(B)){if(c.slice(J).search(B)){var me,ge=ne;for(B.global||(B=vw(B.source,Ft(xn.exec(B))+"g")),B.lastIndex=0;me=B.exec(ge);)var we=me.index;ne=ne.slice(0,we===n?J:we)}}else if(c.indexOf(ho(B),J)!=J){var Te=ne.lastIndexOf(B);Te>-1&&(ne=ne.slice(0,Te))}return ne+N}function w7(c){return c=Ft(c),c&&ds.test(c)?c.replace(Cl,Yj):c}var S7=Qu(function(c,d,x){return c+(x?" ":"")+d.toUpperCase()}),o1=fT("toUpperCase");function uR(c,d,x){return c=Ft(c),d=x?n:d,d===n?Uj(c)?Qj(c):Nj(c):c.match(d)||[]}var cR=bt(function(c,d){try{return fo(c,n,d)}catch(x){return e1(x)?x:new pt(x)}}),x7=La(function(c,d){return zo(d,function(x){x=Ji(x),Ia(c,x,Qw(c[x],c))}),c});function _7(c){var d=c==null?0:c.length,x=et();return c=d?un(c,function(N){if(typeof N[1]!="function")throw new Bo(a);return[x(N[0]),N[1]]}):[],bt(function(N){for(var B=-1;++BW)return[];var x=K,N=hr(c,K);d=et(d),c-=K;for(var B=hw(N,d);++x0||d<0)?new Et(x):(c<0?x=x.takeRight(-c):c&&(x=x.drop(c)),d!==n&&(d=gt(d),x=d<0?x.dropRight(-d):x.take(d-c)),x)},Et.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},Et.prototype.toArray=function(){return this.take(K)},Xi(Et.prototype,function(c,d){var x=/^(?:filter|find|map|reject)|While$/.test(d),N=/^(?:head|last)$/.test(d),B=H[N?"take"+(d=="last"?"Right":""):d],G=N||/^find/.test(d);B&&(H.prototype[d]=function(){var Z=this.__wrapped__,J=N?[1]:arguments,ne=Z instanceof Et,me=J[0],ge=ne||ht(Z),we=function(Ot){var kt=B.apply(H,bs([Ot],J));return N&&Te?kt[0]:kt};ge&&x&&typeof me=="function"&&me.length!=1&&(ne=ge=!1);var Te=this.__chain__,He=!!this.__actions__.length,nt=G&&!Te,yt=ne&&!He;if(!G&&ge){Z=yt?Z:new Et(this);var rt=c.apply(Z,J);return rt.__actions__.push({func:Am,args:[we],thisArg:n}),new jo(rt,Te)}return nt&&yt?c.apply(this,J):(rt=this.thru(we),nt?N?rt.value()[0]:rt.value():rt)})}),zo(["pop","push","shift","sort","splice","unshift"],function(c){var d=am[c],x=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",N=/^(?:pop|shift)$/.test(c);H.prototype[c]=function(){var B=arguments;if(N&&!this.__chain__){var G=this.value();return d.apply(ht(G)?G:[],B)}return this[x](function(Z){return d.apply(ht(Z)?Z:[],B)})}}),Xi(Et.prototype,function(c,d){var x=H[d];if(x){var N=x.name+"";zt.call(Yu,N)||(Yu[N]=[]),Yu[N].push({name:d,func:x})}}),Yu[Em(n,b).name]=[{name:"wrapper",func:n}],Et.prototype.clone=w6,Et.prototype.reverse=S6,Et.prototype.value=x6,H.prototype.at=XH,H.prototype.chain=QH,H.prototype.commit=JH,H.prototype.next=e8,H.prototype.plant=n8,H.prototype.reverse=r8,H.prototype.toJSON=H.prototype.valueOf=H.prototype.value=o8,H.prototype.first=H.prototype.head,nd&&(H.prototype[nd]=t8),H},qu=Jj();Il?((Il.exports=qu)._=qu,aw._=qu):ir._=qu}).call(kN)})(ny,ny.exports);var iu=ny.exports;/*! * Copyright (c) Squirrel Chat et al., All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * @@ -96,9 +96,9 @@ function print() { __p += __j.call(arguments, '') } * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */function NX(e,t){let n=e.slice(0,t).split(/\r\n|\n|\r/g);return[n.length,n.pop().length+1]}function DX(e,t,n){let r=e.split(/\r\n|\n|\r/g),o="",i=(Math.log10(t+1)|0)+1;for(let a=t-1;a<=t+1;a++){let s=r[a-1];s&&(o+=a.toString().padEnd(i," "),o+=": ",o+=s,o+=` + */function AX(e,t){let n=e.slice(0,t).split(/\r\n|\n|\r/g);return[n.length,n.pop().length+1]}function NX(e,t,n){let r=e.split(/\r\n|\n|\r/g),o="",i=(Math.log10(t+1)|0)+1;for(let a=t-1;a<=t+1;a++){let s=r[a-1];s&&(o+=a.toString().padEnd(i," "),o+=": ",o+=s,o+=` `,a===t&&(o+=" ".repeat(i+n+2),o+=`^ -`))}return o}class Ct extends Error{constructor(n,r){const[o,i]=NX(r.toml,r.ptr),a=DX(r.toml,o,i);super(`Invalid TOML document: ${n} +`))}return o}class Ct extends Error{constructor(n,r){const[o,i]=AX(r.toml,r.ptr),a=NX(r.toml,o,i);super(`Invalid TOML document: ${n} ${a}`,r);nc(this,"line");nc(this,"column");nc(this,"codeblock");this.line=o,this.column=i,this.codeblock=a}}/*! * Copyright (c) Squirrel Chat et al., All rights reserved. @@ -126,14 +126,14 @@ ${a}`,r);nc(this,"line");nc(this,"column");nc(this,"codeblock");this.line=o,this * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */function oy(e,t=0,n=e.length){let r=e.indexOf(` + */function ry(e,t=0,n=e.length){let r=e.indexOf(` `,t);return e[r-1]==="\r"&&r--,r<=n?r:-1}function zC(e,t){for(let n=t;n-1&&n!=="'"&&e[t-1]==="\\"&&e[t-2]!=="\\");return t>-1&&(t+=r.length,r.length>1&&(e[t]===n&&t++,e[t]===n&&t++)),t}/*! +`))return i}}throw new Ct("cannot find end of structure",{toml:e,ptr:t})}function xF(e,t){let n=e[t],r=n===e[t+1]&&e[t+1]===e[t+2]?e.slice(t,t+3):n;t+=r.length-1;do t=e.indexOf(r,++t);while(t>-1&&n!=="'"&&e[t-1]==="\\"&&e[t-2]!=="\\");return t>-1&&(t+=r.length,r.length>1&&(e[t]===n&&t++,e[t]===n&&t++)),t}/*! * Copyright (c) Squirrel Chat et al., All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * @@ -159,7 +159,7 @@ ${a}`,r);nc(this,"line");nc(this,"column");nc(this,"codeblock");this.line=o,this * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */let $X=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;var ia,aa,Dr;const jc=class jc extends Date{constructor(n){let r=!0,o=!0,i="Z";if(typeof n=="string"){let a=n.match($X);a?(a[1]||(r=!1,n=`0000-01-01T${n}`),o=!!a[2],a[2]&&+a[2]>23?n="":(i=a[3]||null,n=n.toUpperCase(),!i&&o&&(n+="Z"))):n=""}super(n);Bm(this,ia,!1);Bm(this,aa,!1);Bm(this,Dr,null);isNaN(this.getTime())||(ea(this,ia,r),ea(this,aa,o),ea(this,Dr,i))}isDateTime(){return Jn(this,ia)&&Jn(this,aa)}isLocal(){return!Jn(this,ia)||!Jn(this,aa)||!Jn(this,Dr)}isDate(){return Jn(this,ia)&&!Jn(this,aa)}isTime(){return Jn(this,aa)&&!Jn(this,ia)}isValid(){return Jn(this,ia)||Jn(this,aa)}toISOString(){let n=super.toISOString();if(this.isDate())return n.slice(0,10);if(this.isTime())return n.slice(11,23);if(Jn(this,Dr)===null)return n.slice(0,-1);if(Jn(this,Dr)==="Z")return n;let r=+Jn(this,Dr).slice(1,3)*60+ +Jn(this,Dr).slice(4,6);return r=Jn(this,Dr)[0]==="-"?r:-r,new Date(this.getTime()-r*6e4).toISOString().slice(0,-1)+Jn(this,Dr)}static wrapAsOffsetDateTime(n,r="Z"){let o=new jc(n);return ea(o,Dr,r),o}static wrapAsLocalDateTime(n){let r=new jc(n);return ea(r,Dr,null),r}static wrapAsLocalDate(n){let r=new jc(n);return ea(r,aa,!1),ea(r,Dr,null),r}static wrapAsLocalTime(n){let r=new jc(n);return ea(r,ia,!1),ea(r,Dr,null),r}};ia=new WeakMap,aa=new WeakMap,Dr=new WeakMap;let d_=jc;/*! + */let DX=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;var ia,aa,Dr;const jc=class jc extends Date{constructor(n){let r=!0,o=!0,i="Z";if(typeof n=="string"){let a=n.match(DX);a?(a[1]||(r=!1,n=`0000-01-01T${n}`),o=!!a[2],a[2]&&+a[2]>23?n="":(i=a[3]||null,n=n.toUpperCase(),!i&&o&&(n+="Z"))):n=""}super(n);Bm(this,ia,!1);Bm(this,aa,!1);Bm(this,Dr,null);isNaN(this.getTime())||(ea(this,ia,r),ea(this,aa,o),ea(this,Dr,i))}isDateTime(){return Jn(this,ia)&&Jn(this,aa)}isLocal(){return!Jn(this,ia)||!Jn(this,aa)||!Jn(this,Dr)}isDate(){return Jn(this,ia)&&!Jn(this,aa)}isTime(){return Jn(this,aa)&&!Jn(this,ia)}isValid(){return Jn(this,ia)||Jn(this,aa)}toISOString(){let n=super.toISOString();if(this.isDate())return n.slice(0,10);if(this.isTime())return n.slice(11,23);if(Jn(this,Dr)===null)return n.slice(0,-1);if(Jn(this,Dr)==="Z")return n;let r=+Jn(this,Dr).slice(1,3)*60+ +Jn(this,Dr).slice(4,6);return r=Jn(this,Dr)[0]==="-"?r:-r,new Date(this.getTime()-r*6e4).toISOString().slice(0,-1)+Jn(this,Dr)}static wrapAsOffsetDateTime(n,r="Z"){let o=new jc(n);return ea(o,Dr,r),o}static wrapAsLocalDateTime(n){let r=new jc(n);return ea(r,Dr,null),r}static wrapAsLocalDate(n){let r=new jc(n);return ea(r,aa,!1),ea(r,Dr,null),r}static wrapAsLocalTime(n){let r=new jc(n);return ea(r,ia,!1),ea(r,Dr,null),r}};ia=new WeakMap,aa=new WeakMap,Dr=new WeakMap;let d_=jc;/*! * Copyright (c) Squirrel Chat et al., All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * @@ -185,13 +185,13 @@ ${a}`,r);nc(this,"line");nc(this,"column");nc(this,"codeblock");this.line=o,this * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */let FX=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,WX=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,VX=/^[+-]?0[0-9_]/,zX=/^[0-9a-f]{4,8}$/i,G2={b:"\b",t:" ",n:` -`,f:"\f",r:"\r",'"':'"',"\\":"\\"};function OF(e,t=0,n=e.length){let r=e[t]==="'",o=e[t++]===e[t]&&e[t]===e[t+1];o&&(n-=2,e[t+=2]==="\r"&&t++,e[t]===` + */let $X=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,FX=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,WX=/^[+-]?0[0-9_]/,VX=/^[0-9a-f]{4,8}$/i,YI={b:"\b",t:" ",n:` +`,f:"\f",r:"\r",'"':'"',"\\":"\\"};function _F(e,t=0,n=e.length){let r=e[t]==="'",o=e[t++]===e[t]&&e[t]===e[t+1];o&&(n-=2,e[t+=2]==="\r"&&t++,e[t]===` `&&t++);let i=0,a,s="",l=t;for(;t-1&&(zC(e,i),o=o.slice(0,i));let a=o.trimEnd();if(!r){let s=o.indexOf(` -`,a.length);if(s>-1)throw new Ct("newlines are not allowed in inline tables",{toml:e,ptr:t+s})}return[a,i]}function BC(e,t,n,r){if(r===0)throw new Ct("document contains excessively nested structures. aborting.",{toml:e,ptr:t});let o=e[t];if(o==="["||o==="{"){let[s,l]=o==="["?qX(e,t,r):HX(e,t,r),u=K2(e,l,",",n);if(n==="}"){let f=oy(e,l,u);if(f>-1)throw new Ct("newlines are not allowed in inline tables",{toml:e,ptr:f})}return[s,u]}let i;if(o==='"'||o==="'"){i=_F(e,t);let s=OF(e,t,i);if(n){if(i=Ka(e,i,n!=="]"),e[i]&&e[i]!==","&&e[i]!==n&&e[i]!==` -`&&e[i]!=="\r")throw new Ct("unexpected character encountered",{toml:e,ptr:i});i+=+(e[i]===",")}return[s,i]}i=K2(e,t,",",n);let a=jX(e,t,i-+(e[i-1]===","),n==="]");if(!a[0])throw new Ct("incomplete key-value declaration: no value specified",{toml:e,ptr:t});return n&&a[1]>-1&&(i=Ka(e,t+a[1]),i+=+(e[i]===",")),[BX(a[0],e,t),i]}/*! + */function BX(e,t,n,r){let o=e.slice(t,n),i=o.indexOf("#");i>-1&&(zC(e,i),o=o.slice(0,i));let a=o.trimEnd();if(!r){let s=o.indexOf(` +`,a.length);if(s>-1)throw new Ct("newlines are not allowed in inline tables",{toml:e,ptr:t+s})}return[a,i]}function BC(e,t,n,r){if(r===0)throw new Ct("document contains excessively nested structures. aborting.",{toml:e,ptr:t});let o=e[t];if(o==="["||o==="{"){let[s,l]=o==="["?HX(e,t,r):UX(e,t,r),u=GI(e,l,",",n);if(n==="}"){let f=ry(e,l,u);if(f>-1)throw new Ct("newlines are not allowed in inline tables",{toml:e,ptr:f})}return[s,u]}let i;if(o==='"'||o==="'"){i=xF(e,t);let s=_F(e,t,i);if(n){if(i=Ka(e,i,n!=="]"),e[i]&&e[i]!==","&&e[i]!==n&&e[i]!==` +`&&e[i]!=="\r")throw new Ct("unexpected character encountered",{toml:e,ptr:i});i+=+(e[i]===",")}return[s,i]}i=GI(e,t,",",n);let a=BX(e,t,i-+(e[i-1]===","),n==="]");if(!a[0])throw new Ct("incomplete key-value declaration: no value specified",{toml:e,ptr:t});return n&&a[1]>-1&&(i=Ka(e,t+a[1]),i+=+(e[i]===",")),[zX(a[0],e,t),i]}/*! * Copyright (c) Squirrel Chat et al., All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * @@ -245,8 +245,8 @@ ${a}`,r);nc(this,"line");nc(this,"column");nc(this,"codeblock");this.line=o,this * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */let UX=/^[a-zA-Z0-9-_]+[ \t]*$/;function p_(e,t,n="="){let r=t-1,o=[],i=e.indexOf(n,t);if(i<0)throw new Ct("incomplete key-value: cannot find end of key",{toml:e,ptr:t});do{let a=e[t=++r];if(a!==" "&&a!==" ")if(a==='"'||a==="'"){if(a===e[t+1]&&a===e[t+2])throw new Ct("multiline strings are not allowed in keys",{toml:e,ptr:t});let s=_F(e,t);if(s<0)throw new Ct("unfinished string encountered",{toml:e,ptr:t});r=e.indexOf(".",s);let l=e.slice(s,r<0||r>i?i:r),u=oy(l);if(u>-1)throw new Ct("newlines are not allowed in keys",{toml:e,ptr:t+r+u});if(l.trimStart())throw new Ct("found extra tokens after the string part",{toml:e,ptr:s});if(ii?i:r);if(!UX.test(s))throw new Ct("only letter, numbers, dashes and underscores are allowed in keys",{toml:e,ptr:t});o.push(s.trimEnd())}}while(r+1&&ri?i:r),u=ry(l);if(u>-1)throw new Ct("newlines are not allowed in keys",{toml:e,ptr:t+r+u});if(l.trimStart())throw new Ct("found extra tokens after the string part",{toml:e,ptr:s});if(ii?i:r);if(!jX.test(s))throw new Ct("only letter, numbers, dashes and underscores are allowed in keys",{toml:e,ptr:t});o.push(s.trimEnd())}}while(r+1&&r{let e=window.localStorage.getItem("colorScheme");if(e===null||!["light","dark","light-high-contrast","dark-high-contrast"].includes(e)){const r=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",o=window.matchMedia("(prefers-contrast: more)").matches?"-high-contrast":"";e=`${r}${o}`}document.documentElement.dataset.colorScheme=e,await dQ().then(r=>{X2=J2(r,!1,lQ,"from server settings file")});const t=new URLSearchParams(window.location.search),n={};t.forEach((r,o)=>{let i=n;if(o.startsWith("opencast.")||o==="allowedCallbackPrefixes")return;o==="mediaPackageId"&&(o="id");const a=o.split(".");a.slice(0,-1).forEach(s=>{s in i||(i[s]={}),i=i[s]}),i[a[a.length-1]]=r}),Q2=J2(n,!0,uQ,"given as URL GET parameter"),ft=EF.all([cQ,X2,Q2]),ft.opencast.local=ft.opencast.local&&ft.opencast.url===window.location.origin,ft.callbackUrl=ft.allowedCallbackPrefixes.some(r=>{var o;return(o=ft.callbackUrl)==null?void 0:o.startsWith(r)})?ft.callbackUrl:void 0},dQ=async()=>{var i;let e="./";e.endsWith("/")||(e+="/");const t=sQ,n=t.startsWith("/")?"":e,r=new URL(n.concat(t),window.location.origin);let o;try{o=await fetch(r)}catch(a){return console.warn(`Could not access "${t}" due to network error!`,a||""),null}if(o.status===404)return console.debug(`"${t}" returned 404: ignoring`),null;if(!o.ok)return console.error(`Fetching "${t}" failed: ${o.status} ${o.statusText}`),null;if((i=o.headers.get("Content-Type"))!=null&&i.startsWith("text/html"))return console.warn(`"${t}" request has "Content-Type: text/html" -> ignoring...`),null;try{return KX(await o.text())}catch(a){throw console.error(`Could not parse "${t}" as TOML: `,a),new SyntaxError(`Could not parse "${t}" as TOML: ${a}`)}},J2=(e,t,n,r)=>{const o=(s,l,u)=>typeof s=="function"?i(s,l,u):a(s,l,u),i=(s,l,u)=>{try{const f=s(l,t,n);return f===void 0?l:f}catch(f){return console.warn(`Validation of setting "${u}" (${r}) with value "${l}" failed: ${f}. Ignoring.`),null}},a=(s,l,u)=>{const f={};for(const h in l){const p=u?`${u}.${h}`:h;if(h in s){const m=o(s[h],l[h],p);m!==null&&(f[h]=m)}else console.warn(`"${p}" (${r}) is not a valid settings key. Ignoring.`)}return f};return o(pQ,e,"")},sr={string:(e,t)=>{if(typeof e!="string")throw new Error("is not a string, but should be")},boolean:(e,t)=>{if(typeof e!="boolean")if(t){if(e==="true")return!0;if(e==="false")return!1;throw new Error("cant be parsed as boolean")}else throw new Error("is not a boolean")},array:(e,t)=>{if(!Array.isArray(e))throw new Error("is not an array, but should be");for(const n in e)if(typeof n!="string")throw new Error("is not a string, but should be")},map:(e,t)=>{for(const n in e){if(typeof n!="string")throw new Error("is not a string, but should be");if(typeof e[n]!="string")throw new Error("is not a string, but should be")}},objectsWithinObjects:(e,t)=>{for(const n in e){if(typeof n!="string")throw new Error("is not a string, but should be");for(const r in e[n]){if(typeof r!="string")throw new Error("is not a string, but should be");for(const o in e[n][r]){if(typeof o!="string")throw new Error("is not a string, but should be");if(o==="show"&&typeof e[n][r][o]!="boolean")throw new Error("is not a boolean");if(o==="readonly"&&typeof e[n][r][o]!="boolean")throw new Error("is not a boolean")}}}}},pQ={id:sr.string,allowedCallbackPrefixes:sr.array,callbackUrl:sr.string,callbackSystem:sr.string,opencast:{url:sr.string,name:sr.string,password:sr.string},metadata:{show:sr.boolean,configureFields:sr.objectsWithinObjects},trackSelection:{show:sr.boolean},subtitles:{show:sr.boolean,mainFlavor:sr.string,languages:sr.objectsWithinObjects,icons:sr.map,defaultVideoFlavor:sr.map},thumbnail:{show:sr.boolean,simpleMode:sr.boolean}},EF=(e,t)=>PF(e,t,{arrayMerge:kF});EF.all=e=>PF.all(e,{arrayMerge:kF});const kF=(e,t,n)=>t;async function qi(e,{body:t,...n}={}){const r={"Content-Type":"application/json"};let o={};ft.opencast.name&&ft.opencast.password&&(o={Authorization:`Basic ${btoa(unescape(encodeURIComponent(ft.opencast.name+":"+ft.opencast.password)))}`});const i={method:t?"POST":"GET",...n,headers:{...r,...n.headers,...o}};t&&(i.headers["Content-Type"].includes("urlencoded")?i.body=t:i.body=JSON.stringify(t));let a,s,l;try{if(l=await window.fetch(e,i),s=await l.text(),l.url.includes("login.html"))throw new Error("Got redirected to login page, authentification failed.");if(l.ok)return a=s.length?s:"",a;throw new Error(l.statusText)}catch(u){return Promise.reject(l.status?"Status "+l.status+": "+s:u.message)}}qi.get=function(e,t={}){return qi(e,{...t,method:"GET"})};qi.post=function(e,t,n={}){return qi(e,{...n,body:t})};qi.delete=function(e,t={}){return qi(e,{...t,method:"DELETE"})};var UC={};(function(e){(function(){var t={direction:"horizontal",snapToLines:!0,linePosition:"auto",lineAlign:"start",textPosition:"auto",positionAlign:"auto",size:100,alignment:"center"},n=function(s){s||(s={"&":"&","<":"<",">":">","&lrm":"‎","&rlm":"‏"," ":" "}),this.entities=s,this.parse=function(l,u){l=l.replace(/\0/g,"�");var f=/\r\n|\r|\n/,h=Date.now(),p=0,m=l.split(f),g=!1,y=[],w=[],b=[];function O(D,$){b.push({message:D,line:p+1,col:$})}var C=m[p],k=C.length,S="WEBVTT",T=0,P=S.length;for(C[0]==="\uFEFF"&&(T=1,P+=1),(kP&&C[P]!==" "&&C[P]!==" ")&&O('No valid signature. (File needs to start with "WEBVTT".)'),p++;m[p]!=""&&m[p]!=null;){if(O("No blank line after the signature."),m[p].indexOf("-->")!=-1){g=!0;break}p++}for(;m[p]!=null;){for(var v;!g&&m[p]=="";)p++;if(!g&&m[p]==null)break;v=Object.assign({},t,{id:"",startTime:0,endTime:0,pauseOnExit:!1,direction:"horizontal",snapToLines:!0,linePosition:"auto",lineAlign:"start",textPosition:"auto",positionAlign:"auto",size:100,alignment:"center",text:"",tree:null});var E=!0;if(m[p].indexOf("-->")==-1){if(v.id=m[p],/^NOTE($|[ \t])/.test(v.id)){for(p++;m[p]!=""&&m[p]!=null;)m[p].indexOf("-->")!=-1&&O("Cannot have timestamp in a comment."),p++;continue}if(/^STYLE($|[ \t])/.test(v.id)){var _=[],R=!1;for(p++;m[p]!=""&&m[p]!=null;)m[p].indexOf("-->")!=-1&&(O("Cannot have timestamp in a style block."),R=!0),_.push(m[p]),p++;if(w.length){O("Style blocks cannot appear after the first cue.");continue}R||y.push(_.join(` + */function ZI(e,t,n,r){var u,f;let o=t,i=n,a,s=!1,l;for(let h=0;h{let e=window.localStorage.getItem("colorScheme");if(e===null||!["light","dark","light-high-contrast","dark-high-contrast"].includes(e)){const r=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",o=window.matchMedia("(prefers-contrast: more)").matches?"-high-contrast":"";e=`${r}${o}`}document.documentElement.dataset.colorScheme=e,await fQ().then(r=>{QI=e2(r,!1,sQ,"from server settings file")});const t=new URLSearchParams(window.location.search),n={};t.forEach((r,o)=>{let i=n;if(o.startsWith("opencast.")||o==="allowedCallbackPrefixes")return;o==="mediaPackageId"&&(o="id");const a=o.split(".");a.slice(0,-1).forEach(s=>{s in i||(i[s]={}),i=i[s]}),i[a[a.length-1]]=r}),JI=e2(n,!0,lQ,"given as URL GET parameter"),ft=PF.all([uQ,QI,JI]),ft.opencast.local=ft.opencast.local&&ft.opencast.url===window.location.origin,ft.callbackUrl=ft.allowedCallbackPrefixes.some(r=>{var o;return(o=ft.callbackUrl)==null?void 0:o.startsWith(r)})?ft.callbackUrl:void 0},fQ=async()=>{var i;let e="./";e.endsWith("/")||(e+="/");const t=aQ,n=t.startsWith("/")?"":e,r=new URL(n.concat(t),window.location.origin);let o;try{o=await fetch(r)}catch(a){return console.warn(`Could not access "${t}" due to network error!`,a||""),null}if(o.status===404)return console.debug(`"${t}" returned 404: ignoring`),null;if(!o.ok)return console.error(`Fetching "${t}" failed: ${o.status} ${o.statusText}`),null;if((i=o.headers.get("Content-Type"))!=null&&i.startsWith("text/html"))return console.warn(`"${t}" request has "Content-Type: text/html" -> ignoring...`),null;try{return qX(await o.text())}catch(a){throw console.error(`Could not parse "${t}" as TOML: `,a),new SyntaxError(`Could not parse "${t}" as TOML: ${a}`)}},e2=(e,t,n,r)=>{const o=(s,l,u)=>typeof s=="function"?i(s,l,u):a(s,l,u),i=(s,l,u)=>{try{const f=s(l,t,n);return f===void 0?l:f}catch(f){return console.warn(`Validation of setting "${u}" (${r}) with value "${l}" failed: ${f}. Ignoring.`),null}},a=(s,l,u)=>{const f={};for(const h in l){const p=u?`${u}.${h}`:h;if(h in s){const m=o(s[h],l[h],p);m!==null&&(f[h]=m)}else console.warn(`"${p}" (${r}) is not a valid settings key. Ignoring.`)}return f};return o(dQ,e,"")},sr={string:(e,t)=>{if(typeof e!="string")throw new Error("is not a string, but should be")},boolean:(e,t)=>{if(typeof e!="boolean")if(t){if(e==="true")return!0;if(e==="false")return!1;throw new Error("cant be parsed as boolean")}else throw new Error("is not a boolean")},array:(e,t)=>{if(!Array.isArray(e))throw new Error("is not an array, but should be");for(const n in e)if(typeof n!="string")throw new Error("is not a string, but should be")},map:(e,t)=>{for(const n in e){if(typeof n!="string")throw new Error("is not a string, but should be");if(typeof e[n]!="string")throw new Error("is not a string, but should be")}},objectsWithinObjects:(e,t)=>{for(const n in e){if(typeof n!="string")throw new Error("is not a string, but should be");for(const r in e[n]){if(typeof r!="string")throw new Error("is not a string, but should be");for(const o in e[n][r]){if(typeof o!="string")throw new Error("is not a string, but should be");if(o==="show"&&typeof e[n][r][o]!="boolean")throw new Error("is not a boolean");if(o==="readonly"&&typeof e[n][r][o]!="boolean")throw new Error("is not a boolean")}}}}},dQ={id:sr.string,allowedCallbackPrefixes:sr.array,callbackUrl:sr.string,callbackSystem:sr.string,opencast:{url:sr.string,name:sr.string,password:sr.string},metadata:{show:sr.boolean,configureFields:sr.objectsWithinObjects},trackSelection:{show:sr.boolean},subtitles:{show:sr.boolean,mainFlavor:sr.string,languages:sr.objectsWithinObjects,icons:sr.map,defaultVideoFlavor:sr.map},thumbnail:{show:sr.boolean,simpleMode:sr.boolean}},PF=(e,t)=>CF(e,t,{arrayMerge:EF});PF.all=e=>CF.all(e,{arrayMerge:EF});const EF=(e,t,n)=>t;async function qi(e,{body:t,...n}={}){const r={"Content-Type":"application/json"};let o={};ft.opencast.name&&ft.opencast.password&&(o={Authorization:`Basic ${btoa(unescape(encodeURIComponent(ft.opencast.name+":"+ft.opencast.password)))}`});const i={method:t?"POST":"GET",...n,headers:{...r,...n.headers,...o}};t&&(i.headers["Content-Type"].includes("urlencoded")?i.body=t:i.body=JSON.stringify(t));let a,s,l;try{if(l=await window.fetch(e,i),s=await l.text(),l.url.includes("login.html"))throw new Error("Got redirected to login page, authentification failed.");if(l.ok)return a=s.length?s:"",a;throw new Error(l.statusText)}catch(u){return Promise.reject(l.status?"Status "+l.status+": "+s:u.message)}}qi.get=function(e,t={}){return qi(e,{...t,method:"GET"})};qi.post=function(e,t,n={}){return qi(e,{...n,body:t})};qi.delete=function(e,t={}){return qi(e,{...t,method:"DELETE"})};var UC={};(function(e){(function(){var t={direction:"horizontal",snapToLines:!0,linePosition:"auto",lineAlign:"start",textPosition:"auto",positionAlign:"auto",size:100,alignment:"center"},n=function(s){s||(s={"&":"&","<":"<",">":">","&lrm":"‎","&rlm":"‏"," ":" "}),this.entities=s,this.parse=function(l,u){l=l.replace(/\0/g,"�");var f=/\r\n|\r|\n/,h=Date.now(),p=0,m=l.split(f),g=!1,y=[],w=[],b=[];function O(D,$){b.push({message:D,line:p+1,col:$})}var C=m[p],k=C.length,S="WEBVTT",T=0,P=S.length;for(C[0]==="\uFEFF"&&(T=1,P+=1),(kP&&C[P]!==" "&&C[P]!==" ")&&O('No valid signature. (File needs to start with "WEBVTT".)'),p++;m[p]!=""&&m[p]!=null;){if(O("No blank line after the signature."),m[p].indexOf("-->")!=-1){g=!0;break}p++}for(;m[p]!=null;){for(var v;!g&&m[p]=="";)p++;if(!g&&m[p]==null)break;v=Object.assign({},t,{id:"",startTime:0,endTime:0,pauseOnExit:!1,direction:"horizontal",snapToLines:!0,linePosition:"auto",lineAlign:"start",textPosition:"auto",positionAlign:"auto",size:100,alignment:"center",text:"",tree:null});var E=!0;if(m[p].indexOf("-->")==-1){if(v.id=m[p],/^NOTE($|[ \t])/.test(v.id)){for(p++;m[p]!=""&&m[p]!=null;)m[p].indexOf("-->")!=-1&&O("Cannot have timestamp in a comment."),p++;continue}if(/^STYLE($|[ \t])/.test(v.id)){var _=[],R=!1;for(p++;m[p]!=""&&m[p]!=null;)m[p].indexOf("-->")!=-1&&(O("Cannot have timestamp in a style block."),R=!0),_.push(m[p]),p++;if(w.length){O("Style blocks cannot appear after the first cue.");continue}R||y.push(_.join(` `));continue}if(p++,m[p]==""||m[p]==null){O("Cue identifier cannot be standalone.");continue}if(m[p].indexOf("-->")==-1){E=!1,O("Cue identifier needs to be followed by timestamp.");continue}}g=!1;var M=new r(m[p],O),L=0;if(w.length>0&&(L=w[w.length-1].startTime),E&&!M.parse(v,L)){for(v=null,p++;m[p]!=""&&m[p]!=null;){if(m[p].indexOf("-->")!=-1){g=!0;break}p++}continue}for(p++;m[p]!=""&&m[p]!=null;){if(m[p].indexOf("-->")!=-1){O("Blank line missing before cue."),g=!0;break}v.text!=""&&(v.text+=` `),v.text+=m[p],p++}var I=new o(v.text,O,u,s);v.tree=I.parse(v.startTime,v.endTime),w.push(v)}return w.sort(function(D,$){return D.startTime<$.startTime?-1:D.startTime>$.startTime?1:D.endTime>$.endTime?-1:D.endTime<$.endTime?1:0}),{cues:w,errors:b,time:Date.now()-h,styles:y}}},r=function(h,l){var u=/[\u0020\t\f]/,f=/[^\u0020\t\f]/,h=h,p=0,m=function(O){l(O,p+1)};function g(O){for(;h[p]!=null&&O.test(h[p]);)p++}function y(O){for(var C="";h[p]!=null&&O.test(h[p]);)C+=h[p],p++;return C}function w(){var O="minutes",C,k,S,T;if(h[p]==null){m("No timestamp found.");return}if(!/\d/.test(h[p])){m("Timestamp must start with a character in the range 0-9.");return}if(C=y(/\d/),(C.length>2||parseInt(C,10)>59)&&(O="hours"),h[p]!=":"){m("No time unit separator found.");return}if(p++,k=y(/\d/),k.length!=2){m("Must be exactly two digits.");return}if(O=="hours"||h[p]==":"){if(h[p]!=":"){m("No seconds found or minutes is greater than 59.");return}if(p++,S=y(/\d/),S.length!=2){m("Must be exactly two digits.");return}}else{if(C.length!=2){m("Must be exactly two digits.");return}S=k,k=C,C="0"}if(h[p]!="."){m('No decimal separator (".") found.');return}if(p++,T=y(/\d/),T.length!=3){m("Milliseconds must be given in three digits.");return}if(parseInt(k,10)>59){m("You cannot have more than 59 minutes.");return}if(parseInt(S,10)>59){m("You cannot have more than 59 seconds.");return}return parseInt(C,10)*60*60+parseInt(k,10)*60+parseInt(S,10)+parseInt(T,10)/1e3}function b(O,C){for(var k=O.split(u),S=[],T=0;T100)){m("Line position cannot be >100%.");continue}if(M===""||isNaN(M)||!isFinite(M)){m("Line position needs to be a number");continue}if(R!==void 0){if(!["start","center","end"].includes(R)){m("Line alignment needs to be one of start, center or end");continue}C.lineAlign=R}C.snapToLines=!L,C.linePosition=parseFloat(M),parseFloat(M).toString()!==M&&(C.nonSerializable=!0)}else if(v=="position"){if(/,/.test(E)){var _=E.split(",");E=_[0];var I=_[1]}if(E[E.length-1]!="%"){m("Text position must be a percentage.");continue}if(parseInt(E,10)>100||parseInt(E,10)<0){m("Text position needs to be between 0 and 100%.");continue}if(M=E.slice(0,E.length-1),M===""||isNaN(M)||!isFinite(M)){m("Line position needs to be a number");continue}if(I!==void 0){if(!["line-left","center","line-right"].includes(I)){m("Position alignment needs to be one of line-left, center or line-right");continue}C.positionAlign=I}C.textPosition=parseFloat(M)}else if(v=="size"){if(E[E.length-1]!="%"){m("Size must be a percentage.");continue}if(parseInt(E,10)>100){m("Size cannot be >100%.");continue}var D=E.slice(0,E.length-1);if(D===void 0||D===""||isNaN(D)){m("Size needs to be a number"),D=100;continue}else if(D=parseFloat(D),D<0||D>100){m("Size needs to be between 0 and 100%.");continue}C.size=D}else if(v=="align"){var $=["start","center","end","left","right"];if($.indexOf(E)==-1){m("Alignment can only be set to one of "+$.join(", ")+".");continue}C.alignment=E}else m("Invalid setting.")}}this.parse=function(O,C){if(g(u),O.startTime=w(),O.startTime!=null){if(O.startTime' by whitespace."),g(u),h[p]!="-"){m("No valid timestamp separator found.");return}if(p++,h[p]!="-"){m("No valid timestamp separator found.");return}if(p++,h[p]!=">"){m("No valid timestamp separator found.");return}if(p++,f.test(h[p])&&m("'-->' not separated from timestamp by whitespace."),g(u),O.endTime=w(),O.endTime!=null)return O.endTime<=O.startTime&&m("End timestamp is not greater than start timestamp."),f.test(h[p]),g(u),b(h.substring(p),O),!0}},this.parseTimestamp=function(){var O=w();if(h[p]!=null){m("Timestamp must not have trailing characters.");return}return O}},o=function(p,l,u,f){this.entities=f;var h=this,p=p,m=0,g=function(w){u!="metadata"&&l(w,m+1)};this.parse=function(w,b){function O(M){const L={...M};return M.children&&(L.children=M.children.map(O)),L.parent&&delete L.parent,L}var C={children:[]},k=C,S=[];function T(M){k.children.push({type:"object",name:M[1],classes:M[2],children:[],parent:k}),k=k.children[k.children.length-1]}function P(M){for(var L=k;L;){if(L.name==M)return!0;L=L.parent}}for(;p[m]!=null;){var v=y();if(v[0]=="text")k.children.push({type:"text",value:v[1],parent:k});else if(v[0]=="start tag"){u=="chapters"&&g("Start tags not allowed in chapter title text.");var E=v[1];E!="v"&&E!="lang"&&v[3]!=""&&g("Only and can have an annotation."),E=="c"||E=="i"||E=="b"||E=="u"||E=="ruby"||E=="rt"&&k.name=="ruby"?T(v):E=="v"?(P("v")&&g(" cannot be nested inside itself."),T(v),k.value=v[3],v[3]||g(" requires an annotation.")):E=="lang"?(T(v),k.value=v[3]):g("Incorrect start tag.")}else if(v[0]=="end tag")u=="chapters"&&g("End tags not allowed in chapter title text."),v[1]==k.name?k=k.parent:v[1]=="ruby"&&k.name=="rt"?k=k.parent.parent:g("Incorrect end tag.");else if(v[0]=="timestamp"){u=="chapters"&&g("Timestamp not allowed in chapter title text.");var _=new r(v[1],g),R=_.parseTimestamp();R!=null&&((R<=w||R>=b)&&g("Timestamp must be between start timestamp and end timestamp."),S.length>0&&S[S.length-1]>=R&&g("Timestamp must be greater than any previous timestamp."),k.children.push({type:"timestamp",value:R,parent:k}),S.push(R))}}for(;k.parent;)k.name!="v"&&g("Required end tag missing."),k=k.parent;return O(C)};function y(){for(var w="data",b="",O="",C=[];p[m-1]!=null||m==0;){var k=p[m];if(w=="data")if(k=="&")O=k,w="escape";else if(k=="<"&&b=="")w="tag";else{if(k=="<"||k==null)return["text",b];b+=k}else if(w=="escape")if(k=="<"||k==null){g("Incorrect escape.");let S;return(S=O.match(/^&#([0-9]+)$/))?b+=String.fromCharCode(S[1]):h.entities[O]?b+=h.entities[O]:b+=O,["text",b]}else if(k=="&")g("Incorrect escape."),b+=O,O=k;else if(/[a-z#0-9]/i.test(k))O+=k;else if(k==";"){let S;(S=O.match(/^&#(x?[0-9]+)$/))?b+=String.fromCharCode("0"+S[1]):h.entities[O+k]?b+=h.entities[O+k]:(S=Object.keys(f).find(T=>O.startsWith(T)))?b+=h.entities[S]+O.slice(S.length)+k:(g("Incorrect escape."),b+=O+";"),w="data"}else g("Incorrect escape."),b+=O+k,w="data";else if(w=="tag")if(k==" "||k==` `||k=="\f"||k==" ")w="start tag annotation";else if(k==".")w="start tag class";else if(k=="/")w="end tag";else if(/\d/.test(k))b=k,w="timestamp tag";else{if(k==">"||k==null)return k==">"&&m++,["start tag","",[],""];b=k,w="start tag"}else if(w=="start tag")if(k==" "||k=="\f"||k==" ")w="start tag annotation";else if(k==` @@ -288,8 +288,8 @@ ${a}`,r);nc(this,"line");nc(this,"column");nc(this,"codeblock");this.line=o,this `}this.serialize=function(p,m){var g=`WEBVTT -`;if(m)for(var y=0;y{const n=Math.pow(10,t);return Math.round((e+Number.EPSILON)*n)/n},TF=e=>new Promise((t,n)=>setTimeout(t,e)),cl=e=>{const t=new Date(e||0).toISOString().substr(11,2),n=new Date(e||0).toISOString().substr(14,2),r=new Date(e||0).toISOString().substr(17,2),o=[];return parseInt(t)>0&&o.push(t+" hours, "),(parseInt(n)>0||parseInt(t)>0)&&o.push(n+" minutes, "),o.push(r+" seconds"),o.join("")};function HC(e){const t=new UC.WebVTTSerializer;let n=0;const r=[...e];for(let o of e)o={...o},o.startTime=o.startTime/1e3,o.endTime=o.endTime/1e3,o={id:o.id?o.id:void 0,idInternal:o.idInternal,text:o.text,startTime:o.startTime,endTime:o.endTime,tree:o.tree,alignment:"center",direction:"horizontal",lineAlign:"start",linePosition:"auto",positionAlign:"auto",size:100,textPosition:"auto"},r[n]=o,n++;return t.serialize(r)}function RF(e){if(e==="")throw new Error("File is empty");const n=new UC.WebVTTParser().parse(e,"metadata");if(n.errors.length!==0){const o=[];for(const i of n.errors)o.push("On line: "+i.line+" col: "+i.col+" error occured: "+i.message);throw new Error(o.join(` -`))}let r=0;for(const o of n.cues)o.id||(o.idInternal=ll(),n.cues[r]=o),o.startTime=o.startTime*1e3,o.endTime=o.endTime*1e3,n.cues[r]=o,r++;return n.cues}function hQ(e){if(!e)return;const t=window.navigator.language,n=new Intl.DisplayNames(t,{type:"language"});try{return n.of(e.trim())}catch{return}}function mQ(e,t){const n=A.useRef(null);A.useEffect(()=>{n.current=e}),A.useEffect(()=>{function r(){n.current!==null&&n.current()}if(t!==null){const o=setInterval(r,t);return()=>{clearInterval(o)}}},[e,t])}const D0=mX.withTypes(),gQ={isPlaying:!1,isPlayPreview:!0,isMuted:!1,volume:1,currentlyAt:0,segments:[{id:ll(),start:0,end:1,deleted:!1}],tracks:[],subtitlesFromOpencast:[],activeSegmentIndex:0,selectedWorkflowId:"",previewTriggered:!1,clickTriggered:!1,jumpTriggered:!1,aspectRatios:[],hasChanges:!1,timelineZoom:1,waveformImages:[],originalThumbnails:[],videoURLs:[],videoCount:0,duration:0,title:"",presenters:[],workflows:[],lockingActive:!1,lockRefresh:null,lockState:!1,lock:{uuid:"",user:""},status:"idle",error:void 0,errorReason:"unknown"},ev=D0("video/fetchVideoInformation",async()=>{if(!ft.id)throw new Error("Missing media package identifier");const e=await qi.get(`${ft.opencast.url}/editor/${ft.id}/edit.json`);return JSON.parse(e)}),ug=(e,t)=>{e.currentlyAt=ul(t,0),e.currentlyAt<0&&(e.currentlyAt=0),e.duration!==0&&e.duration{for(const n of e.tracks)n.id===t.payload.id&&(n.audio_stream.enabled=t.payload.enabled,n.video_stream.enabled=t.payload.enabled);e.hasChanges=!0},setIsPlaying:(e,t)=>{e.isPlaying=t.payload},setIsPlayPreview:(e,t)=>{e.isPlayPreview=t.payload},setIsMuted:(e,t)=>{e.isMuted=t.payload},setVolume:(e,t)=>{e.volume=t.payload},setPreviewTriggered:(e,t)=>{e.previewTriggered=t.payload},setClickTriggered:(e,t)=>{e.clickTriggered=t.payload},setJumpTriggered:(e,t)=>{e.jumpTriggered=t.payload},setCurrentlyAt:(e,t)=>{ug(e,t.payload)},setCurrentlyAtInSeconds:(e,t)=>{ug(e,ul(t.payload*1e3,0))},jumpToPreviousSegment:e=>{let t=e.activeSegmentIndex-1;const n=Math.max(Math.min(e.duration/100,3e3),500);e.currentlyAt>=e.segments[e.activeSegmentIndex].start+n&&(t=e.activeSegmentIndex),e.activeSegmentIndex==0&&(t=0),ug(e,e.segments[t].start),e.jumpTriggered=!0},jumpToNextSegment:e=>{const t=e.activeSegmentIndex+1;let n=0;e.activeSegmentIndex+1>=e.segments.length?n=e.segments[e.activeSegmentIndex].end:n=e.segments[t].start,ug(e,n),e.jumpTriggered=!0},addSegment:(e,t)=>{e.segments.push(t.payload)},setAspectRatio:(e,t)=>{e.aspectRatios[t.payload.dataKey]={width:t.payload.width,height:t.payload.height}},setHasChanges:(e,t)=>{e.hasChanges=t.payload},setTimelineZoom:(e,t)=>{e.timelineZoom=au.clamp(t.payload,1,cg(e))},setWaveformImages:(e,t)=>{e.waveformImages=t.payload},setThumbnail:(e,t)=>{eI(e,t.payload.id,t.payload.uri)},setThumbnails:(e,t)=>{for(const n of t.payload)eI(e,n.id,n.uri)},removeThumbnail:(e,t)=>{const n=e.tracks.findIndex(r=>r.id===t.payload);e.tracks[n].thumbnailUri=void 0},setLock:(e,t)=>{e.lockState=t.payload},cut:e=>{if(e.segments[e.activeSegmentIndex].start===e.currentlyAt||e.segments[e.activeSegmentIndex].end===e.currentlyAt)return;const t={id:ll(),start:e.segments[e.activeSegmentIndex].start,end:e.currentlyAt,deleted:e.segments[e.activeSegmentIndex].deleted},n={id:ll(),start:e.currentlyAt,end:e.segments[e.activeSegmentIndex].end,deleted:e.segments[e.activeSegmentIndex].deleted};e.segments.splice(e.activeSegmentIndex,1,t,n),e.hasChanges=!0},moveCut:(e,t)=>{const n=t.payload.leftSegmentIndex,r=t.payload.leftSegmentIndex+1,o=ul(t.payload.time,0);if(!(n<0||r>=e.segments.length)){if(o<=e.segments[n].start){oc(e,r,n),e.hasChanges=!0;return}if(o>=e.segments[r].end){oc(e,n,r),e.hasChanges=!0;return}e.segments[n].end=o,e.segments[r].start=o,e.hasChanges=!0}},markAsDeletedOrAlive:e=>{e.segments[e.activeSegmentIndex].deleted=!e.segments[e.activeSegmentIndex].deleted,e.hasChanges=!0},setSelectedWorkflowIndex:(e,t)=>{e.selectedWorkflowId=t.payload},mergeLeft:e=>{oc(e,e.activeSegmentIndex,e.activeSegmentIndex-1),e.hasChanges=!0},mergeRight:e=>{oc(e,e.activeSegmentIndex,e.activeSegmentIndex+1),e.hasChanges=!0},mergeAll:e=>{oc(e,e.activeSegmentIndex,0),oc(e,e.activeSegmentIndex,e.segments.length-1),e.hasChanges=!0},timelineZoomIn:e=>{e.timelineZoom=au.clamp(e.timelineZoom+1,1,cg(e))},timelineZoomOut:e=>{e.timelineZoom=au.clamp(e.timelineZoom-1,1,cg(e))}},extraReducers:e=>{e.addCase(ev.pending,(t,n)=>{t.status="loading"}),e.addCase(ev.fulfilled,(t,n)=>{t.status="success",n.payload.workflow_active&&(t.status="failed",t.errorReason="workflowActive",t.error="This event is being processed. Please wait until the process is finished."),t.tracks=n.payload.tracks.sort((o,i)=>o.thumbnailPriority-i.thumbnailPriority).map(o=>(n.payload.local&&ft.opencast.local&&(console.debug("Replacing track URL"),o.uri=o.uri.replace(/https?:\/\/[^/]*/g,window.location.origin)),o));const r=t.tracks.filter(o=>o.video_stream.available===!0);t.videoURLs=r.reduce((o,i)=>(o.push(i.uri),o),[]),t.videoCount=t.videoURLs.length,t.subtitlesFromOpencast=n.payload.subtitles?t.subtitlesFromOpencast=n.payload.subtitles:[],t.duration=n.payload.duration,t.title=n.payload.title,t.segments=vQ(n.payload.segments,n.payload.duration),t.workflows=n.payload.workflows,t.waveformImages=n.payload.waveformURIs?n.payload.waveformURIs:t.waveformImages,t.originalThumbnails=t.tracks.map(o=>({id:o.id,uri:o.thumbnailUri})),t.aspectRatios=new Array(t.videoCount),t.lockingActive=n.payload.locking_active,t.lockRefresh=n.payload.lock_refresh,t.lock.uuid=n.payload.lock_uuid,t.lock.user=n.payload.lock_user}),e.addCase(ev.rejected,(t,n)=>{t.status="failed",t.error=n.error.message})},selectors:{selectIsPlaying:e=>e.isPlaying,selectIsPlayPreview:e=>e.isPlayPreview,selectIsMuted:e=>e.isMuted,selectVolume:e=>e.volume,selectPreviewTriggered:e=>e.previewTriggered,selectClickTriggered:e=>e.clickTriggered,selectJumpTriggered:e=>e.jumpTriggered,selectCurrentlyAt:e=>e.currentlyAt,selectCurrentlyAtInSeconds:e=>e.currentlyAt/1e3,selectSegments:e=>e.segments,selectActiveSegmentIndex:e=>e.activeSegmentIndex,selectIsCurrentSegmentAlive:e=>!e.segments[e.activeSegmentIndex].deleted,selectSelectedWorkflowId:e=>e.selectedWorkflowId,selectHasChanges:e=>e.hasChanges,selectTimelineZoom:e=>e.timelineZoom,selectTimelineZoomMax:cg,selectWaveformImages:e=>e.waveformImages,selectOriginalThumbnails:e=>e.originalThumbnails,selectVideoURL:e=>e.videoURLs,selectVideoCount:e=>e.videoCount,selectDuration:e=>e.duration,selectDurationInSeconds:e=>e.duration/1e3,selectTitle:e=>e.title,selectTracks:e=>e.tracks,selectWorkflows:e=>e.workflows,selectAspectRatio:e=>bQ(e.aspectRatios),selectSubtitlesFromOpencast:e=>e.subtitlesFromOpencast,selectSubtitlesFromOpencastById:(e,t)=>{for(const n of e.subtitlesFromOpencast)if(n.id===t)return n}}}),KC=e=>{e.activeSegmentIndex=e.segments.findLastIndex(t=>t.start<=e.currentlyAt&&t.end>=e.currentlyAt),e.activeSegmentIndex<0&&(e.activeSegmentIndex=0)},vQ=(e,t)=>{const n=[];return e.length===0&&n.push({id:ll(),start:0,end:t,deleted:!1}),e.forEach(r=>{n.push({id:ll(),start:r.start,end:r.end,deleted:r.deleted})}),n},oc=(e,t,n)=>{n<0||n>e.segments.length-1||(e.segments[t].start=Math.min(e.segments[t].start,e.segments[n].start),e.segments[t].end=Math.max(e.segments[t].end,e.segments[n].end),e.segments.splice(t{if(e.isPlaying&&e.segments[e.activeSegmentIndex].deleted&&e.isPlayPreview){let t=e.segments[e.activeSegmentIndex].end;for(let n=e.activeSegmentIndex;n{let t=Math.min(...e.map(r=>r.height)),n=Math.min(...e.map(r=>r.width));return(!t||!n)&&(t=720,n=1280),n*=e.length,Math.min(t/n*100,9/32*100)},eI=(e,t,n)=>{const r=e.tracks.findIndex(o=>o.id===t);r>=0&&(e.tracks[r].thumbnailUri=n)},wQ=20*1e3;function cg(e){const t=e.duration/wQ;return Math.max(2,Math.ceil(t))}const{setTrackEnabled:SQ,setIsPlaying:gf,setIsPlayPreview:IF,setIsMuted:GC,setVolume:YC,setCurrentlyAt:ZC,setCurrentlyAtInSeconds:Ske,addSegment:xke,setAspectRatio:xQ,setHasChanges:iy,setWaveformImages:_Q,setThumbnails:OQ,setThumbnail:j1,removeThumbnail:_ke,setLock:U1,cut:tv,moveCut:CQ,markAsDeletedOrAlive:nv,setSelectedWorkflowIndex:tI,mergeLeft:rv,mergeRight:ov,mergeAll:PQ,setPreviewTriggered:EQ,setClickTriggered:XC,setTimelineZoom:kQ,timelineZoomIn:nI,timelineZoomOut:rI,setJumpTriggered:QC,jumpToPreviousSegment:MF,jumpToNextSegment:LF}=qC.actions,$0=yF([e=>e.videoState.tracks],e=>e.filter(t=>t.video_stream.available===!0)),{selectIsPlaying:nh,selectIsPlayPreview:AF,selectIsMuted:rh,selectVolume:oh,selectPreviewTriggered:TQ,selectClickTriggered:RQ,selectJumpTriggered:NF,selectCurrentlyAt:ay,selectCurrentlyAtInSeconds:IQ,selectSegments:F0,selectActiveSegmentIndex:DF,selectIsCurrentSegmentAlive:$F,selectSelectedWorkflowId:Oke,selectHasChanges:FF,selectTimelineZoom:WF,selectTimelineZoomMax:MQ,selectWaveformImages:LQ,selectOriginalThumbnails:AQ,selectVideoURL:NQ,selectVideoCount:DQ,selectDuration:bl,selectDurationInSeconds:$Q,selectTitle:FQ,selectTracks:JC,selectWorkflows:WQ,selectAspectRatio:VQ,selectSubtitlesFromOpencast:zQ,selectSubtitlesFromOpencastById:BQ}=qC.selectors,jQ=qC.reducer,UQ={status:"idle",error:void 0,errorReason:"unknown"},iv=D0("video/postVideoInformation",async e=>{if(!ft.id)throw new Error("Missing media package id");return await qi.post(`${ft.opencast.url}/editor/${ft.id}/edit.json`,{segments:HQ(e.segments),tracks:e.tracks,subtitles:e.subtitles,workflows:e.workflow,metadataJSON:JSON.stringify(e.metadata)})}),eP=yl({name:"workflowPostState",initialState:UQ,reducers:{resetPostRequestState:e=>{e.status="idle"}},extraReducers:e=>{e.addCase(iv.pending,(t,n)=>{t.status="loading"}),e.addCase(iv.fulfilled,(t,n)=>{t.status="success"}),e.addCase(iv.rejected,(t,n)=>{t.status="failed",t.error=n.error.message})},selectors:{selectStatus:e=>e.status,selectError:e=>e.error}}),HQ=e=>{const t=[];return e.forEach(n=>{t.push({start:n.start,end:n.end,deleted:n.deleted,selected:!1})}),t},{resetPostRequestState:qQ}=eP.actions,{selectStatus:W0,selectError:tP}=eP.selectors,KQ=eP.reducer,GQ={end:!1,value:"success"},nP=yl({name:"endState",initialState:GQ,reducers:{setEnd:(e,t)=>{e.end=t.payload.hasEnded,e.value=t.payload.value}},selectors:{selectIsEnd:e=>e.end,selectEndState:e=>e.value}}),{setEnd:VF}=nP.actions,{selectIsEnd:rP,selectEndState:YQ}=nP.selectors,ZQ=nP.reducer,XQ={catalogs:[],hasChanges:!1,status:"idle",error:void 0,errorReason:"unknown"},av=D0("metadata/fetchMetadata",async()=>{if(!ft.id)throw new Error("Missing media package identifier");const e=await qi.get(`${ft.opencast.url}/editor/${ft.id}/metadata.json`);return JSON.parse(e)}),oP=yl({name:"metadataState",initialState:XQ,reducers:{setFieldValue:(e,t)=>{e.catalogs[t.payload.catalogIndex].fields[t.payload.fieldIndex].value=t.payload.value,e.hasChanges=!0},setFieldReadonly:(e,t)=>{e.catalogs[t.payload.catalogIndex].fields[t.payload.fieldIndex].readOnly=t.payload.value},setHasChanges:(e,t)=>{e.hasChanges=t.payload}},extraReducers:e=>{e.addCase(av.pending,(t,n)=>{t.status="loading"}),e.addCase(av.fulfilled,(t,n)=>{t.catalogs=n.payload,t.status="success"}),e.addCase(av.rejected,(t,n)=>{t.status="failed",t.error=n.error.message})},selectors:{selectCatalogs:e=>e.catalogs,selectHasChanges:e=>e.hasChanges,selectGetStatus:e=>e.status,selectGetError:e=>e.error,selectTitleFromEpisodeDc:e=>{for(const t of e.catalogs)if(t.flavor==="dublincore/episode"){for(const n of t.fields)if(n.id==="title")return n.value}}}}),{setFieldValue:oI,setHasChanges:QQ,setFieldReadonly:JQ}=oP.actions,{selectCatalogs:zF,selectHasChanges:BF,selectGetStatus:eJ,selectGetError:tJ,selectTitleFromEpisodeDc:nJ}=oP.selectors,rJ=oP.reducer,oJ={isDisplayEditView:!1,isPlaying:!1,isPlayPreview:!0,previewTriggered:!1,currentlyAt:0,clickTriggered:!1,subtitles:{},selectedSubtitleId:"",focusSegmentTriggered:!1,focusSegmentId:"",focusSegmentTriggered2:!1,aspectRatios:[],hasChanges:!1},iI=(e,t)=>{e.currentlyAt=ul(t,0),e.currentlyAt<0&&(e.currentlyAt=0)},iP=yl({name:"subtitleState",initialState:oJ,reducers:{setIsDisplayEditView:(e,t)=>{e.isDisplayEditView=t.payload},setIsPlaying:(e,t)=>{e.isPlaying=t.payload},setIsPlayPreview:(e,t)=>{e.isPlayPreview=t.payload},setPreviewTriggered:(e,t)=>{e.previewTriggered=t.payload},setCurrentlyAt:(e,t)=>{iI(e,t.payload)},setCurrentlyAtInSeconds:(e,t)=>{iI(e,ul(t.payload*1e3,0))},setClickTriggered:(e,t)=>{e.clickTriggered=t.payload},setSubtitle:(e,t)=>{e.subtitles[t.payload.identifier]=t.payload.subtitles},removeSubtitle:(e,t)=>{e.subtitles[t.payload.identifier].deleted=!0,e.hasChanges=!0},setCueAtIndex:(e,t)=>{if(t.payload.cueIndex<0||t.payload.cueIndex>=e.subtitles[t.payload.identifier].cues.length){console.warn("Tried to set segment for subtitle "+t.payload.identifier+" but was out of range");return}const n=e.subtitles[t.payload.identifier].cues[t.payload.cueIndex];n.id=t.payload.newCue.id,n.idInternal=t.payload.newCue.idInternal,n.text=t.payload.newCue.text,n.startTime=Math.round(t.payload.newCue.startTime),n.endTime=Math.round(t.payload.newCue.endTime),n.tree.children.length<=0&&(n.tree.children[0]={type:"text",value:t.payload.newCue.text}),n.tree.children[0].value=t.payload.newCue.text,e.subtitles[t.payload.identifier].cues[t.payload.cueIndex]=n,H1(e,t.payload.identifier),e.hasChanges=!0},addCueAtIndex:(e,t)=>{const n=t.payload.startTime>=0?t.payload.startTime:0,r={id:void 0,idInternal:ll(),text:t.payload.text,startTime:Math.round(n),endTime:Math.round(t.payload.endTime),tree:{children:[{type:"text",value:t.payload.text}]}};e.focusSegmentTriggered=!0,e.focusSegmentTriggered2=!0,e.focusSegmentId=r.idInternal,t.payload.cueIndex<0&&e.subtitles[t.payload.identifier].cues.splice(0,0,r),(t.payload.cueIndex>=0||t.payload.cueIndex=e.subtitles[t.payload.identifier].cues.length&&e.subtitles[t.payload.identifier].cues.push(r),H1(e,t.payload.identifier),e.hasChanges=!0},removeCue:(e,t)=>{const n=e.subtitles[t.payload.identifier].cues.findIndex(r=>r.idInternal===t.payload.cue.idInternal);n>-1&&e.subtitles[t.payload.identifier].cues.splice(n,1),H1(e,t.payload.identifier),e.hasChanges=!0},setSelectedSubtitleId:(e,t)=>{e.selectedSubtitleId=t.payload},setFocusSegmentTriggered:(e,t)=>{e.focusSegmentTriggered=t.payload,e.focusSegmentTriggered2=t.payload},setFocusSegmentId:(e,t)=>{e.focusSegmentId=t.payload},setFocusSegmentTriggered2:(e,t)=>{e.focusSegmentTriggered2=t.payload},setFocusToSegmentAboveId:(e,t)=>{let n=e.subtitles[t.payload.identifier].cues.findIndex(r=>r.idInternal===t.payload.segmentId);n=n-1,n<0&&(n=0),e.focusSegmentId=e.subtitles[t.payload.identifier].cues[n].idInternal},setFocusToSegmentBelowId:(e,t)=>{let n=e.subtitles[t.payload.identifier].cues.findIndex(r=>r.idInternal===t.payload.segmentId);n=n+1,n>=e.subtitles[t.payload.identifier].cues.length&&(n=e.subtitles[t.payload.identifier].cues.length-1),e.focusSegmentId=e.subtitles[t.payload.identifier].cues[n].idInternal},setAspectRatio:(e,t)=>{e.aspectRatios[t.payload.dataKey]={width:t.payload.width,height:t.payload.height}},setHasChanges:(e,t)=>{e.hasChanges=t.payload}},selectors:{selectIsDisplayEditView:e=>e.isDisplayEditView,selectIsPlaying:e=>e.isPlaying,selectIsPlayPreview:e=>e.isPlayPreview,selectPreviewTriggered:e=>e.previewTriggered,selectCurrentlyAt:e=>e.currentlyAt,selectCurrentlyAtInSeconds:e=>e.currentlyAt/1e3,selectClickTriggered:e=>e.clickTriggered,selectFocusSegmentTriggered:e=>e.focusSegmentTriggered,selectFocusSegmentId:e=>e.focusSegmentId,selectFocusSegmentTriggered2:e=>e.focusSegmentTriggered2,selectAspectRatio:()=>50,selectSubtitles:e=>e.subtitles,selectSelectedSubtitleId:e=>e.selectedSubtitleId,selectSelectedSubtitleById:e=>e.subtitles[e.selectedSubtitleId],selectHasChanges:e=>e.hasChanges}}),H1=(e,t)=>{e.subtitles[t].cues.sort((n,r)=>n.startTime-r.startTime)},{setIsDisplayEditView:xh,setIsPlaying:aI,setIsPlayPreview:iJ,setPreviewTriggered:jF,setCurrentlyAt:eu,setCurrentlyAtInSeconds:Cke,setClickTriggered:UF,setSubtitle:sy,removeSubtitle:aJ,setCueAtIndex:sv,addCueAtIndex:h_,removeCue:sJ,setSelectedSubtitleId:HF,setFocusSegmentTriggered:gp,setFocusSegmentId:lJ,setFocusSegmentTriggered2:qF,setFocusToSegmentAboveId:sI,setFocusToSegmentBelowId:uJ,setAspectRatio:cJ,setHasChanges:fJ}=iP.actions,{selectIsDisplayEditView:dJ,selectIsPlaying:lI,selectIsPlayPreview:pJ,selectPreviewTriggered:hJ,selectCurrentlyAt:KF,selectCurrentlyAtInSeconds:mJ,selectClickTriggered:gJ,selectFocusSegmentTriggered:vJ,selectFocusSegmentId:GF,selectFocusSegmentTriggered2:yJ,selectAspectRatio:bJ,selectSubtitles:YF,selectSelectedSubtitleId:_h,selectSelectedSubtitleById:$f,selectHasChanges:ZF}=iP.selectors,wJ=D0("subtitleState/setCurrentlyAtAndTriggerPreview",async(e,{getState:t,dispatch:n})=>{e=ul(e,0),e<0&&(e=0);const r=t(),o=r.videoState.segments;let i=!1;if(r.subtitleState.isPlayPreview){for(let a=0;ae){if(o[a].deleted){e=o[a].end+1;for(let s=a;s{e.error=t.payload.error,e.errorTitle=t.payload.errorTitle,e.errorMessage=t.payload.errorMessage,e.errorDetails=t.payload.errorDetails,e.errorIcon=t.payload.errorIcon}},selectors:{selectIsError:e=>e.error,selectErrorTitle:e=>e.errorTitle,selectErrorMessage:e=>e.errorMessage,selectErrorDetails:e=>e.errorDetails,selectErrorIcon:e=>e.errorIcon}}),{setError:lv}=aP.actions,{selectIsError:_J,selectErrorTitle:OJ,selectErrorMessage:CJ,selectErrorDetails:PJ,selectErrorIcon:EJ}=aP.selectors,kJ=aP.reducer;var XF={exports:{}},QF={};/** +`;if(m)for(var y=0;y{const n=Math.pow(10,t);return Math.round((e+Number.EPSILON)*n)/n},kF=e=>new Promise((t,n)=>setTimeout(t,e)),cl=e=>{const t=new Date(e||0).toISOString().substr(11,2),n=new Date(e||0).toISOString().substr(14,2),r=new Date(e||0).toISOString().substr(17,2),o=[];return parseInt(t)>0&&o.push(t+" hours, "),(parseInt(n)>0||parseInt(t)>0)&&o.push(n+" minutes, "),o.push(r+" seconds"),o.join("")};function HC(e){const t=new UC.WebVTTSerializer;let n=0;const r=[...e];for(let o of e)o={...o},o.startTime=o.startTime/1e3,o.endTime=o.endTime/1e3,o={id:o.id?o.id:void 0,idInternal:o.idInternal,text:o.text,startTime:o.startTime,endTime:o.endTime,tree:o.tree,alignment:"center",direction:"horizontal",lineAlign:"start",linePosition:"auto",positionAlign:"auto",size:100,textPosition:"auto"},r[n]=o,n++;return t.serialize(r)}function TF(e){if(e==="")throw new Error("File is empty");const n=new UC.WebVTTParser().parse(e,"metadata");if(n.errors.length!==0){const o=[];for(const i of n.errors)o.push("On line: "+i.line+" col: "+i.col+" error occured: "+i.message);throw new Error(o.join(` +`))}let r=0;for(const o of n.cues)o.id||(o.idInternal=ll(),n.cues[r]=o),o.startTime=o.startTime*1e3,o.endTime=o.endTime*1e3,n.cues[r]=o,r++;return n.cues}function pQ(e){if(!e)return;const t=window.navigator.language,n=new Intl.DisplayNames(t,{type:"language"});try{return n.of(e.trim())}catch{return}}function hQ(e,t){const n=A.useRef(null);A.useEffect(()=>{n.current=e}),A.useEffect(()=>{function r(){n.current!==null&&n.current()}if(t!==null){const o=setInterval(r,t);return()=>{clearInterval(o)}}},[e,t])}const N0=hX.withTypes(),mQ={isPlaying:!1,isPlayPreview:!0,isMuted:!1,volume:1,currentlyAt:0,segments:[{id:ll(),start:0,end:1,deleted:!1}],tracks:[],subtitlesFromOpencast:[],activeSegmentIndex:0,selectedWorkflowId:"",previewTriggered:!1,clickTriggered:!1,jumpTriggered:!1,aspectRatios:[],hasChanges:!1,timelineZoom:1,waveformImages:[],originalThumbnails:[],videoURLs:[],videoCount:0,duration:0,title:"",presenters:[],workflows:[],lockingActive:!1,lockRefresh:null,lockState:!1,lock:{uuid:"",user:""},status:"idle",error:void 0,errorReason:"unknown"},ev=N0("video/fetchVideoInformation",async()=>{if(!ft.id)throw new Error("Missing media package identifier");const e=await qi.get(`${ft.opencast.url}/editor/${ft.id}/edit.json`);return JSON.parse(e)}),ug=(e,t)=>{e.currentlyAt=ul(t,0),e.currentlyAt<0&&(e.currentlyAt=0),e.duration!==0&&e.duration{for(const n of e.tracks)n.id===t.payload.id&&(n.audio_stream.enabled=t.payload.enabled,n.video_stream.enabled=t.payload.enabled);e.hasChanges=!0},setIsPlaying:(e,t)=>{e.isPlaying=t.payload},setIsPlayPreview:(e,t)=>{e.isPlayPreview=t.payload},setIsMuted:(e,t)=>{e.isMuted=t.payload},setVolume:(e,t)=>{e.volume=t.payload},setPreviewTriggered:(e,t)=>{e.previewTriggered=t.payload},setClickTriggered:(e,t)=>{e.clickTriggered=t.payload},setJumpTriggered:(e,t)=>{e.jumpTriggered=t.payload},setCurrentlyAt:(e,t)=>{ug(e,t.payload)},setCurrentlyAtInSeconds:(e,t)=>{ug(e,ul(t.payload*1e3,0))},jumpToPreviousSegment:e=>{let t=e.activeSegmentIndex-1;const n=Math.max(Math.min(e.duration/100,3e3),500);e.currentlyAt>=e.segments[e.activeSegmentIndex].start+n&&(t=e.activeSegmentIndex),e.activeSegmentIndex==0&&(t=0),ug(e,e.segments[t].start),e.jumpTriggered=!0},jumpToNextSegment:e=>{const t=e.activeSegmentIndex+1;let n=0;e.activeSegmentIndex+1>=e.segments.length?n=e.segments[e.activeSegmentIndex].end:n=e.segments[t].start,ug(e,n),e.jumpTriggered=!0},addSegment:(e,t)=>{e.segments.push(t.payload)},setAspectRatio:(e,t)=>{e.aspectRatios[t.payload.dataKey]={width:t.payload.width,height:t.payload.height}},setHasChanges:(e,t)=>{e.hasChanges=t.payload},setTimelineZoom:(e,t)=>{e.timelineZoom=iu.clamp(t.payload,1,cg(e))},setWaveformImages:(e,t)=>{e.waveformImages=t.payload},setThumbnail:(e,t)=>{t2(e,t.payload.id,t.payload.uri)},setThumbnails:(e,t)=>{for(const n of t.payload)t2(e,n.id,n.uri)},removeThumbnail:(e,t)=>{const n=e.tracks.findIndex(r=>r.id===t.payload);e.tracks[n].thumbnailUri=void 0},setLock:(e,t)=>{e.lockState=t.payload},cut:e=>{if(e.segments[e.activeSegmentIndex].start===e.currentlyAt||e.segments[e.activeSegmentIndex].end===e.currentlyAt)return;const t={id:ll(),start:e.segments[e.activeSegmentIndex].start,end:e.currentlyAt,deleted:e.segments[e.activeSegmentIndex].deleted},n={id:ll(),start:e.currentlyAt,end:e.segments[e.activeSegmentIndex].end,deleted:e.segments[e.activeSegmentIndex].deleted};e.segments.splice(e.activeSegmentIndex,1,t,n),e.hasChanges=!0},moveCut:(e,t)=>{const n=t.payload.leftSegmentIndex,r=t.payload.leftSegmentIndex+1,o=ul(t.payload.time,0);if(!(n<0||r>=e.segments.length)){if(o<=e.segments[n].start){oc(e,r,n),e.hasChanges=!0;return}if(o>=e.segments[r].end){oc(e,n,r),e.hasChanges=!0;return}e.segments[n].end=o,e.segments[r].start=o,e.hasChanges=!0}},markAsDeletedOrAlive:e=>{e.segments[e.activeSegmentIndex].deleted=!e.segments[e.activeSegmentIndex].deleted,e.hasChanges=!0},setSelectedWorkflowIndex:(e,t)=>{e.selectedWorkflowId=t.payload},mergeLeft:e=>{oc(e,e.activeSegmentIndex,e.activeSegmentIndex-1),e.hasChanges=!0},mergeRight:e=>{oc(e,e.activeSegmentIndex,e.activeSegmentIndex+1),e.hasChanges=!0},mergeAll:e=>{oc(e,e.activeSegmentIndex,0),oc(e,e.activeSegmentIndex,e.segments.length-1),e.hasChanges=!0},timelineZoomIn:e=>{e.timelineZoom=iu.clamp(e.timelineZoom+1,1,cg(e))},timelineZoomOut:e=>{e.timelineZoom=iu.clamp(e.timelineZoom-1,1,cg(e))}},extraReducers:e=>{e.addCase(ev.pending,(t,n)=>{t.status="loading"}),e.addCase(ev.fulfilled,(t,n)=>{t.status="success",n.payload.workflow_active&&(t.status="failed",t.errorReason="workflowActive",t.error="This event is being processed. Please wait until the process is finished."),t.tracks=n.payload.tracks.sort((o,i)=>o.thumbnailPriority-i.thumbnailPriority).map(o=>(n.payload.local&&ft.opencast.local&&(console.debug("Replacing track URL"),o.uri=o.uri.replace(/https?:\/\/[^/]*/g,window.location.origin)),o));const r=t.tracks.filter(o=>o.video_stream.available===!0);t.videoURLs=r.reduce((o,i)=>(o.push(i.uri),o),[]),t.videoCount=t.videoURLs.length,t.subtitlesFromOpencast=n.payload.subtitles?t.subtitlesFromOpencast=n.payload.subtitles:[],t.duration=n.payload.duration,t.title=n.payload.title,t.segments=gQ(n.payload.segments,n.payload.duration),t.workflows=n.payload.workflows,t.waveformImages=n.payload.waveformURIs?n.payload.waveformURIs:t.waveformImages,t.originalThumbnails=t.tracks.map(o=>({id:o.id,uri:o.thumbnailUri})),t.aspectRatios=new Array(t.videoCount),t.lockingActive=n.payload.locking_active,t.lockRefresh=n.payload.lock_refresh,t.lock.uuid=n.payload.lock_uuid,t.lock.user=n.payload.lock_user}),e.addCase(ev.rejected,(t,n)=>{t.status="failed",t.error=n.error.message})},selectors:{selectIsPlaying:e=>e.isPlaying,selectIsPlayPreview:e=>e.isPlayPreview,selectIsMuted:e=>e.isMuted,selectVolume:e=>e.volume,selectPreviewTriggered:e=>e.previewTriggered,selectClickTriggered:e=>e.clickTriggered,selectJumpTriggered:e=>e.jumpTriggered,selectCurrentlyAt:e=>e.currentlyAt,selectCurrentlyAtInSeconds:e=>e.currentlyAt/1e3,selectSegments:e=>e.segments,selectActiveSegmentIndex:e=>e.activeSegmentIndex,selectIsCurrentSegmentAlive:e=>!e.segments[e.activeSegmentIndex].deleted,selectSelectedWorkflowId:e=>e.selectedWorkflowId,selectHasChanges:e=>e.hasChanges,selectTimelineZoom:e=>e.timelineZoom,selectTimelineZoomMax:cg,selectWaveformImages:e=>e.waveformImages,selectOriginalThumbnails:e=>e.originalThumbnails,selectVideoURL:e=>e.videoURLs,selectVideoCount:e=>e.videoCount,selectDuration:e=>e.duration,selectDurationInSeconds:e=>e.duration/1e3,selectTitle:e=>e.title,selectTracks:e=>e.tracks,selectWorkflows:e=>e.workflows,selectAspectRatio:e=>yQ(e.aspectRatios),selectSubtitlesFromOpencast:e=>e.subtitlesFromOpencast,selectSubtitlesFromOpencastById:(e,t)=>{for(const n of e.subtitlesFromOpencast)if(n.id===t)return n}}}),KC=e=>{e.activeSegmentIndex=e.segments.findLastIndex(t=>t.start<=e.currentlyAt&&t.end>=e.currentlyAt),e.activeSegmentIndex<0&&(e.activeSegmentIndex=0)},gQ=(e,t)=>{const n=[];return e.length===0&&n.push({id:ll(),start:0,end:t,deleted:!1}),e.forEach(r=>{n.push({id:ll(),start:r.start,end:r.end,deleted:r.deleted})}),n},oc=(e,t,n)=>{n<0||n>e.segments.length-1||(e.segments[t].start=Math.min(e.segments[t].start,e.segments[n].start),e.segments[t].end=Math.max(e.segments[t].end,e.segments[n].end),e.segments.splice(t{if(e.isPlaying&&e.segments[e.activeSegmentIndex].deleted&&e.isPlayPreview){let t=e.segments[e.activeSegmentIndex].end;for(let n=e.activeSegmentIndex;n{let t=Math.min(...e.map(r=>r.height)),n=Math.min(...e.map(r=>r.width));return(!t||!n)&&(t=720,n=1280),n*=e.length,Math.min(t/n*100,9/32*100)},t2=(e,t,n)=>{const r=e.tracks.findIndex(o=>o.id===t);r>=0&&(e.tracks[r].thumbnailUri=n)},bQ=20*1e3;function cg(e){const t=e.duration/bQ;return Math.max(2,Math.ceil(t))}const{setTrackEnabled:wQ,setIsPlaying:gf,setIsPlayPreview:RF,setIsMuted:GC,setVolume:YC,setCurrentlyAt:ZC,setCurrentlyAtInSeconds:bke,addSegment:wke,setAspectRatio:SQ,setHasChanges:oy,setWaveformImages:xQ,setThumbnails:_Q,setThumbnail:B1,removeThumbnail:Ske,setLock:j1,cut:tv,moveCut:OQ,markAsDeletedOrAlive:nv,setSelectedWorkflowIndex:n2,mergeLeft:rv,mergeRight:ov,mergeAll:CQ,setPreviewTriggered:PQ,setClickTriggered:XC,setTimelineZoom:EQ,timelineZoomIn:r2,timelineZoomOut:o2,setJumpTriggered:QC,jumpToPreviousSegment:IF,jumpToNextSegment:MF}=qC.actions,D0=vF([e=>e.videoState.tracks],e=>e.filter(t=>t.video_stream.available===!0)),{selectIsPlaying:nh,selectIsPlayPreview:LF,selectIsMuted:rh,selectVolume:oh,selectPreviewTriggered:kQ,selectClickTriggered:TQ,selectJumpTriggered:AF,selectCurrentlyAt:iy,selectCurrentlyAtInSeconds:RQ,selectSegments:$0,selectActiveSegmentIndex:NF,selectIsCurrentSegmentAlive:DF,selectSelectedWorkflowId:xke,selectHasChanges:$F,selectTimelineZoom:FF,selectTimelineZoomMax:IQ,selectWaveformImages:MQ,selectOriginalThumbnails:LQ,selectVideoURL:AQ,selectVideoCount:NQ,selectDuration:yl,selectDurationInSeconds:DQ,selectTitle:$Q,selectTracks:JC,selectWorkflows:FQ,selectAspectRatio:WQ,selectSubtitlesFromOpencast:VQ,selectSubtitlesFromOpencastById:zQ}=qC.selectors,BQ=qC.reducer,jQ={status:"idle",error:void 0,errorReason:"unknown"},iv=N0("video/postVideoInformation",async e=>{if(!ft.id)throw new Error("Missing media package id");return await qi.post(`${ft.opencast.url}/editor/${ft.id}/edit.json`,{segments:UQ(e.segments),tracks:e.tracks,subtitles:e.subtitles,workflows:e.workflow,metadataJSON:JSON.stringify(e.metadata)})}),eP=vl({name:"workflowPostState",initialState:jQ,reducers:{resetPostRequestState:e=>{e.status="idle"}},extraReducers:e=>{e.addCase(iv.pending,(t,n)=>{t.status="loading"}),e.addCase(iv.fulfilled,(t,n)=>{t.status="success"}),e.addCase(iv.rejected,(t,n)=>{t.status="failed",t.error=n.error.message})},selectors:{selectStatus:e=>e.status,selectError:e=>e.error}}),UQ=e=>{const t=[];return e.forEach(n=>{t.push({start:n.start,end:n.end,deleted:n.deleted,selected:!1})}),t},{resetPostRequestState:HQ}=eP.actions,{selectStatus:F0,selectError:tP}=eP.selectors,qQ=eP.reducer,KQ={end:!1,value:"success"},nP=vl({name:"endState",initialState:KQ,reducers:{setEnd:(e,t)=>{e.end=t.payload.hasEnded,e.value=t.payload.value}},selectors:{selectIsEnd:e=>e.end,selectEndState:e=>e.value}}),{setEnd:WF}=nP.actions,{selectIsEnd:rP,selectEndState:GQ}=nP.selectors,YQ=nP.reducer,ZQ={catalogs:[],hasChanges:!1,status:"idle",error:void 0,errorReason:"unknown"},av=N0("metadata/fetchMetadata",async()=>{if(!ft.id)throw new Error("Missing media package identifier");const e=await qi.get(`${ft.opencast.url}/editor/${ft.id}/metadata.json`);return JSON.parse(e)}),oP=vl({name:"metadataState",initialState:ZQ,reducers:{setFieldValue:(e,t)=>{e.catalogs[t.payload.catalogIndex].fields[t.payload.fieldIndex].value=t.payload.value,e.hasChanges=!0},setFieldReadonly:(e,t)=>{e.catalogs[t.payload.catalogIndex].fields[t.payload.fieldIndex].readOnly=t.payload.value},setHasChanges:(e,t)=>{e.hasChanges=t.payload}},extraReducers:e=>{e.addCase(av.pending,(t,n)=>{t.status="loading"}),e.addCase(av.fulfilled,(t,n)=>{t.catalogs=n.payload,t.status="success"}),e.addCase(av.rejected,(t,n)=>{t.status="failed",t.error=n.error.message})},selectors:{selectCatalogs:e=>e.catalogs,selectHasChanges:e=>e.hasChanges,selectGetStatus:e=>e.status,selectGetError:e=>e.error,selectTitleFromEpisodeDc:e=>{for(const t of e.catalogs)if(t.flavor==="dublincore/episode"){for(const n of t.fields)if(n.id==="title")return n.value}}}}),{setFieldValue:i2,setHasChanges:XQ,setFieldReadonly:QQ}=oP.actions,{selectCatalogs:VF,selectHasChanges:zF,selectGetStatus:JQ,selectGetError:eJ,selectTitleFromEpisodeDc:tJ}=oP.selectors,nJ=oP.reducer,rJ={isDisplayEditView:!1,isPlaying:!1,isPlayPreview:!0,previewTriggered:!1,currentlyAt:0,clickTriggered:!1,subtitles:{},selectedSubtitleId:"",focusSegmentTriggered:!1,focusSegmentId:"",focusSegmentTriggered2:!1,aspectRatios:[],hasChanges:!1},a2=(e,t)=>{e.currentlyAt=ul(t,0),e.currentlyAt<0&&(e.currentlyAt=0)},iP=vl({name:"subtitleState",initialState:rJ,reducers:{setIsDisplayEditView:(e,t)=>{e.isDisplayEditView=t.payload},setIsPlaying:(e,t)=>{e.isPlaying=t.payload},setIsPlayPreview:(e,t)=>{e.isPlayPreview=t.payload},setPreviewTriggered:(e,t)=>{e.previewTriggered=t.payload},setCurrentlyAt:(e,t)=>{a2(e,t.payload)},setCurrentlyAtInSeconds:(e,t)=>{a2(e,ul(t.payload*1e3,0))},setClickTriggered:(e,t)=>{e.clickTriggered=t.payload},setSubtitle:(e,t)=>{e.subtitles[t.payload.identifier]=t.payload.subtitles},removeSubtitle:(e,t)=>{e.subtitles[t.payload.identifier].deleted=!0,e.hasChanges=!0},setCueAtIndex:(e,t)=>{if(t.payload.cueIndex<0||t.payload.cueIndex>=e.subtitles[t.payload.identifier].cues.length){console.warn("Tried to set segment for subtitle "+t.payload.identifier+" but was out of range");return}const n=e.subtitles[t.payload.identifier].cues[t.payload.cueIndex];n.id=t.payload.newCue.id,n.idInternal=t.payload.newCue.idInternal,n.text=t.payload.newCue.text,n.startTime=Math.round(t.payload.newCue.startTime),n.endTime=Math.round(t.payload.newCue.endTime),n.tree.children.length<=0&&(n.tree.children[0]={type:"text",value:t.payload.newCue.text}),n.tree.children[0].value=t.payload.newCue.text,e.subtitles[t.payload.identifier].cues[t.payload.cueIndex]=n,U1(e,t.payload.identifier),e.hasChanges=!0},addCueAtIndex:(e,t)=>{const n=t.payload.startTime>=0?t.payload.startTime:0,r={id:void 0,idInternal:ll(),text:t.payload.text,startTime:Math.round(n),endTime:Math.round(t.payload.endTime),tree:{children:[{type:"text",value:t.payload.text}]}};e.focusSegmentTriggered=!0,e.focusSegmentTriggered2=!0,e.focusSegmentId=r.idInternal,t.payload.cueIndex<0&&e.subtitles[t.payload.identifier].cues.splice(0,0,r),(t.payload.cueIndex>=0||t.payload.cueIndex=e.subtitles[t.payload.identifier].cues.length&&e.subtitles[t.payload.identifier].cues.push(r),U1(e,t.payload.identifier),e.hasChanges=!0},removeCue:(e,t)=>{const n=e.subtitles[t.payload.identifier].cues.findIndex(r=>r.idInternal===t.payload.cue.idInternal);n>-1&&e.subtitles[t.payload.identifier].cues.splice(n,1),U1(e,t.payload.identifier),e.hasChanges=!0},setSelectedSubtitleId:(e,t)=>{e.selectedSubtitleId=t.payload},setFocusSegmentTriggered:(e,t)=>{e.focusSegmentTriggered=t.payload,e.focusSegmentTriggered2=t.payload},setFocusSegmentId:(e,t)=>{e.focusSegmentId=t.payload},setFocusSegmentTriggered2:(e,t)=>{e.focusSegmentTriggered2=t.payload},setFocusToSegmentAboveId:(e,t)=>{let n=e.subtitles[t.payload.identifier].cues.findIndex(r=>r.idInternal===t.payload.segmentId);n=n-1,n<0&&(n=0),e.focusSegmentId=e.subtitles[t.payload.identifier].cues[n].idInternal},setFocusToSegmentBelowId:(e,t)=>{let n=e.subtitles[t.payload.identifier].cues.findIndex(r=>r.idInternal===t.payload.segmentId);n=n+1,n>=e.subtitles[t.payload.identifier].cues.length&&(n=e.subtitles[t.payload.identifier].cues.length-1),e.focusSegmentId=e.subtitles[t.payload.identifier].cues[n].idInternal},setAspectRatio:(e,t)=>{e.aspectRatios[t.payload.dataKey]={width:t.payload.width,height:t.payload.height}},setHasChanges:(e,t)=>{e.hasChanges=t.payload}},selectors:{selectIsDisplayEditView:e=>e.isDisplayEditView,selectIsPlaying:e=>e.isPlaying,selectIsPlayPreview:e=>e.isPlayPreview,selectPreviewTriggered:e=>e.previewTriggered,selectCurrentlyAt:e=>e.currentlyAt,selectCurrentlyAtInSeconds:e=>e.currentlyAt/1e3,selectClickTriggered:e=>e.clickTriggered,selectFocusSegmentTriggered:e=>e.focusSegmentTriggered,selectFocusSegmentId:e=>e.focusSegmentId,selectFocusSegmentTriggered2:e=>e.focusSegmentTriggered2,selectAspectRatio:()=>50,selectSubtitles:e=>e.subtitles,selectSelectedSubtitleId:e=>e.selectedSubtitleId,selectSelectedSubtitleById:e=>e.subtitles[e.selectedSubtitleId],selectHasChanges:e=>e.hasChanges}}),U1=(e,t)=>{e.subtitles[t].cues.sort((n,r)=>n.startTime-r.startTime)},{setIsDisplayEditView:xh,setIsPlaying:s2,setIsPlayPreview:oJ,setPreviewTriggered:BF,setCurrentlyAt:Jl,setCurrentlyAtInSeconds:_ke,setClickTriggered:jF,setSubtitle:ay,removeSubtitle:iJ,setCueAtIndex:sv,addCueAtIndex:h_,removeCue:aJ,setSelectedSubtitleId:UF,setFocusSegmentTriggered:gp,setFocusSegmentId:sJ,setFocusSegmentTriggered2:HF,setFocusToSegmentAboveId:l2,setFocusToSegmentBelowId:lJ,setAspectRatio:uJ,setHasChanges:cJ}=iP.actions,{selectIsDisplayEditView:fJ,selectIsPlaying:u2,selectIsPlayPreview:dJ,selectPreviewTriggered:pJ,selectCurrentlyAt:qF,selectCurrentlyAtInSeconds:hJ,selectClickTriggered:mJ,selectFocusSegmentTriggered:gJ,selectFocusSegmentId:KF,selectFocusSegmentTriggered2:vJ,selectAspectRatio:yJ,selectSubtitles:GF,selectSelectedSubtitleId:_h,selectSelectedSubtitleById:$f,selectHasChanges:YF}=iP.selectors,bJ=N0("subtitleState/setCurrentlyAtAndTriggerPreview",async(e,{getState:t,dispatch:n})=>{e=ul(e,0),e<0&&(e=0);const r=t(),o=r.videoState.segments;let i=!1;if(r.subtitleState.isPlayPreview){for(let a=0;ae){if(o[a].deleted){e=o[a].end+1;for(let s=a;s{e.error=t.payload.error,e.errorTitle=t.payload.errorTitle,e.errorMessage=t.payload.errorMessage,e.errorDetails=t.payload.errorDetails,e.errorIcon=t.payload.errorIcon}},selectors:{selectIsError:e=>e.error,selectErrorTitle:e=>e.errorTitle,selectErrorMessage:e=>e.errorMessage,selectErrorDetails:e=>e.errorDetails,selectErrorIcon:e=>e.errorIcon}}),{setError:lv}=aP.actions,{selectIsError:xJ,selectErrorTitle:_J,selectErrorMessage:OJ,selectErrorDetails:CJ,selectErrorIcon:PJ}=aP.selectors,EJ=aP.reducer;var ZF={exports:{}},XF={};/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -297,7 +297,7 @@ ${a}`,r);nc(this,"line");nc(this,"column");nc(this,"codeblock");this.line=o,this * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Oh=A;function TJ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var RJ=typeof Object.is=="function"?Object.is:TJ,IJ=Oh.useSyncExternalStore,MJ=Oh.useRef,LJ=Oh.useEffect,AJ=Oh.useMemo,NJ=Oh.useDebugValue;QF.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=MJ(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=AJ(function(){function l(m){if(!u){if(u=!0,f=m,m=r(m),o!==void 0&&a.hasValue){var g=a.value;if(o(g,m))return h=g}return h=m}if(g=h,RJ(f,m))return g;var y=r(m);return o!==void 0&&o(g,y)?g:(f=m,h=y)}var u=!1,f,h,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,o]);var s=IJ(e,i[0],i[1]);return LJ(function(){a.hasValue=!0,a.value=s},[s]),NJ(s),s};XF.exports=QF;var DJ=XF.exports,Oo="default"in fu?Le:fu,uI=Symbol.for("react-redux-context"),cI=typeof globalThis<"u"?globalThis:{};function $J(){if(!Oo.createContext)return{};const e=cI[uI]??(cI[uI]=new Map);let t=e.get(Oo.createContext);return t||(t=Oo.createContext(null),e.set(Oo.createContext,t)),t}var fl=$J(),FJ=()=>{throw new Error("uSES not initialized!")};function sP(e=fl){return function(){return Oo.useContext(e)}}var JF=sP(),e4=FJ,WJ=e=>{e4=e},VJ=(e,t)=>e===t;function zJ(e=fl){const t=e===fl?JF:sP(e),n=(r,o={})=>{const{equalityFn:i=VJ,devModeChecks:a={}}=typeof o=="function"?{equalityFn:o}:o,{store:s,subscription:l,getServerState:u,stabilityCheck:f,identityFunctionCheck:h}=t();Oo.useRef(!0);const p=Oo.useCallback({[r.name](g){return r(g)}}[r.name],[r,f,a.stabilityCheck]),m=e4(l.addNestedSub,s.getState,u||s.getState,p,i);return Oo.useDebugValue(m),m};return Object.assign(n,{withTypes:()=>n}),n}var BJ=zJ();function jJ(e){e()}function UJ(){let e=null,t=null;return{clear(){e=null,t=null},notify(){jJ(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var fI={notify(){},get:()=>[]};function HJ(e,t){let n,r=fI,o=0,i=!1;function a(y){f();const w=r.subscribe(y);let b=!1;return()=>{b||(b=!0,w(),h())}}function s(){r.notify()}function l(){g.onStateChange&&g.onStateChange()}function u(){return i}function f(){o++,n||(n=e.subscribe(l),r=UJ())}function h(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=fI)}function p(){i||(i=!0,f())}function m(){i&&(i=!1,h())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:m,getListeners:()=>r};return g}var qJ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",KJ=typeof navigator<"u"&&navigator.product==="ReactNative",GJ=qJ||KJ?Oo.useLayoutEffect:Oo.useEffect;function dI(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function vp(e,t){if(dI(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o{const u=HJ(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),s=Oo.useMemo(()=>e.getState(),[e]);GJ(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||fl;return Oo.createElement(l.Provider,{value:a},n)}var ZJ=YJ;function t4(e=fl){const t=e===fl?JF:sP(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var XJ=t4();function QJ(e=fl){const t=e===fl?XJ:t4(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var JJ=QJ();WJ(DJ.useSyncExternalStoreWithSelector);const eee=sX({reducer:{mainMenuState:TX,finishState:AX,videoState:jQ,workflowPostState:KQ,endState:ZQ,metadataState:rJ,subtitleState:SJ,errorState:kJ}}),Tt=JJ,be=BJ;var n4={};const tee=lo(ZY);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=tee;function n(){var a=r([` + */var Oh=A;function kJ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var TJ=typeof Object.is=="function"?Object.is:kJ,RJ=Oh.useSyncExternalStore,IJ=Oh.useRef,MJ=Oh.useEffect,LJ=Oh.useMemo,AJ=Oh.useDebugValue;XF.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=IJ(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=LJ(function(){function l(m){if(!u){if(u=!0,f=m,m=r(m),o!==void 0&&a.hasValue){var g=a.value;if(o(g,m))return h=g}return h=m}if(g=h,TJ(f,m))return g;var y=r(m);return o!==void 0&&o(g,y)?g:(f=m,h=y)}var u=!1,f,h,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,o]);var s=RJ(e,i[0],i[1]);return MJ(function(){a.hasValue=!0,a.value=s},[s]),AJ(s),s};ZF.exports=XF;var NJ=ZF.exports,Oo="default"in cu?Le:cu,c2=Symbol.for("react-redux-context"),f2=typeof globalThis<"u"?globalThis:{};function DJ(){if(!Oo.createContext)return{};const e=f2[c2]??(f2[c2]=new Map);let t=e.get(Oo.createContext);return t||(t=Oo.createContext(null),e.set(Oo.createContext,t)),t}var fl=DJ(),$J=()=>{throw new Error("uSES not initialized!")};function sP(e=fl){return function(){return Oo.useContext(e)}}var QF=sP(),JF=$J,FJ=e=>{JF=e},WJ=(e,t)=>e===t;function VJ(e=fl){const t=e===fl?QF:sP(e),n=(r,o={})=>{const{equalityFn:i=WJ,devModeChecks:a={}}=typeof o=="function"?{equalityFn:o}:o,{store:s,subscription:l,getServerState:u,stabilityCheck:f,identityFunctionCheck:h}=t();Oo.useRef(!0);const p=Oo.useCallback({[r.name](g){return r(g)}}[r.name],[r,f,a.stabilityCheck]),m=JF(l.addNestedSub,s.getState,u||s.getState,p,i);return Oo.useDebugValue(m),m};return Object.assign(n,{withTypes:()=>n}),n}var zJ=VJ();function BJ(e){e()}function jJ(){let e=null,t=null;return{clear(){e=null,t=null},notify(){BJ(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var d2={notify(){},get:()=>[]};function UJ(e,t){let n,r=d2,o=0,i=!1;function a(y){f();const w=r.subscribe(y);let b=!1;return()=>{b||(b=!0,w(),h())}}function s(){r.notify()}function l(){g.onStateChange&&g.onStateChange()}function u(){return i}function f(){o++,n||(n=e.subscribe(l),r=jJ())}function h(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=d2)}function p(){i||(i=!0,f())}function m(){i&&(i=!1,h())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:m,getListeners:()=>r};return g}var HJ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qJ=typeof navigator<"u"&&navigator.product==="ReactNative",KJ=HJ||qJ?Oo.useLayoutEffect:Oo.useEffect;function p2(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function vp(e,t){if(p2(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o{const u=UJ(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),s=Oo.useMemo(()=>e.getState(),[e]);KJ(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||fl;return Oo.createElement(l.Provider,{value:a},n)}var YJ=GJ;function e4(e=fl){const t=e===fl?QF:sP(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var ZJ=e4();function XJ(e=fl){const t=e===fl?ZJ:e4(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var QJ=XJ();FJ(NJ.useSyncExternalStoreWithSelector);const JJ=aX({reducer:{mainMenuState:kX,finishState:LX,videoState:BQ,workflowPostState:qQ,endState:YQ,metadataState:nJ,subtitleState:wJ,errorState:EJ}}),Tt=QJ,be=zJ;var t4={};const eee=lo(GY);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=eee;function n(){var a=r([` html { line-height: 1.15; -webkit-text-size-adjust: 100%; @@ -444,7 +444,7 @@ template { [hidden] { display: none; } -`]);return n=function(){return a},a}function r(a,s){return s||(s=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(s)}}))}var o=(0,t.css)(n()),i=o;e.default=i})(n4);const nee=os(n4);function bu(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n96?aee:see},hI=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},lee=!1,uee=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return m0(n,r,o),$O(function(){return g0(n,r,o)}),null},cee=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=hI(t,n,r),l=s||pI(o),u=!l("as");return function(){var f=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var p=f.length,m=1;mt(vee(o)?n:o):t;return ue.jsx(IC,{styles:r})}function s4(e,t){return m_(e,t)}const l4=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},yee=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:a4,StyledEngineProvider:gee,ThemeContext:ci,css:Pe,default:s4,internal_processStyles:l4,keyframes:vl},Symbol.toStringTag,{value:"Module"}));function za(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function u4(e){if(!za(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=u4(e[n])}),t}function zr(e,t,n={clone:!0}){const r=n.clone?q({},e):e;return za(e)&&za(t)&&Object.keys(t).forEach(o=>{za(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&za(e[o])?r[o]=zr(e[o],t[o],n):n.clone?r[o]=za(t[o])?u4(t[o]):t[o]:r[o]=t[o]}),r}const bee=Object.freeze(Object.defineProperty({__proto__:null,default:zr,isPlainObject:za},Symbol.toStringTag,{value:"Module"})),wee=["values","unit","step"],See=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>q({},n,{[r.key]:r.val}),{})};function c4(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Be(e,wee),i=See(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,m){const g=a.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:m)-r/100}${n})`}function f(p){return a.indexOf(p)+1`@media (min-width:${lP[e]}px)`};function Ki(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||mI;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||mI;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||lP).indexOf(s)!==-1){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function f4(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function d4(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function _ee(e,...t){const n=f4(e),r=[n,...t].reduce((o,i)=>zr(o,i),{});return d4(Object.keys(n),r)}function Oee(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function q1({values:e,breakpoints:t,base:n}){const r=n||Oee(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function wt(e){if(typeof e!="string")throw new Error(bu(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Cee=Object.freeze(Object.defineProperty({__proto__:null,default:wt},Symbol.toStringTag,{value:"Module"}));function V0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ly(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=V0(e,n)||r,t&&(o=t(o,r,e)),o}function $n(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=V0(l,r)||{};return Ki(a,s,h=>{let p=ly(u,o,h);return h===p&&typeof h=="string"&&(p=ly(u,o,`${t}${h==="default"?"":wt(h)}`,h)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function Pee(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Eee={m:"margin",p:"padding"},kee={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Tee=Pee(e=>{if(e.length>2)if(gI[e])e=gI[e];else return[e];const[t,n]=e.split(""),r=Eee[t],o=kee[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),uP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],cP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...uP,...cP];function Ch(e,t,n,r){var o;const i=(o=V0(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function fP(e){return Ch(e,"spacing",8)}function wu(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Ree(e,t){return n=>e.reduce((r,o)=>(r[o]=wu(t,n),r),{})}function Iee(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Tee(n),i=Ree(o,r),a=e[n];return Ki(e,a,i)}function p4(e,t){const n=fP(e.theme);return Object.keys(e).map(r=>Iee(e,t,r,n)).reduce(yp,{})}function Cn(e){return p4(e,uP)}Cn.propTypes={};Cn.filterProps=uP;function Pn(e){return p4(e,cP)}Pn.propTypes={};Pn.filterProps=cP;function Mee(e=8){if(e.mui)return e;const t=fP({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function z0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?yp(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ti(e){return typeof e!="number"?e:`${e}px solid`}function vi(e,t){return $n({prop:e,themeKey:"borders",transform:t})}const Lee=vi("border",ti),Aee=vi("borderTop",ti),Nee=vi("borderRight",ti),Dee=vi("borderBottom",ti),$ee=vi("borderLeft",ti),Fee=vi("borderColor"),Wee=vi("borderTopColor"),Vee=vi("borderRightColor"),zee=vi("borderBottomColor"),Bee=vi("borderLeftColor"),jee=vi("outline",ti),Uee=vi("outlineColor"),B0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ch(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:wu(t,r)});return Ki(e,e.borderRadius,n)}return null};B0.propTypes={};B0.filterProps=["borderRadius"];z0(Lee,Aee,Nee,Dee,$ee,Fee,Wee,Vee,zee,Bee,B0,jee,Uee);const j0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ch(e.theme,"spacing",8),n=r=>({gap:wu(t,r)});return Ki(e,e.gap,n)}return null};j0.propTypes={};j0.filterProps=["gap"];const U0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ch(e.theme,"spacing",8),n=r=>({columnGap:wu(t,r)});return Ki(e,e.columnGap,n)}return null};U0.propTypes={};U0.filterProps=["columnGap"];const H0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ch(e.theme,"spacing",8),n=r=>({rowGap:wu(t,r)});return Ki(e,e.rowGap,n)}return null};H0.propTypes={};H0.filterProps=["rowGap"];const Hee=$n({prop:"gridColumn"}),qee=$n({prop:"gridRow"}),Kee=$n({prop:"gridAutoFlow"}),Gee=$n({prop:"gridAutoColumns"}),Yee=$n({prop:"gridAutoRows"}),Zee=$n({prop:"gridTemplateColumns"}),Xee=$n({prop:"gridTemplateRows"}),Qee=$n({prop:"gridTemplateAreas"}),Jee=$n({prop:"gridArea"});z0(j0,U0,H0,Hee,qee,Kee,Gee,Yee,Zee,Xee,Qee,Jee);function Xc(e,t){return t==="grey"?t:e}const ete=$n({prop:"color",themeKey:"palette",transform:Xc}),tte=$n({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xc}),nte=$n({prop:"backgroundColor",themeKey:"palette",transform:Xc});z0(ete,tte,nte);function xo(e){return e<=1&&e!==0?`${e*100}%`:e}const rte=$n({prop:"width",transform:xo}),dP=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||lP[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:xo(n)}};return Ki(e,e.maxWidth,t)}return null};dP.filterProps=["maxWidth"];const ote=$n({prop:"minWidth",transform:xo}),ite=$n({prop:"height",transform:xo}),ate=$n({prop:"maxHeight",transform:xo}),ste=$n({prop:"minHeight",transform:xo});$n({prop:"size",cssProperty:"width",transform:xo});$n({prop:"size",cssProperty:"height",transform:xo});const lte=$n({prop:"boxSizing"});z0(rte,dP,ote,ite,ate,ste,lte);const Ph={border:{themeKey:"borders",transform:ti},borderTop:{themeKey:"borders",transform:ti},borderRight:{themeKey:"borders",transform:ti},borderBottom:{themeKey:"borders",transform:ti},borderLeft:{themeKey:"borders",transform:ti},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ti},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:B0},color:{themeKey:"palette",transform:Xc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xc},backgroundColor:{themeKey:"palette",transform:Xc},p:{style:Pn},pt:{style:Pn},pr:{style:Pn},pb:{style:Pn},pl:{style:Pn},px:{style:Pn},py:{style:Pn},padding:{style:Pn},paddingTop:{style:Pn},paddingRight:{style:Pn},paddingBottom:{style:Pn},paddingLeft:{style:Pn},paddingX:{style:Pn},paddingY:{style:Pn},paddingInline:{style:Pn},paddingInlineStart:{style:Pn},paddingInlineEnd:{style:Pn},paddingBlock:{style:Pn},paddingBlockStart:{style:Pn},paddingBlockEnd:{style:Pn},m:{style:Cn},mt:{style:Cn},mr:{style:Cn},mb:{style:Cn},ml:{style:Cn},mx:{style:Cn},my:{style:Cn},margin:{style:Cn},marginTop:{style:Cn},marginRight:{style:Cn},marginBottom:{style:Cn},marginLeft:{style:Cn},marginX:{style:Cn},marginY:{style:Cn},marginInline:{style:Cn},marginInlineStart:{style:Cn},marginInlineEnd:{style:Cn},marginBlock:{style:Cn},marginBlockStart:{style:Cn},marginBlockEnd:{style:Cn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:j0},rowGap:{style:H0},columnGap:{style:U0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:xo},maxWidth:{style:dP},minWidth:{transform:xo},height:{transform:xo},maxHeight:{transform:xo},minHeight:{transform:xo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ute(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function cte(e,t){return typeof e=="function"?e(t):e}function h4(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:f,style:h}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=V0(o,u)||{};return h?h(a):Ki(a,r,g=>{let y=ly(p,f,g);return g===y&&typeof g=="string"&&(y=ly(p,f,`${n}${g==="default"?"":wt(g)}`,g)),l===!1?y:{[l]:y}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Ph;function s(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const f=f4(i.breakpoints),h=Object.keys(f);let p=f;return Object.keys(u).forEach(m=>{const g=cte(u[m],i);if(g!=null)if(typeof g=="object")if(a[m])p=yp(p,e(m,g,i,a));else{const y=Ki({theme:i},g,w=>({[m]:w}));ute(y,g)?p[m]=t({sx:g,theme:i}):p=yp(p,y)}else p=yp(p,e(m,g,i,a))}),d4(h,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const Eh=h4();Eh.filterProps=["sx"];function m4(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const fte=["breakpoints","palette","spacing","shape"];function kh(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Be(e,fte),s=c4(n),l=Mee(o);let u=zr({breakpoints:s,direction:"ltr",components:{},palette:q({mode:"light"},r),spacing:l,shape:q({},xee,i)},a);return u.applyStyles=m4,u=t.reduce((f,h)=>zr(f,h),u),u.unstable_sxConfig=q({},Ph,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(h){return Eh({sx:h,theme:this})},u}const dte=Object.freeze(Object.defineProperty({__proto__:null,default:kh,private_createBreakpoints:c4,unstable_applyStyles:m4},Symbol.toStringTag,{value:"Module"}));function pte(e){return Object.keys(e).length===0}function g4(e=null){const t=A.useContext(ci);return!t||pte(t)?e:t}const hte=kh();function pP(e=hte){return g4(e)}function mte({styles:e,themeId:t,defaultTheme:n={}}){const r=pP(n),o=typeof e=="function"?e(t&&r[t]||r):e;return ue.jsx(a4,{styles:o})}const gte=["sx"],vte=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ph;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function hP(e){const{sx:t}=e,n=Be(e,gte),{systemProps:r,otherProps:o}=vte(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return za(s)?q({},r,s):r}:i=q({},r,t),q({},o,{sx:i})}const yte=Object.freeze(Object.defineProperty({__proto__:null,default:Eh,extendSxProp:hP,unstable_createStyleFunctionSx:h4,unstable_defaultSxConfig:Ph},Symbol.toStringTag,{value:"Module"})),vI=e=>e,bte=()=>{let e=vI;return{configure(t){e=t},generate(t){return e(t)},reset(){e=vI}}},wte=bte();function v4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{r[o]=Vt(e,o,n)}),r}var y4={exports:{}},Ut={};/** +`]);return n=function(){return a},a}function r(a,s){return s||(s=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(s)}}))}var o=(0,t.css)(n()),i=o;e.default=i})(t4);const tee=os(t4);function yu(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n96?iee:aee},m2=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},see=!1,lee=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return h0(n,r,o),$O(function(){return m0(n,r,o)}),null},uee=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=m2(t,n,r),l=s||h2(o),u=!l("as");return function(){var f=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var p=f.length,m=1;mt(gee(o)?n:o):t;return ue.jsx(IC,{styles:r})}function a4(e,t){return m_(e,t)}const s4=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},vee=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:i4,StyledEngineProvider:mee,ThemeContext:ci,css:Pe,default:a4,internal_processStyles:s4,keyframes:Iu},Symbol.toStringTag,{value:"Module"}));function za(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function l4(e){if(!za(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=l4(e[n])}),t}function zr(e,t,n={clone:!0}){const r=n.clone?q({},e):e;return za(e)&&za(t)&&Object.keys(t).forEach(o=>{za(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&za(e[o])?r[o]=zr(e[o],t[o],n):n.clone?r[o]=za(t[o])?l4(t[o]):t[o]:r[o]=t[o]}),r}const yee=Object.freeze(Object.defineProperty({__proto__:null,default:zr,isPlainObject:za},Symbol.toStringTag,{value:"Module"})),bee=["values","unit","step"],wee=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>q({},n,{[r.key]:r.val}),{})};function u4(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Be(e,bee),i=wee(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,m){const g=a.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:m)-r/100}${n})`}function f(p){return a.indexOf(p)+1`@media (min-width:${lP[e]}px)`};function Ki(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||g2;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||g2;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||lP).indexOf(s)!==-1){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function c4(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function f4(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function xee(e,...t){const n=c4(e),r=[n,...t].reduce((o,i)=>zr(o,i),{});return f4(Object.keys(n),r)}function _ee(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function H1({values:e,breakpoints:t,base:n}){const r=n||_ee(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function wt(e){if(typeof e!="string")throw new Error(yu(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Oee=Object.freeze(Object.defineProperty({__proto__:null,default:wt},Symbol.toStringTag,{value:"Module"}));function W0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function sy(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=W0(e,n)||r,t&&(o=t(o,r,e)),o}function $n(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=W0(l,r)||{};return Ki(a,s,h=>{let p=sy(u,o,h);return h===p&&typeof h=="string"&&(p=sy(u,o,`${t}${h==="default"?"":wt(h)}`,h)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function Cee(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Pee={m:"margin",p:"padding"},Eee={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},v2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},kee=Cee(e=>{if(e.length>2)if(v2[e])e=v2[e];else return[e];const[t,n]=e.split(""),r=Pee[t],o=Eee[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),uP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],cP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...uP,...cP];function Ch(e,t,n,r){var o;const i=(o=W0(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function fP(e){return Ch(e,"spacing",8)}function bu(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Tee(e,t){return n=>e.reduce((r,o)=>(r[o]=bu(t,n),r),{})}function Ree(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=kee(n),i=Tee(o,r),a=e[n];return Ki(e,a,i)}function d4(e,t){const n=fP(e.theme);return Object.keys(e).map(r=>Ree(e,t,r,n)).reduce(yp,{})}function Cn(e){return d4(e,uP)}Cn.propTypes={};Cn.filterProps=uP;function Pn(e){return d4(e,cP)}Pn.propTypes={};Pn.filterProps=cP;function Iee(e=8){if(e.mui)return e;const t=fP({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function V0(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?yp(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ti(e){return typeof e!="number"?e:`${e}px solid`}function vi(e,t){return $n({prop:e,themeKey:"borders",transform:t})}const Mee=vi("border",ti),Lee=vi("borderTop",ti),Aee=vi("borderRight",ti),Nee=vi("borderBottom",ti),Dee=vi("borderLeft",ti),$ee=vi("borderColor"),Fee=vi("borderTopColor"),Wee=vi("borderRightColor"),Vee=vi("borderBottomColor"),zee=vi("borderLeftColor"),Bee=vi("outline",ti),jee=vi("outlineColor"),z0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ch(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:bu(t,r)});return Ki(e,e.borderRadius,n)}return null};z0.propTypes={};z0.filterProps=["borderRadius"];V0(Mee,Lee,Aee,Nee,Dee,$ee,Fee,Wee,Vee,zee,z0,Bee,jee);const B0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ch(e.theme,"spacing",8),n=r=>({gap:bu(t,r)});return Ki(e,e.gap,n)}return null};B0.propTypes={};B0.filterProps=["gap"];const j0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ch(e.theme,"spacing",8),n=r=>({columnGap:bu(t,r)});return Ki(e,e.columnGap,n)}return null};j0.propTypes={};j0.filterProps=["columnGap"];const U0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ch(e.theme,"spacing",8),n=r=>({rowGap:bu(t,r)});return Ki(e,e.rowGap,n)}return null};U0.propTypes={};U0.filterProps=["rowGap"];const Uee=$n({prop:"gridColumn"}),Hee=$n({prop:"gridRow"}),qee=$n({prop:"gridAutoFlow"}),Kee=$n({prop:"gridAutoColumns"}),Gee=$n({prop:"gridAutoRows"}),Yee=$n({prop:"gridTemplateColumns"}),Zee=$n({prop:"gridTemplateRows"}),Xee=$n({prop:"gridTemplateAreas"}),Qee=$n({prop:"gridArea"});V0(B0,j0,U0,Uee,Hee,qee,Kee,Gee,Yee,Zee,Xee,Qee);function Xc(e,t){return t==="grey"?t:e}const Jee=$n({prop:"color",themeKey:"palette",transform:Xc}),ete=$n({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xc}),tte=$n({prop:"backgroundColor",themeKey:"palette",transform:Xc});V0(Jee,ete,tte);function xo(e){return e<=1&&e!==0?`${e*100}%`:e}const nte=$n({prop:"width",transform:xo}),dP=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||lP[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:xo(n)}};return Ki(e,e.maxWidth,t)}return null};dP.filterProps=["maxWidth"];const rte=$n({prop:"minWidth",transform:xo}),ote=$n({prop:"height",transform:xo}),ite=$n({prop:"maxHeight",transform:xo}),ate=$n({prop:"minHeight",transform:xo});$n({prop:"size",cssProperty:"width",transform:xo});$n({prop:"size",cssProperty:"height",transform:xo});const ste=$n({prop:"boxSizing"});V0(nte,dP,rte,ote,ite,ate,ste);const Ph={border:{themeKey:"borders",transform:ti},borderTop:{themeKey:"borders",transform:ti},borderRight:{themeKey:"borders",transform:ti},borderBottom:{themeKey:"borders",transform:ti},borderLeft:{themeKey:"borders",transform:ti},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ti},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:z0},color:{themeKey:"palette",transform:Xc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xc},backgroundColor:{themeKey:"palette",transform:Xc},p:{style:Pn},pt:{style:Pn},pr:{style:Pn},pb:{style:Pn},pl:{style:Pn},px:{style:Pn},py:{style:Pn},padding:{style:Pn},paddingTop:{style:Pn},paddingRight:{style:Pn},paddingBottom:{style:Pn},paddingLeft:{style:Pn},paddingX:{style:Pn},paddingY:{style:Pn},paddingInline:{style:Pn},paddingInlineStart:{style:Pn},paddingInlineEnd:{style:Pn},paddingBlock:{style:Pn},paddingBlockStart:{style:Pn},paddingBlockEnd:{style:Pn},m:{style:Cn},mt:{style:Cn},mr:{style:Cn},mb:{style:Cn},ml:{style:Cn},mx:{style:Cn},my:{style:Cn},margin:{style:Cn},marginTop:{style:Cn},marginRight:{style:Cn},marginBottom:{style:Cn},marginLeft:{style:Cn},marginX:{style:Cn},marginY:{style:Cn},marginInline:{style:Cn},marginInlineStart:{style:Cn},marginInlineEnd:{style:Cn},marginBlock:{style:Cn},marginBlockStart:{style:Cn},marginBlockEnd:{style:Cn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:B0},rowGap:{style:U0},columnGap:{style:j0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:xo},maxWidth:{style:dP},minWidth:{transform:xo},height:{transform:xo},maxHeight:{transform:xo},minHeight:{transform:xo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function lte(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function ute(e,t){return typeof e=="function"?e(t):e}function p4(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:f,style:h}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=W0(o,u)||{};return h?h(a):Ki(a,r,g=>{let y=sy(p,f,g);return g===y&&typeof g=="string"&&(y=sy(p,f,`${n}${g==="default"?"":wt(g)}`,g)),l===!1?y:{[l]:y}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Ph;function s(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const f=c4(i.breakpoints),h=Object.keys(f);let p=f;return Object.keys(u).forEach(m=>{const g=ute(u[m],i);if(g!=null)if(typeof g=="object")if(a[m])p=yp(p,e(m,g,i,a));else{const y=Ki({theme:i},g,w=>({[m]:w}));lte(y,g)?p[m]=t({sx:g,theme:i}):p=yp(p,y)}else p=yp(p,e(m,g,i,a))}),f4(h,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const Eh=p4();Eh.filterProps=["sx"];function h4(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const cte=["breakpoints","palette","spacing","shape"];function kh(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Be(e,cte),s=u4(n),l=Iee(o);let u=zr({breakpoints:s,direction:"ltr",components:{},palette:q({mode:"light"},r),spacing:l,shape:q({},See,i)},a);return u.applyStyles=h4,u=t.reduce((f,h)=>zr(f,h),u),u.unstable_sxConfig=q({},Ph,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(h){return Eh({sx:h,theme:this})},u}const fte=Object.freeze(Object.defineProperty({__proto__:null,default:kh,private_createBreakpoints:u4,unstable_applyStyles:h4},Symbol.toStringTag,{value:"Module"}));function dte(e){return Object.keys(e).length===0}function m4(e=null){const t=A.useContext(ci);return!t||dte(t)?e:t}const pte=kh();function pP(e=pte){return m4(e)}function hte({styles:e,themeId:t,defaultTheme:n={}}){const r=pP(n),o=typeof e=="function"?e(t&&r[t]||r):e;return ue.jsx(i4,{styles:o})}const mte=["sx"],gte=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ph;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function hP(e){const{sx:t}=e,n=Be(e,mte),{systemProps:r,otherProps:o}=gte(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return za(s)?q({},r,s):r}:i=q({},r,t),q({},o,{sx:i})}const vte=Object.freeze(Object.defineProperty({__proto__:null,default:Eh,extendSxProp:hP,unstable_createStyleFunctionSx:p4,unstable_defaultSxConfig:Ph},Symbol.toStringTag,{value:"Module"})),y2=e=>e,yte=()=>{let e=y2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=y2}}},bte=yte();function g4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{r[o]=Vt(e,o,n)}),r}var v4={exports:{}},Ut={};/** * @license React * react-is.production.min.js * @@ -452,24 +452,24 @@ template { * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var mP=Symbol.for("react.element"),gP=Symbol.for("react.portal"),q0=Symbol.for("react.fragment"),K0=Symbol.for("react.strict_mode"),G0=Symbol.for("react.profiler"),Y0=Symbol.for("react.provider"),Z0=Symbol.for("react.context"),_te=Symbol.for("react.server_context"),X0=Symbol.for("react.forward_ref"),Q0=Symbol.for("react.suspense"),J0=Symbol.for("react.suspense_list"),eb=Symbol.for("react.memo"),tb=Symbol.for("react.lazy"),Ote=Symbol.for("react.offscreen"),b4;b4=Symbol.for("react.module.reference");function yi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case mP:switch(e=e.type,e){case q0:case G0:case K0:case Q0:case J0:return e;default:switch(e=e&&e.$$typeof,e){case _te:case Z0:case X0:case tb:case eb:case Y0:return e;default:return t}}case gP:return t}}}Ut.ContextConsumer=Z0;Ut.ContextProvider=Y0;Ut.Element=mP;Ut.ForwardRef=X0;Ut.Fragment=q0;Ut.Lazy=tb;Ut.Memo=eb;Ut.Portal=gP;Ut.Profiler=G0;Ut.StrictMode=K0;Ut.Suspense=Q0;Ut.SuspenseList=J0;Ut.isAsyncMode=function(){return!1};Ut.isConcurrentMode=function(){return!1};Ut.isContextConsumer=function(e){return yi(e)===Z0};Ut.isContextProvider=function(e){return yi(e)===Y0};Ut.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===mP};Ut.isForwardRef=function(e){return yi(e)===X0};Ut.isFragment=function(e){return yi(e)===q0};Ut.isLazy=function(e){return yi(e)===tb};Ut.isMemo=function(e){return yi(e)===eb};Ut.isPortal=function(e){return yi(e)===gP};Ut.isProfiler=function(e){return yi(e)===G0};Ut.isStrictMode=function(e){return yi(e)===K0};Ut.isSuspense=function(e){return yi(e)===Q0};Ut.isSuspenseList=function(e){return yi(e)===J0};Ut.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===q0||e===G0||e===K0||e===Q0||e===J0||e===Ote||typeof e=="object"&&e!==null&&(e.$$typeof===tb||e.$$typeof===eb||e.$$typeof===Y0||e.$$typeof===Z0||e.$$typeof===X0||e.$$typeof===b4||e.getModuleId!==void 0)};Ut.typeOf=yi;y4.exports=Ut;var yI=y4.exports;const Cte=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function w4(e){const t=`${e}`.match(Cte);return t&&t[1]||""}function S4(e,t=""){return e.displayName||e.name||w4(e)||t}function bI(e,t,n){const r=S4(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Pte(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return S4(e,"Component");if(typeof e=="object")switch(e.$$typeof){case yI.ForwardRef:return bI(e,e.render,"ForwardRef");case yI.Memo:return bI(e,e.type,"memo");default:return}}}const Ete=Object.freeze(Object.defineProperty({__proto__:null,default:Pte,getFunctionName:w4},Symbol.toStringTag,{value:"Module"})),kte=["ownerState"],Tte=["variants"],Rte=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ite(e){return Object.keys(e).length===0}function Mte(e){return typeof e=="string"&&e.charCodeAt(0)>96}function K1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Lte=kh(),Ate=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function fg({defaultTheme:e,theme:t,themeId:n}){return Ite(t)?e:t[n]||t}function Nte(e){return e?(t,n)=>n[e]:null}function uv(e,t){let{ownerState:n}=t,r=Be(t,kte);const o=typeof e=="function"?e(q({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>uv(i,q({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=Be(o,Tte);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props(q({ownerState:n},r,n)):Object.keys(l.props).forEach(f=>{(n==null?void 0:n[f])!==l.props[f]&&r[f]!==l.props[f]&&(u=!1)}),u&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(q({ownerState:n},r,n)):l.style))}),s}return o}function Dte(e={}){const{themeId:t,defaultTheme:n=Lte,rootShouldForwardProp:r=K1,slotShouldForwardProp:o=K1}=e,i=a=>Eh(q({},a,{theme:fg(q({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{l4(a,S=>S.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:f,skipSx:h,overridesResolver:p=Nte(Ate(u))}=s,m=Be(s,Rte),g=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,y=h||!1;let w,b=K1;u==="Root"||u==="root"?b=r:u?b=o:Mte(a)&&(b=void 0);const O=s4(a,q({shouldForwardProp:b,label:w},m)),C=S=>typeof S=="function"&&S.__emotion_real!==S||za(S)?T=>uv(S,q({},T,{theme:fg({theme:T.theme,defaultTheme:n,themeId:t})})):S,k=(S,...T)=>{let P=C(S);const v=T?T.map(C):[];l&&p&&v.push(R=>{const M=fg(q({},R,{defaultTheme:n,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;const L=M.components[l].styleOverrides,I={};return Object.entries(L).forEach(([D,$])=>{I[D]=uv($,q({},R,{theme:M}))}),p(R,I)}),l&&!g&&v.push(R=>{var M;const L=fg(q({},R,{defaultTheme:n,themeId:t})),I=L==null||(M=L.components)==null||(M=M[l])==null?void 0:M.variants;return uv({variants:I},q({},R,{theme:L}))}),y||v.push(i);const E=v.length-T.length;if(Array.isArray(S)&&E>0){const R=new Array(E).fill("");P=[...S,...R],P.raw=[...S.raw,...R]}const _=O(P,...v);return a.muiName&&(_.muiName=a.muiName),_};return O.withConfig&&(k.withConfig=O.withConfig),k}}const $te=Dte();function uy(e,t){const n=q({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=q({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=q({},i),Object.keys(o).forEach(a=>{n[r][a]=uy(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Fte(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:uy(t.components[n].defaultProps,r)}function Wte({props:e,name:t,defaultTheme:n,themeId:r}){let o=pP(n);return r&&(o=o[r]||o),Fte({theme:o,name:t,props:e})}const Gi=typeof window<"u"?A.useLayoutEffect:A.useEffect;function wc(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Vte=Object.freeze(Object.defineProperty({__proto__:null,default:wc},Symbol.toStringTag,{value:"Module"}));function v_(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function x4(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function G1(e,t){var n,r;return A.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Zn(e){return e&&e.ownerDocument||document}function Su(e){return Zn(e).defaultView||window}function y_(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let wI=0;function zte(e){const[t,n]=A.useState(e),r=e||t;return A.useEffect(()=>{t==null&&(wI+=1,n(`mui-${wI}`))},[t]),r}const SI=fu.useId;function vP(e){if(SI!==void 0){const t=SI();return e??t}return zte(e)}function vf({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=A.useRef(e!==void 0),[i,a]=A.useState(t),s=o?e:i,l=A.useCallback(u=>{o||a(u)},[]);return[s,l]}function Wi(e){const t=A.useRef(e);return Gi(()=>{t.current=e}),A.useRef((...n)=>(0,t.current)(...n)).current}function Dn(...e){return A.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{y_(n,t)})},e)}const xI={};function Bte(e,t){const n=A.useRef(xI);return n.current===xI&&(n.current=e(t)),n}const jte=[];function Ute(e){A.useEffect(e,jte)}class Th{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Th}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Nc(){const e=Bte(Th.create).current;return Ute(e.disposeEffect),e}let nb=!0,b_=!1;const Hte=new Th,qte={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Kte(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&qte[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Gte(e){e.metaKey||e.altKey||e.ctrlKey||(nb=!0)}function Y1(){nb=!1}function Yte(){this.visibilityState==="hidden"&&b_&&(nb=!0)}function Zte(e){e.addEventListener("keydown",Gte,!0),e.addEventListener("mousedown",Y1,!0),e.addEventListener("pointerdown",Y1,!0),e.addEventListener("touchstart",Y1,!0),e.addEventListener("visibilitychange",Yte,!0)}function Xte(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return nb||Kte(t)}function yP(){const e=A.useCallback(o=>{o!=null&&Zte(o.ownerDocument)},[]),t=A.useRef(!1);function n(){return t.current?(b_=!0,Hte.start(100,()=>{b_=!1}),t.current=!1,!0):!1}function r(o){return Xte(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function _4(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Qte={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ht(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}function ol(e){return typeof e=="string"}function Zd(e,t,n){return e===void 0||ol(e)?t:q({},t,{ownerState:q({},t.ownerState,n)})}function O4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function OI(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Jte(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=_I(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=q({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=q({},n,o,r);return m.length>0&&(y.className=m),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const a=bp(q({},o,r)),s=OI(r),l=OI(o),u=t(a),f=_I(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=q({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=q({},u,n,l,s);return f.length>0&&(p.className=f),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:u.ref}}function ene(e,t,n){return typeof e=="function"?e(t,n):e}const tne=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Fr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Be(e,tne),s=i?{}:ene(r,o),{props:l,internalRef:u}=Jte(q({},a,{externalSlotProps:s})),f=Dn(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Zd(n,q({},l,{ref:f}),o)}const C4=A.createContext(null);function P4(){return A.useContext(C4)}const nne=typeof Symbol=="function"&&Symbol.for,rne=nne?Symbol.for("mui.nested"):"__THEME_NESTED__";function one(e,t){return typeof t=="function"?t(e):q({},e,t)}function ine(e){const{children:t,theme:n}=e,r=P4(),o=A.useMemo(()=>{const i=r===null?n:one(r,n);return i!=null&&(i[rne]=r!==null),i},[n,r]);return ue.jsx(C4.Provider,{value:o,children:t})}const ane=["value"],E4=A.createContext();function sne(e){let{value:t}=e,n=Be(e,ane);return ue.jsx(E4.Provider,q({value:t??!0},n))}const bP=()=>{const e=A.useContext(E4);return e??!1},k4=A.createContext(void 0);function lne({value:e,children:t}){return ue.jsx(k4.Provider,{value:e,children:t})}function une(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?uy(o.defaultProps,r):!o.styleOverrides&&!o.variants?uy(o,r):r}function cne({props:e,name:t}){const n=A.useContext(k4);return une({props:e,name:t,theme:{components:n}})}const CI={};function PI(e,t,n,r=!1){return A.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?q({},t,{[e]:i}):i;return r?()=>a:a}return e?q({},t,{[e]:n}):q({},t,n)},[e,t,n,r])}function fne(e){const{children:t,theme:n,themeId:r}=e,o=g4(CI),i=P4()||CI,a=PI(r,o,n),s=PI(r,i,n,!0),l=a.direction==="rtl";return ue.jsx(ine,{theme:s,children:ue.jsx(ci.Provider,{value:a,children:ue.jsx(sne,{value:l,children:ue.jsx(lne,{value:a==null?void 0:a.components,children:t})})})})}function xu(e){"@babel/helpers - typeof";return xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xu(e)}function dne(e,t){if(xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function T4(e){var t=dne(e,"string");return xu(t)=="symbol"?t:t+""}const pne=["component","direction","spacing","divider","children","className","useFlexGap"],hne=kh(),mne=$te("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function gne(e){return Wte({props:e,name:"MuiStack",defaultTheme:hne})}function vne(e,t){const n=A.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],bne=({ownerState:e,theme:t})=>{let n=q({display:"flex",flexDirection:"column"},Ki({theme:t},q1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=fP(t),o=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),i=q1({values:e.direction,base:o}),a=q1({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,u,f)=>{if(!i[l]){const p=u>0?i[f[u-1]]:"column";i[l]=p}}),n=zr(n,Ki({theme:t},a,(l,u)=>e.useFlexGap?{gap:wu(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${yne(u?i[u]:e.direction)}`]:wu(r,l)}}))}return n=_ee(t.breakpoints,n),n};function wne(e={}){const{createStyledComponent:t=mne,useThemeProps:n=gne,componentName:r="MuiStack"}=e,o=()=>Ht({root:["root"]},l=>Vt(r,l),{}),i=t(bne);return A.forwardRef(function(l,u){const f=n(l),h=hP(f),{component:p="div",direction:m="column",spacing:g=0,divider:y,children:w,className:b,useFlexGap:O=!1}=h,C=Be(h,pne),k={direction:m,spacing:g,useFlexGap:O},S=o();return ue.jsx(i,q({as:p,ownerState:k,ref:u,className:Ste(S.root,b)},C,{children:y?vne(w,y):w}))})}function Sne(e,t){return q({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Fn={},R4={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(R4);var I4=R4.exports;const xne=lo(ree),_ne=lo(Vte);var M4=I4;Object.defineProperty(Fn,"__esModule",{value:!0});var Vi=Fn.alpha=D4;Fn.blend=Ane;Fn.colorChannel=void 0;var w_=Fn.darken=SP;Fn.decomposeColor=pi;Fn.emphasize=$4;var One=Fn.getContrastRatio=Tne;Fn.getLuminance=cy;Fn.hexToRgb=L4;Fn.hslToRgb=N4;var S_=Fn.lighten=xP;Fn.private_safeAlpha=Rne;Fn.private_safeColorChannel=void 0;Fn.private_safeDarken=Ine;Fn.private_safeEmphasize=Lne;Fn.private_safeLighten=Mne;Fn.recomposeColor=Wf;Fn.rgbToHex=kne;var EI=M4(xne),Cne=M4(_ne);function wP(e,t=0,n=1){return(0,Cne.default)(e,t,n)}function L4(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Pne(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function pi(e){if(e.type)return e;if(e.charAt(0)==="#")return pi(L4(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,EI.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,EI.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const A4=e=>{const t=pi(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Fn.colorChannel=A4;const Ene=(e,t)=>{try{return A4(e)}catch{return e}};Fn.private_safeColorChannel=Ene;function Wf(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function kne(e){if(e.indexOf("#")===0)return e;const{values:t}=pi(e);return`#${t.map((n,r)=>Pne(r===3?Math.round(255*n):n)).join("")}`}function N4(e){e=pi(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,f=(u+n/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Wf({type:s,values:l})}function cy(e){e=pi(e);let t=e.type==="hsl"||e.type==="hsla"?pi(N4(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Tne(e,t){const n=cy(e),r=cy(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function D4(e,t){return e=pi(e),t=wP(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Wf(e)}function Rne(e,t,n){try{return D4(e,t)}catch{return e}}function SP(e,t){if(e=pi(e),t=wP(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Wf(e)}function Ine(e,t,n){try{return SP(e,t)}catch{return e}}function xP(e,t){if(e=pi(e),t=wP(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Wf(e)}function Mne(e,t,n){try{return xP(e,t)}catch{return e}}function $4(e,t=.15){return cy(e)>.5?SP(e,t):xP(e,t)}function Lne(e,t,n){try{return $4(e,t)}catch{return e}}function Ane(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=pi(e),a=pi(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Wf({type:"rgb",values:s})}const ah={black:"#000",white:"#fff"},Nne={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ic={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ac={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Cd={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},sc={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},lc={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},uc={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Dne=["mode","contrastThreshold","tonalOffset"],kI={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ah.white,default:ah.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Z1={text:{primary:ah.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ah.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function TI(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=S_(e.main,o):t==="dark"&&(e.dark=w_(e.main,i)))}function $ne(e="light"){return e==="dark"?{main:sc[200],light:sc[50],dark:sc[400]}:{main:sc[700],light:sc[400],dark:sc[800]}}function Fne(e="light"){return e==="dark"?{main:ic[200],light:ic[50],dark:ic[400]}:{main:ic[500],light:ic[300],dark:ic[700]}}function Wne(e="light"){return e==="dark"?{main:ac[500],light:ac[300],dark:ac[700]}:{main:ac[700],light:ac[400],dark:ac[800]}}function Vne(e="light"){return e==="dark"?{main:lc[400],light:lc[300],dark:lc[700]}:{main:lc[700],light:lc[500],dark:lc[900]}}function zne(e="light"){return e==="dark"?{main:uc[400],light:uc[300],dark:uc[700]}:{main:uc[800],light:uc[500],dark:uc[900]}}function Bne(e="light"){return e==="dark"?{main:Cd[400],light:Cd[300],dark:Cd[700]}:{main:"#ed6c02",light:Cd[500],dark:Cd[900]}}function jne(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Be(e,Dne),i=e.primary||$ne(t),a=e.secondary||Fne(t),s=e.error||Wne(t),l=e.info||Vne(t),u=e.success||zne(t),f=e.warning||Bne(t);function h(y){return One(y,Z1.text.primary)>=n?Z1.text.primary:kI.text.primary}const p=({color:y,name:w,mainShade:b=500,lightShade:O=300,darkShade:C=700})=>{if(y=q({},y),!y.main&&y[b]&&(y.main=y[b]),!y.hasOwnProperty("main"))throw new Error(bu(11,w?` (${w})`:"",b));if(typeof y.main!="string")throw new Error(bu(12,w?` (${w})`:"",JSON.stringify(y.main)));return TI(y,"light",O,r),TI(y,"dark",C,r),y.contrastText||(y.contrastText=h(y.main)),y},m={dark:Z1,light:kI};return zr(q({common:q({},ah),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Nne,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:r},m[t]),o)}const Une=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Hne(e){return Math.round(e*1e5)/1e5}const RI={textTransform:"uppercase"},II='"Roboto", "Helvetica", "Arial", sans-serif';function qne(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=II,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:h}=n,p=Be(n,Une),m=o/14,g=h||(b=>`${b/u*m}rem`),y=(b,O,C,k,S)=>q({fontFamily:r,fontWeight:b,fontSize:g(O),lineHeight:C},r===II?{letterSpacing:`${Hne(k/O)}em`}:{},S,f),w={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,RI),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,RI),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return zr(q({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},w),p,{clone:!1})}const Kne=.2,Gne=.14,Yne=.12;function cn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Kne})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Gne})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Yne})`].join(",")}const Zne=["none",cn(0,2,1,-1,0,1,1,0,0,1,3,0),cn(0,3,1,-2,0,2,2,0,0,1,5,0),cn(0,3,3,-2,0,3,4,0,0,1,8,0),cn(0,2,4,-1,0,4,5,0,0,1,10,0),cn(0,3,5,-1,0,5,8,0,0,1,14,0),cn(0,3,5,-1,0,6,10,0,0,1,18,0),cn(0,4,5,-2,0,7,10,1,0,2,16,1),cn(0,5,5,-3,0,8,10,1,0,3,14,2),cn(0,5,6,-3,0,9,12,1,0,3,16,2),cn(0,6,6,-3,0,10,14,1,0,4,18,3),cn(0,6,7,-4,0,11,15,1,0,4,20,3),cn(0,7,8,-4,0,12,17,2,0,5,22,4),cn(0,7,8,-4,0,13,19,2,0,5,24,4),cn(0,7,9,-4,0,14,21,2,0,5,26,4),cn(0,8,9,-5,0,15,22,2,0,6,28,5),cn(0,8,10,-5,0,16,24,2,0,6,30,5),cn(0,8,11,-5,0,17,26,2,0,6,32,5),cn(0,9,11,-5,0,18,28,2,0,7,34,6),cn(0,9,12,-6,0,19,29,2,0,7,36,6),cn(0,10,13,-6,0,20,31,3,0,8,38,7),cn(0,10,13,-6,0,21,33,3,0,8,40,7),cn(0,10,14,-6,0,22,35,3,0,8,42,7),cn(0,11,14,-7,0,23,36,3,0,9,44,8),cn(0,11,15,-7,0,24,38,3,0,9,46,8)],Xne=["duration","easing","delay"],Qne={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Jne={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function MI(e){return`${Math.round(e)}ms`}function ere(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function tre(e){const t=q({},Qne,e.easing),n=q({},Jne,e.duration);return q({getAutoHeightDuration:ere,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return Be(i,Xne),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:MI(a)} ${s} ${typeof l=="string"?l:MI(l)}`).join(",")}},e,{easing:t,duration:n})}const nre={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},rre=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function _P(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Be(e,rre);if(e.vars)throw new Error(bu(18));const s=jne(r),l=kh(e);let u=zr(l,{mixins:Sne(l.breakpoints,n),palette:s,shadows:Zne.slice(),typography:qne(s,i),transitions:tre(o),zIndex:q({},nre)});return u=zr(u,a),u=t.reduce((f,h)=>zr(f,h),u),u.unstable_sxConfig=q({},Ph,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(h){return Eh({sx:h,theme:this})},u}const OP=_P();function CP(){const e=pP(OP);return e[ih]||e}var Rh={};const ore=lo(lK);var X1={exports:{}},LI;function ire(){return LI||(LI=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.includes(i))continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(X1)),X1.exports}const F4=lo(yee),are=lo(bee),sre=lo(Cee),lre=lo(Ete),ure=lo(dte),cre=lo(yte);var Vf=I4;Object.defineProperty(Rh,"__esModule",{value:!0});var fre=Rh.default=Ore;Rh.shouldForwardProp=cv;Rh.systemDefaultTheme=void 0;var Xo=Vf(ore),x_=Vf(ire()),AI=yre(F4),dre=are;Vf(sre);Vf(lre);var pre=Vf(ure),hre=Vf(cre);const mre=["ownerState"],gre=["variants"],vre=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function W4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(W4=function(r){return r?n:t})(e)}function yre(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=W4(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function bre(e){return Object.keys(e).length===0}function wre(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sre=Rh.systemDefaultTheme=(0,pre.default)(),xre=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dg({defaultTheme:e,theme:t,themeId:n}){return bre(t)?e:t[n]||t}function _re(e){return e?(t,n)=>n[e]:null}function fv(e,t){let{ownerState:n}=t,r=(0,x_.default)(t,mre);const o=typeof e=="function"?e((0,Xo.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>fv(i,(0,Xo.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=(0,x_.default)(o,gre);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Xo.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(f=>{(n==null?void 0:n[f])!==l.props[f]&&r[f]!==l.props[f]&&(u=!1)}),u&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,Xo.default)({ownerState:n},r,n)):l.style))}),s}return o}function Ore(e={}){const{themeId:t,defaultTheme:n=Sre,rootShouldForwardProp:r=cv,slotShouldForwardProp:o=cv}=e,i=a=>(0,hre.default)((0,Xo.default)({},a,{theme:dg((0,Xo.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{(0,AI.internal_processStyles)(a,S=>S.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:f,skipSx:h,overridesResolver:p=_re(xre(u))}=s,m=(0,x_.default)(s,vre),g=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,y=h||!1;let w,b=cv;u==="Root"||u==="root"?b=r:u?b=o:wre(a)&&(b=void 0);const O=(0,AI.default)(a,(0,Xo.default)({shouldForwardProp:b,label:w},m)),C=S=>typeof S=="function"&&S.__emotion_real!==S||(0,dre.isPlainObject)(S)?T=>fv(S,(0,Xo.default)({},T,{theme:dg({theme:T.theme,defaultTheme:n,themeId:t})})):S,k=(S,...T)=>{let P=C(S);const v=T?T.map(C):[];l&&p&&v.push(R=>{const M=dg((0,Xo.default)({},R,{defaultTheme:n,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;const L=M.components[l].styleOverrides,I={};return Object.entries(L).forEach(([D,$])=>{I[D]=fv($,(0,Xo.default)({},R,{theme:M}))}),p(R,I)}),l&&!g&&v.push(R=>{var M;const L=dg((0,Xo.default)({},R,{defaultTheme:n,themeId:t})),I=L==null||(M=L.components)==null||(M=M[l])==null?void 0:M.variants;return fv({variants:I},(0,Xo.default)({},R,{theme:L}))}),y||v.push(i);const E=v.length-T.length;if(Array.isArray(S)&&E>0){const R=new Array(E).fill("");P=[...S,...R],P.raw=[...S.raw,...R]}const _=O(P,...v);return a.muiName&&(_.muiName=a.muiName),_};return O.withConfig&&(k.withConfig=O.withConfig),k}}function rb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const uo=e=>rb(e)&&e!=="classes",Ue=fre({themeId:ih,defaultTheme:OP,rootShouldForwardProp:uo}),Cre=["theme"];function __(e){let{theme:t}=e,n=Be(e,Cre);const r=t[ih];return ue.jsx(fne,q({},n,{themeId:r?ih:void 0,theme:r||t}))}const NI=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},hn=Le.forwardRef(({children:e,...t},n)=>z("button",{type:"button",ref:n,css:{border:"none",padding:0,background:"none",color:"inherit",":not([disabled])":{cursor:"pointer"}},...t,children:e})),DI=Le.forwardRef(({kind:e="normal",extraCss:t,children:n,...r},o)=>{const i=wl(),{isHighContrast:a}=va();return z("button",{ref:o,type:"button",css:Pre(i,e,a,t),...r,children:n})}),Pre=(e,t,n,r={})=>{const o=yf(t,{normal:()=>({border:`1px solid ${e.colors.neutral40}`,color:e.colors.neutral90,"&:hover, &:focus-visible":{border:`1px solid ${e.colors.neutral60}`,backgroundColor:e.colors.neutral15}}),danger:()=>({border:`1px solid ${e.colors.danger4}`,color:e.colors.danger4,fontWeight:n?"bold":"inherit","&:hover, &:focus-visible":{border:`1px solid ${e.colors.danger5}`,backgroundColor:e.colors.danger4,color:e.colors.danger4BwInverted}}),"call-to-action":()=>({border:`1px solid ${e.colors.happy8}`,color:e.colors.happy7BwInverted,backgroundColor:e.colors.happy7,"&:hover, &:focus-visible":{border:`1px solid ${e.colors.happy9}`,backgroundColor:e.colors.happy8,color:e.colors.happy8BwInverted}})});return{borderRadius:8,display:"inline-flex",alignItems:"center",padding:"7px 14px",gap:12,whiteSpace:"nowrap",backgroundColor:e.colors.neutral10,transition:"background-color 0.15s, border-color 0.15s",textDecoration:"none","& > svg":{fontSize:20},"&:disabled":{border:`1px solid ${e.colors.neutral25}`,color:e.colors.neutral40},"&:not([disabled])":{cursor:"pointer",...o,...fb(e,{offset:-1})},...r}},Ere=({kind:e,iconPos:t="left",children:n,...r})=>{const o=wl();return pe("div",{css:{display:"inline-flex",flexDirection:t==="left"?"row":"column",borderRadius:4,padding:"8px 16px",gap:16,alignItems:"center","& > svg":{fontSize:24,minWidth:24},...yf(e,{error:()=>({backgroundColor:o.colors.danger0,border:`1.5px solid ${o.colors.danger0}`,color:o.colors.danger0BwInverted}),info:()=>({backgroundColor:o.colors.neutral10})})},...r,children:[yf(e,{error:()=>z(eZ,{}),info:()=>z(cZ,{css:{color:o.colors.neutral60}})}),z("div",{children:n})]})};class V4 extends Error{constructor(t){super(`${t} (this is a bug in this application)`),this.name="Bug"}}const Qc=e=>{throw new V4(e)},kre=e=>{const t="reached unreachable code";throw new V4(t)},Tre=["light","dark","light-high-contrast","dark-high-contrast"],$I="colorScheme",z4=Le.createContext(null),va=()=>A.useContext(z4)??Qc("missing color scheme context provider"),Rre=({allowedSchemes:e=Tre,children:t})=>{if(e.length<2)return Qc("`allowedSchemes` for ColorSchemeProvider need to have at least 2 schemes");if(!e.includes("light")&&!e.includes("dark"))return Qc("`allowedSchemes` must contain either 'light' or 'dark'");const n=h=>!!h&&e.includes(h),r=document.documentElement.dataset.colorScheme,o=n(r)?r:"light",[i,a]=A.useState(o),s=window.localStorage.getItem($I),[l,u]=A.useState(!n(s)),f={scheme:i,isAuto:l,isHighContrast:i.includes("high-contrast"),update:h=>{if(h!=="auto"&&!n(h))return Qc("Passed forbidden color scheme to `update`");window.localStorage.setItem($I,h),u(h==="auto");const p=h!=="auto"?h:(()=>{const m=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",g=window.matchMedia("(prefers-contrast: more)").matches?"-high-contrast":"",y=`${m}${g}`;if(e.includes(y))return y;const b=`${m==="light"?"dark":"light"}${g}`;return e.includes(b)?b:m})();a(p),document.documentElement.dataset.colorScheme=p}};return z(z4.Provider,{value:f,children:t})},PP={colors:{neutral00:"var(--color-neutral00)",neutral05:"var(--color-neutral05)",neutral10:"var(--color-neutral10)",neutral15:"var(--color-neutral15)",neutral20:"var(--color-neutral20)",neutral25:"var(--color-neutral25)",neutral30:"var(--color-neutral30)",neutral40:"var(--color-neutral40)",neutral50:"var(--color-neutral50)",neutral60:"var(--color-neutral60)",neutral70:"var(--color-neutral70)",neutral80:"var(--color-neutral80)",neutral90:"var(--color-neutral90)",danger0:"var(--color-danger0)",danger0BwInverted:"var(--color-danger0-bw-inverted)",danger1:"var(--color-danger1)",danger1BwInverted:"var(--color-danger1-bw-inverted)",danger2:"var(--color-danger2)",danger2BwInverted:"var(--color-danger2-bw-inverted)",danger4:"var(--color-danger4)",danger4BwInverted:"var(--color-danger4-bw-inverted)",danger5:"var(--color-danger5)",danger5BwInverted:"var(--color-danger5-bw-inverted)",happy4:"var(--color-accent4)",happy4BwInverted:"var(--color-accent4-bw-inverted)",happy5:"var(--color-accent5)",happy5BwInverted:"var(--color-accent5-bw-inverted)",happy6:"var(--color-accent6)",happy6BwInverted:"var(--color-accent6-bw-inverted)",happy7:"var(--color-accent7)",happy7BwInverted:"var(--color-accent7-bw-inverted)",happy8:"var(--color-accent8)",happy8BwInverted:"var(--color-accent8-bw-inverted)",happy9:"var(--color-accent9)",happy9BwInverted:"var(--color-accent9-bw-inverted)",accent9:"var(--color-accent9)",accent9BwInverted:"var(--color-accent9-bw-inverted)",accent8:"var(--color-accent8)",accent8BwInverted:"var(--color-accent8-bw-inverted)",accent7:"var(--color-accent7)",accent7BwInverted:"var(--color-accent7-bw-inverted)",accent6:"var(--color-accent6)",accent6BwInverted:"var(--color-accent6-bw-inverted)",accent5:"var(--color-accent5)",accent5BwInverted:"var(--color-accent5-bw-inverted)",accent4:"var(--color-accent4)",accent4BwInverted:"var(--color-accent4-bw-inverted)",focus:"var(--color-accent8)"},breakpoints:{small:450,medium:650,large:900}},Ire=Le.createContext(PP),wl=()=>A.useContext(Ire);function yf(e,t,n){return t[e]()}const bf=e=>`@media (max-width: ${e}px)`,Q1=e=>e.current??Qc("ref unexpectedly unbound"),B4=A.forwardRef(({title:e,buttonContent:t,onSubmit:n,text:r,children:o},i)=>{const a=e??r.areYouSure,[s,l]=A.useState(!1),[u,f]=A.useState(),h=A.useRef(null);return A.useImperativeHandle(i,()=>({open:()=>{l(!1),f(void 0),Q1(h).open()},done:()=>{var m,g;(g=(m=Q1(h)).close)==null||g.call(m)},reportError:m=>{l(!1),f(m)}})),pe(x3,{title:a,closable:!s,ref:h,text:r,children:[o,pe("form",{onSubmit:m=>{m.preventDefault(),m.stopPropagation(),l(!0),f(void 0),n==null||n()},css:{marginTop:32},children:[pe("div",{css:{display:"flex",gap:12,justifyContent:"center",flexWrap:"wrap"},children:[z(DI,{disabled:s,onClick:()=>{var m,g;return(g=(m=Q1(h)).close)==null?void 0:g.call(m)},children:r.cancel}),z(DI,{disabled:s,type:"submit",kind:"danger",css:{whiteSpace:"normal"},children:t})]}),s&&z("div",{css:{marginTop:16},children:z(pie,{size:20})})]}),Lre(u)]})}),Mre=({children:e})=>z("div",{css:{marginTop:8},children:z(Ere,{kind:"error",children:e})}),Lre=e=>e==null?null:z(Mre,{children:e}),wf=Math.min,su=Math.max,fy=Math.round,pg=Math.floor,dl=e=>({x:e,y:e}),Are={left:"right",right:"left",bottom:"top",top:"bottom"},Nre={start:"end",end:"start"};function O_(e,t,n){return su(e,wf(t,n))}function Ih(e,t){return typeof e=="function"?e(t):e}function _u(e){return e.split("-")[0]}function Mh(e){return e.split("-")[1]}function j4(e){return e==="x"?"y":"x"}function EP(e){return e==="y"?"height":"width"}function ob(e){return["top","bottom"].includes(_u(e))?"y":"x"}function kP(e){return j4(ob(e))}function Dre(e,t,n){n===void 0&&(n=!1);const r=Mh(e),o=kP(e),i=EP(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=dy(a)),[a,dy(a)]}function $re(e){const t=dy(e);return[C_(e),t,C_(t)]}function C_(e){return e.replace(/start|end/g,t=>Nre[t])}function Fre(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function Wre(e,t,n,r){const o=Mh(e);let i=Fre(_u(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(C_)))),i}function dy(e){return e.replace(/left|right|bottom|top/g,t=>Are[t])}function Vre(e){return{top:0,right:0,bottom:0,left:0,...e}}function U4(e){return typeof e!="number"?Vre(e):{top:e,right:e,bottom:e,left:e}}function py(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function FI(e,t,n){let{reference:r,floating:o}=e;const i=ob(t),a=kP(t),s=EP(a),l=_u(t),u=i==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let m;switch(l){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-o.width,y:h};break;default:m={x:r.x,y:r.y}}switch(Mh(t)){case"start":m[a]-=p*(n&&u?-1:1);break;case"end":m[a]+=p*(n&&u?-1:1);break}return m}const zre=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=FI(u,r,l),p=r,m={},g=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s}=t,{element:l,padding:u=0}=Ih(e,t)||{};if(l==null)return{};const f=U4(u),h={x:n,y:r},p=kP(o),m=EP(p),g=await a.getDimensions(l),y=p==="y",w=y?"top":"left",b=y?"bottom":"right",O=y?"clientHeight":"clientWidth",C=i.reference[m]+i.reference[p]-h[p]-i.floating[m],k=h[p]-i.reference[p],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let T=S?S[O]:0;(!T||!await(a.isElement==null?void 0:a.isElement(S)))&&(T=s.floating[O]||i.floating[m]);const P=C/2-k/2,v=T/2-g[m]/2-1,E=wf(f[w],v),_=wf(f[b],v),R=E,M=T-g[m]-_,L=T/2-g[m]/2+P,I=O_(R,L,M),$=Mh(o)!=null&&L!=I&&i.reference[m]/2-(LR<=0)){var v,E;const R=(((v=o.flip)==null?void 0:v.index)||0)+1,M=k[R];if(M)return{data:{index:R,overflows:P},reset:{placement:M}};let L=(E=P.filter(I=>I.overflows[0]<=0).sort((I,D)=>I.overflows[1]-D.overflows[1])[0])==null?void 0:E.placement;if(!L)switch(p){case"bestFit":{var _;const I=(_=P.map(D=>[D.placement,D.overflows.filter($=>$>0).reduce(($,F)=>$+F,0)]).sort((D,$)=>D[1]-$[1])[0])==null?void 0:_[0];I&&(L=I);break}case"initialPlacement":L=a;break}if(r!==L)return{reset:{placement:L}}}return{}}}};async function jre(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=_u(n),s=Mh(n),l=ob(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&l?-1:1,h=Ih(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&typeof g=="number"&&(m=s==="end"?g*-1:g),l?{x:m*f,y:p*u}:{x:p*u,y:m*f}}const Ure=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await jre(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Hre=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:w=>{let{x:b,y:O}=w;return{x:b,y:O}}},...l}=Ih(e,t),u={x:n,y:r},f=await H4(t,l),h=ob(_u(o)),p=j4(h);let m=u[p],g=u[h];if(i){const w=p==="y"?"top":"left",b=p==="y"?"bottom":"right",O=m+f[w],C=m-f[b];m=O_(O,m,C)}if(a){const w=h==="y"?"top":"left",b=h==="y"?"bottom":"right",O=g+f[w],C=g-f[b];g=O_(O,g,C)}const y=s.fn({...t,[p]:m,[h]:g});return{...y,data:{x:y.x-n,y:y.y-r}}}}};function pl(e){return q4(e)?(e.nodeName||"").toLowerCase():"#document"}function ko(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function as(e){var t;return(t=(q4(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function q4(e){return e instanceof Node||e instanceof ko(e).Node}function ts(e){return e instanceof Element||e instanceof ko(e).Element}function ya(e){return e instanceof HTMLElement||e instanceof ko(e).HTMLElement}function VI(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ko(e).ShadowRoot}function Lh(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=hi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function qre(e){return["table","td","th"].includes(pl(e))}function TP(e){const t=RP(),n=hi(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Kre(e){let t=Sf(e);for(;ya(t)&&!ib(t);){if(TP(t))return t;t=Sf(t)}return null}function RP(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ib(e){return["html","body","#document"].includes(pl(e))}function hi(e){return ko(e).getComputedStyle(e)}function ab(e){return ts(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Sf(e){if(pl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||VI(e)&&e.host||as(e);return VI(t)?t.host:t}function K4(e){const t=Sf(e);return ib(t)?e.ownerDocument?e.ownerDocument.body:e.body:ya(t)&&Lh(t)?t:K4(t)}function lu(e,t){var n;t===void 0&&(t=[]);const r=K4(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=ko(r);return o?t.concat(i,i.visualViewport||[],Lh(r)?r:[]):t.concat(r,lu(r))}function G4(e){const t=hi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ya(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=fy(n)!==i||fy(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function IP(e){return ts(e)?e:e.contextElement}function Jc(e){const t=IP(e);if(!ya(t))return dl(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=G4(t);let a=(i?fy(n.width):n.width)/r,s=(i?fy(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Gre=dl(0);function Y4(e){const t=ko(e);return!RP()||!t.visualViewport?Gre:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yre(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ko(e)?!1:t}function Ou(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=IP(e);let a=dl(1);t&&(r?ts(r)&&(a=Jc(r)):a=Jc(e));const s=Yre(i,n,r)?Y4(i):dl(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,f=o.width/a.x,h=o.height/a.y;if(i){const p=ko(i),m=r&&ts(r)?ko(r):r;let g=p.frameElement;for(;g&&r&&m!==p;){const y=Jc(g),w=g.getBoundingClientRect(),b=hi(g),O=w.left+(g.clientLeft+parseFloat(b.paddingLeft))*y.x,C=w.top+(g.clientTop+parseFloat(b.paddingTop))*y.y;l*=y.x,u*=y.y,f*=y.x,h*=y.y,l+=O,u+=C,g=ko(g).frameElement}}return py({width:f,height:h,x:l,y:u})}function Zre(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=ya(n),i=as(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=dl(1);const l=dl(0);if((o||!o&&r!=="fixed")&&((pl(n)!=="body"||Lh(i))&&(a=ab(n)),ya(n))){const u=Ou(n);s=Jc(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}}function Xre(e){return Array.from(e.getClientRects())}function Z4(e){return Ou(as(e)).left+ab(e).scrollLeft}function Qre(e){const t=as(e),n=ab(e),r=e.ownerDocument.body,o=su(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=su(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Z4(e);const s=-n.scrollTop;return hi(r).direction==="rtl"&&(a+=su(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function Jre(e,t){const n=ko(e),r=as(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const u=RP();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function eoe(e,t){const n=Ou(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ya(e)?Jc(e):dl(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:a,height:s,x:l,y:u}}function zI(e,t,n){let r;if(t==="viewport")r=Jre(e,n);else if(t==="document")r=Qre(as(e));else if(ts(t))r=eoe(t,n);else{const o=Y4(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return py(r)}function X4(e,t){const n=Sf(e);return n===t||!ts(n)||ib(n)?!1:hi(n).position==="fixed"||X4(n,t)}function toe(e,t){const n=t.get(e);if(n)return n;let r=lu(e).filter(s=>ts(s)&&pl(s)!=="body"),o=null;const i=hi(e).position==="fixed";let a=i?Sf(e):e;for(;ts(a)&&!ib(a);){const s=hi(a),l=TP(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Lh(a)&&!l&&X4(e,a))?r=r.filter(f=>f!==a):o=s,a=Sf(a)}return t.set(e,r),r}function noe(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?toe(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,f)=>{const h=zI(t,f,o);return u.top=su(h.top,u.top),u.right=wf(h.right,u.right),u.bottom=wf(h.bottom,u.bottom),u.left=su(h.left,u.left),u},zI(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function roe(e){return G4(e)}function ooe(e,t,n){const r=ya(t),o=as(t),i=n==="fixed",a=Ou(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=dl(0);if(r||!r&&!i)if((pl(t)!=="body"||Lh(o))&&(s=ab(t)),r){const u=Ou(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=Z4(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function BI(e,t){return!ya(e)||hi(e).position==="fixed"?null:t?t(e):e.offsetParent}function Q4(e,t){const n=ko(e);if(!ya(e))return n;let r=BI(e,t);for(;r&&qre(r)&&hi(r).position==="static";)r=BI(r,t);return r&&(pl(r)==="html"||pl(r)==="body"&&hi(r).position==="static"&&!TP(r))?n:r||Kre(e)||n}const ioe=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Q4,i=this.getDimensions;return{reference:ooe(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function aoe(e){return hi(e).direction==="rtl"}const soe={convertOffsetParentRelativeRectToViewportRelativeRect:Zre,getDocumentElement:as,getClippingRect:noe,getOffsetParent:Q4,getElementRects:ioe,getClientRects:Xre,getDimensions:roe,getScale:Jc,isElement:ts,isRTL:aoe};function loe(e,t){let n=null,r;const o=as(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:u,top:f,width:h,height:p}=e.getBoundingClientRect();if(s||t(),!h||!p)return;const m=pg(f),g=pg(o.clientWidth-(u+h)),y=pg(o.clientHeight-(f+p)),w=pg(u),O={rootMargin:-m+"px "+-g+"px "+-y+"px "+-w+"px",threshold:su(0,wf(1,l))||1};let C=!0;function k(S){const T=S[0].intersectionRatio;if(T!==l){if(!C)return a();T?a(!1,T):r=setTimeout(()=>{a(!1,1e-7)},100)}C=!1}try{n=new IntersectionObserver(k,{...O,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,O)}n.observe(e)}return a(!0),i}function J4(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=IP(e),f=o||i?[...u?lu(u):[],...lu(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const h=u&&s?loe(u,n):null;let p=-1,m=null;a&&(m=new ResizeObserver(b=>{let[O]=b;O&&O.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{m&&m.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let g,y=l?Ou(e):null;l&&w();function w(){const b=Ou(e);y&&(b.x!==y.x||b.y!==y.y||b.width!==y.width||b.height!==y.height)&&n(),y=b,g=requestAnimationFrame(w)}return n(),()=>{f.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),h&&h(),m&&m.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const uoe=(e,t,n)=>{const r=new Map,o={platform:soe,...n},i={...o.platform,_c:r};return zre(e,t,{...o,platform:i})},coe=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?WI({element:r.current,padding:o}).fn(n):{}:r?WI({element:r,padding:o}).fn(n):{}}}};var dv=typeof document<"u"?A.useLayoutEffect:A.useEffect;function hy(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!hy(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!hy(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function e3(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jI(e,t){const n=e3(e);return Math.round(t*n)/n}function UI(e){const t=A.useRef(e);return dv(()=>{t.current=e}),t}function foe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[f,h]=A.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=A.useState(r);hy(p,r)||m(r);const[g,y]=A.useState(null),[w,b]=A.useState(null),O=A.useCallback(F=>{F!==T.current&&(T.current=F,y(F))},[]),C=A.useCallback(F=>{F!==P.current&&(P.current=F,b(F))},[]),k=i||g,S=a||w,T=A.useRef(null),P=A.useRef(null),v=A.useRef(f),E=l!=null,_=UI(l),R=UI(o),M=A.useCallback(()=>{if(!T.current||!P.current)return;const F={placement:t,strategy:n,middleware:p};R.current&&(F.platform=R.current),uoe(T.current,P.current,F).then(W=>{const V={...W,isPositioned:!0};L.current&&!hy(v.current,V)&&(v.current=V,Iu.flushSync(()=>{h(V)}))})},[p,t,n,R]);dv(()=>{u===!1&&v.current.isPositioned&&(v.current.isPositioned=!1,h(F=>({...F,isPositioned:!1})))},[u]);const L=A.useRef(!1);dv(()=>(L.current=!0,()=>{L.current=!1}),[]),dv(()=>{if(k&&(T.current=k),S&&(P.current=S),k&&S){if(_.current)return _.current(k,S,M);M()}},[k,S,M,_,E]);const I=A.useMemo(()=>({reference:T,floating:P,setReference:O,setFloating:C}),[O,C]),D=A.useMemo(()=>({reference:k,floating:S}),[k,S]),$=A.useMemo(()=>{const F={position:n,left:0,top:0};if(!D.floating)return F;const W=jI(D.floating,f.x),V=jI(D.floating,f.y);return s?{...F,transform:"translate("+W+"px, "+V+"px)",...e3(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:V}},[n,s,D.floating,f.x,f.y]);return A.useMemo(()=>({...f,update:M,refs:I,elements:D,floatingStyles:$}),[f,M,I,D,$])}/*! + */var mP=Symbol.for("react.element"),gP=Symbol.for("react.portal"),H0=Symbol.for("react.fragment"),q0=Symbol.for("react.strict_mode"),K0=Symbol.for("react.profiler"),G0=Symbol.for("react.provider"),Y0=Symbol.for("react.context"),xte=Symbol.for("react.server_context"),Z0=Symbol.for("react.forward_ref"),X0=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),J0=Symbol.for("react.memo"),eb=Symbol.for("react.lazy"),_te=Symbol.for("react.offscreen"),y4;y4=Symbol.for("react.module.reference");function yi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case mP:switch(e=e.type,e){case H0:case K0:case q0:case X0:case Q0:return e;default:switch(e=e&&e.$$typeof,e){case xte:case Y0:case Z0:case eb:case J0:case G0:return e;default:return t}}case gP:return t}}}Ut.ContextConsumer=Y0;Ut.ContextProvider=G0;Ut.Element=mP;Ut.ForwardRef=Z0;Ut.Fragment=H0;Ut.Lazy=eb;Ut.Memo=J0;Ut.Portal=gP;Ut.Profiler=K0;Ut.StrictMode=q0;Ut.Suspense=X0;Ut.SuspenseList=Q0;Ut.isAsyncMode=function(){return!1};Ut.isConcurrentMode=function(){return!1};Ut.isContextConsumer=function(e){return yi(e)===Y0};Ut.isContextProvider=function(e){return yi(e)===G0};Ut.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===mP};Ut.isForwardRef=function(e){return yi(e)===Z0};Ut.isFragment=function(e){return yi(e)===H0};Ut.isLazy=function(e){return yi(e)===eb};Ut.isMemo=function(e){return yi(e)===J0};Ut.isPortal=function(e){return yi(e)===gP};Ut.isProfiler=function(e){return yi(e)===K0};Ut.isStrictMode=function(e){return yi(e)===q0};Ut.isSuspense=function(e){return yi(e)===X0};Ut.isSuspenseList=function(e){return yi(e)===Q0};Ut.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===H0||e===K0||e===q0||e===X0||e===Q0||e===_te||typeof e=="object"&&e!==null&&(e.$$typeof===eb||e.$$typeof===J0||e.$$typeof===G0||e.$$typeof===Y0||e.$$typeof===Z0||e.$$typeof===y4||e.getModuleId!==void 0)};Ut.typeOf=yi;v4.exports=Ut;var b2=v4.exports;const Ote=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function b4(e){const t=`${e}`.match(Ote);return t&&t[1]||""}function w4(e,t=""){return e.displayName||e.name||b4(e)||t}function w2(e,t,n){const r=w4(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Cte(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return w4(e,"Component");if(typeof e=="object")switch(e.$$typeof){case b2.ForwardRef:return w2(e,e.render,"ForwardRef");case b2.Memo:return w2(e,e.type,"memo");default:return}}}const Pte=Object.freeze(Object.defineProperty({__proto__:null,default:Cte,getFunctionName:b4},Symbol.toStringTag,{value:"Module"})),Ete=["ownerState"],kte=["variants"],Tte=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Rte(e){return Object.keys(e).length===0}function Ite(e){return typeof e=="string"&&e.charCodeAt(0)>96}function q1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Mte=kh(),Lte=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function fg({defaultTheme:e,theme:t,themeId:n}){return Rte(t)?e:t[n]||t}function Ate(e){return e?(t,n)=>n[e]:null}function uv(e,t){let{ownerState:n}=t,r=Be(t,Ete);const o=typeof e=="function"?e(q({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>uv(i,q({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=Be(o,kte);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props(q({ownerState:n},r,n)):Object.keys(l.props).forEach(f=>{(n==null?void 0:n[f])!==l.props[f]&&r[f]!==l.props[f]&&(u=!1)}),u&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(q({ownerState:n},r,n)):l.style))}),s}return o}function Nte(e={}){const{themeId:t,defaultTheme:n=Mte,rootShouldForwardProp:r=q1,slotShouldForwardProp:o=q1}=e,i=a=>Eh(q({},a,{theme:fg(q({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{s4(a,S=>S.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:f,skipSx:h,overridesResolver:p=Ate(Lte(u))}=s,m=Be(s,Tte),g=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,y=h||!1;let w,b=q1;u==="Root"||u==="root"?b=r:u?b=o:Ite(a)&&(b=void 0);const O=a4(a,q({shouldForwardProp:b,label:w},m)),C=S=>typeof S=="function"&&S.__emotion_real!==S||za(S)?T=>uv(S,q({},T,{theme:fg({theme:T.theme,defaultTheme:n,themeId:t})})):S,k=(S,...T)=>{let P=C(S);const v=T?T.map(C):[];l&&p&&v.push(R=>{const M=fg(q({},R,{defaultTheme:n,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;const L=M.components[l].styleOverrides,I={};return Object.entries(L).forEach(([D,$])=>{I[D]=uv($,q({},R,{theme:M}))}),p(R,I)}),l&&!g&&v.push(R=>{var M;const L=fg(q({},R,{defaultTheme:n,themeId:t})),I=L==null||(M=L.components)==null||(M=M[l])==null?void 0:M.variants;return uv({variants:I},q({},R,{theme:L}))}),y||v.push(i);const E=v.length-T.length;if(Array.isArray(S)&&E>0){const R=new Array(E).fill("");P=[...S,...R],P.raw=[...S.raw,...R]}const _=O(P,...v);return a.muiName&&(_.muiName=a.muiName),_};return O.withConfig&&(k.withConfig=O.withConfig),k}}const Dte=Nte();function ly(e,t){const n=q({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=q({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=q({},i),Object.keys(o).forEach(a=>{n[r][a]=ly(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function $te(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ly(t.components[n].defaultProps,r)}function Fte({props:e,name:t,defaultTheme:n,themeId:r}){let o=pP(n);return r&&(o=o[r]||o),$te({theme:o,name:t,props:e})}const Gi=typeof window<"u"?A.useLayoutEffect:A.useEffect;function wc(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Wte=Object.freeze(Object.defineProperty({__proto__:null,default:wc},Symbol.toStringTag,{value:"Module"}));function v_(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function S4(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function K1(e,t){var n,r;return A.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Zn(e){return e&&e.ownerDocument||document}function wu(e){return Zn(e).defaultView||window}function y_(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let S2=0;function Vte(e){const[t,n]=A.useState(e),r=e||t;return A.useEffect(()=>{t==null&&(S2+=1,n(`mui-${S2}`))},[t]),r}const x2=cu.useId;function vP(e){if(x2!==void 0){const t=x2();return e??t}return Vte(e)}function vf({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=A.useRef(e!==void 0),[i,a]=A.useState(t),s=o?e:i,l=A.useCallback(u=>{o||a(u)},[]);return[s,l]}function Wi(e){const t=A.useRef(e);return Gi(()=>{t.current=e}),A.useRef((...n)=>(0,t.current)(...n)).current}function Dn(...e){return A.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{y_(n,t)})},e)}const _2={};function zte(e,t){const n=A.useRef(_2);return n.current===_2&&(n.current=e(t)),n}const Bte=[];function jte(e){A.useEffect(e,Bte)}class Th{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Th}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Nc(){const e=zte(Th.create).current;return jte(e.disposeEffect),e}let tb=!0,b_=!1;const Ute=new Th,Hte={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function qte(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Hte[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Kte(e){e.metaKey||e.altKey||e.ctrlKey||(tb=!0)}function G1(){tb=!1}function Gte(){this.visibilityState==="hidden"&&b_&&(tb=!0)}function Yte(e){e.addEventListener("keydown",Kte,!0),e.addEventListener("mousedown",G1,!0),e.addEventListener("pointerdown",G1,!0),e.addEventListener("touchstart",G1,!0),e.addEventListener("visibilitychange",Gte,!0)}function Zte(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return tb||qte(t)}function yP(){const e=A.useCallback(o=>{o!=null&&Yte(o.ownerDocument)},[]),t=A.useRef(!1);function n(){return t.current?(b_=!0,Ute.start(100,()=>{b_=!1}),t.current=!1,!0):!1}function r(o){return Zte(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function x4(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Xte={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ht(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}function ol(e){return typeof e=="string"}function Zd(e,t,n){return e===void 0||ol(e)?t:q({},t,{ownerState:q({},t.ownerState,n)})}function _4(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function C2(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Qte(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=O2(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=q({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=q({},n,o,r);return m.length>0&&(y.className=m),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const a=bp(q({},o,r)),s=C2(r),l=C2(o),u=t(a),f=O2(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=q({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=q({},u,n,l,s);return f.length>0&&(p.className=f),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:u.ref}}function Jte(e,t,n){return typeof e=="function"?e(t,n):e}const ene=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Fr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Be(e,ene),s=i?{}:Jte(r,o),{props:l,internalRef:u}=Qte(q({},a,{externalSlotProps:s})),f=Dn(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Zd(n,q({},l,{ref:f}),o)}const O4=A.createContext(null);function C4(){return A.useContext(O4)}const tne=typeof Symbol=="function"&&Symbol.for,nne=tne?Symbol.for("mui.nested"):"__THEME_NESTED__";function rne(e,t){return typeof t=="function"?t(e):q({},e,t)}function one(e){const{children:t,theme:n}=e,r=C4(),o=A.useMemo(()=>{const i=r===null?n:rne(r,n);return i!=null&&(i[nne]=r!==null),i},[n,r]);return ue.jsx(O4.Provider,{value:o,children:t})}const ine=["value"],P4=A.createContext();function ane(e){let{value:t}=e,n=Be(e,ine);return ue.jsx(P4.Provider,q({value:t??!0},n))}const bP=()=>{const e=A.useContext(P4);return e??!1},E4=A.createContext(void 0);function sne({value:e,children:t}){return ue.jsx(E4.Provider,{value:e,children:t})}function lne(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?ly(o.defaultProps,r):!o.styleOverrides&&!o.variants?ly(o,r):r}function une({props:e,name:t}){const n=A.useContext(E4);return lne({props:e,name:t,theme:{components:n}})}const P2={};function E2(e,t,n,r=!1){return A.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?q({},t,{[e]:i}):i;return r?()=>a:a}return e?q({},t,{[e]:n}):q({},t,n)},[e,t,n,r])}function cne(e){const{children:t,theme:n,themeId:r}=e,o=m4(P2),i=C4()||P2,a=E2(r,o,n),s=E2(r,i,n,!0),l=a.direction==="rtl";return ue.jsx(one,{theme:s,children:ue.jsx(ci.Provider,{value:a,children:ue.jsx(ane,{value:l,children:ue.jsx(sne,{value:a==null?void 0:a.components,children:t})})})})}function Su(e){"@babel/helpers - typeof";return Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Su(e)}function fne(e,t){if(Su(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Su(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function k4(e){var t=fne(e,"string");return Su(t)=="symbol"?t:t+""}const dne=["component","direction","spacing","divider","children","className","useFlexGap"],pne=kh(),hne=Dte("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function mne(e){return Fte({props:e,name:"MuiStack",defaultTheme:pne})}function gne(e,t){const n=A.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],yne=({ownerState:e,theme:t})=>{let n=q({display:"flex",flexDirection:"column"},Ki({theme:t},H1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=fP(t),o=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),i=H1({values:e.direction,base:o}),a=H1({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,u,f)=>{if(!i[l]){const p=u>0?i[f[u-1]]:"column";i[l]=p}}),n=zr(n,Ki({theme:t},a,(l,u)=>e.useFlexGap?{gap:bu(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${vne(u?i[u]:e.direction)}`]:bu(r,l)}}))}return n=xee(t.breakpoints,n),n};function bne(e={}){const{createStyledComponent:t=hne,useThemeProps:n=mne,componentName:r="MuiStack"}=e,o=()=>Ht({root:["root"]},l=>Vt(r,l),{}),i=t(yne);return A.forwardRef(function(l,u){const f=n(l),h=hP(f),{component:p="div",direction:m="column",spacing:g=0,divider:y,children:w,className:b,useFlexGap:O=!1}=h,C=Be(h,dne),k={direction:m,spacing:g,useFlexGap:O},S=o();return ue.jsx(i,q({as:p,ownerState:k,ref:u,className:wte(S.root,b)},C,{children:y?gne(w,y):w}))})}function wne(e,t){return q({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Fn={},T4={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(T4);var R4=T4.exports;const Sne=lo(nee),xne=lo(Wte);var I4=R4;Object.defineProperty(Fn,"__esModule",{value:!0});var Vi=Fn.alpha=N4;Fn.blend=Lne;Fn.colorChannel=void 0;var w_=Fn.darken=SP;Fn.decomposeColor=pi;Fn.emphasize=D4;var _ne=Fn.getContrastRatio=kne;Fn.getLuminance=uy;Fn.hexToRgb=M4;Fn.hslToRgb=A4;var S_=Fn.lighten=xP;Fn.private_safeAlpha=Tne;Fn.private_safeColorChannel=void 0;Fn.private_safeDarken=Rne;Fn.private_safeEmphasize=Mne;Fn.private_safeLighten=Ine;Fn.recomposeColor=Wf;Fn.rgbToHex=Ene;var k2=I4(Sne),One=I4(xne);function wP(e,t=0,n=1){return(0,One.default)(e,t,n)}function M4(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Cne(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function pi(e){if(e.type)return e;if(e.charAt(0)==="#")return pi(M4(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,k2.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,k2.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const L4=e=>{const t=pi(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Fn.colorChannel=L4;const Pne=(e,t)=>{try{return L4(e)}catch{return e}};Fn.private_safeColorChannel=Pne;function Wf(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Ene(e){if(e.indexOf("#")===0)return e;const{values:t}=pi(e);return`#${t.map((n,r)=>Cne(r===3?Math.round(255*n):n)).join("")}`}function A4(e){e=pi(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,f=(u+n/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Wf({type:s,values:l})}function uy(e){e=pi(e);let t=e.type==="hsl"||e.type==="hsla"?pi(A4(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function kne(e,t){const n=uy(e),r=uy(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function N4(e,t){return e=pi(e),t=wP(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Wf(e)}function Tne(e,t,n){try{return N4(e,t)}catch{return e}}function SP(e,t){if(e=pi(e),t=wP(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Wf(e)}function Rne(e,t,n){try{return SP(e,t)}catch{return e}}function xP(e,t){if(e=pi(e),t=wP(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Wf(e)}function Ine(e,t,n){try{return xP(e,t)}catch{return e}}function D4(e,t=.15){return uy(e)>.5?SP(e,t):xP(e,t)}function Mne(e,t,n){try{return D4(e,t)}catch{return e}}function Lne(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=pi(e),a=pi(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Wf({type:"rgb",values:s})}const ah={black:"#000",white:"#fff"},Ane={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ic={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ac={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Cd={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},sc={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},lc={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},uc={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Nne=["mode","contrastThreshold","tonalOffset"],T2={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ah.white,default:ah.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Y1={text:{primary:ah.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ah.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function R2(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=S_(e.main,o):t==="dark"&&(e.dark=w_(e.main,i)))}function Dne(e="light"){return e==="dark"?{main:sc[200],light:sc[50],dark:sc[400]}:{main:sc[700],light:sc[400],dark:sc[800]}}function $ne(e="light"){return e==="dark"?{main:ic[200],light:ic[50],dark:ic[400]}:{main:ic[500],light:ic[300],dark:ic[700]}}function Fne(e="light"){return e==="dark"?{main:ac[500],light:ac[300],dark:ac[700]}:{main:ac[700],light:ac[400],dark:ac[800]}}function Wne(e="light"){return e==="dark"?{main:lc[400],light:lc[300],dark:lc[700]}:{main:lc[700],light:lc[500],dark:lc[900]}}function Vne(e="light"){return e==="dark"?{main:uc[400],light:uc[300],dark:uc[700]}:{main:uc[800],light:uc[500],dark:uc[900]}}function zne(e="light"){return e==="dark"?{main:Cd[400],light:Cd[300],dark:Cd[700]}:{main:"#ed6c02",light:Cd[500],dark:Cd[900]}}function Bne(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Be(e,Nne),i=e.primary||Dne(t),a=e.secondary||$ne(t),s=e.error||Fne(t),l=e.info||Wne(t),u=e.success||Vne(t),f=e.warning||zne(t);function h(y){return _ne(y,Y1.text.primary)>=n?Y1.text.primary:T2.text.primary}const p=({color:y,name:w,mainShade:b=500,lightShade:O=300,darkShade:C=700})=>{if(y=q({},y),!y.main&&y[b]&&(y.main=y[b]),!y.hasOwnProperty("main"))throw new Error(yu(11,w?` (${w})`:"",b));if(typeof y.main!="string")throw new Error(yu(12,w?` (${w})`:"",JSON.stringify(y.main)));return R2(y,"light",O,r),R2(y,"dark",C,r),y.contrastText||(y.contrastText=h(y.main)),y},m={dark:Y1,light:T2};return zr(q({common:q({},ah),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Ane,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:r},m[t]),o)}const jne=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Une(e){return Math.round(e*1e5)/1e5}const I2={textTransform:"uppercase"},M2='"Roboto", "Helvetica", "Arial", sans-serif';function Hne(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=M2,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:h}=n,p=Be(n,jne),m=o/14,g=h||(b=>`${b/u*m}rem`),y=(b,O,C,k,S)=>q({fontFamily:r,fontWeight:b,fontSize:g(O),lineHeight:C},r===M2?{letterSpacing:`${Une(k/O)}em`}:{},S,f),w={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,I2),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,I2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return zr(q({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},w),p,{clone:!1})}const qne=.2,Kne=.14,Gne=.12;function cn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qne})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Kne})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Gne})`].join(",")}const Yne=["none",cn(0,2,1,-1,0,1,1,0,0,1,3,0),cn(0,3,1,-2,0,2,2,0,0,1,5,0),cn(0,3,3,-2,0,3,4,0,0,1,8,0),cn(0,2,4,-1,0,4,5,0,0,1,10,0),cn(0,3,5,-1,0,5,8,0,0,1,14,0),cn(0,3,5,-1,0,6,10,0,0,1,18,0),cn(0,4,5,-2,0,7,10,1,0,2,16,1),cn(0,5,5,-3,0,8,10,1,0,3,14,2),cn(0,5,6,-3,0,9,12,1,0,3,16,2),cn(0,6,6,-3,0,10,14,1,0,4,18,3),cn(0,6,7,-4,0,11,15,1,0,4,20,3),cn(0,7,8,-4,0,12,17,2,0,5,22,4),cn(0,7,8,-4,0,13,19,2,0,5,24,4),cn(0,7,9,-4,0,14,21,2,0,5,26,4),cn(0,8,9,-5,0,15,22,2,0,6,28,5),cn(0,8,10,-5,0,16,24,2,0,6,30,5),cn(0,8,11,-5,0,17,26,2,0,6,32,5),cn(0,9,11,-5,0,18,28,2,0,7,34,6),cn(0,9,12,-6,0,19,29,2,0,7,36,6),cn(0,10,13,-6,0,20,31,3,0,8,38,7),cn(0,10,13,-6,0,21,33,3,0,8,40,7),cn(0,10,14,-6,0,22,35,3,0,8,42,7),cn(0,11,14,-7,0,23,36,3,0,9,44,8),cn(0,11,15,-7,0,24,38,3,0,9,46,8)],Zne=["duration","easing","delay"],Xne={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Qne={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function L2(e){return`${Math.round(e)}ms`}function Jne(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ere(e){const t=q({},Xne,e.easing),n=q({},Qne,e.duration);return q({getAutoHeightDuration:Jne,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return Be(i,Zne),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:L2(a)} ${s} ${typeof l=="string"?l:L2(l)}`).join(",")}},e,{easing:t,duration:n})}const tre={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},nre=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function _P(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Be(e,nre);if(e.vars)throw new Error(yu(18));const s=Bne(r),l=kh(e);let u=zr(l,{mixins:wne(l.breakpoints,n),palette:s,shadows:Yne.slice(),typography:Hne(s,i),transitions:ere(o),zIndex:q({},tre)});return u=zr(u,a),u=t.reduce((f,h)=>zr(f,h),u),u.unstable_sxConfig=q({},Ph,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(h){return Eh({sx:h,theme:this})},u}const OP=_P();function CP(){const e=pP(OP);return e[ih]||e}var Rh={};const rre=lo(aK);var Z1={exports:{}},A2;function ore(){return A2||(A2=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.includes(i))continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Z1)),Z1.exports}const $4=lo(vee),ire=lo(yee),are=lo(Oee),sre=lo(Pte),lre=lo(fte),ure=lo(vte);var Vf=R4;Object.defineProperty(Rh,"__esModule",{value:!0});var cre=Rh.default=_re;Rh.shouldForwardProp=cv;Rh.systemDefaultTheme=void 0;var Xo=Vf(rre),x_=Vf(ore()),N2=vre($4),fre=ire;Vf(are);Vf(sre);var dre=Vf(lre),pre=Vf(ure);const hre=["ownerState"],mre=["variants"],gre=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function F4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(F4=function(r){return r?n:t})(e)}function vre(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=F4(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function yre(e){return Object.keys(e).length===0}function bre(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wre=Rh.systemDefaultTheme=(0,dre.default)(),Sre=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dg({defaultTheme:e,theme:t,themeId:n}){return yre(t)?e:t[n]||t}function xre(e){return e?(t,n)=>n[e]:null}function fv(e,t){let{ownerState:n}=t,r=(0,x_.default)(t,hre);const o=typeof e=="function"?e((0,Xo.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>fv(i,(0,Xo.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let s=(0,x_.default)(o,mre);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Xo.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(f=>{(n==null?void 0:n[f])!==l.props[f]&&r[f]!==l.props[f]&&(u=!1)}),u&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style((0,Xo.default)({ownerState:n},r,n)):l.style))}),s}return o}function _re(e={}){const{themeId:t,defaultTheme:n=wre,rootShouldForwardProp:r=cv,slotShouldForwardProp:o=cv}=e,i=a=>(0,pre.default)((0,Xo.default)({},a,{theme:dg((0,Xo.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{(0,N2.internal_processStyles)(a,S=>S.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:f,skipSx:h,overridesResolver:p=xre(Sre(u))}=s,m=(0,x_.default)(s,gre),g=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,y=h||!1;let w,b=cv;u==="Root"||u==="root"?b=r:u?b=o:bre(a)&&(b=void 0);const O=(0,N2.default)(a,(0,Xo.default)({shouldForwardProp:b,label:w},m)),C=S=>typeof S=="function"&&S.__emotion_real!==S||(0,fre.isPlainObject)(S)?T=>fv(S,(0,Xo.default)({},T,{theme:dg({theme:T.theme,defaultTheme:n,themeId:t})})):S,k=(S,...T)=>{let P=C(S);const v=T?T.map(C):[];l&&p&&v.push(R=>{const M=dg((0,Xo.default)({},R,{defaultTheme:n,themeId:t}));if(!M.components||!M.components[l]||!M.components[l].styleOverrides)return null;const L=M.components[l].styleOverrides,I={};return Object.entries(L).forEach(([D,$])=>{I[D]=fv($,(0,Xo.default)({},R,{theme:M}))}),p(R,I)}),l&&!g&&v.push(R=>{var M;const L=dg((0,Xo.default)({},R,{defaultTheme:n,themeId:t})),I=L==null||(M=L.components)==null||(M=M[l])==null?void 0:M.variants;return fv({variants:I},(0,Xo.default)({},R,{theme:L}))}),y||v.push(i);const E=v.length-T.length;if(Array.isArray(S)&&E>0){const R=new Array(E).fill("");P=[...S,...R],P.raw=[...S.raw,...R]}const _=O(P,...v);return a.muiName&&(_.muiName=a.muiName),_};return O.withConfig&&(k.withConfig=O.withConfig),k}}function nb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const uo=e=>nb(e)&&e!=="classes",Ue=cre({themeId:ih,defaultTheme:OP,rootShouldForwardProp:uo}),Ore=["theme"];function __(e){let{theme:t}=e,n=Be(e,Ore);const r=t[ih];return ue.jsx(cne,q({},n,{themeId:r?ih:void 0,theme:r||t}))}const D2=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},hn=Le.forwardRef(({children:e,...t},n)=>z("button",{type:"button",ref:n,css:{border:"none",padding:0,background:"none",color:"inherit",":not([disabled])":{cursor:"pointer"}},...t,children:e})),$2=Le.forwardRef(({kind:e="normal",extraCss:t,children:n,...r},o)=>{const i=bl(),{isHighContrast:a}=va();return z("button",{ref:o,type:"button",css:Cre(i,e,a,t),...r,children:n})}),Cre=(e,t,n,r={})=>{const o=yf(t,{normal:()=>({border:`1px solid ${e.colors.neutral40}`,color:e.colors.neutral90,"&:hover, &:focus-visible":{border:`1px solid ${e.colors.neutral60}`,backgroundColor:e.colors.neutral15}}),danger:()=>({border:`1px solid ${e.colors.danger4}`,color:e.colors.danger4,fontWeight:n?"bold":"inherit","&:hover, &:focus-visible":{border:`1px solid ${e.colors.danger5}`,backgroundColor:e.colors.danger4,color:e.colors.danger4BwInverted}}),"call-to-action":()=>({border:`1px solid ${e.colors.happy8}`,color:e.colors.happy7BwInverted,backgroundColor:e.colors.happy7,"&:hover, &:focus-visible":{border:`1px solid ${e.colors.happy9}`,backgroundColor:e.colors.happy8,color:e.colors.happy8BwInverted}})});return{borderRadius:8,display:"inline-flex",alignItems:"center",padding:"7px 14px",gap:12,whiteSpace:"nowrap",backgroundColor:e.colors.neutral10,transition:"background-color 0.15s, border-color 0.15s",textDecoration:"none","& > svg":{fontSize:20},"&:disabled":{border:`1px solid ${e.colors.neutral25}`,color:e.colors.neutral40},"&:not([disabled])":{cursor:"pointer",...o,...cb(e,{offset:-1})},...r}},Pre=({kind:e,iconPos:t="left",children:n,...r})=>{const o=bl();return pe("div",{css:{display:"inline-flex",flexDirection:t==="left"?"row":"column",borderRadius:4,padding:"8px 16px",gap:16,alignItems:"center","& > svg":{fontSize:24,minWidth:24},...yf(e,{error:()=>({backgroundColor:o.colors.danger0,border:`1.5px solid ${o.colors.danger0}`,color:o.colors.danger0BwInverted}),info:()=>({backgroundColor:o.colors.neutral10})})},...r,children:[yf(e,{error:()=>z(QY,{}),info:()=>z(lZ,{css:{color:o.colors.neutral60}})}),z("div",{children:n})]})};class W4 extends Error{constructor(t){super(`${t} (this is a bug in this application)`),this.name="Bug"}}const Qc=e=>{throw new W4(e)},Ere=e=>{const t="reached unreachable code";throw new W4(t)},kre=["light","dark","light-high-contrast","dark-high-contrast"],F2="colorScheme",V4=Le.createContext(null),va=()=>A.useContext(V4)??Qc("missing color scheme context provider"),Tre=({allowedSchemes:e=kre,children:t})=>{if(e.length<2)return Qc("`allowedSchemes` for ColorSchemeProvider need to have at least 2 schemes");if(!e.includes("light")&&!e.includes("dark"))return Qc("`allowedSchemes` must contain either 'light' or 'dark'");const n=h=>!!h&&e.includes(h),r=document.documentElement.dataset.colorScheme,o=n(r)?r:"light",[i,a]=A.useState(o),s=window.localStorage.getItem(F2),[l,u]=A.useState(!n(s)),f={scheme:i,isAuto:l,isHighContrast:i.includes("high-contrast"),update:h=>{if(h!=="auto"&&!n(h))return Qc("Passed forbidden color scheme to `update`");window.localStorage.setItem(F2,h),u(h==="auto");const p=h!=="auto"?h:(()=>{const m=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",g=window.matchMedia("(prefers-contrast: more)").matches?"-high-contrast":"",y=`${m}${g}`;if(e.includes(y))return y;const b=`${m==="light"?"dark":"light"}${g}`;return e.includes(b)?b:m})();a(p),document.documentElement.dataset.colorScheme=p}};return z(V4.Provider,{value:f,children:t})},PP={colors:{neutral00:"var(--color-neutral00)",neutral05:"var(--color-neutral05)",neutral10:"var(--color-neutral10)",neutral15:"var(--color-neutral15)",neutral20:"var(--color-neutral20)",neutral25:"var(--color-neutral25)",neutral30:"var(--color-neutral30)",neutral40:"var(--color-neutral40)",neutral50:"var(--color-neutral50)",neutral60:"var(--color-neutral60)",neutral70:"var(--color-neutral70)",neutral80:"var(--color-neutral80)",neutral90:"var(--color-neutral90)",danger0:"var(--color-danger0)",danger0BwInverted:"var(--color-danger0-bw-inverted)",danger1:"var(--color-danger1)",danger1BwInverted:"var(--color-danger1-bw-inverted)",danger2:"var(--color-danger2)",danger2BwInverted:"var(--color-danger2-bw-inverted)",danger4:"var(--color-danger4)",danger4BwInverted:"var(--color-danger4-bw-inverted)",danger5:"var(--color-danger5)",danger5BwInverted:"var(--color-danger5-bw-inverted)",happy4:"var(--color-accent4)",happy4BwInverted:"var(--color-accent4-bw-inverted)",happy5:"var(--color-accent5)",happy5BwInverted:"var(--color-accent5-bw-inverted)",happy6:"var(--color-accent6)",happy6BwInverted:"var(--color-accent6-bw-inverted)",happy7:"var(--color-accent7)",happy7BwInverted:"var(--color-accent7-bw-inverted)",happy8:"var(--color-accent8)",happy8BwInverted:"var(--color-accent8-bw-inverted)",happy9:"var(--color-accent9)",happy9BwInverted:"var(--color-accent9-bw-inverted)",accent9:"var(--color-accent9)",accent9BwInverted:"var(--color-accent9-bw-inverted)",accent8:"var(--color-accent8)",accent8BwInverted:"var(--color-accent8-bw-inverted)",accent7:"var(--color-accent7)",accent7BwInverted:"var(--color-accent7-bw-inverted)",accent6:"var(--color-accent6)",accent6BwInverted:"var(--color-accent6-bw-inverted)",accent5:"var(--color-accent5)",accent5BwInverted:"var(--color-accent5-bw-inverted)",accent4:"var(--color-accent4)",accent4BwInverted:"var(--color-accent4-bw-inverted)",focus:"var(--color-accent8)"},breakpoints:{small:450,medium:650,large:900}},Rre=Le.createContext(PP),bl=()=>A.useContext(Rre);function yf(e,t,n){return t[e]()}const bf=e=>`@media (max-width: ${e}px)`,X1=e=>e.current??Qc("ref unexpectedly unbound"),z4=A.forwardRef(({title:e,buttonContent:t,onSubmit:n,text:r,children:o},i)=>{const a=e??r.areYouSure,[s,l]=A.useState(!1),[u,f]=A.useState(),h=A.useRef(null);return A.useImperativeHandle(i,()=>({open:()=>{l(!1),f(void 0),X1(h).open()},done:()=>{var m,g;(g=(m=X1(h)).close)==null||g.call(m)},reportError:m=>{l(!1),f(m)}})),pe(S3,{title:a,closable:!s,ref:h,text:r,children:[o,pe("form",{onSubmit:m=>{m.preventDefault(),m.stopPropagation(),l(!0),f(void 0),n==null||n()},css:{marginTop:32},children:[pe("div",{css:{display:"flex",gap:12,justifyContent:"center",flexWrap:"wrap"},children:[z($2,{disabled:s,onClick:()=>{var m,g;return(g=(m=X1(h)).close)==null?void 0:g.call(m)},children:r.cancel}),z($2,{disabled:s,type:"submit",kind:"danger",css:{whiteSpace:"normal"},children:t})]}),s&&z("div",{css:{marginTop:16},children:z(NP,{size:20})})]}),Mre(u)]})}),Ire=({children:e})=>z("div",{css:{marginTop:8},children:z(Pre,{kind:"error",children:e})}),Mre=e=>e==null?null:z(Ire,{children:e}),wf=Math.min,au=Math.max,cy=Math.round,pg=Math.floor,dl=e=>({x:e,y:e}),Lre={left:"right",right:"left",bottom:"top",top:"bottom"},Are={start:"end",end:"start"};function O_(e,t,n){return au(e,wf(t,n))}function Ih(e,t){return typeof e=="function"?e(t):e}function xu(e){return e.split("-")[0]}function Mh(e){return e.split("-")[1]}function B4(e){return e==="x"?"y":"x"}function EP(e){return e==="y"?"height":"width"}function rb(e){return["top","bottom"].includes(xu(e))?"y":"x"}function kP(e){return B4(rb(e))}function Nre(e,t,n){n===void 0&&(n=!1);const r=Mh(e),o=kP(e),i=EP(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=fy(a)),[a,fy(a)]}function Dre(e){const t=fy(e);return[C_(e),t,C_(t)]}function C_(e){return e.replace(/start|end/g,t=>Are[t])}function $re(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function Fre(e,t,n,r){const o=Mh(e);let i=$re(xu(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(C_)))),i}function fy(e){return e.replace(/left|right|bottom|top/g,t=>Lre[t])}function Wre(e){return{top:0,right:0,bottom:0,left:0,...e}}function j4(e){return typeof e!="number"?Wre(e):{top:e,right:e,bottom:e,left:e}}function dy(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function W2(e,t,n){let{reference:r,floating:o}=e;const i=rb(t),a=kP(t),s=EP(a),l=xu(t),u=i==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let m;switch(l){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-o.width,y:h};break;default:m={x:r.x,y:r.y}}switch(Mh(t)){case"start":m[a]-=p*(n&&u?-1:1);break;case"end":m[a]+=p*(n&&u?-1:1);break}return m}const Vre=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=W2(u,r,l),p=r,m={},g=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s}=t,{element:l,padding:u=0}=Ih(e,t)||{};if(l==null)return{};const f=j4(u),h={x:n,y:r},p=kP(o),m=EP(p),g=await a.getDimensions(l),y=p==="y",w=y?"top":"left",b=y?"bottom":"right",O=y?"clientHeight":"clientWidth",C=i.reference[m]+i.reference[p]-h[p]-i.floating[m],k=h[p]-i.reference[p],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let T=S?S[O]:0;(!T||!await(a.isElement==null?void 0:a.isElement(S)))&&(T=s.floating[O]||i.floating[m]);const P=C/2-k/2,v=T/2-g[m]/2-1,E=wf(f[w],v),_=wf(f[b],v),R=E,M=T-g[m]-_,L=T/2-g[m]/2+P,I=O_(R,L,M),$=Mh(o)!=null&&L!=I&&i.reference[m]/2-(LR<=0)){var v,E;const R=(((v=o.flip)==null?void 0:v.index)||0)+1,M=k[R];if(M)return{data:{index:R,overflows:P},reset:{placement:M}};let L=(E=P.filter(I=>I.overflows[0]<=0).sort((I,D)=>I.overflows[1]-D.overflows[1])[0])==null?void 0:E.placement;if(!L)switch(p){case"bestFit":{var _;const I=(_=P.map(D=>[D.placement,D.overflows.filter($=>$>0).reduce(($,F)=>$+F,0)]).sort((D,$)=>D[1]-$[1])[0])==null?void 0:_[0];I&&(L=I);break}case"initialPlacement":L=a;break}if(r!==L)return{reset:{placement:L}}}return{}}}};async function Bre(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=xu(n),s=Mh(n),l=rb(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&l?-1:1,h=Ih(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&typeof g=="number"&&(m=s==="end"?g*-1:g),l?{x:m*f,y:p*u}:{x:p*u,y:m*f}}const jre=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await Bre(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Ure=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:w=>{let{x:b,y:O}=w;return{x:b,y:O}}},...l}=Ih(e,t),u={x:n,y:r},f=await U4(t,l),h=rb(xu(o)),p=B4(h);let m=u[p],g=u[h];if(i){const w=p==="y"?"top":"left",b=p==="y"?"bottom":"right",O=m+f[w],C=m-f[b];m=O_(O,m,C)}if(a){const w=h==="y"?"top":"left",b=h==="y"?"bottom":"right",O=g+f[w],C=g-f[b];g=O_(O,g,C)}const y=s.fn({...t,[p]:m,[h]:g});return{...y,data:{x:y.x-n,y:y.y-r}}}}};function pl(e){return H4(e)?(e.nodeName||"").toLowerCase():"#document"}function ko(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function as(e){var t;return(t=(H4(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function H4(e){return e instanceof Node||e instanceof ko(e).Node}function ts(e){return e instanceof Element||e instanceof ko(e).Element}function ya(e){return e instanceof HTMLElement||e instanceof ko(e).HTMLElement}function z2(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ko(e).ShadowRoot}function Lh(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=hi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Hre(e){return["table","td","th"].includes(pl(e))}function TP(e){const t=RP(),n=hi(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function qre(e){let t=Sf(e);for(;ya(t)&&!ob(t);){if(TP(t))return t;t=Sf(t)}return null}function RP(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ob(e){return["html","body","#document"].includes(pl(e))}function hi(e){return ko(e).getComputedStyle(e)}function ib(e){return ts(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Sf(e){if(pl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||z2(e)&&e.host||as(e);return z2(t)?t.host:t}function q4(e){const t=Sf(e);return ob(t)?e.ownerDocument?e.ownerDocument.body:e.body:ya(t)&&Lh(t)?t:q4(t)}function su(e,t){var n;t===void 0&&(t=[]);const r=q4(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=ko(r);return o?t.concat(i,i.visualViewport||[],Lh(r)?r:[]):t.concat(r,su(r))}function K4(e){const t=hi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ya(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=cy(n)!==i||cy(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function IP(e){return ts(e)?e:e.contextElement}function Jc(e){const t=IP(e);if(!ya(t))return dl(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=K4(t);let a=(i?cy(n.width):n.width)/r,s=(i?cy(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Kre=dl(0);function G4(e){const t=ko(e);return!RP()||!t.visualViewport?Kre:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gre(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ko(e)?!1:t}function _u(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=IP(e);let a=dl(1);t&&(r?ts(r)&&(a=Jc(r)):a=Jc(e));const s=Gre(i,n,r)?G4(i):dl(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,f=o.width/a.x,h=o.height/a.y;if(i){const p=ko(i),m=r&&ts(r)?ko(r):r;let g=p.frameElement;for(;g&&r&&m!==p;){const y=Jc(g),w=g.getBoundingClientRect(),b=hi(g),O=w.left+(g.clientLeft+parseFloat(b.paddingLeft))*y.x,C=w.top+(g.clientTop+parseFloat(b.paddingTop))*y.y;l*=y.x,u*=y.y,f*=y.x,h*=y.y,l+=O,u+=C,g=ko(g).frameElement}}return dy({width:f,height:h,x:l,y:u})}function Yre(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=ya(n),i=as(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=dl(1);const l=dl(0);if((o||!o&&r!=="fixed")&&((pl(n)!=="body"||Lh(i))&&(a=ib(n)),ya(n))){const u=_u(n);s=Jc(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}}function Zre(e){return Array.from(e.getClientRects())}function Y4(e){return _u(as(e)).left+ib(e).scrollLeft}function Xre(e){const t=as(e),n=ib(e),r=e.ownerDocument.body,o=au(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=au(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Y4(e);const s=-n.scrollTop;return hi(r).direction==="rtl"&&(a+=au(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function Qre(e,t){const n=ko(e),r=as(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const u=RP();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function Jre(e,t){const n=_u(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ya(e)?Jc(e):dl(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:a,height:s,x:l,y:u}}function B2(e,t,n){let r;if(t==="viewport")r=Qre(e,n);else if(t==="document")r=Xre(as(e));else if(ts(t))r=Jre(t,n);else{const o=G4(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return dy(r)}function Z4(e,t){const n=Sf(e);return n===t||!ts(n)||ob(n)?!1:hi(n).position==="fixed"||Z4(n,t)}function eoe(e,t){const n=t.get(e);if(n)return n;let r=su(e).filter(s=>ts(s)&&pl(s)!=="body"),o=null;const i=hi(e).position==="fixed";let a=i?Sf(e):e;for(;ts(a)&&!ob(a);){const s=hi(a),l=TP(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Lh(a)&&!l&&Z4(e,a))?r=r.filter(f=>f!==a):o=s,a=Sf(a)}return t.set(e,r),r}function toe(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?eoe(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,f)=>{const h=B2(t,f,o);return u.top=au(h.top,u.top),u.right=wf(h.right,u.right),u.bottom=wf(h.bottom,u.bottom),u.left=au(h.left,u.left),u},B2(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function noe(e){return K4(e)}function roe(e,t,n){const r=ya(t),o=as(t),i=n==="fixed",a=_u(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=dl(0);if(r||!r&&!i)if((pl(t)!=="body"||Lh(o))&&(s=ib(t)),r){const u=_u(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=Y4(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function j2(e,t){return!ya(e)||hi(e).position==="fixed"?null:t?t(e):e.offsetParent}function X4(e,t){const n=ko(e);if(!ya(e))return n;let r=j2(e,t);for(;r&&Hre(r)&&hi(r).position==="static";)r=j2(r,t);return r&&(pl(r)==="html"||pl(r)==="body"&&hi(r).position==="static"&&!TP(r))?n:r||qre(e)||n}const ooe=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||X4,i=this.getDimensions;return{reference:roe(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function ioe(e){return hi(e).direction==="rtl"}const aoe={convertOffsetParentRelativeRectToViewportRelativeRect:Yre,getDocumentElement:as,getClippingRect:toe,getOffsetParent:X4,getElementRects:ooe,getClientRects:Zre,getDimensions:noe,getScale:Jc,isElement:ts,isRTL:ioe};function soe(e,t){let n=null,r;const o=as(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:u,top:f,width:h,height:p}=e.getBoundingClientRect();if(s||t(),!h||!p)return;const m=pg(f),g=pg(o.clientWidth-(u+h)),y=pg(o.clientHeight-(f+p)),w=pg(u),O={rootMargin:-m+"px "+-g+"px "+-y+"px "+-w+"px",threshold:au(0,wf(1,l))||1};let C=!0;function k(S){const T=S[0].intersectionRatio;if(T!==l){if(!C)return a();T?a(!1,T):r=setTimeout(()=>{a(!1,1e-7)},100)}C=!1}try{n=new IntersectionObserver(k,{...O,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,O)}n.observe(e)}return a(!0),i}function Q4(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=IP(e),f=o||i?[...u?su(u):[],...su(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const h=u&&s?soe(u,n):null;let p=-1,m=null;a&&(m=new ResizeObserver(b=>{let[O]=b;O&&O.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{m&&m.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let g,y=l?_u(e):null;l&&w();function w(){const b=_u(e);y&&(b.x!==y.x||b.y!==y.y||b.width!==y.width||b.height!==y.height)&&n(),y=b,g=requestAnimationFrame(w)}return n(),()=>{f.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),h&&h(),m&&m.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const loe=(e,t,n)=>{const r=new Map,o={platform:aoe,...n},i={...o.platform,_c:r};return Vre(e,t,{...o,platform:i})},uoe=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?V2({element:r.current,padding:o}).fn(n):{}:r?V2({element:r,padding:o}).fn(n):{}}}};var dv=typeof document<"u"?A.useLayoutEffect:A.useEffect;function py(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!py(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!py(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function J4(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function U2(e,t){const n=J4(e);return Math.round(t*n)/n}function H2(e){const t=A.useRef(e);return dv(()=>{t.current=e}),t}function coe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[f,h]=A.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=A.useState(r);py(p,r)||m(r);const[g,y]=A.useState(null),[w,b]=A.useState(null),O=A.useCallback(F=>{F!==T.current&&(T.current=F,y(F))},[]),C=A.useCallback(F=>{F!==P.current&&(P.current=F,b(F))},[]),k=i||g,S=a||w,T=A.useRef(null),P=A.useRef(null),v=A.useRef(f),E=l!=null,_=H2(l),R=H2(o),M=A.useCallback(()=>{if(!T.current||!P.current)return;const F={placement:t,strategy:n,middleware:p};R.current&&(F.platform=R.current),loe(T.current,P.current,F).then(W=>{const V={...W,isPositioned:!0};L.current&&!py(v.current,V)&&(v.current=V,Ru.flushSync(()=>{h(V)}))})},[p,t,n,R]);dv(()=>{u===!1&&v.current.isPositioned&&(v.current.isPositioned=!1,h(F=>({...F,isPositioned:!1})))},[u]);const L=A.useRef(!1);dv(()=>(L.current=!0,()=>{L.current=!1}),[]),dv(()=>{if(k&&(T.current=k),S&&(P.current=S),k&&S){if(_.current)return _.current(k,S,M);M()}},[k,S,M,_,E]);const I=A.useMemo(()=>({reference:T,floating:P,setReference:O,setFloating:C}),[O,C]),D=A.useMemo(()=>({reference:k,floating:S}),[k,S]),$=A.useMemo(()=>{const F={position:n,left:0,top:0};if(!D.floating)return F;const W=U2(D.floating,f.x),V=U2(D.floating,f.y);return s?{...F,transform:"translate("+W+"px, "+V+"px)",...J4(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:V}},[n,s,D.floating,f.x,f.y]);return A.useMemo(()=>({...f,update:M,refs:I,elements:D,floatingStyles:$}),[f,M,I,D,$])}/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var t3=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],my=t3.join(","),n3=typeof Element>"u",Cu=n3?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,gy=!n3&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},vy=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",a=i||n&&t&&e(t.parentNode);return a},doe=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},r3=function(t,n,r){if(vy(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(my));return n&&Cu.call(t,my)&&o.unshift(t),o=o.filter(r),o},o3=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!vy(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),l=s.length?s:a.children,u=e(l,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:a,candidates:u})}else{var f=Cu.call(a,my);f&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var h=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),p=!vy(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(h&&p){var m=e(h===!0?a.children:h.children,!0,r);r.flatten?o.push.apply(o,m):o.push({scopeParent:a,candidates:m})}else i.unshift.apply(i,a.children)}}return o},i3=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Bs=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||doe(t))&&!i3(t)?0:t.tabIndex},poe=function(t,n){var r=Bs(t);return r<0&&n&&!i3(t)?0:r},hoe=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},a3=function(t){return t.tagName==="INPUT"},moe=function(t){return a3(t)&&t.type==="hidden"},goe=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},voe=function(t,n){for(var r=0;rsummary:first-of-type"),a=i?t.parentElement:t;if(Cu.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var s=t;t;){var l=t.parentElement,u=gy(t);if(l&&!l.shadowRoot&&o(l)===!0)return HI(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=s}if(Soe(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return HI(t);return!1},_oe=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},Coe=function e(t){var n=[],r=[];return t.forEach(function(o,i){var a=!!o.scopeParent,s=a?o.scopeParent:o,l=poe(s,a),u=a?e(o.candidates):s;l===0?a?n.push.apply(n,u):n.push(s):r.push({documentOrder:i,tabIndex:l,item:o,isScope:a,content:u})}),r.sort(hoe).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},s3=function(t,n){n=n||{};var r;return n.getShadowRoot?r=o3([t],n.includeContainer,{filter:P_.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Ooe}):r=r3(t,n.includeContainer,P_.bind(null,n)),Coe(r)},l3=function(t,n){n=n||{};var r;return n.getShadowRoot?r=o3([t],n.includeContainer,{filter:yy.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=r3(t,n.includeContainer,yy.bind(null,n)),r},Kl=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Cu.call(t,my)===!1?!1:P_(n,t)},Poe=t3.concat("iframe").join(","),pv=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Cu.call(t,Poe)===!1?!1:yy(n,t)};const Eoe=Object.freeze(Object.defineProperty({__proto__:null,focusable:l3,getTabIndex:Bs,isFocusable:pv,isTabbable:Kl,tabbable:s3},Symbol.toStringTag,{value:"Module"}));var Di=typeof document<"u"?A.useLayoutEffect:A.useEffect;let J1=!1,koe=0;const qI=()=>"floating-ui-"+koe++;function Toe(){const[e,t]=A.useState(()=>J1?qI():void 0);return Di(()=>{e==null&&t(qI())},[]),A.useEffect(()=>{J1||(J1=!0)},[]),e}const Roe=fu.useId,u3=Roe||Toe;function Ioe(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Moe=A.createContext(null),Loe=A.createContext(null),MP=()=>{var e;return((e=A.useContext(Moe))==null?void 0:e.id)||null},sb=()=>A.useContext(Loe);function Ua(e){return(e==null?void 0:e.ownerDocument)||document}function c3(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Aoe(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function lb(e){return Ua(e).defaultView||window}function zi(e){return e?e instanceof Element||e instanceof lb(e).Element:!1}function Ah(e){return e?e instanceof HTMLElement||e instanceof lb(e).HTMLElement:!1}function Noe(e){if(typeof ShadowRoot>"u")return!1;const t=lb(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function f3(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(c3())||t.test(Aoe()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function d3(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function Doe(){return/apple/i.test(navigator.vendor)}function $oe(){return c3().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function by(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Foe(e){return"nativeEvent"in e}function uu(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Noe(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function p3(e){return"data-floating-ui-"+e}function wp(e){const t=A.useRef(e);return Di(()=>{t.current=e}),t}const KI=p3("safe-polygon");function eS(e,t,n){return n&&!by(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Woe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:{domReference:a,floating:s},refs:l}=e,{enabled:u=!0,delay:f=0,handleClose:h=null,mouseOnly:p=!1,restMs:m=0,move:g=!0}=t,y=sb(),w=MP(),b=wp(h),O=wp(f),C=A.useRef(),k=A.useRef(),S=A.useRef(),T=A.useRef(),P=A.useRef(!0),v=A.useRef(!1),E=A.useRef(()=>{}),_=A.useCallback(()=>{var I;const D=(I=o.current.openEvent)==null?void 0:I.type;return(D==null?void 0:D.includes("mouse"))&&D!=="mousedown"},[o]);A.useEffect(()=>{if(!u)return;function I(){clearTimeout(k.current),clearTimeout(T.current),P.current=!0}return i.on("dismiss",I),()=>{i.off("dismiss",I)}},[u,i]),A.useEffect(()=>{if(!u||!b.current||!n)return;function I($){_()&&r(!1,$)}const D=Ua(s).documentElement;return D.addEventListener("mouseleave",I),()=>{D.removeEventListener("mouseleave",I)}},[s,n,r,u,b,o,_]);const R=A.useCallback(function(I,D){D===void 0&&(D=!0);const $=eS(O.current,"close",C.current);$&&!S.current?(clearTimeout(k.current),k.current=setTimeout(()=>r(!1,I),$)):D&&(clearTimeout(k.current),r(!1,I))},[O,r]),M=A.useCallback(()=>{E.current(),S.current=void 0},[]),L=A.useCallback(()=>{if(v.current){const I=Ua(l.floating.current).body;I.style.pointerEvents="",I.removeAttribute(KI),v.current=!1}},[l]);return A.useEffect(()=>{if(!u)return;function I(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function D(W){if(clearTimeout(k.current),P.current=!1,p&&!by(C.current)||m>0&&eS(O.current,"open")===0)return;const V=eS(O.current,"open",C.current);V?k.current=setTimeout(()=>{r(!0,W)},V):r(!0,W)}function $(W){if(I())return;E.current();const V=Ua(s);if(clearTimeout(T.current),b.current){n||clearTimeout(k.current),S.current=b.current({...e,tree:y,x:W.clientX,y:W.clientY,onClose(){L(),M(),R(W)}});const K=S.current;V.addEventListener("mousemove",K),E.current=()=>{V.removeEventListener("mousemove",K)};return}(C.current==="touch"?!uu(s,W.relatedTarget):!0)&&R(W)}function F(W){I()||b.current==null||b.current({...e,tree:y,x:W.clientX,y:W.clientY,onClose(){L(),M(),R(W)}})(W)}if(zi(a)){const W=a;return n&&W.addEventListener("mouseleave",F),s==null||s.addEventListener("mouseleave",F),g&&W.addEventListener("mousemove",D,{once:!0}),W.addEventListener("mouseenter",D),W.addEventListener("mouseleave",$),()=>{n&&W.removeEventListener("mouseleave",F),s==null||s.removeEventListener("mouseleave",F),g&&W.removeEventListener("mousemove",D),W.removeEventListener("mouseenter",D),W.removeEventListener("mouseleave",$)}}},[a,s,u,e,p,m,g,R,M,L,r,n,y,O,b,o]),Di(()=>{var I;if(u&&n&&(I=b.current)!=null&&I.__options.blockPointerEvents&&_()){const F=Ua(s).body;if(F.setAttribute(KI,""),F.style.pointerEvents="none",v.current=!0,zi(a)&&s){var D,$;const W=a,V=y==null||(D=y.nodesRef.current.find(j=>j.id===w))==null||($=D.context)==null?void 0:$.elements.floating;return V&&(V.style.pointerEvents=""),W.style.pointerEvents="auto",s.style.pointerEvents="auto",()=>{W.style.pointerEvents="",s.style.pointerEvents=""}}}},[u,n,w,s,a,y,b,o,_]),Di(()=>{n||(C.current=void 0,M(),L())},[n,M,L]),A.useEffect(()=>()=>{M(),clearTimeout(k.current),clearTimeout(T.current),L()},[u,M,L]),A.useMemo(()=>{if(!u)return{};function I(D){C.current=D.pointerType}return{reference:{onPointerDown:I,onPointerEnter:I,onMouseMove(D){n||m===0||(clearTimeout(T.current),T.current=setTimeout(()=>{P.current||r(!0,D.nativeEvent)},m))}},floating:{onMouseEnter(){clearTimeout(k.current)},onMouseLeave(D){i.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),R(D.nativeEvent,!1)}}}},[i,u,m,n,r,R])}function E_(e){let t=e.activeElement;for(;((n=t)==null||(r=n.shadowRoot)==null?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}let GI=0;function YI(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(GI);const i=()=>e==null?void 0:e.focus({preventScroll:n});o?i():GI=requestAnimationFrame(i)}function hv(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(a=>{var s;return o.parentId===a.id&&((s=o.context)==null?void 0:s.open)})}),n=n.concat(r);return n}function h3(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Voe="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function zoe(e){return Ah(e)&&e.matches(Voe)}function na(e){e.preventDefault(),e.stopPropagation()}function ZI(e){return Ah(e.target)&&e.target.tagName==="BUTTON"}function XI(e){return zoe(e)}function Boe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:f=!0}=t,h=A.useRef(),p=A.useRef(!1);return A.useMemo(()=>a?{reference:{onPointerDown(m){h.current=m.pointerType},onMouseDown(m){m.button===0&&(by(h.current,!0)&&u||s!=="click"&&(n&&l&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?r(!1,m.nativeEvent):(m.preventDefault(),r(!0,m.nativeEvent))))},onClick(m){if(s==="mousedown"&&h.current){h.current=void 0;return}by(h.current,!0)&&u||(n&&l&&(!o.current.openEvent||o.current.openEvent.type==="click")?r(!1,m.nativeEvent):r(!0,m.nativeEvent))},onKeyDown(m){h.current=void 0,!(m.defaultPrevented||!f||ZI(m))&&(m.key===" "&&!XI(i)&&(m.preventDefault(),p.current=!0),m.key==="Enter"&&r(!(n&&l),m.nativeEvent))},onKeyUp(m){m.defaultPrevented||!f||ZI(m)||XI(i)||m.key===" "&&p.current&&(p.current=!1,r(!(n&&l),m.nativeEvent))}}}:{},[a,o,s,u,f,i,l,n,r])}const joe=fu.useInsertionEffect,Uoe=joe||(e=>e());function ef(e){const t=A.useRef(()=>{});return Uoe(()=>{t.current=e}),A.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o{var t,n;return{escapeKeyBubbles:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePressBubbles:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function Goe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,nodeId:i,elements:{reference:a,domReference:s,floating:l},dataRef:u}=e,{enabled:f=!0,escapeKey:h=!0,outsidePress:p=!0,outsidePressEvent:m="pointerdown",referencePress:g=!1,referencePressEvent:y="pointerdown",ancestorScroll:w=!1,bubbles:b}=t,O=sb(),C=MP()!=null,k=ef(typeof p=="function"?p:()=>!1),S=typeof p=="function"?k:p,T=A.useRef(!1),{escapeKeyBubbles:P,outsidePressBubbles:v}=Koe(b),E=ef(R=>{if(!n||!f||!h||R.key!=="Escape")return;const M=O?hv(O.nodesRef.current,i):[];if(!P&&(R.stopPropagation(),M.length>0)){let L=!0;if(M.forEach(I=>{var D;if((D=I.context)!=null&&D.open&&!I.context.dataRef.current.__escapeKeyBubbles){L=!1;return}}),!L)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1,Foe(R)?R.nativeEvent:R)}),_=ef(R=>{const M=T.current;if(T.current=!1,M||typeof S=="function"&&!S(R))return;const L=h3(R);if(Ah(L)&&l){const $=L.clientWidth>0&&L.scrollWidth>L.clientWidth,F=L.clientHeight>0&&L.scrollHeight>L.clientHeight;let W=F&&R.offsetX>L.clientWidth;if(F&&lb(l).getComputedStyle(L).direction==="rtl"&&(W=R.offsetX<=L.offsetWidth-L.clientWidth),W||$&&R.offsetY>L.clientHeight)return}const I=O&&hv(O.nodesRef.current,i).some($=>{var F;return mv(R,(F=$.context)==null?void 0:F.elements.floating)});if(mv(R,l)||mv(R,s)||I)return;const D=O?hv(O.nodesRef.current,i):[];if(D.length>0){let $=!0;if(D.forEach(F=>{var W;if((W=F.context)!=null&&W.open&&!F.context.dataRef.current.__outsidePressBubbles){$=!1;return}}),!$)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:C?{preventScroll:!0}:f3(R)||d3(R)}}),r(!1,R)});return A.useEffect(()=>{if(!n||!f)return;u.current.__escapeKeyBubbles=P,u.current.__outsidePressBubbles=v;function R(I){r(!1,I)}const M=Ua(l);h&&M.addEventListener("keydown",E),S&&M.addEventListener(m,_);let L=[];return w&&(zi(s)&&(L=lu(s)),zi(l)&&(L=L.concat(lu(l))),!zi(a)&&a&&a.contextElement&&(L=L.concat(lu(a.contextElement)))),L=L.filter(I=>{var D;return I!==((D=M.defaultView)==null?void 0:D.visualViewport)}),L.forEach(I=>{I.addEventListener("scroll",R,{passive:!0})}),()=>{h&&M.removeEventListener("keydown",E),S&&M.removeEventListener(m,_),L.forEach(I=>{I.removeEventListener("scroll",R)})}},[u,l,s,a,h,S,m,n,r,w,f,P,v,E,_]),A.useEffect(()=>{T.current=!1},[S,m]),A.useMemo(()=>f?{reference:{onKeyDown:E,[Hoe[y]]:R=>{g&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1,R.nativeEvent))}},floating:{onKeyDown:E,[qoe[m]]:()=>{T.current=!0}}}:{},[f,o,g,m,y,r,E])}function Yoe(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:o}=e,[i,a]=A.useState(null),s=((t=e.elements)==null?void 0:t.reference)||i,l=foe(e),u=sb(),f=ef((k,S)=>{k&&(p.current.openEvent=S),r==null||r(k,S)}),h=A.useRef(null),p=A.useRef({}),m=A.useState(()=>Ioe())[0],g=u3(),y=A.useCallback(k=>{const S=zi(k)?{getBoundingClientRect:()=>k.getBoundingClientRect(),contextElement:k}:k;l.refs.setReference(S)},[l.refs]),w=A.useCallback(k=>{(zi(k)||k===null)&&(h.current=k,a(k)),(zi(l.refs.reference.current)||l.refs.reference.current===null||k!==null&&!zi(k))&&l.refs.setReference(k)},[l.refs]),b=A.useMemo(()=>({...l.refs,setReference:w,setPositionReference:y,domReference:h}),[l.refs,w,y]),O=A.useMemo(()=>({...l.elements,domReference:s}),[l.elements,s]),C=A.useMemo(()=>({...l,refs:b,elements:O,dataRef:p,nodeId:o,floatingId:g,events:m,open:n,onOpenChange:f}),[l,o,g,m,n,f,b,O]);return Di(()=>{const k=u==null?void 0:u.nodesRef.current.find(S=>S.id===o);k&&(k.context=C)}),A.useMemo(()=>({...l,context:C,refs:b,elements:O}),[l,b,O,C])}function Zoe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,refs:a,elements:{floating:s,domReference:l}}=e,{enabled:u=!0,keyboardOnly:f=!0}=t,h=A.useRef(""),p=A.useRef(!1),m=A.useRef();return A.useEffect(()=>{if(!u)return;const y=Ua(s).defaultView||window;function w(){!n&&Ah(l)&&l===E_(Ua(l))&&(p.current=!0)}return y.addEventListener("blur",w),()=>{y.removeEventListener("blur",w)}},[s,l,n,u]),A.useEffect(()=>{if(!u)return;function g(y){(y.type==="referencePress"||y.type==="escapeKey")&&(p.current=!0)}return i.on("dismiss",g),()=>{i.off("dismiss",g)}},[i,u]),A.useEffect(()=>()=>{clearTimeout(m.current)},[]),A.useMemo(()=>u?{reference:{onPointerDown(g){let{pointerType:y}=g;h.current=y,p.current=!!(y&&f)},onMouseLeave(){p.current=!1},onFocus(g){var y;p.current||g.type==="focus"&&((y=o.current.openEvent)==null?void 0:y.type)==="mousedown"&&mv(o.current.openEvent,l)||r(!0,g.nativeEvent)},onBlur(g){p.current=!1;const y=g.relatedTarget,w=zi(y)&&y.hasAttribute(p3("focus-guard"))&&y.getAttribute("data-type")==="outside";m.current=setTimeout(()=>{uu(a.floating.current,y)||uu(l,y)||w||r(!1,g.nativeEvent)})}}}:{},[u,f,l,a,o,r])}function tS(e,t,n){const r=new Map;return{...n==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[n]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(a=>{let[s,l]=a;if(s.indexOf("on")===0){if(r.has(s)||r.set(s,[]),typeof l=="function"){var u;(u=r.get(s))==null||u.push(l),o[s]=function(){for(var f,h=arguments.length,p=new Array(h),m=0;mg(...p)).find(g=>g!==void 0)}}}else o[s]=l}),o),{})}}function Xoe(e){e===void 0&&(e=[]);const t=e,n=A.useCallback(i=>tS(i,e,"reference"),t),r=A.useCallback(i=>tS(i,e,"floating"),t),o=A.useCallback(i=>tS(i,e,"item"),e.map(i=>i==null?void 0:i.item));return A.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}let QI=!1;const LP="ArrowUp",ub="ArrowDown",xf="ArrowLeft",Nh="ArrowRight";function hg(e,t,n){return Math.floor(e/t)!==n}function Pd(e,t){return t<0||t>=e.current.length}function xr(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const a=e.current;let s=n;do{var l,u;s=s+(r?-i:i)}while(s>=0&&s<=a.length-1&&(o?o.includes(s):a[s]==null||(l=a[s])!=null&&l.hasAttribute("disabled")||((u=a[s])==null?void 0:u.getAttribute("aria-disabled"))==="true"));return s}function cb(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function JI(e,t){return cb(t,e===LP||e===ub,e===xf||e===Nh)}function nS(e,t,n){return cb(t,e===ub,n?e===xf:e===Nh)||e==="Enter"||e==" "||e===""}function Qoe(e,t,n){return cb(t,n?e===xf:e===Nh,e===ub)}function Joe(e,t,n){return cb(t,n?e===Nh:e===xf,e===LP)}function rS(e,t){return xr(e,{disabledIndices:t})}function eM(e,t){return xr(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function eie(e,t){const{open:n,onOpenChange:r,refs:o,elements:{domReference:i,floating:a}}=e,{listRef:s,activeIndex:l,onNavigate:u=()=>{},enabled:f=!0,selectedIndex:h=null,allowEscape:p=!1,loop:m=!1,nested:g=!1,rtl:y=!1,virtual:w=!1,focusItemOnOpen:b="auto",focusItemOnHover:O=!0,openOnArrowKeyDown:C=!0,disabledIndices:k=void 0,orientation:S="vertical",cols:T=1,scrollItemIntoView:P=!0}=t,v=MP(),E=sb(),_=ef(u),R=A.useRef(b),M=A.useRef(h??-1),L=A.useRef(null),I=A.useRef(!0),D=A.useRef(_),$=A.useRef(!!a),F=A.useRef(!1),W=A.useRef(!1),V=wp(k),j=wp(n),K=wp(P),[U,Y]=A.useState(),X=ef(function(re,ee,ae){ae===void 0&&(ae=!1);const he=re.current[ee.current];he&&(w?Y(he.id):YI(he,{preventScroll:!0,sync:$oe()&&Doe()?QI||F.current:!1}),requestAnimationFrame(()=>{const ve=K.current;ve&&he&&(ae||!I.current)&&(he.scrollIntoView==null||he.scrollIntoView(typeof ve=="boolean"?{block:"nearest",inline:"nearest"}:ve))}))});Di(()=>{document.createElement("div").focus({get preventScroll(){return QI=!0,!1}})},[]),Di(()=>{f&&(n&&a?R.current&&h!=null&&(W.current=!0,_(h)):$.current&&(M.current=-1,D.current(null)))},[f,n,a,h,_]),Di(()=>{if(f&&n&&a)if(l==null){if(F.current=!1,h!=null)return;if($.current&&(M.current=-1,X(s,M)),!$.current&&R.current&&(L.current!=null||R.current===!0&&L.current==null)){let re=0;const ee=()=>{s.current[0]==null?(re<2&&(re?requestAnimationFrame:queueMicrotask)(ee),re++):(M.current=L.current==null||nS(L.current,S,y)||g?rS(s,V.current):eM(s,V.current),L.current=null,_(M.current))};ee()}}else Pd(s,l)||(M.current=l,X(s,M,W.current),W.current=!1)},[f,n,a,l,h,g,s,S,y,_,X,V]),Di(()=>{if(f&&$.current&&!a&&E){var re,ee;const ae=E.nodesRef.current,he=(re=ae.find(_e=>_e.id===v))==null||(ee=re.context)==null?void 0:ee.elements.floating,ve=E_(Ua(a)),ce=ae.some(_e=>_e.context&&uu(_e.context.elements.floating,ve));he&&!ce&&he.focus({preventScroll:!0})}},[f,a,E,v]),Di(()=>{D.current=_,$.current=!!a}),Di(()=>{n||(L.current=null)},[n]);const Q=l!=null,ie=A.useMemo(()=>{function re(ae){if(!n)return;const he=s.current.indexOf(ae);he!==-1&&_(he)}return{onFocus(ae){let{currentTarget:he}=ae;re(he)},onClick:ae=>{let{currentTarget:he}=ae;return he.focus({preventScroll:!0})},...O&&{onMouseMove(ae){let{currentTarget:he}=ae;re(he)},onPointerLeave(ae){let{pointerType:he}=ae;!I.current||he==="touch"||(M.current=-1,X(s,M),_(null),w||YI(o.floating.current,{preventScroll:!0}))}}}},[n,o,X,O,s,_,w]);return A.useMemo(()=>{if(!f)return{};const re=V.current;function ee(ce){if(I.current=!1,F.current=!0,!j.current&&ce.currentTarget===o.floating.current)return;if(g&&Joe(ce.key,S,y)){na(ce),r(!1,ce.nativeEvent),Ah(i)&&i.focus();return}const _e=M.current,Se=rS(s,re),le=eM(s,re);if(ce.key==="Home"&&(na(ce),M.current=Se,_(M.current)),ce.key==="End"&&(na(ce),M.current=le,_(M.current)),T>1){const ye=M.current;if(ce.key===LP){if(na(ce),ye===-1)M.current=le;else if(M.current=xr(s,{startingIndex:ye,amount:T,decrement:!0,disabledIndices:re}),m&&(ye-T$e?St:St-T}Pd(s,M.current)&&(M.current=ye),_(M.current)}if(ce.key===ub&&(na(ce),ye===-1?M.current=Se:(M.current=xr(s,{startingIndex:ye,amount:T,disabledIndices:re}),m&&ye+T>le&&(M.current=xr(s,{startingIndex:ye%T-T,amount:T,disabledIndices:re}))),Pd(s,M.current)&&(M.current=ye),_(M.current)),S==="both"){const $e=Math.floor(ye/T);ce.key===Nh&&(na(ce),ye%T!==T-1?(M.current=xr(s,{startingIndex:ye,disabledIndices:re}),m&&hg(M.current,T,$e)&&(M.current=xr(s,{startingIndex:ye-ye%T-1,disabledIndices:re}))):m&&(M.current=xr(s,{startingIndex:ye-ye%T-1,disabledIndices:re})),hg(M.current,T,$e)&&(M.current=ye)),ce.key===xf&&(na(ce),ye%T!==0?(M.current=xr(s,{startingIndex:ye,disabledIndices:re,decrement:!0}),m&&hg(M.current,T,$e)&&(M.current=xr(s,{startingIndex:ye+(T-ye%T),decrement:!0,disabledIndices:re}))):m&&(M.current=xr(s,{startingIndex:ye+(T-ye%T),decrement:!0,disabledIndices:re})),hg(M.current,T,$e)&&(M.current=ye));const Ae=Math.floor(le/T)===$e;Pd(s,M.current)&&(m&&Ae?M.current=ce.key===xf?le:xr(s,{startingIndex:ye-ye%T-1,disabledIndices:re}):M.current=ye),_(M.current);return}}if(JI(ce.key,S)){if(na(ce),n&&!w&&E_(ce.currentTarget.ownerDocument)===ce.currentTarget){M.current=nS(ce.key,S,y)?Se:le,_(M.current);return}nS(ce.key,S,y)?m?M.current=_e>=le?p&&_e!==s.current.length?-1:Se:xr(s,{startingIndex:_e,disabledIndices:re}):M.current=Math.min(le,xr(s,{startingIndex:_e,disabledIndices:re})):m?M.current=_e<=Se?p&&_e!==-1?s.current.length:le:xr(s,{startingIndex:_e,decrement:!0,disabledIndices:re}):M.current=Math.max(Se,xr(s,{startingIndex:_e,decrement:!0,disabledIndices:re})),Pd(s,M.current)?_(null):_(M.current)}}function ae(ce){b==="auto"&&f3(ce.nativeEvent)&&(R.current=!0)}function he(ce){R.current=b,b==="auto"&&d3(ce.nativeEvent)&&(R.current=!0)}const ve=w&&n&&Q&&{"aria-activedescendant":U};return{reference:{...ve,onKeyDown(ce){I.current=!1;const _e=ce.key.indexOf("Arrow")===0;if(w&&n)return ee(ce);if(!n&&!C&&_e)return;const Se=_e||ce.key==="Enter"||ce.key.trim()==="",le=JI(ce.key,S),ye=Qoe(ce.key,S,y);if(Se&&(L.current=g&&le?null:ce.key),g){ye&&(na(ce),n?(M.current=rS(s,re),_(M.current)):r(!0,ce.nativeEvent));return}le&&(h!=null&&(M.current=h),na(ce),!n&&C?r(!0,ce.nativeEvent):ee(ce),n&&_(M.current))},onFocus(){n&&_(null)},onPointerDown:he,onMouseDown:ae,onClick:ae},floating:{"aria-orientation":S==="both"?void 0:S,...ve,onKeyDown:ee,onPointerMove(){I.current=!0}},item:ie}},[i,o,U,V,j,s,f,S,y,w,n,Q,g,h,C,p,T,m,b,_,r,ie])}function tie(e,t){t===void 0&&(t={});const{open:n,floatingId:r}=e,{enabled:o=!0,role:i="dialog"}=t,a=u3();return A.useMemo(()=>{const s={id:r,role:i};return o?i==="tooltip"?{reference:{"aria-describedby":n?r:void 0},floating:s}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":n?r:void 0,...i==="listbox"&&{role:"combobox"},...i==="menu"&&{id:a}},floating:{...s,...i==="menu"&&{"aria-labelledby":a}}}:{}},[o,i,n,r,a])}function tM(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,s=i-1;a=r!=h>=r&&n<=(f-l)*(r-u)/(h-u)+l&&(o=!o)}return o}function nie(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function rie(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,s=null,l=performance.now();function u(h,p){const m=performance.now(),g=m-l;if(a===null||s===null||g===0)return a=h,s=p,l=m,null;const y=h-a,w=p-s,O=Math.sqrt(y*y+w*w)/g;return a=h,s=p,l=m,O}const f=h=>{let{x:p,y:m,placement:g,elements:y,onClose:w,nodeId:b,tree:O}=h;return function(k){function S(){clearTimeout(o),w()}if(clearTimeout(o),!y.domReference||!y.floating||g==null||p==null||m==null)return;const{clientX:T,clientY:P}=k,v=[T,P],E=h3(k),_=k.type==="mouseleave",R=uu(y.floating,E),M=uu(y.domReference,E),L=y.domReference.getBoundingClientRect(),I=y.floating.getBoundingClientRect(),D=g.split("-")[0],$=p>I.right-I.width/2,F=m>I.bottom-I.height/2,W=nie(v,L),V=I.width>L.width,j=I.height>L.height,K=(V?L:I).left,U=(V?L:I).right,Y=(j?L:I).top,X=(j?L:I).bottom;if(R&&(i=!0,!_))return;if(M&&(i=!1),M&&!_){i=!0;return}if(_&&zi(k.relatedTarget)&&uu(y.floating,k.relatedTarget)||O&&hv(O.nodesRef.current,b).some(re=>{let{context:ee}=re;return ee==null?void 0:ee.open}))return;if(D==="top"&&m>=L.bottom-1||D==="bottom"&&m<=L.top+1||D==="left"&&p>=L.right-1||D==="right"&&p<=L.left+1)return S();let Q=[];switch(D){case"top":Q=[[K,L.top+1],[K,I.bottom-1],[U,I.bottom-1],[U,L.top+1]];break;case"bottom":Q=[[K,I.top+1],[K,L.bottom-1],[U,L.bottom-1],[U,I.top+1]];break;case"left":Q=[[I.right-1,X],[I.right-1,Y],[L.left+1,Y],[L.left+1,X]];break;case"right":Q=[[L.right-1,X],[L.right-1,Y],[I.left+1,Y],[I.left+1,X]];break}function ie(re){let[ee,ae]=re;switch(D){case"top":{const he=[V?ee+t/2:$?ee+t*4:ee-t*4,ae+t+1],ve=[V?ee-t/2:$?ee+t*4:ee-t*4,ae+t+1],ce=[[I.left,$||V?I.bottom-t:I.top],[I.right,$?V?I.bottom-t:I.top:I.bottom-t]];return[he,ve,...ce]}case"bottom":{const he=[V?ee+t/2:$?ee+t*4:ee-t*4,ae-t],ve=[V?ee-t/2:$?ee+t*4:ee-t*4,ae-t],ce=[[I.left,$||V?I.top+t:I.bottom],[I.right,$?V?I.top+t:I.bottom:I.top+t]];return[he,ve,...ce]}case"left":{const he=[ee+t+1,j?ae+t/2:F?ae+t*4:ae-t*4],ve=[ee+t+1,j?ae-t/2:F?ae+t*4:ae-t*4];return[...[[F||j?I.right-t:I.left,I.top],[F?j?I.right-t:I.left:I.right-t,I.bottom]],he,ve]}case"right":{const he=[ee-t,j?ae+t/2:F?ae+t*4:ae-t*4],ve=[ee-t,j?ae-t/2:F?ae+t*4:ae-t*4],ce=[[F||j?I.left+t:I.right,I.top],[F?j?I.left+t:I.right:I.left+t,I.bottom]];return[he,ve,...ce]}}}if(!tM([T,P],Q)){if(i&&!W)return S();if(!_&&r){const re=u(k.clientX,k.clientY);if(re!==null&&re<.1)return S()}tM([T,P],ie([p,m]))?!i&&r&&(o=window.setTimeout(S,40)):S()}}};return f.__options={blockPointerEvents:n},f}function oie(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}const m3=Le.createContext(null),AP=()=>{const e=Le.useContext(m3);return e??Qc("Missing context")},iie=()=>{const e=AP();return t=>({tabIndex:e.activeIndex===t?0:-1,ref:n=>{e.refs.listRef.current!==null&&(e.refs.listRef.current[t]=n)},...e.getItemProps()})},g3=Le.forwardRef(({children:e,placement:t,arrowSize:n=8,distance:r=4,borderRadius:o=4,viewPortMargin:i=8,ariaRole:a="tooltip",onClose:s=()=>{},className:l,...u},f)=>{const[h,p]=A.useState(null),[m,g]=A.useState(!1),y="open"in u?u.open:m,w=A.useRef(null),b=A.useRef(null),O=A.useRef([]);A.useImperativeHandle(f,()=>Object.assign(b.current??kre(),{open:()=>g(!0),close:()=>g(!1)}));const{x:C,y:k,placement:S,refs:T,middlewareData:P,context:v}=Yoe({open:y,onOpenChange:V=>{"open"in u||g(V),V||s()},placement:t,whileElementsMounted:J4,middleware:[Ure(n+r),Bre(),Hre({padding:i}),coe({element:w,padding:o*1.6})]}),E=Woe(v,{enabled:"trigger"in u&&u.trigger==="hover",handleClose:rie(),move:!1}),_=Zoe(v,{enabled:"trigger"in u&&u.trigger==="hover"}),R=Boe(v,{enabled:"trigger"in u&&u.trigger==="click"}),M=Goe(v,{referencePress:a==="tooltip"}),L=tie(v,{role:a}),I=eie(v,{listRef:O,activeIndex:h,loop:!0,focusItemOnHover:!1,onNavigate:p}),{getReferenceProps:D,getFloatingProps:$,getItemProps:F}=Xoe([E,_,R,M,L,I]),W={activeIndex:h,open:y,setOpen:a==="tooltip"?g:null,settings:{arrowSize:n,distance:r,borderRadius:o,viewPortMargin:i},calculated:{x:C,y:k,placement:S,arrow:P.arrow},refs:{arrowRef:w,listRef:O,...T},getReferenceProps:D,getFloatingProps:$,getItemProps:F};return z(m3.Provider,{value:W,children:z("div",{ref:b,css:{position:"relative"},className:l,children:e})})}),v3=({children:e})=>{const t=AP();return Le.cloneElement(e,{"data-floating-state":t.open?"open":"closed",...t.getReferenceProps({ref:t.refs.setReference,onClick:()=>{var n;return t.open&&((n=t.setOpen)==null?void 0:n.call(t,!1))},...e.props})})},y3=Le.forwardRef(({children:e,backgroundColor:t,borderColor:n,borderWidth:r=1,shadowColor:o="rgba(0, 0, 0, 20%)",shadowBlur:i=4,padding:a=[4,8],className:s,hideArrowTip:l=!1},u)=>{var C,k;const f=wl(),{open:h,calculated:p,refs:m,settings:g,...y}=AP();if(!h)return null;const w=sie(p.placement),b=Math.SQRT2*g.arrowSize,O=oie([u,m.setFloating]);return pe("div",{...y.getFloatingProps({ref:O}),css:{"--floating-background-color":t??f.colors.neutral05,"--floating-border-color":n??f.colors.neutral40,"--floating-border-width":`${r}px`,"--floating-shadow-blur":`${i}px`,"--floating-shadow-color":o,position:"absolute",...p.x!=null&&p.y!=null?{left:p.x,top:p.y}:{[aie(w)]:"100%"},width:"max-content",maxWidth:`calc(100vw - ${2*g.viewPortMargin}px)`,zIndex:1e4,backgroundColor:"var(--floating-background-color)",borderRadius:g.borderRadius,boxShadow:"0 0 var(--floating-shadow-blur) var(--floating-shadow-color)",outline:"var(--floating-border-width) solid var(--floating-border-color)"},children:[z("div",{className:s,css:{overflow:"hidden",borderRadius:g.borderRadius,padding:(Array.isArray(a)?a:[a]).map(S=>`${S}px`).join(" ")},children:e}),z("div",{css:{position:"absolute",display:l?"none":"block",...w==="top"||w==="bottom"?{left:0,right:0,height:g.arrowSize+i}:{top:0,bottom:0,width:g.arrowSize+i},[w]:"100%",pointerEvents:"none",overflow:"hidden"},children:z("div",{ref:m.arrowRef,css:{position:"absolute",left:(C=p.arrow)==null?void 0:C.x,top:(k=p.arrow)==null?void 0:k.y,[w]:-b/2,height:b,width:b,transform:"rotate(45deg)",backgroundColor:"var(--floating-background-color)",boxShadow:`${i/6}px ${i/6}px var(--floating-shadow-blur) ${i/12}px var(--floating-shadow-color)`,outline:"var(--floating-border-width) solid var(--floating-border-color)"}})})]})});Le.forwardRef(({children:e,tooltip:t,tooltipCss:n,...r},o)=>{const i=wl();return pe(g3,{ref:o,...r,trigger:"hover",placement:r.placement??"top",children:[z(y3,{css:{color:i.colors.neutral80,fontSize:14,maxWidth:"100%",...n},children:t}),z(v3,{children:e})]})});const aie=e=>({top:"bottom",right:"left",bottom:"top",left:"right"})[e],sie=e=>e.split("-")[0];function lie(e){return ht({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",y1:"12",x2:"5",y2:"12"}},{tag:"polyline",attr:{points:"12 19 5 12 12 5"}}]})(e)}function uie(e){return ht({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 6 9 17 4 12"}}]})(e)}const b3=({children:e,menu:t,floatingContainer:n})=>{const r=A.useRef(null);return pe(g3,{ref:r,placement:"bottom",trigger:"click",ariaRole:"menu",arrowSize:12,viewPortMargin:12,borderRadius:8,distance:6,...n,children:[z(v3,{children:e}),z(cie,{close:()=>{var o;return(o=r.current)==null?void 0:o.close()},...t})]})},cie=({close:e,items:t,label:n,breakpoint:r})=>{const o=wl(),{scheme:i,isHighContrast:a}=va(),s=iie(),l=yf(i,{light:()=>o.colors.neutral05,dark:()=>o.colors.neutral15,"dark-high-contrast":()=>o.colors.neutral05,"light-high-contrast":()=>o.colors.neutral05});return z(y3,{backgroundColor:l,borderWidth:i!=="light"?1:0,padding:0,shadowBlur:a?0:8,children:z("div",{onClick:u=>{u.target===u.currentTarget&&e()},onBlur:u=>{u.currentTarget.contains(u.relatedTarget)||e()},css:{position:"relative",[`@media (max-width: ${r}px)`]:{position:"fixed",top:0,bottom:0,left:0,right:0,zIndex:1001,backgroundColor:"#000000a0"}},children:pe("ul",{css:{borderRadius:8,right:0,margin:0,paddingLeft:0,overflow:"hidden",listStyle:"none",li:{":first-of-type":{borderRadius:"8px 8px 0 0"},":last-of-type":{borderRadius:"0 0 8px 8px"}},[`@media (max-width: ${r}px)`]:{backgroundColor:l,borderRadius:"0 0 8px 8px",marginTop:0,position:"fixed",left:0,top:0,li:{":not(:first-of-type)":{borderRadius:0}}}},children:[z(die,{onClick:e,breakpoint:r,children:n}),t.map(({keepOpenAfterClick:u,...f},h)=>z(fie,{...s(h),...f,onClick:p=>{var m;(m=f==null?void 0:f.onClick)==null||m.call(f,p),u||e()}},h))]})})})},fie=A.forwardRef(({icon:e,children:t,wrapper:n,...r},o)=>{const i=wl(),a=va().isHighContrast?i.colors.neutral90:i.colors.neutral10,s=va().isHighContrast?i.colors.neutral05:i.colors.neutral90,l={display:"flex",gap:16,alignItems:"center",minWidth:160,padding:12,textDecoration:"none",color:i.colors.neutral90,cursor:"pointer",whiteSpace:"nowrap","& > svg":{maxHeight:23,fontSize:23,width:24,strokeWidth:2,"& > path":{strokeWidth:"inherit"}},":hover, :focus":{backgroundColor:a,color:s},...fb(i,{inset:!0})},{className:u,...f}=r,h=n??z(wn,{});return z("li",{role:"menuitem",...f,css:{":not(:first-of-type)":{borderTop:`1px solid ${i.colors.neutral30}`},...!n&&l},...!n&&{className:u,ref:p=>typeof o=="function"?o(p):o?o.current=p:{}},children:Ye(h.type,{key:h.key,...h.props,children:pe(wn,{children:[e??z("svg",{}),z("div",{children:t})]}),...n&&{className:u,ref:p=>typeof o=="function"?o(p):o?o.current=p:{}},...n&&{css:[l,{borderRadius:"inherit"}]}})})}),w3=({checked:e,onClick:t,children:n})=>({icon:e?z(uie,{}):void 0,onClick:t,onKeyDown:r=>{document.activeElement===r.currentTarget&&r.key==="Enter"&&t()},tabIndex:0,children:n,role:"checkbox","aria-checked":e,css:{...e&&{cursor:"default"}}}),die=({onClick:e,breakpoint:t,children:n})=>{const r=wl();return pe("div",{css:{borderBottom:`1px solid ${r.colors.neutral40}`,display:"flex",alignItems:"center",[`@media not all and (max-width: ${t}px)`]:{display:"none"}},children:[z(hn,{onClick:e,tabIndex:0,css:{display:"flex",alignItems:"center",cursor:"pointer",padding:"24px 12px",opacity:.75,":hover, :focus":{opacity:1},...fb(r,{inset:!0}),"> svg":{maxHeight:23,fontSize:23,width:24,strokeWidth:2}},children:z(lie,{})}),z("span",{css:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:r.colors.neutral60},children:n})]})},pie=Le.forwardRef(({size:e="1em",strokeColor:t="currentcolor",...n},r)=>z("svg",{ref:r,viewBox:"0 0 50 50",css:{width:e,height:e,animation:`2s linear infinite none ${vl({"0%":{transform:"rotate(0)"},"100%":{transform:"rotate(360deg)"}})}`,"& > circle":{fill:"none",stroke:t,strokeWidth:4,strokeDasharray:83,strokeLinecap:"round"}},...n,children:z("circle",{cx:"25",cy:"25",r:"20"})}));/*! +*/var e3=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],hy=e3.join(","),t3=typeof Element>"u",Ou=t3?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,my=!t3&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},gy=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",a=i||n&&t&&e(t.parentNode);return a},foe=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},n3=function(t,n,r){if(gy(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(hy));return n&&Ou.call(t,hy)&&o.unshift(t),o=o.filter(r),o},r3=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!gy(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),l=s.length?s:a.children,u=e(l,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:a,candidates:u})}else{var f=Ou.call(a,hy);f&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var h=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),p=!gy(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(h&&p){var m=e(h===!0?a.children:h.children,!0,r);r.flatten?o.push.apply(o,m):o.push({scopeParent:a,candidates:m})}else i.unshift.apply(i,a.children)}}return o},o3=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Bs=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||foe(t))&&!o3(t)?0:t.tabIndex},doe=function(t,n){var r=Bs(t);return r<0&&n&&!o3(t)?0:r},poe=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},i3=function(t){return t.tagName==="INPUT"},hoe=function(t){return i3(t)&&t.type==="hidden"},moe=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},goe=function(t,n){for(var r=0;rsummary:first-of-type"),a=i?t.parentElement:t;if(Ou.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var s=t;t;){var l=t.parentElement,u=my(t);if(l&&!l.shadowRoot&&o(l)===!0)return q2(t);t.assignedSlot?t=t.assignedSlot:!l&&u!==t.ownerDocument?t=u.host:t=l}t=s}if(woe(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return q2(t);return!1},xoe=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},Ooe=function e(t){var n=[],r=[];return t.forEach(function(o,i){var a=!!o.scopeParent,s=a?o.scopeParent:o,l=doe(s,a),u=a?e(o.candidates):s;l===0?a?n.push.apply(n,u):n.push(s):r.push({documentOrder:i,tabIndex:l,item:o,isScope:a,content:u})}),r.sort(poe).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},a3=function(t,n){n=n||{};var r;return n.getShadowRoot?r=r3([t],n.includeContainer,{filter:P_.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:_oe}):r=n3(t,n.includeContainer,P_.bind(null,n)),Ooe(r)},s3=function(t,n){n=n||{};var r;return n.getShadowRoot?r=r3([t],n.includeContainer,{filter:vy.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=n3(t,n.includeContainer,vy.bind(null,n)),r},ql=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ou.call(t,hy)===!1?!1:P_(n,t)},Coe=e3.concat("iframe").join(","),pv=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ou.call(t,Coe)===!1?!1:vy(n,t)};const Poe=Object.freeze(Object.defineProperty({__proto__:null,focusable:s3,getTabIndex:Bs,isFocusable:pv,isTabbable:ql,tabbable:a3},Symbol.toStringTag,{value:"Module"}));var Di=typeof document<"u"?A.useLayoutEffect:A.useEffect;let Q1=!1,Eoe=0;const K2=()=>"floating-ui-"+Eoe++;function koe(){const[e,t]=A.useState(()=>Q1?K2():void 0);return Di(()=>{e==null&&t(K2())},[]),A.useEffect(()=>{Q1||(Q1=!0)},[]),e}const Toe=cu.useId,l3=Toe||koe;function Roe(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Ioe=A.createContext(null),Moe=A.createContext(null),MP=()=>{var e;return((e=A.useContext(Ioe))==null?void 0:e.id)||null},ab=()=>A.useContext(Moe);function Ua(e){return(e==null?void 0:e.ownerDocument)||document}function u3(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Loe(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function sb(e){return Ua(e).defaultView||window}function zi(e){return e?e instanceof Element||e instanceof sb(e).Element:!1}function Ah(e){return e?e instanceof HTMLElement||e instanceof sb(e).HTMLElement:!1}function Aoe(e){if(typeof ShadowRoot>"u")return!1;const t=sb(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function c3(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(u3())||t.test(Loe()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function f3(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function Noe(){return/apple/i.test(navigator.vendor)}function Doe(){return u3().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function yy(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function $oe(e){return"nativeEvent"in e}function lu(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Aoe(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function d3(e){return"data-floating-ui-"+e}function wp(e){const t=A.useRef(e);return Di(()=>{t.current=e}),t}const G2=d3("safe-polygon");function J1(e,t,n){return n&&!yy(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Foe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:{domReference:a,floating:s},refs:l}=e,{enabled:u=!0,delay:f=0,handleClose:h=null,mouseOnly:p=!1,restMs:m=0,move:g=!0}=t,y=ab(),w=MP(),b=wp(h),O=wp(f),C=A.useRef(),k=A.useRef(),S=A.useRef(),T=A.useRef(),P=A.useRef(!0),v=A.useRef(!1),E=A.useRef(()=>{}),_=A.useCallback(()=>{var I;const D=(I=o.current.openEvent)==null?void 0:I.type;return(D==null?void 0:D.includes("mouse"))&&D!=="mousedown"},[o]);A.useEffect(()=>{if(!u)return;function I(){clearTimeout(k.current),clearTimeout(T.current),P.current=!0}return i.on("dismiss",I),()=>{i.off("dismiss",I)}},[u,i]),A.useEffect(()=>{if(!u||!b.current||!n)return;function I($){_()&&r(!1,$)}const D=Ua(s).documentElement;return D.addEventListener("mouseleave",I),()=>{D.removeEventListener("mouseleave",I)}},[s,n,r,u,b,o,_]);const R=A.useCallback(function(I,D){D===void 0&&(D=!0);const $=J1(O.current,"close",C.current);$&&!S.current?(clearTimeout(k.current),k.current=setTimeout(()=>r(!1,I),$)):D&&(clearTimeout(k.current),r(!1,I))},[O,r]),M=A.useCallback(()=>{E.current(),S.current=void 0},[]),L=A.useCallback(()=>{if(v.current){const I=Ua(l.floating.current).body;I.style.pointerEvents="",I.removeAttribute(G2),v.current=!1}},[l]);return A.useEffect(()=>{if(!u)return;function I(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function D(W){if(clearTimeout(k.current),P.current=!1,p&&!yy(C.current)||m>0&&J1(O.current,"open")===0)return;const V=J1(O.current,"open",C.current);V?k.current=setTimeout(()=>{r(!0,W)},V):r(!0,W)}function $(W){if(I())return;E.current();const V=Ua(s);if(clearTimeout(T.current),b.current){n||clearTimeout(k.current),S.current=b.current({...e,tree:y,x:W.clientX,y:W.clientY,onClose(){L(),M(),R(W)}});const K=S.current;V.addEventListener("mousemove",K),E.current=()=>{V.removeEventListener("mousemove",K)};return}(C.current==="touch"?!lu(s,W.relatedTarget):!0)&&R(W)}function F(W){I()||b.current==null||b.current({...e,tree:y,x:W.clientX,y:W.clientY,onClose(){L(),M(),R(W)}})(W)}if(zi(a)){const W=a;return n&&W.addEventListener("mouseleave",F),s==null||s.addEventListener("mouseleave",F),g&&W.addEventListener("mousemove",D,{once:!0}),W.addEventListener("mouseenter",D),W.addEventListener("mouseleave",$),()=>{n&&W.removeEventListener("mouseleave",F),s==null||s.removeEventListener("mouseleave",F),g&&W.removeEventListener("mousemove",D),W.removeEventListener("mouseenter",D),W.removeEventListener("mouseleave",$)}}},[a,s,u,e,p,m,g,R,M,L,r,n,y,O,b,o]),Di(()=>{var I;if(u&&n&&(I=b.current)!=null&&I.__options.blockPointerEvents&&_()){const F=Ua(s).body;if(F.setAttribute(G2,""),F.style.pointerEvents="none",v.current=!0,zi(a)&&s){var D,$;const W=a,V=y==null||(D=y.nodesRef.current.find(j=>j.id===w))==null||($=D.context)==null?void 0:$.elements.floating;return V&&(V.style.pointerEvents=""),W.style.pointerEvents="auto",s.style.pointerEvents="auto",()=>{W.style.pointerEvents="",s.style.pointerEvents=""}}}},[u,n,w,s,a,y,b,o,_]),Di(()=>{n||(C.current=void 0,M(),L())},[n,M,L]),A.useEffect(()=>()=>{M(),clearTimeout(k.current),clearTimeout(T.current),L()},[u,M,L]),A.useMemo(()=>{if(!u)return{};function I(D){C.current=D.pointerType}return{reference:{onPointerDown:I,onPointerEnter:I,onMouseMove(D){n||m===0||(clearTimeout(T.current),T.current=setTimeout(()=>{P.current||r(!0,D.nativeEvent)},m))}},floating:{onMouseEnter(){clearTimeout(k.current)},onMouseLeave(D){i.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),R(D.nativeEvent,!1)}}}},[i,u,m,n,r,R])}function E_(e){let t=e.activeElement;for(;((n=t)==null||(r=n.shadowRoot)==null?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}let Y2=0;function Z2(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Y2);const i=()=>e==null?void 0:e.focus({preventScroll:n});o?i():Y2=requestAnimationFrame(i)}function hv(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(a=>{var s;return o.parentId===a.id&&((s=o.context)==null?void 0:s.open)})}),n=n.concat(r);return n}function p3(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Woe="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Voe(e){return Ah(e)&&e.matches(Woe)}function na(e){e.preventDefault(),e.stopPropagation()}function X2(e){return Ah(e.target)&&e.target.tagName==="BUTTON"}function Q2(e){return Voe(e)}function zoe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:f=!0}=t,h=A.useRef(),p=A.useRef(!1);return A.useMemo(()=>a?{reference:{onPointerDown(m){h.current=m.pointerType},onMouseDown(m){m.button===0&&(yy(h.current,!0)&&u||s!=="click"&&(n&&l&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?r(!1,m.nativeEvent):(m.preventDefault(),r(!0,m.nativeEvent))))},onClick(m){if(s==="mousedown"&&h.current){h.current=void 0;return}yy(h.current,!0)&&u||(n&&l&&(!o.current.openEvent||o.current.openEvent.type==="click")?r(!1,m.nativeEvent):r(!0,m.nativeEvent))},onKeyDown(m){h.current=void 0,!(m.defaultPrevented||!f||X2(m))&&(m.key===" "&&!Q2(i)&&(m.preventDefault(),p.current=!0),m.key==="Enter"&&r(!(n&&l),m.nativeEvent))},onKeyUp(m){m.defaultPrevented||!f||X2(m)||Q2(i)||m.key===" "&&p.current&&(p.current=!1,r(!(n&&l),m.nativeEvent))}}}:{},[a,o,s,u,f,i,l,n,r])}const Boe=cu.useInsertionEffect,joe=Boe||(e=>e());function ef(e){const t=A.useRef(()=>{});return joe(()=>{t.current=e}),A.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o{var t,n;return{escapeKeyBubbles:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePressBubbles:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function Koe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,nodeId:i,elements:{reference:a,domReference:s,floating:l},dataRef:u}=e,{enabled:f=!0,escapeKey:h=!0,outsidePress:p=!0,outsidePressEvent:m="pointerdown",referencePress:g=!1,referencePressEvent:y="pointerdown",ancestorScroll:w=!1,bubbles:b}=t,O=ab(),C=MP()!=null,k=ef(typeof p=="function"?p:()=>!1),S=typeof p=="function"?k:p,T=A.useRef(!1),{escapeKeyBubbles:P,outsidePressBubbles:v}=qoe(b),E=ef(R=>{if(!n||!f||!h||R.key!=="Escape")return;const M=O?hv(O.nodesRef.current,i):[];if(!P&&(R.stopPropagation(),M.length>0)){let L=!0;if(M.forEach(I=>{var D;if((D=I.context)!=null&&D.open&&!I.context.dataRef.current.__escapeKeyBubbles){L=!1;return}}),!L)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1,$oe(R)?R.nativeEvent:R)}),_=ef(R=>{const M=T.current;if(T.current=!1,M||typeof S=="function"&&!S(R))return;const L=p3(R);if(Ah(L)&&l){const $=L.clientWidth>0&&L.scrollWidth>L.clientWidth,F=L.clientHeight>0&&L.scrollHeight>L.clientHeight;let W=F&&R.offsetX>L.clientWidth;if(F&&sb(l).getComputedStyle(L).direction==="rtl"&&(W=R.offsetX<=L.offsetWidth-L.clientWidth),W||$&&R.offsetY>L.clientHeight)return}const I=O&&hv(O.nodesRef.current,i).some($=>{var F;return mv(R,(F=$.context)==null?void 0:F.elements.floating)});if(mv(R,l)||mv(R,s)||I)return;const D=O?hv(O.nodesRef.current,i):[];if(D.length>0){let $=!0;if(D.forEach(F=>{var W;if((W=F.context)!=null&&W.open&&!F.context.dataRef.current.__outsidePressBubbles){$=!1;return}}),!$)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:C?{preventScroll:!0}:c3(R)||f3(R)}}),r(!1,R)});return A.useEffect(()=>{if(!n||!f)return;u.current.__escapeKeyBubbles=P,u.current.__outsidePressBubbles=v;function R(I){r(!1,I)}const M=Ua(l);h&&M.addEventListener("keydown",E),S&&M.addEventListener(m,_);let L=[];return w&&(zi(s)&&(L=su(s)),zi(l)&&(L=L.concat(su(l))),!zi(a)&&a&&a.contextElement&&(L=L.concat(su(a.contextElement)))),L=L.filter(I=>{var D;return I!==((D=M.defaultView)==null?void 0:D.visualViewport)}),L.forEach(I=>{I.addEventListener("scroll",R,{passive:!0})}),()=>{h&&M.removeEventListener("keydown",E),S&&M.removeEventListener(m,_),L.forEach(I=>{I.removeEventListener("scroll",R)})}},[u,l,s,a,h,S,m,n,r,w,f,P,v,E,_]),A.useEffect(()=>{T.current=!1},[S,m]),A.useMemo(()=>f?{reference:{onKeyDown:E,[Uoe[y]]:R=>{g&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1,R.nativeEvent))}},floating:{onKeyDown:E,[Hoe[m]]:()=>{T.current=!0}}}:{},[f,o,g,m,y,r,E])}function Goe(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:o}=e,[i,a]=A.useState(null),s=((t=e.elements)==null?void 0:t.reference)||i,l=coe(e),u=ab(),f=ef((k,S)=>{k&&(p.current.openEvent=S),r==null||r(k,S)}),h=A.useRef(null),p=A.useRef({}),m=A.useState(()=>Roe())[0],g=l3(),y=A.useCallback(k=>{const S=zi(k)?{getBoundingClientRect:()=>k.getBoundingClientRect(),contextElement:k}:k;l.refs.setReference(S)},[l.refs]),w=A.useCallback(k=>{(zi(k)||k===null)&&(h.current=k,a(k)),(zi(l.refs.reference.current)||l.refs.reference.current===null||k!==null&&!zi(k))&&l.refs.setReference(k)},[l.refs]),b=A.useMemo(()=>({...l.refs,setReference:w,setPositionReference:y,domReference:h}),[l.refs,w,y]),O=A.useMemo(()=>({...l.elements,domReference:s}),[l.elements,s]),C=A.useMemo(()=>({...l,refs:b,elements:O,dataRef:p,nodeId:o,floatingId:g,events:m,open:n,onOpenChange:f}),[l,o,g,m,n,f,b,O]);return Di(()=>{const k=u==null?void 0:u.nodesRef.current.find(S=>S.id===o);k&&(k.context=C)}),A.useMemo(()=>({...l,context:C,refs:b,elements:O}),[l,b,O,C])}function Yoe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,refs:a,elements:{floating:s,domReference:l}}=e,{enabled:u=!0,keyboardOnly:f=!0}=t,h=A.useRef(""),p=A.useRef(!1),m=A.useRef();return A.useEffect(()=>{if(!u)return;const y=Ua(s).defaultView||window;function w(){!n&&Ah(l)&&l===E_(Ua(l))&&(p.current=!0)}return y.addEventListener("blur",w),()=>{y.removeEventListener("blur",w)}},[s,l,n,u]),A.useEffect(()=>{if(!u)return;function g(y){(y.type==="referencePress"||y.type==="escapeKey")&&(p.current=!0)}return i.on("dismiss",g),()=>{i.off("dismiss",g)}},[i,u]),A.useEffect(()=>()=>{clearTimeout(m.current)},[]),A.useMemo(()=>u?{reference:{onPointerDown(g){let{pointerType:y}=g;h.current=y,p.current=!!(y&&f)},onMouseLeave(){p.current=!1},onFocus(g){var y;p.current||g.type==="focus"&&((y=o.current.openEvent)==null?void 0:y.type)==="mousedown"&&mv(o.current.openEvent,l)||r(!0,g.nativeEvent)},onBlur(g){p.current=!1;const y=g.relatedTarget,w=zi(y)&&y.hasAttribute(d3("focus-guard"))&&y.getAttribute("data-type")==="outside";m.current=setTimeout(()=>{lu(a.floating.current,y)||lu(l,y)||w||r(!1,g.nativeEvent)})}}}:{},[u,f,l,a,o,r])}function eS(e,t,n){const r=new Map;return{...n==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[n]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(a=>{let[s,l]=a;if(s.indexOf("on")===0){if(r.has(s)||r.set(s,[]),typeof l=="function"){var u;(u=r.get(s))==null||u.push(l),o[s]=function(){for(var f,h=arguments.length,p=new Array(h),m=0;mg(...p)).find(g=>g!==void 0)}}}else o[s]=l}),o),{})}}function Zoe(e){e===void 0&&(e=[]);const t=e,n=A.useCallback(i=>eS(i,e,"reference"),t),r=A.useCallback(i=>eS(i,e,"floating"),t),o=A.useCallback(i=>eS(i,e,"item"),e.map(i=>i==null?void 0:i.item));return A.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}let J2=!1;const LP="ArrowUp",lb="ArrowDown",xf="ArrowLeft",Nh="ArrowRight";function hg(e,t,n){return Math.floor(e/t)!==n}function Pd(e,t){return t<0||t>=e.current.length}function xr(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const a=e.current;let s=n;do{var l,u;s=s+(r?-i:i)}while(s>=0&&s<=a.length-1&&(o?o.includes(s):a[s]==null||(l=a[s])!=null&&l.hasAttribute("disabled")||((u=a[s])==null?void 0:u.getAttribute("aria-disabled"))==="true"));return s}function ub(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function eM(e,t){return ub(t,e===LP||e===lb,e===xf||e===Nh)}function tS(e,t,n){return ub(t,e===lb,n?e===xf:e===Nh)||e==="Enter"||e==" "||e===""}function Xoe(e,t,n){return ub(t,n?e===xf:e===Nh,e===lb)}function Qoe(e,t,n){return ub(t,n?e===Nh:e===xf,e===LP)}function nS(e,t){return xr(e,{disabledIndices:t})}function tM(e,t){return xr(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Joe(e,t){const{open:n,onOpenChange:r,refs:o,elements:{domReference:i,floating:a}}=e,{listRef:s,activeIndex:l,onNavigate:u=()=>{},enabled:f=!0,selectedIndex:h=null,allowEscape:p=!1,loop:m=!1,nested:g=!1,rtl:y=!1,virtual:w=!1,focusItemOnOpen:b="auto",focusItemOnHover:O=!0,openOnArrowKeyDown:C=!0,disabledIndices:k=void 0,orientation:S="vertical",cols:T=1,scrollItemIntoView:P=!0}=t,v=MP(),E=ab(),_=ef(u),R=A.useRef(b),M=A.useRef(h??-1),L=A.useRef(null),I=A.useRef(!0),D=A.useRef(_),$=A.useRef(!!a),F=A.useRef(!1),W=A.useRef(!1),V=wp(k),j=wp(n),K=wp(P),[U,Y]=A.useState(),X=ef(function(re,ee,ae){ae===void 0&&(ae=!1);const he=re.current[ee.current];he&&(w?Y(he.id):Z2(he,{preventScroll:!0,sync:Doe()&&Noe()?J2||F.current:!1}),requestAnimationFrame(()=>{const ve=K.current;ve&&he&&(ae||!I.current)&&(he.scrollIntoView==null||he.scrollIntoView(typeof ve=="boolean"?{block:"nearest",inline:"nearest"}:ve))}))});Di(()=>{document.createElement("div").focus({get preventScroll(){return J2=!0,!1}})},[]),Di(()=>{f&&(n&&a?R.current&&h!=null&&(W.current=!0,_(h)):$.current&&(M.current=-1,D.current(null)))},[f,n,a,h,_]),Di(()=>{if(f&&n&&a)if(l==null){if(F.current=!1,h!=null)return;if($.current&&(M.current=-1,X(s,M)),!$.current&&R.current&&(L.current!=null||R.current===!0&&L.current==null)){let re=0;const ee=()=>{s.current[0]==null?(re<2&&(re?requestAnimationFrame:queueMicrotask)(ee),re++):(M.current=L.current==null||tS(L.current,S,y)||g?nS(s,V.current):tM(s,V.current),L.current=null,_(M.current))};ee()}}else Pd(s,l)||(M.current=l,X(s,M,W.current),W.current=!1)},[f,n,a,l,h,g,s,S,y,_,X,V]),Di(()=>{if(f&&$.current&&!a&&E){var re,ee;const ae=E.nodesRef.current,he=(re=ae.find(_e=>_e.id===v))==null||(ee=re.context)==null?void 0:ee.elements.floating,ve=E_(Ua(a)),ce=ae.some(_e=>_e.context&&lu(_e.context.elements.floating,ve));he&&!ce&&he.focus({preventScroll:!0})}},[f,a,E,v]),Di(()=>{D.current=_,$.current=!!a}),Di(()=>{n||(L.current=null)},[n]);const Q=l!=null,ie=A.useMemo(()=>{function re(ae){if(!n)return;const he=s.current.indexOf(ae);he!==-1&&_(he)}return{onFocus(ae){let{currentTarget:he}=ae;re(he)},onClick:ae=>{let{currentTarget:he}=ae;return he.focus({preventScroll:!0})},...O&&{onMouseMove(ae){let{currentTarget:he}=ae;re(he)},onPointerLeave(ae){let{pointerType:he}=ae;!I.current||he==="touch"||(M.current=-1,X(s,M),_(null),w||Z2(o.floating.current,{preventScroll:!0}))}}}},[n,o,X,O,s,_,w]);return A.useMemo(()=>{if(!f)return{};const re=V.current;function ee(ce){if(I.current=!1,F.current=!0,!j.current&&ce.currentTarget===o.floating.current)return;if(g&&Qoe(ce.key,S,y)){na(ce),r(!1,ce.nativeEvent),Ah(i)&&i.focus();return}const _e=M.current,Se=nS(s,re),le=tM(s,re);if(ce.key==="Home"&&(na(ce),M.current=Se,_(M.current)),ce.key==="End"&&(na(ce),M.current=le,_(M.current)),T>1){const ye=M.current;if(ce.key===LP){if(na(ce),ye===-1)M.current=le;else if(M.current=xr(s,{startingIndex:ye,amount:T,decrement:!0,disabledIndices:re}),m&&(ye-T$e?St:St-T}Pd(s,M.current)&&(M.current=ye),_(M.current)}if(ce.key===lb&&(na(ce),ye===-1?M.current=Se:(M.current=xr(s,{startingIndex:ye,amount:T,disabledIndices:re}),m&&ye+T>le&&(M.current=xr(s,{startingIndex:ye%T-T,amount:T,disabledIndices:re}))),Pd(s,M.current)&&(M.current=ye),_(M.current)),S==="both"){const $e=Math.floor(ye/T);ce.key===Nh&&(na(ce),ye%T!==T-1?(M.current=xr(s,{startingIndex:ye,disabledIndices:re}),m&&hg(M.current,T,$e)&&(M.current=xr(s,{startingIndex:ye-ye%T-1,disabledIndices:re}))):m&&(M.current=xr(s,{startingIndex:ye-ye%T-1,disabledIndices:re})),hg(M.current,T,$e)&&(M.current=ye)),ce.key===xf&&(na(ce),ye%T!==0?(M.current=xr(s,{startingIndex:ye,disabledIndices:re,decrement:!0}),m&&hg(M.current,T,$e)&&(M.current=xr(s,{startingIndex:ye+(T-ye%T),decrement:!0,disabledIndices:re}))):m&&(M.current=xr(s,{startingIndex:ye+(T-ye%T),decrement:!0,disabledIndices:re})),hg(M.current,T,$e)&&(M.current=ye));const Ae=Math.floor(le/T)===$e;Pd(s,M.current)&&(m&&Ae?M.current=ce.key===xf?le:xr(s,{startingIndex:ye-ye%T-1,disabledIndices:re}):M.current=ye),_(M.current);return}}if(eM(ce.key,S)){if(na(ce),n&&!w&&E_(ce.currentTarget.ownerDocument)===ce.currentTarget){M.current=tS(ce.key,S,y)?Se:le,_(M.current);return}tS(ce.key,S,y)?m?M.current=_e>=le?p&&_e!==s.current.length?-1:Se:xr(s,{startingIndex:_e,disabledIndices:re}):M.current=Math.min(le,xr(s,{startingIndex:_e,disabledIndices:re})):m?M.current=_e<=Se?p&&_e!==-1?s.current.length:le:xr(s,{startingIndex:_e,decrement:!0,disabledIndices:re}):M.current=Math.max(Se,xr(s,{startingIndex:_e,decrement:!0,disabledIndices:re})),Pd(s,M.current)?_(null):_(M.current)}}function ae(ce){b==="auto"&&c3(ce.nativeEvent)&&(R.current=!0)}function he(ce){R.current=b,b==="auto"&&f3(ce.nativeEvent)&&(R.current=!0)}const ve=w&&n&&Q&&{"aria-activedescendant":U};return{reference:{...ve,onKeyDown(ce){I.current=!1;const _e=ce.key.indexOf("Arrow")===0;if(w&&n)return ee(ce);if(!n&&!C&&_e)return;const Se=_e||ce.key==="Enter"||ce.key.trim()==="",le=eM(ce.key,S),ye=Xoe(ce.key,S,y);if(Se&&(L.current=g&&le?null:ce.key),g){ye&&(na(ce),n?(M.current=nS(s,re),_(M.current)):r(!0,ce.nativeEvent));return}le&&(h!=null&&(M.current=h),na(ce),!n&&C?r(!0,ce.nativeEvent):ee(ce),n&&_(M.current))},onFocus(){n&&_(null)},onPointerDown:he,onMouseDown:ae,onClick:ae},floating:{"aria-orientation":S==="both"?void 0:S,...ve,onKeyDown:ee,onPointerMove(){I.current=!0}},item:ie}},[i,o,U,V,j,s,f,S,y,w,n,Q,g,h,C,p,T,m,b,_,r,ie])}function eie(e,t){t===void 0&&(t={});const{open:n,floatingId:r}=e,{enabled:o=!0,role:i="dialog"}=t,a=l3();return A.useMemo(()=>{const s={id:r,role:i};return o?i==="tooltip"?{reference:{"aria-describedby":n?r:void 0},floating:s}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":n?r:void 0,...i==="listbox"&&{role:"combobox"},...i==="menu"&&{id:a}},floating:{...s,...i==="menu"&&{"aria-labelledby":a}}}:{}},[o,i,n,r,a])}function nM(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,s=i-1;a=r!=h>=r&&n<=(f-l)*(r-u)/(h-u)+l&&(o=!o)}return o}function tie(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function nie(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,s=null,l=performance.now();function u(h,p){const m=performance.now(),g=m-l;if(a===null||s===null||g===0)return a=h,s=p,l=m,null;const y=h-a,w=p-s,O=Math.sqrt(y*y+w*w)/g;return a=h,s=p,l=m,O}const f=h=>{let{x:p,y:m,placement:g,elements:y,onClose:w,nodeId:b,tree:O}=h;return function(k){function S(){clearTimeout(o),w()}if(clearTimeout(o),!y.domReference||!y.floating||g==null||p==null||m==null)return;const{clientX:T,clientY:P}=k,v=[T,P],E=p3(k),_=k.type==="mouseleave",R=lu(y.floating,E),M=lu(y.domReference,E),L=y.domReference.getBoundingClientRect(),I=y.floating.getBoundingClientRect(),D=g.split("-")[0],$=p>I.right-I.width/2,F=m>I.bottom-I.height/2,W=tie(v,L),V=I.width>L.width,j=I.height>L.height,K=(V?L:I).left,U=(V?L:I).right,Y=(j?L:I).top,X=(j?L:I).bottom;if(R&&(i=!0,!_))return;if(M&&(i=!1),M&&!_){i=!0;return}if(_&&zi(k.relatedTarget)&&lu(y.floating,k.relatedTarget)||O&&hv(O.nodesRef.current,b).some(re=>{let{context:ee}=re;return ee==null?void 0:ee.open}))return;if(D==="top"&&m>=L.bottom-1||D==="bottom"&&m<=L.top+1||D==="left"&&p>=L.right-1||D==="right"&&p<=L.left+1)return S();let Q=[];switch(D){case"top":Q=[[K,L.top+1],[K,I.bottom-1],[U,I.bottom-1],[U,L.top+1]];break;case"bottom":Q=[[K,I.top+1],[K,L.bottom-1],[U,L.bottom-1],[U,I.top+1]];break;case"left":Q=[[I.right-1,X],[I.right-1,Y],[L.left+1,Y],[L.left+1,X]];break;case"right":Q=[[L.right-1,X],[L.right-1,Y],[I.left+1,Y],[I.left+1,X]];break}function ie(re){let[ee,ae]=re;switch(D){case"top":{const he=[V?ee+t/2:$?ee+t*4:ee-t*4,ae+t+1],ve=[V?ee-t/2:$?ee+t*4:ee-t*4,ae+t+1],ce=[[I.left,$||V?I.bottom-t:I.top],[I.right,$?V?I.bottom-t:I.top:I.bottom-t]];return[he,ve,...ce]}case"bottom":{const he=[V?ee+t/2:$?ee+t*4:ee-t*4,ae-t],ve=[V?ee-t/2:$?ee+t*4:ee-t*4,ae-t],ce=[[I.left,$||V?I.top+t:I.bottom],[I.right,$?V?I.top+t:I.bottom:I.top+t]];return[he,ve,...ce]}case"left":{const he=[ee+t+1,j?ae+t/2:F?ae+t*4:ae-t*4],ve=[ee+t+1,j?ae-t/2:F?ae+t*4:ae-t*4];return[...[[F||j?I.right-t:I.left,I.top],[F?j?I.right-t:I.left:I.right-t,I.bottom]],he,ve]}case"right":{const he=[ee-t,j?ae+t/2:F?ae+t*4:ae-t*4],ve=[ee-t,j?ae-t/2:F?ae+t*4:ae-t*4],ce=[[F||j?I.left+t:I.right,I.top],[F?j?I.left+t:I.right:I.left+t,I.bottom]];return[he,ve,...ce]}}}if(!nM([T,P],Q)){if(i&&!W)return S();if(!_&&r){const re=u(k.clientX,k.clientY);if(re!==null&&re<.1)return S()}nM([T,P],ie([p,m]))?!i&&r&&(o=window.setTimeout(S,40)):S()}}};return f.__options={blockPointerEvents:n},f}function rie(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}const h3=Le.createContext(null),AP=()=>{const e=Le.useContext(h3);return e??Qc("Missing context")},oie=()=>{const e=AP();return t=>({tabIndex:e.activeIndex===t?0:-1,ref:n=>{e.refs.listRef.current!==null&&(e.refs.listRef.current[t]=n)},...e.getItemProps()})},m3=Le.forwardRef(({children:e,placement:t,arrowSize:n=8,distance:r=4,borderRadius:o=4,viewPortMargin:i=8,ariaRole:a="tooltip",onClose:s=()=>{},className:l,...u},f)=>{const[h,p]=A.useState(null),[m,g]=A.useState(!1),y="open"in u?u.open:m,w=A.useRef(null),b=A.useRef(null),O=A.useRef([]);A.useImperativeHandle(f,()=>Object.assign(b.current??Ere(),{open:()=>g(!0),close:()=>g(!1)}));const{x:C,y:k,placement:S,refs:T,middlewareData:P,context:v}=Goe({open:y,onOpenChange:V=>{"open"in u||g(V),V||s()},placement:t,whileElementsMounted:Q4,middleware:[jre(n+r),zre(),Ure({padding:i}),uoe({element:w,padding:o*1.6})]}),E=Foe(v,{enabled:"trigger"in u&&u.trigger==="hover",handleClose:nie(),move:!1}),_=Yoe(v,{enabled:"trigger"in u&&u.trigger==="hover"}),R=zoe(v,{enabled:"trigger"in u&&u.trigger==="click"}),M=Koe(v,{referencePress:a==="tooltip"}),L=eie(v,{role:a}),I=Joe(v,{listRef:O,activeIndex:h,loop:!0,focusItemOnHover:!1,onNavigate:p}),{getReferenceProps:D,getFloatingProps:$,getItemProps:F}=Zoe([E,_,R,M,L,I]),W={activeIndex:h,open:y,setOpen:a==="tooltip"?g:null,settings:{arrowSize:n,distance:r,borderRadius:o,viewPortMargin:i},calculated:{x:C,y:k,placement:S,arrow:P.arrow},refs:{arrowRef:w,listRef:O,...T},getReferenceProps:D,getFloatingProps:$,getItemProps:F};return z(h3.Provider,{value:W,children:z("div",{ref:b,css:{position:"relative"},className:l,children:e})})}),g3=({children:e})=>{const t=AP();return Le.cloneElement(e,{"data-floating-state":t.open?"open":"closed",...t.getReferenceProps({ref:t.refs.setReference,onClick:()=>{var n;return t.open&&((n=t.setOpen)==null?void 0:n.call(t,!1))},...e.props})})},v3=Le.forwardRef(({children:e,backgroundColor:t,borderColor:n,borderWidth:r=1,shadowColor:o="rgba(0, 0, 0, 20%)",shadowBlur:i=4,padding:a=[4,8],className:s,hideArrowTip:l=!1},u)=>{var C,k;const f=bl(),{open:h,calculated:p,refs:m,settings:g,...y}=AP();if(!h)return null;const w=aie(p.placement),b=Math.SQRT2*g.arrowSize,O=rie([u,m.setFloating]);return pe("div",{...y.getFloatingProps({ref:O}),css:{"--floating-background-color":t??f.colors.neutral05,"--floating-border-color":n??f.colors.neutral40,"--floating-border-width":`${r}px`,"--floating-shadow-blur":`${i}px`,"--floating-shadow-color":o,position:"absolute",...p.x!=null&&p.y!=null?{left:p.x,top:p.y}:{[iie(w)]:"100%"},width:"max-content",maxWidth:`calc(100vw - ${2*g.viewPortMargin}px)`,zIndex:1e4,backgroundColor:"var(--floating-background-color)",borderRadius:g.borderRadius,boxShadow:"0 0 var(--floating-shadow-blur) var(--floating-shadow-color)",outline:"var(--floating-border-width) solid var(--floating-border-color)"},children:[z("div",{className:s,css:{overflow:"hidden",borderRadius:g.borderRadius,padding:(Array.isArray(a)?a:[a]).map(S=>`${S}px`).join(" ")},children:e}),z("div",{css:{position:"absolute",display:l?"none":"block",...w==="top"||w==="bottom"?{left:0,right:0,height:g.arrowSize+i}:{top:0,bottom:0,width:g.arrowSize+i},[w]:"100%",pointerEvents:"none",overflow:"hidden"},children:z("div",{ref:m.arrowRef,css:{position:"absolute",left:(C=p.arrow)==null?void 0:C.x,top:(k=p.arrow)==null?void 0:k.y,[w]:-b/2,height:b,width:b,transform:"rotate(45deg)",backgroundColor:"var(--floating-background-color)",boxShadow:`${i/6}px ${i/6}px var(--floating-shadow-blur) ${i/12}px var(--floating-shadow-color)`,outline:"var(--floating-border-width) solid var(--floating-border-color)"}})})]})});Le.forwardRef(({children:e,tooltip:t,tooltipCss:n,...r},o)=>{const i=bl();return pe(m3,{ref:o,...r,trigger:"hover",placement:r.placement??"top",children:[z(v3,{css:{color:i.colors.neutral80,fontSize:14,maxWidth:"100%",...n},children:t}),z(g3,{children:e})]})});const iie=e=>({top:"bottom",right:"left",bottom:"top",left:"right"})[e],aie=e=>e.split("-")[0];function sie(e){return mt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",y1:"12",x2:"5",y2:"12"}},{tag:"polyline",attr:{points:"12 19 5 12 12 5"}}]})(e)}function lie(e){return mt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 6 9 17 4 12"}}]})(e)}const y3=({children:e,menu:t,floatingContainer:n})=>{const r=A.useRef(null);return pe(m3,{ref:r,placement:"bottom",trigger:"click",ariaRole:"menu",arrowSize:12,viewPortMargin:12,borderRadius:8,distance:6,...n,children:[z(g3,{children:e}),z(uie,{close:()=>{var o;return(o=r.current)==null?void 0:o.close()},...t})]})},uie=({close:e,items:t,label:n,breakpoint:r})=>{const o=bl(),{scheme:i,isHighContrast:a}=va(),s=oie(),l=yf(i,{light:()=>o.colors.neutral05,dark:()=>o.colors.neutral15,"dark-high-contrast":()=>o.colors.neutral05,"light-high-contrast":()=>o.colors.neutral05});return z(v3,{backgroundColor:l,borderWidth:i!=="light"?1:0,padding:0,shadowBlur:a?0:8,children:z("div",{onClick:u=>{u.target===u.currentTarget&&e()},onBlur:u=>{u.currentTarget.contains(u.relatedTarget)||e()},css:{position:"relative",[`@media (max-width: ${r}px)`]:{position:"fixed",top:0,bottom:0,left:0,right:0,zIndex:1001,backgroundColor:"#000000a0"}},children:pe("ul",{css:{borderRadius:8,right:0,margin:0,paddingLeft:0,overflow:"hidden",listStyle:"none",li:{":first-of-type":{borderRadius:"8px 8px 0 0"},":last-of-type":{borderRadius:"0 0 8px 8px"}},[`@media (max-width: ${r}px)`]:{backgroundColor:l,borderRadius:"0 0 8px 8px",marginTop:0,position:"fixed",left:0,top:0,li:{":not(:first-of-type)":{borderRadius:0}}}},children:[z(fie,{onClick:e,breakpoint:r,children:n}),t.map(({keepOpenAfterClick:u,...f},h)=>z(cie,{...s(h),...f,onClick:p=>{var m;(m=f==null?void 0:f.onClick)==null||m.call(f,p),u||e()}},h))]})})})},cie=A.forwardRef(({icon:e,children:t,wrapper:n,...r},o)=>{const i=bl(),a=va().isHighContrast?i.colors.neutral90:i.colors.neutral10,s=va().isHighContrast?i.colors.neutral05:i.colors.neutral90,l={display:"flex",gap:16,alignItems:"center",minWidth:160,padding:12,textDecoration:"none",color:i.colors.neutral90,cursor:"pointer",whiteSpace:"nowrap","& > svg":{maxHeight:23,fontSize:23,width:24,strokeWidth:2,"& > path":{strokeWidth:"inherit"}},":hover, :focus":{backgroundColor:a,color:s},...cb(i,{inset:!0})},{className:u,...f}=r,h=n??z(wn,{});return z("li",{role:"menuitem",...f,css:{":not(:first-of-type)":{borderTop:`1px solid ${i.colors.neutral30}`},...!n&&l},...!n&&{className:u,ref:p=>typeof o=="function"?o(p):o?o.current=p:{}},children:Ye(h.type,{key:h.key,...h.props,children:pe(wn,{children:[e??z("svg",{}),z("div",{children:t})]}),...n&&{className:u,ref:p=>typeof o=="function"?o(p):o?o.current=p:{}},...n&&{css:[l,{borderRadius:"inherit"}]}})})}),b3=({checked:e,onClick:t,children:n})=>({icon:e?z(lie,{}):void 0,onClick:t,onKeyDown:r=>{document.activeElement===r.currentTarget&&r.key==="Enter"&&t()},tabIndex:0,children:n,role:"checkbox","aria-checked":e,css:{...e&&{cursor:"default"}}}),fie=({onClick:e,breakpoint:t,children:n})=>{const r=bl();return pe("div",{css:{borderBottom:`1px solid ${r.colors.neutral40}`,display:"flex",alignItems:"center",[`@media not all and (max-width: ${t}px)`]:{display:"none"}},children:[z(hn,{onClick:e,tabIndex:0,css:{display:"flex",alignItems:"center",cursor:"pointer",padding:"24px 12px",opacity:.75,":hover, :focus":{opacity:1},...cb(r,{inset:!0}),"> svg":{maxHeight:23,fontSize:23,width:24,strokeWidth:2}},children:z(sie,{})}),z("span",{css:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:r.colors.neutral60},children:n})]})},NP=Le.forwardRef(({size:e="1em",strokeColor:t="currentcolor",...n},r)=>z("svg",{ref:r,viewBox:"0 0 50 50",css:{width:e,height:e,animation:`2s linear infinite none ${Iu({"0%":{transform:"rotate(0)"},"100%":{transform:"rotate(360deg)"}})}`,"& > circle":{fill:"none",stroke:t,strokeWidth:4,strokeDasharray:83,strokeLinecap:"round"}},...n,children:z("circle",{cx:"25",cy:"25",r:"20"})}));/*! * focus-trap 7.5.4 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE -*/function nM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function rM(e){for(var t=1;t0){var r=t[t.length-1];r!==n&&r.pause()}var o=t.indexOf(n);o===-1||t.splice(o,1),t.push(n)},deactivateTrap:function(t,n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&t[t.length-1].unpause()}},vie=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},yie=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},Sp=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},bie=function(t){return Sp(t)&&!t.shiftKey},wie=function(t){return Sp(t)&&t.shiftKey},iM=function(t){return setTimeout(t,0)},aM=function(t,n){var r=-1;return t.every(function(o,i){return n(o)?(r=i,!1):!0}),r},Ed=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1?I-1:0),$=1;$=0)M=r.activeElement;else{var L=a.tabbableGroups[0],I=L&&L.firstTabbableNode;M=I||f("fallbackFocus")}if(!M)throw new Error("Your focus-trap needs to have at least one focusable element");return M},p=function(){if(a.containerGroups=a.containers.map(function(M){var L=s3(M,i.tabbableOptions),I=l3(M,i.tabbableOptions),D=L.length>0?L[0]:void 0,$=L.length>0?L[L.length-1]:void 0,F=I.find(function(j){return Kl(j)}),W=I.slice().reverse().find(function(j){return Kl(j)}),V=!!L.find(function(j){return Bs(j)>0});return{container:M,tabbableNodes:L,focusableNodes:I,posTabIndexesFound:V,firstTabbableNode:D,lastTabbableNode:$,firstDomTabbableNode:F,lastDomTabbableNode:W,nextTabbableNode:function(K){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Y=L.indexOf(K);return Y<0?U?I.slice(I.indexOf(K)+1).find(function(X){return Kl(X)}):I.slice(0,I.indexOf(K)).reverse().find(function(X){return Kl(X)}):L[Y+(U?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(M){return M.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!f("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find(function(M){return M.posTabIndexesFound})&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},m=function R(M){var L=M.activeElement;if(L)return L.shadowRoot&&L.shadowRoot.activeElement!==null?R(L.shadowRoot):L},g=function R(M){if(M!==!1&&M!==m(document)){if(!M||!M.focus){R(h());return}M.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=M,vie(M)&&M.select()}},y=function(M){var L=f("setReturnFocus",M);return L||(L===!1?!1:M)},w=function(M){var L=M.target,I=M.event,D=M.isBackward,$=D===void 0?!1:D;L=L||mg(I),p();var F=null;if(a.tabbableGroups.length>0){var W=u(L,I),V=W>=0?a.containerGroups[W]:void 0;if(W<0)$?F=a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:F=a.tabbableGroups[0].firstTabbableNode;else if($){var j=aM(a.tabbableGroups,function(ie){var re=ie.firstTabbableNode;return L===re});if(j<0&&(V.container===L||pv(L,i.tabbableOptions)&&!Kl(L,i.tabbableOptions)&&!V.nextTabbableNode(L,!1))&&(j=W),j>=0){var K=j===0?a.tabbableGroups.length-1:j-1,U=a.tabbableGroups[K];F=Bs(L)>=0?U.lastTabbableNode:U.lastDomTabbableNode}else Sp(I)||(F=V.nextTabbableNode(L,!1))}else{var Y=aM(a.tabbableGroups,function(ie){var re=ie.lastTabbableNode;return L===re});if(Y<0&&(V.container===L||pv(L,i.tabbableOptions)&&!Kl(L,i.tabbableOptions)&&!V.nextTabbableNode(L))&&(Y=W),Y>=0){var X=Y===a.tabbableGroups.length-1?0:Y+1,Q=a.tabbableGroups[X];F=Bs(L)>=0?Q.firstTabbableNode:Q.firstDomTabbableNode}else Sp(I)||(F=V.nextTabbableNode(L))}}else F=f("fallbackFocus");return F},b=function(M){var L=mg(M);if(!(u(L,M)>=0)){if(Ed(i.clickOutsideDeactivates,M)){s.deactivate({returnFocus:i.returnFocusOnDeactivate});return}Ed(i.allowOutsideClick,M)||M.preventDefault()}},O=function(M){var L=mg(M),I=u(L,M)>=0;if(I||L instanceof Document)I&&(a.mostRecentlyFocusedNode=L);else{M.stopImmediatePropagation();var D,$=!0;if(a.mostRecentlyFocusedNode)if(Bs(a.mostRecentlyFocusedNode)>0){var F=u(a.mostRecentlyFocusedNode),W=a.containerGroups[F].tabbableNodes;if(W.length>0){var V=W.findIndex(function(j){return j===a.mostRecentlyFocusedNode});V>=0&&(i.isKeyForward(a.recentNavEvent)?V+1=0&&(D=W[V-1],$=!1))}}else a.containerGroups.some(function(j){return j.tabbableNodes.some(function(K){return Bs(K)>0})})||($=!1);else $=!1;$&&(D=w({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),g(D||a.mostRecentlyFocusedNode||h())}a.recentNavEvent=void 0},C=function(M){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;a.recentNavEvent=M;var I=w({event:M,isBackward:L});I&&(Sp(M)&&M.preventDefault(),g(I))},k=function(M){if(yie(M)&&Ed(i.escapeDeactivates,M)!==!1){M.preventDefault(),s.deactivate();return}(i.isKeyForward(M)||i.isKeyBackward(M))&&C(M,i.isKeyBackward(M))},S=function(M){var L=mg(M);u(L,M)>=0||Ed(i.clickOutsideDeactivates,M)||Ed(i.allowOutsideClick,M)||(M.preventDefault(),M.stopImmediatePropagation())},T=function(){if(a.active)return oM.activateTrap(o,s),a.delayInitialFocusTimer=i.delayInitialFocus?iM(function(){g(h())}):g(h()),r.addEventListener("focusin",O,!0),r.addEventListener("mousedown",b,{capture:!0,passive:!1}),r.addEventListener("touchstart",b,{capture:!0,passive:!1}),r.addEventListener("click",S,{capture:!0,passive:!1}),r.addEventListener("keydown",k,{capture:!0,passive:!1}),s},P=function(){if(a.active)return r.removeEventListener("focusin",O,!0),r.removeEventListener("mousedown",b,!0),r.removeEventListener("touchstart",b,!0),r.removeEventListener("click",S,!0),r.removeEventListener("keydown",k,!0),s},v=function(M){var L=M.some(function(I){var D=Array.from(I.removedNodes);return D.some(function($){return $===a.mostRecentlyFocusedNode})});L&&g(h())},E=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(v):void 0,_=function(){E&&(E.disconnect(),a.active&&!a.paused&&a.containers.map(function(M){E.observe(M,{subtree:!0,childList:!0})}))};return s={get active(){return a.active},get paused(){return a.paused},activate:function(M){if(a.active)return this;var L=l(M,"onActivate"),I=l(M,"onPostActivate"),D=l(M,"checkCanFocusTrap");D||p(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=r.activeElement,L==null||L();var $=function(){D&&p(),T(),_(),I==null||I()};return D?(D(a.containers.concat()).then($,$),this):($(),this)},deactivate:function(M){if(!a.active)return this;var L=rM({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},M);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,P(),a.active=!1,a.paused=!1,_(),oM.deactivateTrap(o,s);var I=l(L,"onDeactivate"),D=l(L,"onPostDeactivate"),$=l(L,"checkCanReturnFocus"),F=l(L,"returnFocus","returnFocusOnDeactivate");I==null||I();var W=function(){iM(function(){F&&g(y(a.nodeFocusedBeforeActivation)),D==null||D()})};return F&&$?($(y(a.nodeFocusedBeforeActivation)).then(W,W),this):(W(),this)},pause:function(M){if(a.paused||!a.active)return this;var L=l(M,"onPause"),I=l(M,"onPostPause");return a.paused=!0,L==null||L(),P(),_(),I==null||I(),this},unpause:function(M){if(!a.paused||!a.active)return this;var L=l(M,"onUnpause"),I=l(M,"onPostUnpause");return a.paused=!1,L==null||L(),p(),T(),_(),I==null||I(),this},updateContainerElements:function(M){var L=[].concat(M).filter(Boolean);return a.containers=L.map(function(I){return typeof I=="string"?r.querySelector(I):I}),a.active&&p(),_(),this}},s.updateContainerElements(t),s};const _ie=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:xie},Symbol.toStringTag,{value:"Module"})),Oie=lo(_ie),Cie=lo(Eoe);function _f(e){"@babel/helpers - typeof";return _f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_f(e)}function Pie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eie(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wy(e){return wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wy(e)}function Lie(e,t,n){return t=S3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S3(e){var t=Aie(e,"string");return _f(t)==="symbol"?t:String(t)}function Aie(e,t){if(_f(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_f(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gg=A,Qe=Ff,Nie=Oie,Die=Nie.createFocusTrap,$ie=Cie,Fie=$ie.isFocusable,NP=function(e){Tie(n,e);var t=Rie(n);function n(r){var o;Pie(this,n),o=t.call(this,r),Lie(Xd(o),"getNodeForOption",function(s){var l,u=(l=this.internalOptions[s])!==null&&l!==void 0?l:this.originalOptions[s];if(typeof u=="function"){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p element.");var a=function(u){var f=o.props.containerElements;i&&(typeof i.ref=="function"?i.ref(u):i.ref&&(i.ref.current=u)),o.focusTrapElements=f||[u]},s=gg.cloneElement(i,{ref:a});return s}return null}}]),n}(gg.Component),kd=typeof Element>"u"?Function:Element;NP.propTypes={active:Qe.bool,paused:Qe.bool,focusTrapOptions:Qe.shape({document:Qe.object,onActivate:Qe.func,onPostActivate:Qe.func,checkCanFocusTrap:Qe.func,onPause:Qe.func,onPostPause:Qe.func,onUnpause:Qe.func,onPostUnpause:Qe.func,onDeactivate:Qe.func,onPostDeactivate:Qe.func,checkCanReturnFocus:Qe.func,initialFocus:Qe.oneOfType([Qe.instanceOf(kd),Qe.string,Qe.bool,Qe.func]),fallbackFocus:Qe.oneOfType([Qe.instanceOf(kd),Qe.string,Qe.func]),escapeDeactivates:Qe.oneOfType([Qe.bool,Qe.func]),clickOutsideDeactivates:Qe.oneOfType([Qe.bool,Qe.func]),returnFocusOnDeactivate:Qe.bool,setReturnFocus:Qe.oneOfType([Qe.instanceOf(kd),Qe.string,Qe.bool,Qe.func]),allowOutsideClick:Qe.oneOfType([Qe.bool,Qe.func]),preventScroll:Qe.bool,tabbableOptions:Qe.shape({displayCheck:Qe.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:Qe.oneOfType([Qe.bool,Qe.func])}),trapStack:Qe.array,isKeyForward:Qe.func,isKeyBackward:Qe.func}),containerElements:Qe.arrayOf(Qe.instanceOf(kd)),children:Qe.oneOfType([Qe.element,Qe.instanceOf(kd)])};NP.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:Die};var Wie=NP;const Vie=os(Wie),x3=A.forwardRef(({title:e,closable:t=!0,children:n,className:r,closeOnOutsideClick:o=!1,open:i=!1,initialFocus:a,text:s},l)=>{const u=wl(),[f,h]=A.useState(i),p=va().scheme==="dark";return A.useImperativeHandle(l,()=>({isOpen:()=>f,open:()=>h(!0),close:()=>h(!1)}),[f]),A.useEffect(()=>{const m=g=>{t&&g.key==="Escape"&&h(!1)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[t]),Gd.createPortal(f&&z(Vie,{focusTrapOptions:{initialFocus:a},children:z("div",{...t&&o&&{onClick:m=>{m.target===m.currentTarget&&h(!1)}},css:{position:"fixed",top:0,bottom:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.8)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:10001},children:pe("div",{className:r,css:{backgroundColor:u.colors.neutral05,borderRadius:4,minWidth:"clamp(300px, 90%, 400px)",margin:16,...p&&{border:`1px solid ${u.colors.neutral25}`}},children:[pe("div",{css:{padding:"12px 16px",borderBottom:`1px solid ${u.colors.neutral25}`,display:"flex",alignItems:"center"},children:[z("h2",{css:{flex:1},children:e}),t&&z(hn,{"aria-label":s.close,tabIndex:0,onClick:()=>h(!1),css:{fontSize:32,cursor:"pointer",display:"inline-flex",borderRadius:4,...fb(u)},children:z(OZ,{})})]}),z("div",{css:{padding:16},children:n})]})})}),document.body)}),fb=(e,t)=>{const n=(t==null?void 0:t.width)??2.5,r=(t==null?void 0:t.inset)??!1,o=(t==null?void 0:t.offset)??0;return{"&:focus-visible":{outline:`${n}px solid ${e.colors.focus}`,outlineOffset:`${r?-n:o}px`}}},Oe=PP.colors,qe=()=>{const e=va();return yf(e.scheme,{light:()=>zie,dark:()=>Bie,"light-high-contrast":()=>Uie,"dark-high-contrast":()=>jie})},zie={background:Oe.neutral10,menu_background:Oe.neutral05,text:Oe.neutral90,error:"#ed1741",element_bg:Oe.neutral05,multiValue:Oe.neutral15,focused:Oe.neutral15,focus_text:Oe.neutral90,selected:Oe.neutral25,disabled:"rgba(0, 0, 0, 0.55)",menuBorder:`1px solid ${Oe.neutral30}`,boxShadow:`0 0 2px 2px ${Oe.neutral30}`,boxShadow_tiles:"0 5px 10px 0px rgba(150, 150, 150, 0.5)",singleKey_bg:Oe.neutral10,singleKey_border:Oe.neutral20,singleKey_boxShadow:"0 2px 2px 0px rgba(150, 150, 150, 0.2)",invert_wave:"invert(0%)",inverted_text:Oe.neutral90,tooltip:Oe.neutral80,tooltip_text:Oe.neutral05,contextMenu:Oe.neutral10,element_outline:"2px solid transparent",selected_text:Oe.neutral90,dropdown_border:`1px solid ${Oe.neutral40}`,menuButton_outline:"2px solid transparent",button_outline:"none",button_color:Oe.neutral10,indicator_color:Oe.neutral60,icon_color:Oe.neutral05,slider_thumb_color:Oe.neutral70,slider_thumb_shadow:`0 0 0 8px ${Oe.neutral30}`,slider_track_color:Oe.neutral30,background_finish_menu_icon:Oe.neutral15,background_play_icon:Oe.neutral70,background_preview_icon:Oe.neutral70,waveform_filter:"invert(44%) sepia(8%) saturate(3893%) hue-rotate(169deg) brightness(99%) contrast(90%)",waveform_bg:"",cut:Oe.neutral60,scrubber:Oe.neutral60,scrubber_handle:Oe.neutral05,scrubber_icon:Oe.neutral60,subtitle_segment_bg:"rgba(0, 0, 0, 0.4)",subtitle_segment_border:`1px solid ${Oe.neutral80}`,subtitle_segment_text:Oe.neutral05,header_bg:Oe.neutral60,header_text:Oe.neutral05,header_button_hover_bg:Oe.neutral70,metadata_highlight:Oe.neutral50,clock_bg:Oe.neutral15,clock_border:"2px solid transparent",clock_hands:Oe.neutral50,clock_focus:Oe.neutral90,digit_selected:Oe.neutral90,text_shadow:`2px 0 ${Oe.neutral15}, -2px 0 ${Oe.neutral15},0 2px ${Oe.neutral15}, 0 -2px ${Oe.neutral15},1px 1px ${Oe.neutral15}, -1px -1px ${Oe.neutral15},1px -1px ${Oe.neutral15}, -1px 1px ${Oe.neutral15}`},Bie={background:Oe.neutral10,menu_background:Oe.neutral05,text:Oe.neutral90,error:"rgba(237, 23, 65, 0.8)",element_bg:Oe.neutral05,multiValue:Oe.neutral15,focused:Oe.neutral15,focus_text:Oe.neutral90,selected:Oe.neutral25,disabled:"rgba(255, 255, 255, 0.5)",menuBorder:`1px solid ${Oe.neutral30}`,boxShadow:`0 0 5px ${Oe.neutral05}`,boxShadow_tiles:"0 5px 10px 0px rgba(0, 0, 0, 0.3)",singleKey_bg:"linear-gradient(180deg, rgba(40,40,40,1) 0%, rgba(30,30,30,1) 100%)",singleKey_border:Oe.neutral20,singleKey_boxShadow:"0 2px 2px 0px rgba(0, 0, 0, 1.0)",invert_wave:"invert(100%)",inverted_text:Oe.neutral90,tooltip:Oe.neutral80,tooltip_text:Oe.neutral05,contextMenu:Oe.neutral20,element_outline:"2px solid transparent",selected_text:Oe.neutral90,dropdown_border:`1px solid ${Oe.neutral40}`,menuButton_outline:"2px solid transparent",button_outline:"0px solid transparent",button_color:Oe.neutral20,indicator_color:Oe.neutral60,icon_color:"rgba(255, 255, 255, 0.87)",slider_thumb_color:Oe.neutral70,slider_thumb_shadow:"0 0 0 8px rgba(255, 255, 255, 0.2)",slider_track_color:Oe.neutral90,background_finish_menu_icon:Oe.neutral15,background_play_icon:Oe.neutral70,background_preview_icon:Oe.neutral70,waveform_filter:"invert(11%)",waveform_bg:"#fff",cut:Oe.neutral60,scrubber:Oe.neutral60,scrubber_handle:Oe.neutral70,scrubber_icon:Oe.neutral20,subtitle_segment_bg:"rgba(0, 0, 0, 0.4)",subtitle_segment_border:`1px solid ${Oe.neutral80}`,subtitle_segment_text:Oe.neutral90,header_bg:Oe.neutral20,header_text:Oe.neutral90,header_button_hover_bg:Oe.neutral10,metadata_highlight:Oe.neutral50,clock_bg:Oe.neutral15,clock_border:"2px solid transparent",clock_hands:Oe.neutral50,clock_focus:Oe.neutral90,digit_selected:Oe.neutral90,text_shadow:`2px 0 ${Oe.neutral15}, -2px 0 ${Oe.neutral15},0 2px ${Oe.neutral15}, 0 -2px ${Oe.neutral15},1px 1px ${Oe.neutral15}, -1px -1px ${Oe.neutral15},1px -1px ${Oe.neutral15}, -1px 1px ${Oe.neutral15}`},jie={background:"#000",menu_background:"#000",text:"#fff",error:"#ED1741",element_bg:"none",multiValue:"#c4c4c4",focused:"#a6ffea",focus_text:"#000",selected:"#fff",disabled:"rgba(255, 255, 255, 0.6)",menuBorder:"2px solid #fff",boxShadow:"0 0 0 rgba(255, 255, 255, 0.3)",boxShadow_tiles:"0 0 0 rgba(255, 255, 255, 0.3)",singleKey_bg:"none",singleKey_border:"#fff",singleKey_boxShadow:"0 2px 2px 0px rgba(150, 150, 150, 0.2)",invert_wave:"invert(100%)",inverted_text:"#000",tooltip:"#fff",tooltip_text:"#000",contextMenu:"#000",element_outline:"2px solid #fff",selected_text:"#000",dropdown_border:"2px solid #fff",menuButton_outline:"2px solid transparent",button_outline:"2px solid #a6ffea",button_color:"#a6ffea",indicator_color:"#a6ffea",icon_color:"#000",slider_thumb_color:"#fff",slider_thumb_shadow:"0 0 0 8px rgba(166, 255, 234, 0.8)",slider_track_color:"#fff",background_finish_menu_icon:"#000",background_play_icon:"#fff",background_preview_icon:"#fff",waveform_filter:"invert(100%)",waveform_bg:"#80B8AC",cut:"#fff",scrubber:"#fff",scrubber_handle:"#fff",scrubber_icon:"#000",subtitle_segment_bg:"none",subtitle_segment_border:"2px solid #fff",subtitle_segment_text:"#fff",header_bg:"#000",header_text:"#fff",header_button_hover_bg:"#000",metadata_highlight:"rgb(38, 132, 255)",clock_bg:"#000",clock_border:"2px solid #a6ffea",clock_hands:"#fff",clock_focus:"#000",digit_selected:"#000",text_shadow:"2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000, 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000"},Uie={background:"snow",menu_background:"snow",text:"#000",error:"#a5102d",element_bg:"none",multiValue:"#2e2e2e",focused:"#000099",focus_text:"#fff",selected:"#4646b5",disabled:"rgba(0, 0, 0, 0.6)",menuBorder:"2px solid #000",boxShadow:"0 0 0 rgba(0, 0, 0, 0.3)",boxShadow_tiles:"0 0 0 rgba(0, 0, 0, 0.3)",singleKey_bg:"none",singleKey_border:"#000",singleKey_boxShadow:"0 2px 2px 0px rgba(150, 150, 150, 0.2)",invert_wave:"invert(0%)",inverted_text:"#fff",tooltip:"#000",tooltip_text:"#fff",contextMenu:"snow",element_outline:"2px solid #000",selected_text:"#fff",dropdown_border:"2px solid #000",menuButton_outline:"2px solid transparent",button_outline:"3px solid #000099",button_color:"#000099",indicator_color:"#000099",icon_color:"#fff",slider_thumb_color:"#000",slider_thumb_shadow:"0 0 0 8px rgba(0, 0, 153, 0.6)",slider_track_color:"#000",background_finish_menu_icon:"snow",background_play_icon:"#000",background_preview_icon:"#000",waveform_filter:"invert(0%)",waveform_bg:"#fff",cut:"#000",scrubber:"#000",scrubber_handle:"#000",scrubber_icon:"#fff",subtitle_segment_bg:"none",subtitle_segment_border:"2px solid #000",subtitle_segment_text:"#000",header_bg:"#000",header_text:"#fff",header_button_hover_bg:"#000",metadata_highlight:"rgb(38, 132, 255)",clock_bg:"snow",clock_border:"2px solid #000099",clock_hands:"#4646b5",clock_focus:"#fff",digit_selected:"#fff",text_shadow:"2px 0 snow, -2px 0 snow, 0 2px snow, 0 -2px snow, 1px 1px snow, -1px -1px snow, 1px -1px snow, -1px 1px snow"},Hie=()=>{const e=qe();return z(IC,{styles:qie(e)})},qie=e=>Pe({emotionNormalize:nee,body:{backgroundColor:`${e.background}`,color:`${e.text}`,fontSize:"medium",minHeight:"100vh"},"input, button, textarea, select":{font:"inherit"}},"",""),Ao=PP.breakpoints,Yt=e=>Pe({borderRadius:"5px","&:hover":{backgroundColor:`${e.button_color}`,color:`${e.inverted_text}`},"&:focus":{backgroundColor:`${e.button_color}`,color:`${e.inverted_text}`},display:"flex",justifyContent:"center",alignItems:"center",gap:"10px",textAlign:"center",outline:`${e.button_outline}`},"",""),_3=Pe({borderRadius:"10px",cursor:"pointer",opacity:"0.6",display:"flex",justifyContent:"center",alignItems:"center",gap:"10px",textAlign:"center"},"",""),db=e=>Pe({width:"200px",padding:"16px",justifyContent:"space-around",boxShadow:`${e.boxShadow}`,background:`${e.element_bg}`},"",""),pb={name:"127p6l8",styles:"display:flex;flex-direction:row;gap:20px"},DP=e=>Pe({width:"290px",height:"220px",display:"flex",flexDirection:"column",fontWeight:"bold",gap:"30px",boxShadow:`${e.boxShadow_tiles}`,background:`${e.element_bg}`,placeSelf:"center"},"",""),Kie={name:"1ywlbv8",styles:"&:hover{transform:none;}&:focus{transform:none;}&:active{transform:none;}"},zf=e=>Pe({display:"inline-block",padding:"15px",whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:"100%",color:`${e.text}`},"",""),Bf=e=>Pe({fontWeight:"bold",fontSize:"24px",verticalAlign:"-2.5px",color:`${e.text}`},"",""),Gie={name:"651ll8",styles:"position:absolute;left:-99999px;height:1px;width:1px;overflow:hidden"},hb=(e,t)=>Pe({...!e&&{display:"none"},borderColor:`${t.error}`,borderStyle:"dashed",fontWeight:"bold",padding:"10px"},"","");function T_(e){return{control:(t,n)=>({...t,background:e.menu_background,...n.isFocused&&{borderColor:e.metadata_highlight},...n.isFocused&&{boxShadow:`0 0 0 1px ${e.metadata_highlight}`},"&:hover":{borderColor:e.menu_background,boxShadow:`0 0 0 1px ${e.metadata_highlight}`}}),menu:t=>({...t,background:e.menu_background,outline:e.dropdown_border,marginTop:0}),singleValue:t=>({...t,color:e.text}),multiValue:t=>({...t,color:e.inverted_text,background:e.multiValue,cursor:"default"}),multiValueLabel:t=>({...t,color:e.inverted_text}),option:(t,n)=>({...t,background:n.isFocused?e.focused:e.menu_background&&n.isSelected?e.selected:e.menu_background,...n.isFocused&&{color:e.focus_text},color:n.isFocused?e.focus_text:e.text&&n.isSelected?e.selected_text:e.text}),placeholder:t=>({...t,color:e.text}),clearIndicator:t=>({...t,color:e.indicator_color}),dropdownIndicator:t=>({...t,color:e.indicator_color}),valueContainer:t=>({...t,cursor:"text"}),input:t=>({...t,color:e.text})}}const sM=e=>_P({components:{MuiPaper:{styleOverrides:{root:{outline:`${e.dropdown_border} !important`,background:`${e.menu_background}`,color:`${e.text}`,".MuiYearPicker-root":{".PrivatePickersYear-yearButton:hover, .Mui-selected:hover":{background:`${e.focused}`,color:`${e.focus_text}`},".Mui-selected":{background:`${e.selected}`,color:`${e.selected_text}`}},"& .MuiClock-clock":{background:`${e.clock_bg}`,outline:`${e.clock_border}`,"-webkitTextFillColor":`${e.text}`,textShadow:`${e.text_shadow}`},"& .MuiClockPicker-root .Mui-selected":{"-webkitTextFillColor":`${e.digit_selected}`,fontWeight:"bold",textShadow:"none"},"& .MuiClock-pin, .MuiClockPointer-root":{background:`${e.clock_hands}`},"& .MuiClockPointer-thumb":{background:`${e.clock_hands}`,border:`16px solid ${e.clock_hands}`}}}},MuiButtonBase:{styleOverrides:{root:{color:`${e.text} !important`,"&.MuiPickersDay-root":{background:"transparent !important",color:`${e.text} !important`},"&:hover, &.Mui-selected:hover":{background:`${e.focused} !important`,color:`${e.focus_text} !important`},"&.Mui-selected":{background:`${e.selected} !important`,color:`${e.selected_text} !important`},"&:not(.Mui-selected)":{borderColor:`${e.focused} !important`},"&.Mui-disabled":{color:`${e.disabled} !important`},"&.MuiClock-amButton, &.MuiClock-pmButton":{"-webkitTextFillColor":`${e.text} !important`,"&:hover":{"-webkitTextFillColor":`${e.clock_focus} !important`}}}}},MuiTypography:{styleOverrides:{root:{color:`${e.disabled} !important`}}}}}),Yie=e=>_P({components:{MuiInputLabel:{styleOverrides:{root:{color:`${e.text} !important`}}},MuiOutlinedInput:{styleOverrides:{notchedOutline:{border:`${e.dropdown_border} !important`}}},MuiSelect:{styleOverrides:{select:{background:`${e.element_bg}`,color:`${e.text} !important`},icon:{color:`${e.indicator_color}`}}},MuiMenu:{styleOverrides:{list:{background:`${e.background}`,color:`${e.text}`,border:`${e.dropdown_border}`}}},MuiMenuItem:{styleOverrides:{root:{"&:hover, &.Mui-selected:hover":{color:`${e.focus_text}`,background:`${e.focused}`},"&.Mui-selected":{color:`${e.selected_text}`,background:`${e.selected}`}}}}}}),O3=Pe({animation:`2s linear infinite none ${vl({"0%":{transform:"rotate(0)"},"100%":{transform:"rotate(360deg)"}})}`},"",""),$P={name:"161cgbi",styles:"max-width:16px;height:auto"},C3=e=>Pe({display:"flex",flexDirection:"column",width:"100%",background:`${e.menu_background}`,borderRadius:"5px",boxShadow:`${e.boxShadow_tiles}`,marginTop:"24px",boxSizing:"border-box",padding:"10px",gap:"10px"},"",""),mb=e=>Pe({background:`${e.menu_background}`,borderRadius:"7px",boxShadow:`${e.boxShadow_tiles}`,boxSizing:"border-box",padding:"20px",gap:"25px"},"",""),Of=e=>Pe({[`@media (max-width: ${e}px)`]:{display:"none"}},"","");var Zie={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const Xie=os(Zie);var Qie=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function lM(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(Xie[n[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("-->");return{type:"comment",comment:r!==-1?e.slice(4,r):""}}for(var o=new RegExp(Qie),i=null;(i=o.exec(e))!==null;)if(i[0].trim())if(i[1]){var a=i[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],o.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var Jie=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,eae=/^\s*$/,tae=Object.create(null);function P3(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(n){var r=[];for(var o in n)r.push(o+'="'+n[o]+'"');return r.length?" "+r.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(P3,"")+"";case"comment":return e+""}}var nae={parse:function(e,t){t||(t={}),t.components||(t.components=tae);var n,r=[],o=[],i=-1,a=!1;if(e.indexOf("<")!==0){var s=e.indexOf("<");r.push({type:"text",content:s===-1?e:e.substring(0,s)})}return e.replace(Jie,function(l,u){if(a){if(l!=="")return;a=!1}var f,h=l.charAt(1)!=="/",p=l.startsWith("");return{type:"comment",comment:r!==-1?e.slice(4,r):""}}for(var o=new RegExp(Zie),i=null;(i=o.exec(e))!==null;)if(i[0].trim())if(i[1]){var a=i[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],o.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var Xie=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Qie=/^\s*$/,Jie=Object.create(null);function O3(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(n){var r=[];for(var o in n)r.push(o+'="'+n[o]+'"');return r.length?" "+r.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(O3,"")+"";case"comment":return e+""}}var eae={parse:function(e,t){t||(t={}),t.components||(t.components=Jie);var n,r=[],o=[],i=-1,a=!1;if(e.indexOf("<")!==0){var s=e.indexOf("<");r.push({type:"text",content:s===-1?e:e.substring(0,s)})}return e.replace(Xie,function(l,u){if(a){if(l!=="")return;a=!1}var f,h=l.charAt(1)!=="/",p=l.startsWith("