xiaozhi-client 1.9.0 → 1.9.1-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.
@@ -1,324 +0,0 @@
1
- import{c as Q,a as Fc}from"./radix-ui-BA32w1ww.js";import{s as Hy,_ as Rn,a as Ff,g as Wy,b as Ky,h as jf,c as Yy,o as Gy,d as Qy,f as Xy,e as Zy,i as qy,l as Jy,j as jc,k as eg}from"./vendor-CEdxq7J9.js";import{p as tg,a as ng,$ as rg}from"./form-utils-wyhL6gg0.js";function og(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 $f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vf={exports:{}},Ds={},zf={exports:{}},ne={};/**
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"),ig=Symbol.for("react.portal"),sg=Symbol.for("react.fragment"),lg=Symbol.for("react.strict_mode"),ag=Symbol.for("react.profiler"),ug=Symbol.for("react.provider"),cg=Symbol.for("react.context"),dg=Symbol.for("react.forward_ref"),fg=Symbol.for("react.suspense"),pg=Symbol.for("react.memo"),hg=Symbol.for("react.lazy"),$c=Symbol.iterator;function mg(e){return e===null||typeof e!="object"?null:(e=$c&&e[$c]||e["@@iterator"],typeof e=="function"?e:null)}var Bf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Uf=Object.assign,Hf={};function Jr(e,t,n){this.props=e,this.context=t,this.refs=Hf,this.updater=n||Bf}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 Wf(){}Wf.prototype=Jr.prototype;function hu(e,t,n){this.props=e,this.context=t,this.refs=Hf,this.updater=n||Bf}var mu=hu.prototype=new Wf;mu.constructor=hu;Uf(mu,Jr.prototype);mu.isPureReactComponent=!0;var Vc=Array.isArray,Kf=Object.prototype.hasOwnProperty,vu={current:null},Yf={key:!0,ref:!0,__self:!0,__source:!0};function Gf(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)Kf.call(t,r)&&!Yf.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:vu.current}}function vg(e,t){return{$$typeof:ni,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yu(e){return typeof e=="object"&&e!==null&&e.$$typeof===ni}function yg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var zc=/\/+/g;function fl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?yg(""+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 ig:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+fl(s,0):r,Vc(o)?(n="",e!=null&&(n=e.replace(zc,"$&/")+"/"),Fi(o,t,n,"",function(u){return u})):o!=null&&(yu(o)&&(o=vg(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(zc,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Vc(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+fl(i,l);s+=Fi(i,t,n,a,o)}else if(a=mg(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+fl(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 gg(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},ji={transition:null},wg={ReactCurrentDispatcher:tt,ReactCurrentBatchConfig:ji,ReactCurrentOwner:vu};function Qf(){throw Error("act(...) is not supported in production builds of React.")}ne.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(!yu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Component=Jr;ne.Fragment=sg;ne.Profiler=ag;ne.PureComponent=hu;ne.StrictMode=lg;ne.Suspense=fg;ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wg;ne.act=Qf;ne.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=Uf({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=vu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Kf.call(t,a)&&!Yf.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}};ne.createContext=function(e){return e={$$typeof:cg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ug,_context:e},e.Consumer=e};ne.createElement=Gf;ne.createFactory=function(e){var t=Gf.bind(null,e);return t.type=e,t};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:dg,render:e}};ne.isValidElement=yu;ne.lazy=function(e){return{$$typeof:hg,_payload:{_status:-1,_result:e},_init:gg}};ne.memo=function(e,t){return{$$typeof:pg,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=ji.transition;ji.transition={};try{e()}finally{ji.transition=t}};ne.unstable_act=Qf;ne.useCallback=function(e,t){return tt.current.useCallback(e,t)};ne.useContext=function(e){return tt.current.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e){return tt.current.useDeferredValue(e)};ne.useEffect=function(e,t){return tt.current.useEffect(e,t)};ne.useId=function(){return tt.current.useId()};ne.useImperativeHandle=function(e,t,n){return tt.current.useImperativeHandle(e,t,n)};ne.useInsertionEffect=function(e,t){return tt.current.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return tt.current.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return tt.current.useMemo(e,t)};ne.useReducer=function(e,t,n){return tt.current.useReducer(e,t,n)};ne.useRef=function(e){return tt.current.useRef(e)};ne.useState=function(e){return tt.current.useState(e)};ne.useSyncExternalStore=function(e,t,n){return tt.current.useSyncExternalStore(e,t,n)};ne.useTransition=function(){return tt.current.useTransition()};ne.version="18.3.1";zf.exports=ne;var f=zf.exports;const T=$f(f),Xf=og({__proto__:null,default:T},[f]);/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var xg=f,Sg=Symbol.for("react.element"),Eg=Symbol.for("react.fragment"),Cg=Object.prototype.hasOwnProperty,kg=xg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_g={key:!0,ref:!0,__self:!0,__source:!0};function Zf(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)Cg.call(t,r)&&!_g.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:Sg,type:e,key:i,ref:s,props:o,_owner:kg.current}}Ds.Fragment=Eg;Ds.jsx=Zf;Ds.jsxs=Zf;Vf.exports=Ds;var P=Vf.exports,Bc={},qf={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 Rg=f,gt=Hy;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 Jf=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++)Jf.add(t[e])}var dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oa=Object.prototype.hasOwnProperty,Pg=/^[: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]*$/,Uc={},Hc={};function Tg(e){return oa.call(Hc,e)?!0:oa.call(Uc,e)?!1:Pg.test(e)?Hc[e]=!0:(Uc[e]=!0,!1)}function Ng(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 Ag(e,t,n,r){if(t===null||typeof t>"u"||Ng(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 gu=/[\-:]([a-z])/g;function wu(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(gu,wu);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(gu,wu);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(gu,wu);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 xu(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")&&(Ag(t,n,o,r)&&(n=null),r||o===null?Tg(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=Rg.__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"),Su=Symbol.for("react.strict_mode"),ia=Symbol.for("react.profiler"),ep=Symbol.for("react.provider"),tp=Symbol.for("react.context"),Eu=Symbol.for("react.forward_ref"),sa=Symbol.for("react.suspense"),la=Symbol.for("react.suspense_list"),Cu=Symbol.for("react.memo"),kn=Symbol.for("react.lazy"),np=Symbol.for("react.offscreen"),Wc=Symbol.iterator;function fo(e){return e===null||typeof e!="object"?null:(e=Wc&&e[Wc]||e["@@iterator"],typeof e=="function"?e:null)}var _e=Object.assign,pl;function Eo(e){if(pl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);pl=t&&t[1]||""}return`
26
- `+pl+e}var hl=!1;function ml(e,t){if(!e||hl)return"";hl=!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{hl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Eo(e):""}function Dg(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=ml(e.type,!1),e;case 11:return e=ml(e.type.render,!1),e;case 1:return e=ml(e.type,!0),e;default:return""}}function aa(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 ia:return"Profiler";case Su:return"StrictMode";case sa:return"Suspense";case la:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tp:return(e.displayName||"Context")+".Consumer";case ep:return(e._context.displayName||"Context")+".Provider";case Eu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cu:return t=e.displayName||null,t!==null?t:aa(e.type)||"Memo";case kn:t=e._payload,e=e._init;try{return aa(e(t))}catch{}}return null}function Ig(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 aa(t);case 8:return t===Su?"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 rp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mg(e){var t=rp(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=Mg(e))}function op(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rp(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 ua(e,t){var n=t.checked;return _e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Kc(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 ip(e,t){t=t.checked,t!=null&&xu(e,"checked",t,!1)}function ca(e,t){ip(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")?da(e,t.type,n):t.hasOwnProperty("defaultValue")&&da(e,t.type,Vn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yc(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 da(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 fa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return _e({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Gc(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 sp(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 Qc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function lp(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 pa(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?lp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var yi,ap=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},bg=["Webkit","ms","Moz","O"];Object.keys(Po).forEach(function(e){bg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Po[t]=Po[e]})});function up(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 cp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=up(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Og=_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 ha(e,t){if(t){if(Og[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 ma(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 va=null;function ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ya=null,Lr=null,Fr=null;function Xc(e){if(e=ii(e)){if(typeof ya!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Ls(t),ya(e.stateNode,e.type,t))}}function dp(e){Lr?Fr?Fr.push(e):Fr=[e]:Lr=e}function fp(){if(Lr){var e=Lr,t=Fr;if(Fr=Lr=null,Xc(e),t)for(e=0;e<t.length;e++)Xc(t[e])}}function pp(e,t){return e(t)}function hp(){}var vl=!1;function mp(e,t,n){if(vl)return e(t,n);vl=!0;try{return pp(e,t,n)}finally{vl=!1,(Lr!==null||Fr!==null)&&(hp(),fp())}}function jo(e,t){var n=e.stateNode;if(n===null)return null;var r=Ls(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 ga=!1;if(dn)try{var po={};Object.defineProperty(po,"passive",{get:function(){ga=!0}}),window.addEventListener("test",po,po),window.removeEventListener("test",po,po)}catch{ga=!1}function Lg(e,t,n,r,o,i,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var To=!1,ts=null,ns=!1,wa=null,Fg={onError:function(e){To=!0,ts=e}};function jg(e,t,n,r,o,i,s,l,a){To=!1,ts=null,Lg.apply(Fg,arguments)}function $g(e,t,n,r,o,i,s,l,a){if(jg.apply(this,arguments),To){if(To){var u=ts;To=!1,ts=null}else throw Error(D(198));ns||(ns=!0,wa=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&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function vp(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 Zc(e){if(hr(e)!==e)throw Error(D(188))}function Vg(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 Zc(o),e;if(i===r)return Zc(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 yp(e){return e=Vg(e),e!==null?gp(e):null}function gp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gp(e);if(t!==null)return t;e=e.sibling}return null}var wp=gt.unstable_scheduleCallback,qc=gt.unstable_cancelCallback,zg=gt.unstable_shouldYield,Bg=gt.unstable_requestPaint,Ne=gt.unstable_now,Ug=gt.unstable_getCurrentPriorityLevel,_u=gt.unstable_ImmediatePriority,xp=gt.unstable_UserBlockingPriority,rs=gt.unstable_NormalPriority,Hg=gt.unstable_LowPriority,Sp=gt.unstable_IdlePriority,Is=null,qt=null;function Wg(e){if(qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(Is,e,void 0,(e.current.flags&128)===128)}catch{}}var Vt=Math.clz32?Math.clz32:Gg,Kg=Math.log,Yg=Math.LN2;function Gg(e){return e>>>=0,e===0?32:31-(Kg(e)/Yg|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)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Vt(t),o=1<<n,r|=e[n],t&=~o;return r}function Qg(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 Xg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Vt(i),l=1<<s,a=o[s];a===-1?(!(l&n)||l&r)&&(o[s]=Qg(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function xa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ep(){var e=gi;return gi<<=1,!(gi&4194240)&&(gi=64),e}function yl(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-Vt(t),e[t]=n}function Zg(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-Vt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Ru(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Vt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var pe=0;function Cp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var kp,Pu,_p,Rp,Pp,Sa=!1,xi=[],Dn=null,In=null,Mn=null,$o=new Map,Vo=new Map,Pn=[],qg="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 Jc(e,t){switch(e){case"focusin":case"focusout":Dn=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":Mn=null;break;case"pointerover":case"pointerout":$o.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&&Pu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Jg(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 Mn=ho(Mn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return $o.set(i,ho($o.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 Tp(e){var t=qn(e.target);if(t!==null){var n=hr(t);if(n!==null){if(t=n.tag,t===13){if(t=vp(n),t!==null){e.blockedOn=t,Pp(e.priority,function(){_p(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 $i(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ea(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);va=r,n.target.dispatchEvent(r),va=null}else return t=ii(n),t!==null&&Pu(t),e.blockedOn=n,!1;t.shift()}return!0}function ed(e,t,n){$i(e)&&n.delete(t)}function e0(){Sa=!1,Dn!==null&&$i(Dn)&&(Dn=null),In!==null&&$i(In)&&(In=null),Mn!==null&&$i(Mn)&&(Mn=null),$o.forEach(ed),Vo.forEach(ed)}function mo(e,t){e.blockedOn===t&&(e.blockedOn=null,Sa||(Sa=!0,gt.unstable_scheduleCallback(gt.unstable_NormalPriority,e0)))}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),Mn!==null&&mo(Mn,e),$o.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);)Tp(n),n.blockedOn===null&&Pn.shift()}var jr=vn.ReactCurrentBatchConfig,is=!0;function t0(e,t,n,r){var o=pe,i=jr.transition;jr.transition=null;try{pe=1,Tu(e,t,n,r)}finally{pe=o,jr.transition=i}}function n0(e,t,n,r){var o=pe,i=jr.transition;jr.transition=null;try{pe=4,Tu(e,t,n,r)}finally{pe=o,jr.transition=i}}function Tu(e,t,n,r){if(is){var o=Ea(e,t,n,r);if(o===null)Pl(e,t,r,ss,n),Jc(e,r);else if(Jg(o,e,t,n,r))r.stopPropagation();else if(Jc(e,r),t&4&&-1<qg.indexOf(e)){for(;o!==null;){var i=ii(o);if(i!==null&&kp(i),i=Ea(e,t,n,r),i===null&&Pl(e,t,r,ss,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Pl(e,t,r,null,n)}}var ss=null;function Ea(e,t,n,r){if(ss=null,e=ku(r),e=qn(e),e!==null)if(t=hr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=vp(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 Np(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(Ug()){case _u:return 1;case xp:return 4;case rs:case Hg:return 16;case Sp:return 536870912;default:return 16}default:return 16}}var Nn=null,Nu=null,Vi=null;function Ap(){if(Vi)return Vi;var e,t=Nu,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 td(){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:td,this.isPropagationStopped=td,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},Au=xt(eo),oi=_e({},eo,{view:0,detail:0}),r0=xt(oi),gl,wl,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:Du,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"?(gl=e.screenX-vo.screenX,wl=e.screenY-vo.screenY):wl=gl=0,vo=e),gl)},movementY:function(e){return"movementY"in e?e.movementY:wl}}),nd=xt(Ms),o0=_e({},Ms,{dataTransfer:0}),i0=xt(o0),s0=_e({},oi,{relatedTarget:0}),xl=xt(s0),l0=_e({},eo,{animationName:0,elapsedTime:0,pseudoElement:0}),a0=xt(l0),u0=_e({},eo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),c0=xt(u0),d0=_e({},eo,{data:0}),rd=xt(d0),f0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},p0={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"},h0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function m0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=h0[e])?!!t[e]:!1}function Du(){return m0}var v0=_e({},oi,{key:function(e){if(e.key){var t=f0[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"?p0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Du,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}}),y0=xt(v0),g0=_e({},Ms,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),od=xt(g0),w0=_e({},oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Du}),x0=xt(w0),S0=_e({},eo,{propertyName:0,elapsedTime:0,pseudoElement:0}),E0=xt(S0),C0=_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}),k0=xt(C0),_0=[9,13,27,32],Iu=dn&&"CompositionEvent"in window,No=null;dn&&"documentMode"in document&&(No=document.documentMode);var R0=dn&&"TextEvent"in window&&!No,Dp=dn&&(!Iu||No&&8<No&&11>=No),id=" ",sd=!1;function Ip(e,t){switch(e){case"keyup":return _0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kr=!1;function P0(e,t){switch(e){case"compositionend":return Mp(t);case"keypress":return t.which!==32?null:(sd=!0,id);case"textInput":return e=t.data,e===id&&sd?null:e;default:return null}}function T0(e,t){if(kr)return e==="compositionend"||!Iu&&Ip(e,t)?(e=Ap(),Vi=Nu=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 Dp&&t.locale!=="ko"?null:t.data;default:return null}}var N0={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 ld(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!N0[e.type]:t==="textarea"}function bp(e,t,n,r){dp(r),t=ls(t,"onChange"),0<t.length&&(n=new Au("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ao=null,Bo=null;function A0(e){Wp(e,0)}function bs(e){var t=Pr(e);if(op(t))return e}function D0(e,t){if(e==="change")return t}var Op=!1;if(dn){var Sl;if(dn){var El="oninput"in document;if(!El){var ad=document.createElement("div");ad.setAttribute("oninput","return;"),El=typeof ad.oninput=="function"}Sl=El}else Sl=!1;Op=Sl&&(!document.documentMode||9<document.documentMode)}function ud(){Ao&&(Ao.detachEvent("onpropertychange",Lp),Bo=Ao=null)}function Lp(e){if(e.propertyName==="value"&&bs(Bo)){var t=[];bp(t,Bo,e,ku(e)),mp(A0,t)}}function I0(e,t,n){e==="focusin"?(ud(),Ao=t,Bo=n,Ao.attachEvent("onpropertychange",Lp)):e==="focusout"&&ud()}function M0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return bs(Bo)}function b0(e,t){if(e==="click")return bs(t)}function O0(e,t){if(e==="input"||e==="change")return bs(t)}function L0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:L0;function Uo(e,t){if(Bt(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(!oa.call(t,o)||!Bt(e[o],t[o]))return!1}return!0}function cd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dd(e,t){var n=cd(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=cd(n)}}function Fp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jp(){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 Mu(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 F0(e){var t=jp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Fp(n.ownerDocument.documentElement,n)){if(r!==null&&Mu(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=dd(n,i);var s=dd(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 j0=dn&&"documentMode"in document&&11>=document.documentMode,_r=null,Ca=null,Do=null,ka=!1;function fd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ka||_r==null||_r!==es(r)||(r=_r,"selectionStart"in r&&Mu(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(Ca,"onSelect"),0<r.length&&(t=new Au("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")},Cl={},$p={};dn&&($p=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 Os(e){if(Cl[e])return Cl[e];if(!Rr[e])return e;var t=Rr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $p)return Cl[e]=t[n];return e}var Vp=Os("animationend"),zp=Os("animationiteration"),Bp=Os("animationstart"),Up=Os("transitionend"),Hp=new Map,pd="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){Hp.set(e,t),pr(t,[e])}for(var kl=0;kl<pd.length;kl++){var _l=pd[kl],$0=_l.toLowerCase(),V0=_l[0].toUpperCase()+_l.slice(1);Un($0,"on"+V0)}Un(Vp,"onAnimationEnd");Un(zp,"onAnimationIteration");Un(Bp,"onAnimationStart");Un("dblclick","onDoubleClick");Un("focusin","onFocus");Un("focusout","onBlur");Un(Up,"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(" "),z0=new Set("cancel close invalid load scroll toggle".split(" ").concat(_o));function hd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,$g(r,t,void 0,e),e.currentTarget=null}function Wp(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;hd(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;hd(o,l,u),i=a}}}if(ns)throw e=wa,ns=!1,wa=null,e}function ge(e,t){var n=t[Na];n===void 0&&(n=t[Na]=new Set);var r=e+"__bubble";n.has(r)||(Kp(t,e,2,!1),n.add(r))}function Rl(e,t,n){var r=0;t&&(r|=4),Kp(n,e,r,t)}var Ci="_reactListening"+Math.random().toString(36).slice(2);function Ho(e){if(!e[Ci]){e[Ci]=!0,Jf.forEach(function(n){n!=="selectionchange"&&(z0.has(n)||Rl(n,!1,e),Rl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ci]||(t[Ci]=!0,Rl("selectionchange",!1,t))}}function Kp(e,t,n,r){switch(Np(t)){case 1:var o=t0;break;case 4:o=n0;break;default:o=Tu}n=o.bind(null,t,n,e),o=void 0,!ga||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 Pl(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&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}mp(function(){var u=i,d=ku(n),c=[];e:{var v=Hp.get(e);if(v!==void 0){var g=Au,S=e;switch(e){case"keypress":if(zi(n)===0)break e;case"keydown":case"keyup":g=y0;break;case"focusin":S="focus",g=xl;break;case"focusout":S="blur",g=xl;break;case"beforeblur":case"afterblur":g=xl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=nd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=i0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=x0;break;case Vp:case zp:case Bp:g=a0;break;case Up:g=E0;break;case"scroll":g=r0;break;case"wheel":g=k0;break;case"copy":case"cut":case"paste":g=c0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=od}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 w=m.stateNode;if(m.tag===5&&w!==null&&(m=w,h!==null&&(w=jo(p,h),w!=null&&y.push(Wo(p,w,m)))),x)break;p=p.return}0<y.length&&(v=new g(v,S,null,n,d),c.push({event:v,listeners:y}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",v&&n!==va&&(S=n.relatedTarget||n.fromElement)&&(qn(S)||S[fn]))break e;if((g||v)&&(v=d.window===d?d:(v=d.ownerDocument)?v.defaultView||v.parentWindow:window,g?(S=n.relatedTarget||n.toElement,g=u,S=S?qn(S):null,S!==null&&(x=hr(S),S!==x||S.tag!==5&&S.tag!==6)&&(S=null)):(g=null,S=u),g!==S)){if(y=nd,w="onMouseLeave",h="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(y=od,w="onPointerLeave",h="onPointerEnter",p="pointer"),x=g==null?v:Pr(g),m=S==null?v:Pr(S),v=new y(w,p+"leave",g,n,d),v.target=x,v.relatedTarget=m,w=null,qn(d)===u&&(y=new y(h,p+"enter",S,n,d),y.target=m,y.relatedTarget=x,w=y),x=w,g&&S)t:{for(y=g,h=S,p=0,m=y;m;m=yr(m))p++;for(m=0,w=h;w;w=yr(w))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;g!==null&&md(c,v,g,y,!1),S!==null&&x!==null&&md(c,x,S,y,!0)}}e:{if(v=u?Pr(u):window,g=v.nodeName&&v.nodeName.toLowerCase(),g==="select"||g==="input"&&v.type==="file")var C=D0;else if(ld(v))if(Op)C=O0;else{C=M0;var _=I0}else(g=v.nodeName)&&g.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(C=b0);if(C&&(C=C(e,u))){bp(c,C,n,d);break e}_&&_(e,v,u),e==="focusout"&&(_=v._wrapperState)&&_.controlled&&v.type==="number"&&da(v,"number",v.value)}switch(_=u?Pr(u):window,e){case"focusin":(ld(_)||_.contentEditable==="true")&&(_r=_,Ca=u,Do=null);break;case"focusout":Do=Ca=_r=null;break;case"mousedown":ka=!0;break;case"contextmenu":case"mouseup":case"dragend":ka=!1,fd(c,n,d);break;case"selectionchange":if(j0)break;case"keydown":case"keyup":fd(c,n,d)}var k;if(Iu)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?Ip(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(Dp&&n.locale!=="ko"&&(kr||A!=="onCompositionStart"?A==="onCompositionEnd"&&kr&&(k=Ap()):(Nn=d,Nu="value"in Nn?Nn.value:Nn.textContent,kr=!0)),_=ls(u,A),0<_.length&&(A=new rd(A,e,null,n,d),c.push({event:A,listeners:_}),k?A.data=k:(k=Mp(n),k!==null&&(A.data=k)))),(k=R0?P0(e,n):T0(e,n))&&(u=ls(u,"onBeforeInput"),0<u.length&&(d=new rd("onBeforeInput","beforeinput",null,n,d),c.push({event:d,listeners:u}),d.data=k))}Wp(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=jo(e,n),i!=null&&r.unshift(Wo(e,i,o)),i=jo(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 md(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=jo(n,i),a!=null&&s.unshift(Wo(n,a,l))):o||(a=jo(n,i),a!=null&&s.push(Wo(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var B0=/\r\n?/g,U0=/\u0000|\uFFFD/g;function vd(e){return(typeof e=="string"?e:""+e).replace(B0,`
30
- `).replace(U0,"")}function ki(e,t,n){if(t=vd(t),vd(e)!==t&&n)throw Error(D(425))}function as(){}var _a=null,Ra=null;function Pa(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 Ta=typeof setTimeout=="function"?setTimeout:void 0,H0=typeof clearTimeout=="function"?clearTimeout:void 0,yd=typeof Promise=="function"?Promise:void 0,W0=typeof queueMicrotask=="function"?queueMicrotask:typeof yd<"u"?function(e){return yd.resolve(null).then(e).catch(K0)}:Ta;function K0(e){setTimeout(function(){throw e})}function Tl(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 bn(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 gd(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),Zt="__reactFiber$"+to,Ko="__reactProps$"+to,fn="__reactContainer$"+to,Na="__reactEvents$"+to,Y0="__reactListeners$"+to,G0="__reactHandles$"+to;function qn(e){var t=e[Zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fn]||n[Zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gd(e);e!==null;){if(n=e[Zt])return n;e=gd(e)}return t}e=n,n=e.parentNode}return null}function ii(e){return e=e[Zt]||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 Ls(e){return e[Ko]||null}var Aa=[],Tr=-1;function Hn(e){return{current:e}}function xe(e){0>Tr||(e.current=Aa[Tr],Aa[Tr]=null,Tr--)}function ye(e,t){Tr++,Aa[Tr]=e.current,e.current=t}var zn={},Xe=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(Xe)}function wd(e,t,n){if(Xe.current!==zn)throw Error(D(168));ye(Xe,t),ye(at,n)}function Yp(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,Ig(e)||"Unknown",o));return _e({},n,r)}function cs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zn,or=Xe.current,ye(Xe,e),ye(at,at.current),!0}function xd(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=Yp(e,t,or),r.__reactInternalMemoizedMergedChildContext=e,xe(at),xe(Xe),ye(Xe,e)):xe(at),ye(at,n)}var rn=null,Fs=!1,Nl=!1;function Gp(e){rn===null?rn=[e]:rn.push(e)}function Q0(e){Fs=!0,Gp(e)}function Wn(){if(!Nl&&rn!==null){Nl=!0;var e=0,t=pe;try{var n=rn;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}rn=null,Fs=!1}catch(o){throw rn!==null&&(rn=rn.slice(e+1)),wp(_u,Wn),o}finally{pe=t,Nl=!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 Qp(e,t,n){Ct[kt++]=sn,Ct[kt++]=ln,Ct[kt++]=ir,ir=e;var r=sn;e=ln;var o=32-Vt(r)-1;r&=~(1<<o),n+=1;var i=32-Vt(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,sn=1<<32-Vt(t)+o|n<<o|r,ln=i+e}else sn=1<<i|n<<o|r,ln=e}function bu(e){e.return!==null&&(Xn(e,1),Qp(e,1,0))}function Ou(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 Xp(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 Sd(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=bn(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 Da(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ia(e){if(Se){var t=vt;if(t){var n=t;if(!Sd(e,t)){if(Da(e))throw Error(D(418));t=bn(n.nextSibling);var r=yt;t&&Sd(e,t)?Xp(r,n):(e.flags=e.flags&-4097|2,Se=!1,yt=e)}}else{if(Da(e))throw Error(D(418));e.flags=e.flags&-4097|2,Se=!1,yt=e}}}function Ed(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 Ed(e),Se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Pa(e.type,e.memoizedProps)),t&&(t=vt)){if(Da(e))throw Zp(),Error(D(418));for(;t;)Xp(e,t),t=bn(t.nextSibling)}if(Ed(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=bn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}vt=null}}else vt=yt?bn(e.stateNode.nextSibling):null;return!0}function Zp(){for(var e=vt;e;)e=bn(e.nextSibling)}function Kr(){vt=yt=null,Se=!1}function Lu(e){jt===null?jt=[e]:jt.push(e)}var X0=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 Cd(e){var t=e._init;return t(e._payload)}function qp(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=jn(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,w){return p===null||p.tag!==6?(p=Ll(m,h.mode,w),p.return=h,p):(p=o(p,m),p.return=h,p)}function a(h,p,m,w){var C=m.type;return C===Cr?d(h,p,m.props.children,w,m.key):p!==null&&(p.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===kn&&Cd(C)===p.type)?(w=o(p,m.props),w.ref=yo(h,p,m),w.return=h,w):(w=Gi(m.type,m.key,m.props,null,h.mode,w),w.ref=yo(h,p,m),w.return=h,w)}function u(h,p,m,w){return p===null||p.tag!==4||p.stateNode.containerInfo!==m.containerInfo||p.stateNode.implementation!==m.implementation?(p=Fl(m,h.mode,w),p.return=h,p):(p=o(p,m.children||[]),p.return=h,p)}function d(h,p,m,w,C){return p===null||p.tag!==7?(p=rr(m,h.mode,w,C),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=Ll(""+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=Fl(p,h.mode,m),p.return=h,p;case kn:var w=p._init;return c(h,w(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,w){var C=p!==null?p.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return C!==null?null:l(h,p,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case mi:return m.key===C?a(h,p,m,w):null;case Er:return m.key===C?u(h,p,m,w):null;case kn:return C=m._init,v(h,p,C(m._payload),w)}if(Co(m)||fo(m))return C!==null?null:d(h,p,m,w,null);Ri(h,m)}return null}function g(h,p,m,w,C){if(typeof w=="string"&&w!==""||typeof w=="number")return h=h.get(m)||null,l(p,h,""+w,C);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case mi:return h=h.get(w.key===null?m:w.key)||null,a(p,h,w,C);case Er:return h=h.get(w.key===null?m:w.key)||null,u(p,h,w,C);case kn:var _=w._init;return g(h,p,m,_(w._payload),C)}if(Co(w)||fo(w))return h=h.get(m)||null,d(p,h,w,C,null);Ri(p,w)}return null}function S(h,p,m,w){for(var C=null,_=null,k=p,A=p=0,j=null;k!==null&&A<m.length;A++){k.index>A?(j=k,k=null):j=k.sibling;var F=v(h,k,m[A],w);if(F===null){k===null&&(k=j);break}e&&k&&F.alternate===null&&t(h,k),p=i(F,p,A),_===null?C=F:_.sibling=F,_=F,k=j}if(A===m.length)return n(h,k),Se&&Xn(h,A),C;if(k===null){for(;A<m.length;A++)k=c(h,m[A],w),k!==null&&(p=i(k,p,A),_===null?C=k:_.sibling=k,_=k);return Se&&Xn(h,A),C}for(k=r(h,k);A<m.length;A++)j=g(k,h,A,m[A],w),j!==null&&(e&&j.alternate!==null&&k.delete(j.key===null?A:j.key),p=i(j,p,A),_===null?C=j:_.sibling=j,_=j);return e&&k.forEach(function(W){return t(h,W)}),Se&&Xn(h,A),C}function y(h,p,m,w){var C=fo(m);if(typeof C!="function")throw Error(D(150));if(m=C.call(m),m==null)throw Error(D(151));for(var _=C=null,k=p,A=p=0,j=null,F=m.next();k!==null&&!F.done;A++,F=m.next()){k.index>A?(j=k,k=null):j=k.sibling;var W=v(h,k,F.value,w);if(W===null){k===null&&(k=j);break}e&&k&&W.alternate===null&&t(h,k),p=i(W,p,A),_===null?C=W:_.sibling=W,_=W,k=j}if(F.done)return n(h,k),Se&&Xn(h,A),C;if(k===null){for(;!F.done;A++,F=m.next())F=c(h,F.value,w),F!==null&&(p=i(F,p,A),_===null?C=F:_.sibling=F,_=F);return Se&&Xn(h,A),C}for(k=r(h,k);!F.done;A++,F=m.next())F=g(k,h,A,F.value,w),F!==null&&(e&&F.alternate!==null&&k.delete(F.key===null?A:F.key),p=i(F,p,A),_===null?C=F:_.sibling=F,_=F);return e&&k.forEach(function(B){return t(h,B)}),Se&&Xn(h,A),C}function x(h,p,m,w){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 C=m.key,_=p;_!==null;){if(_.key===C){if(C=m.type,C===Cr){if(_.tag===7){n(h,_.sibling),p=o(_,m.props.children),p.return=h,h=p;break e}}else if(_.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===kn&&Cd(C)===_.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,w,m.key),p.return=h,h=p):(w=Gi(m.type,m.key,m.props,null,h.mode,w),w.ref=yo(h,p,m),w.return=h,h=w)}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=Fl(m,h.mode,w),p.return=h,h=p}return s(h);case kn:return _=m._init,x(h,p,_(m._payload),w)}if(Co(m))return S(h,p,m,w);if(fo(m))return y(h,p,m,w);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=Ll(m,h.mode,w),p.return=h,h=p),s(h)):n(h,p)}return x}var Yr=qp(!0),Jp=qp(!1),ps=Hn(null),hs=null,Dr=null,Fu=null;function ju(){Fu=Dr=hs=null}function $u(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 $r(e,t){hs=e,Fu=Dr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(st=!0),e.firstContext=null)}function Tt(e){var t=e._currentValue;if(Fu!==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 Vu(e){Jn===null?Jn=[e]:Jn.push(e)}function eh(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Vu(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 zu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function th(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){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,Vu(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,Ru(e,n)}}function kd(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 d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=a))}if(i!==null){var c=o.baseState;s=0,d=u=a=null,l=i;do{var v=l.lane,g=l.eventTime;if((r&v)===v){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,y=l;switch(v=t,g=n,y.tag){case 1:if(S=y.payload,typeof S=="function"){c=S.call(g,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(g,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 g={eventTime:g,lane:v,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=g,a=c):d=d.next=g,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(d===null&&(a=c),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,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 _d(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={},Jt=Hn(si),Yo=Hn(si),Go=Hn(si);function er(e){if(e===si)throw Error(D(174));return e}function Bu(e,t){switch(ye(Go,t),ye(Yo,e),ye(Jt,si),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=pa(t,e)}xe(Jt),ye(Jt,t)}function Gr(){xe(Jt),xe(Yo),xe(Go)}function nh(e){er(Go.current);var t=er(Jt.current),n=pa(t,e.type);t!==n&&(ye(Yo,e),ye(Jt,n))}function Uu(e){Yo.current===e&&(xe(Jt),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)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 Al=[];function Hu(){for(var e=0;e<Al.length;e++)Al[e]._workInProgressVersionPrimary=null;Al.length=0}var Ui=vn.ReactCurrentDispatcher,Dl=vn.ReactCurrentBatchConfig,sr=0,ke=null,Me=null,Le=null,ys=!1,Io=!1,Qo=0,Z0=0;function Ye(){throw Error(D(321))}function Wu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bt(e[n],t[n]))return!1;return!0}function Ku(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?t1:n1,e=n(r,o),Io){i=0;do{if(Io=!1,Qo=0,25<=i)throw Error(D(301));i+=1,Le=Me=null,t.updateQueue=null,Ui.current=r1,e=n(r,o)}while(Io)}if(Ui.current=gs,t=Me!==null&&Me.next!==null,sr=0,Le=Me=ke=null,ys=!1,t)throw Error(D(300));return e}function Yu(){var e=Qo!==0;return Qo=0,e}function Xt(){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(Me===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Le===null?ke.memoizedState:Le.next;if(t!==null)Le=t,Me=e;else{if(e===null)throw Error(D(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.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 Il(e){var t=Nt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=Me,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 d=u.lane;if((sr&d)===d)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=c,s=r):a=a.next=c,ke.lanes|=d,lr|=d}u=u.next}while(u!==null&&u!==i);a===null?s=r:a.next=l,Bt(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);Bt(i,t.memoizedState)||(st=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function rh(){}function oh(e,t){var n=ke,r=Nt(),o=t(),i=!Bt(r.memoizedState,o);if(i&&(r.memoizedState=o,st=!0),r=r.queue,Gu(lh.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Le!==null&&Le.memoizedState.tag&1){if(n.flags|=2048,Zo(9,sh.bind(null,n,r,o,t),void 0,null),Fe===null)throw Error(D(349));sr&30||ih(n,t,o)}return o}function ih(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 sh(e,t,n,r){t.value=n,t.getSnapshot=r,ah(t)&&uh(e)}function lh(e,t,n){return n(function(){ah(t)&&uh(e)})}function ah(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bt(e,n)}catch{return!0}}function uh(e){var t=pn(e,1);t!==null&&zt(t,e,1,-1)}function Rd(e){var t=Xt();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=e1.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 ch(){return Nt().memoizedState}function Hi(e,t,n,r){var o=Xt();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(Me!==null){var s=Me.memoizedState;if(i=s.destroy,r!==null&&Wu(r,s.deps)){o.memoizedState=Zo(t,n,i,r);return}}ke.flags|=e,o.memoizedState=Zo(1|t,n,i,r)}function Pd(e,t){return Hi(8390656,8,e,t)}function Gu(e,t){return js(2048,8,e,t)}function dh(e,t){return js(4,2,e,t)}function fh(e,t){return js(4,4,e,t)}function ph(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 hh(e,t,n){return n=n!=null?n.concat([e]):null,js(4,4,ph.bind(null,t,e),n)}function Qu(){}function mh(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function vh(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function yh(e,t,n){return sr&21?(Bt(n,t)||(n=Ep(),ke.lanes|=n,lr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,st=!0),e.memoizedState=n)}function q0(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=Dl.transition;Dl.transition={};try{e(!1),t()}finally{pe=n,Dl.transition=r}}function gh(){return Nt().memoizedState}function J0(e,t,n){var r=Fn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wh(e))xh(t,n);else if(n=eh(e,t,n,r),n!==null){var o=et();zt(n,e,r,o),Sh(n,t,r)}}function e1(e,t,n){var r=Fn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wh(e))xh(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,Bt(l,s)){var a=t.interleaved;a===null?(o.next=o,Vu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=eh(e,t,o,r),n!==null&&(o=et(),zt(n,e,r,o),Sh(n,t,r))}}function wh(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function xh(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 Sh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ru(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},t1={readContext:Tt,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:Tt,useEffect:Pd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hi(4194308,4,ph.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=Xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xt();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=J0.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:Rd,useDebugValue:Qu,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=Rd(!1),t=e[0];return e=q0.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=Xt();if(Se){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Fe===null)throw Error(D(349));sr&30||ih(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Pd(lh.bind(null,r,i,e),[e]),r.flags|=2048,Zo(9,sh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xt(),t=Fe.identifierPrefix;if(Se){var n=ln,r=sn;n=(r&~(1<<32-Vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Z0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},n1={readContext:Tt,useCallback:mh,useContext:Tt,useEffect:Gu,useImperativeHandle:hh,useInsertionEffect:dh,useLayoutEffect:fh,useMemo:vh,useReducer:Il,useRef:ch,useState:function(){return Il(Xo)},useDebugValue:Qu,useDeferredValue:function(e){var t=Nt();return yh(t,Me.memoizedState,e)},useTransition:function(){var e=Il(Xo)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:rh,useSyncExternalStore:oh,useId:gh,unstable_isNewReconciler:!1},r1={readContext:Tt,useCallback:mh,useContext:Tt,useEffect:Gu,useImperativeHandle:hh,useInsertionEffect:dh,useLayoutEffect:fh,useMemo:vh,useReducer:Ml,useRef:ch,useState:function(){return Ml(Xo)},useDebugValue:Qu,useDeferredValue:function(e){var t=Nt();return Me===null?t.memoizedState=e:yh(t,Me.memoizedState,e)},useTransition:function(){var e=Ml(Xo)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:rh,useSyncExternalStore:oh,useId:gh,unstable_isNewReconciler:!1};function Lt(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 ba(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 $s={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&&(zt(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&&(zt(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&&(zt(t,e,r,n),Bi(t,e,r))}};function Td(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 Eh(e,t,n){var r=!1,o=zn,i=t.contextType;return typeof i=="object"&&i!==null?i=Tt(i):(o=ut(t)?or:Xe.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=$s,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Nd(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&&$s.enqueueReplaceState(t,t.state,null)}function Oa(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},zu(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Tt(i):(i=ut(t)?or:Xe.current,o.context=Wr(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ba(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&&$s.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+=Dg(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 bl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function La(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var o1=typeof WeakMap=="function"?WeakMap:Map;function Ch(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,Ka=r),La(e,t)},n}function kh(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(){La(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){La(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 Ad(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new o1;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=g1.bind(null,e,t,n),t.then(e,e))}function Dd(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 Id(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=an(-1,1),t.tag=2,On(n,t,1))),n.lanes|=1),e)}var i1=vn.ReactCurrentOwner,st=!1;function Je(e,t,n,r){t.child=e===null?Jp(t,null,n,r):Yr(t,e.child,n,r)}function Md(e,t,n,r,o){n=n.render;var i=t.ref;return $r(t,o),r=Ku(e,t,n,r,i,o),n=Yu(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,hn(e,t,o)):(Se&&n&&bu(t),t.flags|=1,Je(e,t,r,o),t.child)}function bd(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!rc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,_h(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)){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=jn(i,r),e.ref=t.ref,e.return=t,t.child=e}function _h(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&&(st=!0);else return t.lanes=e.lanes,hn(e,t,o)}return Fa(e,t,n,r,o)}function Rh(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye(Mr,pt),pt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ye(Mr,pt),pt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ye(Mr,pt),pt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ye(Mr,pt),pt|=r;return Je(e,t,o,n),t.child}function Ph(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Fa(e,t,n,r,o){var i=ut(n)?or:Xe.current;return i=Wr(t,i),$r(t,o),n=Ku(e,t,n,r,i,o),r=Yu(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,hn(e,t,o)):(Se&&r&&bu(t),t.flags|=1,Je(e,t,n,o),t.child)}function Od(e,t,n,r,o){if(ut(n)){var i=!0;cs(t)}else i=!1;if($r(t,o),t.stateNode===null)Wi(e,t),Eh(t,n,r),Oa(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:Xe.current,u=Wr(t,u));var d=n.getDerivedStateFromProps,c=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";c||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Nd(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 d=="function"&&(ba(t,n,d,r),a=t.memoizedState),(l=_n||Td(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,th(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Lt(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:Xe.current,a=Wr(t,a));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==c||v!==a)&&Nd(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 g=="function"&&(ba(t,n,g,r),S=t.memoizedState),(u=_n||Td(t,n,u,r,v,S,a)||!1)?(d||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){Ph(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&xd(t,n,!1),hn(e,t,i);r=t.stateNode,i1.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&&xd(t,n,!0),t.child}function Th(e){var t=e.stateNode;t.pendingContext?wd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wd(e,t.context,!1),Bu(e,t.containerInfo)}function Ld(e,t,n,r,o){return Kr(),Lu(o),t.flags|=256,Je(e,t,n,r),t.child}var $a={dehydrated:null,treeContext:null,retryLane:0};function Va(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nh(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 Ia(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Bs(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=Va(n),t.memoizedState=$a,e):Xu(t,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return s1(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)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=jn(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=jn(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?Va(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=$a,r}return i=e.child,e=i.sibling,r=jn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Xu(e,t){return t=Bs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pi(e,t,n,r){return r!==null&&Lu(r),Yr(t,e.child,null,n),e=Xu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function s1(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=bl(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=Bs({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&&Yr(t,e.child,null,s),t.child.memoizedState=Va(s),t.memoizedState=$a,i);if(!(t.mode&1))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=bl(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:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,pn(e,o),zt(r,e,o,-1))}return nc(),r=bl(Error(D(421))),Pi(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=w1.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,vt=bn(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=Xu(t,r.children),t.flags|=4096,t)}function Fd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ma(e.return,t,n)}function Ol(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 Ah(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)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fd(e,n,t);else if(e.tag===19)Fd(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))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),Ol(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}Ol(t,!0,n,null,i);break;case"together":Ol(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wi(e,t){!(t.mode&1)&&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))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function l1(e,t,n){switch(t.tag){case 3:Th(t),Kr();break;case 5:nh(t);break;case 1:ut(t.type)&&cs(t);break;case 4:Bu(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?Nh(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){if(r)return Ah(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,Rh(e,t,n)}return hn(e,t,n)}var Dh,za,Ih,Mh;Dh=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}};za=function(){};Ih=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,er(Jt.current);var i=null;switch(n){case"input":o=ua(e,o),r=ua(e,r),i=[];break;case"select":o=_e({},o,{value:void 0}),r=_e({},r,{value:void 0}),i=[];break;case"textarea":o=fa(e,o),r=fa(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=as)}ha(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)}};Mh=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 a1(e,t,n){var r=t.pendingProps;switch(Ou(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(Xe),Hu(),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)||(t.flags|=1024,jt!==null&&(Qa(jt),jt=null))),za(e,t),Ge(t),null;case 5:Uu(t);var o=er(Go.current);if(n=t.type,e!==null&&t.stateNode!=null)Ih(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(Jt.current),_i(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Zt]=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":Kc(r,i),ge("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ge("invalid",r);break;case"textarea":Gc(r,i),ge("invalid",r)}ha(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),Yc(r,i,!0);break;case"textarea":vi(r),Qc(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=lp(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[Zt]=t,e[Ko]=r,Dh(e,t,!1,!1),t.stateNode=e;e:{switch(s=ma(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":Kc(e,r),o=ua(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":Gc(e,r),o=fa(e,r),ge("invalid",e);break;default:o=r}ha(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?cp(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&ap(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&&xu(e,i,a,s))}switch(n){case"input":vi(e),Yc(e,r,!1);break;case"textarea":vi(e),Qc(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)Mh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=er(Go.current),er(Jt.current),_i(t)){if(r=t.stateNode,n=t.memoizedProps,r[Zt]=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[Zt]=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&&!(t.flags&128))Zp(),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[Zt]=t}else Kr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ge(t),i=!1}else jt!==null&&(Qa(jt),jt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ce.current&1?be===0&&(be=3):nc())),t.updateQueue!==null&&(t.flags|=4),Ge(t),null);case 4:return Gr(),za(e,t),e===null&&Ho(t.stateNode.containerInfo),Ge(t),null;case 10:return $u(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(be!==0||e!==null&&e.flags&128)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 tc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pt&1073741824&&(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 u1(e,t){switch(Ou(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(Xe),Hu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Uu(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 $u(t.type._context),null;case 22:case 23:return tc(),null;case 24:return null;default:return null}}var Ti=!1,Qe=!1,c1=typeof WeakSet=="function"?WeakSet:Set,$=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 Ba(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var jd=!1;function d1(e,t){if(_a=is,e=jp(),Mu(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,d=0,c=e,v=null;t:for(;;){for(var g;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),(g=c.firstChild)!==null;)v=c,c=g;for(;;){if(c===e)break t;if(v===n&&++u===o&&(l=s),v===i&&++d===r&&(a=s),(g=c.nextSibling)!==null)break;c=v,v=c.parentNode}c=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ra={focusedElem:e,selectionRange:n},is=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var S=t.alternate;if(t.flags&1024)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:Lt(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(w){Pe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return S=jd,jd=!1,S}function Mo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Ba(t,n,i)}o=o.next}while(o!==r)}}function Vs(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 Ua(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 bh(e){var t=e.alternate;t!==null&&(e.alternate=null,bh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zt],delete t[Ko],delete t[Na],delete t[Y0],delete t[G0])),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 Oh(e){return e.tag===5||e.tag===3||e.tag===4}function $d(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oh(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 Ha(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(Ha(e,t,n),e=e.sibling;e!==null;)Ha(e,t,n),e=e.sibling}function Wa(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(Wa(e,t,n),e=e.sibling;e!==null;)Wa(e,t,n),e=e.sibling}var Be=null,Ft=!1;function Sn(e,t,n){for(n=n.child;n!==null;)Lh(e,t,n),n=n.sibling}function Lh(e,t,n){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(Is,n)}catch{}switch(n.tag){case 5:Qe||Ir(n,t);case 6:var r=Be,o=Ft;Be=null,Sn(e,t,n),Be=r,Ft=o,Be!==null&&(Ft?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(Ft?(e=Be,n=n.stateNode,e.nodeType===8?Tl(e.parentNode,n):e.nodeType===1&&Tl(e,n),zo(e)):Tl(Be,n.stateNode));break;case 4:r=Be,o=Ft,Be=n.stateNode.containerInfo,Ft=!0,Sn(e,t,n),Be=r,Ft=o;break;case 0:case 11:case 14:case 15:if(!Qe&&(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||i&4)&&Ba(n,t,s),o=o.next}while(o!==r)}Sn(e,t,n);break;case 1:if(!Qe&&(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?(Qe=(r=Qe)||n.memoizedState!==null,Sn(e,t,n),Qe=r):Sn(e,t,n);break;default:Sn(e,t,n)}}function Vd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new c1),t.forEach(function(r){var o=x1.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function bt(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,Ft=!1;break e;case 3:Be=l.stateNode.containerInfo,Ft=!0;break e;case 4:Be=l.stateNode.containerInfo,Ft=!0;break e}l=l.return}if(Be===null)throw Error(D(160));Lh(i,s,o),Be=null,Ft=!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;)Fh(t,e),t=t.sibling}function Fh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(bt(t,e),Gt(e),r&4){try{Mo(3,e,e.return),Vs(3,e)}catch(y){Pe(e,e.return,y)}try{Mo(5,e,e.return)}catch(y){Pe(e,e.return,y)}}break;case 1:bt(t,e),Gt(e),r&512&&n!==null&&Ir(n,n.return);break;case 5:if(bt(t,e),Gt(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&&ip(o,i),ma(l,s);var u=ma(l,i);for(s=0;s<a.length;s+=2){var d=a[s],c=a[s+1];d==="style"?cp(o,c):d==="dangerouslySetInnerHTML"?ap(o,c):d==="children"?Fo(o,c):xu(o,d,c,u)}switch(l){case"input":ca(o,i);break;case"textarea":sp(o,i);break;case"select":var v=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?Or(o,!!i.multiple,g,!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(bt(t,e),Gt(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(bt(t,e),Gt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zo(t.containerInfo)}catch(y){Pe(e,e.return,y)}break;case 4:bt(t,e),Gt(e);break;case 13:bt(t,e),Gt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Ju=Ne())),r&4&&Vd(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Qe=(u=Qe)||d,bt(t,e),Qe=u):bt(t,e),Gt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for($=e,d=e.child;d!==null;){for(c=$=d;$!==null;){switch(v=$,g=v.child,v.tag){case 0:case 11:case 14:case 15:Mo(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){Bd(c);continue}}g!==null?(g.return=v,$=g):Bd(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{o=c.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=c.stateNode,a=c.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=up("display",s))}catch(y){Pe(e,e.return,y)}}}else if(c.tag===6){if(d===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;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:bt(t,e),Gt(e),r&4&&Vd(e);break;case 21:break;default:bt(t,e),Gt(e)}}function Gt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Oh(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=$d(e);Wa(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,l=$d(e);Ha(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 f1(e,t,n){$=e,jh(e)}function jh(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var o=$,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||Qe;l=Ti;var u=Qe;if(Ti=s,(Qe=a)&&!u)for($=o;$!==null;)s=$,a=s.child,s.tag===22&&s.memoizedState!==null?Ud(o):a!==null?(a.return=s,$=a):Ud(o);for(;i!==null;)$=i,jh(i),i=i.sibling;$=o,Ti=l,Qe=u}zd(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,$=i):zd(e)}}function zd(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Qe||Vs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Qe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Lt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&_d(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}_d(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 d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&zo(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}Qe||t.flags&512&&Ua(t)}catch(v){Pe(t,t.return,v)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function Bd(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function Ud(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Vs(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{Ua(t)}catch(a){Pe(t,i,a)}break;case 5:var s=t.return;try{Ua(t)}catch(a){Pe(t,s,a)}}}catch(a){Pe(t,t.return,a)}if(t===e){$=null;break}var l=t.sibling;if(l!==null){l.return=t.return,$=l;break}$=t.return}}var p1=Math.ceil,ws=vn.ReactCurrentDispatcher,Zu=vn.ReactCurrentOwner,Pt=vn.ReactCurrentBatchConfig,ie=0,Fe=null,De=null,Ue=0,pt=0,Mr=Hn(0),be=0,qo=null,lr=0,zs=0,qu=0,bo=null,it=null,Ju=0,Xr=1/0,nn=null,xs=!1,Ka=null,Ln=null,Ni=!1,An=null,Ss=0,Oo=0,Ya=null,Ki=-1,Yi=0;function et(){return ie&6?Ne():Ki!==-1?Ki:Ki=Ne()}function Fn(e){return e.mode&1?ie&2&&Ue!==0?Ue&-Ue:X0.transition!==null?(Yi===0&&(Yi=Ep()),Yi):(e=pe,e!==0||(e=window.event,e=e===void 0?16:Np(e.type)),e):1}function zt(e,t,n,r){if(50<Oo)throw Oo=0,Ya=null,Error(D(185));ri(e,n,r),(!(ie&2)||e!==Fe)&&(e===Fe&&(!(ie&2)&&(zs|=n),be===4&&Tn(e,Ue)),ct(e,r),n===1&&ie===0&&!(t.mode&1)&&(Xr=Ne()+500,Fs&&Wn()))}function ct(e,t){var n=e.callbackNode;Xg(e,t);var r=os(e,e===Fe?Ue:0);if(r===0)n!==null&&qc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&qc(n),t===1)e.tag===0?Q0(Hd.bind(null,e)):Gp(Hd.bind(null,e)),W0(function(){!(ie&6)&&Wn()}),n=null;else{switch(Cp(r)){case 1:n=_u;break;case 4:n=xp;break;case 16:n=rs;break;case 536870912:n=Sp;break;default:n=rs}n=Kh(n,$h.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function $h(e,t){if(Ki=-1,Yi=0,ie&6)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||r&e.expiredLanes||t)t=Es(e,r);else{t=r;var o=ie;ie|=2;var i=zh();(Fe!==e||Ue!==t)&&(nn=null,Xr=Ne()+500,nr(e,t));do try{v1();break}catch(l){Vh(e,l)}while(!0);ju(),ws.current=i,ie=o,De!==null?t=0:(Fe=null,Ue=0,t=be)}if(t!==0){if(t===2&&(o=xa(e),o!==0&&(r=o,t=Ga(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)&&!h1(o)&&(t=Es(e,r),t===2&&(i=xa(e),i!==0&&(r=i,t=Ga(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,nn);break;case 3:if(Tn(e,r),(r&130023424)===r&&(t=Ju+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=Ta(Zn.bind(null,e,it,nn),t);break}Zn(e,it,nn);break;case 4:if(Tn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Vt(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*p1(r/1960))-r,10<r){e.timeoutHandle=Ta(Zn.bind(null,e,it,nn),r);break}Zn(e,it,nn);break;case 5:Zn(e,it,nn);break;default:throw Error(D(329))}}}return ct(e,Ne()),e.callbackNode===n?$h.bind(null,e):null}function Ga(e,t){var n=bo;return e.current.memoizedState.isDehydrated&&(nr(e,t).flags|=256),e=Es(e,t),e!==2&&(t=it,it=n,t!==null&&Qa(t)),e}function Qa(e){it===null?it=e:it.push.apply(it,e)}function h1(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(!Bt(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&=~qu,t&=~zs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),r=1<<n;e[n]=-1,t&=~r}}function Hd(e){if(ie&6)throw Error(D(327));Vr();var t=os(e,0);if(!(t&1))return ct(e,Ne()),null;var n=Es(e,t);if(e.tag!==0&&n===2){var r=xa(e);r!==0&&(t=r,n=Ga(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,nn),ct(e,Ne()),null}function ec(e,t){var n=ie;ie|=1;try{return e(t)}finally{ie=n,ie===0&&(Xr=Ne()+500,Fs&&Wn())}}function ar(e){An!==null&&An.tag===0&&!(ie&6)&&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)&&Wn()}}function tc(){pt=Mr.current,xe(Mr)}function nr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,H0(n)),De!==null)for(n=De.return;n!==null;){var r=n;switch(Ou(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&us();break;case 3:Gr(),xe(at),xe(Xe),Hu();break;case 5:Uu(r);break;case 4:Gr();break;case 13:xe(Ce);break;case 19:xe(Ce);break;case 10:$u(r.type._context);break;case 22:case 23:tc()}n=n.return}if(Fe=e,De=e=jn(e.current,null),Ue=pt=t,be=0,qo=null,qu=zs=lr=0,it=bo=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 Vh(e,t){do{var n=De;try{if(ju(),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=Me=ke=null,Io=!1,Qo=0,Zu.current=null,n===null||n.return===null){be=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,d=l,c=d.tag;if(!(d.mode&1)&&(c===0||c===11||c===15)){var v=d.alternate;v?(d.updateQueue=v.updateQueue,d.memoizedState=v.memoizedState,d.lanes=v.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=Dd(s);if(g!==null){g.flags&=-257,Id(g,s,l,i,t),g.mode&1&&Ad(i,u,t),t=g,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)){Ad(i,u,t),nc();break e}a=Error(D(426))}}else if(Se&&l.mode&1){var x=Dd(s);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Id(x,s,l,i,t),Lu(Qr(a,l));break e}}i=a=Qr(a,l),be!==4&&(be=2),bo===null?bo=[i]:bo.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var h=Ch(i,a,t);kd(i,h);break e;case 1:l=a;var p=i.type,m=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Ln===null||!Ln.has(m)))){i.flags|=65536,t&=-t,i.lanes|=t;var w=kh(i,l,t);kd(i,w);break e}}i=i.return}while(i!==null)}Uh(n)}catch(C){t=C,De===n&&n!==null&&(De=n=n.return);continue}break}while(!0)}function zh(){var e=ws.current;return ws.current=gs,e===null?gs:e}function nc(){(be===0||be===3||be===2)&&(be=4),Fe===null||!(lr&268435455)&&!(zs&268435455)||Tn(Fe,Ue)}function Es(e,t){var n=ie;ie|=2;var r=zh();(Fe!==e||Ue!==t)&&(nn=null,nr(e,t));do try{m1();break}catch(o){Vh(e,o)}while(!0);if(ju(),ie=n,ws.current=r,De!==null)throw Error(D(261));return Fe=null,Ue=0,be}function m1(){for(;De!==null;)Bh(De)}function v1(){for(;De!==null&&!zg();)Bh(De)}function Bh(e){var t=Wh(e.alternate,e,pt);e.memoizedProps=e.pendingProps,t===null?Uh(e):De=t,Zu.current=null}function Uh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=u1(n,t),n!==null){n.flags&=32767,De=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{be=6,De=null;return}}else if(n=a1(n,t,pt),n!==null){De=n;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);be===0&&(be=5)}function Zn(e,t,n){var r=pe,o=Pt.transition;try{Pt.transition=null,pe=1,y1(e,t,n,r)}finally{Pt.transition=o,pe=r}return null}function y1(e,t,n,r){do Vr();while(An!==null);if(ie&6)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(Zg(e,i),e===Fe&&(De=Fe=null,Ue=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ni||(Ni=!0,Kh(rs,function(){return Vr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Pt.transition,Pt.transition=null;var s=pe;pe=1;var l=ie;ie|=4,Zu.current=null,d1(e,n),Fh(n,e),F0(Ra),is=!!_a,Ra=_a=null,e.current=n,f1(n),Bg(),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),Wg(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=Ka,Ka=null,e;return Ss&1&&e.tag!==0&&Vr(),i=e.pendingLanes,i&1?e===Ya?Oo++:(Oo=0,Ya=e):Oo=0,Wn(),null}function Vr(){if(An!==null){var e=Cp(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)throw Error(D(331));var o=ie;for(ie|=4,$=e.current;$!==null;){var i=$,s=i.child;if($.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for($=u;$!==null;){var d=$;switch(d.tag){case 0:case 11:case 15:Mo(8,d,i)}var c=d.child;if(c!==null)c.return=d,$=c;else for(;$!==null;){d=$;var v=d.sibling,g=d.return;if(bh(d),d===u){$=null;break}if(v!==null){v.return=g,$=v;break}$=g}}}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)}}$=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,$=s;else e:for(;$!==null;){if(i=$,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Mo(9,i,i.return)}var h=i.sibling;if(h!==null){h.return=i.return,$=h;break e}$=i.return}}var p=e.current;for($=p;$!==null;){s=$;var m=s.child;if(s.subtreeFlags&2064&&m!==null)m.return=s,$=m;else e:for(s=p;$!==null;){if(l=$,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Vs(9,l)}}catch(C){Pe(l,l.return,C)}if(l===s){$=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,$=w;break e}$=l.return}}if(ie=o,Wn(),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(Is,e)}catch{}r=!0}return r}finally{pe=n,Pt.transition=t}}return!1}function Wd(e,t,n){t=Qr(n,t),t=Ch(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)Wd(e,e,n);else for(;t!==null;){if(t.tag===3){Wd(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=kh(t,e,1),t=On(t,e,1),e=et(),t!==null&&(ri(t,1,e),ct(t,e));break}}t=t.return}}function g1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=et(),e.pingedLanes|=e.suspendedLanes&n,Fe===e&&(Ue&n)===n&&(be===4||be===3&&(Ue&130023424)===Ue&&500>Ne()-Ju?nr(e,0):qu|=n),ct(e,t)}function Hh(e,t){t===0&&(e.mode&1?(t=wi,wi<<=1,!(wi&130023424)&&(wi=4194304)):t=1);var n=et();e=pn(e,t),e!==null&&(ri(e,t,n),ct(e,n))}function w1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hh(e,n)}function x1(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),Hh(e,n)}var Wh;Wh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||at.current)st=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return st=!1,l1(e,t,n);st=!!(e.flags&131072)}else st=!1,Se&&t.flags&1048576&&Qp(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,Xe.current);$r(t,n),o=Ku(null,t,r,e,o,n);var i=Yu();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,zu(t),o.updater=$s,t.stateNode=o,o._reactInternals=t,Oa(t,r,e,n),t=ja(null,t,r,!0,i,n)):(t.tag=0,Se&&i&&bu(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=E1(r),e=Lt(r,e),o){case 0:t=Fa(null,t,r,e,n);break e;case 1:t=Od(null,t,r,e,n);break e;case 11:t=Md(null,t,r,e,n);break e;case 14:t=bd(null,t,r,Lt(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:Lt(r,o),Fa(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lt(r,o),Od(e,t,r,o,n);case 3:e:{if(Th(t),e===null)throw Error(D(387));r=t.pendingProps,i=t.memoizedState,o=i.element,th(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=Ld(e,t,r,n,o);break e}else if(r!==o){o=Qr(Error(D(424)),t),t=Ld(e,t,r,n,o);break e}else for(vt=bn(t.stateNode.containerInfo.firstChild),yt=t,Se=!0,jt=null,n=Jp(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 nh(t),e===null&&Ia(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Pa(r,o)?s=null:i!==null&&Pa(r,i)&&(t.flags|=32),Ph(e,t),Je(e,t,s,n),t.child;case 6:return e===null&&Ia(t),null;case 13:return Nh(e,t,n);case 4:return Bu(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:Lt(r,o),Md(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(Bt(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 d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),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,$r(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=Lt(r,t.pendingProps),o=Lt(r.type,o),bd(e,t,r,o,n);case 15:return _h(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lt(r,o),Wi(e,t),t.tag=1,ut(r)?(e=!0,cs(t)):e=!1,$r(t,n),Eh(t,r,o),Oa(t,r,o,n),ja(null,t,r,!0,e,n);case 19:return Ah(e,t,n);case 22:return Rh(e,t,n)}throw Error(D(156,t.tag))};function Kh(e,t){return wp(e,t)}function S1(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 S1(e,t,n,r)}function rc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function E1(e){if(typeof e=="function")return rc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Eu)return 11;if(e===Cu)return 14}return 2}function jn(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")rc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Cr:return rr(n.children,o,i,t);case Su:s=8,o|=8;break;case ia:return e=Rt(12,n,t,o|2),e.elementType=ia,e.lanes=i,e;case sa:return e=Rt(13,n,t,o),e.elementType=sa,e.lanes=i,e;case la:return e=Rt(19,n,t,o),e.elementType=la,e.lanes=i,e;case np:return Bs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ep:s=10;break e;case tp:s=9;break e;case Eu:s=11;break e;case Cu: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 Bs(e,t,n,r){return e=Rt(22,e,r,t),e.elementType=np,e.lanes=n,e.stateNode={isHidden:!1},e}function Ll(e,t,n){return e=Rt(6,e,null,t),e.lanes=n,e}function Fl(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 C1(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=yl(0),this.expirationTimes=yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function oc(e,t,n,r,o,i,s,l,a){return e=new C1(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},zu(i),e}function k1(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 Yh(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 Yp(e,n,t)}return t}function Gh(e,t,n,r,o,i,s,l,a){return e=oc(n,r,!0,e,o,i,s,l,a),e.context=Yh(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 Us(e,t,n,r){var o=t.current,i=et(),s=Fn(o);return n=Yh(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&&(zt(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 Kd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ic(e,t){Kd(e,t),(e=e.alternate)&&Kd(e,t)}function _1(){return null}var Qh=typeof reportError=="function"?reportError:function(e){console.error(e)};function sc(e){this._internalRoot=e}Hs.prototype.render=sc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));Us(e,t,null,null)};Hs.prototype.unmount=sc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ar(function(){Us(null,e,null,null)}),t[fn]=null}};function Hs(e){this._internalRoot=e}Hs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rp();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&&Tp(e)}};function lc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ws(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Yd(){}function R1(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=Gh(t,r,e,0,null,!1,!1,"",Yd);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=oc(e,0,!1,null,null,!1,!1,"",Yd);return e._reactRootContainer=a,e[fn]=a.current,Ho(e.nodeType===8?e.parentNode:e),ar(function(){Us(t,a,n,r)}),a}function Ks(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)}}Us(t,s,e,o)}else s=R1(n,t,e,o,r);return Cs(s)}kp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ko(t.pendingLanes);n!==0&&(Ru(t,n|1),ct(t,Ne()),!(ie&6)&&(Xr=Ne()+500,Wn()))}break;case 13:ar(function(){var r=pn(e,1);if(r!==null){var o=et();zt(r,e,1,o)}}),ic(e,1)}};Pu=function(e){if(e.tag===13){var t=pn(e,134217728);if(t!==null){var n=et();zt(t,e,134217728,n)}ic(e,134217728)}};_p=function(e){if(e.tag===13){var t=Fn(e),n=pn(e,t);if(n!==null){var r=et();zt(n,e,t,r)}ic(e,t)}};Rp=function(){return pe};Pp=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};ya=function(e,t,n){switch(t){case"input":if(ca(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=Ls(r);if(!o)throw Error(D(90));op(r),ca(r,o)}}}break;case"textarea":sp(e,n);break;case"select":t=n.value,t!=null&&Or(e,!!n.multiple,t,!1)}};pp=ec;hp=ar;var P1={usingClientEntryPoint:!1,Events:[ii,Pr,Ls,dp,fp,ec]},wo={findFiberByHostInstance:qn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},T1={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=yp(e),e===null?null:e.stateNode},findFiberByHostInstance:wo.findFiberByHostInstance||_1,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{Is=Ai.inject(T1),qt=Ai}catch{}}wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P1;wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!lc(t))throw Error(D(200));return k1(e,t,null,n)};wt.createRoot=function(e,t){if(!lc(e))throw Error(D(299));var n=!1,r="",o=Qh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=oc(e,1,!1,null,null,n,!1,r,o),e[fn]=t.current,Ho(e.nodeType===8?e.parentNode:e),new sc(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=yp(t),e=e===null?null:e.stateNode,e};wt.flushSync=function(e){return ar(e)};wt.hydrate=function(e,t,n){if(!Ws(t))throw Error(D(200));return Ks(null,e,t,!0,n)};wt.hydrateRoot=function(e,t,n){if(!lc(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=Qh;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Gh(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 Hs(t)};wt.render=function(e,t,n){if(!Ws(t))throw Error(D(200));return Ks(null,e,t,!1,n)};wt.unmountComponentAtNode=function(e){if(!Ws(e))throw Error(D(40));return e._reactRootContainer?(ar(function(){Ks(null,null,e,!1,function(){e._reactRootContainer=null,e[fn]=null})}),!0):!1};wt.unstable_batchedUpdates=ec;wt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ws(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return Ks(e,t,n,!1,r)};wt.version="18.3.1-next-f1338f8080-20240426";function Xh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xh)}catch(e){console.error(e)}}Xh(),qf.exports=wt;var no=qf.exports;const Zh=$f(no);var Gd=no;Bc.createRoot=Gd.createRoot,Bc.hydrateRoot=Gd.hydrateRoot;/**
33
- * react-router v7.9.4
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 Qd="popstate";function N1(e={}){function t(r,o){let{pathname:i,search:s,hash:l}=r.location;return Xa("",{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 D1(t,n,null,e)}function Ee(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ut(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function A1(){return Math.random().toString(36).substring(2,10)}function Xd(e,t){return{usr:e.state,key:e.key,idx:t}}function Xa(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||A1()}}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 D1(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l="POP",a=null,u=d();u==null&&(u=0,s.replaceState({...s.state,idx:u},""));function d(){return(s.state||{idx:null}).idx}function c(){l="POP";let x=d(),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=Xa(y.location,x,h);u=d()+1;let m=Xd(p,u),w=y.createHref(p);try{s.pushState(m,"",w)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(w)}i&&a&&a({action:l,location:y.location,delta:1})}function g(x,h){l="REPLACE";let p=Xa(y.location,x,h);u=d();let m=Xd(p,u),w=y.createHref(p);s.replaceState(m,"",w),i&&a&&a({action:l,location:y.location,delta:0})}function S(x){return I1(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(Qd,c),a=x,()=>{o.removeEventListener(Qd,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:g,go(x){return s.go(x)}};return y}function I1(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 qh(e,t,n="/"){return M1(e,t,n,!1)}function M1(e,t,n,r){let o=typeof t=="string"?ro(t):t,i=mn(o.pathname||"/",n);if(i==null)return null;let s=Jh(e);b1(s);let l=null;for(let a=0;l==null&&a<s.length;++a){let u=W1(i);l=U1(s[a],u,r)}return l}function Jh(e,t=[],n=[],r="",o=!1){let i=(s,l,a=o,u)=>{let d={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&a)return;Ee(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let c=un([r,d.relativePath]),v=n.concat(d);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}".`),Jh(s.children,t,v,c,a)),!(s.path==null&&!s.index)&&t.push({path:c,score:z1(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 em(s.path))i(s,l,!0,u)}),t}function em(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=em(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 b1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:B1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var O1=/^:[\w-]+$/,L1=3,F1=2,j1=1,$1=10,V1=-2,Zd=e=>e==="*";function z1(e,t){let n=e.split("/"),r=n.length;return n.some(Zd)&&(r+=V1),t&&(r+=F1),n.filter(o=>!Zd(o)).reduce((o,i)=>o+(O1.test(i)?L1:i===""?j1:$1),r)}function B1(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 U1(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,d=i==="/"?t:t.slice(i.length)||"/",c=ks({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},d),v=a.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=ks({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},d)),!c)return null;Object.assign(o,c.params),s.push({params:o,pathname:un([i,c.pathname]),pathnameBase:Q1(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]=H1(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:d,isOptional:c},v)=>{if(d==="*"){let S=l[v]||"";s=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const g=l[v];return c&&!g?u[d]=void 0:u[d]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function H1(e,t=!1,n=!0){Ut(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 W1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ut(!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)||"/"}function K1(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ro(e):e;return{pathname:n?n.startsWith("/")?n:Y1(n,t):t,search:X1(r),hash:Z1(o)}}function Y1(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 G1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ac(e){let t=G1(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function uc(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=K1(o,l),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}var un=e=>e.join("/").replace(/\/\/+/g,"/"),Q1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),X1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Z1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function q1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var tm=["POST","PUT","PATCH","DELETE"];new Set(tm);var J1=["GET",...tm];new Set(J1);var oo=f.createContext(null);oo.displayName="DataRouter";var Ys=f.createContext(null);Ys.displayName="DataRouterState";f.createContext(!1);var nm=f.createContext({isTransitioning:!1});nm.displayName="ViewTransition";var ew=f.createContext(new Map);ew.displayName="Fetchers";var tw=f.createContext(null);tw.displayName="Await";var Ht=f.createContext(null);Ht.displayName="Navigation";var li=f.createContext(null);li.displayName="Location";var en=f.createContext({outlet:null,matches:[],isDataRoute:!1});en.displayName="Route";var cc=f.createContext(null);cc.displayName="RouteError";function nw(e,{relative:t}={}){Ee(io(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=f.useContext(Ht),{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 f.useContext(li)!=null}function Kn(){return Ee(io(),"useLocation() may be used only in the context of a <Router> component."),f.useContext(li).location}var rm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function om(e){f.useContext(Ht).static||f.useLayoutEffect(e)}function im(){let{isDataRoute:e}=f.useContext(en);return e?mw():rw()}function rw(){Ee(io(),"useNavigate() may be used only in the context of a <Router> component.");let e=f.useContext(oo),{basename:t,navigator:n}=f.useContext(Ht),{matches:r}=f.useContext(en),{pathname:o}=Kn(),i=JSON.stringify(ac(r)),s=f.useRef(!1);return om(()=>{s.current=!0}),f.useCallback((a,u={})=>{if(Ut(s.current,rm),!s.current)return;if(typeof a=="number"){n.go(a);return}let d=uc(a,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:un([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,o,e])}f.createContext(null);function ai(e,{relative:t}={}){let{matches:n}=f.useContext(en),{pathname:r}=Kn(),o=JSON.stringify(ac(n));return f.useMemo(()=>uc(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function ow(e,t){return sm(e,t)}function sm(e,t,n,r,o){var p;Ee(io(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=f.useContext(Ht),{matches:s}=f.useContext(en),l=s[s.length-1],a=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",c=l&&l.route;{let m=c&&c.path||"";lm(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(),g;if(t){let m=typeof t=="string"?ro(t):t;Ee(d==="/"||((p=m.pathname)==null?void 0:p.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${m.pathname}" was given in the \`location\` prop.`),g=m}else g=v;let S=g.pathname||"/",y=S;if(d!=="/"){let m=d.replace(/^\//,"").split("/");y="/"+S.replace(/^\//,"").split("/").slice(m.length).join("/")}let x=qh(e,{pathname:y});Ut(c||x!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Ut(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 "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=uw(x&&x.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:un([d,i.encodeLocation?i.encodeLocation(m.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?d:un([d,i.encodeLocation?i.encodeLocation(m.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),s,n,r,o);return t&&h?f.createElement(li.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},h):h}function iw(){let e=hw(),t=q1(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=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:i},"ErrorBoundary")," or"," ",f.createElement("code",{style:i},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:o},n):null,s)}var sw=f.createElement(iw,null),lw=class extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?f.createElement(en.Provider,{value:this.props.routeContext},f.createElement(cc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function aw({routeContext:e,match:t,children:n}){let r=f.useContext(oo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(en.Provider,{value:e},n)}function uw(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 u=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);Ee(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let l=!1,a=-1;if(n)for(let u=0;u<i.length;u++){let d=i[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(a=u),d.route.id){let{loaderData:c,errors:v}=n,g=d.route.loader&&!c.hasOwnProperty(d.route.id)&&(!v||v[d.route.id]===void 0);if(d.route.lazy||g){l=!0,a>=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((u,d,c)=>{let v,g=!1,S=null,y=null;n&&(v=s&&d.route.id?s[d.route.id]:void 0,S=d.route.errorElement||sw,l&&(a<0&&c===0?(lm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,y=null):a===c&&(g=!0,y=d.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,c+1)),h=()=>{let p;return v?p=S:g?p=y:d.route.Component?p=f.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=u,f.createElement(aw,{match:d,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||c===0)?f.createElement(lw,{location:n.location,revalidation:n.revalidation,component:S,error:v,children:h(),routeContext:{outlet:null,matches:x,isDataRoute:!0},unstable_onError:r}):h()},null)}function dc(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cw(e){let t=f.useContext(oo);return Ee(t,dc(e)),t}function dw(e){let t=f.useContext(Ys);return Ee(t,dc(e)),t}function fw(e){let t=f.useContext(en);return Ee(t,dc(e)),t}function fc(e){let t=fw(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 pw(){return fc("useRouteId")}function hw(){var r;let e=f.useContext(cc),t=dw("useRouteError"),n=fc("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function mw(){let{router:e}=cw("useNavigate"),t=fc("useNavigate"),n=f.useRef(!1);return om(()=>{n.current=!0}),f.useCallback(async(o,i={})=>{Ut(n.current,rm),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var qd={};function lm(e,t,n){!t&&!qd[e]&&(qd[e]=!0,Ut(!1,n))}f.memo(vw);function vw({routes:e,future:t,state:n,unstable_onError:r}){return sm(e,void 0,n,r,t)}function f2({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}=f.useContext(Ht);Ut(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=f.useContext(en),{pathname:s}=Kn(),l=im(),a=uc(e,ac(i),s,r==="path"),u=JSON.stringify(a);return f.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function yw(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 gw({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=f.useMemo(()=>({basename:s,navigator:o,static:i,future:{}}),[s,o,i]);typeof n=="string"&&(n=ro(n));let{pathname:a="/",search:u="",hash:d="",state:c=null,key:v="default"}=n,g=f.useMemo(()=>{let S=mn(a,s);return S==null?null:{location:{pathname:S,search:u,hash:d,state:c,key:v},navigationType:r}},[s,a,u,d,c,v,r]);return Ut(g!=null,`<Router basename="${s}"> is not able to match the URL "${a}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:f.createElement(Ht.Provider,{value:l},f.createElement(li.Provider,{children:t,value:g}))}function p2({children:e,location:t}){return ow(Za(e),t)}function Za(e,t=[]){let n=[];return f.Children.forEach(e,(r,o)=>{if(!f.isValidElement(r))return;let i=[...t,o];if(r.type===f.Fragment){n.push.apply(n,Za(r.props.children,i));return}Ee(r.type===yw,`[${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=Za(r.props.children,i)),n.push(s)}),n}var Qi="get",Xi="application/x-www-form-urlencoded";function Gs(e){return e!=null&&typeof e.tagName=="string"}function ww(e){return Gs(e)&&e.tagName.toLowerCase()==="button"}function xw(e){return Gs(e)&&e.tagName.toLowerCase()==="form"}function Sw(e){return Gs(e)&&e.tagName.toLowerCase()==="input"}function Ew(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Cw(e,t){return e.button===0&&(!t||t==="_self")&&!Ew(e)}var Di=null;function kw(){if(Di===null)try{new FormData(document.createElement("form"),0),Di=!1}catch{Di=!0}return Di}var _w=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $l(e){return e!=null&&!_w.has(e)?(Ut(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xi}"`),null):e}function Rw(e,t){let n,r,o,i,s;if(xw(e)){let l=e.getAttribute("action");r=l?mn(l,t):null,n=e.getAttribute("method")||Qi,o=$l(e.getAttribute("enctype"))||Xi,i=new FormData(e)}else if(ww(e)||Sw(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=$l(e.getAttribute("formenctype"))||$l(l.getAttribute("enctype"))||Xi,i=new FormData(l,e),!kw()){let{name:u,type:d,value:c}=e;if(d==="image"){let v=u?`${u}.`:"";i.append(`${v}x`,"0"),i.append(`${v}y`,"0")}else u&&i.append(u,c)}}else{if(Gs(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 pc(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pw(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 Tw(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 Nw(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 Aw(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let s=await Tw(i,n);return s.links?s.links():[]}return[]}));return bw(r.flat(1).filter(Nw).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Jd(e,t,n,r,o,i){let s=(a,u)=>n[u]?a.route.id!==n[u].route.id:!0,l=(a,u)=>{var d;return n[u].pathname!==a.pathname||((d=n[u].route.path)==null?void 0:d.endsWith("*"))&&n[u].params["*"]!==a.params["*"]};return i==="assets"?t.filter((a,u)=>s(a,u)||l(a,u)):i==="data"?t.filter((a,u)=>{var c;let d=r.routes[a.route.id];if(!d||!d.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 Dw(e,t,{includeHydrateFallback:n}={}){return Iw(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 Iw(e){return[...new Set(e)]}function Mw(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function bw(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(Mw(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function am(){let e=f.useContext(oo);return pc(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ow(){let e=f.useContext(Ys);return pc(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var hc=f.createContext(void 0);hc.displayName="FrameworkContext";function um(){let e=f.useContext(hc);return pc(e,"You must render this element inside a <HydratedRouter> element"),e}function Lw(e,t){let n=f.useContext(hc),[r,o]=f.useState(!1),[i,s]=f.useState(!1),{onFocus:l,onBlur:a,onMouseEnter:u,onMouseLeave:d,onTouchStart:c}=t,v=f.useRef(null);f.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]),f.useEffect(()=>{if(r){let y=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(y)}}},[r]);let g=()=>{o(!0)},S=()=>{o(!1),s(!1)};return n?e!=="intent"?[i,v,{}]:[i,v,{onFocus:xo(l,g),onBlur:xo(a,S),onMouseEnter:xo(u,g),onMouseLeave:xo(d,S),onTouchStart:xo(c,g)}]:[!1,v,{}]}function xo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Fw({page:e,...t}){let{router:n}=am(),r=f.useMemo(()=>qh(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?f.createElement($w,{page:e,matches:r,...t}):null}function jw(e){let{manifest:t,routeModules:n}=um(),[r,o]=f.useState([]);return f.useEffect(()=>{let i=!1;return Aw(e,t,n).then(s=>{i||o(s)}),()=>{i=!0}},[e,t,n]),r}function $w({page:e,matches:t,...n}){let r=Kn(),{manifest:o,routeModules:i}=um(),{basename:s}=am(),{loaderData:l,matches:a}=Ow(),u=f.useMemo(()=>Jd(e,t,a,o,r,"data"),[e,t,a,o,r]),d=f.useMemo(()=>Jd(e,t,a,o,r,"assets"),[e,t,a,o,r]),c=f.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(w=>w.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=Pw(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=f.useMemo(()=>Dw(d,o),[d,o]),g=jw(d);return f.createElement(f.Fragment,null,c.map(S=>f.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),v.map(S=>f.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),g.map(({key:S,link:y})=>f.createElement("link",{key:S,nonce:n.nonce,...y})))}function Vw(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var cm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{cm&&(window.__reactRouterVersion="7.9.4")}catch{}function h2({basename:e,children:t,window:n}){let r=f.useRef();r.current==null&&(r.current=N1({window:n,v5Compat:!0}));let o=r.current,[i,s]=f.useState({action:o.action,location:o.location}),l=f.useCallback(a=>{f.startTransition(()=>s(a))},[s]);return f.useLayoutEffect(()=>o.listen(l),[o,l]),f.createElement(gw,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o})}var dm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fm=f.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:s,state:l,target:a,to:u,preventScrollReset:d,viewTransition:c,...v},g){let{basename:S}=f.useContext(Ht),y=typeof u=="string"&&dm.test(u),x,h=!1;if(typeof u=="string"&&y&&(x=u,cm))try{let j=new URL(window.location.href),F=u.startsWith("//")?new URL(j.protocol+u):new URL(u),W=mn(F.pathname,S);F.origin===j.origin&&W!=null?u=W+F.search+F.hash:h=!0}catch{Ut(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let p=nw(u,{relative:o}),[m,w,C]=Lw(r,v),_=Hw(u,{replace:s,state:l,target:a,preventScrollReset:d,relative:o,viewTransition:c});function k(j){t&&t(j),j.defaultPrevented||_(j)}let A=f.createElement("a",{...v,...C,href:x||p,onClick:h||i?t:k,ref:Vw(g,w),target:a,"data-discover":!y&&n==="render"?"true":void 0});return m&&!y?f.createElement(f.Fragment,null,A,f.createElement(Fw,{page:p})):A});fm.displayName="Link";var zw=f.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:s,viewTransition:l,children:a,...u},d){let c=ai(s,{relative:u.relative}),v=Kn(),g=f.useContext(Ys),{navigator:S,basename:y}=f.useContext(Ht),x=g!=null&&Qw(c)&&l===!0,h=S.encodeLocation?S.encodeLocation(c).pathname:c.pathname,p=v.pathname,m=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(p=p.toLowerCase(),m=m?m.toLowerCase():null,h=h.toLowerCase()),m&&y&&(m=mn(m,y)||m);const w=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let C=p===h||!o&&p.startsWith(h)&&p.charAt(w)==="/",_=m!=null&&(m===h||!o&&m.startsWith(h)&&m.charAt(h.length)==="/"),k={isActive:C,isPending:_,isTransitioning:x},A=C?t:void 0,j;typeof r=="function"?j=r(k):j=[r,C?"active":null,_?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let F=typeof i=="function"?i(k):i;return f.createElement(fm,{...u,"aria-current":A,className:j,ref:d,style:F,to:s,viewTransition:l},typeof a=="function"?a(k):a)});zw.displayName="NavLink";var Bw=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:s=Qi,action:l,onSubmit:a,relative:u,preventScrollReset:d,viewTransition:c,...v},g)=>{let S=Yw(),y=Gw(l,{relative:u}),x=s.toLowerCase()==="get"?"get":"post",h=typeof l=="string"&&dm.test(l),p=m=>{if(a&&a(m),m.defaultPrevented)return;m.preventDefault();let w=m.nativeEvent.submitter,C=(w==null?void 0:w.getAttribute("formmethod"))||s;S(w||m.currentTarget,{fetcherKey:t,method:C,navigate:n,replace:o,state:i,relative:u,preventScrollReset:d,viewTransition:c})};return f.createElement("form",{ref:g,method:x,action:y,onSubmit:r?a:p,...v,"data-discover":!h&&e==="render"?"true":void 0})});Bw.displayName="Form";function Uw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function pm(e){let t=f.useContext(oo);return Ee(t,Uw(e)),t}function Hw(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:s}={}){let l=im(),a=Kn(),u=ai(e,{relative:i});return f.useCallback(d=>{if(Cw(d,t)){d.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 Ww=0,Kw=()=>`__${String(++Ww)}__`;function Yw(){let{router:e}=pm("useSubmit"),{basename:t}=f.useContext(Ht),n=pw();return f.useCallback(async(r,o={})=>{let{action:i,method:s,encType:l,formData:a,body:u}=Rw(r,t);if(o.navigate===!1){let d=o.fetcherKey||Kw();await e.fetch(d,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 Gw(e,{relative:t}={}){let{basename:n}=f.useContext(Ht),r=f.useContext(en);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(d=>d==="")){l.delete("index"),a.filter(c=>c).forEach(c=>l.append("index",c));let d=l.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:un([n,i.pathname])),Jo(i)}function Qw(e,{relative:t}={}){let n=f.useContext(nm);Ee(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=pm("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 Xw=(e,t,n,r,o,i,s,l)=>{let a=document.documentElement,u=["light","dark"];function d(g){(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[g]?i[g]:g)):a.setAttribute(S,g)}),c(g)}function c(g){l&&u.includes(g)&&(a.style.colorScheme=g)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)d(r);else try{let g=localStorage.getItem(t)||n,S=s&&g==="system"?v():g;d(S)}catch{}},Zw=f.createContext(void 0),qw={setTheme:e=>{},themes:[]},m2=()=>{var e;return(e=f.useContext(Zw))!=null?e:qw};f.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,themes:l,nonce:a,scriptProps:u})=>{let d=JSON.stringify([n,t,i,e,l,s,r,o]).slice(1,-1);return f.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?a:"",dangerouslySetInnerHTML:{__html:`(${Xw.toString()})(${d})`}})});function Jw(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 ex=e=>{switch(e){case"success":return rx;case"info":return ix;case"warning":return ox;case"error":return sx;default:return null}},tx=Array(12).fill(0),nx=({visible:e,className:t})=>T.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},T.createElement("div",{className:"sonner-spinner"},tx.map((n,r)=>T.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),rx=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"})),ox=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"})),ix=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"})),sx=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"})),lx=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"})),ax=()=>{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 qa=1;class ux{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:qa++,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(dx(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 d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,g=typeof d=="object"&&!T.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...g})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),a=()=>new Promise((u,d)=>l.then(()=>s[0]==="reject"?d(s[1]):u(s[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||qa++;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 ux,cx=(e,t)=>{const n=(t==null?void 0:t.id)||qa++;return rt.addToast({title:e,...t,id:n}),n},dx=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",fx=cx,px=()=>rt.toasts,hx=()=>rt.getActiveToasts(),v2=Object.assign(fx,{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:px,getToasts:hx});Jw("[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 mx=3,vx="24px",yx="16px",ef=4e3,gx=356,wx=14,xx=45,Sx=200;function Qt(...e){return e.filter(Boolean).join(" ")}function Ex(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Cx=e=>{var t,n,r,o,i,s,l,a,u;const{invert:d,toast:c,unstyled:v,interacting:g,setHeights:S,visibleToasts:y,heights:x,index:h,toasts:p,expanded:m,removeToast:w,defaultRichColors:C,closeButton:_,style:k,cancelButtonStyle:A,actionButtonStyle:j,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),[je,$e]=T.useState(0),[Kt,Yt]=T.useState(0),dt=T.useRef(c.duration||B||ef),lo=T.useRef(null),Ve=T.useRef(null),E=h===0,R=h+1<=y,N=c.type,O=c.dismissible!==!1,b=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||ef,[c.duration,B]),We=T.useRef(0),At=T.useRef(0),Dt=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=ax(),dl=c.invert||d,vr=N==="loading";At.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 Yt(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,Yt(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),$e(At.current),S(Z=>Z.filter(Oe=>Oe.toastId!==c.id)),setTimeout(()=>{w(c)},Sx)},[c,w,S,At]);T.useEffect(()=>{if(c.promise&&N==="loading"||c.duration===1/0||c.type==="loading")return;let Z;return m||g||co?(()=>{if(Dt.current<We.current){const ft=new Date().getTime()-We.current;dt.current=dt.current-ft}Dt.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,g,c,N,co,xn]),T.useEffect(()=>{c.delete&&(xn(),c.onDismiss==null||c.onDismiss.call(c,c))},[xn,c.delete]);function By(){var Z;if(K!=null&&K.loading){var Oe;return T.createElement("div",{className:Qt(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(nx,{className:Qt(L==null?void 0:L.loader,c==null||(Z=c.classNames)==null?void 0:Z.loader),visible:N==="loading"})}const Uy=c.icon||(K==null?void 0:K[N])||ex(N);var bc,Oc;return T.createElement("li",{tabIndex:0,ref:Ve,className:Qt(F,b,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":(bc=c.richColors)!=null?bc:C,"data-styled":!(c.jsx||c.unstyled||v),"data-mounted":X,"data-promise":!!c.promise,"data-swiped":oe,"data-removed":le,"data-visible":R,"data-y-position":ao,"data-x-position":uo,"data-index":h,"data-front":E,"data-swiping":U,"data-dismissible":O,"data-type":N,"data-invert":dl,"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?je:At.current}px`,"--initial-height":J?"auto":`${Kt}px`,...k,...c.style},onDragEnd:()=>{H(!1),de(null),wn.current=null},onPointerDown:Z=>{Z.button!==2&&(vr||!O||(lo.current=new Date,$e(At.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)>=xx||pi>.11){$e(At.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 It,Mt;(It=Ve.current)==null||It.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 It=(pi=e.swipeDirections)!=null?pi:Ex(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 Lc=Qn=>1/(1.5+Math.abs(Qn)/20);if(ae==="y"){if(It.includes("top")||It.includes("bottom"))if(It.includes("top")&&ze<0||It.includes("bottom")&&ze>0)Mt.y=ze;else{const Qn=ze*Lc(ze);Mt.y=Math.abs(Qn)<Math.abs(ze)?Qn:ze}}else if(ae==="x"&&(It.includes("left")||It.includes("right")))if(It.includes("left")&&Et<0||It.includes("right")&&Et>0)Mt.x=Et;else{const Qn=Et*Lc(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:Qt(L==null?void 0:L.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Oc=K==null?void 0:K.close)!=null?Oc:lx):null,(N||c.icon||c.promise)&&c.icon!==null&&((K==null?void 0:K[N])!==null||c.icon)?T.createElement("div",{"data-icon":"",className:Qt(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||By():null,c.type!=="loading"?Uy:null):null,T.createElement("div",{"data-content":"",className:Qt(L==null?void 0:L.content,c==null||(i=c.classNames)==null?void 0:i.content)},T.createElement("div",{"data-title":"",className:Qt(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:Qt(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:Qt(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||j,onClick:Z=>{Ii(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,Z),!Z.defaultPrevented&&xn())},className:Qt(L==null?void 0:L.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function tf(){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 kx(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",l=i?yx:vx;function a(u){["top","right","bottom","left"].forEach(d=>{n[`${s}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}const y2=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:d,mobileOffset:c,theme:v="light",richColors:g,duration:S,style:y,visibleToasts:x=mx,toastOptions:h,dir:p=tf(),gap:m=wx,icons:w,containerAriaLabel:C="Notifications"}=t,[_,k]=T.useState([]),A=T.useMemo(()=>r?_.filter(X=>X.toasterId===r):_.filter(X=>!X.toasterId),[_,r]),j=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(()=>{Zh.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":`${C} ${ae}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((X,se)=>{var le;const[Re,U]=X.split("-");return A.length?T.createElement("ol",{key:X,dir:p==="auto"?tf():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":`${gx}px`,"--gap":`${m}px`,...y,...kx(d,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(Cx,{key:H.id,icons:w,index:me,toast:H,defaultRichColors:g,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}))}),nf=e=>{let t;const n=new Set,r=(u,d)=>{const c=typeof u=="function"?u(t):u;if(!Object.is(c,t)){const v=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(g=>g(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},_x=e=>e?nf(e):nf,Rx=e=>e;function Px(e,t=Rx){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 Tx=e=>{const t=_x(e),n=r=>Px(t,r);return Object.assign(n,t),n},g2=e=>Tx,rf={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},ei=new Map,Mi=e=>{const t=ei.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},Nx=(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}},Ax=(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))},Dx=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]},Ix=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:s,store:l,...a}=t;let u;try{u=(i??(rf?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(n,r,o);const{connection:d,...c}=Nx(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||Dx(new Error().stack)||"anonymous"}:typeof h=="string"?{type:h}:h;return l===void 0?(d==null||d.send(m,r()),p):(d==null||d.send({...m,type:`${l}/${m.type}`},{...Mi(a.name),[l]:o.getState()}),p)},o.devtools={cleanup:()=>{d&&typeof d.unsubscribe=="function"&&d.unsubscribe(),Ax(a.name,l)}};const g=(...y)=>{const x=v;v=!1,n(...y),v=x},S=e(o.setState,r,o);if(c.type==="untracked"?d==null||d.init(S):(c.stores[c.store]=o,d==null||d.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)=>{(rf?"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 d.subscribe(y=>{var x;switch(y.type){case"ACTION":if(typeof y.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Vl(y.payload,h=>{if(h.type==="__setState"){if(l===void 0){g(h.state);return}Object.keys(h.state).length!==1&&console.error(`
45
- [zustand devtools middleware] Unsupported __setState action format.
46
- When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
47
- and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
48
- `);const p=h.state[l];if(p==null)return;JSON.stringify(o.getState())!==JSON.stringify(p)&&g(p);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(h)});case"DISPATCH":switch(y.payload.type){case"RESET":return g(S),l===void 0?d==null?void 0:d.init(o.getState()):d==null?void 0:d.init(Mi(a.name));case"COMMIT":if(l===void 0){d==null||d.init(o.getState());return}return d==null?void 0:d.init(Mi(a.name));case"ROLLBACK":return Vl(y.state,h=>{if(l===void 0){g(h),d==null||d.init(o.getState());return}g(h[l]),d==null||d.init(Mi(a.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Vl(y.state,h=>{if(l===void 0){g(h);return}JSON.stringify(o.getState())!==JSON.stringify(h[l])&&g(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;g(l===void 0?p:p[l]),d==null||d.send(null,h);return}case"PAUSE_RECORDING":return v=!v}return}}),S},w2=Ix,Vl=(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)},of=e=>Symbol.iterator in e,sf=e=>"entries"in e,lf=(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},Mx=(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 bx(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:of(e)&&of(t)?sf(e)&&sf(t)?lf(e,t):Mx(e,t):lf({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function x2(e){const t=T.useRef(void 0);return n=>{const r=e(n);return bx(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 Ox=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Lx=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),af=e=>{const t=Lx(e);return t.charAt(0).toUpperCase()+t.slice(1)},hm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Fx=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 jx={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 $x=f.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>f.createElement("svg",{ref:a,...jx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:hm("lucide",o),...!i&&!Fx(l)&&{"aria-hidden":"true"},...l},[...s.map(([u,d])=>f.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
64
- * @license lucide-react v0.523.0 - ISC
65
- *
66
- * This source code is licensed under the ISC license.
67
- * See the LICENSE file in the root directory of this source tree.
68
- */const q=(e,t)=>{const n=f.forwardRef(({className:r,...o},i)=>f.createElement($x,{ref:i,iconNode:t,className:hm(`lucide-${Ox(af(e))}`,`lucide-${e}`,r),...o}));return n.displayName=af(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 Vx=[["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"}]],S2=q("badge-info",Vx);/**
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 zx=[["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"}]],E2=q("brush-cleaning",zx);/**
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 Bx=[["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"}]],C2=q("calendar",Bx);/**
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 Ux=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],k2=q("check",Ux);/**
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 Hx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],_2=q("chevron-down",Hx);/**
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 Wx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],R2=q("chevron-left",Wx);/**
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 Kx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],P2=q("chevron-right",Kx);/**
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 Yx=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],T2=q("chevron-up",Yx);/**
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 Gx=[["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"}]],N2=q("circle-alert",Gx);/**
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 Qx=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],A2=q("circle-check-big",Qx);/**
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 Xx=[["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"}]],D2=q("circle-x",Xx);/**
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 Zx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],I2=q("clock",Zx);/**
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 qx=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],M2=q("code",qx);/**
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 Jx=[["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"}]],b2=q("coffee",Jx);/**
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 eS=[["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"}]],O2=q("copy",eS);/**
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 tS=[["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"}]],L2=q("download",tS);/**
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 nS=[["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"}]],F2=q("external-link",nS);/**
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 rS=[["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"}]],j2=q("file-text",rS);/**
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 oS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],$2=q("info",oS);/**
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 iS=[["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"}]],V2=q("layout-dashboard",iS);/**
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 sS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],z2=q("loader-circle",sS);/**
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 lS=[["path",{d:"M5 12h14",key:"1ays0h"}]],B2=q("minus",lS);/**
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 aS=[["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"}]],U2=q("package",aS);/**
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 uS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],H2=q("panel-left",uS);/**
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 cS=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],W2=q("play",cS);/**
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 dS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],K2=q("plus",dS);/**
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 fS=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],Y2=q("power",fS);/**
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 pS=[["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"}]],G2=q("refresh-cw",pS);/**
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 hS=[["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"}]],Q2=q("rocket",hS);/**
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 mS=[["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"}]],X2=q("rotate-cw",mS);/**
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 vS=[["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"}]],Z2=q("settings",vS);/**
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 yS=[["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"}]],q2=q("shield-alert",yS);/**
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 gS=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],J2=q("terminal",gS);/**
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 wS=[["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"}]],e_=q("trash-2",wS);/**
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 xS=[["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"}]],t_=q("trash",xS);/**
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 SS=[["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"}]],n_=q("wifi-off",SS);/**
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 ES=[["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"}]],r_=q("wifi",ES);/**
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 CS=[["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"}]],o_=q("workflow",CS);/**
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 kS=[["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"}]],i_=q("wrench",kS);/**
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 _S=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],s_=q("x",_S);/**
269
- * @license lucide-react v0.523.0 - ISC
270
- *
271
- * This source code is licensed under the ISC license.
272
- * See the LICENSE file in the root directory of this source tree.
273
- */const RS=[["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"}]],l_=q("zap",RS);function uf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mm(...e){return t=>{let n=!1;const r=e.map(o=>{const i=uf(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():uf(e[o],null)}}}}function he(...e){return f.useCallback(mm(...e),e)}function Zr(e){const t=PS(e),n=f.forwardRef((r,o)=>{const{children:i,...s}=r,l=f.Children.toArray(i),a=l.find(TS);if(a){const u=a.props.children,d=l.map(c=>c===a?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:c);return P.jsx(t,{...s,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return P.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var a_=Zr("Slot");function PS(e){const t=f.forwardRef((n,r)=>{const{children:o,...i}=n;if(f.isValidElement(o)){const s=AS(o),l=NS(i,o.props);return o.type!==f.Fragment&&(l.ref=r?mm(r,s):s),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vm=Symbol("radix.slottable");function ym(e){const t=({children:n})=>P.jsx(P.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=vm,t}function TS(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vm}function NS(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 AS(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 DS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],te=DS.reduce((e,t)=>{const n=Zr(`Primitive.${t}`),r=f.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function IS(e,t){e&&no.flushSync(()=>e.dispatchEvent(t))}var MS="Separator",cf="horizontal",bS=["horizontal","vertical"],gm=f.forwardRef((e,t)=>{const{decorative:n,orientation:r=cf,...o}=e,i=OS(r)?r:cf,l=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return P.jsx(te.div,{"data-orientation":i,...l,...o,ref:t})});gm.displayName=MS;function OS(e){return bS.includes(e)}var u_=gm;function LS(e,t){const n=f.createContext(t),r=i=>{const{children:s,...l}=i,a=f.useMemo(()=>l,Object.values(l));return P.jsx(n.Provider,{value:a,children:s})};r.displayName=e+"Provider";function o(i){const s=f.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=f.createContext(s),a=n.length;n=[...n,s];const u=c=>{var h;const{scope:v,children:g,...S}=c,y=((h=v==null?void 0:v[e])==null?void 0:h[a])||l,x=f.useMemo(()=>S,Object.values(S));return P.jsx(y.Provider,{value:x,children:g})};u.displayName=i+"Provider";function d(c,v){var y;const g=((y=v==null?void 0:v[e])==null?void 0:y[a])||l,S=f.useContext(g);if(S)return S;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>f.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,FS(o,...t)]}function FS(...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 f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Ze=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},jS=Xf[" useId ".trim().toString()]||(()=>{}),$S=0;function cn(e){const[t,n]=f.useState(jS());return Ze(()=>{n(r=>r??String($S++))},[e]),e||(t?`radix-${t}`:"")}var VS=Xf[" useInsertionEffect ".trim().toString()]||Ze;function ur({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=zS({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const c=d.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.`),d.current=l},[l,r])}const u=f.useCallback(d=>{var c;if(l){const v=BS(d)?d(e):d;v!==e&&((c=s.current)==null||c.call(s,v))}else i(d)},[l,e,i,s]);return[a,u]}function zS({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),i=f.useRef(t);return VS(()=>{i.current=t},[t]),f.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function BS(e){return typeof e=="function"}function Bn(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function US(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var HS="DismissableLayer",Ja="dismissableLayer.update",WS="dismissableLayer.pointerDownOutside",KS="dismissableLayer.focusOutside",df,wm=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qs=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=f.useContext(wm),[d,c]=f.useState(null),v=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=f.useState({}),S=he(t,k=>c(k)),y=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=y.indexOf(x),p=d?y.indexOf(d):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,w=p>=h,C=QS(k=>{const A=k.target,j=[...u.branches].some(F=>F.contains(A));!w||j||(o==null||o(k),s==null||s(k),k.defaultPrevented||l==null||l())},v),_=XS(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 US(k=>{p===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},v),f.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(df=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ff(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=df)}},[d,v,n,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ff())},[d,u]),f.useEffect(()=>{const k=()=>g({});return document.addEventListener(Ja,k),()=>document.removeEventListener(Ja,k)},[]),P.jsx(te.div,{...a,ref:S,style:{pointerEvents:m?w?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,C.onPointerDownCapture)})});Qs.displayName=HS;var YS="DismissableLayerBranch",GS=f.forwardRef((e,t)=>{const n=f.useContext(wm),r=f.useRef(null),o=he(t,r);return f.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),P.jsx(te.div,{...e,ref:o})});GS.displayName=YS;function QS(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){xm(WS,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 XS(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&xm(KS,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 ff(){const e=new CustomEvent(Ja);document.dispatchEvent(e)}function xm(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?IS(o,i):o.dispatchEvent(i)}var zl="focusScope.autoFocusOnMount",Bl="focusScope.autoFocusOnUnmount",pf={bubbles:!1,cancelable:!0},ZS="FocusScope",mc=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,a]=f.useState(null),u=Bn(o),d=Bn(i),c=f.useRef(null),v=he(t,y=>a(y)),g=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let y=function(m){if(g.paused||!l)return;const w=m.target;l.contains(w)?c.current=w:Cn(c.current,{select:!0})},x=function(m){if(g.paused||!l)return;const w=m.relatedTarget;w!==null&&(l.contains(w)||Cn(c.current,{select:!0}))},h=function(m){if(document.activeElement===document.body)for(const C of m)C.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,g.paused]),f.useEffect(()=>{if(l){mf.add(g);const y=document.activeElement;if(!l.contains(y)){const h=new CustomEvent(zl,pf);l.addEventListener(zl,u),l.dispatchEvent(h),h.defaultPrevented||(qS(rE(Sm(l)),{select:!0}),document.activeElement===y&&Cn(l))}return()=>{l.removeEventListener(zl,u),setTimeout(()=>{const h=new CustomEvent(Bl,pf);l.addEventListener(Bl,d),l.dispatchEvent(h),h.defaultPrevented||Cn(y??document.body,{select:!0}),l.removeEventListener(Bl,d),mf.remove(g)},0)}}},[l,u,d,g]);const S=f.useCallback(y=>{if(!n&&!r||g.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,h=document.activeElement;if(x&&h){const p=y.currentTarget,[m,w]=JS(p);m&&w?!y.shiftKey&&h===w?(y.preventDefault(),n&&Cn(m,{select:!0})):y.shiftKey&&h===m&&(y.preventDefault(),n&&Cn(w,{select:!0})):h===p&&y.preventDefault()}},[n,r,g.paused]);return P.jsx(te.div,{tabIndex:-1,...s,ref:v,onKeyDown:S})});mc.displayName=ZS;function qS(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Cn(r,{select:t}),document.activeElement!==n)return}function JS(e){const t=Sm(e),n=hf(t,e),r=hf(t.reverse(),e);return[n,r]}function Sm(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 hf(e,t){for(const n of e)if(!eE(n,{upTo:t}))return n}function eE(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 tE(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&&tE(e)&&t&&e.select()}}var mf=nE();function nE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=vf(e,t),e.unshift(t)},remove(t){var n;e=vf(e,t),(n=e[0])==null||n.resume()}}}function vf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rE(e){return e.filter(t=>t.tagName!=="A")}var oE="Portal",vc=f.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=f.useState(!1);Ze(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Zh.createPortal(P.jsx(te.div,{...r,ref:t}),s):null});vc.displayName=oE;function iE(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var mr=e=>{const{present:t,children:n}=e,r=sE(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=he(r.ref,lE(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};mr.displayName="Presence";function sE(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[l,a]=iE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=bi(r.current);i.current=l==="mounted"?u:"none"},[l]),Ze(()=>{const u=r.current,d=o.current;if(d!==e){const v=i.current,g=bi(u);e?a("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&v!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Ze(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=g=>{const y=bi(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&y&&(a("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},v=g=>{g.target===t&&(i.current=bi(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.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:f.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function bi(e){return(e==null?void 0:e.animationName)||"none"}function lE(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 Ul=0;function Em(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??yf()),document.body.insertAdjacentElement("beforeend",e[1]??yf()),Ul++,()=>{Ul===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ul--}},[])}function yf(){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",aE="with-scroll-bars-hidden",uE="--removed-body-scroll-bar-size";function Hl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function cE(e,t){var n=f.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var dE=typeof window<"u"?f.useLayoutEffect:f.useEffect,gf=new WeakMap;function fE(e,t){var n=cE(null,function(r){return e.forEach(function(o){return Hl(o,r)})});return dE(function(){var r=gf.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(l){i.has(l)||Hl(l,null)}),i.forEach(function(l){o.has(l)||Hl(l,s)})}gf.set(n,e)},[e]),n}function pE(e){return e}function hE(e,t){t===void 0&&(t=pE);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 d=s;s=[],d.forEach(i)},u=function(){return Promise.resolve().then(a)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return o}function mE(e){e===void 0&&(e={});var t=hE(null);return t.options=Rn({async:!0,ssr:!1},e),t}var Cm=function(e){var t=e.sideCar,n=Ff(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,Rn({},n))};Cm.isSideCarExport=!0;function vE(e,t){return e.useMedium(t),Cm}var km=mE(),Wl=function(){},Xs=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Wl,onWheelCapture:Wl,onTouchMoveCapture:Wl}),o=r[0],i=r[1],s=e.forwardProps,l=e.children,a=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,v=e.sideCar,g=e.noRelative,S=e.noIsolation,y=e.inert,x=e.allowPinchZoom,h=e.as,p=h===void 0?"div":h,m=e.gapMode,w=Ff(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=v,_=fE([n,t]),k=Rn(Rn({},w),o);return f.createElement(f.Fragment,null,d&&f.createElement(C,{sideCar:km,removeScrollBar:u,shards:c,noRelative:g,noIsolation:S,inert:y,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:m}),s?f.cloneElement(f.Children.only(l),Rn(Rn({},k),{ref:_})):f.createElement(p,Rn({},k,{className:a,ref:_}),l))});Xs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Xs.classNames={fullWidth:qi,zeroRight:Zi};function yE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wy();return t&&e.setAttribute("nonce",t),e}function gE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function wE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var xE=function(){var e=0,t=null;return{add:function(n){e==0&&(t=yE())&&(gE(t,n),wE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},SE=function(){var e=xE();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},_m=function(){var e=SE(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},EE={left:0,top:0,right:0,gap:0},Kl=function(e){return parseInt(e||"",10)||0},CE=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[Kl(n),Kl(r),Kl(o)]},kE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return EE;var t=CE(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=_m(),zr="data-scroll-locked",RE=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
274
- .`.concat(aE,` {
275
- overflow: hidden `).concat(r,`;
276
- padding-right: `).concat(l,"px ").concat(r,`;
277
- }
278
- body[`).concat(zr,`] {
279
- overflow: hidden `).concat(r,`;
280
- overscroll-behavior: contain;
281
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
282
- padding-left: `.concat(o,`px;
283
- padding-top: `).concat(i,`px;
284
- padding-right: `).concat(s,`px;
285
- margin-left:0;
286
- margin-top:0;
287
- margin-right: `).concat(l,"px ").concat(r,`;
288
- `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
289
- }
290
-
291
- .`).concat(Zi,` {
292
- right: `).concat(l,"px ").concat(r,`;
293
- }
294
-
295
- .`).concat(qi,` {
296
- margin-right: `).concat(l,"px ").concat(r,`;
297
- }
298
-
299
- .`).concat(Zi," .").concat(Zi,` {
300
- right: 0 `).concat(r,`;
301
- }
302
-
303
- .`).concat(qi," .").concat(qi,` {
304
- margin-right: 0 `).concat(r,`;
305
- }
306
-
307
- body[`).concat(zr,`] {
308
- `).concat(uE,": ").concat(l,`px;
309
- }
310
- `)},wf=function(){var e=parseInt(document.body.getAttribute(zr)||"0",10);return isFinite(e)?e:0},PE=function(){f.useEffect(function(){return document.body.setAttribute(zr,(wf()+1).toString()),function(){var e=wf()-1;e<=0?document.body.removeAttribute(zr):document.body.setAttribute(zr,e.toString())}},[])},TE=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;PE();var i=f.useMemo(function(){return kE(o)},[o]);return f.createElement(_E,{styles:RE(i,!t,o,n?"":"!important")})},eu=!1;if(typeof window<"u")try{var Oi=Object.defineProperty({},"passive",{get:function(){return eu=!0,!0}});window.addEventListener("test",Oi,Oi),window.removeEventListener("test",Oi,Oi)}catch{eu=!1}var gr=eu?{passive:!1}:!1,NE=function(e){return e.tagName==="TEXTAREA"},Rm=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!NE(e)&&n[t]==="visible")},AE=function(e){return Rm(e,"overflowY")},DE=function(e){return Rm(e,"overflowX")},xf=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Pm(e,r);if(o){var i=Tm(e,r),s=i[1],l=i[2];if(s>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},IE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ME=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Pm=function(e,t){return e==="v"?AE(t):DE(t)},Tm=function(e,t){return e==="v"?IE(t):ME(t)},bE=function(e,t){return e==="h"&&t==="rtl"?-1:1},OE=function(e,t,n,r,o){var i=bE(e,window.getComputedStyle(t).direction),s=i*r,l=n.target,a=t.contains(l),u=!1,d=s>0,c=0,v=0;do{if(!l)break;var g=Tm(e,l),S=g[0],y=g[1],x=g[2],h=y-x-i*S;(S||h)&&Pm(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(d&&Math.abs(c)<1||!d&&Math.abs(v)<1)&&(u=!0),u},Li=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Sf=function(e){return[e.deltaX,e.deltaY]},Ef=function(e){return e&&"current"in e?e.current:e},LE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},FE=function(e){return`
311
- .block-interactivity-`.concat(e,` {pointer-events: none;}
312
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
313
- `)},jE=0,wr=[];function $E(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(jE++)[0],i=f.useState(_m)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=Ky([e.lockRef.current],(e.shards||[]).map(Ef),!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=f.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],w="deltaY"in y?y.deltaY:p[1]-h[1],C,_=y.target,k=Math.abs(m)>Math.abs(w)?"h":"v";if("touches"in y&&k==="h"&&_.type==="range")return!1;var A=xf(k,_);if(!A)return!0;if(A?C=k:(C=k==="v"?"h":"v",A=xf(k,_)),!A)return!1;if(!r.current&&"changedTouches"in y&&(m||w)&&(r.current=C),!C)return!0;var j=r.current||C;return OE(j,x,y,j==="h"?m:w)},[]),a=f.useCallback(function(y){var x=y;if(!(!wr.length||wr[wr.length-1]!==i)){var h="deltaY"in x?Sf(x):Li(x),p=t.current.filter(function(C){return C.name===x.type&&(C.target===x.target||x.target===C.shadowParent)&&LE(C.delta,h)})[0];if(p&&p.should){x.cancelable&&x.preventDefault();return}if(!p){var m=(s.current.shards||[]).map(Ef).filter(Boolean).filter(function(C){return C.contains(x.target)}),w=m.length>0?l(x,m[0]):!s.current.noIsolation;w&&x.cancelable&&x.preventDefault()}}},[]),u=f.useCallback(function(y,x,h,p){var m={name:y,delta:x,target:h,should:p,shadowParent:VE(h)};t.current.push(m),setTimeout(function(){t.current=t.current.filter(function(w){return w!==m})},1)},[]),d=f.useCallback(function(y){n.current=Li(y),r.current=void 0},[]),c=f.useCallback(function(y){u(y.type,Sf(y),y.target,l(y,e.lockRef.current))},[]),v=f.useCallback(function(y){u(y.type,Li(y),y.target,l(y,e.lockRef.current))},[]);f.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",d,gr),function(){wr=wr.filter(function(y){return y!==i}),document.removeEventListener("wheel",a,gr),document.removeEventListener("touchmove",a,gr),document.removeEventListener("touchstart",d,gr)}},[]);var g=e.removeScrollBar,S=e.inert;return f.createElement(f.Fragment,null,S?f.createElement(i,{styles:FE(o)}):null,g?f.createElement(TE,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function VE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zE=vE(km,$E);var yc=f.forwardRef(function(e,t){return f.createElement(Xs,Rn({},e,{ref:t,sideCar:zE}))});yc.classNames=Xs.classNames;var Zs="Dialog",[Nm,Am]=yn(Zs),[BE,Wt]=Nm(Zs),Dm=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,l=f.useRef(null),a=f.useRef(null),[u,d]=ur({prop:r,defaultProp:o??!1,onChange:i,caller:Zs});return P.jsx(BE,{scope:t,triggerRef:l,contentRef:a,contentId:cn(),titleId:cn(),descriptionId:cn(),open:u,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(c=>!c),[d]),modal:s,children:n})};Dm.displayName=Zs;var Im="DialogTrigger",Mm=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Wt(Im,n),i=he(t,o.triggerRef);return P.jsx(te.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":xc(o.open),...r,ref:i,onClick:Q(e.onClick,o.onOpenToggle)})});Mm.displayName=Im;var gc="DialogPortal",[UE,bm]=Nm(gc,{forceMount:void 0}),Om=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Wt(gc,t);return P.jsx(UE,{scope:t,forceMount:n,children:f.Children.map(r,s=>P.jsx(mr,{present:n||i.open,children:P.jsx(vc,{asChild:!0,container:o,children:s})}))})};Om.displayName=gc;var _s="DialogOverlay",Lm=f.forwardRef((e,t)=>{const n=bm(_s,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Wt(_s,e.__scopeDialog);return i.modal?P.jsx(mr,{present:r||i.open,children:P.jsx(WE,{...o,ref:t})}):null});Lm.displayName=_s;var HE=Zr("DialogOverlay.RemoveScroll"),WE=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Wt(_s,n);return P.jsx(yc,{as:HE,allowPinchZoom:!0,shards:[o.contentRef],children:P.jsx(te.div,{"data-state":xc(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),cr="DialogContent",Fm=f.forwardRef((e,t)=>{const n=bm(cr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Wt(cr,e.__scopeDialog);return P.jsx(mr,{present:r||i.open,children:i.modal?P.jsx(KE,{...o,ref:t}):P.jsx(YE,{...o,ref:t})})});Fm.displayName=cr;var KE=f.forwardRef((e,t)=>{const n=Wt(cr,e.__scopeDialog),r=f.useRef(null),o=he(t,n.contentRef,r);return f.useEffect(()=>{const i=r.current;if(i)return jf(i)},[]),P.jsx(jm,{...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())})}),YE=f.forwardRef((e,t)=>{const n=Wt(cr,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return P.jsx(jm,{...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()}})}),jm=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,l=Wt(cr,n),a=f.useRef(null),u=he(t,a);return Em(),P.jsxs(P.Fragment,{children:[P.jsx(mc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:P.jsx(Qs,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":xc(l.open),...s,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),P.jsxs(P.Fragment,{children:[P.jsx(QE,{titleId:l.titleId}),P.jsx(ZE,{contentRef:a,descriptionId:l.descriptionId})]})]})}),wc="DialogTitle",$m=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Wt(wc,n);return P.jsx(te.h2,{id:o.titleId,...r,ref:t})});$m.displayName=wc;var Vm="DialogDescription",zm=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Wt(Vm,n);return P.jsx(te.p,{id:o.descriptionId,...r,ref:t})});zm.displayName=Vm;var Bm="DialogClose",Um=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Wt(Bm,n);return P.jsx(te.button,{type:"button",...r,ref:t,onClick:Q(e.onClick,()=>o.onOpenChange(!1))})});Um.displayName=Bm;function xc(e){return e?"open":"closed"}var Hm="DialogTitleWarning",[GE,Wm]=LS(Hm,{contentName:cr,titleName:wc,docsSlug:"dialog"}),QE=({titleId:e})=>{const t=Wm(Hm),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
314
-
315
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
316
-
317
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},XE="DialogDescriptionWarning",ZE=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Wm(XE).contentName}}.`;return f.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},qE=Dm,JE=Mm,eC=Om,tC=Lm,nC=Fm,rC=$m,oC=zm,Km=Um,iC=typeof document<"u",sC=function(){},Ji=iC?f.useLayoutEffect:sC;function Rs(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(!Rs(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)&&!Rs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ym(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cf(e,t){const n=Ym(e);return Math.round(t*n)/n}function Yl(e){const t=f.useRef(e);return Ji(()=>{t.current=e}),t}function lC(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,[d,c]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=f.useState(r);Rs(v,r)||g(r);const[S,y]=f.useState(null),[x,h]=f.useState(null),p=f.useCallback(Y=>{Y!==_.current&&(_.current=Y,y(Y))},[]),m=f.useCallback(Y=>{Y!==k.current&&(k.current=Y,h(Y))},[]),w=i||S,C=s||x,_=f.useRef(null),k=f.useRef(null),A=f.useRef(d),j=a!=null,F=Yl(a),W=Yl(o),B=Yl(u),V=f.useCallback(()=>{if(!_.current||!k.current)return;const Y={placement:t,strategy:n,middleware:v};W.current&&(Y.platform=W.current),Yy(_.current,k.current,Y).then(ae=>{const de={...ae,isPositioned:B.current!==!1};G.current&&!Rs(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=f.useRef(!1);Ji(()=>(G.current=!0,()=>{G.current=!1}),[]),Ji(()=>{if(w&&(_.current=w),C&&(k.current=C),w&&C){if(F.current)return F.current(w,C,V);V()}},[w,C,V,F,j]);const J=f.useMemo(()=>({reference:_,floating:k,setReference:p,setFloating:m}),[p,m]),L=f.useMemo(()=>({reference:w,floating:C}),[w,C]),K=f.useMemo(()=>{const Y={position:n,left:0,top:0};if(!L.floating)return Y;const ae=Cf(L.floating,d.x),de=Cf(L.floating,d.y);return l?{...Y,transform:"translate("+ae+"px, "+de+"px)",...Ym(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ae,top:de}},[n,l,L.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:V,refs:J,elements:L,floatingStyles:K}),[d,V,J,L,K])}const aC=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?jc({element:r.current,padding:o}).fn(n):{}:r?jc({element:r,padding:o}).fn(n):{}}}},uC=(e,t)=>({...Gy(e),options:[e,t]}),cC=(e,t)=>({...Qy(e),options:[e,t]}),dC=(e,t)=>({...Jy(e),options:[e,t]}),fC=(e,t)=>({...Xy(e),options:[e,t]}),pC=(e,t)=>({...Zy(e),options:[e,t]}),hC=(e,t)=>({...qy(e),options:[e,t]}),mC=(e,t)=>({...aC(e),options:[e,t]});var vC="Arrow",Gm=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return P.jsx(te.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:P.jsx("polygon",{points:"0,0 30,0 15,10"})})});Gm.displayName=vC;var yC=Gm;function Qm(e){const[t,n]=f.useState(void 0);return Ze(()=>{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 Sc="Popper",[Xm,qs]=yn(Sc),[gC,Zm]=Xm(Sc),qm=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return P.jsx(gC,{scope:t,anchor:r,onAnchorChange:o,children:n})};qm.displayName=Sc;var Jm="PopperAnchor",ev=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Zm(Jm,n),s=f.useRef(null),l=he(t,s),a=f.useRef(null);return f.useEffect(()=>{const u=a.current;a.current=(r==null?void 0:r.current)||s.current,u!==a.current&&i.onAnchorChange(a.current)}),r?null:P.jsx(te.div,{...o,ref:l})});ev.displayName=Jm;var Ec="PopperContent",[wC,xC]=Xm(Ec),tv=f.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:d=0,sticky:c="partial",hideWhenDetached:v=!1,updatePositionStrategy:g="optimized",onPlaced:S,...y}=e,x=Zm(Ec,n),[h,p]=f.useState(null),m=he(t,je=>p(je)),[w,C]=f.useState(null),_=Qm(w),k=(_==null?void 0:_.width)??0,A=(_==null?void 0:_.height)??0,j=r+(i!=="center"?"-"+i:""),F=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},W=Array.isArray(u)?u:[u],B=W.length>0,V={padding:F,boundary:W.filter(EC),altBoundary:B},{refs:G,floatingStyles:J,placement:L,isPositioned:K,middlewareData:Y}=lC({strategy:"fixed",placement:j,whileElementsMounted:(...je)=>eg(...je,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[uC({mainAxis:o+A,alignmentAxis:s}),a&&cC({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?dC():void 0,...V}),a&&fC({...V}),pC({...V,apply:({elements:je,rects:$e,availableWidth:Kt,availableHeight:Yt})=>{const{width:dt,height:lo}=$e.reference,Ve=je.floating.style;Ve.setProperty("--radix-popper-available-width",`${Kt}px`),Ve.setProperty("--radix-popper-available-height",`${Yt}px`),Ve.setProperty("--radix-popper-anchor-width",`${dt}px`),Ve.setProperty("--radix-popper-anchor-height",`${lo}px`)}}),w&&mC({element:w,padding:l}),CC({arrowWidth:k,arrowHeight:A}),v&&hC({strategy:"referenceHidden",...V})]}),[ae,de]=ov(L),Ae=Bn(S);Ze(()=>{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]=f.useState();return Ze(()=>{h&&Re(window.getComputedStyle(h).zIndex)},[h]),P.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:P.jsx(wC,{scope:n,placedSide:ae,onArrowChange:C,arrowX:St,arrowY:X,shouldHideArrow:se,children:P.jsx(te.div,{"data-side":ae,"data-align":de,...y,ref:m,style:{...y.style,animation:K?void 0:"none"}})})})});tv.displayName=Ec;var nv="PopperArrow",SC={top:"bottom",right:"left",bottom:"top",left:"right"},rv=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=xC(nv,r),s=SC[i.placedSide];return P.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:P.jsx(yC,{...o,ref:n,style:{...o.style,display:"block"}})})});rv.displayName=nv;function EC(e){return e!==null}var CC=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,d]=ov(n),c={start:"0%",center:"50%",end:"100%"}[d],v=(((h=o.arrow)==null?void 0:h.x)??0)+l/2,g=(((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:`${g}px`):u==="left"&&(S=`${r.floating.width+a}px`,y=s?c:`${g}px`),{data:{x:S,y}}}});function ov(e){const[t,n="center"]=e.split("-");return[t,n]}var iv=qm,sv=ev,lv=tv,av=rv,uv=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"}),kC="VisuallyHidden",cv=f.forwardRef((e,t)=>P.jsx(te.span,{...e,ref:t,style:{...uv,...e.style}}));cv.displayName=kC;var _C=cv,[Js]=yn("Tooltip",[qs]),el=qs(),dv="TooltipProvider",RC=700,tu="tooltip.open",[PC,Cc]=Js(dv),fv=e=>{const{__scopeTooltip:t,delayDuration:n=RC,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=f.useRef(!0),l=f.useRef(!1),a=f.useRef(0);return f.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),P.jsx(PC,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};fv.displayName=dv;var ti="Tooltip",[TC,tl]=Js(ti),pv=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,a=Cc(ti,e.__scopeTooltip),u=el(t),[d,c]=f.useState(null),v=cn(),g=f.useRef(0),S=s??a.disableHoverableContent,y=l??a.delayDuration,x=f.useRef(!1),[h,p]=ur({prop:r,defaultProp:o??!1,onChange:k=>{k?(a.onOpen(),document.dispatchEvent(new CustomEvent(tu))):a.onClose(),i==null||i(k)},caller:ti}),m=f.useMemo(()=>h?x.current?"delayed-open":"instant-open":"closed",[h]),w=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x.current=!1,p(!0)},[p]),C=f.useCallback(()=>{window.clearTimeout(g.current),g.current=0,p(!1)},[p]),_=f.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,p(!0),g.current=0},y)},[y,p]);return f.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),P.jsx(iv,{...u,children:P.jsx(TC,{scope:t,contentId:v,open:h,stateAttribute:m,trigger:d,onTriggerChange:c,onTriggerEnter:f.useCallback(()=>{a.isOpenDelayedRef.current?_():w()},[a.isOpenDelayedRef,_,w]),onTriggerLeave:f.useCallback(()=>{S?C():(window.clearTimeout(g.current),g.current=0)},[C,S]),onOpen:w,onClose:C,disableHoverableContent:S,children:n})})};pv.displayName=ti;var nu="TooltipTrigger",hv=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tl(nu,n),i=Cc(nu,n),s=el(n),l=f.useRef(null),a=he(t,l,o.onTriggerChange),u=f.useRef(!1),d=f.useRef(!1),c=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),P.jsx(sv,{asChild:!0,...s,children:P.jsx(te.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:Q(e.onPointerMove,v=>{v.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Q(e.onPointerLeave,()=>{o.onTriggerLeave(),d.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)})})});hv.displayName=nu;var NC="TooltipPortal",[c_,AC]=Js(NC,{forceMount:void 0}),qr="TooltipContent",mv=f.forwardRef((e,t)=>{const n=AC(qr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=tl(qr,e.__scopeTooltip);return P.jsx(mr,{present:r||s.open,children:s.disableHoverableContent?P.jsx(vv,{side:o,...i,ref:t}):P.jsx(DC,{side:o,...i,ref:t})})}),DC=f.forwardRef((e,t)=>{const n=tl(qr,e.__scopeTooltip),r=Cc(qr,e.__scopeTooltip),o=f.useRef(null),i=he(t,o),[s,l]=f.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:c}=r,v=f.useCallback(()=>{l(null),c(!1)},[c]),g=f.useCallback((S,y)=>{const x=S.currentTarget,h={x:S.clientX,y:S.clientY},p=LC(h,x.getBoundingClientRect()),m=FC(h,p),w=jC(y.getBoundingClientRect()),C=VC([...m,...w]);l(C),c(!0)},[c]);return f.useEffect(()=>()=>v(),[v]),f.useEffect(()=>{if(a&&d){const S=x=>g(x,d),y=x=>g(x,a);return a.addEventListener("pointerleave",S),d.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",S),d.removeEventListener("pointerleave",y)}}},[a,d,g,v]),f.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))||(d==null?void 0:d.contains(x)),m=!$C(h,s);p?v():m&&(v(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[a,d,s,u,v]),P.jsx(vv,{...e,ref:i})}),[IC,MC]=Js(ti,{isInside:!1}),bC=ym("TooltipContent"),vv=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=tl(qr,n),u=el(n),{onClose:d}=a;return f.useEffect(()=>(document.addEventListener(tu,d),()=>document.removeEventListener(tu,d)),[d]),f.useEffect(()=>{if(a.trigger){const c=v=>{const g=v.target;g!=null&&g.contains(a.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[a.trigger,d]),P.jsx(Qs,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:P.jsxs(lv,{"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:[P.jsx(bC,{children:r}),P.jsx(IC,{scope:n,isInside:!0,children:P.jsx(_C,{id:a.contentId,role:"tooltip",children:o||r})})]})})});mv.displayName=qr;var yv="TooltipArrow",OC=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=el(n);return MC(yv,n).isInside?null:P.jsx(av,{...o,...r,ref:t})});OC.displayName=yv;function LC(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 FC(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 jC(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 $C(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,d=l.y,c=a.x,v=a.y;d>r!=v>r&&n<(c-u)*(r-d)/(v-d)+u&&(o=!o)}return o}function VC(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),zC(t)}function zC(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 d_=fv,f_=pv,p_=hv,h_=mv,gv="AlertDialog",[BC]=yn(gv,[Am]),gn=Am(),wv=e=>{const{__scopeAlertDialog:t,...n}=e,r=gn(t);return P.jsx(qE,{...r,...n,modal:!0})};wv.displayName=gv;var UC="AlertDialogTrigger",xv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return P.jsx(JE,{...o,...r,ref:t})});xv.displayName=UC;var HC="AlertDialogPortal",Sv=e=>{const{__scopeAlertDialog:t,...n}=e,r=gn(t);return P.jsx(eC,{...r,...n})};Sv.displayName=HC;var WC="AlertDialogOverlay",Ev=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return P.jsx(tC,{...o,...r,ref:t})});Ev.displayName=WC;var Br="AlertDialogContent",[KC,YC]=BC(Br),GC=ym("AlertDialogContent"),Cv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=gn(n),s=f.useRef(null),l=he(t,s),a=f.useRef(null);return P.jsx(GE,{contentName:Br,titleName:kv,docsSlug:"alert-dialog",children:P.jsx(KC,{scope:n,cancelRef:a,children:P.jsxs(nC,{role:"alertdialog",...i,...o,ref:l,onOpenAutoFocus:Q(o.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=a.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[P.jsx(GC,{children:r}),P.jsx(XC,{contentRef:s})]})})})});Cv.displayName=Br;var kv="AlertDialogTitle",_v=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return P.jsx(rC,{...o,...r,ref:t})});_v.displayName=kv;var Rv="AlertDialogDescription",Pv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return P.jsx(oC,{...o,...r,ref:t})});Pv.displayName=Rv;var QC="AlertDialogAction",Tv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return P.jsx(Km,{...o,...r,ref:t})});Tv.displayName=QC;var Nv="AlertDialogCancel",Av=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=YC(Nv,n),i=gn(n),s=he(t,o);return P.jsx(Km,{...i,...r,ref:s})});Av.displayName=Nv;var XC=({contentRef:e})=>{const t=`\`${Br}\` requires a description for the component to be accessible for screen reader users.
318
-
319
- You can add a description to the \`${Br}\` by passing a \`${Rv}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
320
-
321
- 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.
322
-
323
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},m_=wv,v_=xv,y_=Sv,g_=Ev,w_=Cv,x_=Tv,S_=Av,E_=_v,C_=Pv;function Dv(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 P.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),w=he(x,m.collectionRef);return P.jsx(a,{ref:w,children:p})});u.displayName=l;const d=e+"CollectionItemSlot",c="data-radix-collection-item",v=Zr(d),g=T.forwardRef((y,x)=>{const{scope:h,children:p,...m}=y,w=T.useRef(null),C=he(x,w),_=i(d,h);return T.useEffect(()=>(_.itemMap.set(w,{ref:w,...m}),()=>void _.itemMap.delete(w))),P.jsx(v,{[c]:"",ref:C,children:p})});g.displayName=d;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:g},S,r]}var ZC=f.createContext(void 0);function kc(e){const t=f.useContext(ZC);return e||t||"ltr"}var Gl="rovingFocusGroup.onEntryFocus",qC={bubbles:!1,cancelable:!0},ui="RovingFocusGroup",[ru,Iv,JC]=Dv(ui),[ek,Mv]=yn(ui,[JC]),[tk,nk]=ek(ui),bv=f.forwardRef((e,t)=>P.jsx(ru.Provider,{scope:e.__scopeRovingFocusGroup,children:P.jsx(ru.Slot,{scope:e.__scopeRovingFocusGroup,children:P.jsx(rk,{...e,ref:t})})}));bv.displayName=ui;var rk=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:a,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...c}=e,v=f.useRef(null),g=he(t,v),S=kc(i),[y,x]=ur({prop:s,defaultProp:l??null,onChange:a,caller:ui}),[h,p]=f.useState(!1),m=Bn(u),w=Iv(n),C=f.useRef(!1),[_,k]=f.useState(0);return f.useEffect(()=>{const A=v.current;if(A)return A.addEventListener(Gl,m),()=>A.removeEventListener(Gl,m)},[m]),P.jsx(tk,{scope:n,orientation:r,dir:S,loop:o,currentTabStopId:y,onItemFocus:f.useCallback(A=>x(A),[x]),onItemShiftTab:f.useCallback(()=>p(!0),[]),onFocusableItemAdd:f.useCallback(()=>k(A=>A+1),[]),onFocusableItemRemove:f.useCallback(()=>k(A=>A-1),[]),children:P.jsx(te.div,{tabIndex:h||_===0?-1:0,"data-orientation":r,...c,ref:g,style:{outline:"none",...e.style},onMouseDown:Q(e.onMouseDown,()=>{C.current=!0}),onFocus:Q(e.onFocus,A=>{const j=!C.current;if(A.target===A.currentTarget&&j&&!h){const F=new CustomEvent(Gl,qC);if(A.currentTarget.dispatchEvent(F),!F.defaultPrevented){const W=w().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);Fv(J,d)}}C.current=!1}),onBlur:Q(e.onBlur,()=>p(!1))})})}),Ov="RovingFocusGroupItem",Lv=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:s,...l}=e,a=cn(),u=i||a,d=nk(Ov,n),c=d.currentTabStopId===u,v=Iv(n),{onFocusableItemAdd:g,onFocusableItemRemove:S,currentTabStopId:y}=d;return f.useEffect(()=>{if(r)return g(),()=>S()},[r,g,S]),P.jsx(ru.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:P.jsx(te.span,{tabIndex:c?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:Q(e.onMouseDown,x=>{r?d.onItemFocus(u):x.preventDefault()}),onFocus:Q(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:Q(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const h=sk(x,d.orientation,d.dir);if(h!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let m=v().filter(w=>w.focusable).map(w=>w.ref.current);if(h==="last")m.reverse();else if(h==="prev"||h==="next"){h==="prev"&&m.reverse();const w=m.indexOf(x.currentTarget);m=d.loop?lk(m,w+1):m.slice(w+1)}setTimeout(()=>Fv(m))}}),children:typeof s=="function"?s({isCurrentTabStop:c,hasTabStop:y!=null}):s})})});Lv.displayName=Ov;var ok={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ik(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function sk(e,t,n){const r=ik(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return ok[r]}function Fv(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function lk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ak=bv,uk=Lv,nl="Tabs",[ck]=yn(nl,[Mv]),jv=Mv(),[dk,_c]=ck(nl),$v=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:s="horizontal",dir:l,activationMode:a="automatic",...u}=e,d=kc(l),[c,v]=ur({prop:r,onChange:o,defaultProp:i??"",caller:nl});return P.jsx(dk,{scope:n,baseId:cn(),value:c,onValueChange:v,orientation:s,dir:d,activationMode:a,children:P.jsx(te.div,{dir:d,"data-orientation":s,...u,ref:t})})});$v.displayName=nl;var Vv="TabsList",zv=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=_c(Vv,n),s=jv(n);return P.jsx(ak,{asChild:!0,...s,orientation:i.orientation,dir:i.dir,loop:r,children:P.jsx(te.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});zv.displayName=Vv;var Bv="TabsTrigger",Uv=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,s=_c(Bv,n),l=jv(n),a=Kv(s.baseId,r),u=Yv(s.baseId,r),d=r===s.value;return P.jsx(uk,{asChild:!0,...l,focusable:!o,active:d,children:P.jsx(te.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"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";!d&&!o&&c&&s.onValueChange(r)})})})});Uv.displayName=Bv;var Hv="TabsContent",Wv=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...s}=e,l=_c(Hv,n),a=Kv(l.baseId,r),u=Yv(l.baseId,r),d=r===l.value,c=f.useRef(d);return f.useEffect(()=>{const v=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(v)},[]),P.jsx(mr,{present:o||d,children:({present:v})=>P.jsx(te.div,{"data-state":d?"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})})});Wv.displayName=Hv;function Kv(e,t){return`${e}-trigger-${t}`}function Yv(e,t){return`${e}-content-${t}`}var k_=$v,__=zv,R_=Uv,P_=Wv,ci=e=>e.type==="checkbox",tr=e=>e instanceof Date,ot=e=>e==null;const Gv=e=>typeof e=="object";var Ie=e=>!ot(e)&&!Array.isArray(e)&&Gv(e)&&!tr(e),Qv=e=>Ie(e)&&e.target?ci(e.target)?e.target.checked:e.target.value:e,fk=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Xv=(e,t)=>e.has(fk(t)),pk=e=>{const t=e.constructor&&e.constructor.prototype;return Ie(t)&&t.hasOwnProperty("isPrototypeOf")},Rc=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(!(Rc&&(e instanceof Blob||r))&&(n||Ie(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!pk(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=we(e[o]));else return e;return t}var rl=e=>/^\w*$/.test(e),ve=e=>e===void 0,ol=e=>Array.isArray(e)?e.filter(Boolean):[],Pc=e=>ol(e.replace(/["|']|\]/g,"").split(/\.|\[/)),M=(e,t,n)=>{if(!t||!Ie(e))return n;const r=(rl(t)?[t]:Pc(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=rl(t)?[t]:Pc(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 Ps={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_t={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},tn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Tc=T.createContext(null);Tc.displayName="HookFormContext";const il=()=>T.useContext(Tc),T_=e=>{const{children:t,...n}=e;return T.createElement(Tc.Provider,{value:n},t)};var Zv=(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 sl=typeof window<"u"?T.useLayoutEffect:T.useEffect;function hk(e){const t=il(),{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 sl(()=>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(()=>Zv(s,n,a.current,!1),[s,n])}var mt=e=>typeof e=="string",qv=(e,t,n,r,o)=>mt(e)?(r&&t.watch.add(e),M(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),M(n,i))):(r&&(t.watchAll=!0),n),ou=e=>ot(e)||!Gv(e);function on(e,t,n=new WeakSet){if(ou(e)||ou(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)?!on(s,l,n):s!==l)return!1}}return!0}function mk(e){const t=il(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:s,compute:l}=e||{},a=T.useRef(o),u=T.useRef(l),d=T.useRef(void 0);u.current=l;const c=T.useMemo(()=>n._getWatch(r,a.current),[n,r]),[v,g]=T.useState(u.current?u.current(c):c);return sl(()=>n._subscribe({name:r,formState:{values:!0},exact:s,callback:S=>{if(!i){const y=qv(r,n._names,S.values||n._formValues,!1,a.current);if(u.current){const x=u.current(y);on(x,d.current)||(g(x),d.current=x)}else g(y)}}}),[n,i,r,s]),T.useEffect(()=>n._removeUnmounted()),v}function vk(e){const t=il(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i,defaultValue:s}=e,l=Xv(o._names.array,n),a=T.useMemo(()=>M(o._formValues,n,M(o._defaultValues,n,s)),[o,n,s]),u=mk({control:o,name:n,defaultValue:a,exact:!0}),d=hk({control:o,name:n,exact:!0}),c=T.useRef(e),v=T.useRef(void 0),g=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:()=>!!M(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!M(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!M(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!M(d.validatingFields,n)},error:{enumerable:!0,get:()=>M(d.errors,n)}}),[d,n]),y=T.useCallback(m=>g.current.onChange({target:{value:Qv(m),name:n},type:Ps.CHANGE}),[n]),x=T.useCallback(()=>g.current.onBlur({target:{value:M(o._formValues,n),name:n},type:Ps.BLUR}),[n,o._formValues]),h=T.useCallback(m=>{const w=M(o._fields,n);w&&m&&(w._f.ref={focus:()=>m.focus&&m.focus(),select:()=>m.select&&m.select(),setCustomValidity:C=>m.setCustomValidity(C),reportValidity:()=>m.reportValidity()})},[o._fields,n]),p=T.useMemo(()=>({name:n,value:u,...ht(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:y,onBlur:x,ref:h}),[n,r,d.disabled,y,x,h,u]);return T.useEffect(()=>{const m=o._options.shouldUnregister||i,w=v.current;w&&w!==n&&!l&&o.unregister(w),o.register(n,{...c.current.rules,...ht(c.current.disabled)?{disabled:c.current.disabled}:{}});const C=(_,k)=>{const A=M(o._fields,_);A&&A._f&&(A._f.mount=k)};if(C(n,!0),m){const _=we(M(o._options.defaultValues,n,c.current.defaultValue));ce(o._defaultValues,n,_),ve(M(o._formValues,n))&&ce(o._formValues,n,_)}return!l&&o.register(n),v.current=n,()=>{(l?m&&!o._state.action:m)?o.unregister(n):C(n,!1)}},[n,o,l,i]),T.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),T.useMemo(()=>({field:p,formState:d,fieldState:S}),[p,d,S])}const N_=e=>e.render(vk(e));var Nc=(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],kf=()=>{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 Jv(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=Jv(o,i);Ie(s)&&(n[r]=s)}else e[r]&&(n[r]=i)}return n}var qe=e=>Ie(e)&&!Object.keys(e).length,Ac=e=>e.type==="file",$t=e=>typeof e=="function",Ts=e=>{if(!Rc)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ey=e=>e.type==="select-multiple",Dc=e=>e.type==="radio",yk=e=>Dc(e)||ci(e),Ql=e=>Ts(e)&&e.isConnected;function gk(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 wk(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:rl(t)?[t]:Pc(t),r=n.length===1?e:gk(e,n),o=n.length-1,i=n[o];return r&&delete r[i],o!==0&&(Ie(r)&&qe(r)||Array.isArray(r)&&wk(r))&&Te(e,n.slice(0,-1)),e}var xk=e=>{for(const t in e)if($t(e[t]))return!0;return!1};function ty(e){return Array.isArray(e)||Ie(e)&&!xk(e)}function iu(e,t={}){for(const n in e)ty(e[n])?(t[n]=Array.isArray(e[n])?[]:{},iu(e[n],t[n])):ve(e[n])||(t[n]=!0);return t}function Sr(e,t,n){n||(n=iu(t));for(const r in e)ty(e[r])?ve(t)||ou(n[r])?n[r]=iu(e[r],Array.isArray(e[r])?[]:{}):Sr(e[r],ot(t)?{}:t[r],n[r]):n[r]=!on(e[r],t[r]);return n}const _f={value:!1,isValid:!1},Rf={value:!0,isValid:!0};var ny=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===""?Rf:{value:e[0].value,isValid:!0}:Rf:_f}return _f},ry=(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 Pf={isValid:!1,value:null};var oy=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Pf):Pf;function Tf(e){const t=e.ref;return Ac(t)?t.files:Dc(t)?oy(e.refs).value:ey(t)?[...t.selectedOptions].map(({value:n})=>n):ci(t)?ny(e.refs).value:ry(ve(t.value)?e.ref.value:t.value,e)}var Sk=(e,t,n,r)=>{const o={};for(const i of e){const s=M(t,i);s&&ce(o,i,s._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Ns=e=>e instanceof RegExp,So=e=>ve(e)?e:Ns(e)?e.source:Ie(e)?Ns(e.value)?e.value.source:e.value:e,br=e=>({isOnSubmit:!e||e===_t.onSubmit,isOnBlur:e===_t.onBlur,isOnChange:e===_t.onChange,isOnAll:e===_t.all,isOnTouch:e===_t.onTouched});const Nf="AsyncFunction";var Ek=e=>!!e&&!!e.validate&&!!($t(e.validate)&&e.validate.constructor.name===Nf||Ie(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Nf)),Ck=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),su=(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=M(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 Af(e,t,n){const r=M(e,n);if(r||rl(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),s=M(t,i),l=M(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 kk=(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))),Rk=(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,Pk=(e,t)=>!ol(M(e,t)).length&&Te(e,t),iy=(e,t,n)=>{const r=lt(M(e,n));return ce(r,"root",t[n]),ce(e,n,r),e};function Df(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)&&!Ns(e)?e:{value:e,message:""},lu=async(e,t,n,r,o,i)=>{const{ref:s,refs:l,required:a,maxLength:u,minLength:d,min:c,max:v,pattern:g,validate:S,name:y,valueAsNumber:x,mount:h}=e._f,p=M(n,y);if(!h||t.has(y))return{};const m=l?l[0]:s,w=B=>{o&&m.reportValidity&&(m.setCustomValidity(ht(B)?"":B||""),m.reportValidity())},C={},_=Dc(s),k=ci(s),A=_||k,j=(x||Ac(s))&&ve(s.value)&&ve(p)||Ts(s)&&s.value===""||p===""||Array.isArray(p)&&!p.length,F=Nc.bind(null,y,r,C),W=(B,V,G,J=tn.maxLength,L=tn.minLength)=>{const K=B?V:G;C[y]={type:B?J:L,message:K,ref:s,...F(B?J:L,K)}};if(i?!Array.isArray(p)||!p.length:a&&(!A&&(j||ot(p))||ht(p)&&!p||k&&!ny(l).isValid||_&&!oy(l).isValid)){const{value:B,message:V}=mt(a)?{value:!!a,message:a}:xr(a);if(B&&(C[y]={type:tn.required,message:V,ref:m,...F(tn.required,V)},!r))return w(V),C}if(!j&&(!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,tn.max,tn.min),!r))return w(C[y].message),C}if((u||d)&&!j&&(mt(p)||i&&Array.isArray(p))){const B=xr(u),V=xr(d),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 w(C[y].message),C}if(g&&!j&&mt(p)){const{value:B,message:V}=xr(g);if(Ns(B)&&!p.match(B)&&(C[y]={type:tn.pattern,message:V,ref:s,...F(tn.pattern,V)},!r))return w(V),C}if(S){if($t(S)){const B=await S(p,n),V=Df(B,m);if(V&&(C[y]={...V,...F(tn.validate,V.message)},!r))return w(V.message),C}else if(Ie(S)){let B={};for(const V in S){if(!qe(B)&&!r)break;const G=Df(await S[V](p,n),m,V);G&&(B={...G,...F(V,G.message)},w(G.message),r&&(C[y]=B))}if(!qe(B)&&(C[y]={ref:m,...B},!r))return C}}return w(!0),C};const Tk={mode:_t.onSubmit,reValidateMode:_t.onChange,shouldFocusError:!0};function Nk(e={}){let t={...Tk,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:$t(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 d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let c={...d};const v={array:kf(),state:kf()},g=t.criteriaMode===_t.all,S=E=>R=>{clearTimeout(u),u=setTimeout(E,R)},y=async E=>{if(!t.disabled&&(d.isValid||c.isValid||E)){const R=t.resolver?qe((await k()).errors):await j(r,!0);R!==n.isValid&&v.state.next({isValid:R})}},x=(E,R)=>{!t.disabled&&(d.isValidating||d.validatingFields||c.isValidating||c.validatingFields)&&((E||Array.from(l.mount)).forEach(N=>{N&&(R?ce(n.validatingFields,N,R):Te(n.validatingFields,N))}),v.state.next({validatingFields:n.validatingFields,isValidating:!qe(n.validatingFields)}))},h=(E,R=[],N,O,b=!0,I=!0)=>{if(O&&N&&!t.disabled){if(s.action=!0,I&&Array.isArray(M(r,E))){const z=N(M(r,E),O.argA,O.argB);b&&ce(r,E,z)}if(I&&Array.isArray(M(n.errors,E))){const z=N(M(n.errors,E),O.argA,O.argB);b&&ce(n.errors,E,z),Pk(n.errors,E)}if((d.touchedFields||c.touchedFields)&&I&&Array.isArray(M(n.touchedFields,E))){const z=N(M(n.touchedFields,E),O.argA,O.argB);b&&ce(n.touchedFields,E,z)}(d.dirtyFields||c.dirtyFields)&&(n.dirtyFields=Sr(o,i)),v.state.next({name:E,isDirty:W(E,R),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ce(i,E,R)},p=(E,R)=>{ce(n.errors,E,R),v.state.next({errors:n.errors})},m=E=>{n.errors=E,v.state.next({errors:n.errors,isValid:!1})},w=(E,R,N,O)=>{const b=M(r,E);if(b){const I=M(i,E,ve(N)?M(o,E):N);ve(I)||O&&O.defaultChecked||R?ce(i,E,R?I:Tf(b._f)):G(E,I),s.mount&&y()}},C=(E,R,N,O,b)=>{let I=!1,z=!1;const ue={name:E};if(!t.disabled){if(!N||O){(d.isDirty||c.isDirty)&&(z=n.isDirty,n.isDirty=ue.isDirty=W(),I=z!==ue.isDirty);const fe=on(M(o,E),R);z=!!M(n.dirtyFields,E),fe?Te(n.dirtyFields,E):ce(n.dirtyFields,E,!0),ue.dirtyFields=n.dirtyFields,I=I||(d.dirtyFields||c.dirtyFields)&&z!==!fe}if(N){const fe=M(n.touchedFields,E);fe||(ce(n.touchedFields,E,N),ue.touchedFields=n.touchedFields,I=I||(d.touchedFields||c.touchedFields)&&fe!==N)}I&&b&&v.state.next(ue)}return I?ue:{}},_=(E,R,N,O)=>{const b=M(n.errors,E),I=(d.isValid||c.isValid)&&ht(R)&&n.isValid!==R;if(t.delayError&&N?(a=S(()=>p(E,N)),a(t.delayError)):(clearTimeout(u),a=null,N?ce(n.errors,E,N):Te(n.errors,E)),(N?!on(b,N):b)||!qe(O)||I){const z={...O,...I&&ht(R)?{isValid:R}:{},errors:n.errors,name:E};n={...n,...z},v.state.next(z)}},k=async E=>{x(E,!0);const R=await t.resolver(i,t.context,Sk(E||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(E),R},A=async E=>{const{errors:R}=await k(E);if(E)for(const N of E){const O=M(R,N);O?ce(n.errors,N,O):Te(n.errors,N)}else n.errors=R;return R},j=async(E,R,N={valid:!0})=>{for(const O in E){const b=E[O];if(b){const{_f:I,...z}=b;if(I){const ue=l.array.has(I.name),fe=b._f&&Ek(b._f);fe&&d.validatingFields&&x([I.name],!0);const We=await lu(b,l.disabled,i,g,t.shouldUseNativeValidation&&!R,ue);if(fe&&d.validatingFields&&x([I.name]),We[I.name]&&(N.valid=!1,R))break;!R&&(M(We,I.name)?ue?iy(n.errors,We,I.name):ce(n.errors,I.name,We[I.name]):Te(n.errors,I.name))}!qe(z)&&await j(z,R,N)}}return N.valid},F=()=>{for(const E of l.unMount){const R=M(r,E);R&&(R._f.refs?R._f.refs.every(N=>!Ql(N)):!Ql(R._f.ref))&&U(E)}l.unMount=new Set},W=(E,R)=>!t.disabled&&(E&&R&&ce(i,E,R),!on(de(),o)),B=(E,R,N)=>qv(E,l,{...s.mount?i:ve(R)?o:mt(E)?{[E]:R}:R},N,R),V=E=>ol(M(s.mount?i:o,E,t.shouldUnregister?M(o,E,[]):[])),G=(E,R,N={})=>{const O=M(r,E);let b=R;if(O){const I=O._f;I&&(!I.disabled&&ce(i,E,ry(R,I)),b=Ts(I.ref)&&ot(R)?"":R,ey(I.ref)?[...I.ref.options].forEach(z=>z.selected=b.includes(z.value)):I.refs?ci(I.ref)?I.refs.forEach(z=>{(!z.defaultChecked||!z.disabled)&&(Array.isArray(b)?z.checked=!!b.find(ue=>ue===z.value):z.checked=b===z.value||!!b)}):I.refs.forEach(z=>z.checked=z.value===b):Ac(I.ref)?I.ref.value="":(I.ref.value=b,I.ref.type||v.state.next({name:E,values:we(i)})))}(N.shouldDirty||N.shouldTouch)&&C(E,b,N.shouldTouch,N.shouldDirty,!0),N.shouldValidate&&ae(E)},J=(E,R,N)=>{for(const O in R){if(!R.hasOwnProperty(O))return;const b=R[O],I=E+"."+O,z=M(r,I);(l.array.has(E)||Ie(b)||z&&!z._f)&&!tr(b)?J(I,b,N):G(I,b,N)}},L=(E,R,N={})=>{const O=M(r,E),b=l.array.has(E),I=we(R);ce(i,E,I),b?(v.array.next({name:E,values:we(i)}),(d.isDirty||d.dirtyFields||c.isDirty||c.dirtyFields)&&N.shouldDirty&&v.state.next({name:E,dirtyFields:Sr(o,i),isDirty:W(E,I)})):O&&!O._f&&!ot(I)?J(E,I,N):G(E,I,N),su(E,l)&&v.state.next({...n,name:E}),v.state.next({name:s.mount?E:void 0,values:we(i)})},K=async E=>{s.mount=!0;const R=E.target;let N=R.name,O=!0;const b=M(r,N),I=fe=>{O=Number.isNaN(fe)||tr(fe)&&isNaN(fe.getTime())||on(fe,M(i,N,fe))},z=br(t.mode),ue=br(t.reValidateMode);if(b){let fe,We;const At=R.type?Tf(b._f):Qv(E),Dt=E.type===Ps.BLUR||E.type===Ps.FOCUS_OUT,wn=!Ck(b._f)&&!t.resolver&&!M(n.errors,N)&&!b._f.deps||Rk(Dt,M(n.touchedFields,N),n.isSubmitted,ue,z),ao=su(N,l,Dt);ce(i,N,At),Dt?(!R||!R.readOnly)&&(b._f.onBlur&&b._f.onBlur(E),a&&a(0)):b._f.onChange&&b._f.onChange(E);const uo=C(N,At,Dt),di=!qe(uo)||ao;if(!Dt&&v.state.next({name:N,type:E.type,values:we(i)}),wn)return(d.isValid||c.isValid)&&(t.mode==="onBlur"?Dt&&y():Dt||y()),di&&v.state.next({name:N,...ao?{}:uo});if(!Dt&&ao&&v.state.next({...n}),t.resolver){const{errors:co}=await k([N]);if(I(At),O){const dl=Af(n.errors,r,N),vr=Af(co,r,dl.name||N);fe=vr.error,N=vr.name,We=qe(co)}}else x([N],!0),fe=(await lu(b,l.disabled,i,g,t.shouldUseNativeValidation))[N],x([N]),I(At),O&&(fe?We=!1:(d.isValid||c.isValid)&&(We=await j(r,!0)));O&&(b._f.deps&&(!Array.isArray(b._f.deps)||b._f.deps.length>0)&&ae(b._f.deps),_(N,We,fe,uo))}},Y=(E,R)=>{if(M(n.errors,R)&&E.focus)return E.focus(),1},ae=async(E,R={})=>{let N,O;const b=lt(E);if(t.resolver){const I=await A(ve(E)?E:b);N=qe(I),O=E?!b.some(z=>M(I,z)):N}else E?(O=(await Promise.all(b.map(async I=>{const z=M(r,I);return await j(z&&z._f?{[I]:z}:z)}))).every(Boolean),!(!O&&!n.isValid)&&y()):O=N=await j(r);return v.state.next({...!mt(E)||(d.isValid||c.isValid)&&N!==n.isValid?{}:{name:E},...t.resolver||!E?{isValid:N}:{},errors:n.errors}),R.shouldFocus&&!O&&Ur(r,Y,E?b:l.mount),O},de=(E,R)=>{let N={...s.mount?i:o};return R&&(N=Jv(R.dirtyFields?n.dirtyFields:n.touchedFields,N)),ve(E)?N:mt(E)?M(N,E):E.map(O=>M(N,O))},Ae=(E,R)=>({invalid:!!M((R||n).errors,E),isDirty:!!M((R||n).dirtyFields,E),error:M((R||n).errors,E),isValidating:!!M(n.validatingFields,E),isTouched:!!M((R||n).touchedFields,E)}),St=E=>{E&&lt(E).forEach(R=>Te(n.errors,R)),v.state.next({errors:E?n.errors:{}})},X=(E,R,N)=>{const O=(M(r,E,{_f:{}})._f||{}).ref,b=M(n.errors,E)||{},{ref:I,message:z,type:ue,...fe}=b;ce(n.errors,E,{...fe,...R,ref:O}),v.state.next({name:E,errors:n.errors,isValid:!1}),N&&N.shouldFocus&&O&&O.focus&&O.focus()},se=(E,R)=>$t(E)?v.state.subscribe({next:N=>"values"in N&&E(B(void 0,R),N)}):B(E,R,!0),le=E=>v.state.subscribe({next:R=>{_k(E.name,R.name,E.exact)&&kk(R,E.formState||d,dt,E.reRenderRoot)&&E.callback({values:{...i},...n,...R,defaultValues:o})}}).unsubscribe,Re=E=>(s.mount=!0,c={...c,...E.formState},le({...E,formState:c})),U=(E,R={})=>{for(const N of E?lt(E):l.mount)l.mount.delete(N),l.array.delete(N),R.keepValue||(Te(r,N),Te(i,N)),!R.keepError&&Te(n.errors,N),!R.keepDirty&&Te(n.dirtyFields,N),!R.keepTouched&&Te(n.touchedFields,N),!R.keepIsValidating&&Te(n.validatingFields,N),!t.shouldUnregister&&!R.keepDefaultValue&&Te(o,N);v.state.next({values:we(i)}),v.state.next({...n,...R.keepDirty?{isDirty:W()}:{}}),!R.keepIsValid&&y()},H=({disabled:E,name:R})=>{(ht(E)&&s.mount||E||l.disabled.has(R))&&(E?l.disabled.add(R):l.disabled.delete(R))},me=(E,R={})=>{let N=M(r,E);const O=ht(R.disabled)||ht(t.disabled);return ce(r,E,{...N||{},_f:{...N&&N._f?N._f:{ref:{name:E}},name:E,mount:!0,...R}}),l.mount.add(E),N?H({disabled:ht(R.disabled)?R.disabled:t.disabled,name:E}):w(E,!0,R.value),{...O?{disabled:R.disabled||t.disabled}:{},...t.progressive?{required:!!R.required,min:So(R.min),max:So(R.max),minLength:So(R.minLength),maxLength:So(R.maxLength),pattern:So(R.pattern)}:{},name:E,onChange:K,onBlur:K,ref:b=>{if(b){me(E,R),N=M(r,E);const I=ve(b.value)&&b.querySelectorAll&&b.querySelectorAll("input,select,textarea")[0]||b,z=yk(I),ue=N._f.refs||[];if(z?ue.find(fe=>fe===I):I===N._f.ref)return;ce(r,E,{_f:{...N._f,...z?{refs:[...ue.filter(Ql),I,...Array.isArray(M(o,E))?[{}]:[]],ref:{type:I.type,name:E}}:{ref:I}}}),w(E,!1,void 0,I)}else N=M(r,E,{}),N._f&&(N._f.mount=!1),(t.shouldUnregister||R.shouldUnregister)&&!(Xv(l.array,E)&&s.action)&&l.unMount.add(E)}}},re=()=>t.shouldFocusError&&Ur(r,Y,l.mount),oe=E=>{ht(E)&&(v.state.next({disabled:E}),Ur(r,(R,N)=>{const O=M(r,N);O&&(R.disabled=O._f.disabled||E,Array.isArray(O._f.refs)&&O._f.refs.forEach(b=>{b.disabled=O._f.disabled||E}))},0,!1))},ee=(E,R)=>async N=>{let O;N&&(N.preventDefault&&N.preventDefault(),N.persist&&N.persist());let b=we(i);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:I,values:z}=await k();n.errors=I,b=we(z)}else await j(r);if(l.disabled.size)for(const I of l.disabled)Te(b,I);if(Te(n.errors,"root"),qe(n.errors)){v.state.next({errors:{}});try{await E(b,N)}catch(I){O=I}}else R&&await R({...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},je=(E,R={})=>{M(r,E)&&(ve(R.defaultValue)?L(E,we(M(o,E))):(L(E,R.defaultValue),ce(o,E,we(R.defaultValue))),R.keepTouched||Te(n.touchedFields,E),R.keepDirty||(Te(n.dirtyFields,E),n.isDirty=R.defaultValue?W(E,we(M(o,E))):W()),R.keepError||(Te(n.errors,E),d.isValid&&y()),v.state.next({...n}))},$e=(E,R={})=>{const N=E?we(E):o,O=we(N),b=qe(E),I=b?o:O;if(R.keepDefaultValues||(o=N),!R.keepValues){if(R.keepDirtyValues){const z=new Set([...l.mount,...Object.keys(Sr(o,i))]);for(const ue of Array.from(z))M(n.dirtyFields,ue)?ce(I,ue,M(i,ue)):L(ue,M(I,ue))}else{if(Rc&&ve(E))for(const z of l.mount){const ue=M(r,z);if(ue&&ue._f){const fe=Array.isArray(ue._f.refs)?ue._f.refs[0]:ue._f.ref;if(Ts(fe)){const We=fe.closest("form");if(We){We.reset();break}}}}if(R.keepFieldsRef)for(const z of l.mount)L(z,M(I,z));else r={}}i=t.shouldUnregister?R.keepDefaultValues?we(o):{}:we(I),v.array.next({values:{...I}}),v.state.next({values:{...I}})}l={mount:R.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!R.keepIsValid||!!R.keepDirtyValues,s.watch=!!t.shouldUnregister,v.state.next({submitCount:R.keepSubmitCount?n.submitCount:0,isDirty:b?!1:R.keepDirty?n.isDirty:!!(R.keepDefaultValues&&!on(E,o)),isSubmitted:R.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:b?{}:R.keepDirtyValues?R.keepDefaultValues&&i?Sr(o,i):n.dirtyFields:R.keepDefaultValues&&E?Sr(o,E):R.keepDirty?n.dirtyFields:{},touchedFields:R.keepTouched?n.touchedFields:{},errors:R.keepErrors?n.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Kt=(E,R)=>$e($t(E)?E(i):E,R),Yt=(E,R={})=>{const N=M(r,E),O=N&&N._f;if(O){const b=O.refs?O.refs[0]:O.ref;b.focus&&(b.focus(),R.shouldSelect&&$t(b.select)&&b.select())}},dt=E=>{n={...n,...E}},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:$e,_resetDefaultValues:()=>$t(t.defaultValues)&&t.defaultValues().then(E=>{Kt(E,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:F,_disableForm:oe,_subjects:v,_proxyFormState:d,get _fields(){return r},get _formValues(){return i},get _state(){return s},set _state(E){s=E},get _defaultValues(){return o},get _names(){return l},set _names(E){l=E},get _formState(){return n},get _options(){return t},set _options(E){t={...t,...E}}},subscribe:Re,trigger:ae,register:me,handleSubmit:ee,watch:se,setValue:L,getValues:de,reset:Kt,resetField:je,clearErrors:St,unregister:U,setError:X,setFocus:Yt,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)})},Xl=(e,t,n={})=>n.shouldFocus||ve(n.shouldFocus)?n.focusName||`${e}.${ve(n.focusIndex)?t:n.focusIndex}.`:"",Zl=(e,t)=>[...e,...lt(t)],ql=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Jl(e,t,n){return[...e.slice(0,t),...lt(n),...e.slice(t)]}var ea=(e,t,n)=>Array.isArray(e)?(ve(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],ta=(e,t)=>[...lt(t),...lt(e)];function Ak(e,t){let n=0;const r=[...e];for(const o of t)r.splice(o-n,1),n++;return ol(r).length?r:[]}var na=(e,t)=>ve(t)?[]:Ak(e,lt(t).sort((n,r)=>n-r)),ra=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},If=(e,t,n)=>(e[t]=n,e);function A_(e){const t=il(),{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)),d=T.useRef(!1);n._names.array.add(r),T.useMemo(()=>s&&l.length>=0&&n.register(r,s),[n,r,l.length,s]),sl(()=>n._subjects.array.subscribe({next:({values:w,name:C})=>{if(C===r||!C){const _=M(w,r);Array.isArray(_)&&(a(_),u.current=_.map(En))}}}).unsubscribe,[n,r]);const c=T.useCallback(w=>{d.current=!0,n._setFieldArray(r,w)},[n,r]),v=(w,C)=>{const _=lt(we(w)),k=Zl(n._getFieldArray(r),_);n._names.focus=Xl(r,k.length-1,C),u.current=Zl(u.current,_.map(En)),c(k),a(k),n._setFieldArray(r,k,Zl,{argA:ql(w)})},g=(w,C)=>{const _=lt(we(w)),k=ta(n._getFieldArray(r),_);n._names.focus=Xl(r,0,C),u.current=ta(u.current,_.map(En)),c(k),a(k),n._setFieldArray(r,k,ta,{argA:ql(w)})},S=w=>{const C=na(n._getFieldArray(r),w);u.current=na(u.current,w),c(C),a(C),!Array.isArray(M(n._fields,r))&&ce(n._fields,r,void 0),n._setFieldArray(r,C,na,{argA:w})},y=(w,C,_)=>{const k=lt(we(C)),A=Jl(n._getFieldArray(r),w,k);n._names.focus=Xl(r,w,_),u.current=Jl(u.current,w,k.map(En)),c(A),a(A),n._setFieldArray(r,A,Jl,{argA:w,argB:ql(C)})},x=(w,C)=>{const _=n._getFieldArray(r);ra(_,w,C),ra(u.current,w,C),c(_),a(_),n._setFieldArray(r,_,ra,{argA:w,argB:C},!1)},h=(w,C)=>{const _=n._getFieldArray(r);ea(_,w,C),ea(u.current,w,C),c(_),a(_),n._setFieldArray(r,_,ea,{argA:w,argB:C},!1)},p=(w,C)=>{const _=we(C),k=If(n._getFieldArray(r),w,_);u.current=[...k].map((A,j)=>!A||j===w?En():u.current[j]),c(k),a([...k]),n._setFieldArray(r,k,If,{argA:w,argB:_},!0,!1)},m=w=>{const C=lt(we(w));u.current=C.map(En),c([...C]),a([...C]),n._setFieldArray(r,[...C],_=>_,{},!0,!1)};return T.useEffect(()=>{if(n._state.action=!1,su(r,n._names)&&n._subjects.state.next({...n._formState}),d.current&&(!br(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!br(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(w=>{const C=M(w.errors,r),_=M(n._formState.errors,r);(_?!C&&_.type||C&&(_.type!==C.type||_.message!==C.message):C&&C.type)&&(C?ce(n._formState.errors,r,C):Te(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const w=M(n._fields,r);w&&w._f&&!(br(n._options.reValidateMode).isOnSubmit&&br(n._options.mode).isOnSubmit)&&lu(w,n._names.disabled,n._formValues,n._options.criteriaMode===_t.all,n._options.shouldUseNativeValidation,!0).then(C=>!qe(C)&&n._subjects.state.next({errors:iy(n._formState.errors,C,r)}))}n._subjects.state.next({name:r,values:we(n._formValues)}),n._names.focus&&Ur(n._fields,(w,C)=>{if(n._names.focus&&C.startsWith(n._names.focus)&&w.focus)return w.focus(),1}),n._names.focus="",n._setValid(),d.current=!1},[l,r,n]),T.useEffect(()=>(!M(n._formValues,r)&&n._setFieldArray(r),()=>{const w=(C,_)=>{const k=M(n._fields,C);k&&k._f&&(k._f.mount=_)};n._options.shouldUnregister||i?n.unregister(r):w(r,!1)}),[r,n,o,i]),{swap:T.useCallback(x,[c,r,n]),move:T.useCallback(h,[c,r,n]),prepend:T.useCallback(g,[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((w,C)=>({...w,[o]:u.current[C]||En()})),[l,o])}}function D_(e={}){const t=T.useRef(void 0),n=T.useRef(void 0),[r,o]=T.useState({isDirty:!1,isValidating:!1,isLoading:$t(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:$t(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!$t(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:s,...l}=Nk(e);t.current={...l,formState:r}}const i=t.current.control;return i._options=e,sl(()=>{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&&!on(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=Zv(r,i),t.current}var Dk="Label",sy=f.forwardRef((e,t)=>P.jsx(te.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())}}));sy.displayName=Dk;var I_=sy;const Mf=(e,t,n)=>{if(e&&"reportValidity"in e){const r=M(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},au=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Mf(r.ref,n,e):r&&r.refs&&r.refs.forEach(o=>Mf(o,n,e))}},bf=(e,t)=>{t.shouldUseNativeValidation&&au(e,t);const n={};for(const r in e){const o=M(t.fields,r),i=Object.assign(e[r]||{},{ref:o&&o.ref});if(Ik(t.names||Object.keys(e),r)){const s=Object.assign({},M(n,r));ce(s,"root",i),ce(n,r,s)}else ce(n,r,i)}return n},Ik=(e,t)=>{const n=Of(t);return e.some(r=>Of(r).match(`^${n}\\.\\d+`))};function Of(e){return e.replace(/\]|\[/g,"")}function Lf(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function Mk(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(d){return d.errors.forEach(function(c){return e.push(c)})}),t){var a=n[s].types,u=a&&a[r.code];n[s]=Nc(s,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function bk(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(d){return d.forEach(function(c){return e.push(c)})}),t){var a=n[s].types,u=a&&a[r.code];n[s]=Nc(s,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function M_(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(Lf(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(s){return i.shouldUseNativeValidation&&au({},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:bf(Mk(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(Lf(function(){return Promise.resolve((n.mode==="sync"?tg:ng)(e,r,t)).then(function(s){return i.shouldUseNativeValidation&&au({},i),{errors:{},values:n.raw?Object.assign({},r):s}})},function(s){if(function(l){return l instanceof rg}(s))return{values:{},errors:bf(bk(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 ly(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ll="Checkbox",[Ok]=yn(ll),[Lk,Ic]=Ok(ll);function Fk(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:s,name:l,onCheckedChange:a,required:u,value:d="on",internal_do_not_use_render:c}=e,[v,g]=ur({prop:n,defaultProp:o??!1,onChange:a,caller:ll}),[S,y]=f.useState(null),[x,h]=f.useState(null),p=f.useRef(!1),m=S?!!s||!!S.closest("form"):!0,w={checked:v,disabled:i,setChecked:g,control:S,setControl:y,name:l,form:s,value:d,hasConsumerStoppedPropagationRef:p,required:u,defaultChecked:$n(o)?!1:o,isFormControl:m,bubbleInput:x,setBubbleInput:h};return P.jsx(Lk,{scope:t,...w,children:Vk(c)?c(w):r})}var ay="CheckboxTrigger",uy=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:s,disabled:l,checked:a,required:u,setControl:d,setChecked:c,hasConsumerStoppedPropagationRef:v,isFormControl:g,bubbleInput:S}=Ic(ay,e),y=he(o,d),x=f.useRef(a);return f.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]),P.jsx(te.button,{type:"button",role:"checkbox","aria-checked":$n(a)?"mixed":a,"aria-required":u,"data-state":py(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=>$n(p)?!0:!p),S&&g&&(v.current=h.isPropagationStopped(),v.current||h.stopPropagation())})})});uy.displayName=ay;var jk=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:s,disabled:l,value:a,onCheckedChange:u,form:d,...c}=e;return P.jsx(Fk,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:l,required:s,onCheckedChange:u,name:r,form:d,value:a,internal_do_not_use_render:({isFormControl:v})=>P.jsxs(P.Fragment,{children:[P.jsx(uy,{...c,ref:t,__scopeCheckbox:n}),v&&P.jsx(fy,{__scopeCheckbox:n})]})})});jk.displayName=ll;var cy="CheckboxIndicator",$k=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Ic(cy,n);return P.jsx(mr,{present:r||$n(i.checked)||i.checked===!0,children:P.jsx(te.span,{"data-state":py(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});$k.displayName=cy;var dy="CheckboxBubbleInput",fy=f.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:s,required:l,disabled:a,name:u,value:d,form:c,bubbleInput:v,setBubbleInput:g}=Ic(dy,e),S=he(n,g),y=ly(i),x=Qm(r);f.useEffect(()=>{const p=v;if(!p)return;const m=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(m,"checked").set,_=!o.current;if(y!==i&&C){const k=new Event("click",{bubbles:_});p.indeterminate=$n(i),C.call(p,$n(i)?!1:i),p.dispatchEvent(k)}},[v,y,i,o]);const h=f.useRef($n(i)?!1:i);return P.jsx(te.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??h.current,required:l,disabled:a,name:u,value:d,form:c,...t,tabIndex:-1,ref:S,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});fy.displayName=dy;function Vk(e){return typeof e=="function"}function $n(e){return e==="indeterminate"}function py(e){return $n(e)?"indeterminate":e?"checked":"unchecked"}var zk=[" ","Enter","ArrowUp","ArrowDown"],Bk=[" ","Enter"],dr="Select",[al,ul,Uk]=Dv(dr),[so]=yn(dr,[Uk,qs]),cl=qs(),[Hk,Yn]=so(dr),[Wk,Kk]=so(dr),hy=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:l,onValueChange:a,dir:u,name:d,autoComplete:c,disabled:v,required:g,form:S}=e,y=cl(t),[x,h]=f.useState(null),[p,m]=f.useState(null),[w,C]=f.useState(!1),_=kc(u),[k,A]=ur({prop:r,defaultProp:o??!1,onChange:i,caller:dr}),[j,F]=ur({prop:s,defaultProp:l,onChange:a,caller:dr}),W=f.useRef(null),B=x?S||!!x.closest("form"):!0,[V,G]=f.useState(new Set),J=Array.from(V).map(L=>L.props.value).join(";");return P.jsx(iv,{...y,children:P.jsxs(Hk,{required:g,scope:t,trigger:x,onTriggerChange:h,valueNode:p,onValueNodeChange:m,valueNodeHasChildren:w,onValueNodeHasChildrenChange:C,contentId:cn(),value:j,onValueChange:F,open:k,onOpenChange:A,dir:_,triggerPointerDownPosRef:W,disabled:v,children:[P.jsx(al.Provider,{scope:t,children:P.jsx(Wk,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(L=>{G(K=>new Set(K).add(L))},[]),onNativeOptionRemove:f.useCallback(L=>{G(K=>{const Y=new Set(K);return Y.delete(L),Y})},[]),children:n})}),B?P.jsxs(jy,{"aria-hidden":!0,required:g,tabIndex:-1,name:d,autoComplete:c,value:j,onChange:L=>F(L.target.value),disabled:v,form:S,children:[j===void 0?P.jsx("option",{value:""}):null,Array.from(V)]},J):null]})})};hy.displayName=dr;var my="SelectTrigger",vy=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=cl(n),s=Yn(my,n),l=s.disabled||r,a=he(t,s.onTriggerChange),u=ul(n),d=f.useRef("touch"),[c,v,g]=Vy(y=>{const x=u().filter(m=>!m.disabled),h=x.find(m=>m.value===s.value),p=zy(x,y,h);p!==void 0&&s.onValueChange(p.value)}),S=y=>{l||(s.onOpenChange(!0),g()),y&&(s.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return P.jsx(sv,{asChild:!0,...i,children:P.jsx(te.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":$y(s.value)?"":void 0,...o,ref:a,onClick:Q(o.onClick,y=>{y.currentTarget.focus(),d.current!=="mouse"&&S(y)}),onPointerDown:Q(o.onPointerDown,y=>{d.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===" ")&&zk.includes(y.key)&&(S(),y.preventDefault())})})})});vy.displayName=my;var yy="SelectValue",gy=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...l}=e,a=Yn(yy,n),{onValueNodeHasChildrenChange:u}=a,d=i!==void 0,c=he(t,a.onValueNodeChange);return Ze(()=>{u(d)},[u,d]),P.jsx(te.span,{...l,ref:c,style:{pointerEvents:"none"},children:$y(a.value)?P.jsx(P.Fragment,{children:s}):i})});gy.displayName=yy;var Yk="SelectIcon",wy=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return P.jsx(te.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});wy.displayName=Yk;var Gk="SelectPortal",xy=e=>P.jsx(vc,{asChild:!0,...e});xy.displayName=Gk;var fr="SelectContent",Sy=f.forwardRef((e,t)=>{const n=Yn(fr,e.__scopeSelect),[r,o]=f.useState();if(Ze(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?no.createPortal(P.jsx(Ey,{scope:e.__scopeSelect,children:P.jsx(al.Slot,{scope:e.__scopeSelect,children:P.jsx("div",{children:e.children})})}),i):null}return P.jsx(Cy,{...e,ref:t})});Sy.displayName=fr;var Ot=10,[Ey,Gn]=so(fr),Qk="SelectContentImpl",Xk=Zr("SelectContent.RemoveScroll"),Cy=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:l,sideOffset:a,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:v,collisionPadding:g,sticky:S,hideWhenDetached:y,avoidCollisions:x,...h}=e,p=Yn(fr,n),[m,w]=f.useState(null),[C,_]=f.useState(null),k=he(t,U=>w(U)),[A,j]=f.useState(null),[F,W]=f.useState(null),B=ul(n),[V,G]=f.useState(!1),J=f.useRef(!1);f.useEffect(()=>{if(m)return jf(m)},[m]),Em();const L=f.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&&C&&(C.scrollTop=0),ee===re&&C&&(C.scrollTop=C.scrollHeight),ee==null||ee.focus(),document.activeElement!==oe))return},[B,C]),K=f.useCallback(()=>L([A,m]),[L,A,m]);f.useEffect(()=>{V&&K()},[V,K]);const{onOpenChange:Y,triggerPointerDownPosRef:ae}=p;f.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]),f.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]=Vy(U=>{const H=B().filter(oe=>!oe.disabled),me=H.find(oe=>oe.ref.current===document.activeElement),re=zy(H,U,me);re&&setTimeout(()=>re.ref.current.focus())}),St=f.useCallback((U,H,me)=>{const re=!J.current&&!me;(p.value!==void 0&&p.value===H||re)&&(j(U),re&&(J.current=!0))},[p.value]),X=f.useCallback(()=>m==null?void 0:m.focus(),[m]),se=f.useCallback((U,H,me)=>{const re=!J.current&&!me;(p.value!==void 0&&p.value===H||re)&&W(U)},[p.value]),le=r==="popper"?uu:ky,Re=le===uu?{side:l,sideOffset:a,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:v,collisionPadding:g,sticky:S,hideWhenDetached:y,avoidCollisions:x}:{};return P.jsx(Ey,{scope:n,content:m,viewport:C,onViewportChange:_,itemRefCallback:St,selectedItem:A,onItemLeave:X,itemTextRefCallback:se,focusSelectedItem:K,selectedItemText:F,position:r,isPositioned:V,searchRef:de,children:P.jsx(yc,{as:Xk,allowPinchZoom:!0,children:P.jsx(mc,{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:P.jsx(Qs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:U=>U.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:P.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()}})})})})})})});Cy.displayName=Qk;var Zk="SelectItemAlignedPosition",ky=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Yn(fr,n),s=Gn(fr,n),[l,a]=f.useState(null),[u,d]=f.useState(null),c=he(t,k=>d(k)),v=ul(n),g=f.useRef(!1),S=f.useRef(!0),{viewport:y,selectedItem:x,selectedItemText:h,focusSelectedItem:p}=s,m=f.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&y&&x&&h){const k=i.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),j=i.valueNode.getBoundingClientRect(),F=h.getBoundingClientRect();if(i.dir!=="rtl"){const oe=F.left-A.left,ee=j.left-oe,je=k.left-ee,$e=k.width+je,Kt=Math.max($e,A.width),Yt=window.innerWidth-Ot,dt=Fc(ee,[Ot,Math.max(Ot,Yt-Kt)]);l.style.minWidth=$e+"px",l.style.left=dt+"px"}else{const oe=A.right-F.right,ee=window.innerWidth-j.right-oe,je=window.innerWidth-k.right-ee,$e=k.width+je,Kt=Math.max($e,A.width),Yt=window.innerWidth-Ot,dt=Fc(ee,[Ot,Math.max(Ot,Yt-Kt)]);l.style.minWidth=$e+"px",l.style.right=dt+"px"}const W=v(),B=window.innerHeight-Ot*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-Ot,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,je=Math.max(le,Re+(oe?X:0)+ee+K),$e=H+je;l.style.height=$e+"px"}else{const oe=W.length>0&&x===W[0].ref.current;l.style.top="0px";const je=Math.max(se,J+y.offsetTop+(oe?St:0)+Re)+me;l.style.height=je+"px",y.scrollTop=H-se+y.offsetTop}l.style.margin=`${Ot}px 0`,l.style.minHeight=de+"px",l.style.maxHeight=B+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[v,i.trigger,i.valueNode,l,u,y,x,h,i.dir,r]);Ze(()=>m(),[m]);const[w,C]=f.useState();Ze(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const _=f.useCallback(k=>{k&&S.current===!0&&(m(),p==null||p(),S.current=!1)},[m,p]);return P.jsx(Jk,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:g,onScrollButtonChange:_,children:P.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:P.jsx(te.div,{...o,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ky.displayName=Zk;var qk="SelectPopperPosition",uu=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ot,...i}=e,s=cl(n);return P.jsx(lv,{...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)"}})});uu.displayName=qk;var[Jk,Mc]=so(fr,{}),cu="SelectViewport",_y=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=Gn(cu,n),s=Mc(cu,n),l=he(t,i.onViewportChange),a=f.useRef(0);return P.jsxs(P.Fragment,{children:[P.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}),P.jsx(al.Slot,{scope:n,children:P.jsx(te.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 d=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:v}=s;if(v!=null&&v.current&&c){const g=Math.abs(a.current-d.scrollTop);if(g>0){const S=window.innerHeight-Ot*2,y=parseFloat(c.style.minHeight),x=parseFloat(c.style.height),h=Math.max(y,x);if(h<S){const p=h+g,m=Math.min(S,p),w=p-m;c.style.height=m+"px",c.style.bottom==="0px"&&(d.scrollTop=w>0?w:0,c.style.justifyContent="flex-end")}}}a.current=d.scrollTop})})})]})});_y.displayName=cu;var Ry="SelectGroup",[e2,t2]=so(Ry),n2=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cn();return P.jsx(e2,{scope:n,id:o,children:P.jsx(te.div,{role:"group","aria-labelledby":o,...r,ref:t})})});n2.displayName=Ry;var Py="SelectLabel",Ty=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=t2(Py,n);return P.jsx(te.div,{id:o.id,...r,ref:t})});Ty.displayName=Py;var As="SelectItem",[r2,Ny]=so(As),Ay=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,l=Yn(As,n),a=Gn(As,n),u=l.value===r,[d,c]=f.useState(i??""),[v,g]=f.useState(!1),S=he(t,p=>{var m;return(m=a.itemRefCallback)==null?void 0:m.call(a,p,r,o)}),y=cn(),x=f.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 P.jsx(r2,{scope:n,value:r,disabled:o,textId:y,isSelected:u,onItemTextChange:f.useCallback(p=>{c(m=>m||((p==null?void 0:p.textContent)??"").trim())},[]),children:P.jsx(al.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:P.jsx(te.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,()=>g(!0)),onBlur:Q(s.onBlur,()=>g(!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 w;((w=a.searchRef)==null?void 0:w.current)!==""&&p.key===" "||(Bk.includes(p.key)&&h(),p.key===" "&&p.preventDefault())})})})})});Ay.displayName=As;var Ro="SelectItemText",Dy=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=Yn(Ro,n),l=Gn(Ro,n),a=Ny(Ro,n),u=Kk(Ro,n),[d,c]=f.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)}),g=d==null?void 0:d.textContent,S=f.useMemo(()=>P.jsx("option",{value:a.value,disabled:a.disabled,children:g},a.value),[a.disabled,a.value,g]),{onNativeOptionAdd:y,onNativeOptionRemove:x}=u;return Ze(()=>(y(S),()=>x(S)),[y,x,S]),P.jsxs(P.Fragment,{children:[P.jsx(te.span,{id:a.textId,...i,ref:v}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?no.createPortal(i.children,s.valueNode):null]})});Dy.displayName=Ro;var Iy="SelectItemIndicator",My=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ny(Iy,n).isSelected?P.jsx(te.span,{"aria-hidden":!0,...r,ref:t}):null});My.displayName=Iy;var du="SelectScrollUpButton",by=f.forwardRef((e,t)=>{const n=Gn(du,e.__scopeSelect),r=Mc(du,e.__scopeSelect),[o,i]=f.useState(!1),s=he(t,r.onScrollButtonChange);return Ze(()=>{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?P.jsx(Ly,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});by.displayName=du;var fu="SelectScrollDownButton",Oy=f.forwardRef((e,t)=>{const n=Gn(fu,e.__scopeSelect),r=Mc(fu,e.__scopeSelect),[o,i]=f.useState(!1),s=he(t,r.onScrollButtonChange);return Ze(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=a.scrollHeight-a.clientHeight,d=Math.ceil(a.scrollTop)<u;i(d)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?P.jsx(Ly,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});Oy.displayName=fu;var Ly=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Gn("SelectScrollButton",n),s=f.useRef(null),l=ul(n),a=f.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return f.useEffect(()=>()=>a(),[a]),Ze(()=>{var d;const u=l().find(c=>c.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),P.jsx(te.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()})})}),o2="SelectSeparator",Fy=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return P.jsx(te.div,{"aria-hidden":!0,...r,ref:t})});Fy.displayName=o2;var pu="SelectArrow",i2=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cl(n),i=Yn(pu,n),s=Gn(pu,n);return i.open&&s.position==="popper"?P.jsx(av,{...o,...r,ref:t}):null});i2.displayName=pu;var s2="SelectBubbleInput",jy=f.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=f.useRef(null),i=he(r,o),s=ly(t);return f.useEffect(()=>{const l=o.current;if(!l)return;const a=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==t&&d){const c=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(c)}},[s,t]),P.jsx(te.select,{...n,style:{...uv,...n.style},ref:i,defaultValue:t})});jy.displayName=s2;function $y(e){return e===""||e===void 0}function Vy(e){const t=Bn(e),n=f.useRef(""),r=f.useRef(0),o=f.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=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function zy(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=l2(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 l2(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var b_=hy,O_=vy,L_=gy,F_=wy,j_=xy,$_=Sy,V_=_y,z_=Ty,B_=Ay,U_=Dy,H_=My,W_=by,K_=Oy,Y_=Fy;export{I2 as $,x_ as A,v_ as B,nC as C,oC as D,JE as E,z2 as F,n_ as G,O2 as H,t_ as I,S2 as J,K2 as K,fm as L,__ as M,R_ as N,tC as O,eC as P,P_ as Q,u_ as R,a_ as S,y2 as T,k_ as U,j2 as V,r_ as W,s_ as X,X2 as Y,D2 as Z,G2 as _,Km as a,M2 as a0,A2 as a1,k2 as a2,I_ as a3,il as a4,T_ as a5,N_ as a6,D_ as a7,M_ as a8,jk as a9,E2 as aA,W2 as aB,b2 as aC,i_ as aD,B2 as aE,J2 as aF,L2 as aG,q2 as aH,Q2 as aI,U2 as aJ,C2 as aK,F2 as aL,p2 as aM,yw as aN,f2 as aO,Bc as aP,T as aQ,h2 as aR,$k as aa,O_ as ab,F_ as ac,_2 as ad,W_ as ae,T2 as af,K_ as ag,j_ as ah,$_ as ai,V_ as aj,z_ as ak,B_ as al,H_ as am,U_ as an,Y_ as ao,b_ as ap,L_ as aq,A_ as ar,e_ as as,o_ as at,R2 as au,P2 as av,N2 as aw,Y2 as ax,$2 as ay,l_ as az,rC as b,g2 as c,w2 as d,qE as e,h_ as f,$f as g,d_ as h,f_ as i,P as j,p_ as k,H2 as l,Kn as m,V2 as n,Z2 as o,g_ as p,y_ as q,f as r,w_ as s,v2 as t,x2 as u,E_ as v,C_ as w,S_ as x,m_ as y,m2 as z};
324
- //# sourceMappingURL=react-vendor-DFM1_gjB.js.map