@elizaos/client 1.5.12-alpha.2 → 1.5.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var aM=Object.defineProperty;var a=(e,t)=>aM(e,"name",{value:t,configurable:!0});import{c as ye,a as Sh}from"./ui-vendor-B7JxFfFk.js";function lM(e,t){for(var r=0;r<t.length;r++){const o=t[r];if(typeof o!="string"&&!Array.isArray(o)){for(const l in o)if(l!=="default"&&!(l in e)){const u=Object.getOwnPropertyDescriptor(o,l);u&&Object.defineProperty(e,l,u.get?u:{enumerable:!0,get:a(()=>o[l],"get")})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}a(lM,"_mergeNamespaces");function Vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(Vr,"getDefaultExportFromCjs");function W8(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=a(function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"a2");r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var l=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,l.get?l:{enumerable:!0,get:a(function(){return e[o]},"get")})}),r}a(W8,"getAugmentedNamespace");var Rp={exports:{}},Ml={};/**
1
+ var aM=Object.defineProperty;var a=(e,t)=>aM(e,"name",{value:t,configurable:!0});import{c as ye,a as Sp}from"./ui-vendor-B7JxFfFk.js";function lM(e,t){for(var r=0;r<t.length;r++){const o=t[r];if(typeof o!="string"&&!Array.isArray(o)){for(const l in o)if(l!=="default"&&!(l in e)){const u=Object.getOwnPropertyDescriptor(o,l);u&&Object.defineProperty(e,l,u.get?u:{enumerable:!0,get:a(()=>o[l],"get")})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}a(lM,"_mergeNamespaces");function Vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(Vr,"getDefaultExportFromCjs");function W8(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=a(function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"a2");r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var l=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,l.get?l:{enumerable:!0,get:a(function(){return e[o]},"get")})}),r}a(W8,"getAugmentedNamespace");var Rh={exports:{}},Ml={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@ var aM=Object.defineProperty;var a=(e,t)=>aM(e,"name",{value:t,configurable:!0})
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var C0;function sM(){if(C0)return Ml;C0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(o,l,u){var c=null;if(u!==void 0&&(c=""+u),l.key!==void 0&&(c=""+l.key),"key"in l){u={};for(var d in l)d!=="key"&&(u[d]=l[d])}else u=l;return l=u.ref,{$$typeof:e,type:o,key:c,ref:l!==void 0?l:null,props:u}}return a(r,"jsxProd"),Ml.Fragment=t,Ml.jsx=r,Ml.jsxs=r,Ml}a(sM,"requireReactJsxRuntime_production");var T0;function uM(){return T0||(T0=1,Rp.exports=sM()),Rp.exports}a(uM,"requireJsxRuntime");var D=uM(),Op={exports:{}},je={};/**
9
+ */var C0;function sM(){if(C0)return Ml;C0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(o,l,u){var c=null;if(u!==void 0&&(c=""+u),l.key!==void 0&&(c=""+l.key),"key"in l){u={};for(var d in l)d!=="key"&&(u[d]=l[d])}else u=l;return l=u.ref,{$$typeof:e,type:o,key:c,ref:l!==void 0?l:null,props:u}}return a(r,"jsxProd"),Ml.Fragment=t,Ml.jsx=r,Ml.jsxs=r,Ml}a(sM,"requireReactJsxRuntime_production");var T0;function uM(){return T0||(T0=1,Rh.exports=sM()),Rh.exports}a(uM,"requireJsxRuntime");var D=uM(),Oh={exports:{}},je={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@ var aM=Object.defineProperty;var a=(e,t)=>aM(e,"name",{value:t,configurable:!0})
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var R0;function cM(){if(R0)return je;R0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function b(O){return O===null||typeof O!="object"?null:(O=y&&O[y]||O["@@iterator"],typeof O=="function"?O:null)}a(b,"getIteratorFn");var x={isMounted:a(function(){return!1},"isMounted"),enqueueForceUpdate:a(function(){},"enqueueForceUpdate"),enqueueReplaceState:a(function(){},"enqueueReplaceState"),enqueueSetState:a(function(){},"enqueueSetState")},E=Object.assign,w={};function R(O,Y,de){this.props=O,this.context=Y,this.refs=w,this.updater=de||x}a(R,"Component"),R.prototype.isReactComponent={},R.prototype.setState=function(O,Y){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,Y,"setState")},R.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function C(){}a(C,"ComponentDummy"),C.prototype=R.prototype;function A(O,Y,de){this.props=O,this.context=Y,this.refs=w,this.updater=de||x}a(A,"PureComponent");var k=A.prototype=new C;k.constructor=A,E(k,R.prototype),k.isPureReactComponent=!0;var z=Array.isArray,L={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function j(O,Y,de,M,ne,me){return de=me.ref,{$$typeof:e,type:O,key:Y,ref:de!==void 0?de:null,props:me}}a(j,"ReactElement");function $(O,Y){return j(O.type,Y,void 0,void 0,void 0,O.props)}a($,"cloneAndReplaceKey");function W(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}a(W,"isValidElement");function J(O){var Y={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(de){return Y[de]})}a(J,"escape");var X=/\/+/g;function Z(O,Y){return typeof O=="object"&&O!==null&&O.key!=null?J(""+O.key):Y.toString(36)}a(Z,"getElementKey");function ce(){}a(ce,"noop$1");function q(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(ce,ce):(O.status="pending",O.then(function(Y){O.status==="pending"&&(O.status="fulfilled",O.value=Y)},function(Y){O.status==="pending"&&(O.status="rejected",O.reason=Y)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}a(q,"resolveThenable");function ae(O,Y,de,M,ne){var me=typeof O;(me==="undefined"||me==="boolean")&&(O=null);var oe=!1;if(O===null)oe=!0;else switch(me){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(O.$$typeof){case e:case t:oe=!0;break;case m:return oe=O._init,ae(oe(O._payload),Y,de,M,ne)}}if(oe)return ne=ne(O),oe=M===""?"."+Z(O,0):M,z(ne)?(de="",oe!=null&&(de=oe.replace(X,"$&/")+"/"),ae(ne,Y,de,"",function(Ce){return Ce})):ne!=null&&(W(ne)&&(ne=$(ne,de+(ne.key==null||O&&O.key===ne.key?"":(""+ne.key).replace(X,"$&/")+"/")+oe)),Y.push(ne)),1;oe=0;var K=M===""?".":M+":";if(z(O))for(var fe=0;fe<O.length;fe++)M=O[fe],me=K+Z(M,fe),oe+=ae(M,Y,de,me,ne);else if(fe=b(O),typeof fe=="function")for(O=fe.call(O),fe=0;!(M=O.next()).done;)M=M.value,me=K+Z(M,fe++),oe+=ae(M,Y,de,me,ne);else if(me==="object"){if(typeof O.then=="function")return ae(q(O),Y,de,M,ne);throw Y=String(O),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return oe}a(ae,"mapIntoArray");function I(O,Y,de){if(O==null)return O;var M=[],ne=0;return ae(O,M,"","",function(me){return Y.call(de,me,ne++)}),M}a(I,"mapChildren");function Q(O){if(O._status===-1){var Y=O._result;Y=Y(),Y.then(function(de){(O._status===0||O._status===-1)&&(O._status=1,O._result=de)},function(de){(O._status===0||O._status===-1)&&(O._status=2,O._result=de)}),O._status===-1&&(O._status=0,O._result=Y)}if(O._status===1)return O._result.default;throw O._result}a(Q,"lazyInitializer");var te=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function se(){}return a(se,"noop"),je.Children={map:I,forEach:a(function(O,Y,de){I(O,function(){Y.apply(this,arguments)},de)},"forEach"),count:a(function(O){var Y=0;return I(O,function(){Y++}),Y},"count"),toArray:a(function(O){return I(O,function(Y){return Y})||[]},"toArray"),only:a(function(O){if(!W(O))throw Error("React.Children.only expected to receive a single React element child.");return O},"only")},je.Component=R,je.Fragment=r,je.Profiler=l,je.PureComponent=A,je.StrictMode=o,je.Suspense=p,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,je.__COMPILER_RUNTIME={__proto__:null,c:a(function(O){return L.H.useMemoCache(O)},"c")},je.cache=function(O){return function(){return O.apply(null,arguments)}},je.cloneElement=function(O,Y,de){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var M=E({},O.props),ne=O.key,me=void 0;if(Y!=null)for(oe in Y.ref!==void 0&&(me=void 0),Y.key!==void 0&&(ne=""+Y.key),Y)!N.call(Y,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&Y.ref===void 0||(M[oe]=Y[oe]);var oe=arguments.length-2;if(oe===1)M.children=de;else if(1<oe){for(var K=Array(oe),fe=0;fe<oe;fe++)K[fe]=arguments[fe+2];M.children=K}return j(O.type,ne,void 0,void 0,me,M)},je.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:u,_context:O},O},je.createElement=function(O,Y,de){var M,ne={},me=null;if(Y!=null)for(M in Y.key!==void 0&&(me=""+Y.key),Y)N.call(Y,M)&&M!=="key"&&M!=="__self"&&M!=="__source"&&(ne[M]=Y[M]);var oe=arguments.length-2;if(oe===1)ne.children=de;else if(1<oe){for(var K=Array(oe),fe=0;fe<oe;fe++)K[fe]=arguments[fe+2];ne.children=K}if(O&&O.defaultProps)for(M in oe=O.defaultProps,oe)ne[M]===void 0&&(ne[M]=oe[M]);return j(O,me,void 0,void 0,null,ne)},je.createRef=function(){return{current:null}},je.forwardRef=function(O){return{$$typeof:d,render:O}},je.isValidElement=W,je.lazy=function(O){return{$$typeof:m,_payload:{_status:-1,_result:O},_init:Q}},je.memo=function(O,Y){return{$$typeof:h,type:O,compare:Y===void 0?null:Y}},je.startTransition=function(O){var Y=L.T,de={};L.T=de;try{var M=O(),ne=L.S;ne!==null&&ne(de,M),typeof M=="object"&&M!==null&&typeof M.then=="function"&&M.then(se,te)}catch(me){te(me)}finally{L.T=Y}},je.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},je.use=function(O){return L.H.use(O)},je.useActionState=function(O,Y,de){return L.H.useActionState(O,Y,de)},je.useCallback=function(O,Y){return L.H.useCallback(O,Y)},je.useContext=function(O){return L.H.useContext(O)},je.useDebugValue=function(){},je.useDeferredValue=function(O,Y){return L.H.useDeferredValue(O,Y)},je.useEffect=function(O,Y,de){var M=L.H;if(typeof de=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return M.useEffect(O,Y)},je.useId=function(){return L.H.useId()},je.useImperativeHandle=function(O,Y,de){return L.H.useImperativeHandle(O,Y,de)},je.useInsertionEffect=function(O,Y){return L.H.useInsertionEffect(O,Y)},je.useLayoutEffect=function(O,Y){return L.H.useLayoutEffect(O,Y)},je.useMemo=function(O,Y){return L.H.useMemo(O,Y)},je.useOptimistic=function(O,Y){return L.H.useOptimistic(O,Y)},je.useReducer=function(O,Y,de){return L.H.useReducer(O,Y,de)},je.useRef=function(O){return L.H.useRef(O)},je.useState=function(O){return L.H.useState(O)},je.useSyncExternalStore=function(O,Y,de){return L.H.useSyncExternalStore(O,Y,de)},je.useTransition=function(){return L.H.useTransition()},je.version="19.1.1",je}a(cM,"requireReact_production");var O0;function Oc(){return O0||(O0=1,Op.exports=cM()),Op.exports}a(Oc,"requireReact");var S=Oc();const _e=Vr(S),fm=lM({__proto__:null,default:_e},[S]);var Ap={exports:{}},_l={},Mp={exports:{}},_p={};/**
17
+ */var R0;function cM(){if(R0)return je;R0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function b(O){return O===null||typeof O!="object"?null:(O=y&&O[y]||O["@@iterator"],typeof O=="function"?O:null)}a(b,"getIteratorFn");var x={isMounted:a(function(){return!1},"isMounted"),enqueueForceUpdate:a(function(){},"enqueueForceUpdate"),enqueueReplaceState:a(function(){},"enqueueReplaceState"),enqueueSetState:a(function(){},"enqueueSetState")},E=Object.assign,w={};function R(O,Y,de){this.props=O,this.context=Y,this.refs=w,this.updater=de||x}a(R,"Component"),R.prototype.isReactComponent={},R.prototype.setState=function(O,Y){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,Y,"setState")},R.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function C(){}a(C,"ComponentDummy"),C.prototype=R.prototype;function A(O,Y,de){this.props=O,this.context=Y,this.refs=w,this.updater=de||x}a(A,"PureComponent");var k=A.prototype=new C;k.constructor=A,E(k,R.prototype),k.isPureReactComponent=!0;var z=Array.isArray,L={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function j(O,Y,de,M,ne,me){return de=me.ref,{$$typeof:e,type:O,key:Y,ref:de!==void 0?de:null,props:me}}a(j,"ReactElement");function $(O,Y){return j(O.type,Y,void 0,void 0,void 0,O.props)}a($,"cloneAndReplaceKey");function W(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}a(W,"isValidElement");function J(O){var Y={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(de){return Y[de]})}a(J,"escape");var X=/\/+/g;function Z(O,Y){return typeof O=="object"&&O!==null&&O.key!=null?J(""+O.key):Y.toString(36)}a(Z,"getElementKey");function ce(){}a(ce,"noop$1");function q(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(ce,ce):(O.status="pending",O.then(function(Y){O.status==="pending"&&(O.status="fulfilled",O.value=Y)},function(Y){O.status==="pending"&&(O.status="rejected",O.reason=Y)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}a(q,"resolveThenable");function ae(O,Y,de,M,ne){var me=typeof O;(me==="undefined"||me==="boolean")&&(O=null);var oe=!1;if(O===null)oe=!0;else switch(me){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(O.$$typeof){case e:case t:oe=!0;break;case m:return oe=O._init,ae(oe(O._payload),Y,de,M,ne)}}if(oe)return ne=ne(O),oe=M===""?"."+Z(O,0):M,z(ne)?(de="",oe!=null&&(de=oe.replace(X,"$&/")+"/"),ae(ne,Y,de,"",function(Ce){return Ce})):ne!=null&&(W(ne)&&(ne=$(ne,de+(ne.key==null||O&&O.key===ne.key?"":(""+ne.key).replace(X,"$&/")+"/")+oe)),Y.push(ne)),1;oe=0;var K=M===""?".":M+":";if(z(O))for(var fe=0;fe<O.length;fe++)M=O[fe],me=K+Z(M,fe),oe+=ae(M,Y,de,me,ne);else if(fe=b(O),typeof fe=="function")for(O=fe.call(O),fe=0;!(M=O.next()).done;)M=M.value,me=K+Z(M,fe++),oe+=ae(M,Y,de,me,ne);else if(me==="object"){if(typeof O.then=="function")return ae(q(O),Y,de,M,ne);throw Y=String(O),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return oe}a(ae,"mapIntoArray");function I(O,Y,de){if(O==null)return O;var M=[],ne=0;return ae(O,M,"","",function(me){return Y.call(de,me,ne++)}),M}a(I,"mapChildren");function Q(O){if(O._status===-1){var Y=O._result;Y=Y(),Y.then(function(de){(O._status===0||O._status===-1)&&(O._status=1,O._result=de)},function(de){(O._status===0||O._status===-1)&&(O._status=2,O._result=de)}),O._status===-1&&(O._status=0,O._result=Y)}if(O._status===1)return O._result.default;throw O._result}a(Q,"lazyInitializer");var te=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function se(){}return a(se,"noop"),je.Children={map:I,forEach:a(function(O,Y,de){I(O,function(){Y.apply(this,arguments)},de)},"forEach"),count:a(function(O){var Y=0;return I(O,function(){Y++}),Y},"count"),toArray:a(function(O){return I(O,function(Y){return Y})||[]},"toArray"),only:a(function(O){if(!W(O))throw Error("React.Children.only expected to receive a single React element child.");return O},"only")},je.Component=R,je.Fragment=r,je.Profiler=l,je.PureComponent=A,je.StrictMode=o,je.Suspense=h,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,je.__COMPILER_RUNTIME={__proto__:null,c:a(function(O){return L.H.useMemoCache(O)},"c")},je.cache=function(O){return function(){return O.apply(null,arguments)}},je.cloneElement=function(O,Y,de){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var M=E({},O.props),ne=O.key,me=void 0;if(Y!=null)for(oe in Y.ref!==void 0&&(me=void 0),Y.key!==void 0&&(ne=""+Y.key),Y)!N.call(Y,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&Y.ref===void 0||(M[oe]=Y[oe]);var oe=arguments.length-2;if(oe===1)M.children=de;else if(1<oe){for(var K=Array(oe),fe=0;fe<oe;fe++)K[fe]=arguments[fe+2];M.children=K}return j(O.type,ne,void 0,void 0,me,M)},je.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:u,_context:O},O},je.createElement=function(O,Y,de){var M,ne={},me=null;if(Y!=null)for(M in Y.key!==void 0&&(me=""+Y.key),Y)N.call(Y,M)&&M!=="key"&&M!=="__self"&&M!=="__source"&&(ne[M]=Y[M]);var oe=arguments.length-2;if(oe===1)ne.children=de;else if(1<oe){for(var K=Array(oe),fe=0;fe<oe;fe++)K[fe]=arguments[fe+2];ne.children=K}if(O&&O.defaultProps)for(M in oe=O.defaultProps,oe)ne[M]===void 0&&(ne[M]=oe[M]);return j(O,me,void 0,void 0,null,ne)},je.createRef=function(){return{current:null}},je.forwardRef=function(O){return{$$typeof:d,render:O}},je.isValidElement=W,je.lazy=function(O){return{$$typeof:m,_payload:{_status:-1,_result:O},_init:Q}},je.memo=function(O,Y){return{$$typeof:p,type:O,compare:Y===void 0?null:Y}},je.startTransition=function(O){var Y=L.T,de={};L.T=de;try{var M=O(),ne=L.S;ne!==null&&ne(de,M),typeof M=="object"&&M!==null&&typeof M.then=="function"&&M.then(se,te)}catch(me){te(me)}finally{L.T=Y}},je.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},je.use=function(O){return L.H.use(O)},je.useActionState=function(O,Y,de){return L.H.useActionState(O,Y,de)},je.useCallback=function(O,Y){return L.H.useCallback(O,Y)},je.useContext=function(O){return L.H.useContext(O)},je.useDebugValue=function(){},je.useDeferredValue=function(O,Y){return L.H.useDeferredValue(O,Y)},je.useEffect=function(O,Y,de){var M=L.H;if(typeof de=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return M.useEffect(O,Y)},je.useId=function(){return L.H.useId()},je.useImperativeHandle=function(O,Y,de){return L.H.useImperativeHandle(O,Y,de)},je.useInsertionEffect=function(O,Y){return L.H.useInsertionEffect(O,Y)},je.useLayoutEffect=function(O,Y){return L.H.useLayoutEffect(O,Y)},je.useMemo=function(O,Y){return L.H.useMemo(O,Y)},je.useOptimistic=function(O,Y){return L.H.useOptimistic(O,Y)},je.useReducer=function(O,Y,de){return L.H.useReducer(O,Y,de)},je.useRef=function(O){return L.H.useRef(O)},je.useState=function(O){return L.H.useState(O)},je.useSyncExternalStore=function(O,Y,de){return L.H.useSyncExternalStore(O,Y,de)},je.useTransition=function(){return L.H.useTransition()},je.version="19.1.1",je}a(cM,"requireReact_production");var O0;function Oc(){return O0||(O0=1,Oh.exports=cM()),Oh.exports}a(Oc,"requireReact");var S=Oc();const _e=Vr(S),fm=lM({__proto__:null,default:_e},[S]);var Ah={exports:{}},_l={},Mh={exports:{}},_h={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@ var aM=Object.defineProperty;var a=(e,t)=>aM(e,"name",{value:t,configurable:!0})
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var A0;function fM(){return A0||(A0=1,(function(e){function t(I,Q){var te=I.length;I.push(Q);e:for(;0<te;){var se=te-1>>>1,O=I[se];if(0<l(O,Q))I[se]=Q,I[te]=O,te=se;else break e}}a(t,"push");function r(I){return I.length===0?null:I[0]}a(r,"peek");function o(I){if(I.length===0)return null;var Q=I[0],te=I.pop();if(te!==Q){I[0]=te;e:for(var se=0,O=I.length,Y=O>>>1;se<Y;){var de=2*(se+1)-1,M=I[de],ne=de+1,me=I[ne];if(0>l(M,te))ne<O&&0>l(me,M)?(I[se]=me,I[ne]=te,se=ne):(I[se]=M,I[de]=te,se=de);else if(ne<O&&0>l(me,te))I[se]=me,I[ne]=te,se=ne;else break e}}return Q}a(o,"pop");function l(I,Q){var te=I.sortIndex-Q.sortIndex;return te!==0?te:I.id-Q.id}if(a(l,"compare"),e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var p=[],h=[],m=1,y=null,b=3,x=!1,E=!1,w=!1,R=!1,C=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function z(I){for(var Q=r(h);Q!==null;){if(Q.callback===null)o(h);else if(Q.startTime<=I)o(h),Q.sortIndex=Q.expirationTime,t(p,Q);else break;Q=r(h)}}a(z,"advanceTimers");function L(I){if(w=!1,z(I),!E)if(r(p)!==null)E=!0,N||(N=!0,Z());else{var Q=r(h);Q!==null&&ae(L,Q.startTime-I)}}a(L,"handleTimeout");var N=!1,j=-1,$=5,W=-1;function J(){return R?!0:!(e.unstable_now()-W<$)}a(J,"shouldYieldToHost");function X(){if(R=!1,N){var I=e.unstable_now();W=I;var Q=!0;try{e:{E=!1,w&&(w=!1,A(j),j=-1),x=!0;var te=b;try{t:{for(z(I),y=r(p);y!==null&&!(y.expirationTime>I&&J());){var se=y.callback;if(typeof se=="function"){y.callback=null,b=y.priorityLevel;var O=se(y.expirationTime<=I);if(I=e.unstable_now(),typeof O=="function"){y.callback=O,z(I),Q=!0;break t}y===r(p)&&o(p),z(I)}else o(p);y=r(p)}if(y!==null)Q=!0;else{var Y=r(h);Y!==null&&ae(L,Y.startTime-I),Q=!1}}break e}finally{y=null,b=te,x=!1}Q=void 0}}finally{Q?Z():N=!1}}}a(X,"performWorkUntilDeadline");var Z;if(typeof k=="function")Z=a(function(){k(X)},"schedulePerformWorkUntilDeadline");else if(typeof MessageChannel<"u"){var ce=new MessageChannel,q=ce.port2;ce.port1.onmessage=X,Z=a(function(){q.postMessage(null)},"schedulePerformWorkUntilDeadline")}else Z=a(function(){C(X,0)},"schedulePerformWorkUntilDeadline");function ae(I,Q){j=C(function(){I(e.unstable_now())},Q)}a(ae,"requestHostTimeout"),e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(I){switch(b){case 1:case 2:case 3:var Q=3;break;default:Q=b}var te=b;b=Q;try{return I()}finally{b=te}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(I,Q){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var te=b;b=I;try{return Q()}finally{b=te}},e.unstable_scheduleCallback=function(I,Q,te){var se=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?se+te:se):te=se,I){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=te+O,I={id:m++,callback:Q,priorityLevel:I,startTime:te,expirationTime:O,sortIndex:-1},te>se?(I.sortIndex=te,t(h,I),r(p)===null&&I===r(h)&&(w?(A(j),j=-1):w=!0,ae(L,te-se))):(I.sortIndex=O,t(p,I),E||x||(E=!0,N||(N=!0,Z()))),I},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(I){var Q=b;return function(){var te=b;b=Q;try{return I.apply(this,arguments)}finally{b=te}}}})(_p)),_p}a(fM,"requireScheduler_production");var M0;function dM(){return M0||(M0=1,Mp.exports=fM()),Mp.exports}a(dM,"requireScheduler");var kp={exports:{}},Bt={};/**
25
+ */var A0;function fM(){return A0||(A0=1,(function(e){function t(I,Q){var te=I.length;I.push(Q);e:for(;0<te;){var se=te-1>>>1,O=I[se];if(0<l(O,Q))I[se]=Q,I[te]=O,te=se;else break e}}a(t,"push");function r(I){return I.length===0?null:I[0]}a(r,"peek");function o(I){if(I.length===0)return null;var Q=I[0],te=I.pop();if(te!==Q){I[0]=te;e:for(var se=0,O=I.length,Y=O>>>1;se<Y;){var de=2*(se+1)-1,M=I[de],ne=de+1,me=I[ne];if(0>l(M,te))ne<O&&0>l(me,M)?(I[se]=me,I[ne]=te,se=ne):(I[se]=M,I[de]=te,se=de);else if(ne<O&&0>l(me,te))I[se]=me,I[ne]=te,se=ne;else break e}}return Q}a(o,"pop");function l(I,Q){var te=I.sortIndex-Q.sortIndex;return te!==0?te:I.id-Q.id}if(a(l,"compare"),e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],p=[],m=1,y=null,b=3,x=!1,E=!1,w=!1,R=!1,C=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function z(I){for(var Q=r(p);Q!==null;){if(Q.callback===null)o(p);else if(Q.startTime<=I)o(p),Q.sortIndex=Q.expirationTime,t(h,Q);else break;Q=r(p)}}a(z,"advanceTimers");function L(I){if(w=!1,z(I),!E)if(r(h)!==null)E=!0,N||(N=!0,Z());else{var Q=r(p);Q!==null&&ae(L,Q.startTime-I)}}a(L,"handleTimeout");var N=!1,j=-1,$=5,W=-1;function J(){return R?!0:!(e.unstable_now()-W<$)}a(J,"shouldYieldToHost");function X(){if(R=!1,N){var I=e.unstable_now();W=I;var Q=!0;try{e:{E=!1,w&&(w=!1,A(j),j=-1),x=!0;var te=b;try{t:{for(z(I),y=r(h);y!==null&&!(y.expirationTime>I&&J());){var se=y.callback;if(typeof se=="function"){y.callback=null,b=y.priorityLevel;var O=se(y.expirationTime<=I);if(I=e.unstable_now(),typeof O=="function"){y.callback=O,z(I),Q=!0;break t}y===r(h)&&o(h),z(I)}else o(h);y=r(h)}if(y!==null)Q=!0;else{var Y=r(p);Y!==null&&ae(L,Y.startTime-I),Q=!1}}break e}finally{y=null,b=te,x=!1}Q=void 0}}finally{Q?Z():N=!1}}}a(X,"performWorkUntilDeadline");var Z;if(typeof k=="function")Z=a(function(){k(X)},"schedulePerformWorkUntilDeadline");else if(typeof MessageChannel<"u"){var ce=new MessageChannel,q=ce.port2;ce.port1.onmessage=X,Z=a(function(){q.postMessage(null)},"schedulePerformWorkUntilDeadline")}else Z=a(function(){C(X,0)},"schedulePerformWorkUntilDeadline");function ae(I,Q){j=C(function(){I(e.unstable_now())},Q)}a(ae,"requestHostTimeout"),e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(I){switch(b){case 1:case 2:case 3:var Q=3;break;default:Q=b}var te=b;b=Q;try{return I()}finally{b=te}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(I,Q){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var te=b;b=I;try{return Q()}finally{b=te}},e.unstable_scheduleCallback=function(I,Q,te){var se=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?se+te:se):te=se,I){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=te+O,I={id:m++,callback:Q,priorityLevel:I,startTime:te,expirationTime:O,sortIndex:-1},te>se?(I.sortIndex=te,t(p,I),r(h)===null&&I===r(p)&&(w?(A(j),j=-1):w=!0,ae(L,te-se))):(I.sortIndex=O,t(h,I),E||x||(E=!0,N||(N=!0,Z()))),I},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(I){var Q=b;return function(){var te=b;b=Q;try{return I.apply(this,arguments)}finally{b=te}}}})(_h)),_h}a(fM,"requireScheduler_production");var M0;function dM(){return M0||(M0=1,Mh.exports=fM()),Mh.exports}a(dM,"requireScheduler");var kh={exports:{}},Bt={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@ var aM=Object.defineProperty;var a=(e,t)=>aM(e,"name",{value:t,configurable:!0})
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var _0;function pM(){if(_0)return Bt;_0=1;var e=Oc();function t(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}a(t,"formatProdErrorMessage");function r(){}a(r,"noop");var o={d:{f:r,r:a(function(){throw Error(t(522))},"r"),D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function u(p,h,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:y==null?null:""+y,children:p,containerInfo:h,implementation:m}}a(u,"createPortal$1");var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return a(d,"getCrossOriginStringAs"),Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Bt.createPortal=function(p,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return u(p,h,null,m)},Bt.flushSync=function(p){var h=c.T,m=o.p;try{if(c.T=null,o.p=2,p)return p()}finally{c.T=h,o.p=m,o.d.f()}},Bt.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(p,h))},Bt.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},Bt.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var m=h.as,y=d(m,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?o.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:x}):m==="script"&&o.d.X(p,{crossOrigin:y,integrity:b,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Bt.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=d(h.as,h.crossOrigin);o.d.M(p,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(p)},Bt.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,y=d(m,h.crossOrigin);o.d.L(p,m,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Bt.preloadModule=function(p,h){if(typeof p=="string")if(h){var m=d(h.as,h.crossOrigin);o.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(p)},Bt.requestFormReset=function(p){o.d.r(p)},Bt.unstable_batchedUpdates=function(p,h){return p(h)},Bt.useFormState=function(p,h,m){return c.H.useFormState(p,h,m)},Bt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Bt.version="19.1.1",Bt}a(pM,"requireReactDom_production");var k0;function JS(){if(k0)return kp.exports;k0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return a(e,"checkDCE"),e(),kp.exports=pM(),kp.exports}a(JS,"requireReactDom");var D0;function hM(){if(D0)return _l;D0=1;/**
33
+ */var _0;function hM(){if(_0)return Bt;_0=1;var e=Oc();function t(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)p+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}a(t,"formatProdErrorMessage");function r(){}a(r,"noop");var o={d:{f:r,r:a(function(){throw Error(t(522))},"r"),D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function u(h,p,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:y==null?null:""+y,children:h,containerInfo:p,implementation:m}}a(u,"createPortal$1");var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return a(d,"getCrossOriginStringAs"),Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Bt.createPortal=function(h,p){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return u(h,p,null,m)},Bt.flushSync=function(h){var p=c.T,m=o.p;try{if(c.T=null,o.p=2,h)return h()}finally{c.T=p,o.p=m,o.d.f()}},Bt.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(h,p))},Bt.prefetchDNS=function(h){typeof h=="string"&&o.d.D(h)},Bt.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var m=p.as,y=d(m,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;m==="style"?o.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:x}):m==="script"&&o.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Bt.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var m=d(p.as,p.crossOrigin);o.d.M(h,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(h)},Bt.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var m=p.as,y=d(m,p.crossOrigin);o.d.L(h,m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Bt.preloadModule=function(h,p){if(typeof h=="string")if(p){var m=d(p.as,p.crossOrigin);o.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(h)},Bt.requestFormReset=function(h){o.d.r(h)},Bt.unstable_batchedUpdates=function(h,p){return h(p)},Bt.useFormState=function(h,p,m){return c.H.useFormState(h,p,m)},Bt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Bt.version="19.1.1",Bt}a(hM,"requireReactDom_production");var k0;function JS(){if(k0)return kh.exports;k0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return a(e,"checkDCE"),e(),kh.exports=hM(),kh.exports}a(JS,"requireReactDom");var D0;function pM(){if(D0)return _l;D0=1;/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,15 +38,15 @@ var aM=Object.defineProperty;var a=(e,t)=>aM(e,"name",{value:t,configurable:!0})
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var e=dM(),t=Oc(),r=JS();function o(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}a(o,"formatProdErrorMessage");function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}a(l,"isValidContainer");function u(n){var i=n,s=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(s=i.return),n=i.return;while(n)}return i.tag===3?s:null}a(u,"getNearestMountedFiber");function c(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}a(c,"getSuspenseInstanceFromFiber");function d(n){if(u(n)!==n)throw Error(o(188))}a(d,"assertIsMounted");function p(n){var i=n.alternate;if(!i){if(i=u(n),i===null)throw Error(o(188));return i!==n?null:n}for(var s=n,f=i;;){var g=s.return;if(g===null)break;var v=g.alternate;if(v===null){if(f=g.return,f!==null){s=f;continue}break}if(g.child===v.child){for(v=g.child;v;){if(v===s)return d(g),n;if(v===f)return d(g),i;v=v.sibling}throw Error(o(188))}if(s.return!==f.return)s=g,f=v;else{for(var T=!1,_=g.child;_;){if(_===s){T=!0,s=g,f=v;break}if(_===f){T=!0,f=g,s=v;break}_=_.sibling}if(!T){for(_=v.child;_;){if(_===s){T=!0,s=v,f=g;break}if(_===f){T=!0,f=v,s=g;break}_=_.sibling}if(!T)throw Error(o(189))}}if(s.alternate!==f)throw Error(o(190))}if(s.tag!==3)throw Error(o(188));return s.stateNode.current===s?n:i}a(p,"findCurrentFiberUsingSlowPath");function h(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=h(n),i!==null)return i;n=n.sibling}return null}a(h,"findCurrentHostFiberImpl");var m=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),A=Symbol.for("react.consumer"),k=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function Z(n){return n===null||typeof n!="object"?null:(n=X&&n[X]||n["@@iterator"],typeof n=="function"?n:null)}a(Z,"getIteratorFn");var ce=Symbol.for("react.client.reference");function q(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ce?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case E:return"Fragment";case R:return"Profiler";case w:return"StrictMode";case L:return"Suspense";case N:return"SuspenseList";case W:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case x:return"Portal";case k:return(n.displayName||"Context")+".Provider";case A:return(n._context.displayName||"Context")+".Consumer";case z:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case j:return i=n.displayName||null,i!==null?i:q(n.type)||"Memo";case $:i=n._payload,n=n._init;try{return q(n(i))}catch{}}return null}a(q,"getComponentNameFromType");var ae=Array.isArray,I=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},se=[],O=-1;function Y(n){return{current:n}}a(Y,"createCursor");function de(n){0>O||(n.current=se[O],se[O]=null,O--)}a(de,"pop");function M(n,i){O++,se[O]=n.current,n.current=i}a(M,"push");var ne=Y(null),me=Y(null),oe=Y(null),K=Y(null);function fe(n,i){switch(M(oe,i),M(me,n),M(ne,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?Zb(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=Zb(i),n=Jb(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}de(ne),M(ne,n)}a(fe,"pushHostContainer");function Ce(){de(ne),de(me),de(oe)}a(Ce,"popHostContainer");function Te(n){n.memoizedState!==null&&M(K,n);var i=ne.current,s=Jb(i,n.type);i!==s&&(M(me,n),M(ne,s))}a(Te,"pushHostContext");function Pe(n){me.current===n&&(de(ne),de(me)),K.current===n&&(de(K),Cl._currentValue=te)}a(Pe,"popHostContext");var qe=Object.prototype.hasOwnProperty,Ie=e.unstable_scheduleCallback,ut=e.unstable_cancelCallback,Kt=e.unstable_shouldYield,an=e.unstable_requestPaint,St=e.unstable_now,At=e.unstable_getCurrentPriorityLevel,$r=e.unstable_ImmediatePriority,Ai=e.unstable_UserBlockingPriority,xn=e.unstable_NormalPriority,fo=e.unstable_LowPriority,po=e.unstable_IdlePriority,pf=e.log,hf=e.unstable_setDisableYieldValue,re=null,pe=null;function Oe(n){if(typeof pf=="function"&&hf(n),pe&&typeof pe.setStrictMode=="function")try{pe.setStrictMode(re,n)}catch{}}a(Oe,"setIsStrictModeForDevtools");var ke=Math.clz32?Math.clz32:xr,Je=Math.log,ln=Math.LN2;function xr(n){return n>>>=0,n===0?32:31-(Je(n)/ln|0)|0}a(xr,"clz32Fallback");var Qt=256,Zn=4194304;function sn(n){var i=n&42;if(i!==0)return i;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}a(sn,"getHighestPriorityLanes");function Mt(n,i,s){var f=n.pendingLanes;if(f===0)return 0;var g=0,v=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var _=f&134217727;return _!==0?(f=_&~v,f!==0?g=sn(f):(T&=_,T!==0?g=sn(T):s||(s=_&~n,s!==0&&(g=sn(s))))):(_=f&~v,_!==0?g=sn(_):T!==0?g=sn(T):s||(s=f&~n,s!==0&&(g=sn(s)))),g===0?0:i!==0&&i!==g&&(i&v)===0&&(v=g&-g,s=i&-i,v>=s||v===32&&(s&4194048)!==0)?i:g}a(Mt,"getNextLanes");function wn(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}a(wn,"checkIfRootIsPrerendering");function jn(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}a(jn,"computeExpirationTime");function Lg(){var n=Qt;return Qt<<=1,(Qt&4194048)===0&&(Qt=256),n}a(Lg,"claimNextTransitionLane");function zg(){var n=Zn;return Zn<<=1,(Zn&62914560)===0&&(Zn=4194304),n}a(zg,"claimNextRetryLane");function mf(n){for(var i=[],s=0;31>s;s++)i.push(n);return i}a(mf,"createLaneMap");function Pa(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}a(Pa,"markRootUpdated$1");function KR(n,i,s,f,g,v){var T=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var _=n.entanglements,P=n.expirationTimes,F=n.hiddenUpdates;for(s=T&~s;0<s;){var ie=31-ke(s),ue=1<<ie;_[ie]=0,P[ie]=-1;var V=F[ie];if(V!==null)for(F[ie]=null,ie=0;ie<V.length;ie++){var G=V[ie];G!==null&&(G.lane&=-536870913)}s&=~ue}f!==0&&Ig(n,f,0),v!==0&&g===0&&n.tag!==0&&(n.suspendedLanes|=v&~(T&~i))}a(KR,"markRootFinished");function Ig(n,i,s){n.pendingLanes|=i,n.suspendedLanes&=~i;var f=31-ke(i);n.entangledLanes|=i,n.entanglements[f]=n.entanglements[f]|1073741824|s&4194090}a(Ig,"markSpawnedDeferredLane");function jg(n,i){var s=n.entangledLanes|=i;for(n=n.entanglements;s;){var f=31-ke(s),g=1<<f;g&i|n[f]&i&&(n[f]|=i),s&=~g}}a(jg,"markRootEntangled");function gf(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}a(gf,"getBumpedLaneForHydrationByLane");function yf(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}a(yf,"lanesToEventPriority");function Ug(){var n=Q.p;return n!==0?n:(n=window.event,n===void 0?32:v0(n.type))}a(Ug,"resolveUpdatePriority");function QR(n,i){var s=Q.p;try{return Q.p=n,i()}finally{Q.p=s}}a(QR,"runWithPriority");var Yr=Math.random().toString(36).slice(2),jt="__reactFiber$"+Yr,Xt="__reactProps$"+Yr,ho="__reactContainer$"+Yr,vf="__reactEvents$"+Yr,XR="__reactListeners$"+Yr,WR="__reactHandles$"+Yr,Bg="__reactResources$"+Yr,La="__reactMarker$"+Yr;function bf(n){delete n[jt],delete n[Xt],delete n[vf],delete n[XR],delete n[WR]}a(bf,"detachDeletedInstance");function mo(n){var i=n[jt];if(i)return i;for(var s=n.parentNode;s;){if(i=s[ho]||s[jt]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(n=r0(n);n!==null;){if(s=n[jt])return s;n=r0(n)}return i}n=s,s=n.parentNode}return null}a(mo,"getClosestInstanceFromNode");function go(n){if(n=n[jt]||n[ho]){var i=n.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return n}return null}a(go,"getInstanceFromNode");function za(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(o(33))}a(za,"getNodeFromInstance");function yo(n){var i=n[Bg];return i||(i=n[Bg]={hoistableStyles:new Map,hoistableScripts:new Map}),i}a(yo,"getResourcesFromRoot");function _t(n){n[La]=!0}a(_t,"markNodeAsHoistable");var Hg=new Set,Fg={};function Mi(n,i){vo(n,i),vo(n+"Capture",i)}a(Mi,"registerTwoPhaseEvent");function vo(n,i){for(Fg[n]=i,n=0;n<i.length;n++)Hg.add(i[n])}a(vo,"registerDirectEvent");var ZR=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),qg={},Vg={};function JR(n){return qe.call(Vg,n)?!0:qe.call(qg,n)?!1:ZR.test(n)?Vg[n]=!0:(qg[n]=!0,!1)}a(JR,"isAttributeNameSafe");function Os(n,i,s){if(JR(i))if(s===null)n.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var f=i.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+s)}}a(Os,"setValueForAttribute");function As(n,i,s){if(s===null)n.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+s)}}a(As,"setValueForKnownAttribute");function wr(n,i,s,f){if(f===null)n.removeAttribute(s);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(i,s,""+f)}}a(wr,"setValueForNamespacedAttribute");var Sf,Gg;function bo(n){if(Sf===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);Sf=i&&i[1]||"",Gg=-1<s.stack.indexOf(`
41
+ */var e=dM(),t=Oc(),r=JS();function o(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}a(o,"formatProdErrorMessage");function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}a(l,"isValidContainer");function u(n){var i=n,s=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(s=i.return),n=i.return;while(n)}return i.tag===3?s:null}a(u,"getNearestMountedFiber");function c(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}a(c,"getSuspenseInstanceFromFiber");function d(n){if(u(n)!==n)throw Error(o(188))}a(d,"assertIsMounted");function h(n){var i=n.alternate;if(!i){if(i=u(n),i===null)throw Error(o(188));return i!==n?null:n}for(var s=n,f=i;;){var g=s.return;if(g===null)break;var v=g.alternate;if(v===null){if(f=g.return,f!==null){s=f;continue}break}if(g.child===v.child){for(v=g.child;v;){if(v===s)return d(g),n;if(v===f)return d(g),i;v=v.sibling}throw Error(o(188))}if(s.return!==f.return)s=g,f=v;else{for(var T=!1,_=g.child;_;){if(_===s){T=!0,s=g,f=v;break}if(_===f){T=!0,f=g,s=v;break}_=_.sibling}if(!T){for(_=v.child;_;){if(_===s){T=!0,s=v,f=g;break}if(_===f){T=!0,f=v,s=g;break}_=_.sibling}if(!T)throw Error(o(189))}}if(s.alternate!==f)throw Error(o(190))}if(s.tag!==3)throw Error(o(188));return s.stateNode.current===s?n:i}a(h,"findCurrentFiberUsingSlowPath");function p(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=p(n),i!==null)return i;n=n.sibling}return null}a(p,"findCurrentHostFiberImpl");var m=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),A=Symbol.for("react.consumer"),k=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function Z(n){return n===null||typeof n!="object"?null:(n=X&&n[X]||n["@@iterator"],typeof n=="function"?n:null)}a(Z,"getIteratorFn");var ce=Symbol.for("react.client.reference");function q(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ce?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case E:return"Fragment";case R:return"Profiler";case w:return"StrictMode";case L:return"Suspense";case N:return"SuspenseList";case W:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case x:return"Portal";case k:return(n.displayName||"Context")+".Provider";case A:return(n._context.displayName||"Context")+".Consumer";case z:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case j:return i=n.displayName||null,i!==null?i:q(n.type)||"Memo";case $:i=n._payload,n=n._init;try{return q(n(i))}catch{}}return null}a(q,"getComponentNameFromType");var ae=Array.isArray,I=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},se=[],O=-1;function Y(n){return{current:n}}a(Y,"createCursor");function de(n){0>O||(n.current=se[O],se[O]=null,O--)}a(de,"pop");function M(n,i){O++,se[O]=n.current,n.current=i}a(M,"push");var ne=Y(null),me=Y(null),oe=Y(null),K=Y(null);function fe(n,i){switch(M(oe,i),M(me,n),M(ne,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?Zb(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=Zb(i),n=Jb(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}de(ne),M(ne,n)}a(fe,"pushHostContainer");function Ce(){de(ne),de(me),de(oe)}a(Ce,"popHostContainer");function Te(n){n.memoizedState!==null&&M(K,n);var i=ne.current,s=Jb(i,n.type);i!==s&&(M(me,n),M(ne,s))}a(Te,"pushHostContext");function Pe(n){me.current===n&&(de(ne),de(me)),K.current===n&&(de(K),Cl._currentValue=te)}a(Pe,"popHostContext");var qe=Object.prototype.hasOwnProperty,Ie=e.unstable_scheduleCallback,ut=e.unstable_cancelCallback,Kt=e.unstable_shouldYield,an=e.unstable_requestPaint,St=e.unstable_now,At=e.unstable_getCurrentPriorityLevel,$r=e.unstable_ImmediatePriority,Ai=e.unstable_UserBlockingPriority,xn=e.unstable_NormalPriority,fo=e.unstable_LowPriority,ho=e.unstable_IdlePriority,hf=e.log,pf=e.unstable_setDisableYieldValue,re=null,he=null;function Oe(n){if(typeof hf=="function"&&pf(n),he&&typeof he.setStrictMode=="function")try{he.setStrictMode(re,n)}catch{}}a(Oe,"setIsStrictModeForDevtools");var ke=Math.clz32?Math.clz32:xr,Je=Math.log,ln=Math.LN2;function xr(n){return n>>>=0,n===0?32:31-(Je(n)/ln|0)|0}a(xr,"clz32Fallback");var Qt=256,Zn=4194304;function sn(n){var i=n&42;if(i!==0)return i;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}a(sn,"getHighestPriorityLanes");function Mt(n,i,s){var f=n.pendingLanes;if(f===0)return 0;var g=0,v=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var _=f&134217727;return _!==0?(f=_&~v,f!==0?g=sn(f):(T&=_,T!==0?g=sn(T):s||(s=_&~n,s!==0&&(g=sn(s))))):(_=f&~v,_!==0?g=sn(_):T!==0?g=sn(T):s||(s=f&~n,s!==0&&(g=sn(s)))),g===0?0:i!==0&&i!==g&&(i&v)===0&&(v=g&-g,s=i&-i,v>=s||v===32&&(s&4194048)!==0)?i:g}a(Mt,"getNextLanes");function wn(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}a(wn,"checkIfRootIsPrerendering");function jn(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}a(jn,"computeExpirationTime");function Lg(){var n=Qt;return Qt<<=1,(Qt&4194048)===0&&(Qt=256),n}a(Lg,"claimNextTransitionLane");function zg(){var n=Zn;return Zn<<=1,(Zn&62914560)===0&&(Zn=4194304),n}a(zg,"claimNextRetryLane");function mf(n){for(var i=[],s=0;31>s;s++)i.push(n);return i}a(mf,"createLaneMap");function Pa(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}a(Pa,"markRootUpdated$1");function KR(n,i,s,f,g,v){var T=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var _=n.entanglements,P=n.expirationTimes,F=n.hiddenUpdates;for(s=T&~s;0<s;){var ie=31-ke(s),ue=1<<ie;_[ie]=0,P[ie]=-1;var V=F[ie];if(V!==null)for(F[ie]=null,ie=0;ie<V.length;ie++){var G=V[ie];G!==null&&(G.lane&=-536870913)}s&=~ue}f!==0&&Ig(n,f,0),v!==0&&g===0&&n.tag!==0&&(n.suspendedLanes|=v&~(T&~i))}a(KR,"markRootFinished");function Ig(n,i,s){n.pendingLanes|=i,n.suspendedLanes&=~i;var f=31-ke(i);n.entangledLanes|=i,n.entanglements[f]=n.entanglements[f]|1073741824|s&4194090}a(Ig,"markSpawnedDeferredLane");function jg(n,i){var s=n.entangledLanes|=i;for(n=n.entanglements;s;){var f=31-ke(s),g=1<<f;g&i|n[f]&i&&(n[f]|=i),s&=~g}}a(jg,"markRootEntangled");function gf(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}a(gf,"getBumpedLaneForHydrationByLane");function yf(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}a(yf,"lanesToEventPriority");function Ug(){var n=Q.p;return n!==0?n:(n=window.event,n===void 0?32:v0(n.type))}a(Ug,"resolveUpdatePriority");function QR(n,i){var s=Q.p;try{return Q.p=n,i()}finally{Q.p=s}}a(QR,"runWithPriority");var Yr=Math.random().toString(36).slice(2),jt="__reactFiber$"+Yr,Xt="__reactProps$"+Yr,po="__reactContainer$"+Yr,vf="__reactEvents$"+Yr,XR="__reactListeners$"+Yr,WR="__reactHandles$"+Yr,Bg="__reactResources$"+Yr,La="__reactMarker$"+Yr;function bf(n){delete n[jt],delete n[Xt],delete n[vf],delete n[XR],delete n[WR]}a(bf,"detachDeletedInstance");function mo(n){var i=n[jt];if(i)return i;for(var s=n.parentNode;s;){if(i=s[po]||s[jt]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(n=r0(n);n!==null;){if(s=n[jt])return s;n=r0(n)}return i}n=s,s=n.parentNode}return null}a(mo,"getClosestInstanceFromNode");function go(n){if(n=n[jt]||n[po]){var i=n.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return n}return null}a(go,"getInstanceFromNode");function za(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(o(33))}a(za,"getNodeFromInstance");function yo(n){var i=n[Bg];return i||(i=n[Bg]={hoistableStyles:new Map,hoistableScripts:new Map}),i}a(yo,"getResourcesFromRoot");function _t(n){n[La]=!0}a(_t,"markNodeAsHoistable");var Hg=new Set,Fg={};function Mi(n,i){vo(n,i),vo(n+"Capture",i)}a(Mi,"registerTwoPhaseEvent");function vo(n,i){for(Fg[n]=i,n=0;n<i.length;n++)Hg.add(i[n])}a(vo,"registerDirectEvent");var ZR=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),qg={},Vg={};function JR(n){return qe.call(Vg,n)?!0:qe.call(qg,n)?!1:ZR.test(n)?Vg[n]=!0:(qg[n]=!0,!1)}a(JR,"isAttributeNameSafe");function Os(n,i,s){if(JR(i))if(s===null)n.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var f=i.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+s)}}a(Os,"setValueForAttribute");function As(n,i,s){if(s===null)n.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+s)}}a(As,"setValueForKnownAttribute");function wr(n,i,s,f){if(f===null)n.removeAttribute(s);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(i,s,""+f)}}a(wr,"setValueForNamespacedAttribute");var Sf,Gg;function bo(n){if(Sf===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);Sf=i&&i[1]||"",Gg=-1<s.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
43
43
  `+Sf+n+Gg}a(bo,"describeBuiltInComponentFrame");var xf=!1;function wf(n,i){if(!n||xf)return"";xf=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:a(function(){try{if(i){var ue=a(function(){throw Error()},"Fake");if(Object.defineProperty(ue.prototype,"props",{set:a(function(){throw Error()},"set")}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(G){var V=G}Reflect.construct(n,[],ue)}else{try{ue.call()}catch(G){V=G}n.call(ue.prototype)}}else{try{throw Error()}catch(G){V=G}(ue=n())&&typeof ue.catch=="function"&&ue.catch(function(){})}}catch(G){if(G&&V&&typeof G.stack=="string")return[G.stack,V.stack]}return[null,null]},"DetermineComponentFrameRoot")};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=f.DetermineComponentFrameRoot(),T=v[0],_=v[1];if(T&&_){var P=T.split(`
44
44
  `),F=_.split(`
45
45
  `);for(g=f=0;f<P.length&&!P[f].includes("DetermineComponentFrameRoot");)f++;for(;g<F.length&&!F[g].includes("DetermineComponentFrameRoot");)g++;if(f===P.length||g===F.length)for(f=P.length-1,g=F.length-1;1<=f&&0<=g&&P[f]!==F[g];)g--;for(;1<=f&&0<=g;f--,g--)if(P[f]!==F[g]){if(f!==1||g!==1)do if(f--,g--,0>g||P[f]!==F[g]){var ie=`
46
46
  `+P[f].replace(" at new "," at ");return n.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",n.displayName)),ie}while(1<=f&&0<=g);break}}}finally{xf=!1,Error.prepareStackTrace=s}return(s=n?n.displayName||n.name:"")?bo(s):""}a(wf,"describeNativeComponentFrame");function eO(n){switch(n.tag){case 26:case 27:case 5:return bo(n.type);case 16:return bo("Lazy");case 13:return bo("Suspense");case 19:return bo("SuspenseList");case 0:case 15:return wf(n.type,!1);case 11:return wf(n.type.render,!1);case 1:return wf(n.type,!0);case 31:return bo("Activity");default:return""}}a(eO,"describeFiber");function $g(n){try{var i="";do i+=eO(n),n=n.return;while(n);return i}catch(s){return`
47
47
  Error generating stack: `+s.message+`
48
- `+s.stack}}a($g,"getStackByFiberInDevAndProd");function En(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}a(En,"getToStringValue");function Yg(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}a(Yg,"isCheckable");function tO(n){var i=Yg(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),f=""+n[i];if(!n.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var g=s.get,v=s.set;return Object.defineProperty(n,i,{configurable:!0,get:a(function(){return g.call(this)},"get"),set:a(function(T){f=""+T,v.call(this,T)},"set")}),Object.defineProperty(n,i,{enumerable:s.enumerable}),{getValue:a(function(){return f},"getValue"),setValue:a(function(T){f=""+T},"setValue"),stopTracking:a(function(){n._valueTracker=null,delete n[i]},"stopTracking")}}}a(tO,"trackValueOnNode");function Ms(n){n._valueTracker||(n._valueTracker=tO(n))}a(Ms,"track");function Kg(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var s=i.getValue(),f="";return n&&(f=Yg(n)?n.checked?"true":"false":n.value),n=f,n!==s?(i.setValue(n),!0):!1}a(Kg,"updateValueIfChanged");function _s(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}a(_s,"getActiveElement");var nO=/[\n"\\]/g;function Cn(n){return n.replace(nO,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}a(Cn,"escapeSelectorAttributeValueInsideDoubleQuotes");function Ef(n,i,s,f,g,v,T,_){n.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.type=T:n.removeAttribute("type"),i!=null?T==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+En(i)):n.value!==""+En(i)&&(n.value=""+En(i)):T!=="submit"&&T!=="reset"||n.removeAttribute("value"),i!=null?Cf(n,T,En(i)):s!=null?Cf(n,T,En(s)):f!=null&&n.removeAttribute("value"),g==null&&v!=null&&(n.defaultChecked=!!v),g!=null&&(n.checked=g&&typeof g!="function"&&typeof g!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?n.name=""+En(_):n.removeAttribute("name")}a(Ef,"updateInput");function Qg(n,i,s,f,g,v,T,_){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.type=v),i!=null||s!=null){if(!(v!=="submit"&&v!=="reset"||i!=null))return;s=s!=null?""+En(s):"",i=i!=null?""+En(i):s,_||i===n.value||(n.value=i),n.defaultValue=i}f=f??g,f=typeof f!="function"&&typeof f!="symbol"&&!!f,n.checked=_?n.checked:!!f,n.defaultChecked=!!f,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T)}a(Qg,"initInput");function Cf(n,i,s){i==="number"&&_s(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}a(Cf,"setDefaultValue");function So(n,i,s,f){if(n=n.options,i){i={};for(var g=0;g<s.length;g++)i["$"+s[g]]=!0;for(s=0;s<n.length;s++)g=i.hasOwnProperty("$"+n[s].value),n[s].selected!==g&&(n[s].selected=g),g&&f&&(n[s].defaultSelected=!0)}else{for(s=""+En(s),i=null,g=0;g<n.length;g++){if(n[g].value===s){n[g].selected=!0,f&&(n[g].defaultSelected=!0);return}i!==null||n[g].disabled||(i=n[g])}i!==null&&(i.selected=!0)}}a(So,"updateOptions");function Xg(n,i,s){if(i!=null&&(i=""+En(i),i!==n.value&&(n.value=i),s==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=s!=null?""+En(s):""}a(Xg,"updateTextarea");function Wg(n,i,s,f){if(i==null){if(f!=null){if(s!=null)throw Error(o(92));if(ae(f)){if(1<f.length)throw Error(o(93));f=f[0]}s=f}s==null&&(s=""),i=s}s=En(i),n.defaultValue=s,f=n.textContent,f===s&&f!==""&&f!==null&&(n.value=f)}a(Wg,"initTextarea");function xo(n,i){if(i){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=i;return}}n.textContent=i}a(xo,"setTextContent");var rO=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Zg(n,i,s){var f=i.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?f?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":f?n.setProperty(i,s):typeof s!="number"||s===0||rO.has(i)?i==="float"?n.cssFloat=s:n[i]=(""+s).trim():n[i]=s+"px"}a(Zg,"setValueForStyle");function Jg(n,i,s){if(i!=null&&typeof i!="object")throw Error(o(62));if(n=n.style,s!=null){for(var f in s)!s.hasOwnProperty(f)||i!=null&&i.hasOwnProperty(f)||(f.indexOf("--")===0?n.setProperty(f,""):f==="float"?n.cssFloat="":n[f]="");for(var g in i)f=i[g],i.hasOwnProperty(g)&&s[g]!==f&&Zg(n,g,f)}else for(var v in i)i.hasOwnProperty(v)&&Zg(n,v,i[v])}a(Jg,"setValueForStyles");function Tf(n){if(n.indexOf("-")===-1)return!1;switch(n){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}}a(Tf,"isCustomElement");var iO=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),oO=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ks(n){return oO.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}a(ks,"sanitizeURL");var Rf=null;function Of(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}a(Of,"getEventTarget");var wo=null,Eo=null;function ey(n){var i=go(n);if(i&&(n=i.stateNode)){var s=n[Xt]||null;e:switch(n=i.stateNode,i.type){case"input":if(Ef(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),i=s.name,s.type==="radio"&&i!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Cn(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var f=s[i];if(f!==n&&f.form===n.form){var g=f[Xt]||null;if(!g)throw Error(o(90));Ef(f,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(i=0;i<s.length;i++)f=s[i],f.form===n.form&&Kg(f)}break e;case"textarea":Xg(n,s.value,s.defaultValue);break e;case"select":i=s.value,i!=null&&So(n,!!s.multiple,i,!1)}}}a(ey,"restoreStateOfTarget");var Af=!1;function ty(n,i,s){if(Af)return n(i,s);Af=!0;try{var f=n(i);return f}finally{if(Af=!1,(wo!==null||Eo!==null)&&(gu(),wo&&(i=wo,n=Eo,Eo=wo=null,ey(i),n)))for(i=0;i<n.length;i++)ey(n[i])}}a(ty,"batchedUpdates$1");function Ia(n,i){var s=n.stateNode;if(s===null)return null;var f=s[Xt]||null;if(f===null)return null;s=f[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(n=n.type,f=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!f;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(o(231,i,typeof s));return s}a(Ia,"getListener");var Er=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mf=!1;if(Er)try{var ja={};Object.defineProperty(ja,"passive",{get:a(function(){Mf=!0},"get")}),window.addEventListener("test",ja,ja),window.removeEventListener("test",ja,ja)}catch{Mf=!1}var Kr=null,_f=null,Ds=null;function ny(){if(Ds)return Ds;var n,i=_f,s=i.length,f,g="value"in Kr?Kr.value:Kr.textContent,v=g.length;for(n=0;n<s&&i[n]===g[n];n++);var T=s-n;for(f=1;f<=T&&i[s-f]===g[v-f];f++);return Ds=g.slice(n,1<f?1-f:void 0)}a(ny,"getData");function Ns(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}a(Ns,"getEventCharCode");function Ps(){return!0}a(Ps,"functionThatReturnsTrue");function ry(){return!1}a(ry,"functionThatReturnsFalse");function Wt(n){function i(s,f,g,v,T){this._reactName=s,this._targetInst=g,this.type=f,this.nativeEvent=v,this.target=T,this.currentTarget=null;for(var _ in n)n.hasOwnProperty(_)&&(s=n[_],this[_]=s?s(v):v[_]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Ps:ry,this.isPropagationStopped=ry,this}return a(i,"SyntheticBaseEvent"),m(i.prototype,{preventDefault:a(function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ps)},"preventDefault"),stopPropagation:a(function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ps)},"stopPropagation"),persist:a(function(){},"persist"),isPersistent:Ps}),i}a(Wt,"createSyntheticEvent");var _i={eventPhase:0,bubbles:0,cancelable:0,timeStamp:a(function(n){return n.timeStamp||Date.now()},"timeStamp"),defaultPrevented:0,isTrusted:0},Ls=Wt(_i),Ua=m({},_i,{view:0,detail:0}),aO=Wt(Ua),kf,Df,Ba,zs=m({},Ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pf,button:0,buttons:0,relatedTarget:a(function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},"relatedTarget"),movementX:a(function(n){return"movementX"in n?n.movementX:(n!==Ba&&(Ba&&n.type==="mousemove"?(kf=n.screenX-Ba.screenX,Df=n.screenY-Ba.screenY):Df=kf=0,Ba=n),kf)},"movementX"),movementY:a(function(n){return"movementY"in n?n.movementY:Df},"movementY")}),iy=Wt(zs),lO=m({},zs,{dataTransfer:0}),sO=Wt(lO),uO=m({},Ua,{relatedTarget:0}),Nf=Wt(uO),cO=m({},_i,{animationName:0,elapsedTime:0,pseudoElement:0}),fO=Wt(cO),dO=m({},_i,{clipboardData:a(function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData},"clipboardData")}),pO=Wt(dO),hO=m({},_i,{data:0}),oy=Wt(hO),mO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gO={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vO(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=yO[n])?!!i[n]:!1}a(vO,"modifierStateGetter");function Pf(){return vO}a(Pf,"getEventModifierState");var bO=m({},Ua,{key:a(function(n){if(n.key){var i=mO[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Ns(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?gO[n.keyCode]||"Unidentified":""},"key"),code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pf,charCode:a(function(n){return n.type==="keypress"?Ns(n):0},"charCode"),keyCode:a(function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},"keyCode"),which:a(function(n){return n.type==="keypress"?Ns(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0},"which")}),SO=Wt(bO),xO=m({},zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ay=Wt(xO),wO=m({},Ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pf}),EO=Wt(wO),CO=m({},_i,{propertyName:0,elapsedTime:0,pseudoElement:0}),TO=Wt(CO),RO=m({},zs,{deltaX:a(function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},"deltaX"),deltaY:a(function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},"deltaY"),deltaZ:0,deltaMode:0}),OO=Wt(RO),AO=m({},_i,{newState:0,oldState:0}),MO=Wt(AO),_O=[9,13,27,32],Lf=Er&&"CompositionEvent"in window,Ha=null;Er&&"documentMode"in document&&(Ha=document.documentMode);var kO=Er&&"TextEvent"in window&&!Ha,ly=Er&&(!Lf||Ha&&8<Ha&&11>=Ha),sy=" ",uy=!1;function cy(n,i){switch(n){case"keyup":return _O.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}a(cy,"isFallbackCompositionEnd");function fy(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}a(fy,"getDataFromCustomEvent");var Co=!1;function DO(n,i){switch(n){case"compositionend":return fy(i);case"keypress":return i.which!==32?null:(uy=!0,sy);case"textInput":return n=i.data,n===sy&&uy?null:n;default:return null}}a(DO,"getNativeBeforeInputChars");function NO(n,i){if(Co)return n==="compositionend"||!Lf&&cy(n,i)?(n=ny(),Ds=_f=Kr=null,Co=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return ly&&i.locale!=="ko"?null:i.data;default:return null}}a(NO,"getFallbackBeforeInputChars");var PO={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dy(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!PO[n.type]:i==="textarea"}a(dy,"isTextInputElement");function py(n,i,s,f){wo?Eo?Eo.push(f):Eo=[f]:wo=f,i=wu(i,"onChange"),0<i.length&&(s=new Ls("onChange","change",null,s,f),n.push({event:s,listeners:i}))}a(py,"createAndAccumulateChangeEvent");var Fa=null,qa=null;function LO(n){Yb(n,0)}a(LO,"runEventInBatch");function Is(n){var i=za(n);if(Kg(i))return n}a(Is,"getInstIfValueChanged");function hy(n,i){if(n==="change")return i}a(hy,"getTargetInstForChangeEvent");var my=!1;if(Er){var zf;if(Er){var If="oninput"in document;if(!If){var gy=document.createElement("div");gy.setAttribute("oninput","return;"),If=typeof gy.oninput=="function"}zf=If}else zf=!1;my=zf&&(!document.documentMode||9<document.documentMode)}function yy(){Fa&&(Fa.detachEvent("onpropertychange",vy),qa=Fa=null)}a(yy,"stopWatchingForValueChange");function vy(n){if(n.propertyName==="value"&&Is(qa)){var i=[];py(i,qa,n,Of(n)),ty(LO,i)}}a(vy,"handlePropertyChange");function zO(n,i,s){n==="focusin"?(yy(),Fa=i,qa=s,Fa.attachEvent("onpropertychange",vy)):n==="focusout"&&yy()}a(zO,"handleEventsForInputEventPolyfill");function IO(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Is(qa)}a(IO,"getTargetInstForInputEventPolyfill");function jO(n,i){if(n==="click")return Is(i)}a(jO,"getTargetInstForClickEvent");function UO(n,i){if(n==="input"||n==="change")return Is(i)}a(UO,"getTargetInstForInputOrChangeEvent");function BO(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}a(BO,"is");var un=typeof Object.is=="function"?Object.is:BO;function Va(n,i){if(un(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var s=Object.keys(n),f=Object.keys(i);if(s.length!==f.length)return!1;for(f=0;f<s.length;f++){var g=s[f];if(!qe.call(i,g)||!un(n[g],i[g]))return!1}return!0}a(Va,"shallowEqual");function by(n){for(;n&&n.firstChild;)n=n.firstChild;return n}a(by,"getLeafNode");function Sy(n,i){var s=by(n);n=0;for(var f;s;){if(s.nodeType===3){if(f=n+s.textContent.length,n<=i&&f>=i)return{node:s,offset:i-n};n=f}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=by(s)}}a(Sy,"getNodeForCharacterOffset");function xy(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?xy(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}a(xy,"containsNode");function wy(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=_s(n.document);i instanceof n.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)n=i.contentWindow;else break;i=_s(n.document)}return i}a(wy,"getActiveElementDeep");function jf(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}a(jf,"hasSelectionCapabilities");var HO=Er&&"documentMode"in document&&11>=document.documentMode,To=null,Uf=null,Ga=null,Bf=!1;function Ey(n,i,s){var f=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Bf||To==null||To!==_s(f)||(f=To,"selectionStart"in f&&jf(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),Ga&&Va(Ga,f)||(Ga=f,f=wu(Uf,"onSelect"),0<f.length&&(i=new Ls("onSelect","select",null,i,s),n.push({event:i,listeners:f}),i.target=To)))}a(Ey,"constructSelectEvent");function ki(n,i){var s={};return s[n.toLowerCase()]=i.toLowerCase(),s["Webkit"+n]="webkit"+i,s["Moz"+n]="moz"+i,s}a(ki,"makePrefixMap");var Ro={animationend:ki("Animation","AnimationEnd"),animationiteration:ki("Animation","AnimationIteration"),animationstart:ki("Animation","AnimationStart"),transitionrun:ki("Transition","TransitionRun"),transitionstart:ki("Transition","TransitionStart"),transitioncancel:ki("Transition","TransitionCancel"),transitionend:ki("Transition","TransitionEnd")},Hf={},Cy={};Er&&(Cy=document.createElement("div").style,"AnimationEvent"in window||(delete Ro.animationend.animation,delete Ro.animationiteration.animation,delete Ro.animationstart.animation),"TransitionEvent"in window||delete Ro.transitionend.transition);function Di(n){if(Hf[n])return Hf[n];if(!Ro[n])return n;var i=Ro[n],s;for(s in i)if(i.hasOwnProperty(s)&&s in Cy)return Hf[n]=i[s];return n}a(Di,"getVendorPrefixedEventName");var Ty=Di("animationend"),Ry=Di("animationiteration"),Oy=Di("animationstart"),FO=Di("transitionrun"),qO=Di("transitionstart"),VO=Di("transitioncancel"),Ay=Di("transitionend"),My=new Map,Ff="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ff.push("scrollEnd");function Un(n,i){My.set(n,i),Mi(i,[n])}a(Un,"registerSimpleEvent");var _y=new WeakMap;function Tn(n,i){if(typeof n=="object"&&n!==null){var s=_y.get(n);return s!==void 0?s:(i={value:n,source:i,stack:$g(i)},_y.set(n,i),i)}return{value:n,source:i,stack:$g(i)}}a(Tn,"createCapturedValueAtFiber");var Rn=[],Oo=0,qf=0;function js(){for(var n=Oo,i=qf=Oo=0;i<n;){var s=Rn[i];Rn[i++]=null;var f=Rn[i];Rn[i++]=null;var g=Rn[i];Rn[i++]=null;var v=Rn[i];if(Rn[i++]=null,f!==null&&g!==null){var T=f.pending;T===null?g.next=g:(g.next=T.next,T.next=g),f.pending=g}v!==0&&ky(s,g,v)}}a(js,"finishQueueingConcurrentUpdates");function Us(n,i,s,f){Rn[Oo++]=n,Rn[Oo++]=i,Rn[Oo++]=s,Rn[Oo++]=f,qf|=f,n.lanes|=f,n=n.alternate,n!==null&&(n.lanes|=f)}a(Us,"enqueueUpdate$1");function Vf(n,i,s,f){return Us(n,i,s,f),Bs(n)}a(Vf,"enqueueConcurrentHookUpdate");function Ao(n,i){return Us(n,null,null,i),Bs(n)}a(Ao,"enqueueConcurrentRenderForLane");function ky(n,i,s){n.lanes|=s;var f=n.alternate;f!==null&&(f.lanes|=s);for(var g=!1,v=n.return;v!==null;)v.childLanes|=s,f=v.alternate,f!==null&&(f.childLanes|=s),v.tag===22&&(n=v.stateNode,n===null||n._visibility&1||(g=!0)),n=v,v=v.return;return n.tag===3?(v=n.stateNode,g&&i!==null&&(g=31-ke(s),n=v.hiddenUpdates,f=n[g],f===null?n[g]=[i]:f.push(i),i.lane=s|536870912),v):null}a(ky,"markUpdateLaneFromFiberToRoot");function Bs(n){if(50<gl)throw gl=0,Xd=null,Error(o(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}a(Bs,"getRootForUpdatedFiber");var Mo={};function GO(n,i,s,f){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}a(GO,"FiberNode");function cn(n,i,s,f){return new GO(n,i,s,f)}a(cn,"createFiberImplClass");function Gf(n){return n=n.prototype,!(!n||!n.isReactComponent)}a(Gf,"shouldConstruct");function Cr(n,i){var s=n.alternate;return s===null?(s=cn(n.tag,i,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=i,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,i=n.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}a(Cr,"createWorkInProgress");function Dy(n,i){n.flags&=65011714;var s=n.alternate;return s===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,i=s.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}a(Dy,"resetWorkInProgress");function Hs(n,i,s,f,g,v){var T=0;if(f=n,typeof n=="function")Gf(n)&&(T=1);else if(typeof n=="string")T=YA(n,s,ne.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case W:return n=cn(31,s,i,g),n.elementType=W,n.lanes=v,n;case E:return Ni(s.children,g,v,i);case w:T=8,g|=24;break;case R:return n=cn(12,s,i,g|2),n.elementType=R,n.lanes=v,n;case L:return n=cn(13,s,i,g),n.elementType=L,n.lanes=v,n;case N:return n=cn(19,s,i,g),n.elementType=N,n.lanes=v,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case C:case k:T=10;break e;case A:T=9;break e;case z:T=11;break e;case j:T=14;break e;case $:T=16,f=null;break e}T=29,s=Error(o(130,n===null?"null":typeof n,"")),f=null}return i=cn(T,s,i,g),i.elementType=n,i.type=f,i.lanes=v,i}a(Hs,"createFiberFromTypeAndProps");function Ni(n,i,s,f){return n=cn(7,n,f,i),n.lanes=s,n}a(Ni,"createFiberFromFragment");function $f(n,i,s){return n=cn(6,n,null,i),n.lanes=s,n}a($f,"createFiberFromText");function Yf(n,i,s){return i=cn(4,n.children!==null?n.children:[],n.key,i),i.lanes=s,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}a(Yf,"createFiberFromPortal");var _o=[],ko=0,Fs=null,qs=0,On=[],An=0,Pi=null,Tr=1,Rr="";function Li(n,i){_o[ko++]=qs,_o[ko++]=Fs,Fs=n,qs=i}a(Li,"pushTreeFork");function Ny(n,i,s){On[An++]=Tr,On[An++]=Rr,On[An++]=Pi,Pi=n;var f=Tr;n=Rr;var g=32-ke(f)-1;f&=~(1<<g),s+=1;var v=32-ke(i)+g;if(30<v){var T=g-g%5;v=(f&(1<<T)-1).toString(32),f>>=T,g-=T,Tr=1<<32-ke(i)+g|s<<g|f,Rr=v+n}else Tr=1<<v|s<<g|f,Rr=n}a(Ny,"pushTreeId");function Kf(n){n.return!==null&&(Li(n,1),Ny(n,1,0))}a(Kf,"pushMaterializedTreeId");function Qf(n){for(;n===Fs;)Fs=_o[--ko],_o[ko]=null,qs=_o[--ko],_o[ko]=null;for(;n===Pi;)Pi=On[--An],On[An]=null,Rr=On[--An],On[An]=null,Tr=On[--An],On[An]=null}a(Qf,"popTreeContext");var Vt=null,ht=null,Xe=!1,zi=null,Jn=!1,Xf=Error(o(519));function Ii(n){var i=Error(o(418,""));throw Ka(Tn(i,n)),Xf}a(Ii,"throwOnHydrationMismatch");function Py(n){var i=n.stateNode,s=n.type,f=n.memoizedProps;switch(i[jt]=n,i[Xt]=f,s){case"dialog":Ge("cancel",i),Ge("close",i);break;case"iframe":case"object":case"embed":Ge("load",i);break;case"video":case"audio":for(s=0;s<vl.length;s++)Ge(vl[s],i);break;case"source":Ge("error",i);break;case"img":case"image":case"link":Ge("error",i),Ge("load",i);break;case"details":Ge("toggle",i);break;case"input":Ge("invalid",i),Qg(i,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0),Ms(i);break;case"select":Ge("invalid",i);break;case"textarea":Ge("invalid",i),Wg(i,f.value,f.defaultValue,f.children),Ms(i)}s=f.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||i.textContent===""+s||f.suppressHydrationWarning===!0||Wb(i.textContent,s)?(f.popover!=null&&(Ge("beforetoggle",i),Ge("toggle",i)),f.onScroll!=null&&Ge("scroll",i),f.onScrollEnd!=null&&Ge("scrollend",i),f.onClick!=null&&(i.onclick=Eu),i=!0):i=!1,i||Ii(n)}a(Py,"prepareToHydrateHostInstance");function Ly(n){for(Vt=n.return;Vt;)switch(Vt.tag){case 5:case 13:Jn=!1;return;case 27:case 3:Jn=!0;return;default:Vt=Vt.return}}a(Ly,"popToNextHostParent");function $a(n){if(n!==Vt)return!1;if(!Xe)return Ly(n),Xe=!0,!1;var i=n.tag,s;if((s=i!==3&&i!==27)&&((s=i===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||dp(n.type,n.memoizedProps)),s=!s),s&&ht&&Ii(n),Ly(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8)if(s=n.data,s==="/$"){if(i===0){ht=Hn(n.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++;n=n.nextSibling}ht=null}}else i===27?(i=ht,ci(n.type)?(n=gp,gp=null,ht=n):ht=i):ht=Vt?Hn(n.stateNode.nextSibling):null;return!0}a($a,"popHydrationState");function Ya(){ht=Vt=null,Xe=!1}a(Ya,"resetHydrationState");function zy(){var n=zi;return n!==null&&(en===null?en=n:en.push.apply(en,n),zi=null),n}a(zy,"upgradeHydrationErrorsToRecoverable");function Ka(n){zi===null?zi=[n]:zi.push(n)}a(Ka,"queueHydrationError");var Wf=Y(null),ji=null,Or=null;function Qr(n,i,s){M(Wf,i._currentValue),i._currentValue=s}a(Qr,"pushProvider");function Ar(n){n._currentValue=Wf.current,de(Wf)}a(Ar,"popProvider");function Zf(n,i,s){for(;n!==null;){var f=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,f!==null&&(f.childLanes|=i)):f!==null&&(f.childLanes&i)!==i&&(f.childLanes|=i),n===s)break;n=n.return}}a(Zf,"scheduleContextWorkOnParentPath");function Jf(n,i,s,f){var g=n.child;for(g!==null&&(g.return=n);g!==null;){var v=g.dependencies;if(v!==null){var T=g.child;v=v.firstContext;e:for(;v!==null;){var _=v;v=g;for(var P=0;P<i.length;P++)if(_.context===i[P]){v.lanes|=s,_=v.alternate,_!==null&&(_.lanes|=s),Zf(v.return,s,n),f||(T=null);break e}v=_.next}}else if(g.tag===18){if(T=g.return,T===null)throw Error(o(341));T.lanes|=s,v=T.alternate,v!==null&&(v.lanes|=s),Zf(T,s,n),T=null}else T=g.child;if(T!==null)T.return=g;else for(T=g;T!==null;){if(T===n){T=null;break}if(g=T.sibling,g!==null){g.return=T.return,T=g;break}T=T.return}g=T}}a(Jf,"propagateContextChanges");function Qa(n,i,s,f){n=null;for(var g=i,v=!1;g!==null;){if(!v){if((g.flags&524288)!==0)v=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var T=g.alternate;if(T===null)throw Error(o(387));if(T=T.memoizedProps,T!==null){var _=g.type;un(g.pendingProps.value,T.value)||(n!==null?n.push(_):n=[_])}}else if(g===K.current){if(T=g.alternate,T===null)throw Error(o(387));T.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(n!==null?n.push(Cl):n=[Cl])}g=g.return}n!==null&&Jf(i,n,s,f),i.flags|=262144}a(Qa,"propagateParentContextChanges");function Vs(n){for(n=n.firstContext;n!==null;){if(!un(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}a(Vs,"checkIfContextChanged");function Ui(n){ji=n,Or=null,n=n.dependencies,n!==null&&(n.firstContext=null)}a(Ui,"prepareToReadContext");function Ut(n){return Iy(ji,n)}a(Ut,"readContext");function Gs(n,i){return ji===null&&Ui(n),Iy(n,i)}a(Gs,"readContextDuringReconciliation");function Iy(n,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,next:null},Or===null){if(n===null)throw Error(o(308));Or=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else Or=Or.next=i;return s}a(Iy,"readContextForConsumer");var $O=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:a(function(s,f){n.push(f)},"addEventListener")};this.abort=function(){i.aborted=!0,n.forEach(function(s){return s()})}},YO=e.unstable_scheduleCallback,KO=e.unstable_NormalPriority,Rt={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ed(){return{controller:new $O,data:new Map,refCount:0}}a(ed,"createCache");function Xa(n){n.refCount--,n.refCount===0&&YO(KO,function(){n.controller.abort()})}a(Xa,"releaseCache");var Wa=null,td=0,Do=0,No=null;function QO(n,i){if(Wa===null){var s=Wa=[];td=0,Do=rp(),No={status:"pending",value:void 0,then:a(function(f){s.push(f)},"then")}}return td++,i.then(jy,jy),i}a(QO,"entangleAsyncAction");function jy(){if(--td===0&&Wa!==null){No!==null&&(No.status="fulfilled");var n=Wa;Wa=null,Do=0,No=null;for(var i=0;i<n.length;i++)(0,n[i])()}}a(jy,"pingEngtangledActionScope");function XO(n,i){var s=[],f={status:"pending",value:null,reason:null,then:a(function(g){s.push(g)},"then")};return n.then(function(){f.status="fulfilled",f.value=i;for(var g=0;g<s.length;g++)(0,s[g])(i)},function(g){for(f.status="rejected",f.reason=g,g=0;g<s.length;g++)(0,s[g])(void 0)}),f}a(XO,"chainThenableValue");var Uy=I.S;I.S=function(n,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&QO(n,i),Uy!==null&&Uy(n,i)};var Bi=Y(null);function nd(){var n=Bi.current;return n!==null?n:at.pooledCache}a(nd,"peekCacheFromPool");function $s(n,i){i===null?M(Bi,Bi.current):M(Bi,i.pool)}a($s,"pushTransition");function By(){var n=nd();return n===null?null:{parent:Rt._currentValue,pool:n}}a(By,"getSuspendedCache");var Za=Error(o(460)),Hy=Error(o(474)),Ys=Error(o(542)),rd={then:a(function(){},"then")};function Fy(n){return n=n.status,n==="fulfilled"||n==="rejected"}a(Fy,"isThenableResolved");function Ks(){}a(Ks,"noop$3");function qy(n,i,s){switch(s=n[s],s===void 0?n.push(i):s!==i&&(i.then(Ks,Ks),i=s),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,Gy(n),n;default:if(typeof i.status=="string")i.then(Ks,Ks);else{if(n=at,n!==null&&100<n.shellSuspendCounter)throw Error(o(482));n=i,n.status="pending",n.then(function(f){if(i.status==="pending"){var g=i;g.status="fulfilled",g.value=f}},function(f){if(i.status==="pending"){var g=i;g.status="rejected",g.reason=f}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,Gy(n),n}throw Ja=i,Za}}a(qy,"trackUsedThenable");var Ja=null;function Vy(){if(Ja===null)throw Error(o(459));var n=Ja;return Ja=null,n}a(Vy,"getSuspendedThenable");function Gy(n){if(n===Za||n===Ys)throw Error(o(483))}a(Gy,"checkIfUseWrappedInAsyncCatch");var Xr=!1;function id(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}a(id,"initializeUpdateQueue");function od(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}a(od,"cloneUpdateQueue");function Wr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}a(Wr,"createUpdate");function Zr(n,i,s){var f=n.updateQueue;if(f===null)return null;if(f=f.shared,(et&2)!==0){var g=f.pending;return g===null?i.next=i:(i.next=g.next,g.next=i),f.pending=i,i=Bs(n),ky(n,null,s),i}return Us(n,f,i,s),Bs(n)}a(Zr,"enqueueUpdate");function el(n,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194048)!==0)){var f=i.lanes;f&=n.pendingLanes,s|=f,i.lanes=s,jg(n,s)}}a(el,"entangleTransitions");function ad(n,i){var s=n.updateQueue,f=n.alternate;if(f!==null&&(f=f.updateQueue,s===f)){var g=null,v=null;if(s=s.firstBaseUpdate,s!==null){do{var T={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};v===null?g=v=T:v=v.next=T,s=s.next}while(s!==null);v===null?g=v=i:v=v.next=i}else g=v=i;s={baseState:f.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:f.shared,callbacks:f.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=i:n.next=i,s.lastBaseUpdate=i}a(ad,"enqueueCapturedUpdate");var ld=!1;function tl(){if(ld){var n=No;if(n!==null)throw n}}a(tl,"suspendIfUpdateReadFromEntangledAsyncAction");function nl(n,i,s,f){ld=!1;var g=n.updateQueue;Xr=!1;var v=g.firstBaseUpdate,T=g.lastBaseUpdate,_=g.shared.pending;if(_!==null){g.shared.pending=null;var P=_,F=P.next;P.next=null,T===null?v=F:T.next=F,T=P;var ie=n.alternate;ie!==null&&(ie=ie.updateQueue,_=ie.lastBaseUpdate,_!==T&&(_===null?ie.firstBaseUpdate=F:_.next=F,ie.lastBaseUpdate=P))}if(v!==null){var ue=g.baseState;T=0,ie=F=P=null,_=v;do{var V=_.lane&-536870913,G=V!==_.lane;if(G?(Ye&V)===V:(f&V)===V){V!==0&&V===Do&&(ld=!0),ie!==null&&(ie=ie.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var De=n,Ae=_;V=i;var it=s;switch(Ae.tag){case 1:if(De=Ae.payload,typeof De=="function"){ue=De.call(it,ue,V);break e}ue=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=Ae.payload,V=typeof De=="function"?De.call(it,ue,V):De,V==null)break e;ue=m({},ue,V);break e;case 2:Xr=!0}}V=_.callback,V!==null&&(n.flags|=64,G&&(n.flags|=8192),G=g.callbacks,G===null?g.callbacks=[V]:G.push(V))}else G={lane:V,tag:_.tag,payload:_.payload,callback:_.callback,next:null},ie===null?(F=ie=G,P=ue):ie=ie.next=G,T|=V;if(_=_.next,_===null){if(_=g.shared.pending,_===null)break;G=_,_=G.next,G.next=null,g.lastBaseUpdate=G,g.shared.pending=null}}while(!0);ie===null&&(P=ue),g.baseState=P,g.firstBaseUpdate=F,g.lastBaseUpdate=ie,v===null&&(g.shared.lanes=0),ai|=T,n.lanes=T,n.memoizedState=ue}}a(nl,"processUpdateQueue");function $y(n,i){if(typeof n!="function")throw Error(o(191,n));n.call(i)}a($y,"callCallback");function Yy(n,i){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)$y(s[n],i)}a(Yy,"commitCallbacks");var Po=Y(null),Qs=Y(0);function Ky(n,i){n=Lr,M(Qs,n),M(Po,i),Lr=n|i.baseLanes}a(Ky,"pushHiddenContext");function sd(){M(Qs,Lr),M(Po,Po.current)}a(sd,"reuseHiddenContextOnStack");function ud(){Lr=Qs.current,de(Po),de(Qs)}a(ud,"popHiddenContext");var Jr=0,He=null,nt=null,Et=null,Xs=!1,Lo=!1,Hi=!1,Ws=0,rl=0,zo=null,WO=0;function xt(){throw Error(o(321))}a(xt,"throwInvalidHookError");function cd(n,i){if(i===null)return!1;for(var s=0;s<i.length&&s<n.length;s++)if(!un(n[s],i[s]))return!1;return!0}a(cd,"areHookInputsEqual");function fd(n,i,s,f,g,v){return Jr=v,He=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,I.H=n===null||n.memoizedState===null?kv:Dv,Hi=!1,v=s(f,g),Hi=!1,Lo&&(v=Xy(i,s,f,g)),Qy(n),v}a(fd,"renderWithHooks");function Qy(n){I.H=ru;var i=nt!==null&&nt.next!==null;if(Jr=0,Et=nt=He=null,Xs=!1,rl=0,zo=null,i)throw Error(o(300));n===null||kt||(n=n.dependencies,n!==null&&Vs(n)&&(kt=!0))}a(Qy,"finishRenderingHooks");function Xy(n,i,s,f){He=n;var g=0;do{if(Lo&&(zo=null),rl=0,Lo=!1,25<=g)throw Error(o(301));if(g+=1,Et=nt=null,n.updateQueue!=null){var v=n.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}I.H=iA,v=i(s,f)}while(Lo);return v}a(Xy,"renderWithHooksAgain");function ZO(){var n=I.H,i=n.useState()[0];return i=typeof i.then=="function"?il(i):i,n=n.useState()[0],(nt!==null?nt.memoizedState:null)!==n&&(He.flags|=1024),i}a(ZO,"TransitionAwareHostComponent");function dd(){var n=Ws!==0;return Ws=0,n}a(dd,"checkDidRenderIdHook");function pd(n,i,s){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~s}a(pd,"bailoutHooks");function hd(n){if(Xs){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Xs=!1}Jr=0,Et=nt=He=null,Lo=!1,rl=Ws=0,zo=null}a(hd,"resetHooksOnUnwind");function Zt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?He.memoizedState=Et=n:Et=Et.next=n,Et}a(Zt,"mountWorkInProgressHook");function Ct(){if(nt===null){var n=He.alternate;n=n!==null?n.memoizedState:null}else n=nt.next;var i=Et===null?He.memoizedState:Et.next;if(i!==null)Et=i,nt=n;else{if(n===null)throw He.alternate===null?Error(o(467)):Error(o(310));nt=n,n={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},Et===null?He.memoizedState=Et=n:Et=Et.next=n}return Et}a(Ct,"updateWorkInProgressHook");function md(){return{lastEffect:null,events:null,stores:null,memoCache:null}}a(md,"createFunctionComponentUpdateQueue");function il(n){var i=rl;return rl+=1,zo===null&&(zo=[]),n=qy(zo,n,i),i=He,(Et===null?i.memoizedState:Et.next)===null&&(i=i.alternate,I.H=i===null||i.memoizedState===null?kv:Dv),n}a(il,"useThenable");function Zs(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return il(n);if(n.$$typeof===k)return Ut(n)}throw Error(o(438,String(n)))}a(Zs,"use");function gd(n){var i=null,s=He.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var f=He.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(i={data:f.data.map(function(g){return g.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),s===null&&(s=md(),He.updateQueue=s),s.memoCache=i,s=i.data[i.index],s===void 0)for(s=i.data[i.index]=Array(n),f=0;f<n;f++)s[f]=J;return i.index++,s}a(gd,"useMemoCache");function Mr(n,i){return typeof i=="function"?i(n):i}a(Mr,"basicStateReducer");function Js(n){var i=Ct();return yd(i,nt,n)}a(Js,"updateReducer");function yd(n,i,s){var f=n.queue;if(f===null)throw Error(o(311));f.lastRenderedReducer=s;var g=n.baseQueue,v=f.pending;if(v!==null){if(g!==null){var T=g.next;g.next=v.next,v.next=T}i.baseQueue=g=v,f.pending=null}if(v=n.baseState,g===null)n.memoizedState=v;else{i=g.next;var _=T=null,P=null,F=i,ie=!1;do{var ue=F.lane&-536870913;if(ue!==F.lane?(Ye&ue)===ue:(Jr&ue)===ue){var V=F.revertLane;if(V===0)P!==null&&(P=P.next={lane:0,revertLane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),ue===Do&&(ie=!0);else if((Jr&V)===V){F=F.next,V===Do&&(ie=!0);continue}else ue={lane:0,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},P===null?(_=P=ue,T=v):P=P.next=ue,He.lanes|=V,ai|=V;ue=F.action,Hi&&s(v,ue),v=F.hasEagerState?F.eagerState:s(v,ue)}else V={lane:ue,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},P===null?(_=P=V,T=v):P=P.next=V,He.lanes|=ue,ai|=ue;F=F.next}while(F!==null&&F!==i);if(P===null?T=v:P.next=_,!un(v,n.memoizedState)&&(kt=!0,ie&&(s=No,s!==null)))throw s;n.memoizedState=v,n.baseState=T,n.baseQueue=P,f.lastRenderedState=v}return g===null&&(f.lanes=0),[n.memoizedState,f.dispatch]}a(yd,"updateReducerImpl");function vd(n){var i=Ct(),s=i.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=n;var f=s.dispatch,g=s.pending,v=i.memoizedState;if(g!==null){s.pending=null;var T=g=g.next;do v=n(v,T.action),T=T.next;while(T!==g);un(v,i.memoizedState)||(kt=!0),i.memoizedState=v,i.baseQueue===null&&(i.baseState=v),s.lastRenderedState=v}return[v,f]}a(vd,"rerenderReducer");function Wy(n,i,s){var f=He,g=Ct(),v=Xe;if(v){if(s===void 0)throw Error(o(407));s=s()}else s=i();var T=!un((nt||g).memoizedState,s);T&&(g.memoizedState=s,kt=!0),g=g.queue;var _=ev.bind(null,f,g,n);if(ol(2048,8,_,[n]),g.getSnapshot!==i||T||Et!==null&&Et.memoizedState.tag&1){if(f.flags|=2048,Io(9,eu(),Jy.bind(null,f,g,s,i),null),at===null)throw Error(o(349));v||(Jr&124)!==0||Zy(f,i,s)}return s}a(Wy,"updateSyncExternalStore");function Zy(n,i,s){n.flags|=16384,n={getSnapshot:i,value:s},i=He.updateQueue,i===null?(i=md(),He.updateQueue=i,i.stores=[n]):(s=i.stores,s===null?i.stores=[n]:s.push(n))}a(Zy,"pushStoreConsistencyCheck");function Jy(n,i,s,f){i.value=s,i.getSnapshot=f,tv(i)&&nv(n)}a(Jy,"updateStoreInstance");function ev(n,i,s){return s(function(){tv(i)&&nv(n)})}a(ev,"subscribeToStore");function tv(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!un(n,s)}catch{return!0}}a(tv,"checkIfSnapshotChanged");function nv(n){var i=Ao(n,2);i!==null&&mn(i,n,2)}a(nv,"forceStoreRerender");function bd(n){var i=Zt();if(typeof n=="function"){var s=n;if(n=s(),Hi){Oe(!0);try{s()}finally{Oe(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mr,lastRenderedState:n},i}a(bd,"mountStateImpl");function rv(n,i,s,f){return n.baseState=s,yd(n,nt,typeof f=="function"?f:Mr)}a(rv,"updateOptimisticImpl");function JO(n,i,s,f,g){if(nu(n))throw Error(o(485));if(n=i.action,n!==null){var v={payload:g,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:a(function(T){v.listeners.push(T)},"then")};I.T!==null?s(!0):v.isTransition=!1,f(v),s=i.pending,s===null?(v.next=i.pending=v,iv(i,v)):(v.next=s.next,i.pending=s.next=v)}}a(JO,"dispatchActionState");function iv(n,i){var s=i.action,f=i.payload,g=n.state;if(i.isTransition){var v=I.T,T={};I.T=T;try{var _=s(g,f),P=I.S;P!==null&&P(T,_),ov(n,i,_)}catch(F){Sd(n,i,F)}finally{I.T=v}}else try{v=s(g,f),ov(n,i,v)}catch(F){Sd(n,i,F)}}a(iv,"runActionStateAction");function ov(n,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(f){av(n,i,f)},function(f){return Sd(n,i,f)}):av(n,i,s)}a(ov,"handleActionReturnValue");function av(n,i,s){i.status="fulfilled",i.value=s,lv(i),n.state=s,i=n.pending,i!==null&&(s=i.next,s===i?n.pending=null:(s=s.next,i.next=s,iv(n,s)))}a(av,"onActionSuccess");function Sd(n,i,s){var f=n.pending;if(n.pending=null,f!==null){f=f.next;do i.status="rejected",i.reason=s,lv(i),i=i.next;while(i!==f)}n.action=null}a(Sd,"onActionError");function lv(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}a(lv,"notifyActionListeners");function sv(n,i){return i}a(sv,"actionStateReducer");function uv(n,i){if(Xe){var s=at.formState;if(s!==null){e:{var f=He;if(Xe){if(ht){t:{for(var g=ht,v=Jn;g.nodeType!==8;){if(!v){g=null;break t}if(g=Hn(g.nextSibling),g===null){g=null;break t}}v=g.data,g=v==="F!"||v==="F"?g:null}if(g){ht=Hn(g.nextSibling),f=g.data==="F!";break e}}Ii(f)}f=!1}f&&(i=s[0])}}return s=Zt(),s.memoizedState=s.baseState=i,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sv,lastRenderedState:i},s.queue=f,s=Av.bind(null,He,f),f.dispatch=s,f=bd(!1),v=Td.bind(null,He,!1,f.queue),f=Zt(),g={state:i,dispatch:null,action:n,pending:null},f.queue=g,s=JO.bind(null,He,g,v,s),g.dispatch=s,f.memoizedState=n,[i,s,!1]}a(uv,"mountActionState");function cv(n){var i=Ct();return fv(i,nt,n)}a(cv,"updateActionState");function fv(n,i,s){if(i=yd(n,i,sv)[0],n=Js(Mr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var f=il(i)}catch(T){throw T===Za?Ys:T}else f=i;i=Ct();var g=i.queue,v=g.dispatch;return s!==i.memoizedState&&(He.flags|=2048,Io(9,eu(),eA.bind(null,g,s),null)),[f,v,n]}a(fv,"updateActionStateImpl");function eA(n,i){n.action=i}a(eA,"actionStateActionEffect");function dv(n){var i=Ct(),s=nt;if(s!==null)return fv(i,s,n);Ct(),i=i.memoizedState,s=Ct();var f=s.queue.dispatch;return s.memoizedState=n,[i,f,!1]}a(dv,"rerenderActionState");function Io(n,i,s,f){return n={tag:n,create:s,deps:f,inst:i,next:null},i=He.updateQueue,i===null&&(i=md(),He.updateQueue=i),s=i.lastEffect,s===null?i.lastEffect=n.next=n:(f=s.next,s.next=n,n.next=f,i.lastEffect=n),n}a(Io,"pushSimpleEffect");function eu(){return{destroy:void 0,resource:void 0}}a(eu,"createEffectInstance");function pv(){return Ct().memoizedState}a(pv,"updateRef");function tu(n,i,s,f){var g=Zt();f=f===void 0?null:f,He.flags|=n,g.memoizedState=Io(1|i,eu(),s,f)}a(tu,"mountEffectImpl");function ol(n,i,s,f){var g=Ct();f=f===void 0?null:f;var v=g.memoizedState.inst;nt!==null&&f!==null&&cd(f,nt.memoizedState.deps)?g.memoizedState=Io(i,v,s,f):(He.flags|=n,g.memoizedState=Io(1|i,v,s,f))}a(ol,"updateEffectImpl");function hv(n,i){tu(8390656,8,n,i)}a(hv,"mountEffect");function mv(n,i){ol(2048,8,n,i)}a(mv,"updateEffect");function gv(n,i){return ol(4,2,n,i)}a(gv,"updateInsertionEffect");function yv(n,i){return ol(4,4,n,i)}a(yv,"updateLayoutEffect");function vv(n,i){if(typeof i=="function"){n=n();var s=i(n);return function(){typeof s=="function"?s():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}a(vv,"imperativeHandleEffect");function bv(n,i,s){s=s!=null?s.concat([n]):null,ol(4,4,vv.bind(null,i,n),s)}a(bv,"updateImperativeHandle");function xd(){}a(xd,"mountDebugValue");function Sv(n,i){var s=Ct();i=i===void 0?null:i;var f=s.memoizedState;return i!==null&&cd(i,f[1])?f[0]:(s.memoizedState=[n,i],n)}a(Sv,"updateCallback");function xv(n,i){var s=Ct();i=i===void 0?null:i;var f=s.memoizedState;if(i!==null&&cd(i,f[1]))return f[0];if(f=n(),Hi){Oe(!0);try{n()}finally{Oe(!1)}}return s.memoizedState=[f,i],f}a(xv,"updateMemo");function wd(n,i,s){return s===void 0||(Jr&1073741824)!==0?n.memoizedState=i:(n.memoizedState=s,n=Cb(),He.lanes|=n,ai|=n,s)}a(wd,"mountDeferredValueImpl");function wv(n,i,s,f){return un(s,i)?s:Po.current!==null?(n=wd(n,s,f),un(n,i)||(kt=!0),n):(Jr&42)===0?(kt=!0,n.memoizedState=s):(n=Cb(),He.lanes|=n,ai|=n,i)}a(wv,"updateDeferredValueImpl");function Ev(n,i,s,f,g){var v=Q.p;Q.p=v!==0&&8>v?v:8;var T=I.T,_={};I.T=_,Td(n,!1,i,s);try{var P=g(),F=I.S;if(F!==null&&F(_,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var ie=XO(P,f);al(n,i,ie,hn(n))}else al(n,i,f,hn(n))}catch(ue){al(n,i,{then:a(function(){},"then"),status:"rejected",reason:ue},hn())}finally{Q.p=v,I.T=T}}a(Ev,"startTransition");function tA(){}a(tA,"noop$2");function Ed(n,i,s,f){if(n.tag!==5)throw Error(o(476));var g=Cv(n).queue;Ev(n,g,i,te,s===null?tA:function(){return Tv(n),s(f)})}a(Ed,"startHostTransition");function Cv(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mr,lastRenderedState:te},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mr,lastRenderedState:s},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}a(Cv,"ensureFormComponentIsStateful");function Tv(n){var i=Cv(n).next.queue;al(n,i,{},hn())}a(Tv,"requestFormReset$1");function Cd(){return Ut(Cl)}a(Cd,"useHostTransitionStatus");function Rv(){return Ct().memoizedState}a(Rv,"updateId");function Ov(){return Ct().memoizedState}a(Ov,"updateRefresh");function nA(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var s=hn();n=Wr(s);var f=Zr(i,n,s);f!==null&&(mn(f,i,s),el(f,i,s)),i={cache:ed()},n.payload=i;return}i=i.return}}a(nA,"refreshCache");function rA(n,i,s){var f=hn();s={lane:f,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},nu(n)?Mv(i,s):(s=Vf(n,i,s,f),s!==null&&(mn(s,n,f),_v(s,i,f)))}a(rA,"dispatchReducerAction");function Av(n,i,s){var f=hn();al(n,i,s,f)}a(Av,"dispatchSetState");function al(n,i,s,f){var g={lane:f,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(nu(n))Mv(i,g);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=i.lastRenderedReducer,v!==null))try{var T=i.lastRenderedState,_=v(T,s);if(g.hasEagerState=!0,g.eagerState=_,un(_,T))return Us(n,i,g,0),at===null&&js(),!1}catch{}finally{}if(s=Vf(n,i,g,f),s!==null)return mn(s,n,f),_v(s,i,f),!0}return!1}a(al,"dispatchSetStateInternal");function Td(n,i,s,f){if(f={lane:2,revertLane:rp(),action:f,hasEagerState:!1,eagerState:null,next:null},nu(n)){if(i)throw Error(o(479))}else i=Vf(n,s,f,2),i!==null&&mn(i,n,2)}a(Td,"dispatchOptimisticSetState");function nu(n){var i=n.alternate;return n===He||i!==null&&i===He}a(nu,"isRenderPhaseUpdate");function Mv(n,i){Lo=Xs=!0;var s=n.pending;s===null?i.next=i:(i.next=s.next,s.next=i),n.pending=i}a(Mv,"enqueueRenderPhaseUpdate");function _v(n,i,s){if((s&4194048)!==0){var f=i.lanes;f&=n.pendingLanes,s|=f,i.lanes=s,jg(n,s)}}a(_v,"entangleTransitionUpdate");var ru={readContext:Ut,use:Zs,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useLayoutEffect:xt,useInsertionEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useSyncExternalStore:xt,useId:xt,useHostTransitionStatus:xt,useFormState:xt,useActionState:xt,useOptimistic:xt,useMemoCache:xt,useCacheRefresh:xt},kv={readContext:Ut,use:Zs,useCallback:a(function(n,i){return Zt().memoizedState=[n,i===void 0?null:i],n},"useCallback"),useContext:Ut,useEffect:hv,useImperativeHandle:a(function(n,i,s){s=s!=null?s.concat([n]):null,tu(4194308,4,vv.bind(null,i,n),s)},"useImperativeHandle"),useLayoutEffect:a(function(n,i){return tu(4194308,4,n,i)},"useLayoutEffect"),useInsertionEffect:a(function(n,i){tu(4,2,n,i)},"useInsertionEffect"),useMemo:a(function(n,i){var s=Zt();i=i===void 0?null:i;var f=n();if(Hi){Oe(!0);try{n()}finally{Oe(!1)}}return s.memoizedState=[f,i],f},"useMemo"),useReducer:a(function(n,i,s){var f=Zt();if(s!==void 0){var g=s(i);if(Hi){Oe(!0);try{s(i)}finally{Oe(!1)}}}else g=i;return f.memoizedState=f.baseState=g,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:g},f.queue=n,n=n.dispatch=rA.bind(null,He,n),[f.memoizedState,n]},"useReducer"),useRef:a(function(n){var i=Zt();return n={current:n},i.memoizedState=n},"useRef"),useState:a(function(n){n=bd(n);var i=n.queue,s=Av.bind(null,He,i);return i.dispatch=s,[n.memoizedState,s]},"useState"),useDebugValue:xd,useDeferredValue:a(function(n,i){var s=Zt();return wd(s,n,i)},"useDeferredValue"),useTransition:a(function(){var n=bd(!1);return n=Ev.bind(null,He,n.queue,!0,!1),Zt().memoizedState=n,[!1,n]},"useTransition"),useSyncExternalStore:a(function(n,i,s){var f=He,g=Zt();if(Xe){if(s===void 0)throw Error(o(407));s=s()}else{if(s=i(),at===null)throw Error(o(349));(Ye&124)!==0||Zy(f,i,s)}g.memoizedState=s;var v={value:s,getSnapshot:i};return g.queue=v,hv(ev.bind(null,f,v,n),[n]),f.flags|=2048,Io(9,eu(),Jy.bind(null,f,v,s,i),null),s},"useSyncExternalStore"),useId:a(function(){var n=Zt(),i=at.identifierPrefix;if(Xe){var s=Rr,f=Tr;s=(f&~(1<<32-ke(f)-1)).toString(32)+s,i="«"+i+"R"+s,s=Ws++,0<s&&(i+="H"+s.toString(32)),i+="»"}else s=WO++,i="«"+i+"r"+s.toString(32)+"»";return n.memoizedState=i},"useId"),useHostTransitionStatus:Cd,useFormState:uv,useActionState:uv,useOptimistic:a(function(n){var i=Zt();i.memoizedState=i.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=Td.bind(null,He,!0,s),s.dispatch=i,[n,i]},"useOptimistic"),useMemoCache:gd,useCacheRefresh:a(function(){return Zt().memoizedState=nA.bind(null,He)},"useCacheRefresh")},Dv={readContext:Ut,use:Zs,useCallback:Sv,useContext:Ut,useEffect:mv,useImperativeHandle:bv,useInsertionEffect:gv,useLayoutEffect:yv,useMemo:xv,useReducer:Js,useRef:pv,useState:a(function(){return Js(Mr)},"useState"),useDebugValue:xd,useDeferredValue:a(function(n,i){var s=Ct();return wv(s,nt.memoizedState,n,i)},"useDeferredValue"),useTransition:a(function(){var n=Js(Mr)[0],i=Ct().memoizedState;return[typeof n=="boolean"?n:il(n),i]},"useTransition"),useSyncExternalStore:Wy,useId:Rv,useHostTransitionStatus:Cd,useFormState:cv,useActionState:cv,useOptimistic:a(function(n,i){var s=Ct();return rv(s,nt,n,i)},"useOptimistic"),useMemoCache:gd,useCacheRefresh:Ov},iA={readContext:Ut,use:Zs,useCallback:Sv,useContext:Ut,useEffect:mv,useImperativeHandle:bv,useInsertionEffect:gv,useLayoutEffect:yv,useMemo:xv,useReducer:vd,useRef:pv,useState:a(function(){return vd(Mr)},"useState"),useDebugValue:xd,useDeferredValue:a(function(n,i){var s=Ct();return nt===null?wd(s,n,i):wv(s,nt.memoizedState,n,i)},"useDeferredValue"),useTransition:a(function(){var n=vd(Mr)[0],i=Ct().memoizedState;return[typeof n=="boolean"?n:il(n),i]},"useTransition"),useSyncExternalStore:Wy,useId:Rv,useHostTransitionStatus:Cd,useFormState:dv,useActionState:dv,useOptimistic:a(function(n,i){var s=Ct();return nt!==null?rv(s,nt,n,i):(s.baseState=n,[n,s.queue.dispatch])},"useOptimistic"),useMemoCache:gd,useCacheRefresh:Ov},jo=null,ll=0;function iu(n){var i=ll;return ll+=1,jo===null&&(jo=[]),qy(jo,n,i)}a(iu,"unwrapThenable");function sl(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}a(sl,"coerceRef");function ou(n,i){throw i.$$typeof===y?Error(o(525)):(n=Object.prototype.toString.call(i),Error(o(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}a(ou,"throwOnInvalidObjectType");function Nv(n){var i=n._init;return i(n._payload)}a(Nv,"resolveLazy");function Pv(n){function i(B,U){if(n){var H=B.deletions;H===null?(B.deletions=[U],B.flags|=16):H.push(U)}}a(i,"deleteChild");function s(B,U){if(!n)return null;for(;U!==null;)i(B,U),U=U.sibling;return null}a(s,"deleteRemainingChildren");function f(B){for(var U=new Map;B!==null;)B.key!==null?U.set(B.key,B):U.set(B.index,B),B=B.sibling;return U}a(f,"mapRemainingChildren");function g(B,U){return B=Cr(B,U),B.index=0,B.sibling=null,B}a(g,"useFiber");function v(B,U,H){return B.index=H,n?(H=B.alternate,H!==null?(H=H.index,H<U?(B.flags|=67108866,U):H):(B.flags|=67108866,U)):(B.flags|=1048576,U)}a(v,"placeChild");function T(B){return n&&B.alternate===null&&(B.flags|=67108866),B}a(T,"placeSingleChild");function _(B,U,H,le){return U===null||U.tag!==6?(U=$f(H,B.mode,le),U.return=B,U):(U=g(U,H),U.return=B,U)}a(_,"updateTextNode");function P(B,U,H,le){var Se=H.type;return Se===E?ie(B,U,H.props.children,le,H.key):U!==null&&(U.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===$&&Nv(Se)===U.type)?(U=g(U,H.props),sl(U,H),U.return=B,U):(U=Hs(H.type,H.key,H.props,null,B.mode,le),sl(U,H),U.return=B,U)}a(P,"updateElement");function F(B,U,H,le){return U===null||U.tag!==4||U.stateNode.containerInfo!==H.containerInfo||U.stateNode.implementation!==H.implementation?(U=Yf(H,B.mode,le),U.return=B,U):(U=g(U,H.children||[]),U.return=B,U)}a(F,"updatePortal");function ie(B,U,H,le,Se){return U===null||U.tag!==7?(U=Ni(H,B.mode,le,Se),U.return=B,U):(U=g(U,H),U.return=B,U)}a(ie,"updateFragment");function ue(B,U,H){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=$f(""+U,B.mode,H),U.return=B,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case b:return H=Hs(U.type,U.key,U.props,null,B.mode,H),sl(H,U),H.return=B,H;case x:return U=Yf(U,B.mode,H),U.return=B,U;case $:var le=U._init;return U=le(U._payload),ue(B,U,H)}if(ae(U)||Z(U))return U=Ni(U,B.mode,H,null),U.return=B,U;if(typeof U.then=="function")return ue(B,iu(U),H);if(U.$$typeof===k)return ue(B,Gs(B,U),H);ou(B,U)}return null}a(ue,"createChild");function V(B,U,H,le){var Se=U!==null?U.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return Se!==null?null:_(B,U,""+H,le);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case b:return H.key===Se?P(B,U,H,le):null;case x:return H.key===Se?F(B,U,H,le):null;case $:return Se=H._init,H=Se(H._payload),V(B,U,H,le)}if(ae(H)||Z(H))return Se!==null?null:ie(B,U,H,le,null);if(typeof H.then=="function")return V(B,U,iu(H),le);if(H.$$typeof===k)return V(B,U,Gs(B,H),le);ou(B,H)}return null}a(V,"updateSlot");function G(B,U,H,le,Se){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return B=B.get(H)||null,_(U,B,""+le,Se);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case b:return B=B.get(le.key===null?H:le.key)||null,P(U,B,le,Se);case x:return B=B.get(le.key===null?H:le.key)||null,F(U,B,le,Se);case $:var Fe=le._init;return le=Fe(le._payload),G(B,U,H,le,Se)}if(ae(le)||Z(le))return B=B.get(H)||null,ie(U,B,le,Se,null);if(typeof le.then=="function")return G(B,U,H,iu(le),Se);if(le.$$typeof===k)return G(B,U,H,Gs(U,le),Se);ou(U,le)}return null}a(G,"updateFromMap");function De(B,U,H,le){for(var Se=null,Fe=null,Re=U,Me=U=0,Nt=null;Re!==null&&Me<H.length;Me++){Re.index>Me?(Nt=Re,Re=null):Nt=Re.sibling;var Qe=V(B,Re,H[Me],le);if(Qe===null){Re===null&&(Re=Nt);break}n&&Re&&Qe.alternate===null&&i(B,Re),U=v(Qe,U,Me),Fe===null?Se=Qe:Fe.sibling=Qe,Fe=Qe,Re=Nt}if(Me===H.length)return s(B,Re),Xe&&Li(B,Me),Se;if(Re===null){for(;Me<H.length;Me++)Re=ue(B,H[Me],le),Re!==null&&(U=v(Re,U,Me),Fe===null?Se=Re:Fe.sibling=Re,Fe=Re);return Xe&&Li(B,Me),Se}for(Re=f(Re);Me<H.length;Me++)Nt=G(Re,B,Me,H[Me],le),Nt!==null&&(n&&Nt.alternate!==null&&Re.delete(Nt.key===null?Me:Nt.key),U=v(Nt,U,Me),Fe===null?Se=Nt:Fe.sibling=Nt,Fe=Nt);return n&&Re.forEach(function(mi){return i(B,mi)}),Xe&&Li(B,Me),Se}a(De,"reconcileChildrenArray");function Ae(B,U,H,le){if(H==null)throw Error(o(151));for(var Se=null,Fe=null,Re=U,Me=U=0,Nt=null,Qe=H.next();Re!==null&&!Qe.done;Me++,Qe=H.next()){Re.index>Me?(Nt=Re,Re=null):Nt=Re.sibling;var mi=V(B,Re,Qe.value,le);if(mi===null){Re===null&&(Re=Nt);break}n&&Re&&mi.alternate===null&&i(B,Re),U=v(mi,U,Me),Fe===null?Se=mi:Fe.sibling=mi,Fe=mi,Re=Nt}if(Qe.done)return s(B,Re),Xe&&Li(B,Me),Se;if(Re===null){for(;!Qe.done;Me++,Qe=H.next())Qe=ue(B,Qe.value,le),Qe!==null&&(U=v(Qe,U,Me),Fe===null?Se=Qe:Fe.sibling=Qe,Fe=Qe);return Xe&&Li(B,Me),Se}for(Re=f(Re);!Qe.done;Me++,Qe=H.next())Qe=G(Re,B,Me,Qe.value,le),Qe!==null&&(n&&Qe.alternate!==null&&Re.delete(Qe.key===null?Me:Qe.key),U=v(Qe,U,Me),Fe===null?Se=Qe:Fe.sibling=Qe,Fe=Qe);return n&&Re.forEach(function(oM){return i(B,oM)}),Xe&&Li(B,Me),Se}a(Ae,"reconcileChildrenIterator");function it(B,U,H,le){if(typeof H=="object"&&H!==null&&H.type===E&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case b:e:{for(var Se=H.key;U!==null;){if(U.key===Se){if(Se=H.type,Se===E){if(U.tag===7){s(B,U.sibling),le=g(U,H.props.children),le.return=B,B=le;break e}}else if(U.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===$&&Nv(Se)===U.type){s(B,U.sibling),le=g(U,H.props),sl(le,H),le.return=B,B=le;break e}s(B,U);break}else i(B,U);U=U.sibling}H.type===E?(le=Ni(H.props.children,B.mode,le,H.key),le.return=B,B=le):(le=Hs(H.type,H.key,H.props,null,B.mode,le),sl(le,H),le.return=B,B=le)}return T(B);case x:e:{for(Se=H.key;U!==null;){if(U.key===Se)if(U.tag===4&&U.stateNode.containerInfo===H.containerInfo&&U.stateNode.implementation===H.implementation){s(B,U.sibling),le=g(U,H.children||[]),le.return=B,B=le;break e}else{s(B,U);break}else i(B,U);U=U.sibling}le=Yf(H,B.mode,le),le.return=B,B=le}return T(B);case $:return Se=H._init,H=Se(H._payload),it(B,U,H,le)}if(ae(H))return De(B,U,H,le);if(Z(H)){if(Se=Z(H),typeof Se!="function")throw Error(o(150));return H=Se.call(H),Ae(B,U,H,le)}if(typeof H.then=="function")return it(B,U,iu(H),le);if(H.$$typeof===k)return it(B,U,Gs(B,H),le);ou(B,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,U!==null&&U.tag===6?(s(B,U.sibling),le=g(U,H),le.return=B,B=le):(s(B,U),le=$f(H,B.mode,le),le.return=B,B=le),T(B)):s(B,U)}return a(it,"reconcileChildFibersImpl"),function(B,U,H,le){try{ll=0;var Se=it(B,U,H,le);return jo=null,Se}catch(Re){if(Re===Za||Re===Ys)throw Re;var Fe=cn(29,Re,null,B.mode);return Fe.lanes=le,Fe.return=B,Fe}finally{}}}a(Pv,"createChildReconciler");var Uo=Pv(!0),Lv=Pv(!1),Mn=Y(null),er=null;function ei(n){var i=n.alternate;M(Ot,Ot.current&1),M(Mn,n),er===null&&(i===null||Po.current!==null||i.memoizedState!==null)&&(er=n)}a(ei,"pushPrimaryTreeSuspenseHandler");function zv(n){if(n.tag===22){if(M(Ot,Ot.current),M(Mn,n),er===null){var i=n.alternate;i!==null&&i.memoizedState!==null&&(er=n)}}else ti()}a(zv,"pushOffscreenSuspenseHandler");function ti(){M(Ot,Ot.current),M(Mn,Mn.current)}a(ti,"reuseSuspenseHandlerOnStack");function _r(n){de(Mn),er===n&&(er=null),de(Ot)}a(_r,"popSuspenseHandler");var Ot=Y(0);function au(n){for(var i=n;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||mp(s)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}a(au,"findFirstSuspended");function Rd(n,i,s,f){i=n.memoizedState,s=s(f,i),s=s==null?i:m({},i,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}a(Rd,"applyDerivedStateFromProps");var Od={enqueueSetState:a(function(n,i,s){n=n._reactInternals;var f=hn(),g=Wr(f);g.payload=i,s!=null&&(g.callback=s),i=Zr(n,g,f),i!==null&&(mn(i,n,f),el(i,n,f))},"enqueueSetState"),enqueueReplaceState:a(function(n,i,s){n=n._reactInternals;var f=hn(),g=Wr(f);g.tag=1,g.payload=i,s!=null&&(g.callback=s),i=Zr(n,g,f),i!==null&&(mn(i,n,f),el(i,n,f))},"enqueueReplaceState"),enqueueForceUpdate:a(function(n,i){n=n._reactInternals;var s=hn(),f=Wr(s);f.tag=2,i!=null&&(f.callback=i),i=Zr(n,f,s),i!==null&&(mn(i,n,s),el(i,n,s))},"enqueueForceUpdate")};function Iv(n,i,s,f,g,v,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(f,v,T):i.prototype&&i.prototype.isPureReactComponent?!Va(s,f)||!Va(g,v):!0}a(Iv,"checkShouldComponentUpdate");function jv(n,i,s,f){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,f),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,f),i.state!==n&&Od.enqueueReplaceState(i,i.state,null)}a(jv,"callComponentWillReceiveProps");function Fi(n,i){var s=i;if("ref"in i){s={};for(var f in i)f!=="ref"&&(s[f]=i[f])}if(n=n.defaultProps){s===i&&(s=m({},s));for(var g in n)s[g]===void 0&&(s[g]=n[g])}return s}a(Fi,"resolveClassComponentProps");var lu=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function Uv(n){lu(n)}a(Uv,"defaultOnUncaughtError");function Bv(n){console.error(n)}a(Bv,"defaultOnCaughtError");function Hv(n){lu(n)}a(Hv,"defaultOnRecoverableError");function su(n,i){try{var s=n.onUncaughtError;s(i.value,{componentStack:i.stack})}catch(f){setTimeout(function(){throw f})}}a(su,"logUncaughtError");function Fv(n,i,s){try{var f=n.onCaughtError;f(s.value,{componentStack:s.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(g){setTimeout(function(){throw g})}}a(Fv,"logCaughtError");function Ad(n,i,s){return s=Wr(s),s.tag=3,s.payload={element:null},s.callback=function(){su(n,i)},s}a(Ad,"createRootErrorUpdate");function qv(n){return n=Wr(n),n.tag=3,n}a(qv,"createClassErrorUpdate");function Vv(n,i,s,f){var g=s.type.getDerivedStateFromError;if(typeof g=="function"){var v=f.value;n.payload=function(){return g(v)},n.callback=function(){Fv(i,s,f)}}var T=s.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(n.callback=function(){Fv(i,s,f),typeof g!="function"&&(li===null?li=new Set([this]):li.add(this));var _=f.stack;this.componentDidCatch(f.value,{componentStack:_!==null?_:""})})}a(Vv,"initializeClassErrorUpdate");function oA(n,i,s,f,g){if(s.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(i=s.alternate,i!==null&&Qa(i,s,g,!0),s=Mn.current,s!==null){switch(s.tag){case 13:return er===null?Zd():s.alternate===null&&mt===0&&(mt=3),s.flags&=-257,s.flags|=65536,s.lanes=g,f===rd?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([f]):i.add(f),ep(n,f,g)),!1;case 22:return s.flags|=65536,f===rd?s.flags|=16384:(i=s.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([f])},s.updateQueue=i):(s=i.retryQueue,s===null?i.retryQueue=new Set([f]):s.add(f)),ep(n,f,g)),!1}throw Error(o(435,s.tag))}return ep(n,f,g),Zd(),!1}if(Xe)return i=Mn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=g,f!==Xf&&(n=Error(o(422),{cause:f}),Ka(Tn(n,s)))):(f!==Xf&&(i=Error(o(423),{cause:f}),Ka(Tn(i,s))),n=n.current.alternate,n.flags|=65536,g&=-g,n.lanes|=g,f=Tn(f,s),g=Ad(n.stateNode,f,g),ad(n,g),mt!==4&&(mt=2)),!1;var v=Error(o(520),{cause:f});if(v=Tn(v,s),ml===null?ml=[v]:ml.push(v),mt!==4&&(mt=2),i===null)return!0;f=Tn(f,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,n=g&-g,s.lanes|=n,n=Ad(s.stateNode,f,n),ad(s,n),!1;case 1:if(i=s.type,v=s.stateNode,(s.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(li===null||!li.has(v))))return s.flags|=65536,g&=-g,s.lanes|=g,g=qv(g),Vv(g,n,s,f),ad(s,g),!1}s=s.return}while(s!==null);return!1}a(oA,"throwException");var Gv=Error(o(461)),kt=!1;function Pt(n,i,s,f){i.child=n===null?Lv(i,null,s,f):Uo(i,n.child,s,f)}a(Pt,"reconcileChildren");function $v(n,i,s,f,g){s=s.render;var v=i.ref;if("ref"in f){var T={};for(var _ in f)_!=="ref"&&(T[_]=f[_])}else T=f;return Ui(i),f=fd(n,i,s,T,v,g),_=dd(),n!==null&&!kt?(pd(n,i,g),kr(n,i,g)):(Xe&&_&&Kf(i),i.flags|=1,Pt(n,i,f,g),i.child)}a($v,"updateForwardRef");function Yv(n,i,s,f,g){if(n===null){var v=s.type;return typeof v=="function"&&!Gf(v)&&v.defaultProps===void 0&&s.compare===null?(i.tag=15,i.type=v,Kv(n,i,v,f,g)):(n=Hs(s.type,null,f,i,i.mode,g),n.ref=i.ref,n.return=i,i.child=n)}if(v=n.child,!zd(n,g)){var T=v.memoizedProps;if(s=s.compare,s=s!==null?s:Va,s(T,f)&&n.ref===i.ref)return kr(n,i,g)}return i.flags|=1,n=Cr(v,f),n.ref=i.ref,n.return=i,i.child=n}a(Yv,"updateMemoComponent");function Kv(n,i,s,f,g){if(n!==null){var v=n.memoizedProps;if(Va(v,f)&&n.ref===i.ref)if(kt=!1,i.pendingProps=f=v,zd(n,g))(n.flags&131072)!==0&&(kt=!0);else return i.lanes=n.lanes,kr(n,i,g)}return Md(n,i,s,f,g)}a(Kv,"updateSimpleMemoComponent");function Qv(n,i,s){var f=i.pendingProps,g=f.children,v=n!==null?n.memoizedState:null;if(f.mode==="hidden"){if((i.flags&128)!==0){if(f=v!==null?v.baseLanes|s:s,n!==null){for(g=i.child=n.child,v=0;g!==null;)v=v|g.lanes|g.childLanes,g=g.sibling;i.childLanes=v&~f}else i.childLanes=0,i.child=null;return Xv(n,i,f,s)}if((s&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&$s(i,v!==null?v.cachePool:null),v!==null?Ky(i,v):sd(),zv(i);else return i.lanes=i.childLanes=536870912,Xv(n,i,v!==null?v.baseLanes|s:s,s)}else v!==null?($s(i,v.cachePool),Ky(i,v),ti(),i.memoizedState=null):(n!==null&&$s(i,null),sd(),ti());return Pt(n,i,g,s),i.child}a(Qv,"updateOffscreenComponent");function Xv(n,i,s,f){var g=nd();return g=g===null?null:{parent:Rt._currentValue,pool:g},i.memoizedState={baseLanes:s,cachePool:g},n!==null&&$s(i,null),sd(),zv(i),n!==null&&Qa(n,i,f,!0),null}a(Xv,"deferHiddenOffscreenComponent");function uu(n,i){var s=i.ref;if(s===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(o(284));(n===null||n.ref!==s)&&(i.flags|=4194816)}}a(uu,"markRef");function Md(n,i,s,f,g){return Ui(i),s=fd(n,i,s,f,void 0,g),f=dd(),n!==null&&!kt?(pd(n,i,g),kr(n,i,g)):(Xe&&f&&Kf(i),i.flags|=1,Pt(n,i,s,g),i.child)}a(Md,"updateFunctionComponent");function Wv(n,i,s,f,g,v){return Ui(i),i.updateQueue=null,s=Xy(i,f,s,g),Qy(n),f=dd(),n!==null&&!kt?(pd(n,i,v),kr(n,i,v)):(Xe&&f&&Kf(i),i.flags|=1,Pt(n,i,s,v),i.child)}a(Wv,"replayFunctionComponent");function Zv(n,i,s,f,g){if(Ui(i),i.stateNode===null){var v=Mo,T=s.contextType;typeof T=="object"&&T!==null&&(v=Ut(T)),v=new s(f,v),i.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Od,i.stateNode=v,v._reactInternals=i,v=i.stateNode,v.props=f,v.state=i.memoizedState,v.refs={},id(i),T=s.contextType,v.context=typeof T=="object"&&T!==null?Ut(T):Mo,v.state=i.memoizedState,T=s.getDerivedStateFromProps,typeof T=="function"&&(Rd(i,s,T,f),v.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(T=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),T!==v.state&&Od.enqueueReplaceState(v,v.state,null),nl(i,f,v,g),tl(),v.state=i.memoizedState),typeof v.componentDidMount=="function"&&(i.flags|=4194308),f=!0}else if(n===null){v=i.stateNode;var _=i.memoizedProps,P=Fi(s,_);v.props=P;var F=v.context,ie=s.contextType;T=Mo,typeof ie=="object"&&ie!==null&&(T=Ut(ie));var ue=s.getDerivedStateFromProps;ie=typeof ue=="function"||typeof v.getSnapshotBeforeUpdate=="function",_=i.pendingProps!==_,ie||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(_||F!==T)&&jv(i,v,f,T),Xr=!1;var V=i.memoizedState;v.state=V,nl(i,f,v,g),tl(),F=i.memoizedState,_||V!==F||Xr?(typeof ue=="function"&&(Rd(i,s,ue,f),F=i.memoizedState),(P=Xr||Iv(i,s,P,f,V,F,T))?(ie||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(i.flags|=4194308)):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=f,i.memoizedState=F),v.props=f,v.state=F,v.context=T,f=P):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),f=!1)}else{v=i.stateNode,od(n,i),T=i.memoizedProps,ie=Fi(s,T),v.props=ie,ue=i.pendingProps,V=v.context,F=s.contextType,P=Mo,typeof F=="object"&&F!==null&&(P=Ut(F)),_=s.getDerivedStateFromProps,(F=typeof _=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(T!==ue||V!==P)&&jv(i,v,f,P),Xr=!1,V=i.memoizedState,v.state=V,nl(i,f,v,g),tl();var G=i.memoizedState;T!==ue||V!==G||Xr||n!==null&&n.dependencies!==null&&Vs(n.dependencies)?(typeof _=="function"&&(Rd(i,s,_,f),G=i.memoizedState),(ie=Xr||Iv(i,s,ie,f,V,G,P)||n!==null&&n.dependencies!==null&&Vs(n.dependencies))?(F||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(f,G,P),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(f,G,P)),typeof v.componentDidUpdate=="function"&&(i.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof v.componentDidUpdate!="function"||T===n.memoizedProps&&V===n.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&V===n.memoizedState||(i.flags|=1024),i.memoizedProps=f,i.memoizedState=G),v.props=f,v.state=G,v.context=P,f=ie):(typeof v.componentDidUpdate!="function"||T===n.memoizedProps&&V===n.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&V===n.memoizedState||(i.flags|=1024),f=!1)}return v=f,uu(n,i),f=(i.flags&128)!==0,v||f?(v=i.stateNode,s=f&&typeof s.getDerivedStateFromError!="function"?null:v.render(),i.flags|=1,n!==null&&f?(i.child=Uo(i,n.child,null,g),i.child=Uo(i,null,s,g)):Pt(n,i,s,g),i.memoizedState=v.state,n=i.child):n=kr(n,i,g),n}a(Zv,"updateClassComponent");function Jv(n,i,s,f){return Ya(),i.flags|=256,Pt(n,i,s,f),i.child}a(Jv,"mountHostRootWithoutHydrating");var _d={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function kd(n){return{baseLanes:n,cachePool:By()}}a(kd,"mountSuspenseOffscreenState");function Dd(n,i,s){return n=n!==null?n.childLanes&~s:0,i&&(n|=_n),n}a(Dd,"getRemainingWorkInPrimaryTree");function eb(n,i,s){var f=i.pendingProps,g=!1,v=(i.flags&128)!==0,T;if((T=v)||(T=n!==null&&n.memoizedState===null?!1:(Ot.current&2)!==0),T&&(g=!0,i.flags&=-129),T=(i.flags&32)!==0,i.flags&=-33,n===null){if(Xe){if(g?ei(i):ti(),Xe){var _=ht,P;if(P=_){e:{for(P=_,_=Jn;P.nodeType!==8;){if(!_){_=null;break e}if(P=Hn(P.nextSibling),P===null){_=null;break e}}_=P}_!==null?(i.memoizedState={dehydrated:_,treeContext:Pi!==null?{id:Tr,overflow:Rr}:null,retryLane:536870912,hydrationErrors:null},P=cn(18,null,null,0),P.stateNode=_,P.return=i,i.child=P,Vt=i,ht=null,P=!0):P=!1}P||Ii(i)}if(_=i.memoizedState,_!==null&&(_=_.dehydrated,_!==null))return mp(_)?i.lanes=32:i.lanes=536870912,null;_r(i)}return _=f.children,f=f.fallback,g?(ti(),g=i.mode,_=cu({mode:"hidden",children:_},g),f=Ni(f,g,s,null),_.return=i,f.return=i,_.sibling=f,i.child=_,g=i.child,g.memoizedState=kd(s),g.childLanes=Dd(n,T,s),i.memoizedState=_d,f):(ei(i),Nd(i,_))}if(P=n.memoizedState,P!==null&&(_=P.dehydrated,_!==null)){if(v)i.flags&256?(ei(i),i.flags&=-257,i=Pd(n,i,s)):i.memoizedState!==null?(ti(),i.child=n.child,i.flags|=128,i=null):(ti(),g=f.fallback,_=i.mode,f=cu({mode:"visible",children:f.children},_),g=Ni(g,_,s,null),g.flags|=2,f.return=i,g.return=i,f.sibling=g,i.child=f,Uo(i,n.child,null,s),f=i.child,f.memoizedState=kd(s),f.childLanes=Dd(n,T,s),i.memoizedState=_d,i=g);else if(ei(i),mp(_)){if(T=_.nextSibling&&_.nextSibling.dataset,T)var F=T.dgst;T=F,f=Error(o(419)),f.stack="",f.digest=T,Ka({value:f,source:null,stack:null}),i=Pd(n,i,s)}else if(kt||Qa(n,i,s,!1),T=(s&n.childLanes)!==0,kt||T){if(T=at,T!==null&&(f=s&-s,f=(f&42)!==0?1:gf(f),f=(f&(T.suspendedLanes|s))!==0?0:f,f!==0&&f!==P.retryLane))throw P.retryLane=f,Ao(n,f),mn(T,n,f),Gv;_.data==="$?"||Zd(),i=Pd(n,i,s)}else _.data==="$?"?(i.flags|=192,i.child=n.child,i=null):(n=P.treeContext,ht=Hn(_.nextSibling),Vt=i,Xe=!0,zi=null,Jn=!1,n!==null&&(On[An++]=Tr,On[An++]=Rr,On[An++]=Pi,Tr=n.id,Rr=n.overflow,Pi=i),i=Nd(i,f.children),i.flags|=4096);return i}return g?(ti(),g=f.fallback,_=i.mode,P=n.child,F=P.sibling,f=Cr(P,{mode:"hidden",children:f.children}),f.subtreeFlags=P.subtreeFlags&65011712,F!==null?g=Cr(F,g):(g=Ni(g,_,s,null),g.flags|=2),g.return=i,f.return=i,f.sibling=g,i.child=f,f=g,g=i.child,_=n.child.memoizedState,_===null?_=kd(s):(P=_.cachePool,P!==null?(F=Rt._currentValue,P=P.parent!==F?{parent:F,pool:F}:P):P=By(),_={baseLanes:_.baseLanes|s,cachePool:P}),g.memoizedState=_,g.childLanes=Dd(n,T,s),i.memoizedState=_d,f):(ei(i),s=n.child,n=s.sibling,s=Cr(s,{mode:"visible",children:f.children}),s.return=i,s.sibling=null,n!==null&&(T=i.deletions,T===null?(i.deletions=[n],i.flags|=16):T.push(n)),i.child=s,i.memoizedState=null,s)}a(eb,"updateSuspenseComponent");function Nd(n,i){return i=cu({mode:"visible",children:i},n.mode),i.return=n,n.child=i}a(Nd,"mountSuspensePrimaryChildren");function cu(n,i){return n=cn(22,n,null,i),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}a(cu,"mountWorkInProgressOffscreenFiber");function Pd(n,i,s){return Uo(i,n.child,null,s),n=Nd(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}a(Pd,"retrySuspenseComponentWithoutHydrating");function tb(n,i,s){n.lanes|=i;var f=n.alternate;f!==null&&(f.lanes|=i),Zf(n.return,i,s)}a(tb,"scheduleSuspenseWorkOnFiber");function Ld(n,i,s,f,g){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:f,tail:s,tailMode:g}:(v.isBackwards=i,v.rendering=null,v.renderingStartTime=0,v.last=f,v.tail=s,v.tailMode=g)}a(Ld,"initSuspenseListRenderState");function nb(n,i,s){var f=i.pendingProps,g=f.revealOrder,v=f.tail;if(Pt(n,i,f.children,s),f=Ot.current,(f&2)!==0)f=f&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&tb(n,s,i);else if(n.tag===19)tb(n,s,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}f&=1}switch(M(Ot,f),g){case"forwards":for(s=i.child,g=null;s!==null;)n=s.alternate,n!==null&&au(n)===null&&(g=s),s=s.sibling;s=g,s===null?(g=i.child,i.child=null):(g=s.sibling,s.sibling=null),Ld(i,!1,g,s,v);break;case"backwards":for(s=null,g=i.child,i.child=null;g!==null;){if(n=g.alternate,n!==null&&au(n)===null){i.child=g;break}n=g.sibling,g.sibling=s,s=g,g=n}Ld(i,!0,s,null,v);break;case"together":Ld(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}a(nb,"updateSuspenseListComponent");function kr(n,i,s){if(n!==null&&(i.dependencies=n.dependencies),ai|=i.lanes,(s&i.childLanes)===0)if(n!==null){if(Qa(n,i,s,!1),(s&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(o(153));if(i.child!==null){for(n=i.child,s=Cr(n,n.pendingProps),i.child=s,s.return=i;n.sibling!==null;)n=n.sibling,s=s.sibling=Cr(n,n.pendingProps),s.return=i;s.sibling=null}return i.child}a(kr,"bailoutOnAlreadyFinishedWork");function zd(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&Vs(n)))}a(zd,"checkScheduledUpdateOrContext");function aA(n,i,s){switch(i.tag){case 3:fe(i,i.stateNode.containerInfo),Qr(i,Rt,n.memoizedState.cache),Ya();break;case 27:case 5:Te(i);break;case 4:fe(i,i.stateNode.containerInfo);break;case 10:Qr(i,i.type,i.memoizedProps.value);break;case 13:var f=i.memoizedState;if(f!==null)return f.dehydrated!==null?(ei(i),i.flags|=128,null):(s&i.child.childLanes)!==0?eb(n,i,s):(ei(i),n=kr(n,i,s),n!==null?n.sibling:null);ei(i);break;case 19:var g=(n.flags&128)!==0;if(f=(s&i.childLanes)!==0,f||(Qa(n,i,s,!1),f=(s&i.childLanes)!==0),g){if(f)return nb(n,i,s);i.flags|=128}if(g=i.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),M(Ot,Ot.current),f)break;return null;case 22:case 23:return i.lanes=0,Qv(n,i,s);case 24:Qr(i,Rt,n.memoizedState.cache)}return kr(n,i,s)}a(aA,"attemptEarlyBailoutIfNoScheduledUpdate");function rb(n,i,s){if(n!==null)if(n.memoizedProps!==i.pendingProps)kt=!0;else{if(!zd(n,s)&&(i.flags&128)===0)return kt=!1,aA(n,i,s);kt=(n.flags&131072)!==0}else kt=!1,Xe&&(i.flags&1048576)!==0&&Ny(i,qs,i.index);switch(i.lanes=0,i.tag){case 16:e:{n=i.pendingProps;var f=i.elementType,g=f._init;if(f=g(f._payload),i.type=f,typeof f=="function")Gf(f)?(n=Fi(f,n),i.tag=1,i=Zv(null,i,f,n,s)):(i.tag=0,i=Md(null,i,f,n,s));else{if(f!=null){if(g=f.$$typeof,g===z){i.tag=11,i=$v(null,i,f,n,s);break e}else if(g===j){i.tag=14,i=Yv(null,i,f,n,s);break e}}throw i=q(f)||f,Error(o(306,i,""))}}return i;case 0:return Md(n,i,i.type,i.pendingProps,s);case 1:return f=i.type,g=Fi(f,i.pendingProps),Zv(n,i,f,g,s);case 3:e:{if(fe(i,i.stateNode.containerInfo),n===null)throw Error(o(387));f=i.pendingProps;var v=i.memoizedState;g=v.element,od(n,i),nl(i,f,null,s);var T=i.memoizedState;if(f=T.cache,Qr(i,Rt,f),f!==v.cache&&Jf(i,[Rt],s,!0),tl(),f=T.element,v.isDehydrated)if(v={element:f,isDehydrated:!1,cache:T.cache},i.updateQueue.baseState=v,i.memoizedState=v,i.flags&256){i=Jv(n,i,f,s);break e}else if(f!==g){g=Tn(Error(o(424)),i),Ka(g),i=Jv(n,i,f,s);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(ht=Hn(n.firstChild),Vt=i,Xe=!0,zi=null,Jn=!0,s=Lv(i,null,f,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Ya(),f===g){i=kr(n,i,s);break e}Pt(n,i,f,s)}i=i.child}return i;case 26:return uu(n,i),n===null?(s=l0(i.type,null,i.pendingProps,null))?i.memoizedState=s:Xe||(s=i.type,n=i.pendingProps,f=Cu(oe.current).createElement(s),f[jt]=i,f[Xt]=n,zt(f,s,n),_t(f),i.stateNode=f):i.memoizedState=l0(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return Te(i),n===null&&Xe&&(f=i.stateNode=i0(i.type,i.pendingProps,oe.current),Vt=i,Jn=!0,g=ht,ci(i.type)?(gp=g,ht=Hn(f.firstChild)):ht=g),Pt(n,i,i.pendingProps.children,s),uu(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Xe&&((g=f=ht)&&(f=PA(f,i.type,i.pendingProps,Jn),f!==null?(i.stateNode=f,Vt=i,ht=Hn(f.firstChild),Jn=!1,g=!0):g=!1),g||Ii(i)),Te(i),g=i.type,v=i.pendingProps,T=n!==null?n.memoizedProps:null,f=v.children,dp(g,v)?f=null:T!==null&&dp(g,T)&&(i.flags|=32),i.memoizedState!==null&&(g=fd(n,i,ZO,null,null,s),Cl._currentValue=g),uu(n,i),Pt(n,i,f,s),i.child;case 6:return n===null&&Xe&&((n=s=ht)&&(s=LA(s,i.pendingProps,Jn),s!==null?(i.stateNode=s,Vt=i,ht=null,n=!0):n=!1),n||Ii(i)),null;case 13:return eb(n,i,s);case 4:return fe(i,i.stateNode.containerInfo),f=i.pendingProps,n===null?i.child=Uo(i,null,f,s):Pt(n,i,f,s),i.child;case 11:return $v(n,i,i.type,i.pendingProps,s);case 7:return Pt(n,i,i.pendingProps,s),i.child;case 8:return Pt(n,i,i.pendingProps.children,s),i.child;case 12:return Pt(n,i,i.pendingProps.children,s),i.child;case 10:return f=i.pendingProps,Qr(i,i.type,f.value),Pt(n,i,f.children,s),i.child;case 9:return g=i.type._context,f=i.pendingProps.children,Ui(i),g=Ut(g),f=f(g),i.flags|=1,Pt(n,i,f,s),i.child;case 14:return Yv(n,i,i.type,i.pendingProps,s);case 15:return Kv(n,i,i.type,i.pendingProps,s);case 19:return nb(n,i,s);case 31:return f=i.pendingProps,s=i.mode,f={mode:f.mode,children:f.children},n===null?(s=cu(f,s),s.ref=i.ref,i.child=s,s.return=i,i=s):(s=Cr(n.child,f),s.ref=i.ref,i.child=s,s.return=i,i=s),i;case 22:return Qv(n,i,s);case 24:return Ui(i),f=Ut(Rt),n===null?(g=nd(),g===null&&(g=at,v=ed(),g.pooledCache=v,v.refCount++,v!==null&&(g.pooledCacheLanes|=s),g=v),i.memoizedState={parent:f,cache:g},id(i),Qr(i,Rt,g)):((n.lanes&s)!==0&&(od(n,i),nl(i,null,null,s),tl()),g=n.memoizedState,v=i.memoizedState,g.parent!==f?(g={parent:f,cache:f},i.memoizedState=g,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=g),Qr(i,Rt,f)):(f=v.cache,Qr(i,Rt,f),f!==g.cache&&Jf(i,[Rt],s,!0))),Pt(n,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error(o(156,i.tag))}a(rb,"beginWork");function Dr(n){n.flags|=4}a(Dr,"markUpdate");function ib(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!d0(i)){if(i=Mn.current,i!==null&&((Ye&4194048)===Ye?er!==null:(Ye&62914560)!==Ye&&(Ye&536870912)===0||i!==er))throw Ja=rd,Hy;n.flags|=8192}}a(ib,"preloadResourceAndSuspendIfNeeded");function fu(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?zg():536870912,n.lanes|=i,qo|=i)}a(fu,"scheduleRetryEffect");function ul(n,i){if(!Xe)switch(n.tailMode){case"hidden":i=n.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var f=null;s!==null;)s.alternate!==null&&(f=s),s=s.sibling;f===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:f.sibling=null}}a(ul,"cutOffTailIfNeeded");function dt(n){var i=n.alternate!==null&&n.alternate.child===n.child,s=0,f=0;if(i)for(var g=n.child;g!==null;)s|=g.lanes|g.childLanes,f|=g.subtreeFlags&65011712,f|=g.flags&65011712,g.return=n,g=g.sibling;else for(g=n.child;g!==null;)s|=g.lanes|g.childLanes,f|=g.subtreeFlags,f|=g.flags,g.return=n,g=g.sibling;return n.subtreeFlags|=f,n.childLanes=s,i}a(dt,"bubbleProperties");function lA(n,i,s){var f=i.pendingProps;switch(Qf(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(i),null;case 1:return dt(i),null;case 3:return s=i.stateNode,f=null,n!==null&&(f=n.memoizedState.cache),i.memoizedState.cache!==f&&(i.flags|=2048),Ar(Rt),Ce(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&($a(i)?Dr(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,zy())),dt(i),null;case 26:return s=i.memoizedState,n===null?(Dr(i),s!==null?(dt(i),ib(i,s)):(dt(i),i.flags&=-16777217)):s?s!==n.memoizedState?(Dr(i),dt(i),ib(i,s)):(dt(i),i.flags&=-16777217):(n.memoizedProps!==f&&Dr(i),dt(i),i.flags&=-16777217),null;case 27:Pe(i),s=oe.current;var g=i.type;if(n!==null&&i.stateNode!=null)n.memoizedProps!==f&&Dr(i);else{if(!f){if(i.stateNode===null)throw Error(o(166));return dt(i),null}n=ne.current,$a(i)?Py(i):(n=i0(g,f,s),i.stateNode=n,Dr(i))}return dt(i),null;case 5:if(Pe(i),s=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==f&&Dr(i);else{if(!f){if(i.stateNode===null)throw Error(o(166));return dt(i),null}if(n=ne.current,$a(i))Py(i);else{switch(g=Cu(oe.current),n){case 1:n=g.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:n=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":n=g.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":n=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":n=g.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof f.is=="string"?g.createElement("select",{is:f.is}):g.createElement("select"),f.multiple?n.multiple=!0:f.size&&(n.size=f.size);break;default:n=typeof f.is=="string"?g.createElement(s,{is:f.is}):g.createElement(s)}}n[jt]=i,n[Xt]=f;e:for(g=i.child;g!==null;){if(g.tag===5||g.tag===6)n.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===i)break e;for(;g.sibling===null;){if(g.return===null||g.return===i)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}i.stateNode=n;e:switch(zt(n,s,f),s){case"button":case"input":case"select":case"textarea":n=!!f.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Dr(i)}}return dt(i),i.flags&=-16777217,null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==f&&Dr(i);else{if(typeof f!="string"&&i.stateNode===null)throw Error(o(166));if(n=oe.current,$a(i)){if(n=i.stateNode,s=i.memoizedProps,f=null,g=Vt,g!==null)switch(g.tag){case 27:case 5:f=g.memoizedProps}n[jt]=i,n=!!(n.nodeValue===s||f!==null&&f.suppressHydrationWarning===!0||Wb(n.nodeValue,s)),n||Ii(i)}else n=Cu(n).createTextNode(f),n[jt]=i,i.stateNode=n}return dt(i),null;case 13:if(f=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(g=$a(i),f!==null&&f.dehydrated!==null){if(n===null){if(!g)throw Error(o(318));if(g=i.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(o(317));g[jt]=i}else Ya(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;dt(i),g=!1}else g=zy(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=g),g=!0;if(!g)return i.flags&256?(_r(i),i):(_r(i),null)}if(_r(i),(i.flags&128)!==0)return i.lanes=s,i;if(s=f!==null,n=n!==null&&n.memoizedState!==null,s){f=i.child,g=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(g=f.alternate.memoizedState.cachePool.pool);var v=null;f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(v=f.memoizedState.cachePool.pool),v!==g&&(f.flags|=2048)}return s!==n&&s&&(i.child.flags|=8192),fu(i,i.updateQueue),dt(i),null;case 4:return Ce(),n===null&&lp(i.stateNode.containerInfo),dt(i),null;case 10:return Ar(i.type),dt(i),null;case 19:if(de(Ot),g=i.memoizedState,g===null)return dt(i),null;if(f=(i.flags&128)!==0,v=g.rendering,v===null)if(f)ul(g,!1);else{if(mt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(v=au(n),v!==null){for(i.flags|=128,ul(g,!1),n=v.updateQueue,i.updateQueue=n,fu(i,n),i.subtreeFlags=0,n=s,s=i.child;s!==null;)Dy(s,n),s=s.sibling;return M(Ot,Ot.current&1|2),i.child}n=n.sibling}g.tail!==null&&St()>hu&&(i.flags|=128,f=!0,ul(g,!1),i.lanes=4194304)}else{if(!f)if(n=au(v),n!==null){if(i.flags|=128,f=!0,n=n.updateQueue,i.updateQueue=n,fu(i,n),ul(g,!0),g.tail===null&&g.tailMode==="hidden"&&!v.alternate&&!Xe)return dt(i),null}else 2*St()-g.renderingStartTime>hu&&s!==536870912&&(i.flags|=128,f=!0,ul(g,!1),i.lanes=4194304);g.isBackwards?(v.sibling=i.child,i.child=v):(n=g.last,n!==null?n.sibling=v:i.child=v,g.last=v)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=St(),i.sibling=null,n=Ot.current,M(Ot,f?n&1|2:n&1),i):(dt(i),null);case 22:case 23:return _r(i),ud(),f=i.memoizedState!==null,n!==null?n.memoizedState!==null!==f&&(i.flags|=8192):f&&(i.flags|=8192),f?(s&536870912)!==0&&(i.flags&128)===0&&(dt(i),i.subtreeFlags&6&&(i.flags|=8192)):dt(i),s=i.updateQueue,s!==null&&fu(i,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),f=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==s&&(i.flags|=2048),n!==null&&de(Bi),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),Ar(Rt),dt(i),null;case 25:return null;case 30:return null}throw Error(o(156,i.tag))}a(lA,"completeWork");function sA(n,i){switch(Qf(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return Ar(Rt),Ce(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return Pe(i),null;case 13:if(_r(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(o(340));Ya()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return de(Ot),null;case 4:return Ce(),null;case 10:return Ar(i.type),null;case 22:case 23:return _r(i),ud(),n!==null&&de(Bi),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return Ar(Rt),null;case 25:return null;default:return null}}a(sA,"unwindWork");function ob(n,i){switch(Qf(i),i.tag){case 3:Ar(Rt),Ce();break;case 26:case 27:case 5:Pe(i);break;case 4:Ce();break;case 13:_r(i);break;case 19:de(Ot);break;case 10:Ar(i.type);break;case 22:case 23:_r(i),ud(),n!==null&&de(Bi);break;case 24:Ar(Rt)}}a(ob,"unwindInterruptedWork");function cl(n,i){try{var s=i.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var g=f.next;s=g;do{if((s.tag&n)===n){f=void 0;var v=s.create,T=s.inst;f=v(),T.destroy=f}s=s.next}while(s!==g)}}catch(_){ot(i,i.return,_)}}a(cl,"commitHookEffectListMount");function ni(n,i,s){try{var f=i.updateQueue,g=f!==null?f.lastEffect:null;if(g!==null){var v=g.next;f=v;do{if((f.tag&n)===n){var T=f.inst,_=T.destroy;if(_!==void 0){T.destroy=void 0,g=i;var P=s,F=_;try{F()}catch(ie){ot(g,P,ie)}}}f=f.next}while(f!==v)}}catch(ie){ot(i,i.return,ie)}}a(ni,"commitHookEffectListUnmount");function ab(n){var i=n.updateQueue;if(i!==null){var s=n.stateNode;try{Yy(i,s)}catch(f){ot(n,n.return,f)}}}a(ab,"commitClassCallbacks");function lb(n,i,s){s.props=Fi(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(f){ot(n,i,f)}}a(lb,"safelyCallComponentWillUnmount");function fl(n,i){try{var s=n.ref;if(s!==null){switch(n.tag){case 26:case 27:case 5:var f=n.stateNode;break;case 30:f=n.stateNode;break;default:f=n.stateNode}typeof s=="function"?n.refCleanup=s(f):s.current=f}}catch(g){ot(n,i,g)}}a(fl,"safelyAttachRef");function tr(n,i){var s=n.ref,f=n.refCleanup;if(s!==null)if(typeof f=="function")try{f()}catch(g){ot(n,i,g)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(g){ot(n,i,g)}else s.current=null}a(tr,"safelyDetachRef");function sb(n){var i=n.type,s=n.memoizedProps,f=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":s.autoFocus&&f.focus();break e;case"img":s.src?f.src=s.src:s.srcSet&&(f.srcset=s.srcSet)}}catch(g){ot(n,n.return,g)}}a(sb,"commitHostMount");function Id(n,i,s){try{var f=n.stateNode;MA(f,n.type,s,i),f[Xt]=i}catch(g){ot(n,n.return,g)}}a(Id,"commitHostUpdate");function ub(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ci(n.type)||n.tag===4}a(ub,"isHostParent");function jd(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||ub(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ci(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}a(jd,"getHostSibling");function Ud(n,i,s){var f=n.tag;if(f===5||f===6)n=n.stateNode,i?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,i):(i=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,i.appendChild(n),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Eu));else if(f!==4&&(f===27&&ci(n.type)&&(s=n.stateNode,i=null),n=n.child,n!==null))for(Ud(n,i,s),n=n.sibling;n!==null;)Ud(n,i,s),n=n.sibling}a(Ud,"insertOrAppendPlacementNodeIntoContainer");function du(n,i,s){var f=n.tag;if(f===5||f===6)n=n.stateNode,i?s.insertBefore(n,i):s.appendChild(n);else if(f!==4&&(f===27&&ci(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(du(n,i,s),n=n.sibling;n!==null;)du(n,i,s),n=n.sibling}a(du,"insertOrAppendPlacementNode");function cb(n){var i=n.stateNode,s=n.memoizedProps;try{for(var f=n.type,g=i.attributes;g.length;)i.removeAttributeNode(g[0]);zt(i,f,s),i[jt]=n,i[Xt]=s}catch(v){ot(n,n.return,v)}}a(cb,"commitHostSingletonAcquisition");var Nr=!1,wt=!1,Bd=!1,fb=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function uA(n,i){if(n=n.containerInfo,cp=_u,n=wy(n),jf(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var f=s.getSelection&&s.getSelection();if(f&&f.rangeCount!==0){s=f.anchorNode;var g=f.anchorOffset,v=f.focusNode;f=f.focusOffset;try{s.nodeType,v.nodeType}catch{s=null;break e}var T=0,_=-1,P=-1,F=0,ie=0,ue=n,V=null;t:for(;;){for(var G;ue!==s||g!==0&&ue.nodeType!==3||(_=T+g),ue!==v||f!==0&&ue.nodeType!==3||(P=T+f),ue.nodeType===3&&(T+=ue.nodeValue.length),(G=ue.firstChild)!==null;)V=ue,ue=G;for(;;){if(ue===n)break t;if(V===s&&++F===g&&(_=T),V===v&&++ie===f&&(P=T),(G=ue.nextSibling)!==null)break;ue=V,V=ue.parentNode}ue=G}s=_===-1||P===-1?null:{start:_,end:P}}else s=null}s=s||{start:0,end:0}}else s=null;for(fp={focusedElem:n,selectionRange:s},_u=!1,Dt=i;Dt!==null;)if(i=Dt,n=i.child,(i.subtreeFlags&1024)!==0&&n!==null)n.return=i,Dt=n;else for(;Dt!==null;){switch(i=Dt,v=i.alternate,n=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&v!==null){n=void 0,s=i,g=v.memoizedProps,v=v.memoizedState,f=s.stateNode;try{var De=Fi(s.type,g,s.elementType===s.type);n=f.getSnapshotBeforeUpdate(De,v),f.__reactInternalSnapshotBeforeUpdate=n}catch(Ae){ot(s,s.return,Ae)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,s=n.nodeType,s===9)hp(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":hp(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(o(163))}if(n=i.sibling,n!==null){n.return=i.return,Dt=n;break}Dt=i.return}}a(uA,"commitBeforeMutationEffects");function db(n,i,s){var f=s.flags;switch(s.tag){case 0:case 11:case 15:ri(n,s),f&4&&cl(5,s);break;case 1:if(ri(n,s),f&4)if(n=s.stateNode,i===null)try{n.componentDidMount()}catch(T){ot(s,s.return,T)}else{var g=Fi(s.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(g,i,n.__reactInternalSnapshotBeforeUpdate)}catch(T){ot(s,s.return,T)}}f&64&&ab(s),f&512&&fl(s,s.return);break;case 3:if(ri(n,s),f&64&&(n=s.updateQueue,n!==null)){if(i=null,s.child!==null)switch(s.child.tag){case 27:case 5:i=s.child.stateNode;break;case 1:i=s.child.stateNode}try{Yy(n,i)}catch(T){ot(s,s.return,T)}}break;case 27:i===null&&f&4&&cb(s);case 26:case 5:ri(n,s),i===null&&f&4&&sb(s),f&512&&fl(s,s.return);break;case 12:ri(n,s);break;case 13:ri(n,s),f&4&&mb(n,s),f&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=vA.bind(null,s),zA(n,s))));break;case 22:if(f=s.memoizedState!==null||Nr,!f){i=i!==null&&i.memoizedState!==null||wt,g=Nr;var v=wt;Nr=f,(wt=i)&&!v?ii(n,s,(s.subtreeFlags&8772)!==0):ri(n,s),Nr=g,wt=v}break;case 30:break;default:ri(n,s)}}a(db,"commitLayoutEffectOnFiber");function pb(n){var i=n.alternate;i!==null&&(n.alternate=null,pb(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&bf(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}a(pb,"detachFiberAfterEffects");var ct=null,Jt=!1;function Pr(n,i,s){for(s=s.child;s!==null;)hb(n,i,s),s=s.sibling}a(Pr,"recursivelyTraverseDeletionEffects");function hb(n,i,s){if(pe&&typeof pe.onCommitFiberUnmount=="function")try{pe.onCommitFiberUnmount(re,s)}catch{}switch(s.tag){case 26:wt||tr(s,i),Pr(n,i,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:wt||tr(s,i);var f=ct,g=Jt;ci(s.type)&&(ct=s.stateNode,Jt=!1),Pr(n,i,s),Sl(s.stateNode),ct=f,Jt=g;break;case 5:wt||tr(s,i);case 6:if(f=ct,g=Jt,ct=null,Pr(n,i,s),ct=f,Jt=g,ct!==null)if(Jt)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(s.stateNode)}catch(v){ot(s,i,v)}else try{ct.removeChild(s.stateNode)}catch(v){ot(s,i,v)}break;case 18:ct!==null&&(Jt?(n=ct,n0(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),Al(n)):n0(ct,s.stateNode));break;case 4:f=ct,g=Jt,ct=s.stateNode.containerInfo,Jt=!0,Pr(n,i,s),ct=f,Jt=g;break;case 0:case 11:case 14:case 15:wt||ni(2,s,i),wt||ni(4,s,i),Pr(n,i,s);break;case 1:wt||(tr(s,i),f=s.stateNode,typeof f.componentWillUnmount=="function"&&lb(s,i,f)),Pr(n,i,s);break;case 21:Pr(n,i,s);break;case 22:wt=(f=wt)||s.memoizedState!==null,Pr(n,i,s),wt=f;break;default:Pr(n,i,s)}}a(hb,"commitDeletionEffectsOnFiber");function mb(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Al(n)}catch(s){ot(i,i.return,s)}}a(mb,"commitSuspenseHydrationCallbacks");function cA(n){switch(n.tag){case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new fb),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new fb),i;default:throw Error(o(435,n.tag))}}a(cA,"getRetryCache");function Hd(n,i){var s=cA(n);i.forEach(function(f){var g=bA.bind(null,n,f);s.has(f)||(s.add(f),f.then(g,g))})}a(Hd,"attachSuspenseRetryListeners");function fn(n,i){var s=i.deletions;if(s!==null)for(var f=0;f<s.length;f++){var g=s[f],v=n,T=i,_=T;e:for(;_!==null;){switch(_.tag){case 27:if(ci(_.type)){ct=_.stateNode,Jt=!1;break e}break;case 5:ct=_.stateNode,Jt=!1;break e;case 3:case 4:ct=_.stateNode.containerInfo,Jt=!0;break e}_=_.return}if(ct===null)throw Error(o(160));hb(v,T,g),ct=null,Jt=!1,v=g.alternate,v!==null&&(v.return=null),g.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)gb(i,n),i=i.sibling}a(fn,"recursivelyTraverseMutationEffects");var Bn=null;function gb(n,i){var s=n.alternate,f=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:fn(i,n),dn(n),f&4&&(ni(3,n,n.return),cl(3,n),ni(5,n,n.return));break;case 1:fn(i,n),dn(n),f&512&&(wt||s===null||tr(s,s.return)),f&64&&Nr&&(n=n.updateQueue,n!==null&&(f=n.callbacks,f!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?f:s.concat(f))));break;case 26:var g=Bn;if(fn(i,n),dn(n),f&512&&(wt||s===null||tr(s,s.return)),f&4){var v=s!==null?s.memoizedState:null;if(f=n.memoizedState,s===null)if(f===null)if(n.stateNode===null){e:{f=n.type,s=n.memoizedProps,g=g.ownerDocument||g;t:switch(f){case"title":v=g.getElementsByTagName("title")[0],(!v||v[La]||v[jt]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=g.createElement(f),g.head.insertBefore(v,g.querySelector("head > title"))),zt(v,f,s),v[jt]=n,_t(v),f=v;break e;case"link":var T=c0("link","href",g).get(f+(s.href||""));if(T){for(var _=0;_<T.length;_++)if(v=T[_],v.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&v.getAttribute("rel")===(s.rel==null?null:s.rel)&&v.getAttribute("title")===(s.title==null?null:s.title)&&v.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){T.splice(_,1);break t}}v=g.createElement(f),zt(v,f,s),g.head.appendChild(v);break;case"meta":if(T=c0("meta","content",g).get(f+(s.content||""))){for(_=0;_<T.length;_++)if(v=T[_],v.getAttribute("content")===(s.content==null?null:""+s.content)&&v.getAttribute("name")===(s.name==null?null:s.name)&&v.getAttribute("property")===(s.property==null?null:s.property)&&v.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&v.getAttribute("charset")===(s.charSet==null?null:s.charSet)){T.splice(_,1);break t}}v=g.createElement(f),zt(v,f,s),g.head.appendChild(v);break;default:throw Error(o(468,f))}v[jt]=n,_t(v),f=v}n.stateNode=f}else f0(g,n.type,n.stateNode);else n.stateNode=u0(g,f,n.memoizedProps);else v!==f?(v===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):v.count--,f===null?f0(g,n.type,n.stateNode):u0(g,f,n.memoizedProps)):f===null&&n.stateNode!==null&&Id(n,n.memoizedProps,s.memoizedProps)}break;case 27:fn(i,n),dn(n),f&512&&(wt||s===null||tr(s,s.return)),s!==null&&f&4&&Id(n,n.memoizedProps,s.memoizedProps);break;case 5:if(fn(i,n),dn(n),f&512&&(wt||s===null||tr(s,s.return)),n.flags&32){g=n.stateNode;try{xo(g,"")}catch(G){ot(n,n.return,G)}}f&4&&n.stateNode!=null&&(g=n.memoizedProps,Id(n,g,s!==null?s.memoizedProps:g)),f&1024&&(Bd=!0);break;case 6:if(fn(i,n),dn(n),f&4){if(n.stateNode===null)throw Error(o(162));f=n.memoizedProps,s=n.stateNode;try{s.nodeValue=f}catch(G){ot(n,n.return,G)}}break;case 3:if(Ou=null,g=Bn,Bn=Tu(i.containerInfo),fn(i,n),Bn=g,dn(n),f&4&&s!==null&&s.memoizedState.isDehydrated)try{Al(i.containerInfo)}catch(G){ot(n,n.return,G)}Bd&&(Bd=!1,yb(n));break;case 4:f=Bn,Bn=Tu(n.stateNode.containerInfo),fn(i,n),dn(n),Bn=f;break;case 12:fn(i,n),dn(n);break;case 13:fn(i,n),dn(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Yd=St()),f&4&&(f=n.updateQueue,f!==null&&(n.updateQueue=null,Hd(n,f)));break;case 22:g=n.memoizedState!==null;var P=s!==null&&s.memoizedState!==null,F=Nr,ie=wt;if(Nr=F||g,wt=ie||P,fn(i,n),wt=ie,Nr=F,dn(n),f&8192)e:for(i=n.stateNode,i._visibility=g?i._visibility&-2:i._visibility|1,g&&(s===null||P||Nr||wt||qi(n)),s=null,i=n;;){if(i.tag===5||i.tag===26){if(s===null){P=s=i;try{if(v=P.stateNode,g)T=v.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{_=P.stateNode;var ue=P.memoizedProps.style,V=ue!=null&&ue.hasOwnProperty("display")?ue.display:null;_.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(G){ot(P,P.return,G)}}}else if(i.tag===6){if(s===null){P=i;try{P.stateNode.nodeValue=g?"":P.memoizedProps}catch(G){ot(P,P.return,G)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;s===i&&(s=null),i=i.return}s===i&&(s=null),i.sibling.return=i.return,i=i.sibling}f&4&&(f=n.updateQueue,f!==null&&(s=f.retryQueue,s!==null&&(f.retryQueue=null,Hd(n,s))));break;case 19:fn(i,n),dn(n),f&4&&(f=n.updateQueue,f!==null&&(n.updateQueue=null,Hd(n,f)));break;case 30:break;case 21:break;default:fn(i,n),dn(n)}}a(gb,"commitMutationEffectsOnFiber");function dn(n){var i=n.flags;if(i&2){try{for(var s,f=n.return;f!==null;){if(ub(f)){s=f;break}f=f.return}if(s==null)throw Error(o(160));switch(s.tag){case 27:var g=s.stateNode,v=jd(n);du(n,v,g);break;case 5:var T=s.stateNode;s.flags&32&&(xo(T,""),s.flags&=-33);var _=jd(n);du(n,_,T);break;case 3:case 4:var P=s.stateNode.containerInfo,F=jd(n);Ud(n,F,P);break;default:throw Error(o(161))}}catch(ie){ot(n,n.return,ie)}n.flags&=-3}i&4096&&(n.flags&=-4097)}a(dn,"commitReconciliationEffects");function yb(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;yb(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}a(yb,"recursivelyResetForms");function ri(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)db(n,i.alternate,i),i=i.sibling}a(ri,"recursivelyTraverseLayoutEffects");function qi(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:ni(4,i,i.return),qi(i);break;case 1:tr(i,i.return);var s=i.stateNode;typeof s.componentWillUnmount=="function"&&lb(i,i.return,s),qi(i);break;case 27:Sl(i.stateNode);case 26:case 5:tr(i,i.return),qi(i);break;case 22:i.memoizedState===null&&qi(i);break;case 30:qi(i);break;default:qi(i)}n=n.sibling}}a(qi,"recursivelyTraverseDisappearLayoutEffects");function ii(n,i,s){for(s=s&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var f=i.alternate,g=n,v=i,T=v.flags;switch(v.tag){case 0:case 11:case 15:ii(g,v,s),cl(4,v);break;case 1:if(ii(g,v,s),f=v,g=f.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(F){ot(f,f.return,F)}if(f=v,g=f.updateQueue,g!==null){var _=f.stateNode;try{var P=g.shared.hiddenCallbacks;if(P!==null)for(g.shared.hiddenCallbacks=null,g=0;g<P.length;g++)$y(P[g],_)}catch(F){ot(f,f.return,F)}}s&&T&64&&ab(v),fl(v,v.return);break;case 27:cb(v);case 26:case 5:ii(g,v,s),s&&f===null&&T&4&&sb(v),fl(v,v.return);break;case 12:ii(g,v,s);break;case 13:ii(g,v,s),s&&T&4&&mb(g,v);break;case 22:v.memoizedState===null&&ii(g,v,s),fl(v,v.return);break;case 30:break;default:ii(g,v,s)}i=i.sibling}}a(ii,"recursivelyTraverseReappearLayoutEffects");function Fd(n,i){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&Xa(s))}a(Fd,"commitOffscreenPassiveMountEffects");function qd(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Xa(n))}a(qd,"commitCachePassiveMountEffect");function nr(n,i,s,f){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)vb(n,i,s,f),i=i.sibling}a(nr,"recursivelyTraversePassiveMountEffects");function vb(n,i,s,f){var g=i.flags;switch(i.tag){case 0:case 11:case 15:nr(n,i,s,f),g&2048&&cl(9,i);break;case 1:nr(n,i,s,f);break;case 3:nr(n,i,s,f),g&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Xa(n)));break;case 12:if(g&2048){nr(n,i,s,f),n=i.stateNode;try{var v=i.memoizedProps,T=v.id,_=v.onPostCommit;typeof _=="function"&&_(T,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(P){ot(i,i.return,P)}}else nr(n,i,s,f);break;case 13:nr(n,i,s,f);break;case 23:break;case 22:v=i.stateNode,T=i.alternate,i.memoizedState!==null?v._visibility&2?nr(n,i,s,f):dl(n,i):v._visibility&2?nr(n,i,s,f):(v._visibility|=2,Bo(n,i,s,f,(i.subtreeFlags&10256)!==0)),g&2048&&Fd(T,i);break;case 24:nr(n,i,s,f),g&2048&&qd(i.alternate,i);break;default:nr(n,i,s,f)}}a(vb,"commitPassiveMountOnFiber");function Bo(n,i,s,f,g){for(g=g&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var v=n,T=i,_=s,P=f,F=T.flags;switch(T.tag){case 0:case 11:case 15:Bo(v,T,_,P,g),cl(8,T);break;case 23:break;case 22:var ie=T.stateNode;T.memoizedState!==null?ie._visibility&2?Bo(v,T,_,P,g):dl(v,T):(ie._visibility|=2,Bo(v,T,_,P,g)),g&&F&2048&&Fd(T.alternate,T);break;case 24:Bo(v,T,_,P,g),g&&F&2048&&qd(T.alternate,T);break;default:Bo(v,T,_,P,g)}i=i.sibling}}a(Bo,"recursivelyTraverseReconnectPassiveEffects");function dl(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var s=n,f=i,g=f.flags;switch(f.tag){case 22:dl(s,f),g&2048&&Fd(f.alternate,f);break;case 24:dl(s,f),g&2048&&qd(f.alternate,f);break;default:dl(s,f)}i=i.sibling}}a(dl,"recursivelyTraverseAtomicPassiveEffects");var pl=8192;function Ho(n){if(n.subtreeFlags&pl)for(n=n.child;n!==null;)bb(n),n=n.sibling}a(Ho,"recursivelyAccumulateSuspenseyCommit");function bb(n){switch(n.tag){case 26:Ho(n),n.flags&pl&&n.memoizedState!==null&&QA(Bn,n.memoizedState,n.memoizedProps);break;case 5:Ho(n);break;case 3:case 4:var i=Bn;Bn=Tu(n.stateNode.containerInfo),Ho(n),Bn=i;break;case 22:n.memoizedState===null&&(i=n.alternate,i!==null&&i.memoizedState!==null?(i=pl,pl=16777216,Ho(n),pl=i):Ho(n));break;default:Ho(n)}}a(bb,"accumulateSuspenseyCommitOnFiber");function Sb(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}a(Sb,"detachAlternateSiblings");function hl(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var f=i[s];Dt=f,wb(f,n)}Sb(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)xb(n),n=n.sibling}a(hl,"recursivelyTraversePassiveUnmountEffects");function xb(n){switch(n.tag){case 0:case 11:case 15:hl(n),n.flags&2048&&ni(9,n,n.return);break;case 3:hl(n);break;case 12:hl(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,pu(n)):hl(n);break;default:hl(n)}}a(xb,"commitPassiveUnmountOnFiber");function pu(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var f=i[s];Dt=f,wb(f,n)}Sb(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:ni(8,i,i.return),pu(i);break;case 22:s=i.stateNode,s._visibility&2&&(s._visibility&=-3,pu(i));break;default:pu(i)}n=n.sibling}}a(pu,"recursivelyTraverseDisconnectPassiveEffects");function wb(n,i){for(;Dt!==null;){var s=Dt;switch(s.tag){case 0:case 11:case 15:ni(8,s,i);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var f=s.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:Xa(s.memoizedState.cache)}if(f=s.child,f!==null)f.return=s,Dt=f;else e:for(s=n;Dt!==null;){f=Dt;var g=f.sibling,v=f.return;if(pb(f),f===s){Dt=null;break e}if(g!==null){g.return=v,Dt=g;break e}Dt=v}}}a(wb,"commitPassiveUnmountEffectsInsideOfDeletedTree_begin");var fA={getCacheForType:a(function(n){var i=Ut(Rt),s=i.data.get(n);return s===void 0&&(s=n(),i.data.set(n,s)),s},"getCacheForType")},dA=typeof WeakMap=="function"?WeakMap:Map,et=0,at=null,Ve=null,Ye=0,tt=0,pn=null,oi=!1,Fo=!1,Vd=!1,Lr=0,mt=0,ai=0,Vi=0,Gd=0,_n=0,qo=0,ml=null,en=null,$d=!1,Yd=0,hu=1/0,mu=null,li=null,Lt=0,si=null,Vo=null,Go=0,Kd=0,Qd=null,Eb=null,gl=0,Xd=null;function hn(){if((et&2)!==0&&Ye!==0)return Ye&-Ye;if(I.T!==null){var n=Do;return n!==0?n:rp()}return Ug()}a(hn,"requestUpdateLane");function Cb(){_n===0&&(_n=(Ye&536870912)===0||Xe?Lg():536870912);var n=Mn.current;return n!==null&&(n.flags|=32),_n}a(Cb,"requestDeferredLane");function mn(n,i,s){(n===at&&(tt===2||tt===9)||n.cancelPendingCommit!==null)&&($o(n,0),ui(n,Ye,_n,!1)),Pa(n,s),((et&2)===0||n!==at)&&(n===at&&((et&2)===0&&(Vi|=s),mt===4&&ui(n,Ye,_n,!1)),rr(n))}a(mn,"scheduleUpdateOnFiber");function Tb(n,i,s){if((et&6)!==0)throw Error(o(327));var f=!s&&(i&124)===0&&(i&n.expiredLanes)===0||wn(n,i),g=f?mA(n,i):Jd(n,i,!0),v=f;do{if(g===0){Fo&&!f&&ui(n,i,0,!1);break}else{if(s=n.current.alternate,v&&!pA(s)){g=Jd(n,i,!1),v=!1;continue}if(g===2){if(v=i,n.errorRecoveryDisabledLanes&v)var T=0;else T=n.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){i=T;e:{var _=n;g=ml;var P=_.current.memoizedState.isDehydrated;if(P&&($o(_,T).flags|=256),T=Jd(_,T,!1),T!==2){if(Vd&&!P){_.errorRecoveryDisabledLanes|=v,Vi|=v,g=4;break e}v=en,en=g,v!==null&&(en===null?en=v:en.push.apply(en,v))}g=T}if(v=!1,g!==2)continue}}if(g===1){$o(n,0),ui(n,i,0,!0);break}e:{switch(f=n,v=g,v){case 0:case 1:throw Error(o(345));case 4:if((i&4194048)!==i)break;case 6:ui(f,i,_n,!oi);break e;case 2:en=null;break;case 3:case 5:break;default:throw Error(o(329))}if((i&62914560)===i&&(g=Yd+300-St(),10<g)){if(ui(f,i,_n,!oi),Mt(f,0,!0)!==0)break e;f.timeoutHandle=e0(Rb.bind(null,f,s,en,mu,$d,i,_n,Vi,qo,oi,v,2,-0,0),g);break e}Rb(f,s,en,mu,$d,i,_n,Vi,qo,oi,v,0,-0,0)}}break}while(!0);rr(n)}a(Tb,"performWorkOnRoot");function Rb(n,i,s,f,g,v,T,_,P,F,ie,ue,V,G){if(n.timeoutHandle=-1,ue=i.subtreeFlags,(ue&8192||(ue&16785408)===16785408)&&(El={stylesheets:null,count:0,unsuspend:KA},bb(i),ue=XA(),ue!==null)){n.cancelPendingCommit=ue(Nb.bind(null,n,i,v,s,f,g,T,_,P,ie,1,V,G)),ui(n,v,T,!F);return}Nb(n,i,v,s,f,g,T,_,P)}a(Rb,"commitRootWhenReady");function pA(n){for(var i=n;;){var s=i.tag;if((s===0||s===11||s===15)&&i.flags&16384&&(s=i.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var f=0;f<s.length;f++){var g=s[f],v=g.getSnapshot;g=g.value;try{if(!un(v(),g))return!1}catch{return!1}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}a(pA,"isRenderConsistentWithExternalStores");function ui(n,i,s,f){i&=~Gd,i&=~Vi,n.suspendedLanes|=i,n.pingedLanes&=~i,f&&(n.warmLanes|=i),f=n.expirationTimes;for(var g=i;0<g;){var v=31-ke(g),T=1<<v;f[v]=-1,g&=~T}s!==0&&Ig(n,s,i)}a(ui,"markRootSuspended");function gu(){return(et&6)===0?(yl(0),!1):!0}a(gu,"flushSyncWork$1");function Wd(){if(Ve!==null){if(tt===0)var n=Ve.return;else n=Ve,Or=ji=null,hd(n),jo=null,ll=0,n=Ve;for(;n!==null;)ob(n.alternate,n),n=n.return;Ve=null}}a(Wd,"resetWorkInProgressStack");function $o(n,i){var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,kA(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),Wd(),at=n,Ve=s=Cr(n.current,null),Ye=i,tt=0,pn=null,oi=!1,Fo=wn(n,i),Vd=!1,qo=_n=Gd=Vi=ai=mt=0,en=ml=null,$d=!1,(i&8)!==0&&(i|=i&32);var f=n.entangledLanes;if(f!==0)for(n=n.entanglements,f&=i;0<f;){var g=31-ke(f),v=1<<g;i|=n[g],f&=~v}return Lr=i,js(),s}a($o,"prepareFreshStack");function Ob(n,i){He=null,I.H=ru,i===Za||i===Ys?(i=Vy(),tt=3):i===Hy?(i=Vy(),tt=4):tt=i===Gv?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,pn=i,Ve===null&&(mt=1,su(n,Tn(i,n.current)))}a(Ob,"handleThrow");function Ab(){var n=I.H;return I.H=ru,n===null?ru:n}a(Ab,"pushDispatcher");function Mb(){var n=I.A;return I.A=fA,n}a(Mb,"pushAsyncDispatcher");function Zd(){mt=4,oi||(Ye&4194048)!==Ye&&Mn.current!==null||(Fo=!0),(ai&134217727)===0&&(Vi&134217727)===0||at===null||ui(at,Ye,_n,!1)}a(Zd,"renderDidSuspendDelayIfPossible");function Jd(n,i,s){var f=et;et|=2;var g=Ab(),v=Mb();(at!==n||Ye!==i)&&(mu=null,$o(n,i)),i=!1;var T=mt;e:do try{if(tt!==0&&Ve!==null){var _=Ve,P=pn;switch(tt){case 8:Wd(),T=6;break e;case 3:case 2:case 9:case 6:Mn.current===null&&(i=!0);var F=tt;if(tt=0,pn=null,Yo(n,_,P,F),s&&Fo){T=0;break e}break;default:F=tt,tt=0,pn=null,Yo(n,_,P,F)}}hA(),T=mt;break}catch(ie){Ob(n,ie)}while(!0);return i&&n.shellSuspendCounter++,Or=ji=null,et=f,I.H=g,I.A=v,Ve===null&&(at=null,Ye=0,js()),T}a(Jd,"renderRootSync");function hA(){for(;Ve!==null;)_b(Ve)}a(hA,"workLoopSync");function mA(n,i){var s=et;et|=2;var f=Ab(),g=Mb();at!==n||Ye!==i?(mu=null,hu=St()+500,$o(n,i)):Fo=wn(n,i);e:do try{if(tt!==0&&Ve!==null){i=Ve;var v=pn;t:switch(tt){case 1:tt=0,pn=null,Yo(n,i,v,1);break;case 2:case 9:if(Fy(v)){tt=0,pn=null,kb(i);break}i=a(function(){tt!==2&&tt!==9||at!==n||(tt=7),rr(n)},"lanes"),v.then(i,i);break e;case 3:tt=7;break e;case 4:tt=5;break e;case 7:Fy(v)?(tt=0,pn=null,kb(i)):(tt=0,pn=null,Yo(n,i,v,7));break;case 5:var T=null;switch(Ve.tag){case 26:T=Ve.memoizedState;case 5:case 27:var _=Ve;if(!T||d0(T)){tt=0,pn=null;var P=_.sibling;if(P!==null)Ve=P;else{var F=_.return;F!==null?(Ve=F,yu(F)):Ve=null}break t}}tt=0,pn=null,Yo(n,i,v,5);break;case 6:tt=0,pn=null,Yo(n,i,v,6);break;case 8:Wd(),mt=6;break e;default:throw Error(o(462))}}gA();break}catch(ie){Ob(n,ie)}while(!0);return Or=ji=null,I.H=f,I.A=g,et=s,Ve!==null?0:(at=null,Ye=0,js(),mt)}a(mA,"renderRootConcurrent");function gA(){for(;Ve!==null&&!Kt();)_b(Ve)}a(gA,"workLoopConcurrentByScheduler");function _b(n){var i=rb(n.alternate,n,Lr);n.memoizedProps=n.pendingProps,i===null?yu(n):Ve=i}a(_b,"performUnitOfWork");function kb(n){var i=n,s=i.alternate;switch(i.tag){case 15:case 0:i=Wv(s,i,i.pendingProps,i.type,void 0,Ye);break;case 11:i=Wv(s,i,i.pendingProps,i.type.render,i.ref,Ye);break;case 5:hd(i);default:ob(s,i),i=Ve=Dy(i,Lr),i=rb(s,i,Lr)}n.memoizedProps=n.pendingProps,i===null?yu(n):Ve=i}a(kb,"replaySuspendedUnitOfWork");function Yo(n,i,s,f){Or=ji=null,hd(i),jo=null,ll=0;var g=i.return;try{if(oA(n,g,i,s,Ye)){mt=1,su(n,Tn(s,n.current)),Ve=null;return}}catch(v){if(g!==null)throw Ve=g,v;mt=1,su(n,Tn(s,n.current)),Ve=null;return}i.flags&32768?(Xe||f===1?n=!0:Fo||(Ye&536870912)!==0?n=!1:(oi=n=!0,(f===2||f===9||f===3||f===6)&&(f=Mn.current,f!==null&&f.tag===13&&(f.flags|=16384))),Db(i,n)):yu(i)}a(Yo,"throwAndUnwindWorkLoop");function yu(n){var i=n;do{if((i.flags&32768)!==0){Db(i,oi);return}n=i.return;var s=lA(i.alternate,i,Lr);if(s!==null){Ve=s;return}if(i=i.sibling,i!==null){Ve=i;return}Ve=i=n}while(i!==null);mt===0&&(mt=5)}a(yu,"completeUnitOfWork");function Db(n,i){do{var s=sA(n.alternate,n);if(s!==null){s.flags&=32767,Ve=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(n=n.sibling,n!==null)){Ve=n;return}Ve=n=s}while(n!==null);mt=6,Ve=null}a(Db,"unwindUnitOfWork");function Nb(n,i,s,f,g,v,T,_,P){n.cancelPendingCommit=null;do vu();while(Lt!==0);if((et&6)!==0)throw Error(o(327));if(i!==null){if(i===n.current)throw Error(o(177));if(v=i.lanes|i.childLanes,v|=qf,KR(n,s,v,T,_,P),n===at&&(Ve=at=null,Ye=0),Vo=i,si=n,Go=s,Kd=v,Qd=g,Eb=f,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,SA(xn,function(){return jb(),null})):(n.callbackNode=null,n.callbackPriority=0),f=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||f){f=I.T,I.T=null,g=Q.p,Q.p=2,T=et,et|=4;try{uA(n,i,s)}finally{et=T,Q.p=g,I.T=f}}Lt=1,Pb(),Lb(),zb()}}a(Nb,"commitRoot");function Pb(){if(Lt===1){Lt=0;var n=si,i=Vo,s=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||s){s=I.T,I.T=null;var f=Q.p;Q.p=2;var g=et;et|=4;try{gb(i,n);var v=fp,T=wy(n.containerInfo),_=v.focusedElem,P=v.selectionRange;if(T!==_&&_&&_.ownerDocument&&xy(_.ownerDocument.documentElement,_)){if(P!==null&&jf(_)){var F=P.start,ie=P.end;if(ie===void 0&&(ie=F),"selectionStart"in _)_.selectionStart=F,_.selectionEnd=Math.min(ie,_.value.length);else{var ue=_.ownerDocument||document,V=ue&&ue.defaultView||window;if(V.getSelection){var G=V.getSelection(),De=_.textContent.length,Ae=Math.min(P.start,De),it=P.end===void 0?Ae:Math.min(P.end,De);!G.extend&&Ae>it&&(T=it,it=Ae,Ae=T);var B=Sy(_,Ae),U=Sy(_,it);if(B&&U&&(G.rangeCount!==1||G.anchorNode!==B.node||G.anchorOffset!==B.offset||G.focusNode!==U.node||G.focusOffset!==U.offset)){var H=ue.createRange();H.setStart(B.node,B.offset),G.removeAllRanges(),Ae>it?(G.addRange(H),G.extend(U.node,U.offset)):(H.setEnd(U.node,U.offset),G.addRange(H))}}}}for(ue=[],G=_;G=G.parentNode;)G.nodeType===1&&ue.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<ue.length;_++){var le=ue[_];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}_u=!!cp,fp=cp=null}finally{et=g,Q.p=f,I.T=s}}n.current=i,Lt=2}}a(Pb,"flushMutationEffects");function Lb(){if(Lt===2){Lt=0;var n=si,i=Vo,s=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||s){s=I.T,I.T=null;var f=Q.p;Q.p=2;var g=et;et|=4;try{db(n,i.alternate,i)}finally{et=g,Q.p=f,I.T=s}}Lt=3}}a(Lb,"flushLayoutEffects");function zb(){if(Lt===4||Lt===3){Lt=0,an();var n=si,i=Vo,s=Go,f=Eb;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Lt=5:(Lt=0,Vo=si=null,Ib(n,n.pendingLanes));var g=n.pendingLanes;if(g===0&&(li=null),yf(s),i=i.stateNode,pe&&typeof pe.onCommitFiberRoot=="function")try{pe.onCommitFiberRoot(re,i,void 0,(i.current.flags&128)===128)}catch{}if(f!==null){i=I.T,g=Q.p,Q.p=2,I.T=null;try{for(var v=n.onRecoverableError,T=0;T<f.length;T++){var _=f[T];v(_.value,{componentStack:_.stack})}}finally{I.T=i,Q.p=g}}(Go&3)!==0&&vu(),rr(n),g=n.pendingLanes,(s&4194090)!==0&&(g&42)!==0?n===Xd?gl++:(gl=0,Xd=n):gl=0,yl(0)}}a(zb,"flushSpawnedWork");function Ib(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,Xa(i)))}a(Ib,"releaseRootPooledCache");function vu(n){return Pb(),Lb(),zb(),jb()}a(vu,"flushPendingEffects");function jb(){if(Lt!==5)return!1;var n=si,i=Kd;Kd=0;var s=yf(Go),f=I.T,g=Q.p;try{Q.p=32>s?32:s,I.T=null,s=Qd,Qd=null;var v=si,T=Go;if(Lt=0,Vo=si=null,Go=0,(et&6)!==0)throw Error(o(331));var _=et;if(et|=4,xb(v.current),vb(v,v.current,T,s),et=_,yl(0,!1),pe&&typeof pe.onPostCommitFiberRoot=="function")try{pe.onPostCommitFiberRoot(re,v)}catch{}return!0}finally{Q.p=g,I.T=f,Ib(n,i)}}a(jb,"flushPassiveEffects");function Ub(n,i,s){i=Tn(s,i),i=Ad(n.stateNode,i,2),n=Zr(n,i,2),n!==null&&(Pa(n,2),rr(n))}a(Ub,"captureCommitPhaseErrorOnRoot");function ot(n,i,s){if(n.tag===3)Ub(n,n,s);else for(;i!==null;){if(i.tag===3){Ub(i,n,s);break}else if(i.tag===1){var f=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(li===null||!li.has(f))){n=Tn(s,n),s=qv(2),f=Zr(i,s,2),f!==null&&(Vv(s,f,i,n),Pa(f,2),rr(f));break}}i=i.return}}a(ot,"captureCommitPhaseError");function ep(n,i,s){var f=n.pingCache;if(f===null){f=n.pingCache=new dA;var g=new Set;f.set(i,g)}else g=f.get(i),g===void 0&&(g=new Set,f.set(i,g));g.has(s)||(Vd=!0,g.add(s),n=yA.bind(null,n,i,s),i.then(n,n))}a(ep,"attachPingListener");function yA(n,i,s){var f=n.pingCache;f!==null&&f.delete(i),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,at===n&&(Ye&s)===s&&(mt===4||mt===3&&(Ye&62914560)===Ye&&300>St()-Yd?(et&2)===0&&$o(n,0):Gd|=s,qo===Ye&&(qo=0)),rr(n)}a(yA,"pingSuspendedRoot");function Bb(n,i){i===0&&(i=zg()),n=Ao(n,i),n!==null&&(Pa(n,i),rr(n))}a(Bb,"retryTimedOutBoundary");function vA(n){var i=n.memoizedState,s=0;i!==null&&(s=i.retryLane),Bb(n,s)}a(vA,"retryDehydratedSuspenseBoundary");function bA(n,i){var s=0;switch(n.tag){case 13:var f=n.stateNode,g=n.memoizedState;g!==null&&(s=g.retryLane);break;case 19:f=n.stateNode;break;case 22:f=n.stateNode._retryCache;break;default:throw Error(o(314))}f!==null&&f.delete(i),Bb(n,s)}a(bA,"resolveRetryWakeable");function SA(n,i){return Ie(n,i)}a(SA,"scheduleCallback$1");var bu=null,Ko=null,tp=!1,Su=!1,np=!1,Gi=0;function rr(n){n!==Ko&&n.next===null&&(Ko===null?bu=Ko=n:Ko=Ko.next=n),Su=!0,tp||(tp=!0,wA())}a(rr,"ensureRootIsScheduled");function yl(n,i){if(!np&&Su){np=!0;do for(var s=!1,f=bu;f!==null;){if(n!==0){var g=f.pendingLanes;if(g===0)var v=0;else{var T=f.suspendedLanes,_=f.pingedLanes;v=(1<<31-ke(42|n)+1)-1,v&=g&~(T&~_),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(s=!0,Vb(f,v))}else v=Ye,v=Mt(f,f===at?v:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(v&3)===0||wn(f,v)||(s=!0,Vb(f,v));f=f.next}while(s);np=!1}}a(yl,"flushSyncWorkAcrossRoots_impl");function xA(){Hb()}a(xA,"processRootScheduleInImmediateTask");function Hb(){Su=tp=!1;var n=0;Gi!==0&&(_A()&&(n=Gi),Gi=0);for(var i=St(),s=null,f=bu;f!==null;){var g=f.next,v=Fb(f,i);v===0?(f.next=null,s===null?bu=g:s.next=g,g===null&&(Ko=s)):(s=f,(n!==0||(v&3)!==0)&&(Su=!0)),f=g}yl(n)}a(Hb,"processRootScheduleInMicrotask");function Fb(n,i){for(var s=n.suspendedLanes,f=n.pingedLanes,g=n.expirationTimes,v=n.pendingLanes&-62914561;0<v;){var T=31-ke(v),_=1<<T,P=g[T];P===-1?((_&s)===0||(_&f)!==0)&&(g[T]=jn(_,i)):P<=i&&(n.expiredLanes|=_),v&=~_}if(i=at,s=Ye,s=Mt(n,n===i?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),f=n.callbackNode,s===0||n===i&&(tt===2||tt===9)||n.cancelPendingCommit!==null)return f!==null&&f!==null&&ut(f),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||wn(n,s)){if(i=s&-s,i===n.callbackPriority)return i;switch(f!==null&&ut(f),yf(s)){case 2:case 8:s=Ai;break;case 32:s=xn;break;case 268435456:s=po;break;default:s=xn}return f=qb.bind(null,n),s=Ie(s,f),n.callbackPriority=i,n.callbackNode=s,i}return f!==null&&f!==null&&ut(f),n.callbackPriority=2,n.callbackNode=null,2}a(Fb,"scheduleTaskForRootDuringMicrotask");function qb(n,i){if(Lt!==0&&Lt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(vu()&&n.callbackNode!==s)return null;var f=Ye;return f=Mt(n,n===at?f:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),f===0?null:(Tb(n,f,i),Fb(n,St()),n.callbackNode!=null&&n.callbackNode===s?qb.bind(null,n):null)}a(qb,"performWorkOnRootViaSchedulerTask");function Vb(n,i){if(vu())return null;Tb(n,i,!0)}a(Vb,"performSyncWorkOnRoot");function wA(){DA(function(){(et&6)!==0?Ie($r,xA):Hb()})}a(wA,"scheduleImmediateRootScheduleTask");function rp(){return Gi===0&&(Gi=Lg()),Gi}a(rp,"requestTransitionLane");function Gb(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:ks(""+n)}a(Gb,"coerceFormActionProp");function $b(n,i){var s=i.ownerDocument.createElement("input");return s.name=i.name,s.value=i.value,n.id&&s.setAttribute("form",n.id),i.parentNode.insertBefore(s,i),n=new FormData(n),s.parentNode.removeChild(s),n}a($b,"createFormDataWithSubmitter");function EA(n,i,s,f,g){if(i==="submit"&&s&&s.stateNode===g){var v=Gb((g[Xt]||null).action),T=f.submitter;T&&(i=(i=T[Xt]||null)?Gb(i.formAction):T.getAttribute("formAction"),i!==null&&(v=i,T=null));var _=new Ls("action","action",null,f,g);n.push({event:_,listeners:[{instance:null,listener:a(function(){if(f.defaultPrevented){if(Gi!==0){var P=T?$b(g,T):new FormData(g);Ed(s,{pending:!0,data:P,method:g.method,action:v},null,P)}}else typeof v=="function"&&(_.preventDefault(),P=T?$b(g,T):new FormData(g),Ed(s,{pending:!0,data:P,method:g.method,action:v},v,P))},"listener"),currentTarget:g}]})}}a(EA,"extractEvents$1");for(var ip=0;ip<Ff.length;ip++){var op=Ff[ip],CA=op.toLowerCase(),TA=op[0].toUpperCase()+op.slice(1);Un(CA,"on"+TA)}Un(Ty,"onAnimationEnd"),Un(Ry,"onAnimationIteration"),Un(Oy,"onAnimationStart"),Un("dblclick","onDoubleClick"),Un("focusin","onFocus"),Un("focusout","onBlur"),Un(FO,"onTransitionRun"),Un(qO,"onTransitionStart"),Un(VO,"onTransitionCancel"),Un(Ay,"onTransitionEnd"),vo("onMouseEnter",["mouseout","mouseover"]),vo("onMouseLeave",["mouseout","mouseover"]),vo("onPointerEnter",["pointerout","pointerover"]),vo("onPointerLeave",["pointerout","pointerover"]),Mi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Mi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Mi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Mi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Mi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Mi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),RA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vl));function Yb(n,i){i=(i&4)!==0;for(var s=0;s<n.length;s++){var f=n[s],g=f.event;f=f.listeners;e:{var v=void 0;if(i)for(var T=f.length-1;0<=T;T--){var _=f[T],P=_.instance,F=_.currentTarget;if(_=_.listener,P!==v&&g.isPropagationStopped())break e;v=_,g.currentTarget=F;try{v(g)}catch(ie){lu(ie)}g.currentTarget=null,v=P}else for(T=0;T<f.length;T++){if(_=f[T],P=_.instance,F=_.currentTarget,_=_.listener,P!==v&&g.isPropagationStopped())break e;v=_,g.currentTarget=F;try{v(g)}catch(ie){lu(ie)}g.currentTarget=null,v=P}}}}a(Yb,"processDispatchQueue");function Ge(n,i){var s=i[vf];s===void 0&&(s=i[vf]=new Set);var f=n+"__bubble";s.has(f)||(Kb(i,n,2,!1),s.add(f))}a(Ge,"listenToNonDelegatedEvent");function ap(n,i,s){var f=0;i&&(f|=4),Kb(s,n,f,i)}a(ap,"listenToNativeEvent");var xu="_reactListening"+Math.random().toString(36).slice(2);function lp(n){if(!n[xu]){n[xu]=!0,Hg.forEach(function(s){s!=="selectionchange"&&(RA.has(s)||ap(s,!1,n),ap(s,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[xu]||(i[xu]=!0,ap("selectionchange",!1,i))}}a(lp,"listenToAllSupportedEvents");function Kb(n,i,s,f){switch(v0(i)){case 2:var g=JA;break;case 8:g=eM;break;default:g=xp}s=g.bind(null,i,s,n),g=void 0,!Mf||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(g=!0),f?g!==void 0?n.addEventListener(i,s,{capture:!0,passive:g}):n.addEventListener(i,s,!0):g!==void 0?n.addEventListener(i,s,{passive:g}):n.addEventListener(i,s,!1)}a(Kb,"addTrappedEventListener");function sp(n,i,s,f,g){var v=f;if((i&1)===0&&(i&2)===0&&f!==null)e:for(;;){if(f===null)return;var T=f.tag;if(T===3||T===4){var _=f.stateNode.containerInfo;if(_===g)break;if(T===4)for(T=f.return;T!==null;){var P=T.tag;if((P===3||P===4)&&T.stateNode.containerInfo===g)return;T=T.return}for(;_!==null;){if(T=mo(_),T===null)return;if(P=T.tag,P===5||P===6||P===26||P===27){f=v=T;continue e}_=_.parentNode}}f=f.return}ty(function(){var F=v,ie=Of(s),ue=[];e:{var V=My.get(n);if(V!==void 0){var G=Ls,De=n;switch(n){case"keypress":if(Ns(s)===0)break e;case"keydown":case"keyup":G=SO;break;case"focusin":De="focus",G=Nf;break;case"focusout":De="blur",G=Nf;break;case"beforeblur":case"afterblur":G=Nf;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=iy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=sO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=EO;break;case Ty:case Ry:case Oy:G=fO;break;case Ay:G=TO;break;case"scroll":case"scrollend":G=aO;break;case"wheel":G=OO;break;case"copy":case"cut":case"paste":G=pO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=ay;break;case"toggle":case"beforetoggle":G=MO}var Ae=(i&4)!==0,it=!Ae&&(n==="scroll"||n==="scrollend"),B=Ae?V!==null?V+"Capture":null:V;Ae=[];for(var U=F,H;U!==null;){var le=U;if(H=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||H===null||B===null||(le=Ia(U,B),le!=null&&Ae.push(bl(U,le,H))),it)break;U=U.return}0<Ae.length&&(V=new G(V,De,null,s,ie),ue.push({event:V,listeners:Ae}))}}if((i&7)===0){e:{if(V=n==="mouseover"||n==="pointerover",G=n==="mouseout"||n==="pointerout",V&&s!==Rf&&(De=s.relatedTarget||s.fromElement)&&(mo(De)||De[ho]))break e;if((G||V)&&(V=ie.window===ie?ie:(V=ie.ownerDocument)?V.defaultView||V.parentWindow:window,G?(De=s.relatedTarget||s.toElement,G=F,De=De?mo(De):null,De!==null&&(it=u(De),Ae=De.tag,De!==it||Ae!==5&&Ae!==27&&Ae!==6)&&(De=null)):(G=null,De=F),G!==De)){if(Ae=iy,le="onMouseLeave",B="onMouseEnter",U="mouse",(n==="pointerout"||n==="pointerover")&&(Ae=ay,le="onPointerLeave",B="onPointerEnter",U="pointer"),it=G==null?V:za(G),H=De==null?V:za(De),V=new Ae(le,U+"leave",G,s,ie),V.target=it,V.relatedTarget=H,le=null,mo(ie)===F&&(Ae=new Ae(B,U+"enter",De,s,ie),Ae.target=H,Ae.relatedTarget=it,le=Ae),it=le,G&&De)t:{for(Ae=G,B=De,U=0,H=Ae;H;H=Qo(H))U++;for(H=0,le=B;le;le=Qo(le))H++;for(;0<U-H;)Ae=Qo(Ae),U--;for(;0<H-U;)B=Qo(B),H--;for(;U--;){if(Ae===B||B!==null&&Ae===B.alternate)break t;Ae=Qo(Ae),B=Qo(B)}Ae=null}else Ae=null;G!==null&&Qb(ue,V,G,Ae,!1),De!==null&&it!==null&&Qb(ue,it,De,Ae,!0)}}e:{if(V=F?za(F):window,G=V.nodeName&&V.nodeName.toLowerCase(),G==="select"||G==="input"&&V.type==="file")var Se=hy;else if(dy(V))if(my)Se=UO;else{Se=IO;var Fe=zO}else G=V.nodeName,!G||G.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?F&&Tf(F.elementType)&&(Se=hy):Se=jO;if(Se&&(Se=Se(n,F))){py(ue,Se,s,ie);break e}Fe&&Fe(n,V,F),n==="focusout"&&F&&V.type==="number"&&F.memoizedProps.value!=null&&Cf(V,"number",V.value)}switch(Fe=F?za(F):window,n){case"focusin":(dy(Fe)||Fe.contentEditable==="true")&&(To=Fe,Uf=F,Ga=null);break;case"focusout":Ga=Uf=To=null;break;case"mousedown":Bf=!0;break;case"contextmenu":case"mouseup":case"dragend":Bf=!1,Ey(ue,s,ie);break;case"selectionchange":if(HO)break;case"keydown":case"keyup":Ey(ue,s,ie)}var Re;if(Lf)e:{switch(n){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Co?cy(n,s)&&(Me="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Me="onCompositionStart");Me&&(ly&&s.locale!=="ko"&&(Co||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Co&&(Re=ny()):(Kr=ie,_f="value"in Kr?Kr.value:Kr.textContent,Co=!0)),Fe=wu(F,Me),0<Fe.length&&(Me=new oy(Me,n,null,s,ie),ue.push({event:Me,listeners:Fe}),Re?Me.data=Re:(Re=fy(s),Re!==null&&(Me.data=Re)))),(Re=kO?DO(n,s):NO(n,s))&&(Me=wu(F,"onBeforeInput"),0<Me.length&&(Fe=new oy("onBeforeInput","beforeinput",null,s,ie),ue.push({event:Fe,listeners:Me}),Fe.data=Re)),EA(ue,n,F,s,ie)}Yb(ue,i)})}a(sp,"dispatchEventForPluginEventSystem");function bl(n,i,s){return{instance:n,listener:i,currentTarget:s}}a(bl,"createDispatchListener");function wu(n,i){for(var s=i+"Capture",f=[];n!==null;){var g=n,v=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||v===null||(g=Ia(n,s),g!=null&&f.unshift(bl(n,g,v)),g=Ia(n,i),g!=null&&f.push(bl(n,g,v))),n.tag===3)return f;n=n.return}return[]}a(wu,"accumulateTwoPhaseListeners");function Qo(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}a(Qo,"getParent");function Qb(n,i,s,f,g){for(var v=i._reactName,T=[];s!==null&&s!==f;){var _=s,P=_.alternate,F=_.stateNode;if(_=_.tag,P!==null&&P===f)break;_!==5&&_!==26&&_!==27||F===null||(P=F,g?(F=Ia(s,v),F!=null&&T.unshift(bl(s,F,P))):g||(F=Ia(s,v),F!=null&&T.push(bl(s,F,P)))),s=s.return}T.length!==0&&n.push({event:i,listeners:T})}a(Qb,"accumulateEnterLeaveListenersForEvent");var OA=/\r\n?/g,AA=/\u0000|\uFFFD/g;function Xb(n){return(typeof n=="string"?n:""+n).replace(OA,`
49
- `).replace(AA,"")}a(Xb,"normalizeMarkupForTextOrAttribute");function Wb(n,i){return i=Xb(i),Xb(n)===i}a(Wb,"checkForUnmatchedText");function Eu(){}a(Eu,"noop$1");function rt(n,i,s,f,g,v){switch(s){case"children":typeof f=="string"?i==="body"||i==="textarea"&&f===""||xo(n,f):(typeof f=="number"||typeof f=="bigint")&&i!=="body"&&xo(n,""+f);break;case"className":As(n,"class",f);break;case"tabIndex":As(n,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":As(n,s,f);break;case"style":Jg(n,f,v);break;case"data":if(i!=="object"){As(n,"data",f);break}case"src":case"href":if(f===""&&(i!=="a"||s!=="href")){n.removeAttribute(s);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){n.removeAttribute(s);break}f=ks(""+f),n.setAttribute(s,f);break;case"action":case"formAction":if(typeof f=="function"){n.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(s==="formAction"?(i!=="input"&&rt(n,i,"name",g.name,g,null),rt(n,i,"formEncType",g.formEncType,g,null),rt(n,i,"formMethod",g.formMethod,g,null),rt(n,i,"formTarget",g.formTarget,g,null)):(rt(n,i,"encType",g.encType,g,null),rt(n,i,"method",g.method,g,null),rt(n,i,"target",g.target,g,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){n.removeAttribute(s);break}f=ks(""+f),n.setAttribute(s,f);break;case"onClick":f!=null&&(n.onclick=Eu);break;case"onScroll":f!=null&&Ge("scroll",n);break;case"onScrollEnd":f!=null&&Ge("scrollend",n);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(o(61));if(s=f.__html,s!=null){if(g.children!=null)throw Error(o(60));n.innerHTML=s}}break;case"multiple":n.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":n.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){n.removeAttribute("xlink:href");break}s=ks(""+f),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?n.setAttribute(s,""+f):n.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":f&&typeof f!="function"&&typeof f!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":f===!0?n.setAttribute(s,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?n.setAttribute(s,f):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?n.setAttribute(s,f):n.removeAttribute(s);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?n.removeAttribute(s):n.setAttribute(s,f);break;case"popover":Ge("beforetoggle",n),Ge("toggle",n),Os(n,"popover",f);break;case"xlinkActuate":wr(n,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":wr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":wr(n,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":wr(n,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":wr(n,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":wr(n,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":wr(n,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":wr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":wr(n,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":Os(n,"is",f);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=iO.get(s)||s,Os(n,s,f))}}a(rt,"setProp");function up(n,i,s,f,g,v){switch(s){case"style":Jg(n,f,v);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(o(61));if(s=f.__html,s!=null){if(g.children!=null)throw Error(o(60));n.innerHTML=s}}break;case"children":typeof f=="string"?xo(n,f):(typeof f=="number"||typeof f=="bigint")&&xo(n,""+f);break;case"onScroll":f!=null&&Ge("scroll",n);break;case"onScrollEnd":f!=null&&Ge("scrollend",n);break;case"onClick":f!=null&&(n.onclick=Eu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fg.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(g=s.endsWith("Capture"),i=s.slice(2,g?s.length-7:void 0),v=n[Xt]||null,v=v!=null?v[s]:null,typeof v=="function"&&n.removeEventListener(i,v,g),typeof f=="function")){typeof v!="function"&&v!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(i,f,g);break e}s in n?n[s]=f:f===!0?n.setAttribute(s,""):Os(n,s,f)}}}a(up,"setPropOnCustomElement");function zt(n,i,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",n),Ge("load",n);var f=!1,g=!1,v;for(v in s)if(s.hasOwnProperty(v)){var T=s[v];if(T!=null)switch(v){case"src":f=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:rt(n,i,v,T,s,null)}}g&&rt(n,i,"srcSet",s.srcSet,s,null),f&&rt(n,i,"src",s.src,s,null);return;case"input":Ge("invalid",n);var _=v=T=g=null,P=null,F=null;for(f in s)if(s.hasOwnProperty(f)){var ie=s[f];if(ie!=null)switch(f){case"name":g=ie;break;case"type":T=ie;break;case"checked":P=ie;break;case"defaultChecked":F=ie;break;case"value":v=ie;break;case"defaultValue":_=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(o(137,i));break;default:rt(n,i,f,ie,s,null)}}Qg(n,v,_,P,F,T,g,!1),Ms(n);return;case"select":Ge("invalid",n),f=T=v=null;for(g in s)if(s.hasOwnProperty(g)&&(_=s[g],_!=null))switch(g){case"value":v=_;break;case"defaultValue":T=_;break;case"multiple":f=_;default:rt(n,i,g,_,s,null)}i=v,s=T,n.multiple=!!f,i!=null?So(n,!!f,i,!1):s!=null&&So(n,!!f,s,!0);return;case"textarea":Ge("invalid",n),v=g=f=null;for(T in s)if(s.hasOwnProperty(T)&&(_=s[T],_!=null))switch(T){case"value":f=_;break;case"defaultValue":g=_;break;case"children":v=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(91));break;default:rt(n,i,T,_,s,null)}Wg(n,f,g,v),Ms(n);return;case"option":for(P in s)if(s.hasOwnProperty(P)&&(f=s[P],f!=null))switch(P){case"selected":n.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:rt(n,i,P,f,s,null)}return;case"dialog":Ge("beforetoggle",n),Ge("toggle",n),Ge("cancel",n),Ge("close",n);break;case"iframe":case"object":Ge("load",n);break;case"video":case"audio":for(f=0;f<vl.length;f++)Ge(vl[f],n);break;case"image":Ge("error",n),Ge("load",n);break;case"details":Ge("toggle",n);break;case"embed":case"source":case"link":Ge("error",n),Ge("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(F in s)if(s.hasOwnProperty(F)&&(f=s[F],f!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:rt(n,i,F,f,s,null)}return;default:if(Tf(i)){for(ie in s)s.hasOwnProperty(ie)&&(f=s[ie],f!==void 0&&up(n,i,ie,f,s,void 0));return}}for(_ in s)s.hasOwnProperty(_)&&(f=s[_],f!=null&&rt(n,i,_,f,s,null))}a(zt,"setInitialProperties");function MA(n,i,s,f){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,v=null,T=null,_=null,P=null,F=null,ie=null;for(G in s){var ue=s[G];if(s.hasOwnProperty(G)&&ue!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":P=ue;default:f.hasOwnProperty(G)||rt(n,i,G,null,f,ue)}}for(var V in f){var G=f[V];if(ue=s[V],f.hasOwnProperty(V)&&(G!=null||ue!=null))switch(V){case"type":v=G;break;case"name":g=G;break;case"checked":F=G;break;case"defaultChecked":ie=G;break;case"value":T=G;break;case"defaultValue":_=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(o(137,i));break;default:G!==ue&&rt(n,i,V,G,f,ue)}}Ef(n,T,_,P,F,ie,v,g);return;case"select":G=T=_=V=null;for(v in s)if(P=s[v],s.hasOwnProperty(v)&&P!=null)switch(v){case"value":break;case"multiple":G=P;default:f.hasOwnProperty(v)||rt(n,i,v,null,f,P)}for(g in f)if(v=f[g],P=s[g],f.hasOwnProperty(g)&&(v!=null||P!=null))switch(g){case"value":V=v;break;case"defaultValue":_=v;break;case"multiple":T=v;default:v!==P&&rt(n,i,g,v,f,P)}i=_,s=T,f=G,V!=null?So(n,!!s,V,!1):!!f!=!!s&&(i!=null?So(n,!!s,i,!0):So(n,!!s,s?[]:"",!1));return;case"textarea":G=V=null;for(_ in s)if(g=s[_],s.hasOwnProperty(_)&&g!=null&&!f.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:rt(n,i,_,null,f,g)}for(T in f)if(g=f[T],v=s[T],f.hasOwnProperty(T)&&(g!=null||v!=null))switch(T){case"value":V=g;break;case"defaultValue":G=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(o(91));break;default:g!==v&&rt(n,i,T,g,f,v)}Xg(n,V,G);return;case"option":for(var De in s)if(V=s[De],s.hasOwnProperty(De)&&V!=null&&!f.hasOwnProperty(De))switch(De){case"selected":n.selected=!1;break;default:rt(n,i,De,null,f,V)}for(P in f)if(V=f[P],G=s[P],f.hasOwnProperty(P)&&V!==G&&(V!=null||G!=null))switch(P){case"selected":n.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:rt(n,i,P,V,f,G)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in s)V=s[Ae],s.hasOwnProperty(Ae)&&V!=null&&!f.hasOwnProperty(Ae)&&rt(n,i,Ae,null,f,V);for(F in f)if(V=f[F],G=s[F],f.hasOwnProperty(F)&&V!==G&&(V!=null||G!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,i));break;default:rt(n,i,F,V,f,G)}return;default:if(Tf(i)){for(var it in s)V=s[it],s.hasOwnProperty(it)&&V!==void 0&&!f.hasOwnProperty(it)&&up(n,i,it,void 0,f,V);for(ie in f)V=f[ie],G=s[ie],!f.hasOwnProperty(ie)||V===G||V===void 0&&G===void 0||up(n,i,ie,V,f,G);return}}for(var B in s)V=s[B],s.hasOwnProperty(B)&&V!=null&&!f.hasOwnProperty(B)&&rt(n,i,B,null,f,V);for(ue in f)V=f[ue],G=s[ue],!f.hasOwnProperty(ue)||V===G||V==null&&G==null||rt(n,i,ue,V,f,G)}a(MA,"updateProperties");var cp=null,fp=null;function Cu(n){return n.nodeType===9?n:n.ownerDocument}a(Cu,"getOwnerDocumentFromRootContainer");function Zb(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}a(Zb,"getOwnHostContext");function Jb(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}a(Jb,"getChildHostContextProd");function dp(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}a(dp,"shouldSetTextContent");var pp=null;function _A(){var n=window.event;return n&&n.type==="popstate"?n===pp?!1:(pp=n,!0):(pp=null,!1)}a(_A,"shouldAttemptEagerTransition");var e0=typeof setTimeout=="function"?setTimeout:void 0,kA=typeof clearTimeout=="function"?clearTimeout:void 0,t0=typeof Promise=="function"?Promise:void 0,DA=typeof queueMicrotask=="function"?queueMicrotask:typeof t0<"u"?function(n){return t0.resolve(null).then(n).catch(NA)}:e0;function NA(n){setTimeout(function(){throw n})}a(NA,"handleErrorInNextTick");function ci(n){return n==="head"}a(ci,"isSingletonScope");function n0(n,i){var s=i,f=0,g=0;do{var v=s.nextSibling;if(n.removeChild(s),v&&v.nodeType===8)if(s=v.data,s==="/$"){if(0<f&&8>f){s=f;var T=n.ownerDocument;if(s&1&&Sl(T.documentElement),s&2&&Sl(T.body),s&4)for(s=T.head,Sl(s),T=s.firstChild;T;){var _=T.nextSibling,P=T.nodeName;T[La]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&T.rel.toLowerCase()==="stylesheet"||s.removeChild(T),T=_}}if(g===0){n.removeChild(v),Al(i);return}g--}else s==="$"||s==="$?"||s==="$!"?g++:f=s.charCodeAt(0)-48;else f=0;s=v}while(s);Al(i)}a(n0,"clearSuspenseBoundary");function hp(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var s=i;switch(i=i.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":hp(s),bf(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}a(hp,"clearContainerSparingly");function PA(n,i,s,f){for(;n.nodeType===1;){var g=s;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!f&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(f){if(!n[La])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(v=n.getAttribute("rel"),v==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(v!==g.rel||n.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||n.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||n.getAttribute("title")!==(g.title==null?null:g.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(v=n.getAttribute("src"),(v!==(g.src==null?null:g.src)||n.getAttribute("type")!==(g.type==null?null:g.type)||n.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&v&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var v=g.name==null?null:""+g.name;if(g.type==="hidden"&&n.getAttribute("name")===v)return n}else return n;if(n=Hn(n.nextSibling),n===null)break}return null}a(PA,"canHydrateInstance");function LA(n,i,s){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=Hn(n.nextSibling),n===null))return null;return n}a(LA,"canHydrateTextInstance");function mp(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}a(mp,"isSuspenseInstanceFallback");function zA(n,i){var s=n.ownerDocument;if(n.data!=="$?"||s.readyState==="complete")i();else{var f=a(function(){i(),s.removeEventListener("DOMContentLoaded",f)},"listener");s.addEventListener("DOMContentLoaded",f),n._reactRetry=f}}a(zA,"registerSuspenseInstanceRetry");function Hn(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return n}a(Hn,"getNextHydratable");var gp=null;function r0(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return n;i--}else s==="/$"&&i++}n=n.previousSibling}return null}a(r0,"getParentSuspenseInstance");function i0(n,i,s){switch(i=Cu(s),n){case"html":if(n=i.documentElement,!n)throw Error(o(452));return n;case"head":if(n=i.head,!n)throw Error(o(453));return n;case"body":if(n=i.body,!n)throw Error(o(454));return n;default:throw Error(o(451))}}a(i0,"resolveSingletonInstance");function Sl(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);bf(n)}a(Sl,"releaseSingletonInstance");var kn=new Map,o0=new Set;function Tu(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}a(Tu,"getHoistableRoot");var zr=Q.d;Q.d={f:IA,r:jA,D:UA,C:BA,L:HA,m:FA,X:VA,S:qA,M:GA};function IA(){var n=zr.f(),i=gu();return n||i}a(IA,"flushSyncWork");function jA(n){var i=go(n);i!==null&&i.tag===5&&i.type==="form"?Tv(i):zr.r(n)}a(jA,"requestFormReset");var Xo=typeof document>"u"?null:document;function a0(n,i,s){var f=Xo;if(f&&typeof i=="string"&&i){var g=Cn(i);g='link[rel="'+n+'"][href="'+g+'"]',typeof s=="string"&&(g+='[crossorigin="'+s+'"]'),o0.has(g)||(o0.add(g),n={rel:n,crossOrigin:s,href:i},f.querySelector(g)===null&&(i=f.createElement("link"),zt(i,"link",n),_t(i),f.head.appendChild(i)))}}a(a0,"preconnectAs");function UA(n){zr.D(n),a0("dns-prefetch",n,null)}a(UA,"prefetchDNS");function BA(n,i){zr.C(n,i),a0("preconnect",n,i)}a(BA,"preconnect");function HA(n,i,s){zr.L(n,i,s);var f=Xo;if(f&&n&&i){var g='link[rel="preload"][as="'+Cn(i)+'"]';i==="image"&&s&&s.imageSrcSet?(g+='[imagesrcset="'+Cn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(g+='[imagesizes="'+Cn(s.imageSizes)+'"]')):g+='[href="'+Cn(n)+'"]';var v=g;switch(i){case"style":v=Wo(n);break;case"script":v=Zo(n)}kn.has(v)||(n=m({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:n,as:i},s),kn.set(v,n),f.querySelector(g)!==null||i==="style"&&f.querySelector(xl(v))||i==="script"&&f.querySelector(wl(v))||(i=f.createElement("link"),zt(i,"link",n),_t(i),f.head.appendChild(i)))}}a(HA,"preload");function FA(n,i){zr.m(n,i);var s=Xo;if(s&&n){var f=i&&typeof i.as=="string"?i.as:"script",g='link[rel="modulepreload"][as="'+Cn(f)+'"][href="'+Cn(n)+'"]',v=g;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Zo(n)}if(!kn.has(v)&&(n=m({rel:"modulepreload",href:n},i),kn.set(v,n),s.querySelector(g)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(wl(v)))return}f=s.createElement("link"),zt(f,"link",n),_t(f),s.head.appendChild(f)}}}a(FA,"preloadModule");function qA(n,i,s){zr.S(n,i,s);var f=Xo;if(f&&n){var g=yo(f).hoistableStyles,v=Wo(n);i=i||"default";var T=g.get(v);if(!T){var _={loading:0,preload:null};if(T=f.querySelector(xl(v)))_.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":i},s),(s=kn.get(v))&&yp(n,s);var P=T=f.createElement("link");_t(P),zt(P,"link",n),P._p=new Promise(function(F,ie){P.onload=F,P.onerror=ie}),P.addEventListener("load",function(){_.loading|=1}),P.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Ru(T,i,f)}T={type:"stylesheet",instance:T,count:1,state:_},g.set(v,T)}}}a(qA,"preinitStyle");function VA(n,i){zr.X(n,i);var s=Xo;if(s&&n){var f=yo(s).hoistableScripts,g=Zo(n),v=f.get(g);v||(v=s.querySelector(wl(g)),v||(n=m({src:n,async:!0},i),(i=kn.get(g))&&vp(n,i),v=s.createElement("script"),_t(v),zt(v,"link",n),s.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(g,v))}}a(VA,"preinitScript");function GA(n,i){zr.M(n,i);var s=Xo;if(s&&n){var f=yo(s).hoistableScripts,g=Zo(n),v=f.get(g);v||(v=s.querySelector(wl(g)),v||(n=m({src:n,async:!0,type:"module"},i),(i=kn.get(g))&&vp(n,i),v=s.createElement("script"),_t(v),zt(v,"link",n),s.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(g,v))}}a(GA,"preinitModuleScript");function l0(n,i,s,f){var g=(g=oe.current)?Tu(g):null;if(!g)throw Error(o(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=Wo(s.href),s=yo(g).hoistableStyles,f=s.get(i),f||(f={type:"style",instance:null,count:0,state:null},s.set(i,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=Wo(s.href);var v=yo(g).hoistableStyles,T=v.get(n);if(T||(g=g.ownerDocument||g,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(n,T),(v=g.querySelector(xl(n)))&&!v._p&&(T.instance=v,T.state.loading=5),kn.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},kn.set(n,s),v||$A(g,n,s,T.state))),i&&f===null)throw Error(o(528,""));return T}if(i&&f!==null)throw Error(o(529,""));return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Zo(s),s=yo(g).hoistableScripts,f=s.get(i),f||(f={type:"script",instance:null,count:0,state:null},s.set(i,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,n))}}a(l0,"getResource");function Wo(n){return'href="'+Cn(n)+'"'}a(Wo,"getStyleKey");function xl(n){return'link[rel="stylesheet"]['+n+"]"}a(xl,"getStylesheetSelectorFromKey");function s0(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}a(s0,"stylesheetPropsFromRawProps");function $A(n,i,s,f){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?f.loading=1:(i=n.createElement("link"),f.preload=i,i.addEventListener("load",function(){return f.loading|=1}),i.addEventListener("error",function(){return f.loading|=2}),zt(i,"link",s),_t(i),n.head.appendChild(i))}a($A,"preloadStylesheet");function Zo(n){return'[src="'+Cn(n)+'"]'}a(Zo,"getScriptKey");function wl(n){return"script[async]"+n}a(wl,"getScriptSelectorFromKey");function u0(n,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var f=n.querySelector('style[data-href~="'+Cn(s.href)+'"]');if(f)return i.instance=f,_t(f),f;var g=m({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return f=(n.ownerDocument||n).createElement("style"),_t(f),zt(f,"style",g),Ru(f,s.precedence,n),i.instance=f;case"stylesheet":g=Wo(s.href);var v=n.querySelector(xl(g));if(v)return i.state.loading|=4,i.instance=v,_t(v),v;f=s0(s),(g=kn.get(g))&&yp(f,g),v=(n.ownerDocument||n).createElement("link"),_t(v);var T=v;return T._p=new Promise(function(_,P){T.onload=_,T.onerror=P}),zt(v,"link",f),i.state.loading|=4,Ru(v,s.precedence,n),i.instance=v;case"script":return v=Zo(s.src),(g=n.querySelector(wl(v)))?(i.instance=g,_t(g),g):(f=s,(g=kn.get(v))&&(f=m({},s),vp(f,g)),n=n.ownerDocument||n,g=n.createElement("script"),_t(g),zt(g,"link",f),n.head.appendChild(g),i.instance=g);case"void":return null;default:throw Error(o(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(f=i.instance,i.state.loading|=4,Ru(f,s.precedence,n));return i.instance}a(u0,"acquireResource");function Ru(n,i,s){for(var f=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=f.length?f[f.length-1]:null,v=g,T=0;T<f.length;T++){var _=f[T];if(_.dataset.precedence===i)v=_;else if(v!==g)break}v?v.parentNode.insertBefore(n,v.nextSibling):(i=s.nodeType===9?s.head:s,i.insertBefore(n,i.firstChild))}a(Ru,"insertStylesheet");function yp(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}a(yp,"adoptPreloadPropsForStylesheet");function vp(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}a(vp,"adoptPreloadPropsForScript");var Ou=null;function c0(n,i,s){if(Ou===null){var f=new Map,g=Ou=new Map;g.set(s,f)}else g=Ou,f=g.get(s),f||(f=new Map,g.set(s,f));if(f.has(n))return f;for(f.set(n,null),s=s.getElementsByTagName(n),g=0;g<s.length;g++){var v=s[g];if(!(v[La]||v[jt]||n==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var T=v.getAttribute(i)||"";T=n+T;var _=f.get(T);_?_.push(v):f.set(T,[v])}}return f}a(c0,"getHydratableHoistableCache");function f0(n,i,s){n=n.ownerDocument||n,n.head.insertBefore(s,i==="title"?n.querySelector("head > title"):null)}a(f0,"mountHoistable");function YA(n,i,s){if(s===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}a(YA,"isHostHoistableType");function d0(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}a(d0,"preloadResource");var El=null;function KA(){}a(KA,"noop");function QA(n,i,s){if(El===null)throw Error(o(475));var f=El;if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var g=Wo(s.href),v=n.querySelector(xl(g));if(v){n=v._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(f.count++,f=Au.bind(f),n.then(f,f)),i.state.loading|=4,i.instance=v,_t(v);return}v=n.ownerDocument||n,s=s0(s),(g=kn.get(g))&&yp(s,g),v=v.createElement("link"),_t(v);var T=v;T._p=new Promise(function(_,P){T.onload=_,T.onerror=P}),zt(v,"link",s),i.instance=v}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(f.count++,i=Au.bind(f),n.addEventListener("load",i),n.addEventListener("error",i))}}a(QA,"suspendResource");function XA(){if(El===null)throw Error(o(475));var n=El;return n.stylesheets&&n.count===0&&bp(n,n.stylesheets),0<n.count?function(i){var s=setTimeout(function(){if(n.stylesheets&&bp(n,n.stylesheets),n.unsuspend){var f=n.unsuspend;n.unsuspend=null,f()}},6e4);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(s)}}:null}a(XA,"waitForCommitToBeReady");function Au(){if(this.count--,this.count===0){if(this.stylesheets)bp(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}a(Au,"onUnsuspend");var Mu=null;function bp(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Mu=new Map,i.forEach(WA,n),Mu=null,Au.call(n))}a(bp,"insertSuspendedStylesheets");function WA(n,i){if(!(i.state.loading&4)){var s=Mu.get(n);if(s)var f=s.get(null);else{s=new Map,Mu.set(n,s);for(var g=n.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<g.length;v++){var T=g[v];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(s.set(T.dataset.precedence,T),f=T)}f&&s.set(null,f)}g=i.instance,T=g.getAttribute("data-precedence"),v=s.get(T)||f,v===f&&s.set(null,g),s.set(T,g),this.count++,f=Au.bind(this),g.addEventListener("load",f),g.addEventListener("error",f),v?v.parentNode.insertBefore(g,v.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(g,n.firstChild)),i.state.loading|=4}}a(WA,"insertStylesheetIntoRoot");var Cl={$$typeof:k,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function ZA(n,i,s,f,g,v,T,_){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=mf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mf(0),this.hiddenUpdates=mf(null),this.identifierPrefix=f,this.onUncaughtError=g,this.onCaughtError=v,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}a(ZA,"FiberRootNode");function p0(n,i,s,f,g,v,T,_,P,F,ie,ue){return n=new ZA(n,i,s,T,_,P,F,ue),i=1,v===!0&&(i|=24),v=cn(3,null,null,i),n.current=v,v.stateNode=n,i=ed(),i.refCount++,n.pooledCache=i,i.refCount++,v.memoizedState={element:f,isDehydrated:s,cache:i},id(v),n}a(p0,"createFiberRoot");function h0(n){return n?(n=Mo,n):Mo}a(h0,"getContextForSubtree");function m0(n,i,s,f,g,v){g=h0(g),f.context===null?f.context=g:f.pendingContext=g,f=Wr(i),f.payload={element:s},v=v===void 0?null:v,v!==null&&(f.callback=v),s=Zr(n,f,i),s!==null&&(mn(s,n,i),el(s,n,i))}a(m0,"updateContainerImpl");function g0(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<i?s:i}}a(g0,"markRetryLaneImpl");function Sp(n,i){g0(n,i),(n=n.alternate)&&g0(n,i)}a(Sp,"markRetryLaneIfNotHydrated");function y0(n){if(n.tag===13){var i=Ao(n,67108864);i!==null&&mn(i,n,67108864),Sp(n,67108864)}}a(y0,"attemptContinuousHydration");var _u=!0;function JA(n,i,s,f){var g=I.T;I.T=null;var v=Q.p;try{Q.p=2,xp(n,i,s,f)}finally{Q.p=v,I.T=g}}a(JA,"dispatchDiscreteEvent");function eM(n,i,s,f){var g=I.T;I.T=null;var v=Q.p;try{Q.p=8,xp(n,i,s,f)}finally{Q.p=v,I.T=g}}a(eM,"dispatchContinuousEvent");function xp(n,i,s,f){if(_u){var g=wp(f);if(g===null)sp(n,i,f,ku,s),b0(n,f);else if(nM(g,n,i,s,f))f.stopPropagation();else if(b0(n,f),i&4&&-1<tM.indexOf(n)){for(;g!==null;){var v=go(g);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var T=sn(v.pendingLanes);if(T!==0){var _=v;for(_.pendingLanes|=2,_.entangledLanes|=2;T;){var P=1<<31-ke(T);_.entanglements[1]|=P,T&=~P}rr(v),(et&6)===0&&(hu=St()+500,yl(0))}}break;case 13:_=Ao(v,2),_!==null&&mn(_,v,2),gu(),Sp(v,2)}if(v=wp(f),v===null&&sp(n,i,f,ku,s),v===g)break;g=v}g!==null&&f.stopPropagation()}else sp(n,i,f,null,s)}}a(xp,"dispatchEvent");function wp(n){return n=Of(n),Ep(n)}a(wp,"findInstanceBlockingEvent");var ku=null;function Ep(n){if(ku=null,n=mo(n),n!==null){var i=u(n);if(i===null)n=null;else{var s=i.tag;if(s===13){if(n=c(i),n!==null)return n;n=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return ku=n,null}a(Ep,"findInstanceBlockingTarget");function v0(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(At()){case $r:return 2;case Ai:return 8;case xn:case fo:return 32;case po:return 268435456;default:return 32}default:return 32}}a(v0,"getEventPriority");var Cp=!1,fi=null,di=null,pi=null,Tl=new Map,Rl=new Map,hi=[],tM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function b0(n,i){switch(n){case"focusin":case"focusout":fi=null;break;case"dragenter":case"dragleave":di=null;break;case"mouseover":case"mouseout":pi=null;break;case"pointerover":case"pointerout":Tl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rl.delete(i.pointerId)}}a(b0,"clearIfContinuousEvent");function Ol(n,i,s,f,g,v){return n===null||n.nativeEvent!==v?(n={blockedOn:i,domEventName:s,eventSystemFlags:f,nativeEvent:v,targetContainers:[g]},i!==null&&(i=go(i),i!==null&&y0(i)),n):(n.eventSystemFlags|=f,i=n.targetContainers,g!==null&&i.indexOf(g)===-1&&i.push(g),n)}a(Ol,"accumulateOrCreateContinuousQueuedReplayableEvent");function nM(n,i,s,f,g){switch(i){case"focusin":return fi=Ol(fi,n,i,s,f,g),!0;case"dragenter":return di=Ol(di,n,i,s,f,g),!0;case"mouseover":return pi=Ol(pi,n,i,s,f,g),!0;case"pointerover":var v=g.pointerId;return Tl.set(v,Ol(Tl.get(v)||null,n,i,s,f,g)),!0;case"gotpointercapture":return v=g.pointerId,Rl.set(v,Ol(Rl.get(v)||null,n,i,s,f,g)),!0}return!1}a(nM,"queueIfContinuousEvent");function S0(n){var i=mo(n.target);if(i!==null){var s=u(i);if(s!==null){if(i=s.tag,i===13){if(i=c(s),i!==null){n.blockedOn=i,QR(n.priority,function(){if(s.tag===13){var f=hn();f=gf(f);var g=Ao(s,f);g!==null&&mn(g,s,f),Sp(s,f)}});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}a(S0,"attemptExplicitHydrationTarget");function Du(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var s=wp(n.nativeEvent);if(s===null){s=n.nativeEvent;var f=new s.constructor(s.type,s);Rf=f,s.target.dispatchEvent(f),Rf=null}else return i=go(s),i!==null&&y0(i),n.blockedOn=s,!1;i.shift()}return!0}a(Du,"attemptReplayContinuousQueuedEvent");function x0(n,i,s){Du(n)&&s.delete(i)}a(x0,"attemptReplayContinuousQueuedEventInMap");function rM(){Cp=!1,fi!==null&&Du(fi)&&(fi=null),di!==null&&Du(di)&&(di=null),pi!==null&&Du(pi)&&(pi=null),Tl.forEach(x0),Rl.forEach(x0)}a(rM,"replayUnblockedEvents");function Nu(n,i){n.blockedOn===i&&(n.blockedOn=null,Cp||(Cp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,rM)))}a(Nu,"scheduleCallbackIfUnblocked");var Pu=null;function w0(n){Pu!==n&&(Pu=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Pu===n&&(Pu=null);for(var i=0;i<n.length;i+=3){var s=n[i],f=n[i+1],g=n[i+2];if(typeof f!="function"){if(Ep(f||s)===null)continue;break}var v=go(s);v!==null&&(n.splice(i,3),i-=3,Ed(v,{pending:!0,data:g,method:s.method,action:f},f,g))}}))}a(w0,"scheduleReplayQueueIfNeeded");function Al(n){function i(P){return Nu(P,n)}a(i,"unblock"),fi!==null&&Nu(fi,n),di!==null&&Nu(di,n),pi!==null&&Nu(pi,n),Tl.forEach(i),Rl.forEach(i);for(var s=0;s<hi.length;s++){var f=hi[s];f.blockedOn===n&&(f.blockedOn=null)}for(;0<hi.length&&(s=hi[0],s.blockedOn===null);)S0(s),s.blockedOn===null&&hi.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(f=0;f<s.length;f+=3){var g=s[f],v=s[f+1],T=g[Xt]||null;if(typeof v=="function")T||w0(s);else if(T){var _=null;if(v&&v.hasAttribute("formAction")){if(g=v,T=v[Xt]||null)_=T.formAction;else if(Ep(g)!==null)continue}else _=T.action;typeof _=="function"?s[f+1]=_:(s.splice(f,3),f-=3),w0(s)}}}a(Al,"retryIfBlockedOn");function Tp(n){this._internalRoot=n}a(Tp,"ReactDOMRoot"),Lu.prototype.render=Tp.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(o(409));var s=i.current,f=hn();m0(s,f,n,i,null,null)},Lu.prototype.unmount=Tp.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;m0(n.current,2,null,n,null,null),gu(),i[ho]=null}};function Lu(n){this._internalRoot=n}a(Lu,"ReactDOMHydrationRoot"),Lu.prototype.unstable_scheduleHydration=function(n){if(n){var i=Ug();n={blockedOn:null,target:n,priority:i};for(var s=0;s<hi.length&&i!==0&&i<hi[s].priority;s++);hi.splice(s,0,n),s===0&&S0(n)}};var E0=t.version;if(E0!=="19.1.1")throw Error(o(527,E0,"19.1.1"));Q.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(o(188)):(n=Object.keys(n).join(","),Error(o(268,n)));return n=p(i),n=n!==null?h(n):null,n=n===null?null:n.stateNode,n};var iM={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zu.isDisabled&&zu.supportsFiber)try{re=zu.inject(iM),pe=zu}catch{}}return _l.createRoot=function(n,i){if(!l(n))throw Error(o(299));var s=!1,f="",g=Uv,v=Bv,T=Hv,_=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(g=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(T=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(_=i.unstable_transitionCallbacks)),i=p0(n,1,!1,null,null,s,f,g,v,T,_,null),n[ho]=i.current,lp(n),new Tp(i)},_l.hydrateRoot=function(n,i,s){if(!l(n))throw Error(o(299));var f=!1,g="",v=Uv,T=Bv,_=Hv,P=null,F=null;return s!=null&&(s.unstable_strictMode===!0&&(f=!0),s.identifierPrefix!==void 0&&(g=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(T=s.onCaughtError),s.onRecoverableError!==void 0&&(_=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(P=s.unstable_transitionCallbacks),s.formState!==void 0&&(F=s.formState)),i=p0(n,1,!0,i,s??null,f,g,v,T,_,P,F),i.context=h0(null),s=i.current,f=hn(),f=gf(f),g=Wr(f),g.callback=null,Zr(s,g,f),s=f,i.current.lanes=s,Pa(i,s),rr(i),n[ho]=i.current,lp(n),new Lu(i)},_l.version="19.1.1",_l}a(hM,"requireReactDomClient_production");var N0;function mM(){if(N0)return Ap.exports;N0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return a(e,"checkDCE"),e(),Ap.exports=hM(),Ap.exports}a(mM,"requireClient");var Z8=mM();function P0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}a(P0,"setRef");function Ac(...e){return t=>{let r=!1;const o=e.map(l=>{const u=P0(l,t);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let l=0;l<o.length;l++){const u=o[l];typeof u=="function"?u():P0(e[l],null)}}}}a(Ac,"composeRefs");function ze(...e){return S.useCallback(Ac(...e),e)}a(ze,"useComposedRefs");function Wi(e){const t=gM(e),r=S.forwardRef((o,l)=>{const{children:u,...c}=o,d=S.Children.toArray(u),p=d.find(yM);if(p){const h=p.props.children,m=d.map(y=>y===p?S.Children.count(h)>1?S.Children.only(null):S.isValidElement(h)?h.props.children:null:y);return D.jsx(t,{...c,ref:l,children:S.isValidElement(h)?S.cloneElement(h,void 0,m):null})}return D.jsx(t,{...c,ref:l,children:u})});return r.displayName=`${e}.Slot`,r}a(Wi,"createSlot");var J8=Wi("Slot");function gM(e){const t=S.forwardRef((r,o)=>{const{children:l,...u}=r;if(S.isValidElement(l)){const c=bM(l),d=vM(u,l.props);return l.type!==S.Fragment&&(d.ref=o?Ac(o,c):c),S.cloneElement(l,d)}return S.Children.count(l)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}a(gM,"createSlotClone");var ex=Symbol("radix.slottable");function tx(e){const t=a(({children:r})=>D.jsx(D.Fragment,{children:r}),"Slottable2");return t.displayName=`${e}.Slottable`,t.__radixId=ex,t}a(tx,"createSlottable");function yM(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ex}a(yM,"isSlottable");function vM(e,t){const r={...t};for(const o in t){const l=e[o],u=t[o];/^on[A-Z]/.test(o)?l&&u?r[o]=(...d)=>{const p=u(...d);return l(...d),p}:l&&(r[o]=l):o==="style"?r[o]={...l,...u}:o==="className"&&(r[o]=[l,u].filter(Boolean).join(" "))}return{...e,...r}}a(vM,"mergeProps");function bM(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}a(bM,"getElementRef$1");var dr=JS();const Gl=Vr(dr);var SM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ee=SM.reduce((e,t)=>{const r=Wi(`Primitive.${t}`),o=S.forwardRef((l,u)=>{const{asChild:c,...d}=l,p=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(p,{...d,ref:u})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function dm(e,t){e&&dr.flushSync(()=>e.dispatchEvent(t))}a(dm,"dispatchDiscreteCustomEvent");var xM="Separator",L0="horizontal",wM=["horizontal","vertical"],nx=S.forwardRef((e,t)=>{const{decorative:r,orientation:o=L0,...l}=e,u=EM(o)?o:L0,d=r?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return D.jsx(Ee.div,{"data-orientation":u,...d,...l,ref:t})});nx.displayName=xM;function EM(e){return wM.includes(e)}a(EM,"isValidOrientation");var e7=nx;function CM(e,t){const r=S.createContext(t),o=a(u=>{const{children:c,...d}=u,p=S.useMemo(()=>d,Object.values(d));return D.jsx(r.Provider,{value:p,children:c})},"Provider");o.displayName=e+"Provider";function l(u){const c=S.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${u}\` must be used within \`${e}\``)}return a(l,"useContext2"),[o,l]}a(CM,"createContext2");function $t(e,t=[]){let r=[];function o(u,c){const d=S.createContext(c),p=r.length;r=[...r,c];const h=a(y=>{const{scope:b,children:x,...E}=y,w=b?.[e]?.[p]||d,R=S.useMemo(()=>E,Object.values(E));return D.jsx(w.Provider,{value:R,children:x})},"Provider");h.displayName=u+"Provider";function m(y,b){const x=b?.[e]?.[p]||d,E=S.useContext(x);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${u}\``)}return a(m,"useContext2"),[h,m]}a(o,"createContext3");const l=a(()=>{const u=r.map(c=>S.createContext(c));return a(function(d){const p=d?.[e]||u;return S.useMemo(()=>({[`__scope${e}`]:{...d,[e]:p}}),[d,p])},"useScope")},"createScope");return l.scopeName=e,[o,TM(l,...t)]}a($t,"createContextScope");function TM(...e){const t=e[0];if(e.length===1)return t;const r=a(()=>{const o=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return a(function(u){const c=o.reduce((d,{useScope:p,scopeName:h})=>{const y=p(u)[`__scope${h}`];return{...d,...y}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}a(TM,"composeContextScopes");var bt=globalThis?.document?S.useLayoutEffect:()=>{},RM=fm[" useId ".trim().toString()]||(()=>{}),OM=0;function Ln(e){const[t,r]=S.useState(RM());return bt(()=>{r(o=>o??String(OM++))},[e]),e||(t?`radix-${t}`:"")}a(Ln,"useId$1");var AM=fm[" useInsertionEffect ".trim().toString()]||bt;function hr({prop:e,defaultProp:t,onChange:r=a(()=>{},"onChange"),caller:o}){const[l,u,c]=MM({defaultProp:t,onChange:r}),d=e!==void 0,p=d?e:l;{const m=S.useRef(e!==void 0);S.useEffect(()=>{const y=m.current;y!==d&&console.warn(`${o} is changing from ${y?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=d},[d,o])}const h=S.useCallback(m=>{if(d){const y=_M(m)?m(e):m;y!==e&&c.current?.(y)}else u(m)},[d,e,u,c]);return[p,h]}a(hr,"useControllableState");function MM({defaultProp:e,onChange:t}){const[r,o]=S.useState(e),l=S.useRef(r),u=S.useRef(t);return AM(()=>{u.current=t},[t]),S.useEffect(()=>{l.current!==r&&(u.current?.(r),l.current=r)},[r,l]),[r,o,u]}a(MM,"useUncontrolledState");function _M(e){return typeof e=="function"}a(_M,"isFunction$3");function vt(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>t.current?.(...r),[])}a(vt,"useCallbackRef$1");function kM(e,t=globalThis?.document){const r=vt(e);S.useEffect(()=>{const o=a(l=>{l.key==="Escape"&&r(l)},"handleKeyDown");return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[r,t])}a(kM,"useEscapeKeydown");var DM="DismissableLayer",xh="dismissableLayer.update",NM="dismissableLayer.pointerDownOutside",PM="dismissableLayer.focusOutside",z0,rx=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xa=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,onDismiss:d,...p}=e,h=S.useContext(rx),[m,y]=S.useState(null),b=m?.ownerDocument??globalThis?.document,[,x]=S.useState({}),E=ze(t,j=>y(j)),w=Array.from(h.layers),[R]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),C=w.indexOf(R),A=m?w.indexOf(m):-1,k=h.layersWithOutsidePointerEventsDisabled.size>0,z=A>=C,L=zM(j=>{const $=j.target,W=[...h.branches].some(J=>J.contains($));!z||W||(l?.(j),c?.(j),j.defaultPrevented||d?.())},b),N=IM(j=>{const $=j.target;[...h.branches].some(J=>J.contains($))||(u?.(j),c?.(j),j.defaultPrevented||d?.())},b);return kM(j=>{A===h.layers.size-1&&(o?.(j),!j.defaultPrevented&&d&&(j.preventDefault(),d()))},b),S.useEffect(()=>{if(m)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(z0=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),I0(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=z0)}},[m,b,r,h]),S.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),I0())},[m,h]),S.useEffect(()=>{const j=a(()=>x({}),"handleUpdate");return document.addEventListener(xh,j),()=>document.removeEventListener(xh,j)},[]),D.jsx(Ee.div,{...p,ref:E,style:{pointerEvents:k?z?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,N.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,L.onPointerDownCapture)})});xa.displayName=DM;var LM="DismissableLayerBranch",ix=S.forwardRef((e,t)=>{const r=S.useContext(rx),o=S.useRef(null),l=ze(t,o);return S.useEffect(()=>{const u=o.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),D.jsx(Ee.div,{...e,ref:l})});ix.displayName=LM;function zM(e,t=globalThis?.document){const r=vt(e),o=S.useRef(!1),l=S.useRef(()=>{});return S.useEffect(()=>{const u=a(d=>{if(d.target&&!o.current){let p=a(function(){ox(NM,r,h,{discrete:!0})},"handleAndDispatchPointerDownOutsideEvent2");const h={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",l.current),l.current=p,t.addEventListener("click",l.current,{once:!0})):p()}else t.removeEventListener("click",l.current);o.current=!1},"handlePointerDown"),c=window.setTimeout(()=>{t.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",u),t.removeEventListener("click",l.current)}},[t,r]),{onPointerDownCapture:a(()=>o.current=!0,"onPointerDownCapture")}}a(zM,"usePointerDownOutside");function IM(e,t=globalThis?.document){const r=vt(e),o=S.useRef(!1);return S.useEffect(()=>{const l=a(u=>{u.target&&!o.current&&ox(PM,r,{originalEvent:u},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",l),()=>t.removeEventListener("focusin",l)},[t,r]),{onFocusCapture:a(()=>o.current=!0,"onFocusCapture"),onBlurCapture:a(()=>o.current=!1,"onBlurCapture")}}a(IM,"useFocusOutside");function I0(){const e=new CustomEvent(xh);document.dispatchEvent(e)}a(I0,"dispatchUpdate");function ox(e,t,r,{discrete:o}){const l=r.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&l.addEventListener(e,t,{once:!0}),o?dm(l,u):l.dispatchEvent(u)}a(ox,"handleAndDispatchCustomEvent$1");var jM=xa,UM=ix,Dp="focusScope.autoFocusOnMount",Np="focusScope.autoFocusOnUnmount",j0={bubbles:!1,cancelable:!0},BM="FocusScope",Mc=S.forwardRef((e,t)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...c}=e,[d,p]=S.useState(null),h=vt(l),m=vt(u),y=S.useRef(null),b=ze(t,w=>p(w)),x=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(o){let w=a(function(k){if(x.paused||!d)return;const z=k.target;d.contains(z)?y.current=z:yi(y.current,{select:!0})},"handleFocusIn2"),R=a(function(k){if(x.paused||!d)return;const z=k.relatedTarget;z!==null&&(d.contains(z)||yi(y.current,{select:!0}))},"handleFocusOut2"),C=a(function(k){if(document.activeElement===document.body)for(const L of k)L.removedNodes.length>0&&yi(d)},"handleMutations2");document.addEventListener("focusin",w),document.addEventListener("focusout",R);const A=new MutationObserver(C);return d&&A.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",R),A.disconnect()}}},[o,d,x.paused]),S.useEffect(()=>{if(d){B0.add(x);const w=document.activeElement;if(!d.contains(w)){const C=new CustomEvent(Dp,j0);d.addEventListener(Dp,h),d.dispatchEvent(C),C.defaultPrevented||(HM($M(ax(d)),{select:!0}),document.activeElement===w&&yi(d))}return()=>{d.removeEventListener(Dp,h),setTimeout(()=>{const C=new CustomEvent(Np,j0);d.addEventListener(Np,m),d.dispatchEvent(C),C.defaultPrevented||yi(w??document.body,{select:!0}),d.removeEventListener(Np,m),B0.remove(x)},0)}}},[d,h,m,x]);const E=S.useCallback(w=>{if(!r&&!o||x.paused)return;const R=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,C=document.activeElement;if(R&&C){const A=w.currentTarget,[k,z]=FM(A);k&&z?!w.shiftKey&&C===z?(w.preventDefault(),r&&yi(k,{select:!0})):w.shiftKey&&C===k&&(w.preventDefault(),r&&yi(z,{select:!0})):C===A&&w.preventDefault()}},[r,o,x.paused]);return D.jsx(Ee.div,{tabIndex:-1,...c,ref:b,onKeyDown:E})});Mc.displayName=BM;function HM(e,{select:t=!1}={}){const r=document.activeElement;for(const o of e)if(yi(o,{select:t}),document.activeElement!==r)return}a(HM,"focusFirst$3");function FM(e){const t=ax(e),r=U0(t,e),o=U0(t.reverse(),e);return[r,o]}a(FM,"getTabbableEdges");function ax(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a(o=>{const l=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||l?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}a(ax,"getTabbableCandidates$1");function U0(e,t){for(const r of e)if(!qM(r,{upTo:t}))return r}a(U0,"findVisible");function qM(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}a(qM,"isHidden");function VM(e){return e instanceof HTMLInputElement&&"select"in e}a(VM,"isSelectableInput");function yi(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&VM(e)&&t&&e.select()}}a(yi,"focus");var B0=GM();function GM(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=H0(e,t),e.unshift(t)},remove(t){e=H0(e,t),e[0]?.resume()}}}a(GM,"createFocusScopesStack");function H0(e,t){const r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}a(H0,"arrayRemove");function $M(e){return e.filter(t=>t.tagName!=="A")}a($M,"removeLinks");var YM="Portal",wa=S.forwardRef((e,t)=>{const{container:r,...o}=e,[l,u]=S.useState(!1);bt(()=>u(!0),[]);const c=r||l&&globalThis?.document?.body;return c?Gl.createPortal(D.jsx(Ee.div,{...o,ref:t}),c):null});wa.displayName=YM;function KM(e,t){return S.useReducer((r,o)=>t[r][o]??r,e)}a(KM,"useStateMachine$1");var It=a(e=>{const{present:t,children:r}=e,o=QM(t),l=typeof r=="function"?r({present:o.isPresent}):S.Children.only(r),u=ze(o.ref,XM(l));return typeof r=="function"||o.isPresent?S.cloneElement(l,{ref:u}):null},"Presence");It.displayName="Presence";function QM(e){const[t,r]=S.useState(),o=S.useRef(null),l=S.useRef(e),u=S.useRef("none"),c=e?"mounted":"unmounted",[d,p]=KM(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const h=Iu(o.current);u.current=d==="mounted"?h:"none"},[d]),bt(()=>{const h=o.current,m=l.current;if(m!==e){const b=u.current,x=Iu(h);e?p("MOUNT"):x==="none"||h?.display==="none"?p("UNMOUNT"):p(m&&b!==x?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,p]),bt(()=>{if(t){let h;const m=t.ownerDocument.defaultView??window,y=a(x=>{const w=Iu(o.current).includes(CSS.escape(x.animationName));if(x.target===t&&w&&(p("ANIMATION_END"),!l.current)){const R=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=R)})}},"handleAnimationEnd"),b=a(x=>{x.target===t&&(u.current=Iu(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:S.useCallback(h=>{o.current=h?getComputedStyle(h):null,r(h)},[])}}a(QM,"usePresence");function Iu(e){return e?.animationName||"none"}a(Iu,"getAnimationName");function XM(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}a(XM,"getElementRef");var Pp=0;function pm(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??F0()),document.body.insertAdjacentElement("beforeend",e[1]??F0()),Pp++,()=>{Pp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Pp--}},[])}a(pm,"useFocusGuards");function F0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}a(F0,"createFocusGuard");var lr=a(function(){return lr=Object.assign||a(function(t){for(var r,o=1,l=arguments.length;o<l;o++){r=arguments[o];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(t[u]=r[u])}return t},"__assign2"),lr.apply(this,arguments)},"__assign");function lx(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(r[o[l]]=e[o[l]]);return r}a(lx,"__rest");function WM(e,t,r){if(r||arguments.length===2)for(var o=0,l=t.length,u;o<l;o++)(u||!(o in t))&&(u||(u=Array.prototype.slice.call(t,0,o)),u[o]=t[o]);return e.concat(u||Array.prototype.slice.call(t))}a(WM,"__spreadArray");var Wu="right-scroll-bar-position",Zu="width-before-scroll-bar",ZM="with-scroll-bars-hidden",JM="--removed-body-scroll-bar-size";function Lp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}a(Lp,"assignRef");function e_(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var l=r.value;l!==o&&(r.value=o,r.callback(o,l))}}}})[0];return r.callback=t,r.facade}a(e_,"useCallbackRef");var t_=typeof window<"u"?S.useLayoutEffect:S.useEffect,q0=new WeakMap;function n_(e,t){var r=e_(null,function(o){return e.forEach(function(l){return Lp(l,o)})});return t_(function(){var o=q0.get(r);if(o){var l=new Set(o),u=new Set(e),c=r.current;l.forEach(function(d){u.has(d)||Lp(d,null)}),u.forEach(function(d){l.has(d)||Lp(d,c)})}q0.set(r,e)},[e]),r}a(n_,"useMergeRefs");function r_(e){return e}a(r_,"ItoI");function i_(e,t){t===void 0&&(t=r_);var r=[],o=!1,l={read:a(function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},"read"),useMedium:a(function(u){var c=t(u,o);return r.push(c),function(){r=r.filter(function(d){return d!==c})}},"useMedium"),assignSyncMedium:a(function(u){for(o=!0;r.length;){var c=r;r=[],c.forEach(u)}r={push:a(function(d){return u(d)},"push"),filter:a(function(){return r},"filter")}},"assignSyncMedium"),assignMedium:a(function(u){o=!0;var c=[];if(r.length){var d=r;r=[],d.forEach(u),c=r}var p=a(function(){var m=c;c=[],m.forEach(u)},"executeQueue"),h=a(function(){return Promise.resolve().then(p)},"cycle");h(),r={push:a(function(m){c.push(m),h()},"push"),filter:a(function(m){return c=c.filter(m),r},"filter")}},"assignMedium")};return l}a(i_,"innerCreateMedium");function o_(e){e===void 0&&(e={});var t=i_(null);return t.options=lr({async:!0,ssr:!1},e),t}a(o_,"createSidecarMedium");var sx=a(function(e){var t=e.sideCar,r=lx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return S.createElement(o,lr({},r))},"SideCar$1");sx.isSideCarExport=!0;function a_(e,t){return e.useMedium(t),sx}a(a_,"exportSidecar");var ux=o_(),zp=a(function(){},"nothing"),_c=S.forwardRef(function(e,t){var r=S.useRef(null),o=S.useState({onScrollCapture:zp,onWheelCapture:zp,onTouchMoveCapture:zp}),l=o[0],u=o[1],c=e.forwardProps,d=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,y=e.shards,b=e.sideCar,x=e.noRelative,E=e.noIsolation,w=e.inert,R=e.allowPinchZoom,C=e.as,A=C===void 0?"div":C,k=e.gapMode,z=lx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=b,N=n_([r,t]),j=lr(lr({},z),l);return S.createElement(S.Fragment,null,m&&S.createElement(L,{sideCar:ux,removeScrollBar:h,shards:y,noRelative:x,noIsolation:E,inert:w,setCallbacks:u,allowPinchZoom:!!R,lockRef:r,gapMode:k}),c?S.cloneElement(S.Children.only(d),lr(lr({},j),{ref:N})):S.createElement(A,lr({},j,{className:p,ref:N}),d))});_c.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_c.classNames={fullWidth:Zu,zeroRight:Wu};var l_=a(function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__},"getNonce");function s_(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l_();return t&&e.setAttribute("nonce",t),e}a(s_,"makeStyleTag");function u_(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}a(u_,"injectStyles");function c_(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}a(c_,"insertStyleTag");var f_=a(function(){var e=0,t=null;return{add:a(function(r){e==0&&(t=s_())&&(u_(t,r),c_(t)),e++},"add"),remove:a(function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)},"remove")}},"stylesheetSingleton"),d_=a(function(){var e=f_();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},"styleHookSingleton"),cx=a(function(){var e=d_(),t=a(function(r){var o=r.styles,l=r.dynamic;return e(o,l),null},"Sheet");return t},"styleSingleton"),p_={left:0,top:0,right:0,gap:0},Ip=a(function(e){return parseInt(e||"",10)||0},"parse$1"),h_=a(function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],l=t[e==="padding"?"paddingRight":"marginRight"];return[Ip(r),Ip(o),Ip(l)]},"getOffset"),m_=a(function(e){if(e===void 0&&(e="margin"),typeof window>"u")return p_;var t=h_(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}},"getGapWidth"),g_=cx(),sa="data-scroll-locked",y_=a(function(e,t,r,o){var l=e.left,u=e.top,c=e.right,d=e.gap;return r===void 0&&(r="margin"),`
48
+ `+s.stack}}a($g,"getStackByFiberInDevAndProd");function En(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}a(En,"getToStringValue");function Yg(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}a(Yg,"isCheckable");function tO(n){var i=Yg(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),f=""+n[i];if(!n.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var g=s.get,v=s.set;return Object.defineProperty(n,i,{configurable:!0,get:a(function(){return g.call(this)},"get"),set:a(function(T){f=""+T,v.call(this,T)},"set")}),Object.defineProperty(n,i,{enumerable:s.enumerable}),{getValue:a(function(){return f},"getValue"),setValue:a(function(T){f=""+T},"setValue"),stopTracking:a(function(){n._valueTracker=null,delete n[i]},"stopTracking")}}}a(tO,"trackValueOnNode");function Ms(n){n._valueTracker||(n._valueTracker=tO(n))}a(Ms,"track");function Kg(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var s=i.getValue(),f="";return n&&(f=Yg(n)?n.checked?"true":"false":n.value),n=f,n!==s?(i.setValue(n),!0):!1}a(Kg,"updateValueIfChanged");function _s(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}a(_s,"getActiveElement");var nO=/[\n"\\]/g;function Cn(n){return n.replace(nO,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}a(Cn,"escapeSelectorAttributeValueInsideDoubleQuotes");function Ef(n,i,s,f,g,v,T,_){n.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.type=T:n.removeAttribute("type"),i!=null?T==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+En(i)):n.value!==""+En(i)&&(n.value=""+En(i)):T!=="submit"&&T!=="reset"||n.removeAttribute("value"),i!=null?Cf(n,T,En(i)):s!=null?Cf(n,T,En(s)):f!=null&&n.removeAttribute("value"),g==null&&v!=null&&(n.defaultChecked=!!v),g!=null&&(n.checked=g&&typeof g!="function"&&typeof g!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?n.name=""+En(_):n.removeAttribute("name")}a(Ef,"updateInput");function Qg(n,i,s,f,g,v,T,_){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.type=v),i!=null||s!=null){if(!(v!=="submit"&&v!=="reset"||i!=null))return;s=s!=null?""+En(s):"",i=i!=null?""+En(i):s,_||i===n.value||(n.value=i),n.defaultValue=i}f=f??g,f=typeof f!="function"&&typeof f!="symbol"&&!!f,n.checked=_?n.checked:!!f,n.defaultChecked=!!f,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T)}a(Qg,"initInput");function Cf(n,i,s){i==="number"&&_s(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}a(Cf,"setDefaultValue");function So(n,i,s,f){if(n=n.options,i){i={};for(var g=0;g<s.length;g++)i["$"+s[g]]=!0;for(s=0;s<n.length;s++)g=i.hasOwnProperty("$"+n[s].value),n[s].selected!==g&&(n[s].selected=g),g&&f&&(n[s].defaultSelected=!0)}else{for(s=""+En(s),i=null,g=0;g<n.length;g++){if(n[g].value===s){n[g].selected=!0,f&&(n[g].defaultSelected=!0);return}i!==null||n[g].disabled||(i=n[g])}i!==null&&(i.selected=!0)}}a(So,"updateOptions");function Xg(n,i,s){if(i!=null&&(i=""+En(i),i!==n.value&&(n.value=i),s==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=s!=null?""+En(s):""}a(Xg,"updateTextarea");function Wg(n,i,s,f){if(i==null){if(f!=null){if(s!=null)throw Error(o(92));if(ae(f)){if(1<f.length)throw Error(o(93));f=f[0]}s=f}s==null&&(s=""),i=s}s=En(i),n.defaultValue=s,f=n.textContent,f===s&&f!==""&&f!==null&&(n.value=f)}a(Wg,"initTextarea");function xo(n,i){if(i){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=i;return}}n.textContent=i}a(xo,"setTextContent");var rO=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Zg(n,i,s){var f=i.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?f?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":f?n.setProperty(i,s):typeof s!="number"||s===0||rO.has(i)?i==="float"?n.cssFloat=s:n[i]=(""+s).trim():n[i]=s+"px"}a(Zg,"setValueForStyle");function Jg(n,i,s){if(i!=null&&typeof i!="object")throw Error(o(62));if(n=n.style,s!=null){for(var f in s)!s.hasOwnProperty(f)||i!=null&&i.hasOwnProperty(f)||(f.indexOf("--")===0?n.setProperty(f,""):f==="float"?n.cssFloat="":n[f]="");for(var g in i)f=i[g],i.hasOwnProperty(g)&&s[g]!==f&&Zg(n,g,f)}else for(var v in i)i.hasOwnProperty(v)&&Zg(n,v,i[v])}a(Jg,"setValueForStyles");function Tf(n){if(n.indexOf("-")===-1)return!1;switch(n){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}}a(Tf,"isCustomElement");var iO=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),oO=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ks(n){return oO.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}a(ks,"sanitizeURL");var Rf=null;function Of(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}a(Of,"getEventTarget");var wo=null,Eo=null;function ey(n){var i=go(n);if(i&&(n=i.stateNode)){var s=n[Xt]||null;e:switch(n=i.stateNode,i.type){case"input":if(Ef(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),i=s.name,s.type==="radio"&&i!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Cn(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var f=s[i];if(f!==n&&f.form===n.form){var g=f[Xt]||null;if(!g)throw Error(o(90));Ef(f,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(i=0;i<s.length;i++)f=s[i],f.form===n.form&&Kg(f)}break e;case"textarea":Xg(n,s.value,s.defaultValue);break e;case"select":i=s.value,i!=null&&So(n,!!s.multiple,i,!1)}}}a(ey,"restoreStateOfTarget");var Af=!1;function ty(n,i,s){if(Af)return n(i,s);Af=!0;try{var f=n(i);return f}finally{if(Af=!1,(wo!==null||Eo!==null)&&(gu(),wo&&(i=wo,n=Eo,Eo=wo=null,ey(i),n)))for(i=0;i<n.length;i++)ey(n[i])}}a(ty,"batchedUpdates$1");function Ia(n,i){var s=n.stateNode;if(s===null)return null;var f=s[Xt]||null;if(f===null)return null;s=f[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(n=n.type,f=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!f;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(o(231,i,typeof s));return s}a(Ia,"getListener");var Er=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mf=!1;if(Er)try{var ja={};Object.defineProperty(ja,"passive",{get:a(function(){Mf=!0},"get")}),window.addEventListener("test",ja,ja),window.removeEventListener("test",ja,ja)}catch{Mf=!1}var Kr=null,_f=null,Ds=null;function ny(){if(Ds)return Ds;var n,i=_f,s=i.length,f,g="value"in Kr?Kr.value:Kr.textContent,v=g.length;for(n=0;n<s&&i[n]===g[n];n++);var T=s-n;for(f=1;f<=T&&i[s-f]===g[v-f];f++);return Ds=g.slice(n,1<f?1-f:void 0)}a(ny,"getData");function Ns(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}a(Ns,"getEventCharCode");function Ps(){return!0}a(Ps,"functionThatReturnsTrue");function ry(){return!1}a(ry,"functionThatReturnsFalse");function Wt(n){function i(s,f,g,v,T){this._reactName=s,this._targetInst=g,this.type=f,this.nativeEvent=v,this.target=T,this.currentTarget=null;for(var _ in n)n.hasOwnProperty(_)&&(s=n[_],this[_]=s?s(v):v[_]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Ps:ry,this.isPropagationStopped=ry,this}return a(i,"SyntheticBaseEvent"),m(i.prototype,{preventDefault:a(function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ps)},"preventDefault"),stopPropagation:a(function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ps)},"stopPropagation"),persist:a(function(){},"persist"),isPersistent:Ps}),i}a(Wt,"createSyntheticEvent");var _i={eventPhase:0,bubbles:0,cancelable:0,timeStamp:a(function(n){return n.timeStamp||Date.now()},"timeStamp"),defaultPrevented:0,isTrusted:0},Ls=Wt(_i),Ua=m({},_i,{view:0,detail:0}),aO=Wt(Ua),kf,Df,Ba,zs=m({},Ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pf,button:0,buttons:0,relatedTarget:a(function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},"relatedTarget"),movementX:a(function(n){return"movementX"in n?n.movementX:(n!==Ba&&(Ba&&n.type==="mousemove"?(kf=n.screenX-Ba.screenX,Df=n.screenY-Ba.screenY):Df=kf=0,Ba=n),kf)},"movementX"),movementY:a(function(n){return"movementY"in n?n.movementY:Df},"movementY")}),iy=Wt(zs),lO=m({},zs,{dataTransfer:0}),sO=Wt(lO),uO=m({},Ua,{relatedTarget:0}),Nf=Wt(uO),cO=m({},_i,{animationName:0,elapsedTime:0,pseudoElement:0}),fO=Wt(cO),dO=m({},_i,{clipboardData:a(function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData},"clipboardData")}),hO=Wt(dO),pO=m({},_i,{data:0}),oy=Wt(pO),mO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gO={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vO(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=yO[n])?!!i[n]:!1}a(vO,"modifierStateGetter");function Pf(){return vO}a(Pf,"getEventModifierState");var bO=m({},Ua,{key:a(function(n){if(n.key){var i=mO[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Ns(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?gO[n.keyCode]||"Unidentified":""},"key"),code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pf,charCode:a(function(n){return n.type==="keypress"?Ns(n):0},"charCode"),keyCode:a(function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},"keyCode"),which:a(function(n){return n.type==="keypress"?Ns(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0},"which")}),SO=Wt(bO),xO=m({},zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ay=Wt(xO),wO=m({},Ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pf}),EO=Wt(wO),CO=m({},_i,{propertyName:0,elapsedTime:0,pseudoElement:0}),TO=Wt(CO),RO=m({},zs,{deltaX:a(function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},"deltaX"),deltaY:a(function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},"deltaY"),deltaZ:0,deltaMode:0}),OO=Wt(RO),AO=m({},_i,{newState:0,oldState:0}),MO=Wt(AO),_O=[9,13,27,32],Lf=Er&&"CompositionEvent"in window,Ha=null;Er&&"documentMode"in document&&(Ha=document.documentMode);var kO=Er&&"TextEvent"in window&&!Ha,ly=Er&&(!Lf||Ha&&8<Ha&&11>=Ha),sy=" ",uy=!1;function cy(n,i){switch(n){case"keyup":return _O.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}a(cy,"isFallbackCompositionEnd");function fy(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}a(fy,"getDataFromCustomEvent");var Co=!1;function DO(n,i){switch(n){case"compositionend":return fy(i);case"keypress":return i.which!==32?null:(uy=!0,sy);case"textInput":return n=i.data,n===sy&&uy?null:n;default:return null}}a(DO,"getNativeBeforeInputChars");function NO(n,i){if(Co)return n==="compositionend"||!Lf&&cy(n,i)?(n=ny(),Ds=_f=Kr=null,Co=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return ly&&i.locale!=="ko"?null:i.data;default:return null}}a(NO,"getFallbackBeforeInputChars");var PO={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dy(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!PO[n.type]:i==="textarea"}a(dy,"isTextInputElement");function hy(n,i,s,f){wo?Eo?Eo.push(f):Eo=[f]:wo=f,i=wu(i,"onChange"),0<i.length&&(s=new Ls("onChange","change",null,s,f),n.push({event:s,listeners:i}))}a(hy,"createAndAccumulateChangeEvent");var Fa=null,qa=null;function LO(n){Yb(n,0)}a(LO,"runEventInBatch");function Is(n){var i=za(n);if(Kg(i))return n}a(Is,"getInstIfValueChanged");function py(n,i){if(n==="change")return i}a(py,"getTargetInstForChangeEvent");var my=!1;if(Er){var zf;if(Er){var If="oninput"in document;if(!If){var gy=document.createElement("div");gy.setAttribute("oninput","return;"),If=typeof gy.oninput=="function"}zf=If}else zf=!1;my=zf&&(!document.documentMode||9<document.documentMode)}function yy(){Fa&&(Fa.detachEvent("onpropertychange",vy),qa=Fa=null)}a(yy,"stopWatchingForValueChange");function vy(n){if(n.propertyName==="value"&&Is(qa)){var i=[];hy(i,qa,n,Of(n)),ty(LO,i)}}a(vy,"handlePropertyChange");function zO(n,i,s){n==="focusin"?(yy(),Fa=i,qa=s,Fa.attachEvent("onpropertychange",vy)):n==="focusout"&&yy()}a(zO,"handleEventsForInputEventPolyfill");function IO(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Is(qa)}a(IO,"getTargetInstForInputEventPolyfill");function jO(n,i){if(n==="click")return Is(i)}a(jO,"getTargetInstForClickEvent");function UO(n,i){if(n==="input"||n==="change")return Is(i)}a(UO,"getTargetInstForInputOrChangeEvent");function BO(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}a(BO,"is");var un=typeof Object.is=="function"?Object.is:BO;function Va(n,i){if(un(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var s=Object.keys(n),f=Object.keys(i);if(s.length!==f.length)return!1;for(f=0;f<s.length;f++){var g=s[f];if(!qe.call(i,g)||!un(n[g],i[g]))return!1}return!0}a(Va,"shallowEqual");function by(n){for(;n&&n.firstChild;)n=n.firstChild;return n}a(by,"getLeafNode");function Sy(n,i){var s=by(n);n=0;for(var f;s;){if(s.nodeType===3){if(f=n+s.textContent.length,n<=i&&f>=i)return{node:s,offset:i-n};n=f}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=by(s)}}a(Sy,"getNodeForCharacterOffset");function xy(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?xy(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}a(xy,"containsNode");function wy(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=_s(n.document);i instanceof n.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)n=i.contentWindow;else break;i=_s(n.document)}return i}a(wy,"getActiveElementDeep");function jf(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}a(jf,"hasSelectionCapabilities");var HO=Er&&"documentMode"in document&&11>=document.documentMode,To=null,Uf=null,Ga=null,Bf=!1;function Ey(n,i,s){var f=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Bf||To==null||To!==_s(f)||(f=To,"selectionStart"in f&&jf(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),Ga&&Va(Ga,f)||(Ga=f,f=wu(Uf,"onSelect"),0<f.length&&(i=new Ls("onSelect","select",null,i,s),n.push({event:i,listeners:f}),i.target=To)))}a(Ey,"constructSelectEvent");function ki(n,i){var s={};return s[n.toLowerCase()]=i.toLowerCase(),s["Webkit"+n]="webkit"+i,s["Moz"+n]="moz"+i,s}a(ki,"makePrefixMap");var Ro={animationend:ki("Animation","AnimationEnd"),animationiteration:ki("Animation","AnimationIteration"),animationstart:ki("Animation","AnimationStart"),transitionrun:ki("Transition","TransitionRun"),transitionstart:ki("Transition","TransitionStart"),transitioncancel:ki("Transition","TransitionCancel"),transitionend:ki("Transition","TransitionEnd")},Hf={},Cy={};Er&&(Cy=document.createElement("div").style,"AnimationEvent"in window||(delete Ro.animationend.animation,delete Ro.animationiteration.animation,delete Ro.animationstart.animation),"TransitionEvent"in window||delete Ro.transitionend.transition);function Di(n){if(Hf[n])return Hf[n];if(!Ro[n])return n;var i=Ro[n],s;for(s in i)if(i.hasOwnProperty(s)&&s in Cy)return Hf[n]=i[s];return n}a(Di,"getVendorPrefixedEventName");var Ty=Di("animationend"),Ry=Di("animationiteration"),Oy=Di("animationstart"),FO=Di("transitionrun"),qO=Di("transitionstart"),VO=Di("transitioncancel"),Ay=Di("transitionend"),My=new Map,Ff="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ff.push("scrollEnd");function Un(n,i){My.set(n,i),Mi(i,[n])}a(Un,"registerSimpleEvent");var _y=new WeakMap;function Tn(n,i){if(typeof n=="object"&&n!==null){var s=_y.get(n);return s!==void 0?s:(i={value:n,source:i,stack:$g(i)},_y.set(n,i),i)}return{value:n,source:i,stack:$g(i)}}a(Tn,"createCapturedValueAtFiber");var Rn=[],Oo=0,qf=0;function js(){for(var n=Oo,i=qf=Oo=0;i<n;){var s=Rn[i];Rn[i++]=null;var f=Rn[i];Rn[i++]=null;var g=Rn[i];Rn[i++]=null;var v=Rn[i];if(Rn[i++]=null,f!==null&&g!==null){var T=f.pending;T===null?g.next=g:(g.next=T.next,T.next=g),f.pending=g}v!==0&&ky(s,g,v)}}a(js,"finishQueueingConcurrentUpdates");function Us(n,i,s,f){Rn[Oo++]=n,Rn[Oo++]=i,Rn[Oo++]=s,Rn[Oo++]=f,qf|=f,n.lanes|=f,n=n.alternate,n!==null&&(n.lanes|=f)}a(Us,"enqueueUpdate$1");function Vf(n,i,s,f){return Us(n,i,s,f),Bs(n)}a(Vf,"enqueueConcurrentHookUpdate");function Ao(n,i){return Us(n,null,null,i),Bs(n)}a(Ao,"enqueueConcurrentRenderForLane");function ky(n,i,s){n.lanes|=s;var f=n.alternate;f!==null&&(f.lanes|=s);for(var g=!1,v=n.return;v!==null;)v.childLanes|=s,f=v.alternate,f!==null&&(f.childLanes|=s),v.tag===22&&(n=v.stateNode,n===null||n._visibility&1||(g=!0)),n=v,v=v.return;return n.tag===3?(v=n.stateNode,g&&i!==null&&(g=31-ke(s),n=v.hiddenUpdates,f=n[g],f===null?n[g]=[i]:f.push(i),i.lane=s|536870912),v):null}a(ky,"markUpdateLaneFromFiberToRoot");function Bs(n){if(50<gl)throw gl=0,Xd=null,Error(o(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}a(Bs,"getRootForUpdatedFiber");var Mo={};function GO(n,i,s,f){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}a(GO,"FiberNode");function cn(n,i,s,f){return new GO(n,i,s,f)}a(cn,"createFiberImplClass");function Gf(n){return n=n.prototype,!(!n||!n.isReactComponent)}a(Gf,"shouldConstruct");function Cr(n,i){var s=n.alternate;return s===null?(s=cn(n.tag,i,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=i,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,i=n.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}a(Cr,"createWorkInProgress");function Dy(n,i){n.flags&=65011714;var s=n.alternate;return s===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,i=s.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}a(Dy,"resetWorkInProgress");function Hs(n,i,s,f,g,v){var T=0;if(f=n,typeof n=="function")Gf(n)&&(T=1);else if(typeof n=="string")T=YA(n,s,ne.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case W:return n=cn(31,s,i,g),n.elementType=W,n.lanes=v,n;case E:return Ni(s.children,g,v,i);case w:T=8,g|=24;break;case R:return n=cn(12,s,i,g|2),n.elementType=R,n.lanes=v,n;case L:return n=cn(13,s,i,g),n.elementType=L,n.lanes=v,n;case N:return n=cn(19,s,i,g),n.elementType=N,n.lanes=v,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case C:case k:T=10;break e;case A:T=9;break e;case z:T=11;break e;case j:T=14;break e;case $:T=16,f=null;break e}T=29,s=Error(o(130,n===null?"null":typeof n,"")),f=null}return i=cn(T,s,i,g),i.elementType=n,i.type=f,i.lanes=v,i}a(Hs,"createFiberFromTypeAndProps");function Ni(n,i,s,f){return n=cn(7,n,f,i),n.lanes=s,n}a(Ni,"createFiberFromFragment");function $f(n,i,s){return n=cn(6,n,null,i),n.lanes=s,n}a($f,"createFiberFromText");function Yf(n,i,s){return i=cn(4,n.children!==null?n.children:[],n.key,i),i.lanes=s,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}a(Yf,"createFiberFromPortal");var _o=[],ko=0,Fs=null,qs=0,On=[],An=0,Pi=null,Tr=1,Rr="";function Li(n,i){_o[ko++]=qs,_o[ko++]=Fs,Fs=n,qs=i}a(Li,"pushTreeFork");function Ny(n,i,s){On[An++]=Tr,On[An++]=Rr,On[An++]=Pi,Pi=n;var f=Tr;n=Rr;var g=32-ke(f)-1;f&=~(1<<g),s+=1;var v=32-ke(i)+g;if(30<v){var T=g-g%5;v=(f&(1<<T)-1).toString(32),f>>=T,g-=T,Tr=1<<32-ke(i)+g|s<<g|f,Rr=v+n}else Tr=1<<v|s<<g|f,Rr=n}a(Ny,"pushTreeId");function Kf(n){n.return!==null&&(Li(n,1),Ny(n,1,0))}a(Kf,"pushMaterializedTreeId");function Qf(n){for(;n===Fs;)Fs=_o[--ko],_o[ko]=null,qs=_o[--ko],_o[ko]=null;for(;n===Pi;)Pi=On[--An],On[An]=null,Rr=On[--An],On[An]=null,Tr=On[--An],On[An]=null}a(Qf,"popTreeContext");var Vt=null,pt=null,Xe=!1,zi=null,Jn=!1,Xf=Error(o(519));function Ii(n){var i=Error(o(418,""));throw Ka(Tn(i,n)),Xf}a(Ii,"throwOnHydrationMismatch");function Py(n){var i=n.stateNode,s=n.type,f=n.memoizedProps;switch(i[jt]=n,i[Xt]=f,s){case"dialog":Ge("cancel",i),Ge("close",i);break;case"iframe":case"object":case"embed":Ge("load",i);break;case"video":case"audio":for(s=0;s<vl.length;s++)Ge(vl[s],i);break;case"source":Ge("error",i);break;case"img":case"image":case"link":Ge("error",i),Ge("load",i);break;case"details":Ge("toggle",i);break;case"input":Ge("invalid",i),Qg(i,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0),Ms(i);break;case"select":Ge("invalid",i);break;case"textarea":Ge("invalid",i),Wg(i,f.value,f.defaultValue,f.children),Ms(i)}s=f.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||i.textContent===""+s||f.suppressHydrationWarning===!0||Wb(i.textContent,s)?(f.popover!=null&&(Ge("beforetoggle",i),Ge("toggle",i)),f.onScroll!=null&&Ge("scroll",i),f.onScrollEnd!=null&&Ge("scrollend",i),f.onClick!=null&&(i.onclick=Eu),i=!0):i=!1,i||Ii(n)}a(Py,"prepareToHydrateHostInstance");function Ly(n){for(Vt=n.return;Vt;)switch(Vt.tag){case 5:case 13:Jn=!1;return;case 27:case 3:Jn=!0;return;default:Vt=Vt.return}}a(Ly,"popToNextHostParent");function $a(n){if(n!==Vt)return!1;if(!Xe)return Ly(n),Xe=!0,!1;var i=n.tag,s;if((s=i!==3&&i!==27)&&((s=i===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||dh(n.type,n.memoizedProps)),s=!s),s&&pt&&Ii(n),Ly(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8)if(s=n.data,s==="/$"){if(i===0){pt=Hn(n.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++;n=n.nextSibling}pt=null}}else i===27?(i=pt,ci(n.type)?(n=gh,gh=null,pt=n):pt=i):pt=Vt?Hn(n.stateNode.nextSibling):null;return!0}a($a,"popHydrationState");function Ya(){pt=Vt=null,Xe=!1}a(Ya,"resetHydrationState");function zy(){var n=zi;return n!==null&&(en===null?en=n:en.push.apply(en,n),zi=null),n}a(zy,"upgradeHydrationErrorsToRecoverable");function Ka(n){zi===null?zi=[n]:zi.push(n)}a(Ka,"queueHydrationError");var Wf=Y(null),ji=null,Or=null;function Qr(n,i,s){M(Wf,i._currentValue),i._currentValue=s}a(Qr,"pushProvider");function Ar(n){n._currentValue=Wf.current,de(Wf)}a(Ar,"popProvider");function Zf(n,i,s){for(;n!==null;){var f=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,f!==null&&(f.childLanes|=i)):f!==null&&(f.childLanes&i)!==i&&(f.childLanes|=i),n===s)break;n=n.return}}a(Zf,"scheduleContextWorkOnParentPath");function Jf(n,i,s,f){var g=n.child;for(g!==null&&(g.return=n);g!==null;){var v=g.dependencies;if(v!==null){var T=g.child;v=v.firstContext;e:for(;v!==null;){var _=v;v=g;for(var P=0;P<i.length;P++)if(_.context===i[P]){v.lanes|=s,_=v.alternate,_!==null&&(_.lanes|=s),Zf(v.return,s,n),f||(T=null);break e}v=_.next}}else if(g.tag===18){if(T=g.return,T===null)throw Error(o(341));T.lanes|=s,v=T.alternate,v!==null&&(v.lanes|=s),Zf(T,s,n),T=null}else T=g.child;if(T!==null)T.return=g;else for(T=g;T!==null;){if(T===n){T=null;break}if(g=T.sibling,g!==null){g.return=T.return,T=g;break}T=T.return}g=T}}a(Jf,"propagateContextChanges");function Qa(n,i,s,f){n=null;for(var g=i,v=!1;g!==null;){if(!v){if((g.flags&524288)!==0)v=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var T=g.alternate;if(T===null)throw Error(o(387));if(T=T.memoizedProps,T!==null){var _=g.type;un(g.pendingProps.value,T.value)||(n!==null?n.push(_):n=[_])}}else if(g===K.current){if(T=g.alternate,T===null)throw Error(o(387));T.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(n!==null?n.push(Cl):n=[Cl])}g=g.return}n!==null&&Jf(i,n,s,f),i.flags|=262144}a(Qa,"propagateParentContextChanges");function Vs(n){for(n=n.firstContext;n!==null;){if(!un(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}a(Vs,"checkIfContextChanged");function Ui(n){ji=n,Or=null,n=n.dependencies,n!==null&&(n.firstContext=null)}a(Ui,"prepareToReadContext");function Ut(n){return Iy(ji,n)}a(Ut,"readContext");function Gs(n,i){return ji===null&&Ui(n),Iy(n,i)}a(Gs,"readContextDuringReconciliation");function Iy(n,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,next:null},Or===null){if(n===null)throw Error(o(308));Or=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else Or=Or.next=i;return s}a(Iy,"readContextForConsumer");var $O=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:a(function(s,f){n.push(f)},"addEventListener")};this.abort=function(){i.aborted=!0,n.forEach(function(s){return s()})}},YO=e.unstable_scheduleCallback,KO=e.unstable_NormalPriority,Rt={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ed(){return{controller:new $O,data:new Map,refCount:0}}a(ed,"createCache");function Xa(n){n.refCount--,n.refCount===0&&YO(KO,function(){n.controller.abort()})}a(Xa,"releaseCache");var Wa=null,td=0,Do=0,No=null;function QO(n,i){if(Wa===null){var s=Wa=[];td=0,Do=rh(),No={status:"pending",value:void 0,then:a(function(f){s.push(f)},"then")}}return td++,i.then(jy,jy),i}a(QO,"entangleAsyncAction");function jy(){if(--td===0&&Wa!==null){No!==null&&(No.status="fulfilled");var n=Wa;Wa=null,Do=0,No=null;for(var i=0;i<n.length;i++)(0,n[i])()}}a(jy,"pingEngtangledActionScope");function XO(n,i){var s=[],f={status:"pending",value:null,reason:null,then:a(function(g){s.push(g)},"then")};return n.then(function(){f.status="fulfilled",f.value=i;for(var g=0;g<s.length;g++)(0,s[g])(i)},function(g){for(f.status="rejected",f.reason=g,g=0;g<s.length;g++)(0,s[g])(void 0)}),f}a(XO,"chainThenableValue");var Uy=I.S;I.S=function(n,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&QO(n,i),Uy!==null&&Uy(n,i)};var Bi=Y(null);function nd(){var n=Bi.current;return n!==null?n:at.pooledCache}a(nd,"peekCacheFromPool");function $s(n,i){i===null?M(Bi,Bi.current):M(Bi,i.pool)}a($s,"pushTransition");function By(){var n=nd();return n===null?null:{parent:Rt._currentValue,pool:n}}a(By,"getSuspendedCache");var Za=Error(o(460)),Hy=Error(o(474)),Ys=Error(o(542)),rd={then:a(function(){},"then")};function Fy(n){return n=n.status,n==="fulfilled"||n==="rejected"}a(Fy,"isThenableResolved");function Ks(){}a(Ks,"noop$3");function qy(n,i,s){switch(s=n[s],s===void 0?n.push(i):s!==i&&(i.then(Ks,Ks),i=s),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,Gy(n),n;default:if(typeof i.status=="string")i.then(Ks,Ks);else{if(n=at,n!==null&&100<n.shellSuspendCounter)throw Error(o(482));n=i,n.status="pending",n.then(function(f){if(i.status==="pending"){var g=i;g.status="fulfilled",g.value=f}},function(f){if(i.status==="pending"){var g=i;g.status="rejected",g.reason=f}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,Gy(n),n}throw Ja=i,Za}}a(qy,"trackUsedThenable");var Ja=null;function Vy(){if(Ja===null)throw Error(o(459));var n=Ja;return Ja=null,n}a(Vy,"getSuspendedThenable");function Gy(n){if(n===Za||n===Ys)throw Error(o(483))}a(Gy,"checkIfUseWrappedInAsyncCatch");var Xr=!1;function id(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}a(id,"initializeUpdateQueue");function od(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}a(od,"cloneUpdateQueue");function Wr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}a(Wr,"createUpdate");function Zr(n,i,s){var f=n.updateQueue;if(f===null)return null;if(f=f.shared,(et&2)!==0){var g=f.pending;return g===null?i.next=i:(i.next=g.next,g.next=i),f.pending=i,i=Bs(n),ky(n,null,s),i}return Us(n,f,i,s),Bs(n)}a(Zr,"enqueueUpdate");function el(n,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194048)!==0)){var f=i.lanes;f&=n.pendingLanes,s|=f,i.lanes=s,jg(n,s)}}a(el,"entangleTransitions");function ad(n,i){var s=n.updateQueue,f=n.alternate;if(f!==null&&(f=f.updateQueue,s===f)){var g=null,v=null;if(s=s.firstBaseUpdate,s!==null){do{var T={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};v===null?g=v=T:v=v.next=T,s=s.next}while(s!==null);v===null?g=v=i:v=v.next=i}else g=v=i;s={baseState:f.baseState,firstBaseUpdate:g,lastBaseUpdate:v,shared:f.shared,callbacks:f.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=i:n.next=i,s.lastBaseUpdate=i}a(ad,"enqueueCapturedUpdate");var ld=!1;function tl(){if(ld){var n=No;if(n!==null)throw n}}a(tl,"suspendIfUpdateReadFromEntangledAsyncAction");function nl(n,i,s,f){ld=!1;var g=n.updateQueue;Xr=!1;var v=g.firstBaseUpdate,T=g.lastBaseUpdate,_=g.shared.pending;if(_!==null){g.shared.pending=null;var P=_,F=P.next;P.next=null,T===null?v=F:T.next=F,T=P;var ie=n.alternate;ie!==null&&(ie=ie.updateQueue,_=ie.lastBaseUpdate,_!==T&&(_===null?ie.firstBaseUpdate=F:_.next=F,ie.lastBaseUpdate=P))}if(v!==null){var ue=g.baseState;T=0,ie=F=P=null,_=v;do{var V=_.lane&-536870913,G=V!==_.lane;if(G?(Ye&V)===V:(f&V)===V){V!==0&&V===Do&&(ld=!0),ie!==null&&(ie=ie.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var De=n,Ae=_;V=i;var it=s;switch(Ae.tag){case 1:if(De=Ae.payload,typeof De=="function"){ue=De.call(it,ue,V);break e}ue=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=Ae.payload,V=typeof De=="function"?De.call(it,ue,V):De,V==null)break e;ue=m({},ue,V);break e;case 2:Xr=!0}}V=_.callback,V!==null&&(n.flags|=64,G&&(n.flags|=8192),G=g.callbacks,G===null?g.callbacks=[V]:G.push(V))}else G={lane:V,tag:_.tag,payload:_.payload,callback:_.callback,next:null},ie===null?(F=ie=G,P=ue):ie=ie.next=G,T|=V;if(_=_.next,_===null){if(_=g.shared.pending,_===null)break;G=_,_=G.next,G.next=null,g.lastBaseUpdate=G,g.shared.pending=null}}while(!0);ie===null&&(P=ue),g.baseState=P,g.firstBaseUpdate=F,g.lastBaseUpdate=ie,v===null&&(g.shared.lanes=0),ai|=T,n.lanes=T,n.memoizedState=ue}}a(nl,"processUpdateQueue");function $y(n,i){if(typeof n!="function")throw Error(o(191,n));n.call(i)}a($y,"callCallback");function Yy(n,i){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)$y(s[n],i)}a(Yy,"commitCallbacks");var Po=Y(null),Qs=Y(0);function Ky(n,i){n=Lr,M(Qs,n),M(Po,i),Lr=n|i.baseLanes}a(Ky,"pushHiddenContext");function sd(){M(Qs,Lr),M(Po,Po.current)}a(sd,"reuseHiddenContextOnStack");function ud(){Lr=Qs.current,de(Po),de(Qs)}a(ud,"popHiddenContext");var Jr=0,He=null,nt=null,Et=null,Xs=!1,Lo=!1,Hi=!1,Ws=0,rl=0,zo=null,WO=0;function xt(){throw Error(o(321))}a(xt,"throwInvalidHookError");function cd(n,i){if(i===null)return!1;for(var s=0;s<i.length&&s<n.length;s++)if(!un(n[s],i[s]))return!1;return!0}a(cd,"areHookInputsEqual");function fd(n,i,s,f,g,v){return Jr=v,He=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,I.H=n===null||n.memoizedState===null?kv:Dv,Hi=!1,v=s(f,g),Hi=!1,Lo&&(v=Xy(i,s,f,g)),Qy(n),v}a(fd,"renderWithHooks");function Qy(n){I.H=ru;var i=nt!==null&&nt.next!==null;if(Jr=0,Et=nt=He=null,Xs=!1,rl=0,zo=null,i)throw Error(o(300));n===null||kt||(n=n.dependencies,n!==null&&Vs(n)&&(kt=!0))}a(Qy,"finishRenderingHooks");function Xy(n,i,s,f){He=n;var g=0;do{if(Lo&&(zo=null),rl=0,Lo=!1,25<=g)throw Error(o(301));if(g+=1,Et=nt=null,n.updateQueue!=null){var v=n.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}I.H=iA,v=i(s,f)}while(Lo);return v}a(Xy,"renderWithHooksAgain");function ZO(){var n=I.H,i=n.useState()[0];return i=typeof i.then=="function"?il(i):i,n=n.useState()[0],(nt!==null?nt.memoizedState:null)!==n&&(He.flags|=1024),i}a(ZO,"TransitionAwareHostComponent");function dd(){var n=Ws!==0;return Ws=0,n}a(dd,"checkDidRenderIdHook");function hd(n,i,s){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~s}a(hd,"bailoutHooks");function pd(n){if(Xs){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Xs=!1}Jr=0,Et=nt=He=null,Lo=!1,rl=Ws=0,zo=null}a(pd,"resetHooksOnUnwind");function Zt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?He.memoizedState=Et=n:Et=Et.next=n,Et}a(Zt,"mountWorkInProgressHook");function Ct(){if(nt===null){var n=He.alternate;n=n!==null?n.memoizedState:null}else n=nt.next;var i=Et===null?He.memoizedState:Et.next;if(i!==null)Et=i,nt=n;else{if(n===null)throw He.alternate===null?Error(o(467)):Error(o(310));nt=n,n={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},Et===null?He.memoizedState=Et=n:Et=Et.next=n}return Et}a(Ct,"updateWorkInProgressHook");function md(){return{lastEffect:null,events:null,stores:null,memoCache:null}}a(md,"createFunctionComponentUpdateQueue");function il(n){var i=rl;return rl+=1,zo===null&&(zo=[]),n=qy(zo,n,i),i=He,(Et===null?i.memoizedState:Et.next)===null&&(i=i.alternate,I.H=i===null||i.memoizedState===null?kv:Dv),n}a(il,"useThenable");function Zs(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return il(n);if(n.$$typeof===k)return Ut(n)}throw Error(o(438,String(n)))}a(Zs,"use");function gd(n){var i=null,s=He.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var f=He.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(i={data:f.data.map(function(g){return g.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),s===null&&(s=md(),He.updateQueue=s),s.memoCache=i,s=i.data[i.index],s===void 0)for(s=i.data[i.index]=Array(n),f=0;f<n;f++)s[f]=J;return i.index++,s}a(gd,"useMemoCache");function Mr(n,i){return typeof i=="function"?i(n):i}a(Mr,"basicStateReducer");function Js(n){var i=Ct();return yd(i,nt,n)}a(Js,"updateReducer");function yd(n,i,s){var f=n.queue;if(f===null)throw Error(o(311));f.lastRenderedReducer=s;var g=n.baseQueue,v=f.pending;if(v!==null){if(g!==null){var T=g.next;g.next=v.next,v.next=T}i.baseQueue=g=v,f.pending=null}if(v=n.baseState,g===null)n.memoizedState=v;else{i=g.next;var _=T=null,P=null,F=i,ie=!1;do{var ue=F.lane&-536870913;if(ue!==F.lane?(Ye&ue)===ue:(Jr&ue)===ue){var V=F.revertLane;if(V===0)P!==null&&(P=P.next={lane:0,revertLane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),ue===Do&&(ie=!0);else if((Jr&V)===V){F=F.next,V===Do&&(ie=!0);continue}else ue={lane:0,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},P===null?(_=P=ue,T=v):P=P.next=ue,He.lanes|=V,ai|=V;ue=F.action,Hi&&s(v,ue),v=F.hasEagerState?F.eagerState:s(v,ue)}else V={lane:ue,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},P===null?(_=P=V,T=v):P=P.next=V,He.lanes|=ue,ai|=ue;F=F.next}while(F!==null&&F!==i);if(P===null?T=v:P.next=_,!un(v,n.memoizedState)&&(kt=!0,ie&&(s=No,s!==null)))throw s;n.memoizedState=v,n.baseState=T,n.baseQueue=P,f.lastRenderedState=v}return g===null&&(f.lanes=0),[n.memoizedState,f.dispatch]}a(yd,"updateReducerImpl");function vd(n){var i=Ct(),s=i.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=n;var f=s.dispatch,g=s.pending,v=i.memoizedState;if(g!==null){s.pending=null;var T=g=g.next;do v=n(v,T.action),T=T.next;while(T!==g);un(v,i.memoizedState)||(kt=!0),i.memoizedState=v,i.baseQueue===null&&(i.baseState=v),s.lastRenderedState=v}return[v,f]}a(vd,"rerenderReducer");function Wy(n,i,s){var f=He,g=Ct(),v=Xe;if(v){if(s===void 0)throw Error(o(407));s=s()}else s=i();var T=!un((nt||g).memoizedState,s);T&&(g.memoizedState=s,kt=!0),g=g.queue;var _=ev.bind(null,f,g,n);if(ol(2048,8,_,[n]),g.getSnapshot!==i||T||Et!==null&&Et.memoizedState.tag&1){if(f.flags|=2048,Io(9,eu(),Jy.bind(null,f,g,s,i),null),at===null)throw Error(o(349));v||(Jr&124)!==0||Zy(f,i,s)}return s}a(Wy,"updateSyncExternalStore");function Zy(n,i,s){n.flags|=16384,n={getSnapshot:i,value:s},i=He.updateQueue,i===null?(i=md(),He.updateQueue=i,i.stores=[n]):(s=i.stores,s===null?i.stores=[n]:s.push(n))}a(Zy,"pushStoreConsistencyCheck");function Jy(n,i,s,f){i.value=s,i.getSnapshot=f,tv(i)&&nv(n)}a(Jy,"updateStoreInstance");function ev(n,i,s){return s(function(){tv(i)&&nv(n)})}a(ev,"subscribeToStore");function tv(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!un(n,s)}catch{return!0}}a(tv,"checkIfSnapshotChanged");function nv(n){var i=Ao(n,2);i!==null&&mn(i,n,2)}a(nv,"forceStoreRerender");function bd(n){var i=Zt();if(typeof n=="function"){var s=n;if(n=s(),Hi){Oe(!0);try{s()}finally{Oe(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mr,lastRenderedState:n},i}a(bd,"mountStateImpl");function rv(n,i,s,f){return n.baseState=s,yd(n,nt,typeof f=="function"?f:Mr)}a(rv,"updateOptimisticImpl");function JO(n,i,s,f,g){if(nu(n))throw Error(o(485));if(n=i.action,n!==null){var v={payload:g,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:a(function(T){v.listeners.push(T)},"then")};I.T!==null?s(!0):v.isTransition=!1,f(v),s=i.pending,s===null?(v.next=i.pending=v,iv(i,v)):(v.next=s.next,i.pending=s.next=v)}}a(JO,"dispatchActionState");function iv(n,i){var s=i.action,f=i.payload,g=n.state;if(i.isTransition){var v=I.T,T={};I.T=T;try{var _=s(g,f),P=I.S;P!==null&&P(T,_),ov(n,i,_)}catch(F){Sd(n,i,F)}finally{I.T=v}}else try{v=s(g,f),ov(n,i,v)}catch(F){Sd(n,i,F)}}a(iv,"runActionStateAction");function ov(n,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(f){av(n,i,f)},function(f){return Sd(n,i,f)}):av(n,i,s)}a(ov,"handleActionReturnValue");function av(n,i,s){i.status="fulfilled",i.value=s,lv(i),n.state=s,i=n.pending,i!==null&&(s=i.next,s===i?n.pending=null:(s=s.next,i.next=s,iv(n,s)))}a(av,"onActionSuccess");function Sd(n,i,s){var f=n.pending;if(n.pending=null,f!==null){f=f.next;do i.status="rejected",i.reason=s,lv(i),i=i.next;while(i!==f)}n.action=null}a(Sd,"onActionError");function lv(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}a(lv,"notifyActionListeners");function sv(n,i){return i}a(sv,"actionStateReducer");function uv(n,i){if(Xe){var s=at.formState;if(s!==null){e:{var f=He;if(Xe){if(pt){t:{for(var g=pt,v=Jn;g.nodeType!==8;){if(!v){g=null;break t}if(g=Hn(g.nextSibling),g===null){g=null;break t}}v=g.data,g=v==="F!"||v==="F"?g:null}if(g){pt=Hn(g.nextSibling),f=g.data==="F!";break e}}Ii(f)}f=!1}f&&(i=s[0])}}return s=Zt(),s.memoizedState=s.baseState=i,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sv,lastRenderedState:i},s.queue=f,s=Av.bind(null,He,f),f.dispatch=s,f=bd(!1),v=Td.bind(null,He,!1,f.queue),f=Zt(),g={state:i,dispatch:null,action:n,pending:null},f.queue=g,s=JO.bind(null,He,g,v,s),g.dispatch=s,f.memoizedState=n,[i,s,!1]}a(uv,"mountActionState");function cv(n){var i=Ct();return fv(i,nt,n)}a(cv,"updateActionState");function fv(n,i,s){if(i=yd(n,i,sv)[0],n=Js(Mr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var f=il(i)}catch(T){throw T===Za?Ys:T}else f=i;i=Ct();var g=i.queue,v=g.dispatch;return s!==i.memoizedState&&(He.flags|=2048,Io(9,eu(),eA.bind(null,g,s),null)),[f,v,n]}a(fv,"updateActionStateImpl");function eA(n,i){n.action=i}a(eA,"actionStateActionEffect");function dv(n){var i=Ct(),s=nt;if(s!==null)return fv(i,s,n);Ct(),i=i.memoizedState,s=Ct();var f=s.queue.dispatch;return s.memoizedState=n,[i,f,!1]}a(dv,"rerenderActionState");function Io(n,i,s,f){return n={tag:n,create:s,deps:f,inst:i,next:null},i=He.updateQueue,i===null&&(i=md(),He.updateQueue=i),s=i.lastEffect,s===null?i.lastEffect=n.next=n:(f=s.next,s.next=n,n.next=f,i.lastEffect=n),n}a(Io,"pushSimpleEffect");function eu(){return{destroy:void 0,resource:void 0}}a(eu,"createEffectInstance");function hv(){return Ct().memoizedState}a(hv,"updateRef");function tu(n,i,s,f){var g=Zt();f=f===void 0?null:f,He.flags|=n,g.memoizedState=Io(1|i,eu(),s,f)}a(tu,"mountEffectImpl");function ol(n,i,s,f){var g=Ct();f=f===void 0?null:f;var v=g.memoizedState.inst;nt!==null&&f!==null&&cd(f,nt.memoizedState.deps)?g.memoizedState=Io(i,v,s,f):(He.flags|=n,g.memoizedState=Io(1|i,v,s,f))}a(ol,"updateEffectImpl");function pv(n,i){tu(8390656,8,n,i)}a(pv,"mountEffect");function mv(n,i){ol(2048,8,n,i)}a(mv,"updateEffect");function gv(n,i){return ol(4,2,n,i)}a(gv,"updateInsertionEffect");function yv(n,i){return ol(4,4,n,i)}a(yv,"updateLayoutEffect");function vv(n,i){if(typeof i=="function"){n=n();var s=i(n);return function(){typeof s=="function"?s():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}a(vv,"imperativeHandleEffect");function bv(n,i,s){s=s!=null?s.concat([n]):null,ol(4,4,vv.bind(null,i,n),s)}a(bv,"updateImperativeHandle");function xd(){}a(xd,"mountDebugValue");function Sv(n,i){var s=Ct();i=i===void 0?null:i;var f=s.memoizedState;return i!==null&&cd(i,f[1])?f[0]:(s.memoizedState=[n,i],n)}a(Sv,"updateCallback");function xv(n,i){var s=Ct();i=i===void 0?null:i;var f=s.memoizedState;if(i!==null&&cd(i,f[1]))return f[0];if(f=n(),Hi){Oe(!0);try{n()}finally{Oe(!1)}}return s.memoizedState=[f,i],f}a(xv,"updateMemo");function wd(n,i,s){return s===void 0||(Jr&1073741824)!==0?n.memoizedState=i:(n.memoizedState=s,n=Cb(),He.lanes|=n,ai|=n,s)}a(wd,"mountDeferredValueImpl");function wv(n,i,s,f){return un(s,i)?s:Po.current!==null?(n=wd(n,s,f),un(n,i)||(kt=!0),n):(Jr&42)===0?(kt=!0,n.memoizedState=s):(n=Cb(),He.lanes|=n,ai|=n,i)}a(wv,"updateDeferredValueImpl");function Ev(n,i,s,f,g){var v=Q.p;Q.p=v!==0&&8>v?v:8;var T=I.T,_={};I.T=_,Td(n,!1,i,s);try{var P=g(),F=I.S;if(F!==null&&F(_,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var ie=XO(P,f);al(n,i,ie,pn(n))}else al(n,i,f,pn(n))}catch(ue){al(n,i,{then:a(function(){},"then"),status:"rejected",reason:ue},pn())}finally{Q.p=v,I.T=T}}a(Ev,"startTransition");function tA(){}a(tA,"noop$2");function Ed(n,i,s,f){if(n.tag!==5)throw Error(o(476));var g=Cv(n).queue;Ev(n,g,i,te,s===null?tA:function(){return Tv(n),s(f)})}a(Ed,"startHostTransition");function Cv(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mr,lastRenderedState:te},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mr,lastRenderedState:s},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}a(Cv,"ensureFormComponentIsStateful");function Tv(n){var i=Cv(n).next.queue;al(n,i,{},pn())}a(Tv,"requestFormReset$1");function Cd(){return Ut(Cl)}a(Cd,"useHostTransitionStatus");function Rv(){return Ct().memoizedState}a(Rv,"updateId");function Ov(){return Ct().memoizedState}a(Ov,"updateRefresh");function nA(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var s=pn();n=Wr(s);var f=Zr(i,n,s);f!==null&&(mn(f,i,s),el(f,i,s)),i={cache:ed()},n.payload=i;return}i=i.return}}a(nA,"refreshCache");function rA(n,i,s){var f=pn();s={lane:f,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},nu(n)?Mv(i,s):(s=Vf(n,i,s,f),s!==null&&(mn(s,n,f),_v(s,i,f)))}a(rA,"dispatchReducerAction");function Av(n,i,s){var f=pn();al(n,i,s,f)}a(Av,"dispatchSetState");function al(n,i,s,f){var g={lane:f,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(nu(n))Mv(i,g);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=i.lastRenderedReducer,v!==null))try{var T=i.lastRenderedState,_=v(T,s);if(g.hasEagerState=!0,g.eagerState=_,un(_,T))return Us(n,i,g,0),at===null&&js(),!1}catch{}finally{}if(s=Vf(n,i,g,f),s!==null)return mn(s,n,f),_v(s,i,f),!0}return!1}a(al,"dispatchSetStateInternal");function Td(n,i,s,f){if(f={lane:2,revertLane:rh(),action:f,hasEagerState:!1,eagerState:null,next:null},nu(n)){if(i)throw Error(o(479))}else i=Vf(n,s,f,2),i!==null&&mn(i,n,2)}a(Td,"dispatchOptimisticSetState");function nu(n){var i=n.alternate;return n===He||i!==null&&i===He}a(nu,"isRenderPhaseUpdate");function Mv(n,i){Lo=Xs=!0;var s=n.pending;s===null?i.next=i:(i.next=s.next,s.next=i),n.pending=i}a(Mv,"enqueueRenderPhaseUpdate");function _v(n,i,s){if((s&4194048)!==0){var f=i.lanes;f&=n.pendingLanes,s|=f,i.lanes=s,jg(n,s)}}a(_v,"entangleTransitionUpdate");var ru={readContext:Ut,use:Zs,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useLayoutEffect:xt,useInsertionEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useSyncExternalStore:xt,useId:xt,useHostTransitionStatus:xt,useFormState:xt,useActionState:xt,useOptimistic:xt,useMemoCache:xt,useCacheRefresh:xt},kv={readContext:Ut,use:Zs,useCallback:a(function(n,i){return Zt().memoizedState=[n,i===void 0?null:i],n},"useCallback"),useContext:Ut,useEffect:pv,useImperativeHandle:a(function(n,i,s){s=s!=null?s.concat([n]):null,tu(4194308,4,vv.bind(null,i,n),s)},"useImperativeHandle"),useLayoutEffect:a(function(n,i){return tu(4194308,4,n,i)},"useLayoutEffect"),useInsertionEffect:a(function(n,i){tu(4,2,n,i)},"useInsertionEffect"),useMemo:a(function(n,i){var s=Zt();i=i===void 0?null:i;var f=n();if(Hi){Oe(!0);try{n()}finally{Oe(!1)}}return s.memoizedState=[f,i],f},"useMemo"),useReducer:a(function(n,i,s){var f=Zt();if(s!==void 0){var g=s(i);if(Hi){Oe(!0);try{s(i)}finally{Oe(!1)}}}else g=i;return f.memoizedState=f.baseState=g,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:g},f.queue=n,n=n.dispatch=rA.bind(null,He,n),[f.memoizedState,n]},"useReducer"),useRef:a(function(n){var i=Zt();return n={current:n},i.memoizedState=n},"useRef"),useState:a(function(n){n=bd(n);var i=n.queue,s=Av.bind(null,He,i);return i.dispatch=s,[n.memoizedState,s]},"useState"),useDebugValue:xd,useDeferredValue:a(function(n,i){var s=Zt();return wd(s,n,i)},"useDeferredValue"),useTransition:a(function(){var n=bd(!1);return n=Ev.bind(null,He,n.queue,!0,!1),Zt().memoizedState=n,[!1,n]},"useTransition"),useSyncExternalStore:a(function(n,i,s){var f=He,g=Zt();if(Xe){if(s===void 0)throw Error(o(407));s=s()}else{if(s=i(),at===null)throw Error(o(349));(Ye&124)!==0||Zy(f,i,s)}g.memoizedState=s;var v={value:s,getSnapshot:i};return g.queue=v,pv(ev.bind(null,f,v,n),[n]),f.flags|=2048,Io(9,eu(),Jy.bind(null,f,v,s,i),null),s},"useSyncExternalStore"),useId:a(function(){var n=Zt(),i=at.identifierPrefix;if(Xe){var s=Rr,f=Tr;s=(f&~(1<<32-ke(f)-1)).toString(32)+s,i="«"+i+"R"+s,s=Ws++,0<s&&(i+="H"+s.toString(32)),i+="»"}else s=WO++,i="«"+i+"r"+s.toString(32)+"»";return n.memoizedState=i},"useId"),useHostTransitionStatus:Cd,useFormState:uv,useActionState:uv,useOptimistic:a(function(n){var i=Zt();i.memoizedState=i.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=Td.bind(null,He,!0,s),s.dispatch=i,[n,i]},"useOptimistic"),useMemoCache:gd,useCacheRefresh:a(function(){return Zt().memoizedState=nA.bind(null,He)},"useCacheRefresh")},Dv={readContext:Ut,use:Zs,useCallback:Sv,useContext:Ut,useEffect:mv,useImperativeHandle:bv,useInsertionEffect:gv,useLayoutEffect:yv,useMemo:xv,useReducer:Js,useRef:hv,useState:a(function(){return Js(Mr)},"useState"),useDebugValue:xd,useDeferredValue:a(function(n,i){var s=Ct();return wv(s,nt.memoizedState,n,i)},"useDeferredValue"),useTransition:a(function(){var n=Js(Mr)[0],i=Ct().memoizedState;return[typeof n=="boolean"?n:il(n),i]},"useTransition"),useSyncExternalStore:Wy,useId:Rv,useHostTransitionStatus:Cd,useFormState:cv,useActionState:cv,useOptimistic:a(function(n,i){var s=Ct();return rv(s,nt,n,i)},"useOptimistic"),useMemoCache:gd,useCacheRefresh:Ov},iA={readContext:Ut,use:Zs,useCallback:Sv,useContext:Ut,useEffect:mv,useImperativeHandle:bv,useInsertionEffect:gv,useLayoutEffect:yv,useMemo:xv,useReducer:vd,useRef:hv,useState:a(function(){return vd(Mr)},"useState"),useDebugValue:xd,useDeferredValue:a(function(n,i){var s=Ct();return nt===null?wd(s,n,i):wv(s,nt.memoizedState,n,i)},"useDeferredValue"),useTransition:a(function(){var n=vd(Mr)[0],i=Ct().memoizedState;return[typeof n=="boolean"?n:il(n),i]},"useTransition"),useSyncExternalStore:Wy,useId:Rv,useHostTransitionStatus:Cd,useFormState:dv,useActionState:dv,useOptimistic:a(function(n,i){var s=Ct();return nt!==null?rv(s,nt,n,i):(s.baseState=n,[n,s.queue.dispatch])},"useOptimistic"),useMemoCache:gd,useCacheRefresh:Ov},jo=null,ll=0;function iu(n){var i=ll;return ll+=1,jo===null&&(jo=[]),qy(jo,n,i)}a(iu,"unwrapThenable");function sl(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}a(sl,"coerceRef");function ou(n,i){throw i.$$typeof===y?Error(o(525)):(n=Object.prototype.toString.call(i),Error(o(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}a(ou,"throwOnInvalidObjectType");function Nv(n){var i=n._init;return i(n._payload)}a(Nv,"resolveLazy");function Pv(n){function i(B,U){if(n){var H=B.deletions;H===null?(B.deletions=[U],B.flags|=16):H.push(U)}}a(i,"deleteChild");function s(B,U){if(!n)return null;for(;U!==null;)i(B,U),U=U.sibling;return null}a(s,"deleteRemainingChildren");function f(B){for(var U=new Map;B!==null;)B.key!==null?U.set(B.key,B):U.set(B.index,B),B=B.sibling;return U}a(f,"mapRemainingChildren");function g(B,U){return B=Cr(B,U),B.index=0,B.sibling=null,B}a(g,"useFiber");function v(B,U,H){return B.index=H,n?(H=B.alternate,H!==null?(H=H.index,H<U?(B.flags|=67108866,U):H):(B.flags|=67108866,U)):(B.flags|=1048576,U)}a(v,"placeChild");function T(B){return n&&B.alternate===null&&(B.flags|=67108866),B}a(T,"placeSingleChild");function _(B,U,H,le){return U===null||U.tag!==6?(U=$f(H,B.mode,le),U.return=B,U):(U=g(U,H),U.return=B,U)}a(_,"updateTextNode");function P(B,U,H,le){var Se=H.type;return Se===E?ie(B,U,H.props.children,le,H.key):U!==null&&(U.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===$&&Nv(Se)===U.type)?(U=g(U,H.props),sl(U,H),U.return=B,U):(U=Hs(H.type,H.key,H.props,null,B.mode,le),sl(U,H),U.return=B,U)}a(P,"updateElement");function F(B,U,H,le){return U===null||U.tag!==4||U.stateNode.containerInfo!==H.containerInfo||U.stateNode.implementation!==H.implementation?(U=Yf(H,B.mode,le),U.return=B,U):(U=g(U,H.children||[]),U.return=B,U)}a(F,"updatePortal");function ie(B,U,H,le,Se){return U===null||U.tag!==7?(U=Ni(H,B.mode,le,Se),U.return=B,U):(U=g(U,H),U.return=B,U)}a(ie,"updateFragment");function ue(B,U,H){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=$f(""+U,B.mode,H),U.return=B,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case b:return H=Hs(U.type,U.key,U.props,null,B.mode,H),sl(H,U),H.return=B,H;case x:return U=Yf(U,B.mode,H),U.return=B,U;case $:var le=U._init;return U=le(U._payload),ue(B,U,H)}if(ae(U)||Z(U))return U=Ni(U,B.mode,H,null),U.return=B,U;if(typeof U.then=="function")return ue(B,iu(U),H);if(U.$$typeof===k)return ue(B,Gs(B,U),H);ou(B,U)}return null}a(ue,"createChild");function V(B,U,H,le){var Se=U!==null?U.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return Se!==null?null:_(B,U,""+H,le);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case b:return H.key===Se?P(B,U,H,le):null;case x:return H.key===Se?F(B,U,H,le):null;case $:return Se=H._init,H=Se(H._payload),V(B,U,H,le)}if(ae(H)||Z(H))return Se!==null?null:ie(B,U,H,le,null);if(typeof H.then=="function")return V(B,U,iu(H),le);if(H.$$typeof===k)return V(B,U,Gs(B,H),le);ou(B,H)}return null}a(V,"updateSlot");function G(B,U,H,le,Se){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return B=B.get(H)||null,_(U,B,""+le,Se);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case b:return B=B.get(le.key===null?H:le.key)||null,P(U,B,le,Se);case x:return B=B.get(le.key===null?H:le.key)||null,F(U,B,le,Se);case $:var Fe=le._init;return le=Fe(le._payload),G(B,U,H,le,Se)}if(ae(le)||Z(le))return B=B.get(H)||null,ie(U,B,le,Se,null);if(typeof le.then=="function")return G(B,U,H,iu(le),Se);if(le.$$typeof===k)return G(B,U,H,Gs(U,le),Se);ou(U,le)}return null}a(G,"updateFromMap");function De(B,U,H,le){for(var Se=null,Fe=null,Re=U,Me=U=0,Nt=null;Re!==null&&Me<H.length;Me++){Re.index>Me?(Nt=Re,Re=null):Nt=Re.sibling;var Qe=V(B,Re,H[Me],le);if(Qe===null){Re===null&&(Re=Nt);break}n&&Re&&Qe.alternate===null&&i(B,Re),U=v(Qe,U,Me),Fe===null?Se=Qe:Fe.sibling=Qe,Fe=Qe,Re=Nt}if(Me===H.length)return s(B,Re),Xe&&Li(B,Me),Se;if(Re===null){for(;Me<H.length;Me++)Re=ue(B,H[Me],le),Re!==null&&(U=v(Re,U,Me),Fe===null?Se=Re:Fe.sibling=Re,Fe=Re);return Xe&&Li(B,Me),Se}for(Re=f(Re);Me<H.length;Me++)Nt=G(Re,B,Me,H[Me],le),Nt!==null&&(n&&Nt.alternate!==null&&Re.delete(Nt.key===null?Me:Nt.key),U=v(Nt,U,Me),Fe===null?Se=Nt:Fe.sibling=Nt,Fe=Nt);return n&&Re.forEach(function(mi){return i(B,mi)}),Xe&&Li(B,Me),Se}a(De,"reconcileChildrenArray");function Ae(B,U,H,le){if(H==null)throw Error(o(151));for(var Se=null,Fe=null,Re=U,Me=U=0,Nt=null,Qe=H.next();Re!==null&&!Qe.done;Me++,Qe=H.next()){Re.index>Me?(Nt=Re,Re=null):Nt=Re.sibling;var mi=V(B,Re,Qe.value,le);if(mi===null){Re===null&&(Re=Nt);break}n&&Re&&mi.alternate===null&&i(B,Re),U=v(mi,U,Me),Fe===null?Se=mi:Fe.sibling=mi,Fe=mi,Re=Nt}if(Qe.done)return s(B,Re),Xe&&Li(B,Me),Se;if(Re===null){for(;!Qe.done;Me++,Qe=H.next())Qe=ue(B,Qe.value,le),Qe!==null&&(U=v(Qe,U,Me),Fe===null?Se=Qe:Fe.sibling=Qe,Fe=Qe);return Xe&&Li(B,Me),Se}for(Re=f(Re);!Qe.done;Me++,Qe=H.next())Qe=G(Re,B,Me,Qe.value,le),Qe!==null&&(n&&Qe.alternate!==null&&Re.delete(Qe.key===null?Me:Qe.key),U=v(Qe,U,Me),Fe===null?Se=Qe:Fe.sibling=Qe,Fe=Qe);return n&&Re.forEach(function(oM){return i(B,oM)}),Xe&&Li(B,Me),Se}a(Ae,"reconcileChildrenIterator");function it(B,U,H,le){if(typeof H=="object"&&H!==null&&H.type===E&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case b:e:{for(var Se=H.key;U!==null;){if(U.key===Se){if(Se=H.type,Se===E){if(U.tag===7){s(B,U.sibling),le=g(U,H.props.children),le.return=B,B=le;break e}}else if(U.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===$&&Nv(Se)===U.type){s(B,U.sibling),le=g(U,H.props),sl(le,H),le.return=B,B=le;break e}s(B,U);break}else i(B,U);U=U.sibling}H.type===E?(le=Ni(H.props.children,B.mode,le,H.key),le.return=B,B=le):(le=Hs(H.type,H.key,H.props,null,B.mode,le),sl(le,H),le.return=B,B=le)}return T(B);case x:e:{for(Se=H.key;U!==null;){if(U.key===Se)if(U.tag===4&&U.stateNode.containerInfo===H.containerInfo&&U.stateNode.implementation===H.implementation){s(B,U.sibling),le=g(U,H.children||[]),le.return=B,B=le;break e}else{s(B,U);break}else i(B,U);U=U.sibling}le=Yf(H,B.mode,le),le.return=B,B=le}return T(B);case $:return Se=H._init,H=Se(H._payload),it(B,U,H,le)}if(ae(H))return De(B,U,H,le);if(Z(H)){if(Se=Z(H),typeof Se!="function")throw Error(o(150));return H=Se.call(H),Ae(B,U,H,le)}if(typeof H.then=="function")return it(B,U,iu(H),le);if(H.$$typeof===k)return it(B,U,Gs(B,H),le);ou(B,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,U!==null&&U.tag===6?(s(B,U.sibling),le=g(U,H),le.return=B,B=le):(s(B,U),le=$f(H,B.mode,le),le.return=B,B=le),T(B)):s(B,U)}return a(it,"reconcileChildFibersImpl"),function(B,U,H,le){try{ll=0;var Se=it(B,U,H,le);return jo=null,Se}catch(Re){if(Re===Za||Re===Ys)throw Re;var Fe=cn(29,Re,null,B.mode);return Fe.lanes=le,Fe.return=B,Fe}finally{}}}a(Pv,"createChildReconciler");var Uo=Pv(!0),Lv=Pv(!1),Mn=Y(null),er=null;function ei(n){var i=n.alternate;M(Ot,Ot.current&1),M(Mn,n),er===null&&(i===null||Po.current!==null||i.memoizedState!==null)&&(er=n)}a(ei,"pushPrimaryTreeSuspenseHandler");function zv(n){if(n.tag===22){if(M(Ot,Ot.current),M(Mn,n),er===null){var i=n.alternate;i!==null&&i.memoizedState!==null&&(er=n)}}else ti()}a(zv,"pushOffscreenSuspenseHandler");function ti(){M(Ot,Ot.current),M(Mn,Mn.current)}a(ti,"reuseSuspenseHandlerOnStack");function _r(n){de(Mn),er===n&&(er=null),de(Ot)}a(_r,"popSuspenseHandler");var Ot=Y(0);function au(n){for(var i=n;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||mh(s)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}a(au,"findFirstSuspended");function Rd(n,i,s,f){i=n.memoizedState,s=s(f,i),s=s==null?i:m({},i,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}a(Rd,"applyDerivedStateFromProps");var Od={enqueueSetState:a(function(n,i,s){n=n._reactInternals;var f=pn(),g=Wr(f);g.payload=i,s!=null&&(g.callback=s),i=Zr(n,g,f),i!==null&&(mn(i,n,f),el(i,n,f))},"enqueueSetState"),enqueueReplaceState:a(function(n,i,s){n=n._reactInternals;var f=pn(),g=Wr(f);g.tag=1,g.payload=i,s!=null&&(g.callback=s),i=Zr(n,g,f),i!==null&&(mn(i,n,f),el(i,n,f))},"enqueueReplaceState"),enqueueForceUpdate:a(function(n,i){n=n._reactInternals;var s=pn(),f=Wr(s);f.tag=2,i!=null&&(f.callback=i),i=Zr(n,f,s),i!==null&&(mn(i,n,s),el(i,n,s))},"enqueueForceUpdate")};function Iv(n,i,s,f,g,v,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(f,v,T):i.prototype&&i.prototype.isPureReactComponent?!Va(s,f)||!Va(g,v):!0}a(Iv,"checkShouldComponentUpdate");function jv(n,i,s,f){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,f),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,f),i.state!==n&&Od.enqueueReplaceState(i,i.state,null)}a(jv,"callComponentWillReceiveProps");function Fi(n,i){var s=i;if("ref"in i){s={};for(var f in i)f!=="ref"&&(s[f]=i[f])}if(n=n.defaultProps){s===i&&(s=m({},s));for(var g in n)s[g]===void 0&&(s[g]=n[g])}return s}a(Fi,"resolveClassComponentProps");var lu=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function Uv(n){lu(n)}a(Uv,"defaultOnUncaughtError");function Bv(n){console.error(n)}a(Bv,"defaultOnCaughtError");function Hv(n){lu(n)}a(Hv,"defaultOnRecoverableError");function su(n,i){try{var s=n.onUncaughtError;s(i.value,{componentStack:i.stack})}catch(f){setTimeout(function(){throw f})}}a(su,"logUncaughtError");function Fv(n,i,s){try{var f=n.onCaughtError;f(s.value,{componentStack:s.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(g){setTimeout(function(){throw g})}}a(Fv,"logCaughtError");function Ad(n,i,s){return s=Wr(s),s.tag=3,s.payload={element:null},s.callback=function(){su(n,i)},s}a(Ad,"createRootErrorUpdate");function qv(n){return n=Wr(n),n.tag=3,n}a(qv,"createClassErrorUpdate");function Vv(n,i,s,f){var g=s.type.getDerivedStateFromError;if(typeof g=="function"){var v=f.value;n.payload=function(){return g(v)},n.callback=function(){Fv(i,s,f)}}var T=s.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(n.callback=function(){Fv(i,s,f),typeof g!="function"&&(li===null?li=new Set([this]):li.add(this));var _=f.stack;this.componentDidCatch(f.value,{componentStack:_!==null?_:""})})}a(Vv,"initializeClassErrorUpdate");function oA(n,i,s,f,g){if(s.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(i=s.alternate,i!==null&&Qa(i,s,g,!0),s=Mn.current,s!==null){switch(s.tag){case 13:return er===null?Zd():s.alternate===null&&mt===0&&(mt=3),s.flags&=-257,s.flags|=65536,s.lanes=g,f===rd?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([f]):i.add(f),eh(n,f,g)),!1;case 22:return s.flags|=65536,f===rd?s.flags|=16384:(i=s.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([f])},s.updateQueue=i):(s=i.retryQueue,s===null?i.retryQueue=new Set([f]):s.add(f)),eh(n,f,g)),!1}throw Error(o(435,s.tag))}return eh(n,f,g),Zd(),!1}if(Xe)return i=Mn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=g,f!==Xf&&(n=Error(o(422),{cause:f}),Ka(Tn(n,s)))):(f!==Xf&&(i=Error(o(423),{cause:f}),Ka(Tn(i,s))),n=n.current.alternate,n.flags|=65536,g&=-g,n.lanes|=g,f=Tn(f,s),g=Ad(n.stateNode,f,g),ad(n,g),mt!==4&&(mt=2)),!1;var v=Error(o(520),{cause:f});if(v=Tn(v,s),ml===null?ml=[v]:ml.push(v),mt!==4&&(mt=2),i===null)return!0;f=Tn(f,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,n=g&-g,s.lanes|=n,n=Ad(s.stateNode,f,n),ad(s,n),!1;case 1:if(i=s.type,v=s.stateNode,(s.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(li===null||!li.has(v))))return s.flags|=65536,g&=-g,s.lanes|=g,g=qv(g),Vv(g,n,s,f),ad(s,g),!1}s=s.return}while(s!==null);return!1}a(oA,"throwException");var Gv=Error(o(461)),kt=!1;function Pt(n,i,s,f){i.child=n===null?Lv(i,null,s,f):Uo(i,n.child,s,f)}a(Pt,"reconcileChildren");function $v(n,i,s,f,g){s=s.render;var v=i.ref;if("ref"in f){var T={};for(var _ in f)_!=="ref"&&(T[_]=f[_])}else T=f;return Ui(i),f=fd(n,i,s,T,v,g),_=dd(),n!==null&&!kt?(hd(n,i,g),kr(n,i,g)):(Xe&&_&&Kf(i),i.flags|=1,Pt(n,i,f,g),i.child)}a($v,"updateForwardRef");function Yv(n,i,s,f,g){if(n===null){var v=s.type;return typeof v=="function"&&!Gf(v)&&v.defaultProps===void 0&&s.compare===null?(i.tag=15,i.type=v,Kv(n,i,v,f,g)):(n=Hs(s.type,null,f,i,i.mode,g),n.ref=i.ref,n.return=i,i.child=n)}if(v=n.child,!zd(n,g)){var T=v.memoizedProps;if(s=s.compare,s=s!==null?s:Va,s(T,f)&&n.ref===i.ref)return kr(n,i,g)}return i.flags|=1,n=Cr(v,f),n.ref=i.ref,n.return=i,i.child=n}a(Yv,"updateMemoComponent");function Kv(n,i,s,f,g){if(n!==null){var v=n.memoizedProps;if(Va(v,f)&&n.ref===i.ref)if(kt=!1,i.pendingProps=f=v,zd(n,g))(n.flags&131072)!==0&&(kt=!0);else return i.lanes=n.lanes,kr(n,i,g)}return Md(n,i,s,f,g)}a(Kv,"updateSimpleMemoComponent");function Qv(n,i,s){var f=i.pendingProps,g=f.children,v=n!==null?n.memoizedState:null;if(f.mode==="hidden"){if((i.flags&128)!==0){if(f=v!==null?v.baseLanes|s:s,n!==null){for(g=i.child=n.child,v=0;g!==null;)v=v|g.lanes|g.childLanes,g=g.sibling;i.childLanes=v&~f}else i.childLanes=0,i.child=null;return Xv(n,i,f,s)}if((s&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&$s(i,v!==null?v.cachePool:null),v!==null?Ky(i,v):sd(),zv(i);else return i.lanes=i.childLanes=536870912,Xv(n,i,v!==null?v.baseLanes|s:s,s)}else v!==null?($s(i,v.cachePool),Ky(i,v),ti(),i.memoizedState=null):(n!==null&&$s(i,null),sd(),ti());return Pt(n,i,g,s),i.child}a(Qv,"updateOffscreenComponent");function Xv(n,i,s,f){var g=nd();return g=g===null?null:{parent:Rt._currentValue,pool:g},i.memoizedState={baseLanes:s,cachePool:g},n!==null&&$s(i,null),sd(),zv(i),n!==null&&Qa(n,i,f,!0),null}a(Xv,"deferHiddenOffscreenComponent");function uu(n,i){var s=i.ref;if(s===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(o(284));(n===null||n.ref!==s)&&(i.flags|=4194816)}}a(uu,"markRef");function Md(n,i,s,f,g){return Ui(i),s=fd(n,i,s,f,void 0,g),f=dd(),n!==null&&!kt?(hd(n,i,g),kr(n,i,g)):(Xe&&f&&Kf(i),i.flags|=1,Pt(n,i,s,g),i.child)}a(Md,"updateFunctionComponent");function Wv(n,i,s,f,g,v){return Ui(i),i.updateQueue=null,s=Xy(i,f,s,g),Qy(n),f=dd(),n!==null&&!kt?(hd(n,i,v),kr(n,i,v)):(Xe&&f&&Kf(i),i.flags|=1,Pt(n,i,s,v),i.child)}a(Wv,"replayFunctionComponent");function Zv(n,i,s,f,g){if(Ui(i),i.stateNode===null){var v=Mo,T=s.contextType;typeof T=="object"&&T!==null&&(v=Ut(T)),v=new s(f,v),i.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Od,i.stateNode=v,v._reactInternals=i,v=i.stateNode,v.props=f,v.state=i.memoizedState,v.refs={},id(i),T=s.contextType,v.context=typeof T=="object"&&T!==null?Ut(T):Mo,v.state=i.memoizedState,T=s.getDerivedStateFromProps,typeof T=="function"&&(Rd(i,s,T,f),v.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(T=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),T!==v.state&&Od.enqueueReplaceState(v,v.state,null),nl(i,f,v,g),tl(),v.state=i.memoizedState),typeof v.componentDidMount=="function"&&(i.flags|=4194308),f=!0}else if(n===null){v=i.stateNode;var _=i.memoizedProps,P=Fi(s,_);v.props=P;var F=v.context,ie=s.contextType;T=Mo,typeof ie=="object"&&ie!==null&&(T=Ut(ie));var ue=s.getDerivedStateFromProps;ie=typeof ue=="function"||typeof v.getSnapshotBeforeUpdate=="function",_=i.pendingProps!==_,ie||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(_||F!==T)&&jv(i,v,f,T),Xr=!1;var V=i.memoizedState;v.state=V,nl(i,f,v,g),tl(),F=i.memoizedState,_||V!==F||Xr?(typeof ue=="function"&&(Rd(i,s,ue,f),F=i.memoizedState),(P=Xr||Iv(i,s,P,f,V,F,T))?(ie||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(i.flags|=4194308)):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=f,i.memoizedState=F),v.props=f,v.state=F,v.context=T,f=P):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),f=!1)}else{v=i.stateNode,od(n,i),T=i.memoizedProps,ie=Fi(s,T),v.props=ie,ue=i.pendingProps,V=v.context,F=s.contextType,P=Mo,typeof F=="object"&&F!==null&&(P=Ut(F)),_=s.getDerivedStateFromProps,(F=typeof _=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(T!==ue||V!==P)&&jv(i,v,f,P),Xr=!1,V=i.memoizedState,v.state=V,nl(i,f,v,g),tl();var G=i.memoizedState;T!==ue||V!==G||Xr||n!==null&&n.dependencies!==null&&Vs(n.dependencies)?(typeof _=="function"&&(Rd(i,s,_,f),G=i.memoizedState),(ie=Xr||Iv(i,s,ie,f,V,G,P)||n!==null&&n.dependencies!==null&&Vs(n.dependencies))?(F||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(f,G,P),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(f,G,P)),typeof v.componentDidUpdate=="function"&&(i.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof v.componentDidUpdate!="function"||T===n.memoizedProps&&V===n.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&V===n.memoizedState||(i.flags|=1024),i.memoizedProps=f,i.memoizedState=G),v.props=f,v.state=G,v.context=P,f=ie):(typeof v.componentDidUpdate!="function"||T===n.memoizedProps&&V===n.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&V===n.memoizedState||(i.flags|=1024),f=!1)}return v=f,uu(n,i),f=(i.flags&128)!==0,v||f?(v=i.stateNode,s=f&&typeof s.getDerivedStateFromError!="function"?null:v.render(),i.flags|=1,n!==null&&f?(i.child=Uo(i,n.child,null,g),i.child=Uo(i,null,s,g)):Pt(n,i,s,g),i.memoizedState=v.state,n=i.child):n=kr(n,i,g),n}a(Zv,"updateClassComponent");function Jv(n,i,s,f){return Ya(),i.flags|=256,Pt(n,i,s,f),i.child}a(Jv,"mountHostRootWithoutHydrating");var _d={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function kd(n){return{baseLanes:n,cachePool:By()}}a(kd,"mountSuspenseOffscreenState");function Dd(n,i,s){return n=n!==null?n.childLanes&~s:0,i&&(n|=_n),n}a(Dd,"getRemainingWorkInPrimaryTree");function eb(n,i,s){var f=i.pendingProps,g=!1,v=(i.flags&128)!==0,T;if((T=v)||(T=n!==null&&n.memoizedState===null?!1:(Ot.current&2)!==0),T&&(g=!0,i.flags&=-129),T=(i.flags&32)!==0,i.flags&=-33,n===null){if(Xe){if(g?ei(i):ti(),Xe){var _=pt,P;if(P=_){e:{for(P=_,_=Jn;P.nodeType!==8;){if(!_){_=null;break e}if(P=Hn(P.nextSibling),P===null){_=null;break e}}_=P}_!==null?(i.memoizedState={dehydrated:_,treeContext:Pi!==null?{id:Tr,overflow:Rr}:null,retryLane:536870912,hydrationErrors:null},P=cn(18,null,null,0),P.stateNode=_,P.return=i,i.child=P,Vt=i,pt=null,P=!0):P=!1}P||Ii(i)}if(_=i.memoizedState,_!==null&&(_=_.dehydrated,_!==null))return mh(_)?i.lanes=32:i.lanes=536870912,null;_r(i)}return _=f.children,f=f.fallback,g?(ti(),g=i.mode,_=cu({mode:"hidden",children:_},g),f=Ni(f,g,s,null),_.return=i,f.return=i,_.sibling=f,i.child=_,g=i.child,g.memoizedState=kd(s),g.childLanes=Dd(n,T,s),i.memoizedState=_d,f):(ei(i),Nd(i,_))}if(P=n.memoizedState,P!==null&&(_=P.dehydrated,_!==null)){if(v)i.flags&256?(ei(i),i.flags&=-257,i=Pd(n,i,s)):i.memoizedState!==null?(ti(),i.child=n.child,i.flags|=128,i=null):(ti(),g=f.fallback,_=i.mode,f=cu({mode:"visible",children:f.children},_),g=Ni(g,_,s,null),g.flags|=2,f.return=i,g.return=i,f.sibling=g,i.child=f,Uo(i,n.child,null,s),f=i.child,f.memoizedState=kd(s),f.childLanes=Dd(n,T,s),i.memoizedState=_d,i=g);else if(ei(i),mh(_)){if(T=_.nextSibling&&_.nextSibling.dataset,T)var F=T.dgst;T=F,f=Error(o(419)),f.stack="",f.digest=T,Ka({value:f,source:null,stack:null}),i=Pd(n,i,s)}else if(kt||Qa(n,i,s,!1),T=(s&n.childLanes)!==0,kt||T){if(T=at,T!==null&&(f=s&-s,f=(f&42)!==0?1:gf(f),f=(f&(T.suspendedLanes|s))!==0?0:f,f!==0&&f!==P.retryLane))throw P.retryLane=f,Ao(n,f),mn(T,n,f),Gv;_.data==="$?"||Zd(),i=Pd(n,i,s)}else _.data==="$?"?(i.flags|=192,i.child=n.child,i=null):(n=P.treeContext,pt=Hn(_.nextSibling),Vt=i,Xe=!0,zi=null,Jn=!1,n!==null&&(On[An++]=Tr,On[An++]=Rr,On[An++]=Pi,Tr=n.id,Rr=n.overflow,Pi=i),i=Nd(i,f.children),i.flags|=4096);return i}return g?(ti(),g=f.fallback,_=i.mode,P=n.child,F=P.sibling,f=Cr(P,{mode:"hidden",children:f.children}),f.subtreeFlags=P.subtreeFlags&65011712,F!==null?g=Cr(F,g):(g=Ni(g,_,s,null),g.flags|=2),g.return=i,f.return=i,f.sibling=g,i.child=f,f=g,g=i.child,_=n.child.memoizedState,_===null?_=kd(s):(P=_.cachePool,P!==null?(F=Rt._currentValue,P=P.parent!==F?{parent:F,pool:F}:P):P=By(),_={baseLanes:_.baseLanes|s,cachePool:P}),g.memoizedState=_,g.childLanes=Dd(n,T,s),i.memoizedState=_d,f):(ei(i),s=n.child,n=s.sibling,s=Cr(s,{mode:"visible",children:f.children}),s.return=i,s.sibling=null,n!==null&&(T=i.deletions,T===null?(i.deletions=[n],i.flags|=16):T.push(n)),i.child=s,i.memoizedState=null,s)}a(eb,"updateSuspenseComponent");function Nd(n,i){return i=cu({mode:"visible",children:i},n.mode),i.return=n,n.child=i}a(Nd,"mountSuspensePrimaryChildren");function cu(n,i){return n=cn(22,n,null,i),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}a(cu,"mountWorkInProgressOffscreenFiber");function Pd(n,i,s){return Uo(i,n.child,null,s),n=Nd(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}a(Pd,"retrySuspenseComponentWithoutHydrating");function tb(n,i,s){n.lanes|=i;var f=n.alternate;f!==null&&(f.lanes|=i),Zf(n.return,i,s)}a(tb,"scheduleSuspenseWorkOnFiber");function Ld(n,i,s,f,g){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:f,tail:s,tailMode:g}:(v.isBackwards=i,v.rendering=null,v.renderingStartTime=0,v.last=f,v.tail=s,v.tailMode=g)}a(Ld,"initSuspenseListRenderState");function nb(n,i,s){var f=i.pendingProps,g=f.revealOrder,v=f.tail;if(Pt(n,i,f.children,s),f=Ot.current,(f&2)!==0)f=f&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&tb(n,s,i);else if(n.tag===19)tb(n,s,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}f&=1}switch(M(Ot,f),g){case"forwards":for(s=i.child,g=null;s!==null;)n=s.alternate,n!==null&&au(n)===null&&(g=s),s=s.sibling;s=g,s===null?(g=i.child,i.child=null):(g=s.sibling,s.sibling=null),Ld(i,!1,g,s,v);break;case"backwards":for(s=null,g=i.child,i.child=null;g!==null;){if(n=g.alternate,n!==null&&au(n)===null){i.child=g;break}n=g.sibling,g.sibling=s,s=g,g=n}Ld(i,!0,s,null,v);break;case"together":Ld(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}a(nb,"updateSuspenseListComponent");function kr(n,i,s){if(n!==null&&(i.dependencies=n.dependencies),ai|=i.lanes,(s&i.childLanes)===0)if(n!==null){if(Qa(n,i,s,!1),(s&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(o(153));if(i.child!==null){for(n=i.child,s=Cr(n,n.pendingProps),i.child=s,s.return=i;n.sibling!==null;)n=n.sibling,s=s.sibling=Cr(n,n.pendingProps),s.return=i;s.sibling=null}return i.child}a(kr,"bailoutOnAlreadyFinishedWork");function zd(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&Vs(n)))}a(zd,"checkScheduledUpdateOrContext");function aA(n,i,s){switch(i.tag){case 3:fe(i,i.stateNode.containerInfo),Qr(i,Rt,n.memoizedState.cache),Ya();break;case 27:case 5:Te(i);break;case 4:fe(i,i.stateNode.containerInfo);break;case 10:Qr(i,i.type,i.memoizedProps.value);break;case 13:var f=i.memoizedState;if(f!==null)return f.dehydrated!==null?(ei(i),i.flags|=128,null):(s&i.child.childLanes)!==0?eb(n,i,s):(ei(i),n=kr(n,i,s),n!==null?n.sibling:null);ei(i);break;case 19:var g=(n.flags&128)!==0;if(f=(s&i.childLanes)!==0,f||(Qa(n,i,s,!1),f=(s&i.childLanes)!==0),g){if(f)return nb(n,i,s);i.flags|=128}if(g=i.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),M(Ot,Ot.current),f)break;return null;case 22:case 23:return i.lanes=0,Qv(n,i,s);case 24:Qr(i,Rt,n.memoizedState.cache)}return kr(n,i,s)}a(aA,"attemptEarlyBailoutIfNoScheduledUpdate");function rb(n,i,s){if(n!==null)if(n.memoizedProps!==i.pendingProps)kt=!0;else{if(!zd(n,s)&&(i.flags&128)===0)return kt=!1,aA(n,i,s);kt=(n.flags&131072)!==0}else kt=!1,Xe&&(i.flags&1048576)!==0&&Ny(i,qs,i.index);switch(i.lanes=0,i.tag){case 16:e:{n=i.pendingProps;var f=i.elementType,g=f._init;if(f=g(f._payload),i.type=f,typeof f=="function")Gf(f)?(n=Fi(f,n),i.tag=1,i=Zv(null,i,f,n,s)):(i.tag=0,i=Md(null,i,f,n,s));else{if(f!=null){if(g=f.$$typeof,g===z){i.tag=11,i=$v(null,i,f,n,s);break e}else if(g===j){i.tag=14,i=Yv(null,i,f,n,s);break e}}throw i=q(f)||f,Error(o(306,i,""))}}return i;case 0:return Md(n,i,i.type,i.pendingProps,s);case 1:return f=i.type,g=Fi(f,i.pendingProps),Zv(n,i,f,g,s);case 3:e:{if(fe(i,i.stateNode.containerInfo),n===null)throw Error(o(387));f=i.pendingProps;var v=i.memoizedState;g=v.element,od(n,i),nl(i,f,null,s);var T=i.memoizedState;if(f=T.cache,Qr(i,Rt,f),f!==v.cache&&Jf(i,[Rt],s,!0),tl(),f=T.element,v.isDehydrated)if(v={element:f,isDehydrated:!1,cache:T.cache},i.updateQueue.baseState=v,i.memoizedState=v,i.flags&256){i=Jv(n,i,f,s);break e}else if(f!==g){g=Tn(Error(o(424)),i),Ka(g),i=Jv(n,i,f,s);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(pt=Hn(n.firstChild),Vt=i,Xe=!0,zi=null,Jn=!0,s=Lv(i,null,f,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Ya(),f===g){i=kr(n,i,s);break e}Pt(n,i,f,s)}i=i.child}return i;case 26:return uu(n,i),n===null?(s=l0(i.type,null,i.pendingProps,null))?i.memoizedState=s:Xe||(s=i.type,n=i.pendingProps,f=Cu(oe.current).createElement(s),f[jt]=i,f[Xt]=n,zt(f,s,n),_t(f),i.stateNode=f):i.memoizedState=l0(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return Te(i),n===null&&Xe&&(f=i.stateNode=i0(i.type,i.pendingProps,oe.current),Vt=i,Jn=!0,g=pt,ci(i.type)?(gh=g,pt=Hn(f.firstChild)):pt=g),Pt(n,i,i.pendingProps.children,s),uu(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Xe&&((g=f=pt)&&(f=PA(f,i.type,i.pendingProps,Jn),f!==null?(i.stateNode=f,Vt=i,pt=Hn(f.firstChild),Jn=!1,g=!0):g=!1),g||Ii(i)),Te(i),g=i.type,v=i.pendingProps,T=n!==null?n.memoizedProps:null,f=v.children,dh(g,v)?f=null:T!==null&&dh(g,T)&&(i.flags|=32),i.memoizedState!==null&&(g=fd(n,i,ZO,null,null,s),Cl._currentValue=g),uu(n,i),Pt(n,i,f,s),i.child;case 6:return n===null&&Xe&&((n=s=pt)&&(s=LA(s,i.pendingProps,Jn),s!==null?(i.stateNode=s,Vt=i,pt=null,n=!0):n=!1),n||Ii(i)),null;case 13:return eb(n,i,s);case 4:return fe(i,i.stateNode.containerInfo),f=i.pendingProps,n===null?i.child=Uo(i,null,f,s):Pt(n,i,f,s),i.child;case 11:return $v(n,i,i.type,i.pendingProps,s);case 7:return Pt(n,i,i.pendingProps,s),i.child;case 8:return Pt(n,i,i.pendingProps.children,s),i.child;case 12:return Pt(n,i,i.pendingProps.children,s),i.child;case 10:return f=i.pendingProps,Qr(i,i.type,f.value),Pt(n,i,f.children,s),i.child;case 9:return g=i.type._context,f=i.pendingProps.children,Ui(i),g=Ut(g),f=f(g),i.flags|=1,Pt(n,i,f,s),i.child;case 14:return Yv(n,i,i.type,i.pendingProps,s);case 15:return Kv(n,i,i.type,i.pendingProps,s);case 19:return nb(n,i,s);case 31:return f=i.pendingProps,s=i.mode,f={mode:f.mode,children:f.children},n===null?(s=cu(f,s),s.ref=i.ref,i.child=s,s.return=i,i=s):(s=Cr(n.child,f),s.ref=i.ref,i.child=s,s.return=i,i=s),i;case 22:return Qv(n,i,s);case 24:return Ui(i),f=Ut(Rt),n===null?(g=nd(),g===null&&(g=at,v=ed(),g.pooledCache=v,v.refCount++,v!==null&&(g.pooledCacheLanes|=s),g=v),i.memoizedState={parent:f,cache:g},id(i),Qr(i,Rt,g)):((n.lanes&s)!==0&&(od(n,i),nl(i,null,null,s),tl()),g=n.memoizedState,v=i.memoizedState,g.parent!==f?(g={parent:f,cache:f},i.memoizedState=g,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=g),Qr(i,Rt,f)):(f=v.cache,Qr(i,Rt,f),f!==g.cache&&Jf(i,[Rt],s,!0))),Pt(n,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error(o(156,i.tag))}a(rb,"beginWork");function Dr(n){n.flags|=4}a(Dr,"markUpdate");function ib(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!d0(i)){if(i=Mn.current,i!==null&&((Ye&4194048)===Ye?er!==null:(Ye&62914560)!==Ye&&(Ye&536870912)===0||i!==er))throw Ja=rd,Hy;n.flags|=8192}}a(ib,"preloadResourceAndSuspendIfNeeded");function fu(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?zg():536870912,n.lanes|=i,qo|=i)}a(fu,"scheduleRetryEffect");function ul(n,i){if(!Xe)switch(n.tailMode){case"hidden":i=n.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var f=null;s!==null;)s.alternate!==null&&(f=s),s=s.sibling;f===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:f.sibling=null}}a(ul,"cutOffTailIfNeeded");function dt(n){var i=n.alternate!==null&&n.alternate.child===n.child,s=0,f=0;if(i)for(var g=n.child;g!==null;)s|=g.lanes|g.childLanes,f|=g.subtreeFlags&65011712,f|=g.flags&65011712,g.return=n,g=g.sibling;else for(g=n.child;g!==null;)s|=g.lanes|g.childLanes,f|=g.subtreeFlags,f|=g.flags,g.return=n,g=g.sibling;return n.subtreeFlags|=f,n.childLanes=s,i}a(dt,"bubbleProperties");function lA(n,i,s){var f=i.pendingProps;switch(Qf(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(i),null;case 1:return dt(i),null;case 3:return s=i.stateNode,f=null,n!==null&&(f=n.memoizedState.cache),i.memoizedState.cache!==f&&(i.flags|=2048),Ar(Rt),Ce(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&($a(i)?Dr(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,zy())),dt(i),null;case 26:return s=i.memoizedState,n===null?(Dr(i),s!==null?(dt(i),ib(i,s)):(dt(i),i.flags&=-16777217)):s?s!==n.memoizedState?(Dr(i),dt(i),ib(i,s)):(dt(i),i.flags&=-16777217):(n.memoizedProps!==f&&Dr(i),dt(i),i.flags&=-16777217),null;case 27:Pe(i),s=oe.current;var g=i.type;if(n!==null&&i.stateNode!=null)n.memoizedProps!==f&&Dr(i);else{if(!f){if(i.stateNode===null)throw Error(o(166));return dt(i),null}n=ne.current,$a(i)?Py(i):(n=i0(g,f,s),i.stateNode=n,Dr(i))}return dt(i),null;case 5:if(Pe(i),s=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==f&&Dr(i);else{if(!f){if(i.stateNode===null)throw Error(o(166));return dt(i),null}if(n=ne.current,$a(i))Py(i);else{switch(g=Cu(oe.current),n){case 1:n=g.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:n=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":n=g.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":n=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":n=g.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof f.is=="string"?g.createElement("select",{is:f.is}):g.createElement("select"),f.multiple?n.multiple=!0:f.size&&(n.size=f.size);break;default:n=typeof f.is=="string"?g.createElement(s,{is:f.is}):g.createElement(s)}}n[jt]=i,n[Xt]=f;e:for(g=i.child;g!==null;){if(g.tag===5||g.tag===6)n.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===i)break e;for(;g.sibling===null;){if(g.return===null||g.return===i)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}i.stateNode=n;e:switch(zt(n,s,f),s){case"button":case"input":case"select":case"textarea":n=!!f.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Dr(i)}}return dt(i),i.flags&=-16777217,null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==f&&Dr(i);else{if(typeof f!="string"&&i.stateNode===null)throw Error(o(166));if(n=oe.current,$a(i)){if(n=i.stateNode,s=i.memoizedProps,f=null,g=Vt,g!==null)switch(g.tag){case 27:case 5:f=g.memoizedProps}n[jt]=i,n=!!(n.nodeValue===s||f!==null&&f.suppressHydrationWarning===!0||Wb(n.nodeValue,s)),n||Ii(i)}else n=Cu(n).createTextNode(f),n[jt]=i,i.stateNode=n}return dt(i),null;case 13:if(f=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(g=$a(i),f!==null&&f.dehydrated!==null){if(n===null){if(!g)throw Error(o(318));if(g=i.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(o(317));g[jt]=i}else Ya(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;dt(i),g=!1}else g=zy(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=g),g=!0;if(!g)return i.flags&256?(_r(i),i):(_r(i),null)}if(_r(i),(i.flags&128)!==0)return i.lanes=s,i;if(s=f!==null,n=n!==null&&n.memoizedState!==null,s){f=i.child,g=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(g=f.alternate.memoizedState.cachePool.pool);var v=null;f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(v=f.memoizedState.cachePool.pool),v!==g&&(f.flags|=2048)}return s!==n&&s&&(i.child.flags|=8192),fu(i,i.updateQueue),dt(i),null;case 4:return Ce(),n===null&&lh(i.stateNode.containerInfo),dt(i),null;case 10:return Ar(i.type),dt(i),null;case 19:if(de(Ot),g=i.memoizedState,g===null)return dt(i),null;if(f=(i.flags&128)!==0,v=g.rendering,v===null)if(f)ul(g,!1);else{if(mt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(v=au(n),v!==null){for(i.flags|=128,ul(g,!1),n=v.updateQueue,i.updateQueue=n,fu(i,n),i.subtreeFlags=0,n=s,s=i.child;s!==null;)Dy(s,n),s=s.sibling;return M(Ot,Ot.current&1|2),i.child}n=n.sibling}g.tail!==null&&St()>pu&&(i.flags|=128,f=!0,ul(g,!1),i.lanes=4194304)}else{if(!f)if(n=au(v),n!==null){if(i.flags|=128,f=!0,n=n.updateQueue,i.updateQueue=n,fu(i,n),ul(g,!0),g.tail===null&&g.tailMode==="hidden"&&!v.alternate&&!Xe)return dt(i),null}else 2*St()-g.renderingStartTime>pu&&s!==536870912&&(i.flags|=128,f=!0,ul(g,!1),i.lanes=4194304);g.isBackwards?(v.sibling=i.child,i.child=v):(n=g.last,n!==null?n.sibling=v:i.child=v,g.last=v)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=St(),i.sibling=null,n=Ot.current,M(Ot,f?n&1|2:n&1),i):(dt(i),null);case 22:case 23:return _r(i),ud(),f=i.memoizedState!==null,n!==null?n.memoizedState!==null!==f&&(i.flags|=8192):f&&(i.flags|=8192),f?(s&536870912)!==0&&(i.flags&128)===0&&(dt(i),i.subtreeFlags&6&&(i.flags|=8192)):dt(i),s=i.updateQueue,s!==null&&fu(i,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),f=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==s&&(i.flags|=2048),n!==null&&de(Bi),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),Ar(Rt),dt(i),null;case 25:return null;case 30:return null}throw Error(o(156,i.tag))}a(lA,"completeWork");function sA(n,i){switch(Qf(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return Ar(Rt),Ce(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return Pe(i),null;case 13:if(_r(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(o(340));Ya()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return de(Ot),null;case 4:return Ce(),null;case 10:return Ar(i.type),null;case 22:case 23:return _r(i),ud(),n!==null&&de(Bi),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return Ar(Rt),null;case 25:return null;default:return null}}a(sA,"unwindWork");function ob(n,i){switch(Qf(i),i.tag){case 3:Ar(Rt),Ce();break;case 26:case 27:case 5:Pe(i);break;case 4:Ce();break;case 13:_r(i);break;case 19:de(Ot);break;case 10:Ar(i.type);break;case 22:case 23:_r(i),ud(),n!==null&&de(Bi);break;case 24:Ar(Rt)}}a(ob,"unwindInterruptedWork");function cl(n,i){try{var s=i.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var g=f.next;s=g;do{if((s.tag&n)===n){f=void 0;var v=s.create,T=s.inst;f=v(),T.destroy=f}s=s.next}while(s!==g)}}catch(_){ot(i,i.return,_)}}a(cl,"commitHookEffectListMount");function ni(n,i,s){try{var f=i.updateQueue,g=f!==null?f.lastEffect:null;if(g!==null){var v=g.next;f=v;do{if((f.tag&n)===n){var T=f.inst,_=T.destroy;if(_!==void 0){T.destroy=void 0,g=i;var P=s,F=_;try{F()}catch(ie){ot(g,P,ie)}}}f=f.next}while(f!==v)}}catch(ie){ot(i,i.return,ie)}}a(ni,"commitHookEffectListUnmount");function ab(n){var i=n.updateQueue;if(i!==null){var s=n.stateNode;try{Yy(i,s)}catch(f){ot(n,n.return,f)}}}a(ab,"commitClassCallbacks");function lb(n,i,s){s.props=Fi(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(f){ot(n,i,f)}}a(lb,"safelyCallComponentWillUnmount");function fl(n,i){try{var s=n.ref;if(s!==null){switch(n.tag){case 26:case 27:case 5:var f=n.stateNode;break;case 30:f=n.stateNode;break;default:f=n.stateNode}typeof s=="function"?n.refCleanup=s(f):s.current=f}}catch(g){ot(n,i,g)}}a(fl,"safelyAttachRef");function tr(n,i){var s=n.ref,f=n.refCleanup;if(s!==null)if(typeof f=="function")try{f()}catch(g){ot(n,i,g)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(g){ot(n,i,g)}else s.current=null}a(tr,"safelyDetachRef");function sb(n){var i=n.type,s=n.memoizedProps,f=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":s.autoFocus&&f.focus();break e;case"img":s.src?f.src=s.src:s.srcSet&&(f.srcset=s.srcSet)}}catch(g){ot(n,n.return,g)}}a(sb,"commitHostMount");function Id(n,i,s){try{var f=n.stateNode;MA(f,n.type,s,i),f[Xt]=i}catch(g){ot(n,n.return,g)}}a(Id,"commitHostUpdate");function ub(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ci(n.type)||n.tag===4}a(ub,"isHostParent");function jd(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||ub(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ci(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}a(jd,"getHostSibling");function Ud(n,i,s){var f=n.tag;if(f===5||f===6)n=n.stateNode,i?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,i):(i=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,i.appendChild(n),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Eu));else if(f!==4&&(f===27&&ci(n.type)&&(s=n.stateNode,i=null),n=n.child,n!==null))for(Ud(n,i,s),n=n.sibling;n!==null;)Ud(n,i,s),n=n.sibling}a(Ud,"insertOrAppendPlacementNodeIntoContainer");function du(n,i,s){var f=n.tag;if(f===5||f===6)n=n.stateNode,i?s.insertBefore(n,i):s.appendChild(n);else if(f!==4&&(f===27&&ci(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(du(n,i,s),n=n.sibling;n!==null;)du(n,i,s),n=n.sibling}a(du,"insertOrAppendPlacementNode");function cb(n){var i=n.stateNode,s=n.memoizedProps;try{for(var f=n.type,g=i.attributes;g.length;)i.removeAttributeNode(g[0]);zt(i,f,s),i[jt]=n,i[Xt]=s}catch(v){ot(n,n.return,v)}}a(cb,"commitHostSingletonAcquisition");var Nr=!1,wt=!1,Bd=!1,fb=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function uA(n,i){if(n=n.containerInfo,ch=_u,n=wy(n),jf(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var f=s.getSelection&&s.getSelection();if(f&&f.rangeCount!==0){s=f.anchorNode;var g=f.anchorOffset,v=f.focusNode;f=f.focusOffset;try{s.nodeType,v.nodeType}catch{s=null;break e}var T=0,_=-1,P=-1,F=0,ie=0,ue=n,V=null;t:for(;;){for(var G;ue!==s||g!==0&&ue.nodeType!==3||(_=T+g),ue!==v||f!==0&&ue.nodeType!==3||(P=T+f),ue.nodeType===3&&(T+=ue.nodeValue.length),(G=ue.firstChild)!==null;)V=ue,ue=G;for(;;){if(ue===n)break t;if(V===s&&++F===g&&(_=T),V===v&&++ie===f&&(P=T),(G=ue.nextSibling)!==null)break;ue=V,V=ue.parentNode}ue=G}s=_===-1||P===-1?null:{start:_,end:P}}else s=null}s=s||{start:0,end:0}}else s=null;for(fh={focusedElem:n,selectionRange:s},_u=!1,Dt=i;Dt!==null;)if(i=Dt,n=i.child,(i.subtreeFlags&1024)!==0&&n!==null)n.return=i,Dt=n;else for(;Dt!==null;){switch(i=Dt,v=i.alternate,n=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&v!==null){n=void 0,s=i,g=v.memoizedProps,v=v.memoizedState,f=s.stateNode;try{var De=Fi(s.type,g,s.elementType===s.type);n=f.getSnapshotBeforeUpdate(De,v),f.__reactInternalSnapshotBeforeUpdate=n}catch(Ae){ot(s,s.return,Ae)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,s=n.nodeType,s===9)ph(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":ph(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(o(163))}if(n=i.sibling,n!==null){n.return=i.return,Dt=n;break}Dt=i.return}}a(uA,"commitBeforeMutationEffects");function db(n,i,s){var f=s.flags;switch(s.tag){case 0:case 11:case 15:ri(n,s),f&4&&cl(5,s);break;case 1:if(ri(n,s),f&4)if(n=s.stateNode,i===null)try{n.componentDidMount()}catch(T){ot(s,s.return,T)}else{var g=Fi(s.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(g,i,n.__reactInternalSnapshotBeforeUpdate)}catch(T){ot(s,s.return,T)}}f&64&&ab(s),f&512&&fl(s,s.return);break;case 3:if(ri(n,s),f&64&&(n=s.updateQueue,n!==null)){if(i=null,s.child!==null)switch(s.child.tag){case 27:case 5:i=s.child.stateNode;break;case 1:i=s.child.stateNode}try{Yy(n,i)}catch(T){ot(s,s.return,T)}}break;case 27:i===null&&f&4&&cb(s);case 26:case 5:ri(n,s),i===null&&f&4&&sb(s),f&512&&fl(s,s.return);break;case 12:ri(n,s);break;case 13:ri(n,s),f&4&&mb(n,s),f&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=vA.bind(null,s),zA(n,s))));break;case 22:if(f=s.memoizedState!==null||Nr,!f){i=i!==null&&i.memoizedState!==null||wt,g=Nr;var v=wt;Nr=f,(wt=i)&&!v?ii(n,s,(s.subtreeFlags&8772)!==0):ri(n,s),Nr=g,wt=v}break;case 30:break;default:ri(n,s)}}a(db,"commitLayoutEffectOnFiber");function hb(n){var i=n.alternate;i!==null&&(n.alternate=null,hb(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&bf(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}a(hb,"detachFiberAfterEffects");var ct=null,Jt=!1;function Pr(n,i,s){for(s=s.child;s!==null;)pb(n,i,s),s=s.sibling}a(Pr,"recursivelyTraverseDeletionEffects");function pb(n,i,s){if(he&&typeof he.onCommitFiberUnmount=="function")try{he.onCommitFiberUnmount(re,s)}catch{}switch(s.tag){case 26:wt||tr(s,i),Pr(n,i,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:wt||tr(s,i);var f=ct,g=Jt;ci(s.type)&&(ct=s.stateNode,Jt=!1),Pr(n,i,s),Sl(s.stateNode),ct=f,Jt=g;break;case 5:wt||tr(s,i);case 6:if(f=ct,g=Jt,ct=null,Pr(n,i,s),ct=f,Jt=g,ct!==null)if(Jt)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(s.stateNode)}catch(v){ot(s,i,v)}else try{ct.removeChild(s.stateNode)}catch(v){ot(s,i,v)}break;case 18:ct!==null&&(Jt?(n=ct,n0(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),Al(n)):n0(ct,s.stateNode));break;case 4:f=ct,g=Jt,ct=s.stateNode.containerInfo,Jt=!0,Pr(n,i,s),ct=f,Jt=g;break;case 0:case 11:case 14:case 15:wt||ni(2,s,i),wt||ni(4,s,i),Pr(n,i,s);break;case 1:wt||(tr(s,i),f=s.stateNode,typeof f.componentWillUnmount=="function"&&lb(s,i,f)),Pr(n,i,s);break;case 21:Pr(n,i,s);break;case 22:wt=(f=wt)||s.memoizedState!==null,Pr(n,i,s),wt=f;break;default:Pr(n,i,s)}}a(pb,"commitDeletionEffectsOnFiber");function mb(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Al(n)}catch(s){ot(i,i.return,s)}}a(mb,"commitSuspenseHydrationCallbacks");function cA(n){switch(n.tag){case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new fb),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new fb),i;default:throw Error(o(435,n.tag))}}a(cA,"getRetryCache");function Hd(n,i){var s=cA(n);i.forEach(function(f){var g=bA.bind(null,n,f);s.has(f)||(s.add(f),f.then(g,g))})}a(Hd,"attachSuspenseRetryListeners");function fn(n,i){var s=i.deletions;if(s!==null)for(var f=0;f<s.length;f++){var g=s[f],v=n,T=i,_=T;e:for(;_!==null;){switch(_.tag){case 27:if(ci(_.type)){ct=_.stateNode,Jt=!1;break e}break;case 5:ct=_.stateNode,Jt=!1;break e;case 3:case 4:ct=_.stateNode.containerInfo,Jt=!0;break e}_=_.return}if(ct===null)throw Error(o(160));pb(v,T,g),ct=null,Jt=!1,v=g.alternate,v!==null&&(v.return=null),g.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)gb(i,n),i=i.sibling}a(fn,"recursivelyTraverseMutationEffects");var Bn=null;function gb(n,i){var s=n.alternate,f=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:fn(i,n),dn(n),f&4&&(ni(3,n,n.return),cl(3,n),ni(5,n,n.return));break;case 1:fn(i,n),dn(n),f&512&&(wt||s===null||tr(s,s.return)),f&64&&Nr&&(n=n.updateQueue,n!==null&&(f=n.callbacks,f!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?f:s.concat(f))));break;case 26:var g=Bn;if(fn(i,n),dn(n),f&512&&(wt||s===null||tr(s,s.return)),f&4){var v=s!==null?s.memoizedState:null;if(f=n.memoizedState,s===null)if(f===null)if(n.stateNode===null){e:{f=n.type,s=n.memoizedProps,g=g.ownerDocument||g;t:switch(f){case"title":v=g.getElementsByTagName("title")[0],(!v||v[La]||v[jt]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=g.createElement(f),g.head.insertBefore(v,g.querySelector("head > title"))),zt(v,f,s),v[jt]=n,_t(v),f=v;break e;case"link":var T=c0("link","href",g).get(f+(s.href||""));if(T){for(var _=0;_<T.length;_++)if(v=T[_],v.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&v.getAttribute("rel")===(s.rel==null?null:s.rel)&&v.getAttribute("title")===(s.title==null?null:s.title)&&v.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){T.splice(_,1);break t}}v=g.createElement(f),zt(v,f,s),g.head.appendChild(v);break;case"meta":if(T=c0("meta","content",g).get(f+(s.content||""))){for(_=0;_<T.length;_++)if(v=T[_],v.getAttribute("content")===(s.content==null?null:""+s.content)&&v.getAttribute("name")===(s.name==null?null:s.name)&&v.getAttribute("property")===(s.property==null?null:s.property)&&v.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&v.getAttribute("charset")===(s.charSet==null?null:s.charSet)){T.splice(_,1);break t}}v=g.createElement(f),zt(v,f,s),g.head.appendChild(v);break;default:throw Error(o(468,f))}v[jt]=n,_t(v),f=v}n.stateNode=f}else f0(g,n.type,n.stateNode);else n.stateNode=u0(g,f,n.memoizedProps);else v!==f?(v===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):v.count--,f===null?f0(g,n.type,n.stateNode):u0(g,f,n.memoizedProps)):f===null&&n.stateNode!==null&&Id(n,n.memoizedProps,s.memoizedProps)}break;case 27:fn(i,n),dn(n),f&512&&(wt||s===null||tr(s,s.return)),s!==null&&f&4&&Id(n,n.memoizedProps,s.memoizedProps);break;case 5:if(fn(i,n),dn(n),f&512&&(wt||s===null||tr(s,s.return)),n.flags&32){g=n.stateNode;try{xo(g,"")}catch(G){ot(n,n.return,G)}}f&4&&n.stateNode!=null&&(g=n.memoizedProps,Id(n,g,s!==null?s.memoizedProps:g)),f&1024&&(Bd=!0);break;case 6:if(fn(i,n),dn(n),f&4){if(n.stateNode===null)throw Error(o(162));f=n.memoizedProps,s=n.stateNode;try{s.nodeValue=f}catch(G){ot(n,n.return,G)}}break;case 3:if(Ou=null,g=Bn,Bn=Tu(i.containerInfo),fn(i,n),Bn=g,dn(n),f&4&&s!==null&&s.memoizedState.isDehydrated)try{Al(i.containerInfo)}catch(G){ot(n,n.return,G)}Bd&&(Bd=!1,yb(n));break;case 4:f=Bn,Bn=Tu(n.stateNode.containerInfo),fn(i,n),dn(n),Bn=f;break;case 12:fn(i,n),dn(n);break;case 13:fn(i,n),dn(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Yd=St()),f&4&&(f=n.updateQueue,f!==null&&(n.updateQueue=null,Hd(n,f)));break;case 22:g=n.memoizedState!==null;var P=s!==null&&s.memoizedState!==null,F=Nr,ie=wt;if(Nr=F||g,wt=ie||P,fn(i,n),wt=ie,Nr=F,dn(n),f&8192)e:for(i=n.stateNode,i._visibility=g?i._visibility&-2:i._visibility|1,g&&(s===null||P||Nr||wt||qi(n)),s=null,i=n;;){if(i.tag===5||i.tag===26){if(s===null){P=s=i;try{if(v=P.stateNode,g)T=v.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{_=P.stateNode;var ue=P.memoizedProps.style,V=ue!=null&&ue.hasOwnProperty("display")?ue.display:null;_.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(G){ot(P,P.return,G)}}}else if(i.tag===6){if(s===null){P=i;try{P.stateNode.nodeValue=g?"":P.memoizedProps}catch(G){ot(P,P.return,G)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;s===i&&(s=null),i=i.return}s===i&&(s=null),i.sibling.return=i.return,i=i.sibling}f&4&&(f=n.updateQueue,f!==null&&(s=f.retryQueue,s!==null&&(f.retryQueue=null,Hd(n,s))));break;case 19:fn(i,n),dn(n),f&4&&(f=n.updateQueue,f!==null&&(n.updateQueue=null,Hd(n,f)));break;case 30:break;case 21:break;default:fn(i,n),dn(n)}}a(gb,"commitMutationEffectsOnFiber");function dn(n){var i=n.flags;if(i&2){try{for(var s,f=n.return;f!==null;){if(ub(f)){s=f;break}f=f.return}if(s==null)throw Error(o(160));switch(s.tag){case 27:var g=s.stateNode,v=jd(n);du(n,v,g);break;case 5:var T=s.stateNode;s.flags&32&&(xo(T,""),s.flags&=-33);var _=jd(n);du(n,_,T);break;case 3:case 4:var P=s.stateNode.containerInfo,F=jd(n);Ud(n,F,P);break;default:throw Error(o(161))}}catch(ie){ot(n,n.return,ie)}n.flags&=-3}i&4096&&(n.flags&=-4097)}a(dn,"commitReconciliationEffects");function yb(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;yb(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}a(yb,"recursivelyResetForms");function ri(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)db(n,i.alternate,i),i=i.sibling}a(ri,"recursivelyTraverseLayoutEffects");function qi(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:ni(4,i,i.return),qi(i);break;case 1:tr(i,i.return);var s=i.stateNode;typeof s.componentWillUnmount=="function"&&lb(i,i.return,s),qi(i);break;case 27:Sl(i.stateNode);case 26:case 5:tr(i,i.return),qi(i);break;case 22:i.memoizedState===null&&qi(i);break;case 30:qi(i);break;default:qi(i)}n=n.sibling}}a(qi,"recursivelyTraverseDisappearLayoutEffects");function ii(n,i,s){for(s=s&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var f=i.alternate,g=n,v=i,T=v.flags;switch(v.tag){case 0:case 11:case 15:ii(g,v,s),cl(4,v);break;case 1:if(ii(g,v,s),f=v,g=f.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(F){ot(f,f.return,F)}if(f=v,g=f.updateQueue,g!==null){var _=f.stateNode;try{var P=g.shared.hiddenCallbacks;if(P!==null)for(g.shared.hiddenCallbacks=null,g=0;g<P.length;g++)$y(P[g],_)}catch(F){ot(f,f.return,F)}}s&&T&64&&ab(v),fl(v,v.return);break;case 27:cb(v);case 26:case 5:ii(g,v,s),s&&f===null&&T&4&&sb(v),fl(v,v.return);break;case 12:ii(g,v,s);break;case 13:ii(g,v,s),s&&T&4&&mb(g,v);break;case 22:v.memoizedState===null&&ii(g,v,s),fl(v,v.return);break;case 30:break;default:ii(g,v,s)}i=i.sibling}}a(ii,"recursivelyTraverseReappearLayoutEffects");function Fd(n,i){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&Xa(s))}a(Fd,"commitOffscreenPassiveMountEffects");function qd(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Xa(n))}a(qd,"commitCachePassiveMountEffect");function nr(n,i,s,f){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)vb(n,i,s,f),i=i.sibling}a(nr,"recursivelyTraversePassiveMountEffects");function vb(n,i,s,f){var g=i.flags;switch(i.tag){case 0:case 11:case 15:nr(n,i,s,f),g&2048&&cl(9,i);break;case 1:nr(n,i,s,f);break;case 3:nr(n,i,s,f),g&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Xa(n)));break;case 12:if(g&2048){nr(n,i,s,f),n=i.stateNode;try{var v=i.memoizedProps,T=v.id,_=v.onPostCommit;typeof _=="function"&&_(T,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(P){ot(i,i.return,P)}}else nr(n,i,s,f);break;case 13:nr(n,i,s,f);break;case 23:break;case 22:v=i.stateNode,T=i.alternate,i.memoizedState!==null?v._visibility&2?nr(n,i,s,f):dl(n,i):v._visibility&2?nr(n,i,s,f):(v._visibility|=2,Bo(n,i,s,f,(i.subtreeFlags&10256)!==0)),g&2048&&Fd(T,i);break;case 24:nr(n,i,s,f),g&2048&&qd(i.alternate,i);break;default:nr(n,i,s,f)}}a(vb,"commitPassiveMountOnFiber");function Bo(n,i,s,f,g){for(g=g&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var v=n,T=i,_=s,P=f,F=T.flags;switch(T.tag){case 0:case 11:case 15:Bo(v,T,_,P,g),cl(8,T);break;case 23:break;case 22:var ie=T.stateNode;T.memoizedState!==null?ie._visibility&2?Bo(v,T,_,P,g):dl(v,T):(ie._visibility|=2,Bo(v,T,_,P,g)),g&&F&2048&&Fd(T.alternate,T);break;case 24:Bo(v,T,_,P,g),g&&F&2048&&qd(T.alternate,T);break;default:Bo(v,T,_,P,g)}i=i.sibling}}a(Bo,"recursivelyTraverseReconnectPassiveEffects");function dl(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var s=n,f=i,g=f.flags;switch(f.tag){case 22:dl(s,f),g&2048&&Fd(f.alternate,f);break;case 24:dl(s,f),g&2048&&qd(f.alternate,f);break;default:dl(s,f)}i=i.sibling}}a(dl,"recursivelyTraverseAtomicPassiveEffects");var hl=8192;function Ho(n){if(n.subtreeFlags&hl)for(n=n.child;n!==null;)bb(n),n=n.sibling}a(Ho,"recursivelyAccumulateSuspenseyCommit");function bb(n){switch(n.tag){case 26:Ho(n),n.flags&hl&&n.memoizedState!==null&&QA(Bn,n.memoizedState,n.memoizedProps);break;case 5:Ho(n);break;case 3:case 4:var i=Bn;Bn=Tu(n.stateNode.containerInfo),Ho(n),Bn=i;break;case 22:n.memoizedState===null&&(i=n.alternate,i!==null&&i.memoizedState!==null?(i=hl,hl=16777216,Ho(n),hl=i):Ho(n));break;default:Ho(n)}}a(bb,"accumulateSuspenseyCommitOnFiber");function Sb(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}a(Sb,"detachAlternateSiblings");function pl(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var f=i[s];Dt=f,wb(f,n)}Sb(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)xb(n),n=n.sibling}a(pl,"recursivelyTraversePassiveUnmountEffects");function xb(n){switch(n.tag){case 0:case 11:case 15:pl(n),n.flags&2048&&ni(9,n,n.return);break;case 3:pl(n);break;case 12:pl(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,hu(n)):pl(n);break;default:pl(n)}}a(xb,"commitPassiveUnmountOnFiber");function hu(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var f=i[s];Dt=f,wb(f,n)}Sb(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:ni(8,i,i.return),hu(i);break;case 22:s=i.stateNode,s._visibility&2&&(s._visibility&=-3,hu(i));break;default:hu(i)}n=n.sibling}}a(hu,"recursivelyTraverseDisconnectPassiveEffects");function wb(n,i){for(;Dt!==null;){var s=Dt;switch(s.tag){case 0:case 11:case 15:ni(8,s,i);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var f=s.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:Xa(s.memoizedState.cache)}if(f=s.child,f!==null)f.return=s,Dt=f;else e:for(s=n;Dt!==null;){f=Dt;var g=f.sibling,v=f.return;if(hb(f),f===s){Dt=null;break e}if(g!==null){g.return=v,Dt=g;break e}Dt=v}}}a(wb,"commitPassiveUnmountEffectsInsideOfDeletedTree_begin");var fA={getCacheForType:a(function(n){var i=Ut(Rt),s=i.data.get(n);return s===void 0&&(s=n(),i.data.set(n,s)),s},"getCacheForType")},dA=typeof WeakMap=="function"?WeakMap:Map,et=0,at=null,Ve=null,Ye=0,tt=0,hn=null,oi=!1,Fo=!1,Vd=!1,Lr=0,mt=0,ai=0,Vi=0,Gd=0,_n=0,qo=0,ml=null,en=null,$d=!1,Yd=0,pu=1/0,mu=null,li=null,Lt=0,si=null,Vo=null,Go=0,Kd=0,Qd=null,Eb=null,gl=0,Xd=null;function pn(){if((et&2)!==0&&Ye!==0)return Ye&-Ye;if(I.T!==null){var n=Do;return n!==0?n:rh()}return Ug()}a(pn,"requestUpdateLane");function Cb(){_n===0&&(_n=(Ye&536870912)===0||Xe?Lg():536870912);var n=Mn.current;return n!==null&&(n.flags|=32),_n}a(Cb,"requestDeferredLane");function mn(n,i,s){(n===at&&(tt===2||tt===9)||n.cancelPendingCommit!==null)&&($o(n,0),ui(n,Ye,_n,!1)),Pa(n,s),((et&2)===0||n!==at)&&(n===at&&((et&2)===0&&(Vi|=s),mt===4&&ui(n,Ye,_n,!1)),rr(n))}a(mn,"scheduleUpdateOnFiber");function Tb(n,i,s){if((et&6)!==0)throw Error(o(327));var f=!s&&(i&124)===0&&(i&n.expiredLanes)===0||wn(n,i),g=f?mA(n,i):Jd(n,i,!0),v=f;do{if(g===0){Fo&&!f&&ui(n,i,0,!1);break}else{if(s=n.current.alternate,v&&!hA(s)){g=Jd(n,i,!1),v=!1;continue}if(g===2){if(v=i,n.errorRecoveryDisabledLanes&v)var T=0;else T=n.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){i=T;e:{var _=n;g=ml;var P=_.current.memoizedState.isDehydrated;if(P&&($o(_,T).flags|=256),T=Jd(_,T,!1),T!==2){if(Vd&&!P){_.errorRecoveryDisabledLanes|=v,Vi|=v,g=4;break e}v=en,en=g,v!==null&&(en===null?en=v:en.push.apply(en,v))}g=T}if(v=!1,g!==2)continue}}if(g===1){$o(n,0),ui(n,i,0,!0);break}e:{switch(f=n,v=g,v){case 0:case 1:throw Error(o(345));case 4:if((i&4194048)!==i)break;case 6:ui(f,i,_n,!oi);break e;case 2:en=null;break;case 3:case 5:break;default:throw Error(o(329))}if((i&62914560)===i&&(g=Yd+300-St(),10<g)){if(ui(f,i,_n,!oi),Mt(f,0,!0)!==0)break e;f.timeoutHandle=e0(Rb.bind(null,f,s,en,mu,$d,i,_n,Vi,qo,oi,v,2,-0,0),g);break e}Rb(f,s,en,mu,$d,i,_n,Vi,qo,oi,v,0,-0,0)}}break}while(!0);rr(n)}a(Tb,"performWorkOnRoot");function Rb(n,i,s,f,g,v,T,_,P,F,ie,ue,V,G){if(n.timeoutHandle=-1,ue=i.subtreeFlags,(ue&8192||(ue&16785408)===16785408)&&(El={stylesheets:null,count:0,unsuspend:KA},bb(i),ue=XA(),ue!==null)){n.cancelPendingCommit=ue(Nb.bind(null,n,i,v,s,f,g,T,_,P,ie,1,V,G)),ui(n,v,T,!F);return}Nb(n,i,v,s,f,g,T,_,P)}a(Rb,"commitRootWhenReady");function hA(n){for(var i=n;;){var s=i.tag;if((s===0||s===11||s===15)&&i.flags&16384&&(s=i.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var f=0;f<s.length;f++){var g=s[f],v=g.getSnapshot;g=g.value;try{if(!un(v(),g))return!1}catch{return!1}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}a(hA,"isRenderConsistentWithExternalStores");function ui(n,i,s,f){i&=~Gd,i&=~Vi,n.suspendedLanes|=i,n.pingedLanes&=~i,f&&(n.warmLanes|=i),f=n.expirationTimes;for(var g=i;0<g;){var v=31-ke(g),T=1<<v;f[v]=-1,g&=~T}s!==0&&Ig(n,s,i)}a(ui,"markRootSuspended");function gu(){return(et&6)===0?(yl(0),!1):!0}a(gu,"flushSyncWork$1");function Wd(){if(Ve!==null){if(tt===0)var n=Ve.return;else n=Ve,Or=ji=null,pd(n),jo=null,ll=0,n=Ve;for(;n!==null;)ob(n.alternate,n),n=n.return;Ve=null}}a(Wd,"resetWorkInProgressStack");function $o(n,i){var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,kA(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),Wd(),at=n,Ve=s=Cr(n.current,null),Ye=i,tt=0,hn=null,oi=!1,Fo=wn(n,i),Vd=!1,qo=_n=Gd=Vi=ai=mt=0,en=ml=null,$d=!1,(i&8)!==0&&(i|=i&32);var f=n.entangledLanes;if(f!==0)for(n=n.entanglements,f&=i;0<f;){var g=31-ke(f),v=1<<g;i|=n[g],f&=~v}return Lr=i,js(),s}a($o,"prepareFreshStack");function Ob(n,i){He=null,I.H=ru,i===Za||i===Ys?(i=Vy(),tt=3):i===Hy?(i=Vy(),tt=4):tt=i===Gv?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,hn=i,Ve===null&&(mt=1,su(n,Tn(i,n.current)))}a(Ob,"handleThrow");function Ab(){var n=I.H;return I.H=ru,n===null?ru:n}a(Ab,"pushDispatcher");function Mb(){var n=I.A;return I.A=fA,n}a(Mb,"pushAsyncDispatcher");function Zd(){mt=4,oi||(Ye&4194048)!==Ye&&Mn.current!==null||(Fo=!0),(ai&134217727)===0&&(Vi&134217727)===0||at===null||ui(at,Ye,_n,!1)}a(Zd,"renderDidSuspendDelayIfPossible");function Jd(n,i,s){var f=et;et|=2;var g=Ab(),v=Mb();(at!==n||Ye!==i)&&(mu=null,$o(n,i)),i=!1;var T=mt;e:do try{if(tt!==0&&Ve!==null){var _=Ve,P=hn;switch(tt){case 8:Wd(),T=6;break e;case 3:case 2:case 9:case 6:Mn.current===null&&(i=!0);var F=tt;if(tt=0,hn=null,Yo(n,_,P,F),s&&Fo){T=0;break e}break;default:F=tt,tt=0,hn=null,Yo(n,_,P,F)}}pA(),T=mt;break}catch(ie){Ob(n,ie)}while(!0);return i&&n.shellSuspendCounter++,Or=ji=null,et=f,I.H=g,I.A=v,Ve===null&&(at=null,Ye=0,js()),T}a(Jd,"renderRootSync");function pA(){for(;Ve!==null;)_b(Ve)}a(pA,"workLoopSync");function mA(n,i){var s=et;et|=2;var f=Ab(),g=Mb();at!==n||Ye!==i?(mu=null,pu=St()+500,$o(n,i)):Fo=wn(n,i);e:do try{if(tt!==0&&Ve!==null){i=Ve;var v=hn;t:switch(tt){case 1:tt=0,hn=null,Yo(n,i,v,1);break;case 2:case 9:if(Fy(v)){tt=0,hn=null,kb(i);break}i=a(function(){tt!==2&&tt!==9||at!==n||(tt=7),rr(n)},"lanes"),v.then(i,i);break e;case 3:tt=7;break e;case 4:tt=5;break e;case 7:Fy(v)?(tt=0,hn=null,kb(i)):(tt=0,hn=null,Yo(n,i,v,7));break;case 5:var T=null;switch(Ve.tag){case 26:T=Ve.memoizedState;case 5:case 27:var _=Ve;if(!T||d0(T)){tt=0,hn=null;var P=_.sibling;if(P!==null)Ve=P;else{var F=_.return;F!==null?(Ve=F,yu(F)):Ve=null}break t}}tt=0,hn=null,Yo(n,i,v,5);break;case 6:tt=0,hn=null,Yo(n,i,v,6);break;case 8:Wd(),mt=6;break e;default:throw Error(o(462))}}gA();break}catch(ie){Ob(n,ie)}while(!0);return Or=ji=null,I.H=f,I.A=g,et=s,Ve!==null?0:(at=null,Ye=0,js(),mt)}a(mA,"renderRootConcurrent");function gA(){for(;Ve!==null&&!Kt();)_b(Ve)}a(gA,"workLoopConcurrentByScheduler");function _b(n){var i=rb(n.alternate,n,Lr);n.memoizedProps=n.pendingProps,i===null?yu(n):Ve=i}a(_b,"performUnitOfWork");function kb(n){var i=n,s=i.alternate;switch(i.tag){case 15:case 0:i=Wv(s,i,i.pendingProps,i.type,void 0,Ye);break;case 11:i=Wv(s,i,i.pendingProps,i.type.render,i.ref,Ye);break;case 5:pd(i);default:ob(s,i),i=Ve=Dy(i,Lr),i=rb(s,i,Lr)}n.memoizedProps=n.pendingProps,i===null?yu(n):Ve=i}a(kb,"replaySuspendedUnitOfWork");function Yo(n,i,s,f){Or=ji=null,pd(i),jo=null,ll=0;var g=i.return;try{if(oA(n,g,i,s,Ye)){mt=1,su(n,Tn(s,n.current)),Ve=null;return}}catch(v){if(g!==null)throw Ve=g,v;mt=1,su(n,Tn(s,n.current)),Ve=null;return}i.flags&32768?(Xe||f===1?n=!0:Fo||(Ye&536870912)!==0?n=!1:(oi=n=!0,(f===2||f===9||f===3||f===6)&&(f=Mn.current,f!==null&&f.tag===13&&(f.flags|=16384))),Db(i,n)):yu(i)}a(Yo,"throwAndUnwindWorkLoop");function yu(n){var i=n;do{if((i.flags&32768)!==0){Db(i,oi);return}n=i.return;var s=lA(i.alternate,i,Lr);if(s!==null){Ve=s;return}if(i=i.sibling,i!==null){Ve=i;return}Ve=i=n}while(i!==null);mt===0&&(mt=5)}a(yu,"completeUnitOfWork");function Db(n,i){do{var s=sA(n.alternate,n);if(s!==null){s.flags&=32767,Ve=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(n=n.sibling,n!==null)){Ve=n;return}Ve=n=s}while(n!==null);mt=6,Ve=null}a(Db,"unwindUnitOfWork");function Nb(n,i,s,f,g,v,T,_,P){n.cancelPendingCommit=null;do vu();while(Lt!==0);if((et&6)!==0)throw Error(o(327));if(i!==null){if(i===n.current)throw Error(o(177));if(v=i.lanes|i.childLanes,v|=qf,KR(n,s,v,T,_,P),n===at&&(Ve=at=null,Ye=0),Vo=i,si=n,Go=s,Kd=v,Qd=g,Eb=f,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,SA(xn,function(){return jb(),null})):(n.callbackNode=null,n.callbackPriority=0),f=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||f){f=I.T,I.T=null,g=Q.p,Q.p=2,T=et,et|=4;try{uA(n,i,s)}finally{et=T,Q.p=g,I.T=f}}Lt=1,Pb(),Lb(),zb()}}a(Nb,"commitRoot");function Pb(){if(Lt===1){Lt=0;var n=si,i=Vo,s=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||s){s=I.T,I.T=null;var f=Q.p;Q.p=2;var g=et;et|=4;try{gb(i,n);var v=fh,T=wy(n.containerInfo),_=v.focusedElem,P=v.selectionRange;if(T!==_&&_&&_.ownerDocument&&xy(_.ownerDocument.documentElement,_)){if(P!==null&&jf(_)){var F=P.start,ie=P.end;if(ie===void 0&&(ie=F),"selectionStart"in _)_.selectionStart=F,_.selectionEnd=Math.min(ie,_.value.length);else{var ue=_.ownerDocument||document,V=ue&&ue.defaultView||window;if(V.getSelection){var G=V.getSelection(),De=_.textContent.length,Ae=Math.min(P.start,De),it=P.end===void 0?Ae:Math.min(P.end,De);!G.extend&&Ae>it&&(T=it,it=Ae,Ae=T);var B=Sy(_,Ae),U=Sy(_,it);if(B&&U&&(G.rangeCount!==1||G.anchorNode!==B.node||G.anchorOffset!==B.offset||G.focusNode!==U.node||G.focusOffset!==U.offset)){var H=ue.createRange();H.setStart(B.node,B.offset),G.removeAllRanges(),Ae>it?(G.addRange(H),G.extend(U.node,U.offset)):(H.setEnd(U.node,U.offset),G.addRange(H))}}}}for(ue=[],G=_;G=G.parentNode;)G.nodeType===1&&ue.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<ue.length;_++){var le=ue[_];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}_u=!!ch,fh=ch=null}finally{et=g,Q.p=f,I.T=s}}n.current=i,Lt=2}}a(Pb,"flushMutationEffects");function Lb(){if(Lt===2){Lt=0;var n=si,i=Vo,s=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||s){s=I.T,I.T=null;var f=Q.p;Q.p=2;var g=et;et|=4;try{db(n,i.alternate,i)}finally{et=g,Q.p=f,I.T=s}}Lt=3}}a(Lb,"flushLayoutEffects");function zb(){if(Lt===4||Lt===3){Lt=0,an();var n=si,i=Vo,s=Go,f=Eb;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Lt=5:(Lt=0,Vo=si=null,Ib(n,n.pendingLanes));var g=n.pendingLanes;if(g===0&&(li=null),yf(s),i=i.stateNode,he&&typeof he.onCommitFiberRoot=="function")try{he.onCommitFiberRoot(re,i,void 0,(i.current.flags&128)===128)}catch{}if(f!==null){i=I.T,g=Q.p,Q.p=2,I.T=null;try{for(var v=n.onRecoverableError,T=0;T<f.length;T++){var _=f[T];v(_.value,{componentStack:_.stack})}}finally{I.T=i,Q.p=g}}(Go&3)!==0&&vu(),rr(n),g=n.pendingLanes,(s&4194090)!==0&&(g&42)!==0?n===Xd?gl++:(gl=0,Xd=n):gl=0,yl(0)}}a(zb,"flushSpawnedWork");function Ib(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,Xa(i)))}a(Ib,"releaseRootPooledCache");function vu(n){return Pb(),Lb(),zb(),jb()}a(vu,"flushPendingEffects");function jb(){if(Lt!==5)return!1;var n=si,i=Kd;Kd=0;var s=yf(Go),f=I.T,g=Q.p;try{Q.p=32>s?32:s,I.T=null,s=Qd,Qd=null;var v=si,T=Go;if(Lt=0,Vo=si=null,Go=0,(et&6)!==0)throw Error(o(331));var _=et;if(et|=4,xb(v.current),vb(v,v.current,T,s),et=_,yl(0,!1),he&&typeof he.onPostCommitFiberRoot=="function")try{he.onPostCommitFiberRoot(re,v)}catch{}return!0}finally{Q.p=g,I.T=f,Ib(n,i)}}a(jb,"flushPassiveEffects");function Ub(n,i,s){i=Tn(s,i),i=Ad(n.stateNode,i,2),n=Zr(n,i,2),n!==null&&(Pa(n,2),rr(n))}a(Ub,"captureCommitPhaseErrorOnRoot");function ot(n,i,s){if(n.tag===3)Ub(n,n,s);else for(;i!==null;){if(i.tag===3){Ub(i,n,s);break}else if(i.tag===1){var f=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(li===null||!li.has(f))){n=Tn(s,n),s=qv(2),f=Zr(i,s,2),f!==null&&(Vv(s,f,i,n),Pa(f,2),rr(f));break}}i=i.return}}a(ot,"captureCommitPhaseError");function eh(n,i,s){var f=n.pingCache;if(f===null){f=n.pingCache=new dA;var g=new Set;f.set(i,g)}else g=f.get(i),g===void 0&&(g=new Set,f.set(i,g));g.has(s)||(Vd=!0,g.add(s),n=yA.bind(null,n,i,s),i.then(n,n))}a(eh,"attachPingListener");function yA(n,i,s){var f=n.pingCache;f!==null&&f.delete(i),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,at===n&&(Ye&s)===s&&(mt===4||mt===3&&(Ye&62914560)===Ye&&300>St()-Yd?(et&2)===0&&$o(n,0):Gd|=s,qo===Ye&&(qo=0)),rr(n)}a(yA,"pingSuspendedRoot");function Bb(n,i){i===0&&(i=zg()),n=Ao(n,i),n!==null&&(Pa(n,i),rr(n))}a(Bb,"retryTimedOutBoundary");function vA(n){var i=n.memoizedState,s=0;i!==null&&(s=i.retryLane),Bb(n,s)}a(vA,"retryDehydratedSuspenseBoundary");function bA(n,i){var s=0;switch(n.tag){case 13:var f=n.stateNode,g=n.memoizedState;g!==null&&(s=g.retryLane);break;case 19:f=n.stateNode;break;case 22:f=n.stateNode._retryCache;break;default:throw Error(o(314))}f!==null&&f.delete(i),Bb(n,s)}a(bA,"resolveRetryWakeable");function SA(n,i){return Ie(n,i)}a(SA,"scheduleCallback$1");var bu=null,Ko=null,th=!1,Su=!1,nh=!1,Gi=0;function rr(n){n!==Ko&&n.next===null&&(Ko===null?bu=Ko=n:Ko=Ko.next=n),Su=!0,th||(th=!0,wA())}a(rr,"ensureRootIsScheduled");function yl(n,i){if(!nh&&Su){nh=!0;do for(var s=!1,f=bu;f!==null;){if(n!==0){var g=f.pendingLanes;if(g===0)var v=0;else{var T=f.suspendedLanes,_=f.pingedLanes;v=(1<<31-ke(42|n)+1)-1,v&=g&~(T&~_),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(s=!0,Vb(f,v))}else v=Ye,v=Mt(f,f===at?v:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(v&3)===0||wn(f,v)||(s=!0,Vb(f,v));f=f.next}while(s);nh=!1}}a(yl,"flushSyncWorkAcrossRoots_impl");function xA(){Hb()}a(xA,"processRootScheduleInImmediateTask");function Hb(){Su=th=!1;var n=0;Gi!==0&&(_A()&&(n=Gi),Gi=0);for(var i=St(),s=null,f=bu;f!==null;){var g=f.next,v=Fb(f,i);v===0?(f.next=null,s===null?bu=g:s.next=g,g===null&&(Ko=s)):(s=f,(n!==0||(v&3)!==0)&&(Su=!0)),f=g}yl(n)}a(Hb,"processRootScheduleInMicrotask");function Fb(n,i){for(var s=n.suspendedLanes,f=n.pingedLanes,g=n.expirationTimes,v=n.pendingLanes&-62914561;0<v;){var T=31-ke(v),_=1<<T,P=g[T];P===-1?((_&s)===0||(_&f)!==0)&&(g[T]=jn(_,i)):P<=i&&(n.expiredLanes|=_),v&=~_}if(i=at,s=Ye,s=Mt(n,n===i?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),f=n.callbackNode,s===0||n===i&&(tt===2||tt===9)||n.cancelPendingCommit!==null)return f!==null&&f!==null&&ut(f),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||wn(n,s)){if(i=s&-s,i===n.callbackPriority)return i;switch(f!==null&&ut(f),yf(s)){case 2:case 8:s=Ai;break;case 32:s=xn;break;case 268435456:s=ho;break;default:s=xn}return f=qb.bind(null,n),s=Ie(s,f),n.callbackPriority=i,n.callbackNode=s,i}return f!==null&&f!==null&&ut(f),n.callbackPriority=2,n.callbackNode=null,2}a(Fb,"scheduleTaskForRootDuringMicrotask");function qb(n,i){if(Lt!==0&&Lt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(vu()&&n.callbackNode!==s)return null;var f=Ye;return f=Mt(n,n===at?f:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),f===0?null:(Tb(n,f,i),Fb(n,St()),n.callbackNode!=null&&n.callbackNode===s?qb.bind(null,n):null)}a(qb,"performWorkOnRootViaSchedulerTask");function Vb(n,i){if(vu())return null;Tb(n,i,!0)}a(Vb,"performSyncWorkOnRoot");function wA(){DA(function(){(et&6)!==0?Ie($r,xA):Hb()})}a(wA,"scheduleImmediateRootScheduleTask");function rh(){return Gi===0&&(Gi=Lg()),Gi}a(rh,"requestTransitionLane");function Gb(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:ks(""+n)}a(Gb,"coerceFormActionProp");function $b(n,i){var s=i.ownerDocument.createElement("input");return s.name=i.name,s.value=i.value,n.id&&s.setAttribute("form",n.id),i.parentNode.insertBefore(s,i),n=new FormData(n),s.parentNode.removeChild(s),n}a($b,"createFormDataWithSubmitter");function EA(n,i,s,f,g){if(i==="submit"&&s&&s.stateNode===g){var v=Gb((g[Xt]||null).action),T=f.submitter;T&&(i=(i=T[Xt]||null)?Gb(i.formAction):T.getAttribute("formAction"),i!==null&&(v=i,T=null));var _=new Ls("action","action",null,f,g);n.push({event:_,listeners:[{instance:null,listener:a(function(){if(f.defaultPrevented){if(Gi!==0){var P=T?$b(g,T):new FormData(g);Ed(s,{pending:!0,data:P,method:g.method,action:v},null,P)}}else typeof v=="function"&&(_.preventDefault(),P=T?$b(g,T):new FormData(g),Ed(s,{pending:!0,data:P,method:g.method,action:v},v,P))},"listener"),currentTarget:g}]})}}a(EA,"extractEvents$1");for(var ih=0;ih<Ff.length;ih++){var oh=Ff[ih],CA=oh.toLowerCase(),TA=oh[0].toUpperCase()+oh.slice(1);Un(CA,"on"+TA)}Un(Ty,"onAnimationEnd"),Un(Ry,"onAnimationIteration"),Un(Oy,"onAnimationStart"),Un("dblclick","onDoubleClick"),Un("focusin","onFocus"),Un("focusout","onBlur"),Un(FO,"onTransitionRun"),Un(qO,"onTransitionStart"),Un(VO,"onTransitionCancel"),Un(Ay,"onTransitionEnd"),vo("onMouseEnter",["mouseout","mouseover"]),vo("onMouseLeave",["mouseout","mouseover"]),vo("onPointerEnter",["pointerout","pointerover"]),vo("onPointerLeave",["pointerout","pointerover"]),Mi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Mi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Mi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Mi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Mi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Mi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),RA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vl));function Yb(n,i){i=(i&4)!==0;for(var s=0;s<n.length;s++){var f=n[s],g=f.event;f=f.listeners;e:{var v=void 0;if(i)for(var T=f.length-1;0<=T;T--){var _=f[T],P=_.instance,F=_.currentTarget;if(_=_.listener,P!==v&&g.isPropagationStopped())break e;v=_,g.currentTarget=F;try{v(g)}catch(ie){lu(ie)}g.currentTarget=null,v=P}else for(T=0;T<f.length;T++){if(_=f[T],P=_.instance,F=_.currentTarget,_=_.listener,P!==v&&g.isPropagationStopped())break e;v=_,g.currentTarget=F;try{v(g)}catch(ie){lu(ie)}g.currentTarget=null,v=P}}}}a(Yb,"processDispatchQueue");function Ge(n,i){var s=i[vf];s===void 0&&(s=i[vf]=new Set);var f=n+"__bubble";s.has(f)||(Kb(i,n,2,!1),s.add(f))}a(Ge,"listenToNonDelegatedEvent");function ah(n,i,s){var f=0;i&&(f|=4),Kb(s,n,f,i)}a(ah,"listenToNativeEvent");var xu="_reactListening"+Math.random().toString(36).slice(2);function lh(n){if(!n[xu]){n[xu]=!0,Hg.forEach(function(s){s!=="selectionchange"&&(RA.has(s)||ah(s,!1,n),ah(s,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[xu]||(i[xu]=!0,ah("selectionchange",!1,i))}}a(lh,"listenToAllSupportedEvents");function Kb(n,i,s,f){switch(v0(i)){case 2:var g=JA;break;case 8:g=eM;break;default:g=xh}s=g.bind(null,i,s,n),g=void 0,!Mf||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(g=!0),f?g!==void 0?n.addEventListener(i,s,{capture:!0,passive:g}):n.addEventListener(i,s,!0):g!==void 0?n.addEventListener(i,s,{passive:g}):n.addEventListener(i,s,!1)}a(Kb,"addTrappedEventListener");function sh(n,i,s,f,g){var v=f;if((i&1)===0&&(i&2)===0&&f!==null)e:for(;;){if(f===null)return;var T=f.tag;if(T===3||T===4){var _=f.stateNode.containerInfo;if(_===g)break;if(T===4)for(T=f.return;T!==null;){var P=T.tag;if((P===3||P===4)&&T.stateNode.containerInfo===g)return;T=T.return}for(;_!==null;){if(T=mo(_),T===null)return;if(P=T.tag,P===5||P===6||P===26||P===27){f=v=T;continue e}_=_.parentNode}}f=f.return}ty(function(){var F=v,ie=Of(s),ue=[];e:{var V=My.get(n);if(V!==void 0){var G=Ls,De=n;switch(n){case"keypress":if(Ns(s)===0)break e;case"keydown":case"keyup":G=SO;break;case"focusin":De="focus",G=Nf;break;case"focusout":De="blur",G=Nf;break;case"beforeblur":case"afterblur":G=Nf;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=iy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=sO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=EO;break;case Ty:case Ry:case Oy:G=fO;break;case Ay:G=TO;break;case"scroll":case"scrollend":G=aO;break;case"wheel":G=OO;break;case"copy":case"cut":case"paste":G=hO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=ay;break;case"toggle":case"beforetoggle":G=MO}var Ae=(i&4)!==0,it=!Ae&&(n==="scroll"||n==="scrollend"),B=Ae?V!==null?V+"Capture":null:V;Ae=[];for(var U=F,H;U!==null;){var le=U;if(H=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||H===null||B===null||(le=Ia(U,B),le!=null&&Ae.push(bl(U,le,H))),it)break;U=U.return}0<Ae.length&&(V=new G(V,De,null,s,ie),ue.push({event:V,listeners:Ae}))}}if((i&7)===0){e:{if(V=n==="mouseover"||n==="pointerover",G=n==="mouseout"||n==="pointerout",V&&s!==Rf&&(De=s.relatedTarget||s.fromElement)&&(mo(De)||De[po]))break e;if((G||V)&&(V=ie.window===ie?ie:(V=ie.ownerDocument)?V.defaultView||V.parentWindow:window,G?(De=s.relatedTarget||s.toElement,G=F,De=De?mo(De):null,De!==null&&(it=u(De),Ae=De.tag,De!==it||Ae!==5&&Ae!==27&&Ae!==6)&&(De=null)):(G=null,De=F),G!==De)){if(Ae=iy,le="onMouseLeave",B="onMouseEnter",U="mouse",(n==="pointerout"||n==="pointerover")&&(Ae=ay,le="onPointerLeave",B="onPointerEnter",U="pointer"),it=G==null?V:za(G),H=De==null?V:za(De),V=new Ae(le,U+"leave",G,s,ie),V.target=it,V.relatedTarget=H,le=null,mo(ie)===F&&(Ae=new Ae(B,U+"enter",De,s,ie),Ae.target=H,Ae.relatedTarget=it,le=Ae),it=le,G&&De)t:{for(Ae=G,B=De,U=0,H=Ae;H;H=Qo(H))U++;for(H=0,le=B;le;le=Qo(le))H++;for(;0<U-H;)Ae=Qo(Ae),U--;for(;0<H-U;)B=Qo(B),H--;for(;U--;){if(Ae===B||B!==null&&Ae===B.alternate)break t;Ae=Qo(Ae),B=Qo(B)}Ae=null}else Ae=null;G!==null&&Qb(ue,V,G,Ae,!1),De!==null&&it!==null&&Qb(ue,it,De,Ae,!0)}}e:{if(V=F?za(F):window,G=V.nodeName&&V.nodeName.toLowerCase(),G==="select"||G==="input"&&V.type==="file")var Se=py;else if(dy(V))if(my)Se=UO;else{Se=IO;var Fe=zO}else G=V.nodeName,!G||G.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?F&&Tf(F.elementType)&&(Se=py):Se=jO;if(Se&&(Se=Se(n,F))){hy(ue,Se,s,ie);break e}Fe&&Fe(n,V,F),n==="focusout"&&F&&V.type==="number"&&F.memoizedProps.value!=null&&Cf(V,"number",V.value)}switch(Fe=F?za(F):window,n){case"focusin":(dy(Fe)||Fe.contentEditable==="true")&&(To=Fe,Uf=F,Ga=null);break;case"focusout":Ga=Uf=To=null;break;case"mousedown":Bf=!0;break;case"contextmenu":case"mouseup":case"dragend":Bf=!1,Ey(ue,s,ie);break;case"selectionchange":if(HO)break;case"keydown":case"keyup":Ey(ue,s,ie)}var Re;if(Lf)e:{switch(n){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Co?cy(n,s)&&(Me="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Me="onCompositionStart");Me&&(ly&&s.locale!=="ko"&&(Co||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Co&&(Re=ny()):(Kr=ie,_f="value"in Kr?Kr.value:Kr.textContent,Co=!0)),Fe=wu(F,Me),0<Fe.length&&(Me=new oy(Me,n,null,s,ie),ue.push({event:Me,listeners:Fe}),Re?Me.data=Re:(Re=fy(s),Re!==null&&(Me.data=Re)))),(Re=kO?DO(n,s):NO(n,s))&&(Me=wu(F,"onBeforeInput"),0<Me.length&&(Fe=new oy("onBeforeInput","beforeinput",null,s,ie),ue.push({event:Fe,listeners:Me}),Fe.data=Re)),EA(ue,n,F,s,ie)}Yb(ue,i)})}a(sh,"dispatchEventForPluginEventSystem");function bl(n,i,s){return{instance:n,listener:i,currentTarget:s}}a(bl,"createDispatchListener");function wu(n,i){for(var s=i+"Capture",f=[];n!==null;){var g=n,v=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||v===null||(g=Ia(n,s),g!=null&&f.unshift(bl(n,g,v)),g=Ia(n,i),g!=null&&f.push(bl(n,g,v))),n.tag===3)return f;n=n.return}return[]}a(wu,"accumulateTwoPhaseListeners");function Qo(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}a(Qo,"getParent");function Qb(n,i,s,f,g){for(var v=i._reactName,T=[];s!==null&&s!==f;){var _=s,P=_.alternate,F=_.stateNode;if(_=_.tag,P!==null&&P===f)break;_!==5&&_!==26&&_!==27||F===null||(P=F,g?(F=Ia(s,v),F!=null&&T.unshift(bl(s,F,P))):g||(F=Ia(s,v),F!=null&&T.push(bl(s,F,P)))),s=s.return}T.length!==0&&n.push({event:i,listeners:T})}a(Qb,"accumulateEnterLeaveListenersForEvent");var OA=/\r\n?/g,AA=/\u0000|\uFFFD/g;function Xb(n){return(typeof n=="string"?n:""+n).replace(OA,`
49
+ `).replace(AA,"")}a(Xb,"normalizeMarkupForTextOrAttribute");function Wb(n,i){return i=Xb(i),Xb(n)===i}a(Wb,"checkForUnmatchedText");function Eu(){}a(Eu,"noop$1");function rt(n,i,s,f,g,v){switch(s){case"children":typeof f=="string"?i==="body"||i==="textarea"&&f===""||xo(n,f):(typeof f=="number"||typeof f=="bigint")&&i!=="body"&&xo(n,""+f);break;case"className":As(n,"class",f);break;case"tabIndex":As(n,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":As(n,s,f);break;case"style":Jg(n,f,v);break;case"data":if(i!=="object"){As(n,"data",f);break}case"src":case"href":if(f===""&&(i!=="a"||s!=="href")){n.removeAttribute(s);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){n.removeAttribute(s);break}f=ks(""+f),n.setAttribute(s,f);break;case"action":case"formAction":if(typeof f=="function"){n.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(s==="formAction"?(i!=="input"&&rt(n,i,"name",g.name,g,null),rt(n,i,"formEncType",g.formEncType,g,null),rt(n,i,"formMethod",g.formMethod,g,null),rt(n,i,"formTarget",g.formTarget,g,null)):(rt(n,i,"encType",g.encType,g,null),rt(n,i,"method",g.method,g,null),rt(n,i,"target",g.target,g,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){n.removeAttribute(s);break}f=ks(""+f),n.setAttribute(s,f);break;case"onClick":f!=null&&(n.onclick=Eu);break;case"onScroll":f!=null&&Ge("scroll",n);break;case"onScrollEnd":f!=null&&Ge("scrollend",n);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(o(61));if(s=f.__html,s!=null){if(g.children!=null)throw Error(o(60));n.innerHTML=s}}break;case"multiple":n.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":n.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){n.removeAttribute("xlink:href");break}s=ks(""+f),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?n.setAttribute(s,""+f):n.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":f&&typeof f!="function"&&typeof f!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":f===!0?n.setAttribute(s,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?n.setAttribute(s,f):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?n.setAttribute(s,f):n.removeAttribute(s);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?n.removeAttribute(s):n.setAttribute(s,f);break;case"popover":Ge("beforetoggle",n),Ge("toggle",n),Os(n,"popover",f);break;case"xlinkActuate":wr(n,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":wr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":wr(n,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":wr(n,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":wr(n,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":wr(n,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":wr(n,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":wr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":wr(n,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":Os(n,"is",f);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=iO.get(s)||s,Os(n,s,f))}}a(rt,"setProp");function uh(n,i,s,f,g,v){switch(s){case"style":Jg(n,f,v);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(o(61));if(s=f.__html,s!=null){if(g.children!=null)throw Error(o(60));n.innerHTML=s}}break;case"children":typeof f=="string"?xo(n,f):(typeof f=="number"||typeof f=="bigint")&&xo(n,""+f);break;case"onScroll":f!=null&&Ge("scroll",n);break;case"onScrollEnd":f!=null&&Ge("scrollend",n);break;case"onClick":f!=null&&(n.onclick=Eu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fg.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(g=s.endsWith("Capture"),i=s.slice(2,g?s.length-7:void 0),v=n[Xt]||null,v=v!=null?v[s]:null,typeof v=="function"&&n.removeEventListener(i,v,g),typeof f=="function")){typeof v!="function"&&v!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(i,f,g);break e}s in n?n[s]=f:f===!0?n.setAttribute(s,""):Os(n,s,f)}}}a(uh,"setPropOnCustomElement");function zt(n,i,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",n),Ge("load",n);var f=!1,g=!1,v;for(v in s)if(s.hasOwnProperty(v)){var T=s[v];if(T!=null)switch(v){case"src":f=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:rt(n,i,v,T,s,null)}}g&&rt(n,i,"srcSet",s.srcSet,s,null),f&&rt(n,i,"src",s.src,s,null);return;case"input":Ge("invalid",n);var _=v=T=g=null,P=null,F=null;for(f in s)if(s.hasOwnProperty(f)){var ie=s[f];if(ie!=null)switch(f){case"name":g=ie;break;case"type":T=ie;break;case"checked":P=ie;break;case"defaultChecked":F=ie;break;case"value":v=ie;break;case"defaultValue":_=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(o(137,i));break;default:rt(n,i,f,ie,s,null)}}Qg(n,v,_,P,F,T,g,!1),Ms(n);return;case"select":Ge("invalid",n),f=T=v=null;for(g in s)if(s.hasOwnProperty(g)&&(_=s[g],_!=null))switch(g){case"value":v=_;break;case"defaultValue":T=_;break;case"multiple":f=_;default:rt(n,i,g,_,s,null)}i=v,s=T,n.multiple=!!f,i!=null?So(n,!!f,i,!1):s!=null&&So(n,!!f,s,!0);return;case"textarea":Ge("invalid",n),v=g=f=null;for(T in s)if(s.hasOwnProperty(T)&&(_=s[T],_!=null))switch(T){case"value":f=_;break;case"defaultValue":g=_;break;case"children":v=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(91));break;default:rt(n,i,T,_,s,null)}Wg(n,f,g,v),Ms(n);return;case"option":for(P in s)if(s.hasOwnProperty(P)&&(f=s[P],f!=null))switch(P){case"selected":n.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:rt(n,i,P,f,s,null)}return;case"dialog":Ge("beforetoggle",n),Ge("toggle",n),Ge("cancel",n),Ge("close",n);break;case"iframe":case"object":Ge("load",n);break;case"video":case"audio":for(f=0;f<vl.length;f++)Ge(vl[f],n);break;case"image":Ge("error",n),Ge("load",n);break;case"details":Ge("toggle",n);break;case"embed":case"source":case"link":Ge("error",n),Ge("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(F in s)if(s.hasOwnProperty(F)&&(f=s[F],f!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:rt(n,i,F,f,s,null)}return;default:if(Tf(i)){for(ie in s)s.hasOwnProperty(ie)&&(f=s[ie],f!==void 0&&uh(n,i,ie,f,s,void 0));return}}for(_ in s)s.hasOwnProperty(_)&&(f=s[_],f!=null&&rt(n,i,_,f,s,null))}a(zt,"setInitialProperties");function MA(n,i,s,f){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,v=null,T=null,_=null,P=null,F=null,ie=null;for(G in s){var ue=s[G];if(s.hasOwnProperty(G)&&ue!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":P=ue;default:f.hasOwnProperty(G)||rt(n,i,G,null,f,ue)}}for(var V in f){var G=f[V];if(ue=s[V],f.hasOwnProperty(V)&&(G!=null||ue!=null))switch(V){case"type":v=G;break;case"name":g=G;break;case"checked":F=G;break;case"defaultChecked":ie=G;break;case"value":T=G;break;case"defaultValue":_=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(o(137,i));break;default:G!==ue&&rt(n,i,V,G,f,ue)}}Ef(n,T,_,P,F,ie,v,g);return;case"select":G=T=_=V=null;for(v in s)if(P=s[v],s.hasOwnProperty(v)&&P!=null)switch(v){case"value":break;case"multiple":G=P;default:f.hasOwnProperty(v)||rt(n,i,v,null,f,P)}for(g in f)if(v=f[g],P=s[g],f.hasOwnProperty(g)&&(v!=null||P!=null))switch(g){case"value":V=v;break;case"defaultValue":_=v;break;case"multiple":T=v;default:v!==P&&rt(n,i,g,v,f,P)}i=_,s=T,f=G,V!=null?So(n,!!s,V,!1):!!f!=!!s&&(i!=null?So(n,!!s,i,!0):So(n,!!s,s?[]:"",!1));return;case"textarea":G=V=null;for(_ in s)if(g=s[_],s.hasOwnProperty(_)&&g!=null&&!f.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:rt(n,i,_,null,f,g)}for(T in f)if(g=f[T],v=s[T],f.hasOwnProperty(T)&&(g!=null||v!=null))switch(T){case"value":V=g;break;case"defaultValue":G=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(o(91));break;default:g!==v&&rt(n,i,T,g,f,v)}Xg(n,V,G);return;case"option":for(var De in s)if(V=s[De],s.hasOwnProperty(De)&&V!=null&&!f.hasOwnProperty(De))switch(De){case"selected":n.selected=!1;break;default:rt(n,i,De,null,f,V)}for(P in f)if(V=f[P],G=s[P],f.hasOwnProperty(P)&&V!==G&&(V!=null||G!=null))switch(P){case"selected":n.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:rt(n,i,P,V,f,G)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in s)V=s[Ae],s.hasOwnProperty(Ae)&&V!=null&&!f.hasOwnProperty(Ae)&&rt(n,i,Ae,null,f,V);for(F in f)if(V=f[F],G=s[F],f.hasOwnProperty(F)&&V!==G&&(V!=null||G!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,i));break;default:rt(n,i,F,V,f,G)}return;default:if(Tf(i)){for(var it in s)V=s[it],s.hasOwnProperty(it)&&V!==void 0&&!f.hasOwnProperty(it)&&uh(n,i,it,void 0,f,V);for(ie in f)V=f[ie],G=s[ie],!f.hasOwnProperty(ie)||V===G||V===void 0&&G===void 0||uh(n,i,ie,V,f,G);return}}for(var B in s)V=s[B],s.hasOwnProperty(B)&&V!=null&&!f.hasOwnProperty(B)&&rt(n,i,B,null,f,V);for(ue in f)V=f[ue],G=s[ue],!f.hasOwnProperty(ue)||V===G||V==null&&G==null||rt(n,i,ue,V,f,G)}a(MA,"updateProperties");var ch=null,fh=null;function Cu(n){return n.nodeType===9?n:n.ownerDocument}a(Cu,"getOwnerDocumentFromRootContainer");function Zb(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}a(Zb,"getOwnHostContext");function Jb(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}a(Jb,"getChildHostContextProd");function dh(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}a(dh,"shouldSetTextContent");var hh=null;function _A(){var n=window.event;return n&&n.type==="popstate"?n===hh?!1:(hh=n,!0):(hh=null,!1)}a(_A,"shouldAttemptEagerTransition");var e0=typeof setTimeout=="function"?setTimeout:void 0,kA=typeof clearTimeout=="function"?clearTimeout:void 0,t0=typeof Promise=="function"?Promise:void 0,DA=typeof queueMicrotask=="function"?queueMicrotask:typeof t0<"u"?function(n){return t0.resolve(null).then(n).catch(NA)}:e0;function NA(n){setTimeout(function(){throw n})}a(NA,"handleErrorInNextTick");function ci(n){return n==="head"}a(ci,"isSingletonScope");function n0(n,i){var s=i,f=0,g=0;do{var v=s.nextSibling;if(n.removeChild(s),v&&v.nodeType===8)if(s=v.data,s==="/$"){if(0<f&&8>f){s=f;var T=n.ownerDocument;if(s&1&&Sl(T.documentElement),s&2&&Sl(T.body),s&4)for(s=T.head,Sl(s),T=s.firstChild;T;){var _=T.nextSibling,P=T.nodeName;T[La]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&T.rel.toLowerCase()==="stylesheet"||s.removeChild(T),T=_}}if(g===0){n.removeChild(v),Al(i);return}g--}else s==="$"||s==="$?"||s==="$!"?g++:f=s.charCodeAt(0)-48;else f=0;s=v}while(s);Al(i)}a(n0,"clearSuspenseBoundary");function ph(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var s=i;switch(i=i.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":ph(s),bf(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}a(ph,"clearContainerSparingly");function PA(n,i,s,f){for(;n.nodeType===1;){var g=s;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!f&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(f){if(!n[La])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(v=n.getAttribute("rel"),v==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(v!==g.rel||n.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||n.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||n.getAttribute("title")!==(g.title==null?null:g.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(v=n.getAttribute("src"),(v!==(g.src==null?null:g.src)||n.getAttribute("type")!==(g.type==null?null:g.type)||n.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&v&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var v=g.name==null?null:""+g.name;if(g.type==="hidden"&&n.getAttribute("name")===v)return n}else return n;if(n=Hn(n.nextSibling),n===null)break}return null}a(PA,"canHydrateInstance");function LA(n,i,s){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=Hn(n.nextSibling),n===null))return null;return n}a(LA,"canHydrateTextInstance");function mh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}a(mh,"isSuspenseInstanceFallback");function zA(n,i){var s=n.ownerDocument;if(n.data!=="$?"||s.readyState==="complete")i();else{var f=a(function(){i(),s.removeEventListener("DOMContentLoaded",f)},"listener");s.addEventListener("DOMContentLoaded",f),n._reactRetry=f}}a(zA,"registerSuspenseInstanceRetry");function Hn(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return n}a(Hn,"getNextHydratable");var gh=null;function r0(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return n;i--}else s==="/$"&&i++}n=n.previousSibling}return null}a(r0,"getParentSuspenseInstance");function i0(n,i,s){switch(i=Cu(s),n){case"html":if(n=i.documentElement,!n)throw Error(o(452));return n;case"head":if(n=i.head,!n)throw Error(o(453));return n;case"body":if(n=i.body,!n)throw Error(o(454));return n;default:throw Error(o(451))}}a(i0,"resolveSingletonInstance");function Sl(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);bf(n)}a(Sl,"releaseSingletonInstance");var kn=new Map,o0=new Set;function Tu(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}a(Tu,"getHoistableRoot");var zr=Q.d;Q.d={f:IA,r:jA,D:UA,C:BA,L:HA,m:FA,X:VA,S:qA,M:GA};function IA(){var n=zr.f(),i=gu();return n||i}a(IA,"flushSyncWork");function jA(n){var i=go(n);i!==null&&i.tag===5&&i.type==="form"?Tv(i):zr.r(n)}a(jA,"requestFormReset");var Xo=typeof document>"u"?null:document;function a0(n,i,s){var f=Xo;if(f&&typeof i=="string"&&i){var g=Cn(i);g='link[rel="'+n+'"][href="'+g+'"]',typeof s=="string"&&(g+='[crossorigin="'+s+'"]'),o0.has(g)||(o0.add(g),n={rel:n,crossOrigin:s,href:i},f.querySelector(g)===null&&(i=f.createElement("link"),zt(i,"link",n),_t(i),f.head.appendChild(i)))}}a(a0,"preconnectAs");function UA(n){zr.D(n),a0("dns-prefetch",n,null)}a(UA,"prefetchDNS");function BA(n,i){zr.C(n,i),a0("preconnect",n,i)}a(BA,"preconnect");function HA(n,i,s){zr.L(n,i,s);var f=Xo;if(f&&n&&i){var g='link[rel="preload"][as="'+Cn(i)+'"]';i==="image"&&s&&s.imageSrcSet?(g+='[imagesrcset="'+Cn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(g+='[imagesizes="'+Cn(s.imageSizes)+'"]')):g+='[href="'+Cn(n)+'"]';var v=g;switch(i){case"style":v=Wo(n);break;case"script":v=Zo(n)}kn.has(v)||(n=m({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:n,as:i},s),kn.set(v,n),f.querySelector(g)!==null||i==="style"&&f.querySelector(xl(v))||i==="script"&&f.querySelector(wl(v))||(i=f.createElement("link"),zt(i,"link",n),_t(i),f.head.appendChild(i)))}}a(HA,"preload");function FA(n,i){zr.m(n,i);var s=Xo;if(s&&n){var f=i&&typeof i.as=="string"?i.as:"script",g='link[rel="modulepreload"][as="'+Cn(f)+'"][href="'+Cn(n)+'"]',v=g;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Zo(n)}if(!kn.has(v)&&(n=m({rel:"modulepreload",href:n},i),kn.set(v,n),s.querySelector(g)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(wl(v)))return}f=s.createElement("link"),zt(f,"link",n),_t(f),s.head.appendChild(f)}}}a(FA,"preloadModule");function qA(n,i,s){zr.S(n,i,s);var f=Xo;if(f&&n){var g=yo(f).hoistableStyles,v=Wo(n);i=i||"default";var T=g.get(v);if(!T){var _={loading:0,preload:null};if(T=f.querySelector(xl(v)))_.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":i},s),(s=kn.get(v))&&yh(n,s);var P=T=f.createElement("link");_t(P),zt(P,"link",n),P._p=new Promise(function(F,ie){P.onload=F,P.onerror=ie}),P.addEventListener("load",function(){_.loading|=1}),P.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Ru(T,i,f)}T={type:"stylesheet",instance:T,count:1,state:_},g.set(v,T)}}}a(qA,"preinitStyle");function VA(n,i){zr.X(n,i);var s=Xo;if(s&&n){var f=yo(s).hoistableScripts,g=Zo(n),v=f.get(g);v||(v=s.querySelector(wl(g)),v||(n=m({src:n,async:!0},i),(i=kn.get(g))&&vh(n,i),v=s.createElement("script"),_t(v),zt(v,"link",n),s.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(g,v))}}a(VA,"preinitScript");function GA(n,i){zr.M(n,i);var s=Xo;if(s&&n){var f=yo(s).hoistableScripts,g=Zo(n),v=f.get(g);v||(v=s.querySelector(wl(g)),v||(n=m({src:n,async:!0,type:"module"},i),(i=kn.get(g))&&vh(n,i),v=s.createElement("script"),_t(v),zt(v,"link",n),s.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(g,v))}}a(GA,"preinitModuleScript");function l0(n,i,s,f){var g=(g=oe.current)?Tu(g):null;if(!g)throw Error(o(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=Wo(s.href),s=yo(g).hoistableStyles,f=s.get(i),f||(f={type:"style",instance:null,count:0,state:null},s.set(i,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=Wo(s.href);var v=yo(g).hoistableStyles,T=v.get(n);if(T||(g=g.ownerDocument||g,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(n,T),(v=g.querySelector(xl(n)))&&!v._p&&(T.instance=v,T.state.loading=5),kn.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},kn.set(n,s),v||$A(g,n,s,T.state))),i&&f===null)throw Error(o(528,""));return T}if(i&&f!==null)throw Error(o(529,""));return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Zo(s),s=yo(g).hoistableScripts,f=s.get(i),f||(f={type:"script",instance:null,count:0,state:null},s.set(i,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,n))}}a(l0,"getResource");function Wo(n){return'href="'+Cn(n)+'"'}a(Wo,"getStyleKey");function xl(n){return'link[rel="stylesheet"]['+n+"]"}a(xl,"getStylesheetSelectorFromKey");function s0(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}a(s0,"stylesheetPropsFromRawProps");function $A(n,i,s,f){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?f.loading=1:(i=n.createElement("link"),f.preload=i,i.addEventListener("load",function(){return f.loading|=1}),i.addEventListener("error",function(){return f.loading|=2}),zt(i,"link",s),_t(i),n.head.appendChild(i))}a($A,"preloadStylesheet");function Zo(n){return'[src="'+Cn(n)+'"]'}a(Zo,"getScriptKey");function wl(n){return"script[async]"+n}a(wl,"getScriptSelectorFromKey");function u0(n,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var f=n.querySelector('style[data-href~="'+Cn(s.href)+'"]');if(f)return i.instance=f,_t(f),f;var g=m({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return f=(n.ownerDocument||n).createElement("style"),_t(f),zt(f,"style",g),Ru(f,s.precedence,n),i.instance=f;case"stylesheet":g=Wo(s.href);var v=n.querySelector(xl(g));if(v)return i.state.loading|=4,i.instance=v,_t(v),v;f=s0(s),(g=kn.get(g))&&yh(f,g),v=(n.ownerDocument||n).createElement("link"),_t(v);var T=v;return T._p=new Promise(function(_,P){T.onload=_,T.onerror=P}),zt(v,"link",f),i.state.loading|=4,Ru(v,s.precedence,n),i.instance=v;case"script":return v=Zo(s.src),(g=n.querySelector(wl(v)))?(i.instance=g,_t(g),g):(f=s,(g=kn.get(v))&&(f=m({},s),vh(f,g)),n=n.ownerDocument||n,g=n.createElement("script"),_t(g),zt(g,"link",f),n.head.appendChild(g),i.instance=g);case"void":return null;default:throw Error(o(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(f=i.instance,i.state.loading|=4,Ru(f,s.precedence,n));return i.instance}a(u0,"acquireResource");function Ru(n,i,s){for(var f=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=f.length?f[f.length-1]:null,v=g,T=0;T<f.length;T++){var _=f[T];if(_.dataset.precedence===i)v=_;else if(v!==g)break}v?v.parentNode.insertBefore(n,v.nextSibling):(i=s.nodeType===9?s.head:s,i.insertBefore(n,i.firstChild))}a(Ru,"insertStylesheet");function yh(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}a(yh,"adoptPreloadPropsForStylesheet");function vh(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}a(vh,"adoptPreloadPropsForScript");var Ou=null;function c0(n,i,s){if(Ou===null){var f=new Map,g=Ou=new Map;g.set(s,f)}else g=Ou,f=g.get(s),f||(f=new Map,g.set(s,f));if(f.has(n))return f;for(f.set(n,null),s=s.getElementsByTagName(n),g=0;g<s.length;g++){var v=s[g];if(!(v[La]||v[jt]||n==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var T=v.getAttribute(i)||"";T=n+T;var _=f.get(T);_?_.push(v):f.set(T,[v])}}return f}a(c0,"getHydratableHoistableCache");function f0(n,i,s){n=n.ownerDocument||n,n.head.insertBefore(s,i==="title"?n.querySelector("head > title"):null)}a(f0,"mountHoistable");function YA(n,i,s){if(s===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}a(YA,"isHostHoistableType");function d0(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}a(d0,"preloadResource");var El=null;function KA(){}a(KA,"noop");function QA(n,i,s){if(El===null)throw Error(o(475));var f=El;if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var g=Wo(s.href),v=n.querySelector(xl(g));if(v){n=v._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(f.count++,f=Au.bind(f),n.then(f,f)),i.state.loading|=4,i.instance=v,_t(v);return}v=n.ownerDocument||n,s=s0(s),(g=kn.get(g))&&yh(s,g),v=v.createElement("link"),_t(v);var T=v;T._p=new Promise(function(_,P){T.onload=_,T.onerror=P}),zt(v,"link",s),i.instance=v}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(f.count++,i=Au.bind(f),n.addEventListener("load",i),n.addEventListener("error",i))}}a(QA,"suspendResource");function XA(){if(El===null)throw Error(o(475));var n=El;return n.stylesheets&&n.count===0&&bh(n,n.stylesheets),0<n.count?function(i){var s=setTimeout(function(){if(n.stylesheets&&bh(n,n.stylesheets),n.unsuspend){var f=n.unsuspend;n.unsuspend=null,f()}},6e4);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(s)}}:null}a(XA,"waitForCommitToBeReady");function Au(){if(this.count--,this.count===0){if(this.stylesheets)bh(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}a(Au,"onUnsuspend");var Mu=null;function bh(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Mu=new Map,i.forEach(WA,n),Mu=null,Au.call(n))}a(bh,"insertSuspendedStylesheets");function WA(n,i){if(!(i.state.loading&4)){var s=Mu.get(n);if(s)var f=s.get(null);else{s=new Map,Mu.set(n,s);for(var g=n.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<g.length;v++){var T=g[v];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(s.set(T.dataset.precedence,T),f=T)}f&&s.set(null,f)}g=i.instance,T=g.getAttribute("data-precedence"),v=s.get(T)||f,v===f&&s.set(null,g),s.set(T,g),this.count++,f=Au.bind(this),g.addEventListener("load",f),g.addEventListener("error",f),v?v.parentNode.insertBefore(g,v.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(g,n.firstChild)),i.state.loading|=4}}a(WA,"insertStylesheetIntoRoot");var Cl={$$typeof:k,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function ZA(n,i,s,f,g,v,T,_){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=mf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mf(0),this.hiddenUpdates=mf(null),this.identifierPrefix=f,this.onUncaughtError=g,this.onCaughtError=v,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}a(ZA,"FiberRootNode");function h0(n,i,s,f,g,v,T,_,P,F,ie,ue){return n=new ZA(n,i,s,T,_,P,F,ue),i=1,v===!0&&(i|=24),v=cn(3,null,null,i),n.current=v,v.stateNode=n,i=ed(),i.refCount++,n.pooledCache=i,i.refCount++,v.memoizedState={element:f,isDehydrated:s,cache:i},id(v),n}a(h0,"createFiberRoot");function p0(n){return n?(n=Mo,n):Mo}a(p0,"getContextForSubtree");function m0(n,i,s,f,g,v){g=p0(g),f.context===null?f.context=g:f.pendingContext=g,f=Wr(i),f.payload={element:s},v=v===void 0?null:v,v!==null&&(f.callback=v),s=Zr(n,f,i),s!==null&&(mn(s,n,i),el(s,n,i))}a(m0,"updateContainerImpl");function g0(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<i?s:i}}a(g0,"markRetryLaneImpl");function Sh(n,i){g0(n,i),(n=n.alternate)&&g0(n,i)}a(Sh,"markRetryLaneIfNotHydrated");function y0(n){if(n.tag===13){var i=Ao(n,67108864);i!==null&&mn(i,n,67108864),Sh(n,67108864)}}a(y0,"attemptContinuousHydration");var _u=!0;function JA(n,i,s,f){var g=I.T;I.T=null;var v=Q.p;try{Q.p=2,xh(n,i,s,f)}finally{Q.p=v,I.T=g}}a(JA,"dispatchDiscreteEvent");function eM(n,i,s,f){var g=I.T;I.T=null;var v=Q.p;try{Q.p=8,xh(n,i,s,f)}finally{Q.p=v,I.T=g}}a(eM,"dispatchContinuousEvent");function xh(n,i,s,f){if(_u){var g=wh(f);if(g===null)sh(n,i,f,ku,s),b0(n,f);else if(nM(g,n,i,s,f))f.stopPropagation();else if(b0(n,f),i&4&&-1<tM.indexOf(n)){for(;g!==null;){var v=go(g);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var T=sn(v.pendingLanes);if(T!==0){var _=v;for(_.pendingLanes|=2,_.entangledLanes|=2;T;){var P=1<<31-ke(T);_.entanglements[1]|=P,T&=~P}rr(v),(et&6)===0&&(pu=St()+500,yl(0))}}break;case 13:_=Ao(v,2),_!==null&&mn(_,v,2),gu(),Sh(v,2)}if(v=wh(f),v===null&&sh(n,i,f,ku,s),v===g)break;g=v}g!==null&&f.stopPropagation()}else sh(n,i,f,null,s)}}a(xh,"dispatchEvent");function wh(n){return n=Of(n),Eh(n)}a(wh,"findInstanceBlockingEvent");var ku=null;function Eh(n){if(ku=null,n=mo(n),n!==null){var i=u(n);if(i===null)n=null;else{var s=i.tag;if(s===13){if(n=c(i),n!==null)return n;n=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return ku=n,null}a(Eh,"findInstanceBlockingTarget");function v0(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(At()){case $r:return 2;case Ai:return 8;case xn:case fo:return 32;case ho:return 268435456;default:return 32}default:return 32}}a(v0,"getEventPriority");var Ch=!1,fi=null,di=null,hi=null,Tl=new Map,Rl=new Map,pi=[],tM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function b0(n,i){switch(n){case"focusin":case"focusout":fi=null;break;case"dragenter":case"dragleave":di=null;break;case"mouseover":case"mouseout":hi=null;break;case"pointerover":case"pointerout":Tl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rl.delete(i.pointerId)}}a(b0,"clearIfContinuousEvent");function Ol(n,i,s,f,g,v){return n===null||n.nativeEvent!==v?(n={blockedOn:i,domEventName:s,eventSystemFlags:f,nativeEvent:v,targetContainers:[g]},i!==null&&(i=go(i),i!==null&&y0(i)),n):(n.eventSystemFlags|=f,i=n.targetContainers,g!==null&&i.indexOf(g)===-1&&i.push(g),n)}a(Ol,"accumulateOrCreateContinuousQueuedReplayableEvent");function nM(n,i,s,f,g){switch(i){case"focusin":return fi=Ol(fi,n,i,s,f,g),!0;case"dragenter":return di=Ol(di,n,i,s,f,g),!0;case"mouseover":return hi=Ol(hi,n,i,s,f,g),!0;case"pointerover":var v=g.pointerId;return Tl.set(v,Ol(Tl.get(v)||null,n,i,s,f,g)),!0;case"gotpointercapture":return v=g.pointerId,Rl.set(v,Ol(Rl.get(v)||null,n,i,s,f,g)),!0}return!1}a(nM,"queueIfContinuousEvent");function S0(n){var i=mo(n.target);if(i!==null){var s=u(i);if(s!==null){if(i=s.tag,i===13){if(i=c(s),i!==null){n.blockedOn=i,QR(n.priority,function(){if(s.tag===13){var f=pn();f=gf(f);var g=Ao(s,f);g!==null&&mn(g,s,f),Sh(s,f)}});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}a(S0,"attemptExplicitHydrationTarget");function Du(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var s=wh(n.nativeEvent);if(s===null){s=n.nativeEvent;var f=new s.constructor(s.type,s);Rf=f,s.target.dispatchEvent(f),Rf=null}else return i=go(s),i!==null&&y0(i),n.blockedOn=s,!1;i.shift()}return!0}a(Du,"attemptReplayContinuousQueuedEvent");function x0(n,i,s){Du(n)&&s.delete(i)}a(x0,"attemptReplayContinuousQueuedEventInMap");function rM(){Ch=!1,fi!==null&&Du(fi)&&(fi=null),di!==null&&Du(di)&&(di=null),hi!==null&&Du(hi)&&(hi=null),Tl.forEach(x0),Rl.forEach(x0)}a(rM,"replayUnblockedEvents");function Nu(n,i){n.blockedOn===i&&(n.blockedOn=null,Ch||(Ch=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,rM)))}a(Nu,"scheduleCallbackIfUnblocked");var Pu=null;function w0(n){Pu!==n&&(Pu=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Pu===n&&(Pu=null);for(var i=0;i<n.length;i+=3){var s=n[i],f=n[i+1],g=n[i+2];if(typeof f!="function"){if(Eh(f||s)===null)continue;break}var v=go(s);v!==null&&(n.splice(i,3),i-=3,Ed(v,{pending:!0,data:g,method:s.method,action:f},f,g))}}))}a(w0,"scheduleReplayQueueIfNeeded");function Al(n){function i(P){return Nu(P,n)}a(i,"unblock"),fi!==null&&Nu(fi,n),di!==null&&Nu(di,n),hi!==null&&Nu(hi,n),Tl.forEach(i),Rl.forEach(i);for(var s=0;s<pi.length;s++){var f=pi[s];f.blockedOn===n&&(f.blockedOn=null)}for(;0<pi.length&&(s=pi[0],s.blockedOn===null);)S0(s),s.blockedOn===null&&pi.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(f=0;f<s.length;f+=3){var g=s[f],v=s[f+1],T=g[Xt]||null;if(typeof v=="function")T||w0(s);else if(T){var _=null;if(v&&v.hasAttribute("formAction")){if(g=v,T=v[Xt]||null)_=T.formAction;else if(Eh(g)!==null)continue}else _=T.action;typeof _=="function"?s[f+1]=_:(s.splice(f,3),f-=3),w0(s)}}}a(Al,"retryIfBlockedOn");function Th(n){this._internalRoot=n}a(Th,"ReactDOMRoot"),Lu.prototype.render=Th.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(o(409));var s=i.current,f=pn();m0(s,f,n,i,null,null)},Lu.prototype.unmount=Th.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;m0(n.current,2,null,n,null,null),gu(),i[po]=null}};function Lu(n){this._internalRoot=n}a(Lu,"ReactDOMHydrationRoot"),Lu.prototype.unstable_scheduleHydration=function(n){if(n){var i=Ug();n={blockedOn:null,target:n,priority:i};for(var s=0;s<pi.length&&i!==0&&i<pi[s].priority;s++);pi.splice(s,0,n),s===0&&S0(n)}};var E0=t.version;if(E0!=="19.1.1")throw Error(o(527,E0,"19.1.1"));Q.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(o(188)):(n=Object.keys(n).join(","),Error(o(268,n)));return n=h(i),n=n!==null?p(n):null,n=n===null?null:n.stateNode,n};var iM={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zu.isDisabled&&zu.supportsFiber)try{re=zu.inject(iM),he=zu}catch{}}return _l.createRoot=function(n,i){if(!l(n))throw Error(o(299));var s=!1,f="",g=Uv,v=Bv,T=Hv,_=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(g=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(T=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(_=i.unstable_transitionCallbacks)),i=h0(n,1,!1,null,null,s,f,g,v,T,_,null),n[po]=i.current,lh(n),new Th(i)},_l.hydrateRoot=function(n,i,s){if(!l(n))throw Error(o(299));var f=!1,g="",v=Uv,T=Bv,_=Hv,P=null,F=null;return s!=null&&(s.unstable_strictMode===!0&&(f=!0),s.identifierPrefix!==void 0&&(g=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(T=s.onCaughtError),s.onRecoverableError!==void 0&&(_=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(P=s.unstable_transitionCallbacks),s.formState!==void 0&&(F=s.formState)),i=h0(n,1,!0,i,s??null,f,g,v,T,_,P,F),i.context=p0(null),s=i.current,f=pn(),f=gf(f),g=Wr(f),g.callback=null,Zr(s,g,f),s=f,i.current.lanes=s,Pa(i,s),rr(i),n[po]=i.current,lh(n),new Lu(i)},_l.version="19.1.1",_l}a(pM,"requireReactDomClient_production");var N0;function mM(){if(N0)return Ah.exports;N0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return a(e,"checkDCE"),e(),Ah.exports=pM(),Ah.exports}a(mM,"requireClient");var Z8=mM();function P0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}a(P0,"setRef");function Ac(...e){return t=>{let r=!1;const o=e.map(l=>{const u=P0(l,t);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let l=0;l<o.length;l++){const u=o[l];typeof u=="function"?u():P0(e[l],null)}}}}a(Ac,"composeRefs");function ze(...e){return S.useCallback(Ac(...e),e)}a(ze,"useComposedRefs");function Wi(e){const t=gM(e),r=S.forwardRef((o,l)=>{const{children:u,...c}=o,d=S.Children.toArray(u),h=d.find(yM);if(h){const p=h.props.children,m=d.map(y=>y===h?S.Children.count(p)>1?S.Children.only(null):S.isValidElement(p)?p.props.children:null:y);return D.jsx(t,{...c,ref:l,children:S.isValidElement(p)?S.cloneElement(p,void 0,m):null})}return D.jsx(t,{...c,ref:l,children:u})});return r.displayName=`${e}.Slot`,r}a(Wi,"createSlot");var J8=Wi("Slot");function gM(e){const t=S.forwardRef((r,o)=>{const{children:l,...u}=r;if(S.isValidElement(l)){const c=bM(l),d=vM(u,l.props);return l.type!==S.Fragment&&(d.ref=o?Ac(o,c):c),S.cloneElement(l,d)}return S.Children.count(l)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}a(gM,"createSlotClone");var ex=Symbol("radix.slottable");function tx(e){const t=a(({children:r})=>D.jsx(D.Fragment,{children:r}),"Slottable2");return t.displayName=`${e}.Slottable`,t.__radixId=ex,t}a(tx,"createSlottable");function yM(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ex}a(yM,"isSlottable");function vM(e,t){const r={...t};for(const o in t){const l=e[o],u=t[o];/^on[A-Z]/.test(o)?l&&u?r[o]=(...d)=>{const h=u(...d);return l(...d),h}:l&&(r[o]=l):o==="style"?r[o]={...l,...u}:o==="className"&&(r[o]=[l,u].filter(Boolean).join(" "))}return{...e,...r}}a(vM,"mergeProps");function bM(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}a(bM,"getElementRef$1");var dr=JS();const Gl=Vr(dr);var SM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ee=SM.reduce((e,t)=>{const r=Wi(`Primitive.${t}`),o=S.forwardRef((l,u)=>{const{asChild:c,...d}=l,h=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(h,{...d,ref:u})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function dm(e,t){e&&dr.flushSync(()=>e.dispatchEvent(t))}a(dm,"dispatchDiscreteCustomEvent");var xM="Separator",L0="horizontal",wM=["horizontal","vertical"],nx=S.forwardRef((e,t)=>{const{decorative:r,orientation:o=L0,...l}=e,u=EM(o)?o:L0,d=r?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return D.jsx(Ee.div,{"data-orientation":u,...d,...l,ref:t})});nx.displayName=xM;function EM(e){return wM.includes(e)}a(EM,"isValidOrientation");var e7=nx;function CM(e,t){const r=S.createContext(t),o=a(u=>{const{children:c,...d}=u,h=S.useMemo(()=>d,Object.values(d));return D.jsx(r.Provider,{value:h,children:c})},"Provider");o.displayName=e+"Provider";function l(u){const c=S.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${u}\` must be used within \`${e}\``)}return a(l,"useContext2"),[o,l]}a(CM,"createContext2");function $t(e,t=[]){let r=[];function o(u,c){const d=S.createContext(c),h=r.length;r=[...r,c];const p=a(y=>{const{scope:b,children:x,...E}=y,w=b?.[e]?.[h]||d,R=S.useMemo(()=>E,Object.values(E));return D.jsx(w.Provider,{value:R,children:x})},"Provider");p.displayName=u+"Provider";function m(y,b){const x=b?.[e]?.[h]||d,E=S.useContext(x);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${u}\``)}return a(m,"useContext2"),[p,m]}a(o,"createContext3");const l=a(()=>{const u=r.map(c=>S.createContext(c));return a(function(d){const h=d?.[e]||u;return S.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])},"useScope")},"createScope");return l.scopeName=e,[o,TM(l,...t)]}a($t,"createContextScope");function TM(...e){const t=e[0];if(e.length===1)return t;const r=a(()=>{const o=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return a(function(u){const c=o.reduce((d,{useScope:h,scopeName:p})=>{const y=h(u)[`__scope${p}`];return{...d,...y}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}a(TM,"composeContextScopes");var bt=globalThis?.document?S.useLayoutEffect:()=>{},RM=fm[" useId ".trim().toString()]||(()=>{}),OM=0;function Ln(e){const[t,r]=S.useState(RM());return bt(()=>{r(o=>o??String(OM++))},[e]),e||(t?`radix-${t}`:"")}a(Ln,"useId$1");var AM=fm[" useInsertionEffect ".trim().toString()]||bt;function pr({prop:e,defaultProp:t,onChange:r=a(()=>{},"onChange"),caller:o}){const[l,u,c]=MM({defaultProp:t,onChange:r}),d=e!==void 0,h=d?e:l;{const m=S.useRef(e!==void 0);S.useEffect(()=>{const y=m.current;y!==d&&console.warn(`${o} is changing from ${y?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=d},[d,o])}const p=S.useCallback(m=>{if(d){const y=_M(m)?m(e):m;y!==e&&c.current?.(y)}else u(m)},[d,e,u,c]);return[h,p]}a(pr,"useControllableState");function MM({defaultProp:e,onChange:t}){const[r,o]=S.useState(e),l=S.useRef(r),u=S.useRef(t);return AM(()=>{u.current=t},[t]),S.useEffect(()=>{l.current!==r&&(u.current?.(r),l.current=r)},[r,l]),[r,o,u]}a(MM,"useUncontrolledState");function _M(e){return typeof e=="function"}a(_M,"isFunction$3");function vt(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>t.current?.(...r),[])}a(vt,"useCallbackRef$1");function kM(e,t=globalThis?.document){const r=vt(e);S.useEffect(()=>{const o=a(l=>{l.key==="Escape"&&r(l)},"handleKeyDown");return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[r,t])}a(kM,"useEscapeKeydown");var DM="DismissableLayer",xp="dismissableLayer.update",NM="dismissableLayer.pointerDownOutside",PM="dismissableLayer.focusOutside",z0,rx=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xa=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,onDismiss:d,...h}=e,p=S.useContext(rx),[m,y]=S.useState(null),b=m?.ownerDocument??globalThis?.document,[,x]=S.useState({}),E=ze(t,j=>y(j)),w=Array.from(p.layers),[R]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),C=w.indexOf(R),A=m?w.indexOf(m):-1,k=p.layersWithOutsidePointerEventsDisabled.size>0,z=A>=C,L=zM(j=>{const $=j.target,W=[...p.branches].some(J=>J.contains($));!z||W||(l?.(j),c?.(j),j.defaultPrevented||d?.())},b),N=IM(j=>{const $=j.target;[...p.branches].some(J=>J.contains($))||(u?.(j),c?.(j),j.defaultPrevented||d?.())},b);return kM(j=>{A===p.layers.size-1&&(o?.(j),!j.defaultPrevented&&d&&(j.preventDefault(),d()))},b),S.useEffect(()=>{if(m)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(z0=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),I0(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=z0)}},[m,b,r,p]),S.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),I0())},[m,p]),S.useEffect(()=>{const j=a(()=>x({}),"handleUpdate");return document.addEventListener(xp,j),()=>document.removeEventListener(xp,j)},[]),D.jsx(Ee.div,{...h,ref:E,style:{pointerEvents:k?z?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,N.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,L.onPointerDownCapture)})});xa.displayName=DM;var LM="DismissableLayerBranch",ix=S.forwardRef((e,t)=>{const r=S.useContext(rx),o=S.useRef(null),l=ze(t,o);return S.useEffect(()=>{const u=o.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),D.jsx(Ee.div,{...e,ref:l})});ix.displayName=LM;function zM(e,t=globalThis?.document){const r=vt(e),o=S.useRef(!1),l=S.useRef(()=>{});return S.useEffect(()=>{const u=a(d=>{if(d.target&&!o.current){let h=a(function(){ox(NM,r,p,{discrete:!0})},"handleAndDispatchPointerDownOutsideEvent2");const p={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",l.current),l.current=h,t.addEventListener("click",l.current,{once:!0})):h()}else t.removeEventListener("click",l.current);o.current=!1},"handlePointerDown"),c=window.setTimeout(()=>{t.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",u),t.removeEventListener("click",l.current)}},[t,r]),{onPointerDownCapture:a(()=>o.current=!0,"onPointerDownCapture")}}a(zM,"usePointerDownOutside");function IM(e,t=globalThis?.document){const r=vt(e),o=S.useRef(!1);return S.useEffect(()=>{const l=a(u=>{u.target&&!o.current&&ox(PM,r,{originalEvent:u},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",l),()=>t.removeEventListener("focusin",l)},[t,r]),{onFocusCapture:a(()=>o.current=!0,"onFocusCapture"),onBlurCapture:a(()=>o.current=!1,"onBlurCapture")}}a(IM,"useFocusOutside");function I0(){const e=new CustomEvent(xp);document.dispatchEvent(e)}a(I0,"dispatchUpdate");function ox(e,t,r,{discrete:o}){const l=r.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&l.addEventListener(e,t,{once:!0}),o?dm(l,u):l.dispatchEvent(u)}a(ox,"handleAndDispatchCustomEvent$1");var jM=xa,UM=ix,Dh="focusScope.autoFocusOnMount",Nh="focusScope.autoFocusOnUnmount",j0={bubbles:!1,cancelable:!0},BM="FocusScope",Mc=S.forwardRef((e,t)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...c}=e,[d,h]=S.useState(null),p=vt(l),m=vt(u),y=S.useRef(null),b=ze(t,w=>h(w)),x=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(o){let w=a(function(k){if(x.paused||!d)return;const z=k.target;d.contains(z)?y.current=z:yi(y.current,{select:!0})},"handleFocusIn2"),R=a(function(k){if(x.paused||!d)return;const z=k.relatedTarget;z!==null&&(d.contains(z)||yi(y.current,{select:!0}))},"handleFocusOut2"),C=a(function(k){if(document.activeElement===document.body)for(const L of k)L.removedNodes.length>0&&yi(d)},"handleMutations2");document.addEventListener("focusin",w),document.addEventListener("focusout",R);const A=new MutationObserver(C);return d&&A.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",R),A.disconnect()}}},[o,d,x.paused]),S.useEffect(()=>{if(d){B0.add(x);const w=document.activeElement;if(!d.contains(w)){const C=new CustomEvent(Dh,j0);d.addEventListener(Dh,p),d.dispatchEvent(C),C.defaultPrevented||(HM($M(ax(d)),{select:!0}),document.activeElement===w&&yi(d))}return()=>{d.removeEventListener(Dh,p),setTimeout(()=>{const C=new CustomEvent(Nh,j0);d.addEventListener(Nh,m),d.dispatchEvent(C),C.defaultPrevented||yi(w??document.body,{select:!0}),d.removeEventListener(Nh,m),B0.remove(x)},0)}}},[d,p,m,x]);const E=S.useCallback(w=>{if(!r&&!o||x.paused)return;const R=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,C=document.activeElement;if(R&&C){const A=w.currentTarget,[k,z]=FM(A);k&&z?!w.shiftKey&&C===z?(w.preventDefault(),r&&yi(k,{select:!0})):w.shiftKey&&C===k&&(w.preventDefault(),r&&yi(z,{select:!0})):C===A&&w.preventDefault()}},[r,o,x.paused]);return D.jsx(Ee.div,{tabIndex:-1,...c,ref:b,onKeyDown:E})});Mc.displayName=BM;function HM(e,{select:t=!1}={}){const r=document.activeElement;for(const o of e)if(yi(o,{select:t}),document.activeElement!==r)return}a(HM,"focusFirst$3");function FM(e){const t=ax(e),r=U0(t,e),o=U0(t.reverse(),e);return[r,o]}a(FM,"getTabbableEdges");function ax(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a(o=>{const l=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||l?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}a(ax,"getTabbableCandidates$1");function U0(e,t){for(const r of e)if(!qM(r,{upTo:t}))return r}a(U0,"findVisible");function qM(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}a(qM,"isHidden");function VM(e){return e instanceof HTMLInputElement&&"select"in e}a(VM,"isSelectableInput");function yi(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&VM(e)&&t&&e.select()}}a(yi,"focus");var B0=GM();function GM(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=H0(e,t),e.unshift(t)},remove(t){e=H0(e,t),e[0]?.resume()}}}a(GM,"createFocusScopesStack");function H0(e,t){const r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}a(H0,"arrayRemove");function $M(e){return e.filter(t=>t.tagName!=="A")}a($M,"removeLinks");var YM="Portal",wa=S.forwardRef((e,t)=>{const{container:r,...o}=e,[l,u]=S.useState(!1);bt(()=>u(!0),[]);const c=r||l&&globalThis?.document?.body;return c?Gl.createPortal(D.jsx(Ee.div,{...o,ref:t}),c):null});wa.displayName=YM;function KM(e,t){return S.useReducer((r,o)=>t[r][o]??r,e)}a(KM,"useStateMachine$1");var It=a(e=>{const{present:t,children:r}=e,o=QM(t),l=typeof r=="function"?r({present:o.isPresent}):S.Children.only(r),u=ze(o.ref,XM(l));return typeof r=="function"||o.isPresent?S.cloneElement(l,{ref:u}):null},"Presence");It.displayName="Presence";function QM(e){const[t,r]=S.useState(),o=S.useRef(null),l=S.useRef(e),u=S.useRef("none"),c=e?"mounted":"unmounted",[d,h]=KM(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const p=Iu(o.current);u.current=d==="mounted"?p:"none"},[d]),bt(()=>{const p=o.current,m=l.current;if(m!==e){const b=u.current,x=Iu(p);e?h("MOUNT"):x==="none"||p?.display==="none"?h("UNMOUNT"):h(m&&b!==x?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,h]),bt(()=>{if(t){let p;const m=t.ownerDocument.defaultView??window,y=a(x=>{const w=Iu(o.current).includes(CSS.escape(x.animationName));if(x.target===t&&w&&(h("ANIMATION_END"),!l.current)){const R=t.style.animationFillMode;t.style.animationFillMode="forwards",p=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=R)})}},"handleAnimationEnd"),b=a(x=>{x.target===t&&(u.current=Iu(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{m.clearTimeout(p),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:S.useCallback(p=>{o.current=p?getComputedStyle(p):null,r(p)},[])}}a(QM,"usePresence");function Iu(e){return e?.animationName||"none"}a(Iu,"getAnimationName");function XM(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}a(XM,"getElementRef");var Ph=0;function hm(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??F0()),document.body.insertAdjacentElement("beforeend",e[1]??F0()),Ph++,()=>{Ph===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ph--}},[])}a(hm,"useFocusGuards");function F0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}a(F0,"createFocusGuard");var lr=a(function(){return lr=Object.assign||a(function(t){for(var r,o=1,l=arguments.length;o<l;o++){r=arguments[o];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(t[u]=r[u])}return t},"__assign2"),lr.apply(this,arguments)},"__assign");function lx(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(r[o[l]]=e[o[l]]);return r}a(lx,"__rest");function WM(e,t,r){if(r||arguments.length===2)for(var o=0,l=t.length,u;o<l;o++)(u||!(o in t))&&(u||(u=Array.prototype.slice.call(t,0,o)),u[o]=t[o]);return e.concat(u||Array.prototype.slice.call(t))}a(WM,"__spreadArray");var Wu="right-scroll-bar-position",Zu="width-before-scroll-bar",ZM="with-scroll-bars-hidden",JM="--removed-body-scroll-bar-size";function Lh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}a(Lh,"assignRef");function e_(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var l=r.value;l!==o&&(r.value=o,r.callback(o,l))}}}})[0];return r.callback=t,r.facade}a(e_,"useCallbackRef");var t_=typeof window<"u"?S.useLayoutEffect:S.useEffect,q0=new WeakMap;function n_(e,t){var r=e_(null,function(o){return e.forEach(function(l){return Lh(l,o)})});return t_(function(){var o=q0.get(r);if(o){var l=new Set(o),u=new Set(e),c=r.current;l.forEach(function(d){u.has(d)||Lh(d,null)}),u.forEach(function(d){l.has(d)||Lh(d,c)})}q0.set(r,e)},[e]),r}a(n_,"useMergeRefs");function r_(e){return e}a(r_,"ItoI");function i_(e,t){t===void 0&&(t=r_);var r=[],o=!1,l={read:a(function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},"read"),useMedium:a(function(u){var c=t(u,o);return r.push(c),function(){r=r.filter(function(d){return d!==c})}},"useMedium"),assignSyncMedium:a(function(u){for(o=!0;r.length;){var c=r;r=[],c.forEach(u)}r={push:a(function(d){return u(d)},"push"),filter:a(function(){return r},"filter")}},"assignSyncMedium"),assignMedium:a(function(u){o=!0;var c=[];if(r.length){var d=r;r=[],d.forEach(u),c=r}var h=a(function(){var m=c;c=[],m.forEach(u)},"executeQueue"),p=a(function(){return Promise.resolve().then(h)},"cycle");p(),r={push:a(function(m){c.push(m),p()},"push"),filter:a(function(m){return c=c.filter(m),r},"filter")}},"assignMedium")};return l}a(i_,"innerCreateMedium");function o_(e){e===void 0&&(e={});var t=i_(null);return t.options=lr({async:!0,ssr:!1},e),t}a(o_,"createSidecarMedium");var sx=a(function(e){var t=e.sideCar,r=lx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return S.createElement(o,lr({},r))},"SideCar$1");sx.isSideCarExport=!0;function a_(e,t){return e.useMedium(t),sx}a(a_,"exportSidecar");var ux=o_(),zh=a(function(){},"nothing"),_c=S.forwardRef(function(e,t){var r=S.useRef(null),o=S.useState({onScrollCapture:zh,onWheelCapture:zh,onTouchMoveCapture:zh}),l=o[0],u=o[1],c=e.forwardProps,d=e.children,h=e.className,p=e.removeScrollBar,m=e.enabled,y=e.shards,b=e.sideCar,x=e.noRelative,E=e.noIsolation,w=e.inert,R=e.allowPinchZoom,C=e.as,A=C===void 0?"div":C,k=e.gapMode,z=lx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=b,N=n_([r,t]),j=lr(lr({},z),l);return S.createElement(S.Fragment,null,m&&S.createElement(L,{sideCar:ux,removeScrollBar:p,shards:y,noRelative:x,noIsolation:E,inert:w,setCallbacks:u,allowPinchZoom:!!R,lockRef:r,gapMode:k}),c?S.cloneElement(S.Children.only(d),lr(lr({},j),{ref:N})):S.createElement(A,lr({},j,{className:h,ref:N}),d))});_c.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_c.classNames={fullWidth:Zu,zeroRight:Wu};var l_=a(function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__},"getNonce");function s_(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l_();return t&&e.setAttribute("nonce",t),e}a(s_,"makeStyleTag");function u_(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}a(u_,"injectStyles");function c_(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}a(c_,"insertStyleTag");var f_=a(function(){var e=0,t=null;return{add:a(function(r){e==0&&(t=s_())&&(u_(t,r),c_(t)),e++},"add"),remove:a(function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)},"remove")}},"stylesheetSingleton"),d_=a(function(){var e=f_();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},"styleHookSingleton"),cx=a(function(){var e=d_(),t=a(function(r){var o=r.styles,l=r.dynamic;return e(o,l),null},"Sheet");return t},"styleSingleton"),h_={left:0,top:0,right:0,gap:0},Ih=a(function(e){return parseInt(e||"",10)||0},"parse$1"),p_=a(function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],l=t[e==="padding"?"paddingRight":"marginRight"];return[Ih(r),Ih(o),Ih(l)]},"getOffset"),m_=a(function(e){if(e===void 0&&(e="margin"),typeof window>"u")return h_;var t=p_(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}},"getGapWidth"),g_=cx(),sa="data-scroll-locked",y_=a(function(e,t,r,o){var l=e.left,u=e.top,c=e.right,d=e.gap;return r===void 0&&(r="margin"),`
50
50
  .`.concat(ZM,` {
51
51
  overflow: hidden `).concat(o,`;
52
52
  padding-right: `).concat(d,"px ").concat(o,`;
@@ -83,10 +83,10 @@ Error generating stack: `+s.message+`
83
83
  body[`).concat(sa,`] {
84
84
  `).concat(JM,": ").concat(d,`px;
85
85
  }
86
- `)},"getStyles$2"),V0=a(function(){var e=parseInt(document.body.getAttribute(sa)||"0",10);return isFinite(e)?e:0},"getCurrentUseCounter"),v_=a(function(){S.useEffect(function(){return document.body.setAttribute(sa,(V0()+1).toString()),function(){var e=V0()-1;e<=0?document.body.removeAttribute(sa):document.body.setAttribute(sa,e.toString())}},[])},"useLockAttribute"),b_=a(function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,l=o===void 0?"margin":o;v_();var u=S.useMemo(function(){return m_(l)},[l]);return S.createElement(g_,{styles:y_(u,!t,l,r?"":"!important")})},"RemoveScrollBar"),wh=!1;if(typeof window<"u")try{var ju=Object.defineProperty({},"passive",{get:a(function(){return wh=!0,!0},"get")});window.addEventListener("test",ju,ju),window.removeEventListener("test",ju,ju)}catch{wh=!1}var Jo=wh?{passive:!1}:!1,S_=a(function(e){return e.tagName==="TEXTAREA"},"alwaysContainsScroll"),fx=a(function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!S_(e)&&r[t]==="visible")},"elementCanBeScrolled"),x_=a(function(e){return fx(e,"overflowY")},"elementCouldBeVScrolled"),w_=a(function(e){return fx(e,"overflowX")},"elementCouldBeHScrolled"),G0=a(function(e,t){var r=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var l=dx(e,o);if(l){var u=px(e,o),c=u[1],d=u[2];if(c>d)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},"locationCouldBeScrolled"),E_=a(function(e){var t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return[t,r,o]},"getVScrollVariables"),C_=a(function(e){var t=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return[t,r,o]},"getHScrollVariables"),dx=a(function(e,t){return e==="v"?x_(t):w_(t)},"elementCouldBeScrolled"),px=a(function(e,t){return e==="v"?E_(t):C_(t)},"getScrollVariables"),T_=a(function(e,t){return e==="h"&&t==="rtl"?-1:1},"getDirectionFactor"),R_=a(function(e,t,r,o,l){var u=T_(e,window.getComputedStyle(t).direction),c=u*o,d=r.target,p=t.contains(d),h=!1,m=c>0,y=0,b=0;do{if(!d)break;var x=px(e,d),E=x[0],w=x[1],R=x[2],C=w-R-u*E;(E||C)&&dx(e,d)&&(y+=C,b+=E);var A=d.parentNode;d=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!p&&d!==document.body||p&&(t.contains(d)||t===d));return(m&&Math.abs(y)<1||!m&&Math.abs(b)<1)&&(h=!0),h},"handleScroll"),Uu=a(function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},"getTouchXY"),$0=a(function(e){return[e.deltaX,e.deltaY]},"getDeltaXY"),Y0=a(function(e){return e&&"current"in e?e.current:e},"extractRef"),O_=a(function(e,t){return e[0]===t[0]&&e[1]===t[1]},"deltaCompare"),A_=a(function(e){return`
86
+ `)},"getStyles$2"),V0=a(function(){var e=parseInt(document.body.getAttribute(sa)||"0",10);return isFinite(e)?e:0},"getCurrentUseCounter"),v_=a(function(){S.useEffect(function(){return document.body.setAttribute(sa,(V0()+1).toString()),function(){var e=V0()-1;e<=0?document.body.removeAttribute(sa):document.body.setAttribute(sa,e.toString())}},[])},"useLockAttribute"),b_=a(function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,l=o===void 0?"margin":o;v_();var u=S.useMemo(function(){return m_(l)},[l]);return S.createElement(g_,{styles:y_(u,!t,l,r?"":"!important")})},"RemoveScrollBar"),wp=!1;if(typeof window<"u")try{var ju=Object.defineProperty({},"passive",{get:a(function(){return wp=!0,!0},"get")});window.addEventListener("test",ju,ju),window.removeEventListener("test",ju,ju)}catch{wp=!1}var Jo=wp?{passive:!1}:!1,S_=a(function(e){return e.tagName==="TEXTAREA"},"alwaysContainsScroll"),fx=a(function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!S_(e)&&r[t]==="visible")},"elementCanBeScrolled"),x_=a(function(e){return fx(e,"overflowY")},"elementCouldBeVScrolled"),w_=a(function(e){return fx(e,"overflowX")},"elementCouldBeHScrolled"),G0=a(function(e,t){var r=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var l=dx(e,o);if(l){var u=hx(e,o),c=u[1],d=u[2];if(c>d)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},"locationCouldBeScrolled"),E_=a(function(e){var t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return[t,r,o]},"getVScrollVariables"),C_=a(function(e){var t=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return[t,r,o]},"getHScrollVariables"),dx=a(function(e,t){return e==="v"?x_(t):w_(t)},"elementCouldBeScrolled"),hx=a(function(e,t){return e==="v"?E_(t):C_(t)},"getScrollVariables"),T_=a(function(e,t){return e==="h"&&t==="rtl"?-1:1},"getDirectionFactor"),R_=a(function(e,t,r,o,l){var u=T_(e,window.getComputedStyle(t).direction),c=u*o,d=r.target,h=t.contains(d),p=!1,m=c>0,y=0,b=0;do{if(!d)break;var x=hx(e,d),E=x[0],w=x[1],R=x[2],C=w-R-u*E;(E||C)&&dx(e,d)&&(y+=C,b+=E);var A=d.parentNode;d=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!h&&d!==document.body||h&&(t.contains(d)||t===d));return(m&&Math.abs(y)<1||!m&&Math.abs(b)<1)&&(p=!0),p},"handleScroll"),Uu=a(function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},"getTouchXY"),$0=a(function(e){return[e.deltaX,e.deltaY]},"getDeltaXY"),Y0=a(function(e){return e&&"current"in e?e.current:e},"extractRef"),O_=a(function(e,t){return e[0]===t[0]&&e[1]===t[1]},"deltaCompare"),A_=a(function(e){return`
87
87
  .block-interactivity-`.concat(e,` {pointer-events: none;}
88
88
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
89
- `)},"generateStyle"),M_=0,ea=[];function __(e){var t=S.useRef([]),r=S.useRef([0,0]),o=S.useRef(),l=S.useState(M_++)[0],u=S.useState(cx)[0],c=S.useRef(e);S.useEffect(function(){c.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var w=WM([e.lockRef.current],(e.shards||[]).map(Y0),!0).filter(Boolean);return w.forEach(function(R){return R.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),w.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var d=S.useCallback(function(w,R){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!c.current.allowPinchZoom;var C=Uu(w),A=r.current,k="deltaX"in w?w.deltaX:A[0]-C[0],z="deltaY"in w?w.deltaY:A[1]-C[1],L,N=w.target,j=Math.abs(k)>Math.abs(z)?"h":"v";if("touches"in w&&j==="h"&&N.type==="range")return!1;var $=G0(j,N);if(!$)return!0;if($?L=j:(L=j==="v"?"h":"v",$=G0(j,N)),!$)return!1;if(!o.current&&"changedTouches"in w&&(k||z)&&(o.current=L),!L)return!0;var W=o.current||L;return R_(W,R,w,W==="h"?k:z)},[]),p=S.useCallback(function(w){var R=w;if(!(!ea.length||ea[ea.length-1]!==u)){var C="deltaY"in R?$0(R):Uu(R),A=t.current.filter(function(L){return L.name===R.type&&(L.target===R.target||R.target===L.shadowParent)&&O_(L.delta,C)})[0];if(A&&A.should){R.cancelable&&R.preventDefault();return}if(!A){var k=(c.current.shards||[]).map(Y0).filter(Boolean).filter(function(L){return L.contains(R.target)}),z=k.length>0?d(R,k[0]):!c.current.noIsolation;z&&R.cancelable&&R.preventDefault()}}},[]),h=S.useCallback(function(w,R,C,A){var k={name:w,delta:R,target:C,should:A,shadowParent:k_(C)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(z){return z!==k})},1)},[]),m=S.useCallback(function(w){r.current=Uu(w),o.current=void 0},[]),y=S.useCallback(function(w){h(w.type,$0(w),w.target,d(w,e.lockRef.current))},[]),b=S.useCallback(function(w){h(w.type,Uu(w),w.target,d(w,e.lockRef.current))},[]);S.useEffect(function(){return ea.push(u),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",p,Jo),document.addEventListener("touchmove",p,Jo),document.addEventListener("touchstart",m,Jo),function(){ea=ea.filter(function(w){return w!==u}),document.removeEventListener("wheel",p,Jo),document.removeEventListener("touchmove",p,Jo),document.removeEventListener("touchstart",m,Jo)}},[]);var x=e.removeScrollBar,E=e.inert;return S.createElement(S.Fragment,null,E?S.createElement(u,{styles:A_(l)}):null,x?S.createElement(b_,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}a(__,"RemoveScrollSideCar");function k_(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}a(k_,"getOutermostShadowParent");const D_=a_(ux,__);var kc=S.forwardRef(function(e,t){return S.createElement(_c,lr({},e,{ref:t,sideCar:D_}))});kc.classNames=_c.classNames;var N_=a(function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},"getDefaultParent"),ta=new WeakMap,Bu=new WeakMap,Hu={},jp=0,hx=a(function(e){return e&&(e.host||hx(e.parentNode))},"unwrapHost"),P_=a(function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=hx(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},"correctTargets"),L_=a(function(e,t,r,o){var l=P_(t,Array.isArray(e)?e:[e]);Hu[r]||(Hu[r]=new WeakMap);var u=Hu[r],c=[],d=new Set,p=new Set(l),h=a(function(y){!y||d.has(y)||(d.add(y),h(y.parentNode))},"keep");l.forEach(h);var m=a(function(y){!y||p.has(y)||Array.prototype.forEach.call(y.children,function(b){if(d.has(b))m(b);else try{var x=b.getAttribute(o),E=x!==null&&x!=="false",w=(ta.get(b)||0)+1,R=(u.get(b)||0)+1;ta.set(b,w),u.set(b,R),c.push(b),w===1&&E&&Bu.set(b,!0),R===1&&b.setAttribute(r,"true"),E||b.setAttribute(o,"true")}catch(C){console.error("aria-hidden: cannot operate on ",b,C)}})},"deep");return m(t),d.clear(),jp++,function(){c.forEach(function(y){var b=ta.get(y)-1,x=u.get(y)-1;ta.set(y,b),u.set(y,x),b||(Bu.has(y)||y.removeAttribute(o),Bu.delete(y)),x||y.removeAttribute(r)}),jp--,jp||(ta=new WeakMap,ta=new WeakMap,Bu=new WeakMap,Hu={})}},"applyAttributeToOthers"),hm=a(function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),l=N_(e);return l?(o.push.apply(o,Array.from(l.querySelectorAll("[aria-live], script"))),L_(o,l,r,"aria-hidden")):function(){return null}},"hideOthers"),Dc="Dialog",[mx,gx]=$t(Dc),[z_,Qn]=mx(Dc),yx=a(e=>{const{__scopeDialog:t,children:r,open:o,defaultOpen:l,onOpenChange:u,modal:c=!0}=e,d=S.useRef(null),p=S.useRef(null),[h,m]=hr({prop:o,defaultProp:l??!1,onChange:u,caller:Dc});return D.jsx(z_,{scope:t,triggerRef:d,contentRef:p,contentId:Ln(),titleId:Ln(),descriptionId:Ln(),open:h,onOpenChange:m,onOpenToggle:S.useCallback(()=>m(y=>!y),[m]),modal:c,children:r})},"Dialog");yx.displayName=Dc;var vx="DialogTrigger",bx=S.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,l=Qn(vx,r),u=ze(t,l.triggerRef);return D.jsx(Ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":ym(l.open),...o,ref:u,onClick:ye(e.onClick,l.onOpenToggle)})});bx.displayName=vx;var mm="DialogPortal",[I_,Sx]=mx(mm,{forceMount:void 0}),xx=a(e=>{const{__scopeDialog:t,forceMount:r,children:o,container:l}=e,u=Qn(mm,t);return D.jsx(I_,{scope:t,forceMount:r,children:S.Children.map(o,c=>D.jsx(It,{present:r||u.open,children:D.jsx(wa,{asChild:!0,container:l,children:c})}))})},"DialogPortal");xx.displayName=mm;var ac="DialogOverlay",wx=S.forwardRef((e,t)=>{const r=Sx(ac,e.__scopeDialog),{forceMount:o=r.forceMount,...l}=e,u=Qn(ac,e.__scopeDialog);return u.modal?D.jsx(It,{present:o||u.open,children:D.jsx(U_,{...l,ref:t})}):null});wx.displayName=ac;var j_=Wi("DialogOverlay.RemoveScroll"),U_=S.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,l=Qn(ac,r);return D.jsx(kc,{as:j_,allowPinchZoom:!0,shards:[l.contentRef],children:D.jsx(Ee.div,{"data-state":ym(l.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Zi="DialogContent",Ex=S.forwardRef((e,t)=>{const r=Sx(Zi,e.__scopeDialog),{forceMount:o=r.forceMount,...l}=e,u=Qn(Zi,e.__scopeDialog);return D.jsx(It,{present:o||u.open,children:u.modal?D.jsx(B_,{...l,ref:t}):D.jsx(H_,{...l,ref:t})})});Ex.displayName=Zi;var B_=S.forwardRef((e,t)=>{const r=Qn(Zi,e.__scopeDialog),o=S.useRef(null),l=ze(t,r.contentRef,o);return S.useEffect(()=>{const u=o.current;if(u)return hm(u)},[]),D.jsx(Cx,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ye(e.onCloseAutoFocus,u=>{u.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ye(e.onPointerDownOutside,u=>{const c=u.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0;(c.button===2||d)&&u.preventDefault()}),onFocusOutside:ye(e.onFocusOutside,u=>u.preventDefault())})}),H_=S.forwardRef((e,t)=>{const r=Qn(Zi,e.__scopeDialog),o=S.useRef(!1),l=S.useRef(!1);return D.jsx(Cx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a(u=>{e.onCloseAutoFocus?.(u),u.defaultPrevented||(o.current||r.triggerRef.current?.focus(),u.preventDefault()),o.current=!1,l.current=!1},"onCloseAutoFocus"),onInteractOutside:a(u=>{e.onInteractOutside?.(u),u.defaultPrevented||(o.current=!0,u.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const c=u.target;r.triggerRef.current?.contains(c)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&l.current&&u.preventDefault()},"onInteractOutside")})}),Cx=S.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:u,...c}=e,d=Qn(Zi,r),p=S.useRef(null),h=ze(t,p);return pm(),D.jsxs(D.Fragment,{children:[D.jsx(Mc,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:l,onUnmountAutoFocus:u,children:D.jsx(xa,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":ym(d.open),...c,ref:h,onDismiss:a(()=>d.onOpenChange(!1),"onDismiss")})}),D.jsxs(D.Fragment,{children:[D.jsx(q_,{titleId:d.titleId}),D.jsx(G_,{contentRef:p,descriptionId:d.descriptionId})]})]})}),gm="DialogTitle",Tx=S.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,l=Qn(gm,r);return D.jsx(Ee.h2,{id:l.titleId,...o,ref:t})});Tx.displayName=gm;var Rx="DialogDescription",Ox=S.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,l=Qn(Rx,r);return D.jsx(Ee.p,{id:l.descriptionId,...o,ref:t})});Ox.displayName=Rx;var Ax="DialogClose",Mx=S.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,l=Qn(Ax,r);return D.jsx(Ee.button,{type:"button",...o,ref:t,onClick:ye(e.onClick,()=>l.onOpenChange(!1))})});Mx.displayName=Ax;function ym(e){return e?"open":"closed"}a(ym,"getState$2");var _x="DialogTitleWarning",[F_,kx]=CM(_x,{contentName:Zi,titleName:gm,docsSlug:"dialog"}),q_=a(({titleId:e})=>{const t=kx(_x),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
89
+ `)},"generateStyle"),M_=0,ea=[];function __(e){var t=S.useRef([]),r=S.useRef([0,0]),o=S.useRef(),l=S.useState(M_++)[0],u=S.useState(cx)[0],c=S.useRef(e);S.useEffect(function(){c.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var w=WM([e.lockRef.current],(e.shards||[]).map(Y0),!0).filter(Boolean);return w.forEach(function(R){return R.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),w.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var d=S.useCallback(function(w,R){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!c.current.allowPinchZoom;var C=Uu(w),A=r.current,k="deltaX"in w?w.deltaX:A[0]-C[0],z="deltaY"in w?w.deltaY:A[1]-C[1],L,N=w.target,j=Math.abs(k)>Math.abs(z)?"h":"v";if("touches"in w&&j==="h"&&N.type==="range")return!1;var $=G0(j,N);if(!$)return!0;if($?L=j:(L=j==="v"?"h":"v",$=G0(j,N)),!$)return!1;if(!o.current&&"changedTouches"in w&&(k||z)&&(o.current=L),!L)return!0;var W=o.current||L;return R_(W,R,w,W==="h"?k:z)},[]),h=S.useCallback(function(w){var R=w;if(!(!ea.length||ea[ea.length-1]!==u)){var C="deltaY"in R?$0(R):Uu(R),A=t.current.filter(function(L){return L.name===R.type&&(L.target===R.target||R.target===L.shadowParent)&&O_(L.delta,C)})[0];if(A&&A.should){R.cancelable&&R.preventDefault();return}if(!A){var k=(c.current.shards||[]).map(Y0).filter(Boolean).filter(function(L){return L.contains(R.target)}),z=k.length>0?d(R,k[0]):!c.current.noIsolation;z&&R.cancelable&&R.preventDefault()}}},[]),p=S.useCallback(function(w,R,C,A){var k={name:w,delta:R,target:C,should:A,shadowParent:k_(C)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(z){return z!==k})},1)},[]),m=S.useCallback(function(w){r.current=Uu(w),o.current=void 0},[]),y=S.useCallback(function(w){p(w.type,$0(w),w.target,d(w,e.lockRef.current))},[]),b=S.useCallback(function(w){p(w.type,Uu(w),w.target,d(w,e.lockRef.current))},[]);S.useEffect(function(){return ea.push(u),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",h,Jo),document.addEventListener("touchmove",h,Jo),document.addEventListener("touchstart",m,Jo),function(){ea=ea.filter(function(w){return w!==u}),document.removeEventListener("wheel",h,Jo),document.removeEventListener("touchmove",h,Jo),document.removeEventListener("touchstart",m,Jo)}},[]);var x=e.removeScrollBar,E=e.inert;return S.createElement(S.Fragment,null,E?S.createElement(u,{styles:A_(l)}):null,x?S.createElement(b_,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}a(__,"RemoveScrollSideCar");function k_(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}a(k_,"getOutermostShadowParent");const D_=a_(ux,__);var kc=S.forwardRef(function(e,t){return S.createElement(_c,lr({},e,{ref:t,sideCar:D_}))});kc.classNames=_c.classNames;var N_=a(function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},"getDefaultParent"),ta=new WeakMap,Bu=new WeakMap,Hu={},jh=0,px=a(function(e){return e&&(e.host||px(e.parentNode))},"unwrapHost"),P_=a(function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=px(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},"correctTargets"),L_=a(function(e,t,r,o){var l=P_(t,Array.isArray(e)?e:[e]);Hu[r]||(Hu[r]=new WeakMap);var u=Hu[r],c=[],d=new Set,h=new Set(l),p=a(function(y){!y||d.has(y)||(d.add(y),p(y.parentNode))},"keep");l.forEach(p);var m=a(function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(b){if(d.has(b))m(b);else try{var x=b.getAttribute(o),E=x!==null&&x!=="false",w=(ta.get(b)||0)+1,R=(u.get(b)||0)+1;ta.set(b,w),u.set(b,R),c.push(b),w===1&&E&&Bu.set(b,!0),R===1&&b.setAttribute(r,"true"),E||b.setAttribute(o,"true")}catch(C){console.error("aria-hidden: cannot operate on ",b,C)}})},"deep");return m(t),d.clear(),jh++,function(){c.forEach(function(y){var b=ta.get(y)-1,x=u.get(y)-1;ta.set(y,b),u.set(y,x),b||(Bu.has(y)||y.removeAttribute(o),Bu.delete(y)),x||y.removeAttribute(r)}),jh--,jh||(ta=new WeakMap,ta=new WeakMap,Bu=new WeakMap,Hu={})}},"applyAttributeToOthers"),pm=a(function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),l=N_(e);return l?(o.push.apply(o,Array.from(l.querySelectorAll("[aria-live], script"))),L_(o,l,r,"aria-hidden")):function(){return null}},"hideOthers"),Dc="Dialog",[mx,gx]=$t(Dc),[z_,Qn]=mx(Dc),yx=a(e=>{const{__scopeDialog:t,children:r,open:o,defaultOpen:l,onOpenChange:u,modal:c=!0}=e,d=S.useRef(null),h=S.useRef(null),[p,m]=pr({prop:o,defaultProp:l??!1,onChange:u,caller:Dc});return D.jsx(z_,{scope:t,triggerRef:d,contentRef:h,contentId:Ln(),titleId:Ln(),descriptionId:Ln(),open:p,onOpenChange:m,onOpenToggle:S.useCallback(()=>m(y=>!y),[m]),modal:c,children:r})},"Dialog");yx.displayName=Dc;var vx="DialogTrigger",bx=S.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,l=Qn(vx,r),u=ze(t,l.triggerRef);return D.jsx(Ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":ym(l.open),...o,ref:u,onClick:ye(e.onClick,l.onOpenToggle)})});bx.displayName=vx;var mm="DialogPortal",[I_,Sx]=mx(mm,{forceMount:void 0}),xx=a(e=>{const{__scopeDialog:t,forceMount:r,children:o,container:l}=e,u=Qn(mm,t);return D.jsx(I_,{scope:t,forceMount:r,children:S.Children.map(o,c=>D.jsx(It,{present:r||u.open,children:D.jsx(wa,{asChild:!0,container:l,children:c})}))})},"DialogPortal");xx.displayName=mm;var ac="DialogOverlay",wx=S.forwardRef((e,t)=>{const r=Sx(ac,e.__scopeDialog),{forceMount:o=r.forceMount,...l}=e,u=Qn(ac,e.__scopeDialog);return u.modal?D.jsx(It,{present:o||u.open,children:D.jsx(U_,{...l,ref:t})}):null});wx.displayName=ac;var j_=Wi("DialogOverlay.RemoveScroll"),U_=S.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,l=Qn(ac,r);return D.jsx(kc,{as:j_,allowPinchZoom:!0,shards:[l.contentRef],children:D.jsx(Ee.div,{"data-state":ym(l.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Zi="DialogContent",Ex=S.forwardRef((e,t)=>{const r=Sx(Zi,e.__scopeDialog),{forceMount:o=r.forceMount,...l}=e,u=Qn(Zi,e.__scopeDialog);return D.jsx(It,{present:o||u.open,children:u.modal?D.jsx(B_,{...l,ref:t}):D.jsx(H_,{...l,ref:t})})});Ex.displayName=Zi;var B_=S.forwardRef((e,t)=>{const r=Qn(Zi,e.__scopeDialog),o=S.useRef(null),l=ze(t,r.contentRef,o);return S.useEffect(()=>{const u=o.current;if(u)return pm(u)},[]),D.jsx(Cx,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ye(e.onCloseAutoFocus,u=>{u.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ye(e.onPointerDownOutside,u=>{const c=u.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0;(c.button===2||d)&&u.preventDefault()}),onFocusOutside:ye(e.onFocusOutside,u=>u.preventDefault())})}),H_=S.forwardRef((e,t)=>{const r=Qn(Zi,e.__scopeDialog),o=S.useRef(!1),l=S.useRef(!1);return D.jsx(Cx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a(u=>{e.onCloseAutoFocus?.(u),u.defaultPrevented||(o.current||r.triggerRef.current?.focus(),u.preventDefault()),o.current=!1,l.current=!1},"onCloseAutoFocus"),onInteractOutside:a(u=>{e.onInteractOutside?.(u),u.defaultPrevented||(o.current=!0,u.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const c=u.target;r.triggerRef.current?.contains(c)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&l.current&&u.preventDefault()},"onInteractOutside")})}),Cx=S.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:u,...c}=e,d=Qn(Zi,r),h=S.useRef(null),p=ze(t,h);return hm(),D.jsxs(D.Fragment,{children:[D.jsx(Mc,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:l,onUnmountAutoFocus:u,children:D.jsx(xa,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":ym(d.open),...c,ref:p,onDismiss:a(()=>d.onOpenChange(!1),"onDismiss")})}),D.jsxs(D.Fragment,{children:[D.jsx(q_,{titleId:d.titleId}),D.jsx(G_,{contentRef:h,descriptionId:d.descriptionId})]})]})}),gm="DialogTitle",Tx=S.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,l=Qn(gm,r);return D.jsx(Ee.h2,{id:l.titleId,...o,ref:t})});Tx.displayName=gm;var Rx="DialogDescription",Ox=S.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,l=Qn(Rx,r);return D.jsx(Ee.p,{id:l.descriptionId,...o,ref:t})});Ox.displayName=Rx;var Ax="DialogClose",Mx=S.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,l=Qn(Ax,r);return D.jsx(Ee.button,{type:"button",...o,ref:t,onClick:ye(e.onClick,()=>l.onOpenChange(!1))})});Mx.displayName=Ax;function ym(e){return e?"open":"closed"}a(ym,"getState$2");var _x="DialogTitleWarning",[F_,kx]=CM(_x,{contentName:Zi,titleName:gm,docsSlug:"dialog"}),q_=a(({titleId:e})=>{const t=kx(_x),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
90
90
 
91
91
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
92
92
 
@@ -105,7 +105,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
105
105
  *
106
106
  * This source code is licensed under the ISC license.
107
107
  * See the LICENSE file in the root directory of this source tree.
108
- */const tk=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:l="",children:u,iconNode:c,...d},p)=>S.createElement("svg",{ref:p,...ek,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:Nx("lucide",l),...d},[...c.map(([h,m])=>S.createElement(h,m)),...Array.isArray(u)?u:[u]]));/**
108
+ */const tk=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:l="",children:u,iconNode:c,...d},h)=>S.createElement("svg",{ref:h,...ek,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:Nx("lucide",l),...d},[...c.map(([p,m])=>S.createElement(p,m)),...Array.isArray(u)?u:[u]]));/**
109
109
  * @license lucide-react v0.469.0 - ISC
110
110
  *
111
111
  * This source code is licensed under the ISC license.
@@ -175,12 +175,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
175
175
  *
176
176
  * This source code is licensed under the ISC license.
177
177
  * See the LICENSE file in the root directory of this source tree.
178
- */const p7=ve("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
178
+ */const h7=ve("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
179
179
  * @license lucide-react v0.469.0 - ISC
180
180
  *
181
181
  * This source code is licensed under the ISC license.
182
182
  * See the LICENSE file in the root directory of this source tree.
183
- */const h7=ve("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
183
+ */const p7=ve("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
184
184
  * @license lucide-react v0.469.0 - ISC
185
185
  *
186
186
  * This source code is licensed under the ISC license.
@@ -445,18 +445,18 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
445
445
  *
446
446
  * This source code is licensed under the ISC license.
447
447
  * See the LICENSE file in the root directory of this source tree.
448
- */const pU=ve("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/**
448
+ */const hU=ve("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/**
449
449
  * @license lucide-react v0.469.0 - ISC
450
450
  *
451
451
  * This source code is licensed under the ISC license.
452
452
  * See the LICENSE file in the root directory of this source tree.
453
- */const hU=ve("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
453
+ */const pU=ve("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
454
454
  * @license lucide-react v0.469.0 - ISC
455
455
  *
456
456
  * This source code is licensed under the ISC license.
457
457
  * See the LICENSE file in the root directory of this source tree.
458
- */const mU=ve("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),nk=["top","right","bottom","left"],xi=Math.min,vn=Math.max,lc=Math.round,Fu=Math.floor,pr=a(e=>({x:e,y:e}),"createCoords"),rk={left:"right",right:"left",bottom:"top",top:"bottom"},ik={start:"end",end:"start"};function Eh(e,t,r){return vn(e,xi(t,r))}a(Eh,"clamp");function Hr(e,t){return typeof e=="function"?e(t):e}a(Hr,"evaluate");function Fr(e){return e.split("-")[0]}a(Fr,"getSide");function Ea(e){return e.split("-")[1]}a(Ea,"getAlignment");function vm(e){return e==="x"?"y":"x"}a(vm,"getOppositeAxis");function bm(e){return e==="y"?"height":"width"}a(bm,"getAxisLength");const ok=new Set(["top","bottom"]);function ur(e){return ok.has(Fr(e))?"y":"x"}a(ur,"getSideAxis");function Sm(e){return vm(ur(e))}a(Sm,"getAlignmentAxis");function ak(e,t,r){r===void 0&&(r=!1);const o=Ea(e),l=Sm(e),u=bm(l);let c=l==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(c=sc(c)),[c,sc(c)]}a(ak,"getAlignmentSides");function lk(e){const t=sc(e);return[Ch(e),t,Ch(t)]}a(lk,"getExpandedPlacements");function Ch(e){return e.replace(/start|end/g,t=>ik[t])}a(Ch,"getOppositeAlignmentPlacement");const K0=["left","right"],Q0=["right","left"],sk=["top","bottom"],uk=["bottom","top"];function ck(e,t,r){switch(e){case"top":case"bottom":return r?t?Q0:K0:t?K0:Q0;case"left":case"right":return t?sk:uk;default:return[]}}a(ck,"getSideList");function fk(e,t,r,o){const l=Ea(e);let u=ck(Fr(e),r==="start",o);return l&&(u=u.map(c=>c+"-"+l),t&&(u=u.concat(u.map(Ch)))),u}a(fk,"getOppositeAxisPlacements");function sc(e){return e.replace(/left|right|bottom|top/g,t=>rk[t])}a(sc,"getOppositePlacement$1");function dk(e){return{top:0,right:0,bottom:0,left:0,...e}}a(dk,"expandPaddingObject");function Px(e){return typeof e!="number"?dk(e):{top:e,right:e,bottom:e,left:e}}a(Px,"getPaddingObject");function uc(e){const{x:t,y:r,width:o,height:l}=e;return{width:o,height:l,top:r,left:t,right:t+o,bottom:r+l,x:t,y:r}}a(uc,"rectToClientRect");function X0(e,t,r){let{reference:o,floating:l}=e;const u=ur(t),c=Sm(t),d=bm(c),p=Fr(t),h=u==="y",m=o.x+o.width/2-l.width/2,y=o.y+o.height/2-l.height/2,b=o[d]/2-l[d]/2;let x;switch(p){case"top":x={x:m,y:o.y-l.height};break;case"bottom":x={x:m,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y};break;case"left":x={x:o.x-l.width,y};break;default:x={x:o.x,y:o.y}}switch(Ea(t)){case"start":x[c]-=b*(r&&h?-1:1);break;case"end":x[c]+=b*(r&&h?-1:1);break}return x}a(X0,"computeCoordsFromPlacement");const pk=a(async(e,t,r)=>{const{placement:o="bottom",strategy:l="absolute",middleware:u=[],platform:c}=r,d=u.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(t));let h=await c.getElementRects({reference:e,floating:t,strategy:l}),{x:m,y}=X0(h,o,p),b=o,x={},E=0;for(let w=0;w<d.length;w++){const{name:R,fn:C}=d[w],{x:A,y:k,data:z,reset:L}=await C({x:m,y,initialPlacement:o,placement:b,strategy:l,middlewareData:x,rects:h,platform:c,elements:{reference:e,floating:t}});m=A??m,y=k??y,x={...x,[R]:{...x[R],...z}},L&&E<=50&&(E++,typeof L=="object"&&(L.placement&&(b=L.placement),L.rects&&(h=L.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:l}):L.rects),{x:m,y}=X0(h,b,p)),w=-1)}return{x:m,y,placement:b,strategy:l,middlewareData:x}},"computePosition$1");async function Ql(e,t){var r;t===void 0&&(t={});const{x:o,y:l,platform:u,rects:c,elements:d,strategy:p}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:b=!1,padding:x=0}=Hr(t,e),E=Px(x),R=d[b?y==="floating"?"reference":"floating":y],C=uc(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(R)))==null||r?R:R.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(d.floating)),boundary:h,rootBoundary:m,strategy:p})),A=y==="floating"?{x:o,y:l,width:c.floating.width,height:c.floating.height}:c.reference,k=await(u.getOffsetParent==null?void 0:u.getOffsetParent(d.floating)),z=await(u.isElement==null?void 0:u.isElement(k))?await(u.getScale==null?void 0:u.getScale(k))||{x:1,y:1}:{x:1,y:1},L=uc(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:A,offsetParent:k,strategy:p}):A);return{top:(C.top-L.top+E.top)/z.y,bottom:(L.bottom-C.bottom+E.bottom)/z.y,left:(C.left-L.left+E.left)/z.x,right:(L.right-C.right+E.right)/z.x}}a(Ql,"detectOverflow");const hk=a(e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:l,rects:u,platform:c,elements:d,middlewareData:p}=t,{element:h,padding:m=0}=Hr(e,t)||{};if(h==null)return{};const y=Px(m),b={x:r,y:o},x=Sm(l),E=bm(x),w=await c.getDimensions(h),R=x==="y",C=R?"top":"left",A=R?"bottom":"right",k=R?"clientHeight":"clientWidth",z=u.reference[E]+u.reference[x]-b[x]-u.floating[E],L=b[x]-u.reference[x],N=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let j=N?N[k]:0;(!j||!await(c.isElement==null?void 0:c.isElement(N)))&&(j=d.floating[k]||u.floating[E]);const $=z/2-L/2,W=j/2-w[E]/2-1,J=xi(y[C],W),X=xi(y[A],W),Z=J,ce=j-w[E]-X,q=j/2-w[E]/2+$,ae=Eh(Z,q,ce),I=!p.arrow&&Ea(l)!=null&&q!==ae&&u.reference[E]/2-(q<Z?J:X)-w[E]/2<0,Q=I?q<Z?q-Z:q-ce:0;return{[x]:b[x]+Q,data:{[x]:ae,centerOffset:q-ae-Q,...I&&{alignmentOffset:Q}},reset:I}}}),"arrow$4"),mk=a(function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:l,middlewareData:u,rects:c,initialPlacement:d,platform:p,elements:h}=t,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:w=!0,...R}=Hr(e,t);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const C=Fr(l),A=ur(d),k=Fr(d)===d,z=await(p.isRTL==null?void 0:p.isRTL(h.floating)),L=b||(k||!w?[sc(d)]:lk(d)),N=E!=="none";!b&&N&&L.push(...fk(d,w,E,z));const j=[d,...L],$=await Ql(t,R),W=[];let J=((o=u.flip)==null?void 0:o.overflows)||[];if(m&&W.push($[C]),y){const q=ak(l,c,z);W.push($[q[0]],$[q[1]])}if(J=[...J,{placement:l,overflows:W}],!W.every(q=>q<=0)){var X,Z;const q=(((X=u.flip)==null?void 0:X.index)||0)+1,ae=j[q];if(ae&&(!(y==="alignment"?A!==ur(ae):!1)||J.every(te=>ur(te.placement)===A?te.overflows[0]>0:!0)))return{data:{index:q,overflows:J},reset:{placement:ae}};let I=(Z=J.filter(Q=>Q.overflows[0]<=0).sort((Q,te)=>Q.overflows[1]-te.overflows[1])[0])==null?void 0:Z.placement;if(!I)switch(x){case"bestFit":{var ce;const Q=(ce=J.filter(te=>{if(N){const se=ur(te.placement);return se===A||se==="y"}return!0}).map(te=>[te.placement,te.overflows.filter(se=>se>0).reduce((se,O)=>se+O,0)]).sort((te,se)=>te[1]-se[1])[0])==null?void 0:ce[0];Q&&(I=Q);break}case"initialPlacement":I=d;break}if(l!==I)return{reset:{placement:I}}}return{}}}},"flip$3");function W0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}a(W0,"getSideOffsets");function Z0(e){return nk.some(t=>e[t]>=0)}a(Z0,"isAnySideFullyClipped");const gk=a(function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:o="referenceHidden",...l}=Hr(e,t);switch(o){case"referenceHidden":{const u=await Ql(t,{...l,elementContext:"reference"}),c=W0(u,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Z0(c)}}}case"escaped":{const u=await Ql(t,{...l,altBoundary:!0}),c=W0(u,r.floating);return{data:{escapedOffsets:c,escaped:Z0(c)}}}default:return{}}}}},"hide$3"),Lx=new Set(["left","top"]);async function yk(e,t){const{placement:r,platform:o,elements:l}=e,u=await(o.isRTL==null?void 0:o.isRTL(l.floating)),c=Fr(r),d=Ea(r),p=ur(r)==="y",h=Lx.has(c)?-1:1,m=u&&p?-1:1,y=Hr(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof E=="number"&&(x=d==="end"?E*-1:E),p?{x:x*m,y:b*h}:{x:b*h,y:x*m}}a(yk,"convertValueToCoords");const vk=a(function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:l,y:u,placement:c,middlewareData:d}=t,p=await yk(t,e);return c===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:l+p.x,y:u+p.y,data:{...p,placement:c}}}}},"offset$3"),bk=a(function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:l}=t,{mainAxis:u=!0,crossAxis:c=!1,limiter:d={fn:a(R=>{let{x:C,y:A}=R;return{x:C,y:A}},"fn")},...p}=Hr(e,t),h={x:r,y:o},m=await Ql(t,p),y=ur(Fr(l)),b=vm(y);let x=h[b],E=h[y];if(u){const R=b==="y"?"top":"left",C=b==="y"?"bottom":"right",A=x+m[R],k=x-m[C];x=Eh(A,x,k)}if(c){const R=y==="y"?"top":"left",C=y==="y"?"bottom":"right",A=E+m[R],k=E-m[C];E=Eh(A,E,k)}const w=d.fn({...t,[b]:x,[y]:E});return{...w,data:{x:w.x-r,y:w.y-o,enabled:{[b]:u,[y]:c}}}}}},"shift$3"),Sk=a(function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:l,rects:u,middlewareData:c}=t,{offset:d=0,mainAxis:p=!0,crossAxis:h=!0}=Hr(e,t),m={x:r,y:o},y=ur(l),b=vm(y);let x=m[b],E=m[y];const w=Hr(d,t),R=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(p){const k=b==="y"?"height":"width",z=u.reference[b]-u.floating[k]+R.mainAxis,L=u.reference[b]+u.reference[k]-R.mainAxis;x<z?x=z:x>L&&(x=L)}if(h){var C,A;const k=b==="y"?"width":"height",z=Lx.has(Fr(l)),L=u.reference[y]-u.floating[k]+(z&&((C=c.offset)==null?void 0:C[y])||0)+(z?0:R.crossAxis),N=u.reference[y]+u.reference[k]+(z?0:((A=c.offset)==null?void 0:A[y])||0)-(z?R.crossAxis:0);E<L?E=L:E>N&&(E=N)}return{[b]:x,[y]:E}}}},"limitShift$2"),xk=a(function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:l,rects:u,platform:c,elements:d}=t,{apply:p=a(()=>{},"apply"),...h}=Hr(e,t),m=await Ql(t,h),y=Fr(l),b=Ea(l),x=ur(l)==="y",{width:E,height:w}=u.floating;let R,C;y==="top"||y==="bottom"?(R=y,C=b===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(C=y,R=b==="end"?"top":"bottom");const A=w-m.top-m.bottom,k=E-m.left-m.right,z=xi(w-m[R],A),L=xi(E-m[C],k),N=!t.middlewareData.shift;let j=z,$=L;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&($=k),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(j=A),N&&!b){const J=vn(m.left,0),X=vn(m.right,0),Z=vn(m.top,0),ce=vn(m.bottom,0);x?$=E-2*(J!==0||X!==0?J+X:vn(m.left,m.right)):j=w-2*(Z!==0||ce!==0?Z+ce:vn(m.top,m.bottom))}await p({...t,availableWidth:$,availableHeight:j});const W=await c.getDimensions(d.floating);return E!==W.width||w!==W.height?{reset:{rects:!0}}:{}}}},"size$2");function Nc(){return typeof window<"u"}a(Nc,"hasWindow");function Ca(e){return zx(e)?(e.nodeName||"").toLowerCase():"#document"}a(Ca,"getNodeName");function Sn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}a(Sn,"getWindow$1");function yr(e){var t;return(t=(zx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}a(yr,"getDocumentElement");function zx(e){return Nc()?e instanceof Node||e instanceof Sn(e).Node:!1}a(zx,"isNode");function $n(e){return Nc()?e instanceof Element||e instanceof Sn(e).Element:!1}a($n,"isElement");function mr(e){return Nc()?e instanceof HTMLElement||e instanceof Sn(e).HTMLElement:!1}a(mr,"isHTMLElement$1");function J0(e){return!Nc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Sn(e).ShadowRoot}a(J0,"isShadowRoot");const wk=new Set(["inline","contents"]);function ss(e){const{overflow:t,overflowX:r,overflowY:o,display:l}=Yn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!wk.has(l)}a(ss,"isOverflowElement");const Ek=new Set(["table","td","th"]);function Ck(e){return Ek.has(Ca(e))}a(Ck,"isTableElement");const Tk=[":popover-open",":modal"];function Pc(e){return Tk.some(t=>{try{return e.matches(t)}catch{return!1}})}a(Pc,"isTopLayer");const Rk=["transform","translate","scale","rotate","perspective"],Ok=["transform","translate","scale","rotate","perspective","filter"],Ak=["paint","layout","strict","content"];function xm(e){const t=wm(),r=$n(e)?Yn(e):e;return Rk.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Ok.some(o=>(r.willChange||"").includes(o))||Ak.some(o=>(r.contain||"").includes(o))}a(xm,"isContainingBlock");function Mk(e){let t=wi(e);for(;mr(t)&&!ha(t);){if(xm(t))return t;if(Pc(t))return null;t=wi(t)}return null}a(Mk,"getContainingBlock");function wm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}a(wm,"isWebKit");const _k=new Set(["html","body","#document"]);function ha(e){return _k.has(Ca(e))}a(ha,"isLastTraversableNode");function Yn(e){return Sn(e).getComputedStyle(e)}a(Yn,"getComputedStyle$1");function Lc(e){return $n(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}a(Lc,"getNodeScroll");function wi(e){if(Ca(e)==="html")return e;const t=e.assignedSlot||e.parentNode||J0(e)&&e.host||yr(e);return J0(t)?t.host:t}a(wi,"getParentNode$1");function Ix(e){const t=wi(e);return ha(t)?e.ownerDocument?e.ownerDocument.body:e.body:mr(t)&&ss(t)?t:Ix(t)}a(Ix,"getNearestOverflowAncestor");function Xl(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const l=Ix(e),u=l===((o=e.ownerDocument)==null?void 0:o.body),c=Sn(l);if(u){const d=Th(c);return t.concat(c,c.visualViewport||[],ss(l)?l:[],d&&r?Xl(d):[])}return t.concat(l,Xl(l,[],r))}a(Xl,"getOverflowAncestors");function Th(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}a(Th,"getFrameElement");function jx(e){const t=Yn(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const l=mr(e),u=l?e.offsetWidth:r,c=l?e.offsetHeight:o,d=lc(r)!==u||lc(o)!==c;return d&&(r=u,o=c),{width:r,height:o,$:d}}a(jx,"getCssDimensions");function Em(e){return $n(e)?e:e.contextElement}a(Em,"unwrapElement");function ua(e){const t=Em(e);if(!mr(t))return pr(1);const r=t.getBoundingClientRect(),{width:o,height:l,$:u}=jx(t);let c=(u?lc(r.width):r.width)/o,d=(u?lc(r.height):r.height)/l;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}a(ua,"getScale");const kk=pr(0);function Ux(e){const t=Sn(e);return!wm()||!t.visualViewport?kk:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}a(Ux,"getVisualOffsets");function Dk(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Sn(e)?!1:t}a(Dk,"shouldAddVisualOffsets");function Ji(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),u=Em(e);let c=pr(1);t&&(o?$n(o)&&(c=ua(o)):c=ua(e));const d=Dk(u,r,o)?Ux(u):pr(0);let p=(l.left+d.x)/c.x,h=(l.top+d.y)/c.y,m=l.width/c.x,y=l.height/c.y;if(u){const b=Sn(u),x=o&&$n(o)?Sn(o):o;let E=b,w=Th(E);for(;w&&o&&x!==E;){const R=ua(w),C=w.getBoundingClientRect(),A=Yn(w),k=C.left+(w.clientLeft+parseFloat(A.paddingLeft))*R.x,z=C.top+(w.clientTop+parseFloat(A.paddingTop))*R.y;p*=R.x,h*=R.y,m*=R.x,y*=R.y,p+=k,h+=z,E=Sn(w),w=Th(E)}}return uc({width:m,height:y,x:p,y:h})}a(Ji,"getBoundingClientRect$1");function zc(e,t){const r=Lc(e).scrollLeft;return t?t.left+r:Ji(yr(e)).left+r}a(zc,"getWindowScrollBarX");function Bx(e,t){const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-zc(e,r),l=r.top+t.scrollTop;return{x:o,y:l}}a(Bx,"getHTMLOffset");function Nk(e){let{elements:t,rect:r,offsetParent:o,strategy:l}=e;const u=l==="fixed",c=yr(o),d=t?Pc(t.floating):!1;if(o===c||d&&u)return r;let p={scrollLeft:0,scrollTop:0},h=pr(1);const m=pr(0),y=mr(o);if((y||!y&&!u)&&((Ca(o)!=="body"||ss(c))&&(p=Lc(o)),mr(o))){const x=Ji(o);h=ua(o),m.x=x.x+o.clientLeft,m.y=x.y+o.clientTop}const b=c&&!y&&!u?Bx(c,p):pr(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-p.scrollLeft*h.x+m.x+b.x,y:r.y*h.y-p.scrollTop*h.y+m.y+b.y}}a(Nk,"convertOffsetParentRelativeRectToViewportRelativeRect");function Pk(e){return Array.from(e.getClientRects())}a(Pk,"getClientRects");function Lk(e){const t=yr(e),r=Lc(e),o=e.ownerDocument.body,l=vn(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),u=vn(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let c=-r.scrollLeft+zc(e);const d=-r.scrollTop;return Yn(o).direction==="rtl"&&(c+=vn(t.clientWidth,o.clientWidth)-l),{width:l,height:u,x:c,y:d}}a(Lk,"getDocumentRect");const e1=25;function zk(e,t){const r=Sn(e),o=yr(e),l=r.visualViewport;let u=o.clientWidth,c=o.clientHeight,d=0,p=0;if(l){u=l.width,c=l.height;const m=wm();(!m||m&&t==="fixed")&&(d=l.offsetLeft,p=l.offsetTop)}const h=zc(o);if(h<=0){const m=o.ownerDocument,y=m.body,b=getComputedStyle(y),x=m.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(o.clientWidth-y.clientWidth-x);E<=e1&&(u-=E)}else h<=e1&&(u+=h);return{width:u,height:c,x:d,y:p}}a(zk,"getViewportRect");const Ik=new Set(["absolute","fixed"]);function jk(e,t){const r=Ji(e,!0,t==="fixed"),o=r.top+e.clientTop,l=r.left+e.clientLeft,u=mr(e)?ua(e):pr(1),c=e.clientWidth*u.x,d=e.clientHeight*u.y,p=l*u.x,h=o*u.y;return{width:c,height:d,x:p,y:h}}a(jk,"getInnerBoundingClientRect");function t1(e,t,r){let o;if(t==="viewport")o=zk(e,r);else if(t==="document")o=Lk(yr(e));else if($n(t))o=jk(t,r);else{const l=Ux(e);o={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return uc(o)}a(t1,"getClientRectFromClippingAncestor");function Hx(e,t){const r=wi(e);return r===t||!$n(r)||ha(r)?!1:Yn(r).position==="fixed"||Hx(r,t)}a(Hx,"hasFixedPositionAncestor");function Uk(e,t){const r=t.get(e);if(r)return r;let o=Xl(e,[],!1).filter(d=>$n(d)&&Ca(d)!=="body"),l=null;const u=Yn(e).position==="fixed";let c=u?wi(e):e;for(;$n(c)&&!ha(c);){const d=Yn(c),p=xm(c);!p&&d.position==="fixed"&&(l=null),(u?!p&&!l:!p&&d.position==="static"&&!!l&&Ik.has(l.position)||ss(c)&&!p&&Hx(e,c))?o=o.filter(m=>m!==c):l=d,c=wi(c)}return t.set(e,o),o}a(Uk,"getClippingElementAncestors");function Bk(e){let{element:t,boundary:r,rootBoundary:o,strategy:l}=e;const c=[...r==="clippingAncestors"?Pc(t)?[]:Uk(t,this._c):[].concat(r),o],d=c[0],p=c.reduce((h,m)=>{const y=t1(t,m,l);return h.top=vn(y.top,h.top),h.right=xi(y.right,h.right),h.bottom=xi(y.bottom,h.bottom),h.left=vn(y.left,h.left),h},t1(t,d,l));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}a(Bk,"getClippingRect");function Hk(e){const{width:t,height:r}=jx(e);return{width:t,height:r}}a(Hk,"getDimensions");function Fk(e,t,r){const o=mr(t),l=yr(t),u=r==="fixed",c=Ji(e,!0,u,t);let d={scrollLeft:0,scrollTop:0};const p=pr(0);function h(){p.x=zc(l)}if(a(h,"setLeftRTLScrollbarOffset"),o||!o&&!u)if((Ca(t)!=="body"||ss(l))&&(d=Lc(t)),o){const x=Ji(t,!0,u,t);p.x=x.x+t.clientLeft,p.y=x.y+t.clientTop}else l&&h();u&&!o&&l&&h();const m=l&&!o&&!u?Bx(l,d):pr(0),y=c.left+d.scrollLeft-p.x-m.x,b=c.top+d.scrollTop-p.y-m.y;return{x:y,y:b,width:c.width,height:c.height}}a(Fk,"getRectRelativeToOffsetParent");function Up(e){return Yn(e).position==="static"}a(Up,"isStaticPositioned");function n1(e,t){if(!mr(e)||Yn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return yr(e)===r&&(r=r.ownerDocument.body),r}a(n1,"getTrueOffsetParent");function Fx(e,t){const r=Sn(e);if(Pc(e))return r;if(!mr(e)){let l=wi(e);for(;l&&!ha(l);){if($n(l)&&!Up(l))return l;l=wi(l)}return r}let o=n1(e,t);for(;o&&Ck(o)&&Up(o);)o=n1(o,t);return o&&ha(o)&&Up(o)&&!xm(o)?r:o||Mk(e)||r}a(Fx,"getOffsetParent$1");const qk=a(async function(e){const t=this.getOffsetParent||Fx,r=this.getDimensions,o=await r(e.floating);return{reference:Fk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},"getElementRects");function Vk(e){return Yn(e).direction==="rtl"}a(Vk,"isRTL");const Gk={convertOffsetParentRelativeRectToViewportRelativeRect:Nk,getDocumentElement:yr,getClippingRect:Bk,getOffsetParent:Fx,getElementRects:qk,getClientRects:Pk,getDimensions:Hk,getScale:ua,isElement:$n,isRTL:Vk};function qx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}a(qx,"rectsAreEqual");function $k(e,t){let r=null,o;const l=yr(e);function u(){var d;clearTimeout(o),(d=r)==null||d.disconnect(),r=null}a(u,"cleanup");function c(d,p){d===void 0&&(d=!1),p===void 0&&(p=1),u();const h=e.getBoundingClientRect(),{left:m,top:y,width:b,height:x}=h;if(d||t(),!b||!x)return;const E=Fu(y),w=Fu(l.clientWidth-(m+b)),R=Fu(l.clientHeight-(y+x)),C=Fu(m),k={rootMargin:-E+"px "+-w+"px "+-R+"px "+-C+"px",threshold:vn(0,xi(1,p))||1};let z=!0;function L(N){const j=N[0].intersectionRatio;if(j!==p){if(!z)return c();j?c(!1,j):o=setTimeout(()=>{c(!1,1e-7)},1e3)}j===1&&!qx(h,e.getBoundingClientRect())&&c(),z=!1}a(L,"handleObserve");try{r=new IntersectionObserver(L,{...k,root:l.ownerDocument})}catch{r=new IntersectionObserver(L,k)}r.observe(e)}return a(c,"refresh"),c(!0),u}a($k,"observeMove");function Yk(e,t,r,o){o===void 0&&(o={});const{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:p=!1}=o,h=Em(e),m=l||u?[...h?Xl(h):[],...Xl(t)]:[];m.forEach(C=>{l&&C.addEventListener("scroll",r,{passive:!0}),u&&C.addEventListener("resize",r)});const y=h&&d?$k(h,r):null;let b=-1,x=null;c&&(x=new ResizeObserver(C=>{let[A]=C;A&&A.target===h&&x&&(x.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var k;(k=x)==null||k.observe(t)})),r()}),h&&!p&&x.observe(h),x.observe(t));let E,w=p?Ji(e):null;p&&R();function R(){const C=Ji(e);w&&!qx(w,C)&&r(),w=C,E=requestAnimationFrame(R)}return a(R,"frameLoop"),r(),()=>{var C;m.forEach(A=>{l&&A.removeEventListener("scroll",r),u&&A.removeEventListener("resize",r)}),y?.(),(C=x)==null||C.disconnect(),x=null,p&&cancelAnimationFrame(E)}}a(Yk,"autoUpdate");const Kk=vk,Qk=bk,Xk=mk,Wk=xk,Zk=gk,r1=hk,Jk=Sk,eD=a((e,t,r)=>{const o=new Map,l={platform:Gk,...r},u={...l.platform,_c:o};return pk(e,t,{...l,platform:u})},"computePosition");var tD=typeof document<"u",nD=a(function(){},"noop"),Ju=tD?S.useLayoutEffect:nD;function cc(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 r,o,l;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!cc(e[o],t[o]))return!1;return!0}if(l=Object.keys(e),r=l.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(t,l[o]))return!1;for(o=r;o--!==0;){const u=l[o];if(!(u==="_owner"&&e.$$typeof)&&!cc(e[u],t[u]))return!1}return!0}return e!==e&&t!==t}a(cc,"deepEqual");function Vx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}a(Vx,"getDPR");function i1(e,t){const r=Vx(e);return Math.round(t*r)/r}a(i1,"roundByDPR");function Bp(e){const t=S.useRef(e);return Ju(()=>{t.current=e}),t}a(Bp,"useLatestRef");function rD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:l,elements:{reference:u,floating:c}={},transform:d=!0,whileElementsMounted:p,open:h}=e,[m,y]=S.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[b,x]=S.useState(o);cc(b,o)||x(o);const[E,w]=S.useState(null),[R,C]=S.useState(null),A=S.useCallback(te=>{te!==N.current&&(N.current=te,w(te))},[]),k=S.useCallback(te=>{te!==j.current&&(j.current=te,C(te))},[]),z=u||E,L=c||R,N=S.useRef(null),j=S.useRef(null),$=S.useRef(m),W=p!=null,J=Bp(p),X=Bp(l),Z=Bp(h),ce=S.useCallback(()=>{if(!N.current||!j.current)return;const te={placement:t,strategy:r,middleware:b};X.current&&(te.platform=X.current),eD(N.current,j.current,te).then(se=>{const O={...se,isPositioned:Z.current!==!1};q.current&&!cc($.current,O)&&($.current=O,dr.flushSync(()=>{y(O)}))})},[b,t,r,X,Z]);Ju(()=>{h===!1&&$.current.isPositioned&&($.current.isPositioned=!1,y(te=>({...te,isPositioned:!1})))},[h]);const q=S.useRef(!1);Ju(()=>(q.current=!0,()=>{q.current=!1}),[]),Ju(()=>{if(z&&(N.current=z),L&&(j.current=L),z&&L){if(J.current)return J.current(z,L,ce);ce()}},[z,L,ce,J,W]);const ae=S.useMemo(()=>({reference:N,floating:j,setReference:A,setFloating:k}),[A,k]),I=S.useMemo(()=>({reference:z,floating:L}),[z,L]),Q=S.useMemo(()=>{const te={position:r,left:0,top:0};if(!I.floating)return te;const se=i1(I.floating,m.x),O=i1(I.floating,m.y);return d?{...te,transform:"translate("+se+"px, "+O+"px)",...Vx(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:se,top:O}},[r,d,I.floating,m.x,m.y]);return S.useMemo(()=>({...m,update:ce,refs:ae,elements:I,floatingStyles:Q}),[m,ce,ae,I,Q])}a(rD,"useFloating");const iD=a(e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return a(t,"isRef"),{name:"arrow",options:e,fn(r){const{element:o,padding:l}=typeof e=="function"?e(r):e;return o&&t(o)?o.current!=null?r1({element:o.current,padding:l}).fn(r):{}:o?r1({element:o,padding:l}).fn(r):{}}}},"arrow$1"),oD=a((e,t)=>({...Kk(e),options:[e,t]}),"offset$1"),aD=a((e,t)=>({...Qk(e),options:[e,t]}),"shift$1"),lD=a((e,t)=>({...Jk(e),options:[e,t]}),"limitShift"),sD=a((e,t)=>({...Xk(e),options:[e,t]}),"flip$1"),uD=a((e,t)=>({...Wk(e),options:[e,t]}),"size"),cD=a((e,t)=>({...Zk(e),options:[e,t]}),"hide$1"),fD=a((e,t)=>({...iD(e),options:[e,t]}),"arrow$2");var dD="Arrow",Gx=S.forwardRef((e,t)=>{const{children:r,width:o=10,height:l=5,...u}=e;return D.jsx(Ee.svg,{...u,ref:t,width:o,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:D.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gx.displayName=dD;var pD=Gx;function $x(e){const[t,r]=S.useState(void 0);return bt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const u=l[0];let c,d;if("borderBoxSize"in u){const p=u.borderBoxSize,h=Array.isArray(p)?p[0]:p;c=h.inlineSize,d=h.blockSize}else c=e.offsetWidth,d=e.offsetHeight;r({width:c,height:d})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else r(void 0)},[e]),t}a($x,"useSize");var Cm="Popper",[Yx,Ta]=$t(Cm),[hD,Kx]=Yx(Cm),Qx=a(e=>{const{__scopePopper:t,children:r}=e,[o,l]=S.useState(null);return D.jsx(hD,{scope:t,anchor:o,onAnchorChange:l,children:r})},"Popper$1");Qx.displayName=Cm;var Xx="PopperAnchor",Wx=S.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:o,...l}=e,u=Kx(Xx,r),c=S.useRef(null),d=ze(t,c),p=S.useRef(null);return S.useEffect(()=>{const h=p.current;p.current=o?.current||c.current,h!==p.current&&u.onAnchorChange(p.current)}),o?null:D.jsx(Ee.div,{...l,ref:d})});Wx.displayName=Xx;var Tm="PopperContent",[mD,gD]=Yx(Tm),Zx=S.forwardRef((e,t)=>{const{__scopePopper:r,side:o="bottom",sideOffset:l=0,align:u="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:p=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:x="optimized",onPlaced:E,...w}=e,R=Kx(Tm,r),[C,A]=S.useState(null),k=ze(t,K=>A(K)),[z,L]=S.useState(null),N=$x(z),j=N?.width??0,$=N?.height??0,W=o+(u!=="center"?"-"+u:""),J=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},X=Array.isArray(h)?h:[h],Z=X.length>0,ce={padding:J,boundary:X.filter(vD),altBoundary:Z},{refs:q,floatingStyles:ae,placement:I,isPositioned:Q,middlewareData:te}=rD({strategy:"fixed",placement:W,whileElementsMounted:a((...K)=>Yk(...K,{animationFrame:x==="always"}),"whileElementsMounted"),elements:{reference:R.anchor},middleware:[oD({mainAxis:l+$,alignmentAxis:c}),p&&aD({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?lD():void 0,...ce}),p&&sD({...ce}),uD({...ce,apply:a(({elements:K,rects:fe,availableWidth:Ce,availableHeight:Te})=>{const{width:Pe,height:qe}=fe.reference,Ie=K.floating.style;Ie.setProperty("--radix-popper-available-width",`${Ce}px`),Ie.setProperty("--radix-popper-available-height",`${Te}px`),Ie.setProperty("--radix-popper-anchor-width",`${Pe}px`),Ie.setProperty("--radix-popper-anchor-height",`${qe}px`)},"apply")}),z&&fD({element:z,padding:d}),bD({arrowWidth:j,arrowHeight:$}),b&&cD({strategy:"referenceHidden",...ce})]}),[se,O]=tw(I),Y=vt(E);bt(()=>{Q&&Y?.()},[Q,Y]);const de=te.arrow?.x,M=te.arrow?.y,ne=te.arrow?.centerOffset!==0,[me,oe]=S.useState();return bt(()=>{C&&oe(window.getComputedStyle(C).zIndex)},[C]),D.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:Q?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[te.transformOrigin?.x,te.transformOrigin?.y].join(" "),...te.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:D.jsx(mD,{scope:r,placedSide:se,onArrowChange:L,arrowX:de,arrowY:M,shouldHideArrow:ne,children:D.jsx(Ee.div,{"data-side":se,"data-align":O,...w,ref:k,style:{...w.style,animation:Q?void 0:"none"}})})})});Zx.displayName=Tm;var Jx="PopperArrow",yD={top:"bottom",right:"left",bottom:"top",left:"right"},ew=S.forwardRef(a(function(t,r){const{__scopePopper:o,...l}=t,u=gD(Jx,o),c=yD[u.placedSide];return D.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:D.jsx(pD,{...l,ref:r,style:{...l.style,display:"block"}})})},"PopperArrow2"));ew.displayName=Jx;function vD(e){return e!==null}a(vD,"isNotNull");var bD=a(e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:o,middlewareData:l}=t,c=l.arrow?.centerOffset!==0,d=c?0:e.arrowWidth,p=c?0:e.arrowHeight,[h,m]=tw(r),y={start:"0%",center:"50%",end:"100%"}[m],b=(l.arrow?.x??0)+d/2,x=(l.arrow?.y??0)+p/2;let E="",w="";return h==="bottom"?(E=c?y:`${b}px`,w=`${-p}px`):h==="top"?(E=c?y:`${b}px`,w=`${o.floating.height+p}px`):h==="right"?(E=`${-p}px`,w=c?y:`${x}px`):h==="left"&&(E=`${o.floating.width+p}px`,w=c?y:`${x}px`),{data:{x:E,y:w}}}}),"transformOrigin");function tw(e){const[t,r="center"]=e.split("-");return[t,r]}a(tw,"getSideAndAlignFromPlacement");var Rm=Qx,Om=Wx,Am=Zx,Mm=ew,nw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),SD="VisuallyHidden",Ic=S.forwardRef((e,t)=>D.jsx(Ee.span,{...e,ref:t,style:{...nw,...e.style}}));Ic.displayName=SD;var xD=Ic,[jc]=$t("Tooltip",[Ta]),Uc=Ta(),rw="TooltipProvider",wD=700,Rh="tooltip.open",[ED,_m]=jc(rw),iw=a(e=>{const{__scopeTooltip:t,delayDuration:r=wD,skipDelayDuration:o=300,disableHoverableContent:l=!1,children:u}=e,c=S.useRef(!0),d=S.useRef(!1),p=S.useRef(0);return S.useEffect(()=>{const h=p.current;return()=>window.clearTimeout(h)},[]),D.jsx(ED,{scope:t,isOpenDelayedRef:c,delayDuration:r,onOpen:S.useCallback(()=>{window.clearTimeout(p.current),c.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>c.current=!0,o)},[o]),isPointerInTransitRef:d,onPointerInTransitChange:S.useCallback(h=>{d.current=h},[]),disableHoverableContent:l,children:u})},"TooltipProvider");iw.displayName=rw;var Wl="Tooltip",[CD,us]=jc(Wl),ow=a(e=>{const{__scopeTooltip:t,children:r,open:o,defaultOpen:l,onOpenChange:u,disableHoverableContent:c,delayDuration:d}=e,p=_m(Wl,e.__scopeTooltip),h=Uc(t),[m,y]=S.useState(null),b=Ln(),x=S.useRef(0),E=c??p.disableHoverableContent,w=d??p.delayDuration,R=S.useRef(!1),[C,A]=hr({prop:o,defaultProp:l??!1,onChange:a(j=>{j?(p.onOpen(),document.dispatchEvent(new CustomEvent(Rh))):p.onClose(),u?.(j)},"onChange"),caller:Wl}),k=S.useMemo(()=>C?R.current?"delayed-open":"instant-open":"closed",[C]),z=S.useCallback(()=>{window.clearTimeout(x.current),x.current=0,R.current=!1,A(!0)},[A]),L=S.useCallback(()=>{window.clearTimeout(x.current),x.current=0,A(!1)},[A]),N=S.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{R.current=!0,A(!0),x.current=0},w)},[w,A]);return S.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),D.jsx(Rm,{...h,children:D.jsx(CD,{scope:t,contentId:b,open:C,stateAttribute:k,trigger:m,onTriggerChange:y,onTriggerEnter:S.useCallback(()=>{p.isOpenDelayedRef.current?N():z()},[p.isOpenDelayedRef,N,z]),onTriggerLeave:S.useCallback(()=>{E?L():(window.clearTimeout(x.current),x.current=0)},[L,E]),onOpen:z,onClose:L,disableHoverableContent:E,children:r})})},"Tooltip");ow.displayName=Wl;var Oh="TooltipTrigger",aw=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...o}=e,l=us(Oh,r),u=_m(Oh,r),c=Uc(r),d=S.useRef(null),p=ze(t,d,l.onTriggerChange),h=S.useRef(!1),m=S.useRef(!1),y=S.useCallback(()=>h.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),D.jsx(Om,{asChild:!0,...c,children:D.jsx(Ee.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...o,ref:p,onPointerMove:ye(e.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!u.isPointerInTransitRef.current&&(l.onTriggerEnter(),m.current=!0)}),onPointerLeave:ye(e.onPointerLeave,()=>{l.onTriggerLeave(),m.current=!1}),onPointerDown:ye(e.onPointerDown,()=>{l.open&&l.onClose(),h.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:ye(e.onFocus,()=>{h.current||l.onOpen()}),onBlur:ye(e.onBlur,l.onClose),onClick:ye(e.onClick,l.onClose)})})});aw.displayName=Oh;var km="TooltipPortal",[TD,RD]=jc(km,{forceMount:void 0}),lw=a(e=>{const{__scopeTooltip:t,forceMount:r,children:o,container:l}=e,u=us(km,t);return D.jsx(TD,{scope:t,forceMount:r,children:D.jsx(It,{present:r||u.open,children:D.jsx(wa,{asChild:!0,container:l,children:o})})})},"TooltipPortal");lw.displayName=km;var ma="TooltipContent",sw=S.forwardRef((e,t)=>{const r=RD(ma,e.__scopeTooltip),{forceMount:o=r.forceMount,side:l="top",...u}=e,c=us(ma,e.__scopeTooltip);return D.jsx(It,{present:o||c.open,children:c.disableHoverableContent?D.jsx(uw,{side:l,...u,ref:t}):D.jsx(OD,{side:l,...u,ref:t})})}),OD=S.forwardRef((e,t)=>{const r=us(ma,e.__scopeTooltip),o=_m(ma,e.__scopeTooltip),l=S.useRef(null),u=ze(t,l),[c,d]=S.useState(null),{trigger:p,onClose:h}=r,m=l.current,{onPointerInTransitChange:y}=o,b=S.useCallback(()=>{d(null),y(!1)},[y]),x=S.useCallback((E,w)=>{const R=E.currentTarget,C={x:E.clientX,y:E.clientY},A=DD(C,R.getBoundingClientRect()),k=ND(C,A),z=PD(w.getBoundingClientRect()),L=zD([...k,...z]);d(L),y(!0)},[y]);return S.useEffect(()=>()=>b(),[b]),S.useEffect(()=>{if(p&&m){const E=a(R=>x(R,m),"handleTriggerLeave"),w=a(R=>x(R,p),"handleContentLeave");return p.addEventListener("pointerleave",E),m.addEventListener("pointerleave",w),()=>{p.removeEventListener("pointerleave",E),m.removeEventListener("pointerleave",w)}}},[p,m,x,b]),S.useEffect(()=>{if(c){const E=a(w=>{const R=w.target,C={x:w.clientX,y:w.clientY},A=p?.contains(R)||m?.contains(R),k=!LD(C,c);A?b():k&&(b(),h())},"handleTrackPointerGrace");return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[p,m,c,h,b]),D.jsx(uw,{...e,ref:u})}),[AD,MD]=jc(Wl,{isInside:!1}),_D=tx("TooltipContent"),uw=S.forwardRef((e,t)=>{const{__scopeTooltip:r,children:o,"aria-label":l,onEscapeKeyDown:u,onPointerDownOutside:c,...d}=e,p=us(ma,r),h=Uc(r),{onClose:m}=p;return S.useEffect(()=>(document.addEventListener(Rh,m),()=>document.removeEventListener(Rh,m)),[m]),S.useEffect(()=>{if(p.trigger){const y=a(b=>{b.target?.contains(p.trigger)&&m()},"handleScroll");return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[p.trigger,m]),D.jsx(xa,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:a(y=>y.preventDefault(),"onFocusOutside"),onDismiss:m,children:D.jsxs(Am,{"data-state":p.stateAttribute,...h,...d,ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[D.jsx(_D,{children:o}),D.jsx(AD,{scope:r,isInside:!0,children:D.jsx(xD,{id:p.contentId,role:"tooltip",children:l||o})})]})})});sw.displayName=ma;var cw="TooltipArrow",kD=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...o}=e,l=Uc(r);return MD(cw,r).isInside?null:D.jsx(Mm,{...l,...o,ref:t})});kD.displayName=cw;function DD(e,t){const r=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),l=Math.abs(t.right-e.x),u=Math.abs(t.left-e.x);switch(Math.min(r,o,l,u)){case u:return"left";case l:return"right";case r:return"top";case o:return"bottom";default:throw new Error("unreachable")}}a(DD,"getExitSideFromRect");function ND(e,t,r=5){const o=[];switch(t){case"top":o.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":o.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":o.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":o.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return o}a(ND,"getPaddedExitPoints");function PD(e){const{top:t,right:r,bottom:o,left:l}=e;return[{x:l,y:t},{x:r,y:t},{x:r,y:o},{x:l,y:o}]}a(PD,"getPointsFromRect");function LD(e,t){const{x:r,y:o}=e;let l=!1;for(let u=0,c=t.length-1;u<t.length;c=u++){const d=t[u],p=t[c],h=d.x,m=d.y,y=p.x,b=p.y;m>o!=b>o&&r<(y-h)*(o-m)/(b-m)+h&&(l=!l)}return l}a(LD,"isPointInPolygon$1");function zD(e){const t=e.slice();return t.sort((r,o)=>r.x<o.x?-1:r.x>o.x?1:r.y<o.y?-1:r.y>o.y?1:0),ID(t)}a(zD,"getHull");function ID(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const l=e[o];for(;t.length>=2;){const u=t[t.length-1],c=t[t.length-2];if((u.x-c.x)*(l.y-c.y)>=(u.y-c.y)*(l.x-c.x))t.pop();else break}t.push(l)}t.pop();const r=[];for(let o=e.length-1;o>=0;o--){const l=e[o];for(;r.length>=2;){const u=r[r.length-1],c=r[r.length-2];if((u.x-c.x)*(l.y-c.y)>=(u.y-c.y)*(l.x-c.x))r.pop();else break}r.push(l)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}a(ID,"getHullPresorted");var gU=iw,yU=ow,vU=aw,bU=lw,SU=sw,ao=class{static{a(this,"Subscribable")}constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jD={setTimeout:a((e,t)=>setTimeout(e,t),"setTimeout"),clearTimeout:a(e=>clearTimeout(e),"clearTimeout"),setInterval:a((e,t)=>setInterval(e,t),"setInterval"),clearInterval:a(e=>clearInterval(e),"clearInterval")},UD=class{static{a(this,"TimeoutManager")}#t=jD;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},Ki=new UD;function BD(e){setTimeout(e,0)}a(BD,"systemSetTimeoutZero");var eo=typeof window>"u"||"Deno"in globalThis;function Ht(){}a(Ht,"noop$2");function HD(e,t){return typeof e=="function"?e(t):e}a(HD,"functionalUpdate");function Ah(e){return typeof e=="number"&&e>=0&&e!==1/0}a(Ah,"isValidTimeout");function fw(e,t){return Math.max(e+(t||0)-Date.now(),0)}a(fw,"timeUntilStale");function Si(e,t){return typeof e=="function"?e(t):e}a(Si,"resolveStaleTime");function Dn(e,t){return typeof e=="function"?e(t):e}a(Dn,"resolveEnabled");function o1(e,t){const{type:r="all",exact:o,fetchStatus:l,predicate:u,queryKey:c,stale:d}=e;if(c){if(o){if(t.queryHash!==Dm(c,t.options))return!1}else if(!Zl(t.queryKey,c))return!1}if(r!=="all"){const p=t.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||l&&l!==t.state.fetchStatus||u&&!u(t))}a(o1,"matchQuery");function a1(e,t){const{exact:r,status:o,predicate:l,mutationKey:u}=e;if(u){if(!t.options.mutationKey)return!1;if(r){if(to(t.options.mutationKey)!==to(u))return!1}else if(!Zl(t.options.mutationKey,u))return!1}return!(o&&t.state.status!==o||l&&!l(t))}a(a1,"matchMutation");function Dm(e,t){return(t?.queryKeyHashFn||to)(e)}a(Dm,"hashQueryKeyByOptions");function to(e){return JSON.stringify(e,(t,r)=>Mh(r)?Object.keys(r).sort().reduce((o,l)=>(o[l]=r[l],o),{}):r)}a(to,"hashKey");function Zl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Zl(e[r],t[r])):!1}a(Zl,"partialMatchKey");var FD=Object.prototype.hasOwnProperty;function Nm(e,t){if(e===t)return e;const r=l1(e)&&l1(t);if(!r&&!(Mh(e)&&Mh(t)))return t;const l=(r?e:Object.keys(e)).length,u=r?t:Object.keys(t),c=u.length,d=r?new Array(c):{};let p=0;for(let h=0;h<c;h++){const m=r?h:u[h],y=e[m],b=t[m];if(y===b){d[m]=y,(r?h<l:FD.call(e,m))&&p++;continue}if(y===null||b===null||typeof y!="object"||typeof b!="object"){d[m]=b;continue}const x=Nm(y,b);d[m]=x,x===y&&p++}return l===c&&p===l?e:d}a(Nm,"replaceEqualDeep");function Jl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}a(Jl,"shallowEqualObjects");function l1(e){return Array.isArray(e)&&e.length===Object.keys(e).length}a(l1,"isPlainArray");function Mh(e){if(!s1(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!s1(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}a(Mh,"isPlainObject$1");function s1(e){return Object.prototype.toString.call(e)==="[object Object]"}a(s1,"hasObjectPrototype");function qD(e){return new Promise(t=>{Ki.setTimeout(t,e)})}a(qD,"sleep");function _h(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Nm(e,t):t}a(_h,"replaceData");function VD(e,t,r=0){const o=[...e,t];return r&&o.length>r?o.slice(1):o}a(VD,"addToEnd");function GD(e,t,r=0){const o=[t,...e];return r&&o.length>r?o.slice(0,-1):o}a(GD,"addToStart");var Pm=Symbol();function dw(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Pm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}a(dw,"ensureQueryFn");function pw(e,t){return typeof e=="function"?e(...t):!!e}a(pw,"shouldThrowError");var $D=class extends ao{static{a(this,"FocusManager")}#t;#e;#n;constructor(){super(),this.#n=e=>{if(!eo&&window.addEventListener){const t=a(()=>e(),"listener");return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Lm=new $D;function kh(){let e,t;const r=new Promise((l,u)=>{e=l,t=u});r.status="pending",r.catch(()=>{});function o(l){Object.assign(r,l),delete r.resolve,delete r.reject}return a(o,"finalize"),r.resolve=l=>{o({status:"fulfilled",value:l}),e(l)},r.reject=l=>{o({status:"rejected",reason:l}),t(l)},r}a(kh,"pendingThenable");var YD=BD;function KD(){let e=[],t=0,r=a(d=>{d()},"notifyFn"),o=a(d=>{d()},"batchNotifyFn"),l=YD;const u=a(d=>{t?e.push(d):l(()=>{r(d)})},"schedule"),c=a(()=>{const d=e;e=[],d.length&&l(()=>{o(()=>{d.forEach(p=>{r(p)})})})},"flush");return{batch:a(d=>{let p;t++;try{p=d()}finally{t--,t||c()}return p},"batch"),batchCalls:a(d=>(...p)=>{u(()=>{d(...p)})},"batchCalls"),schedule:u,setNotifyFunction:a(d=>{r=d},"setNotifyFunction"),setBatchNotifyFunction:a(d=>{o=d},"setBatchNotifyFunction"),setScheduler:a(d=>{l=d},"setScheduler")}}a(KD,"createNotifyManager");var yt=KD(),QD=class extends ao{static{a(this,"OnlineManager")}#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!eo&&window.addEventListener){const t=a(()=>e(!0),"onlineListener"),r=a(()=>e(!1),"offlineListener");return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#t}},fc=new QD;function XD(e){return Math.min(1e3*2**e,3e4)}a(XD,"defaultRetryDelay");function hw(e){return(e??"online")==="online"?fc.isOnline():!0}a(hw,"canFetch");var Dh=class extends Error{static{a(this,"CancelledError")}constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function mw(e){let t=!1,r=0,o;const l=kh(),u=a(()=>l.status!=="pending","isResolved"),c=a(w=>{if(!u()){const R=new Dh(w);b(R),e.onCancel?.(R)}},"cancel"),d=a(()=>{t=!0},"cancelRetry"),p=a(()=>{t=!1},"continueRetry"),h=a(()=>Lm.isFocused()&&(e.networkMode==="always"||fc.isOnline())&&e.canRun(),"canContinue"),m=a(()=>hw(e.networkMode)&&e.canRun(),"canStart"),y=a(w=>{u()||(o?.(),l.resolve(w))},"resolve"),b=a(w=>{u()||(o?.(),l.reject(w))},"reject"),x=a(()=>new Promise(w=>{o=a(R=>{(u()||h())&&w(R)},"continueFn"),e.onPause?.()}).then(()=>{o=void 0,u()||e.onContinue?.()}),"pause"),E=a(()=>{if(u())return;let w;const R=r===0?e.initialPromise:void 0;try{w=R??e.fn()}catch(C){w=Promise.reject(C)}Promise.resolve(w).then(y).catch(C=>{if(u())return;const A=e.retry??(eo?0:3),k=e.retryDelay??XD,z=typeof k=="function"?k(r,C):k,L=A===!0||typeof A=="number"&&r<A||typeof A=="function"&&A(r,C);if(t||!L){b(C);return}r++,e.onFail?.(r,C),qD(z).then(()=>h()?void 0:x()).then(()=>{t?b(C):E()})})},"run");return{promise:l,status:a(()=>l.status,"status"),cancel:c,continue:a(()=>(o?.(),l),"continue"),cancelRetry:d,continueRetry:p,canStart:m,start:a(()=>(m()?E():x().then(E),l),"start")}}a(mw,"createRetryer");var gw=class{static{a(this,"Removable")}#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ah(this.gcTime)&&(this.#t=Ki.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(eo?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Ki.clearTimeout(this.#t),this.#t=void 0)}},WD=class extends gw{static{a(this,"Query")}#t;#e;#n;#i;#r;#o;#l;constructor(e){super(),this.#l=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=u1(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=u1(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const r=_h(this.state.data,e,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Ht).catch(Ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Dn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Pm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Si(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!fw(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#l?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,o=a(d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:a(()=>(this.#l=!0,r.signal),"get")})},"addSignalProperty"),l=a(()=>{const d=dw(this.options,t),h=a(()=>{const m={client:this.#i,queryKey:this.queryKey,meta:this.meta};return o(m),m},"createQueryFnContext")();return this.#l=!1,this.options.persister?this.options.persister(d,h,this):d(h)},"fetchFn"),c=a(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:l};return o(d),d},"createFetchContext")();this.options.behavior?.onFetch(c,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=mw({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:a(d=>{d instanceof Dh&&d.revert&&this.setState({...this.#e,fetchStatus:"idle"}),r.abort()},"onCancel"),onFail:a((d,p)=>{this.#a({type:"failed",failureCount:d,error:p})},"onFail"),onPause:a(()=>{this.#a({type:"pause"})},"onPause"),onContinue:a(()=>{this.#a({type:"continue"})},"onContinue"),retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:a(()=>!0,"canRun")});try{const d=await this.#r.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Dh){if(d.silent)return this.#r.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#a({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#a(e){const t=a(r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...yw(r.data,this.options),fetchMeta:e.meta??null};case"success":const o={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?o:void 0,o;case"error":const l=e.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}},"reducer");this.state=t(this.state),yt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function yw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}a(yw,"fetchState");function u1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,o=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}a(u1,"getDefaultState$1");var zm=class extends ao{static{a(this,"QueryObserver")}constructor(e,t){super(),this.options=t,this.#t=e,this.#a=null,this.#l=kh(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#i=void 0;#r;#o;#l;#a;#p;#f;#d;#u;#c;#s;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),c1(this.#e,this.options)?this.#h():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Nh(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Nh(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#x(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),t._defaulted&&!Jl(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&f1(this.#e,r,this.options,t)&&this.#h(),this.updateResult(),o&&(this.#e!==r||Dn(this.options.enabled,this.#e)!==Dn(t.enabled,this.#e)||Si(this.options.staleTime,this.#e)!==Si(t.staleTime,this.#e))&&this.#g();const l=this.#y();o&&(this.#e!==r||Dn(this.options.enabled,this.#e)!==Dn(t.enabled,this.#e)||l!==this.#s)&&this.#v(l)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),r=this.createResult(t,e);return JD(this,r)&&(this.#i=r,this.#o=this.options,this.#r=this.#e.state),r}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:a((r,o)=>(this.trackProp(o),t?.(o),o==="promise"&&!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,o)),"get")})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),r=this.#t.getQueryCache().build(this.#t,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#h(e){this.#w();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ht)),t}#g(){this.#S();const e=Si(this.options.staleTime,this.#e);if(eo||this.#i.isStale||!Ah(e))return;const r=fw(this.#i.dataUpdatedAt,e)+1;this.#u=Ki.setTimeout(()=>{this.#i.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#s=e,!(eo||Dn(this.options.enabled,this.#e)===!1||!Ah(this.#s)||this.#s===0)&&(this.#c=Ki.setInterval(()=>{(this.options.refetchIntervalInBackground||Lm.isFocused())&&this.#h()},this.#s))}#b(){this.#g(),this.#v(this.#y())}#S(){this.#u&&(Ki.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#c&&(Ki.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const r=this.#e,o=this.options,l=this.#i,u=this.#r,c=this.#o,p=e!==r?e.state:this.#n,{state:h}=e;let m={...h},y=!1,b;if(t._optimisticResults){const $=this.hasListeners(),W=!$&&c1(e,t),J=$&&f1(e,r,t,o);(W||J)&&(m={...m,...yw(h.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:x,errorUpdatedAt:E,status:w}=m;b=m.data;let R=!1;if(t.placeholderData!==void 0&&b===void 0&&w==="pending"){let $;l?.isPlaceholderData&&t.placeholderData===c?.placeholderData?($=l.data,R=!0):$=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,$!==void 0&&(w="success",b=_h(l?.data,$,t),y=!0)}if(t.select&&b!==void 0&&!R)if(l&&b===u?.data&&t.select===this.#p)b=this.#f;else try{this.#p=t.select,b=t.select(b),b=_h(l?.data,b,t),this.#f=b,this.#a=null}catch($){this.#a=$}this.#a&&(x=this.#a,b=this.#f,E=Date.now(),w="error");const C=m.fetchStatus==="fetching",A=w==="pending",k=w==="error",z=A&&C,L=b!==void 0,j={status:w,fetchStatus:m.fetchStatus,isPending:A,isSuccess:w==="success",isError:k,isInitialLoading:z,isLoading:z,data:b,dataUpdatedAt:m.dataUpdatedAt,error:x,errorUpdatedAt:E,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>p.dataUpdateCount||m.errorUpdateCount>p.errorUpdateCount,isFetching:C,isRefetching:C&&!A,isLoadingError:k&&!L,isPaused:m.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:k&&L,isStale:Im(e,t),refetch:this.refetch,promise:this.#l,isEnabled:Dn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const $=a(X=>{j.status==="error"?X.reject(j.error):j.data!==void 0&&X.resolve(j.data)},"finalizeThenableIfPossible"),W=a(()=>{const X=this.#l=j.promise=kh();$(X)},"recreateThenable"),J=this.#l;switch(J.status){case"pending":e.queryHash===r.queryHash&&$(J);break;case"fulfilled":(j.status==="error"||j.data!==J.value)&&W();break;case"rejected":(j.status!=="error"||j.error!==J.reason)&&W();break}}return j}updateResult(){const e=this.#i,t=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#o=this.options,this.#r.data!==void 0&&(this.#d=this.#e),Jl(t,e))return;this.#i=t;const r=a(()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!this.#m.size)return!0;const u=new Set(l??this.#m);return this.options.throwOnError&&u.add("error"),Object.keys(this.#i).some(c=>{const d=c;return this.#i[d]!==e[d]&&u.has(d)})},"shouldNotifyListeners");this.#E({listeners:r()})}#w(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#E(e){yt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function ZD(e,t){return Dn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}a(ZD,"shouldLoadOnMount");function c1(e,t){return ZD(e,t)||e.state.data!==void 0&&Nh(e,t,t.refetchOnMount)}a(c1,"shouldFetchOnMount");function Nh(e,t,r){if(Dn(t.enabled,e)!==!1&&Si(t.staleTime,e)!=="static"){const o=typeof r=="function"?r(e):r;return o==="always"||o!==!1&&Im(e,t)}return!1}a(Nh,"shouldFetchOn");function f1(e,t,r,o){return(e!==t||Dn(o.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Im(e,r)}a(f1,"shouldFetchOptionally");function Im(e,t){return Dn(t.enabled,e)!==!1&&e.isStaleByTime(Si(t.staleTime,e))}a(Im,"isStale");function JD(e,t){return!Jl(e.getCurrentResult(),t)}a(JD,"shouldAssignObserverCurrentProperties");function d1(e){return{onFetch:a((t,r)=>{const o=t.options,l=t.fetchOptions?.meta?.fetchMore?.direction,u=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let d={pages:[],pageParams:[]},p=0;const h=a(async()=>{let m=!1;const y=a(E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:a(()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal),"get")})},"addSignalProperty"),b=dw(t.options,t.fetchOptions),x=a(async(E,w,R)=>{if(m)return Promise.reject();if(w==null&&E.pages.length)return Promise.resolve(E);const A=a(()=>{const N={client:t.client,queryKey:t.queryKey,pageParam:w,direction:R?"backward":"forward",meta:t.options.meta};return y(N),N},"createQueryFnContext")(),k=await b(A),{maxPages:z}=t.options,L=R?GD:VD;return{pages:L(E.pages,k,z),pageParams:L(E.pageParams,w,z)}},"fetchPage");if(l&&u.length){const E=l==="backward",w=E?eN:p1,R={pages:u,pageParams:c},C=w(o,R);d=await x(R,C,E)}else{const E=e??u.length;do{const w=p===0?c[0]??o.initialPageParam:p1(o,d);if(p>0&&w==null)break;d=await x(d,w),p++}while(p<E)}return d},"fetchFn");t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=h},"onFetch")}}a(d1,"infiniteQueryBehavior");function p1(e,{pages:t,pageParams:r}){const o=t.length-1;return t.length>0?e.getNextPageParam(t[o],t,r[o],r):void 0}a(p1,"getNextPageParam");function eN(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}a(eN,"getPreviousPageParam");var tN=class extends gw{static{a(this,"Mutation")}#t;#e;#n;#i;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||vw(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=a(()=>{this.#r({type:"continue"})},"onContinue"),r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=mw({fn:a(()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),"fn"),onFail:a((u,c)=>{this.#r({type:"failed",failureCount:u,error:c})},"onFail"),onPause:a(()=>{this.#r({type:"pause"})},"onPause"),onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:a(()=>this.#n.canRun(this),"canRun")});const o=this.state.status==="pending",l=!this.#i.canStart();try{if(o)t();else{this.#r({type:"pending",variables:e,isPaused:l}),await this.#n.config.onMutate?.(e,this,r);const c=await this.options.onMutate?.(e,r);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:l})}const u=await this.#i.start();return await this.#n.config.onSuccess?.(u,e,this.state.context,this,r),await this.options.onSuccess?.(u,e,this.state.context,r),await this.#n.config.onSettled?.(u,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(u,null,e,this.state.context,r),this.#r({type:"success",data:u}),u}catch(u){try{throw await this.#n.config.onError?.(u,e,this.state.context,this,r),await this.options.onError?.(u,e,this.state.context,r),await this.#n.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,u,e,this.state.context,r),u}finally{this.#r({type:"error",error:u})}}finally{this.#n.runNext(this)}}#r(e){const t=a(r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}},"reducer");this.state=t(this.state),yt.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function vw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}a(vw,"getDefaultState");var nN=class extends ao{static{a(this,"MutationCache")}constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,r){const o=new tN({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(o),o}add(e){this.#t.add(e);const t=qu(e);if(typeof t=="string"){const r=this.#e.get(t);r?r.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=qu(e);if(typeof t=="string"){const r=this.#e.get(t);if(r)if(r.length>1){const o=r.indexOf(e);o!==-1&&r.splice(o,1)}else r[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=qu(e);if(typeof t=="string"){const o=this.#e.get(t)?.find(l=>l.state.status==="pending");return!o||o===e}else return!0}runNext(e){const t=qu(e);return typeof t=="string"?this.#e.get(t)?.find(o=>o!==e&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){yt.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>a1(t,r))}findAll(e={}){return this.getAll().filter(t=>a1(e,t))}notify(e){yt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return yt.batch(()=>Promise.all(e.map(t=>t.continue().catch(Ht))))}};function qu(e){return e.options.scope?.id}a(qu,"scopeFor");var rN=class extends ao{static{a(this,"MutationObserver")}#t;#e=void 0;#n;#i;constructor(t,r){super(),this.#t=t,this.setOptions(r),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.#t.defaultMutationOptions(t),Jl(this.options,r)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&to(r.mutationKey)!==to(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#o()}mutate(t,r){return this.#i=r,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??vw();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){yt.batch(()=>{if(this.#i&&this.hasListeners()){const r=this.#e.variables,o=this.#e.context,l={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,r,o,l),this.#i.onSettled?.(t.data,null,r,o,l)):t?.type==="error"&&(this.#i.onError?.(t.error,r,o,l),this.#i.onSettled?.(void 0,t.error,r,o,l))}this.listeners.forEach(r=>{r(this.#e)})})}};function h1(e,t){const r=new Set(t);return e.filter(o=>!r.has(o))}a(h1,"difference");function iN(e,t,r){const o=e.slice(0);return o[t]=r,o}a(iN,"replaceAt");var oN=class extends ao{static{a(this,"QueriesObserver")}#t;#e;#n;#i;#r;#o;#l;#a;#p=[];constructor(e,t,r){super(),this.#t=e,this.#i=r,this.#n=[],this.#r=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#i=t,yt.batch(()=>{const r=this.#r,o=this.#u(this.#n);this.#p=o,o.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const l=o.map(m=>m.observer),u=l.map(m=>m.getCurrentResult()),c=r.length!==l.length,d=l.some((m,y)=>m!==r[y]),p=c||d,h=p?!0:u.some((m,y)=>{const b=this.#e[y];return!b||!Jl(m,b)});!p&&!h||(p&&(this.#r=l),this.#e=u,this.hasListeners()&&(p&&(h1(r,l).forEach(m=>{m.destroy()}),h1(l,r).forEach(m=>{m.subscribe(y=>{this.#c(m,y)})})),this.#s()))})}getCurrentResult(){return this.#e}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){const r=this.#u(e),o=r.map(l=>l.observer.getOptimisticResult(l.defaultedQueryOptions));return[o,l=>this.#d(l??o,t),()=>this.#f(o,r)]}#f(e,t){return t.map((r,o)=>{const l=e[o];return r.defaultedQueryOptions.notifyOnChangeProps?l:r.observer.trackResult(l,u=>{t.forEach(c=>{c.observer.trackProp(u)})})})}#d(e,t){return t?((!this.#o||this.#e!==this.#a||t!==this.#l)&&(this.#l=t,this.#a=this.#e,this.#o=Nm(this.#o,t(e))),this.#o):e}#u(e){const t=new Map(this.#r.map(o=>[o.options.queryHash,o])),r=[];return e.forEach(o=>{const l=this.#t.defaultQueryOptions(o),u=t.get(l.queryHash);u?r.push({defaultedQueryOptions:l,observer:u}):r.push({defaultedQueryOptions:l,observer:new zm(this.#t,l)})}),r}#c(e,t){const r=this.#r.indexOf(e);r!==-1&&(this.#e=iN(this.#e,r,t),this.#s())}#s(){if(this.hasListeners()){const e=this.#o,t=this.#f(this.#e,this.#p),r=this.#d(t,this.#i?.combine);e!==r&&yt.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}},aN=class extends ao{static{a(this,"QueryCache")}constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,r){const o=t.queryKey,l=t.queryHash??Dm(o,t);let u=this.get(l);return u||(u=new WD({client:e,queryKey:o,queryHash:l,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(u)),u}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){yt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>o1(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>o1(e,r)):t}notify(e){yt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){yt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){yt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},wU=class{static{a(this,"QueryClient")}#t;#e;#n;#i;#r;#o;#l;#a;constructor(e={}){this.#t=e.queryCache||new aN,this.#e=e.mutationCache||new nN,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#l=Lm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#a=fc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#l?.(),this.#l=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#t.build(this,t),o=r.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Si(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(o))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:r})=>{const o=r.data;return[t,o]})}setQueryData(e,t,r){const o=this.defaultQueryOptions({queryKey:e}),u=this.#t.get(o.queryHash)?.state.data,c=HD(t,u);if(c!==void 0)return this.#t.build(this,o).setData(c,{...r,manual:!0})}setQueriesData(e,t,r){return yt.batch(()=>this.#t.findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;yt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#t;return yt.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},o=yt.batch(()=>this.#t.findAll(e).map(l=>l.cancel(r)));return Promise.all(o).then(Ht).catch(Ht)}invalidateQueries(e,t={}){return yt.batch(()=>(this.#t.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},o=yt.batch(()=>this.#t.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let u=l.fetch(void 0,r);return r.throwOnError||(u=u.catch(Ht)),l.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(o).then(Ht)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#t.build(this,t);return r.isStaleByTime(Si(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ht).catch(Ht)}fetchInfiniteQuery(e){return e.behavior=d1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ht).catch(Ht)}ensureInfiniteQueryData(e){return e.behavior=d1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fc.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(to(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],r={};return t.forEach(o=>{Zl(e,o.queryKey)&&Object.assign(r,o.defaultOptions)}),r}setMutationDefaults(e,t){this.#r.set(to(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],r={};return t.forEach(o=>{Zl(e,o.mutationKey)&&Object.assign(r,o.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Dm(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Pm&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},bw=S.createContext(void 0),jm=a(e=>{const t=S.useContext(bw);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},"useQueryClient"),EU=a(({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),D.jsx(bw.Provider,{value:e,children:t})),"QueryClientProvider"),Sw=S.createContext(!1),xw=a(()=>S.useContext(Sw),"useIsRestoring");Sw.Provider;function lN(){let e=!1;return{clearReset:a(()=>{e=!1},"clearReset"),reset:a(()=>{e=!0},"reset"),isReset:a(()=>e,"isReset")}}a(lN,"createValue");var sN=S.createContext(lN()),ww=a(()=>S.useContext(sN),"useQueryErrorResetBoundary"),Ew=a((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},"ensurePreventErrorBoundaryRetry"),Cw=a(e=>{S.useEffect(()=>{e.clearReset()},[e])},"useClearResetErrorBoundary"),Tw=a(({result:e,errorResetBoundary:t,throwOnError:r,query:o,suspense:l})=>e.isError&&!t.isReset()&&!e.isFetching&&o&&(l&&e.data===void 0||pw(r,[e.error,o])),"getHasError"),Rw=a(e=>{if(e.suspense){const r=a(l=>l==="static"?l:Math.max(l??1e3,1e3),"clamp"),o=e.staleTime;e.staleTime=typeof o=="function"?(...l)=>r(o(...l)):r(o),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},"ensureSuspenseTimers"),Ow=a((e,t)=>e.isLoading&&e.isFetching&&!t,"willFetch"),Ph=a((e,t)=>e?.suspense&&t.isPending,"shouldSuspend"),dc=a((e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}),"fetchOptimistic");function CU({queries:e,...t},r){const o=jm(),l=xw(),u=ww(),c=S.useMemo(()=>e.map(w=>{const R=o.defaultQueryOptions(w);return R._optimisticResults=l?"isRestoring":"optimistic",R}),[e,o,l]);c.forEach(w=>{Rw(w),Ew(w,u)}),Cw(u);const[d]=S.useState(()=>new oN(o,c,t)),[p,h,m]=d.getOptimisticResult(c,t.combine),y=!l&&t.subscribed!==!1;S.useSyncExternalStore(S.useCallback(w=>y?d.subscribe(yt.batchCalls(w)):Ht,[d,y]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),S.useEffect(()=>{d.setQueries(c,t)},[c,t,d]);const x=p.some((w,R)=>Ph(c[R],w))?p.flatMap((w,R)=>{const C=c[R];if(C){const A=new zm(o,C);if(Ph(C,w))return dc(C,A,u);Ow(w,l)&&dc(C,A,u)}return[]}):[];if(x.length>0)throw Promise.all(x);const E=p.find((w,R)=>{const C=c[R];return C&&Tw({result:w,errorResetBoundary:u,throwOnError:C.throwOnError,query:o.getQueryCache().get(C.queryHash),suspense:C.suspense})});if(E?.error)throw E.error;return h(m())}a(CU,"useQueries");function uN(e,t,r){const o=xw(),l=ww(),u=jm(),c=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=o?"isRestoring":"optimistic",Rw(c),Ew(c,l),Cw(l);const d=!u.getQueryCache().get(c.queryHash),[p]=S.useState(()=>new t(u,c)),h=p.getOptimisticResult(c),m=!o&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(y=>{const b=m?p.subscribe(yt.batchCalls(y)):Ht;return p.updateResult(),b},[p,m]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),S.useEffect(()=>{p.setOptions(c)},[c,p]),Ph(c,h))throw dc(c,p,l);if(Tw({result:h,errorResetBoundary:l,throwOnError:c.throwOnError,query:u.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw h.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(c,h),c.experimental_prefetchInRender&&!eo&&Ow(h,o)&&(d?dc(c,p,l):u.getQueryCache().get(c.queryHash)?.promise)?.catch(Ht).finally(()=>{p.updateResult()}),c.notifyOnChangeProps?h:p.trackResult(h)}a(uN,"useBaseQuery");function TU(e,t){return uN(e,zm)}a(TU,"useQuery");function RU(e,t){const r=jm(),[o]=S.useState(()=>new rN(r,e));S.useEffect(()=>{o.setOptions(e)},[o,e]);const l=S.useSyncExternalStore(S.useCallback(c=>o.subscribe(yt.batchCalls(c)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),u=S.useCallback((c,d)=>{o.mutate(c,d).catch(Ht)},[o]);if(l.error&&pw(o.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:u,mutateAsync:l.mutate}}a(RU,"useMutation");/**
459
- * react-router v7.9.2
458
+ */const mU=ve("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),nk=["top","right","bottom","left"],xi=Math.min,vn=Math.max,lc=Math.round,Fu=Math.floor,hr=a(e=>({x:e,y:e}),"createCoords"),rk={left:"right",right:"left",bottom:"top",top:"bottom"},ik={start:"end",end:"start"};function Ep(e,t,r){return vn(e,xi(t,r))}a(Ep,"clamp");function Hr(e,t){return typeof e=="function"?e(t):e}a(Hr,"evaluate");function Fr(e){return e.split("-")[0]}a(Fr,"getSide");function Ea(e){return e.split("-")[1]}a(Ea,"getAlignment");function vm(e){return e==="x"?"y":"x"}a(vm,"getOppositeAxis");function bm(e){return e==="y"?"height":"width"}a(bm,"getAxisLength");const ok=new Set(["top","bottom"]);function ur(e){return ok.has(Fr(e))?"y":"x"}a(ur,"getSideAxis");function Sm(e){return vm(ur(e))}a(Sm,"getAlignmentAxis");function ak(e,t,r){r===void 0&&(r=!1);const o=Ea(e),l=Sm(e),u=bm(l);let c=l==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(c=sc(c)),[c,sc(c)]}a(ak,"getAlignmentSides");function lk(e){const t=sc(e);return[Cp(e),t,Cp(t)]}a(lk,"getExpandedPlacements");function Cp(e){return e.replace(/start|end/g,t=>ik[t])}a(Cp,"getOppositeAlignmentPlacement");const K0=["left","right"],Q0=["right","left"],sk=["top","bottom"],uk=["bottom","top"];function ck(e,t,r){switch(e){case"top":case"bottom":return r?t?Q0:K0:t?K0:Q0;case"left":case"right":return t?sk:uk;default:return[]}}a(ck,"getSideList");function fk(e,t,r,o){const l=Ea(e);let u=ck(Fr(e),r==="start",o);return l&&(u=u.map(c=>c+"-"+l),t&&(u=u.concat(u.map(Cp)))),u}a(fk,"getOppositeAxisPlacements");function sc(e){return e.replace(/left|right|bottom|top/g,t=>rk[t])}a(sc,"getOppositePlacement$1");function dk(e){return{top:0,right:0,bottom:0,left:0,...e}}a(dk,"expandPaddingObject");function Px(e){return typeof e!="number"?dk(e):{top:e,right:e,bottom:e,left:e}}a(Px,"getPaddingObject");function uc(e){const{x:t,y:r,width:o,height:l}=e;return{width:o,height:l,top:r,left:t,right:t+o,bottom:r+l,x:t,y:r}}a(uc,"rectToClientRect");function X0(e,t,r){let{reference:o,floating:l}=e;const u=ur(t),c=Sm(t),d=bm(c),h=Fr(t),p=u==="y",m=o.x+o.width/2-l.width/2,y=o.y+o.height/2-l.height/2,b=o[d]/2-l[d]/2;let x;switch(h){case"top":x={x:m,y:o.y-l.height};break;case"bottom":x={x:m,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y};break;case"left":x={x:o.x-l.width,y};break;default:x={x:o.x,y:o.y}}switch(Ea(t)){case"start":x[c]-=b*(r&&p?-1:1);break;case"end":x[c]+=b*(r&&p?-1:1);break}return x}a(X0,"computeCoordsFromPlacement");const hk=a(async(e,t,r)=>{const{placement:o="bottom",strategy:l="absolute",middleware:u=[],platform:c}=r,d=u.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(t));let p=await c.getElementRects({reference:e,floating:t,strategy:l}),{x:m,y}=X0(p,o,h),b=o,x={},E=0;for(let w=0;w<d.length;w++){const{name:R,fn:C}=d[w],{x:A,y:k,data:z,reset:L}=await C({x:m,y,initialPlacement:o,placement:b,strategy:l,middlewareData:x,rects:p,platform:c,elements:{reference:e,floating:t}});m=A??m,y=k??y,x={...x,[R]:{...x[R],...z}},L&&E<=50&&(E++,typeof L=="object"&&(L.placement&&(b=L.placement),L.rects&&(p=L.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:l}):L.rects),{x:m,y}=X0(p,b,h)),w=-1)}return{x:m,y,placement:b,strategy:l,middlewareData:x}},"computePosition$1");async function Ql(e,t){var r;t===void 0&&(t={});const{x:o,y:l,platform:u,rects:c,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:b=!1,padding:x=0}=Hr(t,e),E=Px(x),R=d[b?y==="floating"?"reference":"floating":y],C=uc(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(R)))==null||r?R:R.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(d.floating)),boundary:p,rootBoundary:m,strategy:h})),A=y==="floating"?{x:o,y:l,width:c.floating.width,height:c.floating.height}:c.reference,k=await(u.getOffsetParent==null?void 0:u.getOffsetParent(d.floating)),z=await(u.isElement==null?void 0:u.isElement(k))?await(u.getScale==null?void 0:u.getScale(k))||{x:1,y:1}:{x:1,y:1},L=uc(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:A,offsetParent:k,strategy:h}):A);return{top:(C.top-L.top+E.top)/z.y,bottom:(L.bottom-C.bottom+E.bottom)/z.y,left:(C.left-L.left+E.left)/z.x,right:(L.right-C.right+E.right)/z.x}}a(Ql,"detectOverflow");const pk=a(e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:l,rects:u,platform:c,elements:d,middlewareData:h}=t,{element:p,padding:m=0}=Hr(e,t)||{};if(p==null)return{};const y=Px(m),b={x:r,y:o},x=Sm(l),E=bm(x),w=await c.getDimensions(p),R=x==="y",C=R?"top":"left",A=R?"bottom":"right",k=R?"clientHeight":"clientWidth",z=u.reference[E]+u.reference[x]-b[x]-u.floating[E],L=b[x]-u.reference[x],N=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p));let j=N?N[k]:0;(!j||!await(c.isElement==null?void 0:c.isElement(N)))&&(j=d.floating[k]||u.floating[E]);const $=z/2-L/2,W=j/2-w[E]/2-1,J=xi(y[C],W),X=xi(y[A],W),Z=J,ce=j-w[E]-X,q=j/2-w[E]/2+$,ae=Ep(Z,q,ce),I=!h.arrow&&Ea(l)!=null&&q!==ae&&u.reference[E]/2-(q<Z?J:X)-w[E]/2<0,Q=I?q<Z?q-Z:q-ce:0;return{[x]:b[x]+Q,data:{[x]:ae,centerOffset:q-ae-Q,...I&&{alignmentOffset:Q}},reset:I}}}),"arrow$4"),mk=a(function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:l,middlewareData:u,rects:c,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:w=!0,...R}=Hr(e,t);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const C=Fr(l),A=ur(d),k=Fr(d)===d,z=await(h.isRTL==null?void 0:h.isRTL(p.floating)),L=b||(k||!w?[sc(d)]:lk(d)),N=E!=="none";!b&&N&&L.push(...fk(d,w,E,z));const j=[d,...L],$=await Ql(t,R),W=[];let J=((o=u.flip)==null?void 0:o.overflows)||[];if(m&&W.push($[C]),y){const q=ak(l,c,z);W.push($[q[0]],$[q[1]])}if(J=[...J,{placement:l,overflows:W}],!W.every(q=>q<=0)){var X,Z;const q=(((X=u.flip)==null?void 0:X.index)||0)+1,ae=j[q];if(ae&&(!(y==="alignment"?A!==ur(ae):!1)||J.every(te=>ur(te.placement)===A?te.overflows[0]>0:!0)))return{data:{index:q,overflows:J},reset:{placement:ae}};let I=(Z=J.filter(Q=>Q.overflows[0]<=0).sort((Q,te)=>Q.overflows[1]-te.overflows[1])[0])==null?void 0:Z.placement;if(!I)switch(x){case"bestFit":{var ce;const Q=(ce=J.filter(te=>{if(N){const se=ur(te.placement);return se===A||se==="y"}return!0}).map(te=>[te.placement,te.overflows.filter(se=>se>0).reduce((se,O)=>se+O,0)]).sort((te,se)=>te[1]-se[1])[0])==null?void 0:ce[0];Q&&(I=Q);break}case"initialPlacement":I=d;break}if(l!==I)return{reset:{placement:I}}}return{}}}},"flip$3");function W0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}a(W0,"getSideOffsets");function Z0(e){return nk.some(t=>e[t]>=0)}a(Z0,"isAnySideFullyClipped");const gk=a(function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:o="referenceHidden",...l}=Hr(e,t);switch(o){case"referenceHidden":{const u=await Ql(t,{...l,elementContext:"reference"}),c=W0(u,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Z0(c)}}}case"escaped":{const u=await Ql(t,{...l,altBoundary:!0}),c=W0(u,r.floating);return{data:{escapedOffsets:c,escaped:Z0(c)}}}default:return{}}}}},"hide$3"),Lx=new Set(["left","top"]);async function yk(e,t){const{placement:r,platform:o,elements:l}=e,u=await(o.isRTL==null?void 0:o.isRTL(l.floating)),c=Fr(r),d=Ea(r),h=ur(r)==="y",p=Lx.has(c)?-1:1,m=u&&h?-1:1,y=Hr(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof E=="number"&&(x=d==="end"?E*-1:E),h?{x:x*m,y:b*p}:{x:b*p,y:x*m}}a(yk,"convertValueToCoords");const vk=a(function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:l,y:u,placement:c,middlewareData:d}=t,h=await yk(t,e);return c===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:l+h.x,y:u+h.y,data:{...h,placement:c}}}}},"offset$3"),bk=a(function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:l}=t,{mainAxis:u=!0,crossAxis:c=!1,limiter:d={fn:a(R=>{let{x:C,y:A}=R;return{x:C,y:A}},"fn")},...h}=Hr(e,t),p={x:r,y:o},m=await Ql(t,h),y=ur(Fr(l)),b=vm(y);let x=p[b],E=p[y];if(u){const R=b==="y"?"top":"left",C=b==="y"?"bottom":"right",A=x+m[R],k=x-m[C];x=Ep(A,x,k)}if(c){const R=y==="y"?"top":"left",C=y==="y"?"bottom":"right",A=E+m[R],k=E-m[C];E=Ep(A,E,k)}const w=d.fn({...t,[b]:x,[y]:E});return{...w,data:{x:w.x-r,y:w.y-o,enabled:{[b]:u,[y]:c}}}}}},"shift$3"),Sk=a(function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:l,rects:u,middlewareData:c}=t,{offset:d=0,mainAxis:h=!0,crossAxis:p=!0}=Hr(e,t),m={x:r,y:o},y=ur(l),b=vm(y);let x=m[b],E=m[y];const w=Hr(d,t),R=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(h){const k=b==="y"?"height":"width",z=u.reference[b]-u.floating[k]+R.mainAxis,L=u.reference[b]+u.reference[k]-R.mainAxis;x<z?x=z:x>L&&(x=L)}if(p){var C,A;const k=b==="y"?"width":"height",z=Lx.has(Fr(l)),L=u.reference[y]-u.floating[k]+(z&&((C=c.offset)==null?void 0:C[y])||0)+(z?0:R.crossAxis),N=u.reference[y]+u.reference[k]+(z?0:((A=c.offset)==null?void 0:A[y])||0)-(z?R.crossAxis:0);E<L?E=L:E>N&&(E=N)}return{[b]:x,[y]:E}}}},"limitShift$2"),xk=a(function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:l,rects:u,platform:c,elements:d}=t,{apply:h=a(()=>{},"apply"),...p}=Hr(e,t),m=await Ql(t,p),y=Fr(l),b=Ea(l),x=ur(l)==="y",{width:E,height:w}=u.floating;let R,C;y==="top"||y==="bottom"?(R=y,C=b===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(C=y,R=b==="end"?"top":"bottom");const A=w-m.top-m.bottom,k=E-m.left-m.right,z=xi(w-m[R],A),L=xi(E-m[C],k),N=!t.middlewareData.shift;let j=z,$=L;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&($=k),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(j=A),N&&!b){const J=vn(m.left,0),X=vn(m.right,0),Z=vn(m.top,0),ce=vn(m.bottom,0);x?$=E-2*(J!==0||X!==0?J+X:vn(m.left,m.right)):j=w-2*(Z!==0||ce!==0?Z+ce:vn(m.top,m.bottom))}await h({...t,availableWidth:$,availableHeight:j});const W=await c.getDimensions(d.floating);return E!==W.width||w!==W.height?{reset:{rects:!0}}:{}}}},"size$2");function Nc(){return typeof window<"u"}a(Nc,"hasWindow");function Ca(e){return zx(e)?(e.nodeName||"").toLowerCase():"#document"}a(Ca,"getNodeName");function Sn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}a(Sn,"getWindow$1");function yr(e){var t;return(t=(zx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}a(yr,"getDocumentElement");function zx(e){return Nc()?e instanceof Node||e instanceof Sn(e).Node:!1}a(zx,"isNode");function $n(e){return Nc()?e instanceof Element||e instanceof Sn(e).Element:!1}a($n,"isElement");function mr(e){return Nc()?e instanceof HTMLElement||e instanceof Sn(e).HTMLElement:!1}a(mr,"isHTMLElement$1");function J0(e){return!Nc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Sn(e).ShadowRoot}a(J0,"isShadowRoot");const wk=new Set(["inline","contents"]);function ss(e){const{overflow:t,overflowX:r,overflowY:o,display:l}=Yn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!wk.has(l)}a(ss,"isOverflowElement");const Ek=new Set(["table","td","th"]);function Ck(e){return Ek.has(Ca(e))}a(Ck,"isTableElement");const Tk=[":popover-open",":modal"];function Pc(e){return Tk.some(t=>{try{return e.matches(t)}catch{return!1}})}a(Pc,"isTopLayer");const Rk=["transform","translate","scale","rotate","perspective"],Ok=["transform","translate","scale","rotate","perspective","filter"],Ak=["paint","layout","strict","content"];function xm(e){const t=wm(),r=$n(e)?Yn(e):e;return Rk.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Ok.some(o=>(r.willChange||"").includes(o))||Ak.some(o=>(r.contain||"").includes(o))}a(xm,"isContainingBlock");function Mk(e){let t=wi(e);for(;mr(t)&&!pa(t);){if(xm(t))return t;if(Pc(t))return null;t=wi(t)}return null}a(Mk,"getContainingBlock");function wm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}a(wm,"isWebKit");const _k=new Set(["html","body","#document"]);function pa(e){return _k.has(Ca(e))}a(pa,"isLastTraversableNode");function Yn(e){return Sn(e).getComputedStyle(e)}a(Yn,"getComputedStyle$1");function Lc(e){return $n(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}a(Lc,"getNodeScroll");function wi(e){if(Ca(e)==="html")return e;const t=e.assignedSlot||e.parentNode||J0(e)&&e.host||yr(e);return J0(t)?t.host:t}a(wi,"getParentNode$1");function Ix(e){const t=wi(e);return pa(t)?e.ownerDocument?e.ownerDocument.body:e.body:mr(t)&&ss(t)?t:Ix(t)}a(Ix,"getNearestOverflowAncestor");function Xl(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const l=Ix(e),u=l===((o=e.ownerDocument)==null?void 0:o.body),c=Sn(l);if(u){const d=Tp(c);return t.concat(c,c.visualViewport||[],ss(l)?l:[],d&&r?Xl(d):[])}return t.concat(l,Xl(l,[],r))}a(Xl,"getOverflowAncestors");function Tp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}a(Tp,"getFrameElement");function jx(e){const t=Yn(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const l=mr(e),u=l?e.offsetWidth:r,c=l?e.offsetHeight:o,d=lc(r)!==u||lc(o)!==c;return d&&(r=u,o=c),{width:r,height:o,$:d}}a(jx,"getCssDimensions");function Em(e){return $n(e)?e:e.contextElement}a(Em,"unwrapElement");function ua(e){const t=Em(e);if(!mr(t))return hr(1);const r=t.getBoundingClientRect(),{width:o,height:l,$:u}=jx(t);let c=(u?lc(r.width):r.width)/o,d=(u?lc(r.height):r.height)/l;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}a(ua,"getScale");const kk=hr(0);function Ux(e){const t=Sn(e);return!wm()||!t.visualViewport?kk:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}a(Ux,"getVisualOffsets");function Dk(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Sn(e)?!1:t}a(Dk,"shouldAddVisualOffsets");function Ji(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),u=Em(e);let c=hr(1);t&&(o?$n(o)&&(c=ua(o)):c=ua(e));const d=Dk(u,r,o)?Ux(u):hr(0);let h=(l.left+d.x)/c.x,p=(l.top+d.y)/c.y,m=l.width/c.x,y=l.height/c.y;if(u){const b=Sn(u),x=o&&$n(o)?Sn(o):o;let E=b,w=Tp(E);for(;w&&o&&x!==E;){const R=ua(w),C=w.getBoundingClientRect(),A=Yn(w),k=C.left+(w.clientLeft+parseFloat(A.paddingLeft))*R.x,z=C.top+(w.clientTop+parseFloat(A.paddingTop))*R.y;h*=R.x,p*=R.y,m*=R.x,y*=R.y,h+=k,p+=z,E=Sn(w),w=Tp(E)}}return uc({width:m,height:y,x:h,y:p})}a(Ji,"getBoundingClientRect$1");function zc(e,t){const r=Lc(e).scrollLeft;return t?t.left+r:Ji(yr(e)).left+r}a(zc,"getWindowScrollBarX");function Bx(e,t){const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-zc(e,r),l=r.top+t.scrollTop;return{x:o,y:l}}a(Bx,"getHTMLOffset");function Nk(e){let{elements:t,rect:r,offsetParent:o,strategy:l}=e;const u=l==="fixed",c=yr(o),d=t?Pc(t.floating):!1;if(o===c||d&&u)return r;let h={scrollLeft:0,scrollTop:0},p=hr(1);const m=hr(0),y=mr(o);if((y||!y&&!u)&&((Ca(o)!=="body"||ss(c))&&(h=Lc(o)),mr(o))){const x=Ji(o);p=ua(o),m.x=x.x+o.clientLeft,m.y=x.y+o.clientTop}const b=c&&!y&&!u?Bx(c,h):hr(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-h.scrollLeft*p.x+m.x+b.x,y:r.y*p.y-h.scrollTop*p.y+m.y+b.y}}a(Nk,"convertOffsetParentRelativeRectToViewportRelativeRect");function Pk(e){return Array.from(e.getClientRects())}a(Pk,"getClientRects");function Lk(e){const t=yr(e),r=Lc(e),o=e.ownerDocument.body,l=vn(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),u=vn(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let c=-r.scrollLeft+zc(e);const d=-r.scrollTop;return Yn(o).direction==="rtl"&&(c+=vn(t.clientWidth,o.clientWidth)-l),{width:l,height:u,x:c,y:d}}a(Lk,"getDocumentRect");const e1=25;function zk(e,t){const r=Sn(e),o=yr(e),l=r.visualViewport;let u=o.clientWidth,c=o.clientHeight,d=0,h=0;if(l){u=l.width,c=l.height;const m=wm();(!m||m&&t==="fixed")&&(d=l.offsetLeft,h=l.offsetTop)}const p=zc(o);if(p<=0){const m=o.ownerDocument,y=m.body,b=getComputedStyle(y),x=m.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(o.clientWidth-y.clientWidth-x);E<=e1&&(u-=E)}else p<=e1&&(u+=p);return{width:u,height:c,x:d,y:h}}a(zk,"getViewportRect");const Ik=new Set(["absolute","fixed"]);function jk(e,t){const r=Ji(e,!0,t==="fixed"),o=r.top+e.clientTop,l=r.left+e.clientLeft,u=mr(e)?ua(e):hr(1),c=e.clientWidth*u.x,d=e.clientHeight*u.y,h=l*u.x,p=o*u.y;return{width:c,height:d,x:h,y:p}}a(jk,"getInnerBoundingClientRect");function t1(e,t,r){let o;if(t==="viewport")o=zk(e,r);else if(t==="document")o=Lk(yr(e));else if($n(t))o=jk(t,r);else{const l=Ux(e);o={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return uc(o)}a(t1,"getClientRectFromClippingAncestor");function Hx(e,t){const r=wi(e);return r===t||!$n(r)||pa(r)?!1:Yn(r).position==="fixed"||Hx(r,t)}a(Hx,"hasFixedPositionAncestor");function Uk(e,t){const r=t.get(e);if(r)return r;let o=Xl(e,[],!1).filter(d=>$n(d)&&Ca(d)!=="body"),l=null;const u=Yn(e).position==="fixed";let c=u?wi(e):e;for(;$n(c)&&!pa(c);){const d=Yn(c),h=xm(c);!h&&d.position==="fixed"&&(l=null),(u?!h&&!l:!h&&d.position==="static"&&!!l&&Ik.has(l.position)||ss(c)&&!h&&Hx(e,c))?o=o.filter(m=>m!==c):l=d,c=wi(c)}return t.set(e,o),o}a(Uk,"getClippingElementAncestors");function Bk(e){let{element:t,boundary:r,rootBoundary:o,strategy:l}=e;const c=[...r==="clippingAncestors"?Pc(t)?[]:Uk(t,this._c):[].concat(r),o],d=c[0],h=c.reduce((p,m)=>{const y=t1(t,m,l);return p.top=vn(y.top,p.top),p.right=xi(y.right,p.right),p.bottom=xi(y.bottom,p.bottom),p.left=vn(y.left,p.left),p},t1(t,d,l));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}a(Bk,"getClippingRect");function Hk(e){const{width:t,height:r}=jx(e);return{width:t,height:r}}a(Hk,"getDimensions");function Fk(e,t,r){const o=mr(t),l=yr(t),u=r==="fixed",c=Ji(e,!0,u,t);let d={scrollLeft:0,scrollTop:0};const h=hr(0);function p(){h.x=zc(l)}if(a(p,"setLeftRTLScrollbarOffset"),o||!o&&!u)if((Ca(t)!=="body"||ss(l))&&(d=Lc(t)),o){const x=Ji(t,!0,u,t);h.x=x.x+t.clientLeft,h.y=x.y+t.clientTop}else l&&p();u&&!o&&l&&p();const m=l&&!o&&!u?Bx(l,d):hr(0),y=c.left+d.scrollLeft-h.x-m.x,b=c.top+d.scrollTop-h.y-m.y;return{x:y,y:b,width:c.width,height:c.height}}a(Fk,"getRectRelativeToOffsetParent");function Uh(e){return Yn(e).position==="static"}a(Uh,"isStaticPositioned");function n1(e,t){if(!mr(e)||Yn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return yr(e)===r&&(r=r.ownerDocument.body),r}a(n1,"getTrueOffsetParent");function Fx(e,t){const r=Sn(e);if(Pc(e))return r;if(!mr(e)){let l=wi(e);for(;l&&!pa(l);){if($n(l)&&!Uh(l))return l;l=wi(l)}return r}let o=n1(e,t);for(;o&&Ck(o)&&Uh(o);)o=n1(o,t);return o&&pa(o)&&Uh(o)&&!xm(o)?r:o||Mk(e)||r}a(Fx,"getOffsetParent$1");const qk=a(async function(e){const t=this.getOffsetParent||Fx,r=this.getDimensions,o=await r(e.floating);return{reference:Fk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},"getElementRects");function Vk(e){return Yn(e).direction==="rtl"}a(Vk,"isRTL");const Gk={convertOffsetParentRelativeRectToViewportRelativeRect:Nk,getDocumentElement:yr,getClippingRect:Bk,getOffsetParent:Fx,getElementRects:qk,getClientRects:Pk,getDimensions:Hk,getScale:ua,isElement:$n,isRTL:Vk};function qx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}a(qx,"rectsAreEqual");function $k(e,t){let r=null,o;const l=yr(e);function u(){var d;clearTimeout(o),(d=r)==null||d.disconnect(),r=null}a(u,"cleanup");function c(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),u();const p=e.getBoundingClientRect(),{left:m,top:y,width:b,height:x}=p;if(d||t(),!b||!x)return;const E=Fu(y),w=Fu(l.clientWidth-(m+b)),R=Fu(l.clientHeight-(y+x)),C=Fu(m),k={rootMargin:-E+"px "+-w+"px "+-R+"px "+-C+"px",threshold:vn(0,xi(1,h))||1};let z=!0;function L(N){const j=N[0].intersectionRatio;if(j!==h){if(!z)return c();j?c(!1,j):o=setTimeout(()=>{c(!1,1e-7)},1e3)}j===1&&!qx(p,e.getBoundingClientRect())&&c(),z=!1}a(L,"handleObserve");try{r=new IntersectionObserver(L,{...k,root:l.ownerDocument})}catch{r=new IntersectionObserver(L,k)}r.observe(e)}return a(c,"refresh"),c(!0),u}a($k,"observeMove");function Yk(e,t,r,o){o===void 0&&(o={});const{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=o,p=Em(e),m=l||u?[...p?Xl(p):[],...Xl(t)]:[];m.forEach(C=>{l&&C.addEventListener("scroll",r,{passive:!0}),u&&C.addEventListener("resize",r)});const y=p&&d?$k(p,r):null;let b=-1,x=null;c&&(x=new ResizeObserver(C=>{let[A]=C;A&&A.target===p&&x&&(x.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var k;(k=x)==null||k.observe(t)})),r()}),p&&!h&&x.observe(p),x.observe(t));let E,w=h?Ji(e):null;h&&R();function R(){const C=Ji(e);w&&!qx(w,C)&&r(),w=C,E=requestAnimationFrame(R)}return a(R,"frameLoop"),r(),()=>{var C;m.forEach(A=>{l&&A.removeEventListener("scroll",r),u&&A.removeEventListener("resize",r)}),y?.(),(C=x)==null||C.disconnect(),x=null,h&&cancelAnimationFrame(E)}}a(Yk,"autoUpdate");const Kk=vk,Qk=bk,Xk=mk,Wk=xk,Zk=gk,r1=pk,Jk=Sk,eD=a((e,t,r)=>{const o=new Map,l={platform:Gk,...r},u={...l.platform,_c:o};return hk(e,t,{...l,platform:u})},"computePosition");var tD=typeof document<"u",nD=a(function(){},"noop"),Ju=tD?S.useLayoutEffect:nD;function cc(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 r,o,l;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!cc(e[o],t[o]))return!1;return!0}if(l=Object.keys(e),r=l.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(t,l[o]))return!1;for(o=r;o--!==0;){const u=l[o];if(!(u==="_owner"&&e.$$typeof)&&!cc(e[u],t[u]))return!1}return!0}return e!==e&&t!==t}a(cc,"deepEqual");function Vx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}a(Vx,"getDPR");function i1(e,t){const r=Vx(e);return Math.round(t*r)/r}a(i1,"roundByDPR");function Bh(e){const t=S.useRef(e);return Ju(()=>{t.current=e}),t}a(Bh,"useLatestRef");function rD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:l,elements:{reference:u,floating:c}={},transform:d=!0,whileElementsMounted:h,open:p}=e,[m,y]=S.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[b,x]=S.useState(o);cc(b,o)||x(o);const[E,w]=S.useState(null),[R,C]=S.useState(null),A=S.useCallback(te=>{te!==N.current&&(N.current=te,w(te))},[]),k=S.useCallback(te=>{te!==j.current&&(j.current=te,C(te))},[]),z=u||E,L=c||R,N=S.useRef(null),j=S.useRef(null),$=S.useRef(m),W=h!=null,J=Bh(h),X=Bh(l),Z=Bh(p),ce=S.useCallback(()=>{if(!N.current||!j.current)return;const te={placement:t,strategy:r,middleware:b};X.current&&(te.platform=X.current),eD(N.current,j.current,te).then(se=>{const O={...se,isPositioned:Z.current!==!1};q.current&&!cc($.current,O)&&($.current=O,dr.flushSync(()=>{y(O)}))})},[b,t,r,X,Z]);Ju(()=>{p===!1&&$.current.isPositioned&&($.current.isPositioned=!1,y(te=>({...te,isPositioned:!1})))},[p]);const q=S.useRef(!1);Ju(()=>(q.current=!0,()=>{q.current=!1}),[]),Ju(()=>{if(z&&(N.current=z),L&&(j.current=L),z&&L){if(J.current)return J.current(z,L,ce);ce()}},[z,L,ce,J,W]);const ae=S.useMemo(()=>({reference:N,floating:j,setReference:A,setFloating:k}),[A,k]),I=S.useMemo(()=>({reference:z,floating:L}),[z,L]),Q=S.useMemo(()=>{const te={position:r,left:0,top:0};if(!I.floating)return te;const se=i1(I.floating,m.x),O=i1(I.floating,m.y);return d?{...te,transform:"translate("+se+"px, "+O+"px)",...Vx(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:se,top:O}},[r,d,I.floating,m.x,m.y]);return S.useMemo(()=>({...m,update:ce,refs:ae,elements:I,floatingStyles:Q}),[m,ce,ae,I,Q])}a(rD,"useFloating");const iD=a(e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return a(t,"isRef"),{name:"arrow",options:e,fn(r){const{element:o,padding:l}=typeof e=="function"?e(r):e;return o&&t(o)?o.current!=null?r1({element:o.current,padding:l}).fn(r):{}:o?r1({element:o,padding:l}).fn(r):{}}}},"arrow$1"),oD=a((e,t)=>({...Kk(e),options:[e,t]}),"offset$1"),aD=a((e,t)=>({...Qk(e),options:[e,t]}),"shift$1"),lD=a((e,t)=>({...Jk(e),options:[e,t]}),"limitShift"),sD=a((e,t)=>({...Xk(e),options:[e,t]}),"flip$1"),uD=a((e,t)=>({...Wk(e),options:[e,t]}),"size"),cD=a((e,t)=>({...Zk(e),options:[e,t]}),"hide$1"),fD=a((e,t)=>({...iD(e),options:[e,t]}),"arrow$2");var dD="Arrow",Gx=S.forwardRef((e,t)=>{const{children:r,width:o=10,height:l=5,...u}=e;return D.jsx(Ee.svg,{...u,ref:t,width:o,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:D.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gx.displayName=dD;var hD=Gx;function $x(e){const[t,r]=S.useState(void 0);return bt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const u=l[0];let c,d;if("borderBoxSize"in u){const h=u.borderBoxSize,p=Array.isArray(h)?h[0]:h;c=p.inlineSize,d=p.blockSize}else c=e.offsetWidth,d=e.offsetHeight;r({width:c,height:d})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else r(void 0)},[e]),t}a($x,"useSize");var Cm="Popper",[Yx,Ta]=$t(Cm),[pD,Kx]=Yx(Cm),Qx=a(e=>{const{__scopePopper:t,children:r}=e,[o,l]=S.useState(null);return D.jsx(pD,{scope:t,anchor:o,onAnchorChange:l,children:r})},"Popper$1");Qx.displayName=Cm;var Xx="PopperAnchor",Wx=S.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:o,...l}=e,u=Kx(Xx,r),c=S.useRef(null),d=ze(t,c),h=S.useRef(null);return S.useEffect(()=>{const p=h.current;h.current=o?.current||c.current,p!==h.current&&u.onAnchorChange(h.current)}),o?null:D.jsx(Ee.div,{...l,ref:d})});Wx.displayName=Xx;var Tm="PopperContent",[mD,gD]=Yx(Tm),Zx=S.forwardRef((e,t)=>{const{__scopePopper:r,side:o="bottom",sideOffset:l=0,align:u="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:x="optimized",onPlaced:E,...w}=e,R=Kx(Tm,r),[C,A]=S.useState(null),k=ze(t,K=>A(K)),[z,L]=S.useState(null),N=$x(z),j=N?.width??0,$=N?.height??0,W=o+(u!=="center"?"-"+u:""),J=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},X=Array.isArray(p)?p:[p],Z=X.length>0,ce={padding:J,boundary:X.filter(vD),altBoundary:Z},{refs:q,floatingStyles:ae,placement:I,isPositioned:Q,middlewareData:te}=rD({strategy:"fixed",placement:W,whileElementsMounted:a((...K)=>Yk(...K,{animationFrame:x==="always"}),"whileElementsMounted"),elements:{reference:R.anchor},middleware:[oD({mainAxis:l+$,alignmentAxis:c}),h&&aD({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?lD():void 0,...ce}),h&&sD({...ce}),uD({...ce,apply:a(({elements:K,rects:fe,availableWidth:Ce,availableHeight:Te})=>{const{width:Pe,height:qe}=fe.reference,Ie=K.floating.style;Ie.setProperty("--radix-popper-available-width",`${Ce}px`),Ie.setProperty("--radix-popper-available-height",`${Te}px`),Ie.setProperty("--radix-popper-anchor-width",`${Pe}px`),Ie.setProperty("--radix-popper-anchor-height",`${qe}px`)},"apply")}),z&&fD({element:z,padding:d}),bD({arrowWidth:j,arrowHeight:$}),b&&cD({strategy:"referenceHidden",...ce})]}),[se,O]=tw(I),Y=vt(E);bt(()=>{Q&&Y?.()},[Q,Y]);const de=te.arrow?.x,M=te.arrow?.y,ne=te.arrow?.centerOffset!==0,[me,oe]=S.useState();return bt(()=>{C&&oe(window.getComputedStyle(C).zIndex)},[C]),D.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:Q?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[te.transformOrigin?.x,te.transformOrigin?.y].join(" "),...te.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:D.jsx(mD,{scope:r,placedSide:se,onArrowChange:L,arrowX:de,arrowY:M,shouldHideArrow:ne,children:D.jsx(Ee.div,{"data-side":se,"data-align":O,...w,ref:k,style:{...w.style,animation:Q?void 0:"none"}})})})});Zx.displayName=Tm;var Jx="PopperArrow",yD={top:"bottom",right:"left",bottom:"top",left:"right"},ew=S.forwardRef(a(function(t,r){const{__scopePopper:o,...l}=t,u=gD(Jx,o),c=yD[u.placedSide];return D.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:D.jsx(hD,{...l,ref:r,style:{...l.style,display:"block"}})})},"PopperArrow2"));ew.displayName=Jx;function vD(e){return e!==null}a(vD,"isNotNull");var bD=a(e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:o,middlewareData:l}=t,c=l.arrow?.centerOffset!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[p,m]=tw(r),y={start:"0%",center:"50%",end:"100%"}[m],b=(l.arrow?.x??0)+d/2,x=(l.arrow?.y??0)+h/2;let E="",w="";return p==="bottom"?(E=c?y:`${b}px`,w=`${-h}px`):p==="top"?(E=c?y:`${b}px`,w=`${o.floating.height+h}px`):p==="right"?(E=`${-h}px`,w=c?y:`${x}px`):p==="left"&&(E=`${o.floating.width+h}px`,w=c?y:`${x}px`),{data:{x:E,y:w}}}}),"transformOrigin");function tw(e){const[t,r="center"]=e.split("-");return[t,r]}a(tw,"getSideAndAlignFromPlacement");var Rm=Qx,Om=Wx,Am=Zx,Mm=ew,nw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),SD="VisuallyHidden",Ic=S.forwardRef((e,t)=>D.jsx(Ee.span,{...e,ref:t,style:{...nw,...e.style}}));Ic.displayName=SD;var xD=Ic,[jc]=$t("Tooltip",[Ta]),Uc=Ta(),rw="TooltipProvider",wD=700,Rp="tooltip.open",[ED,_m]=jc(rw),iw=a(e=>{const{__scopeTooltip:t,delayDuration:r=wD,skipDelayDuration:o=300,disableHoverableContent:l=!1,children:u}=e,c=S.useRef(!0),d=S.useRef(!1),h=S.useRef(0);return S.useEffect(()=>{const p=h.current;return()=>window.clearTimeout(p)},[]),D.jsx(ED,{scope:t,isOpenDelayedRef:c,delayDuration:r,onOpen:S.useCallback(()=>{window.clearTimeout(h.current),c.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>c.current=!0,o)},[o]),isPointerInTransitRef:d,onPointerInTransitChange:S.useCallback(p=>{d.current=p},[]),disableHoverableContent:l,children:u})},"TooltipProvider");iw.displayName=rw;var Wl="Tooltip",[CD,us]=jc(Wl),ow=a(e=>{const{__scopeTooltip:t,children:r,open:o,defaultOpen:l,onOpenChange:u,disableHoverableContent:c,delayDuration:d}=e,h=_m(Wl,e.__scopeTooltip),p=Uc(t),[m,y]=S.useState(null),b=Ln(),x=S.useRef(0),E=c??h.disableHoverableContent,w=d??h.delayDuration,R=S.useRef(!1),[C,A]=pr({prop:o,defaultProp:l??!1,onChange:a(j=>{j?(h.onOpen(),document.dispatchEvent(new CustomEvent(Rp))):h.onClose(),u?.(j)},"onChange"),caller:Wl}),k=S.useMemo(()=>C?R.current?"delayed-open":"instant-open":"closed",[C]),z=S.useCallback(()=>{window.clearTimeout(x.current),x.current=0,R.current=!1,A(!0)},[A]),L=S.useCallback(()=>{window.clearTimeout(x.current),x.current=0,A(!1)},[A]),N=S.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{R.current=!0,A(!0),x.current=0},w)},[w,A]);return S.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),D.jsx(Rm,{...p,children:D.jsx(CD,{scope:t,contentId:b,open:C,stateAttribute:k,trigger:m,onTriggerChange:y,onTriggerEnter:S.useCallback(()=>{h.isOpenDelayedRef.current?N():z()},[h.isOpenDelayedRef,N,z]),onTriggerLeave:S.useCallback(()=>{E?L():(window.clearTimeout(x.current),x.current=0)},[L,E]),onOpen:z,onClose:L,disableHoverableContent:E,children:r})})},"Tooltip");ow.displayName=Wl;var Op="TooltipTrigger",aw=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...o}=e,l=us(Op,r),u=_m(Op,r),c=Uc(r),d=S.useRef(null),h=ze(t,d,l.onTriggerChange),p=S.useRef(!1),m=S.useRef(!1),y=S.useCallback(()=>p.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),D.jsx(Om,{asChild:!0,...c,children:D.jsx(Ee.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...o,ref:h,onPointerMove:ye(e.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!u.isPointerInTransitRef.current&&(l.onTriggerEnter(),m.current=!0)}),onPointerLeave:ye(e.onPointerLeave,()=>{l.onTriggerLeave(),m.current=!1}),onPointerDown:ye(e.onPointerDown,()=>{l.open&&l.onClose(),p.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:ye(e.onFocus,()=>{p.current||l.onOpen()}),onBlur:ye(e.onBlur,l.onClose),onClick:ye(e.onClick,l.onClose)})})});aw.displayName=Op;var km="TooltipPortal",[TD,RD]=jc(km,{forceMount:void 0}),lw=a(e=>{const{__scopeTooltip:t,forceMount:r,children:o,container:l}=e,u=us(km,t);return D.jsx(TD,{scope:t,forceMount:r,children:D.jsx(It,{present:r||u.open,children:D.jsx(wa,{asChild:!0,container:l,children:o})})})},"TooltipPortal");lw.displayName=km;var ma="TooltipContent",sw=S.forwardRef((e,t)=>{const r=RD(ma,e.__scopeTooltip),{forceMount:o=r.forceMount,side:l="top",...u}=e,c=us(ma,e.__scopeTooltip);return D.jsx(It,{present:o||c.open,children:c.disableHoverableContent?D.jsx(uw,{side:l,...u,ref:t}):D.jsx(OD,{side:l,...u,ref:t})})}),OD=S.forwardRef((e,t)=>{const r=us(ma,e.__scopeTooltip),o=_m(ma,e.__scopeTooltip),l=S.useRef(null),u=ze(t,l),[c,d]=S.useState(null),{trigger:h,onClose:p}=r,m=l.current,{onPointerInTransitChange:y}=o,b=S.useCallback(()=>{d(null),y(!1)},[y]),x=S.useCallback((E,w)=>{const R=E.currentTarget,C={x:E.clientX,y:E.clientY},A=DD(C,R.getBoundingClientRect()),k=ND(C,A),z=PD(w.getBoundingClientRect()),L=zD([...k,...z]);d(L),y(!0)},[y]);return S.useEffect(()=>()=>b(),[b]),S.useEffect(()=>{if(h&&m){const E=a(R=>x(R,m),"handleTriggerLeave"),w=a(R=>x(R,h),"handleContentLeave");return h.addEventListener("pointerleave",E),m.addEventListener("pointerleave",w),()=>{h.removeEventListener("pointerleave",E),m.removeEventListener("pointerleave",w)}}},[h,m,x,b]),S.useEffect(()=>{if(c){const E=a(w=>{const R=w.target,C={x:w.clientX,y:w.clientY},A=h?.contains(R)||m?.contains(R),k=!LD(C,c);A?b():k&&(b(),p())},"handleTrackPointerGrace");return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[h,m,c,p,b]),D.jsx(uw,{...e,ref:u})}),[AD,MD]=jc(Wl,{isInside:!1}),_D=tx("TooltipContent"),uw=S.forwardRef((e,t)=>{const{__scopeTooltip:r,children:o,"aria-label":l,onEscapeKeyDown:u,onPointerDownOutside:c,...d}=e,h=us(ma,r),p=Uc(r),{onClose:m}=h;return S.useEffect(()=>(document.addEventListener(Rp,m),()=>document.removeEventListener(Rp,m)),[m]),S.useEffect(()=>{if(h.trigger){const y=a(b=>{b.target?.contains(h.trigger)&&m()},"handleScroll");return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[h.trigger,m]),D.jsx(xa,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:a(y=>y.preventDefault(),"onFocusOutside"),onDismiss:m,children:D.jsxs(Am,{"data-state":h.stateAttribute,...p,...d,ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[D.jsx(_D,{children:o}),D.jsx(AD,{scope:r,isInside:!0,children:D.jsx(xD,{id:h.contentId,role:"tooltip",children:l||o})})]})})});sw.displayName=ma;var cw="TooltipArrow",kD=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...o}=e,l=Uc(r);return MD(cw,r).isInside?null:D.jsx(Mm,{...l,...o,ref:t})});kD.displayName=cw;function DD(e,t){const r=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),l=Math.abs(t.right-e.x),u=Math.abs(t.left-e.x);switch(Math.min(r,o,l,u)){case u:return"left";case l:return"right";case r:return"top";case o:return"bottom";default:throw new Error("unreachable")}}a(DD,"getExitSideFromRect");function ND(e,t,r=5){const o=[];switch(t){case"top":o.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":o.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":o.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":o.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return o}a(ND,"getPaddedExitPoints");function PD(e){const{top:t,right:r,bottom:o,left:l}=e;return[{x:l,y:t},{x:r,y:t},{x:r,y:o},{x:l,y:o}]}a(PD,"getPointsFromRect");function LD(e,t){const{x:r,y:o}=e;let l=!1;for(let u=0,c=t.length-1;u<t.length;c=u++){const d=t[u],h=t[c],p=d.x,m=d.y,y=h.x,b=h.y;m>o!=b>o&&r<(y-p)*(o-m)/(b-m)+p&&(l=!l)}return l}a(LD,"isPointInPolygon$1");function zD(e){const t=e.slice();return t.sort((r,o)=>r.x<o.x?-1:r.x>o.x?1:r.y<o.y?-1:r.y>o.y?1:0),ID(t)}a(zD,"getHull");function ID(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const l=e[o];for(;t.length>=2;){const u=t[t.length-1],c=t[t.length-2];if((u.x-c.x)*(l.y-c.y)>=(u.y-c.y)*(l.x-c.x))t.pop();else break}t.push(l)}t.pop();const r=[];for(let o=e.length-1;o>=0;o--){const l=e[o];for(;r.length>=2;){const u=r[r.length-1],c=r[r.length-2];if((u.x-c.x)*(l.y-c.y)>=(u.y-c.y)*(l.x-c.x))r.pop();else break}r.push(l)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}a(ID,"getHullPresorted");var gU=iw,yU=ow,vU=aw,bU=lw,SU=sw,ao=class{static{a(this,"Subscribable")}constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},jD={setTimeout:a((e,t)=>setTimeout(e,t),"setTimeout"),clearTimeout:a(e=>clearTimeout(e),"clearTimeout"),setInterval:a((e,t)=>setInterval(e,t),"setInterval"),clearInterval:a(e=>clearInterval(e),"clearInterval")},UD=class{static{a(this,"TimeoutManager")}#t=jD;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},Ki=new UD;function BD(e){setTimeout(e,0)}a(BD,"systemSetTimeoutZero");var eo=typeof window>"u"||"Deno"in globalThis;function Ht(){}a(Ht,"noop$2");function HD(e,t){return typeof e=="function"?e(t):e}a(HD,"functionalUpdate");function Ap(e){return typeof e=="number"&&e>=0&&e!==1/0}a(Ap,"isValidTimeout");function fw(e,t){return Math.max(e+(t||0)-Date.now(),0)}a(fw,"timeUntilStale");function Si(e,t){return typeof e=="function"?e(t):e}a(Si,"resolveStaleTime");function Dn(e,t){return typeof e=="function"?e(t):e}a(Dn,"resolveEnabled");function o1(e,t){const{type:r="all",exact:o,fetchStatus:l,predicate:u,queryKey:c,stale:d}=e;if(c){if(o){if(t.queryHash!==Dm(c,t.options))return!1}else if(!Zl(t.queryKey,c))return!1}if(r!=="all"){const h=t.isActive();if(r==="active"&&!h||r==="inactive"&&h)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||l&&l!==t.state.fetchStatus||u&&!u(t))}a(o1,"matchQuery");function a1(e,t){const{exact:r,status:o,predicate:l,mutationKey:u}=e;if(u){if(!t.options.mutationKey)return!1;if(r){if(to(t.options.mutationKey)!==to(u))return!1}else if(!Zl(t.options.mutationKey,u))return!1}return!(o&&t.state.status!==o||l&&!l(t))}a(a1,"matchMutation");function Dm(e,t){return(t?.queryKeyHashFn||to)(e)}a(Dm,"hashQueryKeyByOptions");function to(e){return JSON.stringify(e,(t,r)=>Mp(r)?Object.keys(r).sort().reduce((o,l)=>(o[l]=r[l],o),{}):r)}a(to,"hashKey");function Zl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Zl(e[r],t[r])):!1}a(Zl,"partialMatchKey");var FD=Object.prototype.hasOwnProperty;function Nm(e,t){if(e===t)return e;const r=l1(e)&&l1(t);if(!r&&!(Mp(e)&&Mp(t)))return t;const l=(r?e:Object.keys(e)).length,u=r?t:Object.keys(t),c=u.length,d=r?new Array(c):{};let h=0;for(let p=0;p<c;p++){const m=r?p:u[p],y=e[m],b=t[m];if(y===b){d[m]=y,(r?p<l:FD.call(e,m))&&h++;continue}if(y===null||b===null||typeof y!="object"||typeof b!="object"){d[m]=b;continue}const x=Nm(y,b);d[m]=x,x===y&&h++}return l===c&&h===l?e:d}a(Nm,"replaceEqualDeep");function Jl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}a(Jl,"shallowEqualObjects");function l1(e){return Array.isArray(e)&&e.length===Object.keys(e).length}a(l1,"isPlainArray");function Mp(e){if(!s1(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!s1(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}a(Mp,"isPlainObject$1");function s1(e){return Object.prototype.toString.call(e)==="[object Object]"}a(s1,"hasObjectPrototype");function qD(e){return new Promise(t=>{Ki.setTimeout(t,e)})}a(qD,"sleep");function _p(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Nm(e,t):t}a(_p,"replaceData");function VD(e,t,r=0){const o=[...e,t];return r&&o.length>r?o.slice(1):o}a(VD,"addToEnd");function GD(e,t,r=0){const o=[t,...e];return r&&o.length>r?o.slice(0,-1):o}a(GD,"addToStart");var Pm=Symbol();function dw(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Pm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}a(dw,"ensureQueryFn");function hw(e,t){return typeof e=="function"?e(...t):!!e}a(hw,"shouldThrowError");var $D=class extends ao{static{a(this,"FocusManager")}#t;#e;#n;constructor(){super(),this.#n=e=>{if(!eo&&window.addEventListener){const t=a(()=>e(),"listener");return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Lm=new $D;function kp(){let e,t;const r=new Promise((l,u)=>{e=l,t=u});r.status="pending",r.catch(()=>{});function o(l){Object.assign(r,l),delete r.resolve,delete r.reject}return a(o,"finalize"),r.resolve=l=>{o({status:"fulfilled",value:l}),e(l)},r.reject=l=>{o({status:"rejected",reason:l}),t(l)},r}a(kp,"pendingThenable");var YD=BD;function KD(){let e=[],t=0,r=a(d=>{d()},"notifyFn"),o=a(d=>{d()},"batchNotifyFn"),l=YD;const u=a(d=>{t?e.push(d):l(()=>{r(d)})},"schedule"),c=a(()=>{const d=e;e=[],d.length&&l(()=>{o(()=>{d.forEach(h=>{r(h)})})})},"flush");return{batch:a(d=>{let h;t++;try{h=d()}finally{t--,t||c()}return h},"batch"),batchCalls:a(d=>(...h)=>{u(()=>{d(...h)})},"batchCalls"),schedule:u,setNotifyFunction:a(d=>{r=d},"setNotifyFunction"),setBatchNotifyFunction:a(d=>{o=d},"setBatchNotifyFunction"),setScheduler:a(d=>{l=d},"setScheduler")}}a(KD,"createNotifyManager");var yt=KD(),QD=class extends ao{static{a(this,"OnlineManager")}#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!eo&&window.addEventListener){const t=a(()=>e(!0),"onlineListener"),r=a(()=>e(!1),"offlineListener");return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#t}},fc=new QD;function XD(e){return Math.min(1e3*2**e,3e4)}a(XD,"defaultRetryDelay");function pw(e){return(e??"online")==="online"?fc.isOnline():!0}a(pw,"canFetch");var Dp=class extends Error{static{a(this,"CancelledError")}constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function mw(e){let t=!1,r=0,o;const l=kp(),u=a(()=>l.status!=="pending","isResolved"),c=a(w=>{if(!u()){const R=new Dp(w);b(R),e.onCancel?.(R)}},"cancel"),d=a(()=>{t=!0},"cancelRetry"),h=a(()=>{t=!1},"continueRetry"),p=a(()=>Lm.isFocused()&&(e.networkMode==="always"||fc.isOnline())&&e.canRun(),"canContinue"),m=a(()=>pw(e.networkMode)&&e.canRun(),"canStart"),y=a(w=>{u()||(o?.(),l.resolve(w))},"resolve"),b=a(w=>{u()||(o?.(),l.reject(w))},"reject"),x=a(()=>new Promise(w=>{o=a(R=>{(u()||p())&&w(R)},"continueFn"),e.onPause?.()}).then(()=>{o=void 0,u()||e.onContinue?.()}),"pause"),E=a(()=>{if(u())return;let w;const R=r===0?e.initialPromise:void 0;try{w=R??e.fn()}catch(C){w=Promise.reject(C)}Promise.resolve(w).then(y).catch(C=>{if(u())return;const A=e.retry??(eo?0:3),k=e.retryDelay??XD,z=typeof k=="function"?k(r,C):k,L=A===!0||typeof A=="number"&&r<A||typeof A=="function"&&A(r,C);if(t||!L){b(C);return}r++,e.onFail?.(r,C),qD(z).then(()=>p()?void 0:x()).then(()=>{t?b(C):E()})})},"run");return{promise:l,status:a(()=>l.status,"status"),cancel:c,continue:a(()=>(o?.(),l),"continue"),cancelRetry:d,continueRetry:h,canStart:m,start:a(()=>(m()?E():x().then(E),l),"start")}}a(mw,"createRetryer");var gw=class{static{a(this,"Removable")}#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ap(this.gcTime)&&(this.#t=Ki.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(eo?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Ki.clearTimeout(this.#t),this.#t=void 0)}},WD=class extends gw{static{a(this,"Query")}#t;#e;#n;#i;#r;#o;#l;constructor(e){super(),this.#l=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=u1(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=u1(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const r=_p(this.state.data,e,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Ht).catch(Ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Dn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Pm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Si(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!fw(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#l?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,o=a(d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:a(()=>(this.#l=!0,r.signal),"get")})},"addSignalProperty"),l=a(()=>{const d=dw(this.options,t),p=a(()=>{const m={client:this.#i,queryKey:this.queryKey,meta:this.meta};return o(m),m},"createQueryFnContext")();return this.#l=!1,this.options.persister?this.options.persister(d,p,this):d(p)},"fetchFn"),c=a(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:l};return o(d),d},"createFetchContext")();this.options.behavior?.onFetch(c,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=mw({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:a(d=>{d instanceof Dp&&d.revert&&this.setState({...this.#e,fetchStatus:"idle"}),r.abort()},"onCancel"),onFail:a((d,h)=>{this.#a({type:"failed",failureCount:d,error:h})},"onFail"),onPause:a(()=>{this.#a({type:"pause"})},"onPause"),onContinue:a(()=>{this.#a({type:"continue"})},"onContinue"),retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:a(()=>!0,"canRun")});try{const d=await this.#r.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Dp){if(d.silent)return this.#r.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#a({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#a(e){const t=a(r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...yw(r.data,this.options),fetchMeta:e.meta??null};case"success":const o={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?o:void 0,o;case"error":const l=e.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}},"reducer");this.state=t(this.state),yt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function yw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}a(yw,"fetchState");function u1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,o=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}a(u1,"getDefaultState$1");var zm=class extends ao{static{a(this,"QueryObserver")}constructor(e,t){super(),this.options=t,this.#t=e,this.#a=null,this.#l=kp(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#i=void 0;#r;#o;#l;#a;#h;#f;#d;#u;#c;#s;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),c1(this.#e,this.options)?this.#p():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Np(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Np(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#x(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),t._defaulted&&!Jl(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&f1(this.#e,r,this.options,t)&&this.#p(),this.updateResult(),o&&(this.#e!==r||Dn(this.options.enabled,this.#e)!==Dn(t.enabled,this.#e)||Si(this.options.staleTime,this.#e)!==Si(t.staleTime,this.#e))&&this.#g();const l=this.#y();o&&(this.#e!==r||Dn(this.options.enabled,this.#e)!==Dn(t.enabled,this.#e)||l!==this.#s)&&this.#v(l)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),r=this.createResult(t,e);return JD(this,r)&&(this.#i=r,this.#o=this.options,this.#r=this.#e.state),r}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:a((r,o)=>(this.trackProp(o),t?.(o),o==="promise"&&!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,o)),"get")})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),r=this.#t.getQueryCache().build(this.#t,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#p(e){this.#w();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ht)),t}#g(){this.#S();const e=Si(this.options.staleTime,this.#e);if(eo||this.#i.isStale||!Ap(e))return;const r=fw(this.#i.dataUpdatedAt,e)+1;this.#u=Ki.setTimeout(()=>{this.#i.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#s=e,!(eo||Dn(this.options.enabled,this.#e)===!1||!Ap(this.#s)||this.#s===0)&&(this.#c=Ki.setInterval(()=>{(this.options.refetchIntervalInBackground||Lm.isFocused())&&this.#p()},this.#s))}#b(){this.#g(),this.#v(this.#y())}#S(){this.#u&&(Ki.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#c&&(Ki.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const r=this.#e,o=this.options,l=this.#i,u=this.#r,c=this.#o,h=e!==r?e.state:this.#n,{state:p}=e;let m={...p},y=!1,b;if(t._optimisticResults){const $=this.hasListeners(),W=!$&&c1(e,t),J=$&&f1(e,r,t,o);(W||J)&&(m={...m,...yw(p.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:x,errorUpdatedAt:E,status:w}=m;b=m.data;let R=!1;if(t.placeholderData!==void 0&&b===void 0&&w==="pending"){let $;l?.isPlaceholderData&&t.placeholderData===c?.placeholderData?($=l.data,R=!0):$=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,$!==void 0&&(w="success",b=_p(l?.data,$,t),y=!0)}if(t.select&&b!==void 0&&!R)if(l&&b===u?.data&&t.select===this.#h)b=this.#f;else try{this.#h=t.select,b=t.select(b),b=_p(l?.data,b,t),this.#f=b,this.#a=null}catch($){this.#a=$}this.#a&&(x=this.#a,b=this.#f,E=Date.now(),w="error");const C=m.fetchStatus==="fetching",A=w==="pending",k=w==="error",z=A&&C,L=b!==void 0,j={status:w,fetchStatus:m.fetchStatus,isPending:A,isSuccess:w==="success",isError:k,isInitialLoading:z,isLoading:z,data:b,dataUpdatedAt:m.dataUpdatedAt,error:x,errorUpdatedAt:E,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>h.dataUpdateCount||m.errorUpdateCount>h.errorUpdateCount,isFetching:C,isRefetching:C&&!A,isLoadingError:k&&!L,isPaused:m.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:k&&L,isStale:Im(e,t),refetch:this.refetch,promise:this.#l,isEnabled:Dn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const $=a(X=>{j.status==="error"?X.reject(j.error):j.data!==void 0&&X.resolve(j.data)},"finalizeThenableIfPossible"),W=a(()=>{const X=this.#l=j.promise=kp();$(X)},"recreateThenable"),J=this.#l;switch(J.status){case"pending":e.queryHash===r.queryHash&&$(J);break;case"fulfilled":(j.status==="error"||j.data!==J.value)&&W();break;case"rejected":(j.status!=="error"||j.error!==J.reason)&&W();break}}return j}updateResult(){const e=this.#i,t=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#o=this.options,this.#r.data!==void 0&&(this.#d=this.#e),Jl(t,e))return;this.#i=t;const r=a(()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!this.#m.size)return!0;const u=new Set(l??this.#m);return this.options.throwOnError&&u.add("error"),Object.keys(this.#i).some(c=>{const d=c;return this.#i[d]!==e[d]&&u.has(d)})},"shouldNotifyListeners");this.#E({listeners:r()})}#w(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#E(e){yt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function ZD(e,t){return Dn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}a(ZD,"shouldLoadOnMount");function c1(e,t){return ZD(e,t)||e.state.data!==void 0&&Np(e,t,t.refetchOnMount)}a(c1,"shouldFetchOnMount");function Np(e,t,r){if(Dn(t.enabled,e)!==!1&&Si(t.staleTime,e)!=="static"){const o=typeof r=="function"?r(e):r;return o==="always"||o!==!1&&Im(e,t)}return!1}a(Np,"shouldFetchOn");function f1(e,t,r,o){return(e!==t||Dn(o.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Im(e,r)}a(f1,"shouldFetchOptionally");function Im(e,t){return Dn(t.enabled,e)!==!1&&e.isStaleByTime(Si(t.staleTime,e))}a(Im,"isStale");function JD(e,t){return!Jl(e.getCurrentResult(),t)}a(JD,"shouldAssignObserverCurrentProperties");function d1(e){return{onFetch:a((t,r)=>{const o=t.options,l=t.fetchOptions?.meta?.fetchMore?.direction,u=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let d={pages:[],pageParams:[]},h=0;const p=a(async()=>{let m=!1;const y=a(E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:a(()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal),"get")})},"addSignalProperty"),b=dw(t.options,t.fetchOptions),x=a(async(E,w,R)=>{if(m)return Promise.reject();if(w==null&&E.pages.length)return Promise.resolve(E);const A=a(()=>{const N={client:t.client,queryKey:t.queryKey,pageParam:w,direction:R?"backward":"forward",meta:t.options.meta};return y(N),N},"createQueryFnContext")(),k=await b(A),{maxPages:z}=t.options,L=R?GD:VD;return{pages:L(E.pages,k,z),pageParams:L(E.pageParams,w,z)}},"fetchPage");if(l&&u.length){const E=l==="backward",w=E?eN:h1,R={pages:u,pageParams:c},C=w(o,R);d=await x(R,C,E)}else{const E=e??u.length;do{const w=h===0?c[0]??o.initialPageParam:h1(o,d);if(h>0&&w==null)break;d=await x(d,w),h++}while(h<E)}return d},"fetchFn");t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=p},"onFetch")}}a(d1,"infiniteQueryBehavior");function h1(e,{pages:t,pageParams:r}){const o=t.length-1;return t.length>0?e.getNextPageParam(t[o],t,r[o],r):void 0}a(h1,"getNextPageParam");function eN(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}a(eN,"getPreviousPageParam");var tN=class extends gw{static{a(this,"Mutation")}#t;#e;#n;#i;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||vw(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=a(()=>{this.#r({type:"continue"})},"onContinue"),r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=mw({fn:a(()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),"fn"),onFail:a((u,c)=>{this.#r({type:"failed",failureCount:u,error:c})},"onFail"),onPause:a(()=>{this.#r({type:"pause"})},"onPause"),onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:a(()=>this.#n.canRun(this),"canRun")});const o=this.state.status==="pending",l=!this.#i.canStart();try{if(o)t();else{this.#r({type:"pending",variables:e,isPaused:l}),await this.#n.config.onMutate?.(e,this,r);const c=await this.options.onMutate?.(e,r);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:l})}const u=await this.#i.start();return await this.#n.config.onSuccess?.(u,e,this.state.context,this,r),await this.options.onSuccess?.(u,e,this.state.context,r),await this.#n.config.onSettled?.(u,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(u,null,e,this.state.context,r),this.#r({type:"success",data:u}),u}catch(u){try{throw await this.#n.config.onError?.(u,e,this.state.context,this,r),await this.options.onError?.(u,e,this.state.context,r),await this.#n.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,u,e,this.state.context,r),u}finally{this.#r({type:"error",error:u})}}finally{this.#n.runNext(this)}}#r(e){const t=a(r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}},"reducer");this.state=t(this.state),yt.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function vw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}a(vw,"getDefaultState");var nN=class extends ao{static{a(this,"MutationCache")}constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,r){const o=new tN({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(o),o}add(e){this.#t.add(e);const t=qu(e);if(typeof t=="string"){const r=this.#e.get(t);r?r.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=qu(e);if(typeof t=="string"){const r=this.#e.get(t);if(r)if(r.length>1){const o=r.indexOf(e);o!==-1&&r.splice(o,1)}else r[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=qu(e);if(typeof t=="string"){const o=this.#e.get(t)?.find(l=>l.state.status==="pending");return!o||o===e}else return!0}runNext(e){const t=qu(e);return typeof t=="string"?this.#e.get(t)?.find(o=>o!==e&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){yt.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>a1(t,r))}findAll(e={}){return this.getAll().filter(t=>a1(e,t))}notify(e){yt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return yt.batch(()=>Promise.all(e.map(t=>t.continue().catch(Ht))))}};function qu(e){return e.options.scope?.id}a(qu,"scopeFor");var rN=class extends ao{static{a(this,"MutationObserver")}#t;#e=void 0;#n;#i;constructor(t,r){super(),this.#t=t,this.setOptions(r),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.#t.defaultMutationOptions(t),Jl(this.options,r)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&to(r.mutationKey)!==to(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#o()}mutate(t,r){return this.#i=r,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??vw();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){yt.batch(()=>{if(this.#i&&this.hasListeners()){const r=this.#e.variables,o=this.#e.context,l={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,r,o,l),this.#i.onSettled?.(t.data,null,r,o,l)):t?.type==="error"&&(this.#i.onError?.(t.error,r,o,l),this.#i.onSettled?.(void 0,t.error,r,o,l))}this.listeners.forEach(r=>{r(this.#e)})})}};function p1(e,t){const r=new Set(t);return e.filter(o=>!r.has(o))}a(p1,"difference");function iN(e,t,r){const o=e.slice(0);return o[t]=r,o}a(iN,"replaceAt");var oN=class extends ao{static{a(this,"QueriesObserver")}#t;#e;#n;#i;#r;#o;#l;#a;#h=[];constructor(e,t,r){super(),this.#t=e,this.#i=r,this.#n=[],this.#r=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#i=t,yt.batch(()=>{const r=this.#r,o=this.#u(this.#n);this.#h=o,o.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const l=o.map(m=>m.observer),u=l.map(m=>m.getCurrentResult()),c=r.length!==l.length,d=l.some((m,y)=>m!==r[y]),h=c||d,p=h?!0:u.some((m,y)=>{const b=this.#e[y];return!b||!Jl(m,b)});!h&&!p||(h&&(this.#r=l),this.#e=u,this.hasListeners()&&(h&&(p1(r,l).forEach(m=>{m.destroy()}),p1(l,r).forEach(m=>{m.subscribe(y=>{this.#c(m,y)})})),this.#s()))})}getCurrentResult(){return this.#e}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){const r=this.#u(e),o=r.map(l=>l.observer.getOptimisticResult(l.defaultedQueryOptions));return[o,l=>this.#d(l??o,t),()=>this.#f(o,r)]}#f(e,t){return t.map((r,o)=>{const l=e[o];return r.defaultedQueryOptions.notifyOnChangeProps?l:r.observer.trackResult(l,u=>{t.forEach(c=>{c.observer.trackProp(u)})})})}#d(e,t){return t?((!this.#o||this.#e!==this.#a||t!==this.#l)&&(this.#l=t,this.#a=this.#e,this.#o=Nm(this.#o,t(e))),this.#o):e}#u(e){const t=new Map(this.#r.map(o=>[o.options.queryHash,o])),r=[];return e.forEach(o=>{const l=this.#t.defaultQueryOptions(o),u=t.get(l.queryHash);u?r.push({defaultedQueryOptions:l,observer:u}):r.push({defaultedQueryOptions:l,observer:new zm(this.#t,l)})}),r}#c(e,t){const r=this.#r.indexOf(e);r!==-1&&(this.#e=iN(this.#e,r,t),this.#s())}#s(){if(this.hasListeners()){const e=this.#o,t=this.#f(this.#e,this.#h),r=this.#d(t,this.#i?.combine);e!==r&&yt.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}},aN=class extends ao{static{a(this,"QueryCache")}constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,r){const o=t.queryKey,l=t.queryHash??Dm(o,t);let u=this.get(l);return u||(u=new WD({client:e,queryKey:o,queryHash:l,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(u)),u}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){yt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>o1(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>o1(e,r)):t}notify(e){yt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){yt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){yt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},wU=class{static{a(this,"QueryClient")}#t;#e;#n;#i;#r;#o;#l;#a;constructor(e={}){this.#t=e.queryCache||new aN,this.#e=e.mutationCache||new nN,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#l=Lm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#a=fc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#l?.(),this.#l=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#t.build(this,t),o=r.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Si(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(o))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:r})=>{const o=r.data;return[t,o]})}setQueryData(e,t,r){const o=this.defaultQueryOptions({queryKey:e}),u=this.#t.get(o.queryHash)?.state.data,c=HD(t,u);if(c!==void 0)return this.#t.build(this,o).setData(c,{...r,manual:!0})}setQueriesData(e,t,r){return yt.batch(()=>this.#t.findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;yt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#t;return yt.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},o=yt.batch(()=>this.#t.findAll(e).map(l=>l.cancel(r)));return Promise.all(o).then(Ht).catch(Ht)}invalidateQueries(e,t={}){return yt.batch(()=>(this.#t.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},o=yt.batch(()=>this.#t.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let u=l.fetch(void 0,r);return r.throwOnError||(u=u.catch(Ht)),l.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(o).then(Ht)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#t.build(this,t);return r.isStaleByTime(Si(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ht).catch(Ht)}fetchInfiniteQuery(e){return e.behavior=d1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ht).catch(Ht)}ensureInfiniteQueryData(e){return e.behavior=d1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fc.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(to(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],r={};return t.forEach(o=>{Zl(e,o.queryKey)&&Object.assign(r,o.defaultOptions)}),r}setMutationDefaults(e,t){this.#r.set(to(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],r={};return t.forEach(o=>{Zl(e,o.mutationKey)&&Object.assign(r,o.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Dm(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Pm&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},bw=S.createContext(void 0),jm=a(e=>{const t=S.useContext(bw);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},"useQueryClient"),EU=a(({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),D.jsx(bw.Provider,{value:e,children:t})),"QueryClientProvider"),Sw=S.createContext(!1),xw=a(()=>S.useContext(Sw),"useIsRestoring");Sw.Provider;function lN(){let e=!1;return{clearReset:a(()=>{e=!1},"clearReset"),reset:a(()=>{e=!0},"reset"),isReset:a(()=>e,"isReset")}}a(lN,"createValue");var sN=S.createContext(lN()),ww=a(()=>S.useContext(sN),"useQueryErrorResetBoundary"),Ew=a((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},"ensurePreventErrorBoundaryRetry"),Cw=a(e=>{S.useEffect(()=>{e.clearReset()},[e])},"useClearResetErrorBoundary"),Tw=a(({result:e,errorResetBoundary:t,throwOnError:r,query:o,suspense:l})=>e.isError&&!t.isReset()&&!e.isFetching&&o&&(l&&e.data===void 0||hw(r,[e.error,o])),"getHasError"),Rw=a(e=>{if(e.suspense){const r=a(l=>l==="static"?l:Math.max(l??1e3,1e3),"clamp"),o=e.staleTime;e.staleTime=typeof o=="function"?(...l)=>r(o(...l)):r(o),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},"ensureSuspenseTimers"),Ow=a((e,t)=>e.isLoading&&e.isFetching&&!t,"willFetch"),Pp=a((e,t)=>e?.suspense&&t.isPending,"shouldSuspend"),dc=a((e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}),"fetchOptimistic");function CU({queries:e,...t},r){const o=jm(),l=xw(),u=ww(),c=S.useMemo(()=>e.map(w=>{const R=o.defaultQueryOptions(w);return R._optimisticResults=l?"isRestoring":"optimistic",R}),[e,o,l]);c.forEach(w=>{Rw(w),Ew(w,u)}),Cw(u);const[d]=S.useState(()=>new oN(o,c,t)),[h,p,m]=d.getOptimisticResult(c,t.combine),y=!l&&t.subscribed!==!1;S.useSyncExternalStore(S.useCallback(w=>y?d.subscribe(yt.batchCalls(w)):Ht,[d,y]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),S.useEffect(()=>{d.setQueries(c,t)},[c,t,d]);const x=h.some((w,R)=>Pp(c[R],w))?h.flatMap((w,R)=>{const C=c[R];if(C){const A=new zm(o,C);if(Pp(C,w))return dc(C,A,u);Ow(w,l)&&dc(C,A,u)}return[]}):[];if(x.length>0)throw Promise.all(x);const E=h.find((w,R)=>{const C=c[R];return C&&Tw({result:w,errorResetBoundary:u,throwOnError:C.throwOnError,query:o.getQueryCache().get(C.queryHash),suspense:C.suspense})});if(E?.error)throw E.error;return p(m())}a(CU,"useQueries");function uN(e,t,r){const o=xw(),l=ww(),u=jm(),c=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=o?"isRestoring":"optimistic",Rw(c),Ew(c,l),Cw(l);const d=!u.getQueryCache().get(c.queryHash),[h]=S.useState(()=>new t(u,c)),p=h.getOptimisticResult(c),m=!o&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(y=>{const b=m?h.subscribe(yt.batchCalls(y)):Ht;return h.updateResult(),b},[h,m]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),S.useEffect(()=>{h.setOptions(c)},[c,h]),Pp(c,p))throw dc(c,h,l);if(Tw({result:p,errorResetBoundary:l,throwOnError:c.throwOnError,query:u.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw p.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(c,p),c.experimental_prefetchInRender&&!eo&&Ow(p,o)&&(d?dc(c,h,l):u.getQueryCache().get(c.queryHash)?.promise)?.catch(Ht).finally(()=>{h.updateResult()}),c.notifyOnChangeProps?p:h.trackResult(p)}a(uN,"useBaseQuery");function TU(e,t){return uN(e,zm)}a(TU,"useQuery");function RU(e,t){const r=jm(),[o]=S.useState(()=>new rN(r,e));S.useEffect(()=>{o.setOptions(e)},[o,e]);const l=S.useSyncExternalStore(S.useCallback(c=>o.subscribe(yt.batchCalls(c)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),u=S.useCallback((c,d)=>{o.mutate(c,d).catch(Ht)},[o]);if(l.error&&hw(o.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:u,mutateAsync:l.mutate}}a(RU,"useMutation");/**
459
+ * react-router v7.9.1
460
460
  *
461
461
  * Copyright (c) Remix Software Inc.
462
462
  *
@@ -464,15 +464,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
464
464
  * LICENSE.md file in the root directory of this source tree.
465
465
  *
466
466
  * @license MIT
467
- */var m1="popstate";function cN(e={}){function t(o,l){let{pathname:u,search:c,hash:d}=o.location;return Lh("",{pathname:u,search:c,hash:d},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}a(t,"createBrowserLocation");function r(o,l){return typeof l=="string"?l:es(l)}return a(r,"createBrowserHref"),dN(t,r,null,e)}a(cN,"createBrowserHistory");function pt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}a(pt,"invariant");function Kn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}a(Kn,"warning");function fN(){return Math.random().toString(36).substring(2,10)}a(fN,"createKey");function g1(e,t){return{usr:e.state,key:e.key,idx:t}}a(g1,"getHistoryState");function Lh(e,t,r=null,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ra(t):t,state:r,key:t&&t.key||o||fN()}}a(Lh,"createLocation");function es({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}a(es,"createPath");function Ra(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let o=e.indexOf("?");o>=0&&(t.search=e.substring(o),e=e.substring(0,o)),e&&(t.pathname=e)}return t}a(Ra,"parsePath");function dN(e,t,r,o={}){let{window:l=document.defaultView,v5Compat:u=!1}=o,c=l.history,d="POP",p=null,h=m();h==null&&(h=0,c.replaceState({...c.state,idx:h},""));function m(){return(c.state||{idx:null}).idx}a(m,"getIndex");function y(){d="POP";let R=m(),C=R==null?null:R-h;h=R,p&&p({action:d,location:w.location,delta:C})}a(y,"handlePop");function b(R,C){d="PUSH";let A=Lh(w.location,R,C);h=m()+1;let k=g1(A,h),z=w.createHref(A);try{c.pushState(k,"",z)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;l.location.assign(z)}u&&p&&p({action:d,location:w.location,delta:1})}a(b,"push");function x(R,C){d="REPLACE";let A=Lh(w.location,R,C);h=m();let k=g1(A,h),z=w.createHref(A);c.replaceState(k,"",z),u&&p&&p({action:d,location:w.location,delta:0})}a(x,"replace2");function E(R){return pN(R)}a(E,"createURL");let w={get action(){return d},get location(){return e(l,c)},listen(R){if(p)throw new Error("A history only accepts one active listener");return l.addEventListener(m1,y),p=R,()=>{l.removeEventListener(m1,y),p=null}},createHref(R){return t(l,R)},createURL:E,encodeLocation(R){let C=E(R);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:b,replace:x,go(R){return c.go(R)}};return w}a(dN,"getUrlBasedHistory");function pN(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),pt(r,"No window.location.(origin|href) available to create URL");let o=typeof e=="string"?e:es(e);return o=o.replace(/ $/,"%20"),!t&&o.startsWith("//")&&(o=r+o),new URL(o,r)}a(pN,"createBrowserURLImpl");function Aw(e,t,r="/"){return hN(e,t,r,!1)}a(Aw,"matchRoutes");function hN(e,t,r,o){let l=typeof t=="string"?Ra(t):t,u=qr(l.pathname||"/",r);if(u==null)return null;let c=Mw(e);mN(c);let d=null;for(let p=0;d==null&&p<c.length;++p){let h=RN(u);d=CN(c[p],h,o)}return d}a(hN,"matchRoutesImpl");function Mw(e,t=[],r=[],o="",l=!1){let u=a((c,d,p=l,h)=>{let m={relativePath:h===void 0?c.path||"":h,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(o)&&p)return;pt(m.relativePath.startsWith(o),`Absolute route path "${m.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(o.length)}let y=Br([o,m.relativePath]),b=r.concat(m);c.children&&c.children.length>0&&(pt(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Mw(c.children,t,b,y,p)),!(c.path==null&&!c.index)&&t.push({path:y,score:wN(y,c.index),routesMeta:b})},"flattenRoute");return e.forEach((c,d)=>{if(c.path===""||!c.path?.includes("?"))u(c,d);else for(let p of _w(c.path))u(c,d,!0,p)}),t}a(Mw,"flattenRoutes");function _w(e){let t=e.split("/");if(t.length===0)return[];let[r,...o]=t,l=r.endsWith("?"),u=r.replace(/\?$/,"");if(o.length===0)return l?[u,""]:[u];let c=_w(o.join("/")),d=[];return d.push(...c.map(p=>p===""?u:[u,p].join("/"))),l&&d.push(...c),d.map(p=>e.startsWith("/")&&p===""?"/":p)}a(_w,"explodeOptionalSegments");function mN(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:EN(t.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}a(mN,"rankRouteBranches");var gN=/^:[\w-]+$/,yN=3,vN=2,bN=1,SN=10,xN=-2,y1=a(e=>e==="*","isSplat");function wN(e,t){let r=e.split("/"),o=r.length;return r.some(y1)&&(o+=xN),t&&(o+=vN),r.filter(l=>!y1(l)).reduce((l,u)=>l+(gN.test(u)?yN:u===""?bN:SN),o)}a(wN,"computeScore");function EN(e,t){return e.length===t.length&&e.slice(0,-1).every((o,l)=>o===t[l])?e[e.length-1]-t[t.length-1]:0}a(EN,"compareIndexes");function CN(e,t,r=!1){let{routesMeta:o}=e,l={},u="/",c=[];for(let d=0;d<o.length;++d){let p=o[d],h=d===o.length-1,m=u==="/"?t:t.slice(u.length)||"/",y=pc({path:p.relativePath,caseSensitive:p.caseSensitive,end:h},m),b=p.route;if(!y&&h&&r&&!o[o.length-1].route.index&&(y=pc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},m)),!y)return null;Object.assign(l,y.params),c.push({params:l,pathname:Br([u,y.pathname]),pathnameBase:_N(Br([u,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(u=Br([u,y.pathnameBase]))}return c}a(CN,"matchRouteBranch");function pc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=TN(e.path,e.caseSensitive,e.end),l=t.match(r);if(!l)return null;let u=l[0],c=u.replace(/(.)\/+$/,"$1"),d=l.slice(1);return{params:o.reduce((h,{paramName:m,isOptional:y},b)=>{if(m==="*"){let E=d[b]||"";c=u.slice(0,u.length-E.length).replace(/(.)\/+$/,"$1")}const x=d[b];return y&&!x?h[m]=void 0:h[m]=(x||"").replace(/%2F/g,"/"),h},{}),pathname:u,pathnameBase:c,pattern:e}}a(pc,"matchPath");function TN(e,t=!1,r=!0){Kn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,p)=>(o.push({paramName:d,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(o.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),o]}a(TN,"compilePath");function RN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Kn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}a(RN,"decodePath");function qr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}a(qr,"stripBasename");function ON(e,t="/"){let{pathname:r,search:o="",hash:l=""}=typeof e=="string"?Ra(e):e;return{pathname:r?r.startsWith("/")?r:AN(r,t):t,search:kN(o),hash:DN(l)}}a(ON,"resolvePath");function AN(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}a(AN,"resolvePathname");function Hp(e,t,r,o){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}a(Hp,"getInvalidPathError");function MN(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}a(MN,"getPathContributingMatches");function kw(e){let t=MN(e);return t.map((r,o)=>o===t.length-1?r.pathname:r.pathnameBase)}a(kw,"getResolveToMatches");function Dw(e,t,r,o=!1){let l;typeof e=="string"?l=Ra(e):(l={...e},pt(!l.pathname||!l.pathname.includes("?"),Hp("?","pathname","search",l)),pt(!l.pathname||!l.pathname.includes("#"),Hp("#","pathname","hash",l)),pt(!l.search||!l.search.includes("#"),Hp("#","search","hash",l)));let u=e===""||l.pathname==="",c=u?"/":l.pathname,d;if(c==null)d=r;else{let y=t.length-1;if(!o&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),y-=1;l.pathname=b.join("/")}d=y>=0?t[y]:"/"}let p=ON(l,d),h=c&&c!=="/"&&c.endsWith("/"),m=(u||c===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(h||m)&&(p.pathname+="/"),p}a(Dw,"resolveTo");var Br=a(e=>e.join("/").replace(/\/\/+/g,"/"),"joinPaths"),_N=a(e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),"normalizePathname"),kN=a(e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,"normalizeSearch"),DN=a(e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,"normalizeHash");function NN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}a(NN,"isRouteErrorResponse");var Nw=["POST","PUT","PATCH","DELETE"];new Set(Nw);var PN=["GET",...Nw];new Set(PN);var Oa=S.createContext(null);Oa.displayName="DataRouter";var Bc=S.createContext(null);Bc.displayName="DataRouterState";S.createContext(!1);var Pw=S.createContext({isTransitioning:!1});Pw.displayName="ViewTransition";var LN=S.createContext(new Map);LN.displayName="Fetchers";var zN=S.createContext(null);zN.displayName="Await";var vr=S.createContext(null);vr.displayName="Navigation";var cs=S.createContext(null);cs.displayName="Location";var br=S.createContext({outlet:null,matches:[],isDataRoute:!1});br.displayName="Route";var Um=S.createContext(null);Um.displayName="RouteError";function IN(e,{relative:t}={}){pt(fs(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=S.useContext(vr),{hash:l,pathname:u,search:c}=ds(e,{relative:t}),d=u;return r!=="/"&&(d=u==="/"?r:Br([r,u])),o.createHref({pathname:d,search:c,hash:l})}a(IN,"useHref");function fs(){return S.useContext(cs)!=null}a(fs,"useInRouterContext");function Ci(){return pt(fs(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(cs).location}a(Ci,"useLocation");var Lw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function zw(e){S.useContext(vr).static||S.useLayoutEffect(e)}a(zw,"useIsomorphicLayoutEffect$1");function Iw(){let{isDataRoute:e}=S.useContext(br);return e?XN():jN()}a(Iw,"useNavigate");function jN(){pt(fs(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Oa),{basename:t,navigator:r}=S.useContext(vr),{matches:o}=S.useContext(br),{pathname:l}=Ci(),u=JSON.stringify(kw(o)),c=S.useRef(!1);return zw(()=>{c.current=!0}),S.useCallback((p,h={})=>{if(Kn(c.current,Lw),!c.current)return;if(typeof p=="number"){r.go(p);return}let m=Dw(p,JSON.parse(u),l,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Br([t,m.pathname])),(h.replace?r.replace:r.push)(m,h.state,h)},[t,r,u,l,e])}a(jN,"useNavigateUnstable");S.createContext(null);function OU(){let{matches:e}=S.useContext(br),t=e[e.length-1];return t?t.params:{}}a(OU,"useParams");function ds(e,{relative:t}={}){let{matches:r}=S.useContext(br),{pathname:o}=Ci(),l=JSON.stringify(kw(r));return S.useMemo(()=>Dw(e,JSON.parse(l),o,t==="path"),[e,l,o,t])}a(ds,"useResolvedPath");function UN(e,t){return jw(e,t)}a(UN,"useRoutes");function jw(e,t,r,o,l){pt(fs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=S.useContext(vr),{matches:c}=S.useContext(br),d=c[c.length-1],p=d?d.params:{},h=d?d.pathname:"/",m=d?d.pathnameBase:"/",y=d&&d.route;{let A=y&&y.path||"";Uw(h,!y||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
467
+ */var m1="popstate";function cN(e={}){function t(o,l){let{pathname:u,search:c,hash:d}=o.location;return Lp("",{pathname:u,search:c,hash:d},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}a(t,"createBrowserLocation");function r(o,l){return typeof l=="string"?l:es(l)}return a(r,"createBrowserHref"),dN(t,r,null,e)}a(cN,"createBrowserHistory");function ht(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}a(ht,"invariant");function Kn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}a(Kn,"warning");function fN(){return Math.random().toString(36).substring(2,10)}a(fN,"createKey");function g1(e,t){return{usr:e.state,key:e.key,idx:t}}a(g1,"getHistoryState");function Lp(e,t,r=null,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ra(t):t,state:r,key:t&&t.key||o||fN()}}a(Lp,"createLocation");function es({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}a(es,"createPath");function Ra(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let o=e.indexOf("?");o>=0&&(t.search=e.substring(o),e=e.substring(0,o)),e&&(t.pathname=e)}return t}a(Ra,"parsePath");function dN(e,t,r,o={}){let{window:l=document.defaultView,v5Compat:u=!1}=o,c=l.history,d="POP",h=null,p=m();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function m(){return(c.state||{idx:null}).idx}a(m,"getIndex");function y(){d="POP";let R=m(),C=R==null?null:R-p;p=R,h&&h({action:d,location:w.location,delta:C})}a(y,"handlePop");function b(R,C){d="PUSH";let A=Lp(w.location,R,C);p=m()+1;let k=g1(A,p),z=w.createHref(A);try{c.pushState(k,"",z)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;l.location.assign(z)}u&&h&&h({action:d,location:w.location,delta:1})}a(b,"push");function x(R,C){d="REPLACE";let A=Lp(w.location,R,C);p=m();let k=g1(A,p),z=w.createHref(A);c.replaceState(k,"",z),u&&h&&h({action:d,location:w.location,delta:0})}a(x,"replace2");function E(R){return hN(R)}a(E,"createURL");let w={get action(){return d},get location(){return e(l,c)},listen(R){if(h)throw new Error("A history only accepts one active listener");return l.addEventListener(m1,y),h=R,()=>{l.removeEventListener(m1,y),h=null}},createHref(R){return t(l,R)},createURL:E,encodeLocation(R){let C=E(R);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:b,replace:x,go(R){return c.go(R)}};return w}a(dN,"getUrlBasedHistory");function hN(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),ht(r,"No window.location.(origin|href) available to create URL");let o=typeof e=="string"?e:es(e);return o=o.replace(/ $/,"%20"),!t&&o.startsWith("//")&&(o=r+o),new URL(o,r)}a(hN,"createBrowserURLImpl");function Aw(e,t,r="/"){return pN(e,t,r,!1)}a(Aw,"matchRoutes");function pN(e,t,r,o){let l=typeof t=="string"?Ra(t):t,u=qr(l.pathname||"/",r);if(u==null)return null;let c=Mw(e);mN(c);let d=null;for(let h=0;d==null&&h<c.length;++h){let p=RN(u);d=CN(c[h],p,o)}return d}a(pN,"matchRoutesImpl");function Mw(e,t=[],r=[],o="",l=!1){let u=a((c,d,h=l,p)=>{let m={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(o)&&h)return;ht(m.relativePath.startsWith(o),`Absolute route path "${m.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(o.length)}let y=Br([o,m.relativePath]),b=r.concat(m);c.children&&c.children.length>0&&(ht(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Mw(c.children,t,b,y,h)),!(c.path==null&&!c.index)&&t.push({path:y,score:wN(y,c.index),routesMeta:b})},"flattenRoute");return e.forEach((c,d)=>{if(c.path===""||!c.path?.includes("?"))u(c,d);else for(let h of _w(c.path))u(c,d,!0,h)}),t}a(Mw,"flattenRoutes");function _w(e){let t=e.split("/");if(t.length===0)return[];let[r,...o]=t,l=r.endsWith("?"),u=r.replace(/\?$/,"");if(o.length===0)return l?[u,""]:[u];let c=_w(o.join("/")),d=[];return d.push(...c.map(h=>h===""?u:[u,h].join("/"))),l&&d.push(...c),d.map(h=>e.startsWith("/")&&h===""?"/":h)}a(_w,"explodeOptionalSegments");function mN(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:EN(t.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}a(mN,"rankRouteBranches");var gN=/^:[\w-]+$/,yN=3,vN=2,bN=1,SN=10,xN=-2,y1=a(e=>e==="*","isSplat");function wN(e,t){let r=e.split("/"),o=r.length;return r.some(y1)&&(o+=xN),t&&(o+=vN),r.filter(l=>!y1(l)).reduce((l,u)=>l+(gN.test(u)?yN:u===""?bN:SN),o)}a(wN,"computeScore");function EN(e,t){return e.length===t.length&&e.slice(0,-1).every((o,l)=>o===t[l])?e[e.length-1]-t[t.length-1]:0}a(EN,"compareIndexes");function CN(e,t,r=!1){let{routesMeta:o}=e,l={},u="/",c=[];for(let d=0;d<o.length;++d){let h=o[d],p=d===o.length-1,m=u==="/"?t:t.slice(u.length)||"/",y=hc({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},m),b=h.route;if(!y&&p&&r&&!o[o.length-1].route.index&&(y=hc({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},m)),!y)return null;Object.assign(l,y.params),c.push({params:l,pathname:Br([u,y.pathname]),pathnameBase:_N(Br([u,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(u=Br([u,y.pathnameBase]))}return c}a(CN,"matchRouteBranch");function hc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=TN(e.path,e.caseSensitive,e.end),l=t.match(r);if(!l)return null;let u=l[0],c=u.replace(/(.)\/+$/,"$1"),d=l.slice(1);return{params:o.reduce((p,{paramName:m,isOptional:y},b)=>{if(m==="*"){let E=d[b]||"";c=u.slice(0,u.length-E.length).replace(/(.)\/+$/,"$1")}const x=d[b];return y&&!x?p[m]=void 0:p[m]=(x||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:c,pattern:e}}a(hc,"matchPath");function TN(e,t=!1,r=!0){Kn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,h)=>(o.push({paramName:d,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(o.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),o]}a(TN,"compilePath");function RN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Kn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}a(RN,"decodePath");function qr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}a(qr,"stripBasename");function ON(e,t="/"){let{pathname:r,search:o="",hash:l=""}=typeof e=="string"?Ra(e):e;return{pathname:r?r.startsWith("/")?r:AN(r,t):t,search:kN(o),hash:DN(l)}}a(ON,"resolvePath");function AN(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}a(AN,"resolvePathname");function Hh(e,t,r,o){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}a(Hh,"getInvalidPathError");function MN(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}a(MN,"getPathContributingMatches");function kw(e){let t=MN(e);return t.map((r,o)=>o===t.length-1?r.pathname:r.pathnameBase)}a(kw,"getResolveToMatches");function Dw(e,t,r,o=!1){let l;typeof e=="string"?l=Ra(e):(l={...e},ht(!l.pathname||!l.pathname.includes("?"),Hh("?","pathname","search",l)),ht(!l.pathname||!l.pathname.includes("#"),Hh("#","pathname","hash",l)),ht(!l.search||!l.search.includes("#"),Hh("#","search","hash",l)));let u=e===""||l.pathname==="",c=u?"/":l.pathname,d;if(c==null)d=r;else{let y=t.length-1;if(!o&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),y-=1;l.pathname=b.join("/")}d=y>=0?t[y]:"/"}let h=ON(l,d),p=c&&c!=="/"&&c.endsWith("/"),m=(u||c===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(p||m)&&(h.pathname+="/"),h}a(Dw,"resolveTo");var Br=a(e=>e.join("/").replace(/\/\/+/g,"/"),"joinPaths"),_N=a(e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),"normalizePathname"),kN=a(e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,"normalizeSearch"),DN=a(e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,"normalizeHash");function NN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}a(NN,"isRouteErrorResponse");var Nw=["POST","PUT","PATCH","DELETE"];new Set(Nw);var PN=["GET",...Nw];new Set(PN);var Oa=S.createContext(null);Oa.displayName="DataRouter";var Bc=S.createContext(null);Bc.displayName="DataRouterState";S.createContext(!1);var Pw=S.createContext({isTransitioning:!1});Pw.displayName="ViewTransition";var LN=S.createContext(new Map);LN.displayName="Fetchers";var zN=S.createContext(null);zN.displayName="Await";var vr=S.createContext(null);vr.displayName="Navigation";var cs=S.createContext(null);cs.displayName="Location";var br=S.createContext({outlet:null,matches:[],isDataRoute:!1});br.displayName="Route";var Um=S.createContext(null);Um.displayName="RouteError";function IN(e,{relative:t}={}){ht(fs(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=S.useContext(vr),{hash:l,pathname:u,search:c}=ds(e,{relative:t}),d=u;return r!=="/"&&(d=u==="/"?r:Br([r,u])),o.createHref({pathname:d,search:c,hash:l})}a(IN,"useHref");function fs(){return S.useContext(cs)!=null}a(fs,"useInRouterContext");function Ci(){return ht(fs(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(cs).location}a(Ci,"useLocation");var Lw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function zw(e){S.useContext(vr).static||S.useLayoutEffect(e)}a(zw,"useIsomorphicLayoutEffect$1");function Iw(){let{isDataRoute:e}=S.useContext(br);return e?XN():jN()}a(Iw,"useNavigate");function jN(){ht(fs(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Oa),{basename:t,navigator:r}=S.useContext(vr),{matches:o}=S.useContext(br),{pathname:l}=Ci(),u=JSON.stringify(kw(o)),c=S.useRef(!1);return zw(()=>{c.current=!0}),S.useCallback((h,p={})=>{if(Kn(c.current,Lw),!c.current)return;if(typeof h=="number"){r.go(h);return}let m=Dw(h,JSON.parse(u),l,p.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Br([t,m.pathname])),(p.replace?r.replace:r.push)(m,p.state,p)},[t,r,u,l,e])}a(jN,"useNavigateUnstable");S.createContext(null);function OU(){let{matches:e}=S.useContext(br),t=e[e.length-1];return t?t.params:{}}a(OU,"useParams");function ds(e,{relative:t}={}){let{matches:r}=S.useContext(br),{pathname:o}=Ci(),l=JSON.stringify(kw(r));return S.useMemo(()=>Dw(e,JSON.parse(l),o,t==="path"),[e,l,o,t])}a(ds,"useResolvedPath");function UN(e,t){return jw(e,t)}a(UN,"useRoutes");function jw(e,t,r,o,l){ht(fs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=S.useContext(vr),{matches:c}=S.useContext(br),d=c[c.length-1],h=d?d.params:{},p=d?d.pathname:"/",m=d?d.pathnameBase:"/",y=d&&d.route;{let A=y&&y.path||"";Uw(p,!y||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
468
468
 
469
- Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let b=Ci(),x;if(t){let A=typeof t=="string"?Ra(t):t;pt(m==="/"||A.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${A.pathname}" was given in the \`location\` prop.`),x=A}else x=b;let E=x.pathname||"/",w=E;if(m!=="/"){let A=m.replace(/^\//,"").split("/");w="/"+E.replace(/^\//,"").split("/").slice(A.length).join("/")}let R=Aw(e,{pathname:w});Kn(y||R!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Kn(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=VN(R&&R.map(A=>Object.assign({},A,{params:Object.assign({},p,A.params),pathname:Br([m,u.encodeLocation?u.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?m:Br([m,u.encodeLocation?u.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),c,r,o,l);return t&&C?S.createElement(cs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},C):C}a(jw,"useRoutesImpl");function BN(){let e=QN(),t=NN(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:o},u={padding:"2px 4px",backgroundColor:o},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:u},"ErrorBoundary")," or"," ",S.createElement("code",{style:u},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),r?S.createElement("pre",{style:l},r):null,c)}a(BN,"DefaultErrorComponent");var HN=S.createElement(BN,null),FN=class extends S.Component{static{a(this,"RenderErrorBoundary")}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?S.createElement(br.Provider,{value:this.props.routeContext},S.createElement(Um.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function qN({routeContext:e,match:t,children:r}){let o=S.useContext(Oa);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(br.Provider,{value:e},r)}a(qN,"RenderedRoute");function VN(e,t=[],r=null,o=null,l=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let u=e,c=r?.errors;if(c!=null){let h=u.findIndex(m=>m.route.id&&c?.[m.route.id]!==void 0);pt(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),u=u.slice(0,Math.min(u.length,h+1))}let d=!1,p=-1;if(r)for(let h=0;h<u.length;h++){let m=u[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(p=h),m.route.id){let{loaderData:y,errors:b}=r,x=m.route.loader&&!y.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||x){d=!0,p>=0?u=u.slice(0,p+1):u=[u[0]];break}}}return u.reduceRight((h,m,y)=>{let b,x=!1,E=null,w=null;r&&(b=c&&m.route.id?c[m.route.id]:void 0,E=m.route.errorElement||HN,d&&(p<0&&y===0?(Uw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,w=null):p===y&&(x=!0,w=m.route.hydrateFallbackElement||null)));let R=t.concat(u.slice(0,y+1)),C=a(()=>{let A;return b?A=E:x?A=w:m.route.Component?A=S.createElement(m.route.Component,null):m.route.element?A=m.route.element:A=h,S.createElement(qN,{match:m,routeContext:{outlet:h,matches:R,isDataRoute:r!=null},children:A})},"getChildren");return r&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?S.createElement(FN,{location:r.location,revalidation:r.revalidation,component:E,error:b,children:C(),routeContext:{outlet:null,matches:R,isDataRoute:!0},unstable_onError:o}):C()},null)}a(VN,"_renderMatches");function Bm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}a(Bm,"getDataRouterConsoleError");function GN(e){let t=S.useContext(Oa);return pt(t,Bm(e)),t}a(GN,"useDataRouterContext");function $N(e){let t=S.useContext(Bc);return pt(t,Bm(e)),t}a($N,"useDataRouterState");function YN(e){let t=S.useContext(br);return pt(t,Bm(e)),t}a(YN,"useRouteContext");function Hm(e){let t=YN(e),r=t.matches[t.matches.length-1];return pt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}a(Hm,"useCurrentRouteId");function KN(){return Hm("useRouteId")}a(KN,"useRouteId");function QN(){let e=S.useContext(Um),t=$N("useRouteError"),r=Hm("useRouteError");return e!==void 0?e:t.errors?.[r]}a(QN,"useRouteError");function XN(){let{router:e}=GN("useNavigate"),t=Hm("useNavigate"),r=S.useRef(!1);return zw(()=>{r.current=!0}),S.useCallback(async(l,u={})=>{Kn(r.current,Lw),r.current&&(typeof l=="number"?e.navigate(l):await e.navigate(l,{fromRouteId:t,...u}))},[e,t])}a(XN,"useNavigateStable");var v1={};function Uw(e,t,r){!t&&!v1[e]&&(v1[e]=!0,Kn(!1,r))}a(Uw,"warningOnce");S.memo(WN);function WN({routes:e,future:t,state:r,unstable_onError:o}){return jw(e,void 0,r,o,t)}a(WN,"DataRoutes");function ZN(e){pt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}a(ZN,"Route");function JN({basename:e="/",children:t=null,location:r,navigationType:o="POP",navigator:l,static:u=!1}){pt(!fs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),d=S.useMemo(()=>({basename:c,navigator:l,static:u,future:{}}),[c,l,u]);typeof r=="string"&&(r=Ra(r));let{pathname:p="/",search:h="",hash:m="",state:y=null,key:b="default"}=r,x=S.useMemo(()=>{let E=qr(p,c);return E==null?null:{location:{pathname:E,search:h,hash:m,state:y,key:b},navigationType:o}},[c,p,h,m,y,b,o]);return Kn(x!=null,`<Router basename="${c}"> is not able to match the URL "${p}${h}${m}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:S.createElement(vr.Provider,{value:d},S.createElement(cs.Provider,{children:t,value:x}))}a(JN,"Router");function AU({children:e,location:t}){return UN(zh(e),t)}a(AU,"Routes");function zh(e,t=[]){let r=[];return S.Children.forEach(e,(o,l)=>{if(!S.isValidElement(o))return;let u=[...t,l];if(o.type===S.Fragment){r.push.apply(r,zh(o.props.children,u));return}pt(o.type===ZN,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),pt(!o.props.index||!o.props.children,"An index route cannot have child routes.");let c={id:o.props.id||u.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(c.children=zh(o.props.children,u)),r.push(c)}),r}a(zh,"createRoutesFromChildren");var ec="get",tc="application/x-www-form-urlencoded";function Hc(e){return e!=null&&typeof e.tagName=="string"}a(Hc,"isHtmlElement");function eP(e){return Hc(e)&&e.tagName.toLowerCase()==="button"}a(eP,"isButtonElement");function tP(e){return Hc(e)&&e.tagName.toLowerCase()==="form"}a(tP,"isFormElement");function nP(e){return Hc(e)&&e.tagName.toLowerCase()==="input"}a(nP,"isInputElement");function rP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}a(rP,"isModifiedEvent");function iP(e,t){return e.button===0&&(!t||t==="_self")&&!rP(e)}a(iP,"shouldProcessLinkClick");function Ih(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let o=e[r];return t.concat(Array.isArray(o)?o.map(l=>[r,l]):[[r,o]])},[]))}a(Ih,"createSearchParams");function oP(e,t){let r=Ih(e);return t&&t.forEach((o,l)=>{r.has(l)||t.getAll(l).forEach(u=>{r.append(l,u)})}),r}a(oP,"getSearchParamsForLocation");var Vu=null;function aP(){if(Vu===null)try{new FormData(document.createElement("form"),0),Vu=!1}catch{Vu=!0}return Vu}a(aP,"isFormDataSubmitterSupported");var lP=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Fp(e){return e!=null&&!lP.has(e)?(Kn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${tc}"`),null):e}a(Fp,"getFormEncType");function sP(e,t){let r,o,l,u,c;if(tP(e)){let d=e.getAttribute("action");o=d?qr(d,t):null,r=e.getAttribute("method")||ec,l=Fp(e.getAttribute("enctype"))||tc,u=new FormData(e)}else if(eP(e)||nP(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=e.getAttribute("formaction")||d.getAttribute("action");if(o=p?qr(p,t):null,r=e.getAttribute("formmethod")||d.getAttribute("method")||ec,l=Fp(e.getAttribute("formenctype"))||Fp(d.getAttribute("enctype"))||tc,u=new FormData(d,e),!aP()){let{name:h,type:m,value:y}=e;if(m==="image"){let b=h?`${h}.`:"";u.append(`${b}x`,"0"),u.append(`${b}y`,"0")}else h&&u.append(h,y)}}else{if(Hc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ec,o=null,l=tc,c=e}return u&&l==="text/plain"&&(c=u,u=void 0),{action:o,method:r.toLowerCase(),encType:l,formData:u,body:c}}a(sP,"getFormSubmissionInfo");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Fm(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}a(Fm,"invariant2");function uP(e,t,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return o.pathname==="/"?o.pathname=`_root.${r}`:t&&qr(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}a(uP,"singleFetchUrl");async function cP(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}a(cP,"loadRouteModule");function fP(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}a(fP,"isHtmlLinkDescriptor");async function dP(e,t,r){let o=await Promise.all(e.map(async l=>{let u=t.routes[l.route.id];if(u){let c=await cP(u,r);return c.links?c.links():[]}return[]}));return gP(o.flat(1).filter(fP).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}a(dP,"getKeyedPrefetchLinks");function b1(e,t,r,o,l,u){let c=a((p,h)=>r[h]?p.route.id!==r[h].route.id:!0,"isNew"),d=a((p,h)=>r[h].pathname!==p.pathname||r[h].route.path?.endsWith("*")&&r[h].params["*"]!==p.params["*"],"matchPathChanged");return u==="assets"?t.filter((p,h)=>c(p,h)||d(p,h)):u==="data"?t.filter((p,h)=>{let m=o.routes[p.route.id];if(!m||!m.hasLoader)return!1;if(c(p,h)||d(p,h))return!0;if(p.route.shouldRevalidate){let y=p.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}a(b1,"getNewMatchesForLinks");function pP(e,t,{includeHydrateFallback:r}={}){return hP(e.map(o=>{let l=t.routes[o.route.id];if(!l)return[];let u=[l.module];return l.clientActionModule&&(u=u.concat(l.clientActionModule)),l.clientLoaderModule&&(u=u.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(u=u.concat(l.hydrateFallbackModule)),l.imports&&(u=u.concat(l.imports)),u}).flat(1))}a(pP,"getModuleLinkHrefs");function hP(e){return[...new Set(e)]}a(hP,"dedupeHrefs");function mP(e){let t={},r=Object.keys(e).sort();for(let o of r)t[o]=e[o];return t}a(mP,"sortKeys");function gP(e,t){let r=new Set;return new Set(t),e.reduce((o,l)=>{let u=JSON.stringify(mP(l));return r.has(u)||(r.add(u),o.push({key:u,link:l})),o},[])}a(gP,"dedupeLinkDescriptors");function Bw(){let e=S.useContext(Oa);return Fm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}a(Bw,"useDataRouterContext2");function yP(){let e=S.useContext(Bc);return Fm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}a(yP,"useDataRouterStateContext");var qm=S.createContext(void 0);qm.displayName="FrameworkContext";function Hw(){let e=S.useContext(qm);return Fm(e,"You must render this element inside a <HydratedRouter> element"),e}a(Hw,"useFrameworkContext");function vP(e,t){let r=S.useContext(qm),[o,l]=S.useState(!1),[u,c]=S.useState(!1),{onFocus:d,onBlur:p,onMouseEnter:h,onMouseLeave:m,onTouchStart:y}=t,b=S.useRef(null);S.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let w=a(C=>{C.forEach(A=>{c(A.isIntersecting)})},"callback"),R=new IntersectionObserver(w,{threshold:.5});return b.current&&R.observe(b.current),()=>{R.disconnect()}}},[e]),S.useEffect(()=>{if(o){let w=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(w)}}},[o]);let x=a(()=>{l(!0)},"setIntent"),E=a(()=>{l(!1),c(!1)},"cancelIntent");return r?e!=="intent"?[u,b,{}]:[u,b,{onFocus:kl(d,x),onBlur:kl(p,E),onMouseEnter:kl(h,x),onMouseLeave:kl(m,E),onTouchStart:kl(y,x)}]:[!1,b,{}]}a(vP,"usePrefetchBehavior");function kl(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}a(kl,"composeEventHandlers");function bP({page:e,...t}){let{router:r}=Bw(),o=S.useMemo(()=>Aw(r.routes,e,r.basename),[r.routes,e,r.basename]);return o?S.createElement(xP,{page:e,matches:o,...t}):null}a(bP,"PrefetchPageLinks");function SP(e){let{manifest:t,routeModules:r}=Hw(),[o,l]=S.useState([]);return S.useEffect(()=>{let u=!1;return dP(e,t,r).then(c=>{u||l(c)}),()=>{u=!0}},[e,t,r]),o}a(SP,"useKeyedPrefetchLinks");function xP({page:e,matches:t,...r}){let o=Ci(),{manifest:l,routeModules:u}=Hw(),{basename:c}=Bw(),{loaderData:d,matches:p}=yP(),h=S.useMemo(()=>b1(e,t,p,l,o,"data"),[e,t,p,l,o]),m=S.useMemo(()=>b1(e,t,p,l,o,"assets"),[e,t,p,l,o]),y=S.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let E=new Set,w=!1;if(t.forEach(C=>{let A=l.routes[C.route.id];!A||!A.hasLoader||(!h.some(k=>k.route.id===C.route.id)&&C.route.id in d&&u[C.route.id]?.shouldRevalidate||A.hasClientLoader?w=!0:E.add(C.route.id))}),E.size===0)return[];let R=uP(e,c,"data");return w&&E.size>0&&R.searchParams.set("_routes",t.filter(C=>E.has(C.route.id)).map(C=>C.route.id).join(",")),[R.pathname+R.search]},[c,d,o,l,h,t,e,u]),b=S.useMemo(()=>pP(m,l),[m,l]),x=SP(m);return S.createElement(S.Fragment,null,y.map(E=>S.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),b.map(E=>S.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),x.map(({key:E,link:w})=>S.createElement("link",{key:E,nonce:r.nonce,...w})))}a(xP,"PrefetchPageLinksImpl");function wP(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}a(wP,"mergeRefs");var Fw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Fw&&(window.__reactRouterVersion="7.9.2")}catch{}function MU({basename:e,children:t,window:r}){let o=S.useRef();o.current==null&&(o.current=cN({window:r,v5Compat:!0}));let l=o.current,[u,c]=S.useState({action:l.action,location:l.location}),d=S.useCallback(p=>{S.startTransition(()=>c(p))},[c]);return S.useLayoutEffect(()=>l.listen(d),[l,d]),S.createElement(JN,{basename:e,children:t,location:u.location,navigationType:u.action,navigator:l})}a(MU,"BrowserRouter");var qw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vw=S.forwardRef(a(function({onClick:t,discover:r="render",prefetch:o="none",relative:l,reloadDocument:u,replace:c,state:d,target:p,to:h,preventScrollReset:m,viewTransition:y,...b},x){let{basename:E}=S.useContext(vr),w=typeof h=="string"&&qw.test(h),R,C=!1;if(typeof h=="string"&&w&&(R=h,Fw))try{let W=new URL(window.location.href),J=h.startsWith("//")?new URL(W.protocol+h):new URL(h),X=qr(J.pathname,E);J.origin===W.origin&&X!=null?h=X+J.search+J.hash:C=!0}catch{Kn(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let A=IN(h,{relative:l}),[k,z,L]=vP(o,b),N=RP(h,{replace:c,state:d,target:p,preventScrollReset:m,relative:l,viewTransition:y});function j(W){t&&t(W),W.defaultPrevented||N(W)}a(j,"handleClick");let $=S.createElement("a",{...b,...L,href:R||A,onClick:C||u?t:j,ref:wP(x,z),target:p,"data-discover":!w&&r==="render"?"true":void 0});return k&&!w?S.createElement(S.Fragment,null,$,S.createElement(bP,{page:A})):$},"LinkWithRef"));Vw.displayName="Link";var EP=S.forwardRef(a(function({"aria-current":t="page",caseSensitive:r=!1,className:o="",end:l=!1,style:u,to:c,viewTransition:d,children:p,...h},m){let y=ds(c,{relative:h.relative}),b=Ci(),x=S.useContext(Bc),{navigator:E,basename:w}=S.useContext(vr),R=x!=null&&kP(y)&&d===!0,C=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,A=b.pathname,k=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(A=A.toLowerCase(),k=k?k.toLowerCase():null,C=C.toLowerCase()),k&&w&&(k=qr(k,w)||k);const z=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let L=A===C||!l&&A.startsWith(C)&&A.charAt(z)==="/",N=k!=null&&(k===C||!l&&k.startsWith(C)&&k.charAt(C.length)==="/"),j={isActive:L,isPending:N,isTransitioning:R},$=L?t:void 0,W;typeof o=="function"?W=o(j):W=[o,L?"active":null,N?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let J=typeof u=="function"?u(j):u;return S.createElement(Vw,{...h,"aria-current":$,className:W,ref:m,style:J,to:c,viewTransition:d},typeof p=="function"?p(j):p)},"NavLinkWithRef"));EP.displayName="NavLink";var CP=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:o,replace:l,state:u,method:c=ec,action:d,onSubmit:p,relative:h,preventScrollReset:m,viewTransition:y,...b},x)=>{let E=MP(),w=_P(d,{relative:h}),R=c.toLowerCase()==="get"?"get":"post",C=typeof d=="string"&&qw.test(d),A=a(k=>{if(p&&p(k),k.defaultPrevented)return;k.preventDefault();let z=k.nativeEvent.submitter,L=z?.getAttribute("formmethod")||c;E(z||k.currentTarget,{fetcherKey:t,method:L,navigate:r,replace:l,state:u,relative:h,preventScrollReset:m,viewTransition:y})},"submitHandler");return S.createElement("form",{ref:x,method:R,action:w,onSubmit:o?p:A,...b,"data-discover":!C&&e==="render"?"true":void 0})});CP.displayName="Form";function TP(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}a(TP,"getDataRouterConsoleError2");function Gw(e){let t=S.useContext(Oa);return pt(t,TP(e)),t}a(Gw,"useDataRouterContext3");function RP(e,{target:t,replace:r,state:o,preventScrollReset:l,relative:u,viewTransition:c}={}){let d=Iw(),p=Ci(),h=ds(e,{relative:u});return S.useCallback(m=>{if(iP(m,t)){m.preventDefault();let y=r!==void 0?r:es(p)===es(h);d(e,{replace:y,state:o,preventScrollReset:l,relative:u,viewTransition:c})}},[p,d,h,r,o,t,e,l,u,c])}a(RP,"useLinkClickHandler");function _U(e){Kn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=S.useRef(Ih(e)),r=S.useRef(!1),o=Ci(),l=S.useMemo(()=>oP(o.search,r.current?null:t.current),[o.search]),u=Iw(),c=S.useCallback((d,p)=>{const h=Ih(typeof d=="function"?d(new URLSearchParams(l)):d);r.current=!0,u("?"+h,p)},[u,l]);return[l,c]}a(_U,"useSearchParams");var OP=0,AP=a(()=>`__${String(++OP)}__`,"getUniqueFetcherId");function MP(){let{router:e}=Gw("useSubmit"),{basename:t}=S.useContext(vr),r=KN();return S.useCallback(async(o,l={})=>{let{action:u,method:c,encType:d,formData:p,body:h}=sP(o,t);if(l.navigate===!1){let m=l.fetcherKey||AP();await e.fetch(m,r,l.action||u,{preventScrollReset:l.preventScrollReset,formData:p,body:h,formMethod:l.method||c,formEncType:l.encType||d,flushSync:l.flushSync})}else await e.navigate(l.action||u,{preventScrollReset:l.preventScrollReset,formData:p,body:h,formMethod:l.method||c,formEncType:l.encType||d,replace:l.replace,state:l.state,fromRouteId:r,flushSync:l.flushSync,viewTransition:l.viewTransition})},[e,t,r])}a(MP,"useSubmit");function _P(e,{relative:t}={}){let{basename:r}=S.useContext(vr),o=S.useContext(br);pt(o,"useFormAction must be used inside a RouteContext");let[l]=o.matches.slice(-1),u={...ds(e||".",{relative:t})},c=Ci();if(e==null){u.search=c.search;let d=new URLSearchParams(u.search),p=d.getAll("index");if(p.some(m=>m==="")){d.delete("index"),p.filter(y=>y).forEach(y=>d.append("index",y));let m=d.toString();u.search=m?`?${m}`:""}}return(!e||e===".")&&l.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:Br([r,u.pathname])),es(u)}a(_P,"useFormAction");function kP(e,{relative:t}={}){let r=S.useContext(Pw);pt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Gw("useViewTransitionState"),l=ds(e,{relative:t});if(!r.isTransitioning)return!1;let u=qr(r.currentLocation.pathname,o)||r.currentLocation.pathname,c=qr(r.nextLocation.pathname,o)||r.nextLocation.pathname;return pc(l.pathname,c)!=null||pc(l.pathname,u)!=null}a(kP,"useViewTransitionState");var DP="Label",$w=S.forwardRef((e,t)=>D.jsx(Ee.label,{...e,ref:t,onMouseDown:a(r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())},"onMouseDown")}));$w.displayName=DP;var kU=$w;function Fc(e){const t=e+"CollectionProvider",[r,o]=$t(t),[l,u]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=a(w=>{const{scope:R,children:C}=w,A=_e.useRef(null),k=_e.useRef(new Map).current;return D.jsx(l,{scope:R,itemMap:k,collectionRef:A,children:C})},"CollectionProvider");c.displayName=t;const d=e+"CollectionSlot",p=Wi(d),h=_e.forwardRef((w,R)=>{const{scope:C,children:A}=w,k=u(d,C),z=ze(R,k.collectionRef);return D.jsx(p,{ref:z,children:A})});h.displayName=d;const m=e+"CollectionItemSlot",y="data-radix-collection-item",b=Wi(m),x=_e.forwardRef((w,R)=>{const{scope:C,children:A,...k}=w,z=_e.useRef(null),L=ze(R,z),N=u(m,C);return _e.useEffect(()=>(N.itemMap.set(z,{ref:z,...k}),()=>void N.itemMap.delete(z))),D.jsx(b,{[y]:"",ref:L,children:A})});x.displayName=m;function E(w){const R=u(e+"CollectionConsumer",w);return _e.useCallback(()=>{const A=R.collectionRef.current;if(!A)return[];const k=Array.from(A.querySelectorAll(`[${y}]`));return Array.from(R.itemMap.values()).sort((N,j)=>k.indexOf(N.ref.current)-k.indexOf(j.ref.current))},[R.collectionRef,R.itemMap])}return a(E,"useCollection"),[{Provider:c,Slot:h,ItemSlot:x},E,o]}a(Fc,"createCollection");var NP=S.createContext(void 0);function ps(e){const t=S.useContext(NP);return e||t||"ltr"}a(ps,"useDirection");var qp="rovingFocusGroup.onEntryFocus",PP={bubbles:!1,cancelable:!0},hs="RovingFocusGroup",[jh,Yw,LP]=Fc(hs),[zP,qc]=$t(hs,[LP]),[IP,jP]=zP(hs),Kw=S.forwardRef((e,t)=>D.jsx(jh.Provider,{scope:e.__scopeRovingFocusGroup,children:D.jsx(jh.Slot,{scope:e.__scopeRovingFocusGroup,children:D.jsx(UP,{...e,ref:t})})}));Kw.displayName=hs;var UP=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:l=!1,dir:u,currentTabStopId:c,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:p,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...y}=e,b=S.useRef(null),x=ze(t,b),E=ps(u),[w,R]=hr({prop:c,defaultProp:d??null,onChange:p,caller:hs}),[C,A]=S.useState(!1),k=vt(h),z=Yw(r),L=S.useRef(!1),[N,j]=S.useState(0);return S.useEffect(()=>{const $=b.current;if($)return $.addEventListener(qp,k),()=>$.removeEventListener(qp,k)},[k]),D.jsx(IP,{scope:r,orientation:o,dir:E,loop:l,currentTabStopId:w,onItemFocus:S.useCallback($=>R($),[R]),onItemShiftTab:S.useCallback(()=>A(!0),[]),onFocusableItemAdd:S.useCallback(()=>j($=>$+1),[]),onFocusableItemRemove:S.useCallback(()=>j($=>$-1),[]),children:D.jsx(Ee.div,{tabIndex:C||N===0?-1:0,"data-orientation":o,...y,ref:x,style:{outline:"none",...e.style},onMouseDown:ye(e.onMouseDown,()=>{L.current=!0}),onFocus:ye(e.onFocus,$=>{const W=!L.current;if($.target===$.currentTarget&&W&&!C){const J=new CustomEvent(qp,PP);if($.currentTarget.dispatchEvent(J),!J.defaultPrevented){const X=z().filter(I=>I.focusable),Z=X.find(I=>I.active),ce=X.find(I=>I.id===w),ae=[Z,ce,...X].filter(Boolean).map(I=>I.ref.current);Ww(ae,m)}}L.current=!1}),onBlur:ye(e.onBlur,()=>A(!1))})})}),Qw="RovingFocusGroupItem",Xw=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:l=!1,tabStopId:u,children:c,...d}=e,p=Ln(),h=u||p,m=jP(Qw,r),y=m.currentTabStopId===h,b=Yw(r),{onFocusableItemAdd:x,onFocusableItemRemove:E,currentTabStopId:w}=m;return S.useEffect(()=>{if(o)return x(),()=>E()},[o,x,E]),D.jsx(jh.ItemSlot,{scope:r,id:h,focusable:o,active:l,children:D.jsx(Ee.span,{tabIndex:y?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:ye(e.onMouseDown,R=>{o?m.onItemFocus(h):R.preventDefault()}),onFocus:ye(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:ye(e.onKeyDown,R=>{if(R.key==="Tab"&&R.shiftKey){m.onItemShiftTab();return}if(R.target!==R.currentTarget)return;const C=FP(R,m.orientation,m.dir);if(C!==void 0){if(R.metaKey||R.ctrlKey||R.altKey||R.shiftKey)return;R.preventDefault();let k=b().filter(z=>z.focusable).map(z=>z.ref.current);if(C==="last")k.reverse();else if(C==="prev"||C==="next"){C==="prev"&&k.reverse();const z=k.indexOf(R.currentTarget);k=m.loop?qP(k,z+1):k.slice(z+1)}setTimeout(()=>Ww(k))}}),children:typeof c=="function"?c({isCurrentTabStop:y,hasTabStop:w!=null}):c})})});Xw.displayName=Qw;var BP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function HP(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}a(HP,"getDirectionAwareKey");function FP(e,t,r){const o=HP(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return BP[o]}a(FP,"getFocusIntent");function Ww(e,t=!1){const r=document.activeElement;for(const o of e)if(o===r||(o.focus({preventScroll:t}),document.activeElement!==r))return}a(Ww,"focusFirst$2");function qP(e,t){return e.map((r,o)=>e[(t+o)%e.length])}a(qP,"wrapArray$2");var Zw=Kw,Jw=Xw,Vc="Tabs",[VP]=$t(Vc,[qc]),eE=qc(),[GP,Vm]=VP(Vc),tE=S.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,onValueChange:l,defaultValue:u,orientation:c="horizontal",dir:d,activationMode:p="automatic",...h}=e,m=ps(d),[y,b]=hr({prop:o,onChange:l,defaultProp:u??"",caller:Vc});return D.jsx(GP,{scope:r,baseId:Ln(),value:y,onValueChange:b,orientation:c,dir:m,activationMode:p,children:D.jsx(Ee.div,{dir:m,"data-orientation":c,...h,ref:t})})});tE.displayName=Vc;var nE="TabsList",rE=S.forwardRef((e,t)=>{const{__scopeTabs:r,loop:o=!0,...l}=e,u=Vm(nE,r),c=eE(r);return D.jsx(Zw,{asChild:!0,...c,orientation:u.orientation,dir:u.dir,loop:o,children:D.jsx(Ee.div,{role:"tablist","aria-orientation":u.orientation,...l,ref:t})})});rE.displayName=nE;var iE="TabsTrigger",oE=S.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,disabled:l=!1,...u}=e,c=Vm(iE,r),d=eE(r),p=sE(c.baseId,o),h=uE(c.baseId,o),m=o===c.value;return D.jsx(Jw,{asChild:!0,...d,focusable:!l,active:m,children:D.jsx(Ee.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":h,"data-state":m?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:p,...u,ref:t,onMouseDown:ye(e.onMouseDown,y=>{!l&&y.button===0&&y.ctrlKey===!1?c.onValueChange(o):y.preventDefault()}),onKeyDown:ye(e.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&c.onValueChange(o)}),onFocus:ye(e.onFocus,()=>{const y=c.activationMode!=="manual";!m&&!l&&y&&c.onValueChange(o)})})})});oE.displayName=iE;var aE="TabsContent",lE=S.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,forceMount:l,children:u,...c}=e,d=Vm(aE,r),p=sE(d.baseId,o),h=uE(d.baseId,o),m=o===d.value,y=S.useRef(m);return S.useEffect(()=>{const b=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(b)},[]),D.jsx(It,{present:l||m,children:a(({present:b})=>D.jsx(Ee.div,{"data-state":m?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":p,hidden:!b,id:h,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:y.current?"0s":void 0},children:b&&u}),"children")})});lE.displayName=aE;function sE(e,t){return`${e}-trigger-${t}`}a(sE,"makeTriggerId");function uE(e,t){return`${e}-content-${t}`}a(uE,"makeContentId");var DU=tE,NU=rE,PU=oE,LU=lE;function cE(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}a(cE,"usePrevious");var $P=[" ","Enter","ArrowUp","ArrowDown"],YP=[" ","Enter"],no="Select",[Gc,$c,KP]=Fc(no),[Aa]=$t(no,[KP,Ta]),Yc=Ta(),[QP,Ti]=Aa(no),[XP,WP]=Aa(no),fE=a(e=>{const{__scopeSelect:t,children:r,open:o,defaultOpen:l,onOpenChange:u,value:c,defaultValue:d,onValueChange:p,dir:h,name:m,autoComplete:y,disabled:b,required:x,form:E}=e,w=Yc(t),[R,C]=S.useState(null),[A,k]=S.useState(null),[z,L]=S.useState(!1),N=ps(h),[j,$]=hr({prop:o,defaultProp:l??!1,onChange:u,caller:no}),[W,J]=hr({prop:c,defaultProp:d,onChange:p,caller:no}),X=S.useRef(null),Z=R?E||!!R.closest("form"):!0,[ce,q]=S.useState(new Set),ae=Array.from(ce).map(I=>I.props.value).join(";");return D.jsx(Rm,{...w,children:D.jsxs(QP,{required:x,scope:t,trigger:R,onTriggerChange:C,valueNode:A,onValueNodeChange:k,valueNodeHasChildren:z,onValueNodeHasChildrenChange:L,contentId:Ln(),value:W,onValueChange:J,open:j,onOpenChange:$,dir:N,triggerPointerDownPosRef:X,disabled:b,children:[D.jsx(Gc.Provider,{scope:t,children:D.jsx(XP,{scope:e.__scopeSelect,onNativeOptionAdd:S.useCallback(I=>{q(Q=>new Set(Q).add(I))},[]),onNativeOptionRemove:S.useCallback(I=>{q(Q=>{const te=new Set(Q);return te.delete(I),te})},[]),children:r})}),Z?D.jsxs(zE,{"aria-hidden":!0,required:x,tabIndex:-1,name:m,autoComplete:y,value:W,onChange:a(I=>J(I.target.value),"onChange"),disabled:b,form:E,children:[W===void 0?D.jsx("option",{value:""}):null,Array.from(ce)]},ae):null]})})},"Select");fE.displayName=no;var dE="SelectTrigger",pE=S.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:o=!1,...l}=e,u=Yc(r),c=Ti(dE,r),d=c.disabled||o,p=ze(t,c.onTriggerChange),h=$c(r),m=S.useRef("touch"),[y,b,x]=jE(w=>{const R=h().filter(k=>!k.disabled),C=R.find(k=>k.value===c.value),A=UE(R,w,C);A!==void 0&&c.onValueChange(A.value)}),E=a(w=>{d||(c.onOpenChange(!0),x()),w&&(c.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})},"handleOpen");return D.jsx(Om,{asChild:!0,...u,children:D.jsx(Ee.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":IE(c.value)?"":void 0,...l,ref:p,onClick:ye(l.onClick,w=>{w.currentTarget.focus(),m.current!=="mouse"&&E(w)}),onPointerDown:ye(l.onPointerDown,w=>{m.current=w.pointerType;const R=w.target;R.hasPointerCapture(w.pointerId)&&R.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(E(w),w.preventDefault())}),onKeyDown:ye(l.onKeyDown,w=>{const R=y.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&b(w.key),!(R&&w.key===" ")&&$P.includes(w.key)&&(E(),w.preventDefault())})})})});pE.displayName=dE;var hE="SelectValue",mE=S.forwardRef((e,t)=>{const{__scopeSelect:r,className:o,style:l,children:u,placeholder:c="",...d}=e,p=Ti(hE,r),{onValueNodeHasChildrenChange:h}=p,m=u!==void 0,y=ze(t,p.onValueNodeChange);return bt(()=>{h(m)},[h,m]),D.jsx(Ee.span,{...d,ref:y,style:{pointerEvents:"none"},children:IE(p.value)?D.jsx(D.Fragment,{children:c}):u})});mE.displayName=hE;var ZP="SelectIcon",gE=S.forwardRef((e,t)=>{const{__scopeSelect:r,children:o,...l}=e;return D.jsx(Ee.span,{"aria-hidden":!0,...l,ref:t,children:o||"▼"})});gE.displayName=ZP;var JP="SelectPortal",yE=a(e=>D.jsx(wa,{asChild:!0,...e}),"SelectPortal");yE.displayName=JP;var ro="SelectContent",vE=S.forwardRef((e,t)=>{const r=Ti(ro,e.__scopeSelect),[o,l]=S.useState();if(bt(()=>{l(new DocumentFragment)},[]),!r.open){const u=o;return u?dr.createPortal(D.jsx(bE,{scope:e.__scopeSelect,children:D.jsx(Gc.Slot,{scope:e.__scopeSelect,children:D.jsx("div",{children:e.children})})}),u):null}return D.jsx(SE,{...e,ref:t})});vE.displayName=ro;var Fn=10,[bE,Ri]=Aa(ro),eL="SelectContentImpl",tL=Wi("SelectContent.RemoveScroll"),SE=S.forwardRef((e,t)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,side:d,sideOffset:p,align:h,alignOffset:m,arrowPadding:y,collisionBoundary:b,collisionPadding:x,sticky:E,hideWhenDetached:w,avoidCollisions:R,...C}=e,A=Ti(ro,r),[k,z]=S.useState(null),[L,N]=S.useState(null),j=ze(t,K=>z(K)),[$,W]=S.useState(null),[J,X]=S.useState(null),Z=$c(r),[ce,q]=S.useState(!1),ae=S.useRef(!1);S.useEffect(()=>{if(k)return hm(k)},[k]),pm();const I=S.useCallback(K=>{const[fe,...Ce]=Z().map(qe=>qe.ref.current),[Te]=Ce.slice(-1),Pe=document.activeElement;for(const qe of K)if(qe===Pe||(qe?.scrollIntoView({block:"nearest"}),qe===fe&&L&&(L.scrollTop=0),qe===Te&&L&&(L.scrollTop=L.scrollHeight),qe?.focus(),document.activeElement!==Pe))return},[Z,L]),Q=S.useCallback(()=>I([$,k]),[I,$,k]);S.useEffect(()=>{ce&&Q()},[ce,Q]);const{onOpenChange:te,triggerPointerDownPosRef:se}=A;S.useEffect(()=>{if(k){let K={x:0,y:0};const fe=a(Te=>{K={x:Math.abs(Math.round(Te.pageX)-(se.current?.x??0)),y:Math.abs(Math.round(Te.pageY)-(se.current?.y??0))}},"handlePointerMove"),Ce=a(Te=>{K.x<=10&&K.y<=10?Te.preventDefault():k.contains(Te.target)||te(!1),document.removeEventListener("pointermove",fe),se.current=null},"handlePointerUp");return se.current!==null&&(document.addEventListener("pointermove",fe),document.addEventListener("pointerup",Ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",fe),document.removeEventListener("pointerup",Ce,{capture:!0})}}},[k,te,se]),S.useEffect(()=>{const K=a(()=>te(!1),"close");return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[te]);const[O,Y]=jE(K=>{const fe=Z().filter(Pe=>!Pe.disabled),Ce=fe.find(Pe=>Pe.ref.current===document.activeElement),Te=UE(fe,K,Ce);Te&&setTimeout(()=>Te.ref.current.focus())}),de=S.useCallback((K,fe,Ce)=>{const Te=!ae.current&&!Ce;(A.value!==void 0&&A.value===fe||Te)&&(W(K),Te&&(ae.current=!0))},[A.value]),M=S.useCallback(()=>k?.focus(),[k]),ne=S.useCallback((K,fe,Ce)=>{const Te=!ae.current&&!Ce;(A.value!==void 0&&A.value===fe||Te)&&X(K)},[A.value]),me=o==="popper"?Uh:xE,oe=me===Uh?{side:d,sideOffset:p,align:h,alignOffset:m,arrowPadding:y,collisionBoundary:b,collisionPadding:x,sticky:E,hideWhenDetached:w,avoidCollisions:R}:{};return D.jsx(bE,{scope:r,content:k,viewport:L,onViewportChange:N,itemRefCallback:de,selectedItem:$,onItemLeave:M,itemTextRefCallback:ne,focusSelectedItem:Q,selectedItemText:J,position:o,isPositioned:ce,searchRef:O,children:D.jsx(kc,{as:tL,allowPinchZoom:!0,children:D.jsx(Mc,{asChild:!0,trapped:A.open,onMountAutoFocus:a(K=>{K.preventDefault()},"onMountAutoFocus"),onUnmountAutoFocus:ye(l,K=>{A.trigger?.focus({preventScroll:!0}),K.preventDefault()}),children:D.jsx(xa,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:a(K=>K.preventDefault(),"onFocusOutside"),onDismiss:a(()=>A.onOpenChange(!1),"onDismiss"),children:D.jsx(me,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:a(K=>K.preventDefault(),"onContextMenu"),...C,...oe,onPlaced:a(()=>q(!0),"onPlaced"),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:ye(C.onKeyDown,K=>{const fe=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!fe&&K.key.length===1&&Y(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let Te=Z().filter(Pe=>!Pe.disabled).map(Pe=>Pe.ref.current);if(["ArrowUp","End"].includes(K.key)&&(Te=Te.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const Pe=K.target,qe=Te.indexOf(Pe);Te=Te.slice(qe+1)}setTimeout(()=>I(Te)),K.preventDefault()}})})})})})})});SE.displayName=eL;var nL="SelectItemAlignedPosition",xE=S.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:o,...l}=e,u=Ti(ro,r),c=Ri(ro,r),[d,p]=S.useState(null),[h,m]=S.useState(null),y=ze(t,j=>m(j)),b=$c(r),x=S.useRef(!1),E=S.useRef(!0),{viewport:w,selectedItem:R,selectedItemText:C,focusSelectedItem:A}=c,k=S.useCallback(()=>{if(u.trigger&&u.valueNode&&d&&h&&w&&R&&C){const j=u.trigger.getBoundingClientRect(),$=h.getBoundingClientRect(),W=u.valueNode.getBoundingClientRect(),J=C.getBoundingClientRect();if(u.dir!=="rtl"){const Pe=J.left-$.left,qe=W.left-Pe,Ie=j.left-qe,ut=j.width+Ie,Kt=Math.max(ut,$.width),an=window.innerWidth-Fn,St=Sh(qe,[Fn,Math.max(Fn,an-Kt)]);d.style.minWidth=ut+"px",d.style.left=St+"px"}else{const Pe=$.right-J.right,qe=window.innerWidth-W.right-Pe,Ie=window.innerWidth-j.right-qe,ut=j.width+Ie,Kt=Math.max(ut,$.width),an=window.innerWidth-Fn,St=Sh(qe,[Fn,Math.max(Fn,an-Kt)]);d.style.minWidth=ut+"px",d.style.right=St+"px"}const X=b(),Z=window.innerHeight-Fn*2,ce=w.scrollHeight,q=window.getComputedStyle(h),ae=parseInt(q.borderTopWidth,10),I=parseInt(q.paddingTop,10),Q=parseInt(q.borderBottomWidth,10),te=parseInt(q.paddingBottom,10),se=ae+I+ce+te+Q,O=Math.min(R.offsetHeight*5,se),Y=window.getComputedStyle(w),de=parseInt(Y.paddingTop,10),M=parseInt(Y.paddingBottom,10),ne=j.top+j.height/2-Fn,me=Z-ne,oe=R.offsetHeight/2,K=R.offsetTop+oe,fe=ae+I+K,Ce=se-fe;if(fe<=ne){const Pe=X.length>0&&R===X[X.length-1].ref.current;d.style.bottom="0px";const qe=h.clientHeight-w.offsetTop-w.offsetHeight,Ie=Math.max(me,oe+(Pe?M:0)+qe+Q),ut=fe+Ie;d.style.height=ut+"px"}else{const Pe=X.length>0&&R===X[0].ref.current;d.style.top="0px";const Ie=Math.max(ne,ae+w.offsetTop+(Pe?de:0)+oe)+Ce;d.style.height=Ie+"px",w.scrollTop=fe-ne+w.offsetTop}d.style.margin=`${Fn}px 0`,d.style.minHeight=O+"px",d.style.maxHeight=Z+"px",o?.(),requestAnimationFrame(()=>x.current=!0)}},[b,u.trigger,u.valueNode,d,h,w,R,C,u.dir,o]);bt(()=>k(),[k]);const[z,L]=S.useState();bt(()=>{h&&L(window.getComputedStyle(h).zIndex)},[h]);const N=S.useCallback(j=>{j&&E.current===!0&&(k(),A?.(),E.current=!1)},[k,A]);return D.jsx(iL,{scope:r,contentWrapper:d,shouldExpandOnScrollRef:x,onScrollButtonChange:N,children:D.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z},children:D.jsx(Ee.div,{...l,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});xE.displayName=nL;var rL="SelectPopperPosition",Uh=S.forwardRef((e,t)=>{const{__scopeSelect:r,align:o="start",collisionPadding:l=Fn,...u}=e,c=Yc(r);return D.jsx(Am,{...c,...u,ref:t,align:o,collisionPadding:l,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Uh.displayName=rL;var[iL,Gm]=Aa(ro,{}),Bh="SelectViewport",wE=S.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:o,...l}=e,u=Ri(Bh,r),c=Gm(Bh,r),d=ze(t,u.onViewportChange),p=S.useRef(0);return D.jsxs(D.Fragment,{children:[D.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),D.jsx(Gc.Slot,{scope:r,children:D.jsx(Ee.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:ye(l.onScroll,h=>{const m=h.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:b}=c;if(b?.current&&y){const x=Math.abs(p.current-m.scrollTop);if(x>0){const E=window.innerHeight-Fn*2,w=parseFloat(y.style.minHeight),R=parseFloat(y.style.height),C=Math.max(w,R);if(C<E){const A=C+x,k=Math.min(E,A),z=A-k;y.style.height=k+"px",y.style.bottom==="0px"&&(m.scrollTop=z>0?z:0,y.style.justifyContent="flex-end")}}}p.current=m.scrollTop})})})]})});wE.displayName=Bh;var EE="SelectGroup",[oL,aL]=Aa(EE),CE=S.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,l=Ln();return D.jsx(oL,{scope:r,id:l,children:D.jsx(Ee.div,{role:"group","aria-labelledby":l,...o,ref:t})})});CE.displayName=EE;var TE="SelectLabel",RE=S.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,l=aL(TE,r);return D.jsx(Ee.div,{id:l.id,...o,ref:t})});RE.displayName=TE;var hc="SelectItem",[lL,OE]=Aa(hc),AE=S.forwardRef((e,t)=>{const{__scopeSelect:r,value:o,disabled:l=!1,textValue:u,...c}=e,d=Ti(hc,r),p=Ri(hc,r),h=d.value===o,[m,y]=S.useState(u??""),[b,x]=S.useState(!1),E=ze(t,A=>p.itemRefCallback?.(A,o,l)),w=Ln(),R=S.useRef("touch"),C=a(()=>{l||(d.onValueChange(o),d.onOpenChange(!1))},"handleSelect");if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return D.jsx(lL,{scope:r,value:o,disabled:l,textId:w,isSelected:h,onItemTextChange:S.useCallback(A=>{y(k=>k||(A?.textContent??"").trim())},[]),children:D.jsx(Gc.ItemSlot,{scope:r,value:o,disabled:l,textValue:m,children:D.jsx(Ee.div,{role:"option","aria-labelledby":w,"data-highlighted":b?"":void 0,"aria-selected":h&&b,"data-state":h?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...c,ref:E,onFocus:ye(c.onFocus,()=>x(!0)),onBlur:ye(c.onBlur,()=>x(!1)),onClick:ye(c.onClick,()=>{R.current!=="mouse"&&C()}),onPointerUp:ye(c.onPointerUp,()=>{R.current==="mouse"&&C()}),onPointerDown:ye(c.onPointerDown,A=>{R.current=A.pointerType}),onPointerMove:ye(c.onPointerMove,A=>{R.current=A.pointerType,l?p.onItemLeave?.():R.current==="mouse"&&A.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ye(c.onPointerLeave,A=>{A.currentTarget===document.activeElement&&p.onItemLeave?.()}),onKeyDown:ye(c.onKeyDown,A=>{p.searchRef?.current!==""&&A.key===" "||(YP.includes(A.key)&&C(),A.key===" "&&A.preventDefault())})})})})});AE.displayName=hc;var Hl="SelectItemText",ME=S.forwardRef((e,t)=>{const{__scopeSelect:r,className:o,style:l,...u}=e,c=Ti(Hl,r),d=Ri(Hl,r),p=OE(Hl,r),h=WP(Hl,r),[m,y]=S.useState(null),b=ze(t,C=>y(C),p.onItemTextChange,C=>d.itemTextRefCallback?.(C,p.value,p.disabled)),x=m?.textContent,E=S.useMemo(()=>D.jsx("option",{value:p.value,disabled:p.disabled,children:x},p.value),[p.disabled,p.value,x]),{onNativeOptionAdd:w,onNativeOptionRemove:R}=h;return bt(()=>(w(E),()=>R(E)),[w,R,E]),D.jsxs(D.Fragment,{children:[D.jsx(Ee.span,{id:p.textId,...u,ref:b}),p.isSelected&&c.valueNode&&!c.valueNodeHasChildren?dr.createPortal(u.children,c.valueNode):null]})});ME.displayName=Hl;var _E="SelectItemIndicator",kE=S.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e;return OE(_E,r).isSelected?D.jsx(Ee.span,{"aria-hidden":!0,...o,ref:t}):null});kE.displayName=_E;var Hh="SelectScrollUpButton",DE=S.forwardRef((e,t)=>{const r=Ri(Hh,e.__scopeSelect),o=Gm(Hh,e.__scopeSelect),[l,u]=S.useState(!1),c=ze(t,o.onScrollButtonChange);return bt(()=>{if(r.viewport&&r.isPositioned){let d=a(function(){const h=p.scrollTop>0;u(h)},"handleScroll2");const p=r.viewport;return d(),p.addEventListener("scroll",d),()=>p.removeEventListener("scroll",d)}},[r.viewport,r.isPositioned]),l?D.jsx(PE,{...e,ref:c,onAutoScroll:a(()=>{const{viewport:d,selectedItem:p}=r;d&&p&&(d.scrollTop=d.scrollTop-p.offsetHeight)},"onAutoScroll")}):null});DE.displayName=Hh;var Fh="SelectScrollDownButton",NE=S.forwardRef((e,t)=>{const r=Ri(Fh,e.__scopeSelect),o=Gm(Fh,e.__scopeSelect),[l,u]=S.useState(!1),c=ze(t,o.onScrollButtonChange);return bt(()=>{if(r.viewport&&r.isPositioned){let d=a(function(){const h=p.scrollHeight-p.clientHeight,m=Math.ceil(p.scrollTop)<h;u(m)},"handleScroll2");const p=r.viewport;return d(),p.addEventListener("scroll",d),()=>p.removeEventListener("scroll",d)}},[r.viewport,r.isPositioned]),l?D.jsx(PE,{...e,ref:c,onAutoScroll:a(()=>{const{viewport:d,selectedItem:p}=r;d&&p&&(d.scrollTop=d.scrollTop+p.offsetHeight)},"onAutoScroll")}):null});NE.displayName=Fh;var PE=S.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:o,...l}=e,u=Ri("SelectScrollButton",r),c=S.useRef(null),d=$c(r),p=S.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return S.useEffect(()=>()=>p(),[p]),bt(()=>{d().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[d]),D.jsx(Ee.div,{"aria-hidden":!0,...l,ref:t,style:{flexShrink:0,...l.style},onPointerDown:ye(l.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(o,50))}),onPointerMove:ye(l.onPointerMove,()=>{u.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(o,50))}),onPointerLeave:ye(l.onPointerLeave,()=>{p()})})}),sL="SelectSeparator",LE=S.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e;return D.jsx(Ee.div,{"aria-hidden":!0,...o,ref:t})});LE.displayName=sL;var qh="SelectArrow",uL=S.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,l=Yc(r),u=Ti(qh,r),c=Ri(qh,r);return u.open&&c.position==="popper"?D.jsx(Mm,{...l,...o,ref:t}):null});uL.displayName=qh;var cL="SelectBubbleInput",zE=S.forwardRef(({__scopeSelect:e,value:t,...r},o)=>{const l=S.useRef(null),u=ze(o,l),c=cE(t);return S.useEffect(()=>{const d=l.current;if(!d)return;const p=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(p,"value").set;if(c!==t&&m){const y=new Event("change",{bubbles:!0});m.call(d,t),d.dispatchEvent(y)}},[c,t]),D.jsx(Ee.select,{...r,style:{...nw,...r.style},ref:u,defaultValue:t})});zE.displayName=cL;function IE(e){return e===""||e===void 0}a(IE,"shouldShowPlaceholder");function jE(e){const t=vt(e),r=S.useRef(""),o=S.useRef(0),l=S.useCallback(c=>{const d=r.current+c;t(d),a((function p(h){r.current=h,window.clearTimeout(o.current),h!==""&&(o.current=window.setTimeout(()=>p(""),1e3))}),"updateSearch")(d)},[t]),u=S.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return S.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,l,u]}a(jE,"useTypeaheadSearch");function UE(e,t,r){const l=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,u=r?e.indexOf(r):-1;let c=fL(e,Math.max(u,0));l.length===1&&(c=c.filter(h=>h!==r));const p=c.find(h=>h.textValue.toLowerCase().startsWith(l.toLowerCase()));return p!==r?p:void 0}a(UE,"findNextItem");function fL(e,t){return e.map((r,o)=>e[(t+o)%e.length])}a(fL,"wrapArray$1");var zU=fE,IU=pE,jU=mE,UU=gE,BU=yE,HU=vE,FU=wE,qU=CE,VU=RE,GU=AE,$U=ME,YU=kE,KU=DE,QU=NE,XU=LE,Vh=["Enter"," "],dL=["ArrowDown","PageUp","Home"],BE=["ArrowUp","PageDown","End"],pL=[...dL,...BE],hL={ltr:[...Vh,"ArrowRight"],rtl:[...Vh,"ArrowLeft"]},mL={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ms="Menu",[ts,gL,yL]=Fc(ms),[lo,HE]=$t(ms,[yL,Ta,qc]),Kc=Ta(),FE=qc(),[vL,so]=lo(ms),[bL,gs]=lo(ms),qE=a(e=>{const{__scopeMenu:t,open:r=!1,children:o,dir:l,onOpenChange:u,modal:c=!0}=e,d=Kc(t),[p,h]=S.useState(null),m=S.useRef(!1),y=vt(u),b=ps(l);return S.useEffect(()=>{const x=a(()=>{m.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},"handleKeyDown"),E=a(()=>m.current=!1,"handlePointer");return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),D.jsx(Rm,{...d,children:D.jsx(vL,{scope:t,open:r,onOpenChange:y,content:p,onContentChange:h,children:D.jsx(bL,{scope:t,onClose:S.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:m,dir:b,modal:c,children:o})})})},"Menu");qE.displayName=ms;var SL="MenuAnchor",$m=S.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e,l=Kc(r);return D.jsx(Om,{...l,...o,ref:t})});$m.displayName=SL;var Ym="MenuPortal",[xL,VE]=lo(Ym,{forceMount:void 0}),GE=a(e=>{const{__scopeMenu:t,forceMount:r,children:o,container:l}=e,u=so(Ym,t);return D.jsx(xL,{scope:t,forceMount:r,children:D.jsx(It,{present:r||u.open,children:D.jsx(wa,{asChild:!0,container:l,children:o})})})},"MenuPortal");GE.displayName=Ym;var zn="MenuContent",[wL,Km]=lo(zn),$E=S.forwardRef((e,t)=>{const r=VE(zn,e.__scopeMenu),{forceMount:o=r.forceMount,...l}=e,u=so(zn,e.__scopeMenu),c=gs(zn,e.__scopeMenu);return D.jsx(ts.Provider,{scope:e.__scopeMenu,children:D.jsx(It,{present:o||u.open,children:D.jsx(ts.Slot,{scope:e.__scopeMenu,children:c.modal?D.jsx(EL,{...l,ref:t}):D.jsx(CL,{...l,ref:t})})})})}),EL=S.forwardRef((e,t)=>{const r=so(zn,e.__scopeMenu),o=S.useRef(null),l=ze(t,o);return S.useEffect(()=>{const u=o.current;if(u)return hm(u)},[]),D.jsx(Qm,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ye(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:a(()=>r.onOpenChange(!1),"onDismiss")})}),CL=S.forwardRef((e,t)=>{const r=so(zn,e.__scopeMenu);return D.jsx(Qm,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:a(()=>r.onOpenChange(!1),"onDismiss")})}),TL=Wi("MenuContent.ScrollLock"),Qm=S.forwardRef((e,t)=>{const{__scopeMenu:r,loop:o=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEntryFocus:p,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:x,disableOutsideScroll:E,...w}=e,R=so(zn,r),C=gs(zn,r),A=Kc(r),k=FE(r),z=gL(r),[L,N]=S.useState(null),j=S.useRef(null),$=ze(t,j,R.onContentChange),W=S.useRef(0),J=S.useRef(""),X=S.useRef(0),Z=S.useRef(null),ce=S.useRef("right"),q=S.useRef(0),ae=E?kc:S.Fragment,I=E?{as:TL,allowPinchZoom:!0}:void 0,Q=a(se=>{const O=J.current+se,Y=z().filter(K=>!K.disabled),de=document.activeElement,M=Y.find(K=>K.ref.current===de)?.textValue,ne=Y.map(K=>K.textValue),me=IL(ne,O,M),oe=Y.find(K=>K.textValue===me)?.ref.current;a((function K(fe){J.current=fe,window.clearTimeout(W.current),fe!==""&&(W.current=window.setTimeout(()=>K(""),1e3))}),"updateSearch")(O),oe&&setTimeout(()=>oe.focus())},"handleTypeaheadSearch");S.useEffect(()=>()=>window.clearTimeout(W.current),[]),pm();const te=S.useCallback(se=>ce.current===Z.current?.side&&UL(se,Z.current?.area),[]);return D.jsx(wL,{scope:r,searchRef:J,onItemEnter:S.useCallback(se=>{te(se)&&se.preventDefault()},[te]),onItemLeave:S.useCallback(se=>{te(se)||(j.current?.focus(),N(null))},[te]),onTriggerLeave:S.useCallback(se=>{te(se)&&se.preventDefault()},[te]),pointerGraceTimerRef:X,onPointerGraceIntentChange:S.useCallback(se=>{Z.current=se},[]),children:D.jsx(ae,{...I,children:D.jsx(Mc,{asChild:!0,trapped:l,onMountAutoFocus:ye(u,se=>{se.preventDefault(),j.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:D.jsx(xa,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:x,children:D.jsx(Zw,{asChild:!0,...k,dir:C.dir,orientation:"vertical",loop:o,currentTabStopId:L,onCurrentTabStopIdChange:N,onEntryFocus:ye(p,se=>{C.isUsingKeyboardRef.current||se.preventDefault()}),preventScrollOnEntryFocus:!0,children:D.jsx(Am,{role:"menu","aria-orientation":"vertical","data-state":sC(R.open),"data-radix-menu-content":"",dir:C.dir,...A,...w,ref:$,style:{outline:"none",...w.style},onKeyDown:ye(w.onKeyDown,se=>{const Y=se.target.closest("[data-radix-menu-content]")===se.currentTarget,de=se.ctrlKey||se.altKey||se.metaKey,M=se.key.length===1;Y&&(se.key==="Tab"&&se.preventDefault(),!de&&M&&Q(se.key));const ne=j.current;if(se.target!==ne||!pL.includes(se.key))return;se.preventDefault();const oe=z().filter(K=>!K.disabled).map(K=>K.ref.current);BE.includes(se.key)&&oe.reverse(),LL(oe)}),onBlur:ye(e.onBlur,se=>{se.currentTarget.contains(se.target)||(window.clearTimeout(W.current),J.current="")}),onPointerMove:ye(e.onPointerMove,ns(se=>{const O=se.target,Y=q.current!==se.clientX;if(se.currentTarget.contains(O)&&Y){const de=se.clientX>q.current?"right":"left";ce.current=de,q.current=se.clientX}}))})})})})})})});$E.displayName=zn;var RL="MenuGroup",Xm=S.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e;return D.jsx(Ee.div,{role:"group",...o,ref:t})});Xm.displayName=RL;var OL="MenuLabel",YE=S.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e;return D.jsx(Ee.div,{...o,ref:t})});YE.displayName=OL;var mc="MenuItem",S1="menu.itemSelect",Qc=S.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:o,...l}=e,u=S.useRef(null),c=gs(mc,e.__scopeMenu),d=Km(mc,e.__scopeMenu),p=ze(t,u),h=S.useRef(!1),m=a(()=>{const y=u.current;if(!r&&y){const b=new CustomEvent(S1,{bubbles:!0,cancelable:!0});y.addEventListener(S1,x=>o?.(x),{once:!0}),dm(y,b),b.defaultPrevented?h.current=!1:c.onClose()}},"handleSelect");return D.jsx(KE,{...l,ref:p,disabled:r,onClick:ye(e.onClick,m),onPointerDown:a(y=>{e.onPointerDown?.(y),h.current=!0},"onPointerDown"),onPointerUp:ye(e.onPointerUp,y=>{h.current||y.currentTarget?.click()}),onKeyDown:ye(e.onKeyDown,y=>{const b=d.searchRef.current!=="";r||b&&y.key===" "||Vh.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});Qc.displayName=mc;var KE=S.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:o=!1,textValue:l,...u}=e,c=Km(mc,r),d=FE(r),p=S.useRef(null),h=ze(t,p),[m,y]=S.useState(!1),[b,x]=S.useState("");return S.useEffect(()=>{const E=p.current;E&&x((E.textContent??"").trim())},[u.children]),D.jsx(ts.ItemSlot,{scope:r,disabled:o,textValue:l??b,children:D.jsx(Jw,{asChild:!0,...d,focusable:!o,children:D.jsx(Ee.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...u,ref:h,onPointerMove:ye(e.onPointerMove,ns(E=>{o?c.onItemLeave(E):(c.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ye(e.onPointerLeave,ns(E=>c.onItemLeave(E))),onFocus:ye(e.onFocus,()=>y(!0)),onBlur:ye(e.onBlur,()=>y(!1))})})})}),AL="MenuCheckboxItem",QE=S.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:o,...l}=e;return D.jsx(eC,{scope:e.__scopeMenu,checked:r,children:D.jsx(Qc,{role:"menuitemcheckbox","aria-checked":gc(r)?"mixed":r,...l,ref:t,"data-state":Zm(r),onSelect:ye(l.onSelect,()=>o?.(gc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});QE.displayName=AL;var XE="MenuRadioGroup",[ML,_L]=lo(XE,{value:void 0,onValueChange:a(()=>{},"onValueChange")}),WE=S.forwardRef((e,t)=>{const{value:r,onValueChange:o,...l}=e,u=vt(o);return D.jsx(ML,{scope:e.__scopeMenu,value:r,onValueChange:u,children:D.jsx(Xm,{...l,ref:t})})});WE.displayName=XE;var ZE="MenuRadioItem",JE=S.forwardRef((e,t)=>{const{value:r,...o}=e,l=_L(ZE,e.__scopeMenu),u=r===l.value;return D.jsx(eC,{scope:e.__scopeMenu,checked:u,children:D.jsx(Qc,{role:"menuitemradio","aria-checked":u,...o,ref:t,"data-state":Zm(u),onSelect:ye(o.onSelect,()=>l.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});JE.displayName=ZE;var Wm="MenuItemIndicator",[eC,kL]=lo(Wm,{checked:!1}),tC=S.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:o,...l}=e,u=kL(Wm,r);return D.jsx(It,{present:o||gc(u.checked)||u.checked===!0,children:D.jsx(Ee.span,{...l,ref:t,"data-state":Zm(u.checked)})})});tC.displayName=Wm;var DL="MenuSeparator",nC=S.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e;return D.jsx(Ee.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});nC.displayName=DL;var NL="MenuArrow",rC=S.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e,l=Kc(r);return D.jsx(Mm,{...l,...o,ref:t})});rC.displayName=NL;var PL="MenuSub",[WU,iC]=lo(PL),Fl="MenuSubTrigger",oC=S.forwardRef((e,t)=>{const r=so(Fl,e.__scopeMenu),o=gs(Fl,e.__scopeMenu),l=iC(Fl,e.__scopeMenu),u=Km(Fl,e.__scopeMenu),c=S.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:p}=u,h={__scopeMenu:e.__scopeMenu},m=S.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return S.useEffect(()=>m,[m]),S.useEffect(()=>{const y=d.current;return()=>{window.clearTimeout(y),p(null)}},[d,p]),D.jsx($m,{asChild:!0,...h,children:D.jsx(KE,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":sC(r.open),...e,ref:Ac(t,l.onTriggerChange),onClick:a(y=>{e.onClick?.(y),!(e.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),r.open||r.onOpenChange(!0))},"onClick"),onPointerMove:ye(e.onPointerMove,ns(y=>{u.onItemEnter(y),!y.defaultPrevented&&!e.disabled&&!r.open&&!c.current&&(u.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),m()},100))})),onPointerLeave:ye(e.onPointerLeave,ns(y=>{m();const b=r.content?.getBoundingClientRect();if(b){const x=r.content?.dataset.side,E=x==="right",w=E?-5:5,R=b[E?"left":"right"],C=b[E?"right":"left"];u.onPointerGraceIntentChange({area:[{x:y.clientX+w,y:y.clientY},{x:R,y:b.top},{x:C,y:b.top},{x:C,y:b.bottom},{x:R,y:b.bottom}],side:x}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(y),y.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:ye(e.onKeyDown,y=>{const b=u.searchRef.current!=="";e.disabled||b&&y.key===" "||hL[o.dir].includes(y.key)&&(r.onOpenChange(!0),r.content?.focus(),y.preventDefault())})})})});oC.displayName=Fl;var aC="MenuSubContent",lC=S.forwardRef((e,t)=>{const r=VE(zn,e.__scopeMenu),{forceMount:o=r.forceMount,...l}=e,u=so(zn,e.__scopeMenu),c=gs(zn,e.__scopeMenu),d=iC(aC,e.__scopeMenu),p=S.useRef(null),h=ze(t,p);return D.jsx(ts.Provider,{scope:e.__scopeMenu,children:D.jsx(It,{present:o||u.open,children:D.jsx(ts.Slot,{scope:e.__scopeMenu,children:D.jsx(Qm,{id:d.contentId,"aria-labelledby":d.triggerId,...l,ref:h,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:a(m=>{c.isUsingKeyboardRef.current&&p.current?.focus(),m.preventDefault()},"onOpenAutoFocus"),onCloseAutoFocus:a(m=>m.preventDefault(),"onCloseAutoFocus"),onFocusOutside:ye(e.onFocusOutside,m=>{m.target!==d.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:ye(e.onEscapeKeyDown,m=>{c.onClose(),m.preventDefault()}),onKeyDown:ye(e.onKeyDown,m=>{const y=m.currentTarget.contains(m.target),b=mL[c.dir].includes(m.key);y&&b&&(u.onOpenChange(!1),d.trigger?.focus(),m.preventDefault())})})})})})});lC.displayName=aC;function sC(e){return e?"open":"closed"}a(sC,"getOpenState");function gc(e){return e==="indeterminate"}a(gc,"isIndeterminate");function Zm(e){return gc(e)?"indeterminate":e?"checked":"unchecked"}a(Zm,"getCheckedState");function LL(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}a(LL,"focusFirst$1");function zL(e,t){return e.map((r,o)=>e[(t+o)%e.length])}a(zL,"wrapArray");function IL(e,t,r){const l=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,u=r?e.indexOf(r):-1;let c=zL(e,Math.max(u,0));l.length===1&&(c=c.filter(h=>h!==r));const p=c.find(h=>h.toLowerCase().startsWith(l.toLowerCase()));return p!==r?p:void 0}a(IL,"getNextMatch");function jL(e,t){const{x:r,y:o}=e;let l=!1;for(let u=0,c=t.length-1;u<t.length;c=u++){const d=t[u],p=t[c],h=d.x,m=d.y,y=p.x,b=p.y;m>o!=b>o&&r<(y-h)*(o-m)/(b-m)+h&&(l=!l)}return l}a(jL,"isPointInPolygon");function UL(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return jL(r,t)}a(UL,"isPointerInGraceArea");function ns(e){return t=>t.pointerType==="mouse"?e(t):void 0}a(ns,"whenMouse");var BL=qE,HL=$m,FL=GE,qL=$E,VL=Xm,GL=YE,$L=Qc,YL=QE,KL=WE,QL=JE,XL=tC,WL=nC,ZL=rC,JL=oC,e3=lC,Xc="DropdownMenu",[t3]=$t(Xc,[HE]),Yt=HE(),[n3,uC]=t3(Xc),cC=a(e=>{const{__scopeDropdownMenu:t,children:r,dir:o,open:l,defaultOpen:u,onOpenChange:c,modal:d=!0}=e,p=Yt(t),h=S.useRef(null),[m,y]=hr({prop:l,defaultProp:u??!1,onChange:c,caller:Xc});return D.jsx(n3,{scope:t,triggerId:Ln(),triggerRef:h,contentId:Ln(),open:m,onOpenChange:y,onOpenToggle:S.useCallback(()=>y(b=>!b),[y]),modal:d,children:D.jsx(BL,{...p,open:m,onOpenChange:y,dir:o,modal:d,children:r})})},"DropdownMenu");cC.displayName=Xc;var fC="DropdownMenuTrigger",dC=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:o=!1,...l}=e,u=uC(fC,r),c=Yt(r);return D.jsx(HL,{asChild:!0,...c,children:D.jsx(Ee.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...l,ref:Ac(t,u.triggerRef),onPointerDown:ye(e.onPointerDown,d=>{!o&&d.button===0&&d.ctrlKey===!1&&(u.onOpenToggle(),u.open||d.preventDefault())}),onKeyDown:ye(e.onKeyDown,d=>{o||(["Enter"," "].includes(d.key)&&u.onOpenToggle(),d.key==="ArrowDown"&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(d.key)&&d.preventDefault())})})})});dC.displayName=fC;var r3="DropdownMenuPortal",pC=a(e=>{const{__scopeDropdownMenu:t,...r}=e,o=Yt(t);return D.jsx(FL,{...o,...r})},"DropdownMenuPortal");pC.displayName=r3;var hC="DropdownMenuContent",mC=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=uC(hC,r),u=Yt(r),c=S.useRef(!1);return D.jsx(qL,{id:l.contentId,"aria-labelledby":l.triggerId,...u,...o,ref:t,onCloseAutoFocus:ye(e.onCloseAutoFocus,d=>{c.current||l.triggerRef.current?.focus(),c.current=!1,d.preventDefault()}),onInteractOutside:ye(e.onInteractOutside,d=>{const p=d.detail.originalEvent,h=p.button===0&&p.ctrlKey===!0,m=p.button===2||h;(!l.modal||m)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});mC.displayName=hC;var i3="DropdownMenuGroup",o3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(VL,{...l,...o,ref:t})});o3.displayName=i3;var a3="DropdownMenuLabel",gC=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(GL,{...l,...o,ref:t})});gC.displayName=a3;var l3="DropdownMenuItem",yC=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx($L,{...l,...o,ref:t})});yC.displayName=l3;var s3="DropdownMenuCheckboxItem",u3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(YL,{...l,...o,ref:t})});u3.displayName=s3;var c3="DropdownMenuRadioGroup",f3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(KL,{...l,...o,ref:t})});f3.displayName=c3;var d3="DropdownMenuRadioItem",p3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(QL,{...l,...o,ref:t})});p3.displayName=d3;var h3="DropdownMenuItemIndicator",m3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(XL,{...l,...o,ref:t})});m3.displayName=h3;var g3="DropdownMenuSeparator",vC=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(WL,{...l,...o,ref:t})});vC.displayName=g3;var y3="DropdownMenuArrow",v3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(ZL,{...l,...o,ref:t})});v3.displayName=y3;var b3="DropdownMenuSubTrigger",S3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(JL,{...l,...o,ref:t})});S3.displayName=b3;var x3="DropdownMenuSubContent",w3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(e3,{...l,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});w3.displayName=x3;var ZU=cC,JU=dC,eB=pC,tB=mC,nB=gC,rB=yC,iB=vC,bC="AlertDialog",[E3]=$t(bC,[gx]),Gr=gx(),SC=a(e=>{const{__scopeAlertDialog:t,...r}=e,o=Gr(t);return D.jsx($_,{...o,...r,modal:!0})},"AlertDialog");SC.displayName=bC;var C3="AlertDialogTrigger",T3=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,l=Gr(r);return D.jsx(Y_,{...l,...o,ref:t})});T3.displayName=C3;var R3="AlertDialogPortal",xC=a(e=>{const{__scopeAlertDialog:t,...r}=e,o=Gr(t);return D.jsx(K_,{...o,...r})},"AlertDialogPortal");xC.displayName=R3;var O3="AlertDialogOverlay",wC=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,l=Gr(r);return D.jsx(Q_,{...l,...o,ref:t})});wC.displayName=O3;var ca="AlertDialogContent",[A3,M3]=E3(ca),_3=tx("AlertDialogContent"),EC=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:o,...l}=e,u=Gr(r),c=S.useRef(null),d=ze(t,c),p=S.useRef(null);return D.jsx(F_,{contentName:ca,titleName:CC,docsSlug:"alert-dialog",children:D.jsx(A3,{scope:r,cancelRef:p,children:D.jsxs(X_,{role:"alertdialog",...u,...l,ref:d,onOpenAutoFocus:ye(l.onOpenAutoFocus,h=>{h.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:a(h=>h.preventDefault(),"onPointerDownOutside"),onInteractOutside:a(h=>h.preventDefault(),"onInteractOutside"),children:[D.jsx(_3,{children:o}),D.jsx(D3,{contentRef:c})]})})})});EC.displayName=ca;var CC="AlertDialogTitle",TC=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,l=Gr(r);return D.jsx(W_,{...l,...o,ref:t})});TC.displayName=CC;var RC="AlertDialogDescription",OC=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,l=Gr(r);return D.jsx(Z_,{...l,...o,ref:t})});OC.displayName=RC;var k3="AlertDialogAction",AC=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,l=Gr(r);return D.jsx(Dx,{...l,...o,ref:t})});AC.displayName=k3;var MC="AlertDialogCancel",_C=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,{cancelRef:l}=M3(MC,r),u=Gr(r),c=ze(t,l);return D.jsx(Dx,{...u,...o,ref:c})});_C.displayName=MC;var D3=a(({contentRef:e})=>{const t=`\`${ca}\` requires a description for the component to be accessible for screen reader users.
469
+ Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let b=Ci(),x;if(t){let A=typeof t=="string"?Ra(t):t;ht(m==="/"||A.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${A.pathname}" was given in the \`location\` prop.`),x=A}else x=b;let E=x.pathname||"/",w=E;if(m!=="/"){let A=m.replace(/^\//,"").split("/");w="/"+E.replace(/^\//,"").split("/").slice(A.length).join("/")}let R=Aw(e,{pathname:w});Kn(y||R!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Kn(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=VN(R&&R.map(A=>Object.assign({},A,{params:Object.assign({},h,A.params),pathname:Br([m,u.encodeLocation?u.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?m:Br([m,u.encodeLocation?u.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),c,r,o,l);return t&&C?S.createElement(cs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},C):C}a(jw,"useRoutesImpl");function BN(){let e=QN(),t=NN(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:o},u={padding:"2px 4px",backgroundColor:o},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:u},"ErrorBoundary")," or"," ",S.createElement("code",{style:u},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),r?S.createElement("pre",{style:l},r):null,c)}a(BN,"DefaultErrorComponent");var HN=S.createElement(BN,null),FN=class extends S.Component{static{a(this,"RenderErrorBoundary")}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?S.createElement(br.Provider,{value:this.props.routeContext},S.createElement(Um.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function qN({routeContext:e,match:t,children:r}){let o=S.useContext(Oa);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(br.Provider,{value:e},r)}a(qN,"RenderedRoute");function VN(e,t=[],r=null,o=null,l=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let u=e,c=r?.errors;if(c!=null){let p=u.findIndex(m=>m.route.id&&c?.[m.route.id]!==void 0);ht(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),u=u.slice(0,Math.min(u.length,p+1))}let d=!1,h=-1;if(r)for(let p=0;p<u.length;p++){let m=u[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=p),m.route.id){let{loaderData:y,errors:b}=r,x=m.route.loader&&!y.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||x){d=!0,h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}return u.reduceRight((p,m,y)=>{let b,x=!1,E=null,w=null;r&&(b=c&&m.route.id?c[m.route.id]:void 0,E=m.route.errorElement||HN,d&&(h<0&&y===0?(Uw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,w=null):h===y&&(x=!0,w=m.route.hydrateFallbackElement||null)));let R=t.concat(u.slice(0,y+1)),C=a(()=>{let A;return b?A=E:x?A=w:m.route.Component?A=S.createElement(m.route.Component,null):m.route.element?A=m.route.element:A=p,S.createElement(qN,{match:m,routeContext:{outlet:p,matches:R,isDataRoute:r!=null},children:A})},"getChildren");return r&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?S.createElement(FN,{location:r.location,revalidation:r.revalidation,component:E,error:b,children:C(),routeContext:{outlet:null,matches:R,isDataRoute:!0},unstable_onError:o}):C()},null)}a(VN,"_renderMatches");function Bm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}a(Bm,"getDataRouterConsoleError");function GN(e){let t=S.useContext(Oa);return ht(t,Bm(e)),t}a(GN,"useDataRouterContext");function $N(e){let t=S.useContext(Bc);return ht(t,Bm(e)),t}a($N,"useDataRouterState");function YN(e){let t=S.useContext(br);return ht(t,Bm(e)),t}a(YN,"useRouteContext");function Hm(e){let t=YN(e),r=t.matches[t.matches.length-1];return ht(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}a(Hm,"useCurrentRouteId");function KN(){return Hm("useRouteId")}a(KN,"useRouteId");function QN(){let e=S.useContext(Um),t=$N("useRouteError"),r=Hm("useRouteError");return e!==void 0?e:t.errors?.[r]}a(QN,"useRouteError");function XN(){let{router:e}=GN("useNavigate"),t=Hm("useNavigate"),r=S.useRef(!1);return zw(()=>{r.current=!0}),S.useCallback(async(l,u={})=>{Kn(r.current,Lw),r.current&&(typeof l=="number"?e.navigate(l):await e.navigate(l,{fromRouteId:t,...u}))},[e,t])}a(XN,"useNavigateStable");var v1={};function Uw(e,t,r){!t&&!v1[e]&&(v1[e]=!0,Kn(!1,r))}a(Uw,"warningOnce");S.memo(WN);function WN({routes:e,future:t,state:r,unstable_onError:o}){return jw(e,void 0,r,o,t)}a(WN,"DataRoutes");function ZN(e){ht(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}a(ZN,"Route");function JN({basename:e="/",children:t=null,location:r,navigationType:o="POP",navigator:l,static:u=!1}){ht(!fs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),d=S.useMemo(()=>({basename:c,navigator:l,static:u,future:{}}),[c,l,u]);typeof r=="string"&&(r=Ra(r));let{pathname:h="/",search:p="",hash:m="",state:y=null,key:b="default"}=r,x=S.useMemo(()=>{let E=qr(h,c);return E==null?null:{location:{pathname:E,search:p,hash:m,state:y,key:b},navigationType:o}},[c,h,p,m,y,b,o]);return Kn(x!=null,`<Router basename="${c}"> is not able to match the URL "${h}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:S.createElement(vr.Provider,{value:d},S.createElement(cs.Provider,{children:t,value:x}))}a(JN,"Router");function AU({children:e,location:t}){return UN(zp(e),t)}a(AU,"Routes");function zp(e,t=[]){let r=[];return S.Children.forEach(e,(o,l)=>{if(!S.isValidElement(o))return;let u=[...t,l];if(o.type===S.Fragment){r.push.apply(r,zp(o.props.children,u));return}ht(o.type===ZN,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ht(!o.props.index||!o.props.children,"An index route cannot have child routes.");let c={id:o.props.id||u.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(c.children=zp(o.props.children,u)),r.push(c)}),r}a(zp,"createRoutesFromChildren");var ec="get",tc="application/x-www-form-urlencoded";function Hc(e){return e!=null&&typeof e.tagName=="string"}a(Hc,"isHtmlElement");function eP(e){return Hc(e)&&e.tagName.toLowerCase()==="button"}a(eP,"isButtonElement");function tP(e){return Hc(e)&&e.tagName.toLowerCase()==="form"}a(tP,"isFormElement");function nP(e){return Hc(e)&&e.tagName.toLowerCase()==="input"}a(nP,"isInputElement");function rP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}a(rP,"isModifiedEvent");function iP(e,t){return e.button===0&&(!t||t==="_self")&&!rP(e)}a(iP,"shouldProcessLinkClick");function Ip(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let o=e[r];return t.concat(Array.isArray(o)?o.map(l=>[r,l]):[[r,o]])},[]))}a(Ip,"createSearchParams");function oP(e,t){let r=Ip(e);return t&&t.forEach((o,l)=>{r.has(l)||t.getAll(l).forEach(u=>{r.append(l,u)})}),r}a(oP,"getSearchParamsForLocation");var Vu=null;function aP(){if(Vu===null)try{new FormData(document.createElement("form"),0),Vu=!1}catch{Vu=!0}return Vu}a(aP,"isFormDataSubmitterSupported");var lP=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Fh(e){return e!=null&&!lP.has(e)?(Kn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${tc}"`),null):e}a(Fh,"getFormEncType");function sP(e,t){let r,o,l,u,c;if(tP(e)){let d=e.getAttribute("action");o=d?qr(d,t):null,r=e.getAttribute("method")||ec,l=Fh(e.getAttribute("enctype"))||tc,u=new FormData(e)}else if(eP(e)||nP(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||d.getAttribute("action");if(o=h?qr(h,t):null,r=e.getAttribute("formmethod")||d.getAttribute("method")||ec,l=Fh(e.getAttribute("formenctype"))||Fh(d.getAttribute("enctype"))||tc,u=new FormData(d,e),!aP()){let{name:p,type:m,value:y}=e;if(m==="image"){let b=p?`${p}.`:"";u.append(`${b}x`,"0"),u.append(`${b}y`,"0")}else p&&u.append(p,y)}}else{if(Hc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ec,o=null,l=tc,c=e}return u&&l==="text/plain"&&(c=u,u=void 0),{action:o,method:r.toLowerCase(),encType:l,formData:u,body:c}}a(sP,"getFormSubmissionInfo");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Fm(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}a(Fm,"invariant2");function uP(e,t,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return o.pathname==="/"?o.pathname=`_root.${r}`:t&&qr(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}a(uP,"singleFetchUrl");async function cP(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}a(cP,"loadRouteModule");function fP(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}a(fP,"isHtmlLinkDescriptor");async function dP(e,t,r){let o=await Promise.all(e.map(async l=>{let u=t.routes[l.route.id];if(u){let c=await cP(u,r);return c.links?c.links():[]}return[]}));return gP(o.flat(1).filter(fP).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}a(dP,"getKeyedPrefetchLinks");function b1(e,t,r,o,l,u){let c=a((h,p)=>r[p]?h.route.id!==r[p].route.id:!0,"isNew"),d=a((h,p)=>r[p].pathname!==h.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==h.params["*"],"matchPathChanged");return u==="assets"?t.filter((h,p)=>c(h,p)||d(h,p)):u==="data"?t.filter((h,p)=>{let m=o.routes[h.route.id];if(!m||!m.hasLoader)return!1;if(c(h,p)||d(h,p))return!0;if(h.route.shouldRevalidate){let y=h.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}a(b1,"getNewMatchesForLinks");function hP(e,t,{includeHydrateFallback:r}={}){return pP(e.map(o=>{let l=t.routes[o.route.id];if(!l)return[];let u=[l.module];return l.clientActionModule&&(u=u.concat(l.clientActionModule)),l.clientLoaderModule&&(u=u.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(u=u.concat(l.hydrateFallbackModule)),l.imports&&(u=u.concat(l.imports)),u}).flat(1))}a(hP,"getModuleLinkHrefs");function pP(e){return[...new Set(e)]}a(pP,"dedupeHrefs");function mP(e){let t={},r=Object.keys(e).sort();for(let o of r)t[o]=e[o];return t}a(mP,"sortKeys");function gP(e,t){let r=new Set;return new Set(t),e.reduce((o,l)=>{let u=JSON.stringify(mP(l));return r.has(u)||(r.add(u),o.push({key:u,link:l})),o},[])}a(gP,"dedupeLinkDescriptors");function Bw(){let e=S.useContext(Oa);return Fm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}a(Bw,"useDataRouterContext2");function yP(){let e=S.useContext(Bc);return Fm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}a(yP,"useDataRouterStateContext");var qm=S.createContext(void 0);qm.displayName="FrameworkContext";function Hw(){let e=S.useContext(qm);return Fm(e,"You must render this element inside a <HydratedRouter> element"),e}a(Hw,"useFrameworkContext");function vP(e,t){let r=S.useContext(qm),[o,l]=S.useState(!1),[u,c]=S.useState(!1),{onFocus:d,onBlur:h,onMouseEnter:p,onMouseLeave:m,onTouchStart:y}=t,b=S.useRef(null);S.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let w=a(C=>{C.forEach(A=>{c(A.isIntersecting)})},"callback"),R=new IntersectionObserver(w,{threshold:.5});return b.current&&R.observe(b.current),()=>{R.disconnect()}}},[e]),S.useEffect(()=>{if(o){let w=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(w)}}},[o]);let x=a(()=>{l(!0)},"setIntent"),E=a(()=>{l(!1),c(!1)},"cancelIntent");return r?e!=="intent"?[u,b,{}]:[u,b,{onFocus:kl(d,x),onBlur:kl(h,E),onMouseEnter:kl(p,x),onMouseLeave:kl(m,E),onTouchStart:kl(y,x)}]:[!1,b,{}]}a(vP,"usePrefetchBehavior");function kl(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}a(kl,"composeEventHandlers");function bP({page:e,...t}){let{router:r}=Bw(),o=S.useMemo(()=>Aw(r.routes,e,r.basename),[r.routes,e,r.basename]);return o?S.createElement(xP,{page:e,matches:o,...t}):null}a(bP,"PrefetchPageLinks");function SP(e){let{manifest:t,routeModules:r}=Hw(),[o,l]=S.useState([]);return S.useEffect(()=>{let u=!1;return dP(e,t,r).then(c=>{u||l(c)}),()=>{u=!0}},[e,t,r]),o}a(SP,"useKeyedPrefetchLinks");function xP({page:e,matches:t,...r}){let o=Ci(),{manifest:l,routeModules:u}=Hw(),{basename:c}=Bw(),{loaderData:d,matches:h}=yP(),p=S.useMemo(()=>b1(e,t,h,l,o,"data"),[e,t,h,l,o]),m=S.useMemo(()=>b1(e,t,h,l,o,"assets"),[e,t,h,l,o]),y=S.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let E=new Set,w=!1;if(t.forEach(C=>{let A=l.routes[C.route.id];!A||!A.hasLoader||(!p.some(k=>k.route.id===C.route.id)&&C.route.id in d&&u[C.route.id]?.shouldRevalidate||A.hasClientLoader?w=!0:E.add(C.route.id))}),E.size===0)return[];let R=uP(e,c,"data");return w&&E.size>0&&R.searchParams.set("_routes",t.filter(C=>E.has(C.route.id)).map(C=>C.route.id).join(",")),[R.pathname+R.search]},[c,d,o,l,p,t,e,u]),b=S.useMemo(()=>hP(m,l),[m,l]),x=SP(m);return S.createElement(S.Fragment,null,y.map(E=>S.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),b.map(E=>S.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),x.map(({key:E,link:w})=>S.createElement("link",{key:E,nonce:r.nonce,...w})))}a(xP,"PrefetchPageLinksImpl");function wP(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}a(wP,"mergeRefs");var Fw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Fw&&(window.__reactRouterVersion="7.9.1")}catch{}function MU({basename:e,children:t,window:r}){let o=S.useRef();o.current==null&&(o.current=cN({window:r,v5Compat:!0}));let l=o.current,[u,c]=S.useState({action:l.action,location:l.location}),d=S.useCallback(h=>{S.startTransition(()=>c(h))},[c]);return S.useLayoutEffect(()=>l.listen(d),[l,d]),S.createElement(JN,{basename:e,children:t,location:u.location,navigationType:u.action,navigator:l})}a(MU,"BrowserRouter");var qw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vw=S.forwardRef(a(function({onClick:t,discover:r="render",prefetch:o="none",relative:l,reloadDocument:u,replace:c,state:d,target:h,to:p,preventScrollReset:m,viewTransition:y,...b},x){let{basename:E}=S.useContext(vr),w=typeof p=="string"&&qw.test(p),R,C=!1;if(typeof p=="string"&&w&&(R=p,Fw))try{let W=new URL(window.location.href),J=p.startsWith("//")?new URL(W.protocol+p):new URL(p),X=qr(J.pathname,E);J.origin===W.origin&&X!=null?p=X+J.search+J.hash:C=!0}catch{Kn(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let A=IN(p,{relative:l}),[k,z,L]=vP(o,b),N=RP(p,{replace:c,state:d,target:h,preventScrollReset:m,relative:l,viewTransition:y});function j(W){t&&t(W),W.defaultPrevented||N(W)}a(j,"handleClick");let $=S.createElement("a",{...b,...L,href:R||A,onClick:C||u?t:j,ref:wP(x,z),target:h,"data-discover":!w&&r==="render"?"true":void 0});return k&&!w?S.createElement(S.Fragment,null,$,S.createElement(bP,{page:A})):$},"LinkWithRef"));Vw.displayName="Link";var EP=S.forwardRef(a(function({"aria-current":t="page",caseSensitive:r=!1,className:o="",end:l=!1,style:u,to:c,viewTransition:d,children:h,...p},m){let y=ds(c,{relative:p.relative}),b=Ci(),x=S.useContext(Bc),{navigator:E,basename:w}=S.useContext(vr),R=x!=null&&kP(y)&&d===!0,C=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,A=b.pathname,k=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(A=A.toLowerCase(),k=k?k.toLowerCase():null,C=C.toLowerCase()),k&&w&&(k=qr(k,w)||k);const z=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let L=A===C||!l&&A.startsWith(C)&&A.charAt(z)==="/",N=k!=null&&(k===C||!l&&k.startsWith(C)&&k.charAt(C.length)==="/"),j={isActive:L,isPending:N,isTransitioning:R},$=L?t:void 0,W;typeof o=="function"?W=o(j):W=[o,L?"active":null,N?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let J=typeof u=="function"?u(j):u;return S.createElement(Vw,{...p,"aria-current":$,className:W,ref:m,style:J,to:c,viewTransition:d},typeof h=="function"?h(j):h)},"NavLinkWithRef"));EP.displayName="NavLink";var CP=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:o,replace:l,state:u,method:c=ec,action:d,onSubmit:h,relative:p,preventScrollReset:m,viewTransition:y,...b},x)=>{let E=MP(),w=_P(d,{relative:p}),R=c.toLowerCase()==="get"?"get":"post",C=typeof d=="string"&&qw.test(d),A=a(k=>{if(h&&h(k),k.defaultPrevented)return;k.preventDefault();let z=k.nativeEvent.submitter,L=z?.getAttribute("formmethod")||c;E(z||k.currentTarget,{fetcherKey:t,method:L,navigate:r,replace:l,state:u,relative:p,preventScrollReset:m,viewTransition:y})},"submitHandler");return S.createElement("form",{ref:x,method:R,action:w,onSubmit:o?h:A,...b,"data-discover":!C&&e==="render"?"true":void 0})});CP.displayName="Form";function TP(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}a(TP,"getDataRouterConsoleError2");function Gw(e){let t=S.useContext(Oa);return ht(t,TP(e)),t}a(Gw,"useDataRouterContext3");function RP(e,{target:t,replace:r,state:o,preventScrollReset:l,relative:u,viewTransition:c}={}){let d=Iw(),h=Ci(),p=ds(e,{relative:u});return S.useCallback(m=>{if(iP(m,t)){m.preventDefault();let y=r!==void 0?r:es(h)===es(p);d(e,{replace:y,state:o,preventScrollReset:l,relative:u,viewTransition:c})}},[h,d,p,r,o,t,e,l,u,c])}a(RP,"useLinkClickHandler");function _U(e){Kn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=S.useRef(Ip(e)),r=S.useRef(!1),o=Ci(),l=S.useMemo(()=>oP(o.search,r.current?null:t.current),[o.search]),u=Iw(),c=S.useCallback((d,h)=>{const p=Ip(typeof d=="function"?d(new URLSearchParams(l)):d);r.current=!0,u("?"+p,h)},[u,l]);return[l,c]}a(_U,"useSearchParams");var OP=0,AP=a(()=>`__${String(++OP)}__`,"getUniqueFetcherId");function MP(){let{router:e}=Gw("useSubmit"),{basename:t}=S.useContext(vr),r=KN();return S.useCallback(async(o,l={})=>{let{action:u,method:c,encType:d,formData:h,body:p}=sP(o,t);if(l.navigate===!1){let m=l.fetcherKey||AP();await e.fetch(m,r,l.action||u,{preventScrollReset:l.preventScrollReset,formData:h,body:p,formMethod:l.method||c,formEncType:l.encType||d,flushSync:l.flushSync})}else await e.navigate(l.action||u,{preventScrollReset:l.preventScrollReset,formData:h,body:p,formMethod:l.method||c,formEncType:l.encType||d,replace:l.replace,state:l.state,fromRouteId:r,flushSync:l.flushSync,viewTransition:l.viewTransition})},[e,t,r])}a(MP,"useSubmit");function _P(e,{relative:t}={}){let{basename:r}=S.useContext(vr),o=S.useContext(br);ht(o,"useFormAction must be used inside a RouteContext");let[l]=o.matches.slice(-1),u={...ds(e||".",{relative:t})},c=Ci();if(e==null){u.search=c.search;let d=new URLSearchParams(u.search),h=d.getAll("index");if(h.some(m=>m==="")){d.delete("index"),h.filter(y=>y).forEach(y=>d.append("index",y));let m=d.toString();u.search=m?`?${m}`:""}}return(!e||e===".")&&l.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:Br([r,u.pathname])),es(u)}a(_P,"useFormAction");function kP(e,{relative:t}={}){let r=S.useContext(Pw);ht(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Gw("useViewTransitionState"),l=ds(e,{relative:t});if(!r.isTransitioning)return!1;let u=qr(r.currentLocation.pathname,o)||r.currentLocation.pathname,c=qr(r.nextLocation.pathname,o)||r.nextLocation.pathname;return hc(l.pathname,c)!=null||hc(l.pathname,u)!=null}a(kP,"useViewTransitionState");var DP="Label",$w=S.forwardRef((e,t)=>D.jsx(Ee.label,{...e,ref:t,onMouseDown:a(r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())},"onMouseDown")}));$w.displayName=DP;var kU=$w;function Fc(e){const t=e+"CollectionProvider",[r,o]=$t(t),[l,u]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=a(w=>{const{scope:R,children:C}=w,A=_e.useRef(null),k=_e.useRef(new Map).current;return D.jsx(l,{scope:R,itemMap:k,collectionRef:A,children:C})},"CollectionProvider");c.displayName=t;const d=e+"CollectionSlot",h=Wi(d),p=_e.forwardRef((w,R)=>{const{scope:C,children:A}=w,k=u(d,C),z=ze(R,k.collectionRef);return D.jsx(h,{ref:z,children:A})});p.displayName=d;const m=e+"CollectionItemSlot",y="data-radix-collection-item",b=Wi(m),x=_e.forwardRef((w,R)=>{const{scope:C,children:A,...k}=w,z=_e.useRef(null),L=ze(R,z),N=u(m,C);return _e.useEffect(()=>(N.itemMap.set(z,{ref:z,...k}),()=>void N.itemMap.delete(z))),D.jsx(b,{[y]:"",ref:L,children:A})});x.displayName=m;function E(w){const R=u(e+"CollectionConsumer",w);return _e.useCallback(()=>{const A=R.collectionRef.current;if(!A)return[];const k=Array.from(A.querySelectorAll(`[${y}]`));return Array.from(R.itemMap.values()).sort((N,j)=>k.indexOf(N.ref.current)-k.indexOf(j.ref.current))},[R.collectionRef,R.itemMap])}return a(E,"useCollection"),[{Provider:c,Slot:p,ItemSlot:x},E,o]}a(Fc,"createCollection");var NP=S.createContext(void 0);function hs(e){const t=S.useContext(NP);return e||t||"ltr"}a(hs,"useDirection");var qh="rovingFocusGroup.onEntryFocus",PP={bubbles:!1,cancelable:!0},ps="RovingFocusGroup",[jp,Yw,LP]=Fc(ps),[zP,qc]=$t(ps,[LP]),[IP,jP]=zP(ps),Kw=S.forwardRef((e,t)=>D.jsx(jp.Provider,{scope:e.__scopeRovingFocusGroup,children:D.jsx(jp.Slot,{scope:e.__scopeRovingFocusGroup,children:D.jsx(UP,{...e,ref:t})})}));Kw.displayName=ps;var UP=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:l=!1,dir:u,currentTabStopId:c,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:h,onEntryFocus:p,preventScrollOnEntryFocus:m=!1,...y}=e,b=S.useRef(null),x=ze(t,b),E=hs(u),[w,R]=pr({prop:c,defaultProp:d??null,onChange:h,caller:ps}),[C,A]=S.useState(!1),k=vt(p),z=Yw(r),L=S.useRef(!1),[N,j]=S.useState(0);return S.useEffect(()=>{const $=b.current;if($)return $.addEventListener(qh,k),()=>$.removeEventListener(qh,k)},[k]),D.jsx(IP,{scope:r,orientation:o,dir:E,loop:l,currentTabStopId:w,onItemFocus:S.useCallback($=>R($),[R]),onItemShiftTab:S.useCallback(()=>A(!0),[]),onFocusableItemAdd:S.useCallback(()=>j($=>$+1),[]),onFocusableItemRemove:S.useCallback(()=>j($=>$-1),[]),children:D.jsx(Ee.div,{tabIndex:C||N===0?-1:0,"data-orientation":o,...y,ref:x,style:{outline:"none",...e.style},onMouseDown:ye(e.onMouseDown,()=>{L.current=!0}),onFocus:ye(e.onFocus,$=>{const W=!L.current;if($.target===$.currentTarget&&W&&!C){const J=new CustomEvent(qh,PP);if($.currentTarget.dispatchEvent(J),!J.defaultPrevented){const X=z().filter(I=>I.focusable),Z=X.find(I=>I.active),ce=X.find(I=>I.id===w),ae=[Z,ce,...X].filter(Boolean).map(I=>I.ref.current);Ww(ae,m)}}L.current=!1}),onBlur:ye(e.onBlur,()=>A(!1))})})}),Qw="RovingFocusGroupItem",Xw=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:l=!1,tabStopId:u,children:c,...d}=e,h=Ln(),p=u||h,m=jP(Qw,r),y=m.currentTabStopId===p,b=Yw(r),{onFocusableItemAdd:x,onFocusableItemRemove:E,currentTabStopId:w}=m;return S.useEffect(()=>{if(o)return x(),()=>E()},[o,x,E]),D.jsx(jp.ItemSlot,{scope:r,id:p,focusable:o,active:l,children:D.jsx(Ee.span,{tabIndex:y?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:ye(e.onMouseDown,R=>{o?m.onItemFocus(p):R.preventDefault()}),onFocus:ye(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:ye(e.onKeyDown,R=>{if(R.key==="Tab"&&R.shiftKey){m.onItemShiftTab();return}if(R.target!==R.currentTarget)return;const C=FP(R,m.orientation,m.dir);if(C!==void 0){if(R.metaKey||R.ctrlKey||R.altKey||R.shiftKey)return;R.preventDefault();let k=b().filter(z=>z.focusable).map(z=>z.ref.current);if(C==="last")k.reverse();else if(C==="prev"||C==="next"){C==="prev"&&k.reverse();const z=k.indexOf(R.currentTarget);k=m.loop?qP(k,z+1):k.slice(z+1)}setTimeout(()=>Ww(k))}}),children:typeof c=="function"?c({isCurrentTabStop:y,hasTabStop:w!=null}):c})})});Xw.displayName=Qw;var BP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function HP(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}a(HP,"getDirectionAwareKey");function FP(e,t,r){const o=HP(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return BP[o]}a(FP,"getFocusIntent");function Ww(e,t=!1){const r=document.activeElement;for(const o of e)if(o===r||(o.focus({preventScroll:t}),document.activeElement!==r))return}a(Ww,"focusFirst$2");function qP(e,t){return e.map((r,o)=>e[(t+o)%e.length])}a(qP,"wrapArray$2");var Zw=Kw,Jw=Xw,Vc="Tabs",[VP]=$t(Vc,[qc]),eE=qc(),[GP,Vm]=VP(Vc),tE=S.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,onValueChange:l,defaultValue:u,orientation:c="horizontal",dir:d,activationMode:h="automatic",...p}=e,m=hs(d),[y,b]=pr({prop:o,onChange:l,defaultProp:u??"",caller:Vc});return D.jsx(GP,{scope:r,baseId:Ln(),value:y,onValueChange:b,orientation:c,dir:m,activationMode:h,children:D.jsx(Ee.div,{dir:m,"data-orientation":c,...p,ref:t})})});tE.displayName=Vc;var nE="TabsList",rE=S.forwardRef((e,t)=>{const{__scopeTabs:r,loop:o=!0,...l}=e,u=Vm(nE,r),c=eE(r);return D.jsx(Zw,{asChild:!0,...c,orientation:u.orientation,dir:u.dir,loop:o,children:D.jsx(Ee.div,{role:"tablist","aria-orientation":u.orientation,...l,ref:t})})});rE.displayName=nE;var iE="TabsTrigger",oE=S.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,disabled:l=!1,...u}=e,c=Vm(iE,r),d=eE(r),h=sE(c.baseId,o),p=uE(c.baseId,o),m=o===c.value;return D.jsx(Jw,{asChild:!0,...d,focusable:!l,active:m,children:D.jsx(Ee.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":p,"data-state":m?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:h,...u,ref:t,onMouseDown:ye(e.onMouseDown,y=>{!l&&y.button===0&&y.ctrlKey===!1?c.onValueChange(o):y.preventDefault()}),onKeyDown:ye(e.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&c.onValueChange(o)}),onFocus:ye(e.onFocus,()=>{const y=c.activationMode!=="manual";!m&&!l&&y&&c.onValueChange(o)})})})});oE.displayName=iE;var aE="TabsContent",lE=S.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,forceMount:l,children:u,...c}=e,d=Vm(aE,r),h=sE(d.baseId,o),p=uE(d.baseId,o),m=o===d.value,y=S.useRef(m);return S.useEffect(()=>{const b=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(b)},[]),D.jsx(It,{present:l||m,children:a(({present:b})=>D.jsx(Ee.div,{"data-state":m?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":h,hidden:!b,id:p,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:y.current?"0s":void 0},children:b&&u}),"children")})});lE.displayName=aE;function sE(e,t){return`${e}-trigger-${t}`}a(sE,"makeTriggerId");function uE(e,t){return`${e}-content-${t}`}a(uE,"makeContentId");var DU=tE,NU=rE,PU=oE,LU=lE;function cE(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}a(cE,"usePrevious");var $P=[" ","Enter","ArrowUp","ArrowDown"],YP=[" ","Enter"],no="Select",[Gc,$c,KP]=Fc(no),[Aa]=$t(no,[KP,Ta]),Yc=Ta(),[QP,Ti]=Aa(no),[XP,WP]=Aa(no),fE=a(e=>{const{__scopeSelect:t,children:r,open:o,defaultOpen:l,onOpenChange:u,value:c,defaultValue:d,onValueChange:h,dir:p,name:m,autoComplete:y,disabled:b,required:x,form:E}=e,w=Yc(t),[R,C]=S.useState(null),[A,k]=S.useState(null),[z,L]=S.useState(!1),N=hs(p),[j,$]=pr({prop:o,defaultProp:l??!1,onChange:u,caller:no}),[W,J]=pr({prop:c,defaultProp:d,onChange:h,caller:no}),X=S.useRef(null),Z=R?E||!!R.closest("form"):!0,[ce,q]=S.useState(new Set),ae=Array.from(ce).map(I=>I.props.value).join(";");return D.jsx(Rm,{...w,children:D.jsxs(QP,{required:x,scope:t,trigger:R,onTriggerChange:C,valueNode:A,onValueNodeChange:k,valueNodeHasChildren:z,onValueNodeHasChildrenChange:L,contentId:Ln(),value:W,onValueChange:J,open:j,onOpenChange:$,dir:N,triggerPointerDownPosRef:X,disabled:b,children:[D.jsx(Gc.Provider,{scope:t,children:D.jsx(XP,{scope:e.__scopeSelect,onNativeOptionAdd:S.useCallback(I=>{q(Q=>new Set(Q).add(I))},[]),onNativeOptionRemove:S.useCallback(I=>{q(Q=>{const te=new Set(Q);return te.delete(I),te})},[]),children:r})}),Z?D.jsxs(zE,{"aria-hidden":!0,required:x,tabIndex:-1,name:m,autoComplete:y,value:W,onChange:a(I=>J(I.target.value),"onChange"),disabled:b,form:E,children:[W===void 0?D.jsx("option",{value:""}):null,Array.from(ce)]},ae):null]})})},"Select");fE.displayName=no;var dE="SelectTrigger",hE=S.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:o=!1,...l}=e,u=Yc(r),c=Ti(dE,r),d=c.disabled||o,h=ze(t,c.onTriggerChange),p=$c(r),m=S.useRef("touch"),[y,b,x]=jE(w=>{const R=p().filter(k=>!k.disabled),C=R.find(k=>k.value===c.value),A=UE(R,w,C);A!==void 0&&c.onValueChange(A.value)}),E=a(w=>{d||(c.onOpenChange(!0),x()),w&&(c.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})},"handleOpen");return D.jsx(Om,{asChild:!0,...u,children:D.jsx(Ee.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":IE(c.value)?"":void 0,...l,ref:h,onClick:ye(l.onClick,w=>{w.currentTarget.focus(),m.current!=="mouse"&&E(w)}),onPointerDown:ye(l.onPointerDown,w=>{m.current=w.pointerType;const R=w.target;R.hasPointerCapture(w.pointerId)&&R.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(E(w),w.preventDefault())}),onKeyDown:ye(l.onKeyDown,w=>{const R=y.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&b(w.key),!(R&&w.key===" ")&&$P.includes(w.key)&&(E(),w.preventDefault())})})})});hE.displayName=dE;var pE="SelectValue",mE=S.forwardRef((e,t)=>{const{__scopeSelect:r,className:o,style:l,children:u,placeholder:c="",...d}=e,h=Ti(pE,r),{onValueNodeHasChildrenChange:p}=h,m=u!==void 0,y=ze(t,h.onValueNodeChange);return bt(()=>{p(m)},[p,m]),D.jsx(Ee.span,{...d,ref:y,style:{pointerEvents:"none"},children:IE(h.value)?D.jsx(D.Fragment,{children:c}):u})});mE.displayName=pE;var ZP="SelectIcon",gE=S.forwardRef((e,t)=>{const{__scopeSelect:r,children:o,...l}=e;return D.jsx(Ee.span,{"aria-hidden":!0,...l,ref:t,children:o||"▼"})});gE.displayName=ZP;var JP="SelectPortal",yE=a(e=>D.jsx(wa,{asChild:!0,...e}),"SelectPortal");yE.displayName=JP;var ro="SelectContent",vE=S.forwardRef((e,t)=>{const r=Ti(ro,e.__scopeSelect),[o,l]=S.useState();if(bt(()=>{l(new DocumentFragment)},[]),!r.open){const u=o;return u?dr.createPortal(D.jsx(bE,{scope:e.__scopeSelect,children:D.jsx(Gc.Slot,{scope:e.__scopeSelect,children:D.jsx("div",{children:e.children})})}),u):null}return D.jsx(SE,{...e,ref:t})});vE.displayName=ro;var Fn=10,[bE,Ri]=Aa(ro),eL="SelectContentImpl",tL=Wi("SelectContent.RemoveScroll"),SE=S.forwardRef((e,t)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,side:d,sideOffset:h,align:p,alignOffset:m,arrowPadding:y,collisionBoundary:b,collisionPadding:x,sticky:E,hideWhenDetached:w,avoidCollisions:R,...C}=e,A=Ti(ro,r),[k,z]=S.useState(null),[L,N]=S.useState(null),j=ze(t,K=>z(K)),[$,W]=S.useState(null),[J,X]=S.useState(null),Z=$c(r),[ce,q]=S.useState(!1),ae=S.useRef(!1);S.useEffect(()=>{if(k)return pm(k)},[k]),hm();const I=S.useCallback(K=>{const[fe,...Ce]=Z().map(qe=>qe.ref.current),[Te]=Ce.slice(-1),Pe=document.activeElement;for(const qe of K)if(qe===Pe||(qe?.scrollIntoView({block:"nearest"}),qe===fe&&L&&(L.scrollTop=0),qe===Te&&L&&(L.scrollTop=L.scrollHeight),qe?.focus(),document.activeElement!==Pe))return},[Z,L]),Q=S.useCallback(()=>I([$,k]),[I,$,k]);S.useEffect(()=>{ce&&Q()},[ce,Q]);const{onOpenChange:te,triggerPointerDownPosRef:se}=A;S.useEffect(()=>{if(k){let K={x:0,y:0};const fe=a(Te=>{K={x:Math.abs(Math.round(Te.pageX)-(se.current?.x??0)),y:Math.abs(Math.round(Te.pageY)-(se.current?.y??0))}},"handlePointerMove"),Ce=a(Te=>{K.x<=10&&K.y<=10?Te.preventDefault():k.contains(Te.target)||te(!1),document.removeEventListener("pointermove",fe),se.current=null},"handlePointerUp");return se.current!==null&&(document.addEventListener("pointermove",fe),document.addEventListener("pointerup",Ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",fe),document.removeEventListener("pointerup",Ce,{capture:!0})}}},[k,te,se]),S.useEffect(()=>{const K=a(()=>te(!1),"close");return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[te]);const[O,Y]=jE(K=>{const fe=Z().filter(Pe=>!Pe.disabled),Ce=fe.find(Pe=>Pe.ref.current===document.activeElement),Te=UE(fe,K,Ce);Te&&setTimeout(()=>Te.ref.current.focus())}),de=S.useCallback((K,fe,Ce)=>{const Te=!ae.current&&!Ce;(A.value!==void 0&&A.value===fe||Te)&&(W(K),Te&&(ae.current=!0))},[A.value]),M=S.useCallback(()=>k?.focus(),[k]),ne=S.useCallback((K,fe,Ce)=>{const Te=!ae.current&&!Ce;(A.value!==void 0&&A.value===fe||Te)&&X(K)},[A.value]),me=o==="popper"?Up:xE,oe=me===Up?{side:d,sideOffset:h,align:p,alignOffset:m,arrowPadding:y,collisionBoundary:b,collisionPadding:x,sticky:E,hideWhenDetached:w,avoidCollisions:R}:{};return D.jsx(bE,{scope:r,content:k,viewport:L,onViewportChange:N,itemRefCallback:de,selectedItem:$,onItemLeave:M,itemTextRefCallback:ne,focusSelectedItem:Q,selectedItemText:J,position:o,isPositioned:ce,searchRef:O,children:D.jsx(kc,{as:tL,allowPinchZoom:!0,children:D.jsx(Mc,{asChild:!0,trapped:A.open,onMountAutoFocus:a(K=>{K.preventDefault()},"onMountAutoFocus"),onUnmountAutoFocus:ye(l,K=>{A.trigger?.focus({preventScroll:!0}),K.preventDefault()}),children:D.jsx(xa,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:a(K=>K.preventDefault(),"onFocusOutside"),onDismiss:a(()=>A.onOpenChange(!1),"onDismiss"),children:D.jsx(me,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:a(K=>K.preventDefault(),"onContextMenu"),...C,...oe,onPlaced:a(()=>q(!0),"onPlaced"),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:ye(C.onKeyDown,K=>{const fe=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!fe&&K.key.length===1&&Y(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let Te=Z().filter(Pe=>!Pe.disabled).map(Pe=>Pe.ref.current);if(["ArrowUp","End"].includes(K.key)&&(Te=Te.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const Pe=K.target,qe=Te.indexOf(Pe);Te=Te.slice(qe+1)}setTimeout(()=>I(Te)),K.preventDefault()}})})})})})})});SE.displayName=eL;var nL="SelectItemAlignedPosition",xE=S.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:o,...l}=e,u=Ti(ro,r),c=Ri(ro,r),[d,h]=S.useState(null),[p,m]=S.useState(null),y=ze(t,j=>m(j)),b=$c(r),x=S.useRef(!1),E=S.useRef(!0),{viewport:w,selectedItem:R,selectedItemText:C,focusSelectedItem:A}=c,k=S.useCallback(()=>{if(u.trigger&&u.valueNode&&d&&p&&w&&R&&C){const j=u.trigger.getBoundingClientRect(),$=p.getBoundingClientRect(),W=u.valueNode.getBoundingClientRect(),J=C.getBoundingClientRect();if(u.dir!=="rtl"){const Pe=J.left-$.left,qe=W.left-Pe,Ie=j.left-qe,ut=j.width+Ie,Kt=Math.max(ut,$.width),an=window.innerWidth-Fn,St=Sp(qe,[Fn,Math.max(Fn,an-Kt)]);d.style.minWidth=ut+"px",d.style.left=St+"px"}else{const Pe=$.right-J.right,qe=window.innerWidth-W.right-Pe,Ie=window.innerWidth-j.right-qe,ut=j.width+Ie,Kt=Math.max(ut,$.width),an=window.innerWidth-Fn,St=Sp(qe,[Fn,Math.max(Fn,an-Kt)]);d.style.minWidth=ut+"px",d.style.right=St+"px"}const X=b(),Z=window.innerHeight-Fn*2,ce=w.scrollHeight,q=window.getComputedStyle(p),ae=parseInt(q.borderTopWidth,10),I=parseInt(q.paddingTop,10),Q=parseInt(q.borderBottomWidth,10),te=parseInt(q.paddingBottom,10),se=ae+I+ce+te+Q,O=Math.min(R.offsetHeight*5,se),Y=window.getComputedStyle(w),de=parseInt(Y.paddingTop,10),M=parseInt(Y.paddingBottom,10),ne=j.top+j.height/2-Fn,me=Z-ne,oe=R.offsetHeight/2,K=R.offsetTop+oe,fe=ae+I+K,Ce=se-fe;if(fe<=ne){const Pe=X.length>0&&R===X[X.length-1].ref.current;d.style.bottom="0px";const qe=p.clientHeight-w.offsetTop-w.offsetHeight,Ie=Math.max(me,oe+(Pe?M:0)+qe+Q),ut=fe+Ie;d.style.height=ut+"px"}else{const Pe=X.length>0&&R===X[0].ref.current;d.style.top="0px";const Ie=Math.max(ne,ae+w.offsetTop+(Pe?de:0)+oe)+Ce;d.style.height=Ie+"px",w.scrollTop=fe-ne+w.offsetTop}d.style.margin=`${Fn}px 0`,d.style.minHeight=O+"px",d.style.maxHeight=Z+"px",o?.(),requestAnimationFrame(()=>x.current=!0)}},[b,u.trigger,u.valueNode,d,p,w,R,C,u.dir,o]);bt(()=>k(),[k]);const[z,L]=S.useState();bt(()=>{p&&L(window.getComputedStyle(p).zIndex)},[p]);const N=S.useCallback(j=>{j&&E.current===!0&&(k(),A?.(),E.current=!1)},[k,A]);return D.jsx(iL,{scope:r,contentWrapper:d,shouldExpandOnScrollRef:x,onScrollButtonChange:N,children:D.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z},children:D.jsx(Ee.div,{...l,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});xE.displayName=nL;var rL="SelectPopperPosition",Up=S.forwardRef((e,t)=>{const{__scopeSelect:r,align:o="start",collisionPadding:l=Fn,...u}=e,c=Yc(r);return D.jsx(Am,{...c,...u,ref:t,align:o,collisionPadding:l,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Up.displayName=rL;var[iL,Gm]=Aa(ro,{}),Bp="SelectViewport",wE=S.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:o,...l}=e,u=Ri(Bp,r),c=Gm(Bp,r),d=ze(t,u.onViewportChange),h=S.useRef(0);return D.jsxs(D.Fragment,{children:[D.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),D.jsx(Gc.Slot,{scope:r,children:D.jsx(Ee.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:ye(l.onScroll,p=>{const m=p.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:b}=c;if(b?.current&&y){const x=Math.abs(h.current-m.scrollTop);if(x>0){const E=window.innerHeight-Fn*2,w=parseFloat(y.style.minHeight),R=parseFloat(y.style.height),C=Math.max(w,R);if(C<E){const A=C+x,k=Math.min(E,A),z=A-k;y.style.height=k+"px",y.style.bottom==="0px"&&(m.scrollTop=z>0?z:0,y.style.justifyContent="flex-end")}}}h.current=m.scrollTop})})})]})});wE.displayName=Bp;var EE="SelectGroup",[oL,aL]=Aa(EE),CE=S.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,l=Ln();return D.jsx(oL,{scope:r,id:l,children:D.jsx(Ee.div,{role:"group","aria-labelledby":l,...o,ref:t})})});CE.displayName=EE;var TE="SelectLabel",RE=S.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,l=aL(TE,r);return D.jsx(Ee.div,{id:l.id,...o,ref:t})});RE.displayName=TE;var pc="SelectItem",[lL,OE]=Aa(pc),AE=S.forwardRef((e,t)=>{const{__scopeSelect:r,value:o,disabled:l=!1,textValue:u,...c}=e,d=Ti(pc,r),h=Ri(pc,r),p=d.value===o,[m,y]=S.useState(u??""),[b,x]=S.useState(!1),E=ze(t,A=>h.itemRefCallback?.(A,o,l)),w=Ln(),R=S.useRef("touch"),C=a(()=>{l||(d.onValueChange(o),d.onOpenChange(!1))},"handleSelect");if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return D.jsx(lL,{scope:r,value:o,disabled:l,textId:w,isSelected:p,onItemTextChange:S.useCallback(A=>{y(k=>k||(A?.textContent??"").trim())},[]),children:D.jsx(Gc.ItemSlot,{scope:r,value:o,disabled:l,textValue:m,children:D.jsx(Ee.div,{role:"option","aria-labelledby":w,"data-highlighted":b?"":void 0,"aria-selected":p&&b,"data-state":p?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...c,ref:E,onFocus:ye(c.onFocus,()=>x(!0)),onBlur:ye(c.onBlur,()=>x(!1)),onClick:ye(c.onClick,()=>{R.current!=="mouse"&&C()}),onPointerUp:ye(c.onPointerUp,()=>{R.current==="mouse"&&C()}),onPointerDown:ye(c.onPointerDown,A=>{R.current=A.pointerType}),onPointerMove:ye(c.onPointerMove,A=>{R.current=A.pointerType,l?h.onItemLeave?.():R.current==="mouse"&&A.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ye(c.onPointerLeave,A=>{A.currentTarget===document.activeElement&&h.onItemLeave?.()}),onKeyDown:ye(c.onKeyDown,A=>{h.searchRef?.current!==""&&A.key===" "||(YP.includes(A.key)&&C(),A.key===" "&&A.preventDefault())})})})})});AE.displayName=pc;var Hl="SelectItemText",ME=S.forwardRef((e,t)=>{const{__scopeSelect:r,className:o,style:l,...u}=e,c=Ti(Hl,r),d=Ri(Hl,r),h=OE(Hl,r),p=WP(Hl,r),[m,y]=S.useState(null),b=ze(t,C=>y(C),h.onItemTextChange,C=>d.itemTextRefCallback?.(C,h.value,h.disabled)),x=m?.textContent,E=S.useMemo(()=>D.jsx("option",{value:h.value,disabled:h.disabled,children:x},h.value),[h.disabled,h.value,x]),{onNativeOptionAdd:w,onNativeOptionRemove:R}=p;return bt(()=>(w(E),()=>R(E)),[w,R,E]),D.jsxs(D.Fragment,{children:[D.jsx(Ee.span,{id:h.textId,...u,ref:b}),h.isSelected&&c.valueNode&&!c.valueNodeHasChildren?dr.createPortal(u.children,c.valueNode):null]})});ME.displayName=Hl;var _E="SelectItemIndicator",kE=S.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e;return OE(_E,r).isSelected?D.jsx(Ee.span,{"aria-hidden":!0,...o,ref:t}):null});kE.displayName=_E;var Hp="SelectScrollUpButton",DE=S.forwardRef((e,t)=>{const r=Ri(Hp,e.__scopeSelect),o=Gm(Hp,e.__scopeSelect),[l,u]=S.useState(!1),c=ze(t,o.onScrollButtonChange);return bt(()=>{if(r.viewport&&r.isPositioned){let d=a(function(){const p=h.scrollTop>0;u(p)},"handleScroll2");const h=r.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[r.viewport,r.isPositioned]),l?D.jsx(PE,{...e,ref:c,onAutoScroll:a(()=>{const{viewport:d,selectedItem:h}=r;d&&h&&(d.scrollTop=d.scrollTop-h.offsetHeight)},"onAutoScroll")}):null});DE.displayName=Hp;var Fp="SelectScrollDownButton",NE=S.forwardRef((e,t)=>{const r=Ri(Fp,e.__scopeSelect),o=Gm(Fp,e.__scopeSelect),[l,u]=S.useState(!1),c=ze(t,o.onScrollButtonChange);return bt(()=>{if(r.viewport&&r.isPositioned){let d=a(function(){const p=h.scrollHeight-h.clientHeight,m=Math.ceil(h.scrollTop)<p;u(m)},"handleScroll2");const h=r.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[r.viewport,r.isPositioned]),l?D.jsx(PE,{...e,ref:c,onAutoScroll:a(()=>{const{viewport:d,selectedItem:h}=r;d&&h&&(d.scrollTop=d.scrollTop+h.offsetHeight)},"onAutoScroll")}):null});NE.displayName=Fp;var PE=S.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:o,...l}=e,u=Ri("SelectScrollButton",r),c=S.useRef(null),d=$c(r),h=S.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return S.useEffect(()=>()=>h(),[h]),bt(()=>{d().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[d]),D.jsx(Ee.div,{"aria-hidden":!0,...l,ref:t,style:{flexShrink:0,...l.style},onPointerDown:ye(l.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(o,50))}),onPointerMove:ye(l.onPointerMove,()=>{u.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(o,50))}),onPointerLeave:ye(l.onPointerLeave,()=>{h()})})}),sL="SelectSeparator",LE=S.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e;return D.jsx(Ee.div,{"aria-hidden":!0,...o,ref:t})});LE.displayName=sL;var qp="SelectArrow",uL=S.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,l=Yc(r),u=Ti(qp,r),c=Ri(qp,r);return u.open&&c.position==="popper"?D.jsx(Mm,{...l,...o,ref:t}):null});uL.displayName=qp;var cL="SelectBubbleInput",zE=S.forwardRef(({__scopeSelect:e,value:t,...r},o)=>{const l=S.useRef(null),u=ze(o,l),c=cE(t);return S.useEffect(()=>{const d=l.current;if(!d)return;const h=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(h,"value").set;if(c!==t&&m){const y=new Event("change",{bubbles:!0});m.call(d,t),d.dispatchEvent(y)}},[c,t]),D.jsx(Ee.select,{...r,style:{...nw,...r.style},ref:u,defaultValue:t})});zE.displayName=cL;function IE(e){return e===""||e===void 0}a(IE,"shouldShowPlaceholder");function jE(e){const t=vt(e),r=S.useRef(""),o=S.useRef(0),l=S.useCallback(c=>{const d=r.current+c;t(d),a((function h(p){r.current=p,window.clearTimeout(o.current),p!==""&&(o.current=window.setTimeout(()=>h(""),1e3))}),"updateSearch")(d)},[t]),u=S.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return S.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,l,u]}a(jE,"useTypeaheadSearch");function UE(e,t,r){const l=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,u=r?e.indexOf(r):-1;let c=fL(e,Math.max(u,0));l.length===1&&(c=c.filter(p=>p!==r));const h=c.find(p=>p.textValue.toLowerCase().startsWith(l.toLowerCase()));return h!==r?h:void 0}a(UE,"findNextItem");function fL(e,t){return e.map((r,o)=>e[(t+o)%e.length])}a(fL,"wrapArray$1");var zU=fE,IU=hE,jU=mE,UU=gE,BU=yE,HU=vE,FU=wE,qU=CE,VU=RE,GU=AE,$U=ME,YU=kE,KU=DE,QU=NE,XU=LE,Vp=["Enter"," "],dL=["ArrowDown","PageUp","Home"],BE=["ArrowUp","PageDown","End"],hL=[...dL,...BE],pL={ltr:[...Vp,"ArrowRight"],rtl:[...Vp,"ArrowLeft"]},mL={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ms="Menu",[ts,gL,yL]=Fc(ms),[lo,HE]=$t(ms,[yL,Ta,qc]),Kc=Ta(),FE=qc(),[vL,so]=lo(ms),[bL,gs]=lo(ms),qE=a(e=>{const{__scopeMenu:t,open:r=!1,children:o,dir:l,onOpenChange:u,modal:c=!0}=e,d=Kc(t),[h,p]=S.useState(null),m=S.useRef(!1),y=vt(u),b=hs(l);return S.useEffect(()=>{const x=a(()=>{m.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},"handleKeyDown"),E=a(()=>m.current=!1,"handlePointer");return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),D.jsx(Rm,{...d,children:D.jsx(vL,{scope:t,open:r,onOpenChange:y,content:h,onContentChange:p,children:D.jsx(bL,{scope:t,onClose:S.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:m,dir:b,modal:c,children:o})})})},"Menu");qE.displayName=ms;var SL="MenuAnchor",$m=S.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e,l=Kc(r);return D.jsx(Om,{...l,...o,ref:t})});$m.displayName=SL;var Ym="MenuPortal",[xL,VE]=lo(Ym,{forceMount:void 0}),GE=a(e=>{const{__scopeMenu:t,forceMount:r,children:o,container:l}=e,u=so(Ym,t);return D.jsx(xL,{scope:t,forceMount:r,children:D.jsx(It,{present:r||u.open,children:D.jsx(wa,{asChild:!0,container:l,children:o})})})},"MenuPortal");GE.displayName=Ym;var zn="MenuContent",[wL,Km]=lo(zn),$E=S.forwardRef((e,t)=>{const r=VE(zn,e.__scopeMenu),{forceMount:o=r.forceMount,...l}=e,u=so(zn,e.__scopeMenu),c=gs(zn,e.__scopeMenu);return D.jsx(ts.Provider,{scope:e.__scopeMenu,children:D.jsx(It,{present:o||u.open,children:D.jsx(ts.Slot,{scope:e.__scopeMenu,children:c.modal?D.jsx(EL,{...l,ref:t}):D.jsx(CL,{...l,ref:t})})})})}),EL=S.forwardRef((e,t)=>{const r=so(zn,e.__scopeMenu),o=S.useRef(null),l=ze(t,o);return S.useEffect(()=>{const u=o.current;if(u)return pm(u)},[]),D.jsx(Qm,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ye(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:a(()=>r.onOpenChange(!1),"onDismiss")})}),CL=S.forwardRef((e,t)=>{const r=so(zn,e.__scopeMenu);return D.jsx(Qm,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:a(()=>r.onOpenChange(!1),"onDismiss")})}),TL=Wi("MenuContent.ScrollLock"),Qm=S.forwardRef((e,t)=>{const{__scopeMenu:r,loop:o=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEntryFocus:h,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:x,disableOutsideScroll:E,...w}=e,R=so(zn,r),C=gs(zn,r),A=Kc(r),k=FE(r),z=gL(r),[L,N]=S.useState(null),j=S.useRef(null),$=ze(t,j,R.onContentChange),W=S.useRef(0),J=S.useRef(""),X=S.useRef(0),Z=S.useRef(null),ce=S.useRef("right"),q=S.useRef(0),ae=E?kc:S.Fragment,I=E?{as:TL,allowPinchZoom:!0}:void 0,Q=a(se=>{const O=J.current+se,Y=z().filter(K=>!K.disabled),de=document.activeElement,M=Y.find(K=>K.ref.current===de)?.textValue,ne=Y.map(K=>K.textValue),me=IL(ne,O,M),oe=Y.find(K=>K.textValue===me)?.ref.current;a((function K(fe){J.current=fe,window.clearTimeout(W.current),fe!==""&&(W.current=window.setTimeout(()=>K(""),1e3))}),"updateSearch")(O),oe&&setTimeout(()=>oe.focus())},"handleTypeaheadSearch");S.useEffect(()=>()=>window.clearTimeout(W.current),[]),hm();const te=S.useCallback(se=>ce.current===Z.current?.side&&UL(se,Z.current?.area),[]);return D.jsx(wL,{scope:r,searchRef:J,onItemEnter:S.useCallback(se=>{te(se)&&se.preventDefault()},[te]),onItemLeave:S.useCallback(se=>{te(se)||(j.current?.focus(),N(null))},[te]),onTriggerLeave:S.useCallback(se=>{te(se)&&se.preventDefault()},[te]),pointerGraceTimerRef:X,onPointerGraceIntentChange:S.useCallback(se=>{Z.current=se},[]),children:D.jsx(ae,{...I,children:D.jsx(Mc,{asChild:!0,trapped:l,onMountAutoFocus:ye(u,se=>{se.preventDefault(),j.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:D.jsx(xa,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:x,children:D.jsx(Zw,{asChild:!0,...k,dir:C.dir,orientation:"vertical",loop:o,currentTabStopId:L,onCurrentTabStopIdChange:N,onEntryFocus:ye(h,se=>{C.isUsingKeyboardRef.current||se.preventDefault()}),preventScrollOnEntryFocus:!0,children:D.jsx(Am,{role:"menu","aria-orientation":"vertical","data-state":sC(R.open),"data-radix-menu-content":"",dir:C.dir,...A,...w,ref:$,style:{outline:"none",...w.style},onKeyDown:ye(w.onKeyDown,se=>{const Y=se.target.closest("[data-radix-menu-content]")===se.currentTarget,de=se.ctrlKey||se.altKey||se.metaKey,M=se.key.length===1;Y&&(se.key==="Tab"&&se.preventDefault(),!de&&M&&Q(se.key));const ne=j.current;if(se.target!==ne||!hL.includes(se.key))return;se.preventDefault();const oe=z().filter(K=>!K.disabled).map(K=>K.ref.current);BE.includes(se.key)&&oe.reverse(),LL(oe)}),onBlur:ye(e.onBlur,se=>{se.currentTarget.contains(se.target)||(window.clearTimeout(W.current),J.current="")}),onPointerMove:ye(e.onPointerMove,ns(se=>{const O=se.target,Y=q.current!==se.clientX;if(se.currentTarget.contains(O)&&Y){const de=se.clientX>q.current?"right":"left";ce.current=de,q.current=se.clientX}}))})})})})})})});$E.displayName=zn;var RL="MenuGroup",Xm=S.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e;return D.jsx(Ee.div,{role:"group",...o,ref:t})});Xm.displayName=RL;var OL="MenuLabel",YE=S.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e;return D.jsx(Ee.div,{...o,ref:t})});YE.displayName=OL;var mc="MenuItem",S1="menu.itemSelect",Qc=S.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:o,...l}=e,u=S.useRef(null),c=gs(mc,e.__scopeMenu),d=Km(mc,e.__scopeMenu),h=ze(t,u),p=S.useRef(!1),m=a(()=>{const y=u.current;if(!r&&y){const b=new CustomEvent(S1,{bubbles:!0,cancelable:!0});y.addEventListener(S1,x=>o?.(x),{once:!0}),dm(y,b),b.defaultPrevented?p.current=!1:c.onClose()}},"handleSelect");return D.jsx(KE,{...l,ref:h,disabled:r,onClick:ye(e.onClick,m),onPointerDown:a(y=>{e.onPointerDown?.(y),p.current=!0},"onPointerDown"),onPointerUp:ye(e.onPointerUp,y=>{p.current||y.currentTarget?.click()}),onKeyDown:ye(e.onKeyDown,y=>{const b=d.searchRef.current!=="";r||b&&y.key===" "||Vp.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});Qc.displayName=mc;var KE=S.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:o=!1,textValue:l,...u}=e,c=Km(mc,r),d=FE(r),h=S.useRef(null),p=ze(t,h),[m,y]=S.useState(!1),[b,x]=S.useState("");return S.useEffect(()=>{const E=h.current;E&&x((E.textContent??"").trim())},[u.children]),D.jsx(ts.ItemSlot,{scope:r,disabled:o,textValue:l??b,children:D.jsx(Jw,{asChild:!0,...d,focusable:!o,children:D.jsx(Ee.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...u,ref:p,onPointerMove:ye(e.onPointerMove,ns(E=>{o?c.onItemLeave(E):(c.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ye(e.onPointerLeave,ns(E=>c.onItemLeave(E))),onFocus:ye(e.onFocus,()=>y(!0)),onBlur:ye(e.onBlur,()=>y(!1))})})})}),AL="MenuCheckboxItem",QE=S.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:o,...l}=e;return D.jsx(eC,{scope:e.__scopeMenu,checked:r,children:D.jsx(Qc,{role:"menuitemcheckbox","aria-checked":gc(r)?"mixed":r,...l,ref:t,"data-state":Zm(r),onSelect:ye(l.onSelect,()=>o?.(gc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});QE.displayName=AL;var XE="MenuRadioGroup",[ML,_L]=lo(XE,{value:void 0,onValueChange:a(()=>{},"onValueChange")}),WE=S.forwardRef((e,t)=>{const{value:r,onValueChange:o,...l}=e,u=vt(o);return D.jsx(ML,{scope:e.__scopeMenu,value:r,onValueChange:u,children:D.jsx(Xm,{...l,ref:t})})});WE.displayName=XE;var ZE="MenuRadioItem",JE=S.forwardRef((e,t)=>{const{value:r,...o}=e,l=_L(ZE,e.__scopeMenu),u=r===l.value;return D.jsx(eC,{scope:e.__scopeMenu,checked:u,children:D.jsx(Qc,{role:"menuitemradio","aria-checked":u,...o,ref:t,"data-state":Zm(u),onSelect:ye(o.onSelect,()=>l.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});JE.displayName=ZE;var Wm="MenuItemIndicator",[eC,kL]=lo(Wm,{checked:!1}),tC=S.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:o,...l}=e,u=kL(Wm,r);return D.jsx(It,{present:o||gc(u.checked)||u.checked===!0,children:D.jsx(Ee.span,{...l,ref:t,"data-state":Zm(u.checked)})})});tC.displayName=Wm;var DL="MenuSeparator",nC=S.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e;return D.jsx(Ee.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});nC.displayName=DL;var NL="MenuArrow",rC=S.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e,l=Kc(r);return D.jsx(Mm,{...l,...o,ref:t})});rC.displayName=NL;var PL="MenuSub",[WU,iC]=lo(PL),Fl="MenuSubTrigger",oC=S.forwardRef((e,t)=>{const r=so(Fl,e.__scopeMenu),o=gs(Fl,e.__scopeMenu),l=iC(Fl,e.__scopeMenu),u=Km(Fl,e.__scopeMenu),c=S.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:h}=u,p={__scopeMenu:e.__scopeMenu},m=S.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return S.useEffect(()=>m,[m]),S.useEffect(()=>{const y=d.current;return()=>{window.clearTimeout(y),h(null)}},[d,h]),D.jsx($m,{asChild:!0,...p,children:D.jsx(KE,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":sC(r.open),...e,ref:Ac(t,l.onTriggerChange),onClick:a(y=>{e.onClick?.(y),!(e.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),r.open||r.onOpenChange(!0))},"onClick"),onPointerMove:ye(e.onPointerMove,ns(y=>{u.onItemEnter(y),!y.defaultPrevented&&!e.disabled&&!r.open&&!c.current&&(u.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),m()},100))})),onPointerLeave:ye(e.onPointerLeave,ns(y=>{m();const b=r.content?.getBoundingClientRect();if(b){const x=r.content?.dataset.side,E=x==="right",w=E?-5:5,R=b[E?"left":"right"],C=b[E?"right":"left"];u.onPointerGraceIntentChange({area:[{x:y.clientX+w,y:y.clientY},{x:R,y:b.top},{x:C,y:b.top},{x:C,y:b.bottom},{x:R,y:b.bottom}],side:x}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(y),y.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:ye(e.onKeyDown,y=>{const b=u.searchRef.current!=="";e.disabled||b&&y.key===" "||pL[o.dir].includes(y.key)&&(r.onOpenChange(!0),r.content?.focus(),y.preventDefault())})})})});oC.displayName=Fl;var aC="MenuSubContent",lC=S.forwardRef((e,t)=>{const r=VE(zn,e.__scopeMenu),{forceMount:o=r.forceMount,...l}=e,u=so(zn,e.__scopeMenu),c=gs(zn,e.__scopeMenu),d=iC(aC,e.__scopeMenu),h=S.useRef(null),p=ze(t,h);return D.jsx(ts.Provider,{scope:e.__scopeMenu,children:D.jsx(It,{present:o||u.open,children:D.jsx(ts.Slot,{scope:e.__scopeMenu,children:D.jsx(Qm,{id:d.contentId,"aria-labelledby":d.triggerId,...l,ref:p,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:a(m=>{c.isUsingKeyboardRef.current&&h.current?.focus(),m.preventDefault()},"onOpenAutoFocus"),onCloseAutoFocus:a(m=>m.preventDefault(),"onCloseAutoFocus"),onFocusOutside:ye(e.onFocusOutside,m=>{m.target!==d.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:ye(e.onEscapeKeyDown,m=>{c.onClose(),m.preventDefault()}),onKeyDown:ye(e.onKeyDown,m=>{const y=m.currentTarget.contains(m.target),b=mL[c.dir].includes(m.key);y&&b&&(u.onOpenChange(!1),d.trigger?.focus(),m.preventDefault())})})})})})});lC.displayName=aC;function sC(e){return e?"open":"closed"}a(sC,"getOpenState");function gc(e){return e==="indeterminate"}a(gc,"isIndeterminate");function Zm(e){return gc(e)?"indeterminate":e?"checked":"unchecked"}a(Zm,"getCheckedState");function LL(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}a(LL,"focusFirst$1");function zL(e,t){return e.map((r,o)=>e[(t+o)%e.length])}a(zL,"wrapArray");function IL(e,t,r){const l=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,u=r?e.indexOf(r):-1;let c=zL(e,Math.max(u,0));l.length===1&&(c=c.filter(p=>p!==r));const h=c.find(p=>p.toLowerCase().startsWith(l.toLowerCase()));return h!==r?h:void 0}a(IL,"getNextMatch");function jL(e,t){const{x:r,y:o}=e;let l=!1;for(let u=0,c=t.length-1;u<t.length;c=u++){const d=t[u],h=t[c],p=d.x,m=d.y,y=h.x,b=h.y;m>o!=b>o&&r<(y-p)*(o-m)/(b-m)+p&&(l=!l)}return l}a(jL,"isPointInPolygon");function UL(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return jL(r,t)}a(UL,"isPointerInGraceArea");function ns(e){return t=>t.pointerType==="mouse"?e(t):void 0}a(ns,"whenMouse");var BL=qE,HL=$m,FL=GE,qL=$E,VL=Xm,GL=YE,$L=Qc,YL=QE,KL=WE,QL=JE,XL=tC,WL=nC,ZL=rC,JL=oC,e3=lC,Xc="DropdownMenu",[t3]=$t(Xc,[HE]),Yt=HE(),[n3,uC]=t3(Xc),cC=a(e=>{const{__scopeDropdownMenu:t,children:r,dir:o,open:l,defaultOpen:u,onOpenChange:c,modal:d=!0}=e,h=Yt(t),p=S.useRef(null),[m,y]=pr({prop:l,defaultProp:u??!1,onChange:c,caller:Xc});return D.jsx(n3,{scope:t,triggerId:Ln(),triggerRef:p,contentId:Ln(),open:m,onOpenChange:y,onOpenToggle:S.useCallback(()=>y(b=>!b),[y]),modal:d,children:D.jsx(BL,{...h,open:m,onOpenChange:y,dir:o,modal:d,children:r})})},"DropdownMenu");cC.displayName=Xc;var fC="DropdownMenuTrigger",dC=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:o=!1,...l}=e,u=uC(fC,r),c=Yt(r);return D.jsx(HL,{asChild:!0,...c,children:D.jsx(Ee.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...l,ref:Ac(t,u.triggerRef),onPointerDown:ye(e.onPointerDown,d=>{!o&&d.button===0&&d.ctrlKey===!1&&(u.onOpenToggle(),u.open||d.preventDefault())}),onKeyDown:ye(e.onKeyDown,d=>{o||(["Enter"," "].includes(d.key)&&u.onOpenToggle(),d.key==="ArrowDown"&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(d.key)&&d.preventDefault())})})})});dC.displayName=fC;var r3="DropdownMenuPortal",hC=a(e=>{const{__scopeDropdownMenu:t,...r}=e,o=Yt(t);return D.jsx(FL,{...o,...r})},"DropdownMenuPortal");hC.displayName=r3;var pC="DropdownMenuContent",mC=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=uC(pC,r),u=Yt(r),c=S.useRef(!1);return D.jsx(qL,{id:l.contentId,"aria-labelledby":l.triggerId,...u,...o,ref:t,onCloseAutoFocus:ye(e.onCloseAutoFocus,d=>{c.current||l.triggerRef.current?.focus(),c.current=!1,d.preventDefault()}),onInteractOutside:ye(e.onInteractOutside,d=>{const h=d.detail.originalEvent,p=h.button===0&&h.ctrlKey===!0,m=h.button===2||p;(!l.modal||m)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});mC.displayName=pC;var i3="DropdownMenuGroup",o3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(VL,{...l,...o,ref:t})});o3.displayName=i3;var a3="DropdownMenuLabel",gC=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(GL,{...l,...o,ref:t})});gC.displayName=a3;var l3="DropdownMenuItem",yC=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx($L,{...l,...o,ref:t})});yC.displayName=l3;var s3="DropdownMenuCheckboxItem",u3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(YL,{...l,...o,ref:t})});u3.displayName=s3;var c3="DropdownMenuRadioGroup",f3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(KL,{...l,...o,ref:t})});f3.displayName=c3;var d3="DropdownMenuRadioItem",h3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(QL,{...l,...o,ref:t})});h3.displayName=d3;var p3="DropdownMenuItemIndicator",m3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(XL,{...l,...o,ref:t})});m3.displayName=p3;var g3="DropdownMenuSeparator",vC=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(WL,{...l,...o,ref:t})});vC.displayName=g3;var y3="DropdownMenuArrow",v3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(ZL,{...l,...o,ref:t})});v3.displayName=y3;var b3="DropdownMenuSubTrigger",S3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(JL,{...l,...o,ref:t})});S3.displayName=b3;var x3="DropdownMenuSubContent",w3=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,l=Yt(r);return D.jsx(e3,{...l,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});w3.displayName=x3;var ZU=cC,JU=dC,eB=hC,tB=mC,nB=gC,rB=yC,iB=vC,bC="AlertDialog",[E3]=$t(bC,[gx]),Gr=gx(),SC=a(e=>{const{__scopeAlertDialog:t,...r}=e,o=Gr(t);return D.jsx($_,{...o,...r,modal:!0})},"AlertDialog");SC.displayName=bC;var C3="AlertDialogTrigger",T3=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,l=Gr(r);return D.jsx(Y_,{...l,...o,ref:t})});T3.displayName=C3;var R3="AlertDialogPortal",xC=a(e=>{const{__scopeAlertDialog:t,...r}=e,o=Gr(t);return D.jsx(K_,{...o,...r})},"AlertDialogPortal");xC.displayName=R3;var O3="AlertDialogOverlay",wC=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,l=Gr(r);return D.jsx(Q_,{...l,...o,ref:t})});wC.displayName=O3;var ca="AlertDialogContent",[A3,M3]=E3(ca),_3=tx("AlertDialogContent"),EC=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:o,...l}=e,u=Gr(r),c=S.useRef(null),d=ze(t,c),h=S.useRef(null);return D.jsx(F_,{contentName:ca,titleName:CC,docsSlug:"alert-dialog",children:D.jsx(A3,{scope:r,cancelRef:h,children:D.jsxs(X_,{role:"alertdialog",...u,...l,ref:d,onOpenAutoFocus:ye(l.onOpenAutoFocus,p=>{p.preventDefault(),h.current?.focus({preventScroll:!0})}),onPointerDownOutside:a(p=>p.preventDefault(),"onPointerDownOutside"),onInteractOutside:a(p=>p.preventDefault(),"onInteractOutside"),children:[D.jsx(_3,{children:o}),D.jsx(D3,{contentRef:c})]})})})});EC.displayName=ca;var CC="AlertDialogTitle",TC=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,l=Gr(r);return D.jsx(W_,{...l,...o,ref:t})});TC.displayName=CC;var RC="AlertDialogDescription",OC=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,l=Gr(r);return D.jsx(Z_,{...l,...o,ref:t})});OC.displayName=RC;var k3="AlertDialogAction",AC=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,l=Gr(r);return D.jsx(Dx,{...l,...o,ref:t})});AC.displayName=k3;var MC="AlertDialogCancel",_C=S.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,{cancelRef:l}=M3(MC,r),u=Gr(r),c=ze(t,l);return D.jsx(Dx,{...u,...o,ref:c})});_C.displayName=MC;var D3=a(({contentRef:e})=>{const t=`\`${ca}\` requires a description for the component to be accessible for screen reader users.
470
470
 
471
471
  You can add a description to the \`${ca}\` by passing a \`${RC}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
472
472
 
473
473
  Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ca}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
474
474
 
475
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return S.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},"DescriptionWarning"),oB=SC,aB=xC,lB=wC,sB=EC,uB=AC,cB=_C,fB=TC,dB=OC;function N3(e,t){return S.useReducer((r,o)=>t[r][o]??r,e)}a(N3,"useStateMachine");var Jm="ScrollArea",[kC]=$t(Jm),[P3,In]=kC(Jm),DC=S.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:o="hover",dir:l,scrollHideDelay:u=600,...c}=e,[d,p]=S.useState(null),[h,m]=S.useState(null),[y,b]=S.useState(null),[x,E]=S.useState(null),[w,R]=S.useState(null),[C,A]=S.useState(0),[k,z]=S.useState(0),[L,N]=S.useState(!1),[j,$]=S.useState(!1),W=ze(t,X=>p(X)),J=ps(l);return D.jsx(P3,{scope:r,type:o,dir:J,scrollHideDelay:u,scrollArea:d,viewport:h,onViewportChange:m,content:y,onContentChange:b,scrollbarX:x,onScrollbarXChange:E,scrollbarXEnabled:L,onScrollbarXEnabledChange:N,scrollbarY:w,onScrollbarYChange:R,scrollbarYEnabled:j,onScrollbarYEnabledChange:$,onCornerWidthChange:A,onCornerHeightChange:z,children:D.jsx(Ee.div,{dir:J,...c,ref:W,style:{position:"relative","--radix-scroll-area-corner-width":C+"px","--radix-scroll-area-corner-height":k+"px",...e.style}})})});DC.displayName=Jm;var NC="ScrollAreaViewport",PC=S.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:o,nonce:l,...u}=e,c=In(NC,r),d=S.useRef(null),p=ze(t,d,c.onViewportChange);return D.jsxs(D.Fragment,{children:[D.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),D.jsx(Ee.div,{"data-radix-scroll-area-viewport":"",...u,ref:p,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:D.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});PC.displayName=NC;var Sr="ScrollAreaScrollbar",L3=S.forwardRef((e,t)=>{const{forceMount:r,...o}=e,l=In(Sr,e.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:c}=l,d=e.orientation==="horizontal";return S.useEffect(()=>(d?u(!0):c(!0),()=>{d?u(!1):c(!1)}),[d,u,c]),l.type==="hover"?D.jsx(z3,{...o,ref:t,forceMount:r}):l.type==="scroll"?D.jsx(I3,{...o,ref:t,forceMount:r}):l.type==="auto"?D.jsx(LC,{...o,ref:t,forceMount:r}):l.type==="always"?D.jsx(eg,{...o,ref:t}):null});L3.displayName=Sr;var z3=S.forwardRef((e,t)=>{const{forceMount:r,...o}=e,l=In(Sr,e.__scopeScrollArea),[u,c]=S.useState(!1);return S.useEffect(()=>{const d=l.scrollArea;let p=0;if(d){const h=a(()=>{window.clearTimeout(p),c(!0)},"handlePointerEnter"),m=a(()=>{p=window.setTimeout(()=>c(!1),l.scrollHideDelay)},"handlePointerLeave");return d.addEventListener("pointerenter",h),d.addEventListener("pointerleave",m),()=>{window.clearTimeout(p),d.removeEventListener("pointerenter",h),d.removeEventListener("pointerleave",m)}}},[l.scrollArea,l.scrollHideDelay]),D.jsx(It,{present:r||u,children:D.jsx(LC,{"data-state":u?"visible":"hidden",...o,ref:t})})}),I3=S.forwardRef((e,t)=>{const{forceMount:r,...o}=e,l=In(Sr,e.__scopeScrollArea),u=e.orientation==="horizontal",c=Zc(()=>p("SCROLL_END"),100),[d,p]=N3("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return S.useEffect(()=>{if(d==="idle"){const h=window.setTimeout(()=>p("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(h)}},[d,l.scrollHideDelay,p]),S.useEffect(()=>{const h=l.viewport,m=u?"scrollLeft":"scrollTop";if(h){let y=h[m];const b=a(()=>{const x=h[m];y!==x&&(p("SCROLL"),c()),y=x},"handleScroll");return h.addEventListener("scroll",b),()=>h.removeEventListener("scroll",b)}},[l.viewport,u,p,c]),D.jsx(It,{present:r||d!=="hidden",children:D.jsx(eg,{"data-state":d==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:ye(e.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ye(e.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),LC=S.forwardRef((e,t)=>{const r=In(Sr,e.__scopeScrollArea),{forceMount:o,...l}=e,[u,c]=S.useState(!1),d=e.orientation==="horizontal",p=Zc(()=>{if(r.viewport){const h=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;c(d?h:m)}},10);return ga(r.viewport,p),ga(r.content,p),D.jsx(It,{present:o||u,children:D.jsx(eg,{"data-state":u?"visible":"hidden",...l,ref:t})})}),eg=S.forwardRef((e,t)=>{const{orientation:r="vertical",...o}=e,l=In(Sr,e.__scopeScrollArea),u=S.useRef(null),c=S.useRef(0),[d,p]=S.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=UC(d.viewport,d.content),m={...o,sizes:d,onSizesChange:p,hasThumb:h>0&&h<1,onThumbChange:a(b=>u.current=b,"onThumbChange"),onThumbPointerUp:a(()=>c.current=0,"onThumbPointerUp"),onThumbPointerDown:a(b=>c.current=b,"onThumbPointerDown")};function y(b,x){return V3(b,c.current,d,x)}return a(y,"getScrollPosition"),r==="horizontal"?D.jsx(j3,{...m,ref:t,onThumbPositionChange:a(()=>{if(l.viewport&&u.current){const b=l.viewport.scrollLeft,x=x1(b,d,l.dir);u.current.style.transform=`translate3d(${x}px, 0, 0)`}},"onThumbPositionChange"),onWheelScroll:a(b=>{l.viewport&&(l.viewport.scrollLeft=b)},"onWheelScroll"),onDragScroll:a(b=>{l.viewport&&(l.viewport.scrollLeft=y(b,l.dir))},"onDragScroll")}):r==="vertical"?D.jsx(U3,{...m,ref:t,onThumbPositionChange:a(()=>{if(l.viewport&&u.current){const b=l.viewport.scrollTop,x=x1(b,d);u.current.style.transform=`translate3d(0, ${x}px, 0)`}},"onThumbPositionChange"),onWheelScroll:a(b=>{l.viewport&&(l.viewport.scrollTop=b)},"onWheelScroll"),onDragScroll:a(b=>{l.viewport&&(l.viewport.scrollTop=y(b))},"onDragScroll")}):null}),j3=S.forwardRef((e,t)=>{const{sizes:r,onSizesChange:o,...l}=e,u=In(Sr,e.__scopeScrollArea),[c,d]=S.useState(),p=S.useRef(null),h=ze(t,p,u.onScrollbarXChange);return S.useEffect(()=>{p.current&&d(getComputedStyle(p.current))},[p]),D.jsx(IC,{"data-orientation":"horizontal",...l,ref:h,sizes:r,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Wc(r)+"px",...e.style},onThumbPointerDown:a(m=>e.onThumbPointerDown(m.x),"onThumbPointerDown"),onDragScroll:a(m=>e.onDragScroll(m.x),"onDragScroll"),onWheelScroll:a((m,y)=>{if(u.viewport){const b=u.viewport.scrollLeft+m.deltaX;e.onWheelScroll(b),HC(b,y)&&m.preventDefault()}},"onWheelScroll"),onResize:a(()=>{p.current&&u.viewport&&c&&o({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:vc(c.paddingLeft),paddingEnd:vc(c.paddingRight)}})},"onResize")})}),U3=S.forwardRef((e,t)=>{const{sizes:r,onSizesChange:o,...l}=e,u=In(Sr,e.__scopeScrollArea),[c,d]=S.useState(),p=S.useRef(null),h=ze(t,p,u.onScrollbarYChange);return S.useEffect(()=>{p.current&&d(getComputedStyle(p.current))},[p]),D.jsx(IC,{"data-orientation":"vertical",...l,ref:h,sizes:r,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Wc(r)+"px",...e.style},onThumbPointerDown:a(m=>e.onThumbPointerDown(m.y),"onThumbPointerDown"),onDragScroll:a(m=>e.onDragScroll(m.y),"onDragScroll"),onWheelScroll:a((m,y)=>{if(u.viewport){const b=u.viewport.scrollTop+m.deltaY;e.onWheelScroll(b),HC(b,y)&&m.preventDefault()}},"onWheelScroll"),onResize:a(()=>{p.current&&u.viewport&&c&&o({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:vc(c.paddingTop),paddingEnd:vc(c.paddingBottom)}})},"onResize")})}),[B3,zC]=kC(Sr),IC=S.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:o,hasThumb:l,onThumbChange:u,onThumbPointerUp:c,onThumbPointerDown:d,onThumbPositionChange:p,onDragScroll:h,onWheelScroll:m,onResize:y,...b}=e,x=In(Sr,r),[E,w]=S.useState(null),R=ze(t,W=>w(W)),C=S.useRef(null),A=S.useRef(""),k=x.viewport,z=o.content-o.viewport,L=vt(m),N=vt(p),j=Zc(y,10);function $(W){if(C.current){const J=W.clientX-C.current.left,X=W.clientY-C.current.top;h({x:J,y:X})}}return a($,"handleDragScroll"),S.useEffect(()=>{const W=a(J=>{const X=J.target;E?.contains(X)&&L(J,z)},"handleWheel");return document.addEventListener("wheel",W,{passive:!1}),()=>document.removeEventListener("wheel",W,{passive:!1})},[k,E,z,L]),S.useEffect(N,[o,N]),ga(E,j),ga(x.content,j),D.jsx(B3,{scope:r,scrollbar:E,hasThumb:l,onThumbChange:vt(u),onThumbPointerUp:vt(c),onThumbPositionChange:N,onThumbPointerDown:vt(d),children:D.jsx(Ee.div,{...b,ref:R,style:{position:"absolute",...b.style},onPointerDown:ye(e.onPointerDown,W=>{W.button===0&&(W.target.setPointerCapture(W.pointerId),C.current=E.getBoundingClientRect(),A.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",x.viewport&&(x.viewport.style.scrollBehavior="auto"),$(W))}),onPointerMove:ye(e.onPointerMove,$),onPointerUp:ye(e.onPointerUp,W=>{const J=W.target;J.hasPointerCapture(W.pointerId)&&J.releasePointerCapture(W.pointerId),document.body.style.webkitUserSelect=A.current,x.viewport&&(x.viewport.style.scrollBehavior=""),C.current=null})})})}),yc="ScrollAreaThumb",H3=S.forwardRef((e,t)=>{const{forceMount:r,...o}=e,l=zC(yc,e.__scopeScrollArea);return D.jsx(It,{present:r||l.hasThumb,children:D.jsx(F3,{ref:t,...o})})}),F3=S.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:o,...l}=e,u=In(yc,r),c=zC(yc,r),{onThumbPositionChange:d}=c,p=ze(t,y=>c.onThumbChange(y)),h=S.useRef(void 0),m=Zc(()=>{h.current&&(h.current(),h.current=void 0)},100);return S.useEffect(()=>{const y=u.viewport;if(y){const b=a(()=>{if(m(),!h.current){const x=G3(y,d);h.current=x,d()}},"handleScroll");return d(),y.addEventListener("scroll",b),()=>y.removeEventListener("scroll",b)}},[u.viewport,m,d]),D.jsx(Ee.div,{"data-state":c.hasThumb?"visible":"hidden",...l,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:ye(e.onPointerDownCapture,y=>{const x=y.target.getBoundingClientRect(),E=y.clientX-x.left,w=y.clientY-x.top;c.onThumbPointerDown({x:E,y:w})}),onPointerUp:ye(e.onPointerUp,c.onThumbPointerUp)})});H3.displayName=yc;var tg="ScrollAreaCorner",jC=S.forwardRef((e,t)=>{const r=In(tg,e.__scopeScrollArea),o=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&o?D.jsx(q3,{...e,ref:t}):null});jC.displayName=tg;var q3=S.forwardRef((e,t)=>{const{__scopeScrollArea:r,...o}=e,l=In(tg,r),[u,c]=S.useState(0),[d,p]=S.useState(0),h=!!(u&&d);return ga(l.scrollbarX,()=>{const m=l.scrollbarX?.offsetHeight||0;l.onCornerHeightChange(m),p(m)}),ga(l.scrollbarY,()=>{const m=l.scrollbarY?.offsetWidth||0;l.onCornerWidthChange(m),c(m)}),h?D.jsx(Ee.div,{...o,ref:t,style:{width:u,height:d,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function vc(e){return e?parseInt(e,10):0}a(vc,"toInt");function UC(e,t){const r=e/t;return isNaN(r)?0:r}a(UC,"getThumbRatio");function Wc(e){const t=UC(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-r)*t;return Math.max(o,18)}a(Wc,"getThumbSize");function V3(e,t,r,o="ltr"){const l=Wc(r),u=l/2,c=t||u,d=l-c,p=r.scrollbar.paddingStart+c,h=r.scrollbar.size-r.scrollbar.paddingEnd-d,m=r.content-r.viewport,y=o==="ltr"?[0,m]:[m*-1,0];return BC([p,h],y)(e)}a(V3,"getScrollPositionFromPointer");function x1(e,t,r="ltr"){const o=Wc(t),l=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,u=t.scrollbar.size-l,c=t.content-t.viewport,d=u-o,p=r==="ltr"?[0,c]:[c*-1,0],h=Sh(e,p);return BC([0,c],[0,d])(h)}a(x1,"getThumbOffsetFromScroll");function BC(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(r-e[0])}}a(BC,"linearScale");function HC(e,t){return e>0&&e<t}a(HC,"isScrollingWithinScrollbarBounds");var G3=a((e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},o=0;return a((function l(){const u={left:e.scrollLeft,top:e.scrollTop},c=r.left!==u.left,d=r.top!==u.top;(c||d)&&t(),r=u,o=window.requestAnimationFrame(l)}),"loop")(),()=>window.cancelAnimationFrame(o)},"addUnlinkedScrollListener");function Zc(e,t){const r=vt(e),o=S.useRef(0);return S.useEffect(()=>()=>window.clearTimeout(o.current),[]),S.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,t)},[r,t])}a(Zc,"useDebounceCallback");function ga(e,t){const r=vt(t);bt(()=>{let o=0;if(e){const l=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(r)});return l.observe(e),()=>{window.cancelAnimationFrame(o),l.unobserve(e)}}},[e,r])}a(ga,"useResizeObserver");var pB=DC,hB=PC,mB=jC,Vp={exports:{}},Gp={};/**
475
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return S.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},"DescriptionWarning"),oB=SC,aB=xC,lB=wC,sB=EC,uB=AC,cB=_C,fB=TC,dB=OC;function N3(e,t){return S.useReducer((r,o)=>t[r][o]??r,e)}a(N3,"useStateMachine");var Jm="ScrollArea",[kC]=$t(Jm),[P3,In]=kC(Jm),DC=S.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:o="hover",dir:l,scrollHideDelay:u=600,...c}=e,[d,h]=S.useState(null),[p,m]=S.useState(null),[y,b]=S.useState(null),[x,E]=S.useState(null),[w,R]=S.useState(null),[C,A]=S.useState(0),[k,z]=S.useState(0),[L,N]=S.useState(!1),[j,$]=S.useState(!1),W=ze(t,X=>h(X)),J=hs(l);return D.jsx(P3,{scope:r,type:o,dir:J,scrollHideDelay:u,scrollArea:d,viewport:p,onViewportChange:m,content:y,onContentChange:b,scrollbarX:x,onScrollbarXChange:E,scrollbarXEnabled:L,onScrollbarXEnabledChange:N,scrollbarY:w,onScrollbarYChange:R,scrollbarYEnabled:j,onScrollbarYEnabledChange:$,onCornerWidthChange:A,onCornerHeightChange:z,children:D.jsx(Ee.div,{dir:J,...c,ref:W,style:{position:"relative","--radix-scroll-area-corner-width":C+"px","--radix-scroll-area-corner-height":k+"px",...e.style}})})});DC.displayName=Jm;var NC="ScrollAreaViewport",PC=S.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:o,nonce:l,...u}=e,c=In(NC,r),d=S.useRef(null),h=ze(t,d,c.onViewportChange);return D.jsxs(D.Fragment,{children:[D.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),D.jsx(Ee.div,{"data-radix-scroll-area-viewport":"",...u,ref:h,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:D.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});PC.displayName=NC;var Sr="ScrollAreaScrollbar",L3=S.forwardRef((e,t)=>{const{forceMount:r,...o}=e,l=In(Sr,e.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:c}=l,d=e.orientation==="horizontal";return S.useEffect(()=>(d?u(!0):c(!0),()=>{d?u(!1):c(!1)}),[d,u,c]),l.type==="hover"?D.jsx(z3,{...o,ref:t,forceMount:r}):l.type==="scroll"?D.jsx(I3,{...o,ref:t,forceMount:r}):l.type==="auto"?D.jsx(LC,{...o,ref:t,forceMount:r}):l.type==="always"?D.jsx(eg,{...o,ref:t}):null});L3.displayName=Sr;var z3=S.forwardRef((e,t)=>{const{forceMount:r,...o}=e,l=In(Sr,e.__scopeScrollArea),[u,c]=S.useState(!1);return S.useEffect(()=>{const d=l.scrollArea;let h=0;if(d){const p=a(()=>{window.clearTimeout(h),c(!0)},"handlePointerEnter"),m=a(()=>{h=window.setTimeout(()=>c(!1),l.scrollHideDelay)},"handlePointerLeave");return d.addEventListener("pointerenter",p),d.addEventListener("pointerleave",m),()=>{window.clearTimeout(h),d.removeEventListener("pointerenter",p),d.removeEventListener("pointerleave",m)}}},[l.scrollArea,l.scrollHideDelay]),D.jsx(It,{present:r||u,children:D.jsx(LC,{"data-state":u?"visible":"hidden",...o,ref:t})})}),I3=S.forwardRef((e,t)=>{const{forceMount:r,...o}=e,l=In(Sr,e.__scopeScrollArea),u=e.orientation==="horizontal",c=Zc(()=>h("SCROLL_END"),100),[d,h]=N3("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return S.useEffect(()=>{if(d==="idle"){const p=window.setTimeout(()=>h("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(p)}},[d,l.scrollHideDelay,h]),S.useEffect(()=>{const p=l.viewport,m=u?"scrollLeft":"scrollTop";if(p){let y=p[m];const b=a(()=>{const x=p[m];y!==x&&(h("SCROLL"),c()),y=x},"handleScroll");return p.addEventListener("scroll",b),()=>p.removeEventListener("scroll",b)}},[l.viewport,u,h,c]),D.jsx(It,{present:r||d!=="hidden",children:D.jsx(eg,{"data-state":d==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:ye(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:ye(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),LC=S.forwardRef((e,t)=>{const r=In(Sr,e.__scopeScrollArea),{forceMount:o,...l}=e,[u,c]=S.useState(!1),d=e.orientation==="horizontal",h=Zc(()=>{if(r.viewport){const p=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;c(d?p:m)}},10);return ga(r.viewport,h),ga(r.content,h),D.jsx(It,{present:o||u,children:D.jsx(eg,{"data-state":u?"visible":"hidden",...l,ref:t})})}),eg=S.forwardRef((e,t)=>{const{orientation:r="vertical",...o}=e,l=In(Sr,e.__scopeScrollArea),u=S.useRef(null),c=S.useRef(0),[d,h]=S.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=UC(d.viewport,d.content),m={...o,sizes:d,onSizesChange:h,hasThumb:p>0&&p<1,onThumbChange:a(b=>u.current=b,"onThumbChange"),onThumbPointerUp:a(()=>c.current=0,"onThumbPointerUp"),onThumbPointerDown:a(b=>c.current=b,"onThumbPointerDown")};function y(b,x){return V3(b,c.current,d,x)}return a(y,"getScrollPosition"),r==="horizontal"?D.jsx(j3,{...m,ref:t,onThumbPositionChange:a(()=>{if(l.viewport&&u.current){const b=l.viewport.scrollLeft,x=x1(b,d,l.dir);u.current.style.transform=`translate3d(${x}px, 0, 0)`}},"onThumbPositionChange"),onWheelScroll:a(b=>{l.viewport&&(l.viewport.scrollLeft=b)},"onWheelScroll"),onDragScroll:a(b=>{l.viewport&&(l.viewport.scrollLeft=y(b,l.dir))},"onDragScroll")}):r==="vertical"?D.jsx(U3,{...m,ref:t,onThumbPositionChange:a(()=>{if(l.viewport&&u.current){const b=l.viewport.scrollTop,x=x1(b,d);u.current.style.transform=`translate3d(0, ${x}px, 0)`}},"onThumbPositionChange"),onWheelScroll:a(b=>{l.viewport&&(l.viewport.scrollTop=b)},"onWheelScroll"),onDragScroll:a(b=>{l.viewport&&(l.viewport.scrollTop=y(b))},"onDragScroll")}):null}),j3=S.forwardRef((e,t)=>{const{sizes:r,onSizesChange:o,...l}=e,u=In(Sr,e.__scopeScrollArea),[c,d]=S.useState(),h=S.useRef(null),p=ze(t,h,u.onScrollbarXChange);return S.useEffect(()=>{h.current&&d(getComputedStyle(h.current))},[h]),D.jsx(IC,{"data-orientation":"horizontal",...l,ref:p,sizes:r,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Wc(r)+"px",...e.style},onThumbPointerDown:a(m=>e.onThumbPointerDown(m.x),"onThumbPointerDown"),onDragScroll:a(m=>e.onDragScroll(m.x),"onDragScroll"),onWheelScroll:a((m,y)=>{if(u.viewport){const b=u.viewport.scrollLeft+m.deltaX;e.onWheelScroll(b),HC(b,y)&&m.preventDefault()}},"onWheelScroll"),onResize:a(()=>{h.current&&u.viewport&&c&&o({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:vc(c.paddingLeft),paddingEnd:vc(c.paddingRight)}})},"onResize")})}),U3=S.forwardRef((e,t)=>{const{sizes:r,onSizesChange:o,...l}=e,u=In(Sr,e.__scopeScrollArea),[c,d]=S.useState(),h=S.useRef(null),p=ze(t,h,u.onScrollbarYChange);return S.useEffect(()=>{h.current&&d(getComputedStyle(h.current))},[h]),D.jsx(IC,{"data-orientation":"vertical",...l,ref:p,sizes:r,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Wc(r)+"px",...e.style},onThumbPointerDown:a(m=>e.onThumbPointerDown(m.y),"onThumbPointerDown"),onDragScroll:a(m=>e.onDragScroll(m.y),"onDragScroll"),onWheelScroll:a((m,y)=>{if(u.viewport){const b=u.viewport.scrollTop+m.deltaY;e.onWheelScroll(b),HC(b,y)&&m.preventDefault()}},"onWheelScroll"),onResize:a(()=>{h.current&&u.viewport&&c&&o({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:vc(c.paddingTop),paddingEnd:vc(c.paddingBottom)}})},"onResize")})}),[B3,zC]=kC(Sr),IC=S.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:o,hasThumb:l,onThumbChange:u,onThumbPointerUp:c,onThumbPointerDown:d,onThumbPositionChange:h,onDragScroll:p,onWheelScroll:m,onResize:y,...b}=e,x=In(Sr,r),[E,w]=S.useState(null),R=ze(t,W=>w(W)),C=S.useRef(null),A=S.useRef(""),k=x.viewport,z=o.content-o.viewport,L=vt(m),N=vt(h),j=Zc(y,10);function $(W){if(C.current){const J=W.clientX-C.current.left,X=W.clientY-C.current.top;p({x:J,y:X})}}return a($,"handleDragScroll"),S.useEffect(()=>{const W=a(J=>{const X=J.target;E?.contains(X)&&L(J,z)},"handleWheel");return document.addEventListener("wheel",W,{passive:!1}),()=>document.removeEventListener("wheel",W,{passive:!1})},[k,E,z,L]),S.useEffect(N,[o,N]),ga(E,j),ga(x.content,j),D.jsx(B3,{scope:r,scrollbar:E,hasThumb:l,onThumbChange:vt(u),onThumbPointerUp:vt(c),onThumbPositionChange:N,onThumbPointerDown:vt(d),children:D.jsx(Ee.div,{...b,ref:R,style:{position:"absolute",...b.style},onPointerDown:ye(e.onPointerDown,W=>{W.button===0&&(W.target.setPointerCapture(W.pointerId),C.current=E.getBoundingClientRect(),A.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",x.viewport&&(x.viewport.style.scrollBehavior="auto"),$(W))}),onPointerMove:ye(e.onPointerMove,$),onPointerUp:ye(e.onPointerUp,W=>{const J=W.target;J.hasPointerCapture(W.pointerId)&&J.releasePointerCapture(W.pointerId),document.body.style.webkitUserSelect=A.current,x.viewport&&(x.viewport.style.scrollBehavior=""),C.current=null})})})}),yc="ScrollAreaThumb",H3=S.forwardRef((e,t)=>{const{forceMount:r,...o}=e,l=zC(yc,e.__scopeScrollArea);return D.jsx(It,{present:r||l.hasThumb,children:D.jsx(F3,{ref:t,...o})})}),F3=S.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:o,...l}=e,u=In(yc,r),c=zC(yc,r),{onThumbPositionChange:d}=c,h=ze(t,y=>c.onThumbChange(y)),p=S.useRef(void 0),m=Zc(()=>{p.current&&(p.current(),p.current=void 0)},100);return S.useEffect(()=>{const y=u.viewport;if(y){const b=a(()=>{if(m(),!p.current){const x=G3(y,d);p.current=x,d()}},"handleScroll");return d(),y.addEventListener("scroll",b),()=>y.removeEventListener("scroll",b)}},[u.viewport,m,d]),D.jsx(Ee.div,{"data-state":c.hasThumb?"visible":"hidden",...l,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:ye(e.onPointerDownCapture,y=>{const x=y.target.getBoundingClientRect(),E=y.clientX-x.left,w=y.clientY-x.top;c.onThumbPointerDown({x:E,y:w})}),onPointerUp:ye(e.onPointerUp,c.onThumbPointerUp)})});H3.displayName=yc;var tg="ScrollAreaCorner",jC=S.forwardRef((e,t)=>{const r=In(tg,e.__scopeScrollArea),o=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&o?D.jsx(q3,{...e,ref:t}):null});jC.displayName=tg;var q3=S.forwardRef((e,t)=>{const{__scopeScrollArea:r,...o}=e,l=In(tg,r),[u,c]=S.useState(0),[d,h]=S.useState(0),p=!!(u&&d);return ga(l.scrollbarX,()=>{const m=l.scrollbarX?.offsetHeight||0;l.onCornerHeightChange(m),h(m)}),ga(l.scrollbarY,()=>{const m=l.scrollbarY?.offsetWidth||0;l.onCornerWidthChange(m),c(m)}),p?D.jsx(Ee.div,{...o,ref:t,style:{width:u,height:d,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function vc(e){return e?parseInt(e,10):0}a(vc,"toInt");function UC(e,t){const r=e/t;return isNaN(r)?0:r}a(UC,"getThumbRatio");function Wc(e){const t=UC(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-r)*t;return Math.max(o,18)}a(Wc,"getThumbSize");function V3(e,t,r,o="ltr"){const l=Wc(r),u=l/2,c=t||u,d=l-c,h=r.scrollbar.paddingStart+c,p=r.scrollbar.size-r.scrollbar.paddingEnd-d,m=r.content-r.viewport,y=o==="ltr"?[0,m]:[m*-1,0];return BC([h,p],y)(e)}a(V3,"getScrollPositionFromPointer");function x1(e,t,r="ltr"){const o=Wc(t),l=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,u=t.scrollbar.size-l,c=t.content-t.viewport,d=u-o,h=r==="ltr"?[0,c]:[c*-1,0],p=Sp(e,h);return BC([0,c],[0,d])(p)}a(x1,"getThumbOffsetFromScroll");function BC(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(r-e[0])}}a(BC,"linearScale");function HC(e,t){return e>0&&e<t}a(HC,"isScrollingWithinScrollbarBounds");var G3=a((e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},o=0;return a((function l(){const u={left:e.scrollLeft,top:e.scrollTop},c=r.left!==u.left,d=r.top!==u.top;(c||d)&&t(),r=u,o=window.requestAnimationFrame(l)}),"loop")(),()=>window.cancelAnimationFrame(o)},"addUnlinkedScrollListener");function Zc(e,t){const r=vt(e),o=S.useRef(0);return S.useEffect(()=>()=>window.clearTimeout(o.current),[]),S.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,t)},[r,t])}a(Zc,"useDebounceCallback");function ga(e,t){const r=vt(t);bt(()=>{let o=0;if(e){const l=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(r)});return l.observe(e),()=>{window.cancelAnimationFrame(o),l.unobserve(e)}}},[e,r])}a(ga,"useResizeObserver");var hB=DC,pB=PC,mB=jC,Vh={exports:{}},Gh={};/**
476
476
  * @license React
477
477
  * use-sync-external-store-shim.production.js
478
478
  *
@@ -480,7 +480,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
480
480
  *
481
481
  * This source code is licensed under the MIT license found in the
482
482
  * LICENSE file in the root directory of this source tree.
483
- */var w1;function $3(){if(w1)return Gp;w1=1;var e=Oc();function t(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}a(t,"is");var r=typeof Object.is=="function"?Object.is:t,o=e.useState,l=e.useEffect,u=e.useLayoutEffect,c=e.useDebugValue;function d(y,b){var x=b(),E=o({inst:{value:x,getSnapshot:b}}),w=E[0].inst,R=E[1];return u(function(){w.value=x,w.getSnapshot=b,p(w)&&R({inst:w})},[y,x,b]),l(function(){return p(w)&&R({inst:w}),y(function(){p(w)&&R({inst:w})})},[y]),c(x),x}a(d,"useSyncExternalStore$2");function p(y){var b=y.getSnapshot;y=y.value;try{var x=b();return!r(y,x)}catch{return!0}}a(p,"checkIfSnapshotChanged");function h(y,b){return b()}a(h,"useSyncExternalStore$1");var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return Gp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Gp}a($3,"requireUseSyncExternalStoreShim_production");var E1;function Y3(){return E1||(E1=1,Vp.exports=$3()),Vp.exports}a(Y3,"requireShim");var K3=Y3();function Q3(){return K3.useSyncExternalStore(X3,()=>!0,()=>!1)}a(Q3,"useIsHydrated");function X3(){return()=>{}}a(X3,"subscribe");var ng="Avatar",[W3]=$t(ng),[Z3,FC]=W3(ng),qC=S.forwardRef((e,t)=>{const{__scopeAvatar:r,...o}=e,[l,u]=S.useState("idle");return D.jsx(Z3,{scope:r,imageLoadingStatus:l,onImageLoadingStatusChange:u,children:D.jsx(Ee.span,{...o,ref:t})})});qC.displayName=ng;var VC="AvatarImage",GC=S.forwardRef((e,t)=>{const{__scopeAvatar:r,src:o,onLoadingStatusChange:l=a(()=>{},"onLoadingStatusChange"),...u}=e,c=FC(VC,r),d=J3(o,u),p=vt(h=>{l(h),c.onImageLoadingStatusChange(h)});return bt(()=>{d!=="idle"&&p(d)},[d,p]),d==="loaded"?D.jsx(Ee.img,{...u,ref:t,src:o}):null});GC.displayName=VC;var $C="AvatarFallback",YC=S.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:o,...l}=e,u=FC($C,r),[c,d]=S.useState(o===void 0);return S.useEffect(()=>{if(o!==void 0){const p=window.setTimeout(()=>d(!0),o);return()=>window.clearTimeout(p)}},[o]),c&&u.imageLoadingStatus!=="loaded"?D.jsx(Ee.span,{...l,ref:t}):null});YC.displayName=$C;function C1(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}a(C1,"resolveLoadingStatus");function J3(e,{referrerPolicy:t,crossOrigin:r}){const o=Q3(),l=S.useRef(null),u=o?(l.current||(l.current=new window.Image),l.current):null,[c,d]=S.useState(()=>C1(u,e));return bt(()=>{d(C1(u,e))},[u,e]),bt(()=>{const p=a(y=>()=>{d(y)},"updateStatus");if(!u)return;const h=p("loaded"),m=p("error");return u.addEventListener("load",h),u.addEventListener("error",m),t&&(u.referrerPolicy=t),typeof r=="string"&&(u.crossOrigin=r),()=>{u.removeEventListener("load",h),u.removeEventListener("error",m)}},[u,r,t]),c}a(J3,"useImageLoadingStatus");var gB=qC,yB=GC,vB=YC;function KC(e){return t=>typeof t===e}a(KC,"isOfType$3");var ez=KC("function"),tz=a(e=>e===null,"isNull$1"),T1=a(e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp","isRegex$1"),R1=a(e=>!nz(e)&&!tz(e)&&(ez(e)||typeof e=="object"),"isObject$1"),nz=KC("undefined");function rz(e,t){const{length:r}=e;if(r!==t.length)return!1;for(let o=r;o--!==0;)if(!Gt(e[o],t[o]))return!1;return!0}a(rz,"equalArray$1");function iz(e,t){if(e.byteLength!==t.byteLength)return!1;const r=new DataView(e.buffer),o=new DataView(t.buffer);let l=e.byteLength;for(;l--;)if(r.getUint8(l)!==o.getUint8(l))return!1;return!0}a(iz,"equalArrayBuffer$1");function oz(e,t){if(e.size!==t.size)return!1;for(const r of e.entries())if(!t.has(r[0]))return!1;for(const r of e.entries())if(!Gt(r[1],t.get(r[0])))return!1;return!0}a(oz,"equalMap$1");function az(e,t){if(e.size!==t.size)return!1;for(const r of e.entries())if(!t.has(r[0]))return!1;return!0}a(az,"equalSet$1");function Gt(e,t){if(e===t)return!0;if(e&&R1(e)&&t&&R1(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return rz(e,t);if(e instanceof Map&&t instanceof Map)return oz(e,t);if(e instanceof Set&&t instanceof Set)return az(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return iz(e,t);if(T1(e)&&T1(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let l=r.length;l--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[l]))return!1;for(let l=r.length;l--!==0;){const u=r[l];if(!(u==="_owner"&&e.$$typeof)&&!Gt(e[u],t[u]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}a(Gt,"equal$1");var lz=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],sz=["bigint","boolean","null","number","string","symbol","undefined"];function Jc(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(uz(t))return t}a(Jc,"getObjectType$2");function Xn(e){return t=>Jc(t)===e}a(Xn,"isObjectOfType$1");function uz(e){return lz.includes(e)}a(uz,"isObjectType$1");function Ma(e){return t=>typeof t===e}a(Ma,"isOfType$2");function cz(e){return sz.includes(e)}a(cz,"isPrimitiveType$1");var fz=["innerHTML","ownerDocument","style","attributes","nodeValue"];function be(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(be.array(e))return"Array";if(be.plainFunction(e))return"Function";const t=Jc(e);return t||"Object"}a(be,"is$1");be.array=Array.isArray;be.arrayOf=(e,t)=>!be.array(e)&&!be.function(t)?!1:e.every(r=>t(r));be.asyncGeneratorFunction=e=>Jc(e)==="AsyncGeneratorFunction";be.asyncFunction=Xn("AsyncFunction");be.bigint=Ma("bigint");be.boolean=e=>e===!0||e===!1;be.date=Xn("Date");be.defined=e=>!be.undefined(e);be.domElement=e=>be.object(e)&&!be.plainObject(e)&&e.nodeType===1&&be.string(e.nodeName)&&fz.every(t=>t in e);be.empty=e=>be.string(e)&&e.length===0||be.array(e)&&e.length===0||be.object(e)&&!be.map(e)&&!be.set(e)&&Object.keys(e).length===0||be.set(e)&&e.size===0||be.map(e)&&e.size===0;be.error=Xn("Error");be.function=Ma("function");be.generator=e=>be.iterable(e)&&be.function(e.next)&&be.function(e.throw);be.generatorFunction=Xn("GeneratorFunction");be.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;be.iterable=e=>!be.nullOrUndefined(e)&&be.function(e[Symbol.iterator]);be.map=Xn("Map");be.nan=e=>Number.isNaN(e);be.null=e=>e===null;be.nullOrUndefined=e=>be.null(e)||be.undefined(e);be.number=e=>Ma("number")(e)&&!be.nan(e);be.numericString=e=>be.string(e)&&e.length>0&&!Number.isNaN(Number(e));be.object=e=>!be.nullOrUndefined(e)&&(be.function(e)||typeof e=="object");be.oneOf=(e,t)=>be.array(e)?e.indexOf(t)>-1:!1;be.plainFunction=Xn("Function");be.plainObject=e=>{if(Jc(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};be.primitive=e=>be.null(e)||cz(typeof e);be.promise=Xn("Promise");be.propertyOf=(e,t,r)=>{if(!be.object(e)||!t)return!1;const o=e[t];return be.function(r)?r(o):be.defined(o)};be.regexp=Xn("RegExp");be.set=Xn("Set");be.string=Ma("string");be.symbol=Ma("symbol");be.undefined=Ma("undefined");be.weakMap=Xn("WeakMap");be.weakSet=Xn("WeakSet");var xe=be;function dz(...e){return e.every(t=>xe.string(t)||xe.array(t)||xe.plainObject(t))}a(dz,"canHaveLength$1");function pz(e,t,r){return QC(e,t)?[e,t].every(xe.array)?!e.some(k1(r))&&t.some(k1(r)):[e,t].every(xe.plainObject)?!Object.entries(e).some(_1(r))&&Object.entries(t).some(_1(r)):t===r:!1}a(pz,"checkEquality$1");function O1(e,t,r){const{actual:o,key:l,previous:u,type:c}=r,d=cr(e,l),p=cr(t,l);let h=[d,p].every(xe.number)&&(c==="increased"?d<p:d>p);return xe.undefined(o)||(h=h&&p===o),xe.undefined(u)||(h=h&&d===u),h}a(O1,"compareNumbers$1");function A1(e,t,r){const{key:o,type:l,value:u}=r,c=cr(e,o),d=cr(t,o),p=l==="added"?c:d,h=l==="added"?d:c;if(!xe.nullOrUndefined(u)){if(xe.defined(p)){if(xe.array(p)||xe.plainObject(p))return pz(p,h,u)}else return Gt(h,u);return!1}return[c,d].every(xe.array)?!h.every(rg(p)):[c,d].every(xe.plainObject)?hz(Object.keys(p),Object.keys(h)):![c,d].every(m=>xe.primitive(m)&&xe.defined(m))&&(l==="added"?!xe.defined(c)&&xe.defined(d):xe.defined(c)&&!xe.defined(d))}a(A1,"compareValues$1");function M1(e,t,{key:r}={}){let o=cr(e,r),l=cr(t,r);if(!QC(o,l))throw new TypeError("Inputs have different types");if(!dz(o,l))throw new TypeError("Inputs don't have length");return[o,l].every(xe.plainObject)&&(o=Object.keys(o),l=Object.keys(l)),[o,l]}a(M1,"getIterables$1");function _1(e){return([t,r])=>xe.array(e)?Gt(e,r)||e.some(o=>Gt(o,r)||xe.array(r)&&rg(r)(o)):xe.plainObject(e)&&e[t]?!!e[t]&&Gt(e[t],r):Gt(e,r)}a(_1,"hasEntry$1");function hz(e,t){return t.some(r=>!e.includes(r))}a(hz,"hasExtraKeys$1");function k1(e){return t=>xe.array(e)?e.some(r=>Gt(r,t)||xe.array(t)&&rg(t)(r)):Gt(e,t)}a(k1,"hasValue$1");function Dl(e,t){return xe.array(e)?e.some(r=>Gt(r,t)):Gt(e,t)}a(Dl,"includesOrEqualsTo$1");function rg(e){return t=>e.some(r=>Gt(r,t))}a(rg,"isEqualPredicate$1");function QC(...e){return e.every(xe.array)||e.every(xe.number)||e.every(xe.plainObject)||e.every(xe.string)}a(QC,"isSameType$1");function cr(e,t){return xe.plainObject(e)||xe.array(e)?xe.string(t)?t.split(".").reduce((o,l)=>o&&o[l],e):xe.number(t)?e[t]:e:e}a(cr,"nested$1");function bc(e,t){if([e,t].some(xe.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(m=>xe.plainObject(m)||xe.array(m)))throw new Error("Expected plain objects or array");return{added:a((m,y)=>{try{return A1(e,t,{key:m,type:"added",value:y})}catch{return!1}},"added"),changed:a((m,y,b)=>{try{const x=cr(e,m),E=cr(t,m),w=xe.defined(y),R=xe.defined(b);if(w||R){const C=R?Dl(b,x):!Dl(y,x),A=Dl(y,E);return C&&A}return[x,E].every(xe.array)||[x,E].every(xe.plainObject)?!Gt(x,E):x!==E}catch{return!1}},"changed"),changedFrom:a((m,y,b)=>{if(!xe.defined(m))return!1;try{const x=cr(e,m),E=cr(t,m),w=xe.defined(b);return Dl(y,x)&&(w?Dl(b,E):!w)}catch{return!1}},"changedFrom"),decreased:a((m,y,b)=>{if(!xe.defined(m))return!1;try{return O1(e,t,{key:m,actual:y,previous:b,type:"decreased"})}catch{return!1}},"decreased"),emptied:a(m=>{try{const[y,b]=M1(e,t,{key:m});return!!y.length&&!b.length}catch{return!1}},"emptied"),filled:a(m=>{try{const[y,b]=M1(e,t,{key:m});return!y.length&&!!b.length}catch{return!1}},"filled"),increased:a((m,y,b)=>{if(!xe.defined(m))return!1;try{return O1(e,t,{key:m,actual:y,previous:b,type:"increased"})}catch{return!1}},"increased"),removed:a((m,y)=>{try{return A1(e,t,{key:m,type:"removed",value:y})}catch{return!1}},"removed")}}a(bc,"treeChanges$1");var $p,D1;function mz(){if(D1)return $p;D1=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),r=Math.min,o=Date.now;$p={left:l("scrollLeft"),top:l("scrollTop")};function l(d){return a(function(h,m,y,b){y=y||{},typeof y=="function"&&(b=y,y={}),typeof b!="function"&&(b=c);var x=o(),E=h[d],w=y.ease||u,R=isNaN(y.duration)?350:+y.duration,C=!1;return E===m?b(e,h[d]):requestAnimationFrame(k),A;function A(){C=!0}function k(z){if(C)return b(t,h[d]);var L=o(),N=r(1,(L-x)/R),j=w(N);h[d]=j*(m-E)+E,N<1?requestAnimationFrame(k):requestAnimationFrame(function(){b(null,h[d])})}},"scroll")}a(l,"make");function u(d){return .5*(1-Math.cos(Math.PI*d))}a(u,"inOutSine");function c(){}return a(c,"noop"),$p}a(mz,"requireScroll");var gz=mz();const yz=Vr(gz);var nc={exports:{}},vz=nc.exports,N1;function bz(){return N1||(N1=1,(function(e){(function(t,r){e.exports?e.exports=r():t.Scrollparent=r()})(vz,function(){function t(o){var l=getComputedStyle(o,null).getPropertyValue("overflow");return l.indexOf("scroll")>-1||l.indexOf("auto")>-1}a(t,"isScrolling");function r(o){if(o instanceof HTMLElement||o instanceof SVGElement){for(var l=o.parentNode;l.parentNode;){if(t(l))return l;l=l.parentNode}return document.scrollingElement||document.documentElement}}return a(r,"scrollParent"),r})})(nc)),nc.exports}a(bz,"requireScrollparent");var Sz=bz();const XC=Vr(Sz);var Yp,P1;function xz(){if(P1)return Yp;P1=1;var e=a(function(o){return Object.prototype.hasOwnProperty.call(o,"props")},"hasProps"),t=a(function(o,l){return o+r(l)},"reduceJsxToString"),r=a(function(o){return o===null||typeof o=="boolean"||typeof o>"u"?"":typeof o=="number"?o.toString():typeof o=="string"?o:Array.isArray(o)?o.reduce(t,""):e(o)&&Object.prototype.hasOwnProperty.call(o.props,"children")?r(o.props.children):""},"innerText");return r.default=r,Yp=r,Yp}a(xz,"requireReactInnertext");var wz=xz();const L1=Vr(wz);var Kp,z1;function Ez(){if(z1)return Kp;z1=1;var e=a(function(A){return t(A)&&!r(A)},"isMergeableObject");function t(C){return!!C&&typeof C=="object"}a(t,"isNonNullObject");function r(C){var A=Object.prototype.toString.call(C);return A==="[object RegExp]"||A==="[object Date]"||u(C)}a(r,"isSpecial");var o=typeof Symbol=="function"&&Symbol.for,l=o?Symbol.for("react.element"):60103;function u(C){return C.$$typeof===l}a(u,"isReactElement");function c(C){return Array.isArray(C)?[]:{}}a(c,"emptyTarget");function d(C,A){return A.clone!==!1&&A.isMergeableObject(C)?w(c(C),C,A):C}a(d,"cloneUnlessOtherwiseSpecified");function p(C,A,k){return C.concat(A).map(function(z){return d(z,k)})}a(p,"defaultArrayMerge");function h(C,A){if(!A.customMerge)return w;var k=A.customMerge(C);return typeof k=="function"?k:w}a(h,"getMergeFunction");function m(C){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(C).filter(function(A){return Object.propertyIsEnumerable.call(C,A)}):[]}a(m,"getEnumerableOwnPropertySymbols");function y(C){return Object.keys(C).concat(m(C))}a(y,"getKeys");function b(C,A){try{return A in C}catch{return!1}}a(b,"propertyIsOnObject");function x(C,A){return b(C,A)&&!(Object.hasOwnProperty.call(C,A)&&Object.propertyIsEnumerable.call(C,A))}a(x,"propertyIsUnsafe");function E(C,A,k){var z={};return k.isMergeableObject(C)&&y(C).forEach(function(L){z[L]=d(C[L],k)}),y(A).forEach(function(L){x(C,L)||(b(C,L)&&k.isMergeableObject(A[L])?z[L]=h(L,k)(C[L],A[L],k):z[L]=d(A[L],k))}),z}a(E,"mergeObject");function w(C,A,k){k=k||{},k.arrayMerge=k.arrayMerge||p,k.isMergeableObject=k.isMergeableObject||e,k.cloneUnlessOtherwiseSpecified=d;var z=Array.isArray(A),L=Array.isArray(C),N=z===L;return N?z?k.arrayMerge(C,A,k):E(C,A,k):d(A,k)}a(w,"deepmerge"),w.all=a(function(A,k){if(!Array.isArray(A))throw new Error("first argument should be an array");return A.reduce(function(z,L){return w(z,L,k)},{})},"deepmergeAll");var R=w;return Kp=R,Kp}a(Ez,"requireCjs$2");var Cz=Ez();const Vn=Vr(Cz);var Qp={exports:{}},Xp,I1;function Tz(){if(I1)return Xp;I1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xp=e,Xp}a(Tz,"requireReactPropTypesSecret");var Wp,j1;function Rz(){if(j1)return Wp;j1=1;var e=Tz();function t(){}a(t,"emptyFunction");function r(){}return a(r,"emptyFunctionWithReset"),r.resetWarningCache=t,Wp=a(function(){function o(c,d,p,h,m,y){if(y!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}a(o,"shim"),o.isRequired=o;function l(){return o}a(l,"getShim");var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:l,element:o,elementType:o,instanceOf:l,node:o,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:r,resetWarningCache:t};return u.PropTypes=u,u},"factoryWithThrowingShims"),Wp}a(Rz,"requireFactoryWithThrowingShims");var U1;function Oz(){return U1||(U1=1,Qp.exports=Rz()()),Qp.exports}a(Oz,"requirePropTypes");var Az=Oz();const ge=Vr(Az);/**!
483
+ */var w1;function $3(){if(w1)return Gh;w1=1;var e=Oc();function t(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}a(t,"is");var r=typeof Object.is=="function"?Object.is:t,o=e.useState,l=e.useEffect,u=e.useLayoutEffect,c=e.useDebugValue;function d(y,b){var x=b(),E=o({inst:{value:x,getSnapshot:b}}),w=E[0].inst,R=E[1];return u(function(){w.value=x,w.getSnapshot=b,h(w)&&R({inst:w})},[y,x,b]),l(function(){return h(w)&&R({inst:w}),y(function(){h(w)&&R({inst:w})})},[y]),c(x),x}a(d,"useSyncExternalStore$2");function h(y){var b=y.getSnapshot;y=y.value;try{var x=b();return!r(y,x)}catch{return!0}}a(h,"checkIfSnapshotChanged");function p(y,b){return b()}a(p,"useSyncExternalStore$1");var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return Gh.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Gh}a($3,"requireUseSyncExternalStoreShim_production");var E1;function Y3(){return E1||(E1=1,Vh.exports=$3()),Vh.exports}a(Y3,"requireShim");var K3=Y3();function Q3(){return K3.useSyncExternalStore(X3,()=>!0,()=>!1)}a(Q3,"useIsHydrated");function X3(){return()=>{}}a(X3,"subscribe");var ng="Avatar",[W3]=$t(ng),[Z3,FC]=W3(ng),qC=S.forwardRef((e,t)=>{const{__scopeAvatar:r,...o}=e,[l,u]=S.useState("idle");return D.jsx(Z3,{scope:r,imageLoadingStatus:l,onImageLoadingStatusChange:u,children:D.jsx(Ee.span,{...o,ref:t})})});qC.displayName=ng;var VC="AvatarImage",GC=S.forwardRef((e,t)=>{const{__scopeAvatar:r,src:o,onLoadingStatusChange:l=a(()=>{},"onLoadingStatusChange"),...u}=e,c=FC(VC,r),d=J3(o,u),h=vt(p=>{l(p),c.onImageLoadingStatusChange(p)});return bt(()=>{d!=="idle"&&h(d)},[d,h]),d==="loaded"?D.jsx(Ee.img,{...u,ref:t,src:o}):null});GC.displayName=VC;var $C="AvatarFallback",YC=S.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:o,...l}=e,u=FC($C,r),[c,d]=S.useState(o===void 0);return S.useEffect(()=>{if(o!==void 0){const h=window.setTimeout(()=>d(!0),o);return()=>window.clearTimeout(h)}},[o]),c&&u.imageLoadingStatus!=="loaded"?D.jsx(Ee.span,{...l,ref:t}):null});YC.displayName=$C;function C1(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}a(C1,"resolveLoadingStatus");function J3(e,{referrerPolicy:t,crossOrigin:r}){const o=Q3(),l=S.useRef(null),u=o?(l.current||(l.current=new window.Image),l.current):null,[c,d]=S.useState(()=>C1(u,e));return bt(()=>{d(C1(u,e))},[u,e]),bt(()=>{const h=a(y=>()=>{d(y)},"updateStatus");if(!u)return;const p=h("loaded"),m=h("error");return u.addEventListener("load",p),u.addEventListener("error",m),t&&(u.referrerPolicy=t),typeof r=="string"&&(u.crossOrigin=r),()=>{u.removeEventListener("load",p),u.removeEventListener("error",m)}},[u,r,t]),c}a(J3,"useImageLoadingStatus");var gB=qC,yB=GC,vB=YC;function KC(e){return t=>typeof t===e}a(KC,"isOfType$3");var ez=KC("function"),tz=a(e=>e===null,"isNull$1"),T1=a(e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp","isRegex$1"),R1=a(e=>!nz(e)&&!tz(e)&&(ez(e)||typeof e=="object"),"isObject$1"),nz=KC("undefined");function rz(e,t){const{length:r}=e;if(r!==t.length)return!1;for(let o=r;o--!==0;)if(!Gt(e[o],t[o]))return!1;return!0}a(rz,"equalArray$1");function iz(e,t){if(e.byteLength!==t.byteLength)return!1;const r=new DataView(e.buffer),o=new DataView(t.buffer);let l=e.byteLength;for(;l--;)if(r.getUint8(l)!==o.getUint8(l))return!1;return!0}a(iz,"equalArrayBuffer$1");function oz(e,t){if(e.size!==t.size)return!1;for(const r of e.entries())if(!t.has(r[0]))return!1;for(const r of e.entries())if(!Gt(r[1],t.get(r[0])))return!1;return!0}a(oz,"equalMap$1");function az(e,t){if(e.size!==t.size)return!1;for(const r of e.entries())if(!t.has(r[0]))return!1;return!0}a(az,"equalSet$1");function Gt(e,t){if(e===t)return!0;if(e&&R1(e)&&t&&R1(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return rz(e,t);if(e instanceof Map&&t instanceof Map)return oz(e,t);if(e instanceof Set&&t instanceof Set)return az(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return iz(e,t);if(T1(e)&&T1(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let l=r.length;l--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[l]))return!1;for(let l=r.length;l--!==0;){const u=r[l];if(!(u==="_owner"&&e.$$typeof)&&!Gt(e[u],t[u]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}a(Gt,"equal$1");var lz=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],sz=["bigint","boolean","null","number","string","symbol","undefined"];function Jc(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(uz(t))return t}a(Jc,"getObjectType$2");function Xn(e){return t=>Jc(t)===e}a(Xn,"isObjectOfType$1");function uz(e){return lz.includes(e)}a(uz,"isObjectType$1");function Ma(e){return t=>typeof t===e}a(Ma,"isOfType$2");function cz(e){return sz.includes(e)}a(cz,"isPrimitiveType$1");var fz=["innerHTML","ownerDocument","style","attributes","nodeValue"];function be(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(be.array(e))return"Array";if(be.plainFunction(e))return"Function";const t=Jc(e);return t||"Object"}a(be,"is$1");be.array=Array.isArray;be.arrayOf=(e,t)=>!be.array(e)&&!be.function(t)?!1:e.every(r=>t(r));be.asyncGeneratorFunction=e=>Jc(e)==="AsyncGeneratorFunction";be.asyncFunction=Xn("AsyncFunction");be.bigint=Ma("bigint");be.boolean=e=>e===!0||e===!1;be.date=Xn("Date");be.defined=e=>!be.undefined(e);be.domElement=e=>be.object(e)&&!be.plainObject(e)&&e.nodeType===1&&be.string(e.nodeName)&&fz.every(t=>t in e);be.empty=e=>be.string(e)&&e.length===0||be.array(e)&&e.length===0||be.object(e)&&!be.map(e)&&!be.set(e)&&Object.keys(e).length===0||be.set(e)&&e.size===0||be.map(e)&&e.size===0;be.error=Xn("Error");be.function=Ma("function");be.generator=e=>be.iterable(e)&&be.function(e.next)&&be.function(e.throw);be.generatorFunction=Xn("GeneratorFunction");be.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;be.iterable=e=>!be.nullOrUndefined(e)&&be.function(e[Symbol.iterator]);be.map=Xn("Map");be.nan=e=>Number.isNaN(e);be.null=e=>e===null;be.nullOrUndefined=e=>be.null(e)||be.undefined(e);be.number=e=>Ma("number")(e)&&!be.nan(e);be.numericString=e=>be.string(e)&&e.length>0&&!Number.isNaN(Number(e));be.object=e=>!be.nullOrUndefined(e)&&(be.function(e)||typeof e=="object");be.oneOf=(e,t)=>be.array(e)?e.indexOf(t)>-1:!1;be.plainFunction=Xn("Function");be.plainObject=e=>{if(Jc(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};be.primitive=e=>be.null(e)||cz(typeof e);be.promise=Xn("Promise");be.propertyOf=(e,t,r)=>{if(!be.object(e)||!t)return!1;const o=e[t];return be.function(r)?r(o):be.defined(o)};be.regexp=Xn("RegExp");be.set=Xn("Set");be.string=Ma("string");be.symbol=Ma("symbol");be.undefined=Ma("undefined");be.weakMap=Xn("WeakMap");be.weakSet=Xn("WeakSet");var xe=be;function dz(...e){return e.every(t=>xe.string(t)||xe.array(t)||xe.plainObject(t))}a(dz,"canHaveLength$1");function hz(e,t,r){return QC(e,t)?[e,t].every(xe.array)?!e.some(k1(r))&&t.some(k1(r)):[e,t].every(xe.plainObject)?!Object.entries(e).some(_1(r))&&Object.entries(t).some(_1(r)):t===r:!1}a(hz,"checkEquality$1");function O1(e,t,r){const{actual:o,key:l,previous:u,type:c}=r,d=cr(e,l),h=cr(t,l);let p=[d,h].every(xe.number)&&(c==="increased"?d<h:d>h);return xe.undefined(o)||(p=p&&h===o),xe.undefined(u)||(p=p&&d===u),p}a(O1,"compareNumbers$1");function A1(e,t,r){const{key:o,type:l,value:u}=r,c=cr(e,o),d=cr(t,o),h=l==="added"?c:d,p=l==="added"?d:c;if(!xe.nullOrUndefined(u)){if(xe.defined(h)){if(xe.array(h)||xe.plainObject(h))return hz(h,p,u)}else return Gt(p,u);return!1}return[c,d].every(xe.array)?!p.every(rg(h)):[c,d].every(xe.plainObject)?pz(Object.keys(h),Object.keys(p)):![c,d].every(m=>xe.primitive(m)&&xe.defined(m))&&(l==="added"?!xe.defined(c)&&xe.defined(d):xe.defined(c)&&!xe.defined(d))}a(A1,"compareValues$1");function M1(e,t,{key:r}={}){let o=cr(e,r),l=cr(t,r);if(!QC(o,l))throw new TypeError("Inputs have different types");if(!dz(o,l))throw new TypeError("Inputs don't have length");return[o,l].every(xe.plainObject)&&(o=Object.keys(o),l=Object.keys(l)),[o,l]}a(M1,"getIterables$1");function _1(e){return([t,r])=>xe.array(e)?Gt(e,r)||e.some(o=>Gt(o,r)||xe.array(r)&&rg(r)(o)):xe.plainObject(e)&&e[t]?!!e[t]&&Gt(e[t],r):Gt(e,r)}a(_1,"hasEntry$1");function pz(e,t){return t.some(r=>!e.includes(r))}a(pz,"hasExtraKeys$1");function k1(e){return t=>xe.array(e)?e.some(r=>Gt(r,t)||xe.array(t)&&rg(t)(r)):Gt(e,t)}a(k1,"hasValue$1");function Dl(e,t){return xe.array(e)?e.some(r=>Gt(r,t)):Gt(e,t)}a(Dl,"includesOrEqualsTo$1");function rg(e){return t=>e.some(r=>Gt(r,t))}a(rg,"isEqualPredicate$1");function QC(...e){return e.every(xe.array)||e.every(xe.number)||e.every(xe.plainObject)||e.every(xe.string)}a(QC,"isSameType$1");function cr(e,t){return xe.plainObject(e)||xe.array(e)?xe.string(t)?t.split(".").reduce((o,l)=>o&&o[l],e):xe.number(t)?e[t]:e:e}a(cr,"nested$1");function bc(e,t){if([e,t].some(xe.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(m=>xe.plainObject(m)||xe.array(m)))throw new Error("Expected plain objects or array");return{added:a((m,y)=>{try{return A1(e,t,{key:m,type:"added",value:y})}catch{return!1}},"added"),changed:a((m,y,b)=>{try{const x=cr(e,m),E=cr(t,m),w=xe.defined(y),R=xe.defined(b);if(w||R){const C=R?Dl(b,x):!Dl(y,x),A=Dl(y,E);return C&&A}return[x,E].every(xe.array)||[x,E].every(xe.plainObject)?!Gt(x,E):x!==E}catch{return!1}},"changed"),changedFrom:a((m,y,b)=>{if(!xe.defined(m))return!1;try{const x=cr(e,m),E=cr(t,m),w=xe.defined(b);return Dl(y,x)&&(w?Dl(b,E):!w)}catch{return!1}},"changedFrom"),decreased:a((m,y,b)=>{if(!xe.defined(m))return!1;try{return O1(e,t,{key:m,actual:y,previous:b,type:"decreased"})}catch{return!1}},"decreased"),emptied:a(m=>{try{const[y,b]=M1(e,t,{key:m});return!!y.length&&!b.length}catch{return!1}},"emptied"),filled:a(m=>{try{const[y,b]=M1(e,t,{key:m});return!y.length&&!!b.length}catch{return!1}},"filled"),increased:a((m,y,b)=>{if(!xe.defined(m))return!1;try{return O1(e,t,{key:m,actual:y,previous:b,type:"increased"})}catch{return!1}},"increased"),removed:a((m,y)=>{try{return A1(e,t,{key:m,type:"removed",value:y})}catch{return!1}},"removed")}}a(bc,"treeChanges$1");var $h,D1;function mz(){if(D1)return $h;D1=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),r=Math.min,o=Date.now;$h={left:l("scrollLeft"),top:l("scrollTop")};function l(d){return a(function(p,m,y,b){y=y||{},typeof y=="function"&&(b=y,y={}),typeof b!="function"&&(b=c);var x=o(),E=p[d],w=y.ease||u,R=isNaN(y.duration)?350:+y.duration,C=!1;return E===m?b(e,p[d]):requestAnimationFrame(k),A;function A(){C=!0}function k(z){if(C)return b(t,p[d]);var L=o(),N=r(1,(L-x)/R),j=w(N);p[d]=j*(m-E)+E,N<1?requestAnimationFrame(k):requestAnimationFrame(function(){b(null,p[d])})}},"scroll")}a(l,"make");function u(d){return .5*(1-Math.cos(Math.PI*d))}a(u,"inOutSine");function c(){}return a(c,"noop"),$h}a(mz,"requireScroll");var gz=mz();const yz=Vr(gz);var nc={exports:{}},vz=nc.exports,N1;function bz(){return N1||(N1=1,(function(e){(function(t,r){e.exports?e.exports=r():t.Scrollparent=r()})(vz,function(){function t(o){var l=getComputedStyle(o,null).getPropertyValue("overflow");return l.indexOf("scroll")>-1||l.indexOf("auto")>-1}a(t,"isScrolling");function r(o){if(o instanceof HTMLElement||o instanceof SVGElement){for(var l=o.parentNode;l.parentNode;){if(t(l))return l;l=l.parentNode}return document.scrollingElement||document.documentElement}}return a(r,"scrollParent"),r})})(nc)),nc.exports}a(bz,"requireScrollparent");var Sz=bz();const XC=Vr(Sz);var Yh,P1;function xz(){if(P1)return Yh;P1=1;var e=a(function(o){return Object.prototype.hasOwnProperty.call(o,"props")},"hasProps"),t=a(function(o,l){return o+r(l)},"reduceJsxToString"),r=a(function(o){return o===null||typeof o=="boolean"||typeof o>"u"?"":typeof o=="number"?o.toString():typeof o=="string"?o:Array.isArray(o)?o.reduce(t,""):e(o)&&Object.prototype.hasOwnProperty.call(o.props,"children")?r(o.props.children):""},"innerText");return r.default=r,Yh=r,Yh}a(xz,"requireReactInnertext");var wz=xz();const L1=Vr(wz);var Kh,z1;function Ez(){if(z1)return Kh;z1=1;var e=a(function(A){return t(A)&&!r(A)},"isMergeableObject");function t(C){return!!C&&typeof C=="object"}a(t,"isNonNullObject");function r(C){var A=Object.prototype.toString.call(C);return A==="[object RegExp]"||A==="[object Date]"||u(C)}a(r,"isSpecial");var o=typeof Symbol=="function"&&Symbol.for,l=o?Symbol.for("react.element"):60103;function u(C){return C.$$typeof===l}a(u,"isReactElement");function c(C){return Array.isArray(C)?[]:{}}a(c,"emptyTarget");function d(C,A){return A.clone!==!1&&A.isMergeableObject(C)?w(c(C),C,A):C}a(d,"cloneUnlessOtherwiseSpecified");function h(C,A,k){return C.concat(A).map(function(z){return d(z,k)})}a(h,"defaultArrayMerge");function p(C,A){if(!A.customMerge)return w;var k=A.customMerge(C);return typeof k=="function"?k:w}a(p,"getMergeFunction");function m(C){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(C).filter(function(A){return Object.propertyIsEnumerable.call(C,A)}):[]}a(m,"getEnumerableOwnPropertySymbols");function y(C){return Object.keys(C).concat(m(C))}a(y,"getKeys");function b(C,A){try{return A in C}catch{return!1}}a(b,"propertyIsOnObject");function x(C,A){return b(C,A)&&!(Object.hasOwnProperty.call(C,A)&&Object.propertyIsEnumerable.call(C,A))}a(x,"propertyIsUnsafe");function E(C,A,k){var z={};return k.isMergeableObject(C)&&y(C).forEach(function(L){z[L]=d(C[L],k)}),y(A).forEach(function(L){x(C,L)||(b(C,L)&&k.isMergeableObject(A[L])?z[L]=p(L,k)(C[L],A[L],k):z[L]=d(A[L],k))}),z}a(E,"mergeObject");function w(C,A,k){k=k||{},k.arrayMerge=k.arrayMerge||h,k.isMergeableObject=k.isMergeableObject||e,k.cloneUnlessOtherwiseSpecified=d;var z=Array.isArray(A),L=Array.isArray(C),N=z===L;return N?z?k.arrayMerge(C,A,k):E(C,A,k):d(A,k)}a(w,"deepmerge"),w.all=a(function(A,k){if(!Array.isArray(A))throw new Error("first argument should be an array");return A.reduce(function(z,L){return w(z,L,k)},{})},"deepmergeAll");var R=w;return Kh=R,Kh}a(Ez,"requireCjs$2");var Cz=Ez();const Vn=Vr(Cz);var Qh={exports:{}},Xh,I1;function Tz(){if(I1)return Xh;I1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xh=e,Xh}a(Tz,"requireReactPropTypesSecret");var Wh,j1;function Rz(){if(j1)return Wh;j1=1;var e=Tz();function t(){}a(t,"emptyFunction");function r(){}return a(r,"emptyFunctionWithReset"),r.resetWarningCache=t,Wh=a(function(){function o(c,d,h,p,m,y){if(y!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}a(o,"shim"),o.isRequired=o;function l(){return o}a(l,"getShim");var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:l,element:o,elementType:o,instanceOf:l,node:o,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:r,resetWarningCache:t};return u.PropTypes=u,u},"factoryWithThrowingShims"),Wh}a(Rz,"requireFactoryWithThrowingShims");var U1;function Oz(){return U1||(U1=1,Qh.exports=Rz()()),Qh.exports}a(Oz,"requirePropTypes");var Az=Oz();const ge=Vr(Az);/**!
484
484
  * @fileOverview Kickass library to create and place poppers near their reference elements.
485
485
  * @version 1.16.1
486
486
  * @license
@@ -503,7 +503,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
503
503
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
504
504
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
505
505
  * SOFTWARE.
506
- */var ys=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Mz=(function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(ys&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0})();function _z(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}a(_z,"microtaskDebounce");function kz(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Mz))}}a(kz,"taskDebounce");var Dz=ys&&window.Promise,Nz=Dz?_z:kz;function WC(e){var t={};return e&&t.toString.call(e)==="[object Function]"}a(WC,"isFunction$1");function uo(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,o=r.getComputedStyle(e,null);return t?o[t]:o}a(uo,"getStyleComputedProperty$1");function ig(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}a(ig,"getParentNode");function vs(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=uo(e),r=t.overflow,o=t.overflowX,l=t.overflowY;return/(auto|scroll|overlay)/.test(r+l+o)?e:vs(ig(e))}a(vs,"getScrollParent$1");function ZC(e){return e&&e.referenceNode?e.referenceNode:e}a(ZC,"getReferenceNode");var B1=ys&&!!(window.MSInputMethodContext&&document.documentMode),H1=ys&&/MSIE 10/.test(navigator.userAgent);function _a(e){return e===11?B1:e===10?H1:B1||H1}a(_a,"isIE");function ya(e){if(!e)return document.documentElement;for(var t=_a(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var o=r&&r.nodeName;return!o||o==="BODY"||o==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&uo(r,"position")==="static"?ya(r):r}a(ya,"getOffsetParent");function Pz(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||ya(e.firstElementChild)===e}a(Pz,"isOffsetContainer");function Gh(e){return e.parentNode!==null?Gh(e.parentNode):e}a(Gh,"getRoot");function Sc(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=r?e:t,l=r?t:e,u=document.createRange();u.setStart(o,0),u.setEnd(l,0);var c=u.commonAncestorContainer;if(e!==c&&t!==c||o.contains(l))return Pz(c)?c:ya(c);var d=Gh(e);return d.host?Sc(d.host,t):Sc(e,Gh(t).host)}a(Sc,"findCommonOffsetParent");function va(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",o=e.nodeName;if(o==="BODY"||o==="HTML"){var l=e.ownerDocument.documentElement,u=e.ownerDocument.scrollingElement||l;return u[r]}return e[r]}a(va,"getScroll");function Lz(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=va(t,"top"),l=va(t,"left"),u=r?-1:1;return e.top+=o*u,e.bottom+=o*u,e.left+=l*u,e.right+=l*u,e}a(Lz,"includeScroll");function F1(e,t){var r=t==="x"?"Left":"Top",o=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+o+"Width"])}a(F1,"getBordersSize");function q1(e,t,r,o){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],_a(10)?parseInt(r["offset"+e])+parseInt(o["margin"+(e==="Height"?"Top":"Left")])+parseInt(o["margin"+(e==="Height"?"Bottom":"Right")]):0)}a(q1,"getSize");function JC(e){var t=e.body,r=e.documentElement,o=_a(10)&&getComputedStyle(r);return{height:q1("Height",t,r,o),width:q1("Width",t,r,o)}}a(JC,"getWindowSizes");var zz=a(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},"classCallCheck"),Iz=(function(){function e(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return a(e,"defineProperties"),function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}})(),ba=a(function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},"defineProperty"),Pn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e};function Ei(e){return Pn({},e,{right:e.left+e.width,bottom:e.top+e.height})}a(Ei,"getClientRect$1");function $h(e){var t={};try{if(_a(10)){t=e.getBoundingClientRect();var r=va(e,"top"),o=va(e,"left");t.top+=r,t.left+=o,t.bottom+=r,t.right+=o}else t=e.getBoundingClientRect()}catch{}var l={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},u=e.nodeName==="HTML"?JC(e.ownerDocument):{},c=u.width||e.clientWidth||l.width,d=u.height||e.clientHeight||l.height,p=e.offsetWidth-c,h=e.offsetHeight-d;if(p||h){var m=uo(e);p-=F1(m,"x"),h-=F1(m,"y"),l.width-=p,l.height-=h}return Ei(l)}a($h,"getBoundingClientRect");function og(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=_a(10),l=t.nodeName==="HTML",u=$h(e),c=$h(t),d=vs(e),p=uo(t),h=parseFloat(p.borderTopWidth),m=parseFloat(p.borderLeftWidth);r&&l&&(c.top=Math.max(c.top,0),c.left=Math.max(c.left,0));var y=Ei({top:u.top-c.top-h,left:u.left-c.left-m,width:u.width,height:u.height});if(y.marginTop=0,y.marginLeft=0,!o&&l){var b=parseFloat(p.marginTop),x=parseFloat(p.marginLeft);y.top-=h-b,y.bottom-=h-b,y.left-=m-x,y.right-=m-x,y.marginTop=b,y.marginLeft=x}return(o&&!r?t.contains(d):t===d&&d.nodeName!=="BODY")&&(y=Lz(y,t)),y}a(og,"getOffsetRectRelativeToArbitraryNode");function jz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,o=og(e,r),l=Math.max(r.clientWidth,window.innerWidth||0),u=Math.max(r.clientHeight,window.innerHeight||0),c=t?0:va(r),d=t?0:va(r,"left"),p={top:c-o.top+o.marginTop,left:d-o.left+o.marginLeft,width:l,height:u};return Ei(p)}a(jz,"getViewportOffsetRectRelativeToArtbitraryNode");function eT(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(uo(e,"position")==="fixed")return!0;var r=ig(e);return r?eT(r):!1}a(eT,"isFixed");function tT(e){if(!e||!e.parentElement||_a())return document.documentElement;for(var t=e.parentElement;t&&uo(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}a(tT,"getFixedPositionOffsetParent");function ag(e,t,r,o){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,u={top:0,left:0},c=l?tT(e):Sc(e,ZC(t));if(o==="viewport")u=jz(c,l);else{var d=void 0;o==="scrollParent"?(d=vs(ig(t)),d.nodeName==="BODY"&&(d=e.ownerDocument.documentElement)):o==="window"?d=e.ownerDocument.documentElement:d=o;var p=og(d,c,l);if(d.nodeName==="HTML"&&!eT(c)){var h=JC(e.ownerDocument),m=h.height,y=h.width;u.top+=p.top-p.marginTop,u.bottom=m+p.top,u.left+=p.left-p.marginLeft,u.right=y+p.left}else u=p}r=r||0;var b=typeof r=="number";return u.left+=b?r:r.left||0,u.top+=b?r:r.top||0,u.right-=b?r:r.right||0,u.bottom-=b?r:r.bottom||0,u}a(ag,"getBoundaries");function Uz(e){var t=e.width,r=e.height;return t*r}a(Uz,"getArea");function nT(e,t,r,o,l){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var c=ag(r,o,u,l),d={top:{width:c.width,height:t.top-c.top},right:{width:c.right-t.right,height:c.height},bottom:{width:c.width,height:c.bottom-t.bottom},left:{width:t.left-c.left,height:c.height}},p=Object.keys(d).map(function(b){return Pn({key:b},d[b],{area:Uz(d[b])})}).sort(function(b,x){return x.area-b.area}),h=p.filter(function(b){var x=b.width,E=b.height;return x>=r.clientWidth&&E>=r.clientHeight}),m=h.length>0?h[0].key:p[0].key,y=e.split("-")[1];return m+(y?"-"+y:"")}a(nT,"computeAutoPlacement");function rT(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,l=o?tT(t):Sc(t,ZC(r));return og(r,l,o)}a(rT,"getReferenceOffsets");function iT(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),o=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),l=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),u={width:e.offsetWidth+l,height:e.offsetHeight+o};return u}a(iT,"getOuterSizes");function xc(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}a(xc,"getOppositePlacement");function oT(e,t,r){r=r.split("-")[0];var o=iT(e),l={width:o.width,height:o.height},u=["right","left"].indexOf(r)!==-1,c=u?"top":"left",d=u?"left":"top",p=u?"height":"width",h=u?"width":"height";return l[c]=t[c]+t[p]/2-o[p]/2,r===d?l[d]=t[d]-o[h]:l[d]=t[xc(d)],l}a(oT,"getPopperOffsets");function bs(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}a(bs,"find$1");function Bz(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(l){return l[t]===r});var o=bs(e,function(l){return l[t]===r});return e.indexOf(o)}a(Bz,"findIndex");function aT(e,t,r){var o=r===void 0?e:e.slice(0,Bz(e,"name",r));return o.forEach(function(l){l.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var u=l.function||l.fn;l.enabled&&WC(u)&&(t.offsets.popper=Ei(t.offsets.popper),t.offsets.reference=Ei(t.offsets.reference),t=u(t,l))}),t}a(aT,"runModifiers");function Hz(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=rT(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=nT(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=oT(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=aT(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}a(Hz,"update");function lT(e,t){return e.some(function(r){var o=r.name,l=r.enabled;return l&&o===t})}a(lT,"isModifierEnabled");function lg(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var l=t[o],u=l?""+l+r:e;if(typeof document.body.style[u]<"u")return u}return null}a(lg,"getSupportedPropertyName");function Fz(){return this.state.isDestroyed=!0,lT(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[lg("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}a(Fz,"destroy");function sT(e){var t=e.ownerDocument;return t?t.defaultView:window}a(sT,"getWindow");function uT(e,t,r,o){var l=e.nodeName==="BODY",u=l?e.ownerDocument.defaultView:e;u.addEventListener(t,r,{passive:!0}),l||uT(vs(u.parentNode),t,r,o),o.push(u)}a(uT,"attachToScrollParents");function qz(e,t,r,o){r.updateBound=o,sT(e).addEventListener("resize",r.updateBound,{passive:!0});var l=vs(e);return uT(l,"scroll",r.updateBound,r.scrollParents),r.scrollElement=l,r.eventsEnabled=!0,r}a(qz,"setupEventListeners");function Vz(){this.state.eventsEnabled||(this.state=qz(this.reference,this.options,this.state,this.scheduleUpdate))}a(Vz,"enableEventListeners");function Gz(e,t){return sT(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(r){r.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}a(Gz,"removeEventListeners");function $z(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Gz(this.reference,this.state))}a($z,"disableEventListeners");function sg(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}a(sg,"isNumeric");function Yh(e,t){Object.keys(t).forEach(function(r){var o="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&sg(t[r])&&(o="px"),e.style[r]=t[r]+o})}a(Yh,"setStyles");function Yz(e,t){Object.keys(t).forEach(function(r){var o=t[r];o!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}a(Yz,"setAttributes");function Kz(e){return Yh(e.instance.popper,e.styles),Yz(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Yh(e.arrowElement,e.arrowStyles),e}a(Kz,"applyStyle");function Qz(e,t,r,o,l){var u=rT(l,t,e,r.positionFixed),c=nT(r.placement,u,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",c),Yh(t,{position:r.positionFixed?"fixed":"absolute"}),r}a(Qz,"applyStyleOnLoad");function Xz(e,t){var r=e.offsets,o=r.popper,l=r.reference,u=Math.round,c=Math.floor,d=a(function(C){return C},"noRound2"),p=u(l.width),h=u(o.width),m=["left","right"].indexOf(e.placement)!==-1,y=e.placement.indexOf("-")!==-1,b=p%2===h%2,x=p%2===1&&h%2===1,E=t?m||y||b?u:c:d,w=t?u:d;return{left:E(x&&!y&&t?o.left-1:o.left),top:w(o.top),bottom:w(o.bottom),right:E(o.right)}}a(Xz,"getRoundedOffsets");var Wz=ys&&/Firefox/i.test(navigator.userAgent);function Zz(e,t){var r=t.x,o=t.y,l=e.offsets.popper,u=bs(e.instance.modifiers,function(k){return k.name==="applyStyle"}).gpuAcceleration;u!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var c=u!==void 0?u:t.gpuAcceleration,d=ya(e.instance.popper),p=$h(d),h={position:l.position},m=Xz(e,window.devicePixelRatio<2||!Wz),y=r==="bottom"?"top":"bottom",b=o==="right"?"left":"right",x=lg("transform"),E=void 0,w=void 0;if(y==="bottom"?d.nodeName==="HTML"?w=-d.clientHeight+m.bottom:w=-p.height+m.bottom:w=m.top,b==="right"?d.nodeName==="HTML"?E=-d.clientWidth+m.right:E=-p.width+m.right:E=m.left,c&&x)h[x]="translate3d("+E+"px, "+w+"px, 0)",h[y]=0,h[b]=0,h.willChange="transform";else{var R=y==="bottom"?-1:1,C=b==="right"?-1:1;h[y]=w*R,h[b]=E*C,h.willChange=y+", "+b}var A={"x-placement":e.placement};return e.attributes=Pn({},A,e.attributes),e.styles=Pn({},h,e.styles),e.arrowStyles=Pn({},e.offsets.arrow,e.arrowStyles),e}a(Zz,"computeStyle");function cT(e,t,r){var o=bs(e,function(d){var p=d.name;return p===t}),l=!!o&&e.some(function(d){return d.name===r&&d.enabled&&d.order<o.order});if(!l){var u="`"+t+"`",c="`"+r+"`";console.warn(c+" modifier is required by "+u+" modifier in order to work, be sure to include it before "+u+"!")}return l}a(cT,"isModifierRequired");function Jz(e,t){var r;if(!cT(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if(typeof o=="string"){if(o=e.instance.popper.querySelector(o),!o)return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var l=e.placement.split("-")[0],u=e.offsets,c=u.popper,d=u.reference,p=["left","right"].indexOf(l)!==-1,h=p?"height":"width",m=p?"Top":"Left",y=m.toLowerCase(),b=p?"left":"top",x=p?"bottom":"right",E=iT(o)[h];d[x]-E<c[y]&&(e.offsets.popper[y]-=c[y]-(d[x]-E)),d[y]+E>c[x]&&(e.offsets.popper[y]+=d[y]+E-c[x]),e.offsets.popper=Ei(e.offsets.popper);var w=d[y]+d[h]/2-E/2,R=uo(e.instance.popper),C=parseFloat(R["margin"+m]),A=parseFloat(R["border"+m+"Width"]),k=w-e.offsets.popper[y]-C-A;return k=Math.max(Math.min(c[h]-E,k),0),e.arrowElement=o,e.offsets.arrow=(r={},ba(r,y,Math.round(k)),ba(r,b,""),r),e}a(Jz,"arrow");function e4(e){return e==="end"?"start":e==="start"?"end":e}a(e4,"getOppositeVariation");var fT=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Zp=fT.slice(3);function V1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Zp.indexOf(e),o=Zp.slice(r+1).concat(Zp.slice(0,r));return t?o.reverse():o}a(V1,"clockwise");var Jp={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function t4(e,t){if(lT(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=ag(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],l=xc(o),u=e.placement.split("-")[1]||"",c=[];switch(t.behavior){case Jp.FLIP:c=[o,l];break;case Jp.CLOCKWISE:c=V1(o);break;case Jp.COUNTERCLOCKWISE:c=V1(o,!0);break;default:c=t.behavior}return c.forEach(function(d,p){if(o!==d||c.length===p+1)return e;o=e.placement.split("-")[0],l=xc(o);var h=e.offsets.popper,m=e.offsets.reference,y=Math.floor,b=o==="left"&&y(h.right)>y(m.left)||o==="right"&&y(h.left)<y(m.right)||o==="top"&&y(h.bottom)>y(m.top)||o==="bottom"&&y(h.top)<y(m.bottom),x=y(h.left)<y(r.left),E=y(h.right)>y(r.right),w=y(h.top)<y(r.top),R=y(h.bottom)>y(r.bottom),C=o==="left"&&x||o==="right"&&E||o==="top"&&w||o==="bottom"&&R,A=["top","bottom"].indexOf(o)!==-1,k=!!t.flipVariations&&(A&&u==="start"&&x||A&&u==="end"&&E||!A&&u==="start"&&w||!A&&u==="end"&&R),z=!!t.flipVariationsByContent&&(A&&u==="start"&&E||A&&u==="end"&&x||!A&&u==="start"&&R||!A&&u==="end"&&w),L=k||z;(b||C||L)&&(e.flipped=!0,(b||C)&&(o=c[p+1]),L&&(u=e4(u)),e.placement=o+(u?"-"+u:""),e.offsets.popper=Pn({},e.offsets.popper,oT(e.instance.popper,e.offsets.reference,e.placement)),e=aT(e.instance.modifiers,e,"flip"))}),e}a(t4,"flip");function n4(e){var t=e.offsets,r=t.popper,o=t.reference,l=e.placement.split("-")[0],u=Math.floor,c=["top","bottom"].indexOf(l)!==-1,d=c?"right":"bottom",p=c?"left":"top",h=c?"width":"height";return r[d]<u(o[p])&&(e.offsets.popper[p]=u(o[p])-r[h]),r[p]>u(o[d])&&(e.offsets.popper[p]=u(o[d])),e}a(n4,"keepTogether");function r4(e,t,r,o){var l=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),u=+l[1],c=l[2];if(!u)return e;if(c.indexOf("%")===0){var d=void 0;switch(c){case"%p":d=r;break;case"%":case"%r":default:d=o}var p=Ei(d);return p[t]/100*u}else if(c==="vh"||c==="vw"){var h=void 0;return c==="vh"?h=Math.max(document.documentElement.clientHeight,window.innerHeight||0):h=Math.max(document.documentElement.clientWidth,window.innerWidth||0),h/100*u}else return u}a(r4,"toValue");function i4(e,t,r,o){var l=[0,0],u=["right","left"].indexOf(o)!==-1,c=e.split(/(\+|\-)/).map(function(m){return m.trim()}),d=c.indexOf(bs(c,function(m){return m.search(/,|\s/)!==-1}));c[d]&&c[d].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var p=/\s*,\s*|\s+/,h=d!==-1?[c.slice(0,d).concat([c[d].split(p)[0]]),[c[d].split(p)[1]].concat(c.slice(d+1))]:[c];return h=h.map(function(m,y){var b=(y===1?!u:u)?"height":"width",x=!1;return m.reduce(function(E,w){return E[E.length-1]===""&&["+","-"].indexOf(w)!==-1?(E[E.length-1]=w,x=!0,E):x?(E[E.length-1]+=w,x=!1,E):E.concat(w)},[]).map(function(E){return r4(E,b,t,r)})}),h.forEach(function(m,y){m.forEach(function(b,x){sg(b)&&(l[y]+=b*(m[x-1]==="-"?-1:1))})}),l}a(i4,"parseOffset");function o4(e,t){var r=t.offset,o=e.placement,l=e.offsets,u=l.popper,c=l.reference,d=o.split("-")[0],p=void 0;return sg(+r)?p=[+r,0]:p=i4(r,u,c,d),d==="left"?(u.top+=p[0],u.left-=p[1]):d==="right"?(u.top+=p[0],u.left+=p[1]):d==="top"?(u.left+=p[0],u.top-=p[1]):d==="bottom"&&(u.left+=p[0],u.top+=p[1]),e.popper=u,e}a(o4,"offset");function a4(e,t){var r=t.boundariesElement||ya(e.instance.popper);e.instance.reference===r&&(r=ya(r));var o=lg("transform"),l=e.instance.popper.style,u=l.top,c=l.left,d=l[o];l.top="",l.left="",l[o]="";var p=ag(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);l.top=u,l.left=c,l[o]=d,t.boundaries=p;var h=t.priority,m=e.offsets.popper,y={primary:a(function(x){var E=m[x];return m[x]<p[x]&&!t.escapeWithReference&&(E=Math.max(m[x],p[x])),ba({},x,E)},"primary"),secondary:a(function(x){var E=x==="right"?"left":"top",w=m[E];return m[x]>p[x]&&!t.escapeWithReference&&(w=Math.min(m[E],p[x]-(x==="right"?m.width:m.height))),ba({},E,w)},"secondary")};return h.forEach(function(b){var x=["left","top"].indexOf(b)!==-1?"primary":"secondary";m=Pn({},m,y[x](b))}),e.offsets.popper=m,e}a(a4,"preventOverflow");function l4(e){var t=e.placement,r=t.split("-")[0],o=t.split("-")[1];if(o){var l=e.offsets,u=l.reference,c=l.popper,d=["bottom","top"].indexOf(r)!==-1,p=d?"left":"top",h=d?"width":"height",m={start:ba({},p,u[p]),end:ba({},p,u[p]+u[h]-c[h])};e.offsets.popper=Pn({},c,m[o])}return e}a(l4,"shift");function s4(e){if(!cT(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=bs(e.instance.modifiers,function(o){return o.name==="preventOverflow"}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}a(s4,"hide");function u4(e){var t=e.placement,r=t.split("-")[0],o=e.offsets,l=o.popper,u=o.reference,c=["left","right"].indexOf(r)!==-1,d=["top","left"].indexOf(r)===-1;return l[c?"left":"top"]=u[r]-(d?l[c?"width":"height"]:0),e.placement=xc(t),e.offsets.popper=Ei(l),e}a(u4,"inner");var c4={shift:{order:100,enabled:!0,fn:l4},offset:{order:200,enabled:!0,fn:o4,offset:0},preventOverflow:{order:300,enabled:!0,fn:a4,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:n4},arrow:{order:500,enabled:!0,fn:Jz,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:t4,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:u4},hide:{order:800,enabled:!0,fn:s4},computeStyle:{order:850,enabled:!0,fn:Zz,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Kz,onLoad:Qz,gpuAcceleration:void 0}},f4={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:a(function(){},"onCreate"),onUpdate:a(function(){},"onUpdate"),modifiers:c4},rs=(function(){function e(t,r){var o=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};zz(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=Nz(this.update.bind(this)),this.options=Pn({},e.Defaults,l),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(Pn({},e.Defaults.modifiers,l.modifiers)).forEach(function(c){o.options.modifiers[c]=Pn({},e.Defaults.modifiers[c]||{},l.modifiers?l.modifiers[c]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(c){return Pn({name:c},o.options.modifiers[c])}).sort(function(c,d){return c.order-d.order}),this.modifiers.forEach(function(c){c.enabled&&WC(c.onLoad)&&c.onLoad(o.reference,o.popper,o.options,c,o.state)}),this.update();var u=this.options.eventsEnabled;u&&this.enableEventListeners(),this.state.eventsEnabled=u}return a(e,"Popper2"),Iz(e,[{key:"update",value:a(function(){return Hz.call(this)},"update$$1")},{key:"destroy",value:a(function(){return Fz.call(this)},"destroy$$1")},{key:"enableEventListeners",value:a(function(){return Vz.call(this)},"enableEventListeners$$1")},{key:"disableEventListeners",value:a(function(){return $z.call(this)},"disableEventListeners$$1")}]),e})();rs.Utils=(typeof window<"u"?window:globalThis).PopperUtils;rs.placements=fT;rs.Defaults=f4;var d4=["innerHTML","ownerDocument","style","attributes","nodeValue"],p4=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],h4=["bigint","boolean","null","number","string","symbol","undefined"];function ef(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(m4(t))return t}a(ef,"getObjectType$1");function Wn(e){return function(t){return ef(t)===e}}a(Wn,"isObjectOfType");function m4(e){return p4.includes(e)}a(m4,"isObjectType");function ka(e){return function(t){return typeof t===e}}a(ka,"isOfType$1");function g4(e){return h4.includes(e)}a(g4,"isPrimitiveType");function ee(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ee.array(e))return"Array";if(ee.plainFunction(e))return"Function";var t=ef(e);return t||"Object"}a(ee,"is");ee.array=Array.isArray;ee.arrayOf=function(e,t){return!ee.array(e)&&!ee.function(t)?!1:e.every(function(r){return t(r)})};ee.asyncGeneratorFunction=function(e){return ef(e)==="AsyncGeneratorFunction"};ee.asyncFunction=Wn("AsyncFunction");ee.bigint=ka("bigint");ee.boolean=function(e){return e===!0||e===!1};ee.date=Wn("Date");ee.defined=function(e){return!ee.undefined(e)};ee.domElement=function(e){return ee.object(e)&&!ee.plainObject(e)&&e.nodeType===1&&ee.string(e.nodeName)&&d4.every(function(t){return t in e})};ee.empty=function(e){return ee.string(e)&&e.length===0||ee.array(e)&&e.length===0||ee.object(e)&&!ee.map(e)&&!ee.set(e)&&Object.keys(e).length===0||ee.set(e)&&e.size===0||ee.map(e)&&e.size===0};ee.error=Wn("Error");ee.function=ka("function");ee.generator=function(e){return ee.iterable(e)&&ee.function(e.next)&&ee.function(e.throw)};ee.generatorFunction=Wn("GeneratorFunction");ee.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};ee.iterable=function(e){return!ee.nullOrUndefined(e)&&ee.function(e[Symbol.iterator])};ee.map=Wn("Map");ee.nan=function(e){return Number.isNaN(e)};ee.null=function(e){return e===null};ee.nullOrUndefined=function(e){return ee.null(e)||ee.undefined(e)};ee.number=function(e){return ka("number")(e)&&!ee.nan(e)};ee.numericString=function(e){return ee.string(e)&&e.length>0&&!Number.isNaN(Number(e))};ee.object=function(e){return!ee.nullOrUndefined(e)&&(ee.function(e)||typeof e=="object")};ee.oneOf=function(e,t){return ee.array(e)?e.indexOf(t)>-1:!1};ee.plainFunction=Wn("Function");ee.plainObject=function(e){if(ef(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ee.primitive=function(e){return ee.null(e)||g4(typeof e)};ee.promise=Wn("Promise");ee.propertyOf=function(e,t,r){if(!ee.object(e)||!t)return!1;var o=e[t];return ee.function(r)?r(o):ee.defined(o)};ee.regexp=Wn("RegExp");ee.set=Wn("Set");ee.string=ka("string");ee.symbol=ka("symbol");ee.undefined=ka("undefined");ee.weakMap=Wn("WeakMap");ee.weakSet=Wn("WeakSet");function dT(e){return function(t){return typeof t===e}}a(dT,"isOfType");var y4=dT("function"),v4=a(function(e){return e===null},"isNull"),G1=a(function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},"isRegex"),$1=a(function(e){return!b4(e)&&!v4(e)&&(y4(e)||typeof e=="object")},"isObject"),b4=dT("undefined"),Kh=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:a(function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}},"next")};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function S4(e,t){var r=e.length;if(r!==t.length)return!1;for(var o=r;o--!==0;)if(!nn(e[o],t[o]))return!1;return!0}a(S4,"equalArray");function x4(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=new DataView(e.buffer),o=new DataView(t.buffer),l=e.byteLength;l--;)if(r.getUint8(l)!==o.getUint8(l))return!1;return!0}a(x4,"equalArrayBuffer");function w4(e,t){var r,o,l,u;if(e.size!==t.size)return!1;try{for(var c=Kh(e.entries()),d=c.next();!d.done;d=c.next()){var p=d.value;if(!t.has(p[0]))return!1}}catch(y){r={error:y}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}try{for(var h=Kh(e.entries()),m=h.next();!m.done;m=h.next()){var p=m.value;if(!nn(p[1],t.get(p[0])))return!1}}catch(y){l={error:y}}finally{try{m&&!m.done&&(u=h.return)&&u.call(h)}finally{if(l)throw l.error}}return!0}a(w4,"equalMap");function E4(e,t){var r,o;if(e.size!==t.size)return!1;try{for(var l=Kh(e.entries()),u=l.next();!u.done;u=l.next()){var c=u.value;if(!t.has(c[0]))return!1}}catch(d){r={error:d}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return!0}a(E4,"equalSet");function nn(e,t){if(e===t)return!0;if(e&&$1(e)&&t&&$1(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return S4(e,t);if(e instanceof Map&&t instanceof Map)return w4(e,t);if(e instanceof Set&&t instanceof Set)return E4(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return x4(e,t);if(G1(e)&&G1(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(var l=r.length;l--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[l]))return!1;for(var l=r.length;l--!==0;){var u=r[l];if(!(u==="_owner"&&e.$$typeof)&&!nn(e[u],t[u]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}a(nn,"equal");function C4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(r){return ee.string(r)||ee.array(r)||ee.plainObject(r)})}a(C4,"canHaveLength");function T4(e,t,r){return pT(e,t)?[e,t].every(ee.array)?!e.some(W1(r))&&t.some(W1(r)):[e,t].every(ee.plainObject)?!Object.entries(e).some(X1(r))&&Object.entries(t).some(X1(r)):t===r:!1}a(T4,"checkEquality");function Y1(e,t,r){var o=r.actual,l=r.key,u=r.previous,c=r.type,d=fr(e,l),p=fr(t,l),h=[d,p].every(ee.number)&&(c==="increased"?d<p:d>p);return ee.undefined(o)||(h=h&&p===o),ee.undefined(u)||(h=h&&d===u),h}a(Y1,"compareNumbers");function K1(e,t,r){var o=r.key,l=r.type,u=r.value,c=fr(e,o),d=fr(t,o),p=l==="added"?c:d,h=l==="added"?d:c;if(!ee.nullOrUndefined(u)){if(ee.defined(p)){if(ee.array(p)||ee.plainObject(p))return T4(p,h,u)}else return nn(h,u);return!1}return[c,d].every(ee.array)?!h.every(ug(p)):[c,d].every(ee.plainObject)?R4(Object.keys(p),Object.keys(h)):![c,d].every(function(m){return ee.primitive(m)&&ee.defined(m)})&&(l==="added"?!ee.defined(c)&&ee.defined(d):ee.defined(c)&&!ee.defined(d))}a(K1,"compareValues");function Q1(e,t,r){var o=r===void 0?{}:r,l=o.key,u=fr(e,l),c=fr(t,l);if(!pT(u,c))throw new TypeError("Inputs have different types");if(!C4(u,c))throw new TypeError("Inputs don't have length");return[u,c].every(ee.plainObject)&&(u=Object.keys(u),c=Object.keys(c)),[u,c]}a(Q1,"getIterables");function X1(e){return function(t){var r=t[0],o=t[1];return ee.array(e)?nn(e,o)||e.some(function(l){return nn(l,o)||ee.array(o)&&ug(o)(l)}):ee.plainObject(e)&&e[r]?!!e[r]&&nn(e[r],o):nn(e,o)}}a(X1,"hasEntry");function R4(e,t){return t.some(function(r){return!e.includes(r)})}a(R4,"hasExtraKeys");function W1(e){return function(t){return ee.array(e)?e.some(function(r){return nn(r,t)||ee.array(t)&&ug(t)(r)}):nn(e,t)}}a(W1,"hasValue");function Nl(e,t){return ee.array(e)?e.some(function(r){return nn(r,t)}):nn(e,t)}a(Nl,"includesOrEqualsTo");function ug(e){return function(t){return e.some(function(r){return nn(r,t)})}}a(ug,"isEqualPredicate");function pT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(ee.array)||e.every(ee.number)||e.every(ee.plainObject)||e.every(ee.string)}a(pT,"isSameType");function fr(e,t){if(ee.plainObject(e)||ee.array(e)){if(ee.string(t)){var r=t.split(".");return r.reduce(function(o,l){return o&&o[l]},e)}return ee.number(t)?e[t]:e}return e}a(fr,"nested");function O4(e,t){if([e,t].some(ee.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(y){return ee.plainObject(y)||ee.array(y)}))throw new Error("Expected plain objects or array");var r=a(function(y,b){try{return K1(e,t,{key:y,type:"added",value:b})}catch{return!1}},"added"),o=a(function(y,b,x){try{var E=fr(e,y),w=fr(t,y),R=ee.defined(b),C=ee.defined(x);if(R||C){var A=C?Nl(x,E):!Nl(b,E),k=Nl(b,w);return A&&k}return[E,w].every(ee.array)||[E,w].every(ee.plainObject)?!nn(E,w):E!==w}catch{return!1}},"changed"),l=a(function(y,b,x){if(!ee.defined(y))return!1;try{var E=fr(e,y),w=fr(t,y),R=ee.defined(x);return Nl(b,E)&&(R?Nl(x,w):!R)}catch{return!1}},"changedFrom"),u=a(function(y,b){return ee.defined(y)?o(y,b):!1},"changedTo"),c=a(function(y,b,x){if(!ee.defined(y))return!1;try{return Y1(e,t,{key:y,actual:b,previous:x,type:"decreased"})}catch{return!1}},"decreased"),d=a(function(y){try{var b=Q1(e,t,{key:y}),x=b[0],E=b[1];return!!x.length&&!E.length}catch{return!1}},"emptied"),p=a(function(y){try{var b=Q1(e,t,{key:y}),x=b[0],E=b[1];return!x.length&&!!E.length}catch{return!1}},"filled"),h=a(function(y,b,x){if(!ee.defined(y))return!1;try{return Y1(e,t,{key:y,actual:b,previous:x,type:"increased"})}catch{return!1}},"increased"),m=a(function(y,b){try{return K1(e,t,{key:y,type:"removed",value:b})}catch{return!1}},"removed");return{added:r,changed:o,changedFrom:l,changedTo:u,decreased:c,emptied:d,filled:p,increased:h,removed:m}}a(O4,"treeChanges");function Z1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),r.push.apply(r,o)}return r}a(Z1,"ownKeys");function ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z1(Object(r),!0).forEach(function(o){Ft(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z1(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}a(ft,"_objectSpread2");function Ss(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}a(Ss,"_classCallCheck");function A4(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,mT(o.key),o)}}a(A4,"_defineProperties");function xs(e,t,r){return t&&A4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}a(xs,"_createClass");function Ft(e,t,r){return t=mT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a(Ft,"_defineProperty");function ws(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qh(e,t)}a(ws,"_inherits");function wc(e){return wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():a(function(r){return r.__proto__||Object.getPrototypeOf(r)},"_getPrototypeOf"),wc(e)}a(wc,"_getPrototypeOf");function Qh(e,t){return Qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():a(function(o,l){return o.__proto__=l,o},"_setPrototypeOf"),Qh(e,t)}a(Qh,"_setPrototypeOf");function M4(){if(typeof Reflect>"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}}a(M4,"_isNativeReflectConstruct");function _4(e,t){if(e==null)return{};var r={},o=Object.keys(e),l,u;for(u=0;u<o.length;u++)l=o[u],!(t.indexOf(l)>=0)&&(r[l]=e[l]);return r}a(_4,"_objectWithoutPropertiesLoose");function hT(e,t){if(e==null)return{};var r=_4(e,t),o,l;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(l=0;l<u.length;l++)o=u[l],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}a(hT,"_objectWithoutProperties");function Ir(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}a(Ir,"_assertThisInitialized");function k4(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ir(e)}a(k4,"_possibleConstructorReturn");function Es(e){var t=M4();return a(function(){var o=wc(e),l;if(t){var u=wc(this).constructor;l=Reflect.construct(o,arguments,u)}else l=o.apply(this,arguments);return k4(this,l)},"_createSuperInternal")}a(Es,"_createSuper");function D4(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}a(D4,"_toPrimitive");function mT(e){var t=D4(e,"string");return typeof t=="symbol"?t:String(t)}a(mT,"_toPropertyKey");var N4={flip:{padding:20},preventOverflow:{padding:10}},P4="The typeValidator argument must be a function with the signature function(props, propName, componentName).",L4="The error message is optional, but must be a string if provided.";function z4(e,t,r,o){return typeof e=="boolean"?e:typeof e=="function"?e(t,r,o):e?!!e:!1}a(z4,"propIsRequired");function I4(e,t){return Object.hasOwnProperty.call(e,t)}a(I4,"propExists");function j4(e,t,r,o){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(r,"`."))}a(j4,"missingPropError");function U4(e,t){if(typeof e!="function")throw new TypeError(P4);if(t&&typeof t!="string")throw new TypeError(L4)}a(U4,"guardAgainstInvalidArgTypes");function J1(e,t,r){return U4(e,r),function(o,l,u){for(var c=arguments.length,d=new Array(c>3?c-3:0),p=3;p<c;p++)d[p-3]=arguments[p];return z4(t,o,l,u)?I4(o,l)?e.apply(void 0,[o,l,u].concat(d)):j4(o,l,u):e.apply(void 0,[o,l,u].concat(d))}}a(J1,"isRequiredIf");var Ke={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},Pl=Gl.createPortal!==void 0;function or(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}a(or,"canUseDOM$1");function eh(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}a(eh,"isMobile");function Gu(e){var t=e.title,r=e.data,o=e.warn,l=o===void 0?!1:o,u=e.debug,c=u===void 0?!1:u,d=l?console.warn||console.error:console.log;c&&t&&r&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(r)?r.forEach(function(p){ee.plainObject(p)&&p.key?d.apply(console,[p.key,p.value]):d.apply(console,[p])}):d.apply(console,[r]),console.groupEnd())}a(Gu,"log$1");function B4(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,r,o)}a(B4,"on");function H4(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,r,o)}a(H4,"off");function F4(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,l;l=a(function(c){r(c),H4(e,t,l)},"nextCB"),B4(e,t,l,o)}a(F4,"once");function eS(){}a(eS,"noop$1");var gT=(function(e){ws(r,e);var t=Es(r);function r(){return Ss(this,r),t.apply(this,arguments)}return a(r,"ReactFloaterPortal"),xs(r,[{key:"componentDidMount",value:a(function(){or()&&(this.node||this.appendNode(),Pl||this.renderPortal())},"componentDidMount")},{key:"componentDidUpdate",value:a(function(){or()&&(Pl||this.renderPortal())},"componentDidUpdate")},{key:"componentWillUnmount",value:a(function(){!or()||!this.node||(Pl||Gl.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))},"componentWillUnmount")},{key:"appendNode",value:a(function(){var l=this.props,u=l.id,c=l.zIndex;this.node||(this.node=document.createElement("div"),u&&(this.node.id=u),c&&(this.node.style.zIndex=c),document.body.appendChild(this.node))},"appendNode")},{key:"renderPortal",value:a(function(){if(!or())return null;var l=this.props,u=l.children,c=l.setRef;if(this.node||this.appendNode(),Pl)return Gl.createPortal(u,this.node);var d=Gl.unstable_renderSubtreeIntoContainer(this,u.length>1?_e.createElement("div",null,u):u[0],this.node);return c(d),null},"renderPortal")},{key:"renderReact16",value:a(function(){var l=this.props,u=l.hasChildren,c=l.placement,d=l.target;return u?this.renderPortal():d||c==="center"?this.renderPortal():null},"renderReact16")},{key:"render",value:a(function(){return Pl?this.renderReact16():null},"render")}]),r})(_e.Component);Ft(gT,"propTypes",{children:ge.oneOfType([ge.element,ge.array]),hasChildren:ge.bool,id:ge.oneOfType([ge.string,ge.number]),placement:ge.string,setRef:ge.func.isRequired,target:ge.oneOfType([ge.object,ge.string]),zIndex:ge.number});var yT=(function(e){ws(r,e);var t=Es(r);function r(){return Ss(this,r),t.apply(this,arguments)}return a(r,"FloaterArrow"),xs(r,[{key:"parentStyle",get:a(function(){var l=this.props,u=l.placement,c=l.styles,d=c.arrow.length,p={pointerEvents:"none",position:"absolute",width:"100%"};return u.startsWith("top")?(p.bottom=0,p.left=0,p.right=0,p.height=d):u.startsWith("bottom")?(p.left=0,p.right=0,p.top=0,p.height=d):u.startsWith("left")?(p.right=0,p.top=0,p.bottom=0):u.startsWith("right")&&(p.left=0,p.top=0),p},"get")},{key:"render",value:a(function(){var l=this.props,u=l.placement,c=l.setArrowRef,d=l.styles,p=d.arrow,h=p.color,m=p.display,y=p.length,b=p.margin,x=p.position,E=p.spread,w={display:m,position:x},R,C=E,A=y;return u.startsWith("top")?(R="0,0 ".concat(C/2,",").concat(A," ").concat(C,",0"),w.bottom=0,w.marginLeft=b,w.marginRight=b):u.startsWith("bottom")?(R="".concat(C,",").concat(A," ").concat(C/2,",0 0,").concat(A),w.top=0,w.marginLeft=b,w.marginRight=b):u.startsWith("left")?(A=E,C=y,R="0,0 ".concat(C,",").concat(A/2," 0,").concat(A),w.right=0,w.marginTop=b,w.marginBottom=b):u.startsWith("right")&&(A=E,C=y,R="".concat(C,",").concat(A," ").concat(C,",0 0,").concat(A/2),w.left=0,w.marginTop=b,w.marginBottom=b),_e.createElement("div",{className:"__floater__arrow",style:this.parentStyle},_e.createElement("span",{ref:c,style:w},_e.createElement("svg",{width:C,height:A,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},_e.createElement("polygon",{points:R,fill:h}))))},"render")}]),r})(_e.Component);Ft(yT,"propTypes",{placement:ge.string.isRequired,setArrowRef:ge.func.isRequired,styles:ge.object.isRequired});var q4=["color","height","width"];function vT(e){var t=e.handleClick,r=e.styles,o=r.color,l=r.height,u=r.width,c=hT(r,q4);return _e.createElement("button",{"aria-label":"close",onClick:t,style:c,type:"button"},_e.createElement("svg",{width:"".concat(u,"px"),height:"".concat(l,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},_e.createElement("g",null,_e.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))}a(vT,"FloaterCloseBtn");vT.propTypes={handleClick:ge.func.isRequired,styles:ge.object.isRequired};function bT(e){var t=e.content,r=e.footer,o=e.handleClick,l=e.open,u=e.positionWrapper,c=e.showCloseButton,d=e.title,p=e.styles,h={content:_e.isValidElement(t)?t:_e.createElement("div",{className:"__floater__content",style:p.content},t)};return d&&(h.title=_e.isValidElement(d)?d:_e.createElement("div",{className:"__floater__title",style:p.title},d)),r&&(h.footer=_e.isValidElement(r)?r:_e.createElement("div",{className:"__floater__footer",style:p.footer},r)),(c||u)&&!ee.boolean(l)&&(h.close=_e.createElement(vT,{styles:p.close,handleClick:o})),_e.createElement("div",{className:"__floater__container",style:p.container},h.close,h.title,h.content,h.footer)}a(bT,"FloaterContainer");bT.propTypes={content:ge.node.isRequired,footer:ge.node,handleClick:ge.func.isRequired,open:ge.bool,positionWrapper:ge.bool.isRequired,showCloseButton:ge.bool.isRequired,styles:ge.object.isRequired,title:ge.node};var ST=(function(e){ws(r,e);var t=Es(r);function r(){return Ss(this,r),t.apply(this,arguments)}return a(r,"Floater"),xs(r,[{key:"style",get:a(function(){var l=this.props,u=l.disableAnimation,c=l.component,d=l.placement,p=l.hideArrow,h=l.status,m=l.styles,y=m.arrow.length,b=m.floater,x=m.floaterCentered,E=m.floaterClosing,w=m.floaterOpening,R=m.floaterWithAnimation,C=m.floaterWithComponent,A={};return p||(d.startsWith("top")?A.padding="0 0 ".concat(y,"px"):d.startsWith("bottom")?A.padding="".concat(y,"px 0 0"):d.startsWith("left")?A.padding="0 ".concat(y,"px 0 0"):d.startsWith("right")&&(A.padding="0 0 0 ".concat(y,"px"))),[Ke.OPENING,Ke.OPEN].indexOf(h)!==-1&&(A=ft(ft({},A),w)),h===Ke.CLOSING&&(A=ft(ft({},A),E)),h===Ke.OPEN&&!u&&(A=ft(ft({},A),R)),d==="center"&&(A=ft(ft({},A),x)),c&&(A=ft(ft({},A),C)),ft(ft({},b),A)},"get")},{key:"render",value:a(function(){var l=this.props,u=l.component,c=l.handleClick,d=l.hideArrow,p=l.setFloaterRef,h=l.status,m={},y=["__floater"];return u?_e.isValidElement(u)?m.content=_e.cloneElement(u,{closeFn:c}):m.content=u({closeFn:c}):m.content=_e.createElement(bT,this.props),h===Ke.OPEN&&y.push("__floater__open"),d||(m.arrow=_e.createElement(yT,this.props)),_e.createElement("div",{ref:p,className:y.join(" "),style:this.style},_e.createElement("div",{className:"__floater__body"},m.content,m.arrow))},"render")}]),r})(_e.Component);Ft(ST,"propTypes",{component:ge.oneOfType([ge.func,ge.element]),content:ge.node,disableAnimation:ge.bool.isRequired,footer:ge.node,handleClick:ge.func.isRequired,hideArrow:ge.bool.isRequired,open:ge.bool,placement:ge.string.isRequired,positionWrapper:ge.bool.isRequired,setArrowRef:ge.func.isRequired,setFloaterRef:ge.func.isRequired,showCloseButton:ge.bool,status:ge.string.isRequired,styles:ge.object.isRequired,title:ge.node});var xT=(function(e){ws(r,e);var t=Es(r);function r(){return Ss(this,r),t.apply(this,arguments)}return a(r,"ReactFloaterWrapper"),xs(r,[{key:"render",value:a(function(){var l=this.props,u=l.children,c=l.handleClick,d=l.handleMouseEnter,p=l.handleMouseLeave,h=l.setChildRef,m=l.setWrapperRef,y=l.style,b=l.styles,x;if(u)if(_e.Children.count(u)===1)if(!_e.isValidElement(u))x=_e.createElement("span",null,u);else{var E=ee.function(u.type)?"innerRef":"ref";x=_e.cloneElement(_e.Children.only(u),Ft({},E,h))}else x=u;return x?_e.createElement("span",{ref:m,style:ft(ft({},b),y),onClick:c,onMouseEnter:d,onMouseLeave:p},x):null},"render")}]),r})(_e.Component);Ft(xT,"propTypes",{children:ge.node,handleClick:ge.func.isRequired,handleMouseEnter:ge.func.isRequired,handleMouseLeave:ge.func.isRequired,setChildRef:ge.func.isRequired,setWrapperRef:ge.func.isRequired,style:ge.object,styles:ge.object.isRequired});var V4={zIndex:100};function G4(e){var t=Vn(V4,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}a(G4,"getStyles$1");var $4=["arrow","flip","offset"],Y4=["position","top","right","bottom","left"],cg=(function(e){ws(r,e);var t=Es(r);function r(o){var l;return Ss(this,r),l=t.call(this,o),Ft(Ir(l),"setArrowRef",function(u){l.arrowRef=u}),Ft(Ir(l),"setChildRef",function(u){l.childRef=u}),Ft(Ir(l),"setFloaterRef",function(u){l.floaterRef=u}),Ft(Ir(l),"setWrapperRef",function(u){l.wrapperRef=u}),Ft(Ir(l),"handleTransitionEnd",function(){var u=l.state.status,c=l.props.callback;l.wrapperPopper&&l.wrapperPopper.instance.update(),l.setState({status:u===Ke.OPENING?Ke.OPEN:Ke.IDLE},function(){var d=l.state.status;c(d===Ke.OPEN?"open":"close",l.props)})}),Ft(Ir(l),"handleClick",function(){var u=l.props,c=u.event,d=u.open;if(!ee.boolean(d)){var p=l.state,h=p.positionWrapper,m=p.status;(l.event==="click"||l.event==="hover"&&h)&&(Gu({title:"click",data:[{event:c,status:m===Ke.OPEN?"closing":"opening"}],debug:l.debug}),l.toggle())}}),Ft(Ir(l),"handleMouseEnter",function(){var u=l.props,c=u.event,d=u.open;if(!(ee.boolean(d)||eh())){var p=l.state.status;l.event==="hover"&&p===Ke.IDLE&&(Gu({title:"mouseEnter",data:[{key:"originalEvent",value:c}],debug:l.debug}),clearTimeout(l.eventDelayTimeout),l.toggle())}}),Ft(Ir(l),"handleMouseLeave",function(){var u=l.props,c=u.event,d=u.eventDelay,p=u.open;if(!(ee.boolean(p)||eh())){var h=l.state,m=h.status,y=h.positionWrapper;l.event==="hover"&&(Gu({title:"mouseLeave",data:[{key:"originalEvent",value:c}],debug:l.debug}),d?[Ke.OPENING,Ke.OPEN].indexOf(m)!==-1&&!y&&!l.eventDelayTimeout&&(l.eventDelayTimeout=setTimeout(function(){delete l.eventDelayTimeout,l.toggle()},d*1e3)):l.toggle(Ke.IDLE))}}),l.state={currentPlacement:o.placement,needsUpdate:!1,positionWrapper:o.wrapperOptions.position&&!!o.target,status:Ke.INIT,statusWrapper:Ke.INIT},l._isMounted=!1,l.hasMounted=!1,or()&&window.addEventListener("load",function(){l.popper&&l.popper.instance.update(),l.wrapperPopper&&l.wrapperPopper.instance.update()}),l}return a(r,"ReactFloater"),xs(r,[{key:"componentDidMount",value:a(function(){if(or()){var l=this.state.positionWrapper,u=this.props,c=u.children,d=u.open,p=u.target;this._isMounted=!0,Gu({title:"init",data:{hasChildren:!!c,hasTarget:!!p,isControlled:ee.boolean(d),positionWrapper:l,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!c&&p&&ee.boolean(d)}},"componentDidMount")},{key:"componentDidUpdate",value:a(function(l,u){if(or()){var c=this.props,d=c.autoOpen,p=c.open,h=c.target,m=c.wrapperOptions,y=O4(u,this.state),b=y.changedFrom,x=y.changed;if(l.open!==p){var E;ee.boolean(p)&&(E=p?Ke.OPENING:Ke.CLOSING),this.toggle(E)}(l.wrapperOptions.position!==m.position||l.target!==h)&&this.changeWrapperPosition(this.props),x("status",Ke.IDLE)&&p?this.toggle(Ke.OPEN):b("status",Ke.INIT,Ke.IDLE)&&d&&this.toggle(Ke.OPEN),this.popper&&x("status",Ke.OPENING)&&this.popper.instance.update(),this.floaterRef&&(x("status",Ke.OPENING)||x("status",Ke.CLOSING))&&F4(this.floaterRef,"transitionend",this.handleTransitionEnd),x("needsUpdate",!0)&&this.rebuildPopper()}},"componentDidUpdate")},{key:"componentWillUnmount",value:a(function(){or()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())},"componentWillUnmount")},{key:"initPopper",value:a(function(){var l=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,c=this.state.positionWrapper,d=this.props,p=d.disableFlip,h=d.getPopper,m=d.hideArrow,y=d.offset,b=d.placement,x=d.wrapperOptions,E=b==="top"||b==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(b==="center")this.setState({status:Ke.IDLE});else if(u&&this.floaterRef){var w=this.options,R=w.arrow,C=w.flip,A=w.offset,k=hT(w,$4);new rs(u,this.floaterRef,{placement:b,modifiers:ft({arrow:ft({enabled:!m,element:this.arrowRef},R),flip:ft({enabled:!p,behavior:E},C),offset:ft({offset:"0, ".concat(y,"px")},A)},k),onCreate:a(function(N){var j;if(l.popper=N,!((j=l.floaterRef)!==null&&j!==void 0&&j.isConnected)){l.setState({needsUpdate:!0});return}h(N,"floater"),l._isMounted&&l.setState({currentPlacement:N.placement,status:Ke.IDLE}),b!==N.placement&&setTimeout(function(){N.instance.update()},1)},"onCreate"),onUpdate:a(function(N){l.popper=N;var j=l.state.currentPlacement;l._isMounted&&N.placement!==j&&l.setState({currentPlacement:N.placement})},"onUpdate")})}if(c){var z=ee.undefined(x.offset)?0:x.offset;new rs(this.target,this.wrapperRef,{placement:x.placement||b,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(z,"px")},flip:{enabled:!1}},onCreate:a(function(N){l.wrapperPopper=N,l._isMounted&&l.setState({statusWrapper:Ke.IDLE}),h(N,"wrapper"),b!==N.placement&&setTimeout(function(){N.instance.update()},1)},"onCreate")})}},"initPopper")},{key:"rebuildPopper",value:a(function(){var l=this;this.floaterRefInterval=setInterval(function(){var u;(u=l.floaterRef)!==null&&u!==void 0&&u.isConnected&&(clearInterval(l.floaterRefInterval),l.setState({needsUpdate:!1}),l.initPopper())},50)},"rebuildPopper")},{key:"changeWrapperPosition",value:a(function(l){var u=l.target,c=l.wrapperOptions;this.setState({positionWrapper:c.position&&!!u})},"changeWrapperPosition")},{key:"toggle",value:a(function(l){var u=this.state.status,c=u===Ke.OPEN?Ke.CLOSING:Ke.OPENING;ee.undefined(l)||(c=l),this.setState({status:c})},"toggle")},{key:"debug",get:a(function(){var l=this.props.debug;return l||or()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug},"get")},{key:"event",get:a(function(){var l=this.props,u=l.disableHoverToClick,c=l.event;return c==="hover"&&eh()&&!u?"click":c},"get")},{key:"options",get:a(function(){var l=this.props.options;return Vn(N4,l||{})},"get")},{key:"styles",get:a(function(){var l=this,u=this.state,c=u.status,d=u.positionWrapper,p=u.statusWrapper,h=this.props.styles,m=Vn(G4(h),h);if(d){var y;[Ke.IDLE].indexOf(c)===-1||[Ke.IDLE].indexOf(p)===-1?y=m.wrapperPosition:y=this.wrapperPopper.styles,m.wrapper=ft(ft({},m.wrapper),y)}if(this.target){var b=window.getComputedStyle(this.target);this.wrapperStyles?m.wrapper=ft(ft({},m.wrapper),this.wrapperStyles):["relative","static"].indexOf(b.position)===-1&&(this.wrapperStyles={},d||(Y4.forEach(function(x){l.wrapperStyles[x]=b[x]}),m.wrapper=ft(ft({},m.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return m},"get")},{key:"target",get:a(function(){if(!or())return null;var l=this.props.target;return l?ee.domElement(l)?l:document.querySelector(l):this.childRef||this.wrapperRef},"get")},{key:"render",value:a(function(){var l=this.state,u=l.currentPlacement,c=l.positionWrapper,d=l.status,p=this.props,h=p.children,m=p.component,y=p.content,b=p.disableAnimation,x=p.footer,E=p.hideArrow,w=p.id,R=p.open,C=p.showCloseButton,A=p.style,k=p.target,z=p.title,L=_e.createElement(xT,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:A,styles:this.styles.wrapper},h),N={};return c?N.wrapperInPortal=L:N.wrapperAsChildren=L,_e.createElement("span",null,_e.createElement(gT,{hasChildren:!!h,id:w,placement:u,setRef:this.setFloaterRef,target:k,zIndex:this.styles.options.zIndex},_e.createElement(ST,{component:m,content:y,disableAnimation:b,footer:x,handleClick:this.handleClick,hideArrow:E||u==="center",open:R,placement:u,positionWrapper:c,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:C,status:d,styles:this.styles,title:z}),N.wrapperInPortal),N.wrapperAsChildren)},"render")}]),r})(_e.Component);Ft(cg,"propTypes",{autoOpen:ge.bool,callback:ge.func,children:ge.node,component:J1(ge.oneOfType([ge.func,ge.element]),function(e){return!e.content}),content:J1(ge.node,function(e){return!e.component}),debug:ge.bool,disableAnimation:ge.bool,disableFlip:ge.bool,disableHoverToClick:ge.bool,event:ge.oneOf(["hover","click"]),eventDelay:ge.number,footer:ge.node,getPopper:ge.func,hideArrow:ge.bool,id:ge.oneOfType([ge.string,ge.number]),offset:ge.number,open:ge.bool,options:ge.object,placement:ge.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:ge.bool,style:ge.object,styles:ge.object,target:ge.oneOfType([ge.object,ge.string]),title:ge.node,wrapperOptions:ge.shape({offset:ge.number,placement:ge.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:ge.bool})});Ft(cg,"defaultProps",{autoOpen:!1,callback:eS,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:eS,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var K4=Object.defineProperty,Q4=a((e,t,r)=>t in e?K4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,"__defNormalProp"),we=a((e,t,r)=>Q4(e,typeof t!="symbol"?t+"":t,r),"__publicField"),Ze={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},qn={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},Le={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},$e={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function vi(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}a(vi,"canUseDOM");function wT(e){return e?e.getBoundingClientRect():null}a(wT,"getClientRect");function X4(e=!1){const{body:t,documentElement:r}=document;if(!t||!r)return 0;if(e){const o=[t.scrollHeight,t.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight].sort((u,c)=>u-c),l=Math.floor(o.length/2);return o.length%2===0?(o[l-1]+o[l])/2:o[l]}return Math.max(t.scrollHeight,t.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}a(X4,"getDocumentHeight");function Ur(e){if(typeof e=="string")try{return document.querySelector(e)}catch{return null}return e}a(Ur,"getElement");function W4(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}a(W4,"getStyleComputedProperty");function is(e,t,r){if(!e)return Qi();const o=XC(e);if(o){if(o.isSameNode(Qi()))return r?document:Qi();if(!(o.scrollHeight>o.offsetHeight)&&!t)return o.style.overflow="initial",Qi()}return o}a(is,"getScrollParent");function tf(e,t){if(!e)return!1;const r=is(e,t);return r?!r.isSameNode(Qi()):!1}a(tf,"hasCustomScrollParent");function Z4(e){return e.offsetParent!==document.body}a(Z4,"hasCustomOffsetParent");function Sa(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:r}=e,o=W4(e);return r==="BODY"||r==="HTML"?!1:o&&o.position===t?!0:e.parentNode?Sa(e.parentNode,t):!1}a(Sa,"hasPosition");function J4(e){var t;if(!e)return!1;let r=e;for(;r&&r!==document.body;){if(r instanceof HTMLElement){const{display:o,visibility:l}=getComputedStyle(r);if(o==="none"||l==="hidden")return!1}r=(t=r.parentElement)!=null?t:null}return!0}a(J4,"isElementVisible");function e6(e,t,r){var o,l,u;const c=wT(e),d=is(e,r),p=tf(e,r),h=Sa(e);let m=0,y=(o=c?.top)!=null?o:0;if(p&&h){const b=(l=e?.offsetTop)!=null?l:0,x=(u=d?.scrollTop)!=null?u:0;y=b-x}else d instanceof HTMLElement&&(m=d.scrollTop,!p&&!Sa(e)&&(y+=m),d.isSameNode(Qi())||(y+=Qi().scrollTop));return Math.floor(y-t)}a(e6,"getElementPosition");function t6(e,t,r){var o;if(!e)return 0;const{offsetTop:l=0,scrollTop:u=0}=(o=XC(e))!=null?o:{};let c=e.getBoundingClientRect().top+u;l&&(tf(e,r)||Z4(e))&&(c-=l);const d=Math.floor(c-t);return d<0?0:d}a(t6,"getScrollTo");function Qi(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}a(Qi,"scrollDocument");function n6(e,t){const{duration:r,element:o}=t;return new Promise((l,u)=>{const{scrollTop:c}=o,d=e>c?e-c:c-e;yz.top(o,e,{duration:d<100?50:r},p=>p&&p.message!=="Element already at target scroll position"?u(p):l())})}a(n6,"scrollTo");var Ll=dr.createPortal!==void 0;function ET(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}a(ET,"getBrowser");function rc(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}a(rc,"getObjectType");function ar(e,t={}){const{defaultValue:r,step:o,steps:l}=t;let u=L1(e);if(u)(u.includes("{step}")||u.includes("{steps}"))&&o&&l&&(u=u.replace("{step}",o.toString()).replace("{steps}",l.toString()));else if(S.isValidElement(e)&&!Object.values(e.props).length&&rc(e.type)==="function"){const c=e.type({});u=ar(c,t)}else u=L1(r);return u}a(ar,"getReactNodeText");function r6(e,t){return!xe.plainObject(e)||!xe.array(t)?!1:Object.keys(e).every(r=>t.includes(r))}a(r6,"hasValidKeys");function i6(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,r=e.replace(t,(l,u,c,d)=>u+u+c+c+d+d),o=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(r);return o?[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]:[]}a(i6,"hexToRGB");function tS(e){return e.disableBeacon||e.placement==="center"}a(tS,"hideBeacon");function nS(){return!["chrome","safari","firefox","opera"].includes(ET())}a(nS,"isLegacy");function io({data:e,debug:t=!1,title:r,warn:o=!1}){const l=o?console.warn||console.error:console.log;t&&(r&&e?(console.groupCollapsed(`%creact-joyride: ${r}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(u=>{xe.plainObject(u)&&u.key?l.apply(console,[u.key,u.value]):l.apply(console,[u])}):l.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}a(io,"log");function o6(e){return Object.keys(e)}a(o6,"objectKeys");function CT(e,...t){if(!xe.plainObject(e))throw new TypeError("Expected an object");const r={};for(const o in e)({}).hasOwnProperty.call(e,o)&&(t.includes(o)||(r[o]=e[o]));return r}a(CT,"omit");function a6(e,...t){if(!xe.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const r={};for(const o in e)({}).hasOwnProperty.call(e,o)&&t.includes(o)&&(r[o]=e[o]);return r}a(a6,"pick");function Xh(e,t,r){const o=a(u=>u.replace("{step}",String(t)).replace("{steps}",String(r)),"replacer");if(rc(e)==="string")return o(e);if(!S.isValidElement(e))return e;const{children:l}=e.props;if(rc(l)==="string"&&l.includes("{step}"))return S.cloneElement(e,{children:o(l)});if(Array.isArray(l))return S.cloneElement(e,{children:l.map(u=>typeof u=="string"?o(u):Xh(u,t,r))});if(rc(e.type)==="function"&&!Object.values(e.props).length){const u=e.type({});return Xh(u,t,r)}return e}a(Xh,"replaceLocaleContent");function l6(e){const{isFirstStep:t,lifecycle:r,previousLifecycle:o,scrollToFirstStep:l,step:u,target:c}=e;return!u.disableScrolling&&(!t||l||r===Le.TOOLTIP)&&u.placement!=="center"&&(!u.isFixed||!Sa(c))&&o!==r&&[Le.BEACON,Le.TOOLTIP].includes(r)}a(l6,"shouldScroll");var s6={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},TT={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},u6={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:TT,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},c6={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},f6={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},zl={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},rS={borderRadius:4,position:"absolute"};function d6(e,t){var r,o,l,u,c;const{floaterProps:d,styles:p}=e,h=Vn((r=t.floaterProps)!=null?r:{},d??{}),m=Vn(p??{},(o=t.styles)!=null?o:{}),y=Vn(f6,m.options||{}),b=t.placement==="center"||t.disableBeacon;let{width:x}=y;window.innerWidth>480&&(x=380),"width"in y&&(x=typeof y.width=="number"&&window.innerWidth<y.width?window.innerWidth-30:y.width);const E={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:y.zIndex},w={beacon:{...zl,display:b?"none":"inline-block",height:y.beaconSize,position:"relative",width:y.beaconSize,zIndex:y.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:y.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${i6(y.primaryColor).join(",")}, 0.2)`,border:`2px solid ${y.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:y.backgroundColor,borderRadius:5,boxSizing:"border-box",color:y.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:x},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...zl,backgroundColor:y.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...zl,color:y.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...zl,color:y.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...zl,color:y.textColor,fontSize:14},overlay:{...E,backgroundColor:y.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...E},overlayLegacyCenter:{...E,backgroundColor:y.overlayColor},spotlight:{...rS,backgroundColor:"gray"},spotlightLegacy:{...rS,boxShadow:`0 0 0 9999px ${y.overlayColor}, ${y.spotlightShadow}`},floaterStyles:{arrow:{color:(c=(u=(l=h?.styles)==null?void 0:l.arrow)==null?void 0:u.color)!=null?c:y.arrowColor},options:{zIndex:y.zIndex+100}},options:y};return Vn(w,m)}a(d6,"getStyles");function p6(e){return a6(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}a(p6,"getTourProps");function na(e,t){var r,o,l,u,c,d;const p=t??{},h=Vn.all([u6,p6(e),p],{isMergeableObject:xe.plainObject}),m=d6(e,h),y=tf(Ur(h.target),h.disableScrollParentFix),b=Vn.all([s6,(r=e.floaterProps)!=null?r:{},(o=h.floaterProps)!=null?o:{}]);return b.offset=h.offset,b.styles=Vn((l=b.styles)!=null?l:{},m.floaterStyles),b.offset+=(c=(u=e.spotlightPadding)!=null?u:h.spotlightPadding)!=null?c:0,h.placementBeacon&&b.wrapperOptions&&(b.wrapperOptions.placement=h.placementBeacon),y&&b.options.preventOverflow&&(b.options.preventOverflow.boundariesElement="window"),{...h,locale:Vn.all([TT,(d=e.locale)!=null?d:{},h.locale||{}]),floaterProps:b,styles:CT(m,"floaterStyles")}}a(na,"getMergedStep");function RT(e,t=!1){return xe.plainObject(e)?e.target?!0:(io({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(io({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}a(RT,"validateStep");function iS(e,t=!1){return xe.array(e)?e.every(r=>RT(r,t)):(io({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}a(iS,"validateSteps");var OT={action:"init",controlled:!1,index:0,lifecycle:Le.INIT,origin:null,size:0,status:$e.IDLE},oS=o6(CT(OT,"controlled","size")),h6=class{static{a(this,"Store")}constructor(e){we(this,"beaconPopper"),we(this,"tooltipPopper"),we(this,"data",new Map),we(this,"listener"),we(this,"store",new Map),we(this,"addListener",l=>{this.listener=l}),we(this,"setSteps",l=>{const{size:u,status:c}=this.getState(),d={size:l.length,status:c};this.data.set("steps",l),c===$e.WAITING&&!u&&l.length&&(d.status=$e.RUNNING),this.setState(d)}),we(this,"getPopper",l=>l==="beacon"?this.beaconPopper:this.tooltipPopper),we(this,"setPopper",(l,u)=>{l==="beacon"?this.beaconPopper=u:this.tooltipPopper=u}),we(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),we(this,"close",(l=null)=>{const{index:u,status:c}=this.getState();c===$e.RUNNING&&this.setState({...this.getNextState({action:Ze.CLOSE,index:u+1,origin:l})})}),we(this,"go",l=>{const{controlled:u,status:c}=this.getState();if(u||c!==$e.RUNNING)return;const d=this.getSteps()[l];this.setState({...this.getNextState({action:Ze.GO,index:l}),status:d?c:$e.FINISHED})}),we(this,"info",()=>this.getState()),we(this,"next",()=>{const{index:l,status:u}=this.getState();u===$e.RUNNING&&this.setState(this.getNextState({action:Ze.NEXT,index:l+1}))}),we(this,"open",()=>{const{status:l}=this.getState();l===$e.RUNNING&&this.setState({...this.getNextState({action:Ze.UPDATE,lifecycle:Le.TOOLTIP})})}),we(this,"prev",()=>{const{index:l,status:u}=this.getState();u===$e.RUNNING&&this.setState({...this.getNextState({action:Ze.PREV,index:l-1})})}),we(this,"reset",(l=!1)=>{const{controlled:u}=this.getState();u||this.setState({...this.getNextState({action:Ze.RESET,index:0}),status:l?$e.RUNNING:$e.READY})}),we(this,"skip",()=>{const{status:l}=this.getState();l===$e.RUNNING&&this.setState({action:Ze.SKIP,lifecycle:Le.INIT,status:$e.SKIPPED})}),we(this,"start",l=>{const{index:u,size:c}=this.getState();this.setState({...this.getNextState({action:Ze.START,index:xe.number(l)?l:u},!0),status:c?$e.RUNNING:$e.WAITING})}),we(this,"stop",(l=!1)=>{const{index:u,status:c}=this.getState();[$e.FINISHED,$e.SKIPPED].includes(c)||this.setState({...this.getNextState({action:Ze.STOP,index:u+(l?1:0)}),status:$e.PAUSED})}),we(this,"update",l=>{var u,c;if(!r6(l,oS))throw new Error(`State is not valid. Valid keys: ${oS.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...l,action:(u=l.action)!=null?u:Ze.UPDATE,origin:(c=l.origin)!=null?c:null},!0)})});const{continuous:t=!1,stepIndex:r,steps:o=[]}=e??{};this.setState({action:Ze.INIT,controlled:xe.number(r),continuous:t,index:xe.number(r)?r:0,lifecycle:Le.INIT,origin:null,status:o.length?$e.READY:$e.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(o)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...OT}}getNextState(e,t=!1){var r,o,l,u,c;const{action:d,controlled:p,index:h,size:m,status:y}=this.getState(),b=xe.number(e.index)?e.index:h,x=p&&!t?h:Math.min(Math.max(b,0),m);return{action:(r=e.action)!=null?r:d,controlled:p,index:x,lifecycle:(o=e.lifecycle)!=null?o:Le.INIT,origin:(l=e.origin)!=null?l:null,size:(u=e.size)!=null?u:m,status:x===m?$e.FINISHED:(c=e.status)!=null?c:y}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),r=JSON.stringify(this.getState());return t!==r}setState(e,t=!1){const r=this.getState(),{action:o,index:l,lifecycle:u,origin:c=null,size:d,status:p}={...r,...e};this.store.set("action",o),this.store.set("index",l),this.store.set("lifecycle",u),this.store.set("origin",c),this.store.set("size",d),this.store.set("status",p),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(r)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function m6(e){return new h6(e)}a(m6,"createStore");function g6({styles:e}){return S.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}a(g6,"JoyrideSpotlight");var y6=g6,v6=class extends S.Component{static{a(this,"JoyrideOverlay")}constructor(){super(...arguments),we(this,"isActive",!1),we(this,"resizeTimeout"),we(this,"scrollTimeout"),we(this,"scrollParent"),we(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),we(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:r}=this.props,o=[Le.INIT,Le.BEACON,Le.COMPLETE,Le.ERROR];return t||(e?o.includes(r):r!==Le.TOOLTIP)}),we(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:r,left:o,position:l,top:u,width:c}=this.spotlightStyles,d=l==="fixed"?e.clientY:e.pageY,p=l==="fixed"?e.clientX:e.pageX,h=d>=u&&d<=u+r,y=p>=o&&p<=o+c&&h;y!==t&&this.updateState({mouseOverSpotlight:y})}),we(this,"handleScroll",()=>{const{target:e}=this.props,t=Ur(e);if(this.scrollParent!==document){const{isScrolling:r}=this.state;r||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else Sa(t,"sticky")&&this.updateState({})}),we(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:r=!1,target:o}=this.props,l=Ur(o);this.scrollParent=is(l??document.body,r,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:r,lifecycle:o,spotlightClicks:l,target:u}=this.props,{changed:c}=bc(e,this.props);if(c("target")||c("disableScrollParentFix")){const d=Ur(u);this.scrollParent=is(d??document.body,r,!0)}c("lifecycle",Le.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:d}=this.state;d||this.updateState({showSpotlight:!0})},100)),(c("spotlightClicks")||c("disableOverlay")||c("lifecycle"))&&(l&&o===Le.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):o!==Le.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:r,styles:o}=this.props;let l=o.overlay;return nS()&&(l=r==="center"?o.overlayLegacyCenter:o.overlayLegacy),{cursor:t?"default":"pointer",height:X4(),pointerEvents:e?"none":"auto",...l}}get spotlightStyles(){var e,t,r;const{showSpotlight:o}=this.state,{disableScrollParentFix:l=!1,spotlightClicks:u,spotlightPadding:c=0,styles:d,target:p}=this.props,h=Ur(p),m=wT(h),y=Sa(h),b=e6(h,c,l);return{...nS()?d.spotlightLegacy:d.spotlight,height:Math.round(((e=m?.height)!=null?e:0)+c*2),left:Math.round(((t=m?.left)!=null?t:0)-c),opacity:o?1:0,pointerEvents:u?"none":"auto",position:y?"fixed":"absolute",top:b,transition:"opacity 0.2s",width:Math.round(((r=m?.width)!=null?r:0)+c*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:r}=this.props,{hideSpotlight:o,overlayStyles:l,spotlightStyles:u}=this;if(o())return null;let c=r!=="center"&&e&&S.createElement(y6,{styles:u});if(ET()==="safari"){const{mixBlendMode:d,zIndex:p,...h}=l;c=S.createElement("div",{style:{...h}},c),delete l.backgroundColor}return S.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:l},c)}},b6=class extends S.Component{static{a(this,"JoyridePortal")}constructor(){super(...arguments),we(this,"node",null)}componentDidMount(){const{id:e}=this.props;vi()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Ll||this.renderReact15())}componentDidUpdate(){vi()&&(Ll||this.renderReact15())}componentWillUnmount(){!vi()||!this.node||(Ll||dr.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!vi())return;const{children:e}=this.props;this.node&&dr.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!vi()||!Ll)return null;const{children:e}=this.props;return this.node?dr.createPortal(e,this.node):null}render(){return Ll?this.renderReact16():null}},S6=class{static{a(this,"Scope")}constructor(e,t){if(we(this,"element"),we(this,"options"),we(this,"canBeTabbed",r=>{const{tabIndex:o}=r;return o===null||o<0?!1:this.canHaveFocus(r)}),we(this,"canHaveFocus",r=>{const o=/input|select|textarea|button|object/,l=r.nodeName.toLowerCase();return(o.test(l)&&!r.getAttribute("disabled")||l==="a"&&!!r.getAttribute("href"))&&this.isVisible(r)}),we(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),we(this,"handleKeyDown",r=>{const{code:o="Tab"}=this.options;r.code===o&&this.interceptTab(r)}),we(this,"interceptTab",r=>{r.preventDefault();const o=this.findValidTabElements(),{shiftKey:l}=r;if(!o.length)return;let u=document.activeElement?o.indexOf(document.activeElement):0;u===-1||!l&&u+1===o.length?u=0:l&&u===0?u=o.length-1:u+=l?-1:1,o[u].focus()}),we(this,"isHidden",r=>{const o=r.offsetWidth<=0&&r.offsetHeight<=0,l=window.getComputedStyle(r);return o&&!r.innerHTML?!0:o&&l.getPropertyValue("overflow")!=="visible"||l.getPropertyValue("display")==="none"}),we(this,"isVisible",r=>{let o=r;for(;o;)if(o instanceof HTMLElement){if(o===document.body)break;if(this.isHidden(o))return!1;o=o.parentNode}return!0}),we(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),we(this,"checkFocus",r=>{document.activeElement!==r&&(r.focus(),window.requestAnimationFrame(()=>this.checkFocus(r)))}),we(this,"setFocus",()=>{const{selector:r}=this.options;if(!r)return;const o=this.element.querySelector(r);o&&window.requestAnimationFrame(()=>this.checkFocus(o))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},x6=class extends S.Component{static{a(this,"JoyrideBeacon")}constructor(e){if(super(e),we(this,"beacon",null),we(this,"setBeaconRef",l=>{this.beacon=l}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.id="joyride-beacon-animation",e.nonce&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode(`
506
+ */var ys=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Mz=(function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(ys&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0})();function _z(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}a(_z,"microtaskDebounce");function kz(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Mz))}}a(kz,"taskDebounce");var Dz=ys&&window.Promise,Nz=Dz?_z:kz;function WC(e){var t={};return e&&t.toString.call(e)==="[object Function]"}a(WC,"isFunction$1");function uo(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,o=r.getComputedStyle(e,null);return t?o[t]:o}a(uo,"getStyleComputedProperty$1");function ig(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}a(ig,"getParentNode");function vs(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=uo(e),r=t.overflow,o=t.overflowX,l=t.overflowY;return/(auto|scroll|overlay)/.test(r+l+o)?e:vs(ig(e))}a(vs,"getScrollParent$1");function ZC(e){return e&&e.referenceNode?e.referenceNode:e}a(ZC,"getReferenceNode");var B1=ys&&!!(window.MSInputMethodContext&&document.documentMode),H1=ys&&/MSIE 10/.test(navigator.userAgent);function _a(e){return e===11?B1:e===10?H1:B1||H1}a(_a,"isIE");function ya(e){if(!e)return document.documentElement;for(var t=_a(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var o=r&&r.nodeName;return!o||o==="BODY"||o==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&uo(r,"position")==="static"?ya(r):r}a(ya,"getOffsetParent");function Pz(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||ya(e.firstElementChild)===e}a(Pz,"isOffsetContainer");function Gp(e){return e.parentNode!==null?Gp(e.parentNode):e}a(Gp,"getRoot");function Sc(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=r?e:t,l=r?t:e,u=document.createRange();u.setStart(o,0),u.setEnd(l,0);var c=u.commonAncestorContainer;if(e!==c&&t!==c||o.contains(l))return Pz(c)?c:ya(c);var d=Gp(e);return d.host?Sc(d.host,t):Sc(e,Gp(t).host)}a(Sc,"findCommonOffsetParent");function va(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",o=e.nodeName;if(o==="BODY"||o==="HTML"){var l=e.ownerDocument.documentElement,u=e.ownerDocument.scrollingElement||l;return u[r]}return e[r]}a(va,"getScroll");function Lz(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=va(t,"top"),l=va(t,"left"),u=r?-1:1;return e.top+=o*u,e.bottom+=o*u,e.left+=l*u,e.right+=l*u,e}a(Lz,"includeScroll");function F1(e,t){var r=t==="x"?"Left":"Top",o=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+o+"Width"])}a(F1,"getBordersSize");function q1(e,t,r,o){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],_a(10)?parseInt(r["offset"+e])+parseInt(o["margin"+(e==="Height"?"Top":"Left")])+parseInt(o["margin"+(e==="Height"?"Bottom":"Right")]):0)}a(q1,"getSize");function JC(e){var t=e.body,r=e.documentElement,o=_a(10)&&getComputedStyle(r);return{height:q1("Height",t,r,o),width:q1("Width",t,r,o)}}a(JC,"getWindowSizes");var zz=a(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},"classCallCheck"),Iz=(function(){function e(t,r){for(var o=0;o<r.length;o++){var l=r[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return a(e,"defineProperties"),function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}})(),ba=a(function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},"defineProperty"),Pn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e};function Ei(e){return Pn({},e,{right:e.left+e.width,bottom:e.top+e.height})}a(Ei,"getClientRect$1");function $p(e){var t={};try{if(_a(10)){t=e.getBoundingClientRect();var r=va(e,"top"),o=va(e,"left");t.top+=r,t.left+=o,t.bottom+=r,t.right+=o}else t=e.getBoundingClientRect()}catch{}var l={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},u=e.nodeName==="HTML"?JC(e.ownerDocument):{},c=u.width||e.clientWidth||l.width,d=u.height||e.clientHeight||l.height,h=e.offsetWidth-c,p=e.offsetHeight-d;if(h||p){var m=uo(e);h-=F1(m,"x"),p-=F1(m,"y"),l.width-=h,l.height-=p}return Ei(l)}a($p,"getBoundingClientRect");function og(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=_a(10),l=t.nodeName==="HTML",u=$p(e),c=$p(t),d=vs(e),h=uo(t),p=parseFloat(h.borderTopWidth),m=parseFloat(h.borderLeftWidth);r&&l&&(c.top=Math.max(c.top,0),c.left=Math.max(c.left,0));var y=Ei({top:u.top-c.top-p,left:u.left-c.left-m,width:u.width,height:u.height});if(y.marginTop=0,y.marginLeft=0,!o&&l){var b=parseFloat(h.marginTop),x=parseFloat(h.marginLeft);y.top-=p-b,y.bottom-=p-b,y.left-=m-x,y.right-=m-x,y.marginTop=b,y.marginLeft=x}return(o&&!r?t.contains(d):t===d&&d.nodeName!=="BODY")&&(y=Lz(y,t)),y}a(og,"getOffsetRectRelativeToArbitraryNode");function jz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,o=og(e,r),l=Math.max(r.clientWidth,window.innerWidth||0),u=Math.max(r.clientHeight,window.innerHeight||0),c=t?0:va(r),d=t?0:va(r,"left"),h={top:c-o.top+o.marginTop,left:d-o.left+o.marginLeft,width:l,height:u};return Ei(h)}a(jz,"getViewportOffsetRectRelativeToArtbitraryNode");function eT(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(uo(e,"position")==="fixed")return!0;var r=ig(e);return r?eT(r):!1}a(eT,"isFixed");function tT(e){if(!e||!e.parentElement||_a())return document.documentElement;for(var t=e.parentElement;t&&uo(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}a(tT,"getFixedPositionOffsetParent");function ag(e,t,r,o){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,u={top:0,left:0},c=l?tT(e):Sc(e,ZC(t));if(o==="viewport")u=jz(c,l);else{var d=void 0;o==="scrollParent"?(d=vs(ig(t)),d.nodeName==="BODY"&&(d=e.ownerDocument.documentElement)):o==="window"?d=e.ownerDocument.documentElement:d=o;var h=og(d,c,l);if(d.nodeName==="HTML"&&!eT(c)){var p=JC(e.ownerDocument),m=p.height,y=p.width;u.top+=h.top-h.marginTop,u.bottom=m+h.top,u.left+=h.left-h.marginLeft,u.right=y+h.left}else u=h}r=r||0;var b=typeof r=="number";return u.left+=b?r:r.left||0,u.top+=b?r:r.top||0,u.right-=b?r:r.right||0,u.bottom-=b?r:r.bottom||0,u}a(ag,"getBoundaries");function Uz(e){var t=e.width,r=e.height;return t*r}a(Uz,"getArea");function nT(e,t,r,o,l){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var c=ag(r,o,u,l),d={top:{width:c.width,height:t.top-c.top},right:{width:c.right-t.right,height:c.height},bottom:{width:c.width,height:c.bottom-t.bottom},left:{width:t.left-c.left,height:c.height}},h=Object.keys(d).map(function(b){return Pn({key:b},d[b],{area:Uz(d[b])})}).sort(function(b,x){return x.area-b.area}),p=h.filter(function(b){var x=b.width,E=b.height;return x>=r.clientWidth&&E>=r.clientHeight}),m=p.length>0?p[0].key:h[0].key,y=e.split("-")[1];return m+(y?"-"+y:"")}a(nT,"computeAutoPlacement");function rT(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,l=o?tT(t):Sc(t,ZC(r));return og(r,l,o)}a(rT,"getReferenceOffsets");function iT(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),o=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),l=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),u={width:e.offsetWidth+l,height:e.offsetHeight+o};return u}a(iT,"getOuterSizes");function xc(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}a(xc,"getOppositePlacement");function oT(e,t,r){r=r.split("-")[0];var o=iT(e),l={width:o.width,height:o.height},u=["right","left"].indexOf(r)!==-1,c=u?"top":"left",d=u?"left":"top",h=u?"height":"width",p=u?"width":"height";return l[c]=t[c]+t[h]/2-o[h]/2,r===d?l[d]=t[d]-o[p]:l[d]=t[xc(d)],l}a(oT,"getPopperOffsets");function bs(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}a(bs,"find$1");function Bz(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(l){return l[t]===r});var o=bs(e,function(l){return l[t]===r});return e.indexOf(o)}a(Bz,"findIndex");function aT(e,t,r){var o=r===void 0?e:e.slice(0,Bz(e,"name",r));return o.forEach(function(l){l.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var u=l.function||l.fn;l.enabled&&WC(u)&&(t.offsets.popper=Ei(t.offsets.popper),t.offsets.reference=Ei(t.offsets.reference),t=u(t,l))}),t}a(aT,"runModifiers");function Hz(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=rT(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=nT(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=oT(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=aT(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}a(Hz,"update");function lT(e,t){return e.some(function(r){var o=r.name,l=r.enabled;return l&&o===t})}a(lT,"isModifierEnabled");function lg(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var l=t[o],u=l?""+l+r:e;if(typeof document.body.style[u]<"u")return u}return null}a(lg,"getSupportedPropertyName");function Fz(){return this.state.isDestroyed=!0,lT(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[lg("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}a(Fz,"destroy");function sT(e){var t=e.ownerDocument;return t?t.defaultView:window}a(sT,"getWindow");function uT(e,t,r,o){var l=e.nodeName==="BODY",u=l?e.ownerDocument.defaultView:e;u.addEventListener(t,r,{passive:!0}),l||uT(vs(u.parentNode),t,r,o),o.push(u)}a(uT,"attachToScrollParents");function qz(e,t,r,o){r.updateBound=o,sT(e).addEventListener("resize",r.updateBound,{passive:!0});var l=vs(e);return uT(l,"scroll",r.updateBound,r.scrollParents),r.scrollElement=l,r.eventsEnabled=!0,r}a(qz,"setupEventListeners");function Vz(){this.state.eventsEnabled||(this.state=qz(this.reference,this.options,this.state,this.scheduleUpdate))}a(Vz,"enableEventListeners");function Gz(e,t){return sT(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(r){r.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}a(Gz,"removeEventListeners");function $z(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Gz(this.reference,this.state))}a($z,"disableEventListeners");function sg(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}a(sg,"isNumeric");function Yp(e,t){Object.keys(t).forEach(function(r){var o="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&sg(t[r])&&(o="px"),e.style[r]=t[r]+o})}a(Yp,"setStyles");function Yz(e,t){Object.keys(t).forEach(function(r){var o=t[r];o!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}a(Yz,"setAttributes");function Kz(e){return Yp(e.instance.popper,e.styles),Yz(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Yp(e.arrowElement,e.arrowStyles),e}a(Kz,"applyStyle");function Qz(e,t,r,o,l){var u=rT(l,t,e,r.positionFixed),c=nT(r.placement,u,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",c),Yp(t,{position:r.positionFixed?"fixed":"absolute"}),r}a(Qz,"applyStyleOnLoad");function Xz(e,t){var r=e.offsets,o=r.popper,l=r.reference,u=Math.round,c=Math.floor,d=a(function(C){return C},"noRound2"),h=u(l.width),p=u(o.width),m=["left","right"].indexOf(e.placement)!==-1,y=e.placement.indexOf("-")!==-1,b=h%2===p%2,x=h%2===1&&p%2===1,E=t?m||y||b?u:c:d,w=t?u:d;return{left:E(x&&!y&&t?o.left-1:o.left),top:w(o.top),bottom:w(o.bottom),right:E(o.right)}}a(Xz,"getRoundedOffsets");var Wz=ys&&/Firefox/i.test(navigator.userAgent);function Zz(e,t){var r=t.x,o=t.y,l=e.offsets.popper,u=bs(e.instance.modifiers,function(k){return k.name==="applyStyle"}).gpuAcceleration;u!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var c=u!==void 0?u:t.gpuAcceleration,d=ya(e.instance.popper),h=$p(d),p={position:l.position},m=Xz(e,window.devicePixelRatio<2||!Wz),y=r==="bottom"?"top":"bottom",b=o==="right"?"left":"right",x=lg("transform"),E=void 0,w=void 0;if(y==="bottom"?d.nodeName==="HTML"?w=-d.clientHeight+m.bottom:w=-h.height+m.bottom:w=m.top,b==="right"?d.nodeName==="HTML"?E=-d.clientWidth+m.right:E=-h.width+m.right:E=m.left,c&&x)p[x]="translate3d("+E+"px, "+w+"px, 0)",p[y]=0,p[b]=0,p.willChange="transform";else{var R=y==="bottom"?-1:1,C=b==="right"?-1:1;p[y]=w*R,p[b]=E*C,p.willChange=y+", "+b}var A={"x-placement":e.placement};return e.attributes=Pn({},A,e.attributes),e.styles=Pn({},p,e.styles),e.arrowStyles=Pn({},e.offsets.arrow,e.arrowStyles),e}a(Zz,"computeStyle");function cT(e,t,r){var o=bs(e,function(d){var h=d.name;return h===t}),l=!!o&&e.some(function(d){return d.name===r&&d.enabled&&d.order<o.order});if(!l){var u="`"+t+"`",c="`"+r+"`";console.warn(c+" modifier is required by "+u+" modifier in order to work, be sure to include it before "+u+"!")}return l}a(cT,"isModifierRequired");function Jz(e,t){var r;if(!cT(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if(typeof o=="string"){if(o=e.instance.popper.querySelector(o),!o)return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var l=e.placement.split("-")[0],u=e.offsets,c=u.popper,d=u.reference,h=["left","right"].indexOf(l)!==-1,p=h?"height":"width",m=h?"Top":"Left",y=m.toLowerCase(),b=h?"left":"top",x=h?"bottom":"right",E=iT(o)[p];d[x]-E<c[y]&&(e.offsets.popper[y]-=c[y]-(d[x]-E)),d[y]+E>c[x]&&(e.offsets.popper[y]+=d[y]+E-c[x]),e.offsets.popper=Ei(e.offsets.popper);var w=d[y]+d[p]/2-E/2,R=uo(e.instance.popper),C=parseFloat(R["margin"+m]),A=parseFloat(R["border"+m+"Width"]),k=w-e.offsets.popper[y]-C-A;return k=Math.max(Math.min(c[p]-E,k),0),e.arrowElement=o,e.offsets.arrow=(r={},ba(r,y,Math.round(k)),ba(r,b,""),r),e}a(Jz,"arrow");function e4(e){return e==="end"?"start":e==="start"?"end":e}a(e4,"getOppositeVariation");var fT=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Zh=fT.slice(3);function V1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Zh.indexOf(e),o=Zh.slice(r+1).concat(Zh.slice(0,r));return t?o.reverse():o}a(V1,"clockwise");var Jh={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function t4(e,t){if(lT(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=ag(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],l=xc(o),u=e.placement.split("-")[1]||"",c=[];switch(t.behavior){case Jh.FLIP:c=[o,l];break;case Jh.CLOCKWISE:c=V1(o);break;case Jh.COUNTERCLOCKWISE:c=V1(o,!0);break;default:c=t.behavior}return c.forEach(function(d,h){if(o!==d||c.length===h+1)return e;o=e.placement.split("-")[0],l=xc(o);var p=e.offsets.popper,m=e.offsets.reference,y=Math.floor,b=o==="left"&&y(p.right)>y(m.left)||o==="right"&&y(p.left)<y(m.right)||o==="top"&&y(p.bottom)>y(m.top)||o==="bottom"&&y(p.top)<y(m.bottom),x=y(p.left)<y(r.left),E=y(p.right)>y(r.right),w=y(p.top)<y(r.top),R=y(p.bottom)>y(r.bottom),C=o==="left"&&x||o==="right"&&E||o==="top"&&w||o==="bottom"&&R,A=["top","bottom"].indexOf(o)!==-1,k=!!t.flipVariations&&(A&&u==="start"&&x||A&&u==="end"&&E||!A&&u==="start"&&w||!A&&u==="end"&&R),z=!!t.flipVariationsByContent&&(A&&u==="start"&&E||A&&u==="end"&&x||!A&&u==="start"&&R||!A&&u==="end"&&w),L=k||z;(b||C||L)&&(e.flipped=!0,(b||C)&&(o=c[h+1]),L&&(u=e4(u)),e.placement=o+(u?"-"+u:""),e.offsets.popper=Pn({},e.offsets.popper,oT(e.instance.popper,e.offsets.reference,e.placement)),e=aT(e.instance.modifiers,e,"flip"))}),e}a(t4,"flip");function n4(e){var t=e.offsets,r=t.popper,o=t.reference,l=e.placement.split("-")[0],u=Math.floor,c=["top","bottom"].indexOf(l)!==-1,d=c?"right":"bottom",h=c?"left":"top",p=c?"width":"height";return r[d]<u(o[h])&&(e.offsets.popper[h]=u(o[h])-r[p]),r[h]>u(o[d])&&(e.offsets.popper[h]=u(o[d])),e}a(n4,"keepTogether");function r4(e,t,r,o){var l=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),u=+l[1],c=l[2];if(!u)return e;if(c.indexOf("%")===0){var d=void 0;switch(c){case"%p":d=r;break;case"%":case"%r":default:d=o}var h=Ei(d);return h[t]/100*u}else if(c==="vh"||c==="vw"){var p=void 0;return c==="vh"?p=Math.max(document.documentElement.clientHeight,window.innerHeight||0):p=Math.max(document.documentElement.clientWidth,window.innerWidth||0),p/100*u}else return u}a(r4,"toValue");function i4(e,t,r,o){var l=[0,0],u=["right","left"].indexOf(o)!==-1,c=e.split(/(\+|\-)/).map(function(m){return m.trim()}),d=c.indexOf(bs(c,function(m){return m.search(/,|\s/)!==-1}));c[d]&&c[d].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var h=/\s*,\s*|\s+/,p=d!==-1?[c.slice(0,d).concat([c[d].split(h)[0]]),[c[d].split(h)[1]].concat(c.slice(d+1))]:[c];return p=p.map(function(m,y){var b=(y===1?!u:u)?"height":"width",x=!1;return m.reduce(function(E,w){return E[E.length-1]===""&&["+","-"].indexOf(w)!==-1?(E[E.length-1]=w,x=!0,E):x?(E[E.length-1]+=w,x=!1,E):E.concat(w)},[]).map(function(E){return r4(E,b,t,r)})}),p.forEach(function(m,y){m.forEach(function(b,x){sg(b)&&(l[y]+=b*(m[x-1]==="-"?-1:1))})}),l}a(i4,"parseOffset");function o4(e,t){var r=t.offset,o=e.placement,l=e.offsets,u=l.popper,c=l.reference,d=o.split("-")[0],h=void 0;return sg(+r)?h=[+r,0]:h=i4(r,u,c,d),d==="left"?(u.top+=h[0],u.left-=h[1]):d==="right"?(u.top+=h[0],u.left+=h[1]):d==="top"?(u.left+=h[0],u.top-=h[1]):d==="bottom"&&(u.left+=h[0],u.top+=h[1]),e.popper=u,e}a(o4,"offset");function a4(e,t){var r=t.boundariesElement||ya(e.instance.popper);e.instance.reference===r&&(r=ya(r));var o=lg("transform"),l=e.instance.popper.style,u=l.top,c=l.left,d=l[o];l.top="",l.left="",l[o]="";var h=ag(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);l.top=u,l.left=c,l[o]=d,t.boundaries=h;var p=t.priority,m=e.offsets.popper,y={primary:a(function(x){var E=m[x];return m[x]<h[x]&&!t.escapeWithReference&&(E=Math.max(m[x],h[x])),ba({},x,E)},"primary"),secondary:a(function(x){var E=x==="right"?"left":"top",w=m[E];return m[x]>h[x]&&!t.escapeWithReference&&(w=Math.min(m[E],h[x]-(x==="right"?m.width:m.height))),ba({},E,w)},"secondary")};return p.forEach(function(b){var x=["left","top"].indexOf(b)!==-1?"primary":"secondary";m=Pn({},m,y[x](b))}),e.offsets.popper=m,e}a(a4,"preventOverflow");function l4(e){var t=e.placement,r=t.split("-")[0],o=t.split("-")[1];if(o){var l=e.offsets,u=l.reference,c=l.popper,d=["bottom","top"].indexOf(r)!==-1,h=d?"left":"top",p=d?"width":"height",m={start:ba({},h,u[h]),end:ba({},h,u[h]+u[p]-c[p])};e.offsets.popper=Pn({},c,m[o])}return e}a(l4,"shift");function s4(e){if(!cT(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=bs(e.instance.modifiers,function(o){return o.name==="preventOverflow"}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}a(s4,"hide");function u4(e){var t=e.placement,r=t.split("-")[0],o=e.offsets,l=o.popper,u=o.reference,c=["left","right"].indexOf(r)!==-1,d=["top","left"].indexOf(r)===-1;return l[c?"left":"top"]=u[r]-(d?l[c?"width":"height"]:0),e.placement=xc(t),e.offsets.popper=Ei(l),e}a(u4,"inner");var c4={shift:{order:100,enabled:!0,fn:l4},offset:{order:200,enabled:!0,fn:o4,offset:0},preventOverflow:{order:300,enabled:!0,fn:a4,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:n4},arrow:{order:500,enabled:!0,fn:Jz,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:t4,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:u4},hide:{order:800,enabled:!0,fn:s4},computeStyle:{order:850,enabled:!0,fn:Zz,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Kz,onLoad:Qz,gpuAcceleration:void 0}},f4={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:a(function(){},"onCreate"),onUpdate:a(function(){},"onUpdate"),modifiers:c4},rs=(function(){function e(t,r){var o=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};zz(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=Nz(this.update.bind(this)),this.options=Pn({},e.Defaults,l),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(Pn({},e.Defaults.modifiers,l.modifiers)).forEach(function(c){o.options.modifiers[c]=Pn({},e.Defaults.modifiers[c]||{},l.modifiers?l.modifiers[c]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(c){return Pn({name:c},o.options.modifiers[c])}).sort(function(c,d){return c.order-d.order}),this.modifiers.forEach(function(c){c.enabled&&WC(c.onLoad)&&c.onLoad(o.reference,o.popper,o.options,c,o.state)}),this.update();var u=this.options.eventsEnabled;u&&this.enableEventListeners(),this.state.eventsEnabled=u}return a(e,"Popper2"),Iz(e,[{key:"update",value:a(function(){return Hz.call(this)},"update$$1")},{key:"destroy",value:a(function(){return Fz.call(this)},"destroy$$1")},{key:"enableEventListeners",value:a(function(){return Vz.call(this)},"enableEventListeners$$1")},{key:"disableEventListeners",value:a(function(){return $z.call(this)},"disableEventListeners$$1")}]),e})();rs.Utils=(typeof window<"u"?window:globalThis).PopperUtils;rs.placements=fT;rs.Defaults=f4;var d4=["innerHTML","ownerDocument","style","attributes","nodeValue"],h4=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],p4=["bigint","boolean","null","number","string","symbol","undefined"];function ef(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(m4(t))return t}a(ef,"getObjectType$1");function Wn(e){return function(t){return ef(t)===e}}a(Wn,"isObjectOfType");function m4(e){return h4.includes(e)}a(m4,"isObjectType");function ka(e){return function(t){return typeof t===e}}a(ka,"isOfType$1");function g4(e){return p4.includes(e)}a(g4,"isPrimitiveType");function ee(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ee.array(e))return"Array";if(ee.plainFunction(e))return"Function";var t=ef(e);return t||"Object"}a(ee,"is");ee.array=Array.isArray;ee.arrayOf=function(e,t){return!ee.array(e)&&!ee.function(t)?!1:e.every(function(r){return t(r)})};ee.asyncGeneratorFunction=function(e){return ef(e)==="AsyncGeneratorFunction"};ee.asyncFunction=Wn("AsyncFunction");ee.bigint=ka("bigint");ee.boolean=function(e){return e===!0||e===!1};ee.date=Wn("Date");ee.defined=function(e){return!ee.undefined(e)};ee.domElement=function(e){return ee.object(e)&&!ee.plainObject(e)&&e.nodeType===1&&ee.string(e.nodeName)&&d4.every(function(t){return t in e})};ee.empty=function(e){return ee.string(e)&&e.length===0||ee.array(e)&&e.length===0||ee.object(e)&&!ee.map(e)&&!ee.set(e)&&Object.keys(e).length===0||ee.set(e)&&e.size===0||ee.map(e)&&e.size===0};ee.error=Wn("Error");ee.function=ka("function");ee.generator=function(e){return ee.iterable(e)&&ee.function(e.next)&&ee.function(e.throw)};ee.generatorFunction=Wn("GeneratorFunction");ee.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};ee.iterable=function(e){return!ee.nullOrUndefined(e)&&ee.function(e[Symbol.iterator])};ee.map=Wn("Map");ee.nan=function(e){return Number.isNaN(e)};ee.null=function(e){return e===null};ee.nullOrUndefined=function(e){return ee.null(e)||ee.undefined(e)};ee.number=function(e){return ka("number")(e)&&!ee.nan(e)};ee.numericString=function(e){return ee.string(e)&&e.length>0&&!Number.isNaN(Number(e))};ee.object=function(e){return!ee.nullOrUndefined(e)&&(ee.function(e)||typeof e=="object")};ee.oneOf=function(e,t){return ee.array(e)?e.indexOf(t)>-1:!1};ee.plainFunction=Wn("Function");ee.plainObject=function(e){if(ef(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ee.primitive=function(e){return ee.null(e)||g4(typeof e)};ee.promise=Wn("Promise");ee.propertyOf=function(e,t,r){if(!ee.object(e)||!t)return!1;var o=e[t];return ee.function(r)?r(o):ee.defined(o)};ee.regexp=Wn("RegExp");ee.set=Wn("Set");ee.string=ka("string");ee.symbol=ka("symbol");ee.undefined=ka("undefined");ee.weakMap=Wn("WeakMap");ee.weakSet=Wn("WeakSet");function dT(e){return function(t){return typeof t===e}}a(dT,"isOfType");var y4=dT("function"),v4=a(function(e){return e===null},"isNull"),G1=a(function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},"isRegex"),$1=a(function(e){return!b4(e)&&!v4(e)&&(y4(e)||typeof e=="object")},"isObject"),b4=dT("undefined"),Kp=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:a(function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}},"next")};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function S4(e,t){var r=e.length;if(r!==t.length)return!1;for(var o=r;o--!==0;)if(!nn(e[o],t[o]))return!1;return!0}a(S4,"equalArray");function x4(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=new DataView(e.buffer),o=new DataView(t.buffer),l=e.byteLength;l--;)if(r.getUint8(l)!==o.getUint8(l))return!1;return!0}a(x4,"equalArrayBuffer");function w4(e,t){var r,o,l,u;if(e.size!==t.size)return!1;try{for(var c=Kp(e.entries()),d=c.next();!d.done;d=c.next()){var h=d.value;if(!t.has(h[0]))return!1}}catch(y){r={error:y}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}try{for(var p=Kp(e.entries()),m=p.next();!m.done;m=p.next()){var h=m.value;if(!nn(h[1],t.get(h[0])))return!1}}catch(y){l={error:y}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}return!0}a(w4,"equalMap");function E4(e,t){var r,o;if(e.size!==t.size)return!1;try{for(var l=Kp(e.entries()),u=l.next();!u.done;u=l.next()){var c=u.value;if(!t.has(c[0]))return!1}}catch(d){r={error:d}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return!0}a(E4,"equalSet");function nn(e,t){if(e===t)return!0;if(e&&$1(e)&&t&&$1(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return S4(e,t);if(e instanceof Map&&t instanceof Map)return w4(e,t);if(e instanceof Set&&t instanceof Set)return E4(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return x4(e,t);if(G1(e)&&G1(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(var l=r.length;l--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[l]))return!1;for(var l=r.length;l--!==0;){var u=r[l];if(!(u==="_owner"&&e.$$typeof)&&!nn(e[u],t[u]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}a(nn,"equal");function C4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(r){return ee.string(r)||ee.array(r)||ee.plainObject(r)})}a(C4,"canHaveLength");function T4(e,t,r){return hT(e,t)?[e,t].every(ee.array)?!e.some(W1(r))&&t.some(W1(r)):[e,t].every(ee.plainObject)?!Object.entries(e).some(X1(r))&&Object.entries(t).some(X1(r)):t===r:!1}a(T4,"checkEquality");function Y1(e,t,r){var o=r.actual,l=r.key,u=r.previous,c=r.type,d=fr(e,l),h=fr(t,l),p=[d,h].every(ee.number)&&(c==="increased"?d<h:d>h);return ee.undefined(o)||(p=p&&h===o),ee.undefined(u)||(p=p&&d===u),p}a(Y1,"compareNumbers");function K1(e,t,r){var o=r.key,l=r.type,u=r.value,c=fr(e,o),d=fr(t,o),h=l==="added"?c:d,p=l==="added"?d:c;if(!ee.nullOrUndefined(u)){if(ee.defined(h)){if(ee.array(h)||ee.plainObject(h))return T4(h,p,u)}else return nn(p,u);return!1}return[c,d].every(ee.array)?!p.every(ug(h)):[c,d].every(ee.plainObject)?R4(Object.keys(h),Object.keys(p)):![c,d].every(function(m){return ee.primitive(m)&&ee.defined(m)})&&(l==="added"?!ee.defined(c)&&ee.defined(d):ee.defined(c)&&!ee.defined(d))}a(K1,"compareValues");function Q1(e,t,r){var o=r===void 0?{}:r,l=o.key,u=fr(e,l),c=fr(t,l);if(!hT(u,c))throw new TypeError("Inputs have different types");if(!C4(u,c))throw new TypeError("Inputs don't have length");return[u,c].every(ee.plainObject)&&(u=Object.keys(u),c=Object.keys(c)),[u,c]}a(Q1,"getIterables");function X1(e){return function(t){var r=t[0],o=t[1];return ee.array(e)?nn(e,o)||e.some(function(l){return nn(l,o)||ee.array(o)&&ug(o)(l)}):ee.plainObject(e)&&e[r]?!!e[r]&&nn(e[r],o):nn(e,o)}}a(X1,"hasEntry");function R4(e,t){return t.some(function(r){return!e.includes(r)})}a(R4,"hasExtraKeys");function W1(e){return function(t){return ee.array(e)?e.some(function(r){return nn(r,t)||ee.array(t)&&ug(t)(r)}):nn(e,t)}}a(W1,"hasValue");function Nl(e,t){return ee.array(e)?e.some(function(r){return nn(r,t)}):nn(e,t)}a(Nl,"includesOrEqualsTo");function ug(e){return function(t){return e.some(function(r){return nn(r,t)})}}a(ug,"isEqualPredicate");function hT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(ee.array)||e.every(ee.number)||e.every(ee.plainObject)||e.every(ee.string)}a(hT,"isSameType");function fr(e,t){if(ee.plainObject(e)||ee.array(e)){if(ee.string(t)){var r=t.split(".");return r.reduce(function(o,l){return o&&o[l]},e)}return ee.number(t)?e[t]:e}return e}a(fr,"nested");function O4(e,t){if([e,t].some(ee.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(y){return ee.plainObject(y)||ee.array(y)}))throw new Error("Expected plain objects or array");var r=a(function(y,b){try{return K1(e,t,{key:y,type:"added",value:b})}catch{return!1}},"added"),o=a(function(y,b,x){try{var E=fr(e,y),w=fr(t,y),R=ee.defined(b),C=ee.defined(x);if(R||C){var A=C?Nl(x,E):!Nl(b,E),k=Nl(b,w);return A&&k}return[E,w].every(ee.array)||[E,w].every(ee.plainObject)?!nn(E,w):E!==w}catch{return!1}},"changed"),l=a(function(y,b,x){if(!ee.defined(y))return!1;try{var E=fr(e,y),w=fr(t,y),R=ee.defined(x);return Nl(b,E)&&(R?Nl(x,w):!R)}catch{return!1}},"changedFrom"),u=a(function(y,b){return ee.defined(y)?o(y,b):!1},"changedTo"),c=a(function(y,b,x){if(!ee.defined(y))return!1;try{return Y1(e,t,{key:y,actual:b,previous:x,type:"decreased"})}catch{return!1}},"decreased"),d=a(function(y){try{var b=Q1(e,t,{key:y}),x=b[0],E=b[1];return!!x.length&&!E.length}catch{return!1}},"emptied"),h=a(function(y){try{var b=Q1(e,t,{key:y}),x=b[0],E=b[1];return!x.length&&!!E.length}catch{return!1}},"filled"),p=a(function(y,b,x){if(!ee.defined(y))return!1;try{return Y1(e,t,{key:y,actual:b,previous:x,type:"increased"})}catch{return!1}},"increased"),m=a(function(y,b){try{return K1(e,t,{key:y,type:"removed",value:b})}catch{return!1}},"removed");return{added:r,changed:o,changedFrom:l,changedTo:u,decreased:c,emptied:d,filled:h,increased:p,removed:m}}a(O4,"treeChanges");function Z1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),r.push.apply(r,o)}return r}a(Z1,"ownKeys");function ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z1(Object(r),!0).forEach(function(o){Ft(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z1(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}a(ft,"_objectSpread2");function Ss(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}a(Ss,"_classCallCheck");function A4(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,mT(o.key),o)}}a(A4,"_defineProperties");function xs(e,t,r){return t&&A4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}a(xs,"_createClass");function Ft(e,t,r){return t=mT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a(Ft,"_defineProperty");function ws(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qp(e,t)}a(ws,"_inherits");function wc(e){return wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():a(function(r){return r.__proto__||Object.getPrototypeOf(r)},"_getPrototypeOf"),wc(e)}a(wc,"_getPrototypeOf");function Qp(e,t){return Qp=Object.setPrototypeOf?Object.setPrototypeOf.bind():a(function(o,l){return o.__proto__=l,o},"_setPrototypeOf"),Qp(e,t)}a(Qp,"_setPrototypeOf");function M4(){if(typeof Reflect>"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}}a(M4,"_isNativeReflectConstruct");function _4(e,t){if(e==null)return{};var r={},o=Object.keys(e),l,u;for(u=0;u<o.length;u++)l=o[u],!(t.indexOf(l)>=0)&&(r[l]=e[l]);return r}a(_4,"_objectWithoutPropertiesLoose");function pT(e,t){if(e==null)return{};var r=_4(e,t),o,l;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(l=0;l<u.length;l++)o=u[l],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}a(pT,"_objectWithoutProperties");function Ir(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}a(Ir,"_assertThisInitialized");function k4(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ir(e)}a(k4,"_possibleConstructorReturn");function Es(e){var t=M4();return a(function(){var o=wc(e),l;if(t){var u=wc(this).constructor;l=Reflect.construct(o,arguments,u)}else l=o.apply(this,arguments);return k4(this,l)},"_createSuperInternal")}a(Es,"_createSuper");function D4(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}a(D4,"_toPrimitive");function mT(e){var t=D4(e,"string");return typeof t=="symbol"?t:String(t)}a(mT,"_toPropertyKey");var N4={flip:{padding:20},preventOverflow:{padding:10}},P4="The typeValidator argument must be a function with the signature function(props, propName, componentName).",L4="The error message is optional, but must be a string if provided.";function z4(e,t,r,o){return typeof e=="boolean"?e:typeof e=="function"?e(t,r,o):e?!!e:!1}a(z4,"propIsRequired");function I4(e,t){return Object.hasOwnProperty.call(e,t)}a(I4,"propExists");function j4(e,t,r,o){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(r,"`."))}a(j4,"missingPropError");function U4(e,t){if(typeof e!="function")throw new TypeError(P4);if(t&&typeof t!="string")throw new TypeError(L4)}a(U4,"guardAgainstInvalidArgTypes");function J1(e,t,r){return U4(e,r),function(o,l,u){for(var c=arguments.length,d=new Array(c>3?c-3:0),h=3;h<c;h++)d[h-3]=arguments[h];return z4(t,o,l,u)?I4(o,l)?e.apply(void 0,[o,l,u].concat(d)):j4(o,l,u):e.apply(void 0,[o,l,u].concat(d))}}a(J1,"isRequiredIf");var Ke={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},Pl=Gl.createPortal!==void 0;function or(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}a(or,"canUseDOM$1");function ep(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}a(ep,"isMobile");function Gu(e){var t=e.title,r=e.data,o=e.warn,l=o===void 0?!1:o,u=e.debug,c=u===void 0?!1:u,d=l?console.warn||console.error:console.log;c&&t&&r&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(r)?r.forEach(function(h){ee.plainObject(h)&&h.key?d.apply(console,[h.key,h.value]):d.apply(console,[h])}):d.apply(console,[r]),console.groupEnd())}a(Gu,"log$1");function B4(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,r,o)}a(B4,"on");function H4(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,r,o)}a(H4,"off");function F4(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,l;l=a(function(c){r(c),H4(e,t,l)},"nextCB"),B4(e,t,l,o)}a(F4,"once");function eS(){}a(eS,"noop$1");var gT=(function(e){ws(r,e);var t=Es(r);function r(){return Ss(this,r),t.apply(this,arguments)}return a(r,"ReactFloaterPortal"),xs(r,[{key:"componentDidMount",value:a(function(){or()&&(this.node||this.appendNode(),Pl||this.renderPortal())},"componentDidMount")},{key:"componentDidUpdate",value:a(function(){or()&&(Pl||this.renderPortal())},"componentDidUpdate")},{key:"componentWillUnmount",value:a(function(){!or()||!this.node||(Pl||Gl.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))},"componentWillUnmount")},{key:"appendNode",value:a(function(){var l=this.props,u=l.id,c=l.zIndex;this.node||(this.node=document.createElement("div"),u&&(this.node.id=u),c&&(this.node.style.zIndex=c),document.body.appendChild(this.node))},"appendNode")},{key:"renderPortal",value:a(function(){if(!or())return null;var l=this.props,u=l.children,c=l.setRef;if(this.node||this.appendNode(),Pl)return Gl.createPortal(u,this.node);var d=Gl.unstable_renderSubtreeIntoContainer(this,u.length>1?_e.createElement("div",null,u):u[0],this.node);return c(d),null},"renderPortal")},{key:"renderReact16",value:a(function(){var l=this.props,u=l.hasChildren,c=l.placement,d=l.target;return u?this.renderPortal():d||c==="center"?this.renderPortal():null},"renderReact16")},{key:"render",value:a(function(){return Pl?this.renderReact16():null},"render")}]),r})(_e.Component);Ft(gT,"propTypes",{children:ge.oneOfType([ge.element,ge.array]),hasChildren:ge.bool,id:ge.oneOfType([ge.string,ge.number]),placement:ge.string,setRef:ge.func.isRequired,target:ge.oneOfType([ge.object,ge.string]),zIndex:ge.number});var yT=(function(e){ws(r,e);var t=Es(r);function r(){return Ss(this,r),t.apply(this,arguments)}return a(r,"FloaterArrow"),xs(r,[{key:"parentStyle",get:a(function(){var l=this.props,u=l.placement,c=l.styles,d=c.arrow.length,h={pointerEvents:"none",position:"absolute",width:"100%"};return u.startsWith("top")?(h.bottom=0,h.left=0,h.right=0,h.height=d):u.startsWith("bottom")?(h.left=0,h.right=0,h.top=0,h.height=d):u.startsWith("left")?(h.right=0,h.top=0,h.bottom=0):u.startsWith("right")&&(h.left=0,h.top=0),h},"get")},{key:"render",value:a(function(){var l=this.props,u=l.placement,c=l.setArrowRef,d=l.styles,h=d.arrow,p=h.color,m=h.display,y=h.length,b=h.margin,x=h.position,E=h.spread,w={display:m,position:x},R,C=E,A=y;return u.startsWith("top")?(R="0,0 ".concat(C/2,",").concat(A," ").concat(C,",0"),w.bottom=0,w.marginLeft=b,w.marginRight=b):u.startsWith("bottom")?(R="".concat(C,",").concat(A," ").concat(C/2,",0 0,").concat(A),w.top=0,w.marginLeft=b,w.marginRight=b):u.startsWith("left")?(A=E,C=y,R="0,0 ".concat(C,",").concat(A/2," 0,").concat(A),w.right=0,w.marginTop=b,w.marginBottom=b):u.startsWith("right")&&(A=E,C=y,R="".concat(C,",").concat(A," ").concat(C,",0 0,").concat(A/2),w.left=0,w.marginTop=b,w.marginBottom=b),_e.createElement("div",{className:"__floater__arrow",style:this.parentStyle},_e.createElement("span",{ref:c,style:w},_e.createElement("svg",{width:C,height:A,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},_e.createElement("polygon",{points:R,fill:p}))))},"render")}]),r})(_e.Component);Ft(yT,"propTypes",{placement:ge.string.isRequired,setArrowRef:ge.func.isRequired,styles:ge.object.isRequired});var q4=["color","height","width"];function vT(e){var t=e.handleClick,r=e.styles,o=r.color,l=r.height,u=r.width,c=pT(r,q4);return _e.createElement("button",{"aria-label":"close",onClick:t,style:c,type:"button"},_e.createElement("svg",{width:"".concat(u,"px"),height:"".concat(l,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},_e.createElement("g",null,_e.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))}a(vT,"FloaterCloseBtn");vT.propTypes={handleClick:ge.func.isRequired,styles:ge.object.isRequired};function bT(e){var t=e.content,r=e.footer,o=e.handleClick,l=e.open,u=e.positionWrapper,c=e.showCloseButton,d=e.title,h=e.styles,p={content:_e.isValidElement(t)?t:_e.createElement("div",{className:"__floater__content",style:h.content},t)};return d&&(p.title=_e.isValidElement(d)?d:_e.createElement("div",{className:"__floater__title",style:h.title},d)),r&&(p.footer=_e.isValidElement(r)?r:_e.createElement("div",{className:"__floater__footer",style:h.footer},r)),(c||u)&&!ee.boolean(l)&&(p.close=_e.createElement(vT,{styles:h.close,handleClick:o})),_e.createElement("div",{className:"__floater__container",style:h.container},p.close,p.title,p.content,p.footer)}a(bT,"FloaterContainer");bT.propTypes={content:ge.node.isRequired,footer:ge.node,handleClick:ge.func.isRequired,open:ge.bool,positionWrapper:ge.bool.isRequired,showCloseButton:ge.bool.isRequired,styles:ge.object.isRequired,title:ge.node};var ST=(function(e){ws(r,e);var t=Es(r);function r(){return Ss(this,r),t.apply(this,arguments)}return a(r,"Floater"),xs(r,[{key:"style",get:a(function(){var l=this.props,u=l.disableAnimation,c=l.component,d=l.placement,h=l.hideArrow,p=l.status,m=l.styles,y=m.arrow.length,b=m.floater,x=m.floaterCentered,E=m.floaterClosing,w=m.floaterOpening,R=m.floaterWithAnimation,C=m.floaterWithComponent,A={};return h||(d.startsWith("top")?A.padding="0 0 ".concat(y,"px"):d.startsWith("bottom")?A.padding="".concat(y,"px 0 0"):d.startsWith("left")?A.padding="0 ".concat(y,"px 0 0"):d.startsWith("right")&&(A.padding="0 0 0 ".concat(y,"px"))),[Ke.OPENING,Ke.OPEN].indexOf(p)!==-1&&(A=ft(ft({},A),w)),p===Ke.CLOSING&&(A=ft(ft({},A),E)),p===Ke.OPEN&&!u&&(A=ft(ft({},A),R)),d==="center"&&(A=ft(ft({},A),x)),c&&(A=ft(ft({},A),C)),ft(ft({},b),A)},"get")},{key:"render",value:a(function(){var l=this.props,u=l.component,c=l.handleClick,d=l.hideArrow,h=l.setFloaterRef,p=l.status,m={},y=["__floater"];return u?_e.isValidElement(u)?m.content=_e.cloneElement(u,{closeFn:c}):m.content=u({closeFn:c}):m.content=_e.createElement(bT,this.props),p===Ke.OPEN&&y.push("__floater__open"),d||(m.arrow=_e.createElement(yT,this.props)),_e.createElement("div",{ref:h,className:y.join(" "),style:this.style},_e.createElement("div",{className:"__floater__body"},m.content,m.arrow))},"render")}]),r})(_e.Component);Ft(ST,"propTypes",{component:ge.oneOfType([ge.func,ge.element]),content:ge.node,disableAnimation:ge.bool.isRequired,footer:ge.node,handleClick:ge.func.isRequired,hideArrow:ge.bool.isRequired,open:ge.bool,placement:ge.string.isRequired,positionWrapper:ge.bool.isRequired,setArrowRef:ge.func.isRequired,setFloaterRef:ge.func.isRequired,showCloseButton:ge.bool,status:ge.string.isRequired,styles:ge.object.isRequired,title:ge.node});var xT=(function(e){ws(r,e);var t=Es(r);function r(){return Ss(this,r),t.apply(this,arguments)}return a(r,"ReactFloaterWrapper"),xs(r,[{key:"render",value:a(function(){var l=this.props,u=l.children,c=l.handleClick,d=l.handleMouseEnter,h=l.handleMouseLeave,p=l.setChildRef,m=l.setWrapperRef,y=l.style,b=l.styles,x;if(u)if(_e.Children.count(u)===1)if(!_e.isValidElement(u))x=_e.createElement("span",null,u);else{var E=ee.function(u.type)?"innerRef":"ref";x=_e.cloneElement(_e.Children.only(u),Ft({},E,p))}else x=u;return x?_e.createElement("span",{ref:m,style:ft(ft({},b),y),onClick:c,onMouseEnter:d,onMouseLeave:h},x):null},"render")}]),r})(_e.Component);Ft(xT,"propTypes",{children:ge.node,handleClick:ge.func.isRequired,handleMouseEnter:ge.func.isRequired,handleMouseLeave:ge.func.isRequired,setChildRef:ge.func.isRequired,setWrapperRef:ge.func.isRequired,style:ge.object,styles:ge.object.isRequired});var V4={zIndex:100};function G4(e){var t=Vn(V4,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}a(G4,"getStyles$1");var $4=["arrow","flip","offset"],Y4=["position","top","right","bottom","left"],cg=(function(e){ws(r,e);var t=Es(r);function r(o){var l;return Ss(this,r),l=t.call(this,o),Ft(Ir(l),"setArrowRef",function(u){l.arrowRef=u}),Ft(Ir(l),"setChildRef",function(u){l.childRef=u}),Ft(Ir(l),"setFloaterRef",function(u){l.floaterRef=u}),Ft(Ir(l),"setWrapperRef",function(u){l.wrapperRef=u}),Ft(Ir(l),"handleTransitionEnd",function(){var u=l.state.status,c=l.props.callback;l.wrapperPopper&&l.wrapperPopper.instance.update(),l.setState({status:u===Ke.OPENING?Ke.OPEN:Ke.IDLE},function(){var d=l.state.status;c(d===Ke.OPEN?"open":"close",l.props)})}),Ft(Ir(l),"handleClick",function(){var u=l.props,c=u.event,d=u.open;if(!ee.boolean(d)){var h=l.state,p=h.positionWrapper,m=h.status;(l.event==="click"||l.event==="hover"&&p)&&(Gu({title:"click",data:[{event:c,status:m===Ke.OPEN?"closing":"opening"}],debug:l.debug}),l.toggle())}}),Ft(Ir(l),"handleMouseEnter",function(){var u=l.props,c=u.event,d=u.open;if(!(ee.boolean(d)||ep())){var h=l.state.status;l.event==="hover"&&h===Ke.IDLE&&(Gu({title:"mouseEnter",data:[{key:"originalEvent",value:c}],debug:l.debug}),clearTimeout(l.eventDelayTimeout),l.toggle())}}),Ft(Ir(l),"handleMouseLeave",function(){var u=l.props,c=u.event,d=u.eventDelay,h=u.open;if(!(ee.boolean(h)||ep())){var p=l.state,m=p.status,y=p.positionWrapper;l.event==="hover"&&(Gu({title:"mouseLeave",data:[{key:"originalEvent",value:c}],debug:l.debug}),d?[Ke.OPENING,Ke.OPEN].indexOf(m)!==-1&&!y&&!l.eventDelayTimeout&&(l.eventDelayTimeout=setTimeout(function(){delete l.eventDelayTimeout,l.toggle()},d*1e3)):l.toggle(Ke.IDLE))}}),l.state={currentPlacement:o.placement,needsUpdate:!1,positionWrapper:o.wrapperOptions.position&&!!o.target,status:Ke.INIT,statusWrapper:Ke.INIT},l._isMounted=!1,l.hasMounted=!1,or()&&window.addEventListener("load",function(){l.popper&&l.popper.instance.update(),l.wrapperPopper&&l.wrapperPopper.instance.update()}),l}return a(r,"ReactFloater"),xs(r,[{key:"componentDidMount",value:a(function(){if(or()){var l=this.state.positionWrapper,u=this.props,c=u.children,d=u.open,h=u.target;this._isMounted=!0,Gu({title:"init",data:{hasChildren:!!c,hasTarget:!!h,isControlled:ee.boolean(d),positionWrapper:l,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!c&&h&&ee.boolean(d)}},"componentDidMount")},{key:"componentDidUpdate",value:a(function(l,u){if(or()){var c=this.props,d=c.autoOpen,h=c.open,p=c.target,m=c.wrapperOptions,y=O4(u,this.state),b=y.changedFrom,x=y.changed;if(l.open!==h){var E;ee.boolean(h)&&(E=h?Ke.OPENING:Ke.CLOSING),this.toggle(E)}(l.wrapperOptions.position!==m.position||l.target!==p)&&this.changeWrapperPosition(this.props),x("status",Ke.IDLE)&&h?this.toggle(Ke.OPEN):b("status",Ke.INIT,Ke.IDLE)&&d&&this.toggle(Ke.OPEN),this.popper&&x("status",Ke.OPENING)&&this.popper.instance.update(),this.floaterRef&&(x("status",Ke.OPENING)||x("status",Ke.CLOSING))&&F4(this.floaterRef,"transitionend",this.handleTransitionEnd),x("needsUpdate",!0)&&this.rebuildPopper()}},"componentDidUpdate")},{key:"componentWillUnmount",value:a(function(){or()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())},"componentWillUnmount")},{key:"initPopper",value:a(function(){var l=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,c=this.state.positionWrapper,d=this.props,h=d.disableFlip,p=d.getPopper,m=d.hideArrow,y=d.offset,b=d.placement,x=d.wrapperOptions,E=b==="top"||b==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(b==="center")this.setState({status:Ke.IDLE});else if(u&&this.floaterRef){var w=this.options,R=w.arrow,C=w.flip,A=w.offset,k=pT(w,$4);new rs(u,this.floaterRef,{placement:b,modifiers:ft({arrow:ft({enabled:!m,element:this.arrowRef},R),flip:ft({enabled:!h,behavior:E},C),offset:ft({offset:"0, ".concat(y,"px")},A)},k),onCreate:a(function(N){var j;if(l.popper=N,!((j=l.floaterRef)!==null&&j!==void 0&&j.isConnected)){l.setState({needsUpdate:!0});return}p(N,"floater"),l._isMounted&&l.setState({currentPlacement:N.placement,status:Ke.IDLE}),b!==N.placement&&setTimeout(function(){N.instance.update()},1)},"onCreate"),onUpdate:a(function(N){l.popper=N;var j=l.state.currentPlacement;l._isMounted&&N.placement!==j&&l.setState({currentPlacement:N.placement})},"onUpdate")})}if(c){var z=ee.undefined(x.offset)?0:x.offset;new rs(this.target,this.wrapperRef,{placement:x.placement||b,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(z,"px")},flip:{enabled:!1}},onCreate:a(function(N){l.wrapperPopper=N,l._isMounted&&l.setState({statusWrapper:Ke.IDLE}),p(N,"wrapper"),b!==N.placement&&setTimeout(function(){N.instance.update()},1)},"onCreate")})}},"initPopper")},{key:"rebuildPopper",value:a(function(){var l=this;this.floaterRefInterval=setInterval(function(){var u;(u=l.floaterRef)!==null&&u!==void 0&&u.isConnected&&(clearInterval(l.floaterRefInterval),l.setState({needsUpdate:!1}),l.initPopper())},50)},"rebuildPopper")},{key:"changeWrapperPosition",value:a(function(l){var u=l.target,c=l.wrapperOptions;this.setState({positionWrapper:c.position&&!!u})},"changeWrapperPosition")},{key:"toggle",value:a(function(l){var u=this.state.status,c=u===Ke.OPEN?Ke.CLOSING:Ke.OPENING;ee.undefined(l)||(c=l),this.setState({status:c})},"toggle")},{key:"debug",get:a(function(){var l=this.props.debug;return l||or()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug},"get")},{key:"event",get:a(function(){var l=this.props,u=l.disableHoverToClick,c=l.event;return c==="hover"&&ep()&&!u?"click":c},"get")},{key:"options",get:a(function(){var l=this.props.options;return Vn(N4,l||{})},"get")},{key:"styles",get:a(function(){var l=this,u=this.state,c=u.status,d=u.positionWrapper,h=u.statusWrapper,p=this.props.styles,m=Vn(G4(p),p);if(d){var y;[Ke.IDLE].indexOf(c)===-1||[Ke.IDLE].indexOf(h)===-1?y=m.wrapperPosition:y=this.wrapperPopper.styles,m.wrapper=ft(ft({},m.wrapper),y)}if(this.target){var b=window.getComputedStyle(this.target);this.wrapperStyles?m.wrapper=ft(ft({},m.wrapper),this.wrapperStyles):["relative","static"].indexOf(b.position)===-1&&(this.wrapperStyles={},d||(Y4.forEach(function(x){l.wrapperStyles[x]=b[x]}),m.wrapper=ft(ft({},m.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return m},"get")},{key:"target",get:a(function(){if(!or())return null;var l=this.props.target;return l?ee.domElement(l)?l:document.querySelector(l):this.childRef||this.wrapperRef},"get")},{key:"render",value:a(function(){var l=this.state,u=l.currentPlacement,c=l.positionWrapper,d=l.status,h=this.props,p=h.children,m=h.component,y=h.content,b=h.disableAnimation,x=h.footer,E=h.hideArrow,w=h.id,R=h.open,C=h.showCloseButton,A=h.style,k=h.target,z=h.title,L=_e.createElement(xT,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:A,styles:this.styles.wrapper},p),N={};return c?N.wrapperInPortal=L:N.wrapperAsChildren=L,_e.createElement("span",null,_e.createElement(gT,{hasChildren:!!p,id:w,placement:u,setRef:this.setFloaterRef,target:k,zIndex:this.styles.options.zIndex},_e.createElement(ST,{component:m,content:y,disableAnimation:b,footer:x,handleClick:this.handleClick,hideArrow:E||u==="center",open:R,placement:u,positionWrapper:c,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:C,status:d,styles:this.styles,title:z}),N.wrapperInPortal),N.wrapperAsChildren)},"render")}]),r})(_e.Component);Ft(cg,"propTypes",{autoOpen:ge.bool,callback:ge.func,children:ge.node,component:J1(ge.oneOfType([ge.func,ge.element]),function(e){return!e.content}),content:J1(ge.node,function(e){return!e.component}),debug:ge.bool,disableAnimation:ge.bool,disableFlip:ge.bool,disableHoverToClick:ge.bool,event:ge.oneOf(["hover","click"]),eventDelay:ge.number,footer:ge.node,getPopper:ge.func,hideArrow:ge.bool,id:ge.oneOfType([ge.string,ge.number]),offset:ge.number,open:ge.bool,options:ge.object,placement:ge.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:ge.bool,style:ge.object,styles:ge.object,target:ge.oneOfType([ge.object,ge.string]),title:ge.node,wrapperOptions:ge.shape({offset:ge.number,placement:ge.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:ge.bool})});Ft(cg,"defaultProps",{autoOpen:!1,callback:eS,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:eS,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var K4=Object.defineProperty,Q4=a((e,t,r)=>t in e?K4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,"__defNormalProp"),we=a((e,t,r)=>Q4(e,typeof t!="symbol"?t+"":t,r),"__publicField"),Ze={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},qn={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},Le={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},$e={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function vi(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}a(vi,"canUseDOM");function wT(e){return e?e.getBoundingClientRect():null}a(wT,"getClientRect");function X4(e=!1){const{body:t,documentElement:r}=document;if(!t||!r)return 0;if(e){const o=[t.scrollHeight,t.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight].sort((u,c)=>u-c),l=Math.floor(o.length/2);return o.length%2===0?(o[l-1]+o[l])/2:o[l]}return Math.max(t.scrollHeight,t.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}a(X4,"getDocumentHeight");function Ur(e){if(typeof e=="string")try{return document.querySelector(e)}catch{return null}return e}a(Ur,"getElement");function W4(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}a(W4,"getStyleComputedProperty");function is(e,t,r){if(!e)return Qi();const o=XC(e);if(o){if(o.isSameNode(Qi()))return r?document:Qi();if(!(o.scrollHeight>o.offsetHeight)&&!t)return o.style.overflow="initial",Qi()}return o}a(is,"getScrollParent");function tf(e,t){if(!e)return!1;const r=is(e,t);return r?!r.isSameNode(Qi()):!1}a(tf,"hasCustomScrollParent");function Z4(e){return e.offsetParent!==document.body}a(Z4,"hasCustomOffsetParent");function Sa(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:r}=e,o=W4(e);return r==="BODY"||r==="HTML"?!1:o&&o.position===t?!0:e.parentNode?Sa(e.parentNode,t):!1}a(Sa,"hasPosition");function J4(e){var t;if(!e)return!1;let r=e;for(;r&&r!==document.body;){if(r instanceof HTMLElement){const{display:o,visibility:l}=getComputedStyle(r);if(o==="none"||l==="hidden")return!1}r=(t=r.parentElement)!=null?t:null}return!0}a(J4,"isElementVisible");function e6(e,t,r){var o,l,u;const c=wT(e),d=is(e,r),h=tf(e,r),p=Sa(e);let m=0,y=(o=c?.top)!=null?o:0;if(h&&p){const b=(l=e?.offsetTop)!=null?l:0,x=(u=d?.scrollTop)!=null?u:0;y=b-x}else d instanceof HTMLElement&&(m=d.scrollTop,!h&&!Sa(e)&&(y+=m),d.isSameNode(Qi())||(y+=Qi().scrollTop));return Math.floor(y-t)}a(e6,"getElementPosition");function t6(e,t,r){var o;if(!e)return 0;const{offsetTop:l=0,scrollTop:u=0}=(o=XC(e))!=null?o:{};let c=e.getBoundingClientRect().top+u;l&&(tf(e,r)||Z4(e))&&(c-=l);const d=Math.floor(c-t);return d<0?0:d}a(t6,"getScrollTo");function Qi(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}a(Qi,"scrollDocument");function n6(e,t){const{duration:r,element:o}=t;return new Promise((l,u)=>{const{scrollTop:c}=o,d=e>c?e-c:c-e;yz.top(o,e,{duration:d<100?50:r},h=>h&&h.message!=="Element already at target scroll position"?u(h):l())})}a(n6,"scrollTo");var Ll=dr.createPortal!==void 0;function ET(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}a(ET,"getBrowser");function rc(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}a(rc,"getObjectType");function ar(e,t={}){const{defaultValue:r,step:o,steps:l}=t;let u=L1(e);if(u)(u.includes("{step}")||u.includes("{steps}"))&&o&&l&&(u=u.replace("{step}",o.toString()).replace("{steps}",l.toString()));else if(S.isValidElement(e)&&!Object.values(e.props).length&&rc(e.type)==="function"){const c=e.type({});u=ar(c,t)}else u=L1(r);return u}a(ar,"getReactNodeText");function r6(e,t){return!xe.plainObject(e)||!xe.array(t)?!1:Object.keys(e).every(r=>t.includes(r))}a(r6,"hasValidKeys");function i6(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,r=e.replace(t,(l,u,c,d)=>u+u+c+c+d+d),o=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(r);return o?[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]:[]}a(i6,"hexToRGB");function tS(e){return e.disableBeacon||e.placement==="center"}a(tS,"hideBeacon");function nS(){return!["chrome","safari","firefox","opera"].includes(ET())}a(nS,"isLegacy");function io({data:e,debug:t=!1,title:r,warn:o=!1}){const l=o?console.warn||console.error:console.log;t&&(r&&e?(console.groupCollapsed(`%creact-joyride: ${r}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(u=>{xe.plainObject(u)&&u.key?l.apply(console,[u.key,u.value]):l.apply(console,[u])}):l.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}a(io,"log");function o6(e){return Object.keys(e)}a(o6,"objectKeys");function CT(e,...t){if(!xe.plainObject(e))throw new TypeError("Expected an object");const r={};for(const o in e)({}).hasOwnProperty.call(e,o)&&(t.includes(o)||(r[o]=e[o]));return r}a(CT,"omit");function a6(e,...t){if(!xe.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const r={};for(const o in e)({}).hasOwnProperty.call(e,o)&&t.includes(o)&&(r[o]=e[o]);return r}a(a6,"pick");function Xp(e,t,r){const o=a(u=>u.replace("{step}",String(t)).replace("{steps}",String(r)),"replacer");if(rc(e)==="string")return o(e);if(!S.isValidElement(e))return e;const{children:l}=e.props;if(rc(l)==="string"&&l.includes("{step}"))return S.cloneElement(e,{children:o(l)});if(Array.isArray(l))return S.cloneElement(e,{children:l.map(u=>typeof u=="string"?o(u):Xp(u,t,r))});if(rc(e.type)==="function"&&!Object.values(e.props).length){const u=e.type({});return Xp(u,t,r)}return e}a(Xp,"replaceLocaleContent");function l6(e){const{isFirstStep:t,lifecycle:r,previousLifecycle:o,scrollToFirstStep:l,step:u,target:c}=e;return!u.disableScrolling&&(!t||l||r===Le.TOOLTIP)&&u.placement!=="center"&&(!u.isFixed||!Sa(c))&&o!==r&&[Le.BEACON,Le.TOOLTIP].includes(r)}a(l6,"shouldScroll");var s6={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},TT={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},u6={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:TT,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},c6={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},f6={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},zl={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},rS={borderRadius:4,position:"absolute"};function d6(e,t){var r,o,l,u,c;const{floaterProps:d,styles:h}=e,p=Vn((r=t.floaterProps)!=null?r:{},d??{}),m=Vn(h??{},(o=t.styles)!=null?o:{}),y=Vn(f6,m.options||{}),b=t.placement==="center"||t.disableBeacon;let{width:x}=y;window.innerWidth>480&&(x=380),"width"in y&&(x=typeof y.width=="number"&&window.innerWidth<y.width?window.innerWidth-30:y.width);const E={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:y.zIndex},w={beacon:{...zl,display:b?"none":"inline-block",height:y.beaconSize,position:"relative",width:y.beaconSize,zIndex:y.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:y.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${i6(y.primaryColor).join(",")}, 0.2)`,border:`2px solid ${y.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:y.backgroundColor,borderRadius:5,boxSizing:"border-box",color:y.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:x},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...zl,backgroundColor:y.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...zl,color:y.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...zl,color:y.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...zl,color:y.textColor,fontSize:14},overlay:{...E,backgroundColor:y.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...E},overlayLegacyCenter:{...E,backgroundColor:y.overlayColor},spotlight:{...rS,backgroundColor:"gray"},spotlightLegacy:{...rS,boxShadow:`0 0 0 9999px ${y.overlayColor}, ${y.spotlightShadow}`},floaterStyles:{arrow:{color:(c=(u=(l=p?.styles)==null?void 0:l.arrow)==null?void 0:u.color)!=null?c:y.arrowColor},options:{zIndex:y.zIndex+100}},options:y};return Vn(w,m)}a(d6,"getStyles");function h6(e){return a6(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}a(h6,"getTourProps");function na(e,t){var r,o,l,u,c,d;const h=t??{},p=Vn.all([u6,h6(e),h],{isMergeableObject:xe.plainObject}),m=d6(e,p),y=tf(Ur(p.target),p.disableScrollParentFix),b=Vn.all([s6,(r=e.floaterProps)!=null?r:{},(o=p.floaterProps)!=null?o:{}]);return b.offset=p.offset,b.styles=Vn((l=b.styles)!=null?l:{},m.floaterStyles),b.offset+=(c=(u=e.spotlightPadding)!=null?u:p.spotlightPadding)!=null?c:0,p.placementBeacon&&b.wrapperOptions&&(b.wrapperOptions.placement=p.placementBeacon),y&&b.options.preventOverflow&&(b.options.preventOverflow.boundariesElement="window"),{...p,locale:Vn.all([TT,(d=e.locale)!=null?d:{},p.locale||{}]),floaterProps:b,styles:CT(m,"floaterStyles")}}a(na,"getMergedStep");function RT(e,t=!1){return xe.plainObject(e)?e.target?!0:(io({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(io({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}a(RT,"validateStep");function iS(e,t=!1){return xe.array(e)?e.every(r=>RT(r,t)):(io({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}a(iS,"validateSteps");var OT={action:"init",controlled:!1,index:0,lifecycle:Le.INIT,origin:null,size:0,status:$e.IDLE},oS=o6(CT(OT,"controlled","size")),p6=class{static{a(this,"Store")}constructor(e){we(this,"beaconPopper"),we(this,"tooltipPopper"),we(this,"data",new Map),we(this,"listener"),we(this,"store",new Map),we(this,"addListener",l=>{this.listener=l}),we(this,"setSteps",l=>{const{size:u,status:c}=this.getState(),d={size:l.length,status:c};this.data.set("steps",l),c===$e.WAITING&&!u&&l.length&&(d.status=$e.RUNNING),this.setState(d)}),we(this,"getPopper",l=>l==="beacon"?this.beaconPopper:this.tooltipPopper),we(this,"setPopper",(l,u)=>{l==="beacon"?this.beaconPopper=u:this.tooltipPopper=u}),we(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),we(this,"close",(l=null)=>{const{index:u,status:c}=this.getState();c===$e.RUNNING&&this.setState({...this.getNextState({action:Ze.CLOSE,index:u+1,origin:l})})}),we(this,"go",l=>{const{controlled:u,status:c}=this.getState();if(u||c!==$e.RUNNING)return;const d=this.getSteps()[l];this.setState({...this.getNextState({action:Ze.GO,index:l}),status:d?c:$e.FINISHED})}),we(this,"info",()=>this.getState()),we(this,"next",()=>{const{index:l,status:u}=this.getState();u===$e.RUNNING&&this.setState(this.getNextState({action:Ze.NEXT,index:l+1}))}),we(this,"open",()=>{const{status:l}=this.getState();l===$e.RUNNING&&this.setState({...this.getNextState({action:Ze.UPDATE,lifecycle:Le.TOOLTIP})})}),we(this,"prev",()=>{const{index:l,status:u}=this.getState();u===$e.RUNNING&&this.setState({...this.getNextState({action:Ze.PREV,index:l-1})})}),we(this,"reset",(l=!1)=>{const{controlled:u}=this.getState();u||this.setState({...this.getNextState({action:Ze.RESET,index:0}),status:l?$e.RUNNING:$e.READY})}),we(this,"skip",()=>{const{status:l}=this.getState();l===$e.RUNNING&&this.setState({action:Ze.SKIP,lifecycle:Le.INIT,status:$e.SKIPPED})}),we(this,"start",l=>{const{index:u,size:c}=this.getState();this.setState({...this.getNextState({action:Ze.START,index:xe.number(l)?l:u},!0),status:c?$e.RUNNING:$e.WAITING})}),we(this,"stop",(l=!1)=>{const{index:u,status:c}=this.getState();[$e.FINISHED,$e.SKIPPED].includes(c)||this.setState({...this.getNextState({action:Ze.STOP,index:u+(l?1:0)}),status:$e.PAUSED})}),we(this,"update",l=>{var u,c;if(!r6(l,oS))throw new Error(`State is not valid. Valid keys: ${oS.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...l,action:(u=l.action)!=null?u:Ze.UPDATE,origin:(c=l.origin)!=null?c:null},!0)})});const{continuous:t=!1,stepIndex:r,steps:o=[]}=e??{};this.setState({action:Ze.INIT,controlled:xe.number(r),continuous:t,index:xe.number(r)?r:0,lifecycle:Le.INIT,origin:null,status:o.length?$e.READY:$e.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(o)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...OT}}getNextState(e,t=!1){var r,o,l,u,c;const{action:d,controlled:h,index:p,size:m,status:y}=this.getState(),b=xe.number(e.index)?e.index:p,x=h&&!t?p:Math.min(Math.max(b,0),m);return{action:(r=e.action)!=null?r:d,controlled:h,index:x,lifecycle:(o=e.lifecycle)!=null?o:Le.INIT,origin:(l=e.origin)!=null?l:null,size:(u=e.size)!=null?u:m,status:x===m?$e.FINISHED:(c=e.status)!=null?c:y}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),r=JSON.stringify(this.getState());return t!==r}setState(e,t=!1){const r=this.getState(),{action:o,index:l,lifecycle:u,origin:c=null,size:d,status:h}={...r,...e};this.store.set("action",o),this.store.set("index",l),this.store.set("lifecycle",u),this.store.set("origin",c),this.store.set("size",d),this.store.set("status",h),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(r)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function m6(e){return new p6(e)}a(m6,"createStore");function g6({styles:e}){return S.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}a(g6,"JoyrideSpotlight");var y6=g6,v6=class extends S.Component{static{a(this,"JoyrideOverlay")}constructor(){super(...arguments),we(this,"isActive",!1),we(this,"resizeTimeout"),we(this,"scrollTimeout"),we(this,"scrollParent"),we(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),we(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:r}=this.props,o=[Le.INIT,Le.BEACON,Le.COMPLETE,Le.ERROR];return t||(e?o.includes(r):r!==Le.TOOLTIP)}),we(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:r,left:o,position:l,top:u,width:c}=this.spotlightStyles,d=l==="fixed"?e.clientY:e.pageY,h=l==="fixed"?e.clientX:e.pageX,p=d>=u&&d<=u+r,y=h>=o&&h<=o+c&&p;y!==t&&this.updateState({mouseOverSpotlight:y})}),we(this,"handleScroll",()=>{const{target:e}=this.props,t=Ur(e);if(this.scrollParent!==document){const{isScrolling:r}=this.state;r||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else Sa(t,"sticky")&&this.updateState({})}),we(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:r=!1,target:o}=this.props,l=Ur(o);this.scrollParent=is(l??document.body,r,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:r,lifecycle:o,spotlightClicks:l,target:u}=this.props,{changed:c}=bc(e,this.props);if(c("target")||c("disableScrollParentFix")){const d=Ur(u);this.scrollParent=is(d??document.body,r,!0)}c("lifecycle",Le.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:d}=this.state;d||this.updateState({showSpotlight:!0})},100)),(c("spotlightClicks")||c("disableOverlay")||c("lifecycle"))&&(l&&o===Le.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):o!==Le.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:r,styles:o}=this.props;let l=o.overlay;return nS()&&(l=r==="center"?o.overlayLegacyCenter:o.overlayLegacy),{cursor:t?"default":"pointer",height:X4(),pointerEvents:e?"none":"auto",...l}}get spotlightStyles(){var e,t,r;const{showSpotlight:o}=this.state,{disableScrollParentFix:l=!1,spotlightClicks:u,spotlightPadding:c=0,styles:d,target:h}=this.props,p=Ur(h),m=wT(p),y=Sa(p),b=e6(p,c,l);return{...nS()?d.spotlightLegacy:d.spotlight,height:Math.round(((e=m?.height)!=null?e:0)+c*2),left:Math.round(((t=m?.left)!=null?t:0)-c),opacity:o?1:0,pointerEvents:u?"none":"auto",position:y?"fixed":"absolute",top:b,transition:"opacity 0.2s",width:Math.round(((r=m?.width)!=null?r:0)+c*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:r}=this.props,{hideSpotlight:o,overlayStyles:l,spotlightStyles:u}=this;if(o())return null;let c=r!=="center"&&e&&S.createElement(y6,{styles:u});if(ET()==="safari"){const{mixBlendMode:d,zIndex:h,...p}=l;c=S.createElement("div",{style:{...p}},c),delete l.backgroundColor}return S.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:l},c)}},b6=class extends S.Component{static{a(this,"JoyridePortal")}constructor(){super(...arguments),we(this,"node",null)}componentDidMount(){const{id:e}=this.props;vi()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Ll||this.renderReact15())}componentDidUpdate(){vi()&&(Ll||this.renderReact15())}componentWillUnmount(){!vi()||!this.node||(Ll||dr.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!vi())return;const{children:e}=this.props;this.node&&dr.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!vi()||!Ll)return null;const{children:e}=this.props;return this.node?dr.createPortal(e,this.node):null}render(){return Ll?this.renderReact16():null}},S6=class{static{a(this,"Scope")}constructor(e,t){if(we(this,"element"),we(this,"options"),we(this,"canBeTabbed",r=>{const{tabIndex:o}=r;return o===null||o<0?!1:this.canHaveFocus(r)}),we(this,"canHaveFocus",r=>{const o=/input|select|textarea|button|object/,l=r.nodeName.toLowerCase();return(o.test(l)&&!r.getAttribute("disabled")||l==="a"&&!!r.getAttribute("href"))&&this.isVisible(r)}),we(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),we(this,"handleKeyDown",r=>{const{code:o="Tab"}=this.options;r.code===o&&this.interceptTab(r)}),we(this,"interceptTab",r=>{r.preventDefault();const o=this.findValidTabElements(),{shiftKey:l}=r;if(!o.length)return;let u=document.activeElement?o.indexOf(document.activeElement):0;u===-1||!l&&u+1===o.length?u=0:l&&u===0?u=o.length-1:u+=l?-1:1,o[u].focus()}),we(this,"isHidden",r=>{const o=r.offsetWidth<=0&&r.offsetHeight<=0,l=window.getComputedStyle(r);return o&&!r.innerHTML?!0:o&&l.getPropertyValue("overflow")!=="visible"||l.getPropertyValue("display")==="none"}),we(this,"isVisible",r=>{let o=r;for(;o;)if(o instanceof HTMLElement){if(o===document.body)break;if(this.isHidden(o))return!1;o=o.parentNode}return!0}),we(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),we(this,"checkFocus",r=>{document.activeElement!==r&&(r.focus(),window.requestAnimationFrame(()=>this.checkFocus(r)))}),we(this,"setFocus",()=>{const{selector:r}=this.options;if(!r)return;const o=this.element.querySelector(r);o&&window.requestAnimationFrame(()=>this.checkFocus(o))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},x6=class extends S.Component{static{a(this,"JoyrideBeacon")}constructor(e){if(super(e),we(this,"beacon",null),we(this,"setBeaconRef",l=>{this.beacon=l}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.id="joyride-beacon-animation",e.nonce&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode(`
507
507
  @keyframes joyride-beacon-inner {
508
508
  20% {
509
509
  opacity: 0.9;
@@ -529,18 +529,18 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
529
529
  transform: scale(1);
530
530
  }
531
531
  }
532
- `)),t.appendChild(r)}componentDidMount(){const{shouldFocus:e}=this.props;setTimeout(()=>{xe.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e?.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:r,isLastStep:o,locale:l,onClickOrHover:u,size:c,step:d,styles:p}=this.props,h=ar(l.open),m={"aria-label":h,onClick:u,onMouseEnter:u,ref:this.setBeaconRef,title:h};let y;if(e){const b=e;y=S.createElement(b,{continuous:t,index:r,isLastStep:o,size:c,step:d,...m})}else y=S.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:p.beacon,type:"button",...m},S.createElement("span",{style:p.beaconInner}),S.createElement("span",{style:p.beaconOuter}));return y}};function w6({styles:e,...t}){const{color:r,height:o,width:l,...u}=e;return _e.createElement("button",{style:u,type:"button",...t},_e.createElement("svg",{height:typeof o=="number"?`${o}px`:o,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof l=="number"?`${l}px`:l,xmlns:"http://www.w3.org/2000/svg"},_e.createElement("g",null,_e.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}a(w6,"JoyrideTooltipCloseButton");var E6=w6;function C6(e){const{backProps:t,closeProps:r,index:o,isLastStep:l,primaryProps:u,skipProps:c,step:d,tooltipProps:p}=e,{content:h,hideBackButton:m,hideCloseButton:y,hideFooter:b,showSkipButton:x,styles:E,title:w}=d,R={};return R.primary=S.createElement("button",{"data-test-id":"button-primary",style:E.buttonNext,type:"button",...u}),x&&!l&&(R.skip=S.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:E.buttonSkip,type:"button",...c})),!m&&o>0&&(R.back=S.createElement("button",{"data-test-id":"button-back",style:E.buttonBack,type:"button",...t})),R.close=!y&&S.createElement(E6,{"data-test-id":"button-close",styles:E.buttonClose,...r}),S.createElement("div",{key:"JoyrideTooltip","aria-label":ar(w??h),className:"react-joyride__tooltip",style:E.tooltip,...p},S.createElement("div",{style:E.tooltipContainer},w&&S.createElement("h1",{"aria-label":ar(w),style:E.tooltipTitle},w),S.createElement("div",{style:E.tooltipContent},h)),!b&&S.createElement("div",{style:E.tooltipFooter},S.createElement("div",{style:E.tooltipFooterSpacer},R.skip),R.back,R.primary),R.close)}a(C6,"JoyrideTooltipContainer");var T6=C6,R6=class extends S.Component{static{a(this,"JoyrideTooltip")}constructor(){super(...arguments),we(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),we(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),we(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:r}=this.props;if(!t){r.close("button_primary");return}r.next()}),we(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),we(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:r,setTooltipRef:o,size:l,step:u}=this.props,{back:c,close:d,last:p,next:h,nextLabelWithProgress:m,skip:y}=u.locale,b=ar(c),x=ar(d),E=ar(p),w=ar(h),R=ar(y);let C=d,A=x;if(e){if(C=h,A=w,u.showProgress&&!r){const k=ar(m,{step:t+1,steps:l});C=Xh(m,t+1,l),A=k}r&&(C=p,A=E)}return{backProps:{"aria-label":b,children:c,"data-action":"back",onClick:this.handleClickBack,role:"button",title:b},closeProps:{"aria-label":x,children:d,"data-action":"close",onClick:this.handleClickClose,role:"button",title:x},primaryProps:{"aria-label":A,children:C,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:A},skipProps:{"aria-label":R,children:y,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:R},tooltipProps:{"aria-modal":!0,ref:o,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:r,setTooltipRef:o,size:l,step:u}=this.props,{beaconComponent:c,tooltipComponent:d,...p}=u;let h;if(d){const m={...this.getElementsProps(),continuous:e,index:t,isLastStep:r,size:l,step:p,setTooltipRef:o},y=d;h=S.createElement(y,{...m})}else h=S.createElement(T6,{...this.getElementsProps(),continuous:e,index:t,isLastStep:r,size:l,step:u});return h}},O6=class extends S.Component{static{a(this,"JoyrideStep")}constructor(){super(...arguments),we(this,"scope",null),we(this,"tooltip",null),we(this,"handleClickHoverBeacon",e=>{const{step:t,store:r}=this.props;e.type==="mouseenter"&&t.event!=="hover"||r.update({lifecycle:Le.TOOLTIP})}),we(this,"setTooltipRef",e=>{this.tooltip=e}),we(this,"setPopper",(e,t)=>{var r;const{action:o,lifecycle:l,step:u,store:c}=this.props;t==="wrapper"?c.setPopper("beacon",e):c.setPopper("tooltip",e),c.getPopper("beacon")&&(c.getPopper("tooltip")||u.placement==="center")&&l===Le.INIT&&c.update({action:o,lifecycle:Le.READY}),(r=u.floaterProps)!=null&&r.getPopper&&u.floaterProps.getPopper(e,t)}),we(this,"renderTooltip",e=>{const{continuous:t,helpers:r,index:o,size:l,step:u}=this.props;return S.createElement(R6,{continuous:t,helpers:r,index:o,isLastStep:o+1===l,setTooltipRef:this.setTooltipRef,size:l,step:u,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;io({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:r,callback:o,continuous:l,controlled:u,debug:c,helpers:d,index:p,lifecycle:h,shouldScroll:m,status:y,step:b,store:x}=this.props,{changed:E,changedFrom:w}=bc(e,this.props),R=d.info(),C=l&&r!==Ze.CLOSE&&(p>0||r===Ze.PREV),A=E("action")||E("index")||E("lifecycle")||E("status"),k=w("lifecycle",[Le.TOOLTIP,Le.INIT],Le.INIT),z=E("action",[Ze.NEXT,Ze.PREV,Ze.SKIP,Ze.CLOSE]),L=u&&p===e.index;if(z&&(k||L)&&o({...R,index:e.index,lifecycle:Le.COMPLETE,step:e.step,type:qn.STEP_AFTER}),b.placement==="center"&&y===$e.RUNNING&&E("index")&&r!==Ze.START&&h===Le.INIT&&x.update({lifecycle:Le.READY}),A){const N=Ur(b.target),j=!!N;j&&J4(N)?(w("status",$e.READY,$e.RUNNING)||w("lifecycle",Le.INIT,Le.READY))&&o({...R,step:b,type:qn.STEP_BEFORE}):(console.warn(j?"Target not visible":"Target not mounted",b),o({...R,type:qn.TARGET_NOT_FOUND,step:b}),u||x.update({index:p+(r===Ze.PREV?-1:1)}))}w("lifecycle",Le.INIT,Le.READY)&&x.update({lifecycle:tS(b)||C?Le.TOOLTIP:Le.BEACON}),E("index")&&io({title:`step:${h}`,data:[{key:"props",value:this.props}],debug:c}),E("lifecycle",Le.BEACON)&&o({...R,step:b,type:qn.BEACON}),E("lifecycle",Le.TOOLTIP)&&(o({...R,step:b,type:qn.TOOLTIP}),m&&this.tooltip&&(this.scope=new S6(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),w("lifecycle",[Le.TOOLTIP,Le.INIT],Le.INIT)&&((t=this.scope)==null||t.removeScope(),x.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return tS(t)||e===Le.TOOLTIP}render(){const{continuous:e,debug:t,index:r,nonce:o,shouldScroll:l,size:u,step:c}=this.props,d=Ur(c.target);return!RT(c)||!xe.domElement(d)?null:S.createElement("div",{key:`JoyrideStep-${r}`,className:"react-joyride__step"},S.createElement(cg,{...c.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${r}`,open:this.open,placement:c.placement,target:c.target},S.createElement(x6,{beaconComponent:c.beaconComponent,continuous:e,index:r,isLastStep:r+1===u,locale:c.locale,nonce:o,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:l,size:u,step:c,styles:c.styles})))}},AT=class extends S.Component{static{a(this,"Joyride")}constructor(e){super(e),we(this,"helpers"),we(this,"store"),we(this,"callback",c=>{const{callback:d}=this.props;xe.function(d)&&d(c)}),we(this,"handleKeyboard",c=>{const{index:d,lifecycle:p}=this.state,{steps:h}=this.props,m=h[d];p===Le.TOOLTIP&&c.code==="Escape"&&m&&!m.disableCloseOnEsc&&this.store.close("keyboard")}),we(this,"handleClickOverlay",()=>{const{index:c}=this.state,{steps:d}=this.props;na(this.props,d[c]).disableOverlayClose||this.helpers.close("overlay")}),we(this,"syncState",c=>{this.setState(c)});const{debug:t,getHelpers:r,run:o=!0,stepIndex:l}=e;this.store=m6({...e,controlled:o&&xe.number(l)}),this.helpers=this.store.getHelpers();const{addListener:u}=this.store;io({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),u(this.syncState),r&&r(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!vi())return;const{debug:e,disableCloseOnEsc:t,run:r,steps:o}=this.props,{start:l}=this.store;iS(o,e)&&r&&l(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!vi())return;const{action:r,controlled:o,index:l,status:u}=this.state,{debug:c,run:d,stepIndex:p,steps:h}=this.props,{stepIndex:m,steps:y}=e,{reset:b,setSteps:x,start:E,stop:w,update:R}=this.store,{changed:C}=bc(e,this.props),{changed:A,changedFrom:k}=bc(t,this.state),z=na(this.props,h[l]),L=!Gt(y,h),N=xe.number(p)&&C("stepIndex"),j=Ur(z.target);if(L&&(iS(h,c)?x(h):console.warn("Steps are not valid",h)),C("run")&&(d?E(p):w()),N){let J=xe.number(m)&&m<p?Ze.NEXT:Ze.PREV;r===Ze.STOP&&(J=Ze.START),[$e.FINISHED,$e.SKIPPED].includes(u)||R({action:r===Ze.CLOSE?Ze.CLOSE:J,index:p,lifecycle:Le.INIT})}!o&&u===$e.RUNNING&&l===0&&!j&&(this.store.update({index:l+1}),this.callback({...this.state,type:qn.TARGET_NOT_FOUND,step:z}));const $={...this.state,index:l,step:z};if(A("action",[Ze.NEXT,Ze.PREV,Ze.SKIP,Ze.CLOSE])&&A("status",$e.PAUSED)){const J=na(this.props,h[t.index]);this.callback({...$,index:t.index,lifecycle:Le.COMPLETE,step:J,type:qn.STEP_AFTER})}if(A("status",[$e.FINISHED,$e.SKIPPED])){const J=na(this.props,h[t.index]);o||this.callback({...$,index:t.index,lifecycle:Le.COMPLETE,step:J,type:qn.STEP_AFTER}),this.callback({...$,type:qn.TOUR_END,step:J,index:t.index}),b()}else k("status",[$e.IDLE,$e.READY],$e.RUNNING)?this.callback({...$,type:qn.TOUR_START}):(A("status")||A("action",Ze.RESET))&&this.callback({...$,type:qn.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:r,status:o}=this.state,{debug:l,disableScrollParentFix:u=!1,scrollDuration:c,scrollOffset:d=20,scrollToFirstStep:p=!1,steps:h}=this.props,m=na(this.props,h[t]),y=Ur(m.target),b=l6({isFirstStep:t===0,lifecycle:r,previousLifecycle:e.lifecycle,scrollToFirstStep:p,step:m,target:y});if(o===$e.RUNNING&&b){const x=tf(y,u),E=is(y,u);let w=Math.floor(t6(y,d,u))||0;io({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:r},{key:"status",value:o}],debug:l});const R=this.store.getPopper("beacon"),C=this.store.getPopper("tooltip");if(r===Le.BEACON&&R){const{offsets:A,placement:k}=R;!["bottom"].includes(k)&&!x&&(w=Math.floor(A.popper.top-d))}else if(r===Le.TOOLTIP&&C){const{flipped:A,offsets:k,placement:z}=C;["top","right","left"].includes(z)&&!A&&!x?w=Math.floor(k.popper.top-d):w-=m.spotlightPadding}w=w>=0?w:0,o===$e.RUNNING&&n6(w,{element:E,duration:c}).then(()=>{setTimeout(()=>{var A;(A=this.store.getPopper("tooltip"))==null||A.instance.update()},10)})}}render(){if(!vi())return null;const{index:e,lifecycle:t,status:r}=this.state,{continuous:o=!1,debug:l=!1,nonce:u,scrollToFirstStep:c=!1,steps:d}=this.props,p=r===$e.RUNNING,h={};if(p&&d[e]){const m=na(this.props,d[e]);h.step=S.createElement(O6,{...this.state,callback:this.callback,continuous:o,debug:l,helpers:this.helpers,nonce:u,shouldScroll:!m.disableScrolling&&(e!==0||c),step:m,store:this.store}),h.overlay=S.createElement(b6,{id:"react-joyride-portal"},S.createElement(v6,{...m,continuous:o,debug:l,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return S.createElement("div",{className:"react-joyride"},h.step,h.overlay)}};we(AT,"defaultProps",c6);var bB=AT,fg="ToastProvider",[dg,A6,M6]=Fc("Toast"),[MT]=$t("Toast",[M6]),[_6,nf]=MT(fg),_T=a(e=>{const{__scopeToast:t,label:r="Notification",duration:o=5e3,swipeDirection:l="right",swipeThreshold:u=50,children:c}=e,[d,p]=S.useState(null),[h,m]=S.useState(0),y=S.useRef(!1),b=S.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${fg}\`. Expected non-empty \`string\`.`),D.jsx(dg.Provider,{scope:t,children:D.jsx(_6,{scope:t,label:r,duration:o,swipeDirection:l,swipeThreshold:u,toastCount:h,viewport:d,onViewportChange:p,onToastAdd:S.useCallback(()=>m(x=>x+1),[]),onToastRemove:S.useCallback(()=>m(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:b,children:c})})},"ToastProvider");_T.displayName=fg;var kT="ToastViewport",k6=["F8"],Wh="toast.viewportPause",Zh="toast.viewportResume",DT=S.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:o=k6,label:l="Notifications ({hotkey})",...u}=e,c=nf(kT,r),d=A6(r),p=S.useRef(null),h=S.useRef(null),m=S.useRef(null),y=S.useRef(null),b=ze(t,y,c.onViewportChange),x=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=c.toastCount>0;S.useEffect(()=>{const R=a(C=>{o.length!==0&&o.every(k=>C[k]||C.code===k)&&y.current?.focus()},"handleKeyDown");return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[o]),S.useEffect(()=>{const R=p.current,C=y.current;if(E&&R&&C){const A=a(()=>{if(!c.isClosePausedRef.current){const N=new CustomEvent(Wh);C.dispatchEvent(N),c.isClosePausedRef.current=!0}},"handlePause"),k=a(()=>{if(c.isClosePausedRef.current){const N=new CustomEvent(Zh);C.dispatchEvent(N),c.isClosePausedRef.current=!1}},"handleResume"),z=a(N=>{!R.contains(N.relatedTarget)&&k()},"handleFocusOutResume"),L=a(()=>{R.contains(document.activeElement)||k()},"handlePointerLeaveResume");return R.addEventListener("focusin",A),R.addEventListener("focusout",z),R.addEventListener("pointermove",A),R.addEventListener("pointerleave",L),window.addEventListener("blur",A),window.addEventListener("focus",k),()=>{R.removeEventListener("focusin",A),R.removeEventListener("focusout",z),R.removeEventListener("pointermove",A),R.removeEventListener("pointerleave",L),window.removeEventListener("blur",A),window.removeEventListener("focus",k)}}},[E,c.isClosePausedRef]);const w=S.useCallback(({tabbingDirection:R})=>{const A=d().map(k=>{const z=k.ref.current,L=[z,...V6(z)];return R==="forwards"?L:L.reverse()});return(R==="forwards"?A.reverse():A).flat()},[d]);return S.useEffect(()=>{const R=y.current;if(R){const C=a(A=>{const k=A.altKey||A.ctrlKey||A.metaKey;if(A.key==="Tab"&&!k){const L=document.activeElement,N=A.shiftKey;if(A.target===R&&N){h.current?.focus();return}const W=w({tabbingDirection:N?"backwards":"forwards"}),J=W.findIndex(X=>X===L);th(W.slice(J+1))?A.preventDefault():N?h.current?.focus():m.current?.focus()}},"handleKeyDown");return R.addEventListener("keydown",C),()=>R.removeEventListener("keydown",C)}},[d,w]),D.jsxs(UM,{ref:p,role:"region","aria-label":l.replace("{hotkey}",x),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&D.jsx(Jh,{ref:h,onFocusFromOutsideViewport:a(()=>{const R=w({tabbingDirection:"forwards"});th(R)},"onFocusFromOutsideViewport")}),D.jsx(dg.Slot,{scope:r,children:D.jsx(Ee.ol,{tabIndex:-1,...u,ref:b})}),E&&D.jsx(Jh,{ref:m,onFocusFromOutsideViewport:a(()=>{const R=w({tabbingDirection:"backwards"});th(R)},"onFocusFromOutsideViewport")})]})});DT.displayName=kT;var NT="ToastFocusProxy",Jh=S.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:o,...l}=e,u=nf(NT,r);return D.jsx(Ic,{tabIndex:0,...l,ref:t,style:{position:"fixed"},onFocus:a(c=>{const d=c.relatedTarget;!u.viewport?.contains(d)&&o()},"onFocus")})});Jh.displayName=NT;var Cs="Toast",D6="toast.swipeStart",N6="toast.swipeMove",P6="toast.swipeCancel",L6="toast.swipeEnd",PT=S.forwardRef((e,t)=>{const{forceMount:r,open:o,defaultOpen:l,onOpenChange:u,...c}=e,[d,p]=hr({prop:o,defaultProp:l??!0,onChange:u,caller:Cs});return D.jsx(It,{present:r||d,children:D.jsx(j6,{open:d,...c,ref:t,onClose:a(()=>p(!1),"onClose"),onPause:vt(e.onPause),onResume:vt(e.onResume),onSwipeStart:ye(e.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ye(e.onSwipeMove,h=>{const{x:m,y}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:ye(e.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ye(e.onSwipeEnd,h=>{const{x:m,y}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),p(!1)})})})});PT.displayName=Cs;var[z6,I6]=MT(Cs,{onClose(){}}),j6=S.forwardRef((e,t)=>{const{__scopeToast:r,type:o="foreground",duration:l,open:u,onClose:c,onEscapeKeyDown:d,onPause:p,onResume:h,onSwipeStart:m,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:x,...E}=e,w=nf(Cs,r),[R,C]=S.useState(null),A=ze(t,q=>C(q)),k=S.useRef(null),z=S.useRef(null),L=l||w.duration,N=S.useRef(0),j=S.useRef(L),$=S.useRef(0),{onToastAdd:W,onToastRemove:J}=w,X=vt(()=>{R?.contains(document.activeElement)&&w.viewport?.focus(),c()}),Z=S.useCallback(q=>{!q||q===1/0||(window.clearTimeout($.current),N.current=new Date().getTime(),$.current=window.setTimeout(X,q))},[X]);S.useEffect(()=>{const q=w.viewport;if(q){const ae=a(()=>{Z(j.current),h?.()},"handleResume"),I=a(()=>{const Q=new Date().getTime()-N.current;j.current=j.current-Q,window.clearTimeout($.current),p?.()},"handlePause");return q.addEventListener(Wh,I),q.addEventListener(Zh,ae),()=>{q.removeEventListener(Wh,I),q.removeEventListener(Zh,ae)}}},[w.viewport,L,p,h,Z]),S.useEffect(()=>{u&&!w.isClosePausedRef.current&&Z(L)},[u,L,w.isClosePausedRef,Z]),S.useEffect(()=>(W(),()=>J()),[W,J]);const ce=S.useMemo(()=>R?HT(R):null,[R]);return w.viewport?D.jsxs(D.Fragment,{children:[ce&&D.jsx(U6,{__scopeToast:r,role:"status","aria-live":o==="foreground"?"assertive":"polite",children:ce}),D.jsx(z6,{scope:r,onClose:X,children:dr.createPortal(D.jsx(dg.ItemSlot,{scope:r,children:D.jsx(jM,{asChild:!0,onEscapeKeyDown:ye(d,()=>{w.isFocusedToastEscapeKeyDownRef.current||X(),w.isFocusedToastEscapeKeyDownRef.current=!1}),children:D.jsx(Ee.li,{tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":w.swipeDirection,...E,ref:A,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ye(e.onKeyDown,q=>{q.key==="Escape"&&(d?.(q.nativeEvent),q.nativeEvent.defaultPrevented||(w.isFocusedToastEscapeKeyDownRef.current=!0,X()))}),onPointerDown:ye(e.onPointerDown,q=>{q.button===0&&(k.current={x:q.clientX,y:q.clientY})}),onPointerMove:ye(e.onPointerMove,q=>{if(!k.current)return;const ae=q.clientX-k.current.x,I=q.clientY-k.current.y,Q=!!z.current,te=["left","right"].includes(w.swipeDirection),se=["left","up"].includes(w.swipeDirection)?Math.min:Math.max,O=te?se(0,ae):0,Y=te?0:se(0,I),de=q.pointerType==="touch"?10:2,M={x:O,y:Y},ne={originalEvent:q,delta:M};Q?(z.current=M,$u(N6,y,ne,{discrete:!1})):aS(M,w.swipeDirection,de)?(z.current=M,$u(D6,m,ne,{discrete:!1}),q.target.setPointerCapture(q.pointerId)):(Math.abs(ae)>de||Math.abs(I)>de)&&(k.current=null)}),onPointerUp:ye(e.onPointerUp,q=>{const ae=z.current,I=q.target;if(I.hasPointerCapture(q.pointerId)&&I.releasePointerCapture(q.pointerId),z.current=null,k.current=null,ae){const Q=q.currentTarget,te={originalEvent:q,delta:ae};aS(ae,w.swipeDirection,w.swipeThreshold)?$u(L6,x,te,{discrete:!0}):$u(P6,b,te,{discrete:!0}),Q.addEventListener("click",se=>se.preventDefault(),{once:!0})}})})})}),w.viewport)})]}):null}),U6=a(e=>{const{__scopeToast:t,children:r,...o}=e,l=nf(Cs,t),[u,c]=S.useState(!1),[d,p]=S.useState(!1);return F6(()=>c(!0)),S.useEffect(()=>{const h=window.setTimeout(()=>p(!0),1e3);return()=>window.clearTimeout(h)},[]),d?null:D.jsx(wa,{asChild:!0,children:D.jsx(Ic,{...o,children:u&&D.jsxs(D.Fragment,{children:[l.label," ",r]})})})},"ToastAnnounce"),B6="ToastTitle",LT=S.forwardRef((e,t)=>{const{__scopeToast:r,...o}=e;return D.jsx(Ee.div,{...o,ref:t})});LT.displayName=B6;var H6="ToastDescription",zT=S.forwardRef((e,t)=>{const{__scopeToast:r,...o}=e;return D.jsx(Ee.div,{...o,ref:t})});zT.displayName=H6;var IT="ToastAction",jT=S.forwardRef((e,t)=>{const{altText:r,...o}=e;return r.trim()?D.jsx(BT,{altText:r,asChild:!0,children:D.jsx(pg,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${IT}\`. Expected non-empty \`string\`.`),null)});jT.displayName=IT;var UT="ToastClose",pg=S.forwardRef((e,t)=>{const{__scopeToast:r,...o}=e,l=I6(UT,r);return D.jsx(BT,{asChild:!0,children:D.jsx(Ee.button,{type:"button",...o,ref:t,onClick:ye(e.onClick,l.onClose)})})});pg.displayName=UT;var BT=S.forwardRef((e,t)=>{const{__scopeToast:r,altText:o,...l}=e;return D.jsx(Ee.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...l,ref:t})});function HT(e){const t=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),q6(o)){const l=o.ariaHidden||o.hidden||o.style.display==="none",u=o.dataset.radixToastAnnounceExclude==="";if(!l)if(u){const c=o.dataset.radixToastAnnounceAlt;c&&t.push(c)}else t.push(...HT(o))}}),t}a(HT,"getAnnounceTextContent");function $u(e,t,r,{discrete:o}){const l=r.originalEvent.currentTarget,u=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&l.addEventListener(e,t,{once:!0}),o?dm(l,u):l.dispatchEvent(u)}a($u,"handleAndDispatchCustomEvent");var aS=a((e,t,r=0)=>{const o=Math.abs(e.x),l=Math.abs(e.y),u=o>l;return t==="left"||t==="right"?u&&o>r:!u&&l>r},"isDeltaInDirection");function F6(e=()=>{}){const t=vt(e);bt(()=>{let r=0,o=0;return r=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(o)}},[t])}a(F6,"useNextFrame");function q6(e){return e.nodeType===e.ELEMENT_NODE}a(q6,"isHTMLElement");function V6(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a(o=>{const l=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||l?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}a(V6,"getTabbableCandidates");function th(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}a(th,"focusFirst");var SB=_T,xB=DT,wB=PT,EB=LT,CB=zT,TB=jT,RB=pg;function OB(){}a(OB,"ok$1");function G6(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}a(G6,"stringify$1");const $6=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Y6=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,K6={};function lS(e,t){return(K6.jsx?Y6:$6).test(e)}a(lS,"name");const Q6=/[ \t\n\f\r]/g;function X6(e){return typeof e=="object"?e.type==="text"?sS(e.value):!1:sS(e)}a(X6,"whitespace");function sS(e){return e.replace(Q6,"")===""}a(sS,"empty$1");class Ts{static{a(this,"Schema")}constructor(t,r,o){this.normal=r,this.property=t,o&&(this.space=o)}}Ts.prototype.normal={};Ts.prototype.property={};Ts.prototype.space=void 0;function FT(e,t){const r={},o={};for(const l of e)Object.assign(r,l.property),Object.assign(o,l.normal);return new Ts(r,o,t)}a(FT,"merge");function em(e){return e.toLowerCase()}a(em,"normalize$1");class on{static{a(this,"Info")}constructor(t,r){this.attribute=r,this.property=t}}on.prototype.attribute="";on.prototype.booleanish=!1;on.prototype.boolean=!1;on.prototype.commaOrSpaceSeparated=!1;on.prototype.commaSeparated=!1;on.prototype.defined=!1;on.prototype.mustUseProperty=!1;on.prototype.number=!1;on.prototype.overloadedBoolean=!1;on.prototype.property="";on.prototype.spaceSeparated=!1;on.prototype.space=void 0;let W6=0;const Ue=co(),Tt=co(),tm=co(),he=co(),lt=co(),fa=co(),gn=co();function co(){return 2**++W6}a(co,"increment");const nm=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ue,booleanish:Tt,commaOrSpaceSeparated:gn,commaSeparated:fa,number:he,overloadedBoolean:tm,spaceSeparated:lt},Symbol.toStringTag,{value:"Module"})),nh=Object.keys(nm);class hg extends on{static{a(this,"DefinedInfo")}constructor(t,r,o,l){let u=-1;if(super(t,r),uS(this,"space",l),typeof o=="number")for(;++u<nh.length;){const c=nh[u];uS(this,nh[u],(o&nm[c])===nm[c])}}}hg.prototype.defined=!0;function uS(e,t,r){r&&(e[t]=r)}a(uS,"mark");function Da(e){const t={},r={};for(const[o,l]of Object.entries(e.properties)){const u=new hg(o,e.transform(e.attributes||{},o),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(u.mustUseProperty=!0),t[o]=u,r[em(o)]=o,r[em(u.attribute)]=o}return new Ts(t,r,e.space)}a(Da,"create");const qT=Da({properties:{ariaActiveDescendant:null,ariaAtomic:Tt,ariaAutoComplete:null,ariaBusy:Tt,ariaChecked:Tt,ariaColCount:he,ariaColIndex:he,ariaColSpan:he,ariaControls:lt,ariaCurrent:null,ariaDescribedBy:lt,ariaDetails:null,ariaDisabled:Tt,ariaDropEffect:lt,ariaErrorMessage:null,ariaExpanded:Tt,ariaFlowTo:lt,ariaGrabbed:Tt,ariaHasPopup:null,ariaHidden:Tt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:lt,ariaLevel:he,ariaLive:null,ariaModal:Tt,ariaMultiLine:Tt,ariaMultiSelectable:Tt,ariaOrientation:null,ariaOwns:lt,ariaPlaceholder:null,ariaPosInSet:he,ariaPressed:Tt,ariaReadOnly:Tt,ariaRelevant:null,ariaRequired:Tt,ariaRoleDescription:lt,ariaRowCount:he,ariaRowIndex:he,ariaRowSpan:he,ariaSelected:Tt,ariaSetSize:he,ariaSort:null,ariaValueMax:he,ariaValueMin:he,ariaValueNow:he,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function VT(e,t){return t in e?e[t]:t}a(VT,"caseSensitiveTransform");function GT(e,t){return VT(e,t.toLowerCase())}a(GT,"caseInsensitiveTransform");const Z6=Da({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fa,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:Ue,allowPaymentRequest:Ue,allowUserMedia:Ue,alt:null,as:null,async:Ue,autoCapitalize:null,autoComplete:lt,autoFocus:Ue,autoPlay:Ue,blocking:lt,capture:null,charSet:null,checked:Ue,cite:null,className:lt,cols:he,colSpan:null,content:null,contentEditable:Tt,controls:Ue,controlsList:lt,coords:he|fa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ue,defer:Ue,dir:null,dirName:null,disabled:Ue,download:tm,draggable:Tt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ue,formTarget:null,headers:lt,height:he,hidden:tm,high:he,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:null,inert:Ue,inputMode:null,integrity:null,is:null,isMap:Ue,itemId:null,itemProp:lt,itemRef:lt,itemScope:Ue,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ue,low:he,manifest:null,max:null,maxLength:he,media:null,method:null,min:null,minLength:he,multiple:Ue,muted:Ue,name:null,nonce:null,noModule:Ue,noValidate:Ue,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ue,optimum:he,pattern:null,ping:lt,placeholder:null,playsInline:Ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ue,referrerPolicy:null,rel:lt,required:Ue,reversed:Ue,rows:he,rowSpan:he,sandbox:lt,scope:null,scoped:Ue,seamless:Ue,selected:Ue,shadowRootClonable:Ue,shadowRootDelegatesFocus:Ue,shadowRootMode:null,shape:null,size:he,sizes:null,slot:null,span:he,spellCheck:Tt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:he,step:null,style:null,tabIndex:he,target:null,title:null,translate:null,type:null,typeMustMatch:Ue,useMap:null,value:Tt,width:he,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:he,borderColor:null,bottomMargin:he,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ue,declare:Ue,event:null,face:null,frame:null,frameBorder:null,hSpace:he,leftMargin:he,link:null,longDesc:null,lowSrc:null,marginHeight:he,marginWidth:he,noResize:Ue,noHref:Ue,noShade:Ue,noWrap:Ue,object:null,profile:null,prompt:null,rev:null,rightMargin:he,rules:null,scheme:null,scrolling:Tt,standby:null,summary:null,text:null,topMargin:he,valueType:null,version:null,vAlign:null,vLink:null,vSpace:he,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ue,disableRemotePlayback:Ue,prefix:null,property:null,results:he,security:null,unselectable:null},space:"html",transform:GT}),J6=Da({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:gn,accentHeight:he,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:he,amplitude:he,arabicForm:null,ascent:he,attributeName:null,attributeType:null,azimuth:he,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:he,by:null,calcMode:null,capHeight:he,className:lt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:he,diffuseConstant:he,direction:null,display:null,dur:null,divisor:he,dominantBaseline:null,download:Ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:he,enableBackground:null,end:null,event:null,exponent:he,externalResourcesRequired:null,fill:null,fillOpacity:he,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fa,g2:fa,glyphName:fa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:he,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:he,horizOriginX:he,horizOriginY:he,id:null,ideographic:he,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:he,k:he,k1:he,k2:he,k3:he,k4:he,kernelMatrix:gn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:he,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:he,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:he,overlineThickness:he,paintOrder:null,panose1:null,path:null,pathLength:he,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:he,pointsAtY:he,pointsAtZ:he,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:gn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:gn,rev:gn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:gn,requiredFeatures:gn,requiredFonts:gn,requiredFormats:gn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:he,specularExponent:he,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:he,strikethroughThickness:he,string:null,stroke:null,strokeDashArray:gn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:he,strokeOpacity:he,strokeWidth:null,style:null,surfaceScale:he,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:gn,tabIndex:he,tableValues:null,target:null,targetX:he,targetY:he,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:gn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:he,underlineThickness:he,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:he,values:null,vAlphabetic:he,vMathematical:he,vectorEffect:null,vHanging:he,vIdeographic:he,version:null,vertAdvY:he,vertOriginX:he,vertOriginY:he,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:he,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:VT}),$T=Da({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),YT=Da({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:GT}),KT=Da({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),eI={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},tI=/[A-Z]/g,cS=/-[a-z]/g,nI=/^data[-\w.:]+$/i;function rI(e,t){const r=em(t);let o=t,l=on;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&nI.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(cS,oI);o="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!cS.test(u)){let c=u.replace(tI,iI);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=hg}return new l(o,t)}a(rI,"find");function iI(e){return"-"+e.toLowerCase()}a(iI,"kebab");function oI(e){return e.charAt(1).toUpperCase()}a(oI,"camelcase");const aI=FT([qT,Z6,$T,YT,KT],"html"),mg=FT([qT,J6,$T,YT,KT],"svg");function lI(e){return e.join(" ").trim()}a(lI,"stringify");var ra={},rh,fS;function sI(){if(fS)return rh;fS=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
533
- `,h="/",m="*",y="",b="comment",x="declaration";rh=a(function(w,R){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];R=R||{};var C=1,A=1;function k(ce){var q=ce.match(t);q&&(C+=q.length);var ae=ce.lastIndexOf(p);A=~ae?ce.length-ae:A+ce.length}a(k,"updatePosition");function z(){var ce={line:C,column:A};return function(q){return q.position=new L(ce),$(),q}}a(z,"position");function L(ce){this.start=ce,this.end={line:C,column:A},this.source=R.source}a(L,"Position"),L.prototype.content=w;function N(ce){var q=new Error(R.source+":"+C+":"+A+": "+ce);if(q.reason=ce,q.filename=R.source,q.line=C,q.column=A,q.source=w,!R.silent)throw q}a(N,"error");function j(ce){var q=ce.exec(w);if(q){var ae=q[0];return k(ae),w=w.slice(ae.length),q}}a(j,"match");function $(){j(r)}a($,"whitespace");function W(ce){var q;for(ce=ce||[];q=J();)q!==!1&&ce.push(q);return ce}a(W,"comments");function J(){var ce=z();if(!(h!=w.charAt(0)||m!=w.charAt(1))){for(var q=2;y!=w.charAt(q)&&(m!=w.charAt(q)||h!=w.charAt(q+1));)++q;if(q+=2,y===w.charAt(q-1))return N("End of comment missing");var ae=w.slice(2,q-2);return A+=2,k(ae),w=w.slice(q),A+=2,ce({type:b,comment:ae})}}a(J,"comment");function X(){var ce=z(),q=j(o);if(q){if(J(),!j(l))return N("property missing ':'");var ae=j(u),I=ce({type:x,property:E(q[0].replace(e,y)),value:ae?E(ae[0].replace(e,y)):y});return j(c),I}}a(X,"declaration");function Z(){var ce=[];W(ce);for(var q;q=X();)q!==!1&&(ce.push(q),W(ce));return ce}return a(Z,"declarations"),$(),Z()},"inlineStyleParser");function E(w){return w?w.replace(d,y):y}return a(E,"trim"),rh}a(sI,"requireInlineStyleParser");var dS;function uI(){if(dS)return ra;dS=1;var e=ra&&ra.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ra,"__esModule",{value:!0}),ra.default=r;var t=e(sI());function r(o,l){var u=null;if(!o||typeof o!="string")return u;var c=(0,t.default)(o),d=typeof l=="function";return c.forEach(function(p){if(p.type==="declaration"){var h=p.property,m=p.value;d?l(h,m,p):m&&(u=u||{},u[h]=m)}}),u}return a(r,"StyleToObject"),ra}a(uI,"requireCjs$1");var Il={},pS;function cI(){if(pS)return Il;pS=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,u=a(function(h){return!h||r.test(h)||e.test(h)},"skipCamelCase"),c=a(function(h,m){return m.toUpperCase()},"capitalize"),d=a(function(h,m){return"".concat(m,"-")},"trimHyphen"),p=a(function(h,m){return m===void 0&&(m={}),u(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(l,d):h=h.replace(o,d),h.replace(t,c))},"camelCase");return Il.camelCase=p,Il}a(cI,"requireUtilities");var jl,hS;function fI(){if(hS)return jl;hS=1;var e=jl&&jl.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(uI()),r=cI();function o(l,u){var c={};return!l||typeof l!="string"||(0,t.default)(l,function(d,p){d&&p&&(c[(0,r.camelCase)(d,u)]=p)}),c}return a(o,"StyleToJS"),o.default=o,jl=o,jl}a(fI,"requireCjs");var dI=fI();const pI=Vr(dI),QT=XT("end"),gg=XT("start");function XT(e){return t;function t(r){const o=r&&r.position&&r.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}a(XT,"point$2");function hI(e){const t=gg(e),r=QT(e);if(t&&r)return{start:t,end:r}}a(hI,"position$1");function $l(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?mS(e.position):"start"in e||"end"in e?mS(e):"line"in e||"column"in e?rm(e):""}a($l,"stringifyPosition");function rm(e){return gS(e&&e.line)+":"+gS(e&&e.column)}a(rm,"point$1");function mS(e){return rm(e&&e.start)+"-"+rm(e&&e.end)}a(mS,"position");function gS(e){return e&&typeof e=="number"?e:1}a(gS,"index");class qt extends Error{static{a(this,"VFileMessage")}constructor(t,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let l="",u={},c=!1;if(r&&("line"in r&&"column"in r?u={place:r}:"start"in r&&"end"in r?u={place:r}:"type"in r?u={ancestors:[r],place:r.position}:u={...r}),typeof t=="string"?l=t:!u.cause&&t&&(c=!0,l=t.message,u.cause=t),!u.ruleId&&!u.source&&typeof o=="string"){const p=o.indexOf(":");p===-1?u.ruleId=o:(u.source=o.slice(0,p),u.ruleId=o.slice(p+1))}if(!u.place&&u.ancestors&&u.ancestors){const p=u.ancestors[u.ancestors.length-1];p&&(u.place=p.position)}const d=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=d?d.line:void 0,this.name=$l(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qt.prototype.file="";qt.prototype.name="";qt.prototype.reason="";qt.prototype.message="";qt.prototype.stack="";qt.prototype.column=void 0;qt.prototype.line=void 0;qt.prototype.ancestors=void 0;qt.prototype.cause=void 0;qt.prototype.fatal=void 0;qt.prototype.place=void 0;qt.prototype.ruleId=void 0;qt.prototype.source=void 0;const yg={}.hasOwnProperty,mI=new Map,gI=/[A-Z]/g,yI=new Set(["table","tbody","thead","tfoot","tr"]),vI=new Set(["td","th"]),WT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function bI(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let o;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=OI(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=RI(r,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?mg:aI,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},u=ZT(l,e,void 0);return u&&typeof u!="string"?u:l.create(e,l.Fragment,{children:u||void 0},void 0)}a(bI,"toJsxRuntime");function ZT(e,t,r){if(t.type==="element")return SI(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return xI(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return EI(e,t,r);if(t.type==="mdxjsEsm")return wI(e,t);if(t.type==="root")return CI(e,t,r);if(t.type==="text")return TI(e,t)}a(ZT,"one$1");function SI(e,t,r){const o=e.schema;let l=o;t.tagName.toLowerCase()==="svg"&&o.space==="html"&&(l=mg,e.schema=l),e.ancestors.push(t);const u=eR(e,t.tagName,!1),c=AI(e,t);let d=bg(e,t);return yI.has(t.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!X6(p):!0})),JT(e,c,u,t),vg(c,d),e.ancestors.pop(),e.schema=o,e.create(t,u,c,r)}a(SI,"element$1");function xI(e,t){if(t.data&&t.data.estree&&e.evaluater){const o=t.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}os(e,t.position)}a(xI,"mdxExpression");function wI(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);os(e,t.position)}a(wI,"mdxEsm");function EI(e,t,r){const o=e.schema;let l=o;t.name==="svg"&&o.space==="html"&&(l=mg,e.schema=l),e.ancestors.push(t);const u=t.name===null?e.Fragment:eR(e,t.name,!0),c=MI(e,t),d=bg(e,t);return JT(e,c,u,t),vg(c,d),e.ancestors.pop(),e.schema=o,e.create(t,u,c,r)}a(EI,"mdxJsxElement");function CI(e,t,r){const o={};return vg(o,bg(e,t)),e.create(t,e.Fragment,o,r)}a(CI,"root$1");function TI(e,t){return t.value}a(TI,"text$3");function JT(e,t,r,o){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=o)}a(JT,"addNode");function vg(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}a(vg,"addChildren");function RI(e,t,r){return o;function o(l,u,c,d){const h=Array.isArray(c.children)?r:t;return d?h(u,c,d):h(u,c)}}a(RI,"productionCreate");function OI(e,t){return r;function r(o,l,u,c){const d=Array.isArray(u.children),p=gg(o);return t(l,u,c,d,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}a(OI,"developmentCreate");function AI(e,t){const r={};let o,l;for(l in t.properties)if(l!=="children"&&yg.call(t.properties,l)){const u=_I(e,l,t.properties[l]);if(u){const[c,d]=u;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&vI.has(t.tagName)?o=d:r[c]=d}}if(o){const u=r.style||(r.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}a(AI,"createElementProps");function MI(e,t){const r={};for(const o of t.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){const u=o.data.estree.body[0];u.type;const c=u.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else os(e,t.position);else{const l=o.name;let u;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){const d=o.value.data.estree.body[0];d.type,u=e.evaluater.evaluateExpression(d.expression)}else os(e,t.position);else u=o.value===null?!0:o.value;r[l]=u}return r}a(MI,"createJsxElementProps");function bg(e,t){const r=[];let o=-1;const l=e.passKeys?new Map:mI;for(;++o<t.children.length;){const u=t.children[o];let c;if(e.passKeys){const p=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(p){const h=l.get(p)||0;c=p+"-"+h,l.set(p,h+1)}}const d=ZT(e,u,c);d!==void 0&&r.push(d)}return r}a(bg,"createChildren");function _I(e,t,r){const o=rI(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?G6(r):lI(r)),o.property==="style"){let l=typeof r=="object"?r:kI(e,String(r));return e.stylePropertyNameCase==="css"&&(l=DI(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&o.space?eI[o.property]||o.property:o.attribute,r]}}a(_I,"createProperty");function kI(e,t){try{return pI(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const o=r,l=new qt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=WT+"#cannot-parse-style-attribute",l}}a(kI,"parseStyle");function eR(e,t,r){let o;if(!r)o={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let u=-1,c;for(;++u<l.length;){const d=lS(l[u])?{type:"Identifier",name:l[u]}:{type:"Literal",value:l[u]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(u&&d.type==="Literal"),optional:!1}:d}o=c}else o=lS(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(o.type==="Literal"){const l=o.value;return yg.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(o);os(e)}a(eR,"findComponentFromName");function os(e,t){const r=new qt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=WT+"#cannot-handle-mdx-estrees-without-createevaluater",r}a(os,"crashEstree");function DI(e){const t={};let r;for(r in e)yg.call(e,r)&&(t[NI(r)]=e[r]);return t}a(DI,"transformStylesToCssCasing");function NI(e){let t=e.replace(gI,PI);return t.slice(0,3)==="ms-"&&(t="-"+t),t}a(NI,"transformStyleToCssCasing");function PI(e){return"-"+e.toLowerCase()}a(PI,"toDash");const ih={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},LI={};function zI(e,t){const r=LI,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return tR(e,o,l)}a(zI,"toString$1");function tR(e,t,r){if(II(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return yS(e.children,t,r)}return Array.isArray(e)?yS(e,t,r):""}a(tR,"one");function yS(e,t,r){const o=[];let l=-1;for(;++l<e.length;)o[l]=tR(e[l],t,r);return o.join("")}a(yS,"all");function II(e){return!!(e&&typeof e=="object")}a(II,"node");const vS=document.createElement("i");function Sg(e){const t="&"+e+";";vS.innerHTML=t;const r=vS.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}a(Sg,"decodeNamedCharacterReference");function gr(e,t,r,o){const l=e.length;let u=0,c;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,r=r>0?r:0,o.length<1e4)c=Array.from(o),c.unshift(t,r),e.splice(...c);else for(r&&e.splice(t,r);u<o.length;)c=o.slice(u,u+1e4),c.unshift(t,0),e.splice(...c),u+=1e4,t+=1e4}a(gr,"splice");function Nn(e,t){return e.length>0?(gr(e,e.length,0,t),e):t}a(Nn,"push");const bS={}.hasOwnProperty;function jI(e){const t={};let r=-1;for(;++r<e.length;)UI(t,e[r]);return t}a(jI,"combineExtensions");function UI(e,t){let r;for(r in t){const l=(bS.call(e,r)?e[r]:void 0)||(e[r]={}),u=t[r];let c;if(u)for(c in u){bS.call(l,c)||(l[c]=[]);const d=u[c];BI(l[c],Array.isArray(d)?d:d?[d]:[])}}}a(UI,"syntaxExtension");function BI(e,t){let r=-1;const o=[];for(;++r<t.length;)(t[r].add==="after"?e:o).push(t[r]);gr(e,0,0,o)}a(BI,"constructs");function nR(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}a(nR,"decodeNumericCharacterReference");function da(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}a(da,"normalizeIdentifier");const sr=Oi(/[A-Za-z]/),bn=Oi(/[\dA-Za-z]/),HI=Oi(/[#-'*+\--9=?A-Z^-~]/);function im(e){return e!==null&&(e<32||e===127)}a(im,"asciiControl");const om=Oi(/\d/),FI=Oi(/[\dA-Fa-f]/),qI=Oi(/[!-/:-@[-`{-~]/);function Ne(e){return e!==null&&e<-2}a(Ne,"markdownLineEnding");function rn(e){return e!==null&&(e<0||e===32)}a(rn,"markdownLineEndingOrSpace");function We(e){return e===-2||e===-1||e===32}a(We,"markdownSpace");const VI=Oi(/\p{P}|\p{S}/u),GI=Oi(/\s/);function Oi(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}a(Oi,"regexCheck");function Na(e){const t=[];let r=-1,o=0,l=0;for(;++r<e.length;){const u=e.charCodeAt(r);let c="";if(u===37&&bn(e.charCodeAt(r+1))&&bn(e.charCodeAt(r+2)))l=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const d=e.charCodeAt(r+1);u<56320&&d>56319&&d<57344?(c=String.fromCharCode(u,d),l=1):c="�"}else c=String.fromCharCode(u);c&&(t.push(e.slice(o,r),encodeURIComponent(c)),o=r+l+1,c=""),l&&(r+=l,l=0)}return t.join("")+e.slice(o)}a(Na,"normalizeUri");function st(e,t,r,o){const l=o?o-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(p){return We(p)?(e.enter(r),d(p)):t(p)}function d(p){return We(p)&&u++<l?(e.consume(p),d):(e.exit(r),t(p))}}a(st,"factorySpace");const $I={tokenize:YI};function YI(e){const t=e.attempt(this.parser.constructs.contentInitial,o,l);let r;return t;function o(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),st(e,t,"linePrefix")}function l(d){return e.enter("paragraph"),u(d)}function u(d){const p=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Ne(d)?(e.consume(d),e.exit("chunkText"),u):(e.consume(d),c)}}a(YI,"initializeContent");const KI={tokenize:QI},SS={tokenize:XI};function QI(e){const t=this,r=[];let o=0,l,u,c;return d;function d(k){if(o<r.length){const z=r[o];return t.containerState=z[1],e.attempt(z[0].continuation,p,h)(k)}return h(k)}function p(k){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&A();const z=t.events.length;let L=z,N;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){N=t.events[L][1].end;break}C(o);let j=z;for(;j<t.events.length;)t.events[j][1].end={...N},j++;return gr(t.events,L+1,0,t.events.slice(z)),t.events.length=j,h(k)}return d(k)}function h(k){if(o===r.length){if(!l)return b(k);if(l.currentConstruct&&l.currentConstruct.concrete)return E(k);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(SS,m,y)(k)}function m(k){return l&&A(),C(o),b(k)}function y(k){return t.parser.lazy[t.now().line]=o!==r.length,c=t.now().offset,E(k)}function b(k){return t.containerState={},e.attempt(SS,x,E)(k)}function x(k){return o++,r.push([t.currentConstruct,t.containerState]),b(k)}function E(k){if(k===null){l&&A(),C(0),e.consume(k);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:u}),w(k)}function w(k){if(k===null){R(e.exit("chunkFlow"),!0),C(0),e.consume(k);return}return Ne(k)?(e.consume(k),R(e.exit("chunkFlow")),o=0,t.interrupt=void 0,d):(e.consume(k),w)}function R(k,z){const L=t.sliceStream(k);if(z&&L.push(null),k.previous=u,u&&(u.next=k),u=k,l.defineSkip(k.start),l.write(L),t.parser.lazy[k.start.line]){let N=l.events.length;for(;N--;)if(l.events[N][1].start.offset<c&&(!l.events[N][1].end||l.events[N][1].end.offset>c))return;const j=t.events.length;let $=j,W,J;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(W){J=t.events[$][1].end;break}W=!0}for(C(o),N=j;N<t.events.length;)t.events[N][1].end={...J},N++;gr(t.events,$+1,0,t.events.slice(j)),t.events.length=N}}function C(k){let z=r.length;for(;z-- >k;){const L=r[z];t.containerState=L[1],L[0].exit.call(t,e)}r.length=k}function A(){l.write([null]),u=void 0,l=void 0,t.containerState._closeFlow=void 0}}a(QI,"initializeDocument");function XI(e,t,r){return st(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}a(XI,"tokenizeContainer");function xS(e){if(e===null||rn(e)||GI(e))return 1;if(VI(e))return 2}a(xS,"classifyCharacter");function xg(e,t,r){const o=[];let l=-1;for(;++l<e.length;){const u=e[l].resolveAll;u&&!o.includes(u)&&(t=u(t,r),o.push(u))}return t}a(xg,"resolveAll");const am={name:"attention",resolveAll:WI,tokenize:ZI};function WI(e,t){let r=-1,o,l,u,c,d,p,h,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;p=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const y={...e[o][1].end},b={...e[r][1].start};wS(y,-p),wS(b,p),c={type:p>1?"strongSequence":"emphasisSequence",start:y,end:{...e[o][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:b},u={type:p>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[r][1].start}},l={type:p>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[o][1].end={...c.start},e[r][1].start={...d.end},h=[],e[o][1].end.offset-e[o][1].start.offset&&(h=Nn(h,[["enter",e[o][1],t],["exit",e[o][1],t]])),h=Nn(h,[["enter",l,t],["enter",c,t],["exit",c,t],["enter",u,t]]),h=Nn(h,xg(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),h=Nn(h,[["exit",u,t],["enter",d,t],["exit",d,t],["exit",l,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,h=Nn(h,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,gr(e,o-1,r-o+3,h),r=o+h.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}a(WI,"resolveAllAttention");function ZI(e,t){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,l=xS(o);let u;return c;function c(p){return u=p,e.enter("attentionSequence"),d(p)}function d(p){if(p===u)return e.consume(p),d;const h=e.exit("attentionSequence"),m=xS(p),y=!m||m===2&&l||r.includes(p),b=!l||l===2&&m||r.includes(o);return h._open=!!(u===42?y:y&&(l||!b)),h._close=!!(u===42?b:b&&(m||!y)),t(p)}}a(ZI,"tokenizeAttention");function wS(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}a(wS,"movePoint");const JI={name:"autolink",tokenize:e5};function e5(e,t,r){let o=0;return l;function l(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(x){return sr(x)?(e.consume(x),c):x===64?r(x):h(x)}function c(x){return x===43||x===45||x===46||bn(x)?(o=1,d(x)):h(x)}function d(x){return x===58?(e.consume(x),o=0,p):(x===43||x===45||x===46||bn(x))&&o++<32?(e.consume(x),d):(o=0,h(x))}function p(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):x===null||x===32||x===60||im(x)?r(x):(e.consume(x),p)}function h(x){return x===64?(e.consume(x),m):HI(x)?(e.consume(x),h):r(x)}function m(x){return bn(x)?y(x):r(x)}function y(x){return x===46?(e.consume(x),o=0,m):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):b(x)}function b(x){if((x===45||bn(x))&&o++<63){const E=x===45?b:y;return e.consume(x),E}return r(x)}}a(e5,"tokenizeAutolink");const rf={partial:!0,tokenize:t5};function t5(e,t,r){return o;function o(u){return We(u)?st(e,l,"linePrefix")(u):l(u)}function l(u){return u===null||Ne(u)?t(u):r(u)}}a(t5,"tokenizeBlankLine");const rR={continuation:{tokenize:r5},exit:i5,name:"blockQuote",tokenize:n5};function n5(e,t,r){const o=this;return l;function l(c){if(c===62){const d=o.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return r(c)}function u(c){return We(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}a(n5,"tokenizeBlockQuoteStart");function r5(e,t,r){const o=this;return l;function l(c){return We(c)?st(e,u,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(rR,t,r)(c)}}a(r5,"tokenizeBlockQuoteContinuation");function i5(e){e.exit("blockQuote")}a(i5,"exit");const iR={name:"characterEscape",tokenize:o5};function o5(e,t,r){return o;function o(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),l}function l(u){return qI(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(u)}}a(o5,"tokenizeCharacterEscape");const oR={name:"characterReference",tokenize:a5};function a5(e,t,r){const o=this;let l=0,u,c;return d;function d(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),p}function p(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),u=31,c=bn,m(y))}function h(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=FI,m):(e.enter("characterReferenceValue"),u=7,c=om,m(y))}function m(y){if(y===59&&l){const b=e.exit("characterReferenceValue");return c===bn&&!Sg(o.sliceSerialize(b))?r(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(y)&&l++<u?(e.consume(y),m):r(y)}}a(a5,"tokenizeCharacterReference");const ES={partial:!0,tokenize:s5},CS={concrete:!0,name:"codeFenced",tokenize:l5};function l5(e,t,r){const o=this,l={partial:!0,tokenize:L};let u=0,c=0,d;return p;function p(N){return h(N)}function h(N){const j=o.events[o.events.length-1];return u=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,d=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(N)}function m(N){return N===d?(c++,e.consume(N),m):c<3?r(N):(e.exit("codeFencedFenceSequence"),We(N)?st(e,y,"whitespace")(N):y(N))}function y(N){return N===null||Ne(N)?(e.exit("codeFencedFence"),o.interrupt?t(N):e.check(ES,w,z)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(N))}function b(N){return N===null||Ne(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(N)):We(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),st(e,x,"whitespace")(N)):N===96&&N===d?r(N):(e.consume(N),b)}function x(N){return N===null||Ne(N)?y(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(N))}function E(N){return N===null||Ne(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(N)):N===96&&N===d?r(N):(e.consume(N),E)}function w(N){return e.attempt(l,z,R)(N)}function R(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),C}function C(N){return u>0&&We(N)?st(e,A,"linePrefix",u+1)(N):A(N)}function A(N){return N===null||Ne(N)?e.check(ES,w,z)(N):(e.enter("codeFlowValue"),k(N))}function k(N){return N===null||Ne(N)?(e.exit("codeFlowValue"),A(N)):(e.consume(N),k)}function z(N){return e.exit("codeFenced"),t(N)}function L(N,j,$){let W=0;return J;function J(ae){return N.enter("lineEnding"),N.consume(ae),N.exit("lineEnding"),X}function X(ae){return N.enter("codeFencedFence"),We(ae)?st(N,Z,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ae):Z(ae)}function Z(ae){return ae===d?(N.enter("codeFencedFenceSequence"),ce(ae)):$(ae)}function ce(ae){return ae===d?(W++,N.consume(ae),ce):W>=c?(N.exit("codeFencedFenceSequence"),We(ae)?st(N,q,"whitespace")(ae):q(ae)):$(ae)}function q(ae){return ae===null||Ne(ae)?(N.exit("codeFencedFence"),j(ae)):$(ae)}}}a(l5,"tokenizeCodeFenced");function s5(e,t,r){const o=this;return l;function l(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return o.parser.lazy[o.now().line]?r(c):t(c)}}a(s5,"tokenizeNonLazyContinuation");const oh={name:"codeIndented",tokenize:c5},u5={partial:!0,tokenize:f5};function c5(e,t,r){const o=this;return l;function l(h){return e.enter("codeIndented"),st(e,u,"linePrefix",5)(h)}function u(h){const m=o.events[o.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(h):r(h)}function c(h){return h===null?p(h):Ne(h)?e.attempt(u5,c,p)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||Ne(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),d)}function p(h){return e.exit("codeIndented"),t(h)}}a(c5,"tokenizeCodeIndented");function f5(e,t,r){const o=this;return l;function l(c){return o.parser.lazy[o.now().line]?r(c):Ne(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):st(e,u,"linePrefix",5)(c)}function u(c){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):Ne(c)?l(c):r(c)}}a(f5,"tokenizeFurtherStart");const d5={name:"codeText",previous:h5,resolve:p5,tokenize:m5};function p5(e){let t=e.length-4,r=3,o,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o<t;)if(e[o][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(o=r-1,t++;++o<=t;)l===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(l=o):(o===t||e[o][1].type==="lineEnding")&&(e[l][1].type="codeTextData",o!==l+2&&(e[l][1].end=e[o-1][1].end,e.splice(l+2,o-l-2),t-=o-l-2,o=l+2),l=void 0);return e}a(p5,"resolveCodeText");function h5(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}a(h5,"previous");function m5(e,t,r){let o=0,l,u;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),d(y)}function d(y){return y===96?(e.consume(y),o++,d):(e.exit("codeTextSequence"),p(y))}function p(y){return y===null?r(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),p):y===96?(u=e.enter("codeTextSequence"),l=0,m(y)):Ne(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):(e.enter("codeTextData"),h(y))}function h(y){return y===null||y===32||y===96||Ne(y)?(e.exit("codeTextData"),p(y)):(e.consume(y),h)}function m(y){return y===96?(e.consume(y),l++,m):l===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(y)):(u.type="codeTextData",h(y))}}a(m5,"tokenizeCodeText");class g5{static{a(this,"SpliceBuffer")}constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const o=r??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(t,o):t>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(t,r,o){const l=r||0;this.setCursor(Math.trunc(t));const u=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return o&&Ul(this.left,o),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ul(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ul(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Ul(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ul(this.left,r.reverse())}}}function Ul(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}a(Ul,"chunkedPush");function aR(e){const t={};let r=-1,o,l,u,c,d,p,h;const m=new g5(e);for(;++r<m.length;){for(;r in t;)r=t[r];if(o=m.get(r),r&&o[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(p=o[1]._tokenizer.events,u=0,u<p.length&&p[u][1].type==="lineEndingBlank"&&(u+=2),u<p.length&&p[u][1].type==="content"))for(;++u<p.length&&p[u][1].type!=="content";)p[u][1].type==="chunkText"&&(p[u][1]._isInFirstContentOfListItem=!0,u++);if(o[0]==="enter")o[1].contentType&&(Object.assign(t,y5(m,r)),r=t[r],h=!0);else if(o[1]._container){for(u=r,l=void 0;u--;)if(c=m.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(l&&(m.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;l&&(o[1].end={...m.get(l)[1].start},d=m.slice(l,r),d.unshift(o),m.splice(l,r-l+1,d))}}return gr(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}a(aR,"subtokenize");function y5(e,t){const r=e.get(t)[1],o=e.get(t)[2];let l=t-1;const u=[];let c=r._tokenizer;c||(c=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,p=[],h={};let m,y,b=-1,x=r,E=0,w=0;const R=[w];for(;x;){for(;e.get(++l)[1]!==x;);u.push(l),x._tokenizer||(m=o.sliceStream(x),x.next||m.push(null),y&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=x,x=x.next}for(x=r;++b<d.length;)d[b][0]==="exit"&&d[b-1][0]==="enter"&&d[b][1].type===d[b-1][1].type&&d[b][1].start.line!==d[b][1].end.line&&(w=b+1,R.push(w),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):R.pop(),b=R.length;b--;){const C=d.slice(R[b],R[b+1]),A=u.pop();p.push([A,A+C.length-1]),e.splice(A,2,C)}for(p.reverse(),b=-1;++b<p.length;)h[E+p[b][0]]=E+p[b][1],E+=p[b][1]-p[b][0]-1;return h}a(y5,"subcontent");const v5={resolve:S5,tokenize:x5},b5={partial:!0,tokenize:w5};function S5(e){return aR(e),e}a(S5,"resolveContent");function x5(e,t){let r;return o;function o(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?u(d):Ne(d)?e.check(b5,c,u)(d):(e.consume(d),l)}function u(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}a(x5,"tokenizeContent");function w5(e,t,r){const o=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),st(e,u,"linePrefix")}function u(c){if(c===null||Ne(c))return r(c);const d=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(o.parser.constructs.flow,r,t)(c)}}a(w5,"tokenizeContinuation");function lR(e,t,r,o,l,u,c,d,p){const h=p||Number.POSITIVE_INFINITY;let m=0;return y;function y(C){return C===60?(e.enter(o),e.enter(l),e.enter(u),e.consume(C),e.exit(u),b):C===null||C===32||C===41||im(C)?r(C):(e.enter(o),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),w(C))}function b(C){return C===62?(e.enter(u),e.consume(C),e.exit(u),e.exit(l),e.exit(o),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),x(C))}function x(C){return C===62?(e.exit("chunkString"),e.exit(d),b(C)):C===null||C===60||Ne(C)?r(C):(e.consume(C),C===92?E:x)}function E(C){return C===60||C===62||C===92?(e.consume(C),x):x(C)}function w(C){return!m&&(C===null||C===41||rn(C))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(o),t(C)):m<h&&C===40?(e.consume(C),m++,w):C===41?(e.consume(C),m--,w):C===null||C===32||C===40||im(C)?r(C):(e.consume(C),C===92?R:w)}function R(C){return C===40||C===41||C===92?(e.consume(C),w):w(C)}}a(lR,"factoryDestination");function sR(e,t,r,o,l,u){const c=this;let d=0,p;return h;function h(x){return e.enter(o),e.enter(l),e.consume(x),e.exit(l),e.enter(u),m}function m(x){return d>999||x===null||x===91||x===93&&!p||x===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(x):x===93?(e.exit(u),e.enter(l),e.consume(x),e.exit(l),e.exit(o),t):Ne(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===null||x===91||x===93||Ne(x)||d++>999?(e.exit("chunkString"),m(x)):(e.consume(x),p||(p=!We(x)),x===92?b:y)}function b(x){return x===91||x===92||x===93?(e.consume(x),d++,y):y(x)}}a(sR,"factoryLabel");function uR(e,t,r,o,l,u){let c;return d;function d(b){return b===34||b===39||b===40?(e.enter(o),e.enter(l),e.consume(b),e.exit(l),c=b===40?41:b,p):r(b)}function p(b){return b===c?(e.enter(l),e.consume(b),e.exit(l),e.exit(o),t):(e.enter(u),h(b))}function h(b){return b===c?(e.exit(u),p(c)):b===null?r(b):Ne(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),st(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===c||b===null||Ne(b)?(e.exit("chunkString"),h(b)):(e.consume(b),b===92?y:m)}function y(b){return b===c||b===92?(e.consume(b),m):m(b)}}a(uR,"factoryTitle");function Yl(e,t){let r;return o;function o(l){return Ne(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,o):We(l)?st(e,o,r?"linePrefix":"lineSuffix")(l):t(l)}}a(Yl,"factoryWhitespace");const E5={name:"definition",tokenize:T5},C5={partial:!0,tokenize:R5};function T5(e,t,r){const o=this;let l;return u;function u(x){return e.enter("definition"),c(x)}function c(x){return sR.call(o,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return l=da(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),p):r(x)}function p(x){return rn(x)?Yl(e,h)(x):h(x)}function h(x){return lR(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function m(x){return e.attempt(C5,y,y)(x)}function y(x){return We(x)?st(e,b,"whitespace")(x):b(x)}function b(x){return x===null||Ne(x)?(e.exit("definition"),o.parser.defined.push(l),t(x)):r(x)}}a(T5,"tokenizeDefinition");function R5(e,t,r){return o;function o(d){return rn(d)?Yl(e,l)(d):r(d)}function l(d){return uR(e,u,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function u(d){return We(d)?st(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Ne(d)?t(d):r(d)}}a(R5,"tokenizeTitleBefore");const O5={name:"hardBreakEscape",tokenize:A5};function A5(e,t,r){return o;function o(u){return e.enter("hardBreakEscape"),e.consume(u),l}function l(u){return Ne(u)?(e.exit("hardBreakEscape"),t(u)):r(u)}}a(A5,"tokenizeHardBreakEscape");const M5={name:"headingAtx",resolve:_5,tokenize:k5};function _5(e,t){let r=e.length-2,o=3,l,u;return e[o][1].type==="whitespace"&&(o+=2),r-2>o&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&e[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(l={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},u={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},gr(e,o,r-o+1,[["enter",l,t],["enter",u,t],["exit",u,t],["exit",l,t]])),e}a(_5,"resolveHeadingAtx");function k5(e,t,r){let o=0;return l;function l(m){return e.enter("atxHeading"),u(m)}function u(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&o++<6?(e.consume(m),c):m===null||rn(m)?(e.exit("atxHeadingSequence"),d(m)):r(m)}function d(m){return m===35?(e.enter("atxHeadingSequence"),p(m)):m===null||Ne(m)?(e.exit("atxHeading"),t(m)):We(m)?st(e,d,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function p(m){return m===35?(e.consume(m),p):(e.exit("atxHeadingSequence"),d(m))}function h(m){return m===null||m===35||rn(m)?(e.exit("atxHeadingText"),d(m)):(e.consume(m),h)}}a(k5,"tokenizeHeadingAtx");const D5=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],TS=["pre","script","style","textarea"],N5={concrete:!0,name:"htmlFlow",resolveTo:z5,tokenize:I5},P5={partial:!0,tokenize:U5},L5={partial:!0,tokenize:j5};function z5(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}a(z5,"resolveToHtmlFlow");function I5(e,t,r){const o=this;let l,u,c,d,p;return h;function h(M){return m(M)}function m(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),y}function y(M){return M===33?(e.consume(M),b):M===47?(e.consume(M),u=!0,w):M===63?(e.consume(M),l=3,o.interrupt?t:O):sr(M)?(e.consume(M),c=String.fromCharCode(M),R):r(M)}function b(M){return M===45?(e.consume(M),l=2,x):M===91?(e.consume(M),l=5,d=0,E):sr(M)?(e.consume(M),l=4,o.interrupt?t:O):r(M)}function x(M){return M===45?(e.consume(M),o.interrupt?t:O):r(M)}function E(M){const ne="CDATA[";return M===ne.charCodeAt(d++)?(e.consume(M),d===ne.length?o.interrupt?t:Z:E):r(M)}function w(M){return sr(M)?(e.consume(M),c=String.fromCharCode(M),R):r(M)}function R(M){if(M===null||M===47||M===62||rn(M)){const ne=M===47,me=c.toLowerCase();return!ne&&!u&&TS.includes(me)?(l=1,o.interrupt?t(M):Z(M)):D5.includes(c.toLowerCase())?(l=6,ne?(e.consume(M),C):o.interrupt?t(M):Z(M)):(l=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(M):u?A(M):k(M))}return M===45||bn(M)?(e.consume(M),c+=String.fromCharCode(M),R):r(M)}function C(M){return M===62?(e.consume(M),o.interrupt?t:Z):r(M)}function A(M){return We(M)?(e.consume(M),A):J(M)}function k(M){return M===47?(e.consume(M),J):M===58||M===95||sr(M)?(e.consume(M),z):We(M)?(e.consume(M),k):J(M)}function z(M){return M===45||M===46||M===58||M===95||bn(M)?(e.consume(M),z):L(M)}function L(M){return M===61?(e.consume(M),N):We(M)?(e.consume(M),L):k(M)}function N(M){return M===null||M===60||M===61||M===62||M===96?r(M):M===34||M===39?(e.consume(M),p=M,j):We(M)?(e.consume(M),N):$(M)}function j(M){return M===p?(e.consume(M),p=null,W):M===null||Ne(M)?r(M):(e.consume(M),j)}function $(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||rn(M)?L(M):(e.consume(M),$)}function W(M){return M===47||M===62||We(M)?k(M):r(M)}function J(M){return M===62?(e.consume(M),X):r(M)}function X(M){return M===null||Ne(M)?Z(M):We(M)?(e.consume(M),X):r(M)}function Z(M){return M===45&&l===2?(e.consume(M),I):M===60&&l===1?(e.consume(M),Q):M===62&&l===4?(e.consume(M),Y):M===63&&l===3?(e.consume(M),O):M===93&&l===5?(e.consume(M),se):Ne(M)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(P5,de,ce)(M)):M===null||Ne(M)?(e.exit("htmlFlowData"),ce(M)):(e.consume(M),Z)}function ce(M){return e.check(L5,q,de)(M)}function q(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),ae}function ae(M){return M===null||Ne(M)?ce(M):(e.enter("htmlFlowData"),Z(M))}function I(M){return M===45?(e.consume(M),O):Z(M)}function Q(M){return M===47?(e.consume(M),c="",te):Z(M)}function te(M){if(M===62){const ne=c.toLowerCase();return TS.includes(ne)?(e.consume(M),Y):Z(M)}return sr(M)&&c.length<8?(e.consume(M),c+=String.fromCharCode(M),te):Z(M)}function se(M){return M===93?(e.consume(M),O):Z(M)}function O(M){return M===62?(e.consume(M),Y):M===45&&l===2?(e.consume(M),O):Z(M)}function Y(M){return M===null||Ne(M)?(e.exit("htmlFlowData"),de(M)):(e.consume(M),Y)}function de(M){return e.exit("htmlFlow"),t(M)}}a(I5,"tokenizeHtmlFlow");function j5(e,t,r){const o=this;return l;function l(c){return Ne(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):r(c)}function u(c){return o.parser.lazy[o.now().line]?r(c):t(c)}}a(j5,"tokenizeNonLazyContinuationStart");function U5(e,t,r){return o;function o(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(rf,t,r)}}a(U5,"tokenizeBlankLineBefore");const B5={name:"htmlText",tokenize:H5};function H5(e,t,r){const o=this;let l,u,c;return d;function d(O){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(O),p}function p(O){return O===33?(e.consume(O),h):O===47?(e.consume(O),L):O===63?(e.consume(O),k):sr(O)?(e.consume(O),$):r(O)}function h(O){return O===45?(e.consume(O),m):O===91?(e.consume(O),u=0,E):sr(O)?(e.consume(O),A):r(O)}function m(O){return O===45?(e.consume(O),x):r(O)}function y(O){return O===null?r(O):O===45?(e.consume(O),b):Ne(O)?(c=y,Q(O)):(e.consume(O),y)}function b(O){return O===45?(e.consume(O),x):y(O)}function x(O){return O===62?I(O):O===45?b(O):y(O)}function E(O){const Y="CDATA[";return O===Y.charCodeAt(u++)?(e.consume(O),u===Y.length?w:E):r(O)}function w(O){return O===null?r(O):O===93?(e.consume(O),R):Ne(O)?(c=w,Q(O)):(e.consume(O),w)}function R(O){return O===93?(e.consume(O),C):w(O)}function C(O){return O===62?I(O):O===93?(e.consume(O),C):w(O)}function A(O){return O===null||O===62?I(O):Ne(O)?(c=A,Q(O)):(e.consume(O),A)}function k(O){return O===null?r(O):O===63?(e.consume(O),z):Ne(O)?(c=k,Q(O)):(e.consume(O),k)}function z(O){return O===62?I(O):k(O)}function L(O){return sr(O)?(e.consume(O),N):r(O)}function N(O){return O===45||bn(O)?(e.consume(O),N):j(O)}function j(O){return Ne(O)?(c=j,Q(O)):We(O)?(e.consume(O),j):I(O)}function $(O){return O===45||bn(O)?(e.consume(O),$):O===47||O===62||rn(O)?W(O):r(O)}function W(O){return O===47?(e.consume(O),I):O===58||O===95||sr(O)?(e.consume(O),J):Ne(O)?(c=W,Q(O)):We(O)?(e.consume(O),W):I(O)}function J(O){return O===45||O===46||O===58||O===95||bn(O)?(e.consume(O),J):X(O)}function X(O){return O===61?(e.consume(O),Z):Ne(O)?(c=X,Q(O)):We(O)?(e.consume(O),X):W(O)}function Z(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(e.consume(O),l=O,ce):Ne(O)?(c=Z,Q(O)):We(O)?(e.consume(O),Z):(e.consume(O),q)}function ce(O){return O===l?(e.consume(O),l=void 0,ae):O===null?r(O):Ne(O)?(c=ce,Q(O)):(e.consume(O),ce)}function q(O){return O===null||O===34||O===39||O===60||O===61||O===96?r(O):O===47||O===62||rn(O)?W(O):(e.consume(O),q)}function ae(O){return O===47||O===62||rn(O)?W(O):r(O)}function I(O){return O===62?(e.consume(O),e.exit("htmlTextData"),e.exit("htmlText"),t):r(O)}function Q(O){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),te}function te(O){return We(O)?st(e,se,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):se(O)}function se(O){return e.enter("htmlTextData"),c(O)}}a(H5,"tokenizeHtmlText");const wg={name:"labelEnd",resolveAll:G5,resolveTo:$5,tokenize:Y5},F5={tokenize:K5},q5={tokenize:Q5},V5={tokenize:X5};function G5(e){let t=-1;const r=[];for(;++t<e.length;){const o=e[t][1];if(r.push(e[t]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const l=o.type==="labelImage"?4:2;o.type="data",t+=l}}return e.length!==r.length&&gr(e,0,e.length,r),e}a(G5,"resolveAllLabelEnd");function $5(e,t){let r=e.length,o=0,l,u,c,d;for(;r--;)if(l=e[r][1],u){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(u=r,l.type!=="labelLink")){o=2;break}}else l.type==="labelEnd"&&(c=r);const p={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[u+o+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",p,t],["enter",h,t]],d=Nn(d,e.slice(u+1,u+o+3)),d=Nn(d,[["enter",m,t]]),d=Nn(d,xg(t.parser.constructs.insideSpan.null,e.slice(u+o+4,c-3),t)),d=Nn(d,[["exit",m,t],e[c-2],e[c-1],["exit",h,t]]),d=Nn(d,e.slice(c+1)),d=Nn(d,[["exit",p,t]]),gr(e,u,e.length,d),e}a($5,"resolveToLabelEnd");function Y5(e,t,r){const o=this;let l=o.events.length,u,c;for(;l--;)if((o.events[l][1].type==="labelImage"||o.events[l][1].type==="labelLink")&&!o.events[l][1]._balanced){u=o.events[l][1];break}return d;function d(b){return u?u._inactive?y(b):(c=o.parser.defined.includes(da(o.sliceSerialize({start:u.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),p):r(b)}function p(b){return b===40?e.attempt(F5,m,c?m:y)(b):b===91?e.attempt(q5,m,c?h:y)(b):c?m(b):y(b)}function h(b){return e.attempt(V5,m,y)(b)}function m(b){return t(b)}function y(b){return u._balanced=!0,r(b)}}a(Y5,"tokenizeLabelEnd");function K5(e,t,r){return o;function o(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),l}function l(y){return rn(y)?Yl(e,u)(y):u(y)}function u(y){return y===41?m(y):lR(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return rn(y)?Yl(e,p)(y):m(y)}function d(y){return r(y)}function p(y){return y===34||y===39||y===40?uR(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):m(y)}function h(y){return rn(y)?Yl(e,m)(y):m(y)}function m(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),t):r(y)}}a(K5,"tokenizeResource");function Q5(e,t,r){const o=this;return l;function l(d){return sR.call(o,e,u,c,"reference","referenceMarker","referenceString")(d)}function u(d){return o.parser.defined.includes(da(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function c(d){return r(d)}}a(Q5,"tokenizeReferenceFull");function X5(e,t,r){return o;function o(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),l}function l(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),t):r(u)}}a(X5,"tokenizeReferenceCollapsed");const W5={name:"labelStartImage",resolveAll:wg.resolveAll,tokenize:Z5};function Z5(e,t,r){const o=this;return l;function l(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),u}function u(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):t(d)}}a(Z5,"tokenizeLabelStartImage");const J5={name:"labelStartLink",resolveAll:wg.resolveAll,tokenize:ej};function ej(e,t,r){const o=this;return l;function l(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(c):t(c)}}a(ej,"tokenizeLabelStartLink");const ah={name:"lineEnding",tokenize:tj};function tj(e,t){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),st(e,t,"linePrefix")}}a(tj,"tokenizeLineEnding");const ic={name:"thematicBreak",tokenize:nj};function nj(e,t,r){let o=0,l;return u;function u(h){return e.enter("thematicBreak"),c(h)}function c(h){return l=h,d(h)}function d(h){return h===l?(e.enter("thematicBreakSequence"),p(h)):o>=3&&(h===null||Ne(h))?(e.exit("thematicBreak"),t(h)):r(h)}function p(h){return h===l?(e.consume(h),o++,p):(e.exit("thematicBreakSequence"),We(h)?st(e,d,"whitespace")(h):d(h))}}a(nj,"tokenizeThematicBreak");const tn={continuation:{tokenize:aj},exit:sj,name:"list",tokenize:oj},rj={partial:!0,tokenize:uj},ij={partial:!0,tokenize:lj};function oj(e,t,r){const o=this,l=o.events[o.events.length-1];let u=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return d;function d(x){const E=o.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!o.containerState.marker||x===o.containerState.marker:om(x)){if(o.containerState.type||(o.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(ic,r,h)(x):h(x);if(!o.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(x)}return r(x)}function p(x){return om(x)&&++c<10?(e.consume(x),p):(!o.interrupt||c<2)&&(o.containerState.marker?x===o.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),h(x)):r(x)}function h(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||x,e.check(rf,o.interrupt?r:m,e.attempt(rj,b,y))}function m(x){return o.containerState.initialBlankLine=!0,u++,b(x)}function y(x){return We(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),b):r(x)}function b(x){return o.containerState.size=u+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}a(oj,"tokenizeListStart");function aj(e,t,r){const o=this;return o.containerState._closeFlow=void 0,e.check(rf,l,u);function l(d){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,st(e,t,"listItemIndent",o.containerState.size+1)(d)}a(l,"onBlank");function u(d){return o.containerState.furtherBlankLines||!We(d)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,c(d)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(ij,t,c)(d))}a(u,"notBlank");function c(d){return o.containerState._closeFlow=!0,o.interrupt=void 0,st(e,e.attempt(tn,t,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}a(c,"notInCurrentItem")}a(aj,"tokenizeListContinuation");function lj(e,t,r){const o=this;return st(e,l,"listItemIndent",o.containerState.size+1);function l(u){const c=o.events[o.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===o.containerState.size?t(u):r(u)}}a(lj,"tokenizeIndent");function sj(e){e.exit(this.containerState.type)}a(sj,"tokenizeListEnd");function uj(e,t,r){const o=this;return st(e,l,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(u){const c=o.events[o.events.length-1];return!We(u)&&c&&c[1].type==="listItemPrefixWhitespace"?t(u):r(u)}}a(uj,"tokenizeListItemPrefixWhitespace");const RS={name:"setextUnderline",resolveTo:cj,tokenize:fj};function cj(e,t){let r=e.length,o,l,u;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){o=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!u&&e[r][1].type==="definition"&&(u=r);const c={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",u?(e.splice(l,0,["enter",c,t]),e.splice(u+1,0,["exit",e[o][1],t]),e[o][1].end={...e[u][1].end}):e[o][1]=c,e.push(["exit",c,t]),e}a(cj,"resolveToSetextUnderline");function fj(e,t,r){const o=this;let l;return u;function u(h){let m=o.events.length,y;for(;m--;)if(o.events[m][1].type!=="lineEnding"&&o.events[m][1].type!=="linePrefix"&&o.events[m][1].type!=="content"){y=o.events[m][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||y)?(e.enter("setextHeadingLine"),l=h,c(h)):r(h)}function c(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===l?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),We(h)?st(e,p,"lineSuffix")(h):p(h))}function p(h){return h===null||Ne(h)?(e.exit("setextHeadingLine"),t(h)):r(h)}}a(fj,"tokenizeSetextUnderline");const dj={tokenize:pj};function pj(e){const t=this,r=e.attempt(rf,o,e.attempt(this.parser.constructs.flowInitial,l,st(e,e.attempt(this.parser.constructs.flow,l,e.attempt(v5,l)),"linePrefix")));return r;function o(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function l(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,r}}a(pj,"initializeFlow");const hj={resolveAll:fR()},mj=cR("string"),gj=cR("text");function cR(e){return{resolveAll:fR(e==="text"?yj:void 0),tokenize:t};function t(r){const o=this,l=this.parser.constructs[e],u=r.attempt(l,c,d);return c;function c(m){return h(m)?u(m):d(m)}function d(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),p}function p(m){return h(m)?(r.exit("data"),u(m)):(r.consume(m),p)}function h(m){if(m===null)return!0;const y=l[m];let b=-1;if(y)for(;++b<y.length;){const x=y[b];if(!x.previous||x.previous.call(o,o.previous))return!0}return!1}}}a(cR,"initializeFactory");function fR(e){return t;function t(r,o){let l=-1,u;for(;++l<=r.length;)u===void 0?r[l]&&r[l][1].type==="data"&&(u=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==u+2&&(r[u][1].end=r[l-1][1].end,r.splice(u+2,l-u-2),l=u+2),u=void 0);return e?e(r,o):r}}a(fR,"createResolver");function yj(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const o=e[r-1][1],l=t.sliceStream(o);let u=l.length,c=-1,d=0,p;for(;u--;){const h=l[u];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(h===-2)p=!0,d++;else if(h!==-1){u++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const h={type:r===e.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:o.start._bufferIndex+c,_index:o.start._index+u,line:o.end.line,column:o.end.column-d,offset:o.end.offset-d},end:{...o.end}};o.end={...h.start},o.start.offset===o.end.offset?Object.assign(o,h):(e.splice(r,0,["enter",h,t],["exit",h,t]),r+=2)}r++}return e}a(yj,"resolveAllLineSuffixes");const vj={42:tn,43:tn,45:tn,48:tn,49:tn,50:tn,51:tn,52:tn,53:tn,54:tn,55:tn,56:tn,57:tn,62:rR},bj={91:E5},Sj={[-2]:oh,[-1]:oh,32:oh},xj={35:M5,42:ic,45:[RS,ic],60:N5,61:RS,95:ic,96:CS,126:CS},wj={38:oR,92:iR},Ej={[-5]:ah,[-4]:ah,[-3]:ah,33:W5,38:oR,42:am,60:[JI,B5],91:J5,92:[O5,iR],93:wg,95:am,96:d5},Cj={null:[am,hj]},Tj={null:[42,95]},Rj={null:[]},Oj=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Tj,contentInitial:bj,disable:Rj,document:vj,flow:xj,flowInitial:Sj,insideSpan:Cj,string:wj,text:Ej},Symbol.toStringTag,{value:"Module"}));function Aj(e,t,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},u=[];let c=[],d=[];const p={attempt:j(L),check:j(N),consume:A,enter:k,exit:z,interrupt:j(N,{interrupt:!0})},h={code:null,containerState:{},defineSkip:w,events:[],now:E,parser:e,previous:null,sliceSerialize:b,sliceStream:x,write:y};let m=t.tokenize.call(h,p);return t.resolveAll&&u.push(t),h;function y(X){return c=Nn(c,X),R(),c[c.length-1]!==null?[]:($(t,0),h.events=xg(u,h.events,h),h.events)}a(y,"write");function b(X,Z){return _j(x(X),Z)}a(b,"sliceSerialize");function x(X){return Mj(c,X)}a(x,"sliceStream");function E(){const{_bufferIndex:X,_index:Z,line:ce,column:q,offset:ae}=o;return{_bufferIndex:X,_index:Z,line:ce,column:q,offset:ae}}a(E,"now");function w(X){l[X.line]=X.column,J()}a(w,"defineSkip");function R(){let X;for(;o._index<c.length;){const Z=c[o._index];if(typeof Z=="string")for(X=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===X&&o._bufferIndex<Z.length;)C(Z.charCodeAt(o._bufferIndex));else C(Z)}}a(R,"main");function C(X){m=m(X)}a(C,"go");function A(X){Ne(X)?(o.line++,o.column=1,o.offset+=X===-3?2:1,J()):X!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===c[o._index].length&&(o._bufferIndex=-1,o._index++)),h.previous=X}a(A,"consume");function k(X,Z){const ce=Z||{};return ce.type=X,ce.start=E(),h.events.push(["enter",ce,h]),d.push(ce),ce}a(k,"enter");function z(X){const Z=d.pop();return Z.end=E(),h.events.push(["exit",Z,h]),Z}a(z,"exit");function L(X,Z){$(X,Z.from)}a(L,"onsuccessfulconstruct");function N(X,Z){Z.restore()}a(N,"onsuccessfulcheck");function j(X,Z){return ce;function ce(q,ae,I){let Q,te,se,O;return Array.isArray(q)?de(q):"tokenize"in q?de([q]):Y(q);function Y(oe){return K;function K(fe){const Ce=fe!==null&&oe[fe],Te=fe!==null&&oe.null,Pe=[...Array.isArray(Ce)?Ce:Ce?[Ce]:[],...Array.isArray(Te)?Te:Te?[Te]:[]];return de(Pe)(fe)}}function de(oe){return Q=oe,te=0,oe.length===0?I:M(oe[te])}function M(oe){return K;function K(fe){return O=W(),se=oe,oe.partial||(h.currentConstruct=oe),oe.name&&h.parser.constructs.disable.null.includes(oe.name)?me():oe.tokenize.call(Z?Object.assign(Object.create(h),Z):h,p,ne,me)(fe)}}function ne(oe){return X(se,O),ae}function me(oe){return O.restore(),++te<Q.length?M(Q[te]):I}}}a(j,"constructFactory");function $(X,Z){X.resolveAll&&!u.includes(X)&&u.push(X),X.resolve&&gr(h.events,Z,h.events.length-Z,X.resolve(h.events.slice(Z),h)),X.resolveTo&&(h.events=X.resolveTo(h.events,h))}a($,"addResult");function W(){const X=E(),Z=h.previous,ce=h.currentConstruct,q=h.events.length,ae=Array.from(d);return{from:q,restore:I};function I(){o=X,h.previous=Z,h.currentConstruct=ce,h.events.length=q,d=ae,J()}}a(W,"store");function J(){o.line in l&&o.column<2&&(o.column=l[o.line],o.offset+=l[o.line]-1)}a(J,"accountForPotentialSkip")}a(Aj,"createTokenizer");function Mj(e,t){const r=t.start._index,o=t.start._bufferIndex,l=t.end._index,u=t.end._bufferIndex;let c;if(r===l)c=[e[r].slice(o,u)];else{if(c=e.slice(r,l),o>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(o):c.shift()}u>0&&c.push(e[l].slice(0,u))}return c}a(Mj,"sliceChunks");function _j(e,t){let r=-1;const o=[];let l;for(;++r<e.length;){const u=e[r];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
532
+ `)),t.appendChild(r)}componentDidMount(){const{shouldFocus:e}=this.props;setTimeout(()=>{xe.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e?.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:r,isLastStep:o,locale:l,onClickOrHover:u,size:c,step:d,styles:h}=this.props,p=ar(l.open),m={"aria-label":p,onClick:u,onMouseEnter:u,ref:this.setBeaconRef,title:p};let y;if(e){const b=e;y=S.createElement(b,{continuous:t,index:r,isLastStep:o,size:c,step:d,...m})}else y=S.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:h.beacon,type:"button",...m},S.createElement("span",{style:h.beaconInner}),S.createElement("span",{style:h.beaconOuter}));return y}};function w6({styles:e,...t}){const{color:r,height:o,width:l,...u}=e;return _e.createElement("button",{style:u,type:"button",...t},_e.createElement("svg",{height:typeof o=="number"?`${o}px`:o,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof l=="number"?`${l}px`:l,xmlns:"http://www.w3.org/2000/svg"},_e.createElement("g",null,_e.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}a(w6,"JoyrideTooltipCloseButton");var E6=w6;function C6(e){const{backProps:t,closeProps:r,index:o,isLastStep:l,primaryProps:u,skipProps:c,step:d,tooltipProps:h}=e,{content:p,hideBackButton:m,hideCloseButton:y,hideFooter:b,showSkipButton:x,styles:E,title:w}=d,R={};return R.primary=S.createElement("button",{"data-test-id":"button-primary",style:E.buttonNext,type:"button",...u}),x&&!l&&(R.skip=S.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:E.buttonSkip,type:"button",...c})),!m&&o>0&&(R.back=S.createElement("button",{"data-test-id":"button-back",style:E.buttonBack,type:"button",...t})),R.close=!y&&S.createElement(E6,{"data-test-id":"button-close",styles:E.buttonClose,...r}),S.createElement("div",{key:"JoyrideTooltip","aria-label":ar(w??p),className:"react-joyride__tooltip",style:E.tooltip,...h},S.createElement("div",{style:E.tooltipContainer},w&&S.createElement("h1",{"aria-label":ar(w),style:E.tooltipTitle},w),S.createElement("div",{style:E.tooltipContent},p)),!b&&S.createElement("div",{style:E.tooltipFooter},S.createElement("div",{style:E.tooltipFooterSpacer},R.skip),R.back,R.primary),R.close)}a(C6,"JoyrideTooltipContainer");var T6=C6,R6=class extends S.Component{static{a(this,"JoyrideTooltip")}constructor(){super(...arguments),we(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),we(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),we(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:r}=this.props;if(!t){r.close("button_primary");return}r.next()}),we(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),we(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:r,setTooltipRef:o,size:l,step:u}=this.props,{back:c,close:d,last:h,next:p,nextLabelWithProgress:m,skip:y}=u.locale,b=ar(c),x=ar(d),E=ar(h),w=ar(p),R=ar(y);let C=d,A=x;if(e){if(C=p,A=w,u.showProgress&&!r){const k=ar(m,{step:t+1,steps:l});C=Xp(m,t+1,l),A=k}r&&(C=h,A=E)}return{backProps:{"aria-label":b,children:c,"data-action":"back",onClick:this.handleClickBack,role:"button",title:b},closeProps:{"aria-label":x,children:d,"data-action":"close",onClick:this.handleClickClose,role:"button",title:x},primaryProps:{"aria-label":A,children:C,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:A},skipProps:{"aria-label":R,children:y,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:R},tooltipProps:{"aria-modal":!0,ref:o,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:r,setTooltipRef:o,size:l,step:u}=this.props,{beaconComponent:c,tooltipComponent:d,...h}=u;let p;if(d){const m={...this.getElementsProps(),continuous:e,index:t,isLastStep:r,size:l,step:h,setTooltipRef:o},y=d;p=S.createElement(y,{...m})}else p=S.createElement(T6,{...this.getElementsProps(),continuous:e,index:t,isLastStep:r,size:l,step:u});return p}},O6=class extends S.Component{static{a(this,"JoyrideStep")}constructor(){super(...arguments),we(this,"scope",null),we(this,"tooltip",null),we(this,"handleClickHoverBeacon",e=>{const{step:t,store:r}=this.props;e.type==="mouseenter"&&t.event!=="hover"||r.update({lifecycle:Le.TOOLTIP})}),we(this,"setTooltipRef",e=>{this.tooltip=e}),we(this,"setPopper",(e,t)=>{var r;const{action:o,lifecycle:l,step:u,store:c}=this.props;t==="wrapper"?c.setPopper("beacon",e):c.setPopper("tooltip",e),c.getPopper("beacon")&&(c.getPopper("tooltip")||u.placement==="center")&&l===Le.INIT&&c.update({action:o,lifecycle:Le.READY}),(r=u.floaterProps)!=null&&r.getPopper&&u.floaterProps.getPopper(e,t)}),we(this,"renderTooltip",e=>{const{continuous:t,helpers:r,index:o,size:l,step:u}=this.props;return S.createElement(R6,{continuous:t,helpers:r,index:o,isLastStep:o+1===l,setTooltipRef:this.setTooltipRef,size:l,step:u,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;io({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:r,callback:o,continuous:l,controlled:u,debug:c,helpers:d,index:h,lifecycle:p,shouldScroll:m,status:y,step:b,store:x}=this.props,{changed:E,changedFrom:w}=bc(e,this.props),R=d.info(),C=l&&r!==Ze.CLOSE&&(h>0||r===Ze.PREV),A=E("action")||E("index")||E("lifecycle")||E("status"),k=w("lifecycle",[Le.TOOLTIP,Le.INIT],Le.INIT),z=E("action",[Ze.NEXT,Ze.PREV,Ze.SKIP,Ze.CLOSE]),L=u&&h===e.index;if(z&&(k||L)&&o({...R,index:e.index,lifecycle:Le.COMPLETE,step:e.step,type:qn.STEP_AFTER}),b.placement==="center"&&y===$e.RUNNING&&E("index")&&r!==Ze.START&&p===Le.INIT&&x.update({lifecycle:Le.READY}),A){const N=Ur(b.target),j=!!N;j&&J4(N)?(w("status",$e.READY,$e.RUNNING)||w("lifecycle",Le.INIT,Le.READY))&&o({...R,step:b,type:qn.STEP_BEFORE}):(console.warn(j?"Target not visible":"Target not mounted",b),o({...R,type:qn.TARGET_NOT_FOUND,step:b}),u||x.update({index:h+(r===Ze.PREV?-1:1)}))}w("lifecycle",Le.INIT,Le.READY)&&x.update({lifecycle:tS(b)||C?Le.TOOLTIP:Le.BEACON}),E("index")&&io({title:`step:${p}`,data:[{key:"props",value:this.props}],debug:c}),E("lifecycle",Le.BEACON)&&o({...R,step:b,type:qn.BEACON}),E("lifecycle",Le.TOOLTIP)&&(o({...R,step:b,type:qn.TOOLTIP}),m&&this.tooltip&&(this.scope=new S6(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),w("lifecycle",[Le.TOOLTIP,Le.INIT],Le.INIT)&&((t=this.scope)==null||t.removeScope(),x.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return tS(t)||e===Le.TOOLTIP}render(){const{continuous:e,debug:t,index:r,nonce:o,shouldScroll:l,size:u,step:c}=this.props,d=Ur(c.target);return!RT(c)||!xe.domElement(d)?null:S.createElement("div",{key:`JoyrideStep-${r}`,className:"react-joyride__step"},S.createElement(cg,{...c.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${r}`,open:this.open,placement:c.placement,target:c.target},S.createElement(x6,{beaconComponent:c.beaconComponent,continuous:e,index:r,isLastStep:r+1===u,locale:c.locale,nonce:o,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:l,size:u,step:c,styles:c.styles})))}},AT=class extends S.Component{static{a(this,"Joyride")}constructor(e){super(e),we(this,"helpers"),we(this,"store"),we(this,"callback",c=>{const{callback:d}=this.props;xe.function(d)&&d(c)}),we(this,"handleKeyboard",c=>{const{index:d,lifecycle:h}=this.state,{steps:p}=this.props,m=p[d];h===Le.TOOLTIP&&c.code==="Escape"&&m&&!m.disableCloseOnEsc&&this.store.close("keyboard")}),we(this,"handleClickOverlay",()=>{const{index:c}=this.state,{steps:d}=this.props;na(this.props,d[c]).disableOverlayClose||this.helpers.close("overlay")}),we(this,"syncState",c=>{this.setState(c)});const{debug:t,getHelpers:r,run:o=!0,stepIndex:l}=e;this.store=m6({...e,controlled:o&&xe.number(l)}),this.helpers=this.store.getHelpers();const{addListener:u}=this.store;io({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),u(this.syncState),r&&r(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!vi())return;const{debug:e,disableCloseOnEsc:t,run:r,steps:o}=this.props,{start:l}=this.store;iS(o,e)&&r&&l(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!vi())return;const{action:r,controlled:o,index:l,status:u}=this.state,{debug:c,run:d,stepIndex:h,steps:p}=this.props,{stepIndex:m,steps:y}=e,{reset:b,setSteps:x,start:E,stop:w,update:R}=this.store,{changed:C}=bc(e,this.props),{changed:A,changedFrom:k}=bc(t,this.state),z=na(this.props,p[l]),L=!Gt(y,p),N=xe.number(h)&&C("stepIndex"),j=Ur(z.target);if(L&&(iS(p,c)?x(p):console.warn("Steps are not valid",p)),C("run")&&(d?E(h):w()),N){let J=xe.number(m)&&m<h?Ze.NEXT:Ze.PREV;r===Ze.STOP&&(J=Ze.START),[$e.FINISHED,$e.SKIPPED].includes(u)||R({action:r===Ze.CLOSE?Ze.CLOSE:J,index:h,lifecycle:Le.INIT})}!o&&u===$e.RUNNING&&l===0&&!j&&(this.store.update({index:l+1}),this.callback({...this.state,type:qn.TARGET_NOT_FOUND,step:z}));const $={...this.state,index:l,step:z};if(A("action",[Ze.NEXT,Ze.PREV,Ze.SKIP,Ze.CLOSE])&&A("status",$e.PAUSED)){const J=na(this.props,p[t.index]);this.callback({...$,index:t.index,lifecycle:Le.COMPLETE,step:J,type:qn.STEP_AFTER})}if(A("status",[$e.FINISHED,$e.SKIPPED])){const J=na(this.props,p[t.index]);o||this.callback({...$,index:t.index,lifecycle:Le.COMPLETE,step:J,type:qn.STEP_AFTER}),this.callback({...$,type:qn.TOUR_END,step:J,index:t.index}),b()}else k("status",[$e.IDLE,$e.READY],$e.RUNNING)?this.callback({...$,type:qn.TOUR_START}):(A("status")||A("action",Ze.RESET))&&this.callback({...$,type:qn.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:r,status:o}=this.state,{debug:l,disableScrollParentFix:u=!1,scrollDuration:c,scrollOffset:d=20,scrollToFirstStep:h=!1,steps:p}=this.props,m=na(this.props,p[t]),y=Ur(m.target),b=l6({isFirstStep:t===0,lifecycle:r,previousLifecycle:e.lifecycle,scrollToFirstStep:h,step:m,target:y});if(o===$e.RUNNING&&b){const x=tf(y,u),E=is(y,u);let w=Math.floor(t6(y,d,u))||0;io({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:r},{key:"status",value:o}],debug:l});const R=this.store.getPopper("beacon"),C=this.store.getPopper("tooltip");if(r===Le.BEACON&&R){const{offsets:A,placement:k}=R;!["bottom"].includes(k)&&!x&&(w=Math.floor(A.popper.top-d))}else if(r===Le.TOOLTIP&&C){const{flipped:A,offsets:k,placement:z}=C;["top","right","left"].includes(z)&&!A&&!x?w=Math.floor(k.popper.top-d):w-=m.spotlightPadding}w=w>=0?w:0,o===$e.RUNNING&&n6(w,{element:E,duration:c}).then(()=>{setTimeout(()=>{var A;(A=this.store.getPopper("tooltip"))==null||A.instance.update()},10)})}}render(){if(!vi())return null;const{index:e,lifecycle:t,status:r}=this.state,{continuous:o=!1,debug:l=!1,nonce:u,scrollToFirstStep:c=!1,steps:d}=this.props,h=r===$e.RUNNING,p={};if(h&&d[e]){const m=na(this.props,d[e]);p.step=S.createElement(O6,{...this.state,callback:this.callback,continuous:o,debug:l,helpers:this.helpers,nonce:u,shouldScroll:!m.disableScrolling&&(e!==0||c),step:m,store:this.store}),p.overlay=S.createElement(b6,{id:"react-joyride-portal"},S.createElement(v6,{...m,continuous:o,debug:l,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return S.createElement("div",{className:"react-joyride"},p.step,p.overlay)}};we(AT,"defaultProps",c6);var bB=AT,fg="ToastProvider",[dg,A6,M6]=Fc("Toast"),[MT]=$t("Toast",[M6]),[_6,nf]=MT(fg),_T=a(e=>{const{__scopeToast:t,label:r="Notification",duration:o=5e3,swipeDirection:l="right",swipeThreshold:u=50,children:c}=e,[d,h]=S.useState(null),[p,m]=S.useState(0),y=S.useRef(!1),b=S.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${fg}\`. Expected non-empty \`string\`.`),D.jsx(dg.Provider,{scope:t,children:D.jsx(_6,{scope:t,label:r,duration:o,swipeDirection:l,swipeThreshold:u,toastCount:p,viewport:d,onViewportChange:h,onToastAdd:S.useCallback(()=>m(x=>x+1),[]),onToastRemove:S.useCallback(()=>m(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:b,children:c})})},"ToastProvider");_T.displayName=fg;var kT="ToastViewport",k6=["F8"],Wp="toast.viewportPause",Zp="toast.viewportResume",DT=S.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:o=k6,label:l="Notifications ({hotkey})",...u}=e,c=nf(kT,r),d=A6(r),h=S.useRef(null),p=S.useRef(null),m=S.useRef(null),y=S.useRef(null),b=ze(t,y,c.onViewportChange),x=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=c.toastCount>0;S.useEffect(()=>{const R=a(C=>{o.length!==0&&o.every(k=>C[k]||C.code===k)&&y.current?.focus()},"handleKeyDown");return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[o]),S.useEffect(()=>{const R=h.current,C=y.current;if(E&&R&&C){const A=a(()=>{if(!c.isClosePausedRef.current){const N=new CustomEvent(Wp);C.dispatchEvent(N),c.isClosePausedRef.current=!0}},"handlePause"),k=a(()=>{if(c.isClosePausedRef.current){const N=new CustomEvent(Zp);C.dispatchEvent(N),c.isClosePausedRef.current=!1}},"handleResume"),z=a(N=>{!R.contains(N.relatedTarget)&&k()},"handleFocusOutResume"),L=a(()=>{R.contains(document.activeElement)||k()},"handlePointerLeaveResume");return R.addEventListener("focusin",A),R.addEventListener("focusout",z),R.addEventListener("pointermove",A),R.addEventListener("pointerleave",L),window.addEventListener("blur",A),window.addEventListener("focus",k),()=>{R.removeEventListener("focusin",A),R.removeEventListener("focusout",z),R.removeEventListener("pointermove",A),R.removeEventListener("pointerleave",L),window.removeEventListener("blur",A),window.removeEventListener("focus",k)}}},[E,c.isClosePausedRef]);const w=S.useCallback(({tabbingDirection:R})=>{const A=d().map(k=>{const z=k.ref.current,L=[z,...V6(z)];return R==="forwards"?L:L.reverse()});return(R==="forwards"?A.reverse():A).flat()},[d]);return S.useEffect(()=>{const R=y.current;if(R){const C=a(A=>{const k=A.altKey||A.ctrlKey||A.metaKey;if(A.key==="Tab"&&!k){const L=document.activeElement,N=A.shiftKey;if(A.target===R&&N){p.current?.focus();return}const W=w({tabbingDirection:N?"backwards":"forwards"}),J=W.findIndex(X=>X===L);tp(W.slice(J+1))?A.preventDefault():N?p.current?.focus():m.current?.focus()}},"handleKeyDown");return R.addEventListener("keydown",C),()=>R.removeEventListener("keydown",C)}},[d,w]),D.jsxs(UM,{ref:h,role:"region","aria-label":l.replace("{hotkey}",x),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&D.jsx(Jp,{ref:p,onFocusFromOutsideViewport:a(()=>{const R=w({tabbingDirection:"forwards"});tp(R)},"onFocusFromOutsideViewport")}),D.jsx(dg.Slot,{scope:r,children:D.jsx(Ee.ol,{tabIndex:-1,...u,ref:b})}),E&&D.jsx(Jp,{ref:m,onFocusFromOutsideViewport:a(()=>{const R=w({tabbingDirection:"backwards"});tp(R)},"onFocusFromOutsideViewport")})]})});DT.displayName=kT;var NT="ToastFocusProxy",Jp=S.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:o,...l}=e,u=nf(NT,r);return D.jsx(Ic,{tabIndex:0,...l,ref:t,style:{position:"fixed"},onFocus:a(c=>{const d=c.relatedTarget;!u.viewport?.contains(d)&&o()},"onFocus")})});Jp.displayName=NT;var Cs="Toast",D6="toast.swipeStart",N6="toast.swipeMove",P6="toast.swipeCancel",L6="toast.swipeEnd",PT=S.forwardRef((e,t)=>{const{forceMount:r,open:o,defaultOpen:l,onOpenChange:u,...c}=e,[d,h]=pr({prop:o,defaultProp:l??!0,onChange:u,caller:Cs});return D.jsx(It,{present:r||d,children:D.jsx(j6,{open:d,...c,ref:t,onClose:a(()=>h(!1),"onClose"),onPause:vt(e.onPause),onResume:vt(e.onResume),onSwipeStart:ye(e.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ye(e.onSwipeMove,p=>{const{x:m,y}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:ye(e.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ye(e.onSwipeEnd,p=>{const{x:m,y}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),h(!1)})})})});PT.displayName=Cs;var[z6,I6]=MT(Cs,{onClose(){}}),j6=S.forwardRef((e,t)=>{const{__scopeToast:r,type:o="foreground",duration:l,open:u,onClose:c,onEscapeKeyDown:d,onPause:h,onResume:p,onSwipeStart:m,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:x,...E}=e,w=nf(Cs,r),[R,C]=S.useState(null),A=ze(t,q=>C(q)),k=S.useRef(null),z=S.useRef(null),L=l||w.duration,N=S.useRef(0),j=S.useRef(L),$=S.useRef(0),{onToastAdd:W,onToastRemove:J}=w,X=vt(()=>{R?.contains(document.activeElement)&&w.viewport?.focus(),c()}),Z=S.useCallback(q=>{!q||q===1/0||(window.clearTimeout($.current),N.current=new Date().getTime(),$.current=window.setTimeout(X,q))},[X]);S.useEffect(()=>{const q=w.viewport;if(q){const ae=a(()=>{Z(j.current),p?.()},"handleResume"),I=a(()=>{const Q=new Date().getTime()-N.current;j.current=j.current-Q,window.clearTimeout($.current),h?.()},"handlePause");return q.addEventListener(Wp,I),q.addEventListener(Zp,ae),()=>{q.removeEventListener(Wp,I),q.removeEventListener(Zp,ae)}}},[w.viewport,L,h,p,Z]),S.useEffect(()=>{u&&!w.isClosePausedRef.current&&Z(L)},[u,L,w.isClosePausedRef,Z]),S.useEffect(()=>(W(),()=>J()),[W,J]);const ce=S.useMemo(()=>R?HT(R):null,[R]);return w.viewport?D.jsxs(D.Fragment,{children:[ce&&D.jsx(U6,{__scopeToast:r,role:"status","aria-live":o==="foreground"?"assertive":"polite",children:ce}),D.jsx(z6,{scope:r,onClose:X,children:dr.createPortal(D.jsx(dg.ItemSlot,{scope:r,children:D.jsx(jM,{asChild:!0,onEscapeKeyDown:ye(d,()=>{w.isFocusedToastEscapeKeyDownRef.current||X(),w.isFocusedToastEscapeKeyDownRef.current=!1}),children:D.jsx(Ee.li,{tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":w.swipeDirection,...E,ref:A,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ye(e.onKeyDown,q=>{q.key==="Escape"&&(d?.(q.nativeEvent),q.nativeEvent.defaultPrevented||(w.isFocusedToastEscapeKeyDownRef.current=!0,X()))}),onPointerDown:ye(e.onPointerDown,q=>{q.button===0&&(k.current={x:q.clientX,y:q.clientY})}),onPointerMove:ye(e.onPointerMove,q=>{if(!k.current)return;const ae=q.clientX-k.current.x,I=q.clientY-k.current.y,Q=!!z.current,te=["left","right"].includes(w.swipeDirection),se=["left","up"].includes(w.swipeDirection)?Math.min:Math.max,O=te?se(0,ae):0,Y=te?0:se(0,I),de=q.pointerType==="touch"?10:2,M={x:O,y:Y},ne={originalEvent:q,delta:M};Q?(z.current=M,$u(N6,y,ne,{discrete:!1})):aS(M,w.swipeDirection,de)?(z.current=M,$u(D6,m,ne,{discrete:!1}),q.target.setPointerCapture(q.pointerId)):(Math.abs(ae)>de||Math.abs(I)>de)&&(k.current=null)}),onPointerUp:ye(e.onPointerUp,q=>{const ae=z.current,I=q.target;if(I.hasPointerCapture(q.pointerId)&&I.releasePointerCapture(q.pointerId),z.current=null,k.current=null,ae){const Q=q.currentTarget,te={originalEvent:q,delta:ae};aS(ae,w.swipeDirection,w.swipeThreshold)?$u(L6,x,te,{discrete:!0}):$u(P6,b,te,{discrete:!0}),Q.addEventListener("click",se=>se.preventDefault(),{once:!0})}})})})}),w.viewport)})]}):null}),U6=a(e=>{const{__scopeToast:t,children:r,...o}=e,l=nf(Cs,t),[u,c]=S.useState(!1),[d,h]=S.useState(!1);return F6(()=>c(!0)),S.useEffect(()=>{const p=window.setTimeout(()=>h(!0),1e3);return()=>window.clearTimeout(p)},[]),d?null:D.jsx(wa,{asChild:!0,children:D.jsx(Ic,{...o,children:u&&D.jsxs(D.Fragment,{children:[l.label," ",r]})})})},"ToastAnnounce"),B6="ToastTitle",LT=S.forwardRef((e,t)=>{const{__scopeToast:r,...o}=e;return D.jsx(Ee.div,{...o,ref:t})});LT.displayName=B6;var H6="ToastDescription",zT=S.forwardRef((e,t)=>{const{__scopeToast:r,...o}=e;return D.jsx(Ee.div,{...o,ref:t})});zT.displayName=H6;var IT="ToastAction",jT=S.forwardRef((e,t)=>{const{altText:r,...o}=e;return r.trim()?D.jsx(BT,{altText:r,asChild:!0,children:D.jsx(hg,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${IT}\`. Expected non-empty \`string\`.`),null)});jT.displayName=IT;var UT="ToastClose",hg=S.forwardRef((e,t)=>{const{__scopeToast:r,...o}=e,l=I6(UT,r);return D.jsx(BT,{asChild:!0,children:D.jsx(Ee.button,{type:"button",...o,ref:t,onClick:ye(e.onClick,l.onClose)})})});hg.displayName=UT;var BT=S.forwardRef((e,t)=>{const{__scopeToast:r,altText:o,...l}=e;return D.jsx(Ee.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...l,ref:t})});function HT(e){const t=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),q6(o)){const l=o.ariaHidden||o.hidden||o.style.display==="none",u=o.dataset.radixToastAnnounceExclude==="";if(!l)if(u){const c=o.dataset.radixToastAnnounceAlt;c&&t.push(c)}else t.push(...HT(o))}}),t}a(HT,"getAnnounceTextContent");function $u(e,t,r,{discrete:o}){const l=r.originalEvent.currentTarget,u=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&l.addEventListener(e,t,{once:!0}),o?dm(l,u):l.dispatchEvent(u)}a($u,"handleAndDispatchCustomEvent");var aS=a((e,t,r=0)=>{const o=Math.abs(e.x),l=Math.abs(e.y),u=o>l;return t==="left"||t==="right"?u&&o>r:!u&&l>r},"isDeltaInDirection");function F6(e=()=>{}){const t=vt(e);bt(()=>{let r=0,o=0;return r=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(o)}},[t])}a(F6,"useNextFrame");function q6(e){return e.nodeType===e.ELEMENT_NODE}a(q6,"isHTMLElement");function V6(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a(o=>{const l=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||l?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}a(V6,"getTabbableCandidates");function tp(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}a(tp,"focusFirst");var SB=_T,xB=DT,wB=PT,EB=LT,CB=zT,TB=jT,RB=hg;function OB(){}a(OB,"ok$1");function G6(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}a(G6,"stringify$1");const $6=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Y6=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,K6={};function lS(e,t){return(K6.jsx?Y6:$6).test(e)}a(lS,"name");const Q6=/[ \t\n\f\r]/g;function X6(e){return typeof e=="object"?e.type==="text"?sS(e.value):!1:sS(e)}a(X6,"whitespace");function sS(e){return e.replace(Q6,"")===""}a(sS,"empty$1");class Ts{static{a(this,"Schema")}constructor(t,r,o){this.normal=r,this.property=t,o&&(this.space=o)}}Ts.prototype.normal={};Ts.prototype.property={};Ts.prototype.space=void 0;function FT(e,t){const r={},o={};for(const l of e)Object.assign(r,l.property),Object.assign(o,l.normal);return new Ts(r,o,t)}a(FT,"merge");function em(e){return e.toLowerCase()}a(em,"normalize$1");class on{static{a(this,"Info")}constructor(t,r){this.attribute=r,this.property=t}}on.prototype.attribute="";on.prototype.booleanish=!1;on.prototype.boolean=!1;on.prototype.commaOrSpaceSeparated=!1;on.prototype.commaSeparated=!1;on.prototype.defined=!1;on.prototype.mustUseProperty=!1;on.prototype.number=!1;on.prototype.overloadedBoolean=!1;on.prototype.property="";on.prototype.spaceSeparated=!1;on.prototype.space=void 0;let W6=0;const Ue=co(),Tt=co(),tm=co(),pe=co(),lt=co(),fa=co(),gn=co();function co(){return 2**++W6}a(co,"increment");const nm=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ue,booleanish:Tt,commaOrSpaceSeparated:gn,commaSeparated:fa,number:pe,overloadedBoolean:tm,spaceSeparated:lt},Symbol.toStringTag,{value:"Module"})),np=Object.keys(nm);class pg extends on{static{a(this,"DefinedInfo")}constructor(t,r,o,l){let u=-1;if(super(t,r),uS(this,"space",l),typeof o=="number")for(;++u<np.length;){const c=np[u];uS(this,np[u],(o&nm[c])===nm[c])}}}pg.prototype.defined=!0;function uS(e,t,r){r&&(e[t]=r)}a(uS,"mark");function Da(e){const t={},r={};for(const[o,l]of Object.entries(e.properties)){const u=new pg(o,e.transform(e.attributes||{},o),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(u.mustUseProperty=!0),t[o]=u,r[em(o)]=o,r[em(u.attribute)]=o}return new Ts(t,r,e.space)}a(Da,"create");const qT=Da({properties:{ariaActiveDescendant:null,ariaAtomic:Tt,ariaAutoComplete:null,ariaBusy:Tt,ariaChecked:Tt,ariaColCount:pe,ariaColIndex:pe,ariaColSpan:pe,ariaControls:lt,ariaCurrent:null,ariaDescribedBy:lt,ariaDetails:null,ariaDisabled:Tt,ariaDropEffect:lt,ariaErrorMessage:null,ariaExpanded:Tt,ariaFlowTo:lt,ariaGrabbed:Tt,ariaHasPopup:null,ariaHidden:Tt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:lt,ariaLevel:pe,ariaLive:null,ariaModal:Tt,ariaMultiLine:Tt,ariaMultiSelectable:Tt,ariaOrientation:null,ariaOwns:lt,ariaPlaceholder:null,ariaPosInSet:pe,ariaPressed:Tt,ariaReadOnly:Tt,ariaRelevant:null,ariaRequired:Tt,ariaRoleDescription:lt,ariaRowCount:pe,ariaRowIndex:pe,ariaRowSpan:pe,ariaSelected:Tt,ariaSetSize:pe,ariaSort:null,ariaValueMax:pe,ariaValueMin:pe,ariaValueNow:pe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function VT(e,t){return t in e?e[t]:t}a(VT,"caseSensitiveTransform");function GT(e,t){return VT(e,t.toLowerCase())}a(GT,"caseInsensitiveTransform");const Z6=Da({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fa,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:Ue,allowPaymentRequest:Ue,allowUserMedia:Ue,alt:null,as:null,async:Ue,autoCapitalize:null,autoComplete:lt,autoFocus:Ue,autoPlay:Ue,blocking:lt,capture:null,charSet:null,checked:Ue,cite:null,className:lt,cols:pe,colSpan:null,content:null,contentEditable:Tt,controls:Ue,controlsList:lt,coords:pe|fa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ue,defer:Ue,dir:null,dirName:null,disabled:Ue,download:tm,draggable:Tt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ue,formTarget:null,headers:lt,height:pe,hidden:tm,high:pe,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:null,inert:Ue,inputMode:null,integrity:null,is:null,isMap:Ue,itemId:null,itemProp:lt,itemRef:lt,itemScope:Ue,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ue,low:pe,manifest:null,max:null,maxLength:pe,media:null,method:null,min:null,minLength:pe,multiple:Ue,muted:Ue,name:null,nonce:null,noModule:Ue,noValidate:Ue,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ue,optimum:pe,pattern:null,ping:lt,placeholder:null,playsInline:Ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ue,referrerPolicy:null,rel:lt,required:Ue,reversed:Ue,rows:pe,rowSpan:pe,sandbox:lt,scope:null,scoped:Ue,seamless:Ue,selected:Ue,shadowRootClonable:Ue,shadowRootDelegatesFocus:Ue,shadowRootMode:null,shape:null,size:pe,sizes:null,slot:null,span:pe,spellCheck:Tt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pe,step:null,style:null,tabIndex:pe,target:null,title:null,translate:null,type:null,typeMustMatch:Ue,useMap:null,value:Tt,width:pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:pe,borderColor:null,bottomMargin:pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ue,declare:Ue,event:null,face:null,frame:null,frameBorder:null,hSpace:pe,leftMargin:pe,link:null,longDesc:null,lowSrc:null,marginHeight:pe,marginWidth:pe,noResize:Ue,noHref:Ue,noShade:Ue,noWrap:Ue,object:null,profile:null,prompt:null,rev:null,rightMargin:pe,rules:null,scheme:null,scrolling:Tt,standby:null,summary:null,text:null,topMargin:pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ue,disableRemotePlayback:Ue,prefix:null,property:null,results:pe,security:null,unselectable:null},space:"html",transform:GT}),J6=Da({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:gn,accentHeight:pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pe,amplitude:pe,arabicForm:null,ascent:pe,attributeName:null,attributeType:null,azimuth:pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pe,by:null,calcMode:null,capHeight:pe,className:lt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:pe,diffuseConstant:pe,direction:null,display:null,dur:null,divisor:pe,dominantBaseline:null,download:Ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:pe,enableBackground:null,end:null,event:null,exponent:pe,externalResourcesRequired:null,fill:null,fillOpacity:pe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fa,g2:fa,glyphName:fa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pe,horizOriginX:pe,horizOriginY:pe,id:null,ideographic:pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pe,k:pe,k1:pe,k2:pe,k3:pe,k4:pe,kernelMatrix:gn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:pe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:pe,overlineThickness:pe,paintOrder:null,panose1:null,path:null,pathLength:pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pe,pointsAtY:pe,pointsAtZ:pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:gn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:gn,rev:gn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:gn,requiredFeatures:gn,requiredFonts:gn,requiredFormats:gn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:pe,specularExponent:pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pe,strikethroughThickness:pe,string:null,stroke:null,strokeDashArray:gn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pe,strokeOpacity:pe,strokeWidth:null,style:null,surfaceScale:pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:gn,tabIndex:pe,tableValues:null,target:null,targetX:pe,targetY:pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:gn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pe,underlineThickness:pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pe,values:null,vAlphabetic:pe,vMathematical:pe,vectorEffect:null,vHanging:pe,vIdeographic:pe,version:null,vertAdvY:pe,vertOriginX:pe,vertOriginY:pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:VT}),$T=Da({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),YT=Da({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:GT}),KT=Da({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),eI={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},tI=/[A-Z]/g,cS=/-[a-z]/g,nI=/^data[-\w.:]+$/i;function rI(e,t){const r=em(t);let o=t,l=on;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&nI.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(cS,oI);o="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!cS.test(u)){let c=u.replace(tI,iI);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=pg}return new l(o,t)}a(rI,"find");function iI(e){return"-"+e.toLowerCase()}a(iI,"kebab");function oI(e){return e.charAt(1).toUpperCase()}a(oI,"camelcase");const aI=FT([qT,Z6,$T,YT,KT],"html"),mg=FT([qT,J6,$T,YT,KT],"svg");function lI(e){return e.join(" ").trim()}a(lI,"stringify");var ra={},rp,fS;function sI(){if(fS)return rp;fS=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,h=`
533
+ `,p="/",m="*",y="",b="comment",x="declaration";rp=a(function(w,R){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];R=R||{};var C=1,A=1;function k(ce){var q=ce.match(t);q&&(C+=q.length);var ae=ce.lastIndexOf(h);A=~ae?ce.length-ae:A+ce.length}a(k,"updatePosition");function z(){var ce={line:C,column:A};return function(q){return q.position=new L(ce),$(),q}}a(z,"position");function L(ce){this.start=ce,this.end={line:C,column:A},this.source=R.source}a(L,"Position"),L.prototype.content=w;function N(ce){var q=new Error(R.source+":"+C+":"+A+": "+ce);if(q.reason=ce,q.filename=R.source,q.line=C,q.column=A,q.source=w,!R.silent)throw q}a(N,"error");function j(ce){var q=ce.exec(w);if(q){var ae=q[0];return k(ae),w=w.slice(ae.length),q}}a(j,"match");function $(){j(r)}a($,"whitespace");function W(ce){var q;for(ce=ce||[];q=J();)q!==!1&&ce.push(q);return ce}a(W,"comments");function J(){var ce=z();if(!(p!=w.charAt(0)||m!=w.charAt(1))){for(var q=2;y!=w.charAt(q)&&(m!=w.charAt(q)||p!=w.charAt(q+1));)++q;if(q+=2,y===w.charAt(q-1))return N("End of comment missing");var ae=w.slice(2,q-2);return A+=2,k(ae),w=w.slice(q),A+=2,ce({type:b,comment:ae})}}a(J,"comment");function X(){var ce=z(),q=j(o);if(q){if(J(),!j(l))return N("property missing ':'");var ae=j(u),I=ce({type:x,property:E(q[0].replace(e,y)),value:ae?E(ae[0].replace(e,y)):y});return j(c),I}}a(X,"declaration");function Z(){var ce=[];W(ce);for(var q;q=X();)q!==!1&&(ce.push(q),W(ce));return ce}return a(Z,"declarations"),$(),Z()},"inlineStyleParser");function E(w){return w?w.replace(d,y):y}return a(E,"trim"),rp}a(sI,"requireInlineStyleParser");var dS;function uI(){if(dS)return ra;dS=1;var e=ra&&ra.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ra,"__esModule",{value:!0}),ra.default=r;var t=e(sI());function r(o,l){var u=null;if(!o||typeof o!="string")return u;var c=(0,t.default)(o),d=typeof l=="function";return c.forEach(function(h){if(h.type==="declaration"){var p=h.property,m=h.value;d?l(p,m,h):m&&(u=u||{},u[p]=m)}}),u}return a(r,"StyleToObject"),ra}a(uI,"requireCjs$1");var Il={},hS;function cI(){if(hS)return Il;hS=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,u=a(function(p){return!p||r.test(p)||e.test(p)},"skipCamelCase"),c=a(function(p,m){return m.toUpperCase()},"capitalize"),d=a(function(p,m){return"".concat(m,"-")},"trimHyphen"),h=a(function(p,m){return m===void 0&&(m={}),u(p)?p:(p=p.toLowerCase(),m.reactCompat?p=p.replace(l,d):p=p.replace(o,d),p.replace(t,c))},"camelCase");return Il.camelCase=h,Il}a(cI,"requireUtilities");var jl,pS;function fI(){if(pS)return jl;pS=1;var e=jl&&jl.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(uI()),r=cI();function o(l,u){var c={};return!l||typeof l!="string"||(0,t.default)(l,function(d,h){d&&h&&(c[(0,r.camelCase)(d,u)]=h)}),c}return a(o,"StyleToJS"),o.default=o,jl=o,jl}a(fI,"requireCjs");var dI=fI();const hI=Vr(dI),QT=XT("end"),gg=XT("start");function XT(e){return t;function t(r){const o=r&&r.position&&r.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}a(XT,"point$2");function pI(e){const t=gg(e),r=QT(e);if(t&&r)return{start:t,end:r}}a(pI,"position$1");function $l(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?mS(e.position):"start"in e||"end"in e?mS(e):"line"in e||"column"in e?rm(e):""}a($l,"stringifyPosition");function rm(e){return gS(e&&e.line)+":"+gS(e&&e.column)}a(rm,"point$1");function mS(e){return rm(e&&e.start)+"-"+rm(e&&e.end)}a(mS,"position");function gS(e){return e&&typeof e=="number"?e:1}a(gS,"index");class qt extends Error{static{a(this,"VFileMessage")}constructor(t,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let l="",u={},c=!1;if(r&&("line"in r&&"column"in r?u={place:r}:"start"in r&&"end"in r?u={place:r}:"type"in r?u={ancestors:[r],place:r.position}:u={...r}),typeof t=="string"?l=t:!u.cause&&t&&(c=!0,l=t.message,u.cause=t),!u.ruleId&&!u.source&&typeof o=="string"){const h=o.indexOf(":");h===-1?u.ruleId=o:(u.source=o.slice(0,h),u.ruleId=o.slice(h+1))}if(!u.place&&u.ancestors&&u.ancestors){const h=u.ancestors[u.ancestors.length-1];h&&(u.place=h.position)}const d=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=d?d.line:void 0,this.name=$l(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qt.prototype.file="";qt.prototype.name="";qt.prototype.reason="";qt.prototype.message="";qt.prototype.stack="";qt.prototype.column=void 0;qt.prototype.line=void 0;qt.prototype.ancestors=void 0;qt.prototype.cause=void 0;qt.prototype.fatal=void 0;qt.prototype.place=void 0;qt.prototype.ruleId=void 0;qt.prototype.source=void 0;const yg={}.hasOwnProperty,mI=new Map,gI=/[A-Z]/g,yI=new Set(["table","tbody","thead","tfoot","tr"]),vI=new Set(["td","th"]),WT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function bI(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let o;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=OI(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=RI(r,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?mg:aI,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},u=ZT(l,e,void 0);return u&&typeof u!="string"?u:l.create(e,l.Fragment,{children:u||void 0},void 0)}a(bI,"toJsxRuntime");function ZT(e,t,r){if(t.type==="element")return SI(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return xI(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return EI(e,t,r);if(t.type==="mdxjsEsm")return wI(e,t);if(t.type==="root")return CI(e,t,r);if(t.type==="text")return TI(e,t)}a(ZT,"one$1");function SI(e,t,r){const o=e.schema;let l=o;t.tagName.toLowerCase()==="svg"&&o.space==="html"&&(l=mg,e.schema=l),e.ancestors.push(t);const u=eR(e,t.tagName,!1),c=AI(e,t);let d=bg(e,t);return yI.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!X6(h):!0})),JT(e,c,u,t),vg(c,d),e.ancestors.pop(),e.schema=o,e.create(t,u,c,r)}a(SI,"element$1");function xI(e,t){if(t.data&&t.data.estree&&e.evaluater){const o=t.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}os(e,t.position)}a(xI,"mdxExpression");function wI(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);os(e,t.position)}a(wI,"mdxEsm");function EI(e,t,r){const o=e.schema;let l=o;t.name==="svg"&&o.space==="html"&&(l=mg,e.schema=l),e.ancestors.push(t);const u=t.name===null?e.Fragment:eR(e,t.name,!0),c=MI(e,t),d=bg(e,t);return JT(e,c,u,t),vg(c,d),e.ancestors.pop(),e.schema=o,e.create(t,u,c,r)}a(EI,"mdxJsxElement");function CI(e,t,r){const o={};return vg(o,bg(e,t)),e.create(t,e.Fragment,o,r)}a(CI,"root$1");function TI(e,t){return t.value}a(TI,"text$3");function JT(e,t,r,o){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=o)}a(JT,"addNode");function vg(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}a(vg,"addChildren");function RI(e,t,r){return o;function o(l,u,c,d){const p=Array.isArray(c.children)?r:t;return d?p(u,c,d):p(u,c)}}a(RI,"productionCreate");function OI(e,t){return r;function r(o,l,u,c){const d=Array.isArray(u.children),h=gg(o);return t(l,u,c,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}a(OI,"developmentCreate");function AI(e,t){const r={};let o,l;for(l in t.properties)if(l!=="children"&&yg.call(t.properties,l)){const u=_I(e,l,t.properties[l]);if(u){const[c,d]=u;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&vI.has(t.tagName)?o=d:r[c]=d}}if(o){const u=r.style||(r.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}a(AI,"createElementProps");function MI(e,t){const r={};for(const o of t.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){const u=o.data.estree.body[0];u.type;const c=u.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else os(e,t.position);else{const l=o.name;let u;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){const d=o.value.data.estree.body[0];d.type,u=e.evaluater.evaluateExpression(d.expression)}else os(e,t.position);else u=o.value===null?!0:o.value;r[l]=u}return r}a(MI,"createJsxElementProps");function bg(e,t){const r=[];let o=-1;const l=e.passKeys?new Map:mI;for(;++o<t.children.length;){const u=t.children[o];let c;if(e.passKeys){const h=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(h){const p=l.get(h)||0;c=h+"-"+p,l.set(h,p+1)}}const d=ZT(e,u,c);d!==void 0&&r.push(d)}return r}a(bg,"createChildren");function _I(e,t,r){const o=rI(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?G6(r):lI(r)),o.property==="style"){let l=typeof r=="object"?r:kI(e,String(r));return e.stylePropertyNameCase==="css"&&(l=DI(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&o.space?eI[o.property]||o.property:o.attribute,r]}}a(_I,"createProperty");function kI(e,t){try{return hI(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const o=r,l=new qt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=WT+"#cannot-parse-style-attribute",l}}a(kI,"parseStyle");function eR(e,t,r){let o;if(!r)o={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let u=-1,c;for(;++u<l.length;){const d=lS(l[u])?{type:"Identifier",name:l[u]}:{type:"Literal",value:l[u]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(u&&d.type==="Literal"),optional:!1}:d}o=c}else o=lS(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(o.type==="Literal"){const l=o.value;return yg.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(o);os(e)}a(eR,"findComponentFromName");function os(e,t){const r=new qt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=WT+"#cannot-handle-mdx-estrees-without-createevaluater",r}a(os,"crashEstree");function DI(e){const t={};let r;for(r in e)yg.call(e,r)&&(t[NI(r)]=e[r]);return t}a(DI,"transformStylesToCssCasing");function NI(e){let t=e.replace(gI,PI);return t.slice(0,3)==="ms-"&&(t="-"+t),t}a(NI,"transformStyleToCssCasing");function PI(e){return"-"+e.toLowerCase()}a(PI,"toDash");const ip={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},LI={};function zI(e,t){const r=LI,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return tR(e,o,l)}a(zI,"toString$1");function tR(e,t,r){if(II(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return yS(e.children,t,r)}return Array.isArray(e)?yS(e,t,r):""}a(tR,"one");function yS(e,t,r){const o=[];let l=-1;for(;++l<e.length;)o[l]=tR(e[l],t,r);return o.join("")}a(yS,"all");function II(e){return!!(e&&typeof e=="object")}a(II,"node");const vS=document.createElement("i");function Sg(e){const t="&"+e+";";vS.innerHTML=t;const r=vS.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}a(Sg,"decodeNamedCharacterReference");function gr(e,t,r,o){const l=e.length;let u=0,c;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,r=r>0?r:0,o.length<1e4)c=Array.from(o),c.unshift(t,r),e.splice(...c);else for(r&&e.splice(t,r);u<o.length;)c=o.slice(u,u+1e4),c.unshift(t,0),e.splice(...c),u+=1e4,t+=1e4}a(gr,"splice");function Nn(e,t){return e.length>0?(gr(e,e.length,0,t),e):t}a(Nn,"push");const bS={}.hasOwnProperty;function jI(e){const t={};let r=-1;for(;++r<e.length;)UI(t,e[r]);return t}a(jI,"combineExtensions");function UI(e,t){let r;for(r in t){const l=(bS.call(e,r)?e[r]:void 0)||(e[r]={}),u=t[r];let c;if(u)for(c in u){bS.call(l,c)||(l[c]=[]);const d=u[c];BI(l[c],Array.isArray(d)?d:d?[d]:[])}}}a(UI,"syntaxExtension");function BI(e,t){let r=-1;const o=[];for(;++r<t.length;)(t[r].add==="after"?e:o).push(t[r]);gr(e,0,0,o)}a(BI,"constructs");function nR(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}a(nR,"decodeNumericCharacterReference");function da(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}a(da,"normalizeIdentifier");const sr=Oi(/[A-Za-z]/),bn=Oi(/[\dA-Za-z]/),HI=Oi(/[#-'*+\--9=?A-Z^-~]/);function im(e){return e!==null&&(e<32||e===127)}a(im,"asciiControl");const om=Oi(/\d/),FI=Oi(/[\dA-Fa-f]/),qI=Oi(/[!-/:-@[-`{-~]/);function Ne(e){return e!==null&&e<-2}a(Ne,"markdownLineEnding");function rn(e){return e!==null&&(e<0||e===32)}a(rn,"markdownLineEndingOrSpace");function We(e){return e===-2||e===-1||e===32}a(We,"markdownSpace");const VI=Oi(/\p{P}|\p{S}/u),GI=Oi(/\s/);function Oi(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}a(Oi,"regexCheck");function Na(e){const t=[];let r=-1,o=0,l=0;for(;++r<e.length;){const u=e.charCodeAt(r);let c="";if(u===37&&bn(e.charCodeAt(r+1))&&bn(e.charCodeAt(r+2)))l=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const d=e.charCodeAt(r+1);u<56320&&d>56319&&d<57344?(c=String.fromCharCode(u,d),l=1):c="�"}else c=String.fromCharCode(u);c&&(t.push(e.slice(o,r),encodeURIComponent(c)),o=r+l+1,c=""),l&&(r+=l,l=0)}return t.join("")+e.slice(o)}a(Na,"normalizeUri");function st(e,t,r,o){const l=o?o-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(h){return We(h)?(e.enter(r),d(h)):t(h)}function d(h){return We(h)&&u++<l?(e.consume(h),d):(e.exit(r),t(h))}}a(st,"factorySpace");const $I={tokenize:YI};function YI(e){const t=e.attempt(this.parser.constructs.contentInitial,o,l);let r;return t;function o(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),st(e,t,"linePrefix")}function l(d){return e.enter("paragraph"),u(d)}function u(d){const h=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Ne(d)?(e.consume(d),e.exit("chunkText"),u):(e.consume(d),c)}}a(YI,"initializeContent");const KI={tokenize:QI},SS={tokenize:XI};function QI(e){const t=this,r=[];let o=0,l,u,c;return d;function d(k){if(o<r.length){const z=r[o];return t.containerState=z[1],e.attempt(z[0].continuation,h,p)(k)}return p(k)}function h(k){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&A();const z=t.events.length;let L=z,N;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){N=t.events[L][1].end;break}C(o);let j=z;for(;j<t.events.length;)t.events[j][1].end={...N},j++;return gr(t.events,L+1,0,t.events.slice(z)),t.events.length=j,p(k)}return d(k)}function p(k){if(o===r.length){if(!l)return b(k);if(l.currentConstruct&&l.currentConstruct.concrete)return E(k);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(SS,m,y)(k)}function m(k){return l&&A(),C(o),b(k)}function y(k){return t.parser.lazy[t.now().line]=o!==r.length,c=t.now().offset,E(k)}function b(k){return t.containerState={},e.attempt(SS,x,E)(k)}function x(k){return o++,r.push([t.currentConstruct,t.containerState]),b(k)}function E(k){if(k===null){l&&A(),C(0),e.consume(k);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:u}),w(k)}function w(k){if(k===null){R(e.exit("chunkFlow"),!0),C(0),e.consume(k);return}return Ne(k)?(e.consume(k),R(e.exit("chunkFlow")),o=0,t.interrupt=void 0,d):(e.consume(k),w)}function R(k,z){const L=t.sliceStream(k);if(z&&L.push(null),k.previous=u,u&&(u.next=k),u=k,l.defineSkip(k.start),l.write(L),t.parser.lazy[k.start.line]){let N=l.events.length;for(;N--;)if(l.events[N][1].start.offset<c&&(!l.events[N][1].end||l.events[N][1].end.offset>c))return;const j=t.events.length;let $=j,W,J;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(W){J=t.events[$][1].end;break}W=!0}for(C(o),N=j;N<t.events.length;)t.events[N][1].end={...J},N++;gr(t.events,$+1,0,t.events.slice(j)),t.events.length=N}}function C(k){let z=r.length;for(;z-- >k;){const L=r[z];t.containerState=L[1],L[0].exit.call(t,e)}r.length=k}function A(){l.write([null]),u=void 0,l=void 0,t.containerState._closeFlow=void 0}}a(QI,"initializeDocument");function XI(e,t,r){return st(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}a(XI,"tokenizeContainer");function xS(e){if(e===null||rn(e)||GI(e))return 1;if(VI(e))return 2}a(xS,"classifyCharacter");function xg(e,t,r){const o=[];let l=-1;for(;++l<e.length;){const u=e[l].resolveAll;u&&!o.includes(u)&&(t=u(t,r),o.push(u))}return t}a(xg,"resolveAll");const am={name:"attention",resolveAll:WI,tokenize:ZI};function WI(e,t){let r=-1,o,l,u,c,d,h,p,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;h=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const y={...e[o][1].end},b={...e[r][1].start};wS(y,-h),wS(b,h),c={type:h>1?"strongSequence":"emphasisSequence",start:y,end:{...e[o][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:b},u={type:h>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[r][1].start}},l={type:h>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[o][1].end={...c.start},e[r][1].start={...d.end},p=[],e[o][1].end.offset-e[o][1].start.offset&&(p=Nn(p,[["enter",e[o][1],t],["exit",e[o][1],t]])),p=Nn(p,[["enter",l,t],["enter",c,t],["exit",c,t],["enter",u,t]]),p=Nn(p,xg(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),p=Nn(p,[["exit",u,t],["enter",d,t],["exit",d,t],["exit",l,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,p=Nn(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,gr(e,o-1,r-o+3,p),r=o+p.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}a(WI,"resolveAllAttention");function ZI(e,t){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,l=xS(o);let u;return c;function c(h){return u=h,e.enter("attentionSequence"),d(h)}function d(h){if(h===u)return e.consume(h),d;const p=e.exit("attentionSequence"),m=xS(h),y=!m||m===2&&l||r.includes(h),b=!l||l===2&&m||r.includes(o);return p._open=!!(u===42?y:y&&(l||!b)),p._close=!!(u===42?b:b&&(m||!y)),t(h)}}a(ZI,"tokenizeAttention");function wS(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}a(wS,"movePoint");const JI={name:"autolink",tokenize:e5};function e5(e,t,r){let o=0;return l;function l(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(x){return sr(x)?(e.consume(x),c):x===64?r(x):p(x)}function c(x){return x===43||x===45||x===46||bn(x)?(o=1,d(x)):p(x)}function d(x){return x===58?(e.consume(x),o=0,h):(x===43||x===45||x===46||bn(x))&&o++<32?(e.consume(x),d):(o=0,p(x))}function h(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):x===null||x===32||x===60||im(x)?r(x):(e.consume(x),h)}function p(x){return x===64?(e.consume(x),m):HI(x)?(e.consume(x),p):r(x)}function m(x){return bn(x)?y(x):r(x)}function y(x){return x===46?(e.consume(x),o=0,m):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):b(x)}function b(x){if((x===45||bn(x))&&o++<63){const E=x===45?b:y;return e.consume(x),E}return r(x)}}a(e5,"tokenizeAutolink");const rf={partial:!0,tokenize:t5};function t5(e,t,r){return o;function o(u){return We(u)?st(e,l,"linePrefix")(u):l(u)}function l(u){return u===null||Ne(u)?t(u):r(u)}}a(t5,"tokenizeBlankLine");const rR={continuation:{tokenize:r5},exit:i5,name:"blockQuote",tokenize:n5};function n5(e,t,r){const o=this;return l;function l(c){if(c===62){const d=o.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return r(c)}function u(c){return We(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}a(n5,"tokenizeBlockQuoteStart");function r5(e,t,r){const o=this;return l;function l(c){return We(c)?st(e,u,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(rR,t,r)(c)}}a(r5,"tokenizeBlockQuoteContinuation");function i5(e){e.exit("blockQuote")}a(i5,"exit");const iR={name:"characterEscape",tokenize:o5};function o5(e,t,r){return o;function o(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),l}function l(u){return qI(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(u)}}a(o5,"tokenizeCharacterEscape");const oR={name:"characterReference",tokenize:a5};function a5(e,t,r){const o=this;let l=0,u,c;return d;function d(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),h}function h(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),u=31,c=bn,m(y))}function p(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=FI,m):(e.enter("characterReferenceValue"),u=7,c=om,m(y))}function m(y){if(y===59&&l){const b=e.exit("characterReferenceValue");return c===bn&&!Sg(o.sliceSerialize(b))?r(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(y)&&l++<u?(e.consume(y),m):r(y)}}a(a5,"tokenizeCharacterReference");const ES={partial:!0,tokenize:s5},CS={concrete:!0,name:"codeFenced",tokenize:l5};function l5(e,t,r){const o=this,l={partial:!0,tokenize:L};let u=0,c=0,d;return h;function h(N){return p(N)}function p(N){const j=o.events[o.events.length-1];return u=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,d=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(N)}function m(N){return N===d?(c++,e.consume(N),m):c<3?r(N):(e.exit("codeFencedFenceSequence"),We(N)?st(e,y,"whitespace")(N):y(N))}function y(N){return N===null||Ne(N)?(e.exit("codeFencedFence"),o.interrupt?t(N):e.check(ES,w,z)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(N))}function b(N){return N===null||Ne(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(N)):We(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),st(e,x,"whitespace")(N)):N===96&&N===d?r(N):(e.consume(N),b)}function x(N){return N===null||Ne(N)?y(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(N))}function E(N){return N===null||Ne(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(N)):N===96&&N===d?r(N):(e.consume(N),E)}function w(N){return e.attempt(l,z,R)(N)}function R(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),C}function C(N){return u>0&&We(N)?st(e,A,"linePrefix",u+1)(N):A(N)}function A(N){return N===null||Ne(N)?e.check(ES,w,z)(N):(e.enter("codeFlowValue"),k(N))}function k(N){return N===null||Ne(N)?(e.exit("codeFlowValue"),A(N)):(e.consume(N),k)}function z(N){return e.exit("codeFenced"),t(N)}function L(N,j,$){let W=0;return J;function J(ae){return N.enter("lineEnding"),N.consume(ae),N.exit("lineEnding"),X}function X(ae){return N.enter("codeFencedFence"),We(ae)?st(N,Z,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ae):Z(ae)}function Z(ae){return ae===d?(N.enter("codeFencedFenceSequence"),ce(ae)):$(ae)}function ce(ae){return ae===d?(W++,N.consume(ae),ce):W>=c?(N.exit("codeFencedFenceSequence"),We(ae)?st(N,q,"whitespace")(ae):q(ae)):$(ae)}function q(ae){return ae===null||Ne(ae)?(N.exit("codeFencedFence"),j(ae)):$(ae)}}}a(l5,"tokenizeCodeFenced");function s5(e,t,r){const o=this;return l;function l(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return o.parser.lazy[o.now().line]?r(c):t(c)}}a(s5,"tokenizeNonLazyContinuation");const op={name:"codeIndented",tokenize:c5},u5={partial:!0,tokenize:f5};function c5(e,t,r){const o=this;return l;function l(p){return e.enter("codeIndented"),st(e,u,"linePrefix",5)(p)}function u(p){const m=o.events[o.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(p):r(p)}function c(p){return p===null?h(p):Ne(p)?e.attempt(u5,c,h)(p):(e.enter("codeFlowValue"),d(p))}function d(p){return p===null||Ne(p)?(e.exit("codeFlowValue"),c(p)):(e.consume(p),d)}function h(p){return e.exit("codeIndented"),t(p)}}a(c5,"tokenizeCodeIndented");function f5(e,t,r){const o=this;return l;function l(c){return o.parser.lazy[o.now().line]?r(c):Ne(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):st(e,u,"linePrefix",5)(c)}function u(c){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):Ne(c)?l(c):r(c)}}a(f5,"tokenizeFurtherStart");const d5={name:"codeText",previous:p5,resolve:h5,tokenize:m5};function h5(e){let t=e.length-4,r=3,o,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o<t;)if(e[o][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(o=r-1,t++;++o<=t;)l===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(l=o):(o===t||e[o][1].type==="lineEnding")&&(e[l][1].type="codeTextData",o!==l+2&&(e[l][1].end=e[o-1][1].end,e.splice(l+2,o-l-2),t-=o-l-2,o=l+2),l=void 0);return e}a(h5,"resolveCodeText");function p5(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}a(p5,"previous");function m5(e,t,r){let o=0,l,u;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),d(y)}function d(y){return y===96?(e.consume(y),o++,d):(e.exit("codeTextSequence"),h(y))}function h(y){return y===null?r(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),h):y===96?(u=e.enter("codeTextSequence"),l=0,m(y)):Ne(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),h):(e.enter("codeTextData"),p(y))}function p(y){return y===null||y===32||y===96||Ne(y)?(e.exit("codeTextData"),h(y)):(e.consume(y),p)}function m(y){return y===96?(e.consume(y),l++,m):l===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(y)):(u.type="codeTextData",p(y))}}a(m5,"tokenizeCodeText");class g5{static{a(this,"SpliceBuffer")}constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const o=r??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(t,o):t>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(t,r,o){const l=r||0;this.setCursor(Math.trunc(t));const u=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return o&&Ul(this.left,o),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ul(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ul(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Ul(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ul(this.left,r.reverse())}}}function Ul(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}a(Ul,"chunkedPush");function aR(e){const t={};let r=-1,o,l,u,c,d,h,p;const m=new g5(e);for(;++r<m.length;){for(;r in t;)r=t[r];if(o=m.get(r),r&&o[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(h=o[1]._tokenizer.events,u=0,u<h.length&&h[u][1].type==="lineEndingBlank"&&(u+=2),u<h.length&&h[u][1].type==="content"))for(;++u<h.length&&h[u][1].type!=="content";)h[u][1].type==="chunkText"&&(h[u][1]._isInFirstContentOfListItem=!0,u++);if(o[0]==="enter")o[1].contentType&&(Object.assign(t,y5(m,r)),r=t[r],p=!0);else if(o[1]._container){for(u=r,l=void 0;u--;)if(c=m.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(l&&(m.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;l&&(o[1].end={...m.get(l)[1].start},d=m.slice(l,r),d.unshift(o),m.splice(l,r-l+1,d))}}return gr(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!p}a(aR,"subtokenize");function y5(e,t){const r=e.get(t)[1],o=e.get(t)[2];let l=t-1;const u=[];let c=r._tokenizer;c||(c=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,h=[],p={};let m,y,b=-1,x=r,E=0,w=0;const R=[w];for(;x;){for(;e.get(++l)[1]!==x;);u.push(l),x._tokenizer||(m=o.sliceStream(x),x.next||m.push(null),y&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=x,x=x.next}for(x=r;++b<d.length;)d[b][0]==="exit"&&d[b-1][0]==="enter"&&d[b][1].type===d[b-1][1].type&&d[b][1].start.line!==d[b][1].end.line&&(w=b+1,R.push(w),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):R.pop(),b=R.length;b--;){const C=d.slice(R[b],R[b+1]),A=u.pop();h.push([A,A+C.length-1]),e.splice(A,2,C)}for(h.reverse(),b=-1;++b<h.length;)p[E+h[b][0]]=E+h[b][1],E+=h[b][1]-h[b][0]-1;return p}a(y5,"subcontent");const v5={resolve:S5,tokenize:x5},b5={partial:!0,tokenize:w5};function S5(e){return aR(e),e}a(S5,"resolveContent");function x5(e,t){let r;return o;function o(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?u(d):Ne(d)?e.check(b5,c,u)(d):(e.consume(d),l)}function u(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}a(x5,"tokenizeContent");function w5(e,t,r){const o=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),st(e,u,"linePrefix")}function u(c){if(c===null||Ne(c))return r(c);const d=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(o.parser.constructs.flow,r,t)(c)}}a(w5,"tokenizeContinuation");function lR(e,t,r,o,l,u,c,d,h){const p=h||Number.POSITIVE_INFINITY;let m=0;return y;function y(C){return C===60?(e.enter(o),e.enter(l),e.enter(u),e.consume(C),e.exit(u),b):C===null||C===32||C===41||im(C)?r(C):(e.enter(o),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),w(C))}function b(C){return C===62?(e.enter(u),e.consume(C),e.exit(u),e.exit(l),e.exit(o),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),x(C))}function x(C){return C===62?(e.exit("chunkString"),e.exit(d),b(C)):C===null||C===60||Ne(C)?r(C):(e.consume(C),C===92?E:x)}function E(C){return C===60||C===62||C===92?(e.consume(C),x):x(C)}function w(C){return!m&&(C===null||C===41||rn(C))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(o),t(C)):m<p&&C===40?(e.consume(C),m++,w):C===41?(e.consume(C),m--,w):C===null||C===32||C===40||im(C)?r(C):(e.consume(C),C===92?R:w)}function R(C){return C===40||C===41||C===92?(e.consume(C),w):w(C)}}a(lR,"factoryDestination");function sR(e,t,r,o,l,u){const c=this;let d=0,h;return p;function p(x){return e.enter(o),e.enter(l),e.consume(x),e.exit(l),e.enter(u),m}function m(x){return d>999||x===null||x===91||x===93&&!h||x===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(x):x===93?(e.exit(u),e.enter(l),e.consume(x),e.exit(l),e.exit(o),t):Ne(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===null||x===91||x===93||Ne(x)||d++>999?(e.exit("chunkString"),m(x)):(e.consume(x),h||(h=!We(x)),x===92?b:y)}function b(x){return x===91||x===92||x===93?(e.consume(x),d++,y):y(x)}}a(sR,"factoryLabel");function uR(e,t,r,o,l,u){let c;return d;function d(b){return b===34||b===39||b===40?(e.enter(o),e.enter(l),e.consume(b),e.exit(l),c=b===40?41:b,h):r(b)}function h(b){return b===c?(e.enter(l),e.consume(b),e.exit(l),e.exit(o),t):(e.enter(u),p(b))}function p(b){return b===c?(e.exit(u),h(c)):b===null?r(b):Ne(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),st(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===c||b===null||Ne(b)?(e.exit("chunkString"),p(b)):(e.consume(b),b===92?y:m)}function y(b){return b===c||b===92?(e.consume(b),m):m(b)}}a(uR,"factoryTitle");function Yl(e,t){let r;return o;function o(l){return Ne(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,o):We(l)?st(e,o,r?"linePrefix":"lineSuffix")(l):t(l)}}a(Yl,"factoryWhitespace");const E5={name:"definition",tokenize:T5},C5={partial:!0,tokenize:R5};function T5(e,t,r){const o=this;let l;return u;function u(x){return e.enter("definition"),c(x)}function c(x){return sR.call(o,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return l=da(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),h):r(x)}function h(x){return rn(x)?Yl(e,p)(x):p(x)}function p(x){return lR(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function m(x){return e.attempt(C5,y,y)(x)}function y(x){return We(x)?st(e,b,"whitespace")(x):b(x)}function b(x){return x===null||Ne(x)?(e.exit("definition"),o.parser.defined.push(l),t(x)):r(x)}}a(T5,"tokenizeDefinition");function R5(e,t,r){return o;function o(d){return rn(d)?Yl(e,l)(d):r(d)}function l(d){return uR(e,u,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function u(d){return We(d)?st(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Ne(d)?t(d):r(d)}}a(R5,"tokenizeTitleBefore");const O5={name:"hardBreakEscape",tokenize:A5};function A5(e,t,r){return o;function o(u){return e.enter("hardBreakEscape"),e.consume(u),l}function l(u){return Ne(u)?(e.exit("hardBreakEscape"),t(u)):r(u)}}a(A5,"tokenizeHardBreakEscape");const M5={name:"headingAtx",resolve:_5,tokenize:k5};function _5(e,t){let r=e.length-2,o=3,l,u;return e[o][1].type==="whitespace"&&(o+=2),r-2>o&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&e[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(l={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},u={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},gr(e,o,r-o+1,[["enter",l,t],["enter",u,t],["exit",u,t],["exit",l,t]])),e}a(_5,"resolveHeadingAtx");function k5(e,t,r){let o=0;return l;function l(m){return e.enter("atxHeading"),u(m)}function u(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&o++<6?(e.consume(m),c):m===null||rn(m)?(e.exit("atxHeadingSequence"),d(m)):r(m)}function d(m){return m===35?(e.enter("atxHeadingSequence"),h(m)):m===null||Ne(m)?(e.exit("atxHeading"),t(m)):We(m)?st(e,d,"whitespace")(m):(e.enter("atxHeadingText"),p(m))}function h(m){return m===35?(e.consume(m),h):(e.exit("atxHeadingSequence"),d(m))}function p(m){return m===null||m===35||rn(m)?(e.exit("atxHeadingText"),d(m)):(e.consume(m),p)}}a(k5,"tokenizeHeadingAtx");const D5=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],TS=["pre","script","style","textarea"],N5={concrete:!0,name:"htmlFlow",resolveTo:z5,tokenize:I5},P5={partial:!0,tokenize:U5},L5={partial:!0,tokenize:j5};function z5(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}a(z5,"resolveToHtmlFlow");function I5(e,t,r){const o=this;let l,u,c,d,h;return p;function p(M){return m(M)}function m(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),y}function y(M){return M===33?(e.consume(M),b):M===47?(e.consume(M),u=!0,w):M===63?(e.consume(M),l=3,o.interrupt?t:O):sr(M)?(e.consume(M),c=String.fromCharCode(M),R):r(M)}function b(M){return M===45?(e.consume(M),l=2,x):M===91?(e.consume(M),l=5,d=0,E):sr(M)?(e.consume(M),l=4,o.interrupt?t:O):r(M)}function x(M){return M===45?(e.consume(M),o.interrupt?t:O):r(M)}function E(M){const ne="CDATA[";return M===ne.charCodeAt(d++)?(e.consume(M),d===ne.length?o.interrupt?t:Z:E):r(M)}function w(M){return sr(M)?(e.consume(M),c=String.fromCharCode(M),R):r(M)}function R(M){if(M===null||M===47||M===62||rn(M)){const ne=M===47,me=c.toLowerCase();return!ne&&!u&&TS.includes(me)?(l=1,o.interrupt?t(M):Z(M)):D5.includes(c.toLowerCase())?(l=6,ne?(e.consume(M),C):o.interrupt?t(M):Z(M)):(l=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(M):u?A(M):k(M))}return M===45||bn(M)?(e.consume(M),c+=String.fromCharCode(M),R):r(M)}function C(M){return M===62?(e.consume(M),o.interrupt?t:Z):r(M)}function A(M){return We(M)?(e.consume(M),A):J(M)}function k(M){return M===47?(e.consume(M),J):M===58||M===95||sr(M)?(e.consume(M),z):We(M)?(e.consume(M),k):J(M)}function z(M){return M===45||M===46||M===58||M===95||bn(M)?(e.consume(M),z):L(M)}function L(M){return M===61?(e.consume(M),N):We(M)?(e.consume(M),L):k(M)}function N(M){return M===null||M===60||M===61||M===62||M===96?r(M):M===34||M===39?(e.consume(M),h=M,j):We(M)?(e.consume(M),N):$(M)}function j(M){return M===h?(e.consume(M),h=null,W):M===null||Ne(M)?r(M):(e.consume(M),j)}function $(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||rn(M)?L(M):(e.consume(M),$)}function W(M){return M===47||M===62||We(M)?k(M):r(M)}function J(M){return M===62?(e.consume(M),X):r(M)}function X(M){return M===null||Ne(M)?Z(M):We(M)?(e.consume(M),X):r(M)}function Z(M){return M===45&&l===2?(e.consume(M),I):M===60&&l===1?(e.consume(M),Q):M===62&&l===4?(e.consume(M),Y):M===63&&l===3?(e.consume(M),O):M===93&&l===5?(e.consume(M),se):Ne(M)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(P5,de,ce)(M)):M===null||Ne(M)?(e.exit("htmlFlowData"),ce(M)):(e.consume(M),Z)}function ce(M){return e.check(L5,q,de)(M)}function q(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),ae}function ae(M){return M===null||Ne(M)?ce(M):(e.enter("htmlFlowData"),Z(M))}function I(M){return M===45?(e.consume(M),O):Z(M)}function Q(M){return M===47?(e.consume(M),c="",te):Z(M)}function te(M){if(M===62){const ne=c.toLowerCase();return TS.includes(ne)?(e.consume(M),Y):Z(M)}return sr(M)&&c.length<8?(e.consume(M),c+=String.fromCharCode(M),te):Z(M)}function se(M){return M===93?(e.consume(M),O):Z(M)}function O(M){return M===62?(e.consume(M),Y):M===45&&l===2?(e.consume(M),O):Z(M)}function Y(M){return M===null||Ne(M)?(e.exit("htmlFlowData"),de(M)):(e.consume(M),Y)}function de(M){return e.exit("htmlFlow"),t(M)}}a(I5,"tokenizeHtmlFlow");function j5(e,t,r){const o=this;return l;function l(c){return Ne(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):r(c)}function u(c){return o.parser.lazy[o.now().line]?r(c):t(c)}}a(j5,"tokenizeNonLazyContinuationStart");function U5(e,t,r){return o;function o(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(rf,t,r)}}a(U5,"tokenizeBlankLineBefore");const B5={name:"htmlText",tokenize:H5};function H5(e,t,r){const o=this;let l,u,c;return d;function d(O){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(O),h}function h(O){return O===33?(e.consume(O),p):O===47?(e.consume(O),L):O===63?(e.consume(O),k):sr(O)?(e.consume(O),$):r(O)}function p(O){return O===45?(e.consume(O),m):O===91?(e.consume(O),u=0,E):sr(O)?(e.consume(O),A):r(O)}function m(O){return O===45?(e.consume(O),x):r(O)}function y(O){return O===null?r(O):O===45?(e.consume(O),b):Ne(O)?(c=y,Q(O)):(e.consume(O),y)}function b(O){return O===45?(e.consume(O),x):y(O)}function x(O){return O===62?I(O):O===45?b(O):y(O)}function E(O){const Y="CDATA[";return O===Y.charCodeAt(u++)?(e.consume(O),u===Y.length?w:E):r(O)}function w(O){return O===null?r(O):O===93?(e.consume(O),R):Ne(O)?(c=w,Q(O)):(e.consume(O),w)}function R(O){return O===93?(e.consume(O),C):w(O)}function C(O){return O===62?I(O):O===93?(e.consume(O),C):w(O)}function A(O){return O===null||O===62?I(O):Ne(O)?(c=A,Q(O)):(e.consume(O),A)}function k(O){return O===null?r(O):O===63?(e.consume(O),z):Ne(O)?(c=k,Q(O)):(e.consume(O),k)}function z(O){return O===62?I(O):k(O)}function L(O){return sr(O)?(e.consume(O),N):r(O)}function N(O){return O===45||bn(O)?(e.consume(O),N):j(O)}function j(O){return Ne(O)?(c=j,Q(O)):We(O)?(e.consume(O),j):I(O)}function $(O){return O===45||bn(O)?(e.consume(O),$):O===47||O===62||rn(O)?W(O):r(O)}function W(O){return O===47?(e.consume(O),I):O===58||O===95||sr(O)?(e.consume(O),J):Ne(O)?(c=W,Q(O)):We(O)?(e.consume(O),W):I(O)}function J(O){return O===45||O===46||O===58||O===95||bn(O)?(e.consume(O),J):X(O)}function X(O){return O===61?(e.consume(O),Z):Ne(O)?(c=X,Q(O)):We(O)?(e.consume(O),X):W(O)}function Z(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(e.consume(O),l=O,ce):Ne(O)?(c=Z,Q(O)):We(O)?(e.consume(O),Z):(e.consume(O),q)}function ce(O){return O===l?(e.consume(O),l=void 0,ae):O===null?r(O):Ne(O)?(c=ce,Q(O)):(e.consume(O),ce)}function q(O){return O===null||O===34||O===39||O===60||O===61||O===96?r(O):O===47||O===62||rn(O)?W(O):(e.consume(O),q)}function ae(O){return O===47||O===62||rn(O)?W(O):r(O)}function I(O){return O===62?(e.consume(O),e.exit("htmlTextData"),e.exit("htmlText"),t):r(O)}function Q(O){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),te}function te(O){return We(O)?st(e,se,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):se(O)}function se(O){return e.enter("htmlTextData"),c(O)}}a(H5,"tokenizeHtmlText");const wg={name:"labelEnd",resolveAll:G5,resolveTo:$5,tokenize:Y5},F5={tokenize:K5},q5={tokenize:Q5},V5={tokenize:X5};function G5(e){let t=-1;const r=[];for(;++t<e.length;){const o=e[t][1];if(r.push(e[t]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const l=o.type==="labelImage"?4:2;o.type="data",t+=l}}return e.length!==r.length&&gr(e,0,e.length,r),e}a(G5,"resolveAllLabelEnd");function $5(e,t){let r=e.length,o=0,l,u,c,d;for(;r--;)if(l=e[r][1],u){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(u=r,l.type!=="labelLink")){o=2;break}}else l.type==="labelEnd"&&(c=r);const h={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[u+o+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",h,t],["enter",p,t]],d=Nn(d,e.slice(u+1,u+o+3)),d=Nn(d,[["enter",m,t]]),d=Nn(d,xg(t.parser.constructs.insideSpan.null,e.slice(u+o+4,c-3),t)),d=Nn(d,[["exit",m,t],e[c-2],e[c-1],["exit",p,t]]),d=Nn(d,e.slice(c+1)),d=Nn(d,[["exit",h,t]]),gr(e,u,e.length,d),e}a($5,"resolveToLabelEnd");function Y5(e,t,r){const o=this;let l=o.events.length,u,c;for(;l--;)if((o.events[l][1].type==="labelImage"||o.events[l][1].type==="labelLink")&&!o.events[l][1]._balanced){u=o.events[l][1];break}return d;function d(b){return u?u._inactive?y(b):(c=o.parser.defined.includes(da(o.sliceSerialize({start:u.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),h):r(b)}function h(b){return b===40?e.attempt(F5,m,c?m:y)(b):b===91?e.attempt(q5,m,c?p:y)(b):c?m(b):y(b)}function p(b){return e.attempt(V5,m,y)(b)}function m(b){return t(b)}function y(b){return u._balanced=!0,r(b)}}a(Y5,"tokenizeLabelEnd");function K5(e,t,r){return o;function o(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),l}function l(y){return rn(y)?Yl(e,u)(y):u(y)}function u(y){return y===41?m(y):lR(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return rn(y)?Yl(e,h)(y):m(y)}function d(y){return r(y)}function h(y){return y===34||y===39||y===40?uR(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):m(y)}function p(y){return rn(y)?Yl(e,m)(y):m(y)}function m(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),t):r(y)}}a(K5,"tokenizeResource");function Q5(e,t,r){const o=this;return l;function l(d){return sR.call(o,e,u,c,"reference","referenceMarker","referenceString")(d)}function u(d){return o.parser.defined.includes(da(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function c(d){return r(d)}}a(Q5,"tokenizeReferenceFull");function X5(e,t,r){return o;function o(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),l}function l(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),t):r(u)}}a(X5,"tokenizeReferenceCollapsed");const W5={name:"labelStartImage",resolveAll:wg.resolveAll,tokenize:Z5};function Z5(e,t,r){const o=this;return l;function l(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),u}function u(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):t(d)}}a(Z5,"tokenizeLabelStartImage");const J5={name:"labelStartLink",resolveAll:wg.resolveAll,tokenize:ej};function ej(e,t,r){const o=this;return l;function l(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(c):t(c)}}a(ej,"tokenizeLabelStartLink");const ap={name:"lineEnding",tokenize:tj};function tj(e,t){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),st(e,t,"linePrefix")}}a(tj,"tokenizeLineEnding");const ic={name:"thematicBreak",tokenize:nj};function nj(e,t,r){let o=0,l;return u;function u(p){return e.enter("thematicBreak"),c(p)}function c(p){return l=p,d(p)}function d(p){return p===l?(e.enter("thematicBreakSequence"),h(p)):o>=3&&(p===null||Ne(p))?(e.exit("thematicBreak"),t(p)):r(p)}function h(p){return p===l?(e.consume(p),o++,h):(e.exit("thematicBreakSequence"),We(p)?st(e,d,"whitespace")(p):d(p))}}a(nj,"tokenizeThematicBreak");const tn={continuation:{tokenize:aj},exit:sj,name:"list",tokenize:oj},rj={partial:!0,tokenize:uj},ij={partial:!0,tokenize:lj};function oj(e,t,r){const o=this,l=o.events[o.events.length-1];let u=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return d;function d(x){const E=o.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!o.containerState.marker||x===o.containerState.marker:om(x)){if(o.containerState.type||(o.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(ic,r,p)(x):p(x);if(!o.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(x)}return r(x)}function h(x){return om(x)&&++c<10?(e.consume(x),h):(!o.interrupt||c<2)&&(o.containerState.marker?x===o.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),p(x)):r(x)}function p(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||x,e.check(rf,o.interrupt?r:m,e.attempt(rj,b,y))}function m(x){return o.containerState.initialBlankLine=!0,u++,b(x)}function y(x){return We(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),b):r(x)}function b(x){return o.containerState.size=u+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}a(oj,"tokenizeListStart");function aj(e,t,r){const o=this;return o.containerState._closeFlow=void 0,e.check(rf,l,u);function l(d){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,st(e,t,"listItemIndent",o.containerState.size+1)(d)}a(l,"onBlank");function u(d){return o.containerState.furtherBlankLines||!We(d)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,c(d)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(ij,t,c)(d))}a(u,"notBlank");function c(d){return o.containerState._closeFlow=!0,o.interrupt=void 0,st(e,e.attempt(tn,t,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}a(c,"notInCurrentItem")}a(aj,"tokenizeListContinuation");function lj(e,t,r){const o=this;return st(e,l,"listItemIndent",o.containerState.size+1);function l(u){const c=o.events[o.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===o.containerState.size?t(u):r(u)}}a(lj,"tokenizeIndent");function sj(e){e.exit(this.containerState.type)}a(sj,"tokenizeListEnd");function uj(e,t,r){const o=this;return st(e,l,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(u){const c=o.events[o.events.length-1];return!We(u)&&c&&c[1].type==="listItemPrefixWhitespace"?t(u):r(u)}}a(uj,"tokenizeListItemPrefixWhitespace");const RS={name:"setextUnderline",resolveTo:cj,tokenize:fj};function cj(e,t){let r=e.length,o,l,u;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){o=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!u&&e[r][1].type==="definition"&&(u=r);const c={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",u?(e.splice(l,0,["enter",c,t]),e.splice(u+1,0,["exit",e[o][1],t]),e[o][1].end={...e[u][1].end}):e[o][1]=c,e.push(["exit",c,t]),e}a(cj,"resolveToSetextUnderline");function fj(e,t,r){const o=this;let l;return u;function u(p){let m=o.events.length,y;for(;m--;)if(o.events[m][1].type!=="lineEnding"&&o.events[m][1].type!=="linePrefix"&&o.events[m][1].type!=="content"){y=o.events[m][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||y)?(e.enter("setextHeadingLine"),l=p,c(p)):r(p)}function c(p){return e.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===l?(e.consume(p),d):(e.exit("setextHeadingLineSequence"),We(p)?st(e,h,"lineSuffix")(p):h(p))}function h(p){return p===null||Ne(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}a(fj,"tokenizeSetextUnderline");const dj={tokenize:hj};function hj(e){const t=this,r=e.attempt(rf,o,e.attempt(this.parser.constructs.flowInitial,l,st(e,e.attempt(this.parser.constructs.flow,l,e.attempt(v5,l)),"linePrefix")));return r;function o(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function l(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,r}}a(hj,"initializeFlow");const pj={resolveAll:fR()},mj=cR("string"),gj=cR("text");function cR(e){return{resolveAll:fR(e==="text"?yj:void 0),tokenize:t};function t(r){const o=this,l=this.parser.constructs[e],u=r.attempt(l,c,d);return c;function c(m){return p(m)?u(m):d(m)}function d(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),h}function h(m){return p(m)?(r.exit("data"),u(m)):(r.consume(m),h)}function p(m){if(m===null)return!0;const y=l[m];let b=-1;if(y)for(;++b<y.length;){const x=y[b];if(!x.previous||x.previous.call(o,o.previous))return!0}return!1}}}a(cR,"initializeFactory");function fR(e){return t;function t(r,o){let l=-1,u;for(;++l<=r.length;)u===void 0?r[l]&&r[l][1].type==="data"&&(u=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==u+2&&(r[u][1].end=r[l-1][1].end,r.splice(u+2,l-u-2),l=u+2),u=void 0);return e?e(r,o):r}}a(fR,"createResolver");function yj(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const o=e[r-1][1],l=t.sliceStream(o);let u=l.length,c=-1,d=0,h;for(;u--;){const p=l[u];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(p===-2)h=!0,d++;else if(p!==-1){u++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const p={type:r===e.length||h||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:o.start._bufferIndex+c,_index:o.start._index+u,line:o.end.line,column:o.end.column-d,offset:o.end.offset-d},end:{...o.end}};o.end={...p.start},o.start.offset===o.end.offset?Object.assign(o,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}a(yj,"resolveAllLineSuffixes");const vj={42:tn,43:tn,45:tn,48:tn,49:tn,50:tn,51:tn,52:tn,53:tn,54:tn,55:tn,56:tn,57:tn,62:rR},bj={91:E5},Sj={[-2]:op,[-1]:op,32:op},xj={35:M5,42:ic,45:[RS,ic],60:N5,61:RS,95:ic,96:CS,126:CS},wj={38:oR,92:iR},Ej={[-5]:ap,[-4]:ap,[-3]:ap,33:W5,38:oR,42:am,60:[JI,B5],91:J5,92:[O5,iR],93:wg,95:am,96:d5},Cj={null:[am,pj]},Tj={null:[42,95]},Rj={null:[]},Oj=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Tj,contentInitial:bj,disable:Rj,document:vj,flow:xj,flowInitial:Sj,insideSpan:Cj,string:wj,text:Ej},Symbol.toStringTag,{value:"Module"}));function Aj(e,t,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},u=[];let c=[],d=[];const h={attempt:j(L),check:j(N),consume:A,enter:k,exit:z,interrupt:j(N,{interrupt:!0})},p={code:null,containerState:{},defineSkip:w,events:[],now:E,parser:e,previous:null,sliceSerialize:b,sliceStream:x,write:y};let m=t.tokenize.call(p,h);return t.resolveAll&&u.push(t),p;function y(X){return c=Nn(c,X),R(),c[c.length-1]!==null?[]:($(t,0),p.events=xg(u,p.events,p),p.events)}a(y,"write");function b(X,Z){return _j(x(X),Z)}a(b,"sliceSerialize");function x(X){return Mj(c,X)}a(x,"sliceStream");function E(){const{_bufferIndex:X,_index:Z,line:ce,column:q,offset:ae}=o;return{_bufferIndex:X,_index:Z,line:ce,column:q,offset:ae}}a(E,"now");function w(X){l[X.line]=X.column,J()}a(w,"defineSkip");function R(){let X;for(;o._index<c.length;){const Z=c[o._index];if(typeof Z=="string")for(X=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===X&&o._bufferIndex<Z.length;)C(Z.charCodeAt(o._bufferIndex));else C(Z)}}a(R,"main");function C(X){m=m(X)}a(C,"go");function A(X){Ne(X)?(o.line++,o.column=1,o.offset+=X===-3?2:1,J()):X!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===c[o._index].length&&(o._bufferIndex=-1,o._index++)),p.previous=X}a(A,"consume");function k(X,Z){const ce=Z||{};return ce.type=X,ce.start=E(),p.events.push(["enter",ce,p]),d.push(ce),ce}a(k,"enter");function z(X){const Z=d.pop();return Z.end=E(),p.events.push(["exit",Z,p]),Z}a(z,"exit");function L(X,Z){$(X,Z.from)}a(L,"onsuccessfulconstruct");function N(X,Z){Z.restore()}a(N,"onsuccessfulcheck");function j(X,Z){return ce;function ce(q,ae,I){let Q,te,se,O;return Array.isArray(q)?de(q):"tokenize"in q?de([q]):Y(q);function Y(oe){return K;function K(fe){const Ce=fe!==null&&oe[fe],Te=fe!==null&&oe.null,Pe=[...Array.isArray(Ce)?Ce:Ce?[Ce]:[],...Array.isArray(Te)?Te:Te?[Te]:[]];return de(Pe)(fe)}}function de(oe){return Q=oe,te=0,oe.length===0?I:M(oe[te])}function M(oe){return K;function K(fe){return O=W(),se=oe,oe.partial||(p.currentConstruct=oe),oe.name&&p.parser.constructs.disable.null.includes(oe.name)?me():oe.tokenize.call(Z?Object.assign(Object.create(p),Z):p,h,ne,me)(fe)}}function ne(oe){return X(se,O),ae}function me(oe){return O.restore(),++te<Q.length?M(Q[te]):I}}}a(j,"constructFactory");function $(X,Z){X.resolveAll&&!u.includes(X)&&u.push(X),X.resolve&&gr(p.events,Z,p.events.length-Z,X.resolve(p.events.slice(Z),p)),X.resolveTo&&(p.events=X.resolveTo(p.events,p))}a($,"addResult");function W(){const X=E(),Z=p.previous,ce=p.currentConstruct,q=p.events.length,ae=Array.from(d);return{from:q,restore:I};function I(){o=X,p.previous=Z,p.currentConstruct=ce,p.events.length=q,d=ae,J()}}a(W,"store");function J(){o.line in l&&o.column<2&&(o.column=l[o.line],o.offset+=l[o.line]-1)}a(J,"accountForPotentialSkip")}a(Aj,"createTokenizer");function Mj(e,t){const r=t.start._index,o=t.start._bufferIndex,l=t.end._index,u=t.end._bufferIndex;let c;if(r===l)c=[e[r].slice(o,u)];else{if(c=e.slice(r,l),o>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(o):c.shift()}u>0&&c.push(e[l].slice(0,u))}return c}a(Mj,"sliceChunks");function _j(e,t){let r=-1;const o=[];let l;for(;++r<e.length;){const u=e[r];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
534
534
  `;break}case-3:{c=`\r
535
- `;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&l)continue;c=" ";break}default:c=String.fromCharCode(u)}l=u===-2,o.push(c)}return o.join("")}a(_j,"serializeChunks");function kj(e){const o={constructs:jI([Oj,...(e||{}).extensions||[]]),content:l($I),defined:[],document:l(KI),flow:l(dj),lazy:{},string:l(mj),text:l(gj)};return o;function l(u){return c;function c(d){return Aj(o,u,d)}}}a(kj,"parse");function Dj(e){for(;!aR(e););return e}a(Dj,"postprocess");const OS=/[\0\t\n\r]/g;function Nj(){let e=1,t="",r=!0,o;return l;function l(u,c,d){const p=[];let h,m,y,b,x;for(u=t+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),y=0,t="",r&&(u.charCodeAt(0)===65279&&y++,r=void 0);y<u.length;){if(OS.lastIndex=y,h=OS.exec(u),b=h&&h.index!==void 0?h.index:u.length,x=u.charCodeAt(b),!h){t=u.slice(y);break}if(x===10&&y===b&&o)p.push(-3),o=void 0;else switch(o&&(p.push(-5),o=void 0),y<b&&(p.push(u.slice(y,b)),e+=b-y),x){case 0:{p.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,p.push(-2);e++<m;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:o=!0,e=1}y=b+1}return d&&(o&&p.push(-5),t&&p.push(t),p.push(null)),p}}a(Nj,"preprocess");const Pj=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Lj(e){return e.replace(Pj,zj)}a(Lj,"decodeString");function zj(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),u=l===120||l===88;return nR(r.slice(u?2:1),u?16:10)}return Sg(r)||e}a(zj,"decode");const dR={}.hasOwnProperty;function Ij(e,t,r){return typeof t!="string"&&(r=t,t=void 0),jj(r)(Dj(kj(r).document().write(Nj()(e,t,!0))))}a(Ij,"fromMarkdown");function jj(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u($r),autolinkProtocol:W,autolinkEmail:W,atxHeading:u(Kt),blockQuote:u(Te),characterEscape:W,characterReference:W,codeFenced:u(Pe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(Pe,c),codeText:u(qe,c),codeTextData:W,data:W,codeFlowValue:W,definition:u(Ie),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(ut),hardBreakEscape:u(an),hardBreakTrailing:u(an),htmlFlow:u(St,c),htmlFlowData:W,htmlText:u(St,c),htmlTextData:W,image:u(At),label:c,link:u($r),listItem:u(xn),listItemValue:b,listOrdered:u(Ai,y),listUnordered:u(Ai),paragraph:u(fo),reference:M,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(Kt),strong:u(po),thematicBreak:u(hf)},exit:{atxHeading:p(),atxHeadingSequence:L,autolink:p(),autolinkEmail:Ce,autolinkProtocol:fe,blockQuote:p(),characterEscapeValue:J,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:oe,characterReference:K,codeFenced:p(R),codeFencedFence:w,codeFencedFenceInfo:x,codeFencedFenceMeta:E,codeFlowValue:J,codeIndented:p(C),codeText:p(ae),codeTextData:J,data:J,definition:p(),definitionDestinationString:z,definitionLabelString:A,definitionTitleString:k,emphasis:p(),hardBreakEscape:p(Z),hardBreakTrailing:p(Z),htmlFlow:p(ce),htmlFlowData:J,htmlText:p(q),htmlTextData:J,image:p(Q),label:se,labelText:te,lineEnding:X,link:p(I),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ne,resourceDestinationString:O,resourceTitleString:Y,resource:de,setextHeading:p($),setextHeadingLineSequence:j,setextHeadingText:N,strong:p(),thematicBreak:p()}};pR(t,(e||{}).mdastExtensions||[]);const r={};return o;function o(re){let pe={type:"root",children:[]};const Oe={stack:[pe],tokenStack:[],config:t,enter:d,exit:h,buffer:c,resume:m,data:r},ke=[];let Je=-1;for(;++Je<re.length;)if(re[Je][1].type==="listOrdered"||re[Je][1].type==="listUnordered")if(re[Je][0]==="enter")ke.push(Je);else{const ln=ke.pop();Je=l(re,ln,Je)}for(Je=-1;++Je<re.length;){const ln=t[re[Je][0]];dR.call(ln,re[Je][1].type)&&ln[re[Je][1].type].call(Object.assign({sliceSerialize:re[Je][2].sliceSerialize},Oe),re[Je][1])}if(Oe.tokenStack.length>0){const ln=Oe.tokenStack[Oe.tokenStack.length-1];(ln[1]||AS).call(Oe,void 0,ln[0])}for(pe.position={start:gi(re.length>0?re[0][1].start:{line:1,column:1,offset:0}),end:gi(re.length>0?re[re.length-2][1].end:{line:1,column:1,offset:0})},Je=-1;++Je<t.transforms.length;)pe=t.transforms[Je](pe)||pe;return pe}function l(re,pe,Oe){let ke=pe-1,Je=-1,ln=!1,xr,Qt,Zn,sn;for(;++ke<=Oe;){const Mt=re[ke];switch(Mt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Mt[0]==="enter"?Je++:Je--,sn=void 0;break}case"lineEndingBlank":{Mt[0]==="enter"&&(xr&&!sn&&!Je&&!Zn&&(Zn=ke),sn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:sn=void 0}if(!Je&&Mt[0]==="enter"&&Mt[1].type==="listItemPrefix"||Je===-1&&Mt[0]==="exit"&&(Mt[1].type==="listUnordered"||Mt[1].type==="listOrdered")){if(xr){let wn=ke;for(Qt=void 0;wn--;){const jn=re[wn];if(jn[1].type==="lineEnding"||jn[1].type==="lineEndingBlank"){if(jn[0]==="exit")continue;Qt&&(re[Qt][1].type="lineEndingBlank",ln=!0),jn[1].type="lineEnding",Qt=wn}else if(!(jn[1].type==="linePrefix"||jn[1].type==="blockQuotePrefix"||jn[1].type==="blockQuotePrefixWhitespace"||jn[1].type==="blockQuoteMarker"||jn[1].type==="listItemIndent"))break}Zn&&(!Qt||Zn<Qt)&&(xr._spread=!0),xr.end=Object.assign({},Qt?re[Qt][1].start:Mt[1].end),re.splice(Qt||ke,0,["exit",xr,Mt[2]]),ke++,Oe++}if(Mt[1].type==="listItemPrefix"){const wn={type:"listItem",_spread:!1,start:Object.assign({},Mt[1].start),end:void 0};xr=wn,re.splice(ke,0,["enter",wn,Mt[2]]),ke++,Oe++,Zn=void 0,sn=!0}}}return re[pe][1]._spread=ln,Oe}function u(re,pe){return Oe;function Oe(ke){d.call(this,re(ke),ke),pe&&pe.call(this,ke)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(re,pe,Oe){this.stack[this.stack.length-1].children.push(re),this.stack.push(re),this.tokenStack.push([pe,Oe||void 0]),re.position={start:gi(pe.start),end:void 0}}function p(re){return pe;function pe(Oe){re&&re.call(this,Oe),h.call(this,Oe)}}function h(re,pe){const Oe=this.stack.pop(),ke=this.tokenStack.pop();if(ke)ke[0].type!==re.type&&(pe?pe.call(this,re,ke[0]):(ke[1]||AS).call(this,re,ke[0]));else throw new Error("Cannot close `"+re.type+"` ("+$l({start:re.start,end:re.end})+"): it’s not open");Oe.position.end=gi(re.end)}function m(){return zI(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function b(re){if(this.data.expectingFirstListItemValue){const pe=this.stack[this.stack.length-2];pe.start=Number.parseInt(this.sliceSerialize(re),10),this.data.expectingFirstListItemValue=void 0}}function x(){const re=this.resume(),pe=this.stack[this.stack.length-1];pe.lang=re}function E(){const re=this.resume(),pe=this.stack[this.stack.length-1];pe.meta=re}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const re=this.resume(),pe=this.stack[this.stack.length-1];pe.value=re.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const re=this.resume(),pe=this.stack[this.stack.length-1];pe.value=re.replace(/(\r?\n|\r)$/g,"")}function A(re){const pe=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=pe,Oe.identifier=da(this.sliceSerialize(re)).toLowerCase()}function k(){const re=this.resume(),pe=this.stack[this.stack.length-1];pe.title=re}function z(){const re=this.resume(),pe=this.stack[this.stack.length-1];pe.url=re}function L(re){const pe=this.stack[this.stack.length-1];if(!pe.depth){const Oe=this.sliceSerialize(re).length;pe.depth=Oe}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function j(re){const pe=this.stack[this.stack.length-1];pe.depth=this.sliceSerialize(re).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function W(re){const Oe=this.stack[this.stack.length-1].children;let ke=Oe[Oe.length-1];(!ke||ke.type!=="text")&&(ke=pf(),ke.position={start:gi(re.start),end:void 0},Oe.push(ke)),this.stack.push(ke)}function J(re){const pe=this.stack.pop();pe.value+=this.sliceSerialize(re),pe.position.end=gi(re.end)}function X(re){const pe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Oe=pe.children[pe.children.length-1];Oe.position.end=gi(re.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(pe.type)&&(W.call(this,re),J.call(this,re))}function Z(){this.data.atHardBreak=!0}function ce(){const re=this.resume(),pe=this.stack[this.stack.length-1];pe.value=re}function q(){const re=this.resume(),pe=this.stack[this.stack.length-1];pe.value=re}function ae(){const re=this.resume(),pe=this.stack[this.stack.length-1];pe.value=re}function I(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const pe=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=pe,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function Q(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const pe=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=pe,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function te(re){const pe=this.sliceSerialize(re),Oe=this.stack[this.stack.length-2];Oe.label=Lj(pe),Oe.identifier=da(pe).toLowerCase()}function se(){const re=this.stack[this.stack.length-1],pe=this.resume(),Oe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Oe.type==="link"){const ke=re.children;Oe.children=ke}else Oe.alt=pe}function O(){const re=this.resume(),pe=this.stack[this.stack.length-1];pe.url=re}function Y(){const re=this.resume(),pe=this.stack[this.stack.length-1];pe.title=re}function de(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function ne(re){const pe=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=pe,Oe.identifier=da(this.sliceSerialize(re)).toLowerCase(),this.data.referenceType="full"}function me(re){this.data.characterReferenceType=re.type}function oe(re){const pe=this.sliceSerialize(re),Oe=this.data.characterReferenceType;let ke;Oe?(ke=nR(pe,Oe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ke=Sg(pe);const Je=this.stack[this.stack.length-1];Je.value+=ke}function K(re){const pe=this.stack.pop();pe.position.end=gi(re.end)}function fe(re){J.call(this,re);const pe=this.stack[this.stack.length-1];pe.url=this.sliceSerialize(re)}function Ce(re){J.call(this,re);const pe=this.stack[this.stack.length-1];pe.url="mailto:"+this.sliceSerialize(re)}function Te(){return{type:"blockquote",children:[]}}function Pe(){return{type:"code",lang:null,meta:null,value:""}}function qe(){return{type:"inlineCode",value:""}}function Ie(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ut(){return{type:"emphasis",children:[]}}function Kt(){return{type:"heading",depth:0,children:[]}}function an(){return{type:"break"}}function St(){return{type:"html",value:""}}function At(){return{type:"image",title:null,url:"",alt:null}}function $r(){return{type:"link",title:null,url:"",children:[]}}function Ai(re){return{type:"list",ordered:re.type==="listOrdered",start:null,spread:re._spread,children:[]}}function xn(re){return{type:"listItem",spread:re._spread,checked:null,children:[]}}function fo(){return{type:"paragraph",children:[]}}function po(){return{type:"strong",children:[]}}function pf(){return{type:"text",value:""}}function hf(){return{type:"thematicBreak"}}}a(jj,"compiler");function gi(e){return{line:e.line,column:e.column,offset:e.offset}}a(gi,"point");function pR(e,t){let r=-1;for(;++r<t.length;){const o=t[r];Array.isArray(o)?pR(e,o):Uj(e,o)}}a(pR,"configure");function Uj(e,t){let r;for(r in t)if(dR.call(t,r))switch(r){case"canContainEols":{const o=t[r];o&&e[r].push(...o);break}case"transforms":{const o=t[r];o&&e[r].push(...o);break}case"enter":case"exit":{const o=t[r];o&&Object.assign(e[r],o);break}}}a(Uj,"extension");function AS(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$l({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$l({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$l({start:t.start,end:t.end})+") is still open")}a(AS,"defaultOnError");function Bj(e){const t=this;t.parser=r;function r(o){return Ij(o,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}a(r,"parser")}a(Bj,"remarkParse");function Hj(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}a(Hj,"blockquote");function Fj(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
535
+ `;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&l)continue;c=" ";break}default:c=String.fromCharCode(u)}l=u===-2,o.push(c)}return o.join("")}a(_j,"serializeChunks");function kj(e){const o={constructs:jI([Oj,...(e||{}).extensions||[]]),content:l($I),defined:[],document:l(KI),flow:l(dj),lazy:{},string:l(mj),text:l(gj)};return o;function l(u){return c;function c(d){return Aj(o,u,d)}}}a(kj,"parse");function Dj(e){for(;!aR(e););return e}a(Dj,"postprocess");const OS=/[\0\t\n\r]/g;function Nj(){let e=1,t="",r=!0,o;return l;function l(u,c,d){const h=[];let p,m,y,b,x;for(u=t+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),y=0,t="",r&&(u.charCodeAt(0)===65279&&y++,r=void 0);y<u.length;){if(OS.lastIndex=y,p=OS.exec(u),b=p&&p.index!==void 0?p.index:u.length,x=u.charCodeAt(b),!p){t=u.slice(y);break}if(x===10&&y===b&&o)h.push(-3),o=void 0;else switch(o&&(h.push(-5),o=void 0),y<b&&(h.push(u.slice(y,b)),e+=b-y),x){case 0:{h.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,h.push(-2);e++<m;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:o=!0,e=1}y=b+1}return d&&(o&&h.push(-5),t&&h.push(t),h.push(null)),h}}a(Nj,"preprocess");const Pj=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Lj(e){return e.replace(Pj,zj)}a(Lj,"decodeString");function zj(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),u=l===120||l===88;return nR(r.slice(u?2:1),u?16:10)}return Sg(r)||e}a(zj,"decode");const dR={}.hasOwnProperty;function Ij(e,t,r){return typeof t!="string"&&(r=t,t=void 0),jj(r)(Dj(kj(r).document().write(Nj()(e,t,!0))))}a(Ij,"fromMarkdown");function jj(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u($r),autolinkProtocol:W,autolinkEmail:W,atxHeading:u(Kt),blockQuote:u(Te),characterEscape:W,characterReference:W,codeFenced:u(Pe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(Pe,c),codeText:u(qe,c),codeTextData:W,data:W,codeFlowValue:W,definition:u(Ie),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(ut),hardBreakEscape:u(an),hardBreakTrailing:u(an),htmlFlow:u(St,c),htmlFlowData:W,htmlText:u(St,c),htmlTextData:W,image:u(At),label:c,link:u($r),listItem:u(xn),listItemValue:b,listOrdered:u(Ai,y),listUnordered:u(Ai),paragraph:u(fo),reference:M,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(Kt),strong:u(ho),thematicBreak:u(pf)},exit:{atxHeading:h(),atxHeadingSequence:L,autolink:h(),autolinkEmail:Ce,autolinkProtocol:fe,blockQuote:h(),characterEscapeValue:J,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:oe,characterReference:K,codeFenced:h(R),codeFencedFence:w,codeFencedFenceInfo:x,codeFencedFenceMeta:E,codeFlowValue:J,codeIndented:h(C),codeText:h(ae),codeTextData:J,data:J,definition:h(),definitionDestinationString:z,definitionLabelString:A,definitionTitleString:k,emphasis:h(),hardBreakEscape:h(Z),hardBreakTrailing:h(Z),htmlFlow:h(ce),htmlFlowData:J,htmlText:h(q),htmlTextData:J,image:h(Q),label:se,labelText:te,lineEnding:X,link:h(I),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:ne,resourceDestinationString:O,resourceTitleString:Y,resource:de,setextHeading:h($),setextHeadingLineSequence:j,setextHeadingText:N,strong:h(),thematicBreak:h()}};hR(t,(e||{}).mdastExtensions||[]);const r={};return o;function o(re){let he={type:"root",children:[]};const Oe={stack:[he],tokenStack:[],config:t,enter:d,exit:p,buffer:c,resume:m,data:r},ke=[];let Je=-1;for(;++Je<re.length;)if(re[Je][1].type==="listOrdered"||re[Je][1].type==="listUnordered")if(re[Je][0]==="enter")ke.push(Je);else{const ln=ke.pop();Je=l(re,ln,Je)}for(Je=-1;++Je<re.length;){const ln=t[re[Je][0]];dR.call(ln,re[Je][1].type)&&ln[re[Je][1].type].call(Object.assign({sliceSerialize:re[Je][2].sliceSerialize},Oe),re[Je][1])}if(Oe.tokenStack.length>0){const ln=Oe.tokenStack[Oe.tokenStack.length-1];(ln[1]||AS).call(Oe,void 0,ln[0])}for(he.position={start:gi(re.length>0?re[0][1].start:{line:1,column:1,offset:0}),end:gi(re.length>0?re[re.length-2][1].end:{line:1,column:1,offset:0})},Je=-1;++Je<t.transforms.length;)he=t.transforms[Je](he)||he;return he}function l(re,he,Oe){let ke=he-1,Je=-1,ln=!1,xr,Qt,Zn,sn;for(;++ke<=Oe;){const Mt=re[ke];switch(Mt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Mt[0]==="enter"?Je++:Je--,sn=void 0;break}case"lineEndingBlank":{Mt[0]==="enter"&&(xr&&!sn&&!Je&&!Zn&&(Zn=ke),sn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:sn=void 0}if(!Je&&Mt[0]==="enter"&&Mt[1].type==="listItemPrefix"||Je===-1&&Mt[0]==="exit"&&(Mt[1].type==="listUnordered"||Mt[1].type==="listOrdered")){if(xr){let wn=ke;for(Qt=void 0;wn--;){const jn=re[wn];if(jn[1].type==="lineEnding"||jn[1].type==="lineEndingBlank"){if(jn[0]==="exit")continue;Qt&&(re[Qt][1].type="lineEndingBlank",ln=!0),jn[1].type="lineEnding",Qt=wn}else if(!(jn[1].type==="linePrefix"||jn[1].type==="blockQuotePrefix"||jn[1].type==="blockQuotePrefixWhitespace"||jn[1].type==="blockQuoteMarker"||jn[1].type==="listItemIndent"))break}Zn&&(!Qt||Zn<Qt)&&(xr._spread=!0),xr.end=Object.assign({},Qt?re[Qt][1].start:Mt[1].end),re.splice(Qt||ke,0,["exit",xr,Mt[2]]),ke++,Oe++}if(Mt[1].type==="listItemPrefix"){const wn={type:"listItem",_spread:!1,start:Object.assign({},Mt[1].start),end:void 0};xr=wn,re.splice(ke,0,["enter",wn,Mt[2]]),ke++,Oe++,Zn=void 0,sn=!0}}}return re[he][1]._spread=ln,Oe}function u(re,he){return Oe;function Oe(ke){d.call(this,re(ke),ke),he&&he.call(this,ke)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(re,he,Oe){this.stack[this.stack.length-1].children.push(re),this.stack.push(re),this.tokenStack.push([he,Oe||void 0]),re.position={start:gi(he.start),end:void 0}}function h(re){return he;function he(Oe){re&&re.call(this,Oe),p.call(this,Oe)}}function p(re,he){const Oe=this.stack.pop(),ke=this.tokenStack.pop();if(ke)ke[0].type!==re.type&&(he?he.call(this,re,ke[0]):(ke[1]||AS).call(this,re,ke[0]));else throw new Error("Cannot close `"+re.type+"` ("+$l({start:re.start,end:re.end})+"): it’s not open");Oe.position.end=gi(re.end)}function m(){return zI(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function b(re){if(this.data.expectingFirstListItemValue){const he=this.stack[this.stack.length-2];he.start=Number.parseInt(this.sliceSerialize(re),10),this.data.expectingFirstListItemValue=void 0}}function x(){const re=this.resume(),he=this.stack[this.stack.length-1];he.lang=re}function E(){const re=this.resume(),he=this.stack[this.stack.length-1];he.meta=re}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const re=this.resume(),he=this.stack[this.stack.length-1];he.value=re.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const re=this.resume(),he=this.stack[this.stack.length-1];he.value=re.replace(/(\r?\n|\r)$/g,"")}function A(re){const he=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=he,Oe.identifier=da(this.sliceSerialize(re)).toLowerCase()}function k(){const re=this.resume(),he=this.stack[this.stack.length-1];he.title=re}function z(){const re=this.resume(),he=this.stack[this.stack.length-1];he.url=re}function L(re){const he=this.stack[this.stack.length-1];if(!he.depth){const Oe=this.sliceSerialize(re).length;he.depth=Oe}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function j(re){const he=this.stack[this.stack.length-1];he.depth=this.sliceSerialize(re).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function W(re){const Oe=this.stack[this.stack.length-1].children;let ke=Oe[Oe.length-1];(!ke||ke.type!=="text")&&(ke=hf(),ke.position={start:gi(re.start),end:void 0},Oe.push(ke)),this.stack.push(ke)}function J(re){const he=this.stack.pop();he.value+=this.sliceSerialize(re),he.position.end=gi(re.end)}function X(re){const he=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Oe=he.children[he.children.length-1];Oe.position.end=gi(re.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(he.type)&&(W.call(this,re),J.call(this,re))}function Z(){this.data.atHardBreak=!0}function ce(){const re=this.resume(),he=this.stack[this.stack.length-1];he.value=re}function q(){const re=this.resume(),he=this.stack[this.stack.length-1];he.value=re}function ae(){const re=this.resume(),he=this.stack[this.stack.length-1];he.value=re}function I(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const he=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=he,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function Q(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const he=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=he,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function te(re){const he=this.sliceSerialize(re),Oe=this.stack[this.stack.length-2];Oe.label=Lj(he),Oe.identifier=da(he).toLowerCase()}function se(){const re=this.stack[this.stack.length-1],he=this.resume(),Oe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Oe.type==="link"){const ke=re.children;Oe.children=ke}else Oe.alt=he}function O(){const re=this.resume(),he=this.stack[this.stack.length-1];he.url=re}function Y(){const re=this.resume(),he=this.stack[this.stack.length-1];he.title=re}function de(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function ne(re){const he=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=he,Oe.identifier=da(this.sliceSerialize(re)).toLowerCase(),this.data.referenceType="full"}function me(re){this.data.characterReferenceType=re.type}function oe(re){const he=this.sliceSerialize(re),Oe=this.data.characterReferenceType;let ke;Oe?(ke=nR(he,Oe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ke=Sg(he);const Je=this.stack[this.stack.length-1];Je.value+=ke}function K(re){const he=this.stack.pop();he.position.end=gi(re.end)}function fe(re){J.call(this,re);const he=this.stack[this.stack.length-1];he.url=this.sliceSerialize(re)}function Ce(re){J.call(this,re);const he=this.stack[this.stack.length-1];he.url="mailto:"+this.sliceSerialize(re)}function Te(){return{type:"blockquote",children:[]}}function Pe(){return{type:"code",lang:null,meta:null,value:""}}function qe(){return{type:"inlineCode",value:""}}function Ie(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ut(){return{type:"emphasis",children:[]}}function Kt(){return{type:"heading",depth:0,children:[]}}function an(){return{type:"break"}}function St(){return{type:"html",value:""}}function At(){return{type:"image",title:null,url:"",alt:null}}function $r(){return{type:"link",title:null,url:"",children:[]}}function Ai(re){return{type:"list",ordered:re.type==="listOrdered",start:null,spread:re._spread,children:[]}}function xn(re){return{type:"listItem",spread:re._spread,checked:null,children:[]}}function fo(){return{type:"paragraph",children:[]}}function ho(){return{type:"strong",children:[]}}function hf(){return{type:"text",value:""}}function pf(){return{type:"thematicBreak"}}}a(jj,"compiler");function gi(e){return{line:e.line,column:e.column,offset:e.offset}}a(gi,"point");function hR(e,t){let r=-1;for(;++r<t.length;){const o=t[r];Array.isArray(o)?hR(e,o):Uj(e,o)}}a(hR,"configure");function Uj(e,t){let r;for(r in t)if(dR.call(t,r))switch(r){case"canContainEols":{const o=t[r];o&&e[r].push(...o);break}case"transforms":{const o=t[r];o&&e[r].push(...o);break}case"enter":case"exit":{const o=t[r];o&&Object.assign(e[r],o);break}}}a(Uj,"extension");function AS(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$l({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$l({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$l({start:t.start,end:t.end})+") is still open")}a(AS,"defaultOnError");function Bj(e){const t=this;t.parser=r;function r(o){return Ij(o,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}a(r,"parser")}a(Bj,"remarkParse");function Hj(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}a(Hj,"blockquote");function Fj(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
536
536
  `}]}a(Fj,"hardBreak");function qj(e,t){const r=t.value?t.value+`
537
- `:"",o={};t.lang&&(o.className=["language-"+t.lang]);let l={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}a(qj,"code");function Vj(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}a(Vj,"strikethrough");function Gj(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}a(Gj,"emphasis");function $j(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",o=String(t.identifier).toUpperCase(),l=Na(o.toLowerCase()),u=e.footnoteOrder.indexOf(o);let c,d=e.footnoteCounts.get(o);d===void 0?(d=0,e.footnoteOrder.push(o),c=e.footnoteOrder.length):c=u+1,d+=1,e.footnoteCounts.set(o,d);const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,p);const h={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(t,h),e.applyData(t,h)}a($j,"footnoteReference");function Yj(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}a(Yj,"heading");function Kj(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}a(Kj,"html");function hR(e,t){const r=t.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+o}];const l=e.all(t),u=l[0];u&&u.type==="text"?u.value="["+u.value:l.unshift({type:"text",value:"["});const c=l[l.length-1];return c&&c.type==="text"?c.value+=o:l.push({type:"text",value:o}),l}a(hR,"revert");function Qj(e,t){const r=String(t.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return hR(e,t);const l={src:Na(o.url||""),alt:t.alt};o.title!==null&&o.title!==void 0&&(l.title=o.title);const u={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,u),e.applyData(t,u)}a(Qj,"imageReference");function Xj(e,t){const r={src:Na(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}a(Xj,"image");function Wj(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,o),e.applyData(t,o)}a(Wj,"inlineCode");function Zj(e,t){const r=String(t.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return hR(e,t);const l={href:Na(o.url||"")};o.title!==null&&o.title!==void 0&&(l.title=o.title);const u={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}a(Zj,"linkReference");function Jj(e,t){const r={href:Na(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}a(Jj,"link");function e9(e,t,r){const o=e.all(t),l=r?t9(r):mR(t),u={},c=[];if(typeof t.checked=="boolean"){const m=o[0];let y;m&&m.type==="element"&&m.tagName==="p"?y=m:(y={type:"element",tagName:"p",properties:{},children:[]},o.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let d=-1;for(;++d<o.length;){const m=o[d];(l||d!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
538
- `}),m.type==="element"&&m.tagName==="p"&&!l?c.push(...m.children):c.push(m)}const p=o[o.length-1];p&&(l||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
539
- `});const h={type:"element",tagName:"li",properties:u,children:c};return e.patch(t,h),e.applyData(t,h)}a(e9,"listItem");function t9(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let o=-1;for(;!t&&++o<r.length;)t=mR(r[o])}return t}a(t9,"listLoose");function mR(e){const t=e.spread;return t??e.children.length>1}a(mR,"listItemLoose");function n9(e,t){const r={},o=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++l<o.length;){const c=o[l];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const u={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(o,!0)};return e.patch(t,u),e.applyData(t,u)}a(n9,"list");function r9(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}a(r9,"paragraph");function i9(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}a(i9,"root");function o9(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}a(o9,"strong");function a9(e,t){const r=e.all(t),o=r.shift(),l=[];if(o){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([o],!0)};e.patch(t.children[0],c),l.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=gg(t.children[1]),p=QT(t.children[t.children.length-1]);d&&p&&(c.position={start:d,end:p}),l.push(c)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)}a(a9,"table");function l9(e,t,r){const o=r?r.children:void 0,u=(o?o.indexOf(t):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:t.children.length;let p=-1;const h=[];for(;++p<d;){const y=t.children[p],b={},x=c?c[p]:void 0;x&&(b.align=x);let E={type:"element",tagName:u,properties:b,children:[]};y&&(E.children=e.all(y),e.patch(y,E),E=e.applyData(y,E)),h.push(E)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,m),e.applyData(t,m)}a(l9,"tableRow");function s9(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}a(s9,"tableCell");const MS=9,_S=32;function u9(e){const t=String(e),r=/\r?\n|\r/g;let o=r.exec(t),l=0;const u=[];for(;o;)u.push(kS(t.slice(l,o.index),l>0,!0),o[0]),l=o.index+o[0].length,o=r.exec(t);return u.push(kS(t.slice(l),l>0,!1)),u.join("")}a(u9,"trimLines");function kS(e,t,r){let o=0,l=e.length;if(t){let u=e.codePointAt(o);for(;u===MS||u===_S;)o++,u=e.codePointAt(o)}if(r){let u=e.codePointAt(l-1);for(;u===MS||u===_S;)l--,u=e.codePointAt(l-1)}return l>o?e.slice(o,l):""}a(kS,"trimLine");function c9(e,t){const r={type:"text",value:u9(String(t.value))};return e.patch(t,r),e.applyData(t,r)}a(c9,"text");function f9(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}a(f9,"thematicBreak");const d9={blockquote:Hj,break:Fj,code:qj,delete:Vj,emphasis:Gj,footnoteReference:$j,heading:Yj,html:Kj,imageReference:Qj,image:Xj,inlineCode:Wj,linkReference:Zj,link:Jj,listItem:e9,list:n9,paragraph:r9,root:i9,strong:o9,table:a9,tableCell:s9,tableRow:l9,text:c9,thematicBreak:f9,toml:Yu,yaml:Yu,definition:Yu,footnoteDefinition:Yu};function Yu(){}a(Yu,"ignore");const gR=-1,of=0,Kl=1,Ec=2,Eg=3,Cg=4,Tg=5,Rg=6,yR=7,vR=8,DS=typeof self=="object"?self:globalThis,p9=a((e,t)=>{const r=a((l,u)=>(e.set(u,l),l),"as"),o=a(l=>{if(e.has(l))return e.get(l);const[u,c]=t[l];switch(u){case of:case gR:return r(c,l);case Kl:{const d=r([],l);for(const p of c)d.push(o(p));return d}case Ec:{const d=r({},l);for(const[p,h]of c)d[o(p)]=o(h);return d}case Eg:return r(new Date(c),l);case Cg:{const{source:d,flags:p}=c;return r(new RegExp(d,p),l)}case Tg:{const d=r(new Map,l);for(const[p,h]of c)d.set(o(p),o(h));return d}case Rg:{const d=r(new Set,l);for(const p of c)d.add(o(p));return d}case yR:{const{name:d,message:p}=c;return r(new DS[d](p),l)}case vR:return r(BigInt(c),l);case"BigInt":return r(Object(BigInt(c)),l);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(new DS[u](c),l)},"unpair");return o},"deserializer"),NS=a(e=>p9(new Map,e)(0),"deserialize"),ia="",{toString:h9}={},{keys:m9}=Object,Bl=a(e=>{const t=typeof e;if(t!=="object"||!e)return[of,t];const r=h9.call(e).slice(8,-1);switch(r){case"Array":return[Kl,ia];case"Object":return[Ec,ia];case"Date":return[Eg,ia];case"RegExp":return[Cg,ia];case"Map":return[Tg,ia];case"Set":return[Rg,ia];case"DataView":return[Kl,r]}return r.includes("Array")?[Kl,r]:r.includes("Error")?[yR,r]:[Ec,r]},"typeOf"),Ku=a(([e,t])=>e===of&&(t==="function"||t==="symbol"),"shouldSkip"),g9=a((e,t,r,o)=>{const l=a((c,d)=>{const p=o.push(c)-1;return r.set(d,p),p},"as"),u=a(c=>{if(r.has(c))return r.get(c);let[d,p]=Bl(c);switch(d){case of:{let m=c;switch(p){case"bigint":d=vR,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);m=null;break;case"undefined":return l([gR],c)}return l([d,m],c)}case Kl:{if(p){let b=c;return p==="DataView"?b=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(b=new Uint8Array(c)),l([p,[...b]],c)}const m=[],y=l([d,m],c);for(const b of c)m.push(u(b));return y}case Ec:{if(p)switch(p){case"BigInt":return l([p,c.toString()],c);case"Boolean":case"Number":case"String":return l([p,c.valueOf()],c)}if(t&&"toJSON"in c)return u(c.toJSON());const m=[],y=l([d,m],c);for(const b of m9(c))(e||!Ku(Bl(c[b])))&&m.push([u(b),u(c[b])]);return y}case Eg:return l([d,c.toISOString()],c);case Cg:{const{source:m,flags:y}=c;return l([d,{source:m,flags:y}],c)}case Tg:{const m=[],y=l([d,m],c);for(const[b,x]of c)(e||!(Ku(Bl(b))||Ku(Bl(x))))&&m.push([u(b),u(x)]);return y}case Rg:{const m=[],y=l([d,m],c);for(const b of c)(e||!Ku(Bl(b)))&&m.push(u(b));return y}}const{message:h}=c;return l([d,{name:p,message:h}],c)},"pair");return u},"serializer"),PS=a((e,{json:t,lossy:r}={})=>{const o=[];return g9(!(t||r),!!t,new Map,o)(e),o},"serialize"),Cc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?NS(PS(e,t)):structuredClone(e):(e,t)=>NS(PS(e,t));function y9(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}a(y9,"defaultFootnoteBackContent");function v9(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}a(v9,"defaultFootnoteBackLabel");function b9(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||y9,o=e.options.footnoteBackLabel||v9,l=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[p]);if(!h)continue;const m=e.all(h),y=String(h.identifier).toUpperCase(),b=Na(y.toLowerCase());let x=0;const E=[],w=e.footnoteCounts.get(y);for(;w!==void 0&&++x<=w;){E.length>0&&E.push({type:"text",value:" "});let A=typeof r=="string"?r:r(p,x);typeof A=="string"&&(A={type:"text",value:A}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(p,x),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const R=m[m.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const A=R.children[R.children.length-1];A&&A.type==="text"?A.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...E)}else m.push(...E);const C={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(m,!0)};e.patch(h,C),d.push(C)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Cc(c),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
537
+ `:"",o={};t.lang&&(o.className=["language-"+t.lang]);let l={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}a(qj,"code");function Vj(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}a(Vj,"strikethrough");function Gj(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}a(Gj,"emphasis");function $j(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",o=String(t.identifier).toUpperCase(),l=Na(o.toLowerCase()),u=e.footnoteOrder.indexOf(o);let c,d=e.footnoteCounts.get(o);d===void 0?(d=0,e.footnoteOrder.push(o),c=e.footnoteOrder.length):c=u+1,d+=1,e.footnoteCounts.set(o,d);const h={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,h);const p={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,p),e.applyData(t,p)}a($j,"footnoteReference");function Yj(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}a(Yj,"heading");function Kj(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}a(Kj,"html");function pR(e,t){const r=t.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+o}];const l=e.all(t),u=l[0];u&&u.type==="text"?u.value="["+u.value:l.unshift({type:"text",value:"["});const c=l[l.length-1];return c&&c.type==="text"?c.value+=o:l.push({type:"text",value:o}),l}a(pR,"revert");function Qj(e,t){const r=String(t.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return pR(e,t);const l={src:Na(o.url||""),alt:t.alt};o.title!==null&&o.title!==void 0&&(l.title=o.title);const u={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,u),e.applyData(t,u)}a(Qj,"imageReference");function Xj(e,t){const r={src:Na(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}a(Xj,"image");function Wj(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,o),e.applyData(t,o)}a(Wj,"inlineCode");function Zj(e,t){const r=String(t.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return pR(e,t);const l={href:Na(o.url||"")};o.title!==null&&o.title!==void 0&&(l.title=o.title);const u={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}a(Zj,"linkReference");function Jj(e,t){const r={href:Na(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}a(Jj,"link");function e9(e,t,r){const o=e.all(t),l=r?t9(r):mR(t),u={},c=[];if(typeof t.checked=="boolean"){const m=o[0];let y;m&&m.type==="element"&&m.tagName==="p"?y=m:(y={type:"element",tagName:"p",properties:{},children:[]},o.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let d=-1;for(;++d<o.length;){const m=o[d];(l||d!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
538
+ `}),m.type==="element"&&m.tagName==="p"&&!l?c.push(...m.children):c.push(m)}const h=o[o.length-1];h&&(l||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
539
+ `});const p={type:"element",tagName:"li",properties:u,children:c};return e.patch(t,p),e.applyData(t,p)}a(e9,"listItem");function t9(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let o=-1;for(;!t&&++o<r.length;)t=mR(r[o])}return t}a(t9,"listLoose");function mR(e){const t=e.spread;return t??e.children.length>1}a(mR,"listItemLoose");function n9(e,t){const r={},o=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++l<o.length;){const c=o[l];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const u={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(o,!0)};return e.patch(t,u),e.applyData(t,u)}a(n9,"list");function r9(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}a(r9,"paragraph");function i9(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}a(i9,"root");function o9(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}a(o9,"strong");function a9(e,t){const r=e.all(t),o=r.shift(),l=[];if(o){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([o],!0)};e.patch(t.children[0],c),l.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=gg(t.children[1]),h=QT(t.children[t.children.length-1]);d&&h&&(c.position={start:d,end:h}),l.push(c)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)}a(a9,"table");function l9(e,t,r){const o=r?r.children:void 0,u=(o?o.indexOf(t):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:t.children.length;let h=-1;const p=[];for(;++h<d;){const y=t.children[h],b={},x=c?c[h]:void 0;x&&(b.align=x);let E={type:"element",tagName:u,properties:b,children:[]};y&&(E.children=e.all(y),e.patch(y,E),E=e.applyData(y,E)),p.push(E)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,m),e.applyData(t,m)}a(l9,"tableRow");function s9(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}a(s9,"tableCell");const MS=9,_S=32;function u9(e){const t=String(e),r=/\r?\n|\r/g;let o=r.exec(t),l=0;const u=[];for(;o;)u.push(kS(t.slice(l,o.index),l>0,!0),o[0]),l=o.index+o[0].length,o=r.exec(t);return u.push(kS(t.slice(l),l>0,!1)),u.join("")}a(u9,"trimLines");function kS(e,t,r){let o=0,l=e.length;if(t){let u=e.codePointAt(o);for(;u===MS||u===_S;)o++,u=e.codePointAt(o)}if(r){let u=e.codePointAt(l-1);for(;u===MS||u===_S;)l--,u=e.codePointAt(l-1)}return l>o?e.slice(o,l):""}a(kS,"trimLine");function c9(e,t){const r={type:"text",value:u9(String(t.value))};return e.patch(t,r),e.applyData(t,r)}a(c9,"text");function f9(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}a(f9,"thematicBreak");const d9={blockquote:Hj,break:Fj,code:qj,delete:Vj,emphasis:Gj,footnoteReference:$j,heading:Yj,html:Kj,imageReference:Qj,image:Xj,inlineCode:Wj,linkReference:Zj,link:Jj,listItem:e9,list:n9,paragraph:r9,root:i9,strong:o9,table:a9,tableCell:s9,tableRow:l9,text:c9,thematicBreak:f9,toml:Yu,yaml:Yu,definition:Yu,footnoteDefinition:Yu};function Yu(){}a(Yu,"ignore");const gR=-1,of=0,Kl=1,Ec=2,Eg=3,Cg=4,Tg=5,Rg=6,yR=7,vR=8,DS=typeof self=="object"?self:globalThis,h9=a((e,t)=>{const r=a((l,u)=>(e.set(u,l),l),"as"),o=a(l=>{if(e.has(l))return e.get(l);const[u,c]=t[l];switch(u){case of:case gR:return r(c,l);case Kl:{const d=r([],l);for(const h of c)d.push(o(h));return d}case Ec:{const d=r({},l);for(const[h,p]of c)d[o(h)]=o(p);return d}case Eg:return r(new Date(c),l);case Cg:{const{source:d,flags:h}=c;return r(new RegExp(d,h),l)}case Tg:{const d=r(new Map,l);for(const[h,p]of c)d.set(o(h),o(p));return d}case Rg:{const d=r(new Set,l);for(const h of c)d.add(o(h));return d}case yR:{const{name:d,message:h}=c;return r(new DS[d](h),l)}case vR:return r(BigInt(c),l);case"BigInt":return r(Object(BigInt(c)),l);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(new DS[u](c),l)},"unpair");return o},"deserializer"),NS=a(e=>h9(new Map,e)(0),"deserialize"),ia="",{toString:p9}={},{keys:m9}=Object,Bl=a(e=>{const t=typeof e;if(t!=="object"||!e)return[of,t];const r=p9.call(e).slice(8,-1);switch(r){case"Array":return[Kl,ia];case"Object":return[Ec,ia];case"Date":return[Eg,ia];case"RegExp":return[Cg,ia];case"Map":return[Tg,ia];case"Set":return[Rg,ia];case"DataView":return[Kl,r]}return r.includes("Array")?[Kl,r]:r.includes("Error")?[yR,r]:[Ec,r]},"typeOf"),Ku=a(([e,t])=>e===of&&(t==="function"||t==="symbol"),"shouldSkip"),g9=a((e,t,r,o)=>{const l=a((c,d)=>{const h=o.push(c)-1;return r.set(d,h),h},"as"),u=a(c=>{if(r.has(c))return r.get(c);let[d,h]=Bl(c);switch(d){case of:{let m=c;switch(h){case"bigint":d=vR,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);m=null;break;case"undefined":return l([gR],c)}return l([d,m],c)}case Kl:{if(h){let b=c;return h==="DataView"?b=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(b=new Uint8Array(c)),l([h,[...b]],c)}const m=[],y=l([d,m],c);for(const b of c)m.push(u(b));return y}case Ec:{if(h)switch(h){case"BigInt":return l([h,c.toString()],c);case"Boolean":case"Number":case"String":return l([h,c.valueOf()],c)}if(t&&"toJSON"in c)return u(c.toJSON());const m=[],y=l([d,m],c);for(const b of m9(c))(e||!Ku(Bl(c[b])))&&m.push([u(b),u(c[b])]);return y}case Eg:return l([d,c.toISOString()],c);case Cg:{const{source:m,flags:y}=c;return l([d,{source:m,flags:y}],c)}case Tg:{const m=[],y=l([d,m],c);for(const[b,x]of c)(e||!(Ku(Bl(b))||Ku(Bl(x))))&&m.push([u(b),u(x)]);return y}case Rg:{const m=[],y=l([d,m],c);for(const b of c)(e||!Ku(Bl(b)))&&m.push(u(b));return y}}const{message:p}=c;return l([d,{name:h,message:p}],c)},"pair");return u},"serializer"),PS=a((e,{json:t,lossy:r}={})=>{const o=[];return g9(!(t||r),!!t,new Map,o)(e),o},"serialize"),Cc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?NS(PS(e,t)):structuredClone(e):(e,t)=>NS(PS(e,t));function y9(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}a(y9,"defaultFootnoteBackContent");function v9(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}a(v9,"defaultFootnoteBackLabel");function b9(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||y9,o=e.options.footnoteBackLabel||v9,l=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let h=-1;for(;++h<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[h]);if(!p)continue;const m=e.all(p),y=String(p.identifier).toUpperCase(),b=Na(y.toLowerCase());let x=0;const E=[],w=e.footnoteCounts.get(y);for(;w!==void 0&&++x<=w;){E.length>0&&E.push({type:"text",value:" "});let A=typeof r=="string"?r:r(h,x);typeof A=="string"&&(A={type:"text",value:A}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(h,x),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const R=m[m.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const A=R.children[R.children.length-1];A&&A.type==="text"?A.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...E)}else m.push(...E);const C={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(m,!0)};e.patch(p,C),d.push(C)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Cc(c),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
540
540
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
541
- `}]}}a(b9,"footer");const bR=a((function(e){if(e==null)return E9;if(typeof e=="function")return af(e);if(typeof e=="object")return Array.isArray(e)?S9(e):x9(e);if(typeof e=="string")return w9(e);throw new Error("Expected function, string, or object as test")}),"convert");function S9(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=bR(e[r]);return af(o);function o(...l){let u=-1;for(;++u<t.length;)if(t[u].apply(this,l))return!0;return!1}}a(S9,"anyFactory");function x9(e){const t=e;return af(r);function r(o){const l=o;let u;for(u in e)if(l[u]!==t[u])return!1;return!0}}a(x9,"propsFactory");function w9(e){return af(t);function t(r){return r&&r.type===e}}a(w9,"typeFactory");function af(e){return t;function t(r,o,l){return!!(C9(r)&&e.call(this,r,typeof o=="number"?o:void 0,l||void 0))}}a(af,"castFactory");function E9(){return!0}a(E9,"ok");function C9(e){return e!==null&&typeof e=="object"&&"type"in e}a(C9,"looksLikeANode");const SR=[],T9=!0,LS=!1,R9="skip";function O9(e,t,r,o){let l;typeof t=="function"&&typeof r!="function"?(o=r,r=t):l=t;const u=bR(l),c=o?-1:1;d(e,void 0,[])();function d(p,h,m){const y=p&&typeof p=="object"?p:{};if(typeof y.type=="string"){const x=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(p.type+(x?"<"+x+">":""))+")"})}return b;function b(){let x=SR,E,w,R;if((!t||u(p,h,m[m.length-1]||void 0))&&(x=A9(r(p,m)),x[0]===LS))return x;if("children"in p&&p.children){const C=p;if(C.children&&x[0]!==R9)for(w=(o?C.children.length:-1)+c,R=m.concat(C);w>-1&&w<C.children.length;){const A=C.children[w];if(E=d(A,w,R)(),E[0]===LS)return E;w=typeof E[1]=="number"?E[1]:w+c}}return x}}a(d,"factory")}a(O9,"visitParents");function A9(e){return Array.isArray(e)?e:typeof e=="number"?[T9,e]:e==null?SR:[e]}a(A9,"toResult");function xR(e,t,r,o){let l,u,c;typeof t=="function"&&typeof r!="function"?(u=void 0,c=t,l=r):(u=t,c=r,l=o),O9(e,u,d,l);function d(p,h){const m=h[h.length-1],y=m?m.children.indexOf(p):void 0;return c(p,y,m)}a(d,"overload")}a(xR,"visit");const lm={}.hasOwnProperty,M9={};function _9(e,t){const r=t||M9,o=new Map,l=new Map,u=new Map,c={...d9,...r.handlers},d={all:h,applyData:D9,definitionById:o,footnoteById:l,footnoteCounts:u,footnoteOrder:[],handlers:c,one:p,options:r,patch:k9,wrap:P9};return xR(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const y=m.type==="definition"?o:l,b=String(m.identifier).toUpperCase();y.has(b)||y.set(b,m)}}),d;function p(m,y){const b=m.type,x=d.handlers[b];if(lm.call(d.handlers,b)&&x)return x(d,m,y);if(d.options.passThrough&&d.options.passThrough.includes(b)){if("children"in m){const{children:w,...R}=m,C=Cc(R);return C.children=d.all(m),C}return Cc(m)}return(d.options.unknownHandler||N9)(d,m,y)}a(p,"one");function h(m){const y=[];if("children"in m){const b=m.children;let x=-1;for(;++x<b.length;){const E=d.one(b[x],m);if(E){if(x&&b[x-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=zS(E.value)),!Array.isArray(E)&&E.type==="element")){const w=E.children[0];w&&w.type==="text"&&(w.value=zS(w.value))}Array.isArray(E)?y.push(...E):y.push(E)}}}return y}a(h,"all")}a(_9,"createState");function k9(e,t){e.position&&(t.position=hI(e))}a(k9,"patch");function D9(e,t){let r=t;if(e&&e.data){const o=e.data.hName,l=e.data.hChildren,u=e.data.hProperties;if(typeof o=="string")if(r.type==="element")r.tagName=o;else{const c="children"in r?r.children:[r];r={type:"element",tagName:o,properties:{},children:c}}r.type==="element"&&u&&Object.assign(r.properties,Cc(u)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}a(D9,"applyData");function N9(e,t){const r=t.data||{},o="value"in t&&!(lm.call(r,"hProperties")||lm.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}a(N9,"defaultUnknownHandler");function P9(e,t){const r=[];let o=-1;for(t&&r.push({type:"text",value:`
541
+ `}]}}a(b9,"footer");const bR=a((function(e){if(e==null)return E9;if(typeof e=="function")return af(e);if(typeof e=="object")return Array.isArray(e)?S9(e):x9(e);if(typeof e=="string")return w9(e);throw new Error("Expected function, string, or object as test")}),"convert");function S9(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=bR(e[r]);return af(o);function o(...l){let u=-1;for(;++u<t.length;)if(t[u].apply(this,l))return!0;return!1}}a(S9,"anyFactory");function x9(e){const t=e;return af(r);function r(o){const l=o;let u;for(u in e)if(l[u]!==t[u])return!1;return!0}}a(x9,"propsFactory");function w9(e){return af(t);function t(r){return r&&r.type===e}}a(w9,"typeFactory");function af(e){return t;function t(r,o,l){return!!(C9(r)&&e.call(this,r,typeof o=="number"?o:void 0,l||void 0))}}a(af,"castFactory");function E9(){return!0}a(E9,"ok");function C9(e){return e!==null&&typeof e=="object"&&"type"in e}a(C9,"looksLikeANode");const SR=[],T9=!0,LS=!1,R9="skip";function O9(e,t,r,o){let l;typeof t=="function"&&typeof r!="function"?(o=r,r=t):l=t;const u=bR(l),c=o?-1:1;d(e,void 0,[])();function d(h,p,m){const y=h&&typeof h=="object"?h:{};if(typeof y.type=="string"){const x=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(h.type+(x?"<"+x+">":""))+")"})}return b;function b(){let x=SR,E,w,R;if((!t||u(h,p,m[m.length-1]||void 0))&&(x=A9(r(h,m)),x[0]===LS))return x;if("children"in h&&h.children){const C=h;if(C.children&&x[0]!==R9)for(w=(o?C.children.length:-1)+c,R=m.concat(C);w>-1&&w<C.children.length;){const A=C.children[w];if(E=d(A,w,R)(),E[0]===LS)return E;w=typeof E[1]=="number"?E[1]:w+c}}return x}}a(d,"factory")}a(O9,"visitParents");function A9(e){return Array.isArray(e)?e:typeof e=="number"?[T9,e]:e==null?SR:[e]}a(A9,"toResult");function xR(e,t,r,o){let l,u,c;typeof t=="function"&&typeof r!="function"?(u=void 0,c=t,l=r):(u=t,c=r,l=o),O9(e,u,d,l);function d(h,p){const m=p[p.length-1],y=m?m.children.indexOf(h):void 0;return c(h,y,m)}a(d,"overload")}a(xR,"visit");const lm={}.hasOwnProperty,M9={};function _9(e,t){const r=t||M9,o=new Map,l=new Map,u=new Map,c={...d9,...r.handlers},d={all:p,applyData:D9,definitionById:o,footnoteById:l,footnoteCounts:u,footnoteOrder:[],handlers:c,one:h,options:r,patch:k9,wrap:P9};return xR(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const y=m.type==="definition"?o:l,b=String(m.identifier).toUpperCase();y.has(b)||y.set(b,m)}}),d;function h(m,y){const b=m.type,x=d.handlers[b];if(lm.call(d.handlers,b)&&x)return x(d,m,y);if(d.options.passThrough&&d.options.passThrough.includes(b)){if("children"in m){const{children:w,...R}=m,C=Cc(R);return C.children=d.all(m),C}return Cc(m)}return(d.options.unknownHandler||N9)(d,m,y)}a(h,"one");function p(m){const y=[];if("children"in m){const b=m.children;let x=-1;for(;++x<b.length;){const E=d.one(b[x],m);if(E){if(x&&b[x-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=zS(E.value)),!Array.isArray(E)&&E.type==="element")){const w=E.children[0];w&&w.type==="text"&&(w.value=zS(w.value))}Array.isArray(E)?y.push(...E):y.push(E)}}}return y}a(p,"all")}a(_9,"createState");function k9(e,t){e.position&&(t.position=pI(e))}a(k9,"patch");function D9(e,t){let r=t;if(e&&e.data){const o=e.data.hName,l=e.data.hChildren,u=e.data.hProperties;if(typeof o=="string")if(r.type==="element")r.tagName=o;else{const c="children"in r?r.children:[r];r={type:"element",tagName:o,properties:{},children:c}}r.type==="element"&&u&&Object.assign(r.properties,Cc(u)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}a(D9,"applyData");function N9(e,t){const r=t.data||{},o="value"in t&&!(lm.call(r,"hProperties")||lm.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}a(N9,"defaultUnknownHandler");function P9(e,t){const r=[];let o=-1;for(t&&r.push({type:"text",value:`
542
542
  `});++o<e.length;)o&&r.push({type:"text",value:`
543
543
  `}),r.push(e[o]);return t&&e.length>0&&r.push({type:"text",value:`
544
544
  `}),r}a(P9,"wrap$1");function zS(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}a(zS,"trimMarkdownSpaceStart");function IS(e,t){const r=_9(e,t),o=r.one(e,void 0),l=b9(r),u=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return l&&u.children.push({type:"text",value:`
545
- `},l),u}a(IS,"toHast");function L9(e,t){return e&&"run"in e?async function(r,o){const l=IS(r,{file:o,...t});await e.run(l,o)}:function(r,o){return IS(r,{file:o,...e||t})}}a(L9,"remarkRehype");function jS(e){if(e)throw e}a(jS,"bail");var lh,US;function z9(){if(US)return lh;US=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=a(function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},"isArray"),u=a(function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!y)return!1;var b;for(b in h);return typeof b>"u"||e.call(h,b)},"isPlainObject"),c=a(function(h,m){r&&m.name==="__proto__"?r(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},"setProperty"),d=a(function(h,m){if(m==="__proto__")if(e.call(h,m)){if(o)return o(h,m).value}else return;return h[m]},"getProperty");return lh=a(function p(){var h,m,y,b,x,E,w=arguments[0],R=1,C=arguments.length,A=!1;for(typeof w=="boolean"&&(A=w,w=arguments[1]||{},R=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});R<C;++R)if(h=arguments[R],h!=null)for(m in h)y=d(w,m),b=d(h,m),w!==b&&(A&&b&&(u(b)||(x=l(b)))?(x?(x=!1,E=y&&l(y)?y:[]):E=y&&u(y)?y:{},c(w,{name:m,newValue:p(A,E,b)})):typeof b<"u"&&c(w,{name:m,newValue:b}));return w},"extend"),lh}a(z9,"requireExtend");var I9=z9();const sh=Vr(I9);function sm(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)}a(sm,"isPlainObject");function j9(){const e=[],t={run:r,use:o};return t;function r(...l){let u=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...l);function d(p,...h){const m=e[++u];let y=-1;if(p){c(p);return}for(;++y<l.length;)(h[y]===null||h[y]===void 0)&&(h[y]=l[y]);l=h,m?U9(m,d)(...h):c(null,...h)}a(d,"next")}function o(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}a(j9,"trough");function U9(e,t){let r;return o;function o(...c){const d=e.length>c.length;let p;d&&c.push(l);try{p=e.apply(this,c)}catch(h){const m=h;if(d&&r)throw m;return l(m)}d||(p&&p.then&&typeof p.then=="function"?p.then(u,l):p instanceof Error?l(p):u(p))}function l(c,...d){r||(r=!0,t(c,...d))}function u(c){l(null,c)}}a(U9,"wrap");const ir={basename:B9,dirname:H9,extname:F9,join:q9,sep:"/"};function B9(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Rs(e);let r=0,o=-1,l=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(u){r=l+1;break}}else o<0&&(u=!0,o=l+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let c=-1,d=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(u){r=l+1;break}}else c<0&&(u=!0,c=l+1),d>-1&&(e.codePointAt(l)===t.codePointAt(d--)?d<0&&(o=l):(d=-1,o=c));return r===o?o=c:o<0&&(o=e.length),e.slice(r,o)}a(B9,"basename");function H9(e){if(Rs(e),e.length===0)return".";let t=-1,r=e.length,o;for(;--r;)if(e.codePointAt(r)===47){if(o){t=r;break}}else o||(o=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}a(H9,"dirname");function F9(e){Rs(e);let t=e.length,r=-1,o=0,l=-1,u=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){o=t+1;break}continue}r<0&&(c=!0,r=t+1),d===46?l<0?l=t:u!==1&&(u=1):l>-1&&(u=-1)}return l<0||r<0||u===0||u===1&&l===r-1&&l===o+1?"":e.slice(l,r)}a(F9,"extname");function q9(...e){let t=-1,r;for(;++t<e.length;)Rs(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":V9(r)}a(q9,"join");function V9(e){Rs(e);const t=e.codePointAt(0)===47;let r=G9(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}a(V9,"normalize");function G9(e,t){let r="",o=0,l=-1,u=0,c=-1,d,p;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(l===c-1||u===1))if(l!==c-1&&u===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",o=0):(r=r.slice(0,p),o=r.length-1-r.lastIndexOf("/")),l=c,u=0;continue}}else if(r.length>0){r="",o=0,l=c,u=0;continue}}t&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+e.slice(l+1,c):r=e.slice(l+1,c),o=c-l-1;l=c,u=0}else d===46&&u>-1?u++:u=-1}return r}a(G9,"normalizeString");function Rs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}a(Rs,"assertPath$1");const $9={cwd:Y9};function Y9(){return"/"}a(Y9,"cwd");function um(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}a(um,"isUrl");function K9(e){if(typeof e=="string")e=new URL(e);else if(!um(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Q9(e)}a(K9,"urlToPath");function Q9(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const o=t.codePointAt(r+2);if(o===70||o===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}a(Q9,"getPathFromURLPosix");const uh=["history","path","basename","stem","extname","dirname"];class wR{static{a(this,"VFile")}constructor(t){let r;t?um(t)?r={path:t}:typeof t=="string"||X9(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":$9.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<uh.length;){const u=uh[o];u in r&&r[u]!==void 0&&r[u]!==null&&(this[u]=u==="history"?[...r[u]]:r[u])}let l;for(l in r)uh.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?ir.basename(this.path):void 0}set basename(t){fh(t,"basename"),ch(t,"basename"),this.path=ir.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ir.dirname(this.path):void 0}set dirname(t){BS(this.basename,"dirname"),this.path=ir.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ir.extname(this.path):void 0}set extname(t){if(ch(t,"extname"),BS(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ir.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){um(t)&&(t=K9(t)),fh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ir.basename(this.path,this.extname):void 0}set stem(t){fh(t,"stem"),ch(t,"stem"),this.path=ir.join(this.dirname||"",t+(this.extname||""))}fail(t,r,o){const l=this.message(t,r,o);throw l.fatal=!0,l}info(t,r,o){const l=this.message(t,r,o);return l.fatal=void 0,l}message(t,r,o){const l=new qt(t,r,o);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ch(e,t){if(e&&e.includes(ir.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ir.sep+"`")}a(ch,"assertPart");function fh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}a(fh,"assertNonEmpty");function BS(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}a(BS,"assertPath");function X9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}a(X9,"isUint8Array$1");const W9=a((function(e){const o=this.constructor.prototype,l=o[e],u=a(function(){return l.apply(u,arguments)},"apply");return Object.setPrototypeOf(u,o),u}),"CallableInstance"),Z9={}.hasOwnProperty;class Og extends W9{static{a(this,"Processor")}constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=j9()}copy(){const t=new Og;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];t.use(...o)}return t.data(sh(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(hh("data",this.frozen),this.namespace[t]=r,this):Z9.call(this.namespace,t)&&this.namespace[t]||void 0:t?(hh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const l=r.call(t,...o);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Qu(t),o=this.parser||this.Parser;return dh("parse",o),o(String(r),r)}process(t,r){const o=this;return this.freeze(),dh("process",this.parser||this.Parser),ph("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(u,c){const d=Qu(t),p=o.parse(d);o.run(p,d,function(m,y,b){if(m||!y||!b)return h(m);const x=y,E=o.stringify(x,b);t8(E)?b.value=E:b.result=E,h(m,b)});function h(m,y){m||!y?c(m):u?u(y):r(void 0,y)}a(h,"realDone")}a(l,"executor")}processSync(t){let r=!1,o;return this.freeze(),dh("processSync",this.parser||this.Parser),ph("processSync",this.compiler||this.Compiler),this.process(t,l),FS("processSync","process",r),o;function l(u,c){r=!0,jS(u),o=c}a(l,"realDone")}run(t,r,o){HS(t),this.freeze();const l=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?u(void 0,o):new Promise(u);function u(c,d){const p=Qu(r);l.run(t,p,h);function h(m,y,b){const x=y||t;m?d(m):c?c(x):o(void 0,x,b)}a(h,"realDone")}a(u,"executor")}runSync(t,r){let o=!1,l;return this.run(t,r,u),FS("runSync","run",o),l;function u(c,d){jS(c),l=d,o=!0}a(u,"realDone")}stringify(t,r){this.freeze();const o=Qu(r),l=this.compiler||this.Compiler;return ph("stringify",l),HS(t),l(t,o)}use(t,...r){const o=this.attachers,l=this.namespace;if(hh("use",this.frozen),t!=null)if(typeof t=="function")p(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(h){if(typeof h=="function")p(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...y]=h;p(m,y)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(h.plugins),h.settings&&(l.settings=sh(!0,l.settings,h.settings))}function d(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const y=h[m];u(y)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function p(h,m){let y=-1,b=-1;for(;++y<o.length;)if(o[y][0]===h){b=y;break}if(b===-1)o.push([h,...m]);else if(m.length>0){let[x,...E]=m;const w=o[b][1];sm(w)&&sm(x)&&(x=sh(!0,w,x)),o[b]=[h,x,...E]}}}}const J9=new Og().freeze();function dh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}a(dh,"assertParser");function ph(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}a(ph,"assertCompiler");function hh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}a(hh,"assertUnfrozen");function HS(e){if(!sm(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}a(HS,"assertNode");function FS(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}a(FS,"assertDone");function Qu(e){return e8(e)?e:new wR(e)}a(Qu,"vfile");function e8(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}a(e8,"looksLikeAVFile");function t8(e){return typeof e=="string"||n8(e)}a(t8,"looksLikeAValue");function n8(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}a(n8,"isUint8Array");const r8="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",qS=[],VS={allowDangerousHtml:!0},i8=/^(https?|ircs?|mailto|xmpp)$/i,o8=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function AB(e){const t=a8(e),r=l8(e);return s8(t.runSync(t.parse(r),r),e)}a(AB,"Markdown");function a8(e){const t=e.rehypePlugins||qS,r=e.remarkPlugins||qS,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...VS}:VS;return J9().use(Bj).use(r).use(L9,o).use(t)}a(a8,"createProcessor");function l8(e){const t=e.children||"",r=new wR;return typeof t=="string"&&(r.value=t),r}a(l8,"createFile");function s8(e,t){const r=t.allowedElements,o=t.allowElement,l=t.components,u=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,p=t.urlTransform||u8;for(const m of o8)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+r8+m.id,void 0);return xR(e,h),bI(e,{Fragment:D.Fragment,components:l,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function h(m,y,b){if(m.type==="raw"&&b&&typeof y=="number")return c?b.children.splice(y,1):b.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let x;for(x in ih)if(Object.hasOwn(ih,x)&&Object.hasOwn(m.properties,x)){const E=m.properties[x],w=ih[x];(w===null||w.includes(m.tagName))&&(m.properties[x]=p(String(E||""),x,m))}}if(m.type==="element"){let x=r?!r.includes(m.tagName):u?u.includes(m.tagName):!1;if(!x&&o&&typeof y=="number"&&(x=!o(m,y,b)),x&&b&&typeof y=="number")return d&&m.children?b.children.splice(y,1,...m.children):b.children.splice(y,1),y}}a(h,"transform")}a(s8,"post");function u8(e){const t=e.indexOf(":"),r=e.indexOf("?"),o=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||r!==-1&&t>r||o!==-1&&t>o||i8.test(e.slice(0,t))?e:""}a(u8,"defaultUrlTransform");const lf=S.createContext(null);lf.displayName="PanelGroupContext";const gt={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Ag=10,Xi=S.useLayoutEffect,GS=fm.useId,c8=typeof GS=="function"?GS:()=>null;let f8=0;function Mg(e=null){const t=c8(),r=S.useRef(e||t||null);return r.current===null&&(r.current=""+f8++),e??r.current}a(Mg,"useUniqueId");function ER({children:e,className:t="",collapsedSize:r,collapsible:o,defaultSize:l,forwardedRef:u,id:c,maxSize:d,minSize:p,onCollapse:h,onExpand:m,onResize:y,order:b,style:x,tagName:E="div",...w}){const R=S.useContext(lf);if(R===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:C,expandPanel:A,getPanelSize:k,getPanelStyle:z,groupId:L,isPanelCollapsed:N,reevaluatePanelConstraints:j,registerPanel:$,resizePanel:W,unregisterPanel:J}=R,X=Mg(c),Z=S.useRef({callbacks:{onCollapse:h,onExpand:m,onResize:y},constraints:{collapsedSize:r,collapsible:o,defaultSize:l,maxSize:d,minSize:p},id:X,idIsFromProps:c!==void 0,order:b});S.useRef({didLogMissingDefaultSizeWarning:!1}),Xi(()=>{const{callbacks:q,constraints:ae}=Z.current,I={...ae};Z.current.id=X,Z.current.idIsFromProps=c!==void 0,Z.current.order=b,q.onCollapse=h,q.onExpand=m,q.onResize=y,ae.collapsedSize=r,ae.collapsible=o,ae.defaultSize=l,ae.maxSize=d,ae.minSize=p,(I.collapsedSize!==ae.collapsedSize||I.collapsible!==ae.collapsible||I.maxSize!==ae.maxSize||I.minSize!==ae.minSize)&&j(Z.current,I)}),Xi(()=>{const q=Z.current;return $(q),()=>{J(q)}},[b,X,$,J]),S.useImperativeHandle(u,()=>({collapse:a(()=>{C(Z.current)},"collapse"),expand:a(q=>{A(Z.current,q)},"expand"),getId(){return X},getSize(){return k(Z.current)},isCollapsed(){return N(Z.current)},isExpanded(){return!N(Z.current)},resize:a(q=>{W(Z.current,q)},"resize")}),[C,A,k,N,X,W]);const ce=z(Z.current,l);return S.createElement(E,{...w,children:e,className:t,id:X,style:{...ce,...x},[gt.groupId]:L,[gt.panel]:"",[gt.panelCollapsible]:o||void 0,[gt.panelId]:X,[gt.panelSize]:parseFloat(""+ce.flexGrow).toFixed(1)})}a(ER,"PanelWithForwardedRef");const d8=S.forwardRef((e,t)=>S.createElement(ER,{...e,forwardedRef:t}));ER.displayName="Panel";d8.displayName="forwardRef(Panel)";let cm=null,oc=-1,bi=null;function p8(e,t){if(t){const r=(t&AR)!==0,o=(t&MR)!==0,l=(t&_R)!==0,u=(t&kR)!==0;if(r)return l?"se-resize":u?"ne-resize":"e-resize";if(o)return l?"sw-resize":u?"nw-resize":"w-resize";if(l)return"s-resize";if(u)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}a(p8,"getCursorStyle");function h8(){bi!==null&&(document.head.removeChild(bi),cm=null,bi=null,oc=-1)}a(h8,"resetGlobalCursorStyle");function mh(e,t){var r,o;const l=p8(e,t);if(cm!==l){if(cm=l,bi===null&&(bi=document.createElement("style"),document.head.appendChild(bi)),oc>=0){var u;(u=bi.sheet)===null||u===void 0||u.removeRule(oc)}oc=(r=(o=bi.sheet)===null||o===void 0?void 0:o.insertRule(`*{cursor: ${l} !important;}`))!==null&&r!==void 0?r:-1}}a(mh,"setGlobalCursorStyle");function CR(e){return e.type==="keydown"}a(CR,"isKeyDown");function TR(e){return e.type.startsWith("pointer")}a(TR,"isPointerEvent");function RR(e){return e.type.startsWith("mouse")}a(RR,"isMouseEvent");function sf(e){if(TR(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(RR(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}a(sf,"getResizeEventCoordinates");function m8(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}a(m8,"getInputType");function g8(e,t,r){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}a(g8,"intersects");function y8(e,t){if(e===t)throw new Error("Cannot compare node with itself");const r={a:KS(e),b:KS(t)};let o;for(;r.a.at(-1)===r.b.at(-1);)e=r.a.pop(),t=r.b.pop(),o=e;Be(o,"Stacking order can only be calculated for elements with a common ancestor");const l={a:YS($S(r.a)),b:YS($S(r.b))};if(l.a===l.b){const u=o.childNodes,c={a:r.a.at(-1),b:r.b.at(-1)};let d=u.length;for(;d--;){const p=u[d];if(p===c.a)return 1;if(p===c.b)return-1}}return Math.sign(l.a-l.b)}a(y8,"compare");const v8=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function b8(e){var t;const r=getComputedStyle((t=OR(e))!==null&&t!==void 0?t:e).display;return r==="flex"||r==="inline-flex"}a(b8,"is_flex_item");function S8(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||b8(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||v8.test(t.willChange)||t.webkitOverflowScrolling==="touch")}a(S8,"creates_stacking_context");function $S(e){let t=e.length;for(;t--;){const r=e[t];if(Be(r,"Missing node"),S8(r))return r}return null}a($S,"find_stacking_context");function YS(e){return e&&Number(getComputedStyle(e).zIndex)||0}a(YS,"get_z_index");function KS(e){const t=[];for(;e;)t.push(e),e=OR(e);return t}a(KS,"get_ancestors");function OR(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}a(OR,"get_parent");const AR=1,MR=2,_R=4,kR=8,x8=m8()==="coarse";let Gn=[],pa=!1,Yi=new Map,uf=new Map;const as=new Set;function w8(e,t,r,o,l){var u;const{ownerDocument:c}=t,d={direction:r,element:t,hitAreaMargins:o,setResizeHandlerState:l},p=(u=Yi.get(c))!==null&&u!==void 0?u:0;return Yi.set(c,p+1),as.add(d),Tc(),a(function(){var m;uf.delete(e),as.delete(d);const y=(m=Yi.get(c))!==null&&m!==void 0?m:1;if(Yi.set(c,y-1),Tc(),y===1&&Yi.delete(c),Gn.includes(d)){const b=Gn.indexOf(d);b>=0&&Gn.splice(b,1),kg(),l("up",!0,null)}},"unregisterResizeHandle")}a(w8,"registerResizeHandle");function E8(e){const{target:t}=e,{x:r,y:o}=sf(e);pa=!0,_g({target:t,x:r,y:o}),Tc(),Gn.length>0&&(Rc("down",e),e.preventDefault(),DR(t)||e.stopImmediatePropagation())}a(E8,"handlePointerDown");function gh(e){const{x:t,y:r}=sf(e);if(pa&&e.buttons===0&&(pa=!1,Rc("up",e)),!pa){const{target:o}=e;_g({target:o,x:t,y:r})}Rc("move",e),kg(),Gn.length>0&&e.preventDefault()}a(gh,"handlePointerMove");function yh(e){const{target:t}=e,{x:r,y:o}=sf(e);uf.clear(),pa=!1,Gn.length>0&&(e.preventDefault(),DR(t)||e.stopImmediatePropagation()),Rc("up",e),_g({target:t,x:r,y:o}),kg(),Tc()}a(yh,"handlePointerUp");function DR(e){let t=e;for(;t;){if(t.hasAttribute(gt.resizeHandle))return!0;t=t.parentElement}return!1}a(DR,"isWithinResizeHandle");function _g({target:e,x:t,y:r}){Gn.splice(0);let o=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(o=e),as.forEach(l=>{const{element:u,hitAreaMargins:c}=l,d=u.getBoundingClientRect(),{bottom:p,left:h,right:m,top:y}=d,b=x8?c.coarse:c.fine;if(t>=h-b&&t<=m+b&&r>=y-b&&r<=p+b){if(o!==null&&document.contains(o)&&u!==o&&!u.contains(o)&&!o.contains(u)&&y8(o,u)>0){let E=o,w=!1;for(;E&&!E.contains(u);){if(g8(E.getBoundingClientRect(),d)){w=!0;break}E=E.parentElement}if(w)return}Gn.push(l)}})}a(_g,"recalculateIntersectingHandles");function vh(e,t){uf.set(e,t)}a(vh,"reportConstraintsViolation");function kg(){let e=!1,t=!1;Gn.forEach(o=>{const{direction:l}=o;l==="horizontal"?e=!0:t=!0});let r=0;uf.forEach(o=>{r|=o}),e&&t?mh("intersection",r):e?mh("horizontal",r):t?mh("vertical",r):h8()}a(kg,"updateCursor");let bh=new AbortController;function Tc(){bh.abort(),bh=new AbortController;const e={capture:!0,signal:bh.signal};as.size&&(pa?(Gn.length>0&&Yi.forEach((t,r)=>{const{body:o}=r;t>0&&(o.addEventListener("contextmenu",yh,e),o.addEventListener("pointerleave",gh,e),o.addEventListener("pointermove",gh,e))}),window.addEventListener("pointerup",yh,e),window.addEventListener("pointercancel",yh,e)):Yi.forEach((t,r)=>{const{body:o}=r;t>0&&(o.addEventListener("pointerdown",E8,e),o.addEventListener("pointermove",gh,e))}))}a(Tc,"updateListeners");function Rc(e,t){as.forEach(r=>{const{setResizeHandlerState:o}=r,l=Gn.includes(r);o(e,l,t)})}a(Rc,"updateResizeHandlerStates");function C8(){const[e,t]=S.useState(0);return S.useCallback(()=>t(r=>r+1),[])}a(C8,"useForceUpdate");function Be(e,t){if(!e)throw console.error(t),Error(t)}a(Be,"assert");function oo(e,t,r=Ag){return e.toFixed(r)===t.toFixed(r)?0:e>t?1:-1}a(oo,"fuzzyCompareNumbers");function jr(e,t,r=Ag){return oo(e,t,r)===0}a(jr,"fuzzyNumbersEqual$1");function yn(e,t,r){return oo(e,t,r)===0}a(yn,"fuzzyNumbersEqual");function T8(e,t,r){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++){const l=e[o],u=t[o];if(!yn(l,u,r))return!1}return!0}a(T8,"fuzzyLayoutsEqual");function la({panelConstraints:e,panelIndex:t,size:r}){const o=e[t];Be(o!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:l=0,collapsible:u,maxSize:c=100,minSize:d=0}=o;if(oo(r,d)<0)if(u){const p=(l+d)/2;oo(r,p)<0?r=l:r=d}else r=d;return r=Math.min(c,r),r=parseFloat(r.toFixed(Ag)),r}a(la,"resizePanel");function ql({delta:e,initialLayout:t,panelConstraints:r,pivotIndices:o,prevLayout:l,trigger:u}){if(yn(e,0))return t;const c=[...t],[d,p]=o;Be(d!=null,"Invalid first pivot index"),Be(p!=null,"Invalid second pivot index");let h=0;if(u==="keyboard"){{const y=e<0?p:d,b=r[y];Be(b,`Panel constraints not found for index ${y}`);const{collapsedSize:x=0,collapsible:E,minSize:w=0}=b;if(E){const R=t[y];if(Be(R!=null,`Previous layout not found for panel index ${y}`),yn(R,x)){const C=w-R;oo(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}{const y=e<0?d:p,b=r[y];Be(b,`No panel constraints found for index ${y}`);const{collapsedSize:x=0,collapsible:E,minSize:w=0}=b;if(E){const R=t[y];if(Be(R!=null,`Previous layout not found for panel index ${y}`),yn(R,w)){const C=R-x;oo(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}}{const y=e<0?1:-1;let b=e<0?p:d,x=0;for(;;){const w=t[b];Be(w!=null,`Previous layout not found for panel index ${b}`);const C=la({panelConstraints:r,panelIndex:b,size:100})-w;if(x+=C,b+=y,b<0||b>=r.length)break}const E=Math.min(Math.abs(e),Math.abs(x));e=e<0?0-E:E}{let b=e<0?d:p;for(;b>=0&&b<r.length;){const x=Math.abs(e)-Math.abs(h),E=t[b];Be(E!=null,`Previous layout not found for panel index ${b}`);const w=E-x,R=la({panelConstraints:r,panelIndex:b,size:w});if(!yn(E,R)&&(h+=E-R,c[b]=R,h.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?b--:b++}}if(T8(l,c))return l;{const y=e<0?p:d,b=t[y];Be(b!=null,`Previous layout not found for panel index ${y}`);const x=b+h,E=la({panelConstraints:r,panelIndex:y,size:x});if(c[y]=E,!yn(E,x)){let w=x-E,C=e<0?p:d;for(;C>=0&&C<r.length;){const A=c[C];Be(A!=null,`Previous layout not found for panel index ${C}`);const k=A+w,z=la({panelConstraints:r,panelIndex:C,size:k});if(yn(A,z)||(w-=z-A,c[C]=z),yn(w,0))break;e>0?C--:C++}}}const m=c.reduce((y,b)=>b+y,0);return yn(m,100)?c:l}a(ql,"adjustLayoutByDelta");function R8({layout:e,panelsArray:t,pivotIndices:r}){let o=0,l=100,u=0,c=0;const d=r[0];Be(d!=null,"No pivot index found"),t.forEach((y,b)=>{const{constraints:x}=y,{maxSize:E=100,minSize:w=0}=x;b===d?(o=w,l=E):(u+=w,c+=E)});const p=Math.min(l,100-u),h=Math.max(o,100-c),m=e[d];return{valueMax:p,valueMin:h,valueNow:m}}a(R8,"calculateAriaValues");function ls(e,t=document){return Array.from(t.querySelectorAll(`[${gt.resizeHandleId}][data-panel-group-id="${e}"]`))}a(ls,"getResizeHandleElementsForGroup");function NR(e,t,r=document){const l=ls(e,r).findIndex(u=>u.getAttribute(gt.resizeHandleId)===t);return l??null}a(NR,"getResizeHandleElementIndex");function PR(e,t,r){const o=NR(e,t,r);return o!=null?[o,o+1]:[-1,-1]}a(PR,"determinePivotIndices");function LR(e,t=document){var r;if(t instanceof HTMLElement&&(t==null||(r=t.dataset)===null||r===void 0?void 0:r.panelGroupId)==e)return t;const o=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return o||null}a(LR,"getPanelGroupElement");function cf(e,t=document){const r=t.querySelector(`[${gt.resizeHandleId}="${e}"]`);return r||null}a(cf,"getResizeHandleElement");function O8(e,t,r,o=document){var l,u,c,d;const p=cf(t,o),h=ls(e,o),m=p?h.indexOf(p):-1,y=(l=(u=r[m])===null||u===void 0?void 0:u.id)!==null&&l!==void 0?l:null,b=(c=(d=r[m+1])===null||d===void 0?void 0:d.id)!==null&&c!==void 0?c:null;return[y,b]}a(O8,"getResizeHandlePanelIds");function A8({committedValuesRef:e,eagerValuesRef:t,groupId:r,layout:o,panelDataArray:l,panelGroupElement:u,setLayout:c}){S.useRef({didWarnAboutMissingResizeHandle:!1}),Xi(()=>{if(!u)return;const d=ls(r,u);for(let p=0;p<l.length-1;p++){const{valueMax:h,valueMin:m,valueNow:y}=R8({layout:o,panelsArray:l,pivotIndices:[p,p+1]}),b=d[p];if(b!=null){const x=l[p];Be(x,`No panel data found for index "${p}"`),b.setAttribute("aria-controls",x.id),b.setAttribute("aria-valuemax",""+Math.round(h)),b.setAttribute("aria-valuemin",""+Math.round(m)),b.setAttribute("aria-valuenow",y!=null?""+Math.round(y):"")}}return()=>{d.forEach((p,h)=>{p.removeAttribute("aria-controls"),p.removeAttribute("aria-valuemax"),p.removeAttribute("aria-valuemin"),p.removeAttribute("aria-valuenow")})}},[r,o,l,u]),S.useEffect(()=>{if(!u)return;const d=t.current;Be(d,"Eager values not found");const{panelDataArray:p}=d,h=LR(r,u);Be(h!=null,`No group found for id "${r}"`);const m=ls(r,u);Be(m,`No resize handles found for group id "${r}"`);const y=m.map(b=>{const x=b.getAttribute(gt.resizeHandleId);Be(x,"Resize handle element has no handle id attribute");const[E,w]=O8(r,x,p,u);if(E==null||w==null)return()=>{};const R=a(C=>{if(!C.defaultPrevented)switch(C.key){case"Enter":{C.preventDefault();const A=p.findIndex(k=>k.id===E);if(A>=0){const k=p[A];Be(k,`No panel data found for index ${A}`);const z=o[A],{collapsedSize:L=0,collapsible:N,minSize:j=0}=k.constraints;if(z!=null&&N){const $=ql({delta:yn(z,L)?j-L:L-z,initialLayout:o,panelConstraints:p.map(W=>W.constraints),pivotIndices:PR(r,x,u),prevLayout:o,trigger:"keyboard"});o!==$&&c($)}}break}}},"onKeyDown");return b.addEventListener("keydown",R),()=>{b.removeEventListener("keydown",R)}});return()=>{y.forEach(b=>b())}},[u,e,t,r,o,l,c])}a(A8,"useWindowSplitterPanelGroupBehavior");function QS(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}a(QS,"areEqual");function zR(e,t){const r=e==="horizontal",{x:o,y:l}=sf(t);return r?o:l}a(zR,"getResizeEventCursorPosition");function M8(e,t,r,o,l){const u=r==="horizontal",c=cf(t,l);Be(c,`No resize handle element found for id "${t}"`);const d=c.getAttribute(gt.groupId);Be(d,"Resize handle element has no group id attribute");let{initialCursorPosition:p}=o;const h=zR(r,e),m=LR(d,l);Be(m,`No group element found for id "${d}"`);const y=m.getBoundingClientRect(),b=u?y.width:y.height;return(h-p)/b*100}a(M8,"calculateDragOffsetPercentage");function _8(e,t,r,o,l,u){if(CR(e)){const c=r==="horizontal";let d=0;e.shiftKey?d=100:l!=null?d=l:d=10;let p=0;switch(e.key){case"ArrowDown":p=c?0:d;break;case"ArrowLeft":p=c?-d:0;break;case"ArrowRight":p=c?d:0;break;case"ArrowUp":p=c?0:-d;break;case"End":p=100;break;case"Home":p=-100;break}return p}else return o==null?0:M8(e,t,r,o,u)}a(_8,"calculateDeltaPercentage");function k8({panelDataArray:e}){const t=Array(e.length),r=e.map(u=>u.constraints);let o=0,l=100;for(let u=0;u<e.length;u++){const c=r[u];Be(c,`Panel constraints not found for index ${u}`);const{defaultSize:d}=c;d!=null&&(o++,t[u]=d,l-=d)}for(let u=0;u<e.length;u++){const c=r[u];Be(c,`Panel constraints not found for index ${u}`);const{defaultSize:d}=c;if(d!=null)continue;const p=e.length-o,h=l/p;o++,t[u]=h,l-=h}return t}a(k8,"calculateUnsafeDefaultLayout");function oa(e,t,r){t.forEach((o,l)=>{const u=e[l];Be(u,`Panel data not found for index ${l}`);const{callbacks:c,constraints:d,id:p}=u,{collapsedSize:h=0,collapsible:m}=d,y=r[p];if(y==null||o!==y){r[p]=o;const{onCollapse:b,onExpand:x,onResize:E}=c;E&&E(o,y),m&&(b||x)&&(x&&(y==null||jr(y,h))&&!jr(o,h)&&x(),b&&(y==null||!jr(y,h))&&jr(o,h)&&b())}})}a(oa,"callPanelCallbacks");function Xu(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}a(Xu,"compareLayouts");function D8({defaultSize:e,dragState:t,layout:r,panelData:o,panelIndex:l,precision:u=3}){const c=r[l];let d;return c==null?d=e!=null?e.toPrecision(u):"1":o.length===1?d="1":d=c.toPrecision(u),{flexBasis:0,flexGrow:d,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}a(D8,"computePanelFlexBoxStyle");function N8(e,t=10){let r=null;return a((...l)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{e(...l)},t)},"callable")}a(N8,"debounce");function XS(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,r)=>{localStorage.setItem(t,r)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}a(XS,"initializeDefaultStorage");function IR(e){return`react-resizable-panels:${e}`}a(IR,"getPanelGroupKey");function jR(e){return e.map(t=>{const{constraints:r,id:o,idIsFromProps:l,order:u}=t;return l?o:u?`${u}:${JSON.stringify(r)}`:JSON.stringify(r)}).sort((t,r)=>t.localeCompare(r)).join(",")}a(jR,"getPanelKey");function UR(e,t){try{const r=IR(e),o=t.getItem(r);if(o){const l=JSON.parse(o);if(typeof l=="object"&&l!=null)return l}}catch{}return null}a(UR,"loadSerializedPanelGroupState");function P8(e,t,r){var o,l;const u=(o=UR(e,r))!==null&&o!==void 0?o:{},c=jR(t);return(l=u[c])!==null&&l!==void 0?l:null}a(P8,"loadPanelGroupState");function L8(e,t,r,o,l){var u;const c=IR(e),d=jR(t),p=(u=UR(e,l))!==null&&u!==void 0?u:{};p[d]={expandToSizes:Object.fromEntries(r.entries()),layout:o};try{l.setItem(c,JSON.stringify(p))}catch(h){console.error(h)}}a(L8,"savePanelGroupState");function WS({layout:e,panelConstraints:t}){const r=[...e],o=r.reduce((u,c)=>u+c,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(u=>`${u}%`).join(", ")}`);if(!yn(o,100)&&r.length>0)for(let u=0;u<t.length;u++){const c=r[u];Be(c!=null,`No layout data found for index ${u}`);const d=100/o*c;r[u]=d}let l=0;for(let u=0;u<t.length;u++){const c=r[u];Be(c!=null,`No layout data found for index ${u}`);const d=la({panelConstraints:t,panelIndex:u,size:c});c!=d&&(l+=c-d,r[u]=d)}if(!yn(l,0))for(let u=0;u<t.length;u++){const c=r[u];Be(c!=null,`No layout data found for index ${u}`);const d=c+l,p=la({panelConstraints:t,panelIndex:u,size:d});if(c!==p&&(l-=p-c,r[u]=p,yn(l,0)))break}return r}a(WS,"validatePanelGroupLayout");const z8=100,Vl={getItem:a(e=>(XS(Vl),Vl.getItem(e)),"getItem"),setItem:a((e,t)=>{XS(Vl),Vl.setItem(e,t)},"setItem")},ZS={};function BR({autoSaveId:e=null,children:t,className:r="",direction:o,forwardedRef:l,id:u=null,onLayout:c=null,keyboardResizeBy:d=null,storage:p=Vl,style:h,tagName:m="div",...y}){const b=Mg(u),x=S.useRef(null),[E,w]=S.useState(null),[R,C]=S.useState([]),A=C8(),k=S.useRef({}),z=S.useRef(new Map),L=S.useRef(0),N=S.useRef({autoSaveId:e,direction:o,dragState:E,id:b,keyboardResizeBy:d,onLayout:c,storage:p}),j=S.useRef({layout:R,panelDataArray:[],panelDataArrayChanged:!1});S.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),S.useImperativeHandle(l,()=>({getId:a(()=>N.current.id,"getId"),getLayout:a(()=>{const{layout:M}=j.current;return M},"getLayout"),setLayout:a(M=>{const{onLayout:ne}=N.current,{layout:me,panelDataArray:oe}=j.current,K=WS({layout:M,panelConstraints:oe.map(fe=>fe.constraints)});QS(me,K)||(C(K),j.current.layout=K,ne&&ne(K),oa(oe,K,k.current))},"setLayout")}),[]),Xi(()=>{N.current.autoSaveId=e,N.current.direction=o,N.current.dragState=E,N.current.id=b,N.current.onLayout=c,N.current.storage=p}),A8({committedValuesRef:N,eagerValuesRef:j,groupId:b,layout:R,panelDataArray:j.current.panelDataArray,setLayout:C,panelGroupElement:x.current}),S.useEffect(()=>{const{panelDataArray:M}=j.current;if(e){if(R.length===0||R.length!==M.length)return;let ne=ZS[e];ne==null&&(ne=N8(L8,z8),ZS[e]=ne);const me=[...M],oe=new Map(z.current);ne(e,me,oe,R,p)}},[e,R,p]),S.useEffect(()=>{});const $=S.useCallback(M=>{const{onLayout:ne}=N.current,{layout:me,panelDataArray:oe}=j.current;if(M.constraints.collapsible){const K=oe.map(Pe=>Pe.constraints),{collapsedSize:fe=0,panelSize:Ce,pivotIndices:Te}=$i(oe,M,me);if(Be(Ce!=null,`Panel size not found for panel "${M.id}"`),!jr(Ce,fe)){z.current.set(M.id,Ce);const qe=aa(oe,M)===oe.length-1?Ce-fe:fe-Ce,Ie=ql({delta:qe,initialLayout:me,panelConstraints:K,pivotIndices:Te,prevLayout:me,trigger:"imperative-api"});Xu(me,Ie)||(C(Ie),j.current.layout=Ie,ne&&ne(Ie),oa(oe,Ie,k.current))}}},[]),W=S.useCallback((M,ne)=>{const{onLayout:me}=N.current,{layout:oe,panelDataArray:K}=j.current;if(M.constraints.collapsible){const fe=K.map(ut=>ut.constraints),{collapsedSize:Ce=0,panelSize:Te=0,minSize:Pe=0,pivotIndices:qe}=$i(K,M,oe),Ie=ne??Pe;if(jr(Te,Ce)){const ut=z.current.get(M.id),Kt=ut!=null&&ut>=Ie?ut:Ie,St=aa(K,M)===K.length-1?Te-Kt:Kt-Te,At=ql({delta:St,initialLayout:oe,panelConstraints:fe,pivotIndices:qe,prevLayout:oe,trigger:"imperative-api"});Xu(oe,At)||(C(At),j.current.layout=At,me&&me(At),oa(K,At,k.current))}}},[]),J=S.useCallback(M=>{const{layout:ne,panelDataArray:me}=j.current,{panelSize:oe}=$i(me,M,ne);return Be(oe!=null,`Panel size not found for panel "${M.id}"`),oe},[]),X=S.useCallback((M,ne)=>{const{panelDataArray:me}=j.current,oe=aa(me,M);return D8({defaultSize:ne,dragState:E,layout:R,panelData:me,panelIndex:oe})},[E,R]),Z=S.useCallback(M=>{const{layout:ne,panelDataArray:me}=j.current,{collapsedSize:oe=0,collapsible:K,panelSize:fe}=$i(me,M,ne);return Be(fe!=null,`Panel size not found for panel "${M.id}"`),K===!0&&jr(fe,oe)},[]),ce=S.useCallback(M=>{const{layout:ne,panelDataArray:me}=j.current,{collapsedSize:oe=0,collapsible:K,panelSize:fe}=$i(me,M,ne);return Be(fe!=null,`Panel size not found for panel "${M.id}"`),!K||oo(fe,oe)>0},[]),q=S.useCallback(M=>{const{panelDataArray:ne}=j.current;ne.push(M),ne.sort((me,oe)=>{const K=me.order,fe=oe.order;return K==null&&fe==null?0:K==null?-1:fe==null?1:K-fe}),j.current.panelDataArrayChanged=!0,A()},[A]);Xi(()=>{if(j.current.panelDataArrayChanged){j.current.panelDataArrayChanged=!1;const{autoSaveId:M,onLayout:ne,storage:me}=N.current,{layout:oe,panelDataArray:K}=j.current;let fe=null;if(M){const Te=P8(M,K,me);Te&&(z.current=new Map(Object.entries(Te.expandToSizes)),fe=Te.layout)}fe==null&&(fe=k8({panelDataArray:K}));const Ce=WS({layout:fe,panelConstraints:K.map(Te=>Te.constraints)});QS(oe,Ce)||(C(Ce),j.current.layout=Ce,ne&&ne(Ce),oa(K,Ce,k.current))}}),Xi(()=>{const M=j.current;return()=>{M.layout=[]}},[]);const ae=S.useCallback(M=>{let ne=!1;const me=x.current;return me&&window.getComputedStyle(me,null).getPropertyValue("direction")==="rtl"&&(ne=!0),a(function(K){K.preventDefault();const fe=x.current;if(!fe)return()=>null;const{direction:Ce,dragState:Te,id:Pe,keyboardResizeBy:qe,onLayout:Ie}=N.current,{layout:ut,panelDataArray:Kt}=j.current,{initialLayout:an}=Te??{},St=PR(Pe,M,fe);let At=_8(K,M,Ce,Te,qe,fe);const $r=Ce==="horizontal";$r&&ne&&(At=-At);const Ai=Kt.map(po=>po.constraints),xn=ql({delta:At,initialLayout:an??ut,panelConstraints:Ai,pivotIndices:St,prevLayout:ut,trigger:CR(K)?"keyboard":"mouse-or-touch"}),fo=!Xu(ut,xn);(TR(K)||RR(K))&&L.current!=At&&(L.current=At,!fo&&At!==0?$r?vh(M,At<0?AR:MR):vh(M,At<0?_R:kR):vh(M,0)),fo&&(C(xn),j.current.layout=xn,Ie&&Ie(xn),oa(Kt,xn,k.current))},"resizeHandler")},[]),I=S.useCallback((M,ne)=>{const{onLayout:me}=N.current,{layout:oe,panelDataArray:K}=j.current,fe=K.map(ut=>ut.constraints),{panelSize:Ce,pivotIndices:Te}=$i(K,M,oe);Be(Ce!=null,`Panel size not found for panel "${M.id}"`);const qe=aa(K,M)===K.length-1?Ce-ne:ne-Ce,Ie=ql({delta:qe,initialLayout:oe,panelConstraints:fe,pivotIndices:Te,prevLayout:oe,trigger:"imperative-api"});Xu(oe,Ie)||(C(Ie),j.current.layout=Ie,me&&me(Ie),oa(K,Ie,k.current))},[]),Q=S.useCallback((M,ne)=>{const{layout:me,panelDataArray:oe}=j.current,{collapsedSize:K=0,collapsible:fe}=ne,{collapsedSize:Ce=0,collapsible:Te,maxSize:Pe=100,minSize:qe=0}=M.constraints,{panelSize:Ie}=$i(oe,M,me);Ie!=null&&(fe&&Te&&jr(Ie,K)?jr(K,Ce)||I(M,Ce):Ie<qe?I(M,qe):Ie>Pe&&I(M,Pe))},[I]),te=S.useCallback((M,ne)=>{const{direction:me}=N.current,{layout:oe}=j.current;if(!x.current)return;const K=cf(M,x.current);Be(K,`Drag handle element not found for id "${M}"`);const fe=zR(me,ne);w({dragHandleId:M,dragHandleRect:K.getBoundingClientRect(),initialCursorPosition:fe,initialLayout:oe})},[]),se=S.useCallback(()=>{w(null)},[]),O=S.useCallback(M=>{const{panelDataArray:ne}=j.current,me=aa(ne,M);me>=0&&(ne.splice(me,1),delete k.current[M.id],j.current.panelDataArrayChanged=!0,A())},[A]),Y=S.useMemo(()=>({collapsePanel:$,direction:o,dragState:E,expandPanel:W,getPanelSize:J,getPanelStyle:X,groupId:b,isPanelCollapsed:Z,isPanelExpanded:ce,reevaluatePanelConstraints:Q,registerPanel:q,registerResizeHandle:ae,resizePanel:I,startDragging:te,stopDragging:se,unregisterPanel:O,panelGroupElement:x.current}),[$,E,o,W,J,X,b,Z,ce,Q,q,ae,I,te,se,O]),de={display:"flex",flexDirection:o==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return S.createElement(lf.Provider,{value:Y},S.createElement(m,{...y,children:t,className:r,id:u,ref:x,style:{...de,...h},[gt.group]:"",[gt.groupDirection]:o,[gt.groupId]:b}))}a(BR,"PanelGroupWithForwardedRef");const I8=S.forwardRef((e,t)=>S.createElement(BR,{...e,forwardedRef:t}));BR.displayName="PanelGroup";I8.displayName="forwardRef(PanelGroup)";function aa(e,t){return e.findIndex(r=>r===t||r.id===t.id)}a(aa,"findPanelDataIndex");function $i(e,t,r){const o=aa(e,t),u=o===e.length-1?[o-1,o]:[o,o+1],c=r[o];return{...t.constraints,panelSize:c,pivotIndices:u}}a($i,"panelDataHelper");function j8({disabled:e,handleId:t,resizeHandler:r,panelGroupElement:o}){S.useEffect(()=>{if(e||r==null||o==null)return;const l=cf(t,o);if(l==null)return;const u=a(c=>{if(!c.defaultPrevented)switch(c.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{c.preventDefault(),r(c);break}case"F6":{c.preventDefault();const d=l.getAttribute(gt.groupId);Be(d,`No group element found for id "${d}"`);const p=ls(d,o),h=NR(d,t,o);Be(h!==null,`No resize element found for id "${t}"`);const m=c.shiftKey?h>0?h-1:p.length-1:h+1<p.length?h+1:0;p[m].focus();break}}},"onKeyDown");return l.addEventListener("keydown",u),()=>{l.removeEventListener("keydown",u)}},[o,e,t,r])}a(j8,"useWindowSplitterResizeHandlerBehavior");function U8({children:e=null,className:t="",disabled:r=!1,hitAreaMargins:o,id:l,onBlur:u,onClick:c,onDragging:d,onFocus:p,onPointerDown:h,onPointerUp:m,style:y={},tabIndex:b=0,tagName:x="div",...E}){var w,R;const C=S.useRef(null),A=S.useRef({onClick:c,onDragging:d,onPointerDown:h,onPointerUp:m});S.useEffect(()=>{A.current.onClick=c,A.current.onDragging=d,A.current.onPointerDown=h,A.current.onPointerUp=m});const k=S.useContext(lf);if(k===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:z,groupId:L,registerResizeHandle:N,startDragging:j,stopDragging:$,panelGroupElement:W}=k,J=Mg(l),[X,Z]=S.useState("inactive"),[ce,q]=S.useState(!1),[ae,I]=S.useState(null),Q=S.useRef({state:X});Xi(()=>{Q.current.state=X}),S.useEffect(()=>{if(r)I(null);else{const Y=N(J);I(()=>Y)}},[r,J,N]);const te=(w=o?.coarse)!==null&&w!==void 0?w:15,se=(R=o?.fine)!==null&&R!==void 0?R:5;S.useEffect(()=>{if(r||ae==null)return;const Y=C.current;Be(Y,"Element ref not attached");let de=!1;return w8(J,Y,z,{coarse:te,fine:se},a((ne,me,oe)=>{if(!me){Z("inactive");return}switch(ne){case"down":{Z("drag"),de=!1,Be(oe,'Expected event to be defined for "down" action'),j(J,oe);const{onDragging:K,onPointerDown:fe}=A.current;K?.(!0),fe?.();break}case"move":{const{state:K}=Q.current;de=!0,K!=="drag"&&Z("hover"),Be(oe,'Expected event to be defined for "move" action'),ae(oe);break}case"up":{Z("hover"),$();const{onClick:K,onDragging:fe,onPointerUp:Ce}=A.current;fe?.(!1),Ce?.(),de||K?.();break}}},"setResizeHandlerState"))},[te,z,r,se,N,J,ae,j,$]),j8({disabled:r,handleId:J,resizeHandler:ae,panelGroupElement:W});const O={touchAction:"none",userSelect:"none"};return S.createElement(x,{...E,children:e,className:t,id:l,onBlur:a(()=>{q(!1),u?.()},"onBlur"),onFocus:a(()=>{q(!0),p?.()},"onFocus"),ref:C,role:"separator",style:{...O,...y},tabIndex:b,[gt.groupDirection]:z,[gt.groupId]:L,[gt.resizeHandle]:"",[gt.resizeHandleActive]:X==="drag"?"pointer":ce?"keyboard":void 0,[gt.resizeHandleEnabled]:!r,[gt.resizeHandleId]:J,[gt.resizeHandleState]:X})}a(U8,"PanelResizeHandle");U8.displayName="PanelResizeHandle";var ff="Collapsible",[B8]=$t(ff),[H8,Dg]=B8(ff),HR=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:o,defaultOpen:l,disabled:u,onOpenChange:c,...d}=e,[p,h]=hr({prop:o,defaultProp:l??!1,onChange:c,caller:ff});return D.jsx(H8,{scope:r,disabled:u,contentId:Ln(),open:p,onOpenToggle:S.useCallback(()=>h(m=>!m),[h]),children:D.jsx(Ee.div,{"data-state":Pg(p),"data-disabled":u?"":void 0,...d,ref:t})})});HR.displayName=ff;var FR="CollapsibleTrigger",F8=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,...o}=e,l=Dg(FR,r);return D.jsx(Ee.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":Pg(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...o,ref:t,onClick:ye(e.onClick,l.onOpenToggle)})});F8.displayName=FR;var Ng="CollapsibleContent",q8=S.forwardRef((e,t)=>{const{forceMount:r,...o}=e,l=Dg(Ng,e.__scopeCollapsible);return D.jsx(It,{present:r||l.open,children:a(({present:u})=>D.jsx(V8,{...o,ref:t,present:u}),"children")})});q8.displayName=Ng;var V8=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:o,children:l,...u}=e,c=Dg(Ng,r),[d,p]=S.useState(o),h=S.useRef(null),m=ze(t,h),y=S.useRef(0),b=y.current,x=S.useRef(0),E=x.current,w=c.open||d,R=S.useRef(w),C=S.useRef(void 0);return S.useEffect(()=>{const A=requestAnimationFrame(()=>R.current=!1);return()=>cancelAnimationFrame(A)},[]),bt(()=>{const A=h.current;if(A){C.current=C.current||{transitionDuration:A.style.transitionDuration,animationName:A.style.animationName},A.style.transitionDuration="0s",A.style.animationName="none";const k=A.getBoundingClientRect();y.current=k.height,x.current=k.width,R.current||(A.style.transitionDuration=C.current.transitionDuration,A.style.animationName=C.current.animationName),p(o)}},[c.open,o]),D.jsx(Ee.div,{"data-state":Pg(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!w,...u,ref:m,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style},children:w&&l})});function Pg(e){return e?"open":"closed"}a(Pg,"getState$1");var MB=HR,df="Switch",[G8]=$t(df),[$8,Y8]=G8(df),qR=S.forwardRef((e,t)=>{const{__scopeSwitch:r,name:o,checked:l,defaultChecked:u,required:c,disabled:d,value:p="on",onCheckedChange:h,form:m,...y}=e,[b,x]=S.useState(null),E=ze(t,k=>x(k)),w=S.useRef(!1),R=b?m||!!b.closest("form"):!0,[C,A]=hr({prop:l,defaultProp:u??!1,onChange:h,caller:df});return D.jsxs($8,{scope:r,checked:C,disabled:d,children:[D.jsx(Ee.button,{type:"button",role:"switch","aria-checked":C,"aria-required":c,"data-state":YR(C),"data-disabled":d?"":void 0,disabled:d,value:p,...y,ref:E,onClick:ye(e.onClick,k=>{A(z=>!z),R&&(w.current=k.isPropagationStopped(),w.current||k.stopPropagation())})}),R&&D.jsx($R,{control:b,bubbles:!w.current,name:o,value:p,checked:C,required:c,disabled:d,form:m,style:{transform:"translateX(-100%)"}})]})});qR.displayName=df;var VR="SwitchThumb",GR=S.forwardRef((e,t)=>{const{__scopeSwitch:r,...o}=e,l=Y8(VR,r);return D.jsx(Ee.span,{"data-state":YR(l.checked),"data-disabled":l.disabled?"":void 0,...o,ref:t})});GR.displayName=VR;var K8="SwitchBubbleInput",$R=S.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:o=!0,...l},u)=>{const c=S.useRef(null),d=ze(c,u),p=cE(r),h=$x(t);return S.useEffect(()=>{const m=c.current;if(!m)return;const y=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(y,"checked").set;if(p!==r&&x){const E=new Event("click",{bubbles:o});x.call(m,r),m.dispatchEvent(E)}},[p,r,o]),D.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...l,tabIndex:-1,ref:d,style:{...l.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});$R.displayName=K8;function YR(e){return e?"checked":"unchecked"}a(YR,"getState");var _B=qR,kB=GR;export{sB as $,XU as A,VU as B,X_ as C,Z_ as D,KU as E,p7 as F,qU as G,QU as H,UU as I,TU as J,ZU as K,NU as L,JU as M,eB as N,Q_ as O,K_ as P,tB as Q,e7 as R,J8 as S,Y_ as T,rB as U,jU as V,iB as W,hU as X,nB as Y,oB as Z,aB as _,$_ as a,RB as a$,fB as a0,dB as a1,cB as a2,uB as a3,lB as a4,h7 as a5,W8 as a6,f7 as a7,d7 as a8,R7 as a9,gB as aA,yB as aB,vB as aC,CU as aD,RU as aE,Ci as aF,a7 as aG,lU as aH,x7 as aI,W7 as aJ,EP as aK,M7 as aL,iU as aM,C7 as aN,J7 as aO,N7 as aP,nU as aQ,v7 as aR,H7 as aS,bB as aT,$e as aU,Ze as aV,TB as aW,SB as aX,wB as aY,EB as aZ,CB as a_,n7 as aa,o7 as ab,B7 as ac,g7 as ad,uU as ae,eU as af,tU as ag,j7 as ah,fU as ai,U7 as aj,pB as ak,hB as al,mB as am,L3 as an,H3 as ao,D7 as ap,P7 as aq,_7 as ar,k7 as as,K7 as at,sU as au,b7 as av,E7 as aw,Iw as ax,jm as ay,m7 as az,Dx as b,EU as b$,xB as b0,Z7 as b1,X7 as b2,pU as b3,T7 as b4,aU as b5,s7 as b6,O7 as b7,bR as b8,O9 as b9,q8 as bA,y7 as bB,mU as bC,l7 as bD,I7 as bE,t7 as bF,cU as bG,Q7 as bH,dU as bI,w7 as bJ,S7 as bK,_e as bL,q7 as bM,rU as bN,Y7 as bO,r7 as bP,G7 as bQ,A7 as bR,$7 as bS,oU as bT,OU as bU,_B as bV,kB as bW,Vw as bX,z7 as bY,i7 as bZ,_U as b_,OB as ba,GI as bb,VI as bc,da as bd,xS as be,xR as bf,zI as bg,LS as bh,bn as bi,sr as bj,rn as bk,im as bl,rf as bm,st as bn,gr as bo,xg as bp,Ne as bq,We as br,jI as bs,AB as bt,d8 as bu,I8 as bv,U8 as bw,L7 as bx,MB as by,F8 as bz,W_ as c,wU as c0,MU as c1,F7 as c2,AU as c3,ZN as c4,Z8 as c5,gU as d,yU as e,vU as f,Vr as g,bU as h,SU as i,D as j,V7 as k,kU as l,DU as m,PU as n,LU as o,zU as p,IU as q,S as r,c7 as s,BU as t,HU as u,FU as v,GU as w,YU as x,u7 as y,$U as z};
546
- //# sourceMappingURL=react-vendor-2Sp1NOb7.js.map
545
+ `},l),u}a(IS,"toHast");function L9(e,t){return e&&"run"in e?async function(r,o){const l=IS(r,{file:o,...t});await e.run(l,o)}:function(r,o){return IS(r,{file:o,...e||t})}}a(L9,"remarkRehype");function jS(e){if(e)throw e}a(jS,"bail");var lp,US;function z9(){if(US)return lp;US=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=a(function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},"isArray"),u=a(function(p){if(!p||t.call(p)!=="[object Object]")return!1;var m=e.call(p,"constructor"),y=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!m&&!y)return!1;var b;for(b in p);return typeof b>"u"||e.call(p,b)},"isPlainObject"),c=a(function(p,m){r&&m.name==="__proto__"?r(p,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):p[m.name]=m.newValue},"setProperty"),d=a(function(p,m){if(m==="__proto__")if(e.call(p,m)){if(o)return o(p,m).value}else return;return p[m]},"getProperty");return lp=a(function h(){var p,m,y,b,x,E,w=arguments[0],R=1,C=arguments.length,A=!1;for(typeof w=="boolean"&&(A=w,w=arguments[1]||{},R=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});R<C;++R)if(p=arguments[R],p!=null)for(m in p)y=d(w,m),b=d(p,m),w!==b&&(A&&b&&(u(b)||(x=l(b)))?(x?(x=!1,E=y&&l(y)?y:[]):E=y&&u(y)?y:{},c(w,{name:m,newValue:h(A,E,b)})):typeof b<"u"&&c(w,{name:m,newValue:b}));return w},"extend"),lp}a(z9,"requireExtend");var I9=z9();const sp=Vr(I9);function sm(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)}a(sm,"isPlainObject");function j9(){const e=[],t={run:r,use:o};return t;function r(...l){let u=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...l);function d(h,...p){const m=e[++u];let y=-1;if(h){c(h);return}for(;++y<l.length;)(p[y]===null||p[y]===void 0)&&(p[y]=l[y]);l=p,m?U9(m,d)(...p):c(null,...p)}a(d,"next")}function o(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}a(j9,"trough");function U9(e,t){let r;return o;function o(...c){const d=e.length>c.length;let h;d&&c.push(l);try{h=e.apply(this,c)}catch(p){const m=p;if(d&&r)throw m;return l(m)}d||(h&&h.then&&typeof h.then=="function"?h.then(u,l):h instanceof Error?l(h):u(h))}function l(c,...d){r||(r=!0,t(c,...d))}function u(c){l(null,c)}}a(U9,"wrap");const ir={basename:B9,dirname:H9,extname:F9,join:q9,sep:"/"};function B9(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Rs(e);let r=0,o=-1,l=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(u){r=l+1;break}}else o<0&&(u=!0,o=l+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let c=-1,d=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(u){r=l+1;break}}else c<0&&(u=!0,c=l+1),d>-1&&(e.codePointAt(l)===t.codePointAt(d--)?d<0&&(o=l):(d=-1,o=c));return r===o?o=c:o<0&&(o=e.length),e.slice(r,o)}a(B9,"basename");function H9(e){if(Rs(e),e.length===0)return".";let t=-1,r=e.length,o;for(;--r;)if(e.codePointAt(r)===47){if(o){t=r;break}}else o||(o=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}a(H9,"dirname");function F9(e){Rs(e);let t=e.length,r=-1,o=0,l=-1,u=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){o=t+1;break}continue}r<0&&(c=!0,r=t+1),d===46?l<0?l=t:u!==1&&(u=1):l>-1&&(u=-1)}return l<0||r<0||u===0||u===1&&l===r-1&&l===o+1?"":e.slice(l,r)}a(F9,"extname");function q9(...e){let t=-1,r;for(;++t<e.length;)Rs(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":V9(r)}a(q9,"join");function V9(e){Rs(e);const t=e.codePointAt(0)===47;let r=G9(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}a(V9,"normalize");function G9(e,t){let r="",o=0,l=-1,u=0,c=-1,d,h;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(l===c-1||u===1))if(l!==c-1&&u===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(h=r.lastIndexOf("/"),h!==r.length-1){h<0?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),l=c,u=0;continue}}else if(r.length>0){r="",o=0,l=c,u=0;continue}}t&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+e.slice(l+1,c):r=e.slice(l+1,c),o=c-l-1;l=c,u=0}else d===46&&u>-1?u++:u=-1}return r}a(G9,"normalizeString");function Rs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}a(Rs,"assertPath$1");const $9={cwd:Y9};function Y9(){return"/"}a(Y9,"cwd");function um(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}a(um,"isUrl");function K9(e){if(typeof e=="string")e=new URL(e);else if(!um(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Q9(e)}a(K9,"urlToPath");function Q9(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const o=t.codePointAt(r+2);if(o===70||o===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}a(Q9,"getPathFromURLPosix");const up=["history","path","basename","stem","extname","dirname"];class wR{static{a(this,"VFile")}constructor(t){let r;t?um(t)?r={path:t}:typeof t=="string"||X9(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":$9.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<up.length;){const u=up[o];u in r&&r[u]!==void 0&&r[u]!==null&&(this[u]=u==="history"?[...r[u]]:r[u])}let l;for(l in r)up.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?ir.basename(this.path):void 0}set basename(t){fp(t,"basename"),cp(t,"basename"),this.path=ir.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ir.dirname(this.path):void 0}set dirname(t){BS(this.basename,"dirname"),this.path=ir.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ir.extname(this.path):void 0}set extname(t){if(cp(t,"extname"),BS(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ir.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){um(t)&&(t=K9(t)),fp(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ir.basename(this.path,this.extname):void 0}set stem(t){fp(t,"stem"),cp(t,"stem"),this.path=ir.join(this.dirname||"",t+(this.extname||""))}fail(t,r,o){const l=this.message(t,r,o);throw l.fatal=!0,l}info(t,r,o){const l=this.message(t,r,o);return l.fatal=void 0,l}message(t,r,o){const l=new qt(t,r,o);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function cp(e,t){if(e&&e.includes(ir.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ir.sep+"`")}a(cp,"assertPart");function fp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}a(fp,"assertNonEmpty");function BS(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}a(BS,"assertPath");function X9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}a(X9,"isUint8Array$1");const W9=a((function(e){const o=this.constructor.prototype,l=o[e],u=a(function(){return l.apply(u,arguments)},"apply");return Object.setPrototypeOf(u,o),u}),"CallableInstance"),Z9={}.hasOwnProperty;class Og extends W9{static{a(this,"Processor")}constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=j9()}copy(){const t=new Og;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];t.use(...o)}return t.data(sp(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(pp("data",this.frozen),this.namespace[t]=r,this):Z9.call(this.namespace,t)&&this.namespace[t]||void 0:t?(pp("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const l=r.call(t,...o);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Qu(t),o=this.parser||this.Parser;return dp("parse",o),o(String(r),r)}process(t,r){const o=this;return this.freeze(),dp("process",this.parser||this.Parser),hp("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(u,c){const d=Qu(t),h=o.parse(d);o.run(h,d,function(m,y,b){if(m||!y||!b)return p(m);const x=y,E=o.stringify(x,b);t8(E)?b.value=E:b.result=E,p(m,b)});function p(m,y){m||!y?c(m):u?u(y):r(void 0,y)}a(p,"realDone")}a(l,"executor")}processSync(t){let r=!1,o;return this.freeze(),dp("processSync",this.parser||this.Parser),hp("processSync",this.compiler||this.Compiler),this.process(t,l),FS("processSync","process",r),o;function l(u,c){r=!0,jS(u),o=c}a(l,"realDone")}run(t,r,o){HS(t),this.freeze();const l=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?u(void 0,o):new Promise(u);function u(c,d){const h=Qu(r);l.run(t,h,p);function p(m,y,b){const x=y||t;m?d(m):c?c(x):o(void 0,x,b)}a(p,"realDone")}a(u,"executor")}runSync(t,r){let o=!1,l;return this.run(t,r,u),FS("runSync","run",o),l;function u(c,d){jS(c),l=d,o=!0}a(u,"realDone")}stringify(t,r){this.freeze();const o=Qu(r),l=this.compiler||this.Compiler;return hp("stringify",l),HS(t),l(t,o)}use(t,...r){const o=this.attachers,l=this.namespace;if(pp("use",this.frozen),t!=null)if(typeof t=="function")h(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(p){if(typeof p=="function")h(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[m,...y]=p;h(m,y)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(l.settings=sp(!0,l.settings,p.settings))}function d(p){let m=-1;if(p!=null)if(Array.isArray(p))for(;++m<p.length;){const y=p[m];u(y)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function h(p,m){let y=-1,b=-1;for(;++y<o.length;)if(o[y][0]===p){b=y;break}if(b===-1)o.push([p,...m]);else if(m.length>0){let[x,...E]=m;const w=o[b][1];sm(w)&&sm(x)&&(x=sp(!0,w,x)),o[b]=[p,x,...E]}}}}const J9=new Og().freeze();function dp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}a(dp,"assertParser");function hp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}a(hp,"assertCompiler");function pp(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}a(pp,"assertUnfrozen");function HS(e){if(!sm(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}a(HS,"assertNode");function FS(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}a(FS,"assertDone");function Qu(e){return e8(e)?e:new wR(e)}a(Qu,"vfile");function e8(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}a(e8,"looksLikeAVFile");function t8(e){return typeof e=="string"||n8(e)}a(t8,"looksLikeAValue");function n8(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}a(n8,"isUint8Array");const r8="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",qS=[],VS={allowDangerousHtml:!0},i8=/^(https?|ircs?|mailto|xmpp)$/i,o8=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function AB(e){const t=a8(e),r=l8(e);return s8(t.runSync(t.parse(r),r),e)}a(AB,"Markdown");function a8(e){const t=e.rehypePlugins||qS,r=e.remarkPlugins||qS,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...VS}:VS;return J9().use(Bj).use(r).use(L9,o).use(t)}a(a8,"createProcessor");function l8(e){const t=e.children||"",r=new wR;return typeof t=="string"&&(r.value=t),r}a(l8,"createFile");function s8(e,t){const r=t.allowedElements,o=t.allowElement,l=t.components,u=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||u8;for(const m of o8)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+r8+m.id,void 0);return xR(e,p),bI(e,{Fragment:D.Fragment,components:l,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function p(m,y,b){if(m.type==="raw"&&b&&typeof y=="number")return c?b.children.splice(y,1):b.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let x;for(x in ip)if(Object.hasOwn(ip,x)&&Object.hasOwn(m.properties,x)){const E=m.properties[x],w=ip[x];(w===null||w.includes(m.tagName))&&(m.properties[x]=h(String(E||""),x,m))}}if(m.type==="element"){let x=r?!r.includes(m.tagName):u?u.includes(m.tagName):!1;if(!x&&o&&typeof y=="number"&&(x=!o(m,y,b)),x&&b&&typeof y=="number")return d&&m.children?b.children.splice(y,1,...m.children):b.children.splice(y,1),y}}a(p,"transform")}a(s8,"post");function u8(e){const t=e.indexOf(":"),r=e.indexOf("?"),o=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||r!==-1&&t>r||o!==-1&&t>o||i8.test(e.slice(0,t))?e:""}a(u8,"defaultUrlTransform");const lf=S.createContext(null);lf.displayName="PanelGroupContext";const gt={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Ag=10,Xi=S.useLayoutEffect,GS=fm.useId,c8=typeof GS=="function"?GS:()=>null;let f8=0;function Mg(e=null){const t=c8(),r=S.useRef(e||t||null);return r.current===null&&(r.current=""+f8++),e??r.current}a(Mg,"useUniqueId");function ER({children:e,className:t="",collapsedSize:r,collapsible:o,defaultSize:l,forwardedRef:u,id:c,maxSize:d,minSize:h,onCollapse:p,onExpand:m,onResize:y,order:b,style:x,tagName:E="div",...w}){const R=S.useContext(lf);if(R===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:C,expandPanel:A,getPanelSize:k,getPanelStyle:z,groupId:L,isPanelCollapsed:N,reevaluatePanelConstraints:j,registerPanel:$,resizePanel:W,unregisterPanel:J}=R,X=Mg(c),Z=S.useRef({callbacks:{onCollapse:p,onExpand:m,onResize:y},constraints:{collapsedSize:r,collapsible:o,defaultSize:l,maxSize:d,minSize:h},id:X,idIsFromProps:c!==void 0,order:b});S.useRef({didLogMissingDefaultSizeWarning:!1}),Xi(()=>{const{callbacks:q,constraints:ae}=Z.current,I={...ae};Z.current.id=X,Z.current.idIsFromProps=c!==void 0,Z.current.order=b,q.onCollapse=p,q.onExpand=m,q.onResize=y,ae.collapsedSize=r,ae.collapsible=o,ae.defaultSize=l,ae.maxSize=d,ae.minSize=h,(I.collapsedSize!==ae.collapsedSize||I.collapsible!==ae.collapsible||I.maxSize!==ae.maxSize||I.minSize!==ae.minSize)&&j(Z.current,I)}),Xi(()=>{const q=Z.current;return $(q),()=>{J(q)}},[b,X,$,J]),S.useImperativeHandle(u,()=>({collapse:a(()=>{C(Z.current)},"collapse"),expand:a(q=>{A(Z.current,q)},"expand"),getId(){return X},getSize(){return k(Z.current)},isCollapsed(){return N(Z.current)},isExpanded(){return!N(Z.current)},resize:a(q=>{W(Z.current,q)},"resize")}),[C,A,k,N,X,W]);const ce=z(Z.current,l);return S.createElement(E,{...w,children:e,className:t,id:X,style:{...ce,...x},[gt.groupId]:L,[gt.panel]:"",[gt.panelCollapsible]:o||void 0,[gt.panelId]:X,[gt.panelSize]:parseFloat(""+ce.flexGrow).toFixed(1)})}a(ER,"PanelWithForwardedRef");const d8=S.forwardRef((e,t)=>S.createElement(ER,{...e,forwardedRef:t}));ER.displayName="Panel";d8.displayName="forwardRef(Panel)";let cm=null,oc=-1,bi=null;function h8(e,t){if(t){const r=(t&AR)!==0,o=(t&MR)!==0,l=(t&_R)!==0,u=(t&kR)!==0;if(r)return l?"se-resize":u?"ne-resize":"e-resize";if(o)return l?"sw-resize":u?"nw-resize":"w-resize";if(l)return"s-resize";if(u)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}a(h8,"getCursorStyle");function p8(){bi!==null&&(document.head.removeChild(bi),cm=null,bi=null,oc=-1)}a(p8,"resetGlobalCursorStyle");function mp(e,t){var r,o;const l=h8(e,t);if(cm!==l){if(cm=l,bi===null&&(bi=document.createElement("style"),document.head.appendChild(bi)),oc>=0){var u;(u=bi.sheet)===null||u===void 0||u.removeRule(oc)}oc=(r=(o=bi.sheet)===null||o===void 0?void 0:o.insertRule(`*{cursor: ${l} !important;}`))!==null&&r!==void 0?r:-1}}a(mp,"setGlobalCursorStyle");function CR(e){return e.type==="keydown"}a(CR,"isKeyDown");function TR(e){return e.type.startsWith("pointer")}a(TR,"isPointerEvent");function RR(e){return e.type.startsWith("mouse")}a(RR,"isMouseEvent");function sf(e){if(TR(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(RR(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}a(sf,"getResizeEventCoordinates");function m8(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}a(m8,"getInputType");function g8(e,t,r){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}a(g8,"intersects");function y8(e,t){if(e===t)throw new Error("Cannot compare node with itself");const r={a:KS(e),b:KS(t)};let o;for(;r.a.at(-1)===r.b.at(-1);)e=r.a.pop(),t=r.b.pop(),o=e;Be(o,"Stacking order can only be calculated for elements with a common ancestor");const l={a:YS($S(r.a)),b:YS($S(r.b))};if(l.a===l.b){const u=o.childNodes,c={a:r.a.at(-1),b:r.b.at(-1)};let d=u.length;for(;d--;){const h=u[d];if(h===c.a)return 1;if(h===c.b)return-1}}return Math.sign(l.a-l.b)}a(y8,"compare");const v8=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function b8(e){var t;const r=getComputedStyle((t=OR(e))!==null&&t!==void 0?t:e).display;return r==="flex"||r==="inline-flex"}a(b8,"is_flex_item");function S8(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||b8(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||v8.test(t.willChange)||t.webkitOverflowScrolling==="touch")}a(S8,"creates_stacking_context");function $S(e){let t=e.length;for(;t--;){const r=e[t];if(Be(r,"Missing node"),S8(r))return r}return null}a($S,"find_stacking_context");function YS(e){return e&&Number(getComputedStyle(e).zIndex)||0}a(YS,"get_z_index");function KS(e){const t=[];for(;e;)t.push(e),e=OR(e);return t}a(KS,"get_ancestors");function OR(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}a(OR,"get_parent");const AR=1,MR=2,_R=4,kR=8,x8=m8()==="coarse";let Gn=[],ha=!1,Yi=new Map,uf=new Map;const as=new Set;function w8(e,t,r,o,l){var u;const{ownerDocument:c}=t,d={direction:r,element:t,hitAreaMargins:o,setResizeHandlerState:l},h=(u=Yi.get(c))!==null&&u!==void 0?u:0;return Yi.set(c,h+1),as.add(d),Tc(),a(function(){var m;uf.delete(e),as.delete(d);const y=(m=Yi.get(c))!==null&&m!==void 0?m:1;if(Yi.set(c,y-1),Tc(),y===1&&Yi.delete(c),Gn.includes(d)){const b=Gn.indexOf(d);b>=0&&Gn.splice(b,1),kg(),l("up",!0,null)}},"unregisterResizeHandle")}a(w8,"registerResizeHandle");function E8(e){const{target:t}=e,{x:r,y:o}=sf(e);ha=!0,_g({target:t,x:r,y:o}),Tc(),Gn.length>0&&(Rc("down",e),e.preventDefault(),DR(t)||e.stopImmediatePropagation())}a(E8,"handlePointerDown");function gp(e){const{x:t,y:r}=sf(e);if(ha&&e.buttons===0&&(ha=!1,Rc("up",e)),!ha){const{target:o}=e;_g({target:o,x:t,y:r})}Rc("move",e),kg(),Gn.length>0&&e.preventDefault()}a(gp,"handlePointerMove");function yp(e){const{target:t}=e,{x:r,y:o}=sf(e);uf.clear(),ha=!1,Gn.length>0&&(e.preventDefault(),DR(t)||e.stopImmediatePropagation()),Rc("up",e),_g({target:t,x:r,y:o}),kg(),Tc()}a(yp,"handlePointerUp");function DR(e){let t=e;for(;t;){if(t.hasAttribute(gt.resizeHandle))return!0;t=t.parentElement}return!1}a(DR,"isWithinResizeHandle");function _g({target:e,x:t,y:r}){Gn.splice(0);let o=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(o=e),as.forEach(l=>{const{element:u,hitAreaMargins:c}=l,d=u.getBoundingClientRect(),{bottom:h,left:p,right:m,top:y}=d,b=x8?c.coarse:c.fine;if(t>=p-b&&t<=m+b&&r>=y-b&&r<=h+b){if(o!==null&&document.contains(o)&&u!==o&&!u.contains(o)&&!o.contains(u)&&y8(o,u)>0){let E=o,w=!1;for(;E&&!E.contains(u);){if(g8(E.getBoundingClientRect(),d)){w=!0;break}E=E.parentElement}if(w)return}Gn.push(l)}})}a(_g,"recalculateIntersectingHandles");function vp(e,t){uf.set(e,t)}a(vp,"reportConstraintsViolation");function kg(){let e=!1,t=!1;Gn.forEach(o=>{const{direction:l}=o;l==="horizontal"?e=!0:t=!0});let r=0;uf.forEach(o=>{r|=o}),e&&t?mp("intersection",r):e?mp("horizontal",r):t?mp("vertical",r):p8()}a(kg,"updateCursor");let bp=new AbortController;function Tc(){bp.abort(),bp=new AbortController;const e={capture:!0,signal:bp.signal};as.size&&(ha?(Gn.length>0&&Yi.forEach((t,r)=>{const{body:o}=r;t>0&&(o.addEventListener("contextmenu",yp,e),o.addEventListener("pointerleave",gp,e),o.addEventListener("pointermove",gp,e))}),window.addEventListener("pointerup",yp,e),window.addEventListener("pointercancel",yp,e)):Yi.forEach((t,r)=>{const{body:o}=r;t>0&&(o.addEventListener("pointerdown",E8,e),o.addEventListener("pointermove",gp,e))}))}a(Tc,"updateListeners");function Rc(e,t){as.forEach(r=>{const{setResizeHandlerState:o}=r,l=Gn.includes(r);o(e,l,t)})}a(Rc,"updateResizeHandlerStates");function C8(){const[e,t]=S.useState(0);return S.useCallback(()=>t(r=>r+1),[])}a(C8,"useForceUpdate");function Be(e,t){if(!e)throw console.error(t),Error(t)}a(Be,"assert");function oo(e,t,r=Ag){return e.toFixed(r)===t.toFixed(r)?0:e>t?1:-1}a(oo,"fuzzyCompareNumbers");function jr(e,t,r=Ag){return oo(e,t,r)===0}a(jr,"fuzzyNumbersEqual$1");function yn(e,t,r){return oo(e,t,r)===0}a(yn,"fuzzyNumbersEqual");function T8(e,t,r){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++){const l=e[o],u=t[o];if(!yn(l,u,r))return!1}return!0}a(T8,"fuzzyLayoutsEqual");function la({panelConstraints:e,panelIndex:t,size:r}){const o=e[t];Be(o!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:l=0,collapsible:u,maxSize:c=100,minSize:d=0}=o;if(oo(r,d)<0)if(u){const h=(l+d)/2;oo(r,h)<0?r=l:r=d}else r=d;return r=Math.min(c,r),r=parseFloat(r.toFixed(Ag)),r}a(la,"resizePanel");function ql({delta:e,initialLayout:t,panelConstraints:r,pivotIndices:o,prevLayout:l,trigger:u}){if(yn(e,0))return t;const c=[...t],[d,h]=o;Be(d!=null,"Invalid first pivot index"),Be(h!=null,"Invalid second pivot index");let p=0;if(u==="keyboard"){{const y=e<0?h:d,b=r[y];Be(b,`Panel constraints not found for index ${y}`);const{collapsedSize:x=0,collapsible:E,minSize:w=0}=b;if(E){const R=t[y];if(Be(R!=null,`Previous layout not found for panel index ${y}`),yn(R,x)){const C=w-R;oo(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}{const y=e<0?d:h,b=r[y];Be(b,`No panel constraints found for index ${y}`);const{collapsedSize:x=0,collapsible:E,minSize:w=0}=b;if(E){const R=t[y];if(Be(R!=null,`Previous layout not found for panel index ${y}`),yn(R,w)){const C=R-x;oo(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}}{const y=e<0?1:-1;let b=e<0?h:d,x=0;for(;;){const w=t[b];Be(w!=null,`Previous layout not found for panel index ${b}`);const C=la({panelConstraints:r,panelIndex:b,size:100})-w;if(x+=C,b+=y,b<0||b>=r.length)break}const E=Math.min(Math.abs(e),Math.abs(x));e=e<0?0-E:E}{let b=e<0?d:h;for(;b>=0&&b<r.length;){const x=Math.abs(e)-Math.abs(p),E=t[b];Be(E!=null,`Previous layout not found for panel index ${b}`);const w=E-x,R=la({panelConstraints:r,panelIndex:b,size:w});if(!yn(E,R)&&(p+=E-R,c[b]=R,p.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?b--:b++}}if(T8(l,c))return l;{const y=e<0?h:d,b=t[y];Be(b!=null,`Previous layout not found for panel index ${y}`);const x=b+p,E=la({panelConstraints:r,panelIndex:y,size:x});if(c[y]=E,!yn(E,x)){let w=x-E,C=e<0?h:d;for(;C>=0&&C<r.length;){const A=c[C];Be(A!=null,`Previous layout not found for panel index ${C}`);const k=A+w,z=la({panelConstraints:r,panelIndex:C,size:k});if(yn(A,z)||(w-=z-A,c[C]=z),yn(w,0))break;e>0?C--:C++}}}const m=c.reduce((y,b)=>b+y,0);return yn(m,100)?c:l}a(ql,"adjustLayoutByDelta");function R8({layout:e,panelsArray:t,pivotIndices:r}){let o=0,l=100,u=0,c=0;const d=r[0];Be(d!=null,"No pivot index found"),t.forEach((y,b)=>{const{constraints:x}=y,{maxSize:E=100,minSize:w=0}=x;b===d?(o=w,l=E):(u+=w,c+=E)});const h=Math.min(l,100-u),p=Math.max(o,100-c),m=e[d];return{valueMax:h,valueMin:p,valueNow:m}}a(R8,"calculateAriaValues");function ls(e,t=document){return Array.from(t.querySelectorAll(`[${gt.resizeHandleId}][data-panel-group-id="${e}"]`))}a(ls,"getResizeHandleElementsForGroup");function NR(e,t,r=document){const l=ls(e,r).findIndex(u=>u.getAttribute(gt.resizeHandleId)===t);return l??null}a(NR,"getResizeHandleElementIndex");function PR(e,t,r){const o=NR(e,t,r);return o!=null?[o,o+1]:[-1,-1]}a(PR,"determinePivotIndices");function LR(e,t=document){var r;if(t instanceof HTMLElement&&(t==null||(r=t.dataset)===null||r===void 0?void 0:r.panelGroupId)==e)return t;const o=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return o||null}a(LR,"getPanelGroupElement");function cf(e,t=document){const r=t.querySelector(`[${gt.resizeHandleId}="${e}"]`);return r||null}a(cf,"getResizeHandleElement");function O8(e,t,r,o=document){var l,u,c,d;const h=cf(t,o),p=ls(e,o),m=h?p.indexOf(h):-1,y=(l=(u=r[m])===null||u===void 0?void 0:u.id)!==null&&l!==void 0?l:null,b=(c=(d=r[m+1])===null||d===void 0?void 0:d.id)!==null&&c!==void 0?c:null;return[y,b]}a(O8,"getResizeHandlePanelIds");function A8({committedValuesRef:e,eagerValuesRef:t,groupId:r,layout:o,panelDataArray:l,panelGroupElement:u,setLayout:c}){S.useRef({didWarnAboutMissingResizeHandle:!1}),Xi(()=>{if(!u)return;const d=ls(r,u);for(let h=0;h<l.length-1;h++){const{valueMax:p,valueMin:m,valueNow:y}=R8({layout:o,panelsArray:l,pivotIndices:[h,h+1]}),b=d[h];if(b!=null){const x=l[h];Be(x,`No panel data found for index "${h}"`),b.setAttribute("aria-controls",x.id),b.setAttribute("aria-valuemax",""+Math.round(p)),b.setAttribute("aria-valuemin",""+Math.round(m)),b.setAttribute("aria-valuenow",y!=null?""+Math.round(y):"")}}return()=>{d.forEach((h,p)=>{h.removeAttribute("aria-controls"),h.removeAttribute("aria-valuemax"),h.removeAttribute("aria-valuemin"),h.removeAttribute("aria-valuenow")})}},[r,o,l,u]),S.useEffect(()=>{if(!u)return;const d=t.current;Be(d,"Eager values not found");const{panelDataArray:h}=d,p=LR(r,u);Be(p!=null,`No group found for id "${r}"`);const m=ls(r,u);Be(m,`No resize handles found for group id "${r}"`);const y=m.map(b=>{const x=b.getAttribute(gt.resizeHandleId);Be(x,"Resize handle element has no handle id attribute");const[E,w]=O8(r,x,h,u);if(E==null||w==null)return()=>{};const R=a(C=>{if(!C.defaultPrevented)switch(C.key){case"Enter":{C.preventDefault();const A=h.findIndex(k=>k.id===E);if(A>=0){const k=h[A];Be(k,`No panel data found for index ${A}`);const z=o[A],{collapsedSize:L=0,collapsible:N,minSize:j=0}=k.constraints;if(z!=null&&N){const $=ql({delta:yn(z,L)?j-L:L-z,initialLayout:o,panelConstraints:h.map(W=>W.constraints),pivotIndices:PR(r,x,u),prevLayout:o,trigger:"keyboard"});o!==$&&c($)}}break}}},"onKeyDown");return b.addEventListener("keydown",R),()=>{b.removeEventListener("keydown",R)}});return()=>{y.forEach(b=>b())}},[u,e,t,r,o,l,c])}a(A8,"useWindowSplitterPanelGroupBehavior");function QS(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}a(QS,"areEqual");function zR(e,t){const r=e==="horizontal",{x:o,y:l}=sf(t);return r?o:l}a(zR,"getResizeEventCursorPosition");function M8(e,t,r,o,l){const u=r==="horizontal",c=cf(t,l);Be(c,`No resize handle element found for id "${t}"`);const d=c.getAttribute(gt.groupId);Be(d,"Resize handle element has no group id attribute");let{initialCursorPosition:h}=o;const p=zR(r,e),m=LR(d,l);Be(m,`No group element found for id "${d}"`);const y=m.getBoundingClientRect(),b=u?y.width:y.height;return(p-h)/b*100}a(M8,"calculateDragOffsetPercentage");function _8(e,t,r,o,l,u){if(CR(e)){const c=r==="horizontal";let d=0;e.shiftKey?d=100:l!=null?d=l:d=10;let h=0;switch(e.key){case"ArrowDown":h=c?0:d;break;case"ArrowLeft":h=c?-d:0;break;case"ArrowRight":h=c?d:0;break;case"ArrowUp":h=c?0:-d;break;case"End":h=100;break;case"Home":h=-100;break}return h}else return o==null?0:M8(e,t,r,o,u)}a(_8,"calculateDeltaPercentage");function k8({panelDataArray:e}){const t=Array(e.length),r=e.map(u=>u.constraints);let o=0,l=100;for(let u=0;u<e.length;u++){const c=r[u];Be(c,`Panel constraints not found for index ${u}`);const{defaultSize:d}=c;d!=null&&(o++,t[u]=d,l-=d)}for(let u=0;u<e.length;u++){const c=r[u];Be(c,`Panel constraints not found for index ${u}`);const{defaultSize:d}=c;if(d!=null)continue;const h=e.length-o,p=l/h;o++,t[u]=p,l-=p}return t}a(k8,"calculateUnsafeDefaultLayout");function oa(e,t,r){t.forEach((o,l)=>{const u=e[l];Be(u,`Panel data not found for index ${l}`);const{callbacks:c,constraints:d,id:h}=u,{collapsedSize:p=0,collapsible:m}=d,y=r[h];if(y==null||o!==y){r[h]=o;const{onCollapse:b,onExpand:x,onResize:E}=c;E&&E(o,y),m&&(b||x)&&(x&&(y==null||jr(y,p))&&!jr(o,p)&&x(),b&&(y==null||!jr(y,p))&&jr(o,p)&&b())}})}a(oa,"callPanelCallbacks");function Xu(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}a(Xu,"compareLayouts");function D8({defaultSize:e,dragState:t,layout:r,panelData:o,panelIndex:l,precision:u=3}){const c=r[l];let d;return c==null?d=e!=null?e.toPrecision(u):"1":o.length===1?d="1":d=c.toPrecision(u),{flexBasis:0,flexGrow:d,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}a(D8,"computePanelFlexBoxStyle");function N8(e,t=10){let r=null;return a((...l)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{e(...l)},t)},"callable")}a(N8,"debounce");function XS(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,r)=>{localStorage.setItem(t,r)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}a(XS,"initializeDefaultStorage");function IR(e){return`react-resizable-panels:${e}`}a(IR,"getPanelGroupKey");function jR(e){return e.map(t=>{const{constraints:r,id:o,idIsFromProps:l,order:u}=t;return l?o:u?`${u}:${JSON.stringify(r)}`:JSON.stringify(r)}).sort((t,r)=>t.localeCompare(r)).join(",")}a(jR,"getPanelKey");function UR(e,t){try{const r=IR(e),o=t.getItem(r);if(o){const l=JSON.parse(o);if(typeof l=="object"&&l!=null)return l}}catch{}return null}a(UR,"loadSerializedPanelGroupState");function P8(e,t,r){var o,l;const u=(o=UR(e,r))!==null&&o!==void 0?o:{},c=jR(t);return(l=u[c])!==null&&l!==void 0?l:null}a(P8,"loadPanelGroupState");function L8(e,t,r,o,l){var u;const c=IR(e),d=jR(t),h=(u=UR(e,l))!==null&&u!==void 0?u:{};h[d]={expandToSizes:Object.fromEntries(r.entries()),layout:o};try{l.setItem(c,JSON.stringify(h))}catch(p){console.error(p)}}a(L8,"savePanelGroupState");function WS({layout:e,panelConstraints:t}){const r=[...e],o=r.reduce((u,c)=>u+c,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(u=>`${u}%`).join(", ")}`);if(!yn(o,100)&&r.length>0)for(let u=0;u<t.length;u++){const c=r[u];Be(c!=null,`No layout data found for index ${u}`);const d=100/o*c;r[u]=d}let l=0;for(let u=0;u<t.length;u++){const c=r[u];Be(c!=null,`No layout data found for index ${u}`);const d=la({panelConstraints:t,panelIndex:u,size:c});c!=d&&(l+=c-d,r[u]=d)}if(!yn(l,0))for(let u=0;u<t.length;u++){const c=r[u];Be(c!=null,`No layout data found for index ${u}`);const d=c+l,h=la({panelConstraints:t,panelIndex:u,size:d});if(c!==h&&(l-=h-c,r[u]=h,yn(l,0)))break}return r}a(WS,"validatePanelGroupLayout");const z8=100,Vl={getItem:a(e=>(XS(Vl),Vl.getItem(e)),"getItem"),setItem:a((e,t)=>{XS(Vl),Vl.setItem(e,t)},"setItem")},ZS={};function BR({autoSaveId:e=null,children:t,className:r="",direction:o,forwardedRef:l,id:u=null,onLayout:c=null,keyboardResizeBy:d=null,storage:h=Vl,style:p,tagName:m="div",...y}){const b=Mg(u),x=S.useRef(null),[E,w]=S.useState(null),[R,C]=S.useState([]),A=C8(),k=S.useRef({}),z=S.useRef(new Map),L=S.useRef(0),N=S.useRef({autoSaveId:e,direction:o,dragState:E,id:b,keyboardResizeBy:d,onLayout:c,storage:h}),j=S.useRef({layout:R,panelDataArray:[],panelDataArrayChanged:!1});S.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),S.useImperativeHandle(l,()=>({getId:a(()=>N.current.id,"getId"),getLayout:a(()=>{const{layout:M}=j.current;return M},"getLayout"),setLayout:a(M=>{const{onLayout:ne}=N.current,{layout:me,panelDataArray:oe}=j.current,K=WS({layout:M,panelConstraints:oe.map(fe=>fe.constraints)});QS(me,K)||(C(K),j.current.layout=K,ne&&ne(K),oa(oe,K,k.current))},"setLayout")}),[]),Xi(()=>{N.current.autoSaveId=e,N.current.direction=o,N.current.dragState=E,N.current.id=b,N.current.onLayout=c,N.current.storage=h}),A8({committedValuesRef:N,eagerValuesRef:j,groupId:b,layout:R,panelDataArray:j.current.panelDataArray,setLayout:C,panelGroupElement:x.current}),S.useEffect(()=>{const{panelDataArray:M}=j.current;if(e){if(R.length===0||R.length!==M.length)return;let ne=ZS[e];ne==null&&(ne=N8(L8,z8),ZS[e]=ne);const me=[...M],oe=new Map(z.current);ne(e,me,oe,R,h)}},[e,R,h]),S.useEffect(()=>{});const $=S.useCallback(M=>{const{onLayout:ne}=N.current,{layout:me,panelDataArray:oe}=j.current;if(M.constraints.collapsible){const K=oe.map(Pe=>Pe.constraints),{collapsedSize:fe=0,panelSize:Ce,pivotIndices:Te}=$i(oe,M,me);if(Be(Ce!=null,`Panel size not found for panel "${M.id}"`),!jr(Ce,fe)){z.current.set(M.id,Ce);const qe=aa(oe,M)===oe.length-1?Ce-fe:fe-Ce,Ie=ql({delta:qe,initialLayout:me,panelConstraints:K,pivotIndices:Te,prevLayout:me,trigger:"imperative-api"});Xu(me,Ie)||(C(Ie),j.current.layout=Ie,ne&&ne(Ie),oa(oe,Ie,k.current))}}},[]),W=S.useCallback((M,ne)=>{const{onLayout:me}=N.current,{layout:oe,panelDataArray:K}=j.current;if(M.constraints.collapsible){const fe=K.map(ut=>ut.constraints),{collapsedSize:Ce=0,panelSize:Te=0,minSize:Pe=0,pivotIndices:qe}=$i(K,M,oe),Ie=ne??Pe;if(jr(Te,Ce)){const ut=z.current.get(M.id),Kt=ut!=null&&ut>=Ie?ut:Ie,St=aa(K,M)===K.length-1?Te-Kt:Kt-Te,At=ql({delta:St,initialLayout:oe,panelConstraints:fe,pivotIndices:qe,prevLayout:oe,trigger:"imperative-api"});Xu(oe,At)||(C(At),j.current.layout=At,me&&me(At),oa(K,At,k.current))}}},[]),J=S.useCallback(M=>{const{layout:ne,panelDataArray:me}=j.current,{panelSize:oe}=$i(me,M,ne);return Be(oe!=null,`Panel size not found for panel "${M.id}"`),oe},[]),X=S.useCallback((M,ne)=>{const{panelDataArray:me}=j.current,oe=aa(me,M);return D8({defaultSize:ne,dragState:E,layout:R,panelData:me,panelIndex:oe})},[E,R]),Z=S.useCallback(M=>{const{layout:ne,panelDataArray:me}=j.current,{collapsedSize:oe=0,collapsible:K,panelSize:fe}=$i(me,M,ne);return Be(fe!=null,`Panel size not found for panel "${M.id}"`),K===!0&&jr(fe,oe)},[]),ce=S.useCallback(M=>{const{layout:ne,panelDataArray:me}=j.current,{collapsedSize:oe=0,collapsible:K,panelSize:fe}=$i(me,M,ne);return Be(fe!=null,`Panel size not found for panel "${M.id}"`),!K||oo(fe,oe)>0},[]),q=S.useCallback(M=>{const{panelDataArray:ne}=j.current;ne.push(M),ne.sort((me,oe)=>{const K=me.order,fe=oe.order;return K==null&&fe==null?0:K==null?-1:fe==null?1:K-fe}),j.current.panelDataArrayChanged=!0,A()},[A]);Xi(()=>{if(j.current.panelDataArrayChanged){j.current.panelDataArrayChanged=!1;const{autoSaveId:M,onLayout:ne,storage:me}=N.current,{layout:oe,panelDataArray:K}=j.current;let fe=null;if(M){const Te=P8(M,K,me);Te&&(z.current=new Map(Object.entries(Te.expandToSizes)),fe=Te.layout)}fe==null&&(fe=k8({panelDataArray:K}));const Ce=WS({layout:fe,panelConstraints:K.map(Te=>Te.constraints)});QS(oe,Ce)||(C(Ce),j.current.layout=Ce,ne&&ne(Ce),oa(K,Ce,k.current))}}),Xi(()=>{const M=j.current;return()=>{M.layout=[]}},[]);const ae=S.useCallback(M=>{let ne=!1;const me=x.current;return me&&window.getComputedStyle(me,null).getPropertyValue("direction")==="rtl"&&(ne=!0),a(function(K){K.preventDefault();const fe=x.current;if(!fe)return()=>null;const{direction:Ce,dragState:Te,id:Pe,keyboardResizeBy:qe,onLayout:Ie}=N.current,{layout:ut,panelDataArray:Kt}=j.current,{initialLayout:an}=Te??{},St=PR(Pe,M,fe);let At=_8(K,M,Ce,Te,qe,fe);const $r=Ce==="horizontal";$r&&ne&&(At=-At);const Ai=Kt.map(ho=>ho.constraints),xn=ql({delta:At,initialLayout:an??ut,panelConstraints:Ai,pivotIndices:St,prevLayout:ut,trigger:CR(K)?"keyboard":"mouse-or-touch"}),fo=!Xu(ut,xn);(TR(K)||RR(K))&&L.current!=At&&(L.current=At,!fo&&At!==0?$r?vp(M,At<0?AR:MR):vp(M,At<0?_R:kR):vp(M,0)),fo&&(C(xn),j.current.layout=xn,Ie&&Ie(xn),oa(Kt,xn,k.current))},"resizeHandler")},[]),I=S.useCallback((M,ne)=>{const{onLayout:me}=N.current,{layout:oe,panelDataArray:K}=j.current,fe=K.map(ut=>ut.constraints),{panelSize:Ce,pivotIndices:Te}=$i(K,M,oe);Be(Ce!=null,`Panel size not found for panel "${M.id}"`);const qe=aa(K,M)===K.length-1?Ce-ne:ne-Ce,Ie=ql({delta:qe,initialLayout:oe,panelConstraints:fe,pivotIndices:Te,prevLayout:oe,trigger:"imperative-api"});Xu(oe,Ie)||(C(Ie),j.current.layout=Ie,me&&me(Ie),oa(K,Ie,k.current))},[]),Q=S.useCallback((M,ne)=>{const{layout:me,panelDataArray:oe}=j.current,{collapsedSize:K=0,collapsible:fe}=ne,{collapsedSize:Ce=0,collapsible:Te,maxSize:Pe=100,minSize:qe=0}=M.constraints,{panelSize:Ie}=$i(oe,M,me);Ie!=null&&(fe&&Te&&jr(Ie,K)?jr(K,Ce)||I(M,Ce):Ie<qe?I(M,qe):Ie>Pe&&I(M,Pe))},[I]),te=S.useCallback((M,ne)=>{const{direction:me}=N.current,{layout:oe}=j.current;if(!x.current)return;const K=cf(M,x.current);Be(K,`Drag handle element not found for id "${M}"`);const fe=zR(me,ne);w({dragHandleId:M,dragHandleRect:K.getBoundingClientRect(),initialCursorPosition:fe,initialLayout:oe})},[]),se=S.useCallback(()=>{w(null)},[]),O=S.useCallback(M=>{const{panelDataArray:ne}=j.current,me=aa(ne,M);me>=0&&(ne.splice(me,1),delete k.current[M.id],j.current.panelDataArrayChanged=!0,A())},[A]),Y=S.useMemo(()=>({collapsePanel:$,direction:o,dragState:E,expandPanel:W,getPanelSize:J,getPanelStyle:X,groupId:b,isPanelCollapsed:Z,isPanelExpanded:ce,reevaluatePanelConstraints:Q,registerPanel:q,registerResizeHandle:ae,resizePanel:I,startDragging:te,stopDragging:se,unregisterPanel:O,panelGroupElement:x.current}),[$,E,o,W,J,X,b,Z,ce,Q,q,ae,I,te,se,O]),de={display:"flex",flexDirection:o==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return S.createElement(lf.Provider,{value:Y},S.createElement(m,{...y,children:t,className:r,id:u,ref:x,style:{...de,...p},[gt.group]:"",[gt.groupDirection]:o,[gt.groupId]:b}))}a(BR,"PanelGroupWithForwardedRef");const I8=S.forwardRef((e,t)=>S.createElement(BR,{...e,forwardedRef:t}));BR.displayName="PanelGroup";I8.displayName="forwardRef(PanelGroup)";function aa(e,t){return e.findIndex(r=>r===t||r.id===t.id)}a(aa,"findPanelDataIndex");function $i(e,t,r){const o=aa(e,t),u=o===e.length-1?[o-1,o]:[o,o+1],c=r[o];return{...t.constraints,panelSize:c,pivotIndices:u}}a($i,"panelDataHelper");function j8({disabled:e,handleId:t,resizeHandler:r,panelGroupElement:o}){S.useEffect(()=>{if(e||r==null||o==null)return;const l=cf(t,o);if(l==null)return;const u=a(c=>{if(!c.defaultPrevented)switch(c.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{c.preventDefault(),r(c);break}case"F6":{c.preventDefault();const d=l.getAttribute(gt.groupId);Be(d,`No group element found for id "${d}"`);const h=ls(d,o),p=NR(d,t,o);Be(p!==null,`No resize element found for id "${t}"`);const m=c.shiftKey?p>0?p-1:h.length-1:p+1<h.length?p+1:0;h[m].focus();break}}},"onKeyDown");return l.addEventListener("keydown",u),()=>{l.removeEventListener("keydown",u)}},[o,e,t,r])}a(j8,"useWindowSplitterResizeHandlerBehavior");function U8({children:e=null,className:t="",disabled:r=!1,hitAreaMargins:o,id:l,onBlur:u,onClick:c,onDragging:d,onFocus:h,onPointerDown:p,onPointerUp:m,style:y={},tabIndex:b=0,tagName:x="div",...E}){var w,R;const C=S.useRef(null),A=S.useRef({onClick:c,onDragging:d,onPointerDown:p,onPointerUp:m});S.useEffect(()=>{A.current.onClick=c,A.current.onDragging=d,A.current.onPointerDown=p,A.current.onPointerUp=m});const k=S.useContext(lf);if(k===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:z,groupId:L,registerResizeHandle:N,startDragging:j,stopDragging:$,panelGroupElement:W}=k,J=Mg(l),[X,Z]=S.useState("inactive"),[ce,q]=S.useState(!1),[ae,I]=S.useState(null),Q=S.useRef({state:X});Xi(()=>{Q.current.state=X}),S.useEffect(()=>{if(r)I(null);else{const Y=N(J);I(()=>Y)}},[r,J,N]);const te=(w=o?.coarse)!==null&&w!==void 0?w:15,se=(R=o?.fine)!==null&&R!==void 0?R:5;S.useEffect(()=>{if(r||ae==null)return;const Y=C.current;Be(Y,"Element ref not attached");let de=!1;return w8(J,Y,z,{coarse:te,fine:se},a((ne,me,oe)=>{if(!me){Z("inactive");return}switch(ne){case"down":{Z("drag"),de=!1,Be(oe,'Expected event to be defined for "down" action'),j(J,oe);const{onDragging:K,onPointerDown:fe}=A.current;K?.(!0),fe?.();break}case"move":{const{state:K}=Q.current;de=!0,K!=="drag"&&Z("hover"),Be(oe,'Expected event to be defined for "move" action'),ae(oe);break}case"up":{Z("hover"),$();const{onClick:K,onDragging:fe,onPointerUp:Ce}=A.current;fe?.(!1),Ce?.(),de||K?.();break}}},"setResizeHandlerState"))},[te,z,r,se,N,J,ae,j,$]),j8({disabled:r,handleId:J,resizeHandler:ae,panelGroupElement:W});const O={touchAction:"none",userSelect:"none"};return S.createElement(x,{...E,children:e,className:t,id:l,onBlur:a(()=>{q(!1),u?.()},"onBlur"),onFocus:a(()=>{q(!0),h?.()},"onFocus"),ref:C,role:"separator",style:{...O,...y},tabIndex:b,[gt.groupDirection]:z,[gt.groupId]:L,[gt.resizeHandle]:"",[gt.resizeHandleActive]:X==="drag"?"pointer":ce?"keyboard":void 0,[gt.resizeHandleEnabled]:!r,[gt.resizeHandleId]:J,[gt.resizeHandleState]:X})}a(U8,"PanelResizeHandle");U8.displayName="PanelResizeHandle";var ff="Collapsible",[B8]=$t(ff),[H8,Dg]=B8(ff),HR=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:o,defaultOpen:l,disabled:u,onOpenChange:c,...d}=e,[h,p]=pr({prop:o,defaultProp:l??!1,onChange:c,caller:ff});return D.jsx(H8,{scope:r,disabled:u,contentId:Ln(),open:h,onOpenToggle:S.useCallback(()=>p(m=>!m),[p]),children:D.jsx(Ee.div,{"data-state":Pg(h),"data-disabled":u?"":void 0,...d,ref:t})})});HR.displayName=ff;var FR="CollapsibleTrigger",F8=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,...o}=e,l=Dg(FR,r);return D.jsx(Ee.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":Pg(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...o,ref:t,onClick:ye(e.onClick,l.onOpenToggle)})});F8.displayName=FR;var Ng="CollapsibleContent",q8=S.forwardRef((e,t)=>{const{forceMount:r,...o}=e,l=Dg(Ng,e.__scopeCollapsible);return D.jsx(It,{present:r||l.open,children:a(({present:u})=>D.jsx(V8,{...o,ref:t,present:u}),"children")})});q8.displayName=Ng;var V8=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:o,children:l,...u}=e,c=Dg(Ng,r),[d,h]=S.useState(o),p=S.useRef(null),m=ze(t,p),y=S.useRef(0),b=y.current,x=S.useRef(0),E=x.current,w=c.open||d,R=S.useRef(w),C=S.useRef(void 0);return S.useEffect(()=>{const A=requestAnimationFrame(()=>R.current=!1);return()=>cancelAnimationFrame(A)},[]),bt(()=>{const A=p.current;if(A){C.current=C.current||{transitionDuration:A.style.transitionDuration,animationName:A.style.animationName},A.style.transitionDuration="0s",A.style.animationName="none";const k=A.getBoundingClientRect();y.current=k.height,x.current=k.width,R.current||(A.style.transitionDuration=C.current.transitionDuration,A.style.animationName=C.current.animationName),h(o)}},[c.open,o]),D.jsx(Ee.div,{"data-state":Pg(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!w,...u,ref:m,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style},children:w&&l})});function Pg(e){return e?"open":"closed"}a(Pg,"getState$1");var MB=HR,df="Switch",[G8]=$t(df),[$8,Y8]=G8(df),qR=S.forwardRef((e,t)=>{const{__scopeSwitch:r,name:o,checked:l,defaultChecked:u,required:c,disabled:d,value:h="on",onCheckedChange:p,form:m,...y}=e,[b,x]=S.useState(null),E=ze(t,k=>x(k)),w=S.useRef(!1),R=b?m||!!b.closest("form"):!0,[C,A]=pr({prop:l,defaultProp:u??!1,onChange:p,caller:df});return D.jsxs($8,{scope:r,checked:C,disabled:d,children:[D.jsx(Ee.button,{type:"button",role:"switch","aria-checked":C,"aria-required":c,"data-state":YR(C),"data-disabled":d?"":void 0,disabled:d,value:h,...y,ref:E,onClick:ye(e.onClick,k=>{A(z=>!z),R&&(w.current=k.isPropagationStopped(),w.current||k.stopPropagation())})}),R&&D.jsx($R,{control:b,bubbles:!w.current,name:o,value:h,checked:C,required:c,disabled:d,form:m,style:{transform:"translateX(-100%)"}})]})});qR.displayName=df;var VR="SwitchThumb",GR=S.forwardRef((e,t)=>{const{__scopeSwitch:r,...o}=e,l=Y8(VR,r);return D.jsx(Ee.span,{"data-state":YR(l.checked),"data-disabled":l.disabled?"":void 0,...o,ref:t})});GR.displayName=VR;var K8="SwitchBubbleInput",$R=S.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:o=!0,...l},u)=>{const c=S.useRef(null),d=ze(c,u),h=cE(r),p=$x(t);return S.useEffect(()=>{const m=c.current;if(!m)return;const y=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(y,"checked").set;if(h!==r&&x){const E=new Event("click",{bubbles:o});x.call(m,r),m.dispatchEvent(E)}},[h,r,o]),D.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...l,tabIndex:-1,ref:d,style:{...l.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});$R.displayName=K8;function YR(e){return e?"checked":"unchecked"}a(YR,"getState");var _B=qR,kB=GR;export{sB as $,XU as A,VU as B,X_ as C,Z_ as D,KU as E,h7 as F,qU as G,QU as H,UU as I,TU as J,ZU as K,NU as L,JU as M,eB as N,Q_ as O,K_ as P,tB as Q,e7 as R,J8 as S,Y_ as T,rB as U,jU as V,iB as W,pU as X,nB as Y,oB as Z,aB as _,$_ as a,RB as a$,fB as a0,dB as a1,cB as a2,uB as a3,lB as a4,p7 as a5,W8 as a6,f7 as a7,d7 as a8,R7 as a9,gB as aA,yB as aB,vB as aC,CU as aD,RU as aE,Ci as aF,a7 as aG,lU as aH,x7 as aI,W7 as aJ,EP as aK,M7 as aL,iU as aM,C7 as aN,J7 as aO,N7 as aP,nU as aQ,v7 as aR,H7 as aS,bB as aT,$e as aU,Ze as aV,TB as aW,SB as aX,wB as aY,EB as aZ,CB as a_,n7 as aa,o7 as ab,B7 as ac,g7 as ad,uU as ae,eU as af,tU as ag,j7 as ah,fU as ai,U7 as aj,hB as ak,pB as al,mB as am,L3 as an,H3 as ao,D7 as ap,P7 as aq,_7 as ar,k7 as as,K7 as at,sU as au,b7 as av,E7 as aw,Iw as ax,jm as ay,m7 as az,Dx as b,EU as b$,xB as b0,Z7 as b1,X7 as b2,hU as b3,T7 as b4,aU as b5,s7 as b6,O7 as b7,bR as b8,O9 as b9,q8 as bA,y7 as bB,mU as bC,l7 as bD,I7 as bE,t7 as bF,cU as bG,Q7 as bH,dU as bI,w7 as bJ,S7 as bK,_e as bL,q7 as bM,rU as bN,Y7 as bO,r7 as bP,G7 as bQ,A7 as bR,$7 as bS,oU as bT,OU as bU,_B as bV,kB as bW,Vw as bX,z7 as bY,i7 as bZ,_U as b_,OB as ba,GI as bb,VI as bc,da as bd,xS as be,xR as bf,zI as bg,LS as bh,bn as bi,sr as bj,rn as bk,im as bl,rf as bm,st as bn,gr as bo,xg as bp,Ne as bq,We as br,jI as bs,AB as bt,d8 as bu,I8 as bv,U8 as bw,L7 as bx,MB as by,F8 as bz,W_ as c,wU as c0,MU as c1,F7 as c2,AU as c3,ZN as c4,Z8 as c5,gU as d,yU as e,vU as f,Vr as g,bU as h,SU as i,D as j,V7 as k,kU as l,DU as m,PU as n,LU as o,zU as p,IU as q,S as r,c7 as s,BU as t,HU as u,FU as v,GU as w,YU as x,u7 as y,$U as z};
546
+ //# sourceMappingURL=react-vendor-BZhB15Ka.js.map