xiaozhi-client 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -397
- package/dist/WebServerStandalone.js +34 -13
- package/dist/WebServerStandalone.js.map +1 -1
- package/dist/cli.js +36 -15
- package/dist/cli.js.map +1 -1
- package/dist/mcpServerProxy.js +28 -7
- package/dist/mcpServerProxy.js.map +1 -1
- package/dist/package.json +10 -5
- package/docs/{Architecture.md → development/architecture.mdx} +4 -1
- package/docs/docs.json +51 -0
- package/docs/getting-started/install.mdx +191 -0
- package/docs/getting-started/intro.mdx +11 -0
- package/docs/getting-started/quickstart.mdx +108 -0
- package/docs/images/preview.png +0 -0
- package/docs/reference/command.mdx +15 -0
- package/docs/usage/add-mcp-server.mdx +6 -0
- package/docs/usage/as-a-mcp-server.mdx +6 -0
- package/docs/usage/docker.mdx +99 -0
- package/docs/usage/modelscope.mdx +6 -0
- package/docs/usage/web-control.mdx +6 -0
- package/package.json +10 -5
- package/web/dist/assets/{form-utils-DmILtYcF.js → form-utils-RpkiEEz8.js} +2 -2
- package/web/dist/assets/{form-utils-DmILtYcF.js.map → form-utils-RpkiEEz8.js.map} +1 -1
- package/web/dist/assets/index-BjG6tl-5.css +1 -0
- package/web/dist/assets/index-BvDVeF-B.js +31 -0
- package/web/dist/assets/index-BvDVeF-B.js.map +1 -0
- package/web/dist/assets/radix-ui-BA32w1ww.js +2 -0
- package/web/dist/assets/radix-ui-BA32w1ww.js.map +1 -0
- package/web/dist/assets/react-vendor-CoesXubw.js +234 -0
- package/web/dist/assets/react-vendor-CoesXubw.js.map +1 -0
- package/web/dist/assets/{utils-DYeV2b9J.js → utils-N_0RTAPv.js} +2 -2
- package/web/dist/assets/{utils-DYeV2b9J.js.map → utils-N_0RTAPv.js.map} +1 -1
- package/web/dist/index.html +6 -6
- package/docs/CLI.md +0 -928
- package/docs/examples-usage.md +0 -647
- package/web/dist/assets/index-Cz9EK1KU.css +0 -1
- package/web/dist/assets/index-Uy1wxZ-_.js +0 -31
- package/web/dist/assets/index-Uy1wxZ-_.js.map +0 -1
- package/web/dist/assets/radix-ui-DW48STyt.js +0 -2
- package/web/dist/assets/radix-ui-DW48STyt.js.map +0 -1
- package/web/dist/assets/react-vendor-CP-QpYlg.js +0 -189
- package/web/dist/assets/react-vendor-CP-QpYlg.js.map +0 -1
- /package/docs/{RELEASE_GUIDE.md → development/todo__release-guide.md} +0 -0
- /package/docs/{SettingManager.md → development/todo__setting-manager.md} +0 -0
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import{c as Be}from"./radix-ui-DW48STyt.js";import{s as tv,_ as gn,a as Xd,g as nv,b as rv,h as ov,c as iv,o as lv,d as sv,f as av,e as uv,i as cv,l as dv,j as Xu,k as fv}from"./vendor-DCIxzvIG.js";import{p as pv,a as hv,$ as mv}from"./form-utils-DmILtYcF.js";function vv(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Gd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zd={exports:{}},yl={},Jd={exports:{}},Y={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var jo=Symbol.for("react.element"),yv=Symbol.for("react.portal"),gv=Symbol.for("react.fragment"),wv=Symbol.for("react.strict_mode"),xv=Symbol.for("react.profiler"),Ev=Symbol.for("react.provider"),Sv=Symbol.for("react.context"),Cv=Symbol.for("react.forward_ref"),kv=Symbol.for("react.suspense"),_v=Symbol.for("react.memo"),Rv=Symbol.for("react.lazy"),Gu=Symbol.iterator;function Pv(e){return e===null||typeof e!="object"?null:(e=Gu&&e[Gu]||e["@@iterator"],typeof e=="function"?e:null)}var qd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ef=Object.assign,tf={};function br(e,t,n){this.props=e,this.context=t,this.refs=tf,this.updater=n||qd}br.prototype.isReactComponent={};br.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};br.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nf(){}nf.prototype=br.prototype;function Na(e,t,n){this.props=e,this.context=t,this.refs=tf,this.updater=n||qd}var Ta=Na.prototype=new nf;Ta.constructor=Na;ef(Ta,br.prototype);Ta.isPureReactComponent=!0;var Zu=Array.isArray,rf=Object.prototype.hasOwnProperty,Da={current:null},of={key:!0,ref:!0,__self:!0,__source:!0};function lf(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)rf.call(t,r)&&!of.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:jo,type:e,key:i,ref:l,props:o,_owner:Da.current}}function Nv(e,t){return{$$typeof:jo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Oa(e){return typeof e=="object"&&e!==null&&e.$$typeof===jo}function Tv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ju=/\/+/g;function Hl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Tv(""+e.key):t.toString(36)}function Ei(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case jo:case yv:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Hl(l,0):r,Zu(o)?(n="",e!=null&&(n=e.replace(Ju,"$&/")+"/"),Ei(o,t,n,"",function(u){return u})):o!=null&&(Oa(o)&&(o=Nv(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Ju,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",Zu(e))for(var s=0;s<e.length;s++){i=e[s];var a=r+Hl(i,s);l+=Ei(i,t,n,a,o)}else if(a=Pv(e),typeof a=="function")for(e=a.call(e),s=0;!(i=e.next()).done;)i=i.value,a=r+Hl(i,s++),l+=Ei(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Jo(e,t,n){if(e==null)return e;var r=[],o=0;return Ei(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Dv(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var We={current:null},Si={transition:null},Ov={ReactCurrentDispatcher:We,ReactCurrentBatchConfig:Si,ReactCurrentOwner:Da};function sf(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:Jo,forEach:function(e,t,n){Jo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Jo(e,function(){t++}),t},toArray:function(e){return Jo(e,function(t){return t})||[]},only:function(e){if(!Oa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=br;Y.Fragment=gv;Y.Profiler=xv;Y.PureComponent=Na;Y.StrictMode=wv;Y.Suspense=kv;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ov;Y.act=sf;Y.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ef({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=Da.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)rf.call(t,a)&&!of.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:jo,type:e.type,key:o,ref:i,props:r,_owner:l}};Y.createContext=function(e){return e={$$typeof:Sv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ev,_context:e},e.Consumer=e};Y.createElement=lf;Y.createFactory=function(e){var t=lf.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:Cv,render:e}};Y.isValidElement=Oa;Y.lazy=function(e){return{$$typeof:Rv,_payload:{_status:-1,_result:e},_init:Dv}};Y.memo=function(e,t){return{$$typeof:_v,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=Si.transition;Si.transition={};try{e()}finally{Si.transition=t}};Y.unstable_act=sf;Y.useCallback=function(e,t){return We.current.useCallback(e,t)};Y.useContext=function(e){return We.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return We.current.useDeferredValue(e)};Y.useEffect=function(e,t){return We.current.useEffect(e,t)};Y.useId=function(){return We.current.useId()};Y.useImperativeHandle=function(e,t,n){return We.current.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return We.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return We.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return We.current.useMemo(e,t)};Y.useReducer=function(e,t,n){return We.current.useReducer(e,t,n)};Y.useRef=function(e){return We.current.useRef(e)};Y.useState=function(e){return We.current.useState(e)};Y.useSyncExternalStore=function(e,t,n){return We.current.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return We.current.useTransition()};Y.version="18.3.1";Jd.exports=Y;var f=Jd.exports;const R=Gd(f),af=vv({__proto__:null,default:R},[f]);/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Av=f,Lv=Symbol.for("react.element"),Mv=Symbol.for("react.fragment"),Fv=Object.prototype.hasOwnProperty,Iv=Av.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bv={key:!0,ref:!0,__self:!0,__source:!0};function uf(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Fv.call(t,r)&&!bv.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Lv,type:e,key:i,ref:l,props:o,_owner:Iv.current}}yl.Fragment=Mv;yl.jsx=uf;yl.jsxs=uf;Zd.exports=yl;var F=Zd.exports,qu={},cf={exports:{}},ut={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react-dom.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var $v=f,at=tv;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var df=new Set,xo={};function qn(e,t){Nr(e,t),Nr(e+"Capture",t)}function Nr(e,t){for(xo[e]=t,e=0;e<t.length;e++)df.add(t[e])}var rn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ps=Object.prototype.hasOwnProperty,zv=/^[: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]*$/,ec={},tc={};function jv(e){return Ps.call(tc,e)?!0:Ps.call(ec,e)?!1:zv.test(e)?tc[e]=!0:(ec[e]=!0,!1)}function Vv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Uv(e,t,n,r){if(t===null||typeof t>"u"||Vv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ye(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Oe[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Oe[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Oe[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Oe[e]=new Ye(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Oe[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Oe[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Oe[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Oe[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Oe[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var Aa=/[\-:]([a-z])/g;function La(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Aa,La);Oe[t]=new Ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Aa,La);Oe[t]=new Ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Aa,La);Oe[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Oe[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});Oe.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Oe[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ma(e,t,n,r){var o=Oe.hasOwnProperty(t)?Oe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Uv(t,n,o,r)&&(n=null),r||o===null?jv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var un=$v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,qo=Symbol.for("react.element"),ar=Symbol.for("react.portal"),ur=Symbol.for("react.fragment"),Fa=Symbol.for("react.strict_mode"),Ns=Symbol.for("react.profiler"),ff=Symbol.for("react.provider"),pf=Symbol.for("react.context"),Ia=Symbol.for("react.forward_ref"),Ts=Symbol.for("react.suspense"),Ds=Symbol.for("react.suspense_list"),ba=Symbol.for("react.memo"),vn=Symbol.for("react.lazy"),hf=Symbol.for("react.offscreen"),nc=Symbol.iterator;function Qr(e){return e===null||typeof e!="object"?null:(e=nc&&e[nc]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Object.assign,Wl;function oo(e){if(Wl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Wl=t&&t[1]||""}return`
|
|
26
|
-
`+Wl+e}var Yl=!1;function Ql(e,t){if(!e||Yl)return"";Yl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
27
|
-
`),i=r.stack.split(`
|
|
28
|
-
`),l=o.length-1,s=i.length-1;1<=l&&0<=s&&o[l]!==i[s];)s--;for(;1<=l&&0<=s;l--,s--)if(o[l]!==i[s]){if(l!==1||s!==1)do if(l--,s--,0>s||o[l]!==i[s]){var a=`
|
|
29
|
-
`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Yl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?oo(e):""}function Bv(e){switch(e.tag){case 5:return oo(e.type);case 16:return oo("Lazy");case 13:return oo("Suspense");case 19:return oo("SuspenseList");case 0:case 2:case 15:return e=Ql(e.type,!1),e;case 11:return e=Ql(e.type.render,!1),e;case 1:return e=Ql(e.type,!0),e;default:return""}}function Os(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ur:return"Fragment";case ar:return"Portal";case Ns:return"Profiler";case Fa:return"StrictMode";case Ts:return"Suspense";case Ds:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pf:return(e.displayName||"Context")+".Consumer";case ff:return(e._context.displayName||"Context")+".Provider";case Ia:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ba:return t=e.displayName||null,t!==null?t:Os(e.type)||"Memo";case vn:t=e._payload,e=e._init;try{return Os(e(t))}catch{}}return null}function Hv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Os(t);case 8:return t===Fa?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function On(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Wv(e){var t=mf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ei(e){e._valueTracker||(e._valueTracker=Wv(e))}function vf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ji(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function As(e,t){var n=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function rc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=On(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yf(e,t){t=t.checked,t!=null&&Ma(e,"checked",t,!1)}function Ls(e,t){yf(e,t);var n=On(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ms(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ms(e,t.type,On(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ms(e,t,n){(t!=="number"||ji(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var io=Array.isArray;function xr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+On(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Fs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ic(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(io(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:On(n)}}function gf(e,t){var n=On(t.value),r=On(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function lc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function wf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Is(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?wf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ti,xf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ti=ti||document.createElement("div"),ti.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ti.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Eo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ao={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Yv=["Webkit","ms","Moz","O"];Object.keys(ao).forEach(function(e){Yv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ao[t]=ao[e]})});function Ef(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ao.hasOwnProperty(e)&&ao[e]?(""+t).trim():t+"px"}function Sf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ef(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Qv=pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bs(e,t){if(t){if(Qv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function $s(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zs=null;function $a(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var js=null,Er=null,Sr=null;function sc(e){if(e=Bo(e)){if(typeof js!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Sl(t),js(e.stateNode,e.type,t))}}function Cf(e){Er?Sr?Sr.push(e):Sr=[e]:Er=e}function kf(){if(Er){var e=Er,t=Sr;if(Sr=Er=null,sc(e),t)for(e=0;e<t.length;e++)sc(t[e])}}function _f(e,t){return e(t)}function Rf(){}var Kl=!1;function Pf(e,t,n){if(Kl)return e(t,n);Kl=!0;try{return _f(e,t,n)}finally{Kl=!1,(Er!==null||Sr!==null)&&(Rf(),kf())}}function So(e,t){var n=e.stateNode;if(n===null)return null;var r=Sl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(T(231,t,typeof n));return n}var Vs=!1;if(rn)try{var Kr={};Object.defineProperty(Kr,"passive",{get:function(){Vs=!0}}),window.addEventListener("test",Kr,Kr),window.removeEventListener("test",Kr,Kr)}catch{Vs=!1}function Kv(e,t,n,r,o,i,l,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var uo=!1,Vi=null,Ui=!1,Us=null,Xv={onError:function(e){uo=!0,Vi=e}};function Gv(e,t,n,r,o,i,l,s,a){uo=!1,Vi=null,Kv.apply(Xv,arguments)}function Zv(e,t,n,r,o,i,l,s,a){if(Gv.apply(this,arguments),uo){if(uo){var u=Vi;uo=!1,Vi=null}else throw Error(T(198));Ui||(Ui=!0,Us=u)}}function er(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Nf(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ac(e){if(er(e)!==e)throw Error(T(188))}function Jv(e){var t=e.alternate;if(!t){if(t=er(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return ac(o),e;if(i===r)return ac(o),t;i=i.sibling}throw Error(T(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function Tf(e){return e=Jv(e),e!==null?Df(e):null}function Df(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Df(e);if(t!==null)return t;e=e.sibling}return null}var Of=at.unstable_scheduleCallback,uc=at.unstable_cancelCallback,qv=at.unstable_shouldYield,ey=at.unstable_requestPaint,ye=at.unstable_now,ty=at.unstable_getCurrentPriorityLevel,za=at.unstable_ImmediatePriority,Af=at.unstable_UserBlockingPriority,Bi=at.unstable_NormalPriority,ny=at.unstable_LowPriority,Lf=at.unstable_IdlePriority,gl=null,Ut=null;function ry(e){if(Ut&&typeof Ut.onCommitFiberRoot=="function")try{Ut.onCommitFiberRoot(gl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ot=Math.clz32?Math.clz32:ly,oy=Math.log,iy=Math.LN2;function ly(e){return e>>>=0,e===0?32:31-(oy(e)/iy|0)|0}var ni=64,ri=4194304;function lo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Hi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=lo(s):(i&=l,i!==0&&(r=lo(i)))}else l=n&~o,l!==0?r=lo(l):i!==0&&(r=lo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ot(t),o=1<<n,r|=e[n],t&=~o;return r}function sy(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ay(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Ot(i),s=1<<l,a=o[l];a===-1?(!(s&n)||s&r)&&(o[l]=sy(s,t)):a<=t&&(e.expiredLanes|=s),i&=~s}}function Bs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Mf(){var e=ni;return ni<<=1,!(ni&4194240)&&(ni=64),e}function Xl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=n}function uy(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ot(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function ja(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ot(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var te=0;function Ff(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var If,Va,bf,$f,zf,Hs=!1,oi=[],Cn=null,kn=null,_n=null,Co=new Map,ko=new Map,wn=[],cy="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 submit".split(" ");function cc(e,t){switch(e){case"focusin":case"focusout":Cn=null;break;case"dragenter":case"dragleave":kn=null;break;case"mouseover":case"mouseout":_n=null;break;case"pointerover":case"pointerout":Co.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ko.delete(t.pointerId)}}function Xr(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Bo(t),t!==null&&Va(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function dy(e,t,n,r,o){switch(t){case"focusin":return Cn=Xr(Cn,e,t,n,r,o),!0;case"dragenter":return kn=Xr(kn,e,t,n,r,o),!0;case"mouseover":return _n=Xr(_n,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Co.set(i,Xr(Co.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ko.set(i,Xr(ko.get(i)||null,e,t,n,r,o)),!0}return!1}function jf(e){var t=Vn(e.target);if(t!==null){var n=er(t);if(n!==null){if(t=n.tag,t===13){if(t=Nf(n),t!==null){e.blockedOn=t,zf(e.priority,function(){bf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ci(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ws(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);zs=r,n.target.dispatchEvent(r),zs=null}else return t=Bo(n),t!==null&&Va(t),e.blockedOn=n,!1;t.shift()}return!0}function dc(e,t,n){Ci(e)&&n.delete(t)}function fy(){Hs=!1,Cn!==null&&Ci(Cn)&&(Cn=null),kn!==null&&Ci(kn)&&(kn=null),_n!==null&&Ci(_n)&&(_n=null),Co.forEach(dc),ko.forEach(dc)}function Gr(e,t){e.blockedOn===t&&(e.blockedOn=null,Hs||(Hs=!0,at.unstable_scheduleCallback(at.unstable_NormalPriority,fy)))}function _o(e){function t(o){return Gr(o,e)}if(0<oi.length){Gr(oi[0],e);for(var n=1;n<oi.length;n++){var r=oi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Cn!==null&&Gr(Cn,e),kn!==null&&Gr(kn,e),_n!==null&&Gr(_n,e),Co.forEach(t),ko.forEach(t),n=0;n<wn.length;n++)r=wn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<wn.length&&(n=wn[0],n.blockedOn===null);)jf(n),n.blockedOn===null&&wn.shift()}var Cr=un.ReactCurrentBatchConfig,Wi=!0;function py(e,t,n,r){var o=te,i=Cr.transition;Cr.transition=null;try{te=1,Ua(e,t,n,r)}finally{te=o,Cr.transition=i}}function hy(e,t,n,r){var o=te,i=Cr.transition;Cr.transition=null;try{te=4,Ua(e,t,n,r)}finally{te=o,Cr.transition=i}}function Ua(e,t,n,r){if(Wi){var o=Ws(e,t,n,r);if(o===null)is(e,t,r,Yi,n),cc(e,r);else if(dy(o,e,t,n,r))r.stopPropagation();else if(cc(e,r),t&4&&-1<cy.indexOf(e)){for(;o!==null;){var i=Bo(o);if(i!==null&&If(i),i=Ws(e,t,n,r),i===null&&is(e,t,r,Yi,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else is(e,t,r,null,n)}}var Yi=null;function Ws(e,t,n,r){if(Yi=null,e=$a(r),e=Vn(e),e!==null)if(t=er(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Nf(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yi=e,null}function Vf(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ty()){case za:return 1;case Af:return 4;case Bi:case ny:return 16;case Lf:return 536870912;default:return 16}default:return 16}}var En=null,Ba=null,ki=null;function Uf(){if(ki)return ki;var e,t=Ba,n=t.length,r,o="value"in En?En.value:En.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return ki=o.slice(e,1<r?1-r:void 0)}function _i(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ii(){return!0}function fc(){return!1}function ct(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ii:fc,this.isPropagationStopped=fc,this}return pe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ii)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ii)},persist:function(){},isPersistent:ii}),t}var $r={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ha=ct($r),Uo=pe({},$r,{view:0,detail:0}),my=ct(Uo),Gl,Zl,Zr,wl=pe({},Uo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wa,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zr&&(Zr&&e.type==="mousemove"?(Gl=e.screenX-Zr.screenX,Zl=e.screenY-Zr.screenY):Zl=Gl=0,Zr=e),Gl)},movementY:function(e){return"movementY"in e?e.movementY:Zl}}),pc=ct(wl),vy=pe({},wl,{dataTransfer:0}),yy=ct(vy),gy=pe({},Uo,{relatedTarget:0}),Jl=ct(gy),wy=pe({},$r,{animationName:0,elapsedTime:0,pseudoElement:0}),xy=ct(wy),Ey=pe({},$r,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Sy=ct(Ey),Cy=pe({},$r,{data:0}),hc=ct(Cy),ky={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_y={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"},Ry={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Py(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ry[e])?!!t[e]:!1}function Wa(){return Py}var Ny=pe({},Uo,{key:function(e){if(e.key){var t=ky[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_y[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wa,charCode:function(e){return e.type==="keypress"?_i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ty=ct(Ny),Dy=pe({},wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mc=ct(Dy),Oy=pe({},Uo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wa}),Ay=ct(Oy),Ly=pe({},$r,{propertyName:0,elapsedTime:0,pseudoElement:0}),My=ct(Ly),Fy=pe({},wl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Iy=ct(Fy),by=[9,13,27,32],Ya=rn&&"CompositionEvent"in window,co=null;rn&&"documentMode"in document&&(co=document.documentMode);var $y=rn&&"TextEvent"in window&&!co,Bf=rn&&(!Ya||co&&8<co&&11>=co),vc=" ",yc=!1;function Hf(e,t){switch(e){case"keyup":return by.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cr=!1;function zy(e,t){switch(e){case"compositionend":return Wf(t);case"keypress":return t.which!==32?null:(yc=!0,vc);case"textInput":return e=t.data,e===vc&&yc?null:e;default:return null}}function jy(e,t){if(cr)return e==="compositionend"||!Ya&&Hf(e,t)?(e=Uf(),ki=Ba=En=null,cr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bf&&t.locale!=="ko"?null:t.data;default:return null}}var Vy={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 gc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vy[e.type]:t==="textarea"}function Yf(e,t,n,r){Cf(r),t=Qi(t,"onChange"),0<t.length&&(n=new Ha("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var fo=null,Ro=null;function Uy(e){rp(e,0)}function xl(e){var t=pr(e);if(vf(t))return e}function By(e,t){if(e==="change")return t}var Qf=!1;if(rn){var ql;if(rn){var es="oninput"in document;if(!es){var wc=document.createElement("div");wc.setAttribute("oninput","return;"),es=typeof wc.oninput=="function"}ql=es}else ql=!1;Qf=ql&&(!document.documentMode||9<document.documentMode)}function xc(){fo&&(fo.detachEvent("onpropertychange",Kf),Ro=fo=null)}function Kf(e){if(e.propertyName==="value"&&xl(Ro)){var t=[];Yf(t,Ro,e,$a(e)),Pf(Uy,t)}}function Hy(e,t,n){e==="focusin"?(xc(),fo=t,Ro=n,fo.attachEvent("onpropertychange",Kf)):e==="focusout"&&xc()}function Wy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xl(Ro)}function Yy(e,t){if(e==="click")return xl(t)}function Qy(e,t){if(e==="input"||e==="change")return xl(t)}function Ky(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lt=typeof Object.is=="function"?Object.is:Ky;function Po(e,t){if(Lt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Ps.call(t,o)||!Lt(e[o],t[o]))return!1}return!0}function Ec(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sc(e,t){var n=Ec(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ec(n)}}function Xf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gf(){for(var e=window,t=ji();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ji(e.document)}return t}function Qa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Xy(e){var t=Gf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xf(n.ownerDocument.documentElement,n)){if(r!==null&&Qa(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Sc(n,i);var l=Sc(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Gy=rn&&"documentMode"in document&&11>=document.documentMode,dr=null,Ys=null,po=null,Qs=!1;function Cc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qs||dr==null||dr!==ji(r)||(r=dr,"selectionStart"in r&&Qa(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),po&&Po(po,r)||(po=r,r=Qi(Ys,"onSelect"),0<r.length&&(t=new Ha("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=dr)))}function li(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fr={animationend:li("Animation","AnimationEnd"),animationiteration:li("Animation","AnimationIteration"),animationstart:li("Animation","AnimationStart"),transitionend:li("Transition","TransitionEnd")},ts={},Zf={};rn&&(Zf=document.createElement("div").style,"AnimationEvent"in window||(delete fr.animationend.animation,delete fr.animationiteration.animation,delete fr.animationstart.animation),"TransitionEvent"in window||delete fr.transitionend.transition);function El(e){if(ts[e])return ts[e];if(!fr[e])return e;var t=fr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zf)return ts[e]=t[n];return e}var Jf=El("animationend"),qf=El("animationiteration"),ep=El("animationstart"),tp=El("transitionend"),np=new Map,kc="abort auxClick 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(" ");function Mn(e,t){np.set(e,t),qn(t,[e])}for(var ns=0;ns<kc.length;ns++){var rs=kc[ns],Zy=rs.toLowerCase(),Jy=rs[0].toUpperCase()+rs.slice(1);Mn(Zy,"on"+Jy)}Mn(Jf,"onAnimationEnd");Mn(qf,"onAnimationIteration");Mn(ep,"onAnimationStart");Mn("dblclick","onDoubleClick");Mn("focusin","onFocus");Mn("focusout","onBlur");Mn(tp,"onTransitionEnd");Nr("onMouseEnter",["mouseout","mouseover"]);Nr("onMouseLeave",["mouseout","mouseover"]);Nr("onPointerEnter",["pointerout","pointerover"]);Nr("onPointerLeave",["pointerout","pointerover"]);qn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qn("onBeforeInput",["compositionend","keypress","textInput","paste"]);qn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var so="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(" "),qy=new Set("cancel close invalid load scroll toggle".split(" ").concat(so));function _c(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Zv(r,t,void 0,e),e.currentTarget=null}function rp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==i&&o.isPropagationStopped())break e;_c(o,s,u),i=a}else for(l=0;l<r.length;l++){if(s=r[l],a=s.instance,u=s.currentTarget,s=s.listener,a!==i&&o.isPropagationStopped())break e;_c(o,s,u),i=a}}}if(Ui)throw e=Us,Ui=!1,Us=null,e}function se(e,t){var n=t[Js];n===void 0&&(n=t[Js]=new Set);var r=e+"__bubble";n.has(r)||(op(t,e,2,!1),n.add(r))}function os(e,t,n){var r=0;t&&(r|=4),op(n,e,r,t)}var si="_reactListening"+Math.random().toString(36).slice(2);function No(e){if(!e[si]){e[si]=!0,df.forEach(function(n){n!=="selectionchange"&&(qy.has(n)||os(n,!1,e),os(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[si]||(t[si]=!0,os("selectionchange",!1,t))}}function op(e,t,n,r){switch(Vf(t)){case 1:var o=py;break;case 4:o=hy;break;default:o=Ua}n=o.bind(null,t,n,e),o=void 0,!Vs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function is(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&&(a=l.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;l=l.return}for(;s!==null;){if(l=Vn(s),l===null)return;if(a=l.tag,a===5||a===6){r=i=l;continue e}s=s.parentNode}}r=r.return}Pf(function(){var u=i,d=$a(n),c=[];e:{var m=np.get(e);if(m!==void 0){var g=Ha,x=e;switch(e){case"keypress":if(_i(n)===0)break e;case"keydown":case"keyup":g=Ty;break;case"focusin":x="focus",g=Jl;break;case"focusout":x="blur",g=Jl;break;case"beforeblur":case"afterblur":g=Jl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=pc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=yy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Ay;break;case Jf:case qf:case ep:g=xy;break;case tp:g=My;break;case"scroll":g=my;break;case"wheel":g=Iy;break;case"copy":case"cut":case"paste":g=Sy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=mc}var y=(t&4)!==0,S=!y&&e==="scroll",h=y?m!==null?m+"Capture":null:m;y=[];for(var p=u,v;p!==null;){v=p;var E=v.stateNode;if(v.tag===5&&E!==null&&(v=E,h!==null&&(E=So(p,h),E!=null&&y.push(To(p,E,v)))),S)break;p=p.return}0<y.length&&(m=new g(m,x,null,n,d),c.push({event:m,listeners:y}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",m&&n!==zs&&(x=n.relatedTarget||n.fromElement)&&(Vn(x)||x[on]))break e;if((g||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,g?(x=n.relatedTarget||n.toElement,g=u,x=x?Vn(x):null,x!==null&&(S=er(x),x!==S||x.tag!==5&&x.tag!==6)&&(x=null)):(g=null,x=u),g!==x)){if(y=pc,E="onMouseLeave",h="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(y=mc,E="onPointerLeave",h="onPointerEnter",p="pointer"),S=g==null?m:pr(g),v=x==null?m:pr(x),m=new y(E,p+"leave",g,n,d),m.target=S,m.relatedTarget=v,E=null,Vn(d)===u&&(y=new y(h,p+"enter",x,n,d),y.target=v,y.relatedTarget=S,E=y),S=E,g&&x)t:{for(y=g,h=x,p=0,v=y;v;v=or(v))p++;for(v=0,E=h;E;E=or(E))v++;for(;0<p-v;)y=or(y),p--;for(;0<v-p;)h=or(h),v--;for(;p--;){if(y===h||h!==null&&y===h.alternate)break t;y=or(y),h=or(h)}y=null}else y=null;g!==null&&Rc(c,m,g,y,!1),x!==null&&S!==null&&Rc(c,S,x,y,!0)}}e:{if(m=u?pr(u):window,g=m.nodeName&&m.nodeName.toLowerCase(),g==="select"||g==="input"&&m.type==="file")var k=By;else if(gc(m))if(Qf)k=Qy;else{k=Wy;var N=Hy}else(g=m.nodeName)&&g.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(k=Yy);if(k&&(k=k(e,u))){Yf(c,k,n,d);break e}N&&N(e,m,u),e==="focusout"&&(N=m._wrapperState)&&N.controlled&&m.type==="number"&&Ms(m,"number",m.value)}switch(N=u?pr(u):window,e){case"focusin":(gc(N)||N.contentEditable==="true")&&(dr=N,Ys=u,po=null);break;case"focusout":po=Ys=dr=null;break;case"mousedown":Qs=!0;break;case"contextmenu":case"mouseup":case"dragend":Qs=!1,Cc(c,n,d);break;case"selectionchange":if(Gy)break;case"keydown":case"keyup":Cc(c,n,d)}var P;if(Ya)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else cr?Hf(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(Bf&&n.locale!=="ko"&&(cr||O!=="onCompositionStart"?O==="onCompositionEnd"&&cr&&(P=Uf()):(En=d,Ba="value"in En?En.value:En.textContent,cr=!0)),N=Qi(u,O),0<N.length&&(O=new hc(O,e,null,n,d),c.push({event:O,listeners:N}),P?O.data=P:(P=Wf(n),P!==null&&(O.data=P)))),(P=$y?zy(e,n):jy(e,n))&&(u=Qi(u,"onBeforeInput"),0<u.length&&(d=new hc("onBeforeInput","beforeinput",null,n,d),c.push({event:d,listeners:u}),d.data=P))}rp(c,t)})}function To(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=So(e,n),i!=null&&r.unshift(To(e,i,o)),i=So(e,t),i!=null&&r.push(To(e,i,o))),e=e.return}return r}function or(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Rc(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,o?(a=So(n,i),a!=null&&l.unshift(To(n,a,s))):o||(a=So(n,i),a!=null&&l.push(To(n,a,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var eg=/\r\n?/g,tg=/\u0000|\uFFFD/g;function Pc(e){return(typeof e=="string"?e:""+e).replace(eg,`
|
|
30
|
-
`).replace(tg,"")}function ai(e,t,n){if(t=Pc(t),Pc(e)!==t&&n)throw Error(T(425))}function Ki(){}var Ks=null,Xs=null;function Gs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Zs=typeof setTimeout=="function"?setTimeout:void 0,ng=typeof clearTimeout=="function"?clearTimeout:void 0,Nc=typeof Promise=="function"?Promise:void 0,rg=typeof queueMicrotask=="function"?queueMicrotask:typeof Nc<"u"?function(e){return Nc.resolve(null).then(e).catch(og)}:Zs;function og(e){setTimeout(function(){throw e})}function ls(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),_o(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);_o(t)}function Rn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Tc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var zr=Math.random().toString(36).slice(2),jt="__reactFiber$"+zr,Do="__reactProps$"+zr,on="__reactContainer$"+zr,Js="__reactEvents$"+zr,ig="__reactListeners$"+zr,lg="__reactHandles$"+zr;function Vn(e){var t=e[jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[on]||n[jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Tc(e);e!==null;){if(n=e[jt])return n;e=Tc(e)}return t}e=n,n=e.parentNode}return null}function Bo(e){return e=e[jt]||e[on],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function pr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function Sl(e){return e[Do]||null}var qs=[],hr=-1;function Fn(e){return{current:e}}function ae(e){0>hr||(e.current=qs[hr],qs[hr]=null,hr--)}function oe(e,t){hr++,qs[hr]=e.current,e.current=t}var An={},$e=Fn(An),Ze=Fn(!1),Qn=An;function Tr(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Je(e){return e=e.childContextTypes,e!=null}function Xi(){ae(Ze),ae($e)}function Dc(e,t,n){if($e.current!==An)throw Error(T(168));oe($e,t),oe(Ze,n)}function ip(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(T(108,Hv(e)||"Unknown",o));return pe({},n,r)}function Gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,Qn=$e.current,oe($e,e),oe(Ze,Ze.current),!0}function Oc(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=ip(e,t,Qn),r.__reactInternalMemoizedMergedChildContext=e,ae(Ze),ae($e),oe($e,e)):ae(Ze),oe(Ze,n)}var Zt=null,Cl=!1,ss=!1;function lp(e){Zt===null?Zt=[e]:Zt.push(e)}function sg(e){Cl=!0,lp(e)}function In(){if(!ss&&Zt!==null){ss=!0;var e=0,t=te;try{var n=Zt;for(te=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Zt=null,Cl=!1}catch(o){throw Zt!==null&&(Zt=Zt.slice(e+1)),Of(za,In),o}finally{te=t,ss=!1}}return null}var mr=[],vr=0,Zi=null,Ji=0,ht=[],mt=0,Kn=null,qt=1,en="";function zn(e,t){mr[vr++]=Ji,mr[vr++]=Zi,Zi=e,Ji=t}function sp(e,t,n){ht[mt++]=qt,ht[mt++]=en,ht[mt++]=Kn,Kn=e;var r=qt;e=en;var o=32-Ot(r)-1;r&=~(1<<o),n+=1;var i=32-Ot(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,qt=1<<32-Ot(t)+o|n<<o|r,en=i+e}else qt=1<<i|n<<o|r,en=e}function Ka(e){e.return!==null&&(zn(e,1),sp(e,1,0))}function Xa(e){for(;e===Zi;)Zi=mr[--vr],mr[vr]=null,Ji=mr[--vr],mr[vr]=null;for(;e===Kn;)Kn=ht[--mt],ht[mt]=null,en=ht[--mt],ht[mt]=null,qt=ht[--mt],ht[mt]=null}var st=null,lt=null,ue=!1,Nt=null;function ap(e,t){var n=vt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ac(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,st=e,lt=Rn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,st=e,lt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Kn!==null?{id:qt,overflow:en}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=vt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,st=e,lt=null,!0):!1;default:return!1}}function ea(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ta(e){if(ue){var t=lt;if(t){var n=t;if(!Ac(e,t)){if(ea(e))throw Error(T(418));t=Rn(n.nextSibling);var r=st;t&&Ac(e,t)?ap(r,n):(e.flags=e.flags&-4097|2,ue=!1,st=e)}}else{if(ea(e))throw Error(T(418));e.flags=e.flags&-4097|2,ue=!1,st=e}}}function Lc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;st=e}function ui(e){if(e!==st)return!1;if(!ue)return Lc(e),ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Gs(e.type,e.memoizedProps)),t&&(t=lt)){if(ea(e))throw up(),Error(T(418));for(;t;)ap(e,t),t=Rn(t.nextSibling)}if(Lc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){lt=Rn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}lt=null}}else lt=st?Rn(e.stateNode.nextSibling):null;return!0}function up(){for(var e=lt;e;)e=Rn(e.nextSibling)}function Dr(){lt=st=null,ue=!1}function Ga(e){Nt===null?Nt=[e]:Nt.push(e)}var ag=un.ReactCurrentBatchConfig;function Jr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var s=o.refs;l===null?delete s[i]:s[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function ci(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Mc(e){var t=e._init;return t(e._payload)}function cp(e){function t(h,p){if(e){var v=h.deletions;v===null?(h.deletions=[p],h.flags|=16):v.push(p)}}function n(h,p){if(!e)return null;for(;p!==null;)t(h,p),p=p.sibling;return null}function r(h,p){for(h=new Map;p!==null;)p.key!==null?h.set(p.key,p):h.set(p.index,p),p=p.sibling;return h}function o(h,p){return h=Dn(h,p),h.index=0,h.sibling=null,h}function i(h,p,v){return h.index=v,e?(v=h.alternate,v!==null?(v=v.index,v<p?(h.flags|=2,p):v):(h.flags|=2,p)):(h.flags|=1048576,p)}function l(h){return e&&h.alternate===null&&(h.flags|=2),h}function s(h,p,v,E){return p===null||p.tag!==6?(p=hs(v,h.mode,E),p.return=h,p):(p=o(p,v),p.return=h,p)}function a(h,p,v,E){var k=v.type;return k===ur?d(h,p,v.props.children,E,v.key):p!==null&&(p.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===vn&&Mc(k)===p.type)?(E=o(p,v.props),E.ref=Jr(h,p,v),E.return=h,E):(E=Ai(v.type,v.key,v.props,null,h.mode,E),E.ref=Jr(h,p,v),E.return=h,E)}function u(h,p,v,E){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=ms(v,h.mode,E),p.return=h,p):(p=o(p,v.children||[]),p.return=h,p)}function d(h,p,v,E,k){return p===null||p.tag!==7?(p=Yn(v,h.mode,E,k),p.return=h,p):(p=o(p,v),p.return=h,p)}function c(h,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=hs(""+p,h.mode,v),p.return=h,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case qo:return v=Ai(p.type,p.key,p.props,null,h.mode,v),v.ref=Jr(h,null,p),v.return=h,v;case ar:return p=ms(p,h.mode,v),p.return=h,p;case vn:var E=p._init;return c(h,E(p._payload),v)}if(io(p)||Qr(p))return p=Yn(p,h.mode,v,null),p.return=h,p;ci(h,p)}return null}function m(h,p,v,E){var k=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return k!==null?null:s(h,p,""+v,E);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case qo:return v.key===k?a(h,p,v,E):null;case ar:return v.key===k?u(h,p,v,E):null;case vn:return k=v._init,m(h,p,k(v._payload),E)}if(io(v)||Qr(v))return k!==null?null:d(h,p,v,E,null);ci(h,v)}return null}function g(h,p,v,E,k){if(typeof E=="string"&&E!==""||typeof E=="number")return h=h.get(v)||null,s(p,h,""+E,k);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case qo:return h=h.get(E.key===null?v:E.key)||null,a(p,h,E,k);case ar:return h=h.get(E.key===null?v:E.key)||null,u(p,h,E,k);case vn:var N=E._init;return g(h,p,v,N(E._payload),k)}if(io(E)||Qr(E))return h=h.get(v)||null,d(p,h,E,k,null);ci(p,E)}return null}function x(h,p,v,E){for(var k=null,N=null,P=p,O=p=0,z=null;P!==null&&O<v.length;O++){P.index>O?(z=P,P=null):z=P.sibling;var b=m(h,P,v[O],E);if(b===null){P===null&&(P=z);break}e&&P&&b.alternate===null&&t(h,P),p=i(b,p,O),N===null?k=b:N.sibling=b,N=b,P=z}if(O===v.length)return n(h,P),ue&&zn(h,O),k;if(P===null){for(;O<v.length;O++)P=c(h,v[O],E),P!==null&&(p=i(P,p,O),N===null?k=P:N.sibling=P,N=P);return ue&&zn(h,O),k}for(P=r(h,P);O<v.length;O++)z=g(P,h,O,v[O],E),z!==null&&(e&&z.alternate!==null&&P.delete(z.key===null?O:z.key),p=i(z,p,O),N===null?k=z:N.sibling=z,N=z);return e&&P.forEach(function(K){return t(h,K)}),ue&&zn(h,O),k}function y(h,p,v,E){var k=Qr(v);if(typeof k!="function")throw Error(T(150));if(v=k.call(v),v==null)throw Error(T(151));for(var N=k=null,P=p,O=p=0,z=null,b=v.next();P!==null&&!b.done;O++,b=v.next()){P.index>O?(z=P,P=null):z=P.sibling;var K=m(h,P,b.value,E);if(K===null){P===null&&(P=z);break}e&&P&&K.alternate===null&&t(h,P),p=i(K,p,O),N===null?k=K:N.sibling=K,N=K,P=z}if(b.done)return n(h,P),ue&&zn(h,O),k;if(P===null){for(;!b.done;O++,b=v.next())b=c(h,b.value,E),b!==null&&(p=i(b,p,O),N===null?k=b:N.sibling=b,N=b);return ue&&zn(h,O),k}for(P=r(h,P);!b.done;O++,b=v.next())b=g(P,h,O,b.value,E),b!==null&&(e&&b.alternate!==null&&P.delete(b.key===null?O:b.key),p=i(b,p,O),N===null?k=b:N.sibling=b,N=b);return e&&P.forEach(function(U){return t(h,U)}),ue&&zn(h,O),k}function S(h,p,v,E){if(typeof v=="object"&&v!==null&&v.type===ur&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case qo:e:{for(var k=v.key,N=p;N!==null;){if(N.key===k){if(k=v.type,k===ur){if(N.tag===7){n(h,N.sibling),p=o(N,v.props.children),p.return=h,h=p;break e}}else if(N.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===vn&&Mc(k)===N.type){n(h,N.sibling),p=o(N,v.props),p.ref=Jr(h,N,v),p.return=h,h=p;break e}n(h,N);break}else t(h,N);N=N.sibling}v.type===ur?(p=Yn(v.props.children,h.mode,E,v.key),p.return=h,h=p):(E=Ai(v.type,v.key,v.props,null,h.mode,E),E.ref=Jr(h,p,v),E.return=h,h=E)}return l(h);case ar:e:{for(N=v.key;p!==null;){if(p.key===N)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(h,p.sibling),p=o(p,v.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=ms(v,h.mode,E),p.return=h,h=p}return l(h);case vn:return N=v._init,S(h,p,N(v._payload),E)}if(io(v))return x(h,p,v,E);if(Qr(v))return y(h,p,v,E);ci(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,v),p.return=h,h=p):(n(h,p),p=hs(v,h.mode,E),p.return=h,h=p),l(h)):n(h,p)}return S}var Or=cp(!0),dp=cp(!1),qi=Fn(null),el=null,yr=null,Za=null;function Ja(){Za=yr=el=null}function qa(e){var t=qi.current;ae(qi),e._currentValue=t}function na(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function kr(e,t){el=e,Za=yr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ge=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(Za!==e)if(e={context:e,memoizedValue:t,next:null},yr===null){if(el===null)throw Error(T(308));yr=e,el.dependencies={lanes:0,firstContext:e}}else yr=yr.next=e;return t}var Un=null;function eu(e){Un===null?Un=[e]:Un.push(e)}function fp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,eu(t)):(n.next=o.next,o.next=n),t.interleaved=n,ln(e,r)}function ln(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var yn=!1;function tu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function tn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ln(e,n)}return o=r.interleaved,o===null?(t.next=t,eu(r)):(t.next=o.next,o.next=t),r.interleaved=t,ln(e,n)}function Ri(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ja(e,n)}}function Fc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function tl(e,t,n,r){var o=e.updateQueue;yn=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?i=u:l.next=u,l=a;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==l&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=a))}if(i!==null){var c=o.baseState;l=0,d=u=a=null,s=i;do{var m=s.lane,g=s.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,y=s;switch(m=t,g=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){c=x.call(g,c,m);break e}c=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,m=typeof x=="function"?x.call(g,c,m):x,m==null)break e;c=pe({},c,m);break e;case 2:yn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[s]:m.push(s))}else g={eventTime:g,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=g,a=c):d=d.next=g,l|=m;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;m=s,s=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(a=c),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Gn|=l,e.lanes=l,e.memoizedState=c}}function Ic(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(T(191,o));o.call(r)}}}var Ho={},Bt=Fn(Ho),Oo=Fn(Ho),Ao=Fn(Ho);function Bn(e){if(e===Ho)throw Error(T(174));return e}function nu(e,t){switch(oe(Ao,t),oe(Oo,e),oe(Bt,Ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Is(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Is(t,e)}ae(Bt),oe(Bt,t)}function Ar(){ae(Bt),ae(Oo),ae(Ao)}function hp(e){Bn(Ao.current);var t=Bn(Bt.current),n=Is(t,e.type);t!==n&&(oe(Oo,e),oe(Bt,n))}function ru(e){Oo.current===e&&(ae(Bt),ae(Oo))}var de=Fn(0);function nl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var as=[];function ou(){for(var e=0;e<as.length;e++)as[e]._workInProgressVersionPrimary=null;as.length=0}var Pi=un.ReactCurrentDispatcher,us=un.ReactCurrentBatchConfig,Xn=0,fe=null,Se=null,_e=null,rl=!1,ho=!1,Lo=0,ug=0;function Fe(){throw Error(T(321))}function iu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lt(e[n],t[n]))return!1;return!0}function lu(e,t,n,r,o,i){if(Xn=i,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Pi.current=e===null||e.memoizedState===null?pg:hg,e=n(r,o),ho){i=0;do{if(ho=!1,Lo=0,25<=i)throw Error(T(301));i+=1,_e=Se=null,t.updateQueue=null,Pi.current=mg,e=n(r,o)}while(ho)}if(Pi.current=ol,t=Se!==null&&Se.next!==null,Xn=0,_e=Se=fe=null,rl=!1,t)throw Error(T(300));return e}function su(){var e=Lo!==0;return Lo=0,e}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _e===null?fe.memoizedState=_e=e:_e=_e.next=e,_e}function wt(){if(Se===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=Se.next;var t=_e===null?fe.memoizedState:_e.next;if(t!==null)_e=t,Se=e;else{if(e===null)throw Error(T(310));Se=e,e={memoizedState:Se.memoizedState,baseState:Se.baseState,baseQueue:Se.baseQueue,queue:Se.queue,next:null},_e===null?fe.memoizedState=_e=e:_e=_e.next=e}return _e}function Mo(e,t){return typeof t=="function"?t(e):t}function cs(e){var t=wt(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=Se,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=l=null,a=null,u=i;do{var d=u.lane;if((Xn&d)===d)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=c,l=r):a=a.next=c,fe.lanes|=d,Gn|=d}u=u.next}while(u!==null&&u!==i);a===null?l=r:a.next=s,Lt(r,t.memoizedState)||(Ge=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,fe.lanes|=i,Gn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ds(e){var t=wt(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);Lt(i,t.memoizedState)||(Ge=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function mp(){}function vp(e,t){var n=fe,r=wt(),o=t(),i=!Lt(r.memoizedState,o);if(i&&(r.memoizedState=o,Ge=!0),r=r.queue,au(wp.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||_e!==null&&_e.memoizedState.tag&1){if(n.flags|=2048,Fo(9,gp.bind(null,n,r,o,t),void 0,null),Re===null)throw Error(T(349));Xn&30||yp(n,t,o)}return o}function yp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gp(e,t,n,r){t.value=n,t.getSnapshot=r,xp(t)&&Ep(e)}function wp(e,t,n){return n(function(){xp(t)&&Ep(e)})}function xp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lt(e,n)}catch{return!0}}function Ep(e){var t=ln(e,1);t!==null&&At(t,e,1,-1)}function bc(e){var t=zt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:e},t.queue=e,e=e.dispatch=fg.bind(null,fe,e),[t.memoizedState,e]}function Fo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=fe.updateQueue,t===null?(t={lastEffect:null,stores:null},fe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Sp(){return wt().memoizedState}function Ni(e,t,n,r){var o=zt();fe.flags|=e,o.memoizedState=Fo(1|t,n,void 0,r===void 0?null:r)}function kl(e,t,n,r){var o=wt();r=r===void 0?null:r;var i=void 0;if(Se!==null){var l=Se.memoizedState;if(i=l.destroy,r!==null&&iu(r,l.deps)){o.memoizedState=Fo(t,n,i,r);return}}fe.flags|=e,o.memoizedState=Fo(1|t,n,i,r)}function $c(e,t){return Ni(8390656,8,e,t)}function au(e,t){return kl(2048,8,e,t)}function Cp(e,t){return kl(4,2,e,t)}function kp(e,t){return kl(4,4,e,t)}function _p(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rp(e,t,n){return n=n!=null?n.concat([e]):null,kl(4,4,_p.bind(null,t,e),n)}function uu(){}function Pp(e,t){var n=wt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&iu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Np(e,t){var n=wt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&iu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Tp(e,t,n){return Xn&21?(Lt(n,t)||(n=Mf(),fe.lanes|=n,Gn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ge=!0),e.memoizedState=n)}function cg(e,t){var n=te;te=n!==0&&4>n?n:4,e(!0);var r=us.transition;us.transition={};try{e(!1),t()}finally{te=n,us.transition=r}}function Dp(){return wt().memoizedState}function dg(e,t,n){var r=Tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Op(e))Ap(t,n);else if(n=fp(e,t,n,r),n!==null){var o=He();At(n,e,r,o),Lp(n,t,r)}}function fg(e,t,n){var r=Tn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Op(e))Ap(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Lt(s,l)){var a=t.interleaved;a===null?(o.next=o,eu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=fp(e,t,o,r),n!==null&&(o=He(),At(n,e,r,o),Lp(n,t,r))}}function Op(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Ap(e,t){ho=rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ja(e,n)}}var ol={readContext:gt,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},pg={readContext:gt,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:$c,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ni(4194308,4,_p.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ni(4,2,e,t)},useMemo:function(e,t){var n=zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dg.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:bc,useDebugValue:uu,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=bc(!1),t=e[0];return e=cg.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,o=zt();if(ue){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),Re===null)throw Error(T(349));Xn&30||yp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,$c(wp.bind(null,r,i,e),[e]),r.flags|=2048,Fo(9,gp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=zt(),t=Re.identifierPrefix;if(ue){var n=en,r=qt;n=(r&~(1<<32-Ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Lo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ug++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},hg={readContext:gt,useCallback:Pp,useContext:gt,useEffect:au,useImperativeHandle:Rp,useInsertionEffect:Cp,useLayoutEffect:kp,useMemo:Np,useReducer:cs,useRef:Sp,useState:function(){return cs(Mo)},useDebugValue:uu,useDeferredValue:function(e){var t=wt();return Tp(t,Se.memoizedState,e)},useTransition:function(){var e=cs(Mo)[0],t=wt().memoizedState;return[e,t]},useMutableSource:mp,useSyncExternalStore:vp,useId:Dp,unstable_isNewReconciler:!1},mg={readContext:gt,useCallback:Pp,useContext:gt,useEffect:au,useImperativeHandle:Rp,useInsertionEffect:Cp,useLayoutEffect:kp,useMemo:Np,useReducer:ds,useRef:Sp,useState:function(){return ds(Mo)},useDebugValue:uu,useDeferredValue:function(e){var t=wt();return Se===null?t.memoizedState=e:Tp(t,Se.memoizedState,e)},useTransition:function(){var e=ds(Mo)[0],t=wt().memoizedState;return[e,t]},useMutableSource:mp,useSyncExternalStore:vp,useId:Dp,unstable_isNewReconciler:!1};function Rt(e,t){if(e&&e.defaultProps){t=pe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ra(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:pe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _l={isMounted:function(e){return(e=e._reactInternals)?er(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=He(),o=Tn(e),i=tn(r,o);i.payload=t,n!=null&&(i.callback=n),t=Pn(e,i,o),t!==null&&(At(t,e,o,r),Ri(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=He(),o=Tn(e),i=tn(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Pn(e,i,o),t!==null&&(At(t,e,o,r),Ri(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=He(),r=Tn(e),o=tn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Pn(e,o,r),t!==null&&(At(t,e,r,n),Ri(t,e,r))}};function zc(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!Po(n,r)||!Po(o,i):!0}function Mp(e,t,n){var r=!1,o=An,i=t.contextType;return typeof i=="object"&&i!==null?i=gt(i):(o=Je(t)?Qn:$e.current,r=t.contextTypes,i=(r=r!=null)?Tr(e,o):An),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=_l,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function jc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&_l.enqueueReplaceState(t,t.state,null)}function oa(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},tu(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=gt(i):(i=Je(t)?Qn:$e.current,o.context=Tr(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ra(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&_l.enqueueReplaceState(o,o.state,null),tl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Lr(e,t){try{var n="",r=t;do n+=Bv(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
31
|
-
Error generating stack: `+i.message+`
|
|
32
|
-
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function fs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ia(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var vg=typeof WeakMap=="function"?WeakMap:Map;function Fp(e,t,n){n=tn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ll||(ll=!0,ma=r),ia(e,t)},n}function Ip(e,t,n){n=tn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ia(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ia(e,t),typeof r!="function"&&(Nn===null?Nn=new Set([this]):Nn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Vc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new vg;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Dg.bind(null,e,t,n),t.then(e,e))}function Uc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Bc(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=tn(-1,1),t.tag=2,Pn(n,t,1))),n.lanes|=1),e)}var yg=un.ReactCurrentOwner,Ge=!1;function Ve(e,t,n,r){t.child=e===null?dp(t,null,n,r):Or(t,e.child,n,r)}function Hc(e,t,n,r,o){n=n.render;var i=t.ref;return kr(t,o),r=lu(e,t,n,r,i,o),n=su(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,sn(e,t,o)):(ue&&n&&Ka(t),t.flags|=1,Ve(e,t,r,o),t.child)}function Wc(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!yu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,bp(e,t,i,r,o)):(e=Ai(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Po,n(l,r)&&e.ref===t.ref)return sn(e,t,o)}return t.flags|=1,e=Dn(i,r),e.ref=t.ref,e.return=t,t.child=e}function bp(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Po(i,r)&&e.ref===t.ref)if(Ge=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ge=!0);else return t.lanes=e.lanes,sn(e,t,o)}return la(e,t,n,r,o)}function $p(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},oe(wr,ot),ot|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,oe(wr,ot),ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,oe(wr,ot),ot|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,oe(wr,ot),ot|=r;return Ve(e,t,o,n),t.child}function zp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function la(e,t,n,r,o){var i=Je(n)?Qn:$e.current;return i=Tr(t,i),kr(t,o),n=lu(e,t,n,r,i,o),r=su(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,sn(e,t,o)):(ue&&r&&Ka(t),t.flags|=1,Ve(e,t,n,o),t.child)}function Yc(e,t,n,r,o){if(Je(n)){var i=!0;Gi(t)}else i=!1;if(kr(t,o),t.stateNode===null)Ti(e,t),Mp(t,n,r),oa(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=gt(u):(u=Je(n)?Qn:$e.current,u=Tr(t,u));var d=n.getDerivedStateFromProps,c=typeof d=="function"||typeof l.getSnapshotBeforeUpdate=="function";c||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&jc(t,l,r,u),yn=!1;var m=t.memoizedState;l.state=m,tl(t,r,l,o),a=t.memoizedState,s!==r||m!==a||Ze.current||yn?(typeof d=="function"&&(ra(t,n,d,r),a=t.memoizedState),(s=yn||zc(t,n,s,r,m,a,u))?(c||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,pp(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Rt(t.type,s),l.props=u,c=t.pendingProps,m=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=gt(a):(a=Je(n)?Qn:$e.current,a=Tr(t,a));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==c||m!==a)&&jc(t,l,r,a),yn=!1,m=t.memoizedState,l.state=m,tl(t,r,l,o);var x=t.memoizedState;s!==c||m!==x||Ze.current||yn?(typeof g=="function"&&(ra(t,n,g,r),x=t.memoizedState),(u=yn||zc(t,n,u,r,m,x,a)||!1)?(d||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,x,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,x,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),l.props=r,l.state=x,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return sa(e,t,n,r,i,o)}function sa(e,t,n,r,o,i){zp(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&Oc(t,n,!1),sn(e,t,i);r=t.stateNode,yg.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Or(t,e.child,null,i),t.child=Or(t,null,s,i)):Ve(e,t,s,i),t.memoizedState=r.state,o&&Oc(t,n,!0),t.child}function jp(e){var t=e.stateNode;t.pendingContext?Dc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Dc(e,t.context,!1),nu(e,t.containerInfo)}function Qc(e,t,n,r,o){return Dr(),Ga(o),t.flags|=256,Ve(e,t,n,r),t.child}var aa={dehydrated:null,treeContext:null,retryLane:0};function ua(e){return{baseLanes:e,cachePool:null,transitions:null}}function Vp(e,t,n){var r=t.pendingProps,o=de.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),oe(de,o&1),e===null)return ta(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Nl(l,r,0,null),e=Yn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ua(n),t.memoizedState=aa,e):cu(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return gg(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Dn(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Dn(s,i):(i=Yn(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?ua(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=aa,r}return i=e.child,e=i.sibling,r=Dn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function cu(e,t){return t=Nl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function di(e,t,n,r){return r!==null&&Ga(r),Or(t,e.child,null,n),e=cu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function gg(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=fs(Error(T(422))),di(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Nl({mode:"visible",children:r.children},o,0,null),i=Yn(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Or(t,e.child,null,l),t.child.memoizedState=ua(l),t.memoizedState=aa,i);if(!(t.mode&1))return di(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(T(419)),r=fs(i,r,void 0),di(e,t,l,r)}if(s=(l&e.childLanes)!==0,Ge||s){if(r=Re,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,ln(e,o),At(r,e,o,-1))}return vu(),r=fs(Error(T(421))),di(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Og.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,lt=Rn(o.nextSibling),st=t,ue=!0,Nt=null,e!==null&&(ht[mt++]=qt,ht[mt++]=en,ht[mt++]=Kn,qt=e.id,en=e.overflow,Kn=t),t=cu(t,r.children),t.flags|=4096,t)}function Kc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),na(e.return,t,n)}function ps(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Up(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ve(e,t,r.children,n),r=de.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Kc(e,n,t);else if(e.tag===19)Kc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(oe(de,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&nl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ps(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&nl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ps(t,!0,n,null,i);break;case"together":ps(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ti(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function sn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=Dn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Dn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wg(e,t,n){switch(t.tag){case 3:jp(t),Dr();break;case 5:hp(t);break;case 1:Je(t.type)&&Gi(t);break;case 4:nu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;oe(qi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(oe(de,de.current&1),t.flags|=128,null):n&t.child.childLanes?Vp(e,t,n):(oe(de,de.current&1),e=sn(e,t,n),e!==null?e.sibling:null);oe(de,de.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Up(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),oe(de,de.current),r)break;return null;case 22:case 23:return t.lanes=0,$p(e,t,n)}return sn(e,t,n)}var Bp,ca,Hp,Wp;Bp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ca=function(){};Hp=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Bn(Bt.current);var i=null;switch(n){case"input":o=As(e,o),r=As(e,r),i=[];break;case"select":o=pe({},o,{value:void 0}),r=pe({},r,{value:void 0}),i=[];break;case"textarea":o=Fs(e,o),r=Fs(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ki)}bs(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(xo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(xo.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&se("scroll",e),i||s===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Wp=function(e,t,n,r){n!==r&&(t.flags|=4)};function qr(e,t){if(!ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ie(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xg(e,t,n){var r=t.pendingProps;switch(Xa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ie(t),null;case 1:return Je(t.type)&&Xi(),Ie(t),null;case 3:return r=t.stateNode,Ar(),ae(Ze),ae($e),ou(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ui(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Nt!==null&&(ga(Nt),Nt=null))),ca(e,t),Ie(t),null;case 5:ru(t);var o=Bn(Ao.current);if(n=t.type,e!==null&&t.stateNode!=null)Hp(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return Ie(t),null}if(e=Bn(Bt.current),ui(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[jt]=t,r[Do]=i,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(o=0;o<so.length;o++)se(so[o],r);break;case"source":se("error",r);break;case"img":case"image":case"link":se("error",r),se("load",r);break;case"details":se("toggle",r);break;case"input":rc(r,i),se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},se("invalid",r);break;case"textarea":ic(r,i),se("invalid",r)}bs(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var s=i[l];l==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&ai(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&ai(r.textContent,s,e),o=["children",""+s]):xo.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&se("scroll",r)}switch(n){case"input":ei(r),oc(r,i,!0);break;case"textarea":ei(r),lc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ki)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=wf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[jt]=t,e[Do]=r,Bp(e,t,!1,!1),t.stateNode=e;e:{switch(l=$s(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;o<so.length;o++)se(so[o],e);o=r;break;case"source":se("error",e),o=r;break;case"img":case"image":case"link":se("error",e),se("load",e),o=r;break;case"details":se("toggle",e),o=r;break;case"input":rc(e,r),o=As(e,r),se("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=pe({},r,{value:void 0}),se("invalid",e);break;case"textarea":ic(e,r),o=Fs(e,r),se("invalid",e);break;default:o=r}bs(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="style"?Sf(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&xf(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Eo(e,a):typeof a=="number"&&Eo(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(xo.hasOwnProperty(i)?a!=null&&i==="onScroll"&&se("scroll",e):a!=null&&Ma(e,i,a,l))}switch(n){case"input":ei(e),oc(e,r,!1);break;case"textarea":ei(e),lc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+On(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?xr(e,!!r.multiple,i,!1):r.defaultValue!=null&&xr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ki)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ie(t),null;case 6:if(e&&t.stateNode!=null)Wp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=Bn(Ao.current),Bn(Bt.current),ui(t)){if(r=t.stateNode,n=t.memoizedProps,r[jt]=t,(i=r.nodeValue!==n)&&(e=st,e!==null))switch(e.tag){case 3:ai(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ai(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[jt]=t,t.stateNode=r}return Ie(t),null;case 13:if(ae(de),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ue&<!==null&&t.mode&1&&!(t.flags&128))up(),Dr(),t.flags|=98560,i=!1;else if(i=ui(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(T(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(T(317));i[jt]=t}else Dr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ie(t),i=!1}else Nt!==null&&(ga(Nt),Nt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||de.current&1?Ce===0&&(Ce=3):vu())),t.updateQueue!==null&&(t.flags|=4),Ie(t),null);case 4:return Ar(),ca(e,t),e===null&&No(t.stateNode.containerInfo),Ie(t),null;case 10:return qa(t.type._context),Ie(t),null;case 17:return Je(t.type)&&Xi(),Ie(t),null;case 19:if(ae(de),i=t.memoizedState,i===null)return Ie(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)qr(i,!1);else{if(Ce!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=nl(e),l!==null){for(t.flags|=128,qr(i,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return oe(de,de.current&1|2),t.child}e=e.sibling}i.tail!==null&&ye()>Mr&&(t.flags|=128,r=!0,qr(i,!1),t.lanes=4194304)}else{if(!r)if(e=nl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),qr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!ue)return Ie(t),null}else 2*ye()-i.renderingStartTime>Mr&&n!==1073741824&&(t.flags|=128,r=!0,qr(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ye(),t.sibling=null,n=de.current,oe(de,r?n&1|2:n&1),t):(Ie(t),null);case 22:case 23:return mu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ot&1073741824&&(Ie(t),t.subtreeFlags&6&&(t.flags|=8192)):Ie(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Eg(e,t){switch(Xa(t),t.tag){case 1:return Je(t.type)&&Xi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ar(),ae(Ze),ae($e),ou(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ru(t),null;case 13:if(ae(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Dr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(de),null;case 4:return Ar(),null;case 10:return qa(t.type._context),null;case 22:case 23:return mu(),null;case 24:return null;default:return null}}var fi=!1,be=!1,Sg=typeof WeakSet=="function"?WeakSet:Set,I=null;function gr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function da(e,t,n){try{n()}catch(r){me(e,t,r)}}var Xc=!1;function Cg(e,t){if(Ks=Wi,e=Gf(),Qa(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,d=0,c=e,m=null;t:for(;;){for(var g;c!==n||o!==0&&c.nodeType!==3||(s=l+o),c!==i||r!==0&&c.nodeType!==3||(a=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(g=c.firstChild)!==null;)m=c,c=g;for(;;){if(c===e)break t;if(m===n&&++u===o&&(s=l),m===i&&++d===r&&(a=l),(g=c.nextSibling)!==null)break;c=m,m=c.parentNode}c=g}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xs={focusedElem:e,selectionRange:n},Wi=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,S=x.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Rt(t.type,y),S);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(E){me(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return x=Xc,Xc=!1,x}function mo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&da(t,n,i)}o=o.next}while(o!==r)}}function Rl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function fa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Yp(e){var t=e.alternate;t!==null&&(e.alternate=null,Yp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jt],delete t[Do],delete t[Js],delete t[ig],delete t[lg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qp(e){return e.tag===5||e.tag===3||e.tag===4}function Gc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ki));else if(r!==4&&(e=e.child,e!==null))for(pa(e,t,n),e=e.sibling;e!==null;)pa(e,t,n),e=e.sibling}function ha(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ha(e,t,n),e=e.sibling;e!==null;)ha(e,t,n),e=e.sibling}var Te=null,Pt=!1;function hn(e,t,n){for(n=n.child;n!==null;)Kp(e,t,n),n=n.sibling}function Kp(e,t,n){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(gl,n)}catch{}switch(n.tag){case 5:be||gr(n,t);case 6:var r=Te,o=Pt;Te=null,hn(e,t,n),Te=r,Pt=o,Te!==null&&(Pt?(e=Te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Te.removeChild(n.stateNode));break;case 18:Te!==null&&(Pt?(e=Te,n=n.stateNode,e.nodeType===8?ls(e.parentNode,n):e.nodeType===1&&ls(e,n),_o(e)):ls(Te,n.stateNode));break;case 4:r=Te,o=Pt,Te=n.stateNode.containerInfo,Pt=!0,hn(e,t,n),Te=r,Pt=o;break;case 0:case 11:case 14:case 15:if(!be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&da(n,t,l),o=o.next}while(o!==r)}hn(e,t,n);break;case 1:if(!be&&(gr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){me(n,t,s)}hn(e,t,n);break;case 21:hn(e,t,n);break;case 22:n.mode&1?(be=(r=be)||n.memoizedState!==null,hn(e,t,n),be=r):hn(e,t,n);break;default:hn(e,t,n)}}function Zc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sg),t.forEach(function(r){var o=Ag.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:Te=s.stateNode,Pt=!1;break e;case 3:Te=s.stateNode.containerInfo,Pt=!0;break e;case 4:Te=s.stateNode.containerInfo,Pt=!0;break e}s=s.return}if(Te===null)throw Error(T(160));Kp(i,l,o),Te=null,Pt=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){me(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Xp(t,e),t=t.sibling}function Xp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_t(t,e),bt(e),r&4){try{mo(3,e,e.return),Rl(3,e)}catch(y){me(e,e.return,y)}try{mo(5,e,e.return)}catch(y){me(e,e.return,y)}}break;case 1:_t(t,e),bt(e),r&512&&n!==null&&gr(n,n.return);break;case 5:if(_t(t,e),bt(e),r&512&&n!==null&&gr(n,n.return),e.flags&32){var o=e.stateNode;try{Eo(o,"")}catch(y){me(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&yf(o,i),$s(s,l);var u=$s(s,i);for(l=0;l<a.length;l+=2){var d=a[l],c=a[l+1];d==="style"?Sf(o,c):d==="dangerouslySetInnerHTML"?xf(o,c):d==="children"?Eo(o,c):Ma(o,d,c,u)}switch(s){case"input":Ls(o,i);break;case"textarea":gf(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?xr(o,!!i.multiple,g,!1):m!==!!i.multiple&&(i.defaultValue!=null?xr(o,!!i.multiple,i.defaultValue,!0):xr(o,!!i.multiple,i.multiple?[]:"",!1))}o[Do]=i}catch(y){me(e,e.return,y)}}break;case 6:if(_t(t,e),bt(e),r&4){if(e.stateNode===null)throw Error(T(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(y){me(e,e.return,y)}}break;case 3:if(_t(t,e),bt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{_o(t.containerInfo)}catch(y){me(e,e.return,y)}break;case 4:_t(t,e),bt(e);break;case 13:_t(t,e),bt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(pu=ye())),r&4&&Zc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(be=(u=be)||d,_t(t,e),be=u):_t(t,e),bt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(I=e,d=e.child;d!==null;){for(c=I=d;I!==null;){switch(m=I,g=m.child,m.tag){case 0:case 11:case 14:case 15:mo(4,m,m.return);break;case 1:gr(m,m.return);var x=m.stateNode;if(typeof x.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(y){me(r,n,y)}}break;case 5:gr(m,m.return);break;case 22:if(m.memoizedState!==null){qc(c);continue}}g!==null?(g.return=m,I=g):qc(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{o=c.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=c.stateNode,a=c.memoizedProps.style,l=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=Ef("display",l))}catch(y){me(e,e.return,y)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(y){me(e,e.return,y)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:_t(t,e),bt(e),r&4&&Zc(e);break;case 21:break;default:_t(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Qp(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Eo(o,""),r.flags&=-33);var i=Gc(e);ha(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,s=Gc(e);pa(e,s,l);break;default:throw Error(T(161))}}catch(a){me(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kg(e,t,n){I=e,Gp(e)}function Gp(e,t,n){for(var r=(e.mode&1)!==0;I!==null;){var o=I,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||fi;if(!l){var s=o.alternate,a=s!==null&&s.memoizedState!==null||be;s=fi;var u=be;if(fi=l,(be=a)&&!u)for(I=o;I!==null;)l=I,a=l.child,l.tag===22&&l.memoizedState!==null?ed(o):a!==null?(a.return=l,I=a):ed(o);for(;i!==null;)I=i,Gp(i),i=i.sibling;I=o,fi=s,be=u}Jc(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,I=i):Jc(e)}}function Jc(e){for(;I!==null;){var t=I;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:be||Rl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!be)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Rt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ic(t,i,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ic(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&_o(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}be||t.flags&512&&fa(t)}catch(m){me(t,t.return,m)}}if(t===e){I=null;break}if(n=t.sibling,n!==null){n.return=t.return,I=n;break}I=t.return}}function qc(e){for(;I!==null;){var t=I;if(t===e){I=null;break}var n=t.sibling;if(n!==null){n.return=t.return,I=n;break}I=t.return}}function ed(e){for(;I!==null;){var t=I;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Rl(4,t)}catch(a){me(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){me(t,o,a)}}var i=t.return;try{fa(t)}catch(a){me(t,i,a)}break;case 5:var l=t.return;try{fa(t)}catch(a){me(t,l,a)}}}catch(a){me(t,t.return,a)}if(t===e){I=null;break}var s=t.sibling;if(s!==null){s.return=t.return,I=s;break}I=t.return}}var _g=Math.ceil,il=un.ReactCurrentDispatcher,du=un.ReactCurrentOwner,yt=un.ReactCurrentBatchConfig,X=0,Re=null,xe=null,De=0,ot=0,wr=Fn(0),Ce=0,Io=null,Gn=0,Pl=0,fu=0,vo=null,Xe=null,pu=0,Mr=1/0,Gt=null,ll=!1,ma=null,Nn=null,pi=!1,Sn=null,sl=0,yo=0,va=null,Di=-1,Oi=0;function He(){return X&6?ye():Di!==-1?Di:Di=ye()}function Tn(e){return e.mode&1?X&2&&De!==0?De&-De:ag.transition!==null?(Oi===0&&(Oi=Mf()),Oi):(e=te,e!==0||(e=window.event,e=e===void 0?16:Vf(e.type)),e):1}function At(e,t,n,r){if(50<yo)throw yo=0,va=null,Error(T(185));Vo(e,n,r),(!(X&2)||e!==Re)&&(e===Re&&(!(X&2)&&(Pl|=n),Ce===4&&xn(e,De)),qe(e,r),n===1&&X===0&&!(t.mode&1)&&(Mr=ye()+500,Cl&&In()))}function qe(e,t){var n=e.callbackNode;ay(e,t);var r=Hi(e,e===Re?De:0);if(r===0)n!==null&&uc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&uc(n),t===1)e.tag===0?sg(td.bind(null,e)):lp(td.bind(null,e)),rg(function(){!(X&6)&&In()}),n=null;else{switch(Ff(r)){case 1:n=za;break;case 4:n=Af;break;case 16:n=Bi;break;case 536870912:n=Lf;break;default:n=Bi}n=oh(n,Zp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Zp(e,t){if(Di=-1,Oi=0,X&6)throw Error(T(327));var n=e.callbackNode;if(_r()&&e.callbackNode!==n)return null;var r=Hi(e,e===Re?De:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=al(e,r);else{t=r;var o=X;X|=2;var i=qp();(Re!==e||De!==t)&&(Gt=null,Mr=ye()+500,Wn(e,t));do try{Ng();break}catch(s){Jp(e,s)}while(!0);Ja(),il.current=i,X=o,xe!==null?t=0:(Re=null,De=0,t=Ce)}if(t!==0){if(t===2&&(o=Bs(e),o!==0&&(r=o,t=ya(e,o))),t===1)throw n=Io,Wn(e,0),xn(e,r),qe(e,ye()),n;if(t===6)xn(e,r);else{if(o=e.current.alternate,!(r&30)&&!Rg(o)&&(t=al(e,r),t===2&&(i=Bs(e),i!==0&&(r=i,t=ya(e,i))),t===1))throw n=Io,Wn(e,0),xn(e,r),qe(e,ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:jn(e,Xe,Gt);break;case 3:if(xn(e,r),(r&130023424)===r&&(t=pu+500-ye(),10<t)){if(Hi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){He(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Zs(jn.bind(null,e,Xe,Gt),t);break}jn(e,Xe,Gt);break;case 4:if(xn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-Ot(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_g(r/1960))-r,10<r){e.timeoutHandle=Zs(jn.bind(null,e,Xe,Gt),r);break}jn(e,Xe,Gt);break;case 5:jn(e,Xe,Gt);break;default:throw Error(T(329))}}}return qe(e,ye()),e.callbackNode===n?Zp.bind(null,e):null}function ya(e,t){var n=vo;return e.current.memoizedState.isDehydrated&&(Wn(e,t).flags|=256),e=al(e,t),e!==2&&(t=Xe,Xe=n,t!==null&&ga(t)),e}function ga(e){Xe===null?Xe=e:Xe.push.apply(Xe,e)}function Rg(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Lt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xn(e,t){for(t&=~fu,t&=~Pl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ot(t),r=1<<n;e[n]=-1,t&=~r}}function td(e){if(X&6)throw Error(T(327));_r();var t=Hi(e,0);if(!(t&1))return qe(e,ye()),null;var n=al(e,t);if(e.tag!==0&&n===2){var r=Bs(e);r!==0&&(t=r,n=ya(e,r))}if(n===1)throw n=Io,Wn(e,0),xn(e,t),qe(e,ye()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,jn(e,Xe,Gt),qe(e,ye()),null}function hu(e,t){var n=X;X|=1;try{return e(t)}finally{X=n,X===0&&(Mr=ye()+500,Cl&&In())}}function Zn(e){Sn!==null&&Sn.tag===0&&!(X&6)&&_r();var t=X;X|=1;var n=yt.transition,r=te;try{if(yt.transition=null,te=1,e)return e()}finally{te=r,yt.transition=n,X=t,!(X&6)&&In()}}function mu(){ot=wr.current,ae(wr)}function Wn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ng(n)),xe!==null)for(n=xe.return;n!==null;){var r=n;switch(Xa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Xi();break;case 3:Ar(),ae(Ze),ae($e),ou();break;case 5:ru(r);break;case 4:Ar();break;case 13:ae(de);break;case 19:ae(de);break;case 10:qa(r.type._context);break;case 22:case 23:mu()}n=n.return}if(Re=e,xe=e=Dn(e.current,null),De=ot=t,Ce=0,Io=null,fu=Pl=Gn=0,Xe=vo=null,Un!==null){for(t=0;t<Un.length;t++)if(n=Un[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,r.next=l}n.pending=r}Un=null}return e}function Jp(e,t){do{var n=xe;try{if(Ja(),Pi.current=ol,rl){for(var r=fe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}rl=!1}if(Xn=0,_e=Se=fe=null,ho=!1,Lo=0,du.current=null,n===null||n.return===null){Ce=1,Io=t,xe=null;break}e:{var i=e,l=n.return,s=n,a=t;if(t=De,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,d=s,c=d.tag;if(!(d.mode&1)&&(c===0||c===11||c===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=Uc(l);if(g!==null){g.flags&=-257,Bc(g,l,s,i,t),g.mode&1&&Vc(i,u,t),t=g,a=u;var x=t.updateQueue;if(x===null){var y=new Set;y.add(a),t.updateQueue=y}else x.add(a);break e}else{if(!(t&1)){Vc(i,u,t),vu();break e}a=Error(T(426))}}else if(ue&&s.mode&1){var S=Uc(l);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Bc(S,l,s,i,t),Ga(Lr(a,s));break e}}i=a=Lr(a,s),Ce!==4&&(Ce=2),vo===null?vo=[i]:vo.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var h=Fp(i,a,t);Fc(i,h);break e;case 1:s=a;var p=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Nn===null||!Nn.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=Ip(i,s,t);Fc(i,E);break e}}i=i.return}while(i!==null)}th(n)}catch(k){t=k,xe===n&&n!==null&&(xe=n=n.return);continue}break}while(!0)}function qp(){var e=il.current;return il.current=ol,e===null?ol:e}function vu(){(Ce===0||Ce===3||Ce===2)&&(Ce=4),Re===null||!(Gn&268435455)&&!(Pl&268435455)||xn(Re,De)}function al(e,t){var n=X;X|=2;var r=qp();(Re!==e||De!==t)&&(Gt=null,Wn(e,t));do try{Pg();break}catch(o){Jp(e,o)}while(!0);if(Ja(),X=n,il.current=r,xe!==null)throw Error(T(261));return Re=null,De=0,Ce}function Pg(){for(;xe!==null;)eh(xe)}function Ng(){for(;xe!==null&&!qv();)eh(xe)}function eh(e){var t=rh(e.alternate,e,ot);e.memoizedProps=e.pendingProps,t===null?th(e):xe=t,du.current=null}function th(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Eg(n,t),n!==null){n.flags&=32767,xe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ce=6,xe=null;return}}else if(n=xg(n,t,ot),n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Ce===0&&(Ce=5)}function jn(e,t,n){var r=te,o=yt.transition;try{yt.transition=null,te=1,Tg(e,t,n,r)}finally{yt.transition=o,te=r}return null}function Tg(e,t,n,r){do _r();while(Sn!==null);if(X&6)throw Error(T(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(uy(e,i),e===Re&&(xe=Re=null,De=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||pi||(pi=!0,oh(Bi,function(){return _r(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=yt.transition,yt.transition=null;var l=te;te=1;var s=X;X|=4,du.current=null,Cg(e,n),Xp(n,e),Xy(Xs),Wi=!!Ks,Xs=Ks=null,e.current=n,kg(n),ey(),X=s,te=l,yt.transition=i}else e.current=n;if(pi&&(pi=!1,Sn=e,sl=o),i=e.pendingLanes,i===0&&(Nn=null),ry(n.stateNode),qe(e,ye()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ll)throw ll=!1,e=ma,ma=null,e;return sl&1&&e.tag!==0&&_r(),i=e.pendingLanes,i&1?e===va?yo++:(yo=0,va=e):yo=0,In(),null}function _r(){if(Sn!==null){var e=Ff(sl),t=yt.transition,n=te;try{if(yt.transition=null,te=16>e?16:e,Sn===null)var r=!1;else{if(e=Sn,Sn=null,sl=0,X&6)throw Error(T(331));var o=X;for(X|=4,I=e.current;I!==null;){var i=I,l=i.child;if(I.flags&16){var s=i.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(I=u;I!==null;){var d=I;switch(d.tag){case 0:case 11:case 15:mo(8,d,i)}var c=d.child;if(c!==null)c.return=d,I=c;else for(;I!==null;){d=I;var m=d.sibling,g=d.return;if(Yp(d),d===u){I=null;break}if(m!==null){m.return=g,I=m;break}I=g}}}var x=i.alternate;if(x!==null){var y=x.child;if(y!==null){x.child=null;do{var S=y.sibling;y.sibling=null,y=S}while(y!==null)}}I=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,I=l;else e:for(;I!==null;){if(i=I,i.flags&2048)switch(i.tag){case 0:case 11:case 15:mo(9,i,i.return)}var h=i.sibling;if(h!==null){h.return=i.return,I=h;break e}I=i.return}}var p=e.current;for(I=p;I!==null;){l=I;var v=l.child;if(l.subtreeFlags&2064&&v!==null)v.return=l,I=v;else e:for(l=p;I!==null;){if(s=I,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Rl(9,s)}}catch(k){me(s,s.return,k)}if(s===l){I=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,I=E;break e}I=s.return}}if(X=o,In(),Ut&&typeof Ut.onPostCommitFiberRoot=="function")try{Ut.onPostCommitFiberRoot(gl,e)}catch{}r=!0}return r}finally{te=n,yt.transition=t}}return!1}function nd(e,t,n){t=Lr(n,t),t=Fp(e,t,1),e=Pn(e,t,1),t=He(),e!==null&&(Vo(e,1,t),qe(e,t))}function me(e,t,n){if(e.tag===3)nd(e,e,n);else for(;t!==null;){if(t.tag===3){nd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Nn===null||!Nn.has(r))){e=Lr(n,e),e=Ip(t,e,1),t=Pn(t,e,1),e=He(),t!==null&&(Vo(t,1,e),qe(t,e));break}}t=t.return}}function Dg(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=He(),e.pingedLanes|=e.suspendedLanes&n,Re===e&&(De&n)===n&&(Ce===4||Ce===3&&(De&130023424)===De&&500>ye()-pu?Wn(e,0):fu|=n),qe(e,t)}function nh(e,t){t===0&&(e.mode&1?(t=ri,ri<<=1,!(ri&130023424)&&(ri=4194304)):t=1);var n=He();e=ln(e,t),e!==null&&(Vo(e,t,n),qe(e,n))}function Og(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nh(e,n)}function Ag(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),nh(e,n)}var rh;rh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ze.current)Ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ge=!1,wg(e,t,n);Ge=!!(e.flags&131072)}else Ge=!1,ue&&t.flags&1048576&&sp(t,Ji,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ti(e,t),e=t.pendingProps;var o=Tr(t,$e.current);kr(t,n),o=lu(null,t,r,e,o,n);var i=su();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Je(r)?(i=!0,Gi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,tu(t),o.updater=_l,t.stateNode=o,o._reactInternals=t,oa(t,r,e,n),t=sa(null,t,r,!0,i,n)):(t.tag=0,ue&&i&&Ka(t),Ve(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ti(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Mg(r),e=Rt(r,e),o){case 0:t=la(null,t,r,e,n);break e;case 1:t=Yc(null,t,r,e,n);break e;case 11:t=Hc(null,t,r,e,n);break e;case 14:t=Wc(null,t,r,Rt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),la(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),Yc(e,t,r,o,n);case 3:e:{if(jp(t),e===null)throw Error(T(387));r=t.pendingProps,i=t.memoizedState,o=i.element,pp(e,t),tl(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Lr(Error(T(423)),t),t=Qc(e,t,r,n,o);break e}else if(r!==o){o=Lr(Error(T(424)),t),t=Qc(e,t,r,n,o);break e}else for(lt=Rn(t.stateNode.containerInfo.firstChild),st=t,ue=!0,Nt=null,n=dp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Dr(),r===o){t=sn(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return hp(t),e===null&&ta(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Gs(r,o)?l=null:i!==null&&Gs(r,i)&&(t.flags|=32),zp(e,t),Ve(e,t,l,n),t.child;case 6:return e===null&&ta(t),null;case 13:return Vp(e,t,n);case 4:return nu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Or(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),Hc(e,t,r,o,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,oe(qi,r._currentValue),r._currentValue=l,i!==null)if(Lt(i.value,l)){if(i.children===o.children&&!Ze.current){t=sn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=tn(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),na(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(T(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),na(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Ve(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,kr(t,n),o=gt(o),r=r(o),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,o=Rt(r,t.pendingProps),o=Rt(r.type,o),Wc(e,t,r,o,n);case 15:return bp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),Ti(e,t),t.tag=1,Je(r)?(e=!0,Gi(t)):e=!1,kr(t,n),Mp(t,r,o),oa(t,r,o,n),sa(null,t,r,!0,e,n);case 19:return Up(e,t,n);case 22:return $p(e,t,n)}throw Error(T(156,t.tag))};function oh(e,t){return Of(e,t)}function Lg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vt(e,t,n,r){return new Lg(e,t,n,r)}function yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mg(e){if(typeof e=="function")return yu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ia)return 11;if(e===ba)return 14}return 2}function Dn(e,t){var n=e.alternate;return n===null?(n=vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ai(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")yu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case ur:return Yn(n.children,o,i,t);case Fa:l=8,o|=8;break;case Ns:return e=vt(12,n,t,o|2),e.elementType=Ns,e.lanes=i,e;case Ts:return e=vt(13,n,t,o),e.elementType=Ts,e.lanes=i,e;case Ds:return e=vt(19,n,t,o),e.elementType=Ds,e.lanes=i,e;case hf:return Nl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ff:l=10;break e;case pf:l=9;break e;case Ia:l=11;break e;case ba:l=14;break e;case vn:l=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=vt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Yn(e,t,n,r){return e=vt(7,e,r,t),e.lanes=n,e}function Nl(e,t,n,r){return e=vt(22,e,r,t),e.elementType=hf,e.lanes=n,e.stateNode={isHidden:!1},e}function hs(e,t,n){return e=vt(6,e,null,t),e.lanes=n,e}function ms(e,t,n){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fg(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xl(0),this.expirationTimes=Xl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function gu(e,t,n,r,o,i,l,s,a){return e=new Fg(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=vt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},tu(i),e}function Ig(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ar,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ih(e){if(!e)return An;e=e._reactInternals;e:{if(er(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Je(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(Je(n))return ip(e,n,t)}return t}function lh(e,t,n,r,o,i,l,s,a){return e=gu(n,r,!0,e,o,i,l,s,a),e.context=ih(null),n=e.current,r=He(),o=Tn(n),i=tn(r,o),i.callback=t??null,Pn(n,i,o),e.current.lanes=o,Vo(e,o,r),qe(e,r),e}function Tl(e,t,n,r){var o=t.current,i=He(),l=Tn(o);return n=ih(n),t.context===null?t.context=n:t.pendingContext=n,t=tn(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Pn(o,t,l),e!==null&&(At(e,o,l,i),Ri(e,o,l)),l}function ul(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function rd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wu(e,t){rd(e,t),(e=e.alternate)&&rd(e,t)}function bg(){return null}var sh=typeof reportError=="function"?reportError:function(e){console.error(e)};function xu(e){this._internalRoot=e}Dl.prototype.render=xu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Tl(e,t,null,null)};Dl.prototype.unmount=xu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zn(function(){Tl(null,e,null,null)}),t[on]=null}};function Dl(e){this._internalRoot=e}Dl.prototype.unstable_scheduleHydration=function(e){if(e){var t=$f();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wn.length&&t!==0&&t<wn[n].priority;n++);wn.splice(n,0,e),n===0&&jf(e)}};function Eu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ol(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function od(){}function $g(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=ul(l);i.call(u)}}var l=lh(t,r,e,0,null,!1,!1,"",od);return e._reactRootContainer=l,e[on]=l.current,No(e.nodeType===8?e.parentNode:e),Zn(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=ul(a);s.call(u)}}var a=gu(e,0,!1,null,null,!1,!1,"",od);return e._reactRootContainer=a,e[on]=a.current,No(e.nodeType===8?e.parentNode:e),Zn(function(){Tl(t,a,n,r)}),a}function Al(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var s=o;o=function(){var a=ul(l);s.call(a)}}Tl(t,l,e,o)}else l=$g(n,t,e,o,r);return ul(l)}If=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=lo(t.pendingLanes);n!==0&&(ja(t,n|1),qe(t,ye()),!(X&6)&&(Mr=ye()+500,In()))}break;case 13:Zn(function(){var r=ln(e,1);if(r!==null){var o=He();At(r,e,1,o)}}),wu(e,1)}};Va=function(e){if(e.tag===13){var t=ln(e,134217728);if(t!==null){var n=He();At(t,e,134217728,n)}wu(e,134217728)}};bf=function(e){if(e.tag===13){var t=Tn(e),n=ln(e,t);if(n!==null){var r=He();At(n,e,t,r)}wu(e,t)}};$f=function(){return te};zf=function(e,t){var n=te;try{return te=e,t()}finally{te=n}};js=function(e,t,n){switch(t){case"input":if(Ls(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Sl(r);if(!o)throw Error(T(90));vf(r),Ls(r,o)}}}break;case"textarea":gf(e,n);break;case"select":t=n.value,t!=null&&xr(e,!!n.multiple,t,!1)}};_f=hu;Rf=Zn;var zg={usingClientEntryPoint:!1,Events:[Bo,pr,Sl,Cf,kf,hu]},eo={findFiberByHostInstance:Vn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},jg={bundleType:eo.bundleType,version:eo.version,rendererPackageName:eo.rendererPackageName,rendererConfig:eo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:un.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Tf(e),e===null?null:e.stateNode},findFiberByHostInstance:eo.findFiberByHostInstance||bg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hi.isDisabled&&hi.supportsFiber)try{gl=hi.inject(jg),Ut=hi}catch{}}ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zg;ut.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Eu(t))throw Error(T(200));return Ig(e,t,null,n)};ut.createRoot=function(e,t){if(!Eu(e))throw Error(T(299));var n=!1,r="",o=sh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=gu(e,1,!1,null,null,n,!1,r,o),e[on]=t.current,No(e.nodeType===8?e.parentNode:e),new xu(t)};ut.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=Tf(t),e=e===null?null:e.stateNode,e};ut.flushSync=function(e){return Zn(e)};ut.hydrate=function(e,t,n){if(!Ol(t))throw Error(T(200));return Al(null,e,t,!0,n)};ut.hydrateRoot=function(e,t,n){if(!Eu(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=sh;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=lh(t,null,e,1,n??null,o,!1,i,l),e[on]=t.current,No(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Dl(t)};ut.render=function(e,t,n){if(!Ol(t))throw Error(T(200));return Al(null,e,t,!1,n)};ut.unmountComponentAtNode=function(e){if(!Ol(e))throw Error(T(40));return e._reactRootContainer?(Zn(function(){Al(null,null,e,!1,function(){e._reactRootContainer=null,e[on]=null})}),!0):!1};ut.unstable_batchedUpdates=hu;ut.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ol(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return Al(e,t,n,!1,r)};ut.version="18.3.1-next-f1338f8080-20240426";function ah(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ah)}catch(e){console.error(e)}}ah(),cf.exports=ut;var Ll=cf.exports;const uh=Gd(Ll);var id=Ll;qu.createRoot=id.createRoot,qu.hydrateRoot=id.hydrateRoot;/**
|
|
33
|
-
* react-router v7.8.2
|
|
34
|
-
*
|
|
35
|
-
* Copyright (c) Remix Software Inc.
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the MIT license found in the
|
|
38
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
39
|
-
*
|
|
40
|
-
* @license MIT
|
|
41
|
-
*/var ld="popstate";function Vg(e={}){function t(r,o){let{pathname:i,search:l,hash:s}=r.location;return wa("",{pathname:i,search:l,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:bo(o)}return Bg(t,n,null,e)}function ce(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Mt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ug(){return Math.random().toString(36).substring(2,10)}function sd(e,t){return{usr:e.state,key:e.key,idx:t}}function wa(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?jr(t):t,state:n,key:t&&t.key||r||Ug()}}function bo({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function jr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Bg(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,s="POP",a=null,u=d();u==null&&(u=0,l.replaceState({...l.state,idx:u},""));function d(){return(l.state||{idx:null}).idx}function c(){s="POP";let S=d(),h=S==null?null:S-u;u=S,a&&a({action:s,location:y.location,delta:h})}function m(S,h){s="PUSH";let p=wa(y.location,S,h);u=d()+1;let v=sd(p,u),E=y.createHref(p);try{l.pushState(v,"",E)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(E)}i&&a&&a({action:s,location:y.location,delta:1})}function g(S,h){s="REPLACE";let p=wa(y.location,S,h);u=d();let v=sd(p,u),E=y.createHref(p);l.replaceState(v,"",E),i&&a&&a({action:s,location:y.location,delta:0})}function x(S){return Hg(S)}let y={get action(){return s},get location(){return e(o,l)},listen(S){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(ld,c),a=S,()=>{o.removeEventListener(ld,c),a=null}},createHref(S){return t(o,S)},createURL:x,encodeLocation(S){let h=x(S);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:g,go(S){return l.go(S)}};return y}function Hg(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ce(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:bo(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function ch(e,t,n="/"){return Wg(e,t,n,!1)}function Wg(e,t,n,r){let o=typeof t=="string"?jr(t):t,i=an(o.pathname||"/",n);if(i==null)return null;let l=dh(e);Yg(l);let s=null;for(let a=0;s==null&&a<l.length;++a){let u=r0(i);s=t0(l[a],u,r)}return s}function dh(e,t=[],n=[],r="",o=!1){let i=(l,s,a=o,u)=>{let d={relativePath:u===void 0?l.path||"":u,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&a)return;ce(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let c=nn([r,d.relativePath]),m=n.concat(d);l.children&&l.children.length>0&&(ce(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),dh(l.children,t,m,c,a)),!(l.path==null&&!l.index)&&t.push({path:c,score:qg(c,l.index),routesMeta:m})};return e.forEach((l,s)=>{var a;if(l.path===""||!((a=l.path)!=null&&a.includes("?")))i(l,s);else for(let u of fh(l.path))i(l,s,!0,u)}),t}function fh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=fh(r.join("/")),s=[];return s.push(...l.map(a=>a===""?i:[i,a].join("/"))),o&&s.push(...l),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function Yg(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:e0(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Qg=/^:[\w-]+$/,Kg=3,Xg=2,Gg=1,Zg=10,Jg=-2,ad=e=>e==="*";function qg(e,t){let n=e.split("/"),r=n.length;return n.some(ad)&&(r+=Jg),t&&(r+=Xg),n.filter(o=>!ad(o)).reduce((o,i)=>o+(Qg.test(i)?Kg:i===""?Gg:Zg),r)}function e0(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function t0(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",l=[];for(let s=0;s<r.length;++s){let a=r[s],u=s===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",c=cl({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},d),m=a.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=cl({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},d)),!c)return null;Object.assign(o,c.params),l.push({params:o,pathname:nn([i,c.pathname]),pathnameBase:s0(nn([i,c.pathnameBase])),route:m}),c.pathnameBase!=="/"&&(i=nn([i,c.pathnameBase]))}return l}function cl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=n0(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],l=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,{paramName:d,isOptional:c},m)=>{if(d==="*"){let x=s[m]||"";l=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const g=s[m];return c&&!g?u[d]=void 0:u[d]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function n0(e,t=!1,n=!0){Mt(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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function r0(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mt(!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}}function an(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function o0(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?jr(e):e;return{pathname:n?n.startsWith("/")?n:i0(n,t):t,search:a0(r),hash:u0(o)}}function i0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function vs(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function l0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Su(e){let t=l0(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Cu(e,t,n,r=!1){let o;typeof e=="string"?o=jr(e):(o={...e},ce(!o.pathname||!o.pathname.includes("?"),vs("?","pathname","search",o)),ce(!o.pathname||!o.pathname.includes("#"),vs("#","pathname","hash",o)),ce(!o.search||!o.search.includes("#"),vs("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,s;if(l==null)s=n;else{let c=t.length-1;if(!r&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),c-=1;o.pathname=m.join("/")}s=c>=0?t[c]:"/"}let a=o0(o,s),u=l&&l!=="/"&&l.endsWith("/"),d=(i||l===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}var nn=e=>e.join("/").replace(/\/\/+/g,"/"),s0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),a0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,u0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function c0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var ph=["POST","PUT","PATCH","DELETE"];new Set(ph);var d0=["GET",...ph];new Set(d0);var Vr=f.createContext(null);Vr.displayName="DataRouter";var Ml=f.createContext(null);Ml.displayName="DataRouterState";f.createContext(!1);var hh=f.createContext({isTransitioning:!1});hh.displayName="ViewTransition";var f0=f.createContext(new Map);f0.displayName="Fetchers";var p0=f.createContext(null);p0.displayName="Await";var Ft=f.createContext(null);Ft.displayName="Navigation";var Wo=f.createContext(null);Wo.displayName="Location";var Ht=f.createContext({outlet:null,matches:[],isDataRoute:!1});Ht.displayName="Route";var ku=f.createContext(null);ku.displayName="RouteError";function h0(e,{relative:t}={}){ce(Ur(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=f.useContext(Ft),{hash:o,pathname:i,search:l}=Yo(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:nn([n,i])),r.createHref({pathname:s,search:l,hash:o})}function Ur(){return f.useContext(Wo)!=null}function bn(){return ce(Ur(),"useLocation() may be used only in the context of a <Router> component."),f.useContext(Wo).location}var mh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vh(e){f.useContext(Ft).static||f.useLayoutEffect(e)}function yh(){let{isDataRoute:e}=f.useContext(Ht);return e?P0():m0()}function m0(){ce(Ur(),"useNavigate() may be used only in the context of a <Router> component.");let e=f.useContext(Vr),{basename:t,navigator:n}=f.useContext(Ft),{matches:r}=f.useContext(Ht),{pathname:o}=bn(),i=JSON.stringify(Su(r)),l=f.useRef(!1);return vh(()=>{l.current=!0}),f.useCallback((a,u={})=>{if(Mt(l.current,mh),!l.current)return;if(typeof a=="number"){n.go(a);return}let d=Cu(a,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:nn([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,o,e])}f.createContext(null);function Yo(e,{relative:t}={}){let{matches:n}=f.useContext(Ht),{pathname:r}=bn(),o=JSON.stringify(Su(n));return f.useMemo(()=>Cu(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function v0(e,t){return gh(e,t)}function gh(e,t,n,r,o){var p;ce(Ur(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=f.useContext(Ft),{matches:l}=f.useContext(Ht),s=l[l.length-1],a=s?s.params:{},u=s?s.pathname:"/",d=s?s.pathnameBase:"/",c=s&&s.route;{let v=c&&c.path||"";wh(u,!c||v.endsWith("*")||v.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${v}">) 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.
|
|
42
|
-
|
|
43
|
-
Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let m=bn(),g;if(t){let v=typeof t=="string"?jr(t):t;ce(d==="/"||((p=v.pathname)==null?void 0:p.startsWith(d)),`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 "${d}" but pathname "${v.pathname}" was given in the \`location\` prop.`),g=v}else g=m;let x=g.pathname||"/",y=x;if(d!=="/"){let v=d.replace(/^\//,"").split("/");y="/"+x.replace(/^\//,"").split("/").slice(v.length).join("/")}let S=ch(e,{pathname:y});Mt(c||S!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Mt(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.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 h=E0(S&&S.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:nn([d,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?d:nn([d,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),l,n,r,o);return t&&h?f.createElement(Wo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},h):h}function y0(){let e=R0(),t=c0(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:i},"ErrorBoundary")," or"," ",f.createElement("code",{style:i},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:o},n):null,l)}var g0=f.createElement(y0,null),w0=class extends f.Component{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?f.createElement(Ht.Provider,{value:this.props.routeContext},f.createElement(ku.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function x0({routeContext:e,match:t,children:n}){let r=f.useContext(Vr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(Ht.Provider,{value:e},n)}function E0(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=n==null?void 0:n.errors;if(l!=null){let u=i.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id])!==void 0);ce(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let s=!1,a=-1;if(n)for(let u=0;u<i.length;u++){let d=i[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(a=u),d.route.id){let{loaderData:c,errors:m}=n,g=d.route.loader&&!c.hasOwnProperty(d.route.id)&&(!m||m[d.route.id]===void 0);if(d.route.lazy||g){s=!0,a>=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((u,d,c)=>{let m,g=!1,x=null,y=null;n&&(m=l&&d.route.id?l[d.route.id]:void 0,x=d.route.errorElement||g0,s&&(a<0&&c===0?(wh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,y=null):a===c&&(g=!0,y=d.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,c+1)),h=()=>{let p;return m?p=x:g?p=y:d.route.Component?p=f.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=u,f.createElement(x0,{match:d,routeContext:{outlet:u,matches:S,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||c===0)?f.createElement(w0,{location:n.location,revalidation:n.revalidation,component:x,error:m,children:h(),routeContext:{outlet:null,matches:S,isDataRoute:!0},unstable_onError:r}):h()},null)}function _u(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function S0(e){let t=f.useContext(Vr);return ce(t,_u(e)),t}function C0(e){let t=f.useContext(Ml);return ce(t,_u(e)),t}function k0(e){let t=f.useContext(Ht);return ce(t,_u(e)),t}function Ru(e){let t=k0(e),n=t.matches[t.matches.length-1];return ce(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function _0(){return Ru("useRouteId")}function R0(){var r;let e=f.useContext(ku),t=C0("useRouteError"),n=Ru("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function P0(){let{router:e}=S0("useNavigate"),t=Ru("useNavigate"),n=f.useRef(!1);return vh(()=>{n.current=!0}),f.useCallback(async(o,i={})=>{Mt(n.current,mh),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var ud={};function wh(e,t,n){!t&&!ud[e]&&(ud[e]=!0,Mt(!1,n))}f.memo(N0);function N0({routes:e,future:t,state:n,unstable_onError:r}){return gh(e,void 0,n,r,t)}function mS({to:e,replace:t,state:n,relative:r}){ce(Ur(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=f.useContext(Ft);Mt(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=f.useContext(Ht),{pathname:l}=bn(),s=yh(),a=Cu(e,Su(i),l,r==="path"),u=JSON.stringify(a);return f.useEffect(()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})},[s,u,r,t,n]),null}function T0(e){ce(!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>.")}function D0({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){ce(!Ur(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),s=f.useMemo(()=>({basename:l,navigator:o,static:i,future:{}}),[l,o,i]);typeof n=="string"&&(n=jr(n));let{pathname:a="/",search:u="",hash:d="",state:c=null,key:m="default"}=n,g=f.useMemo(()=>{let x=an(a,l);return x==null?null:{location:{pathname:x,search:u,hash:d,state:c,key:m},navigationType:r}},[l,a,u,d,c,m,r]);return Mt(g!=null,`<Router basename="${l}"> is not able to match the URL "${a}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:f.createElement(Ft.Provider,{value:s},f.createElement(Wo.Provider,{children:t,value:g}))}function vS({children:e,location:t}){return v0(xa(e),t)}function xa(e,t=[]){let n=[];return f.Children.forEach(e,(r,o)=>{if(!f.isValidElement(r))return;let i=[...t,o];if(r.type===f.Fragment){n.push.apply(n,xa(r.props.children,i));return}ce(r.type===T0,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ce(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=xa(r.props.children,i)),n.push(l)}),n}var Li="get",Mi="application/x-www-form-urlencoded";function Fl(e){return e!=null&&typeof e.tagName=="string"}function O0(e){return Fl(e)&&e.tagName.toLowerCase()==="button"}function A0(e){return Fl(e)&&e.tagName.toLowerCase()==="form"}function L0(e){return Fl(e)&&e.tagName.toLowerCase()==="input"}function M0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function F0(e,t){return e.button===0&&(!t||t==="_self")&&!M0(e)}var mi=null;function I0(){if(mi===null)try{new FormData(document.createElement("form"),0),mi=!1}catch{mi=!0}return mi}var b0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ys(e){return e!=null&&!b0.has(e)?(Mt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mi}"`),null):e}function $0(e,t){let n,r,o,i,l;if(A0(e)){let s=e.getAttribute("action");r=s?an(s,t):null,n=e.getAttribute("method")||Li,o=ys(e.getAttribute("enctype"))||Mi,i=new FormData(e)}else if(O0(e)||L0(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||s.getAttribute("action");if(r=a?an(a,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||Li,o=ys(e.getAttribute("formenctype"))||ys(s.getAttribute("enctype"))||Mi,i=new FormData(s,e),!I0()){let{name:u,type:d,value:c}=e;if(d==="image"){let m=u?`${u}.`:"";i.append(`${m}x`,"0"),i.append(`${m}y`,"0")}else u&&i.append(u,c)}}else{if(Fl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Li,r=null,o=Mi,l=e}return i&&o==="text/plain"&&(l=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Pu(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function z0(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&an(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function j0(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function V0(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"}async function U0(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let l=await j0(i,n);return l.links?l.links():[]}return[]}));return Y0(r.flat(1).filter(V0).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function cd(e,t,n,r,o,i){let l=(a,u)=>n[u]?a.route.id!==n[u].route.id:!0,s=(a,u)=>{var d;return n[u].pathname!==a.pathname||((d=n[u].route.path)==null?void 0:d.endsWith("*"))&&n[u].params["*"]!==a.params["*"]};return i==="assets"?t.filter((a,u)=>l(a,u)||s(a,u)):i==="data"?t.filter((a,u)=>{var c;let d=r.routes[a.route.id];if(!d||!d.hasLoader)return!1;if(l(a,u)||s(a,u))return!0;if(a.route.shouldRevalidate){let m=a.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((c=n[0])==null?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:a.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function B0(e,t,{includeHydrateFallback:n}={}){return H0(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function H0(e){return[...new Set(e)]}function W0(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Y0(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(W0(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function xh(){let e=f.useContext(Vr);return Pu(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Q0(){let e=f.useContext(Ml);return Pu(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Nu=f.createContext(void 0);Nu.displayName="FrameworkContext";function Eh(){let e=f.useContext(Nu);return Pu(e,"You must render this element inside a <HydratedRouter> element"),e}function K0(e,t){let n=f.useContext(Nu),[r,o]=f.useState(!1),[i,l]=f.useState(!1),{onFocus:s,onBlur:a,onMouseEnter:u,onMouseLeave:d,onTouchStart:c}=t,m=f.useRef(null);f.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let y=h=>{h.forEach(p=>{l(p.isIntersecting)})},S=new IntersectionObserver(y,{threshold:.5});return m.current&&S.observe(m.current),()=>{S.disconnect()}}},[e]),f.useEffect(()=>{if(r){let y=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(y)}}},[r]);let g=()=>{o(!0)},x=()=>{o(!1),l(!1)};return n?e!=="intent"?[i,m,{}]:[i,m,{onFocus:to(s,g),onBlur:to(a,x),onMouseEnter:to(u,g),onMouseLeave:to(d,x),onTouchStart:to(c,g)}]:[!1,m,{}]}function to(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function X0({page:e,...t}){let{router:n}=xh(),r=f.useMemo(()=>ch(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?f.createElement(Z0,{page:e,matches:r,...t}):null}function G0(e){let{manifest:t,routeModules:n}=Eh(),[r,o]=f.useState([]);return f.useEffect(()=>{let i=!1;return U0(e,t,n).then(l=>{i||o(l)}),()=>{i=!0}},[e,t,n]),r}function Z0({page:e,matches:t,...n}){let r=bn(),{manifest:o,routeModules:i}=Eh(),{basename:l}=xh(),{loaderData:s,matches:a}=Q0(),u=f.useMemo(()=>cd(e,t,a,o,r,"data"),[e,t,a,o,r]),d=f.useMemo(()=>cd(e,t,a,o,r,"assets"),[e,t,a,o,r]),c=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,y=!1;if(t.forEach(h=>{var v;let p=o.routes[h.route.id];!p||!p.hasLoader||(!u.some(E=>E.route.id===h.route.id)&&h.route.id in s&&((v=i[h.route.id])!=null&&v.shouldRevalidate)||p.hasClientLoader?y=!0:x.add(h.route.id))}),x.size===0)return[];let S=z0(e,l,"data");return y&&x.size>0&&S.searchParams.set("_routes",t.filter(h=>x.has(h.route.id)).map(h=>h.route.id).join(",")),[S.pathname+S.search]},[l,s,r,o,u,t,e,i]),m=f.useMemo(()=>B0(d,o),[d,o]),g=G0(d);return f.createElement(f.Fragment,null,c.map(x=>f.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),m.map(x=>f.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),g.map(({key:x,link:y})=>f.createElement("link",{key:x,nonce:n.nonce,...y})))}function J0(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Sh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Sh&&(window.__reactRouterVersion="7.8.2")}catch{}function yS({basename:e,children:t,window:n}){let r=f.useRef();r.current==null&&(r.current=Vg({window:n,v5Compat:!0}));let o=r.current,[i,l]=f.useState({action:o.action,location:o.location}),s=f.useCallback(a=>{f.startTransition(()=>l(a))},[l]);return f.useLayoutEffect(()=>o.listen(s),[o,s]),f.createElement(D0,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o})}var Ch=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kh=f.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:l,state:s,target:a,to:u,preventScrollReset:d,viewTransition:c,...m},g){let{basename:x}=f.useContext(Ft),y=typeof u=="string"&&Ch.test(u),S,h=!1;if(typeof u=="string"&&y&&(S=u,Sh))try{let z=new URL(window.location.href),b=u.startsWith("//")?new URL(z.protocol+u):new URL(u),K=an(b.pathname,x);b.origin===z.origin&&K!=null?u=K+b.search+b.hash:h=!0}catch{Mt(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let p=h0(u,{relative:o}),[v,E,k]=K0(r,m),N=n1(u,{replace:l,state:s,target:a,preventScrollReset:d,relative:o,viewTransition:c});function P(z){t&&t(z),z.defaultPrevented||N(z)}let O=f.createElement("a",{...m,...k,href:S||p,onClick:h||i?t:P,ref:J0(g,E),target:a,"data-discover":!y&&n==="render"?"true":void 0});return v&&!y?f.createElement(f.Fragment,null,O,f.createElement(X0,{page:p})):O});kh.displayName="Link";var q0=f.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:l,viewTransition:s,children:a,...u},d){let c=Yo(l,{relative:u.relative}),m=bn(),g=f.useContext(Ml),{navigator:x,basename:y}=f.useContext(Ft),S=g!=null&&s1(c)&&s===!0,h=x.encodeLocation?x.encodeLocation(c).pathname:c.pathname,p=m.pathname,v=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(p=p.toLowerCase(),v=v?v.toLowerCase():null,h=h.toLowerCase()),v&&y&&(v=an(v,y)||v);const E=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let k=p===h||!o&&p.startsWith(h)&&p.charAt(E)==="/",N=v!=null&&(v===h||!o&&v.startsWith(h)&&v.charAt(h.length)==="/"),P={isActive:k,isPending:N,isTransitioning:S},O=k?t:void 0,z;typeof r=="function"?z=r(P):z=[r,k?"active":null,N?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let b=typeof i=="function"?i(P):i;return f.createElement(kh,{...u,"aria-current":O,className:z,ref:d,style:b,to:l,viewTransition:s},typeof a=="function"?a(P):a)});q0.displayName="NavLink";var e1=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:l=Li,action:s,onSubmit:a,relative:u,preventScrollReset:d,viewTransition:c,...m},g)=>{let x=i1(),y=l1(s,{relative:u}),S=l.toLowerCase()==="get"?"get":"post",h=typeof s=="string"&&Ch.test(s),p=v=>{if(a&&a(v),v.defaultPrevented)return;v.preventDefault();let E=v.nativeEvent.submitter,k=(E==null?void 0:E.getAttribute("formmethod"))||l;x(E||v.currentTarget,{fetcherKey:t,method:k,navigate:n,replace:o,state:i,relative:u,preventScrollReset:d,viewTransition:c})};return f.createElement("form",{ref:g,method:S,action:y,onSubmit:r?a:p,...m,"data-discover":!h&&e==="render"?"true":void 0})});e1.displayName="Form";function t1(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _h(e){let t=f.useContext(Vr);return ce(t,t1(e)),t}function n1(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:l}={}){let s=yh(),a=bn(),u=Yo(e,{relative:i});return f.useCallback(d=>{if(F0(d,t)){d.preventDefault();let c=n!==void 0?n:bo(a)===bo(u);s(e,{replace:c,state:r,preventScrollReset:o,relative:i,viewTransition:l})}},[a,s,u,n,r,t,e,o,i,l])}var r1=0,o1=()=>`__${String(++r1)}__`;function i1(){let{router:e}=_h("useSubmit"),{basename:t}=f.useContext(Ft),n=_0();return f.useCallback(async(r,o={})=>{let{action:i,method:l,encType:s,formData:a,body:u}=$0(r,t);if(o.navigate===!1){let d=o.fetcherKey||o1();await e.fetch(d,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:a,body:u,formMethod:o.method||l,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:a,body:u,formMethod:o.method||l,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function l1(e,{relative:t}={}){let{basename:n}=f.useContext(Ft),r=f.useContext(Ht);ce(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Yo(e||".",{relative:t})},l=bn();if(e==null){i.search=l.search;let s=new URLSearchParams(i.search),a=s.getAll("index");if(a.some(d=>d==="")){s.delete("index"),a.filter(c=>c).forEach(c=>s.append("index",c));let d=s.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:nn([n,i.pathname])),bo(i)}function s1(e,{relative:t}={}){let n=f.useContext(hh);ce(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=_h("useViewTransitionState"),o=Yo(e,{relative:t});if(!n.isTransitioning)return!1;let i=an(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=an(n.nextLocation.pathname,r)||n.nextLocation.pathname;return cl(o.pathname,l)!=null||cl(o.pathname,i)!=null}var a1=(e,t,n,r,o,i,l,s)=>{let a=document.documentElement,u=["light","dark"];function d(g){(Array.isArray(e)?e:[e]).forEach(x=>{let y=x==="class",S=y&&i?o.map(h=>i[h]||h):o;y?(a.classList.remove(...S),a.classList.add(i&&i[g]?i[g]:g)):a.setAttribute(x,g)}),c(g)}function c(g){s&&u.includes(g)&&(a.style.colorScheme=g)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)d(r);else try{let g=localStorage.getItem(t)||n,x=l&&g==="system"?m():g;d(x)}catch{}},u1=f.createContext(void 0),c1={setTheme:e=>{},themes:[]},gS=()=>{var e;return(e=f.useContext(u1))!=null?e:c1};f.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:l,themes:s,nonce:a,scriptProps:u})=>{let d=JSON.stringify([n,t,i,e,s,l,r,o]).slice(1,-1);return f.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?a:"",dangerouslySetInnerHTML:{__html:`(${a1.toString()})(${d})`}})});function d1(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const f1=e=>{switch(e){case"success":return m1;case"info":return y1;case"warning":return v1;case"error":return g1;default:return null}},p1=Array(12).fill(0),h1=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},p1.map((n,r)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),m1=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),v1=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),y1=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),g1=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),w1=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),x1=()=>{const[e,t]=R.useState(document.hidden);return R.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Ea=1;class E1{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Ea++,l=this.toasts.find(a=>a.id===i),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),l?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...t,id:i,title:r}),{...a,...t,id:i,dismissible:s,title:r}):a):this.addToast({title:r,...o,dismissible:s,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,l;const s=o.then(async u=>{if(l=["resolve",u],R.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(C1(u)&&!u.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,m=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,x=typeof c=="object"&&!R.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:m,...x})}else if(u instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(u):n.error,m=typeof n.description=="function"?await n.description(u):n.description,x=typeof c=="object"&&!R.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:m,...x})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(u):n.success,m=typeof n.description=="function"?await n.description(u):n.description,x=typeof c=="object"&&!R.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:m,...x})}}).catch(async u=>{if(l=["reject",u],n.error!==void 0){i=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,g=typeof d=="object"&&!R.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...g})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),a=()=>new Promise((u,d)=>s.then(()=>l[0]==="reject"?d(l[1]):u(l[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Ea++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ke=new E1,S1=(e,t)=>{const n=(t==null?void 0:t.id)||Ea++;return Ke.addToast({title:e,...t,id:n}),n},C1=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",k1=S1,_1=()=>Ke.toasts,R1=()=>Ke.getActiveToasts(),wS=Object.assign(k1,{success:Ke.success,info:Ke.info,warning:Ke.warning,error:Ke.error,custom:Ke.custom,message:Ke.message,promise:Ke.promise,dismiss:Ke.dismiss,loading:Ke.loading},{getHistory:_1,getToasts:R1});d1("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function vi(e){return e.label!==void 0}const P1=3,N1="24px",T1="16px",dd=4e3,D1=356,O1=14,A1=45,L1=200;function $t(...e){return e.filter(Boolean).join(" ")}function M1(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const F1=e=>{var t,n,r,o,i,l,s,a,u;const{invert:d,toast:c,unstyled:m,interacting:g,setHeights:x,visibleToasts:y,heights:S,index:h,toasts:p,expanded:v,removeToast:E,defaultRichColors:k,closeButton:N,style:P,cancelButtonStyle:O,actionButtonStyle:z,className:b="",descriptionClassName:K="",duration:U,position:V,gap:G,expandByDefault:ne,classNames:j,icons:Q,closeButtonAriaLabel:W="Close toast"}=e,[he,ie]=R.useState(null),[je,dn]=R.useState(null),[H,le]=R.useState(!1),[re,Ae]=R.useState(!1),[tt,J]=R.useState(!1),[nt,xt]=R.useState(!1),[Wt,ft]=R.useState(!1),[Yt,Qt]=R.useState(0),[tr,nr]=R.useState(0),Kt=R.useRef(c.duration||U||dd),Br=R.useRef(null),Pe=R.useRef(null),w=h===0,C=h+1<=y,_=c.type,L=c.dismissible!==!1,A=c.className||"",D=c.descriptionClassName||"",$=R.useMemo(()=>S.findIndex(B=>B.toastId===c.id)||0,[S,c.id]),Z=R.useMemo(()=>{var B;return(B=c.closeButton)!=null?B:N},[c.closeButton,N]),q=R.useMemo(()=>c.duration||U||dd,[c.duration,U]),Le=R.useRef(0),Et=R.useRef(0),St=R.useRef(0),fn=R.useRef(null),[Hr,Wr]=V.split("-"),Xo=R.useMemo(()=>S.reduce((B,ke,Me)=>Me>=$?B:B+ke.height,0),[S,$]),Yr=x1(),Bl=c.invert||d,rr=_==="loading";Et.current=R.useMemo(()=>$*G+Xo,[$,Xo]),R.useEffect(()=>{Kt.current=q},[q]),R.useEffect(()=>{le(!0)},[]),R.useEffect(()=>{const B=Pe.current;if(B){const ke=B.getBoundingClientRect().height;return nr(ke),x(Me=>[{toastId:c.id,height:ke,position:c.position},...Me]),()=>x(Me=>Me.filter(rt=>rt.toastId!==c.id))}},[x,c.id]),R.useLayoutEffect(()=>{if(!H)return;const B=Pe.current,ke=B.style.height;B.style.height="auto";const Me=B.getBoundingClientRect().height;B.style.height=ke,nr(Me),x(rt=>rt.find(Ne=>Ne.toastId===c.id)?rt.map(Ne=>Ne.toastId===c.id?{...Ne,height:Me}:Ne):[{toastId:c.id,height:Me,position:c.position},...rt])},[H,c.title,c.description,x,c.id,c.jsx,c.action,c.cancel]);const pn=R.useCallback(()=>{Ae(!0),Qt(Et.current),x(B=>B.filter(ke=>ke.toastId!==c.id)),setTimeout(()=>{E(c)},L1)},[c,E,x,Et]);R.useEffect(()=>{if(c.promise&&_==="loading"||c.duration===1/0||c.type==="loading")return;let B;return v||g||Yr?(()=>{if(St.current<Le.current){const rt=new Date().getTime()-Le.current;Kt.current=Kt.current-rt}St.current=new Date().getTime()})():(()=>{Kt.current!==1/0&&(Le.current=new Date().getTime(),B=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),pn()},Kt.current))})(),()=>clearTimeout(B)},[v,g,c,_,Yr,pn]),R.useEffect(()=>{c.delete&&(pn(),c.onDismiss==null||c.onDismiss.call(c,c))},[pn,c.delete]);function qm(){var B;if(Q!=null&&Q.loading){var ke;return R.createElement("div",{className:$t(j==null?void 0:j.loader,c==null||(ke=c.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":_==="loading"},Q.loading)}return R.createElement(h1,{className:$t(j==null?void 0:j.loader,c==null||(B=c.classNames)==null?void 0:B.loader),visible:_==="loading"})}const ev=c.icon||(Q==null?void 0:Q[_])||f1(_);var Yu,Qu;return R.createElement("li",{tabIndex:0,ref:Pe,className:$t(b,A,j==null?void 0:j.toast,c==null||(t=c.classNames)==null?void 0:t.toast,j==null?void 0:j.default,j==null?void 0:j[_],c==null||(n=c.classNames)==null?void 0:n[_]),"data-sonner-toast":"","data-rich-colors":(Yu=c.richColors)!=null?Yu:k,"data-styled":!(c.jsx||c.unstyled||m),"data-mounted":H,"data-promise":!!c.promise,"data-swiped":Wt,"data-removed":re,"data-visible":C,"data-y-position":Hr,"data-x-position":Wr,"data-index":h,"data-front":w,"data-swiping":tt,"data-dismissible":L,"data-type":_,"data-invert":Bl,"data-swipe-out":nt,"data-swipe-direction":je,"data-expanded":!!(v||ne&&H),"data-testid":c.testId,style:{"--index":h,"--toasts-before":h,"--z-index":p.length-h,"--offset":`${re?Yt:Et.current}px`,"--initial-height":ne?"auto":`${tr}px`,...P,...c.style},onDragEnd:()=>{J(!1),ie(null),fn.current=null},onPointerDown:B=>{B.button!==2&&(rr||!L||(Br.current=new Date,Qt(Et.current),B.target.setPointerCapture(B.pointerId),B.target.tagName!=="BUTTON"&&(J(!0),fn.current={x:B.clientX,y:B.clientY})))},onPointerUp:()=>{var B,ke,Me;if(nt||!L)return;fn.current=null;const rt=Number(((B=Pe.current)==null?void 0:B.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Go=Number(((ke=Pe.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ne=new Date().getTime()-((Me=Br.current)==null?void 0:Me.getTime()),pt=he==="x"?rt:Go,Zo=Math.abs(pt)/Ne;if(Math.abs(pt)>=A1||Zo>.11){Qt(Et.current),c.onDismiss==null||c.onDismiss.call(c,c),dn(he==="x"?rt>0?"right":"left":Go>0?"down":"up"),pn(),xt(!0);return}else{var Ct,kt;(Ct=Pe.current)==null||Ct.style.setProperty("--swipe-amount-x","0px"),(kt=Pe.current)==null||kt.style.setProperty("--swipe-amount-y","0px")}ft(!1),J(!1),ie(null)},onPointerMove:B=>{var ke,Me,rt;if(!fn.current||!L||((ke=window.getSelection())==null?void 0:ke.toString().length)>0)return;const Ne=B.clientY-fn.current.y,pt=B.clientX-fn.current.x;var Zo;const Ct=(Zo=e.swipeDirections)!=null?Zo:M1(V);!he&&(Math.abs(pt)>1||Math.abs(Ne)>1)&&ie(Math.abs(pt)>Math.abs(Ne)?"x":"y");let kt={x:0,y:0};const Ku=$n=>1/(1.5+Math.abs($n)/20);if(he==="y"){if(Ct.includes("top")||Ct.includes("bottom"))if(Ct.includes("top")&&Ne<0||Ct.includes("bottom")&&Ne>0)kt.y=Ne;else{const $n=Ne*Ku(Ne);kt.y=Math.abs($n)<Math.abs(Ne)?$n:Ne}}else if(he==="x"&&(Ct.includes("left")||Ct.includes("right")))if(Ct.includes("left")&&pt<0||Ct.includes("right")&&pt>0)kt.x=pt;else{const $n=pt*Ku(pt);kt.x=Math.abs($n)<Math.abs(pt)?$n:pt}(Math.abs(kt.x)>0||Math.abs(kt.y)>0)&&ft(!0),(Me=Pe.current)==null||Me.style.setProperty("--swipe-amount-x",`${kt.x}px`),(rt=Pe.current)==null||rt.style.setProperty("--swipe-amount-y",`${kt.y}px`)}},Z&&!c.jsx&&_!=="loading"?R.createElement("button",{"aria-label":W,"data-disabled":rr,"data-close-button":!0,onClick:rr||!L?()=>{}:()=>{pn(),c.onDismiss==null||c.onDismiss.call(c,c)},className:$t(j==null?void 0:j.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Qu=Q==null?void 0:Q.close)!=null?Qu:w1):null,(_||c.icon||c.promise)&&c.icon!==null&&((Q==null?void 0:Q[_])!==null||c.icon)?R.createElement("div",{"data-icon":"",className:$t(j==null?void 0:j.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||qm():null,c.type!=="loading"?ev:null):null,R.createElement("div",{"data-content":"",className:$t(j==null?void 0:j.content,c==null||(i=c.classNames)==null?void 0:i.content)},R.createElement("div",{"data-title":"",className:$t(j==null?void 0:j.title,c==null||(l=c.classNames)==null?void 0:l.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?R.createElement("div",{"data-description":"",className:$t(K,D,j==null?void 0:j.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),R.isValidElement(c.cancel)?c.cancel:c.cancel&&vi(c.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||O,onClick:B=>{vi(c.cancel)&&L&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,B),pn())},className:$t(j==null?void 0:j.cancelButton,c==null||(a=c.classNames)==null?void 0:a.cancelButton)},c.cancel.label):null,R.isValidElement(c.action)?c.action:c.action&&vi(c.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||z,onClick:B=>{vi(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,B),!B.defaultPrevented&&pn())},className:$t(j==null?void 0:j.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function fd(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function I1(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,l=i?"--mobile-offset":"--offset",s=i?T1:N1;function a(u){["top","right","bottom","left"].forEach(d=>{n[`${l}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${l}-${u}`]=s:n[`${l}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(s)}),n}const xS=R.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:l=["altKey","KeyT"],expand:s,closeButton:a,className:u,offset:d,mobileOffset:c,theme:m="light",richColors:g,duration:x,style:y,visibleToasts:S=P1,toastOptions:h,dir:p=fd(),gap:v=O1,icons:E,containerAriaLabel:k="Notifications"}=t,[N,P]=R.useState([]),O=R.useMemo(()=>r?N.filter(H=>H.toasterId===r):N.filter(H=>!H.toasterId),[N,r]),z=R.useMemo(()=>Array.from(new Set([i].concat(O.filter(H=>H.position).map(H=>H.position)))),[O,i]),[b,K]=R.useState([]),[U,V]=R.useState(!1),[G,ne]=R.useState(!1),[j,Q]=R.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),W=R.useRef(null),he=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),ie=R.useRef(null),je=R.useRef(!1),dn=R.useCallback(H=>{P(le=>{var re;return(re=le.find(Ae=>Ae.id===H.id))!=null&&re.delete||Ke.dismiss(H.id),le.filter(({id:Ae})=>Ae!==H.id)})},[]);return R.useEffect(()=>Ke.subscribe(H=>{if(H.dismiss){requestAnimationFrame(()=>{P(le=>le.map(re=>re.id===H.id?{...re,delete:!0}:re))});return}setTimeout(()=>{uh.flushSync(()=>{P(le=>{const re=le.findIndex(Ae=>Ae.id===H.id);return re!==-1?[...le.slice(0,re),{...le[re],...H},...le.slice(re+1)]:[H,...le]})})})}),[N]),R.useEffect(()=>{if(m!=="system"){Q(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Q("dark"):Q("light")),typeof window>"u")return;const H=window.matchMedia("(prefers-color-scheme: dark)");try{H.addEventListener("change",({matches:le})=>{Q(le?"dark":"light")})}catch{H.addListener(({matches:re})=>{try{Q(re?"dark":"light")}catch(Ae){console.error(Ae)}})}},[m]),R.useEffect(()=>{N.length<=1&&V(!1)},[N]),R.useEffect(()=>{const H=le=>{var re;if(l.every(J=>le[J]||le.code===J)){var tt;V(!0),(tt=W.current)==null||tt.focus()}le.code==="Escape"&&(document.activeElement===W.current||(re=W.current)!=null&&re.contains(document.activeElement))&&V(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[l]),R.useEffect(()=>{if(W.current)return()=>{ie.current&&(ie.current.focus({preventScroll:!0}),ie.current=null,je.current=!1)}},[W.current]),R.createElement("section",{ref:n,"aria-label":`${k} ${he}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},z.map((H,le)=>{var re;const[Ae,tt]=H.split("-");return O.length?R.createElement("ol",{key:H,dir:p==="auto"?fd():p,tabIndex:-1,ref:W,className:u,"data-sonner-toaster":!0,"data-sonner-theme":j,"data-y-position":Ae,"data-x-position":tt,style:{"--front-toast-height":`${((re=b[0])==null?void 0:re.height)||0}px`,"--width":`${D1}px`,"--gap":`${v}px`,...y,...I1(d,c)},onBlur:J=>{je.current&&!J.currentTarget.contains(J.relatedTarget)&&(je.current=!1,ie.current&&(ie.current.focus({preventScroll:!0}),ie.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||je.current||(je.current=!0,ie.current=J.relatedTarget)},onMouseEnter:()=>V(!0),onMouseMove:()=>V(!0),onMouseLeave:()=>{G||V(!1)},onDragEnd:()=>V(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||ne(!0)},onPointerUp:()=>ne(!1)},O.filter(J=>!J.position&&le===0||J.position===H).map((J,nt)=>{var xt,Wt;return R.createElement(F1,{key:J.id,icons:E,index:nt,toast:J,defaultRichColors:g,duration:(xt=h==null?void 0:h.duration)!=null?xt:x,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:o,visibleToasts:S,closeButton:(Wt=h==null?void 0:h.closeButton)!=null?Wt:a,interacting:G,position:H,style:h==null?void 0:h.style,unstyled:h==null?void 0:h.unstyled,classNames:h==null?void 0:h.classNames,cancelButtonStyle:h==null?void 0:h.cancelButtonStyle,actionButtonStyle:h==null?void 0:h.actionButtonStyle,closeButtonAriaLabel:h==null?void 0:h.closeButtonAriaLabel,removeToast:dn,toasts:O.filter(ft=>ft.position==J.position),heights:b.filter(ft=>ft.position==J.position),setHeights:K,expandByDefault:s,gap:v,expanded:U,swipeDirections:t.swipeDirections})})):null}))}),pd=e=>{let t;const n=new Set,r=(u,d)=>{const c=typeof u=="function"?u(t):u;if(!Object.is(c,t)){const m=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(g=>g(t,m))}},o=()=>t,s={setState:r,getState:o,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=t=e(r,o,s);return s},b1=e=>e?pd(e):pd,$1=e=>e;function z1(e,t=$1){const n=R.useSyncExternalStore(e.subscribe,R.useCallback(()=>t(e.getState()),[e,t]),R.useCallback(()=>t(e.getInitialState()),[e,t]));return R.useDebugValue(n),n}const j1=e=>{const t=b1(e),n=r=>z1(t,r);return Object.assign(n,t),n},ES=e=>j1,hd={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},$o=new Map,yi=e=>{const t=$o.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},V1=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=$o.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return $o.set(n.name,o),{type:"tracked",store:e,...o}},U1=(e,t)=>{if(t===void 0)return;const n=$o.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&$o.delete(e))},B1=e=>{var t,n;if(!e)return;const r=e.split(`
|
|
44
|
-
`),o=r.findIndex(l=>l.includes("api.setState"));if(o<0)return;const i=((t=r[o+1])==null?void 0:t.trim())||"";return(n=/.+ (.+) .+/.exec(i))==null?void 0:n[1]},H1=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:l,store:s,...a}=t;let u;try{u=(i??(hd?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(n,r,o);const{connection:d,...c}=V1(s,u,a);let m=!0;o.setState=(y,S,h)=>{const p=n(y,S);if(!m)return p;const v=h===void 0?{type:l||B1(new Error().stack)||"anonymous"}:typeof h=="string"?{type:h}:h;return s===void 0?(d==null||d.send(v,r()),p):(d==null||d.send({...v,type:`${s}/${v.type}`},{...yi(a.name),[s]:o.getState()}),p)},o.devtools={cleanup:()=>{d&&typeof d.unsubscribe=="function"&&d.unsubscribe(),U1(a.name,s)}};const g=(...y)=>{const S=m;m=!1,n(...y),m=S},x=e(o.setState,r,o);if(c.type==="untracked"?d==null||d.init(x):(c.stores[c.store]=o,d==null||d.init(Object.fromEntries(Object.entries(c.stores).map(([y,S])=>[y,y===c.store?x:S.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let y=!1;const S=o.dispatch;o.dispatch=(...h)=>{(hd?"production":void 0)!=="production"&&h[0].type==="__setState"&&!y&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),y=!0),S(...h)}}return d.subscribe(y=>{var S;switch(y.type){case"ACTION":if(typeof y.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return gs(y.payload,h=>{if(h.type==="__setState"){if(s===void 0){g(h.state);return}Object.keys(h.state).length!==1&&console.error(`
|
|
45
|
-
[zustand devtools middleware] Unsupported __setState action format.
|
|
46
|
-
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
|
47
|
-
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
48
|
-
`);const p=h.state[s];if(p==null)return;JSON.stringify(o.getState())!==JSON.stringify(p)&&g(p);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(h)});case"DISPATCH":switch(y.payload.type){case"RESET":return g(x),s===void 0?d==null?void 0:d.init(o.getState()):d==null?void 0:d.init(yi(a.name));case"COMMIT":if(s===void 0){d==null||d.init(o.getState());return}return d==null?void 0:d.init(yi(a.name));case"ROLLBACK":return gs(y.state,h=>{if(s===void 0){g(h),d==null||d.init(o.getState());return}g(h[s]),d==null||d.init(yi(a.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return gs(y.state,h=>{if(s===void 0){g(h);return}JSON.stringify(o.getState())!==JSON.stringify(h[s])&&g(h[s])});case"IMPORT_STATE":{const{nextLiftedState:h}=y.payload,p=(S=h.computedStates.slice(-1)[0])==null?void 0:S.state;if(!p)return;g(s===void 0?p:p[s]),d==null||d.send(null,h);return}case"PAUSE_RECORDING":return m=!m}return}}),x},SS=H1,gs=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},md=e=>Symbol.iterator in e,vd=e=>"entries"in e,yd=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(const[o,i]of n)if(!r.has(o)||!Object.is(i,r.get(o)))return!1;return!0},W1=(e,t)=>{const n=e[Symbol.iterator](),r=t[Symbol.iterator]();let o=n.next(),i=r.next();for(;!o.done&&!i.done;){if(!Object.is(o.value,i.value))return!1;o=n.next(),i=r.next()}return!!o.done&&!!i.done};function Y1(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:md(e)&&md(t)?vd(e)&&vd(t)?yd(e,t):W1(e,t):yd({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function CS(e){const t=R.useRef(void 0);return n=>{const r=e(n);return Y1(t.current,r)?t.current:t.current=r}}/**
|
|
49
|
-
* @license lucide-react v0.523.0 - ISC
|
|
50
|
-
*
|
|
51
|
-
* This source code is licensed under the ISC license.
|
|
52
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/const Q1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),K1=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),gd=e=>{const t=K1(e);return t.charAt(0).toUpperCase()+t.slice(1)},Rh=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),X1=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
54
|
-
* @license lucide-react v0.523.0 - ISC
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the ISC license.
|
|
57
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/var G1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
59
|
-
* @license lucide-react v0.523.0 - ISC
|
|
60
|
-
*
|
|
61
|
-
* This source code is licensed under the ISC license.
|
|
62
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/const Z1=f.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:l,...s},a)=>f.createElement("svg",{ref:a,...G1,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Rh("lucide",o),...!i&&!X1(s)&&{"aria-hidden":"true"},...s},[...l.map(([u,d])=>f.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
|
|
64
|
-
* @license lucide-react v0.523.0 - ISC
|
|
65
|
-
*
|
|
66
|
-
* This source code is licensed under the ISC license.
|
|
67
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/const et=(e,t)=>{const n=f.forwardRef(({className:r,...o},i)=>f.createElement(Z1,{ref:i,iconNode:t,className:Rh(`lucide-${Q1(gd(e))}`,`lucide-${e}`,r),...o}));return n.displayName=gd(e),n};/**
|
|
69
|
-
* @license lucide-react v0.523.0 - ISC
|
|
70
|
-
*
|
|
71
|
-
* This source code is licensed under the ISC license.
|
|
72
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/const J1=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"12",x2:"12",y1:"16",y2:"12",key:"1y1yb1"}],["line",{x1:"12",x2:"12.01",y1:"8",y2:"8",key:"110wyk"}]],kS=et("badge-info",J1);/**
|
|
74
|
-
* @license lucide-react v0.523.0 - ISC
|
|
75
|
-
*
|
|
76
|
-
* This source code is licensed under the ISC license.
|
|
77
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/const q1=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],_S=et("coffee",q1);/**
|
|
79
|
-
* @license lucide-react v0.523.0 - ISC
|
|
80
|
-
*
|
|
81
|
-
* This source code is licensed under the ISC license.
|
|
82
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/const ew=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],RS=et("copy",ew);/**
|
|
84
|
-
* @license lucide-react v0.523.0 - ISC
|
|
85
|
-
*
|
|
86
|
-
* This source code is licensed under the ISC license.
|
|
87
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/const tw=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],PS=et("github",tw);/**
|
|
89
|
-
* @license lucide-react v0.523.0 - ISC
|
|
90
|
-
*
|
|
91
|
-
* This source code is licensed under the ISC license.
|
|
92
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/const nw=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],NS=et("layout-dashboard",nw);/**
|
|
94
|
-
* @license lucide-react v0.523.0 - ISC
|
|
95
|
-
*
|
|
96
|
-
* This source code is licensed under the ISC license.
|
|
97
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/const rw=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],TS=et("loader-circle",rw);/**
|
|
99
|
-
* @license lucide-react v0.523.0 - ISC
|
|
100
|
-
*
|
|
101
|
-
* This source code is licensed under the ISC license.
|
|
102
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
-
*/const ow=[["path",{d:"M5 12h14",key:"1ays0h"}]],DS=et("minus",ow);/**
|
|
104
|
-
* @license lucide-react v0.523.0 - ISC
|
|
105
|
-
*
|
|
106
|
-
* This source code is licensed under the ISC license.
|
|
107
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/const iw=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],OS=et("panel-left",iw);/**
|
|
109
|
-
* @license lucide-react v0.523.0 - ISC
|
|
110
|
-
*
|
|
111
|
-
* This source code is licensed under the ISC license.
|
|
112
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
-
*/const lw=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],AS=et("plus",lw);/**
|
|
114
|
-
* @license lucide-react v0.523.0 - ISC
|
|
115
|
-
*
|
|
116
|
-
* This source code is licensed under the ISC license.
|
|
117
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/const sw=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],LS=et("power",sw);/**
|
|
119
|
-
* @license lucide-react v0.523.0 - ISC
|
|
120
|
-
*
|
|
121
|
-
* This source code is licensed under the ISC license.
|
|
122
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/const aw=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],MS=et("settings",aw);/**
|
|
124
|
-
* @license lucide-react v0.523.0 - ISC
|
|
125
|
-
*
|
|
126
|
-
* This source code is licensed under the ISC license.
|
|
127
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/const uw=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],FS=et("trash",uw);/**
|
|
129
|
-
* @license lucide-react v0.523.0 - ISC
|
|
130
|
-
*
|
|
131
|
-
* This source code is licensed under the ISC license.
|
|
132
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
-
*/const cw=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],IS=et("wrench",cw);/**
|
|
134
|
-
* @license lucide-react v0.523.0 - ISC
|
|
135
|
-
*
|
|
136
|
-
* This source code is licensed under the ISC license.
|
|
137
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
-
*/const dw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],bS=et("x",dw);function wd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ph(...e){return t=>{let n=!1;const r=e.map(o=>{const i=wd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():wd(e[o],null)}}}}function dt(...e){return f.useCallback(Ph(...e),e)}function Tu(e){const t=fw(e),n=f.forwardRef((r,o)=>{const{children:i,...l}=r,s=f.Children.toArray(i),a=s.find(pw);if(a){const u=a.props.children,d=s.map(c=>c===a?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:c);return F.jsx(t,{...l,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return F.jsx(t,{...l,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var $S=Tu("Slot");function fw(e){const t=f.forwardRef((n,r)=>{const{children:o,...i}=n;if(f.isValidElement(o)){const l=mw(o),s=hw(i,o.props);return o.type!==f.Fragment&&(s.ref=r?Ph(r,l):l),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nh=Symbol("radix.slottable");function Th(e){const t=({children:n})=>F.jsx(F.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Nh,t}function pw(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Nh}function hw(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const a=i(...s);return o(...s),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function mw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ze=vw.reduce((e,t)=>{const n=Tu(`Primitive.${t}`),r=f.forwardRef((o,i)=>{const{asChild:l,...s}=o,a=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),F.jsx(a,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function yw(e,t){e&&Ll.flushSync(()=>e.dispatchEvent(t))}var gw="Separator",xd="horizontal",ww=["horizontal","vertical"],Dh=f.forwardRef((e,t)=>{const{decorative:n,orientation:r=xd,...o}=e,i=xw(r)?r:xd,s=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return F.jsx(ze.div,{"data-orientation":i,...s,...o,ref:t})});Dh.displayName=gw;function xw(e){return ww.includes(e)}var zS=Dh;function Ew(e,t){const n=f.createContext(t),r=i=>{const{children:l,...s}=i,a=f.useMemo(()=>s,Object.values(s));return F.jsx(n.Provider,{value:a,children:l})};r.displayName=e+"Provider";function o(i){const l=f.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Il(e,t=[]){let n=[];function r(i,l){const s=f.createContext(l),a=n.length;n=[...n,l];const u=c=>{var h;const{scope:m,children:g,...x}=c,y=((h=m==null?void 0:m[e])==null?void 0:h[a])||s,S=f.useMemo(()=>x,Object.values(x));return F.jsx(y.Provider,{value:S,children:g})};u.displayName=i+"Provider";function d(c,m){var y;const g=((y=m==null?void 0:m[e])==null?void 0:y[a])||s,x=f.useContext(g);if(x)return x;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(l=>f.createContext(l));return function(s){const a=(s==null?void 0:s[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,Sw(o,...t)]}function Sw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const l=r.reduce((s,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...s,...c}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Ln=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},Cw=af[" useId ".trim().toString()]||(()=>{}),kw=0;function Fi(e){const[t,n]=f.useState(Cw());return Ln(()=>{n(r=>r??String(kw++))},[e]),e||(t?`radix-${t}`:"")}var _w=af[" useInsertionEffect ".trim().toString()]||Ln;function Oh({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,l]=Rw({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const c=d.current;c!==s&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${s?"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.`),d.current=s},[s,r])}const u=f.useCallback(d=>{var c;if(s){const m=Pw(d)?d(e):d;m!==e&&((c=l.current)==null||c.call(l,m))}else i(d)},[s,e,i,l]);return[a,u]}function Rw({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),i=f.useRef(t);return _w(()=>{i.current=t},[t]),f.useEffect(()=>{var l;o.current!==n&&((l=i.current)==null||l.call(i,n),o.current=n)},[n,o]),[n,r,i]}function Pw(e){return typeof e=="function"}function Fr(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Nw(e,t=globalThis==null?void 0:globalThis.document){const n=Fr(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Tw="DismissableLayer",Sa="dismissableLayer.update",Dw="dismissableLayer.pointerDownOutside",Ow="dismissableLayer.focusOutside",Ed,Ah=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Du=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:s,...a}=e,u=f.useContext(Ah),[d,c]=f.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=f.useState({}),x=dt(t,P=>c(P)),y=Array.from(u.layers),[S]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=y.indexOf(S),p=d?y.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,E=p>=h,k=Mw(P=>{const O=P.target,z=[...u.branches].some(b=>b.contains(O));!E||z||(o==null||o(P),l==null||l(P),P.defaultPrevented||s==null||s())},m),N=Fw(P=>{const O=P.target;[...u.branches].some(b=>b.contains(O))||(i==null||i(P),l==null||l(P),P.defaultPrevented||s==null||s())},m);return Nw(P=>{p===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&s&&(P.preventDefault(),s()))},m),f.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ed=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Sd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Ed)}},[d,m,n,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Sd())},[d,u]),f.useEffect(()=>{const P=()=>g({});return document.addEventListener(Sa,P),()=>document.removeEventListener(Sa,P)},[]),F.jsx(ze.div,{...a,ref:x,style:{pointerEvents:v?E?"auto":"none":void 0,...e.style},onFocusCapture:Be(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Be(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Be(e.onPointerDownCapture,k.onPointerDownCapture)})});Du.displayName=Tw;var Aw="DismissableLayerBranch",Lw=f.forwardRef((e,t)=>{const n=f.useContext(Ah),r=f.useRef(null),o=dt(t,r);return f.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),F.jsx(ze.div,{...e,ref:o})});Lw.displayName=Aw;function Mw(e,t=globalThis==null?void 0:globalThis.document){const n=Fr(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let a=function(){Lh(Dw,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Fw(e,t=globalThis==null?void 0:globalThis.document){const n=Fr(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&Lh(Ow,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Sd(){const e=new CustomEvent(Sa);document.dispatchEvent(e)}function Lh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?yw(o,i):o.dispatchEvent(i)}var ws="focusScope.autoFocusOnMount",xs="focusScope.autoFocusOnUnmount",Cd={bubbles:!1,cancelable:!0},Iw="FocusScope",Mh=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[s,a]=f.useState(null),u=Fr(o),d=Fr(i),c=f.useRef(null),m=dt(t,y=>a(y)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let y=function(v){if(g.paused||!s)return;const E=v.target;s.contains(E)?c.current=E:mn(c.current,{select:!0})},S=function(v){if(g.paused||!s)return;const E=v.relatedTarget;E!==null&&(s.contains(E)||mn(c.current,{select:!0}))},h=function(v){if(document.activeElement===document.body)for(const k of v)k.removedNodes.length>0&&mn(s)};document.addEventListener("focusin",y),document.addEventListener("focusout",S);const p=new MutationObserver(h);return s&&p.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",S),p.disconnect()}}},[r,s,g.paused]),f.useEffect(()=>{if(s){_d.add(g);const y=document.activeElement;if(!s.contains(y)){const h=new CustomEvent(ws,Cd);s.addEventListener(ws,u),s.dispatchEvent(h),h.defaultPrevented||(bw(Uw(Fh(s)),{select:!0}),document.activeElement===y&&mn(s))}return()=>{s.removeEventListener(ws,u),setTimeout(()=>{const h=new CustomEvent(xs,Cd);s.addEventListener(xs,d),s.dispatchEvent(h),h.defaultPrevented||mn(y??document.body,{select:!0}),s.removeEventListener(xs,d),_d.remove(g)},0)}}},[s,u,d,g]);const x=f.useCallback(y=>{if(!n&&!r||g.paused)return;const S=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,h=document.activeElement;if(S&&h){const p=y.currentTarget,[v,E]=$w(p);v&&E?!y.shiftKey&&h===E?(y.preventDefault(),n&&mn(v,{select:!0})):y.shiftKey&&h===v&&(y.preventDefault(),n&&mn(E,{select:!0})):h===p&&y.preventDefault()}},[n,r,g.paused]);return F.jsx(ze.div,{tabIndex:-1,...l,ref:m,onKeyDown:x})});Mh.displayName=Iw;function bw(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(mn(r,{select:t}),document.activeElement!==n)return}function $w(e){const t=Fh(e),n=kd(t,e),r=kd(t.reverse(),e);return[n,r]}function Fh(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function kd(e,t){for(const n of e)if(!zw(n,{upTo:t}))return n}function zw(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}function jw(e){return e instanceof HTMLInputElement&&"select"in e}function mn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&jw(e)&&t&&e.select()}}var _d=Vw();function Vw(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Rd(e,t),e.unshift(t)},remove(t){var n;e=Rd(e,t),(n=e[0])==null||n.resume()}}}function Rd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Uw(e){return e.filter(t=>t.tagName!=="A")}var Bw="Portal",Ih=f.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=f.useState(!1);Ln(()=>i(!0),[]);const l=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return l?uh.createPortal(F.jsx(ze.div,{...r,ref:t}),l):null});Ih.displayName=Bw;function Hw(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var Qo=e=>{const{present:t,children:n}=e,r=Ww(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=dt(r.ref,Yw(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};Qo.displayName="Presence";function Ww(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),l=e?"mounted":"unmounted",[s,a]=Hw(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=gi(r.current);i.current=s==="mounted"?u:"none"},[s]),Ln(()=>{const u=r.current,d=o.current;if(d!==e){const m=i.current,g=gi(u);e?a("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Ln(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=g=>{const y=gi(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&y&&(a("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},m=g=>{g.target===t&&(i.current=gi(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function gi(e){return(e==null?void 0:e.animationName)||"none"}function Yw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Es=0;function Qw(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pd()),document.body.insertAdjacentElement("beforeend",e[1]??Pd()),Es++,()=>{Es===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Es--}},[])}function Pd(){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}var Ii="right-scroll-bar-position",bi="width-before-scroll-bar",Kw="with-scroll-bars-hidden",Xw="--removed-body-scroll-bar-size";function Ss(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Gw(e,t){var n=f.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Zw=typeof window<"u"?f.useLayoutEffect:f.useEffect,Nd=new WeakMap;function Jw(e,t){var n=Gw(null,function(r){return e.forEach(function(o){return Ss(o,r)})});return Zw(function(){var r=Nd.get(n);if(r){var o=new Set(r),i=new Set(e),l=n.current;o.forEach(function(s){i.has(s)||Ss(s,null)}),i.forEach(function(s){o.has(s)||Ss(s,l)})}Nd.set(n,e)},[e]),n}function qw(e){return e}function ex(e,t){t===void 0&&(t=qw);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(s){return s!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var s=n;n=[],s.forEach(i),l=n}var a=function(){var d=l;l=[],d.forEach(i)},u=function(){return Promise.resolve().then(a)};u(),n={push:function(d){l.push(d),u()},filter:function(d){return l=l.filter(d),n}}}};return o}function tx(e){e===void 0&&(e={});var t=ex(null);return t.options=gn({async:!0,ssr:!1},e),t}var bh=function(e){var t=e.sideCar,n=Xd(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,gn({},n))};bh.isSideCarExport=!0;function nx(e,t){return e.useMedium(t),bh}var $h=tx(),Cs=function(){},bl=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Cs,onWheelCapture:Cs,onTouchMoveCapture:Cs}),o=r[0],i=r[1],l=e.forwardProps,s=e.children,a=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,m=e.sideCar,g=e.noRelative,x=e.noIsolation,y=e.inert,S=e.allowPinchZoom,h=e.as,p=h===void 0?"div":h,v=e.gapMode,E=Xd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=m,N=Jw([n,t]),P=gn(gn({},E),o);return f.createElement(f.Fragment,null,d&&f.createElement(k,{sideCar:$h,removeScrollBar:u,shards:c,noRelative:g,noIsolation:x,inert:y,setCallbacks:i,allowPinchZoom:!!S,lockRef:n,gapMode:v}),l?f.cloneElement(f.Children.only(s),gn(gn({},P),{ref:N})):f.createElement(p,gn({},P,{className:a,ref:N}),s))});bl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bl.classNames={fullWidth:bi,zeroRight:Ii};function rx(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nv();return t&&e.setAttribute("nonce",t),e}function ox(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ix(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var lx=function(){var e=0,t=null;return{add:function(n){e==0&&(t=rx())&&(ox(t,n),ix(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},sx=function(){var e=lx();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},zh=function(){var e=sx(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ax={left:0,top:0,right:0,gap:0},ks=function(e){return parseInt(e||"",10)||0},ux=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ks(n),ks(r),ks(o)]},cx=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ax;var t=ux(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},dx=zh(),Rr="data-scroll-locked",fx=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
139
|
-
.`.concat(Kw,` {
|
|
140
|
-
overflow: hidden `).concat(r,`;
|
|
141
|
-
padding-right: `).concat(s,"px ").concat(r,`;
|
|
142
|
-
}
|
|
143
|
-
body[`).concat(Rr,`] {
|
|
144
|
-
overflow: hidden `).concat(r,`;
|
|
145
|
-
overscroll-behavior: contain;
|
|
146
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
147
|
-
padding-left: `.concat(o,`px;
|
|
148
|
-
padding-top: `).concat(i,`px;
|
|
149
|
-
padding-right: `).concat(l,`px;
|
|
150
|
-
margin-left:0;
|
|
151
|
-
margin-top:0;
|
|
152
|
-
margin-right: `).concat(s,"px ").concat(r,`;
|
|
153
|
-
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.`).concat(Ii,` {
|
|
157
|
-
right: `).concat(s,"px ").concat(r,`;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.`).concat(bi,` {
|
|
161
|
-
margin-right: `).concat(s,"px ").concat(r,`;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.`).concat(Ii," .").concat(Ii,` {
|
|
165
|
-
right: 0 `).concat(r,`;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.`).concat(bi," .").concat(bi,` {
|
|
169
|
-
margin-right: 0 `).concat(r,`;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
body[`).concat(Rr,`] {
|
|
173
|
-
`).concat(Xw,": ").concat(s,`px;
|
|
174
|
-
}
|
|
175
|
-
`)},Td=function(){var e=parseInt(document.body.getAttribute(Rr)||"0",10);return isFinite(e)?e:0},px=function(){f.useEffect(function(){return document.body.setAttribute(Rr,(Td()+1).toString()),function(){var e=Td()-1;e<=0?document.body.removeAttribute(Rr):document.body.setAttribute(Rr,e.toString())}},[])},hx=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;px();var i=f.useMemo(function(){return cx(o)},[o]);return f.createElement(dx,{styles:fx(i,!t,o,n?"":"!important")})},Ca=!1;if(typeof window<"u")try{var wi=Object.defineProperty({},"passive",{get:function(){return Ca=!0,!0}});window.addEventListener("test",wi,wi),window.removeEventListener("test",wi,wi)}catch{Ca=!1}var ir=Ca?{passive:!1}:!1,mx=function(e){return e.tagName==="TEXTAREA"},jh=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!mx(e)&&n[t]==="visible")},vx=function(e){return jh(e,"overflowY")},yx=function(e){return jh(e,"overflowX")},Dd=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Vh(e,r);if(o){var i=Uh(e,r),l=i[1],s=i[2];if(l>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gx=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},wx=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Vh=function(e,t){return e==="v"?vx(t):yx(t)},Uh=function(e,t){return e==="v"?gx(t):wx(t)},xx=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ex=function(e,t,n,r,o){var i=xx(e,window.getComputedStyle(t).direction),l=i*r,s=n.target,a=t.contains(s),u=!1,d=l>0,c=0,m=0;do{if(!s)break;var g=Uh(e,s),x=g[0],y=g[1],S=g[2],h=y-S-i*x;(x||h)&&Vh(e,s)&&(c+=h,m+=x);var p=s.parentNode;s=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return(d&&Math.abs(c)<1||!d&&Math.abs(m)<1)&&(u=!0),u},xi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Od=function(e){return[e.deltaX,e.deltaY]},Ad=function(e){return e&&"current"in e?e.current:e},Sx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Cx=function(e){return`
|
|
176
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
177
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
178
|
-
`)},kx=0,lr=[];function _x(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(kx++)[0],i=f.useState(zh)[0],l=f.useRef(e);f.useEffect(function(){l.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=rv([e.lockRef.current],(e.shards||[]).map(Ad),!0).filter(Boolean);return y.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(y,S){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!l.current.allowPinchZoom;var h=xi(y),p=n.current,v="deltaX"in y?y.deltaX:p[0]-h[0],E="deltaY"in y?y.deltaY:p[1]-h[1],k,N=y.target,P=Math.abs(v)>Math.abs(E)?"h":"v";if("touches"in y&&P==="h"&&N.type==="range")return!1;var O=Dd(P,N);if(!O)return!0;if(O?k=P:(k=P==="v"?"h":"v",O=Dd(P,N)),!O)return!1;if(!r.current&&"changedTouches"in y&&(v||E)&&(r.current=k),!k)return!0;var z=r.current||k;return Ex(z,S,y,z==="h"?v:E)},[]),a=f.useCallback(function(y){var S=y;if(!(!lr.length||lr[lr.length-1]!==i)){var h="deltaY"in S?Od(S):xi(S),p=t.current.filter(function(k){return k.name===S.type&&(k.target===S.target||S.target===k.shadowParent)&&Sx(k.delta,h)})[0];if(p&&p.should){S.cancelable&&S.preventDefault();return}if(!p){var v=(l.current.shards||[]).map(Ad).filter(Boolean).filter(function(k){return k.contains(S.target)}),E=v.length>0?s(S,v[0]):!l.current.noIsolation;E&&S.cancelable&&S.preventDefault()}}},[]),u=f.useCallback(function(y,S,h,p){var v={name:y,delta:S,target:h,should:p,shadowParent:Rx(h)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(E){return E!==v})},1)},[]),d=f.useCallback(function(y){n.current=xi(y),r.current=void 0},[]),c=f.useCallback(function(y){u(y.type,Od(y),y.target,s(y,e.lockRef.current))},[]),m=f.useCallback(function(y){u(y.type,xi(y),y.target,s(y,e.lockRef.current))},[]);f.useEffect(function(){return lr.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:m}),document.addEventListener("wheel",a,ir),document.addEventListener("touchmove",a,ir),document.addEventListener("touchstart",d,ir),function(){lr=lr.filter(function(y){return y!==i}),document.removeEventListener("wheel",a,ir),document.removeEventListener("touchmove",a,ir),document.removeEventListener("touchstart",d,ir)}},[]);var g=e.removeScrollBar,x=e.inert;return f.createElement(f.Fragment,null,x?f.createElement(i,{styles:Cx(o)}):null,g?f.createElement(hx,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Rx(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Px=nx($h,_x);var Bh=f.forwardRef(function(e,t){return f.createElement(bl,gn({},e,{ref:t,sideCar:Px}))});Bh.classNames=bl.classNames;var $l="Dialog",[Hh,Wh]=Il($l),[Nx,It]=Hh($l),Yh=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,s=f.useRef(null),a=f.useRef(null),[u,d]=Oh({prop:r,defaultProp:o??!1,onChange:i,caller:$l});return F.jsx(Nx,{scope:t,triggerRef:s,contentRef:a,contentId:Fi(),titleId:Fi(),descriptionId:Fi(),open:u,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(c=>!c),[d]),modal:l,children:n})};Yh.displayName=$l;var Qh="DialogTrigger",Kh=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=It(Qh,n),i=dt(t,o.triggerRef);return F.jsx(ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Lu(o.open),...r,ref:i,onClick:Be(e.onClick,o.onOpenToggle)})});Kh.displayName=Qh;var Ou="DialogPortal",[Tx,Xh]=Hh(Ou,{forceMount:void 0}),Gh=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=It(Ou,t);return F.jsx(Tx,{scope:t,forceMount:n,children:f.Children.map(r,l=>F.jsx(Qo,{present:n||i.open,children:F.jsx(Ih,{asChild:!0,container:o,children:l})}))})};Gh.displayName=Ou;var dl="DialogOverlay",Zh=f.forwardRef((e,t)=>{const n=Xh(dl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=It(dl,e.__scopeDialog);return i.modal?F.jsx(Qo,{present:r||i.open,children:F.jsx(Ox,{...o,ref:t})}):null});Zh.displayName=dl;var Dx=Tu("DialogOverlay.RemoveScroll"),Ox=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=It(dl,n);return F.jsx(Bh,{as:Dx,allowPinchZoom:!0,shards:[o.contentRef],children:F.jsx(ze.div,{"data-state":Lu(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Jn="DialogContent",Jh=f.forwardRef((e,t)=>{const n=Xh(Jn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=It(Jn,e.__scopeDialog);return F.jsx(Qo,{present:r||i.open,children:i.modal?F.jsx(Ax,{...o,ref:t}):F.jsx(Lx,{...o,ref:t})})});Jh.displayName=Jn;var Ax=f.forwardRef((e,t)=>{const n=It(Jn,e.__scopeDialog),r=f.useRef(null),o=dt(t,n.contentRef,r);return f.useEffect(()=>{const i=r.current;if(i)return ov(i)},[]),F.jsx(qh,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Be(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:Be(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0;(l.button===2||s)&&i.preventDefault()}),onFocusOutside:Be(e.onFocusOutside,i=>i.preventDefault())})}),Lx=f.forwardRef((e,t)=>{const n=It(Jn,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return F.jsx(qh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,s;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var a,u;(a=e.onInteractOutside)==null||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),qh=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,s=It(Jn,n),a=f.useRef(null),u=dt(t,a);return Qw(),F.jsxs(F.Fragment,{children:[F.jsx(Mh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:F.jsx(Du,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Lu(s.open),...l,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),F.jsxs(F.Fragment,{children:[F.jsx(Fx,{titleId:s.titleId}),F.jsx(bx,{contentRef:a,descriptionId:s.descriptionId})]})]})}),Au="DialogTitle",em=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=It(Au,n);return F.jsx(ze.h2,{id:o.titleId,...r,ref:t})});em.displayName=Au;var tm="DialogDescription",nm=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=It(tm,n);return F.jsx(ze.p,{id:o.descriptionId,...r,ref:t})});nm.displayName=tm;var rm="DialogClose",om=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=It(rm,n);return F.jsx(ze.button,{type:"button",...r,ref:t,onClick:Be(e.onClick,()=>o.onOpenChange(!1))})});om.displayName=rm;function Lu(e){return e?"open":"closed"}var im="DialogTitleWarning",[Mx,lm]=Ew(im,{contentName:Jn,titleName:Au,docsSlug:"dialog"}),Fx=({titleId:e})=>{const t=lm(im),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
179
|
-
|
|
180
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
181
|
-
|
|
182
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ix="DialogDescriptionWarning",bx=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${lm(Ix).contentName}}.`;return f.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},$x=Yh,zx=Kh,jx=Gh,Vx=Zh,Ux=Jh,Bx=em,Hx=nm,sm=om,Wx=typeof document<"u",Yx=function(){},$i=Wx?f.useLayoutEffect:Yx;function fl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!fl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!fl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function am(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ld(e,t){const n=am(e);return Math.round(t*n)/n}function _s(e){const t=f.useRef(e);return $i(()=>{t.current=e}),t}function Qx(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[d,c]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=f.useState(r);fl(m,r)||g(r);const[x,y]=f.useState(null),[S,h]=f.useState(null),p=f.useCallback(W=>{W!==N.current&&(N.current=W,y(W))},[]),v=f.useCallback(W=>{W!==P.current&&(P.current=W,h(W))},[]),E=i||x,k=l||S,N=f.useRef(null),P=f.useRef(null),O=f.useRef(d),z=a!=null,b=_s(a),K=_s(o),U=_s(u),V=f.useCallback(()=>{if(!N.current||!P.current)return;const W={placement:t,strategy:n,middleware:m};K.current&&(W.platform=K.current),iv(N.current,P.current,W).then(he=>{const ie={...he,isPositioned:U.current!==!1};G.current&&!fl(O.current,ie)&&(O.current=ie,Ll.flushSync(()=>{c(ie)}))})},[m,t,n,K,U]);$i(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,c(W=>({...W,isPositioned:!1})))},[u]);const G=f.useRef(!1);$i(()=>(G.current=!0,()=>{G.current=!1}),[]),$i(()=>{if(E&&(N.current=E),k&&(P.current=k),E&&k){if(b.current)return b.current(E,k,V);V()}},[E,k,V,b,z]);const ne=f.useMemo(()=>({reference:N,floating:P,setReference:p,setFloating:v}),[p,v]),j=f.useMemo(()=>({reference:E,floating:k}),[E,k]),Q=f.useMemo(()=>{const W={position:n,left:0,top:0};if(!j.floating)return W;const he=Ld(j.floating,d.x),ie=Ld(j.floating,d.y);return s?{...W,transform:"translate("+he+"px, "+ie+"px)",...am(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:he,top:ie}},[n,s,j.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:V,refs:ne,elements:j,floatingStyles:Q}),[d,V,ne,j,Q])}const Kx=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Xu({element:r.current,padding:o}).fn(n):{}:r?Xu({element:r,padding:o}).fn(n):{}}}},Xx=(e,t)=>({...lv(e),options:[e,t]}),Gx=(e,t)=>({...sv(e),options:[e,t]}),Zx=(e,t)=>({...dv(e),options:[e,t]}),Jx=(e,t)=>({...av(e),options:[e,t]}),qx=(e,t)=>({...uv(e),options:[e,t]}),eE=(e,t)=>({...cv(e),options:[e,t]}),tE=(e,t)=>({...Kx(e),options:[e,t]});var nE="Arrow",um=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return F.jsx(ze.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:F.jsx("polygon",{points:"0,0 30,0 15,10"})})});um.displayName=nE;var rE=um;function oE(e){const[t,n]=f.useState(void 0);return Ln(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;l=u.inlineSize,s=u.blockSize}else l=e.offsetWidth,s=e.offsetHeight;n({width:l,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Mu="Popper",[cm,dm]=Il(Mu),[iE,fm]=cm(Mu),pm=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return F.jsx(iE,{scope:t,anchor:r,onAnchorChange:o,children:n})};pm.displayName=Mu;var hm="PopperAnchor",mm=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=fm(hm,n),l=f.useRef(null),s=dt(t,l),a=f.useRef(null);return f.useEffect(()=>{const u=a.current;a.current=(r==null?void 0:r.current)||l.current,u!==a.current&&i.onAnchorChange(a.current)}),r?null:F.jsx(ze.div,{...o,ref:s})});mm.displayName=hm;var Fu="PopperContent",[lE,sE]=cm(Fu),vm=f.forwardRef((e,t)=>{var tt,J,nt,xt,Wt,ft;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:s=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:x,...y}=e,S=fm(Fu,n),[h,p]=f.useState(null),v=dt(t,Yt=>p(Yt)),[E,k]=f.useState(null),N=oE(E),P=(N==null?void 0:N.width)??0,O=(N==null?void 0:N.height)??0,z=r+(i!=="center"?"-"+i:""),b=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},K=Array.isArray(u)?u:[u],U=K.length>0,V={padding:b,boundary:K.filter(uE),altBoundary:U},{refs:G,floatingStyles:ne,placement:j,isPositioned:Q,middlewareData:W}=Qx({strategy:"fixed",placement:z,whileElementsMounted:(...Yt)=>fv(...Yt,{animationFrame:g==="always"}),elements:{reference:S.anchor},middleware:[Xx({mainAxis:o+O,alignmentAxis:l}),a&&Gx({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?Zx():void 0,...V}),a&&Jx({...V}),qx({...V,apply:({elements:Yt,rects:Qt,availableWidth:tr,availableHeight:nr})=>{const{width:Kt,height:Br}=Qt.reference,Pe=Yt.floating.style;Pe.setProperty("--radix-popper-available-width",`${tr}px`),Pe.setProperty("--radix-popper-available-height",`${nr}px`),Pe.setProperty("--radix-popper-anchor-width",`${Kt}px`),Pe.setProperty("--radix-popper-anchor-height",`${Br}px`)}}),E&&tE({element:E,padding:s}),cE({arrowWidth:P,arrowHeight:O}),m&&eE({strategy:"referenceHidden",...V})]}),[he,ie]=wm(j),je=Fr(x);Ln(()=>{Q&&(je==null||je())},[Q,je]);const dn=(tt=W.arrow)==null?void 0:tt.x,H=(J=W.arrow)==null?void 0:J.y,le=((nt=W.arrow)==null?void 0:nt.centerOffset)!==0,[re,Ae]=f.useState();return Ln(()=>{h&&Ae(window.getComputedStyle(h).zIndex)},[h]),F.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:Q?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:re,"--radix-popper-transform-origin":[(xt=W.transformOrigin)==null?void 0:xt.x,(Wt=W.transformOrigin)==null?void 0:Wt.y].join(" "),...((ft=W.hide)==null?void 0:ft.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:F.jsx(lE,{scope:n,placedSide:he,onArrowChange:k,arrowX:dn,arrowY:H,shouldHideArrow:le,children:F.jsx(ze.div,{"data-side":he,"data-align":ie,...y,ref:v,style:{...y.style,animation:Q?void 0:"none"}})})})});vm.displayName=Fu;var ym="PopperArrow",aE={top:"bottom",right:"left",bottom:"top",left:"right"},gm=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=sE(ym,r),l=aE[i.placedSide];return F.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:F.jsx(rE,{...o,ref:n,style:{...o.style,display:"block"}})})});gm.displayName=ym;function uE(e){return e!==null}var cE=e=>({name:"transformOrigin",options:e,fn(t){var S,h,p;const{placement:n,rects:r,middlewareData:o}=t,l=((S=o.arrow)==null?void 0:S.centerOffset)!==0,s=l?0:e.arrowWidth,a=l?0:e.arrowHeight,[u,d]=wm(n),c={start:"0%",center:"50%",end:"100%"}[d],m=(((h=o.arrow)==null?void 0:h.x)??0)+s/2,g=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let x="",y="";return u==="bottom"?(x=l?c:`${m}px`,y=`${-a}px`):u==="top"?(x=l?c:`${m}px`,y=`${r.floating.height+a}px`):u==="right"?(x=`${-a}px`,y=l?c:`${g}px`):u==="left"&&(x=`${r.floating.width+a}px`,y=l?c:`${g}px`),{data:{x,y}}}});function wm(e){const[t,n="center"]=e.split("-");return[t,n]}var dE=pm,fE=mm,pE=vm,hE=gm,mE=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"}),vE="VisuallyHidden",xm=f.forwardRef((e,t)=>F.jsx(ze.span,{...e,ref:t,style:{...mE,...e.style}}));xm.displayName=vE;var yE=xm,[zl,jS]=Il("Tooltip",[dm]),jl=dm(),Em="TooltipProvider",gE=700,ka="tooltip.open",[wE,Iu]=zl(Em),Sm=e=>{const{__scopeTooltip:t,delayDuration:n=gE,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,l=f.useRef(!0),s=f.useRef(!1),a=f.useRef(0);return f.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),F.jsx(wE,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:f.useCallback(u=>{s.current=u},[]),disableHoverableContent:o,children:i})};Sm.displayName=Em;var zo="Tooltip",[xE,Vl]=zl(zo),Cm=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:l,delayDuration:s}=e,a=Iu(zo,e.__scopeTooltip),u=jl(t),[d,c]=f.useState(null),m=Fi(),g=f.useRef(0),x=l??a.disableHoverableContent,y=s??a.delayDuration,S=f.useRef(!1),[h,p]=Oh({prop:r,defaultProp:o??!1,onChange:P=>{P?(a.onOpen(),document.dispatchEvent(new CustomEvent(ka))):a.onClose(),i==null||i(P)},caller:zo}),v=f.useMemo(()=>h?S.current?"delayed-open":"instant-open":"closed",[h]),E=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,S.current=!1,p(!0)},[p]),k=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,p(!1)},[p]),N=f.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{S.current=!0,p(!0),g.current=0},y)},[y,p]);return f.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),F.jsx(dE,{...u,children:F.jsx(xE,{scope:t,contentId:m,open:h,stateAttribute:v,trigger:d,onTriggerChange:c,onTriggerEnter:f.useCallback(()=>{a.isOpenDelayedRef.current?N():E()},[a.isOpenDelayedRef,N,E]),onTriggerLeave:f.useCallback(()=>{x?k():(window.clearTimeout(g.current),g.current=0)},[k,x]),onOpen:E,onClose:k,disableHoverableContent:x,children:n})})};Cm.displayName=zo;var _a="TooltipTrigger",km=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Vl(_a,n),i=Iu(_a,n),l=jl(n),s=f.useRef(null),a=dt(t,s,o.onTriggerChange),u=f.useRef(!1),d=f.useRef(!1),c=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),F.jsx(fE,{asChild:!0,...l,children:F.jsx(ze.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:Be(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Be(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Be(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:Be(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Be(e.onBlur,o.onClose),onClick:Be(e.onClick,o.onClose)})})});km.displayName=_a;var EE="TooltipPortal",[VS,SE]=zl(EE,{forceMount:void 0}),Ir="TooltipContent",_m=f.forwardRef((e,t)=>{const n=SE(Ir,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=Vl(Ir,e.__scopeTooltip);return F.jsx(Qo,{present:r||l.open,children:l.disableHoverableContent?F.jsx(Rm,{side:o,...i,ref:t}):F.jsx(CE,{side:o,...i,ref:t})})}),CE=f.forwardRef((e,t)=>{const n=Vl(Ir,e.__scopeTooltip),r=Iu(Ir,e.__scopeTooltip),o=f.useRef(null),i=dt(t,o),[l,s]=f.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:c}=r,m=f.useCallback(()=>{s(null),c(!1)},[c]),g=f.useCallback((x,y)=>{const S=x.currentTarget,h={x:x.clientX,y:x.clientY},p=NE(h,S.getBoundingClientRect()),v=TE(h,p),E=DE(y.getBoundingClientRect()),k=AE([...v,...E]);s(k),c(!0)},[c]);return f.useEffect(()=>()=>m(),[m]),f.useEffect(()=>{if(a&&d){const x=S=>g(S,d),y=S=>g(S,a);return a.addEventListener("pointerleave",x),d.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",x),d.removeEventListener("pointerleave",y)}}},[a,d,g,m]),f.useEffect(()=>{if(l){const x=y=>{const S=y.target,h={x:y.clientX,y:y.clientY},p=(a==null?void 0:a.contains(S))||(d==null?void 0:d.contains(S)),v=!OE(h,l);p?m():v&&(m(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[a,d,l,u,m]),F.jsx(Rm,{...e,ref:i})}),[kE,_E]=zl(zo,{isInside:!1}),RE=Th("TooltipContent"),Rm=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:l,...s}=e,a=Vl(Ir,n),u=jl(n),{onClose:d}=a;return f.useEffect(()=>(document.addEventListener(ka,d),()=>document.removeEventListener(ka,d)),[d]),f.useEffect(()=>{if(a.trigger){const c=m=>{const g=m.target;g!=null&&g.contains(a.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[a.trigger,d]),F.jsx(Du,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:F.jsxs(pE,{"data-state":a.stateAttribute,...u,...s,ref:t,style:{...s.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:[F.jsx(RE,{children:r}),F.jsx(kE,{scope:n,isInside:!0,children:F.jsx(yE,{id:a.contentId,role:"tooltip",children:o||r})})]})})});_m.displayName=Ir;var Pm="TooltipArrow",PE=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=jl(n);return _E(Pm,n).isInside?null:F.jsx(hE,{...o,...r,ref:t})});PE.displayName=Pm;function NE(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function TE(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function DE(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function OE(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const s=t[i],a=t[l],u=s.x,d=s.y,c=a.x,m=a.y;d>r!=m>r&&n<(c-u)*(r-d)/(m-d)+u&&(o=!o)}return o}function AE(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),LE(t)}function LE(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],l=n[n.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var US=Sm,BS=Cm,HS=km,WS=_m,Nm="AlertDialog",[ME,YS]=Il(Nm,[Wh]),cn=Wh(),Tm=e=>{const{__scopeAlertDialog:t,...n}=e,r=cn(t);return F.jsx($x,{...r,...n,modal:!0})};Tm.displayName=Nm;var FE="AlertDialogTrigger",Dm=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=cn(n);return F.jsx(zx,{...o,...r,ref:t})});Dm.displayName=FE;var IE="AlertDialogPortal",Om=e=>{const{__scopeAlertDialog:t,...n}=e,r=cn(t);return F.jsx(jx,{...r,...n})};Om.displayName=IE;var bE="AlertDialogOverlay",Am=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=cn(n);return F.jsx(Vx,{...o,...r,ref:t})});Am.displayName=bE;var Pr="AlertDialogContent",[$E,zE]=ME(Pr),jE=Th("AlertDialogContent"),Lm=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=cn(n),l=f.useRef(null),s=dt(t,l),a=f.useRef(null);return F.jsx(Mx,{contentName:Pr,titleName:Mm,docsSlug:"alert-dialog",children:F.jsx($E,{scope:n,cancelRef:a,children:F.jsxs(Ux,{role:"alertdialog",...i,...o,ref:s,onOpenAutoFocus:Be(o.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=a.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[F.jsx(jE,{children:r}),F.jsx(UE,{contentRef:l})]})})})});Lm.displayName=Pr;var Mm="AlertDialogTitle",Fm=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=cn(n);return F.jsx(Bx,{...o,...r,ref:t})});Fm.displayName=Mm;var Im="AlertDialogDescription",bm=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=cn(n);return F.jsx(Hx,{...o,...r,ref:t})});bm.displayName=Im;var VE="AlertDialogAction",$m=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=cn(n);return F.jsx(sm,{...o,...r,ref:t})});$m.displayName=VE;var zm="AlertDialogCancel",jm=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=zE(zm,n),i=cn(n),l=dt(t,o);return F.jsx(sm,{...i,...r,ref:l})});jm.displayName=zm;var UE=({contentRef:e})=>{const t=`\`${Pr}\` requires a description for the component to be accessible for screen reader users.
|
|
183
|
-
|
|
184
|
-
You can add a description to the \`${Pr}\` by passing a \`${Im}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
185
|
-
|
|
186
|
-
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 \`${Pr}\`. 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.
|
|
187
|
-
|
|
188
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},QS=Tm,KS=Dm,XS=Om,GS=Am,ZS=Lm,JS=$m,qS=jm,eC=Fm,tC=bm,Ko=e=>e.type==="checkbox",Hn=e=>e instanceof Date,Ue=e=>e==null;const Vm=e=>typeof e=="object";var ge=e=>!Ue(e)&&!Array.isArray(e)&&Vm(e)&&!Hn(e),Um=e=>ge(e)&&e.target?Ko(e.target)?e.target.checked:e.target.value:e,BE=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Bm=(e,t)=>e.has(BE(t)),HE=e=>{const t=e.constructor&&e.constructor.prototype;return ge(t)&&t.hasOwnProperty("isPrototypeOf")},bu=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ee(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(bu&&(e instanceof Blob||r))&&(n||ge(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!HE(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Ee(e[o]));else return e;return t}var Ul=e=>/^\w*$/.test(e),ve=e=>e===void 0,$u=e=>Array.isArray(e)?e.filter(Boolean):[],zu=e=>$u(e.replace(/["|']|\]/g,"").split(/\.|\[/)),M=(e,t,n)=>{if(!t||!ge(e))return n;const r=(Ul(t)?[t]:zu(t)).reduce((o,i)=>Ue(o)?o:o[i],e);return ve(r)||r===e?ve(e[t])?n:e[t]:r},it=e=>typeof e=="boolean",ee=(e,t,n)=>{let r=-1;const o=Ul(t)?[t]:zu(t),i=o.length,l=i-1;for(;++r<i;){const s=o[r];let a=n;if(r!==l){const u=e[s];a=ge(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=a,e=e[s]}};const pl={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Tt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Xt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},ju=R.createContext(null);ju.displayName="HookFormContext";const Vu=()=>R.useContext(ju),nC=e=>{const{children:t,...n}=e;return R.createElement(ju.Provider,{value:n},t)};var Hm=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const l=i;return t._proxyFormState[l]!==Tt.all&&(t._proxyFormState[l]=!r||Tt.all),n&&(n[l]=!0),e[l]}});return o};const Uu=typeof window<"u"?R.useLayoutEffect:R.useEffect;function WE(e){const t=Vu(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[l,s]=R.useState(n._formState),a=R.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Uu(()=>n._subscribe({name:o,formState:a.current,exact:i,callback:u=>{!r&&s({...n._formState,...u})}}),[o,r,i]),R.useEffect(()=>{a.current.isValid&&n._setValid(!0)},[n]),R.useMemo(()=>Hm(l,n,a.current,!1),[l,n])}var Vt=e=>typeof e=="string",Wm=(e,t,n,r,o)=>Vt(e)?(r&&t.watch.add(e),M(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),M(n,i))):(r&&(t.watchAll=!0),n),Ra=e=>Ue(e)||!Vm(e);function Jt(e,t,n=new WeakSet){if(Ra(e)||Ra(t))return e===t;if(Hn(e)&&Hn(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const l=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const s=t[i];if(Hn(l)&&Hn(s)||ge(l)&&ge(s)||Array.isArray(l)&&Array.isArray(s)?!Jt(l,s,n):l!==s)return!1}}return!0}function YE(e){const t=Vu(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:l,compute:s}=e||{},a=R.useRef(o),u=R.useRef(s),d=R.useRef(void 0);u.current=s;const c=R.useMemo(()=>n._getWatch(r,a.current),[n,r]),[m,g]=R.useState(u.current?u.current(c):c);return Uu(()=>n._subscribe({name:r,formState:{values:!0},exact:l,callback:x=>{if(!i){const y=Wm(r,n._names,x.values||n._formValues,!1,a.current);if(u.current){const S=u.current(y);Jt(S,d.current)||(g(S),d.current=S)}else g(y)}}}),[n,i,r,l]),R.useEffect(()=>n._removeUnmounted()),m}function QE(e){const t=Vu(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i,defaultValue:l}=e,s=Bm(o._names.array,n),a=R.useMemo(()=>M(o._formValues,n,M(o._defaultValues,n,l)),[o,n,l]),u=YE({control:o,name:n,defaultValue:a,exact:!0}),d=WE({control:o,name:n,exact:!0}),c=R.useRef(e),m=R.useRef(o.register(n,{...e.rules,value:u,...it(e.disabled)?{disabled:e.disabled}:{}}));c.current=e;const g=R.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!M(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!M(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!M(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!M(d.validatingFields,n)},error:{enumerable:!0,get:()=>M(d.errors,n)}}),[d,n]),x=R.useCallback(p=>m.current.onChange({target:{value:Um(p),name:n},type:pl.CHANGE}),[n]),y=R.useCallback(()=>m.current.onBlur({target:{value:M(o._formValues,n),name:n},type:pl.BLUR}),[n,o._formValues]),S=R.useCallback(p=>{const v=M(o._fields,n);v&&p&&(v._f.ref={focus:()=>p.focus&&p.focus(),select:()=>p.select&&p.select(),setCustomValidity:E=>p.setCustomValidity(E),reportValidity:()=>p.reportValidity()})},[o._fields,n]),h=R.useMemo(()=>({name:n,value:u,...it(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:x,onBlur:y,ref:S}),[n,r,d.disabled,x,y,S,u]);return R.useEffect(()=>{const p=o._options.shouldUnregister||i;o.register(n,{...c.current.rules,...it(c.current.disabled)?{disabled:c.current.disabled}:{}});const v=(E,k)=>{const N=M(o._fields,E);N&&N._f&&(N._f.mount=k)};if(v(n,!0),p){const E=Ee(M(o._options.defaultValues,n));ee(o._defaultValues,n,E),ve(M(o._formValues,n))&&ee(o._formValues,n,E)}return!s&&o.register(n),()=>{(s?p&&!o._state.action:p)?o.unregister(n):v(n,!1)}},[n,o,s,i]),R.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),R.useMemo(()=>({field:h,formState:d,fieldState:g}),[h,d,g])}const rC=e=>e.render(QE(e));var Bu=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},go=e=>Array.isArray(e)?e:[e],Md=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},Qe=e=>ge(e)&&!Object.keys(e).length,Hu=e=>e.type==="file",Dt=e=>typeof e=="function",hl=e=>{if(!bu)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ym=e=>e.type==="select-multiple",Wu=e=>e.type==="radio",KE=e=>Wu(e)||Ko(e),Rs=e=>hl(e)&&e.isConnected;function XE(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=ve(e)?r++:e[t[r++]];return e}function GE(e){for(const t in e)if(e.hasOwnProperty(t)&&!ve(e[t]))return!1;return!0}function we(e,t){const n=Array.isArray(t)?t:Ul(t)?[t]:zu(t),r=n.length===1?e:XE(e,n),o=n.length-1,i=n[o];return r&&delete r[i],o!==0&&(ge(r)&&Qe(r)||Array.isArray(r)&&GE(r))&&we(e,n.slice(0,-1)),e}var Qm=e=>{for(const t in e)if(Dt(e[t]))return!0;return!1};function ml(e,t={}){const n=Array.isArray(e);if(ge(e)||n)for(const r in e)Array.isArray(e[r])||ge(e[r])&&!Qm(e[r])?(t[r]=Array.isArray(e[r])?[]:{},ml(e[r],t[r])):Ue(e[r])||(t[r]=!0);return t}function Km(e,t,n){const r=Array.isArray(e);if(ge(e)||r)for(const o in e)Array.isArray(e[o])||ge(e[o])&&!Qm(e[o])?ve(t)||Ra(n[o])?n[o]=Array.isArray(e[o])?ml(e[o],[]):{...ml(e[o])}:Km(e[o],Ue(t)?{}:t[o],n[o]):n[o]=!Jt(e[o],t[o]);return n}var no=(e,t)=>Km(e,t,ml(t));const Fd={value:!1,isValid:!1},Id={value:!0,isValid:!0};var Xm=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ve(e[0].attributes.value)?ve(e[0].value)||e[0].value===""?Id:{value:e[0].value,isValid:!0}:Id:Fd}return Fd},Gm=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ve(e)?e:t?e===""?NaN:e&&+e:n&&Vt(e)?new Date(e):r?r(e):e;const bd={isValid:!1,value:null};var Zm=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,bd):bd;function $d(e){const t=e.ref;return Hu(t)?t.files:Wu(t)?Zm(e.refs).value:Ym(t)?[...t.selectedOptions].map(({value:n})=>n):Ko(t)?Xm(e.refs).value:Gm(ve(t.value)?e.ref.value:t.value,e)}var ZE=(e,t,n,r)=>{const o={};for(const i of e){const l=M(t,i);l&&ee(o,i,l._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},vl=e=>e instanceof RegExp,ro=e=>ve(e)?e:vl(e)?e.source:ge(e)?vl(e.value)?e.value.source:e.value:e,zd=e=>({isOnSubmit:!e||e===Tt.onSubmit,isOnBlur:e===Tt.onBlur,isOnChange:e===Tt.onChange,isOnAll:e===Tt.all,isOnTouch:e===Tt.onTouched});const jd="AsyncFunction";var JE=e=>!!e&&!!e.validate&&!!(Dt(e.validate)&&e.validate.constructor.name===jd||ge(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===jd)),qE=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Vd=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const wo=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=M(e,o);if(i){const{_f:l,...s}=i;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],o)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(wo(s,t))break}else if(ge(s)&&wo(s,t))break}}};function Ud(e,t,n){const r=M(e,n);if(r||Ul(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),l=M(t,i),s=M(e,i);if(l&&!Array.isArray(l)&&n!==i)return{name:n};if(s&&s.type)return{name:i,error:s};if(s&&s.root&&s.root.type)return{name:`${i}.root`,error:s.root};o.pop()}return{name:n}}var eS=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return Qe(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(l=>t[l]===(!r||Tt.all))},tS=(e,t,n)=>!e||!t||e===t||go(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),nS=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,rS=(e,t)=>!$u(M(e,t)).length&&we(e,t),oS=(e,t,n)=>{const r=go(M(e,n));return ee(r,"root",t[n]),ee(e,n,r),e},zi=e=>Vt(e);function Bd(e,t,n="validate"){if(zi(e)||Array.isArray(e)&&e.every(zi)||it(e)&&!e)return{type:n,message:zi(e)?e:"",ref:t}}var sr=e=>ge(e)&&!vl(e)?e:{value:e,message:""},Hd=async(e,t,n,r,o,i)=>{const{ref:l,refs:s,required:a,maxLength:u,minLength:d,min:c,max:m,pattern:g,validate:x,name:y,valueAsNumber:S,mount:h}=e._f,p=M(n,y);if(!h||t.has(y))return{};const v=s?s[0]:l,E=U=>{o&&v.reportValidity&&(v.setCustomValidity(it(U)?"":U||""),v.reportValidity())},k={},N=Wu(l),P=Ko(l),O=N||P,z=(S||Hu(l))&&ve(l.value)&&ve(p)||hl(l)&&l.value===""||p===""||Array.isArray(p)&&!p.length,b=Bu.bind(null,y,r,k),K=(U,V,G,ne=Xt.maxLength,j=Xt.minLength)=>{const Q=U?V:G;k[y]={type:U?ne:j,message:Q,ref:l,...b(U?ne:j,Q)}};if(i?!Array.isArray(p)||!p.length:a&&(!O&&(z||Ue(p))||it(p)&&!p||P&&!Xm(s).isValid||N&&!Zm(s).isValid)){const{value:U,message:V}=zi(a)?{value:!!a,message:a}:sr(a);if(U&&(k[y]={type:Xt.required,message:V,ref:v,...b(Xt.required,V)},!r))return E(V),k}if(!z&&(!Ue(c)||!Ue(m))){let U,V;const G=sr(m),ne=sr(c);if(!Ue(p)&&!isNaN(p)){const j=l.valueAsNumber||p&&+p;Ue(G.value)||(U=j>G.value),Ue(ne.value)||(V=j<ne.value)}else{const j=l.valueAsDate||new Date(p),Q=ie=>new Date(new Date().toDateString()+" "+ie),W=l.type=="time",he=l.type=="week";Vt(G.value)&&p&&(U=W?Q(p)>Q(G.value):he?p>G.value:j>new Date(G.value)),Vt(ne.value)&&p&&(V=W?Q(p)<Q(ne.value):he?p<ne.value:j<new Date(ne.value))}if((U||V)&&(K(!!U,G.message,ne.message,Xt.max,Xt.min),!r))return E(k[y].message),k}if((u||d)&&!z&&(Vt(p)||i&&Array.isArray(p))){const U=sr(u),V=sr(d),G=!Ue(U.value)&&p.length>+U.value,ne=!Ue(V.value)&&p.length<+V.value;if((G||ne)&&(K(G,U.message,V.message),!r))return E(k[y].message),k}if(g&&!z&&Vt(p)){const{value:U,message:V}=sr(g);if(vl(U)&&!p.match(U)&&(k[y]={type:Xt.pattern,message:V,ref:l,...b(Xt.pattern,V)},!r))return E(V),k}if(x){if(Dt(x)){const U=await x(p,n),V=Bd(U,v);if(V&&(k[y]={...V,...b(Xt.validate,V.message)},!r))return E(V.message),k}else if(ge(x)){let U={};for(const V in x){if(!Qe(U)&&!r)break;const G=Bd(await x[V](p,n),v,V);G&&(U={...G,...b(V,G.message)},E(G.message),r&&(k[y]=U))}if(!Qe(U)&&(k[y]={ref:v,...U},!r))return k}}return E(!0),k};const iS={mode:Tt.onSubmit,reValidateMode:Tt.onChange,shouldFocusError:!0};function lS(e={}){let t={...iS,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Dt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=ge(t.defaultValues)||ge(t.values)?Ee(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Ee(o),l={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},a,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let c={...d};const m={array:Md(),state:Md()},g=t.criteriaMode===Tt.all,x=w=>C=>{clearTimeout(u),u=setTimeout(w,C)},y=async w=>{if(!t.disabled&&(d.isValid||c.isValid||w)){const C=t.resolver?Qe((await P()).errors):await z(r,!0);C!==n.isValid&&m.state.next({isValid:C})}},S=(w,C)=>{!t.disabled&&(d.isValidating||d.validatingFields||c.isValidating||c.validatingFields)&&((w||Array.from(s.mount)).forEach(_=>{_&&(C?ee(n.validatingFields,_,C):we(n.validatingFields,_))}),m.state.next({validatingFields:n.validatingFields,isValidating:!Qe(n.validatingFields)}))},h=(w,C=[],_,L,A=!0,D=!0)=>{if(L&&_&&!t.disabled){if(l.action=!0,D&&Array.isArray(M(r,w))){const $=_(M(r,w),L.argA,L.argB);A&&ee(r,w,$)}if(D&&Array.isArray(M(n.errors,w))){const $=_(M(n.errors,w),L.argA,L.argB);A&&ee(n.errors,w,$),rS(n.errors,w)}if((d.touchedFields||c.touchedFields)&&D&&Array.isArray(M(n.touchedFields,w))){const $=_(M(n.touchedFields,w),L.argA,L.argB);A&&ee(n.touchedFields,w,$)}(d.dirtyFields||c.dirtyFields)&&(n.dirtyFields=no(o,i)),m.state.next({name:w,isDirty:K(w,C),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ee(i,w,C)},p=(w,C)=>{ee(n.errors,w,C),m.state.next({errors:n.errors})},v=w=>{n.errors=w,m.state.next({errors:n.errors,isValid:!1})},E=(w,C,_,L)=>{const A=M(r,w);if(A){const D=M(i,w,ve(_)?M(o,w):_);ve(D)||L&&L.defaultChecked||C?ee(i,w,C?D:$d(A._f)):G(w,D),l.mount&&y()}},k=(w,C,_,L,A)=>{let D=!1,$=!1;const Z={name:w};if(!t.disabled){if(!_||L){(d.isDirty||c.isDirty)&&($=n.isDirty,n.isDirty=Z.isDirty=K(),D=$!==Z.isDirty);const q=Jt(M(o,w),C);$=!!M(n.dirtyFields,w),q?we(n.dirtyFields,w):ee(n.dirtyFields,w,!0),Z.dirtyFields=n.dirtyFields,D=D||(d.dirtyFields||c.dirtyFields)&&$!==!q}if(_){const q=M(n.touchedFields,w);q||(ee(n.touchedFields,w,_),Z.touchedFields=n.touchedFields,D=D||(d.touchedFields||c.touchedFields)&&q!==_)}D&&A&&m.state.next(Z)}return D?Z:{}},N=(w,C,_,L)=>{const A=M(n.errors,w),D=(d.isValid||c.isValid)&&it(C)&&n.isValid!==C;if(t.delayError&&_?(a=x(()=>p(w,_)),a(t.delayError)):(clearTimeout(u),a=null,_?ee(n.errors,w,_):we(n.errors,w)),(_?!Jt(A,_):A)||!Qe(L)||D){const $={...L,...D&&it(C)?{isValid:C}:{},errors:n.errors,name:w};n={...n,...$},m.state.next($)}},P=async w=>{S(w,!0);const C=await t.resolver(i,t.context,ZE(w||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return S(w),C},O=async w=>{const{errors:C}=await P(w);if(w)for(const _ of w){const L=M(C,_);L?ee(n.errors,_,L):we(n.errors,_)}else n.errors=C;return C},z=async(w,C,_={valid:!0})=>{for(const L in w){const A=w[L];if(A){const{_f:D,...$}=A;if(D){const Z=s.array.has(D.name),q=A._f&&JE(A._f);q&&d.validatingFields&&S([L],!0);const Le=await Hd(A,s.disabled,i,g,t.shouldUseNativeValidation&&!C,Z);if(q&&d.validatingFields&&S([L]),Le[D.name]&&(_.valid=!1,C))break;!C&&(M(Le,D.name)?Z?oS(n.errors,Le,D.name):ee(n.errors,D.name,Le[D.name]):we(n.errors,D.name))}!Qe($)&&await z($,C,_)}}return _.valid},b=()=>{for(const w of s.unMount){const C=M(r,w);C&&(C._f.refs?C._f.refs.every(_=>!Rs(_)):!Rs(C._f.ref))&&tt(w)}s.unMount=new Set},K=(w,C)=>!t.disabled&&(w&&C&&ee(i,w,C),!Jt(ie(),o)),U=(w,C,_)=>Wm(w,s,{...l.mount?i:ve(C)?o:Vt(w)?{[w]:C}:C},_,C),V=w=>$u(M(l.mount?i:o,w,t.shouldUnregister?M(o,w,[]):[])),G=(w,C,_={})=>{const L=M(r,w);let A=C;if(L){const D=L._f;D&&(!D.disabled&&ee(i,w,Gm(C,D)),A=hl(D.ref)&&Ue(C)?"":C,Ym(D.ref)?[...D.ref.options].forEach($=>$.selected=A.includes($.value)):D.refs?Ko(D.ref)?D.refs.forEach($=>{(!$.defaultChecked||!$.disabled)&&(Array.isArray(A)?$.checked=!!A.find(Z=>Z===$.value):$.checked=A===$.value||!!A)}):D.refs.forEach($=>$.checked=$.value===A):Hu(D.ref)?D.ref.value="":(D.ref.value=A,D.ref.type||m.state.next({name:w,values:Ee(i)})))}(_.shouldDirty||_.shouldTouch)&&k(w,A,_.shouldTouch,_.shouldDirty,!0),_.shouldValidate&&he(w)},ne=(w,C,_)=>{for(const L in C){if(!C.hasOwnProperty(L))return;const A=C[L],D=w+"."+L,$=M(r,D);(s.array.has(w)||ge(A)||$&&!$._f)&&!Hn(A)?ne(D,A,_):G(D,A,_)}},j=(w,C,_={})=>{const L=M(r,w),A=s.array.has(w),D=Ee(C);ee(i,w,D),A?(m.array.next({name:w,values:Ee(i)}),(d.isDirty||d.dirtyFields||c.isDirty||c.dirtyFields)&&_.shouldDirty&&m.state.next({name:w,dirtyFields:no(o,i),isDirty:K(w,D)})):L&&!L._f&&!Ue(D)?ne(w,D,_):G(w,D,_),Vd(w,s)&&m.state.next({...n,name:w}),m.state.next({name:l.mount?w:void 0,values:Ee(i)})},Q=async w=>{l.mount=!0;const C=w.target;let _=C.name,L=!0;const A=M(r,_),D=q=>{L=Number.isNaN(q)||Hn(q)&&isNaN(q.getTime())||Jt(q,M(i,_,q))},$=zd(t.mode),Z=zd(t.reValidateMode);if(A){let q,Le;const Et=C.type?$d(A._f):Um(w),St=w.type===pl.BLUR||w.type===pl.FOCUS_OUT,fn=!qE(A._f)&&!t.resolver&&!M(n.errors,_)&&!A._f.deps||nS(St,M(n.touchedFields,_),n.isSubmitted,Z,$),Hr=Vd(_,s,St);ee(i,_,Et),St?(!C||!C.readOnly)&&(A._f.onBlur&&A._f.onBlur(w),a&&a(0)):A._f.onChange&&A._f.onChange(w);const Wr=k(_,Et,St),Xo=!Qe(Wr)||Hr;if(!St&&m.state.next({name:_,type:w.type,values:Ee(i)}),fn)return(d.isValid||c.isValid)&&(t.mode==="onBlur"?St&&y():St||y()),Xo&&m.state.next({name:_,...Hr?{}:Wr});if(!St&&Hr&&m.state.next({...n}),t.resolver){const{errors:Yr}=await P([_]);if(D(Et),L){const Bl=Ud(n.errors,r,_),rr=Ud(Yr,r,Bl.name||_);q=rr.error,_=rr.name,Le=Qe(Yr)}}else S([_],!0),q=(await Hd(A,s.disabled,i,g,t.shouldUseNativeValidation))[_],S([_]),D(Et),L&&(q?Le=!1:(d.isValid||c.isValid)&&(Le=await z(r,!0)));L&&(A._f.deps&&he(A._f.deps),N(_,Le,q,Wr))}},W=(w,C)=>{if(M(n.errors,C)&&w.focus)return w.focus(),1},he=async(w,C={})=>{let _,L;const A=go(w);if(t.resolver){const D=await O(ve(w)?w:A);_=Qe(D),L=w?!A.some($=>M(D,$)):_}else w?(L=(await Promise.all(A.map(async D=>{const $=M(r,D);return await z($&&$._f?{[D]:$}:$)}))).every(Boolean),!(!L&&!n.isValid)&&y()):L=_=await z(r);return m.state.next({...!Vt(w)||(d.isValid||c.isValid)&&_!==n.isValid?{}:{name:w},...t.resolver||!w?{isValid:_}:{},errors:n.errors}),C.shouldFocus&&!L&&wo(r,W,w?A:s.mount),L},ie=w=>{const C={...l.mount?i:o};return ve(w)?C:Vt(w)?M(C,w):w.map(_=>M(C,_))},je=(w,C)=>({invalid:!!M((C||n).errors,w),isDirty:!!M((C||n).dirtyFields,w),error:M((C||n).errors,w),isValidating:!!M(n.validatingFields,w),isTouched:!!M((C||n).touchedFields,w)}),dn=w=>{w&&go(w).forEach(C=>we(n.errors,C)),m.state.next({errors:w?n.errors:{}})},H=(w,C,_)=>{const L=(M(r,w,{_f:{}})._f||{}).ref,A=M(n.errors,w)||{},{ref:D,message:$,type:Z,...q}=A;ee(n.errors,w,{...q,...C,ref:L}),m.state.next({name:w,errors:n.errors,isValid:!1}),_&&_.shouldFocus&&L&&L.focus&&L.focus()},le=(w,C)=>Dt(w)?m.state.subscribe({next:_=>"values"in _&&w(U(void 0,C),_)}):U(w,C,!0),re=w=>m.state.subscribe({next:C=>{tS(w.name,C.name,w.exact)&&eS(C,w.formState||d,Kt,w.reRenderRoot)&&w.callback({values:{...i},...n,...C,defaultValues:o})}}).unsubscribe,Ae=w=>(l.mount=!0,c={...c,...w.formState},re({...w,formState:c})),tt=(w,C={})=>{for(const _ of w?go(w):s.mount)s.mount.delete(_),s.array.delete(_),C.keepValue||(we(r,_),we(i,_)),!C.keepError&&we(n.errors,_),!C.keepDirty&&we(n.dirtyFields,_),!C.keepTouched&&we(n.touchedFields,_),!C.keepIsValidating&&we(n.validatingFields,_),!t.shouldUnregister&&!C.keepDefaultValue&&we(o,_);m.state.next({values:Ee(i)}),m.state.next({...n,...C.keepDirty?{isDirty:K()}:{}}),!C.keepIsValid&&y()},J=({disabled:w,name:C})=>{(it(w)&&l.mount||w||s.disabled.has(C))&&(w?s.disabled.add(C):s.disabled.delete(C))},nt=(w,C={})=>{let _=M(r,w);const L=it(C.disabled)||it(t.disabled);return ee(r,w,{..._||{},_f:{..._&&_._f?_._f:{ref:{name:w}},name:w,mount:!0,...C}}),s.mount.add(w),_?J({disabled:it(C.disabled)?C.disabled:t.disabled,name:w}):E(w,!0,C.value),{...L?{disabled:C.disabled||t.disabled}:{},...t.progressive?{required:!!C.required,min:ro(C.min),max:ro(C.max),minLength:ro(C.minLength),maxLength:ro(C.maxLength),pattern:ro(C.pattern)}:{},name:w,onChange:Q,onBlur:Q,ref:A=>{if(A){nt(w,C),_=M(r,w);const D=ve(A.value)&&A.querySelectorAll&&A.querySelectorAll("input,select,textarea")[0]||A,$=KE(D),Z=_._f.refs||[];if($?Z.find(q=>q===D):D===_._f.ref)return;ee(r,w,{_f:{..._._f,...$?{refs:[...Z.filter(Rs),D,...Array.isArray(M(o,w))?[{}]:[]],ref:{type:D.type,name:w}}:{ref:D}}}),E(w,!1,void 0,D)}else _=M(r,w,{}),_._f&&(_._f.mount=!1),(t.shouldUnregister||C.shouldUnregister)&&!(Bm(s.array,w)&&l.action)&&s.unMount.add(w)}}},xt=()=>t.shouldFocusError&&wo(r,W,s.mount),Wt=w=>{it(w)&&(m.state.next({disabled:w}),wo(r,(C,_)=>{const L=M(r,_);L&&(C.disabled=L._f.disabled||w,Array.isArray(L._f.refs)&&L._f.refs.forEach(A=>{A.disabled=L._f.disabled||w}))},0,!1))},ft=(w,C)=>async _=>{let L;_&&(_.preventDefault&&_.preventDefault(),_.persist&&_.persist());let A=Ee(i);if(m.state.next({isSubmitting:!0}),t.resolver){const{errors:D,values:$}=await P();n.errors=D,A=Ee($)}else await z(r);if(s.disabled.size)for(const D of s.disabled)we(A,D);if(we(n.errors,"root"),Qe(n.errors)){m.state.next({errors:{}});try{await w(A,_)}catch(D){L=D}}else C&&await C({...n.errors},_),xt(),setTimeout(xt);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Qe(n.errors)&&!L,submitCount:n.submitCount+1,errors:n.errors}),L)throw L},Yt=(w,C={})=>{M(r,w)&&(ve(C.defaultValue)?j(w,Ee(M(o,w))):(j(w,C.defaultValue),ee(o,w,Ee(C.defaultValue))),C.keepTouched||we(n.touchedFields,w),C.keepDirty||(we(n.dirtyFields,w),n.isDirty=C.defaultValue?K(w,Ee(M(o,w))):K()),C.keepError||(we(n.errors,w),d.isValid&&y()),m.state.next({...n}))},Qt=(w,C={})=>{const _=w?Ee(w):o,L=Ee(_),A=Qe(w),D=A?o:L;if(C.keepDefaultValues||(o=_),!C.keepValues){if(C.keepDirtyValues){const $=new Set([...s.mount,...Object.keys(no(o,i))]);for(const Z of Array.from($))M(n.dirtyFields,Z)?ee(D,Z,M(i,Z)):j(Z,M(D,Z))}else{if(bu&&ve(w))for(const $ of s.mount){const Z=M(r,$);if(Z&&Z._f){const q=Array.isArray(Z._f.refs)?Z._f.refs[0]:Z._f.ref;if(hl(q)){const Le=q.closest("form");if(Le){Le.reset();break}}}}if(C.keepFieldsRef)for(const $ of s.mount)j($,M(D,$));else r={}}i=t.shouldUnregister?C.keepDefaultValues?Ee(o):{}:Ee(D),m.array.next({values:{...D}}),m.state.next({values:{...D}})}s={mount:C.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!d.isValid||!!C.keepIsValid||!!C.keepDirtyValues,l.watch=!!t.shouldUnregister,m.state.next({submitCount:C.keepSubmitCount?n.submitCount:0,isDirty:A?!1:C.keepDirty?n.isDirty:!!(C.keepDefaultValues&&!Jt(w,o)),isSubmitted:C.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:A?{}:C.keepDirtyValues?C.keepDefaultValues&&i?no(o,i):n.dirtyFields:C.keepDefaultValues&&w?no(o,w):C.keepDirty?n.dirtyFields:{},touchedFields:C.keepTouched?n.touchedFields:{},errors:C.keepErrors?n.errors:{},isSubmitSuccessful:C.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},tr=(w,C)=>Qt(Dt(w)?w(i):w,C),nr=(w,C={})=>{const _=M(r,w),L=_&&_._f;if(L){const A=L.refs?L.refs[0]:L.ref;A.focus&&(A.focus(),C.shouldSelect&&Dt(A.select)&&A.select())}},Kt=w=>{n={...n,...w}},Pe={control:{register:nt,unregister:tt,getFieldState:je,handleSubmit:ft,setError:H,_subscribe:re,_runSchema:P,_focusError:xt,_getWatch:U,_getDirty:K,_setValid:y,_setFieldArray:h,_setDisabledField:J,_setErrors:v,_getFieldArray:V,_reset:Qt,_resetDefaultValues:()=>Dt(t.defaultValues)&&t.defaultValues().then(w=>{tr(w,t.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:b,_disableForm:Wt,_subjects:m,_proxyFormState:d,get _fields(){return r},get _formValues(){return i},get _state(){return l},set _state(w){l=w},get _defaultValues(){return o},get _names(){return s},set _names(w){s=w},get _formState(){return n},get _options(){return t},set _options(w){t={...t,...w}}},subscribe:Ae,trigger:he,register:nt,handleSubmit:ft,watch:le,setValue:j,getValues:ie,reset:tr,resetField:Yt,clearErrors:dn,unregister:tt,setError:H,setFocus:nr,getFieldState:je};return{...Pe,formControl:Pe}}function oC(e={}){const t=R.useRef(void 0),n=R.useRef(void 0),[r,o]=R.useState({isDirty:!1,isValidating:!1,isLoading:Dt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Dt(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Dt(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...s}=lS(e);t.current={...s,formState:r}}const i=t.current.control;return i._options=e,Uu(()=>{const l=i._subscribe({formState:i._proxyFormState,callback:()=>o({...i._formState}),reRenderRoot:!0});return o(s=>({...s,isReady:!0})),i._formState.isReady=!0,l},[i]),R.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),R.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),R.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),R.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),R.useEffect(()=>{if(i._proxyFormState.isDirty){const l=i._getDirty();l!==r.isDirty&&i._subjects.state.next({isDirty:l})}},[i,r.isDirty]),R.useEffect(()=>{e.values&&!Jt(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),n.current=e.values,o(l=>({...l}))):i._resetDefaultValues()},[i,e.values]),R.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=Hm(r,i),t.current}var sS="Label",Jm=f.forwardRef((e,t)=>F.jsx(ze.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Jm.displayName=sS;var iC=Jm;const Wd=(e,t,n)=>{if(e&&"reportValidity"in e){const r=M(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Pa=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Wd(r.ref,n,e):r&&r.refs&&r.refs.forEach(o=>Wd(o,n,e))}},Yd=(e,t)=>{t.shouldUseNativeValidation&&Pa(e,t);const n={};for(const r in e){const o=M(t.fields,r),i=Object.assign(e[r]||{},{ref:o&&o.ref});if(aS(t.names||Object.keys(e),r)){const l=Object.assign({},M(n,r));ee(l,"root",i),ee(n,r,l)}else ee(n,r,i)}return n},aS=(e,t)=>{const n=Qd(t);return e.some(r=>Qd(r).match(`^${n}\\.\\d+`))};function Qd(e){return e.replace(/\]|\[/g,"")}function Kd(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function uS(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,l=r.path.join(".");if(!n[l])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[l]={message:s.message,type:s.code}}else n[l]={message:i,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(d){return d.errors.forEach(function(c){return e.push(c)})}),t){var a=n[l].types,u=a&&a[r.code];n[l]=Bu(l,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function cS(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,l=r.path.join(".");if(!n[l])if(r.code==="invalid_union"&&r.errors.length>0){var s=r.errors[0][0];n[l]={message:s.message,type:s.code}}else n[l]={message:i,type:o};if(r.code==="invalid_union"&&r.errors.forEach(function(d){return d.forEach(function(c){return e.push(c)})}),t){var a=n[l].types,u=a&&a[r.code];n[l]=Bu(l,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function lC(e,t,n){if(n===void 0&&(n={}),function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def}(e))return function(r,o,i){try{return Promise.resolve(Kd(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return i.shouldUseNativeValidation&&Pa({},i),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if(function(s){return Array.isArray(s==null?void 0:s.issues)}(l))return{values:{},errors:Yd(uS(l.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw l}))}catch(l){return Promise.reject(l)}};if(function(r){return"_zod"in r&&typeof r._zod=="object"}(e))return function(r,o,i){try{return Promise.resolve(Kd(function(){return Promise.resolve((n.mode==="sync"?pv:hv)(e,r,t)).then(function(l){return i.shouldUseNativeValidation&&Pa({},i),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if(function(s){return s instanceof mv}(l))return{values:{},errors:Yd(cS(l.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw l}))}catch(l){return Promise.reject(l)}};throw new Error("Invalid input: not a Zod schema")}export{vS as $,JS as A,zx as B,Ux as C,Hx as D,RS as E,FS as F,kS as G,AS as H,iC as I,Vu as J,nC as K,kh as L,rC as M,oC as N,Vx as O,jx as P,lC as Q,zS as R,$S as S,xS as T,LS as U,TS as V,_S as W,bS as X,IS as Y,DS as Z,PS as _,sm as a,T0 as a0,mS as a1,qu as a2,R as a3,yS as a4,Bx as b,ES as c,SS as d,$x as e,WS as f,US as g,BS as h,HS as i,F as j,OS as k,bn as l,NS as m,MS as n,GS as o,XS as p,ZS as q,f as r,eC as s,wS as t,CS as u,tC as v,qS as w,QS as x,KS as y,gS as z};
|
|
189
|
-
//# sourceMappingURL=react-vendor-CP-QpYlg.js.map
|