xiaozhi-client 1.9.2 → 1.9.3-beta.1
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 +4 -4
- package/apps/frontend/dist/assets/form-utils-h64o2Nyg.js +2 -0
- package/apps/frontend/dist/assets/form-utils-h64o2Nyg.js.map +1 -0
- package/apps/frontend/dist/assets/index-88NfCOo9.js +50 -0
- package/apps/frontend/dist/assets/index-88NfCOo9.js.map +1 -0
- package/apps/frontend/dist/assets/index-P6Zq3MZF.css +1 -0
- package/apps/frontend/dist/assets/radix-ui-BA32w1ww.js.map +1 -1
- package/apps/frontend/dist/assets/react-vendor-DrjkXih1.js +319 -0
- package/apps/frontend/dist/assets/react-vendor-DrjkXih1.js.map +1 -0
- package/apps/frontend/dist/assets/utils-CiPelQLP.js +2 -0
- package/apps/frontend/dist/assets/utils-CiPelQLP.js.map +1 -0
- package/apps/frontend/dist/assets/{vendor-DvFnRBMT.js → vendor-DK9yaMt3.js} +2 -2
- package/apps/frontend/dist/assets/vendor-DK9yaMt3.js.map +1 -0
- package/apps/frontend/dist/index.html +6 -6
- package/dist/WebServerStandalone.js +16 -21
- package/dist/WebServerStandalone.js.map +1 -1
- package/dist/cli.js +17 -25
- package/dist/cli.js.map +1 -1
- package/dist/mcpServerProxy.d.ts +1 -1
- package/dist/mcpServerProxy.js +13 -13
- package/dist/mcpServerProxy.js.map +1 -1
- package/dist/package.json +25 -18
- package/docs/arch/{cache.md → cache.mdx} +62 -95
- package/docs/changelog.mdx +617 -0
- package/docs/development/docker-build.mdx +256 -0
- package/docs/development/todo__release-guide.md +5 -5
- package/docs/docs.json +6 -1
- package/docs/python-dependencies.md +2 -2
- package/docs/usage/docker.mdx +4 -4
- package/package.json +25 -18
- package/apps/frontend/dist/assets/form-utils-wyhL6gg0.js +0 -24
- package/apps/frontend/dist/assets/form-utils-wyhL6gg0.js.map +0 -1
- package/apps/frontend/dist/assets/index-COfJftUA.css +0 -1
- package/apps/frontend/dist/assets/index-ukaaLbQN.js +0 -50
- package/apps/frontend/dist/assets/index-ukaaLbQN.js.map +0 -1
- package/apps/frontend/dist/assets/react-vendor-B6Uf_8Kw.js +0 -319
- package/apps/frontend/dist/assets/react-vendor-B6Uf_8Kw.js.map +0 -1
- package/apps/frontend/dist/assets/utils-D0kRQKVW.js +0 -2
- package/apps/frontend/dist/assets/utils-D0kRQKVW.js.map +0 -1
- package/apps/frontend/dist/assets/vendor-DvFnRBMT.js.map +0 -1
- package/dist/templates/docker/mcpServers/calculator.js +0 -106
- package/dist/templates/docker/mcpServers/datetime.js +0 -390
- package/dist/templates/docker/package.json +0 -13
- package/dist/templates/docker/requirements.txt +0 -16
- package/dist/templates/docker/xiaozhi.config.json +0 -21
- package/templates/docker/mcpServers/calculator.js +0 -106
- package/templates/docker/mcpServers/datetime.js +0 -390
- package/templates/docker/package.json +0 -13
- package/templates/docker/requirements.txt +0 -16
- package/templates/docker/xiaozhi.config.json +0 -21
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import{c as Q,a as zc}from"./radix-ui-BA32w1ww.js";import{s as Gy,_ as Rn,a as Bf,g as Qy,b as Xy,h as Uf,c as Zy,o as qy,d as Jy,f as eg,e as tg,i as ng,l as rg,j as Bc,k as og}from"./vendor-DK9yaMt3.js";import{p as ig,a as sg,$ as lg}from"./form-utils-h64o2Nyg.js";function ag(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 Hf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wf={exports:{}},Is={},Kf={exports:{}},te={};/**
|
|
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 ni=Symbol.for("react.element"),ug=Symbol.for("react.portal"),cg=Symbol.for("react.fragment"),dg=Symbol.for("react.strict_mode"),fg=Symbol.for("react.profiler"),pg=Symbol.for("react.provider"),hg=Symbol.for("react.context"),mg=Symbol.for("react.forward_ref"),vg=Symbol.for("react.suspense"),yg=Symbol.for("react.memo"),gg=Symbol.for("react.lazy"),Uc=Symbol.iterator;function wg(e){return e===null||typeof e!="object"?null:(e=Uc&&e[Uc]||e["@@iterator"],typeof e=="function"?e:null)}var Yf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gf=Object.assign,Qf={};function Jr(e,t,n){this.props=e,this.context=t,this.refs=Qf,this.updater=n||Yf}Jr.prototype.isReactComponent={};Jr.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")};Jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xf(){}Xf.prototype=Jr.prototype;function vu(e,t,n){this.props=e,this.context=t,this.refs=Qf,this.updater=n||Yf}var yu=vu.prototype=new Xf;yu.constructor=vu;Gf(yu,Jr.prototype);yu.isPureReactComponent=!0;var Hc=Array.isArray,Zf=Object.prototype.hasOwnProperty,gu={current:null},qf={key:!0,ref:!0,__self:!0,__source:!0};function Jf(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Zf.call(t,r)&&!qf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:ni,type:e,key:i,ref:s,props:o,_owner:gu.current}}function xg(e,t){return{$$typeof:ni,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function wu(e){return typeof e=="object"&&e!==null&&e.$$typeof===ni}function Sg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Wc=/\/+/g;function pl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Sg(""+e.key):t.toString(36)}function Fi(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ni:case ug:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+pl(s,0):r,Hc(o)?(n="",e!=null&&(n=e.replace(Wc,"$&/")+"/"),Fi(o,t,n,"",function(u){return u})):o!=null&&(wu(o)&&(o=xg(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Wc,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Hc(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+pl(i,l);s+=Fi(i,t,n,a,o)}else if(a=wg(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+pl(i,l++),s+=Fi(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 s}function hi(e,t,n){if(e==null)return e;var r=[],o=0;return Fi(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Eg(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 tt={current:null},$i={transition:null},Cg={ReactCurrentDispatcher:tt,ReactCurrentBatchConfig:$i,ReactCurrentOwner:gu};function ep(){throw Error("act(...) is not supported in production builds of React.")}te.Children={map:hi,forEach:function(e,t,n){hi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return hi(e,function(){t++}),t},toArray:function(e){return hi(e,function(t){return t})||[]},only:function(e){if(!wu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Component=Jr;te.Fragment=cg;te.Profiler=fg;te.PureComponent=vu;te.StrictMode=dg;te.Suspense=vg;te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Cg;te.act=ep;te.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=Gf({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=gu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Zf.call(t,a)&&!qf.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:ni,type:e.type,key:o,ref:i,props:r,_owner:s}};te.createContext=function(e){return e={$$typeof:hg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:pg,_context:e},e.Consumer=e};te.createElement=Jf;te.createFactory=function(e){var t=Jf.bind(null,e);return t.type=e,t};te.createRef=function(){return{current:null}};te.forwardRef=function(e){return{$$typeof:mg,render:e}};te.isValidElement=wu;te.lazy=function(e){return{$$typeof:gg,_payload:{_status:-1,_result:e},_init:Eg}};te.memo=function(e,t){return{$$typeof:yg,type:e,compare:t===void 0?null:t}};te.startTransition=function(e){var t=$i.transition;$i.transition={};try{e()}finally{$i.transition=t}};te.unstable_act=ep;te.useCallback=function(e,t){return tt.current.useCallback(e,t)};te.useContext=function(e){return tt.current.useContext(e)};te.useDebugValue=function(){};te.useDeferredValue=function(e){return tt.current.useDeferredValue(e)};te.useEffect=function(e,t){return tt.current.useEffect(e,t)};te.useId=function(){return tt.current.useId()};te.useImperativeHandle=function(e,t,n){return tt.current.useImperativeHandle(e,t,n)};te.useInsertionEffect=function(e,t){return tt.current.useInsertionEffect(e,t)};te.useLayoutEffect=function(e,t){return tt.current.useLayoutEffect(e,t)};te.useMemo=function(e,t){return tt.current.useMemo(e,t)};te.useReducer=function(e,t,n){return tt.current.useReducer(e,t,n)};te.useRef=function(e){return tt.current.useRef(e)};te.useState=function(e){return tt.current.useState(e)};te.useSyncExternalStore=function(e,t,n){return tt.current.useSyncExternalStore(e,t,n)};te.useTransition=function(){return tt.current.useTransition()};te.version="18.3.1";Kf.exports=te;var d=Kf.exports;const T=Hf(d),xu=ag({__proto__:null,default:T},[d]);/**
|
|
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 kg=d,_g=Symbol.for("react.element"),Rg=Symbol.for("react.fragment"),Pg=Object.prototype.hasOwnProperty,Tg=kg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ng={key:!0,ref:!0,__self:!0,__source:!0};function tp(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Pg.call(t,r)&&!Ng.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:_g,type:e,key:i,ref:s,props:o,_owner:Tg.current}}Is.Fragment=Rg;Is.jsx=tp;Is.jsxs=tp;Wf.exports=Is;var R=Wf.exports,Kc={},np={exports:{}},wt={};/**
|
|
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 Ag=d,gt=Gy;function D(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 rp=new Set,Lo={};function pr(e,t){Hr(e,t),Hr(e+"Capture",t)}function Hr(e,t){for(Lo[e]=t,e=0;e<t.length;e++)rp.add(t[e])}var dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ia=Object.prototype.hasOwnProperty,Dg=/^[: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]*$/,Yc={},Gc={};function Ig(e){return ia.call(Gc,e)?!0:ia.call(Yc,e)?!1:Dg.test(e)?Gc[e]=!0:(Yc[e]=!0,!1)}function bg(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 Mg(e,t,n,r){if(t===null||typeof t>"u"||bg(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 nt(e,t,n,r,o,i,s){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=s}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new nt(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){He[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Su=/[\-:]([a-z])/g;function Eu(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(Su,Eu);He[t]=new nt(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(Su,Eu);He[t]=new nt(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(Su,Eu);He[t]=new nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new nt(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Cu(e,t,n,r){var o=He.hasOwnProperty(t)?He[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Mg(t,n,o,r)&&(n=null),r||o===null?Ig(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 vn=Ag.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,mi=Symbol.for("react.element"),Er=Symbol.for("react.portal"),Cr=Symbol.for("react.fragment"),ku=Symbol.for("react.strict_mode"),sa=Symbol.for("react.profiler"),op=Symbol.for("react.provider"),ip=Symbol.for("react.context"),_u=Symbol.for("react.forward_ref"),la=Symbol.for("react.suspense"),aa=Symbol.for("react.suspense_list"),Ru=Symbol.for("react.memo"),kn=Symbol.for("react.lazy"),sp=Symbol.for("react.offscreen"),Qc=Symbol.iterator;function fo(e){return e===null||typeof e!="object"?null:(e=Qc&&e[Qc]||e["@@iterator"],typeof e=="function"?e:null)}var _e=Object.assign,hl;function Eo(e){if(hl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);hl=t&&t[1]||""}return`
|
|
26
|
+
`+hl+e}var ml=!1;function vl(e,t){if(!e||ml)return"";ml=!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
|
+
`),s=o.length-1,l=i.length-1;1<=s&&0<=l&&o[s]!==i[l];)l--;for(;1<=s&&0<=l;s--,l--)if(o[s]!==i[l]){if(s!==1||l!==1)do if(s--,l--,0>l||o[s]!==i[l]){var a=`
|
|
29
|
+
`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{ml=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Eo(e):""}function Og(e){switch(e.tag){case 5:return Eo(e.type);case 16:return Eo("Lazy");case 13:return Eo("Suspense");case 19:return Eo("SuspenseList");case 0:case 2:case 15:return e=vl(e.type,!1),e;case 11:return e=vl(e.type.render,!1),e;case 1:return e=vl(e.type,!0),e;default:return""}}function ua(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 Cr:return"Fragment";case Er:return"Portal";case sa:return"Profiler";case ku:return"StrictMode";case la:return"Suspense";case aa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ip:return(e.displayName||"Context")+".Consumer";case op:return(e._context.displayName||"Context")+".Provider";case _u:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ru:return t=e.displayName||null,t!==null?t:ua(e.type)||"Memo";case kn:t=e._payload,e=e._init;try{return ua(e(t))}catch{}}return null}function Lg(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 ua(t);case 8:return t===ku?"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 Vn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fg(e){var t=lp(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(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vi(e){e._valueTracker||(e._valueTracker=Fg(e))}function ap(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function es(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 ca(e,t){var n=t.checked;return _e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Vn(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 up(e,t){t=t.checked,t!=null&&Cu(e,"checked",t,!1)}function da(e,t){up(e,t);var n=Vn(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")?fa(e,t.type,n):t.hasOwnProperty("defaultValue")&&fa(e,t.type,Vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Zc(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 fa(e,t,n){(t!=="number"||es(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Co=Array.isArray;function Or(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=""+Vn(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 pa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return _e({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function qc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(Co(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Vn(n)}}function cp(e,t){var n=Vn(t.value),r=Vn(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 Jc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function dp(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 ha(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?dp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var yi,fp=(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(yi=yi||document.createElement("div"),yi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=yi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Po={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},$g=["Webkit","ms","Moz","O"];Object.keys(Po).forEach(function(e){$g.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Po[t]=Po[e]})});function pp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Po.hasOwnProperty(e)&&Po[e]?(""+t).trim():t+"px"}function hp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=pp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var jg=_e({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 ma(e,t){if(t){if(jg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function va(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 ya=null;function Pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ga=null,Lr=null,Fr=null;function ed(e){if(e=ii(e)){if(typeof ga!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Fs(t),ga(e.stateNode,e.type,t))}}function mp(e){Lr?Fr?Fr.push(e):Fr=[e]:Lr=e}function vp(){if(Lr){var e=Lr,t=Fr;if(Fr=Lr=null,ed(e),t)for(e=0;e<t.length;e++)ed(t[e])}}function yp(e,t){return e(t)}function gp(){}var yl=!1;function wp(e,t,n){if(yl)return e(t,n);yl=!0;try{return yp(e,t,n)}finally{yl=!1,(Lr!==null||Fr!==null)&&(gp(),vp())}}function $o(e,t){var n=e.stateNode;if(n===null)return null;var r=Fs(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(D(231,t,typeof n));return n}var wa=!1;if(dn)try{var po={};Object.defineProperty(po,"passive",{get:function(){wa=!0}}),window.addEventListener("test",po,po),window.removeEventListener("test",po,po)}catch{wa=!1}function Vg(e,t,n,r,o,i,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var To=!1,ts=null,ns=!1,xa=null,zg={onError:function(e){To=!0,ts=e}};function Bg(e,t,n,r,o,i,s,l,a){To=!1,ts=null,Vg.apply(zg,arguments)}function Ug(e,t,n,r,o,i,s,l,a){if(Bg.apply(this,arguments),To){if(To){var u=ts;To=!1,ts=null}else throw Error(D(198));ns||(ns=!0,xa=u)}}function hr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function xp(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 td(e){if(hr(e)!==e)throw Error(D(188))}function Hg(e){var t=e.alternate;if(!t){if(t=hr(e),t===null)throw Error(D(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 td(o),e;if(i===r)return td(o),t;i=i.sibling}throw Error(D(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function Sp(e){return e=Hg(e),e!==null?Ep(e):null}function Ep(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ep(e);if(t!==null)return t;e=e.sibling}return null}var Cp=gt.unstable_scheduleCallback,nd=gt.unstable_cancelCallback,Wg=gt.unstable_shouldYield,Kg=gt.unstable_requestPaint,Ne=gt.unstable_now,Yg=gt.unstable_getCurrentPriorityLevel,Tu=gt.unstable_ImmediatePriority,kp=gt.unstable_UserBlockingPriority,rs=gt.unstable_NormalPriority,Gg=gt.unstable_LowPriority,_p=gt.unstable_IdlePriority,bs=null,Jt=null;function Qg(e){if(Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(bs,e,void 0,(e.current.flags&128)===128)}catch{}}var Bt=Math.clz32?Math.clz32:qg,Xg=Math.log,Zg=Math.LN2;function qg(e){return e>>>=0,e===0?32:31-(Xg(e)/Zg|0)|0}var gi=64,wi=4194304;function ko(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 os(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=ko(l):(i&=s,i!==0&&(r=ko(i)))}else s=n&~o,s!==0?r=ko(s):i!==0&&(r=ko(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Bt(t),o=1<<n,r|=e[n],t&=~o;return r}function Jg(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 e0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Bt(i),l=1<<s,a=o[s];a===-1?((l&n)===0||(l&r)!==0)&&(o[s]=Jg(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function Sa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rp(){var e=gi;return gi<<=1,(gi&4194240)===0&&(gi=64),e}function gl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ri(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bt(t),e[t]=n}function t0(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-Bt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Nu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Bt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var pe=0;function Pp(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Tp,Au,Np,Ap,Dp,Ea=!1,xi=[],Dn=null,In=null,bn=null,jo=new Map,Vo=new Map,Pn=[],n0="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 rd(e,t){switch(e){case"focusin":case"focusout":Dn=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":bn=null;break;case"pointerover":case"pointerout":jo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vo.delete(t.pointerId)}}function ho(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=ii(t),t!==null&&Au(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function r0(e,t,n,r,o){switch(t){case"focusin":return Dn=ho(Dn,e,t,n,r,o),!0;case"dragenter":return In=ho(In,e,t,n,r,o),!0;case"mouseover":return bn=ho(bn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return jo.set(i,ho(jo.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Vo.set(i,ho(Vo.get(i)||null,e,t,n,r,o)),!0}return!1}function Ip(e){var t=qn(e.target);if(t!==null){var n=hr(t);if(n!==null){if(t=n.tag,t===13){if(t=xp(n),t!==null){e.blockedOn=t,Dp(e.priority,function(){Np(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 ji(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ca(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ya=r,n.target.dispatchEvent(r),ya=null}else return t=ii(n),t!==null&&Au(t),e.blockedOn=n,!1;t.shift()}return!0}function od(e,t,n){ji(e)&&n.delete(t)}function o0(){Ea=!1,Dn!==null&&ji(Dn)&&(Dn=null),In!==null&&ji(In)&&(In=null),bn!==null&&ji(bn)&&(bn=null),jo.forEach(od),Vo.forEach(od)}function mo(e,t){e.blockedOn===t&&(e.blockedOn=null,Ea||(Ea=!0,gt.unstable_scheduleCallback(gt.unstable_NormalPriority,o0)))}function zo(e){function t(o){return mo(o,e)}if(0<xi.length){mo(xi[0],e);for(var n=1;n<xi.length;n++){var r=xi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Dn!==null&&mo(Dn,e),In!==null&&mo(In,e),bn!==null&&mo(bn,e),jo.forEach(t),Vo.forEach(t),n=0;n<Pn.length;n++)r=Pn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Pn.length&&(n=Pn[0],n.blockedOn===null);)Ip(n),n.blockedOn===null&&Pn.shift()}var $r=vn.ReactCurrentBatchConfig,is=!0;function i0(e,t,n,r){var o=pe,i=$r.transition;$r.transition=null;try{pe=1,Du(e,t,n,r)}finally{pe=o,$r.transition=i}}function s0(e,t,n,r){var o=pe,i=$r.transition;$r.transition=null;try{pe=4,Du(e,t,n,r)}finally{pe=o,$r.transition=i}}function Du(e,t,n,r){if(is){var o=Ca(e,t,n,r);if(o===null)Tl(e,t,r,ss,n),rd(e,r);else if(r0(o,e,t,n,r))r.stopPropagation();else if(rd(e,r),t&4&&-1<n0.indexOf(e)){for(;o!==null;){var i=ii(o);if(i!==null&&Tp(i),i=Ca(e,t,n,r),i===null&&Tl(e,t,r,ss,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Tl(e,t,r,null,n)}}var ss=null;function Ca(e,t,n,r){if(ss=null,e=Pu(r),e=qn(e),e!==null)if(t=hr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=xp(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 ss=e,null}function bp(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(Yg()){case Tu:return 1;case kp:return 4;case rs:case Gg:return 16;case _p:return 536870912;default:return 16}default:return 16}}var Nn=null,Iu=null,Vi=null;function Mp(){if(Vi)return Vi;var e,t=Iu,n=t.length,r,o="value"in Nn?Nn.value:Nn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return Vi=o.slice(e,1<r?1-r:void 0)}function zi(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 Si(){return!0}function id(){return!1}function xt(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Si:id,this.isPropagationStopped=id,this}return _e(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=Si)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Si)},persist:function(){},isPersistent:Si}),t}var eo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bu=xt(eo),oi=_e({},eo,{view:0,detail:0}),l0=xt(oi),wl,xl,vo,Ms=_e({},oi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mu,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!==vo&&(vo&&e.type==="mousemove"?(wl=e.screenX-vo.screenX,xl=e.screenY-vo.screenY):xl=wl=0,vo=e),wl)},movementY:function(e){return"movementY"in e?e.movementY:xl}}),sd=xt(Ms),a0=_e({},Ms,{dataTransfer:0}),u0=xt(a0),c0=_e({},oi,{relatedTarget:0}),Sl=xt(c0),d0=_e({},eo,{animationName:0,elapsedTime:0,pseudoElement:0}),f0=xt(d0),p0=_e({},eo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),h0=xt(p0),m0=_e({},eo,{data:0}),ld=xt(m0),v0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},y0={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"},g0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function w0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=g0[e])?!!t[e]:!1}function Mu(){return w0}var x0=_e({},oi,{key:function(e){if(e.key){var t=v0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?y0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mu,charCode:function(e){return e.type==="keypress"?zi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),S0=xt(x0),E0=_e({},Ms,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ad=xt(E0),C0=_e({},oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mu}),k0=xt(C0),_0=_e({},eo,{propertyName:0,elapsedTime:0,pseudoElement:0}),R0=xt(_0),P0=_e({},Ms,{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}),T0=xt(P0),N0=[9,13,27,32],Ou=dn&&"CompositionEvent"in window,No=null;dn&&"documentMode"in document&&(No=document.documentMode);var A0=dn&&"TextEvent"in window&&!No,Op=dn&&(!Ou||No&&8<No&&11>=No),ud=" ",cd=!1;function Lp(e,t){switch(e){case"keyup":return N0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kr=!1;function D0(e,t){switch(e){case"compositionend":return Fp(t);case"keypress":return t.which!==32?null:(cd=!0,ud);case"textInput":return e=t.data,e===ud&&cd?null:e;default:return null}}function I0(e,t){if(kr)return e==="compositionend"||!Ou&&Lp(e,t)?(e=Mp(),Vi=Iu=Nn=null,kr=!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 Op&&t.locale!=="ko"?null:t.data;default:return null}}var b0={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 dd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!b0[e.type]:t==="textarea"}function $p(e,t,n,r){mp(r),t=ls(t,"onChange"),0<t.length&&(n=new bu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ao=null,Bo=null;function M0(e){Qp(e,0)}function Os(e){var t=Pr(e);if(ap(t))return e}function O0(e,t){if(e==="change")return t}var jp=!1;if(dn){var El;if(dn){var Cl="oninput"in document;if(!Cl){var fd=document.createElement("div");fd.setAttribute("oninput","return;"),Cl=typeof fd.oninput=="function"}El=Cl}else El=!1;jp=El&&(!document.documentMode||9<document.documentMode)}function pd(){Ao&&(Ao.detachEvent("onpropertychange",Vp),Bo=Ao=null)}function Vp(e){if(e.propertyName==="value"&&Os(Bo)){var t=[];$p(t,Bo,e,Pu(e)),wp(M0,t)}}function L0(e,t,n){e==="focusin"?(pd(),Ao=t,Bo=n,Ao.attachEvent("onpropertychange",Vp)):e==="focusout"&&pd()}function F0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Os(Bo)}function $0(e,t){if(e==="click")return Os(t)}function j0(e,t){if(e==="input"||e==="change")return Os(t)}function V0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:V0;function Uo(e,t){if(Ht(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(!ia.call(t,o)||!Ht(e[o],t[o]))return!1}return!0}function hd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function md(e,t){var n=hd(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=hd(n)}}function zp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bp(){for(var e=window,t=es();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=es(e.document)}return t}function Lu(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 z0(e){var t=Bp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&zp(n.ownerDocument.documentElement,n)){if(r!==null&&Lu(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=md(n,i);var s=md(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 B0=dn&&"documentMode"in document&&11>=document.documentMode,_r=null,ka=null,Do=null,_a=!1;function vd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_a||_r==null||_r!==es(r)||(r=_r,"selectionStart"in r&&Lu(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}),Do&&Uo(Do,r)||(Do=r,r=ls(ka,"onSelect"),0<r.length&&(t=new bu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=_r)))}function Ei(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Rr={animationend:Ei("Animation","AnimationEnd"),animationiteration:Ei("Animation","AnimationIteration"),animationstart:Ei("Animation","AnimationStart"),transitionend:Ei("Transition","TransitionEnd")},kl={},Up={};dn&&(Up=document.createElement("div").style,"AnimationEvent"in window||(delete Rr.animationend.animation,delete Rr.animationiteration.animation,delete Rr.animationstart.animation),"TransitionEvent"in window||delete Rr.transitionend.transition);function Ls(e){if(kl[e])return kl[e];if(!Rr[e])return e;var t=Rr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Up)return kl[e]=t[n];return e}var Hp=Ls("animationend"),Wp=Ls("animationiteration"),Kp=Ls("animationstart"),Yp=Ls("transitionend"),Gp=new Map,yd="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 Un(e,t){Gp.set(e,t),pr(t,[e])}for(var _l=0;_l<yd.length;_l++){var Rl=yd[_l],U0=Rl.toLowerCase(),H0=Rl[0].toUpperCase()+Rl.slice(1);Un(U0,"on"+H0)}Un(Hp,"onAnimationEnd");Un(Wp,"onAnimationIteration");Un(Kp,"onAnimationStart");Un("dblclick","onDoubleClick");Un("focusin","onFocus");Un("focusout","onBlur");Un(Yp,"onTransitionEnd");Hr("onMouseEnter",["mouseout","mouseover"]);Hr("onMouseLeave",["mouseout","mouseover"]);Hr("onPointerEnter",["pointerout","pointerover"]);Hr("onPointerLeave",["pointerout","pointerover"]);pr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));pr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));pr("onBeforeInput",["compositionend","keypress","textInput","paste"]);pr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));pr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));pr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _o="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(" "),W0=new Set("cancel close invalid load scroll toggle".split(" ").concat(_o));function gd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ug(r,t,void 0,e),e.currentTarget=null}function Qp(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 s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==i&&o.isPropagationStopped())break e;gd(o,l,u),i=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==i&&o.isPropagationStopped())break e;gd(o,l,u),i=a}}}if(ns)throw e=xa,ns=!1,xa=null,e}function ge(e,t){var n=t[Aa];n===void 0&&(n=t[Aa]=new Set);var r=e+"__bubble";n.has(r)||(Xp(t,e,2,!1),n.add(r))}function Pl(e,t,n){var r=0;t&&(r|=4),Xp(n,e,r,t)}var Ci="_reactListening"+Math.random().toString(36).slice(2);function Ho(e){if(!e[Ci]){e[Ci]=!0,rp.forEach(function(n){n!=="selectionchange"&&(W0.has(n)||Pl(n,!1,e),Pl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ci]||(t[Ci]=!0,Pl("selectionchange",!1,t))}}function Xp(e,t,n,r){switch(bp(t)){case 1:var o=i0;break;case 4:o=s0;break;default:o=Du}n=o.bind(null,t,n,e),o=void 0,!wa||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 Tl(e,t,n,r,o){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;s=s.return}for(;l!==null;){if(s=qn(l),s===null)return;if(a=s.tag,a===5||a===6){r=i=s;continue e}l=l.parentNode}}r=r.return}wp(function(){var u=i,f=Pu(n),c=[];e:{var v=Gp.get(e);if(v!==void 0){var w=bu,S=e;switch(e){case"keypress":if(zi(n)===0)break e;case"keydown":case"keyup":w=S0;break;case"focusin":S="focus",w=Sl;break;case"focusout":S="blur",w=Sl;break;case"beforeblur":case"afterblur":w=Sl;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":w=sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=u0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=k0;break;case Hp:case Wp:case Kp:w=f0;break;case Yp:w=R0;break;case"scroll":w=l0;break;case"wheel":w=T0;break;case"copy":case"cut":case"paste":w=h0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=ad}var y=(t&4)!==0,x=!y&&e==="scroll",h=y?v!==null?v+"Capture":null:v;y=[];for(var p=u,m;p!==null;){m=p;var g=m.stateNode;if(m.tag===5&&g!==null&&(m=g,h!==null&&(g=$o(p,h),g!=null&&y.push(Wo(p,g,m)))),x)break;p=p.return}0<y.length&&(v=new w(v,S,null,n,f),c.push({event:v,listeners:y}))}}if((t&7)===0){e:{if(v=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",v&&n!==ya&&(S=n.relatedTarget||n.fromElement)&&(qn(S)||S[fn]))break e;if((w||v)&&(v=f.window===f?f:(v=f.ownerDocument)?v.defaultView||v.parentWindow:window,w?(S=n.relatedTarget||n.toElement,w=u,S=S?qn(S):null,S!==null&&(x=hr(S),S!==x||S.tag!==5&&S.tag!==6)&&(S=null)):(w=null,S=u),w!==S)){if(y=sd,g="onMouseLeave",h="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(y=ad,g="onPointerLeave",h="onPointerEnter",p="pointer"),x=w==null?v:Pr(w),m=S==null?v:Pr(S),v=new y(g,p+"leave",w,n,f),v.target=x,v.relatedTarget=m,g=null,qn(f)===u&&(y=new y(h,p+"enter",S,n,f),y.target=m,y.relatedTarget=x,g=y),x=g,w&&S)t:{for(y=w,h=S,p=0,m=y;m;m=yr(m))p++;for(m=0,g=h;g;g=yr(g))m++;for(;0<p-m;)y=yr(y),p--;for(;0<m-p;)h=yr(h),m--;for(;p--;){if(y===h||h!==null&&y===h.alternate)break t;y=yr(y),h=yr(h)}y=null}else y=null;w!==null&&wd(c,v,w,y,!1),S!==null&&x!==null&&wd(c,x,S,y,!0)}}e:{if(v=u?Pr(u):window,w=v.nodeName&&v.nodeName.toLowerCase(),w==="select"||w==="input"&&v.type==="file")var E=O0;else if(dd(v))if(jp)E=j0;else{E=F0;var _=L0}else(w=v.nodeName)&&w.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(E=$0);if(E&&(E=E(e,u))){$p(c,E,n,f);break e}_&&_(e,v,u),e==="focusout"&&(_=v._wrapperState)&&_.controlled&&v.type==="number"&&fa(v,"number",v.value)}switch(_=u?Pr(u):window,e){case"focusin":(dd(_)||_.contentEditable==="true")&&(_r=_,ka=u,Do=null);break;case"focusout":Do=ka=_r=null;break;case"mousedown":_a=!0;break;case"contextmenu":case"mouseup":case"dragend":_a=!1,vd(c,n,f);break;case"selectionchange":if(B0)break;case"keydown":case"keyup":vd(c,n,f)}var k;if(Ou)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else kr?Lp(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(Op&&n.locale!=="ko"&&(kr||A!=="onCompositionStart"?A==="onCompositionEnd"&&kr&&(k=Mp()):(Nn=f,Iu="value"in Nn?Nn.value:Nn.textContent,kr=!0)),_=ls(u,A),0<_.length&&(A=new ld(A,e,null,n,f),c.push({event:A,listeners:_}),k?A.data=k:(k=Fp(n),k!==null&&(A.data=k)))),(k=A0?D0(e,n):I0(e,n))&&(u=ls(u,"onBeforeInput"),0<u.length&&(f=new ld("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=k))}Qp(c,t)})}function Wo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ls(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=$o(e,n),i!=null&&r.unshift(Wo(e,i,o)),i=$o(e,t),i!=null&&r.push(Wo(e,i,o))),e=e.return}return r}function yr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wd(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,o?(a=$o(n,i),a!=null&&s.unshift(Wo(n,a,l))):o||(a=$o(n,i),a!=null&&s.push(Wo(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var K0=/\r\n?/g,Y0=/\u0000|\uFFFD/g;function xd(e){return(typeof e=="string"?e:""+e).replace(K0,`
|
|
30
|
+
`).replace(Y0,"")}function ki(e,t,n){if(t=xd(t),xd(e)!==t&&n)throw Error(D(425))}function as(){}var Ra=null,Pa=null;function Ta(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 Na=typeof setTimeout=="function"?setTimeout:void 0,G0=typeof clearTimeout=="function"?clearTimeout:void 0,Sd=typeof Promise=="function"?Promise:void 0,Q0=typeof queueMicrotask=="function"?queueMicrotask:typeof Sd<"u"?function(e){return Sd.resolve(null).then(e).catch(X0)}:Na;function X0(e){setTimeout(function(){throw e})}function Nl(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),zo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);zo(t)}function Mn(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 Ed(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 to=Math.random().toString(36).slice(2),qt="__reactFiber$"+to,Ko="__reactProps$"+to,fn="__reactContainer$"+to,Aa="__reactEvents$"+to,Z0="__reactListeners$"+to,q0="__reactHandles$"+to;function qn(e){var t=e[qt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fn]||n[qt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ed(e);e!==null;){if(n=e[qt])return n;e=Ed(e)}return t}e=n,n=e.parentNode}return null}function ii(e){return e=e[qt]||e[fn],!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(D(33))}function Fs(e){return e[Ko]||null}var Da=[],Tr=-1;function Hn(e){return{current:e}}function xe(e){0>Tr||(e.current=Da[Tr],Da[Tr]=null,Tr--)}function ye(e,t){Tr++,Da[Tr]=e.current,e.current=t}var zn={},Ze=Hn(zn),at=Hn(!1),or=zn;function Wr(e,t){var n=e.type.contextTypes;if(!n)return zn;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 ut(e){return e=e.childContextTypes,e!=null}function us(){xe(at),xe(Ze)}function Cd(e,t,n){if(Ze.current!==zn)throw Error(D(168));ye(Ze,t),ye(at,n)}function Zp(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(D(108,Lg(e)||"Unknown",o));return _e({},n,r)}function cs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zn,or=Ze.current,ye(Ze,e),ye(at,at.current),!0}function kd(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=Zp(e,t,or),r.__reactInternalMemoizedMergedChildContext=e,xe(at),xe(Ze),ye(Ze,e)):xe(at),ye(at,n)}var on=null,$s=!1,Al=!1;function qp(e){on===null?on=[e]:on.push(e)}function J0(e){$s=!0,qp(e)}function Wn(){if(!Al&&on!==null){Al=!0;var e=0,t=pe;try{var n=on;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}on=null,$s=!1}catch(o){throw on!==null&&(on=on.slice(e+1)),Cp(Tu,Wn),o}finally{pe=t,Al=!1}}return null}var Nr=[],Ar=0,ds=null,fs=0,Ct=[],kt=0,ir=null,sn=1,ln="";function Xn(e,t){Nr[Ar++]=fs,Nr[Ar++]=ds,ds=e,fs=t}function Jp(e,t,n){Ct[kt++]=sn,Ct[kt++]=ln,Ct[kt++]=ir,ir=e;var r=sn;e=ln;var o=32-Bt(r)-1;r&=~(1<<o),n+=1;var i=32-Bt(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,sn=1<<32-Bt(t)+o|n<<o|r,ln=i+e}else sn=1<<i|n<<o|r,ln=e}function Fu(e){e.return!==null&&(Xn(e,1),Jp(e,1,0))}function $u(e){for(;e===ds;)ds=Nr[--Ar],Nr[Ar]=null,fs=Nr[--Ar],Nr[Ar]=null;for(;e===ir;)ir=Ct[--kt],Ct[kt]=null,ln=Ct[--kt],Ct[kt]=null,sn=Ct[--kt],Ct[kt]=null}var yt=null,vt=null,Se=!1,jt=null;function eh(e,t){var n=Rt(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 _d(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,yt=e,vt=Mn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,yt=e,vt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ir!==null?{id:sn,overflow:ln}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Rt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,yt=e,vt=null,!0):!1;default:return!1}}function Ia(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ba(e){if(Se){var t=vt;if(t){var n=t;if(!_d(e,t)){if(Ia(e))throw Error(D(418));t=Mn(n.nextSibling);var r=yt;t&&_d(e,t)?eh(r,n):(e.flags=e.flags&-4097|2,Se=!1,yt=e)}}else{if(Ia(e))throw Error(D(418));e.flags=e.flags&-4097|2,Se=!1,yt=e}}}function Rd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;yt=e}function _i(e){if(e!==yt)return!1;if(!Se)return Rd(e),Se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ta(e.type,e.memoizedProps)),t&&(t=vt)){if(Ia(e))throw th(),Error(D(418));for(;t;)eh(e,t),t=Mn(t.nextSibling)}if(Rd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){vt=Mn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}vt=null}}else vt=yt?Mn(e.stateNode.nextSibling):null;return!0}function th(){for(var e=vt;e;)e=Mn(e.nextSibling)}function Kr(){vt=yt=null,Se=!1}function ju(e){jt===null?jt=[e]:jt.push(e)}var e1=vn.ReactCurrentBatchConfig;function yo(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(D(309));var r=n.stateNode}if(!r)throw Error(D(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(s){var l=o.refs;s===null?delete l[i]:l[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function Ri(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Pd(e){var t=e._init;return t(e._payload)}function nh(e){function t(h,p){if(e){var m=h.deletions;m===null?(h.deletions=[p],h.flags|=16):m.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=$n(h,p),h.index=0,h.sibling=null,h}function i(h,p,m){return h.index=m,e?(m=h.alternate,m!==null?(m=m.index,m<p?(h.flags|=2,p):m):(h.flags|=2,p)):(h.flags|=1048576,p)}function s(h){return e&&h.alternate===null&&(h.flags|=2),h}function l(h,p,m,g){return p===null||p.tag!==6?(p=Fl(m,h.mode,g),p.return=h,p):(p=o(p,m),p.return=h,p)}function a(h,p,m,g){var E=m.type;return E===Cr?f(h,p,m.props.children,g,m.key):p!==null&&(p.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===kn&&Pd(E)===p.type)?(g=o(p,m.props),g.ref=yo(h,p,m),g.return=h,g):(g=Gi(m.type,m.key,m.props,null,h.mode,g),g.ref=yo(h,p,m),g.return=h,g)}function u(h,p,m,g){return p===null||p.tag!==4||p.stateNode.containerInfo!==m.containerInfo||p.stateNode.implementation!==m.implementation?(p=$l(m,h.mode,g),p.return=h,p):(p=o(p,m.children||[]),p.return=h,p)}function f(h,p,m,g,E){return p===null||p.tag!==7?(p=rr(m,h.mode,g,E),p.return=h,p):(p=o(p,m),p.return=h,p)}function c(h,p,m){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Fl(""+p,h.mode,m),p.return=h,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case mi:return m=Gi(p.type,p.key,p.props,null,h.mode,m),m.ref=yo(h,null,p),m.return=h,m;case Er:return p=$l(p,h.mode,m),p.return=h,p;case kn:var g=p._init;return c(h,g(p._payload),m)}if(Co(p)||fo(p))return p=rr(p,h.mode,m,null),p.return=h,p;Ri(h,p)}return null}function v(h,p,m,g){var E=p!==null?p.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return E!==null?null:l(h,p,""+m,g);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case mi:return m.key===E?a(h,p,m,g):null;case Er:return m.key===E?u(h,p,m,g):null;case kn:return E=m._init,v(h,p,E(m._payload),g)}if(Co(m)||fo(m))return E!==null?null:f(h,p,m,g,null);Ri(h,m)}return null}function w(h,p,m,g,E){if(typeof g=="string"&&g!==""||typeof g=="number")return h=h.get(m)||null,l(p,h,""+g,E);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case mi:return h=h.get(g.key===null?m:g.key)||null,a(p,h,g,E);case Er:return h=h.get(g.key===null?m:g.key)||null,u(p,h,g,E);case kn:var _=g._init;return w(h,p,m,_(g._payload),E)}if(Co(g)||fo(g))return h=h.get(m)||null,f(p,h,g,E,null);Ri(p,g)}return null}function S(h,p,m,g){for(var E=null,_=null,k=p,A=p=0,$=null;k!==null&&A<m.length;A++){k.index>A?($=k,k=null):$=k.sibling;var F=v(h,k,m[A],g);if(F===null){k===null&&(k=$);break}e&&k&&F.alternate===null&&t(h,k),p=i(F,p,A),_===null?E=F:_.sibling=F,_=F,k=$}if(A===m.length)return n(h,k),Se&&Xn(h,A),E;if(k===null){for(;A<m.length;A++)k=c(h,m[A],g),k!==null&&(p=i(k,p,A),_===null?E=k:_.sibling=k,_=k);return Se&&Xn(h,A),E}for(k=r(h,k);A<m.length;A++)$=w(k,h,A,m[A],g),$!==null&&(e&&$.alternate!==null&&k.delete($.key===null?A:$.key),p=i($,p,A),_===null?E=$:_.sibling=$,_=$);return e&&k.forEach(function(W){return t(h,W)}),Se&&Xn(h,A),E}function y(h,p,m,g){var E=fo(m);if(typeof E!="function")throw Error(D(150));if(m=E.call(m),m==null)throw Error(D(151));for(var _=E=null,k=p,A=p=0,$=null,F=m.next();k!==null&&!F.done;A++,F=m.next()){k.index>A?($=k,k=null):$=k.sibling;var W=v(h,k,F.value,g);if(W===null){k===null&&(k=$);break}e&&k&&W.alternate===null&&t(h,k),p=i(W,p,A),_===null?E=W:_.sibling=W,_=W,k=$}if(F.done)return n(h,k),Se&&Xn(h,A),E;if(k===null){for(;!F.done;A++,F=m.next())F=c(h,F.value,g),F!==null&&(p=i(F,p,A),_===null?E=F:_.sibling=F,_=F);return Se&&Xn(h,A),E}for(k=r(h,k);!F.done;A++,F=m.next())F=w(k,h,A,F.value,g),F!==null&&(e&&F.alternate!==null&&k.delete(F.key===null?A:F.key),p=i(F,p,A),_===null?E=F:_.sibling=F,_=F);return e&&k.forEach(function(B){return t(h,B)}),Se&&Xn(h,A),E}function x(h,p,m,g){if(typeof m=="object"&&m!==null&&m.type===Cr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case mi:e:{for(var E=m.key,_=p;_!==null;){if(_.key===E){if(E=m.type,E===Cr){if(_.tag===7){n(h,_.sibling),p=o(_,m.props.children),p.return=h,h=p;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===kn&&Pd(E)===_.type){n(h,_.sibling),p=o(_,m.props),p.ref=yo(h,_,m),p.return=h,h=p;break e}n(h,_);break}else t(h,_);_=_.sibling}m.type===Cr?(p=rr(m.props.children,h.mode,g,m.key),p.return=h,h=p):(g=Gi(m.type,m.key,m.props,null,h.mode,g),g.ref=yo(h,p,m),g.return=h,h=g)}return s(h);case Er:e:{for(_=m.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(h,p.sibling),p=o(p,m.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=$l(m,h.mode,g),p.return=h,h=p}return s(h);case kn:return _=m._init,x(h,p,_(m._payload),g)}if(Co(m))return S(h,p,m,g);if(fo(m))return y(h,p,m,g);Ri(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,m),p.return=h,h=p):(n(h,p),p=Fl(m,h.mode,g),p.return=h,h=p),s(h)):n(h,p)}return x}var Yr=nh(!0),rh=nh(!1),ps=Hn(null),hs=null,Dr=null,Vu=null;function zu(){Vu=Dr=hs=null}function Bu(e){var t=ps.current;xe(ps),e._currentValue=t}function Ma(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 jr(e,t){hs=e,Vu=Dr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(st=!0),e.firstContext=null)}function Tt(e){var t=e._currentValue;if(Vu!==e)if(e={context:e,memoizedValue:t,next:null},Dr===null){if(hs===null)throw Error(D(308));Dr=e,hs.dependencies={lanes:0,firstContext:e}}else Dr=Dr.next=e;return t}var Jn=null;function Uu(e){Jn===null?Jn=[e]:Jn.push(e)}function oh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Uu(t)):(n.next=o.next,o.next=n),t.interleaved=n,pn(e,r)}function pn(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 _n=!1;function Hu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ih(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 an(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function On(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ie&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,pn(e,n)}return o=r.interleaved,o===null?(t.next=t,Uu(r)):(t.next=o.next,o.next=t),r.interleaved=t,pn(e,n)}function Bi(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,Nu(e,n)}}function Td(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 s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,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 ms(e,t,n,r){var o=e.updateQueue;_n=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==s&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=a))}if(i!==null){var c=o.baseState;s=0,f=u=a=null,l=i;do{var v=l.lane,w=l.eventTime;if((r&v)===v){f!==null&&(f=f.next={eventTime:w,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,y=l;switch(v=t,w=n,y.tag){case 1:if(S=y.payload,typeof S=="function"){c=S.call(w,c,v);break e}c=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=y.payload,v=typeof S=="function"?S.call(w,c,v):S,v==null)break e;c=_e({},c,v);break e;case 2:_n=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,v=o.effects,v===null?o.effects=[l]:v.push(l))}else w={eventTime:w,lane:v,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=w,a=c):f=f.next=w,s|=v;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;v=l,l=v.next,v.next=null,o.lastBaseUpdate=v,o.shared.pending=null}}while(!0);if(f===null&&(a=c),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);lr|=s,e.lanes=s,e.memoizedState=c}}function Nd(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(D(191,o));o.call(r)}}}var si={},en=Hn(si),Yo=Hn(si),Go=Hn(si);function er(e){if(e===si)throw Error(D(174));return e}function Wu(e,t){switch(ye(Go,t),ye(Yo,e),ye(en,si),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ha(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ha(t,e)}xe(en),ye(en,t)}function Gr(){xe(en),xe(Yo),xe(Go)}function sh(e){er(Go.current);var t=er(en.current),n=ha(t,e.type);t!==n&&(ye(Yo,e),ye(en,n))}function Ku(e){Yo.current===e&&(xe(en),xe(Yo))}var Ce=Hn(0);function vs(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)!==0)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 Dl=[];function Yu(){for(var e=0;e<Dl.length;e++)Dl[e]._workInProgressVersionPrimary=null;Dl.length=0}var Ui=vn.ReactCurrentDispatcher,Il=vn.ReactCurrentBatchConfig,sr=0,ke=null,be=null,Le=null,ys=!1,Io=!1,Qo=0,t1=0;function Ye(){throw Error(D(321))}function Gu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ht(e[n],t[n]))return!1;return!0}function Qu(e,t,n,r,o,i){if(sr=i,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ui.current=e===null||e.memoizedState===null?i1:s1,e=n(r,o),Io){i=0;do{if(Io=!1,Qo=0,25<=i)throw Error(D(301));i+=1,Le=be=null,t.updateQueue=null,Ui.current=l1,e=n(r,o)}while(Io)}if(Ui.current=gs,t=be!==null&&be.next!==null,sr=0,Le=be=ke=null,ys=!1,t)throw Error(D(300));return e}function Xu(){var e=Qo!==0;return Qo=0,e}function Zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?ke.memoizedState=Le=e:Le=Le.next=e,Le}function Nt(){if(be===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=Le===null?ke.memoizedState:Le.next;if(t!==null)Le=t,be=e;else{if(e===null)throw Error(D(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},Le===null?ke.memoizedState=Le=e:Le=Le.next=e}return Le}function Xo(e,t){return typeof t=="function"?t(e):t}function bl(e){var t=Nt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=be,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=s=null,a=null,u=i;do{var f=u.lane;if((sr&f)===f)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:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=c,s=r):a=a.next=c,ke.lanes|=f,lr|=f}u=u.next}while(u!==null&&u!==i);a===null?s=r:a.next=l,Ht(r,t.memoizedState)||(st=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,ke.lanes|=i,lr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ml(e){var t=Nt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Ht(i,t.memoizedState)||(st=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function lh(){}function ah(e,t){var n=ke,r=Nt(),o=t(),i=!Ht(r.memoizedState,o);if(i&&(r.memoizedState=o,st=!0),r=r.queue,Zu(dh.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Le!==null&&Le.memoizedState.tag&1){if(n.flags|=2048,Zo(9,ch.bind(null,n,r,o,t),void 0,null),Fe===null)throw Error(D(349));(sr&30)!==0||uh(n,t,o)}return o}function uh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ch(e,t,n,r){t.value=n,t.getSnapshot=r,fh(t)&&ph(e)}function dh(e,t,n){return n(function(){fh(t)&&ph(e)})}function fh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ht(e,n)}catch{return!0}}function ph(e){var t=pn(e,1);t!==null&&Ut(t,e,1,-1)}function Ad(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:Xo,lastRenderedState:e},t.queue=e,e=e.dispatch=o1.bind(null,ke,e),[t.memoizedState,e]}function Zo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.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 hh(){return Nt().memoizedState}function Hi(e,t,n,r){var o=Zt();ke.flags|=e,o.memoizedState=Zo(1|t,n,void 0,r===void 0?null:r)}function js(e,t,n,r){var o=Nt();r=r===void 0?null:r;var i=void 0;if(be!==null){var s=be.memoizedState;if(i=s.destroy,r!==null&&Gu(r,s.deps)){o.memoizedState=Zo(t,n,i,r);return}}ke.flags|=e,o.memoizedState=Zo(1|t,n,i,r)}function Dd(e,t){return Hi(8390656,8,e,t)}function Zu(e,t){return js(2048,8,e,t)}function mh(e,t){return js(4,2,e,t)}function vh(e,t){return js(4,4,e,t)}function yh(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 gh(e,t,n){return n=n!=null?n.concat([e]):null,js(4,4,yh.bind(null,t,e),n)}function qu(){}function wh(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Gu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xh(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Gu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Sh(e,t,n){return(sr&21)===0?(e.baseState&&(e.baseState=!1,st=!0),e.memoizedState=n):(Ht(n,t)||(n=Rp(),ke.lanes|=n,lr|=n,e.baseState=!0),t)}function n1(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=Il.transition;Il.transition={};try{e(!1),t()}finally{pe=n,Il.transition=r}}function Eh(){return Nt().memoizedState}function r1(e,t,n){var r=Fn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ch(e))kh(t,n);else if(n=oh(e,t,n,r),n!==null){var o=et();Ut(n,e,r,o),_h(n,t,r)}}function o1(e,t,n){var r=Fn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ch(e))kh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,Ht(l,s)){var a=t.interleaved;a===null?(o.next=o,Uu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=oh(e,t,o,r),n!==null&&(o=et(),Ut(n,e,r,o),_h(n,t,r))}}function Ch(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function kh(e,t){Io=ys=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _h(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Nu(e,n)}}var gs={readContext:Tt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},i1={readContext:Tt,useCallback:function(e,t){return Zt().memoizedState=[e,t===void 0?null:t],e},useContext:Tt,useEffect:Dd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hi(4194308,4,yh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hi(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=r1.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=Zt();return e={current:e},t.memoizedState=e},useState:Ad,useDebugValue:qu,useDeferredValue:function(e){return Zt().memoizedState=e},useTransition:function(){var e=Ad(!1),t=e[0];return e=n1.bind(null,e[1]),Zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=Zt();if(Se){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Fe===null)throw Error(D(349));(sr&30)!==0||uh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Dd(dh.bind(null,r,i,e),[e]),r.flags|=2048,Zo(9,ch.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Zt(),t=Fe.identifierPrefix;if(Se){var n=ln,r=sn;n=(r&~(1<<32-Bt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=t1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},s1={readContext:Tt,useCallback:wh,useContext:Tt,useEffect:Zu,useImperativeHandle:gh,useInsertionEffect:mh,useLayoutEffect:vh,useMemo:xh,useReducer:bl,useRef:hh,useState:function(){return bl(Xo)},useDebugValue:qu,useDeferredValue:function(e){var t=Nt();return Sh(t,be.memoizedState,e)},useTransition:function(){var e=bl(Xo)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:lh,useSyncExternalStore:ah,useId:Eh,unstable_isNewReconciler:!1},l1={readContext:Tt,useCallback:wh,useContext:Tt,useEffect:Zu,useImperativeHandle:gh,useInsertionEffect:mh,useLayoutEffect:vh,useMemo:xh,useReducer:Ml,useRef:hh,useState:function(){return Ml(Xo)},useDebugValue:qu,useDeferredValue:function(e){var t=Nt();return be===null?t.memoizedState=e:Sh(t,be.memoizedState,e)},useTransition:function(){var e=Ml(Xo)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:lh,useSyncExternalStore:ah,useId:Eh,unstable_isNewReconciler:!1};function Ft(e,t){if(e&&e.defaultProps){t=_e({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Oa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:_e({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vs={isMounted:function(e){return(e=e._reactInternals)?hr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=et(),o=Fn(e),i=an(r,o);i.payload=t,n!=null&&(i.callback=n),t=On(e,i,o),t!==null&&(Ut(t,e,o,r),Bi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=et(),o=Fn(e),i=an(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=On(e,i,o),t!==null&&(Ut(t,e,o,r),Bi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=et(),r=Fn(e),o=an(n,r);o.tag=2,t!=null&&(o.callback=t),t=On(e,o,r),t!==null&&(Ut(t,e,r,n),Bi(t,e,r))}};function Id(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Uo(n,r)||!Uo(o,i):!0}function Rh(e,t,n){var r=!1,o=zn,i=t.contextType;return typeof i=="object"&&i!==null?i=Tt(i):(o=ut(t)?or:Ze.current,r=t.contextTypes,i=(r=r!=null)?Wr(e,o):zn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Vs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function bd(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&&Vs.enqueueReplaceState(t,t.state,null)}function La(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Hu(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Tt(i):(i=ut(t)?or:Ze.current,o.context=Wr(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Oa(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&&Vs.enqueueReplaceState(o,o.state,null),ms(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Qr(e,t){try{var n="",r=t;do n+=Og(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 Ol(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Fa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var a1=typeof WeakMap=="function"?WeakMap:Map;function Ph(e,t,n){n=an(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xs||(xs=!0,Ya=r),Fa(e,t)},n}function Th(e,t,n){n=an(-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(){Fa(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Fa(e,t),typeof r!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Md(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new a1;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=E1.bind(null,e,t,n),t.then(e,e))}function Od(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 Ld(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=an(-1,1),t.tag=2,On(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var u1=vn.ReactCurrentOwner,st=!1;function Je(e,t,n,r){t.child=e===null?rh(t,null,n,r):Yr(t,e.child,n,r)}function Fd(e,t,n,r,o){n=n.render;var i=t.ref;return jr(t,o),r=Qu(e,t,n,r,i,o),n=Xu(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,hn(e,t,o)):(Se&&n&&Fu(t),t.flags|=1,Je(e,t,r,o),t.child)}function $d(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!sc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Nh(e,t,i,r,o)):(e=Gi(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)===0){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Uo,n(s,r)&&e.ref===t.ref)return hn(e,t,o)}return t.flags|=1,e=$n(i,r),e.ref=t.ref,e.return=t,t.child=e}function Nh(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Uo(i,r)&&e.ref===t.ref)if(st=!1,t.pendingProps=r=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,hn(e,t,o)}return $a(e,t,n,r,o)}function Ah(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye(br,pt),pt|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ye(br,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ye(br,pt),pt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ye(br,pt),pt|=r;return Je(e,t,o,n),t.child}function Dh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $a(e,t,n,r,o){var i=ut(n)?or:Ze.current;return i=Wr(t,i),jr(t,o),n=Qu(e,t,n,r,i,o),r=Xu(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,hn(e,t,o)):(Se&&r&&Fu(t),t.flags|=1,Je(e,t,n,o),t.child)}function jd(e,t,n,r,o){if(ut(n)){var i=!0;cs(t)}else i=!1;if(jr(t,o),t.stateNode===null)Wi(e,t),Rh(t,n,r),La(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Tt(u):(u=ut(n)?or:Ze.current,u=Wr(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";c||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&bd(t,s,r,u),_n=!1;var v=t.memoizedState;s.state=v,ms(t,r,s,o),a=t.memoizedState,l!==r||v!==a||at.current||_n?(typeof f=="function"&&(Oa(t,n,f,r),a=t.memoizedState),(l=_n||Id(t,n,l,r,v,a,u))?(c||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,ih(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ft(t.type,l),s.props=u,c=t.pendingProps,v=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Tt(a):(a=ut(n)?or:Ze.current,a=Wr(t,a));var w=n.getDerivedStateFromProps;(f=typeof w=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==c||v!==a)&&bd(t,s,r,a),_n=!1,v=t.memoizedState,s.state=v,ms(t,r,s,o);var S=t.memoizedState;l!==c||v!==S||at.current||_n?(typeof w=="function"&&(Oa(t,n,w,r),S=t.memoizedState),(u=_n||Id(t,n,u,r,v,S,a)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,S,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,S,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),s.props=r,s.state=S,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return ja(e,t,n,r,i,o)}function ja(e,t,n,r,o,i){Dh(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&kd(t,n,!1),hn(e,t,i);r=t.stateNode,u1.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Yr(t,e.child,null,i),t.child=Yr(t,null,l,i)):Je(e,t,l,i),t.memoizedState=r.state,o&&kd(t,n,!0),t.child}function Ih(e){var t=e.stateNode;t.pendingContext?Cd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cd(e,t.context,!1),Wu(e,t.containerInfo)}function Vd(e,t,n,r,o){return Kr(),ju(o),t.flags|=256,Je(e,t,n,r),t.child}var Va={dehydrated:null,treeContext:null,retryLane:0};function za(e){return{baseLanes:e,cachePool:null,transitions:null}}function bh(e,t,n){var r=t.pendingProps,o=Ce.current,i=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ye(Ce,o&1),e===null)return ba(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Us(s,r,0,null),e=rr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=za(n),t.memoizedState=Va,e):Ju(t,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return c1(e,t,s,r,l,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=$n(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=$n(l,i):(i=rr(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?za(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Va,r}return i=e.child,e=i.sibling,r=$n(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(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 Ju(e,t){return t=Us({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pi(e,t,n,r){return r!==null&&ju(r),Yr(t,e.child,null,n),e=Ju(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function c1(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Ol(Error(D(422))),Pi(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Us({mode:"visible",children:r.children},o,0,null),i=rr(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&Yr(t,e.child,null,s),t.child.memoizedState=za(s),t.memoizedState=Va,i);if((t.mode&1)===0)return Pi(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(D(419)),r=Ol(i,r,void 0),Pi(e,t,s,r)}if(l=(s&e.childLanes)!==0,st||l){if(r=Fe,r!==null){switch(s&-s){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|s))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,pn(e,o),Ut(r,e,o,-1))}return ic(),r=Ol(Error(D(421))),Pi(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=C1.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,vt=Mn(o.nextSibling),yt=t,Se=!0,jt=null,e!==null&&(Ct[kt++]=sn,Ct[kt++]=ln,Ct[kt++]=ir,sn=e.id,ln=e.overflow,ir=t),t=Ju(t,r.children),t.flags|=4096,t)}function zd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ma(e.return,t,n)}function Ll(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 Mh(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Je(e,t,r.children,n),r=Ce.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zd(e,n,t);else if(e.tag===19)zd(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(ye(Ce,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&vs(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ll(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&&vs(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ll(t,!0,n,null,i);break;case"together":Ll(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wi(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function hn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),lr|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=$n(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$n(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function d1(e,t,n){switch(t.tag){case 3:Ih(t),Kr();break;case 5:sh(t);break;case 1:ut(t.type)&&cs(t);break;case 4:Wu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ye(ps,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ye(Ce,Ce.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?bh(e,t,n):(ye(Ce,Ce.current&1),e=hn(e,t,n),e!==null?e.sibling:null);ye(Ce,Ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Mh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ye(Ce,Ce.current),r)break;return null;case 22:case 23:return t.lanes=0,Ah(e,t,n)}return hn(e,t,n)}var Oh,Ba,Lh,Fh;Oh=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}};Ba=function(){};Lh=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,er(en.current);var i=null;switch(n){case"input":o=ca(e,o),r=ca(e,r),i=[];break;case"select":o=_e({},o,{value:void 0}),r=_e({},r,{value:void 0}),i=[];break;case"textarea":o=pa(e,o),r=pa(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=as)}ma(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Lo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Lo.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&ge("scroll",e),i||l===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Fh=function(e,t,n,r){n!==r&&(t.flags|=4)};function go(e,t){if(!Se)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 Ge(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 f1(e,t,n){var r=t.pendingProps;switch($u(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return ut(t.type)&&us(),Ge(t),null;case 3:return r=t.stateNode,Gr(),xe(at),xe(Ze),Yu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(_i(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,jt!==null&&(Xa(jt),jt=null))),Ba(e,t),Ge(t),null;case 5:Ku(t);var o=er(Go.current);if(n=t.type,e!==null&&t.stateNode!=null)Lh(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return Ge(t),null}if(e=er(en.current),_i(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[qt]=t,r[Ko]=i,e=(t.mode&1)!==0,n){case"dialog":ge("cancel",r),ge("close",r);break;case"iframe":case"object":case"embed":ge("load",r);break;case"video":case"audio":for(o=0;o<_o.length;o++)ge(_o[o],r);break;case"source":ge("error",r);break;case"img":case"image":case"link":ge("error",r),ge("load",r);break;case"details":ge("toggle",r);break;case"input":Xc(r,i),ge("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ge("invalid",r);break;case"textarea":qc(r,i),ge("invalid",r)}ma(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var l=i[s];s==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&ki(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&ki(r.textContent,l,e),o=["children",""+l]):Lo.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&ge("scroll",r)}switch(n){case"input":vi(r),Zc(r,i,!0);break;case"textarea":vi(r),Jc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=as)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=dp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[qt]=t,e[Ko]=r,Oh(e,t,!1,!1),t.stateNode=e;e:{switch(s=va(n,r),n){case"dialog":ge("cancel",e),ge("close",e),o=r;break;case"iframe":case"object":case"embed":ge("load",e),o=r;break;case"video":case"audio":for(o=0;o<_o.length;o++)ge(_o[o],e);o=r;break;case"source":ge("error",e),o=r;break;case"img":case"image":case"link":ge("error",e),ge("load",e),o=r;break;case"details":ge("toggle",e),o=r;break;case"input":Xc(e,r),o=ca(e,r),ge("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=_e({},r,{value:void 0}),ge("invalid",e);break;case"textarea":qc(e,r),o=pa(e,r),ge("invalid",e);break;default:o=r}ma(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?hp(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&fp(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Fo(e,a):typeof a=="number"&&Fo(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Lo.hasOwnProperty(i)?a!=null&&i==="onScroll"&&ge("scroll",e):a!=null&&Cu(e,i,a,s))}switch(n){case"input":vi(e),Zc(e,r,!1);break;case"textarea":vi(e),Jc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Vn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Or(e,!!r.multiple,i,!1):r.defaultValue!=null&&Or(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=as)}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 Ge(t),null;case 6:if(e&&t.stateNode!=null)Fh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=er(Go.current),er(en.current),_i(t)){if(r=t.stateNode,n=t.memoizedProps,r[qt]=t,(i=r.nodeValue!==n)&&(e=yt,e!==null))switch(e.tag){case 3:ki(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ki(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[qt]=t,t.stateNode=r}return Ge(t),null;case 13:if(xe(Ce),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Se&&vt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)th(),Kr(),t.flags|=98560,i=!1;else if(i=_i(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(D(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(D(317));i[qt]=t}else Kr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),i=!1}else jt!==null&&(Xa(jt),jt=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ce.current&1)!==0?Me===0&&(Me=3):ic())),t.updateQueue!==null&&(t.flags|=4),Ge(t),null);case 4:return Gr(),Ba(e,t),e===null&&Ho(t.stateNode.containerInfo),Ge(t),null;case 10:return Bu(t.type._context),Ge(t),null;case 17:return ut(t.type)&&us(),Ge(t),null;case 19:if(xe(Ce),i=t.memoizedState,i===null)return Ge(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)go(i,!1);else{if(Me!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=vs(e),s!==null){for(t.flags|=128,go(i,!1),r=s.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,s=i.alternate,s===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=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ye(Ce,Ce.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ne()>Xr&&(t.flags|=128,r=!0,go(i,!1),t.lanes=4194304)}else{if(!r)if(e=vs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),go(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Se)return Ge(t),null}else 2*Ne()-i.renderingStartTime>Xr&&n!==1073741824&&(t.flags|=128,r=!0,go(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ne(),t.sibling=null,n=Ce.current,ye(Ce,r?n&1|2:n&1),t):(Ge(t),null);case 22:case 23:return oc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(pt&1073741824)!==0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function p1(e,t){switch($u(t),t.tag){case 1:return ut(t.type)&&us(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gr(),xe(at),xe(Ze),Yu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ku(t),null;case 13:if(xe(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));Kr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(Ce),null;case 4:return Gr(),null;case 10:return Bu(t.type._context),null;case 22:case 23:return oc(),null;case 24:return null;default:return null}}var Ti=!1,Xe=!1,h1=typeof WeakSet=="function"?WeakSet:Set,j=null;function Ir(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function Ua(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var Bd=!1;function m1(e,t){if(Ra=is,e=Bp(),Lu(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 s=0,l=-1,a=-1,u=0,f=0,c=e,v=null;t:for(;;){for(var w;c!==n||o!==0&&c.nodeType!==3||(l=s+o),c!==i||r!==0&&c.nodeType!==3||(a=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(w=c.firstChild)!==null;)v=c,c=w;for(;;){if(c===e)break t;if(v===n&&++u===o&&(l=s),v===i&&++f===r&&(a=s),(w=c.nextSibling)!==null)break;c=v,v=c.parentNode}c=w}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pa={focusedElem:e,selectionRange:n},is=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var S=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var y=S.memoizedProps,x=S.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ft(t.type,y),x);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(g){Pe(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return S=Bd,Bd=!1,S}function bo(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&&Ua(t,n,i)}o=o.next}while(o!==r)}}function zs(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 Ha(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 $h(e){var t=e.alternate;t!==null&&(e.alternate=null,$h(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qt],delete t[Ko],delete t[Aa],delete t[Z0],delete t[q0])),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 jh(e){return e.tag===5||e.tag===3||e.tag===4}function Ud(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jh(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 Wa(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=as));else if(r!==4&&(e=e.child,e!==null))for(Wa(e,t,n),e=e.sibling;e!==null;)Wa(e,t,n),e=e.sibling}function Ka(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(Ka(e,t,n),e=e.sibling;e!==null;)Ka(e,t,n),e=e.sibling}var Be=null,$t=!1;function Sn(e,t,n){for(n=n.child;n!==null;)Vh(e,t,n),n=n.sibling}function Vh(e,t,n){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(bs,n)}catch{}switch(n.tag){case 5:Xe||Ir(n,t);case 6:var r=Be,o=$t;Be=null,Sn(e,t,n),Be=r,$t=o,Be!==null&&($t?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&($t?(e=Be,n=n.stateNode,e.nodeType===8?Nl(e.parentNode,n):e.nodeType===1&&Nl(e,n),zo(e)):Nl(Be,n.stateNode));break;case 4:r=Be,o=$t,Be=n.stateNode.containerInfo,$t=!0,Sn(e,t,n),Be=r,$t=o;break;case 0:case 11:case 14:case 15:if(!Xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&((i&2)!==0||(i&4)!==0)&&Ua(n,t,s),o=o.next}while(o!==r)}Sn(e,t,n);break;case 1:if(!Xe&&(Ir(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Pe(n,t,l)}Sn(e,t,n);break;case 21:Sn(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,Sn(e,t,n),Xe=r):Sn(e,t,n);break;default:Sn(e,t,n)}}function Hd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new h1),t.forEach(function(r){var o=k1.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ot(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,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:Be=l.stateNode,$t=!1;break e;case 3:Be=l.stateNode.containerInfo,$t=!0;break e;case 4:Be=l.stateNode.containerInfo,$t=!0;break e}l=l.return}if(Be===null)throw Error(D(160));Vh(i,s,o),Be=null,$t=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){Pe(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)zh(t,e),t=t.sibling}function zh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ot(t,e),Qt(e),r&4){try{bo(3,e,e.return),zs(3,e)}catch(y){Pe(e,e.return,y)}try{bo(5,e,e.return)}catch(y){Pe(e,e.return,y)}}break;case 1:Ot(t,e),Qt(e),r&512&&n!==null&&Ir(n,n.return);break;case 5:if(Ot(t,e),Qt(e),r&512&&n!==null&&Ir(n,n.return),e.flags&32){var o=e.stateNode;try{Fo(o,"")}catch(y){Pe(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&up(o,i),va(l,s);var u=va(l,i);for(s=0;s<a.length;s+=2){var f=a[s],c=a[s+1];f==="style"?hp(o,c):f==="dangerouslySetInnerHTML"?fp(o,c):f==="children"?Fo(o,c):Cu(o,f,c,u)}switch(l){case"input":da(o,i);break;case"textarea":cp(o,i);break;case"select":var v=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var w=i.value;w!=null?Or(o,!!i.multiple,w,!1):v!==!!i.multiple&&(i.defaultValue!=null?Or(o,!!i.multiple,i.defaultValue,!0):Or(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ko]=i}catch(y){Pe(e,e.return,y)}}break;case 6:if(Ot(t,e),Qt(e),r&4){if(e.stateNode===null)throw Error(D(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(y){Pe(e,e.return,y)}}break;case 3:if(Ot(t,e),Qt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zo(t.containerInfo)}catch(y){Pe(e,e.return,y)}break;case 4:Ot(t,e),Qt(e);break;case 13:Ot(t,e),Qt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(nc=Ne())),r&4&&Hd(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Xe=(u=Xe)||f,Ot(t,e),Xe=u):Ot(t,e),Qt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&(e.mode&1)!==0)for(j=e,f=e.child;f!==null;){for(c=j=f;j!==null;){switch(v=j,w=v.child,v.tag){case 0:case 11:case 14:case 15:bo(4,v,v.return);break;case 1:Ir(v,v.return);var S=v.stateNode;if(typeof S.componentWillUnmount=="function"){r=v,n=v.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(y){Pe(r,n,y)}}break;case 5:Ir(v,v.return);break;case 22:if(v.memoizedState!==null){Kd(c);continue}}w!==null?(w.return=v,j=w):Kd(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{o=c.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=c.stateNode,a=c.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=pp("display",s))}catch(y){Pe(e,e.return,y)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(y){Pe(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;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:Ot(t,e),Qt(e),r&4&&Hd(e);break;case 21:break;default:Ot(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(jh(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Fo(o,""),r.flags&=-33);var i=Ud(e);Ka(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,l=Ud(e);Wa(e,l,s);break;default:throw Error(D(161))}}catch(a){Pe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function v1(e,t,n){j=e,Bh(e)}function Bh(e,t,n){for(var r=(e.mode&1)!==0;j!==null;){var o=j,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Ti;if(!s){var l=o.alternate,a=l!==null&&l.memoizedState!==null||Xe;l=Ti;var u=Xe;if(Ti=s,(Xe=a)&&!u)for(j=o;j!==null;)s=j,a=s.child,s.tag===22&&s.memoizedState!==null?Yd(o):a!==null?(a.return=s,j=a):Yd(o);for(;i!==null;)j=i,Bh(i),i=i.sibling;j=o,Ti=l,Xe=u}Wd(e)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,j=i):Wd(e)}}function Wd(e){for(;j!==null;){var t=j;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Xe||zs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ft(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Nd(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Nd(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;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 f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&zo(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}Xe||t.flags&512&&Ha(t)}catch(v){Pe(t,t.return,v)}}if(t===e){j=null;break}if(n=t.sibling,n!==null){n.return=t.return,j=n;break}j=t.return}}function Kd(e){for(;j!==null;){var t=j;if(t===e){j=null;break}var n=t.sibling;if(n!==null){n.return=t.return,j=n;break}j=t.return}}function Yd(e){for(;j!==null;){var t=j;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{zs(4,t)}catch(a){Pe(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Pe(t,o,a)}}var i=t.return;try{Ha(t)}catch(a){Pe(t,i,a)}break;case 5:var s=t.return;try{Ha(t)}catch(a){Pe(t,s,a)}}}catch(a){Pe(t,t.return,a)}if(t===e){j=null;break}var l=t.sibling;if(l!==null){l.return=t.return,j=l;break}j=t.return}}var y1=Math.ceil,ws=vn.ReactCurrentDispatcher,ec=vn.ReactCurrentOwner,Pt=vn.ReactCurrentBatchConfig,ie=0,Fe=null,De=null,Ue=0,pt=0,br=Hn(0),Me=0,qo=null,lr=0,Bs=0,tc=0,Mo=null,it=null,nc=0,Xr=1/0,rn=null,xs=!1,Ya=null,Ln=null,Ni=!1,An=null,Ss=0,Oo=0,Ga=null,Ki=-1,Yi=0;function et(){return(ie&6)!==0?Ne():Ki!==-1?Ki:Ki=Ne()}function Fn(e){return(e.mode&1)===0?1:(ie&2)!==0&&Ue!==0?Ue&-Ue:e1.transition!==null?(Yi===0&&(Yi=Rp()),Yi):(e=pe,e!==0||(e=window.event,e=e===void 0?16:bp(e.type)),e)}function Ut(e,t,n,r){if(50<Oo)throw Oo=0,Ga=null,Error(D(185));ri(e,n,r),((ie&2)===0||e!==Fe)&&(e===Fe&&((ie&2)===0&&(Bs|=n),Me===4&&Tn(e,Ue)),ct(e,r),n===1&&ie===0&&(t.mode&1)===0&&(Xr=Ne()+500,$s&&Wn()))}function ct(e,t){var n=e.callbackNode;e0(e,t);var r=os(e,e===Fe?Ue:0);if(r===0)n!==null&&nd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&nd(n),t===1)e.tag===0?J0(Gd.bind(null,e)):qp(Gd.bind(null,e)),Q0(function(){(ie&6)===0&&Wn()}),n=null;else{switch(Pp(r)){case 1:n=Tu;break;case 4:n=kp;break;case 16:n=rs;break;case 536870912:n=_p;break;default:n=rs}n=Xh(n,Uh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Uh(e,t){if(Ki=-1,Yi=0,(ie&6)!==0)throw Error(D(327));var n=e.callbackNode;if(Vr()&&e.callbackNode!==n)return null;var r=os(e,e===Fe?Ue:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Es(e,r);else{t=r;var o=ie;ie|=2;var i=Wh();(Fe!==e||Ue!==t)&&(rn=null,Xr=Ne()+500,nr(e,t));do try{x1();break}catch(l){Hh(e,l)}while(!0);zu(),ws.current=i,ie=o,De!==null?t=0:(Fe=null,Ue=0,t=Me)}if(t!==0){if(t===2&&(o=Sa(e),o!==0&&(r=o,t=Qa(e,o))),t===1)throw n=qo,nr(e,0),Tn(e,r),ct(e,Ne()),n;if(t===6)Tn(e,r);else{if(o=e.current.alternate,(r&30)===0&&!g1(o)&&(t=Es(e,r),t===2&&(i=Sa(e),i!==0&&(r=i,t=Qa(e,i))),t===1))throw n=qo,nr(e,0),Tn(e,r),ct(e,Ne()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:Zn(e,it,rn);break;case 3:if(Tn(e,r),(r&130023424)===r&&(t=nc+500-Ne(),10<t)){if(os(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){et(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Na(Zn.bind(null,e,it,rn),t);break}Zn(e,it,rn);break;case 4:if(Tn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Bt(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*y1(r/1960))-r,10<r){e.timeoutHandle=Na(Zn.bind(null,e,it,rn),r);break}Zn(e,it,rn);break;case 5:Zn(e,it,rn);break;default:throw Error(D(329))}}}return ct(e,Ne()),e.callbackNode===n?Uh.bind(null,e):null}function Qa(e,t){var n=Mo;return e.current.memoizedState.isDehydrated&&(nr(e,t).flags|=256),e=Es(e,t),e!==2&&(t=it,it=n,t!==null&&Xa(t)),e}function Xa(e){it===null?it=e:it.push.apply(it,e)}function g1(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(!Ht(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 Tn(e,t){for(t&=~tc,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Bt(t),r=1<<n;e[n]=-1,t&=~r}}function Gd(e){if((ie&6)!==0)throw Error(D(327));Vr();var t=os(e,0);if((t&1)===0)return ct(e,Ne()),null;var n=Es(e,t);if(e.tag!==0&&n===2){var r=Sa(e);r!==0&&(t=r,n=Qa(e,r))}if(n===1)throw n=qo,nr(e,0),Tn(e,t),ct(e,Ne()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Zn(e,it,rn),ct(e,Ne()),null}function rc(e,t){var n=ie;ie|=1;try{return e(t)}finally{ie=n,ie===0&&(Xr=Ne()+500,$s&&Wn())}}function ar(e){An!==null&&An.tag===0&&(ie&6)===0&&Vr();var t=ie;ie|=1;var n=Pt.transition,r=pe;try{if(Pt.transition=null,pe=1,e)return e()}finally{pe=r,Pt.transition=n,ie=t,(ie&6)===0&&Wn()}}function oc(){pt=br.current,xe(br)}function nr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,G0(n)),De!==null)for(n=De.return;n!==null;){var r=n;switch($u(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&us();break;case 3:Gr(),xe(at),xe(Ze),Yu();break;case 5:Ku(r);break;case 4:Gr();break;case 13:xe(Ce);break;case 19:xe(Ce);break;case 10:Bu(r.type._context);break;case 22:case 23:oc()}n=n.return}if(Fe=e,De=e=$n(e.current,null),Ue=pt=t,Me=0,qo=null,tc=Bs=lr=0,it=Mo=null,Jn!==null){for(t=0;t<Jn.length;t++)if(n=Jn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Jn=null}return e}function Hh(e,t){do{var n=De;try{if(zu(),Ui.current=gs,ys){for(var r=ke.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}ys=!1}if(sr=0,Le=be=ke=null,Io=!1,Qo=0,ec.current=null,n===null||n.return===null){Me=1,qo=t,De=null;break}e:{var i=e,s=n.return,l=n,a=t;if(t=Ue,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,f=l,c=f.tag;if((f.mode&1)===0&&(c===0||c===11||c===15)){var v=f.alternate;v?(f.updateQueue=v.updateQueue,f.memoizedState=v.memoizedState,f.lanes=v.lanes):(f.updateQueue=null,f.memoizedState=null)}var w=Od(s);if(w!==null){w.flags&=-257,Ld(w,s,l,i,t),w.mode&1&&Md(i,u,t),t=w,a=u;var S=t.updateQueue;if(S===null){var y=new Set;y.add(a),t.updateQueue=y}else S.add(a);break e}else{if((t&1)===0){Md(i,u,t),ic();break e}a=Error(D(426))}}else if(Se&&l.mode&1){var x=Od(s);if(x!==null){(x.flags&65536)===0&&(x.flags|=256),Ld(x,s,l,i,t),ju(Qr(a,l));break e}}i=a=Qr(a,l),Me!==4&&(Me=2),Mo===null?Mo=[i]:Mo.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var h=Ph(i,a,t);Td(i,h);break e;case 1:l=a;var p=i.type,m=i.stateNode;if((i.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Ln===null||!Ln.has(m)))){i.flags|=65536,t&=-t,i.lanes|=t;var g=Th(i,l,t);Td(i,g);break e}}i=i.return}while(i!==null)}Yh(n)}catch(E){t=E,De===n&&n!==null&&(De=n=n.return);continue}break}while(!0)}function Wh(){var e=ws.current;return ws.current=gs,e===null?gs:e}function ic(){(Me===0||Me===3||Me===2)&&(Me=4),Fe===null||(lr&268435455)===0&&(Bs&268435455)===0||Tn(Fe,Ue)}function Es(e,t){var n=ie;ie|=2;var r=Wh();(Fe!==e||Ue!==t)&&(rn=null,nr(e,t));do try{w1();break}catch(o){Hh(e,o)}while(!0);if(zu(),ie=n,ws.current=r,De!==null)throw Error(D(261));return Fe=null,Ue=0,Me}function w1(){for(;De!==null;)Kh(De)}function x1(){for(;De!==null&&!Wg();)Kh(De)}function Kh(e){var t=Qh(e.alternate,e,pt);e.memoizedProps=e.pendingProps,t===null?Yh(e):De=t,ec.current=null}function Yh(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=f1(n,t,pt),n!==null){De=n;return}}else{if(n=p1(n,t),n!==null){n.flags&=32767,De=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Me=6,De=null;return}}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Me===0&&(Me=5)}function Zn(e,t,n){var r=pe,o=Pt.transition;try{Pt.transition=null,pe=1,S1(e,t,n,r)}finally{Pt.transition=o,pe=r}return null}function S1(e,t,n,r){do Vr();while(An!==null);if((ie&6)!==0)throw Error(D(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(D(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(t0(e,i),e===Fe&&(De=Fe=null,Ue=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Ni||(Ni=!0,Xh(rs,function(){return Vr(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=Pt.transition,Pt.transition=null;var s=pe;pe=1;var l=ie;ie|=4,ec.current=null,m1(e,n),zh(n,e),z0(Pa),is=!!Ra,Pa=Ra=null,e.current=n,v1(n),Kg(),ie=l,pe=s,Pt.transition=i}else e.current=n;if(Ni&&(Ni=!1,An=e,Ss=o),i=e.pendingLanes,i===0&&(Ln=null),Qg(n.stateNode),ct(e,Ne()),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(xs)throw xs=!1,e=Ya,Ya=null,e;return(Ss&1)!==0&&e.tag!==0&&Vr(),i=e.pendingLanes,(i&1)!==0?e===Ga?Oo++:(Oo=0,Ga=e):Oo=0,Wn(),null}function Vr(){if(An!==null){var e=Pp(Ss),t=Pt.transition,n=pe;try{if(Pt.transition=null,pe=16>e?16:e,An===null)var r=!1;else{if(e=An,An=null,Ss=0,(ie&6)!==0)throw Error(D(331));var o=ie;for(ie|=4,j=e.current;j!==null;){var i=j,s=i.child;if((j.flags&16)!==0){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(j=u;j!==null;){var f=j;switch(f.tag){case 0:case 11:case 15:bo(8,f,i)}var c=f.child;if(c!==null)c.return=f,j=c;else for(;j!==null;){f=j;var v=f.sibling,w=f.return;if($h(f),f===u){j=null;break}if(v!==null){v.return=w,j=v;break}j=w}}}var S=i.alternate;if(S!==null){var y=S.child;if(y!==null){S.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}j=i}}if((i.subtreeFlags&2064)!==0&&s!==null)s.return=i,j=s;else e:for(;j!==null;){if(i=j,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:bo(9,i,i.return)}var h=i.sibling;if(h!==null){h.return=i.return,j=h;break e}j=i.return}}var p=e.current;for(j=p;j!==null;){s=j;var m=s.child;if((s.subtreeFlags&2064)!==0&&m!==null)m.return=s,j=m;else e:for(s=p;j!==null;){if(l=j,(l.flags&2048)!==0)try{switch(l.tag){case 0:case 11:case 15:zs(9,l)}}catch(E){Pe(l,l.return,E)}if(l===s){j=null;break e}var g=l.sibling;if(g!==null){g.return=l.return,j=g;break e}j=l.return}}if(ie=o,Wn(),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(bs,e)}catch{}r=!0}return r}finally{pe=n,Pt.transition=t}}return!1}function Qd(e,t,n){t=Qr(n,t),t=Ph(e,t,1),e=On(e,t,1),t=et(),e!==null&&(ri(e,1,t),ct(e,t))}function Pe(e,t,n){if(e.tag===3)Qd(e,e,n);else for(;t!==null;){if(t.tag===3){Qd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ln===null||!Ln.has(r))){e=Qr(n,e),e=Th(t,e,1),t=On(t,e,1),e=et(),t!==null&&(ri(t,1,e),ct(t,e));break}}t=t.return}}function E1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=et(),e.pingedLanes|=e.suspendedLanes&n,Fe===e&&(Ue&n)===n&&(Me===4||Me===3&&(Ue&130023424)===Ue&&500>Ne()-nc?nr(e,0):tc|=n),ct(e,t)}function Gh(e,t){t===0&&((e.mode&1)===0?t=1:(t=wi,wi<<=1,(wi&130023424)===0&&(wi=4194304)));var n=et();e=pn(e,t),e!==null&&(ri(e,t,n),ct(e,n))}function C1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gh(e,n)}function k1(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(D(314))}r!==null&&r.delete(t),Gh(e,n)}var Qh;Qh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||at.current)st=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return st=!1,d1(e,t,n);st=(e.flags&131072)!==0}else st=!1,Se&&(t.flags&1048576)!==0&&Jp(t,fs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wi(e,t),e=t.pendingProps;var o=Wr(t,Ze.current);jr(t,n),o=Qu(null,t,r,e,o,n);var i=Xu();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,ut(r)?(i=!0,cs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Hu(t),o.updater=Vs,t.stateNode=o,o._reactInternals=t,La(t,r,e,n),t=ja(null,t,r,!0,i,n)):(t.tag=0,Se&&i&&Fu(t),Je(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=R1(r),e=Ft(r,e),o){case 0:t=$a(null,t,r,e,n);break e;case 1:t=jd(null,t,r,e,n);break e;case 11:t=Fd(null,t,r,e,n);break e;case 14:t=$d(null,t,r,Ft(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),$a(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),jd(e,t,r,o,n);case 3:e:{if(Ih(t),e===null)throw Error(D(387));r=t.pendingProps,i=t.memoizedState,o=i.element,ih(e,t),ms(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Qr(Error(D(423)),t),t=Vd(e,t,r,n,o);break e}else if(r!==o){o=Qr(Error(D(424)),t),t=Vd(e,t,r,n,o);break e}else for(vt=Mn(t.stateNode.containerInfo.firstChild),yt=t,Se=!0,jt=null,n=rh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kr(),r===o){t=hn(e,t,n);break e}Je(e,t,r,n)}t=t.child}return t;case 5:return sh(t),e===null&&ba(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ta(r,o)?s=null:i!==null&&Ta(r,i)&&(t.flags|=32),Dh(e,t),Je(e,t,s,n),t.child;case 6:return e===null&&ba(t),null;case 13:return bh(e,t,n);case 4:return Wu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yr(t,null,r,n):Je(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Fd(e,t,r,o,n);case 7:return Je(e,t,t.pendingProps,n),t.child;case 8:return Je(e,t,t.pendingProps.children,n),t.child;case 12:return Je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ye(ps,r._currentValue),r._currentValue=s,i!==null)if(Ht(i.value,s)){if(i.children===o.children&&!at.current){t=hn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=an(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ma(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(D(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ma(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Je(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jr(t,n),o=Tt(o),r=r(o),t.flags|=1,Je(e,t,r,n),t.child;case 14:return r=t.type,o=Ft(r,t.pendingProps),o=Ft(r.type,o),$d(e,t,r,o,n);case 15:return Nh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Wi(e,t),t.tag=1,ut(r)?(e=!0,cs(t)):e=!1,jr(t,n),Rh(t,r,o),La(t,r,o,n),ja(null,t,r,!0,e,n);case 19:return Mh(e,t,n);case 22:return Ah(e,t,n)}throw Error(D(156,t.tag))};function Xh(e,t){return Cp(e,t)}function _1(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 Rt(e,t,n,r){return new _1(e,t,n,r)}function sc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function R1(e){if(typeof e=="function")return sc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_u)return 11;if(e===Ru)return 14}return 2}function $n(e,t){var n=e.alternate;return n===null?(n=Rt(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 Gi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")sc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Cr:return rr(n.children,o,i,t);case ku:s=8,o|=8;break;case sa:return e=Rt(12,n,t,o|2),e.elementType=sa,e.lanes=i,e;case la:return e=Rt(13,n,t,o),e.elementType=la,e.lanes=i,e;case aa:return e=Rt(19,n,t,o),e.elementType=aa,e.lanes=i,e;case sp:return Us(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case op:s=10;break e;case ip:s=9;break e;case _u:s=11;break e;case Ru:s=14;break e;case kn:s=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Rt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function rr(e,t,n,r){return e=Rt(7,e,r,t),e.lanes=n,e}function Us(e,t,n,r){return e=Rt(22,e,r,t),e.elementType=sp,e.lanes=n,e.stateNode={isHidden:!1},e}function Fl(e,t,n){return e=Rt(6,e,null,t),e.lanes=n,e}function $l(e,t,n){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function P1(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=gl(0),this.expirationTimes=gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function lc(e,t,n,r,o,i,s,l,a){return e=new P1(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Rt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hu(i),e}function T1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Er,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Zh(e){if(!e)return zn;e=e._reactInternals;e:{if(hr(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ut(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(ut(n))return Zp(e,n,t)}return t}function qh(e,t,n,r,o,i,s,l,a){return e=lc(n,r,!0,e,o,i,s,l,a),e.context=Zh(null),n=e.current,r=et(),o=Fn(n),i=an(r,o),i.callback=t??null,On(n,i,o),e.current.lanes=o,ri(e,o,r),ct(e,r),e}function Hs(e,t,n,r){var o=t.current,i=et(),s=Fn(o);return n=Zh(n),t.context===null?t.context=n:t.pendingContext=n,t=an(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=On(o,t,s),e!==null&&(Ut(e,o,s,i),Bi(e,o,s)),s}function Cs(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 Xd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ac(e,t){Xd(e,t),(e=e.alternate)&&Xd(e,t)}function N1(){return null}var Jh=typeof reportError=="function"?reportError:function(e){console.error(e)};function uc(e){this._internalRoot=e}Ws.prototype.render=uc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));Hs(e,t,null,null)};Ws.prototype.unmount=uc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ar(function(){Hs(null,e,null,null)}),t[fn]=null}};function Ws(e){this._internalRoot=e}Ws.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ap();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pn.length&&t!==0&&t<Pn[n].priority;n++);Pn.splice(n,0,e),n===0&&Ip(e)}};function cc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ks(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Zd(){}function A1(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Cs(s);i.call(u)}}var s=qh(t,r,e,0,null,!1,!1,"",Zd);return e._reactRootContainer=s,e[fn]=s.current,Ho(e.nodeType===8?e.parentNode:e),ar(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Cs(a);l.call(u)}}var a=lc(e,0,!1,null,null,!1,!1,"",Zd);return e._reactRootContainer=a,e[fn]=a.current,Ho(e.nodeType===8?e.parentNode:e),ar(function(){Hs(t,a,n,r)}),a}function Ys(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var l=o;o=function(){var a=Cs(s);l.call(a)}}Hs(t,s,e,o)}else s=A1(n,t,e,o,r);return Cs(s)}Tp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ko(t.pendingLanes);n!==0&&(Nu(t,n|1),ct(t,Ne()),(ie&6)===0&&(Xr=Ne()+500,Wn()))}break;case 13:ar(function(){var r=pn(e,1);if(r!==null){var o=et();Ut(r,e,1,o)}}),ac(e,1)}};Au=function(e){if(e.tag===13){var t=pn(e,134217728);if(t!==null){var n=et();Ut(t,e,134217728,n)}ac(e,134217728)}};Np=function(e){if(e.tag===13){var t=Fn(e),n=pn(e,t);if(n!==null){var r=et();Ut(n,e,t,r)}ac(e,t)}};Ap=function(){return pe};Dp=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};ga=function(e,t,n){switch(t){case"input":if(da(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=Fs(r);if(!o)throw Error(D(90));ap(r),da(r,o)}}}break;case"textarea":cp(e,n);break;case"select":t=n.value,t!=null&&Or(e,!!n.multiple,t,!1)}};yp=rc;gp=ar;var D1={usingClientEntryPoint:!1,Events:[ii,Pr,Fs,mp,vp,rc]},wo={findFiberByHostInstance:qn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},I1={bundleType:wo.bundleType,version:wo.version,rendererPackageName:wo.rendererPackageName,rendererConfig:wo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:vn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Sp(e),e===null?null:e.stateNode},findFiberByHostInstance:wo.findFiberByHostInstance||N1,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 Ai=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ai.isDisabled&&Ai.supportsFiber)try{bs=Ai.inject(I1),Jt=Ai}catch{}}wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D1;wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cc(t))throw Error(D(200));return T1(e,t,null,n)};wt.createRoot=function(e,t){if(!cc(e))throw Error(D(299));var n=!1,r="",o=Jh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=lc(e,1,!1,null,null,n,!1,r,o),e[fn]=t.current,Ho(e.nodeType===8?e.parentNode:e),new uc(t)};wt.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(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=Sp(t),e=e===null?null:e.stateNode,e};wt.flushSync=function(e){return ar(e)};wt.hydrate=function(e,t,n){if(!Ks(t))throw Error(D(200));return Ys(null,e,t,!0,n)};wt.hydrateRoot=function(e,t,n){if(!cc(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=Jh;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=qh(t,null,e,1,n??null,o,!1,i,s),e[fn]=t.current,Ho(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 Ws(t)};wt.render=function(e,t,n){if(!Ks(t))throw Error(D(200));return Ys(null,e,t,!1,n)};wt.unmountComponentAtNode=function(e){if(!Ks(e))throw Error(D(40));return e._reactRootContainer?(ar(function(){Ys(null,null,e,!1,function(){e._reactRootContainer=null,e[fn]=null})}),!0):!1};wt.unstable_batchedUpdates=rc;wt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ks(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return Ys(e,t,n,!1,r)};wt.version="18.3.1-next-f1338f8080-20240426";function em(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(em)}catch(e){console.error(e)}}em(),np.exports=wt;var no=np.exports;const tm=Hf(no);var qd=no;Kc.createRoot=qd.createRoot,Kc.hydrateRoot=qd.hydrateRoot;/**
|
|
33
|
+
* react-router v7.9.6
|
|
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 Jd="popstate";function b1(e={}){function t(r,o){let{pathname:i,search:s,hash:l}=r.location;return Za("",{pathname:i,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Jo(o)}return O1(t,n,null,e)}function Ee(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function At(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function M1(){return Math.random().toString(36).substring(2,10)}function ef(e,t){return{usr:e.state,key:e.key,idx:t}}function Za(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ro(t):t,state:n,key:t&&t.key||r||M1()}}function Jo({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 ro(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 O1(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l="POP",a=null,u=f();u==null&&(u=0,s.replaceState({...s.state,idx:u},""));function f(){return(s.state||{idx:null}).idx}function c(){l="POP";let x=f(),h=x==null?null:x-u;u=x,a&&a({action:l,location:y.location,delta:h})}function v(x,h){l="PUSH";let p=Za(y.location,x,h);u=f()+1;let m=ef(p,u),g=y.createHref(p);try{s.pushState(m,"",g)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(g)}i&&a&&a({action:l,location:y.location,delta:1})}function w(x,h){l="REPLACE";let p=Za(y.location,x,h);u=f();let m=ef(p,u),g=y.createHref(p);s.replaceState(m,"",g),i&&a&&a({action:l,location:y.location,delta:0})}function S(x){return L1(x)}let y={get action(){return l},get location(){return e(o,s)},listen(x){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(Jd,c),a=x,()=>{o.removeEventListener(Jd,c),a=null}},createHref(x){return t(o,x)},createURL:S,encodeLocation(x){let h=S(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:v,replace:w,go(x){return s.go(x)}};return y}function L1(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ee(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Jo(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function nm(e,t,n="/"){return F1(e,t,n,!1)}function F1(e,t,n,r){let o=typeof t=="string"?ro(t):t,i=mn(o.pathname||"/",n);if(i==null)return null;let s=rm(e);$1(s);let l=null;for(let a=0;l==null&&a<s.length;++a){let u=Q1(i);l=Y1(s[a],u,r)}return l}function rm(e,t=[],n=[],r="",o=!1){let i=(s,l,a=o,u)=>{let f={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&a)return;Ee(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let c=un([r,f.relativePath]),v=n.concat(f);s.children&&s.children.length>0&&(Ee(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),rm(s.children,t,v,c,a)),!(s.path==null&&!s.index)&&t.push({path:c,score:W1(c,s.index),routesMeta:v})};return e.forEach((s,l)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,l);else for(let u of om(s.path))i(s,l,!0,u)}),t}function om(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 s=om(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function $1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:K1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var j1=/^:[\w-]+$/,V1=3,z1=2,B1=1,U1=10,H1=-2,tf=e=>e==="*";function W1(e,t){let n=e.split("/"),r=n.length;return n.some(tf)&&(r+=H1),t&&(r+=z1),n.filter(o=>!tf(o)).reduce((o,i)=>o+(j1.test(i)?V1:i===""?B1:U1),r)}function K1(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 Y1(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l<r.length;++l){let a=r[l],u=l===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",c=ks({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},f),v=a.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=ks({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},f)),!c)return null;Object.assign(o,c.params),s.push({params:o,pathname:un([i,c.pathname]),pathnameBase:ew(un([i,c.pathnameBase])),route:v}),c.pathnameBase!=="/"&&(i=un([i,c.pathnameBase]))}return s}function ks(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=G1(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,{paramName:f,isOptional:c},v)=>{if(f==="*"){let S=l[v]||"";s=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const w=l[v];return c&&!w?u[f]=void 0:u[f]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function G1(e,t=!1,n=!0){At(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,(s,l,a)=>(r.push({paramName:l,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 Q1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return At(!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 mn(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)||"/"}var X1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Z1=e=>X1.test(e);function q1(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ro(e):e,i;if(n)if(Z1(n))i=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),At(!1,`Pathnames cannot have embedded double slashes - normalizing ${s} -> ${n}`)}n.startsWith("/")?i=nf(n.substring(1),"/"):i=nf(n,t)}else i=t;return{pathname:i,search:tw(r),hash:nw(o)}}function nf(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 jl(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 J1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function dc(e){let t=J1(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function fc(e,t,n,r=!1){let o;typeof e=="string"?o=ro(e):(o={...e},Ee(!o.pathname||!o.pathname.includes("?"),jl("?","pathname","search",o)),Ee(!o.pathname||!o.pathname.includes("#"),jl("#","pathname","hash",o)),Ee(!o.search||!o.search.includes("#"),jl("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(s==null)l=n;else{let c=t.length-1;if(!r&&s.startsWith("..")){let v=s.split("/");for(;v[0]==="..";)v.shift(),c-=1;o.pathname=v.join("/")}l=c>=0?t[c]:"/"}let a=q1(o,l),u=s&&s!=="/"&&s.endsWith("/"),f=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||f)&&(a.pathname+="/"),a}var un=e=>e.join("/").replace(/\/\/+/g,"/"),ew=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),tw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function rw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var im=["POST","PUT","PATCH","DELETE"];new Set(im);var ow=["GET",...im];new Set(ow);var oo=d.createContext(null);oo.displayName="DataRouter";var Gs=d.createContext(null);Gs.displayName="DataRouterState";d.createContext(!1);var sm=d.createContext({isTransitioning:!1});sm.displayName="ViewTransition";var iw=d.createContext(new Map);iw.displayName="Fetchers";var sw=d.createContext(null);sw.displayName="Await";var Wt=d.createContext(null);Wt.displayName="Navigation";var li=d.createContext(null);li.displayName="Location";var tn=d.createContext({outlet:null,matches:[],isDataRoute:!1});tn.displayName="Route";var pc=d.createContext(null);pc.displayName="RouteError";function lw(e,{relative:t}={}){Ee(io(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=d.useContext(Wt),{hash:o,pathname:i,search:s}=ai(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:un([n,i])),r.createHref({pathname:l,search:s,hash:o})}function io(){return d.useContext(li)!=null}function Kn(){return Ee(io(),"useLocation() may be used only in the context of a <Router> component."),d.useContext(li).location}var lm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function am(e){d.useContext(Wt).static||d.useLayoutEffect(e)}function um(){let{isDataRoute:e}=d.useContext(tn);return e?xw():aw()}function aw(){Ee(io(),"useNavigate() may be used only in the context of a <Router> component.");let e=d.useContext(oo),{basename:t,navigator:n}=d.useContext(Wt),{matches:r}=d.useContext(tn),{pathname:o}=Kn(),i=JSON.stringify(dc(r)),s=d.useRef(!1);return am(()=>{s.current=!0}),d.useCallback((a,u={})=>{if(At(s.current,lm),!s.current)return;if(typeof a=="number"){n.go(a);return}let f=fc(a,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:un([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,i,o,e])}d.createContext(null);function ai(e,{relative:t}={}){let{matches:n}=d.useContext(tn),{pathname:r}=Kn(),o=JSON.stringify(dc(n));return d.useMemo(()=>fc(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function uw(e,t){return cm(e,t)}function cm(e,t,n,r,o){var p;Ee(io(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=d.useContext(Wt),{matches:s}=d.useContext(tn),l=s[s.length-1],a=l?l.params:{},u=l?l.pathname:"/",f=l?l.pathnameBase:"/",c=l&&l.route;{let m=c&&c.path||"";dm(u,!c||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${m}">) 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="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let v=Kn(),w;if(t){let m=typeof t=="string"?ro(t):t;Ee(f==="/"||((p=m.pathname)==null?void 0:p.startsWith(f)),`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 "${f}" but pathname "${m.pathname}" was given in the \`location\` prop.`),w=m}else w=v;let S=w.pathname||"/",y=S;if(f!=="/"){let m=f.replace(/^\//,"").split("/");y="/"+S.replace(/^\//,"").split("/").slice(m.length).join("/")}let x=nm(e,{pathname:y});At(c||x!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),At(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.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=hw(x&&x.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:un([f,i.encodeLocation?i.encodeLocation(m.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?f:un([f,i.encodeLocation?i.encodeLocation(m.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),s,n,r,o);return t&&h?d.createElement(li.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},h):h}function cw(){let e=ww(),t=rw(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},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=d.createElement(d.Fragment,null,d.createElement("p",null,"💿 Hey developer 👋"),d.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",d.createElement("code",{style:i},"ErrorBoundary")," or"," ",d.createElement("code",{style:i},"errorElement")," prop on your route.")),d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),n?d.createElement("pre",{style:o},n):null,s)}var dw=d.createElement(cw,null),fw=class extends d.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.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?d.createElement(tn.Provider,{value:this.props.routeContext},d.createElement(pc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function pw({routeContext:e,match:t,children:n}){let r=d.useContext(oo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),d.createElement(tn.Provider,{value:e},n)}function hw(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,s=n==null?void 0:n.errors;if(s!=null){let f=i.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);Ee(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,f+1))}let l=!1,a=-1;if(n)for(let f=0;f<i.length;f++){let c=i[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(a=f),c.route.id){let{loaderData:v,errors:w}=n,S=c.route.loader&&!v.hasOwnProperty(c.route.id)&&(!w||w[c.route.id]===void 0);if(c.route.lazy||S){l=!0,a>=0?i=i.slice(0,a+1):i=[i[0]];break}}}let u=n&&r?(f,c)=>{var v,w;r(f,{location:n.location,params:((w=(v=n.matches)==null?void 0:v[0])==null?void 0:w.params)??{},errorInfo:c})}:void 0;return i.reduceRight((f,c,v)=>{let w,S=!1,y=null,x=null;n&&(w=s&&c.route.id?s[c.route.id]:void 0,y=c.route.errorElement||dw,l&&(a<0&&v===0?(dm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,x=null):a===v&&(S=!0,x=c.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,v+1)),p=()=>{let m;return w?m=y:S?m=x:c.route.Component?m=d.createElement(c.route.Component,null):c.route.element?m=c.route.element:m=f,d.createElement(pw,{match:c,routeContext:{outlet:f,matches:h,isDataRoute:n!=null},children:m})};return n&&(c.route.ErrorBoundary||c.route.errorElement||v===0)?d.createElement(fw,{location:n.location,revalidation:n.revalidation,component:y,error:w,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):p()},null)}function hc(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mw(e){let t=d.useContext(oo);return Ee(t,hc(e)),t}function vw(e){let t=d.useContext(Gs);return Ee(t,hc(e)),t}function yw(e){let t=d.useContext(tn);return Ee(t,hc(e)),t}function mc(e){let t=yw(e),n=t.matches[t.matches.length-1];return Ee(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function gw(){return mc("useRouteId")}function ww(){var r;let e=d.useContext(pc),t=vw("useRouteError"),n=mc("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function xw(){let{router:e}=mw("useNavigate"),t=mc("useNavigate"),n=d.useRef(!1);return am(()=>{n.current=!0}),d.useCallback(async(o,i={})=>{At(n.current,lm),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var rf={};function dm(e,t,n){!t&&!rf[e]&&(rf[e]=!0,At(!1,n))}d.memo(Sw);function Sw({routes:e,future:t,state:n,unstable_onError:r}){return cm(e,void 0,n,r,t)}function __({to:e,replace:t,state:n,relative:r}){Ee(io(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=d.useContext(Wt);At(!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}=d.useContext(tn),{pathname:s}=Kn(),l=um(),a=fc(e,dc(i),s,r==="path"),u=JSON.stringify(a);return d.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function Ew(e){Ee(!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 Cw({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){Ee(!io(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=d.useMemo(()=>({basename:s,navigator:o,static:i,future:{}}),[s,o,i]);typeof n=="string"&&(n=ro(n));let{pathname:a="/",search:u="",hash:f="",state:c=null,key:v="default"}=n,w=d.useMemo(()=>{let S=mn(a,s);return S==null?null:{location:{pathname:S,search:u,hash:f,state:c,key:v},navigationType:r}},[s,a,u,f,c,v,r]);return At(w!=null,`<Router basename="${s}"> is not able to match the URL "${a}${u}${f}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:d.createElement(Wt.Provider,{value:l},d.createElement(li.Provider,{children:t,value:w}))}function R_({children:e,location:t}){return uw(qa(e),t)}function qa(e,t=[]){let n=[];return d.Children.forEach(e,(r,o)=>{if(!d.isValidElement(r))return;let i=[...t,o];if(r.type===d.Fragment){n.push.apply(n,qa(r.props.children,i));return}Ee(r.type===Ew,`[${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>`),Ee(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={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,middleware:r.props.middleware,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&&(s.children=qa(r.props.children,i)),n.push(s)}),n}var Qi="get",Xi="application/x-www-form-urlencoded";function Qs(e){return e!=null&&typeof e.tagName=="string"}function kw(e){return Qs(e)&&e.tagName.toLowerCase()==="button"}function _w(e){return Qs(e)&&e.tagName.toLowerCase()==="form"}function Rw(e){return Qs(e)&&e.tagName.toLowerCase()==="input"}function Pw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Tw(e,t){return e.button===0&&(!t||t==="_self")&&!Pw(e)}var Di=null;function Nw(){if(Di===null)try{new FormData(document.createElement("form"),0),Di=!1}catch{Di=!0}return Di}var Aw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vl(e){return e!=null&&!Aw.has(e)?(At(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xi}"`),null):e}function Dw(e,t){let n,r,o,i,s;if(_w(e)){let l=e.getAttribute("action");r=l?mn(l,t):null,n=e.getAttribute("method")||Qi,o=Vl(e.getAttribute("enctype"))||Xi,i=new FormData(e)}else if(kw(e)||Rw(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||l.getAttribute("action");if(r=a?mn(a,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Qi,o=Vl(e.getAttribute("formenctype"))||Vl(l.getAttribute("enctype"))||Xi,i=new FormData(l,e),!Nw()){let{name:u,type:f,value:c}=e;if(f==="image"){let v=u?`${u}.`:"";i.append(`${v}x`,"0"),i.append(`${v}y`,"0")}else u&&i.append(u,c)}}else{if(Qs(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Qi,r=null,o=Xi,s=e}return i&&o==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function vc(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Iw(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&&mn(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function bw(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 Mw(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 Ow(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let s=await bw(i,n);return s.links?s.links():[]}return[]}));return jw(r.flat(1).filter(Mw).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function of(e,t,n,r,o,i){let s=(a,u)=>n[u]?a.route.id!==n[u].route.id:!0,l=(a,u)=>{var f;return n[u].pathname!==a.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==a.params["*"]};return i==="assets"?t.filter((a,u)=>s(a,u)||l(a,u)):i==="data"?t.filter((a,u)=>{var c;let f=r.routes[a.route.id];if(!f||!f.hasLoader)return!1;if(s(a,u)||l(a,u))return!0;if(a.route.shouldRevalidate){let v=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 v=="boolean")return v}return!0}):[]}function Lw(e,t,{includeHydrateFallback:n}={}){return Fw(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 Fw(e){return[...new Set(e)]}function $w(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function jw(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify($w(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function fm(){let e=d.useContext(oo);return vc(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Vw(){let e=d.useContext(Gs);return vc(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var yc=d.createContext(void 0);yc.displayName="FrameworkContext";function pm(){let e=d.useContext(yc);return vc(e,"You must render this element inside a <HydratedRouter> element"),e}function zw(e,t){let n=d.useContext(yc),[r,o]=d.useState(!1),[i,s]=d.useState(!1),{onFocus:l,onBlur:a,onMouseEnter:u,onMouseLeave:f,onTouchStart:c}=t,v=d.useRef(null);d.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let y=h=>{h.forEach(p=>{s(p.isIntersecting)})},x=new IntersectionObserver(y,{threshold:.5});return v.current&&x.observe(v.current),()=>{x.disconnect()}}},[e]),d.useEffect(()=>{if(r){let y=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(y)}}},[r]);let w=()=>{o(!0)},S=()=>{o(!1),s(!1)};return n?e!=="intent"?[i,v,{}]:[i,v,{onFocus:xo(l,w),onBlur:xo(a,S),onMouseEnter:xo(u,w),onMouseLeave:xo(f,S),onTouchStart:xo(c,w)}]:[!1,v,{}]}function xo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Bw({page:e,...t}){let{router:n}=fm(),r=d.useMemo(()=>nm(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?d.createElement(Hw,{page:e,matches:r,...t}):null}function Uw(e){let{manifest:t,routeModules:n}=pm(),[r,o]=d.useState([]);return d.useEffect(()=>{let i=!1;return Ow(e,t,n).then(s=>{i||o(s)}),()=>{i=!0}},[e,t,n]),r}function Hw({page:e,matches:t,...n}){let r=Kn(),{manifest:o,routeModules:i}=pm(),{basename:s}=fm(),{loaderData:l,matches:a}=Vw(),u=d.useMemo(()=>of(e,t,a,o,r,"data"),[e,t,a,o,r]),f=d.useMemo(()=>of(e,t,a,o,r,"assets"),[e,t,a,o,r]),c=d.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,y=!1;if(t.forEach(h=>{var m;let p=o.routes[h.route.id];!p||!p.hasLoader||(!u.some(g=>g.route.id===h.route.id)&&h.route.id in l&&((m=i[h.route.id])!=null&&m.shouldRevalidate)||p.hasClientLoader?y=!0:S.add(h.route.id))}),S.size===0)return[];let x=Iw(e,s,"data");return y&&S.size>0&&x.searchParams.set("_routes",t.filter(h=>S.has(h.route.id)).map(h=>h.route.id).join(",")),[x.pathname+x.search]},[s,l,r,o,u,t,e,i]),v=d.useMemo(()=>Lw(f,o),[f,o]),w=Uw(f);return d.createElement(d.Fragment,null,c.map(S=>d.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),v.map(S=>d.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),w.map(({key:S,link:y})=>d.createElement("link",{key:S,nonce:n.nonce,...y})))}function Ww(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var hm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{hm&&(window.__reactRouterVersion="7.9.6")}catch{}function P_({basename:e,children:t,window:n}){let r=d.useRef();r.current==null&&(r.current=b1({window:n,v5Compat:!0}));let o=r.current,[i,s]=d.useState({action:o.action,location:o.location}),l=d.useCallback(a=>{d.startTransition(()=>s(a))},[s]);return d.useLayoutEffect(()=>o.listen(l),[o,l]),d.createElement(Cw,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o})}var mm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vm=d.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:s,state:l,target:a,to:u,preventScrollReset:f,viewTransition:c,...v},w){let{basename:S}=d.useContext(Wt),y=typeof u=="string"&&mm.test(u),x,h=!1;if(typeof u=="string"&&y&&(x=u,hm))try{let $=new URL(window.location.href),F=u.startsWith("//")?new URL($.protocol+u):new URL(u),W=mn(F.pathname,S);F.origin===$.origin&&W!=null?u=W+F.search+F.hash:h=!0}catch{At(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let p=lw(u,{relative:o}),[m,g,E]=zw(r,v),_=Qw(u,{replace:s,state:l,target:a,preventScrollReset:f,relative:o,viewTransition:c});function k($){t&&t($),$.defaultPrevented||_($)}let A=d.createElement("a",{...v,...E,href:x||p,onClick:h||i?t:k,ref:Ww(w,g),target:a,"data-discover":!y&&n==="render"?"true":void 0});return m&&!y?d.createElement(d.Fragment,null,A,d.createElement(Bw,{page:p})):A});vm.displayName="Link";var Kw=d.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:s,viewTransition:l,children:a,...u},f){let c=ai(s,{relative:u.relative}),v=Kn(),w=d.useContext(Gs),{navigator:S,basename:y}=d.useContext(Wt),x=w!=null&&ex(c)&&l===!0,h=S.encodeLocation?S.encodeLocation(c).pathname:c.pathname,p=v.pathname,m=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;n||(p=p.toLowerCase(),m=m?m.toLowerCase():null,h=h.toLowerCase()),m&&y&&(m=mn(m,y)||m);const g=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let E=p===h||!o&&p.startsWith(h)&&p.charAt(g)==="/",_=m!=null&&(m===h||!o&&m.startsWith(h)&&m.charAt(h.length)==="/"),k={isActive:E,isPending:_,isTransitioning:x},A=E?t:void 0,$;typeof r=="function"?$=r(k):$=[r,E?"active":null,_?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let F=typeof i=="function"?i(k):i;return d.createElement(vm,{...u,"aria-current":A,className:$,ref:f,style:F,to:s,viewTransition:l},typeof a=="function"?a(k):a)});Kw.displayName="NavLink";var Yw=d.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:s=Qi,action:l,onSubmit:a,relative:u,preventScrollReset:f,viewTransition:c,...v},w)=>{let S=qw(),y=Jw(l,{relative:u}),x=s.toLowerCase()==="get"?"get":"post",h=typeof l=="string"&&mm.test(l),p=m=>{if(a&&a(m),m.defaultPrevented)return;m.preventDefault();let g=m.nativeEvent.submitter,E=(g==null?void 0:g.getAttribute("formmethod"))||s;S(g||m.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:o,state:i,relative:u,preventScrollReset:f,viewTransition:c})};return d.createElement("form",{ref:w,method:x,action:y,onSubmit:r?a:p,...v,"data-discover":!h&&e==="render"?"true":void 0})});Yw.displayName="Form";function Gw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ym(e){let t=d.useContext(oo);return Ee(t,Gw(e)),t}function Qw(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:s}={}){let l=um(),a=Kn(),u=ai(e,{relative:i});return d.useCallback(f=>{if(Tw(f,t)){f.preventDefault();let c=n!==void 0?n:Jo(a)===Jo(u);l(e,{replace:c,state:r,preventScrollReset:o,relative:i,viewTransition:s})}},[a,l,u,n,r,t,e,o,i,s])}var Xw=0,Zw=()=>`__${String(++Xw)}__`;function qw(){let{router:e}=ym("useSubmit"),{basename:t}=d.useContext(Wt),n=gw();return d.useCallback(async(r,o={})=>{let{action:i,method:s,encType:l,formData:a,body:u}=Dw(r,t);if(o.navigate===!1){let f=o.fetcherKey||Zw();await e.fetch(f,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:a,body:u,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:a,body:u,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function Jw(e,{relative:t}={}){let{basename:n}=d.useContext(Wt),r=d.useContext(tn);Ee(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...ai(e||".",{relative:t})},s=Kn();if(e==null){i.search=s.search;let l=new URLSearchParams(i.search),a=l.getAll("index");if(a.some(f=>f==="")){l.delete("index"),a.filter(c=>c).forEach(c=>l.append("index",c));let f=l.toString();i.search=f?`?${f}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:un([n,i.pathname])),Jo(i)}function ex(e,{relative:t}={}){let n=d.useContext(sm);Ee(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ym("useViewTransitionState"),o=ai(e,{relative:t});if(!n.isTransitioning)return!1;let i=mn(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=mn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ks(o.pathname,s)!=null||ks(o.pathname,i)!=null}var tx=(e,t,n,r,o,i,s,l)=>{let a=document.documentElement,u=["light","dark"];function f(w){(Array.isArray(e)?e:[e]).forEach(S=>{let y=S==="class",x=y&&i?o.map(h=>i[h]||h):o;y?(a.classList.remove(...x),a.classList.add(i&&i[w]?i[w]:w)):a.setAttribute(S,w)}),c(w)}function c(w){l&&u.includes(w)&&(a.style.colorScheme=w)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)f(r);else try{let w=localStorage.getItem(t)||n,S=s&&w==="system"?v():w;f(S)}catch{}},nx=d.createContext(void 0),rx={setTheme:e=>{},themes:[]},T_=()=>{var e;return(e=d.useContext(nx))!=null?e:rx};d.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,themes:l,nonce:a,scriptProps:u})=>{let f=JSON.stringify([n,t,i,e,l,s,r,o]).slice(1,-1);return d.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?a:"",dangerouslySetInnerHTML:{__html:`(${tx.toString()})(${f})`}})});function ox(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 ix=e=>{switch(e){case"success":return ax;case"info":return cx;case"warning":return ux;case"error":return dx;default:return null}},sx=Array(12).fill(0),lx=({visible:e,className:t})=>T.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},T.createElement("div",{className:"sonner-spinner"},sx.map((n,r)=>T.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),ax=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.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"})),ux=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},T.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"})),cx=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.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"})),dx=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.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"})),fx=T.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"},T.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),T.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),px=()=>{const[e,t]=T.useState(document.hidden);return T.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Ja=1;class hx{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:Ja++,s=this.toasts.find(a=>a.id===i),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...t,id:i,title:r}),{...a,...t,id:i,dismissible:l,title:r}):a):this.addToast({title:r,...o,dismissible:l,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,s;const l=o.then(async u=>{if(s=["resolve",u],T.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(vx(u)&&!u.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,S=typeof c=="object"&&!T.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:v,...S})}else if(u instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(u):n.error,v=typeof n.description=="function"?await n.description(u):n.description,S=typeof c=="object"&&!T.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:v,...S})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(u):n.success,v=typeof n.description=="function"?await n.description(u):n.description,S=typeof c=="object"&&!T.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:v,...S})}}).catch(async u=>{if(s=["reject",u],n.error!==void 0){i=!1;const f=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,w=typeof f=="object"&&!T.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:c,...w})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),a=()=>new Promise((u,f)=>l.then(()=>s[0]==="reject"?f(s[1]):u(s[1])).catch(f));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)||Ja++;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 rt=new hx,mx=(e,t)=>{const n=(t==null?void 0:t.id)||Ja++;return rt.addToast({title:e,...t,id:n}),n},vx=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",yx=mx,gx=()=>rt.toasts,wx=()=>rt.getActiveToasts(),N_=Object.assign(yx,{success:rt.success,info:rt.info,warning:rt.warning,error:rt.error,custom:rt.custom,message:rt.message,promise:rt.promise,dismiss:rt.dismiss,loading:rt.loading},{getHistory:gx,getToasts:wx});ox("[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 Ii(e){return e.label!==void 0}const xx=3,Sx="24px",Ex="16px",sf=4e3,Cx=356,kx=14,_x=45,Rx=200;function Xt(...e){return e.filter(Boolean).join(" ")}function Px(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Tx=e=>{var t,n,r,o,i,s,l,a,u;const{invert:f,toast:c,unstyled:v,interacting:w,setHeights:S,visibleToasts:y,heights:x,index:h,toasts:p,expanded:m,removeToast:g,defaultRichColors:E,closeButton:_,style:k,cancelButtonStyle:A,actionButtonStyle:$,className:F="",descriptionClassName:W="",duration:B,position:V,gap:G,expandByDefault:J,classNames:L,icons:K,closeButtonAriaLabel:Y="Close toast"}=e,[ae,de]=T.useState(null),[Ae,St]=T.useState(null),[X,se]=T.useState(!1),[le,Re]=T.useState(!1),[U,H]=T.useState(!1),[me,re]=T.useState(!1),[oe,ee]=T.useState(!1),[$e,je]=T.useState(0),[Yt,Gt]=T.useState(0),dt=T.useRef(c.duration||B||sf),lo=T.useRef(null),Ve=T.useRef(null),C=h===0,P=h+1<=y,N=c.type,O=c.dismissible!==!1,M=c.className||"",I=c.descriptionClassName||"",z=T.useMemo(()=>x.findIndex(Z=>Z.toastId===c.id)||0,[x,c.id]),ue=T.useMemo(()=>{var Z;return(Z=c.closeButton)!=null?Z:_},[c.closeButton,_]),fe=T.useMemo(()=>c.duration||B||sf,[c.duration,B]),We=T.useRef(0),Dt=T.useRef(0),It=T.useRef(0),wn=T.useRef(null),[ao,uo]=V.split("-"),di=T.useMemo(()=>x.reduce((Z,Oe,Ke)=>Ke>=z?Z:Z+Oe.height,0),[x,z]),co=px(),fl=c.invert||f,vr=N==="loading";Dt.current=T.useMemo(()=>z*G+di,[z,di]),T.useEffect(()=>{dt.current=fe},[fe]),T.useEffect(()=>{se(!0)},[]),T.useEffect(()=>{const Z=Ve.current;if(Z){const Oe=Z.getBoundingClientRect().height;return Gt(Oe),S(Ke=>[{toastId:c.id,height:Oe,position:c.position},...Ke]),()=>S(Ke=>Ke.filter(ft=>ft.toastId!==c.id))}},[S,c.id]),T.useLayoutEffect(()=>{if(!X)return;const Z=Ve.current,Oe=Z.style.height;Z.style.height="auto";const Ke=Z.getBoundingClientRect().height;Z.style.height=Oe,Gt(Ke),S(ft=>ft.find(ze=>ze.toastId===c.id)?ft.map(ze=>ze.toastId===c.id?{...ze,height:Ke}:ze):[{toastId:c.id,height:Ke,position:c.position},...ft])},[X,c.title,c.description,S,c.id,c.jsx,c.action,c.cancel]);const xn=T.useCallback(()=>{Re(!0),je(Dt.current),S(Z=>Z.filter(Oe=>Oe.toastId!==c.id)),setTimeout(()=>{g(c)},Rx)},[c,g,S,Dt]);T.useEffect(()=>{if(c.promise&&N==="loading"||c.duration===1/0||c.type==="loading")return;let Z;return m||w||co?(()=>{if(It.current<We.current){const ft=new Date().getTime()-We.current;dt.current=dt.current-ft}It.current=new Date().getTime()})():(()=>{dt.current!==1/0&&(We.current=new Date().getTime(),Z=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),xn()},dt.current))})(),()=>clearTimeout(Z)},[m,w,c,N,co,xn]),T.useEffect(()=>{c.delete&&(xn(),c.onDismiss==null||c.onDismiss.call(c,c))},[xn,c.delete]);function Ky(){var Z;if(K!=null&&K.loading){var Oe;return T.createElement("div",{className:Xt(L==null?void 0:L.loader,c==null||(Oe=c.classNames)==null?void 0:Oe.loader,"sonner-loader"),"data-visible":N==="loading"},K.loading)}return T.createElement(lx,{className:Xt(L==null?void 0:L.loader,c==null||(Z=c.classNames)==null?void 0:Z.loader),visible:N==="loading"})}const Yy=c.icon||(K==null?void 0:K[N])||ix(N);var $c,jc;return T.createElement("li",{tabIndex:0,ref:Ve,className:Xt(F,M,L==null?void 0:L.toast,c==null||(t=c.classNames)==null?void 0:t.toast,L==null?void 0:L.default,L==null?void 0:L[N],c==null||(n=c.classNames)==null?void 0:n[N]),"data-sonner-toast":"","data-rich-colors":($c=c.richColors)!=null?$c:E,"data-styled":!(c.jsx||c.unstyled||v),"data-mounted":X,"data-promise":!!c.promise,"data-swiped":oe,"data-removed":le,"data-visible":P,"data-y-position":ao,"data-x-position":uo,"data-index":h,"data-front":C,"data-swiping":U,"data-dismissible":O,"data-type":N,"data-invert":fl,"data-swipe-out":me,"data-swipe-direction":Ae,"data-expanded":!!(m||J&&X),"data-testid":c.testId,style:{"--index":h,"--toasts-before":h,"--z-index":p.length-h,"--offset":`${le?$e:Dt.current}px`,"--initial-height":J?"auto":`${Yt}px`,...k,...c.style},onDragEnd:()=>{H(!1),de(null),wn.current=null},onPointerDown:Z=>{Z.button!==2&&(vr||!O||(lo.current=new Date,je(Dt.current),Z.target.setPointerCapture(Z.pointerId),Z.target.tagName!=="BUTTON"&&(H(!0),wn.current={x:Z.clientX,y:Z.clientY})))},onPointerUp:()=>{var Z,Oe,Ke;if(me||!O)return;wn.current=null;const ft=Number(((Z=Ve.current)==null?void 0:Z.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),fi=Number(((Oe=Ve.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ze=new Date().getTime()-((Ke=lo.current)==null?void 0:Ke.getTime()),Et=ae==="x"?ft:fi,pi=Math.abs(Et)/ze;if(Math.abs(Et)>=_x||pi>.11){je(Dt.current),c.onDismiss==null||c.onDismiss.call(c,c),St(ae==="x"?ft>0?"right":"left":fi>0?"down":"up"),xn(),re(!0);return}else{var bt,Mt;(bt=Ve.current)==null||bt.style.setProperty("--swipe-amount-x","0px"),(Mt=Ve.current)==null||Mt.style.setProperty("--swipe-amount-y","0px")}ee(!1),H(!1),de(null)},onPointerMove:Z=>{var Oe,Ke,ft;if(!wn.current||!O||((Oe=window.getSelection())==null?void 0:Oe.toString().length)>0)return;const ze=Z.clientY-wn.current.y,Et=Z.clientX-wn.current.x;var pi;const bt=(pi=e.swipeDirections)!=null?pi:Px(V);!ae&&(Math.abs(Et)>1||Math.abs(ze)>1)&&de(Math.abs(Et)>Math.abs(ze)?"x":"y");let Mt={x:0,y:0};const Vc=Qn=>1/(1.5+Math.abs(Qn)/20);if(ae==="y"){if(bt.includes("top")||bt.includes("bottom"))if(bt.includes("top")&&ze<0||bt.includes("bottom")&&ze>0)Mt.y=ze;else{const Qn=ze*Vc(ze);Mt.y=Math.abs(Qn)<Math.abs(ze)?Qn:ze}}else if(ae==="x"&&(bt.includes("left")||bt.includes("right")))if(bt.includes("left")&&Et<0||bt.includes("right")&&Et>0)Mt.x=Et;else{const Qn=Et*Vc(Et);Mt.x=Math.abs(Qn)<Math.abs(Et)?Qn:Et}(Math.abs(Mt.x)>0||Math.abs(Mt.y)>0)&&ee(!0),(Ke=Ve.current)==null||Ke.style.setProperty("--swipe-amount-x",`${Mt.x}px`),(ft=Ve.current)==null||ft.style.setProperty("--swipe-amount-y",`${Mt.y}px`)}},ue&&!c.jsx&&N!=="loading"?T.createElement("button",{"aria-label":Y,"data-disabled":vr,"data-close-button":!0,onClick:vr||!O?()=>{}:()=>{xn(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Xt(L==null?void 0:L.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(jc=K==null?void 0:K.close)!=null?jc:fx):null,(N||c.icon||c.promise)&&c.icon!==null&&((K==null?void 0:K[N])!==null||c.icon)?T.createElement("div",{"data-icon":"",className:Xt(L==null?void 0:L.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Ky():null,c.type!=="loading"?Yy:null):null,T.createElement("div",{"data-content":"",className:Xt(L==null?void 0:L.content,c==null||(i=c.classNames)==null?void 0:i.content)},T.createElement("div",{"data-title":"",className:Xt(L==null?void 0:L.title,c==null||(s=c.classNames)==null?void 0:s.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?T.createElement("div",{"data-description":"",className:Xt(W,I,L==null?void 0:L.description,c==null||(l=c.classNames)==null?void 0:l.description)},typeof c.description=="function"?c.description():c.description):null),T.isValidElement(c.cancel)?c.cancel:c.cancel&&Ii(c.cancel)?T.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||A,onClick:Z=>{Ii(c.cancel)&&O&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,Z),xn())},className:Xt(L==null?void 0:L.cancelButton,c==null||(a=c.classNames)==null?void 0:a.cancelButton)},c.cancel.label):null,T.isValidElement(c.action)?c.action:c.action&&Ii(c.action)?T.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||$,onClick:Z=>{Ii(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,Z),!Z.defaultPrevented&&xn())},className:Xt(L==null?void 0:L.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function lf(){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 Nx(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",l=i?Ex:Sx;function a(u){["top","right","bottom","left"].forEach(f=>{n[`${s}-${f}`]=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[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}const A_=T.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:l,closeButton:a,className:u,offset:f,mobileOffset:c,theme:v="light",richColors:w,duration:S,style:y,visibleToasts:x=xx,toastOptions:h,dir:p=lf(),gap:m=kx,icons:g,containerAriaLabel:E="Notifications"}=t,[_,k]=T.useState([]),A=T.useMemo(()=>r?_.filter(X=>X.toasterId===r):_.filter(X=>!X.toasterId),[_,r]),$=T.useMemo(()=>Array.from(new Set([i].concat(A.filter(X=>X.position).map(X=>X.position)))),[A,i]),[F,W]=T.useState([]),[B,V]=T.useState(!1),[G,J]=T.useState(!1),[L,K]=T.useState(v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Y=T.useRef(null),ae=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),de=T.useRef(null),Ae=T.useRef(!1),St=T.useCallback(X=>{k(se=>{var le;return(le=se.find(Re=>Re.id===X.id))!=null&&le.delete||rt.dismiss(X.id),se.filter(({id:Re})=>Re!==X.id)})},[]);return T.useEffect(()=>rt.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{k(se=>se.map(le=>le.id===X.id?{...le,delete:!0}:le))});return}setTimeout(()=>{tm.flushSync(()=>{k(se=>{const le=se.findIndex(Re=>Re.id===X.id);return le!==-1?[...se.slice(0,le),{...se[le],...X},...se.slice(le+1)]:[X,...se]})})})}),[_]),T.useEffect(()=>{if(v!=="system"){K(v);return}if(v==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?K("dark"):K("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:se})=>{K(se?"dark":"light")})}catch{X.addListener(({matches:le})=>{try{K(le?"dark":"light")}catch(Re){console.error(Re)}})}},[v]),T.useEffect(()=>{_.length<=1&&V(!1)},[_]),T.useEffect(()=>{const X=se=>{var le;if(s.every(H=>se[H]||se.code===H)){var U;V(!0),(U=Y.current)==null||U.focus()}se.code==="Escape"&&(document.activeElement===Y.current||(le=Y.current)!=null&&le.contains(document.activeElement))&&V(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[s]),T.useEffect(()=>{if(Y.current)return()=>{de.current&&(de.current.focus({preventScroll:!0}),de.current=null,Ae.current=!1)}},[Y.current]),T.createElement("section",{ref:n,"aria-label":`${E} ${ae}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},$.map((X,se)=>{var le;const[Re,U]=X.split("-");return A.length?T.createElement("ol",{key:X,dir:p==="auto"?lf():p,tabIndex:-1,ref:Y,className:u,"data-sonner-toaster":!0,"data-sonner-theme":L,"data-y-position":Re,"data-x-position":U,style:{"--front-toast-height":`${((le=F[0])==null?void 0:le.height)||0}px`,"--width":`${Cx}px`,"--gap":`${m}px`,...y,...Nx(f,c)},onBlur:H=>{Ae.current&&!H.currentTarget.contains(H.relatedTarget)&&(Ae.current=!1,de.current&&(de.current.focus({preventScroll:!0}),de.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||Ae.current||(Ae.current=!0,de.current=H.relatedTarget)},onMouseEnter:()=>V(!0),onMouseMove:()=>V(!0),onMouseLeave:()=>{G||V(!1)},onDragEnd:()=>V(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},A.filter(H=>!H.position&&se===0||H.position===X).map((H,me)=>{var re,oe;return T.createElement(Tx,{key:H.id,icons:g,index:me,toast:H,defaultRichColors:w,duration:(re=h==null?void 0:h.duration)!=null?re:S,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:o,visibleToasts:x,closeButton:(oe=h==null?void 0:h.closeButton)!=null?oe:a,interacting:G,position:X,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:St,toasts:A.filter(ee=>ee.position==H.position),heights:F.filter(ee=>ee.position==H.position),setHeights:W,expandByDefault:l,gap:m,expanded:B,swipeDirections:t.swipeDirections})})):null}))}),af=e=>{let t;const n=new Set,r=(u,f)=>{const c=typeof u=="function"?u(t):u;if(!Object.is(c,t)){const v=t;t=f??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(w=>w(t,v))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=t=e(r,o,l);return l},Ax=(e=>e?af(e):af),Dx=e=>e;function Ix(e,t=Dx){const n=T.useSyncExternalStore(e.subscribe,T.useCallback(()=>t(e.getState()),[e,t]),T.useCallback(()=>t(e.getInitialState()),[e,t]));return T.useDebugValue(n),n}const bx=e=>{const t=Ax(e),n=r=>Ix(t,r);return Object.assign(n,t),n},D_=(e=>bx),uf={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},ei=new Map,bi=e=>{const t=ei.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},Mx=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=ei.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return ei.set(n.name,o),{type:"tracked",store:e,...o}},Ox=(e,t)=>{if(t===void 0)return;const n=ei.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&ei.delete(e))},Lx=e=>{var t,n;if(!e)return;const r=e.split(`
|
|
44
|
+
`),o=r.findIndex(s=>s.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]},Fx=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:s,store:l,...a}=t;let u;try{u=(i??(uf?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(n,r,o);const{connection:f,...c}=Mx(l,u,a);let v=!0;o.setState=((y,x,h)=>{const p=n(y,x);if(!v)return p;const m=h===void 0?{type:s||Lx(new Error().stack)||"anonymous"}:typeof h=="string"?{type:h}:h;return l===void 0?(f==null||f.send(m,r()),p):(f==null||f.send({...m,type:`${l}/${m.type}`},{...bi(a.name),[l]:o.getState()}),p)}),o.devtools={cleanup:()=>{f&&typeof f.unsubscribe=="function"&&f.unsubscribe(),Ox(a.name,l)}};const w=(...y)=>{const x=v;v=!1,n(...y),v=x},S=e(o.setState,r,o);if(c.type==="untracked"?f==null||f.init(S):(c.stores[c.store]=o,f==null||f.init(Object.fromEntries(Object.entries(c.stores).map(([y,x])=>[y,y===c.store?S:x.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let y=!1;const x=o.dispatch;o.dispatch=(...h)=>{(uf?"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),x(...h)}}return f.subscribe(y=>{var x;switch(y.type){case"ACTION":if(typeof y.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return zl(y.payload,h=>{if(h.type==="__setState"){if(l===void 0){w(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[l];if(p==null)return;JSON.stringify(o.getState())!==JSON.stringify(p)&&w(p);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(h)});case"DISPATCH":switch(y.payload.type){case"RESET":return w(S),l===void 0?f==null?void 0:f.init(o.getState()):f==null?void 0:f.init(bi(a.name));case"COMMIT":if(l===void 0){f==null||f.init(o.getState());return}return f==null?void 0:f.init(bi(a.name));case"ROLLBACK":return zl(y.state,h=>{if(l===void 0){w(h),f==null||f.init(o.getState());return}w(h[l]),f==null||f.init(bi(a.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return zl(y.state,h=>{if(l===void 0){w(h);return}JSON.stringify(o.getState())!==JSON.stringify(h[l])&&w(h[l])});case"IMPORT_STATE":{const{nextLiftedState:h}=y.payload,p=(x=h.computedStates.slice(-1)[0])==null?void 0:x.state;if(!p)return;w(l===void 0?p:p[l]),f==null||f.send(null,h);return}case"PAUSE_RECORDING":return v=!v}return}}),S},I_=Fx,zl=(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)},cf=e=>Symbol.iterator in e,df=e=>"entries"in e,ff=(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},$x=(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 jx(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:cf(e)&&cf(t)?df(e)&&df(t)?ff(e,t):$x(e,t):ff({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function b_(e){const t=T.useRef(void 0);return n=>{const r=e(n);return jx(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 Vx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zx=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),pf=e=>{const t=zx(e);return t.charAt(0).toUpperCase()+t.slice(1)},gm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Bx=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 Ux={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 Hx=d.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>d.createElement("svg",{ref:a,...Ux,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:gm("lucide",o),...!i&&!Bx(l)&&{"aria-hidden":"true"},...l},[...s.map(([u,f])=>d.createElement(u,f)),...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 q=(e,t)=>{const n=d.forwardRef(({className:r,...o},i)=>d.createElement(Hx,{ref:i,iconNode:t,className:gm(`lucide-${Vx(pf(e))}`,`lucide-${e}`,r),...o}));return n.displayName=pf(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 Wx=[["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"}]],M_=q("badge-info",Wx);/**
|
|
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 Kx=[["path",{d:"m16 22-1-4",key:"1ow2iv"}],["path",{d:"M19 13.99a1 1 0 0 0 1-1V12a2 2 0 0 0-2-2h-3a1 1 0 0 1-1-1V4a2 2 0 0 0-4 0v5a1 1 0 0 1-1 1H6a2 2 0 0 0-2 2v.99a1 1 0 0 0 1 1",key:"iw8jdu"}],["path",{d:"M5 14h14l1.973 6.767A1 1 0 0 1 20 22H4a1 1 0 0 1-.973-1.233z",key:"1soew8"}],["path",{d:"m8 22 1-4",key:"s3unb"}]],O_=q("brush-cleaning",Kx);/**
|
|
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 Yx=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],L_=q("calendar",Yx);/**
|
|
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 Gx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],F_=q("check",Gx);/**
|
|
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 Qx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],$_=q("chevron-down",Qx);/**
|
|
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 Xx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],j_=q("chevron-left",Xx);/**
|
|
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 Zx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],V_=q("chevron-right",Zx);/**
|
|
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 qx=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],z_=q("chevron-up",qx);/**
|
|
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 Jx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],B_=q("circle-alert",Jx);/**
|
|
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 eS=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],U_=q("circle-check-big",eS);/**
|
|
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 tS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],H_=q("circle-x",tS);/**
|
|
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 nS=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],W_=q("code",nS);/**
|
|
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 rS=[["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"}]],K_=q("coffee",rS);/**
|
|
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 oS=[["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"}]],Y_=q("copy",oS);/**
|
|
139
|
+
* @license lucide-react v0.523.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/const iS=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],G_=q("download",iS);/**
|
|
144
|
+
* @license lucide-react v0.523.0 - ISC
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the ISC license.
|
|
147
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/const sS=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Q_=q("external-link",sS);/**
|
|
149
|
+
* @license lucide-react v0.523.0 - ISC
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the ISC license.
|
|
152
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/const lS=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],X_=q("file-text",lS);/**
|
|
154
|
+
* @license lucide-react v0.523.0 - ISC
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the ISC license.
|
|
157
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
+
*/const aS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Z_=q("info",aS);/**
|
|
159
|
+
* @license lucide-react v0.523.0 - ISC
|
|
160
|
+
*
|
|
161
|
+
* This source code is licensed under the ISC license.
|
|
162
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
+
*/const uS=[["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"}]],q_=q("layout-dashboard",uS);/**
|
|
164
|
+
* @license lucide-react v0.523.0 - ISC
|
|
165
|
+
*
|
|
166
|
+
* This source code is licensed under the ISC license.
|
|
167
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
+
*/const cS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],J_=q("loader-circle",cS);/**
|
|
169
|
+
* @license lucide-react v0.523.0 - ISC
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the ISC license.
|
|
172
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
+
*/const dS=[["path",{d:"M5 12h14",key:"1ays0h"}]],e2=q("minus",dS);/**
|
|
174
|
+
* @license lucide-react v0.523.0 - ISC
|
|
175
|
+
*
|
|
176
|
+
* This source code is licensed under the ISC license.
|
|
177
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
+
*/const fS=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],t2=q("package",fS);/**
|
|
179
|
+
* @license lucide-react v0.523.0 - ISC
|
|
180
|
+
*
|
|
181
|
+
* This source code is licensed under the ISC license.
|
|
182
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
+
*/const pS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],n2=q("panel-left",pS);/**
|
|
184
|
+
* @license lucide-react v0.523.0 - ISC
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the ISC license.
|
|
187
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
+
*/const hS=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],r2=q("play",hS);/**
|
|
189
|
+
* @license lucide-react v0.523.0 - ISC
|
|
190
|
+
*
|
|
191
|
+
* This source code is licensed under the ISC license.
|
|
192
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
+
*/const mS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],o2=q("plus",mS);/**
|
|
194
|
+
* @license lucide-react v0.523.0 - ISC
|
|
195
|
+
*
|
|
196
|
+
* This source code is licensed under the ISC license.
|
|
197
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
+
*/const vS=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],i2=q("power",vS);/**
|
|
199
|
+
* @license lucide-react v0.523.0 - ISC
|
|
200
|
+
*
|
|
201
|
+
* This source code is licensed under the ISC license.
|
|
202
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
+
*/const yS=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],s2=q("refresh-cw",yS);/**
|
|
204
|
+
* @license lucide-react v0.523.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*/const gS=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],l2=q("rocket",gS);/**
|
|
209
|
+
* @license lucide-react v0.523.0 - ISC
|
|
210
|
+
*
|
|
211
|
+
* This source code is licensed under the ISC license.
|
|
212
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
+
*/const wS=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],a2=q("rotate-cw",wS);/**
|
|
214
|
+
* @license lucide-react v0.523.0 - ISC
|
|
215
|
+
*
|
|
216
|
+
* This source code is licensed under the ISC license.
|
|
217
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
+
*/const xS=[["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"}]],u2=q("settings",xS);/**
|
|
219
|
+
* @license lucide-react v0.523.0 - ISC
|
|
220
|
+
*
|
|
221
|
+
* This source code is licensed under the ISC license.
|
|
222
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
+
*/const SS=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],c2=q("shield-alert",SS);/**
|
|
224
|
+
* @license lucide-react v0.523.0 - ISC
|
|
225
|
+
*
|
|
226
|
+
* This source code is licensed under the ISC license.
|
|
227
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
+
*/const ES=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],d2=q("terminal",ES);/**
|
|
229
|
+
* @license lucide-react v0.523.0 - ISC
|
|
230
|
+
*
|
|
231
|
+
* This source code is licensed under the ISC license.
|
|
232
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
+
*/const CS=[["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"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],f2=q("trash-2",CS);/**
|
|
234
|
+
* @license lucide-react v0.523.0 - ISC
|
|
235
|
+
*
|
|
236
|
+
* This source code is licensed under the ISC license.
|
|
237
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
+
*/const kS=[["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"}]],p2=q("trash",kS);/**
|
|
239
|
+
* @license lucide-react v0.523.0 - ISC
|
|
240
|
+
*
|
|
241
|
+
* This source code is licensed under the ISC license.
|
|
242
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
+
*/const _S=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],h2=q("wifi-off",_S);/**
|
|
244
|
+
* @license lucide-react v0.523.0 - ISC
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the ISC license.
|
|
247
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/const RS=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],m2=q("wifi",RS);/**
|
|
249
|
+
* @license lucide-react v0.523.0 - ISC
|
|
250
|
+
*
|
|
251
|
+
* This source code is licensed under the ISC license.
|
|
252
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
+
*/const PS=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],v2=q("workflow",PS);/**
|
|
254
|
+
* @license lucide-react v0.523.0 - ISC
|
|
255
|
+
*
|
|
256
|
+
* This source code is licensed under the ISC license.
|
|
257
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
+
*/const TS=[["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"}]],y2=q("wrench",TS);/**
|
|
259
|
+
* @license lucide-react v0.523.0 - ISC
|
|
260
|
+
*
|
|
261
|
+
* This source code is licensed under the ISC license.
|
|
262
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
+
*/const NS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],g2=q("x",NS);/**
|
|
264
|
+
* @license lucide-react v0.523.0 - ISC
|
|
265
|
+
*
|
|
266
|
+
* This source code is licensed under the ISC license.
|
|
267
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
268
|
+
*/const AS=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],w2=q("zap",AS);function hf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gc(...e){return t=>{let n=!1;const r=e.map(o=>{const i=hf(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():hf(e[o],null)}}}}function he(...e){return d.useCallback(gc(...e),e)}function Zr(e){const t=DS(e),n=d.forwardRef((r,o)=>{const{children:i,...s}=r,l=d.Children.toArray(i),a=l.find(IS);if(a){const u=a.props.children,f=l.map(c=>c===a?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:c);return R.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return R.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var x2=Zr("Slot");function DS(e){const t=d.forwardRef((n,r)=>{const{children:o,...i}=n;if(d.isValidElement(o)){const s=MS(o),l=bS(i,o.props);return o.type!==d.Fragment&&(l.ref=r?gc(r,s):s),d.cloneElement(o,l)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wm=Symbol("radix.slottable");function xm(e){const t=({children:n})=>R.jsx(R.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=wm,t}function IS(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wm}function bS(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]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function MS(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 OS=Symbol.for("react.lazy"),_s=xu[" use ".trim().toString()];function LS(e){return typeof e=="object"&&e!==null&&"then"in e}function Sm(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===OS&&"_payload"in e&&LS(e._payload)}function FS(e){const t=$S(e),n=d.forwardRef((r,o)=>{let{children:i,...s}=r;Sm(i)&&typeof _s=="function"&&(i=_s(i._payload));const l=d.Children.toArray(i),a=l.find(VS);if(a){const u=a.props.children,f=l.map(c=>c===a?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:c);return R.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return R.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function $S(e){const t=d.forwardRef((n,r)=>{let{children:o,...i}=n;if(Sm(o)&&typeof _s=="function"&&(o=_s(o._payload)),d.isValidElement(o)){const s=BS(o),l=zS(i,o.props);return o.type!==d.Fragment&&(l.ref=r?gc(r,s):s),d.cloneElement(o,l)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jS=Symbol("radix.slottable");function VS(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jS}function zS(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]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function BS(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 US=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Em=US.reduce((e,t)=>{const n=FS(`Primitive.${t}`),r=d.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),R.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),HS="Separator",mf="horizontal",WS=["horizontal","vertical"],Cm=d.forwardRef((e,t)=>{const{decorative:n,orientation:r=mf,...o}=e,i=KS(r)?r:mf,l=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return R.jsx(Em.div,{"data-orientation":i,...l,...o,ref:t})});Cm.displayName=HS;function KS(e){return WS.includes(e)}var S2=Cm;function YS(e,t){const n=d.createContext(t),r=i=>{const{children:s,...l}=i,a=d.useMemo(()=>l,Object.values(l));return R.jsx(n.Provider,{value:a,children:s})};r.displayName=e+"Provider";function o(i){const s=d.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function yn(e,t=[]){let n=[];function r(i,s){const l=d.createContext(s),a=n.length;n=[...n,s];const u=c=>{var h;const{scope:v,children:w,...S}=c,y=((h=v==null?void 0:v[e])==null?void 0:h[a])||l,x=d.useMemo(()=>S,Object.values(S));return R.jsx(y.Provider,{value:x,children:w})};u.displayName=i+"Provider";function f(c,v){var y;const w=((y=v==null?void 0:v[e])==null?void 0:y[a])||l,S=d.useContext(w);if(S)return S;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,f]}const o=()=>{const i=n.map(s=>d.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return d.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,GS(o,...t)]}function GS(...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 s=r.reduce((l,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...l,...c}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var qe=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},QS=xu[" useId ".trim().toString()]||(()=>{}),XS=0;function cn(e){const[t,n]=d.useState(QS());return qe(()=>{n(r=>r??String(XS++))},[e]),e||(t?`radix-${t}`:"")}var ZS=xu[" useInsertionEffect ".trim().toString()]||qe;function ur({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=qS({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const c=f.current;c!==l&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${l?"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.`),f.current=l},[l,r])}const u=d.useCallback(f=>{var c;if(l){const v=JS(f)?f(e):f;v!==e&&((c=s.current)==null||c.call(s,v))}else i(f)},[l,e,i,s]);return[a,u]}function qS({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),i=d.useRef(t);return ZS(()=>{i.current=t},[t]),d.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function JS(e){return typeof e=="function"}var eE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ne=eE.reduce((e,t)=>{const n=Zr(`Primitive.${t}`),r=d.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),R.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function tE(e,t){e&&no.flushSync(()=>e.dispatchEvent(t))}function Bn(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function nE(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e);d.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 rE="DismissableLayer",eu="dismissableLayer.update",oE="dismissableLayer.pointerDownOutside",iE="dismissableLayer.focusOutside",vf,km=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xs=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=d.useContext(km),[f,c]=d.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=d.useState({}),S=he(t,k=>c(k)),y=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=y.indexOf(x),p=f?y.indexOf(f):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,g=p>=h,E=aE(k=>{const A=k.target,$=[...u.branches].some(F=>F.contains(A));!g||$||(o==null||o(k),s==null||s(k),k.defaultPrevented||l==null||l())},v),_=uE(k=>{const A=k.target;[...u.branches].some(F=>F.contains(A))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},v);return nE(k=>{p===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},v),d.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(vf=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),yf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=vf)}},[f,v,n,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),yf())},[f,u]),d.useEffect(()=>{const k=()=>w({});return document.addEventListener(eu,k),()=>document.removeEventListener(eu,k)},[]),R.jsx(ne.div,{...a,ref:S,style:{pointerEvents:m?g?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,E.onPointerDownCapture)})});Xs.displayName=rE;var sE="DismissableLayerBranch",lE=d.forwardRef((e,t)=>{const n=d.useContext(km),r=d.useRef(null),o=he(t,r);return d.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),R.jsx(ne.div,{...e,ref:o})});lE.displayName=sE;function aE(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){_m(oE,n,u,{discrete:!0})};const u={originalEvent:l};l.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},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function uE(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),r=d.useRef(!1);return d.useEffect(()=>{const o=i=>{i.target&&!r.current&&_m(iE,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 yf(){const e=new CustomEvent(eu);document.dispatchEvent(e)}function _m(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?tE(o,i):o.dispatchEvent(i)}var Bl="focusScope.autoFocusOnMount",Ul="focusScope.autoFocusOnUnmount",gf={bubbles:!1,cancelable:!0},cE="FocusScope",wc=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,a]=d.useState(null),u=Bn(o),f=Bn(i),c=d.useRef(null),v=he(t,y=>a(y)),w=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let y=function(m){if(w.paused||!l)return;const g=m.target;l.contains(g)?c.current=g:Cn(c.current,{select:!0})},x=function(m){if(w.paused||!l)return;const g=m.relatedTarget;g!==null&&(l.contains(g)||Cn(c.current,{select:!0}))},h=function(m){if(document.activeElement===document.body)for(const E of m)E.removedNodes.length>0&&Cn(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",x);const p=new MutationObserver(h);return l&&p.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x),p.disconnect()}}},[r,l,w.paused]),d.useEffect(()=>{if(l){xf.add(w);const y=document.activeElement;if(!l.contains(y)){const h=new CustomEvent(Bl,gf);l.addEventListener(Bl,u),l.dispatchEvent(h),h.defaultPrevented||(dE(vE(Rm(l)),{select:!0}),document.activeElement===y&&Cn(l))}return()=>{l.removeEventListener(Bl,u),setTimeout(()=>{const h=new CustomEvent(Ul,gf);l.addEventListener(Ul,f),l.dispatchEvent(h),h.defaultPrevented||Cn(y??document.body,{select:!0}),l.removeEventListener(Ul,f),xf.remove(w)},0)}}},[l,u,f,w]);const S=d.useCallback(y=>{if(!n&&!r||w.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,h=document.activeElement;if(x&&h){const p=y.currentTarget,[m,g]=fE(p);m&&g?!y.shiftKey&&h===g?(y.preventDefault(),n&&Cn(m,{select:!0})):y.shiftKey&&h===m&&(y.preventDefault(),n&&Cn(g,{select:!0})):h===p&&y.preventDefault()}},[n,r,w.paused]);return R.jsx(ne.div,{tabIndex:-1,...s,ref:v,onKeyDown:S})});wc.displayName=cE;function dE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Cn(r,{select:t}),document.activeElement!==n)return}function fE(e){const t=Rm(e),n=wf(t,e),r=wf(t.reverse(),e);return[n,r]}function Rm(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 wf(e,t){for(const n of e)if(!pE(n,{upTo:t}))return n}function pE(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 hE(e){return e instanceof HTMLInputElement&&"select"in e}function Cn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&hE(e)&&t&&e.select()}}var xf=mE();function mE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Sf(e,t),e.unshift(t)},remove(t){var n;e=Sf(e,t),(n=e[0])==null||n.resume()}}}function Sf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function vE(e){return e.filter(t=>t.tagName!=="A")}var yE="Portal",xc=d.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=d.useState(!1);qe(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?tm.createPortal(R.jsx(ne.div,{...r,ref:t}),s):null});xc.displayName=yE;function gE(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var mr=e=>{const{present:t,children:n}=e,r=wE(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=he(r.ref,xE(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:i}):null};mr.displayName="Presence";function wE(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),i=d.useRef("none"),s=e?"mounted":"unmounted",[l,a]=gE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=Mi(r.current);i.current=l==="mounted"?u:"none"},[l]),qe(()=>{const u=r.current,f=o.current;if(f!==e){const v=i.current,w=Mi(u);e?a("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(f&&v!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),qe(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,c=w=>{const y=Mi(r.current).includes(CSS.escape(w.animationName));if(w.target===t&&y&&(a("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},v=w=>{w.target===t&&(i.current=Mi(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:d.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Mi(e){return(e==null?void 0:e.animationName)||"none"}function xE(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 Hl=0;function Pm(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ef()),document.body.insertAdjacentElement("beforeend",e[1]??Ef()),Hl++,()=>{Hl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hl--}},[])}function Ef(){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 Zi="right-scroll-bar-position",qi="width-before-scroll-bar",SE="with-scroll-bars-hidden",EE="--removed-body-scroll-bar-size";function Wl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function CE(e,t){var n=d.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 kE=typeof window<"u"?d.useLayoutEffect:d.useEffect,Cf=new WeakMap;function _E(e,t){var n=CE(null,function(r){return e.forEach(function(o){return Wl(o,r)})});return kE(function(){var r=Cf.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(l){i.has(l)||Wl(l,null)}),i.forEach(function(l){o.has(l)||Wl(l,s)})}Cf.set(n,e)},[e]),n}function RE(e){return e}function PE(e,t){t===void 0&&(t=RE);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 s=t(i,r);return n.push(s),function(){n=n.filter(function(l){return l!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(i),s=n}var a=function(){var f=s;s=[],f.forEach(i)},u=function(){return Promise.resolve().then(a)};u(),n={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),n}}}};return o}function TE(e){e===void 0&&(e={});var t=PE(null);return t.options=Rn({async:!0,ssr:!1},e),t}var Tm=function(e){var t=e.sideCar,n=Bf(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 d.createElement(r,Rn({},n))};Tm.isSideCarExport=!0;function NE(e,t){return e.useMedium(t),Tm}var Nm=TE(),Kl=function(){},Zs=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Kl,onWheelCapture:Kl,onTouchMoveCapture:Kl}),o=r[0],i=r[1],s=e.forwardProps,l=e.children,a=e.className,u=e.removeScrollBar,f=e.enabled,c=e.shards,v=e.sideCar,w=e.noRelative,S=e.noIsolation,y=e.inert,x=e.allowPinchZoom,h=e.as,p=h===void 0?"div":h,m=e.gapMode,g=Bf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,_=_E([n,t]),k=Rn(Rn({},g),o);return d.createElement(d.Fragment,null,f&&d.createElement(E,{sideCar:Nm,removeScrollBar:u,shards:c,noRelative:w,noIsolation:S,inert:y,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:m}),s?d.cloneElement(d.Children.only(l),Rn(Rn({},k),{ref:_})):d.createElement(p,Rn({},k,{className:a,ref:_}),l))});Zs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Zs.classNames={fullWidth:qi,zeroRight:Zi};function AE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qy();return t&&e.setAttribute("nonce",t),e}function DE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function IE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bE=function(){var e=0,t=null;return{add:function(n){e==0&&(t=AE())&&(DE(t,n),IE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ME=function(){var e=bE();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Am=function(){var e=ME(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},OE={left:0,top:0,right:0,gap:0},Yl=function(e){return parseInt(e||"",10)||0},LE=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[Yl(n),Yl(r),Yl(o)]},FE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return OE;var t=LE(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])}},$E=Am(),zr="data-scroll-locked",jE=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
269
|
+
.`.concat(SE,` {
|
|
270
|
+
overflow: hidden `).concat(r,`;
|
|
271
|
+
padding-right: `).concat(l,"px ").concat(r,`;
|
|
272
|
+
}
|
|
273
|
+
body[`).concat(zr,`] {
|
|
274
|
+
overflow: hidden `).concat(r,`;
|
|
275
|
+
overscroll-behavior: contain;
|
|
276
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
277
|
+
padding-left: `.concat(o,`px;
|
|
278
|
+
padding-top: `).concat(i,`px;
|
|
279
|
+
padding-right: `).concat(s,`px;
|
|
280
|
+
margin-left:0;
|
|
281
|
+
margin-top:0;
|
|
282
|
+
margin-right: `).concat(l,"px ").concat(r,`;
|
|
283
|
+
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.`).concat(Zi,` {
|
|
287
|
+
right: `).concat(l,"px ").concat(r,`;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.`).concat(qi,` {
|
|
291
|
+
margin-right: `).concat(l,"px ").concat(r,`;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.`).concat(Zi," .").concat(Zi,` {
|
|
295
|
+
right: 0 `).concat(r,`;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.`).concat(qi," .").concat(qi,` {
|
|
299
|
+
margin-right: 0 `).concat(r,`;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
body[`).concat(zr,`] {
|
|
303
|
+
`).concat(EE,": ").concat(l,`px;
|
|
304
|
+
}
|
|
305
|
+
`)},kf=function(){var e=parseInt(document.body.getAttribute(zr)||"0",10);return isFinite(e)?e:0},VE=function(){d.useEffect(function(){return document.body.setAttribute(zr,(kf()+1).toString()),function(){var e=kf()-1;e<=0?document.body.removeAttribute(zr):document.body.setAttribute(zr,e.toString())}},[])},zE=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;VE();var i=d.useMemo(function(){return FE(o)},[o]);return d.createElement($E,{styles:jE(i,!t,o,n?"":"!important")})},tu=!1;if(typeof window<"u")try{var Oi=Object.defineProperty({},"passive",{get:function(){return tu=!0,!0}});window.addEventListener("test",Oi,Oi),window.removeEventListener("test",Oi,Oi)}catch{tu=!1}var gr=tu?{passive:!1}:!1,BE=function(e){return e.tagName==="TEXTAREA"},Dm=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!BE(e)&&n[t]==="visible")},UE=function(e){return Dm(e,"overflowY")},HE=function(e){return Dm(e,"overflowX")},_f=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Im(e,r);if(o){var i=bm(e,r),s=i[1],l=i[2];if(s>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},WE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},KE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Im=function(e,t){return e==="v"?UE(t):HE(t)},bm=function(e,t){return e==="v"?WE(t):KE(t)},YE=function(e,t){return e==="h"&&t==="rtl"?-1:1},GE=function(e,t,n,r,o){var i=YE(e,window.getComputedStyle(t).direction),s=i*r,l=n.target,a=t.contains(l),u=!1,f=s>0,c=0,v=0;do{if(!l)break;var w=bm(e,l),S=w[0],y=w[1],x=w[2],h=y-x-i*S;(S||h)&&Im(e,l)&&(c+=h,v+=S);var p=l.parentNode;l=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!a&&l!==document.body||a&&(t.contains(l)||t===l));return(f&&Math.abs(c)<1||!f&&Math.abs(v)<1)&&(u=!0),u},Li=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rf=function(e){return[e.deltaX,e.deltaY]},Pf=function(e){return e&&"current"in e?e.current:e},QE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},XE=function(e){return`
|
|
306
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
307
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
308
|
+
`)},ZE=0,wr=[];function qE(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(ZE++)[0],i=d.useState(Am)[0],s=d.useRef(e);d.useEffect(function(){s.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=Xy([e.lockRef.current],(e.shards||[]).map(Pf),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=d.useCallback(function(y,x){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!s.current.allowPinchZoom;var h=Li(y),p=n.current,m="deltaX"in y?y.deltaX:p[0]-h[0],g="deltaY"in y?y.deltaY:p[1]-h[1],E,_=y.target,k=Math.abs(m)>Math.abs(g)?"h":"v";if("touches"in y&&k==="h"&&_.type==="range")return!1;var A=_f(k,_);if(!A)return!0;if(A?E=k:(E=k==="v"?"h":"v",A=_f(k,_)),!A)return!1;if(!r.current&&"changedTouches"in y&&(m||g)&&(r.current=E),!E)return!0;var $=r.current||E;return GE($,x,y,$==="h"?m:g)},[]),a=d.useCallback(function(y){var x=y;if(!(!wr.length||wr[wr.length-1]!==i)){var h="deltaY"in x?Rf(x):Li(x),p=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&QE(E.delta,h)})[0];if(p&&p.should){x.cancelable&&x.preventDefault();return}if(!p){var m=(s.current.shards||[]).map(Pf).filter(Boolean).filter(function(E){return E.contains(x.target)}),g=m.length>0?l(x,m[0]):!s.current.noIsolation;g&&x.cancelable&&x.preventDefault()}}},[]),u=d.useCallback(function(y,x,h,p){var m={name:y,delta:x,target:h,should:p,shadowParent:JE(h)};t.current.push(m),setTimeout(function(){t.current=t.current.filter(function(g){return g!==m})},1)},[]),f=d.useCallback(function(y){n.current=Li(y),r.current=void 0},[]),c=d.useCallback(function(y){u(y.type,Rf(y),y.target,l(y,e.lockRef.current))},[]),v=d.useCallback(function(y){u(y.type,Li(y),y.target,l(y,e.lockRef.current))},[]);d.useEffect(function(){return wr.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:v}),document.addEventListener("wheel",a,gr),document.addEventListener("touchmove",a,gr),document.addEventListener("touchstart",f,gr),function(){wr=wr.filter(function(y){return y!==i}),document.removeEventListener("wheel",a,gr),document.removeEventListener("touchmove",a,gr),document.removeEventListener("touchstart",f,gr)}},[]);var w=e.removeScrollBar,S=e.inert;return d.createElement(d.Fragment,null,S?d.createElement(i,{styles:XE(o)}):null,w?d.createElement(zE,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function JE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const eC=NE(Nm,qE);var Sc=d.forwardRef(function(e,t){return d.createElement(Zs,Rn({},e,{ref:t,sideCar:eC}))});Sc.classNames=Zs.classNames;var qs="Dialog",[Mm,Om]=yn(qs),[tC,Kt]=Mm(qs),Lm=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,l=d.useRef(null),a=d.useRef(null),[u,f]=ur({prop:r,defaultProp:o??!1,onChange:i,caller:qs});return R.jsx(tC,{scope:t,triggerRef:l,contentRef:a,contentId:cn(),titleId:cn(),descriptionId:cn(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(c=>!c),[f]),modal:s,children:n})};Lm.displayName=qs;var Fm="DialogTrigger",$m=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kt(Fm,n),i=he(t,o.triggerRef);return R.jsx(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":kc(o.open),...r,ref:i,onClick:Q(e.onClick,o.onOpenToggle)})});$m.displayName=Fm;var Ec="DialogPortal",[nC,jm]=Mm(Ec,{forceMount:void 0}),Vm=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Kt(Ec,t);return R.jsx(nC,{scope:t,forceMount:n,children:d.Children.map(r,s=>R.jsx(mr,{present:n||i.open,children:R.jsx(xc,{asChild:!0,container:o,children:s})}))})};Vm.displayName=Ec;var Rs="DialogOverlay",zm=d.forwardRef((e,t)=>{const n=jm(Rs,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Kt(Rs,e.__scopeDialog);return i.modal?R.jsx(mr,{present:r||i.open,children:R.jsx(oC,{...o,ref:t})}):null});zm.displayName=Rs;var rC=Zr("DialogOverlay.RemoveScroll"),oC=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kt(Rs,n);return R.jsx(Sc,{as:rC,allowPinchZoom:!0,shards:[o.contentRef],children:R.jsx(ne.div,{"data-state":kc(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),cr="DialogContent",Bm=d.forwardRef((e,t)=>{const n=jm(cr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Kt(cr,e.__scopeDialog);return R.jsx(mr,{present:r||i.open,children:i.modal?R.jsx(iC,{...o,ref:t}):R.jsx(sC,{...o,ref:t})})});Bm.displayName=cr;var iC=d.forwardRef((e,t)=>{const n=Kt(cr,e.__scopeDialog),r=d.useRef(null),o=he(t,n.contentRef,r);return d.useEffect(()=>{const i=r.current;if(i)return Uf(i)},[]),R.jsx(Um,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Q(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&i.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,i=>i.preventDefault())})}),sC=d.forwardRef((e,t)=>{const n=Kt(cr,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return R.jsx(Um,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,l;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.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 s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Um=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,l=Kt(cr,n),a=d.useRef(null),u=he(t,a);return Pm(),R.jsxs(R.Fragment,{children:[R.jsx(wc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:R.jsx(Xs,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":kc(l.open),...s,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),R.jsxs(R.Fragment,{children:[R.jsx(aC,{titleId:l.titleId}),R.jsx(cC,{contentRef:a,descriptionId:l.descriptionId})]})]})}),Cc="DialogTitle",Hm=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kt(Cc,n);return R.jsx(ne.h2,{id:o.titleId,...r,ref:t})});Hm.displayName=Cc;var Wm="DialogDescription",Km=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kt(Wm,n);return R.jsx(ne.p,{id:o.descriptionId,...r,ref:t})});Km.displayName=Wm;var Ym="DialogClose",Gm=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kt(Ym,n);return R.jsx(ne.button,{type:"button",...r,ref:t,onClick:Q(e.onClick,()=>o.onOpenChange(!1))})});Gm.displayName=Ym;function kc(e){return e?"open":"closed"}var Qm="DialogTitleWarning",[lC,Xm]=YS(Qm,{contentName:cr,titleName:Cc,docsSlug:"dialog"}),aC=({titleId:e})=>{const t=Xm(Qm),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
309
|
+
|
|
310
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
311
|
+
|
|
312
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},uC="DialogDescriptionWarning",cC=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Xm(uC).contentName}}.`;return d.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},dC=Lm,fC=$m,pC=Vm,hC=zm,mC=Bm,vC=Hm,yC=Km,Zm=Gm,gC=typeof document<"u",wC=function(){},Ji=gC?d.useLayoutEffect:wC;function Ps(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(!Ps(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)&&!Ps(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function qm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tf(e,t){const n=qm(e);return Math.round(t*n)/n}function Gl(e){const t=d.useRef(e);return Ji(()=>{t.current=e}),t}function xC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[f,c]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,w]=d.useState(r);Ps(v,r)||w(r);const[S,y]=d.useState(null),[x,h]=d.useState(null),p=d.useCallback(Y=>{Y!==_.current&&(_.current=Y,y(Y))},[]),m=d.useCallback(Y=>{Y!==k.current&&(k.current=Y,h(Y))},[]),g=i||S,E=s||x,_=d.useRef(null),k=d.useRef(null),A=d.useRef(f),$=a!=null,F=Gl(a),W=Gl(o),B=Gl(u),V=d.useCallback(()=>{if(!_.current||!k.current)return;const Y={placement:t,strategy:n,middleware:v};W.current&&(Y.platform=W.current),Zy(_.current,k.current,Y).then(ae=>{const de={...ae,isPositioned:B.current!==!1};G.current&&!Ps(A.current,de)&&(A.current=de,no.flushSync(()=>{c(de)}))})},[v,t,n,W,B]);Ji(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,c(Y=>({...Y,isPositioned:!1})))},[u]);const G=d.useRef(!1);Ji(()=>(G.current=!0,()=>{G.current=!1}),[]),Ji(()=>{if(g&&(_.current=g),E&&(k.current=E),g&&E){if(F.current)return F.current(g,E,V);V()}},[g,E,V,F,$]);const J=d.useMemo(()=>({reference:_,floating:k,setReference:p,setFloating:m}),[p,m]),L=d.useMemo(()=>({reference:g,floating:E}),[g,E]),K=d.useMemo(()=>{const Y={position:n,left:0,top:0};if(!L.floating)return Y;const ae=Tf(L.floating,f.x),de=Tf(L.floating,f.y);return l?{...Y,transform:"translate("+ae+"px, "+de+"px)",...qm(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ae,top:de}},[n,l,L.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:V,refs:J,elements:L,floatingStyles:K}),[f,V,J,L,K])}const SC=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?Bc({element:r.current,padding:o}).fn(n):{}:r?Bc({element:r,padding:o}).fn(n):{}}}},EC=(e,t)=>({...qy(e),options:[e,t]}),CC=(e,t)=>({...Jy(e),options:[e,t]}),kC=(e,t)=>({...rg(e),options:[e,t]}),_C=(e,t)=>({...eg(e),options:[e,t]}),RC=(e,t)=>({...tg(e),options:[e,t]}),PC=(e,t)=>({...ng(e),options:[e,t]}),TC=(e,t)=>({...SC(e),options:[e,t]});var NC="Arrow",Jm=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return R.jsx(ne.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:R.jsx("polygon",{points:"0,0 30,0 15,10"})})});Jm.displayName=NC;var AC=Jm;function ev(e){const[t,n]=d.useState(void 0);return qe(()=>{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 s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var _c="Popper",[tv,Js]=yn(_c),[DC,nv]=tv(_c),rv=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return R.jsx(DC,{scope:t,anchor:r,onAnchorChange:o,children:n})};rv.displayName=_c;var ov="PopperAnchor",iv=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=nv(ov,n),s=d.useRef(null),l=he(t,s),a=d.useRef(null);return d.useEffect(()=>{const u=a.current;a.current=(r==null?void 0:r.current)||s.current,u!==a.current&&i.onAnchorChange(a.current)}),r?null:R.jsx(ne.div,{...o,ref:l})});iv.displayName=ov;var Rc="PopperContent",[IC,bC]=tv(Rc),sv=d.forwardRef((e,t)=>{var U,H,me,re,oe,ee;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:c="partial",hideWhenDetached:v=!1,updatePositionStrategy:w="optimized",onPlaced:S,...y}=e,x=nv(Rc,n),[h,p]=d.useState(null),m=he(t,$e=>p($e)),[g,E]=d.useState(null),_=ev(g),k=(_==null?void 0:_.width)??0,A=(_==null?void 0:_.height)??0,$=r+(i!=="center"?"-"+i:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},W=Array.isArray(u)?u:[u],B=W.length>0,V={padding:F,boundary:W.filter(OC),altBoundary:B},{refs:G,floatingStyles:J,placement:L,isPositioned:K,middlewareData:Y}=xC({strategy:"fixed",placement:$,whileElementsMounted:(...$e)=>og(...$e,{animationFrame:w==="always"}),elements:{reference:x.anchor},middleware:[EC({mainAxis:o+A,alignmentAxis:s}),a&&CC({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?kC():void 0,...V}),a&&_C({...V}),RC({...V,apply:({elements:$e,rects:je,availableWidth:Yt,availableHeight:Gt})=>{const{width:dt,height:lo}=je.reference,Ve=$e.floating.style;Ve.setProperty("--radix-popper-available-width",`${Yt}px`),Ve.setProperty("--radix-popper-available-height",`${Gt}px`),Ve.setProperty("--radix-popper-anchor-width",`${dt}px`),Ve.setProperty("--radix-popper-anchor-height",`${lo}px`)}}),g&&TC({element:g,padding:l}),LC({arrowWidth:k,arrowHeight:A}),v&&PC({strategy:"referenceHidden",...V})]}),[ae,de]=uv(L),Ae=Bn(S);qe(()=>{K&&(Ae==null||Ae())},[K,Ae]);const St=(U=Y.arrow)==null?void 0:U.x,X=(H=Y.arrow)==null?void 0:H.y,se=((me=Y.arrow)==null?void 0:me.centerOffset)!==0,[le,Re]=d.useState();return qe(()=>{h&&Re(window.getComputedStyle(h).zIndex)},[h]),R.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:K?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(re=Y.transformOrigin)==null?void 0:re.x,(oe=Y.transformOrigin)==null?void 0:oe.y].join(" "),...((ee=Y.hide)==null?void 0:ee.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:R.jsx(IC,{scope:n,placedSide:ae,onArrowChange:E,arrowX:St,arrowY:X,shouldHideArrow:se,children:R.jsx(ne.div,{"data-side":ae,"data-align":de,...y,ref:m,style:{...y.style,animation:K?void 0:"none"}})})})});sv.displayName=Rc;var lv="PopperArrow",MC={top:"bottom",right:"left",bottom:"top",left:"right"},av=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=bC(lv,r),s=MC[i.placedSide];return R.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]: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:R.jsx(AC,{...o,ref:n,style:{...o.style,display:"block"}})})});av.displayName=lv;function OC(e){return e!==null}var LC=e=>({name:"transformOrigin",options:e,fn(t){var x,h,p;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,f]=uv(n),c={start:"0%",center:"50%",end:"100%"}[f],v=(((h=o.arrow)==null?void 0:h.x)??0)+l/2,w=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let S="",y="";return u==="bottom"?(S=s?c:`${v}px`,y=`${-a}px`):u==="top"?(S=s?c:`${v}px`,y=`${r.floating.height+a}px`):u==="right"?(S=`${-a}px`,y=s?c:`${w}px`):u==="left"&&(S=`${r.floating.width+a}px`,y=s?c:`${w}px`),{data:{x:S,y}}}});function uv(e){const[t,n="center"]=e.split("-");return[t,n]}var cv=rv,dv=iv,fv=sv,pv=av,hv=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"}),FC="VisuallyHidden",mv=d.forwardRef((e,t)=>R.jsx(ne.span,{...e,ref:t,style:{...hv,...e.style}}));mv.displayName=FC;var $C=mv,[el]=yn("Tooltip",[Js]),tl=Js(),vv="TooltipProvider",jC=700,nu="tooltip.open",[VC,Pc]=el(vv),yv=e=>{const{__scopeTooltip:t,delayDuration:n=jC,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=d.useRef(!0),l=d.useRef(!1),a=d.useRef(0);return d.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),R.jsx(VC,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:d.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};yv.displayName=vv;var ti="Tooltip",[zC,nl]=el(ti),gv=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,a=Pc(ti,e.__scopeTooltip),u=tl(t),[f,c]=d.useState(null),v=cn(),w=d.useRef(0),S=s??a.disableHoverableContent,y=l??a.delayDuration,x=d.useRef(!1),[h,p]=ur({prop:r,defaultProp:o??!1,onChange:k=>{k?(a.onOpen(),document.dispatchEvent(new CustomEvent(nu))):a.onClose(),i==null||i(k)},caller:ti}),m=d.useMemo(()=>h?x.current?"delayed-open":"instant-open":"closed",[h]),g=d.useCallback(()=>{window.clearTimeout(w.current),w.current=0,x.current=!1,p(!0)},[p]),E=d.useCallback(()=>{window.clearTimeout(w.current),w.current=0,p(!1)},[p]),_=d.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{x.current=!0,p(!0),w.current=0},y)},[y,p]);return d.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),R.jsx(cv,{...u,children:R.jsx(zC,{scope:t,contentId:v,open:h,stateAttribute:m,trigger:f,onTriggerChange:c,onTriggerEnter:d.useCallback(()=>{a.isOpenDelayedRef.current?_():g()},[a.isOpenDelayedRef,_,g]),onTriggerLeave:d.useCallback(()=>{S?E():(window.clearTimeout(w.current),w.current=0)},[E,S]),onOpen:g,onClose:E,disableHoverableContent:S,children:n})})};gv.displayName=ti;var ru="TooltipTrigger",wv=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=nl(ru,n),i=Pc(ru,n),s=tl(n),l=d.useRef(null),a=he(t,l,o.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),c=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),R.jsx(dv,{asChild:!0,...s,children:R.jsx(ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:Q(e.onPointerMove,v=>{v.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:Q(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:Q(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:Q(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Q(e.onBlur,o.onClose),onClick:Q(e.onClick,o.onClose)})})});wv.displayName=ru;var BC="TooltipPortal",[E2,UC]=el(BC,{forceMount:void 0}),qr="TooltipContent",xv=d.forwardRef((e,t)=>{const n=UC(qr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=nl(qr,e.__scopeTooltip);return R.jsx(mr,{present:r||s.open,children:s.disableHoverableContent?R.jsx(Sv,{side:o,...i,ref:t}):R.jsx(HC,{side:o,...i,ref:t})})}),HC=d.forwardRef((e,t)=>{const n=nl(qr,e.__scopeTooltip),r=Pc(qr,e.__scopeTooltip),o=d.useRef(null),i=he(t,o),[s,l]=d.useState(null),{trigger:a,onClose:u}=n,f=o.current,{onPointerInTransitChange:c}=r,v=d.useCallback(()=>{l(null),c(!1)},[c]),w=d.useCallback((S,y)=>{const x=S.currentTarget,h={x:S.clientX,y:S.clientY},p=QC(h,x.getBoundingClientRect()),m=XC(h,p),g=ZC(y.getBoundingClientRect()),E=JC([...m,...g]);l(E),c(!0)},[c]);return d.useEffect(()=>()=>v(),[v]),d.useEffect(()=>{if(a&&f){const S=x=>w(x,f),y=x=>w(x,a);return a.addEventListener("pointerleave",S),f.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",S),f.removeEventListener("pointerleave",y)}}},[a,f,w,v]),d.useEffect(()=>{if(s){const S=y=>{const x=y.target,h={x:y.clientX,y:y.clientY},p=(a==null?void 0:a.contains(x))||(f==null?void 0:f.contains(x)),m=!qC(h,s);p?v():m&&(v(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[a,f,s,u,v]),R.jsx(Sv,{...e,ref:i})}),[WC,KC]=el(ti,{isInside:!1}),YC=xm("TooltipContent"),Sv=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=nl(qr,n),u=tl(n),{onClose:f}=a;return d.useEffect(()=>(document.addEventListener(nu,f),()=>document.removeEventListener(nu,f)),[f]),d.useEffect(()=>{if(a.trigger){const c=v=>{const w=v.target;w!=null&&w.contains(a.trigger)&&f()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[a.trigger,f]),R.jsx(Xs,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c=>c.preventDefault(),onDismiss:f,children:R.jsxs(fv,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.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:[R.jsx(YC,{children:r}),R.jsx(WC,{scope:n,isInside:!0,children:R.jsx($C,{id:a.contentId,role:"tooltip",children:o||r})})]})})});xv.displayName=qr;var Ev="TooltipArrow",GC=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tl(n);return KC(Ev,n).isInside?null:R.jsx(pv,{...o,...r,ref:t})});GC.displayName=Ev;function QC(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 XC(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 ZC(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 qC(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i],a=t[s],u=l.x,f=l.y,c=a.x,v=a.y;f>r!=v>r&&n<(c-u)*(r-f)/(v-f)+u&&(o=!o)}return o}function JC(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),ek(t)}function ek(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],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.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 C2=yv,k2=gv,_2=wv,R2=xv,Cv="AlertDialog",[tk]=yn(Cv,[Om]),gn=Om(),kv=e=>{const{__scopeAlertDialog:t,...n}=e,r=gn(t);return R.jsx(dC,{...r,...n,modal:!0})};kv.displayName=Cv;var nk="AlertDialogTrigger",_v=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(fC,{...o,...r,ref:t})});_v.displayName=nk;var rk="AlertDialogPortal",Rv=e=>{const{__scopeAlertDialog:t,...n}=e,r=gn(t);return R.jsx(pC,{...r,...n})};Rv.displayName=rk;var ok="AlertDialogOverlay",Pv=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(hC,{...o,...r,ref:t})});Pv.displayName=ok;var Br="AlertDialogContent",[ik,sk]=tk(Br),lk=xm("AlertDialogContent"),Tv=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=gn(n),s=d.useRef(null),l=he(t,s),a=d.useRef(null);return R.jsx(lC,{contentName:Br,titleName:Nv,docsSlug:"alert-dialog",children:R.jsx(ik,{scope:n,cancelRef:a,children:R.jsxs(mC,{role:"alertdialog",...i,...o,ref:l,onOpenAutoFocus:Q(o.onOpenAutoFocus,u=>{var f;u.preventDefault(),(f=a.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[R.jsx(lk,{children:r}),R.jsx(uk,{contentRef:s})]})})})});Tv.displayName=Br;var Nv="AlertDialogTitle",Av=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(vC,{...o,...r,ref:t})});Av.displayName=Nv;var Dv="AlertDialogDescription",Iv=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(yC,{...o,...r,ref:t})});Iv.displayName=Dv;var ak="AlertDialogAction",bv=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(Zm,{...o,...r,ref:t})});bv.displayName=ak;var Mv="AlertDialogCancel",Ov=d.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=sk(Mv,n),i=gn(n),s=he(t,o);return R.jsx(Zm,{...i,...r,ref:s})});Ov.displayName=Mv;var uk=({contentRef:e})=>{const t=`\`${Br}\` requires a description for the component to be accessible for screen reader users.
|
|
313
|
+
|
|
314
|
+
You can add a description to the \`${Br}\` by passing a \`${Dv}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
315
|
+
|
|
316
|
+
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 \`${Br}\`. 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.
|
|
317
|
+
|
|
318
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return d.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},P2=kv,T2=_v,N2=Rv,A2=Pv,D2=Tv,I2=bv,b2=Ov,M2=Av,O2=Iv;function Lv(e){const t=e+"CollectionProvider",[n,r]=yn(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:x,children:h}=y,p=T.useRef(null),m=T.useRef(new Map).current;return R.jsx(o,{scope:x,itemMap:m,collectionRef:p,children:h})};s.displayName=t;const l=e+"CollectionSlot",a=Zr(l),u=T.forwardRef((y,x)=>{const{scope:h,children:p}=y,m=i(l,h),g=he(x,m.collectionRef);return R.jsx(a,{ref:g,children:p})});u.displayName=l;const f=e+"CollectionItemSlot",c="data-radix-collection-item",v=Zr(f),w=T.forwardRef((y,x)=>{const{scope:h,children:p,...m}=y,g=T.useRef(null),E=he(x,g),_=i(f,h);return T.useEffect(()=>(_.itemMap.set(g,{ref:g,...m}),()=>void _.itemMap.delete(g))),R.jsx(v,{[c]:"",ref:E,children:p})});w.displayName=f;function S(y){const x=i(e+"CollectionConsumer",y);return T.useCallback(()=>{const p=x.collectionRef.current;if(!p)return[];const m=Array.from(p.querySelectorAll(`[${c}]`));return Array.from(x.itemMap.values()).sort((_,k)=>m.indexOf(_.ref.current)-m.indexOf(k.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:w},S,r]}var ck=d.createContext(void 0);function Tc(e){const t=d.useContext(ck);return e||t||"ltr"}var Ql="rovingFocusGroup.onEntryFocus",dk={bubbles:!1,cancelable:!0},ui="RovingFocusGroup",[ou,Fv,fk]=Lv(ui),[pk,$v]=yn(ui,[fk]),[hk,mk]=pk(ui),jv=d.forwardRef((e,t)=>R.jsx(ou.Provider,{scope:e.__scopeRovingFocusGroup,children:R.jsx(ou.Slot,{scope:e.__scopeRovingFocusGroup,children:R.jsx(vk,{...e,ref:t})})}));jv.displayName=ui;var vk=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:a,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...c}=e,v=d.useRef(null),w=he(t,v),S=Tc(i),[y,x]=ur({prop:s,defaultProp:l??null,onChange:a,caller:ui}),[h,p]=d.useState(!1),m=Bn(u),g=Fv(n),E=d.useRef(!1),[_,k]=d.useState(0);return d.useEffect(()=>{const A=v.current;if(A)return A.addEventListener(Ql,m),()=>A.removeEventListener(Ql,m)},[m]),R.jsx(hk,{scope:n,orientation:r,dir:S,loop:o,currentTabStopId:y,onItemFocus:d.useCallback(A=>x(A),[x]),onItemShiftTab:d.useCallback(()=>p(!0),[]),onFocusableItemAdd:d.useCallback(()=>k(A=>A+1),[]),onFocusableItemRemove:d.useCallback(()=>k(A=>A-1),[]),children:R.jsx(ne.div,{tabIndex:h||_===0?-1:0,"data-orientation":r,...c,ref:w,style:{outline:"none",...e.style},onMouseDown:Q(e.onMouseDown,()=>{E.current=!0}),onFocus:Q(e.onFocus,A=>{const $=!E.current;if(A.target===A.currentTarget&&$&&!h){const F=new CustomEvent(Ql,dk);if(A.currentTarget.dispatchEvent(F),!F.defaultPrevented){const W=g().filter(L=>L.focusable),B=W.find(L=>L.active),V=W.find(L=>L.id===y),J=[B,V,...W].filter(Boolean).map(L=>L.ref.current);Bv(J,f)}}E.current=!1}),onBlur:Q(e.onBlur,()=>p(!1))})})}),Vv="RovingFocusGroupItem",zv=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:s,...l}=e,a=cn(),u=i||a,f=mk(Vv,n),c=f.currentTabStopId===u,v=Fv(n),{onFocusableItemAdd:w,onFocusableItemRemove:S,currentTabStopId:y}=f;return d.useEffect(()=>{if(r)return w(),()=>S()},[r,w,S]),R.jsx(ou.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:R.jsx(ne.span,{tabIndex:c?0:-1,"data-orientation":f.orientation,...l,ref:t,onMouseDown:Q(e.onMouseDown,x=>{r?f.onItemFocus(u):x.preventDefault()}),onFocus:Q(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:Q(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){f.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const h=wk(x,f.orientation,f.dir);if(h!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let m=v().filter(g=>g.focusable).map(g=>g.ref.current);if(h==="last")m.reverse();else if(h==="prev"||h==="next"){h==="prev"&&m.reverse();const g=m.indexOf(x.currentTarget);m=f.loop?xk(m,g+1):m.slice(g+1)}setTimeout(()=>Bv(m))}}),children:typeof s=="function"?s({isCurrentTabStop:c,hasTabStop:y!=null}):s})})});zv.displayName=Vv;var yk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gk(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function wk(e,t,n){const r=gk(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return yk[r]}function Bv(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function xk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Sk=jv,Ek=zv,rl="Tabs",[Ck]=yn(rl,[$v]),Uv=$v(),[kk,Nc]=Ck(rl),Hv=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:s="horizontal",dir:l,activationMode:a="automatic",...u}=e,f=Tc(l),[c,v]=ur({prop:r,onChange:o,defaultProp:i??"",caller:rl});return R.jsx(kk,{scope:n,baseId:cn(),value:c,onValueChange:v,orientation:s,dir:f,activationMode:a,children:R.jsx(ne.div,{dir:f,"data-orientation":s,...u,ref:t})})});Hv.displayName=rl;var Wv="TabsList",Kv=d.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Nc(Wv,n),s=Uv(n);return R.jsx(Sk,{asChild:!0,...s,orientation:i.orientation,dir:i.dir,loop:r,children:R.jsx(ne.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});Kv.displayName=Wv;var Yv="TabsTrigger",Gv=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,s=Nc(Yv,n),l=Uv(n),a=Zv(s.baseId,r),u=qv(s.baseId,r),f=r===s.value;return R.jsx(Ek,{asChild:!0,...l,focusable:!o,active:f,children:R.jsx(ne.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:a,...i,ref:t,onMouseDown:Q(e.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?s.onValueChange(r):c.preventDefault()}),onKeyDown:Q(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&s.onValueChange(r)}),onFocus:Q(e.onFocus,()=>{const c=s.activationMode!=="manual";!f&&!o&&c&&s.onValueChange(r)})})})});Gv.displayName=Yv;var Qv="TabsContent",Xv=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...s}=e,l=Nc(Qv,n),a=Zv(l.baseId,r),u=qv(l.baseId,r),f=r===l.value,c=d.useRef(f);return d.useEffect(()=>{const v=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(v)},[]),R.jsx(mr,{present:o||f,children:({present:v})=>R.jsx(ne.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":a,hidden:!v,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0},children:v&&i})})});Xv.displayName=Qv;function Zv(e,t){return`${e}-trigger-${t}`}function qv(e,t){return`${e}-content-${t}`}var L2=Hv,F2=Kv,$2=Gv,j2=Xv,ci=e=>e.type==="checkbox",tr=e=>e instanceof Date,ot=e=>e==null;const Jv=e=>typeof e=="object";var Ie=e=>!ot(e)&&!Array.isArray(e)&&Jv(e)&&!tr(e),ey=e=>Ie(e)&&e.target?ci(e.target)?e.target.checked:e.target.value:e,_k=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ty=(e,t)=>e.has(_k(t)),Rk=e=>{const t=e.constructor&&e.constructor.prototype;return Ie(t)&&t.hasOwnProperty("isPrototypeOf")},Ac=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function we(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(!(Ac&&(e instanceof Blob||r))&&(n||Ie(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!Rk(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=we(e[o]));else return e;return t}var ol=e=>/^\w*$/.test(e),ve=e=>e===void 0,il=e=>Array.isArray(e)?e.filter(Boolean):[],Dc=e=>il(e.replace(/["|']|\]/g,"").split(/\.|\[/)),b=(e,t,n)=>{if(!t||!Ie(e))return n;const r=(ol(t)?[t]:Dc(t)).reduce((o,i)=>ot(o)?o:o[i],e);return ve(r)||r===e?ve(e[t])?n:e[t]:r},ht=e=>typeof e=="boolean",ce=(e,t,n)=>{let r=-1;const o=ol(t)?[t]:Dc(t),i=o.length,s=i-1;for(;++r<i;){const l=o[r];let a=n;if(r!==s){const u=e[l];a=Ie(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=a,e=e[l]}};const Ts={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_t={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},nn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ic=T.createContext(null);Ic.displayName="HookFormContext";const sl=()=>T.useContext(Ic),V2=e=>{const{children:t,...n}=e;return T.createElement(Ic.Provider,{value:n},t)};var ny=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==_t.all&&(t._proxyFormState[s]=!r||_t.all),n&&(n[s]=!0),e[s]}});return o};const ll=typeof window<"u"?T.useLayoutEffect:T.useEffect;function Pk(e){const t=sl(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[s,l]=T.useState(n._formState),a=T.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ll(()=>n._subscribe({name:o,formState:a.current,exact:i,callback:u=>{!r&&l({...n._formState,...u})}}),[o,r,i]),T.useEffect(()=>{a.current.isValid&&n._setValid(!0)},[n]),T.useMemo(()=>ny(s,n,a.current,!1),[s,n])}var mt=e=>typeof e=="string",iu=(e,t,n,r,o)=>mt(e)?(r&&t.watch.add(e),b(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),b(n,i))):(r&&(t.watchAll=!0),n),su=e=>ot(e)||!Jv(e);function Vt(e,t,n=new WeakSet){if(su(e)||su(t))return e===t;if(tr(e)&&tr(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 s=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const l=t[i];if(tr(s)&&tr(l)||Ie(s)&&Ie(l)||Array.isArray(s)&&Array.isArray(l)?!Vt(s,l,n):s!==l)return!1}}return!0}function Tk(e){const t=sl(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:s,compute:l}=e||{},a=T.useRef(o),u=T.useRef(l),f=T.useRef(void 0),c=T.useRef(n),v=T.useRef(r);u.current=l;const[w,S]=T.useState(()=>{const g=n._getWatch(r,a.current);return u.current?u.current(g):g}),y=T.useCallback(g=>{const E=iu(r,n._names,g||n._formValues,!1,a.current);return u.current?u.current(E):E},[n._formValues,n._names,r]),x=T.useCallback(g=>{if(!i){const E=iu(r,n._names,g||n._formValues,!1,a.current);if(u.current){const _=u.current(E);Vt(_,f.current)||(S(_),f.current=_)}else S(E)}},[n._formValues,n._names,i,r]);ll(()=>((c.current!==n||!Vt(v.current,r))&&(c.current=n,v.current=r,x()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:g=>{x(g.values)}})),[n,s,r,x]),T.useEffect(()=>n._removeUnmounted());const h=c.current!==n,p=v.current,m=T.useMemo(()=>{if(i)return null;const g=!h&&!Vt(p,r);return h||g?y():null},[i,h,r,p,y]);return m!==null?m:w}function Nk(e){const t=sl(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i,defaultValue:s}=e,l=ty(o._names.array,n),a=T.useMemo(()=>b(o._formValues,n,b(o._defaultValues,n,s)),[o,n,s]),u=Tk({control:o,name:n,defaultValue:a,exact:!0}),f=Pk({control:o,name:n,exact:!0}),c=T.useRef(e),v=T.useRef(void 0),w=T.useRef(o.register(n,{...e.rules,value:u,...ht(e.disabled)?{disabled:e.disabled}:{}}));c.current=e;const S=T.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!b(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!b(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!b(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!b(f.validatingFields,n)},error:{enumerable:!0,get:()=>b(f.errors,n)}}),[f,n]),y=T.useCallback(m=>w.current.onChange({target:{value:ey(m),name:n},type:Ts.CHANGE}),[n]),x=T.useCallback(()=>w.current.onBlur({target:{value:b(o._formValues,n),name:n},type:Ts.BLUR}),[n,o._formValues]),h=T.useCallback(m=>{const g=b(o._fields,n);g&&m&&(g._f.ref={focus:()=>m.focus&&m.focus(),select:()=>m.select&&m.select(),setCustomValidity:E=>m.setCustomValidity(E),reportValidity:()=>m.reportValidity()})},[o._fields,n]),p=T.useMemo(()=>({name:n,value:u,...ht(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:y,onBlur:x,ref:h}),[n,r,f.disabled,y,x,h,u]);return T.useEffect(()=>{const m=o._options.shouldUnregister||i,g=v.current;g&&g!==n&&!l&&o.unregister(g),o.register(n,{...c.current.rules,...ht(c.current.disabled)?{disabled:c.current.disabled}:{}});const E=(_,k)=>{const A=b(o._fields,_);A&&A._f&&(A._f.mount=k)};if(E(n,!0),m){const _=we(b(o._options.defaultValues,n,c.current.defaultValue));ce(o._defaultValues,n,_),ve(b(o._formValues,n))&&ce(o._formValues,n,_)}return!l&&o.register(n),v.current=n,()=>{(l?m&&!o._state.action:m)?o.unregister(n):E(n,!1)}},[n,o,l,i]),T.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),T.useMemo(()=>({field:p,formState:f,fieldState:S}),[p,f,S])}const z2=e=>e.render(Nk(e));var bc=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},lt=e=>Array.isArray(e)?e:[e],Nf=()=>{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=[]}}};function ry(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],i=t[r];if(o&&Ie(o)&&i){const s=ry(o,i);Ie(s)&&(n[r]=s)}else e[r]&&(n[r]=i)}return n}var Qe=e=>Ie(e)&&!Object.keys(e).length,Mc=e=>e.type==="file",zt=e=>typeof e=="function",Ns=e=>{if(!Ac)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},oy=e=>e.type==="select-multiple",Oc=e=>e.type==="radio",Ak=e=>Oc(e)||ci(e),Xl=e=>Ns(e)&&e.isConnected;function Dk(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 Ik(e){for(const t in e)if(e.hasOwnProperty(t)&&!ve(e[t]))return!1;return!0}function Te(e,t){const n=Array.isArray(t)?t:ol(t)?[t]:Dc(t),r=n.length===1?e:Dk(e,n),o=n.length-1,i=n[o];return r&&delete r[i],o!==0&&(Ie(r)&&Qe(r)||Array.isArray(r)&&Ik(r))&&Te(e,n.slice(0,-1)),e}var bk=e=>{for(const t in e)if(zt(e[t]))return!0;return!1};function iy(e){return Array.isArray(e)||Ie(e)&&!bk(e)}function lu(e,t={}){for(const n in e)iy(e[n])?(t[n]=Array.isArray(e[n])?[]:{},lu(e[n],t[n])):ve(e[n])||(t[n]=!0);return t}function Sr(e,t,n){n||(n=lu(t));for(const r in e)iy(e[r])?ve(t)||su(n[r])?n[r]=lu(e[r],Array.isArray(e[r])?[]:{}):Sr(e[r],ot(t)?{}:t[r],n[r]):n[r]=!Vt(e[r],t[r]);return n}const Af={value:!1,isValid:!1},Df={value:!0,isValid:!0};var sy=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===""?Df:{value:e[0].value,isValid:!0}:Df:Af}return Af},ly=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ve(e)?e:t?e===""?NaN:e&&+e:n&&mt(e)?new Date(e):r?r(e):e;const If={isValid:!1,value:null};var ay=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,If):If;function bf(e){const t=e.ref;return Mc(t)?t.files:Oc(t)?ay(e.refs).value:oy(t)?[...t.selectedOptions].map(({value:n})=>n):ci(t)?sy(e.refs).value:ly(ve(t.value)?e.ref.value:t.value,e)}var Mk=(e,t,n,r)=>{const o={};for(const i of e){const s=b(t,i);s&&ce(o,i,s._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},As=e=>e instanceof RegExp,So=e=>ve(e)?e:As(e)?e.source:Ie(e)?As(e.value)?e.value.source:e.value:e,Mr=e=>({isOnSubmit:!e||e===_t.onSubmit,isOnBlur:e===_t.onBlur,isOnChange:e===_t.onChange,isOnAll:e===_t.all,isOnTouch:e===_t.onTouched});const Mf="AsyncFunction";var Ok=e=>!!e&&!!e.validate&&!!(zt(e.validate)&&e.validate.constructor.name===Mf||Ie(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Mf)),Lk=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),au=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Ur=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=b(e,o);if(i){const{_f:s,...l}=i;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],o)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(Ur(l,t))break}else if(Ie(l)&&Ur(l,t))break}}};function Of(e,t,n){const r=b(e,n);if(r||ol(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),s=b(t,i),l=b(e,i);if(s&&!Array.isArray(s)&&n!==i)return{name:n};if(l&&l.type)return{name:i,error:l};if(l&&l.root&&l.root.type)return{name:`${i}.root`,error:l.root};o.pop()}return{name:n}}var Fk=(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(s=>t[s]===(!r||_t.all))},$k=(e,t,n)=>!e||!t||e===t||lt(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),jk=(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,Vk=(e,t)=>!il(b(e,t)).length&&Te(e,t),uy=(e,t,n)=>{const r=lt(b(e,n));return ce(r,"root",t[n]),ce(e,n,r),e};function Lf(e,t,n="validate"){if(mt(e)||Array.isArray(e)&&e.every(mt)||ht(e)&&!e)return{type:n,message:mt(e)?e:"",ref:t}}var xr=e=>Ie(e)&&!As(e)?e:{value:e,message:""},uu=async(e,t,n,r,o,i)=>{const{ref:s,refs:l,required:a,maxLength:u,minLength:f,min:c,max:v,pattern:w,validate:S,name:y,valueAsNumber:x,mount:h}=e._f,p=b(n,y);if(!h||t.has(y))return{};const m=l?l[0]:s,g=B=>{o&&m.reportValidity&&(m.setCustomValidity(ht(B)?"":B||""),m.reportValidity())},E={},_=Oc(s),k=ci(s),A=_||k,$=(x||Mc(s))&&ve(s.value)&&ve(p)||Ns(s)&&s.value===""||p===""||Array.isArray(p)&&!p.length,F=bc.bind(null,y,r,E),W=(B,V,G,J=nn.maxLength,L=nn.minLength)=>{const K=B?V:G;E[y]={type:B?J:L,message:K,ref:s,...F(B?J:L,K)}};if(i?!Array.isArray(p)||!p.length:a&&(!A&&($||ot(p))||ht(p)&&!p||k&&!sy(l).isValid||_&&!ay(l).isValid)){const{value:B,message:V}=mt(a)?{value:!!a,message:a}:xr(a);if(B&&(E[y]={type:nn.required,message:V,ref:m,...F(nn.required,V)},!r))return g(V),E}if(!$&&(!ot(c)||!ot(v))){let B,V;const G=xr(v),J=xr(c);if(!ot(p)&&!isNaN(p)){const L=s.valueAsNumber||p&&+p;ot(G.value)||(B=L>G.value),ot(J.value)||(V=L<J.value)}else{const L=s.valueAsDate||new Date(p),K=de=>new Date(new Date().toDateString()+" "+de),Y=s.type=="time",ae=s.type=="week";mt(G.value)&&p&&(B=Y?K(p)>K(G.value):ae?p>G.value:L>new Date(G.value)),mt(J.value)&&p&&(V=Y?K(p)<K(J.value):ae?p<J.value:L<new Date(J.value))}if((B||V)&&(W(!!B,G.message,J.message,nn.max,nn.min),!r))return g(E[y].message),E}if((u||f)&&!$&&(mt(p)||i&&Array.isArray(p))){const B=xr(u),V=xr(f),G=!ot(B.value)&&p.length>+B.value,J=!ot(V.value)&&p.length<+V.value;if((G||J)&&(W(G,B.message,V.message),!r))return g(E[y].message),E}if(w&&!$&&mt(p)){const{value:B,message:V}=xr(w);if(As(B)&&!p.match(B)&&(E[y]={type:nn.pattern,message:V,ref:s,...F(nn.pattern,V)},!r))return g(V),E}if(S){if(zt(S)){const B=await S(p,n),V=Lf(B,m);if(V&&(E[y]={...V,...F(nn.validate,V.message)},!r))return g(V.message),E}else if(Ie(S)){let B={};for(const V in S){if(!Qe(B)&&!r)break;const G=Lf(await S[V](p,n),m,V);G&&(B={...G,...F(V,G.message)},g(G.message),r&&(E[y]=B))}if(!Qe(B)&&(E[y]={ref:m,...B},!r))return E}}return g(!0),E};const zk={mode:_t.onSubmit,reValidateMode:_t.onChange,shouldFocusError:!0};function Bk(e={}){let t={...zk,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:zt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=Ie(t.defaultValues)||Ie(t.values)?we(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:we(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},a,u=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let c={...f};const v={array:Nf(),state:Nf()},w=t.criteriaMode===_t.all,S=C=>P=>{clearTimeout(u),u=setTimeout(C,P)},y=async C=>{if(!t.disabled&&(f.isValid||c.isValid||C)){const P=t.resolver?Qe((await k()).errors):await $(r,!0);P!==n.isValid&&v.state.next({isValid:P})}},x=(C,P)=>{!t.disabled&&(f.isValidating||f.validatingFields||c.isValidating||c.validatingFields)&&((C||Array.from(l.mount)).forEach(N=>{N&&(P?ce(n.validatingFields,N,P):Te(n.validatingFields,N))}),v.state.next({validatingFields:n.validatingFields,isValidating:!Qe(n.validatingFields)}))},h=(C,P=[],N,O,M=!0,I=!0)=>{if(O&&N&&!t.disabled){if(s.action=!0,I&&Array.isArray(b(r,C))){const z=N(b(r,C),O.argA,O.argB);M&&ce(r,C,z)}if(I&&Array.isArray(b(n.errors,C))){const z=N(b(n.errors,C),O.argA,O.argB);M&&ce(n.errors,C,z),Vk(n.errors,C)}if((f.touchedFields||c.touchedFields)&&I&&Array.isArray(b(n.touchedFields,C))){const z=N(b(n.touchedFields,C),O.argA,O.argB);M&&ce(n.touchedFields,C,z)}(f.dirtyFields||c.dirtyFields)&&(n.dirtyFields=Sr(o,i)),v.state.next({name:C,isDirty:W(C,P),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ce(i,C,P)},p=(C,P)=>{ce(n.errors,C,P),v.state.next({errors:n.errors})},m=C=>{n.errors=C,v.state.next({errors:n.errors,isValid:!1})},g=(C,P,N,O)=>{const M=b(r,C);if(M){const I=b(i,C,ve(N)?b(o,C):N);ve(I)||O&&O.defaultChecked||P?ce(i,C,P?I:bf(M._f)):G(C,I),s.mount&&y()}},E=(C,P,N,O,M)=>{let I=!1,z=!1;const ue={name:C};if(!t.disabled){if(!N||O){(f.isDirty||c.isDirty)&&(z=n.isDirty,n.isDirty=ue.isDirty=W(),I=z!==ue.isDirty);const fe=Vt(b(o,C),P);z=!!b(n.dirtyFields,C),fe?Te(n.dirtyFields,C):ce(n.dirtyFields,C,!0),ue.dirtyFields=n.dirtyFields,I=I||(f.dirtyFields||c.dirtyFields)&&z!==!fe}if(N){const fe=b(n.touchedFields,C);fe||(ce(n.touchedFields,C,N),ue.touchedFields=n.touchedFields,I=I||(f.touchedFields||c.touchedFields)&&fe!==N)}I&&M&&v.state.next(ue)}return I?ue:{}},_=(C,P,N,O)=>{const M=b(n.errors,C),I=(f.isValid||c.isValid)&&ht(P)&&n.isValid!==P;if(t.delayError&&N?(a=S(()=>p(C,N)),a(t.delayError)):(clearTimeout(u),a=null,N?ce(n.errors,C,N):Te(n.errors,C)),(N?!Vt(M,N):M)||!Qe(O)||I){const z={...O,...I&&ht(P)?{isValid:P}:{},errors:n.errors,name:C};n={...n,...z},v.state.next(z)}},k=async C=>{x(C,!0);const P=await t.resolver(i,t.context,Mk(C||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(C),P},A=async C=>{const{errors:P}=await k(C);if(C)for(const N of C){const O=b(P,N);O?ce(n.errors,N,O):Te(n.errors,N)}else n.errors=P;return P},$=async(C,P,N={valid:!0})=>{for(const O in C){const M=C[O];if(M){const{_f:I,...z}=M;if(I){const ue=l.array.has(I.name),fe=M._f&&Ok(M._f);fe&&f.validatingFields&&x([I.name],!0);const We=await uu(M,l.disabled,i,w,t.shouldUseNativeValidation&&!P,ue);if(fe&&f.validatingFields&&x([I.name]),We[I.name]&&(N.valid=!1,P))break;!P&&(b(We,I.name)?ue?uy(n.errors,We,I.name):ce(n.errors,I.name,We[I.name]):Te(n.errors,I.name))}!Qe(z)&&await $(z,P,N)}}return N.valid},F=()=>{for(const C of l.unMount){const P=b(r,C);P&&(P._f.refs?P._f.refs.every(N=>!Xl(N)):!Xl(P._f.ref))&&U(C)}l.unMount=new Set},W=(C,P)=>!t.disabled&&(C&&P&&ce(i,C,P),!Vt(de(),o)),B=(C,P,N)=>iu(C,l,{...s.mount?i:ve(P)?o:mt(C)?{[C]:P}:P},N,P),V=C=>il(b(s.mount?i:o,C,t.shouldUnregister?b(o,C,[]):[])),G=(C,P,N={})=>{const O=b(r,C);let M=P;if(O){const I=O._f;I&&(!I.disabled&&ce(i,C,ly(P,I)),M=Ns(I.ref)&&ot(P)?"":P,oy(I.ref)?[...I.ref.options].forEach(z=>z.selected=M.includes(z.value)):I.refs?ci(I.ref)?I.refs.forEach(z=>{(!z.defaultChecked||!z.disabled)&&(Array.isArray(M)?z.checked=!!M.find(ue=>ue===z.value):z.checked=M===z.value||!!M)}):I.refs.forEach(z=>z.checked=z.value===M):Mc(I.ref)?I.ref.value="":(I.ref.value=M,I.ref.type||v.state.next({name:C,values:we(i)})))}(N.shouldDirty||N.shouldTouch)&&E(C,M,N.shouldTouch,N.shouldDirty,!0),N.shouldValidate&&ae(C)},J=(C,P,N)=>{for(const O in P){if(!P.hasOwnProperty(O))return;const M=P[O],I=C+"."+O,z=b(r,I);(l.array.has(C)||Ie(M)||z&&!z._f)&&!tr(M)?J(I,M,N):G(I,M,N)}},L=(C,P,N={})=>{const O=b(r,C),M=l.array.has(C),I=we(P);ce(i,C,I),M?(v.array.next({name:C,values:we(i)}),(f.isDirty||f.dirtyFields||c.isDirty||c.dirtyFields)&&N.shouldDirty&&v.state.next({name:C,dirtyFields:Sr(o,i),isDirty:W(C,I)})):O&&!O._f&&!ot(I)?J(C,I,N):G(C,I,N),au(C,l)&&v.state.next({...n,name:C}),v.state.next({name:s.mount?C:void 0,values:we(i)})},K=async C=>{s.mount=!0;const P=C.target;let N=P.name,O=!0;const M=b(r,N),I=fe=>{O=Number.isNaN(fe)||tr(fe)&&isNaN(fe.getTime())||Vt(fe,b(i,N,fe))},z=Mr(t.mode),ue=Mr(t.reValidateMode);if(M){let fe,We;const Dt=P.type?bf(M._f):ey(C),It=C.type===Ts.BLUR||C.type===Ts.FOCUS_OUT,wn=!Lk(M._f)&&!t.resolver&&!b(n.errors,N)&&!M._f.deps||jk(It,b(n.touchedFields,N),n.isSubmitted,ue,z),ao=au(N,l,It);ce(i,N,Dt),It?(!P||!P.readOnly)&&(M._f.onBlur&&M._f.onBlur(C),a&&a(0)):M._f.onChange&&M._f.onChange(C);const uo=E(N,Dt,It),di=!Qe(uo)||ao;if(!It&&v.state.next({name:N,type:C.type,values:we(i)}),wn)return(f.isValid||c.isValid)&&(t.mode==="onBlur"?It&&y():It||y()),di&&v.state.next({name:N,...ao?{}:uo});if(!It&&ao&&v.state.next({...n}),t.resolver){const{errors:co}=await k([N]);if(I(Dt),O){const fl=Of(n.errors,r,N),vr=Of(co,r,fl.name||N);fe=vr.error,N=vr.name,We=Qe(co)}}else x([N],!0),fe=(await uu(M,l.disabled,i,w,t.shouldUseNativeValidation))[N],x([N]),I(Dt),O&&(fe?We=!1:(f.isValid||c.isValid)&&(We=await $(r,!0)));O&&(M._f.deps&&(!Array.isArray(M._f.deps)||M._f.deps.length>0)&&ae(M._f.deps),_(N,We,fe,uo))}},Y=(C,P)=>{if(b(n.errors,P)&&C.focus)return C.focus(),1},ae=async(C,P={})=>{let N,O;const M=lt(C);if(t.resolver){const I=await A(ve(C)?C:M);N=Qe(I),O=C?!M.some(z=>b(I,z)):N}else C?(O=(await Promise.all(M.map(async I=>{const z=b(r,I);return await $(z&&z._f?{[I]:z}:z)}))).every(Boolean),!(!O&&!n.isValid)&&y()):O=N=await $(r);return v.state.next({...!mt(C)||(f.isValid||c.isValid)&&N!==n.isValid?{}:{name:C},...t.resolver||!C?{isValid:N}:{},errors:n.errors}),P.shouldFocus&&!O&&Ur(r,Y,C?M:l.mount),O},de=(C,P)=>{let N={...s.mount?i:o};return P&&(N=ry(P.dirtyFields?n.dirtyFields:n.touchedFields,N)),ve(C)?N:mt(C)?b(N,C):C.map(O=>b(N,O))},Ae=(C,P)=>({invalid:!!b((P||n).errors,C),isDirty:!!b((P||n).dirtyFields,C),error:b((P||n).errors,C),isValidating:!!b(n.validatingFields,C),isTouched:!!b((P||n).touchedFields,C)}),St=C=>{C&<(C).forEach(P=>Te(n.errors,P)),v.state.next({errors:C?n.errors:{}})},X=(C,P,N)=>{const O=(b(r,C,{_f:{}})._f||{}).ref,M=b(n.errors,C)||{},{ref:I,message:z,type:ue,...fe}=M;ce(n.errors,C,{...fe,...P,ref:O}),v.state.next({name:C,errors:n.errors,isValid:!1}),N&&N.shouldFocus&&O&&O.focus&&O.focus()},se=(C,P)=>zt(C)?v.state.subscribe({next:N=>"values"in N&&C(B(void 0,P),N)}):B(C,P,!0),le=C=>v.state.subscribe({next:P=>{$k(C.name,P.name,C.exact)&&Fk(P,C.formState||f,dt,C.reRenderRoot)&&C.callback({values:{...i},...n,...P,defaultValues:o})}}).unsubscribe,Re=C=>(s.mount=!0,c={...c,...C.formState},le({...C,formState:c})),U=(C,P={})=>{for(const N of C?lt(C):l.mount)l.mount.delete(N),l.array.delete(N),P.keepValue||(Te(r,N),Te(i,N)),!P.keepError&&Te(n.errors,N),!P.keepDirty&&Te(n.dirtyFields,N),!P.keepTouched&&Te(n.touchedFields,N),!P.keepIsValidating&&Te(n.validatingFields,N),!t.shouldUnregister&&!P.keepDefaultValue&&Te(o,N);v.state.next({values:we(i)}),v.state.next({...n,...P.keepDirty?{isDirty:W()}:{}}),!P.keepIsValid&&y()},H=({disabled:C,name:P})=>{(ht(C)&&s.mount||C||l.disabled.has(P))&&(C?l.disabled.add(P):l.disabled.delete(P))},me=(C,P={})=>{let N=b(r,C);const O=ht(P.disabled)||ht(t.disabled);return ce(r,C,{...N||{},_f:{...N&&N._f?N._f:{ref:{name:C}},name:C,mount:!0,...P}}),l.mount.add(C),N?H({disabled:ht(P.disabled)?P.disabled:t.disabled,name:C}):g(C,!0,P.value),{...O?{disabled:P.disabled||t.disabled}:{},...t.progressive?{required:!!P.required,min:So(P.min),max:So(P.max),minLength:So(P.minLength),maxLength:So(P.maxLength),pattern:So(P.pattern)}:{},name:C,onChange:K,onBlur:K,ref:M=>{if(M){me(C,P),N=b(r,C);const I=ve(M.value)&&M.querySelectorAll&&M.querySelectorAll("input,select,textarea")[0]||M,z=Ak(I),ue=N._f.refs||[];if(z?ue.find(fe=>fe===I):I===N._f.ref)return;ce(r,C,{_f:{...N._f,...z?{refs:[...ue.filter(Xl),I,...Array.isArray(b(o,C))?[{}]:[]],ref:{type:I.type,name:C}}:{ref:I}}}),g(C,!1,void 0,I)}else N=b(r,C,{}),N._f&&(N._f.mount=!1),(t.shouldUnregister||P.shouldUnregister)&&!(ty(l.array,C)&&s.action)&&l.unMount.add(C)}}},re=()=>t.shouldFocusError&&Ur(r,Y,l.mount),oe=C=>{ht(C)&&(v.state.next({disabled:C}),Ur(r,(P,N)=>{const O=b(r,N);O&&(P.disabled=O._f.disabled||C,Array.isArray(O._f.refs)&&O._f.refs.forEach(M=>{M.disabled=O._f.disabled||C}))},0,!1))},ee=(C,P)=>async N=>{let O;N&&(N.preventDefault&&N.preventDefault(),N.persist&&N.persist());let M=we(i);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:I,values:z}=await k();n.errors=I,M=we(z)}else await $(r);if(l.disabled.size)for(const I of l.disabled)Te(M,I);if(Te(n.errors,"root"),Qe(n.errors)){v.state.next({errors:{}});try{await C(M,N)}catch(I){O=I}}else P&&await P({...n.errors},N),re(),setTimeout(re);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Qe(n.errors)&&!O,submitCount:n.submitCount+1,errors:n.errors}),O)throw O},$e=(C,P={})=>{b(r,C)&&(ve(P.defaultValue)?L(C,we(b(o,C))):(L(C,P.defaultValue),ce(o,C,we(P.defaultValue))),P.keepTouched||Te(n.touchedFields,C),P.keepDirty||(Te(n.dirtyFields,C),n.isDirty=P.defaultValue?W(C,we(b(o,C))):W()),P.keepError||(Te(n.errors,C),f.isValid&&y()),v.state.next({...n}))},je=(C,P={})=>{const N=C?we(C):o,O=we(N),M=Qe(C),I=M?o:O;if(P.keepDefaultValues||(o=N),!P.keepValues){if(P.keepDirtyValues){const z=new Set([...l.mount,...Object.keys(Sr(o,i))]);for(const ue of Array.from(z))b(n.dirtyFields,ue)?ce(I,ue,b(i,ue)):L(ue,b(I,ue))}else{if(Ac&&ve(C))for(const z of l.mount){const ue=b(r,z);if(ue&&ue._f){const fe=Array.isArray(ue._f.refs)?ue._f.refs[0]:ue._f.ref;if(Ns(fe)){const We=fe.closest("form");if(We){We.reset();break}}}}if(P.keepFieldsRef)for(const z of l.mount)L(z,b(I,z));else r={}}i=t.shouldUnregister?P.keepDefaultValues?we(o):{}:we(I),v.array.next({values:{...I}}),v.state.next({values:{...I}})}l={mount:P.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!f.isValid||!!P.keepIsValid||!!P.keepDirtyValues||!t.shouldUnregister&&!Qe(I),s.watch=!!t.shouldUnregister,v.state.next({submitCount:P.keepSubmitCount?n.submitCount:0,isDirty:M?!1:P.keepDirty?n.isDirty:!!(P.keepDefaultValues&&!Vt(C,o)),isSubmitted:P.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:M?{}:P.keepDirtyValues?P.keepDefaultValues&&i?Sr(o,i):n.dirtyFields:P.keepDefaultValues&&C?Sr(o,C):P.keepDirty?n.dirtyFields:{},touchedFields:P.keepTouched?n.touchedFields:{},errors:P.keepErrors?n.errors:{},isSubmitSuccessful:P.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Yt=(C,P)=>je(zt(C)?C(i):C,P),Gt=(C,P={})=>{const N=b(r,C),O=N&&N._f;if(O){const M=O.refs?O.refs[0]:O.ref;M.focus&&(M.focus(),P.shouldSelect&&zt(M.select)&&M.select())}},dt=C=>{n={...n,...C}},Ve={control:{register:me,unregister:U,getFieldState:Ae,handleSubmit:ee,setError:X,_subscribe:le,_runSchema:k,_focusError:re,_getWatch:B,_getDirty:W,_setValid:y,_setFieldArray:h,_setDisabledField:H,_setErrors:m,_getFieldArray:V,_reset:je,_resetDefaultValues:()=>zt(t.defaultValues)&&t.defaultValues().then(C=>{Yt(C,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:F,_disableForm:oe,_subjects:v,_proxyFormState:f,get _fields(){return r},get _formValues(){return i},get _state(){return s},set _state(C){s=C},get _defaultValues(){return o},get _names(){return l},set _names(C){l=C},get _formState(){return n},get _options(){return t},set _options(C){t={...t,...C}}},subscribe:Re,trigger:ae,register:me,handleSubmit:ee,watch:se,setValue:L,getValues:de,reset:Yt,resetField:$e,clearErrors:St,unregister:U,setError:X,setFocus:Gt,getFieldState:Ae};return{...Ve,formControl:Ve}}var En=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},Zl=(e,t,n={})=>n.shouldFocus||ve(n.shouldFocus)?n.focusName||`${e}.${ve(n.focusIndex)?t:n.focusIndex}.`:"",ql=(e,t)=>[...e,...lt(t)],Jl=e=>Array.isArray(e)?e.map(()=>{}):void 0;function ea(e,t,n){return[...e.slice(0,t),...lt(n),...e.slice(t)]}var ta=(e,t,n)=>Array.isArray(e)?(ve(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],na=(e,t)=>[...lt(t),...lt(e)];function Uk(e,t){let n=0;const r=[...e];for(const o of t)r.splice(o-n,1),n++;return il(r).length?r:[]}var ra=(e,t)=>ve(t)?[]:Uk(e,lt(t).sort((n,r)=>n-r)),oa=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},Ff=(e,t,n)=>(e[t]=n,e);function B2(e){const t=sl(),{control:n=t.control,name:r,keyName:o="id",shouldUnregister:i,rules:s}=e,[l,a]=T.useState(n._getFieldArray(r)),u=T.useRef(n._getFieldArray(r).map(En)),f=T.useRef(!1);n._names.array.add(r),T.useMemo(()=>s&&l.length>=0&&n.register(r,s),[n,r,l.length,s]),ll(()=>n._subjects.array.subscribe({next:({values:g,name:E})=>{if(E===r||!E){const _=b(g,r);Array.isArray(_)&&(a(_),u.current=_.map(En))}}}).unsubscribe,[n,r]);const c=T.useCallback(g=>{f.current=!0,n._setFieldArray(r,g)},[n,r]),v=(g,E)=>{const _=lt(we(g)),k=ql(n._getFieldArray(r),_);n._names.focus=Zl(r,k.length-1,E),u.current=ql(u.current,_.map(En)),c(k),a(k),n._setFieldArray(r,k,ql,{argA:Jl(g)})},w=(g,E)=>{const _=lt(we(g)),k=na(n._getFieldArray(r),_);n._names.focus=Zl(r,0,E),u.current=na(u.current,_.map(En)),c(k),a(k),n._setFieldArray(r,k,na,{argA:Jl(g)})},S=g=>{const E=ra(n._getFieldArray(r),g);u.current=ra(u.current,g),c(E),a(E),!Array.isArray(b(n._fields,r))&&ce(n._fields,r,void 0),n._setFieldArray(r,E,ra,{argA:g})},y=(g,E,_)=>{const k=lt(we(E)),A=ea(n._getFieldArray(r),g,k);n._names.focus=Zl(r,g,_),u.current=ea(u.current,g,k.map(En)),c(A),a(A),n._setFieldArray(r,A,ea,{argA:g,argB:Jl(E)})},x=(g,E)=>{const _=n._getFieldArray(r);oa(_,g,E),oa(u.current,g,E),c(_),a(_),n._setFieldArray(r,_,oa,{argA:g,argB:E},!1)},h=(g,E)=>{const _=n._getFieldArray(r);ta(_,g,E),ta(u.current,g,E),c(_),a(_),n._setFieldArray(r,_,ta,{argA:g,argB:E},!1)},p=(g,E)=>{const _=we(E),k=Ff(n._getFieldArray(r),g,_);u.current=[...k].map((A,$)=>!A||$===g?En():u.current[$]),c(k),a([...k]),n._setFieldArray(r,k,Ff,{argA:g,argB:_},!0,!1)},m=g=>{const E=lt(we(g));u.current=E.map(En),c([...E]),a([...E]),n._setFieldArray(r,[...E],_=>_,{},!0,!1)};return T.useEffect(()=>{if(n._state.action=!1,au(r,n._names)&&n._subjects.state.next({...n._formState}),f.current&&(!Mr(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Mr(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(g=>{const E=b(g.errors,r),_=b(n._formState.errors,r);(_?!E&&_.type||E&&(_.type!==E.type||_.message!==E.message):E&&E.type)&&(E?ce(n._formState.errors,r,E):Te(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const g=b(n._fields,r);g&&g._f&&!(Mr(n._options.reValidateMode).isOnSubmit&&Mr(n._options.mode).isOnSubmit)&&uu(g,n._names.disabled,n._formValues,n._options.criteriaMode===_t.all,n._options.shouldUseNativeValidation,!0).then(E=>!Qe(E)&&n._subjects.state.next({errors:uy(n._formState.errors,E,r)}))}n._subjects.state.next({name:r,values:we(n._formValues)}),n._names.focus&&Ur(n._fields,(g,E)=>{if(n._names.focus&&E.startsWith(n._names.focus)&&g.focus)return g.focus(),1}),n._names.focus="",n._setValid(),f.current=!1},[l,r,n]),T.useEffect(()=>(!b(n._formValues,r)&&n._setFieldArray(r),()=>{const g=(E,_)=>{const k=b(n._fields,E);k&&k._f&&(k._f.mount=_)};n._options.shouldUnregister||i?n.unregister(r):g(r,!1)}),[r,n,o,i]),{swap:T.useCallback(x,[c,r,n]),move:T.useCallback(h,[c,r,n]),prepend:T.useCallback(w,[c,r,n]),append:T.useCallback(v,[c,r,n]),remove:T.useCallback(S,[c,r,n]),insert:T.useCallback(y,[c,r,n]),update:T.useCallback(p,[c,r,n]),replace:T.useCallback(m,[c,r,n]),fields:T.useMemo(()=>l.map((g,E)=>({...g,[o]:u.current[E]||En()})),[l,o])}}function U2(e={}){const t=T.useRef(void 0),n=T.useRef(void 0),[r,o]=T.useState({isDirty:!1,isValidating:!1,isLoading:zt(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:zt(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!zt(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:s,...l}=Bk(e);t.current={...l,formState:r}}const i=t.current.control;return i._options=e,ll(()=>{const s=i._subscribe({formState:i._proxyFormState,callback:()=>o({...i._formState}),reRenderRoot:!0});return o(l=>({...l,isReady:!0})),i._formState.isReady=!0,s},[i]),T.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),T.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),T.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),T.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),T.useEffect(()=>{if(i._proxyFormState.isDirty){const s=i._getDirty();s!==r.isDirty&&i._subjects.state.next({isDirty:s})}},[i,r.isDirty]),T.useEffect(()=>{e.values&&!Vt(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),n.current=e.values,o(s=>({...s}))):i._resetDefaultValues()},[i,e.values]),T.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=ny(r,i),t.current}var Hk="Label",cy=d.forwardRef((e,t)=>R.jsx(Em.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())}}));cy.displayName=Hk;var H2=cy;const $f=(e,t,n)=>{if(e&&"reportValidity"in e){const r=b(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},cu=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?$f(r.ref,n,e):r&&r.refs&&r.refs.forEach(o=>$f(o,n,e))}},jf=(e,t)=>{t.shouldUseNativeValidation&&cu(e,t);const n={};for(const r in e){const o=b(t.fields,r),i=Object.assign(e[r]||{},{ref:o&&o.ref});if(Wk(t.names||Object.keys(e),r)){const s=Object.assign({},b(n,r));ce(s,"root",i),ce(n,r,s)}else ce(n,r,i)}return n},Wk=(e,t)=>{const n=Vf(t);return e.some(r=>Vf(r).match(`^${n}\\.\\d+`))};function Vf(e){return e.replace(/\]|\[/g,"")}function zf(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function Kk(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,s=r.path.join(".");if(!n[s])if("unionErrors"in r){var l=r.unionErrors[0].errors[0];n[s]={message:l.message,type:l.code}}else n[s]={message:i,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(f){return f.errors.forEach(function(c){return e.push(c)})}),t){var a=n[s].types,u=a&&a[r.code];n[s]=bc(s,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function Yk(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,s=r.path.join(".");if(!n[s])if(r.code==="invalid_union"&&r.errors.length>0){var l=r.errors[0][0];n[s]={message:l.message,type:l.code}}else n[s]={message:i,type:o};if(r.code==="invalid_union"&&r.errors.forEach(function(f){return f.forEach(function(c){return e.push(c)})}),t){var a=n[s].types,u=a&&a[r.code];n[s]=bc(s,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function W2(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(zf(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(s){return i.shouldUseNativeValidation&&cu({},i),{errors:{},values:n.raw?Object.assign({},r):s}})},function(s){if((function(l){return Array.isArray(l==null?void 0:l.issues)})(s))return{values:{},errors:jf(Kk(s.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw s}))}catch(s){return Promise.reject(s)}};if((function(r){return"_zod"in r&&typeof r._zod=="object"})(e))return function(r,o,i){try{return Promise.resolve(zf(function(){return Promise.resolve((n.mode==="sync"?ig:sg)(e,r,t)).then(function(s){return i.shouldUseNativeValidation&&cu({},i),{errors:{},values:n.raw?Object.assign({},r):s}})},function(s){if((function(l){return l instanceof lg})(s))return{values:{},errors:jf(Yk(s.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw s}))}catch(s){return Promise.reject(s)}};throw new Error("Invalid input: not a Zod schema")}function dy(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var al="Checkbox",[Gk]=yn(al),[Qk,Lc]=Gk(al);function Xk(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:s,name:l,onCheckedChange:a,required:u,value:f="on",internal_do_not_use_render:c}=e,[v,w]=ur({prop:n,defaultProp:o??!1,onChange:a,caller:al}),[S,y]=d.useState(null),[x,h]=d.useState(null),p=d.useRef(!1),m=S?!!s||!!S.closest("form"):!0,g={checked:v,disabled:i,setChecked:w,control:S,setControl:y,name:l,form:s,value:f,hasConsumerStoppedPropagationRef:p,required:u,defaultChecked:jn(o)?!1:o,isFormControl:m,bubbleInput:x,setBubbleInput:h};return R.jsx(Qk,{scope:t,...g,children:Jk(c)?c(g):r})}var fy="CheckboxTrigger",py=d.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:s,disabled:l,checked:a,required:u,setControl:f,setChecked:c,hasConsumerStoppedPropagationRef:v,isFormControl:w,bubbleInput:S}=Lc(fy,e),y=he(o,f),x=d.useRef(a);return d.useEffect(()=>{const h=i==null?void 0:i.form;if(h){const p=()=>c(x.current);return h.addEventListener("reset",p),()=>h.removeEventListener("reset",p)}},[i,c]),R.jsx(ne.button,{type:"button",role:"checkbox","aria-checked":jn(a)?"mixed":a,"aria-required":u,"data-state":yy(a),"data-disabled":l?"":void 0,disabled:l,value:s,...r,ref:y,onKeyDown:Q(t,h=>{h.key==="Enter"&&h.preventDefault()}),onClick:Q(n,h=>{c(p=>jn(p)?!0:!p),S&&w&&(v.current=h.isPropagationStopped(),v.current||h.stopPropagation())})})});py.displayName=fy;var Zk=d.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:s,disabled:l,value:a,onCheckedChange:u,form:f,...c}=e;return R.jsx(Xk,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:l,required:s,onCheckedChange:u,name:r,form:f,value:a,internal_do_not_use_render:({isFormControl:v})=>R.jsxs(R.Fragment,{children:[R.jsx(py,{...c,ref:t,__scopeCheckbox:n}),v&&R.jsx(vy,{__scopeCheckbox:n})]})})});Zk.displayName=al;var hy="CheckboxIndicator",qk=d.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Lc(hy,n);return R.jsx(mr,{present:r||jn(i.checked)||i.checked===!0,children:R.jsx(ne.span,{"data-state":yy(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});qk.displayName=hy;var my="CheckboxBubbleInput",vy=d.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:s,required:l,disabled:a,name:u,value:f,form:c,bubbleInput:v,setBubbleInput:w}=Lc(my,e),S=he(n,w),y=dy(i),x=ev(r);d.useEffect(()=>{const p=v;if(!p)return;const m=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(m,"checked").set,_=!o.current;if(y!==i&&E){const k=new Event("click",{bubbles:_});p.indeterminate=jn(i),E.call(p,jn(i)?!1:i),p.dispatchEvent(k)}},[v,y,i,o]);const h=d.useRef(jn(i)?!1:i);return R.jsx(ne.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??h.current,required:l,disabled:a,name:u,value:f,form:c,...t,tabIndex:-1,ref:S,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});vy.displayName=my;function Jk(e){return typeof e=="function"}function jn(e){return e==="indeterminate"}function yy(e){return jn(e)?"indeterminate":e?"checked":"unchecked"}var e_=[" ","Enter","ArrowUp","ArrowDown"],t_=[" ","Enter"],dr="Select",[ul,cl,n_]=Lv(dr),[so]=yn(dr,[n_,Js]),dl=Js(),[r_,Yn]=so(dr),[o_,i_]=so(dr),gy=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:l,onValueChange:a,dir:u,name:f,autoComplete:c,disabled:v,required:w,form:S}=e,y=dl(t),[x,h]=d.useState(null),[p,m]=d.useState(null),[g,E]=d.useState(!1),_=Tc(u),[k,A]=ur({prop:r,defaultProp:o??!1,onChange:i,caller:dr}),[$,F]=ur({prop:s,defaultProp:l,onChange:a,caller:dr}),W=d.useRef(null),B=x?S||!!x.closest("form"):!0,[V,G]=d.useState(new Set),J=Array.from(V).map(L=>L.props.value).join(";");return R.jsx(cv,{...y,children:R.jsxs(r_,{required:w,scope:t,trigger:x,onTriggerChange:h,valueNode:p,onValueNodeChange:m,valueNodeHasChildren:g,onValueNodeHasChildrenChange:E,contentId:cn(),value:$,onValueChange:F,open:k,onOpenChange:A,dir:_,triggerPointerDownPosRef:W,disabled:v,children:[R.jsx(ul.Provider,{scope:t,children:R.jsx(o_,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(L=>{G(K=>new Set(K).add(L))},[]),onNativeOptionRemove:d.useCallback(L=>{G(K=>{const Y=new Set(K);return Y.delete(L),Y})},[]),children:n})}),B?R.jsxs(By,{"aria-hidden":!0,required:w,tabIndex:-1,name:f,autoComplete:c,value:$,onChange:L=>F(L.target.value),disabled:v,form:S,children:[$===void 0?R.jsx("option",{value:""}):null,Array.from(V)]},J):null]})})};gy.displayName=dr;var wy="SelectTrigger",xy=d.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=dl(n),s=Yn(wy,n),l=s.disabled||r,a=he(t,s.onTriggerChange),u=cl(n),f=d.useRef("touch"),[c,v,w]=Hy(y=>{const x=u().filter(m=>!m.disabled),h=x.find(m=>m.value===s.value),p=Wy(x,y,h);p!==void 0&&s.onValueChange(p.value)}),S=y=>{l||(s.onOpenChange(!0),w()),y&&(s.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return R.jsx(dv,{asChild:!0,...i,children:R.jsx(ne.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Uy(s.value)?"":void 0,...o,ref:a,onClick:Q(o.onClick,y=>{y.currentTarget.focus(),f.current!=="mouse"&&S(y)}),onPointerDown:Q(o.onPointerDown,y=>{f.current=y.pointerType;const x=y.target;x.hasPointerCapture(y.pointerId)&&x.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(S(y),y.preventDefault())}),onKeyDown:Q(o.onKeyDown,y=>{const x=c.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&v(y.key),!(x&&y.key===" ")&&e_.includes(y.key)&&(S(),y.preventDefault())})})})});xy.displayName=wy;var Sy="SelectValue",Ey=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...l}=e,a=Yn(Sy,n),{onValueNodeHasChildrenChange:u}=a,f=i!==void 0,c=he(t,a.onValueNodeChange);return qe(()=>{u(f)},[u,f]),R.jsx(ne.span,{...l,ref:c,style:{pointerEvents:"none"},children:Uy(a.value)?R.jsx(R.Fragment,{children:s}):i})});Ey.displayName=Sy;var s_="SelectIcon",Cy=d.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return R.jsx(ne.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Cy.displayName=s_;var l_="SelectPortal",ky=e=>R.jsx(xc,{asChild:!0,...e});ky.displayName=l_;var fr="SelectContent",_y=d.forwardRef((e,t)=>{const n=Yn(fr,e.__scopeSelect),[r,o]=d.useState();if(qe(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?no.createPortal(R.jsx(Ry,{scope:e.__scopeSelect,children:R.jsx(ul.Slot,{scope:e.__scopeSelect,children:R.jsx("div",{children:e.children})})}),i):null}return R.jsx(Py,{...e,ref:t})});_y.displayName=fr;var Lt=10,[Ry,Gn]=so(fr),a_="SelectContentImpl",u_=Zr("SelectContent.RemoveScroll"),Py=d.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:l,sideOffset:a,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:v,collisionPadding:w,sticky:S,hideWhenDetached:y,avoidCollisions:x,...h}=e,p=Yn(fr,n),[m,g]=d.useState(null),[E,_]=d.useState(null),k=he(t,U=>g(U)),[A,$]=d.useState(null),[F,W]=d.useState(null),B=cl(n),[V,G]=d.useState(!1),J=d.useRef(!1);d.useEffect(()=>{if(m)return Uf(m)},[m]),Pm();const L=d.useCallback(U=>{const[H,...me]=B().map(ee=>ee.ref.current),[re]=me.slice(-1),oe=document.activeElement;for(const ee of U)if(ee===oe||(ee==null||ee.scrollIntoView({block:"nearest"}),ee===H&&E&&(E.scrollTop=0),ee===re&&E&&(E.scrollTop=E.scrollHeight),ee==null||ee.focus(),document.activeElement!==oe))return},[B,E]),K=d.useCallback(()=>L([A,m]),[L,A,m]);d.useEffect(()=>{V&&K()},[V,K]);const{onOpenChange:Y,triggerPointerDownPosRef:ae}=p;d.useEffect(()=>{if(m){let U={x:0,y:0};const H=re=>{var oe,ee;U={x:Math.abs(Math.round(re.pageX)-(((oe=ae.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(re.pageY)-(((ee=ae.current)==null?void 0:ee.y)??0))}},me=re=>{U.x<=10&&U.y<=10?re.preventDefault():m.contains(re.target)||Y(!1),document.removeEventListener("pointermove",H),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",H),document.addEventListener("pointerup",me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",me,{capture:!0})}}},[m,Y,ae]),d.useEffect(()=>{const U=()=>Y(!1);return window.addEventListener("blur",U),window.addEventListener("resize",U),()=>{window.removeEventListener("blur",U),window.removeEventListener("resize",U)}},[Y]);const[de,Ae]=Hy(U=>{const H=B().filter(oe=>!oe.disabled),me=H.find(oe=>oe.ref.current===document.activeElement),re=Wy(H,U,me);re&&setTimeout(()=>re.ref.current.focus())}),St=d.useCallback((U,H,me)=>{const re=!J.current&&!me;(p.value!==void 0&&p.value===H||re)&&($(U),re&&(J.current=!0))},[p.value]),X=d.useCallback(()=>m==null?void 0:m.focus(),[m]),se=d.useCallback((U,H,me)=>{const re=!J.current&&!me;(p.value!==void 0&&p.value===H||re)&&W(U)},[p.value]),le=r==="popper"?du:Ty,Re=le===du?{side:l,sideOffset:a,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:v,collisionPadding:w,sticky:S,hideWhenDetached:y,avoidCollisions:x}:{};return R.jsx(Ry,{scope:n,content:m,viewport:E,onViewportChange:_,itemRefCallback:St,selectedItem:A,onItemLeave:X,itemTextRefCallback:se,focusSelectedItem:K,selectedItemText:F,position:r,isPositioned:V,searchRef:de,children:R.jsx(Sc,{as:u_,allowPinchZoom:!0,children:R.jsx(wc,{asChild:!0,trapped:p.open,onMountAutoFocus:U=>{U.preventDefault()},onUnmountAutoFocus:Q(o,U=>{var H;(H=p.trigger)==null||H.focus({preventScroll:!0}),U.preventDefault()}),children:R.jsx(Xs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:U=>U.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:R.jsx(le,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:U=>U.preventDefault(),...h,...Re,onPlaced:()=>G(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...h.style},onKeyDown:Q(h.onKeyDown,U=>{const H=U.ctrlKey||U.altKey||U.metaKey;if(U.key==="Tab"&&U.preventDefault(),!H&&U.key.length===1&&Ae(U.key),["ArrowUp","ArrowDown","Home","End"].includes(U.key)){let re=B().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(U.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(U.key)){const oe=U.target,ee=re.indexOf(oe);re=re.slice(ee+1)}setTimeout(()=>L(re)),U.preventDefault()}})})})})})})});Py.displayName=a_;var c_="SelectItemAlignedPosition",Ty=d.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Yn(fr,n),s=Gn(fr,n),[l,a]=d.useState(null),[u,f]=d.useState(null),c=he(t,k=>f(k)),v=cl(n),w=d.useRef(!1),S=d.useRef(!0),{viewport:y,selectedItem:x,selectedItemText:h,focusSelectedItem:p}=s,m=d.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&y&&x&&h){const k=i.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),$=i.valueNode.getBoundingClientRect(),F=h.getBoundingClientRect();if(i.dir!=="rtl"){const oe=F.left-A.left,ee=$.left-oe,$e=k.left-ee,je=k.width+$e,Yt=Math.max(je,A.width),Gt=window.innerWidth-Lt,dt=zc(ee,[Lt,Math.max(Lt,Gt-Yt)]);l.style.minWidth=je+"px",l.style.left=dt+"px"}else{const oe=A.right-F.right,ee=window.innerWidth-$.right-oe,$e=window.innerWidth-k.right-ee,je=k.width+$e,Yt=Math.max(je,A.width),Gt=window.innerWidth-Lt,dt=zc(ee,[Lt,Math.max(Lt,Gt-Yt)]);l.style.minWidth=je+"px",l.style.right=dt+"px"}const W=v(),B=window.innerHeight-Lt*2,V=y.scrollHeight,G=window.getComputedStyle(u),J=parseInt(G.borderTopWidth,10),L=parseInt(G.paddingTop,10),K=parseInt(G.borderBottomWidth,10),Y=parseInt(G.paddingBottom,10),ae=J+L+V+Y+K,de=Math.min(x.offsetHeight*5,ae),Ae=window.getComputedStyle(y),St=parseInt(Ae.paddingTop,10),X=parseInt(Ae.paddingBottom,10),se=k.top+k.height/2-Lt,le=B-se,Re=x.offsetHeight/2,U=x.offsetTop+Re,H=J+L+U,me=ae-H;if(H<=se){const oe=W.length>0&&x===W[W.length-1].ref.current;l.style.bottom="0px";const ee=u.clientHeight-y.offsetTop-y.offsetHeight,$e=Math.max(le,Re+(oe?X:0)+ee+K),je=H+$e;l.style.height=je+"px"}else{const oe=W.length>0&&x===W[0].ref.current;l.style.top="0px";const $e=Math.max(se,J+y.offsetTop+(oe?St:0)+Re)+me;l.style.height=$e+"px",y.scrollTop=H-se+y.offsetTop}l.style.margin=`${Lt}px 0`,l.style.minHeight=de+"px",l.style.maxHeight=B+"px",r==null||r(),requestAnimationFrame(()=>w.current=!0)}},[v,i.trigger,i.valueNode,l,u,y,x,h,i.dir,r]);qe(()=>m(),[m]);const[g,E]=d.useState();qe(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const _=d.useCallback(k=>{k&&S.current===!0&&(m(),p==null||p(),S.current=!1)},[m,p]);return R.jsx(f_,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:w,onScrollButtonChange:_,children:R.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:g},children:R.jsx(ne.div,{...o,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ty.displayName=c_;var d_="SelectPopperPosition",du=d.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Lt,...i}=e,s=dl(n);return R.jsx(fv,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});du.displayName=d_;var[f_,Fc]=so(fr,{}),fu="SelectViewport",Ny=d.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=Gn(fu,n),s=Fc(fu,n),l=he(t,i.onViewportChange),a=d.useRef(0);return R.jsxs(R.Fragment,{children:[R.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),R.jsx(ul.Slot,{scope:n,children:R.jsx(ne.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Q(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:v}=s;if(v!=null&&v.current&&c){const w=Math.abs(a.current-f.scrollTop);if(w>0){const S=window.innerHeight-Lt*2,y=parseFloat(c.style.minHeight),x=parseFloat(c.style.height),h=Math.max(y,x);if(h<S){const p=h+w,m=Math.min(S,p),g=p-m;c.style.height=m+"px",c.style.bottom==="0px"&&(f.scrollTop=g>0?g:0,c.style.justifyContent="flex-end")}}}a.current=f.scrollTop})})})]})});Ny.displayName=fu;var Ay="SelectGroup",[p_,h_]=so(Ay),m_=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cn();return R.jsx(p_,{scope:n,id:o,children:R.jsx(ne.div,{role:"group","aria-labelledby":o,...r,ref:t})})});m_.displayName=Ay;var Dy="SelectLabel",Iy=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=h_(Dy,n);return R.jsx(ne.div,{id:o.id,...r,ref:t})});Iy.displayName=Dy;var Ds="SelectItem",[v_,by]=so(Ds),My=d.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,l=Yn(Ds,n),a=Gn(Ds,n),u=l.value===r,[f,c]=d.useState(i??""),[v,w]=d.useState(!1),S=he(t,p=>{var m;return(m=a.itemRefCallback)==null?void 0:m.call(a,p,r,o)}),y=cn(),x=d.useRef("touch"),h=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return R.jsx(v_,{scope:n,value:r,disabled:o,textId:y,isSelected:u,onItemTextChange:d.useCallback(p=>{c(m=>m||((p==null?void 0:p.textContent)??"").trim())},[]),children:R.jsx(ul.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:R.jsx(ne.div,{role:"option","aria-labelledby":y,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:S,onFocus:Q(s.onFocus,()=>w(!0)),onBlur:Q(s.onBlur,()=>w(!1)),onClick:Q(s.onClick,()=>{x.current!=="mouse"&&h()}),onPointerUp:Q(s.onPointerUp,()=>{x.current==="mouse"&&h()}),onPointerDown:Q(s.onPointerDown,p=>{x.current=p.pointerType}),onPointerMove:Q(s.onPointerMove,p=>{var m;x.current=p.pointerType,o?(m=a.onItemLeave)==null||m.call(a):x.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Q(s.onPointerLeave,p=>{var m;p.currentTarget===document.activeElement&&((m=a.onItemLeave)==null||m.call(a))}),onKeyDown:Q(s.onKeyDown,p=>{var g;((g=a.searchRef)==null?void 0:g.current)!==""&&p.key===" "||(t_.includes(p.key)&&h(),p.key===" "&&p.preventDefault())})})})})});My.displayName=Ds;var Ro="SelectItemText",Oy=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=Yn(Ro,n),l=Gn(Ro,n),a=by(Ro,n),u=i_(Ro,n),[f,c]=d.useState(null),v=he(t,h=>c(h),a.onItemTextChange,h=>{var p;return(p=l.itemTextRefCallback)==null?void 0:p.call(l,h,a.value,a.disabled)}),w=f==null?void 0:f.textContent,S=d.useMemo(()=>R.jsx("option",{value:a.value,disabled:a.disabled,children:w},a.value),[a.disabled,a.value,w]),{onNativeOptionAdd:y,onNativeOptionRemove:x}=u;return qe(()=>(y(S),()=>x(S)),[y,x,S]),R.jsxs(R.Fragment,{children:[R.jsx(ne.span,{id:a.textId,...i,ref:v}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?no.createPortal(i.children,s.valueNode):null]})});Oy.displayName=Ro;var Ly="SelectItemIndicator",Fy=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return by(Ly,n).isSelected?R.jsx(ne.span,{"aria-hidden":!0,...r,ref:t}):null});Fy.displayName=Ly;var pu="SelectScrollUpButton",$y=d.forwardRef((e,t)=>{const n=Gn(pu,e.__scopeSelect),r=Fc(pu,e.__scopeSelect),[o,i]=d.useState(!1),s=he(t,r.onScrollButtonChange);return qe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=a.scrollTop>0;i(u)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?R.jsx(Vy,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});$y.displayName=pu;var hu="SelectScrollDownButton",jy=d.forwardRef((e,t)=>{const n=Gn(hu,e.__scopeSelect),r=Fc(hu,e.__scopeSelect),[o,i]=d.useState(!1),s=he(t,r.onScrollButtonChange);return qe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=a.scrollHeight-a.clientHeight,f=Math.ceil(a.scrollTop)<u;i(f)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?R.jsx(Vy,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});jy.displayName=hu;var Vy=d.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Gn("SelectScrollButton",n),s=d.useRef(null),l=cl(n),a=d.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return d.useEffect(()=>()=>a(),[a]),qe(()=>{var f;const u=l().find(c=>c.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[l]),R.jsx(ne.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Q(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Q(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Q(o.onPointerLeave,()=>{a()})})}),y_="SelectSeparator",zy=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return R.jsx(ne.div,{"aria-hidden":!0,...r,ref:t})});zy.displayName=y_;var mu="SelectArrow",g_=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dl(n),i=Yn(mu,n),s=Gn(mu,n);return i.open&&s.position==="popper"?R.jsx(pv,{...o,...r,ref:t}):null});g_.displayName=mu;var w_="SelectBubbleInput",By=d.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=d.useRef(null),i=he(r,o),s=dy(t);return d.useEffect(()=>{const l=o.current;if(!l)return;const a=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==t&&f){const c=new Event("change",{bubbles:!0});f.call(l,t),l.dispatchEvent(c)}},[s,t]),R.jsx(ne.select,{...n,style:{...hv,...n.style},ref:i,defaultValue:t})});By.displayName=w_;function Uy(e){return e===""||e===void 0}function Hy(e){const t=Bn(e),n=d.useRef(""),r=d.useRef(0),o=d.useCallback(s=>{const l=n.current+s;t(l),(function a(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>a(""),1e3))})(l)},[t]),i=d.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Wy(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=x_(e,Math.max(i,0));o.length===1&&(s=s.filter(u=>u!==n));const a=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}function x_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var K2=gy,Y2=xy,G2=Ey,Q2=Cy,X2=ky,Z2=_y,q2=Ny,J2=Iy,eR=My,tR=Oy,nR=Fy,rR=$y,oR=jy,iR=zy;export{W_ as $,I2 as A,fC as B,mC as C,yC as D,b_ as E,J_ as F,h2 as G,Y_ as H,p2 as I,M_ as J,o2 as K,vm as L,F2 as M,$2 as N,hC as O,pC as P,j2 as Q,S2 as R,x2 as S,A_ as T,L2 as U,X_ as V,m2 as W,g2 as X,a2 as Y,H_ as Z,s2 as _,Zm as a,U_ as a0,F_ as a1,H2 as a2,sl as a3,V2 as a4,z2 as a5,U2 as a6,W2 as a7,Zk as a8,qk as a9,r2 as aA,K_ as aB,y2 as aC,e2 as aD,d2 as aE,G_ as aF,c2 as aG,l2 as aH,t2 as aI,L_ as aJ,Q_ as aK,R_ as aL,Ew as aM,__ as aN,Kc as aO,T as aP,P_ as aQ,Y2 as aa,Q2 as ab,$_ as ac,rR as ad,z_ as ae,oR as af,X2 as ag,Z2 as ah,q2 as ai,J2 as aj,eR as ak,nR as al,tR as am,iR as an,K2 as ao,G2 as ap,B2 as aq,f2 as ar,v2 as as,j_ as at,V_ as au,B_ as av,i2 as aw,Z_ as ax,w2 as ay,O_ as az,vC as b,D_ as c,I_ as d,dC as e,R2 as f,Hf as g,C2 as h,k2 as i,R as j,_2 as k,n2 as l,q_ as m,u2 as n,A2 as o,N2 as p,D2 as q,d as r,M2 as s,N_ as t,Kn as u,O2 as v,b2 as w,P2 as x,T2 as y,T_ as z};
|
|
319
|
+
//# sourceMappingURL=react-vendor-DrjkXih1.js.map
|